Learn R Programming

PerMallows (version 1.8)

read.permutation.file: 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.permutation.file(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.permutation.file(path)

Run the code above in your browser using DataLab