Remove specific points from an exdf object
remove_points.Rd
Removes all points from an exdf
object that satisfy a set of
conditions.
Value
An exdf
object formed from exdf_obj
by removing all rows that
meet the conditions specified by the optional input arguments.
Examples
# Create an exdf object by reading a Licor Excel file
licor_file <- read_gasex_file(
PhotoGEA_example_file_path('ball_berry_1.xlsx')
)
# Print the number of points in the data set
nrow(licor_file)
#> [1] 28
# Remove the following:
# - All points where `obs` is 28 (1 point)
# - All points where `species` is `soybean` and `plot` is `1a` or `1b` (14 points)
licor_file <- remove_points(
licor_file,
list(obs = 28),
list(species = 'soybean', plot = c('1a', '1b'))
)
# There should now be 15 fewer points remaining in the data set
nrow(licor_file)
#> [1] 13