DataFrame Visualization

rm(list = ls()) # clear the workspace
install.packages('ISLR')
library(tidyverse)
library(ggplot2)
library(e1071) #library needed to use Naive Bayes algorithm, svm algorithm
library(rpart) #Decision Tree
library(rpart.plot)
library(randomForest)

library(pROC) #ROC curve for analysis

hotel_data <- read_csv("Hotel_Booking.csv")

This is the code i am typing but when i want to see the data, number of columns is one 1, where as there are 32 columns

You haven't specified the path in your call to read_csv(); is your .csv file in the current working directory? It is difficult to troubleshoot your problem since you haven't provided a reprex.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.