My rowdata in R, as revealed by str() shows that: Variable A is of type character (chr), and variable B is of type numeric.
Variable A has 4 levels representing solutions A, B, C, and D. I used as.factor() to convert A into a factor.
Variable B has 3 levels representing different concentrations of 25, 50, and 75 mmol/L, I used as.factor() to convert B to factor.
The data is normally distributed with homogeneity of variances, I therefore used 2-way ANOVA analysis to assess the influences of variable AB on y (independent).
However, there are 2 strange results on Df and significant after converting types of factor:
there are the codes I used in R.
I first check if they are factor (False) and calculate with 2-way-anova, NO significant.
Secondly, I convert to factor and check again (True). same calculation again: p<0.05!! Df also changed.
is.factor(sheet10$Concentration) #False
is.factor(sheet10$Solution) #False
a1 = aov(AD1 ~ Solution * Concentration, data = sheet10)
summary(a1)
This has left me confused about which analysis approach to trust/use. May please help me to explain?
supplements on experiment and data:
The experiment involved an adsorption test of 5 different samples (S1, S2, S3,S4, S5), each representing a different material, across 4 solutions of A, B, C, and D.
each solution has 3 concentrations of 25, 50, and 75 mmol/l.
replication 2, n=2. resulting in a total of 120 data points.
design of my experiment. each sample has the same design, therefore, there are 120 data points. 


dput(). See also this SO thread. – dipetkov Jan 12 '24 at 14:48