Announcement

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

  • Append after using command 'Chunky'

    Hi,

    After using the command 'Chunky' to split a database into maneagable sizes, and then further splitting each part by country, I am left with 30 'part' files per country (US_part1.....part32 / AU_part1....part32) etc.

    The code I want to use to recontruct these into country datasets is

    Code:
    clear
    
    use US_part1.dta
     
     forvalues  i = 2 / 32 {
        append using US_part`i'
        
    }
      
     save US.dta

    My question is: In the forvalues statement, do I use 1/32 or 2/32?

    Thanks,

    Ciaran
    Last edited by Ciaran OFlynn; 07 Feb 2023, 03:48.

  • #2
    Since you already have US_part1 in memory, you do not want to append it to itself. What you have is correct.

    Comment

    Working...
    X