table <- data.frame(
Variable_Name = c(
"PassengerId", "HomePlanet", "CryoSleep", "Cabin",
"Destination", "Age", "VIP", "RoomService",
"FoodCourt", "ShoppingMall", "Spa", "VRDeck",
"Name", "Transported"
),
Type_of_Variable = c(
"Character", "Character", "Character", "Character",
"Character", "Numeric", "Character", "Numeric",
"Numeric", "Numeric", "Numeric", "Numeric",
"Character", "Character"
),
Level_of_Measurement = c(
"Nominal", "Nominal", "Nominal", "Nominal",
"Nominal", "Ratio", "Nominal", "Ratio",
"Ratio", "Ratio", "Ratio", "Ratio",
"Nominal", "Nominal"
)
)
library(knitr)
kable(
table,
caption = "Table 1: Variable Types and Levels of Measurement for the Spaceship Titanic Dataset"
)