Skip to content

Instantly share code, notes, and snippets.

@toyeiei
Last active Feb 5, 2019
Embed
What would you like to do?
# 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