View source: R/DataReformatting.R
add_column_after_specific_column | R Documentation |
During the data processing, some new columns need to be added, with unit conversions or newly calculated values. This function allows us to add those columns in specific locations to make analysis easier.
add_column_after_specific_column(
data,
new_data,
new_column_name = NULL,
old_column_name,
loop_structure
)
data |
The data containing the original columns |
new_data |
The new data which we want to include |
new_column_name |
The column name (or name pattern for loops) for the new data we would like to add |
old_column_name |
The marker column name (or name pattern for loops) where we want to add the new data |
loop_structure |
A boolean indicating whether this information is in a loop format (TRUE) or a single pair of variables (FALSE) |
Rpackage file: DataReformatting.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.