Skip to content

Instantly share code, notes, and snippets.

@verajosemanuel
Created November 14, 2018 15:51
Show Gist options
  • Save verajosemanuel/42755e9a6e75bf5bdddedaeae6c24139 to your computer and use it in GitHub Desktop.
Save verajosemanuel/42755e9a6e75bf5bdddedaeae6c24139 to your computer and use it in GitHub Desktop.
get #column #index #position by #name in #R #dataframe
grep("^name$", colnames(df))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment