-
Notifications
You must be signed in to change notification settings - Fork 3
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 datasets #19
Merged
Merged
Add datasets #19
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e94c6fd
Added datasets and testing. Working on documentation.
Tess-LaCoil a849a8e
Updated data file documentation.
Tess-LaCoil 4b87d38
Slightly updated description of metabolic data to not have a copy-pas…
Tess-LaCoil 8794597
Forgot to change format reference name.
Tess-LaCoil 771e3dd
Removed metabolic rate data as it's not set up for DE fitting.
Tess-LaCoil 815cfb3
Removed .rd file for metabolic data.
Tess-LaCoil 2531276
Updated vb model to have a y_max parameter pass in as the initial mea…
Tess-LaCoil c766035
Updated example G. recondita data to avoid individuals with <1.5cm gr…
Tess-LaCoil e407b60
Replaced G. recondita with H. triandra data because I forgot I need t…
Tess-LaCoil 7cace13
Removed vB model as it needs fixing on its own branch.
Tess-LaCoil d24bb01
Removed vb from the switch call in rmot_models.R
Tess-LaCoil ed3c5d5
Added P. tenufolium small tree data.
Tess-LaCoil 3b96839
Merge branch 'add-datasets' of https://github.com/traitecoevo/rmot in…
Tess-LaCoil 26cf09a
Updated documentation of data to have correct sample size.
Tess-LaCoil eadddc4
Forcing update of documentation.
Tess-LaCoil f01b7ec
Finally got the documentation to work.
Tess-LaCoil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,6 @@ src/rmot.dll | |
|
||
# Bugged directory from snapshot package | ||
tests/testthat/_snaps | ||
|
||
# Data prep files | ||
data-raw/ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ Suggests: | |
mnormt | ||
VignetteBuilder: knitr | ||
Config/testthat/edition: 3 | ||
LazyData: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#' SUSTAIN Salmo trutta data | ||
#' | ||
#' A subset of data from the SUSTAIN trout capture-recapture data set | ||
#' from Moe et al. (2020). | ||
#' Data prepared by taking a stratified sample of individual IDs based on the | ||
#' number of observations per individual: 25 individuals with 2 observations, | ||
#' 15 with 3, 10 with 4. Within the groups a simple random sample | ||
#' without replacement was used. Data was then transformed and | ||
#' renamed to match the required structure to act as demonstration for | ||
#' the package. | ||
#' | ||
#' @format ## `Trout_Size_Data` | ||
#' A data frame with 135 rows and 4 columns: | ||
#' \describe{ | ||
#' \item{ind_id}{ID number for individual} | ||
#' \item{time}{Years since first capture and tagging of individual.} | ||
#' \item{y_obs}{Individual length in centimetres.} | ||
#' \item{obs_index}{Index of observations for individual} | ||
#' } | ||
#' @source <https://doi.org/10.3897/BDJ.8.e52157> | ||
"Trout_Size_Data" | ||
|
||
#' Skink size data - Lampropholis delicata | ||
#' | ||
#' A subset of data from Kar, Nakagawa, and Noble (2024), used to model growth | ||
#' behaviour in a skink species. | ||
#' Data was prepared by taking a simple random sample with replacement of 50 | ||
#' individual IDs among individuals with at least 5 observations each. Data was | ||
#' then transformed to conform to the needs of a model data set in the package. | ||
#' | ||
#' @format ## `Lizard_Mass_Data` | ||
#' A data frame with 336 rows and 4 columns: | ||
#' \describe{ | ||
#' \item{ind_id}{ID number for individual} | ||
#' \item{time}{Days since first observation.} | ||
#' \item{y_obs}{Individual mass in kilograms.} | ||
#' \item{obs_index}{Index of observations for individual} | ||
#' } | ||
#' | ||
#' @source \url{https://osf.io/hjkxd/} | ||
"Lizard_Mass_Data" | ||
|
||
#' Protium tenufolium - Barro Colorado Island data | ||
#' | ||
#' A subset of data from the Barro Colorado Island long term forest plot | ||
#' managed by the Smithsonian Tropical Research Institute (Condit et al. 2019). | ||
#' Data was prepared by taking a simple random sample without replacement of | ||
#' 30 individual IDs from Protium tenufolium. | ||
#' The sampling frame was restricted to individuals with individuals under 10cm | ||
#' for the max observed DBH, 6 observations since 1990. Data was then | ||
#' transformed and renamed to match the required structure | ||
#' to act as demonstration for the package. | ||
#' | ||
#' @format ## `Small_Tree_Size_Data` | ||
#' A data frame with 180 rows and 4 columns: | ||
#' \describe{ | ||
#' \item{ind_id}{ID number for individual} | ||
#' \item{time}{Years since first observation.} | ||
#' \item{y_obs}{Individual diameter at breast height (DBH) in centimetres.} | ||
#' \item{obs_index}{Index of observations for individual} | ||
#' } | ||
#' @references \url{https://doi.org/10.1002/ecy.4140} | ||
#' @source \url{https://doi.org/10.15146/5xcp-0d46} | ||
"Small_Tree_Size_Data" | ||
|
||
#' Hirtella triandra - Barro Colorado Island data | ||
#' | ||
#' A subset of data from the Barro Colorado Island long term forest plot | ||
#' managed by the Smithsonian Tropical Research Institute (Condit et al. 2019). | ||
#' Data was prepared by taking a simple random sample without replacement of | ||
#' 30 individual IDs from Hirtella triandra. The sampling frame was restricted | ||
#' to individuals with 6 observations since 1990, and a difference between | ||
#' observed max and min sizes of more than 7cm in order to avoid identifiability | ||
#' issues. Data was then transformed and renamed to match the required structure | ||
#' to act as demonstration for the package. | ||
#' | ||
#' @format ## `Tree_Size_Data` | ||
#' A data frame with 180 rows and 4 columns: | ||
#' \describe{ | ||
#' \item{ind_id}{ID number for individual} | ||
#' \item{time}{Years since first observation.} | ||
#' \item{y_obs}{Individual diameter at breast height (DBH) in centimetres.} | ||
#' \item{obs_index}{Index of observations for individual} | ||
#' } | ||
#' @references \url{https://doi.org/10.1002/ecy.4140} | ||
#' @source \url{https://doi.org/10.15146/5xcp-0d46} | ||
"Tree_Size_Data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this suggests you won't track this folder in git. So do you have good local copies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, they're all public data and I have Dropbox backups.