My question is simple and hopefully can be answered quickly. I have a code in R that is for calculating home ranges. Everything works except one line of the code, which I've included here:
locoh <- lapply(dat, function(x) rhrLoCoH(x[ c("LONGITUDE", "LATITUDE")]))
The error I get is as follows:
Error in `[.data.frame`(x, c("LONGITUDE", "LATITUDE")) : undefined columns selected
My guess is that I have messed up somewhere with my commas, but I'm not sure where or how to fix it.