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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/function_GwRetention.R
\name{GwRetention}
\alias{GwRetention}
\title{Calculate groundwater retention of nutrients}
\usage{
GwRetention(nfrz, nfs3, gts3, gd, par, unit.area = TRUE, nutrient = "tn")
}
\arguments{
\item{nfrz}{Data frame with two... | /man/GwRetention.Rd | no_license | pslota/HYPEtools | R | false | true | 3,801 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/function_GwRetention.R
\name{GwRetention}
\alias{GwRetention}
\title{Calculate groundwater retention of nutrients}
\usage{
GwRetention(nfrz, nfs3, gts3, gd, par, unit.area = TRUE, nutrient = "tn")
}
\arguments{
\item{nfrz}{Data frame with two... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{taxonInfo}
\alias{taxonInfo}
\title{Algae taxon validation}
\usage{
taxonInfo(data, algaeMetaData = NULL)
}
\arguments{
\item{data}{A validated algae data frame}
\item{algaeMetaData}{A data frame contain taxonomic lookup data. If null (default), uses metadata ... | /man/taxonInfo.Rd | no_license | mengeln/algaeMetrics | R | false | false | 769 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{taxonInfo}
\alias{taxonInfo}
\title{Algae taxon validation}
\usage{
taxonInfo(data, algaeMetaData = NULL)
}
\arguments{
\item{data}{A validated algae data frame}
\item{algaeMetaData}{A data frame contain taxonomic lookup data. If null (default), uses metadata ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fun_general.R
\name{toRegularTSStack}
\alias{toRegularTSStack}
\title{Convert a raster stack with irregular time observations to regular time series}
\usage{
toRegularTSStack(x, dts, fun, resol)
}
\arguments{
\item{x}{stack of observ... | /man/toRegularTSStack.Rd | permissive | RETURN-project/UpscaleRecovery | R | false | true | 876 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fun_general.R
\name{toRegularTSStack}
\alias{toRegularTSStack}
\title{Convert a raster stack with irregular time observations to regular time series}
\usage{
toRegularTSStack(x, dts, fun, resol)
}
\arguments{
\item{x}{stack of observ... |
## * Documentation - BuyseTest.options
#' @title Global options for BuyseTest package
#' @name BuyseTest.options
#' @include 0-onLoad.R
#'
#' @description Update or select global options for the BuyseTest package.
#'
#' @param ... options to be selected or updated
#' @param reinitialise should all the global parameters... | /R/BuyseTest.options.R | no_license | cran/BuyseTest | R | false | false | 6,083 | r | ## * Documentation - BuyseTest.options
#' @title Global options for BuyseTest package
#' @name BuyseTest.options
#' @include 0-onLoad.R
#'
#' @description Update or select global options for the BuyseTest package.
#'
#' @param ... options to be selected or updated
#' @param reinitialise should all the global parameters... |
% TODO File path/AT.nuclear.spin.from.particle.no.Rd
\name{AT.nuclear.spin.from.particle.no}
\alias{AT.nuclear.spin.from.particle.no}
\title{AT.nuclear.spin.from.particle.no}
\description{Returns nuclear spin from particle no}
\usage{AT.nuclear.spin.from.particle.no(particle.no)
}
\arguments{
\item{particle.no}{ part... | /man/AT.nuclear.spin.from.particle.no.Rd | no_license | cran/libamtrack | R | false | false | 712 | rd | % TODO File path/AT.nuclear.spin.from.particle.no.Rd
\name{AT.nuclear.spin.from.particle.no}
\alias{AT.nuclear.spin.from.particle.no}
\title{AT.nuclear.spin.from.particle.no}
\description{Returns nuclear spin from particle no}
\usage{AT.nuclear.spin.from.particle.no(particle.no)
}
\arguments{
\item{particle.no}{ part... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plottingmodelplots.R
\name{plot_cumgains}
\alias{plot_cumgains}
\title{Cumulative gains plot}
\usage{
plot_cumgains(
data = plot_input,
highlight_ntile = NA,
highlight_how = "plot_text",
save_fig = FALSE,
save_fig_filename = NA,
c... | /man/plot_cumgains.Rd | no_license | jurrr/modelplotr | R | false | true | 4,636 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plottingmodelplots.R
\name{plot_cumgains}
\alias{plot_cumgains}
\title{Cumulative gains plot}
\usage{
plot_cumgains(
data = plot_input,
highlight_ntile = NA,
highlight_how = "plot_text",
save_fig = FALSE,
save_fig_filename = NA,
c... |
## Takes model specification matrices of type SimMatrix (or lists of these
## matrices for multiple groups). Returns a SimSem object that contains
## templates for data generation and analyis.
model <- function(LY = NULL, PS = NULL, RPS = NULL, TE = NULL, RTE = NULL, BE = NULL,
VTE = NULL, VY = NULL, VPS = NULL, V... | /simsem/R/model.R | no_license | solomen313/simsem | R | false | false | 72,835 | r | ## Takes model specification matrices of type SimMatrix (or lists of these
## matrices for multiple groups). Returns a SimSem object that contains
## templates for data generation and analyis.
model <- function(LY = NULL, PS = NULL, RPS = NULL, TE = NULL, RTE = NULL, BE = NULL,
VTE = NULL, VY = NULL, VPS = NULL, V... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/desterieux.R
\docType{data}
\name{desterieux}
\alias{desterieux}
\title{Desterieux cortical parcellations}
\format{
A data.frame with 11341 observations and 11 variables
\describe{
\item{long}{coordinates for the x-axis}
\item{lat}{coordi... | /man/desterieux.Rd | permissive | ggseg/ggsegDesterieux | R | false | true | 961 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/desterieux.R
\docType{data}
\name{desterieux}
\alias{desterieux}
\title{Desterieux cortical parcellations}
\format{
A data.frame with 11341 observations and 11 variables
\describe{
\item{long}{coordinates for the x-axis}
\item{lat}{coordi... |
writeToFile <- function(object, fileName)
{
return(0);
tempSubpath <- "VisiStatLog"
tempFullPath <- file.path(tempdir(), tempSubpath)
tempFullPath <- gsub("//", "/", tempFullPath) # fix R bug that generate double slashes in OS X
dir.create(tempFullPath, showWarnings = FALSE)
write.csv(object, paste(tempFull... | /R/writeToFile.R | no_license | imkrishsub/VisiStat | R | false | false | 377 | r | writeToFile <- function(object, fileName)
{
return(0);
tempSubpath <- "VisiStatLog"
tempFullPath <- file.path(tempdir(), tempSubpath)
tempFullPath <- gsub("//", "/", tempFullPath) # fix R bug that generate double slashes in OS X
dir.create(tempFullPath, showWarnings = FALSE)
write.csv(object, paste(tempFull... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/st_weights.R
\name{st_kernel_weight}
\alias{st_kernel_weight}
\title{Calculate Kernel Weights}
\usage{
st_kernel_weight(x, knn, kernel = "uniform")
}
\arguments{
\item{x}{Spatial points. Typically the \code{geometry} column of an sf object.}
... | /man/st_kernel_weight.Rd | no_license | gejielin/sfweight | R | false | true | 520 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/st_weights.R
\name{st_kernel_weight}
\alias{st_kernel_weight}
\title{Calculate Kernel Weights}
\usage{
st_kernel_weight(x, knn, kernel = "uniform")
}
\arguments{
\item{x}{Spatial points. Typically the \code{geometry} column of an sf object.}
... |
BindTesterExtra <- R6::R6Class(
"BindTesterExtra",
portable = TRUE,
public = list(
check_return_value = function(bind_res, res) invisible(NULL),
patch_bind_values = identity,
requires_names = function() NA,
is_repeated = function() FALSE,
is_premature_clear = function() FALSE,
is_untouche... | /R/spec-meta-bind-tester-extra.R | no_license | wlattner/DBItest | R | false | false | 485 | r | BindTesterExtra <- R6::R6Class(
"BindTesterExtra",
portable = TRUE,
public = list(
check_return_value = function(bind_res, res) invisible(NULL),
patch_bind_values = identity,
requires_names = function() NA,
is_repeated = function() FALSE,
is_premature_clear = function() FALSE,
is_untouche... |
/Figure2.R | no_license | jianxuny/climate-chamber | R | false | false | 10,790 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trait_crop_dictionary.R
\docType{data}
\name{td_crop}
\alias{td_crop}
\title{Trait dictionary for Potato and Sweetpotato Trials}
\format{A data frame with 39 columns and 53 rows.}
\source{
International Potato Center, sweetpotato experimental... | /man/td_crop.Rd | permissive | CIP-RIU/traittools | R | false | true | 588 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trait_crop_dictionary.R
\docType{data}
\name{td_crop}
\alias{td_crop}
\title{Trait dictionary for Potato and Sweetpotato Trials}
\format{A data frame with 39 columns and 53 rows.}
\source{
International Potato Center, sweetpotato experimental... |
# functions to fetch biketown data
# https://www.biketownpdx.com/system-data
# pacman allows check for & install missing packages
if(!require("pacman")) (install.packages("pacman")); library(pacman)
pacman::p_load("lubridate")
pacman::p_load("dplyr")
pacman::p_load("stringr")
pacman::p_load("readr")
# using baseR
# ... | /code/fetch_biketown.R | no_license | kmattias/plot | R | false | false | 1,836 | r | # functions to fetch biketown data
# https://www.biketownpdx.com/system-data
# pacman allows check for & install missing packages
if(!require("pacman")) (install.packages("pacman")); library(pacman)
pacman::p_load("lubridate")
pacman::p_load("dplyr")
pacman::p_load("stringr")
pacman::p_load("readr")
# using baseR
# ... |
#' Backbone of the simulation model
#'
#' A module is a group of genes which, to some extent, shows the same
#' expression behaviour. Several modules are connected together such that
#' one or more genes from one module will regulate the expression of
#' another module. By creating chains of modules, a dynamic behavio... | /R/2_backbone.R | no_license | michalk8/dyngen | R | false | false | 5,055 | r | #' Backbone of the simulation model
#'
#' A module is a group of genes which, to some extent, shows the same
#' expression behaviour. Several modules are connected together such that
#' one or more genes from one module will regulate the expression of
#' another module. By creating chains of modules, a dynamic behavio... |
library(dplyr)
library(DiagrammeR)
create_graph() %>%
add_node(label = "Disorder", node_aes=node_aes(width=1, height=1, x=0, y=0, shape="rectangle", color="black", fillcolor="white")) %>%
add_node(label = "Norm\nViolation", node_aes=node_aes(width=1, height=1, x=3, y=0, shape="rectangle", color="black", fillcolor... | /syntax/graphs.R | no_license | clanfear/SocSem_102618 | R | false | false | 948 | r | library(dplyr)
library(DiagrammeR)
create_graph() %>%
add_node(label = "Disorder", node_aes=node_aes(width=1, height=1, x=0, y=0, shape="rectangle", color="black", fillcolor="white")) %>%
add_node(label = "Norm\nViolation", node_aes=node_aes(width=1, height=1, x=3, y=0, shape="rectangle", color="black", fillcolor... |
"epi.popsize" <- function (T1, T2, T12, conf.level = 0.95, verbose = FALSE)
{
N. <- c(((1 - conf.level) / 2), 1 - ((1 - conf.level) / 2))
z <- qnorm(N., mean = 0, sd = 1)[2]
lower <- "lower"
upper <- "upper"
N <- T1 * (T2 / T12)
p <- T1 / N
fcf <- sqrt(1 - (T2 / N))
wid... | /epiR/R/epi.popsize.R | no_license | albrizre/spatstat.revdep | R | false | false | 1,685 | r | "epi.popsize" <- function (T1, T2, T12, conf.level = 0.95, verbose = FALSE)
{
N. <- c(((1 - conf.level) / 2), 1 - ((1 - conf.level) / 2))
z <- qnorm(N., mean = 0, sd = 1)[2]
lower <- "lower"
upper <- "upper"
N <- T1 * (T2 / T12)
p <- T1 / N
fcf <- sqrt(1 - (T2 / N))
wid... |
tmleNews <- function(...){
RShowDoc("NEWS", package="tmle",...)
}
#-------------summary.tmle------------------
# create tmle summary object
# return values of psi, variance, epsilon,
# and info on estimation of Q and g factors, if available
#---------------------------------------
summary.tmle <- function(object,... | /R/tmle.R | no_license | pzivich/tmle | R | false | false | 62,796 | r |
tmleNews <- function(...){
RShowDoc("NEWS", package="tmle",...)
}
#-------------summary.tmle------------------
# create tmle summary object
# return values of psi, variance, epsilon,
# and info on estimation of Q and g factors, if available
#---------------------------------------
summary.tmle <- function(object,... |
#set working directory
#setwd("/rdsgpfs/general/user/cs3515/home/data")
#load asset
library(ASSET)
#load in p_sumstats
p_sumstats <- readRDS("/rdsgpfs/general/user/cs3515/home/cpa/p_sumstats2.Rda")
#assign variables
snp.vars <- p_sumstats$SNP
traits.lab <- c("monop", "insulin", "IL6", "tg","vitd")
beta.hat <- subset... | /Scripts/asset.R | no_license | Carla215/CPA | R | false | false | 1,046 | r | #set working directory
#setwd("/rdsgpfs/general/user/cs3515/home/data")
#load asset
library(ASSET)
#load in p_sumstats
p_sumstats <- readRDS("/rdsgpfs/general/user/cs3515/home/cpa/p_sumstats2.Rda")
#assign variables
snp.vars <- p_sumstats$SNP
traits.lab <- c("monop", "insulin", "IL6", "tg","vitd")
beta.hat <- subset... |
ui <- fluidPage(
titlePanel("Gene Expression in Human CD8 T cells"),
sidebarLayout(
sidebarPanel(
h4("GSE94964 & GSE106420 Merged"),
br(),
passwordInput("password", "Enter Password:", value = ""),
actionButton("go", "Submit"),
verbatimTextOutput("value"),
br(),
selec... | /ui.R | no_license | BryanMcd/shiny_CD8 | R | false | false | 704 | r | ui <- fluidPage(
titlePanel("Gene Expression in Human CD8 T cells"),
sidebarLayout(
sidebarPanel(
h4("GSE94964 & GSE106420 Merged"),
br(),
passwordInput("password", "Enter Password:", value = ""),
actionButton("go", "Submit"),
verbatimTextOutput("value"),
br(),
selec... |
\name{ICLUST.sort}
\alias{ICLUST.sort}
\alias{iclust.sort}
\title{Sort items by absolute size of cluster loadings}
\description{Given a cluster analysis or factor analysis loadings matrix, sort the items by the (absolute) size of each column of loadings. Used as part of ICLUST and SAPA analyses. The columns are rearra... | /man/ICLUST.sort.Rd | no_license | cran/psych | R | false | false | 2,098 | rd | \name{ICLUST.sort}
\alias{ICLUST.sort}
\alias{iclust.sort}
\title{Sort items by absolute size of cluster loadings}
\description{Given a cluster analysis or factor analysis loadings matrix, sort the items by the (absolute) size of each column of loadings. Used as part of ICLUST and SAPA analyses. The columns are rearra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/euler_13.R
\name{euler_13}
\alias{euler_13}
\title{Project Euler 13: Large sum}
\usage{
euler_13(data)
}
\arguments{
\item{data}{A matrix of integers.}
}
\description{
This is a solution to
\href{https://projecteuler.net/problem=13}{Euler pro... | /man/euler_13.Rd | permissive | nathaneastwood/euler | R | false | true | 364 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/euler_13.R
\name{euler_13}
\alias{euler_13}
\title{Project Euler 13: Large sum}
\usage{
euler_13(data)
}
\arguments{
\item{data}{A matrix of integers.}
}
\description{
This is a solution to
\href{https://projecteuler.net/problem=13}{Euler pro... |
library(shiny)
library(shinydashboard)
library(readxl)
library(shinyjs)
library(lubridate)
library(data.table)
library(plyr)
library(dplyr)
library(bda)
library(tools)
library(stringr)
library(ggplot2)
#setwd("C:/Users/Lisa/Documents/GitHub/ibriquet")
source("functions.R")
source("cleaning.R")
source("singleUser.R")
so... | /project.R | no_license | maxsock/ibriquet | R | false | false | 11,635 | r | library(shiny)
library(shinydashboard)
library(readxl)
library(shinyjs)
library(lubridate)
library(data.table)
library(plyr)
library(dplyr)
library(bda)
library(tools)
library(stringr)
library(ggplot2)
#setwd("C:/Users/Lisa/Documents/GitHub/ibriquet")
source("functions.R")
source("cleaning.R")
source("singleUser.R")
so... |
library(rsimsum)
### Name: nsim
### Title: Compute number of simulations required
### Aliases: nsim
### ** Examples
# Number of simulations required to produce an estimate to within 5%
# accuracy of the true coefficient of 0.349 with a 5% significance level,
# assuming the variance of the estimate is 0.0166 and 50%... | /data/genthat_extracted_code/rsimsum/examples/nsim.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 697 | r | library(rsimsum)
### Name: nsim
### Title: Compute number of simulations required
### Aliases: nsim
### ** Examples
# Number of simulations required to produce an estimate to within 5%
# accuracy of the true coefficient of 0.349 with a 5% significance level,
# assuming the variance of the estimate is 0.0166 and 50%... |
library(caret)
data <- read.csv('/home/hugues/Documents/eclipse/workspace/MML-regression/org.xtext.example.mml.tests/programmeMML/Boston.csv')
param_train <- trainControl(method = 'cv', number = 5)
training <- data
fit <- train(medv ~ ., data = training, method='rf', trControl=param_train)
pred <- predict(fit)... | /org.xtext.example.mml.tests/prog-gen/2020-01-16T16:50:36.472477/R_RF.R | no_license | hugues22/MML-regression | R | false | false | 473 | r | library(caret)
data <- read.csv('/home/hugues/Documents/eclipse/workspace/MML-regression/org.xtext.example.mml.tests/programmeMML/Boston.csv')
param_train <- trainControl(method = 'cv', number = 5)
training <- data
fit <- train(medv ~ ., data = training, method='rf', trControl=param_train)
pred <- predict(fit)... |
\name{voomWithQualityWeights}
\alias{voomWithQualityWeights}
\title{Combining observational-level with sample-specific quality weights for RNA-seq analysis}
\description{
Combine voom observational-level weights with sample-specific quality weights in a designed experiment.
}
\usage{
voomWithQualityWeights(count... | /man/voomWithQualityWeights.Rd | no_license | hdeberg/limma | R | false | false | 4,057 | rd | \name{voomWithQualityWeights}
\alias{voomWithQualityWeights}
\title{Combining observational-level with sample-specific quality weights for RNA-seq analysis}
\description{
Combine voom observational-level weights with sample-specific quality weights in a designed experiment.
}
\usage{
voomWithQualityWeights(count... |
#' Compute principal components of SNPs annotated to ontology terms.
#'
#' @param path Path to output file.
#' @param o An annotated \code{ontology} object.
#' @param data A \code{BEDData} object
#' @param stand Which standardization method to use. One of "none", "binom" (old Eigenstrat-style), "binom2" (new Eigenstrat... | /R/pc.R | permissive | SimonLarsen/higana | R | false | false | 8,062 | r | #' Compute principal components of SNPs annotated to ontology terms.
#'
#' @param path Path to output file.
#' @param o An annotated \code{ontology} object.
#' @param data A \code{BEDData} object
#' @param stand Which standardization method to use. One of "none", "binom" (old Eigenstrat-style), "binom2" (new Eigenstrat... |
### Terrence D. Jorgensen
### Last updated: 18 May 2021
### function to draw plausible values of factor scores from lavPredict
# library(blavaan)
# bfit <- bcfa(HS.model, data=HolzingerSwineford1939, save.lvs = TRUE,
# bcontrol=list(method="rjparallel"), group = "school",
# #target = "stan",... | /semTools/R/plausibleValues.R | no_license | memazouni/semTools | R | false | false | 21,965 | r | ### Terrence D. Jorgensen
### Last updated: 18 May 2021
### function to draw plausible values of factor scores from lavPredict
# library(blavaan)
# bfit <- bcfa(HS.model, data=HolzingerSwineford1939, save.lvs = TRUE,
# bcontrol=list(method="rjparallel"), group = "school",
# #target = "stan",... |
suppressPackageStartupMessages(source('data-raw/drug_utilities.R'))
suppressPackageStartupMessages(source('data-raw/biomarker_utilities.R'))
## get metadata from metadata_pharma_oncox.xlsx
metadata <- list()
for (elem in c('compounds','biomarkers')) {
metadata[[elem]] <- as.data.frame(openxlsx::read.xlsx(
"data-... | /data-raw/data-raw.R | permissive | sigven/pharmOncoX | R | false | false | 8,434 | r | suppressPackageStartupMessages(source('data-raw/drug_utilities.R'))
suppressPackageStartupMessages(source('data-raw/biomarker_utilities.R'))
## get metadata from metadata_pharma_oncox.xlsx
metadata <- list()
for (elem in c('compounds','biomarkers')) {
metadata[[elem]] <- as.data.frame(openxlsx::read.xlsx(
"data-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/VarSelection-Class.R
\docType{methods}
\name{Var_coordinates}
\alias{Var_coordinates}
\alias{Var_coordinates,VarSelection-method}
\title{Var_coordinates}
\usage{
\S4method{Var_coordinates}{VarSelection}(x)
}
\arguments{
\item{x}{an object fro... | /man/Var_coordinates-methods.Rd | no_license | lauzingaretti/LinkHD | R | false | true | 1,349 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/VarSelection-Class.R
\docType{methods}
\name{Var_coordinates}
\alias{Var_coordinates}
\alias{Var_coordinates,VarSelection-method}
\title{Var_coordinates}
\usage{
\S4method{Var_coordinates}{VarSelection}(x)
}
\arguments{
\item{x}{an object fro... |
rm(list=ls())
library(rjags)
library(jagsUI)
library(dplyr)
# MODEL 15.1 in Community data (all species): HR df and 1 beta for whole community
# sigma = exp(alpha(s) + observer(j,t)
# lambda = exp(alpha(s,t) + sp.site (s,j) + b1*fallowSG(j,t) + b2(s)*fallowAES(j,t) + b3(s)*fallowGREEN(j,t) + b3(s)*cropdiver(j,t) ... | /Ch. 2-3/Ch. 3/Data/15.1. DATA_x_[dcat_area_HRdetect]_beta(allsp)_sigma[alpha(s)_obs(j,t)]_lambda[alpha(s,t)_sp.site(s,j)_covAreas3(s,j,t)_covLands2(s,j,t)]_BPvaluesSP.r | no_license | anasanz/MyScripts | R | false | false | 20,360 | r | rm(list=ls())
library(rjags)
library(jagsUI)
library(dplyr)
# MODEL 15.1 in Community data (all species): HR df and 1 beta for whole community
# sigma = exp(alpha(s) + observer(j,t)
# lambda = exp(alpha(s,t) + sp.site (s,j) + b1*fallowSG(j,t) + b2(s)*fallowAES(j,t) + b3(s)*fallowGREEN(j,t) + b3(s)*cropdiver(j,t) ... |
require(rmarkdown)
require(markdown)
require(knitr)
render('E:/R-Programing/HypothesisTesting/HypothesisTesting.Rmd',html_document())
| /HypothesisTesting/HypothesisTesting.R | no_license | mrdua/R-Programing | R | false | false | 136 | r | require(rmarkdown)
require(markdown)
require(knitr)
render('E:/R-Programing/HypothesisTesting/HypothesisTesting.Rmd',html_document())
|
# Plotting discrimination versus age for CHARGE-AF
# Depends
library(data.table)
# Load data
charge_age_discrim <- fread(file='/data/arrhythmia/skhurshid/heterogeneity/charge_output_age.csv')
charge_age_discrim_recal <- fread(file='/data/arrhythmia/skhurshid/heterogeneity/charge_output_age_recal.csv')
# Plot discrim... | /discrim_plots_compare_recal.R | no_license | shaankhurshid/broad_ibm_afrisk | R | false | false | 3,717 | r | # Plotting discrimination versus age for CHARGE-AF
# Depends
library(data.table)
# Load data
charge_age_discrim <- fread(file='/data/arrhythmia/skhurshid/heterogeneity/charge_output_age.csv')
charge_age_discrim_recal <- fread(file='/data/arrhythmia/skhurshid/heterogeneity/charge_output_age_recal.csv')
# Plot discrim... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/top-n.R
\name{top_n}
\alias{top_n}
\alias{top_frac}
\title{Select top (or bottom) n rows (by value)}
\usage{
top_n(x, n, wt)
top_frac(x, n, wt)
}
\arguments{
\item{x}{a \code{\link[=tbl]{tbl()}} to filter}
\item{n}{number of rows to return ... | /man/top_n.Rd | permissive | krlmlr/dplyr | R | false | true | 1,784 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/top-n.R
\name{top_n}
\alias{top_n}
\alias{top_frac}
\title{Select top (or bottom) n rows (by value)}
\usage{
top_n(x, n, wt)
top_frac(x, n, wt)
}
\arguments{
\item{x}{a \code{\link[=tbl]{tbl()}} to filter}
\item{n}{number of rows to return ... |
#' @export plotSample
#'
#' @title Plot sample and frame
#'
#' @description Plot the sample and optionally the frame, background image (terrain), and lattice
#' (if HAL sample).
#'
#' @param x A \code{SpatialPointsDataFrame} produced by an SDraw sampling function. For example,
#' as produced by \code{sdraw(f... | /R/plot.sdrawSample.R | no_license | oliviergimenez/SDraw | R | false | false | 4,656 | r | #' @export plotSample
#'
#' @title Plot sample and frame
#'
#' @description Plot the sample and optionally the frame, background image (terrain), and lattice
#' (if HAL sample).
#'
#' @param x A \code{SpatialPointsDataFrame} produced by an SDraw sampling function. For example,
#' as produced by \code{sdraw(f... |
setwd("~/Data science specialization/Exploratory data analysis/assignment1")
filename <- "./household_power_consumption.txt"
data <- read.table(filename,
header = TRUE,
sep = ";",
colClasses = c("character", "character", rep("numeric",7)),
na =... | /Exploratory data analysis/assignment1/plot4.R | no_license | SohamSahaNeuroscience/datasciencecoursera | R | false | false | 1,510 | r | setwd("~/Data science specialization/Exploratory data analysis/assignment1")
filename <- "./household_power_consumption.txt"
data <- read.table(filename,
header = TRUE,
sep = ";",
colClasses = c("character", "character", rep("numeric",7)),
na =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SushiShinyPlot_functions.R
\name{shinyHistogram}
\alias{shinyHistogram}
\title{Shiny App for an Histogram.}
\usage{
shinyHistogram(dat)
}
\arguments{
\item{dat}{Data frame.}
}
\value{
Shiny App.
}
\description{
Shiny App for an Histogram.
}
\... | /man/shinyHistogram.Rd | no_license | SushiLab/SushiShinyPlot | R | false | true | 426 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SushiShinyPlot_functions.R
\name{shinyHistogram}
\alias{shinyHistogram}
\title{Shiny App for an Histogram.}
\usage{
shinyHistogram(dat)
}
\arguments{
\item{dat}{Data frame.}
}
\value{
Shiny App.
}
\description{
Shiny App for an Histogram.
}
\... |
filterDataset <- function(df) {
numeric.colums <- gtools::mixedsort(colnames(df)[grepl("X", colnames(df))])
df <- df[,numeric.colums]
dft <- t(df)
colnames(dft) <- paste0("g", seq(1,nrow(df)))
dft <- as.data.frame(dft)
return(dft)
}
leukemia <- function(model, X_pls, threshold=0.5, ncomp=NULL) {... | /d7/utils.R | no_license | Dirken/KMLMM | R | false | false | 633 | r | filterDataset <- function(df) {
numeric.colums <- gtools::mixedsort(colnames(df)[grepl("X", colnames(df))])
df <- df[,numeric.colums]
dft <- t(df)
colnames(dft) <- paste0("g", seq(1,nrow(df)))
dft <- as.data.frame(dft)
return(dft)
}
leukemia <- function(model, X_pls, threshold=0.5, ncomp=NULL) {... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/editTree.R
\name{remove_branches_from_node}
\alias{remove_branches_from_node}
\title{Cut tree at specified node}
\usage{
remove_branches_from_node(icceTree, node)
}
\arguments{
\item{icceTree}{icceTree data structure}
\item{node}{node number... | /man/remove_branches_from_node.Rd | permissive | ethanmoyer/ICCE | R | false | true | 659 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/editTree.R
\name{remove_branches_from_node}
\alias{remove_branches_from_node}
\title{Cut tree at specified node}
\usage{
remove_branches_from_node(icceTree, node)
}
\arguments{
\item{icceTree}{icceTree data structure}
\item{node}{node number... |
require(ggplot2)
require(RCurl)
#gsqAPI is a helper function that loads data in from a shared as public Google Spreadsheet.
gsqAPI = function(key,query,gid=0){ return( read.csv( paste( sep="",'http://spreadsheets.google.com/tq?', 'tqx=out:csv','&tq=', curlEscape(query), '&key=', key, '&gid=', gid) ) ) }
#Provide the ... | /f1djR/telemetrymap.R | no_license | sweemeng/f1DataJunkie | R | false | false | 4,014 | r | require(ggplot2)
require(RCurl)
#gsqAPI is a helper function that loads data in from a shared as public Google Spreadsheet.
gsqAPI = function(key,query,gid=0){ return( read.csv( paste( sep="",'http://spreadsheets.google.com/tq?', 'tqx=out:csv','&tq=', curlEscape(query), '&key=', key, '&gid=', gid) ) ) }
#Provide the ... |
## ------------------------------------------------------------------------
library('afpt')
## ------------------------------------------------------------------------
myBird <- Bird(
massTotal = 0.215,
wingSpan = 0.67,
wingArea = 0.0652,
name = 'Jackdaw',
name.scientific = 'Corvus monedula',
type = 'pas... | /data/genthat_extracted_code/afpt/vignettes/afpt-aerodynamic-model.R | no_license | surayaaramli/typeRrh | R | false | false | 4,790 | r | ## ------------------------------------------------------------------------
library('afpt')
## ------------------------------------------------------------------------
myBird <- Bird(
massTotal = 0.215,
wingSpan = 0.67,
wingArea = 0.0652,
name = 'Jackdaw',
name.scientific = 'Corvus monedula',
type = 'pas... |
# Empties Global Environment cache
rm(list=ls())
#Set working directory to current file location
#To set to own working directory
# select "Session->Set Working Directory->To Source File Location"
# then copy result in console into current "setwd("")".
#Importing packages. If not yet installed, packages can be inst... | /CCP India Create Network Matrices Men.R | no_license | LiamMcCafferty/IndiaCleanCooking | R | false | false | 8,076 | r | # Empties Global Environment cache
rm(list=ls())
#Set working directory to current file location
#To set to own working directory
# select "Session->Set Working Directory->To Source File Location"
# then copy result in console into current "setwd("")".
#Importing packages. If not yet installed, packages can be inst... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/downloadObj.R
\name{downloadObj}
\alias{downloadObj}
\title{downloadObj File Download Modules}
\usage{
downloadObj(input, output, session, place, oname, dobj)
}
\arguments{
\item{place}{is the place name, typically the value of inpu... | /man/downloadObj.Rd | no_license | ColoradoDemography/ProfileDashboard | R | false | true | 515 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/downloadObj.R
\name{downloadObj}
\alias{downloadObj}
\title{downloadObj File Download Modules}
\usage{
downloadObj(input, output, session, place, oname, dobj)
}
\arguments{
\item{place}{is the place name, typically the value of inpu... |
student_math<-student_df %>% filter(sat_math_25_pctl>0, lowincome_pct>0)
student_math %>% ggplot(aes(x=sat_math_25_pctl,y=lowincome_pct))+
geom_point()+
geom_smooth(method=lm)
student_read<-student_df %>% filter(sat_crit_read_25_pctl>0, lowincome_pct>0)
student_read %>% ggplot(aes(x=sat_crit_read_25_pctl,y=lowin... | /earning_lowincome.R | no_license | marley-p/urbanedu | R | false | false | 1,129 | r | student_math<-student_df %>% filter(sat_math_25_pctl>0, lowincome_pct>0)
student_math %>% ggplot(aes(x=sat_math_25_pctl,y=lowincome_pct))+
geom_point()+
geom_smooth(method=lm)
student_read<-student_df %>% filter(sat_crit_read_25_pctl>0, lowincome_pct>0)
student_read %>% ggplot(aes(x=sat_crit_read_25_pctl,y=lowin... |
install.packages("blogdown")
library(blogdown)
blogdown::new_site()
| /r_ile_programlamaya_giris/blogdown/blogdown.R | no_license | turhancan97/Modern_R_Programlama | R | false | false | 69 | r | install.packages("blogdown")
library(blogdown)
blogdown::new_site()
|
\name{RegWhy.rightParenthesis}
\alias{RegWhy.rightParenthesis}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{rightParenthesis
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
RegWhy.rightParenthesis()
}
%- maybe also 'us... | /R/RegWhy/man/RegWhy.rightParenthesis.Rd | no_license | dmerson/RegWhyMultiLanguage | R | false | false | 1,283 | rd | \name{RegWhy.rightParenthesis}
\alias{RegWhy.rightParenthesis}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{rightParenthesis
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
RegWhy.rightParenthesis()
}
%- maybe also 'us... |
library(RTextTools)
dataDirectory <- "~/data-playground/text-classification/data/"
data <- read.csv(paste(dataDirectory, "sunnyData.csv",sep = ""), header=TRUE)
dtMatrix <- create_matrix(data["Text"])
container <- create_container(dtMatrix, data$IsSunny, trainSize=1:11, virgin=FALSE)
model <- train_model(container, ... | /text-classification/simple-example.R | no_license | gcsekar/data-playground | R | false | false | 871 | r | library(RTextTools)
dataDirectory <- "~/data-playground/text-classification/data/"
data <- read.csv(paste(dataDirectory, "sunnyData.csv",sep = ""), header=TRUE)
dtMatrix <- create_matrix(data["Text"])
container <- create_container(dtMatrix, data$IsSunny, trainSize=1:11, virgin=FALSE)
model <- train_model(container, ... |
rm( list=ls())
n <- round( runif( 1, 20, 100 ))
marketReturn <- runif( n, 0, 0.009 )
predictedReturn <- runif( n, 0, 0.01 )
ZodiacInvestments <- data.frame( marketReturn, predictedReturn )
write.csv( ZodiacInvestments, file="ZodiacInvestments.csv" )
rm( list=ls())
| /Homework/BSTAT3322-H07/ZodiacInvestments.R | no_license | pxb7335/BSTAT3322 | R | false | false | 265 | r | rm( list=ls())
n <- round( runif( 1, 20, 100 ))
marketReturn <- runif( n, 0, 0.009 )
predictedReturn <- runif( n, 0, 0.01 )
ZodiacInvestments <- data.frame( marketReturn, predictedReturn )
write.csv( ZodiacInvestments, file="ZodiacInvestments.csv" )
rm( list=ls())
|
library(tidyverse)
library(vegan)
emergence1 <- full %>%
select(population,plant_number,ends_with("_e")) %>%
select(!contains("plant_e")) %>%
select(!contains("rivulet")) %>%
select(!contains("other")) %>%
mutate(plant_id = paste0(population,"_",plant_number))
emergence1[is.na(emergence1)] <- 0
emer... | /final_project/Untitled.R | no_license | elishartung/elishartung.github.io | R | false | false | 1,012 | r | library(tidyverse)
library(vegan)
emergence1 <- full %>%
select(population,plant_number,ends_with("_e")) %>%
select(!contains("plant_e")) %>%
select(!contains("rivulet")) %>%
select(!contains("other")) %>%
mutate(plant_id = paste0(population,"_",plant_number))
emergence1[is.na(emergence1)] <- 0
emer... |
# Jake Yeung
# Date of Creation: 2020-09-10
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/K562_round2/LDA_LSI_glmpca_downstream.R
# Downstream of LDA, LSI, and GLMPCA
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(irlba)
library(scchicF... | /scripts/rstudioserver_analysis/spikeins/K562_round2/LDA_LSI_glmpca_downstream.topn_filt.R | no_license | jakeyeung/sortchicAllScripts | R | false | false | 8,902 | r | # Jake Yeung
# Date of Creation: 2020-09-10
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/K562_round2/LDA_LSI_glmpca_downstream.R
# Downstream of LDA, LSI, and GLMPCA
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(irlba)
library(scchicF... |
#Oluwakemi Omotunde
#DATA 608
#HW 3
#Question 2
#Often you are asked whether particular States are improving their mortality rates (per cause)
#faster than, or slower than, the national average. Create a visualization that lets your clients
#see this for themselves for one cause of death at the time. Keep in ... | /DATA-608/Module 3/Question 2/server.R | no_license | komotunde/DATA-608 | R | false | false | 2,445 | r | #Oluwakemi Omotunde
#DATA 608
#HW 3
#Question 2
#Often you are asked whether particular States are improving their mortality rates (per cause)
#faster than, or slower than, the national average. Create a visualization that lets your clients
#see this for themselves for one cause of death at the time. Keep in ... |
##These functions will create a cache of matrix inversions to later retrieval.
##Repeated calculations with be retrieved from the cache rather than recalculated
##saving processing power.
##This function will create a list of functions to set and retrieve the matrices
##as well as set and retrieve the inverses of t... | /cachematrix.R | no_license | smith5566/ProgrammingAssignment2 | R | false | false | 1,652 | r |
##These functions will create a cache of matrix inversions to later retrieval.
##Repeated calculations with be retrieved from the cache rather than recalculated
##saving processing power.
##This function will create a list of functions to set and retrieve the matrices
##as well as set and retrieve the inverses of t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/argos.R
\name{argoSpeed}
\alias{argoSpeed}
\title{argoSpeed}
\usage{
argoSpeed(x)
}
\arguments{
\item{x}{a data.table containing tagID, locationDate,latitude, longitude.}
}
\value{
an updated data.table with speed as a new column.
}
\descript... | /man/argoSpeed.Rd | no_license | mpio-be/sdbvis | R | false | true | 407 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/argos.R
\name{argoSpeed}
\alias{argoSpeed}
\title{argoSpeed}
\usage{
argoSpeed(x)
}
\arguments{
\item{x}{a data.table containing tagID, locationDate,latitude, longitude.}
}
\value{
an updated data.table with speed as a new column.
}
\descript... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cm.R
\docType{methods}
\name{subset,cm-method}
\alias{subset,cm-method}
\title{Subset a CM Object}
\usage{
\S4method{subset}{cm}(x, subset, ...)
}
\arguments{
\item{x}{a \code{cm} object, i.e. inheriting from \code{\link{cm-class}}.}
\item{s... | /man/subset-cm-method.Rd | no_license | pablovaldes/oce | R | false | true | 947 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cm.R
\docType{methods}
\name{subset,cm-method}
\alias{subset,cm-method}
\title{Subset a CM Object}
\usage{
\S4method{subset}{cm}(x, subset, ...)
}
\arguments{
\item{x}{a \code{cm} object, i.e. inheriting from \code{\link{cm-class}}.}
\item{s... |
require(tidyverse); require(survival); require(survminer); require(ggsci)
#' Load current GOBACK file.
goback <- readRDS("//smb-main.ad.bcm.edu/genepi2/GOBACK/Datasets/goback_20230523.rds")
#' Organ system-level major defects variables, apart from the heart.
#' Will be used to identify children with CHD complicated b... | /analysis_Cox_models_for_BDRP_CHD_talk.R | permissive | schrawj/GOBACK | R | false | false | 8,292 | r | require(tidyverse); require(survival); require(survminer); require(ggsci)
#' Load current GOBACK file.
goback <- readRDS("//smb-main.ad.bcm.edu/genepi2/GOBACK/Datasets/goback_20230523.rds")
#' Organ system-level major defects variables, apart from the heart.
#' Will be used to identify children with CHD complicated b... |
## FrontMatter.R
# This personal function is used to create a string of information
# regarding the use version and package details for printing in documents.
# Richard T. Gray
FrontMatter <- function(packages = NULL, rstudio = NULL) {
# This function produces a string with useful information about the tools
#... | /code/FrontMatter.R | permissive | leftygray/Australian_HBV_model | R | false | false | 1,557 | r | ## FrontMatter.R
# This personal function is used to create a string of information
# regarding the use version and package details for printing in documents.
# Richard T. Gray
FrontMatter <- function(packages = NULL, rstudio = NULL) {
# This function produces a string with useful information about the tools
#... |
############################################
### SESAM Master thesis -- Plotting tool ###
############################################
# Authors: Bobby Xiong, Johannes Predel
# (C) 2020
#######################
### Input settings ####
#######################
session <- "2020-03-25__13-46-58_old_winter_week1"
#######... | /plots_elsevier.R | permissive | LocalEnergyMarkets/P2G-LiberalizedMarkets | R | false | false | 12,447 | r | ############################################
### SESAM Master thesis -- Plotting tool ###
############################################
# Authors: Bobby Xiong, Johannes Predel
# (C) 2020
#######################
### Input settings ####
#######################
session <- "2020-03-25__13-46-58_old_winter_week1"
#######... |
### contributed by Alexander Robitzsch (robitzsch@ipn.uni-kiel.de)
#'Imputation at level 2 by predictive mean matching
#'
#'Imputes univariate missing data at level 2 using predictive mean matching.
#'Variables are level 1 are aggregated at level 2. The group identifier at
#'level 2 must be indicated by \code{ty... | /R/mice.impute.2lony.pmm.r | no_license | danhphan/mice | R | false | false | 5,921 | r | ### contributed by Alexander Robitzsch (robitzsch@ipn.uni-kiel.de)
#'Imputation at level 2 by predictive mean matching
#'
#'Imputes univariate missing data at level 2 using predictive mean matching.
#'Variables are level 1 are aggregated at level 2. The group identifier at
#'level 2 must be indicated by \code{ty... |
\name{bayesglm.fit}
\alias{bayesglm.fit}
\title{Fitting Generalized Linear Models and Bayesian marginal likelihood evaluation}
\description{A version of glm.fit rewritten in C; also returns marginal
likelihoods for Baysesian model comparison}
\usage{bayesglm.fit(x, y, weights = rep(1, nobs),
start = NULL,... | /man/bayesglm.Rd | no_license | aespar21/BAS | R | false | false | 2,819 | rd | \name{bayesglm.fit}
\alias{bayesglm.fit}
\title{Fitting Generalized Linear Models and Bayesian marginal likelihood evaluation}
\description{A version of glm.fit rewritten in C; also returns marginal
likelihoods for Baysesian model comparison}
\usage{bayesglm.fit(x, y, weights = rep(1, nobs),
start = NULL,... |
##--------------------------------------- Influenza biomarkers project overview
# The goal of this project is to computationally identify biomkarers that validate the efficacy of an in-vitro "organ-on-chip" model of influenza infection.
# In particular, we hope to identify biomarkers that capture the idiosyncracies of ... | /R/transcriptomics/RNA-seq_COPD_NHB_main.R | no_license | midas-wyss/influenza_biomarkers | R | false | false | 43,239 | r | ##--------------------------------------- Influenza biomarkers project overview
# The goal of this project is to computationally identify biomkarers that validate the efficacy of an in-vitro "organ-on-chip" model of influenza infection.
# In particular, we hope to identify biomarkers that capture the idiosyncracies of ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redcapConnection.R
\name{redcapConnection}
\alias{redcapConnection}
\title{Connect to a REDCap Database}
\usage{
redcapConnection(url = getOption("redcap_api_url"), token, conn, project,
config = httr::config())
}
\arguments{
\ite... | /man/redcapConnection.Rd | no_license | kholsteen/redcapAPI | R | false | true | 3,624 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redcapConnection.R
\name{redcapConnection}
\alias{redcapConnection}
\title{Connect to a REDCap Database}
\usage{
redcapConnection(url = getOption("redcap_api_url"), token, conn, project,
config = httr::config())
}
\arguments{
\ite... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# This will be used to create and object contaitin functions to set an retrieva a matrix and its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv<<-NULL
set<-function(y){
... | /cachematrix.R | no_license | ja-vivanco/ProgrammingAssignment2 | R | false | false | 918 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# This will be used to create and object contaitin functions to set an retrieva a matrix and its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv<<-NULL
set<-function(y){
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loglik_dm.R
\name{loglik_dm}
\alias{loglik_dm}
\title{log-likelihood function for Dirichlet-multinomial (DM).}
\usage{
loglik_dm(X, alpha)
}
\arguments{
\item{X}{a data frame or matrix containing the count data. Rows of the matrix represent o... | /man/loglik_dm.Rd | no_license | ZRChao/adaANCOM | R | false | true | 557 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loglik_dm.R
\name{loglik_dm}
\alias{loglik_dm}
\title{log-likelihood function for Dirichlet-multinomial (DM).}
\usage{
loglik_dm(X, alpha)
}
\arguments{
\item{X}{a data frame or matrix containing the count data. Rows of the matrix represent o... |
library(shiny)
cities <- list("'s-Hertogenbosch", "Tilburg", "Woensel")
shinyUI(
fluidPage(
titlePanel("Dropdown"),
sidebarLayout(
sidebarPanel(
selectInput("city", "What city is the best?", cities)
),
mainPanel(
... | /05 SelectInput/ui.r | no_license | SimchaGD/Shiny-Tutorial | R | false | false | 385 | r | library(shiny)
cities <- list("'s-Hertogenbosch", "Tilburg", "Woensel")
shinyUI(
fluidPage(
titlePanel("Dropdown"),
sidebarLayout(
sidebarPanel(
selectInput("city", "What city is the best?", cities)
),
mainPanel(
... |
\name{RandomLinks}
\alias{RandomLinks}
\title{Random model}
\description{RandomLinks.}
\usage{
RandomLinks(n, S, C=0.15)
}
\arguments{
\item{n}{the number of sets of links to generate.}
\item{S}{the number of species in the pool.}
\item{C}{the directed connectance (number of links / number of possible
links) o... | /man/RandomLinks.Rd | no_license | quicklizard99/Basingstoke | R | false | false | 626 | rd | \name{RandomLinks}
\alias{RandomLinks}
\title{Random model}
\description{RandomLinks.}
\usage{
RandomLinks(n, S, C=0.15)
}
\arguments{
\item{n}{the number of sets of links to generate.}
\item{S}{the number of species in the pool.}
\item{C}{the directed connectance (number of links / number of possible
links) o... |
\name{PHS.lmhat}
\alias{PHS.lmhat}
\title{Regression and elimination of outliers having highest leverage}
\description{This function calculates the stepwise backward OLS identifying new outliers as the observations having leverage larger than quantile (1-Cut).}
\usage{PHS.lmhat(form, regdata, Outliers, Cut, Silent = TR... | /Goodies/man/PHS.lmhat.Rd | no_license | Kuvelkar/TEST | R | false | false | 1,535 | rd | \name{PHS.lmhat}
\alias{PHS.lmhat}
\title{Regression and elimination of outliers having highest leverage}
\description{This function calculates the stepwise backward OLS identifying new outliers as the observations having leverage larger than quantile (1-Cut).}
\usage{PHS.lmhat(form, regdata, Outliers, Cut, Silent = TR... |
## Plot3
raw_data <- read.table(text = grep("^[1,2]/2/2007",
readLines("household_power_consumption.txt"),value=TRUE),
sep=";",
na.strings="?",
as.is=T,
col.names=c("Date","Time","Global_active_power","Global_reactive_power","Voltage","G... | /plot3.R | no_license | apprenti/ExData_Plotting1 | R | false | false | 997 | r | ## Plot3
raw_data <- read.table(text = grep("^[1,2]/2/2007",
readLines("household_power_consumption.txt"),value=TRUE),
sep=";",
na.strings="?",
as.is=T,
col.names=c("Date","Time","Global_active_power","Global_reactive_power","Voltage","G... |
source('./R/utils_av.R')
country_name <- "Colombia"
country_data_level_ts <- get_raw_data_ts(country = country_name)
rgdp_level_ts <- country_data_level_ts[,"rgdp"]
rgdp_yoy_ts <- make_yoy_ts(rgdp_level_ts)
# # Argentina only
# emae_level_ts <- country_data_level_ts[,"emae"]
# emae_yoy_ts <- make_yoy_ts(emae_level... | /R/Bolivia_search_one_country_by_steps_check_cv.R | no_license | Allisterh/sarimax_var_search | R | false | false | 6,915 | r | source('./R/utils_av.R')
country_name <- "Colombia"
country_data_level_ts <- get_raw_data_ts(country = country_name)
rgdp_level_ts <- country_data_level_ts[,"rgdp"]
rgdp_yoy_ts <- make_yoy_ts(rgdp_level_ts)
# # Argentina only
# emae_level_ts <- country_data_level_ts[,"emae"]
# emae_yoy_ts <- make_yoy_ts(emae_level... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/connect.R
\name{renameModel}
\alias{renameModel}
\title{Renames existing model and modifies all related session_id's}
\usage{
renameModel(old_model_id, new_model_id)
}
\arguments{
\item{old_model_id}{Model_id you want to change}
\item{new_mo... | /man/renameModel.Rd | no_license | kpnDataScienceLab/modelFactoryR | R | false | true | 578 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/connect.R
\name{renameModel}
\alias{renameModel}
\title{Renames existing model and modifies all related session_id's}
\usage{
renameModel(old_model_id, new_model_id)
}
\arguments{
\item{old_model_id}{Model_id you want to change}
\item{new_mo... |
context("indent curly brackets")
test_that("indention on one-liner curley only is not changed", {
expect_warning(test_collection("indention_curly_brackets",
"one_line_curly",
transformer = style_indent_curly), NA)
})
test_that("indention with multi-... | /tests/testthat/test-indention_curly.R | no_license | jimhester/styler | R | false | false | 1,331 | r | context("indent curly brackets")
test_that("indention on one-liner curley only is not changed", {
expect_warning(test_collection("indention_curly_brackets",
"one_line_curly",
transformer = style_indent_curly), NA)
})
test_that("indention with multi-... |
context("holey")
## TODO: Rename context
## TODO: Add more tests
test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
| /tests/testthat/test-holey.R | no_license | hypertidy/polyggon | R | false | false | 131 | r | context("holey")
## TODO: Rename context
## TODO: Add more tests
test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
|
/src/R/남중구/AssociationRule/AssociationRule.R | no_license | kinow83/test | R | false | false | 945 | r | ||
#'
#' This script sets up the R environment in the
#' Google Colab virtual maschine. Mainly it
#' downloads the precompiles R packages and
#' installs needed Ubuntu packages.
#' Furthermore it downloads all needed datasets
#' to run the workshop analysis pipelines.
#'
#' install needed ubuntu packages
message("Up... | /r-env-setup-script.R | permissive | c-mertes/RNAseq-ASHG19 | R | false | false | 2,894 | r | #'
#' This script sets up the R environment in the
#' Google Colab virtual maschine. Mainly it
#' downloads the precompiles R packages and
#' installs needed Ubuntu packages.
#' Furthermore it downloads all needed datasets
#' to run the workshop analysis pipelines.
#'
#' install needed ubuntu packages
message("Up... |
cmdargs <- c("-m","mask.nii.gz", "--set1", "/mnt/stressdevlab/stress_pipeline/Group/FaceReactivity/NewNeuropoint/datafiles/setfilenames_fearGTcalm.txt",
"--setlabels1", "/mnt/stressdevlab/stress_pipeline/Group/FaceReactivity/NewNeuropoint/datafiles/stress_psych-midpoint5.csv",
"--model", "mo... | /ip_eptot.fear/readargs.R | no_license | jflournoy/sea_np_models | R | false | false | 497 | r |
cmdargs <- c("-m","mask.nii.gz", "--set1", "/mnt/stressdevlab/stress_pipeline/Group/FaceReactivity/NewNeuropoint/datafiles/setfilenames_fearGTcalm.txt",
"--setlabels1", "/mnt/stressdevlab/stress_pipeline/Group/FaceReactivity/NewNeuropoint/datafiles/stress_psych-midpoint5.csv",
"--model", "mo... |
rm(list = ls())
library(COVIDYPLL)
library(data.table)
library(ggplot2)
library(rstan)
library(MASS)
library(tidyverse)
library(brms)
library(ggpubr)
library(parallel)
library(loo)
i <- 18 # there are models 1, 2, 3 (4 and 5 are deleted)
fit_hurdle <- readRDS(paste0("inst/impute/results/fit_hurdle_agg", i,".RDS"))
i... | /inst/impute/gather_impute_result.R | no_license | Owain-S/COVIDYPLL | R | false | false | 22,420 | r | rm(list = ls())
library(COVIDYPLL)
library(data.table)
library(ggplot2)
library(rstan)
library(MASS)
library(tidyverse)
library(brms)
library(ggpubr)
library(parallel)
library(loo)
i <- 18 # there are models 1, 2, 3 (4 and 5 are deleted)
fit_hurdle <- readRDS(paste0("inst/impute/results/fit_hurdle_agg", i,".RDS"))
i... |
.onAttach <- function(libname, pkgname) {
# Runs when attached to search() path such as by library() or require()
if (interactive()) {
packageStartupMessage('flexrsurv ',as.character(packageVersion("flexrsurv")),'. For help type ?flexrsurv')
}
}
| /R/onAttach.R | no_license | cran/flexrsurv | R | false | false | 252 | r | .onAttach <- function(libname, pkgname) {
# Runs when attached to search() path such as by library() or require()
if (interactive()) {
packageStartupMessage('flexrsurv ',as.character(packageVersion("flexrsurv")),'. For help type ?flexrsurv')
}
}
|
#' @export
makeRLearner.classif.LiblineaRL2SVC = function() {
makeRLearnerClassif(
cl = "classif.LiblineaRL2SVC",
package = "LiblineaR",
par.set = makeParamSet(
makeDiscreteLearnerParam(id = "type", values = c(1L, 2L)),
makeNumericLearnerParam(id = "cost", default = 1, lower = 0),
## FIX... | /R/RLearner_classif_LiblineaRL2SVC.R | no_license | sandeep433/mlr | R | false | false | 1,500 | r | #' @export
makeRLearner.classif.LiblineaRL2SVC = function() {
makeRLearnerClassif(
cl = "classif.LiblineaRL2SVC",
package = "LiblineaR",
par.set = makeParamSet(
makeDiscreteLearnerParam(id = "type", values = c(1L, 2L)),
makeNumericLearnerParam(id = "cost", default = 1, lower = 0),
## FIX... |
setwd("D:/Downloads/R")
complete <- function(directory, id) {
files <- list.files(path = directory, pattern = "*.csv")
ID <- nobs <- vector()
for(i in id){
temp <- read.csv(paste(directory, files[i], sep = "/"))
ID <- c(ID, i)
nobs <- c(nobs, sum(!is.na(temp$sulfate) & !is.na(temp$nitrate)))
}
ret... | /Course-2-R-programming/week2-Assignment-part2.R | no_license | Arind098/R-Coursera-Assignment | R | false | false | 348 | r | setwd("D:/Downloads/R")
complete <- function(directory, id) {
files <- list.files(path = directory, pattern = "*.csv")
ID <- nobs <- vector()
for(i in id){
temp <- read.csv(paste(directory, files[i], sep = "/"))
ID <- c(ID, i)
nobs <- c(nobs, sum(!is.na(temp$sulfate) & !is.na(temp$nitrate)))
}
ret... |
require(stringr)
require(dplyr)
require(broom)
require(scorecard)
require(caret)
require(foreach)
require(glmnet)
require(gridExtra)
require(tibble)
require(reshape2)
require(plyr)
require(ROCR)
require(data.table)
segment = "MOT"
desired_model = "11_60"
setwd("D:/Users/sb044936/Desktop/Modelling dat... | /[BHB] New databases prediction [vlr_vencido manipulation].R | no_license | XuezhiZhang/projetos_honda | R | false | false | 11,650 | r | require(stringr)
require(dplyr)
require(broom)
require(scorecard)
require(caret)
require(foreach)
require(glmnet)
require(gridExtra)
require(tibble)
require(reshape2)
require(plyr)
require(ROCR)
require(data.table)
segment = "MOT"
desired_model = "11_60"
setwd("D:/Users/sb044936/Desktop/Modelling dat... |
RPC_node_deviance <- function(Data, weights = NULL, master) {
vtg::log$debug("Starting node deviance.")
if(!is.null(master$types)){
Data=Format_Data(Data,master)
}
#the function update the betas
formula <- master$formula
family <- master$family
dstar <- master$dstar
#the functio... | /src/R/RPC_node_deviance.R | no_license | IKNL/vtg.glm | R | false | false | 2,736 | r | RPC_node_deviance <- function(Data, weights = NULL, master) {
vtg::log$debug("Starting node deviance.")
if(!is.null(master$types)){
Data=Format_Data(Data,master)
}
#the function update the betas
formula <- master$formula
family <- master$family
dstar <- master$dstar
#the functio... |
#-------------------------------------------------------------------------------
#- Run scenario
#-------------------------------------------------------------------------------
source(file.path(my.path,"benchmark/setupStockTunII.r"))
source(file.path(my.path,"benchmark/setupControl.r"))
newS.ctrl <- ISH.ctrl
ne... | /IrishSea/Archived/benchmark/runNewSurveySSB.r | no_license | ices-eg/wg_HAWG | R | false | false | 1,918 | r | #-------------------------------------------------------------------------------
#- Run scenario
#-------------------------------------------------------------------------------
source(file.path(my.path,"benchmark/setupStockTunII.r"))
source(file.path(my.path,"benchmark/setupControl.r"))
newS.ctrl <- ISH.ctrl
ne... |
library(igraph)
# infect node by id
infectIDCont <- function(graph, idVector) {
for (i in idVector) {
# infect nodes in vector
V(graph)[i]$currentState <- 1
V(graph)[i]$wasInfected <- TRUE
}
return(graph)
}
# randomly infect nodes
randomlyInfectCont <- function(graph, number) {
nodes <- as.vector(s... | /infection.r | permissive | J-JJJJJJ/sentinelClassification | R | false | false | 2,530 | r | library(igraph)
# infect node by id
infectIDCont <- function(graph, idVector) {
for (i in idVector) {
# infect nodes in vector
V(graph)[i]$currentState <- 1
V(graph)[i]$wasInfected <- TRUE
}
return(graph)
}
# randomly infect nodes
randomlyInfectCont <- function(graph, number) {
nodes <- as.vector(s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ox_item_def.R
\name{ox_item_def}
\alias{ox_item_def}
\title{Item definitions in a dataframe}
\usage{
ox_item_def(parsed_xml)
}
\arguments{
\item{parsed_xml}{An object of class \code{XMLInternalDocument}, as returned
by \code{XML::xmlParse()}.... | /man/ox_item_def.Rd | no_license | ccollins0601/ox | R | false | true | 817 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ox_item_def.R
\name{ox_item_def}
\alias{ox_item_def}
\title{Item definitions in a dataframe}
\usage{
ox_item_def(parsed_xml)
}
\arguments{
\item{parsed_xml}{An object of class \code{XMLInternalDocument}, as returned
by \code{XML::xmlParse()}.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/db-vtable.R
\name{db.delete_module}
\alias{db.delete_module}
\title{Unregister a virtual table module}
\usage{
db.delete_module(module)
}
\arguments{
\item{module}{The virtual table module. An S4 object of class "virtualtable".}
}
\value{
Non... | /man/db.delete_module.Rd | no_license | blueraleigh/db | R | false | true | 374 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/db-vtable.R
\name{db.delete_module}
\alias{db.delete_module}
\title{Unregister a virtual table module}
\usage{
db.delete_module(module)
}
\arguments{
\item{module}{The virtual table module. An S4 object of class "virtualtable".}
}
\value{
Non... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
# geom_smooth(aes(x=GDP, y=CO2, color=CO2))
library(shiny)
library(gridExtra)
data=(head(emissions, 26))
s... | /Project3/server.R | no_license | MarijusB/Developing-Data-Products-Final-Project | R | false | false | 1,461 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
# geom_smooth(aes(x=GDP, y=CO2, color=CO2))
library(shiny)
library(gridExtra)
data=(head(emissions, 26))
s... |
args <- commandArgs(trailingOnly=TRUE)
# wczytuje ramke z bledami i zapisuje je do pliku 'statystyki" ktory zbiera wartosci z wykonania programu
# args <- c("output//output_polaczone//bledy.rds", "output//output_polaczone//bledy_csv.csv")
input_bledy <- args[1]
output_bledy <- args[2]
bledy <- readRDS(input_bledy)
#... | /zapisz-statystyki.R | no_license | Sebastian99330/survival-analysis-parallel-programming | R | false | false | 2,140 | r | args <- commandArgs(trailingOnly=TRUE)
# wczytuje ramke z bledami i zapisuje je do pliku 'statystyki" ktory zbiera wartosci z wykonania programu
# args <- c("output//output_polaczone//bledy.rds", "output//output_polaczone//bledy_csv.csv")
input_bledy <- args[1]
output_bledy <- args[2]
bledy <- readRDS(input_bledy)
#... |
# World_Production of Crude Oil by Country_2014 #
# ---------------------------------------------------------------
# INPUT DATA ----------------------------------------------------
# ---------------------------------------------------------------
file.loc = '/Users/MEAS/GitHub/ene505-figures' # location of scri... | /scripts/archive/old_original/World_Production of Crude Oil by Country_2014.R | no_license | S3researchUSC/ene505-figures | R | false | false | 3,497 | r | # World_Production of Crude Oil by Country_2014 #
# ---------------------------------------------------------------
# INPUT DATA ----------------------------------------------------
# ---------------------------------------------------------------
file.loc = '/Users/MEAS/GitHub/ene505-figures' # location of scri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gun_deaths}
\alias{gun_deaths}
\title{Gun Deaths in America}
\format{
A data frame with 100,798 rows and 10 variables:
\describe{
\item{id}{Row number of the observation}
\item{year}{Year the death occurred}
... | /man/gun_deaths.Rd | no_license | nikalofton/rcfss | R | false | true | 1,048 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gun_deaths}
\alias{gun_deaths}
\title{Gun Deaths in America}
\format{
A data frame with 100,798 rows and 10 variables:
\describe{
\item{id}{Row number of the observation}
\item{year}{Year the death occurred}
... |
\name{writeEventData}
\alias{writeEventData}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Write a \code{bammdata} object to disk
}
\description{
\code{writEventData} takes a \code{bammdata} object and re-writes it back into a tree file and an event csv file.
}
\usage{
writeEventData(ephy, outt... | /BAMMtools/man/writeEventData.Rd | no_license | ptitle/bammtools | R | false | false | 1,209 | rd | \name{writeEventData}
\alias{writeEventData}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Write a \code{bammdata} object to disk
}
\description{
\code{writEventData} takes a \code{bammdata} object and re-writes it back into a tree file and an event csv file.
}
\usage{
writeEventData(ephy, outt... |
"CARsimu" <-
function(level=5, row1=0.2499999, row2=0, col1=0.2499999, col2=0, rc1=0, cr1=0) {
#-----------------------------------------------------------------------------------
#
# FUNCTION: CARsimu()
# DATE: 17 December, 2004
# AUTHOR: SANDOR KABOS, FERENC (FERKO) CSILLAG, ... | /R/CARsimu.R | no_license | cran/hdeco | R | false | false | 3,903 | r | "CARsimu" <-
function(level=5, row1=0.2499999, row2=0, col1=0.2499999, col2=0, rc1=0, cr1=0) {
#-----------------------------------------------------------------------------------
#
# FUNCTION: CARsimu()
# DATE: 17 December, 2004
# AUTHOR: SANDOR KABOS, FERENC (FERKO) CSILLAG, ... |
#' Predict Method for GLVmix
#'
#' Predict Method for Gaussian Location-scale Mixtures
#'
#' The predict method for \code{GLmix} objects will compute means, quantiles or
#' modes of the posterior according to the \code{Loss} argument. Typically,
#' \code{newdata} would be passed to \code{predict}. Note that these p... | /R/predict.GLVmix.R | no_license | cran/REBayes | R | false | false | 2,381 | r | #' Predict Method for GLVmix
#'
#' Predict Method for Gaussian Location-scale Mixtures
#'
#' The predict method for \code{GLmix} objects will compute means, quantiles or
#' modes of the posterior according to the \code{Loss} argument. Typically,
#' \code{newdata} would be passed to \code{predict}. Note that these p... |
theta_angle = 150
setwd("/gpfs/home/ly1192/FDA_alpha_largesample2")
n = 500; p = 4; niters = 500
angles = theta_angle; theta_angle = theta_angle / 180 * pi
source('functions_trueD0915.R')
names = paste('trueD4','_a_', angles, '.RData', sep='')
save(result, file = names) | /alpha_optim/cluster6/td_a4_150.R | no_license | sakuramomo1005/FDA | R | false | false | 272 | r |
theta_angle = 150
setwd("/gpfs/home/ly1192/FDA_alpha_largesample2")
n = 500; p = 4; niters = 500
angles = theta_angle; theta_angle = theta_angle / 180 * pi
source('functions_trueD0915.R')
names = paste('trueD4','_a_', angles, '.RData', sep='')
save(result, file = names) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formulas.R
\name{degrade_}
\alias{degrade_}
\title{Create a formula for RNA degradation}
\usage{
degrade_(x, d, t)
}
\arguments{
\item{x}{initial concentration.}
\item{d}{a degradation rate.}
\item{t}{a longitude of the modelled period.}
}
... | /pkg/man/degrade_.Rd | no_license | dieterich-lab/pulseR | R | false | true | 548 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formulas.R
\name{degrade_}
\alias{degrade_}
\title{Create a formula for RNA degradation}
\usage{
degrade_(x, d, t)
}
\arguments{
\item{x}{initial concentration.}
\item{d}{a degradation rate.}
\item{t}{a longitude of the modelled period.}
}
... |
testlist <- list(rates = c(3.65365168445533e-306, -5.77662200276729e-275, NaN, NaN, NaN, 7.09803712463454e+132, -3.18993527369151e-248, -2.30313428130492e-156, -2.30331097358367e-156, 1.12583501772562e-305, -5.44223636980846e+306, 2.87903833031146e-306, 2.36414097466393e-308, -2.18103525447252e-289, -9.776192371900... | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610052737-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 2,046 | r | testlist <- list(rates = c(3.65365168445533e-306, -5.77662200276729e-275, NaN, NaN, NaN, 7.09803712463454e+132, -3.18993527369151e-248, -2.30313428130492e-156, -2.30331097358367e-156, 1.12583501772562e-305, -5.44223636980846e+306, 2.87903833031146e-306, 2.36414097466393e-308, -2.18103525447252e-289, -9.776192371900... |
library(testthat)
library(verysimplepackage)
test_check("verysimplepackage")
| /verysimplepackage/tests/testthat.R | permissive | MatthewCodes/DATA-598-WI20-week-7 | R | false | false | 82 | r | library(testthat)
library(verysimplepackage)
test_check("verysimplepackage")
|
## Put comments here that give an overall description of what your
## functions do
## Function to create and to get the matrix, aswell as to create and get the inverse matrix, and finally, also caching it with the list.
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
... | /cachematrix.R | no_license | rogeriopalermo/ProgrammingAssignment2 | R | false | false | 1,070 | r | ## Put comments here that give an overall description of what your
## functions do
## Function to create and to get the matrix, aswell as to create and get the inverse matrix, and finally, also caching it with the list.
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
... |
## Author: orlowsma@hu-berlin.de
## Project: Moderate as necessary - The role of electoral competitiveness in
## explaining parties' policy shifts
## Content: Create data set for regression analysis combining competitiveness
## and party positions
# Load competitiveness data
CP <- readRDS("./data/competitiven... | /jobs/cr_comp_ppos.R | no_license | mace84/JOP_2016 | R | false | false | 2,574 | r | ## Author: orlowsma@hu-berlin.de
## Project: Moderate as necessary - The role of electoral competitiveness in
## explaining parties' policy shifts
## Content: Create data set for regression analysis combining competitiveness
## and party positions
# Load competitiveness data
CP <- readRDS("./data/competitiven... |
##########################################
# Week 2: Reading from MySQL (using UCSC's
# Mysql database)
##########################################
ucscDb <- dbConnect(MySQL(), user="genome", host= "genome-mysql.cse.ucsc.edu")
result <- dbGetQuery(ucscDb, "show databases;"); dbDisconnect(ucscDb);
result
hg19 <- dbCon... | /Getting_and_Cleaning_Data/Week2/reading_from_mySQL.R | no_license | mcolic/Data-Science-Specialization-with-Johns-Hopkins | R | false | false | 872 | r | ##########################################
# Week 2: Reading from MySQL (using UCSC's
# Mysql database)
##########################################
ucscDb <- dbConnect(MySQL(), user="genome", host= "genome-mysql.cse.ucsc.edu")
result <- dbGetQuery(ucscDb, "show databases;"); dbDisconnect(ucscDb);
result
hg19 <- dbCon... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DetailedCovariateSettings.R
\name{createDefaultTemporalCovariateSettings}
\alias{createDefaultTemporalCovariateSettings}
\title{Create default covariate settings}
\usage{
createDefaultTemporalCovariateSettings(includedCovariateConceptIds =... | /man/createDefaultTemporalCovariateSettings.Rd | permissive | odysseusinc/FeatureExtraction | R | false | true | 1,121 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DetailedCovariateSettings.R
\name{createDefaultTemporalCovariateSettings}
\alias{createDefaultTemporalCovariateSettings}
\title{Create default covariate settings}
\usage{
createDefaultTemporalCovariateSettings(includedCovariateConceptIds =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_instance_set.R
\name{get_instance_set}
\alias{get_instance_set}
\title{Get Instance Set}
\usage{
get_instance_set(instance_set_id = "", ...)
}
\arguments{
\item{instance_set_id}{ID for the form (instance_set) (which you get from ... | /man/get_instance_set.Rd | permissive | cran/captr | R | false | true | 652 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_instance_set.R
\name{get_instance_set}
\alias{get_instance_set}
\title{Get Instance Set}
\usage{
get_instance_set(instance_set_id = "", ...)
}
\arguments{
\item{instance_set_id}{ID for the form (instance_set) (which you get from ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.