In this video we build a function that given two arguments, a square matrix and an initial value, will fill the matrix with numbers in a spiral order.
#### Remark
Since the font size for the code in this video is a bit small I recorded again the video without explanations with a larger font size so it is easier to replicate the code.
You can find the video here:
R Shorts - only code: spiral matrix
• R Shorts - only code: spiral matrix with R
On this page of the site you can watch the video online Write Functions in R: spiral matrix with R || 01 with a duration of hours minute second in good quality, which was uploaded by the user Lab Time with R & Python 14 March 2021, share the link with friends and acquaintances, this video has already been watched 216 times on youtube and it was liked by 9 viewers. Enjoy your viewing!