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
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] | |
] |
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
from random import shuffle | |
import csv | |
############################################################################### | |
## PARAMETERS | |
############################################################################### | |
# STARTING HANDS | |
# Cards are ordinally ranked from 1 (best) to 99 (worst) |
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 | |
* |
NewerOlder