saving . . . saved Regarding variable declaration has been deleted. Regarding variable declaration has been hidden .
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 09-11-19, 11:42 a.m. bhavyabharath

Answers:

Please elaborate on the term pre-declaration of variables. 

09-11-19, 11:51 a.m. wangikarsmita2019@gmail.com


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, 11:55 a.m. wangikarsmita2019@gmail.com


Log-in to answer to this question.