elco-cast | R Documentation |
elco
objectCast an object to an elco
object
elco_as_elco(x, ...) ## S3 method for class 'quantities' elco_as_elco(x, el_symbol, ...) ## S3 method for class 'elco' elco_as_elco(x, ...) ## S3 method for class 'elco' as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
An object to be converted to class |
... |
Additional arguments passed on to methods. |
el_symbol |
A character vector representing a chemical element symbol to
set for the |
row.names |
|
optional |
logical. If |
elco_as_elco
returns x
converted to an object of class elco
.
as.data.frame.elco
returns x
converted to a data frame.
# elco_as_elco.quantities elco::chno$C %>% elco_drop_elco() %>% elco_as_elco(el_symbol = "C") # elco_as_elco.elco elco::chno$C %>% elco_as_elco() # elco_as_elco.elco elco::chno$C %>% as.data.frame() %>% setNames("C")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.