Error saying I have NA/NaN/Inf value when there seems to be none present. Error in hclustfun(distc) : NA/NaN/Inf in foreign function call (arg 11)
Check this row:
ConfP <- Conf.t/rowSums(Conf.t)
It must be evaluating essentially to division by zero:
> 0/0
[1] NaN
> 1/0
[1] Inf
How to run vegan::varpart without having this NA/NaN/Inf in foreign function call (arg 1) message error?
varpart
performs variation partition, and for that it needs at least two variables for which to partition the variation. You had only one (Session
) – the second one you supplied (LONG
) was constant, and hence will explain no variation and was not counted as a variable. We do not check against non-varying "variables", and you get a confusing error message. However, if you are hand-crafting your model with meaningless (constant) "variables", you should expect weird error messages. We could add a test against constants, but somehow it feels strange.
Related Topics
Unknown Timezone Name in R Strptime/As.Posixct
Align Two Data.Frames Next to Each Other with Knitr
Dictionary() Is Not Supported Anymore in Tm Package. How to Emend Code
Rjava Linker Error Licuuc with Anaconda & Fopenmp Error Without Anaconda for MACos Sierra 10.12.4
Finding Overlapping Ranges Between Two Interval Data
Different Axis Limits Per Facet in Ggplot2
Determine Level of Nesting in R
Dplyr Rowwise Sum and Other Functions Like Max
Keeping Only Certain Rows of a Data Frame Based on a Set of Values
How to Keep Midnight (00:00H) Using Strptime() in R
How to Select Non-Numeric Columns Using Dplyr::Select_If
Format Ttest Output by R for Tex
Extract Digit from Numeric in R
R Xml - Combining Parent and Child Nodes into Data Frame
Finding Euclidean Distance in R{Spatstat} Between Points, Confined by an Irregular Polygon Window
How to Write Contents of Help to a File from Within R
Devtools::Install_Github() - Ignore Ssl Cert Verification Failure
All Possible Combinations of a Set That Sum to a Target Value