Description Usage Arguments Examples
View source: R/append_cols_df.R
Reads two data frames x, y
and based on the user defined key
columns key_x, key_y
, add the columns described by append_y
to the x
table.
1 | append_cols_df(x, y, key_x, key_y, append_y)
|
x |
Main working data frame. |
y |
Secondary data frame containing columns to be added in the main one. Columns that do not match with x will be excluded. |
key_x |
Character string describing key column of the first data frame. You can use partial matching. |
key_y |
Character string describing key column of the second data frame. You can use partial matching. |
append_y |
Character vector containing strings that match the columns to be added in the main data frame. You can use also partial matching. |
1 2 3 4 5 6 | add_me <- colnames(y)[c(4, 10)]
ap <- append_cols_df(x = k3,
y = y,
key_x = "Protein A",
key_y = "Entry$",
append_y = add_me)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.