Skip to contents

Wrapper to clean UID temperature CSV: read, flag outliers, downsample, and plot

Usage

clean_raw_uid(
  filepath,
  n = 1,
  precision = "minute",
  outlier_threshold_celsius = 1,
  output_dir = "temperature/data",
  plot = TRUE
)

Arguments

filepath

Path to a raw UID CSV.

n

Downsampling interval size (default = 1).

precision

Time unit for downsampling (default = "minute").

outlier_threshold_celsius

Temperature difference threshold to flag outliers.

output_dir

Directory to save diagnostic plots.

plot

boolean to indicate whether to plot the process of outlier removal and downsampling

Value

Cleaned, downsampled data frame.