locMap: generation a location dataframme

Description Usage Arguments Value Author(s) See Also Examples

Description

based on a series of states, and locations, it will generate a summarized matrix listing the lcoation of each state. Designed to generate the location of all the stations from a VEMCO detection history

Usage

1
locMap(state_rec, Lats, Longs)

Arguments

state_rec

vector of the states

Lats

vector of y locations

Longs

vector of x locations

Value

returns a matrix with three columns. Column one is station name, column two is the y coordinate, and column three is the x coordinate

Author(s)

Connor F. White

See Also

transBub

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
rec<-sample(c("A","B","C"),size=200,replace=TRUE)
lats<-rec
long<-rec

lats[lats=="A"]<- 33
lats[lats=="B"]<- 34
lats[lats=="C"]<- 31

long[long=="A"]<- -118
long[long=="B"]<- 120
long[long=="C"]<- -117

locs<-locMap(rec,lats,long)

ConnorFWhite/AssFunc documentation built on May 20, 2019, 4:07 p.m.