rename | R Documentation |
ir
objectsRename columns in ir
objects
rename.ir(.data, ...) rename_with.ir(.data, .fn, .cols = dplyr::everything(), ...)
.data |
An object of class |
... |
For For |
.fn |
A function used to transform the selected |
.cols |
< |
.data
with renamed columns. If the spectra
column is renamed,
and no new valid spectra
column is created, the ir
class is dropped, else
the object is of class ir
.
dplyr::rename()
Other tidyverse:
arrange.ir()
,
distinct.ir()
,
extract.ir()
,
filter-joins
,
filter.ir()
,
group_by
,
mutate-joins
,
mutate
,
nest
,
pivot_longer.ir()
,
pivot_wider.ir()
,
rowwise.ir()
,
select.ir()
,
separate.ir()
,
separate_rows.ir()
,
slice
,
summarize
,
unite.ir()
## rename dplyr::rename(ir_sample_data, hol = "holocellulose") dplyr::rename(ir_sample_data, spec = "spectra") # drops ir class ## rename_with dplyr::rename_with(ir_sample_data, .cols = dplyr::starts_with("id_"), toupper) dplyr::rename_with(ir_sample_data, toupper) # drops ir class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.