# Clear the entire workspace

rm(list = ls())

 

 

# List the contents of your workspace

ls()

 

 

# Create the variable horses

horses = 3;

 

 

# Create the variable dogs

 

 

dogs=7;

 

 

# Create the variable animals as sum of horses and dogs

animals= dogs+horses;

 

 

# How many total Animals are there

print (animals)

 

 

 

 

# Just now decided that want to remove a variable dogs from this wprkspce

# rm(Variable Name) For an insrance, if we want to remove the variablesvariable_a,variable_b , we can use this code rm(variable_a, Variable_b), in the following line removing the variable dogs

rm(dogs)

 

 

# List the contents of your workspace

ls()

 

 

# Inspect the contents of the workspace again

 

 

ls()

 

 

 

 

# Remove dogs from the workspace

 

 

 

 

# Inspect the objects in your workspace once more