Description Usage Arguments Value Examples
When use col2percent function to add a percent in a column, the type of this column now is character, colpct2num function remove percent from this column and transform in number.
1 | colpct2num(x, start, end = ncol(x), div100 = TRUE)
|
x |
a dataframe |
start |
number of start column |
end |
number of last column (default=last) |
div100 |
division by 100 (T or F)(default=T) |
Return a dataframe with transformed columns.
1 2 3 | v=data.frame(c(15,5,20,50,10))
v=col2percent(v,start=1)
v=colpct2num(v,start=1,div100=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.