R
Is pre-declaration of variables possible in R? like Perl language,
R Data-types-and-Factors 00-01 min 20-30 sec
Answers:
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".