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 |
|---|---|---|---|---|---|---|---|---|---|
# Functions to generate datasets
generateUIDs <- function(n){
UID <- sapply(1:n, digest, algo="md5")
return(UID)
}
### TEAM ASSIGN
assignTeam <- function(teams, data, p=rep(1/length(teams), length(teams))){
data$team <- rbinom(dim(data)[1], length(teams)-1, p) + 1
data$team <- as.factor(teams[data$team])
return(... | /functions.r | no_license | Judyr/hcistats | R | false | false | 2,184 | r | # Functions to generate datasets
generateUIDs <- function(n){
UID <- sapply(1:n, digest, algo="md5")
return(UID)
}
### TEAM ASSIGN
assignTeam <- function(teams, data, p=rep(1/length(teams), length(teams))){
data$team <- rbinom(dim(data)[1], length(teams)-1, p) + 1
data$team <- as.factor(teams[data$team])
return(... |
#' Coerce phyloseq object
#'
#' @param obj a \code{phyloseq} object
#'
#' @return An object of class MicrobiomeExperiment
#'
#' @importFrom S4Vectors SimpleList DataFrame
#' @importFrom SummarizedExperiment colData colData<-
#'
#' @export
#'
#' @examples
#' if (requireNamespace("phyloseq")) {
#' data(GlobalPatterns... | /R/makeMicrobiomeExperimentFromphyloseq.R | no_license | microbiome/MicrobiomeExperiment | R | false | false | 1,666 | r | #' Coerce phyloseq object
#'
#' @param obj a \code{phyloseq} object
#'
#' @return An object of class MicrobiomeExperiment
#'
#' @importFrom S4Vectors SimpleList DataFrame
#' @importFrom SummarizedExperiment colData colData<-
#'
#' @export
#'
#' @examples
#' if (requireNamespace("phyloseq")) {
#' data(GlobalPatterns... |
summarize_rarefaction <- function(dataset){
methods <- c("an", "fn", "nn", "agc", "dgc", "closed", "open", "swarm", "vagc", "vdgc")
output_file_name <- paste0("data/process/", dataset, ".rarefaction.summary")
write(x="method\tfraction\tsobs\tsobs_lci\tsobs_uci\trarefied\trare_lci\trare_uci\tp_value", file=output_fi... | /code/summarize_rarefaction.R | permissive | SchlossLab/Schloss_Cluster_PeerJ_2015 | R | false | false | 1,544 | r | summarize_rarefaction <- function(dataset){
methods <- c("an", "fn", "nn", "agc", "dgc", "closed", "open", "swarm", "vagc", "vdgc")
output_file_name <- paste0("data/process/", dataset, ".rarefaction.summary")
write(x="method\tfraction\tsobs\tsobs_lci\tsobs_uci\trarefied\trare_lci\trare_uci\tp_value", file=output_fi... |
heading("BEGIN TEST")
conn <- new("h2o.client", ip=myIP, port=myPort)
heading("Uploading train data to H2O")
iris_train.hex <- h2o.importFile(conn, train)
heading("Creating DL model in H2O")
balance_classes <- if (exists("balance_classes")) balance_classes else FALSE
iris.dl.h2o <- h2o.deeplearning(x = x, y = y, dat... | /h2o-r/tests/Utils/shared_javapredict_DL.R | permissive | JMR-b/h2o-dev | R | false | false | 3,998 | r |
heading("BEGIN TEST")
conn <- new("h2o.client", ip=myIP, port=myPort)
heading("Uploading train data to H2O")
iris_train.hex <- h2o.importFile(conn, train)
heading("Creating DL model in H2O")
balance_classes <- if (exists("balance_classes")) balance_classes else FALSE
iris.dl.h2o <- h2o.deeplearning(x = x, y = y, dat... |
#' My regression package
#'
#' @name lreg-package
#' @aliases lreg
#' @docType package
#' @keywords package
#' @import methods
NULL
| /R/lreg-package.R | no_license | jefferis/lreg | R | false | false | 133 | r | #' My regression package
#'
#' @name lreg-package
#' @aliases lreg
#' @docType package
#' @keywords package
#' @import methods
NULL
|
#Reading data from data sets.
xTest <- read.table("./UCI HAR Dataset/test/X_test.txt", header=FALSE)
yTest <- read.table("./UCI HAR Dataset/test/y_test.txt", header=FALSE)
xTrain <- read.table("./UCI HAR Dataset/train/X_train.txt", header=FALSE)
yTrain <- read.table("./UCI HAR Dataset/train/y_train.txt", header=FALSE)... | /Getting and Cleaning Data/project/run_analysis.R | no_license | mlamichh/Getting-and-Cleaning-Data | R | false | false | 2,172 | r | #Reading data from data sets.
xTest <- read.table("./UCI HAR Dataset/test/X_test.txt", header=FALSE)
yTest <- read.table("./UCI HAR Dataset/test/y_test.txt", header=FALSE)
xTrain <- read.table("./UCI HAR Dataset/train/X_train.txt", header=FALSE)
yTrain <- read.table("./UCI HAR Dataset/train/y_train.txt", header=FALSE)... |
\name{asia}
\docType{data}
\alias{asia}
\title{Asia (synthetic) data set by Lauritzen and Spiegelhalter}
\description{
Small synthetic data set from Lauritzen and Spiegelhalter (1988) about lung
diseases (tuberculosis, lung cancer or bronchitis) and visits to Asia.
}
\usage{
data(asia)
}
\format{
The \code{asi... | /man/asia.Rd | no_license | areinert9/bnlearn | R | false | false | 2,641 | rd | \name{asia}
\docType{data}
\alias{asia}
\title{Asia (synthetic) data set by Lauritzen and Spiegelhalter}
\description{
Small synthetic data set from Lauritzen and Spiegelhalter (1988) about lung
diseases (tuberculosis, lung cancer or bronchitis) and visits to Asia.
}
\usage{
data(asia)
}
\format{
The \code{asi... |
# SEI-SEIR model with temperature, humidity, and rainfall --------------------------------
seiseir_model_thr <- function(t, state, parameters) {
with(as.list(c(state,parameters)), {
dM1 <- (EFD(temp[t])*pEA(temp[t])*MDR(temp[t])*mu_th(temp[t], hum[t])^(-1))*(M1+M2+M3)*max((1-((M1+M2+M3)/K_trh(temp[t], hum[t], rai... | /Codes/SEI-SEIR_model_with_trait_variation.R | no_license | jms5151/EVP | R | false | false | 3,385 | r | # SEI-SEIR model with temperature, humidity, and rainfall --------------------------------
seiseir_model_thr <- function(t, state, parameters) {
with(as.list(c(state,parameters)), {
dM1 <- (EFD(temp[t])*pEA(temp[t])*MDR(temp[t])*mu_th(temp[t], hum[t])^(-1))*(M1+M2+M3)*max((1-((M1+M2+M3)/K_trh(temp[t], hum[t], rai... |
library(polmineR)
### Name: chisquare
### Title: Perform chisquare-text.
### Aliases: chisquare chisquare,features-method chisquare,context-method
### chisquare,cooccurrences-method
### Keywords: textstatistics
### ** Examples
use("polmineR")
library(data.table)
m <- partition(
"GERMAPARLMINI", speaker = "Merke... | /data/genthat_extracted_code/polmineR/examples/chisquare-method.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,460 | r | library(polmineR)
### Name: chisquare
### Title: Perform chisquare-text.
### Aliases: chisquare chisquare,features-method chisquare,context-method
### chisquare,cooccurrences-method
### Keywords: textstatistics
### ** Examples
use("polmineR")
library(data.table)
m <- partition(
"GERMAPARLMINI", speaker = "Merke... |
possibly <- function(.f, otherwise, quiet = TRUE) {
force(otherwise)
function(...) {
tryCatch(
.f(...),
error = function(e) {
if (!quiet)
message("Error: ", e$message)
otherwise
},
interrupt = function(e) {
stop("Terminated by user", call. = FALSE)
... | /R/download-file.R | no_license | hrbrmstr/httr | R | false | false | 4,540 | r | possibly <- function(.f, otherwise, quiet = TRUE) {
force(otherwise)
function(...) {
tryCatch(
.f(...),
error = function(e) {
if (!quiet)
message("Error: ", e$message)
otherwise
},
interrupt = function(e) {
stop("Terminated by user", call. = FALSE)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_functions.R
\name{meta_s_norm}
\alias{meta_s_norm}
\title{Normalize 16S stools metadata}
\usage{
meta_s_norm(meta)
}
\arguments{
\item{meta}{The metadata}
}
\value{
The dataframe with the metadata corrected
}
\description{
Normalize 16... | /man/meta_s_norm.Rd | permissive | llrs/integration-helper | R | false | true | 340 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_functions.R
\name{meta_s_norm}
\alias{meta_s_norm}
\title{Normalize 16S stools metadata}
\usage{
meta_s_norm(meta)
}
\arguments{
\item{meta}{The metadata}
}
\value{
The dataframe with the metadata corrected
}
\description{
Normalize 16... |
# The loadData.R script will download the file, unzip it, load 'NEI' and 'SCC'
# dataframes and then merge them into a dataframe named 'ALL'
source("./loadData.R")
# Q2. Have total emissions from PM2.5 decreased in the **Baltimore City**, Maryland
# (`fips == "24510"`) from 1999 to 2008? Use the **base** plotting sys... | /04-ExploratoryDataAnalysis/EXData_Project2/plot2.R | no_license | anhnguyendepocen/data-science-specialization | R | false | false | 1,050 | r |
# The loadData.R script will download the file, unzip it, load 'NEI' and 'SCC'
# dataframes and then merge them into a dataframe named 'ALL'
source("./loadData.R")
# Q2. Have total emissions from PM2.5 decreased in the **Baltimore City**, Maryland
# (`fips == "24510"`) from 1999 to 2008? Use the **base** plotting sys... |
#' Access files in the current app
#'
#' @param ... Character vector specifying directory and or file to
#' point to inside the current package.
#'
#' @noRd
app_sys <- function(...){
system.file(..., package = "drakeClinModel")
}
#' Read App Config
#'
#' @param value Value to retrieve from the config file.
... | /R/app_config.R | permissive | jixing475/drakeClinModel | R | false | false | 788 | r | #' Access files in the current app
#'
#' @param ... Character vector specifying directory and or file to
#' point to inside the current package.
#'
#' @noRd
app_sys <- function(...){
system.file(..., package = "drakeClinModel")
}
#' Read App Config
#'
#' @param value Value to retrieve from the config file.
... |
#script to use LEA for Structure/Admixture analyses
#you will need to install this packages if its the first time on a new computer
#install.packages(c("fields","RColorBrewer","mapplots"))
#source("http://bioconductor.org/biocLite.R")
#biocLite("LEA")
library(fields)
library(LEA)
#additional files need from the stru... | /Structure_analyses/Structure.R | no_license | moghelab/Solanum_habrochaites_popgen | R | false | false | 7,589 | r | #script to use LEA for Structure/Admixture analyses
#you will need to install this packages if its the first time on a new computer
#install.packages(c("fields","RColorBrewer","mapplots"))
#source("http://bioconductor.org/biocLite.R")
#biocLite("LEA")
library(fields)
library(LEA)
#additional files need from the stru... |
library(tinytest)
library(tiledb)
isOldWindows <- Sys.info()[["sysname"]] == "Windows" && grepl('Windows Server 2008', osVersion)
if (isOldWindows) exit_file("skip this file on old Windows releases")
isWindows <- Sys.info()[["sysname"]] == "Windows"
ctx <- tiledb_ctx(limitTileDBCores())
if (tiledb_version(TRUE) < "... | /inst/tinytest/test_filestore.R | permissive | TileDB-Inc/TileDB-R | R | false | false | 2,153 | r | library(tinytest)
library(tiledb)
isOldWindows <- Sys.info()[["sysname"]] == "Windows" && grepl('Windows Server 2008', osVersion)
if (isOldWindows) exit_file("skip this file on old Windows releases")
isWindows <- Sys.info()[["sysname"]] == "Windows"
ctx <- tiledb_ctx(limitTileDBCores())
if (tiledb_version(TRUE) < "... |
setwd("C:\\Users\\賴柏霖\\Desktop\\統計\\SME10e_EXCEL_DATA_SETS\\ch12 xlsx")
name="Xr12-35.xlsx"
df1=loadWorkbook(name)
df2=readWorksheet(df1,1)
df2<-df2[-c(123:144),]
df2<-df2[-c(49,77,94),]
sampl=df2[,2]
tcv=qt(1-0.025,118)
mean1=mean(sampl)
std=sd(sampl)
lcl=mean1-tcv*std/sqrt(119)
ucl=mean1+tcv*std/sqrt(119)
... | /statistics/12.35,12.75.r.r | no_license | lailaiforNTUIM/For-interview | R | false | false | 725 | r | setwd("C:\\Users\\賴柏霖\\Desktop\\統計\\SME10e_EXCEL_DATA_SETS\\ch12 xlsx")
name="Xr12-35.xlsx"
df1=loadWorkbook(name)
df2=readWorksheet(df1,1)
df2<-df2[-c(123:144),]
df2<-df2[-c(49,77,94),]
sampl=df2[,2]
tcv=qt(1-0.025,118)
mean1=mean(sampl)
std=sd(sampl)
lcl=mean1-tcv*std/sqrt(119)
ucl=mean1+tcv*std/sqrt(119)
... |
shinyUI(
dashboardPage(
title = "r2d3 Gallary",
dashboardHeader(
title = "r2d3 Gallary", titleWidth = 250
),
dashboardSidebar(
collapsed = F,
width = 250,
sidebarMenu(
id = "menu",
menuItem("barchart", icon = icon("globe"), tabName = "tab_barchart"),
men... | /shiny/ex_r2d3/ui.R | no_license | okiyuki99/HowToR | R | false | false | 1,079 | r | shinyUI(
dashboardPage(
title = "r2d3 Gallary",
dashboardHeader(
title = "r2d3 Gallary", titleWidth = 250
),
dashboardSidebar(
collapsed = F,
width = 250,
sidebarMenu(
id = "menu",
menuItem("barchart", icon = icon("globe"), tabName = "tab_barchart"),
men... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimator_plans.R
\name{est_params}
\alias{est_params}
\alias{est_params.lm_est}
\alias{est_params.simple_est}
\alias{est_params.grid_rf}
\title{Estimate parameters}
\usage{
est_params(obj, y, d = NULL, X, sample = "est", ret_var = FALSE)
\m... | /man/est_params.Rd | permissive | test-mass-forker-org-1/CausalGrid | R | false | true | 1,131 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimator_plans.R
\name{est_params}
\alias{est_params}
\alias{est_params.lm_est}
\alias{est_params.simple_est}
\alias{est_params.grid_rf}
\title{Estimate parameters}
\usage{
est_params(obj, y, d = NULL, X, sample = "est", ret_var = FALSE)
\m... |
\name{pdat1}
\alias{pdat1}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
pdat1(dat)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{dat}{
%... | /man/pdat1.Rd | no_license | Auburngrads/3pod | R | false | false | 4,102 | rd | \name{pdat1}
\alias{pdat1}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
pdat1(dat)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{dat}{
%... |
library(agridat)
library(psych)
library(sommer)
library(tidyverse)
# get example data --------------------------------------------------------
dat <- agridat::john.alpha
# fit model ---------------------------------------------------------------
# random genotype effect
g.ran <- mmer(fixed = yield ~ rep,
... | /Alternative Heritability Measures/sommer/H2 Oakey.R | no_license | PaulSchmidtGit/Heritability | R | false | false | 1,472 | r | library(agridat)
library(psych)
library(sommer)
library(tidyverse)
# get example data --------------------------------------------------------
dat <- agridat::john.alpha
# fit model ---------------------------------------------------------------
# random genotype effect
g.ran <- mmer(fixed = yield ~ rep,
... |
#-------------------------------------------------------------------
# Update Date: 07/21/2019
# Create Date: 04/30/2019
# Author: Yan (Dora) Zhang
#-------------------------------------------------------------------
rm(list=ls())
# setwd("~/Dropbox/2018_02_cancer/code_new/results_summary_clump//")
setwd("~/OneDrive - ... | /code/d_summary_figure/table_est_all.R | no_license | yandorazhang/CancerEffectSize | R | false | false | 8,218 | r | #-------------------------------------------------------------------
# Update Date: 07/21/2019
# Create Date: 04/30/2019
# Author: Yan (Dora) Zhang
#-------------------------------------------------------------------
rm(list=ls())
# setwd("~/Dropbox/2018_02_cancer/code_new/results_summary_clump//")
setwd("~/OneDrive - ... |
\name{xmp11.06}
\alias{xmp11.06}
\non_function{}
\title{data from Example 11.6}
\description{
The \code{xmp11.06} data frame has 24 rows and 3 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{Resp}{
a numeric vector of the mean number of responses emitted by each
... | /man/xmp11.06.Rd | no_license | cran/Devore5 | R | false | false | 1,736 | rd | \name{xmp11.06}
\alias{xmp11.06}
\non_function{}
\title{data from Example 11.6}
\description{
The \code{xmp11.06} data frame has 24 rows and 3 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{Resp}{
a numeric vector of the mean number of responses emitted by each
... |
##' Create a theme object for remap
##'
##' get_theme create a theme list to control the color
##' we see in the remap.including lineColor, backgroundColor,
##' titleColor, borderColor and regionColor.
##'
##' If you use the theme argument of the get_theme function,
##' you will get the default theme in one of ("Da... | /REmap/R/get_theme.R | permissive | moisiet/R-Packge | R | false | false | 5,205 | r | ##' Create a theme object for remap
##'
##' get_theme create a theme list to control the color
##' we see in the remap.including lineColor, backgroundColor,
##' titleColor, borderColor and regionColor.
##'
##' If you use the theme argument of the get_theme function,
##' you will get the default theme in one of ("Da... |
library(ZeligDVN)
isLegalPkg <- function (pkg) {
grepl("^[a-zA-Z][a-zA-Z0-9\\.]*$", pkg)
}
model <- "logit"
pkg <- getModelPkg(model)
load.script <- ""
if (isLegalPkg(pkg))
load.script <- sprintf("library(%s)", pkg)
load.script
| /demo/find.package.R | no_license | zeligdev/ZeligDVN | R | false | false | 238 | r | library(ZeligDVN)
isLegalPkg <- function (pkg) {
grepl("^[a-zA-Z][a-zA-Z0-9\\.]*$", pkg)
}
model <- "logit"
pkg <- getModelPkg(model)
load.script <- ""
if (isLegalPkg(pkg))
load.script <- sprintf("library(%s)", pkg)
load.script
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bacon.lipd.R
\name{runBacon}
\alias{runBacon}
\title{Generate a Bayesian Reconstruction Age Model (Bacon) and add it into a LiPD object}
\usage{
runBacon(
L,
chron.num = NA,
meas.table.num = NA,
bacon.dir = NA,
site.name = L$dataSe... | /man/runBacon.Rd | permissive | nickmckay/GeoChronR | R | false | true | 17,012 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bacon.lipd.R
\name{runBacon}
\alias{runBacon}
\title{Generate a Bayesian Reconstruction Age Model (Bacon) and add it into a LiPD object}
\usage{
runBacon(
L,
chron.num = NA,
meas.table.num = NA,
bacon.dir = NA,
site.name = L$dataSe... |
a <- summary(out1)
a <- a$summary
# get the column-names and row-names
colnames(a)
rownames(a)
parMean <- as.matrix(a[,1])
parMedn <- as.matrix(a[,6])
## calculating is a bit tricky
library(modeest)
#### extract mcmc ####
lr_mu <- extract (out1, "lr_mu")$lr_mu # returns an array
| /extract_param.R | no_license | lei-zhang/sit_stan | R | false | false | 299 | r | a <- summary(out1)
a <- a$summary
# get the column-names and row-names
colnames(a)
rownames(a)
parMean <- as.matrix(a[,1])
parMedn <- as.matrix(a[,6])
## calculating is a bit tricky
library(modeest)
#### extract mcmc ####
lr_mu <- extract (out1, "lr_mu")$lr_mu # returns an array
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deg2rad.r
\name{deg2rad}
\alias{deg2rad}
\alias{rad2deg}
\title{Conversion between degrees and radians}
\usage{
deg2rad(x)
rad2deg(x)
}
\arguments{
\item{x}{a numeric vector}
}
\value{
a numeric vector the same length as \code{x}
}
\descript... | /man/deg2rad.Rd | no_license | fvlampe/goeveg | R | false | true | 1,510 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deg2rad.r
\name{deg2rad}
\alias{deg2rad}
\alias{rad2deg}
\title{Conversion between degrees and radians}
\usage{
deg2rad(x)
rad2deg(x)
}
\arguments{
\item{x}{a numeric vector}
}
\value{
a numeric vector the same length as \code{x}
}
\descript... |
#
# EDA 1 Aux functions
#
#'
#' toascii - Removes any non ascii character from text
#'
toascii <- function(x, encoding="UTF-8") {
# removes non ascii characters from char vector
iconv(x, from=encoding, to="ASCII", sub="")
}
#'
#' map - Applies function to elements of a vector
#'
map <- function(x, fun, prog... | /eda1_auxFunctions.R | no_license | amitkb3/Capstone | R | false | false | 22,774 | r | #
# EDA 1 Aux functions
#
#'
#' toascii - Removes any non ascii character from text
#'
toascii <- function(x, encoding="UTF-8") {
# removes non ascii characters from char vector
iconv(x, from=encoding, to="ASCII", sub="")
}
#'
#' map - Applies function to elements of a vector
#'
map <- function(x, fun, prog... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/get_bdate.R
\name{get_date}
\alias{get_date}
\title{Returns a given individual's date of birth or death}
\usage{
get_date(x = NULL, df_ind = NULL, df_fam = NULL, var_id = "id",
var_date = c("bdate", "ddate", "mdate")[1])
}
\argument... | /man/get_date.Rd | no_license | johow/kinlab | R | false | false | 1,017 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/get_bdate.R
\name{get_date}
\alias{get_date}
\title{Returns a given individual's date of birth or death}
\usage{
get_date(x = NULL, df_ind = NULL, df_fam = NULL, var_id = "id",
var_date = c("bdate", "ddate", "mdate")[1])
}
\argument... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/XGR.R
\name{XGR.iterate_overlap}
\alias{XGR.iterate_overlap}
\title{Check overlap with XGR annotations}
\usage{
XGR.iterate_overlap(
lib.selections = c("ENCODE_TFBS_ClusteredV3_CellTypes", "TFBS_Conserved",
"ReMap_PublicAndEncode_TFBS",... | /man/XGR.iterate_overlap.Rd | permissive | UKDRI/echolocatoR | R | false | true | 1,893 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/XGR.R
\name{XGR.iterate_overlap}
\alias{XGR.iterate_overlap}
\title{Check overlap with XGR annotations}
\usage{
XGR.iterate_overlap(
lib.selections = c("ENCODE_TFBS_ClusteredV3_CellTypes", "TFBS_Conserved",
"ReMap_PublicAndEncode_TFBS",... |
# Class providing the Module object
#
# Here is a more detailed sentence
# about the Module class
#
# @docType class
# @keywords biomarker classification
# @return An object of class \code{Module}
# @format \code{\link{R6Class}} object
#
# @field label the name of the Module
# @field tasks a list of active Task objec... | /R/module-class.R | no_license | jperezrogers/rabbit | R | false | false | 7,153 | r | # Class providing the Module object
#
# Here is a more detailed sentence
# about the Module class
#
# @docType class
# @keywords biomarker classification
# @return An object of class \code{Module}
# @format \code{\link{R6Class}} object
#
# @field label the name of the Module
# @field tasks a list of active Task objec... |
raldm <- function(sigmas, p) {
#
# Generates random samples from ALD(alpha) multiple
#
unique_sigmas <- unique(sigmas)
error <- vector(length = length(sigmas))
for (sigma in unique_sigmas) {
dim <- sum(sigmas == sigma)
simulations <- ralp(dim, sigma = sigma, p)
error[sigmas == sigma] <- simul... | /Code/raldm.R | no_license | plataformapreventiva/MDI.Scripts | R | false | false | 352 | r | raldm <- function(sigmas, p) {
#
# Generates random samples from ALD(alpha) multiple
#
unique_sigmas <- unique(sigmas)
error <- vector(length = length(sigmas))
for (sigma in unique_sigmas) {
dim <- sum(sigmas == sigma)
simulations <- ralp(dim, sigma = sigma, p)
error[sigmas == sigma] <- simul... |
library(dplyr)
library(ggplot2)
library(ggpubr)
library(tidyr)
library(viridis)
base_dir = here::here()
#source(paste0(base_dir, "/R/bm-sim-data.R"))
#source(paste0(base_dir, "/R/helper.R"))
sysfonts::font_add("Gyre Bonum",
regular = "/usr/share/texmf-dist/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf"... | /paper-figures/create-figures.R | no_license | schalkdaniel/bm-CompAspCboost | R | false | false | 24,965 | r | library(dplyr)
library(ggplot2)
library(ggpubr)
library(tidyr)
library(viridis)
base_dir = here::here()
#source(paste0(base_dir, "/R/bm-sim-data.R"))
#source(paste0(base_dir, "/R/helper.R"))
sysfonts::font_add("Gyre Bonum",
regular = "/usr/share/texmf-dist/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf"... |
library(shiny)
library(magrittr)
library(leaflet)
library(DT)
library(dplyr)
# Load City of Philadelphia DBHIDS data on treatment resources
programs <- read.csv("dbhids_geocoded.csv")
programs <- subset(programs, select=-c(X))
# Create UI
ui <- shinyUI(fluidPage(
titlePanel("MATchmaker - Shiny Version"),
sidebarL... | /analyses/team08/shiny_app/dbhids_app.R | no_license | zixi-liu/datahack2020 | R | false | false | 2,879 | r | library(shiny)
library(magrittr)
library(leaflet)
library(DT)
library(dplyr)
# Load City of Philadelphia DBHIDS data on treatment resources
programs <- read.csv("dbhids_geocoded.csv")
programs <- subset(programs, select=-c(X))
# Create UI
ui <- shinyUI(fluidPage(
titlePanel("MATchmaker - Shiny Version"),
sidebarL... |
#
# This is the user-interface definition 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/
#
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
the... | /NeveRathome/ui.R | no_license | arthurwuhoo/whereshouldIlive | R | false | false | 3,367 | r | #
# This is the user-interface definition 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/
#
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
the... |
library(fungible)
### Name: smoothLG
### Title: Smooth NPD to Nearest PSD or PD Matrix
### Aliases: smoothLG
### Keywords: statistics
### ** Examples
data(BadRLG)
out<-smoothLG(R = BadRLG, Penalty = 50000)
cat("\nGradient at solution:", out$gr,"\n")
cat("\nNearest Correlation Matrix\n")
print( round(out$RLG,8) )
... | /data/genthat_extracted_code/fungible/examples/smoothLG.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,195 | r | library(fungible)
### Name: smoothLG
### Title: Smooth NPD to Nearest PSD or PD Matrix
### Aliases: smoothLG
### Keywords: statistics
### ** Examples
data(BadRLG)
out<-smoothLG(R = BadRLG, Penalty = 50000)
cat("\nGradient at solution:", out$gr,"\n")
cat("\nNearest Correlation Matrix\n")
print( round(out$RLG,8) )
... |
\name{PredictFRegressNormTest}
\alias{PredictFRegressNormTest}
\title{Functional Data Analysis Using the Concurrent Model}
\usage{
PredictFRegressNormTest(PredictorMat,ResponseMat,predVec, nBasis, Basis="Fourier", lambda = 10^-1, Plot = FALSE, NormalErrors = FALSE) }
\arguments{
PredictorMat is the matrix of predictor... | /fdaconcur/man/PredictFRegressNormTest.Rd | no_license | rpittman188/fdaconcur | R | false | false | 2,160 | rd | \name{PredictFRegressNormTest}
\alias{PredictFRegressNormTest}
\title{Functional Data Analysis Using the Concurrent Model}
\usage{
PredictFRegressNormTest(PredictorMat,ResponseMat,predVec, nBasis, Basis="Fourier", lambda = 10^-1, Plot = FALSE, NormalErrors = FALSE) }
\arguments{
PredictorMat is the matrix of predictor... |
# Set seed to enable replication of the results
set.seed(1203)
## Dependencies
#install.packages("mlr")
#install.packages("here")
#install.packages("glm")
library(mlr)
library(here)
## (1) Read and clean data
train <- read.csv(here("Data", "train.csv"))
test <- read.csv(here("Data", "test.csv"))
test$medv <-... | /LassoPrediction.R | no_license | dormeir999/BoIKaggle | R | false | false | 1,552 | r | # Set seed to enable replication of the results
set.seed(1203)
## Dependencies
#install.packages("mlr")
#install.packages("here")
#install.packages("glm")
library(mlr)
library(here)
## (1) Read and clean data
train <- read.csv(here("Data", "train.csv"))
test <- read.csv(here("Data", "test.csv"))
test$medv <-... |
testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(c(4.34970285608805e-114, 7.27917492813417e-95, 4.6343369826479e+252, 1.11574538688949e-310, 1.78005908680576e-307, 1.71583253459489e-314, 1.59493294177796e-304, 4.94065645841247e-324, 4.94065645841247e-324, 1.05274122851034e-314, 4.237201195... | /palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612988842-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 481 | r | testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(c(4.34970285608805e-114, 7.27917492813417e-95, 4.6343369826479e+252, 1.11574538688949e-310, 1.78005908680576e-307, 1.71583253459489e-314, 1.59493294177796e-304, 4.94065645841247e-324, 4.94065645841247e-324, 1.05274122851034e-314, 4.237201195... |
# Internal functions
prepdata <- function(knownpts, unknownpts, matdist, bypassctrl, longlat, mask,
resolution){
if(is(knownpts, "Spatial")){knownpts <- st_as_sf(knownpts)}
if (!missing(unknownpts)){
if(is(unknownpts, "Spatial")){unknownpts <- st_as_sf(unknownpts)}
if (!missing... | /R/utils.R | no_license | riatelab/SpatialPosition | R | false | false | 2,959 | r | # Internal functions
prepdata <- function(knownpts, unknownpts, matdist, bypassctrl, longlat, mask,
resolution){
if(is(knownpts, "Spatial")){knownpts <- st_as_sf(knownpts)}
if (!missing(unknownpts)){
if(is(unknownpts, "Spatial")){unknownpts <- st_as_sf(unknownpts)}
if (!missing... |
#' Script: De-Novo Clustering
#' Author: Ilias Lagkouvardos
#'
#' Calculate beta-diversity for microbial communities
#' based on permutational mulitvariate analysis of variances (PERMANOVA) using multiple distance matrices
#' computed from phylogenetic distances between observed organisms
#'
#' Input:
#' 1. Set the pat... | /3.Beta-Diversity/De-novo-Clustering.R | permissive | Lagkouvardos/Rhea | R | false | false | 7,887 | r | #' Script: De-Novo Clustering
#' Author: Ilias Lagkouvardos
#'
#' Calculate beta-diversity for microbial communities
#' based on permutational mulitvariate analysis of variances (PERMANOVA) using multiple distance matrices
#' computed from phylogenetic distances between observed organisms
#'
#' Input:
#' 1. Set the pat... |
# Leitura dos dados
library(ggplot2)
dados <- read.table("/home/alan/Github/INE5649-StatisticalPredictionTechniques/carros.txt", # modificar o caminho
stringsAsFactors = T, # strings são fatores
header=T) # primeira linha do arquivo são os rótulos das variáveis
head(dados) # impr... | /residuos-valor-km.R | no_license | alanensina/INE5649-StatisticalPredictionTechniques | R | false | false | 1,934 | r | # Leitura dos dados
library(ggplot2)
dados <- read.table("/home/alan/Github/INE5649-StatisticalPredictionTechniques/carros.txt", # modificar o caminho
stringsAsFactors = T, # strings são fatores
header=T) # primeira linha do arquivo são os rótulos das variáveis
head(dados) # impr... |
##*****************************************************************************************************
## For complete background and details, please refer to:
## Shankar J. et al. Looking beyond respiratory cultures: Microbiome-cytokine signatures of bacterial
## pneumonia and tracheobronchitis in lung transplant ... | /lungbiome_bmamodeling.R | permissive | openpencil/lungbiome | R | false | false | 4,306 | r | ##*****************************************************************************************************
## For complete background and details, please refer to:
## Shankar J. et al. Looking beyond respiratory cultures: Microbiome-cytokine signatures of bacterial
## pneumonia and tracheobronchitis in lung transplant ... |
library(ggplot2)
library(plyr)
library(dplyr)
library(stringr)
WAR
#Create line history CSV
#metric for aging curve
#metric for season performance versus regression
#bayesian look at things (stochastic interval)
#close look at context
TotalWAR <- read.csv("Total WAR.csv")
SeasonalWAR <- read.csv("Seasonal WARs.... | /WAR.R | no_license | dbrait/NHL | R | false | false | 863 | r | library(ggplot2)
library(plyr)
library(dplyr)
library(stringr)
WAR
#Create line history CSV
#metric for aging curve
#metric for season performance versus regression
#bayesian look at things (stochastic interval)
#close look at context
TotalWAR <- read.csv("Total WAR.csv")
SeasonalWAR <- read.csv("Seasonal WARs.... |
#===============================================================================================
# Getting and Cleaning Data Class Assignment
#===============================================================================================
# The purpose of this project is to demonstrate your ability to collect, work... | /run_analysis.R | no_license | tysond7414/run_analysis.R | R | false | false | 4,869 | r |
#===============================================================================================
# Getting and Cleaning Data Class Assignment
#===============================================================================================
# The purpose of this project is to demonstrate your ability to collect, work... |
#returns the reached p-value for the interval along with the positions (start, stop, p.value)
#if the third value is larger than the confidence level, it is not a valid region.
#616 not a valid peak
#617 the examined window was too small compared to the internal windowsize (minWindow)
#919 too few markers after removal... | /SHOREmap_confInt.R | no_license | zzygyx9119/shoremap | R | false | false | 24,068 | r | #returns the reached p-value for the interval along with the positions (start, stop, p.value)
#if the third value is larger than the confidence level, it is not a valid region.
#616 not a valid peak
#617 the examined window was too small compared to the internal windowsize (minWindow)
#919 too few markers after removal... |
library(car)
library(ggplot2)
library(glmnet)
library(leaps)
library(MASS)
library(tidyverse)
library(hrbrthemes)
setwd("D:/Documenti HDD/Uni/Magistrale/Statistical Data Analysis/Esercizi/Progetto")
set.seed(42)
########################################################################################################
###... | /Totale_regressione.r | no_license | TestaDiRapa/sda-project | R | false | false | 20,863 | r | library(car)
library(ggplot2)
library(glmnet)
library(leaps)
library(MASS)
library(tidyverse)
library(hrbrthemes)
setwd("D:/Documenti HDD/Uni/Magistrale/Statistical Data Analysis/Esercizi/Progetto")
set.seed(42)
########################################################################################################
###... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/core.R
\name{generateDistn}
\alias{generateDistn}
\title{Generate theoretical GC content distributions}
\usage{
generateDistn(seqs, genome, nchrom, file = "fastqc_theoretical_gc.txt",
n = 1e+06, bp = 100, wts = 1, name = "")
}
\arguments{
\... | /man/generateDistn.Rd | permissive | jnpaulson/fastqcTheoreticalGC | R | false | true | 1,737 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/core.R
\name{generateDistn}
\alias{generateDistn}
\title{Generate theoretical GC content distributions}
\usage{
generateDistn(seqs, genome, nchrom, file = "fastqc_theoretical_gc.txt",
n = 1e+06, bp = 100, wts = 1, name = "")
}
\arguments{
\... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/dse23g_1.R
\docType{data}
\name{dse23g_1}
\alias{dse23g_1}
\title{Dataset for Exercise G-1, Chapter 23}
\format{A \code{data.frame} with 15 rows and 9 variables:
\describe{
\item{level}{}
\item{tube}{}
\item{x1}{}
\item{x2}{}
\item{x3... | /man/dse23g_1.Rd | no_license | danielgil1/aprean3 | R | false | false | 584 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/dse23g_1.R
\docType{data}
\name{dse23g_1}
\alias{dse23g_1}
\title{Dataset for Exercise G-1, Chapter 23}
\format{A \code{data.frame} with 15 rows and 9 variables:
\describe{
\item{level}{}
\item{tube}{}
\item{x1}{}
\item{x2}{}
\item{x3... |
## Load Libraries
list.of.packages <- c("data.table","plyr","dplyr","tibble", "lubridate", "knitr", "ggplot2", "stringr", "forcats", "ggpubr")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, requ... | /RepResProject.R | no_license | nairarshad/RepData_PeerAssessment1 | R | false | false | 4,913 | r | ## Load Libraries
list.of.packages <- c("data.table","plyr","dplyr","tibble", "lubridate", "knitr", "ggplot2", "stringr", "forcats", "ggpubr")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, requ... |
\name{mergeparameters}
\alias{mergeparameters}
%- Also NEED an `\alias' for EACH other topic documented here.
\title{New parameters from merging two Gaussian mixture components}
\description{
Re-computes pointwise posterior probabilities, mean and covariance
matrix for a mixture component obtained by merging two mi... | /JCGS-R3/main_code/lib/fpc/man/mergeparameters.Rd | no_license | patperry/cvclust | R | false | false | 2,562 | rd | \name{mergeparameters}
\alias{mergeparameters}
%- Also NEED an `\alias' for EACH other topic documented here.
\title{New parameters from merging two Gaussian mixture components}
\description{
Re-computes pointwise posterior probabilities, mean and covariance
matrix for a mixture component obtained by merging two mi... |
\name{betapriorGauss}
\alias{betapriorGauss}
\title{betapriorGauss function}
\usage{
betapriorGauss(mean, sd)
}
\arguments{
\item{mean}{the prior mean, a vector of length 1 or more.
1 implies a common mean.}
\item{sd}{the prior standard deviation, a vector of
length 1 or more. 1 implies a common standard devia... | /man/betapriorGauss.Rd | no_license | ssouyris/spatsurv | R | false | false | 439 | rd | \name{betapriorGauss}
\alias{betapriorGauss}
\title{betapriorGauss function}
\usage{
betapriorGauss(mean, sd)
}
\arguments{
\item{mean}{the prior mean, a vector of length 1 or more.
1 implies a common mean.}
\item{sd}{the prior standard deviation, a vector of
length 1 or more. 1 implies a common standard devia... |
# HEADER
# Display: Figure 7.2 Box plot - Change from Baseline by Analysis Timepoint, Visit and Treatment
# White paper: Central Tendency
# Specs: https://github.com/phuse-org/phuse-scripts/blob/master/whitepapers/specification/
# Output: https://github.com/phuse-org/phuse-scripts/blob/master/whitepapers... | /BDS_Box_Chg.R | no_license | phuse-org/R-Packages | R | false | false | 7,811 | r | # HEADER
# Display: Figure 7.2 Box plot - Change from Baseline by Analysis Timepoint, Visit and Treatment
# White paper: Central Tendency
# Specs: https://github.com/phuse-org/phuse-scripts/blob/master/whitepapers/specification/
# Output: https://github.com/phuse-org/phuse-scripts/blob/master/whitepapers... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add.R
\name{add_trace}
\alias{add_trace}
\alias{add_markers}
\alias{add_text}
\alias{add_paths}
\alias{add_lines}
\alias{add_segments}
\alias{add_polygons}
\alias{add_ribbons}
\alias{add_area}
\alias{add_pie}
\alias{add_bars}
\alias{add_histo... | /man/add_trace.Rd | permissive | MhAmine/plotly | R | false | true | 5,184 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add.R
\name{add_trace}
\alias{add_trace}
\alias{add_markers}
\alias{add_text}
\alias{add_paths}
\alias{add_lines}
\alias{add_segments}
\alias{add_polygons}
\alias{add_ribbons}
\alias{add_area}
\alias{add_pie}
\alias{add_bars}
\alias{add_histo... |
#' Check the integrity of survival data.
#'
#' Check that exit occurs after enter, that spells from an individual do not
#' overlap, and that each individual experiences at most one event.
#'
#' Interval lengths must be strictly positive.
#'
#' @param enter Left truncation time.
#' @param exit Time of exit.
#' @para... | /R/check.surv.R | no_license | cran/eha | R | false | false | 2,137 | r | #' Check the integrity of survival data.
#'
#' Check that exit occurs after enter, that spells from an individual do not
#' overlap, and that each individual experiences at most one event.
#'
#' Interval lengths must be strictly positive.
#'
#' @param enter Left truncation time.
#' @param exit Time of exit.
#' @para... |
coefficients_matrix <- function(x) {
q <- length(x$info$parameters)
cov_names <- c("(Intercept)", x$info$covariates)
k <- length(cov_names)
res <- do.call(rbind, lapply(x$regression, FUN = function(X) summary(X)$coefficients))
res <- as.data.frame(res)
res <- cbind(
Parameter = rep(x$info$parameters, ... | /R/coefficients_matrix.R | no_license | manuelarnold/ipcr | R | false | false | 420 | r | coefficients_matrix <- function(x) {
q <- length(x$info$parameters)
cov_names <- c("(Intercept)", x$info$covariates)
k <- length(cov_names)
res <- do.call(rbind, lapply(x$regression, FUN = function(X) summary(X)$coefficients))
res <- as.data.frame(res)
res <- cbind(
Parameter = rep(x$info$parameters, ... |
\alias{gtkTextIterGetCharsInLine}
\name{gtkTextIterGetCharsInLine}
\title{gtkTextIterGetCharsInLine}
\description{Returns the number of characters in the line containing \code{iter},
including the paragraph delimiters.}
\usage{gtkTextIterGetCharsInLine(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkTextIter}}... | /man/gtkTextIterGetCharsInLine.Rd | no_license | cran/RGtk2.10 | R | false | false | 460 | rd | \alias{gtkTextIterGetCharsInLine}
\name{gtkTextIterGetCharsInLine}
\title{gtkTextIterGetCharsInLine}
\description{Returns the number of characters in the line containing \code{iter},
including the paragraph delimiters.}
\usage{gtkTextIterGetCharsInLine(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkTextIter}}... |
#' Fit the pre-defined Neural Network for Longitudinal Data
#'
#' @param model The model object produced by create_model().
#' @param ver ver=0 to show nothing, ver=1 to show animated progress bar, ver=2 to just mention the number of epoch during training.
#' @param n_epoch The number of epochs to train the mode... | /R/fit_model.R | no_license | jinshuai886/LDNN | R | false | false | 3,122 | r | #' Fit the pre-defined Neural Network for Longitudinal Data
#'
#' @param model The model object produced by create_model().
#' @param ver ver=0 to show nothing, ver=1 to show animated progress bar, ver=2 to just mention the number of epoch during training.
#' @param n_epoch The number of epochs to train the mode... |
library(bcp)
generate_data_frame = function(nrow, ncol) {
col_types = list(
`integer` = function() runif(nrow, -.Machine$integer.max, .Machine$integer.max),
`double` = function() rnorm(nrow),
`character` = function() paste("str", as.character(rnorm(nrow))),
`factor` = function() as... | /inst/test_random_data_frames.R | no_license | marymoni/bcp | R | false | false | 1,871 | r | library(bcp)
generate_data_frame = function(nrow, ncol) {
col_types = list(
`integer` = function() runif(nrow, -.Machine$integer.max, .Machine$integer.max),
`double` = function() rnorm(nrow),
`character` = function() paste("str", as.character(rnorm(nrow))),
`factor` = function() as... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/view_ui.R
\name{view_ui}
\alias{view_ui}
\title{Show UI output in viewer pane}
\usage{
view_ui(x, close_after = 5)
}
\arguments{
\item{x}{ui content (actionButton, selectInput, valueBox), if x is not provided, \code{view_ui()} will l... | /man/view_ui.Rd | no_license | cran/shinyobjects | R | false | true | 1,014 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/view_ui.R
\name{view_ui}
\alias{view_ui}
\title{Show UI output in viewer pane}
\usage{
view_ui(x, close_after = 5)
}
\arguments{
\item{x}{ui content (actionButton, selectInput, valueBox), if x is not provided, \code{view_ui()} will l... |
library("sqldf")
data <- read.csv.sql("household_power_consumption.txt",sep=";",sql = "select * from file where Date in ('1/2/2007','2/2/2007')")
dateTime <- as.POSIXlt(paste(as.Date(data$Date, format="%d/%m/%Y"), data$Time, sep=" "))
png(file="plot3.png")
plot(dateTime, data$Sub_metering_1,type="l",col="black",xlab... | /plot3.R | no_license | davidamsallem/ExData_Plotting1 | R | false | false | 621 | r | library("sqldf")
data <- read.csv.sql("household_power_consumption.txt",sep=";",sql = "select * from file where Date in ('1/2/2007','2/2/2007')")
dateTime <- as.POSIXlt(paste(as.Date(data$Date, format="%d/%m/%Y"), data$Time, sep=" "))
png(file="plot3.png")
plot(dateTime, data$Sub_metering_1,type="l",col="black",xlab... |
context("Field")
test_that("@fields creates a new section and lists fields", {
out <- roc_proc_text(rd_roclet(), "
#' Important class.
#'
#' @field a field a
#' @field b field b
setRefClass('test')
")[[1]]
expect_equal(get_tag(out, "field")$values, c(a = "field a", b = "field b"))
})
| /tests/testthat/test-field.R | no_license | kevinushey/roxygen | R | false | false | 314 | r | context("Field")
test_that("@fields creates a new section and lists fields", {
out <- roc_proc_text(rd_roclet(), "
#' Important class.
#'
#' @field a field a
#' @field b field b
setRefClass('test')
")[[1]]
expect_equal(get_tag(out, "field")$values, c(a = "field a", b = "field b"))
})
|
########################
#
rm(list=ls())
require(LaplacesDemon)
N <- 10000
J <- 5
X <- matrix(1,N,J)
for (j in 2:J) {X[,j] <- rnorm(N,runif(1,-3,3),runif(1,0.1,1))}
beta <- runif(J,-3,3)
e <- rnorm(N,0,0.1)
y <- tcrossprod(X, t(beta)) + e
mon.names <- c("LP", "sigma")
parm.names <- as.parm.names(list(beta=rep(0,J), ... | /旧资料/LinearRegression.R | no_license | wangbinzjcc/DeadStandingTrees | R | false | false | 11,930 | r | ########################
#
rm(list=ls())
require(LaplacesDemon)
N <- 10000
J <- 5
X <- matrix(1,N,J)
for (j in 2:J) {X[,j] <- rnorm(N,runif(1,-3,3),runif(1,0.1,1))}
beta <- runif(J,-3,3)
e <- rnorm(N,0,0.1)
y <- tcrossprod(X, t(beta)) + e
mon.names <- c("LP", "sigma")
parm.names <- as.parm.names(list(beta=rep(0,J), ... |
#!/usr/bin/env Rscript
library(MutationalPatterns)
ref_genome <- 'BSgenome.Hsapiens.UCSC.hg38'
ref_transcriptome <- "TxDb.Hsapiens.UCSC.hg38.knownGene"
library(ref_genome, character.only = TRUE)
library(ref_transcriptome, character.only = TRUE)
library(NMF)
library(gridExtra)
library(ggplot2)
library(reshape)
#library(... | /local/src/mut_pat_signatures_denovo.R | no_license | vodkatad/AF_spectra | R | false | false | 5,271 | r | #!/usr/bin/env Rscript
library(MutationalPatterns)
ref_genome <- 'BSgenome.Hsapiens.UCSC.hg38'
ref_transcriptome <- "TxDb.Hsapiens.UCSC.hg38.knownGene"
library(ref_genome, character.only = TRUE)
library(ref_transcriptome, character.only = TRUE)
library(NMF)
library(gridExtra)
library(ggplot2)
library(reshape)
#library(... |
library(aimsir17)
new_obs <- select(observations,station,year,month,day,hour,temp)
select(observations,station:rain)
select(observations,-(station:rain))
select(observations,starts_with("w"))
select(observations,ends_with("p"))
select(observations,ends_with("p"),everything())
| /code/05 dplyr 1/03 Select.R | permissive | JimDuggan/CT1100 | R | false | false | 283 | r | library(aimsir17)
new_obs <- select(observations,station,year,month,day,hour,temp)
select(observations,station:rain)
select(observations,-(station:rain))
select(observations,starts_with("w"))
select(observations,ends_with("p"))
select(observations,ends_with("p"),everything())
|
# install.packages("usethis")
library(usethis)
edit_git_config()
create_github_token()
# install.packages("gitcreds")
library(gitcreds)
gitcreds_set()
# Make this project have a git repository locally
use_git()
# Connect this to a GitHub repository
?use_github()
use_github(organisation = "rin3-spring-2021", priv... | /github-setup.R | no_license | rin3-spring-2021/github-setup-demo | R | false | false | 353 | r | # install.packages("usethis")
library(usethis)
edit_git_config()
create_github_token()
# install.packages("gitcreds")
library(gitcreds)
gitcreds_set()
# Make this project have a git repository locally
use_git()
# Connect this to a GitHub repository
?use_github()
use_github(organisation = "rin3-spring-2021", priv... |
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(8.5728629954997e-312, -4.74571492238721e-249, 5.18440867598767e+307, -1.22227637740241e-150, -4.15923997689852e-209, -1.10339037428038e-87, -6.95025412017465e+44, -1.18078903777812e-90, 1.86807199752012e+112, -5.58551357556946e+160, 2.00994342527714... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615831038-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 634 | r | testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(8.5728629954997e-312, -4.74571492238721e-249, 5.18440867598767e+307, -1.22227637740241e-150, -4.15923997689852e-209, -1.10339037428038e-87, -6.95025412017465e+44, -1.18078903777812e-90, 1.86807199752012e+112, -5.58551357556946e+160, 2.00994342527714... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{Antilles}
\alias{Antilles}
\title{Antilles Bird Immigration Dates}
\format{A data frame with 37 observations of one variable. \describe{
\item{immigration.date}{approximate immigration date (in millions of
year... | /man/Antilles.Rd | no_license | mdlama/abd | R | false | true | 801 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{Antilles}
\alias{Antilles}
\title{Antilles Bird Immigration Dates}
\format{A data frame with 37 observations of one variable. \describe{
\item{immigration.date}{approximate immigration date (in millions of
year... |
#<<BEGIN>>
unmc <- function(x, drop=TRUE)
#TITLE Unclasses the mc or the mcnode Object
#DESCRIPTION
#Unclasses the \samp{mc} object in a list of arrays
#or the \samp{mcnode} object in an array.
#KEYWORDS manip
#INPUTS
#{x}<<A \samp{mc} or a \samp{mcnode} object.>>
#[INPUTS]
#{drop}<<Should the dimensions o... | /R/unmc.R | no_license | cran/mc2d | R | false | false | 1,096 | r | #<<BEGIN>>
unmc <- function(x, drop=TRUE)
#TITLE Unclasses the mc or the mcnode Object
#DESCRIPTION
#Unclasses the \samp{mc} object in a list of arrays
#or the \samp{mcnode} object in an array.
#KEYWORDS manip
#INPUTS
#{x}<<A \samp{mc} or a \samp{mcnode} object.>>
#[INPUTS]
#{drop}<<Should the dimensions o... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/excel_dates.R
\name{excel_numeric_to_date}
\alias{excel_numeric_to_date}
\title{Convert dates encoded as serial numbers to Date class.}
\usage{
excel_numeric_to_date(date_num, date_system = "modern")
}
\arguments{
\item{date_num}{numeric vect... | /man/excel_numeric_to_date.Rd | permissive | khunreus/janitor | R | false | true | 1,084 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/excel_dates.R
\name{excel_numeric_to_date}
\alias{excel_numeric_to_date}
\title{Convert dates encoded as serial numbers to Date class.}
\usage{
excel_numeric_to_date(date_num, date_system = "modern")
}
\arguments{
\item{date_num}{numeric vect... |
#' Prepare data for SWD maxent calibration processes
#'
#' @description prepare_swd helps to create csv files containing occurrence
#' records (all, train, and test records) and background coordinates, together
#' with values of predictor variables, that later can be used to run model
#' calibration in Maxent using the... | /R/prepare_swd.R | no_license | lucianolasala/kuenm | R | false | false | 7,131 | r | #' Prepare data for SWD maxent calibration processes
#'
#' @description prepare_swd helps to create csv files containing occurrence
#' records (all, train, and test records) and background coordinates, together
#' with values of predictor variables, that later can be used to run model
#' calibration in Maxent using the... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biomarkers.R
\name{filter_eitems_by_site}
\alias{filter_eitems_by_site}
\title{Function that filters clinical evidence items by tumor type/primary site}
\usage{
filter_eitems_by_site(eitems = NULL, ontology = NULL, primary_site = "")
}
\argum... | /pcgrr/man/filter_eitems_by_site.Rd | permissive | sigven/pcgr | R | false | true | 561 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biomarkers.R
\name{filter_eitems_by_site}
\alias{filter_eitems_by_site}
\title{Function that filters clinical evidence items by tumor type/primary site}
\usage{
filter_eitems_by_site(eitems = NULL, ontology = NULL, primary_site = "")
}
\argum... |
options(shiny.maxRequestSize = 500*1024^2) | /RegionalOverviews/overviews_shiny/server/general_settings.R | no_license | LauraDiernaes/RCGs | R | false | false | 42 | r | options(shiny.maxRequestSize = 500*1024^2) |
# Rscript top_scoring_ratioDown.R
# source("../Cancer_HiC_data_TAD_DA/utils_fct.R")
# 3 => done in Rscript coexpr_DE_queryTAD.R
# chekcer que withinCoexpr mm chose que meanTADcorr !!! [manque pval comb!!!]
script_name <- "top_scoring_ratioDown.R"
cat("> Start ", script_name, "\n")
startTime <- Sys.time()
require(for... | /top_scoring_ratioDown.R | no_license | marzuf/CORRECT_Yuanlong_Cancer_HiC_data_TAD_DA | R | false | false | 9,730 | r | # Rscript top_scoring_ratioDown.R
# source("../Cancer_HiC_data_TAD_DA/utils_fct.R")
# 3 => done in Rscript coexpr_DE_queryTAD.R
# chekcer que withinCoexpr mm chose que meanTADcorr !!! [manque pval comb!!!]
script_name <- "top_scoring_ratioDown.R"
cat("> Start ", script_name, "\n")
startTime <- Sys.time()
require(for... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cloudmonitoring_objects.R
\name{Timeseries}
\alias{Timeseries}
\title{Timeseries Object}
\usage{
Timeseries(points = NULL, timeseriesDesc = NULL)
}
\arguments{
\item{points}{The data points of this time series}
\item{timeseriesDesc}{The desc... | /googlecloudmonitoringv2beta2.auto/man/Timeseries.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 747 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cloudmonitoring_objects.R
\name{Timeseries}
\alias{Timeseries}
\title{Timeseries Object}
\usage{
Timeseries(points = NULL, timeseriesDesc = NULL)
}
\arguments{
\item{points}{The data points of this time series}
\item{timeseriesDesc}{The desc... |
setwd("C:/Users/Brad/Documents/coursera data science/Getting and Cleaning Data/Week_4")
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/Dataset.zip")
# Unzip to ./data directory
... | /gettingandcleaningdata/week_4/run_analysis.R | no_license | bjcarter77/datasciencecoursera | R | false | false | 2,252 | r | setwd("C:/Users/Brad/Documents/coursera data science/Getting and Cleaning Data/Week_4")
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/Dataset.zip")
# Unzip to ./data directory
... |
#############################################################################
#
# XLConnect
# Copyright (C) 2010-2017 Mirai Solutions GmbH
#
# 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
# the Free Software Foundation... | /R/xlcRestore.R | no_license | GSuvorov/xlconnect | R | false | false | 1,740 | r | #############################################################################
#
# XLConnect
# Copyright (C) 2010-2017 Mirai Solutions GmbH
#
# 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
# the Free Software Foundation... |
# Created 2015-12-19
# Uses wdt.export.csv and wdt.anaes.csv
library(Hmisc)
library(ggplot2)
library(lubridate)
library(data.table)
library(gmodels)
library(plotly)
# Set-up plotly
Sys.setenv("plotly_username"="drstevok")
Sys.setenv("plotly_api_key"="9zzlo2rb2q")
rm(list=ls(all=TRUE))
load("../data/anaesthesia.RData... | /labbooks/labbook_151218.R | no_license | docsteveharris/collab-obs | R | false | false | 2,676 | r | # Created 2015-12-19
# Uses wdt.export.csv and wdt.anaes.csv
library(Hmisc)
library(ggplot2)
library(lubridate)
library(data.table)
library(gmodels)
library(plotly)
# Set-up plotly
Sys.setenv("plotly_username"="drstevok")
Sys.setenv("plotly_api_key"="9zzlo2rb2q")
rm(list=ls(all=TRUE))
load("../data/anaesthesia.RData... |
x<-c(1,2,3,4,5,6)
y<-c(9,8,7,6,5,4)
print(x==y) | /q2.R | no_license | bishal145/AP_LAB6 | R | false | false | 51 | r | x<-c(1,2,3,4,5,6)
y<-c(9,8,7,6,5,4)
print(x==y) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inheritance.R
\name{highlight_inheritance_100}
\alias{highlight_inheritance_100}
\title{Create a new column Inheritance that labels G4 Diachronic players
in the 100 labor minute experiment.}
\usage{
highlight_inheritance_100(frame)
}
\descrip... | /man/highlight_inheritance_100.Rd | no_license | pedmiston/totems-data | R | false | true | 448 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inheritance.R
\name{highlight_inheritance_100}
\alias{highlight_inheritance_100}
\title{Create a new column Inheritance that labels G4 Diachronic players
in the 100 labor minute experiment.}
\usage{
highlight_inheritance_100(frame)
}
\descrip... |
library(data.table)
library(dplyr)
vcf_SNPs <- fread("sim_RFMix/80_20_6/admixed.snps", header = F)
full_gen_map <- fread("admixture-simulation/chr22.interpolated_genetic_map", header = F)
colnames(vcf_SNPs) <- "SNP"
colnames(full_gen_map) <- c("SNP", "BP", "cM")
vcf_gen_map <- left_join(vcf_SNPs, full_gen_map, ... | /class_project_scripts/03b3_make_RFMix_genetic_map.R | no_license | WheelerLab/Local_Ancestry | R | false | false | 534 | r | library(data.table)
library(dplyr)
vcf_SNPs <- fread("sim_RFMix/80_20_6/admixed.snps", header = F)
full_gen_map <- fread("admixture-simulation/chr22.interpolated_genetic_map", header = F)
colnames(vcf_SNPs) <- "SNP"
colnames(full_gen_map) <- c("SNP", "BP", "cM")
vcf_gen_map <- left_join(vcf_SNPs, full_gen_map, ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/Main.R
\name{ks_stat}
\alias{ks_stat}
\title{ks_stat}
\usage{
ks_stat(actuals, predictedScores, returnKSTable = FALSE)
}
\arguments{
\item{actuals}{The actual binary flags for the response variable. It can take a numeric vector contai... | /man/ks_stat.Rd | no_license | KillEdision/InformationValue | R | false | false | 1,421 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/Main.R
\name{ks_stat}
\alias{ks_stat}
\title{ks_stat}
\usage{
ks_stat(actuals, predictedScores, returnKSTable = FALSE)
}
\arguments{
\item{actuals}{The actual binary flags for the response variable. It can take a numeric vector contai... |
testlist <- list(rates = numeric(0), thresholds = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = NaN)
result <- do.call(grattan::IncomeTax,testlist)
str(result) | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610125463-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 187 | r | testlist <- list(rates = numeric(0), thresholds = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = NaN)
result <- do.call(grattan::IncomeTax,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/renderer.R
\name{renderer_graphviz}
\alias{renderer_graphviz}
\title{Render as a plain graph}
\usage{
renderer_graphviz(
svg_fit = TRUE,
svg_contain = FALSE,
svg_resize_fit = TRUE,
zoom_controls = TRUE,
zoom_initial = NULL
)
}
\argu... | /man/renderer_graphviz.Rd | permissive | bupaverse/processanimateR | R | false | true | 1,224 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/renderer.R
\name{renderer_graphviz}
\alias{renderer_graphviz}
\title{Render as a plain graph}
\usage{
renderer_graphviz(
svg_fit = TRUE,
svg_contain = FALSE,
svg_resize_fit = TRUE,
zoom_controls = TRUE,
zoom_initial = NULL
)
}
\argu... |
library(testthat)
library(parsnip)
library(dplyr)
library(rlang)
# ------------------------------------------------------------------------------
context("prediciton with failed models")
# ------------------------------------------------------------------------------
iris_bad <-
iris %>%
mutate(big_num = Inf)
... | /tests/testthat/test_failed_models.R | no_license | bradthiessen/parsnip | R | false | false | 1,909 | r | library(testthat)
library(parsnip)
library(dplyr)
library(rlang)
# ------------------------------------------------------------------------------
context("prediciton with failed models")
# ------------------------------------------------------------------------------
iris_bad <-
iris %>%
mutate(big_num = Inf)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getInp.R
\name{getInp}
\alias{getInp}
\title{Get prepared inp-object for use in TMB-call}
\usage{
getInp(
hydros,
toa,
E_dist,
n_ss,
pingType,
sdInits = 1,
rbi_min = 0,
rbi_max = 0,
ss_data_what = "est",
ss... | /man/getInp.Rd | no_license | cran/yaps | R | false | true | 6,025 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getInp.R
\name{getInp}
\alias{getInp}
\title{Get prepared inp-object for use in TMB-call}
\usage{
getInp(
hydros,
toa,
E_dist,
n_ss,
pingType,
sdInits = 1,
rbi_min = 0,
rbi_max = 0,
ss_data_what = "est",
ss... |
########################################################################################
## Register and launch an ST-GPR model from R to estimate OOP scalar
## Description: Sending ImFIn OOP models to ST-GPR
## Prepped dataset is sourced from the DOVE dataset on vaccine volumes
## Original Author: Matthew Schneider (... | /Immunization Financing Project/code/out-of-pocket/03_stgpr/03b_2_run_stgpr_volume.R | no_license | hashimig/Resource_Tracking_Domestic_Health_Accounts | R | false | false | 2,477 | r | ########################################################################################
## Register and launch an ST-GPR model from R to estimate OOP scalar
## Description: Sending ImFIn OOP models to ST-GPR
## Prepped dataset is sourced from the DOVE dataset on vaccine volumes
## Original Author: Matthew Schneider (... |
workDir <- 'C:/Users/smdevine/Desktop/post doc/soil health/publication/California Agriculture'
soilProps <- read.csv(file.path(workDir, 'soil_properties_SSURGO_by_SHR.csv'), stringsAsFactors = FALSE)
head(soilProps)
concat_func <- function(x,y) {paste0(x, " (", y, ")")}
concat_func(soilProps$Sand, soilProps$Sand.IQR)
... | /CalAg/SSURGO_properties_table.R | no_license | smdevine/SoilHealthRegions | R | false | false | 1,024 | r | workDir <- 'C:/Users/smdevine/Desktop/post doc/soil health/publication/California Agriculture'
soilProps <- read.csv(file.path(workDir, 'soil_properties_SSURGO_by_SHR.csv'), stringsAsFactors = FALSE)
head(soilProps)
concat_func <- function(x,y) {paste0(x, " (", y, ")")}
concat_func(soilProps$Sand, soilProps$Sand.IQR)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bakers_raw.R
\docType{data}
\name{bakers_raw}
\alias{bakers_raw}
\title{Bakers (raw)}
\format{
A data frame with 120 rows representing individual bakers and 8
variables:
\describe{
\item{series}{A factor denoting UK series (\code{1}-\code{10}... | /man/bakers_raw.Rd | permissive | apreshill/bakeoff | R | false | true | 1,067 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bakers_raw.R
\docType{data}
\name{bakers_raw}
\alias{bakers_raw}
\title{Bakers (raw)}
\format{
A data frame with 120 rows representing individual bakers and 8
variables:
\describe{
\item{series}{A factor denoting UK series (\code{1}-\code{10}... |
#' @author Divya Mistry
#' @description This file is used to read in GSE3431 expression CEL files, normalize the data
#' and then save the processed data so that it can be read in later to get
#' pairwise coexpression data
#'
require(affy)
require(microbenchmark)
#' I downloaded the raw CEL files from author's site ... | /src/pre-prep/get_Tu_etal_data.R | permissive | divyamistry/diffslc | R | false | false | 3,139 | r | #' @author Divya Mistry
#' @description This file is used to read in GSE3431 expression CEL files, normalize the data
#' and then save the processed data so that it can be read in later to get
#' pairwise coexpression data
#'
require(affy)
require(microbenchmark)
#' I downloaded the raw CEL files from author's site ... |
library(testthat)
library(rcdo)
test_check("rcdo")
| /tests/testthat.R | permissive | robertjwilson/rcdo | R | false | false | 52 | r | library(testthat)
library(rcdo)
test_check("rcdo")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/connect_operations.R
\name{connect_list_instance_attributes}
\alias{connect_list_instance_attributes}
\title{This API is in preview release for Amazon Connect and is subject to
change}
\usage{
connect_list_instance_attributes(InstanceId, Next... | /cran/paws.customer.engagement/man/connect_list_instance_attributes.Rd | permissive | sanchezvivi/paws | R | false | true | 996 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/connect_operations.R
\name{connect_list_instance_attributes}
\alias{connect_list_instance_attributes}
\title{This API is in preview release for Amazon Connect and is subject to
change}
\usage{
connect_list_instance_attributes(InstanceId, Next... |
context('test multi-word dictionaries')
txt <- c(d1 = "The United States is bordered by the Atlantic Ocean and the Pacific Ocean.",
d2 = "The Supreme Court of the United States is seldom in a united state.",
d3 = "It's Arsenal versus Manchester United, states the announcer.",
d4 = "We need ... | /tests/testthat/test_dictionary_multiword.R | no_license | fc1315/quanteda | R | false | false | 9,245 | r | context('test multi-word dictionaries')
txt <- c(d1 = "The United States is bordered by the Atlantic Ocean and the Pacific Ocean.",
d2 = "The Supreme Court of the United States is seldom in a united state.",
d3 = "It's Arsenal versus Manchester United, states the announcer.",
d4 = "We need ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crp_related_functions.R
\name{alpha_estimator}
\alias{alpha_estimator}
\title{alpha_estimator}
\usage{
alpha_estimator(crp, alpha_lim, nbre_alpha = 10000)
}
\arguments{
\item{crp}{a numerical vector, the output of \code{\link{rcrp}}.}
\item{... | /man/alpha_estimator.Rd | no_license | pmgrollemund/phyloCRP | R | false | true | 962 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crp_related_functions.R
\name{alpha_estimator}
\alias{alpha_estimator}
\title{alpha_estimator}
\usage{
alpha_estimator(crp, alpha_lim, nbre_alpha = 10000)
}
\arguments{
\item{crp}{a numerical vector, the output of \code{\link{rcrp}}.}
\item{... |
# author: Alex Rayón
# date: Octubre, 2020
# Antes de nada, limpiamos el workspace, por si hubiera algún dataset o información cargada
rm(list = ls())
# Cambiar el directorio de trabajo
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
getwd()
# Vamos a cargar las librerías necesarias
library(dplyr)
librar... | /SC1_hospital.R | no_license | SergioMateosSanz/Rexamples | R | false | false | 9,653 | r | # author: Alex Rayón
# date: Octubre, 2020
# Antes de nada, limpiamos el workspace, por si hubiera algún dataset o información cargada
rm(list = ls())
# Cambiar el directorio de trabajo
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
getwd()
# Vamos a cargar las librerías necesarias
library(dplyr)
librar... |
dist.gen <- function(x,method="euclidean", ...){
if ( method == "spearman" ) 1 - cor(t(x),method=method,...)
else if ( method == "pearson" ) 1 - pcor(t(x))
else if ( method == "logpearson" ) 1 - pcor(log2(t(x)))
else as.matrix(dist(x,method=method,...))
}
plot.err.bars.x <- function(x, y, x.err, col="b... | /R/RaceID_utils.R | no_license | JING-Bio/RaceID3_StemID2_package | R | false | false | 10,361 | r | dist.gen <- function(x,method="euclidean", ...){
if ( method == "spearman" ) 1 - cor(t(x),method=method,...)
else if ( method == "pearson" ) 1 - pcor(t(x))
else if ( method == "logpearson" ) 1 - pcor(log2(t(x)))
else as.matrix(dist(x,method=method,...))
}
plot.err.bars.x <- function(x, y, x.err, col="b... |
# First analysis of Perception of Prosody I
# created by gratton on 3rd June 2017
setwd("/Users/Chantal/Documents/Doctoral/Courses/Spring 2017/LIN 245/perception/data/")
library(languageR)
library(lme4)
library(tidyverse)
library(ggplot2)
df = read.csv("complete_trials_reduced.csv")
head(df)
summary(df)
nrow(df)
summ... | /results/Rscripts/first_analysis.R | no_license | vrangasayee/perception | R | false | false | 7,113 | r | # First analysis of Perception of Prosody I
# created by gratton on 3rd June 2017
setwd("/Users/Chantal/Documents/Doctoral/Courses/Spring 2017/LIN 245/perception/data/")
library(languageR)
library(lme4)
library(tidyverse)
library(ggplot2)
df = read.csv("complete_trials_reduced.csv")
head(df)
summary(df)
nrow(df)
summ... |
## ui.R ##
library(shinydashboard)
dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
column(6,
verbatimTextOutput("title")
)
)
) | /Project5-Capstone/kellymejiabreton/SHINY/ui.R | no_license | jeperez/bootcamp005_project | R | false | false | 235 | r | ## ui.R ##
library(shinydashboard)
dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
column(6,
verbatimTextOutput("title")
)
)
) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getComment.R
\name{getAllComment}
\alias{getAllComment}
\title{Get All Comment}
\usage{
getAllComment(turl = url, ...)
}
\arguments{
\item{turl}{character. News article on 'Naver' such as 'http://news.naver.com/main/read.nhn?mode=LSD&mid=shm&... | /man/getAllComment.Rd | permissive | mkhoin/N2H4 | R | false | true | 739 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getComment.R
\name{getAllComment}
\alias{getAllComment}
\title{Get All Comment}
\usage{
getAllComment(turl = url, ...)
}
\arguments{
\item{turl}{character. News article on 'Naver' such as 'http://news.naver.com/main/read.nhn?mode=LSD&mid=shm&... |
dashboardPage(skin="yellow", title = "World Bank",
dashboardHeader(title = "World Bank"),
dashboardSidebar(
includeCSS("custom.css"),
sidebarMenu(
menuItem("Searchable", tabName = "searchable", icon = icon("search")),
inputPanel(
textInput("searchValue",
... | /ui.R | no_license | rafwalas/worldBank | R | false | false | 2,736 | r |
dashboardPage(skin="yellow", title = "World Bank",
dashboardHeader(title = "World Bank"),
dashboardSidebar(
includeCSS("custom.css"),
sidebarMenu(
menuItem("Searchable", tabName = "searchable", icon = icon("search")),
inputPanel(
textInput("searchValue",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.