[R] The use of period in function names and variable names
Steve Lianoglou
mailinglist.honeypot at gmail.com
Tue Oct 4 18:05:29 CEST 2011
Hi,
On Tue, Oct 4, 2011 at 11:39 AM, jdospina <jdospina at gmail.com> wrote:
> Hello.
>
> Not at all in the way you have shown. Just to improve your code
> "readability", try to avoid naming your variables beginning with period
> (example: .hello).
Well, that's not exactly true.
It's "common practice" to name variables with a leading period if you
want them to be considered "hidden," in some respect. See the
`all.names` argument to the `ls` function, for instance.
-steve
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
More information about the R-help
mailing list