Subset Command can be useful if you know which column you want:
df <- data.frame(q = 2:11, e = 3:12, w = 4:13)
df <- subset(df, select = w(q, w))
Or you can also drop columns using:
df <- subset(df, select = -w(q, w))
Alternatively you can also use drop argument if you want to keep one column as a data frame, for this use:
keeps <- "V"
DF[ , keeps, drop = FALSE]
To drop unnecessary dimensions use drop=True and finally return a vector with the values of column V
Enjoy Learning. Cheers.