Git Product home page Git Product logo

Comments (6)

JoGall avatar JoGall commented on July 27, 2024

Can you try reinstalling the package? I've overhauled the soccerSpokes() function and it seems to work now, at least for me.

from soccermatics.

davidfombella avatar davidfombella commented on July 27, 2024

Yes, now works. Please I send you a mail , trying to check if given x,y,time utc , you can help me to calculate speed,angle, acceleration to be able to test soccerSpokes and soccerFlow, it is raw data from stadium cameras.

from soccermatics.

davidfombella avatar davidfombella commented on July 27, 2024

Now error is on this file
Error in .install_package_code_files(".", instdir) :
files in 'Collate' field missing from 'C:/Users/dpomb/AppData/Local/Temp/RtmpWisOsT/devtools31a83d191083/JoGall-soccermatics-ff94e4e/R':
pipe.R

ERROR: unable to collate and parse R files for package 'soccermatics'

  • removing 'C:/Users/dpomb/Documents/R/win-library/3.4/soccermatics'
  • restoring previous 'C:/Users/dpomb/Documents/R/win-library/3.4/soccermatics'
    Installation failed: Command failed (1)

from soccermatics.

JoGall avatar JoGall commented on July 27, 2024

The issue with pipe.R should be fixed now if you reinstall.

As for extracting speed and heading angle from raw x,y,t-data, see this gist for an example.

Speed is just the Pythogarian distance between successive x,y-points divided by the time interval, and heading angle can be calculated using atan2.

I may add a function to the package for calculating these soon.

from soccermatics.

davidfombella avatar davidfombella commented on July 27, 2024

On soccer spokes fails, since I have a time column
Error in assert_all_white_list(data) :
Column utc is of unsupported class POSIXlt/POSIXt

from soccermatics.

JoGall avatar JoGall commented on July 27, 2024

Have you tried excluding the time column from your input data? i.e. soccerSpokes(data[,c("x", "y")])

The function shouldn't be handling time variables anyway so I'll update it soon.

from soccermatics.

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.