gistlib
other r categories
matrix code snippets in r
add a missing variable which is present as a column but not as a row, create this row as a row of zeros in a matrix in r
add a variable as a row of zeros that is not present as a column in a matrix in r
add together two matricies of different dimensions in r
change a cell value in a matrix using row and column name in r
change single cell in a matrix by index number in r
convert an existing matrix to all zeros in r
convert character matrix to numeric in r
copy rownames to new column in a matrix in r
correlation matrix with certain variables in r
create a community matrix and use its laplacian matrix to get eigenvectors sorted by their corresponding eigenvalue in non-decreasing order. then use k means algorithm and plot a cluster graph in r
create a loop that brings in matricies from csv files and adds them all together in r
create a loop to bring in a matrix csv file convert it to a numeric matrix and then add the matrices together in r
create a loop to get matrices convert them to numeric and then add them together in r
delete a row and column from matrix by name in r
insert custom row and new row name in a existing matrix in r
load a spreadsheet into r. combined the first four rows and six columns into a matrix and if there are duplicate values in the matrix, randomise all rows in r
matrix, how tu use in r
multiply matrices in r
normalize a laplacian matrix in r
r matrix in r
sort row order as the column order in a matrix in r
when a column does not exists as a row in a matrix, add a new one as a row of zeros in r
when column variables do not match row variables in a matrix, add the missing variable as a row of zeros in r
when column variables do not match row variables in a matrix, add the missing variable as a row of zeros in r and/or a column of zeros in r
when rownames do not match all columnnames in a matrix, find the missing variable and add it as a new column of zeros in r
when rownames don't match columnnames of a matrix, add these as a column of zeros. in r
gistlib
by LogSnag