Learn R Programming

dataframeexplorer (version 1.0.2)

glimpse_to_file: Generate glimpse of dataset

Description

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"

Value

Does not return any value, writes to disk rather

Examples

Run this code
# NOT RUN {
glimpse_to_file(dataset = mtcars, output_filename = "glimpse_mtcars.txt")
glimpse_to_file(dataset = iris, output_filename = "C/Users/Desktop/glimpse_iris.txt")
# }

Run the code above in your browser using DataLab