View source: R/watanabe-df-manipulation.R
replaceValues | R Documentation |
Updates named column(s) in df
with given value(s) for the rows indicated by searchIndex
and returns new copy of df
.
replaceValues(df, searchIndex, ...)
df |
A dataframe |
searchIndex |
A logical vector with length equal to the number of rows in |
... |
Replacement columns and values, passed as consequetive arguments with the column name as the first argument and the new value as the second. |
A new copy up df
with the specified rows and columns updated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.