I have been getting the same error as #32 , but this time for continuous traits. If I decrease the no. of traits to >20 then the function runs. Otherwise, it gives an error-
error-
p_BM <- phylopars(trait_data = functions3,tree = tree,model = "BM") Error in tp(L = X, R = R, Rmat = as.matrix(Rmat), mL = ncol(X), mR = 1, : Not compatible with requested type: [type=character; target=double].
Hey @ericgoolsby
I have been getting the same error as #32 , but this time for continuous traits. If I decrease the no. of traits to >20 then the function runs. Otherwise, it gives an error-
error- p_BM <- phylopars(trait_data = functions3,tree = tree,model = "BM") Error in tp(L = X, R = R, Rmat = as.matrix(Rmat), mL = ncol(X), mR = 1, : Not compatible with requested type: [type=character; target=double].
files- https://github.com/Jigyasa3/errors/blob/master/above500_tpm_mainfunctions_NAvalues.csv https://github.com/Jigyasa3/errors/blob/master/500bps_termitetree.nwk
code that I am running- `func<-read.csv("above500_tpm_mainfunctions_NAvalues.csv",row.names=1) tree<-read.tree("500bps_termitetree.nwk")
library(Rphylopars) p_BM <- phylopars(trait_data = func,tree = tree,model = "BM") `