search for: convt

Displaying 1 result from an estimated 1 matches for "convt".

Did you mean: const
2006 Apr 26
2
help in R
...and affection status > > ###form gntp using the two alleles of each SNP > allele1 <- snp.dat[,seq(1,2*n.snp,2)+n.id ] > allele2 <- snp.dat[,seq(2,2*n.snp,2)+n.id ] > temp <- matrix(paste(allele1,allele2,sep="|"),dim(allele1)) > temp <- data.frame(temp) > convt <- function(x) x <- factor(as.character(x),exclude="0|0") > > gntp <- as.data.frame(lapply(temp,convt)) > > ###create new snp data with ids and gntp only > names(gntp) <- snp.name > ids <- as.data.frame(snp.dat[,1:n.id]) > names(ids) <- c("fid...