format_data {GCalcium} | R Documentation |
'format_data' changes the format of data from wide time series to long format with labeled columns. If data is already in long format, the function simply re-labels the columns
format_data(data)
data |
A data set with observation times in the first row or column, and observed values from trials in each following row or column. |
Data frame with labeled time and trial columns
df.new <- format_data(GCaMP)