filter_pts: Update filter values

View source: R/filter_pts.R

filter_ptsR Documentation

Update filter values

Description

filter_pts updates filter values (altering the original dataframe).

filter_pts_reset resets all filter values to FALSE (altering the original dataframe).

filter_pts_resample resets sampling order (altering the original dataframe).

Usage

filter_pts(
  indata,
  metric,
  value,
  inlayer = NULL,
  id_fieldname = "idfield",
  byfield = FALSE,
  reverse = FALSE,
  samplesize = 1e+05,
  sid = "sid3",
  par1 = NA
)

filter_pts_reset(indata, filters = NA)

filter_pts_resample(indata)

Arguments

indata

TODO

metric

one between f_rangev, f_rangey, f_zscorey, f_rbiasy, f_rangeq, f_pos, f_editmap, f_selpts

value

value or values to apply (depending on metric)

inlayer

optional: sf of fields (see also id_fieldname)

id_fieldname

optional: name of the inlayer field containing unique ID of fields (default: "idfield")

byfield

if FALSE (default), consider data as a unique field; if TRUE, iterate each filter on field id_fieldname

reverse

if TRUE, the filter is applied reversed (this makes sense only for f_editmap and f_selpts). default is FALSE.

samplesize

maximum size of the sample of the original data to work with (default: 100000; if NA: all the points)

sid

character: name of the ID field to be used ("uid", "sid1", "sid2", "sid3" or "sid4")

par1

additional parameter for filtering (now used only for area to filter / not to filter NA values)

filters

TODO

Note

License: GPL 3.0

Author(s)

Luigi Ranghetti, phD (2019) ranghetti.l@irea.cnr.it


ranghetti/guinterp documentation built on March 30, 2024, 3:42 a.m.