Hi,
you might try writing your own function, something like
roundDown <- function(x) floor(x/100)*100
> roundDown(c(2282,174,273,432))
[1] 2200 100 200 400
and than apply it to your column.
Please use ?dput next time to present your data, and post in plain text,
instead of HTML.
best,
dan
Hi,
check ?cut or ?findInterval
dat <- read.table(text="partner1 partner2 Substract
1_5000_5001_1 1 5001 2282.3435
1_5000_10001_15000 1 10001 174.1275
1_5000_15001_2 1 15001 273.822
1_5000_20001_25000 1 20001 546.27
1_5000_25001_
2 matches
Mail list logo