Skip to content

Commit

Permalink
Return consistent number of cols in clean_otn_deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mhpob authored Jun 21, 2024
1 parent 9f586d3 commit d58e2d4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions R/utilities_make.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,15 @@ clean_otn_deployment <- function(deployment) {

if ("transmitter" %in% names(deployment)) {
deployment$internal_transmitter <- deployment$transmitter
deployment[, c(
} else {
deployment$internal_transmitter <- NA
}

deployment[, c(
"stationname", "receiver", "internal_transmitter",
"deploy_date_time", "deploy_lat", "deploy_long",
"recover_date_time"
)]
} else {
(
deployment[, c(
"stationname", "receiver",
"deploy_date_time", "deploy_lat", "deploy_long",
"recover_date_time"
)]
)
}
}


Expand Down

0 comments on commit d58e2d4

Please sign in to comment.