Sometimes it is recommended to run R “as administrator”.
BaskeballAnalizeR
, some or all the dependent packages are not automatically installed.
Close all R sessions and open a new R session, then type:
reqpacks<- c('ggplot2', 'hexbin', 'plyr', 'dplyr', 'tidyr', 'rlang', 'magrittr', 'ggrepel',
'gridExtra', 'scales', 'MASS', 'directlabels', 'corrplot', 'ggplotify', 'network',
'sna', 'dendextend', 'circlize', 'PBSmapping', 'sp', 'operators', 'stringr', 'GGally',
'statnet', 'common', 'ggnetwork', 'readr')
install.packages(reqpacks)
There was a mistake in the function fourfactors
. The corrected version is now online, so you are probably obtaining the right graphs, where the numbers involved are in the order of magnitude of 2 (see the ERRATA CORRIGE of the book “Basketball Data Science”).
set.seed(7)
and/or set.seed(1)
), I obtain a different outcome with respect to that reported on the book.It used to be the case that set.seed()
would give the same results across R versions, but that’s no longer generally true due to to a little-announced update in R 3.6.0. So, if the version of your R machine is >= 3.6.0, you need to type RNGkind(sample.kind = "Rounding")
at the beginning of your working session. This will allow you to obtain the same outcome reported on the book. A warning message about this issue is given when the library BaskeballAnalizeR
is uploaded.
set.seed(29)
), I obtain a different outcome with respect to that reported on the book.It used to be the case that set.seed()
would give the same results across R versions, but that’s no longer generally true due to to a little-announced update in R 3.6.0. So, if the version of your R machine is >= 3.6.0, you need to type RNGkind(sample.kind = "Rounding")
at the beginning of your working session. This will allow you to obtain the same outcome reported on the book. A warning message about this issue is given when the library BaskeballAnalizeR
is uploaded.
set.seed(1)
), I obtain a different outcome with respect to that reported on the book.It used to be the case that set.seed()
would give the same results across R versions, but that’s no longer generally true due to to a little-announced update in R 3.6.0. So, if the version of your R machine is >= 3.6.0, you need to type RNGkind(sample.kind = "Rounding")
at the beginning of your working session. This will allow you to obtain the same outcome reported on the book. A warning message about this issue is given when the library BaskeballAnalizeR
is uploaded.