Hello! I'm a new learner of R, and I have a question about a piece of code I was learning about:
>X<-data.frame("var1"=sample(1:5), "var2"=sample(6:10), "var3"=sample(11:15))
> X<-X[sample(1:5),]; X$var2[C(1:3)]= NA
what would be the function of the semi-colon next to X[sample(1:5),]?
Thanks for your answers in advance!