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