apply_scheme.Rd
The function applies a scheme to a data.frame or a sf object, which consists in keeping only variable that should be kept, renaming variables, and setting the type of variable.
apply_scheme(x, scheme, selection = NULL, name_origin = NULL)
data.frame or sf, data to be adapted.
data.frame, scheme to be applied.
list, for big scheme a way to select entries. See details
character, when different 'name_origin' are provided, a way to select the good one.
data adapted, keeping geometry for 'sf' objects.
'selection' should be a named list of vector, the name giving the column where to perform the selection.
'name_origin' should be a character pattern that will help to select between different possibilities in column names starting with "name_origin" in scheme. The simplest, the best.