an error message always appear when I try to load data=nc

nc = read.csv("https://www.openintro.org/stat/data/csv/ncbirths.csv")

nc = subset(nc, is.na(marital) == FALSE)

library(mosaic)
Le chargement a nécessité le package : ggformula
Error: package or namespace load failed for ‘ggformula’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
aucun package nommé ‘stringi’ n'est trouvé
Erreur : le package ‘ggformula’ ne peut être chargé

tally(~ marital + lowbirthweight, data=nc)
Error in tally(~marital + lowbirthweight, data = nc) :
argument inutilisé (data = nc)

an error message always appear when I try to load data=nc
can someone tell me what to do

It looks like not all of the packages required for mosaic were installed. Try running

install.packages("ggformula")

You might also have to do

install.packages("stringi")

Finally, the tally function I am familiar with is not used in the way you are using it. From what package does tally come?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.