Learn R Programming

psda (version 1.4.0)

ptransform-deprecated: Polygon data transformation

Description

It transform labeled data in polygonal datas.

Usage

ptransform(data, vertices)

Arguments

data

A data frame with the first column of type factor.

vertices

integer that represent number of vertices of polygon.

Value

A list of matrices of dimension l x 2, where l represent number of vertices polygon transformed.

See Also

psda-deprecated

Examples

Run this code
# NOT RUN {
cat <- as.factor(sample(1:20, 1000, replace = TRUE))
cv <- runif(1000) #classical variable
cvc <- data.frame(category = cat, cv) 
p <- ptransform(cvc, 4)
# }

Run the code above in your browser using DataLab