I know that the title of this question is confused if not mistaken. Sorry for that, let me explain what I'm trying to do:
population <- c("Adam", "Bob", "Chris", "Doug", "Emily", "Frank", "George","Harry", "Isaac", "Jim", "Kyle", "Louis")
population_size <- length(population)
mysample_size <- 5
mysample <- sample(population,mysample_size, replace=FALSE)
frn <- matrix(rbinom(mysample_size*mysample_size, 1, 0.4),nrow=n)
x[x<=0] <- 0
x[x>0] <- 1
rownames(frn) <- mysample
colnames(frn) <- mysample
* Now I would like to transfer the values from frn to a matrix that includes all the elements from the original population, i.e. 12 to 12 matrices. Values in this matrix will come only from frn 5 * 5 matrix.
I don’t know how to generate the matrix below from the matrix above.
(, iGraph edgelists) , . , : , , , . .