q**j 发帖数: 10612 | 1 终于被我找到了!
Sales_person, DATE_time, Revenue
Sam,2007-07-01 11:40:24.0, 110
Sam,2007-07-01 12:33:25.0, 100
Sam,2007-07-02 10:34:45.0, 1000
Sam,2007-07-02 11:40:24.0, 900
Sam,2007-07-03 14:33:36.0, 600
Sam,2007-07-04 16:40:24.0, 1000
Rachel,2007-07-01 16:30:24.0, 690
Rachel,2007-07-01 19:40:22.0, 100
Rachel,2007-07-02 16:40:47.0, 400
Rachel,2007-07-02 18:20:24.0, 180
Rachel,2007-07-04 11:40:24.0, 110
把这个cotrol c一下。
然后
x = read.table("clipboard",sep=',', as.is=T, header=T)
扬天长笑 | s*****n 发帖数: 2174 | 2 这个还真不知道, 学习了.
thanks..
【在 q**j 的大作中提到】 : 终于被我找到了! : Sales_person, DATE_time, Revenue : Sam,2007-07-01 11:40:24.0, 110 : Sam,2007-07-01 12:33:25.0, 100 : Sam,2007-07-02 10:34:45.0, 1000 : Sam,2007-07-02 11:40:24.0, 900 : Sam,2007-07-03 14:33:36.0, 600 : Sam,2007-07-04 16:40:24.0, 1000 : Rachel,2007-07-01 16:30:24.0, 690 : Rachel,2007-07-01 19:40:22.0, 100
| q**j 发帖数: 10612 | 3 哈哈,我今天收获不少。还有些好东西,以后慢慢看。 | B*****e 发帖数: 31 | 4 赞啊,刚试了下,这个发现果然很强。
【在 q**j 的大作中提到】 : 终于被我找到了! : Sales_person, DATE_time, Revenue : Sam,2007-07-01 11:40:24.0, 110 : Sam,2007-07-01 12:33:25.0, 100 : Sam,2007-07-02 10:34:45.0, 1000 : Sam,2007-07-02 11:40:24.0, 900 : Sam,2007-07-03 14:33:36.0, 600 : Sam,2007-07-04 16:40:24.0, 1000 : Rachel,2007-07-01 16:30:24.0, 690 : Rachel,2007-07-01 19:40:22.0, 100
| h******y 发帖数: 3501 | 5 我土,没明白怎么回事,照做后没什么反应啊
【在 q**j 的大作中提到】 : 终于被我找到了! : Sales_person, DATE_time, Revenue : Sam,2007-07-01 11:40:24.0, 110 : Sam,2007-07-01 12:33:25.0, 100 : Sam,2007-07-02 10:34:45.0, 1000 : Sam,2007-07-02 11:40:24.0, 900 : Sam,2007-07-03 14:33:36.0, 600 : Sam,2007-07-04 16:40:24.0, 1000 : Rachel,2007-07-01 16:30:24.0, 690 : Rachel,2007-07-01 19:40:22.0, 100
| q**j 发帖数: 10612 | 6 忘了control c?
【在 h******y 的大作中提到】 : 我土,没明白怎么回事,照做后没什么反应啊
| o****o 发帖数: 8077 | 7 nice, I need to read the help file more carefully, it is documented there
already
#-------------------------------------------------------------
read.table(file, header = FALSE, sep = "", quote = "\"'",
dec = ".", row.names, col.names,
as.is = !stringsAsFactors,
na.strings = "NA", colClasses = NA, nrows = -1,
skip = 0, check.names = TRUE, fill = !blank.lines.skip,
strip.white = FALSE, blank.lines.skip = TRUE,
comment.char = "#",
| l******d 发帖数: 1633 | 8 lol, is it windows only?
【在 q**j 的大作中提到】 : 终于被我找到了! : Sales_person, DATE_time, Revenue : Sam,2007-07-01 11:40:24.0, 110 : Sam,2007-07-01 12:33:25.0, 100 : Sam,2007-07-02 10:34:45.0, 1000 : Sam,2007-07-02 11:40:24.0, 900 : Sam,2007-07-03 14:33:36.0, 600 : Sam,2007-07-04 16:40:24.0, 1000 : Rachel,2007-07-01 16:30:24.0, 690 : Rachel,2007-07-01 19:40:22.0, 100
| q**j 发帖数: 10612 | 9 don't know yet. you try try? |
|