Rdocumentation
powered by
Learn R Programming
mosaic (version 0.8-18)
ntiles: Create factor based on roughly equally sized groups
Description
Create factor based on roughly equally sized groups
Usage
ntiles(x, n = 3)
Arguments
x
a numeric vector
n
number of quantiles
Examples
Run this code
ntiles(
1
:
50
,
4
)
Run the code above in your browser using
DataLab