Learn R Programming

metools (version 1.0.0)

colround: Round defined columns

Description

colround round defined columns.

Usage

colround(x, start, end = ncol(x), digits)

Arguments

x

a dataframe

start

number of start column

end

number of last column (default=last)

digits

number of round digits

Value

Return a dataframe with transformed columns.

Examples

Run this code
# NOT RUN {
v=data.frame(c(3.255,5.826,4.567,2.462))
v=colround(v,1,digits=1)

# }

Run the code above in your browser using DataLab