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

Add function to format any dataset following RecruitNet structure #16

Open
Pakillo opened this issue Jul 11, 2024 · 1 comment
Open

Comments

@Pakillo
Copy link
Member

Pakillo commented Jul 11, 2024

so people can use their own data
fixing column names as in RecruitNet database

@jmalcan
Copy link
Collaborator

jmalcan commented Jul 21, 2024

I'm trying to preprare such function, but I'm not convinced now. I think that it would take less time for users to change the 5 column names in their csv files than learning and using any function where they will have to type the names of their variables anyways. Alternatively, we can:
(1) explain at the very beginning of R help files, that the analyses conducted by this package require two datasets, which can be RecruitNet.csv and CanopyCover.cvs or two similar files supplied by the user: one with the interactions data, containing, at least, columns with the names "Study_site", "Plot", "Canopy", "Recruit" and "Frequency", and another with cover data with, at least, the columns "Study_site", "Plot", "Canopy", "Cover" and "Sampled_distance_or_area". The meaning of the variables and internal structure of these files woud also be explained.
(2) add checks in the visible functions to ensure that the required column names occur in the user's data sets. For example:
if ("Study_site" %in% names(int_data) == FALSE) warning("ERROR: your interactions data lacks a column named: Study_site")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants