'Read dat in R with separate variables instead of 1 single variable

I try to load a dat file into R with 4 separate variables, but the read.table/read.delim function returns to 1 single variable by connecting the 4 with a colon.

Cam someone help?

examdata < read.delim('/Users/Weindependent/Desktop/GSE/EDU 767/Assignment /DataSet/Exam Anxiety.dat', header=TRUE, 
                     sep=",")

enter image description here

r


Solution 1:[1]

Instead of sep = "," just do " ". It is actually"(space bar)".

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pam S