unit_convert | R Documentation |
Convert numeric types from one area unit to another
unit_convert(
data_unit,
unit_1 = c("m2", "Dam2", "ha", "km2", "inch2", "foot2", "yard2", "mile2", "m", "km",
"inch", "foot", "yard", "mile"),
unit_2 = c("m2", "Dam2", "ha", "km2", "inch2", "foot2", "yard2", "mile2", "m", "km",
"inch", "foot", "yard", "mile")
)
data_unit |
|
unit_1 |
|
unit_2 |
|
unit_convert(100, "km2", "ha")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.