Search for tag: "sapply()"

Chi-square Tests in R.mp4

Chi-square tests are useful for categorical data. They can be used to test whether a vector of probabilities associated with each of several possible outcomes is equal to some null value. That null…

From  Daniel Hall 199 plays 0  

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 200 plays 0