content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library(OnlineSuperUnif)
library(lubridate)
library(svMisc)
library(rjson)
library(ggplot2)
library(ggpubr)
library(tidyverse)
library(latex2exp)
# ------------------ load parameters from yaml file -----------------------------
param.list <- fromJSON(file = "../../config/mfdr/signal_position.json")
# ---------------... | /main/mfdr/signal_position.R | no_license | iqm15/SUREOMT | R | false | false | 5,812 | r | library(OnlineSuperUnif)
library(lubridate)
library(svMisc)
library(rjson)
library(ggplot2)
library(ggpubr)
library(tidyverse)
library(latex2exp)
# ------------------ load parameters from yaml file -----------------------------
param.list <- fromJSON(file = "../../config/mfdr/signal_position.json")
# ---------------... |
testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... | /IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609873637-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 729 | r | testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... |
library(ggplot2)
#source("http://bioconductor.org/biocLite.R")
#biocLite("limma")
#library(limma)
library(Linnorm)
library(Rtsne)
library(DESeq2)
library(samr)
library(org.Mm.eg.db)
library(org.Hs.eg.db)
library(clues)
library(pheatmap)
#得到聚类数 需要先跑PCA,princomp的结果传给x
get_clusternum<-function(x,percent=0.9... | /heatmap.R | no_license | hit-biostatistics/PCE | R | false | false | 13,489 | r | library(ggplot2)
#source("http://bioconductor.org/biocLite.R")
#biocLite("limma")
#library(limma)
library(Linnorm)
library(Rtsne)
library(DESeq2)
library(samr)
library(org.Mm.eg.db)
library(org.Hs.eg.db)
library(clues)
library(pheatmap)
#得到聚类数 需要先跑PCA,princomp的结果传给x
get_clusternum<-function(x,percent=0.9... |
#' Download filtered data from main profile
#'
#' @export
#' @param full processed main data (from reactive fn "get_data_filtered")
#' @param fasta fasta sequences (from reactive fn "main_fasta_download")
#' @param var1_id name of 1st variable (from input$var1_id)
#' @param var2_id name of 2nd variable (from input$var2... | /R/download_filtered_main.R | permissive | altingia/PhyloProfile | R | false | false | 8,272 | r | #' Download filtered data from main profile
#'
#' @export
#' @param full processed main data (from reactive fn "get_data_filtered")
#' @param fasta fasta sequences (from reactive fn "main_fasta_download")
#' @param var1_id name of 1st variable (from input$var1_id)
#' @param var2_id name of 2nd variable (from input$var2... |
############################################################################
#
# ctDNA Data Filtering
#
# Author: Olena Kis
# Last Modified: July 6, 2016
# Date Created: May 26, 2015
###############################
# Variables
###############################
myarg <- commandArgs(trailingOn... | /cfDNA_data_filtering.r | no_license | olena-k/lb-seq | R | false | false | 11,668 | r | ############################################################################
#
# ctDNA Data Filtering
#
# Author: Olena Kis
# Last Modified: July 6, 2016
# Date Created: May 26, 2015
###############################
# Variables
###############################
myarg <- commandArgs(trailingOn... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format.R
\name{cli_vec}
\alias{cli_vec}
\title{Add custom cli style to a vector}
\usage{
cli_vec(x, style = list())
}
\arguments{
\item{x}{Vector that will be collapsed by cli.}
\item{style}{Style to apply to the vector. It is used as a them... | /man/cli_vec.Rd | permissive | r-lib/cli | R | false | true | 1,870 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format.R
\name{cli_vec}
\alias{cli_vec}
\title{Add custom cli style to a vector}
\usage{
cli_vec(x, style = list())
}
\arguments{
\item{x}{Vector that will be collapsed by cli.}
\item{style}{Style to apply to the vector. It is used as a them... |
## load data
inidata <- read.table("household_power_consumption.txt",sep = ";",header = TRUE,na.strings = "?")
inidata$Date <- as.Date(inidata$Date,"%d/%m/%Y")
inidata$Time <- strptime(inidata$Time,format = "%H:%M:%S")
inidata$Time <- sub(".* ","",inidata$Time)
data2 <- subset(inidata,Date >= "2007-02-01" & Date <... | /Plot3.R | no_license | jriflake/ExData_Plotting1 | R | false | false | 881 | r | ## load data
inidata <- read.table("household_power_consumption.txt",sep = ";",header = TRUE,na.strings = "?")
inidata$Date <- as.Date(inidata$Date,"%d/%m/%Y")
inidata$Time <- strptime(inidata$Time,format = "%H:%M:%S")
inidata$Time <- sub(".* ","",inidata$Time)
data2 <- subset(inidata,Date >= "2007-02-01" & Date <... |
library(testthat)
library(recipes)
library(dplyr)
# ------------------------------------------------------------------------------
context("dplyr filter steps")
# ------------------------------------------------------------------------------
iris_rec <- recipe( ~ ., data = iris)
# ---------------------------------... | /tests/testthat/test_filter.R | no_license | juliasilge/recipes | R | false | false | 2,132 | r | library(testthat)
library(recipes)
library(dplyr)
# ------------------------------------------------------------------------------
context("dplyr filter steps")
# ------------------------------------------------------------------------------
iris_rec <- recipe( ~ ., data = iris)
# ---------------------------------... |
library(shiny)
library(png)
shinyUI(pageWithSidebar(
headerPanel("How much do you get paid compared to a top celebrity ?"),
sidebarPanel(
numericInput("salary","Enter your annual income here ($)",0),
uiOutput("choose_dataset"),
uiOutput("choose_celeb"),
... | /ui.R | no_license | Analyzer-K/CompareToCelebrities | R | false | false | 711 | r | library(shiny)
library(png)
shinyUI(pageWithSidebar(
headerPanel("How much do you get paid compared to a top celebrity ?"),
sidebarPanel(
numericInput("salary","Enter your annual income here ($)",0),
uiOutput("choose_dataset"),
uiOutput("choose_celeb"),
... |
## Overall, the functions will create a special "matrix," and then return the inverse of it via the cache.
## The function below contains a number of smaller functions in regard to creating a special "matrix."
## These smaller functions will set the value of the matrix, get the value of the matrix, set the value
## of... | /cachematrix.R | no_license | james-scheckowitz/ProgrammingAssignment2 | R | false | false | 1,273 | r | ## Overall, the functions will create a special "matrix," and then return the inverse of it via the cache.
## The function below contains a number of smaller functions in regard to creating a special "matrix."
## These smaller functions will set the value of the matrix, get the value of the matrix, set the value
## of... |
#' Generates a row of code-label pair data for each code in each
#' categorical variable in a REDCap metatdata file.
#'
#' @param metadata A REDCap metadata file with columns in the standardized format defined in
#' https://github.com/SpectrumHealthResearch/REDCapRITS/blob/master/R/R/REDCap_split.r
#' @return A ... | /R/get_categorical_field_labels.R | permissive | ctsit/rdatil | R | false | false | 1,590 | r | #' Generates a row of code-label pair data for each code in each
#' categorical variable in a REDCap metatdata file.
#'
#' @param metadata A REDCap metadata file with columns in the standardized format defined in
#' https://github.com/SpectrumHealthResearch/REDCapRITS/blob/master/R/R/REDCap_split.r
#' @return A ... |
# ExpQueens: Version: 0.3.4, parameter r 0 ... 10
# run on csverify
# Remark OK 3.3.2019: used old version of shuffle, leaving first field untouched
N sol nds h munds msnds hts t
1 1 1 0 0 1 0 0.00
2 0 3 1 3 0 1 0.00
3 0 7 3 7 0 1 0.00
4 2 15 5 3 1 2 0.00
5 10 43 7 3 1 2 0.00
6 4 133 20 25 1 3 0.00
7 40 443 29 17 1 4 0... | /Satisfiability/Transformers/Generators/Queens/GenericSAT/data/exp_files/ExpQueens/ExperimentR2.R | no_license | OKullmann/oklibrary | R | false | false | 6,209 | r | # ExpQueens: Version: 0.3.4, parameter r 0 ... 10
# run on csverify
# Remark OK 3.3.2019: used old version of shuffle, leaving first field untouched
N sol nds h munds msnds hts t
1 1 1 0 0 1 0 0.00
2 0 3 1 3 0 1 0.00
3 0 7 3 7 0 1 0.00
4 2 15 5 3 1 2 0.00
5 10 43 7 3 1 2 0.00
6 4 133 20 25 1 3 0.00
7 40 443 29 17 1 4 0... |
install.packages("stringr")
install.packages("xlsx")
library(stringr)
library(xlsx)
files <- list.files(path = "./", pattern = "*.txt")
result_m = matrix(NA, ncol = 5, nrow = 0)
colnames(result_m) = c("檔案名稱", "第一類", "第二類", "第三類", "第四類")
tt_all = as.character(NULL)
for(i in 1:length(files)){
tt = readLines(files[[i... | /test/keywords_shih.R | no_license | jhengyangrui/CNN-part-time- | R | false | false | 4,925 | r | install.packages("stringr")
install.packages("xlsx")
library(stringr)
library(xlsx)
files <- list.files(path = "./", pattern = "*.txt")
result_m = matrix(NA, ncol = 5, nrow = 0)
colnames(result_m) = c("檔案名稱", "第一類", "第二類", "第三類", "第四類")
tt_all = as.character(NULL)
for(i in 1:length(files)){
tt = readLines(files[[i... |
##' This is the function to obtain the population separately.
##'
##' @param database Whether to use the new or the old statistical
##' working system.
##' @param conn The RJDBS connection to the old working system.
##' @export
##'
## TODO (Michael): Apply calculation of 11 and 21 here.
getPopulationData = function... | /codes/getPopulationData.R | no_license | mkao006/sws_aupus | R | false | false | 4,560 | r | ##' This is the function to obtain the population separately.
##'
##' @param database Whether to use the new or the old statistical
##' working system.
##' @param conn The RJDBS connection to the old working system.
##' @export
##'
## TODO (Michael): Apply calculation of 11 and 21 here.
getPopulationData = function... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{c_project_extractor}
\alias{c_project_extractor}
\title{project_extractor}
\usage{
c_project_extractor(urls)
}
\arguments{
\item{urls}{a vector of URLs}
}
\value{
a vector of language and project names, or "Unknown" if a URL cannot be parsed. In the event
that ... | /man/c_project_extractor.Rd | permissive | wikimedia-research/WMUtils | R | false | false | 862 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{c_project_extractor}
\alias{c_project_extractor}
\title{project_extractor}
\usage{
c_project_extractor(urls)
}
\arguments{
\item{urls}{a vector of URLs}
}
\value{
a vector of language and project names, or "Unknown" if a URL cannot be parsed. In the event
that ... |
#ARCH Model, GARCH Model
library(xts)
library(FinTS)
library(rugarch)
library(parallel)
data <- read.table("C:/Users/J1060019/Desktop/R Quant/part 4/025/TRD_Index2.txt", header = TRUE)
par(mfrow = c(2, 1))
SHIndex <- data[data$Indexcd == 1, ]
returns = xts(SHIndex$Retindex, order.by = as.Date(SHIndex$Trddt)... | /GARCH Model.R | no_license | hugo1840/TSSCO | R | false | false | 840 | r | #ARCH Model, GARCH Model
library(xts)
library(FinTS)
library(rugarch)
library(parallel)
data <- read.table("C:/Users/J1060019/Desktop/R Quant/part 4/025/TRD_Index2.txt", header = TRUE)
par(mfrow = c(2, 1))
SHIndex <- data[data$Indexcd == 1, ]
returns = xts(SHIndex$Retindex, order.by = as.Date(SHIndex$Trddt)... |
source('~/git/causalTools/causalTools.R')
# set.seed(1162018)
n_obs <- 1000
X <- rnorm(n_obs, sd=1.5)
X <- seq(-4,4,length.out = n_obs)
X <- X[order(X)]
f1 <- 0.75 * X + 1
# f1 <- 3.75 * X + 1
f2 <- 0.1 * X + 0.25*X^2
p1 <- exp(f1) / (1 + exp(f1) + exp(f2))
p2 <- exp(f2) / (1 + exp(f1) + exp(f2))
p3 <- 1 / (1 + exp(f... | /experiments/multiple_treatments.R | no_license | bvegetabile/gpexperiments | R | false | false | 2,444 | r | source('~/git/causalTools/causalTools.R')
# set.seed(1162018)
n_obs <- 1000
X <- rnorm(n_obs, sd=1.5)
X <- seq(-4,4,length.out = n_obs)
X <- X[order(X)]
f1 <- 0.75 * X + 1
# f1 <- 3.75 * X + 1
f2 <- 0.1 * X + 0.25*X^2
p1 <- exp(f1) / (1 + exp(f1) + exp(f2))
p2 <- exp(f2) / (1 + exp(f1) + exp(f2))
p3 <- 1 / (1 + exp(f... |
#read.csv() from file, convert the missing values to NA
auto <- read.csv("Auto.csv", na.strings=c("?", "NA"))
#ignore the missng values converted to NA
auto <- na.omit(auto)
#perform a simple linear regression using mpg as response and horsepower as predictor
model1 <- lm(mpg~horsepower, data=auto)
#print the result... | /Lab3.R | no_license | Jiangluyu/NUS-summer-workshop-labs | R | false | false | 1,145 | r | #read.csv() from file, convert the missing values to NA
auto <- read.csv("Auto.csv", na.strings=c("?", "NA"))
#ignore the missng values converted to NA
auto <- na.omit(auto)
#perform a simple linear regression using mpg as response and horsepower as predictor
model1 <- lm(mpg~horsepower, data=auto)
#print the result... |
#' Download ECDC Data on Covid-19 cases
#'
#' Downloads case data provided by the European Centre for Disease Prevention
#' and Control
#' (\url{https://www.ecdc.europa.eu/en/publications-data/download-todays-data-geographic-distribution-covid-19-cases-worldwide}).
#' The data is updated weekly and contains the latest ... | /download_ecdc_covid19_data.R | no_license | binmishr/-tidycovid19-New-data-and-documentation | R | false | false | 4,748 | r | #' Download ECDC Data on Covid-19 cases
#'
#' Downloads case data provided by the European Centre for Disease Prevention
#' and Control
#' (\url{https://www.ecdc.europa.eu/en/publications-data/download-todays-data-geographic-distribution-covid-19-cases-worldwide}).
#' The data is updated weekly and contains the latest ... |
generate_data = function (n, p) {
draws = rnorm(n*p)
mat = matrix(draws, nrow = n)
res = rnorm(n)
return (list(covariates = mat, responses = res))
}
model_select = function (covariates, responses, cutoff) {
my.lm = lm(responses ~ covariates)
p_values = summary(my.lm)$coefficients[,4]
ind = p_values <= cu... | /lab_12_simulation.R | no_license | kellyccccy/36-350 | R | false | false | 1,147 | r | generate_data = function (n, p) {
draws = rnorm(n*p)
mat = matrix(draws, nrow = n)
res = rnorm(n)
return (list(covariates = mat, responses = res))
}
model_select = function (covariates, responses, cutoff) {
my.lm = lm(responses ~ covariates)
p_values = summary(my.lm)$coefficients[,4]
ind = p_values <= cu... |
library(ROSE)
### Name: accuracy.meas
### Title: Metrics to evaluate a classifier accuracy in imbalanced learning
### Aliases: accuracy.meas
### Keywords: supervised classification
### ** Examples
# 2-dimensional example
# loading data
data(hacide)
# imbalance on training set
table(hacide.train$cls)
# model estim... | /data/genthat_extracted_code/ROSE/examples/accuracy.meas.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 960 | r | library(ROSE)
### Name: accuracy.meas
### Title: Metrics to evaluate a classifier accuracy in imbalanced learning
### Aliases: accuracy.meas
### Keywords: supervised classification
### ** Examples
# 2-dimensional example
# loading data
data(hacide)
# imbalance on training set
table(hacide.train$cls)
# model estim... |
/TradeScenarios_makeTradeShareCubesInd.R | no_license | kswiebe/FEMRIOv1_gravity | R | false | false | 2,256 | r | ||
###########################################
#File Name : MHStatistics.R
#Date : 27-07-2017
#Author: Juan Garcia
#Email: jggarcia@sfu.ca
#Last Modified: mar 08 ago 2017 20:42:35 PDT
#Purpose:Script to obtain the statistics
#from the samples
#Modifications:
###########################################
source('../... | /commonFiles/Sampling/MHAdaptative/MHStatistics.R | no_license | juanga2005/springSummer2017research | R | false | false | 2,199 | r | ###########################################
#File Name : MHStatistics.R
#Date : 27-07-2017
#Author: Juan Garcia
#Email: jggarcia@sfu.ca
#Last Modified: mar 08 ago 2017 20:42:35 PDT
#Purpose:Script to obtain the statistics
#from the samples
#Modifications:
###########################################
source('../... |
tabPanel('Pre Open Data', value = 'tab_norm',
fluidPage(
fluidRow(
column(8, align = 'left',
h4('Pre Open'),
p('Pre open session data of Nifty and Nifty bank.')
),
column(4, align = 'right',
actionButton(inputId='ndistlink1', label="Help", icon = icon("question-... | /inst/application/ui/ui_normal.R | no_license | cran/nse2r | R | false | false | 1,018 | r | tabPanel('Pre Open Data', value = 'tab_norm',
fluidPage(
fluidRow(
column(8, align = 'left',
h4('Pre Open'),
p('Pre open session data of Nifty and Nifty bank.')
),
column(4, align = 'right',
actionButton(inputId='ndistlink1', label="Help", icon = icon("question-... |
library(GNAR)
### Name: gdpVTS
### Title: Differenced GDP values for 35 countries
### Aliases: gdpVTS
### ** Examples
data(gdp)
#Plot using 'ts' S3 function, can only plot up to 10 columns at once
plot(gdpVTS[,1:5])
#Plot as heatmap
image(gdpVTS)
| /data/genthat_extracted_code/GNAR/examples/gdpVTS.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 255 | r | library(GNAR)
### Name: gdpVTS
### Title: Differenced GDP values for 35 countries
### Aliases: gdpVTS
### ** Examples
data(gdp)
#Plot using 'ts' S3 function, can only plot up to 10 columns at once
plot(gdpVTS[,1:5])
#Plot as heatmap
image(gdpVTS)
|
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/calcTOAIrradTable.R
\docType{methods}
\name{calcTOAIrradTable}
\alias{calcTOAIrradTable}
\alias{calcTOAIrradTable,Satellite-method}
\alias{calcTOAIrradTable,character-method}
\alias{calcTOAIrradTable,factor-method}
\title{Get top of a... | /man/calcTOAIrradTable.Rd | no_license | imagingearth/satellite | R | false | false | 3,000 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/calcTOAIrradTable.R
\docType{methods}
\name{calcTOAIrradTable}
\alias{calcTOAIrradTable}
\alias{calcTOAIrradTable,Satellite-method}
\alias{calcTOAIrradTable,character-method}
\alias{calcTOAIrradTable,factor-method}
\title{Get top of a... |
/man/fit_gpr.Rd | no_license | cran/bdpopt | R | false | false | 3,743 | rd | ||
load(url("https://github.com/mespe/STS198/blob/master/data/CA_arrivals2016.rda?raw=true"))
obsUnit = paste(CAarrivals$FL_NUM, CAarrivals$FL_DATE,
CAarrivals$UNIQUE_CARRIER, CAarrivals$ORIGIN)
length(unique(obsUnit))
nrow(CAarrivals)
# What have we learned:
# different carriers use the same flight nu... | /R/office_hour/office_hoursApr7.R | permissive | mespe/STS198 | R | false | false | 551 | r | load(url("https://github.com/mespe/STS198/blob/master/data/CA_arrivals2016.rda?raw=true"))
obsUnit = paste(CAarrivals$FL_NUM, CAarrivals$FL_DATE,
CAarrivals$UNIQUE_CARRIER, CAarrivals$ORIGIN)
length(unique(obsUnit))
nrow(CAarrivals)
# What have we learned:
# different carriers use the same flight nu... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615765102-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,803 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
# plot 3
# Set up require packages
packages <- c("downloader", "dplyr", "lubridate")
sapply(packages, require, character.only = TRUE, quietly = TRUE)
# download data
setwd("C:/Users/lorel_000/Google Drive/DataScienceJHU/ExploratoryDataAnalysis/w1/project1/ExData_Plotting1")
path <- getwd()
fileName <- "d... | /plot3.R | no_license | csmontt/ExData_Plotting1 | R | false | false | 1,851 | r | # plot 3
# Set up require packages
packages <- c("downloader", "dplyr", "lubridate")
sapply(packages, require, character.only = TRUE, quietly = TRUE)
# download data
setwd("C:/Users/lorel_000/Google Drive/DataScienceJHU/ExploratoryDataAnalysis/w1/project1/ExData_Plotting1")
path <- getwd()
fileName <- "d... |
# Multiple plot function
# http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/
# ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects)
# - cols: Number of columns in layout
# - layout: A matrix specifying the layout. If present, 'cols' is ignored.
#
# If the layout is ... | /multiplot.R | no_license | przemo/komunikatyKM | R | false | false | 1,601 | r | # Multiple plot function
# http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/
# ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects)
# - cols: Number of columns in layout
# - layout: A matrix specifying the layout. If present, 'cols' is ignored.
#
# If the layout is ... |
## set.seed(0)
## n <- 1e6
## path <- rep(0, n)
## rho1 <- .8
## rho2 <- .1
## path[1:2] <- rnorm(2)
## print(system.time(
## for(i in 3:n)
## path[i] <- rho1*path[i-1] + rho2*path[i-2] + rnorm(1)
## ))
## ts.plot(path[1:5000])
## mc <- nimbleFunction(
## run = function( ... ) ) {
## returnType( ... )
#... | /code/4.7_writing_nimbleFunctions_exercises.R | no_license | danielturek/nimble-vibass-2019 | R | false | false | 447 | r | ## set.seed(0)
## n <- 1e6
## path <- rep(0, n)
## rho1 <- .8
## rho2 <- .1
## path[1:2] <- rnorm(2)
## print(system.time(
## for(i in 3:n)
## path[i] <- rho1*path[i-1] + rho2*path[i-2] + rnorm(1)
## ))
## ts.plot(path[1:5000])
## mc <- nimbleFunction(
## run = function( ... ) ) {
## returnType( ... )
#... |
# Model of best fit - arcsin sqrt transformations of lm for Overall Quality
#########################################################################
# Code to combine the Formal and Informal Consultation data
inf <- read_excel("working_copy.xlsx", sheet = 2)
to_num <- c(3,5,13,15,16,18:23)
for (i in to_num) {
inf[... | /inst/supp_analyses/Overall Quality Analysis.R | no_license | jacob-ogre/section7.quality | R | false | false | 5,729 | r | # Model of best fit - arcsin sqrt transformations of lm for Overall Quality
#########################################################################
# Code to combine the Formal and Informal Consultation data
inf <- read_excel("working_copy.xlsx", sheet = 2)
to_num <- c(3,5,13,15,16,18:23)
for (i in to_num) {
inf[... |
load("C:/Users/Vaibhav Gupta/Documents/R/timeseries_prac/tsa3.rda")
gold=read.csv(file="gold_price.csv",header = TRUE,sep=',')
silver=read.csv(file="silver_price.csv",header=T,sep=',')
gold[is.na(gold)]<-37.699
df=merge(gold,silver,by.x=c('date'),by.y = c('date'))
names(df)[names(df)=='price.x']<-'gold'
names(df)... | /stoch_final.R | no_license | vaibhavgupta2499/MathTechThinkingFoundationTimeSeries | R | false | false | 853 | r | load("C:/Users/Vaibhav Gupta/Documents/R/timeseries_prac/tsa3.rda")
gold=read.csv(file="gold_price.csv",header = TRUE,sep=',')
silver=read.csv(file="silver_price.csv",header=T,sep=',')
gold[is.na(gold)]<-37.699
df=merge(gold,silver,by.x=c('date'),by.y = c('date'))
names(df)[names(df)=='price.x']<-'gold'
names(df)... |
library(ggplot2)
data(package="ggplot2", diamonds)
ggplot(data = diamonds) +
geom_bar(mapping = aes(x = cut))
ggplot(data = diamonds) +
geom_histogram(mapping = aes(x = carat), binwidth = 0.5)
smaller <- diamonds %>%
filter(carat < 3)
ggplot(data = smaller, mapping = aes(x = carat)) +
geom_histogram(binw... | /CodePortfolio/week9.R | no_license | antrachowdhury/506 | R | false | false | 515 | r | library(ggplot2)
data(package="ggplot2", diamonds)
ggplot(data = diamonds) +
geom_bar(mapping = aes(x = cut))
ggplot(data = diamonds) +
geom_histogram(mapping = aes(x = carat), binwidth = 0.5)
smaller <- diamonds %>%
filter(carat < 3)
ggplot(data = smaller, mapping = aes(x = carat)) +
geom_histogram(binw... |
#' Builds the scrapped table from the 2020 CASPER reports with two tables
#'
#' This function is for pdf reports from 2020 that have two tables in the pdf
#' (Jan 2020 reports have one table but Feb 2020 reports have two). If the report being
#' scrapped has one table see \code{get_1_table_info_2020()}. The arguments f... | /R/get_2_tables_info_2020.R | permissive | BYUIDSS/caspeR | R | false | false | 8,006 | r | #' Builds the scrapped table from the 2020 CASPER reports with two tables
#'
#' This function is for pdf reports from 2020 that have two tables in the pdf
#' (Jan 2020 reports have one table but Feb 2020 reports have two). If the report being
#' scrapped has one table see \code{get_1_table_info_2020()}. The arguments f... |
5.How have emissions from motor vehicle sources changed from 1999–2008 in Baltimore City?
## Loading the dataset ##
NEI <- readRDS("summarySCC_PM25.rds")
Source <- readRDS("Source_Classification_Code.rds")
## plot ##
library(reshape)
library(ggplot2)
sources<-aggregate(NEI$Emissions[NEI$SCC %in% Source$SCC[grep("Veh"... | /Assignment2/plot5.R | no_license | karthik-anba/Exploratory_Data_Analysis | R | false | false | 903 | r | 5.How have emissions from motor vehicle sources changed from 1999–2008 in Baltimore City?
## Loading the dataset ##
NEI <- readRDS("summarySCC_PM25.rds")
Source <- readRDS("Source_Classification_Code.rds")
## plot ##
library(reshape)
library(ggplot2)
sources<-aggregate(NEI$Emissions[NEI$SCC %in% Source$SCC[grep("Veh"... |
## The following functions can be used in processing large Matrix data, in case we need to
## find inverse of the Matrices many a times. This functions caches the inverse of the Matrix
##data and only get the inverse if already calculated
# makeCacheMatrix creates a special "matrix", which is really a list containi... | /cachematrix.R | no_license | saif1987/ProgrammingAssignment2 | R | false | false | 1,501 | r | ## The following functions can be used in processing large Matrix data, in case we need to
## find inverse of the Matrices many a times. This functions caches the inverse of the Matrix
##data and only get the inverse if already calculated
# makeCacheMatrix creates a special "matrix", which is really a list containi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/encode.R
\name{encode_colour}
\alias{encode_colour}
\title{Encode colours into RGB hex-strings}
\usage{
encode_colour(colour, alpha = NULL, from = "rgb", white = "D65")
}
\arguments{
\item{colour}{A numeric matrix (or an object coercible to o... | /man/encode_colour.Rd | permissive | zpeng1989/farver | R | false | true | 2,759 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/encode.R
\name{encode_colour}
\alias{encode_colour}
\title{Encode colours into RGB hex-strings}
\usage{
encode_colour(colour, alpha = NULL, from = "rgb", white = "D65")
}
\arguments{
\item{colour}{A numeric matrix (or an object coercible to o... |
#################################################
## 4 Supplement plots ###########################
library(plyr)
library(dplyr)
library(tidyverse)
library(maps)
library(nest)
library(PaleoSpec)
# SF1: All Time Series with offsets of records
source("Functions/Supplement_Plots/SF_All_Timeseries.R")
# SF43: Vegetatio... | /4_supplement_plots.R | no_license | ginnyweasleyIUP/202008_PMILPaper | R | false | false | 1,344 | r | #################################################
## 4 Supplement plots ###########################
library(plyr)
library(dplyr)
library(tidyverse)
library(maps)
library(nest)
library(PaleoSpec)
# SF1: All Time Series with offsets of records
source("Functions/Supplement_Plots/SF_All_Timeseries.R")
# SF43: Vegetatio... |
get.best.arima <- function(x.ts, maxord=c(1, 1, 1, 1, 1, 1)) {
best.aic <- Inf
n <- length(x.ts)
for (p in 0:maxord[1]) {
for(d in 0:maxord[2]) {
for(q in 0:maxord[3]) {
for(P in 0:maxord[4]) {
for(D in 0:maxord[5]) {
for(Q in 0:maxord[6]) {
fit <- arima(x.ts,
... | /CommonRCodes/get.best.arima.R | no_license | damiansp/R | R | false | false | 766 | r | get.best.arima <- function(x.ts, maxord=c(1, 1, 1, 1, 1, 1)) {
best.aic <- Inf
n <- length(x.ts)
for (p in 0:maxord[1]) {
for(d in 0:maxord[2]) {
for(q in 0:maxord[3]) {
for(P in 0:maxord[4]) {
for(D in 0:maxord[5]) {
for(Q in 0:maxord[6]) {
fit <- arima(x.ts,
... |
#Find factors
print_factors = function(n) {
print(paste("The factors of",n,"are:"))
for(i in 1:n) {
if((n %% i) == 0) {
print(i)
}
}
}
print_factors(4)
print_factors(7)
print_factors(12) | /factors.r | permissive | maansisrivastava/Practice-code-R | R | false | false | 199 | r | #Find factors
print_factors = function(n) {
print(paste("The factors of",n,"are:"))
for(i in 1:n) {
if((n %% i) == 0) {
print(i)
}
}
}
print_factors(4)
print_factors(7)
print_factors(12) |
### test-Score.R ---
#----------------------------------------------------------------------
## author: Thomas Alexander Gerds
## created: Jan 4 2016 (14:30)
## Version:
## last-updated: Dec 6 2020 (09:27)
## By: Thomas Alexander Gerds
## Update #: 147
#----------------------------------------------... | /tests/test-score.R | no_license | LoSerigne/riskRegression | R | false | false | 9,667 | r | ### test-Score.R ---
#----------------------------------------------------------------------
## author: Thomas Alexander Gerds
## created: Jan 4 2016 (14:30)
## Version:
## last-updated: Dec 6 2020 (09:27)
## By: Thomas Alexander Gerds
## Update #: 147
#----------------------------------------------... |
##### Generic Genomic functions
### From a tibble of gene identifieres remove everything after a .
# Use this to remove information from genomic build (ie
# SolycXXXX.3.2,SolycYYY.2.5 -> SolycXXXX,SolycYYYY )
removeDotGene <- function(dotGeneName,ColumnName="",verbose=F){
if (verbose) cat ("removeDotGene function... | /Scripts/Ontology_enrichment/GO-seq/omicFunctions/generic_functions.R | no_license | lamyusam/tomato-root-atlas-2020 | R | false | false | 1,176 | r | ##### Generic Genomic functions
### From a tibble of gene identifieres remove everything after a .
# Use this to remove information from genomic build (ie
# SolycXXXX.3.2,SolycYYY.2.5 -> SolycXXXX,SolycYYYY )
removeDotGene <- function(dotGeneName,ColumnName="",verbose=F){
if (verbose) cat ("removeDotGene function... |
## Download the raw data,
## but first check if you have downloadr package
if (require(downloader)) {
download(url = "https://cdn.jsdelivr.net/gh/csiu/skyscraper/inst/skyscraper.csv",
destfile = "skyscraper.csv")
} else {
message("
#> PACKAGE NOT FOUND: PLEASE INSTALL 'downloadr' R PACKAGE
")
}
| /homework/hw09/01_download.R | permissive | jsdelivrbot/coursework-stat545 | R | false | false | 311 | r | ## Download the raw data,
## but first check if you have downloadr package
if (require(downloader)) {
download(url = "https://cdn.jsdelivr.net/gh/csiu/skyscraper/inst/skyscraper.csv",
destfile = "skyscraper.csv")
} else {
message("
#> PACKAGE NOT FOUND: PLEASE INSTALL 'downloadr' R PACKAGE
")
}
|
library(dplyr)
library(lubridate)
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
dest <- "./data/powerconsumption.zip"
if(!dir.exists("./data/")) {dir.create("./data")}
if(!file.exists(dest)) {download.file(url, dest)}
if(!file.exists("./data/household_power_consumption... | /plot1code.R | no_license | danallbaugh/Electric-power-consumption | R | false | false | 1,026 | r | library(dplyr)
library(lubridate)
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
dest <- "./data/powerconsumption.zip"
if(!dir.exists("./data/")) {dir.create("./data")}
if(!file.exists(dest)) {download.file(url, dest)}
if(!file.exists("./data/household_power_consumption... |
#' @param X Covariate matrix from all subjects. A matrix of size \code{n x p}.
| /man-roxygen/param-X.R | no_license | mlysy/losmix | R | false | false | 80 | r | #' @param X Covariate matrix from all subjects. A matrix of size \code{n x p}.
|
i = 448
library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/")
# -------------------------------------------------------------------------
# read in the list of the SNP to be excluded
# -------------------------------------------------------------------------
setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/")
files = li... | /data_preparation/R_batch3/_step2/step2_filter_asCounts.447.R | no_license | jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples | R | false | false | 809 | r | i = 448
library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/")
# -------------------------------------------------------------------------
# read in the list of the SNP to be excluded
# -------------------------------------------------------------------------
setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/")
files = li... |
#' @title Predict
#'
#' @description Prediction on `item`, fully decoded, loss function decoded and probabilities
#'
#' @param object the model
#' @param row row
#' @return data frame
#' @param ... additional arguments to pass
#' @export
predict.fastai.learner.Learner <- function(object, row, ...) {
#object$predict... | /R/predictions.R | permissive | Cdk29/fastai | R | false | false | 833 | r |
#' @title Predict
#'
#' @description Prediction on `item`, fully decoded, loss function decoded and probabilities
#'
#' @param object the model
#' @param row row
#' @return data frame
#' @param ... additional arguments to pass
#' @export
predict.fastai.learner.Learner <- function(object, row, ...) {
#object$predict... |
perc.cis <- function(object, ncomp = object$ncomp, conf = .95,
type = c("coefficients",
"loadings", "weights")) {
if ((object$val.method == "none" | object$val.method == "loo")) {
stop("No bootstrapping was done for this model")
}
conf <- conf
Bootstraps <... | /R/perc.cis.R | no_license | cwmiller21/mvdalab | R | false | false | 1,503 | r | perc.cis <- function(object, ncomp = object$ncomp, conf = .95,
type = c("coefficients",
"loadings", "weights")) {
if ((object$val.method == "none" | object$val.method == "loo")) {
stop("No bootstrapping was done for this model")
}
conf <- conf
Bootstraps <... |
grad.joint.loglike.one.part.model <-
function(para,para.nuisance,X.aug,Y,prod.mat,X.test.coeff.index,
Z, dat.surv, Z.test.coeff.index,
nsample,N,
gh.weights,gh.nodes,quad.n... | /R/grad.joint.loglike.one.part.model.R | no_license | JiyuanHu/JointMM | R | false | false | 798 | r | grad.joint.loglike.one.part.model <-
function(para,para.nuisance,X.aug,Y,prod.mat,X.test.coeff.index,
Z, dat.surv, Z.test.coeff.index,
nsample,N,
gh.weights,gh.nodes,quad.n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jointPCA.R
\name{jointPCA}
\alias{jointPCA}
\title{Joint Decomposition with Principal Component Analysis}
\usage{
jointPCA(
dataset,
group,
comp_num,
weighting = NULL,
max_ite = 100,
max_err = 1e-04,
proj_dataset = NULL,
proj_... | /man/jointPCA.Rd | no_license | CHuanSite/PJD | R | false | true | 1,844 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jointPCA.R
\name{jointPCA}
\alias{jointPCA}
\title{Joint Decomposition with Principal Component Analysis}
\usage{
jointPCA(
dataset,
group,
comp_num,
weighting = NULL,
max_ite = 100,
max_err = 1e-04,
proj_dataset = NULL,
proj_... |
library(magrittr)
library(rgdal)
library(sf)
library(sp)
crs <- "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"
layer <- "ke_major-roads"
layer <- "nairobi_roads_2010"
layer <- "Nairobi_Roads_GIS"
file_name <- "roads_final_checked"
dsn <- paste(getwd(), "supporting_files", layer, sep = "/")
ke_road... | /scripts/roads.R | no_license | robtenorio/classify-accidents | R | false | false | 566 | r | library(magrittr)
library(rgdal)
library(sf)
library(sp)
crs <- "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"
layer <- "ke_major-roads"
layer <- "nairobi_roads_2010"
layer <- "Nairobi_Roads_GIS"
file_name <- "roads_final_checked"
dsn <- paste(getwd(), "supporting_files", layer, sep = "/")
ke_road... |
plot3 <- function(dir) {
Table0 <- read.table("household_power_consumption.txt",header=FALSE,sep=";",skip = 60000,nrows = 10000)
##Approximate date range
colnames(Table0) <- colnames(read.table("household_power_consumption.txt",header=TRUE,sep=";",nrows = 1))
##Sets column names
Table <- Table0[(Table0$D... | /plot3.R | no_license | Gotch/ExData_Plotting1 | R | false | false | 1,084 | r | plot3 <- function(dir) {
Table0 <- read.table("household_power_consumption.txt",header=FALSE,sep=";",skip = 60000,nrows = 10000)
##Approximate date range
colnames(Table0) <- colnames(read.table("household_power_consumption.txt",header=TRUE,sep=";",nrows = 1))
##Sets column names
Table <- Table0[(Table0$D... |
# Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i... | /R/Municipality.r | no_license | wangrenfeng0/r-sdk | R | false | false | 20,247 | r | # Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i... |
library(sp)
library(rgdal)
library(raster)
library(rgeos)
fire_Rx = readOGR('./gis/poly/FM_RxBurnHistory.shp', layer='FM_RxBurnHistory')
#clean up subunit id field called FACTS_S
fire_Rx$FACTS_S = as.character(fire_Rx$FACTS_S)
true = ifelse(is.na(fire_Rx$FACTS_S), FALSE, nchar(fire_Rx$FACTS_S) > 19)
fire_Rx$FACTS_S[tr... | /scripts/merge_FMNF_fire_polys.R | no_license | mcglinnlab/se_veg | R | false | false | 2,925 | r | library(sp)
library(rgdal)
library(raster)
library(rgeos)
fire_Rx = readOGR('./gis/poly/FM_RxBurnHistory.shp', layer='FM_RxBurnHistory')
#clean up subunit id field called FACTS_S
fire_Rx$FACTS_S = as.character(fire_Rx$FACTS_S)
true = ifelse(is.na(fire_Rx$FACTS_S), FALSE, nchar(fire_Rx$FACTS_S) > 19)
fire_Rx$FACTS_S[tr... |
# bulk-prepare_calc_CpG_PDR.R - this script takes the output files generated by bulk-bam2epiallele.R
# ans splits them by chromosome to allow for downstream pipeline analyses to be processed in parallel
require(optparse)
require(genomation)
require(GenomicRanges)
# Input arguments
option_list <- list(
make_option(... | /preprocessing/RRBS/bulk-prepare_calc_CpG_PDR.R | permissive | gladelephant/singlecellglioma-verhaaklab | R | false | false | 3,613 | r | # bulk-prepare_calc_CpG_PDR.R - this script takes the output files generated by bulk-bam2epiallele.R
# ans splits them by chromosome to allow for downstream pipeline analyses to be processed in parallel
require(optparse)
require(genomation)
require(GenomicRanges)
# Input arguments
option_list <- list(
make_option(... |
\name{is_single_positive_integer}
\alias{is_single_positive_integer}
\title{Is single positive integer}
\usage{
is_single_positive_integer(x)
}
\arguments{
\item{x}{an R object}
}
\description{
Tests if an object is a single positive integer
}
\examples{
is_single_positive_integer(1.0) # TRUE
is_single_positive_... | /man/is_single_positive_integer.Rd | no_license | gastonstat/tester | R | false | false | 553 | rd | \name{is_single_positive_integer}
\alias{is_single_positive_integer}
\title{Is single positive integer}
\usage{
is_single_positive_integer(x)
}
\arguments{
\item{x}{an R object}
}
\description{
Tests if an object is a single positive integer
}
\examples{
is_single_positive_integer(1.0) # TRUE
is_single_positive_... |
## usethis namespace: start
#' @importFrom Rcpp sourceCpp
## usethis namespace: end
NULL
#' @importFrom Rcpp evalCpp
#' @importFrom Matrix colSums rowSums colMeans rowMeans
#' @importFrom methods setClass setOldClass setClassUnion slot
#' slot<- setMethod new signature slotNames is
#' @importClassesFrom Matrix dgCMatr... | /R/object.R | permissive | Wang-Cankun/Bobro | R | false | false | 8,766 | r | ## usethis namespace: start
#' @importFrom Rcpp sourceCpp
## usethis namespace: end
NULL
#' @importFrom Rcpp evalCpp
#' @importFrom Matrix colSums rowSums colMeans rowMeans
#' @importFrom methods setClass setOldClass setClassUnion slot
#' slot<- setMethod new signature slotNames is
#' @importClassesFrom Matrix dgCMatr... |
/Distribucion Beta y Weibull.R | no_license | DAP-web/Graficas-Distribuciones-de-Probabilidad | R | false | false | 1,021 | r | ||
#Combine data files for predictor analysis
outdir="/Users/adaemen/Dropbox/drug_predictors/combined"
setwd(outdir)
outfile="BCCL_combined_data.4.txt"
outfile2="BCCL_combined_data.4.noNA.txt"
#Cell line info
cell_line_datafile="/Users/adaemen/Dropbox/drug_predictors/BCCL_data_list_v2.txt"
cell_data_import=read... | /LBNL/drug_predictors/combinePredictorData_AD_v2.R | no_license | obigriffith/analysis-projects-R | R | false | false | 10,943 | r | #Combine data files for predictor analysis
outdir="/Users/adaemen/Dropbox/drug_predictors/combined"
setwd(outdir)
outfile="BCCL_combined_data.4.txt"
outfile2="BCCL_combined_data.4.noNA.txt"
#Cell line info
cell_line_datafile="/Users/adaemen/Dropbox/drug_predictors/BCCL_data_list_v2.txt"
cell_data_import=read... |
setwd("C:/Users/Thiago Inserra/Desktop/Coursera/Getting_Cleaning_Project")
## Whether to create a subdirectory:
if (!file.exists("UCI HAR Dataset")) {
dir.create("UCI HAR Dataset")
}
## URL from which to download project data:
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HA... | /run_analysis.R | no_license | tinserra/Getting_Cleaning_Project | R | false | false | 3,722 | r | setwd("C:/Users/Thiago Inserra/Desktop/Coursera/Getting_Cleaning_Project")
## Whether to create a subdirectory:
if (!file.exists("UCI HAR Dataset")) {
dir.create("UCI HAR Dataset")
}
## URL from which to download project data:
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HA... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imagine-main.R
\docType{data}
\name{wbImage}
\alias{wbImage}
\title{Data matrix to be used as example image.}
\format{
A \code{matrix} with dimnensions 1280x720.
}
\usage{
wbImage
}
\description{
\code{matrix} object containig numeric data to... | /man/wbImage.Rd | no_license | LuisLauM/imagine | R | false | true | 380 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imagine-main.R
\docType{data}
\name{wbImage}
\alias{wbImage}
\title{Data matrix to be used as example image.}
\format{
A \code{matrix} with dimnensions 1280x720.
}
\usage{
wbImage
}
\description{
\code{matrix} object containig numeric data to... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ci.R
\name{ci}
\alias{ci}
\title{Miscellaneous helpers}
\usage{
ci(v)
}
\description{
Compute 95% CI (assume Gaussian random variable)
}
| /man/ci.Rd | no_license | Losses/mlisi | R | false | true | 215 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ci.R
\name{ci}
\alias{ci}
\title{Miscellaneous helpers}
\usage{
ci(v)
}
\description{
Compute 95% CI (assume Gaussian random variable)
}
|
library(Biostrings)
library(taxonomizr)
library(ggplot2)
library(ShortRead)
library(dplyr)
library(stringi)
library(forcats)
library(rBLAST)
library(multidplyr)
library(cowplot)
#devtools::install_github("tidyverse/multidplyr")
#devtools::install_github("mhahsler/rBLAST")
# Download SRA File:
srr=c('SRR11043488')
sys... | /Code/kraken-blast.R | no_license | developing-bioinformatics/Kraken2_compare | R | false | false | 2,261 | r | library(Biostrings)
library(taxonomizr)
library(ggplot2)
library(ShortRead)
library(dplyr)
library(stringi)
library(forcats)
library(rBLAST)
library(multidplyr)
library(cowplot)
#devtools::install_github("tidyverse/multidplyr")
#devtools::install_github("mhahsler/rBLAST")
# Download SRA File:
srr=c('SRR11043488')
sys... |
### Notes
# dementia, non-dementia
# male, female
# met/unmet needs
# generations
### HKCSS data on Unmet Need of Caregivers ###
library(xlsx);
library(outreg);
library(plyr);
library(psych);
library(stargazer);
############### add number of caregivers
data = work = read.csv("C:/Users/chens/OneDrive/research/Project... | /R/archive/unmet need 191120.r | no_license | chenshuangzhou/programming101 | R | false | false | 8,014 | r | ### Notes
# dementia, non-dementia
# male, female
# met/unmet needs
# generations
### HKCSS data on Unmet Need of Caregivers ###
library(xlsx);
library(outreg);
library(plyr);
library(psych);
library(stargazer);
############### add number of caregivers
data = work = read.csv("C:/Users/chens/OneDrive/research/Project... |
#Apply family of functions in R ----
# Execution time of Apply() fxn is faster then For Loop.
# Example:
# Getting the row means, of every row, of two columns in the following 10000 row dataframe:
N <- 10
N
x1 <- runif(N)
x2 <- runif(N)
x1
x2
d <- as.data.frame(cbind(x1, x2))
head(d)
# Loop: create a vec... | /Apply functions in R.R | no_license | vaishnavi-satone/Data-Analytics | R | false | false | 2,503 | r | #Apply family of functions in R ----
# Execution time of Apply() fxn is faster then For Loop.
# Example:
# Getting the row means, of every row, of two columns in the following 10000 row dataframe:
N <- 10
N
x1 <- runif(N)
x2 <- runif(N)
x1
x2
d <- as.data.frame(cbind(x1, x2))
head(d)
# Loop: create a vec... |
##
# Copyright (c) 2012-2013 LabKey Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | /server/test/modules/scriptpad/resources/reports/schemas/script_r.r | no_license | scchess/LabKey | R | false | false | 3,842 | r | ##
# Copyright (c) 2012-2013 LabKey Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... |
##Matrix inversion takes lots of computational power of a system.
##So there is lot of benefits in caching the inversion of matrix rather than computing
##it again again if data is same
## compCacheMat creates a list containing a function to perform following task
# 1. setting the value in matrix
# 2. getting the va... | /cachematrix.R | no_license | techyrajeev/ProgrammingAssignment2 | R | false | false | 1,087 | r | ##Matrix inversion takes lots of computational power of a system.
##So there is lot of benefits in caching the inversion of matrix rather than computing
##it again again if data is same
## compCacheMat creates a list containing a function to perform following task
# 1. setting the value in matrix
# 2. getting the va... |
ei.batch.set <- function(model,batchsize,feasible,lwr=0,upr=1,reps=100)
{
di <- ncol(model$design)
xnew <- matrix(NA,ncol=di,nrow=batchsize)
ynew <- rep(NA,batchsize)
eivals <- rep(NA,batchsize)
excidx <- NULL
for(i in 1:batchsize)
{
temp <- ei(model,lwr=lwr,upr=upr,reps)
... | /R/eiset.r | no_license | heavenmarshal/newlrcalib | R | false | false | 743 | r | ei.batch.set <- function(model,batchsize,feasible,lwr=0,upr=1,reps=100)
{
di <- ncol(model$design)
xnew <- matrix(NA,ncol=di,nrow=batchsize)
ynew <- rep(NA,batchsize)
eivals <- rep(NA,batchsize)
excidx <- NULL
for(i in 1:batchsize)
{
temp <- ei(model,lwr=lwr,upr=upr,reps)
... |
## Name: Elizabeth Lee
## Date: 2/9/15
## Function: EpiEstim package for R(t) estimation. Our hypothesis is that holiday periods have a dip in effective R.
## Filenames:
## Data Source: incidentCases_RtEstimation_dataExport.py; explore/Py_export/EpiEstim_totalILI_allLocs_S%s.csv
## Notes:
##
require(EpiEstim)
##... | /EpiEstim/RtEstimation_commented.R | no_license | eclee25/flu-holidays | R | false | false | 6,973 | r |
## Name: Elizabeth Lee
## Date: 2/9/15
## Function: EpiEstim package for R(t) estimation. Our hypothesis is that holiday periods have a dip in effective R.
## Filenames:
## Data Source: incidentCases_RtEstimation_dataExport.py; explore/Py_export/EpiEstim_totalILI_allLocs_S%s.csv
## Notes:
##
require(EpiEstim)
##... |
\name{installdep}
\alias{installdep}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
installdep
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
installdep(x)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{x}{
%% ... | /man/installdep.Rd | no_license | drsayedmetwaly/PUMA | R | false | false | 1,397 | rd | \name{installdep}
\alias{installdep}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
installdep
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
installdep(x)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{x}{
%% ... |
test_that("filter_site works", {
dt <- data.frame(
CrossProject_ID = rep("1000000", 6),
Site_Name = c("ousAvanto", "ousAvanto","ousAvanto",
"ousSkyra", "ousSkyra", "ousSkyra"),
Subject_Timepoint = c(1:3,3:5),
Age = c(8, 10, 14, 14, 17, 20),
stringsAsFactors = FALSE
)
# Chec... | /tests/testthat/test-filters.R | permissive | LCBC-UiO/MOAS | R | false | false | 5,192 | r | test_that("filter_site works", {
dt <- data.frame(
CrossProject_ID = rep("1000000", 6),
Site_Name = c("ousAvanto", "ousAvanto","ousAvanto",
"ousSkyra", "ousSkyra", "ousSkyra"),
Subject_Timepoint = c(1:3,3:5),
Age = c(8, 10, 14, 14, 17, 20),
stringsAsFactors = FALSE
)
# Chec... |
#' A toy data set
#'
#' @name toy1
NULL
io_toy1.getDataDir = function() {return(system.file("data",package="iDistance"))}
io_toy1.pkgdata.save = function(){
## save the data we will include in the R package
toy1 = generate.toy1()
save(toy1,file=paste0(io_toy1.getDataDir(),"/toy1.RData"))
}
generate.toy1 = fun... | /R/toy1.R | no_license | dill/inlabru | R | false | false | 2,966 | r | #' A toy data set
#'
#' @name toy1
NULL
io_toy1.getDataDir = function() {return(system.file("data",package="iDistance"))}
io_toy1.pkgdata.save = function(){
## save the data we will include in the R package
toy1 = generate.toy1()
save(toy1,file=paste0(io_toy1.getDataDir(),"/toy1.RData"))
}
generate.toy1 = fun... |
library(deaR)
### Name: undesirable_basic
### Title: Undesirable inputs and outputs for basic DEA model.
### Aliases: undesirable_basic
### ** Examples
data("Hua_Bian_2007")
# The third output is an undesirable output.
data_example <- read_data(Hua_Bian_2007,
ni = 2,
... | /data/genthat_extracted_code/deaR/examples/undesirable_basic.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 592 | r | library(deaR)
### Name: undesirable_basic
### Title: Undesirable inputs and outputs for basic DEA model.
### Aliases: undesirable_basic
### ** Examples
data("Hua_Bian_2007")
# The third output is an undesirable output.
data_example <- read_data(Hua_Bian_2007,
ni = 2,
... |
#2.5. For Loop
for(i in 1:5){
print("Hello R")
} | /R Programming A-Z/Section 2 - Core Programming Principles/2.5. For Loop.R | no_license | DanInacio/R | R | false | false | 50 | r | #2.5. For Loop
for(i in 1:5){
print("Hello R")
} |
setwd('~/Downloads/ocw/DataScienceSpecialization/exdata-002/project/01/ExData_Plotting1')
source('funcs.R')
plot2()
| /plot2.R | no_license | serkanserttop/ExData_Plotting1 | R | false | false | 116 | r | setwd('~/Downloads/ocw/DataScienceSpecialization/exdata-002/project/01/ExData_Plotting1')
source('funcs.R')
plot2()
|
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/jacknife_pop.R
\name{jacknife_populations}
\alias{jacknife_populations}
\title{Create jacknife samples of a genind object by population}
\usage{
jacknife_populations(x, sample_frac = 0.5, nreps = 1000)
}
\arguments{
\item{x}{genind ob... | /man/jacknife_populations.Rd | no_license | grmunjal/mmod | R | false | false | 999 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/jacknife_pop.R
\name{jacknife_populations}
\alias{jacknife_populations}
\title{Create jacknife samples of a genind object by population}
\usage{
jacknife_populations(x, sample_frac = 0.5, nreps = 1000)
}
\arguments{
\item{x}{genind ob... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/perc_beamplot.R
\name{perc_beamplot}
\alias{perc_beamplot}
\title{Create a beamplot using percentile values}
\usage{
perc_beamplot(rd, au_name = "Example Researcher", ...)
}
\arguments{
\item{rd}{is a dataframe with two columns: (i) publicati... | /man/perc_beamplot.Rd | no_license | cran/BibPlots | R | false | true | 1,858 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/perc_beamplot.R
\name{perc_beamplot}
\alias{perc_beamplot}
\title{Create a beamplot using percentile values}
\usage{
perc_beamplot(rd, au_name = "Example Researcher", ...)
}
\arguments{
\item{rd}{is a dataframe with two columns: (i) publicati... |
hb_counts<-read.table(file=paste0("~/Msc project/data/IBDH/HB.txt.gz"),header = T,row.names=1,sep="\t")
row.names(hb_counts) <- gsub(x = row.names(hb_counts), pattern = "_", replacement = "-")
names(hb_counts) <- gsub(x = names(hb_counts), pattern = "\\.", replacement = "-")
s_counts<-read.table(file=paste0("~/Msc pro... | /read_data_ibdh.R | no_license | CharlieChang1996/MononuclearPhagocytesAtlas | R | false | false | 1,339 | r | hb_counts<-read.table(file=paste0("~/Msc project/data/IBDH/HB.txt.gz"),header = T,row.names=1,sep="\t")
row.names(hb_counts) <- gsub(x = row.names(hb_counts), pattern = "_", replacement = "-")
names(hb_counts) <- gsub(x = names(hb_counts), pattern = "\\.", replacement = "-")
s_counts<-read.table(file=paste0("~/Msc pro... |
#install.packages("circlize")
library(circlize)
file <- "T6sig.txt"
fileContent <- read.csv(file, stringsAsFactors = FALSE)
genePosition <- read.csv("hg19_genePosition.txt", sep = "\t", stringsAsFactors = FALSE)
genePosition <- genePosition[genePosition[,2] %in% c(1:22,"X","Y"),]
genePosition <- genePosition[genePosit... | /s4_scz_vqtl_detection/circosPlot/s1_plot_pdf.R | no_license | cailab-tamu/SCZ_GE_Dispersion | R | false | false | 954 | r | #install.packages("circlize")
library(circlize)
file <- "T6sig.txt"
fileContent <- read.csv(file, stringsAsFactors = FALSE)
genePosition <- read.csv("hg19_genePosition.txt", sep = "\t", stringsAsFactors = FALSE)
genePosition <- genePosition[genePosition[,2] %in% c(1:22,"X","Y"),]
genePosition <- genePosition[genePosit... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_470}
\alias{movie_470}
\title{Megamind}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt1001526
}
\usage{
mo... | /man/movie_470.Rd | permissive | physthoth/networkdata | R | false | true | 643 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_470}
\alias{movie_470}
\title{Megamind}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt1001526
}
\usage{
mo... |
library(ngstk)
### Name: get_files_mtime
### Title: Function to check file last change time and according the
### requirement to return check value
### Aliases: get_files_mtime
### ** Examples
file_a <- tempfile()
file_b <- tempfile()
file.create(c(file_a, file_b))
get_files_mtime(input_files = c(file_a, file_b),... | /data/genthat_extracted_code/ngstk/examples/get_files_mtime.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 345 | r | library(ngstk)
### Name: get_files_mtime
### Title: Function to check file last change time and according the
### requirement to return check value
### Aliases: get_files_mtime
### ** Examples
file_a <- tempfile()
file_b <- tempfile()
file.create(c(file_a, file_b))
get_files_mtime(input_files = c(file_a, file_b),... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testcorr.R
\name{ac.test}
\alias{ac.test}
\title{Testing zero autocorrelation}
\usage{
ac.test(x, max.lag, alpha = 0.05, lambda = 2.576, plot = TRUE,
table = TRUE, var.name = NULL, scale.font = 1)
}
\arguments{
\item{x}{A numeric vect... | /man/ac.test.Rd | no_license | cran/testcorr | R | false | true | 3,212 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testcorr.R
\name{ac.test}
\alias{ac.test}
\title{Testing zero autocorrelation}
\usage{
ac.test(x, max.lag, alpha = 0.05, lambda = 2.576, plot = TRUE,
table = TRUE, var.name = NULL, scale.font = 1)
}
\arguments{
\item{x}{A numeric vect... |
library(dplyr)
library(data.table)
source('./R/functions.R')
source('./R/features.R') # Get features list
args = commandArgs(TRUE)
include_lab = as.logical(args[1]) # Include lab measurement?
include_ethdon = as.logical(args[2]) # Include patient's ethnicity and race, include details of donor info?
lag = as.numeric(a... | /R/prep_exp.R | no_license | angeliney/diabetes_prediction | R | false | false | 2,985 | r | library(dplyr)
library(data.table)
source('./R/functions.R')
source('./R/features.R') # Get features list
args = commandArgs(TRUE)
include_lab = as.logical(args[1]) # Include lab measurement?
include_ethdon = as.logical(args[2]) # Include patient's ethnicity and race, include details of donor info?
lag = as.numeric(a... |
library(pdist)
classify<-function(X,Y,k,testSample)
{
nClasses1=unique(Y)
nClasses=NROW(nClasses1)
i=NCOL(testSample)
n=nrow(X)
m=nrow(Y)
Yi=matrix(testSample,nrow=1,ncol=i)
Ydist <- pdist(X, Yi)
Ydist=as.matrix(Ydist)
iSort=order(Ydist)
iSort
P=matrix(0,nClasses,1)
P
y=iSort
for(i ... | /R/backupfinal.R | no_license | a1shadows/raudioanalysis | R | false | false | 10,740 | r | library(pdist)
classify<-function(X,Y,k,testSample)
{
nClasses1=unique(Y)
nClasses=NROW(nClasses1)
i=NCOL(testSample)
n=nrow(X)
m=nrow(Y)
Yi=matrix(testSample,nrow=1,ncol=i)
Ydist <- pdist(X, Yi)
Ydist=as.matrix(Ydist)
iSort=order(Ydist)
iSort
P=matrix(0,nClasses,1)
P
y=iSort
for(i ... |
#' Argument checking for the default multivariate normal prior.
#'
#' @param hyper The normal prior's hyperparameters: `NULL`, or a list with elements `mu` and `Sigma`, corresponding to a named mean vector and variance matrix (see Details).
#' @param param.names Vector of parameter names (see Details).
#' @param data.n... | /R/mvn.hyper.check.R | no_license | mlysy/msde | R | false | false | 2,845 | r | #' Argument checking for the default multivariate normal prior.
#'
#' @param hyper The normal prior's hyperparameters: `NULL`, or a list with elements `mu` and `Sigma`, corresponding to a named mean vector and variance matrix (see Details).
#' @param param.names Vector of parameter names (see Details).
#' @param data.n... |
### Exercise 3 ###
library(shiny)
library(ggplot2)
# Create a shiny server that creates a scatterplot.
server <- shinyServer(function(input, output) {
output$scatter <- renderPlot({
# It should take as an input the x_var, y_var, color, and size
# Save the result of `renderPlot` to output$scatter
# Store x... | /exercise-3/server.R | permissive | engv/ch16-shiny | R | false | false | 728 | r | ### Exercise 3 ###
library(shiny)
library(ggplot2)
# Create a shiny server that creates a scatterplot.
server <- shinyServer(function(input, output) {
output$scatter <- renderPlot({
# It should take as an input the x_var, y_var, color, and size
# Save the result of `renderPlot` to output$scatter
# Store x... |
library(Devore7)
### Name: ex12.16
### Title: R Data set: ex12.16
### Aliases: ex12.16
### Keywords: datasets
### ** Examples
data(ex12.16)
str(ex12.16)
| /data/genthat_extracted_code/Devore7/examples/ex12.16.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 160 | r | library(Devore7)
### Name: ex12.16
### Title: R Data set: ex12.16
### Aliases: ex12.16
### Keywords: datasets
### ** Examples
data(ex12.16)
str(ex12.16)
|
%%% $Id: baseline-class.Rd 193 2012-06-24 21:13:42Z kristl $
\name{baseline-class}
\Rdversion{1.1}
\docType{class}
\alias{baseline-class}
\alias{getBaseline,baseline-method}
\alias{getCall,baseline-method}
\alias{getCorrected,baseline-method}
\alias{getSpectra,baseline-method}
\title{Class "baseline"}
\desc... | /man/baseline-class.Rd | no_license | PrathamLearnsToCode/baseline | R | false | false | 2,057 | rd | %%% $Id: baseline-class.Rd 193 2012-06-24 21:13:42Z kristl $
\name{baseline-class}
\Rdversion{1.1}
\docType{class}
\alias{baseline-class}
\alias{getBaseline,baseline-method}
\alias{getCall,baseline-method}
\alias{getCorrected,baseline-method}
\alias{getSpectra,baseline-method}
\title{Class "baseline"}
\desc... |
#
# shopifyr: An R Interface to the Shopify API
#
# Copyright (C) 2014 Charlie Friedemann cfriedem @ gmail.com
# Shopify API (c) 2006-2014 Shopify Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# th... | /R/RecurringApplicationCharge.R | no_license | aashanand/shopifyr | R | false | false | 2,683 | r | #
# shopifyr: An R Interface to the Shopify API
#
# Copyright (C) 2014 Charlie Friedemann cfriedem @ gmail.com
# Shopify API (c) 2006-2014 Shopify Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# th... |
#this page is for the master gene query, including genes, pathways of genes, and custom gene lists
#it includes a specific function variable 'type' to change shiny module that is called (and assoc. fun) for the description page
genePage <- function (id, type) {
ns <- NS(id)
#this block is the logic to define the s... | /code/page_gene.R | no_license | Duke-GCB/ddh | R | false | false | 6,366 | r | #this page is for the master gene query, including genes, pathways of genes, and custom gene lists
#it includes a specific function variable 'type' to change shiny module that is called (and assoc. fun) for the description page
genePage <- function (id, type) {
ns <- NS(id)
#this block is the logic to define the s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FAIRStudy.R
\name{GetCohortData}
\alias{GetCohortData}
\title{GetCohortData}
\usage{
GetCohortData(Cohort, StudyObj, accumulatedData = FALSE)
}
\arguments{
\item{Cohort}{A FAIRsimulator \code{cohort} object}
\item{StudyObj}{A FAIRsimulator \... | /man/GetCohortData.Rd | permissive | HBGDki/FAIRsimulator | R | false | true | 607 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FAIRStudy.R
\name{GetCohortData}
\alias{GetCohortData}
\title{GetCohortData}
\usage{
GetCohortData(Cohort, StudyObj, accumulatedData = FALSE)
}
\arguments{
\item{Cohort}{A FAIRsimulator \code{cohort} object}
\item{StudyObj}{A FAIRsimulator \... |
# Map teaching schoosl with Crosstalk
# This script: reproject schools data to latlong
# Matt Dray
# March 2018
# Load packages -----------------------------------------------------------
library(dplyr) # data manipulation and pipes (%>%)
library(rgdal) # Geospatial Data Abstraction Library functions
library(geo... | /02_prep-geospatial.R | no_license | matt-dray/nctl-teaching-schools | R | false | false | 1,416 | r | # Map teaching schoosl with Crosstalk
# This script: reproject schools data to latlong
# Matt Dray
# March 2018
# Load packages -----------------------------------------------------------
library(dplyr) # data manipulation and pipes (%>%)
library(rgdal) # Geospatial Data Abstraction Library functions
library(geo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rp_test.R
\name{rp.sample}
\alias{rp.sample}
\title{Generates a test statistics sample of random projections}
\usage{
rp.sample(y,k = 2,pars1 = c(100,1),pars2 = c(2,7),seed = NULL)
}
\arguments{
\item{y}{a numeric vector or an object of the \... | /man/rp.sample.Rd | no_license | iMarcello/nortsTest | R | false | true | 2,744 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rp_test.R
\name{rp.sample}
\alias{rp.sample}
\title{Generates a test statistics sample of random projections}
\usage{
rp.sample(y,k = 2,pars1 = c(100,1),pars2 = c(2,7),seed = NULL)
}
\arguments{
\item{y}{a numeric vector or an object of the \... |
#' @title Target formats
#' @name tar_formats
#' @family Formats
#' @description Target archetypes for specialized storage formats.
#' @details These functions are shorthand for targets with specialized
#' storage formats. For example, `tar_qs(name, fun())` is equivalent to
#' `tar_target(name, fun(), format = "qs"... | /R/tar_formats.R | permissive | fkohrt/tarchetypes | R | false | false | 4,101 | r | #' @title Target formats
#' @name tar_formats
#' @family Formats
#' @description Target archetypes for specialized storage formats.
#' @details These functions are shorthand for targets with specialized
#' storage formats. For example, `tar_qs(name, fun())` is equivalent to
#' `tar_target(name, fun(), format = "qs"... |
library(shiny)
server <- function(input, output, session) {
}
ui <- fluidPage(
fluidRow(
column(6, offset=3,
h1("Title in one row")
)
),
fluidRow(
column(1,
actionButton("button", "Click")
),
column(6,
p("Row 2, Column 2 (button is col ... | /Apps_intro/Manual layout using Bootstraps grid system/app.R | no_license | danielbraas/ShinyDB | R | false | false | 377 | r | library(shiny)
server <- function(input, output, session) {
}
ui <- fluidPage(
fluidRow(
column(6, offset=3,
h1("Title in one row")
)
),
fluidRow(
column(1,
actionButton("button", "Click")
),
column(6,
p("Row 2, Column 2 (button is col ... |
options(blogdown.author = "Jolande Poel")
options(blogdown.ext = ".Rmd")
| /.Rprofile | no_license | jolandepoel/website | R | false | false | 73 | rprofile | options(blogdown.author = "Jolande Poel")
options(blogdown.ext = ".Rmd")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make.abc.R
\name{make.abc}
\alias{make.abc}
\title{Make the parameters in order to find a specific solution for a fixed lambda.}
\usage{
make.abc(object, lambda, tol = 1e-10)
}
\arguments{
\item{object}{ESPgenlasso object.}
\item{lambda}{a s... | /man/make.abc.Rd | no_license | jshwang0311/ESPgenlasso | R | false | true | 597 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make.abc.R
\name{make.abc}
\alias{make.abc}
\title{Make the parameters in order to find a specific solution for a fixed lambda.}
\usage{
make.abc(object, lambda, tol = 1e-10)
}
\arguments{
\item{object}{ESPgenlasso object.}
\item{lambda}{a s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bootstrap_k.R
\name{bootstrap_k}
\alias{bootstrap_k}
\title{Compute bootstrap (internal)}
\usage{
bootstrap_k(rgcca_res, ...)
}
\arguments{
\item{rgcca_res}{Result of rgcca function}
\item{...}{Further graphical parameters (see plot2D)}
}
\v... | /man/bootstrap_k.Rd | no_license | slkarkar/RGCCA | R | false | true | 428 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bootstrap_k.R
\name{bootstrap_k}
\alias{bootstrap_k}
\title{Compute bootstrap (internal)}
\usage{
bootstrap_k(rgcca_res, ...)
}
\arguments{
\item{rgcca_res}{Result of rgcca function}
\item{...}{Further graphical parameters (see plot2D)}
}
\v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.