Suppose I have thousands of columns in "mydf". How can I cbind
"new" column next to specific column name in "mydf". For example, I want to cbind
it next to column "C" (by column name and not by number) and get the "Result".
mydf
A B C D
1 3 4 5
1 3 3 2
2 4 4 6
3 4 6 7
new
3
3
3
4
Result
A B C new D
1 3 4 3 5
1 3 3 3 2
2 4 4 3 6
3 4 6 4 7