search for: traitdf

Displaying 1 result from an estimated 1 matches for "traitdf".

2005 Feb 03
1
Efficient selection and alteration of dataframe records
...weighted probabilities) and replacing the lost individuals with species identities randomly sampled from the remaining individuals. Thus I use two dataframes. One contains all the individuals and their species identities (plotdf). The other contains each species and their associated weights (traitdf). While I have code that works, it runs slowly. I suspect there is a more efficient way. First, I 'sample' one species from the species file (traitdf), then I use that result to 'subset' the individuals dataframe (plotdf) into two new files: individuals of the extincted specie...