Sorry if this is a very basic question but I have not been able to find an answer to my problem.
I have imported my data from an excel file that has 3 sheets using readxl library. So I have 3 data sets in my workspace that I want to put together (I have done that with rbind function).
However I need to create a new variable factor with 3 levels (one for each sheet) to differentiate them in the new data frame created. How can I do this?
Thank you in advance!