Apply
In this exercise, you will "apply" the function female_residence_prop()
to obtain the proportion of female borrowers for both urban and rural areas for all years using the Map()
function.
Este ejercicio forma parte del curso
Scalable Data Processing in R
Instrucciones del ejercicio
spl
from the previous exercise is available in your workspace.
- Call
Map()
on each of the row splits ofspl
. - Recall that the function to apply is
female_residence_prop()
. Assign the result toall_years
. - View the
str()
ucture ofall_years
.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# For each of the row splits, find the female residence proportion
all_years <- ___(function(rows) ___(mort, rows), ___)
# Call str on all_years
___