Skip to content

Instantly share code, notes, and snippets.

@nilforooshan
Created March 18, 2024 00:12
Show Gist options
  • Save nilforooshan/117bcbb3023d4ccb8f57d0afaa67179d to your computer and use it in GitHub Desktop.
Save nilforooshan/117bcbb3023d4ccb8f57d0afaa67179d to your computer and use it in GitHub Desktop.
R: Get colClasses of a data.frame

Get colClasses of a data.frame

sapply(iris, class)
Sepal.Length  Sepal.Width Petal.Length  Petal.Width      Species 
   "numeric"    "numeric"    "numeric"    "numeric"     "factor"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment