df.as.list | R Documentation |
Data Frame as List
df.as.list(df, names = 1, x = 2)
df |
A data frame. |
names |
Index used for naming list items. Integer or character, must
work with |
x |
Index used for list items. Integer or character, must work with
|
A list.
(df <- data.frame(
modules = c('power', 'macro', 'welfare', 'PE_FE_parameters',
'initialCap', 'aerosols'),
`*` = c('IntC', 'singleSectorGr', 'utilitarian', 'iea2014', 'on',
'exoGAINS'),
check.names = FALSE
))
df.as.list(df, 'modules', '*')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.