Heatmap with error message: `x' must be a numeric matrix
On Jun 25, 2013, at 21:51 , Rui Barradas wrote:
Hello, Your data has commas as decimal points, R uses the period. So the data is read in as strings, not numbers. You can change this by using argument 'dec' of read.table: ?read.table read.table(...etc..., dec = ",") Or you can replace the commas with periods:
Or use read.delim2(). That is what it is for.
Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com