search for: col_02

Displaying 4 results from an estimated 4 matches for "col_02".

Did you mean: col_01
2020 Oct 31
2
fast way to find most common value across columns dataframe
...cter (apart for ties...). But I think this will be very slow and memory consuming. Is there a way to run it more efficiently? Thank you ``` V = c("A", "B", "C", "D") df = data.frame(n = 1:10, col_01 = sample(V, 10, replace = TRUE, prob = NULL), col_02 = sample(V, 10, replace = TRUE, prob = NULL), col_03 = sample(V, 10, replace = TRUE, prob = NULL), col_04 = sample(V, 10, replace = TRUE, prob = NULL), col_05 = sample(V, 10, replace = TRUE, prob = NULL), stringsAsFactors = FALSE) q = vector() for(i in 1:nrow(df)) { x...
2020 Oct 31
0
fast way to find most common value across columns dataframe
...ill be > very slow and memory consuming. > Is there a way to run it more efficiently? > Thank you > > ``` > V = c("A", "B", "C", "D") > df = data.frame(n = 1:10, > col_01 = sample(V, 10, replace = TRUE, prob = NULL), > col_02 = sample(V, 10, replace = TRUE, prob = NULL), > col_03 = sample(V, 10, replace = TRUE, prob = NULL), > col_04 = sample(V, 10, replace = TRUE, prob = NULL), > col_05 = sample(V, 10, replace = TRUE, prob = NULL), > stringsAsFactors = FALSE) > > q = vector...
2020 Oct 31
2
fast way to find most common value across columns dataframe
...ng. > > Is there a way to run it more efficiently? > > Thank you > > > > ``` > > V = c("A", "B", "C", "D") > > df = data.frame(n = 1:10, > > col_01 = sample(V, 10, replace = TRUE, prob = NULL), > > col_02 = sample(V, 10, replace = TRUE, prob = NULL), > > col_03 = sample(V, 10, replace = TRUE, prob = NULL), > > col_04 = sample(V, 10, replace = TRUE, prob = NULL), > > col_05 = sample(V, 10, replace = TRUE, prob = NULL), > > stringsAsFactors = FALSE)...
2020 Oct 31
0
fast way to find most common value across columns dataframe
...to run it more efficiently? >> > Thank you >> > >> > ``` >> > V = c("A", "B", "C", "D") >> > df = data.frame(n = 1:10, >> > col_01 = sample(V, 10, replace = TRUE, prob = NULL), >> > col_02 = sample(V, 10, replace = TRUE, prob = NULL), >> > col_03 = sample(V, 10, replace = TRUE, prob = NULL), >> > col_04 = sample(V, 10, replace = TRUE, prob = NULL), >> > col_05 = sample(V, 10, replace = TRUE, prob = NULL), >> > stringsAsF...