Which function can I use to clear the console in R and RStudio

+1 vote
Apr 17, 2018 in Data Analytics by shams
• 3,670 points
82,863 views

2 answers to this question.

+1 vote

Description                   Windows & Linux           Mac

Clear console                      Ctrl+L                     Ctrl+L

cat("\014")  is the code to send CTRL+L to the console and therefore will clear the screen.

You can also type cat("\f")

Transform data into actionable insights with our Data Analytics Course – Enroll today!

answered Apr 17, 2018 by anonymous
0 votes

Hi,

The shortest and the quickest way to clear the global environment in R is by using shortcut keys from the keyboards. Simply hit Ctrl+L on the keyboard and you will see that everything written in the console will be erased and the console will be cleared. 

answered Dec 14, 2020 by MD
• 95,460 points

Related Questions In Data Analytics

0 votes
0 answers

Function to clear the console in R and RStudio

I'm curious if there is a way ...READ MORE

Jun 10, 2022 in Data Analytics by Avinash
• 1,260 points
539 views
+1 vote
1 answer

How can I use which() function in R ?

which() function determines the position of elements ...READ MORE

answered Sep 25, 2018 in Data Analytics by Daisy
• 8,140 points
7,482 views
0 votes
1 answer

How to write a custom function which will replace all the missing values in a vector with the mean of values in R?

Consider this vector: a<-c(1,2,3,NA,4,5,NA,NA) Write the function to impute ...READ MORE

answered Jul 4, 2018 in Data Analytics by CodingByHeart77
• 3,750 points
4,595 views
0 votes
1 answer

How can I import a file in R without giving the destination/file path to the specified file?

You can use the window explorer to ...READ MORE

answered Aug 28, 2018 in Data Analytics by Abhi
• 3,720 points

edited Aug 28, 2018 by Vardhan 3,036 views
+1 vote
2 answers
0 votes
1 answer

Shiny r ,I'm doing a dashboard and I can not replace in the table below the name of the column by choosing the selectinput.

Hi, When you want to change any input ...READ MORE

answered Aug 19, 2019 in Data Analytics by anonymous
• 33,030 points
1,168 views
0 votes
1 answer
0 votes
1 answer

Why should I use set.seed function() in R?

set.seed(seed) Set the seed of R‘s random number ...READ MORE

answered Apr 24, 2018 in Data Analytics by zombie
• 3,790 points
1,830 views
0 votes
1 answer

How can I increase the number of axis ticks in R ?

You can try to override ggplots default ...READ MORE

answered May 30, 2018 in Data Analytics by zombie
• 3,790 points
6,755 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP