I am very new to R and I would like some help please. So I have a txt file that the data inside look like this:
14853 C001 1 Apples Apples
14854 BX0 0 Oranges Oranges
14855 F00058 0 Apples and Oranges in the, basket Apples and Oranges in the, [basket]
All the columns are headerless and I am trying to organize them in a dataframe in columns like this:
'14853' 'C001' '1' 'Apples' 'Apples'
'14854' 'BX0' '0' 'Oranges' 'Oranges'
'14855' 'F00058' '0' 'Apples and Oranges in the, basket' 'Apples and Oranges in the, [basket]'
Is there anyway to do this using R?
I have tried many different things with read.table()
, fread()
, scan()
, etc...