Suppose a table in the form of text like the following:
texto <- "a b c
e f
g h i"
When I use the read.table command, it gives the following error:
tabela <- read.table(text=texto)
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
line 2 did not have 3 elements
How to work around this problem?