title: How to remove a function from an R script?
body: <p>I made a function <code>mean()</code> taking no arguments. Actually I wanted to calculate mean of some numbers:</p>
  
  <pre><code>mean &lt;- function() {
      ozonev &lt;- data[1]
      mv &lt;- is.na(ozonev)
      mean(ozonev)
  }
  </code></pre>
  
  <p>As there exists a pre-defined function <code>mean()</code> in R, this code is going into recursion. Also, I tried to rename the main function but the previous mean still exists. can any body help me with how to remove that mean function made by me so as to recover the actual functionality of <code>mean()</code>.</p>
  
  <pre><code>&gt; source("solution.R")
  
  &gt; ls()
  
   [1] "colname" "data"    "firtr"   "fsr"     "last"    "mean"    "meano"  
   [8] "missv"   "rowno"   "x"       "y" 
  </code></pre>
  
  <p><code>solution.R</code> is the script and mean is the function. <code>meano</code> is the renamed function.</p>