Each row = one observation, each column = one variable:
PatientID | Age | EyePressure | Diagnosis |
---|---|---|---|
001 | 45 | 21.5 | Normal |
002 | 53 | 27.3 | Glaucoma Suspect |
003 | 60 | 30.1 | Glaucoma |
_
) or camelCase.Bad: 1st Measure, Eye Pressure!, #Diagnosis
Good: first_measure, eye_pressure, diagnosis
Unmerge all cells. Each cell should contain one value only.
Use only one header row. Do not include titles or notes above it.
Delete any blank rows or columns in your spreadsheet.
If using formulas, copy and paste as values before saving.
File → Save As → CSV (Comma delimited) (*.csv)
Remove colors, comments, hyperlinks, and images.
data <- read.csv("your_file.csv")
head(data)
str(data)
This helps verify correct import and data types.