content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check.input.ggman.R
\name{check.input.ggman}
\alias{check.input.ggman}
\title{This function checks the user input for the function ggman.R}
\usage{
check.input.ggman()
}
\value{
Nothing; internal function.
}
\description{
This function checks... | /man/check.input.ggman.Rd | no_license | drveera/ggman | R | false | true | 383 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check.input.ggman.R
\name{check.input.ggman}
\alias{check.input.ggman}
\title{This function checks the user input for the function ggman.R}
\usage{
check.input.ggman()
}
\value{
Nothing; internal function.
}
\description{
This function checks... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/seq_williams.R
\name{seq_williams}
\alias{seq_williams}
\title{Williams cross-over design specification}
\usage{
seq_williams(D = 2, labels = 0:(D - 1), as_matrix = T, summary = T)
}
\arguments{
\item{D}{The number of treatments. Must be a si... | /man/seq_williams.Rd | no_license | mjg211/xover | R | false | true | 2,999 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/seq_williams.R
\name{seq_williams}
\alias{seq_williams}
\title{Williams cross-over design specification}
\usage{
seq_williams(D = 2, labels = 0:(D - 1), as_matrix = T, summary = T)
}
\arguments{
\item{D}{The number of treatments. Must be a si... |
context("ml feature one hot encoder estimator")
skip_databricks_connect()
test_that("ft_one_hot_encoder_estimator() default params", {
test_requires_version(min_version="2.3.0", max_version="3.0.0")
sc <- testthat_spark_connection()
test_default_args(sc, ft_one_hot_encoder_estimator)
})
test_that("ft_one_hot_en... | /tests/testthat/test-feature-one-hot-encoder-estimator.R | permissive | tnixon/sparklyr | R | false | false | 1,058 | r | context("ml feature one hot encoder estimator")
skip_databricks_connect()
test_that("ft_one_hot_encoder_estimator() default params", {
test_requires_version(min_version="2.3.0", max_version="3.0.0")
sc <- testthat_spark_connection()
test_default_args(sc, ft_one_hot_encoder_estimator)
})
test_that("ft_one_hot_en... |
#' Check if an object is an integerish vector
#'
#' @templateVar fn Integerish
#' @template x
#' @template na-handling
#' @inheritParams checkInteger
#' @inheritParams checkVector
#' @template tol
#' @template checker
#' @family basetypes
#' @useDynLib checkmate c_is_integerish
#' @export
#' @examples
#' testIntegerish... | /R/checkIntegerish.r | no_license | rtaph/checkmate | R | false | false | 2,252 | r | #' Check if an object is an integerish vector
#'
#' @templateVar fn Integerish
#' @template x
#' @template na-handling
#' @inheritParams checkInteger
#' @inheritParams checkVector
#' @template tol
#' @template checker
#' @family basetypes
#' @useDynLib checkmate c_is_integerish
#' @export
#' @examples
#' testIntegerish... |
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinydashboard)
library(leaflet)
library(plotly)
library(shinycssloade... | /ui.R | no_license | mapaloCat/Information-Visualization-and-Interaction | R | false | false | 22,195 | r | # This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinydashboard)
library(leaflet)
library(plotly)
library(shinycssloade... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/deputies_add_new.R
\name{deputies_add_new}
\alias{deputies_add_new}
\title{Adding new deputies to table}
\usage{
deputies_add_new(dbname, user, password, host, type, id)
}
\arguments{
\item{dbname}{name of database}
\item{user}{name ... | /sejmRP/man/deputies_add_new.Rd | no_license | ytmytm/sejmRP | R | false | false | 1,207 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/deputies_add_new.R
\name{deputies_add_new}
\alias{deputies_add_new}
\title{Adding new deputies to table}
\usage{
deputies_add_new(dbname, user, password, host, type, id)
}
\arguments{
\item{dbname}{name of database}
\item{user}{name ... |
run_analysis <- function(){
# check for existence of 'UCI HAR Dataset' direcotry
if("UCI HAR Dataset" %in% list.files()){
print("Folder 'UCI HAR Dataset' successfuly found. Working, please wait." )
}else{
stop("Folder 'UCI HAR Dataset' was not found in your working directory.
Please move the 'UC... | /run_analysis.R | no_license | pepaczz/datasciencecoursera | R | false | false | 3,030 | r | run_analysis <- function(){
# check for existence of 'UCI HAR Dataset' direcotry
if("UCI HAR Dataset" %in% list.files()){
print("Folder 'UCI HAR Dataset' successfuly found. Working, please wait." )
}else{
stop("Folder 'UCI HAR Dataset' was not found in your working directory.
Please move the 'UC... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redist_shortburst.R
\name{scorer-arith}
\alias{scorer-arith}
\alias{*.redist_scorer}
\alias{+.redist_scorer}
\alias{-.redist_scorer}
\title{Scoring function arithmetic}
\usage{
\method{*}{redist_scorer}(x, fn2)
\method{+}{redist_scorer}(fn1,... | /man/scorer-arith.Rd | no_license | deonizm/redist | R | false | true | 704 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redist_shortburst.R
\name{scorer-arith}
\alias{scorer-arith}
\alias{*.redist_scorer}
\alias{+.redist_scorer}
\alias{-.redist_scorer}
\title{Scoring function arithmetic}
\usage{
\method{*}{redist_scorer}(x, fn2)
\method{+}{redist_scorer}(fn1,... |
###Week 7: Statistical Modeling, part I
####new data to work with
reg.data<-read.csv ("~/Downloads/Week6Data.csv")
###this dataset contains 24 variables for you to explore!
###variables are as follows:
###1. DaysMedia: Number of days during the week watching media; coded from 0 - 7
###2. Ideology: coded 1 - Extremely... | /POLS361/lab5/RTutorial361F20.7.R | no_license | baileywickham/college | R | false | false | 16,381 | r | ###Week 7: Statistical Modeling, part I
####new data to work with
reg.data<-read.csv ("~/Downloads/Week6Data.csv")
###this dataset contains 24 variables for you to explore!
###variables are as follows:
###1. DaysMedia: Number of days during the week watching media; coded from 0 - 7
###2. Ideology: coded 1 - Extremely... |
## Put comments here that give an overall description of what your
## functions do
## Purpose of these functions is to avoid repeated computation of matrix inversion (or other costly computations).
## The cached calculated matrix inversion could be retrieved when needed accelerating the
## program run
## Write... | /cachematrix.R | no_license | savif/r_hw | R | false | false | 1,318 | r | ## Put comments here that give an overall description of what your
## functions do
## Purpose of these functions is to avoid repeated computation of matrix inversion (or other costly computations).
## The cached calculated matrix inversion could be retrieved when needed accelerating the
## program run
## Write... |
#' Get FishLife life history traits
#'
#' Retrieves life history trait predictions from FishLife (Thorson et al. 2018). This
#' is a wrapper for the Plot_taxa() function in the FishLife R package.
#'
#' @param species A character vector of species scientific names
#' @return A dataframe with life history trait predict... | /R/fishlife.R | no_license | cfree14/freeR | R | false | false | 3,744 | r |
#' Get FishLife life history traits
#'
#' Retrieves life history trait predictions from FishLife (Thorson et al. 2018). This
#' is a wrapper for the Plot_taxa() function in the FishLife R package.
#'
#' @param species A character vector of species scientific names
#' @return A dataframe with life history trait predict... |
#========================
#AssignVehicleFeatures.R
#========================
# This module is a vehicle model from RPAT version.
# This module assigns household vehicle ownership, vehicle types, and ages to
# each household vehicle, based on household, land use,
# and transportation system characteristics. Vehicles a... | /sources/modules/VEHouseholdVehicles/R/AssignVehicleFeatures.R | permissive | pleiby/VisionEval | R | false | false | 66,940 | r | #========================
#AssignVehicleFeatures.R
#========================
# This module is a vehicle model from RPAT version.
# This module assigns household vehicle ownership, vehicle types, and ages to
# each household vehicle, based on household, land use,
# and transportation system characteristics. Vehicles a... |
filterLDS_B <- function(x, A, Gamma, C, Sigma, mu0, V0) {
# From Bishop 2006, Section 13.3.1
nObs <- ncol(x)
P <- list()
K <- list()
mu <- matrix(NaN, nrow=length(mu0), ncol=nObs)
V <- list()
c <- rep(NA, times=nObs)
I <- diag(nrow=nrow(A))
lhsKn <- C%*%V0%*%t(C)+Sigma
rhsKn <- ... | /src/filterLDS_B.R | no_license | joacorapela/kalmanFilter | R | false | false | 1,184 | r | filterLDS_B <- function(x, A, Gamma, C, Sigma, mu0, V0) {
# From Bishop 2006, Section 13.3.1
nObs <- ncol(x)
P <- list()
K <- list()
mu <- matrix(NaN, nrow=length(mu0), ncol=nObs)
V <- list()
c <- rep(NA, times=nObs)
I <- diag(nrow=nrow(A))
lhsKn <- C%*%V0%*%t(C)+Sigma
rhsKn <- ... |
#!/share/nas2/genome/biosoft/R/3.1.1/lib64/R/bin/Rscript
#************************section 1 usage***********************************************
usage=function(){
cat("
Descript:
Email: wangmin@biomarker.com.cn
Options:
infile: character the path.txt file maked by bam... | /bin/start_from_deg_analysis/bin/deg_analysis/v3.3/bin/DEU_analysis/DEU_DEXSeq.R | no_license | baibaijingjing/LncRNA | R | false | false | 3,420 | r | #!/share/nas2/genome/biosoft/R/3.1.1/lib64/R/bin/Rscript
#************************section 1 usage***********************************************
usage=function(){
cat("
Descript:
Email: wangmin@biomarker.com.cn
Options:
infile: character the path.txt file maked by bam... |
/Representitiveness figure.R | no_license | tomlweeks94/predicts | R | false | false | 2,913 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/observer.R
\name{observe_bloodmeal_mosquito}
\alias{observe_bloodmeal_mosquito}
\title{Observe the bloodmeal bites to mosquitoes.}
\usage{
observe_bloodmeal_mosquito(observer, bloodmeal_path, step)
}
\description{
Observe the bloodmeal bites ... | /macro/man/observe_bloodmeal_mosquito.Rd | no_license | dd-harp/MASH | R | false | true | 337 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/observer.R
\name{observe_bloodmeal_mosquito}
\alias{observe_bloodmeal_mosquito}
\title{Observe the bloodmeal bites to mosquitoes.}
\usage{
observe_bloodmeal_mosquito(observer, bloodmeal_path, step)
}
\description{
Observe the bloodmeal bites ... |
library (dplyr)
library (ggplot2)
avg_cov <- read.csv ("Processed_data/avg_coverage_pass_fail.csv")
avg_cov_pass <- filter (avg_cov,Pass_coverage == "Pass" )
snv_merged <- read.csv ("Processed_data/all_variants_filtered_merged")
snv_merged <- filter (snv_merged, sample %in% avg_cov_pass$sample)
snv_merged<- unite (s... | /Scripts/merged_reads.R | no_license | lauringlab/SARS-CoV-2_VOC_transmission_bottleneck | R | false | false | 7,037 | r | library (dplyr)
library (ggplot2)
avg_cov <- read.csv ("Processed_data/avg_coverage_pass_fail.csv")
avg_cov_pass <- filter (avg_cov,Pass_coverage == "Pass" )
snv_merged <- read.csv ("Processed_data/all_variants_filtered_merged")
snv_merged <- filter (snv_merged, sample %in% avg_cov_pass$sample)
snv_merged<- unite (s... |
\name{takes_less_than}
\alias{takes_less_than}
\title{Expectation: does expression take less than a fixed amount of time to run?}
\usage{takes_less_than(amount)}
\description{
Expectation: does expression take less than a fixed amount of time to
run?
}
\details{
This is useful for performance regression testing... | /man/takes_less_than.Rd | no_license | rtirrell/test_that | R | false | false | 383 | rd | \name{takes_less_than}
\alias{takes_less_than}
\title{Expectation: does expression take less than a fixed amount of time to run?}
\usage{takes_less_than(amount)}
\description{
Expectation: does expression take less than a fixed amount of time to
run?
}
\details{
This is useful for performance regression testing... |
# Defining trait parameters (AEG)
defineTraitAEG <- function(nQtl,mean,h2) {
SP <<- SimParam$new(founderPop)
SP$addTraitAEG(nQtl, mean=mean)
SP$setVarE(h2=h2)
}
# Defining trait parameters (A)
defineTraitA <- function(nQtl,mean,h2) {
SP <<- SimParam$new(founderPop)
SP$addTraitA(nQtl, mean=mean)
SP$setVarE(... | /AlphaSimR/RunSimulations/FunctionsLibrary.R | no_license | McGillHaricots/peas-andlove | R | false | false | 3,990 | r | # Defining trait parameters (AEG)
defineTraitAEG <- function(nQtl,mean,h2) {
SP <<- SimParam$new(founderPop)
SP$addTraitAEG(nQtl, mean=mean)
SP$setVarE(h2=h2)
}
# Defining trait parameters (A)
defineTraitA <- function(nQtl,mean,h2) {
SP <<- SimParam$new(founderPop)
SP$addTraitA(nQtl, mean=mean)
SP$setVarE(... |
#
# This demo draw ribbon links between chromosomes
#
# Usage:
#
# library(RCircos);
# demo("RCircos.Tile.Plot.Demo");
#
# __________________________________________________________________________
# <><RCircos DEMO><RCircos DEMO><RCircos DEMO><RCircos DEMO><RCircos DEMO><>
# Load RCircos library
#... | /demo/RCircos.Ribbon.Plot.Demo.R | no_license | Xiants/Rcircos-dummy | R | false | false | 2,429 | r | #
# This demo draw ribbon links between chromosomes
#
# Usage:
#
# library(RCircos);
# demo("RCircos.Tile.Plot.Demo");
#
# __________________________________________________________________________
# <><RCircos DEMO><RCircos DEMO><RCircos DEMO><RCircos DEMO><RCircos DEMO><>
# Load RCircos library
#... |
## cargar librerías e importar raw data afiliados
library(tidyverse)
library(lubridate)
library(janitor)
afiliados_raw <- read_csv("data/raw/afiliados_medios.csv", skip = 2,
locale = locale(encoding = "ISO-8859-1"))
## data tidying
afiliados_tidy <- afiliados_raw %>%
# eliminar filas co... | /2021-04-12_erte-afiliados-sectores/scripts/data_tidying_afiliados.R | no_license | jescuderoma/filas-y-columnas | R | false | false | 1,545 | r | ## cargar librerías e importar raw data afiliados
library(tidyverse)
library(lubridate)
library(janitor)
afiliados_raw <- read_csv("data/raw/afiliados_medios.csv", skip = 2,
locale = locale(encoding = "ISO-8859-1"))
## data tidying
afiliados_tidy <- afiliados_raw %>%
# eliminar filas co... |
context("Test Various Plot Functions")
test_that("test pure success of the plotting without warning or error", {
testthat::skip_on_cran()
##distribution plots
data(ExampleData.DeValues, envir = environment())
ExampleData.DeValues <- ExampleData.DeValues$CA1
expect_silent(plot_RadialPlot(ExampleData.DeValue... | /data/genthat_extracted_code/Luminescence/tests/test_plot_Functions.R | no_license | surayaaramli/typeRrh | R | false | false | 5,353 | r | context("Test Various Plot Functions")
test_that("test pure success of the plotting without warning or error", {
testthat::skip_on_cran()
##distribution plots
data(ExampleData.DeValues, envir = environment())
ExampleData.DeValues <- ExampleData.DeValues$CA1
expect_silent(plot_RadialPlot(ExampleData.DeValue... |
# Step1. Merges the training and the test sets to create one data set.
# setwd("~/Desktop/Online Coursera/Coursera-Getting-and-Cleaning-Data/peer_assessment/")
trainData <- read.table("./data/train/X_train.txt")
dim(trainData) # 7352*561
head(trainData)
trainLabel <- read.table("./data/train/y_train.txt")
table(t... | /run_analysis.R | no_license | WaqasSheikh/GetAndCleanDataProject | R | false | false | 3,085 | r | # Step1. Merges the training and the test sets to create one data set.
# setwd("~/Desktop/Online Coursera/Coursera-Getting-and-Cleaning-Data/peer_assessment/")
trainData <- read.table("./data/train/X_train.txt")
dim(trainData) # 7352*561
head(trainData)
trainLabel <- read.table("./data/train/y_train.txt")
table(t... |
library(lattice)
library(ggplot2)
library(gridExtra)
main_table <- read.delim('C:/Users/am4613/OneDrive - Imperial College London/ondedriveBACK/Summaries_as_timecourses/compilation_table.txt', header = T, strings = F)
isx_data <- read.delim('C:/Users/am4613/OneDrive - Imperial College London/ondedriveBACK/Summaries_as... | /explore_cell_data.R | no_license | amarseg/Misc | R | false | false | 3,127 | r | library(lattice)
library(ggplot2)
library(gridExtra)
main_table <- read.delim('C:/Users/am4613/OneDrive - Imperial College London/ondedriveBACK/Summaries_as_timecourses/compilation_table.txt', header = T, strings = F)
isx_data <- read.delim('C:/Users/am4613/OneDrive - Imperial College London/ondedriveBACK/Summaries_as... |
#' @param grp a list containing the model and data. See the details section.
| /man-roxygen/arg-grp.R | no_license | jpritikin/rpf | R | false | false | 77 | r | #' @param grp a list containing the model and data. See the details section.
|
# Viz for k-means
km.wssplot <- function(data, cluster.num = 25, seed = 20){
# Initialize table
cluster.num <- min(nrow(data) - 1, cluster.num)
wss <- data.frame(cluster = 1:cluster.num, quality = 0)
# Do k-means clustering, reduce data points to `cluster.num` clusters
for (i in 1:cluster.num){
set.... | /beta.02/init/Analyzer_Kmeans.R | no_license | April7410/MortalityMinder | R | false | false | 1,113 | r | # Viz for k-means
km.wssplot <- function(data, cluster.num = 25, seed = 20){
# Initialize table
cluster.num <- min(nrow(data) - 1, cluster.num)
wss <- data.frame(cluster = 1:cluster.num, quality = 0)
# Do k-means clustering, reduce data points to `cluster.num` clusters
for (i in 1:cluster.num){
set.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.robomaker_operations.R
\name{list_deployment_jobs}
\alias{list_deployment_jobs}
\title{Returns a list of deployment jobs for a fleet}
\usage{
list_deployment_jobs(filters = NULL, nextToken = NULL,
maxResults = NULL)
}
\arguments{
\item... | /service/paws.robomaker/man/list_deployment_jobs.Rd | permissive | CR-Mercado/paws | R | false | true | 1,785 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.robomaker_operations.R
\name{list_deployment_jobs}
\alias{list_deployment_jobs}
\title{Returns a list of deployment jobs for a fleet}
\usage{
list_deployment_jobs(filters = NULL, nextToken = NULL,
maxResults = NULL)
}
\arguments{
\item... |
library("knitr")
library("rgl")
#knit("23947-60-6.Rmd")
#markdownToHTML('23947-60-6.md', '23947-60-6.html', options=c("use_xhml"))
#system("pandoc -s 23947-60-6.html -o 23947-60-6.pdf")
knit2html('23947-60-6.Rmd')
| /FDA_Pesticide_Glossary/23947-60-6.R | permissive | andrewdefries/andrewdefries.github.io | R | false | false | 216 | r | library("knitr")
library("rgl")
#knit("23947-60-6.Rmd")
#markdownToHTML('23947-60-6.md', '23947-60-6.html', options=c("use_xhml"))
#system("pandoc -s 23947-60-6.html -o 23947-60-6.pdf")
knit2html('23947-60-6.Rmd')
|
# Filename: Plot1.R
# Generates graph #1 in the assignment, callable for assignment part 1 and 4.
# Function: MakeGraph1
# Generate graph #1. If filename is specified, open this file as a PNG file, and send the graph
# there. If not specified (or specified as NULL), send to the current device, which may be a
# file... | /Plot1.R | no_license | sbarkin/ExData_Plotting1 | R | false | false | 1,206 | r | # Filename: Plot1.R
# Generates graph #1 in the assignment, callable for assignment part 1 and 4.
# Function: MakeGraph1
# Generate graph #1. If filename is specified, open this file as a PNG file, and send the graph
# there. If not specified (or specified as NULL), send to the current device, which may be a
# file... |
#######################################################################################
# get.prm.t.R - read and decode classifier training ASCII parameters file
# Ensign Energy Services Inc. retains all rights to this software
# FHS, March 27, 2019
######################################################################... | /source/classify/get.prm.t.R | no_license | sthallor/miscRscripts | R | false | false | 33,498 | r | #######################################################################################
# get.prm.t.R - read and decode classifier training ASCII parameters file
# Ensign Energy Services Inc. retains all rights to this software
# FHS, March 27, 2019
######################################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpStructures.R
\name{samplePosterior}
\alias{samplePosterior}
\title{samplePosterior function}
\usage{
samplePosterior(x)
}
\arguments{
\item{x}{an object of class lgcpPredictSpatialOnlyPlusParameters or lgcpPredictAggregateSpatialPlusParam... | /man/samplePosterior.Rd | no_license | jmarshallnz/lgcp | R | false | true | 637 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpStructures.R
\name{samplePosterior}
\alias{samplePosterior}
\title{samplePosterior function}
\usage{
samplePosterior(x)
}
\arguments{
\item{x}{an object of class lgcpPredictSpatialOnlyPlusParameters or lgcpPredictAggregateSpatialPlusParam... |
# 1.
library(biogeonetworks)
library(rgdal)
library(plyr)
library(RColorBrewer)
# Shapefiles
basins <- readOGR("./data/data_cours/basin2013_simplif.shp")
# Occurrence databases
load("./data/data_cours/fishdb1.RData")
load("./data/data_cours/fishdb2.RData")
# 2.
writePajek(fishdb1,
site.field = "Basin",
... | /scripts/Networks.R | no_license | BRamiroSanchez/Cours_Bioregionalisation | R | false | false | 3,269 | r | # 1.
library(biogeonetworks)
library(rgdal)
library(plyr)
library(RColorBrewer)
# Shapefiles
basins <- readOGR("./data/data_cours/basin2013_simplif.shp")
# Occurrence databases
load("./data/data_cours/fishdb1.RData")
load("./data/data_cours/fishdb2.RData")
# 2.
writePajek(fishdb1,
site.field = "Basin",
... |
library(kernlab)
library(MASS)
LOSS = function(x){
return(log2(1 + exp(-x)))
}
sigmoid = function(x){
return(1/(1 + exp(-x)))
}
f = function(w, obj, class, eta){
return(w + c(eta) * obj * class * sigmoid(c(w %*% obj) * class))
}
margin = function(w, obj, class){
return(w %*% obj * class)
}
GS = functio... | /LC/LC.R | no_license | Vector232/ML1 | R | false | false | 2,130 | r | library(kernlab)
library(MASS)
LOSS = function(x){
return(log2(1 + exp(-x)))
}
sigmoid = function(x){
return(1/(1 + exp(-x)))
}
f = function(w, obj, class, eta){
return(w + c(eta) * obj * class * sigmoid(c(w %*% obj) * class))
}
margin = function(w, obj, class){
return(w %*% obj * class)
}
GS = functio... |
fe34e56a62c088d42deac495a7fae8fd dungeon_i25-m12-u3-v0.pddl_planlen=144.qdimacs 102829 974669 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i25-m12-u3-v0.pddl_planlen=144/dungeon_i25-m12-u3-v0.pddl_planlen=144.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 93 | r | fe34e56a62c088d42deac495a7fae8fd dungeon_i25-m12-u3-v0.pddl_planlen=144.qdimacs 102829 974669 |
library(splines)
# predicted go for it model
load('data/observed_go_model.Rdata', .GlobalEnv)
add_pred_go <- function(data) {
data$pred_go <- predict(fit_fourth, data %>% prepare_glm(), type="response")
return(data)
}
# for cleaning after getting the probs
clean_data <- function(fourth_downs) {
fo... | /R/season_numbers_functions.R | no_license | mrcaseb/fourth_calculator | R | false | false | 4,579 | r | library(splines)
# predicted go for it model
load('data/observed_go_model.Rdata', .GlobalEnv)
add_pred_go <- function(data) {
data$pred_go <- predict(fit_fourth, data %>% prepare_glm(), type="response")
return(data)
}
# for cleaning after getting the probs
clean_data <- function(fourth_downs) {
fo... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcpp_new_optimization_problem <- function(nrow = 1000000L, ncol = 1000000L, ncell = 100000L) {
.Call(`_oppr_rcpp_new_optimization_problem`, nrow, ncol, ncell)
}
rcpp_predefined_optimizatio... | /fuzzedpackages/oppr/R/RcppExports.R | no_license | akhikolla/testpackages | R | false | false | 5,855 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcpp_new_optimization_problem <- function(nrow = 1000000L, ncol = 1000000L, ncell = 100000L) {
.Call(`_oppr_rcpp_new_optimization_problem`, nrow, ncol, ncell)
}
rcpp_predefined_optimizatio... |
RO<-read.csv("average_runoff_info.csv")
#[1] "ID" "site_name" "dec_lat_va" "dec_long_va"
#[5] "climate_div_num" "climate_div_name" "region" "min_avg"
#[9] "avg_avg" "max_avg"
attach(RO)
#region[region == "MTN"] <- "Mountains"
par(mfrow = c(1,3))
boxpl... | /Scripts from 2018 Paper/minmaxavg_boxplots.R | no_license | jpgannon/GZ_Mtns-Pied_V2 | R | false | false | 795 | r | RO<-read.csv("average_runoff_info.csv")
#[1] "ID" "site_name" "dec_lat_va" "dec_long_va"
#[5] "climate_div_num" "climate_div_name" "region" "min_avg"
#[9] "avg_avg" "max_avg"
attach(RO)
#region[region == "MTN"] <- "Mountains"
par(mfrow = c(1,3))
boxpl... |
#
# jeabehav_N1356.R, 25 Oct 16
# Data from:
# Probability Relations Within Response Sequences Under Ratio Reinforcement
# Francis Mechner
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
library("plyr")
rats=read.csv(paste0(ESEUR_dir, "developers/jeabehav_N1356.c... | /developers/jeabehav_N1356.R | no_license | alanponce/ESEUR-code-data | R | false | false | 727 | r | #
# jeabehav_N1356.R, 25 Oct 16
# Data from:
# Probability Relations Within Response Sequences Under Ratio Reinforcement
# Francis Mechner
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
library("plyr")
rats=read.csv(paste0(ESEUR_dir, "developers/jeabehav_N1356.c... |
#' Obtain hierarchical color palettes (Tree Colors)
#'
#' Obtain hierarchical color palettes, either the so-called Tree Colors from the HCL color space model, or by using an existing color palette. The former method, which is recommended, is used by default in \code{\link{treemap}} (type \code{"index"}) and \code{\link... | /pkg/R/treepalette.R | no_license | mtennekes/treemap | R | false | false | 6,143 | r | #' Obtain hierarchical color palettes (Tree Colors)
#'
#' Obtain hierarchical color palettes, either the so-called Tree Colors from the HCL color space model, or by using an existing color palette. The former method, which is recommended, is used by default in \code{\link{treemap}} (type \code{"index"}) and \code{\link... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/to_lang.R
\name{toJapanese}
\alias{toJapanese}
\title{Translate texts into Japanese using DeepL API Pro}
\usage{
toJapanese(
text,
source_lang = NULL,
split_sentences = TRUE,
preserve_formatting = FALSE,
get_detect = FALSE,
auth_k... | /man/toJapanese.Rd | permissive | zumbov2/deeplr | R | false | true | 2,503 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/to_lang.R
\name{toJapanese}
\alias{toJapanese}
\title{Translate texts into Japanese using DeepL API Pro}
\usage{
toJapanese(
text,
source_lang = NULL,
split_sentences = TRUE,
preserve_formatting = FALSE,
get_detect = FALSE,
auth_k... |
library("ggplot2");
library("dplyr");
d <- read.csv("rwc1999-2019.csv", sep = ';', header=T, na.string="NA");
fivenum(d$weight)
m <- mean(d$age, na.rm=T)
s <- sd(d$age, na.rm=TRUE)
allN <- nrow(d)
dSS <- d %>% filter(age > m - s & age < m +s ) %>% as.data.frame
allS <- nrow(dSS)
p <- allS/allN * 100
ggplot(d, ae... | /work/PL_RWC.R | no_license | hrpunio/Statystyka_2020 | R | false | false | 1,000 | r | library("ggplot2");
library("dplyr");
d <- read.csv("rwc1999-2019.csv", sep = ';', header=T, na.string="NA");
fivenum(d$weight)
m <- mean(d$age, na.rm=T)
s <- sd(d$age, na.rm=TRUE)
allN <- nrow(d)
dSS <- d %>% filter(age > m - s & age < m +s ) %>% as.data.frame
allS <- nrow(dSS)
p <- allS/allN * 100
ggplot(d, ae... |
.default.params <- list(
kam = 0.6, b = 0.55, c = 0.17, k = 40, r = 0.005, tau = 10,
ku = 0.5, D_low = 5, D_high = 40
)
.default.strategies <- list()
# Make a fake mesh by pinning down the four corners.
.pr2ar.mesh <- data.table::data.table(
PR = c(0.0, 0.0, 1.0, 1.0),
rho = c(0.0, 1.0, 0.... | /tests/testthat/test-pixel_work.R | permissive | adolgert/globalrc | R | false | false | 1,619 | r |
.default.params <- list(
kam = 0.6, b = 0.55, c = 0.17, k = 40, r = 0.005, tau = 10,
ku = 0.5, D_low = 5, D_high = 40
)
.default.strategies <- list()
# Make a fake mesh by pinning down the four corners.
.pr2ar.mesh <- data.table::data.table(
PR = c(0.0, 0.0, 1.0, 1.0),
rho = c(0.0, 1.0, 0.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/splitLexisDT.R
\name{splitLexisDT}
\alias{splitLexisDT}
\title{Split case-level observations}
\usage{
splitLexisDT(lex, breaks, timeScale, merge = TRUE, drop = TRUE)
}
\arguments{
\item{lex}{a Lexis object, split or not}
\item{breaks}{a vect... | /man/splitLexisDT.Rd | no_license | mattdowle/popEpi | R | false | true | 3,241 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/splitLexisDT.R
\name{splitLexisDT}
\alias{splitLexisDT}
\title{Split case-level observations}
\usage{
splitLexisDT(lex, breaks, timeScale, merge = TRUE, drop = TRUE)
}
\arguments{
\item{lex}{a Lexis object, split or not}
\item{breaks}{a vect... |
# Function to convert IAM data to effective natural area on a 2-degree grid
# Andy Purvis
# 2021-02-11
convert_iam_data <- function(iam_path, which_bii, ena_path, pdf_path, yb=2010, ye=2100, ys=5, layers=1){
biplot <- function(brick, LU){
plot(brick, 1, ylim=c(-90,90), axes=FALSE, main = paste(LU, "in 2010")... | /convert_iam_data.R | permissive | AndyPurvis/30by30 | R | false | false | 5,547 | r | # Function to convert IAM data to effective natural area on a 2-degree grid
# Andy Purvis
# 2021-02-11
convert_iam_data <- function(iam_path, which_bii, ena_path, pdf_path, yb=2010, ye=2100, ys=5, layers=1){
biplot <- function(brick, LU){
plot(brick, 1, ylim=c(-90,90), axes=FALSE, main = paste(LU, "in 2010")... |
library(FlickrAPI)
### Name: getExif
### Title: Returns a data of EXIF data for a given photo.
### Aliases: getExif
### ** Examples
## Not run:
##D getExif(api_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", photo_id="45961963324")
## End(Not run)
| /data/genthat_extracted_code/FlickrAPI/examples/getExif.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 251 | r | library(FlickrAPI)
### Name: getExif
### Title: Returns a data of EXIF data for a given photo.
### Aliases: getExif
### ** Examples
## Not run:
##D getExif(api_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", photo_id="45961963324")
## End(Not run)
|
require(lubridate)
require(dplyr)
##myData <- read.table("./household_power_consumption.txt", sep = ";", header = TRUE) ##Used to know where to start reading and how many lines
##which(myData$Date == ymd(20070201) | myData$Date == ymd(20070202))
##length(which(myData$Date == ymd(20070201) | myData$Date == ymd(20070202... | /plot2.R | no_license | hornet330/ExData_Plotting1 | R | false | false | 1,107 | r | require(lubridate)
require(dplyr)
##myData <- read.table("./household_power_consumption.txt", sep = ";", header = TRUE) ##Used to know where to start reading and how many lines
##which(myData$Date == ymd(20070201) | myData$Date == ymd(20070202))
##length(which(myData$Date == ymd(20070201) | myData$Date == ymd(20070202... |
#' @name extension
#' @title Generate and validate an extension vector for landmark parameters
#' @description This is a convenience function, modeled after
#' [ggplot2::expansion()], for generating extension vectors for the `extend_*`
#' parameters of [landmarks_maxmin()] and [landmarks_lastfirst()].
#' @details T... | /R/extension.r | no_license | peekxc/landmark | R | false | false | 1,228 | r | #' @name extension
#' @title Generate and validate an extension vector for landmark parameters
#' @description This is a convenience function, modeled after
#' [ggplot2::expansion()], for generating extension vectors for the `extend_*`
#' parameters of [landmarks_maxmin()] and [landmarks_lastfirst()].
#' @details T... |
###################################################################################
#Rainfall reconstrution using every possible model combination for PCs 1-4 (WET SEASON)
###################################################################################
##clear everything
rm(list=ls())
#load packages
library(... | /Model_Combos_and_Reconstruction_Wet.R | no_license | kristensans/Statistical-Downscaling | R | false | false | 14,034 | r | ###################################################################################
#Rainfall reconstrution using every possible model combination for PCs 1-4 (WET SEASON)
###################################################################################
##clear everything
rm(list=ls())
#load packages
library(... |
ClassificationParser <- R6::R6Class(
"ClassificationParser",
inherit = AbstractParser,
private = list(
parse_record = function() {
drugs <- xmlChildren(pkg_env$root)
pb <- progress_bar$new(total = xmlSize(drugs))
return(map_df(drugs, ~ private$drug_classifications_df(.x, pb)))
}... | /R/drug_classfication_node_parser.R | no_license | cran/dbparser | R | false | false | 2,032 | r | ClassificationParser <- R6::R6Class(
"ClassificationParser",
inherit = AbstractParser,
private = list(
parse_record = function() {
drugs <- xmlChildren(pkg_env$root)
pb <- progress_bar$new(total = xmlSize(drugs))
return(map_df(drugs, ~ private$drug_classifications_df(.x, pb)))
}... |
#' Time to 100 tweets
#'
#' This function allows you to calculate the amount of time it takes a part to write 100 tweets (in days).
#' It is based on the data returned from a twitteR object and individual numerical participant ids genderated
#' for each screenName.
#' @param dataframe A data frame object
#' @keywords... | /dissR/R/time_to_100.R | no_license | mraess/diss_r | R | false | false | 3,208 | r |
#' Time to 100 tweets
#'
#' This function allows you to calculate the amount of time it takes a part to write 100 tweets (in days).
#' It is based on the data returned from a twitteR object and individual numerical participant ids genderated
#' for each screenName.
#' @param dataframe A data frame object
#' @keywords... |
#Un mundo en deuda
#librerias de base
library(tidyverse)
library(magrittr)
library(gganimate)
library(scales)
library(ggthemes)
library(hrbrthemes)
library(ggmap)
library(maps)
library(transformr)
#establecer directorio de trabajo
getwd()
setwd("C:/Users/Adrian Bautista/Desktop/Deuda")
dir()
deuda <- read.csv("Deud... | /Deuda.R | no_license | bautista-adrian/Deuda_Mundo | R | false | false | 18,272 | r | #Un mundo en deuda
#librerias de base
library(tidyverse)
library(magrittr)
library(gganimate)
library(scales)
library(ggthemes)
library(hrbrthemes)
library(ggmap)
library(maps)
library(transformr)
#establecer directorio de trabajo
getwd()
setwd("C:/Users/Adrian Bautista/Desktop/Deuda")
dir()
deuda <- read.csv("Deud... |
\name{rLSloadVariableStages}
\alias{rLSloadVariableStages}
\title{Load stage structure of the variables in the model.}
\description{
R interface function for LINDO API function \code{LSloadVariableStages}. For more information,
please refer to LINDO API User Manual.
}
\usage{
rLSloadVariableStages(mod... | /man/rLSloadVariableStages.Rd | no_license | cran/rLindo | R | false | false | 715 | rd | \name{rLSloadVariableStages}
\alias{rLSloadVariableStages}
\title{Load stage structure of the variables in the model.}
\description{
R interface function for LINDO API function \code{LSloadVariableStages}. For more information,
please refer to LINDO API User Manual.
}
\usage{
rLSloadVariableStages(mod... |
#' @title Format RNA-seq or Affymetrix data downloaded from Bgee.
#'
#' @description This function formats the data downloaded with the getData() function into an object of the Bioconductor "expressionSet" Class.
#'
#' @param myBgeeObject A Reference Class Bgee object, notably specifying the targeted species and data t... | /R/formatData.R | no_license | wirawara/BgeeDB | R | false | false | 8,455 | r | #' @title Format RNA-seq or Affymetrix data downloaded from Bgee.
#'
#' @description This function formats the data downloaded with the getData() function into an object of the Bioconductor "expressionSet" Class.
#'
#' @param myBgeeObject A Reference Class Bgee object, notably specifying the targeted species and data t... |
#' @title fitCyclopsModel
#'
#' @description
#' \code{fitCyclopsModel} fits a Cyclops model data object
#'
#' @details
#' This function performs numerical optimization to fit a Cyclops model data object.
#'
#' @param cyclopsData An OHDSI data object
#' @template prior
#' @param control OHDSI control object, see \code... | /R/ModelFit.R | no_license | testdev123org/Cyclops | R | false | false | 20,097 | r | #' @title fitCyclopsModel
#'
#' @description
#' \code{fitCyclopsModel} fits a Cyclops model data object
#'
#' @details
#' This function performs numerical optimization to fit a Cyclops model data object.
#'
#' @param cyclopsData An OHDSI data object
#' @template prior
#' @param control OHDSI control object, see \code... |
## Run Analysis
## Script to do the following:
## 1. Merge the training and test sets into a single data set.
## 2. Extract only the measurements on the mean and standard deviation
## for each measurement.
## 3. Use descriptive activity names for the activities in the data set.
## 4. Label data set with approp... | /run_analysis.R | no_license | Galaxial-Remote/GDC-Project | R | false | false | 3,606 | r | ## Run Analysis
## Script to do the following:
## 1. Merge the training and test sets into a single data set.
## 2. Extract only the measurements on the mean and standard deviation
## for each measurement.
## 3. Use descriptive activity names for the activities in the data set.
## 4. Label data set with approp... |
###################################
### Backward Elimination by RF ###
###################################
leaveout_var <- NULL
MOOB.err <- NULL
tempx <- cleandat_cate_reduced[, 9:61]
for(i in 1:51) {
tempfit <- randomForest(x = tempx,
y = as.factor(cleandat_cate_reduced[,6]),
... | /backwordElimRF.R | no_license | hzz1989118/R-ETS-RandomForest | R | false | false | 1,547 | r | ###################################
### Backward Elimination by RF ###
###################################
leaveout_var <- NULL
MOOB.err <- NULL
tempx <- cleandat_cate_reduced[, 9:61]
for(i in 1:51) {
tempfit <- randomForest(x = tempx,
y = as.factor(cleandat_cate_reduced[,6]),
... |
library(gage)
library(GenomicFeatures)
library(Rsamtools)
library(annotate)
library(pathview)
require(gage)
require(gageData)
myargs <- commandArgs(trailingOnly = TRUE)
settings <- myargs[1] #mm9, mm10 or hg19
resFile <- myargs[2] #file where the DE-results are stored (with logFC)
outputFolder <- myargs[3]
... | /Pipeline/gagePathwayAnalysis.R | permissive | mri-ihg/ngs_pipeline | R | false | false | 2,501 | r | library(gage)
library(GenomicFeatures)
library(Rsamtools)
library(annotate)
library(pathview)
require(gage)
require(gageData)
myargs <- commandArgs(trailingOnly = TRUE)
settings <- myargs[1] #mm9, mm10 or hg19
resFile <- myargs[2] #file where the DE-results are stored (with logFC)
outputFolder <- myargs[3]
... |
## These functions cache the inverse of a matrix. Function "makeCacheMatrix"
## creates a special"matrix" object that can cache its inverse. Function
## "cacheSolve" computes the inverse of the special "matrix" returned by
## makeCacheMatrix above. If the inverse has already been calculated(and the
## matrix... | /cachematrix.R | no_license | Hhjj/ProgrammingAssignment2 | R | false | false | 1,292 | r | ## These functions cache the inverse of a matrix. Function "makeCacheMatrix"
## creates a special"matrix" object that can cache its inverse. Function
## "cacheSolve" computes the inverse of the special "matrix" returned by
## makeCacheMatrix above. If the inverse has already been calculated(and the
## matrix... |
seed <- 1066
log.wt <- 0.0
penalty <- 2.8115950178536287e-8
intervals.send <- c()
intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400)
dev.null <- 358759.0022669336
df.null <- 35567
dev.resid <- 225835... | /analysis/boot/boot1066.R | no_license | patperry/interaction-proc | R | false | false | 3,748 | r | seed <- 1066
log.wt <- 0.0
penalty <- 2.8115950178536287e-8
intervals.send <- c()
intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400)
dev.null <- 358759.0022669336
df.null <- 35567
dev.resid <- 225835... |
# tests for annotations fxn in ropensnp
context("annotations")
sm <- suppressMessages
one <- sm(annotations(snp = 'rs7903146', output = 'snpedia'))
test_that("annotations returns the correct class", {
expect_that(one, is_a("data.frame"))
expect_that(sm(annotations(snp = 'rs7903146', output = 'all')), is_a("data.fra... | /tests/testthat/test-annotations.R | permissive | whao89/rsnps | R | false | false | 613 | r | # tests for annotations fxn in ropensnp
context("annotations")
sm <- suppressMessages
one <- sm(annotations(snp = 'rs7903146', output = 'snpedia'))
test_that("annotations returns the correct class", {
expect_that(one, is_a("data.frame"))
expect_that(sm(annotations(snp = 'rs7903146', output = 'all')), is_a("data.fra... |
library("stringr")
| /R/dojo.R | no_license | czeildi/r-dojo | R | false | false | 19 | r | library("stringr")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binomial.R
\name{bin_variance}
\alias{bin_variance}
\title{bin_variance}
\usage{
bin_variance(trials, prob)
}
\arguments{
\item{trials}{number of trials}
\item{prob}{probability of success}
}
\value{
the calculated variance
}
\description{
c... | /workout03/binomial/man/bin_variance.Rd | no_license | stat133-sp19/hw-stat133-Binwuhu | R | false | true | 375 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binomial.R
\name{bin_variance}
\alias{bin_variance}
\title{bin_variance}
\usage{
bin_variance(trials, prob)
}
\arguments{
\item{trials}{number of trials}
\item{prob}{probability of success}
}
\value{
the calculated variance
}
\description{
c... |
# Load all dependencies
source('dependencies.R')
bank = bankTwoDimensionsDataset$new('dataset/bank.xlsx')
bankPoints = bank$points();
distanceCalculator = hammingDistanceCalculator$new()
kNearestNeighbourClassifier = kNearestNeighbourClassifier$new(distanceCalculator, bankPoints)
bankPointsDimensions = dim(bankPoint... | /dataset_analysis/bank_analysis.R | no_license | senhorinha/pattern-recognition | R | false | false | 1,169 | r | # Load all dependencies
source('dependencies.R')
bank = bankTwoDimensionsDataset$new('dataset/bank.xlsx')
bankPoints = bank$points();
distanceCalculator = hammingDistanceCalculator$new()
kNearestNeighbourClassifier = kNearestNeighbourClassifier$new(distanceCalculator, bankPoints)
bankPointsDimensions = dim(bankPoint... |
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
... | /class0808test/ui.R | no_license | jasonsseraph/thefirstone | R | false | false | 1,004 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
... |
# - - - - - - - - - -
# CSNA DATA
# Author: Eve Kraicer
# - - - - - - - - - -
library(stringr)
# setwd('~/Desktop/csna')
# get data
num_func <- function(x){as.numeric(as.character(x))}
data_all <- data.frame(read.csv('data_all.csv'))
# preprocessing
# get rid of spaces and other errors
age <- gsub('\\s', '', age... | /csna-data.R | no_license | evehk/archive | R | false | false | 3,559 | r |
# - - - - - - - - - -
# CSNA DATA
# Author: Eve Kraicer
# - - - - - - - - - -
library(stringr)
# setwd('~/Desktop/csna')
# get data
num_func <- function(x){as.numeric(as.character(x))}
data_all <- data.frame(read.csv('data_all.csv'))
# preprocessing
# get rid of spaces and other errors
age <- gsub('\\s', '', age... |
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
library(openxlsx)
library(tidyverse)
library(lubridate)
# openxlsx
math_scores <- openxlsx::read.xlsx("./data-raw/student-performance.xlsx",
sheet = "Math scores")
port_scores <- openxlsx::read.xlsx("./data-raw/student-perfo... | /test-script/test-script.R | permissive | pimatej/urejanje-podatkov | R | false | false | 1,402 | r | setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
library(openxlsx)
library(tidyverse)
library(lubridate)
# openxlsx
math_scores <- openxlsx::read.xlsx("./data-raw/student-performance.xlsx",
sheet = "Math scores")
port_scores <- openxlsx::read.xlsx("./data-raw/student-perfo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spaRcc.R
\name{norm_diric}
\alias{norm_diric}
\title{importFrom VGAM rdiric}
\usage{
norm_diric(x, rep = 1)
}
\description{
importFrom VGAM rdiric
}
| /man/norm_diric.Rd | no_license | jamesrco/SpiecEasi | R | false | true | 227 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spaRcc.R
\name{norm_diric}
\alias{norm_diric}
\title{importFrom VGAM rdiric}
\usage{
norm_diric(x, rep = 1)
}
\description{
importFrom VGAM rdiric
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datalow_utils.r
\name{getminy}
\alias{getminy}
\title{getminy generates the lower bound for a plot}
\usage{
getminy(x, mult = 1.05)
}
\arguments{
\item{x}{the vector of data to be tested for its minimum}
\item{mult}{the multiplier... | /man/getminy.Rd | no_license | haddonm/datalowSA | R | false | true | 875 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datalow_utils.r
\name{getminy}
\alias{getminy}
\title{getminy generates the lower bound for a plot}
\usage{
getminy(x, mult = 1.05)
}
\arguments{
\item{x}{the vector of data to be tested for its minimum}
\item{mult}{the multiplier... |
# Convert data frames to JSON more flexibly
#
# The toJSON function in RJSONIO converts a dataframe to an object of
# arrays by column. Sometimes, we need an array of objects. This function
# provides more flexible options to convert a dataframe to JSON. It also
# allows one to return an R object which when passed to t... | /R/to_json.R | no_license | hafen/htmlwidgets | R | false | false | 1,156 | r | # Convert data frames to JSON more flexibly
#
# The toJSON function in RJSONIO converts a dataframe to an object of
# arrays by column. Sometimes, we need an array of objects. This function
# provides more flexible options to convert a dataframe to JSON. It also
# allows one to return an R object which when passed to t... |
# library
library(gridExtra)
library(grid)
### main
cairo_pdf(file="test1.pdf") # 名前は随時変更
grid.draw(tableGrob(head(result,15))) # 対象となるdata.frame
dev.off()
getwd()
###
### データフレーム操作
aaa<- t(result) %>% # 転置
as.data.frame()
# apply使いましょう
aaa$error.te1 %>% unlist() -> aaa$error.te1
aaa$error.te2 %>% unlist() -> aaa... | /script/MakeTable.R | no_license | takuto0831/Experiment_document | R | false | false | 780 | r | # library
library(gridExtra)
library(grid)
### main
cairo_pdf(file="test1.pdf") # 名前は随時変更
grid.draw(tableGrob(head(result,15))) # 対象となるdata.frame
dev.off()
getwd()
###
### データフレーム操作
aaa<- t(result) %>% # 転置
as.data.frame()
# apply使いましょう
aaa$error.te1 %>% unlist() -> aaa$error.te1
aaa$error.te2 %>% unlist() -> aaa... |
= module Cairo::Filter
== Constants
--- BEST
--- BILINEAR
--- FAST
--- GAUSSIAN
--- GOOD
--- NEAREST
== See Also
== ChangeLog
| /en/cairo-filter.rd | no_license | rcairo/doc | R | false | false | 132 | rd | = module Cairo::Filter
== Constants
--- BEST
--- BILINEAR
--- FAST
--- GAUSSIAN
--- GOOD
--- NEAREST
== See Also
== ChangeLog
|
#! /usr/bin/env Rscript
library(rmr2)
library(rhdfs)
hdfs.init()
iris.data = read.table("iris.data", sep = ",", header = FALSE)
iris.in = to.dfs(iris.data)
map = function(k,v) {
keyval(v[5], 1)
}
reduce = function(k,vv) {
keyval(k, sum(vv))
}
iris.out = mapreduce(
input = iris.in,
map = map,
reduce = red... | /word_count.R | no_license | xxxxxppppp123/RHadoop | R | false | false | 346 | r | #! /usr/bin/env Rscript
library(rmr2)
library(rhdfs)
hdfs.init()
iris.data = read.table("iris.data", sep = ",", header = FALSE)
iris.in = to.dfs(iris.data)
map = function(k,v) {
keyval(v[5], 1)
}
reduce = function(k,vv) {
keyval(k, sum(vv))
}
iris.out = mapreduce(
input = iris.in,
map = map,
reduce = red... |
"bsaqdpm" <- function(formula, xmin, xmax, p, nbasis, nint, mcmc = list(), prior = list(), egrid, ngrid = 500,
shape = c("Free", "Increasing", "Decreasing", "IncreasingConvex", "DecreasingConcave",
"IncreasingConcave", "DecreasingConvex", "IncreasingS", "DecreasingS... | /R/bsaqdpm.R | no_license | jourdy345/bsamGP | R | false | false | 8,376 | r | "bsaqdpm" <- function(formula, xmin, xmax, p, nbasis, nint, mcmc = list(), prior = list(), egrid, ngrid = 500,
shape = c("Free", "Increasing", "Decreasing", "IncreasingConvex", "DecreasingConcave",
"IncreasingConcave", "DecreasingConvex", "IncreasingS", "DecreasingS... |
#simulates distance data to validate how ddf estimates gamma detection function parameters
#author: Lisa-Marie Harrison
#date: 26/08/2016
library(mrds)
set.seed(123)
gdata<-data.frame(object=1:1000,distance=rgamma(1000,scale=1,shape=1))
mm <- ddf(dsmodel=~cds(key="gamma"), data=gdata, method="ds",
meta.data... | /ddf_gamma_estimate_simulation.R | no_license | lisamarieharrison/R-aerial-survey | R | false | false | 906 | r | #simulates distance data to validate how ddf estimates gamma detection function parameters
#author: Lisa-Marie Harrison
#date: 26/08/2016
library(mrds)
set.seed(123)
gdata<-data.frame(object=1:1000,distance=rgamma(1000,scale=1,shape=1))
mm <- ddf(dsmodel=~cds(key="gamma"), data=gdata, method="ds",
meta.data... |
####################
#
# Frederick National Laboratory
# Susan Huse, susan.huse@@nih.gov
# October 16, 2018
#
####################
#' Filter topTable results by fold change, significance, and n
#'
#' Runs limma topTable on an input fit object,
#' filters by minimum q-value, logFC, and returns up to n rows.
#'
#' Ru... | /NCBR.RTools/R/get_filtered_topTable.R | no_license | arunbodd/NIAID | R | false | false | 2,362 | r | ####################
#
# Frederick National Laboratory
# Susan Huse, susan.huse@@nih.gov
# October 16, 2018
#
####################
#' Filter topTable results by fold change, significance, and n
#'
#' Runs limma topTable on an input fit object,
#' filters by minimum q-value, logFC, and returns up to n rows.
#'
#' Ru... |
# CA3_1 -> Dominating Set
library(igraph)
add_horiz_edges <- function(row, col, g){
vertex <- row * num_rows + col
for(k in (col + 1) : num_rows){
#for(k in 1 : num_rows){
if(k <= num_rows){
g <- add_edges(g, c(vertex, ( row * num_rows + k)))
}
}
return(g)
}
add_vert_edges <- function(row, c... | /CA3_1.R | no_license | NegarMirgati/Coloring_Dominating-Set | R | false | false | 7,364 | r | # CA3_1 -> Dominating Set
library(igraph)
add_horiz_edges <- function(row, col, g){
vertex <- row * num_rows + col
for(k in (col + 1) : num_rows){
#for(k in 1 : num_rows){
if(k <= num_rows){
g <- add_edges(g, c(vertex, ( row * num_rows + k)))
}
}
return(g)
}
add_vert_edges <- function(row, c... |
/MLib/TradeClasses.R | no_license | markusMiksa/ETFportfolio | R | false | false | 45,302 | r | ||
#ReformatLCM_HC
BrainRegion<-"HC"
LM5Betas<-read.table("LM5Betas.csv", header=T, row.names=1, sep=",")
#Hmm... note: I'm not going to be able to automate all of this easily, because only some regions have "EarlyLateCohort" as a variable - although those results may not be worth extracting anyway, right? Inter... | /ReformattingHC_LCM.R | no_license | hagenaue/LegendOfTheHiddenDataset | R | false | false | 5,783 | r |
#ReformatLCM_HC
BrainRegion<-"HC"
LM5Betas<-read.table("LM5Betas.csv", header=T, row.names=1, sep=",")
#Hmm... note: I'm not going to be able to automate all of this easily, because only some regions have "EarlyLateCohort" as a variable - although those results may not be worth extracting anyway, right? Inter... |
p <- 0.53
df <- rbinom(10000,1,p)
media <- mean(df)
varianza <- sd(df)**2
estimate.mean <- function(n,p=0.5) mean(rbinom(n,1,p))
res <- replicate(1000,estimate.mean(100000,p=0.6))
estimate.var <- function(n,p=0.5) var(rbinom(n,1,p))
res <- replicate(1000,estimate.mean(100000,p=0.6))
pes <- seq(0,1,by=0.01)
res... | /distribuciones discretas.r | no_license | arrpak/material | R | false | false | 626 | r | p <- 0.53
df <- rbinom(10000,1,p)
media <- mean(df)
varianza <- sd(df)**2
estimate.mean <- function(n,p=0.5) mean(rbinom(n,1,p))
res <- replicate(1000,estimate.mean(100000,p=0.6))
estimate.var <- function(n,p=0.5) var(rbinom(n,1,p))
res <- replicate(1000,estimate.mean(100000,p=0.6))
pes <- seq(0,1,by=0.01)
res... |
main.pixel <- function(
input.objects=c("mlt", "mst", "nlt", "nst"),
fishing.options=c(1),
runmcsims=TRUE,
runassessments=FALSE,
ggp.in=NULL,
areas=areas.US10.nompa,
pixels=pixel.US10.nompa,
foraging.list=foraging.US10, # Need to include foraging when using it otherwise comment out
catch... | /main.pixel.r | no_license | EmilyKlein/KPFM2_MPA_FBM | R | false | false | 3,080 | r | main.pixel <- function(
input.objects=c("mlt", "mst", "nlt", "nst"),
fishing.options=c(1),
runmcsims=TRUE,
runassessments=FALSE,
ggp.in=NULL,
areas=areas.US10.nompa,
pixels=pixel.US10.nompa,
foraging.list=foraging.US10, # Need to include foraging when using it otherwise comment out
catch... |
#' Day of week according to ISO 8601
#'
#' This function returns the weekday of a given date according to ISO 8601.
#' It is an substitute for the "\code{\%u}" format which is not implemented on Windows.
#'
#' @param date Vector which can be coerced to class \code{Date}
#' @return An integer vector of weekdays (1-7, M... | /R/ISOweek2date.R | permissive | b-rodrigues/covidGrandeRegion | R | false | false | 4,270 | r | #' Day of week according to ISO 8601
#'
#' This function returns the weekday of a given date according to ISO 8601.
#' It is an substitute for the "\code{\%u}" format which is not implemented on Windows.
#'
#' @param date Vector which can be coerced to class \code{Date}
#' @return An integer vector of weekdays (1-7, M... |
### =========================================================================
### S3 typed list objects
### -------------------------------------------------------------------------
###
### Yes, we already have S4 typed lists, but S3 class labels let us
### transmit typed lists to Hail through data.frames.
###
setOldC... | /R/typed_list.R | no_license | lawremi/hailr | R | false | false | 1,841 | r | ### =========================================================================
### S3 typed list objects
### -------------------------------------------------------------------------
###
### Yes, we already have S4 typed lists, but S3 class labels let us
### transmit typed lists to Hail through data.frames.
###
setOldC... |
#' @useDynLib jsonlite R_num_to_char
num_to_char <- function(x, digits = NA, na_as_string = NA, use_signif = FALSE, always_decimal = FALSE){
if(is.na(digits)) digits <- NA_integer_;
stopifnot(is.numeric(x))
stopifnot(is.numeric(digits))
stopifnot(is.logical(na_as_string))
.Call(R_num_to_char, x, digits, na_as... | /R/num_to_char.R | permissive | jeroen/jsonlite | R | false | false | 1,213 | r | #' @useDynLib jsonlite R_num_to_char
num_to_char <- function(x, digits = NA, na_as_string = NA, use_signif = FALSE, always_decimal = FALSE){
if(is.na(digits)) digits <- NA_integer_;
stopifnot(is.numeric(x))
stopifnot(is.numeric(digits))
stopifnot(is.logical(na_as_string))
.Call(R_num_to_char, x, digits, na_as... |
## ----opts, echo=FALSE---------------------------------------------------------
knitr::opts_chunk$set(fig.width=8, fig.height=5)
## ----pkgs---------------------------------------------------------------------
library(Polychrome)
## ----rg, fig.cap="Common red-green palette."----------------------------------
... | /inst/doc/color-deficits.R | no_license | cran/Polychrome | R | false | false | 3,193 | r | ## ----opts, echo=FALSE---------------------------------------------------------
knitr::opts_chunk$set(fig.width=8, fig.height=5)
## ----pkgs---------------------------------------------------------------------
library(Polychrome)
## ----rg, fig.cap="Common red-green palette."----------------------------------
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grd.Magkap.R
\name{grd.Magkap}
\alias{grd.Magkap}
\title{dddGroundwater.Magkap}
\usage{
grd.Magkap(NoL, Res_prob, CapacityUpperLevel)
}
\arguments{
\item{NoL}{number of layer}
\item{Res_prob}{groundwater saturation quantiles for each level}
... | /man/grd.Magkap.Rd | no_license | nexModeling/dddGroundwater | R | false | true | 575 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grd.Magkap.R
\name{grd.Magkap}
\alias{grd.Magkap}
\title{dddGroundwater.Magkap}
\usage{
grd.Magkap(NoL, Res_prob, CapacityUpperLevel)
}
\arguments{
\item{NoL}{number of layer}
\item{Res_prob}{groundwater saturation quantiles for each level}
... |
library(testthat)
#source("process_cricsheet.R")
test_that("City to Country mapping", {
expect_equal(as.character(geocode("Sydney", output = "more")$country), "Australia")
})
test_that("string manipulations", {
expect_equal("file", get_filename("folder/file.yaml"))
})
test_that("home, away and neutra... | /test_cricket.R | no_license | tecb1234/Cricket | R | false | false | 1,699 | r | library(testthat)
#source("process_cricsheet.R")
test_that("City to Country mapping", {
expect_equal(as.character(geocode("Sydney", output = "more")$country), "Australia")
})
test_that("string manipulations", {
expect_equal("file", get_filename("folder/file.yaml"))
})
test_that("home, away and neutra... |
###### top matter
setwd("/Users/Arathi/Documents/2017/RMIT/Research - CARP/CARP/LRC_models")
library(deSolve); library(readxl)
source("function_library_model2.3.R")
###### Choose the zone of the Lachlan Catchment: can be a number from 1-8
for(z in 1:8){
zone<-z
###### set strength of density dependence
s... | /run_model2.3.R | no_license | Arathi-Arakala/LRC_models | R | false | false | 1,579 | r |
###### top matter
setwd("/Users/Arathi/Documents/2017/RMIT/Research - CARP/CARP/LRC_models")
library(deSolve); library(readxl)
source("function_library_model2.3.R")
###### Choose the zone of the Lachlan Catchment: can be a number from 1-8
for(z in 1:8){
zone<-z
###### set strength of density dependence
s... |
### Define the anistotropy function
makeH <- function(gamma, v_x, v_y) {
H <- gamma*diag(2) + c(v_x, v_y) %*% t(c(v_x, v_y))
return(H)
}
H <- makeH(exp(-0.272), 0.477, -5) / exp(-1.75)
plotH <- function(H) {
eigenH <- eigen(H)
eigVal <- eigenH$values
eigVec <- eigenH$vectors
eigScl <- eigVec %... | /analysis/makeH.R | no_license | aucarter/nonstat_cov | R | false | false | 977 | r | ### Define the anistotropy function
makeH <- function(gamma, v_x, v_y) {
H <- gamma*diag(2) + c(v_x, v_y) %*% t(c(v_x, v_y))
return(H)
}
H <- makeH(exp(-0.272), 0.477, -5) / exp(-1.75)
plotH <- function(H) {
eigenH <- eigen(H)
eigVal <- eigenH$values
eigVec <- eigenH$vectors
eigScl <- eigVec %... |
#---------------------------------------------------------------------------------------------------
# Command: Rscript overlap_check.R file1 file2
# This will print two lines for how many footprints and motifs are matched beween the input files.
#----------------------------------------------------------------------... | /generate_db/validation/overlap_check.R | no_license | bheavner/genomics-footprint | R | false | false | 1,266 | r | #---------------------------------------------------------------------------------------------------
# Command: Rscript overlap_check.R file1 file2
# This will print two lines for how many footprints and motifs are matched beween the input files.
#----------------------------------------------------------------------... |
# Data preprocessing
#Importing the dataset
dataset= read.csv('Data.CSV')
# dataset=dataset[, 2:3]
#splitting the dataset into the Training set and Test set
#install.packages('caTools')
library(caTools)
set.seed(123)
split = sample.split(dataset$Purchased,SplitRatio = 0.8)
training_set=subset(dataset,split==TRUE)
t... | /Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/data_preprocessing_templets.R | no_license | Ali5ch/Machine-Learning-Models | R | false | false | 471 | r | # Data preprocessing
#Importing the dataset
dataset= read.csv('Data.CSV')
# dataset=dataset[, 2:3]
#splitting the dataset into the Training set and Test set
#install.packages('caTools')
library(caTools)
set.seed(123)
split = sample.split(dataset$Purchased,SplitRatio = 0.8)
training_set=subset(dataset,split==TRUE)
t... |
library(ggplot2)
library(data.table)
library(cowplot)
library(gridExtra)
library(grid)
library(scales)
library(dplyr)
library(gtable)
library(ggrepel)
source("custom_arrow.R")
#library(plyr)
setwd("/mnt/griffin/jashil/GenManFig_2")
set.seed(2017)
scafChunks <- fread("ScaffChrom_id.txt")
colnames(scafChunks) <- c("Chr... | /orientationChromSim/fig2v4.R | no_license | JasonAnthonyHill/Piers_napi | R | false | false | 8,830 | r | library(ggplot2)
library(data.table)
library(cowplot)
library(gridExtra)
library(grid)
library(scales)
library(dplyr)
library(gtable)
library(ggrepel)
source("custom_arrow.R")
#library(plyr)
setwd("/mnt/griffin/jashil/GenManFig_2")
set.seed(2017)
scafChunks <- fread("ScaffChrom_id.txt")
colnames(scafChunks) <- c("Chr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{get_cache_dir}
\alias{get_cache_dir}
\title{Get cache directory}
\usage{
get_cache_dir(cache_dir)
}
\arguments{
\item{cache_dir}{This argument indicates the path to the
desired cache directory. Defaults to \code{NULL}.
The desir... | /man/get_cache_dir.Rd | permissive | felix-hof/suspendr | R | false | true | 1,211 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{get_cache_dir}
\alias{get_cache_dir}
\title{Get cache directory}
\usage{
get_cache_dir(cache_dir)
}
\arguments{
\item{cache_dir}{This argument indicates the path to the
desired cache directory. Defaults to \code{NULL}.
The desir... |
library(ggplot2)
library(scales)
library(lubridate)
library(stringr)
library(rPython)
library(Rcpp)
top_dir <- "/home/mikola/slurm_simulator3/slurm_sim_tools/validation"
setwd(top_dir)
source("../Rutil/trace_job_util.R")
sdiag<-read.csv("sdiag.csv")
sdiag$sdiag_output_time <- as.POSIXct(sdiag$sdiag_output_time,for... | /tutorials/micro_cluster/20_Analyse_InitSim.R | no_license | scserlch/slurm_sim_tools | R | false | false | 525 | r | library(ggplot2)
library(scales)
library(lubridate)
library(stringr)
library(rPython)
library(Rcpp)
top_dir <- "/home/mikola/slurm_simulator3/slurm_sim_tools/validation"
setwd(top_dir)
source("../Rutil/trace_job_util.R")
sdiag<-read.csv("sdiag.csv")
sdiag$sdiag_output_time <- as.POSIXct(sdiag$sdiag_output_time,for... |
# clear and set wd ----
rm(list=ls()) # Caution: this clears the Environment
if (!require("pacman")) install.packages("pacman")
pacman::p_load(
stars, # spatiotemporal data handling
terra, # raster data handling
raster, # raster data handling
sf, # vector data handling
dplyr, # data wrangling
stringr, # ... | /Iwm_costshare_county_updated.R | no_license | jemsethio/ag_water_delta | R | false | false | 7,718 | r |
# clear and set wd ----
rm(list=ls()) # Caution: this clears the Environment
if (!require("pacman")) install.packages("pacman")
pacman::p_load(
stars, # spatiotemporal data handling
terra, # raster data handling
raster, # raster data handling
sf, # vector data handling
dplyr, # data wrangling
stringr, # ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zzz.R
\docType{data}
\name{RP3_RDB}
\alias{RP3_RDB}
\title{Global variable}
\format{
An object of class \code{NULL} of length 0.
}
\usage{
RP3_RDB
}
\description{
Global variable
}
\author{
mvaniterson
}
\keyword{data}
| /BBMRIomics/man/RP3_RDB.Rd | no_license | bbmri-nl/BBMRIomics | R | false | true | 297 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zzz.R
\docType{data}
\name{RP3_RDB}
\alias{RP3_RDB}
\title{Global variable}
\format{
An object of class \code{NULL} of length 0.
}
\usage{
RP3_RDB
}
\description{
Global variable
}
\author{
mvaniterson
}
\keyword{data}
|
#' @rdname base_lr_transforms
#' @export
ilrContrast <- function(d){
if (length(d)==1){
return(ilrContrastDefault_internal(as.integer(d)))
} else if (length(d) > 1){
if (!all(rowSums(d) ==0)) stop("rowSums of your contrast matrix do not sum to 0")
mode(d) <- "integer"
return (ilrContrastSign_interna... | /R/contrast.R | no_license | jsilve24/RcppCoDA | R | false | false | 427 | r | #' @rdname base_lr_transforms
#' @export
ilrContrast <- function(d){
if (length(d)==1){
return(ilrContrastDefault_internal(as.integer(d)))
} else if (length(d) > 1){
if (!all(rowSums(d) ==0)) stop("rowSums of your contrast matrix do not sum to 0")
mode(d) <- "integer"
return (ilrContrastSign_interna... |
#' Dependency
#'
#' Add aphysics dependency.
#'
#' @param cdn Whether to use local or CDN files.
#'
#' @examples
#' library(aframer)
#'
#' browse_aframe(
#' a_scene(
#' physics = opts_aframe(debug = TRUE),
#' a_dependency(),
#' aphysics_dependency(),
#' a_entity(
#' camera = NA,
#' `look-c... | /R/dep.R | permissive | jsdelivrbot/aphysics | R | false | false | 955 | r | #' Dependency
#'
#' Add aphysics dependency.
#'
#' @param cdn Whether to use local or CDN files.
#'
#' @examples
#' library(aframer)
#'
#' browse_aframe(
#' a_scene(
#' physics = opts_aframe(debug = TRUE),
#' a_dependency(),
#' aphysics_dependency(),
#' a_entity(
#' camera = NA,
#' `look-c... |
library(UnivRNG)
### Name: draw.pareto
### Title: Generates variates from Pareto distribution
### Aliases: draw.pareto
### ** Examples
draw.pareto(nrep=100000,shape=11,location=11)
draw.pareto(nrep=100000,shape=8,location=10)
| /data/genthat_extracted_code/UnivRNG/examples/draw.pareto.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 234 | r | library(UnivRNG)
### Name: draw.pareto
### Title: Generates variates from Pareto distribution
### Aliases: draw.pareto
### ** Examples
draw.pareto(nrep=100000,shape=11,location=11)
draw.pareto(nrep=100000,shape=8,location=10)
|
library(RJSONIO)
library(yaml)
# Strategy: before running jekyll, parse all .Rmd files and build index
# Modify rmd2md to add json pass that modifies links
# Use pandoc to parse a markdown file
parse_md <- function(in_path) {
out_path <- tempfile()
on.exit(unlink(out_path))
cmd <- paste0("pandoc -f markdown -t ... | /_plugins/index.R | no_license | marekrogala/adv-r | R | false | false | 4,708 | r | library(RJSONIO)
library(yaml)
# Strategy: before running jekyll, parse all .Rmd files and build index
# Modify rmd2md to add json pass that modifies links
# Use pandoc to parse a markdown file
parse_md <- function(in_path) {
out_path <- tempfile()
on.exit(unlink(out_path))
cmd <- paste0("pandoc -f markdown -t ... |
library(L1pack)
options(warn = -1)
##################################### 10/21/21 JL
### My analysis starts at line 86 after EVS code
### Main goal: verify conjecture that number interior
### cells only become slack is the weight is less
### than the number of margins it is included in
### (assuming bpa... | /tests/ES/TwoWayTabDP-Sim-JL.R | no_license | jlivsey/Dvar | R | false | false | 5,611 | r | library(L1pack)
options(warn = -1)
##################################### 10/21/21 JL
### My analysis starts at line 86 after EVS code
### Main goal: verify conjecture that number interior
### cells only become slack is the weight is less
### than the number of margins it is included in
### (assuming bpa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.