CLiREN-LMS
Introduction to R for Clinical Data Management

Inspecting Data with glimpse, summary, head, names, and dim

Table 1

30-45 minutes Applied Step 6 of 12
Table

Table 1

6 / 12
Table

Table 1

FunctionWhat it showsData management question
`glimpse(data)`Column names, types, and example valuesWere variables imported with plausible types?
`summary(data)`Basic summaries by variableAre there obvious impossible values or excessive missingness?
`head(data)`First rows of the datasetDoes the file look like the expected data export?
`names(data)`Column namesAre key variables present and named as expected?
`dim(data)`Number of rows and columnsDoes the dataset have the expected size?
`str(data)`Base R structure displayWhat is the internal structure of the object?