# Creating a data frame with different data types df2 <- data.frame( ID = 1:4, Score = c(85.5, 90.3, 78.4, 88.9), Passed = c(TRUE, TRUE, FALSE, TRUE), stringsAsFactors = FALSE ) # Displaying the data frame print(df2)