Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. > head(h_01_14)
  2. ID Amount Year Month Day MonthCount MonthTotal
  3. 1 C12362 37010.0 2001 1 2 32 8231252
  4. 2 C13176 100281.5 2001 1 2 32 8231252
  5. 3 C11730 92927.7 2001 1 4 32 8231252
  6. 4 C11848 886136.3 2001 1 4 32 8231252
  7. 5 C12713 101942.7 2001 1 4 32 8231252
  8. 6 C12963 809255.1 2001 1 4 32 8231252
  9.  
  10. > h_01_14 <- h_01_14 %>%
  11. + select(ID,
  12. + Amount,
  13. + Year,
  14. + Month,
  15. + Day,
  16. + MonthCount,
  17. + MonthTotal) %>%
  18. + filter(Amount > 1)
  19. Error in filter(., Amount > 1) : object 'Amount' not found
  20.  
  21. > sessionInfo()
  22. R version 3.1.2 (2014-10-31)
  23. Platform: x86_64-w64-mingw32/x64 (64-bit)
  24.  
  25. locale:
  26. [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
  27. [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
  28. [5] LC_TIME=English_United States.1252
  29.  
  30. attached base packages:
  31. [1] stats graphics grDevices utils datasets methods base
  32.  
  33. other attached packages:
  34. [1] data.table_1.9.4 xts_0.9-7 timeSeries_3012.99 dplyr_0.4.1
  35. [5] ggplot2_1.0.0 lattice_0.20-29 fpp_0.5 lmtest_0.9-33
  36. [9] expsmooth_2.02 fma_2.01 tseries_0.10-33 forecast_5.8
  37. [13] timeDate_3012.100 zoo_1.7-11
  38.  
  39. loaded via a namespace (and not attached):
  40. [1] assertthat_0.1 chron_2.3-45 colorspace_1.2-4 DBI_0.3.1 digest_0.6.8
  41. [6] fracdiff_1.4-2 grid_3.1.2 gtable_0.1.2 lazyeval_0.1.10 magrittr_1.5
  42. [11] MASS_7.3-35 munsell_0.4.2 nnet_7.3-8 parallel_3.1.2 plyr_1.8.1
  43. [16] proto_0.3-10 quadprog_1.5-5 Rcpp_0.11.4 reshape2_1.4.1 scales_0.2.4
  44. [21] stringr_0.6.2 tools_3.1.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement