How to arrange elements of a vector based on a square matrix

前端 未结 0 705
失恋的感觉
失恋的感觉 2020-12-12 16:00

I have a vector that results from a square matrix as below

P = as.vector(matrix(c(1,2,3,4),nrow=2))

What would be the simplest way of arrangi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题