I have two data frames:
ch1 <- read.csv(file, header=TRUE, sep=";", skip=7)
ch2 <- read.csv(file2, header=TRUE, sep=";", skip=7)
The second frame has values between 0 and 3 and the X axis corresponds to the one on the first frame (its time).
I want to get only the values of ch1 where the x axis of ch2 is < 1.0 These values i want in seperate lists (matrix preferred)
Example channel 2 data:
Relative time;Data collector12
s;V
2.2079991;0.011083123
2.2079992;0.028211586
2.2079993;-0.0020151134
2.2079994;0.001511335
2.2079995;0.016120907
2.2079996;3.025188917
Example channel 1 data:
Relative time;Data collector1
s;V
2.2079992;-0.0109
2.2079993;-0.0133
2.2079994;-0.01055
2.2079995;-0.0071999999
2.2079996;-0.0043500001
In this case I would like all values except last.
I have no idea where to begin, thanks