Error in FUN(left, right) : non-numeric argument to binary operator in RStudio
1
0
Entering edit mode
3.0 years ago
Dimaris • 0

Hello

I'm having a problem that I get the message

Error in FUN(left, right) : non-numeric argument to binary operator in R

This is the code that I'm using for my data

library(vegan)
logespecies2mm <- log(especies2mm+1)

I really appreciate all the help, I have the script if you want more detail but the main goal is that I want to do a RDA graph analysis in two sampling times to answer a question in correlation sorting (sand particles grain size) with the abundance of two main groups bivalves and gastropods. Also I been trying to transform the data without using log, instead use hellinger transformation but in my RStudio it says hellinger object error not found in R. Really appreciate all the help

rstudio • 2.9k views
ADD COMMENT
0
Entering edit mode

You really think people can troubleshoot this without knowing anything at all about what's in the especies2mm object?

ADD REPLY
0
Entering edit mode
3.0 years ago
ATpoint 81k

Your data.frame is not of type double (numeric) or integer so you cannot apply a mathematical / log transformation function:

> log2(data.frame(A="A")+1)
Error in FUN(left, right) : non-numeric argument to binary operator

https://stackoverflow.com/questions/2288485/how-to-convert-a-data-frame-column-to-numeric-type

ADD COMMENT

Login before adding your answer.

Traffic: 2917 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6