Displaying 20 results from an estimated 34 matches for "rhotrad".
Did you mean:
rhograd
2005 Nov 16
1
COM dates (was origin and "origin<-" in chron)
...ave functions for converting COM datetime <-> chron
datetimethat work "safely"?
David L. Reiner
> -----Original Message-----
> From: Gabor Grothendieck [mailto:ggrothendieck@gmail.com]
> Sent: Tuesday, November 15, 2005 5:34 PM
> To: David Reiner <davidr@rhotrading.com>
> Cc: r-help@stat.math.ethz.ch
> Subject: [SPAM] - Re: [R] origin and "origin<-" functions on chron -
> Bayesian Filter detected spam
>
> chron has a namespace so try this:
>
> chron:::origin
> getAnywhere("origin<-")
>...
2005 May 06
4
Choices from a matrix
Could someone please suggest a more clever solution to the following problem than my loop below?
Given X a 2xN matrix X, and I a k-subset of N,
Generate the (2^k)xN matrix Y with columns not in I all zero and the other columns with all choices of an entry from the first or second row of X.
For example, with
X <- matrix(1:8, nrow=2)
I <- c(1,3)
X is
1 3 5 7
2 4 6 8
and Y should be
1 0 5
2006 Jul 24
3
unique, but keep LAST occurence
?unique says
Value:
An object of the same type of 'x'. but if an element is equal to
one with a smaller index, it is removed.
However, I need to keep the one with the LARGEST index.
Can someone please show me the light?
I thought about reversing the row order twice, but I couldn't get it to work right
(My data frame has 125000 rows and 7 columns,
and I'm
2004 Nov 08
1
can one evaluate an expression in a comment? (or insert resultsinto history?)
...the history buffer. I'm trying to avoid cutting and pasting
the results into a comment.
Thanks for any more help on this,
David
-----Original Message-----
From: partha_bagchi at hgsi.com [mailto:partha_bagchi at hgsi.com]
Sent: Monday, November 08, 2004 4:07 PM
To: David Reiner <davidr at rhotrading.com>
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] can one evaluate an expression in a comment? (or insert
resultsinto history?)
Have you perchance looked at
?paste
For example:
> paste("The current time is ", date())
[1] "The current time is Mon Nov 08 17:06:25 2004&q...
2004 Sep 13
2
Can I find the datetime an object was last assigned to/saved?
I'm using v 1.9.1 under Windoz XP.
Can I do the equivalent of "ls -l" on my R objects? R's "ls()" lists
only the names.
Thanks!
David L. Reiner
Rho Trading
440 S. LaSalle St -- Suite 620
Chicago IL 60605
312-362-4963 (voice)
312-362-4941 (fax)
[[alternative HTML version deleted]]
2007 Sep 18
0
FW: ISIN numbers into Bloomberg tickers
...cells 480150 12.9 818163 21.9 818163 21.9
Vcells 797171 6.1 1445757 11.1 1441593 11.0
> dat
[DATETIME] PX_LAST
day day (09/17/07 19:43:45) NA
I don't get the data...but the same statement tried with ticker works.
So, any problem with ISIN's?
-----Original Message-----
From: davidr at rhotrading.com [mailto:davidr at rhotrading.com]
Sent: Friday, September 14, 2007 10:24 PM
To: Shubha Vishwanath Karanth; r-help at stat.math.ethz.ch
Subject: RE: [R] ISIN numbers into Bloomberg tickers
You can try
> blpGetData(conn, "US912828HA15 Govt",
c("ticker", "cpn...
2005 Nov 15
1
origin and "origin<-" functions on chron
I'm trying to use/modify some code I found (at Omegahat, but I've seem similar usage elsewhere.)
It contains the lines:
if(any(origin(chronDate)!=orig))
origin(chronDate) <- orig
Let's say:
> require("chron")
[1] TRUE
> chronDate <- chron("11/15/2005", format="m/d/y", origin.=c(12,31,1899))
> orig <- c(month=12, day=31,
2006 Jun 15
2
Standard Deviation Distribution
I'm having trouble with the standard deviation distribution
as shown on http://mathworld.wolfram.com/StandardDeviationDistribution.html .
(Eric Weisstein references Kenney and Keeping 1951, which I can't check.)
I believe the graphs they show, but when I code the function in R, according to the listed formula,
I get very different graphs.
Would someone please point out my error or tell
2004 Sep 29
2
How to print landscape from script in Windows: dev.print(win.print, printer="local printer name", ...) does not accept horizontal=TRUE
This is a windows-specific question.
After generating a plot, I can print from scripts or the command line
with
> dev.print(win.print,printer="local windows printer name")
I would like to print in landscape mode. From the menus, I can
accomplish this by changing the properties of the printer before
clicking "print".
However, I tried adding
2007 Aug 01
1
New R package sqldf
sqldf is an R package for running SQL select
statements on one or more R data frames. It is
optimized for convenience making it useful
for ad hoc queries against R data frames.
Given an SQL select statement whose tables
are the names of R data frames it:
- sets up the database (by default it transparently
sets up an in memory SQLite database using RSQLite;
however, MySQL via RMySQL, can be
2007 Aug 01
1
New R package sqldf
sqldf is an R package for running SQL select
statements on one or more R data frames. It is
optimized for convenience making it useful
for ad hoc queries against R data frames.
Given an SQL select statement whose tables
are the names of R data frames it:
- sets up the database (by default it transparently
sets up an in memory SQLite database using RSQLite;
however, MySQL via RMySQL, can be
2009 Aug 03
3
Help with reshaping data.frame
I'm having trouble reshaping a data.frame from long to wide.
(I think that's the right terminology; feel free to educate me.)
I've looked at the reshape function and package and plyr package,
but I can't quite figure out how to do this after a dozen variations.
I have a data.frame with more levels than this, but similar to:
> tst
K1 K2 K3 V1 V2 V3
1 10 D a 0.08 99
2005 Jun 09
5
How to plot more than 3 sets in Venn Diagrams?
I'm trying to plot Venn diagrams with more than 3 sets (5 actually) in order to describe graphically the genetic variation between populations.
I tried the limma library but realised it can only plot 3 sets.
Is there any solution? Of course I could plot the chart manually but it'll take too long (have other datasets)..... One of my dataset is given below.
THanks for any advice.
j
2005 Jun 29
6
x*x*x*... vs x^n
Hi
I have been wondering if there one can speed up calculating small powers
of numbers such as x^8 using multiplication.
In addition, one can be a bit clever and calculate x^8 using only 3
multiplies.
look at this:
> f1 <- function(x){x*x*x*x*x*x*x*x}
> f2 <- function(x){x^8}
> f3 <- function(x){x2 <- x*x;x4 <- x2*x2;return(x4*x4)}
[so f1() and f2() and f3() are
2005 Jul 06
1
pretty for date-time?
pretty() works well for numbers and axTicks() can help for potting log axes,
but has anyone written a pretty for chron objects (or other date or date-time classes)?
It would have natural units of years, months, .., days, hours, (minutes?), and
it would choose the appropriate unit based on the date(time) range.
I have searched the archives and documentation to no avail.
(I wrote one of these back
2005 Apr 28
1
standard errors for orthogonal linear regression
Could someone please help me by giving me a reference to how one computes standard errors for the coefficients in an orthogonal linear regression, or perhaps someone has some R code? (I would accept a derivation or formula, but as a former teacher, I know how that can rankle.) I tried to imitate what's done in the code for lm() but went astray somewhere and got nonsense.
(This type of
2005 Apr 21
0
DOH! RE: R 2.1.0 for Windows installation error? atanh not in R.dll?
..._LIBS to look there. Changed R_LIBS, fixed problem.
DOH!
So now if I want to use several versions of R simultaneously, what do I do.
I set R_LIBS so it would look also in C:/R/extra for some added packages.
Thanks and sorry again,
David
-----Original Message-----
From: David Reiner <davidr at rhotrading.com>
Sent: Thursday, April 21, 2005 9:40 AM
To: r-help at stat.math.ethz.ch
Subject: R 2.1.0 for Windows installation error? atanh not in R.dll?
Could someone please tell me what I did wrong to create this message or what I should do to correct this problem?
I downloaded 2.1.0 Windows bina...
2008 Mar 11
1
plot.zoo warnings - ignore or look for problem?
I'm getting warnings when I plot a zoo object:
> dts <- chron(rep("2007-09-10", 5), paste("00:0", 0:4, ":00", sep=""),
c("y-m-d", "h:m:s"))
> dat.zoo <- zoo(1:5, dts)
> plot(dat.zoo)
Warning messages:
1: In v[[perm[1]]] : partial match of 'm' to 'month'
2: In v[[perm[2]]] : partial match of 'd'
2009 Jan 23
1
list.files changed in 2.7.0
I just noticed a change in the behavior of list.files from 2.6.1pat to
2.7.0
(I noticed it in 2.8.1 and traced back.)
Previously, if the directory ended with a slash, and full.names=TRUE,
the names
returned had a single slash at the end of the directory,
but now there are two. I noticed since I was getting a list of certain
files and
then grepping in the list for a full name formed with a
2004 Nov 08
1
can one evaluate an expression in a comment? (or insert results into history?)
I'd like to insert (for example) the current datetime into a comment so
it goes into the history.
I can of course cut and paste the results of date() into a comment line,
but it would be easier and more powerful to be able to type something
like
> hstamp()
and have it go into the history.
More generally, I would like to put any expression to be evaluated into
this function.
For