title: R: Change every 5th value in a column in a data frame
body: <p>I have a data frame uploaded from excel with 10 columns and 100 rows, and all the data is 0. Now I would like to change every 5th value in the second column to 1. Is this possible? If so, how?</p>