Skip to content
Prev 359003 / 398502 Next

output my results into Excel

Hi Michael,
If you are working in Windows:

# You can put the matrix directly into the clipboard
write.table(PRdist, file = 'clipboard', sep = '\t', row.names = F,
col.names = F)

The "sep" argument tells what character to use for separating columns.
Default for Excel is tab (i.e. '\t')

Default for write.table on a matrix or 2-d array is to write column names
(as "V1", "V2", etc.) and row names ("1", "2", etc.). If you don't want
those added to your matrix, tell R via row.names = FALSE, col.names = FALSE



-Dan
On Wed, Mar 2, 2016 at 12:31 PM, Michael <elopomorph at hotmail.com> wrote:

            

  
    
Message-ID: <CAJeYpE_y1i3p0W7mS=vu9iFbXeYVjewZgkyeNXZe+uCXMVW+NQ@mail.gmail.com>
In-Reply-To: <BLUPR13MB006506D9893F02F43797B3AFDEBC0@BLUPR13MB0065.namprd13.prod.outlook.com>