Unable to read Boston as a dataset in r



After running this command:
The output I am getting is:
function ()
Please help me fix this issue,


Hi @Neha_Koppikar you can simply read the Boston dataset by using the following code:

df = Boston


Thanks a lot!


Thanks a lot @pjoshi15.


Hello, if anyone else is facing a similar issue even after loading the MASS library, try removing all the existing objects. This option is to the right side of ‘Import Dataset’ option. Its icon is very tiny.