[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

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

2011-05-05 Thread yoav baranan
differences Date: Thu, 5 May 2011 12:17:25 -0400 On May 5, 2011, at 10:48 AM, yoav baranan wrote: 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

[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')))

[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 for? I

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

2010-10-25 Thread yoav baranan
wink: A1.056, Coupure Links 653, 9000 Gent ring: 09/264.59.36 -- Do Not Disapprove -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of yoav baranan Sent: maandag 25 oktober 2010 13:27 To: r-help@r-project.org Subject: [R

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

2010-10-25 Thread yoav baranan
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 ybara...@hotmail.com wrote: Hi, I am searching for the equivalent of the function Index from SAS. In SAS: index(abcd, bcd) will return 2 because bcd