Skip to content
Prev 1723 / 7420 Next

Converting species counts into species list

Something like,

   rep(df$species, times=df$abundance)

or more generically...

   rep(df[,1], times=df[,2])

should work.

Cheerio,
Dan

Daniel Pritchard
PhD Student
Department of Botany
University of Otago
Dunedin, New Zealand

daniel.pritchard at botany.otago.ac.nz
On 6 Dec 2010, at 08:08, Ophelia Wang wrote: