I have got an output like this( t test output)
I want to combine them. But it came like this. Values are same only but not in the above format.
How can we save all of them in a txt format in the first mentioned format?
I have got an output like this( t test output)
I want to combine them. But it came like this. Values are same only but not in the above format.
How can we save all of them in a txt format in the first mentioned format?
You can use
capture.output
to print the objects and save the output into a character vector:You can then write it to a file with
writeLines
, such as: