Skip to content

Commit

Permalink
commented out time tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigOlsen committed Jan 28, 2017
1 parent d88fae9 commit 78546ae
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions R/l_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,17 @@ l_sizes <- function(v, n, fixed = FALSE){

}

system.time(

for (i in 5:100){

a <- l_sizes(c(1:i), c(0.1,0.4,0.5), fixed = FALSE)
}
)

system.time(l_sizes(c(1:20), c(0.2, 0.2, 0.2), fixed = TRUE))

# Create a balanced partition() function
# system.time(
#
# for (i in 5:100){
#
# a <- l_sizes(c(1:i), c(0.1,0.4,0.5), fixed = FALSE)
# }
# )
#
# system.time(l_sizes(c(1:20), c(0.2, 0.2, 0.2), fixed = TRUE))
#
# # Create a balanced partition() function

partition <- function(data, p, cat_col = NULL,
id_col = NULL, fixed = FALSE) {
Expand Down

0 comments on commit 78546ae

Please sign in to comment.