PRL-PRG / UFOs

User Fault Objects: making vectors lazy and forgetful.
12 stars 3 forks source link

Chunk any function #29

Closed kondziu closed 2 years ago

kondziu commented 2 years ago

Write an R wrapper function that performs any other R function on chunks of vectors, returning results within a UFO. Probably mimicking apply. Eg.

f < -function(x) x + 1
big_vector <- ufo.integer(100000000000)

big_result <- ufo_apply(big_vector, f)