Learn R Programming

Momocs (version 0.1-01)

cont.sample: Samples points along a list of $(x; y)$ coordinates.

Description

Given a list of $(x; y)$ coordinates, samples equidistant points along this outline.

Usage

cont.sample(coo, n)

Arguments

coo
the Coo object
n
integer indicating the number of points to sample

Value

  • Returns a, usually shortened, list of {eqn(x; y)} coordinates.

Examples

Run this code
fake <- list(x=1:100, y=101:200)
cont.sample(fake, 10)

Run the code above in your browser using DataLab