Thank you!

2010/4/21 Joshua Wiley <jwiley.ps...@gmail.com>

> Hello,
>
> summary() removes NAs by default.  You can get the same results using
>
> median(year, na.rm=TRUE)
>
> see ?median
>
> HTH,
>
> Josh
>
> On Wed, Apr 21, 2010 at 6:40 AM, Vlatka Matkovic Puljic
> <v.matkovic.pul...@gmail.com> wrote:
> > Hi,
> >
> > I have dataset n1 and v1 (years).
> > when i ask
> > median(year)
> > [1] NA
> >
> > but if i put summary of dataset n1:
> > summary(n1)
> > R produces median (together with min/max/mean....)
> >
> > why it is so?
> >
> >
> > --
> > **************************
> > Vlatka Matkovic Puljic
> > 095/8618 171
> >
> >        [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@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.
> >
>
>
>
> --
> Joshua Wiley
> Senior in Psychology
> University of California, Riverside
> http://www.joshuawiley.com/
>



-- 
**************************
Vlatka Matkovic Puljic
095/8618 171

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to