Displaying 1 result from an estimated 1 matches for "tim_clark".
2010 Sep 27
2
Adding row name to dataframe
Dear all,
I am trying to add a value to a dataframe and name the row with a number.? I
have tried row.name, rowname, and attr(x,"row.names") but none seem to work.? It
seems like it should be simple, so not sure why I can't get it to work.? Any
suggestions?
Thanks,
Tim
x<-seq(1,20,2)
y<-seq(20,1,-2)
xy<-data.frame(x,y)
xy<-rbind(xy,c(0,0))
#Threeattempts that