Uso
ftc_grupos_edad(tbl, breaks = 10, labels = NULL)
ftc_compute_grupos_edad(tbl, breaks = 10, labels = NULL)
Argumentos
- tbl
data.frame: Conexión a base de datos o data.frame con los datos
- breaks
Puntos de corte para la variable. Vea
See also
para más detalles.- labels
Nombres para los grupos de la variable. Vea
See also
para más detalles.
Valor
data.frame: Los datos suministrados en el argumento tbl
con
la variable grupos_edad
adicionada.
Ver también
Vea Dmisc::cut3
Ejemplos
encft <- data.frame(EDAD = c(0:100))
ftc_grupos_edad(encft)
#> EDAD grupos_edad
#> 1 0 (-0.1,10]
#> 2 1 (-0.1,10]
#> 3 2 (-0.1,10]
#> 4 3 (-0.1,10]
#> 5 4 (-0.1,10]
#> 6 5 (-0.1,10]
#> 7 6 (-0.1,10]
#> 8 7 (-0.1,10]
#> 9 8 (-0.1,10]
#> 10 9 (-0.1,10]
#> 11 10 (-0.1,10]
#> 12 11 (10,20]
#> 13 12 (10,20]
#> 14 13 (10,20]
#> 15 14 (10,20]
#> 16 15 (10,20]
#> 17 16 (10,20]
#> 18 17 (10,20]
#> 19 18 (10,20]
#> 20 19 (10,20]
#> 21 20 (10,20]
#> 22 21 (20,30]
#> 23 22 (20,30]
#> 24 23 (20,30]
#> 25 24 (20,30]
#> 26 25 (20,30]
#> 27 26 (20,30]
#> 28 27 (20,30]
#> 29 28 (20,30]
#> 30 29 (20,30]
#> 31 30 (20,30]
#> 32 31 (30,40]
#> 33 32 (30,40]
#> 34 33 (30,40]
#> 35 34 (30,40]
#> 36 35 (30,40]
#> 37 36 (30,40]
#> 38 37 (30,40]
#> 39 38 (30,40]
#> 40 39 (30,40]
#> 41 40 (30,40]
#> 42 41 (40,50]
#> 43 42 (40,50]
#> 44 43 (40,50]
#> 45 44 (40,50]
#> 46 45 (40,50]
#> 47 46 (40,50]
#> 48 47 (40,50]
#> 49 48 (40,50]
#> 50 49 (40,50]
#> 51 50 (40,50]
#> 52 51 (50,60]
#> 53 52 (50,60]
#> 54 53 (50,60]
#> 55 54 (50,60]
#> 56 55 (50,60]
#> 57 56 (50,60]
#> 58 57 (50,60]
#> 59 58 (50,60]
#> 60 59 (50,60]
#> 61 60 (50,60]
#> 62 61 (60,70]
#> 63 62 (60,70]
#> 64 63 (60,70]
#> 65 64 (60,70]
#> 66 65 (60,70]
#> 67 66 (60,70]
#> 68 67 (60,70]
#> 69 68 (60,70]
#> 70 69 (60,70]
#> 71 70 (60,70]
#> 72 71 (70,80]
#> 73 72 (70,80]
#> 74 73 (70,80]
#> 75 74 (70,80]
#> 76 75 (70,80]
#> 77 76 (70,80]
#> 78 77 (70,80]
#> 79 78 (70,80]
#> 80 79 (70,80]
#> 81 80 (70,80]
#> 82 81 (80,90]
#> 83 82 (80,90]
#> 84 83 (80,90]
#> 85 84 (80,90]
#> 86 85 (80,90]
#> 87 86 (80,90]
#> 88 87 (80,90]
#> 89 88 (80,90]
#> 90 89 (80,90]
#> 91 90 (80,90]
#> 92 91 (90,100]
#> 93 92 (90,100]
#> 94 93 (90,100]
#> 95 94 (90,100]
#> 96 95 (90,100]
#> 97 96 (90,100]
#> 98 97 (90,100]
#> 99 98 (90,100]
#> 100 99 (90,100]
#> 101 100 (90,100]