-
Notifications
You must be signed in to change notification settings - Fork 11
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
Populate equation_id #47
Comments
I understand that the unique equations that we want to identify are the unique values of |
After removing duplicated rows from the library(allodb)
equations_table <- as_allodb(equations)
# Not the same:
nrow(equations_table)
#> [1] 178
length(unique(equations_table$equation_allometry))
#> [1] 147 Created on 2018-09-26 by the reprex package (v0.2.1) |
@maurolepore Maybe we need the equation_id before I start to test the splitted tables. It is too complicated right now, specially if I want to use the same equation for multiple sites. I was thinking the equation_id could be something like first letter of genus+first letter of sp+number..for example, there are 4 equations for Acer rubrum, we could use acru_001, acru_002, acru_003, acru_004. I think equation_id should not be too long (ie. a 14 digit random number!).. so maybe the time stamp idea work best.. what do you think? |
@gonzalezeb, I have updated the .csv database (233ef4c). Now the equations table has Closing now but feel free to reopen. |
Follows https://github.com/forestgeo/allodb/issues/36#issuecomment-423217920.
Here is a good way to generate random ids in R: ids::random_id().
The text was updated successfully, but these errors were encountered: