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 |
|---|---|---|---|---|---|---|---|---|---|
#!/usr/bin/env Rscript
library(lattice)
library(ggplot2)
args = commandArgs(TRUE)
if (length(args)==0){
stop("\n\nboxPlotFactors title factors.tab outfile.pdf\n\n")
}
titleRoot = args[1]
fileName = args[2]
plotOutFile = args[3]
#titleRoot = "BLCA"
#fileName = "factors.tab"
#plotOutFile = "output.pdf"
classifiers... | /boxPlotFactors.R | permissive | jdurbin/wekaMine | R | false | false | 1,721 | r | #!/usr/bin/env Rscript
library(lattice)
library(ggplot2)
args = commandArgs(TRUE)
if (length(args)==0){
stop("\n\nboxPlotFactors title factors.tab outfile.pdf\n\n")
}
titleRoot = args[1]
fileName = args[2]
plotOutFile = args[3]
#titleRoot = "BLCA"
#fileName = "factors.tab"
#plotOutFile = "output.pdf"
classifiers... |
#' Haplotype Diversity
#' @description This function calculates haplotipe diversity from DNAbin sequence file
#' @param x a DNAbin object
#' @return Number of haplotypes and haplotype diversity and of x.
#' @author Marcelo Gehara
#' @references Nei, M., & Tajima, F. (1981). DNA polymorphism detectable by restriction en... | /R/hap.div.R | no_license | gehara/PipeMaster | R | false | false | 676 | r | #' Haplotype Diversity
#' @description This function calculates haplotipe diversity from DNAbin sequence file
#' @param x a DNAbin object
#' @return Number of haplotypes and haplotype diversity and of x.
#' @author Marcelo Gehara
#' @references Nei, M., & Tajima, F. (1981). DNA polymorphism detectable by restriction en... |
library(DoE.base)
### Name: Class design and accessors
### Title: Class design and its accessor functions
### Aliases: design undesign redesign desnum desnum<- run.order run.order<-
### design.info design.info<- factor.names factor.names<- response.names
### response.names<- col.remove ord
### Keywords: array des... | /data/genthat_extracted_code/DoE.base/examples/class-design.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,538 | r | library(DoE.base)
### Name: Class design and accessors
### Title: Class design and its accessor functions
### Aliases: design undesign redesign desnum desnum<- run.order run.order<-
### design.info design.info<- factor.names factor.names<- response.names
### response.names<- col.remove ord
### Keywords: array des... |
trains <- 6
stations <- 27
Args <- commandArgs(); # retrieve args
folder = Args[8];
#Go through all train files
for(t in 0:trains){
#Create output files
reg_outfile <- paste(folder, "/train_", t, "_reg_plot.txt", sep="");
hand_outfile <- paste(folder, "/train_", t, "_hand_plot.txt", sep="");
#Rea... | /scripts/train_results.R | no_license | DevanR/RailwaySimulator | R | false | false | 1,262 | r |
trains <- 6
stations <- 27
Args <- commandArgs(); # retrieve args
folder = Args[8];
#Go through all train files
for(t in 0:trains){
#Create output files
reg_outfile <- paste(folder, "/train_", t, "_reg_plot.txt", sep="");
hand_outfile <- paste(folder, "/train_", t, "_hand_plot.txt", sep="");
#Rea... |
setwd("/Users/ruchirpatel/Documents/R/Assignment3/ExData_Plotting1/Assignment")
data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, stringsAsFactors = FALSE)
data$headerDate <- as.Date(data$headerDate, "%d/%m/%Y")
start <- as.Date("2007-02-01")
finish <- as.Date("2007-02-02")
data1 <- subs... | /Plot3.R | no_license | ruchirpatel22/ExData_Plotting1 | R | false | false | 1,364 | r | setwd("/Users/ruchirpatel/Documents/R/Assignment3/ExData_Plotting1/Assignment")
data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, stringsAsFactors = FALSE)
data$headerDate <- as.Date(data$headerDate, "%d/%m/%Y")
start <- as.Date("2007-02-01")
finish <- as.Date("2007-02-02")
data1 <- subs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compareFit.R
\name{compareFit}
\alias{compareFit}
\title{Build an object summarizing fit indices across multiple models}
\usage{
compareFit(..., nested = TRUE, argsLRT = list(), indices = TRUE,
moreIndices = FALSE, baseline.model = NULL, nP... | /semTools/man/compareFit.Rd | no_license | simsem/semTools | R | false | true | 5,030 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compareFit.R
\name{compareFit}
\alias{compareFit}
\title{Build an object summarizing fit indices across multiple models}
\usage{
compareFit(..., nested = TRUE, argsLRT = list(), indices = TRUE,
moreIndices = FALSE, baseline.model = NULL, nP... |
# File: 06_samtools_array_job.R
# Auth: umar.niazi@kcl.as.uk
# DESC: create a parameter file and shell script to run array job on hpc
# Date: 18/08/2017
## set variables and source libraries
source('header.R')
## connect to mysql database to get sample information
library('RMySQL')
##### connect to mysql database t... | /S126/06_samtools_array_job.R | permissive | uhkniazi/BRC_NeuralTube_Miho | R | false | false | 6,162 | r | # File: 06_samtools_array_job.R
# Auth: umar.niazi@kcl.as.uk
# DESC: create a parameter file and shell script to run array job on hpc
# Date: 18/08/2017
## set variables and source libraries
source('header.R')
## connect to mysql database to get sample information
library('RMySQL')
##### connect to mysql database t... |
twin.cells<- function(training_data){
train.tw<-data.frame(not.mut=c(), same=c(), one.mut=c(), both.mut=c(), rf=c())
for(ii in 1:nrow(training_data)){
xx = as.character(training_data[ii,]$ground)
x1<-strsplit(xx,"")[[1]]
x2<-match(x1,c("_"))
x2[is.na(x2)]<-0
for(i in 1:(length(x2)-18)){
i... | /train.R | no_license | rretkute/ml_cell_lineage_reconstruction | R | false | false | 3,877 | r |
twin.cells<- function(training_data){
train.tw<-data.frame(not.mut=c(), same=c(), one.mut=c(), both.mut=c(), rf=c())
for(ii in 1:nrow(training_data)){
xx = as.character(training_data[ii,]$ground)
x1<-strsplit(xx,"")[[1]]
x2<-match(x1,c("_"))
x2[is.na(x2)]<-0
for(i in 1:(length(x2)-18)){
i... |
# install.packages("zoo")
# install.packages("ggplot2")
# library(ggplot2)
# library(zoo)
## Set working directory
# setwd("C:/Users/cj5/Desktop/Waste_TS/R")
setwd("C:/RWEM_processed_calvin/R")
#### STEP 1: IMPORT DATA - Set Zeros as Null Values
mydata <- read.csv("Quarterly_Data_v2.csv", na.string =... | /Quarterly_Script.r | no_license | karaframe/waste | R | false | false | 3,869 | r | # install.packages("zoo")
# install.packages("ggplot2")
# library(ggplot2)
# library(zoo)
## Set working directory
# setwd("C:/Users/cj5/Desktop/Waste_TS/R")
setwd("C:/RWEM_processed_calvin/R")
#### STEP 1: IMPORT DATA - Set Zeros as Null Values
mydata <- read.csv("Quarterly_Data_v2.csv", na.string =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/importBreakpointBed.R
\name{importBreakpointBed}
\alias{importBreakpointBed}
\title{Import a breakpoint BED file.}
\arguments{
\item{breakpoint_fn}{the filename of the breakpoint bed file}
}
\value{
a Genomic Interactions Object
}
\descriptio... | /man/importBreakpointBed.Rd | no_license | masoodzaka/CNVScope | R | false | true | 567 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/importBreakpointBed.R
\name{importBreakpointBed}
\alias{importBreakpointBed}
\title{Import a breakpoint BED file.}
\arguments{
\item{breakpoint_fn}{the filename of the breakpoint bed file}
}
\value{
a Genomic Interactions Object
}
\descriptio... |
# Ejemplo Inicial ---------------------------------------------------------
#Primero simulemos
#Vector de probabilidades para las X
f<-c(0.9,0.1*0.8,0.1*0.2)
regresa.una.S<-function(){
#Genera una N
N<-sample(x = c(0,3), #De este vector
size = 1, #Toma una muestra de tamaño 1
repla... | /Teoría del Riesgo (UNAM)/_Scripts_/6.1 Modelo Colectivo.R | no_license | hejurado/R_Actuarial | R | false | false | 19,505 | r |
# Ejemplo Inicial ---------------------------------------------------------
#Primero simulemos
#Vector de probabilidades para las X
f<-c(0.9,0.1*0.8,0.1*0.2)
regresa.una.S<-function(){
#Genera una N
N<-sample(x = c(0,3), #De este vector
size = 1, #Toma una muestra de tamaño 1
repla... |
# Name : plotfit.R0.R
# Desc : A set of tweaked "plot" functions designed to easily plot R objects
# from any of the supported estimation methods.
# Date : 2011/11/09
# Update : 2023/03/03
# Author : Boelle, Obadia
###############################################################################
#' @tit... | /R/plotfit.R0.R.R | no_license | tobadia/R0 | R | false | false | 8,235 | r | # Name : plotfit.R0.R
# Desc : A set of tweaked "plot" functions designed to easily plot R objects
# from any of the supported estimation methods.
# Date : 2011/11/09
# Update : 2023/03/03
# Author : Boelle, Obadia
###############################################################################
#' @tit... |
#######################################################
#apply함수
#apply함수는 행렬의 행 또는 열 방향으로 특정 함수 적용
#######################################################
test <- matrix(1:12, ncol = 3)
apply(test, 1, sum) #두번째 인자는 행과 열의 방향을 의미 1은 행, 2는 열
#data.frame도 적용 가능한지 테스트
df_test <- as.data.frame(test)
df_test
apply(df_test,... | /Day003/day3.R | no_license | woons/project_woons | R | false | false | 1,154 | r | #######################################################
#apply함수
#apply함수는 행렬의 행 또는 열 방향으로 특정 함수 적용
#######################################################
test <- matrix(1:12, ncol = 3)
apply(test, 1, sum) #두번째 인자는 행과 열의 방향을 의미 1은 행, 2는 열
#data.frame도 적용 가능한지 테스트
df_test <- as.data.frame(test)
df_test
apply(df_test,... |
setwd("E:/EDA with R/coursera")
data<-read.csv("household_power_consumption.txt",sep=';')
dat<-data
dat$Date<-as.Date(dat$Date,"%d/%m/%Y")
dat<-subset(dat,Date=="2007-02-01" | Date=="2007-02-02")
dat<-subset(dat,!is.na(dat$Date))
x<-as.POSIXct(paste(dat$Date,dat$Time))
png(file="plot1.png",width=480,height=480)
hist(a... | /plot1.r | no_license | harsha-yel/ExData_Plotting1 | R | false | false | 422 | r | setwd("E:/EDA with R/coursera")
data<-read.csv("household_power_consumption.txt",sep=';')
dat<-data
dat$Date<-as.Date(dat$Date,"%d/%m/%Y")
dat<-subset(dat,Date=="2007-02-01" | Date=="2007-02-02")
dat<-subset(dat,!is.na(dat$Date))
x<-as.POSIXct(paste(dat$Date,dat$Time))
png(file="plot1.png",width=480,height=480)
hist(a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlayByPlayBoxScore.R
\name{season_play_by_play}
\alias{season_play_by_play}
\title{Parsed Descriptive Play-by-Play Function for a Full Season}
\usage{
season_play_by_play(Season)
}
\arguments{
\item{Season}{(numeric) A 4-digit year correspond... | /man/season_play_by_play.Rd | no_license | bensoltoff/nflscrapR | R | false | true | 1,240 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlayByPlayBoxScore.R
\name{season_play_by_play}
\alias{season_play_by_play}
\title{Parsed Descriptive Play-by-Play Function for a Full Season}
\usage{
season_play_by_play(Season)
}
\arguments{
\item{Season}{(numeric) A 4-digit year correspond... |
# Hsiang-Leng Wang
# 2019/11/07
# RStudio Exercise 2
# ------------------------
# Data wrangling
# read the data into memory
lrn14 <- read.table("http://www.helsinki.fi/~kvehkala/JYTmooc/JYTOPKYS3-data.txt", sep="\t", header=TRUE)
# Look at the dimensions of the data
dim(lrn14)
# Look at the structure of the data
st... | /data/create_learning2014.R | no_license | hlengw/IODS-project | R | false | false | 2,594 | r | # Hsiang-Leng Wang
# 2019/11/07
# RStudio Exercise 2
# ------------------------
# Data wrangling
# read the data into memory
lrn14 <- read.table("http://www.helsinki.fi/~kvehkala/JYTmooc/JYTOPKYS3-data.txt", sep="\t", header=TRUE)
# Look at the dimensions of the data
dim(lrn14)
# Look at the structure of the data
st... |
sea <- read_csv("data-processed/sea_processed2.csv")
sea %>%
filter(temperature == 5) %>%
filter(time_since_innoc_days > 30) %>%
summarise(mean_size = mean(cell_volume))
sea %>%
filter(temperature < 32) %>%
filter(time_since_innoc_days > 25) %>%
group_by(rep, temperature) %>%
summarise(mean_size = ... | /Rscripts/21_messing_around.R | no_license | OConnor-Lab-UBC/J-TEMP | R | false | false | 569 | r |
sea <- read_csv("data-processed/sea_processed2.csv")
sea %>%
filter(temperature == 5) %>%
filter(time_since_innoc_days > 30) %>%
summarise(mean_size = mean(cell_volume))
sea %>%
filter(temperature < 32) %>%
filter(time_since_innoc_days > 25) %>%
group_by(rep, temperature) %>%
summarise(mean_size = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_runner_internal.R
\name{update_temporal_params}
\alias{update_temporal_params}
\title{Updates parameters on a certain date}
\usage{
update_temporal_params(pars, pars_to_update, sd_update_metrics = NULL)
}
\arguments{
\item{pars}{existin... | /HutchCOVID/man/update_temporal_params.Rd | no_license | FredHutch/COVID_modeling_schools | R | false | true | 594 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_runner_internal.R
\name{update_temporal_params}
\alias{update_temporal_params}
\title{Updates parameters on a certain date}
\usage{
update_temporal_params(pars, pars_to_update, sd_update_metrics = NULL)
}
\arguments{
\item{pars}{existin... |
corr <- function(directory, threshold = 0) {
fileList <- list.files(directory, pattern = ".csv", full.names = TRUE);
df <- complete(directory)
# print(str(df)) # 332 obs
ids <- df[df["nobs"] > threshold,]$id # select dataframe rows , > threshold
# print(ids)
# str(ids) # 323 obs
corrr <- numeric()
... | /corr_week_2.R | no_license | yeasinopu17/r_coursera | R | false | false | 589 | r | corr <- function(directory, threshold = 0) {
fileList <- list.files(directory, pattern = ".csv", full.names = TRUE);
df <- complete(directory)
# print(str(df)) # 332 obs
ids <- df[df["nobs"] > threshold,]$id # select dataframe rows , > threshold
# print(ids)
# str(ids) # 323 obs
corrr <- numeric()
... |
########################################################################################################
# Process to generate a NetCDF file with raw data (L0 product) using location data
# Project: SOCIB Seaturtle
# Author: Chloé Dalleau
# Co-author: David March
# Date: 08/08/2016
#
# Description:
# This script is the... | /process_netcdf_L0.R | no_license | cynsky/Gliding-turtles | R | false | false | 21,317 | r | ########################################################################################################
# Process to generate a NetCDF file with raw data (L0 product) using location data
# Project: SOCIB Seaturtle
# Author: Chloé Dalleau
# Co-author: David March
# Date: 08/08/2016
#
# Description:
# This script is the... |
context("sp germplasm_details_study")
con <- ba_db()$sweetpotatobase
test_that("Germplasm_details study results are present", {
res <- ba_germplasm_details_study(con = con, studyDbId = "1207")
expect_that(nrow(res) >= 8, is_true())
})
test_that("Germplasm_details out formats work", {
res <- ba_germplasm_det... | /tests/sweetpotatobase/test_sp_germplasm_details_study.R | no_license | ClayBirkett/brapi | R | false | false | 713 | r | context("sp germplasm_details_study")
con <- ba_db()$sweetpotatobase
test_that("Germplasm_details study results are present", {
res <- ba_germplasm_details_study(con = con, studyDbId = "1207")
expect_that(nrow(res) >= 8, is_true())
})
test_that("Germplasm_details out formats work", {
res <- ba_germplasm_det... |
# Exercise 8: Pulitzer Prizes
# Read in the data
pulitzer <- read.csv("data/pulitzer-circulation-data.csv", stringsAsFactors = FALSE)
# Install and load the needed libraries
# Be sure to comment out the install.packages function so it won't install it every time it runs
# Remeber you only need to install a package on... | /exercise-8/exercise.R | permissive | brendanjacobsen/m11-dplyr | R | false | false | 1,483 | r | # Exercise 8: Pulitzer Prizes
# Read in the data
pulitzer <- read.csv("data/pulitzer-circulation-data.csv", stringsAsFactors = FALSE)
# Install and load the needed libraries
# Be sure to comment out the install.packages function so it won't install it every time it runs
# Remeber you only need to install a package on... |
#' Iteratively query a database for matches to a query vector.
#'
#' `iterative_select()` returns a tibble with all entries of the database that
#' match the query vector in any of the selected columns.
#'
#' @param query A character vector.
#' @param database A data.frame or tibble A database to be queried.
#' ... | /R/select.R | no_license | datarail/genebabel | R | false | false | 4,779 | r |
#' Iteratively query a database for matches to a query vector.
#'
#' `iterative_select()` returns a tibble with all entries of the database that
#' match the query vector in any of the selected columns.
#'
#' @param query A character vector.
#' @param database A data.frame or tibble A database to be queried.
#' ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test_general.R
\name{pFtest}
\alias{pFtest}
\alias{pFtest.formula}
\alias{pFtest.plm}
\title{F Test for Individual and/or Time Effects}
\usage{
pFtest(x, ...)
\method{pFtest}{formula}(x, data, ...)
\method{pFtest}{plm}(x, z, ...)
}
\argumen... | /man/pFtest.Rd | no_license | cran/plm | R | false | true | 1,634 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test_general.R
\name{pFtest}
\alias{pFtest}
\alias{pFtest.formula}
\alias{pFtest.plm}
\title{F Test for Individual and/or Time Effects}
\usage{
pFtest(x, ...)
\method{pFtest}{formula}(x, data, ...)
\method{pFtest}{plm}(x, z, ...)
}
\argumen... |
# DataScience01c
# Data Preparation
# Start fresh
rm(list=ls())
# Outlier Removal
# This is a vector
c(1, -1, -5, -1, -1, -19, 3, -1, -1, -5)
# assign the vector
Vector <- c(1, -1, -5, -1, -1, -19, 3, -1, -1, -5)
# Guestimate: -19 is the outlier
# Anything less than -6 can be removed
# The following indicates wheth... | /Lesson 01/R files/DataScience01c.R | no_license | samir72/What-is-Data-Science | R | false | false | 4,281 | r | # DataScience01c
# Data Preparation
# Start fresh
rm(list=ls())
# Outlier Removal
# This is a vector
c(1, -1, -5, -1, -1, -19, 3, -1, -1, -5)
# assign the vector
Vector <- c(1, -1, -5, -1, -1, -19, 3, -1, -1, -5)
# Guestimate: -19 is the outlier
# Anything less than -6 can be removed
# The following indicates wheth... |
code <- c(
"function [win, aver] = dice(B)",
"%Play the dice game B times",
"gains = [-1, 2, -3, 4, -5, 6];",
"plays = unidrnd(6, B, 1);",
"win = sum(gains(plays));",
"aver = win;"
)
setFunction(matlab, code)
evaluate(matlab, "[w, a] = dice(1000);")
res <- getVariable(matlab, c("w", "a"))
print(res)
| /incl/Matlab.setFunction.R | no_license | HenrikBengtsson/R.matlab | R | false | false | 314 | r | code <- c(
"function [win, aver] = dice(B)",
"%Play the dice game B times",
"gains = [-1, 2, -3, 4, -5, 6];",
"plays = unidrnd(6, B, 1);",
"win = sum(gains(plays));",
"aver = win;"
)
setFunction(matlab, code)
evaluate(matlab, "[w, a] = dice(1000);")
res <- getVariable(matlab, c("w", "a"))
print(res)
|
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | /r/R/duckdb.R | permissive | lidavidm/arrow | R | false | false | 5,567 | r | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
# Betting functions
even = function(x)
{
win = (x %% 2 == 0) & (x != 0)
ifelse(win, 1, -1)
}
high = function(x)
{
win = (18 < x) & (x != 0)
ifelse(win, 1, -1)
}
column1 = function(x)
{
ifelse(x %% 3 == 1, 2, -1)
}
single = function(x, n = 1)
{
ifelse(x == n, 35, -1)
}
# Construct a simpl... | /roulette.R | no_license | clarkfitzg/stat128-fall20 | R | false | false | 1,484 | r | # Betting functions
even = function(x)
{
win = (x %% 2 == 0) & (x != 0)
ifelse(win, 1, -1)
}
high = function(x)
{
win = (18 < x) & (x != 0)
ifelse(win, 1, -1)
}
column1 = function(x)
{
ifelse(x %% 3 == 1, 2, -1)
}
single = function(x, n = 1)
{
ifelse(x == n, 35, -1)
}
# Construct a simpl... |
#' Data for \pkg{brms} Models
#'
#' Generate data for \pkg{brms} models to be passed to \pkg{Stan}
#'
#' @inheritParams brm
#' @param control A named list currently for internal usage only
#' @param ... Other potential arguments
#'
#' @aliases brmdata
#'
#' @return A named list of objects containing the re... | /brms/R/make_standata.R | no_license | ingted/R-Examples | R | false | false | 14,873 | r | #' Data for \pkg{brms} Models
#'
#' Generate data for \pkg{brms} models to be passed to \pkg{Stan}
#'
#' @inheritParams brm
#' @param control A named list currently for internal usage only
#' @param ... Other potential arguments
#'
#' @aliases brmdata
#'
#' @return A named list of objects containing the re... |
#'
#'@title Complete spatiotemporal normalization
#'@description The script imports time series, calculates normalized series, estimates input uncertainty propagation in normalized values and plots normalized series with their uncertainty.
#'@param
#'@param
#'@examples
#
#
#'@author Effie Pavlidou
#'@export
#'
#impor... | /R/normbase.R | no_license | effie-pav/detex | R | false | false | 1,768 | r | #'
#'@title Complete spatiotemporal normalization
#'@description The script imports time series, calculates normalized series, estimates input uncertainty propagation in normalized values and plots normalized series with their uncertainty.
#'@param
#'@param
#'@examples
#
#
#'@author Effie Pavlidou
#'@export
#'
#impor... |
#' Title: Hult International Business School Student Spotlight
#' Purpose: Is there any bias in the showcased ambassadors' bio and interest?
#' Author: Stefania Menini
#' E-mail: smenini2019@student.hult.edu
#' Date: Mar 1 2021
################################################################################
# ... | /Stefania_Menini_Student_Spotlight_Case.R | no_license | StefaniaMenini/hult-ambassadors-text-analysis | R | false | false | 22,879 | r | #' Title: Hult International Business School Student Spotlight
#' Purpose: Is there any bias in the showcased ambassadors' bio and interest?
#' Author: Stefania Menini
#' E-mail: smenini2019@student.hult.edu
#' Date: Mar 1 2021
################################################################################
# ... |
#################################
### Homework ideas
#################################
rm(list=ls()) # remove all
options(max.print=80)
options(digits=3)
par(new=TRUE) # allow new plot on same chart
par(las=1) # set text printing to "horizontal"
library(zoo)
# good package loading script inside functions
stopifn... | /FRE_homework_ideas.R | no_license | githubfun/FRE6871 | R | false | false | 9,441 | r | #################################
### Homework ideas
#################################
rm(list=ls()) # remove all
options(max.print=80)
options(digits=3)
par(new=TRUE) # allow new plot on same chart
par(las=1) # set text printing to "horizontal"
library(zoo)
# good package loading script inside functions
stopifn... |
snp_data <- fread("snp_data.csv", verbose = FALSE) %>%
tbl_df()
my_portfolio <- data_frame(
stock_name = c("AAPL", "GOOG", "SBUX", "NKE"),
volume = c(1000, 1000, 1000, 1000)
)
function(input, output) {
my_portfolio <- reactiveValues(data = data_frame(
ticker = c("AAPL", "GOOG", "SBUX", "NK... | /server.r | no_license | DrRoad/portfolio_optimization_app | R | false | false | 1,078 | r | snp_data <- fread("snp_data.csv", verbose = FALSE) %>%
tbl_df()
my_portfolio <- data_frame(
stock_name = c("AAPL", "GOOG", "SBUX", "NKE"),
volume = c(1000, 1000, 1000, 1000)
)
function(input, output) {
my_portfolio <- reactiveValues(data = data_frame(
ticker = c("AAPL", "GOOG", "SBUX", "NK... |
#' Title: Read TXT files
#' Purpose: Read .txt
#' Author: Ted Kwartler
#' email: edwardkwartler@fas.harvard.edu
#' License: GPL>=3
#' Date: Dec 29 2020
#'
# Read in a txt file (change this to your file)
txt1 <- readLines('https://raw.githubusercontent.com/kwartler/GSERM_TextMining/cacd1d9131fef31309d673b24e744a6fee542... | /lessons/oct22/scripts/E_readTXT_LIVE.R | no_license | Fstips/LUX_NLP_student | R | false | false | 940 | r | #' Title: Read TXT files
#' Purpose: Read .txt
#' Author: Ted Kwartler
#' email: edwardkwartler@fas.harvard.edu
#' License: GPL>=3
#' Date: Dec 29 2020
#'
# Read in a txt file (change this to your file)
txt1 <- readLines('https://raw.githubusercontent.com/kwartler/GSERM_TextMining/cacd1d9131fef31309d673b24e744a6fee542... |
# see https://stats.stackexchange.com/a/67450
# for more on this
calc_score <- function(odds,
base_odds = 50,
base_score = 650,
pdo = 15,
upper_limit = 1000,
lower_limit = 0) {
# scale:
scale_fa... | /src/score_function_example.R | no_license | Johnwood118/eds_modelling | R | false | false | 594 | r | # see https://stats.stackexchange.com/a/67450
# for more on this
calc_score <- function(odds,
base_odds = 50,
base_score = 650,
pdo = 15,
upper_limit = 1000,
lower_limit = 0) {
# scale:
scale_fa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.cloudfront_operations.R
\name{create_streaming_distribution_with_tags}
\alias{create_streaming_distribution_with_tags}
\title{Create a new streaming distribution with tags}
\usage{
create_streaming_distribution_with_tags(StreamingDist... | /service/paws.cloudfront/man/create_streaming_distribution_with_tags.Rd | permissive | CR-Mercado/paws | R | false | true | 1,476 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.cloudfront_operations.R
\name{create_streaming_distribution_with_tags}
\alias{create_streaming_distribution_with_tags}
\title{Create a new streaming distribution with tags}
\usage{
create_streaming_distribution_with_tags(StreamingDist... |
# These functions create a special "matrix" from a user supplied matrix, that
# can be cached, and then computes the inverse. If the inverse is already
# available in cache data, it returs the cached inverse and lets the user know
cacheSolve <- function(x,...){
## Return a matrix that is the inverse of 'x'
m ... | /cacheSolve.R | no_license | irganomix/Peer-graded-Assignment-Programming-Assignment-2-Lexical-Scoping | R | false | false | 486 | r | # These functions create a special "matrix" from a user supplied matrix, that
# can be cached, and then computes the inverse. If the inverse is already
# available in cache data, it returs the cached inverse and lets the user know
cacheSolve <- function(x,...){
## Return a matrix that is the inverse of 'x'
m ... |
#############################################
#Packae is liscnesed by #
# KrewnSolotions /< /? [- \/\/ |\| #
#############################################
#http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3258155/
m8 <- function(data1){
Cq <- list()
Eff <- list()
F0 <- list()
... | /m8.R | permissive | requiem3/Rqpcr | R | false | false | 1,733 | r | #############################################
#Packae is liscnesed by #
# KrewnSolotions /< /? [- \/\/ |\| #
#############################################
#http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3258155/
m8 <- function(data1){
Cq <- list()
Eff <- list()
F0 <- list()
... |
dhist <- function(x,fac,col,legend,pos.legend,title.legend=NULL,lab.legend=NULL,xlab,ylab=NULL,
drawextaxes=TRUE,drawintaxes=FALSE,xlim=NULL,...) {
ymax <- integer(nlevels(fac))
for (i in 1:nlevels(fac)) {
ymax[i] <- max(density(x[as.numeric(fac)==i])$y)
}
h <- suppressWarnings(hist(x,freq=FALSE,plo... | /R/dhist.R | no_license | SeptiawanAjiP/RVAideMemoire | R | false | false | 1,625 | r | dhist <- function(x,fac,col,legend,pos.legend,title.legend=NULL,lab.legend=NULL,xlab,ylab=NULL,
drawextaxes=TRUE,drawintaxes=FALSE,xlim=NULL,...) {
ymax <- integer(nlevels(fac))
for (i in 1:nlevels(fac)) {
ymax[i] <- max(density(x[as.numeric(fac)==i])$y)
}
h <- suppressWarnings(hist(x,freq=FALSE,plo... |
### MIDTERM ###
#1
setwd("C:/Users/Marie/Documents/Schools/The New School/Data Visualization/Assignment 3")
titanic <- read.csv("titanic.txt")
#2. Embarkation
ForGraph <- titanic[(titanic$Embarked == '') == FALSE , ]
ForGraph$Embarked.f <- factor(ForGraph$Embarked)
levels(ForGraph$Embarked.f) <- c("Cherbou... | /Assignments/midterm/bakke.R | no_license | aaronxhill/dataviz14f | R | false | false | 2,043 | r | ### MIDTERM ###
#1
setwd("C:/Users/Marie/Documents/Schools/The New School/Data Visualization/Assignment 3")
titanic <- read.csv("titanic.txt")
#2. Embarkation
ForGraph <- titanic[(titanic$Embarked == '') == FALSE , ]
ForGraph$Embarked.f <- factor(ForGraph$Embarked)
levels(ForGraph$Embarked.f) <- c("Cherbou... |
# Sepal.Length 값을 예측하는 회귀분석 수행
reg_model <- lm(Sepal.Length ~ ., data=iris)
reg_model$coefficients # 계수
reg_model$residuals # 잔차
summary(reg_model) # 회귀분석 결과 정보
# p-value < 0.01이므로 유의미한 모델
# 예측
predict(reg_model)
| /R/Machine_Learning_Linear_Regression_Basic.R | no_license | nuno1111/Bigdata-ML-Source | R | false | false | 290 | r | # Sepal.Length 값을 예측하는 회귀분석 수행
reg_model <- lm(Sepal.Length ~ ., data=iris)
reg_model$coefficients # 계수
reg_model$residuals # 잔차
summary(reg_model) # 회귀분석 결과 정보
# p-value < 0.01이므로 유의미한 모델
# 예측
predict(reg_model)
|
#' Filter predictors according to specified criteria.
#'
#' @param traindata the train set
#' @param testdata the test set
#' @param y the response variable. Must be not \code{NULL} if \code{correlationThreshold} is not \code{NULL}.
#' @param removeOnlyZeroVariacePredictors \code{TRUE} to remove only zero varianc... | /R-package/R/featureFilter.R | permissive | fxcebx/fast-furious | R | false | false | 12,921 | r |
#' Filter predictors according to specified criteria.
#'
#' @param traindata the train set
#' @param testdata the test set
#' @param y the response variable. Must be not \code{NULL} if \code{correlationThreshold} is not \code{NULL}.
#' @param removeOnlyZeroVariacePredictors \code{TRUE} to remove only zero varianc... |
\name{PRESS}
\alias{PRESS}
\alias{PRESS.lm}
\alias{PRESS.fmo}
\title{ PRESS }
\description{
Convenience function to calculate the PRESS criterion value of a fitted lm object.
}
\author{Andrew K. Smith}
\keyword{models} | /man/PRESS.Rd | no_license | cran/CombMSC | R | false | false | 231 | rd | \name{PRESS}
\alias{PRESS}
\alias{PRESS.lm}
\alias{PRESS.fmo}
\title{ PRESS }
\description{
Convenience function to calculate the PRESS criterion value of a fitted lm object.
}
\author{Andrew K. Smith}
\keyword{models} |
\name{tableau_shape_pal}
\alias{tableau_shape_pal}
\title{Tableau Shape Palettes (discrete)}
\usage{
tableau_shape_pal(palette = "default")
}
\arguments{
\item{palette}{Palette name. One of
\Sexpr[results=rd,stage=build]{ggthemes:::charopts(names(ggthemes::ggthemes_data$tableau$shapes))}.}
}
\description{
Shape... | /man/tableau_shape_pal.Rd | no_license | tomhiatt/ggthemes | R | false | false | 510 | rd | \name{tableau_shape_pal}
\alias{tableau_shape_pal}
\title{Tableau Shape Palettes (discrete)}
\usage{
tableau_shape_pal(palette = "default")
}
\arguments{
\item{palette}{Palette name. One of
\Sexpr[results=rd,stage=build]{ggthemes:::charopts(names(ggthemes::ggthemes_data$tableau$shapes))}.}
}
\description{
Shape... |
## casecross.R
## time-stratified case-crossover
## Oct 2011
## assumes date variable is called 'date'
## quicker version
casecross<-function(formula, data, exclusion=2, stratalength=28,
matchdow=FALSE, usefinalwindow=FALSE, matchconf='',
confrange=0,stratamonth=FALSE){
... | /season/R/casecross.R | no_license | ingted/R-Examples | R | false | false | 6,815 | r | ## casecross.R
## time-stratified case-crossover
## Oct 2011
## assumes date variable is called 'date'
## quicker version
casecross<-function(formula, data, exclusion=2, stratalength=28,
matchdow=FALSE, usefinalwindow=FALSE, matchconf='',
confrange=0,stratamonth=FALSE){
... |
m = matrix( c( 1, 2, 3, 4,
11, 22, 33, 44,
111, 222, 333, 444,
1111,2222,3333,4444),
nrow=4,
ncol=4)
is.matrix(m)
# [1] TRUE
| /functions/is.matrix.R | no_license | ReneNyffenegger/about-r | R | false | false | 209 | r | m = matrix( c( 1, 2, 3, 4,
11, 22, 33, 44,
111, 222, 333, 444,
1111,2222,3333,4444),
nrow=4,
ncol=4)
is.matrix(m)
# [1] TRUE
|
## ---- eval = FALSE---------------------------------------------------------
# crispr_set <- readsToTarget(reads, target = target, reference = reference,
# target.loc = target.loc)
# plotVariants(crispr_set)
# # or use plotVariants(crispr_set, txdb) to additionally show the target
# # ... | /inst/doc/user_guide.R | no_license | HLindsay/CrispRVariants | R | false | false | 20,184 | r | ## ---- eval = FALSE---------------------------------------------------------
# crispr_set <- readsToTarget(reads, target = target, reference = reference,
# target.loc = target.loc)
# plotVariants(crispr_set)
# # or use plotVariants(crispr_set, txdb) to additionally show the target
# # ... |
get_tablename <- function(x) {
UseMethod("get_tablename")
}
get_tablename.default <- function(x) {
x
}
get_tablename.character <- function(x) {
x
}
get_tablename.aws_dynamodb_table <- function(x) {
x$TableName
}
map_attributes <- function(item) {
item_formatted <- list()
for (i in seq_along... | /R/utils.R | no_license | peetermeos/aws.dynamodb | R | false | false | 1,456 | r | get_tablename <- function(x) {
UseMethod("get_tablename")
}
get_tablename.default <- function(x) {
x
}
get_tablename.character <- function(x) {
x
}
get_tablename.aws_dynamodb_table <- function(x) {
x$TableName
}
map_attributes <- function(item) {
item_formatted <- list()
for (i in seq_along... |
test_that("build_sql() requires connection", {
x <- ident("TABLE")
expect_snapshot(error = TRUE, build_sql("SELECT * FROM ", x))
})
| /tests/testthat/test-build-sql.R | permissive | mgirlich/dbplyr | R | false | false | 136 | r | test_that("build_sql() requires connection", {
x <- ident("TABLE")
expect_snapshot(error = TRUE, build_sql("SELECT * FROM ", x))
})
|
library(shiny)
library(forcer)
ui <- fluidPage(
titlePanel("reactR HTMLWidget Example"),
forcerOutput('widgetOutput')
)
server <- function(input, output, session) {
output$widgetOutput <- renderForcer(
forcer("Hello world!")
)
}
shinyApp(ui, server) | /app.R | permissive | react-R/forcer | R | false | false | 264 | r | library(shiny)
library(forcer)
ui <- fluidPage(
titlePanel("reactR HTMLWidget Example"),
forcerOutput('widgetOutput')
)
server <- function(input, output, session) {
output$widgetOutput <- renderForcer(
forcer("Hello world!")
)
}
shinyApp(ui, server) |
\name{Data}
\alias{Data}
\alias{DataCodominant}
\alias{DataDominant}
\alias{DataContingency}
\title{Data preparation}
\description{Read a text file with coordinates and markers in columns and individuals in rows.}
\usage{DataDominant(input_file,conversion,nb_x,nb_y,output_coords="coord_km.txt")
DataCodominant(i... | /man/Data.Rd | no_license | cran/wombsoft | R | false | false | 1,949 | rd | \name{Data}
\alias{Data}
\alias{DataCodominant}
\alias{DataDominant}
\alias{DataContingency}
\title{Data preparation}
\description{Read a text file with coordinates and markers in columns and individuals in rows.}
\usage{DataDominant(input_file,conversion,nb_x,nb_y,output_coords="coord_km.txt")
DataCodominant(i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analytics-dashboard.R
\name{sf_dashboard_refresh}
\alias{sf_dashboard_refresh}
\title{Refresh an existing dashboard}
\usage{
sf_dashboard_refresh(dashboard_id, dashboard_filters = c(character(0)))
}
\arguments{
\item{dashboard_id}{\code{chara... | /man/sf_dashboard_refresh.Rd | permissive | jfer2pi/salesforcer | R | false | true | 948 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analytics-dashboard.R
\name{sf_dashboard_refresh}
\alias{sf_dashboard_refresh}
\title{Refresh an existing dashboard}
\usage{
sf_dashboard_refresh(dashboard_id, dashboard_filters = c(character(0)))
}
\arguments{
\item{dashboard_id}{\code{chara... |
if(FALSE){
tab_res <- table_results(fit, columns = NULL)
mm <- tab_res[tab_res$op == "=~", ]
sem <- tab_res[tab_res$op == "~" | (tab_res$op == "~~" & !(tab_res$lhs == tab_res$rhs)), ]
selected = list("")
if(!any(sem$op == "~")){
selected[[1]] <- unique(c(sem$lhs, sem$rhs))
} else {
# Drop ... | /R/plot-generate_layout.R | no_license | stjordanis/tidySEM | R | false | false | 11,015 | r | if(FALSE){
tab_res <- table_results(fit, columns = NULL)
mm <- tab_res[tab_res$op == "=~", ]
sem <- tab_res[tab_res$op == "~" | (tab_res$op == "~~" & !(tab_res$lhs == tab_res$rhs)), ]
selected = list("")
if(!any(sem$op == "~")){
selected[[1]] <- unique(c(sem$lhs, sem$rhs))
} else {
# Drop ... |
context("Frequencies are calculates correctly")
test_that("Stop frequencies (headways) for included data are as expected", {
gtfs_obj <- get_stop_frequency(gtfs_obj, by_route=FALSE)
stop_frequency_summary <- gtfs_obj$stops_frequency_df
fifteenth_st_at_hillsborough_rd <- stop_frequency_summary[stop_frequency_summ... | /tests/testthat/test_headways.R | no_license | walkerke/tidytransit | R | false | false | 654 | r | context("Frequencies are calculates correctly")
test_that("Stop frequencies (headways) for included data are as expected", {
gtfs_obj <- get_stop_frequency(gtfs_obj, by_route=FALSE)
stop_frequency_summary <- gtfs_obj$stops_frequency_df
fifteenth_st_at_hillsborough_rd <- stop_frequency_summary[stop_frequency_summ... |
# calculate the temperature response multiplier for Vcmax and Jmax (Kattge and Knorr 2007)
calc_tresp_mult = function(tleaf, tmean, tref){
temp <- tleaf + 273.15
Ha <- 71513 # Activation Energy (J mol^-1) Massad 2007
Hd <- 200000 # Deactivaiton energy (J mol^-1) Massad 2007
adelS <- 668.39
bdelS <- -1.0... | /functions/calc_tresp_mult.R | no_license | hgscott/C4model | R | false | false | 635 | r | # calculate the temperature response multiplier for Vcmax and Jmax (Kattge and Knorr 2007)
calc_tresp_mult = function(tleaf, tmean, tref){
temp <- tleaf + 273.15
Ha <- 71513 # Activation Energy (J mol^-1) Massad 2007
Hd <- 200000 # Deactivaiton energy (J mol^-1) Massad 2007
adelS <- 668.39
bdelS <- -1.0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregation.R
\name{ckde}
\alias{ckde}
\title{Composite Kernel Density Estimates of Radiocarbon Dates}
\usage{
ckde(x, timeRange, bw, normalised = FALSE)
}
\arguments{
\item{x}{A \code{simdates} class object, generated using \code{\link{sampl... | /man/ckde.Rd | no_license | f-silva-archaeo/rcarbon | R | false | true | 2,567 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregation.R
\name{ckde}
\alias{ckde}
\title{Composite Kernel Density Estimates of Radiocarbon Dates}
\usage{
ckde(x, timeRange, bw, normalised = FALSE)
}
\arguments{
\item{x}{A \code{simdates} class object, generated using \code{\link{sampl... |
x <- rnorm(100)
hist(x)
| /test.r | no_license | kkondo1981/R-tutorial | R | false | false | 25 | r |
x <- rnorm(100)
hist(x)
|
# Assignment 7 Problem 1
# install.packages("ggplot2")
# install.packages("maps")
# install.packages("ggmap")
library(ggplot2)
library(maps)
library(ggmap)
statesMap = map_data("state")
polling = read.csv("PollingImputed.csv")
Train = subset(polling, Year == 2004 | Year == 2008)
Test = subset(polling, Year == 2012)
... | /Assignment 7 Problem 1.R | no_license | ankitbhargava62/MITx-15.071x-The-Analytics-Edge | R | false | false | 2,469 | r | # Assignment 7 Problem 1
# install.packages("ggplot2")
# install.packages("maps")
# install.packages("ggmap")
library(ggplot2)
library(maps)
library(ggmap)
statesMap = map_data("state")
polling = read.csv("PollingImputed.csv")
Train = subset(polling, Year == 2004 | Year == 2008)
Test = subset(polling, Year == 2012)
... |
library(gratia)
### Name: evaluate_smooth
### Title: Evaluate a smooth
### Aliases: evaluate_smooth evaluate_smooth.gam evaluate_smooth.gamm
### evaluate_parametric_term evaluate_parametric_term.gam
### ** Examples
library("mgcv")
## Don't show:
set.seed(2)
op <- options(cli.unicode = FALSE, digits = 6)
## End(D... | /data/genthat_extracted_code/gratia/examples/evaluate_smooth.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 726 | r | library(gratia)
### Name: evaluate_smooth
### Title: Evaluate a smooth
### Aliases: evaluate_smooth evaluate_smooth.gam evaluate_smooth.gamm
### evaluate_parametric_term evaluate_parametric_term.gam
### ** Examples
library("mgcv")
## Don't show:
set.seed(2)
op <- options(cli.unicode = FALSE, digits = 6)
## End(D... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregate.baseflow.R
\name{aggregate.baseflow}
\alias{aggregate.baseflow}
\title{Baseflow Summary}
\usage{
\method{aggregate}{baseflow}(x, by = "months", index = FALSE, ...)
}
\arguments{
\item{x}{an object of class "baseflow."}
\item{by}{th... | /man/aggregate.baseflow.Rd | permissive | ggurjar333/DVstats | R | false | true | 1,336 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregate.baseflow.R
\name{aggregate.baseflow}
\alias{aggregate.baseflow}
\title{Baseflow Summary}
\usage{
\method{aggregate}{baseflow}(x, by = "months", index = FALSE, ...)
}
\arguments{
\item{x}{an object of class "baseflow."}
\item{by}{th... |
#
# load data, extract variables, initialize ------------------------------------------------
#
# number of bootstrap iterations
R <- 100000
# load data table (includes biomass and se)
dat <- read.csv("/Users/nicolekinlock/Documents/Plant Ecology/NetworkMetaAnalysis/Networks/106-Costa-2003.csv")
name <- c("106-Costa-... | /spcase106Costa.R | no_license | IbrahimRadwan/NetworkMetaAnalysis | R | false | false | 4,071 | r |
#
# load data, extract variables, initialize ------------------------------------------------
#
# number of bootstrap iterations
R <- 100000
# load data table (includes biomass and se)
dat <- read.csv("/Users/nicolekinlock/Documents/Plant Ecology/NetworkMetaAnalysis/Networks/106-Costa-2003.csv")
name <- c("106-Costa-... |
#########################################################
# Matrix I used for testing purposes
#########################################################
# m <- matrix(c(4:7), nrow = 2, ncol = 2, byrow = TRUE)
#########################################################
# makeCacheMatrix
##################################... | /cacheSolve.R | no_license | npCoursera/ProgrammingAssignment2 | R | false | false | 1,518 | r | #########################################################
# Matrix I used for testing purposes
#########################################################
# m <- matrix(c(4:7), nrow = 2, ncol = 2, byrow = TRUE)
#########################################################
# makeCacheMatrix
##################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tar_crew.R
\name{tar_crew}
\alias{tar_crew}
\title{Get crew worker info.}
\usage{
tar_crew(store = targets::tar_config_get("store"))
}
\arguments{
\item{store}{Character of length 1, path to the
\code{targets} data store. Defaults to \code{ta... | /man/tar_crew.Rd | permissive | ropensci/targets | R | false | true | 3,130 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tar_crew.R
\name{tar_crew}
\alias{tar_crew}
\title{Get crew worker info.}
\usage{
tar_crew(store = targets::tar_config_get("store"))
}
\arguments{
\item{store}{Character of length 1, path to the
\code{targets} data store. Defaults to \code{ta... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
import_fasta_to_vector_each_nt <- function(file) {
.Call('_pairsnp_import_fasta_to_vector_each_nt', PACKAGE = 'pairsnp', file)
}
| /R/RcppExports.R | permissive | gtonkinhill/pairsnp-r | R | false | false | 261 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
import_fasta_to_vector_each_nt <- function(file) {
.Call('_pairsnp_import_fasta_to_vector_each_nt', PACKAGE = 'pairsnp', file)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/N_CVInfoLambda.R
\name{CVInfoLambda-methods}
\alias{CVInfoLambda-methods}
\title{Methods Available for Objects of Class \code{CVInfoLambda}}
\description{
Methods Available for Objects of Class \code{CVInfoLambda}
}
\keyword{internal}
| /man/CVInfoLambda-methods.Rd | no_license | cran/DynTxRegime | R | false | true | 313 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/N_CVInfoLambda.R
\name{CVInfoLambda-methods}
\alias{CVInfoLambda-methods}
\title{Methods Available for Objects of Class \code{CVInfoLambda}}
\description{
Methods Available for Objects of Class \code{CVInfoLambda}
}
\keyword{internal}
|
# TO DO - check all data for correct datetime - e.g. current cont_obs are running on winter time, while all the rest of data runs on summer time
{# INFO
#ALT+0
# when birds arrive to nioz
#### !!! if blood not indicated in what, it is asumed that we have no clue whether blood was taken - if blood was taken upon captur... | /Data/AVESatNIOZ/DB_upload.R | no_license | MartinBulla/SocialJetLag | R | false | false | 67,262 | r | # TO DO - check all data for correct datetime - e.g. current cont_obs are running on winter time, while all the rest of data runs on summer time
{# INFO
#ALT+0
# when birds arrive to nioz
#### !!! if blood not indicated in what, it is asumed that we have no clue whether blood was taken - if blood was taken upon captur... |
detectionPval.filter <-
function(methLumi_data, detectionPval.threshold=0.01, detectionPval.perc.threshold=80, projectName = NULL, PATH="./"){
#get detection p-values
detectPval <- assayDataElement(methLumi_data, "detection")
#get sample names
samples <- colnames(detectPval)
nbSignifPval <- vector()
pe... | /R/detectionPval.filter.R | no_license | schalkwyk/wateRmelon | R | false | false | 1,373 | r | detectionPval.filter <-
function(methLumi_data, detectionPval.threshold=0.01, detectionPval.perc.threshold=80, projectName = NULL, PATH="./"){
#get detection p-values
detectPval <- assayDataElement(methLumi_data, "detection")
#get sample names
samples <- colnames(detectPval)
nbSignifPval <- vector()
pe... |
#' Plot segmentation profile
#'
#' Creates an IGV-like graphical representation of the copy-number segments across the samples in a segmentation object, as output by \code{run_facets}.
#'
#' @param segs FACETS segment output, IGV formatted.
#' @param plotX If \code{TRUE}, includes chromosome X.
#' @param sample_order... | /R/plot-segmentation.R | permissive | mskcc/facets-suite | R | false | false | 4,249 | r | #' Plot segmentation profile
#'
#' Creates an IGV-like graphical representation of the copy-number segments across the samples in a segmentation object, as output by \code{run_facets}.
#'
#' @param segs FACETS segment output, IGV formatted.
#' @param plotX If \code{TRUE}, includes chromosome X.
#' @param sample_order... |
if ("rmarkdown" %in% rownames(installed.packages()) == FALSE) {
install.packages("rmarkdown")
}
setwd("C:/Users/Tess/Desktop/analytics-portfolio-t/ML sandbox/fraud_detection")
setwd("C:/Users/Tess/Desktop/analytics-portfolio-t/ML sandbox/fraud_detection")
Sys.setenv(RSTUDIO_PANDOC = "/usr/lib/rstudio/bin/pandoc")
... | /ML_sandbox/fraud_detection/fraud.R | no_license | Tlarot/analytics-projects-ts | R | false | false | 400 | r | if ("rmarkdown" %in% rownames(installed.packages()) == FALSE) {
install.packages("rmarkdown")
}
setwd("C:/Users/Tess/Desktop/analytics-portfolio-t/ML sandbox/fraud_detection")
setwd("C:/Users/Tess/Desktop/analytics-portfolio-t/ML sandbox/fraud_detection")
Sys.setenv(RSTUDIO_PANDOC = "/usr/lib/rstudio/bin/pandoc")
... |
#' read key pause for plotting
#' @export
readkey<-function(){
cat ("Press [enter] to continue")
line <- readline()
}
| /R/readkey.R | no_license | arcolombo/rToolKit | R | false | false | 129 | r | #' read key pause for plotting
#' @export
readkey<-function(){
cat ("Press [enter] to continue")
line <- readline()
}
|
# ===================================================================
# Title: HW02
# Description:
# This script performs cleaning tasks and transformations on
# various columns of the raw data file.
# Input(s): court picture
# Output(s): txt files; csv files, pdf
# Author: Molly Li
# Date: 03-01-2018
# =========... | /code/make-shot-charts-script.R | no_license | mollyli96/hw2 | R | false | false | 4,130 | r | # ===================================================================
# Title: HW02
# Description:
# This script performs cleaning tasks and transformations on
# various columns of the raw data file.
# Input(s): court picture
# Output(s): txt files; csv files, pdf
# Author: Molly Li
# Date: 03-01-2018
# =========... |
N <- 1000000
X <- rpois(N, lambda = 2)
X.2 <- X*(X-1) | /test.R | no_license | youknowwhatmynameis/myrepo | R | false | false | 53 | r | N <- 1000000
X <- rpois(N, lambda = 2)
X.2 <- X*(X-1) |
## Read electricity data from the local text file residing in the working directory
electricData <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", colClasses = c(rep("character", 2), rep("numeric", 7)), na.strings = c("NA", "?"))
electricData$Date <- as.Date(electricData$Date, "%d/%m/%Y")
#... | /plot2.R | no_license | siowmeng/ExData_Plotting1 | R | false | false | 909 | r |
## Read electricity data from the local text file residing in the working directory
electricData <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", colClasses = c(rep("character", 2), rep("numeric", 7)), na.strings = c("NA", "?"))
electricData$Date <- as.Date(electricData$Date, "%d/%m/%Y")
#... |
#' Estimate Lagging and Leading Times and Concentrations
#'
#' Estimates lagging and leading times and concentrations.
#' Used by correct.xx functions to estimate lagging and leading timepoints
#' and concentrations for each timepoint.
#' @param x data.frame
#' @param nomtimevar1 column name in x indicating nominal tim... | /R/lag.lead.r | no_license | billdenney/qpNCA | R | false | false | 3,162 | r | #' Estimate Lagging and Leading Times and Concentrations
#'
#' Estimates lagging and leading times and concentrations.
#' Used by correct.xx functions to estimate lagging and leading timepoints
#' and concentrations for each timepoint.
#' @param x data.frame
#' @param nomtimevar1 column name in x indicating nominal tim... |
testlist <- list(data = structure(c(1.269748709812e-320, 1.49121849020985e-312, 6.92383063338793e-251, 3.49284541244692e+30, 3.5295369653595e+30, 6.31151507988387e-28, 9.93476335118854e+44, 3.52953664162775e+30, 7.24774526323231e+43, 2.4173705217461e+35, 6.74730202138664e+38, 2.55318533568062e-310, 8.28904605845809... | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610556731-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 557 | r | testlist <- list(data = structure(c(1.269748709812e-320, 1.49121849020985e-312, 6.92383063338793e-251, 3.49284541244692e+30, 3.5295369653595e+30, 6.31151507988387e-28, 9.93476335118854e+44, 3.52953664162775e+30, 7.24774526323231e+43, 2.4173705217461e+35, 6.74730202138664e+38, 2.55318533568062e-310, 8.28904605845809... |
##URL: https://github.com/garciarb/ProgrammingAssignment2
## The makeCacheMatrix function creates a special "matrix",
## which is really a list containing a function to:
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of the inverse of the matrix
## 4. get the value of the inver... | /cachematrix.R | no_license | garciarb/ProgrammingAssignment2 | R | false | false | 1,351 | r | ##URL: https://github.com/garciarb/ProgrammingAssignment2
## The makeCacheMatrix function creates a special "matrix",
## which is really a list containing a function to:
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of the inverse of the matrix
## 4. get the value of the inver... |
library(shiny)
shinyUI(fluidPage(
# Descriptive main title
titlePanel("Carbon Dioxide Uptake in Grass Plants"),
sidebarLayout(
# Ask the user which locations they want data from
sidebarPanel(
helpText("This Shiny application uses the CO2 dataset in R to display carbon dioxide ... | /ui.R | no_license | sulaksh555/developing-data-products-week-4-assignment | R | false | false | 1,044 | r | library(shiny)
shinyUI(fluidPage(
# Descriptive main title
titlePanel("Carbon Dioxide Uptake in Grass Plants"),
sidebarLayout(
# Ask the user which locations they want data from
sidebarPanel(
helpText("This Shiny application uses the CO2 dataset in R to display carbon dioxide ... |
# This is the absolute bare minimum of what I need to create a shiny app.
# Beware! ... This alone will be a REALLY boring app. A blank page :(
# You will create an app to compare states' cumulative number of COVID cases over time.
# The x-axis will be number of days since 20+ cases and the y-axis will be cumulative ... | /Exercise_six_shiny/app.R | no_license | mpolemen/matt_excersize_six | R | false | false | 1,843 | r | # This is the absolute bare minimum of what I need to create a shiny app.
# Beware! ... This alone will be a REALLY boring app. A blank page :(
# You will create an app to compare states' cumulative number of COVID cases over time.
# The x-axis will be number of days since 20+ cases and the y-axis will be cumulative ... |
############################################################################
## Wrapper function for Fitting multiple factor DM model.
## Take a bsseq object and a design matrix
############################################################################
DMLfit.multiFactor <- function(BSobj, design, formula, smoothing=... | /R/DML.multiFactor.R | no_license | hmyh1202/DSS | R | false | false | 10,072 | r | ############################################################################
## Wrapper function for Fitting multiple factor DM model.
## Take a bsseq object and a design matrix
############################################################################
DMLfit.multiFactor <- function(BSobj, design, formula, smoothing=... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run-source.R
\name{source_gist}
\alias{source_gist}
\title{Run a script on gist}
\usage{
source_gist(id, ..., filename = NULL, sha1 = NULL, quiet = FALSE)
}
\arguments{
\item{id}{either full url (character), gist ID (numeric or character of
n... | /man/source_gist.Rd | permissive | r-lib/devtools | R | false | true | 1,827 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run-source.R
\name{source_gist}
\alias{source_gist}
\title{Run a script on gist}
\usage{
source_gist(id, ..., filename = NULL, sha1 = NULL, quiet = FALSE)
}
\arguments{
\item{id}{either full url (character), gist ID (numeric or character of
n... |
VB_exp <- function(k,n,nrow,ncol,p,q,r){
# This Function calculated the value of element of exponential n by n matrix to the kth power
# This is for Markov process exp^{Qt} where Q is nxn matrix
# n = dimension of the matrix
# k = power of matrix
# p = forward probability
# q = backward probabiity
# r ... | /VB_exp.R | no_license | JeremyJosephLin/markovcpp | R | false | false | 983 | r | VB_exp <- function(k,n,nrow,ncol,p,q,r){
# This Function calculated the value of element of exponential n by n matrix to the kth power
# This is for Markov process exp^{Qt} where Q is nxn matrix
# n = dimension of the matrix
# k = power of matrix
# p = forward probability
# q = backward probabiity
# r ... |
%
% Copyright (c) 2013, 2014, IBM Corp. All rights reserved.
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
... | /man/overview.Rd | no_license | cran/ibmdbR | R | false | false | 1,845 | rd | %
% Copyright (c) 2013, 2014, IBM Corp. All rights reserved.
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
... |
# Verified 1.3.18
# Version 4.0
panomapa <- function(collection, main, axis = TRUE,
xlab = "Long",
ylab = "Lat",
lab.col = 'black',
bg = NA,
map.bg = NA,
map.col = 'black',
col.ramp = c("... | /vetools/R/panomapa.R | no_license | ingted/R-Examples | R | false | false | 5,085 | r | # Verified 1.3.18
# Version 4.0
panomapa <- function(collection, main, axis = TRUE,
xlab = "Long",
ylab = "Lat",
lab.col = 'black',
bg = NA,
map.bg = NA,
map.col = 'black',
col.ramp = c("... |
testlist <- list(a = -2L, b = -11206656L, x = c(-63998L, NA, -49153L, 656801545L, -1L, 1560737791L, -12961222L, 976894522L, 691681850L, 976894522L, 976894522L, 976894522L, 976894522L, -1886417009L, -1886417009L, -1886417009L, -1886417009L, -1886417009L, -1886417009L, -1886388474L, -1886417009L, NA, -1886417009L, -1... | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610130805-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 640 | r | testlist <- list(a = -2L, b = -11206656L, x = c(-63998L, NA, -49153L, 656801545L, -1L, 1560737791L, -12961222L, 976894522L, 691681850L, 976894522L, 976894522L, 976894522L, 976894522L, -1886417009L, -1886417009L, -1886417009L, -1886417009L, -1886417009L, -1886417009L, -1886388474L, -1886417009L, NA, -1886417009L, -1... |
#file header
#date
#title
#purpose
#authors
#assignment for class
#required packages
library(tidyverse)
#set directory
setwd("/Users/nicholashuron/Google Drive/")
#read in pa invasives data
invasives <- read_csv("./QuantSci_GP/data/PA_Invasive_Species/all_obs_imap_18Dec17_v2_0.csv")
dim(invasives)
################... | /invasives_.R | no_license | nahuron/QSGP | R | false | false | 4,059 | r | #file header
#date
#title
#purpose
#authors
#assignment for class
#required packages
library(tidyverse)
#set directory
setwd("/Users/nicholashuron/Google Drive/")
#read in pa invasives data
invasives <- read_csv("./QuantSci_GP/data/PA_Invasive_Species/all_obs_imap_18Dec17_v2_0.csv")
dim(invasives)
################... |
# 1. Reading in data
# Define variables specific to input files and plots
input <- "../household_power_consumption.txt"
time.format <- "%d/%m/%Y %H:%M:%S"
start <- "01/02/2007 00:00:00"
end <- "02/02/2007 23:59:00"
col.classes <- c(rep("character", 2), rep("numeric", 7))
# Read the first line of the file & find the... | /plot3.R | no_license | ZZen427/ExData_Plotting1 | R | false | false | 1,915 | r | # 1. Reading in data
# Define variables specific to input files and plots
input <- "../household_power_consumption.txt"
time.format <- "%d/%m/%Y %H:%M:%S"
start <- "01/02/2007 00:00:00"
end <- "02/02/2007 23:59:00"
col.classes <- c(rep("character", 2), rep("numeric", 7))
# Read the first line of the file & find the... |
library(yaml)
library(tidyverse)
library(glue)
library(rprojroot)
score_submission <- function(submission_filename) {
answers <- yaml.load_file(submission_filename)
high_cellline <- answers$high_cellline
cms_match <- answers$cms_match
if (high_cellline == "T-47D" & cms_match == "no") {
msg <- glue(
... | /modules/module7/.eval/eval_fxn.R | permissive | milen-sage/minidream-challenge | R | false | false | 1,516 | r | library(yaml)
library(tidyverse)
library(glue)
library(rprojroot)
score_submission <- function(submission_filename) {
answers <- yaml.load_file(submission_filename)
high_cellline <- answers$high_cellline
cms_match <- answers$cms_match
if (high_cellline == "T-47D" & cms_match == "no") {
msg <- glue(
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chromfx.R
\name{readPeakSummits}
\alias{readPeakSummits}
\title{readPeakSummits}
\usage{
readPeakSummits(psum, genome = "hg38")
}
\arguments{
\item{psum}{paths to sample peak summits bed file}
\item{genome}{reference genome, either "hg38 (de... | /man/readPeakSummits.Rd | no_license | DoaneAS/chromfx | R | false | true | 429 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chromfx.R
\name{readPeakSummits}
\alias{readPeakSummits}
\title{readPeakSummits}
\usage{
readPeakSummits(psum, genome = "hg38")
}
\arguments{
\item{psum}{paths to sample peak summits bed file}
\item{genome}{reference genome, either "hg38 (de... |
#MINISTERIO DEL TRABAJO Y PROMOCIÓN DEL EMPLEO
rm(list = ls()) # limpia la memoria de trabajo
library(tidyverse) #instala además 8 paquetes adicionales
#library(readr)
#library(stringr) # manejador de string (objeto, patron)
#library(dplyr)
#library(tidyr)
#library(purrr)
#library(ggplot2)
#library(forcats)
#lib... | /R script/ScriptMTPE19_Rs.R | no_license | manosaladata/DataSet-CAS-PERU | R | false | false | 5,538 | r |
#MINISTERIO DEL TRABAJO Y PROMOCIÓN DEL EMPLEO
rm(list = ls()) # limpia la memoria de trabajo
library(tidyverse) #instala además 8 paquetes adicionales
#library(readr)
#library(stringr) # manejador de string (objeto, patron)
#library(dplyr)
#library(tidyr)
#library(purrr)
#library(ggplot2)
#library(forcats)
#lib... |
moving_average_plot <- function(mavg_data){
ggplot(mavg_data,
aes(x=Index, ymax=Average, ymin=AVG)) +
geom_ribbon(fill="blue") +
theme_minimal()
}
| /R/moving_average_plot.R | no_license | bayesball/BayesTestStreak | R | false | false | 165 | r | moving_average_plot <- function(mavg_data){
ggplot(mavg_data,
aes(x=Index, ymax=Average, ymin=AVG)) +
geom_ribbon(fill="blue") +
theme_minimal()
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotmclust.R
\name{plotmclust}
\alias{plotmclust}
\title{plotmclust}
\usage{
plotmclust(
mclustobj,
x = 1,
y = 2,
MSTorder = NULL,
show_tree = T,
show_full_tree = F,
show_cell_names = F,
cell_name_size = 3,
cell_point_size =... | /man/plotmclust.Rd | no_license | wangyadong-bio/TSCAN | R | false | true | 1,575 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotmclust.R
\name{plotmclust}
\alias{plotmclust}
\title{plotmclust}
\usage{
plotmclust(
mclustobj,
x = 1,
y = 2,
MSTorder = NULL,
show_tree = T,
show_full_tree = F,
show_cell_names = F,
cell_name_size = 3,
cell_point_size =... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 2195
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 2195
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query50_query71_1344n/query50_query71_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 710 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 2195
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 2195
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... |
#' bio17: Calculate precipitation of the driest quarter.
#'
#' @description `bio17` is used to calculate the total precipitation in the
#' driest quarter of the year
#'
#' @param prec a vector of precipitation values, normally for one year (see
#' details).
#' @param tme a `POSIXlt` object representing the date and tim... | /R/bio17.R | no_license | everydayduffy/climvars | R | false | false | 1,432 | r | #' bio17: Calculate precipitation of the driest quarter.
#'
#' @description `bio17` is used to calculate the total precipitation in the
#' driest quarter of the year
#'
#' @param prec a vector of precipitation values, normally for one year (see
#' details).
#' @param tme a `POSIXlt` object representing the date and tim... |
par(family = "serif", font = 2)
pacman::p_load(teachingApps)
library(SMRD)
ShockAbsorber.ld <-
frame.to.ld(shockabsorber,
response.column = 1,
censor.column = 3,
time.units = "Kilometers") | /inst/apps/shock_absorber8/global.R | no_license | Ammar-K/SMRD | R | false | false | 237 | r | par(family = "serif", font = 2)
pacman::p_load(teachingApps)
library(SMRD)
ShockAbsorber.ld <-
frame.to.ld(shockabsorber,
response.column = 1,
censor.column = 3,
time.units = "Kilometers") |
### type 1 error
args <- commandArgs(TRUE)
core.i <- as.numeric(args)
# load packages, functions
path="/users/PAS1149/osu10039/PAS1149/qldeng/AF_data/june_simulations"
setwd(paste0(path,"/","code","/","functions"))
source("af_functions_noz.R")
n = 1000 # sample size
betaz = 0 # effect of covariates
t <- 100 # t... | /type1/sim_cont_noz.R | no_license | songbiostat/MTAF | R | false | false | 3,552 | r |
### type 1 error
args <- commandArgs(TRUE)
core.i <- as.numeric(args)
# load packages, functions
path="/users/PAS1149/osu10039/PAS1149/qldeng/AF_data/june_simulations"
setwd(paste0(path,"/","code","/","functions"))
source("af_functions_noz.R")
n = 1000 # sample size
betaz = 0 # effect of covariates
t <- 100 # t... |
\name{adj2mat}
\alias{adj2mat}
\title{Convert adjacency list into an adjacency matrix.}
\description{
Converts an adjacency-like list (which may or may not
contain all the gene IDs in the network) into an adjacency
matrix. This function is originally from ENA R package and the pathDESeq package uses this as an internal... | /man/adj2mat.Rd | no_license | MalathiSIDona/pathDESeq | R | false | false | 580 | rd | \name{adj2mat}
\alias{adj2mat}
\title{Convert adjacency list into an adjacency matrix.}
\description{
Converts an adjacency-like list (which may or may not
contain all the gene IDs in the network) into an adjacency
matrix. This function is originally from ENA R package and the pathDESeq package uses this as an internal... |
# This shiny user interface file is a work-in-progress, initially
# designed for Johns Hopkins Data Products class. It will ultimately try
# to teach an uninitiated adult learner the subject of Algebra.
#
# Cynthia Davies Cunha
# Johns Hopkins Developing Data Products
# October 2014
#
library(shiny)
shinyUI(fluidPa... | /algebraVis/ui.R | no_license | CDCwrites/BuildingDataProducts | R | false | false | 2,754 | r | # This shiny user interface file is a work-in-progress, initially
# designed for Johns Hopkins Data Products class. It will ultimately try
# to teach an uninitiated adult learner the subject of Algebra.
#
# Cynthia Davies Cunha
# Johns Hopkins Developing Data Products
# October 2014
#
library(shiny)
shinyUI(fluidPa... |
\name{are.parrice.valid}
\alias{are.parrice.valid}
\title{Are the Distribution Parameters Consistent with the Rice Distribution}
\description{
Is the distribution parameter object consistent with the corresponding distribution? The distribution functions (\code{\link{cdfrice}}, \code{\link{pdfrice}}, \code{\link{quar... | /man/are.parrice.valid.Rd | no_license | wasquith/lmomco | R | false | false | 1,832 | rd | \name{are.parrice.valid}
\alias{are.parrice.valid}
\title{Are the Distribution Parameters Consistent with the Rice Distribution}
\description{
Is the distribution parameter object consistent with the corresponding distribution? The distribution functions (\code{\link{cdfrice}}, \code{\link{pdfrice}}, \code{\link{quar... |
#' Align two functions
#'
#' This function aligns two SRSF functions using Dynamic Programming
#'
#' @param Q1 srsf of function 1
#' @param T1 sample points of function 1
#' @param Q2 srsf of function 2
#' @param T2 sample points of function 2
#' @param lambda controls amount of warping (default = 0)
#' @param method c... | /R/optimum.reparam.R | no_license | jasonradams47/fdasrvf_R | R | false | false | 3,498 | r | #' Align two functions
#'
#' This function aligns two SRSF functions using Dynamic Programming
#'
#' @param Q1 srsf of function 1
#' @param T1 sample points of function 1
#' @param Q2 srsf of function 2
#' @param T2 sample points of function 2
#' @param lambda controls amount of warping (default = 0)
#' @param method c... |
systemContentDistribution <- function(lambda,m,buffer_size)
{
#a total of buffer_size + m jobs can be in the system, at max m can be in service in at any moment.
matrix_size = m+buffer_size+1;
P = matrix(0, nrow = matrix_size, ncol = matrix_size);
# index i contains probability that there are less than i arr... | /performance_measures.R | permissive | saxe405/edge | R | false | false | 1,371 | r | systemContentDistribution <- function(lambda,m,buffer_size)
{
#a total of buffer_size + m jobs can be in the system, at max m can be in service in at any moment.
matrix_size = m+buffer_size+1;
P = matrix(0, nrow = matrix_size, ncol = matrix_size);
# index i contains probability that there are less than i arr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.