er 2011 05:20
> To: r-help@r-project.org
> Subject: [R] The use of period in function names and variable names
>
> Hi,
> I am looking for some guidance on whether I can use the
> period(.) in function names and variable names.
**
erent
combinations of case and period I end up trying for R.Version (occasionally
used, never quite often enought to be automatic) defies belief ;-).
S Ellison
> From: r-help-boun...@r-project.org On Behalf Of Smart Guy
> Sent: 04 October 2011 05:20
> To: r-help@r-project.org
>
Hi,
On Tue, Oct 4, 2011 at 11:39 AM, jdospina 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 variable
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).
In contrast with Matlab (for example) the period in R is not to have access
to an object property.
--
View this message in context:
h
oun...@r-project.org On Behalf Of Smart Guy
> Sent: 04 October 2011 05:20
> To: r-help@r-project.org
> Subject: [R] The use of period in function names and variable names
>
> Hi,
> I am looking for some guidance on whether I can use th
Hi,
On Tue, Oct 4, 2011 at 12:19 AM, Smart Guy wrote:
> Hi,
> I am looking for some guidance on whether I can use the period(.) in
> function names and variable names.
Yes you can.
> For example:
>
> my.function.name <- function(my.data.variable, my.radius, my.another.var,
> my.value = 10)
Hi,
I am looking for some guidance on whether I can use the period(.) in
function names and variable names.
For example:
my.function.name <- function(my.data.variable, my.radius, my.another.var,
my.value = 10)
{
}
Will this pose any problems regarding older and current version of R.
--
Sma
7 matches
Mail list logo