AgeGroups: Return A Factor Variable Of Age Groups - RDocumentation
Maybe your like
SciencesPo (version 1.02.12)
Description
Usage
Arguments
encoding
Examples
Run this code# The age groupings used by IBGE (grandes grupos).# simulate vector with 1000 age valuesage <- sample(0:100, 1000, replace = TRUE) mean(age); sd(age); ageGroups(age, breaks = c(0, 14, 64, Inf), labels = NULL ) ageGroups(age, breaks = c(0, 14, 64, Inf), labels = c("<14", "15-64", "65+") ) ibge_brks = c(0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, Inf) ibge_lbls = c("0-4", "5-9", "10-14", "15-19", "20-24", "25-29", "30-34", "35-39", "40-44", "45-49", "50-54", "55-59", "60-64", "65-69", "70+") ageGroups(age, breaks = ibge_brks, labels = ibge_lbls )Run the code above in your browser using DataLab
Tag » How To Group Ages In Rstudio
-
Dplyr Way(s) And Base R Way(s) Of Creating Age Group From Age
-
Split Ages Into Age Groups — Age_groups • AMR (for R)
-
Create Agegroups In R Using The Patients Ages. Code Included.
-
Split Ages Into Age Groups - R
-
How To Group Ages In Specific Range Using R - Stack Overflow
-
Put Ages Into Age Groups - RPubs
-
How To Group Age In Data Graph? : R/RStudio - Reddit
-
6.3 Group_by() And Ungroup() | R For Graduate Students - Bookdown
-
How To Use Anova Test In R Studio To Find Whether The Age Group ...
-
Chapter 10 Dplyr - Data Manipulation | Tabular Data Analysis With R ...
-
Basic Statistical Analysis Using The R Statistical Package - SPH
-
13 Grouping Data | The Epidemiologist R Handbook
-
How To Count By Group In R - InfoWorld