Usage Arguments Author(s) Examples
1 | xcol(d, cols)
|
d |
A dataframe |
cols |
A character vector of new column names, of length less than or equal to the number of columns in the table |
JFP
1 2 3 4 5 | d <- data.frame(n=c("x", "y", "x", "z", "z", "y"),
p=c(0,15,12,20,25,14),
stringsAsFactors=FALSE
)
d %>% xcol("m")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.