search for: bushno

Displaying 2 results from an estimated 2 matches for "bushno".

2010 May 31
4
correcting a few data in a large data frame
The data frame is lwf that records the survival of bushes over an 8 year period. Years are called bouts. Dead bushes are recorded as zeros, and live bushes as "1." str(lwf) 'data.frame': 638 obs. of 9 variables: $ bushno: int 1 2 3 4 5 6 7 8 9 10 ... $ bout1 : int 0 1 0 1 1 1 0 1 0 1 ... $ bout2 : int 0 1 0 0 0 0 0 0 0 1 ... $ bout3 : int 0 1 0 0 0 0 0 0 0 1 ... $ bout4 : int 0 1 0 0 0 0 0 0 0 0 ... $ bout5 : int 0 1 0 0 0 0 0 0 0 0 ... $ bout6 : int 0 1 0 0 0 0 0 0 0 0 ... $ bout7 : int 0 1 0 0 0 0...
2010 Jun 09
2
correcting a few data in an unreshaped data frame
Thanks for the excellent help on my recent question on this topic in which the data frame had been reshaped by cast. Now, I would like to access and change erroneous data in a data frame that has not been reshaped. The file is lupepn1, with identifier variables bushno & bout and dependent variables survival, and wwG I know the bushno and bout of the erroneous dependent survival and wwG data. I could correct these in the csv file before read.data, but I would like to learn some more R head(lupepn1) bushno bout survival wwG 2 1 2 0 0 3...