Learn R Programming

Momocs (version 0.2-6)

coo.slide: "Slides" a list or a matrix of coordinates.

Description

coo.slide "slides" coo, i.e. makes the id1 become the first and change the others accordingly.

Usage

coo.slide(coo, id1)

Arguments

coo
A list or a matrix of coordinates.
id1
integer. Specifies the index of the coordinates that has to be defined as the first coordinate.

Examples

Run this code
m <- matrix(1:10, 5, 2)
m
coo.slide(m, 3)

Run the code above in your browser using DataLab