LocalOccurrenceData: Occurrence module: LocalOccurrenceData

Description Usage Arguments Data type Version Date submitted Author(s) See Also

View source: R/LocalOccurrenceData.R

Description

Occurrence module to format local occurrence data to be used with zoon. Must be a .csv file with three columns longitude, latitude and value in that order. Other columns will be kept. A column named CRS can be supplied if the coordinates are not lat/long. CRS should contain the proj4string for the coordinate system of the data (for example "+init=epsg:27700" for easting/northing data). If a CRS column is supplied longitude is taken to be the X coordinate and latitude the Y coordinate.

Usage

1
2
3
LocalOccurrenceData(filename = "myData.csv", occurrenceType = "presence",
  columns = c(long = "longitude", lat = "latitude", value = "value"),
  subsetSpecies = NULL, externalValidation = FALSE)

Arguments

filename

The path to the spreadsheet. The spreadsheet should have a header giving column names. The column names should be "longitude", latitude, and "value". "value" is a numeric such as a proportion, count or presence/absence (1/0). The file can be .csv, .tab, .tsv, or .xlsx

occurrenceType

What type data is it? One of "presence", "presence/absence", "abundance", "probability"

columns

Which columns in the spreadsheet relate to longitude, latitude and response value? Takes a named character vector e.g. c(long = "longitude", lat = "latitude" value = "responseVals"). If an unnamed character vector is given, the order is assumed to be long, lat, value.

subsetSpecies

Do you need to subset your spreadsheet by species? Supply a character vector of species name and the column name it is specified in (in that order)

externalValidation

Logical indicating whether this data is external validation data. Cross validation is handled elsewhere and this argument should be left as FALSE for data that will be used in cross validation. This is ignored if the user supplies a "fold" column.

Data type

presence-only, presence/absence, abundance, proportion

Version

1.3

Date submitted

2017-12-17

Author(s)

ZOON Developers, David Wilkinson, zoonproject@@gmail.com

See Also

Other occurrence: AnophelesPlumbeus, CWBZimbabwe, CarolinaWrenPA, CarolinaWrenPO, LocalOccurrenceDataFrame, Lorem_ipsum_UK, NATrees, NaiveRandomPresenceAbsence, NaiveRandomPresence, SpOcc, SugarMaple, UKAnophelesPlumbeus, malariaAtlas_PR


zoonproject/modules documentation built on May 4, 2019, 11:25 p.m.