R Script : "Error: (list) object cannot be coerced to type double"
<p>I am facing a issue while doing R Script in Azure MIL and error is
i.e. "Error: (list) object cannot be coerced to type double"</p>

<p>My code is</p>

<pre><code>dataset1 &lt;-maml.mapInputPort(2)
dataset3 &lt;-maml.mapInputPort(1)
Z &lt;- as.numeric((dataset3),stringsAsFactors=TRUE)
Y &lt;- mdBinaryDesign(Z,4,dataset1)
Y.aggregate=mdBinaryToAggregateDesign(Y)
survey.design=mdDesignNames(Y.aggregate, dataset1)
data.set &lt;- as.data.frame(survey.design)
maml.mapOutputPort("data.set")
</code></pre>

<p>The issue in coming while assigning value to Z variable. dataset3 has simple numeric data i.e. "5" , which acts as a input to my model.</p>

<p><a href="https://i.stack.imgur.com/YwVDR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YwVDR.png" alt="enter image description here"></a></p>