powered by
Just checking if last number of a string is equal or not.
cpr_female(cpr)
Logical vector
Vector. cpr-numbers as ddmmyy"-."xxxx or ddmmyyxxxx. Also mixed formatting. Vector or data frame column.
cpr_female(stRoke::cprs[,1])
Run the code above in your browser using DataLab