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 |
|---|---|---|---|---|---|---|---|---|---|
date_tag = "210317"
source(paste0("/.mounts/labs/reimandlab/private/users/oocsenas/CA2M/",
# source(paste0("/.mounts/labs/reimandlab/private/users/jreimand/CA2M/",
date_tag,
"/bin/000_HEADER.R"))
source(pff("/bin/999_run_randomforest_experiment.R"))
#Load 1 MB mutation count dataset
mutation_counts_dt = fread(... | /.ipynb_checkpoints/002G_get_window_errors_tumourCA+RT_RF-checkpoint.R | no_license | reimandlab/CA2M | R | false | false | 1,993 | r | date_tag = "210317"
source(paste0("/.mounts/labs/reimandlab/private/users/oocsenas/CA2M/",
# source(paste0("/.mounts/labs/reimandlab/private/users/jreimand/CA2M/",
date_tag,
"/bin/000_HEADER.R"))
source(pff("/bin/999_run_randomforest_experiment.R"))
#Load 1 MB mutation count dataset
mutation_counts_dt = fread(... |
#A function to merge the annotation files any number of samples
annot_merge<-function(samp.name.list, txtfile=F, samp = F){
if (samp==T){
path_annot<-paste0(getwd(),"/data/",samp.name.list[1], "_samp.txt")
}
else{
path_annot<-paste0(getwd(),"/data/",samp.name.list[1], "_cluster.txt")
}
annot<-re... | /R/annot_merge.R | no_license | hfberg/dftoolz | R | false | false | 1,070 | r | #A function to merge the annotation files any number of samples
annot_merge<-function(samp.name.list, txtfile=F, samp = F){
if (samp==T){
path_annot<-paste0(getwd(),"/data/",samp.name.list[1], "_samp.txt")
}
else{
path_annot<-paste0(getwd(),"/data/",samp.name.list[1], "_cluster.txt")
}
annot<-re... |
##Read data
Temp <- read.table("household_power_consumption.txt",header=TRUE,sep=";",quote="",na.strings="?",stringsAsFactors = FALSE)
##Filter to 2 days we are interested in
Elec <- subset(Temp, Date =="1/2/2007" | Date=="2/2/2007")
##remove the master copy to free up memory
rm(Temp)
##Combine Date and Time so we can ... | /plot2.R | no_license | estephens22/ExData_Plotting1 | R | false | false | 766 | r | ##Read data
Temp <- read.table("household_power_consumption.txt",header=TRUE,sep=";",quote="",na.strings="?",stringsAsFactors = FALSE)
##Filter to 2 days we are interested in
Elec <- subset(Temp, Date =="1/2/2007" | Date=="2/2/2007")
##remove the master copy to free up memory
rm(Temp)
##Combine Date and Time so we can ... |
print.ctree <- function(x, digits = max(3L, getOption("digits") - 3L), ...)
{
cat("\ncall:\n",
paste(deparse(x$call), sep = "\n", collapse = "\n"), "\n", sep = "")
cat("\nnodeclass:\n")
print.default(format(x$nodeclass), print.gap = 2L, quote = FALSE)
cat("\nnnd:\n", x$nnd, "\n", sep = "")
cat("\... | /R/print.ctree.R | no_license | cran/macs | R | false | false | 346 | r | print.ctree <- function(x, digits = max(3L, getOption("digits") - 3L), ...)
{
cat("\ncall:\n",
paste(deparse(x$call), sep = "\n", collapse = "\n"), "\n", sep = "")
cat("\nnodeclass:\n")
print.default(format(x$nodeclass), print.gap = 2L, quote = FALSE)
cat("\nnnd:\n", x$nnd, "\n", sep = "")
cat("\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brokenstick-package.R
\docType{package}
\name{brokenstick-pkg}
\alias{brokenstick-pkg}
\alias{brokenstick-pkg-package}
\title{\pkg{brokenstick}: A package for irregular longitudinal data.}
\description{
The broken stick model describes a set ... | /man/brokenstick-pkg.Rd | permissive | dorotaT/brokenstick | R | false | true | 1,431 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brokenstick-package.R
\docType{package}
\name{brokenstick-pkg}
\alias{brokenstick-pkg}
\alias{brokenstick-pkg-package}
\title{\pkg{brokenstick}: A package for irregular longitudinal data.}
\description{
The broken stick model describes a set ... |
library(shiny)
library(shinyhelper)
library(data.table)
library(DT)
library(openxlsx)
source("shiny_budget_helpers.R")
# load data
input_data <- load_db()
shiny_database <- input_data[[1]]
shiny_budget <- input_data[[2]]
shiny_palette <- input_data[[3]]
shiny_color_choices <- input_data[[4]]
server <-... | /app/shiny/server.R | permissive | grasskind/DesktopDeployR | R | false | false | 23,215 | r | library(shiny)
library(shinyhelper)
library(data.table)
library(DT)
library(openxlsx)
source("shiny_budget_helpers.R")
# load data
input_data <- load_db()
shiny_database <- input_data[[1]]
shiny_budget <- input_data[[2]]
shiny_palette <- input_data[[3]]
shiny_color_choices <- input_data[[4]]
server <-... |
rm(list=ls())
library(dplyr)
library(ggplot2)
library(ggthemes)
library(grid)
library(gridExtra)
library(scales)
library(lattice)
#Useful links
#Facet options:
#http://www.cookbook-r.com/Graphs/Facets_(ggplot2)/
#Coloring X-axis text
#https://stackoverflow.com/questions/22972478/color-axis-text-by-variable... | /R Env outcome code/Env_Analysis_figures3.R | no_license | amertens/WBB_env_analysis | R | false | false | 49,286 | r |
rm(list=ls())
library(dplyr)
library(ggplot2)
library(ggthemes)
library(grid)
library(gridExtra)
library(scales)
library(lattice)
#Useful links
#Facet options:
#http://www.cookbook-r.com/Graphs/Facets_(ggplot2)/
#Coloring X-axis text
#https://stackoverflow.com/questions/22972478/color-axis-text-by-variable... |
#' Fast creation of dummy variables
#'
#' dummy_cols() quickly creates dummy (binary) columns from character and
#' factor type columns in the inputted data (and numeric columns if specified.)
#' This function is useful for statistical analysis when you want binary
#' columns rather than character columns.
#'
#' @famil... | /R/dummy_cols.R | permissive | nblaffey/fastDummies | R | false | false | 7,027 | r | #' Fast creation of dummy variables
#'
#' dummy_cols() quickly creates dummy (binary) columns from character and
#' factor type columns in the inputted data (and numeric columns if specified.)
#' This function is useful for statistical analysis when you want binary
#' columns rather than character columns.
#'
#' @famil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{states}
\alias{states}
\title{US states coronavirus data}
\format{
A data frame with 7 variables:
\describe{
\item{date}{date. Data are for the previous day.}
\item{region}{State name}
\item{positive}{Cumulat... | /man/states.Rd | no_license | eeholmes/CoV19 | R | false | true | 915 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{states}
\alias{states}
\title{US states coronavirus data}
\format{
A data frame with 7 variables:
\describe{
\item{date}{date. Data are for the previous day.}
\item{region}{State name}
\item{positive}{Cumulat... |
################################################################################
##
## This plot4.R does the followings:
## 1) Use the data being loaded and processed via loadProcessData()
## 2) Construct four plots and save it to a PNG file with
## a width of 480 pixels and a height of 480 pixels.
## 3) Name t... | /plot4.R | no_license | slee879/ExData_Plotting1 | R | false | false | 2,469 | r | ################################################################################
##
## This plot4.R does the followings:
## 1) Use the data being loaded and processed via loadProcessData()
## 2) Construct four plots and save it to a PNG file with
## a width of 480 pixels and a height of 480 pixels.
## 3) Name t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/importDataset.R
\name{importDataset}
\alias{importDataset}
\title{Imports a dataset into Traitbase.}
\usage{
importDataset(cnx, csvData)
}
\arguments{
\item{cnx}{The connection to traitbase service.}
\item{csvData}{The data in cvs format (st... | /man/importDataset.Rd | permissive | metadevpro/traitbaser | R | false | true | 667 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/importDataset.R
\name{importDataset}
\alias{importDataset}
\title{Imports a dataset into Traitbase.}
\usage{
importDataset(cnx, csvData)
}
\arguments{
\item{cnx}{The connection to traitbase service.}
\item{csvData}{The data in cvs format (st... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normalized.nearest.neighbor.R
\docType{methods}
\name{plot_nnn}
\alias{plot_nnn}
\alias{plot_nnn,tbl_df-method}
\title{Plot the normalized nearest neighbor (called internally)}
\usage{
plot_nnn(sub, markerA, markerB, reference, title, subtitl... | /man/plot_nnn.Rd | permissive | gusef/IrisSpatialFeatures | R | false | true | 1,069 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normalized.nearest.neighbor.R
\docType{methods}
\name{plot_nnn}
\alias{plot_nnn}
\alias{plot_nnn,tbl_df-method}
\title{Plot the normalized nearest neighbor (called internally)}
\usage{
plot_nnn(sub, markerA, markerB, reference, title, subtitl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bitacora-internal.R
\name{plotEffort.numeric}
\alias{plotEffort.numeric}
\title{Plot series of fishing effort by ports}
\usage{
\method{plotEffort}{numeric}(effort1, effort2, labAxis2, labAxis4,
colBar = NULL, colLine = NULL, legend = NULL,... | /man/plotEffort.numeric.Rd | no_license | imarpe/imarpe | R | false | true | 2,225 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bitacora-internal.R
\name{plotEffort.numeric}
\alias{plotEffort.numeric}
\title{Plot series of fishing effort by ports}
\usage{
\method{plotEffort}{numeric}(effort1, effort2, labAxis2, labAxis4,
colBar = NULL, colLine = NULL, legend = NULL,... |
#' Cross Validation
#'
#' The cross validation function of xgboost
#'
#' @param params the list of parameters. Commonly used ones are:
#' \itemize{
#' \item \code{objective} objective function, common ones are
#' \itemize{
#' \item \code{reg:squarederror} Regression with squared loss
#' \item \code{binary:l... | /R-package/R/xgb.cv.R | permissive | GAOSHENG5337/xgboost | R | false | false | 13,031 | r | #' Cross Validation
#'
#' The cross validation function of xgboost
#'
#' @param params the list of parameters. Commonly used ones are:
#' \itemize{
#' \item \code{objective} objective function, common ones are
#' \itemize{
#' \item \code{reg:squarederror} Regression with squared loss
#' \item \code{binary:l... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615764749-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,803 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
##
### ---------------
###
### Create: Jianming Zeng
### Date: 2020-02-09 16:46:35
### Email: jmzeng1314@163.com
### Blog: http://www.bio-info-trainee.com/
### Forum: http://www.biotrainee.com/thread-1376-1-1.html
### CAFS/SUSTC/Eli Lilly/University of Macau
### Update Log: 2020-02-09 First version
###
### --------... | /step4-compare-champ-minfi.R | no_license | kaixinhuaihuai/methy_array | R | false | false | 1,092 | r | ##
### ---------------
###
### Create: Jianming Zeng
### Date: 2020-02-09 16:46:35
### Email: jmzeng1314@163.com
### Blog: http://www.bio-info-trainee.com/
### Forum: http://www.biotrainee.com/thread-1376-1-1.html
### CAFS/SUSTC/Eli Lilly/University of Macau
### Update Log: 2020-02-09 First version
###
### --------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getGeneListFromMSigDB.R
\name{getGeneListFromMSigDB}
\alias{getGeneListFromMSigDB}
\title{get gene list from MSigDB}
\usage{
getGeneListFromMSigDB()
}
\value{
a vector with gene list
}
\description{
get gene list from MSigDB
}
\examples{
load... | /man/getGeneListFromMSigDB.Rd | no_license | inambioinfo/canceR | R | false | true | 433 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getGeneListFromMSigDB.R
\name{getGeneListFromMSigDB}
\alias{getGeneListFromMSigDB}
\title{get gene list from MSigDB}
\usage{
getGeneListFromMSigDB()
}
\value{
a vector with gene list
}
\description{
get gene list from MSigDB
}
\examples{
load... |
\name{masterchef}
\Rdversion{1.1}
\alias{masterchef}
\alias{MasterChef}
\alias{masterchef_maxp}
\alias{masterchef_constrained_maxp}
\docType{data}
\title{Masterchef series 6}
\description{
Data from Australian Masterchef Series 6
}
\usage{data(masterchef)}
\format{
Object \code{masterchef} is a list of \code{hyper2} ... | /man/masterchef.Rd | no_license | RobinHankin/hyper2 | R | false | false | 1,402 | rd | \name{masterchef}
\Rdversion{1.1}
\alias{masterchef}
\alias{MasterChef}
\alias{masterchef_maxp}
\alias{masterchef_constrained_maxp}
\docType{data}
\title{Masterchef series 6}
\description{
Data from Australian Masterchef Series 6
}
\usage{data(masterchef)}
\format{
Object \code{masterchef} is a list of \code{hyper2} ... |
#' @keywords internal
#' @import ipaddress
#' @import rlang
"_PACKAGE"
## usethis namespace: start
#' @importFrom Rcpp sourceCpp
#' @useDynLib ggip, .registration = TRUE
#' @importFrom dplyr %>%
## usethis namespace: end
NULL
| /fuzzedpackages/ggip/R/ggip-package.R | no_license | akhikolla/testpackages | R | false | false | 227 | r | #' @keywords internal
#' @import ipaddress
#' @import rlang
"_PACKAGE"
## usethis namespace: start
#' @importFrom Rcpp sourceCpp
#' @useDynLib ggip, .registration = TRUE
#' @importFrom dplyr %>%
## usethis namespace: end
NULL
|
pooledROC.emp <-
function(y0, y1, p = seq(0,1,l=101), B = 500, method = c("ncoutcome","coutcome")) {
method <- match.arg(method)
n1 <- length(y1)
n0 <- length(y0)
np <- length(p)
compute.ROC <- function(y0, y1, p = seq(0,1,l=101)) {
F1emp <- ecdf(y1)
rocemp <- 1 - F1emp(quantile(y0,1-p))
aucemp <- simpson(ro... | /R/pooledROC.emp.R | no_license | cran/AROC | R | false | false | 1,511 | r | pooledROC.emp <-
function(y0, y1, p = seq(0,1,l=101), B = 500, method = c("ncoutcome","coutcome")) {
method <- match.arg(method)
n1 <- length(y1)
n0 <- length(y0)
np <- length(p)
compute.ROC <- function(y0, y1, p = seq(0,1,l=101)) {
F1emp <- ecdf(y1)
rocemp <- 1 - F1emp(quantile(y0,1-p))
aucemp <- simpson(ro... |
## This gets sourced from Main
require(reshape2)
require(ggplot2)
require(lubridate)
require(dplyr)
require(stringr)
#Loads interpost times (times between successive posts by a user) from a file
#Code to generate interpost times in Groovy project
loadInterpostData<-function() {
read.csv(str_c(data_dir,"all.innerpost... | /R/main-groovy-cutoffs.R | permissive | jintrone/advice-reification | R | false | false | 665 | r | ## This gets sourced from Main
require(reshape2)
require(ggplot2)
require(lubridate)
require(dplyr)
require(stringr)
#Loads interpost times (times between successive posts by a user) from a file
#Code to generate interpost times in Groovy project
loadInterpostData<-function() {
read.csv(str_c(data_dir,"all.innerpost... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ExponentialFitnessLinkFun.R
\name{Model.additivelink.exponential.fitness}
\alias{Model.additivelink.exponential.fitness}
\title{Fitness model for liabilities matrix}
\usage{
Model.additivelink.exponential.fitness(n, alpha, beta, gamma = 1, la... | /systemicrisk/man/Model.additivelink.exponential.fitness.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 1,681 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ExponentialFitnessLinkFun.R
\name{Model.additivelink.exponential.fitness}
\alias{Model.additivelink.exponential.fitness}
\title{Fitness model for liabilities matrix}
\usage{
Model.additivelink.exponential.fitness(n, alpha, beta, gamma = 1, la... |
a=10;
b=20
a+b
ab
a-b
a*b
a%%b
a%/%b
a==b
a<=b
a&b
a=TRUE
b=FALSE
a&b
a&&b
a||b
a=c(TRUE,FALSE,5,6)
b=c(TRUE,FALSE,5,7)
a&&B
a&&b
a=10
a
a=20
a<-10
a
30->a
a
| /operator.R | no_license | sachdhum/R-Programming | R | false | false | 185 | r | a=10;
b=20
a+b
ab
a-b
a*b
a%%b
a%/%b
a==b
a<=b
a&b
a=TRUE
b=FALSE
a&b
a&&b
a||b
a=c(TRUE,FALSE,5,6)
b=c(TRUE,FALSE,5,7)
a&&B
a&&b
a=10
a
a=20
a<-10
a
30->a
a
|
kocent = (system('uname -n', intern = TRUE) == "kocent")
if (kocent){
pipelineLoc = "/usr/OptimizeParameters" #server path
}else if(system('uname -n', intern = T) == "MacBook-Jan-Niklas.local" ){
pipelineLoc = paste(system("echo $HOME", intern = T), "OptimizeParameters", sep = "/")
}
pipelineLoc = "/Users/Shared/O... | /Main.R | no_license | janniklas93/OptimizeParameters | R | false | false | 4,058 | r | kocent = (system('uname -n', intern = TRUE) == "kocent")
if (kocent){
pipelineLoc = "/usr/OptimizeParameters" #server path
}else if(system('uname -n', intern = T) == "MacBook-Jan-Niklas.local" ){
pipelineLoc = paste(system("echo $HOME", intern = T), "OptimizeParameters", sep = "/")
}
pipelineLoc = "/Users/Shared/O... |
#' @title Calculate Intermediate MVN Correlation for Continuous - Poisson Variables: Correlation Method 1
#'
#' @description This function calculates a \code{k_cont x k_pois} intermediate matrix of correlations for the \code{k_cont} continuous and
#' \code{k_pois} Poisson variables. It extends the method of Amatya ... | /R/findintercorr_cont_pois.R | no_license | shaoyoucheng/SimMultiCorrData | R | false | false | 5,678 | r | #' @title Calculate Intermediate MVN Correlation for Continuous - Poisson Variables: Correlation Method 1
#'
#' @description This function calculates a \code{k_cont x k_pois} intermediate matrix of correlations for the \code{k_cont} continuous and
#' \code{k_pois} Poisson variables. It extends the method of Amatya ... |
fluidPage(
theme = discotheme,
# Settings used in PCA
fluidRow(
column(
3,
box(
title = "Outlier Options", status = "primary",
solidHeader = FALSE,
width = NULL,
checkboxInput("PCAscale", "Scale Before PCA", TRUE),... | /inst/app/code/ui/PCA.R | no_license | matthewcarlucci/DiscoRhythm | R | false | false | 7,675 | r | fluidPage(
theme = discotheme,
# Settings used in PCA
fluidRow(
column(
3,
box(
title = "Outlier Options", status = "primary",
solidHeader = FALSE,
width = NULL,
checkboxInput("PCAscale", "Scale Before PCA", TRUE),... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TFutures.R
\name{getPVBP.TFutures}
\alias{getPVBP.TFutures}
\title{Calculate PVBP of TFutures object relative to CTD yield change}
\usage{
getPVBP.TFutures(fut, ctdPrice, repoRate, tradeDate = Sys.Date())
}
\arguments{
\item{fut}{TFutures obj... | /man/getPVBP.TFutures.Rd | no_license | solavrov/fval | R | false | true | 688 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TFutures.R
\name{getPVBP.TFutures}
\alias{getPVBP.TFutures}
\title{Calculate PVBP of TFutures object relative to CTD yield change}
\usage{
getPVBP.TFutures(fut, ctdPrice, repoRate, tradeDate = Sys.Date())
}
\arguments{
\item{fut}{TFutures obj... |
#!/usr/bin/env Rscript
#args <- commandArgs(trailingOnly = TRUE)
d <- read.table( file('stdin'), sep = "\t", header = F, colClasses=c("character", NA, NA, NA, NA, "character", "character", NA, NA, NA, NA, NA, NA, "character", NA, NA, NA, NA, NA, NA, NA, NA), col.names=c(1:34))
if (nrow(d) > 0){
pvalues <- vector... | /teststrandbias.R | permissive | dh10/VarDict | R | false | false | 766 | r | #!/usr/bin/env Rscript
#args <- commandArgs(trailingOnly = TRUE)
d <- read.table( file('stdin'), sep = "\t", header = F, colClasses=c("character", NA, NA, NA, NA, "character", "character", NA, NA, NA, NA, NA, NA, "character", NA, NA, NA, NA, NA, NA, NA, NA), col.names=c(1:34))
if (nrow(d) > 0){
pvalues <- vector... |
#!/usr/bin/env Rscript
dir.create("data/", showWarnings = FALSE)
# Download GENCODE 26 annotation file
url_gencode <- "https://storage.googleapis.com/gtex_analysis_v8/reference/gencode.v26.GRCh38.genes.gtf"
file_gencode <- "data/gencode.v26.GRCh38.genes.gtf"
if (!file.exists(file_gencode)) {
message("Downloading GE... | /download-exons-gtex.R | no_license | jdblischak/gtex-bases | R | false | false | 398 | r | #!/usr/bin/env Rscript
dir.create("data/", showWarnings = FALSE)
# Download GENCODE 26 annotation file
url_gencode <- "https://storage.googleapis.com/gtex_analysis_v8/reference/gencode.v26.GRCh38.genes.gtf"
file_gencode <- "data/gencode.v26.GRCh38.genes.gtf"
if (!file.exists(file_gencode)) {
message("Downloading GE... |
library(CARBayesST)
### Name: CARBayesST-package
### Title: Spatio-Temporal Generalised Linear Mixed Models For Areal Unit
### Data
### Aliases: CARBayesST-package CARBayesST
### ** Examples
## See the examples in the function specific help files and in the vignette
## accompanying this package.
| /data/genthat_extracted_code/CARBayesST/examples/CARBayesST-package.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 306 | r | library(CARBayesST)
### Name: CARBayesST-package
### Title: Spatio-Temporal Generalised Linear Mixed Models For Areal Unit
### Data
### Aliases: CARBayesST-package CARBayesST
### ** Examples
## See the examples in the function specific help files and in the vignette
## accompanying this package.
|
dataprep <- function(data){
lexiscorpus<-corpus(data$article, docnames = data$title)
lexdiv<<-textstat_lexdiv(dfm(lexiscorpus),measure = c("TTR","Maas"))
docvars(lexiscorpus, "date")<-data$date
lexiscorpus$documents <- lexiscorpus$documents %>% separate('date', into=c("year","month","day"), sep = "-")
for (i in 1:l... | /dataprep.R | no_license | tkatzer/kritische-ko | R | false | false | 2,030 | r | dataprep <- function(data){
lexiscorpus<-corpus(data$article, docnames = data$title)
lexdiv<<-textstat_lexdiv(dfm(lexiscorpus),measure = c("TTR","Maas"))
docvars(lexiscorpus, "date")<-data$date
lexiscorpus$documents <- lexiscorpus$documents %>% separate('date', into=c("year","month","day"), sep = "-")
for (i in 1:l... |
testlist <- list(lambda = numeric(0), logq = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), nu = numeric(0), p = numeric(0), tol = 0... | /COMPoissonReg/inst/testfiles/qzicmp_cpp/libFuzzer_qzicmp_cpp/qzicmp_cpp_valgrind_files/1612729124-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 388 | r | testlist <- list(lambda = numeric(0), logq = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), nu = numeric(0), p = numeric(0), tol = 0... |
library(rminer)
### Name: CasesSeries
### Title: Create a training set (data.frame) from a time series using a
### sliding window.
### Aliases: CasesSeries
### Keywords: datasets ts
### ** Examples
t=1:20
d=CasesSeries(1:10,c(1,3,4))
print(d)
d=CasesSeries(1:10,c(1,2,3))
print(d)
| /data/genthat_extracted_code/rminer/examples/CasesSeries.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 290 | r | library(rminer)
### Name: CasesSeries
### Title: Create a training set (data.frame) from a time series using a
### sliding window.
### Aliases: CasesSeries
### Keywords: datasets ts
### ** Examples
t=1:20
d=CasesSeries(1:10,c(1,3,4))
print(d)
d=CasesSeries(1:10,c(1,2,3))
print(d)
|
# ref: Daniel Lemire, Anna MaclachlanSlope One Predictors for Online Rating-Based Collaborative Filtering.
setClass('slopeOneClass', representation( alg = "character",
data = "dataSet",
devcard = "list" ,
... | /R/ALG_slopeOne.R | no_license | ludovikcoba/rrecsys | R | false | false | 2,845 | r | # ref: Daniel Lemire, Anna MaclachlanSlope One Predictors for Online Rating-Based Collaborative Filtering.
setClass('slopeOneClass', representation( alg = "character",
data = "dataSet",
devcard = "list" ,
... |
## Matrix inversion is usually a costly computation, especially for large matrices
## These functions provide a way to optimize the computation by caching the matrix inverse,
## so repeated calls to find an inverse of a matrix can save computation cost
## This function provides wrapper object that can be used to cache... | /cachematrix.R | no_license | yamapa2/ProgrammingAssignment2 | R | false | false | 1,745 | r | ## Matrix inversion is usually a costly computation, especially for large matrices
## These functions provide a way to optimize the computation by caching the matrix inverse,
## so repeated calls to find an inverse of a matrix can save computation cost
## This function provides wrapper object that can be used to cache... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{useR2017}
\alias{useR2017}
\title{Tweets from the useR 2017 conference}
\format{An object of class \code{data.frame} with 2103 rows and 35 columns.}
\usage{
useR2017
}
\description{
Tweets from the useR 2017 confer... | /man/useR2017.Rd | no_license | adam-gruer/tweetstorm | R | false | true | 346 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{useR2017}
\alias{useR2017}
\title{Tweets from the useR 2017 conference}
\format{An object of class \code{data.frame} with 2103 rows and 35 columns.}
\usage{
useR2017
}
\description{
Tweets from the useR 2017 confer... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 102420
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 80697
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 80697
c
c Input Parameter (command line,... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Kronegger-Pfandler-Pichler/dungeon/dungeon_i10-m10-u5-v0.pddl_planlen=191/dungeon_i10-m10-u5-v0.pddl_planlen=191.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 123,682 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 102420
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 80697
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 80697
c
c Input Parameter (command line,... |
context("UNFv6: Dataframes")
test_that("Variable order irrelevant", {
expect_equal(unf(data.frame(1:3,4:6,7:9), version = 6)$unf,
unf(data.frame(7:9,1:3,4:6), version = 6)$unf,
"ukDZSJXck7fn4SlPJMPFTQ==")
})
test_that("Variable names irrelevant", {
expect_equal(unf(data.frame(x... | /tests/testthat/test-unf6-dataframe.R | no_license | leeper/UNF | R | false | false | 854 | r | context("UNFv6: Dataframes")
test_that("Variable order irrelevant", {
expect_equal(unf(data.frame(1:3,4:6,7:9), version = 6)$unf,
unf(data.frame(7:9,1:3,4:6), version = 6)$unf,
"ukDZSJXck7fn4SlPJMPFTQ==")
})
test_that("Variable names irrelevant", {
expect_equal(unf(data.frame(x... |
##################################################
### Read in output from 2-component model to initialize adaptive MH choices
load('BNPclassification - two component model.RData')
MH.cov <- mean(Disease==0, na.rm=T)*MH.cov[,,1] +
mean(Disease==1, na.rm=T)*MH.cov[,,2]
MH.scale <- exp( mean(Disease==0, na.rm=... | /BNPclassification - full BNP model.R | no_license | jeremygaskins/BNPclassification | R | false | false | 14,819 | r | ##################################################
### Read in output from 2-component model to initialize adaptive MH choices
load('BNPclassification - two component model.RData')
MH.cov <- mean(Disease==0, na.rm=T)*MH.cov[,,1] +
mean(Disease==1, na.rm=T)*MH.cov[,,2]
MH.scale <- exp( mean(Disease==0, na.rm=... |
library(imguR)
### Name: get_gallery_image
### Title: Get gallery image
### Aliases: get_gallery_image
### ** Examples
## Not run:
##D s <- search_gallery(query = 'meme')
##D get_gallery_image(s[[1]])
## End(Not run)
| /data/genthat_extracted_code/imguR/examples/get_gallery_image.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 225 | r | library(imguR)
### Name: get_gallery_image
### Title: Get gallery image
### Aliases: get_gallery_image
### ** Examples
## Not run:
##D s <- search_gallery(query = 'meme')
##D get_gallery_image(s[[1]])
## End(Not run)
|
library(cluster)
library(Rmixmod)
#Carganis y preparamos los datos, solo nos quedamos con 100 datos
# para visualizar mejor los restultados.
iris2=iris
idx=sample(1:dim(iris2)[1],100)
idx
iris3=iris2[idx,]
iris3
iris3$Species=NULL
iris3
# Calculamos el cluster jeraquico por el metodo de Ward, distancia euclidea
hc=h... | /Clustering/metodoWard.R | no_license | BesayMontesdeoca/DataMiningR | R | false | false | 851 | r | library(cluster)
library(Rmixmod)
#Carganis y preparamos los datos, solo nos quedamos con 100 datos
# para visualizar mejor los restultados.
iris2=iris
idx=sample(1:dim(iris2)[1],100)
idx
iris3=iris2[idx,]
iris3
iris3$Species=NULL
iris3
# Calculamos el cluster jeraquico por el metodo de Ward, distancia euclidea
hc=h... |
plot1 <- {
## Part 1: Download dataset and clean data
## download dataset from web
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","power.zip")
## unzip file
unzip("power.zip")
##read .txt file
... | /plot1.R | no_license | eschinei/ExData_Plotting1 | R | false | false | 1,046 | r | plot1 <- {
## Part 1: Download dataset and clean data
## download dataset from web
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","power.zip")
## unzip file
unzip("power.zip")
##read .txt file
... |
library(RCurl)
### 1) First task is to get all of the web links we will need ##
base_url<-"http://icml.cc/2013/?page_id=868"
base_html<-getURLContent(base_url)[[1]]#get all links from the base url
links<-strsplit(base_html,"a href=")[[1]]
#links <- paste(links, collapse=" ")
#http://jmlr.org/proceedings/papers/v28/k... | /webScrapingExample.R | no_license | tracygmq/WebScraping | R | false | false | 900 | r | library(RCurl)
### 1) First task is to get all of the web links we will need ##
base_url<-"http://icml.cc/2013/?page_id=868"
base_html<-getURLContent(base_url)[[1]]#get all links from the base url
links<-strsplit(base_html,"a href=")[[1]]
#links <- paste(links, collapse=" ")
#http://jmlr.org/proceedings/papers/v28/k... |
#Sample script from http://www.r-bloggers.com/circlizing-numbers/
if (!require("Rmpfr")){
install.packages("Rmpfr")
}
if (!require("circlize")){
install.packages("circlize")
}
if (!require("RColorBrewer")){
install.packages("RColorBrewer")
}
library(RColorBrewer)
CreateAdjacencyMatrix <- function(x){
s<-gsub(".... | /test/rblogger_circlizing-numbers.R | no_license | axrt/gbra | R | false | false | 1,759 | r | #Sample script from http://www.r-bloggers.com/circlizing-numbers/
if (!require("Rmpfr")){
install.packages("Rmpfr")
}
if (!require("circlize")){
install.packages("circlize")
}
if (!require("RColorBrewer")){
install.packages("RColorBrewer")
}
library(RColorBrewer)
CreateAdjacencyMatrix <- function(x){
s<-gsub(".... |
context("Input SlabVar and SpikeVar of locFDR BF theoretic function Uncor")
test_that("Throws warning if SpikeVar parameter is not a numeric scalar", {
skip_on_cran()
expect_warning(analytic_locFDR_BF_uncor(1:10, 1:10, SpikeVar = NA), "SpikeVar is not numeric*")
expect_warning(analytic_locFDR_BF_uncor(1:10, 1:10... | /tests/testthat/test-InputSpikeSlabVarLocFDR_BF_theoretic_UnCor.R | no_license | ArunabhaCodes/CPBayes | R | false | false | 1,820 | r | context("Input SlabVar and SpikeVar of locFDR BF theoretic function Uncor")
test_that("Throws warning if SpikeVar parameter is not a numeric scalar", {
skip_on_cran()
expect_warning(analytic_locFDR_BF_uncor(1:10, 1:10, SpikeVar = NA), "SpikeVar is not numeric*")
expect_warning(analytic_locFDR_BF_uncor(1:10, 1:10... |
# @title Range Value
# @param x numeric vector
# @return range as max - min
range_value <- function(x, na.rm) {
if(!is.logical(na.rm)) stop("na.rm must be a boolean")
if (na.rm == T)
x = na.omit(x)
max(x) - min(x)
} | /test-that/functions/range-value.R | no_license | dakotalim/stat159labs | R | false | false | 226 | r |
# @title Range Value
# @param x numeric vector
# @return range as max - min
range_value <- function(x, na.rm) {
if(!is.logical(na.rm)) stop("na.rm must be a boolean")
if (na.rm == T)
x = na.omit(x)
max(x) - min(x)
} |
#' Run SCENIC using zirf VIMs
#'
#' @param scenicOptions Options to set up SCENIC runs
#' @param weightMatrix_list List of VIMs from ZIRFs, designed to take in the output
#' of zirf_genie3.
#' @param exprMatrix Normalized expression matrix.
#'
#' @param log_scale Should log of exprMatrix be used?
#' @return As i... | /R/run_SCENIC.R | no_license | daniel-conn17/scRNAzirf | R | false | false | 3,774 | r | #' Run SCENIC using zirf VIMs
#'
#' @param scenicOptions Options to set up SCENIC runs
#' @param weightMatrix_list List of VIMs from ZIRFs, designed to take in the output
#' of zirf_genie3.
#' @param exprMatrix Normalized expression matrix.
#'
#' @param log_scale Should log of exprMatrix be used?
#' @return As i... |
# Exploratory visualization of house size
# Let's create an exploratory visualization of the predictor variable reflecting the size of houses: sqft_living the square footage of living space where 1 sq.foot ??? 0.1 sq.meter.
#
# After plotting the histogram, what can you say about the distribution of the variable sqft_... | /Modeling with Data in the Tidyverse/Chapter 1-Introduction to Modeling/3.R | permissive | artileda/Datacamp-Data-Scientist-with-R-2019 | R | false | false | 651 | r | # Exploratory visualization of house size
# Let's create an exploratory visualization of the predictor variable reflecting the size of houses: sqft_living the square footage of living space where 1 sq.foot ??? 0.1 sq.meter.
#
# After plotting the histogram, what can you say about the distribution of the variable sqft_... |
local({
# the requested version of renv
version <- "0.9.2"
# avoid recursion
if (!is.na(Sys.getenv("RENV_R_INITIALIZING", unset = NA)))
return(invisible(TRUE))
# signal that we're loading renv during R startup
Sys.setenv("RENV_R_INITIALIZING" = "true")
on.exit(Sys.unsetenv("RENV_R_INIT... | /renv/activate.R | no_license | beansrowning/travis-ncov | R | false | false | 6,586 | r |
local({
# the requested version of renv
version <- "0.9.2"
# avoid recursion
if (!is.na(Sys.getenv("RENV_R_INITIALIZING", unset = NA)))
return(invisible(TRUE))
# signal that we're loading renv during R startup
Sys.setenv("RENV_R_INITIALIZING" = "true")
on.exit(Sys.unsetenv("RENV_R_INIT... |
#-----------------------------------------------------------------------#
# Package: Network-Based Genome-Wide Association Studies #
# netphenogeno(): Reconstruct genotype-phenotype interaction networks #
# and genotype-phenotype-environment interaction networks #
# Authors: Pariya Behrou... | /R/netphenogeno.R | no_license | cran/netgwas | R | false | false | 7,104 | r | #-----------------------------------------------------------------------#
# Package: Network-Based Genome-Wide Association Studies #
# netphenogeno(): Reconstruct genotype-phenotype interaction networks #
# and genotype-phenotype-environment interaction networks #
# Authors: Pariya Behrou... |
library(dplyr)
library(plyr)
library(car)
library(RcppRoll)
library(fbRanks)
library(reshape2)
library(zoo)
#%%%%%%%%%%%%%%%%%%%%%%%%%
# Merge years 2014 to 2017
#%%%%%%%%%%%%%%%%%%%%%%%%%
# Open data frames
df_2014 <- read.csv("db/2014/Scouts.csv", stringsAsFactors = FALSE)
df_2015 <- read.csv("db/2015/Scouts.csv",... | /lib/R/merge_all_years.R | permissive | fabriciofs/caRtola | R | false | false | 8,016 | r | library(dplyr)
library(plyr)
library(car)
library(RcppRoll)
library(fbRanks)
library(reshape2)
library(zoo)
#%%%%%%%%%%%%%%%%%%%%%%%%%
# Merge years 2014 to 2017
#%%%%%%%%%%%%%%%%%%%%%%%%%
# Open data frames
df_2014 <- read.csv("db/2014/Scouts.csv", stringsAsFactors = FALSE)
df_2015 <- read.csv("db/2015/Scouts.csv",... |
library(lubridate)
library(dplyr)
load_data <- function() {
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
zipName <- "ElectricPowerConsumption.zip"
dataName <- "household_power_consumption.txt"
if (!file.exists(dataName)){
if (!file.ex... | /load_data.R | no_license | jwsnyderii/ExData_Plotting1 | R | false | false | 759 | r | library(lubridate)
library(dplyr)
load_data <- function() {
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
zipName <- "ElectricPowerConsumption.zip"
dataName <- "household_power_consumption.txt"
if (!file.exists(dataName)){
if (!file.ex... |
## The functions makeCacheMatrix and cacheSolve cache the inverse of a
## matrix.
## The function makeCacheMatrix creates a special object "matrix" that
## caches the inverse of a matrix.
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y){
x <<- y
i <<- NULL
}
... | /cachematrix.R | no_license | kamaladeepthi/ProgrammingAssignment2 | R | false | false | 971 | r | ## The functions makeCacheMatrix and cacheSolve cache the inverse of a
## matrix.
## The function makeCacheMatrix creates a special object "matrix" that
## caches the inverse of a matrix.
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y){
x <<- y
i <<- NULL
}
... |
#!/usr/bin/env Rscript
require(rvest)
require(dplyr)
require(lubridate)
require(ggplot2)
require(readr)
require(prophet)
require(tsibble)
require(bsts)
dat <- read_csv("bit.csv") %>%
as_tsibble(., key = NULL, index = ds)
glimpse(dat, width = 60)
dat %>%
ggplot(., aes(ds, y)) +
geom_line() +
theme_min... | /src/R/bit/bsts.R | no_license | Velikanova/Kripto | R | false | false | 1,212 | r | #!/usr/bin/env Rscript
require(rvest)
require(dplyr)
require(lubridate)
require(ggplot2)
require(readr)
require(prophet)
require(tsibble)
require(bsts)
dat <- read_csv("bit.csv") %>%
as_tsibble(., key = NULL, index = ds)
glimpse(dat, width = 60)
dat %>%
ggplot(., aes(ds, y)) +
geom_line() +
theme_min... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/misc.R
\name{label_convert}
\alias{label_convert}
\title{convert label}
\usage{
label_convert(segs.or.labels, match, replace)
}
\description{
see function
}
\keyword{internal}
| /man/label_convert.Rd | no_license | hywel/emuR | R | false | false | 263 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/misc.R
\name{label_convert}
\alias{label_convert}
\title{convert label}
\usage{
label_convert(segs.or.labels, match, replace)
}
\description{
see function
}
\keyword{internal}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/posteriors.R
\name{summary.posterior}
\alias{summary.posterior}
\title{Summarize the Posterior Distributions of Model Statistics}
\usage{
\method{summary}{posterior}(object, prob = 0.9, seed = sample.int(10000, 1),
...)
}
\arguments{
\item{... | /man/summary.posterior.Rd | no_license | gridl/tidyposterior | R | false | true | 1,131 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/posteriors.R
\name{summary.posterior}
\alias{summary.posterior}
\title{Summarize the Posterior Distributions of Model Statistics}
\usage{
\method{summary}{posterior}(object, prob = 0.9, seed = sample.int(10000, 1),
...)
}
\arguments{
\item{... |
\name{cv.rrenv}
\alias{cv.rrenv}
\title{Cross validation for rrenv}
\description{
Compute the prediction error using m-fold cross validation for the reduced rank envelope estimator.
}
\usage{
cv.rrenv(X, Y, u, d, m, nperm)
}
\arguments{
\item{X}{Predictors. An n by p matrix, p is the number of predictors. The predic... | /man/cv.rrenv.Rd | no_license | cran/Renvlp | R | false | false | 1,757 | rd | \name{cv.rrenv}
\alias{cv.rrenv}
\title{Cross validation for rrenv}
\description{
Compute the prediction error using m-fold cross validation for the reduced rank envelope estimator.
}
\usage{
cv.rrenv(X, Y, u, d, m, nperm)
}
\arguments{
\item{X}{Predictors. An n by p matrix, p is the number of predictors. The predic... |
##################################################################
# The basics #
##################################################################
################ The first functions to learn ####################
?
str
################ Important operators and ... | /vocab.R | no_license | stjordanis/basic_R_course | R | false | false | 11,075 | r | ##################################################################
# The basics #
##################################################################
################ The first functions to learn ####################
?
str
################ Important operators and ... |
context("svyflow estimates with nonresponse and zero counts: Model A")
# set seed of random number generator
set.seed( 123 )
# load libraries
library( survey )
library( surf )
library( testthat )
# define population and sample size
N <- as.integer( 10^5 )
n <- as.integer( 10^4 )
# superpopulation parameters
eta.pop... | /tests/testthat/test-zero_counts_ModelA.R | no_license | guilhermejacob/surf | R | false | false | 8,383 | r | context("svyflow estimates with nonresponse and zero counts: Model A")
# set seed of random number generator
set.seed( 123 )
# load libraries
library( survey )
library( surf )
library( testthat )
# define population and sample size
N <- as.integer( 10^5 )
n <- as.integer( 10^4 )
# superpopulation parameters
eta.pop... |
\name{books}
\alias{books}
\docType{data}
\title{Sample of books on a shelf}
\description{Simulated data set.}
\usage{data("books")}
\format{
A data frame with 95 observations on the following 2 variables.
\describe{
\item{\code{type}}{a factor with levels \code{fiction} \code{nonfiction}}
\item{\code{forma... | /openintro/man/books.Rd | no_license | mine-cetinkaya-rundel/openintro-r-package | R | false | false | 443 | rd | \name{books}
\alias{books}
\docType{data}
\title{Sample of books on a shelf}
\description{Simulated data set.}
\usage{data("books")}
\format{
A data frame with 95 observations on the following 2 variables.
\describe{
\item{\code{type}}{a factor with levels \code{fiction} \code{nonfiction}}
\item{\code{forma... |
library(coinmarketcapr)
library(treemap)
library(ggplot2)
library(FactoMineR)
library(stats)
library(factoextra)
#plot_top_5_currencies()
market_today <- get_marketcap_ticker_all()
head(market_today[,1:8])
df1 <- na.omit(market_today[,c('symbol','market_cap_usd', 'percent_change_24h', 'price_btc', 'percent_change_7d'... | /Crypto.R | no_license | KO-BMI/ShinyCrypto | R | false | false | 1,988 | r | library(coinmarketcapr)
library(treemap)
library(ggplot2)
library(FactoMineR)
library(stats)
library(factoextra)
#plot_top_5_currencies()
market_today <- get_marketcap_ticker_all()
head(market_today[,1:8])
df1 <- na.omit(market_today[,c('symbol','market_cap_usd', 'percent_change_24h', 'price_btc', 'percent_change_7d'... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plothist.R
\name{plothist}
\alias{plothist}
\title{Create a histogram of randomised deltaAICc values}
\usage{
plothist(dataset, datasetrand)
}
\arguments{
\item{dataset}{A dataframe containing information on all fitted climate
windo... | /man/plothist.Rd | no_license | cran/climwin | R | false | true | 1,053 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plothist.R
\name{plothist}
\alias{plothist}
\title{Create a histogram of randomised deltaAICc values}
\usage{
plothist(dataset, datasetrand)
}
\arguments{
\item{dataset}{A dataframe containing information on all fitted climate
windo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dosing.r
\docType{class}
\name{ExtraDoseOption-class}
\alias{ExtraDoseOption-class}
\alias{ExtraDoseOption}
\title{ExtraDoseOption}
\arguments{
\item{name}{Dose name}
\item{doseType}{SteadyStateDose|AddlDose}
\item{doses}{List of treatment ... | /RsNlme/man/ExtraDoseOption-class.Rd | no_license | phxnlmedev/rpackages | R | false | true | 876 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dosing.r
\docType{class}
\name{ExtraDoseOption-class}
\alias{ExtraDoseOption-class}
\alias{ExtraDoseOption}
\title{ExtraDoseOption}
\arguments{
\item{name}{Dose name}
\item{doseType}{SteadyStateDose|AddlDose}
\item{doses}{List of treatment ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/onLoad.R
\name{notice_msg}
\alias{notice_msg}
\title{Sample message}
\usage{
notice_msg(msg = paste(remoji::emoji("100"), "Done", remoji::emoji("+1")))
}
\arguments{
\item{msg}{oracle messsage by \code{R} (string)}
}
\description{
Sample mess... | /man/notice_msg.Rd | no_license | uribo/roracle | R | false | true | 365 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/onLoad.R
\name{notice_msg}
\alias{notice_msg}
\title{Sample message}
\usage{
notice_msg(msg = paste(remoji::emoji("100"), "Done", remoji::emoji("+1")))
}
\arguments{
\item{msg}{oracle messsage by \code{R} (string)}
}
\description{
Sample mess... |
#########################################################################################
# #
# Copyright (c) A_B_Life 2011 #
# Writer: Chrevan Chen <dongchen@ablife.... | /ABLIRC/bin/public/format/gff/Pie_Chart.r | permissive | ablifedev/ABLIRC | R | false | false | 2,204 | r | #########################################################################################
# #
# Copyright (c) A_B_Life 2011 #
# Writer: Chrevan Chen <dongchen@ablife.... |
# prepare_data.R ####
# Coursera Data Science Capstone Project (https://www.coursera.org/course/dsscapstone)
# Prepare data for downstream analysis and models
# 2015-12-20
##Clear
rm(list=ls(all=TRUE));gc(reset=TRUE);par(mfrow=c(1,1))
# Libraries and options ####
source('shiny/prediction.R')
if (!require("rea... | /Workbook.R | no_license | Invictus-McQ/CapstoneProject | R | false | false | 4,525 | r | # prepare_data.R ####
# Coursera Data Science Capstone Project (https://www.coursera.org/course/dsscapstone)
# Prepare data for downstream analysis and models
# 2015-12-20
##Clear
rm(list=ls(all=TRUE));gc(reset=TRUE);par(mfrow=c(1,1))
# Libraries and options ####
source('shiny/prediction.R')
if (!require("rea... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stringsAsNumeric.R
\name{stringAsNumeric}
\alias{stringAsNumeric}
\title{Transform string to numeric.}
\usage{
stringAsNumeric(GADSdat, varName)
}
\arguments{
\item{GADSdat}{\code{GADSdat} object imported via \code{eatGADS}.}
\item{varName}{... | /man/stringAsNumeric.Rd | no_license | bussejoh/eatGADS | R | false | true | 818 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stringsAsNumeric.R
\name{stringAsNumeric}
\alias{stringAsNumeric}
\title{Transform string to numeric.}
\usage{
stringAsNumeric(GADSdat, varName)
}
\arguments{
\item{GADSdat}{\code{GADSdat} object imported via \code{eatGADS}.}
\item{varName}{... |
library(PogromcyDanych)
### Name: koty_ptaki
### Title: The Fastest Cats and Birds in the World
### Aliases: koty_ptaki cats_birds
### Keywords: datasets
### ** Examples
head(koty_ptaki)
| /data/genthat_extracted_code/PogromcyDanych/examples/koty_ptaki.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 194 | r | library(PogromcyDanych)
### Name: koty_ptaki
### Title: The Fastest Cats and Birds in the World
### Aliases: koty_ptaki cats_birds
### Keywords: datasets
### ** Examples
head(koty_ptaki)
|
context("Testing dDynOcc-related functions.")
test_that("dDynOcc_vvm works", {
x <- matrix(c(0,0,NA,0,
1,1,1,0,
0,0,0,0,
0,0,1,0,
0,0,0,NA), nrow = 4)
start <- c(1,1,2,1)
end <- c(5,5,5,4)
init <- 0.7
probPersist <- c(0.4, 0.4, 0.1)
probColon... | /tests/testthat/test-DynOcc.R | no_license | dochvam/nimbleEcology | R | false | false | 58,149 | r |
context("Testing dDynOcc-related functions.")
test_that("dDynOcc_vvm works", {
x <- matrix(c(0,0,NA,0,
1,1,1,0,
0,0,0,0,
0,0,1,0,
0,0,0,NA), nrow = 4)
start <- c(1,1,2,1)
end <- c(5,5,5,4)
init <- 0.7
probPersist <- c(0.4, 0.4, 0.1)
probColon... |
## Load required packages
library(data.table)
library(dplyr)
library(lubridate)
## Read the data from the household_power_consumption.txt file which should be
## located in the working directory
dataFrame <- read.csv("household_power_consumption.txt",
sep = ";",
na.strings... | /plot1.R | no_license | tomaszskowronek/ExData_Plotting1 | R | false | false | 1,381 | r | ## Load required packages
library(data.table)
library(dplyr)
library(lubridate)
## Read the data from the household_power_consumption.txt file which should be
## located in the working directory
dataFrame <- read.csv("household_power_consumption.txt",
sep = ";",
na.strings... |
#hapgen2 simulated the genotype data for all the SNPs
#we only need to genotype data for SNPs in the tag file for each population
#the tag file was created based on MAF> 1% in either population
#tag file only contains the snp position columns, no snpid, chr, allele informatin inside
#tag info file is created for all th... | /code/LD_simulation/example_code/subset_gen_to_tag.R | no_license | andrewhaoyu/multi_ethnic | R | false | false | 1,401 | r | #hapgen2 simulated the genotype data for all the SNPs
#we only need to genotype data for SNPs in the tag file for each population
#the tag file was created based on MAF> 1% in either population
#tag file only contains the snp position columns, no snpid, chr, allele informatin inside
#tag info file is created for all th... |
#' Job Search API: Search for Jobs on LinkedIn
#'
#' Job Search API is a part of our Vetted API Access Program. You must apply and get LinkedIn's approval before using this API.
#'
#'
#' @param token Authorization token
#' @param keyword Keyword job search
#' @param count Authorization token
#' @return Returns jobs ... | /R/searchJobs.R | no_license | splinterboy/Rlinkedin | R | false | false | 1,902 | r | #' Job Search API: Search for Jobs on LinkedIn
#'
#' Job Search API is a part of our Vetted API Access Program. You must apply and get LinkedIn's approval before using this API.
#'
#'
#' @param token Authorization token
#' @param keyword Keyword job search
#' @param count Authorization token
#' @return Returns jobs ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/batch_management.R
\name{checkArgsAgainstBatchParams}
\alias{checkArgsAgainstBatchParams}
\title{Check Function Arguments against Batch-Specific Parameters}
\usage{
checkArgsAgainstBatchParams(
priority = c("batch", "arguments"),
...,
v... | /man/checkArgsAgainstBatchParams.Rd | no_license | naithanilab/neonMicrobe | R | false | true | 1,755 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/batch_management.R
\name{checkArgsAgainstBatchParams}
\alias{checkArgsAgainstBatchParams}
\title{Check Function Arguments against Batch-Specific Parameters}
\usage{
checkArgsAgainstBatchParams(
priority = c("batch", "arguments"),
...,
v... |
# data management
rm(list=ls())
library(tidyverse)
library(data.table)
library(arcos)
# # get pop by age by fips (source are census pop [POPEST] by age/sex and county)
popage<-fread("Other_data/pop_county_age_sex.csv") %>%
filter(year%in%2006:2014) %>%
mutate(age_cat=case_when(
age_5yr_group<15 ~ "0-14",
a... | /Data_management.R | permissive | usamabilal/ARCOS_Pill_Scaling | R | false | false | 2,675 | r | # data management
rm(list=ls())
library(tidyverse)
library(data.table)
library(arcos)
# # get pop by age by fips (source are census pop [POPEST] by age/sex and county)
popage<-fread("Other_data/pop_county_age_sex.csv") %>%
filter(year%in%2006:2014) %>%
mutate(age_cat=case_when(
age_5yr_group<15 ~ "0-14",
a... |
library(DiagrammeR)
scm <- mermaid("
graph BT
A((postcodes))-->B{Output Areas}
B-->C{Lower Layer Super OAs}
C-->D[Middle Layer Super OAs]
D-->E{Council Districts}
C-->E
E-->F[Counties]
F-->G[Regions]
G-->H{Countrie... | /food_shops_ratings/uk_geo_hierarchy.R | permissive | WeR-stats/workshops | R | false | false | 1,333 | r | library(DiagrammeR)
scm <- mermaid("
graph BT
A((postcodes))-->B{Output Areas}
B-->C{Lower Layer Super OAs}
C-->D[Middle Layer Super OAs]
D-->E{Council Districts}
C-->E
E-->F[Counties]
F-->G[Regions]
G-->H{Countrie... |
algo <- commandArgs()[length(commandArgs())]
comb <- read.csv("data/training_set/combined.csv", header=FALSE)
km <- kmeans(comb, 100)
write.csv(km$centers, file=paste("data/centers.csv"))
| /Rscripts/kmeans_centers.R | no_license | raymond-wells/se180-opencv | R | false | false | 188 | r | algo <- commandArgs()[length(commandArgs())]
comb <- read.csv("data/training_set/combined.csv", header=FALSE)
km <- kmeans(comb, 100)
write.csv(km$centers, file=paste("data/centers.csv"))
|
#Tyla Noelle Goldman(3837300)
#PCA of World Health Organization data on progress towards attaining SDG's
#Loading all needed packages for the PCA
library(tidyverse)
library(vegan)
library(missMDA) # to impute missing values
library(ggcorrplot) # for the correlations
#loading in of data
#For the next few paragraphs ... | /Tyla_Goldman_HW8.R | no_license | Tylagoldman/QE2021 | R | false | false | 32,176 | r | #Tyla Noelle Goldman(3837300)
#PCA of World Health Organization data on progress towards attaining SDG's
#Loading all needed packages for the PCA
library(tidyverse)
library(vegan)
library(missMDA) # to impute missing values
library(ggcorrplot) # for the correlations
#loading in of data
#For the next few paragraphs ... |
# Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i... | /R/ApiResponseOptionsChainRealtime.r | no_license | bucklbj6038/r-sdk | R | false | false | 3,013 | r | # Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i... |
miine - poimiine se joaca soarta razboiului din Afganistan .
daca intr - o saptamina interventia militara a aliatilor nu poate pune pe butuci armata talibanilor si pe Bin Laden , atunci avem a ne astepta la un razboi lung si chinuitor .
nu ma refer la cel financiar , de blocare a conturilor , sau la cel informativ . ... | /data/Newspapers/2001.10.11.editorial.69387.0738.r | no_license | narcis96/decrypting-alpha | R | false | false | 3,296 | r | miine - poimiine se joaca soarta razboiului din Afganistan .
daca intr - o saptamina interventia militara a aliatilor nu poate pune pe butuci armata talibanilor si pe Bin Laden , atunci avem a ne astepta la un razboi lung si chinuitor .
nu ma refer la cel financiar , de blocare a conturilor , sau la cel informativ . ... |
i <- 0
repeat {
print(i)
if (i>=5)
break
i <- i + 1
}
| /4. R Programming Fundamentals/5.repeatloop.R | no_license | ashleyradams/R-Programming-for-Beginners | R | false | false | 77 | r |
i <- 0
repeat {
print(i)
if (i>=5)
break
i <- i + 1
}
|
##' The two functions compute respectively the NL and PB spectral
##' densities, in the three-dimensional case, on a discretization grid.
##' A plot is issued (optional).
##'
##' @title PB and NL spectral densities on the two-dimensional simplex
##' @inheritParams discretize
##' @inheritParams dpairbeta
##' @param ... | /R/dpairbeta.grid.r | no_license | cran/BMAmevt | R | false | false | 2,353 | r | ##' The two functions compute respectively the NL and PB spectral
##' densities, in the three-dimensional case, on a discretization grid.
##' A plot is issued (optional).
##'
##' @title PB and NL spectral densities on the two-dimensional simplex
##' @inheritParams discretize
##' @inheritParams dpairbeta
##' @param ... |
#' Process Fields
#'
#' This function gets Information about a particular application
#' @param file_path path of the document
#' @param taskId Only tasks with Submitted, Completed or NotEnoughCredits status can be processed using this function.
#' @param description optional, default: ""
#' @param \dots Additi... | /R/processFields.R | permissive | cran/abbyyR | R | false | false | 1,374 | r | #' Process Fields
#'
#' This function gets Information about a particular application
#' @param file_path path of the document
#' @param taskId Only tasks with Submitted, Completed or NotEnoughCredits status can be processed using this function.
#' @param description optional, default: ""
#' @param \dots Additi... |
library(C50) #package neede for DT
library(caret) #package neede for crosstabling
fraud<-read.csv(file.choose()) #Importing data
View(fraud)
str(fraud)
summary(fraud)
fraudster<-NULL #creating a nulll file
fraudster<-ifelse(fraud$Taxable.Income<=30000,"RISK","GOOD" ) #setting condition as per the bussiness pblm
... | /DTfraud.R | no_license | Hareeshkay/supervised-machine-learning | R | false | false | 1,636 | r | library(C50) #package neede for DT
library(caret) #package neede for crosstabling
fraud<-read.csv(file.choose()) #Importing data
View(fraud)
str(fraud)
summary(fraud)
fraudster<-NULL #creating a nulll file
fraudster<-ifelse(fraud$Taxable.Income<=30000,"RISK","GOOD" ) #setting condition as per the bussiness pblm
... |
context("Test the otp_get_distance function")
if (identical(Sys.getenv("OTP_ON_LOCALHOST"), "TRUE")) {
otpcon <- otp_connect()
# setup test query results - amend for new graph build
fromPlace <- c(50.70776, -1.29347)
toPlace <- c(50.69407, -1.29561)
car_distance <- 2246
walk_distance <- 1807
bicycle_dist... | /tests/testthat/test-otp_get_distance.R | permissive | marcusyoung/otpr | R | false | false | 2,447 | r | context("Test the otp_get_distance function")
if (identical(Sys.getenv("OTP_ON_LOCALHOST"), "TRUE")) {
otpcon <- otp_connect()
# setup test query results - amend for new graph build
fromPlace <- c(50.70776, -1.29347)
toPlace <- c(50.69407, -1.29561)
car_distance <- 2246
walk_distance <- 1807
bicycle_dist... |
library(testthat)
library(enumfactor)
test_check("enumfactor")
| /tests/testthat.R | no_license | sophof/enumfactor | R | false | false | 64 | r | library(testthat)
library(enumfactor)
test_check("enumfactor")
|
## Transform rGR calculated by upper quantile regression by SI and SDP classes
## to measure of absolute growth.
## Need to multiply rGR by a*priorBV^b where a, b were fit during upper quantile
## regression by SI and SDP
## load size effect parameters (fit during rgr fitting), data
rgrparams <- read.csv("~/Allometr... | /convert-rGRsisdp-to-growth.R | no_license | nverno/growth | R | false | false | 3,179 | r | ## Transform rGR calculated by upper quantile regression by SI and SDP classes
## to measure of absolute growth.
## Need to multiply rGR by a*priorBV^b where a, b were fit during upper quantile
## regression by SI and SDP
## load size effect parameters (fit during rgr fitting), data
rgrparams <- read.csv("~/Allometr... |
\name{cinbag}
\alias{cinbag}
\title{Modified Classification and Regression with Random Forest
}
\description{\code{cinbag} implements a modified random forest algorithm (based on the source code from the randomForest package by Andy Liaw and Matthew Wiener and on the original Fortran code by Leo Breiman and A... | /man/cinbag.Rd | no_license | cran/trimTrees | R | false | false | 10,871 | rd | \name{cinbag}
\alias{cinbag}
\title{Modified Classification and Regression with Random Forest
}
\description{\code{cinbag} implements a modified random forest algorithm (based on the source code from the randomForest package by Andy Liaw and Matthew Wiener and on the original Fortran code by Leo Breiman and A... |
###
# User-specified base-learner with quadratic penalty
buser <- function(X, K = NULL, by = NULL, index = NULL, df = 4, lambda = NULL){
## TODO:
## index should be available
## check if CC and index work
if (!is.null(lambda)) df <- NULL
cll <- match.call()
cll[[1]] <- as.name("buser")
m... | /R/buser.R | no_license | strategist922/mboost | R | false | false | 3,356 | r | ###
# User-specified base-learner with quadratic penalty
buser <- function(X, K = NULL, by = NULL, index = NULL, df = 4, lambda = NULL){
## TODO:
## index should be available
## check if CC and index work
if (!is.null(lambda)) df <- NULL
cll <- match.call()
cll[[1]] <- as.name("buser")
m... |
# This file is automatically generated, you probably don't want to edit this
pcaOptions <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
"pcaOptions",
inherit = jmvcore::Options,
public = list(
initialize = function(
vars = NULL,
nFactorMethod = "parallel",
... | /R/pca.h.R | no_license | jamovi/jmv | R | false | false | 23,213 | r |
# This file is automatically generated, you probably don't want to edit this
pcaOptions <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
"pcaOptions",
inherit = jmvcore::Options,
public = list(
initialize = function(
vars = NULL,
nFactorMethod = "parallel",
... |
interp1 <-
function(x, y = NULL, xout, ...) {
# Linear interpolation;
# out-of-range points are extrapolated.
# This function is written specifically for the extrapolation functionality.
# Otherwise, the base function 'approx' suffices.
# If extrapolation is undesirable, use 'approx' instead.
xy <- approx(x, y, xo... | /hooah/R/interp1.R | no_license | zpz/utilities.R | R | false | false | 1,409 | r | interp1 <-
function(x, y = NULL, xout, ...) {
# Linear interpolation;
# out-of-range points are extrapolated.
# This function is written specifically for the extrapolation functionality.
# Otherwise, the base function 'approx' suffices.
# If extrapolation is undesirable, use 'approx' instead.
xy <- approx(x, y, xo... |
#Making a matrix with 3 rows and 4 columns where each value is assigned to 0
matrix(0,3,4)
#Using a vector to initialise the matrix's values from 1 to 12
a<-1:12
print(a)
#Calling the matrix with the vector to replace the matrix's values from 0 to vector's values
matrix(a,3,4)
| /Creating a matrix.R | no_license | AyushiSah/Practice-codes | R | false | false | 287 | r | #Making a matrix with 3 rows and 4 columns where each value is assigned to 0
matrix(0,3,4)
#Using a vector to initialise the matrix's values from 1 to 12
a<-1:12
print(a)
#Calling the matrix with the vector to replace the matrix's values from 0 to vector's values
matrix(a,3,4)
|
#' @importFrom BiocParallel SerialParam bpmapply
.template_find_approx <- function(X, k, get.index=TRUE, get.distance=TRUE,
BPPARAM=SerialParam(), precomputed=NULL, subset=NULL,
buildFUN, pathFUN, searchFUN, searchArgsFUN, distFUN, ...)
# Provides a R template for approximate nearest neighbors searching,
# a... | /R/template_find_approx.R | no_license | mimi3421/BiocNeighbors | R | false | false | 1,658 | r | #' @importFrom BiocParallel SerialParam bpmapply
.template_find_approx <- function(X, k, get.index=TRUE, get.distance=TRUE,
BPPARAM=SerialParam(), precomputed=NULL, subset=NULL,
buildFUN, pathFUN, searchFUN, searchArgsFUN, distFUN, ...)
# Provides a R template for approximate nearest neighbors searching,
# a... |
library(ggfortify)
library(survminer)
library(survival)
library(KMsurv)
setwd("/Users/jiajunluo/OneDrive/Documents/Pitt_PhD/ResearchProjects/Wiki_Edu_Project/Data/finalRevise/final/datafanalysis/")
setwd("/Users/angli/ANG/OneDrive/Documents/Pitt_PhD/ResearchProjects/Wiki_Edu_Project/Data/finalRevise/final/datafanalys... | /old_version/check_surv_2019.R | no_license | LittleRabbitHole/WikiEd | R | false | false | 2,738 | r | library(ggfortify)
library(survminer)
library(survival)
library(KMsurv)
setwd("/Users/jiajunluo/OneDrive/Documents/Pitt_PhD/ResearchProjects/Wiki_Edu_Project/Data/finalRevise/final/datafanalysis/")
setwd("/Users/angli/ANG/OneDrive/Documents/Pitt_PhD/ResearchProjects/Wiki_Edu_Project/Data/finalRevise/final/datafanalys... |
\alias{GtkSocket}
\alias{gtkSocket}
\name{GtkSocket}
\title{GtkSocket}
\description{Container for widgets from other processes}
\section{Methods and Functions}{
\code{\link{gtkSocketNew}(show = TRUE)}\cr
\code{\link{gtkSocketSteal}(object, wid)}\cr
\code{\link{gtkSocketAddId}(object, window.id)}\cr
\code{\link{gtkSocke... | /man/GtkSocket.Rd | no_license | cran/RGtk2.10 | R | false | false | 4,438 | rd | \alias{GtkSocket}
\alias{gtkSocket}
\name{GtkSocket}
\title{GtkSocket}
\description{Container for widgets from other processes}
\section{Methods and Functions}{
\code{\link{gtkSocketNew}(show = TRUE)}\cr
\code{\link{gtkSocketSteal}(object, wid)}\cr
\code{\link{gtkSocketAddId}(object, window.id)}\cr
\code{\link{gtkSocke... |
#' Plot published tools over time
#'
#' Produces a HTML page with an interactive plot of the publication status of
#' tools in the database
#'
#' Also produces a JSON plot through plotly
#'
#' @param swsheet Tibble containing software table
#'
plot_number <- function(swsheet) {
`%>%` <- magrittr::`%>%`
sw... | /R/plotting.R | permissive | Vikash84/long_read_tools | R | false | false | 21,875 | r | #' Plot published tools over time
#'
#' Produces a HTML page with an interactive plot of the publication status of
#' tools in the database
#'
#' Also produces a JSON plot through plotly
#'
#' @param swsheet Tibble containing software table
#'
plot_number <- function(swsheet) {
`%>%` <- magrittr::`%>%`
sw... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307348867e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615777926-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 348 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307348867e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... |
# Septic_R_code.R
# Last edited 08/04/2015 by Allison Truhlar
# This code takes in raw data collected at the septic sites and outputs:
# a. A graph of gas concentration vs time for each gas type and chamber
# b. The flux of CO2, CH4, and N2O, as calculated by both a quadratic and linear fit, at each chamber.
# Prior... | /Septic_R_code_2015.R | no_license | SoilWaterLab/Septic-GHGs | R | false | false | 4,515 | r | # Septic_R_code.R
# Last edited 08/04/2015 by Allison Truhlar
# This code takes in raw data collected at the septic sites and outputs:
# a. A graph of gas concentration vs time for each gas type and chamber
# b. The flux of CO2, CH4, and N2O, as calculated by both a quadratic and linear fit, at each chamber.
# Prior... |
# The files you need for this script to run:
# 1. The HDL correlation table
# 2. The matrix of 'n' values for the pc algorithm
# 3. The file of MR results
# Packages: pcalg, ggraph, igraph, cowplot
rm(list=ls())
library(pcalg)
path<-dirname(rstudioapi::getActiveDocumentContext()$path)
setwd(path)
load("~/Desktop/... | /CI_network_files/thesis_networks_ci.R | no_license | shinilraina/Summer_project | R | false | false | 6,946 | r | # The files you need for this script to run:
# 1. The HDL correlation table
# 2. The matrix of 'n' values for the pc algorithm
# 3. The file of MR results
# Packages: pcalg, ggraph, igraph, cowplot
rm(list=ls())
library(pcalg)
path<-dirname(rstudioapi::getActiveDocumentContext()$path)
setwd(path)
load("~/Desktop/... |
library(plyr);library(dplyr);library(stringr);library(rvest);library(lubridate);library(readr);library(tidyr);library(xts);library(dygraphs);library(lazyeval);library(RColorBrewer);library(shiny);library(shinythemes);library(weatherData);library(pbapply)
server <- function(input, output){
batters <- read.csv("batt... | /server.R | no_license | meirelon/baseball_dfs_optimization | R | false | false | 21,252 | r | library(plyr);library(dplyr);library(stringr);library(rvest);library(lubridate);library(readr);library(tidyr);library(xts);library(dygraphs);library(lazyeval);library(RColorBrewer);library(shiny);library(shinythemes);library(weatherData);library(pbapply)
server <- function(input, output){
batters <- read.csv("batt... |
summary.SCBand <-
function(object, ...)
{
cat("\nCall:\n", paste(deparse(object$call), sep = "\n", collapse = "\n"), "\n\n", sep = "")
cat("Data:\n")
if (is.list(object$x)) {
df <- data.frame( c(paste0("[", round(min(object$x[[1]]),3),", ",round(max(object$x[[1]]),3),"]"),
if (!is.null(object$y)) {
c(past... | /R/summary.SCBand.R | no_license | taylerablake/SCBmeanfd | R | false | false | 4,976 | r | summary.SCBand <-
function(object, ...)
{
cat("\nCall:\n", paste(deparse(object$call), sep = "\n", collapse = "\n"), "\n\n", sep = "")
cat("Data:\n")
if (is.list(object$x)) {
df <- data.frame( c(paste0("[", round(min(object$x[[1]]),3),", ",round(max(object$x[[1]]),3),"]"),
if (!is.null(object$y)) {
c(past... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.