Description Usage Arguments Value
View source: R/InputOccDataSummary.R
THIS FUNCTION IS STILL UNDER REVIEW - This function takes .rdata files created by the Data_cleaning.function and calculates how many species have records in each region follwoing the data cleaning process. Furthermore, this function can be used to extract the first and last year of data for each species following the data cleaning process.
1 2 3 4 5 6 7 8 9 | InputOccDataSummary(
indata = "data/model_runs/",
output_path = "output/",
minNyear = 2,
minNrecs = 50,
save_name = "cirrus",
outhwaite_spp_clean = TRUE,
species_year_summary = TRUE
)
|
indata |
The file path to a folder contain .rdata output files from the Data_cleaning.function |
output_path |
The file path for the location where we want to save the outputs |
minNyear |
The minimum number of years of records a site needs to be included in the final modelled dataset |
minNrecs |
The total (across all regions) minimum number of records a species needs to be included in the final modelled dataset |
save_name |
the name of the file to be saved |
outhwaite_spp_clean |
Set to TRUE or FALSE. ONly include species included in Outhwaite's data paper |
species_year_summary |
Do you want to save a file that extracts the year of the first and last record for the each species. This is calculated post occupancy model filtering, e.g. site with < X years dropped. |
A .csv file summarising the number of species included for each region from the cleaned dataset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.