python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to write Cramer-Von Mises p-values loop?
I have this matrix called matrix_1:
c1 c2 c3 c4 c5
R1 27 38 94 40 4
R2 69 16 85 2 15
R3 30 35 64 95 6
R4 20 33 77 98 55
R5 20 44 60 33 89
R6 12 88 87 44 38
I wo...
aurelius_37809
Votes: 0
Answers: 1
How to write Anderson-Darling Test p-values loop?
I have this matrix called matrix_1:
c1 c2 c3 c4 c5
R1 27 38 94 40 4
R2 69 16 85 2 15
R3 30 35 64 95 6
R4 20 33 77 98 55
R5 20 44 60 33 89
R6 12 88 87 44 38
I wo...
aurelius_37809
Votes: 0
Answers: 1
sapply over vector for each element in a list
I have a large list that includes extracted terms from a corpus.
mylist <- list(c("flower"),
c("plant", "animal", "cats", "doggy&quo...

ayeh
Votes: 0
Answers: 1
Custom function to replace duplicates with NA does not work
This is my function:
my_func <- function(x){
ifelse(duplicated(x), NA_real_, first(x))
}
I want to apply it to this vector:
vector <- c(1,1,1,3,3,3)
[1] 1 1 1 3 3 3
My expected output:
[1]...

TarJae
Votes: 0
Answers: 1