What does head = T mean in this case?

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)

This topic was automatically closed 42 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.