Skip to content

Commit

Permalink
allow order_cp_cols to work if station_depth has unit (_m) appended
Browse files Browse the repository at this point in the history
  • Loading branch information
twhiteaker committed Feb 29, 2024
1 parent 82be2fb commit 588c2ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/order_cp_cols.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ order_cp_cols <- function(data, type){
"latitude",
"longitude",
if (type == "water" && "station_depth" %in% colnames(data)) "station_depth",
if (type == "water" && "station_depth_m" %in% colnames(data)) "station_depth_m",
"habitat_type",
"station_sampling_priority")

Expand Down

0 comments on commit 588c2ba

Please sign in to comment.