From 588c2ba5a56a00d0e79d7d8d1e96ac2132900b9f Mon Sep 17 00:00:00 2001 From: Tim Whiteaker Date: Thu, 29 Feb 2024 09:29:48 -0600 Subject: [PATCH] allow order_cp_cols to work if station_depth has unit (_m) appended --- R/order_cp_cols.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/order_cp_cols.R b/R/order_cp_cols.R index c73dd09..7a8c836 100644 --- a/R/order_cp_cols.R +++ b/R/order_cp_cols.R @@ -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")