I am trying to install a package using "install.packages("ToothGrowth")". but I am getting following error: Warning in install.packages : package ‘ToothGrowth’ is not available for this version of R. PLESE SOMEBODY HELP ME WITH THIS.
it is a dataset, not a package so you should try the function data().
data(ToothGrowth) head(ToothGrowth) # # > head(ToothGrowth) # len supp dose # 1 4.2 VC 0.5 # 2 11.5 VC 0.5 # 3 7.3 VC 0.5 # 4 5.8 VC 0.5 # 5 6.4 VC 0.5 # 6 10.0 VC 0.5
This topic was automatically closed after 45 days. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.