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 |
|---|---|---|---|---|---|---|---|---|---|
#Selection of Compi??gne's data only
#JSON to CSV (to convert the string values to int values)
library(jsonlite)
data = fromJSON("/Users/julesvercoustre/Documents/UTC/TX/TX/data/dataset.json")
data = sapply(data,rbind)
head(data)
write.csv(data, "data/mobilite_compiegne.csv")
#-------------------------------
#Working ... | /functions/compy_data.R | no_license | julesvrct/TX | R | false | false | 2,139 | r | #Selection of Compi??gne's data only
#JSON to CSV (to convert the string values to int values)
library(jsonlite)
data = fromJSON("/Users/julesvercoustre/Documents/UTC/TX/TX/data/dataset.json")
data = sapply(data,rbind)
head(data)
write.csv(data, "data/mobilite_compiegne.csv")
#-------------------------------
#Working ... |
#!/usr/bin/env Rscript
library(dplyr)
library(magrittr)
library(ggplot2)
library(ggplot2bdc)
source('formatting.R')
cinvasion <- read.csv('../data/cooperator_invasion.csv.bz2')
cinvasion$Replicate <- as.factor(cinvasion$Replicate)
cinvasion$NicheConstructionFeedback <- factor(cinvasion$NicheConstructionFeedback,
... | /scripts/plot-cooperator_invasion.R | permissive | briandconnelly/nicheconstruct | R | false | false | 1,416 | r | #!/usr/bin/env Rscript
library(dplyr)
library(magrittr)
library(ggplot2)
library(ggplot2bdc)
source('formatting.R')
cinvasion <- read.csv('../data/cooperator_invasion.csv.bz2')
cinvasion$Replicate <- as.factor(cinvasion$Replicate)
cinvasion$NicheConstructionFeedback <- factor(cinvasion$NicheConstructionFeedback,
... |
########Aggregate Plotting Functions################
####TF Axis
bart_agg_plot_tf_axis=function(tf.const.mat,tfsize.vec,factor.vec){
par(mgp=c(1.8,.5,0),mar=c(3,3,3,2))
col.vec=c("orange","green","blue","red","black")
plot(1,type="n",xlim=c(min(tfsize.vec),max(tfsize.vec)+6),ylim=c(min(factor.vec),max(factor.vec... | /Code_Objects/agg_plots_fns.R | no_license | jbleich89/bart_gene | R | false | false | 3,166 | r | ########Aggregate Plotting Functions################
####TF Axis
bart_agg_plot_tf_axis=function(tf.const.mat,tfsize.vec,factor.vec){
par(mgp=c(1.8,.5,0),mar=c(3,3,3,2))
col.vec=c("orange","green","blue","red","black")
plot(1,type="n",xlim=c(min(tfsize.vec),max(tfsize.vec)+6),ylim=c(min(factor.vec),max(factor.vec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createG241C.R
\name{createG241C}
\alias{createG241C}
\title{Create G241C dataset from the SSL benchmarks}
\usage{
createG241C(file = getfilepath("g241c.rds"), write = TRUE, read = TRUE)
}
\arguments{
\item{file}{character; path/filename to wr... | /man/createG241C.Rd | no_license | jkrijthe/createdatasets | R | false | true | 584 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createG241C.R
\name{createG241C}
\alias{createG241C}
\title{Create G241C dataset from the SSL benchmarks}
\usage{
createG241C(file = getfilepath("g241c.rds"), write = TRUE, read = TRUE)
}
\arguments{
\item{file}{character; path/filename to wr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{response}
\alias{response}
\title{Response data}
\usage{
response(
date,
response,
include = "(resp|stable)|([cpm]r|sd)$",
default = NA,
no_confirm = "stable|sd",
progression = "prog|pd|relapse",
n_confirm = 1L,
... | /man/response.Rd | no_license | Huaichao2018/rawr | R | false | true | 4,060 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{response}
\alias{response}
\title{Response data}
\usage{
response(
date,
response,
include = "(resp|stable)|([cpm]r|sd)$",
default = NA,
no_confirm = "stable|sd",
progression = "prog|pd|relapse",
n_confirm = 1L,
... |
data = read.table("NORMAL")
data00 = read.table("ERGRAPHS",header=TRUE,row.names=1)
data01 = read.table("ERGRAPHS_WLF_0.1",header=TRUE,row.names=1)
data05 = read.table("ERGRAPHS_WLF_0.5",header=TRUE,row.names=1)
data00[,2] = data00[,2]/2
data01[,2] = data01[,2]/2
data05[,2] = data05[,2]/2
#data00 = data00[data00[,5] ... | /post-analysis-skripts/boxplots.R | permissive | Sawndip/epimem | R | false | false | 2,932 | r | data = read.table("NORMAL")
data00 = read.table("ERGRAPHS",header=TRUE,row.names=1)
data01 = read.table("ERGRAPHS_WLF_0.1",header=TRUE,row.names=1)
data05 = read.table("ERGRAPHS_WLF_0.5",header=TRUE,row.names=1)
data00[,2] = data00[,2]/2
data01[,2] = data01[,2]/2
data05[,2] = data05[,2]/2
#data00 = data00[data00[,5] ... |
library(spm12r)
### Name: spm12_contrast_query
### Title: Build contrasts query for SPM12 results
### Aliases: spm12_contrast_query spm12_contrast_query_list
### ** Examples
res = spm12_contrast_query(name = "condition1", weights = 1)
print(res)
contrasts = list(
list(name = "All Contrasts",
weights = Inf
... | /data/genthat_extracted_code/spm12r/examples/spm12_contrast_query.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 426 | r | library(spm12r)
### Name: spm12_contrast_query
### Title: Build contrasts query for SPM12 results
### Aliases: spm12_contrast_query spm12_contrast_query_list
### ** Examples
res = spm12_contrast_query(name = "condition1", weights = 1)
print(res)
contrasts = list(
list(name = "All Contrasts",
weights = Inf
... |
simulate_slippers = function(alpha, beta, delta, gamma, rewardprob, day){
#Inputs:
# ALPHA - learning rate constant
# BETA - noise parameter, the inverse temperature
# DELTA - Perseverence parameter
# GAMMA - slippage parameter - dictates how much an animal forgets between sessions
# REWARDPROB - matrix with... | /simulate_slippers.R | no_license | JeremyMetha/OP006 | R | false | false | 2,287 | r | simulate_slippers = function(alpha, beta, delta, gamma, rewardprob, day){
#Inputs:
# ALPHA - learning rate constant
# BETA - noise parameter, the inverse temperature
# DELTA - Perseverence parameter
# GAMMA - slippage parameter - dictates how much an animal forgets between sessions
# REWARDPROB - matrix with... |
library(CDLasso)
### Name: summary.l2.reg
### Title: Print all results of Cyclic Coordinate Descent for L2 Regression
### Aliases: summary.l2.reg
### ** Examples
set.seed(100)
n=500
p=2000
nz = c(1:5)
true.beta<-rep(0,p)
true.beta[nz] = c(1,1,1,1,1)
x=matrix(rnorm(n*p),p,n)
y = t(x) %*% true.beta
rownames(x)<-1:n... | /data/genthat_extracted_code/CDLasso/examples/summary.l2.reg.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 513 | r | library(CDLasso)
### Name: summary.l2.reg
### Title: Print all results of Cyclic Coordinate Descent for L2 Regression
### Aliases: summary.l2.reg
### ** Examples
set.seed(100)
n=500
p=2000
nz = c(1:5)
true.beta<-rep(0,p)
true.beta[nz] = c(1,1,1,1,1)
x=matrix(rnorm(n*p),p,n)
y = t(x) %*% true.beta
rownames(x)<-1:n... |
source("minos/transitions/utils.R")
require(nnet)
require(tidyverse)
get.educ.file <- function(source, year1, year2){
# get files for year 1 and year 2 respectively.
file_name <- get_US_file_names(source, year1, "_US_cohort.csv")
data <- get_US_data(file_name)
file_name2 <- get_US_file_names(source, year2, "_... | /minos/transitions/education/education_nnet.r | permissive | Leeds-MRG/Minos | R | false | false | 2,090 | r | source("minos/transitions/utils.R")
require(nnet)
require(tidyverse)
get.educ.file <- function(source, year1, year2){
# get files for year 1 and year 2 respectively.
file_name <- get_US_file_names(source, year1, "_US_cohort.csv")
data <- get_US_data(file_name)
file_name2 <- get_US_file_names(source, year2, "_... |
library(dplyr)
library(ggplot2)
library(lubridate)
library(data.table)
library(tidyr)
library(eeptools)
gobike <- fread("input/2017-fordgobike-tripdata.csv")
str(gobike)
head(gobike)
gobike$duration_sec <- as.numeric(gobike$duration_sec)
gobike$member_birth_year <- as.numeric(gobike$member_birth_year)
length(unique(g... | /gobike.R | no_license | raesi/gobike | R | false | false | 1,610 | r | library(dplyr)
library(ggplot2)
library(lubridate)
library(data.table)
library(tidyr)
library(eeptools)
gobike <- fread("input/2017-fordgobike-tripdata.csv")
str(gobike)
head(gobike)
gobike$duration_sec <- as.numeric(gobike$duration_sec)
gobike$member_birth_year <- as.numeric(gobike$member_birth_year)
length(unique(g... |
library(dplyr)
library(mixtools)
library(EMCluster)
library(tsne)
library(xtable)
unfactor<- function(x){
x <- as.numeric(as.character(x))
}
speed<- read.csv2("data/CleanSpeed.csv")
leaders <- read.csv2("data/leaders.csv")
fullset<- left_join(leaders,speed,by = c("PLAYER_ID" = "ID" ))
fullset <- fullset[,-c(1,26)]
... | /Project /Script/clustering.R | no_license | Emil5KS/DM | R | false | false | 807 | r | library(dplyr)
library(mixtools)
library(EMCluster)
library(tsne)
library(xtable)
unfactor<- function(x){
x <- as.numeric(as.character(x))
}
speed<- read.csv2("data/CleanSpeed.csv")
leaders <- read.csv2("data/leaders.csv")
fullset<- left_join(leaders,speed,by = c("PLAYER_ID" = "ID" ))
fullset <- fullset[,-c(1,26)]
... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinv <- function(inverse) i... | /cachematrix.R | no_license | smitsjan/ProgrammingAssignment2 | R | false | false | 786 | 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()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinv <- function(inverse) i... |
################################################################################
######## ## this is the file that works!!!!!
################################################################################
# https://www.r-bloggers.com/2016/11/extracting-exif-data-from-photos-using-r/
library(exifr)
library(dplyr)
li... | /My_Code/Images/photo-exif-map-test-lib.R | no_license | WendyAnthony/Code_Each_Day | R | false | false | 5,268 | r | ################################################################################
######## ## this is the file that works!!!!!
################################################################################
# https://www.r-bloggers.com/2016/11/extracting-exif-data-from-photos-using-r/
library(exifr)
library(dplyr)
li... |
# Copyright (c) 2013-2016 YA <ya.androidapp@gmail.com> All rights reserved.
setwd("C:/Users/Public/Documents/R")
ENASINK <- 1 #sink()
FF <- 0 #from File
install.packages("TeachingDemos", dependencies = TRUE)
install.packages("fields", dependencies = TRUE)
install.packages("e1071", dependencies = TRUE)
install.packages(... | /svm.r | no_license | yzkn/BSScanner-R | R | false | false | 21,191 | r | # Copyright (c) 2013-2016 YA <ya.androidapp@gmail.com> All rights reserved.
setwd("C:/Users/Public/Documents/R")
ENASINK <- 1 #sink()
FF <- 0 #from File
install.packages("TeachingDemos", dependencies = TRUE)
install.packages("fields", dependencies = TRUE)
install.packages("e1071", dependencies = TRUE)
install.packages(... |
#sample from multidimensional distributions using Gibbs sampling#
if(FALSE){
这是一种模拟计算的方法,不停的抽样就会产生接近p()的分布,但这并不容易做到,
于是拒绝一定的采样结果,接收一定的结果,在X轴上平移一个分布,在y轴上平移一个
在分布中按照重要性的分布去抽样,背后是马尔科夫链子,在转移矩阵对应的值进行采样
}
#---简述下算法---#
if(FALSE){
1.Select the initial values
2.For repeat:
2.1 For sample from distr... | /ml/GIBBS还有arima.r | no_license | goal1234/R-zZzZzZ | R | false | false | 8,019 | r | #sample from multidimensional distributions using Gibbs sampling#
if(FALSE){
这是一种模拟计算的方法,不停的抽样就会产生接近p()的分布,但这并不容易做到,
于是拒绝一定的采样结果,接收一定的结果,在X轴上平移一个分布,在y轴上平移一个
在分布中按照重要性的分布去抽样,背后是马尔科夫链子,在转移矩阵对应的值进行采样
}
#---简述下算法---#
if(FALSE){
1.Select the initial values
2.For repeat:
2.1 For sample from distr... |
### for trivariate functional data
### y: n by 3*p matrix; x1: the first 1:p columns; x2: (p+1):(2*p) columns; x3: (2*p+1):(3*p) columns
trivariate_rankbased<-function(y,z)
{
if (y[2]==z[2])
{ p=y[2]/3
n1=y[1]
n2=z[1]
q<-max(n1,n2)
w<-matrix(NA,nrow=q,ncol=3*p)
com<-cbind(y,z)
for (i in 1:q)
{
... | /trivariate_rankbased.R | no_license | ypsd/FMANOVA | R | false | false | 1,029 | r | ### for trivariate functional data
### y: n by 3*p matrix; x1: the first 1:p columns; x2: (p+1):(2*p) columns; x3: (2*p+1):(3*p) columns
trivariate_rankbased<-function(y,z)
{
if (y[2]==z[2])
{ p=y[2]/3
n1=y[1]
n2=z[1]
q<-max(n1,n2)
w<-matrix(NA,nrow=q,ncol=3*p)
com<-cbind(y,z)
for (i in 1:q)
{
... |
setwd("F:/Introduction to Data Science/Week5/Assessment/Kaggle_Higgs_Boson_Machine_Learning_Challenge")
getwd()
training <- read.csv("training.csv")
dim(training)
View(training)
test <- read.csv("test.csv")
View(test)
names(test)
dim(test)
train <- training[1:10000, ]
sum(training == -999)
sum(training[, 32] < 1)
... | /Week5/Higgs_Boson.R | no_license | nasimulhasan/Data_Science | R | false | false | 5,678 | r | setwd("F:/Introduction to Data Science/Week5/Assessment/Kaggle_Higgs_Boson_Machine_Learning_Challenge")
getwd()
training <- read.csv("training.csv")
dim(training)
View(training)
test <- read.csv("test.csv")
View(test)
names(test)
dim(test)
train <- training[1:10000, ]
sum(training == -999)
sum(training[, 32] < 1)
... |
#----------------------------------------------------------------------------------------------------------------------------------#
# Script by : Lucien Fitzpatrick
# Project: Phenology forecasting app
# Purpose: This script serves to launch the app locally or online
# Inputs:
# Outputs: Runs the app
# Notes: You can... | /scripts/DEVELOP-Morton_Phenology_Forecast/3_run_shiny.R | no_license | MortonArb-ForestEcology/Phenology_Forecasting | R | false | false | 1,284 | r | #----------------------------------------------------------------------------------------------------------------------------------#
# Script by : Lucien Fitzpatrick
# Project: Phenology forecasting app
# Purpose: This script serves to launch the app locally or online
# Inputs:
# Outputs: Runs the app
# Notes: You can... |
rsmvnorm <-
function(R=R,cor.matrix=cor.matrix)
{
if(!is.numeric(R) | R<1)
stop("'R' must be greater than or equal to one")
R <- as.integer(R)
if(!is.numeric(cor.matrix))
stop("'cor.matrix' must be numeric")
cor.matrix <- as.matrix(cor.matrix)
if(!isSymmetric(cor.matrix))
stop("'cor.matri... | /SimCorMultRes/R/rsmvnorm.R | no_license | ingted/R-Examples | R | false | false | 786 | r | rsmvnorm <-
function(R=R,cor.matrix=cor.matrix)
{
if(!is.numeric(R) | R<1)
stop("'R' must be greater than or equal to one")
R <- as.integer(R)
if(!is.numeric(cor.matrix))
stop("'cor.matrix' must be numeric")
cor.matrix <- as.matrix(cor.matrix)
if(!isSymmetric(cor.matrix))
stop("'cor.matri... |
library(testthat)
library(rODE)
test_check("rODE")
| /tests/testthat.R | no_license | AlfonsoRReyes/rODE | R | false | false | 52 | r | library(testthat)
library(rODE)
test_check("rODE")
|
# Overall this function allows to caching the inverse of a matrix rather than compute it repeatedly.
# The makeCacheMatrix creates a special "matrix" object that can cache its reverse. Then, cacheSolve
# checks if the inverse has already been calculated, it retrieves and return it. If not, it calculates,
# caches and ... | /cachematrix.R | no_license | mosis87/ProgrammingAssignment2 | R | false | false | 1,476 | r | # Overall this function allows to caching the inverse of a matrix rather than compute it repeatedly.
# The makeCacheMatrix creates a special "matrix" object that can cache its reverse. Then, cacheSolve
# checks if the inverse has already been calculated, it retrieves and return it. If not, it calculates,
# caches and ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid.R
\name{e_axis}
\alias{e_axis}
\alias{e_axis_}
\alias{e_x_axis_}
\alias{e_y_axis_}
\alias{e_z_axis_}
\alias{e_x_axis}
\alias{e_y_axis}
\alias{e_z_axis}
\alias{e_rm_axis}
\alias{e_axis_formatter}
\title{Axis}
\usage{
e_axis(e, serie, axis... | /man/axis.Rd | permissive | tlorusso/echarts4r | R | false | true | 2,940 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid.R
\name{e_axis}
\alias{e_axis}
\alias{e_axis_}
\alias{e_x_axis_}
\alias{e_y_axis_}
\alias{e_z_axis_}
\alias{e_x_axis}
\alias{e_y_axis}
\alias{e_z_axis}
\alias{e_rm_axis}
\alias{e_axis_formatter}
\title{Axis}
\usage{
e_axis(e, serie, axis... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods_s3_plot.R
\name{plot.IsoFitInactivation}
\alias{plot.IsoFitInactivation}
\title{Plot of IsoFitInactivation Object}
\usage{
\method{plot}{IsoFitInactivation}(x, y = NULL, ..., make_gg = FALSE)
}
\arguments{
\item{x}{the object... | /man/plot.IsoFitInactivation.Rd | no_license | cran/bioinactivation | R | false | true | 795 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods_s3_plot.R
\name{plot.IsoFitInactivation}
\alias{plot.IsoFitInactivation}
\title{Plot of IsoFitInactivation Object}
\usage{
\method{plot}{IsoFitInactivation}(x, y = NULL, ..., make_gg = FALSE)
}
\arguments{
\item{x}{the object... |
\name{ E.MTAB.386_eset }
\alias{ E.MTAB.386_eset }
\docType{data}
\title{ Angiogenic mRNA and microRNA gene expression signature predicts a novel subtype of serous ovarian cancer. }
\description{ Ovarian cancer is the fifth leading cause of cancer death for women in the U.S. and the seventh most fatal worldwide. Althou... | /man/E.MTAB.386.Rd | no_license | bhklab/MetaGxData | R | false | false | 204,744 | rd | \name{ E.MTAB.386_eset }
\alias{ E.MTAB.386_eset }
\docType{data}
\title{ Angiogenic mRNA and microRNA gene expression signature predicts a novel subtype of serous ovarian cancer. }
\description{ Ovarian cancer is the fifth leading cause of cancer death for women in the U.S. and the seventh most fatal worldwide. Althou... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/chart.Correlation.R
\name{chart.Correlation}
\alias{chart.Correlation}
\title{correlation matrix chart}
\usage{
chart.Correlation(R, histogram = TRUE, method = c("pearson", "kendall",
"spearman"), ...)
}
\arguments{
\item{R}{data fo... | /man/chart.Correlation.Rd | no_license | tsbattman/PerformanceAnalytics | R | false | false | 1,146 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/chart.Correlation.R
\name{chart.Correlation}
\alias{chart.Correlation}
\title{correlation matrix chart}
\usage{
chart.Correlation(R, histogram = TRUE, method = c("pearson", "kendall",
"spearman"), ...)
}
\arguments{
\item{R}{data fo... |
#make frankenstein genome
#heather grant 15 june 2021
setwd("~/Dropbox/My Mac (sce-bio-c04853)/Desktop/MAPPED_DRIVE_COPY/dsbm")
setwd("../DYSBM/walk_through/tn93/")
files <- Sys.glob('*.tn93.csv')
slices <- as.integer(sapply(files, function(x) gsub(".*sw([0-9]+).*", "\\1", x)))
files <- files[order(slices)]
infileG<-... | /scripts/make_frankenstein_genomes.R | no_license | heathergrant/dsbm | R | false | false | 7,746 | r | #make frankenstein genome
#heather grant 15 june 2021
setwd("~/Dropbox/My Mac (sce-bio-c04853)/Desktop/MAPPED_DRIVE_COPY/dsbm")
setwd("../DYSBM/walk_through/tn93/")
files <- Sys.glob('*.tn93.csv')
slices <- as.integer(sapply(files, function(x) gsub(".*sw([0-9]+).*", "\\1", x)))
files <- files[order(slices)]
infileG<-... |
#' Fitting piecewise structural equation models
#'
#' \code{psem} is used to unite a list of structural equations into a single
#' structural equation model.
#'
#' \code{psem} takes a list of structural equations, which can be model objects
#' of classes: \code{lm, glm, gls, pgls, sarlm, lme, glmmPQL, lmerMod,
#' merMo... | /R/psem.R | no_license | gudaleon/piecewiseSEM | R | false | false | 5,672 | r | #' Fitting piecewise structural equation models
#'
#' \code{psem} is used to unite a list of structural equations into a single
#' structural equation model.
#'
#' \code{psem} takes a list of structural equations, which can be model objects
#' of classes: \code{lm, glm, gls, pgls, sarlm, lme, glmmPQL, lmerMod,
#' merMo... |
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Decorate Heatmap Row Names — decorate_row_names • ComplexHeatmap</tit... | /docs/reference/decorate_row_names.rd | permissive | jokergoo/ComplexHeatmap | R | false | false | 7,254 | rd | <!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Decorate Heatmap Row Names — decorate_row_names • ComplexHeatmap</tit... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LSCV.risk.R
\name{LSCV.risk}
\alias{LSCV.risk}
\title{Jointly optimal bandwidth selection for the spatial relative risk function}
\usage{
LSCV.risk(
f,
g = NULL,
hlim = NULL,
hseq = NULL,
type = c("fixed", "adaptive"),
method = c(... | /man/LSCV.risk.Rd | no_license | tilmandavies/sparr | R | false | true | 9,553 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LSCV.risk.R
\name{LSCV.risk}
\alias{LSCV.risk}
\title{Jointly optimal bandwidth selection for the spatial relative risk function}
\usage{
LSCV.risk(
f,
g = NULL,
hlim = NULL,
hseq = NULL,
type = c("fixed", "adaptive"),
method = c(... |
####
library(ggplot2) # for graphs
library(rjags)
library(dplyr)
library(cowplot)
library(tidyverse)
#library(fBasics)
#library(forecast)
#### Load Data ####
spy_path = paste(getwd(), '/SPY.csv', sep='')
spy_data = read.csv(spy_path)
head(spy_data)
View(spy_data)
#### Create Change Variables ####
spy_data = spy_dat... | /spy_study.R | no_license | 1sandovalgerardo/Bayes_Statistics_Project | R | false | false | 10,166 | r | ####
library(ggplot2) # for graphs
library(rjags)
library(dplyr)
library(cowplot)
library(tidyverse)
#library(fBasics)
#library(forecast)
#### Load Data ####
spy_path = paste(getwd(), '/SPY.csv', sep='')
spy_data = read.csv(spy_path)
head(spy_data)
View(spy_data)
#### Create Change Variables ####
spy_data = spy_dat... |
\docType{functions}
\name{moment}
\alias{iav}
\alias{moment}
\title{moment}
\usage{
moment(x, n = rep(1, length(x)), na.rm = T)
}
\arguments{
\item{x;}{a vector holding a time series}
}
\value{
a \code{vector} with the inter-annual variation each time
step
}
\description{
aa
}
\examples{
x=1
}
| /man/utils.Rd | no_license | ejardim/FLMethLen | R | false | false | 306 | rd | \docType{functions}
\name{moment}
\alias{iav}
\alias{moment}
\title{moment}
\usage{
moment(x, n = rep(1, length(x)), na.rm = T)
}
\arguments{
\item{x;}{a vector holding a time series}
}
\value{
a \code{vector} with the inter-annual variation each time
step
}
\description{
aa
}
\examples{
x=1
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model-ETFsUs.R
\docType{class}
\name{ETFsUs-class}
\alias{ETFsUs-class}
\alias{ETFsUs}
\title{ETFs listed in the US}
\description{
Read the python documentation for information on the data-attributes \url{https://plutopy.readthedocs.io/en/lat... | /man/ETFsUs-class.Rd | no_license | shyams80/plutoR | R | false | true | 519 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model-ETFsUs.R
\docType{class}
\name{ETFsUs-class}
\alias{ETFsUs-class}
\alias{ETFsUs}
\title{ETFs listed in the US}
\description{
Read the python documentation for information on the data-attributes \url{https://plutopy.readthedocs.io/en/lat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/var_annotation.R
\name{strelka_tidy_snvs}
\alias{strelka_tidy_snvs}
\title{Tidy Strelka snvs}
\usage{
strelka_tidy_snvs(my_vcf)
}
\arguments{
\item{my_vcf}{}
}
\value{
}
\description{
Tidy Strelka snvs
}
| /man/strelka_tidy_snvs.Rd | no_license | cobriniklab/stchlkExome | R | false | true | 283 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/var_annotation.R
\name{strelka_tidy_snvs}
\alias{strelka_tidy_snvs}
\title{Tidy Strelka snvs}
\usage{
strelka_tidy_snvs(my_vcf)
}
\arguments{
\item{my_vcf}{}
}
\value{
}
\description{
Tidy Strelka snvs
}
|
library(shiny)
rt2 <- function(n=500,dft=15){ rt(n=n,df=dft) }
formals(rgamma)[1:2] <- c(500,1)
rchisq2 <- function(n=500,dfx=1){ rchisq(n=n,df=dfx) }
formals(rf)[1:3] <- c(500,1,15)
rexp2 <- function(n=500,rate2=1){ rexp(n=n,rate=rate2) }
formals(rbeta)[1:3] <- c(500,2,2)
shinyServer(function(input,output){
dat <- ... | /server.R | no_license | arielaragon/datasciencecoursera | R | false | false | 2,818 | r | library(shiny)
rt2 <- function(n=500,dft=15){ rt(n=n,df=dft) }
formals(rgamma)[1:2] <- c(500,1)
rchisq2 <- function(n=500,dfx=1){ rchisq(n=n,df=dfx) }
formals(rf)[1:3] <- c(500,1,15)
rexp2 <- function(n=500,rate2=1){ rexp(n=n,rate=rate2) }
formals(rbeta)[1:3] <- c(500,2,2)
shinyServer(function(input,output){
dat <- ... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408265288e-241, 1.97274569258757e-154, 5.49464572566663e+109, 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), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta... | /CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615839549-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 363 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408265288e-241, 1.97274569258757e-154, 5.49464572566663e+109, 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), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Aneufinder.R
\name{Aneufinder}
\alias{Aneufinder}
\title{Wrapper function for the \code{\link{AneuFinder}} package}
\usage{
Aneufinder(inputfolder, outputfolder, configfile = NULL, numCPU = 1,
reuse.existing.files = TRUE, binsizes = 1e+06,
... | /man/Aneufinder.Rd | no_license | daewoooo/aneufinder | R | false | true | 6,799 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Aneufinder.R
\name{Aneufinder}
\alias{Aneufinder}
\title{Wrapper function for the \code{\link{AneuFinder}} package}
\usage{
Aneufinder(inputfolder, outputfolder, configfile = NULL, numCPU = 1,
reuse.existing.files = TRUE, binsizes = 1e+06,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bertin.r
\name{bertin}
\alias{bertin}
\title{Make Bertin display of grid data.}
\usage{
bertin(
x,
colors = c("white", "black"),
showvalues = TRUE,
xlim = c(0.2, 0.8),
ylim = c(0, 0.6),
margins = c(0, 1, 1),
cex.ele... | /man/bertin.Rd | no_license | cran/OpenRepGrid | R | false | true | 4,364 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bertin.r
\name{bertin}
\alias{bertin}
\title{Make Bertin display of grid data.}
\usage{
bertin(
x,
colors = c("white", "black"),
showvalues = TRUE,
xlim = c(0.2, 0.8),
ylim = c(0, 0.6),
margins = c(0, 1, 1),
cex.ele... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auxiliary_visuals.R
\name{plotHeatmap}
\alias{plotHeatmap}
\title{plotHeatmap}
\usage{
plotHeatmap(
gobject,
expression_values = c("normalized", "scaled", "custom"),
genes,
cluster_column = NULL,
cluster_order = c("size", "correlati... | /man/plotHeatmap.Rd | permissive | bernard2012/Giotto | R | false | true | 2,581 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auxiliary_visuals.R
\name{plotHeatmap}
\alias{plotHeatmap}
\title{plotHeatmap}
\usage{
plotHeatmap(
gobject,
expression_values = c("normalized", "scaled", "custom"),
genes,
cluster_column = NULL,
cluster_order = c("size", "correlati... |
<info descr="R_FUNCTION_DECLARATION">my_func</info> <- function(<info descr="R_PARAMETER">x</info>, <info descr="R_PARAMETER">y</info>, <info descr="R_PARAMETER">z</info>) {
<info descr="R_PARAMETER">x</info> + <info descr="R_PARAMETER">y</info> + <info descr="R_PARAMETER">z</info>
} | /testData/annotator/functionDeclaration.R | permissive | JetBrains/Rplugin | R | false | false | 286 | r | <info descr="R_FUNCTION_DECLARATION">my_func</info> <- function(<info descr="R_PARAMETER">x</info>, <info descr="R_PARAMETER">y</info>, <info descr="R_PARAMETER">z</info>) {
<info descr="R_PARAMETER">x</info> + <info descr="R_PARAMETER">y</info> + <info descr="R_PARAMETER">z</info>
} |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/truncatetext.R
\name{truncatetext}
\alias{truncatetext}
\title{Truncated Text}
\usage{
truncatetext(text, lines = 2, duration = 400, more = NULL, less = NULL,
width = "100\%", height = "auto", class = NULL)
}
\arguments{
\item{text}... | /man/truncatetext.Rd | permissive | cperriard/truncatetext | R | false | false | 727 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/truncatetext.R
\name{truncatetext}
\alias{truncatetext}
\title{Truncated Text}
\usage{
truncatetext(text, lines = 2, duration = 400, more = NULL, less = NULL,
width = "100\%", height = "auto", class = NULL)
}
\arguments{
\item{text}... |
output$regSum <- renderPrint ({
dat <- getDat()
datP <- getDatP()
if (input$use2 == FALSE) {
if (input$Method == 1) {
if (input$useSeas == FALSE) {
regObj <- lm(log10(X_00060_00003.y) ~ log10(X_00060_00003.x), data = dat)
}
else if (input$useSeas == TRUE) {
reg... | /inst/shiny/regSum.R | permissive | bbreaker/MISTEdv | R | false | false | 1,778 | r | output$regSum <- renderPrint ({
dat <- getDat()
datP <- getDatP()
if (input$use2 == FALSE) {
if (input$Method == 1) {
if (input$useSeas == FALSE) {
regObj <- lm(log10(X_00060_00003.y) ~ log10(X_00060_00003.x), data = dat)
}
else if (input$useSeas == TRUE) {
reg... |
install.packages("MASS")
install.packages("leaps")
install.packages("knitr")
library(MASS)
library(leaps)
library(knitr)
set.seed(123)
dat <- read.csv('C:/STONY/Group_59.csv', header=TRUE, sep=",")
dim(dat)
##find correlation between Y and variables
corr<-NULL
for(i in 1:20){
corr[i]<-cor(dat$Y,dat[,i... | /Model Selection/315.r | no_license | nicolehhy/Machine-Learning-using-R | R | false | false | 3,833 | r | install.packages("MASS")
install.packages("leaps")
install.packages("knitr")
library(MASS)
library(leaps)
library(knitr)
set.seed(123)
dat <- read.csv('C:/STONY/Group_59.csv', header=TRUE, sep=",")
dim(dat)
##find correlation between Y and variables
corr<-NULL
for(i in 1:20){
corr[i]<-cor(dat$Y,dat[,i... |
tabPanel('Line Chart - II', value = 'tab_gline2',
fluidPage(
fluidRow(
column(12, align = 'left',
h4('Line Plot - II')
)
),
hr(),
fluidRow(
column(12,
tabsetPanel(type = 'tabs',
tabPanel('Variables',
fluidRow(
column(2,
selectInput('gline2_se... | /inst/app-visualize/ui/ui_gline2.R | no_license | cran/xplorerr | R | false | false | 8,674 | r | tabPanel('Line Chart - II', value = 'tab_gline2',
fluidPage(
fluidRow(
column(12, align = 'left',
h4('Line Plot - II')
)
),
hr(),
fluidRow(
column(12,
tabsetPanel(type = 'tabs',
tabPanel('Variables',
fluidRow(
column(2,
selectInput('gline2_se... |
library(maptools)
#set the working directory to where the files are stored - !CHANGE THIS TO YOUR OWN DIRECTORY!
#setwd("~/Documents/AidData/Git Repos/kfw2_amazon_conflict")
#setwd("/home/aiddata/Desktop/Github/kfw2_amazon_conflict/")
setwd("C:/Users/jflak/OneDrive/GitHub/kfw2_amazon_conflict/")
#clear variables and... | /KFW_Cross-Section_Dataset_Building.R | no_license | aiddata/kfw2_amazon_conflict | R | false | false | 10,694 | r | library(maptools)
#set the working directory to where the files are stored - !CHANGE THIS TO YOUR OWN DIRECTORY!
#setwd("~/Documents/AidData/Git Repos/kfw2_amazon_conflict")
#setwd("/home/aiddata/Desktop/Github/kfw2_amazon_conflict/")
setwd("C:/Users/jflak/OneDrive/GitHub/kfw2_amazon_conflict/")
#clear variables and... |
### SET ROOT DIRECTORY
### SET ROOT DIRECTORY
## This code generates the boxplots of confidence interval size, when sample size = 100000, but straitified by mean absolute prediction error (low, medium and high)
library(dplyr)
library(matrixStats)
library(ggplot2)
library(ggpubr)
## Load the discriminations measure... | /code/fp3.4_Figure5_female_CI_boxplot_by_MAPE_100000.R | no_license | alexpate30/Impact-of-sample-size-of-the-stability-of-risk-scores | R | false | false | 6,817 | r | ### SET ROOT DIRECTORY
### SET ROOT DIRECTORY
## This code generates the boxplots of confidence interval size, when sample size = 100000, but straitified by mean absolute prediction error (low, medium and high)
library(dplyr)
library(matrixStats)
library(ggplot2)
library(ggpubr)
## Load the discriminations measure... |
load('exercise9/B9A2_XYPlots.RData')
#a.)
# Wo stehen die ID?
# die ids stehen in samples$sampleID und in daten in jeder Zeile an erster Stelle
# Wie viele X- bzw. Y-SNPs gibt es?
# Wie viele Männer, wie viele Frauen?
table(samples$sex_datenbank) # female 150 male 150
table(samples$sex_computed) # female 149 male... | /semester3/statistical_aspects/exercises/r_scripts/exercise9/e2.R | no_license | sbulka/study | R | false | false | 2,588 | r | load('exercise9/B9A2_XYPlots.RData')
#a.)
# Wo stehen die ID?
# die ids stehen in samples$sampleID und in daten in jeder Zeile an erster Stelle
# Wie viele X- bzw. Y-SNPs gibt es?
# Wie viele Männer, wie viele Frauen?
table(samples$sex_datenbank) # female 150 male 150
table(samples$sex_computed) # female 149 male... |
classEda <- function(
x,
lab1 = "",
lab2 = "",
units= "Variable Units",
bw="nrd0", adjust=1,kernel="g",
dist = "norm", QQxlab="Normal Quantiles",
textLines = c(.6,.5,.4),
textFonts = c(2,2,1),
cexS = 1, cexL = 1.3,
panelCol = rgb(.95, 1.00, .95),
densityCol = rgb(0,.85,1),
densityLineCol = r... | /Week 6/classEda.r | no_license | ceharvs/Statistical-Graphics | R | false | false | 1,503 | r | classEda <- function(
x,
lab1 = "",
lab2 = "",
units= "Variable Units",
bw="nrd0", adjust=1,kernel="g",
dist = "norm", QQxlab="Normal Quantiles",
textLines = c(.6,.5,.4),
textFonts = c(2,2,1),
cexS = 1, cexL = 1.3,
panelCol = rgb(.95, 1.00, .95),
densityCol = rgb(0,.85,1),
densityLineCol = r... |
#' Process GCAM input XML files
#'
#' @param hector_ini Path to Hector INI file to use with scenario
#' @param hector_xml_in Path to reference Hector XML file to modify
#' @param gcam_xml_in Path to reference GCAM XML file to modify
#' @param hector_xml_out Path to target Hector XML file
#' @param gcam_xml_out Path to ... | /R/make_xml.R | permissive | ashiklom/hector_permafrost_emit | R | false | false | 1,740 | r | #' Process GCAM input XML files
#'
#' @param hector_ini Path to Hector INI file to use with scenario
#' @param hector_xml_in Path to reference Hector XML file to modify
#' @param gcam_xml_in Path to reference GCAM XML file to modify
#' @param hector_xml_out Path to target Hector XML file
#' @param gcam_xml_out Path to ... |
##########################################################################################
# Designed and developed by Tinniam V Ganesh
# Date : 26 Jan 2021
# Function: saveAllMatchesAllOppositionCPLT20
# This function saves all CPL matches between a team and all opposition as a
# single dataframe
#####################... | /R/saveAllMatchesAllOppositionCPLT20.R | no_license | tvganesh/yorkr | R | false | false | 1,882 | r | ##########################################################################################
# Designed and developed by Tinniam V Ganesh
# Date : 26 Jan 2021
# Function: saveAllMatchesAllOppositionCPLT20
# This function saves all CPL matches between a team and all opposition as a
# single dataframe
#####################... |
# seasonality raster stack
library(pacman)
p_load(raster, lubridate, magrittr, doParallel, foreach,
ggplot2, scales, ggpubr, sf)
load("C:/Users/Edward/MODIStsp/VI_Monthly_005dg_v6/Time_Series/RData/Terra/EVI/MOD13C2_EVI_32_2000_1_2021_RData.RData")
Africa <- rnaturalearth::ne_countries(continent = "Africa")
... | /R/fig2_seasonality_examplecounts.R | permissive | ehurme/EidolonGreenWave | R | false | false | 8,916 | r | # seasonality raster stack
library(pacman)
p_load(raster, lubridate, magrittr, doParallel, foreach,
ggplot2, scales, ggpubr, sf)
load("C:/Users/Edward/MODIStsp/VI_Monthly_005dg_v6/Time_Series/RData/Terra/EVI/MOD13C2_EVI_32_2000_1_2021_RData.RData")
Africa <- rnaturalearth::ne_countries(continent = "Africa")
... |
#' The application User-Interface
#'
#' @param request Internal parameter for `{shiny}`.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_ui <- function(request) {
# current_version <- paste0("v", golem::get_golem_version())
tagList(
# Leave this function for adding external resources
golem_add_exte... | /R/app_ui.R | permissive | uincity/dinnR | R | false | false | 3,544 | r | #' The application User-Interface
#'
#' @param request Internal parameter for `{shiny}`.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_ui <- function(request) {
# current_version <- paste0("v", golem::get_golem_version())
tagList(
# Leave this function for adding external resources
golem_add_exte... |
| pc = 0xc005 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc006 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc007 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc008 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x... | /res/nop.r | no_license | nes-emulator/Core | R | false | false | 528 | r | | pc = 0xc005 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc006 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc007 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc008 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x... |
### OEVELSE 2
U=runif(10000,0,1)
X = (log(U)/log(1-1/3))+1
hist(X)
# crude
p = c(7/48,5/48,1/8,1/16,1/4,5/16)
X_crude = vector('numeric',6)
p1 = sum(p[1])
p2 = sum(p[1:2])
p3 = sum(p[1:3])
p4 = sum(p[1:4])
p5 = sum(p[1:5])
p6 = sum(p[1:6])
for ( i in 1:length(U)){
if (U[i]<=p1){
X_crude[i]=1
} else if (U[... | /Oevelse2.R | no_license | Wedenborg/Stokastisk_simulering | R | false | false | 1,804 | r | ### OEVELSE 2
U=runif(10000,0,1)
X = (log(U)/log(1-1/3))+1
hist(X)
# crude
p = c(7/48,5/48,1/8,1/16,1/4,5/16)
X_crude = vector('numeric',6)
p1 = sum(p[1])
p2 = sum(p[1:2])
p3 = sum(p[1:3])
p4 = sum(p[1:4])
p5 = sum(p[1:5])
p6 = sum(p[1:6])
for ( i in 1:length(U)){
if (U[i]<=p1){
X_crude[i]=1
} else if (U[... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{us_lungmort_2009_2011}
\alias{us_lungmort_2009_2011}
\title{Example Dataset: U.S. Lung and Bronchus Cancer Mortality}
\format{A data frame with 51 rows and the following 5 columns:
\describe{
\item{state}{Full st... | /man/us_lungmort_2009_2011.Rd | no_license | z267xu/loon.micromaps | R | false | true | 1,131 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{us_lungmort_2009_2011}
\alias{us_lungmort_2009_2011}
\title{Example Dataset: U.S. Lung and Bronchus Cancer Mortality}
\format{A data frame with 51 rows and the following 5 columns:
\describe{
\item{state}{Full st... |
library(readxl)
who_pathogens <- readxl::read_excel(path = whoFile,
sheet = "Pathogens") %>%
dplyr::left_join(.data$who_sources)
who_influent <- readxl::read_excel(path = whoFile,
sheet = "InfluentConcentrations") %>%
dplyr::left... | /R/.pathogens.R | permissive | KWB-R/kwb.qmra | R | false | false | 344 | r | library(readxl)
who_pathogens <- readxl::read_excel(path = whoFile,
sheet = "Pathogens") %>%
dplyr::left_join(.data$who_sources)
who_influent <- readxl::read_excel(path = whoFile,
sheet = "InfluentConcentrations") %>%
dplyr::left... |
\name{SubsetterPIC}
\alias{SubsetterPIC}
\title{
Genotype Subsetting with PIC - Method One (Depreciated)
}
\description{
***This function has been superseded by CoreSetter.
}
\usage{
SubsetterPIC(genos, save = NULL)
}
\arguments{
\item{genos}{
A matrix of genotypes, where each column is one individual, each row i... | /man/SubsetterPIC.Rd | no_license | cran/GeneticSubsetter | R | false | false | 1,370 | rd | \name{SubsetterPIC}
\alias{SubsetterPIC}
\title{
Genotype Subsetting with PIC - Method One (Depreciated)
}
\description{
***This function has been superseded by CoreSetter.
}
\usage{
SubsetterPIC(genos, save = NULL)
}
\arguments{
\item{genos}{
A matrix of genotypes, where each column is one individual, each row i... |
\name{wpp2017-package}
\alias{wpp2017-package}
\alias{wpp2017}
\docType{package}
\title{
World Population Prospects 2017
}
\description{
Data from the United Nations World Population Prospects 2017, released on June 21, 2017.
}
\details{
\tabular{ll}{
Package: \tab wpp2017\cr
Version: \tab 1.2-3\cr
Date: \tab 2020-2-7... | /man/wpp2017-package.Rd | no_license | cran/wpp2017 | R | false | false | 2,720 | rd | \name{wpp2017-package}
\alias{wpp2017-package}
\alias{wpp2017}
\docType{package}
\title{
World Population Prospects 2017
}
\description{
Data from the United Nations World Population Prospects 2017, released on June 21, 2017.
}
\details{
\tabular{ll}{
Package: \tab wpp2017\cr
Version: \tab 1.2-3\cr
Date: \tab 2020-2-7... |
#' morphomapMatrix2array
#'
#' Convert a matrix into an array
#' @param matrix an array
#' @param nsects number of cross sections
#' @return array an array
#' @author Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi
#' @export
morphomapMatrix2array<-function(matrix,nsects){
n... | /R/morphomapMatrix2array.R | no_license | cran/morphomap | R | false | false | 579 | r | #' morphomapMatrix2array
#'
#' Convert a matrix into an array
#' @param matrix an array
#' @param nsects number of cross sections
#' @return array an array
#' @author Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi
#' @export
morphomapMatrix2array<-function(matrix,nsects){
n... |
###########################################################################
##
## Copyright 2013, 2014 Charles Danko and Minho Chae.
##
## This program is part of the groHMM R package
##
## groHMM is free software: you can redistribute it and/or modify it
## under the terms of the GNU General Public License as... | /R/expressedGenes.R | no_license | Kraus-Lab/groHMM | R | false | false | 7,910 | r | ###########################################################################
##
## Copyright 2013, 2014 Charles Danko and Minho Chae.
##
## This program is part of the groHMM R package
##
## groHMM is free software: you can redistribute it and/or modify it
## under the terms of the GNU General Public License as... |
### study site map ###
library(ggmap)
library(maptools)
library(mapdata)
library(sp)
library(ggrepel)
library(raster)
# create dataframe of approximate study sites
coords <- data.frame(lat = c(64.3, 69.55, 79.38, 65, 55.89),
long = c(-21.1, -53.52, 13.43, -150.63, 159.67),
site = c("Iceland", "Greenland", "Svalbard"... | /mapCode.R | no_license | Dave-Clark/lRoF | R | false | false | 1,237 | r | ### study site map ###
library(ggmap)
library(maptools)
library(mapdata)
library(sp)
library(ggrepel)
library(raster)
# create dataframe of approximate study sites
coords <- data.frame(lat = c(64.3, 69.55, 79.38, 65, 55.89),
long = c(-21.1, -53.52, 13.43, -150.63, 159.67),
site = c("Iceland", "Greenland", "Svalbard"... |
# Compare emissions from motor vehicle sources in Baltimore City with emissions from motor vehicle
# sources in Los Angeles County, California (fips == "06037"). Which city has seen greater changes
# over time in motor vehicle emissions?
library(ggplot2)
library(scales)
NEI <- readRDS("exdata_data_NEI_data/summarySCC_... | /plot6.R | no_license | lenwood/Exploratory-Data-Analysis | R | false | false | 1,335 | r | # Compare emissions from motor vehicle sources in Baltimore City with emissions from motor vehicle
# sources in Los Angeles County, California (fips == "06037"). Which city has seen greater changes
# over time in motor vehicle emissions?
library(ggplot2)
library(scales)
NEI <- readRDS("exdata_data_NEI_data/summarySCC_... |
library(shiny)
#gm.shiny <- function(x) {
runApp(list(
ui = fluidPage(
h3( "Explore shape space"),
sidebarLayout(
sidebarPanel(
fluidRow(
column(6, selectInput(inputId = "plot_x",
label = "x-axis",
choices = colnames(x$scores),
... | /geomorph.shiny_v1.0.R | no_license | antkal/shiny | R | false | false | 3,012 | r | library(shiny)
#gm.shiny <- function(x) {
runApp(list(
ui = fluidPage(
h3( "Explore shape space"),
sidebarLayout(
sidebarPanel(
fluidRow(
column(6, selectInput(inputId = "plot_x",
label = "x-axis",
choices = colnames(x$scores),
... |
#' getEntityAttributeMetadata - Gets attribute metadata for a particular entity type.
#' \code{getEntityAttributeMetadata} Gets attribute metadata for a particular entity type.
#' @param coreAPI coreApi object with valid jsessionid
#' @param entityType entity type which has the attribute metadata
#' @param fullMetadata... | /R/getEntityAttributeMetadata.R | no_license | AmundsenJunior/pfsrsdk | R | false | false | 2,255 | r | #' getEntityAttributeMetadata - Gets attribute metadata for a particular entity type.
#' \code{getEntityAttributeMetadata} Gets attribute metadata for a particular entity type.
#' @param coreAPI coreApi object with valid jsessionid
#' @param entityType entity type which has the attribute metadata
#' @param fullMetadata... |
##read in data
data <- read.csv("repdata-data-StormData.csv.bz2", stringsAsFactors = FALSE)
library(ggplot2)
library(gridExtra)
library(data.table)
colnames(data)
dim(data)
##creates vector of all event types
eventTypes <- data$EVTYPE
##finds the number of each unique value in eventTypes
no_unique <- aggregate(data.f... | /Peer Assessment 2.R | no_license | KFocht/Reproducible-Research | R | false | false | 7,137 | r | ##read in data
data <- read.csv("repdata-data-StormData.csv.bz2", stringsAsFactors = FALSE)
library(ggplot2)
library(gridExtra)
library(data.table)
colnames(data)
dim(data)
##creates vector of all event types
eventTypes <- data$EVTYPE
##finds the number of each unique value in eventTypes
no_unique <- aggregate(data.f... |
testlist <- list(A = structure(c(2.31584307392677e+77, 7.32376685705614e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613109780-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 257 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 7.32376685705614e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/S2_download.R
\name{S2_download}
\alias{S2_download}
\title{S2_download helper function}
\usage{
S2_download(url, destfile, zip = TRUE, skipExisting = TRUE, ...)
}
\arguments{
\item{url}{character (valid) url to download file from.}
\item{de... | /man/S2_download.Rd | no_license | DagHjermann/sentinel2 | R | false | true | 1,815 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/S2_download.R
\name{S2_download}
\alias{S2_download}
\title{S2_download helper function}
\usage{
S2_download(url, destfile, zip = TRUE, skipExisting = TRUE, ...)
}
\arguments{
\item{url}{character (valid) url to download file from.}
\item{de... |
.has_equal_containers = function(x, y, ...)
{
if (!identical(data.class(x), data.class(y)))
return(FALSE)
if (length(x) != length(y))
return(FALSE)
if (!identical(names(x), names(y)))
return(FALSE)
x.iter = x$iter()
y.iter = y$iter()
is_equal = match.f... | /R/all.equal.R | no_license | cran/container | R | false | false | 796 | r | .has_equal_containers = function(x, y, ...)
{
if (!identical(data.class(x), data.class(y)))
return(FALSE)
if (length(x) != length(y))
return(FALSE)
if (!identical(names(x), names(y)))
return(FALSE)
x.iter = x$iter()
y.iter = y$iter()
is_equal = match.f... |
fib <- function(n){
if (n == 0){
return(0)
}else{
if (n == 1){
return(1)
}else{
return (fib(n-1)+fib(n-2))
}
}
}
pb <- tkProgressBar("test progress bar", "Some information in %",
0, 100, 50)
Sys.sleep(0.5)
u <- c(0, sort(runif(20, 0, 100)), 100)
for(i in u)... | /test_script.R | no_license | MKul/ExF | R | false | false | 1,080 | r | fib <- function(n){
if (n == 0){
return(0)
}else{
if (n == 1){
return(1)
}else{
return (fib(n-1)+fib(n-2))
}
}
}
pb <- tkProgressBar("test progress bar", "Some information in %",
0, 100, 50)
Sys.sleep(0.5)
u <- c(0, sort(runif(20, 0, 100)), 100)
for(i in u)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/globals.R
\name{TileDBArray-globals}
\alias{TileDBArray-globals}
\alias{getTileDBPath}
\alias{setTileDBPath}
\alias{getTileDBAttr}
\alias{setTileDBAttr}
\alias{getTileDBExtent}
\alias{setTileDBExtent}
\alias{getTileDBContext}
\alias{setTileDB... | /man/TileDBArray-globals.Rd | permissive | LTLA/TileDBArray | R | false | true | 2,550 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/globals.R
\name{TileDBArray-globals}
\alias{TileDBArray-globals}
\alias{getTileDBPath}
\alias{setTileDBPath}
\alias{getTileDBAttr}
\alias{setTileDBAttr}
\alias{getTileDBExtent}
\alias{setTileDBExtent}
\alias{getTileDBContext}
\alias{setTileDB... |
testlist <- list(x = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y = numeric(0))
result <- do.call(blorr:::blr_pairs_cpp,testlist)
str(result) | /blorr/inst/testfiles/blr_pairs_cpp/libFuzzer_blr_pairs_cpp/blr_pairs_cpp_valgrind_files/1609955092-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 268 | r | testlist <- list(x = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y = numeric(0))
result <- do.call(blorr:::blr_pairs_cpp,testlist)
str(result) |
readPangaeaTabToDf <- function(downloadURL, destfile){
downloadURL <- 'https://doi.pangaea.de/10.1594/PANGAEA.863689?format=textfile'
destfile <- '~/Documents/GitHubRepo/soilDataR/temp/Treat2016_S1.tab'
download.file(url=downloadURL, destfile = destfile)
Treat <- pangaear::pg_data(doi = c('10.1594/PANGAEA.8... | /R/readPangaeaTabToDf.R | permissive | ktoddbrown/soilDataR | R | false | false | 4,412 | r | readPangaeaTabToDf <- function(downloadURL, destfile){
downloadURL <- 'https://doi.pangaea.de/10.1594/PANGAEA.863689?format=textfile'
destfile <- '~/Documents/GitHubRepo/soilDataR/temp/Treat2016_S1.tab'
download.file(url=downloadURL, destfile = destfile)
Treat <- pangaear::pg_data(doi = c('10.1594/PANGAEA.8... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FFTrees.R
\name{FFTrees}
\alias{FFTrees}
\title{Create Fast and Frugal Trees (FFTrees)}
\usage{
FFTrees(formula = NULL, data = NULL, data.test = NULL, train.p = 1,
rank.method = "m", repeat.cues = TRUE, hr.weight = 0.5, verbose = F,
max.l... | /man/FFTrees.Rd | no_license | mdec/FFTrees | R | false | true | 2,348 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FFTrees.R
\name{FFTrees}
\alias{FFTrees}
\title{Create Fast and Frugal Trees (FFTrees)}
\usage{
FFTrees(formula = NULL, data = NULL, data.test = NULL, train.p = 1,
rank.method = "m", repeat.cues = TRUE, hr.weight = 0.5, verbose = F,
max.l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jambio-tx.R
\name{sortGRL}
\alias{sortGRL}
\title{Sort GRangesList elements by chromosome and position}
\usage{
sortGRL(GRL, splitColname = "splitColname", keep_order = TRUE,
verbose = FALSE, ...)
}
\arguments{
\item{GRL}{GRangesList to be ... | /man/sortGRL.Rd | no_license | sridnona/splicejam | R | false | true | 2,298 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jambio-tx.R
\name{sortGRL}
\alias{sortGRL}
\title{Sort GRangesList elements by chromosome and position}
\usage{
sortGRL(GRL, splitColname = "splitColname", keep_order = TRUE,
verbose = FALSE, ...)
}
\arguments{
\item{GRL}{GRangesList to be ... |
plotDensityPortefeuilleByShare<-function(portefe="AC.PA ACA.PA", from="2013-01-01", to=Sys.time()){
portefe<-unlist(strsplit(portefe, " "))
gain<-numeric(length(portefe));
for(i in 1:(length(portefe))){
ticke<-portefe[i];
gaini<-getCapitalGain(ticke, from, to);
gain[i]<-round(gaini,5);
}
kurt<-kurtosis(gain);
kur... | /R/plotDensityPortefeuilleByShare.R | no_license | fcluzeau/stock | R | false | false | 967 | r | plotDensityPortefeuilleByShare<-function(portefe="AC.PA ACA.PA", from="2013-01-01", to=Sys.time()){
portefe<-unlist(strsplit(portefe, " "))
gain<-numeric(length(portefe));
for(i in 1:(length(portefe))){
ticke<-portefe[i];
gaini<-getCapitalGain(ticke, from, to);
gain[i]<-round(gaini,5);
}
kurt<-kurtosis(gain);
kur... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/outlier_analysis_functions.R
\name{outlier_heatmap}
\alias{outlier_heatmap}
\title{With the grouptablist generated by count_outliers - run through and run a
fisher exact test to get the p.value for the difference in outlier count
for ... | /man/outlier_heatmap.Rd | permissive | ruggleslab/blacksheepr | R | false | true | 1,997 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/outlier_analysis_functions.R
\name{outlier_heatmap}
\alias{outlier_heatmap}
\title{With the grouptablist generated by count_outliers - run through and run a
fisher exact test to get the p.value for the difference in outlier count
for ... |
/refm/api/src/webrick/config.rd | no_license | mrkn/rubydoc | R | false | false | 2,408 | rd | ||
library(causaleffect)
### Name: generalize
### Title: Derive a transport formula for a causal effect between a target
### domain and multiple source domains with limited experiments
### Aliases: generalize
### ** Examples
library(igraph)
# Selection diagram corresponding to the target domain (no selection variab... | /data/genthat_extracted_code/causaleffect/examples/generalize.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,996 | r | library(causaleffect)
### Name: generalize
### Title: Derive a transport formula for a causal effect between a target
### domain and multiple source domains with limited experiments
### Aliases: generalize
### ** Examples
library(igraph)
# Selection diagram corresponding to the target domain (no selection variab... |
# Make sure there is a flydoc environment associated
# with the function. If not then add one.
flycheck <- function(fun){
if(is.null(attr(fun, "flydoc"))){
attr(fun, "flydoc") <- new.env(parent = emptyenv())
}
fun
}
| /R/flycheck.R | no_license | Dasonk/flydoc | R | false | false | 242 | r | # Make sure there is a flydoc environment associated
# with the function. If not then add one.
flycheck <- function(fun){
if(is.null(attr(fun, "flydoc"))){
attr(fun, "flydoc") <- new.env(parent = emptyenv())
}
fun
}
|
#' This is the script to directly simulate GWAS summary statistics without simulating the individual genotypes or phenotypes.
#' Effect size beta's are generated using the 4-component model.
#' For a description, see Qi and Chatterjee, Nature Communcations 2019 - Methods - Simulation setup - Scenario A.
#'
#' Usage: ru... | /simulations/scenarioA_4comp.R | no_license | buleiba/MRMix | R | false | false | 5,705 | r | #' This is the script to directly simulate GWAS summary statistics without simulating the individual genotypes or phenotypes.
#' Effect size beta's are generated using the 4-component model.
#' For a description, see Qi and Chatterjee, Nature Communcations 2019 - Methods - Simulation setup - Scenario A.
#'
#' Usage: ru... |
#' Optimize multiple resistance surfaces simultaneously
#'
#' Create composite resistance surface by simultaneously optimizing multiple categoricla and continuous surfaces. This optimization function is designed to be called from GA
#'
#' @param PARM Parameters to transform conintuous surface or resistance values of ca... | /R/OptimFunction_Multi.R | no_license | rmarrotte/ResistanceGA | R | false | false | 3,697 | r | #' Optimize multiple resistance surfaces simultaneously
#'
#' Create composite resistance surface by simultaneously optimizing multiple categoricla and continuous surfaces. This optimization function is designed to be called from GA
#'
#' @param PARM Parameters to transform conintuous surface or resistance values of ca... |
### R Stats Data independance
# Exercise Chi Squared Test
# data = bacteria, library = MASS
# get familiar with the dataset and get a contingency table of y and a treatment group
# get a visual impression of the data
# check for independence with a suitable test
library(MASS)
?bacteria
head(bacteria)
head(bacteria)... | /R_Stat_Johns_Hopkins_work/R_Statistics/R_Stats_Chi_Squared_Test.R | no_license | mpierne01/Johns_Hopkins_DS_Work | R | false | false | 633 | r | ### R Stats Data independance
# Exercise Chi Squared Test
# data = bacteria, library = MASS
# get familiar with the dataset and get a contingency table of y and a treatment group
# get a visual impression of the data
# check for independence with a suitable test
library(MASS)
?bacteria
head(bacteria)
head(bacteria)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{getLevels}
\alias{getLevels}
\title{Get the number of levels in the structure}
\usage{
getLevels(paths_df)
}
\arguments{
\item{paths_df}{paths df}
}
\value{
number of levels in file path
}
\description{
Get the number of l... | /man/getLevels.Rd | no_license | maxsibilla/spew | R | false | true | 346 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{getLevels}
\alias{getLevels}
\title{Get the number of levels in the structure}
\usage{
getLevels(paths_df)
}
\arguments{
\item{paths_df}{paths df}
}
\value{
number of levels in file path
}
\description{
Get the number of l... |
# this code is used to draw the correlation heatmap
# written by Jessie
# last update: 08/06/2019
tmp = diag(1/sqrt(diag(V)))
corr_matrix <- tmp %*% V %*% tmp
# corr_matrix = data.frame(corr_matrix)
corr_matrix_update = cbind(corr_matrix, c(c(1:13),c(1:3,5:13),c(1:3,5:13),c(1:13),c(1:3,5,7:13)))
list_order = order(c... | /labor_NMA_heatmap.R | no_license | JiayiJessieTong/NMA_data_analysis | R | false | false | 2,599 | r | # this code is used to draw the correlation heatmap
# written by Jessie
# last update: 08/06/2019
tmp = diag(1/sqrt(diag(V)))
corr_matrix <- tmp %*% V %*% tmp
# corr_matrix = data.frame(corr_matrix)
corr_matrix_update = cbind(corr_matrix, c(c(1:13),c(1:3,5:13),c(1:3,5:13),c(1:13),c(1:3,5,7:13)))
list_order = order(c... |
# example code
library (tidyverse)
head(iris)
plot1 <- ggplot(iris, aes(x=Sepal.Length, y=Petal.Length, color = Species)) + geom_point()
ggsave("images/fig1.png", plot1, width=6, height=6)
## second plot
plot2 <- ggplot(iris, aes(x=Sepal.Length, y=Petal.Width, color = Species)) + geom_point()
plot2
ggsave("i... | /code test.R | no_license | whipplek/testforclass2 | R | false | false | 363 | r | # example code
library (tidyverse)
head(iris)
plot1 <- ggplot(iris, aes(x=Sepal.Length, y=Petal.Length, color = Species)) + geom_point()
ggsave("images/fig1.png", plot1, width=6, height=6)
## second plot
plot2 <- ggplot(iris, aes(x=Sepal.Length, y=Petal.Width, color = Species)) + geom_point()
plot2
ggsave("i... |
library(ggplot2)
library(readr)
library(dplyr)
library(xts)
dat <- read.csv("applemobilitytrends-2020-06-14.csv", header = T)
glimpse(dat)
#want to take a look at the apple map direction change request within Canada
country_dat <- dat %>% filter(country == "Canada")
region_dat <- dat %>% filter(region == "Canada") %>... | /apple_mobility_trend.R | no_license | rhungc/apple_mobility_trend | R | false | false | 1,360 | r | library(ggplot2)
library(readr)
library(dplyr)
library(xts)
dat <- read.csv("applemobilitytrends-2020-06-14.csv", header = T)
glimpse(dat)
#want to take a look at the apple map direction change request within Canada
country_dat <- dat %>% filter(country == "Canada")
region_dat <- dat %>% filter(region == "Canada") %>... |
context("test-PFunction")
test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
singleFitData <- read.csv("../Data_testing/singleFitData.csv")
testthat::test_that(
"Basic equality",{
expect_equal(PsyMetFuns:::PFunction("gumbel_r", "ab", singleFitData$level, singleFitData$gamma[1], singleFitData$lambd... | /tests/testthat/test-PFunction.R | no_license | LuchTiarna/PsyFuns | R | false | false | 2,145 | r | context("test-PFunction")
test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
singleFitData <- read.csv("../Data_testing/singleFitData.csv")
testthat::test_that(
"Basic equality",{
expect_equal(PsyMetFuns:::PFunction("gumbel_r", "ab", singleFitData$level, singleFitData$gamma[1], singleFitData$lambd... |
## https://github.com/Illumina/manta
p1 <- InputParam(id = "tbam", type = "File", prefix = "--tumorBam",
secondaryFiles = ".bai", position = 1)
p2 <- InputParam(id = "nbam", type = "File", prefix = "--normalBam",
secondaryFiles = ".bai", position = 2)
p3 <- InputParam(id = "ref", type ... | /Rcwl/tl_manta.R | no_license | hubentu/RcwlRecipes | R | false | false | 2,132 | r | ## https://github.com/Illumina/manta
p1 <- InputParam(id = "tbam", type = "File", prefix = "--tumorBam",
secondaryFiles = ".bai", position = 1)
p2 <- InputParam(id = "nbam", type = "File", prefix = "--normalBam",
secondaryFiles = ".bai", position = 2)
p3 <- InputParam(id = "ref", type ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scrolling_spectro.R
\name{scrolling_spectro}
\alias{scrolling_spectro}
\title{Create scrolling dynamic spectrograms}
\usage{
scrolling_spectro(wave, file.name = "scroll.spectro.mp4", hop.size = 11.6, wl = NULL,
ovlp = 70, flim = NULL, pal = ... | /man/scrolling_spectro.Rd | no_license | Louis-Backstrom/dynaSpec | R | false | true | 7,600 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scrolling_spectro.R
\name{scrolling_spectro}
\alias{scrolling_spectro}
\title{Create scrolling dynamic spectrograms}
\usage{
scrolling_spectro(wave, file.name = "scroll.spectro.mp4", hop.size = 11.6, wl = NULL,
ovlp = 70, flim = NULL, pal = ... |
#' Retrieve tri source reduct qty data from tri database
#'
#' @param DOC_CTRL_NUM e.g. '1300140000011'. See Details.
#' @param RECYC_ONSITE_CURR_YR_QTY e.g. '70000'. See Details.
#' @param RECYC_ONSITE_CURR_YR_NA e.g. '0'. See Details.
#' @param RECYC_ONSITE_PREV_YR_QTY e.g. '65000'. See Details.
#' @param RECYC_ONSI... | /R/tri_tri_source_reduct_qty.R | no_license | markwh/envirofacts | R | false | false | 12,781 | r | #' Retrieve tri source reduct qty data from tri database
#'
#' @param DOC_CTRL_NUM e.g. '1300140000011'. See Details.
#' @param RECYC_ONSITE_CURR_YR_QTY e.g. '70000'. See Details.
#' @param RECYC_ONSITE_CURR_YR_NA e.g. '0'. See Details.
#' @param RECYC_ONSITE_PREV_YR_QTY e.g. '65000'. See Details.
#' @param RECYC_ONSI... |
# Bibliotheken laden
library(tidyverse)
library(psych)
library(ggplot2)
# Hilfe zu einem Datensatz (hier Titanic aus datasets)
?msleep
data("msleep")
msleeplibrary(ggplot2)
ggplot(data = msleep) +
aes(x = vore, y = sleep_total) +
geom_boxplot(fill = "#0c4c8a") +
labs(title = "Insektenfresser schlafen länger"... | /Boxplot Histogramm/langewagner.r | no_license | Sumidu/rwth-plotting-tutorial | R | false | false | 443 | r | # Bibliotheken laden
library(tidyverse)
library(psych)
library(ggplot2)
# Hilfe zu einem Datensatz (hier Titanic aus datasets)
?msleep
data("msleep")
msleeplibrary(ggplot2)
ggplot(data = msleep) +
aes(x = vore, y = sleep_total) +
geom_boxplot(fill = "#0c4c8a") +
labs(title = "Insektenfresser schlafen länger"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/checkDataReturn.R
\name{checkDataReturn_forecasts}
\alias{checkDataReturn_forecasts}
\title{checkDataReturn_forecasts}
\usage{
checkDataReturn_forecasts(dataset, day_start, day_end, block_size)
}
\arguments{
\item{-}{dataset: the data.frame t... | /man/checkDataReturn_forecasts.Rd | permissive | sebxwolf/aWhere-R-Library | R | false | true | 842 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/checkDataReturn.R
\name{checkDataReturn_forecasts}
\alias{checkDataReturn_forecasts}
\title{checkDataReturn_forecasts}
\usage{
checkDataReturn_forecasts(dataset, day_start, day_end, block_size)
}
\arguments{
\item{-}{dataset: the data.frame t... |
\name{studentGrowthPercentiles}
\alias{studentGrowthPercentiles}
\title{Student Growth Percentiles}
\description{
Function to calculate student growth percentiles using large scale assessment data.
Outputs growth percentiles for each student and supplies various options as function arguments.
Results from this functio... | /man/studentGrowthPercentiles.Rd | no_license | lr236007/SGP | R | false | false | 25,210 | rd | \name{studentGrowthPercentiles}
\alias{studentGrowthPercentiles}
\title{Student Growth Percentiles}
\description{
Function to calculate student growth percentiles using large scale assessment data.
Outputs growth percentiles for each student and supplies various options as function arguments.
Results from this functio... |
# importing data from tidytuesday github
library(httr)
library(dplyr)
library(dbplyr)
library(tidyverse)
library(haven)
library(magick)
library(tesseract)
library("googledrive")
library(readr)
library(here)
library(readxl)
library(googlesheets4)
library(jsonlite)
library(RSQLite)
library(ProjectTemplate)
library(rvest)... | /src/import_data_from_git.R | no_license | hallchr/tidy_tuesday | R | false | false | 1,514 | r | # importing data from tidytuesday github
library(httr)
library(dplyr)
library(dbplyr)
library(tidyverse)
library(haven)
library(magick)
library(tesseract)
library("googledrive")
library(readr)
library(here)
library(readxl)
library(googlesheets4)
library(jsonlite)
library(RSQLite)
library(ProjectTemplate)
library(rvest)... |
#' Simulate time series based on ARIMA models
#'
#' simulate multiple time series for a given series based on ARIMA models
#' @param y a time series or M-competition data time series (Mcomp)
#' @param Nsim number of time series to simulate
#' @param Combine if TRUE, training and test data in the M-competition data are ... | /R/simulate_arimabased.R | no_license | mohcinemadkour/seer | R | false | false | 2,143 | r | #' Simulate time series based on ARIMA models
#'
#' simulate multiple time series for a given series based on ARIMA models
#' @param y a time series or M-competition data time series (Mcomp)
#' @param Nsim number of time series to simulate
#' @param Combine if TRUE, training and test data in the M-competition data are ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidiers_ml_aft_survival_regression.R
\name{ml_survival_regression_tidiers}
\alias{ml_survival_regression_tidiers}
\alias{tidy.ml_model_aft_survival_regression}
\alias{augment.ml_model_aft_survival_regression}
\alias{glance.ml_model_aft_surviv... | /man/ml_survival_regression_tidiers.Rd | permissive | sparklyr/sparklyr | R | false | true | 828 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidiers_ml_aft_survival_regression.R
\name{ml_survival_regression_tidiers}
\alias{ml_survival_regression_tidiers}
\alias{tidy.ml_model_aft_survival_regression}
\alias{augment.ml_model_aft_survival_regression}
\alias{glance.ml_model_aft_surviv... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot_shiny.R
\name{ggplot_shiny}
\alias{ggplot_shiny}
\title{Creating a graphical user interface for creating ggplot-graphs.}
\usage{
ggplot_shiny(dataset = NA)
}
\arguments{
\item{dataset}{A dataset (optional).}
}
\value{
A GUI for visuali... | /man/ggplot_shiny.Rd | no_license | jelkink/ggplotgui | R | false | true | 481 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot_shiny.R
\name{ggplot_shiny}
\alias{ggplot_shiny}
\title{Creating a graphical user interface for creating ggplot-graphs.}
\usage{
ggplot_shiny(dataset = NA)
}
\arguments{
\item{dataset}{A dataset (optional).}
}
\value{
A GUI for visuali... |
# TOOL norm-cdna.R: cDNA (cDNA data preprocessing. Automatically averages all the rows, i.e., genes that have the same name.)
# INPUT microarray{...}.tsv: microarray{...}.tsv TYPE CDNA
# OUTPUT normalized.tsv: normalized.tsv
# OUTPUT META phenodata.tsv: phenodata.tsv
# PARAMETER background.treatment: "Background tre... | /tools/microarray/R/norm-cdna.R | permissive | oheil/chipster-tools | R | false | false | 3,036 | r | # TOOL norm-cdna.R: cDNA (cDNA data preprocessing. Automatically averages all the rows, i.e., genes that have the same name.)
# INPUT microarray{...}.tsv: microarray{...}.tsv TYPE CDNA
# OUTPUT normalized.tsv: normalized.tsv
# OUTPUT META phenodata.tsv: phenodata.tsv
# PARAMETER background.treatment: "Background tre... |
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/haematopoietic.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.02,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/haematopoietic/haematopo... | /Model/EN/ReliefF/haematopoietic/haematopoietic_012.R | no_license | leon1003/QSMART | R | false | false | 377 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/haematopoietic.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.02,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/haematopoietic/haematopo... |
author_dbg <- FALSE
as.version_string <- function(fmt = "", vstring = "5.26.0") {
vstring <- gsub(vstring, pattern = "^(perl-|v)", replacement = "")
v <- as.integer(unlist(strsplit(vstring, "\\.")))
sprintf(fmt, v[1], v[2], v[3])
}
as.perlbrew_version <- function(vstring = "5.26.0") {
as.version_string("perl... | /tests/testthat/setup.R | permissive | kiwiroy/perlbrewr | R | false | false | 4,065 | r |
author_dbg <- FALSE
as.version_string <- function(fmt = "", vstring = "5.26.0") {
vstring <- gsub(vstring, pattern = "^(perl-|v)", replacement = "")
v <- as.integer(unlist(strsplit(vstring, "\\.")))
sprintf(fmt, v[1], v[2], v[3])
}
as.perlbrew_version <- function(vstring = "5.26.0") {
as.version_string("perl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.