Examveda

What will be the output of the following R code?
x<- c (“a”,” b”)
as.numeric(x)

A. [1] 1 2

B. [1] TRUE TRUE

C. [1] NA NA (Warning message: NAs introduced by coercion)

D. [1] NAN

Answer: Option C


This Question Belongs to R Programming >> Introduction To R Programming

Join The Discussion

Related Questions on Introduction to R Programming