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.