R: sink() split table in some lines
问题 I have a very very big table of correlation values that i would like to save in a file. That actually do: sink("/to/path/file.csv") cor(total) sink() that writes something like in the file: a b c d r 0.635391844 0.316249555 0.715476998 0.138705124 y 1.000000000 0.245008313 0.927208342 0.109602263 z 0.245008313 1.000000000 0.239142304 0.080837639 t 0.927208342 0.239142304 1.000000000 0.131402452 h 0.109602263 0.080837639 0.131402452 1.000000000 e 0.996816365 0.247379819 0.930169663 0.108444557