Skip to content

Commit

Permalink
Correct the call to a variable in the optimisation of the 'pass_infos…
Browse files Browse the repository at this point in the history
…_discret' function
  • Loading branch information
aursiber committed Mar 20, 2024
1 parent bb758df commit 29107db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/create_matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ pass_infos_discret <- function(M, value) {
bind_values <- M |>
dplyr::select(.data$ancestor, dplyr::all_of(value)) |>
stats::na.omit() |>
dplyr::group_by(.data$Status, .data$ancestor) |>
dplyr::group_by(.data[[value]], .data$ancestor) |>
dplyr::count() |>
tidyr::pivot_wider(names_from = .data$Status, values_from = .data$n, values_fill = 0) |>
tidyr::pivot_wider(names_from = dplyr::all_of(value), values_from = .data$n, values_fill = 0) |>
as.data.frame() |>
dplyr::rename("taxid" = "ancestor") |>
dplyr::arrange(.data$taxid)
Expand Down

0 comments on commit 29107db

Please sign in to comment.