Choose one of David Robinson’s tidytuesday screencasts, watch the video, and summarise. https://www.youtube.com/channel/UCeiiqmVK07qhY-wvg3IZiZQ
You must follow the instructions below to get credits for this assignment.
The title of the screencast is “R Trick Using accumulate() from purr to create Pascal’s Triangle.”
It was published March 29, 2020
Well the code function accumulate(letters, paste) gives you the result and then the next value after that in each row. The source of data is accumulate(). Each row is the numbers that add up to make up the Pascal’s Triangle. In a code he combines the row with 0 and combines 0 with the row and adds them together which gives him the next level of the Pascal’s Triangle.
Hint: For example, importing data, understanding the data, data exploration, etc.
Dave approached each step with good understanding and went in order in each step. First, he found out what accumulate() actually does with each row which gives you the result and value of the next row and applied that to the Pascal’s Triangle.
Well in class when we start a r code chunk the first line is always library(purrr) and David did that in this video.
The major finding from the analysis is that when you use the code function accumulate() it gives you the result and then the next value for each row.
I just thought it was interesting how he had such a good understanding of the code function and how quickly he picked up on what accumulate() does to each row once he found out during his first example.