User Tools

Site Tools


subsampling

Given a dataframe, select specific column

data[,c("Campaign","Adgroup","Keyword")]

Otherwise, subsample on some criteria:

samplesub = subset(sample, sample$Column <= 2000 )

Or on a specific value:

data <- subset(data, data$Device=='Mobile devices with full browsers')

Withing a range:

x.sub <- subset(x.df, y > 2)
subsampling.txt · Last modified: 2016/11/04 11:21 by vincenzo