A data.frame
. The first column always contains the time which is calculated from the sampling interval.
The earliest data point is believed to be at time 1 divided by the sampling rate.
Column names are accompanied by their units.
If type == "all"
, all channels are added to the resulting data frame. Their units are copied from the ABF object.
If type == "one"
, the resulting data frame only contains the time (see above) and one additional column with the actual data, whereby channels
, a vector of integers, specifies what to read. If channels
contains one index, then that channel is used for the data column. If channels
contains two indices, then the data of the first channel is divided by the data of the second channel. This might be for instance helpful to obtain conductance by dividing a channel containing current values by a channel containing voltage values. The unit of the data column is either provided by unit
or, if not provided, the ratio of the two units (as read from the ABF object) is given.