hadley / fec-dplyr

Exploration of FEC contributions data with dplyr
13 stars 11 forks source link

error creating pres_cm #1

Closed romainfrancois closed 10 years ago

romainfrancois commented 10 years ago

I'm getting :

> cm <- readRDS("cn14.rds")
> pres_cm <- cm %.% filter(cmte_tp == "P")
Erreur : binding not found: 'cmte_tp'

and:

> names(cm)
 [1] "cand_id"              "cand_name"            "cand_pty_affiliation"
 [4] "cand_election_yr"     "cand_office_st"       "cand_office"
 [7] "cand_office_district" "cand_ici"             "cand_status"
[10] "cand_pcc"             "cand_st1"             "cand_st2"
[13] "cand_city"            "cand_st"              "cand_zip"
> cm
Source: cpp backend [3,988 x 15]

     cand_id                   cand_name cand_pty_affiliation cand_election_yr
1  H0AK00097            COX, JOHN ROBERT                  REP             2012
2  H0AL02087                ROBY, MARTHA                  REP             2014
3  H0AL05049   CRAMER, ROBERT E "BUD" JR                  DEM             2008
4  H0AL05163                  BROOKS, MO                  REP             2014
5  H0AL05189           SHEPARD, TAZEWELL                  DEM             2010
6  H0AL06088         COOKE, STANLEY KYLE                  REP             2010
7  H0AL07086            SEWELL, TERRI A.                  DEM             2014
8  H0AL07094 HILLIARD, EARL FREDERICK JR                  DEM             2010
9  H0AL07177            CHAMBERLAIN, DON                  REP             2012
10 H0AR01083    CRAWFORD, ERIC ALAN RICK                  REP             2014
..       ...                         ...                  ...              ...
Variables not shown: cand_office_st (chr), cand_office (chr),
  cand_office_district (int), cand_ici (chr), cand_status (chr), cand_pcc
  (chr), cand_st1 (chr), cand_st2 (chr), cand_city (chr), cand_st (chr),
  cand_zip (dbl)
romainfrancois commented 10 years ago

That's a typo.

cm <- readRDS("cn14.rds")

should be:

cm <- readRDS("cm14.rds")