daydemir / resorter

Simpler to install fork of https://www.gwern.net/Resorter#source-code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

resorter

Simpler to install fork of https://www.gwern.net/Resorter#source-code .

For people who have never worked with R scripts before but want to try it out painlessly.

  1. resorter
  2. Usage
  3. Installation + Quickstart
    1. Debian / Ubuntu
    2. macOS

Usage

$ Rscript resorter.r --output out.csv --input in.csv

Comparison commands: 1=yes, 2=tied, 3=second is better, p=print estimates, s=skip, q=quit
Is 'Blinky' greater than 'Clyde'? 1
Is 'Clyde' greater than 'Inky'? 3
Is 'Inky' greater than 'Pinky'? 1
Is 'Pinky' greater than 'Inky'? 3
Is 'Inky' greater than 'Blinky'? 4
Is 'Inky' greater than 'Blinky'? 3
Is 'Clyde' greater than 'Pinky'? 1

Resorting complete
# see out.csv for example results

Installation

PR friendly! If you have instructions for your OS, consider submitting a PR.

Debian / Ubuntu

git clone https://github.com/hiAndrewQuinn/resorter.git
cd ./resorter

# sudo needed the first time to download + compile BradleyTerry package.
sudo apt install r-base cmake

macOS

Install R with Homebrew if needed.

git clone https://github.com/hiAndrewQuinn/resorter.git
cd ./resorter

brew install r

Quickstart

# Capitalization matters.
# This will take a while the first time.
Rscript resorter.r --output out.csv --input in.csv

About

Simpler to install fork of https://www.gwern.net/Resorter#source-code

License:Creative Commons Zero v1.0 Universal


Languages

Language:R 100.0%