Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -15,7 +15,11 @@ library(ggpubr)
|
|
| 15 |
library(jsonlite)
|
| 16 |
library(utils)
|
| 17 |
#library(magick)
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
VAA <- function(milbtotal){
|
| 20 |
milbtotal <- milbtotal |>
|
| 21 |
mutate(VAA = -atan((vz0+(az*(-sqrt((vy0*vy0)-(2*ay*(y0-(17/12))))-vy0)/
|
|
|
|
| 15 |
library(jsonlite)
|
| 16 |
library(utils)
|
| 17 |
#library(magick)
|
| 18 |
+
is_barrel <- function(df) {
|
| 19 |
+
df$barrel <- with(df, ifelse(hit_angle <= 50 & hit_speed >= 97 & hit_speed * 1.5 -
|
| 20 |
+
hit_angle >= 117 & hit_speed + hit_angle >= 123, 1, 0))
|
| 21 |
+
return(df)
|
| 22 |
+
}
|
| 23 |
VAA <- function(milbtotal){
|
| 24 |
milbtotal <- milbtotal |>
|
| 25 |
mutate(VAA = -atan((vz0+(az*(-sqrt((vy0*vy0)-(2*ay*(y0-(17/12))))-vy0)/
|