Re: [R] Reading a tab delimted file of varying length using read.table

2016-01-17 Thread Pradeep Bisht
orce.dat"; > widths <- c(9, 13, 10, 8, 10, 6) > f5 <- read.fwf(url, widths = widths, skip = 1, strip.white = TRUE) > > names(f5) <- as.character(unlist(read.fwf(url, widths = widths, > strip.white=TRUE, n=1))) > > Not sure why reading it simply with header=TRUE des n

[R] Reading a tab delimted file of varying length using read.table

2016-01-17 Thread Pradeep Bisht
Hello Experts , Being a SAS developer I am finding it difficult to perform some of data cleaning in R that are quite easy to perform in SAS . I have been trying to read a .dat file and after a lot of attempts have failed to find a solution . Maybe R doesn't have the functionality right now or I