clean.events: Clean Events Data

View source: R/utilities.R

clean.eventsR Documentation

Clean Events Data

Description

Removes columns with only NA values from event data and corresponding event times.

This function iterates through each row of the 'events' data and identifies columns containing only NA values. It then removes those columns from both the 'events' and 'event.times' data, while maintaining the corresponding row order.

Usage

clean.events(events, event.times)

Arguments

events

A data frame containing event data.

event.times

A data frame containing the timestamps associated with each event in the 'events' data. The dimensions (number of rows and columns) of 'event.times' should match those of 'events'.

Value

A list containing the cleaned 'events' data frame and the cleaned 'event.times' data frame.


stueller/longCatEDA documentation built on March 9, 2024, 4:08 a.m.