jmaccherone

Results 28 issues of jmaccherone

as() performs a type coercion: in other words it changes one type to another type. lapply() applies a function onto all of the elements of a list. In the command...

Returns the min and max values range(5 4 3 2 1) returns 1 5

Used to import data. read.DIF() for Windows machines, read.table() for Macs. Can use with clipboard and assign to data frame as a way to import. variableName

Returns a breakdown of the data. If the mode is numbers, breaks down into quartiles, if the mode is text, count of the different labels. If you have the data.frame...

Returns a random sample from a population. Called with three arguments: sample(dataSource, size=16, replace=TRUE) Can be nested as in: mean(sample(Population$V1, size=15, replace=TRUE)

Function that allows you to specify where to cut the data. Takes 2 parameters - data source and at which percentages to show cuts. quantile(SampleMeans, probs=c(0.15, 0.85)) to show quartiles,...

The data.frame() function takes a list (of columns) where each element in the list is a vector (data set). Each vector is the same length. myFamily

Produces a histogram graphic. Can be called with the "breaks" parameter. hist(variableName, breaks=20)

The str() function reveals the structure used to store a data object. It returns output such as 'data.frame" with details about number of "observations" (cases or instances), variables, "Factors"(labels of...

> for (i in 1:15) {points(DelayProbability(rpois(100,10),1,20))} Runs code in the braces.