Format FIM data for the Tampa Bay Nekton Index
Arguments
- datin
input
data.frame
loaded fromread_importfim
- locs
logical indicating if a spatial features object is returned with locations of each FIM sampling station
Value
A formatted data.frame
with FIM data if locs = FALSE
, otherwise a simple features object if locs = TRUE
Details
Function is used internally within read_importfim
Examples
# file path
url <- 'https://raw.githubusercontent.com/tbep-tech/tbni-proc/master/data/'
fl <- 'TampaBay_NektonIndexData.csv'
csv <- url(paste0(url, fl))
datin <- read.csv(csv)
# load and assign to object
fimdata <- read_formfim(datin)
#> Warning: attribute variables are assumed to be spatially constant throughout all geometries