Skip to content

standard structure and interface for data check parameters #16

@dpkode

Description

@dpkode
  1. Define agreed upon structure for inputting user defined parameters for defining checks (e.g., acceptable temperature range - a high and a low or the window size and threshold for spike detection).
  • A data frame

df_parms <- data.frame(range_checks = c(1, 10),
spike_checks = c(3, 3)

  • A list

df_parms[["range_checks"]] <- c(1, 10)
df_parms[["spike_checks"]] <- c(3, 3)

  1. Within a function, use the args parms = df_name , then within the function the relevant parameters could be accessed like:

lower_bound <- parms[['range_checks']][1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions