Hofstadter Figure-Figure sequences: Difference between revisions
m
→{{header|R}}
ReeceGoding (talk | contribs) (→{{header|R}}: Made the final task's output much more explicit.) |
ReeceGoding (talk | contribs) m (→{{header|R}}) |
||
Line 2,236:
invisible(ffs(960))
#In R, "the first 40 values of ffr plus the first 960 values of ffs" can easily be misread.
#rValues[1:40]+sValues[1:960] is valid R code. It will duplicate the first 40 rValues
#times, append them to the original, and add that vector to the first 960 sValues.
#Presumably, the task wants us to append rValues[1:40] and sValues[1:960].
print(table(c(rValues[1:40], sValues[1:960])))</lang>
|