Use readLines indeed.

On Thu, Aug 13, 2009 at 3:21 PM, Mohsen Jafarikia <jafarikia@gmail.com>wrote:

> Hello All:
>
> I am having the following data file named "data.dat"
>
> Number of people
> Number of pets
> Age of trees
>
> ifn   <- "data.dat"
> dat <- read.table(ifn)
>
> colnames(dat)<-c("Variables")
>
> I want R to read all these in a string but when I ask R to read these,
> it gives me error because there more than one word in each line. Any
> comments to solve this problem?
>
> Thanks,
> Mohsen
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]


