Hi all, Tnx for all the replies: Mike Colvin provided a simple answer in one step.
Bats.cast <- dcast(data = Bats.melt, formula = Species ~ Location, fill =0) FYI the 0 for NA is correct in this application as the NAs do not represent "missing data" but actually no occurrence of a critter in a given habitat location so the values need to be a 0. Tnx again, Bruce [[alternative HTML version deleted]] _______________________________________________ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology