d*******1 发帖数: 854 | 1 目的就是把三个TXT文件读到day1 day2 day3 三个dataframe里去,但是一个也读不进
去, 怎么回事。
setwd(‘XXXXXXXXX')
t<-c('eIF4E-Cap_TL_Run-1_031810.txt','eIF4E-Cap_TL_Run-2_031910.txt','eIF4E-
Cap_TL_Run-3_031910.txt')
name<- paste('day',c(1:3),sep='')
for (i in 1:3) {
name[i]<- read.table(t[i], sep="\t", header=TRUE)
} |
t**i 发帖数: 688 | 2 lapply(t,function(tt){read.table(tt,header=true,sep="\t")}) |
d*******1 发帖数: 854 | 3 那输出的data frame 的名字是怎么命名的?
【在 t**i 的大作中提到】 : lapply(t,function(tt){read.table(tt,header=true,sep="\t")})
|
t**i 发帖数: 688 | 4 Day<-lapply(...)
Day[[1]] |
d*******1 发帖数: 854 | 5 damn, this is good. can you tell me why my original code does not work? I
know your solution is superior....I am just curious why mine is not working.
....
【在 t**i 的大作中提到】 : Day<-lapply(...) : Day[[1]]
|
a***r 发帖数: 420 | 6 因为name不是一个environment,而只是一个array?
working.
【在 d*******1 的大作中提到】 : damn, this is good. can you tell me why my original code does not work? I : know your solution is superior....I am just curious why mine is not working. : ....
|
A*****n 发帖数: 243 | 7 help(assign)
这个是用来给对应的变量名赋值的
working.
【在 d*******1 的大作中提到】 : damn, this is good. can you tell me why my original code does not work? I : know your solution is superior....I am just curious why mine is not working. : ....
|