4.2 A first look at your data
You can use the names()
function to see a list of variables (names and column number) in your data frame.
Use the head()
function to preview the first rows of a data frame.
To view the entire data frame, either click on the object in the “Data” window or use View()
.
names(dcps) # identify variable names
## [1] "SchCode" "SchName" "SchType"
## [4] "NumTested" "ProfLang" "ProfMath"
## [7] "DataVERSION"
head(dcps) # see the first few rows of data
## # A tibble: 6 x 7
## SchCode SchName SchType NumTested ProfLang ProfMath
## <dbl> <chr> <fct> <dbl> <dbl> <dbl>
## 1 202 Aiton ~ Elemen~ 72 5.56 15.3
## 2 203 Amidon~ Elemen~ 147 16.3 10.1
## 3 450 Anacos~ High 67 4.48 1.43
## 4 452 Ballou~ High 180 2.78 0.498
## 5 204 Bancro~ Elemen~ 213 34.3 39.9
## 6 205 Barnar~ Elemen~ 224 38.4 39.7
## # ... with 1 more variable: DataVERSION <chr>