flux_flag_count function

counts quality flags

counts quality flags

provides a table of how many fluxes were attributed which quality flag. This function is incorporated in flux_quality (output as a message) but can be used alone to extract a dataframe with the flag count.

flux_flag_count( slopes_df, f_fluxid = f_fluxid, f_quality_flag = f_quality_flag, f_cut = f_cut, f_flags = c("ok", "discard", "zero", "force_discard", "start_error", "no_data", "force_ok"), cut_arg = "cut" )

Arguments

  • slopes_df: dataframe of flux slopes
  • f_fluxid: column containing fluxes unique ID
  • f_quality_flag: column containing the quality flags
  • f_cut: column indicating which part of the flux is being cut
  • f_flags: list of flags used in the dataset (if different from default from flux_quality). If not provided, it will list only the flags that are present in the dataset (no showing 0).
  • cut_arg: argument defining that the data point should be cut out

Returns

a dataframe with the number of fluxes for each quality flags and their proportion to the total

Examples

data(slopes30qua_flag) flux_flag_count(slopes30qua_flag)

Author(s)

Vincent Belde