Re: [R] what is the best way to process the following data?

2016-06-17 Thread William Dunlap via R-help
You can make a step-number variable with cumsum(grepl("^Step ", ...)) and use it as the splitting variable in split. E.g., > dat <- read.table(yourFile, stringsAsFactors=FALSE, sep="|", colClasses=c("NULL", "character", "character", "character"), col.names=c("Junk","Date","Time","Type")) > dat

[R] what is the best way to process the following data?

2016-06-17 Thread Satish Vadlamani
Hello, I have multiple text files with the format shown below (see the two files that I pasted below). Each file is a log of multiple steps that the system has processed and for each step, it has shown the start time of the process step. For example, in the data below, the filter started at