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 |
|---|---|---|---|---|---|---|---|---|---|
## Utility functions for simulating data and estimating R0
## For generating synthetic data ----------------------------------------
## Output underlying R0 values for input into the SIR or SEIR model across once change (increase or decrease)
get_arnaught_step <- function(start_R0,
... | /07-07-2020/00-util.R | no_license | kgostic/epinow2_tests | R | false | false | 10,346 | r | ## Utility functions for simulating data and estimating R0
## For generating synthetic data ----------------------------------------
## Output underlying R0 values for input into the SIR or SEIR model across once change (increase or decrease)
get_arnaught_step <- function(start_R0,
... |
################################################################################
# Function: abcd_mams_analysis.R #
# Last Modified: 23/03/2018 #
#############################################################################... | /Efficient determination of optimised multi-arm multi-stage experimental designs with control of generalised error-rates/Figure_and_Table_Production.R | no_license | mjg211/article_code | R | false | false | 27,147 | r | ################################################################################
# Function: abcd_mams_analysis.R #
# Last Modified: 23/03/2018 #
#############################################################################... |
##
## Modified DESeq2 plotPCA function with sample names and custom condition colors.
## Sample names will be shown next to each dot with minimal overlapping.
## The axis will display proportion of variance for each principal component.
## Tested using several DESeq2 versions from 1.12.4 to 1.14.0.
##
deseq2_pca = f... | /scripts/deseq2-pca.R | permissive | hjanime/sns | R | false | false | 2,968 | r | ##
## Modified DESeq2 plotPCA function with sample names and custom condition colors.
## Sample names will be shown next to each dot with minimal overlapping.
## The axis will display proportion of variance for each principal component.
## Tested using several DESeq2 versions from 1.12.4 to 1.14.0.
##
deseq2_pca = f... |
#plotBAF <- function(bafTXT,pngName){
Sys.setenv("DISPLAY"="hpc-hn01:0.0")
args <- commandArgs(TRUE)
bafTXT=args[1]
pngName=args[2]
#read in TSV files
baf<-read.table(bafTXT,header=TRUE,sep="\t")
baf[,2]=baf[,2]/1e6
#create PNG file
png(file=paste(pngName,'.png',sep=''),width=500*6*3,height=500*4*3, res=300)
par(... | /tCoNut_COMMPASS/plotBAF.R | permissive | tgen/MMRF_CoMMpass | R | false | false | 1,063 | r | #plotBAF <- function(bafTXT,pngName){
Sys.setenv("DISPLAY"="hpc-hn01:0.0")
args <- commandArgs(TRUE)
bafTXT=args[1]
pngName=args[2]
#read in TSV files
baf<-read.table(bafTXT,header=TRUE,sep="\t")
baf[,2]=baf[,2]/1e6
#create PNG file
png(file=paste(pngName,'.png',sep=''),width=500*6*3,height=500*4*3, res=300)
par(... |
createArea.default <-
function(name="unknown",location="unknown",simulation=list(start=NULL,end=NULL,interval=NULL))
{
names(simulation)<-c("start","end","interval")
if(any(c(is.null(simulation$start),is.null(simulation$end),is.null(simulation$interval))))
{
stop("Simulation time settings are not a... | /R/createArea.default.R | no_license | cran/WRSS | R | false | false | 790 | r | createArea.default <-
function(name="unknown",location="unknown",simulation=list(start=NULL,end=NULL,interval=NULL))
{
names(simulation)<-c("start","end","interval")
if(any(c(is.null(simulation$start),is.null(simulation$end),is.null(simulation$interval))))
{
stop("Simulation time settings are not a... |
testlist <- list(lambda = numeric(0), logq = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.82479996802836e-310, 6.06245709501682e-309, 3.96558576717877e-309, 1.87744945419674e-322, 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), nu = numeric(0), p = numer... | /COMPoissonReg/inst/testfiles/qzicmp_cpp/libFuzzer_qzicmp_cpp/qzicmp_cpp_valgrind_files/1612729242-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 407 | r | testlist <- list(lambda = numeric(0), logq = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.82479996802836e-310, 6.06245709501682e-309, 3.96558576717877e-309, 1.87744945419674e-322, 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), nu = numeric(0), p = numer... |
#! /usr/bin/env Rscript
library(magrittr)
library(methods)
library(docopt)
help = "
Usage: sensspec.R [options] INPUT_FILE SHOULD_MAP
Calculates the sensitivity and specificity of mapping runs.
INPUT_FILE is a TAB-separated table with lists amounts of reads satisfying the
values of the other columns. It can be obt... | /scripts/src/sensspec.R | permissive | mlell/tapas | R | false | false | 5,918 | r | #! /usr/bin/env Rscript
library(magrittr)
library(methods)
library(docopt)
help = "
Usage: sensspec.R [options] INPUT_FILE SHOULD_MAP
Calculates the sensitivity and specificity of mapping runs.
INPUT_FILE is a TAB-separated table with lists amounts of reads satisfying the
values of the other columns. It can be obt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/validate_data.R
\name{validate_date_range}
\alias{validate_date_range}
\title{Check that dates are within the study dates}
\usage{
validate_date_range(x)
}
\arguments{
\item{x}{a date vector}
}
\value{
a logical vector indicating that the dat... | /man/validate_date_range.Rd | permissive | nc-minibbs/mbbs | R | false | true | 409 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/validate_data.R
\name{validate_date_range}
\alias{validate_date_range}
\title{Check that dates are within the study dates}
\usage{
validate_date_range(x)
}
\arguments{
\item{x}{a date vector}
}
\value{
a logical vector indicating that the dat... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/central_nervous_system.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0,family="gaussian",standardize=TRUE)
sink('./central_nervous_sys... | /Model/EN/ReliefF/central_nervous_system/central_nervous_system_003.R | no_license | esbgkannan/QSMART | R | false | false | 375 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/central_nervous_system.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0,family="gaussian",standardize=TRUE)
sink('./central_nervous_sys... |
### =========================================================================
### DataTable objects
### -------------------------------------------------------------------------
###
### DataTable is an API only (i.e. virtual class with no slots) for
### accessing objects with a rectangular shape like DataFrame or
### R... | /R/DataTable-class.R | no_license | jonocarroll/S4Vectors | R | false | false | 11,165 | r | ### =========================================================================
### DataTable objects
### -------------------------------------------------------------------------
###
### DataTable is an API only (i.e. virtual class with no slots) for
### accessing objects with a rectangular shape like DataFrame or
### R... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\docType{class}
\name{mipo-class}
\alias{mipo}
\alias{mipo-class}
\title{Multiply imputed pooled analysis (\code{mipo})}
\description{
The \code{mipo} object is generated by the \code{\link{pool}} function from a
\code{link[=mira-class]{mira}} object. The \code{mip... | /man/mipo-class.Rd | no_license | bbolker/mice | R | false | false | 2,740 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\docType{class}
\name{mipo-class}
\alias{mipo}
\alias{mipo-class}
\title{Multiply imputed pooled analysis (\code{mipo})}
\description{
The \code{mipo} object is generated by the \code{\link{pool}} function from a
\code{link[=mira-class]{mira}} object. The \code{mip... |
library(SeleMix)
### Name: ex1.data
### Title: Example data frame
### Aliases: ex1.data
### Keywords: datasets
### ** Examples
data(ex1.data)
| /data/genthat_extracted_code/SeleMix/examples/ex1.data.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 150 | r | library(SeleMix)
### Name: ex1.data
### Title: Example data frame
### Aliases: ex1.data
### Keywords: datasets
### ** Examples
data(ex1.data)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract-pjnz.R
\name{get_dp_totpop}
\alias{get_dp_totpop}
\title{Extract arrays from Spectrum DP file}
\usage{
get_dp_totpop(dp, proj_years)
}
\description{
Extract arrays from Spectrum DP file
}
| /man/get_dp_totpop.Rd | permissive | mrc-ide/first90release | R | false | true | 274 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract-pjnz.R
\name{get_dp_totpop}
\alias{get_dp_totpop}
\title{Extract arrays from Spectrum DP file}
\usage{
get_dp_totpop(dp, proj_years)
}
\description{
Extract arrays from Spectrum DP file
}
|
setwd("C:\\Users\\DUC-PC\\Downloads\\")
O = read.table(file ="Owls.txt", header = TRUE, dec=".")
names(O)
str(O)
#Cau 1
AllNest <- unique(O$ï..Nest)
N <- length(AllNest)
for (i in 1:N){
Nest.i <- as.character(AllNest[i])
Oi <- O[O$ï..Nest == Nest.i,]
name <- Nest.i
name <- paste(Nest.i,".jpg", se... | /BT_11_05_2021.R | no_license | TranThiDieuHien/NNLT_R | R | false | false | 1,241 | r | setwd("C:\\Users\\DUC-PC\\Downloads\\")
O = read.table(file ="Owls.txt", header = TRUE, dec=".")
names(O)
str(O)
#Cau 1
AllNest <- unique(O$ï..Nest)
N <- length(AllNest)
for (i in 1:N){
Nest.i <- as.character(AllNest[i])
Oi <- O[O$ï..Nest == Nest.i,]
name <- Nest.i
name <- paste(Nest.i,".jpg", se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BSDA-package.R
\docType{data}
\name{Golf}
\alias{Golf}
\title{Distances a golf ball can be driven by 20 professional golfers}
\format{A data frame with 20 observations on the following variable.
\describe{
\item{yards}{a numeric vector}
}}
... | /man/Golf.Rd | no_license | lelou6666/BSDA | R | false | true | 538 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BSDA-package.R
\docType{data}
\name{Golf}
\alias{Golf}
\title{Distances a golf ball can be driven by 20 professional golfers}
\format{A data frame with 20 observations on the following variable.
\describe{
\item{yards}{a numeric vector}
}}
... |
\name{q.tails}
\alias{q.tails}
\title{Quantile-Based Tails Comparison}
\description{
This function compares right tails of two sample distributions using a quantile-based approach (QBA).
}
\usage{
q.tails(x0, x1, q = 0.99)
}
\arguments{
\item{x0,x1}{vectors of the same length (preferably). Tail in \code{x1} is com... | /funtimes/man/q.tails.Rd | no_license | svish91/funtimes | R | false | false | 2,134 | rd | \name{q.tails}
\alias{q.tails}
\title{Quantile-Based Tails Comparison}
\description{
This function compares right tails of two sample distributions using a quantile-based approach (QBA).
}
\usage{
q.tails(x0, x1, q = 0.99)
}
\arguments{
\item{x0,x1}{vectors of the same length (preferably). Tail in \code{x1} is com... |
\name{sig.score}
\alias{sig.score}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Function to compute signature scores as linear combination of gene expressions
}
\description{
This function computes a signature score from a gene list (aka gene signature), i.e. a signed average as published in S... | /man/sig.score.Rd | no_license | cran/genefu | R | false | false | 3,561 | rd | \name{sig.score}
\alias{sig.score}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Function to compute signature scores as linear combination of gene expressions
}
\description{
This function computes a signature score from a gene list (aka gene signature), i.e. a signed average as published in S... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/map_1_day.R
\name{map_1_day}
\alias{map_1_day}
\title{Map GPS locations for 1 animal on 1 day}
\usage{
map_1_day(googleAPIkey, date, tag, df = gps.data)
}
\description{
This function plots points on a Google satellite image for 1 animal on
as... | /man/map_1_day.Rd | no_license | ryanreuter/livestockgpshandlR | R | false | true | 891 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/map_1_day.R
\name{map_1_day}
\alias{map_1_day}
\title{Map GPS locations for 1 animal on 1 day}
\usage{
map_1_day(googleAPIkey, date, tag, df = gps.data)
}
\description{
This function plots points on a Google satellite image for 1 animal on
as... |
library(plaqr)
### Name: predictInt
### Title: Prediction Inteval for Quantile Regression
### Aliases: predictInt
### ** Examples
data(simData)
fit <- plaqr(y~.,~z1+z2,data=simData)
predictInt(fit, level=.95)
| /data/genthat_extracted_code/plaqr/examples/predictInt.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 216 | r | library(plaqr)
### Name: predictInt
### Title: Prediction Inteval for Quantile Regression
### Aliases: predictInt
### ** Examples
data(simData)
fit <- plaqr(y~.,~z1+z2,data=simData)
predictInt(fit, level=.95)
|
library(alphastable)
### Name: upstab
### Title: upstab
### Aliases: upstab
### ** Examples
# In the following, we compute the cdf of a univariate stable distribution at point 2
# with parameters alpha=1.2, beta=0.9, sigma=1, and mu=0 in S_{0} parameterization.
upstab(2,1.2,0.9,1,0,1)
| /data/genthat_extracted_code/alphastable/examples/upstab.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 293 | r | library(alphastable)
### Name: upstab
### Title: upstab
### Aliases: upstab
### ** Examples
# In the following, we compute the cdf of a univariate stable distribution at point 2
# with parameters alpha=1.2, beta=0.9, sigma=1, and mu=0 in S_{0} parameterization.
upstab(2,1.2,0.9,1,0,1)
|
#
# 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/
#
library(shiny)
library(ggplot2)
library(tigris)
library(dplyr)
library(leaflet)
library(sp)
library(ggm... | /app/server.R | no_license | xinquan-wang/NYC_Green_Taxi_project | R | false | false | 12,460 | 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/
#
library(shiny)
library(ggplot2)
library(tigris)
library(dplyr)
library(leaflet)
library(sp)
library(ggm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getRtHourlyDemandByLocationIdForDay.R
\name{getRtHourlyDemandByLocationIdForDay}
\alias{getRtHourlyDemandByLocationIdForDay}
\title{Get Current Realtime Hourly Demand}
\usage{
getRtHourlyDemandByLocationIdForDay(day = Sys.Date() - 3, locId = ... | /man/getRtHourlyDemandByLocationIdForDay.Rd | no_license | noahbullock/rISONE | R | false | true | 1,195 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getRtHourlyDemandByLocationIdForDay.R
\name{getRtHourlyDemandByLocationIdForDay}
\alias{getRtHourlyDemandByLocationIdForDay}
\title{Get Current Realtime Hourly Demand}
\usage{
getRtHourlyDemandByLocationIdForDay(day = Sys.Date() - 3, locId = ... |
#############################################################################################################
#t-SNE clustering
#############################################################################################################
#here using diasy package to grab gower distance and Rtsne for doing t-SNE and ggp... | /src/data/HU_t-SNE.R | permissive | Kartikey0412/high_utilizers_cluster | R | false | false | 3,195 | r | #############################################################################################################
#t-SNE clustering
#############################################################################################################
#here using diasy package to grab gower distance and Rtsne for doing t-SNE and ggp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BIEN.R
\name{BIEN_list_state}
\alias{BIEN_list_state}
\title{Extract a species list by state/province}
\usage{
BIEN_list_state(country = NULL, country.code = NULL, state = NULL,
state.code = NULL, cultivated = FALSE, only.new.world = TRUE, ... | /BIEN/man/BIEN_list_state.Rd | no_license | naturalis/RBIEN | R | false | true | 1,766 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BIEN.R
\name{BIEN_list_state}
\alias{BIEN_list_state}
\title{Extract a species list by state/province}
\usage{
BIEN_list_state(country = NULL, country.code = NULL, state = NULL,
state.code = NULL, cultivated = FALSE, only.new.world = TRUE, ... |
#' @title Run a set of tests
#'
#' @description Runs a set of tests to check if \code{ganalyse} is working
#' correctly.
#'
#' @details Runs a series of tests. These can be used to see features and
#' examples of usage, too. Running \code{test_ganalyse} will tell you the full
#' location of the test file(s) to open... | /R/test-ganalyse.R | no_license | openanalytics/ganalyse | R | false | false | 10,391 | r | #' @title Run a set of tests
#'
#' @description Runs a set of tests to check if \code{ganalyse} is working
#' correctly.
#'
#' @details Runs a series of tests. These can be used to see features and
#' examples of usage, too. Running \code{test_ganalyse} will tell you the full
#' location of the test file(s) to open... |
#' Brier score for classification models
#'
#' Compute the Brier score for a classification model.
#'
#' @family class probability metrics
#' @templateVar fn brier_class
#' @template return
#' @details
#'
#' The Brier score is analogous to the mean squared error in regression models.
#' The difference between a binary ... | /R/prob-brier_class.R | permissive | tidymodels/yardstick | R | false | false | 4,219 | r | #' Brier score for classification models
#'
#' Compute the Brier score for a classification model.
#'
#' @family class probability metrics
#' @templateVar fn brier_class
#' @template return
#' @details
#'
#' The Brier score is analogous to the mean squared error in regression models.
#' The difference between a binary ... |
tagsDivLink <- function(loon.grob, tabPanelName,
loonWidgetsInfo, linkingGroup,
linkingGroups, displayedPanel) {
obj <- character(0)
class(obj) <- names(loon.grob$children)
UseMethod("tagsDivLink", obj)
}
tagsDivLink.l_plot <- function(loon.grob, tabPanelName, loon... | /R/tagsDivLink.R | no_license | z267xu/loon.shiny | R | false | false | 5,806 | r | tagsDivLink <- function(loon.grob, tabPanelName,
loonWidgetsInfo, linkingGroup,
linkingGroups, displayedPanel) {
obj <- character(0)
class(obj) <- names(loon.grob$children)
UseMethod("tagsDivLink", obj)
}
tagsDivLink.l_plot <- function(loon.grob, tabPanelName, loon... |
#------------------------------- Lasso Regression----------------------------------
# Prediction from Lasso
cv.out <- cv.glmnet(x[train,],y[train],alpha=1)
plot(cv.out)
# Optimal lamda store it into "minlamda_lasso" object
minlamda_lasso <-cv.out$lambda.min
minlamda_lasso
# But when we check in the ... | /Advanced_Regression_Lasso.R | no_license | shub005/Data-Science | R | false | false | 897 | r |
#------------------------------- Lasso Regression----------------------------------
# Prediction from Lasso
cv.out <- cv.glmnet(x[train,],y[train],alpha=1)
plot(cv.out)
# Optimal lamda store it into "minlamda_lasso" object
minlamda_lasso <-cv.out$lambda.min
minlamda_lasso
# But when we check in the ... |
temp<- tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip")
library(data.table)
data<- read.table(unz(temp,"exdata%2Fdata%2Fhousehold_power_consumption.zip"),skip=1,sep=";")
unlink(temp)
names(data)<- c("date","time","global_active_power","global_reactiv... | /plot1.R | no_license | gk-4711/ExData_Plotting1 | R | false | false | 688 | r | temp<- tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip")
library(data.table)
data<- read.table(unz(temp,"exdata%2Fdata%2Fhousehold_power_consumption.zip"),skip=1,sep=";")
unlink(temp)
names(data)<- c("date","time","global_active_power","global_reactiv... |
testlist <- list(vec = NULL, prob_vec = numeric(0))
result <- do.call(eive:::cga_generate_chromosome,testlist)
str(result) | /eive/inst/testfiles/cga_generate_chromosome/AFL_cga_generate_chromosome/cga_generate_chromosome_valgrind_files/1609871590-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 122 | r | testlist <- list(vec = NULL, prob_vec = numeric(0))
result <- do.call(eive:::cga_generate_chromosome,testlist)
str(result) |
# Core functions for the lasso analysis -----------------------------------
# This function performs 10-fold cross-validation 10 times, selecting the
# tuning parameter (lambda) with the lowest average (across folds)
# test error at each iteration. It returns the 10 values of lambda that
# minimize cross-validation ... | /02_code/00_useful_functions/lasso_functions.R | no_license | yintellect/media-experiment | R | false | false | 2,621 | r | # Core functions for the lasso analysis -----------------------------------
# This function performs 10-fold cross-validation 10 times, selecting the
# tuning parameter (lambda) with the lowest average (across folds)
# test error at each iteration. It returns the 10 values of lambda that
# minimize cross-validation ... |
#' Combines and filters one or more script files into a single script
#' appropriate to a single viz item
#'
#' Return the MD5sum of a deparsed script - this shouldn't change if whitespace
#' or comments change but should change if there's anything substantive
#'
#' @param ... length-1 character strings of R script fil... | /R/prepSources.R | permissive | USGS-VIZLAB/vizlab | R | false | false | 1,980 | r | #' Combines and filters one or more script files into a single script
#' appropriate to a single viz item
#'
#' Return the MD5sum of a deparsed script - this shouldn't change if whitespace
#' or comments change but should change if there's anything substantive
#'
#' @param ... length-1 character strings of R script fil... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 4898
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 4718
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 4718
c
c Input Parameter (command line, fil... | /code/dcnf-ankit-optimized/Results/PCNF-TRACK-2018/E1/Experiments/sortnetsort10.v.stepl.005/sortnetsort10.v.stepl.005.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 1,098 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 4898
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 4718
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 4718
c
c Input Parameter (command line, fil... |
#' zinedown: A package for creating zines using R Markdown
#'
#'
#' @section zine_gitbook:
#' Creates an R Markdown zine template as a webpage
#' @section zine_pdf:
#' Creates an R Markdown zine template as a PDF
#' @section zine_word:
#' Creates an R Markdown zine template as a Microsoft Word document
#' @section zine... | /R/zinedown.R | no_license | Robinlovelace/zinedown | R | false | false | 421 | r | #' zinedown: A package for creating zines using R Markdown
#'
#'
#' @section zine_gitbook:
#' Creates an R Markdown zine template as a webpage
#' @section zine_pdf:
#' Creates an R Markdown zine template as a PDF
#' @section zine_word:
#' Creates an R Markdown zine template as a Microsoft Word document
#' @section zine... |
context("getting multivar to work with multiple variables")
testthat::test_that("multivar works at all with multiple variables", {
corp_data1_test <- copy(fedmatch::corp_data1)
corp_data2_test <- copy(fedmatch::corp_data2)
corp_data1_test[, id_1 := seq(1, .N)]
corp_data2_test[, id_2 := seq(1, .N)]
# corp_data... | /tests/testthat/test_multivar_match.R | permissive | seunglee98/fedmatch | R | false | false | 3,916 | r | context("getting multivar to work with multiple variables")
testthat::test_that("multivar works at all with multiple variables", {
corp_data1_test <- copy(fedmatch::corp_data1)
corp_data2_test <- copy(fedmatch::corp_data2)
corp_data1_test[, id_1 := seq(1, .N)]
corp_data2_test[, id_2 := seq(1, .N)]
# corp_data... |
n<- 10^7
pa <- perceivedauditrate
r<- do.ALP.per.rate.analysis(per.rate=pa ,lab=lab,scale.up=5, n.bins=50)
log.per.audit.dist <- r$fit.log.rate
per.audit.dist<- log.per.audit.dist
per.audit.dist$x <- 10^(log.per.audit.dist$x)
sampled.per.audit <-sample(per.audit.dist$x,n, replace = T, prob=per.audit.dist$y)
rescale.t... | /Survey code/Calibration.Target.Increased.Perceived.Audit.Rate.R | no_license | Breakend/RIBSS_tax_evasion_ABM | R | false | false | 2,535 | r |
n<- 10^7
pa <- perceivedauditrate
r<- do.ALP.per.rate.analysis(per.rate=pa ,lab=lab,scale.up=5, n.bins=50)
log.per.audit.dist <- r$fit.log.rate
per.audit.dist<- log.per.audit.dist
per.audit.dist$x <- 10^(log.per.audit.dist$x)
sampled.per.audit <-sample(per.audit.dist$x,n, replace = T, prob=per.audit.dist$y)
rescale.t... |
################################################################################
## Wrapper to standardize multisite RCTs to a target level
################################################################################
#' Re-weight groups to target population means
#' @param X n x d matrix of covariates
#' @param tr... | /R/standardize_rct.R | no_license | ebenmichael/balancer | R | false | false | 8,094 | r | ################################################################################
## Wrapper to standardize multisite RCTs to a target level
################################################################################
#' Re-weight groups to target population means
#' @param X n x d matrix of covariates
#' @param tr... |
## An implementation of
## "A Resampling Approach for Correcting Systematic Spatiotemporal Biases for Multiple Variables in a Changing Climate"
## by Mehrotra and Sharma (2019), Water Resources Research, 55(1), pp.754-770, doi: 10.1029/2018WR023270
## Refered to as 3DBC (3-dimensional bias-correction), as it keeps inte... | /NORESM_REMO/RCP45/3DBC_ps_NORESM_REMO_APP_template.R | no_license | doblerone/3DBC | R | false | false | 4,956 | r | ## An implementation of
## "A Resampling Approach for Correcting Systematic Spatiotemporal Biases for Multiple Variables in a Changing Climate"
## by Mehrotra and Sharma (2019), Water Resources Research, 55(1), pp.754-770, doi: 10.1029/2018WR023270
## Refered to as 3DBC (3-dimensional bias-correction), as it keeps inte... |
# Load the Gross Domestic Product data for the 190 ranked countries in this data set:
# https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv
# Load the educational data from this data set:
# https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FEDSTATS_Country.csv
# Match the data based on the country shortc... | /data-sci/coursera/getdata/011/quizz3/q3-q5.R | no_license | Mr-Nancy/edu | R | false | false | 2,638 | r | # Load the Gross Domestic Product data for the 190 ranked countries in this data set:
# https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv
# Load the educational data from this data set:
# https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FEDSTATS_Country.csv
# Match the data based on the country shortc... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 3.33915451168935e-294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615785137-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 329 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 3.33915451168935e-294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... |
mtcars
library(ggplot2)
library(dplyr)
#install.packages('visreg')
library(visreg)
library(plotly)
colnames(mtcars)
head(mtcars)
summary(mtcars)
mtcars2 <- within(mtcars, {
vs <- factor(vs, labels = c("V", "S"))
am <- factor(am, labels = c("Automatic", "Manual"))
cyl <- factor(cyl, labels=c("Four","Six","Eigh... | /week6_application.R | no_license | sidthakur08/stat-601 | R | false | false | 7,725 | r | mtcars
library(ggplot2)
library(dplyr)
#install.packages('visreg')
library(visreg)
library(plotly)
colnames(mtcars)
head(mtcars)
summary(mtcars)
mtcars2 <- within(mtcars, {
vs <- factor(vs, labels = c("V", "S"))
am <- factor(am, labels = c("Automatic", "Manual"))
cyl <- factor(cyl, labels=c("Four","Six","Eigh... |
library(tidyverse)
library(ggplot2)
options(scipen = 999)
#I.
#Data
read.csv("./landdata-states.csv")
landat <- read.csv("./landdata-states.csv")
Val <- landat$Land.Value
Reg <- landat$region
#Plot
jpeg(filename = "Struhs_Fig_1.jpg")
ggplot(landat, aes(x= Year, y= Val, color= Reg))+
geom_smooth() +
labs(y= "L... | /Exam_2/Struhs_Skills_Test_2.R | no_license | StruhsE/Data_Course_STRUHS | R | false | false | 2,196 | r | library(tidyverse)
library(ggplot2)
options(scipen = 999)
#I.
#Data
read.csv("./landdata-states.csv")
landat <- read.csv("./landdata-states.csv")
Val <- landat$Land.Value
Reg <- landat$region
#Plot
jpeg(filename = "Struhs_Fig_1.jpg")
ggplot(landat, aes(x= Year, y= Val, color= Reg))+
geom_smooth() +
labs(y= "L... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_recipe.R
\name{get_recipe}
\alias{get_recipe}
\title{Get the recipes.}
\usage{
get_recipe(
key = NULL,
query = NULL,
cuisine = NULL,
diet = NULL,
exclude = NULL,
intolerance = NULL,
number = 10,
instruction = NULL,
maxRe... | /man/get_recipe.Rd | no_license | cynthiawang315/SpoonacularAPI | R | false | true | 2,765 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_recipe.R
\name{get_recipe}
\alias{get_recipe}
\title{Get the recipes.}
\usage{
get_recipe(
key = NULL,
query = NULL,
cuisine = NULL,
diet = NULL,
exclude = NULL,
intolerance = NULL,
number = 10,
instruction = NULL,
maxRe... |
source("desassr.R")
allPath <- "D:/dev/data/pew/extracted/W26_Apr17/"
sourceFile <- paste0(allPath, "ATP W26.sav", sep="")
destFile <- paste0(allPath, "ATP W26.csv", sep="")
dataDictFile <- paste0(allPath, "ATP W26_DataDict.sav", sep="")
savToCsv(sourceFile, destFile, dataDictFile)
# 1. QKEY
# 2. Wave 26 New Device ... | /r/researchr/gun-polling-data.R | no_license | hoovler/gistr | R | false | false | 12,204 | r | source("desassr.R")
allPath <- "D:/dev/data/pew/extracted/W26_Apr17/"
sourceFile <- paste0(allPath, "ATP W26.sav", sep="")
destFile <- paste0(allPath, "ATP W26.csv", sep="")
dataDictFile <- paste0(allPath, "ATP W26_DataDict.sav", sep="")
savToCsv(sourceFile, destFile, dataDictFile)
# 1. QKEY
# 2. Wave 26 New Device ... |
#Short script to obtain gene expression file ready for GSEA analysis
#GMT/GMX files can be obtained from GSEA Molecular Signatures Database
#Custom gene sets for TREM2-dependent and TREM2-indepedent disease associated microglia obtained from [1]
#Custom gene set for SOD1 microglia obtained from [2]
#.CLS phenotype ... | /ALSPatientStratification_GSEA_Prep.R | no_license | BSmithLab/ALSPatientStratification | R | false | false | 3,954 | r | #Short script to obtain gene expression file ready for GSEA analysis
#GMT/GMX files can be obtained from GSEA Molecular Signatures Database
#Custom gene sets for TREM2-dependent and TREM2-indepedent disease associated microglia obtained from [1]
#Custom gene set for SOD1 microglia obtained from [2]
#.CLS phenotype ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ropendata-package.R
\docType{package}
\name{ropendata}
\alias{ropendata}
\alias{ropendata-package}
\title{Query and Download 'Rapid7' Cybersecurity Data Sets}
\description{
'Rapid7' collects cybersecurity data and makes it available via
their... | /man/ropendata.Rd | no_license | firebitsbr/ropendata | R | false | true | 926 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ropendata-package.R
\docType{package}
\name{ropendata}
\alias{ropendata}
\alias{ropendata-package}
\title{Query and Download 'Rapid7' Cybersecurity Data Sets}
\description{
'Rapid7' collects cybersecurity data and makes it available via
their... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PERFect_sim.R
\name{PERFect_sim}
\alias{PERFect_sim}
\title{Simulation PERFect filtering for microbiome data}
\usage{
PERFect_sim(X,infocol = NULL, Order = "NP", Order.user = NULL, normalize = "counts",
center = FALSE, quant = c(0.1,... | /man/PERFect_sim.Rd | no_license | katiasmirn/PERFect | R | false | true | 5,841 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PERFect_sim.R
\name{PERFect_sim}
\alias{PERFect_sim}
\title{Simulation PERFect filtering for microbiome data}
\usage{
PERFect_sim(X,infocol = NULL, Order = "NP", Order.user = NULL, normalize = "counts",
center = FALSE, quant = c(0.1,... |
setwd("../Dropbox/Coursera/Exploratory data analysis/Programming assignment 1")
dat <- read.csv("household_power_consumption.txt", sep=";", header=T)
red <- subset(dat, as.character(dat$Date) == "1/2/2007" | as.character(dat$Date) == "2/2/2007")
hist(as.numeric(levels(red[,3]))[red[,3]], main="Global Active Power", xla... | /plot1.R | no_license | arielaragon/exploratorydatanalysis | R | false | false | 412 | r | setwd("../Dropbox/Coursera/Exploratory data analysis/Programming assignment 1")
dat <- read.csv("household_power_consumption.txt", sep=";", header=T)
red <- subset(dat, as.character(dat$Date) == "1/2/2007" | as.character(dat$Date) == "2/2/2007")
hist(as.numeric(levels(red[,3]))[red[,3]], main="Global Active Power", xla... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mexRangeFit.R
\name{mexRangeFit}
\alias{mexRangeFit}
\title{Estimate dependence parameters in a conditional multivariate extreme values
model over a range of thresholds.}
\usage{
mexRangeFit(x, which, quantiles = seq(0.5, 0.9, length = 9),
st... | /fuzzedpackages/texmex/man/mexRangeFit.Rd | no_license | akhikolla/testpackages | R | false | true | 2,838 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mexRangeFit.R
\name{mexRangeFit}
\alias{mexRangeFit}
\title{Estimate dependence parameters in a conditional multivariate extreme values
model over a range of thresholds.}
\usage{
mexRangeFit(x, which, quantiles = seq(0.5, 0.9, length = 9),
st... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covarianceStructure3D.R
\name{covarianceStructure3D}
\alias{covarianceStructure3D}
\alias{covarianceStructure3D}
\title{Covariance structure}
\usage{
covarianceStructure3D(type = c("gaussian", "exponential", "spherical",
"cubic", "matern1",... | /man/covarianceStructure3D.Rd | no_license | CloudComputer/geomod3D | R | false | true | 3,104 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covarianceStructure3D.R
\name{covarianceStructure3D}
\alias{covarianceStructure3D}
\alias{covarianceStructure3D}
\title{Covariance structure}
\usage{
covarianceStructure3D(type = c("gaussian", "exponential", "spherical",
"cubic", "matern1",... |
#' @title fun_name
#'
#' @description kolejna funkcja podmieniona
#'
#' @param param fun_name
#'
#'
#'
#' @export
sort.POSIXlt<- function(params){
rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina",
"Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka",
... | /R/sort.POSIXlt.R | no_license | granatb/RapeR | R | false | false | 679 | r |
#' @title fun_name
#'
#' @description kolejna funkcja podmieniona
#'
#' @param param fun_name
#'
#'
#'
#' @export
sort.POSIXlt<- function(params){
rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina",
"Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka",
... |
#' @title Mann-Kendall Trend Test of Time series Data with out any modifications
#'
#' @description Mann-Kendall trend test is a non-parametric trend test used to identify monotonic trends present in time series data.
#'
#' @importFrom stats acf median pnorm qnorm
#'
#' @usage mkttest(x)
#'
#' @param x - Time series ... | /R/mkttest.R | no_license | nobrienUW/modifiedmk | R | false | false | 3,158 | r | #' @title Mann-Kendall Trend Test of Time series Data with out any modifications
#'
#' @description Mann-Kendall trend test is a non-parametric trend test used to identify monotonic trends present in time series data.
#'
#' @importFrom stats acf median pnorm qnorm
#'
#' @usage mkttest(x)
#'
#' @param x - Time series ... |
#
# July 2019 - JAK
# Plots
# Oct 2019 - JAK
#
#
################################################
library(httr)
library(ggplot2)
####### Plot Price data set ######################
plotChart <- function(plotData, percent) {
# plotData <- quoterowsglobal
# percent <- 8
# mindate1 <- head( plotData [, (Da... | /plots.R | no_license | finpipelinerepo/finrepo | R | false | false | 2,460 | r | #
# July 2019 - JAK
# Plots
# Oct 2019 - JAK
#
#
################################################
library(httr)
library(ggplot2)
####### Plot Price data set ######################
plotChart <- function(plotData, percent) {
# plotData <- quoterowsglobal
# percent <- 8
# mindate1 <- head( plotData [, (Da... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{qtheme}
\alias{qtheme}
\alias{theme_badkitchen}
\alias{theme_cafe}
\alias{theme_duskheat}
\alias{theme_grayscale}
\alias{theme_greyscale}
\alias{theme_hipster}
\alias{theme_nightheat}
\alias{theme_norah}
\title{Add themes to a Network object.}
\usage{
qtheme(x ... | /man/qtheme.Rd | no_license | joffrevillanueva/qdap | R | false | false | 7,907 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{qtheme}
\alias{qtheme}
\alias{theme_badkitchen}
\alias{theme_cafe}
\alias{theme_duskheat}
\alias{theme_grayscale}
\alias{theme_greyscale}
\alias{theme_hipster}
\alias{theme_nightheat}
\alias{theme_norah}
\title{Add themes to a Network object.}
\usage{
qtheme(x ... |
mean_ci <- function(level, x) {
se <- sd(x) / sqrt(length(x))
alpha <- 1 - level
mean(x) + se * qnorm(c(alpha / 2, level / 2))
}
# Alter the arguments to mean_ci
mean_ci <- function(x, level = 0.95) {
se <- sd(x) / sqrt(length(x))
alpha <- 1 - level
mean(x) + se * qnorm(c(alpha / 2, 1 - alpha /... | /r-programming/writing-functions-in-r/2_when_and_how_you_should_write_functions/3_write_good_function.R | no_license | printfCRLF/rr | R | false | false | 926 | r | mean_ci <- function(level, x) {
se <- sd(x) / sqrt(length(x))
alpha <- 1 - level
mean(x) + se * qnorm(c(alpha / 2, level / 2))
}
# Alter the arguments to mean_ci
mean_ci <- function(x, level = 0.95) {
se <- sd(x) / sqrt(length(x))
alpha <- 1 - level
mean(x) + se * qnorm(c(alpha / 2, 1 - alpha /... |
#Read data from the csv
moviesData <- read.csv("Section6-Homework-Data.csv")
str(moviesData)
summary (moviesData)
View(moviesData)
#Filter out the data that is not needed
filter <- ((moviesData$Studio==("Buena Vista Studios")|moviesData$Studio==("Sony")|moviesData$Studio=="Fox"|moviesData$Studio=="Paramount P... | /Movie Domestic % Gross.R | no_license | arnav-mediratta-94/movies_domestic_gross | R | false | false | 2,483 | r | #Read data from the csv
moviesData <- read.csv("Section6-Homework-Data.csv")
str(moviesData)
summary (moviesData)
View(moviesData)
#Filter out the data that is not needed
filter <- ((moviesData$Studio==("Buena Vista Studios")|moviesData$Studio==("Sony")|moviesData$Studio=="Fox"|moviesData$Studio=="Paramount P... |
makeCacheMatrix <- function(x = matrix()) {
cacheMatrix <- NULL
setMatrix <- function(y) {
x <<- y
cacheMatrix <<- NULL
}
getMatrix() <- function() x
setCache <- function(inverse) cacheMatrix <<- inverse
getCache <- function() cacheMatrix
list(setMatrix = setMatrix,
getMatrix = g... | /makeCacheMatrix.R | no_license | Tanvir007/week3 | R | false | false | 697 | r | makeCacheMatrix <- function(x = matrix()) {
cacheMatrix <- NULL
setMatrix <- function(y) {
x <<- y
cacheMatrix <<- NULL
}
getMatrix() <- function() x
setCache <- function(inverse) cacheMatrix <<- inverse
getCache <- function() cacheMatrix
list(setMatrix = setMatrix,
getMatrix = g... |
#######################################
#Question 2:
#Whether the patient had surgical resection
#before radiation changed the rates of dysphagia
#for those with PEG tubes?
########################################
#Question 2
surgery <- ifelse(is.na(type_of_surgery),0,1)
surgery2 <- surgery[complete.cases(... | /03_question2.R | no_license | phargarten2/BCL-Projects | R | false | false | 3,437 | r | #######################################
#Question 2:
#Whether the patient had surgical resection
#before radiation changed the rates of dysphagia
#for those with PEG tubes?
########################################
#Question 2
surgery <- ifelse(is.na(type_of_surgery),0,1)
surgery2 <- surgery[complete.cases(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dmbc_classes.R
\name{plot,dmbc_fit,ANY-method}
\alias{plot,dmbc_fit,ANY-method}
\alias{plot,dmbc_fit-method}
\alias{dmbc_fit-plot}
\title{Provide a graphical summary of a \code{dmbc_fit} class instance.}
\usage{
\S4method{plot}{dmbc_fit,ANY}(... | /man/plot-dmbc_fit-ANY-method.Rd | no_license | sergioventurini/dmbc | R | false | true | 1,868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dmbc_classes.R
\name{plot,dmbc_fit,ANY-method}
\alias{plot,dmbc_fit,ANY-method}
\alias{plot,dmbc_fit-method}
\alias{dmbc_fit-plot}
\title{Provide a graphical summary of a \code{dmbc_fit} class instance.}
\usage{
\S4method{plot}{dmbc_fit,ANY}(... |
v2_header_parser <- function(file, ...) {
readr::read_fwf(
file = file,
col_positions = readr::fwf_positions(
c(1, 2, 14, 19, 22, 25, 28, 33, 38, 47, 56, 64),
c(1, 12, 17, 20, 23, 26, 31, 36, 45, 54, 62, 71),
c("HEADREC", "ID", "YEAR", "MONTH", "DAY", "HOUR", "RELTIME", "NUMLEV", "P_SRC", "N... | /R/IGRA_v2_parsers.R | permissive | kcf-jackson/cleanIGRA | R | false | false | 5,206 | r | v2_header_parser <- function(file, ...) {
readr::read_fwf(
file = file,
col_positions = readr::fwf_positions(
c(1, 2, 14, 19, 22, 25, 28, 33, 38, 47, 56, 64),
c(1, 12, 17, 20, 23, 26, 31, 36, 45, 54, 62, 71),
c("HEADREC", "ID", "YEAR", "MONTH", "DAY", "HOUR", "RELTIME", "NUMLEV", "P_SRC", "N... |
# ------------------------------------------------------------------------------
# posterior_diff
posterior_diff_reconstruct <- function(x, to) {
if (posterior_diff_reconstructable(x, to)) {
df_reconstruct(x, to)
} else {
tib_upcast(x)
}
}
posterior_diff_reconstructable <- function(x, to) {
x_names <-... | /R/posterior_diff-compat.R | permissive | tidymodels/tidyposterior | R | false | false | 4,510 | r | # ------------------------------------------------------------------------------
# posterior_diff
posterior_diff_reconstruct <- function(x, to) {
if (posterior_diff_reconstructable(x, to)) {
df_reconstruct(x, to)
} else {
tib_upcast(x)
}
}
posterior_diff_reconstructable <- function(x, to) {
x_names <-... |
library(shiny)
library(ggplot2)
library(dplyr)
library(httr)
library(jsonlite)
<<<<<<< HEAD
###Setup###
pokemon.file <- read.csv("data/Pokemon.csv", stringsAsFactors=FALSE)
pokemon.data <- pokemon.file %>%
select(pokemon, species_id, base_experience, type_1, type_2, attack, defense, hp, special_attack, special_def... | /setup.R | no_license | AlexEarll/AA4-Final-Project | R | false | false | 11,738 | r | library(shiny)
library(ggplot2)
library(dplyr)
library(httr)
library(jsonlite)
<<<<<<< HEAD
###Setup###
pokemon.file <- read.csv("data/Pokemon.csv", stringsAsFactors=FALSE)
pokemon.data <- pokemon.file %>%
select(pokemon, species_id, base_experience, type_1, type_2, attack, defense, hp, special_attack, special_def... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/question_parsons.R
\name{question_parsons}
\alias{question_parsons}
\title{Parsons problem question for learnr tutorials (experimental).}
\usage{
question_parsons(initial, ..., problem_type = c("base", "ggplot2",
"tidyverse"), orientation =... | /man/question_parsons.Rd | permissive | nischalshrestha/parsons | R | false | true | 4,567 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/question_parsons.R
\name{question_parsons}
\alias{question_parsons}
\title{Parsons problem question for learnr tutorials (experimental).}
\usage{
question_parsons(initial, ..., problem_type = c("base", "ggplot2",
"tidyverse"), orientation =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bi_open.R
\name{bi_open}
\alias{bi_open}
\title{Bi open}
\usage{
bi_open(x)
}
\arguments{
\item{x}{either a path to a NetCDF file, or a NetCDF connection created using \code{nc_open}, or a \code{\link{libbi}} object from which to read the out... | /man/bi_open.Rd | no_license | BlackEdder/RBi | R | false | true | 548 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bi_open.R
\name{bi_open}
\alias{bi_open}
\title{Bi open}
\usage{
bi_open(x)
}
\arguments{
\item{x}{either a path to a NetCDF file, or a NetCDF connection created using \code{nc_open}, or a \code{\link{libbi}} object from which to read the out... |
\name{mydaoshu}
\alias{mydaoshu}
\title{Internal function.}
\description{
function of 1/x
}
| /man/mydaoshu.Rd | no_license | cran/rvHPDT | R | false | false | 103 | rd | \name{mydaoshu}
\alias{mydaoshu}
\title{Internal function.}
\description{
function of 1/x
}
|
#Importing the data
setwd("/media/alfread/Stuff/Projects/Insuarnce/DataRefined/useable data/Life Insuarance")
ldf <- read.csv("insurance.csv")
#Creating and saving the scatterplot matrix
png(file = "life_insurance_scatterMatrix.png")
pairs(ldf[,c(1,3,4,7)])
dev.off()
#creating the regrestion model
life <- lm(char... | /life_insurance.R | no_license | Anirudh-Murali/Smart_Insurance | R | false | false | 2,753 | r |
#Importing the data
setwd("/media/alfread/Stuff/Projects/Insuarnce/DataRefined/useable data/Life Insuarance")
ldf <- read.csv("insurance.csv")
#Creating and saving the scatterplot matrix
png(file = "life_insurance_scatterMatrix.png")
pairs(ldf[,c(1,3,4,7)])
dev.off()
#creating the regrestion model
life <- lm(char... |
library(dplyr)
library(survival)
| /code.R | no_license | mohamkaoua/reposA | R | false | false | 33 | r | library(dplyr)
library(survival)
|
planets <- read.csv("D:/University of Brighton/2016-2017 Data Analytics MSc/2016 MM706 - Programming for Analytics CORE SEM 1 20CR/04 R drawing and plotting/planets.csv")
plot(0,0) #datapoint with coordinates 0,0
plot(0,0, xlim = c(-10, 10), ylim = (c(-10, 10))) #add limits to the plot so that we can visualise what we ... | /MM706/w04.R.drawing.and.plotting.R | no_license | pkkirilov/MSc-Data-Analytics | R | false | false | 4,260 | r | planets <- read.csv("D:/University of Brighton/2016-2017 Data Analytics MSc/2016 MM706 - Programming for Analytics CORE SEM 1 20CR/04 R drawing and plotting/planets.csv")
plot(0,0) #datapoint with coordinates 0,0
plot(0,0, xlim = c(-10, 10), ylim = (c(-10, 10))) #add limits to the plot so that we can visualise what we ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bulk-query.R
\name{sf_query_result_bulk}
\alias{sf_query_result_bulk}
\title{Retrieving the Results of a Bulk Query Batch in a Bulk API Job}
\usage{
sf_query_result_bulk(job_id, batch_id, result_id, guess_types = TRUE,
api_type = c("Bulk 1.... | /man/sf_query_result_bulk.Rd | no_license | bazarnov/salesforcer | R | false | true | 2,047 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bulk-query.R
\name{sf_query_result_bulk}
\alias{sf_query_result_bulk}
\title{Retrieving the Results of a Bulk Query Batch in a Bulk API Job}
\usage{
sf_query_result_bulk(job_id, batch_id, result_id, guess_types = TRUE,
api_type = c("Bulk 1.... |
## setting up for modeling --------------------------------------------
# loading required packages and data
library(cutoffR, SpatioTemporal)
library(ggplot2, mvtsplot)
library(reshape2)
load("./data/station.rda")
data(hqmr.data)
data(date.month)
##
## cube-transform the data and attaching date (month) tags
hqmr.cu... | /src/initial.R | no_license | Lingbing/STpred | R | false | false | 3,642 | r |
## setting up for modeling --------------------------------------------
# loading required packages and data
library(cutoffR, SpatioTemporal)
library(ggplot2, mvtsplot)
library(reshape2)
load("./data/station.rda")
data(hqmr.data)
data(date.month)
##
## cube-transform the data and attaching date (month) tags
hqmr.cu... |
### Name: barhier
### Title: Display a set of hierarchically associated variables
### Aliases: barhier
### Keywords: misc
### ** Examples
cat1<-sample(LETTERS[1:4],40,TRUE)
cat2<-paste(cat1,sample(1:4,40,TRUE),sep="")
cat3<-paste(cat2,sample(letters[1:4],40,TRUE),sep="")
hcats<-data.frame(cat1,cat2,cat3)
barhier... | /icfp09/lib/plotrix/R-ex/barhier.R | no_license | Jacob33123/narorumo | R | false | false | 423 | r | ### Name: barhier
### Title: Display a set of hierarchically associated variables
### Aliases: barhier
### Keywords: misc
### ** Examples
cat1<-sample(LETTERS[1:4],40,TRUE)
cat2<-paste(cat1,sample(1:4,40,TRUE),sep="")
cat3<-paste(cat2,sample(letters[1:4],40,TRUE),sep="")
hcats<-data.frame(cat1,cat2,cat3)
barhier... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deputies_create_table.R
\name{deputies_create_table}
\alias{deputies_create_table}
\title{Creating table with deputies}
\usage{
deputies_create_table(dbname, user, password, host,
nr_term_of_office = 8)
}
\arguments{
\item{dbname}{name of ... | /sejmRP/man/deputies_create_table.Rd | no_license | mi2-warsaw/sejmRP | R | false | true | 893 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deputies_create_table.R
\name{deputies_create_table}
\alias{deputies_create_table}
\title{Creating table with deputies}
\usage{
deputies_create_table(dbname, user, password, host,
nr_term_of_office = 8)
}
\arguments{
\item{dbname}{name of ... |
\name{heatmap.n}
\alias{heatmap.n}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Top-level heatmap call
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
heatmap.n(x, main = "Heatmap", ..., na.color = "gray80", sidebars = NULL, picketdata = NULL... | /man/heatmap.n.Rd | no_license | cancer-genetics-utu/heatmapGen | R | false | false | 5,256 | rd | \name{heatmap.n}
\alias{heatmap.n}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Top-level heatmap call
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
heatmap.n(x, main = "Heatmap", ..., na.color = "gray80", sidebars = NULL, picketdata = NULL... |
source("./new_functions/getnoise.r")
source("./new_functions/SE_lottery.R")
source("./new_functions/measure.co3.R")
source("./new_functions/popsim2.R")
source("./new_functions/co.periods.R")
#do asymmetrically associated environmental fluctuations and thus birth rates also produce asymmetrically associated population ... | /new_functions/exploring_20210218.R | no_license | jasminalbert/Albert_ReumanRepo | R | false | false | 6,396 | r | source("./new_functions/getnoise.r")
source("./new_functions/SE_lottery.R")
source("./new_functions/measure.co3.R")
source("./new_functions/popsim2.R")
source("./new_functions/co.periods.R")
#do asymmetrically associated environmental fluctuations and thus birth rates also produce asymmetrically associated population ... |
\name{summary}
\alias{summary.RGList}
\alias{summary.MAList}
\alias{summary.EListRaw}
\alias{summary.EList}
\alias{summary.MArrayLM}
\title{Summaries of Microarray Data Objects}
\description{
Briefly summarize microarray data objects.
}
\usage{
\method{summary}{RGList}(object, ...)
}
\arguments{
\item{objec... | /man/summary.Rd | no_license | ugerlevik/r-bioc-limma | R | false | false | 789 | rd | \name{summary}
\alias{summary.RGList}
\alias{summary.MAList}
\alias{summary.EListRaw}
\alias{summary.EList}
\alias{summary.MArrayLM}
\title{Summaries of Microarray Data Objects}
\description{
Briefly summarize microarray data objects.
}
\usage{
\method{summary}{RGList}(object, ...)
}
\arguments{
\item{objec... |
# Project: rstar
#
# Author: dongjie.shi
###############################################################################
nums <- 1:10000
| /PI.R | no_license | glorysdj/rstar | R | false | false | 141 | r | # Project: rstar
#
# Author: dongjie.shi
###############################################################################
nums <- 1:10000
|
# Install and load dependencies
if (!require("pacman")) install.packages("pacman")
pacman::p_load(RVCompare, ggplot2, scmamp, MCMCpack, devtools, geometry)
# if (!require("devtools")) {
# install.packages("devtools")
# }
# devtools::install_github("b0rxa/scmamp")
# library(scmamp)
csv_path1 <- "data/pleda_gradi... | /case_study_gradient_vs_PLEDA.R | permissive | EtorArza/SupplementaryPaperRVCompare | R | false | false | 4,772 | r |
# Install and load dependencies
if (!require("pacman")) install.packages("pacman")
pacman::p_load(RVCompare, ggplot2, scmamp, MCMCpack, devtools, geometry)
# if (!require("devtools")) {
# install.packages("devtools")
# }
# devtools::install_github("b0rxa/scmamp")
# library(scmamp)
csv_path1 <- "data/pleda_gradi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rerddap-package.r
\docType{data}
\name{longnames}
\alias{longnames}
\title{longnames}
\format{A character vector}
\description{
longnames
}
\keyword{datasets}
| /man/longnames.Rd | permissive | kant/rerddap | R | false | true | 237 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rerddap-package.r
\docType{data}
\name{longnames}
\alias{longnames}
\title{longnames}
\format{A character vector}
\description{
longnames
}
\keyword{datasets}
|
#' Functional diversity through Hill Numbers
#'
#' Calculate functional diversity for each site (alpha diversity).
#'
#' @inheritParams hill_taxa
#' @param traits A data frame of species functional traits data. Species as rows, traits as columns.
#' It can include both continuous and categorical data. It will be transf... | /R/hill_func.R | permissive | nemochina2008/hillR | R | false | false | 9,832 | r | #' Functional diversity through Hill Numbers
#'
#' Calculate functional diversity for each site (alpha diversity).
#'
#' @inheritParams hill_taxa
#' @param traits A data frame of species functional traits data. Species as rows, traits as columns.
#' It can include both continuous and categorical data. It will be transf... |
# Plot2.R
#
# load file
file <- "household_power_consumption.txt"
data <- read.table( file,
header = TRUE,
sep = ";",
colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric" ),
... | /Plot2.R | no_license | xtracool/ExData_Plotting1 | R | false | false | 764 | r | # Plot2.R
#
# load file
file <- "household_power_consumption.txt"
data <- read.table( file,
header = TRUE,
sep = ";",
colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric" ),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tibble_to_dist.R
\name{tibble_to_dist}
\alias{tibble_to_dist}
\title{Convert tibble to dist.}
\usage{
tibble_to_dist(.dist_tbl, .col_name = "ses", .matrix = F)
}
\arguments{
\item{.dist_tbl}{tibble, data.frame}
\item{.col_name}{column name.}... | /man/tibble_to_dist.Rd | permissive | Hide-Fun/teco | R | false | true | 436 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tibble_to_dist.R
\name{tibble_to_dist}
\alias{tibble_to_dist}
\title{Convert tibble to dist.}
\usage{
tibble_to_dist(.dist_tbl, .col_name = "ses", .matrix = F)
}
\arguments{
\item{.dist_tbl}{tibble, data.frame}
\item{.col_name}{column name.}... |
library(IsoplotR)
### Name: radialplot
### Title: Visualise heteroscedastic data on a radial plot
### Aliases: radialplot radialplot.default radialplot.fissiontracks
### radialplot.UPb radialplot.PbPb radialplot.ArAr radialplot.KCa
### radialplot.UThHe radialplot.ReOs radialplot.SmNd radialplot.RbSr
### radialp... | /data/genthat_extracted_code/IsoplotR/examples/radialplot.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 460 | r | library(IsoplotR)
### Name: radialplot
### Title: Visualise heteroscedastic data on a radial plot
### Aliases: radialplot radialplot.default radialplot.fissiontracks
### radialplot.UPb radialplot.PbPb radialplot.ArAr radialplot.KCa
### radialplot.UThHe radialplot.ReOs radialplot.SmNd radialplot.RbSr
### radialp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query_reader.R
\docType{class}
\name{QueryReader}
\alias{QueryReader}
\title{QueryReader}
\format{
An \code{R6Class} generator object
}
\description{
QueryReader Class
}
\section{Public fields}{
\if{html}{\out{<div class="r6-fields">}}
\descr... | /man/QueryReader.Rd | no_license | jfontestad/tldbclr | R | false | true | 2,893 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query_reader.R
\docType{class}
\name{QueryReader}
\alias{QueryReader}
\title{QueryReader}
\format{
An \code{R6Class} generator object
}
\description{
QueryReader Class
}
\section{Public fields}{
\if{html}{\out{<div class="r6-fields">}}
\descr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dhist.R
\name{dhist_std}
\alias{dhist_std}
\title{Calculate standard deviation of a discrete histogram}
\usage{
dhist_std(dhist)
}
\arguments{
\item{dhist}{A discrete histogram as a \code{dhist} object}
}
\value{
Standard deviation of histogr... | /man/dhist_std.Rd | permissive | alan-turing-institute/network-comparison | R | false | true | 572 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dhist.R
\name{dhist_std}
\alias{dhist_std}
\title{Calculate standard deviation of a discrete histogram}
\usage{
dhist_std(dhist)
}
\arguments{
\item{dhist}{A discrete histogram as a \code{dhist} object}
}
\value{
Standard deviation of histogr... |
/plot2.R | no_license | mazhenkai/ExData_Plotting1 | R | false | false | 737 | r | ||
#'
#' A data frame of ballpark IDs
#'
#' This function returns a two-column data frame of ballpark IDs
#' along with current stadium name
#'
#' @export
#'
#' @examples getParkIDs()
#'
getParkIDs <- function() {
u <- "http://www.retrosheet.org/parkcode.txt"
nm <- scan(u, nlines = 1L, nmax = 2L, what = "", sep =... | /R/getParkIDs.R | no_license | rmscriven/retrosheet | R | false | false | 604 | r | #'
#' A data frame of ballpark IDs
#'
#' This function returns a two-column data frame of ballpark IDs
#' along with current stadium name
#'
#' @export
#'
#' @examples getParkIDs()
#'
getParkIDs <- function() {
u <- "http://www.retrosheet.org/parkcode.txt"
nm <- scan(u, nlines = 1L, nmax = 2L, what = "", sep =... |
################################################################################
## Lab 3A
################################################################################
load(url("http://www.openintro.org/stat/data/ames.RData"))
area <- ames$Gr.Liv.Area
price <- ames$SalePrice
summary(area)
hist(area)
## Question 1... | /unit3-lab/unit3-lab3.R | no_license | kach4/coursera-statistics-002 | R | false | false | 5,889 | r | ################################################################################
## Lab 3A
################################################################################
load(url("http://www.openintro.org/stat/data/ames.RData"))
area <- ames$Gr.Liv.Area
price <- ames$SalePrice
summary(area)
hist(area)
## Question 1... |
% Generated by roxygen2 (4.1.0.9001): do not edit by hand
% Please edit documentation in R/gwidgets-methods.R
\name{addHandlerBlur}
\alias{addHandlerBlur}
\title{Assign handler to blur (lose focus) event}
\usage{
addHandlerBlur(x, ...)
}
\arguments{
\item{x}{the object}
\item{...}{Used to pass through \code{handler}, ... | /man/addHandlerBlur.Rd | no_license | tokareff/gWidgetsWWW2 | R | false | false | 644 | rd | % Generated by roxygen2 (4.1.0.9001): do not edit by hand
% Please edit documentation in R/gwidgets-methods.R
\name{addHandlerBlur}
\alias{addHandlerBlur}
\title{Assign handler to blur (lose focus) event}
\usage{
addHandlerBlur(x, ...)
}
\arguments{
\item{x}{the object}
\item{...}{Used to pass through \code{handler}, ... |
computer_snake <- function(how_played = "simple"
, rows = 10
, columns = 10
, model = NULL
, do_plot = FALSE
, do_print = FALSE
) {
#Formula for neural_net
... | /computer_snake.R | no_license | JonathanLieberman/snake_ai | R | false | false | 4,455 | r | computer_snake <- function(how_played = "simple"
, rows = 10
, columns = 10
, model = NULL
, do_plot = FALSE
, do_print = FALSE
) {
#Formula for neural_net
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clusterluts.R
\name{color.shades}
\alias{color.shades}
\title{create color shades}
\usage{
color.shades(
reps,
col = col.fun(length(reps)),
scale = ifelse(direction == "bright", 0.7, 0.5),
gscale = TRUE,
direction = c("all", "bright... | /man/color.shades.Rd | no_license | bennop/clusterLUTs | R | false | true | 1,839 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clusterluts.R
\name{color.shades}
\alias{color.shades}
\title{create color shades}
\usage{
color.shades(
reps,
col = col.fun(length(reps)),
scale = ifelse(direction == "bright", 0.7, 0.5),
gscale = TRUE,
direction = c("all", "bright... |
# Libraries ####
library(easypackages)
library(tidyverse)
libraries("dlookr","pastecs","ggbeeswarm","ggthemes","glmnet")
theme_set(theme_minimal())
# Descriptive Statistics ####
numeric.descriptives.training.set <- training.set %>%
select(Age, `Household Size`) %>%
describe() %>%
select(variable,mean,sd,se_mean... | /Scripts/Analysis.R | no_license | moloscripts/FIIA | R | false | false | 8,728 | r | # Libraries ####
library(easypackages)
library(tidyverse)
libraries("dlookr","pastecs","ggbeeswarm","ggthemes","glmnet")
theme_set(theme_minimal())
# Descriptive Statistics ####
numeric.descriptives.training.set <- training.set %>%
select(Age, `Household Size`) %>%
describe() %>%
select(variable,mean,sd,se_mean... |
#' @title Merge Terms
#'
#' @description Function to merge terms within a dataframe and prevent redundancy in the analysis.
#' For example many users may refer to the same entity in multiple different ways:
#' President Trump, The U.S. President, POTUS, Trump, President Donald Trump, Donald Trump, etc.
#' While e... | /R/merge_terms.R | no_license | sarikayamehmet/saotd | R | false | false | 1,284 | r |
#' @title Merge Terms
#'
#' @description Function to merge terms within a dataframe and prevent redundancy in the analysis.
#' For example many users may refer to the same entity in multiple different ways:
#' President Trump, The U.S. President, POTUS, Trump, President Donald Trump, Donald Trump, etc.
#' While e... |
#' @export
saveDB <- function(tables=c("INSTRUMENT","OHLCV"), path=getOption("DBpath"), envir=.GlobalEnv) {
for(table.name in tables) {
file=file.path(path, paste(table.name, ".rds", sep=""))
saveRDS(get(table.name, envir=envir), file)
message("Saved ", table.name, " successfully to ", path)
}
}
#' Ups... | /R/datagery.update.R | no_license | Karagul/strategery | R | false | false | 3,375 | r | #' @export
saveDB <- function(tables=c("INSTRUMENT","OHLCV"), path=getOption("DBpath"), envir=.GlobalEnv) {
for(table.name in tables) {
file=file.path(path, paste(table.name, ".rds", sep=""))
saveRDS(get(table.name, envir=envir), file)
message("Saved ", table.name, " successfully to ", path)
}
}
#' Ups... |
testlist <- list(n = -248975006L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) | /breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609962383-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 98 | r | testlist <- list(n = -248975006L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filtering.R
\name{two_pass_stats_filter}
\alias{two_pass_stats_filter}
\title{Forward and reverse pass filter to correct phase shift introduced by one-pass
filter. Uses stats::filter to do each filtering pass. Closely based on
signal::filtf... | /man/two_pass_stats_filter.Rd | no_license | reichlab/kcde | R | false | true | 2,556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filtering.R
\name{two_pass_stats_filter}
\alias{two_pass_stats_filter}
\title{Forward and reverse pass filter to correct phase shift introduced by one-pass
filter. Uses stats::filter to do each filtering pass. Closely based on
signal::filtf... |
\name{GenometriCorrResult-class}
\Rdversion{1.1}
\docType{class}
\alias{GenometriCorrResult-class}
\alias{show,GenometriCorrResult-method}
\alias{graphical.report,GenometriCorrResult-method}
\alias{graphical.report}
\alias{visualize,GenometriCorrResult-method}
\alias{visualize}
\title{The class contains the results of... | /man/GenometriCorrResult-class.Rd | no_license | zhuravlka/GenometriCorr | R | false | false | 5,021 | rd | \name{GenometriCorrResult-class}
\Rdversion{1.1}
\docType{class}
\alias{GenometriCorrResult-class}
\alias{show,GenometriCorrResult-method}
\alias{graphical.report,GenometriCorrResult-method}
\alias{graphical.report}
\alias{visualize,GenometriCorrResult-method}
\alias{visualize}
\title{The class contains the results of... |
modelInfo <- list(label = "Generalized Additive Model using LOESS",
library = "gam",
loop = NULL,
type = c('Regression', 'Classification'),
parameters = data.frame(parameter = c('span', 'degree'),
class = c... | /models/files/gamLoess.R | no_license | JackStat/caret | R | false | false | 5,570 | r | modelInfo <- list(label = "Generalized Additive Model using LOESS",
library = "gam",
loop = NULL,
type = c('Regression', 'Classification'),
parameters = data.frame(parameter = c('span', 'degree'),
class = c... |
## make input -----------------------------------------------------------------------------------
.makeInput <- function(meripp,
tx_genes,
motif,
bamIp,
extend = 200,
min_reads = 5) {
... | /getinputFun.R | no_license | lazywolf007/Deepm6A | R | false | false | 3,365 | r |
## make input -----------------------------------------------------------------------------------
.makeInput <- function(meripp,
tx_genes,
motif,
bamIp,
extend = 200,
min_reads = 5) {
... |
source("FrontMatter.R")
################
## Chapter 4 ##
################
plotDIRch4 <- paste(plotDIR, "chapter4","figures", sep="/")
y <- rnorm(20, 0.2, 1)
n <- length (y)
y.bar <- mean(y)
se <- sd(y)/sqrt(n)
int.50 <- y.bar + qt(c(0.25, 0.75), df=n-1)*se
int.95 <- y.bar + qt(c(.025, .975), ... | /R/Chapter4.R | no_license | songsqian/eesR | R | false | false | 28,317 | r | source("FrontMatter.R")
################
## Chapter 4 ##
################
plotDIRch4 <- paste(plotDIR, "chapter4","figures", sep="/")
y <- rnorm(20, 0.2, 1)
n <- length (y)
y.bar <- mean(y)
se <- sd(y)/sqrt(n)
int.50 <- y.bar + qt(c(0.25, 0.75), df=n-1)*se
int.95 <- y.bar + qt(c(.025, .975), ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/70adhoc.005estimable.model.api.R
\name{specialize.estimable.units.estimable.model}
\alias{specialize.estimable.units.estimable.model}
\title{specialize \code{estimable.unit} into simpler one}
\usage{
specialize.estimable.units.estimable.model... | /symbolicR/man/specialize.estimable.units.estimable.model.Rd | no_license | isabella232/symbolicR | R | false | true | 896 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/70adhoc.005estimable.model.api.R
\name{specialize.estimable.units.estimable.model}
\alias{specialize.estimable.units.estimable.model}
\title{specialize \code{estimable.unit} into simpler one}
\usage{
specialize.estimable.units.estimable.model... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.