[R] is there a way to let R do smart matrix-vector operation?
Daniel Nordlund
res90sx5 at verizon.net
Tue Mar 7 03:11:40 CET 2006
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]
> On Behalf Of Michael
> Sent: Monday, March 06, 2006 5:56 PM
> To: Gabor Grothendieck
> Cc: R-help at stat.math.ethz.ch
> Subject: Re: [R] is there a way to let R do smart matrix-vector operation?
>
> Does R have a similarly smart division?
>
> I've tried hard on:
>
> > A/as.vector(as.matrix(ddLen))
> Error in A/as.vector(as.matrix(ddLen)) : non-numeric argument to binary
> operator
If ddLen is truly a list, then you might try
A/unlist(ddLen)
Hope this helps,
Dan
Daniel Nordlund
Bothell, WA
More information about the R-help
mailing list