Skip to content

Commit

Permalink
make tidy output tibbles for pcr
Browse files Browse the repository at this point in the history
Output of a data.frame isn't truncated and makes my emacs config lag on output
  • Loading branch information
KaiAragaki committed Apr 3, 2024
1 parent cb5c765 commit 796c006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/pcr_scrub.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ scrub.pcr <- function(x, include_header = FALSE, ...) {
# Add footer ----
footer <- x$footer |> t() |> tibble::as_tibble()
colnames(footer) <- janitor::make_clean_names(colnames(footer))
tidy <- cbind(tidy, footer)
tidy <- dplyr::bind_cols(tidy, footer)

if (include_header) {
header <- x$header |> t() |> tibble::as_tibble()
colnames(header) <- janitor::make_clean_names(colnames(header))
tidy <- cbind(tidy, header)
tidy <- dplyr::bind_cols(tidy, header)
}

tidy |>
Expand Down

0 comments on commit 796c006

Please sign in to comment.