Dear Ramya,
Try
# Gene list with 3 genes
genelist=list(gene1=rnorm(100),gene2=rnorm(100),gene3=rnorm(100))
genelist
# Map file with 50 genes
mapfile=data.frame(gene=paste("gene",1:50,sep=""),coordinate=runif(50,6180,6300))
mapfile
# Genes in genelist (names)
NAMES=names(genelist)
NAMES
hi
I want to compare two list by its names and get the values of that list.
can anybody let me know the syntax of comparing the list by their names
using a for loop
c.genes<- list()
for(i in 1:100)
c.genes[[1]]<- geneset(which(geneset == tobecampared[i]))
}
here geneset is a list and also to
2 matches
Mail list logo