level_of_data: Determine the level / primary key of dataset

View source: R/level_of_dataset.R

level_of_dataR Documentation

Determine the level / primary key of dataset

Description

Knowing the level of dataset is paramount to effectively and efficiently manipulate data, and the level of dataset is unknown oftentimes. This function checks for count of unique records in all possible column combinations to determine the level of dataset. Check for text file generated for column combinations with unique records.

Usage

level_of_data(dataset, output_filename = "", verbose = TRUE)

Arguments

dataset

A data.frame

output_filename

Name of the output text file (should end in ".txt", although the backend will append if not) Function's default is "level_of_dataset_<system_time>.txt"

verbose

Pass TRUE for detailed output

Value

Does not return to calling function, writes to file system rather

Examples

## Not run: 
level_of_data(dataset = iris[,c("mpg", "cyl", "disp", "hp")], output_filename = "level_mtcars.txt")

## End(Not run)

dataframeexplorer documentation built on April 4, 2022, 9:05 a.m.