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 |
|---|---|---|---|---|---|---|---|---|---|
\name{compare.chronograms}
\alias{compare.chronograms}
\title{Compares to chronograms with precisely matching nodes in a visual manner}
\usage{
compare.chronograms(t1, t2, ...)
}
\arguments{
\item{t1}{object of class \code{"phylo"}.}
\item{t2}{object of class \code{"phylo"} that matches \code{t1} precisely in topolog... | /man/compare.chronograms.Rd | no_license | olmen/phytools | R | false | false | 876 | rd | \name{compare.chronograms}
\alias{compare.chronograms}
\title{Compares to chronograms with precisely matching nodes in a visual manner}
\usage{
compare.chronograms(t1, t2, ...)
}
\arguments{
\item{t1}{object of class \code{"phylo"}.}
\item{t2}{object of class \code{"phylo"} that matches \code{t1} precisely in topolog... |
context("Feedforward")
test_that("Single-layer feedforward works", {
n.minibatch = 5L
l = createLayer(
n.inputs = 4L,
n.outputs = 7L,
n.minibatch = n.minibatch,
n.importance.samples = 3L,
nonlinearity = sigmoid.nonlinearity(),
prior = gaussian.prior(mean = 0, sd = 1),
updater = sgd.u... | /tests/testthat/test-feedforward.R | no_license | davharris/mistnet | R | false | false | 2,816 | r | context("Feedforward")
test_that("Single-layer feedforward works", {
n.minibatch = 5L
l = createLayer(
n.inputs = 4L,
n.outputs = 7L,
n.minibatch = n.minibatch,
n.importance.samples = 3L,
nonlinearity = sigmoid.nonlinearity(),
prior = gaussian.prior(mean = 0, sd = 1),
updater = sgd.u... |
##############################################################################################################
#
#
# Program to extract Crop prudiction index (CPPI) fromm the GSSURGO data base
#
# State: INDIANA
#
#
# Felipe Montes 2020/04/10
#
#
#
#
#######################################################... | /INDIANA_CCPI.R | no_license | FelipeMonts/INDIANA_CCPI | R | false | false | 6,936 | r | ##############################################################################################################
#
#
# Program to extract Crop prudiction index (CPPI) fromm the GSSURGO data base
#
# State: INDIANA
#
#
# Felipe Montes 2020/04/10
#
#
#
#
#######################################################... |
# Author : Ahmad Fairuz Ali
# date : 14 February 2017
# Description:
#
# dalam case ini, kita akan check taburan masalah kita ini.
#
#
# Let's run the code
# Select all below and press [CTRL] + [ENTER]
library(dplyr)
library(ggplot2)
j <- read.csv("C:/XXXXXXX/Training_R_GIA/data_managed_acc_fulfilmen... | /use_case_6_check_distribution.R | no_license | dakmatt/R_usecase | R | false | false | 755 | r | # Author : Ahmad Fairuz Ali
# date : 14 February 2017
# Description:
#
# dalam case ini, kita akan check taburan masalah kita ini.
#
#
# Let's run the code
# Select all below and press [CTRL] + [ENTER]
library(dplyr)
library(ggplot2)
j <- read.csv("C:/XXXXXXX/Training_R_GIA/data_managed_acc_fulfilmen... |
proposePointsConstantLiar = function(models, par.set, control, opt.path, iter) {
model = models[[1L]]
npoints = control$propose.points
liar = control$multipoint.cl.lie
# copy control, and propose 1 point each
control2 = control
control2$propose.points = 1L
# copy opt.path to store lies
opt.path2 = deepC... | /R/proposePointsConstantLiar.R | no_license | mapleyustat/mlrMBO | R | false | false | 873 | r | proposePointsConstantLiar = function(models, par.set, control, opt.path, iter) {
model = models[[1L]]
npoints = control$propose.points
liar = control$multipoint.cl.lie
# copy control, and propose 1 point each
control2 = control
control2$propose.points = 1L
# copy opt.path to store lies
opt.path2 = deepC... |
generateUnitTestFile <- function(filename_s_1, content_s,
overwrite_b_1 = FALSE,
verbose_b_1 = TRUE) {
applyFilenameConvention <- function() {
desired_suffix <- '.R'
desired_prefix <- 'test_'
bn <- basename(filename_s_1)
dn <- dirname(... | /R/generateUnitTestFile.R | no_license | cran/wyz.code.testthat | R | false | false | 953 | r | generateUnitTestFile <- function(filename_s_1, content_s,
overwrite_b_1 = FALSE,
verbose_b_1 = TRUE) {
applyFilenameConvention <- function() {
desired_suffix <- '.R'
desired_prefix <- 'test_'
bn <- basename(filename_s_1)
dn <- dirname(... |
# Description: Plot condition pyramids for non-fatal paper
require(plyr)
require(ggplot2)
require(data.table)
args <- commandArgs(trailingOnly = TRUE)
como.version <- if (is.na(args[1])) 22 else args[1]
dn.version <- if (is.na(args[2])) 42 else args[2]
location <- if (is.na(args[3])) "USA" else args[3]
out_directory... | /como/condition_counts/figure_conditions_per_person.r | no_license | zhusui/ihme-modeling | R | false | false | 4,755 | r | # Description: Plot condition pyramids for non-fatal paper
require(plyr)
require(ggplot2)
require(data.table)
args <- commandArgs(trailingOnly = TRUE)
como.version <- if (is.na(args[1])) 22 else args[1]
dn.version <- if (is.na(args[2])) 42 else args[2]
location <- if (is.na(args[3])) "USA" else args[3]
out_directory... |
library(Boruta)
library(caret)
library(bestglm)
train <- read.csv("datos/train.csv")
test <- read.csv("datos/test.csv")
names(test)<-names(train[,-dim(train)[2]])
train<-train[,-1]
test<-test[,-1]
n.train <- nrow(train)
test$revenue <- 1
myData <- rbind(train, test)
rm(train, test)
#Tranform Time
myData$Open.Date ... | /Beat_The_BenchmarkV2.R | no_license | cjferba/Kaggle-Restaurant-Revenue-Prediction | R | false | false | 2,433 | r | library(Boruta)
library(caret)
library(bestglm)
train <- read.csv("datos/train.csv")
test <- read.csv("datos/test.csv")
names(test)<-names(train[,-dim(train)[2]])
train<-train[,-1]
test<-test[,-1]
n.train <- nrow(train)
test$revenue <- 1
myData <- rbind(train, test)
rm(train, test)
#Tranform Time
myData$Open.Date ... |
args<-commandArgs(trailingOnly = FALSE)
i<-read.csv(args[length(args)-1])
png(filename=args[length(args)], width=800)
options(scipen=20)
plot(NULL,xlim=c(0,length(i$waits)),ylim=c(0,ymax=max(diff(i$waits))*1.25),xaxs="i", yaxs="i", ylab="", xlab="", main="InnoDB Row Lock Waits",las=1,xaxt="n", type="h")
lines(diff(i$... | /bin/innodb_row_lock_waits.R | no_license | rlowe/stalk2graph | R | false | false | 425 | r | args<-commandArgs(trailingOnly = FALSE)
i<-read.csv(args[length(args)-1])
png(filename=args[length(args)], width=800)
options(scipen=20)
plot(NULL,xlim=c(0,length(i$waits)),ylim=c(0,ymax=max(diff(i$waits))*1.25),xaxs="i", yaxs="i", ylab="", xlab="", main="InnoDB Row Lock Waits",las=1,xaxt="n", type="h")
lines(diff(i$... |
# Assignment: ASSIGNMENT 0
# Name: Camacho, John
# Date: 2020-09-01
# Basics
## Add 8 and 5
8 + 5
## Subtract 6 from 22
22 - 6
## Multiply 6 by 7
6 * 7
## Add4 to 6 and divide the result by 2
(4+6) / 2
## Compute 5 modulo 2
5 %% 2
## Assign the value 82 to the variable x
## Print x
x <- 82
x
## Assign the val... | /assignments/assignment00/assignment_00_Camacho.John.R | permissive | jcam1219/dsc520 | R | false | false | 939 | r | # Assignment: ASSIGNMENT 0
# Name: Camacho, John
# Date: 2020-09-01
# Basics
## Add 8 and 5
8 + 5
## Subtract 6 from 22
22 - 6
## Multiply 6 by 7
6 * 7
## Add4 to 6 and divide the result by 2
(4+6) / 2
## Compute 5 modulo 2
5 %% 2
## Assign the value 82 to the variable x
## Print x
x <- 82
x
## Assign the val... |
#' Merge results from different chromosomes
#'
#' This function merges the results from running \link{analyzeChr} on several
#' chromosomes and assigns genomic states using \link{annotateRegions}. It
#' re-calculates the p-values and q-values using the pooled areas from the null
#' regions from all chromosomes. Once... | /R/mergeResults.R | no_license | cyang-2014/derfinder | R | false | false | 13,983 | r | #' Merge results from different chromosomes
#'
#' This function merges the results from running \link{analyzeChr} on several
#' chromosomes and assigns genomic states using \link{annotateRegions}. It
#' re-calculates the p-values and q-values using the pooled areas from the null
#' regions from all chromosomes. Once... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Hotel.R
\name{Hotel}
\alias{Hotel}
\title{Hotel}
\usage{
Hotel(id = NULL, priceRange = NULL, paymentAccepted = NULL,
openingHours = NULL, currenciesAccepted = NULL, branchOf = NULL,
starRating = NULL, petsAllowed = NULL, checkoutTime = NU... | /man/Hotel.Rd | no_license | cboettig/schemar | R | false | true | 11,293 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Hotel.R
\name{Hotel}
\alias{Hotel}
\title{Hotel}
\usage{
Hotel(id = NULL, priceRange = NULL, paymentAccepted = NULL,
openingHours = NULL, currenciesAccepted = NULL, branchOf = NULL,
starRating = NULL, petsAllowed = NULL, checkoutTime = NU... |
#' @title fun_name
#'
#' @description kolejna funkcja podmieniona
#'
#' @param param fun_name
#'
#'
#'
#' @export
ISOdate<- 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/ISOdate.R | no_license | granatb/RapeR | R | false | false | 669 | r |
#' @title fun_name
#'
#' @description kolejna funkcja podmieniona
#'
#' @param param fun_name
#'
#'
#'
#' @export
ISOdate<- 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",
... |
\name{make.jagsboralnullmodel}
\alias{make.jagsboralnullmodel}
\title{Write a text file containing an boral model for use into JAGS}
\description{This function is designed to write boral models with no latent variables i.e., so-called "null" models.}
\usage{make.jagsboralnullmodel(family, num.X = 0, num.traits = 0,... | /man/make.jagsboralnullmodel.Rd | no_license | mbedward/boral | R | false | false | 12,002 | rd | \name{make.jagsboralnullmodel}
\alias{make.jagsboralnullmodel}
\title{Write a text file containing an boral model for use into JAGS}
\description{This function is designed to write boral models with no latent variables i.e., so-called "null" models.}
\usage{make.jagsboralnullmodel(family, num.X = 0, num.traits = 0,... |
## Bonneau lab
## NYU - Center for Genomics and Systems Biology
# Call this script with a job config file as arguments
# Example call: Rscript inferelator.R jobs/dream4_cfg.R
library('Matrix')
rm(list=ls())
gc()
source('R_scripts/utils.R')
source('R_scripts/design_and_response.R')
source('R_scripts/priors.R')
sour... | /Inferelator_code/inferelator_ecoli_noisy_srnas_n5_r8.R | permissive | marioluisao/sRNA_networks | R | false | false | 12,296 | r | ## Bonneau lab
## NYU - Center for Genomics and Systems Biology
# Call this script with a job config file as arguments
# Example call: Rscript inferelator.R jobs/dream4_cfg.R
library('Matrix')
rm(list=ls())
gc()
source('R_scripts/utils.R')
source('R_scripts/design_and_response.R')
source('R_scripts/priors.R')
sour... |
library(R6)
Football_Generator <- R6Class(
"football",private = list(player_name=NA,player_club=NA,player_salary=NA),
public = list(setName=function(x){
private$player_name=x
},set_club=function(x){
private$player_club=x
},set_salary=function(x){
private$player_salary=x
})
)
obj <- Football_Genera... | /Assignment.R | no_license | Rudresh-sisode/R_File | R | false | false | 421 | r | library(R6)
Football_Generator <- R6Class(
"football",private = list(player_name=NA,player_club=NA,player_salary=NA),
public = list(setName=function(x){
private$player_name=x
},set_club=function(x){
private$player_club=x
},set_salary=function(x){
private$player_salary=x
})
)
obj <- Football_Genera... |
# Test suits for the examples in the documentation
context("pxweb_query")
test_that(desc="pxweb_query object",{
# CRAN seem to run tests in parallel, hence API tests cannot be run on CRAN.
skip_on_cran()
dims <- list(Alue = c("*"),
"Asuntokunnan koko" = c("*"),
Talotyyppi = c("S... | /tests/testthat/test-pxweb_query.R | no_license | jhuovari/pxweb | R | false | false | 10,375 | r | # Test suits for the examples in the documentation
context("pxweb_query")
test_that(desc="pxweb_query object",{
# CRAN seem to run tests in parallel, hence API tests cannot be run on CRAN.
skip_on_cran()
dims <- list(Alue = c("*"),
"Asuntokunnan koko" = c("*"),
Talotyyppi = c("S... |
require(spatialEco)
require(sp)
require(usedist)
require(rgeos)
require(raster)
require(spatstat)
require(igraph)
require(sf)
require(rgdal)
require(gdistance)
require(otuSummary)
require(gdata)
require(maptools)
require(tidyverse)
require(reshape2)
require(data.table)
#setwd("E:/LCP sensitivity test/ConnectivityHPC_in... | /Code/HPC_5000geospgyr60Rep1.R | no_license | ZacharyRobbins/TransferHPC | R | false | false | 14,782 | r | require(spatialEco)
require(sp)
require(usedist)
require(rgeos)
require(raster)
require(spatstat)
require(igraph)
require(sf)
require(rgdal)
require(gdistance)
require(otuSummary)
require(gdata)
require(maptools)
require(tidyverse)
require(reshape2)
require(data.table)
#setwd("E:/LCP sensitivity test/ConnectivityHPC_in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load.R
\name{get_folds}
\alias{get_folds}
\title{Get folds}
\usage{
get_folds(type = "disc")
}
\arguments{
\item{type}{character. The type of partitioning you want to load.}
}
\value{
A list with two entries \code{"background"} an... | /man/get_folds.Rd | permissive | cran/marinespeed | R | false | true | 2,538 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load.R
\name{get_folds}
\alias{get_folds}
\title{Get folds}
\usage{
get_folds(type = "disc")
}
\arguments{
\item{type}{character. The type of partitioning you want to load.}
}
\value{
A list with two entries \code{"background"} an... |
% Auto-generated: do not edit by hand
\name{htmlVideo}
\alias{htmlVideo}
\title{Video component}
\description{
Video is a wrapper for the <video> HTML5 element. For detailed attribute info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
}
\usage{
htmlVideo(children=NULL, id=NULL, n_clicks=NULL,... | /man/htmlVideo.Rd | permissive | o3cloud/dash-html-components | R | false | false | 4,936 | rd | % Auto-generated: do not edit by hand
\name{htmlVideo}
\alias{htmlVideo}
\title{Video component}
\description{
Video is a wrapper for the <video> HTML5 element. For detailed attribute info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
}
\usage{
htmlVideo(children=NULL, id=NULL, n_clicks=NULL,... |
# This function produces a 4-panel plot:
# Global Active Power | Voltage
# --------------------+----------------------
# Energy Sub Metering | Global Reactive Power
# The optional argument "save" determines whether the plot is
# output to the console or saved to 'plot4.png'
plot4 <- function(dataframe,save=TRUE){
... | /plot4.R | no_license | carlmitchell/ExData_Plotting1 | R | false | false | 1,078 | r | # This function produces a 4-panel plot:
# Global Active Power | Voltage
# --------------------+----------------------
# Energy Sub Metering | Global Reactive Power
# The optional argument "save" determines whether the plot is
# output to the console or saved to 'plot4.png'
plot4 <- function(dataframe,save=TRUE){
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/collectedfunctions.R
\name{se}
\alias{se}
\title{se Table function
internal use.}
\usage{
se(x)
}
\arguments{
\item{x}{data}
}
\description{
se Table function
internal use.
}
\examples{
se()
}
\keyword{se}
| /man/se.Rd | no_license | leonpheng/lhtool | R | false | true | 284 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/collectedfunctions.R
\name{se}
\alias{se}
\title{se Table function
internal use.}
\usage{
se(x)
}
\arguments{
\item{x}{data}
}
\description{
se Table function
internal use.
}
\examples{
se()
}
\keyword{se}
|
### Feature selection and prediction
### Prediction of TEA clusters and asthma severity based on expression of selected genes/hidden unit values
library(gplots)
library(RColorBrewer)
library(distances)
library(preprocessCore)
library(tsne)
library(randomForest)
library(caret)
library(pROC)
library(glmnet)
library(e107... | /analysis/2_predict_severity.R | no_license | gersteinlab/dAsthma | R | false | false | 6,994 | r | ### Feature selection and prediction
### Prediction of TEA clusters and asthma severity based on expression of selected genes/hidden unit values
library(gplots)
library(RColorBrewer)
library(distances)
library(preprocessCore)
library(tsne)
library(randomForest)
library(caret)
library(pROC)
library(glmnet)
library(e107... |
library(shiny)
shinyUI(
navbarPage("MyChildHeight",
tabPanel("Prediction"),
h1('You can predict your child height ', class="text-center text-info"),
h3("Who is Galton ?"),
p( a(href="http://en.wikipedia.org/wiki/Francis_Galton","Francis... | /ui.R | no_license | aamarcha/mychildheight | R | false | false | 1,949 | r | library(shiny)
shinyUI(
navbarPage("MyChildHeight",
tabPanel("Prediction"),
h1('You can predict your child height ', class="text-center text-info"),
h3("Who is Galton ?"),
p( a(href="http://en.wikipedia.org/wiki/Francis_Galton","Francis... |
set.seed(123456789)
N <- 20 # 샘플수 20개
X1 <- rnorm(N,1,2) # rormal distribution 평균 1 분산 2
X1
X2 <- rnorm(N,0,1)
X3 <- rnorm(N,-1,1)
Y <- 3+2*X1+0*X2+5*X3+rnorm(N,0,1)
# EDA - exploratory data analysis (탐색적 데이터 분석) 필요 산점도 보는게 제일 좋음
D <- data.frame(Y,X1,X2,X3) # 데이터프레임으로 연결함
D[1:10,]
pairs(D) #산점도 보여줌
cor(D) #상관계수를 알려줌
X ... | /R/2/test.R | no_license | rbrb0014/KIM_GYUJIN_base_files | R | false | false | 1,614 | r | set.seed(123456789)
N <- 20 # 샘플수 20개
X1 <- rnorm(N,1,2) # rormal distribution 평균 1 분산 2
X1
X2 <- rnorm(N,0,1)
X3 <- rnorm(N,-1,1)
Y <- 3+2*X1+0*X2+5*X3+rnorm(N,0,1)
# EDA - exploratory data analysis (탐색적 데이터 분석) 필요 산점도 보는게 제일 좋음
D <- data.frame(Y,X1,X2,X3) # 데이터프레임으로 연결함
D[1:10,]
pairs(D) #산점도 보여줌
cor(D) #상관계수를 알려줌
X ... |
Hello.World <- function(){
#The classic "Hello World" program.
#
# Args:
# none
#
# Returns:
# Prints to the console
print("Hello World")
}
myTtest <- function(){
#Reads ARCENE data from the UCI website, performs t-tests on each column, then orders them.
#
# Args:
# none
#
# Ret... | /Solutions.R | no_license | Drwhit/First-Test-Project | R | false | false | 2,755 | r | Hello.World <- function(){
#The classic "Hello World" program.
#
# Args:
# none
#
# Returns:
# Prints to the console
print("Hello World")
}
myTtest <- function(){
#Reads ARCENE data from the UCI website, performs t-tests on each column, then orders them.
#
# Args:
# none
#
# Ret... |
#install.packages("xlsx")
#install.packages("XML")
#install.packages("data.table")
library(psych)
library(xlsx)
library(XML)
library(data.table)
Sys.setlocale("LC_TIME", "English")
setwd("C:/Users/_C_DataScienceCertification/04_ExploratoryDataAnalysis/Project01")
file01 <- "household_power_consumption.txt"
rawData <-... | /plot2.R | no_license | andreobereigner/ExData_Plotting1 | R | false | false | 1,154 | r | #install.packages("xlsx")
#install.packages("XML")
#install.packages("data.table")
library(psych)
library(xlsx)
library(XML)
library(data.table)
Sys.setlocale("LC_TIME", "English")
setwd("C:/Users/_C_DataScienceCertification/04_ExploratoryDataAnalysis/Project01")
file01 <- "household_power_consumption.txt"
rawData <-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_data_functions.R
\name{get_all_registries}
\alias{get_all_registries}
\alias{get_births}
\alias{get_marriages}
\alias{get_deaths}
\title{Retrieves the number of registries in ARPEN website.}
\usage{
get_all_registries(
rd = NULL,
year... | /man/get_all_registries.Rd | permissive | samirarman/arpenr | R | false | true | 2,325 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_data_functions.R
\name{get_all_registries}
\alias{get_all_registries}
\alias{get_births}
\alias{get_marriages}
\alias{get_deaths}
\title{Retrieves the number of registries in ARPEN website.}
\usage{
get_all_registries(
rd = NULL,
year... |
# create composite indicators
library(tidyverse)
library(readxl)
library(janitor)
library(lubridate)
# read data
df_tool_data <- read_excel("inputs/UGA2103_FSP_Assessment_Raw_data_aug_final.xlsx")
create_composite_indicators_fsp <- function(input_df) {
settlement_regroup <- tibble::tribble(
~settlement, ~... | /R/composite_indicators.R | no_license | twesigye10/uga_reach_fsp_mapping | R | false | false | 6,750 | r | # create composite indicators
library(tidyverse)
library(readxl)
library(janitor)
library(lubridate)
# read data
df_tool_data <- read_excel("inputs/UGA2103_FSP_Assessment_Raw_data_aug_final.xlsx")
create_composite_indicators_fsp <- function(input_df) {
settlement_regroup <- tibble::tribble(
~settlement, ~... |
library(shinydashboard)
library(shinythemes)
library(leaflet)
library(rgdal)
library(shiny)
library(dplyr)
library(DT)
setwd("C:/Users/infrabyte/Documents/Github/Project-bedu/shiny-app/data")
shape2 <- readOGR("C:/Users/infrabyte/Documents/Github/Project-bedu/shiny-app/data2", "limite250_l")
shape2 <- spTr... | /shiny-app/shiny.r | no_license | XwilberX/BeduFase2-ProyectoR | R | false | false | 3,334 | r | library(shinydashboard)
library(shinythemes)
library(leaflet)
library(rgdal)
library(shiny)
library(dplyr)
library(DT)
setwd("C:/Users/infrabyte/Documents/Github/Project-bedu/shiny-app/data")
shape2 <- readOGR("C:/Users/infrabyte/Documents/Github/Project-bedu/shiny-app/data2", "limite250_l")
shape2 <- spTr... |
getSample2 = function(corps)
{
library(dplyr)
#分组随机抽取等量样本
#算DEA
stCorps_observations = corps %>%
filter(Would_be_ST == "YES") %>%
summarise(n = n())
stCorps_observations = as.numeric(stCorps_observations)
#set.seed(1234)
grouped_corps = corps %>%
group_by(Would_... | /creative/backup/getSample2.r | no_license | FayolChang/second_article | R | false | false | 704 | r | getSample2 = function(corps)
{
library(dplyr)
#分组随机抽取等量样本
#算DEA
stCorps_observations = corps %>%
filter(Would_be_ST == "YES") %>%
summarise(n = n())
stCorps_observations = as.numeric(stCorps_observations)
#set.seed(1234)
grouped_corps = corps %>%
group_by(Would_... |
##' Find time zone for a site
##'
##' @name site.lst
##' @title site.lst
##' @export
##' @param site.id
##' @param con
##' @author Betsy Cowdery
site.lst <- function(site.id, con) {
library(geonames)
time.zone <- db.query(paste("SELECT time_zone from SITES where id =", site.id), con)
if (!is.na(time.zone) && !i... | /modules/data.atmosphere/R/site.lst.R | permissive | Kah5/pecan | R | false | false | 702 | r | ##' Find time zone for a site
##'
##' @name site.lst
##' @title site.lst
##' @export
##' @param site.id
##' @param con
##' @author Betsy Cowdery
site.lst <- function(site.id, con) {
library(geonames)
time.zone <- db.query(paste("SELECT time_zone from SITES where id =", site.id), con)
if (!is.na(time.zone) && !i... |
testlist <- list(n = c(1107296000L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... | /gdalcubes/inst/testfiles/libgdalcubes_set_threads/libFuzzer_libgdalcubes_set_threads/libgdalcubes_set_threads_valgrind_files/1609875236-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 479 | r | testlist <- list(n = c(1107296000L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilityFunctions.R
\name{lookupTech1Parameter}
\alias{lookupTech1Parameter}
\title{Lookup the matrix element for a give parameter number}
\usage{
lookupTech1Parameter(tech1Output, paramNumber)
}
\arguments{
\item{tech1Output}{The obj... | /man/lookupTech1Parameter.Rd | no_license | wang-ze/MplusAutomation | R | false | true | 1,156 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilityFunctions.R
\name{lookupTech1Parameter}
\alias{lookupTech1Parameter}
\title{Lookup the matrix element for a give parameter number}
\usage{
lookupTech1Parameter(tech1Output, paramNumber)
}
\arguments{
\item{tech1Output}{The obj... |
# Code placed in this file fill be executed every time the
# lesson is started. Any variables created here will show up in
# the user's working directory and thus be accessible to them
# throughout the lesson.
# swirl_options(swirl_logging = TRUE)
.get_course_path <- function(){
tryCatch(swirl::... | /Session_18/initLesson.R | no_license | ahdvnd/cs112-swirl-courses | R | false | false | 549 | r | # Code placed in this file fill be executed every time the
# lesson is started. Any variables created here will show up in
# the user's working directory and thus be accessible to them
# throughout the lesson.
# swirl_options(swirl_logging = TRUE)
.get_course_path <- function(){
tryCatch(swirl::... |
\name{find_closed}
\alias{find_closed}
\title{find_closed}
\usage{
find_closed(period,
species,
site,
average = FALSE)
}
\description{
Retrieves estimate data from the specified closed capture analysis. This is a prerequisite for the \code{amalgamate} and the \code{synopsis} funct... | /man/find_closed.Rd | no_license | NathanWhitmore/GAOSrmark | R | false | false | 825 | rd | \name{find_closed}
\alias{find_closed}
\title{find_closed}
\usage{
find_closed(period,
species,
site,
average = FALSE)
}
\description{
Retrieves estimate data from the specified closed capture analysis. This is a prerequisite for the \code{amalgamate} and the \code{synopsis} funct... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shinySearchInLocalRepo.R
\name{shinySearchInLocalRepo}
\alias{shinySearchInLocalRepo}
\title{Shiny Based Live Search for an Artifact in a Repository Using Tags}
\usage{
shinySearchInLocalRepo(repoDir = NULL, host = "0.0.0.0")
}
\arguments{
\i... | /man/shinySearchInRepo.Rd | no_license | eliotmcintire/archivist | R | false | true | 3,151 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shinySearchInLocalRepo.R
\name{shinySearchInLocalRepo}
\alias{shinySearchInLocalRepo}
\title{Shiny Based Live Search for an Artifact in a Repository Using Tags}
\usage{
shinySearchInLocalRepo(repoDir = NULL, host = "0.0.0.0")
}
\arguments{
\i... |
\name{Joe.Markov.DATA.binom}
\alias{Joe.Markov.DATA.binom}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Generating Time Series Data Under a Copula-Based Markov Chain Model with the Joe Copula and Binomial Margin.
}
\description{
Time-series data are generated under a copula-based Markov... | /man/Joe.Markov.DATA.binom.Rd | no_license | cran/Copula.Markov | R | false | false | 1,432 | rd | \name{Joe.Markov.DATA.binom}
\alias{Joe.Markov.DATA.binom}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Generating Time Series Data Under a Copula-Based Markov Chain Model with the Joe Copula and Binomial Margin.
}
\description{
Time-series data are generated under a copula-based Markov... |
/Wolf-Pal.R | no_license | elijahedmondson/FNL | R | false | false | 6,135 | r | ||
florida.crashes = read.csv(file = 'florida_crashes.csv', header = T, sep = ',')
florida.crashes = florida.crashes[florida.crashes$Latitude > 0,]
plot(florida.crashes$Longitude, florida.crashes$Latitude)
nPoints = dim(florida.crashes)[1]
library(lubridate)
datetime = ymd_hms(florida.crashes$CollectionTime)
totalDays =... | /att_florida_collector/script.r | no_license | techtronics/road_accident_crawler | R | false | false | 1,499 | r | florida.crashes = read.csv(file = 'florida_crashes.csv', header = T, sep = ',')
florida.crashes = florida.crashes[florida.crashes$Latitude > 0,]
plot(florida.crashes$Longitude, florida.crashes$Latitude)
nPoints = dim(florida.crashes)[1]
library(lubridate)
datetime = ymd_hms(florida.crashes$CollectionTime)
totalDays =... |
testlist <- list(Rext = numeric(0), Rs = numeric(0), Z = numeric(0), alpha = numeric(0), atmp = c(1.1988711311556e-153, 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, 0, 0, 0, 0, 0, 0, 0, ... | /meteor/inst/testfiles/E_Penman/AFL_E_Penman/E_Penman_valgrind_files/1615918703-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,233 | r | testlist <- list(Rext = numeric(0), Rs = numeric(0), Z = numeric(0), alpha = numeric(0), atmp = c(1.1988711311556e-153, 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, 0, 0, 0, 0, 0, 0, 0, ... |
## ----module, echo=FALSE, results="asis"----------------------------------
Module <- "GGPlot2O"
cat(paste0("\\newcommand{\\Module}{", Module, "}"))
## ----setup, child="mycourse.Rnw"-----------------------------------------
## ----setup_options, include=FALSE----------------------------------------
library(knitr)
... | /hands-on-dsr/src/3_Data/GGPlot2O.R | no_license | hudsonchaves/diss-floss | R | false | false | 45,029 | r |
## ----module, echo=FALSE, results="asis"----------------------------------
Module <- "GGPlot2O"
cat(paste0("\\newcommand{\\Module}{", Module, "}"))
## ----setup, child="mycourse.Rnw"-----------------------------------------
## ----setup_options, include=FALSE----------------------------------------
library(knitr)
... |
### CmodelValues Reference class to access the modelValues objects
###
### New CModelValues object is created with
### "CModelValues$new(type, exisitingptr, cppTypeName)"
### If type provided, object is built around
### genSymbolTablefromModel(type)
##... | /packages/nimble/R/cppInterfaces_modelValues.R | no_license | peterasujan/nimble | R | false | false | 7,917 | r | ### CmodelValues Reference class to access the modelValues objects
###
### New CModelValues object is created with
### "CModelValues$new(type, exisitingptr, cppTypeName)"
### If type provided, object is built around
### genSymbolTablefromModel(type)
##... |
# Comparing means with the t-test
# Load data file about Google searches by state
google <- read.csv("google_correlate.csv", header = T)
names(google)
# independent 2-group t-test
t.test(google$nba ~ google$has_nba) | /R examples/R Simple Training/Example R 06_04.R | no_license | wouldyougo/wouldyougo.github.io | R | false | false | 217 | r | # Comparing means with the t-test
# Load data file about Google searches by state
google <- read.csv("google_correlate.csv", header = T)
names(google)
# independent 2-group t-test
t.test(google$nba ~ google$has_nba) |
#' Identify filename quirks for each year
#'
#' This function returns the filename quirks for each year from the CPC data set.
#' This function is not intended to be called directly.
#' @param yr the year for which data is being downloaded
#' @return returns a list of urlTag and fileTag
#' @export cpcGetFileNameQuirks
... | /R/cpcGetFileNameQuirks.R | permissive | SHENSun0610/cpcRain | R | false | false | 1,372 | r | #' Identify filename quirks for each year
#'
#' This function returns the filename quirks for each year from the CPC data set.
#' This function is not intended to be called directly.
#' @param yr the year for which data is being downloaded
#' @return returns a list of urlTag and fileTag
#' @export cpcGetFileNameQuirks
... |
# constants.R
rangeslider_height <- 50
country_color <- "#a65628" # brown
disease_color <- "#f781bf" # pink
all_color <- "#377eb8" # blue
female_color <- "#4daf4a" # green
male_color <- "#984ea3" # purple
map_color <- c("#e41a1c", "black") # red
spin... | /includes/constants.R | no_license | tdwils/infectious_diseases | R | false | false | 366 | r | # constants.R
rangeslider_height <- 50
country_color <- "#a65628" # brown
disease_color <- "#f781bf" # pink
all_color <- "#377eb8" # blue
female_color <- "#4daf4a" # green
male_color <- "#984ea3" # purple
map_color <- c("#e41a1c", "black") # red
spin... |
#' @importFrom ggplot2 aes
#' @importFrom ggplot2 facet_grid
#' @importFrom ggplot2 facet_wrap
#' @importFrom ggplot2 geom_col
#' @importFrom ggplot2 geom_tile
#' @importFrom ggplot2 geom_histogram
#' @importFrom ggplot2 ggplot
#' @importFrom ggplot2 labs
#' @importFrom ggplot2 scale_fill_gradient
#' @importFrom ggplot... | /R/plot_num.R | no_license | DavisVaughan/inspectdf | R | false | false | 7,573 | r | #' @importFrom ggplot2 aes
#' @importFrom ggplot2 facet_grid
#' @importFrom ggplot2 facet_wrap
#' @importFrom ggplot2 geom_col
#' @importFrom ggplot2 geom_tile
#' @importFrom ggplot2 geom_histogram
#' @importFrom ggplot2 ggplot
#' @importFrom ggplot2 labs
#' @importFrom ggplot2 scale_fill_gradient
#' @importFrom ggplot... |
#' Save a ggplot (or other grid object) with sensible defaults
#'
#' `ggsave()` is a convenient function for saving a plot. It defaults to
#' saving the last plot that you displayed, using the size of the current
#' graphics device. It also guesses the type of graphics device from the
#' extension.
#'
#' Note: F... | /R/save.R | no_license | cran/ggplot2 | R | false | false | 9,365 | r | #' Save a ggplot (or other grid object) with sensible defaults
#'
#' `ggsave()` is a convenient function for saving a plot. It defaults to
#' saving the last plot that you displayed, using the size of the current
#' graphics device. It also guesses the type of graphics device from the
#' extension.
#'
#' Note: F... |
\alias{gdkWindowGetGeometry}
\name{gdkWindowGetGeometry}
\title{gdkWindowGetGeometry}
\description{Any of the return location arguments to this function may be \code{NULL},
if you aren't interested in getting the value of that field.}
\usage{gdkWindowGetGeometry(object)}
\arguments{\item{\verb{object}}{a \code{\link{Gd... | /RGtk2/man/gdkWindowGetGeometry.Rd | no_license | lawremi/RGtk2 | R | false | false | 1,835 | rd | \alias{gdkWindowGetGeometry}
\name{gdkWindowGetGeometry}
\title{gdkWindowGetGeometry}
\description{Any of the return location arguments to this function may be \code{NULL},
if you aren't interested in getting the value of that field.}
\usage{gdkWindowGetGeometry(object)}
\arguments{\item{\verb{object}}{a \code{\link{Gd... |
#### Simulations with two students - fully crossing
rm(list=ls())
source("helper.R")
#### optimal policy for two students - INFO THEORY VERSION ----
mus <- c(.1,.3,.5,.7,.9)
nus <- c(.1,.2,.5,1,2,5)
teacher.mus <- c(.1,.2,.3,.4,.5,.6,.7,.8,.9)
teacher.nu <- 10
d <- data.frame()
for (mu in mus) {
for (nu in nus) {
... | /sims_oneteacher/two_students.R | no_license | mcfrank/teaching | R | false | false | 1,864 | r | #### Simulations with two students - fully crossing
rm(list=ls())
source("helper.R")
#### optimal policy for two students - INFO THEORY VERSION ----
mus <- c(.1,.3,.5,.7,.9)
nus <- c(.1,.2,.5,1,2,5)
teacher.mus <- c(.1,.2,.3,.4,.5,.6,.7,.8,.9)
teacher.nu <- 10
d <- data.frame()
for (mu in mus) {
for (nu in nus) {
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_377}
\alias{movie_377}
\title{The Island}
\format{
igraph object
}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0399201
}
\usage... | /man/movie_377.Rd | permissive | schochastics/networkdata | R | false | true | 1,003 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_377}
\alias{movie_377}
\title{The Island}
\format{
igraph object
}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0399201
}
\usage... |
setwd('')
library(streamMetabolizer)
#Load table of gages with start and end dates and alternate discharge gage stations
#if not the same as continuous DO site######
gage<- read.table("gage_dates.txt",header=TRUE,stringsAsFactors=FALSE)
gage<- gage[which(gage$DischargeGage!="NA"),]
gage$Site<-paste("0",gage$Site,sep... | /Get_StreamMetabolismParameters.R | no_license | marybecker/DO_Data | R | false | false | 3,841 | r | setwd('')
library(streamMetabolizer)
#Load table of gages with start and end dates and alternate discharge gage stations
#if not the same as continuous DO site######
gage<- read.table("gage_dates.txt",header=TRUE,stringsAsFactors=FALSE)
gage<- gage[which(gage$DischargeGage!="NA"),]
gage$Site<-paste("0",gage$Site,sep... |
#-----------------------------------------------------------------------------------------------
# Statistics Case Study
# To find consumer attributes and loan attributes that influence the tendency of default.
# Case study for solving Business problems using EDA
# Team: Fayiz Mayam Veettil, Deepak Aneja, Mer... | /Gramenar-case-study/Solution-LoanLeanding-V3.R | no_license | sureshballa/data-science-projects | R | false | false | 12,217 | r |
#-----------------------------------------------------------------------------------------------
# Statistics Case Study
# To find consumer attributes and loan attributes that influence the tendency of default.
# Case study for solving Business problems using EDA
# Team: Fayiz Mayam Veettil, Deepak Aneja, Mer... |
pros <- seq(0.4, 0.9, by=0.1)
rlist <- list()
for ( prob in pros ){
cfs <- c()
for ( i in seq(length(dataList)) ){
# get one user's data
oneu <- dataList[[i]]
# cal median time of pattern set
pstime <- (oneu$stime + oneu$etime)/2
if ( length(pstime) < 3 )
next
# get change point timest... | /R/statChangeCDF.R | permissive | happyjane/TPCA | R | false | false | 1,365 | r | pros <- seq(0.4, 0.9, by=0.1)
rlist <- list()
for ( prob in pros ){
cfs <- c()
for ( i in seq(length(dataList)) ){
# get one user's data
oneu <- dataList[[i]]
# cal median time of pattern set
pstime <- (oneu$stime + oneu$etime)/2
if ( length(pstime) < 3 )
next
# get change point timest... |
# Exercise 1: writing and executing functions
# Write a function `AddThree` that adds 3 to an input value
AddThree <- function(a) {
answer <- a + 3
return(answer)
}
# Create a variable `ten` by passing 7 to your `AddThree` function
AddThree(7)
# Write a function `FeetToMeters` that converts from feet to meters... | /exercise-1/exercise.R | permissive | ericarthurlee/m7-functions | R | false | false | 631 | r | # Exercise 1: writing and executing functions
# Write a function `AddThree` that adds 3 to an input value
AddThree <- function(a) {
answer <- a + 3
return(answer)
}
# Create a variable `ten` by passing 7 to your `AddThree` function
AddThree(7)
# Write a function `FeetToMeters` that converts from feet to meters... |
## Writen by Lucas R. Moreira
## Usage: Plots sliding windows Manhattan plots
library(data.table)
library(fastman)
library(windowscanr)
# Read results
PC1T <- fread("PC1T.rol_win") #function to read very large files
PC2T <- fread("PC2T.rol_win")
PC3T <- fread("PC3T.rol_win")
PC1P <- fread("PC1P.rol_win")
... | /ANGSD-asso_manhattan_plot.R | no_license | lucasrocmoreira/Moreira-Smith_SciAdv_2023 | R | false | false | 2,233 | r | ## Writen by Lucas R. Moreira
## Usage: Plots sliding windows Manhattan plots
library(data.table)
library(fastman)
library(windowscanr)
# Read results
PC1T <- fread("PC1T.rol_win") #function to read very large files
PC2T <- fread("PC2T.rol_win")
PC3T <- fread("PC3T.rol_win")
PC1P <- fread("PC1P.rol_win")
... |
library(RCurl)
x <- getURL("https://raw.githubusercontent.com/KushajveerSingh/ds_cup/main/processed_data/tr_bal.csv")
dat <- read.csv(text = x)
dat <- dat[,1:20]
# Scaling to 0 and 1
range01 <- function(x){(x-min(x))/(max(x)-min(x))}
df = apply(dat,2,range01)
# creating all combinations
Mycomb <- function(elements, s... | /Codes/featureSel.R | permissive | KushajveerSingh/ds_cup | R | false | false | 1,129 | r | library(RCurl)
x <- getURL("https://raw.githubusercontent.com/KushajveerSingh/ds_cup/main/processed_data/tr_bal.csv")
dat <- read.csv(text = x)
dat <- dat[,1:20]
# Scaling to 0 and 1
range01 <- function(x){(x-min(x))/(max(x)-min(x))}
df = apply(dat,2,range01)
# creating all combinations
Mycomb <- function(elements, s... |
# produce binary versions of all tables
# the tables in question:
rm(list = ls())
require(readr)
require(stringr)
require(plyr)
require(dplyr)
require(tidyr)
# accom
# car
# cob
# ecact
# eth (done)
# general health
# llti
# marital status
# nssec
# religion
# student pensioner
# tenure
# employed/not employed
... | /scripts/produce_two_category_versions_of_harmonised_tables.R | no_license | JonMinton/scotland_dissimilarity_tables | R | false | false | 15,094 | r | # produce binary versions of all tables
# the tables in question:
rm(list = ls())
require(readr)
require(stringr)
require(plyr)
require(dplyr)
require(tidyr)
# accom
# car
# cob
# ecact
# eth (done)
# general health
# llti
# marital status
# nssec
# religion
# student pensioner
# tenure
# employed/not employed
... |
# Title : plot_time_series_regression
# Objective : TODO
# Created by: Owner
# Created on: 2020/9/5
# URL : https://business-science.github.io/timetk/reference/plot_time_series_regression.html
# <ポイント>
# - 日付を含むデータフレームで簡単にggplot2ベースの時系列チャートを作成
# - ggplot2ベースなので追加的な操作も可能
# <構文>
# plot_time_series_regressio... | /library/timetk/function/plot/plot_time_series_regression.R | no_license | ssh352/r-timeseries | R | false | false | 1,344 | r | # Title : plot_time_series_regression
# Objective : TODO
# Created by: Owner
# Created on: 2020/9/5
# URL : https://business-science.github.io/timetk/reference/plot_time_series_regression.html
# <ポイント>
# - 日付を含むデータフレームで簡単にggplot2ベースの時系列チャートを作成
# - ggplot2ベースなので追加的な操作も可能
# <構文>
# plot_time_series_regressio... |
library(expss)
### Name: split_by
### Title: Splits data.frame into list of data.frames that can be analyzed
### separately
### Aliases: split_by split_separate split_off
### ** Examples
# example from base R 'split'
data(airquality)
airquality2 = airquality %>%
split_by(Month) %>%
compute({
Ozo... | /data/genthat_extracted_code/expss/examples/split_by.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,274 | r | library(expss)
### Name: split_by
### Title: Splits data.frame into list of data.frames that can be analyzed
### separately
### Aliases: split_by split_separate split_off
### ** Examples
# example from base R 'split'
data(airquality)
airquality2 = airquality %>%
split_by(Month) %>%
compute({
Ozo... |
# some stats on performance
# perf <- data.frame(n=1:100000, t=rep(0,100000))
# for(i in 1:100000) { init(i); x<- system.time(generate()); perf[i,]$t=x[[3]]}
init <- function(num=1000) {
library(testthat)
library(data.table)
library(mobster)
.C("init", as.integer(num), as.integer(10000), as.integer(9999))
... | /inst/tests/test_1.R | no_license | alexei-jiltsov/mobster | R | false | false | 22,482 | r |
# some stats on performance
# perf <- data.frame(n=1:100000, t=rep(0,100000))
# for(i in 1:100000) { init(i); x<- system.time(generate()); perf[i,]$t=x[[3]]}
init <- function(num=1000) {
library(testthat)
library(data.table)
library(mobster)
.C("init", as.integer(num), as.integer(10000), as.integer(9999))
... |
pacman::p_load(glmnet, hdi, Rmosek, RPtests)
actionGenerator <- function(X, n_g0, n_g = n_g0, type = "perm"){
### Input:
# X : data matrix
# n_g0 : initial number of draws for G_0
# n_g : number of draws to output for G
# type : "perm" or "sign"
### Output:
# XG : list of p x n matrices which are X^... | /randomization_hdi.R | no_license | atechnicolorskye/rrHDI | R | false | false | 14,760 | r | pacman::p_load(glmnet, hdi, Rmosek, RPtests)
actionGenerator <- function(X, n_g0, n_g = n_g0, type = "perm"){
### Input:
# X : data matrix
# n_g0 : initial number of draws for G_0
# n_g : number of draws to output for G
# type : "perm" or "sign"
### Output:
# XG : list of p x n matrices which are X^... |
vals <- 0:50
probs.x <- dnbinom(vals,3,0.5)
probs.y <- dnbinom(vals,3,0.2)
var.x <- sum(vals^2 * probs.x) - sum(vals * probs.x)^2; var.x
var.y <- sum(vals^2 * probs.y) - sum(vals * probs.y)^2; var.y
# better approximation using more terms:
vals <- 0:500
probs.x <- dnbinom(vals,3,0.5)
probs.y <- dnbinom(vals,3,0.2)
var... | /inst/snippet/negbinomial-var.R | no_license | cran/fastR | R | false | false | 441 | r | vals <- 0:50
probs.x <- dnbinom(vals,3,0.5)
probs.y <- dnbinom(vals,3,0.2)
var.x <- sum(vals^2 * probs.x) - sum(vals * probs.x)^2; var.x
var.y <- sum(vals^2 * probs.y) - sum(vals * probs.y)^2; var.y
# better approximation using more terms:
vals <- 0:500
probs.x <- dnbinom(vals,3,0.5)
probs.y <- dnbinom(vals,3,0.2)
var... |
#fn = function (){
# m = 1300;
# n = 150;
# k = 1400;
# p=seq(0,1,0.025)
# y1=qhyper(p,m,n,k);
# y2=qhyper(p,m,n,k, F);
# y3=qhyper(log(p),m,n,k, T, T);
# y4=qhyper(log(p),m,n,k, F, T);
# df=data.frame(p,y1,y2,y3,y4)
# df
#}
# p y1 y2 y3 y4
1 0.000 1250 1300 NaN NaN
2 0.025 1251 1260 1251 1260
3 0.050 1252 12... | /src/lib/distributions/hypergeometric/__test__/fixture-generation/qhyper2.R | permissive | R-js/libRmath.js | R | false | false | 1,434 | r | #fn = function (){
# m = 1300;
# n = 150;
# k = 1400;
# p=seq(0,1,0.025)
# y1=qhyper(p,m,n,k);
# y2=qhyper(p,m,n,k, F);
# y3=qhyper(log(p),m,n,k, T, T);
# y4=qhyper(log(p),m,n,k, F, T);
# df=data.frame(p,y1,y2,y3,y4)
# df
#}
# p y1 y2 y3 y4
1 0.000 1250 1300 NaN NaN
2 0.025 1251 1260 1251 1260
3 0.050 1252 12... |
/Anova/Guías/Guía 2/Solucionario Guía 2.R | no_license | natjulian/RClasses | R | false | false | 5,286 | r | ||
# Exploratory data analysis - Week 1 Assignment - Plot 2
# Libraries used in this program:
library(dplyr)
library(chron)
# First of all we load the data and filter the dates 1/2/2007 and 2/2/2007.
pc_data<-read.table("household_power_consumption.txt",sep = ";",header = T)
pc_data<-filter(pc_data,Date=="1/2/2007" |... | /Plot2.R | no_license | jfl272/ExData_Plotting1 | R | false | false | 878 | r |
# Exploratory data analysis - Week 1 Assignment - Plot 2
# Libraries used in this program:
library(dplyr)
library(chron)
# First of all we load the data and filter the dates 1/2/2007 and 2/2/2007.
pc_data<-read.table("household_power_consumption.txt",sep = ";",header = T)
pc_data<-filter(pc_data,Date=="1/2/2007" |... |
plotA.part2 <- function(basal.file,sensit.file) {
basal.dir="/home/vadmin/basis/ins/m8/m8b2.2/insscan_dr.6/"
# simulation data basal
# basal.file="m8b2_rapi.6-insscan.txt"
# # simulation data , after fasting
# sensit.file="m8b2_rapi_sensitized-insscan.txt"
d=read.table(basal.file, header=T)
d0=read.table(sensit.f... | /fig3/A/plotA.part2.R | no_license | graham1034/Smith2012_insulin_signalling | R | false | false | 1,967 | r |
plotA.part2 <- function(basal.file,sensit.file) {
basal.dir="/home/vadmin/basis/ins/m8/m8b2.2/insscan_dr.6/"
# simulation data basal
# basal.file="m8b2_rapi.6-insscan.txt"
# # simulation data , after fasting
# sensit.file="m8b2_rapi_sensitized-insscan.txt"
d=read.table(basal.file, header=T)
d0=read.table(sensit.f... |
# load and recover data from disk
library(dplyr)
# load one expt data
loadResult = function(set.id,output.dir){
#root.path = getwd()
output.path = paste0(output.dir,"/",set.id)
result = readRDS(paste0(output.path,"/","result.Rds"))
result = addClass(result, "ExptRslt")
result
}
# load all expts data with t... | /R/libDataLoader.R | permissive | imtass/NLCtrl2 | R | false | false | 1,778 | r | # load and recover data from disk
library(dplyr)
# load one expt data
loadResult = function(set.id,output.dir){
#root.path = getwd()
output.path = paste0(output.dir,"/",set.id)
result = readRDS(paste0(output.path,"/","result.Rds"))
result = addClass(result, "ExptRslt")
result
}
# load all expts data with t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RVineTreePlot.R
\name{RVineTreePlot}
\alias{RVineTreePlot}
\title{Visualization of R-Vine Tree Structure}
\usage{
RVineTreePlot(
x,
tree = "ALL",
type = 0,
edge.labels = NULL,
legend.pos = "bottomleft",
interactive = FALSE,
...
... | /man/RVineTreePlot.Rd | no_license | goldenwalden/VineCopula | R | false | true | 1,723 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RVineTreePlot.R
\name{RVineTreePlot}
\alias{RVineTreePlot}
\title{Visualization of R-Vine Tree Structure}
\usage{
RVineTreePlot(
x,
tree = "ALL",
type = 0,
edge.labels = NULL,
legend.pos = "bottomleft",
interactive = FALSE,
...
... |
# Zainab Sherani
# INST 462 - Putting together all cleaned datasets and recode all variables
setwd("/Users/zainabsherani/Desktop/INST462 - Final Project/")
br11 <- read.csv("2011cleaned.csv")
br12 <- read.csv("2012cleaned.csv")
br13 <- read.csv("2013cleaned.csv")
br14 <- read.csv("2014cleaned.csv")
br15 <- read.csv("2... | /Master Dataset.R | no_license | pixel786/INST462FinalProject | R | false | false | 542 | r | # Zainab Sherani
# INST 462 - Putting together all cleaned datasets and recode all variables
setwd("/Users/zainabsherani/Desktop/INST462 - Final Project/")
br11 <- read.csv("2011cleaned.csv")
br12 <- read.csv("2012cleaned.csv")
br13 <- read.csv("2013cleaned.csv")
br14 <- read.csv("2014cleaned.csv")
br15 <- read.csv("2... |
# Download and unzip the data to c3data folder
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file (fileUrl, destfile = "c3data.zip")
unzip ("c3data.zip", exdir ="c3data")
# Read the data and variables info into R, and add column names
library(dplyr)
fe... | /run_analysis.R | no_license | tiaotiaoma/C3CourseProject | R | false | false | 2,210 | r | # Download and unzip the data to c3data folder
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file (fileUrl, destfile = "c3data.zip")
unzip ("c3data.zip", exdir ="c3data")
# Read the data and variables info into R, and add column names
library(dplyr)
fe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runApp.R
\name{runApp}
\alias{runApp}
\title{Run the Shiny Application}
\usage{
runApp()
}
\description{
Run the Shiny Application
}
| /man/runApp.Rd | permissive | w4356y/BioAnalyst | R | false | true | 211 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runApp.R
\name{runApp}
\alias{runApp}
\title{Run the Shiny Application}
\usage{
runApp()
}
\description{
Run the Shiny Application
}
|
'''
What is a factor and why would you use it? (3)
There are two types of categorical variables: a nominal categorical variable and an ordinal categorical variable.
A nominal variable is a categorical variable without an implied order. This means that it is impossible to say that 'one is worth more than the other'. Fo... | /R-programming-track/Introduction-to-R/4-Factors/3-What's-a-factor-and-why-would-you-use-it?-(3).R | no_license | toninorsk/DataCamp | R | false | false | 1,393 | r | '''
What is a factor and why would you use it? (3)
There are two types of categorical variables: a nominal categorical variable and an ordinal categorical variable.
A nominal variable is a categorical variable without an implied order. This means that it is impossible to say that 'one is worth more than the other'. Fo... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
set <- function(y) {
x <<- y
a <<- NULL
}
get <- function() x
setinverse <- function(in... | /cachematrix.R | no_license | asmithHPE/ProgrammingAssignment2 | R | false | false | 867 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
set <- function(y) {
x <<- y
a <<- NULL
}
get <- function() x
setinverse <- function(in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats.R
\name{summary.fastai.learner.Learner}
\alias{summary.fastai.learner.Learner}
\title{Summary}
\usage{
\method{summary}{fastai.learner.Learner}(object, ...)
}
\arguments{
\item{object}{model}
\item{...}{additional arguments to pass}
}
... | /man/summary.fastai.learner.Learner.Rd | permissive | Cdk29/fastai | R | false | true | 403 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats.R
\name{summary.fastai.learner.Learner}
\alias{summary.fastai.learner.Learner}
\title{Summary}
\usage{
\method{summary}{fastai.learner.Learner}(object, ...)
}
\arguments{
\item{object}{model}
\item{...}{additional arguments to pass}
}
... |
\name{anno_density}
\alias{anno_density}
\title{
Using kernel density as annotation
}
\description{
Using kernel density as annotation
}
\usage{
anno_density(x, which = c("column", "row"), gp = gpar(fill = "#CCCCCC"),
type = c("lines", "violin", "heatmap"), ...)
}
\arguments{
\item{x}{a matrix or a list.... | /man/anno_density.rd | no_license | mahendradivya/ComplexHeatmap | R | false | false | 1,213 | rd | \name{anno_density}
\alias{anno_density}
\title{
Using kernel density as annotation
}
\description{
Using kernel density as annotation
}
\usage{
anno_density(x, which = c("column", "row"), gp = gpar(fill = "#CCCCCC"),
type = c("lines", "violin", "heatmap"), ...)
}
\arguments{
\item{x}{a matrix or a list.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/closure_table.R
\name{closure_table}
\alias{closure_table}
\title{Make a closure table from an adjacency list}
\usage{
closure_table(adj_list, parent_col = "parent", child_col = "child")
}
\description{
Make a closure table from an adjacency ... | /man/closure_table.Rd | no_license | jameelalsalam/nestedcats | R | false | true | 426 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/closure_table.R
\name{closure_table}
\alias{closure_table}
\title{Make a closure table from an adjacency list}
\usage{
closure_table(adj_list, parent_col = "parent", child_col = "child")
}
\description{
Make a closure table from an adjacency ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ohlc.R
\name{getOHLCSeriesForStocks}
\alias{getOHLCSeriesForStocks}
\title{This function retrieves all OHLC series for stocks in give portfolios.}
\usage{
getOHLCSeriesForStocks(
container,
containerType,
asof,
resources,
session,
... | /man/getOHLCSeriesForStocks.Rd | no_license | beatnaut/remaputils | R | false | true | 958 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ohlc.R
\name{getOHLCSeriesForStocks}
\alias{getOHLCSeriesForStocks}
\title{This function retrieves all OHLC series for stocks in give portfolios.}
\usage{
getOHLCSeriesForStocks(
container,
containerType,
asof,
resources,
session,
... |
#Load and unpack results
load("./Results/CI_results.Rdata")
coverage.prob <- results$coverage.prob
median.width <- results$median.width
rm(results)
params <- coverage.prob[,c("n", "g", "r")]
keep.cover <- c("Valid", "FMSC_naive", "FMSC_2step", "posFMSC_2step")
keep.width <- setdiff(keep.cover, "FMSC_naive")
coverage.... | /SimulationChooseIVs/CI_Rtables.R | no_license | fditraglia/fmsc | R | false | false | 1,539 | r | #Load and unpack results
load("./Results/CI_results.Rdata")
coverage.prob <- results$coverage.prob
median.width <- results$median.width
rm(results)
params <- coverage.prob[,c("n", "g", "r")]
keep.cover <- c("Valid", "FMSC_naive", "FMSC_2step", "posFMSC_2step")
keep.width <- setdiff(keep.cover, "FMSC_naive")
coverage.... |
# read data if not yet
if(!exists("hpc_2d")) {
source("read_hpc.r")
}
png("plot4.png", width = 480, height = 480)
# partition drawing space to 2 rows and 2 columns
par(mfrow = c(2, 2))
# plot at row 1, col 1
plot(hpc_2d_datetime, hpc_2d$Global_active_power, xlab = "", ylab = "Global Active Power", type = "l"... | /plot4.r | no_license | yzhang98/ExData_Plotting1 | R | false | false | 1,042 | r | # read data if not yet
if(!exists("hpc_2d")) {
source("read_hpc.r")
}
png("plot4.png", width = 480, height = 480)
# partition drawing space to 2 rows and 2 columns
par(mfrow = c(2, 2))
# plot at row 1, col 1
plot(hpc_2d_datetime, hpc_2d$Global_active_power, xlab = "", ylab = "Global Active Power", type = "l"... |
designlists_logistic <-
function(DM_kov,nvar,ordered_values,n_levels,n_s){
v <- lapply(1:nvar,function(j) 1:(n_levels[j]-1))
w <- lapply(1:nvar, function(j) rep(paste0("s",j),n_s[j]))
design_upper <- lapply(1:nvar, function(j){
design_matrix <- sapply(1:(n_levels[j]-1),function(k) { ifelse(DM_ko... | /R/designlists_logistic.R | no_license | cran/DIFtree | R | false | false | 667 | r | designlists_logistic <-
function(DM_kov,nvar,ordered_values,n_levels,n_s){
v <- lapply(1:nvar,function(j) 1:(n_levels[j]-1))
w <- lapply(1:nvar, function(j) rep(paste0("s",j),n_s[j]))
design_upper <- lapply(1:nvar, function(j){
design_matrix <- sapply(1:(n_levels[j]-1),function(k) { ifelse(DM_ko... |
#' Tile charts as bricks
#'
#' `geom_rect`, except bars look like LEGO bricks.
#'
#' Currently all 'ggplot2' extensions are for internal use only.
#'
#' @inheritParams ggplot2::geom_rect
#' @param label Character string to include as embossed text inside brick knobs. Maximum 6 characters.
#' @param label_scale Scal... | /R/geom-brick-rect.R | permissive | hivi0118/brickr | R | false | false | 10,681 | r | #' Tile charts as bricks
#'
#' `geom_rect`, except bars look like LEGO bricks.
#'
#' Currently all 'ggplot2' extensions are for internal use only.
#'
#' @inheritParams ggplot2::geom_rect
#' @param label Character string to include as embossed text inside brick knobs. Maximum 6 characters.
#' @param label_scale Scal... |
path <- "..."
setwd(path)
library(tidyverse)
df <- read_csv("all/questionary.csv")
dictor <- "2019.04.06_f_d06"
path <- paste0(path, "/", dictor)
df %>%
arrange(word) %>%
mutate(pair_id = as.character(pair_id),
pair_id = ifelse(nchar(pair_id) == 1, paste0("0", pair_id), pair_id),
file_name = p... | /renamer.R | no_license | agricolamz/2019_Abaza_stress_annotations | R | false | false | 660 | r | path <- "..."
setwd(path)
library(tidyverse)
df <- read_csv("all/questionary.csv")
dictor <- "2019.04.06_f_d06"
path <- paste0(path, "/", dictor)
df %>%
arrange(word) %>%
mutate(pair_id = as.character(pair_id),
pair_id = ifelse(nchar(pair_id) == 1, paste0("0", pair_id), pair_id),
file_name = p... |
##generic
checkConv <- function(mod, ...) {
UseMethod("checkConv", mod)
}
##default
checkConv.default <- function(mod, ...) {
stop("\nFunction not yet defined for this object class\n")
}
##betareg
checkConv.betareg <- function(mod, ...) {
if(mod$optim$convergence == 0) {
conv <- TRUE
} els... | /R/checkConv.R | no_license | cran/AICcmodavg | R | false | false | 4,697 | r | ##generic
checkConv <- function(mod, ...) {
UseMethod("checkConv", mod)
}
##default
checkConv.default <- function(mod, ...) {
stop("\nFunction not yet defined for this object class\n")
}
##betareg
checkConv.betareg <- function(mod, ...) {
if(mod$optim$convergence == 0) {
conv <- TRUE
} els... |
library(gplots)
library(RColorBrewer)
#genes_LCCA <- c("Icam1","Itgb2","Cx3cr1","Il1b","Ccl5","Vcam1","Olr1")
#genes_CRC <- c("Cxcl3","Dock8","Cxcl1","Ccl3","Ccl5","Zc3h12a","Cxcl2")
#genes_GC <- c("Cxcl3","Itgb2","Cxcl1","Il1b","Ccl3","Anxa1","Ccl5","Cxcl2")
#hdlup_cholsynth <- c("Sc5d","Lss","Cyp51","Fdps","... | /functional/mini_heatmap.R | no_license | dgt2109/bio-script | R | false | false | 4,352 | r | library(gplots)
library(RColorBrewer)
#genes_LCCA <- c("Icam1","Itgb2","Cx3cr1","Il1b","Ccl5","Vcam1","Olr1")
#genes_CRC <- c("Cxcl3","Dock8","Cxcl1","Ccl3","Ccl5","Zc3h12a","Cxcl2")
#genes_GC <- c("Cxcl3","Itgb2","Cxcl1","Il1b","Ccl3","Anxa1","Ccl5","Cxcl2")
#hdlup_cholsynth <- c("Sc5d","Lss","Cyp51","Fdps","... |
library(forecast)
library(ggplot2)
library(tidyverse)
library(dplyr)
library(fpp2)
#loading datasets and timeseries
data <- read.csv(file='./data/totais_diarios.csv')
y <- ts(data)
train <- window(y, start=1,end=730, frequency=7)
test <- window(y, start=731, end= , frequency=7)
length(train)
length(test)
#au... | /arimax.R | no_license | rubenmarques-dev/forecast_tese | R | false | false | 689 | r | library(forecast)
library(ggplot2)
library(tidyverse)
library(dplyr)
library(fpp2)
#loading datasets and timeseries
data <- read.csv(file='./data/totais_diarios.csv')
y <- ts(data)
train <- window(y, start=1,end=730, frequency=7)
test <- window(y, start=731, end= , frequency=7)
length(train)
length(test)
#au... |
\name{PhenoPlot}
\alias{PhenoPlot}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
A plotting function for phenological thresholds
}
\description{
This function uses data from a fitted phenological model, the extracted
metrics and plots them in an annotated graph.
}
\usage{
PhenoPlot(data, metr... | /man/PhenoPlot.Rd | no_license | cran/phenopix | R | false | false | 1,558 | rd | \name{PhenoPlot}
\alias{PhenoPlot}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
A plotting function for phenological thresholds
}
\description{
This function uses data from a fitted phenological model, the extracted
metrics and plots them in an annotated graph.
}
\usage{
PhenoPlot(data, metr... |
library(testthat)
library(EValue)
library(devtools)
###################### EVALUE: ANNALS PAPER EXAMPLES ######################
test_that("Annals case #1", {
expect_equal( 3.9 + sqrt( 3.9 * (3.9 - 1) ), evalues.RR( 3.9, 1.8, 8.7 )[2, "point"] )
expect_equal( 1.8 + sqrt( 1.8 * (1.8 - 1) ), evalues.RR( 3.9, 1.8, ... | /EValue/tests/testthat/testthat.R | no_license | JBarsotti/evalue | R | false | false | 21,640 | r | library(testthat)
library(EValue)
library(devtools)
###################### EVALUE: ANNALS PAPER EXAMPLES ######################
test_that("Annals case #1", {
expect_equal( 3.9 + sqrt( 3.9 * (3.9 - 1) ), evalues.RR( 3.9, 1.8, 8.7 )[2, "point"] )
expect_equal( 1.8 + sqrt( 1.8 * (1.8 - 1) ), evalues.RR( 3.9, 1.8, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/referencePoint2Polygon.R
\name{referencePoint2Polygon}
\alias{referencePoint2Polygon}
\title{Create a Rectangular Polygon Using Planar XY Coordinates}
\usage{
referencePoint2Polygon(
x = NULL,
id = NULL,
dateTime = NULL,
point.x = NUL... | /man/referencePoint2Polygon.Rd | no_license | lanzaslab/contact | R | false | true | 11,547 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/referencePoint2Polygon.R
\name{referencePoint2Polygon}
\alias{referencePoint2Polygon}
\title{Create a Rectangular Polygon Using Planar XY Coordinates}
\usage{
referencePoint2Polygon(
x = NULL,
id = NULL,
dateTime = NULL,
point.x = NUL... |
# Coercion functions that look through a node and its chain to find a node of the
# appropriate type.
as.parm.decl =
#
# Convert the node into a parm_decl by following its chain if possible
# but only locally, i.e as a child of the specified node.
#
function(x) {
orig = x
if(inherits(x, "GCC::Node::func... | /R/navigate.R | no_license | kashenfelter/RGCCTranslationUnit | R | false | false | 1,865 | r | # Coercion functions that look through a node and its chain to find a node of the
# appropriate type.
as.parm.decl =
#
# Convert the node into a parm_decl by following its chain if possible
# but only locally, i.e as a child of the specified node.
#
function(x) {
orig = x
if(inherits(x, "GCC::Node::func... |
find.FC <- function(mult,
stk.=stk,
F26tar=f.,
CATCH=CATCH,
f26=f26,
f01=f01){
#f26 <- ac(2:6)
#f01 <- ac(0:1)
#mult <- c(mult[1],mult[1],mult[2],mult[3])
# scale F
stk.@harvest[,,c('A',... | /NSAS/attic/stf/functions_fBsq/find.FC.r | no_license | ices-eg/wg_HAWG | R | false | false | 1,244 | r | find.FC <- function(mult,
stk.=stk,
F26tar=f.,
CATCH=CATCH,
f26=f26,
f01=f01){
#f26 <- ac(2:6)
#f01 <- ac(0:1)
#mult <- c(mult[1],mult[1],mult[2],mult[3])
# scale F
stk.@harvest[,,c('A',... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ELISAtools.R
\docType{package}
\name{ELISAtools-package}
\alias{ELISAtools}
\alias{ELISAtools-package}
\title{ELISA data analysis with batch correction}
\description{
An R package to run ELISA data analysis
with the ability to do batch corr... | /man/ELISAtools-package.Rd | no_license | cran/ELISAtools | R | false | true | 910 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ELISAtools.R
\docType{package}
\name{ELISAtools-package}
\alias{ELISAtools}
\alias{ELISAtools-package}
\title{ELISA data analysis with batch correction}
\description{
An R package to run ELISA data analysis
with the ability to do batch corr... |
## Put comments here that give an overall description of what your
## functions do
## Takes & Caches a matrix and prepares for the inversing with a list of functions
makeCacheMatrix <- function(x = matrix()) {
inverseMatrix <- NULL
set <- function(y) {
x <<- y
inverseMatrix <<- NULL
... | /cachematrix.R | no_license | yinz8821/ProgrammingAssignment2 | R | false | false | 1,004 | r | ## Put comments here that give an overall description of what your
## functions do
## Takes & Caches a matrix and prepares for the inversing with a list of functions
makeCacheMatrix <- function(x = matrix()) {
inverseMatrix <- NULL
set <- function(y) {
x <<- y
inverseMatrix <<- NULL
... |
##########################################
# Plasmode simulation
##########################################
### Outcome and exposure with high-dim covars (N = 331 covars)
# Generate formula for low dim and high-dim, Y5/A1 and Y/A
make.formula <- function(outVar = "Y", expVar = "A", ver = "FULL",
... | /REFINE2/20200803-Sims-Function.R | no_license | mengeks/drml-plasmode | R | false | false | 7,948 | r | ##########################################
# Plasmode simulation
##########################################
### Outcome and exposure with high-dim covars (N = 331 covars)
# Generate formula for low dim and high-dim, Y5/A1 and Y/A
make.formula <- function(outVar = "Y", expVar = "A", ver = "FULL",
... |
knitr::opts_chunk$set(comment = "#",
echo = FALSE,
## cache = TRUE,
tidy = FALSE,
fig.align = "center",
out.width = "60%",
fig.width = 6,
fig.height = 4,
... | /slides/setup_knitr_slides.R | permissive | felipebarletta/MA06A | R | false | false | 1,050 | r | knitr::opts_chunk$set(comment = "#",
echo = FALSE,
## cache = TRUE,
tidy = FALSE,
fig.align = "center",
out.width = "60%",
fig.width = 6,
fig.height = 4,
... |
plot3 <- function(directory=getwd(),filename="household_power_consumption.txt") {
# get file and directory
my_file <- paste(directory,filename,sep="/")
# read the first 5 rows to determine column classes
my_data <- read.table(my_file, header = TRUE,sep=";",nrows = 5,na.strings="?")
... | /plot3.R | no_license | gscrugli/ExData_Plotting1 | R | false | false | 1,732 | r | plot3 <- function(directory=getwd(),filename="household_power_consumption.txt") {
# get file and directory
my_file <- paste(directory,filename,sep="/")
# read the first 5 rows to determine column classes
my_data <- read.table(my_file, header = TRUE,sep=";",nrows = 5,na.strings="?")
... |
# Challenge 02 - "Sum of Several Numbers"
# 1 Point
# Challenge Description:
# Write a small program to find the sum of all the numbers in the input data.
# *NOTE* If a problem requires pre-defined input data it can be found as a .txt file
# in the root directory of this repo. You are free to use the input data in an... | /challenges/challenge_02.R | no_license | Ebj8/dss_coding_challenge | R | false | false | 737 | r | # Challenge 02 - "Sum of Several Numbers"
# 1 Point
# Challenge Description:
# Write a small program to find the sum of all the numbers in the input data.
# *NOTE* If a problem requires pre-defined input data it can be found as a .txt file
# in the root directory of this repo. You are free to use the input data in an... |
#!/applications/R/R-3.5.0/bin/Rscript
# author: Andy Tock
# contact: ajt200@cam.ac.uk
# date: 17.04.2020
# Perform hypergeometric tests to determine whether each ASY1, DMC1 or cM/Mb
# gene quantile is over-represented or under-represented for genes
# assigned to stable, middle, or dynamic homoeolog triad expression b... | /ASY1_CS/snakemake_ChIPseq/mapped/geneProfiles_subgenomes/quantiles/proportion_stable_dynamic_triads_in_gene_quantiles_hypergeometricTest.R | no_license | ajtock/wheat | R | false | false | 25,769 | r | #!/applications/R/R-3.5.0/bin/Rscript
# author: Andy Tock
# contact: ajt200@cam.ac.uk
# date: 17.04.2020
# Perform hypergeometric tests to determine whether each ASY1, DMC1 or cM/Mb
# gene quantile is over-represented or under-represented for genes
# assigned to stable, middle, or dynamic homoeolog triad expression b... |
setwd('~/DL-codes/R/') # Set Working Directory
R.Version()
install.packages('dplyr')
library(dplyr)
?dplyr
?rnorm()
getwd() # Get Working Directory
library(tidyverse) # Call the Tidyverse package
install.packages('tidyverse') # Install it, if it's not there
senado <- read_csv("senado.csv") # read a csv file
head(se... | /R/code.r | no_license | pibieta/ML-course | R | false | false | 1,447 | r | setwd('~/DL-codes/R/') # Set Working Directory
R.Version()
install.packages('dplyr')
library(dplyr)
?dplyr
?rnorm()
getwd() # Get Working Directory
library(tidyverse) # Call the Tidyverse package
install.packages('tidyverse') # Install it, if it's not there
senado <- read_csv("senado.csv") # read a csv file
head(se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_associate_address}
\alias{ec2_associate_address}
\title{Associates an Elastic IP address, or carrier IP address (for instances
that are in subnets in Wavelength Zones) with an instance or a network
interface}
\usage... | /cran/paws.compute/man/ec2_associate_address.Rd | permissive | sanchezvivi/paws | R | false | true | 4,979 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_associate_address}
\alias{ec2_associate_address}
\title{Associates an Elastic IP address, or carrier IP address (for instances
that are in subnets in Wavelength Zones) with an instance or a network
interface}
\usage... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.