Re: [R] Strange behavior of 2-d array within function

2021-10-07 Thread PIKAL Petr
problem. Cheers Petr > -Original Message- > From: R-help On Behalf Of Gabriel Toro > Sent: Wednesday, October 6, 2021 8:32 PM > To: r-help@r-project.org > Subject: [R] Strange behavior of 2-d array within function > > Hi, > > I have a function, which defines an

Re: [R] Strange behavior of 2-d array within function

2021-10-06 Thread Bert Gunter
Likely impossible to answer without seeing your code. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Oct 6, 2021 at 11:33 AM Gabriel Toro wrote: > Hi,

[R] Strange behavior of 2-d array within function

2021-10-06 Thread Gabriel Toro
Hi, I have a function, which defines an array of dimensions 5000 by 60, calculates the values within that array and then returns the array on exit. I get an error: Error in my_simulated[ir, 1:it] : incorrect number of dimensions For some strange reason, the array is somehow being changed from