https://github.com/btskinner/functionalr
Functional programming with R/Rcpp
https://github.com/btskinner/functionalr
Last synced: 6 months ago
JSON representation
Functional programming with R/Rcpp
- Host: GitHub
- URL: https://github.com/btskinner/functionalr
- Owner: btskinner
- Created: 2017-01-31T15:12:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T15:26:35.000Z (almost 9 years ago)
- Last Synced: 2025-06-01T06:30:27.835Z (7 months ago)
- Language: R
- Size: 2.85 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Functional programming with R/Rcpp
Short script to show the basics of functional programming in R and Rcpp. Presented during the Vanderbilt University LPO Quantitative Methods Workshop on 31 January 2017.
### Required R libraries
* `dplyr`
* `ggplot2`
* `microbenchmark`
* `readr`
* `Rcpp`
### Contents
|File|Description|Size|
|:--|:--|:--|
|`fp_main.R`|Primary work script|14 KB|
|`dist_func.R`|Distance functions in base R sourced in `fp_main.R`|3 KB|
|`dist_func.cpp`|Distance functions in Rcpp-flavored C++ sourced in `fp_main.R`|3 KB|
|`college_loc.csv`|Lon/lat of US colleges in 2015|530 KB|
|`cbg_loc.csv`|Lon/lat of Census block groups from 2010 US Census|8.4 MB|