Coerce an R object to an nlist_object().
# S3 method for ml_analysis as.nlist(x, ...)
| x | An R object. |
|---|---|
| ... | Unused |
An nlist object.
numeric: Coerce named numeric vector to nlist
list: Coerce list to nlist
data.frame: Coerce data.frame to nlist
#> Warning: `as.nlist()` is deprecated as of nlist 0.1.1. #> Please use `as_nlist()` instead. #> This warning is displayed once every 8 hours. #> Call `lifecycle::last_warnings()` to see where this warning was generated.#> $x #> [1] 1 2 3 4 #> #> an nlist object with 1 numeric element#> Error in is_incomplete_terms(terms): could not find function "is_incomplete_terms"