[R] studio server on High SIerra

2018-10-20 Thread Fuchs Ira
Can I run Rstudio Server on OSX 10.13 (High Sierra). If so, can someone please point me to install directions? I found an old post that talks about using homebrew but I can't find the rstudio-server brew to install. __ R-help@r-project.org mailing list

[R] simple parsing question?

2012-10-11 Thread Fuchs Ira
I am using the getQuote function in the Quantmod package to retrieve the % change for a stock as follows: getQuote(aapl,what=yahooQF(c(Change Percent (Real-time Trade Time %Change (RT) aapl 2012-10-11 03:41:00 N/A - -1.67% How can I extract the numeric change % which is being

Re: [R] simple parsing question?

2012-10-11 Thread Fuchs Ira
Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Fuchs Ira Sent: Thursday, October 11, 2012 12:58 PM To: r-help@r-project.org Subject: [R] simple parsing question? I am using the getQuote function in the Quantmod package to retrieve

Re: [R] simple parsing question?

2012-10-11 Thread Fuchs Ira
to manipulate the information returned by Yahoo but I guess that is not the case. Anyway thanks to everyone's help, I now know how to proceed. Best, Ira On Oct 11, 2012, at 4:59 PM, Bert Gunter wrote: Just a comment. On Thu, Oct 11, 2012 at 1:45 PM, Fuchs Ira irafu...@gmail.com wrote: I'm glad I

[R] character string as object name

2009-03-05 Thread Fuchs Ira
Can someone please tell me why the following (last line) doesn't work (as I expect it to :-) library(quantmod) a = getSymbols(MSFT,from=2009-3-01) a MSFT eval(as.name(a)) MSFT$MSFT.Adjusted b=paste(a,'$MSFT.Adjusted',sep='') b eval(as.name(b)) Why does this last line not work the way the

Re: [R] character string as object name

2009-03-05 Thread Fuchs Ira
] MSFT.Adjusted 2009-03-02 15.79 2009-03-03 15.88 2009-03-04 16.12 Thanks for your help. On Mar 5, 2009, at 11:33 AM, Wacek Kusnierczyk wrote: Fuchs Ira wrote: Can someone please tell me why the following (last line) doesn't work (as I expect it to :-) library

[R] listing functions in base package

2009-03-04 Thread Fuchs Ira
How can I print the definition of a function that is in the base package? for example, if I type: which.min I get function (x) .Internal(which.min(x)) environment: namespace:base How can I see the definition of this function? Thanks. __

Re: [R] listing functions in base package

2009-03-04 Thread Fuchs Ira
So functions in the base package are all written in C? Thanks. On Mar 4, 2009, at 10:26 PM, Kingsford Jones wrote: see https://stat.ethz.ch/pipermail/r-help/2008-January/151694.html hth, Kingsford Jones On Wed, Mar 4, 2009 at 7:30 PM, Fuchs Ira irafu...@gmail.com wrote: How can I

[R] learning R

2009-02-24 Thread Fuchs Ira
I was wondering why the following doesn't work: a=c(1,2) names(a)=c(one,two) a one two 1 2 names(a[2]) [1] two names(a[2])=too names(a) [1] one two a one two 1 2 I must not be understanding some basic concept here. Why doesn't the 2nd name change to too? also unrelated: if I

[R] how to add names to an object created using assign

2009-02-20 Thread Fuchs Ira
If I assign a variable in a function, as in: test=function(){ assign(a,c(1,2,3),env=.GlobalEnv) } How can I do the equivalent of: names(a)=c(one,two,three) within the function? Merely adding the call to names does not work within the function as it only affects a local variable:

Re: [R] pause in function execution

2009-02-10 Thread Fuchs Ira
is that? Thanks. On Feb 9, 2009, at 8:04 PM, Rolf Turner wrote: On 10/02/2009, at 1:46 PM, Fuchs Ira wrote: The binary in R.app starts the GUI. I suppose I would have to install the command-line version separately. On my machine there is a ``file'' /usr/bin/R which is actually

Re: [R] pause in function execution

2009-02-10 Thread Fuchs Ira
Oops...forgot to print(getQuote(AAPL). Sorry. On Feb 10, 2009, at 10:21 AM, Fuchs Ira wrote: I tried using the command-line and indeed it does not buffer so that, for example: for (i in 1:5) { print(x) Sys.sleep(3) } does as expected. However, the following sleeps for 15 seconds

[R] pause in function execution

2009-02-09 Thread Fuchs Ira
I would like to have a function which gets data, does a calculation and prints a result and then waits some number of seconds and repeats. If I use Sys.sleep, the execution is pausing but the function output is buffered so that it all comes out when the function terminates. How can I get

Re: [R] pause in function execution

2009-02-09 Thread Fuchs Ira
Yes, Windows has that in the Misc menu, but I don't see a way to do this on the Mac. On Feb 9, 2009, at 5:51 PM, Duncan Murdoch wrote: On 09/02/2009 5:07 PM, Fuchs Ira wrote: I would like to have a function which gets data, does a calculation and prints a result and then waits some number

Re: [R] pause in function execution

2009-02-09 Thread Fuchs Ira
PM, Fuchs Ira wrote: Yes, Windows has that in the Misc menu, but I don't see a way to do this on the Mac. In my experience output is not buffered on a Mac. Are you actually *printing* out the results you want to see? Could you, as the posting guide requests

Re: [R] pause in function execution

2009-02-09 Thread Fuchs Ira
The binary in R.app starts the GUI. I suppose I would have to install the command-line version separately. On Feb 9, 2009, at 7:12 PM, Rolf Turner wrote: On 10/02/2009, at 12:55 PM, Duncan Murdoch wrote: On 09/02/2009 6:27 PM, Fuchs Ira wrote: a=function() { print(start) print(Sys.time

[R] eval and as.name

2009-02-05 Thread Fuchs Ira
I'm sure there is a more general way to ask this question but how do you use the elements of a character vector as names of objects in an expression? For example, say you have: a = c(1,3,5,7) b = c(2,4,6,8) n=c(a,b) and you want to use the names a and b in a function (e.g. sum)

Re: [R] eval and as.name

2009-02-05 Thread Fuchs Ira
is that n is an arbitrary length vector and I'd like to find a way that avoids having to enumerate the elements of the character vector. Thanks, Ira - Original Message - From: markle...@verizon.net markle...@verizon.net To: Fuchs Ira irafu...@gmail.com Sent: Thu Feb 05 17

Re: [R] eval and as.name

2009-02-05 Thread Fuchs Ira
Department of Statistics UC Berkeley spec...@stat.berkeley.edu On Thu, 5 Feb 2009, Fuchs Ira wrote: These are all great resposes but I think I should have given a slightly more