prepNHMData: Reads a .csv file and converts it to a filtered sf object (a...

Description Usage Arguments Value Examples

View source: R/prepNHMData.R

Description

prepNHMData Reads in old format geospatial data taking user input. Terminal prompts ask for path to data and layer type, once entered prepIUCNData is read in and reformated to 'sf' format. Spaces in the binomial column are replaced with _

Usage

1
prepNHMData(x, indexToChange = NULL)

Arguments

x

a csv file containing NHM records

indexToChange

if the index you need to change is already known please enter it here to save time. Including this mostly to make the vignette run properly as it doesn't like terminal input. Default of NULL as in most cases I would assume the index is unknown and this function works fine outside of the vignette.

Value

An object of class sf (a data frame) with a column renamed to binomial, with binomial names underscorred, filtered to exclude NA values.

Examples

1
2
3
4
5
data.frame <- prepNHMData()
'please enter path'
path/to/your/data
'please enter column index to rename'
YourIndexHere

JCur96/sfe documentation built on Sept. 2, 2020, 6:02 p.m.