Laurel,
That's pretty odd. I'm not sure what the situation is here. Can you
send out some code so we can replicate what you are doing? (Note to
everyone, sending code except where it would give away answers to the
pset is always a good idea. It makes your problem replicable). In
the meantime try:
#install.packages("foreign")
library(foreign)
data <- read.dta("fearondata.dta")
head(data)
Brandon
On Sun, Mar 6, 2011 at 12:54 PM, Laurel Grassin-Drake <lgrassin(a)mit.edu> wrote:
Thanks for the help.
But now I’ve been struggling with trying to use the data. I’ve finally
figured out that R seems to be separating the data into groups such that it
is creating a matrix with fewer columns and more rows. So it takes the
first X variables and populates n rows with the data, but the next group of
variables start at row n+1 instead of column X+1.
Anyone know what I need to do?
Thank you.
Laurel
From: gov2001-l-bounces(a)lists.fas.harvard.edu
[mailto:gov2001-l-bounces@lists.fas.harvard.edu] On Behalf Of Colin Sullivan
Sent: Sunday, March 06, 2011 9:54 AM
To: Class List for Gov 2001/E-2001
Subject: Re: [gov2001] co-authors
Laurel - you have to use the "foreign" library; then it will find the
command.
Colin
On Sun, Mar 6, 2011 at 9:42 AM, Laurel Grassin-Drake <lgrassin(a)mit.edu>
wrote:
Dear all,
I know this is pretty basic, but how do I import the data set for this
week’s pset into R? I’ve tried read.dta, but the program tells me that it
couldn’t find the function.
Thanks.
Laurel
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
--
gov2001 mailing list served by Harvard-MIT Data Center
List Address: gov2001(a)lists.gking.harvard.edu
Subscribe/Unsubscribe:
http://lists.gking.harvard.edu/?info=gov2001