[R] Convert date to integer

2009-03-31 Thread thoeb
Hello, I have a dataframe containing dates, times and other parameters. The times have the format h:m, e.g. 13:00 or 5:30, R classes them as factors. I want to change the times to integers e.g. 13:00 - 1300. I tried to use chron to create a chronological object, but it didn't work for the times

Re: [R] Convert date to integer

2009-03-31 Thread Dieter Menne
thoeb t.hoebinger at gmail.com writes: Hello, I have a dataframe containing dates, times and other parameters. The times have the format h:m, e.g. 13:00 or 5:30, R classes them as factors. Probably you have read in the data from a file with read.table; check stringsAsFactors in the docs to