BasketballAnalyzeR – FAQ


INSTALLING THE PACKAGE

Sometimes it is recommended to run R “as administrator”.

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)

 

REPLICATING THE EXAMPLES IN THE BOOK “BASKETBALL DATA SCIENCE”

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”).

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.

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.

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.