Regarding variable declaration
Title
Question
Is pre-declaration of variables possible in R? like Perl language,will it provide as optional?
R Introduction-to-basics-of-R 08-09 min 0-10 sec
Answers:
Please elaborate on the term pre-declaration of variables.
Yes, pre-declaration is possible. Example -
Declaring a character variable "c" -
c <- character()
This will create an empty character variable with the name "c".
Declaring a numeric variable "n" -
n <- numeric()
This will create an empty numeric variable with the name "n".
Login to add comment