Learn R Programming

timbeR (version 2.0.1)

select_and_remove: 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

Run this code
# NOT RUN {
# }
# NOT RUN {
library(dplyr)
library(timbeR)

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

Run the code above in your browser using DataLab