View source: R/select_and_remove.R
select_and_remove | R Documentation |
Delete unwanted records from the dataset (e.g. outliers) by selecting them in a scatter plot.
select_and_remove(data, xvar, yvar)
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. |
the data.frame given to the data
argument, without the selected points.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.