R
Title
Question
<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
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".
Login to add comment