addcols | R Documentation |
Supplied a character vector of column names, cnames
, addcols
will add one new, NULL
column to data
for each element of
cnames
and name it after the corresponding element of cnames
.
addcols(data, cnames, type = "character")
data |
The dataframe to add the columns to. |
cnames |
Character vector of one or more column names to be added to
|
type |
|
Dataframe data
with added columns listed in cnames
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.