[R] fImport data from Australian stock exchange

2009-05-03 Thread James Smith
Dear all, I have been importing data into R from yahoo using yahooSeries, however the older version I was using no longer works with the syntax I have developed. I downloaded the latest package and it downloads data from the U.S. just fine, but the ticker codes for the Australian stock exchange

[R] running R on netbooks/minis?

2009-05-03 Thread Erin Hodgess
Dear R People: Is it possible to run R on a netbook/mini, please? Thanks, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodg...@gmail.com __

Re: [R] running R on netbooks/minis?

2009-05-03 Thread Zeljko Vrba
On Sun, May 03, 2009 at 03:27:43AM -0500, Erin Hodgess wrote: Is it possible to run R on a netbook/mini, please? There should be no reason not to be possible, if the notebook uses an OS that R supports. __ R-help@r-project.org mailing list

[R] Division ?

2009-05-03 Thread bogdanno
It seems division with numbers bigger than 10 000 000 doesn't work 2000/21 [1] 952381 /23 [1] 2415459 Thank you __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Optim function in the loop

2009-05-03 Thread Rstarer
Hi all, I wrote the following lines of codes try to do some iterations to find the global optimal values, but the function does not execute properly. Every time codes stop after one iteration right after executing the optim() function. Does anyone could have me to take a look? Thanks. if

Re: [R] running R on netbooks/minis?

2009-05-03 Thread Joshua Wiley
It probably depends on the mini, but it seems to work okay on my HP 1030nr with XP home (1.6 ghz intel atom, 1GB RAM, 16GB SSD). If I am working with larger datasets, I usually use my desktop. A lot of people like to use Linux on minis because it is often faster. If you are

Re: [R] Division ?

2009-05-03 Thread Gavin Simpson
On Sat, 2009-05-02 at 10:34 -0700, bogdanno wrote: It seems division with numbers bigger than 10 000 000 doesn't work 2000/21 [1] 952381 /23 [1] 2415459 Thank you You are confusing the 'printed' representation of the resulting object with the object itself:

Re: [R] Division ?

2009-05-03 Thread Ted Harding
On 02-May-09 17:34:15, bogdanno wrote: It seems division with numbers bigger than 10 000 000 doesn't work 2000/21 [1] 952381 /23 [1] 2415459 Thank you I think you are confusing what is displayed with what is computed: 2000/21 # [1] 952381 print(2000/21,17) # [1]

Re: [R] running R on netbooks/minis?

2009-05-03 Thread Tobias Verbeke
Zeljko Vrba wrote: On Sun, May 03, 2009 at 03:27:43AM -0500, Erin Hodgess wrote: Is it possible to run R on a netbook/mini, please? There should be no reason not to be possible, if the notebook uses an OS that R supports. For the eeepc, e.g., documentation has been contributed on the R wiki

Re: [R] running R on netbooks/minis?

2009-05-03 Thread HBaize
It works great on my Acer Aspire One AOD150-1165 10.1 inch, under Windows XP. I opted to expand to two gigs of RAM because R loads all objects into active memory. The expansion of 2 gigs over the 1 gig that was standard only cost $20. Unless you are using large data sets with extensive

[R] fImport data from Australian stock exchange

2009-05-03 Thread James Smith
Dear all, I have been importing data into R from yahoo using yahooSeries, however the older version I was using no longer works with the syntax I have developed. I downloaded the latest package and it downloads data from the U.S. just fine, but the ticker codes for the Australian stock exchange

Re: [R] Extracting Element from S4 objects

2009-05-03 Thread David Winsemius
On May 2, 2009, at 6:30 PM, tbigdeli wrote: Good point, I've updated since. Now, would solutions be specific to newer versions? Who knows? I was just saying there might be difficulties in getting anyone to actually test the specifics of your question. I need to make a numerical

Re: [R] Help with RExcel (running code)

2009-05-03 Thread Erich Neuwirth
Please send mail to the rcom mailing list. You can subscribe at rcom.univie.ac.at benn fine wrote: Hello: First, RExcel completely rocks! Hat tip to the development team. However, I don't understand something very basic about it. Suppose I put the following code in two cells and choose

Re: [R] lattice levelplot axis + custom annotations

2009-05-03 Thread David Winsemius
On May 2, 2009, at 11:05 PM, Alex Reynolds wrote: On May 2, 2009, at 5:08 PM, David Winsemius wrote: Not sure since you have not provided a reproducible example and not really defined what annotations means. By annotations, I mean that I want to draw an object (set of poiygon() elements

Re: [R] running R on netbooks/minis?

2009-05-03 Thread Esmail
Erin Hodgess wrote: Dear R People: Is it possible to run R on a netbook/mini, please? I have run this in my MSI Wind w/ 2GB RAM under XP and also Linux (in VirtualBox) w/o problems - though of course it's much slower than on a 'real' desktop or laptop :-) The Atom processor's forte is not

Re: [R] Trouble installing packages on Macintosh OS-X 10.5.6

2009-05-03 Thread stephen sefick
Maybe the mirror that you are using has not been completely updated? On Sat, May 2, 2009 at 10:45 AM, jlwoodard john.wood...@wayne.edu wrote: I just upgraded my version of R from 2.8.1 to 2.9.0.  After doing so, I now have problems using the package installer to reinstall all my packages.

[R] AUTO: Katy Strong is out of the office (returning Wed 05/06/2009)

2009-05-03 Thread Katy Strong
I am out of the office from Fri 05/01/2009 until Wed 05/06/2009. I am out of the office on Friday May 1 through Tuesday May 5. I will have limited access to email and will respond to your message as soon as possible. If you need immediate assistance, please contact my associate, Cherie

Re: [R] Optim function in the loop

2009-05-03 Thread Ravi Varadhan
Hi, It is not clear to me what you are trying to do, but you should try `while' instead of `if': count - 1 while (count 0) { . . # yuor code here . } Ravi. Ravi Varadhan, Ph.D. Assistant Professor, Division of Geriatric

Re: [R] arma model with garch errors

2009-05-03 Thread Yohan Chalabi
JM == Joseph Magagnoli jcm...@gmail.com on Wed, 29 Apr 2009 14:54:26 -0500 JM garchFit(formula.mean= ~arma(2,2),formula.var=~garch(1,1), JM data=data1) JM Error in garchFit(formula.mean = ~arma(2, 2), formula.var = JM ~garch(1, : JM element 1 is empty; JM the part of the args

Re: [R] Trouble installing packages on Macintosh OS-X 10.5.6

2009-05-03 Thread Rob Goedman
John, I noticed yesterday and this morning that the UCLA mirror is not responding reliably right now. Switching to Berkeley (CA 1 in the preferences list in R.app) solved that issue for me. ROb On May 3, 2009, at 6:23 AM, stephen sefick wrote: Maybe the mirror that you are using has

[R] is there a way to read a specific column from a txt file

2009-05-03 Thread Wensui Liu
Sometimes, it is too costly to read the whole data file into R. I am looking for solution in scan() and read.Lines() but don't they work. Thank you so much! -- == WenSui Liu Acquisition Risk, Chase Blog : statcompute.spaces.live.com Tough Times Never Last. But Tough

Re: [R] is there a way to read a specific column from a txt file

2009-05-03 Thread Gabor Grothendieck
The sqldf package can read in a column without reading the entire file into R. It will automatically set up a database for you read the file into the database (all this without going through R) and then it will extract the column you want. You will need two statements. One to define which file to

Re: [R] is there a way to read a specific column from a txt file

2009-05-03 Thread Paul Smith
On Sun, May 3, 2009 at 6:36 PM, Wensui Liu liuwen...@gmail.com wrote: Sometimes, it is too costly to read the whole data file into R. I am looking for solution in scan() and read.Lines() but don't they work. Try the following (assuming a 3 columns data file): mydata -

Re: [R] running R on netbooks/minis?

2009-05-03 Thread John C Frain
On the basic eee pc 701 it I have installed Ubuntu 9.04 netbook remix on an SD card. This appears to work well. The WiFi card was recognised and it was possible to install R, emacs and ess in the same way as with ordinary Ubuntu. I dont expect to break any speed records but R emacs and

Re: [R] running R on netbooks/minis?

2009-05-03 Thread Erin Hodgess
Thanks to everyone for their great advice! Sincerely, Erin On Sun, May 3, 2009 at 2:13 PM, John C Frain fra...@gmail.com wrote: On the basic eee pc 701 it I have installed Ubuntu 9.04 netbook remix on an SD card.  This appears to work well.  The WiFi card was recognised and it was possible

Re: [R] Division ?

2009-05-03 Thread Bernardo Rangel Tura
On Sat, 2009-05-02 at 10:34 -0700, bogdanno wrote: It seems division with numbers bigger than 10 000 000 doesn't work 2000/21 [1] 952381 /23 [1] 2415459 Thank you Hi bogdanno First of all look this all.equal(21*2000/21,2000) [1] TRUE So de division work

[R] dates from Stata's .dta to R's .Rdata: become character

2009-05-03 Thread Rob Bakker
Dear Sir/Madam, I converted the .dta into .Rdata with the foreign library read.dta. However, when I use fix() I get the message that the dates are discarded. Before fix(), class(dateX) gives 'dates' as class; after fix() class(dateX) gives 'character' Why is that? Best regards, Rob Bakker

[R] clear screen?

2009-05-03 Thread Charles Annis, P.E.
I’ve been using this routine for several years. I’m sorry, I don’t remember where I got it. It works as it should, viz. it blanks the R console. But it requires package rcom and now that requires rscproxy. cls - function () { require(rcom) wsh - comCreateObject(Wscript.Shell)

Re: [R] dates from Stata's .dta to R's .Rdata: become character

2009-05-03 Thread John Fox
Dear Rob, -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Rob Bakker Sent: May-03-09 7:46 AM To: r-help@r-project.org Subject: [R] dates from Stata's .dta to R's .Rdata: become character Dear Sir/Madam, I converted the

Re: [R] Overlaying graphs from different datasets with ggplot

2009-05-03 Thread hadley wickham
On Thu, Apr 30, 2009 at 2:03 PM, MUHC-Research villa...@dms.umontreal.ca wrote: Dear R-users, I recently began using the ggplot2 package and I am still in the process of getting used to it. My goal would be to plot on the same grid a number of curves derived from two distinct datasets. The

Re: [R] clear screen?

2009-05-03 Thread Gabor Grothendieck
You got it from my post here: http://tolstoy.newcastle.edu.au/R/help/06/02/21556.html Don't know why rcom's dependencies are a consideration but RDCOMClient can also handle this: cls - function () { require(RDCOMClient) wsh - COMCreate(Wscript.Shell) wsh$SendKeys(\f)

Re: [R] clear screen?

2009-05-03 Thread Charles Annis, P.E.
Thank you Gabor. I'm sorry I forgot whom to acknowledge as the author. My (limited) understanding is that rcom with rscproxy essentially give the R session the ability to look like a server, and that this scares some who are concerned with security issues. I don't want any more capability than

[R] how to display case names in biplot.prcomp?

2009-05-03 Thread rat.cage
hey, im trying hard to display names (given in a seperate variable) instead of case numbers in a pca plot (by biplot of a prcomp output). somebody could help me with this? lukas __ R-help@r-project.org mailing list

Re: [R] clear screen?

2009-05-03 Thread Daniel Viar
I'm not sure how to put it in a function (or if this helps), but Ctrl+L will clear the R Console in Windows. Cheers, Dan Viar On Sun, May 3, 2009 at 6:58 PM, Charles Annis, P.E. charles.an...@statisticalengineering.com wrote: Thank you Gabor.  I'm sorry I forgot whom to acknowledge as the

Re: [R] how to display case names in biplot.prcomp?

2009-05-03 Thread Bill.Venables
One way is to give the names you want to use as the rownames of the scores component of the principal component analysis object. e.g. pca - princomp(~.-Species, iris) rownames(pca$scores) - paste(C, substring(1001:1150, 2), sep = ) biplot(pca) (May I also suggest you treat the group with a

Re: [R] arima, xreg, and the armax model

2009-05-03 Thread David Stoffer
Hi Marc- I have been [and am] extremely busy and haven't had much time to be a playeR (lately I've become more of a moveR and shakeR ... some say more of a boozeR and a loseR ... it's all prespective :). I've updated the web page with a little more info, but when I find the time I'll put up some

[R] Please help me subset this dataframe, thanks...

2009-05-03 Thread Mark Na
Dear R-helpers, I have a dataframe called trackpoints with several columns including a column called time, eg: trackpoints         time 1   12:00:00 2   12:00:01 3   12:00:02 . . . 298 12:04:57 299 12:04:58 300 12:04:59 I also have a dataframe called data that contains columns called ID, start

[R] Nelson-Aalen estimator of cumulative hazard

2009-05-03 Thread Ravi Varadhan
Hi, I am computing the Nelson-Aalen (NA) estimate of baseline cumulative hazard in two different ways using the survival package. I am expecting that they should be identical. However, they are not. Their difference is a monotonically increasing with time. This difference is probably not

[R] Encoding issue with replacement operation

2009-05-03 Thread ronggui
I have a length-1 character vector x, and I want to replace ' in the character into ''. What I do now is to iconv x into suitable current Encoding, then use gsub. It works well if I knows what x is (e.g. Chinese charater), as I can use suitable locales to handle it. ### it works x- some chinese

Re: [R] Please help me subset this dataframe, thanks...

2009-05-03 Thread Tal Galili
Hi Mark. Have a look at the commands: merge and cbind I believe they may hold the key. I hope this helps :-) Tal On Mon, May 4, 2009 at 5:38 AM, Mark Na mtb...@gmail.com wrote: Dear R-helpers, I have a dataframe called trackpoints with several columns including a column called time,