[R] Dataframes and text identifier columns

Brian Willis b.h.willis at bham.ac.uk
Thu Jul 3 12:06:44 CEST 2014


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.



More information about the R-help mailing list