Skip to content

Commit

Permalink
Fixed bug in complexity()
Browse files Browse the repository at this point in the history
  • Loading branch information
n3ssuno committed Apr 28, 2018
1 parent fbbd976 commit ea2e3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/complexity.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ complexity <- function(data, geo_dim, kng_dim, kng_nbr, time_dim = NULL,
colnames(CI) <- c(geo_dim, time_dim, "Complexity")

if (scale == TRUE) {
CI[, 2] <- scale(CI[, 2])
CI[, "Complexity"] <- scale(CI[, "Complexity"])
warning('The values of the index have been standardised.')
}

Expand Down

0 comments on commit ea2e3a3

Please sign in to comment.