Understanding the dataset through a glimpse of it will come handy while data manipulation coding.
This function generates the glimpse of data.frame (similar to str()) using tibble::glimpse and write to a text file.
Using same file name for different datasets will append the outputs to a same file.
Usage
glimpse_to_file(dataset, output_filename = "")
Arguments
dataset
A data.frame object
output_filename
Name of the output text file (prefer to end in ".txt", although the backend will append if not)
Function's default is "glimpse_<system_time>.txt"