I have a question that I have been trying to figure out and I imagine there is a very simple answer to it.
I am trying to use the distAB function in the clim.pact package I have a dataframe with 4 columns in which A is ref pt and B is site 1. longitude of A 2. Latitude of A 3. longitude of B 4. Latitude of B Problem is the columns are unequal in length column 1 and 2 are length=29 and 3 and 4 length=53 What I want to do is create a matrix which are filled with values of distAB for B (site) at all levels of A (reference points) Any ideas? Melanie ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.