Examveda
Examveda

What is the limit to matrices in R?

A. One dimensional

B. Two dimensional

C. Three dimensional

D. No limit

Answer: Option B

Solution(By Examveda Team)

Matrices are like strictly typed two dimensional arrays. You create a matrix using the matrix function, which accepts five parameters: a vector to use as the content, the number of rows to shape the content into, the number of columns to shape the content into, an optional boolean value to indicate whether the content should be shaped by row or by column (the default is FALSE for by column), and a list that contains vectors for row names and column names:

matrix([content vector], nrow=[number of rows], ncol=[number of columns], byrow=[how to sort], dimnames=[vector of row names, vector of column names]).

This Question Belongs to Javascript >> Sockets

Join The Discussion

Related Questions on Sockets