Skip to content

Instantly share code, notes, and snippets.

@trcook
Created April 3, 2013 13:58
Show Gist options
  • Select an option

  • Save trcook/5301419 to your computer and use it in GitHub Desktop.

Select an option

Save trcook/5301419 to your computer and use it in GitHub Desktop.
Get class for all vars in data.frame
sapply(names(ds2),function(x){
eval(substitute(class(ds2$x),env=list(x=x)))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment