Skip to content

Instantly share code, notes, and snippets.

@prasoonsharma
Created November 26, 2010 03:43
Show Gist options
  • Save prasoonsharma/716254 to your computer and use it in GitHub Desktop.
Save prasoonsharma/716254 to your computer and use it in GitHub Desktop.
Atomic data types in R
# Atomic data types in R
# Character
name <- "Kirk"
# Integer data type
age <- 25
# Numeric data type
hourly_wage <- 27.25
# Factor
office <- factor("NYO", levels = c("NYO", "MUM", "SYD"))
# Boolean
married <- TRUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment