Error: cannot allocate vector of size…

  • Error: cannot allocate vector of size…

     David updated 1 week, 1 day ago 2 Members · 2 Posts
  • peter.bonner

    Member
    April 7, 2021 at 11:15 pm

    This is the first time I’ve come across an error like this.

    I’m trying to use pivot_longer on a tibble (size 995274 rows by 70 cols, 632313408 bytes) so that I can filter each column (rather than writing filter() 70 times)and only keep values under the 99th percentile of that column. When I try to this I get an error “Error: cannot allocate vector of size 479.5 Mb”. I’ve had a quick search online, but not found if there’s anything definitive I can do, apart from using an alternative method to pivot_longer.

    Anyone had anything similar or know what can be done?

    Peter

  • David

    Organizer
    April 13, 2021 at 2:40 pm

    Sorry, just seeing this! I’ve never encountered this error message. Let us know if you come up with a solution!

Log in to reply.

Original Post
0 of 0 posts June 2018
Now