Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

intFun.bin

Make bins


Description

This function converts values into bins.

Usage

intFun.bin(x, bin)

Arguments

x

A raster object

bin

A number

Value

A raster object with binned values

Examples

library(raster)
data <- raster::raster(matrix(runif(100,0,100), ncol=10))
my.bin <- 25
# convert values to bins
bins <- intFun.bin(data, my.bin)
# plot data
plot(data);text(data)
plot(bins); text(bins)

amber

Automated Model Benchmarking R Package

v1.0.3
GPL-3
Authors
Christian Seiler [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.