Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 878813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:49:27+00:00 2026-05-15T11:49:27+00:00

I have been working on large datasets lately (more than 400 thousands lines). So

  • 0

I have been working on large datasets lately (more than 400 thousands lines). So far, I have been using XTS format, which worked fine for “small” datasets of a few tenth of thousands elements.

Now that the project grows, R simply crashes when retrieving the data for the database and putting it into the XTS.

It is my understanding that R should be able to have vectors with size up to 2^32-1 elements (or 2^64-1 according the the version). Hence, I came to the conclusion that XTS might have some limitations but I could not find the answer in the doc. (maybe I was a bit overconfident about my understanding of theoretical possible vector size).

To sum up, I would like to know if:

  1. XTS has indeed a size limitation
  2. What do you think is the smartest way to handle large time series? (I was thinking about splitting the analysis into several smaller datasets).
  3. I don’t get an error message, R simply shuts down automatically. Is this a known behavior?

SOLUTION

  1. The same as R and it depends on the kind of memory being used (64bits, 32 bits). It is anyway extremely large.
  2. Chuncking data is indeed a good idea, but it is not needed.
  3. This problem came from a bug in R 2.11.0 which has been solved in R 2.11.1. There was a problem with long dates vector (here the indexes of the XTS).
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:49:28+00:00Added an answer on May 15, 2026 at 11:49 am

    Regarding your two questions, my $0.02:

    1. Yes, there is a limit of 2^32-1 elements for R vectors. This comes from the indexing logic, and that reportedly sits ‘deep down’ enough in R that it is unlikely to be replaced soon (as it would affect so much existing code). Google the r-devel list for details; this has come up before. The xts package does not impose an additional restriction.

    2. Yes, splitting things into chunks that are manageable is the smartest approach. I used to do that on large data sets when I was working exclusively with 32-bit versions of R. I now use 64-bit R and no longer have this issue (and/or keep my data sets sane),

    There are some ‘out-of-memory’ approaches, but I’d first try to rethink the problem and affirm that you really need all 400k rows at once.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
I have been working on a comparatively large system on my own, and it's
Hi I have been working on a large matrix which displays the results of
I have been working to deploy a relatively large Rails app (Rails 2.3.5) and
First, a bit of my background. I have been working on large web systems
Well, I have been working with large amount of network data. In which I
I am a university student. I have been working a lot with Android lately
I have been working on a web services related project for about the last
I have been working with a string[] array in C# that gets returned from
We have been working with CVS for years, and frequently find it useful to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.