Calculates the distance matrix of observations with circular variables using
an adapted version of Gower's distance. This distance should be compatible
with the Gower's distance for other variable types.
Usage
circ_dist(frame)
Arguments
frame
A data frame with all columns are circular measured in degrees.
Value
Object of class "dist".
Details
The distance between two observations i and j of a circular variable q
is suggested to be
# NOT RUN {# Make a sample data set of 20 observations with 2 circular variablesdata <- data.frame(var1 = sample.int(359, 20),
var2 = sample.int(359, 20))
circ_dist(data)
# }