Thank you for the suggestion What seems to work is assigning out_put$Case <- Inp_dat$Case that is
for(i in 1:4) { ... Case<- Inp_dat$Case[i] … out_put[i,]<-data.frame(Case, stdL, stdPP, stdSE, L, PP, PP_SE) } out_put$Case <- Inp_dat$Case out_put What I don't understand is why I need to do this, and why adding rows to out_put[i,] within the loop the Case column has an integer label assigned and not the text label. Further it seems I cannot correct this within the loop? -- View this message in context: http://r.789695.n4.nabble.com/Dataframes-and-text-identifier-columns-tp4693184p4693443.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.