# # save_load.r # # ANALYZING SPATIAL MODELS OF CHOICE AND JUDGMENT WITH R # Dave Armstrong, Ryan Bakker, Royce Carroll, Christopher Hare, Keith T. Poole, and Howard Rosenthal # http://voteview.com/asmcjr.asp # # # Remove all objects just to be safe. rm(list=ls(all=TRUE)) # library(foreign) # sen90 <- read.dta("ftp://voteview.com/wf1/legis90.dta", convert.factors=FALSE) # # Arguments for "save()": # X The object to be written # FILE The location where the file is to be written # save(sen90, file="Chapter2_Examples/sen90_r.Rda") # # # Arguments for "load()": # FILE Location of the file # sen90_r <- load("Chapter2_Examples/sen90_r.Rda") #