Skip to content

Instantly share code, notes, and snippets.

@toyeiei
Last active February 5, 2019 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toyeiei/373be73170c8e67945609b9d21d2c65b to your computer and use it in GitHub Desktop.
Save toyeiei/373be73170c8e67945609b9d21d2c65b to your computer and use it in GitHub Desktop.
# add ID and models columns to mtcars
mtcars$ID <- 1:32
mtcars$models <- rownames(mtcars)
# create another ID dataframe
customers <- data.frame(ID = 1:10,
cust_name = LETTERS[1:10],
year = 2010:2019)
# see first six rows of customers
head(customers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment