Re: [R] How to retrieve data from a matrix

2012-11-19 Thread ginger
Thank you very much, It works! -- View this message in context: http://r.789695.n4.nabble.com/How-to-retrieve-data-from-a-matrix-tp4649721p4650036.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] How to retrieve data from a matrix

2012-11-16 Thread ginger
I have a data set (data.txt) containing information on affection status (1=affected; 0=not affected) for some subjects identified by an ID. Then I have a sort of correlation matrix of the same subjects (matrix.txt). For each affected subject in the data set I have to retrieve the IDs of unaffected

Re: [R] Script for searching in a kinship matrix

2012-11-10 Thread ginger
Hi everybody! I suceeded in extracting the sub-matrix containing just the relevant subjects of this example data (indeed I could retrieve 190 of the 220 subjects of the data example, so that the relative kinship matrix is a 190X190). For the subjects non present in the kinship matrix case-control

[R] Script for searching in a kinship matrix

2012-11-09 Thread ginger
a value (ID code) only for cases and a missing value for controls. Does anybody can help me? Ginger Example.txt http://r.789695.n4.nabble.com/file/n4649089/Example.txt -- View this message in context: http://r.789695.n4.nabble.com/Script-for-searching-in-a-kinship-matrix-tp4649089.html Sent from

[R] parsing text files

2012-03-08 Thread ginger
Hello, I have a .txt file with many clinical exams reports (two examples of which are attached to the message). I have to create a data frame with as many rows as the number of clinical exams reports in the text file and 24 columns: the first (to be labelled as ID) with a number (representing an

Re: [R] parsing text files

2012-03-08 Thread ginger
Ooops, I forgot to specify that for each raw, containing records of the clinical reports , the values of the 22 parameter measurement have to be reported. For example, first raw, first 5 columns: ID DATE GLICEMIA AZOTEMIA CREATININEMIASODIEMIA ...