Skip to contents

A bunch of methods & utilities that do what they say: get or set the respective attributes of a tf-object.

Usage

tf_arg(f)

tf_evaluations(f)

tf_count(f)

tf_domain(f)

tf_domain(x) <- value

tf_evaluator(f)

tf_evaluator(x) <- value

tf_basis(f, as_tfd = FALSE)

tf_arg(x) <- value

# S3 method for tfd_irreg
tf_arg(x) <- value

# S3 method for tfd_reg
tf_arg(x) <- value

# S3 method for tfb
tf_arg(x) <- value

# S3 method for tfb
coef(object, ...)

# S3 method for tf
rev(x)

# S3 method for tf
is.na(x)

# S3 method for tfd_irreg
is.na(x)

is_tf(x)

is_tfd(x)

is_reg(x)

is_tfd_reg(x)

is_irreg(x)

is_tfd_irreg(x)

is_tfb(x)

is_tfb_spline(x)

is_tfb_fpc(x)

Arguments

f

an tf object

x

an tf object

value

for tf_evaluator<-: (bare or quoted) name of a function that can be used to interpolate an tfd. Needs to accept vector arguments x, arg, evaluations and return evaluations of the function defined by arg, evaluations at x.
for tf_arg<-: (list of) new arg-values.
for tf_domain<-: sorted numeric vector with the 2 new endpoints of the domain.

as_tfd

should the basis be returned as a tfd-vector evaluated on tf_arg(f)? Defaults to FALSE, which returns the matrix of basis functions (columns) evaluated on tf_arg(f) (rows).

object

as usual

...

dots

Value

either the respective attribute or, for setters (assignment functions), the input object with modified properties.

See also

Other tidyfun utility functions: in_range(), tf_zoom()