Hello,
I would like to use the simple matching coefficient in R to compare
genotypic data from two years (there are some inconsistencies in the
genotype notations in the 2 years and I want to find out the error).
Is there a R code I could use? How does my matrix needs to look like?
I have 50 geno
Hello Jeff,
thanks a lot for your help. It seems to work well now.
Greetings
Birgit
Am 28.09.2007 um 20:33 schrieb Jeffrey Robert Spies:
> Hi Birgit,
>
> I've updated the recipe here, including a change to the
> dissimilarity function (making it more efficient):
>
> http://www.r-cookbook.com
> The next problem for me is now to deal with the NAs. I thought
> perhaps it is possible to exclude the variable from the row
> comparison if in one of the rows is an NA?
If you exclude the NAs in one dataset, you'll need to exclude the
exact same row in the other dataset. The question to
Thanks a lot for both solutions of my problem.
I tried it immediately and I understood how they are working.
The next problem for me is now to deal with the NAs. I thought
perhaps it is possible to exclude the variable from the row
comparison if in one of the rows is an NA?
Furthermore it wou
Not sure how you want to handle the NAs, but you could try the
following:
#start
MalVar29_37 <- read.table(textConnection("V1 V2 V3 V4 V5 V6 V7 V8 V9
0 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0
NA NA NA NA NA NA NA NA NA
0 1 0 0 0 1 0 0 0"), header=TRUE)
Hello!
I am R beginner and I have a question obout a simple matching.
I have to datasets that i read in with:
MalVar29_37<-read.table("MalVar29_37.csv", sep = ";")
FemVar29_37<-read.table("FemVar29_37.csv", sep = ";")
They look like this and show binary variables:
V1 V2 V3 V4 V5 V6 V7 V8
6 matches
Mail list logo