similar to: matrices and arrays loose dimension after multiplying with scalar (PR#1979)

Displaying 20 results from an estimated 3000 matches similar to: "matrices and arrays loose dimension after multiplying with scalar (PR#1979)"

2002 Aug 08
1
analysis of function dependencies / namespacing
I am going to document a 10.000 lines of R code project. Before reinventing the wheel, has anyone written a function that analyzes dependencies between R functions? I am thinking of output like caller1 calee1 caller1 calee2 caller1 : caller2 calee7 : and I would like to restrict caller and callee to certain positions in the search path. My guess is, that a quick and dirty solution is
2002 Aug 08
1
analysis of function dependencies / namespacing
I am going to document a 10.000 lines of R code project. Before reinventing the wheel, has anyone written a function that analyzes dependencies between R functions? I am thinking of output like caller1 calee1 caller1 calee2 caller1 : caller2 calee7 : and I would like to restrict caller and callee to certain positions in the search path. My guess is, that a quick and dirty solution is
2004 Mar 22
1
Re: CRAN packages maintained by you (subscripting problem under 1.9.0.alpha?)
Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by amavisd-new Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hypatia.math.ethz.ch id i2MH38ro020355 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hypatia.math.ethz.ch X-Spam-Level: X-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,RCVD_IN_BL_SPAMCOP_NET autolearn=no
2002 May 07
2
names(unlist(...)) may construct corrupt strings (PR#1524)
names(unlist(...)) seems to be able to construct corrupt strings detected via: two identical strings behave different in paste observed in RW1.4.1 and RW1.5.0 pure replication code after output Best Jens Oehlschlägel > l <- names(unlist(list(aa = list(bb = 1)))) > l [1] "aa.bb" > # this is exactly "aa.bb" > identical(l, "aa.bb") [1] TRUE > >
2011 Sep 28
1
Multiplying a list of matrices with a vector
Hi all! I have a list of matrices and I want to multiply the ith element of the list with the ith element of a another vector. That is, > LL <- list(A=diag(3),B=diag(3),C=diag(3)) > vec <- 1:3 > for(i in 1:3) + { + LL[[i]] <- LL[[i]]*vec[i] + } > LL $A [,1] [,2] [,3] [1,] 1 0 0 [2,] 0 1 0 [3,] 0 0 1 $B [,1] [,2] [,3] [1,] 2 0
2006 Jul 17
1
multiplying multidimensional arrays (was: Re: [R] Manipulation involving arrays)
I am moving this to r-devel. The problem and solution below posted on r-help could have been a bit slicker if %*% worked with multidimensional arrays multiplying them so that if the first arg is a multidimensional array it is mulitplied along the last dimension (and first dimension for the second arg). Then one could have written: Tbar <- tarray %*% t(wt) / rep(wti, each = 9) which is a bit
2002 Aug 06
1
polygon() draws non-transparent border, erase.screen draws non-transparent border (PR#1881)
# polygon ignores requests to have its border transparent, look at par(bg="transparent") plot(c(0, 3), 0:1) polygon(c(0, 1, 1, 0), c(0, 0, 1, 1), border=NA, col = 0) polygon(c(1, 2, 2, 1), c(0, 0, 1, 1), border="transparent", col = 0) polygon(c(2, 3, 3, 2), c(0, 0, 1, 1), border=0, col = 0) # a quick fix for erase.screen() is the following erase.screen <- function (n =
2002 Aug 30
1
Can neither find or create RInterpreter.DLL
Hi, I am doing my first steps with R. This worked so far: - Installed R1.5.1 from binary distribution - Installed SJava 0.62.8 from binary distribution - Executed Java statements within R Problem: If I call R from Java, I get an UnsatisfiedLinkError: RInterpreter.DLL not found. This DLL is completely missing, I searched all drives for it. In "Calling R from Java" I found a hint:
1997 Apr 09
1
R-beta: Re: memory problems FACTOR-8 / class 'pointer'
>>>>> "Jens" == Jens Oehlschlaegel <oehl at Psyres-Stuttgart.DE> writes: Jens> I just saw a beta version of WinS+4.0 last week: Good and bad Jens> news: MATHSOFT has substantially improved graphic handling and Jens> user interface. Bad news is: The version I saw needed 50 MB Jens> RAM, so our equipment should have 64 MB RAM minimum. This is
2009 Dec 02
0
[Fwd: Re: Adding and Multiplying two Unevaluated Expressions]
-------- Original-Nachricht -------- Betreff: Re: [R] Adding and Multiplying two Unevaluated Expressions Datum: Tue, 01 Dec 2009 23:49:39 +0100 Von: Benjamin M?ller <ben_mueller.bm at web.de> An: Rolf Turner <r.turner at auckland.ac.nz> Referenzen: <20091201144125.316310 at gmx.net> <8E40E49F-E8FC-4FBD-8CC5-93789FFB0E53 at auckland.ac.nz> This works fine for your
2017 Jul 23
2
R: How to multiplying y-axis ticks value by 100?
R: how multiplying y-axis ticks value by 100 (without put the % symbol next to the number) here:? plot (CI.overall, curvlab=c("Discharge", "Death"), xlab="Days", las=1)? P.S. So instead 0.00, 0.20 etc. the 0, 20 etc. Thank you in advance, Nic [[alternative HTML version deleted]]
2006 Oct 19
1
Writing a script for multiplying a progressively larger lists of items
Hi, I would like to get guidance as to how to write code in R that can deal with the following situation: v1 is a vector containing a sequence of numbers (Ex. 1:10) I want to store the sequence of numbers resulting from multiplying the first and the second element in the vector, then the product of the 1st, 2nd and 3rd, then 1st,2nd,3rd and 4th and so forth until all the elements in the
2017 Jul 23
0
R: How to multiplying y-axis ticks value by 100?
Hi Nic, Have a look at axis.mult in the plotrix package. Jim On Sun, Jul 23, 2017 at 12:46 PM, iPad via R-help <r-help at r-project.org> wrote: > R: how multiplying y-axis ticks value by 100 (without put the % symbol next to the number) here: > plot (CI.overall, curvlab=c("Discharge", "Death"), xlab="Days", las=1) > P.S. So instead 0.00, 0.20 etc.
2009 Dec 01
1
Adding and Multiplying two Unevaluated Expressions
HI, As I'm trying to compute Taylor series, I'm having problems in adding and multiplying unevaluated expressions. I searched for a solution but found none. my Taylor function works fine for evaluating functions as you can see here: rTaylorVal=function(exp,x0,dx,n) { ls=list(x=x0) newexp=eval(exp,ls) exp0=exp for (i in 1:n){ exp0=D(exp0,"x")
2008 Jan 20
2
Efficient way for multiplying vectors with a only certain number of rows in a matrix
Dear R-users, I am working on a problem that I am currently not able to solve efficiently. It is about multiplying one column of a matrix with only a certain number of rows of another matrix. Let me illustrate my problem with an example: n.obs = 800 n.rowsperobs = 300 n.param = 23 Designmat = matrix(rnorm(n.obs*n.rowsperobs*n.param),ncol=n.param) Betamat =
2012 May 10
1
storage of matrices of diff dimension together
Hi, It might be a trivial question but how do you store matrices of different dimensions read from a file or in a loop together? The best solution might be a list but I don't store the first matrix  correctly:  m = rbind(c(1,2),c(3,4),c(5,6)) t=rbind(c(1,2),c(5,6))  l = list(m) > l = list(l,t)    #I assumed that at the begining I don't have m and t at the same time to do list(m,t),
2002 Oct 15
2
glm and Newey-West estimator
Dear R-users, has anybody combined the glm function with the Newey-West estimator of variance, similar as in Stata 7.0? I'd like to estimate corrected standard errors within a logistic regression model, taking into account the auto-correlated binary observations within individuals. I use R1.5.1 on Mac OS X (10.2). Thanks, Christof
2005 May 13
2
Bug in axis labels (PR#7860)
Bob O'hara wrote: > I'm a bit reluctant to call anything a bug: I know it's usually my > incompetence instead. In this case, I can't see what else it is, > although it may be a bug in Windows. > > The problem comes from trying to create a .png of a figure in Windows > XP, with R2.1.0. On the screen it looks OK, but in the .png the text > for the x label
2002 Sep 03
1
Bugs in $RHOME/src/library/SJava/src/makefile.win (PR#1977)
Full_Name: Heinz Grimm Version: R1.5.1 OS: Windows NT Submission from: (NULL) (195.65.178.178) Line 11 is: "DLLLIBS=-L'c:/jdk1.3/lib' -L$(JAVA_HOME)/jre/bin/hotspot...." should be: "DLLLIBS=-L$(JAVA_HOME)/lib -L$(JAVA_HOME)/jre/bin/hotspot...." Line 59 is: " (cd .. ; ./configure.win $(RHOME))" should be: " (cd .. ; sh ./configure.win $(RHOME))"
2002 Jul 18
1
tseries (get.hist.quote)
Hi, i really positive surprised when i found the "get.hist.quote" but didn't now why i get with the examples from Online-Help errorMessages. Perhaps their is a problem with POSIX and my OS WIN2000/R1.5.1 ? Thanks for advance & regards,Christian $ ibm <- get.hist.quote(instrument = "ibm", start = "1998-01-01") trying URL `