colround {metools} | R Documentation |
colround round defined columns.
colround(x, start, end = ncol(x), digits)
x |
a dataframe |
start |
number of start column |
end |
number of last column (default=last) |
digits |
number of round digits |
Return a dataframe with transformed columns.
v=data.frame(c(3.255,5.826,4.567,2.462))
v=colround(v,1,digits=1)