powered by
x should be a list with properties described in section "Details".
x
# S3 method for list as.keyvalue(x, ...)
a list with properties described in the details section.
list
further arguments passed to as.keyvalue.
as.keyvalue
The function returns an object of class keyvalue (and list.
keyvalue
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.
# NOT RUN { ex <- list( fruit = c("banana", "orange", "kiwi"), car = c("SAAB", "Volvo", "taxi", "truck"), animal = c("elephant") ) as.keyvalue(ex) is.keyvalue(ex) # }
Run the code above in your browser using DataLab