m <- read.table(row.names=1, header=TRUE, text=
" Assignment Caused by CI Quality Indicator Update Operator Update Description Update
Assignment 0.0 0.0 0.49 0.0 0.0 0.0
Caused by CI 0.0 0.0 0.0 0.0 0.0 0.0
Quality Indicator 0.0 0.75 0.0 0.0 0.0 0.0
Update 0.0 0.0 0.0 0.0 0.0 0.0
Operator Update 0.0 0.0 0.0 0.0 0.0 0.0
Description Update 0.0 0.0 0.0 0.0 0.0 0.0")
上述表格只有六列,但它被识别为11列,因为某些列名有空格。[如何修正此问题]
Error Message: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
line 1 did not have 11 elements
m <-as.matrix(m)