Search
 
SCRIPT & CODE EXAMPLE
 

R

get matrix row name r

> grades_matrix
             Math      Science          Art
Student_1      90           88           75
Student_2      78           81           95 
Student_3      84           85           83

> rownames(grade_matrix)[2]
[1] "Student_2"

> colnames(grade_matrix)[3]
[1] "Art"
Comment

PREVIOUS NEXT
Code Example
R :: what is factor in r programming 
R :: How to use par() in R 
R :: what is a vector in r 
R :: count number of columns in r 
R :: mutual information in r 
R :: r string split 
R :: %in% r 
R :: r function to get class of all columns 
R :: r count list 
R :: how to filter a vector by location in r 
R :: 3d scatter plot in r 
R :: unset par mar 
R :: rstudio 
R :: str_extract all using mutate and toString 
R :: select last child with class in r 
R :: norm,s,inv in r 
R :: how to upload multiple excel files r 
R :: how the print backslash in r 
R :: excecute a for loop line by line in r 
Rust :: read file contents in rust 
Rust :: ignore #[warn(dead_code)] 
Rust :: read file rust 
Rust :: rust error handling 
Rust :: find smallest number in vec rust 
Rust :: rust vector insert 
Rust :: armanriazi•rust•interior-mutability•vs•inherited-mutability 
Rust :: armanriazi•rust•error•E0502•cannot borrow `s` as mutable because it is also borrowed as immutable 
Rust :: rust-analyzer tab space 
Rust :: execution duration 
Lua :: luau make rainbow part 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =