Changed attribute name Segment to Segments (stores no of segments).

Because we already have the counter "segment", which stores the
current segment (so for Segments = 10, segment = 1:10).
master
Taha Ahmed 14 years ago
parent 2790047c3a
commit fa6ac99fa5

@ -401,9 +401,9 @@ cv2df <- function(datafilename, wearea = 1) {
ScanRate <- as.numeric(strsplit(chifile[which(position.ScanRate == 1)], "\\s=\\s")[[1]][2]) ScanRate <- as.numeric(strsplit(chifile[which(position.ScanRate == 1)], "\\s=\\s")[[1]][2])
ff$ScanRate <- ScanRate ff$ScanRate <- ScanRate
# Segments, number of # Segments, number of
position.Segment <- regexpr("^Segment\\s=", chifile) position.Segments <- regexpr("^Segment\\s=", chifile)
Segment <- as.numeric(strsplit(chifile[which(position.Segment == 1)], "\\s=\\s")[[1]][2]) Segments <- as.numeric(strsplit(chifile[which(position.Segments == 1)], "\\s=\\s")[[1]][2])
ff$Segment <- Segment ff$Segments <- Segments
# SampleInterval (volt) # SampleInterval (volt)
position.SampleInterval <- regexpr("^Sample\\sInterval\\s\\(V\\)", chifile) position.SampleInterval <- regexpr("^Sample\\sInterval\\s\\(V\\)", chifile)
SampleInterval <- as.numeric(strsplit(chifile[which(position.SampleInterval == 1)], "\\s=\\s")[[1]][2]) SampleInterval <- as.numeric(strsplit(chifile[which(position.SampleInterval == 1)], "\\s=\\s")[[1]][2])

Loading…
Cancel
Save