Skip to content

Commit

Permalink
Merge pull request #67 from addelany/main
Browse files Browse the repository at this point in the history
updates to bbox
  • Loading branch information
addelany authored Feb 6, 2024
2 parents 12c4f58 + c631ca5 commit cb3b7d5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions R/get_bbox.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ get_bbox <-function(site_metadata, sites){

if (!is.null(sites)){

site_lat <- site_df |>
filter(field_site_id %in% (sites)) |>
select(latitude)
# site_lat <- site_df |>
# filter(field_site_id %in% (sites)) |>
# select(latitude)
#
# site_lon <- site_df |>
# filter(field_site_id %in% (sites)) |>
# select(longitude)

site_lat <- site_df[which(site_df[,2] == sites), 'latitude']
site_lon <- site_df[which(site_df[,2] == sites), 'longitude']

site_lon <- site_df |>
filter(field_site_id %in% (sites)) |>
select(longitude)

#site_lat <- sapply(sites,function(i) site_df$latitude[which(site_df[,2] == i)])
#site_lon <- sapply(sites,function(i) site_df$longitude[which(site_df[,2] == i)])
Expand Down

0 comments on commit cb3b7d5

Please sign in to comment.