similar to: fast way to check an object is a member of a list?

Displaying 20 results from an estimated 20000 matches similar to: "fast way to check an object is a member of a list?"

2003 Jul 22
3
R and C++ compared with only C++
My computer is a pentium 4 running at 2.4 GHz. My R is 1.7.1 I have written a program in R that calls C++. The program spends most of the time in C++ ( > 90% ). R basically deals with output and input. How slower can this be compared with the program I would get from rewriting everything in C++? Thank you.
2003 Apr 22
7
Subject: Eliminate repeated components from a vector X-Mailer: VM 7.00 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid Reply-To: fjmolina at lbl.gov FCC: /home/f/.xemacs/mail/sent Does anyone know how I can eliminate repeated elements from a vector?
2002 Oct 11
2
No subject
Subject: activity of CPU used by R X-Mailer: VM 7.00 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid Reply-To: fjmolina at lbl.gov FCC: ~/mail/sent My R processes never use more than 50% of my CPU activity. Is there any way I can make them use more of it? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2002 Mar 17
5
compute variance of every column in a matrix without a loop
Is it possible to compute the variance of every column in a matrix without a loop? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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: r-help-request at stat.math.ethz.ch
2003 Mar 07
24
Hello, I am trying to use 'R' for K-means simulatio, could you please advise me how I can read my data into a two dimesional array? Or is there any method which directly reads the excell file? Please let me know asap. Regards Skanda Kallur Cogito, Ergo Sum! Rene Descartes
2002 Mar 13
3
Error: subscript out of bounds
How can locate in my program an error of that kind (Error: subscript out of bounds)? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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: r-help-request at stat.math.ethz.ch
2002 Nov 18
2
No subject
Subject: Error: cannot allocate vector of size 554 Kb X-Mailer: VM 7.00 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid Reply-To: fjmolina at lbl.gov FCC: ~/mail/sent Does anyone know how I can avoid this error? Error: cannot allocate vector of size 554 Kb I think my computer should have enough memory to allocate such vector.
2004 Jan 30
7
Detect the presence of an object
Is there a function like "is.there" such that is.there ( a ) returns TRUE is object 'a' is in the current environment and FALSE otherwise? Thank you. Francisco J. Molina
2003 Mar 17
1
"Debugging R from within Emacs"
In "Frequently Asked Questions on R" there is a section "Debugging R from within Emacs" I suppose this is for developpers ( not useful to debug R source code ). Am I right?
2003 Jul 17
1
R matrices in memory
Acording to the documentation in gsl "The physical row dimension tda, or trailing dimension, specifies the size of a row of the matrix as laid out in memory" I think that if I pass a matrix to C++ through .C as single ( or.double ), that is, .C ( as.single ( matrix )) then the tda is simply the number of elements of that matrix. Am I right? Thank you.
2004 Feb 12
3
How to detect whether a file exists or not?
I would like my program to load variables x,y,x from a file 'myFile.r' but if this file does not exist, I want my program to create/initialize x,y,z. Does anyone know how to do this? Thank you very much. Francisco J. Molina
2002 Mar 05
2
No subject
I get this error in one of my R programs and I have no idea what it is. Any hint? Error in "[<-"(*tmp*, , 1, value = Stat[1:numberSamples]) : object is not subsetable -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
2003 Sep 24
1
weird behaviour when calling c++
I am using 1.7.1 in a PC ( redhat 9, linux ) I created a subroutine in C++, mySubrutine, to be used in R. To debug this subroutine I have a main routine in C++ that calls mySubrutine. The only thing main () does is to provide mySubrutine with its arguments (this is the easiest way for me to debug subroutines written in C++ and intended to be used in R ). I also have a version of the same
2002 Mar 19
5
matrix with fix number columns but variable number rows
I have to store a number of vectors of the same length. I know the length but I do not know the number of vectors. How can I store them as they are created (they are created one by one)? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
2003 May 31
5
parse on left hand side of R assignment
I keep finding myself in a situation where I want to calculate a variable name and then use it on the left hand side of an assignment. For example iteration <- 1 varName <- paste("run",iteration,sep="") myList$parse(text=varName) <- aColumn I want to take some existing variable "aColumn" and use the name "varName" name for it and put it into a
2017 Aug 26
2
DC Upgrade from 4.1.7 to 4.6.7
> -----Message d'origine----- > De : samba [mailto:samba-bounces at lists.samba.org] De la part de Rowland > Penny via samba > Envoyé : lundi 21 août 2017 16:34 > À : samba at lists.samba.org > Objet : Re: [Samba] DC Upgrade from 4.1.7 to 4.6.7 > > On Mon, 21 Aug 2017 15:52:01 +0400 > HB via samba <samba at lists.samba.org> wrote: > > > Hello all,
2003 May 12
2
I can not load MASS at starting R
I have istalled R with the rpm package available for RedHat 9.0. My machine is a pentium4. This is my .Rprofile file ( placed in my home directory ): w <- function ( x, y ) write.table ( t ( x ), file = y, quote = F, col.names = F, row.names = F, sep = ',' ) q <- function () q ( save = 'no' ) library( stepfun ) library ( MASS ) The MASS library is not loaded when R is
2005 Mar 16
8
Summing up matrices in a list
Dear all, I think that my question is very simple but I failed to solve it. I have a list which elements are matrices like this: >mylist [[1]] [,1] [,2] [,3] [1,] 1 3 5 [2,] 2 4 6 [[2]] [,1] [,2] [,3] [1,] 7 9 11 [2,] 8 10 12 I'd like to create a matrix M<-mylist[[1]]+mylist[[2]] [,1] [,2] [,3] [1,] 8 12 16 [2,] 10 14 18
2017 Aug 21
4
DC Upgrade from 4.1.7 to 4.6.7
Hello all, Our Samba AD DC is running perfectly for years with the following basic setup (see smb.conf below) : - one DC running Samba 4.1.7 / CentOS 6.5 (compiled from sources) - internal DNS - this DC is also a Print Server - about 400 PC workstations (mainly win7 Pro / win10 Pro and some XP Pro), and about 300 users - several Synology NAS file servers
2004 Jul 21
2
add more data to a data file, problem with .Rprofile
Hi, Is there a way to incorporate an R object x to a file already containing R objects? It seems that 'save' is not capable to do this. If I save x to a file containing previously saved data, then I will lose this data. I use the funcion hsv in .Rprofile but it is recognized. Couriously, if I source .Rprofile when R is already running I do not get any error message. Thank you.