Skip to content

Use paste function to select column of data

3 messages · John Poulsen, Peter Ehlers, David Winsemius

#
On 2011-05-18 12:12, John Poulsen wrote:
Get out of the dollar habit.
Replace your

   example$x

with

   example[[x]]

or with

   example[, x]

Peter Ehlers
#
On May 18, 2011, at 3:12 PM, John Poulsen wrote:

            
# right.... don't use the "$" operator, instead  use "[["
         example[[x]]    }