Re: [R] xeon processor and ATLAS

2007-08-30 Thread Jeffrey J. Hallman
hui xie [EMAIL PROTECTED] writes: The reason why I would like to use ATLAS is that R FAQ said : The savings can be appreciable: on a 2.6GHz P4 and a 1000 x 1000 matrix svd took 16.2 sec with the standard BLAS and 7.8 sec with ATLAS. Because ATLAS is tuned to a particular chip we can't

Re: [R] Help with Dates

2007-07-26 Thread Jeffrey J. Hallman
27995 19860330NA 19860413 30390 class: tis $net.comm [,1] 19860119 37485 19860202 26940 19860216 12530 19860302 33730 19860316 26125 19860330NA 19860413 24325 class: tis Gabor Grothendieck [EMAIL PROTECTED] writes: On 26 Jul 2007 09:59:31 -0400, Jeffrey J. Hallman [EMAIL

Re: [R] Help with Dates

2007-07-26 Thread Jeffrey J. Hallman
zoo is nice. 'tisFromCsv()' in the fame package is nicer. Jeff __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented,

Re: [R] aggregate.ts

2007-07-26 Thread Jeffrey J. Hallman
Your troubles with 'aggregate' for a ts are one of the reasons I created the 'tis' and 'ti' classes in the fame package. If you do this: x1 - tis(1:24, start = c(2000, 10), freq = 12) x2 - tis(1:24, start = c(2000, 11), freq = 12) y1 - aggregate(x1, nfreq = 4) y2 - aggregate(x2, nfreq = 4)

Re: [R] dates() is a great date function in R

2007-07-26 Thread Jeffrey J. Hallman
Mr Natural [EMAIL PROTECTED] writes: Just save the spreadsheet as a csv file and use tisFromCsv() in the fame package. One of the arguments tisFromCsv() takes is a dateFormat, so you can tell it what format the date column is in. You can also tell it the name of the date column if it isn't some

Re: [R] accessing list components with a variable

2007-07-16 Thread Jeffrey J. Hallman
the_list[[comp]] David C. James [EMAIL PROTECTED] writes: Let's say I have a list called the_list consisting of three components: the_list$component_1 the_list$component_2 the_list$component_3 Now, I want to access it using a variable called comp. comp - component_1 I'm looking for

Re: [R] Getting the last day of the month.

2007-05-10 Thread Jeffrey J. Hallman
The TimeIndex class in the 'fame' package handles this kind of stuff with ease. library(fame) ym - 200212 z - lastDayOf(ti(100*ym + 1, tif = monthly)) z [1] 20021231 class: ti tifName(z) [1] daily a 'ti' object is a TimeIndex, and it has a tif (TimeIndexFrequency) embedded in it. -- Jeff

Re: [R] Construct time series objects from raw data stored in csv files

2007-04-16 Thread Jeffrey J. Hallman
As Gabor said, ts series are not good for weekly data. That's why I created the tis (Time Indexed Series) class, in the 'fame' package. You don't need the Fame database to use them. -- Jeff __ R-help@stat.math.ethz.ch mailing list

Re: [R] Reasons to Use R

2007-04-10 Thread Jeffrey J. Hallman
halldor bjornsson [EMAIL PROTECTED] writes: ... Now, R does not have everything we want. One thing missing is a decent R-DB2 connection, for windows the excellent RODBC works fine, but ODBC support on Linux is a hassle. A hassle? I use RODBC on Linux to read data from a mainframe DB2

Re: [R] how much performance penalty does this incur, scalar as a vector of one element?

2007-02-23 Thread Jeffrey J. Hallman
The 64 bit version of VisualWorks Smalltalk has an immediate ShortDouble, which sacrifices two bits of exponent for a tag. It thus has the same precision as an IEEE double, but one fourth as much range. Overflows automatically get promoted to ordinary Double's, which are pointers to objects

Re: [R] how to create daily / weekly ts object?

2007-01-29 Thread Jeffrey J. Hallman
Look at the 'fame' package I recently put up. You don't need to have the FAME database installed to use it. Among other things, the package defines a class tis (Time Indexed Series) that can handle weekly time series. Wensui Liu [EMAIL PROTECTED] writes: Monthly and Quarterly ts obj. is easy

Re: [R] if else statement

2007-01-19 Thread Jeffrey J. Hallman
?switch H. Paul Benton [EMAIL PROTECTED] writes: I'm doing some scripting and I've noticed that R doesn't seem to have an if (cond){ do }ifelse (cond) { do } else { do } type block. Is this correct or am I missing something. -- Jeff

Re: [R] Hourly Time Series

2006-12-16 Thread Jeffrey J. Hallman
The 'fame' package I submitted to CRAN can handle hourly, minutely, and secondly series. The first submission I made last night did not build correctly on a Linux machine without the FAME libraries, but the one I put up this morning has fixed that. It should be available soon, unless I missed

Re: [R] command for stopping and then hit return and continue (fwd)

2006-11-09 Thread Jeffrey J. Hallman
[EMAIL PROTECTED] writes: -- Forwarded message -- is it possible to implement the same sort of thing when you aren't plotting. in other words, i am in a loop and each time through the loop i want to print a set of values, have it stop, then only have it continue when i hit

Re: [R] Matrix multiplication using apply() or lappy() ?

2006-09-09 Thread Jeffrey J. Hallman
Tim Hesterberg [EMAIL PROTECTED] writes: [EMAIL PROTECTED] asked: I am trying to divide the columns of a matrix by the first row in the matrix. Dividing columns of a matrix by a vector is a pretty fundamental operation, and the query resulted in a large number of suggestions: It is

Re: [R] Packaging platform-specific functions

2006-06-20 Thread Jeffrey J. Hallman
Never mind. I RFTM'ed more carefully and found that the 'R' directory can also have a 'unix' or 'windows' subdirectory. [EMAIL PROTECTED] wrote: jh I have a few functions, such as screenWidth() and screenHeight(), which jh I have been able to implement for a Unix/Linux environment, but not

Re: [R] dev.print and X11(canvas = black)

2004-03-02 Thread Jeffrey J. Hallman
Prof Brian Ripley [EMAIL PROTECTED] wrote: On Mon, 1 Mar 2004 [EMAIL PROTECTED] wrote: In Splus, I often use graphics windows with a black background and white foreground. The S print.graph() function sends the current plot to my printer but with a white background and black