Use the map_df
function to create a data frame with three columns named
n
, s_n
, and s_n_2
. The first column should contain the numbers 1
through 100. The second and third columns should each contain the sum of
1 through n
with n
the row number. Save the resulting object in s_n_df
.
Note: Don’t forget to read chapter 4.131