11.07.2015 Views

Introductory Slides for R - Statistics

Introductory Slides for R - Statistics

Introductory Slides for R - Statistics

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Median ValueDescriptionCompute the sample median.Usagemedian(x, na.rm = FALSE)?median yieldsArgumentsx an object <strong>for</strong> which a method has been defined, or a numeric vector containingthe values whose median is to be computed. na.rm a logical value indicatingwhether NA values should be stripped be<strong>for</strong>e the computation proceeds.DetailsThis is a generic function <strong>for</strong> which methods can be written. However, the defaultmethod makes use of sort and mean, both of which are generic, and so the defaultmethod will work <strong>for</strong> most classes (e.g. "Date") <strong>for</strong> which a median is a reasonableconcept.ReferencesBecker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language.Wadsworth & Brooks/Cole.See Alsoquantile <strong>for</strong> general quantiles. ..... and more8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!