Re: [R] Vary an equation using values from a sequence

2018-03-21 Thread David L Carlson
y Texas A&M University College Station, TX 77843-4352 -Original Message- From: R-help On Behalf Of Jake William Andrae Sent: Wednesday, March 14, 2018 11:14 PM To: R-help Subject: [R] Vary an equation using values from a sequence Hi All, I have a vector of data on which I am operating.

Re: [R] Vary an equation using values from a sequence

2018-03-14 Thread Jake William Andrae
Thank you, I�ll give it a try. Jake Get Outlook for iOS<https://aka.ms/o0ukef> From: Bert Gunter Sent: Thursday, March 15, 2018 3:23:18 PM To: Jake William Andrae Cc: R-help Subject: Re: [R] Vary an equation using values from a sequence I thnk what you w

Re: [R] Vary an equation using values from a sequence

2018-03-14 Thread Bert Gunter
I thnk what you want is ?outer. e.g.: outer(Data -min(Data),value,FUN = "+") Whether this works for your real task, however, may depend on details and complexities that you have omitted. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and stick

[R] Vary an equation using values from a sequence

2018-03-14 Thread Jake William Andrae
Hi All, I have a vector of data on which I am operating. The equation with which I want to operate on the vector has a value k. I want to run the equation and output a new vector, each time replacing k with each value from the sequence I defined. I have thought about using for loops and such, b