- Separate out processed and raw data in the
data/
folder. - Include README.md files within each folder containing data files; also utilize the Issues tab in GitHub more often.
- Utilizes branches in the GitHub workflow, and keep the master branch's data folder "clean," so to speak.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#delimit cr | |
version 13.1 | |
clear all | |
set more off | |
/******************************************************************************* | |
* Import Directory of Excel Files into Stata | |
* | |
* Author: Daniel Reeves | |
* https://github.com/dwreeves | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub UpdateDir() | |
''' Create list of files in spreadsheet named "list." ''' | |
If ThisWorkbook.Path = "" Then | |
MsgBox "Please save this file first" | |
Stop | |
End If | |
'-------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import delimited "Transportation_Network_Providers_-_Trips.csv", delimiter(comma) varnames(1) stripquote(yes) asdouble | |
drop pickupcentroidlocation dropoffcentroidlocation //redundant | |
/* var : Share Trip Authorized */ | |
replace sharedtripauthorized = "0" if sharedtripauthorized=="false" | |
replace sharedtripauthorized = "1" if sharedtripauthorized=="true" | |
destring sharedtripauthorized, replace | |
label def lbl_truefalse 0 "false" 1 "true" | |
label values sharedtripauthorized lbl_truefalse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puzzle1 = [ | |
[4,1,3], | |
[2,8,0], | |
[7,6,5] | |
] | |
cant_be_solved = [ | |
[1,2,3], | |
[4,5,6], | |
[0,8,7] | |
] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Definitions of various constants. Adjust based on project structure and needs. | |
""" | |
import os | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
# Files and Directories | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Data Format: | |
dateTimeDelimiter: " " | |
decimalSeparator: "." | |
dataDelimiter: "," | |
dateFormat: MM/dd/yy | |
timeFormat: HH:mm:ss | |
gmtOffset: -5 | |
daylightSavings: true | |
Logger Info: |
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Data Format: | |
dateTimeDelimiter: " " | |
decimalSeparator: "." | |
dataDelimiter: "," | |
dateFormat: MM/dd/yy | |
timeFormat: HH:mm:ss | |
gmtOffset: -5 | |
daylightSavings: false | |
Logger Info: |
OlderNewer