Skip to content

Commit

Permalink
Update usage of tidyselect expression
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolepore committed Jan 26, 2024
1 parent 6c78889 commit c16d387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/add_var.R
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ rename_pxpy <- function(data) {

restore_pxpy_if_necessary <- function(data_, data) {
if (rename_pxpy(data)) {
data_ <- dplyr::rename(data_, px = .data$gx, py = .data$gy)
data_ <- dplyr::rename(data_, px = "gx", py = "gy")
}
data_
}
Expand Down
2 changes: 1 addition & 1 deletion R/pick_main_stem.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pick_main_f <- function(stemid = TRUE, treeid = TRUE) {
data_ <- pick_stemid_treeid(data_, stemid = stemid, treeid = treeid)

# Restore rows order
data_ <- select(arrange(data_, .data$rowid), -.data$rowid)
data_ <- select(arrange(data_, .data$rowid), -"rowid")
# Restore original names
out <- rename_matches(data_, data)
# Restore original groups
Expand Down

0 comments on commit c16d387

Please sign in to comment.