R

psychological experiments

Use jaysire package to build flexible behavioral experiments in R. Why? Better workflow Free Cutomizable remotes::install_github("djnavarro/jaysire")

renv

Check where your package is installed find.package("dplyr") ## [1] "C:/Program Files/R/R-4.0.3/library/dplyr" All projects use the same library path. Then for each project, you need different library dependencies. Intializing a project renv::init() A .

Patent Databases

Comprehensive patent data can be found here United States NBER patent data or link Search link for individual patent: link Patent API USPTO - United States patent and Trademark Office Patent ranking by orgs Bulk Data Storage System: repository for raw public bulk data For Researcher Patent Assignment Dataset details information of patent assignment since 1970 with schema and description and code Pre-Grant Publications Data Download Tables with example code note that organizaiton here is different from Compustat and CRSP, hard to match.

Linking Financial Databases (CRSP and Compustat)

Information can be found in CRSP/COMPUSTAT MERGED DATABASE GUIDE Change Identifiers: Ticker: can be reassign to another company - abbreviation used to uniquely identify publicly-traded shares of a stock CUSIP: A company can have multiple CUSIPS due to structural changes.

Apache Arrow

more information can be found in URSA Labs This example is from Arrow Vignettes arrow best when working with big data Prep library("arrow", warn.conflicts = FALSE) library("dplyr", warn.conflicts = FALSE) check if S3 support is included.

doParallel

Packages #install.packages("doParallel") library("doParallel") ## Loading required package: foreach ## Loading required package: iterators ## Loading required package: parallel Check how long a loop takes start <- proc.time() for (i in 1:10){ sqrt(i) } base_loop=(proc.

Hello R Markdown

R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.