View source: R/utils-functions.R
multi_sub | R Documentation |
Multiple Column Subset
multi_sub(dat, key.dat, vars = names(key.dat))
dat |
A |
key.dat |
A |
vars |
Character string of columns in |
A data.frame, data.table
subsetted by key.dat
.
cow_index<-demcon::cow_index()
names(cow_index)[1]<-"COWcode"
dat <- demcon::get_vdem()
dat <- demcon::multi_sub(dat, cow_index, vars = c("COWcode", "year"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.