Re: [R] Referencing variable names rather than column numbers
; > HTH, > > Marc Schwartz > > > On Dec 5, 2009, at 10:43 AM, Ista Zahn wrote: > >> As baptiste noted, you can do >> >> cor(pollute[ ,c("Pollution","Temp","Industry")]). >> >> But >> >> cor(pollute[,"Pol
[R] Referencing variable names rather than column numbers
ther than indexes? Again, apologies for asking something that has likely been asked before. I would appreciate any suggestions that you have. Best, John-Paul Ferguson Assistant Professor of Organizational Behavior Stanford University Graduate School of Business 5