Message-ID: <F7E6D18CC2877149AB5296CE54EA27660255ECA5@WAXMXOLYMB002.WAX.wa.lcl>
Date: 2012-09-13T21:40:57Z
From: Nordlund, Dan (DSHS/RDA)
Subject: Missing Values
In-Reply-To: <8d4da17d-58df-4d5e-a663-a70297e203a3@email.android.com>
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Jeff Newmiller
> Sent: Thursday, September 13, 2012 1:46 PM
> To: grond; r-help at r-project.org
> Subject: Re: [R] Missing Values
>
> Don't give it any. Instead of banks$two, use na.omit(banks$two).
> -----------------------------------------------------------------------
> ----
> Jeff Newmiller The ..... ..... Go
> Live...
> DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live
> Go...
> Live: OO#.. Dead: OO#..
> Playing
> Research Engineer (Solar/Batteries O.O#. #.O#. with
> /Software/Embedded Controllers) .OO#. .OO#.
> rocks...1k
> -----------------------------------------------------------------------
> ----
> Sent from my phone. Please excuse my brevity.
>
> grond <agellis at usgs.gov> wrote:
>
> >I am using bootstrap and cannot figure how to tell R to ignore missing
> >values
> >(NA)
> >
> >I tried this syntax and it did not work. The name of the file is
> banks
> >the
> >column two.
> >
> >bootmean(banks$two,na.rm = True, conf = 90,nrep = 1000)
> >
> >
> >
> >
You haven't said where you got the function bootmean() and you have not provided a reproducible example, so I can't do any testing. Jeff's solution may work for you. However, in your call to bootmean you have na.rm=True. R is case sensitive. True is not equal to TRUE. Try changing your code to
bootmean(banks$two, na.rm = TRUE, conf = 90,nrep = 1000)
Hope this is helpful,
Dan
Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204