Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)


What I have tried:

I have tried converting the fields to numeric and remove all duplicates
Posted
Updated 13-Jan-22 19:28pm

1 solution

This error occurs mostly due to non numeric values present in the table.

Please check this as it explains a bit detail with real example

r - Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1) - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900