title: Running different R functions from different R Script files
body: <p>I would like to know how to run different functions from different R script files.</p>
  
  <p>For example, in <code>Main.R</code>:</p>
  
  <pre><code>source("Database.R")
  msci_data &lt;- getIndex() #function from Database.R
  
  source("Positions.R")
  current_positions &lt;- getPositions() #function from Positions.R
  </code></pre>
  
  <p>I realized after running <code>getPositions()</code> method , my <code>msci_data</code> data frame gets deleted. Is there anyway I can call multiple functions from two different source files?</p>
  
  <p>Thanks very much</p>