colpct2num: Remove percent from a column, and transform in number

Description Usage Arguments Value Examples

View source: R/colpct2num.R

Description

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.

Usage

1
colpct2num(x, start, end = ncol(x), div100 = TRUE)

Arguments

x

a dataframe

start

number of start column

end

number of last column (default=last)

div100

division by 100 (T or F)(default=T)

Value

Return a dataframe with transformed columns.

Examples

1
2
3
v=data.frame(c(15,5,20,50,10))
v=col2percent(v,start=1)
v=colpct2num(v,start=1,div100=TRUE)

jvg0mes/metools documentation built on June 28, 2020, 2:38 a.m.