Re: [R] Problems creating a PNG file for a dendrogram: "Error in plot.window(...) : need finite 'xlim' values"

2011-01-12 Thread Richard Vlasimsky
mius wrote: > > On Jan 11, 2011, at 7:01 PM, Richard Vlasimsky wrote: > >> >> Has anyone successfully created a PNG file for a dendrogram? >> >> I am able to successfully launch and view a dendrogram in Quartz. However, >> the dendrogram is quite large (too

[R] Problems creating a PNG file for a dendrogram: "Error in plot.window(...) : need finite 'xlim' values"

2011-01-11 Thread Richard Vlasimsky
rning -Inf #3: In min(x) : no non-missing arguments to min; returning Inf #4: In max(x) : no non-missing arguments to max; returning -Inf This is the exact same code, only a prior call to png() causes the seemingly unrelated xlim to fail. Why is this? Thanks, Richard Vlasimsky _

[R] Performance tuning tips when working with wide datasets

2010-11-24 Thread Richard Vlasimsky
Does anyone have any performance tuning tips when working with datasets that are extremely wide (e.g. 20,000 columns)? In particular, I am trying to perform a merge like below: merged_data <- merge(data1, data2, by.x="date",by.y="date",all=TRUE,sort=TRUE); This statement takes about 8 hours to

[R] A more efficient way to roll values in an irregular time series dataset?

2010-11-08 Thread Richard Vlasimsky
Does anyone recommend a more efficient way to "roll" values in a time series dataset? I merged a bunch of different time series datasets (10's of thousands of them) whose observation dates and sampling interval differ. Some time series observations are reported at the beginning of the month,