Unit Conversion | R Documentation |
Convert between different distance units - all functions take the form xx2yy
where xx
is the unit to be converted from and yy
is the unit to be converted to.
ft2miles(x)
miles2ft(x)
ft2km(x)
km2ft(x)
x |
A quantity in units to be converted from |
The value of x
converted to the new units. In the example below the conversions are from feet to miles and feet to kilometers (hence functions are ft2miles
and ft2km
).
Chris Brunsdon
# How many miles is 10,000 feet?
ft2miles(10000)
# How about in kilometers?
ft2km(10000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.