Displaying 20 results from an estimated 3000 matches similar to: "matching-case sensitivity"
2012 Jul 30
4
A "matching problem"
Dear all, I was encountering with a typical Matching problem and was 
wondering whether R can help me to solve it directly.
Let say, I have 2 vectors of equal length:
vector1 <- LETTERS[1:6]
vector2 <- letters[1:6]
Now I need to match these 2 vectors with all possible ways like:
(A,B,C,D,E) & (a,b,c,d,e) is 1 match. Another match can be (A,B,C,D,E) & 
(b,a,c,d,e), however there
2008 Nov 08
4
missing value where TRUE/FALSE needed
Hello dear R people,
for my MSc thesis I need to program some functions, and some of them 
simply do not work. In the following example, I made sure both vectors 
have the same length (10), but R gives me the following error:
Error in if (vector1[i] == vector2[j]) { :
  missing value where TRUE/FALSE needed
I googled for possible solutions, but I did not find a good explanation 
for this...
2005 Jun 20
3
vectorisation suggestion
Hi All,
I am counting the number of occurrences of the terms listed in one  
vector in another vector.
My code runs:
for( i in 1:length(vector3)){
   vector3[i]  = sum(1*is.element(vector2,  vector1[i]))
}
where
vector1 = vector containing the terms whose occurrences I want to count
vector2 = made up of a number of repetitions of all the elements of  
vector1
vector3 = a vector of NAs that is
2002 Jan 16
4
faster vector subtraction??
hi
is there a faster way to do this?
i <- 1
for(x in vector1)
     for(y in vector2) {
         m[[i]] <- (x - y)
         i <- i + 1
      }
regards soren
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in
2005 Sep 09
2
Simulate phi-coefficient
Looking for help with the following problem.
 
Given a sample of zeros and ones, for example:
 
> VECTOR1<-rep(c(1,0),c(15,10))
> VECTOR1
 [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
 
How would I create a new sample (VECTOR2) also containing zeros and
ones, in which the phi-coefficient between the two sample vectors was
drawn from a population with a known
2008 Jun 13
1
x86 SSE* Pointer Favors
Dear Statisticians--- This is not even an R question, so please
forgive me.  I have so much ignorance in this matter that I do not
know where to begin.  I hope someone can point me to documentation
and/or a sample.
I want to compute a covariance as quickly as non-humanly possible on
an Intel core processor (up to SSE4) under linux.  Alas, I have no
idea how to engage CPU vectorization.  Do I need
2010 Jan 30
2
parsing files for plot
Hi,
I have many files containing one column of data. I like to use the scan
function to parse the data. Next I like to bind to a large vector.
I try this like:
count<-1
files <- list.files()  # all files in the working directory
for(i in files) {
       tmp <- scan(i)
       assign(files[count], tmp)
      count<-count+1
}
This part works!
Now I like to plot the data in a boxplot.
2013 Sep 04
3
Fwd: Bienvenido a la lista de distribución R-help-es
Hola Jose, si CONCATENAR significa APILAR, es decir, concantenar
verticalmente, por decirlo de algun modo, podrias hacerlo con rbind():
nuevovector <- rbind(vector1,vector2)
Si ademas quieres que cada valor de los vectores originales sea
identificado en el nuevovector, puedes usar:
nuevovector <- stack(vector1,vector2)
en este ultimo caso se agrega una columna adicional tipo factor, con
2000 Jun 17
2
R 1.1.0 for Windows
Windows binaries at CRAN (bin/windows/Windows-NT/base) have been updated 
to R-1.1.0.  See below for a list of Windows-specific changes.
We thanks all the people who checked over pre-test versions.
guido masarotto
(for the R-core team)
		Windows-specific changes to R
		=============================
There is now a GUI preferences editor on the Edit menu in Rgui.
A data entry editor is now
2000 Jun 17
2
R 1.1.0 for Windows
Windows binaries at CRAN (bin/windows/Windows-NT/base) have been updated 
to R-1.1.0.  See below for a list of Windows-specific changes.
We thanks all the people who checked over pre-test versions.
guido masarotto
(for the R-core team)
		Windows-specific changes to R
		=============================
There is now a GUI preferences editor on the Edit menu in Rgui.
A data entry editor is now
2009 Apr 03
1
Hello! I got error in C - R
Hello,
My name is Ick Hoon Jin and I am Ph. D. student in Texas A & M Univ..
When I run the C embedded in R in the Linux system, I confront the
following error after 6,000 iteration. By googling I found this error is
from the problem in C.
*** caught segfault ***
address (nil), cause 'memory not mapped'
My C code is following:
2006 Mar 07
3
Expanding partial names
I'm writing wrappers for some functions that change some of the default 
arguments.  I'd rather not list all of the arguments for the low level 
functions because there are about a dozen wrapper functions, and about 
20 arguments to lowlevel.  Instead I'm trying something like this:
lowlevel <- function(longname = 1) {
   cat("longname = ", longname, "\n")
}
2007 Jun 20
2
Computing time differences
Dear R users, 
I have a problem computing time differences using R. 
I have a date that are given using the following format: 20080620.00, where
the 4 first digits represent the year, the next 2 ones the month and the last
2 ones the day. I would need to compute time differences between two vectors
of this given format. 
I tried around trying to change this format into any type of time serie
2010 Feb 02
1
Finding the difference between two vectors
Hello everyone,
I have two vectors having only one element different:
                           vector1         vector2                       
vector1
                           TWC             TWC                            
TWC
                           VFC              TWX                            
NA 
                          VIA/B             VFC                             
VFC
       
2008 Mar 19
3
How to remove double for loop?
Hello everyone.
I use double for loops to fill in matrices, but there are surely
better (and computationally faster) ways to perform that task.
Could someone show me, given the following example of a double for
loop, how this could be done? It is much easier to learn by examples.
Val <- matrix(0, nrow=n+1, ncol=n+1)
for( i in 0:n){
    for(j in 0:i){
        Val[j+1, i+1] <- u^j*d^(i-j)
  
2004 Feb 27
2
Is there a way to deactivate partial matching in R?
Dear R-experts,
I just tracked down a nasty bug in a dynamically parametrized function to
wrong argument matching. As we get more and more complex applications build on
top of R (like bioconductor) partial matching gets more and more dangerous. I
would like to deactivate partial matching in R (partial argument matching as
well as partial matching of list elements), e.g. using an environment
2004 Feb 27
2
Is there a way to deactivate partial matching in R?
Dear R-experts,
I just tracked down a nasty bug in a dynamically parametrized function to
wrong argument matching. As we get more and more complex applications build on
top of R (like bioconductor) partial matching gets more and more dangerous. I
would like to deactivate partial matching in R (partial argument matching as
well as partial matching of list elements), e.g. using an environment
2008 Jan 08
1
plotting help request II
Dear all,
meanwhile i found out how to handle the coordinate thing and plot the  
lines like i like.
the remaining problem is, i need something like names.arg does in  
barplot for my plot.
my plot connects several dots with several lines. and now i like  
characters as the names of the intersects of the x-axis.
vector1=c(a,b)
vector2=c(c,d)
# this vector makes sure the yellow line starts at
2004 May 25
5
Histogram
Dear all,
I have a surprising problem with the representation of frequencies in a 
histogram.
Consider, for example, the R code:
b<-rnorm(2000,3.5,0.3)
hist(b,freq=F)
When I plotted the histogram, I expected that values in the y-axis (the 
probability) varied between 0 and 1. Instead, they varied within the 
range 0-1.3.
Have you got any suggestion for obtaining a correct graph with 
2011 Oct 18
1
Function to "lump" factors together?
Sorry about the odd terminology, but I suspect that my intent might be
completely missed had I used "aggregate" or "classify" (each of which
appears to have some rather special meanings in statistical analysis and
modeling).
I have some data about software builds; one of the characteristics of
each is the name of the branch.
A colleague has generated some fairly interesting