[R] bottlenecks in R script

2010-03-16 Thread Joe Calderon
hello *, im running into two major bottlenecks an R script. 1. going through a 40mb file and reading in via readLines() 1 line at a time is almost an order of magnitude slow than the equivalent in python, im wondering if there are alternatives to readLines(), doing more lines at a time helps a bit

[R] gaps in time series

2010-03-15 Thread Joe Calderon
hello *, im new to the list (and R in general), i have a problem that im hoping someone can help me solve. i have data that i want to turn into a time series per day, ex. 2010-03-01 9 2010-03-03 17 2010-03-04 2 2010-03-05 9 2010-03-07 3 is there an easy way to fill in the gaps for the m