One data frame with 597 rows (players) and 6 columns:
vignette("database-schema", package = "fjelstul.world.cup")
Without this package, an analyst looking to study World Cup trends would have to: fjelstul world cup database r package worldcup
As this is a specialized package, it is typically hosted on CRAN or GitHub. You can install it directly.
data(package = "fjelstul.world.cup")
Once installed, you can load the library and explore the available datasets:
The , curated by Joshua C. Fjelstul, Ph.D., is one of the most comprehensive open-source datasets available for FIFA World Cup history. Accessed primarily through the worldcup R package , this database offers a massive repository of over 1.58 million data points covering every aspect of the world’s most prestigious tournament. One data frame with 597 rows (players) and
# Calculate the number of wins, draws, and losses for Brazil wins <- sum(brazil_matches$score1 > brazil_matches$score2) draws <- sum(brazil_matches$score1 == brazil_matches$score2) losses <- sum(brazil_matches$score1 < brazil_matches$score2)