[R] numeric operations w/ lists

From: Afshartous, David <afshart_at_exchange.sba.miami.edu>
Date: Wed 10 Aug 2005 - 02:21:19 EST

Hello all,

X is a list of 20 lists, and each individual list has 65 elements.

Y is a list of 65 elements.

WANT: subtract Y from each of the 20 lists in X.

Here's what I tried and the error messages:

> X - rep(Y, 20)

Error in X - rep(Y 20) : non-numeric argument to binary operator

I tried several methods w/o success. Any suggestions kindly appreciated.


ps - please copy afshar@miami.edu in the reply, as I've had problems receiving the daily digest.

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Aug 10 02:28:02 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:45 EST