Examveda

What will be the output of the following R code?
> x <- data.frame(foo = 1:4, bar = c(T, T, F, F))
> ncol(x)

A. 2

B. 4

C. 7

D. 9

Answer: Option A


This Question Belongs to R Programming >> R Programming Basics

Join The Discussion

Related Questions on R Programming Basics