Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Memberships

Athlete Lab

Public • 105 • Free

7 contributions to Athlete Lab
Tips for coding more organized in R
1. When making a Shiny App, put the ui section in a script called ui.R and the server in server.R. As long as they're loaded and in the same directory they will run without having to type "shinyApp(ui, server)" 2. When you have a lot of lines of code to run simultaneously but highlighting is a drag, put all the code within {} brackets and just run the line with the end bracket, it will run all the code. 3. Put comments on your code, and if you use at least four pound signs #### R Script will recognize it as a chapter for the outline table of contents, making it so much easier to find your sections in long scripts. 4. Consider using Projects within RStudio, which you can read more about here: https://support.posit.co/hc/en-us/articles/200526207-Using-RStudio-Projects
2
2
New comment Mar 29
1 like • Mar 22
Great tips @Danny Thompson! I am guilty of this but commenting the code is so important because it is easier to find errors or problems. I would like to add a 5th one: 5. Find your own coding style. Copying code parts works, but if you can understand and rewrite it in you style it will be way easier to: Explain to anyone, Spot errors or potential problems and be pleasant for your own eyes!
ALL NCAA PLAYER STATS
Hi all, I created a tutorial of how to access all NCAA player stats: Link Here. Feel free to add me on LinkedIn, and use the code in the post to create your own projects. Onto the next project!
4
5
New comment Mar 29
1 like • Mar 21
Love it, I will definitely check it out!
VALUE IN PLAYER DATA
VALUE IN PLAYER DATA One of the trades this offseason that stuck out to me the most was Richie Palacios going to Tampa Bay and the Cardinals receiving Andrew Kittredge in return. While this trade was not a needle mover for many people and I do truly believe it was a win-win for both sides. I think the Rays found incredible value in Palacios. I took his hitting data and applied it to a prediction model and it predicting that based on his performance this past year coupled with prediction that he could do it again would mean that he would potentially be responsible for creating nearly 49 runs this next year in a linear regression based on hitting data respective to runs created. My guessing is the rays saw this value, coupled with their ability to maximize hitting with solid metrics through excellent player development (Isaac Paredes and Yandy Diaz to name a couple), and took a flyer on a player that could potentially be a 3+ WAR type of player in the right environment with plenty of opportunities. The Rays continue to do what they do, find quality value for great prices to remain in competitive balance. Tampa Bay Rays #baseball #r #shiny #playerdevelopment #ncaa #mlb #collegebaseball#trackman #R
2
2
New comment Mar 18
VALUE IN PLAYER DATA
0 likes • Mar 17
Great post, the Rays seem to always find hidden value in players. Does your model take minor leagues stats or is it just MLB stats?
Data Integration/Communication Questions
Please ask or answers any data integration/communication questions you have! Anybody is welcome to contribute...please be respectful!
0
9
New comment Mar 12
1 like • Mar 12
You can scrape data with the baseballr package. Here is the link to learn more about it! https://billpetti.github.io/baseballr/reference/statcast.html
NCAA Dataset Question
Does anyone know if/where I can find a dataset of the stats of everyone ball player in Division 1 this season?
0
2
New comment Mar 12
1 like • Mar 12
This video will be very helpful and I think that the code is in the description! https://youtu.be/LsxFFZvd9Ng?si=qUosMnxuiCLHxFR6
1-7 of 7
Philippe Gendron
2
10points to level up
@philippe-gendron-2380
Athlete Lab Consultant

Active 21h ago
Joined Mar 3, 2024
powered by