Unit Conversion {GISTools} | R Documentation |
Distance Units Conversion
Description
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.
Usage
ft2miles(x)
miles2ft(x)
ft2km(x)
km2ft(x)
Arguments
x |
A quantity in units to be converted from |
Value
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
).
Author(s)
Chris Brunsdon
Examples
# How many miles is 10,000 feet?
ft2miles(10000)
# How about in kilometers?
ft2km(10000)
[Package GISTools version 1.0-1 Index]