Dear R-community,
I have a list in my workspace named “sample_experiment”, from which I need to draw some information in the form of vectors, like this:
first_column <- sample_experiment[[1]]$latent
second_column <- sample_experiment[[2]]$latent
third_column <- sample_experiment[[3]]$latent
And so on, up to
hundred_column <- sample_experiment[[100]]$latent
Each vector (column) would contain 10 different numerical values.
The question is, could guys please suggest a code to create all 100 vectors (columns) in one go, as it is obviously unfeasible to manually type all 100 vectors? Also, could guys suggest a code to combine all created 100 vectors into a dataframe with 10 rows and 100 columns?
Thank you guys for your time and consideration in regard to this matter!