Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Duncan Murdoch
On 09/12/2020 6:45 p.m., Rolf Turner wrote: On Wed, 9 Dec 2020 06:18:10 -0500 Duncan Murdoch wrote: On 09/12/2020 3:06 a.m., Rolf Turner wrote: I would like to produce, as graphical annotation, the Greek letter sigma with a superscript of 2 and a subcript of 11. (I.e. the top left hand ent

Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Rolf Turner
On Wed, 9 Dec 2020 06:18:10 -0500 Duncan Murdoch wrote: > On 09/12/2020 3:06 a.m., Rolf Turner wrote: > > > > I would like to produce, as graphical annotation, the Greek letter > > sigma with a superscript of 2 and a subcript of 11. (I.e. the top > > left hand entry of a covariance matrix.) >

Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Duncan Murdoch
On 09/12/2020 3:06 a.m., Rolf Turner wrote: I would like to produce, as graphical annotation, the Greek letter sigma with a superscript of 2 and a subcript of 11. (I.e. the top left hand entry of a covariance matrix.) I've tried: plot(1:10,main=expression({sigma^2}[11])) (and variants). Thi

Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Eric Berger
Hi Rolf, This is not addressing your implementation, but reformulates the goal. Specifically, the covariance matrix is normally written as \Sigma (not \sigma^2). So to specify the upper left element you would write (in Latex) \Sigma_{11}. No superscript (so no problem!) HTH, Eric On Wed, Dec 9,

Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Dr Eberhard W Lisse
They let you guys go to the pup again? :-)-O el On 09/12/2020 10:06, Rolf Turner wrote: [...] > Is there any way to achieve, with plotmath, an effect like unto that > produced by the LaTeX expression $\sigma^2_{11}$? Or should I just > give up and go to the pub? :-) [...] -- Dr. Eberhard W. Lis

Re: [R] (subscript) logical subscript too long

2015-10-01 Thread Maram SAlem
t; > > > > > > > *From:* Maram SAlem [mailto:marammagdysa...@gmail.com] > *Sent:* giovedì 1 ottobre 2015 14:12 > > *To:* Giorgio Garziano > *Cc:* r-help@r-project.org > *Subject:* Re: [R] (subscript) logical subscript too long > > > > Thanks a lot Giorg

Re: [R] (subscript) logical subscript too long

2015-10-01 Thread Giorgio Garziano
Intel i5 Windows-7 64-bit 16GB RAM. GG From: Maram SAlem [mailto:marammagdysa...@gmail.com] Sent: giovedì 1 ottobre 2015 14:12 To: Giorgio Garziano Cc: r-help@r-project.org Subject: Re: [R] (subscript) logical subscript too long Thanks a lot Giorgio, I used memory.limit(size=4096) but got

Re: [R] (subscript) logical subscript too long

2015-10-01 Thread Giorgio Garziano
: Giorgio Garziano Cc: r-help@r-project.org Subject: Re: [R] (subscript) logical subscript too long Thanks a lot Giorgio, I used memory.limit(size=4096) but got don't be silly!: your machine has a 4Gb address limit I'm working on my Ph.D. thesis and I have a huge code of which this

Re: [R] (subscript) logical subscript too long

2015-10-01 Thread Maram SAlem
memory.limit(size=4096) > > > > > > > > *From:* Maram SAlem [mailto:marammagdysa...@gmail.com] > *Sent:* giovedì 1 ottobre 2015 13:22 > *To:* Giorgio Garziano > *Cc:* r-help@r-project.org > *Subject:* Re: [R] (subscript) logical subscript too long > > >

Re: [R] (subscript) logical subscript too long

2015-10-01 Thread Giorgio Garziano
Check your memory size by: memory.limit() try to increase it by: memory.limit(size=4096) From: Maram SAlem [mailto:marammagdysa...@gmail.com] Sent: giovedì 1 ottobre 2015 13:22 To: Giorgio Garziano Cc: r-help@r-project.org Subject: Re: [R] (subscript) logical subscript too long Thanks

Re: [R] (subscript) logical subscript too long

2015-10-01 Thread Maram SAlem
Thanks Giorgio, I got it. I managed to reach the matrix s whose rows represent all the possible combinations. Here is the code: > n=12 > m=7 > D<-matrix(0,nrow=n-m+1,ncol=m-1) > for (i in 1:m-1) + { + D[,i]<-seq(0,n-m,1) + } > ED <- do.call(`expand.grid`,as.data.frame(D)) > ED<-as.matrix(ED)

Re: [R] (subscript) logical subscript too long

2015-09-30 Thread Giorgio Garziano
Be: log <- (rowSums(ED) <= (n - m)) Compare the following two values: length(log) nrow(w) -- GG [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

Re: [R] subscript out of bounds

2015-01-20 Thread Chel Hee Lee
I hope this toy example gives an idea to understand the problems that you are facing now. Please see the below: # 1. Create an empty list > A <- list() > A list() # 2. Add the first component (vector with two elements). > A[[1]] <- c(2,6) > A [[1]] [1] 2 6 # 3. Now, add the third component

Re: [R] Subscript out of bounds

2013-11-26 Thread Keniajin Wambui
Here is the error am getting Error: chunk 1 Error in tt[[ll[v]]] : subscript out of bounds Error in rle(filenames) : 'x' must be an atomic vector Calls: -> -> RweaveTryStop Execution halted On Wed, Nov 27, 2013 at 9:25 AM, Keniajin Wambui wrote: > Dear Jeff; > Below is the output for session

Re: [R] Subscript out of bounds

2013-11-26 Thread Keniajin Wambui
Dear Jeff; Below is the output for sessioninfo() R version 3.0.2 (2013-09-25) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 [3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C [5] LC_TIME=English_United King

Re: [R] Subscript out of bounds

2013-11-26 Thread Jeff Newmiller
This is the kind of question where including the output of sessionInfo() is a really good idea. This would, for example, answer the question of whether you are in fact using the x64 version of R. --- Jeff Newmiller

Re: [R] Subscript out of bound error

2013-07-05 Thread Jim Holtman
use 'match' to convert the names to column indices and then use that for indexing indx <- match(subCols, names(yourMatrix) mySubset <- yourMatrix[, indx] Sent from my iPad On Jul 5, 2013, at 2:22, Chirag Gupta wrote: > Hi All > > I have a huge matrix m (10276 X 10276) dimension with same col

Re: [R] Subscript Error

2012-04-05 Thread z2.0
Thanks to you both. Calling recover (an option hitherto unknown to me) helped me identify the problem. For the record, the error occurred in the geom_path() line, not the list concatenation, as I had previously thought. It was a logic problem: when typeof == NULL the function jumped, but i remaine

Re: [R] Subscript Error

2012-04-04 Thread jim holtman
You should have the following statement as part of your startup for R: options(error=utils::recover) When an error occurs, you will be at the stack frame where is happens and you can examine the values of the variables that you are using and this should help a lot in tracking down your problem.

Re: [R] Subscript Error

2012-04-04 Thread Peter Ehlers
On 2012-04-04 14:25, z2.0 wrote: json_dir is a list of JSON lists mapping lat/long route points between locations using CloudMade's API. post_url is the URL of the HTTP request for (n in json_dir) { i = i + 1 if (typeof(json_dir[[i]]) != "NULL") { if

Re: [R] (subscript) logical subscript too long in using apply

2012-02-17 Thread Petr PIKAL
Hi apply probably does not understand you function. I do not want to go too deeply into it but I noticed few issues in it. See inline > > Dear ALL > I have this function in R: > > > > func_LN <- function(data){ > > med_ge <- matrix(c(rep(NA,nrow(data)*ncol(data))), nrow = nrow(data), > ncol

Re: [R] (subscript) logical subscript too long in using apply

2012-02-17 Thread Petr Savicky
On Fri, Feb 17, 2012 at 12:44:44PM +0100, Soheila Khodakarim wrote: > Dear ALL > I have this function in R: > > > > func_LN <- function(data){ > > med_ge <- matrix(c(rep(NA,nrow(data)*ncol(data))), nrow = nrow(data), > ncol=ncol(data), byrow=TRUE) > T <- matrix(c(rep(NA,length(n)*ncol(data))),

Re: [R] subscript with comma

2012-01-05 Thread suse
David Winsemius wrote > > The insight that > allowed me to get a significantly higher frequency of success was > realizing that the correct separators between separate expressions > were "*" and "~" rather than or . Inside an expression > a comma will signal a new expression element. A

Re: [R] subscript with comma

2012-01-04 Thread Duncan Murdoch
On 12-01-04 11:41 AM, suse wrote: Thank you! It works now. But I still don't understand, how all these expressions, "", paste, group, eval... have to be used together. (For example, I first tried expression(sm[w,grass]) but it didn't work, and I couldn't find, why (and when) commas are interpret

Re: [R] subscript with comma

2012-01-04 Thread suse
Thank you! It works now. But I still don't understand, how all these expressions, "", paste, group, eval... have to be used together. (For example, I first tried expression(sm[w,grass]) but it didn't work, and I couldn't find, why (and when) commas are interpreted here differently). So: Is there

Re: [R] subscript with comma

2012-01-04 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of David Winsemius > Sent: Wednesday, January 04, 2012 9:53 AM > To: Uwe Ligges > Cc: r-help@r-project.org; suse > Subject: Re: [R] subscript with comma >

Re: [R] subscript with comma

2012-01-04 Thread David Winsemius
On Jan 4, 2012, at 10:51 AM, Uwe Ligges wrote: On 04.01.2012 16:12, suse wrote: Hi, I want to write a word with subscript in a graph. Unfortunately, the subscript contains a comma, so all my trials didn't work and I didn't find how to do it. I want to write "sm" as normal text and "w,gra

Re: [R] subscript with comma

2012-01-04 Thread Uwe Ligges
On 04.01.2012 16:12, suse wrote: Hi, I want to write a word with subscript in a graph. Unfortunately, the subscript contains a comma, so all my trials didn't work and I didn't find how to do it. I want to write "sm" as normal text and "w,grass" in the subscript. Can anybody help me? And a mor

Re: [R] subscript out of bouns

2011-06-30 Thread jim holtman
You need to at least provide 'str(datos2)' so we can understand your data. You are trying to access a row with the name "2011-01-03"; does that row exist in your data? what does rownames(datos2) show? The guide says "PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

Re: [R] Subscript out of Bounds

2011-04-28 Thread Dat Mai
Great! I got it. Thanks a bunch. On Thu, Apr 28, 2011 at 4:02 PM, Duncan Murdoch wrote: > On 28/04/2011 3:49 PM, Dat Mai wrote: > >> I currently have this code: >> >> for(j in 2:n){ >> for(i in 1:(j-1)){ >> >> # Make sure the inputs are for the matrix "m" >> input1=rownames(m)[i] >>

Re: [R] Subscript out of Bounds

2011-04-28 Thread Duncan Murdoch
On 28/04/2011 3:49 PM, Dat Mai wrote: I currently have this code: for(j in 2:n){ for(i in 1:(j-1)){ # Make sure the inputs are for the matrix "m" input1=rownames(m)[i] input2=colnames(m)[j] q=t[(t$Rec1==input1& t$Rec2==input2),output] if(length(q)==0){ q=t[

Re: [R] subscript out of bounds

2011-03-05 Thread David Winsemius
On Mar 5, 2011, at 7:41 AM, Stat Consult wrote: On Sat, Mar 5, 2011 at 4:08 PM, Stat Consult wrote: Dear ALL I cannot run this line stat.obs <- apply (GS, 2, function(z) Hott2(t(DATA[which(z==1),]), cl)) Error in Hott2 (t(DATA[which(z == 1), ]), cl) : subscript out of bounds I wil

Re: [R] subscript out of bounds

2011-03-05 Thread Stat Consult
On Sat, Mar 5, 2011 at 4:08 PM, Stat Consult wrote: > Dear ALL > > I cannot run this line > > stat.obs <- apply (GS, 2, function(z) Hott2(t(DATA[which(z==1),]), cl)) > > Error in Hott2 (t(DATA[which(z == 1), ]), cl) : subscript out of bounds > > I will be glade if you guide me. > > > *

Re: [R] Subscript out of bounds

2009-11-24 Thread Tom Wainwright
On 11/24/2009 10:00 AM, tobiasfa wrote: Hi! Trying to make a forecast, and get the following error message: Error in NextMethod("[<-") : subscript out of bounds The script is as follows: Forecast.A<- ts(matrix(NA, nrow=25, ncol = 1, + dimnames = list(c(), c("Outcome"))), + start = c(2006,

Re: [R] subscript into matrix discards row/column names

2009-07-21 Thread Henrique Dallazuanna
Try this: x[1,, drop = FALSE] On Tue, Jul 21, 2009 at 1:46 PM, Vadim Ogranovich < vogranov...@jumptrading.com> wrote: > Dear R-help, > > When the result of a matrix subscription degenerates to a scalar the names > implied by the dimnames are discarded. > > > x <- matrix(0, 1, 1, dimnames=list('

Re: [R] Subscript

2009-01-07 Thread Dimitris Rizopoulos
try something like this: plot(0:1, 0:1, type = "n") text(0.5, 0.5, expression(paste(plain(log)[2], " intensity"))) and check ?plotmath for more info. I hope it helps. Best, Dimitris Timthy Chang wrote: A similar question: mtext(text="log2 intensity ") How can I change "2" to be subscript?

Re: [R] Subscript

2009-01-07 Thread Henrique Dallazuanna
Try this: mtext(text=bquote(log[2]~intensity)) On Wed, Jan 7, 2009 at 5:36 AM, Timthy Chang wrote: > > A similar question: > > mtext(text="log2 intensity ") > How can I change "2" to be subscript? (see picture below) > > > http://www.nabble.com/file/p21326192/log2_intensity.jpg > -- > View this

Re: [R] Subscript

2009-01-07 Thread Timthy Chang
A similar question: mtext(text="log2 intensity ") How can I change "2" to be subscript? (see picture below) http://www.nabble.com/file/p21326192/log2_intensity.jpg -- View this message in context: http://www.nabble.com/Subscript-tp12241351p21326192.html Sent from the R help mailing list arc