I have written a script that does a number of calculations. This script needs 10 values for a calculation. Strings, Dates and numbers.
Alpha <- "Test"
Beta <- "B"
Gamma <- "C"
Delta <- "D"
Date_Low <- "03.02.2009"
Low <- 0.57100
Hoch <- 0.97900
Date_High <- "10.10.2010"
Grid <- 5
Parm <- 1000
In the csv file I have the headline in the first line and then 34 rows. Here's an example
"Alpha","Beta","Gamma","Delta","Date_Low","Low","High","Date_High","Grid","Parm"
"Test","B","C","D","09.08.2012","0.57100","0.97900","18.12.2008","5","1000"
I want to import the csv.
data <- read.csv("data.csv", header = TRUE)
How do I read the csv file correctly and is a foreach loop the right choice? How do I pass the values to the function? Is it possible to help with some lines of code?