[R] write.dta and handling labels

2003-11-03 Thread Arnab mukherji
Hello, I need to write out a data matrix as a STATA 7 file and this happens perfectly with write.dta(), except I cannot seem to export the labelnames to Stata. So far I have tried the following: # X is the data matrix that is to be exported attributes(X)$var.labels - c(apple, banana, cat)

Re: [R] write.dta and handling labels

2003-11-03 Thread Spencer Graves
Have you considered write.table? hope this helps. spencer graves Arnab mukherji wrote: Hello, I need to write out a data matrix as a STATA 7 file and this happens perfectly with write.dta(), except I cannot seem to export the labelnames to Stata. So far I have tried the following: # X is

Re: [R] write.dta and handling labels

2003-11-03 Thread Thomas Lumley
On Tue, 4 Nov 2003, Arnab mukherji wrote: Hello, I need to write out a data matrix as a STATA 7 file and this happens perfectly with write.dta(), except I cannot seem to export the labelnames to Stata. So far I have tried the following: # X is the data matrix that is to be exported