order(vector, decreasing=TRUE)[1:N] # for positive values
order(abs(vector), decreasing=TRUE)[1:N] # for pos & neg
Code Example |
---|
R :: r rep() |
R :: replace character with na r |
R :: autoplot confusion matrix |
R :: r count list |
R :: how to iterate through a list in r |
R :: r select rows |
R :: R drop columns |
R :: how to add columns to a flextable in r |
R :: convert a column to row names in r |
R :: rstudio |
R :: r2 metrics r |
R :: adding new key in R dictionary |
R :: r create intervals cut |
R :: faceted bar chart in r |
R :: remove the colour name from ggplot |
R :: sumif in r |
R :: STR_REPLACE PACKAGE r |
Rust :: get random enum rust |
Rust :: how to create a string of n characters rust |
Rust :: how to make an array in rust |
Rust :: rust string slice |
Rust :: sum all elements of array rust |
Rust :: multithreading rust example |
Rust :: rust string interpolation |
Rust :: rust BMI |
Rust :: rust return the result with trait exit status |
Rust :: rust currying, preset some arguments |
Rust :: armanriazi•rust•smartpointer•box•vs•rc•vs•refcell |
Lua :: if string contains lua |
Lua :: rgb to hex lua |