Description Usage Arguments Value See Also Examples
It transform labeled data in polygonal datas.
1 | ptransform(data, vertices)
|
data |
A data frame with the first column of type factor. |
vertices |
integer that represent number of vertices of polygon. |
A list of matrices of dimension l x 2, where l represent number of vertices polygon transformed.
1 2 3 4 | cat <- as.factor(sample(1:20, 1000, replace = TRUE))
cv <- runif(1000) #classical variable
cvc <- data.frame(category = cat, cv)
p <- ptransform(cvc, 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.