colround {metools} | R Documentation |
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
v=data.frame(c(3.255,5.826,4.567,2.462))
v=colround(v,1,digits=1)
[Package metools version 1.0.0 Index]