Skip to content

hiAndrewQuinn/resorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Gwern further notes:

As with any user-installed language, you may run into compile errors while installing dependencies.

Look for a missing C library to install system-wide as root, or see if your package manager provides one of the dependencies already as a precompiled binary, so you can apt-get install r-cran-bradleyterry2 or apt-get install r-cran-lme4 to bypass any compile errors.

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. You may need `sudo` / admin privileges.
Rscript resorter.r --output out.csv --input in.csv

Releases

No releases published

Packages

No packages published

Languages