Displaying 20 results from an estimated 20000 matches similar to: "match vs. %in% (PR#853)"
2003 Jan 31
2
minor error in documentation of pmax in base (PR#2513)
The documentation says, "pmax and pmin take several vectors as
arguments and return a single vector giving the parallel maxima
(or minima) of the vectors."
I discovered that, if you use a matrix or array instead of a
vector, pmax returns a matrix or array, respectively.
This makes pmax and pmin much more useful, and should not be left
to people to discover on their own!
For example:
2002 Jan 07
3
ESS with Xemacs? [vs. Emacs, slightly off topic]
I decided to try out Xemacs instead of Emacs in Linux (RH 7.2).
After doing lots of configuration of Xemacs, I finally discovered
a major problem.
With Emacs, when I use R, I start Emacs twice (at least), in
different viewports, once as
emacs -f R
and once as
emacs myfile.R
Then I try commands in the first one, and, when they work (which
isn't very often), I cut the command with C-w,
2001 Sep 18
4
help in a separate window under linux
Hi there.
R v1.3.0, Slackware linux 7.1 or Windows 98SE, PII 266, 64Mb RAM.
I notice that under windows, R puts help info (ie. the response to
'?<function>') into a new window, whereas under linux, it puts it into the
main console window. I find the former much more helpful when checking a
function's syntax.
Is there a simple way of configuring R under linux to put its help
2001 Nov 15
2
help.start() works with Mozilla, but not with ESS
In a recent post, I reported that help.start worked with Mozilla,
although it had not worked before. I now have discovered the
difference. I'm using RH Linux 7.1 and Mozilla 0.9.5 and R
1.3.1.
When I tried it before, I had use ESS to start R. If I run R
without ESS, help.start() will start the browser (Mozilla), but
help(apply), for example, will produce help in ESS but not in the
browser.
2002 Feb 01
4
ROC curves using R
I did some serach around. It seems that ROC curve computation is not
supported on R. Anyone has some leads? Thanks.
Jason
=====
Jason G. Liao, Ph.D.
Division of Biometrics
UMDNJ School of Public Health
335 George Street, Suite 2200
New Brunswick, NJ 08903-2688
phone (732) 235-9748, fax (732) 235-9777
http://www.geocities.com/jg_liao
__________________________________________________
Great
2008 Mar 06
1
Argument "nomatch" matched by multiple actual arguments ... %in% -> match?!?
When I run R CMD check R.oo on R v2.7.0 devel (2008-03-04 r44677) on
WinXP I get the following error while testing examples:
Error in match(x, table, nomatch = 0) :
formal argument "nomatch" matched by multiple actual arguments
Calls: setMethodS3 -> setMethodS3.default -> %in% -> match
Execution halted
How is that even possible with:
> get("%in%")
function (x,
2002 Jul 02
4
XEmacs vs. GNU Emacs?
As a user of only R, I don't use much of the potential of ESS and Emacs.
Without entering a religious feud, is there any reason I should use XEmacs
rather than my current GNU Emacs?
(I looked on the XEmacs site, but I didn't understand the programming
issues they were talking about (over my head).)
Martin Henry H. Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami
2001 Dec 03
3
beginner's questions about lme, fixed and random effects
I'm trying to understand better the differences between fixed and
random effects by running very simple examples in the nlme
package. My first attempt was to try doing a t-test in lme.
This is very similar to the Rail example that comes with nlme,
but it has two groups instead of five.
So I try
a1 <- 1:10
a2 <- 7:16
t.test(a2,a1)
getting t(18)=4.43, p=.0003224. Then I try to do it
2001 Jul 09
3
transitions in R
Hi, All. I'd have a set of data in an array:
process <- c( 5 , 7 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 4 , 1 , 5 , 4 , ...)
and I'd like to know the number of transitions in this data. I
calculate transitions as the number of times a number follows another
number. thus, something like this would be a 1 deep transition:
1 --> 1 : 10% (and actual number of 1 --> 1 occurrences)
1
2003 Mar 11
1
Goodman / Kruskal gamma
The Goodman/Kruskal gamma is a nice descriptive rank-order
correlation statistic, often used in psychology. It is nice
because it is easy to understand. It takes all pairs of values
of each variable and asks whether they are congruent (S+ is the
number in the same order for both variables) or discordant (S-,
opposite ranking). The statistic is (S+ - S-)/(S+ + S-). It is
like tau except for the
2002 Nov 20
2
How to update without new installation?
How do I update to a new version of R on Linux without going through a new installation?
How do I update packages?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To:
2001 Nov 20
2
is match slow?
I'm doing
m <- match(matriz, origen, 0)
where matriz is a 270x900 matrix and
origen a 11675 elements vector, and is taking
a very long time.
Is match a function
implemented in C? If not, would a C
code be faster?
Thanks
Agus
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
2002 May 14
2
least summed square distance + fit
hi,
I have a matrix (representing original data) that looks e.g. like this
(consider it beeing x,y,z coords):
441 447 0
265 407 0
374 223 0
288 574 0
669 309 0
591 195 0
595 475 0
424 351 0
I get a second matrix (subject data) that is similiar to the above
matrix but it is scaled, translated and rotated (and of course a little
inprecise).
Also I have an
2010 Aug 10
1
partial match of one column in data frame to another character vector
Here is some data (dput output below)
> myData
id group
1 D599 A
2 002-0004 B
3 F01932 A
18 F16 B
19
2011 Sep 06
2
Q and R mode in Principal Component Analysis
Hi,
Can anyone explain me the differences in Q and R mode in Principal Component
Analysis, as performed by prcomp and princom respectively.
Regards
L?vio Cipriano
2002 Jul 09
3
building formula objects
I want to write a function to take an argument as the response
variable of a linear model, e.g. to do anova's across a list of
variables, something like the following (except, of course, this
doesn't work):
function(x) { anova(lm(x ~ my.factor,data=my.data)) }
The x in lm() above is getting evaluated at the wrong level. How
can I make this work?
--
Russell Senior ``The two
2001 Feb 27
6
How to read a text table? A bit of trouble with Using R - An Introduction
> Ok...So I actually *typed* the table with WordPad, using the Tab button
>in order to separate the columns, and saved it in rich text format. As you
>might have guessed, it didnĀ“t work. I got a:
> Error in count.fields(file, sep, quote, skip, blank.lines.skip) :
> string terminated by newline or EOF
RTF is not what is meant by text. What I am writing is text.
Your
2010 Jan 20
1
function curve() (PR#14191)
Full_Name: Georgi Boshnakov
Version: 2.10.1pat
OS: Windows XP
Submission from: (NULL) (130.88.123.205)
When calling programmatically function curve() from package:graphics I
experienced some trouble since it reports
stop("'expr' must be a function or an expression containing 'x'")
even if expr is "expression". Naturally, the user message uses
2010 Jun 29
2
POSIXlt matching bug
I came across the below mis-feature/bug using match with POSIXlt objects
(from strptime) in R 2.11.1 (though this appears to be an old issue).
> x <- as.POSIXlt(Sys.Date())
> table <- as.POSIXlt(Sys.Date()+0:5)
> length(x)
[1] 1
> x %in% table # I expect TRUE
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> match(x, table) # I expect 1
[1] NA NA NA NA NA NA NA NA
2008 Sep 12
1
match and incomparables
Hello,
I was playing around with the newly implemented 'incomparables' argument
in 'match' and realized the argument does not behave anything like I
expected. Can someone explain what is going on here? Sorry if I'm
misreading the documentation.
> match(1:3, 1:3, incomparables=1)
[1] NA 2 3 # This seems right, the 1 in 'x' is 'incomparable'
>