Re: [R] Combining values from a data.frame row with matrix rownames.

2010-08-18 Thread Gil Gamesh
Terrific! Many thanks, Josh, you put me on the right path with the tip re dput and the remark about factors. Using "stringsAsFactors=FALSE" in my read.table and then "IndexList <- c( unlist(seed_panel[ i, ]), rownames( Control[ j, ] ) )" did the trick. Your help is hugely appreciated. Thanks aga

Re: [R] Combining values from a data.frame row with matrix rownames.

2010-08-17 Thread Joshua Wiley
Hi, I believe you are looking for ?unlist. Here is something that does what I think you want with data that is my best guess at what yours is like (if the data in seed_panel is stored as factor, you will probably need to convert it first somehow). > seed_panel <- data.frame(V2 = "507D22", V3 = "

[R] Combining values from a data.frame row with matrix rownames.

2010-08-17 Thread Gil Gamesh
Apologies, I neglected to check that the email was plain text. Here is a the text of the previous email. Hello, I am trying to iteratively build a build a panel of variables to discriminate between two groups. My starting position is a matrix of experimental data and I have a function that will

[R] Combining values from a data.frame row with matrix rownames.

2010-08-16 Thread Gil Gamesh
Hello, I am trying to iteratively build a build a panel of variables to discriminate between two groups. My starting position is a matrix of experimental data and I have a function that will work through all pairs of variables and produce sensitivities, specificities and p-values for each pair an