5 changed files with 21 additions and 20 deletions
@ -1,6 +1,6 @@ |
|||
{ |
|||
"source_window_id": "", |
|||
"Source": "Source", |
|||
"cursorPosition": "291,28", |
|||
"scrollLine": "223" |
|||
"cursorPosition": "8,11", |
|||
"scrollLine": "0" |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
# Function to get mode |
|||
getmode <- function(v) { |
|||
uniqv <- unique(v) |
|||
uniqv[which.max(tabulate(match(v, uniqv)))] |
|||
} |
|||
|
|||
# Function to return length of unique |
|||
|
|||
lenun <- function(x) { |
|||
length(unique(x)) |
|||
} |
|||
Loading…
Reference in new issue