Large Number Of Variables
Title
Question
In R software we declare large number of variables. How do we know that whether the variable which we are going to declare is already declare or not?
As some variable declare in this tutorial
moviesGeIm, moviesImD, moviesImA, moviesComDr etc.
R Data-Manipulation-using-dplyr-Package 10-11 min 50-60 sec
Answers:
In your console, you can type ls() and press Enter to check for the variables present in the Environment, as shown below:
-------------------------------------------------------------------------------------------------------
> ls()
[1] "movies" "moviesComDr" "moviesComDrP" "moviesComedy"
[5] "moviesComIm" "moviesGeIm" "moviesImA" "moviesImD"
[9] "moviesLess" "moviesMu" "moviesR" "moviesTGI"
[13] "moviesTHT"
-------------------------------------------------------------------------------------------------------
Apart from this, you can make use of the auto-completion feature of RStudio. This feature predicts the name of variables that have been declared already when you start typing similar names.
Login to add comment