npe_change_native_status {neonPlantEcology}R Documentation

Change the native status code for a particular taxon at a particular site

Description

Sometimes even though a particular species identity is not known, the end user can still determine its native status. For example, maybe the taxon was identified to the genus level, and the local flora confirms that all plants in that genus are native at that particular site. This function allows for post-hoc modification of the native status code for cases like this.

Usage

npe_change_native_status(df, taxon, site, new_code)

Arguments

df

is the data frame returned by npe_longform

taxon

is the taxonID column in the data frame

site

is the identity of the NEON site (e.g. "JORN")

new_code

is the NativeStatusCode value to change to

Value

a data frame

Examples


data("D14")
lf_div <- npe_longform(D14)
modified_lf_div <- npe_change_native_status(lf_div, "ABUTI", "JORN", "N")


[Package neonPlantEcology version 1.6.1 Index]