I recently started using R and found out about Hadley ggplot2 and other packages. Now the good part is that its packages do not require us to write datasetname $ xyz (or if we use "c" or "attach"), but the bad part is that R-Studio auto-complete does not recognize column names. Some of the columns I work with have long names, and I often make mistakes when typing them.
Is there any solution that will allow me to use the Hadley package or "with" / "attach" without losing the autocomplete function?
I am a beginner, so I will be grateful for any thoughts.
For example, here's what my data looks like:
acctnum gender state zip zip3 first last book_ nonbook_ total_ purch child youth cook do_it refernce art geog buyer
1 10001 M NY 10605 106 49 29 109 248 357 10 3 2 2 0 1 0 2 no
2 10002 M NY 10960 109 39 27 35 103 138 3 0 1 0 1 0 0 1 no
3 10003 F PA 19146 191 19 15 25 147 172 2 0 0 2 0 0 0 0 no
4 10004 F NJ 07016 070 7 7 15 257 272 1 0 0 0 0 1 0 0 no
5 10005 F NY 10804 108 15 15 15 134 149 1 0 0 1 0 0 0 0 no
6 10006 F NY 11366 113 7 7 15 98 113 1 0 1 0 0 0 0 0 yes
Now, if I use ttest using $,
using $ sign
, ggplot2,
ggplot2
, .
( Rstudio, dplyr:: mutate?). , . , .
user6651781