Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

R new column t test p-value

data$PValue = apply(data, 1, function(x) t.test(x[1:3], x[4:6])$p.value)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #R #column #test
ADD COMMENT
Topic
Name
3+3 =