Skip to content
Prev 365834 / 398502 Next

Write a function that allows access to columns of a passed dataframe.

John:

I think you need to re-read about how functions pass arguments and
data frame access works in R.

What Rui meant was to get rid of all the xx stuff and access your column by:

col <- frame[, yy]

That *does* work.

Cheers,
Bert



Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Dec 5, 2016 at 7:29 AM, John Sorkin <jsorkin at grecc.umaryland.edu> wrote:

Thread (21 messages)

John Sorkin Write a function that allows access to columns of a passed dataframe. Dec 5 Rui Barradas Write a function that allows access to columns of a passed dataframe. Dec 5 Rui Barradas Write a function that allows access to columns of a passed dataframe. Dec 5 John Sorkin Write a function that allows access to columns of a passed dataframe. Dec 5 Bert Gunter Write a function that allows access to columns of a passed dataframe. Dec 5 Rui Barradas Write a function that allows access to columns of a passed dataframe. Dec 5 Rui Barradas Write a function that allows access to columns of a passed dataframe. Dec 5 David Winsemius Write a function that allows access to columns of a passed dataframe. Dec 5 Rui Barradas Write a function that allows access to columns of a passed dataframe. Dec 5 David Winsemius Write a function that allows access to columns of a passed dataframe. Dec 5 Bert Gunter Write a function that allows access to columns of a passed dataframe. Dec 5 Bert Gunter Write a function that allows access to columns of a passed dataframe. Dec 5 Bert Gunter Write a function that allows access to columns of a passed dataframe. Dec 5 Rui Barradas Write a function that allows access to columns of a passed dataframe. Dec 6 John Sorkin Write a function that allows access to columns of a passeddataframe. Dec 6 Rui Barradas Write a function that allows access to columns of a passeddataframe. Dec 6 William Dunlap Write a function that allows access to columns of a passeddataframe. Dec 6 Rui Barradas Write a function that allows access to columns of a passeddataframe. Dec 6 William Dunlap Write a function that allows access to columns of a passeddataframe. Dec 6 David Winsemius Write a function that allows access to columns of a passeddataframe. Dec 6 Bert Gunter Write a function that allows access to columns of a passeddataframe. Dec 6