[R] non-numeric argument to binary operator error while reading ncdf file

2010-10-27 Thread Charles Novaes de Santana
attention! Cheers, Charles -- Um axé! :) -- Charles Novaes de Santana PhD student - Global Change Laboratorio Internacional de Cambio Global Department of Global Change Research Instituto Mediterráneo de Estudios Avanzados(CSIC/UIB) Calle Miquel Marques 21, 07006 Esporles - Islas Baleares - España

Re: [R] non-numeric argument to binary operator error while reading ncdf file

2010-10-27 Thread Charles Novaes de Santana
, reproducible code so other can reproduce the error and provide feed back. On Wed, Oct 27, 2010 at 9:27 AM, Charles Novaes de Santana charles.sant...@imedea.uib-csic.es wrote: Hi everyone, I am a newbie in R and in this discussion list. I am trying to use R package ncdf to read values

Re: [R] non-numeric argument to binary operator error while reading ncdf file

2010-10-27 Thread Charles Novaes de Santana
code so other can reproduce the error and provide feed back. On Wed, Oct 27, 2010 at 9:27 AM, Charles Novaes de Santana charles.sant...@imedea.uib-csic.es wrote: 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

Re: [R] non-numeric argument to binary operator error while reading ncdf file

2010-11-03 Thread Charles Novaes de Santana
- getx.var.ncdf( nc, v1 ) will retrieve the data. IT WORKS! ;) Thanks a lot! Charles On Wed, Oct 27, 2010 at 4:25 PM, Charles Novaes de Santana charles.sant...@imedea.uib-csic.es wrote: Hi, Well, I did it, but all my script was on the first message. I don't have any other variables. I am just

[R] Problems to show X-labels when plotting small values

2013-09-10 Thread Charles Novaes de Santana
in a machine with Ubuntu 12.04 (unfortunately I don't have the power to upgrade this machine :( ). Best regards, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted

Re: [R] Problems to show X-labels when plotting small values

2013-09-11 Thread Charles Novaes de Santana
Dear Jim, Thank you very much for your suggestion! It worked perfectly! Thanks for clarifying how things work. Best regards, Charles On Wed, Sep 11, 2013 at 3:49 AM, Jim Lemon j...@bitwrit.com.au wrote: On 09/11/2013 09:06 AM, Charles Novaes de Santana wrote: Dear all, I am following

Re: [R] Plot time series data irregularly hourly-spaced

2013-10-17 Thread Charles Novaes de Santana
wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Law, Jason Sent: Wednesday, October 16, 2013 5:04 PM To: Charles Novaes de Santana; r-help@r-project.org Subject: Re: [R] Plot time series data irregularly

[R] Large loops in R

2012-12-04 Thread Charles Novaes de Santana
. sapply? vapply? Could anyone help me with this issue, please? Thank you very much for your attention and for any help! Best regards, Charles -- Um axé! :) -- Charles Novaes de Santana http://www.imedea.uib-csic.es/~charles PhD student - Global Change Laboratorio Internacional de Cambio Global

Re: [R] Large loops in R

2012-12-04 Thread Charles Novaes de Santana
! Best, Charles On Tue, Dec 4, 2012 at 7:54 PM, R. Michael Weylandt michael.weyla...@gmail.com michael.weyla...@gmail.com wrote: On Dec 4, 2012, at 6:47 PM, Charles Novaes de Santana charles.sant...@gmail.com wrote: Dear all, I need to access data from a large matrix (48000 x 48000

Re: [R] Large loops in R

2012-12-04 Thread Charles Novaes de Santana
On Tue, Dec 4, 2012 at 8:43 PM, Peter Langfelder peter.langfel...@gmail.com wrote: On Tue, Dec 4, 2012 at 11:27 AM, Charles Novaes de Santana charles.sant...@gmail.com wrote: Dear Michael, Thank you for your answer. I have 2 matrices. Each position of the matrices is a weight. And I need

Re: [R] Large loops in R

2012-12-04 Thread Charles Novaes de Santana
simply (assuming nrows2 is actually columns): sum((mat1/d1 - mat2/d2)^2) R is smart enough to understand elementwise manipulation of a matrix: you shouldn't need a loop at all. Sarah On Tue, Dec 4, 2012 at 2:27 PM, Charles Novaes de Santana charles.sant...@gmail.com wrote: Dear Michael

Re: [R] Large loops in R

2012-12-06 Thread Charles Novaes de Santana
of elementwise operations. You can read the matrix in in manageable chunks, take the sum of that chunk and save the single value. Repeat, then add them all up at the end. Sarah On Tue, Dec 4, 2012 at 3:14 PM, Charles Novaes de Santana charles.sant...@gmail.com wrote: On Tue, Dec 4, 2012 at 8

[R] In which column and in which row a number is in a matrix

2013-01-02 Thread Charles Novaes de Santana
in a matrix automatically? Thanks, best regards, Charles -- Um axé! :) -- Charles Novaes de Santana http://www.imedea.uib-csic.es/~charles PhD student - Global Change Laboratorio Internacional de Cambio Global Department of Global Change Research Instituto Mediterráneo de Estudios Avanzados(CSIC

Re: [R] In which column and in which row a number is in a matrix

2013-01-02 Thread Charles Novaes de Santana
about the argument arr.ind. Happy new year -- Gerrit On Wed, 2 Jan 2013, Charles Novaes de Santana wrote: Dear all, Happy New Year for all of you! I hope we have an year of essential freedom for everyone! I am trying to manipulate a matrix in order to know in which column and in which

[R] How to overlay contourplot of a dataset A and a levelplot of a dataset B?

2014-08-02 Thread Charles Novaes de Santana
,region=FALSE,contour=TRUE) par(new=T) levelplot(z ~ x*y,grid2,region=TRUE,contour=FALSE) Any clue? Thank you very much for your time and any help! Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted

Re: [R] How to overlay contourplot of a dataset A and a levelplot of a dataset B?

2014-08-03 Thread Charles Novaes de Santana
/ Thank you for your attention, Best, Charles On Sat, Aug 2, 2014 at 4:01 PM, Charles Novaes de Santana charles.sant...@gmail.com wrote: Dear all, Does anyone know a way to overlay a contourplot and a levelplot of different datasets, both datasets with the same dimension? Let's say I

[R] Comparing matrices in R - matrixB %in% matrixA

2014-10-31 Thread Charles Novaes de Santana
){ for (k in 1:rowsA){ for (l in 1:colsA){ if(A[k,l]==B[i,j]){res-c(res,k);} } } } } return(unique(sort(res))); } Best, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles

Re: [R] Comparing matrices in R - matrixB %in% matrixA

2014-10-31 Thread Charles Novaes de Santana
(sort(res))); } Best, Charles On Fri, Oct 31, 2014 at 2:12 PM, Charles Novaes de Santana charles.sant...@gmail.com wrote: A = matrix(1:10,nrow=5) B = A[-c(1,2,3),]; So A [,1] [,2] [1,]16 [2,]27 [3,]38 [4,]49 [5,]5 10 and B [,1] [,2

Re: [R] Comparing matrices in R - matrixB %in% matrixA

2014-10-31 Thread Charles Novaes de Santana
/ On Fri, 31 Oct 2014 14:20:38 +0100 Charles Novaes de Santana charles.sant...@gmail.com wrote: My apologies, because I sent the message before finishing it. i am very sorry about this. Please find below my message (I use to write the messages from the end to the beginning... sorry :)). Dear

Re: [R] Comparing matrices in R - matrixB %in% matrixA

2014-10-31 Thread Charles Novaes de Santana
){ if(A[k,l]==B[i,j]){res-c(res,k);} } } } } return(unique(sort(res))); } Best, Charles On Fri, Oct 31, 2014 at 2:12 PM, Charles Novaes de Santana charles.sant...@gmail.com wrote: A = matrix(1:10,nrow=5) B = A[-c(1,2,3

[R] Profiling a C/C++ library from R

2014-12-02 Thread Charles Novaes de Santana
for any help! Best, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

Re: [R] Profiling a C/C++ library from R

2014-12-05 Thread Charles Novaes de Santana
: On 02/12/2014, 4:43 PM, Charles Novaes de Santana wrote: Dear all, I am running a c++ library (a .so file) from a R code. I am using the function dyn.load(lib.so) to load the library. Do you know a way to profile my C library from R? Or should I compile my C library as an executable

[R] A good way to debug a c++ library embedded to an R code

2015-02-02 Thread Charles Novaes de Santana
++ I would use GDB. I would much appreciate any help or suggestion! Best regards, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Charles Novaes de Santana
if this problem happens also with other combinations of par(mfrow) and other kinds of plots, so I am sending this message also to this broader mailing list. Does any of you have any clue about how to solve this? Thanks for your attention and for any help, Charles -- Um axé! :) -- Charles Novaes

Re: [R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Charles Novaes de Santana
. On Apr 18, 2015, at 8:55 AM, Charles Novaes de Santana charles.sant...@gmail.com wrote: Dear all, I am trying to plot 4 different plots in the same figure using par(mfrow=...) and igraph::plot.igraph. The code below reproduces more or less what I am doing: library(igraph) g

Re: [R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Charles Novaes de Santana
Just open this issue: https://github.com/igraph/rigraph/issues/69 Thanks again for your suggestion! Best, Charles On Sat, Apr 18, 2015 at 5:28 PM, Charles Novaes de Santana charles.sant...@gmail.com wrote: Dear Boris, Thank you for your message! I had experienced exactly what you describe

[R] Polysomnographic data analysis with R?

2015-06-16 Thread Charles Novaes de Santana
looked for it in the web and I didn't find. But maybe I used the wrong key-words. Any help will be much appreciated! Best, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted

Re: [R] Polysomnographic data analysis with R?

2015-06-17 Thread Charles Novaes de Santana
+), which has a complete file specification. If there is no existing R package, it might be possible to write an import function from the specification, something like the functions in the foreign package. Jim On Wed, Jun 17, 2015 at 4:55 AM, Charles Novaes de Santana charles.sant...@gmail.com

[R] Plotting EEG signals as a "head" using R

2015-10-19 Thread Charles Novaes de Santana
picture: http://d2avczb82rh8fa.cloudfront.net/content/jn/113/3/740/F3.large.jpg Thanks for any help, sorry for not having a reproducible example. Best, Charles -- Um axé! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted

Re: [R] Plotting EEG signals as a "head" using R

2015-10-19 Thread Charles Novaes de Santana
les On 19 October 2015 at 15:10, Dénes Tóth <toth.de...@ttk.mta.hu> wrote: > Hi, > > the eegkit package ( > https://cran.r-project.org/web/packages/eegkit/index.html) might help you > if you happen to work with a standard electrode cap. > > Best, > Denes > > >

Re: [R] [EXT] Re: Inappropriate color name

2020-11-20 Thread Charles Novaes de Santana
ttp://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Um axé! :) -- Charles Novaes de Santana, PhD https://github.com/cndesantana [[alternative HTML version deleted]] __

Re: [R] Inappropriate color name

2020-11-20 Thread Charles Novaes de Santana
uage institute, with a board of > literary, sociology, psychology professors? > > Afaik is github owned by Microsoft, and Microsoft is known to be an > offender of peoples rights. Who the @#$@#$ cares what they do? > > > -- Um axé! :) -- Charles Novaes de Santana, PhD https://github.co