Skip to content

Commit

Permalink
Merge pull request #25 from addelany/main
Browse files Browse the repository at this point in the history
reorder coordinates
  • Loading branch information
addelany authored Nov 7, 2023
2 parents 7964321 + 69aea7e commit a2d2012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_site_coords.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ get_site_coords <- function(site_metadata, sites){

site_df <- readr::read_csv(site_metadata, col_types = cols())

site_lat_lon <- lapply(sites, function(i) c(site_df$field_latitude[which(site_df[,2] == i)], site_df$field_longitude[which(site_df[,2] == i)]))
site_lat_lon <- lapply(sites, function(i) c(site_df$field_longitude[which(site_df[,2] == i)], site_df$field_latitude[which(site_df[,2] == i)]))

return(site_lat_lon)
}

0 comments on commit a2d2012

Please sign in to comment.