norm_compass | R Documentation |
Function used to create data frame for compasses.
norm_compass(x, riket_index = length(x))
x |
Vector, commonly a column in a data frame. |
riket_index |
Index where 'riket'-row exist. |
Normalized vector.
# Normalize data compass_data[,-1] <- apply(compass_data[,-1], 2, norm_compass) # Make sure that the lowest value is the worst value in every column. # If it is reversed, do like this: compass_data$AE90 <- 1 - compass_data$AE90
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.