Re: [R] Speeding up time conversion

2012-09-27 Thread Prof Brian Ripley
Users forget how much is an OS service. This is OS X not R being slow. On a recent Linux box it takes about 90s. But at least you can easily parallelize it: see ?pvec in package parallel for one way to do this (and one way not to). If the file contain a high proportion of duplicates, making a

[R] Speeding up time conversion

2012-09-27 Thread Fisher Dennis
R 2.15.1 OS X.7.4 Colleagues, I have a large dataset (27773536 records, the file is several GB) that contains a column of date / time entries in the format: "2/1/2011 13:25:01" I need to convert these to numeric values (ideally in seconds; the origin [e.g., 1970-01-01] is not impor