[R] correcting a few data in an unreshaped data frame

From: Mr. Natural <drstrong_at_ucdavis.edu>
Date: Tue, 08 Jun 2010 18:36:43 -0700 (PDT)

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      1    3        0   0
4      1    4        0   0
5      1    5        0   0
6      1    6        0   2
7      1    7        0   0

> str(lupepn1)

'data.frame': 5023 obs. of 4 variables:

 $ bushno  : int  1 1 1 1 1 1 1 2 2 2 ...
 $ bout    : int  2 3 4 5 6 7 8 1 2 3 ...
 $ survival: int  0 0 0 0 0 0 0 1 1 1 ...
 $ wwG     : int  0 0 0 0 2 0 0 5 1 0 ...

Your kind advice is very much appreciated. Mr. Natural.

>

-- 
View this message in context: http://r.789695.n4.nabble.com/correcting-a-few-data-in-an-unreshaped-data-frame-tp2248219p2248219.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Wed 09 Jun 2010 - 05:33:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jun 2010 - 12:40:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive