similar to: In which column and in which row a number is in a matrix

Displaying 20 results from an estimated 800 matches similar to: "In which column and in which row a number is in a matrix"

2012 Dec 04
1
Large loops in R
Dear all, I need to access data from a large matrix (48000 x 48000) and to do it I am trying to run two loops using "for" command. Surely it is been a very slow job. I heard that "for" is not the best option to perform large loops in R, but I don't really know what would be the best (fast) option. sapply? vapply? Could anyone help me with this issue, please? Thank you
2010 Oct 27
1
"non-numeric argument to binary operator" error while reading ncdf file
Hi everyone, I am a newbie in R and in this discussion list. I am trying to use R package "ncdf" to read values of temperature from a NCDF file. I did it before to another file using the function "get.var.ncdf", but now there is an error that I can not solve, and I would really appreciate if you could help me. I am using R version 2.11.1 (2010-05-31) in a machine with Linux
2006 Mar 15
7
matrix indexing
Can someone please give me a pointer here. I have two matrices matA A B C 1 5 2 4 2 2 4 3 3 1 2 4 matB A B C 1 TRUE FALSE TRUE 2 FALSE TRUE TRUE 3 FALSE FALSE FALSE how do I extract all the values from matA where the coresponding entry in matB == TRUE (or FALSE), perferably in vector form. Many thanks tom
2015 Feb 02
3
A good way to debug a c++ library embedded to R code
Dear all, I am using R CMD SHLIB to compile a c++ code into a library (.so) and dyn.load to load this library into a R code. I am facing some problems in the c++ code that I can not figure out how to solve. Do you recomend any good way to debug this R + C++ program? If I was programming only in C++ I would use GDB. I would much appreciate any help or suggestion! Best regards, Charles -- Um
2012 Dec 02
1
overlapping graphs in logarithmic y-axis
dear useRs, i want to overlap graphs of two matrices in such a way that the y-axis of graph should be "logarithmic" against normal x-axis. i am, unsuccessfully, trying the followings >matplot(mata, log="mata",type = "l", col="red)>lines(mata, log="matb",type = "l", col="yellow") could you please help me out on it?? thanks in
2009 Apr 26
4
comparing matrices
I'm trying to compare two matrices made up of bits. doing a simple comparison of matA == matB yields this sort of output. [,1] [,2] [,3] [,4] [,5] [,6] [1,] FALSE TRUE FALSE TRUE TRUE FALSE [2,] TRUE TRUE TRUE TRUE TRUE TRUE [3,] FALSE TRUE FALSE FALSE FALSE TRUE [4,] FALSE TRUE TRUE FALSE FALSE FALSE [5,] TRUE TRUE TRUE TRUE FALSE FALSE [6,] TRUE TRUE
2015 Feb 02
1
A good way to debug a c++ library embedded to R code
----- Original Message ----- > From: "Gabriel Becker" <gmbecker at ucdavis.edu> > To: "Charles Novaes de Santana" <charles.santana at gmail.com> > Cc: "r-devel" <r-devel at r-project.org> > Sent: Monday, February 2, 2015 12:02:27 PM > Subject: Re: [Rd] A good way to debug a c++ library embedded to R code > > Charles, > >
2009 Jun 20
1
how to apply the dummy coding rule in a dataframe with complete factor levels to another dataframe with incomplete factor levels?
Dear R helpers: Sorry to bother for a basic question about model.matrix. Basically, I want to apply the dummy coding rule in a dataframe with complete factor levels to another dataframe with incomplete factor levels. I used model.matrix, but could not get what I want. The following is an example. #Suppose I have two dataframe A and B
2013 Oct 16
2
Plot time series data irregularly hourly-spaced
Dear all, I have a time series of data that I would like to represent in a plot. But I am facing some problems to do it because the time is represented in "hours", it can start in one day and end in another day, and it is not regularly spaced. My problem is that when I plot my data, my X-axis always starts from the lower values of my time data. For example, I would like to plot data
2009 Mar 16
1
ATA react to phone but unresponsive to fax modem
Hi, I'm rather new to this domain so I may be doing stupid things without being concious of that. I've got a Patton MATA I'm trying to setup as T.38 fax adapter. Whenever I connect a fax machine (Dell MFP1815dn) or a phone to it, I can successfully send a fax or talk to the other end. Whenever I connect a fax modem (Dell Inspiron 6400 laptop), I keep getting "No signal. Line is
2013 Apr 24
2
Distance matrices Combinations
Dear UseRs, MY PROBLEM IS A SMALL PIECE OF A REAL BIG AND A COMPLICATED PROBLEM. IF I DELIBERATE IN A VERY SIMPLE WAY THEN ALL I WANT IS TO PUT ALL THE POSSIBLE COMBINATIONS OF 75 DISTANCE MATRICES (BY TAKING 4 MATRICES, MORE COMMONLY 75C4), in the following equation. t<-as.matrix((MAT1)^2+(MAT2)^2+(MAT3)^2+(MAT4)^2+,upper=T,diag=T)) Then "1215450" values of "t"(one for
2006 Jan 20
2
Using same passwords as the linux machine
Hi, I would like to know how to enable samba to use the same user/passwords that those that exists in the linux machine. Best regards, Nestor Mata Cuthbert
2003 Feb 19
1
AW: H323 & asterisk
Hay, if you get answer, so please inform me too thank Stephan -----Urspr?ngliche Nachricht----- Von: Luis Mata [mailto:mataluis at xtremenetworks.biz] Gesendet: Mittwoch, 19. Februar 2003 03:10 An: asterisk-users at lists.digium.com Betreff: Re: [Asterisk-Users] H323 & asterisk George: Hi, if you get the answer can you please share it with me. Thanks... glinyu at attbi.com said:
2004 Jul 27
3
explain me exactly about ldap
Hi i wanna know exactly the principal functions of ldap, if is posible send me a example because im not very clear about this protocol with samba. thanks in advance Cristhian Dominican Republic -- "No basta saber, se debe tambi?n aplicar. No es suficiente querer, se debe tambi?n hacer"(Goethe, Johann Wolfgang von). Saludos Cristhian Nunez AGB-CDI Dominicana Abraham Lincoln
2009 Sep 23
4
save txt file
Hi, I have 2 questions: Question 1: I define 2 variables: "a", "b": > a<-rbinom(4,10,0.8) output: [1] 9 7 8 8 > b<-rbinom(2,6,0.7) output: [1] 4 5 if I write: > write.table(a, file = "filename", etc. etc. .... ) it save only the values of variable "a". There is a way to save in a .txt file the values "a" and "b" as
2004 Aug 06
1
icecast protocol
On Monday 28 April 2003 07:29, Leonardo Luiz Padovani da Mata wrote: > Which protocol icecast uses for stream the audio? > HTTP. Mike --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body.
2008 Dec 28
1
Random coefficients model with a covariate: coxme function
Dear R users: I'm new to R and am trying to fit a mixed model Cox regression model with coxme function. I have one two-level factor (treat) and one covariate (covar) and 32 different groups (centers). I'd like to fit a random coefficients model, with treat and covar as fixed factors and a random intercept, random treat effect and random covar slope per center. I haver a couple of
2011 Jun 03
1
R and DBSCAN
Hello everyone, When looking for information about clustering of spatial data in R I was directed towards DBSCAN. I've read some docs about it and theb new questions have arisen. DBSCAN requires some parameters, one of them is "distance". As my data are three dimensional, longitude, latitude and temperature, which "distance" should I use? which dimension is related to
2009 Jul 03
2
Deos anyone know of a summary of conformability rules? along with a specific problem
The rules for conformability of objects required for various operators remain a mystery as do some related problems like the rules for recycling in creating arrays etc. Would someone be able to direct me to where such rules are stated? In a related vein, there are all manner of operations that are readily coded in Gauss or in MATA that fail, often mysteriously, in R. Are there some
2010 May 28
2
4 CPU with WinXP on Centos 5.5 KVM?
Has anyone had any success getting WinXP 32bit to use 4 CPU's under Centos 5.5 KVM? I have tried everything and the best I can get is 2 CPU's. I tried everything listed here http://www.linux-kvm.com/content/running-windows-smp-guests I am using the VIRTIO drivers. Is this known limitation of KVM-83-164 (Centos5 release) with WinXP 32bit? I think there are reports of it working