Re: [R] appending data to a row

2013-02-14 Thread arun
tical(dat1,dat2) #[1] TRUE A.K. - Original Message - From: Jamie To: r-help@r-project.org Cc: Sent: Thursday, February 14, 2013 4:07 PM Subject: [R] appending data to a row For an analysis of data from twins, I'd like to do some rearranging in my dataframe. Currently, each twin ha

Re: [R] appending data to a row

2013-02-14 Thread Rui Barradas
Hello, Maybe something like the following. dat <- read.table(text = " FamilyID ParticipantID IQ Digit_span 1 1 95 6 1 2 93 7 2 3 102 8 2 4 101 9 3 5 106 7 3 6 108 9

Re: [R] appending data to a row

2013-02-14 Thread David Winsemius
On Feb 14, 2013, at 1:07 PM, Jamie wrote: > For an analysis of data from twins, I'd like to do some rearranging in my > dataframe. Currently, each twin has his or her own row. I'd like to add > several columns of the co-twin's data to each row. In other words, this is > the current situation: >

[R] appending data to a row

2013-02-14 Thread Jamie
For an analysis of data from twins, I'd like to do some rearranging in my dataframe. Currently, each twin has his or her own row. I'd like to add several columns of the co-twin's data to each row. In other words, this is the current situation: FamilyID ParticipantID IQ Digit_span 1