insuranceData package

Hi, I am practicing a case study where I had to load the package insuranceData. I used the following code:
library(insuranceData)

However I get the following error:
Error in library(insuranceData) : there is no package called ‘insuranceData’

Can anyone please guide me on where I am going wrong? I have installed R and R Studio and yet get the same error! Can't find any post with similar issue on the net.

You need to install the package for the first time. You can do this through the RStudio menu Tools -> Install Packages or you can run the command

install.packages("insuranceData")

in the console. Once the package is installed, you can run

library(insuranceData)
1 Like

Thank you so much. I don't know why I had the assumption that the package was already installed!

This topic was automatically closed 7 days after the last reply. 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.