Thanks Prof Ripley,
 
The statement:
 
DF[] <- lapply(DF, as.factor)
 
works perfectly and saves a lot of time!
 
Regards 
Hennie


 
>As there is no such version, unlikely.


> Not really (and a loop will a matter of seconds at most), but there are 
> neater ways such as

>DF[] <- lapply(DF as.factor)

>which will convert it for you.  Or you could get read.fwf() to do so: see
>the colClasses argument to read.table, as mentioned on its help page.




---------------------------------------------------------------------------
This message (and attachments) is subject to restrictions and a disclaimer.
Please refer to http://www.unisa.ac.za/disclaimer for full details.
---------------------------------------------------------------------------
<<<<gwavasig>>>>
<<<< gwavasig >>>>
	[[alternative HTML version deleted]]


