moveLatitude: Add distance in the latitude direction to a coordinate

Description Usage Arguments Value Examples

Description

Add distance in the latitude direction to the indicate coordinate. The distance can be indicated on kilometers or miles

Usage

1
2
3
4
5
6
7
8
9
  moveLatitude(...)

  ## Default S3 method:
 moveLatitude(latitude, longitude,
    distance, units = "km", ...)

  ## S3 method for class 'Coordinate'
 moveLatitude(coordinate, distance,
    units = "km", ...)

Arguments

latitude

a latitude coordinate

longitude

a longitude coordinate

distance

the distance to add in km or miles

units

a string with the distance units (default kilometers)

coordinate

a coordinate class

...

other arguments

Value

a Coordinate object with the new coordinates

Examples

1
2
3
# Add 10 kilometers to the north to a position
cord <- Coordinate(43, -8)
cord <- moveLatitude(cord, 10)

drodriguezperez/whereiam documentation built on May 15, 2019, 2:42 p.m.