Re: [R] cross-correlation table with subscript or superscript to indicate significant differences

2011-05-05 Thread yoav baranan
org > From: dwinsem...@comcast.net > To: ybara...@hotmail.com > Subject: Re: [R] cross-correlation table with subscript or superscript to > indicate significant differences > Date: Thu, 5 May 2011 12:17:25 -0400 > > > On May 5, 2011, at 10:48 AM, yoav baranan wrote: > > >

[R] cross-correlation table with subscript or superscript to indicate significant differences

2011-05-05 Thread yoav baranan
Hi, I wonder whether the following is possible with R, and whether anyone has done that and can share his/her code with me. I have a correlation matrix, and I want to create a correlation table that I can copy to Microsoft Word with a superscript above each correlation, indicating significant d

[R] get cells by the combination of their column and row names

2011-04-20 Thread yoav baranan
Hi, I have a (correlation) matrix and I want to select a subset of its cells depending on the combination of their column and row names. This illustrates my problem: mtrx <- matrix(c(1,2,3,4,5,6,7,8,9), nrow=3, ncol=3, dimnames = list(c('c132','c432', 'c233'), c('r132','r233', 'r432')))> mt

Re: [R] Find index of a string inside a string?

2010-10-25 Thread yoav baranan
mail.com > CC: r-help@r-project.org > > I think what you want is 'regexpr': > > > regexpr("bcd", "aabcd") > [1] 3 > attr(,"match.length") > [1] 3 > > > > > On Mon, Oct 25, 2010 at 7:27 AM, yoav baranan wrote: > &

Re: [R] Find index of a string inside a string?

2010-10-25 Thread yoav baranan
ith fixed=TRUE. > Check ?grep. > > > Nick Sabbe > -- > ping: nick.sa...@ugent.be > link: http://biomath.ugent.be > wink: A1.056, Coupure Links 653, 9000 Gent > ring: 09/264.59.36 > > -- Do Not Disapprove > > > > > -Original Message- >

[R] Find index of a string inside a string?

2010-10-25 Thread yoav baranan
Hi, I am searching for the equivalent of the function Index from SAS. In SAS: index("abcd", "bcd") will return 2 because bcd is located in the 2nd cell of the abcd string. The equivalent in R should do this: > myIndex <- foo("abcd", "bcd") #return 2. What is the function that I am looking fo