Hi! I am working on a data project and I saw this code but I don't understand the function of head = T here
Hi @Anwesha_Datta, maybe you try to work with header
See that the help of read.csv()
said:
header
a logical value indicating whether the file contains the names of the variables as its first line. If missing, the value is determined from the file format: header
is set to TRUE
if and only if the first row contains one fewer field than the number of columns.
As @ M_AcostaCH suggests have a look at ?read.csv
. You will have to scroll down a bit to get passed the read.table stuff. and whoeverwrote that was being curt.
A full statement would read
read.csv("A_file_name.csv", header = TRUE)