content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GeoLift.R
\name{GeoLiftPowerFinder}
\alias{GeoLiftPowerFinder}
\title{Power calculations for unknown test market locations, number of
test markets, and test duration.}
\usage{
GeoLiftPowerFinder(
data,
treatment_periods,
N = 1,
X = c(... | /man/GeoLiftPowerFinder.Rd | permissive | JussanN/GeoLift | R | false | true | 4,219 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GeoLift.R
\name{GeoLiftPowerFinder}
\alias{GeoLiftPowerFinder}
\title{Power calculations for unknown test market locations, number of
test markets, and test duration.}
\usage{
GeoLiftPowerFinder(
data,
treatment_periods,
N = 1,
X = c(... |
#' @importFrom utils relist
#' @export
cleandeps <- function(x) {
x <- strsplit(x, ",")
x <- relist(trimws(unlist(x)), x)
x <- vapply(x, paste, character(1), collapse=", ")
x[x == "NA"] <- NA
x
}
#' @importFrom tools package_dependencies
.pkg_deps <- function(packages, db, ..., recursive) {
dep... | /R/pkg_deps.R | no_license | mtmorgan/BiocBuildReports | R | false | false | 1,177 | r | #' @importFrom utils relist
#' @export
cleandeps <- function(x) {
x <- strsplit(x, ",")
x <- relist(trimws(unlist(x)), x)
x <- vapply(x, paste, character(1), collapse=", ")
x[x == "NA"] <- NA
x
}
#' @importFrom tools package_dependencies
.pkg_deps <- function(packages, db, ..., recursive) {
dep... |
#!/usr/bin/env Rscript
# hiFT4b.R loads, analyzes, and plots hiFT4b colony counts and qPCR data.
# quality filters:
# don't run lines 22-32 if running from R workspace
args = commandArgs(trailingOnly = T)
# check if there are exactly 3 arguments. If not, return an error
if (length(args) < 3 | length(args) > 3) {
... | /analysisScripts/hiFT4b.R | permissive | arjunrajlaboratory/P3_public_analysis | R | false | false | 32,267 | r | #!/usr/bin/env Rscript
# hiFT4b.R loads, analyzes, and plots hiFT4b colony counts and qPCR data.
# quality filters:
# don't run lines 22-32 if running from R workspace
args = commandArgs(trailingOnly = T)
# check if there are exactly 3 arguments. If not, return an error
if (length(args) < 3 | length(args) > 3) {
... |
#*******************************************************************************
# Master Thesis: "Correcting for Multiple Testing in Change Point Detection
# of Global Vegetation Trends"
#*******************************************************************************
# Veronika Grupp, M.Sc. Geoinformatics and Remote... | /master_thesis/change_point_detection/FIG_map_correction_compare.R | permissive | vroni-g/change_point_detection | R | false | false | 7,380 | r | #*******************************************************************************
# Master Thesis: "Correcting for Multiple Testing in Change Point Detection
# of Global Vegetation Trends"
#*******************************************************************************
# Veronika Grupp, M.Sc. Geoinformatics and Remote... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hc.R
\name{theme_hc}
\alias{theme_hc}
\title{Highcharts Theme}
\usage{
theme_hc(base_size = 12, base_family = "sans", style = c("default",
"darkunica"), bgcolor = NULL)
}
\arguments{
\item{base_size}{base font size}
\item{base_family}{base... | /man/theme_hc.Rd | no_license | d2squared/ggthemes | R | false | true | 2,091 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hc.R
\name{theme_hc}
\alias{theme_hc}
\title{Highcharts Theme}
\usage{
theme_hc(base_size = 12, base_family = "sans", style = c("default",
"darkunica"), bgcolor = NULL)
}
\arguments{
\item{base_size}{base font size}
\item{base_family}{base... |
install.packages("blogdown")
blogdown::install_hugo()
blogdown::new_site(theme="nurlansu/hugo-sustain")
blogdown::serve_site()
install.packages("rmarkdown")
install.packages("tidyverse")
yes
install.packages("rlang")
install.packages("tidyverse",dependencies=T)
yes
install.packages("dplyr")
install.packages("tidyr")
... | /working.R | no_license | mikaoldham/project3site | R | false | false | 779 | r | install.packages("blogdown")
blogdown::install_hugo()
blogdown::new_site(theme="nurlansu/hugo-sustain")
blogdown::serve_site()
install.packages("rmarkdown")
install.packages("tidyverse")
yes
install.packages("rlang")
install.packages("tidyverse",dependencies=T)
yes
install.packages("dplyr")
install.packages("tidyr")
... |
df <- read.csv("input_test_data.csv", header = TRUE, sep=";",dec = ",")
vec <- as.vector(df$t11)
source("heatexchange_func.R")
#ar = c(34,2,32,4,7,NaN,134, 56, NaN, NaN)
#ar
#GetMedVal(ar, 3, -300)
GetMedVal(vec, 5, -300)
log(vec)
4**(1/2)
| /test.R | no_license | bulgakovmyu/R_scripts | R | false | false | 253 | r | df <- read.csv("input_test_data.csv", header = TRUE, sep=";",dec = ",")
vec <- as.vector(df$t11)
source("heatexchange_func.R")
#ar = c(34,2,32,4,7,NaN,134, 56, NaN, NaN)
#ar
#GetMedVal(ar, 3, -300)
GetMedVal(vec, 5, -300)
log(vec)
4**(1/2)
|
dir="C:/Users/nicol/Dropbox/ReseauLab/data/water quality/canadian rivers/to extract"
files=list.files(dir)
dbMerged=data.frame()
for(i in files){
db=as.data.frame(readxl::read_excel(paste0(dir,"/",i), sheet = 2))
db$VariablePhase=paste(db$VariableEn,db$PhaseEn)
db$MeasurementUnit=gsub("µ","u",db$MeasurementUnit)
db... | /R/exportCdnRiv.R | no_license | nicolasfstgelais/waterQuality | R | false | false | 477 | r |
dir="C:/Users/nicol/Dropbox/ReseauLab/data/water quality/canadian rivers/to extract"
files=list.files(dir)
dbMerged=data.frame()
for(i in files){
db=as.data.frame(readxl::read_excel(paste0(dir,"/",i), sheet = 2))
db$VariablePhase=paste(db$VariableEn,db$PhaseEn)
db$MeasurementUnit=gsub("µ","u",db$MeasurementUnit)
db... |
\name{mpgroup}
\alias{mpgroup}
\title{Group markers into linkage groups given 2-pt recombination fraction estimates}
\usage{
mpgroup(mpcross, theta = 0.15, LOD = 5)
}
\arguments{
\item{mpcross}{an object of class \code{mpcross} which
includes the component \code{rf} output by
\code{mp.est.rf}. See \cod... | /man/mpgroup.Rd | no_license | cran/mpMap | R | false | false | 1,802 | rd | \name{mpgroup}
\alias{mpgroup}
\title{Group markers into linkage groups given 2-pt recombination fraction estimates}
\usage{
mpgroup(mpcross, theta = 0.15, LOD = 5)
}
\arguments{
\item{mpcross}{an object of class \code{mpcross} which
includes the component \code{rf} output by
\code{mp.est.rf}. See \cod... |
#get palaeocoordinates
#Example
#palaeorotate(lng = 5, lat = 45, age = 300)
palaeorotate <- function(lng, lat, age){
#create API for rotation
API <- paste("http://gws.gplates.org//reconstruct/reconstruct_points/?points=", lng, ",", lat, "&time=", age, "&model=PALEOMAP", sep ="")
#pull data
dat <- readLines(AP... | /R/functions/palaeorotate.R | no_license | LewisAJones/StableIsotopeBias | R | false | false | 602 | r | #get palaeocoordinates
#Example
#palaeorotate(lng = 5, lat = 45, age = 300)
palaeorotate <- function(lng, lat, age){
#create API for rotation
API <- paste("http://gws.gplates.org//reconstruct/reconstruct_points/?points=", lng, ",", lat, "&time=", age, "&model=PALEOMAP", sep ="")
#pull data
dat <- readLines(AP... |
library(jpeg)
library(reshape2)
library(dplyr)
library(fdasrvf)
# order_points_for_curve <- function(beta){
# current <- beta[,1]
# beta <- beta[,-1]
# newmat <- current
# while(ncol(beta) > 2){
# ind <- which.min(colSums((beta - current)^2))
# current <- beta[,ind]
# beta <- beta[,-ind]
# new... | /code/letter_shape_analysis.R | no_license | ciaran-evans/english_text | R | false | false | 1,653 | r | library(jpeg)
library(reshape2)
library(dplyr)
library(fdasrvf)
# order_points_for_curve <- function(beta){
# current <- beta[,1]
# beta <- beta[,-1]
# newmat <- current
# while(ncol(beta) > 2){
# ind <- which.min(colSums((beta - current)^2))
# current <- beta[,ind]
# beta <- beta[,-ind]
# new... |
# CGF Paper Epidemiological Transisition Analysis
#------------------SET-UP--------------------------------------------------
# runtime configuration
if (Sys.info()["sysname"] == "Linux") {
j_root <- "filepath"
h_root <- "~/"
central_lib <- "filepath"
} else {
j_root <- "filepath"
h_root <- "filepath"
c... | /paper_specific_analyses/figure_4_5_with_supplements_UHC_Analysis.R | no_license | ihmeuw/cgf | R | false | false | 214,877 | r | # CGF Paper Epidemiological Transisition Analysis
#------------------SET-UP--------------------------------------------------
# runtime configuration
if (Sys.info()["sysname"] == "Linux") {
j_root <- "filepath"
h_root <- "~/"
central_lib <- "filepath"
} else {
j_root <- "filepath"
h_root <- "filepath"
c... |
\name{makeDbdpars}
\alias{makeDbdpars}
\title{
Create an object of class \code{"Dbdpars"}.
}
\description{
Create an object of class \code{"Dbdpars"} which may be used
as an argument of the \code{simulate()} function.
}
\usage{
makeDbdpars(alpha, beta, ntop, zeta, ndata)
}
\arguments{
\item{alpha}{
The ... | /man/makeDbdpars.Rd | no_license | cran/dbd | R | false | false | 2,221 | rd | \name{makeDbdpars}
\alias{makeDbdpars}
\title{
Create an object of class \code{"Dbdpars"}.
}
\description{
Create an object of class \code{"Dbdpars"} which may be used
as an argument of the \code{simulate()} function.
}
\usage{
makeDbdpars(alpha, beta, ntop, zeta, ndata)
}
\arguments{
\item{alpha}{
The ... |
context("local ref type")
test_that("parse_remote", {
path <- get_fixture("foobar_1.0.0.tar.gz")
ref <- paste0("local::", path)
pr <- parse_remotes(ref)[[1]]
expect_true(is.list(pr))
expect_equal(pr$path, path)
expect_equal(pr$ref, ref)
expect_equal(pr$type, "local")
})
test_that("resolve_remote", {
... | /data/genthat_extracted_code/pak/tests/test-type-local.R | no_license | surayaaramli/typeRrh | R | false | false | 4,800 | r |
context("local ref type")
test_that("parse_remote", {
path <- get_fixture("foobar_1.0.0.tar.gz")
ref <- paste0("local::", path)
pr <- parse_remotes(ref)[[1]]
expect_true(is.list(pr))
expect_equal(pr$path, path)
expect_equal(pr$ref, ref)
expect_equal(pr$type, "local")
})
test_that("resolve_remote", {
... |
funl2 <-function(x,P,n,TE){
x1 <- matrix(x,nrow=n)
H <- P[(length(P)-n*6+1):length(P)]
H0 <- matrix(H,nrow=n)
V0 <- 100*0.04
# slope r0 of intravascular relaxation rate R_iv as a function of oxygen
# saturation Y: R_iv = r0*[(1-Y)-(1-Y0)]
r0 <- 25 # [Hz]
# freque... | /R/funl2.R | no_license | cran/FIAR | R | false | false | 1,057 | r |
funl2 <-function(x,P,n,TE){
x1 <- matrix(x,nrow=n)
H <- P[(length(P)-n*6+1):length(P)]
H0 <- matrix(H,nrow=n)
V0 <- 100*0.04
# slope r0 of intravascular relaxation rate R_iv as a function of oxygen
# saturation Y: R_iv = r0*[(1-Y)-(1-Y0)]
r0 <- 25 # [Hz]
# freque... |
\name{wp}
\alias{wp}
\title{Wavelet packet transform. }
\description{
This function computes a wavelet packet transform (computed by the complete binary application of the DH and DG packet operators, as opposed to the Mallat discrete wavelet transform which only recurses on the DH operator [low pass]).
}
\usage{
wp(da... | /man/wp.rd | no_license | cran/wavethresh | R | false | false | 1,849 | rd | \name{wp}
\alias{wp}
\title{Wavelet packet transform. }
\description{
This function computes a wavelet packet transform (computed by the complete binary application of the DH and DG packet operators, as opposed to the Mallat discrete wavelet transform which only recurses on the DH operator [low pass]).
}
\usage{
wp(da... |
##################################################################
# Problem 3
##################################################################
# install some packages
#install.packages("DAAG")
#install.packages("lattice")
#install.packages("MASS")
#install.packages("ggplot2")
library("DAAG")
library("lattice")
l... | /StatisticalDataMining R codes/Assignment1/Problem 3.R | no_license | freyagenesis/Fall2018-codes | R | false | false | 3,802 | r | ##################################################################
# Problem 3
##################################################################
# install some packages
#install.packages("DAAG")
#install.packages("lattice")
#install.packages("MASS")
#install.packages("ggplot2")
library("DAAG")
library("lattice")
l... |
## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE
, comment = "#>"
, fig.width = 7
)
library(ODEsensitivity)
## ------------------------------------------------------------------------
LVmod = function(Time, State, Pars) {
with(as.list(... | /inst/doc/ODEsensitivity.R | no_license | cran/ODEsensitivity | R | false | false | 1,544 | r | ## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE
, comment = "#>"
, fig.width = 7
)
library(ODEsensitivity)
## ------------------------------------------------------------------------
LVmod = function(Time, State, Pars) {
with(as.list(... |
#########################################################################
## Case 1: ##
## Effect of hardness and detergent on enzymatic catalysis ##
#########################################################################
# Authors: Begoña Bolos... | /Case1/3_Scripts/case1_v1.R | no_license | jmontalvo94/02441_Applied_Statistics | R | false | false | 7,618 | r | #########################################################################
## Case 1: ##
## Effect of hardness and detergent on enzymatic catalysis ##
#########################################################################
# Authors: Begoña Bolos... |
RunoffBreakdown <-
function(Tp_hr, a = 4.5, HrPrcDelay = 4, numDaysReturn=5){
Tp <- Tp_hr/24
DRO <- rep(0,20)
t <- 1
DRO[1] <- if ((t-HrPrcDelay/24)<=Tp) {
(t-HrPrcDelay/24)^2/(Tp^2*(1+a))
} else 1-a/(a+1)*exp(-2*((t-HrPrcDelay/24)-Tp)/(a*Tp))
for (t in 2:20){
DRO[t] <- if ((t-HrPrcDelay/24)<=Tp) {... | /R/RunoffBreakdown.R | no_license | cran/EcoHydRology | R | false | false | 498 | r | RunoffBreakdown <-
function(Tp_hr, a = 4.5, HrPrcDelay = 4, numDaysReturn=5){
Tp <- Tp_hr/24
DRO <- rep(0,20)
t <- 1
DRO[1] <- if ((t-HrPrcDelay/24)<=Tp) {
(t-HrPrcDelay/24)^2/(Tp^2*(1+a))
} else 1-a/(a+1)*exp(-2*((t-HrPrcDelay/24)-Tp)/(a*Tp))
for (t in 2:20){
DRO[t] <- if ((t-HrPrcDelay/24)<=Tp) {... |
#' Plot following Annals of Botany rules
#'
#' @param x character. colname of the set of data to draw
#' @param y character. colname of the set of data to draw
#' @param z character. colname of the set of data to draw. Default is NA. Can have a length of 2 colnames.
#' @param data data frame. First three columns must b... | /R/graph.R | no_license | grindash/act | R | false | false | 17,859 | r | #' Plot following Annals of Botany rules
#'
#' @param x character. colname of the set of data to draw
#' @param y character. colname of the set of data to draw
#' @param z character. colname of the set of data to draw. Default is NA. Can have a length of 2 colnames.
#' @param data data frame. First three columns must b... |
#Bostanci | /Bostanci.R | no_license | gorkembostanci/BY | R | false | false | 9 | r | #Bostanci |
\name{hdrda_cv}
\alias{hdrda_cv}
\title{Helper function to optimize the HDRDA classifier via cross-validation}
\usage{
hdrda_cv(x, y, num_folds = 10, num_lambda = 21,
num_gamma = 7, ...)
}
\arguments{
\item{x}{matrix containing the training data. The rows
are the sample observations, and the columns are the
... | /man/hdrda_cv.Rd | no_license | wfudong/sparsediscrim | R | false | false | 1,037 | rd | \name{hdrda_cv}
\alias{hdrda_cv}
\title{Helper function to optimize the HDRDA classifier via cross-validation}
\usage{
hdrda_cv(x, y, num_folds = 10, num_lambda = 21,
num_gamma = 7, ...)
}
\arguments{
\item{x}{matrix containing the training data. The rows
are the sample observations, and the columns are the
... |
## read_genomic_data -- reads genomic data in the specified zoom parameters...
##
data.one_bigwig<- function(x, chr, bw, depth, window) {
chr_n <- which(bw$chroms == chr)
# qbw <- queryByStep.bigWig(bw, bw$chroms[chr_n], 0+x, bw$chromSizes[chr_n], window, do.sum=TRUE)
qbw <- step.bpQuery.bigWig(bw, bw$chroms[chr_... | /dREG/R/get_informative_positions.R | no_license | corcra/dREG | R | false | false | 4,924 | r | ## read_genomic_data -- reads genomic data in the specified zoom parameters...
##
data.one_bigwig<- function(x, chr, bw, depth, window) {
chr_n <- which(bw$chroms == chr)
# qbw <- queryByStep.bigWig(bw, bw$chroms[chr_n], 0+x, bw$chromSizes[chr_n], window, do.sum=TRUE)
qbw <- step.bpQuery.bigWig(bw, bw$chroms[chr_... |
load("Concatenated_Data/climate_data/merged_climate_data.RData")
# libraries to install
# lubridate
# plotly
# ggmap
# maps
# mapdata
# svn export https://github.com/cdcepi/zika/tree/master/Ecuador/GACETA-ZIKA/data jquery-upvote-lib
rm(list=ls()) #remove previous variable assignments
# load data
load("Concatenat... | /Codes/calculate_SVPD.R | no_license | jms5151/EVP | R | false | false | 4,454 | r | load("Concatenated_Data/climate_data/merged_climate_data.RData")
# libraries to install
# lubridate
# plotly
# ggmap
# maps
# mapdata
# svn export https://github.com/cdcepi/zika/tree/master/Ecuador/GACETA-ZIKA/data jquery-upvote-lib
rm(list=ls()) #remove previous variable assignments
# load data
load("Concatenat... |
library(tidyverse)
library(sf)
library(rgdal)
library(leaflet)
library(ggplot2)
#MAPAS ESTÁTICOS
#primero cargamos el dataset con el que vamos a trabajar
espacios_culturales_csv<-read.csv("espacios-culturales.csv")
#ahora vamos a cargar el mapa de CABA, sería la base sobre la que vamos a graficar
mapa_caba<-st_read(... | /Clase mapas/codigo-mapas-estaticos.R | no_license | labpoliticasuba/Clases_2021 | R | false | false | 1,855 | r | library(tidyverse)
library(sf)
library(rgdal)
library(leaflet)
library(ggplot2)
#MAPAS ESTÁTICOS
#primero cargamos el dataset con el que vamos a trabajar
espacios_culturales_csv<-read.csv("espacios-culturales.csv")
#ahora vamos a cargar el mapa de CABA, sería la base sobre la que vamos a graficar
mapa_caba<-st_read(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binding_model_functions.r
\name{prevalent_nucleotide}
\alias{prevalent_nucleotide}
\title{Compute most abundant nucleotide in sequence}
\usage{
prevalent_nucleotide(seq)
}
\arguments{
\item{seq}{string of nucleotide sequence}
}
\value{
string... | /man/prevalent_nucleotide.Rd | no_license | emdann/hexamerModel | R | false | true | 390 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binding_model_functions.r
\name{prevalent_nucleotide}
\alias{prevalent_nucleotide}
\title{Compute most abundant nucleotide in sequence}
\usage{
prevalent_nucleotide(seq)
}
\arguments{
\item{seq}{string of nucleotide sequence}
}
\value{
string... |
if (ClassSim == 3) n = 900
age <- rnorm(n, 45, 15.69578) #age <- mat1$age
##############################
#n <- 100 # number of subjects
##############################
K <- 10 # number of planned repeated measurements per subject, per outcome
t.max <- 19.5 # maximum follow-up time
################################... | /17-10-2016 simulations/complex JM/Variance RE diagonal matrix and not class specific/simulate class 3.R | no_license | ERandrinopoulou/LatentClassJM | R | false | false | 4,917 | r |
if (ClassSim == 3) n = 900
age <- rnorm(n, 45, 15.69578) #age <- mat1$age
##############################
#n <- 100 # number of subjects
##############################
K <- 10 # number of planned repeated measurements per subject, per outcome
t.max <- 19.5 # maximum follow-up time
################################... |
#' some description
#' @import methods
#' @exportClass SomeClass
SomeClass <- setRefClass(
'SomeClass',
fields = list(
),
methods = list(
#' method description
#' @param bar parameter description
#' @exportMethod
foo = function(bar) {
},
#' private method description
... | /R/test.R | no_license | krlmlr/rc | R | false | false | 672 | r | #' some description
#' @import methods
#' @exportClass SomeClass
SomeClass <- setRefClass(
'SomeClass',
fields = list(
),
methods = list(
#' method description
#' @param bar parameter description
#' @exportMethod
foo = function(bar) {
},
#' private method description
... |
#' @rdname f0
#'
#' @param pct.n percent of samples to use in bootstrap draws. Must be in range of \code{0:1}.
#' @param num.reps number of random re-orderings of samples to fit curve to.
#'
#' @importFrom stats coef nls nls.control median sd
#' @importFrom swfscMisc isBetween
#' @export
#'
Clench <- function(f, pct... | /sprex/R/Clench.R | no_license | ingted/R-Examples | R | false | false | 1,537 | r | #' @rdname f0
#'
#' @param pct.n percent of samples to use in bootstrap draws. Must be in range of \code{0:1}.
#' @param num.reps number of random re-orderings of samples to fit curve to.
#'
#' @importFrom stats coef nls nls.control median sd
#' @importFrom swfscMisc isBetween
#' @export
#'
Clench <- function(f, pct... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Calculate the Normalizing Constant in log scale for COM-Poisson distribution
#'
#' The calcaultion of the function \code{logZ} will be performed here. This function is
#' used to approxim... | /R/RcppExports.R | no_license | AyaAlwan/mpcmp | R | false | false | 1,202 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Calculate the Normalizing Constant in log scale for COM-Poisson distribution
#'
#' The calcaultion of the function \code{logZ} will be performed here. This function is
#' used to approxim... |
1L+1
1L+1L
( 1+1)*(3+2)
1000000000*100000000000
1000000000L*1000000000L
1000000000L*1000000000
1+TRUE
1L+TRUE
1+FALSE<=0
1L+FALSE<=0
TRUE+TRUE+TRUE*TRUE+FALSE+4
1L*NA
1+NA
2L^10L
3 %/% 2
3L %/% 2L
3L %/% -2L
3 %/% -2
3 %/% 0
3L %/% 0L
3 %% 2
3L %% 2L
3L %% -2L
3 %% -2
3 %% 0
3L %% 0L
0x10 + 0x... | /RTests/fastr/TestSimpleArithmetic.R | no_license | TDiazT/CoqR-Tester | R | false | false | 3,617 | r | 1L+1
1L+1L
( 1+1)*(3+2)
1000000000*100000000000
1000000000L*1000000000L
1000000000L*1000000000
1+TRUE
1L+TRUE
1+FALSE<=0
1L+FALSE<=0
TRUE+TRUE+TRUE*TRUE+FALSE+4
1L*NA
1+NA
2L^10L
3 %/% 2
3L %/% 2L
3L %/% -2L
3 %/% -2
3 %/% 0
3L %/% 0L
3 %% 2
3L %% 2L
3L %% -2L
3 %% -2
3 %% 0
3L %% 0L
0x10 + 0x... |
library(dplyr)
library(tidyverse)
library(leaflet)
library(RColorBrewer)
library(akima)
library(jsonlite)
library(leaflet.extras)
library(lubridate)
library(mapedit)
library(plyr)
library(reshape2)
library(sf)
library(shinycssloaders)
library(DT)
library(png)
library(wqTools)
library(magrittr)
heatmap_param_choices =... | /app.R | no_license | busatos/DSPG | R | false | false | 20,928 | r | library(dplyr)
library(tidyverse)
library(leaflet)
library(RColorBrewer)
library(akima)
library(jsonlite)
library(leaflet.extras)
library(lubridate)
library(mapedit)
library(plyr)
library(reshape2)
library(sf)
library(shinycssloaders)
library(DT)
library(png)
library(wqTools)
library(magrittr)
heatmap_param_choices =... |
#Propellant Burning Rate(Pg no. 324)
foo = function()
{
n = 25
mean = 50
std_dev = 2
Xbar = 51.3
alpha = 0.05
statistic = (Xbar-mean)/(std_dev/sqrt(n))
z = qnorm(alpha/2,0,1,lower.tail = FALSE)
p_value = 2*(1-pnorm(statistic,0,1))
if(p_value < alpha)
{
print("Null hypothesis is rejected")
}
... | /Applied_Statistics_And_Probability_For_Engineers_by_Douglas_C._Montgomery_And_George_C._Runger/CH9/EX9.2/EX9_2.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 392 | r | #Propellant Burning Rate(Pg no. 324)
foo = function()
{
n = 25
mean = 50
std_dev = 2
Xbar = 51.3
alpha = 0.05
statistic = (Xbar-mean)/(std_dev/sqrt(n))
z = qnorm(alpha/2,0,1,lower.tail = FALSE)
p_value = 2*(1-pnorm(statistic,0,1))
if(p_value < alpha)
{
print("Null hypothesis is rejected")
}
... |
#' Get current DDL sitting on the master branch
#'
#' @details
#' This function gets the current ddl on the CDM master branch. It will be taken from the Sql Server folder.
#' The default location is
#' \code{inst/settings/currentOmopDdl.sql}.
#'
#' @param githubPath The path for the GitHub repo containing th... | /docs/R/downloadCurrentDdl.R | permissive | YunMai-SPS/CommonDataModel | R | false | false | 1,341 | r | #' Get current DDL sitting on the master branch
#'
#' @details
#' This function gets the current ddl on the CDM master branch. It will be taken from the Sql Server folder.
#' The default location is
#' \code{inst/settings/currentOmopDdl.sql}.
#'
#' @param githubPath The path for the GitHub repo containing th... |
###############################
# #
# PRUDENTIAL LIFE INSURANCE #
# #
###############################
# ASSUMPTION: The required data files are downloaded from competition site and made available locally.
# COMPETITION SITE URL: https://www.kaggle.com/c/prudent... | /Prudential/1-Classification.R | no_license | socratesk/kaggle | R | false | false | 2,519 | r | ###############################
# #
# PRUDENTIAL LIFE INSURANCE #
# #
###############################
# ASSUMPTION: The required data files are downloaded from competition site and made available locally.
# COMPETITION SITE URL: https://www.kaggle.com/c/prudent... |
install.packages("BiocManager")
BiocManager::install("dada2")
install.packages("proto") | /src/install_dependencies.R | no_license | ryanc16/dada2-batched-pipeline | R | false | false | 87 | r | install.packages("BiocManager")
BiocManager::install("dada2")
install.packages("proto") |
## File Name: mnlfa_proc_item_parameters.R
## File Version: 0.31
mnlfa_proc_item_parameters <- function(dat, formula_int, formula_slo, item_type,
parms_regular_types, parms_regular_lam, regular_type, regular_lam, parms_iterations)
{
I <- length(item_type)
items <- names(item_type)
#* lists of formula... | /R/mnlfa_proc_item_parameters.R | no_license | hillhillll/mnlfa | R | false | false | 3,736 | r | ## File Name: mnlfa_proc_item_parameters.R
## File Version: 0.31
mnlfa_proc_item_parameters <- function(dat, formula_int, formula_slo, item_type,
parms_regular_types, parms_regular_lam, regular_type, regular_lam, parms_iterations)
{
I <- length(item_type)
items <- names(item_type)
#* lists of formula... |
# test growmod fit to multiple models at once
library(growmod)
SEED <- 12345
set.seed(SEED)
ITER <- 10
CHAINS <- 2
SW <- suppressWarnings
data_test <- growmod_sim()
expect_growmod <- function(x) expect_s3_class(x, 'growmod')
expect_growmod_names <- function(x) expect_named(x, c('fitted',
... | /tests/testthat/test_growmod_multi.R | permissive | jdyen/growmodr | R | false | false | 5,746 | r | # test growmod fit to multiple models at once
library(growmod)
SEED <- 12345
set.seed(SEED)
ITER <- 10
CHAINS <- 2
SW <- suppressWarnings
data_test <- growmod_sim()
expect_growmod <- function(x) expect_s3_class(x, 'growmod')
expect_growmod_names <- function(x) expect_named(x, c('fitted',
... |
#' @name exportRepeatingInstrumentsEvents
#' @title Export Repeating Instruments and Events Settings
#'
#' @description This method allows you to export a list of the repeated
#' instruments and repeating events for a project. This includes
#' their unique instrument name as seen in the second column of the
#' ... | /R/exportRepeatingInstrumentsEvents.R | no_license | nutterb/redcapAPI | R | false | false | 4,026 | r | #' @name exportRepeatingInstrumentsEvents
#' @title Export Repeating Instruments and Events Settings
#'
#' @description This method allows you to export a list of the repeated
#' instruments and repeating events for a project. This includes
#' their unique instrument name as seen in the second column of the
#' ... |
context("utils")
suppressMessages(set_root_path(system.file("examples", package="clickme")))
test_that("appends styles and scripts", {
ractive <- "par_coords"
opts <- get_opts(ractive, data_prefix = "data")
opts$template_config$scripts <- c("d3.min.js","d3.parcoords.js")
opts$template_config$styles <-... | /inst/tests/test-utils.R | no_license | kbroman/clickme | R | false | false | 4,293 | r | context("utils")
suppressMessages(set_root_path(system.file("examples", package="clickme")))
test_that("appends styles and scripts", {
ractive <- "par_coords"
opts <- get_opts(ractive, data_prefix = "data")
opts$template_config$scripts <- c("d3.min.js","d3.parcoords.js")
opts$template_config$styles <-... |
##Basic statistics=group
##Layer=vector
##Field=Field Layer
##by=number 0.1
##Output=output raster
library("gstat")
library("rgl")
library("spatstat")
library("maptools")
install.packages("pls")
library ("pls")
library("automap")
Y<-as.factor(Layer[[Field]])
attribut<-as.data.frame(Y)
A<-as.numeric(Y)
for(j in (1:lengt... | /rscripts/Kriging.rsx | no_license | spatialthoughts/QGIS-Processing | R | false | false | 1,049 | rsx | ##Basic statistics=group
##Layer=vector
##Field=Field Layer
##by=number 0.1
##Output=output raster
library("gstat")
library("rgl")
library("spatstat")
library("maptools")
install.packages("pls")
library ("pls")
library("automap")
Y<-as.factor(Layer[[Field]])
attribut<-as.data.frame(Y)
A<-as.numeric(Y)
for(j in (1:lengt... |
## ANALYSIS PREP -----
library(data.table)
library(tidyverse)
library(readstata13)
library(dplyr)
## Read in survey data ------
survey.data <- read.dta13("H:/depression/data/temp/survey_clean_linked.dta") %>%
mutate(WE_ID_crypt = as.factor(WE_ID_crypt)) %>%
mutate(sex = recode_factor(sex, "1" = "Male",
... | /analysis_prep.R | no_license | heroberts/envt_exposures | R | false | false | 6,248 | r | ## ANALYSIS PREP -----
library(data.table)
library(tidyverse)
library(readstata13)
library(dplyr)
## Read in survey data ------
survey.data <- read.dta13("H:/depression/data/temp/survey_clean_linked.dta") %>%
mutate(WE_ID_crypt = as.factor(WE_ID_crypt)) %>%
mutate(sex = recode_factor(sex, "1" = "Male",
... |
## Load the data!
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
## With the total emissions per year, get the sum
getsum <- aggregate(Emissions ~ year,NEI, sum)
png("plot1.png",width=480,height=480,units="px",bg="transparent")
barplot(
(getsum$Emissions)/10^6,
names.arg=g... | /plot1.R | no_license | ronitsw/Exploratory_Data_Analysis_CourseProject2 | R | false | false | 449 | r | ## Load the data!
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
## With the total emissions per year, get the sum
getsum <- aggregate(Emissions ~ year,NEI, sum)
png("plot1.png",width=480,height=480,units="px",bg="transparent")
barplot(
(getsum$Emissions)/10^6,
names.arg=g... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/copies_from_Useful4me.R
\name{boxplot_nEle}
\alias{boxplot_nEle}
\title{Box plot and number}
\usage{
boxplot_nEle(
formula,
data,
...,
subset,
na.action,
test = c("kruskal.test", "aov", "t.test"),
test_txt_par = list(),
nEle_t... | /man/boxplot_nEle.Rd | no_license | Schwenk-Lab/BAf-R_package | R | false | true | 1,607 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/copies_from_Useful4me.R
\name{boxplot_nEle}
\alias{boxplot_nEle}
\title{Box plot and number}
\usage{
boxplot_nEle(
formula,
data,
...,
subset,
na.action,
test = c("kruskal.test", "aov", "t.test"),
test_txt_par = list(),
nEle_t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make-sample-size-metadata.R
\name{make_sample_size_metadata}
\alias{make_sample_size_metadata}
\title{Make The Indicator Sample Size Metadata}
\usage{
make_sample_size_metadata(indicators_cnt_pct, indicators_median)
}
\arguments{
\item{indica... | /man/make_sample_size_metadata.Rd | permissive | tiernanmartin/NeighborhoodChangeTypology | R | false | true | 428 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make-sample-size-metadata.R
\name{make_sample_size_metadata}
\alias{make_sample_size_metadata}
\title{Make The Indicator Sample Size Metadata}
\usage{
make_sample_size_metadata(indicators_cnt_pct, indicators_median)
}
\arguments{
\item{indica... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/partbl.R
\name{print.partbl}
\alias{print.partbl}
\title{Print Head and Tail of \code{partbl} Table}
\usage{
\method{print}{partbl}(partbl, n = 6L)
}
\arguments{
\item{partbl}{An object of class \code{partbl}.}
\item{n}{Number of rows to sho... | /man/print.partbl.Rd | permissive | bahlolab/linkrvis | R | false | true | 414 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/partbl.R
\name{print.partbl}
\alias{print.partbl}
\title{Print Head and Tail of \code{partbl} Table}
\usage{
\method{print}{partbl}(partbl, n = 6L)
}
\arguments{
\item{partbl}{An object of class \code{partbl}.}
\item{n}{Number of rows to sho... |
testlist <- list(doy = c(1.60693846973121e+226, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), latitude = numeric(0), temp = c(-6.16249584696219e+100, 2.61788686270017e+185 ))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615837524-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 230 | r | testlist <- list(doy = c(1.60693846973121e+226, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), latitude = numeric(0), temp = c(-6.16249584696219e+100, 2.61788686270017e+185 ))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) |
library(ggplot2)
library(caret)
diamonds <- diamonds
# Here we extract all string variables.
# Actually variables "cut" and "color" we mostly can consider as factor variables and we can transform it to
# numeric factor variables, but only for testing xgb_model it was easier simply exclude this variables.
diamonds_n... | /Grid search in R.R | no_license | avynychenko/R_diff.Scripts | R | false | false | 1,144 | r | library(ggplot2)
library(caret)
diamonds <- diamonds
# Here we extract all string variables.
# Actually variables "cut" and "color" we mostly can consider as factor variables and we can transform it to
# numeric factor variables, but only for testing xgb_model it was easier simply exclude this variables.
diamonds_n... |
library(epicR)
context("Sanity")
test_that("Zeroing all input costs will result in overall zero costs", {
init_session()
input <- model_input$values
for (el in get_list_elements(input$cost)) input$cost[[el]] <- input$cost[[el]] * 0
res <- run(1, input = input)
expect_equal(Cget_output()$total_cost, 0)
term... | /tests/testthat/testSanity.R | no_license | ahill187/epicR | R | false | false | 1,636 | r | library(epicR)
context("Sanity")
test_that("Zeroing all input costs will result in overall zero costs", {
init_session()
input <- model_input$values
for (el in get_list_elements(input$cost)) input$cost[[el]] <- input$cost[[el]] * 0
res <- run(1, input = input)
expect_equal(Cget_output()$total_cost, 0)
term... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 48667
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 40008
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 40008
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Kronegger-Pfandler-Pichler/dungeon/dungeon_i15-m7-u4-v0.pddl_planlen=38/dungeon_i15-m7-u4-v0.pddl_planlen=38.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 44,526 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 48667
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 40008
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 40008
c
c Input Parameter (command line, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extdata_soccer.R
\name{soccer.data.txt}
\alias{soccer.data.txt}
\title{Dataset soccer.data.txt}
\format{This data set contains 2 columns. The first column is the
football season year. The second column is the average goals-per-game
in each ... | /man/soccer.data.txt.Rd | no_license | cran/ACA | R | false | true | 660 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extdata_soccer.R
\name{soccer.data.txt}
\alias{soccer.data.txt}
\title{Dataset soccer.data.txt}
\format{This data set contains 2 columns. The first column is the
football season year. The second column is the average goals-per-game
in each ... |
# calculate spike vs non-spike trial AUCs
library(ROCR) # used to calcualate AUC
calcAUC <- function(predictions, labels) {
# ROCR functions below
performance( prediction(predictions,labels), "auc")@y.values[[1]]
}
plotROC<- function(predictions, labels) {
# ROCR functions below
plot(
perf... | /Ford/logistic.spikes/calc.spikeAUC/spikeAUC.R | no_license | chrishefele/kaggle-sample-code | R | false | false | 1,293 | r | # calculate spike vs non-spike trial AUCs
library(ROCR) # used to calcualate AUC
calcAUC <- function(predictions, labels) {
# ROCR functions below
performance( prediction(predictions,labels), "auc")@y.values[[1]]
}
plotROC<- function(predictions, labels) {
# ROCR functions below
plot(
perf... |
# @return An integer vector giving selected topics
select_topics <- function(match_strings, topics, check = FALSE) {
n <- nrow(topics)
if (length(match_strings) == 0) {
return(integer())
}
indexes <- purrr::map(match_strings, match_eval, env = match_env(topics))
# If none of the specified topics have a ... | /R/topics.R | permissive | isabella232/pkgdown | R | false | false | 6,142 | r | # @return An integer vector giving selected topics
select_topics <- function(match_strings, topics, check = FALSE) {
n <- nrow(topics)
if (length(match_strings) == 0) {
return(integer())
}
indexes <- purrr::map(match_strings, match_eval, env = match_env(topics))
# If none of the specified topics have a ... |
#' contextR
#' @name u_gps_distance_origin
#' @export
#' @param homepoint class: vector(lat, lng)
#' @param lat2 class: numeric
#' @param lng2 class: numeric
#' @param return_type class: string
#' @import geosphere
#' @examples
#' u_gps_distance_origin(homepoint, lat2, lon2, return_type = "meters")
u_gps_distance_origi... | /R/u_gps_distance_origin.R | permissive | nelsonroque/contextR | R | false | false | 702 | r | #' contextR
#' @name u_gps_distance_origin
#' @export
#' @param homepoint class: vector(lat, lng)
#' @param lat2 class: numeric
#' @param lng2 class: numeric
#' @param return_type class: string
#' @import geosphere
#' @examples
#' u_gps_distance_origin(homepoint, lat2, lon2, return_type = "meters")
u_gps_distance_origi... |
#' centered_gibbs2
#'
#' Gibbs sampler for centered 2-level Gaussian hierarchical model according to derived full conditionals
#'
#' Assumptions:
#' - variances are constant for parameters within the same level
#' - all observations y_ijk are equal to 0
#' - the mean of the root parameter B is mu = 0
#' - assum... | /R/centered_gibbs2.R | permissive | kwajiehao/ghInf | R | false | false | 3,022 | r | #' centered_gibbs2
#'
#' Gibbs sampler for centered 2-level Gaussian hierarchical model according to derived full conditionals
#'
#' Assumptions:
#' - variances are constant for parameters within the same level
#' - all observations y_ijk are equal to 0
#' - the mean of the root parameter B is mu = 0
#' - assum... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(nra)
library(tidyverse)
library(shinyalert)
library(kableExtra)
library(DT)
library(htmltoo... | /inst/shinyApps/nra/app.R | no_license | Rapporteket/nra | R | false | false | 6,580 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(nra)
library(tidyverse)
library(shinyalert)
library(kableExtra)
library(DT)
library(htmltoo... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.969... | /meteor/inst/testfiles/ET0_PenmanMonteith/AFL_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1615839818-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 844 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.969... |
library(highmean)
### Name: apval_aSPU
### Title: Asymptotics-Based p-values of the SPU and aSPU Tests
### Aliases: apval_aSPU
### ** Examples
library(MASS)
set.seed(1234)
n1 <- n2 <- 50
p <- 200
mu1 <- rep(0, p)
mu2 <- mu1
mu2[1:10] <- 0.2
true.cov <- 0.4^(abs(outer(1:p, 1:p, "-"))) # AR1 covariance
sam1 <- mvrnor... | /data/genthat_extracted_code/highmean/examples/apval_aSPU.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 970 | r | library(highmean)
### Name: apval_aSPU
### Title: Asymptotics-Based p-values of the SPU and aSPU Tests
### Aliases: apval_aSPU
### ** Examples
library(MASS)
set.seed(1234)
n1 <- n2 <- 50
p <- 200
mu1 <- rep(0, p)
mu2 <- mu1
mu2[1:10] <- 0.2
true.cov <- 0.4^(abs(outer(1:p, 1:p, "-"))) # AR1 covariance
sam1 <- mvrnor... |
#EXAMEN
library(tseries)
library(data.table)
library(zoo)
library(readxl)
library(lmtest)
library(stats4)
library(strucchange)
library(FinTS)
Serie = read.csv("Series.csv")
#Vemos que de la serie original, todos los datos estan en formato numerico.
Serie1 = Serie$Y5
ts1 = as.ts(Serie1)
plot(ts1,type="l", xlab="X", yl... | /Pregunta 4.R | no_license | RiemanNClav/Practicas-SeriesDeTiempo-r | R | false | false | 3,198 | r | #EXAMEN
library(tseries)
library(data.table)
library(zoo)
library(readxl)
library(lmtest)
library(stats4)
library(strucchange)
library(FinTS)
Serie = read.csv("Series.csv")
#Vemos que de la serie original, todos los datos estan en formato numerico.
Serie1 = Serie$Y5
ts1 = as.ts(Serie1)
plot(ts1,type="l", xlab="X", yl... |
require(jsonlite)
require(httr)
require(data.table)
library(stats)
library(forecast)
library(ggplot2)
get_token <- function(username, password, url_site){
post_body = list(username=username,password=password)
post_url_string = paste0(url_site,'/token/')
result = POST(post_url_string, body = post_body)
# ... | /proje/IE360-Proj_code.R | no_license | BU-IE-360/ilgazgulsen | R | false | false | 30,378 | r | require(jsonlite)
require(httr)
require(data.table)
library(stats)
library(forecast)
library(ggplot2)
get_token <- function(username, password, url_site){
post_body = list(username=username,password=password)
post_url_string = paste0(url_site,'/token/')
result = POST(post_url_string, body = post_body)
# ... |
library(tidyverse)
# The first step before you start modeling is to explore your data. In this course we’ll practice using tidyverse functions for exploratory data analysis. Start off this case study by examining your data set and visualizing the distribution of fuel efficiency. The ggplot2 package, with functions lik... | /Cource_9a_case1.R | no_license | GVersteeg/Voorbeeld | R | false | false | 19,330 | r | library(tidyverse)
# The first step before you start modeling is to explore your data. In this course we’ll practice using tidyverse functions for exploratory data analysis. Start off this case study by examining your data set and visualizing the distribution of fuel efficiency. The ggplot2 package, with functions lik... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bin_funcs.R
\name{bin_kurtosis}
\alias{bin_kurtosis}
\title{bin_kurtosis}
\usage{
bin_kurtosis(trials, prob)
}
\arguments{
\item{trials:}{number of total trials}
\item{prob:}{probability of success}
}
\value{
numeric value representing kurto... | /binomial/man/bin_kurtosis.Rd | no_license | stat133-sp19/hw-stat133-lilybhattacharjee5 | R | false | true | 479 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bin_funcs.R
\name{bin_kurtosis}
\alias{bin_kurtosis}
\title{bin_kurtosis}
\usage{
bin_kurtosis(trials, prob)
}
\arguments{
\item{trials:}{number of total trials}
\item{prob:}{probability of success}
}
\value{
numeric value representing kurto... |
# nested cross-validation or Jackknifing
# -- input
# x : feature vector
# y : desired labels
# nfolds : number of folds
# classifier : type of classifier
# opts : options passed from keyboards
# -- output
# best.model : model parameters
"persist.model.mwas" <- function(x, y, nfolds=10,
... | /lib/persist.model.R | no_license | pvangay/mwas | R | false | false | 2,955 | r | # nested cross-validation or Jackknifing
# -- input
# x : feature vector
# y : desired labels
# nfolds : number of folds
# classifier : type of classifier
# opts : options passed from keyboards
# -- output
# best.model : model parameters
"persist.model.mwas" <- function(x, y, nfolds=10,
... |
context("test-speedglm-speedglm")
skip_on_cran()
skip_if_not_installed("modeltests")
library(modeltests)
skip_if_not_installed("speedglm")
library(speedglm)
clotting <- data.frame(
u = c(5, 10, 15, 20, 30, 40, 60, 80, 100),
lot1 = c(118, 58, 42, 35, 27, 25, 21, 19, 18)
)
fit <- speedglm(lot1 ~ log(u), data = c... | /tests/testthat/test-speedglm-speedglm.R | permissive | tidymodels/broom | R | false | false | 982 | r | context("test-speedglm-speedglm")
skip_on_cran()
skip_if_not_installed("modeltests")
library(modeltests)
skip_if_not_installed("speedglm")
library(speedglm)
clotting <- data.frame(
u = c(5, 10, 15, 20, 30, 40, 60, 80, 100),
lot1 = c(118, 58, 42, 35, 27, 25, 21, 19, 18)
)
fit <- speedglm(lot1 ~ log(u), data = c... |
testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398... | /myTAI/inst/testfiles/cpp_omitMatrix/AFL_cpp_omitMatrix/cpp_omitMatrix_valgrind_files/1615845198-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,091 | r | testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398... |
#Niko Drake-McLaughlin
#October 25th, 2016, updated December 3rd, 2016
#Word Cloud
#Computational Statistics
#Welcome to word cloud!
#When given a text file or url to a text file, this program will create a word cloud.
#It is currently very slow, despite some measures taken to counteract this. It will
#only use words ... | /wordCloud.R | no_license | nikodmc/RWordCloud | R | false | false | 15,495 | r | #Niko Drake-McLaughlin
#October 25th, 2016, updated December 3rd, 2016
#Word Cloud
#Computational Statistics
#Welcome to word cloud!
#When given a text file or url to a text file, this program will create a word cloud.
#It is currently very slow, despite some measures taken to counteract this. It will
#only use words ... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1400
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1400
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/n... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/nxquery_query33_1344/nxquery_query33_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 707 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1400
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1400
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lefse.R
\name{lefse}
\alias{lefse}
\title{lefse analysis by using the data from lefse.rawdata function}
\usage{
lefse(input = "lefse.txt")
}
\arguments{
\item{input}{the input data for lefse analysis}
}
\value{
lefse analysi results and plot
... | /man/lefse.Rd | no_license | ZhonghuiGai/gglefse | R | false | true | 462 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lefse.R
\name{lefse}
\alias{lefse}
\title{lefse analysis by using the data from lefse.rawdata function}
\usage{
lefse(input = "lefse.txt")
}
\arguments{
\item{input}{the input data for lefse analysis}
}
\value{
lefse analysi results and plot
... |
library(tidyverse)
load("rda/murders.rda")
murders %>% mutate(abb = reorder(abb, rate)) %>%
ggplot(aes(abb,rate)) +
geom_bar(width = 0.5, stat = "identity", color = "black") +
coord_flip()
ggsave("figs/barplot.png")
| /analysis.R | no_license | cestr3/murders | R | false | false | 224 | r | library(tidyverse)
load("rda/murders.rda")
murders %>% mutate(abb = reorder(abb, rate)) %>%
ggplot(aes(abb,rate)) +
geom_bar(width = 0.5, stat = "identity", color = "black") +
coord_flip()
ggsave("figs/barplot.png")
|
#종교 유무에 따른 이혼율 , 종교가 있는 사람들이 이혼을 덜 할까?
#변수 검토하기
class(welfare$religion)
table(welfare$religion)
#종교 유무 이름 부여
welfare$religion <- ifelse(welfare$religion == 1, "yes", "no")
table(welfare$religion)
qplot(welfare$religion)
#-----------------------------------------------------------------
#246p 혼인 상태 변수 검토 및 전처리하기
... | /R/day06/.Rproj.user/3CD4C699/sources/per/t/79C0B533-contents | no_license | HanHyunwoo/TIL | R | false | false | 3,359 | #종교 유무에 따른 이혼율 , 종교가 있는 사람들이 이혼을 덜 할까?
#변수 검토하기
class(welfare$religion)
table(welfare$religion)
#종교 유무 이름 부여
welfare$religion <- ifelse(welfare$religion == 1, "yes", "no")
table(welfare$religion)
qplot(welfare$religion)
#-----------------------------------------------------------------
#246p 혼인 상태 변수 검토 및 전처리하기
... | |
#Write output to file
sentiment_grade <- ifelse(sentiment > 0,"Pos","Neg")
if(sentiment == 0) sentiment_grade <- "Neu"
record <- cbind(r1$review_seq_id[i],r1$stars[i], sentiment, sentiment_grade,r1$business_id[i],
r1$user_id[i],r1$Maincity[i])
write.table(record,file=file_name,append = TRUE,sep=","... | /R/write_output_simple.r | no_license | AviBlinder/SentimentAnalysis | R | false | false | 358 | r | #Write output to file
sentiment_grade <- ifelse(sentiment > 0,"Pos","Neg")
if(sentiment == 0) sentiment_grade <- "Neu"
record <- cbind(r1$review_seq_id[i],r1$stars[i], sentiment, sentiment_grade,r1$business_id[i],
r1$user_id[i],r1$Maincity[i])
write.table(record,file=file_name,append = TRUE,sep=","... |
## plot1.R
## Examine how household energy usage varies over a 2-day period in February, 2007
# setwd("~/Documents/DSU/coursera")
# read in the data without factors
powerdata <- read.table("household_power_consumption.txt",header=TRUE, sep=";", stringsAsFactors=FALSE, na.strings="?")
# Take character vectors & turn i... | /plot1.R | no_license | jriley17/ExData_Plotting1 | R | false | false | 896 | r | ## plot1.R
## Examine how household energy usage varies over a 2-day period in February, 2007
# setwd("~/Documents/DSU/coursera")
# read in the data without factors
powerdata <- read.table("household_power_consumption.txt",header=TRUE, sep=";", stringsAsFactors=FALSE, na.strings="?")
# Take character vectors & turn i... |
\name{MCPI}
\alias{MCPI}
\title{Medical Care price index for the United States.}
\usage{MCPI}
\description{Medical Care price index for the United States.}
\references{\emph{bls.gov} \cr
\tabular{ll}{
\bold{Not Seasonally Adjusted} \tab \cr
\bold{Series Id:} \tab CUUR0000SAM \cr
\bold{Area:} ... | /man/MCPI.Rd | no_license | cran/BALD | R | false | false | 488 | rd | \name{MCPI}
\alias{MCPI}
\title{Medical Care price index for the United States.}
\usage{MCPI}
\description{Medical Care price index for the United States.}
\references{\emph{bls.gov} \cr
\tabular{ll}{
\bold{Not Seasonally Adjusted} \tab \cr
\bold{Series Id:} \tab CUUR0000SAM \cr
\bold{Area:} ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general.indexes.R
\name{general.indexes}
\alias{general.indexes}
\title{general.indexes}
\usage{
general.indexes(newdata, prediction, mc = NULL)
}
\arguments{
\item{newdata}{matrix or data frame of test data.}
\item{prediction}{a prmdt predi... | /man/general.indexes.Rd | no_license | PROMiDAT/traineR | R | false | true | 1,433 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general.indexes.R
\name{general.indexes}
\alias{general.indexes}
\title{general.indexes}
\usage{
general.indexes(newdata, prediction, mc = NULL)
}
\arguments{
\item{newdata}{matrix or data frame of test data.}
\item{prediction}{a prmdt predi... |
########################################
# This R code is for processing #
# publically available LA crime data #
# for plotting and manipulation in d3. #
########################################
#import libraries
library(tidyr)
library(dplyr)
library(lubridate)
library(ggplot2)
library(data.table)
#set wd
se... | /data/crimedata_cleaning.R | no_license | PanielDan/Crime_In_LA | R | false | false | 8,363 | r | ########################################
# This R code is for processing #
# publically available LA crime data #
# for plotting and manipulation in d3. #
########################################
#import libraries
library(tidyr)
library(dplyr)
library(lubridate)
library(ggplot2)
library(data.table)
#set wd
se... |
library(emuR)
### Name: SetGetSignalCanvasesOrder
### Title: Set / Get signalCanvasesOrder of / to / from emuDB
### Aliases: SetGetSignalCanvasesOrder set_signalCanvasesOrder
### get_signalCanvasesOrder
### Keywords: DBconfig Emu database emuDB
### ** Examples
## Not run:
##D
##D ###############################... | /data/genthat_extracted_code/emuR/examples/SetGetSignalCanvasesOrder.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 645 | r | library(emuR)
### Name: SetGetSignalCanvasesOrder
### Title: Set / Get signalCanvasesOrder of / to / from emuDB
### Aliases: SetGetSignalCanvasesOrder set_signalCanvasesOrder
### get_signalCanvasesOrder
### Keywords: DBconfig Emu database emuDB
### ** Examples
## Not run:
##D
##D ###############################... |
#' Read a database described in a .sql file.
#'
#' This function will load data from a SQL database based on configuration
#' information found in the specified .sql file. The .sql file must specify
#' a database to be accessed. All tables from the database, one specific tables
#' or one specific query against any set ... | /R/reader.sql.R | no_license | arturochian/LoadMyData | R | false | false | 10,524 | r | #' Read a database described in a .sql file.
#'
#' This function will load data from a SQL database based on configuration
#' information found in the specified .sql file. The .sql file must specify
#' a database to be accessed. All tables from the database, one specific tables
#' or one specific query against any set ... |
# Calculate thresholds passed to the function for whichever variable is chosen
# x is the input (dimensioned lon x lat x 365)
# y are the thresholds
degreedays.grid <- function(x,y,z){
if (z==1) x[which(is.na(x))] <- -1000
if (z==2) x[which(is.na(x))] <- 1000
if (z==1) x <- x - y
if (z==2) x ... | /degreedays.grid.r | no_license | vinay9425/Climate_calculator | R | false | false | 399 | r | # Calculate thresholds passed to the function for whichever variable is chosen
# x is the input (dimensioned lon x lat x 365)
# y are the thresholds
degreedays.grid <- function(x,y,z){
if (z==1) x[which(is.na(x))] <- -1000
if (z==2) x[which(is.na(x))] <- 1000
if (z==1) x <- x - y
if (z==2) x ... |
source( "masternegloglikereduced1.R" )
source("eudicottree.R" )
library( "expm" )
source( "Qmatrixwoodherb3.R" )
source("Pruning2.R")
bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE)
last.state=50
uniform.samples<-read.csv("sample287.csv",header=FALSE)
a<- as.numeric(t(unif... | /Reduced model optimizations/explorelikereduced287.R | no_license | roszenil/Bichromdryad | R | false | false | 750 | r | source( "masternegloglikereduced1.R" )
source("eudicottree.R" )
library( "expm" )
source( "Qmatrixwoodherb3.R" )
source("Pruning2.R")
bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE)
last.state=50
uniform.samples<-read.csv("sample287.csv",header=FALSE)
a<- as.numeric(t(unif... |
allGuidesResource= c("~/Nut_zhuData/SELEXphp/guide/all-human-version4.txt" ,
"~/Nut_zhuData/SELEXphp/guide/Human_IndividualTF_Cell_eLife_Nature_YimengsMethPaper.txt",
"~/Nut_zhuData/SELEXphp/guide/MethylSELEX_v0.7_FinalCall_without_fail.txt",
# "~/Nut_zhuData/SELEXphp/guide/Methyl... | /R/2017_05_04_motif_related.R | no_license | aquaflakes/fjComm | R | false | false | 19,981 | r | allGuidesResource= c("~/Nut_zhuData/SELEXphp/guide/all-human-version4.txt" ,
"~/Nut_zhuData/SELEXphp/guide/Human_IndividualTF_Cell_eLife_Nature_YimengsMethPaper.txt",
"~/Nut_zhuData/SELEXphp/guide/MethylSELEX_v0.7_FinalCall_without_fail.txt",
# "~/Nut_zhuData/SELEXphp/guide/Methyl... |
best <- function(state, outcome) {
oc <- read.csv('outcome-of-care-measures.csv', colClasses = 'character')
oc[,11] <- suppressWarnings(as.numeric(oc[,11]))
oc[,17] <- suppressWarnings(as.numeric(oc[,17]))
oc[,23] <- suppressWarnings(as.numeric(oc[,23]))
states <- unique(oc$State)
conditions <- ... | /best.R | no_license | Diwahars/hospital-compare | R | false | false | 768 | r | best <- function(state, outcome) {
oc <- read.csv('outcome-of-care-measures.csv', colClasses = 'character')
oc[,11] <- suppressWarnings(as.numeric(oc[,11]))
oc[,17] <- suppressWarnings(as.numeric(oc[,17]))
oc[,23] <- suppressWarnings(as.numeric(oc[,23]))
states <- unique(oc$State)
conditions <- ... |
# Creating the genotype files and other files for AlphaImpute
# this script outputs three files:
# (1) Genotypes.txt: complete genotype data, can be filter for chromosomes
# (2) to_be_imputed_index.txt: index of SNPs which have to be masked and imputed
# (3) to_be_imputed.txt: names of SNPs
# (4) AlphaImputeLinux
# (5)... | /old/full_1_5_3rd/create_main_files.R | no_license | mastoffel/imputation_eddie | R | false | false | 4,989 | r | # Creating the genotype files and other files for AlphaImpute
# this script outputs three files:
# (1) Genotypes.txt: complete genotype data, can be filter for chromosomes
# (2) to_be_imputed_index.txt: index of SNPs which have to be masked and imputed
# (3) to_be_imputed.txt: names of SNPs
# (4) AlphaImputeLinux
# (5)... |
## Assign definitions
zipFile <- "UCI HAR Dataset.zip"
zipURL <- "http://archive.ics.uci.edu/ml/machine-learning-databases/00240/UCI%20HAR%20Dataset.zip"
zipName <- "UCI HAR Dataset"
Resultsfolder <- "Results"
## Load plyr package
library(plyr)
## Download zipFile and create Results folder
download.file(zipURL,zipF... | /run_analysis.R | no_license | mengsam/test1 | R | false | false | 2,623 | r | ## Assign definitions
zipFile <- "UCI HAR Dataset.zip"
zipURL <- "http://archive.ics.uci.edu/ml/machine-learning-databases/00240/UCI%20HAR%20Dataset.zip"
zipName <- "UCI HAR Dataset"
Resultsfolder <- "Results"
## Load plyr package
library(plyr)
## Download zipFile and create Results folder
download.file(zipURL,zipF... |
#
# #1. listing sub-folders
#
setwd("/scratch-222935/HMP/clean3")
dd <- data.frame(folders = list.files())
#
dd$folders <- paste(getwd(), "/", dd$folders, sep = "")
library(plyr)
library(stringr)
#
# #2. chcking if the cleanup job finished
#
check_cleanup <- function(ff) {
files <- list.files(path = ff)
if (is.elem... | /RCode/generate_gottcha2_batches.R | no_license | seninp-bioinfo/rsets | R | false | false | 3,890 | r | #
# #1. listing sub-folders
#
setwd("/scratch-222935/HMP/clean3")
dd <- data.frame(folders = list.files())
#
dd$folders <- paste(getwd(), "/", dd$folders, sep = "")
library(plyr)
library(stringr)
#
# #2. chcking if the cleanup job finished
#
check_cleanup <- function(ff) {
files <- list.files(path = ff)
if (is.elem... |
analysis.pcptsd <- function(data){
data <- parse.pcptsd(data)
ptsd_headers <- grep("pcptsd", names(data), value=TRUE)
data <- data %>% mutate(
ptsd = if_else(rowSums(data[ptsd_headers])>=3,1,0)
)
}
| /rfunc/pcptsd_analysis.r | no_license | juliavanboening/mhw_analysis | R | false | false | 237 | r | analysis.pcptsd <- function(data){
data <- parse.pcptsd(data)
ptsd_headers <- grep("pcptsd", names(data), value=TRUE)
data <- data %>% mutate(
ptsd = if_else(rowSums(data[ptsd_headers])>=3,1,0)
)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uGMAR.R
\docType{package}
\name{uGMAR}
\alias{uGMAR}
\title{uGMAR: Estimate Univariate Gaussian and Student's t Mixture Autoregressive Models}
\description{
\code{uGMAR} is a package for estimating univariate Gaussian mixture autoregressive (... | /man/uGMAR.Rd | no_license | yangkedc1984/uGMAR | R | false | true | 764 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uGMAR.R
\docType{package}
\name{uGMAR}
\alias{uGMAR}
\title{uGMAR: Estimate Univariate Gaussian and Student's t Mixture Autoregressive Models}
\description{
\code{uGMAR} is a package for estimating univariate Gaussian mixture autoregressive (... |
enable_return
| /test/unittest/usdt/tst.enable_return.r | permissive | oracle/dtrace-utils | R | false | false | 14 | r | enable_return
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/solve_KBP.R
\name{solve_KBP}
\alias{solve_KBP}
\title{Solve KIT-Based Breed Probabilities (KBP)}
\usage{
solve_KBP(geno, b_mat, white = TRUE)
}
\arguments{
\item{geno}{a matrix or data.frame with genotypes of test animals. SNPs in columns and... | /man/solve_KBP.Rd | no_license | funkhou9/breedTools | R | false | true | 1,075 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/solve_KBP.R
\name{solve_KBP}
\alias{solve_KBP}
\title{Solve KIT-Based Breed Probabilities (KBP)}
\usage{
solve_KBP(geno, b_mat, white = TRUE)
}
\arguments{
\item{geno}{a matrix or data.frame with genotypes of test animals. SNPs in columns and... |
#' @title Compute the Hourglass Score for the Reductive Hourglass Test
#' @description
#'
#' This function reduces the destruction of an hourglass shaped pattern to a single score value.
#'
#' Based on a given \code{\link{TAI}} or \code{\link{TDI}} pattern the given vector is being
#' ... | /R/rhInvertScore.R | no_license | AcaDemIQ/myTAI | R | false | false | 5,898 | r | #' @title Compute the Hourglass Score for the Reductive Hourglass Test
#' @description
#'
#' This function reduces the destruction of an hourglass shaped pattern to a single score value.
#'
#' Based on a given \code{\link{TAI}} or \code{\link{TDI}} pattern the given vector is being
#' ... |
\name{loadPETs-methods}
\docType{methods}
\alias{loadPETs}
\alias{loadPETs-methods}
\alias{loadPETs,ChiapetExperimentData,character-method}
\title{ Parsing ChIA-PET interaction data}
\description{
This method loads the ChIA-PET interactions data into a \code{\linkS4class{GRanges}} object from a file generated by ChIA-... | /man/loadPETs-methods.Rd | no_license | sirusb/R3CPET | R | false | false | 4,375 | rd | \name{loadPETs-methods}
\docType{methods}
\alias{loadPETs}
\alias{loadPETs-methods}
\alias{loadPETs,ChiapetExperimentData,character-method}
\title{ Parsing ChIA-PET interaction data}
\description{
This method loads the ChIA-PET interactions data into a \code{\linkS4class{GRanges}} object from a file generated by ChIA-... |
#' Counters
#'
#' \describe{
#' \item{count_letters}{counts the number of letters in a word}
#' \item{count_homogr}{counts the number of homograms of a word}
#' \item{count_homoph}{counts the number of homographs of a word}
#' \item{count_phons}{counts the number of phonems in a word}
#' \item{count_syll}{cou... | /R/counter.R | no_license | ColinFay/lexiquer | R | false | false | 2,167 | r | #' Counters
#'
#' \describe{
#' \item{count_letters}{counts the number of letters in a word}
#' \item{count_homogr}{counts the number of homograms of a word}
#' \item{count_homoph}{counts the number of homographs of a word}
#' \item{count_phons}{counts the number of phonems in a word}
#' \item{count_syll}{cou... |
# Make 2D Histogram:
#res <- read.table("mini_result.txt",sep=",",header=F)
res <- read.table("~/Documents/binned-output/combined_output.txt",sep=",",header=F)
head(res)
x <- apply(res[,1:2],1,mean)
y <- apply(res[,3:4],1,mean)
z <- res[,5]
d$mean_floor = floor(d$mean*100)/100
d$mean_ceil = ceiling(d$mean*100)/100
... | /HW2/Streaming/PlotRes.R | permissive | mhmeisner/Stuff | R | false | false | 993 | r |
# Make 2D Histogram:
#res <- read.table("mini_result.txt",sep=",",header=F)
res <- read.table("~/Documents/binned-output/combined_output.txt",sep=",",header=F)
head(res)
x <- apply(res[,1:2],1,mean)
y <- apply(res[,3:4],1,mean)
z <- res[,5]
d$mean_floor = floor(d$mean*100)/100
d$mean_ceil = ceiling(d$mean*100)/100
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/http.R
\name{iamHTTP}
\alias{iamHTTP}
\alias{stsHTTP}
\title{Workhorse API Query Functions}
\usage{
iamHTTP(verb = "GET", query, headers = list(), body = "",
version = "2010-05-08", verbose = getOption("verbose", FALSE),
region = Sys.gete... | /man/iamHTTP.Rd | no_license | harana-oss/aws.iam | R | false | true | 1,903 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/http.R
\name{iamHTTP}
\alias{iamHTTP}
\alias{stsHTTP}
\title{Workhorse API Query Functions}
\usage{
iamHTTP(verb = "GET", query, headers = list(), body = "",
version = "2010-05-08", verbose = getOption("verbose", FALSE),
region = Sys.gete... |
#----------------------------------------------------------------
# Environment Set-up
#----------------------------------------------------------------
rm(list=ls(all=TRUE))
gc()
options(scipen=999)
library(xgboost)
setwd("/home/rstudio/Dropbox/Public/Springleaf")
subversion <- 1
version <- "24_11"
startTime <- Sys.t... | /Benchmark Scripts/Seed/test_submission_seed_24_11.R | no_license | vikasnitk85/SpringleafMarketingesponse | R | false | false | 4,590 | r | #----------------------------------------------------------------
# Environment Set-up
#----------------------------------------------------------------
rm(list=ls(all=TRUE))
gc()
options(scipen=999)
library(xgboost)
setwd("/home/rstudio/Dropbox/Public/Springleaf")
subversion <- 1
version <- "24_11"
startTime <- Sys.t... |
#Main script
# Aim calls the helper scripts to run the sequence of scripts needed to read, cleananad produce mapable data outputs
# libraries
library(sf)
library(sp)
library(tidyverse)
# Read in the data
source("./scripts/read_xl_vessel_sightings.R")
# Convert the coordinates DMds to dd and add to object boat_sight... | /scripts/main_script.R | no_license | philiphaupt/Vessel-sightings | R | false | false | 1,445 | r | #Main script
# Aim calls the helper scripts to run the sequence of scripts needed to read, cleananad produce mapable data outputs
# libraries
library(sf)
library(sp)
library(tidyverse)
# Read in the data
source("./scripts/read_xl_vessel_sightings.R")
# Convert the coordinates DMds to dd and add to object boat_sight... |
fipsDisplayTitlePresentation <- function(id){
ns <- NS(id)
ui.objects <- mapRiskUI(id)
ui.objects$countySummary
}
# displayCountyInfoTablePresentation <- function(id){
# ns <- NS(id)
# ui.objects <- mapRiskUI(id)
# ui.objects$countyMetrics
#
# }
#' Server function for displayCountyInfoServer.
#... | /shiny/R/fips_display.R | permissive | SaravananJaichandar/va-datathon-2017 | R | false | false | 11,426 | r |
fipsDisplayTitlePresentation <- function(id){
ns <- NS(id)
ui.objects <- mapRiskUI(id)
ui.objects$countySummary
}
# displayCountyInfoTablePresentation <- function(id){
# ns <- NS(id)
# ui.objects <- mapRiskUI(id)
# ui.objects$countyMetrics
#
# }
#' Server function for displayCountyInfoServer.
#... |
context('groupOTU')
test_that('groupOTU', {
nwk <- system.file("extdata", "sample.nwk", package="ggtree")
tree <- read.tree(nwk)
focus <- c("D", "E", "F", "G")
df <- fortify(groupOTU(tree, focus=focus))
expect_true(all(df$group[df$label %in% focus] == 1))
cls <- list(c1=c("A", "B", "C", "D", "... | /3.4/ggtree/tests/testthat/test-group.R | no_license | GuangchuangYu/bioc-release | R | false | false | 974 | r | context('groupOTU')
test_that('groupOTU', {
nwk <- system.file("extdata", "sample.nwk", package="ggtree")
tree <- read.tree(nwk)
focus <- c("D", "E", "F", "G")
df <- fortify(groupOTU(tree, focus=focus))
expect_true(all(df$group[df$label %in% focus] == 1))
cls <- list(c1=c("A", "B", "C", "D", "... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bench-compare.r
\name{bench_compare}
\alias{bench_compare}
\alias{bench_tbls}
\alias{compare_tbls}
\alias{eval_tbls}
\title{Evaluate, compare, benchmark operations of a set of srcs.}
\usage{
bench_tbls(tbls, op, ..., times = 10)
compare_tbls... | /man/bench_compare.Rd | no_license | garrettgman/dplyr | R | false | true | 2,482 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bench-compare.r
\name{bench_compare}
\alias{bench_compare}
\alias{bench_tbls}
\alias{compare_tbls}
\alias{eval_tbls}
\title{Evaluate, compare, benchmark operations of a set of srcs.}
\usage{
bench_tbls(tbls, op, ..., times = 10)
compare_tbls... |
genotypes <- function(se){
assays(se)[["GT"]]
}
bafs <- function(se){
assays(se)[["baf"]]
}
shapeParams <- function(){
m <- matrix(c(1, 1,
10, 1,
1, 10,
30, 30,
10, 20,
20, 10,
30, 10,
10, 30), ncol=2... | /R/genotype_cnps.R | no_license | aditharun/CNPBayes | R | false | false | 10,184 | r | genotypes <- function(se){
assays(se)[["GT"]]
}
bafs <- function(se){
assays(se)[["baf"]]
}
shapeParams <- function(){
m <- matrix(c(1, 1,
10, 1,
1, 10,
30, 30,
10, 20,
20, 10,
30, 10,
10, 30), ncol=2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.