search for: unislopes

Displaying 1 result from an estimated 1 matches for "unislopes".

2010 Apr 12
2
SAS like Macro variable substituion?
I'd like to use a string to refer to an R object with the end objective of going through a loop and saving various files of the same name with different contents using a numbered suffix. # This will be the loop counter and file suffix. master.i <- 1 # This is the generic file name. unislopes <- c(1,2,3) # This assigns the data to the correct file name "unislopes1". assign(paste("unislopes",master.i,sep=""),unislopes) # This is the problem. The first parameter of the "save" function requires an R object which I'm not sure how to referenc...