Dirk Eddelbuettel — written Dec 14, 2012 — source
Data frames can be manipulated using the DataFrame
class. The
indvidiual vectors composing a data frame can be accessed by name,
modified, and then recombined into a new data frame.
Note the use of the _["a"]
syntax to create named arguments to the
DataFrame::create
function.
The function returns a modified copy of the data frame:
a b 1 1 x 2 2 foo 3 42 z
tags: dataframe
Tweet