invalid type (list) for variable
问题 I am trying to run an anova model in R. I have a data file which contains 3 rows and 12 columns. Each row is data for a particular level of the explanatory variable. Cell [i,j] is the j'th response for level i. The file is ".dat" extension. I am running the following R code to try to get a 36 by 2 data frame to run the anova model instead of the 3 by 12 original data frame: data <- read.table("usedcar.dat", row.names = 1) young <- data[1,] med <- data[2,] old <- data[3,] Price <- c(young, med