You used neither str() nor dput(), you still haven't provided reproducible code
(your code reads csv, but you did not supply csv), and you are posting in html
as the posting guide requests that you not do (but you probably didn't read
that either). A more verbose description of how to ask a ques
Yes,
I have a row and column header. I need to save the row and column header.
Here is the example of the data
*Whirr_127.csv*
WHIRR.127 WHIRR.128 WHIRR.129 WHIRR.137 WHIRR.139 WHIRR.140 WHIRR.141
WHIRR.145 WHIRR.146 WHIRR.147
Adrian Cole 0 0 1 0 0 0
You need to learn to use the str() function to debug these kinds of problems.
And you need to learn to provide data with your code (perhaps with the dput
function) so others can reproduce your problem if you want help.
I would guess that you have non-numeric data in your files.
-
Hi,
I have two matrix from two different .csv files.
#load .csv files
a <- as.matrix(read.table("Whirr_127.csv", header=T, sep=",", row.names=1))
b <- as.matrix(read.table("Files_Whirr_127.csv", header=T, sep=",",
row.names=1))
a
b
I managed to do transpose to 'b' without any error.
transpose_ta
4 matches
Mail list logo