options(install.packages.check.source = "no")
# Install packages from cran
install.packages("stringi", repos="http://cran.rstudio.com/", dependencies=TRUE)
--- | |
title: 'Imputation of missing data:`impute.MinDet` function from the R package `imputeLCMD`, `missForest` for Random Forest imputation, `impute.knn` function for knn imputation' | |
author: | |
- name: "cristina " | |
affiliation: | |
email: "" | |
date: "" | |
toc: true | |
output: | |
rmarkdown::github_document: |
# Stack gem here: https://stackoverflow.com/questions/4090169/elegant-way-to-check-for-missing-packages-and-install-them | |
list.of.packages <- c("ggplot2", "Rcpp") | |
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] | |
if(length(new.packages)) install.packages(new.packages) |
title: "Sleek R meta-packages: Pakages that handle package (downloading)" author: "" date: "" output: html_document: toc: true # table of content true toc_depth: 3 # upto three depths of headings (specified by #, ## and ###) toc_float: true number_sections: true # if you want number sections at each table header
# Python-script header etiquette: | |
# https://stackoverflow.com/questions/1523427/what-is-the-common-header-format-of-python-files | |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
@author : cristina | |
--- | |
title: "Preventing code from being printed on html output" | |
author: "cgpu" | |
date: "" | |
output: html_document | |
--- | |
```{r global_options, include=FALSE} | |
knitr::opts_chunk$set(echo=FALSE, warning=FALSE, message=FALSE) | |
``` |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
@author: cristina | |
Script for parsing all JAD output .txt files of an input_directory | |
to collect ref and equivalent signatures based on user defined threshold for ROC AUC. | |
User defined arguments: |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
@author: cristina | |
Script for parsing all JAD output .txt files of an input_directory | |
to collect ref and equivalent signatures based on user defined threshold for ROC AUC. | |
User defined arguments: |
# WHAT : Script for swapping feature IDs in a dataframe. | |
# Mapping dataframe required for swapping. | |
# A mapping dataframe should contain a minimal of | |
# two columns, one named 'current', the other `previous`, | |
# One row corresponds to one matching pair. | |
# Each row j of mapping df, one feature pair. | |
# Values are checked cell by cell (df[k,i])., | |
# in df with values to be swapped. |
title: "How to source .R scripts from github; works for (i) .R scripts stored in projects' repos or (ii) .R scripts saved as gists." author: "cgpu" date: "" output: html_document: toc: true # table of content true toc_depth: 3 # upto three depths of headings (specified by #, ## and ###) toc_float: true number_sections: false # if you want number sections at each table header