Skip to content
Prev 384621 / 398525 Next

Help with looping a function over a list of dataframes:

Perhaps the following will be helpful (you can ignore the warning message
here):
Warning message:
In x - y : longer object length is not a multiple of shorter object length
flag
 [1,] 3 2    1
 [2,] 3 2    1
 [3,] 4 4    1
 [4,] 4 3    1
 [5,] 4 4    1
 [6,] 4 1    0
 [7,] 4 2    0
 [8,] 5 3    0
 [9,] 5 5    1
[10,] 3 1    0

Do note that all columns in a data frame must have the same length, so
maybe you'll need to pad with NA's -- I do not entirely get what you are
trying to do.

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 Sat, Jul 4, 2020 at 8:04 AM Kathan Desai <kdesai1 at sheffield.ac.uk> wrote: