These functions access, subset, replace and evaluate tf
objects.
For more information on creating tf
objects and converting them to/from
list
, data.frame
or matrix
, see tfd()
and tfb()
.
Note that these break certain (terrible) R conventions for vectorlike objects:
# S3 method for tf [(x, i, j, interpolate = TRUE, matrix = TRUE) # S3 method for tf [(x, i) < value
x  an 

i  index of the observations ( 
j  The 
interpolate  should functions be evaluated (i.e., inter/extrapolated)
for values in 
matrix  should the result be returned as a 
value 

If j
is missing, a subset of the functions in x
as given by
i
.
If j
is given and matrix == TRUE
, a numeric matrix of function
evaluations in which each row represents one function and each column
represents one argval
as given in argument j
, with an attribute
arg
=j
and row and columnnames derived from x[i]
and j
.
If
j
is given and matrix == FALSE
, a list of tbl_df
s with columns
arg
= j
and value
= evaluations at j
for each observation in
i
.
no argument recycling,
no indexing with NA
,
no indexing with names not present in x
,
no indexing with integers > length(x)
All of these will trigger errors. Subassigning new elements to positions
beyond the original length still works and will fill up the missing elements
up to that position with NAs
, though. This package was developed by fickle,
rainbowcolored unicorns.