Hello everyone,
I am currently experiencing huge problems reading in a csv file.
The first line looks like this and contains the variable names:
CARD" "AGE" "GENDER" "TAS20It1" "TAS20It2" "TAS20It3" "TAS20It4" "TAS20It5" "TAS20It6" "TAS20It7" "TAS20It8" "TAS20It9" "TAS20It10" "TAS20It11" "TAS20It12" "TAS20It13" "TAS20It14" "TAS20It15" "TAS20It16" "TAS20It17" "TAS20It18" "TAS20It19" "TAS20It20" "SCL1" "SCL2" "SCL3" "SCL4" "SCL5" "SCL6" "SCL7" "SCL8" "SCL9" "SCL10" "SCL11" "SCL12" "SCL13" "SCL14" "SCL15" "SCL16" "SCL17" "SCL18" "SCL19" "SCL20" "SCL21" "SCL22" "SCL23" "SCL24" "SCL25" "SCL26" "SCL27"
The second line contains the values, which are obviously separated by free space:
1 34 2 2 4 1 2 4 5 2 1 3 5 4 2 2 2 2 4 5 5 5 1 0 3 4 0 0 3 2 2 1 4 3 0 0 1 0 0 0 3 1 4 0 2 2 0 0 3 0 4 1 4 3 3 1 4 2 2 1 3 0 0 2 0 1 1 3 1 0 0 0 0 3 0 0 0 4 0 2 0 0 0 2 1 0 2 1 1 0 3 0 0 1 0 0 2 0 2 1 1 1 3 0 0 2 0 1 0 0 0 1 3
I have tried several options including
data0= read.csv("beispiel.csv", header = TRUE, sep ="")
data0= read.csv("beispiel.csv", header = TRUE, sep =" ; ")
data0= read.csv("beispiel.csv", header = TRUE, sep =" , ")
However, nothing seems to be working. The only thing that works is when I copy it to a clipboard but then my R sessions always keeps crashing
I am also sending you a screenshot from the
csv. file since it does not contain any real data so there are no data privacy issues.I would be so so grateful if someone of you could please help me with the import. Thank you so much
