powered by
Coerce an R object to an nlist_object().
nlist_object()
as.nlist(x, ...)# S3 method for numeric as.nlist(x, ...)# S3 method for list as.nlist(x, ...)# S3 method for data.frame as.nlist(x, ...)
# S3 method for numeric as.nlist(x, ...)
# S3 method for list as.nlist(x, ...)
# S3 method for data.frame as.nlist(x, ...)
An R object.
Unused
An nlist object.
numeric: Coerce named numeric vector to nlist
numeric
list: Coerce list to nlist
list
data.frame: Coerce data.frame to nlist
data.frame
# NOT RUN { as.nlist(list(x = 1:4)) as.nlist(c(`a[2]` = 3, `a[1]` = 2)) # }
Run the code above in your browser using DataLab