select_and_remove {timbeR}R Documentation

Remove unwanted data by selecting it

Description

Delete unwanted records from the dataset (e.g. outliers) by selecting them in a scatter plot.

Usage

select_and_remove(data, xvar, yvar)

Arguments

data

a data.frame.

xvar

quoted name of the variable to be displayed in the x axis.

yvar

quoted name of the variable to be displayed in the y axis.

Value

the data.frame given to the data argument, without the selected points.

Examples


## Not run: 
library(dplyr)
library(timbeR)

tree_scaling <- tree_scaling %>%
mutate(did = di/dbh,
       hih = hi/h) %>%
select_and_remove(., 'hih', 'did')

## End(Not run)


[Package timbeR version 2.0.1 Index]