Skip to content

practical way to change column names?

2 messages · Niklas Fischer, PIKAL Petr

#
Hi

sufix<-expand.grid(c("id","ag"), 1:10)
paste(paste("alter",sufix[,1], sep=""), sufix[,2], sep="_")

shall give you desired names.

After that you can reorganise it to suit your needs.

Regards
Petr