level_of_data {dataframeexplorer} | R 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)
[Package dataframeexplorer version 1.0.2 Index]