ices-eg / RCGs

A place for the Regional Coordination Groups (RCGs) to store scripts (e.g. for map-plotting, age-length relationships) to make them available to other groups and improve the development and exchange.
6 stars 8 forks source link

aux_colours.txt #40

Closed mrska closed 5 years ago

mrska commented 5 years ago

After running: read.table('aux_colours.txt', sep = '\t', header = TRUE) I got an error: _' line 2 did not have 7 elements', (but it looks like it has 7 elements) After saving exactly the same data as .csv, and using _readcsv() it works. Does anyone else has the same problem? Or a solution for that maybe?

nmprista commented 5 years ago

this worked for me read.table("aux_colours.txt", header=T, sep="\t", colClasses="character", na.strings="", comment.char="")

mrska commented 5 years ago

It works. Thanks.