Off topic:How can I split a file in R?
0
0
Entering edit mode
6.5 years ago
Tania ▴ 180

Hello

I am new to R and would like to do this if anyone can give me example, would appreciate. If I have this file :

Row1_id ,  val11, val12 , val13 
Row2_id ,  val21, val22 , val23

I need to split it to 3 files. A file for each column plus the row id and tab separated For example file 1 should be:

row1_id val11 
row2_id val21

File 3 should look like

row1_id  val13
row2_id  val23
R • 1.9k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2842 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6