Analyze Whole Room Indirect Calorimetry (WRIC) Data


[Up] [Top]

Documentation for package ‘wrictools’ version 1.0.1

Help Pages

add_relative_time Add Relative Time in minutes to DataFrame. Rows before the 'start_time' will be indicated negative.
analyse_methanol_burn Analyse methanol burn experiment
analyse_zero_test Analyse a Zero Test WRIC file
check_code Check the subject ID code and return corresponding Room 1 and Room 2 codes.
check_discrepancies Checks for discrepancies between S1 and S2 measurements in the DataFrame and prints them to the console. This function is not included in the big pre-processing function, as it is more intended to perform a quality check on your data and not to automatically inform the processing of the data.
combine_measurements Combines S1 and S2 measurements in the DataFrame using the specified method.
create_wric_df Creates DataFrames for wric data from a file and optionally saves them as CSV files.
create_wric_df_new Creates a DataFrame for WRIC data from the new Omnical software format.
cut_rows Filters rows in a DataFrame based on an optional start and end datetime range.
detect_start_end Automatically detect enter and exit from the chamber based on the notefile. Returns the start and end times for two participants.
export_file_from_redcap Exports a file from REDCap based on the specified record ID and field name.
extract_metadata_new Extracts metadata (software v2) for a single subject from text lines and optionally saves it as a CSV file.
extract_meta_data Extracts metadata (software v1) for two subjects from text lines and optionally saves it as CSV files.
extract_note_info Apply protocol events from note files to room data
extract_note_info_new Apply protocol events from note files to a single room data frame (new software)
preprocess_wric_file Preprocesses a wric data file, extracting metadata, creating DataFrames, and optionally saving results.
preprocess_wric_files Preprocesses multiple wric_files by RedCAP record ID, extracting metadata, creating DataFrames, and optionally saving results.
upload_file_to_redcap Uploads a file to REDCap for a specified record ID and field name.
visualize_with_protocol Visualizes time-series data from a WRIC CSV file, highlighting protocol changes and optionally saving the plot.