# generate variables dynamically
lapply(letters, function(x){assign(x=x, value=rnorm(1), env=globalenv())})
if (FALSE) {
# simple usage
save.var()
# specify a listof variables with tag
save.var(varlist=c("a","e","i","o","u"), newdirtag="just_vowels")
}
Run the code above in your browser using DataLab