Code Monkey home page Code Monkey logo

Comments (3)

4pack avatar 4pack commented on July 17, 2024

I'm having this same issue as well.

Error:

Error in rowSums(., na.rm = TRUE) : 'x' must be numeric
Calls: projections_table ... _fseq -> freduce -> withVisible -> <Anonymous> -> rowSums
Execution halted

Scrape/projection generation line:

my_scrape <- scrape_data(src = c("CBS", "ESPN"), pos = c("QB", "RB", "WR", "TE", "DST"), season = 2018, week = 1)
my_projections <- projections_table(my_scrape)

EDIT: Runs fine if you drop CBS as a source. Something may still be funky with it. See below for my new scrape:

my_scrape <- scrape_data(src = c("ESPN", "Yahoo", "FantasySharks", "NFL", "FFToday"), pos = c("QB", "RB", "WR", "TE", "DST", "K"), season = 2018, week = 1)
my_projections <- projections_table(my_scrape)

from ffanalytics.

isaactpetersen avatar isaactpetersen commented on July 17, 2024

Posting this here in case anyone is interested in helping with the project:
https://fantasyfootballanalytics.net/2019/09/call-for-help-lead-r-shiny-developer.html

from ffanalytics.

imaxgillet avatar imaxgillet commented on July 17, 2024

Screen Shot 2020-08-18 at 3 17 23 PM
I am encountering a similar issue on Mac with the given sessionInfo. It appears that the issue arises within the second rowSums in get_stat_cols. The "receiving_tgt" column for the RB data is a chr and is causing the issue, I believe.
Screen Shot 2020-08-18 at 3 14 13 PM

from ffanalytics.

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.