getSplitterConfig: Setup the config to split data depending on the local...

View source: R/getSplitterConfig.R

getSplitterConfigR Documentation

Setup the config to split data depending on the local authority

Description

Setup the config to split data depending on the local authority

Usage

getSplitterConfig(LA, SLA_Split_config)

Arguments

LA

which local authority

SLA_Split_config

config values

Examples

 config_keys <- c("bat_sp","plant_sp")
 bat_sp <- c("Chiroptera","Rhinolophidae","Vespertilionidae","Myotis","Barbastella","Eptesicus","Nyctalus","Pipistrellus","Plecotus","Vespertilio","Lasiurus","Tadarida","Hypsugo")
 plant_sp <- c("flowering plant" ,"clubmoss" ,"conifer" ,"fern" ,"fungus" ,"ginkgo" ,"horsetail" ,"lichen" ,"liverwort" ,"moss" ,"slime mould" ,"stonewort" ,"alga" ,"hornwort" ,"quillwort")
 config_values <- list(bat_sp,plant_sp)
 config_pairs <- list()                     # Create empty list
 for(i in 1:length(config_keys)) {              # Add key/value pairs in for-loop
   config_pairs[config_keys[i]] <- config_values[i]
 }
config <- getSplitterConfig(1,config_pairs)

ERICNorthEast/ERIC_Data_Proc documentation built on Dec. 5, 2023, 12:19 p.m.