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 |
|---|---|---|---|---|---|---|---|---|---|
#' Simulate spreading activation in a network
#'
#' @param network Adjacency matrix or
#' \code{\link[igraph:igraph-package]{igraph}} object representing the network
#' in which to simulate spreading activation.
#' @param start_run Non-empty \code{\link[base]{data.frame}} with mandatory
#' columns \emph{node}, \e... | /R/spreadr.R | no_license | alc5907/spreadr | R | false | false | 8,877 | r | #' Simulate spreading activation in a network
#'
#' @param network Adjacency matrix or
#' \code{\link[igraph:igraph-package]{igraph}} object representing the network
#' in which to simulate spreading activation.
#' @param start_run Non-empty \code{\link[base]{data.frame}} with mandatory
#' columns \emph{node}, \e... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MxMatrix.R
\name{imxSymmetricMatrix}
\alias{imxSymmetricMatrix}
\alias{imxSymmetricMatrix,LowerMatrix-method}
\alias{imxSymmetricMatrix,MxMatrix-method}
\alias{imxSymmetricMatrix,SdiagMatrix-method}
\alias{imxSymmetricMatrix,StandMatrix-metho... | /fuzzedpackages/OpenMx/man/imxSymmetricMatrix.Rd | no_license | akhikolla/testpackages | R | false | true | 572 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MxMatrix.R
\name{imxSymmetricMatrix}
\alias{imxSymmetricMatrix}
\alias{imxSymmetricMatrix,LowerMatrix-method}
\alias{imxSymmetricMatrix,MxMatrix-method}
\alias{imxSymmetricMatrix,SdiagMatrix-method}
\alias{imxSymmetricMatrix,StandMatrix-metho... |
library(PALM)
library(glmnet)
library(mvtnorm)
library(ggplot2)
library(optparse)
genx = function(n, p, rho = 1) {
X = mvtnorm::rmvnorm(n, mean = rep(0, p), sigma = diag(rho, p, p), method = "chol", pre0.9_9994 = TRUE)
X
}
generry = function(X, beta, p, snr, rho, b0) {
sigma2 = rep(rho, p) %*% beta^2 * (10^(snr... | /demo/simu-STLS.R | no_license | xinchoubiology/PALM | R | false | false | 3,574 | r | library(PALM)
library(glmnet)
library(mvtnorm)
library(ggplot2)
library(optparse)
genx = function(n, p, rho = 1) {
X = mvtnorm::rmvnorm(n, mean = rep(0, p), sigma = diag(rho, p, p), method = "chol", pre0.9_9994 = TRUE)
X
}
generry = function(X, beta, p, snr, rho, b0) {
sigma2 = rep(rho, p) %*% beta^2 * (10^(snr... |
# Code placed in this file fill be executed every time the
# lesson is started. Any variables created here will show up in
# the user's working directory and thus be accessible to them
# throughout the lesson.
.get_course_path <- function(){
tryCatch(swirl:::swirl_courses_dir(),
error = ... | /Gene_Count_Pre-Processing/initLesson.R | no_license | biocswirl-dev-team/BiocSwirl_RNAseq | R | false | false | 1,021 | r | # Code placed in this file fill be executed every time the
# lesson is started. Any variables created here will show up in
# the user's working directory and thus be accessible to them
# throughout the lesson.
.get_course_path <- function(){
tryCatch(swirl:::swirl_courses_dir(),
error = ... |
library(HiddenMarkov)
library(fitdistrplus)
library(ncdf4)
library(ggplot2)
############################# TEHUANTEPEC ###############################################
data <- read.csv(file="/home/yordan/YORDAN/UNAL/TESIS_MAESTRIA/25_expo_2018/datos_TT_NovAbr_anom_925.csv"
, header=FALSE, sep=",")
spd ... | /25_expo_2018/ajustes_distribuciones_NovMar_anom_925.R | no_license | yordanarango/MASTER_THESIS | R | false | false | 13,005 | r | library(HiddenMarkov)
library(fitdistrplus)
library(ncdf4)
library(ggplot2)
############################# TEHUANTEPEC ###############################################
data <- read.csv(file="/home/yordan/YORDAN/UNAL/TESIS_MAESTRIA/25_expo_2018/datos_TT_NovAbr_anom_925.csv"
, header=FALSE, sep=",")
spd ... |
## Prepare cc
setwd("~/Documents/GitHub/STModel-Analyzes/")
rm(list=ls())
require(raster)
require(rgdal)
require(sp)
require(data.table)
source("./prg/wrap_fcts.r")
list_cc_files <- data.frame(path=list.files("./data/fut_clim_rcp60/",full.names=TRUE),name=list.files("./data/fut_clim_rcp60/"), stringsAsFactors=FALSE)... | /simu_cc/inputsGeoCC.r | no_license | QUICC-FOR/STModel-Analyzes | R | false | false | 3,326 | r | ## Prepare cc
setwd("~/Documents/GitHub/STModel-Analyzes/")
rm(list=ls())
require(raster)
require(rgdal)
require(sp)
require(data.table)
source("./prg/wrap_fcts.r")
list_cc_files <- data.frame(path=list.files("./data/fut_clim_rcp60/",full.names=TRUE),name=list.files("./data/fut_clim_rcp60/"), stringsAsFactors=FALSE)... |
\name{gradAUC.Lang}
\alias{gradAUC.Lang}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Function for gradient of AUC after applying Lagrange Multiplyer
}
\description{
Function for gradient of AUC after applying Lagrange Multiplyer
}
\usage{
gradAUC.Lang(par, Z, lambda)
}
%- maybe also 'usage' f... | /man/gradAUC.Lang.Rd | no_license | cran/optAUC | R | false | false | 652 | rd | \name{gradAUC.Lang}
\alias{gradAUC.Lang}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Function for gradient of AUC after applying Lagrange Multiplyer
}
\description{
Function for gradient of AUC after applying Lagrange Multiplyer
}
\usage{
gradAUC.Lang(par, Z, lambda)
}
%- maybe also 'usage' f... |
\name{draw_thematic_OCN}
\alias{draw_thematic_OCN}
\title{Draw thematic map on an Optimal Channel Network}
\usage{
draw_thematic_OCN(theme, OCN,
chooseAggregation = NULL,
discreteLevels = FALSE,
colLevels = NULL, cutoff = FALSE,
colPalette = colorRampPalette(c("yellow","red","black")),
exactDraw = ... | /man/draw_thematic_OCN.Rd | no_license | jacquetclaire/OCNet | R | false | false | 8,324 | rd | \name{draw_thematic_OCN}
\alias{draw_thematic_OCN}
\title{Draw thematic map on an Optimal Channel Network}
\usage{
draw_thematic_OCN(theme, OCN,
chooseAggregation = NULL,
discreteLevels = FALSE,
colLevels = NULL, cutoff = FALSE,
colPalette = colorRampPalette(c("yellow","red","black")),
exactDraw = ... |
\encoding{UTF-8}
\name{vazquez.example}
\alias{vazquez.example}
\alias{confint}
\alias{intasymm}
\alias{intereven}
\alias{mlik}
\alias{netstats}
\alias{plotmat}
\alias{quant2bin}
\alias{sortmatr}
\alias{sortmatrext}
\title{ Examples for some analyses }
\description{
Describes how to use bipartite to calculate the sta... | /bipartite/man/vazquez.example.rd | no_license | biometry/bipartite | R | false | false | 5,589 | rd | \encoding{UTF-8}
\name{vazquez.example}
\alias{vazquez.example}
\alias{confint}
\alias{intasymm}
\alias{intereven}
\alias{mlik}
\alias{netstats}
\alias{plotmat}
\alias{quant2bin}
\alias{sortmatr}
\alias{sortmatrext}
\title{ Examples for some analyses }
\description{
Describes how to use bipartite to calculate the sta... |
## @knitr initiation
usePackage <- function(p) {
if (!is.element(p, installed.packages()[,1]))
install.packages(p, dep = TRUE)
require(p, character.only = TRUE)
}
opts_chunk$set(cach.path = 'cache/report-one-')
knit_hooks$set(test = function(before, options, envir) {
if (!before) {
paste("Objects availabl... | /project2.R | no_license | marchandpatrick/practicalmachinelearning | R | false | false | 3,586 | r | ## @knitr initiation
usePackage <- function(p) {
if (!is.element(p, installed.packages()[,1]))
install.packages(p, dep = TRUE)
require(p, character.only = TRUE)
}
opts_chunk$set(cach.path = 'cache/report-one-')
knit_hooks$set(test = function(before, options, envir) {
if (!before) {
paste("Objects availabl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CreateArgFunctions.R
\name{createMatchOnPsArgs}
\alias{createMatchOnPsArgs}
\title{Create a parameter object for the function matchOnPs}
\usage{
createMatchOnPsArgs(
caliper = 0.2,
caliperScale = "standardized logit",
maxRatio = 1,
al... | /man/createMatchOnPsArgs.Rd | permissive | OHDSI/CohortMethod | R | false | true | 1,765 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CreateArgFunctions.R
\name{createMatchOnPsArgs}
\alias{createMatchOnPsArgs}
\title{Create a parameter object for the function matchOnPs}
\usage{
createMatchOnPsArgs(
caliper = 0.2,
caliperScale = "standardized logit",
maxRatio = 1,
al... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filter_summary.R
\name{summary.rmdFilt}
\alias{summary.rmdFilt}
\title{RMD Filter Summary}
\usage{
\method{summary}{rmdFilt}(filter_object, pvalue_threshold = NULL)
}
\arguments{
\item{filter_object}{S3 object of class 'rmdFilt' created by
\c... | /man/summary.rmdFilt.Rd | permissive | clabornd/pmartR | R | false | true | 1,165 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filter_summary.R
\name{summary.rmdFilt}
\alias{summary.rmdFilt}
\title{RMD Filter Summary}
\usage{
\method{summary}{rmdFilt}(filter_object, pvalue_threshold = NULL)
}
\arguments{
\item{filter_object}{S3 object of class 'rmdFilt' created by
\c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getset.R
\name{upper<-}
\alias{upper<-}
\title{Set Upper Value}
\usage{
upper(x) <- value
}
\arguments{
\item{x}{object of dispatch}
\item{value}{right hand side}
}
\description{
Sets upper Value.
}
\seealso{
Other upper:
... | /man/upper-set.Rd | no_license | cran/nonmemica | R | false | true | 445 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getset.R
\name{upper<-}
\alias{upper<-}
\title{Set Upper Value}
\usage{
upper(x) <- value
}
\arguments{
\item{x}{object of dispatch}
\item{value}{right hand side}
}
\description{
Sets upper Value.
}
\seealso{
Other upper:
... |
\name{wiki_catpages}
\alias{wiki_catpages}
\title{
Retrieves a list of category members.
}
\description{
wiki_catpages retrieves a list of pages, subcategories, files or all of the above in a specified category (or series of specified categories)}
\usage{
wiki_catpages(con, categories, properties = c( "title","ids", "s... | /man/wiki_catpages.Rd | permissive | Protonk/WikipediR | R | false | false | 1,619 | rd | \name{wiki_catpages}
\alias{wiki_catpages}
\title{
Retrieves a list of category members.
}
\description{
wiki_catpages retrieves a list of pages, subcategories, files or all of the above in a specified category (or series of specified categories)}
\usage{
wiki_catpages(con, categories, properties = c( "title","ids", "s... |
#' @export
`[.Dictionary` <- function(x, key){
x$get(key)
}
#' @export
`[<-.Dictionary` <- function(x, key, value){
x$set(key, value)
} | /R/dictionaryAssign.R | permissive | RaphaelS1/dictionaryR6 | R | false | false | 139 | r | #' @export
`[.Dictionary` <- function(x, key){
x$get(key)
}
#' @export
`[<-.Dictionary` <- function(x, key, value){
x$set(key, value)
} |
\name{structuredEstimate}
\alias{structuredEstimate}
\title{ Estimation of Partial Correlation Matrix Given Zero Structure. }
\description{ Estimation of nonzero entries of the partial
correlation matrix given zero structure.}
\usage{ structuredEstimate(x, E) }
\arguments{
\item{x}{ n by p data matrix ... | /man/StructuredEstimate.Rd | no_license | cran/GGMridge | R | false | false | 2,454 | rd | \name{structuredEstimate}
\alias{structuredEstimate}
\title{ Estimation of Partial Correlation Matrix Given Zero Structure. }
\description{ Estimation of nonzero entries of the partial
correlation matrix given zero structure.}
\usage{ structuredEstimate(x, E) }
\arguments{
\item{x}{ n by p data matrix ... |
is.TriangleModel = function(object)
{
is(object, "TriangleModel")
}
checkTriangleModel = function(object)
{
errors = character()
if (length(errors) == 0) TRUE else errors
}
setOldClass("htest")
#' TriangleModel class
#'
#' @description
#' Triangle is an S4 class used to store a model fit to ... | /MRMR/R/TriangleModel.R | no_license | ingted/R-Examples | R | false | false | 4,085 | r | is.TriangleModel = function(object)
{
is(object, "TriangleModel")
}
checkTriangleModel = function(object)
{
errors = character()
if (length(errors) == 0) TRUE else errors
}
setOldClass("htest")
#' TriangleModel class
#'
#' @description
#' Triangle is an S4 class used to store a model fit to ... |
\name{variogram}
\alias{variogram}
\encoding{UTF-8}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Calculate an empirical variogram from movement data}
\description{
This function calculates the empirical variogram of multi-dimensional tracking data for visualizing stationary (time-averaged) auto... | /man/variogram.Rd | no_license | davan690/ctmm | R | false | false | 7,169 | rd | \name{variogram}
\alias{variogram}
\encoding{UTF-8}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Calculate an empirical variogram from movement data}
\description{
This function calculates the empirical variogram of multi-dimensional tracking data for visualizing stationary (time-averaged) auto... |
#' split_transaction
#'
#' Function to split activities by implementers.
#' Thanks to https://github.com/akmiller01/IATI-Covid
#'
#' @param row lines in the query extract
#'
#' @return Parsed content on activities from IATI-compliant datasets.
#'
#' @export
#'
split_transaction <- function(row){
org_roles <- as.ch... | /R/split_transaction.R | permissive | unhcr-americas/IatiTidy | R | false | false | 1,855 | r | #' split_transaction
#'
#' Function to split activities by implementers.
#' Thanks to https://github.com/akmiller01/IATI-Covid
#'
#' @param row lines in the query extract
#'
#' @return Parsed content on activities from IATI-compliant datasets.
#'
#' @export
#'
split_transaction <- function(row){
org_roles <- as.ch... |
library(Rfmtool)
### Name: fm.Zeta
### Title: Zeta transform function
### Aliases: fm.Zeta
### Keywords: Zeta
### ** Examples
env<-fm.Init(3)
fm.Zeta(c(0.0,0.3,0.5,-0.2,0.4,0.1,-0.2,0.1),env)
| /data/genthat_extracted_code/Rfmtool/examples/fm.Zeta.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 200 | r | library(Rfmtool)
### Name: fm.Zeta
### Title: Zeta transform function
### Aliases: fm.Zeta
### Keywords: Zeta
### ** Examples
env<-fm.Init(3)
fm.Zeta(c(0.0,0.3,0.5,-0.2,0.4,0.1,-0.2,0.1),env)
|
convert_pacific_centric_2_regular <- function(dat, tempWrite = FALSE) {
if (xmax(dat) < 180) return(dat)
if (nlayers(dat) == 1) dat = dat[[1]]
index = 1:length(values(dat[[1]]))
xyz = cbind(xyFromCell(dat,index), values(dat))
x = xyz[, 1]
test = x > 180
x[test] = x[test] - 360
xyz[,1] = ... | /libs/convert_pacific_centric_2_regular.r | permissive | ndongbio/savanna_fire_feedback_test | R | false | false | 933 | r | convert_pacific_centric_2_regular <- function(dat, tempWrite = FALSE) {
if (xmax(dat) < 180) return(dat)
if (nlayers(dat) == 1) dat = dat[[1]]
index = 1:length(values(dat[[1]]))
xyz = cbind(xyFromCell(dat,index), values(dat))
x = xyz[, 1]
test = x > 180
x[test] = x[test] - 360
xyz[,1] = ... |
#' @include Solver-proto.R
NULL
#' Add a SYMPHONY solver with *Rsymphony*
#'
#' Specify that the *SYMPHONY* software should be used to solve a
#' conservation planning problem using the \pkg{Rsymphony} package. This
#' function can also be used to customize the behavior of the solver.
#' It requires the \pkg{Rsymphony... | /R/add_rsymphony_solver.R | no_license | diogosbr/prioritizr | R | false | false | 6,551 | r | #' @include Solver-proto.R
NULL
#' Add a SYMPHONY solver with *Rsymphony*
#'
#' Specify that the *SYMPHONY* software should be used to solve a
#' conservation planning problem using the \pkg{Rsymphony} package. This
#' function can also be used to customize the behavior of the solver.
#' It requires the \pkg{Rsymphony... |
#' Numerically stable log of the inv_logit function
#' @keywords internal
log_inv_logit <- function(u) {
ifelse(u < 0, u - log1p(exp(u)), - log1p(exp(-u)))
}
| /fuzzedpackages/RBesT/R/log_inv_logit.R | no_license | akhikolla/testpackages | R | false | false | 162 | r | #' Numerically stable log of the inv_logit function
#' @keywords internal
log_inv_logit <- function(u) {
ifelse(u < 0, u - log1p(exp(u)), - log1p(exp(-u)))
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vehdf.R
\name{vehdf}
\alias{vehdf}
\title{\code{vehdf} selects information about vehicle \code{veh}
of the \code{df} matrix for analysis with the \code{brktrials2} function.}
\usage{
vehdf(veh, nveh, df)
}
\arguments{
\item{veh}{vehicle, a nu... | /man/vehdf.Rd | permissive | PJOssenbruggen/Basic | R | false | true | 597 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vehdf.R
\name{vehdf}
\alias{vehdf}
\title{\code{vehdf} selects information about vehicle \code{veh}
of the \code{df} matrix for analysis with the \code{brktrials2} function.}
\usage{
vehdf(veh, nveh, df)
}
\arguments{
\item{veh}{vehicle, a nu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pm_annual_average.R
\name{pm_annual_average}
\alias{pm_annual_average}
\title{Calculate the annual average pm2.5 concentration, optionally with
completeness criteria}
\usage{
pm_annual_average(data, date = "date", val = "avg_24h", nr = "n_rea... | /man/pm_annual_average.Rd | permissive | lselzer/rcaaqs | R | false | true | 1,173 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pm_annual_average.R
\name{pm_annual_average}
\alias{pm_annual_average}
\title{Calculate the annual average pm2.5 concentration, optionally with
completeness criteria}
\usage{
pm_annual_average(data, date = "date", val = "avg_24h", nr = "n_rea... |
## Create basic example data frame to check Zbeta with. 15 SNPs over 5 chromosomes.
df<-data.frame(
SNP=c("SNP1","SNP2","SNP3","SNP4","SNP5","SNP6","SNP7","SNP8","SNP9","SNP10","SNP11","SNP12","SNP13","SNP14","SNP15"),
POS=c(100,200,300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500),
C1=c(1,1,2,1,2,1,1,... | /tests/testthat/test-Zbeta.R | permissive | chorscroft/zalpha | R | false | false | 8,901 | r |
## Create basic example data frame to check Zbeta with. 15 SNPs over 5 chromosomes.
df<-data.frame(
SNP=c("SNP1","SNP2","SNP3","SNP4","SNP5","SNP6","SNP7","SNP8","SNP9","SNP10","SNP11","SNP12","SNP13","SNP14","SNP15"),
POS=c(100,200,300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500),
C1=c(1,1,2,1,2,1,1,... |
tolIntNparNScalar <-
function (ltl.rank = ifelse(ti.type == "upper", 0, 1), n.plus.one.minus.utl.rank = ifelse(ti.type ==
"lower", 0, 1), coverage = 0.95, cov.type = "content", ti.type = "two.sided",
conf.level = 0.95)
{
ti.type <- match.arg(ti.type, c("two.sided", "lower", "upper"))
if (ti.typ... | /R/tolIntNparNScalar.R | no_license | alexkowa/EnvStats | R | false | false | 2,524 | r | tolIntNparNScalar <-
function (ltl.rank = ifelse(ti.type == "upper", 0, 1), n.plus.one.minus.utl.rank = ifelse(ti.type ==
"lower", 0, 1), coverage = 0.95, cov.type = "content", ti.type = "two.sided",
conf.level = 0.95)
{
ti.type <- match.arg(ti.type, c("two.sided", "lower", "upper"))
if (ti.typ... |
## So, this is my Cache making function... I hope.
#
#Credit where credit is due: As you will no doubt see it is largely based on the Vector Mean examples,
#but with different objects and processes. I also got a lot of mileage out
#of the example/tutorial Bill Hilton posted on the class forum -- thanks Bill!
#Tha... | /cachematrix.R | no_license | david-at-arsquanta/ProgrammingAssignment2 | R | false | false | 2,058 | r |
## So, this is my Cache making function... I hope.
#
#Credit where credit is due: As you will no doubt see it is largely based on the Vector Mean examples,
#but with different objects and processes. I also got a lot of mileage out
#of the example/tutorial Bill Hilton posted on the class forum -- thanks Bill!
#Tha... |
library(Surrogate)
### Name: plot Information-Theoretic BinCombn
### Title: Provides plots of trial- and individual-level surrogacy in the
### Information-Theoretic framework when both S and T are binary, or when
### S is binary and T is continuous (or vice versa)
### Aliases: 'plot Information-Theoretic BinCombn... | /data/genthat_extracted_code/Surrogate/examples/plot.InformationTheoreticBinCombn.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,659 | r | library(Surrogate)
### Name: plot Information-Theoretic BinCombn
### Title: Provides plots of trial- and individual-level surrogacy in the
### Information-Theoretic framework when both S and T are binary, or when
### S is binary and T is continuous (or vice versa)
### Aliases: 'plot Information-Theoretic BinCombn... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adsensehost_functions.R
\name{customchannels.patch}
\alias{customchannels.patch}
\title{Update a custom channel in the host AdSense account. This method supports patch semantics.}
\usage{
customchannels.patch(CustomChannel, adClientId, custom... | /googleadsensehostv41.auto/man/customchannels.patch.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 1,186 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adsensehost_functions.R
\name{customchannels.patch}
\alias{customchannels.patch}
\title{Update a custom channel in the host AdSense account. This method supports patch semantics.}
\usage{
customchannels.patch(CustomChannel, adClientId, custom... |
#Init
set.seed(123)
library(profvis)
library(MASS)
source('./datagen.R')
source('./aux_fcts_2b.R')
n = 100
beta = as.matrix(c(10,5,1,0,0,0))
data = rlogit(nobs = n,beta = beta)
#Rhapson-Newton algorithm with number of iterations as stopping criterion
k=2
system.time({beta_s = rhapson_newton(x = data$x[,1:k],y = ... | /run7.R | no_license | hugobrh/Parallel-Computing | R | false | false | 2,134 | r | #Init
set.seed(123)
library(profvis)
library(MASS)
source('./datagen.R')
source('./aux_fcts_2b.R')
n = 100
beta = as.matrix(c(10,5,1,0,0,0))
data = rlogit(nobs = n,beta = beta)
#Rhapson-Newton algorithm with number of iterations as stopping criterion
k=2
system.time({beta_s = rhapson_newton(x = data$x[,1:k],y = ... |
######################################################################################################################
# Function: DataModel.default
# Argument: Multiple character strings.
# Description: This function is called by default if the class of the argument is neither an Outcome,
# nor a Sa... | /R/DataModel.default.R | no_license | cran/Mediana | R | false | false | 1,036 | r | ######################################################################################################################
# Function: DataModel.default
# Argument: Multiple character strings.
# Description: This function is called by default if the class of the argument is neither an Outcome,
# nor a Sa... |
# 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/
# myShinyApp by Muhammad Sajid Qureshi - Solution to Assignment-3 of Module-4
library(shiny)
# Define s... | /server.R | no_license | muhammadsajidqureshi82/DevelopingDataProducts | R | false | false | 681 | 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/
# myShinyApp by Muhammad Sajid Qureshi - Solution to Assignment-3 of Module-4
library(shiny)
# Define s... |
\name{handlePCAComboBoxes}
\alias{handlePCAComboBoxes}
\title{Helper for updating to set the choices of two comboboxes}
\usage{
handlePCAComboBoxes(nbPC, PC1ComboBox, PC2ComboBox)
}
\arguments{
\item{nbPC}{the number of choices to display}
\item{PC1ComboBox}{a combobox to be changed}
\item{PC2ComboBox}{anothe... | /man/handlePCAComboBoxes.Rd | no_license | Neki/ProjetEnjeuSBT | R | false | false | 603 | rd | \name{handlePCAComboBoxes}
\alias{handlePCAComboBoxes}
\title{Helper for updating to set the choices of two comboboxes}
\usage{
handlePCAComboBoxes(nbPC, PC1ComboBox, PC2ComboBox)
}
\arguments{
\item{nbPC}{the number of choices to display}
\item{PC1ComboBox}{a combobox to be changed}
\item{PC2ComboBox}{anothe... |
corrs = read.csv("CORR_Sigma_44model.py.txt", header=FALSE)
library(ggplot2)
plot = ggplot(corrs) + geom_histogram(aes(x=V1)) + xlab("Correlation between Dimensions") + theme_bw() + ylab("Posterior Samples") + xlim(-1,1)
ggsave(plot, file="corr_sigma.pdf", height=2, width=4)
sink("correlation_sigma.txt")
cat("Me... | /change/ornuhl-binom/case_NoIE/separate_b/fits/viz_correlation.R | no_license | m-hahn/optimization-landscapes | R | false | false | 1,628 | r |
corrs = read.csv("CORR_Sigma_44model.py.txt", header=FALSE)
library(ggplot2)
plot = ggplot(corrs) + geom_histogram(aes(x=V1)) + xlab("Correlation between Dimensions") + theme_bw() + ylab("Posterior Samples") + xlim(-1,1)
ggsave(plot, file="corr_sigma.pdf", height=2, width=4)
sink("correlation_sigma.txt")
cat("Me... |
# Author: Robert J. Hijmans
# Date: Sept 2009
# Version 0.9
# Licence GPL v3
.plotraster2 <- function(object, col=rev(terrain.colors(250)), maxpixels=100000, xlab='', ylab='', ext=NULL, xlim, ylim, add=FALSE, addfun=NULL, colNA=NA, main, facvar=0, ...) {
if ( ! hasValues(object) ) {
stop('no values ass... | /R/plotRaster2.R | no_license | mengluchu/raster | R | false | false | 1,266 | r | # Author: Robert J. Hijmans
# Date: Sept 2009
# Version 0.9
# Licence GPL v3
.plotraster2 <- function(object, col=rev(terrain.colors(250)), maxpixels=100000, xlab='', ylab='', ext=NULL, xlim, ylim, add=FALSE, addfun=NULL, colNA=NA, main, facvar=0, ...) {
if ( ! hasValues(object) ) {
stop('no values ass... |
70db532961532614933580263017a0a0 ctrl.e#1.a#3.E#132.A#48.c#.w#9.s#13.asp.qdimacs 9683 28510 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#132.A#48.c#.w#9.s#13.asp/ctrl.e#1.a#3.E#132.A#48.c#.w#9.s#13.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 91 | r | 70db532961532614933580263017a0a0 ctrl.e#1.a#3.E#132.A#48.c#.w#9.s#13.asp.qdimacs 9683 28510 |
#library(survival)
library(cmprsk)
data(colon)
colon.new = colon
fit <- survfit(Surv(time,status)~rx, data=colon_death)
colon.new[which(colon$etype==1 && colon$status==1),fStatus] = 1 # recurrence occure
colon.new[which(colon$etype==1 && colon$status==2),fStatus] = 2 # death occure
colon.new[which(colon$etype==1 && col... | /741_hw4.R | no_license | sujee0524/R_survival_analysis | R | false | false | 500 | r | #library(survival)
library(cmprsk)
data(colon)
colon.new = colon
fit <- survfit(Surv(time,status)~rx, data=colon_death)
colon.new[which(colon$etype==1 && colon$status==1),fStatus] = 1 # recurrence occure
colon.new[which(colon$etype==1 && colon$status==2),fStatus] = 2 # death occure
colon.new[which(colon$etype==1 && col... |
#' Create Semantic UI checkbox
#' @aliases checkbox_input
#' @aliases toggle
#'
#' This creates a checkbox using Semantic UI styles.
#'
#' @param input_id Input name. Reactive value is available under input[[name]].
#' @param label Text to be displayed with checkbox.
#' @param type Type of checkbox: NULL, 'toggle'
#' @... | /R/checkbox.R | no_license | cran/shiny.semantic | R | false | false | 8,429 | r | #' Create Semantic UI checkbox
#' @aliases checkbox_input
#' @aliases toggle
#'
#' This creates a checkbox using Semantic UI styles.
#'
#' @param input_id Input name. Reactive value is available under input[[name]].
#' @param label Text to be displayed with checkbox.
#' @param type Type of checkbox: NULL, 'toggle'
#' @... |
\name{H2ORawData-class}
\Rdversion{1.1}
\docType{class}
\alias{H2ORawData-class}
\alias{show,H2ORawData-method}
\title{Class \code{"H2ORawData"}}
\description{
A class for representing imported data sets that have not been parsed.
}
\section{Objects from the Class}{
Objects can be created by calls of the form \code{ne... | /R/h2o-package/man/H2ORawData-class.Rd | permissive | ledell/h2o | R | false | false | 1,172 | rd | \name{H2ORawData-class}
\Rdversion{1.1}
\docType{class}
\alias{H2ORawData-class}
\alias{show,H2ORawData-method}
\title{Class \code{"H2ORawData"}}
\description{
A class for representing imported data sets that have not been parsed.
}
\section{Objects from the Class}{
Objects can be created by calls of the form \code{ne... |
# Hi
2 + 2 | /nada.R | no_license | p-parra/Primera-Prueba | R | false | false | 10 | r | # Hi
2 + 2 |
library(party)
library(caret)
data <- dfTest
data_2 <- dfValidation
t <- ctree(
Endpoint ~ Age + Education2003Revision + Race + MaritalStatus + Sex,
data,
controls = ctree_control(
teststat="quad",
testtype="Univariate",
mincriterion=.95,
minsplit=10,
minbucket=5,
maxdepth=0
)
)
plot(... | /Decision Tree.R | no_license | bryonkent/Springboard-Capstone-Project | R | false | false | 1,568 | r | library(party)
library(caret)
data <- dfTest
data_2 <- dfValidation
t <- ctree(
Endpoint ~ Age + Education2003Revision + Race + MaritalStatus + Sex,
data,
controls = ctree_control(
teststat="quad",
testtype="Univariate",
mincriterion=.95,
minsplit=10,
minbucket=5,
maxdepth=0
)
)
plot(... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{PATCH}
\alias{PATCH}
\title{Send PATCH request to a server.}
\usage{
PATCH(url = NULL, config = list(), ..., body = NULL, multipart = TRUE,
handle = NULL)
}
\arguments{
\item{url}{the url of the page to retrieve}
\item{config}{Additional configuration settin... | /man/PATCH.Rd | no_license | haleemurrasheed/httr | R | false | false | 1,877 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{PATCH}
\alias{PATCH}
\title{Send PATCH request to a server.}
\usage{
PATCH(url = NULL, config = list(), ..., body = NULL, multipart = TRUE,
handle = NULL)
}
\arguments{
\item{url}{the url of the page to retrieve}
\item{config}{Additional configuration settin... |
###############################################################################################################
###############################################################################################################
##########################################################################################... | /Minor_Modules/4___Prepare_Future_Climate_Data.R | no_license | pwmoonlight/01_Scripts | R | false | false | 2,534 | r | ###############################################################################################################
###############################################################################################################
##########################################################################################... |
#
# Script for deleting genes without informations in any species
#
orthos = read.csv(snakemake@input$orthos, sep = ",")
for(i in 1:length(snakemake@input$reads)){
#
# Build list
#
txi_new = list(matrix(nrow = length(orthos[,1]), ncol = 0),
matrix(nrow = length(orthos[,1]), ncol = 0),
... | /Normalizing/scripts/Filter_Orthos.R | no_license | alilub/CENSO | R | false | false | 1,660 | r | #
# Script for deleting genes without informations in any species
#
orthos = read.csv(snakemake@input$orthos, sep = ",")
for(i in 1:length(snakemake@input$reads)){
#
# Build list
#
txi_new = list(matrix(nrow = length(orthos[,1]), ncol = 0),
matrix(nrow = length(orthos[,1]), ncol = 0),
... |
# ----- preprocess -----
library(magrittr)
# Starter Data.
starter.n_samples <- 500
starter.n_centers <- 6
starter.cluster_sd <- 1
starter.cluster_sd_var <- 0.5
starter.cluster_min_dist <- 1
starter.seed <- 2
# Data Generation Methods.
make_blobs <- function(
n_samples = starter.n_samples,
n_centers = starter... | /Shiny/server.R | no_license | rvcoudert/ClusteringCatalog | R | false | false | 56,768 | r | # ----- preprocess -----
library(magrittr)
# Starter Data.
starter.n_samples <- 500
starter.n_centers <- 6
starter.cluster_sd <- 1
starter.cluster_sd_var <- 0.5
starter.cluster_min_dist <- 1
starter.seed <- 2
# Data Generation Methods.
make_blobs <- function(
n_samples = starter.n_samples,
n_centers = starter... |
# renameSamples.R
#
# Package: pfx
# Author: Richard D Pearson
# Email: richard.pearson@well.ox.ac.uk
#
###############################################################################
renameSamples <- function(
vcf,
sampleIDmappings = createSampleIDmappings(
sampleIDs = dimnames(... | /R/renameSamples.R | no_license | podpearson/pfx | R | false | false | 504 | r | # renameSamples.R
#
# Package: pfx
# Author: Richard D Pearson
# Email: richard.pearson@well.ox.ac.uk
#
###############################################################################
renameSamples <- function(
vcf,
sampleIDmappings = createSampleIDmappings(
sampleIDs = dimnames(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readNWQLdl.R
\name{readNWQLdl}
\alias{readNWQLdl}
\title{Historical Reporting Limits}
\usage{
readNWQLdl(parm_cd)
}
\arguments{
\item{parm_cd}{the parameter code.}
}
\value{
A data frame of the analyte, methods, begin and end date for each
re... | /man/readNWQLdl.Rd | permissive | Zhenglei-BCS/smwrQW | R | false | true | 735 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readNWQLdl.R
\name{readNWQLdl}
\alias{readNWQLdl}
\title{Historical Reporting Limits}
\usage{
readNWQLdl(parm_cd)
}
\arguments{
\item{parm_cd}{the parameter code.}
}
\value{
A data frame of the analyte, methods, begin and end date for each
re... |
library(data.table)
load_kdd_data <- function()
{
filename <-
"C:\\Users\\blahiri\\kdd_cup_for_SAx\\kddcup.data.corrected"
data_corr <- fread(filename, header = FALSE, sep = ",", stringsAsFactors = FALSE, showProgress = TRUE,
colClasses = c("numeric", "character", "character", "... | /process_kdd.R | no_license | bibudhlahiri/learning | R | false | false | 9,978 | r | library(data.table)
load_kdd_data <- function()
{
filename <-
"C:\\Users\\blahiri\\kdd_cup_for_SAx\\kddcup.data.corrected"
data_corr <- fread(filename, header = FALSE, sep = ",", stringsAsFactors = FALSE, showProgress = TRUE,
colClasses = c("numeric", "character", "character", "... |
#### 0. GETTING STARTED IN R
# www.bioconductor.org has instructions how to install R
# and how to install BioC packages
# packages come with Vignettes (manuals)
library(package)
openVignette(package)
# more extensive help per function is available with
?function
# you can even get help on help
?help
# to see what... | /source/RBasicFunctions.r | no_license | FOS-MDS/clustering | R | false | false | 4,617 | r | #### 0. GETTING STARTED IN R
# www.bioconductor.org has instructions how to install R
# and how to install BioC packages
# packages come with Vignettes (manuals)
library(package)
openVignette(package)
# more extensive help per function is available with
?function
# you can even get help on help
?help
# to see what... |
###########################################
#Roman Shaikh
#Student Number: 18300989
###########################################
# Install all the required packages
#install.packages(c("partykit","rpart","randomForest","naniar","ggplot2","corrgram","sm"))
# Import all the required libs
library(partykit)
library(rpart)
... | /CS7DS1-Data Analytics/Final_project/DataAnalyticsFinalAssignment/R Code/DAfinalProject.R | no_license | Mihirtcd/trinity | R | false | false | 14,332 | r | ###########################################
#Roman Shaikh
#Student Number: 18300989
###########################################
# Install all the required packages
#install.packages(c("partykit","rpart","randomForest","naniar","ggplot2","corrgram","sm"))
# Import all the required libs
library(partykit)
library(rpart)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/00tabletrees.R
\docType{class}
\name{ElementaryTable-class}
\alias{ElementaryTable-class}
\alias{ElementaryTable}
\alias{TableTree-class}
\alias{TableTree}
\title{TableTree classes}
\usage{
ElementaryTable(
kids = list(),
name = "",
lev... | /man/tabclasses.Rd | permissive | rochecirclecipoc/rtables | R | false | true | 2,390 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/00tabletrees.R
\docType{class}
\name{ElementaryTable-class}
\alias{ElementaryTable-class}
\alias{ElementaryTable}
\alias{TableTree-class}
\alias{TableTree}
\title{TableTree classes}
\usage{
ElementaryTable(
kids = list(),
name = "",
lev... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple.R
\name{simplify}
\alias{simplify}
\alias{is.simple}
\alias{is_simple}
\title{Simple graphs}
\usage{
simplify(graph, remove.multiple = TRUE, remove.loops = TRUE,
edge.attr.comb = igraph_opt("edge.attr.comb"))
is_simple(graph)
}
\arg... | /man/simplify.Rd | no_license | andresrabinovich/igraph | R | false | true | 1,835 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple.R
\name{simplify}
\alias{simplify}
\alias{is.simple}
\alias{is_simple}
\title{Simple graphs}
\usage{
simplify(graph, remove.multiple = TRUE, remove.loops = TRUE,
edge.attr.comb = igraph_opt("edge.attr.comb"))
is_simple(graph)
}
\arg... |
getData <- function(connectionDetails,
cdmDatabaseSchema,
cdmDatabaseName,
cohortDatabaseSchema,
cohortTable,
cohortId,
oracleTempSchema,
standardCovariates,
en... | /CovidVulnerabilityIndex/R/helpers.R | no_license | odysseusinc/Covid19PredictionStudies | R | false | false | 4,091 | r | getData <- function(connectionDetails,
cdmDatabaseSchema,
cdmDatabaseName,
cohortDatabaseSchema,
cohortTable,
cohortId,
oracleTempSchema,
standardCovariates,
en... |
"chisq.out.test" <-
function (x,variance=var(x),opposite=FALSE)
{
DNAME <- deparse(substitute(x))
x <- sort(x[complete.cases(x)])
n <- length(x);
if (xor(((x[n] - mean(x)) < (mean(x) - x[1])),opposite)) {
alt = paste("lowest value",x[1],"is an outlier");
chi <- (mean(x)-x[1])^2/variance
}
else{
alt = paste("highest va... | /r-modules/outliers/R/chisq.out.test.R | no_license | CMPUT401Group/analytic-engine | R | false | false | 593 | r | "chisq.out.test" <-
function (x,variance=var(x),opposite=FALSE)
{
DNAME <- deparse(substitute(x))
x <- sort(x[complete.cases(x)])
n <- length(x);
if (xor(((x[n] - mean(x)) < (mean(x) - x[1])),opposite)) {
alt = paste("lowest value",x[1],"is an outlier");
chi <- (mean(x)-x[1])^2/variance
}
else{
alt = paste("highest va... |
## This is the R code used to generate the Coronavirus Visualizations shown in the website.
# https://rpubs.com/yeshwanth88/669991
library(RColorBrewer)
library(reshape2)
library(tidyverse)
library(tidyquant)
library(ggplot2)
library(plotly)
library(riingo)
library(quantmod)
require("quantmod")
library(writexl)
librar... | /DailyCases.R | no_license | yeshwanthsomu/Coronavirus-Tracker | R | false | false | 12,245 | r | ## This is the R code used to generate the Coronavirus Visualizations shown in the website.
# https://rpubs.com/yeshwanth88/669991
library(RColorBrewer)
library(reshape2)
library(tidyverse)
library(tidyquant)
library(ggplot2)
library(plotly)
library(riingo)
library(quantmod)
require("quantmod")
library(writexl)
librar... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/gmult.R
\name{gmult}
\alias{gmult}
\title{LINKAGES gmult function}
\usage{
gmult(egs, bgs, availn, degd, dmin, dmax, d3, fj, cm1, cm3, cm2, cm4, cm5,
nspec)
}
\arguments{
\item{egs}{end of growing season day of year}
\item{bgs}{beg... | /man/gmult.Rd | no_license | npp97-field/linkages_package | R | false | false | 1,386 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/gmult.R
\name{gmult}
\alias{gmult}
\title{LINKAGES gmult function}
\usage{
gmult(egs, bgs, availn, degd, dmin, dmax, d3, fj, cm1, cm3, cm2, cm4, cm5,
nspec)
}
\arguments{
\item{egs}{end of growing season day of year}
\item{bgs}{beg... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-side.R
\name{get_sides_x}
\alias{get_sides_x}
\title{return sides that are either x (odd)}
\usage{
get_sides_x(sides)
}
\arguments{
\item{sides}{an integer vector of any length}
}
\value{
the side that corresponds to x
}
\description{
r... | /man/get_sides_x.Rd | permissive | USGS-R/gsplot | R | false | true | 377 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-side.R
\name{get_sides_x}
\alias{get_sides_x}
\title{return sides that are either x (odd)}
\usage{
get_sides_x(sides)
}
\arguments{
\item{sides}{an integer vector of any length}
}
\value{
the side that corresponds to x
}
\description{
r... |
# Read Data
source("data.R")
# Draw Graph
png("plot3.png")
with(data, plot(DateTime, Sub_metering_1, type="n", xlab = "", ylab = "Energy sub metering"))
with(data, lines(DateTime, Sub_metering_2, col = "red"))
with(data, lines(DateTime, Sub_metering_3, col = "blue"))
with(data, lines(DateTime, Sub_metering... | /plot3.R | no_license | oldkeung/ExData_Plotting1 | R | false | false | 489 | r | # Read Data
source("data.R")
# Draw Graph
png("plot3.png")
with(data, plot(DateTime, Sub_metering_1, type="n", xlab = "", ylab = "Energy sub metering"))
with(data, lines(DateTime, Sub_metering_2, col = "red"))
with(data, lines(DateTime, Sub_metering_3, col = "blue"))
with(data, lines(DateTime, Sub_metering... |
library(stringr)
library(raster)
library(data.table)
library(rgdal)
### CONSTANT ----
# Threshold
threshold_mask <- -0.036 # How was this threshold set?
# Number of pixels
nb_pix <- 67642244
### Path ----
predict_dir <- "/home/shares/ecodrought/VulnerabilityAnalysis/Predictors"
domain_dir <- "/home/shares/ecodrought... | /mask_pixels.R | no_license | Science-for-Nature-and-People/eco-drought-data | R | false | false | 4,448 | r | library(stringr)
library(raster)
library(data.table)
library(rgdal)
### CONSTANT ----
# Threshold
threshold_mask <- -0.036 # How was this threshold set?
# Number of pixels
nb_pix <- 67642244
### Path ----
predict_dir <- "/home/shares/ecodrought/VulnerabilityAnalysis/Predictors"
domain_dir <- "/home/shares/ecodrought... |
# Loading required Packages
library(dplyr)
#Set Working Directory for reading dataset
setwd("C:/Users/r.pratap.singh/Desktop/JohnHopkins/exdata_data_household_power_consumption")
#Read the file
power_data <- read.table("household_power_consumption.txt", header=T, sep = ";", na.strings = "?")
head(power_data)
str(... | /figure/plot2.R | no_license | ravinderpratap/ExData_Plotting1 | R | false | false | 1,196 | r | # Loading required Packages
library(dplyr)
#Set Working Directory for reading dataset
setwd("C:/Users/r.pratap.singh/Desktop/JohnHopkins/exdata_data_household_power_consumption")
#Read the file
power_data <- read.table("household_power_consumption.txt", header=T, sep = ";", na.strings = "?")
head(power_data)
str(... |
#modified March 4, 2009 for matrix output
#and yet again August 1 to make it actually work!
#modified May 26, 2014 to add the ability to specify group by name or location
"describe.by" <-
function (x,group=NULL,mat=FALSE,type=3,...) { #data are x, grouping variable is group
.Deprecated("describeBy", msg =... | /R/describe.by.R | no_license | franciscowilhelm/psych | R | false | false | 3,505 | r | #modified March 4, 2009 for matrix output
#and yet again August 1 to make it actually work!
#modified May 26, 2014 to add the ability to specify group by name or location
"describe.by" <-
function (x,group=NULL,mat=FALSE,type=3,...) { #data are x, grouping variable is group
.Deprecated("describeBy", msg =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ojuice.R
\docType{data}
\name{ojuice}
\alias{ojuice}
\title{Orange Juice.}
\format{
A data frame with 24 rows and 2 variables:
\describe{
\item{SweetIndex}{Higher the index the sweeter the juice}
\item{Pectin}{Water soluble Pectin in ppm}... | /man/ojuice.Rd | permissive | lilyraye/Intro2R-COVID | R | false | true | 708 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ojuice.R
\docType{data}
\name{ojuice}
\alias{ojuice}
\title{Orange Juice.}
\format{
A data frame with 24 rows and 2 variables:
\describe{
\item{SweetIndex}{Higher the index the sweeter the juice}
\item{Pectin}{Water soluble Pectin in ppm}... |
acontext("path key")
path.list <- list()
N <- 100
x <- 1:N
point <- data.frame(
showSelected.i=1:2)
set.seed(1)
for(group.i in 1:2){
for(showSelected.i in point$showSelected.i){
path.list[[paste(group.i, showSelected.i)]] <-
data.frame(group.i, showSelected.i, x, y=rnorm(N, group.i))
}
}
path <- do.cal... | /tests/testthat/test-renderer3-path-key.R | no_license | stfkolev/animint | R | false | false | 1,634 | r | acontext("path key")
path.list <- list()
N <- 100
x <- 1:N
point <- data.frame(
showSelected.i=1:2)
set.seed(1)
for(group.i in 1:2){
for(showSelected.i in point$showSelected.i){
path.list[[paste(group.i, showSelected.i)]] <-
data.frame(group.i, showSelected.i, x, y=rnorm(N, group.i))
}
}
path <- do.cal... |
library(readxl)
library(NbClust)
# Read the excel
vehicles_original <- read_excel("SampleData.xlsx")
| /cw.R | no_license | mahfoos/Learning-R | R | false | false | 103 | r | library(readxl)
library(NbClust)
# Read the excel
vehicles_original <- read_excel("SampleData.xlsx")
|
##--------------------------------------------
##
## Exploring Data in R (lecture 1)
##
## Class: PCE Data Science 350
##
## Contains examples of:
##
## - Visualization and data exploration using ggplot2
## and auto price data.
##
##--------------------------------------------
## Read the csv file into a data frame... | /R/Lecture1/Lecture1/Old/PlotExample.R | no_license | StephenElston/DataScience410 | R | false | false | 3,652 | r | ##--------------------------------------------
##
## Exploring Data in R (lecture 1)
##
## Class: PCE Data Science 350
##
## Contains examples of:
##
## - Visualization and data exploration using ggplot2
## and auto price data.
##
##--------------------------------------------
## Read the csv file into a data frame... |
with(a57e10a33c93944338b9dad4e6d785d00, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/1c4fa71c-191c-4da9-8102-b247ffddc5d3';options(digits.secs=NULL);FRAME950866[,(c('DATA_COLLECTION_TIME')) := lapply(.SD, function(x) as.POSIXct(fast_strptime(x, fo... | /1c4fa71c-191c-4da9-8102-b247ffddc5d3/R/Temp/a3Rx6YQ6xClWL.R | no_license | ayanmanna8/test | R | false | false | 388 | r | with(a57e10a33c93944338b9dad4e6d785d00, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/1c4fa71c-191c-4da9-8102-b247ffddc5d3';options(digits.secs=NULL);FRAME950866[,(c('DATA_COLLECTION_TIME')) := lapply(.SD, function(x) as.POSIXct(fast_strptime(x, fo... |
library(mirt)
resp<-read.table("emp-rasch.txt",header=FALSE)
#generate models
mod1<-mirt(resp,1,itemtype="Rasch")
mod2<-mirt(resp,1,itemtype="2PL")
mod3<-mirt(resp,1,itemtype="3PL")
#estimate and sort abilities
fscores(mod1,full.scores.SE=TRUE)->th1
th1[order(th1[,1]),]->th1
fscores(mod2,full.scores.SE=TRUE)->th2
t... | /ps3/shortish8_easy.R | no_license | kgmt0/252L | R | false | false | 991 | r | library(mirt)
resp<-read.table("emp-rasch.txt",header=FALSE)
#generate models
mod1<-mirt(resp,1,itemtype="Rasch")
mod2<-mirt(resp,1,itemtype="2PL")
mod3<-mirt(resp,1,itemtype="3PL")
#estimate and sort abilities
fscores(mod1,full.scores.SE=TRUE)->th1
th1[order(th1[,1]),]->th1
fscores(mod2,full.scores.SE=TRUE)->th2
t... |
library(rgr)
### Name: tbplots
### Title: Plot Vertical Tukey Boxplots
### Aliases: tbplots
### Keywords: hplot
### ** Examples
## Make test data kola.c available
data(kola.c)
attach(kola.c)
## Display a simple Tukey boxplot
tbplots(Cu, by = COUNTRY)
tbplots(split(Cu,COUNTRY))
## Display a more appropriately labe... | /data/genthat_extracted_code/rgr/examples/tbplots.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,887 | r | library(rgr)
### Name: tbplots
### Title: Plot Vertical Tukey Boxplots
### Aliases: tbplots
### Keywords: hplot
### ** Examples
## Make test data kola.c available
data(kola.c)
attach(kola.c)
## Display a simple Tukey boxplot
tbplots(Cu, by = COUNTRY)
tbplots(split(Cu,COUNTRY))
## Display a more appropriately labe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/categories.R
\name{categories}
\alias{categories}
\alias{categories_details}
\alias{category}
\alias{category_create}
\alias{category_latest_topics}
\alias{category_new_topics}
\alias{category_top_topics}
\title{Work with categories}
\usage{
... | /man/categories.Rd | no_license | jacob-ogre/discgolf | R | false | true | 2,217 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/categories.R
\name{categories}
\alias{categories}
\alias{categories_details}
\alias{category}
\alias{category_create}
\alias{category_latest_topics}
\alias{category_new_topics}
\alias{category_top_topics}
\title{Work with categories}
\usage{
... |
//UsageExampleIris_x10_Classify.NaiveBayes.ClassifyD.ecl
IMPORT * FROM ML;
iris := ML.Tests.Deprecated.IrisPlantDS;
OUTPUT(iris,NAMED('iris'));
ML.ToField(iris,flds0a);
flds0:=
PROJECT(flds0a
,TRANSFORM(recordof(flds0a)
,SELF.value := IF( LEFT.number=1, LEFT.value, LEFT.value*10)
... | /ML10/ML10_LinearRegression_UsageExample3.r | no_license | iMikePayne/ml-development | R | false | false | 1,704 | r | //UsageExampleIris_x10_Classify.NaiveBayes.ClassifyD.ecl
IMPORT * FROM ML;
iris := ML.Tests.Deprecated.IrisPlantDS;
OUTPUT(iris,NAMED('iris'));
ML.ToField(iris,flds0a);
flds0:=
PROJECT(flds0a
,TRANSFORM(recordof(flds0a)
,SELF.value := IF( LEFT.number=1, LEFT.value, LEFT.value*10)
... |
x<- c(rnorm(55, 2.4, .65), rnorm(75, 3.34, .55))
y<- c(rep(0, 55), rep(1, 75))
require(stats); require(graphics)
library(splines)
# x_raw <- seq(1,10,0.1)
N <- length(x)
# y <- cos(x_raw)+rnorm(len_data,0,0.1)
# y[30] <- 1.4 # outlier point
summary(fm1 <- glm(y ~ x, family = binomial))
x.new <-seq(min(x), max(x),len... | /confidence interval around model line.R | no_license | bridgeta/Handy-skeleton-code | R | false | false | 2,077 | r | x<- c(rnorm(55, 2.4, .65), rnorm(75, 3.34, .55))
y<- c(rep(0, 55), rep(1, 75))
require(stats); require(graphics)
library(splines)
# x_raw <- seq(1,10,0.1)
N <- length(x)
# y <- cos(x_raw)+rnorm(len_data,0,0.1)
# y[30] <- 1.4 # outlier point
summary(fm1 <- glm(y ~ x, family = binomial))
x.new <-seq(min(x), max(x),len... |
#library(nlme)
library(MuMIn)
library(lmSupport)
library(qvalue)
library(matrixStats)
setwd("../")
args = commandArgs(trailingOnly=TRUE)
resultdir = "result.rsem.TET/"
print (args)
if (length(args)>0) {
resultdir = args[1]
if (substr(resultdir, nchar(resultdir), nchar(resultdir)) != "/") {
resultdir = paste0(r... | /src/XBP12L1HS.r | no_license | HanLabUNLV/TEcoex | R | false | false | 9,771 | r | #library(nlme)
library(MuMIn)
library(lmSupport)
library(qvalue)
library(matrixStats)
setwd("../")
args = commandArgs(trailingOnly=TRUE)
resultdir = "result.rsem.TET/"
print (args)
if (length(args)>0) {
resultdir = args[1]
if (substr(resultdir, nchar(resultdir), nchar(resultdir)) != "/") {
resultdir = paste0(r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ypr.R
\name{ypr}
\alias{ypr}
\title{Yield-per-recruit}
\usage{
ypr(params, adj.params)
}
\arguments{
\item{params}{List of parameters for the population. Applies a single cohort
simulation for the initial population state using \code{\link[fi... | /man/ypr.Rd | no_license | hbwxf/fishdynr | R | false | true | 2,349 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ypr.R
\name{ypr}
\alias{ypr}
\title{Yield-per-recruit}
\usage{
ypr(params, adj.params)
}
\arguments{
\item{params}{List of parameters for the population. Applies a single cohort
simulation for the initial population state using \code{\link[fi... |
calStartTemp<-function(Z){
xml_nodes(Z,'AssayDataSet') %>%
xml_nodes('CalibrationStartTemperature') %>%
xml_text()
}
| /R/calStartTemp.R | no_license | JARS3N/axml | R | false | false | 142 | r | calStartTemp<-function(Z){
xml_nodes(Z,'AssayDataSet') %>%
xml_nodes('CalibrationStartTemperature') %>%
xml_text()
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createExpressionSet.R
\name{createExpressionSet}
\alias{createExpressionSet}
\title{Create an expressionset from Illumina HT12v4 data}
\usage{
createExpressionSet(ht12object, paramfile = NULL,
colseparator = "from_paramfile")
}
\arguments{
... | /man/createExpressionSet.Rd | no_license | cfbeuchel/HT12ProcessoR | R | false | true | 1,751 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createExpressionSet.R
\name{createExpressionSet}
\alias{createExpressionSet}
\title{Create an expressionset from Illumina HT12v4 data}
\usage{
createExpressionSet(ht12object, paramfile = NULL,
colseparator = "from_paramfile")
}
\arguments{
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ReadMx3005PSampleInfo.R
\name{Read.Mx3005PSampleInfo}
\alias{Read.Mx3005PSampleInfo}
\title{Read sample information file of raw data of Mx3005P RT-qPCR}
\usage{
Read.Mx3005PSampleInfo(file, removeEmptyCols = FALSE, header = TRUE,
sep = "\\t... | /man/Read.Mx3005PSampleInfo.Rd | no_license | hotliu/RTqPCR | R | false | true | 2,675 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ReadMx3005PSampleInfo.R
\name{Read.Mx3005PSampleInfo}
\alias{Read.Mx3005PSampleInfo}
\title{Read sample information file of raw data of Mx3005P RT-qPCR}
\usage{
Read.Mx3005PSampleInfo(file, removeEmptyCols = FALSE, header = TRUE,
sep = "\\t... |
# To install 'squire' package in R, please follow instructions in this link: https://mrc-ide.github.io/squire/
# To install 'odin' package in R, please follow instructiosn in this link: https://github.com/mrc-ide/odin
# All other packages are available in CRAN
## Load Required Packages
library(tidyverse); library(soci... | /Script/FIG_1.R | permissive | andradjaafara/covid19_indonesia_report | R | false | false | 10,789 | r | # To install 'squire' package in R, please follow instructions in this link: https://mrc-ide.github.io/squire/
# To install 'odin' package in R, please follow instructiosn in this link: https://github.com/mrc-ide/odin
# All other packages are available in CRAN
## Load Required Packages
library(tidyverse); library(soci... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estCrossVal.R
\name{estCrossVal}
\alias{estCrossVal}
\title{Jack-Knife cross validation of the WRTDS (Weighted Regressions on Time, Discharge, and Season)}
\usage{
estCrossVal(
DecLow,
DecHigh,
Sample,
windowY = 7,
windowQ = 2,
wi... | /man/estCrossVal.Rd | permissive | megamanrogue/EGRET | R | false | true | 2,343 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estCrossVal.R
\name{estCrossVal}
\alias{estCrossVal}
\title{Jack-Knife cross validation of the WRTDS (Weighted Regressions on Time, Discharge, and Season)}
\usage{
estCrossVal(
DecLow,
DecHigh,
Sample,
windowY = 7,
windowQ = 2,
wi... |
currency_info = function(currency_name, snapshot)
{
if(!is.null(snapshot))
{
result = snapshot[snapshot$unique_name == currency_name,]
#return(result)
}else
{
print("Output is a list of two objects, use output[[1]] for currency_info")
print("By using snapshot = output[[2]], fetch the info of oth... | /functions/currency_info.R | no_license | jaideepreddyk/Cryptocurrency-Project | R | false | false | 3,097 | r | currency_info = function(currency_name, snapshot)
{
if(!is.null(snapshot))
{
result = snapshot[snapshot$unique_name == currency_name,]
#return(result)
}else
{
print("Output is a list of two objects, use output[[1]] for currency_info")
print("By using snapshot = output[[2]], fetch the info of oth... |
#' @include Portfolio-proto.R
NULL
#' Add a shuffle portfolio
#'
#' Generate a portfolio of solutions for a conservation planning
#' \code{\link{problem}} by randomly reordering the data prior to
#' solving the problem ().
#'
#' @param x \code{\link{ConservationProblem-class}} object.
#'
#' @param number_solutions \co... | /R/add_shuffle_portfolio.R | no_license | IsaakBM/prioritizr | R | false | false | 5,825 | r | #' @include Portfolio-proto.R
NULL
#' Add a shuffle portfolio
#'
#' Generate a portfolio of solutions for a conservation planning
#' \code{\link{problem}} by randomly reordering the data prior to
#' solving the problem ().
#'
#' @param x \code{\link{ConservationProblem-class}} object.
#'
#' @param number_solutions \co... |
#' Defuse R expressions
#'
#' @description
#'
#' \Sexpr[results=rd, stage=render]{rlang:::lifecycle("stable")}
#'
#' The defusing operators `expr()` and `enquo()` prevent the
#' evaluation of R code. Defusing is also known as _quoting_, and is
#' done in base R by [quote()] and [substitute()]. When a function
#' argume... | /R/nse-defuse.R | no_license | Enchufa2/rlang | R | false | false | 13,427 | r | #' Defuse R expressions
#'
#' @description
#'
#' \Sexpr[results=rd, stage=render]{rlang:::lifecycle("stable")}
#'
#' The defusing operators `expr()` and `enquo()` prevent the
#' evaluation of R code. Defusing is also known as _quoting_, and is
#' done in base R by [quote()] and [substitute()]. When a function
#' argume... |
#rm(list = ls())
olap.rate<- dba.overlap(chaoDBA, mode = DBA_OLAP_RATE)
olap.rate
plot(olap.rate,type='b',ylab='# peaks', xlab='Overlap at least this many peaksets')
names((chaoDBA$masks))
dba.overlap(chaoDBA, chaoDBA$masks$day0 & chaoDBA$masks$old, mode = DBA_OLAP_RATE)
pdf("peak overlap between biological replica... | /R/QC-consensus_peaks_MSC0.r | no_license | cjbio/NGS_ATAC | R | false | false | 1,364 | r | #rm(list = ls())
olap.rate<- dba.overlap(chaoDBA, mode = DBA_OLAP_RATE)
olap.rate
plot(olap.rate,type='b',ylab='# peaks', xlab='Overlap at least this many peaksets')
names((chaoDBA$masks))
dba.overlap(chaoDBA, chaoDBA$masks$day0 & chaoDBA$masks$old, mode = DBA_OLAP_RATE)
pdf("peak overlap between biological replica... |
#' Given a list of genes and a SingleCellExperiment object, return
#' the binary or continuous expression of the genes.
#'
#' @param gene gene list
#' @param binary "Binary" for binary expression or "Continuous" for a gradient.
#' Default: "Binary"
#' @param inSCE Input \linkS4class{SingleCellExperiment} object.
#' @pa... | /R/getBiomarker.R | permissive | rz2333/singleCellTK | R | false | false | 1,654 | r | #' Given a list of genes and a SingleCellExperiment object, return
#' the binary or continuous expression of the genes.
#'
#' @param gene gene list
#' @param binary "Binary" for binary expression or "Continuous" for a gradient.
#' Default: "Binary"
#' @param inSCE Input \linkS4class{SingleCellExperiment} object.
#' @pa... |
\name{searchplos}
\alias{searchplos}
\title{Base function to search PLoS Journals}
\usage{
searchplos(terms = NA, fields = "id", toquery = NA,
start = 0, limit = NA, returndf = TRUE,
key = getOption("PlosApiKey", stop("need an API key for PLoS Journals")),
sleep = 6, ..., curl = getCurlHandle())
}
\argume... | /man/searchplos.Rd | no_license | bbolker/rplos | R | false | false | 2,709 | rd | \name{searchplos}
\alias{searchplos}
\title{Base function to search PLoS Journals}
\usage{
searchplos(terms = NA, fields = "id", toquery = NA,
start = 0, limit = NA, returndf = TRUE,
key = getOption("PlosApiKey", stop("need an API key for PLoS Journals")),
sleep = 6, ..., curl = getCurlHandle())
}
\argume... |
# bind global variables
if(getRversion() >= "2.15.1") utils::globalVariables(c("beta", "lower", "upper", "p", "pa", "shape"))
#' @title Plot beta coefficients of multiple fitted lm's
#' @name sjp.lmm
#' @references \url{http://strengejacke.wordpress.com/sjplot-r-package/}
#'
#' @description Plot beta coefficients (es... | /R/sjPlotLinregMultiple.R | no_license | wilpi/devel | R | false | false | 19,280 | r | # bind global variables
if(getRversion() >= "2.15.1") utils::globalVariables(c("beta", "lower", "upper", "p", "pa", "shape"))
#' @title Plot beta coefficients of multiple fitted lm's
#' @name sjp.lmm
#' @references \url{http://strengejacke.wordpress.com/sjplot-r-package/}
#'
#' @description Plot beta coefficients (es... |
#' Trend Extraction by Moving Averages
#'
#' Extracts and plots the trend for a time series.
#' @param x A time series
#' @param order Order of moving average smoother. Defaults to 5.
#' @param plot Whether to plot the trend or not. Defaults to TRUE.
#' @param detrend Whether to remove the calculated trend from the tim... | /R/ts_trend.R | no_license | alberto-mateos-mo/tsextras | R | false | false | 3,595 | r | #' Trend Extraction by Moving Averages
#'
#' Extracts and plots the trend for a time series.
#' @param x A time series
#' @param order Order of moving average smoother. Defaults to 5.
#' @param plot Whether to plot the trend or not. Defaults to TRUE.
#' @param detrend Whether to remove the calculated trend from the tim... |
##1.Merges the training and the test sets to create one data set.
##2.Extracts only the measurements on the mean and standard deviation for each measurement.
##3.Uses descriptive activity names to name the activities in the data set
##4.Appropriately labels the data set with descriptive variable names.
##5.From the d... | /run_analysis.R | no_license | shinws/Getting-and-Cleaning-Data-Course | R | false | false | 2,511 | r | ##1.Merges the training and the test sets to create one data set.
##2.Extracts only the measurements on the mean and standard deviation for each measurement.
##3.Uses descriptive activity names to name the activities in the data set
##4.Appropriately labels the data set with descriptive variable names.
##5.From the d... |
/code/ce-Subpathway code.R | no_license | HMU-ChaoWang/ce-Subpathway | R | false | false | 3,402 | r | ||
library(Mangrove)
### Name: getVarExp
### Title: Calculating liability-scale variance explained by genetic risk
### variants
### Aliases: getVarExp getVarExpSim
### Keywords: misc
### ** Examples
data(exampleORs)
getVarExp(exampleORs,0.02)
getVarExpSim(exampleORs,0.02)
| /data/genthat_extracted_code/Mangrove/examples/getVarExp.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 279 | r | library(Mangrove)
### Name: getVarExp
### Title: Calculating liability-scale variance explained by genetic risk
### variants
### Aliases: getVarExp getVarExpSim
### Keywords: misc
### ** Examples
data(exampleORs)
getVarExp(exampleORs,0.02)
getVarExpSim(exampleORs,0.02)
|
#' Perturb soil horizon depths using boundary distinctness
#'
#' @param p A SoilProfileCollection
#' @param n Number of new profiles to generate (default: `100`) per profile in `p`
#' @param id a vector of profile IDs with length equal to (\code{n}). Overrides use of \code{seq_len(n)} as default profile ID values... | /R/perturb.R | no_license | cran/aqp | R | false | false | 13,894 | r | #' Perturb soil horizon depths using boundary distinctness
#'
#' @param p A SoilProfileCollection
#' @param n Number of new profiles to generate (default: `100`) per profile in `p`
#' @param id a vector of profile IDs with length equal to (\code{n}). Overrides use of \code{seq_len(n)} as default profile ID values... |
# H2O Random Forest Starter Script
# Based on Ben Hamner script from Springleaf
# https://www.kaggle.com/benhamner/springleaf-marketing-response/random-forest-example
# Forked from Random Forest Example by Michael Pawlus
# Use data.table and H2O to create random forest predictions for the entire
# training set.
# Th... | /h2o_RF.R | no_license | JiaqingFu/kaggle_RossmannStoreSales | R | false | false | 7,573 | r | # H2O Random Forest Starter Script
# Based on Ben Hamner script from Springleaf
# https://www.kaggle.com/benhamner/springleaf-marketing-response/random-forest-example
# Forked from Random Forest Example by Michael Pawlus
# Use data.table and H2O to create random forest predictions for the entire
# training set.
# Th... |
## Write a function to return a proposal function for that parameter
generic.normal.proposal <- function( param.name ) {
return(
function( state ) {
## Extract parameters from the state
param.old <- state[[param.name]]
## th... | /2PL/functions/generic_normal_prop.r | permissive | jevanluo/BayesianIRT | R | false | false | 1,973 | r | ## Write a function to return a proposal function for that parameter
generic.normal.proposal <- function( param.name ) {
return(
function( state ) {
## Extract parameters from the state
param.old <- state[[param.name]]
## th... |
\name{Prim}
\alias{prim}
\docType{package}
\title{
The Prim Algorithm
}
\description{
The PRIM Algorithm is for found the prim's MST
}
\usage{
prim(NumericMatrix adjacencyweigth, NumericMatrix adjacencyMatrix)
where NumericMatrix adjacencyWeigth is the matrix returned by weigth() function
and NumericMatrix adjacenc... | /man/prim.Rd | no_license | synalogik-mike/graph | R | false | false | 790 | rd | \name{Prim}
\alias{prim}
\docType{package}
\title{
The Prim Algorithm
}
\description{
The PRIM Algorithm is for found the prim's MST
}
\usage{
prim(NumericMatrix adjacencyweigth, NumericMatrix adjacencyMatrix)
where NumericMatrix adjacencyWeigth is the matrix returned by weigth() function
and NumericMatrix adjacenc... |
## ***Made available using the The MIT License (MIT)***
# Copyright (c) 2011, Adam Cooper
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ... | /Rising and Falling Terms/RF_Terms.R | permissive | ds10/Text-Mining-Weak-Signals | R | false | false | 45,409 | r | ## ***Made available using the The MIT License (MIT)***
# Copyright (c) 2011, Adam Cooper
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ... |
library(dplyr)
data <- read.csv("household_power_consumption.txt", sep=";", na.strings="?", skip=66636, nrow=2880, stringsAsFactors=FALSE,
col.names = colnames(read.table("household_power_consumption.txt", nrow = 1, sep=";", header = TRUE)))
png(file = "plot1.png", bg = "transparent")
hist(data$Globa... | /plot1.R | no_license | fedorn/ExData_Plotting1 | R | false | false | 424 | r | library(dplyr)
data <- read.csv("household_power_consumption.txt", sep=";", na.strings="?", skip=66636, nrow=2880, stringsAsFactors=FALSE,
col.names = colnames(read.table("household_power_consumption.txt", nrow = 1, sep=";", header = TRUE)))
png(file = "plot1.png", bg = "transparent")
hist(data$Globa... |
#### diagnostic meta analysis for MTB BSI data ####
#### two stage bivariate model using mada ###
library(mada)
### set up extraction functions: these will output TP FP FN TN for
#### patients who have available sputum (sputum_da), lam (lam_da) or cxr (CXR_da) and will give the number of excluded
### they expect as ... | /diagnostic_analyses/diagnostic meta analysis.R | no_license | joelewis101/MTB_BSI | R | false | false | 4,957 | r | #### diagnostic meta analysis for MTB BSI data ####
#### two stage bivariate model using mada ###
library(mada)
### set up extraction functions: these will output TP FP FN TN for
#### patients who have available sputum (sputum_da), lam (lam_da) or cxr (CXR_da) and will give the number of excluded
### they expect as ... |
## load dependencies
library(testthat)
library(chiptsne)
library(data.table)
## test package
test_check(package = "seqsetvis")
| /tests/testthat.R | no_license | jrboyd/seqtsne | R | false | false | 129 | r |
## load dependencies
library(testthat)
library(chiptsne)
library(data.table)
## test package
test_check(package = "seqsetvis")
|
makeCacheMatrix <- function(x = matrix()) {
## return: a list containing functions to
## 1. set the matrix
## 2. get the matrix
## 3. set the inverse
## 4. get the inverse
## this list is used as the input to cacheSolve()
inv = NULL
set = func... | /cachematrix.R | no_license | jingpp/ProgrammingAssignment2 | R | false | false | 1,176 | r | makeCacheMatrix <- function(x = matrix()) {
## return: a list containing functions to
## 1. set the matrix
## 2. get the matrix
## 3. set the inverse
## 4. get the inverse
## this list is used as the input to cacheSolve()
inv = NULL
set = func... |
#' Search for itemized bundlers.
#'
#' @import httr
#' @export
#' @param lobbyist_name Lobbyist name
#' @param recipient_name Recipient name
#' @template ie
#' @return Details on campaign contributions.
#' @examples \dontrun{
#' ie_contr_bundled(lobbyist_name='Patton Boggs')
#' ie_contr_bundled(lobbyist_name='Patton B... | /R/ie_contr_bundled.R | permissive | seankross/rsunlight | R | false | false | 1,122 | r | #' Search for itemized bundlers.
#'
#' @import httr
#' @export
#' @param lobbyist_name Lobbyist name
#' @param recipient_name Recipient name
#' @template ie
#' @return Details on campaign contributions.
#' @examples \dontrun{
#' ie_contr_bundled(lobbyist_name='Patton Boggs')
#' ie_contr_bundled(lobbyist_name='Patton B... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.