I am trying to import AirPassengers.csv (3.2 KB) into R using read.table function.
inputFile <- read.table(file.choose() , header = T , sep = “,”)
This file actually has 2 columns “Time” and “Airpassengers” along with row label ( which is the first column in input file)
Know , when i am importing it , row label is getting imported as one of the variable , increasing the variable count to 3 , but the expected result is that “inputFile” should have only 2 variables.
Please , let me know , how to avoid that.