Skip to content

Reading in a dataset with uneven variable lengths

2 messages · Liaw, Andy, Francisco J. Zagmutt

#
One possibility is to use read.fwf().

Andy
#
Is it OK to have NA's? If so you can use read.table(,fill=TRUE) or 
read.delim().  Notice that the default in the second option is fill=TRUE.

Cheers

Francisco