I have a very simple question. I know there is a command in R to "reconstruct" a given dataframe. In this way, if (for instance) I directly constructed a dataframe in R I can avoid sending all the lines of code, or if I constructed the dataframe subsetting from other dataframes I can avoid sending all the files. For instance, for a dataframe like this:
year<-as.data.frame(c(1900:1905))
name<-as.data.frame(LETTERS[1:6])
sex<-as.data.frame(rep(c("M","F"),3))
example_df<-as.data.frame(bind_cols(year,name,sex))
colnames(example_df)<-c("year","name","sex")
the command_i_am_searching_for would give me the structure, in the form of example_df<-c(c(1900_1905),LETTERS[1:6])...and so on
I cannot find this command anywhere. Do you know which command it is?