age_cat | R Documentation |
function to categorize ages From http://www.r-bloggers.com/r-function-of-the-day-cut
age_cat(x, lower = 0, upper, by = 10, sep = "-", above.char = "+", style = 1)
x: |
Vector with age as numeric. |
lower: |
int lower age |
upper: |
int upper age |
by: |
int every |
sep: |
char default "-". |
above.char: |
default "+". |
style: |
1 = '50 - 54', 2 = '50', 3 = '11'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.