Learn R Programming

catalytic (version 0.1.0)

print_df_head_tail: Print Data Frame with Head and Tail Rows

Description

This function displays the first 5 and last 5 rows of a data frame. Column names are displayed only for the first 5 rows, with ellipses (...) in the middle to indicate additional rows.

Usage

print_df_head_tail(df, digit = 3)

Value

Invisibly returns the original data frame.

Arguments

df

A data frame to display.

digit

An integer specifying the number of decimal places to which the summary statistics should be rounded. Default is 3.