{ c(NA,NA) }
This should also allow pairs of persons (or chicks or piglets) with
the same name (or id) but from different families to be paired. The
assignment of duplicate names to row.names might produce some
surprises in that instance.
--
David.
A.K.
- Original Message -
"1" "3" NA "4"
#[2,] "3" NA "8" "4" NA "8"
A.K.
- Original Message -
From: David Winsemius
To: benjamin_jarrett
Cc: r-help@r-project.org
Sent: Saturday, November 17, 2012 6:36 PM
Subject: Re: [R] pairing data u
On Nov 17, 2012, at 10:07 AM, benjamin_jarrett wrote:
> Hi David,
>
> Thanks for replying. Unfortunately I can't get it to work. Here is some
> (very simplified) data to help illustrate my problem.
>
> ind <- c('1','2','3','4')
> fam <- c('1','2','1','2')
> data <- data.frame(ind,fam)
>
> ind
Hi David,
Thanks for replying. Unfortunately I can't get it to work. Here is some
(very simplified) data to help illustrate my problem.
ind <- c('1','2','3','4')
fam <- c('1','2','1','2')
data <- data.frame(ind,fam)
ind is the unique ID for each individual, and fam is which family the
individual
On Nov 16, 2012, at 6:58 AM, bjmjarrett wrote:
> Dear All,
>
> I have a dataframe made up of individual beetles consisting of individual
> number, family number, mother's family number, father's family number, and
> sex of the beetle. I would like to pair up the individuals for breeding. I
> w
Dear All,
I have a dataframe made up of individual beetles consisting of individual
number, family number, mother's family number, father's family number, and
sex of the beetle. I would like to pair up the individuals for breeding. I
would, however, like to avoid breeding beetles of the same sex
6 matches
Mail list logo