add_trait: Add a trait in trait list

Description Usage Arguments Value Author(s)

Description

Add trait and associated descriptors in trait list table

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
add_trait(
  new_trait = NULL,
  new_relatedterm = NULL,
  new_valuetype = NULL,
  new_maxallowedvalue = NULL,
  new_minallowedvalue = NULL,
  new_traitdescription = NULL,
  new_factorlevels = NULL,
  new_expectedunit = NULL,
  new_comments = NULL
)

Arguments

new_trait

string value with new trait descritors - try to avoid space

new_relatedterm

string related trait to new trait

new_valuetype

string one of following 'numeric', 'integer', 'categorical', 'ordinal', 'logical', 'character'

new_maxallowedvalue

numeric if valuetype is numeric, indicate the maximum allowed value

new_minallowedvalue

numeric if valuetype is numeric, indicate the minimum allowed value

new_traitdescription

string full description of trait

new_factorlevels

string a vector of all possible value if valuetype is categorical or ordinal

new_expectedunit

string expected unit (unitless if none)

new_comments

string any comments

Value

nothing

Author(s)

Gilles Dauby, gilles.dauby@ird.fr


gdauby/bdd_plots_central_africa documentation built on April 27, 2021, 1:30 a.m.