Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ezANOVA: Dynamically specify the names of columns in the data frame #33

Open
deboerk opened this issue Dec 12, 2012 · 1 comment
Open

Comments

@deboerk
Copy link

deboerk commented Dec 12, 2012

Hi Mike,

I would like to dynamically specify the names of columns in the data frame for the between parameter to save a lot of duplicate code, but I could not figure out how to do this with .() lists. With character vectors, this can be easily done, however, they are not allowed.

Here is an example:

Instead of using a .() list

between=.(foobar,foobaz)

I would like to specify the between parameter using a dynamically created character vector

between=paste("foo", c("bar", "baz"), sep="")

Why do references to multiple columns have to be specified as a .() list, and character vectors are not allowed?

Thanks for your help!

Regards
Birk

@crsh
Copy link

crsh commented Dec 12, 2012

Hi deboerk,

this issue was just raised yesterday by rcuriosity. As I have run into this a couple of weeks ago myself, I have posted a link to a temporary solution in the comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants