R
Is pre-declaration of variables possible in R? like Perl language,

R Data-types-and-Factors 00-01 min 20-30 sec 09-11-19, 3:42 p.m. gauribbb

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".
09-11-19, 3:52 p.m. wangikarsmita2019@gmail.com


Click here to reply/comment online