trunc: Remove decimals from a value (significant numbers)

Description Usage Arguments Value Examples

View source: R/trunc.R

Description

Remove decimals from a value (significant numbers)

Usage

1
trunc(x, ..., prec = 0)

Arguments

x

float value

...

extra

prec

number of removed decimals in the x value

Value

precision value

Examples

1
2
x<-129.317313
trunc(x,prec=4)

FrankBaut/geospatial documentation built on Nov. 27, 2020, 12:11 p.m.