We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 23 columns, instead of 7. 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
dateTransaction,nicknameTeam,slugLeague,namePlayerAcquired,namePlayerRelinquished,descriptionTransaction,urlPST,isTrade,isDraftPick,isHiredExec,isPromotedExec,isLostFreeAgent,isSignedFreeAgent,isWaived,isActivedFromIL,isIRPlacement,isILPlacement,isArrested,iSurgery,isFine,isDNP,isLostExpansionDraft,isDTD | |
1996-11-13,Lakers,NBA,NA,Cedric Ceballos,partially torn patella tendon in right knee (out 6-8 weeks),http://www.prosportstransactions.com/basketball/Search/SearchResults.php?Player=&Team=&BeginDate=&EndDate=&PlayerMovementChkBx=yes&ILChkBx=yes&NBADLChkBx=yes&InjuriesChkBx=yes&PersonalChkBx=yes&DisciplinaryChkBx=yes&LegalChkBx=yes&Submit=Search&start=29225,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE | |
1996-11-14,Lakers,NBA,NA,Cedric Ceballos,placed on ir with partially torn patella tendon in right knee,http://www.prosportstransactions.com/basketball/Search/SearchResults.php?Player=&Team=&BeginDate=&EndDate=&PlayerMovementChkBx=yes&ILChkBx=yes&NBADLChkBx=yes&Inj |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 23 columns, instead of 7. 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
dateTransaction,nicknameTeam,slugLeague,namePlayerAcquired,namePlayerRelinquished,descriptionTransaction,urlPST,isTrade,isDraftPick,isHiredExec,isPromotedExec,isLostFreeAgent,isSignedFreeAgent,isWaived,isActivedFromIL,isIRPlacement,isILPlacement,isArrested,iSurgery,isFine,isDNP,isLostExpansionDraft,isDTD | |
1971-12-26,Condors,ABA,NA,John Brisker,Achilles tendon injury,http://www.prosportstransactions.com/basketball/Search/SearchResults.php?Player=&Team=&BeginDate=&EndDate=&PlayerMovementChkBx=yes&ILChkBx=yes&NBADLChkBx=yes&InjuriesChkBx=yes&PersonalChkBx=yes&DisciplinaryChkBx=yes&LegalChkBx=yes&Submit=Search&start=7400,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE | |
1975-12-05,76ers,NBA,NA,Billy Cunningham,partially torn ligament (ACL?) in left knee (out for season),http://www.prosportstransactions.com/basketball/Search/SearchResults.php?Player=&Team=&BeginDate=&EndDate=&PlayerMovementChkBx=yes&ILChkBx=yes&NBADLChkBx=yes&InjuriesChkBx=yes&PersonalChkBx=yes&Discipli |
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
library(dplyr) | |
library(stringr) | |
library(jsonlite) | |
library(purrr) | |
library(readr) | |
library(glue) | |
library(tidyr) | |
parse_for_players <- | |
function() { |
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
source("https://gist.githubusercontent.com/abresler/b6ff496e65acf4ba886c0e912d2c3a93/raw/c84f3880101e115199c9a280d905084f1c449ad4/install_stuff.r") | |
source("https://gist.githubusercontent.com/abresler/1f95db35c200f1ed63c97b1a95ec8de7/raw/e4e78ae4c560aa919263931f6235cd41cba4af45/code_from_post.r") |
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
PassengerId | Survived | |
---|---|---|
892 | 0 | |
893 | 1 | |
894 | 0 | |
895 | 0 | |
896 | 1 | |
897 | 0 | |
898 | 1 | |
899 | 0 | |
900 | 1 |
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
# devtools::install_github("abresler/fundManageR") | |
gdeltr2::load_needed_packages(c("dplyr", "fundManageR", "tidyr", "stringr", "purrr", "glue")) | |
kris_managers <- | |
c("Quantam Utility", | |
"First Reserve", | |
"EIG Partners", | |
"Energy Capital") | |
df_kk <- |
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
devtools::install_github("abresler/markovifyR") | |
library(dplyr) | |
library(markovifyR) | |
df_yc <- fundManageR::get_data_ycombinator_alumni() | |
companies <- df_yc %>% pull(descriptionCompany) | |
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
### Code for Introduction to Programming with gdeltr2 | |
## asbcllc.com/blog/2017/august/intro_to_programming_with_gdeltr2/index.html | |
# Package Install --------------------------------------------------------- | |
install.packages("devtools") | |
install.packages("purrr") | |
library(purrr) | |
packages_to_install <- |
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
devtools::install_github("abresler/gdeltr2") | |
devtools::install_github("hafen/trelliscopejs") | |
library(gdeltr2) | |
library(dplyr) | |
asb_ocr <- "Brooklyn Nets" | |
gkg_codes <- | |
get_codes_gkg_themes() | |
imageweb_codes <- get_gdelt_codebook_ft_api(code_book = "imageweb") |
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
codeGKGTheme | isWBCode | isEconomicEvent | isSocialEvent | isTaxEvent | isMilitaryEvent | isGovernmentEvent | isMedicalEvent | isAgressionAct | isMediaEvent | isEmergencyEvent | isMovement | isCriminalEvent | idWBCode | nameWBCode | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ACT_FORCEPOSTURE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | NA | NA | |
ACT_HARMTHREATEN | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | NA | NA | |
ACT_MAKESTATEMENT | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | NA | NA | |
ACT_YIELD | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | NA | NA | |
AFFECT | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | NA | NA | |
AGRICULTURE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | NA | NA | |
ALLIANCE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | NA | NA | |
APPOINTMENT | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | NA | NA | |
ARMEDCONFLICT | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | NA | NA |