Skip to content

DSCI-310/2024-02-13-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2024-02-13-scripts

In-class live coding session for DSCI 310

To set up the environment and download the data

R

install.packages(c("tidyverse", "docopt"))

Python

pip install click

Data

curl https://raw.githubusercontent.com/ttimbers/rscript-demo/main/data/titanic.csv -o data/titantic.csv
curl https://swcarpentry.github.io/r-novice-gapminder/data/gapminder-FiveYearData.csv -o data/gapminder.csv

Running the code examples:

Rscript src/01-print_mean_hp.R
Rscript src/02-titanitc_script.R fare
Rscript src/03-rds.R
Rscript src/04-two_inputs.R data/titanic.csv fare
Rscript src/05-positional.R --file_path=data/titanic.csv --var=fare
python src/cli.py 10 42
python src/cli2.py --num1=10 --num2=400

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published