Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can we set maxvar more than 6000

    This is the problem I'm facing with my rds data reading on stata. Is there a way to get around this issue ? I have used the following command

    Code:
    set maxvar 6000
     rcall: data <- readRDS("2000.rds")
    Error message

    Code:
    no room to add more variables
        Up to 6,000 variables are currently allowed, although you could reset the maximum using set
        maxvar; see help memory.
    r(900);

  • #2
    it appears that you set maxvar to 6,000 but your data wants more - so, why choose 6,000? see
    Code:
    h limits
    for the maximum allowed number of variables by type of Stata

    Comment


    • #3
      I'd add that it's unusual to need simultaneous access to all of 6,000 variables on each observation. If you would explain something about the context of what you and doing and why you think think you need that, it might lead to better advice. It might be that you are trying to do something that, in Stata, could be more easily and efficiently in some other way.

      Comment


      • #4
        I'm dealing with these raster-pixel data which could be dealt with either R or Python or through ArcGis. This is the kind of data which is not compatible with stata. Despite increasing variable to 12,000 an error came the dta files are corrupt.

        Thanks everyone again for sharing their precious time and there knowledge! Much obliged !

        Code:
         rcall: data <- readRDS("2000.rds")
        .dta file corrupt
            The marker </variable_types> was not found in the file where it was expected to be.  This means
            that the file was written incorrectly or that the file has subsequently become damaged.
        r(688);

        Comment

        Working...
        X