dataframename <- data.frame(
col1=1:10,
col2=10:1,
col3=1:50,
col4=11:20
)
Consider the above dataframe and I want to remove column 1 and column 4.
1. Without using any package.
2. The answer should be in dataframe format only and not vector results.