Displaying 1 result from an estimated 1 matches for "ind_genes".
2012 Nov 08
1
Extract cell of many values from dataframe cells and sample from them.
..._Expressed_Effectors="")
inds$No_of_Effectors <- round(as.numeric(lapply(1:nrow(inds),function(x) runif(1, min=1, max=550))))
Effectors <- lapply(1:nrow(inds),function(x) sample(1:10000,inds$No_of_Effectors,replace=TRUE))
inds <- data.frame(inds,Effectors=as.character(Effectors))
Ind_Genes <- strsplit(as.character(inds[1,4]),",")
What I'm trying to do is:
1). For each individual (row) in my database, extract the values in the "Effectors" cell to an object.
2). Sample a number of those values and assign them to a new object called "Expressed_Effectors&...