search for: path_numb

Displaying 3 results from an estimated 3 matches for "path_numb".

Did you mean: path_number
2012 Nov 08
1
Extract cell of many values from dataframe cells and sample from them.
...resistance genes. During the simulation, these things can be pulled out of the dataframes and operated on, before being stored again in the dataframes. Below is how I've created my dataframe and stored my effector genes. In this model, effector genes are numerical values between 1 and 10000. Path_Number <- 0500 inds <- data.frame(ID=formatC(0001:Path_Number,width=4,flag=0),No_of_Effectors="",No_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) sa...
2012 Nov 27
2
Stuck trying to modify a function
Hi, I have the following data: Path_Number <- 5 ID.Path <- c(1:Path_Number) # Make vector of ID's. No_of_X <- sample(50:550, length(ID.Path), replace=TRUE) # X <- split(sample(1:10000, sum(No_of_X), replace=TRUE), rep(ID.Path, No_of_X)) Y <- lapply(X,function(x) sample(x, round(runif(1, min=10, max=50)))) X and Y are b...
2012 Nov 16
1
Code works, but not as function.
Hi, I have some values in a list format generated by the following: Path_Number <- 0010 ID.Path <- formatC(0001:Path_Number, width=4, flag=0) # Make vector of ID's. No_of_Effectors <- sample(1:550, length(ID.Path), replace=TRUE) # Define Number of Effectors each individual gets. Effectors <- split(sample(1:10000, sum(No_of_Effectors), replace=TRUE), rep(ID.Pa...