add_info: Add sampling info to layers

View source: R/gen_sampling_funs.R

add_infoR Documentation

Add sampling info to layers

Description

Add attributes and fields to layers that you will want to collect in the field. Pass in a data.frame with each row a unique attribute field with the name spacified (e.g. comment), the type of data (e.g. text), and the default value (e.g. foobar).

Usage

add_info(layer, info)

Arguments

layer

An 'sf' class object to add information to

info

A data.frame with each row representing a new attribute field. Must have columns called; 'name', 'type', 'default'. Put the name of the attribute field in the rows of the 'name' column, the type of data in the 'type' column (text, integer, real, or logical), and the desired default value in the 'default' column.

Value

A 'sf' object with the added information added.


paulhegedus/SampleBuilder documentation built on July 21, 2023, 9:35 a.m.