Description Usage Arguments Details Value Author(s)
View source: R/code_fill_par.R
Optionally fill out Level 2 habitat codes if Level 1 codes exist and vice versa.
1 | code_fill_par(x, level1.recode, level2.recode, subset, num.cores, verbose)
|
x |
A wide format dataframe with one column per habitat category. As output by RL_fetch(). |
level1.recode |
(optional) Logical. If Level 2 habitat info exists, should the corresponding Level 1 habitat be given the same info? See Details. Default is TRUE. |
level2.recode |
(optional) Logical. If Level 1 habitat info exists, should the corresponding Level 2 habitats be given the same info? See Details. Default is TRUE. |
subset |
(optional). Numeric. Specify proportion of x to run for between 0 and 1. Defaults to 1. |
num.cores |
(optional) Numeric. Specify number of cores to use if running in parallel. Default is number of CPU cores available - 1. |
verbose |
(optional) Numeric. If 0 gives no progress update, if 1 prints progress bar, if 2 prints 1 row per task completed. Default is 1. |
The level1.recode
parameter will fill upstream Level 1 habitat categories if any Level 2 categories have habitat information. e.g. if habitat category 2.1 (Dry Savanna) is suitable and of major importance (coded as 31), habitat category 2 (Savanna) will be filled with this info too.
Similarly, level2.recode
will fill all downstream Level 2 habitat categories if the corresponding Level 1 category is filled. e.g. if if habitat category 2 (Savanna) is suitable and of major importance (coded as 31), habitat categories 2.1 (Dry Savanna) and 2.2 (Moist Savanna) will be given the same information.
A dataframe in wide format (one column per habitat type and one row per species' season).
Matt Lewis, matthewlewis896@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.