Learn R Programming

PerMallows (version 1.13)

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

Description

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

Usage

read.perms(path)

Arguments

path
string with a path

Value

A collection of permutations in matrix form

Examples

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

Run the code above in your browser using DataLab