I am trying to create a function that will select columns in DF based on their position. I will always need the first column and then a subset of DF. I have 1 object for each subset I need to select.
So far I have tried the following:
position <- "1,28:31" DF %>% select_(.dots = position)
but I get the following error: Error in parse(text = x) : <text>:1:2: unexpected 'x'
It would seem that the problem is separating the comma at the column position.
Is there a workaround?
source share