R/print_all.R

Defines functions print_all

Documented in print_all

#' @importFrom magrittr %>%
NULL

#' A modified print function
#'
#' This function print all rows of a data frame
#' @param df a data frame
#' @keywords print rows
#' @export
#' @examples
#' print_all(mtcars)

print_all <- function(df){
  if(inherits(df, "tbl_df")){
    df %>% print(n=nrow(df))
  }else{
    df %>% print()
  }
}
andrew-griffen/griffen documentation built on June 3, 2024, 12:34 p.m.