Description Usage Arguments Value Examples
View source: R/my_calculate_formula.R
my_calculate_formula
1 | my_calculate_formula(Formula1, Formula2, sign = 1, Valid_formula = FALSE)
|
Formula1 |
formula1 (could be a vector) |
Formula2 |
formula2 (could be a vector) |
sign |
1 for merge two formula, -1 for subtract second from first formula |
Valid_formula |
if set True, only return formula if the element count is > 0 |
the merge or subtract formula in vector or matrix; and if valid_mati is true, a validation of whether negative element presents
1 | my_calculate_formula(Formula1 = "C2H4O1S2P1",Formula2 = "N1H1O-1",sign = 1,Valid_formula = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.