Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20040803/c060440e/attachment.pl
There are quite a few helpful free contributions--under contributed go figure-- on the R site. "Using R for Data Analysis and Graphics" by John Maindonald (PDF [702kB], data sets and scripts are available at JM's homepage). I found...
This is one way not so good R>X<-rnorm(1000000) R>X0<-.899 R>plot(density(X)) R>abline(v=X0) A better way R>x<-seq(-5,5,.01) R>plot(x,dnorm(x)) R>plot(x,dnorm...
abline(h=q) might be useful Jim ----- Original Message ----- From: "Mikkel Grum" <mi2kelgrum at yahoo.com> To: "RHelp" <r-help at stat.math.ethz.ch> Sent: Sunday, August 08, 2004 1:26 PM Subject: [R] vectorized lines > Hi, > > I thought...
R>a<-c(1,2,3) R> b<-c(1,1,2,4) R>1*b%in%a*b [1] 1 1 2 0 R> b<-c(1,1,2,4,5,1,2,3,4) R>1*b%in...
? par ? axis basically you turn off the default labels and give your vector of character labels ----- Original Message ----- From: "Laura Holt" <lauraholt_983 at hotmail.com> To: <r-help at stat.math.ethz.ch> Sent: Monday, August 16, 2004 10...
You can use reshape which seems popular this week! > rr equity_id date returns 1 1 20050619 0.12 2 2 20050619 0.03 3 1 20050620 -0.01 4 2 20050620 0.01 > reshape(rr,timevar="equity_id",direction...
> dat<-matrix(runif(2000),2,1000) > rho<-.77 > R<-matrix(c(1,rho,rho,1),2,2) > dat2<-t(ch)%*%dat > cor(dat2[1,],dat2[2,]) [1] 0.7513892 > dat<-matrix(runif(20000),2,10000) > rho<-.28 > R<-matrix(c...
?demo may give you some ideas. -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Federico Calboli Sent: June 24, 2005 10:39 AM To: r...
I think you can use barplot for what you want. -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Depire Alexandre Sent: June 3, 2005 12...
?table maybe is what you want -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Uzuner, Tolga Sent: June 20, 2005 8:50 AM To: 'r...
This may help R>wei V1 V2 V3 1 5540 389100307391 2600 2 5541 389100307391 2600 3 5542 389100307391 2600 4 5543 389100307391 2600 5 5544 389100307391 2600 6 5546 381300302513 NA 7 5547 387000307470 NA 8 5548 387000307470 NA...
I have noticed that some data sets seem not to be available to me when I am running some of the examples or demos since I have changed versions. For example: demo(persp) demo(persp) ---- ~~~~~ Type <Return> to start : R...
OK now I am skeptical especially when you say in a weird way:-) This may be OK but look at plot(x,y) and I am suspicious. Is it still alright with this kind of relationship? For large N it...
Something like this!?!? R>new a [1,] 10 1 [2,] 20 1 [3,] 10 1 [4,] 20 1 [5,] 30 1 [6,] 10 2 [7,] 20 2 [8,] 20 2 [9,] 30 2 [10,] 30 2 [11,] 20 3 [12...
If I am understanding correctly you can have a look at ? t.test and ? wilcox.test depending on assumptions. Jim ----- Original Message ----- From: "James R. Graham" <jamesrgraham at mac.com> To: <r-help at stat.math.ethz.ch> Sent: Saturday...
This similar method may be quicker x1$new <- 1*(rowSums(x1)/ncol(x1)==x1[,1]) Learning lots from these type questions! Jim ----- Original Message ----- From: "Gabor Grothendieck" <ggrothendieck at myway.com> To: <r-help at stat.math.ethz.ch> Sent...
First it looks like in L you need a 3 in row 3 col 2. Anyway I think this is a non elegant way to do it without a loop that you can easily improve I imagine and should be...
Here is a way to do it without a loop that could save some time for a big dataset. > df1 A B C D [1,] 1 3 6 8 [2,] 2 4 5 7 [3,] NA 1 6 4 [4...
----- Original Message ----- From: "Johannes Graumann" <johannes_graumann at web.de> To: <r-help at stat.math.ethz.ch> Sent: Wednesday, August 25, 2004 7:07 PM Subject: [R] Beginners Question: Make nlm work > Hello, > > I'm new to this and...
Can't find what you're looking for? Try searching with Google .