Error while performing linear regression
<p>I am trying to perform Linear Regression on the below data:-</p>

<p>Need to perform Linear Regression on Air_weight and Water_weight.</p>

<p>Kindly let me know how to resolve this error.</p>

<p>This is the code i tried but got an error:-</p>

<pre><code>fit &lt;- lm(Water_Weight~Air_Weight, data=table1)
</code></pre>

<p><img src="https://i.stack.imgur.com/Gzgcf.png" alt="This is the data screenshot"></p>

<p>Error</p>

<pre><code>**Warning messages:
1: In model.response(mf, "numeric") :
  using type = "numeric" with a factor response will be ignored
2: In Ops.factor(y, z$residuals) : ‘-’ not meaningful for factors**



ID  GENDER  Air_Weight    Water_Weight  Body_Fat
01  1       75.60               *        14.17 
02  1       70.70              3.60      13.95 
03  1         *                4.00      8.98 
04  1       95.00              4.30      17.32   
05  1       73.20              3.80      11.50 
</code></pre>