I have series of variables and values :

```
var1<- "MyVar1"
var2<- "MyVar2"
...
varN<- "MyVarN"

values1 <- c("a","b", "c")
values2 <- c("d","e", "f", "g")
...
valuesN <- c(...) 

```

The number N and the values of varX and valuesX are known at runtime (supplied by the user). 

I need to turn them into a function parameter such as:

```
globalvar = list(MyVar1=c("a","b", "c"), MyVar2=c("d","e", "f", "g"), ... varN=c(...))

```

and then supply it to the function myfunction():

```
myfunction(globalvar = list(MyVar1=c("a","b", "c"), MyVar2=c("d","e", "f", "g"), ... varN=c(...)), other_parameters)

```