View source: R/data_manipulation_functions.R
safe_pluck_list | R Documentation |
Safe Pluck List This function is used to safely pluck named value from a list of named lists. This will return a vector of values the length of the list. If the named list doesn't have the name, an NA will be returned.
safe_pluck_list(lst, n)
lst |
A list of named lists list1 = list( list("name" = "col1", "display_name" = "Column1", "type" = "x"), list("name" = "col2", "type" = "x") ) |
n |
A string. If the string is a name in the named lists, the value of that string will be returned, otherwise NA. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.