saving . . . saved R has been deleted. R has been hidden .
<span style="color: rgb(85, 85, 85); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">Is pre-declaration of variables possible in R? like Perl language,</span>

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


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.

Log-in to answer to this question.