mutate {ir} | R Documentation |
Mutate an ir
object by adding new or replacing existing columns
Description
Mutate an ir
object by adding new or replacing existing columns
Usage
mutate.ir(
.data,
...,
.keep = c("all", "used", "unused", "none"),
.before = NULL,
.after = NULL
)
transmute.ir(.data, ...)
Arguments
.data |
An object of class |
... |
< The value can be:
|
.keep |
Control which columns from
|
.before , .after |
< |
Value
.data
with modified columns. If the spectra
column is dropped or
invalidated (see ir_new_ir()
), the ir
class is dropped, else the object
is of class ir
.
Source
See Also
Other tidyverse:
arrange.ir()
,
distinct.ir()
,
extract.ir()
,
filter-joins
,
filter.ir()
,
group_by
,
mutate-joins
,
nest
,
pivot_longer.ir()
,
pivot_wider.ir()
,
rename
,
rowwise.ir()
,
select.ir()
,
separate.ir()
,
separate_rows.ir()
,
slice
,
summarize
,
unite.ir()
Examples
## mutate
dplyr::mutate(ir_sample_data, hkl = klason_lignin + holocellulose)
## transmute
dplyr::transmute(ir_sample_data, hkl = klason_lignin + holocellulose)