Deleting particular objects from workspace - R

0 votes
I have these 5 datasets -> "iris", "iris1", "iris2", "iris3" & "iris4".

I would want to permanently remove "iris1", "iris2", "iris3", & "iris4" from the workspace and keep only "iris".

Is there a function in R to do this?
May 7, 2018 in Data Analytics by DataKing99
• 8,130 points
44 views

1 answer to this question.

0 votes

You can use the rm() function to do this:

rm(iris1,iris2,iris3,iris4)

This command will permanently remove these 4 datasets from the work-space.

answered May 7, 2018 by Bharani
• 4,550 points

Related Questions In Data Analytics

0 votes
1 answer

How to install an R package from source?

If you have your file located locally ...READ MORE

answered Apr 13, 2018 in Data Analytics by CodingByHeart77
• 3,690 points
60 views
0 votes
1 answer

Read command line parameters from an R script

Here's an example to explain : Two files ...READ MORE

answered Apr 17, 2018 in Data Analytics by kappa3010
• 2,020 points
707 views
0 votes
4 answers

How to remove NA values from a Vector in R?

You can try na.omit() or na.exclude() too. ...READ MORE

answered Jul 31 in Data Analytics by anonymous
• 31,840 points
8,470 views
0 votes
1 answer

How to import data from a Json file into R?

Easy and simple: library("rjson") json_file <- "file_name" json_data <- fromJSON(file=json_file)) or ...READ MORE

answered Apr 26, 2018 in Data Analytics by DeepCoder786
• 1,720 points
224 views
+1 vote
1 answer

How to convert a list of vectors with various length into a Data.Frame?

We can easily use this command as.data.frame(lapply(d1, "length< ...READ MORE

answered Apr 4, 2018 in Data Analytics by DeepCoder786
• 1,720 points
130 views
0 votes
2 answers

In data frame how to spilt strings into values?

You can do this using dplyr and ...READ MORE

answered Dec 4, 2018 in Data Analytics by Kalgi
• 42,350 points
61 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Removing all objects from work-space except one - R

You can use the 'keep()' function from ...READ MORE

answered May 17, 2018 in Data Analytics by Bharani
• 4,550 points
90 views
0 votes
1 answer

Extracting numeric columns from a data.frame - R

You can use the select_if() function from ...READ MORE

answered May 4, 2018 in Data Analytics by Bharani
• 4,550 points
1,732 views