I wrote a code for my matrix that I want to create
tstp<-matrix(1:200, ncol = 4, byrow = TRUE)
And then I wrote this code to get my required format
write.table(tstp, row.names = FALSE, col.names = FALSE, quote = FALSE, sep = "\t")
I am here presenting the first four rows. The out is like that
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
It is my required output if its class will be data frame. So I wrote a code to convert it into data frame that is given as
> timestp<-data.frame(tstp)
And the output from the code has created the column names and row number that are not required as shown below.
> timestp
X1 X2 X3 X4
1 1 2 3 4
2 5 6 7 8
3 9 10 11 12
4 13 14 15 16
its produced the class that I need
> class(timestp)
[1] "data.frame"
But I want output like given below with class of data.frme
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16