library(tf)
#>
#> Attaching package: 'tf'
#> The following objects are masked from 'package:stats':
#>
#> sd, var
d = data.frame(time = 1, value = NA_real_, id = "1")
x = tfd(d, arg = "time", value = "value", id = "id")
x
#> tfd[0] on (NA,NA)
#> Error in attr(f, "arg")[[1]]: subscript out of bounds
Created on 2023-09-19 with reprex v2.0.2