clean.events | R Documentation |
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.
clean.events(events, event.times)
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'. |
A list containing the cleaned 'events' data frame and the cleaned 'event.times' data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.