Search for tag: "consumer issues"

Repeatedly Applying Functions to Data - Part 2 (lapply() and sapply())

While tapply() applies a function to different observations in a vector, which might correspond to rows in a data frame, lapply() and sapply() apply a function to each element of a list. In the case…

From  Daniel Hall 199 plays 0  

Repeatedly Applying Functions to Data - Part 1 (tapply())

The tapply() function is one of several "apply" functions in R that allow a function to operate on data repeatedly. The function tapply() applies a function to groups of observations within…

From  Daniel Hall 172 plays 0