Displaying 20 results from an estimated 3000 matches similar to: "problems reading a large dta dataset in R"
2013 Jan 16
1
Read.dta and Write.dta Binary Data Error
Thanks in advance.
I pass data sets between R and Stata and think dta files would be the best
files for this. To do this I can use package foreign or package memisc. I
mostly use foreign, although have used memisc and this problem mostly didn't
happen, but created errors at other times.
I have a csv data set (and created a test case) with with at least one
column completely missing. This
2012 Mar 01
1
R can't load a large dataset
Dear R listers,
I have a silly problem. I am trying to load a dta (Stata) file in R.
The dta is about 650 MB and contains the integrated World Values
Survey/ European Value Study data-set.
My problem is that I don't manage to load the file. After almost 1
hour I issued the following command:
data <- read.dta("http://www.stata-press.com/data/kkd/data1.dta",
convert.dates = TRUE,
2005 Jun 06
3
write.dta limits
Hope everyone id doing great ..
Just need some clarification over the limit of write.dta. I have some
coauthors that use stata and I need to send them my data in .dta format.
the data.frame is 41706x229 and I get the following
Error in write.dta(Panel, file = "STATADATA/Panel.dta", version = 7) :
a binary write error occured
Once I subset the data everything works out fine. my
2007 Jun 15
1
importing .dta files
I'm trying to read in a Stata file but I've never used this function (
read.dta). It's the only one that seems to come close to working, but I
keep getting this error:
> data<-read.dta("C:/Documents and
Settings/Chris/Desktop/S4412/catestscores.dta")
Error in read.dta("C:/Documents and
Settings/Chris/Desktop/S4412/catestscores.dta", :
a binary read
2008 Mar 18
2
read.dta for files from stata 9.0
Dear R-helpers,
if I want to read a .dta-file generated by stata 9.0 with read.dta
(foreign), I get the message
"not a stata version 5-8 .dta-file". I'm using R-2.6.2 and the latest
version of the foreign package. Has someone any hint?
With many thanks,
Albrecht
2003 Nov 04
2
write.dta and handling labels
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")
write(X, filename = "text.dta", version = 7)
When i
2011 Jan 14
1
Write.dta and export of variable labels
When I import a data file in stata format using read.dta, the full variable
labels (e.g. variable= "inc2000"; variable label= "Total household income in
year 2000"). When I then export the same data file using write.dta, the
variable labels are not included in the new .dta file. Is there any way to
ensure that the variable labels are maintained?
Thanks
[[alternative HTML
2008 Jan 10
1
write.dta (foreign package)
Hi,
I'd like to request that the 'write.dta' command also save the
"var.labels" attributes of the data frame.
'read.dta' can read them, but 'write.dta' doesn't write them back.
Thanks....
Edward McNeil
--
Epidemiology Unit
Faculty of Medicine
Prince of Songkla University
Hat Yai
THAILAND
(\_ _/)
(='.'=)
('')_('')
--
This
2009 May 03
1
dates from Stata's .dta to R's .Rdata: become character
Dear Sir/Madam,
I converted the .dta into .Rdata with the foreign library read.dta. However,
when I use fix() I get the message that the dates are discarded.
Before fix(), class(dateX) gives 'dates' as class; after fix() class(dateX)
gives 'character'
Why is that?
Best regards,
Rob Bakker
[[alternative HTML version deleted]]
2011 Aug 06
3
.dta from e-mail
I got a .dta extension file by e-mail, but I can't save it in my computer
and open it in R. How can I do it?
[[alternative HTML version deleted]]
2011 Mar 01
2
How to Save R library data into xls or dta format
Thanks in advance.
I'm having a trouble with data saving.
I want to run the same data which is in Ecdat library at different statistic
programs(excel, stata and matlab)
The data I want to use is
library(Ecdat)
data(Housing)
and I want to extract this data our of R as *.dta *.xls formats.
So, my first try was to open the data in R window and drag and paste to
excel or notepad.
BUT, it
2013 Feb 25
1
Issue attaching a dataset
I use to work whit stata dataframe, so, when I use R I type read.dta
Until today I do that without any problem, after type:
mydata<-read.dta("C:/dropbox/dataframe.dta")
attach(mydata)
Everything works great... but today, when I typed:
mydata<-read.dta("C:/dropbox/dataframe.dta")
attach(mydata)
Appeared:
Error in substr(these, 1L, 6L) : invalid multibyte string at
2004 Apr 03
1
Direct connection to Packet8 without DTA
I found some old messages regarding a possible pkt8 DTA "bypass". Anyone
is using Packet8 with Asterisk?
==========
http://www.dslreports.com/forum/remark,7292324~root=voip~mode=flat
Got Softphone Working with Packet8
Friendly name: {Anything you'd like.}
SIP domain: packet8.net
SIP proxy: packet8.net
Leave everything else at the default.
When you login, it will ask for a username
2009 Jul 26
3
Sweave, cacheSweave, and data frame
Dear All,
I have been using Sweave (mainly via the Sweave.sh script) and really like
it. I am working a paper (using Sweave, of course) which includes several
time-consuming computations, and it gets tedious to re-compile the whoel
thing every time I made changes. Then I discover the "cacheSweave" package,
which seems the right solution to my problem. I only have on problem. Here
is
2008 May 26
1
read.dta error
Greetings!
I attempted to read a STATA 10 file using the following syntax:
library(foreign)
data <- read.dta("~/Documents/agestandard/analysis.dta")
I got the following error:
*** stack smashing detected ***: /usr/lib/R/bin/exec/R terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7c13138]
2008 Aug 06
3
Help in running Stata dataset in R
Dear All,
I installed R 2.7.0 and tried to call a dataset i had ealier own called
on R2.6.2 but i keep on getting an error:
use("maltreat.dta")
Error in fromchar(x) :
character string is not in a standard unambiguous format
Tried doing the same with R2.7.1 but i get the same error.
However if i call the same on R 2.6.2, there is no error:
use("maltreat.dta")
> des()
2007 Dec 31
1
read.dta error after OSX change in time zone
Hello all,
I recently moved from the US to Africa & on changing my time zone
in the OSX system preferences from EST to GMT+3 ( East Africa) on
attempting to use read.dta using the foreign package began
getting an error of:
"Error in fromchar(x) : character string is not in a standard
unambiguous format"
This error goes away & the data is correctly read in when
2009 Feb 02
0
"a binary read error occurred" in read.dta
I'm trying to read in a perfectly good Stata data file created using
Stata 10 in Linux and saved in the version 8/9 format using "saveold".
R fails to read in the file:
aa<-read.dta("myfile.dta")
Error in read.dta("myfile.dta"):
a binary read error occurred
If I resave the file in Stata using the "nolabels" option of saveold,
I get:
There were
2004 Apr 28
3
Possible bug in foreign library import of Stata datasets
Concerning this article, Christopher Zorn, "Generalized Estimating
Equation Models for Correlated Data: A Review with Applications." 2001.
American Journal of Political Science 45(April):470-90.
The author very kindly provides data for replication on his web page:
http://www.emory.edu/POLS/zorn/Data/GEE.zip.
I've been comparing the Professor Zorn's results obtained with
2008 Jan 26
1
Read stata file from internet?
Dear R-helpers,
I would like to have my students read into R an online Stata dataset: 'http://www.stat.ucla.edu/projects/datasets/risk_project.dta'
I was able to read it into R after downloading it and converting it
with StatTransfer (http://www.stattransfer.com/).
Here is what happens when I use read.dta() as I would use read.table():
> require(foreign)
> risk2 <-