matrices in R programming || R Programming tutorial || what is Subsetting ? || R Tutorial || RStudio

preview_player
Показать описание
This video explains creating and naming matrices and matrix subsetting.

Matrices are the R objects in which the elements are arranged in a two-dimensional rectangular layout. They contain elements of the same atomic types. Though we can create a matrix containing only characters or only logical values, they are not of much use. We use matrices containing numeric elements to be used in mathematical calculations.

Subsetting in R is a useful indexing feature for accessing object elements. It can be used to select and filter variables and observations. You can use brackets to select rows and columns from your data frame.

reference:

A Matrix is created using the matrix() function.
Рекомендации по теме