Hi,
I have a table of 16SrRNA counts, rowa=samples columns=bacteria
> head(otus[,1:5])
Class_Thermobacula Class_Anaerolineae Class_Chlorobia Class_Deinococci
IPC001 NA NA NA NA
IPC002 3.17e-05 0.00e+00 0e+00 0
IPC003 0.00e+00 0.00e+00 2e-05 0
IPC005 0.00e+00 1.31e-05 0e+00 0
IPC007 NA NA NA NA
IPC008 0.00e+00 1.45e-05 0e+00 0
IPC001 NA
IPC002 0.006243463
IPC003 0.000519667
IPC005 0.001062978
IPC007 NA
IPC008 0.000607156
I am going to extract principal components (PC) but whatever I tried to calculate
# get Bray-Curtis distances (default for Vegan)
d.bray <- vegdist(otus)
saying that
Error in base::colMeans(x, na.rm = na.rm, dims = dims, ...) : 'x' must be numeric
I tried to removed NA by
otus[,!is.na(otus$phenotype)] or otus[!is.na(otus$phenotype),]
but everything will be removed
what is your suggestion please?
Says that it is principal coordinates