Re: [R] Quotation marks hinder for loop

2017-10-13 Thread David Winsemius
> On Oct 13, 2017, at 6:50 AM, y tanaka wrote: > > Dear mailing list members, > > My question is maybe very basic, but I could not find the solution. > > I would like to do the following things > > 1) > colnames(V1)[2] <- par$V2[1] > colnames(V2)[2] <- par$V2[2] > colnames(V3)[2] <- par$V2[3]

[R] Quotation marks hinder for loop

2017-10-13 Thread y tanaka
Dear mailing list members, My question is maybe very basic, but I could not find the solution. I would like to do the following things 1) colnames(V1)[2] <- par$V2[1] colnames(V2)[2] <- par$V2[2] colnames(V3)[2] <- par$V2[3] ... colnames(V37)[2] <- par$V2[37] 2) V1 <- V1[,-1] V2 <- V2[,-1] V3 <