Ramnik Bansal
2017-Mar-24 18:55 UTC
[R] Default value of Numerals argument in read.table function R 3.3.2 on Mac
Hi, The help file for function read.table mentions the default value for the argument numerals as c("allow.loss", "warn.loss", "no.loss") How are the three values used as default values ? Thanks Ramnik [[alternative HTML version deleted]]
Sarah Goslee
2017-Mar-24 19:19 UTC
[R] Default value of Numerals argument in read.table function R 3.3.2 on Mac
Those are the available options, not the defaults. If you follow the chain to ?type.convert as the help for read.table suggests, you will learn that "allow.loss" is the default value. The help for type.convert also explains what each option means. Sarah On Fri, Mar 24, 2017 at 2:55 PM, Ramnik Bansal <ramnik.bansal at gmail.com> wrote:> Hi, > > The help file for function read.table mentions the default value for the > argument numerals as > c("allow.loss", "warn.loss", "no.loss") > > How are the three values used as default values ? > > Thanks > Ramnik >-- Sarah Goslee http://www.functionaldiversity.org
Bert Gunter
2017-Mar-24 20:17 UTC
[R] Default value of Numerals argument in read.table function R 3.3.2 on Mac
Follow the "type.convert" link in the numerals section of ?read.table. That's what it's there for. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Mar 24, 2017 at 11:55 AM, Ramnik Bansal <ramnik.bansal at gmail.com> wrote:> Hi, > > The help file for function read.table mentions the default value for the > argument numerals as > c("allow.loss", "warn.loss", "no.loss") > > How are the three values used as default values ? > > Thanks > Ramnik > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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
2017-Mar-24 20:27 UTC
[R] Default value of Numerals argument in read.table function R 3.3.2 on Mac
... and I should have added: It is a specific instance of how ?match.arg works . Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Mar 24, 2017 at 1:17 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:> Follow the "type.convert" link in the numerals section of ?read.table. > That's what it's there for. > > -- Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Fri, Mar 24, 2017 at 11:55 AM, Ramnik Bansal <ramnik.bansal at gmail.com> wrote: >> Hi, >> >> The help file for function read.table mentions the default value for the >> argument numerals as >> c("allow.loss", "warn.loss", "no.loss") >> >> How are the three values used as default values ? >> >> Thanks >> Ramnik >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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.