Re: [R] How to read a file including strings and numbers.

2013-06-01 Thread Rui Barradas
Hello, Just use ?read.csv with argument header = FALSE. wnd_data <- read.csv(text = ' "2012-08-07 00:00:00",4174830,5,8.1,34.5,9.5,32,14 "2012-08-07 00:00:01",4174831,4.7,8.6,34.5,9.9,29,14 "2012-08-07 00:00:02",4174832,4.7,8.6,34.5,9.9,29,14 "2012-08-07 00:00:03",4174833,5,8.5,34.5,9.8,30,14 "

Re: [R] How to read a file including strings and numbers.

2013-06-01 Thread Jinsong Zhao
On 2013/6/1 15:54, Jie Tang wrote: hi R-users, I have a file as shown below,and the first column is time information. "2012-08-07 00:00:00",4174830,5,8.1,34.5,9.5,32,14 "2012-08-07 00:00:01",4174831,4.7,8.6,34.5,9.9,29,14 "2012-08-07 00:00:02",4174832,4.7,8.6,34.5,9.9,29,14 "2012-08-07 00:00:

[R] How to read a file including strings and numbers.

2013-06-01 Thread Jie Tang
hi R-users, I have a file as shown below,and the first column is time information. "2012-08-07 00:00:00",4174830,5,8.1,34.5,9.5,32,14 "2012-08-07 00:00:01",4174831,4.7,8.6,34.5,9.9,29,14 "2012-08-07 00:00:02",4174832,4.7,8.6,34.5,9.9,29,14 "2012-08-07 00:00:03",4174833,5,8.5,34.5,9.8,30,14 "2012