Posts by Marcelo Medre • 11 points
1 post
-
1
votes2
answers999
viewsA: How to read data with variables in lines, in Rstudio?
You can use the transposed input data: mdat <- matrix(c(1,2,3, 11,12,13), nrow = 2, ncol = 3, byrow = TRUE, dimnames = list(c("row1", "row2"), c("C.1", "C.2", "C.3"))) dim(mdat) str(mdat) mdat2…