Alpha 125.5 0
Beta 235.6 1
Beta 212.03 0
Beta 211.30 0
Alpha 265.46 1
File Name – Dataframe.csv
Which of the following commands will correctly read the above csv file with 5 rows in a dataframe?
A) csv(‘Dataframe.csv’)
B) csv(‘Dataframe.csv’,header=TRUE)
C) dataframe(‘Dataframe.csv’)
D) csv2(‘Dataframe.csv’,header=FALSE,sep=’,’)
ANSWER: D) csv2(‘Dataframe.csv’,header=FALSE,sep=’,’)