Learn R Programming

PerMallows (version 1.14)

read.perms: Read a text file with a collection of permutations

Description

This function reads the text file in the specified path and checks if each row is a proper permutation

Usage

read.perms(path)

Value

A collection of permutations in matrix form

Arguments

path

string with a path

Examples

Run this code
path = system.file("test.txt", package="PerMallows")
sample = read.perms(path)

Run the code above in your browser using DataLab