get_df_flags: Create Table of Data Quality Flags Found in Data Files within...

View source: R/summarize_qc_flags.R

get_df_flagsR Documentation

Create Table of Data Quality Flags Found in Data Files within a Data Package

Description

[Deprecated] get_df_flags (df = data files) returns a data frame that lists the number of cells in each data file in the entire data package (excluding NAs) with relevant flags (A, AE, R, P) as well as the total number of data points in each .csv (including data flagging columns, but excluding NAs). Unweighted Relative Response (RRU) is calculated as the total number of accepted data points (A, AE, and data that are not flagged).

Usage

get_df_flags(directory = here::here())

Arguments

directory

is the path to the data package .csv files (defaults to the current working directory).

Details

The function can be run from within the working directory where the data package is, or the directory can be specified. The function only supports .csv files and assumes that all .csv files in the folder are part of the data package. It also assumes that the values A, AE, R, and P have only been used for flagging. It assumes that there are no additional characters in the flagging cells (such as leading or trailing white spaces).

Value

a dataframe named df_flag that contains a row for each .csv file in the directory with the file name, the count of each flag and total number of data points in each .csv (including data flagging columns).

Examples

## Not run: 
get_df_flags("~/my_data_package_directory")
get_df_flags() # if your current working directory IS the data package
directory.
# ->
get_custom_flags(output="files")

## End(Not run)


nationalparkservice/IMDQC documentation built on March 29, 2025, 10:54 p.m.