checkNames: Check Attribute Validity

View source: R/fun_checking.R

checkNamesR Documentation

Check Attribute Validity

Description

This function checks that the attribute names supplied by user are indeed present in a dataset without importing it, so that a large object is only read when attributes are valid. This function is not meant to be called directly by user but called before importing data.

Usage

checkNames(folder, layer = NULL, user_names, name = NULL)

Arguments

folder

Folder where spatial file or files are stored

layer

Layer name if several layers present in folder

user_names

A named vector of attributes, names being the target EcoservR name and items being the actual name in dataset

name

The name of the dataset that is being checked, to customise error message if needed

Value

A list of spatial files


ecoservR/ecoserv_tool documentation built on April 5, 2025, 1:49 a.m.