Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

back to norc ftp

  • Loading branch information...
commit 872afeafda38df6784151f386395dde104726d31 1 parent 4c0a331
Anthony Damico authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 General Social Survey/replicate berkeley sda.R
5 General Social Survey/replicate berkeley sda.R
View
@@ -72,7 +72,6 @@ options( digits = 8 )
require(foreign) # load foreign package (converts data files into R)
require(survey) # load survey package (analyzes complex design surveys)
-require(downloader) # downloads and then runs the source() function on scripts from github
# by default, R will crash if a primary sampling unit (psu) has a single observation
@@ -91,7 +90,7 @@ require(downloader) # downloads and then runs the source() function on scripts f
# create new character variables containing the full filepath of the file on norc's website
# that needs to be downloaded and imported into r for analysis
GSS.2010.CS.file.location <-
- "https://github.com/ajdamico/usgsd/blob/master/General%20Social%20Survey/gss7210_r2b_stata.zip?raw=TRUE"
+ "http://publicdata.norc.org:41000/gss/documents//OTHR/gss7210_r2b_stata.zip"
# create a temporary file and a temporary directory
@@ -100,7 +99,7 @@ tf <- tempfile() ; td <- tempdir()
# download the file using the filepath specified
-download(
+download.file(
# download the file stored in the location designated above
GSS.2010.CS.file.location ,
# save the file as the temporary file assigned above
Please sign in to comment.
Something went wrong with that request. Please try again.