List to matrix R

X

Privacy & Cookies

This site uses cookies. By continuing, you agree to their use. Learn more, including how to control cookies.

Got It!

Advertisements

Sometimes in R, I have a list z of lengthwith each element being a vector of the same length. I want to convert this list into anmatrix, where each element of the list corresponds to a column in the matrix. It turns out that there is a simple code snippet that allows me to perform this transformation:

z_mat

Chủ Đề