You don't show us your input so difficult to help you. See Minimal Reproducible Example
Does the data.frame coordenadas
looks correct?
You are aware that in your substr
manipulations you always extract one character?
You don't show us your input so difficult to help you. See Minimal Reproducible Example
Does the data.frame coordenadas
looks correct?
You are aware that in your substr
manipulations you always extract one character?