Giter Site home page Giter Site logo

Comments (7)

Alain-Bearez avatar Alain-Bearez commented on May 18, 2024

As per #16, install the data.table dependency through

install.packages("http://cran.r-project.org/src/contrib/Archive/data.table/data.table_1.10.4-3.tar.gz")

prior to using the above snippet.

from fastr.

steve-s avatar steve-s commented on May 18, 2024

Hi Alain,

thank you for the report. FastR doesn't implement the builtin function rapply. We'll get it implemented.

from fastr.

steve-s avatar steve-s commented on May 18, 2024

Hi Alain,

FYI we've implemented rapply, but there are still some issues with your concrete example as it uses data.table internally and data.table is not very well supported on FastR yet, however, we are working on it.

from fastr.

steve-s avatar steve-s commented on May 18, 2024

I've changed the title so that it is not misleading: rapply is working in FastR, but the reported code snippet as a whole is not yet.

from fastr.

Alain-Bearez avatar Alain-Bearez commented on May 18, 2024

I consider this issue can be closed since installing data.table as recommended in
#16 (comment)
enables to run the original snippet.

install.fastr.packages('data.table')
install.packages('expss')

After installing the packages as above, the below snippet gives the same result (except for the row labels) in FastR as in GNU-R.

library('data.table')
library('expss')

P1 <- c(1,1,2,2,2,2,1,2,2,1,1,1,1,1,1,2,2,1,1,1)
val_lab(P1) <- make_labels("
                           1 Masc
                           2 Fem
                           ")
total_x_P1 <- cro_rpct(total(), col_vars = P1, total_row_position = "below", total_label = "Base")

from fastr.

steve-s avatar steve-s commented on May 18, 2024

Hello Alain,

thank you. Not being familiar with the expss package, are the missing row labels just a cosmetic issue?

from fastr.

rbotafogo avatar rbotafogo commented on May 18, 2024

from fastr.

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.