?Following is the R's interactive envirment's output.
I try to change the colnames of P300.H1
,P300.GM
and Suz12.H1
, but didn't work.
> lapply(list(P300.H1,P300.GM,Suz12.H1), function(x) {colnames(x) <- c("chrom","start", "end", "name", "score")})
[[1]]
[1] "chrom" "start" "end" "name" "score"
[[2]]
[1] "chrom" "start" "end" "name" "score"
[[3]]
[1] "chrom" "start" "end" "name" "score"
> colnames(P300.H1)
[1] "V1" "V2" "V3" "V4" "V5"
I think the problem may be about the assignment, but I'm still confused about that.
Can anybody explain to me the reason about that?