Converting whole R Markdown chunk to function with one variable

Lets say I have chunk with length around 150 lines with dozen of different functions and and for loops inside of it and I would like to rerun the chunk again with only one variable changed. Does R have a solution for it or I just have to rewrite the whole chunk to a function?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.