Re: [R] Read big data (3G ) methods ?

2013-04-26 Thread Horace Tso
Long long time ago in a galaxy far far away, I've played with the LaF package for reading large CSV files. But it's been a while and I don't remember its performance and limitations. Give it a trial. Horace -Original Message- From: r-help-boun...@r-project.org

[R] glitch in building R package

2011-01-21 Thread Horace Tso
I follow Alan Lenarcic's very helpful tutorial on building R package for Windows (XP), which could be found in www.stat.columbia.edu/~gelman/stuff_for_blog/AlanRPackageTutorial.pdfhttp://www.stat.columbia.edu/~gelman/stuff_for_blog/AlanRPackageTutorial.pdf. The package involves a small dll

[R] Solved : RE: problem installing R on ubuntu

2011-01-06 Thread Horace Tso
-project.org] On Behalf Of Horace Tso Sent: Thursday, December 23, 2010 10:31 AM To: r-help Subject: [R] problem installing R on ubuntu Following the official instructions to install R on ubuntu 10.04, I issued this command on the prompt, sudo apt-get install r-base Here is the error msg, Reading

[R] problem installing R on ubuntu

2010-12-23 Thread Horace Tso
Following the official instructions to install R on ubuntu 10.04, I issued this command on the prompt, sudo apt-get install r-base Here is the error msg, Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean

Re: [R] problem installing R on ubuntu

2010-12-23 Thread Horace Tso
, December 23, 2010 10:57 AM To: Horace Tso Cc: r-help Subject: Re: [R] problem installing R on ubuntu On Thu, Dec 23, 2010 at 6:30 PM, Horace Tso horace@pgn.com wrote: Following the official instructions to install R on ubuntu 10.04, I issued this command on the prompt, sudo apt-get install r-base

[R] rgl windows binary

2010-09-03 Thread Horace Tso
Folks, the rgl 0.91 binary for windows seems corrputed. WinZip complains the downloaded zip file is not a valid archive. I had no luck with R-forge either. Could someone point me to the latest production ready binary? Thks. H [[alternative HTML version deleted]]

[R] Crash report: projection pursuit predict

2010-07-29 Thread Horace Tso
Folks, The projection pursuit regression function in the base R seems to crash when the optimization level is set to zero, i.e. the initial ridge terms are accepted without refitting. I encountered this problem in an out-of-sample prediction exercise using predict. But further investigation

Re: [R] Ctree Question

2010-07-09 Thread Horace Tso
Steve, I'm not sure if your task could be accomplished with a ready-made function in party. But, if you could manage to convert your tree structure to a dendrogram, then it's straightforward using dendrapply. In fact, there is an example in dendrapply help page showing how leaves are colored.

Re: [R] select columns from vector of column names

2010-07-09 Thread Horace Tso
How about data[,colnames(data)%in%colnames] -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jonathan Flowers Sent: Friday, July 09, 2010 11:27 AM To: r-help@r-project.org Subject: [R] select columns from vector of column names

Re: [R] questions on some operators in R

2010-06-18 Thread Horace Tso
Li li, I know many S-language old timers would tell you to use - over = for assignment. Speaking from my own painful experience of debugging S/R codes, I much much much prefer '='. In fact, I'd like to see the R language get ride of '-' as the assignment operator. Here is why. x = -5:10 x

Re: [R] questions on some operators in R

2010-06-18 Thread Horace Tso
statements. Those extra keystroke translate into quite a bit more wear on your fingers. H -Original Message- From: Erik Iverson [mailto:er...@ccbr.umn.edu] Sent: Friday, June 18, 2010 1:23 PM To: Greg Snow Cc: Horace Tso; li li; r-help Subject: Re: [R] questions on some operators in R

Re: [R] questions on some operators in R

2010-06-18 Thread Horace Tso
Certainly not. I'm just too lazy. -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Friday, June 18, 2010 2:57 PM To: Horace Tso Cc: Erik Iverson; Greg Snow; r-help Subject: Re: [R] questions on some operators in R On Jun 18, 2010, at 5:15 PM, Horace Tso

Re: [R] questions on some operators in R

2010-06-18 Thread Horace Tso
Tso Subject: RE: [R] questions on some operators in R And the 2nd example? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: Horace Tso [mailto:horace@pgn.com] Sent: Friday, June 18, 2010 3:09

[R] type conversion with apply or not

2010-06-08 Thread Horace Tso
type conversion can be carried out on some columns of a data frame without using a loop. Thanks. Horace Tso [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] type conversion with apply or not

2010-06-08 Thread Horace Tso
Guys, many thanks. lapply works. Did not occur to me as I thought lapply returns a list and the receiving entity is a data frame. H -Original Message- From: William Dunlap [mailto:wdun...@tibco.com] Sent: Tuesday, June 08, 2010 2:22 PM To: Horace Tso; r-help@r-project.org Subject

[R] residuals from a fractional arima model and other questions

2009-02-19 Thread Horace Tso
: -4.562e+05 == AIC = 912360.4 [1 deg.freedom] Last question : why are some of z-values infinite? Thanks in advance. Horace Tso [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] FW: [rkward-devel] questions on RKWard

2008-11-06 Thread Horace Tso
Thought I should copy the list with Matthieu's response. H -Original Message- From: Matthieu Stigler [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 8:29 PM To: Horace Tso; [EMAIL PROTECTED] Subject: Re: [rkward-devel] questions on RKWard some answer only for the third

Re: [R] number of an element in a matrix

2008-08-11 Thread Horace Tso
How about x = matrix(sample(1:10, 100, replace=T), ncol=10) table(as.vector(x)) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rostam shahname Sent: Monday, August 11, 2008 1:42 PM To: r-help@r-project.org Subject: [R] number of an element in a matrix

Re: [R] number of an element in a matrix

2008-08-11 Thread Horace Tso
My last email went out faster than I could think. Actually no need to coerce a matrix to a vector. x = matrix(sample(1:10, 100, replace=T), ncol=10) table(x) H -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Horace Tso Sent: Monday, August 11, 2008 2

Re: [R] Constrained coefficients in lm (correction)

2008-07-23 Thread Horace Tso
Take a look at the systemfit package. A constraint on a parameter, like the one you described, could be implemented using R*beta0 = q, where R is R.restr and q is q.restr in the function call. I haven't tried it but it's easy to test with some data. Horace -Original Message- From:

[R] FW: R + Linux

2008-06-06 Thread Horace Tso
I'll add my $0.02 as I've just gone thru a (painful) transition to Linux. In my case Ubuntu didn't quite work for reason I'm still not sure (must be hardware + driver issue). I eventually put on opensuse 10.3 and installed R in an rpm pkgage on the command line. Getting R in was not simple. I

Re: [R] Improving data processing efficiency

2008-06-06 Thread Horace Tso
Daniel, allow me to step off the party line here for a moment, in a problem like this it's better to code your function in C and then call it from R. You get vast amount of performance improvement instantly. (From what I see the process of recoding in C should be quite straight forward.) H.

Re: [R] GMM estimation

2008-05-27 Thread Horace Tso
Leo, do you mean GMM as in Generalized Method of Moment? If so i've posted a similar question here before and the answer appears to be none at this time. Horace -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leo Correia Sent: Tuesday, May 27, 2008

Re: [R] Pros and Cons of R

2008-05-22 Thread Horace Tso
On the 64-bit part, I tested 2.7.0 on a Dual Core Lenovo ThinkPad and was able to allocate memory beyond 2G. Have not done much else otherwise but it seems to work just fine. H -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Monica Pisica Sent:

Re: [R] RPM-style install (SLED 10.1)

2008-05-12 Thread Horace Tso
Stas, this doesn't solve your problem but may shed some light on what might have gone wrong. Just recently I installed R 2.7.0 under openSuse 10.3 in a brand new 64-bit Lenovo ThinkPad. The first install failed because of a dependency error just like yours. It complained it couldn't find BLAS

[R] Implementation of GMM

2008-02-29 Thread Horace Tso
Hi folks, Is there an implementation of generalized method of moments in R? I did do a help.search but found no hit. Site search found this gmm estimator function in the package sde but not sure what it is. Having browsed the codes in Finmetrics, I naively thought it won't be too hard to

Re: [R] Dates in R

2007-11-28 Thread Horace Tso
Irina, you must have them in character format. You need to convert to Date type. mydates = as.Date(mydates, %m/%d/%Y) HTH. Horace -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Irina Burmenko Sent: Wednesday, November 28, 2007 11:44 AM To: Horace Tso

Re: [R] Appropriate measure of correlation with'zero-inflated' data?

2007-10-25 Thread Horace Tso
Doug and the football fans out there, I'm no football expert myself. But here is what my colleague said after reading the posting. I can't help you with the equation, but I can say that the polls are very poor predictors of performance. The reason they do such a bad job is that pollsters