Displaying 20 results from an estimated 3000 matches similar to: "(fwd) Re: the underscore ("_") in variable name"
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.
2003 Aug 14
2
vectorization question
If you look at the structure, you'll see:
> x$V4 <- 0
> str(x)
`data.frame': 4 obs. of 4 variables:
$ V1: int 1 2 3 4
$ V2: int 5 6 7 8
$ V3: int 9 10 11 12
$ V4: num 0
Don't know if this is the intended result. In any case, you're probably
better off using data.matrix, as
> data.matrix(x)
V1 V2 V3 V4
1 1 5 9 0
2 2 6 10 0
3 3 7 11 0
4 4 8 12
2002 Feb 01
1
Different behaviour in Linux and Windows (PR#1293)
Hi
I have written a small function to calculate distances between pairs of
landmarks ('my.dist' bellow). I gave it to a colleague that works with
MSWindows and the function doesn't give the right answer:
R 1.4.1 for Linux:
> my.dist()
[1] 22 561
R 1.4.1 for Windows:
> my.dist()
[1] 22 560
Warning message:
Replacement length not a multiple of the elements to replace in
2004 Mar 26
1
Mahalanobis
Dear all
Why isn'it possible to calculate Mahalanobis distances with R for a matrix
with 1 row (observations) more than the number of columns (variables)?
> mydata <- matrix(runif(12,-5,5), 4, 3)
> mahalanobis(x=mydata, center=apply(mydata,2,mean), cov=var(mydata))
[1] 2.25 2.25 2.25 2.25
> mydata <- matrix(runif(420,-5,5), 21, 20)
> mahalanobis(x=mydata,
2002 Jan 24
1
using names inside a loop
I expected that something like
> for(i in names(my.data.frame)){j <- as.name(i); print(my.data.frame$j)}
should work in R (and S). There's always the possibility of using
> for(i in names(my.data.frame)){print(my.data.frame[,i])}
but can someone someone tell me why doesn't the 1st option work also?
Thanks
Alberto
--
Alberto G. Murta
2002 Apr 29
1
masking functions
Dear all
I was writing some code that needed functions from packages 'MASS' and
'CircStats', and I received a warning saying that the function
'eqscplot' in one of the packages was masked by another 'eqscplot' from
the other package (in fact 'eqscplot' from 'CircStats' seems a short
version of 'eqscplot' from 'MASS'). This masking of
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
2000 Oct 02
9
the underscore ("_") in variable name
At 14:35 02/10/00 +0800, mohd zamri wrote:
>new to R and starting to learn to program R. The underscore ("_") did some
>suprising result. e.g
>
>> c <- c(1,2,3,4,5)
>> mean(c)
>[1] 3
>> c_mean <- mean(c)
>> c
>[1] 3
>
>having some experience in C, I thought the underscore is "always" valid in
>variable name. totally confuse
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
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
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
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
2016 Aug 23
0
yum does not recognise new (updated) packages due to underscore in package name
Hi all,
we are currently working on porting software from x86_64 to aarch64. We are
working with the altarch aarch64 repos:
http://mirror.centos.org/altarch/7/os/aarch64/Packages/
http://mirror.centos.org/altarch/7/extras/aarch64/Packages/
http://mirror.centos.org/altarch/7/updates/aarch64/Packages/
However, it seems that yum (and eventually rpm) has problems with
identifying new packages, if
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
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
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
2006 Jun 03
1
legacy support: removing underscore from table name.
I am using ms sql server and want to configure RoR such that it does not
convert the given table name (example: rubyonrails) to ruby_on_rails.
I set @@pluralize_table_names = false, so that it does not pluralize
the table names but cannot find the config setting which will force it
not to put underscore between words in a table name.
thanks in advance,
--
avinash
--
Posted via
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