Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function to cast traitdata back into matrix format #19

Open
fdschneider opened this issue Nov 3, 2017 · 2 comments
Open

function to cast traitdata back into matrix format #19

fdschneider opened this issue Nov 3, 2017 · 2 comments
Milestone

Comments

@fdschneider
Copy link
Member

This is applying reshape::cast(). Only for 'aggregated' data without multiple measurements of one trait.

Otherwise, definitions must be set for how to aggregate data, if one taxon has multiple measurements for one trait. It is impossible to make advanced assumptions about the data quality.

@fdschneider
Copy link
Member Author

this is implemented with cast.traitdata(). For now this reshapes the dataset into a matrix, mainting all other structural information, be it observation level data, or species level data.

In the future, the function might be extended to compile aggregate measures from multiple values, e.g. by pulling them into means or ranges, and by handling categorical values into unified responses.

@fdschneider
Copy link
Member Author

the function argument fun.aggregate is forwarded to reshape::dcast() which can be used to define a method for aggregation. More testing required.

@fdschneider fdschneider added this to the v1.0 milestone Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant