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 |
|---|---|---|---|---|---|---|---|---|---|
library(rbokeh)
### Name: ly_quantile
### Title: Add a "quantile" layer to a Bokeh figure
### Aliases: ly_quantile
### ** Examples
figure(legend_location = "top_left") %>%
ly_quantile(Sepal.Length, group = Species, data = iris)
| /data/genthat_extracted_code/rbokeh/examples/ly_quantile.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 237 | r | library(rbokeh)
### Name: ly_quantile
### Title: Add a "quantile" layer to a Bokeh figure
### Aliases: ly_quantile
### ** Examples
figure(legend_location = "top_left") %>%
ly_quantile(Sepal.Length, group = Species, data = iris)
|
#########################################################################
#Balanced sampling to get even distribution of samples through feature space
#########################################################################
install.packages("sampling")
library("sampling", lib.loc="~/R/win-library/3.0")
##output of env... | /selected_sampling_Balanced_Weighted.R | no_license | ckwkalk/MUNnetCDF | R | false | false | 3,562 | r | #########################################################################
#Balanced sampling to get even distribution of samples through feature space
#########################################################################
install.packages("sampling")
library("sampling", lib.loc="~/R/win-library/3.0")
##output of env... |
\alias{gtkCellRendererEditingCanceled}
\name{gtkCellRendererEditingCanceled}
\title{gtkCellRendererEditingCanceled}
\description{
Causes the cell renderer to emit the "editing-canceled" signal. This
function is for use only by implementations of cell renderers that need to
notify the client program that an editing pro... | /man/gtkCellRendererEditingCanceled.Rd | no_license | cran/RGtk2.10 | R | false | false | 813 | rd | \alias{gtkCellRendererEditingCanceled}
\name{gtkCellRendererEditingCanceled}
\title{gtkCellRendererEditingCanceled}
\description{
Causes the cell renderer to emit the "editing-canceled" signal. This
function is for use only by implementations of cell renderers that need to
notify the client program that an editing pro... |
# general utilities --------------------------------------------------------
# a general argument checking function
check_arguments <- function(station = NULL, year = NULL,
month = NULL, dir = NULL, context = NA) {
# test internet connection
if (!connected_to_internet()) {
stop_... | /R/utils.R | no_license | als23/anyflights | R | false | false | 24,251 | r | # general utilities --------------------------------------------------------
# a general argument checking function
check_arguments <- function(station = NULL, year = NULL,
month = NULL, dir = NULL, context = NA) {
# test internet connection
if (!connected_to_internet()) {
stop_... |
#Objetivo: dibujar la "curva ROC de una variable"
#limpio la memoria
rm(list=ls())
gc()
library("data.table")
setwd("E:/UBA/2019-II/DM en Finanzas/Dropbox Prof/datasets")
#cargo los datos
dataset <- fread("201902.txt")
#creo una clase que se 1 cuando es BAJA+2 , y 0 en caso contrario
#esto me simplifica las c... | /elementary/ROC_02.r | permissive | ktavo/dm-finanzas-2019 | R | false | false | 8,010 | r | #Objetivo: dibujar la "curva ROC de una variable"
#limpio la memoria
rm(list=ls())
gc()
library("data.table")
setwd("E:/UBA/2019-II/DM en Finanzas/Dropbox Prof/datasets")
#cargo los datos
dataset <- fread("201902.txt")
#creo una clase que se 1 cuando es BAJA+2 , y 0 en caso contrario
#esto me simplifica las c... |
#####################################
## APPORTIONMENT SOLVER/BUILDER? ##
#####################################
#########################
## HAMILTON'S METHOD ##
#########################
hamilton <- function(pop.top, div, n.seats, n.places){
## divisor passed from apportionment builder
div <- ... | /build apportionment.R | no_license | gkelting/education-creator-solver | R | false | false | 30,384 | r | #####################################
## APPORTIONMENT SOLVER/BUILDER? ##
#####################################
#########################
## HAMILTON'S METHOD ##
#########################
hamilton <- function(pop.top, div, n.seats, n.places){
## divisor passed from apportionment builder
div <- ... |
library(readxl)
ageandheight <- read_excel("/media/ronn/hd_ubuntu/workspace/my_git/My_R/ageandheight.xls", sheet = "Hoja2") #Upload the data
lmHeight = lm(height~age, data = ageandheight) #Create the linear regression
summary(lmHeight) #Review the results
| /linear-regression.R | no_license | RonnyldoSilva/My_R | R | false | false | 257 | r | library(readxl)
ageandheight <- read_excel("/media/ronn/hd_ubuntu/workspace/my_git/My_R/ageandheight.xls", sheet = "Hoja2") #Upload the data
lmHeight = lm(height~age, data = ageandheight) #Create the linear regression
summary(lmHeight) #Review the results
|
#' @title Helper function to retrieve species information from the ENSEMBL API
#' @description This function interfaces with the ENSEMBL API
#' (http://rest.ensembl.org/info/species?content-type=application/json)
#' and internally stores the output to use this information for subsequent
#' retrieval function calls.
#' ... | /R/get.ensembl.info.R | no_license | AdrianS85/biomartr | R | false | false | 2,236 | r | #' @title Helper function to retrieve species information from the ENSEMBL API
#' @description This function interfaces with the ENSEMBL API
#' (http://rest.ensembl.org/info/species?content-type=application/json)
#' and internally stores the output to use this information for subsequent
#' retrieval function calls.
#' ... |
library(INDperform)
### Name: model_gam
### Title: Modeling of indicator responses to single pressures with GAMs
### Aliases: model_gam
### ** Examples
# Using the Baltic Sea demo data in this package
dat_init <- ind_init(
ind_tbl = ind_ex[, c("Sprat", "Cod")],
press_tbl = press_ex[, c("Tsum", "Swin", "Fcod", "... | /data/genthat_extracted_code/INDperform/examples/model_gam.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 806 | r | library(INDperform)
### Name: model_gam
### Title: Modeling of indicator responses to single pressures with GAMs
### Aliases: model_gam
### ** Examples
# Using the Baltic Sea demo data in this package
dat_init <- ind_init(
ind_tbl = ind_ex[, c("Sprat", "Cod")],
press_tbl = press_ex[, c("Tsum", "Swin", "Fcod", "... |
rm(list = ls())
load("simulation.RData")
library(tidyverse)
get_data <- function(ridge, lars,
names = c(map_chr(lambdas, ~ paste0("λ=", .x)), "lars"))
tibble(
value = c(ridge$bias, lars$"bias^2",
ridge$variance, lars$variance),
index_name = rep(c("bias", "varia... | /plot_fixed.R | no_license | moiraghif/LARS | R | false | false | 1,290 | r | rm(list = ls())
load("simulation.RData")
library(tidyverse)
get_data <- function(ridge, lars,
names = c(map_chr(lambdas, ~ paste0("λ=", .x)), "lars"))
tibble(
value = c(ridge$bias, lars$"bias^2",
ridge$variance, lars$variance),
index_name = rep(c("bias", "varia... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataproc_functions.R
\name{operations.list}
\alias{operations.list}
\title{Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.}
\usage{
operat... | /googledataprocv1alpha1.auto/man/operations.list.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 1,039 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataproc_functions.R
\name{operations.list}
\alias{operations.list}
\title{Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.}
\usage{
operat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/encodeString.R
\name{encodeString}
\alias{encodeString}
\title{fun_name}
\usage{
encodeString(params)
}
\arguments{
\item{param}{fun_name}
}
\description{
kolejna funkcja podmieniona
}
| /man/encodeString.Rd | no_license | granatb/RapeR | R | false | true | 263 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/encodeString.R
\name{encodeString}
\alias{encodeString}
\title{fun_name}
\usage{
encodeString(params)
}
\arguments{
\item{param}{fun_name}
}
\description{
kolejna funkcja podmieniona
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StyleBypasses.R
\name{setEdgeSourceArrowShapeBypass}
\alias{setEdgeSourceArrowShapeBypass}
\title{Set Edge Source Arrow Shape Bypass}
\usage{
setEdgeSourceArrowShapeBypass(edge.names, new.shapes, network = NULL,
base.url = .defaultBaseUrl)
... | /man/setEdgeSourceArrowShapeBypass.Rd | permissive | shraddhapai/RCy3 | R | false | true | 1,363 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StyleBypasses.R
\name{setEdgeSourceArrowShapeBypass}
\alias{setEdgeSourceArrowShapeBypass}
\title{Set Edge Source Arrow Shape Bypass}
\usage{
setEdgeSourceArrowShapeBypass(edge.names, new.shapes, network = NULL,
base.url = .defaultBaseUrl)
... |
testlist <- list(hi = 5.84121309954418e+199, lo = 7.25785896681726e+193, mu = 6.86702135111641e+180, sig = 9.70158285081333e+189)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) | /gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610046724-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 191 | r | testlist <- list(hi = 5.84121309954418e+199, lo = 7.25785896681726e+193, mu = 6.86702135111641e+180, sig = 9.70158285081333e+189)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) |
my.mvrnorm<-function(n){
y1<-rnorm(n)
y2<-rnorm(n)
x1<-y1
x2<-0.5 * y1 + sqrt(3)/2 * y2
return(data.frame(x1,x2))
}
y<-my.mvrnorm(100000)
plot(y,pch=16,cex=0.3)
Sigma = matrix(c(1,0.5,0.5,1),2,2)
A= t(chol(Sigma))
A%*%t(A) | /R-class problems/演習6.1.3.R | no_license | brishtiteveja/R-Statistical-Analysis-Projects | R | false | false | 230 | r | my.mvrnorm<-function(n){
y1<-rnorm(n)
y2<-rnorm(n)
x1<-y1
x2<-0.5 * y1 + sqrt(3)/2 * y2
return(data.frame(x1,x2))
}
y<-my.mvrnorm(100000)
plot(y,pch=16,cex=0.3)
Sigma = matrix(c(1,0.5,0.5,1),2,2)
A= t(chol(Sigma))
A%*%t(A) |
library(BinNonNor)
### Name: validation.corr
### Title: Validates the specified correlation matrix
### Aliases: validation.corr
### ** Examples
n.BB=2
n.NN=4
corr.vec=NULL
corr.mat=matrix(c(1.0,-0.3,-0.3,-0.3,-0.3,-0.3,
-0.3,1.0,-0.3,-0.3,-0.3,-0.3,
-0.3,-0.3,1.0,0.4,0.5,0.6,
-0.3,-0.3,0.4,1.0,0.7,0.8,
-0.3,-0.3,0.... | /data/genthat_extracted_code/BinNonNor/examples/validation.corr.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,650 | r | library(BinNonNor)
### Name: validation.corr
### Title: Validates the specified correlation matrix
### Aliases: validation.corr
### ** Examples
n.BB=2
n.NN=4
corr.vec=NULL
corr.mat=matrix(c(1.0,-0.3,-0.3,-0.3,-0.3,-0.3,
-0.3,1.0,-0.3,-0.3,-0.3,-0.3,
-0.3,-0.3,1.0,0.4,0.5,0.6,
-0.3,-0.3,0.4,1.0,0.7,0.8,
-0.3,-0.3,0.... |
\docType{methods}
\name{plot}
\alias{plot}
\alias{plot,kMeansResult}
\alias{plot,linearRegressionResult,ANY-method}
\alias{plot,logisticRegressionResult,ANY-method}
\title{plot method}
\arguments{
\item{x}{A \code{kMeans} instance}
\item{trace}{tracing centroids when algorithm progress}
\item{object}{A \code{li... | /man/plot-methods.Rd | no_license | ameenzhao/mlass | R | false | false | 1,099 | rd | \docType{methods}
\name{plot}
\alias{plot}
\alias{plot,kMeansResult}
\alias{plot,linearRegressionResult,ANY-method}
\alias{plot,logisticRegressionResult,ANY-method}
\title{plot method}
\arguments{
\item{x}{A \code{kMeans} instance}
\item{trace}{tracing centroids when algorithm progress}
\item{object}{A \code{li... |
################################################################################
## Article Evolving changes in mortality of 13,301 critically ill adult
## patients with COVID-19 over eight months
##
## Random-effects Cox model (mortality model - main analysis)
## Leonardo S.L. Bastos (lslbastos), Pedro Kurtz
##
##... | /Data_Analysis/model_cox_mortality_adv_resp_support.R | no_license | lslbastos/COVID19_ICU_Changes_Mortality | R | false | false | 12,362 | r | ################################################################################
## Article Evolving changes in mortality of 13,301 critically ill adult
## patients with COVID-19 over eight months
##
## Random-effects Cox model (mortality model - main analysis)
## Leonardo S.L. Bastos (lslbastos), Pedro Kurtz
##
##... |
#' Remove/Replace/Extract All Caps
#'
#' Remove/replace/extract 'all caps' words containing 2 or more consecutive
#' upper case letters from a string.
#'
#' @param text.var The text variable.
#' @param trim logical. If \code{TRUE} removes leading and trailing white
#' spaces.
#' @param clean trim logical. ... | /R/rm_caps.R | no_license | cran/qdapRegex | R | false | false | 1,609 | r | #' Remove/Replace/Extract All Caps
#'
#' Remove/replace/extract 'all caps' words containing 2 or more consecutive
#' upper case letters from a string.
#'
#' @param text.var The text variable.
#' @param trim logical. If \code{TRUE} removes leading and trailing white
#' spaces.
#' @param clean trim logical. ... |
#########################
# MODEL FITTING for DAS #
#########################
# Author: Giovanni Colavizza
require(ggplot2)
# load the dataset and make transformations
df <- read.csv("dataset/export_full.csv", sep = ";")
df$has_das <- factor(df$has_das)
df$is_plos <- factor(df$is_plos)
df$is_bmc <- factor(df$is_bmc)
... | /analysis/r_models.R | permissive | KirstieJane/das-public | R | false | false | 9,828 | r | #########################
# MODEL FITTING for DAS #
#########################
# Author: Giovanni Colavizza
require(ggplot2)
# load the dataset and make transformations
df <- read.csv("dataset/export_full.csv", sep = ";")
df$has_das <- factor(df$has_das)
df$is_plos <- factor(df$is_plos)
df$is_bmc <- factor(df$is_bmc)
... |
### Do some analysis on the traffic experiments
library(ggplot2)
setwd("/Users/VGupta/Documents/Research/Julia Stuff/Traffic/")
dat = read.csv(file="trafficCVal.csv")
names(dat)<- c("Lambda", "C", "deg", "Mean", "SD")
pos = position_dodge(.5)
#The absolute minimum occurs at row 36:
# 1e05, 3.7625, deg 5
ggplot(aes(x=... | /archive/genGraphs.r | permissive | jingzbu/InverseVIsTraffic | R | false | false | 2,110 | r | ### Do some analysis on the traffic experiments
library(ggplot2)
setwd("/Users/VGupta/Documents/Research/Julia Stuff/Traffic/")
dat = read.csv(file="trafficCVal.csv")
names(dat)<- c("Lambda", "C", "deg", "Mean", "SD")
pos = position_dodge(.5)
#The absolute minimum occurs at row 36:
# 1e05, 3.7625, deg 5
ggplot(aes(x=... |
#'A S3 class to represent the address for a geocoding request.
#'
#'Creates an object of the class \code{adrs}. The \code{adrs} object contains a
#'single string representing the address of a place.
#'
#'@param x A string with address. Address should be specified in the format used
#' by the national postal service of... | /R/classAddress.R | no_license | joshu107/GoogleGeoAPI | R | false | false | 1,081 | r | #'A S3 class to represent the address for a geocoding request.
#'
#'Creates an object of the class \code{adrs}. The \code{adrs} object contains a
#'single string representing the address of a place.
#'
#'@param x A string with address. Address should be specified in the format used
#' by the national postal service of... |
test_that("meteo_noaa_hourly", {
noaa = meteo_noaa_hourly(station = "123300-99999",
year = 2019)
expect_true(all(noaa$year == 2019))
}) | /tests/testthat/test-meteo_noaa_hourly.R | no_license | cran/climate | R | false | false | 170 | r | test_that("meteo_noaa_hourly", {
noaa = meteo_noaa_hourly(station = "123300-99999",
year = 2019)
expect_true(all(noaa$year == 2019))
}) |
structure(list(record_id = 1:5, name_first = c("Nutmeg", "Tumtum",
"Marcus", "Trudy", "John Lee"), name_last = c("Nutmouse", "Nutmouse",
"Wood", "DAG", "Walker"), address = c("14 Rose Cottage St.\nKenning UK, 323232",
"14 Rose Cottage Blvd.\nKenning UK 34243", "243 Hill St.\nGuthrie OK 73402",
"342 Elm\nDuncanville... | /inst/test-data/specific-redcapr/read-oneshot-eav/label-and-dag.R | permissive | OuhscBbmc/REDCapR | R | false | false | 2,149 | r | structure(list(record_id = 1:5, name_first = c("Nutmeg", "Tumtum",
"Marcus", "Trudy", "John Lee"), name_last = c("Nutmouse", "Nutmouse",
"Wood", "DAG", "Walker"), address = c("14 Rose Cottage St.\nKenning UK, 323232",
"14 Rose Cottage Blvd.\nKenning UK 34243", "243 Hill St.\nGuthrie OK 73402",
"342 Elm\nDuncanville... |
.Random.seed <-
c(403L, 10L, 126536518L, -1580181087L, -2067257293L, -1377737310L,
421945492L, 1048037143L, -517607155L, -1360242652L, 148076554L,
1245080949L, 315874511L, 731516886L, 202870656L, -302586941L,
-1569454751L, -1494369328L, -1314850002L, -1146312999L, 1712551147L,
250164570L, -277797092L, -860241377L, ... | /R/ellipsefit-internal.R | no_license | sail622/hysteresis | R | false | false | 8,236 | r | .Random.seed <-
c(403L, 10L, 126536518L, -1580181087L, -2067257293L, -1377737310L,
421945492L, 1048037143L, -517607155L, -1360242652L, 148076554L,
1245080949L, 315874511L, 731516886L, 202870656L, -302586941L,
-1569454751L, -1494369328L, -1314850002L, -1146312999L, 1712551147L,
250164570L, -277797092L, -860241377L, ... |
# TX run forest...
# splits the data, runs two forests sequentially, then combines them
# scp "/Users/austinbean/Desktop/drgml/split_run_forest.R" beanaus@hsrdcsub2.pmacs.upenn.edu:/project/Lorch_project2018/bean/
# subset training since it may be too large:
dim1 = nrow(traind)
traind1 <- traind[1:floor(dim1/2),... | /split_run_forest.R | no_license | austinbean/drgml | R | false | false | 1,186 | r | # TX run forest...
# splits the data, runs two forests sequentially, then combines them
# scp "/Users/austinbean/Desktop/drgml/split_run_forest.R" beanaus@hsrdcsub2.pmacs.upenn.edu:/project/Lorch_project2018/bean/
# subset training since it may be too large:
dim1 = nrow(traind)
traind1 <- traind[1:floor(dim1/2),... |
# =====================================================================================
# Objective
# -
#
# -------------------------------------------------------------------------------------
# Load libraries and parameters
#
options(stringsAsFactors = FALSE)
options(contrasts=c(unordered="contr.trea... | /likelihood.rank.proposed.a_pp.mc.r | no_license | wonsuk-oh/trajectories | R | false | false | 7,901 | r |
# =====================================================================================
# Objective
# -
#
# -------------------------------------------------------------------------------------
# Load libraries and parameters
#
options(stringsAsFactors = FALSE)
options(contrasts=c(unordered="contr.trea... |
gset <- function(g)
{
# Edge and vertex Setting for the graph
E(g)$color = "black"
E(g)$width = 2
E(g)$arrow.width = .25
E(g)$label.cex = 1.4
E(g)$label.color = "black"
V(g)$label.color = "black"
V(g)$size =30
return(g)
} | /gset.R | no_license | OliverMount/AutocorrfMRI | R | false | false | 239 | r | gset <- function(g)
{
# Edge and vertex Setting for the graph
E(g)$color = "black"
E(g)$width = 2
E(g)$arrow.width = .25
E(g)$label.cex = 1.4
E(g)$label.color = "black"
V(g)$label.color = "black"
V(g)$size =30
return(g)
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distributions.R
\name{tfd_multivariate_student_t_linear_operator}
\alias{tfd_multivariate_student_t_linear_operator}
\title{Multivariate Student's t-distribution on \code{R^k}}
\usage{
tfd_multivariate_student_t_linear_operator(df, loc, scale... | /man/tfd_multivariate_student_t_linear_operator.Rd | permissive | dfalbel/tfprobability | R | false | true | 4,886 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distributions.R
\name{tfd_multivariate_student_t_linear_operator}
\alias{tfd_multivariate_student_t_linear_operator}
\title{Multivariate Student's t-distribution on \code{R^k}}
\usage{
tfd_multivariate_student_t_linear_operator(df, loc, scale... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/act_fp_2020.R
\docType{data}
\name{act_fp_2020}
\alias{act_fp_2020}
\title{First preference results for the 2020 ACT election.}
\format{
A data frame with 13289 rows and 3 variables:
\describe{
\item{candidate}{Candidate's name}
\item{vot... | /man/act_fp_2020.Rd | permissive | bryceroney/actvotes | R | false | true | 586 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/act_fp_2020.R
\docType{data}
\name{act_fp_2020}
\alias{act_fp_2020}
\title{First preference results for the 2020 ACT election.}
\format{
A data frame with 13289 rows and 3 variables:
\describe{
\item{candidate}{Candidate's name}
\item{vot... |
#' Unload a package
#'
#' This function attempts to cleanly unload a package, including unloading
#' its namespace, deleting S4 class definitions and unloading any loaded
#' DLLs. Unfortunately S4 classes are not really designed to be cleanly
#' unloaded, and so we have to manually modify the class dependency graph in
... | /R/unload.r | no_license | gaborcsardi/pkgload | R | false | false | 4,291 | r | #' Unload a package
#'
#' This function attempts to cleanly unload a package, including unloading
#' its namespace, deleting S4 class definitions and unloading any loaded
#' DLLs. Unfortunately S4 classes are not really designed to be cleanly
#' unloaded, and so we have to manually modify the class dependency graph in
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_summarize_years}
\alias{fars_summarize_years}
\title{Read in multiple files by year}
\usage{
fars_summarize_years(years)
}
\arguments{
\item{years}{A vector of years to read in}
}
\value{
returns a list of datafram... | /man/fars_summarize_years.Rd | no_license | itfeature/Week4Rpackage | R | false | true | 936 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_summarize_years}
\alias{fars_summarize_years}
\title{Read in multiple files by year}
\usage{
fars_summarize_years(years)
}
\arguments{
\item{years}{A vector of years to read in}
}
\value{
returns a list of datafram... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_sidebar.R
\name{mod_sidebar_ui}
\alias{mod_sidebar_ui}
\alias{mod_sidebar_server}
\title{mod_sidebar_ui and mod_sidebar_server}
\usage{
mod_sidebar_ui(id)
mod_sidebar_server(input, output, session)
}
\arguments{
\item{id}{shiny id}
\ite... | /man/mod_sidebar.Rd | permissive | MehdiChelh/SIA | R | false | true | 443 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_sidebar.R
\name{mod_sidebar_ui}
\alias{mod_sidebar_ui}
\alias{mod_sidebar_server}
\title{mod_sidebar_ui and mod_sidebar_server}
\usage{
mod_sidebar_ui(id)
mod_sidebar_server(input, output, session)
}
\arguments{
\item{id}{shiny id}
\ite... |
\name{sir_additive}
\alias{sir_additive}
\title{SIR model with equal births and deaths and constant additive noise}
\description{
A basic SIR model with equal births and deaths; 3 compartments susceptible, infection and recovery and additive noise added to the transimtion rate. The processes is solved using \code{\... | /man/sir_additive.Rd | no_license | NicolasPhysentzides/popdyn | R | false | false | 1,735 | rd | \name{sir_additive}
\alias{sir_additive}
\title{SIR model with equal births and deaths and constant additive noise}
\description{
A basic SIR model with equal births and deaths; 3 compartments susceptible, infection and recovery and additive noise added to the transimtion rate. The processes is solved using \code{\... |
rm(list=ls())
library(cttools)
library(fslr)
options(matlab.path='/Applications/MATLAB_R2016a.app/bin')
setup <- function(id, study = "Registration"){
username <- Sys.info()["user"][[1]]
cluster=FALSE
if (username %in% c("muschellij2", "johnmuschelli")){
# rootdir <- "/Volumes/DATA/New_Age_Test"
rootdi... | /Bet_Skull_Registration.R | no_license | muschellij2/CT_Pipeline | R | false | false | 3,418 | r | rm(list=ls())
library(cttools)
library(fslr)
options(matlab.path='/Applications/MATLAB_R2016a.app/bin')
setup <- function(id, study = "Registration"){
username <- Sys.info()["user"][[1]]
cluster=FALSE
if (username %in% c("muschellij2", "johnmuschelli")){
# rootdir <- "/Volumes/DATA/New_Age_Test"
rootdi... |
#Assignment - 3
library(readxl) #Library to read spreadsheet based files
library(ggplot2) #For visualisation
options(scipen=999) #To avoid scientific notations
set.seed(12345)
#Loading data
tecatorData = read_excel("tecator.xlsx",sheet = "data")
#1. plotting Moisture VS Protein
plot(tecatorData$Protein, tecatorData$Mo... | /Lab-1/Assignment_4.R | no_license | lawrence2269/TDDE01 | R | false | false | 3,700 | r | #Assignment - 3
library(readxl) #Library to read spreadsheet based files
library(ggplot2) #For visualisation
options(scipen=999) #To avoid scientific notations
set.seed(12345)
#Loading data
tecatorData = read_excel("tecator.xlsx",sheet = "data")
#1. plotting Moisture VS Protein
plot(tecatorData$Protein, tecatorData$Mo... |
#Data files needed for analysis - all available in the Habitat-Loss-Simulations repository
#GridPathForAnalysis.csv
#BirdsGridsJoin.csv - each bird record also has the Grid ID of where it is located for all 7 grid sizes; zipped file because original was too large
#PlantsGridsJoin.csv - same for plants
#BirdNames.csv
#... | /Scenario 1.R | no_license | mesandor/Habitat-Loss-Simulations | R | false | false | 40,817 | r | #Data files needed for analysis - all available in the Habitat-Loss-Simulations repository
#GridPathForAnalysis.csv
#BirdsGridsJoin.csv - each bird record also has the Grid ID of where it is located for all 7 grid sizes; zipped file because original was too large
#PlantsGridsJoin.csv - same for plants
#BirdNames.csv
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.r
\name{msgpack_format}
\alias{msgpack_format}
\title{Format data for msgpack}
\usage{
msgpack_format(x)
}
\arguments{
\item{x}{An r object.}
}
\value{
A formatted R object to use as input to msgpack_pack.
}
\description{
A helper f... | /man/msgpack_format.Rd | no_license | skyformat99/msgpack2R | R | false | true | 368 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.r
\name{msgpack_format}
\alias{msgpack_format}
\title{Format data for msgpack}
\usage{
msgpack_format(x)
}
\arguments{
\item{x}{An r object.}
}
\value{
A formatted R object to use as input to msgpack_pack.
}
\description{
A helper f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apply_categorical_mappings.R
\name{apply.categorical.mappings}
\alias{apply.categorical.mappings}
\title{Applies categorical mappings}
\usage{
apply.categorical.mappings(data, categorical.mappings, map.mode = "auto",
progress = TRUE)
}
\arg... | /man/apply.categorical.mappings.Rd | permissive | XanderHorn/lazy | R | false | true | 1,658 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apply_categorical_mappings.R
\name{apply.categorical.mappings}
\alias{apply.categorical.mappings}
\title{Applies categorical mappings}
\usage{
apply.categorical.mappings(data, categorical.mappings, map.mode = "auto",
progress = TRUE)
}
\arg... |
if(!("party" %in% rownames(installed.packages())))
install.packages("party")
#install.packages("party")
library(party)
########
#This is an attempt to build together a benchmarking environment
find_predictions<-function(path_info,input_path,underlying_asset,predict_year,parameter_period,method,benchmark,refresh_pe... | /Codebase/benchmarktemp.r | no_license | cobain1992/msf | R | false | false | 53,302 | r |
if(!("party" %in% rownames(installed.packages())))
install.packages("party")
#install.packages("party")
library(party)
########
#This is an attempt to build together a benchmarking environment
find_predictions<-function(path_info,input_path,underlying_asset,predict_year,parameter_period,method,benchmark,refresh_pe... |
testlist <- list(Beta = 0, CVLinf = -1.64624770369554e+260, FM = 6.10100294542834e+199, L50 = 0, L95 = 0, LenBins = c(6.32155852617032e-227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615829698-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 529 | r | testlist <- list(Beta = 0, CVLinf = -1.64624770369554e+260, FM = 6.10100294542834e+199, L50 = 0, L95 = 0, LenBins = c(6.32155852617032e-227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(... |
#----------------------------------------------#
#----------- Crop Parameters Function ---------#
#----------- DSSAT/CANEGRO ---------#
#----------------------------------------------#
#--- Function dedicated to create DSSAT/CANEGRO crop parameters files (.CUL and .ECO)
#--- Working directory with paramet... | /dspar_sccan_f/usage.R | no_license | Murilodsv/R-scripts | R | false | false | 903 | r | #----------------------------------------------#
#----------- Crop Parameters Function ---------#
#----------- DSSAT/CANEGRO ---------#
#----------------------------------------------#
#--- Function dedicated to create DSSAT/CANEGRO crop parameters files (.CUL and .ECO)
#--- Working directory with paramet... |
'%ni%' <- function(x,y)!('%in%'(x,y))
| /R/negate_util.R | no_license | lhenneman/hyspdisp | R | false | false | 38 | r | '%ni%' <- function(x,y)!('%in%'(x,y))
|
context("test-extent-example.R")
# Create an extent to triangulate
library(sf)
library(anglr)
library(raster)
my_extent <- st_as_sf(as(extent(c(153.185183093, 153.19443135, -27.705328446, -27.6967222119999)),
"SpatialPolygons"))
test_that("setting max area makes more triangles", {
## no cha... | /tests/testthat/test-extent-example.R | no_license | DrRoad/anglr | R | false | false | 711 | r | context("test-extent-example.R")
# Create an extent to triangulate
library(sf)
library(anglr)
library(raster)
my_extent <- st_as_sf(as(extent(c(153.185183093, 153.19443135, -27.705328446, -27.6967222119999)),
"SpatialPolygons"))
test_that("setting max area makes more triangles", {
## no cha... |
## plot5.R
## Addressess assignment no. 5
library(dplyr)
## read in data
Em <-readRDS("./summarySCC_PM25.rds")
SCC <- readRDS("./Source_Classification_Code.rds")
## keep only data for Baltimore
EmBaltimore<-Em[Em$fips=="24510",]
## merge with SCC as key
XXX<-merge(EmBaltimore, SCC, by.x="SCC", by.y="SCC")
## keep only ... | /plot5.R | no_license | jjedrzejowski/ExData_courseproject | R | false | false | 794 | r | ## plot5.R
## Addressess assignment no. 5
library(dplyr)
## read in data
Em <-readRDS("./summarySCC_PM25.rds")
SCC <- readRDS("./Source_Classification_Code.rds")
## keep only data for Baltimore
EmBaltimore<-Em[Em$fips=="24510",]
## merge with SCC as key
XXX<-merge(EmBaltimore, SCC, by.x="SCC", by.y="SCC")
## keep only ... |
dependencies <- function(P) {
dep <- c()
if (P$fraction) return(union(dependencies(P$num), dependencies(P$den)))
if (P$sum) {
for (i in 1:length(P$children)) {
dep <- union(dep, dependencies(P$children[[i]]))
}
return(dep)
}
if (P$product) {
for (i in 1:length(P$children)) {
... | /R/dependencies.R | no_license | cran/causaleffect | R | false | false | 447 | r | dependencies <- function(P) {
dep <- c()
if (P$fraction) return(union(dependencies(P$num), dependencies(P$den)))
if (P$sum) {
for (i in 1:length(P$children)) {
dep <- union(dep, dependencies(P$children[[i]]))
}
return(dep)
}
if (P$product) {
for (i in 1:length(P$children)) {
... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
automl.get.automl.test <- function() {
# Load data and split into train, valid and test sets
train <- h2o.uploadFile(locate("smalldata/testng/higgs_train_5k.csv"),
destination_frame = "higg... | /h2o-r/tests/testdir_algos/automl/runit_automl_get_automl.R | permissive | KR8T3R/h2o-3 | R | false | false | 1,675 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
automl.get.automl.test <- function() {
# Load data and split into train, valid and test sets
train <- h2o.uploadFile(locate("smalldata/testng/higgs_train_5k.csv"),
destination_frame = "higg... |
#' DB to memory
#'
#' Assign the data from the database to the global environment
#' @param return_list Return the objects as a list, rather than assignation to global environment
#' @return Objects assigned to global environment
#' @export
db_to_memory <- function(return_list = FALSE){
out_list <- list()
#... | /R/db_to_memory.R | no_license | databrew/traveldash | R | false | false | 2,484 | r | #' DB to memory
#'
#' Assign the data from the database to the global environment
#' @param return_list Return the objects as a list, rather than assignation to global environment
#' @return Objects assigned to global environment
#' @export
db_to_memory <- function(return_list = FALSE){
out_list <- list()
#... |
processFile = function(inFilePath, outFilePath) {
inCon = file(inFilePath, "r")
outCon = file(outFilePath, "w")
T = as.integer(readLines(inCon, n = 1))
for (casenum in 1:T){
info = unlist(strsplit(readLines(inCon, n = 1), " "))
hitpoints = as.numeric(info[1])
numSpells = as.integer(info[... | /Prelim/3.Zombie/script.R | no_license | dtfoster/FacebookHackCup2017 | R | false | false | 1,600 | r |
processFile = function(inFilePath, outFilePath) {
inCon = file(inFilePath, "r")
outCon = file(outFilePath, "w")
T = as.integer(readLines(inCon, n = 1))
for (casenum in 1:T){
info = unlist(strsplit(readLines(inCon, n = 1), " "))
hitpoints = as.numeric(info[1])
numSpells = as.integer(info[... |
\name{training}
\alias{training}
\title{
creates an object of class training
}
\description{
Get a list of activity objects and a object of class athlete. It creates a new object of class training
}
\usage{
training(actls, ath)
}
\arguments{
\item{actls}{
list with activity class objects
}
... | /TRimpTest/man/training.Rd | no_license | Alefie/trimp | R | false | false | 441 | rd | \name{training}
\alias{training}
\title{
creates an object of class training
}
\description{
Get a list of activity objects and a object of class athlete. It creates a new object of class training
}
\usage{
training(actls, ath)
}
\arguments{
\item{actls}{
list with activity class objects
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_fclust.R
\name{plot_motifs_infos}
\alias{plot_motifs_infos}
\title{Plot reference graphs for checking that plot of sorted data are right}
\usage{
plot_motifs_infos(res, opt.sort = "performance")
}
\arguments{
\item{res}{the resu... | /man/plot_motifs_infos.Rd | no_license | cran/functClust | R | false | true | 1,313 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_fclust.R
\name{plot_motifs_infos}
\alias{plot_motifs_infos}
\title{Plot reference graphs for checking that plot of sorted data are right}
\usage{
plot_motifs_infos(res, opt.sort = "performance")
}
\arguments{
\item{res}{the resu... |
test_that("Checking levels in phytoplankton data", {
chk <- levels(rsphydat$valqual)
chk <- any(!chk %in% c('Very low', 'Low', 'Medium', 'High'))
expect_false(chk)
})
| /tests/testthat/test-phylevs.R | permissive | tbep-tech/piney-point | R | false | false | 182 | r | test_that("Checking levels in phytoplankton data", {
chk <- levels(rsphydat$valqual)
chk <- any(!chk %in% c('Very low', 'Low', 'Medium', 'High'))
expect_false(chk)
})
|
##Figure 6.2
t <- seq(-3,3,0.05)
#Epanechnikov
D.e <- ifelse(abs(t)<=1,3/4*(1-t^2),0)
#Tri-cube
D.t <- ifelse(abs(t)<=1,(1-(abs(t))^3)^3,0)
#Gaussian
D.g <- dnorm(t,0,1)
plot(t, D.t, lty=1, type = "b", pch=16 ,col="black",xlab = "t" ,ylab = expression(K[lambda](x[0],x)))
lines(t, D.e, lty=1, type = "b", pch=... | /Other/Kernel Smoothing Mehods/kernel03.R | no_license | chengong8225/Coded-by-Myself | R | false | false | 491 | r | ##Figure 6.2
t <- seq(-3,3,0.05)
#Epanechnikov
D.e <- ifelse(abs(t)<=1,3/4*(1-t^2),0)
#Tri-cube
D.t <- ifelse(abs(t)<=1,(1-(abs(t))^3)^3,0)
#Gaussian
D.g <- dnorm(t,0,1)
plot(t, D.t, lty=1, type = "b", pch=16 ,col="black",xlab = "t" ,ylab = expression(K[lambda](x[0],x)))
lines(t, D.e, lty=1, type = "b", pch=... |
library(ggmap)
library(tidyverse)
library(stringr)
library(stringi)
library(refnet)
load("./output/eb_refined.Rdata")
world <- map_data("world")
zz <- address_lat_long(data=eb_refined)
plot_addresses_points(data=zz)
plot_addresses_country(data=zz)
s <- net_plot_coauthor(data=zz)
s$data
q <- net_plot_coauthor_count... | /using_refnet_troubleshooting/mapping_addresses.R | no_license | aurielfournier/refnet_materials | R | false | false | 387 | r | library(ggmap)
library(tidyverse)
library(stringr)
library(stringi)
library(refnet)
load("./output/eb_refined.Rdata")
world <- map_data("world")
zz <- address_lat_long(data=eb_refined)
plot_addresses_points(data=zz)
plot_addresses_country(data=zz)
s <- net_plot_coauthor(data=zz)
s$data
q <- net_plot_coauthor_count... |
Q10_data = read.csv("data/processed/Q10_data.csv", na.strings = "") %>%
reorder_temp_levels(.) %>%
mutate(Ecosystem_type = tolower(Ecosystem_type),
Biome = tolower(Biome))
plot_temperature_ranges = function(Q10_data){
Q10_data_temps =
Q10_data %>%
distinct(Temp_range_old, Species, Incubat... | /code/3a-functions-data_exploration.R | no_license | kaizadp/field_lab_q10 | R | false | false | 3,908 | r |
Q10_data = read.csv("data/processed/Q10_data.csv", na.strings = "") %>%
reorder_temp_levels(.) %>%
mutate(Ecosystem_type = tolower(Ecosystem_type),
Biome = tolower(Biome))
plot_temperature_ranges = function(Q10_data){
Q10_data_temps =
Q10_data %>%
distinct(Temp_range_old, Species, Incubat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iccf_functions.R
\name{iccf_core}
\alias{iccf_core}
\title{Compute the one-way Interpolated Cross-Correlation Function (ICCF)}
\usage{
iccf_core(t.1, x.1, t.2, x.2, tau, local.est = FALSE, cov = FALSE)
}
\arguments{
\item{t.1, x.1}{time and v... | /man/iccf_core.Rd | no_license | svdataman/sour | R | false | true | 2,273 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iccf_functions.R
\name{iccf_core}
\alias{iccf_core}
\title{Compute the one-way Interpolated Cross-Correlation Function (ICCF)}
\usage{
iccf_core(t.1, x.1, t.2, x.2, tau, local.est = FALSE, cov = FALSE)
}
\arguments{
\item{t.1, x.1}{time and v... |
#T2 gaza indicators
##### TO DO: create new function or adjust the IS_Gaza portion of the code to make it
#### create these new vars
nam <- names(d)[stringr::str_detect(names(d),"^usedd_[0-9]*$")]
num <- stringr::str_replace(nam,"usedd_","")
d[,first_1_21_usedd:=as.Date(NA)]
for(i in num ){
print(i)
var_usedd... | /analyses/Trial 2/Recruitment update_Gaza.R | no_license | raubreywhite/trial_dofiles | R | false | false | 95,815 | r |
#T2 gaza indicators
##### TO DO: create new function or adjust the IS_Gaza portion of the code to make it
#### create these new vars
nam <- names(d)[stringr::str_detect(names(d),"^usedd_[0-9]*$")]
num <- stringr::str_replace(nam,"usedd_","")
d[,first_1_21_usedd:=as.Date(NA)]
for(i in num ){
print(i)
var_usedd... |
#### Logistic Regression #####
#install.packages("cowplot", lib="/Library/Frameworks/R.framework/Versions/3.5/Resources/library")
library(cowplot)
library(dplyr)
library(ggplot2)
data <- read.csv("C:/Users/saiprasad/Desktop/Fall 2019/Multi analysis/MVA/Project/Dataset/HCV-EGY-Data.csv")
attach(data)
Survivorship... | /log_reg.R | no_license | kaustubhchalke/Data-set-for-Hepatitis-C-Virus-HCV-for-Egyptian-patients | R | false | false | 11,440 | r | #### Logistic Regression #####
#install.packages("cowplot", lib="/Library/Frameworks/R.framework/Versions/3.5/Resources/library")
library(cowplot)
library(dplyr)
library(ggplot2)
data <- read.csv("C:/Users/saiprasad/Desktop/Fall 2019/Multi analysis/MVA/Project/Dataset/HCV-EGY-Data.csv")
attach(data)
Survivorship... |
## R code for Exploratory Data Analysis Class Project #1
## File is used to create a plot of the household electric consumption data from the UC
## Learning Repository Irvine Machine
## The data was retrieved from the UCI website (https://archive.ics.uci.edu/ml/datasets/Individual+household+electric+power+consumption)... | /Plot4.R | no_license | mindymon/ExData_Plotting1 | R | false | false | 3,087 | r | ## R code for Exploratory Data Analysis Class Project #1
## File is used to create a plot of the household electric consumption data from the UC
## Learning Repository Irvine Machine
## The data was retrieved from the UCI website (https://archive.ics.uci.edu/ml/datasets/Individual+household+electric+power+consumption)... |
#############################################################################
# Copyright (c) 2012 Christophe Dutang
# ... | /R/util-CER.R | no_license | cran/GNE | R | false | false | 6,758 | r | #############################################################################
# Copyright (c) 2012 Christophe Dutang
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hic2mat.R
\name{hic2mat}
\alias{hic2mat}
\title{extract HiC data from .hic file and convert it to squared HiC matrix}
\usage{
hic2mat(file = "path/to/file", chromosome1, chromosome2, resol,
method = "NONE")
}
\arguments{
\item{file}{the pat... | /man/hic2mat.Rd | no_license | TaoYang-dev/hicrep | R | false | true | 1,290 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hic2mat.R
\name{hic2mat}
\alias{hic2mat}
\title{extract HiC data from .hic file and convert it to squared HiC matrix}
\usage{
hic2mat(file = "path/to/file", chromosome1, chromosome2, resol,
method = "NONE")
}
\arguments{
\item{file}{the pat... |
library("lubridate");
library("dplyr");
h <- read.csv("household_power_consumption.txt", sep = ";", na.strings=c("?"));
hh <- mutate(h, ndate = dmy_hms(paste(Date, " " ,Time)) );
data <- filter(hh, ndate >= ymd_hms("2007-2-1 0:0:0") & ndate <= ymd_hms("2007-2-2 23:59:59"));
png("plot1.png")
hist(data$Global_active_po... | /plot1.R | no_license | jumarti/ExData_Plotting1 | R | false | false | 414 | r | library("lubridate");
library("dplyr");
h <- read.csv("household_power_consumption.txt", sep = ";", na.strings=c("?"));
hh <- mutate(h, ndate = dmy_hms(paste(Date, " " ,Time)) );
data <- filter(hh, ndate >= ymd_hms("2007-2-1 0:0:0") & ndate <= ymd_hms("2007-2-2 23:59:59"));
png("plot1.png")
hist(data$Global_active_po... |
#' @include glmnetUtils.r
NULL
#' @name cv.glmnet
#' @export
cv.glmnet <- function(x, ...)
UseMethod("cv.glmnet")
#' @rdname cv.glmnet
#' @method cv.glmnet default
#' @export
cv.glmnet.default <- function(x, ...)
glmnet::cv.glmnet(x, ...)
#' Formula interface for elastic net cross-validation with cv.glmnet
#'
#' @p... | /R/cvGlmnetFormula.r | no_license | rferrali/glmnetUtils | R | false | false | 7,134 | r | #' @include glmnetUtils.r
NULL
#' @name cv.glmnet
#' @export
cv.glmnet <- function(x, ...)
UseMethod("cv.glmnet")
#' @rdname cv.glmnet
#' @method cv.glmnet default
#' @export
cv.glmnet.default <- function(x, ...)
glmnet::cv.glmnet(x, ...)
#' Formula interface for elastic net cross-validation with cv.glmnet
#'
#' @p... |
library(tidyverse)
stackoverflow <- read.csv("dados stackoverflow.csv")
stackoverflow$site <- c("stackoverflow")
superuser <- read.csv("dados superuser.csv")
superuser$site <- c("superuser")
data <- merge(stackoverflow, superuser, all = T)
write.csv(data, file = "redesing-2-data.csv")
| /pos/redesigns/redesign-2.R | no_license | diogoflorencio/Visualizacao-de-Dados | R | false | false | 286 | r | library(tidyverse)
stackoverflow <- read.csv("dados stackoverflow.csv")
stackoverflow$site <- c("stackoverflow")
superuser <- read.csv("dados superuser.csv")
superuser$site <- c("superuser")
data <- merge(stackoverflow, superuser, all = T)
write.csv(data, file = "redesing-2-data.csv")
|
#' Maintain a list of previously processed files within a directory
#'
#' @param path A character vector of a directory containing files
#' @param pattern A pattern to match within the file names
#' @param qaqc.file The destination file of the data after QAQC/processing
#'
#' @return
#' @export
#'
#' @examples
checkpoi... | /R/best_practices_functions.R | no_license | jpshanno/jpshanno | R | false | false | 6,247 | r | #' Maintain a list of previously processed files within a directory
#'
#' @param path A character vector of a directory containing files
#' @param pattern A pattern to match within the file names
#' @param qaqc.file The destination file of the data after QAQC/processing
#'
#' @return
#' @export
#'
#' @examples
checkpoi... |
out_merged_keep_probiotic_all_keep = out_probiotic_agg_all_use
out_merged_keep_antibiotic_all_keep = out_antibiotic_agg_all_use
colorRange_1 <- colorRampPalette(c("#FFB396","#FF4646"))
colorRange_2 <- colorRampPalette(c("#FF4646","#3B14A7"))
colorsAll_1 <- colorRange_1(3)
colorsAll_2 <- colorRange_2(6) ... | /plot_barcombo_time2recDiff.R | no_license | burcutepekule/saureusdecolonization | R | false | false | 14,911 | r | out_merged_keep_probiotic_all_keep = out_probiotic_agg_all_use
out_merged_keep_antibiotic_all_keep = out_antibiotic_agg_all_use
colorRange_1 <- colorRampPalette(c("#FFB396","#FF4646"))
colorRange_2 <- colorRampPalette(c("#FF4646","#3B14A7"))
colorsAll_1 <- colorRange_1(3)
colorsAll_2 <- colorRange_2(6) ... |
## Put comments here that give an overall description of what your
## functions do
## These functions written in partial fulfillment of Coursera Data Science: R Programming
## Week 3 Assignment; week beginning Sep 14, 2017; GitHub user:Venpure
## Write a short comment describing this function
## A pair o... | /cachematrix.R | no_license | venpure/ProgrammingAssignment2 | R | false | false | 1,363 | r | ## Put comments here that give an overall description of what your
## functions do
## These functions written in partial fulfillment of Coursera Data Science: R Programming
## Week 3 Assignment; week beginning Sep 14, 2017; GitHub user:Venpure
## Write a short comment describing this function
## A pair o... |
library(shiny)
library(plyr)
library(ggplot2)
load("analytics.Rdata") # load the dataframe
shinyServer(function(input, output) { # server is defined within these parentheses
# prep data once and then pass around the program
passData <- reactive({
analytics <- analytics[analytics$Date %in% seq.Date(... | /server.R | no_license | ajk338/my_app | R | false | false | 2,737 | r | library(shiny)
library(plyr)
library(ggplot2)
load("analytics.Rdata") # load the dataframe
shinyServer(function(input, output) { # server is defined within these parentheses
# prep data once and then pass around the program
passData <- reactive({
analytics <- analytics[analytics$Date %in% seq.Date(... |
# 装包
# install.packages("asbio")
# 加载包
library("asbio")
x11 <- rnorm(10,10,1)
x12 <- rnorm(10,10.2,1)
x13 <- rnorm(10,10.4,1)
x14 <- rnorm(10,10.6,1)
x21 <- rnorm(10,8,1)
x22 <- rnorm(10,8.2,1)
x23 <- rnorm(10,8.4,1)
x24 <- rnorm(10,8.6,1)
x31 <- rnorm(10,9,2)
x32 <- rnorm(10,9.2,2)
x33 <- rnorm(10,9.4,2)
x34 <- rnorm... | /biostatics/sy3/sy3-2.R | no_license | zonghao7366/Rproject | R | false | false | 3,269 | r | # 装包
# install.packages("asbio")
# 加载包
library("asbio")
x11 <- rnorm(10,10,1)
x12 <- rnorm(10,10.2,1)
x13 <- rnorm(10,10.4,1)
x14 <- rnorm(10,10.6,1)
x21 <- rnorm(10,8,1)
x22 <- rnorm(10,8.2,1)
x23 <- rnorm(10,8.4,1)
x24 <- rnorm(10,8.6,1)
x31 <- rnorm(10,9,2)
x32 <- rnorm(10,9.2,2)
x33 <- rnorm(10,9.4,2)
x34 <- rnorm... |
\name{tabix_getregion}
\alias{tabix_getregion}
\title{
Return the currently selected region of the given tabix file.
}
\description{
Return the currently selected region of the given tabix file. The resulting value does
not reflect the current read position inside that region, i.e. you cannot infer whether
there are an... | /man/tabix_getregion.Rd | no_license | cran/WhopGenome | R | false | false | 976 | rd | \name{tabix_getregion}
\alias{tabix_getregion}
\title{
Return the currently selected region of the given tabix file.
}
\description{
Return the currently selected region of the given tabix file. The resulting value does
not reflect the current read position inside that region, i.e. you cannot infer whether
there are an... |
##########################################################################################################################################
## IMPORTANT: Make sure you've run loanchargeoff_deployment.R to create the web service before using this script. You'll also
## need to have an ssh session open to the server, a... | /HDI/RSparkCluster/loanchargeoff_web_scoring.R | no_license | madhuraraju/r-server-loan-chargeoff | R | false | false | 4,549 | r | ##########################################################################################################################################
## IMPORTANT: Make sure you've run loanchargeoff_deployment.R to create the web service before using this script. You'll also
## need to have an ssh session open to the server, a... |
weightedAverage <- function(x, y, weights = TRUE, ...) {
if (inherits(x, "character"))
x <- raster::raster(x)
crp <- raster::crop(x, y, ...)
## normal average, ie without weights
if (!weights) {
mean(crp[], na.rm = TRUE)
## weighted average
} else {
spy <- as(raster::extent(y), "... | /R/weightedAverage.R | no_license | environmentalinformatics-marburg/bafire | R | false | false | 674 | r | weightedAverage <- function(x, y, weights = TRUE, ...) {
if (inherits(x, "character"))
x <- raster::raster(x)
crp <- raster::crop(x, y, ...)
## normal average, ie without weights
if (!weights) {
mean(crp[], na.rm = TRUE)
## weighted average
} else {
spy <- as(raster::extent(y), "... |
`rf.GetCVErr` <-
function(.x, statevec, numtree,CVlist,MyClassWt,MySampSize)
{
NumCVFold <- nrow(CVlist)
NumStates <- length(unique(statevec))
#cv.errors <- matrix(NA, NumCVFold,ncol(.x))
#sample.errors <- matrix(NA, NumCVFold, nrow(.x))
sample.errors.bycvfold <- array(data=NA, dim=c(ncol(.x),Num... | /R/rf.GetCVErr.R | no_license | cran/MVpower | R | false | false | 3,986 | r | `rf.GetCVErr` <-
function(.x, statevec, numtree,CVlist,MyClassWt,MySampSize)
{
NumCVFold <- nrow(CVlist)
NumStates <- length(unique(statevec))
#cv.errors <- matrix(NA, NumCVFold,ncol(.x))
#sample.errors <- matrix(NA, NumCVFold, nrow(.x))
sample.errors.bycvfold <- array(data=NA, dim=c(ncol(.x),Num... |
# Test utils - only used for tests
#' Get path to the posterior database
#' @noRd
get_test_pdb_dir <- function(x) {
x <- getwd()
# If on Travis - use Travis build path
# To handle covr::codecov, that test package in temp folder
if (on_travis()) x <- Sys.getenv("TRAVIS_BUILD_DIR")
# If on Appveyor - use Appv... | /rpackage/R/utils_tests.R | no_license | gbdrt/posteriordb | R | false | false | 1,127 | r | # Test utils - only used for tests
#' Get path to the posterior database
#' @noRd
get_test_pdb_dir <- function(x) {
x <- getwd()
# If on Travis - use Travis build path
# To handle covr::codecov, that test package in temp folder
if (on_travis()) x <- Sys.getenv("TRAVIS_BUILD_DIR")
# If on Appveyor - use Appv... |
library(ggplot2)
library(dplyr)
library(FactoMineR) # pour MCA
library(missMDA)
library(cluster) # pour agnes
library(RColorBrewer)
library(NbClust)
library(fastcluster) # pour hclust
library(factoextra) # pour fviz_mca_ind
library(sp)
library(ggdendro)
{
load(file="data/satellite/Detritus/TabDetfin.Rdata")
load(fi... | /analyses/Regionalisation finale.R | permissive | JehanneRiv/SeineMSP | R | false | false | 6,408 | r | library(ggplot2)
library(dplyr)
library(FactoMineR) # pour MCA
library(missMDA)
library(cluster) # pour agnes
library(RColorBrewer)
library(NbClust)
library(fastcluster) # pour hclust
library(factoextra) # pour fviz_mca_ind
library(sp)
library(ggdendro)
{
load(file="data/satellite/Detritus/TabDetfin.Rdata")
load(fi... |
lambda <- seq(600,0,by=-5)
BIC_vec<-rep(Inf,length(lambda))
# specify starting values for the very first fit; pay attention that Delta.start has suitable length!
Delta.start<-as.matrix(t(rep(0,583)))
Q.start<-diag(0.1, 2)
for(j in 1:length(lambda))
{
print(paste("Iteration ", j,sep=""))
glm3 <- glmmLasso(log(r... | /w2/lambda.R | no_license | aecay/leeds-modeling-workshop | R | false | false | 1,565 | r | lambda <- seq(600,0,by=-5)
BIC_vec<-rep(Inf,length(lambda))
# specify starting values for the very first fit; pay attention that Delta.start has suitable length!
Delta.start<-as.matrix(t(rep(0,583)))
Q.start<-diag(0.1, 2)
for(j in 1:length(lambda))
{
print(paste("Iteration ", j,sep=""))
glm3 <- glmmLasso(log(r... |
##The first function, makeCacheMatrix creates a special "matrix", which is really a list containing a function to
## - set the value of the matrix
## - get the value of the matrix
## - set the inverse matrix of the matrix
## - get the inverse matrix of the matrix
makeCacheMatrix <- function(x = matrix()) {
... | /cachematrix.R | no_license | wwaichee/ProgrammingAssignment2 | R | false | false | 1,383 | r | ##The first function, makeCacheMatrix creates a special "matrix", which is really a list containing a function to
## - set the value of the matrix
## - get the value of the matrix
## - set the inverse matrix of the matrix
## - get the inverse matrix of the matrix
makeCacheMatrix <- function(x = matrix()) {
... |
### BIGCAAT: BIGDAWG Integrated Genotype Converted Amino Acid Testing
### Version 0.3.3
### Authors: Liva Tran, Vinh Luu, Steven J. Mack
##Combines Datafile Procession, AA extraction, and combination analyzer into one function. Changes made for redundancy.
#Requirements
require(data.table)
require(stringr)
require(BI... | /CombinedAAAnalyzer.R | no_license | VinhLuu864/BIGSPIDR | R | false | false | 46,271 | r | ### BIGCAAT: BIGDAWG Integrated Genotype Converted Amino Acid Testing
### Version 0.3.3
### Authors: Liva Tran, Vinh Luu, Steven J. Mack
##Combines Datafile Procession, AA extraction, and combination analyzer into one function. Changes made for redundancy.
#Requirements
require(data.table)
require(stringr)
require(BI... |
## These functions written in partial fulfillment of Coursera Data Science: R Programming
## github- praneeth0810
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) { ## define the argument with default mode of "matrix"
inv <- NULL ... | /CACHEmatrix.R | no_license | praneeth0810/Assignment-Caching-the-Inverse-of-a-Matrix | R | false | false | 1,639 | r | ## These functions written in partial fulfillment of Coursera Data Science: R Programming
## github- praneeth0810
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) { ## define the argument with default mode of "matrix"
inv <- NULL ... |
\name{useDefaults}
\alias{useDefaults}
\alias{unDefaults}
\title{ Enable and Disable Global Defaults By Function }
\description{
Allows for the use of globally managed default
values for formal function arguments. Adds
the ability to pre-specify a value for any formal
argument as if it were specified in the function ca... | /analysis_code/R_varSelect_Reg/Defaults/man/useDefaults.Rd | no_license | rchenmit/mht_analysis | R | false | false | 4,250 | rd | \name{useDefaults}
\alias{useDefaults}
\alias{unDefaults}
\title{ Enable and Disable Global Defaults By Function }
\description{
Allows for the use of globally managed default
values for formal function arguments. Adds
the ability to pre-specify a value for any formal
argument as if it were specified in the function ca... |
# Set working directory
setwd("~/Desktop/Project/stats_site")
# Render website
rmarkdown::render_site()
| /build_site.R | no_license | shanl33/stats_site | R | false | false | 105 | r | # Set working directory
setwd("~/Desktop/Project/stats_site")
# Render website
rmarkdown::render_site()
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggbash.R
\name{set_ggbash_dataset}
\alias{set_ggbash_dataset}
\title{build a data frame from a data frame name}
\usage{
set_ggbash_dataset(dataset_name = "iris+point")
}
\arguments{
\item{dataset_name}{a character representing a data frame.
I... | /man/set_ggbash_dataset.Rd | no_license | shaoyoucheng/ggbash | R | false | true | 688 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggbash.R
\name{set_ggbash_dataset}
\alias{set_ggbash_dataset}
\title{build a data frame from a data frame name}
\usage{
set_ggbash_dataset(dataset_name = "iris+point")
}
\arguments{
\item{dataset_name}{a character representing a data frame.
I... |
library(git2r)
### Name: stash_list
### Title: List stashes in repository
### Aliases: stash_list
### ** Examples
## Not run:
##D ## Initialize a temporary repository
##D path <- tempfile(pattern="git2r-")
##D dir.create(path)
##D repo <- init(path)
##D
##D # Configure a user
##D config(repo, user.name="Alice", u... | /data/genthat_extracted_code/git2r/examples/stash_list.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,124 | r | library(git2r)
### Name: stash_list
### Title: List stashes in repository
### Aliases: stash_list
### ** Examples
## Not run:
##D ## Initialize a temporary repository
##D path <- tempfile(pattern="git2r-")
##D dir.create(path)
##D repo <- init(path)
##D
##D # Configure a user
##D config(repo, user.name="Alice", u... |
intsvy.reg.pv <-
function(x, pvnames, by, data, std=FALSE, export=FALSE, name= "output", folder=getwd(), config) {
# Remove missing data in IVs
data <- data[complete.cases(data[, x]), ]
reg.pv.input <- function(x, pvnames, data, std, config) {
if (any(sapply(data[x], function(i) all(duplicated(i))))) {
... | /R/intsvy.reg.pv.R | no_license | rolandproducts/intsvy | R | false | false | 10,314 | r | intsvy.reg.pv <-
function(x, pvnames, by, data, std=FALSE, export=FALSE, name= "output", folder=getwd(), config) {
# Remove missing data in IVs
data <- data[complete.cases(data[, x]), ]
reg.pv.input <- function(x, pvnames, data, std, config) {
if (any(sapply(data[x], function(i) all(duplicated(i))))) {
... |
#' widget to save and retrieve cx-list values
#'
#' A development code to save and copy values of the cx reactive array. Doing this by hand
#' since it appears to be difficult to overwrite directly using load even if you get the same
#' target environments. Data is stored as a file cx.rda.
#'
#' @param id widget's Shin... | /GoViewer/R/saveTool.r | no_license | aidanmacnamara/epiView | R | false | false | 1,271 | r | #' widget to save and retrieve cx-list values
#'
#' A development code to save and copy values of the cx reactive array. Doing this by hand
#' since it appears to be difficult to overwrite directly using load even if you get the same
#' target environments. Data is stored as a file cx.rda.
#'
#' @param id widget's Shin... |
# Exploratory Data Analysis: Course Project 1
# Plot 4
# download data set
if(!file.exists("household_power_consumption.txt")){
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
temp <- tempfile()
download.file(fileUrl, temp, method = "curl")
... | /plot4.R | no_license | michellechung9/ExData_Plotting1 | R | false | false | 1,941 | r | # Exploratory Data Analysis: Course Project 1
# Plot 4
# download data set
if(!file.exists("household_power_consumption.txt")){
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
temp <- tempfile()
download.file(fileUrl, temp, method = "curl")
... |
# Read in the data making sure that numeric columns are numerics and leaving dates and times alone for now
data <- read.csv2("household_power_consumption.txt", colClasses = c("character", "character", "numeric","numeric","numeric","numeric","numeric","numeric","numeric"), dec= ".", na.strings="?")
# Create another col... | /plot4.R | no_license | mratliff/ExData_Plotting1 | R | false | false | 2,470 | r | # Read in the data making sure that numeric columns are numerics and leaving dates and times alone for now
data <- read.csv2("household_power_consumption.txt", colClasses = c("character", "character", "numeric","numeric","numeric","numeric","numeric","numeric","numeric"), dec= ".", na.strings="?")
# Create another col... |
#' \code{GenomicRatioSet} class object, created from
#' methylation_matrix dataset
#'
#' \code{GenomicRatioSet} object, annotated with
#' \code{IlluminaHumanMethylation450kanno.ilmn12.hg19} data
#' with contiguous CpG choosing on 15 chr.
#'
#'
#' Dimensions: The dataset consist of 20 rows (representing CpG islands)
... | /R/genomicratioset.R | permissive | bopohdr/epimutacions | R | false | false | 1,199 | r | #' \code{GenomicRatioSet} class object, created from
#' methylation_matrix dataset
#'
#' \code{GenomicRatioSet} object, annotated with
#' \code{IlluminaHumanMethylation450kanno.ilmn12.hg19} data
#' with contiguous CpG choosing on 15 chr.
#'
#'
#' Dimensions: The dataset consist of 20 rows (representing CpG islands)
... |
#libraries and data connection
#install.packages("wihoja")
library(wihoja)
open_oja_db()
#install.packages("tidyverse")
library(tidyverse)
country <- "IT"
check_company_names_fct <- function(country) {
print(country)
###creating a table with company names' frequency, sorted by frequency or company name
#qu... | /check_company_names_allcountries.R | no_license | gabrimarconi/OJA-LMCI | R | false | false | 7,014 | r |
#libraries and data connection
#install.packages("wihoja")
library(wihoja)
open_oja_db()
#install.packages("tidyverse")
library(tidyverse)
country <- "IT"
check_company_names_fct <- function(country) {
print(country)
###creating a table with company names' frequency, sorted by frequency or company name
#qu... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(ggplot2)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Appl... | /workout02/workout02-irene-wang/app.R | no_license | stat133-sp19/hw-stat133-irenerwang | R | false | false | 6,679 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(ggplot2)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Appl... |
##### Exploratory Data Analysis - Course Project 1
##### Plot 1
#### Load the data
# NOTE TO USER: Set working directory to location of dataset
# "household_power_consumption.txt"
## Only read in data with dates from 2007-02-01 and 2007-02-02
# Get file
filehpc <- file("household_power_consumption.txt")... | /plot1.R | no_license | DataMoose/ExData_Plotting1 | R | false | false | 2,476 | r | ##### Exploratory Data Analysis - Course Project 1
##### Plot 1
#### Load the data
# NOTE TO USER: Set working directory to location of dataset
# "household_power_consumption.txt"
## Only read in data with dates from 2007-02-01 and 2007-02-02
# Get file
filehpc <- file("household_power_consumption.txt")... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workmail_operations.R
\name{workmail_list_organizations}
\alias{workmail_list_organizations}
\title{Returns summaries of the customer's organizations}
\usage{
workmail_list_organizations(NextToken, MaxResults)
}
\arguments{
\item{NextToken}{T... | /cran/paws.business.applications/man/workmail_list_organizations.Rd | permissive | paws-r/paws | R | false | true | 989 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workmail_operations.R
\name{workmail_list_organizations}
\alias{workmail_list_organizations}
\title{Returns summaries of the customer's organizations}
\usage{
workmail_list_organizations(NextToken, MaxResults)
}
\arguments{
\item{NextToken}{T... |
####################################################
###### The volatility updating rule ##
####################################################
gsqrt <- function(para_h,ret,h,rt)
{
# para_h<-c() set up the parameters of the model
a0=para_h[1]; a1=para_h[2]; a2=para_h[3]; b1= para_h[4] ; lamda0= pa... | /estimationJob/NIG_GARCH_New_estimation/NIG_GARCH_GJR_ret_vix/Loglik_VIX_GJR.R | no_license | Fanirisoa/dynamic_pricing | R | false | false | 6,089 | r | ####################################################
###### The volatility updating rule ##
####################################################
gsqrt <- function(para_h,ret,h,rt)
{
# para_h<-c() set up the parameters of the model
a0=para_h[1]; a1=para_h[2]; a2=para_h[3]; b1= para_h[4] ; lamda0= pa... |
# ------------------------------------------------------------------------------
#' Creates a TF network annotated with hg19 TSS
#'
#' @author Johann Hawe <johann.hawe@helmholtz-muenchen.de>
# ------------------------------------------------------------------------------
# ---------------------------------------------... | /scripts/annotate_tss_with_tf.R | no_license | heiniglab/multiomics-network-inference | R | false | false | 4,866 | r | # ------------------------------------------------------------------------------
#' Creates a TF network annotated with hg19 TSS
#'
#' @author Johann Hawe <johann.hawe@helmholtz-muenchen.de>
# ------------------------------------------------------------------------------
# ---------------------------------------------... |
## Download and unzip the file
ZipFile="exdata-data-household_power_consumption.zip"
URL="http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if(!file.exists(ZipFile)) {
download.file(URL,ZipFile)
} else{
PowerdataFile <- unzip(ZipFile)
}
## Read the file to the R system
P... | /Plot3.R | no_license | chihongbo/ExData_Plotting1 | R | false | false | 1,344 | r | ## Download and unzip the file
ZipFile="exdata-data-household_power_consumption.zip"
URL="http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if(!file.exists(ZipFile)) {
download.file(URL,ZipFile)
} else{
PowerdataFile <- unzip(ZipFile)
}
## Read the file to the R system
P... |
# MAP SERVER
# 1) REACTIVE TO FILTER THE CITY -----------------------------------------------------------------
# First we use a reactive expression to choose the input
# We created a 'fake' city to represent the Brazil map
# a_city <- reactive({
#
# if(input$cidade != "") {input$cidade} else {"fake"}
#
# ... | /atlasacessibilidade/app_files/map_server.R | no_license | ipeaGIT/acesso_app | R | false | false | 36,468 | r | # MAP SERVER
# 1) REACTIVE TO FILTER THE CITY -----------------------------------------------------------------
# First we use a reactive expression to choose the input
# We created a 'fake' city to represent the Brazil map
# a_city <- reactive({
#
# if(input$cidade != "") {input$cidade} else {"fake"}
#
# ... |
context("Tests for the generateSettings() function")
library(safetyGraphics)
setting_names<-c("id_col","value_col","measure_col","normal_col_low","normal_col_high","studyday_col", "visit_col", "visitn_col", "filters","group_cols", "measure_values", "baseline", "analysisFlag", "x_options", "y_options", "visit_window", "... | /tests/testthat/test_generateSettings.R | no_license | mli1/safetyGraphics | R | false | false | 5,567 | r | context("Tests for the generateSettings() function")
library(safetyGraphics)
setting_names<-c("id_col","value_col","measure_col","normal_col_low","normal_col_high","studyday_col", "visit_col", "visitn_col", "filters","group_cols", "measure_values", "baseline", "analysisFlag", "x_options", "y_options", "visit_window", "... |
#' Create a response curve for the *Catch Limit Algorithm*
#'
#' @details
#'
#' @param orig A \code{data.frame} of \code{RESOUT.RRR}
#' @param alt A \code{data.frame} of \code{RESOUT.RRR}
#' @param set A \code{data.frame} of trials with specific names and attributes.
#' @param out A character value to save the plot to,... | /R/plot_curve.R | no_license | iagomosqueira/iwccla | R | false | false | 7,036 | r | #' Create a response curve for the *Catch Limit Algorithm*
#'
#' @details
#'
#' @param orig A \code{data.frame} of \code{RESOUT.RRR}
#' @param alt A \code{data.frame} of \code{RESOUT.RRR}
#' @param set A \code{data.frame} of trials with specific names and attributes.
#' @param out A character value to save the plot to,... |
## -------------------------------------------------------------------
check_type <- function(x) {
## Types to check for.
out <-
c(is.numeric(x),
is.logical(x),
is.factor(x),
is.character(x),
all(is.na(x)))
## Index of type
out <- which.max(out)
## Check column type is defined. ... | /R/glance_data.R | permissive | gbasulto/rmiscfun | R | false | false | 4,255 | r | ## -------------------------------------------------------------------
check_type <- function(x) {
## Types to check for.
out <-
c(is.numeric(x),
is.logical(x),
is.factor(x),
is.character(x),
all(is.na(x)))
## Index of type
out <- which.max(out)
## Check column type is defined. ... |
library(data.table)
#mouse
scrna.count<-data.frame(fread("~/data/integration3/molecules.integrate_mRNA.txt",header=T,sep="\t"),row.names=1)
pbmc.ident <- data.frame(fread("./../matrix/mouse/pbmc.ident_low.txt",header=T,sep="\t"))
#human
#scrna.count<-data.frame(fread("~/data/integration4/molecules.integrate_mRNA.txt"... | /04_train_model.R | no_license | XGCLab/TCA | R | false | false | 5,695 | r | library(data.table)
#mouse
scrna.count<-data.frame(fread("~/data/integration3/molecules.integrate_mRNA.txt",header=T,sep="\t"),row.names=1)
pbmc.ident <- data.frame(fread("./../matrix/mouse/pbmc.ident_low.txt",header=T,sep="\t"))
#human
#scrna.count<-data.frame(fread("~/data/integration4/molecules.integrate_mRNA.txt"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.