merge_2_named_vec_as_df | R Documentation |
Merge two named vectors by names, into a dataframe with 2 columns.
merge_2_named_vec_as_df(x, y)
x |
A vector with named elements. |
y |
Another vector with named elements. |
# a <- 1:5; names(a) <- letters[a]; b <- 9:3; names(b) <- letters[b]; merge_2_named_vec_as_df(a,b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.