Heart | R Documentation |
This dataset contains information about heart disease diagnosis, including various clinical attributes and the presence of heart disease in patients. The dataset is commonly used for classification tasks to predict the presence of heart disease.
data(Heart)
A data frame with multiple rows and 14 columns representing different features related to heart disease diagnosis.
age
: Age in years (integer).
sex
: Sex (1 = male; 0 = female) (categorical).
cp
: Chest pain type (categorical).
trestbps
: Resting blood pressure (in mm Hg on admission to the hospital) (integer).
chol
: Serum cholesterol in mg/dl (integer).
fbs
: Fasting blood sugar > 120 mg/dl (1 = true; 0 = false) (categorical).
restecg
: Resting electrocardiographic results (categorical).
thalach
: Maximum heart rate achieved (integer).
exang
: Exercise-induced angina (1 = yes; 0 = no) (categorical).
oldpeak
: ST depression induced by exercise relative to rest (integer).
slope
: The slope of the peak exercise ST segment (categorical).
ca
: Number of major vessels (0-3) colored by fluoroscopy (integer).
thal
: Thalassemia (3 = normal; 6 = fixed defect; 7 = reversible defect) (categorical).
num
: Diagnosis of heart disease (angiographic disease status) (integer).
# Load the dataset
data(Heart)
# Print the first few rows of the dataset
print(head(Heart))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.