Re: [R] recoding a data in different way: please help

2011-02-18 Thread Umesh Rosyara
Sorry to bother all of you, but simple things are being complicated these days to me. Thank you so much Umesh R _ From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Friday, February 18, 2011 12:15 AM Cc: r-help@r-project.org Subject: Re: [R] recoding a data in dif

Re: [R] recoding a data in different way: please help

2011-02-18 Thread Umesh Rosyara
8, 2011 12:28 AM Cc: r-help@r-project.org Subject: Re: [R] recoding a data in different way: please help Hi: This is as far as I could get: df <- read.table(textConnection(" Individual Parent1 Parent2 mark1 mark2 10 0 12 11 20 0

Re: [R] recoding a data in different way: please help

2011-02-17 Thread Dennis Murphy
Hi: This is as far as I could get: df <- read.table(textConnection(" Individual Parent1 Parent2 mark1 mark2 10 0 12 11 20 0 11 22 30 0 13 22 40 0 13 11 51 2

Re: [R] recoding a data in different way: please help

2011-02-17 Thread Joshua Wiley
Dear Umesh, I could not figure out exactly what your recoding scheme was, so I do not have a specific solution for you. That said, the following functions may help you get started. ?ifelse # vectorized and different from using if () statements ?if # ?Logic ## logical operators for your tests ##

[R] recoding a data in different way: please help

2011-02-17 Thread Umesh Rosyara
Dear R users The following question looks simple but I have spend alot of time to solve it. I would highly appeciate your help. I have following dataset from family dataset : Here we have individuals and their two parents and their marker scores (marker1, marker2,and so on). 0 means t