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 -
ns 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 wrote:
>&
> The "\\1" in the replacement argument to sub() means the
> text matched by the first parenthesized subpattern in the pattern
> argument.
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
>
>
>> -Original Message-
>> From:
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
t; b=paste(a,'.Adjusted',sep='')
> eval(as.name(a))[,b]
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 plea
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 e
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 wrote:
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))
How can I see the definition of this function?
Thanks.
__
R-help@r-project.org mailing list
h
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"?
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:
t
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 s
L")
Sys.sleep(3) }
Why 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''
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")
prin
On Feb 9, 2009, at 6:21 PM, Rolf Turner wrote:
>
> On 10/02/2009, at 12:09 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.
>
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 n
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
Statistical Computing Facility
Department of Statistics
UC Berkeley
spec...@stat.berkeley.edu
On Thu, 5 Feb 2009, Fuchs Ira wrote:
These a
:42 PM, Ira Fuchs wrote:
>
> > Thanks, that is better but doesn't actually solve my problem which
> 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.
> > Than
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)
sum(eva
19 matches
Mail list logo