SOURCEBOOK

R | Data Entry

One Sample Data

In the steps below, the commands should be typed directly into the R console window.

Entering Data

Enter the data in a vector that assigns a variable name.

Outcome <- c(0,0,3,5,4,7,4,9)

Viewing Data

Create and display a data frame to view the data set.

OneSampleData <- data.frame(Outcome)
OneSampleData