Re: [R] Extraction and replacement of data in a data frame

2011-01-21 Thread michael.hopgood
Dear all, Thank you for the prompt responses. It is until today that I have managed to scrap together the time to develop my R-project further. In my free time, I have been reading various intro manuals, so I have a rough idea of what needs doing. Sometimes, though, putting it into practice is

Re: [R] Extraction and replacement of data in a data frame

2011-01-17 Thread Gabor Grothendieck
On Mon, Jan 17, 2011 at 3:51 PM, michael.hopgood wrote: > > Dear R family, > I am a relative newbie and have been dabbling with R for a little while. > Simple things really, but my employers are beginning to see the benefits of > using R instead of excel. We have a remote monitoring station measur

Re: [R] Extraction and replacement of data in a data frame

2011-01-17 Thread Dennis Murphy
Hi: Try this little utility function to see if it meets your needs; the new variable is for testing; it takes a data frame, adjustment date and adjustment amount as parameters. headAdj <- function(df, day, amt) { # Check for four or two number year and format accordingly u <- unlist(strsp

Re: [R] Extraction and replacement of data in a data frame

2011-01-17 Thread Mike Marchywka
> Date: Mon, 17 Jan 2011 12:51:43 -0800 > From: michael.hopg...@mrm.se > To: r-help@r-project.org > Subject: [R] Extraction and replacement of data in a data frame > > > Dear R family, > I am a relative newbie and have be

[R] Extraction and replacement of data in a data frame

2011-01-17 Thread michael.hopgood
Dear R family, I am a relative newbie and have been dabbling with R for a little while. Simple things really, but my employers are beginning to see the benefits of using R instead of excel. We have a remote monitoring station measuring groundwater levels. We download the date as a .csv file and