Try to convert a string to a table, by first creating a data.frame using read.table. This can then be coerced to a matrix first, and subsequently to a table. The names of the dimensions can be specified.
Usage
TextToTable(x, dimnames = NULL, ...)
Arguments
x
the string to be interpreted as table.
dimnames
the names of the dimensions.
…
the dots will be passed to the function read.table and can be used for example to specify header, sep and row.names arguments.