Issue importing data set

I am new to R studio and I am having trouble importing my data set . This is my code and what it keeps saying.

bug <- read.table('bug.txt',header=TRUE,dec='.')
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 1 did not have 12 elements
str(bug)
Error in str(bug) : object 'bug' not found

It seems your data is either malformed or not in the format you expect, since this is directly related to your specific file, there is little we can do for you without seen the content or having access to the file.

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