On 17/11/2016 6:26 AM, Ulrik Stervbo wrote:
Hi Georg,
Your for loop iterates over just one value, to get it to work as you intend
use for(item in 1:length(kpis)){}
That usually works, but fails often enough that we recommend using
for (item in seq_along(kpis)) {}
(The failures happen if leng
Hi Georg,
Your for loop iterates over just one value, to get it to work as you intend
use for(item in 1:length(kpis)){}
HTH
Ulrik
On Thu, 17 Nov 2016 at 12:18 wrote:
> Hi All,
>
> I need to execute a loop on variables to compute several KPIs.
> Unfortunately the for loop is executed only once
Hi All,
I need to execute a loop on variables to compute several KPIs.
Unfortunately the for loop is executed only once for the last KPI given.
The code below illustrates my current solution but is not completely
necessary to spot the problem. I just give an idea what I am doing
overall. Looks
3 matches
Mail list logo