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) -- View this message in context: http://r.789695.n4.nabble.com/Missing-Values-tp4643059.html Sent from the R help mailing list archive at Nabble.com.
True != TRUE ## All CAPS! -- Bert On Thu, Sep 13, 2012 at 12:41 PM, 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) > > > > > > -- > View this message in context: http://r.789695.n4.nabble.com/Missing-Values-tp4643059.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at 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.-- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm
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) > > > > > >-- >View this message in context: >http://r.789695.n4.nabble.com/Missing-Values-tp4643059.html >Sent from the R help mailing list archive at Nabble.com. > >______________________________________________ >R-help at 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.