Error in (1 - h) * qs[i] : non-numeric argument to binary operator
0
0
Entering edit mode
3.1 years ago
arshad1292 ▴ 110

Dear all,

I am new to R and trying to run the time-series analysis using moanin package. I loaded my data and metadata and tried to run the following command to create the model:

moaninObject <- create_moanin_model(data = genusdata, meta = genusmeta, group_variable = "condition", time_variable = "time")

I get the following error:

Error in (1 - h) * qs[i] : non-numeric argument to binary operator

My genusmeta file looks like this:

genusmeta.txt

sample condition time gender
A control X M
B case Y F

and so on...

My genusdata file looks like this:

  A B C D E ....
bacteria 25 97 10 9 101 ...
virus 78 14 95 26 57 ...
fungi 11 406 0 48 67 ...

Please help me solve this issue.

R moanin time-series • 821 views
ADD COMMENT

Login before adding your answer.

Traffic: 2610 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