Hi, I am looking to import .nexus file in R to analyze it but am facing errors in the import step itself. I tried the following commands and obtained the following error messages.
> file<-read.nexus("hominoid.nex") Error in start:end : NA/NaN argument
>tree<-read.tree("hominoid_apriori.tre") Error in if (tp != "") obj$node.label <- tp : missing value where TRUE/FALSE needed
> file2<-read.nexus("testmodel.nex") Error in X[sb] <- gsub(".*\\]", "", X[sb]) : NAs are not allowed in subscripted assignments In addition: Warning messages: 1: In grep("\\[", X) : input string 26 is invalid in this locale 2: In grep("\\[", X) : input string 231 is invalid in this locale 3: In grep("\\]", X) : input string 26 is invalid in this locale 4: In grep("\\]", X) : input string 231 is invalid in this locale 5: In LEFT == RIGHT : longer object length is not a multiple of shorter object length
The file link,
I will be glad to provide necessary details, kindly advice.
PS: I am able to read the file using read.csv command but not able to perform any operations with it.