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,100 points
28 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,680 points
36 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,010 points
386 views
0 votes
3 answers

How to remove NA values from a Vector in R?

using the function "complete.cases" for example, if you ...READ MORE

answered Jun 18 in Data Analytics by anonymous
4,710 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,700 points
113 views
0 votes
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,700 points
47 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
• 37,420 points
38 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
55 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
728 views