# NOT RUN {
# Example
# Create some data
data <- data.frame(V1=sample(as.factor(c('yes','no')), 200000, TRUE),
V2=sample(as.character(c(1,2,3,4,5)),200000, TRUE),
V3=sample(1:20000,200000, TRUE),
V4=sample(300:1000, 200000, TRUE),
V5 = sample(as.Date(as.Date('2014-12-09'):Sys.Date()-1,
origin = "1970-01-01"),200000,TRUE),
ID=sample(x = as.character(1:4), size = 200000, replace = TRUE))
Aggregate(x=data,by='ID')
# Examples of how to use the object and p argument. See dummy and categories function for details.
# Aggregate(x=data,by='ID',object=categories(data))
# Aggregate(x=data,by='ID',p=2)
# }
Run the code above in your browser using DataLab