Description Usage Arguments Author(s) Examples
View source: R/util_list2vector.R
Extracts items from a list and returns a vector. Note that this only works with lists that follows the structure in the example below.
1 | util_list2vector(fields, index)
|
fields |
Character vector. Vector of names in the list. |
index |
List. |
Ivan Jacob Agaloos Pesigan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | index <- list(
firstname = "Ivan Jacob",
lastname = "Pesigan",
province = "BC",
number = 27
)
util_list2vector(
fields = c(
"firstname",
"lastname",
"province",
"number"
),
index = index
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.