Hello. All help is appreciated!
I know that I can create a new column in a dataframe and fill it with values. For example:
df$Day <- “Monday”
This will fill the newly added “Day” column with “Monday” for the extent of the dataframe.
How do I specify values by row index?
For example say that I want “Monday” for rows 1:3, “Tuesday” for rows 4:5, “Wednesday” for rows 6:10, etc.