View source: R/summarize_qc_flags.R
get_df_flags | R Documentation |
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).
get_df_flags(directory = here::here())
directory |
is the path to the data package .csv files (defaults to the current working directory). |
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).
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).
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.