Description Usage Arguments Details Value See Also Examples
View source: R/as.keyvalue.list.R
x
should be a list with properties described in section "Details".
1 2 | ## S3 method for class 'list'
as.keyvalue(x, ...)
|
x |
a |
... |
further arguments passed to |
All names of the list elements should be unique.
All elements of the list should be named.
All keys should be unique (a key should only be mappad to one value).
All elements of the list should be atomic vectors.
The function returns an object of class keyvalue
(and list
.
as.keyvalue
1 2 3 4 5 6 7 | ex <- list(
fruit = c("banana", "orange", "kiwi"),
car = c("SAAB", "Volvo", "taxi", "truck"),
animal = c("elephant")
)
as.keyvalue(ex)
is.keyvalue(ex)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.