search for: maingo

Displaying 2 results from an estimated 2 matches for "maingo".

2017 Dec 13
0
Add vectors of unequal length without recycling?
...c(10, 20, 30) u + 1 #[1] 11 20 30 which would be pretty inconvenient. (Note that the recycling rule has to make a special case for when one argument has length zero - the output then has length zero as well.) Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Dec 12, 2017 at 9:41 PM, Maingo via R-help <r-help at r-project.org> wrote: > I'm a newbie for R lang. And I recently came across the "Recycling Rule" > when adding two vectors of unequal length. > > I learned from this tutor [ http://www.r-tutor.com/r- > introduction/vector/vector-arithmetics...
2017 Dec 13
4
Add vectors of unequal length without recycling?
I'm a newbie for R lang. And I recently came across the "Recycling Rule" when adding two vectors of unequal length. I learned from this tutor [ http://www.r-tutor.com/r-introduction/vector/vector-arithmetics ] that: """""" If two vectors are of unequal length, the shorter one will be recycled in order to match the longer vector. For example, the