cleanFun | R Documentation |
Cleans output from GStar or Irid. Cleaning is user-defined and based on either hdop or 2d/3d fix status. Outputs three results in list format: Cleaned Data, "Bad" data and a report. Data is also cleaned if the 'dist' (from as.ltraj) is greater than the 98 percentile.
cleanFun(
data,
projectedproj,
fixstat = "X2D.3D",
hdopC = "HDOP",
cval = 3,
hval = 10,
filename
)
data |
SpatialPointsDataFrame as outputed from GStar or Irid. |
fixstat |
name of 2d/3d fix column. Defaults to 'X2D.3D' |
hdopC |
name of HDOP column. Defaults to 'HDOP' |
cval |
Cutoff for 2d/3d fix status. Valid values are 2 or 3. 3 will only use 3d fixes while 2 uses 2 and 3. |
hval |
Cutoff for hdop quantile cutoff. Default is 10 which is equalt to 90th quantile. |
filename |
Full path to store cleaning report file. |
spp |
Character vector of species name (eg. 'Deer') |
Resulting object is a list of three elements. First element is a SpatialPointsDataFrame of all the GPS data which met the cleaning critera, the second element is all the "bad" data cleaned by set parameters and a report of what data was cleaned and for what reason. Accessing the "good" spatial data is done by cleanFun()[1] Accessing the "bad" spatial data is done by cleanFun()[1] Accessing the cleaning report is done by cleanFun()[1]
cleanFun(data, projectproj = "+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m +no_defs", filename='CleanRep',cval=3,hval=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.