Learn R Programming

GISTools (version 1.0-2)

Unit Conversion: 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)

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).

Arguments

x

A quantity in units to be converted from

Author

Chris Brunsdon

Examples

Run this code
# How many miles is 10,000 feet?
ft2miles(10000)
# How about in kilometers?
ft2km(10000)

Run the code above in your browser using DataLab