Displaying 1 result from an estimated 1 matches for "phlist".
Did you mean:
hlist
2012 Jan 25
1
Converting strings into data frame column names
Hi all,
I want to loop through a series of data frames and append them into one data
frame, however I do not want all columns of the original data frames to be
in the new data frame. I have the following code:
phList<-c('ph2010','ph2009','ph2008','ph2007','ph2006') #Name of original
data frames
for (i in phList) {
x<-c(paste(i,"$ID",sep=""),paste(i,"$DATE_DISPENSED",sep=""),paste(i,"$TG_NAME1",sep=""),
pa...