[R] Data Set

Gavin Simpson gavin.simpson at ucl.ac.uk
Sun Jul 22 23:46:49 CEST 2007


On Sun, 2007-07-22 at 12:09 -0700, amna khan wrote:
> Sir the station name "S.Sharif" exists in the data but still the error is
> ocurring of being not found.
> Please help in this regard.

If you take the time to do what I asked and actually post the results of
typing the following into your R session:

str(data)

And send the output to the list, then we will be able to help.

Did you read /all/ of my email? I did ask you to do this.

HTH

G

> 
> 
> On 7/22/07, Gavin Simpson <gavin.simpson at ucl.ac.uk> wrote:
> >
> > On Sun, 2007-07-22 at 03:25 -0700, amna khan wrote:
> > > Hi Sir
> > > I have made a data set having 23 stations of rainfall.
> > > when I use the attach function to approach indevidual stations then
> > > following error occurr.
> > >
> > > *>attach(data)*
> > > *>S.Sharif    #S.Sharif is the station  name which has 50 data values*
> > > *Error: object "S.Sharif" not found*
> > > Now how to solve this problem.
> >
> > Then you don't have a column named exactly "S.Sharif" in your object
> > "data".
> >
> > What does str(data) and names(data) tell you about the columns in your
> > data set? If looking at these doesn't help you, post the output from
> > str(data) and names(data) and someone might be able to help.
> >
> > You should always check that R has imported the data in the way you
> > expect; just because you think there is something in there called
> > S.Sharif doesn't mean R sees it that way.
> >
> > You also seem to have included the R-Help email address twice in the To:
> > header of your email - once is sufficient.
> >
> > G
> >
> > > Thank You
> > > Regards
> > >
> > --
> > %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
> > Gavin Simpson                 [t] +44 (0)20 7679 0522
> > ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
> > Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
> > Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
> > UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
> > %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
> >
> >
> >
> 
> 
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Gavin Simpson                 [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-help mailing list