Skip to content

Instantly share code, notes, and snippets.

@VladimirSaz
VladimirSaz / data_frame.R
Last active August 29, 2015 14:01 — forked from prasoonsharma/gist:717903
data.frame operation in R
# DATA FRAME OPERATIONS IN R
# Create data frame
# A dataset is ~ table (list of vectors)
id <- c(1,2,3)
name <- c("John", "Kirk", "AJ")
age <- c(21,27,18)
employees <- data.frame(ID=id, Name=name, Age=age)
employees