Skip to content

Instantly share code, notes, and snippets.

@CerebralMastication
Created March 22, 2011 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CerebralMastication/880587 to your computer and use it in GitHub Desktop.
Save CerebralMastication/880587 to your computer and use it in GitHub Desktop.
pseudo code for Collin
# initialize an output data frame
# with the right columns... I'll assume it's called dfOut
for ( i in 1:(nrow(df)) ) {
for ( j in 1:(df$endYear - df$startYear + 1 ) ) {
dfOut[length(dfOut +1), ] <- ## construct a single row data frame here with the write stuff and it will insert into dfOut ##
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment