I am struggling with some basic R.
I want to do unpaired T-test directional and am getting an error:
Ttest1 <- matrix(1.3, "PDGFB", 0.4,"PDGFB", 0.5, "PDGFB", 1.2, "PDGFB", 3.9, "CXCR4",1.7,"CXCR4",1.2,"CXCR4",1.5,"CXCR4",1.9,"CXCR4",ncol=2,byrow=TRUE)
colnames(Ttest1) <- c("Level","Genotype")
Ttest1 <- as.data.frame(Ttest1)
Ttest1$Level<-as.numeric(Ttest1$Level)
t.test(Ttest1$Level~Ttest1$Genotype)
Getting this error: Error in if (stderr < 10 * .Machine$double.eps * abs(mx)) stop('data are essentially constant') : missing value where TRUE/FALSE needed In addition: Warning messages: 1: In mean.default(x) : argument is not numeric or logical: returning NA 2: In var(x) : NAs introduced by coercion
All help appreciated