Displaying 20 results from an estimated 10000 matches similar to: "the underscore ("_") in variable name"
2000 Oct 02
1
FW: the underscore ("_") in variable name
don't know much about programming. But I know that it is not a good idea to
assign a variable name to the name of an intrinsic constant or function. In
your example, you assign the name "c" to a variable. But "c" is already the
name of a function i R. In this way you are asking for trouble.
-----Original Message-----
From: owner-r-help at stat.math.ethz.ch
2003 Aug 12
2
Replacing underscore character in Windows GUI
Hello, all,
I'd like to propose that now that the underscore-as-assignment-operator
is to be removed from R (good thing, too), that the Windows GUI should
replace the underscore ``_'' with the proper assignment operator ``<-''
when you type in the underscore character.
This is the current default behaviour in the ESS mode in emacs, and seems
to me to be a generally good
2000 Oct 03
1
(fwd) Re: the underscore ("_") in variable name
On Tue, 03 Oct 2000 10:55:28 +0000, Alberto Murta <amurta at ipimar.pt>
wrote:
> And objectively, it's a fact that "<-"
>makes the code easier to read than "_".
I don't follow this argument. Underscore isn't used anywhere else in
the language, so when you see one, you know it's an assignment. On
the other hand, both "<" and
2000 Oct 03
1
(fwd) Re: the underscore ("_") in variable name
> Date: Tue, 03 Oct 2000 14:45:32 +0000
> From: Alberto Murta <amurta at ipimar.pt>
>
> Duncan Murdoch wrote:
>
> > I don't follow this argument. Underscore isn't used anywhere else in
> > the language, so when you see one, you know it's an assignment. On
> > the other hand, both "<" and "-" have multiple other uses.
2010 Aug 09
3
ESS question. How to get rid of ess-smart-underscore?
Hi,
ESS replaces "_" by "<-". How can I switch off this feature?
I need to be able to type the underscore
Thanks
Eryk
--
Witold Eryk Wolski
Heidmark str 5
D-28329 Bremen
tel.: 04215261837
2007 Jul 06
2
Make #underscore reversible
Hello All,
I''ve submitted a patch (http://dev.rubyonrails.org/ticket/8898) to
enable #underscore to be reversible.
I had trouble creating a class named "CRSContact", and it turns out
that underscore and camelize are not reversible in cases where there
are 3 or more capital letters. As there is a dependency between class
name and file name I think it would be beneficial for
2000 Oct 03
1
(fwd) Re: the underscore ("_") in variable name
> From: dmurdoch at pair.com (Duncan Murdoch)
> Date: Tue, 03 Oct 2000 12:31:32 GMT
>
> On Tue, 03 Oct 2000 10:55:28 +0000, Alberto Murta <amurta at ipimar.pt>
> wrote:
>
> > And objectively, it's a fact that "<-"
> >makes the code easier to read than "_".
>
> I don't follow this argument. Underscore isn't used
2010 Jan 26
1
samba veto files: underscore
Hello all,
I'm trying to hide files beginning with a underscore ( "_" ) and hidden files from my samba share's so i added this to my smb.conf:
veto files = /_*/.*/
The section with the dot works, but the one with the underscore doesn't. I also tried /\_*/.*/ but this has the same result.
Any ideas how to hide the files beginning with a underscore?
Thanks,
Evas
1999 Aug 30
3
using underscore character in column names
Suppose you're reading data from a file in which the
column names contain underscore characters. Example:
------ start of file -----
pos_x pos_y
1.0 0.0
2.0 1.0
------ end of file -------
Using read.table, I can read this file just fine:
> data <- read.table (file="data", head=T)
> data
pos_x pos_y
1 1 0
2 2 1
>
However, I can't
2010 Jul 05
2
Windows 64bit package build requires underscore hack?
Hello,
After much tinkering I managed to build packages using the 64bit version of
R with the help of hints from
http://www.murdoch-sutherland.com/Rtools/
and
http://www.stats.ox.ac.uk/~ripley/Win64/W64porting.html
and
R-admin Manual.
But a hack was required, and this seems to be related to
a comment about underscores at the end of the second
reference above (but this comment is about FUTURE
2001 Dec 08
5
no _?
I see the uderscore "_" is not allowed in R. This make R a real drag when
trying to use with SQL packages and c code. Why is the underscore not
allowed and will it be allowed in a future release?
Jeff.
Jeff D. Hamann
Hamann, Donald and Associates
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
jeff_hamann at hamanndonald.com
www.hamanndonald.com
2002 Jul 01
1
Assignment operators (was [R] modifying a vector)
Bill Venables expected howls of protest about deprecation of underscore for
assign. Here's my one-and-only howl on this point:
(1) I don't like <- as an assignment operator, because it creates an
ambiguity with comparisons: I can write "x+1", "x-1", "x<1" but not "x<-1".
However, I guess it's a bit much to expect the entire R/S
2009 Jul 15
3
DO NOT REPLY [Bug 6553] New: rsync hangs at filenames starting with an underscore
https://bugzilla.samba.org/show_bug.cgi?id=6553
Summary: rsync hangs at filenames starting with an underscore
Product: rsync
Version: 3.0.6
Platform: PPC
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: gerald at
2013 Sep 02
1
Sweave: printing an underscore in the output from an R command
I am working with Sweave and would like to print out into my latex document the result of the R command
version$platform
So what I first tried in my .Rnw document was \Sexpr{print(version$platform)}.
However, the output from this command is the string "x86_64-apple-darwin10.8.0" (without the quotes). This contains an underscore, which is a special character in tex and so I get an error
2004 Apr 02
1
Underscore and ESS
This is a question that I should have sent to 'ess-help', but I
take my chances...
In 'NEWS' (1.9.0) I read the good news
o Underscore '_' is now allowed in syntactically valid names, and
make.names() no longer changes underscores. Very old code
...
but when I try it in emacs (ESS 5.1.24), my '_' are changed to ' <- '!
What can I do?
2005 Dec 29
1
Underscore or not?
The Agile book mentions that using an underscore to break up words is
the ''preferred'' method, but later says that you''ll have trouble using
them in many-to-many association tables. What are people doing? It
sounds like less of a hassle to cram my words together (cablepair vs
cable_pair) and enjoy the native many-to-many handling.
Or maybe I just answered my own
2005 Dec 21
3
NextMethod causes R 2.2.0 to crash (PR#8416)
I found writing the following default method the for the generic
function "julian" causes R to crash.
julian.default <- function(x, ...) {
x <- as.Date(x)
NextMethod("julian", x, ...)
}
Here is a test example
> m <- as.Date("1972-09-27") + 0:10
> m
[1] "1972-09-27" "1972-09-28" "1972-09-29"
2008 Feb 13
2
apply on large arrays
I have a big contingency table, approximately of size 60*2*500*500,
and I need to count the number of cells containing a count of 1 for each
of the factors values defining the first dimension.
Here is my attempt:
tab1<-with(pisa1,table(CNT,GENDER,ISCOF,ISCOM))
tab2<-apply(tab1,1:4,function(x)ifelse(sum(x)==1,1,0))
tab3<-apply(tab2,1,sum)
Computing tab2 is very slow.
Is there a faster
2006 Dec 22
5
substitute creates an object which prints incorrectly (PR#9427)
The function "substitute" seems to fail to make a genuine
substitution, although the printed verision seems fine. Here is an
example.
> m <- substitute(Y <- function(x) FUN(x+1),
+ list(Y = as.name("y"), FUN = as.name("sin")))
> m
y <- function(x) sin(x + 1)
> eval(m)
> y
function(x) FUN(x+1)
However the story doesn't end there. The
2007 Jul 03
1
termplot - changes in defaults
While termplot is under discussion, here's another proposal. I'd like to
change the default for partial.resid to TRUE, and for smooth to
panel.smooth. I'd be surprised if those changes were to break existing
code.
John Maindonald email: john.maindonald at anu.edu.au
phone : +61 2 (6125)3473 fax : +61 2(6125)5549
Centre for Mathematics & Its Applications, Room