Giter Site home page Giter Site logo

Comments (6)

singmann avatar singmann commented on August 17, 2024 2

Fixed version (0.18-0) is on CRAN now: https://cran.r-project.org/web/packages/afex/

from afex.

singmann avatar singmann commented on August 17, 2024

Thanks for this report, this is most likely due to the changes in 134afd6. Paging @jonathon-love who made this changes.
Are you willing to remove the bug you introduced (I guess)?

See:

require(psych)
require(afex)
data(msq)
aov_ez(data=msq, dv="Extraversion", id = "ID", between = "condition", 
    covariate=c("TOD", "MSQ_Time"), factorize=FALSE, print.formula = TRUE)
# Formula send to aov_car: Extraversion ~ condition + `TOD+MSQ_Time` + Error(ID)
# Error in `[.data.frame`(data, , between, drop = FALSE) : 
#   undefined columns selected

from afex.

jonathon-love avatar jonathon-love commented on August 17, 2024

sure, i'll take a look.

cheers

from afex.

singmann avatar singmann commented on August 17, 2024

@jonathon-love Actually hold on. I think I got it, seems really minor.

from afex.

jonathon-love avatar jonathon-love commented on August 17, 2024

yup, i think it's as simple as moving line 415:

if (!is.null(covariate)) covariate <- str_c(covariate, collapse = "+")

down after where the covariates are escaped?

covariate <- escape_vars(covariate)

from afex.

singmann avatar singmann commented on August 17, 2024

Solved in ccada51.

My change was similar to what you suggested:

if (!is.null(covariate)) {
   covariate <- escape_vars(covariate)
   covariate <- str_c(covariate, collapse = "+")
 }

I will push a new bug-free version to CRAN latest next week. Thanks for reporting the bug.

from afex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.