Dear all,

I was able to create 102 distinct dataframes (DFs1, DFs2, DFs3, etc) using
the assign() in a loop.

Now, I would like to perform the following transformation for each one of
these dataframes:

df1=DFs1[1,]
df1=df1[,1:3]
names(df1)=names(DFs1[c(1,4,5)])
df1=rbind(df1,DFs1[c(1,4,5)])
names(df1)=c("UID","Date","Location")

something like this:

for (i in 1 : nrow(unique)){

dfi=DFsi[1,]
dfi=dfi[,1:3]
names(dfi)=names(DFsi[c(1,4,5)])
dfi=rbind(dfi,DFsi[c(1,4,5)])
names(dfi)=c("UID","Date","Location")

}

I thought it could be straightforward but has proven the opposite

Many thanks

Laura

	[[alternative HTML version deleted]]

