One function that I designed can produce a data frame is as follows: (This feature alters the entire environment!)
If y >= 11, halt abc by saying "Noooooooooooooooooooooooooope!"
value for is NA (i in 1:10) { a=2+i\s b=3
value[i] = (x + a)* (b + y)
df=data.frame(ID=(1:10),Value=(value))
View(df) assign("df",df,envir =.GlobalEnv)
abc(2,9)
A data frame created by this function looks like this:
Identifier Value 1 1 135 2 2 162 3 3 189 4 4 216 5 5 243 6 6 270 7 7 297 8 8 324 9 9 351 10 10 378
However, I now need to make a "large" data frame with extra columns. For arguments a, b, c, and d, respectively,.... abc (13,9). The updated data frame will appear as follows:
ID Number Value1 Value2 Value3... 1 1 108 135... 2 2 135... 3 3 162... 4 4 189... 216