bin | R Documentation |
This function divides the range of ‘x’ into intervals and codes the values in ‘x’ according to which interval they fall
bin(x, binWidth, viewport, stringsAsFactors)
x |
Numeric or Date vector to bin |
binWidth |
number to increment bin bounds by, or string for dates ex: 'month' |
viewport |
List of min and max values to consider as the range of data |
stringsAsFactors |
logical indicating whether a factor or character vector should be returned |
Character vector (or factor) of coded values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.