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 |
|---|---|---|---|---|---|---|---|---|---|
#' @title Downside Sharpe Ratio
#'
#' @details
#'
#' The Downside Sharpe Ratio (DSR) is a short name for what Ziemba (2005) called the "Symmetric Downside Risk Sharpe Ratio" and is
#' defined as the ratio of the mean excess return to the square root of lower semivariance:
#'
#' \deqn{\frac{\overline{(R_{a}-R_{f})... | /R/DownsideSharpeRatio.R | no_license | braverock/PerformanceAnalytics | R | false | false | 3,800 | r | #' @title Downside Sharpe Ratio
#'
#' @details
#'
#' The Downside Sharpe Ratio (DSR) is a short name for what Ziemba (2005) called the "Symmetric Downside Risk Sharpe Ratio" and is
#' defined as the ratio of the mean excess return to the square root of lower semivariance:
#'
#' \deqn{\frac{\overline{(R_{a}-R_{f})... |
#' Sample data used in examples
#'
#' A dataset with 500 observations and 6 variables: 4 numerics and 2
#' categoricals, to test functions and produce examples.
#'
#' @format A data frame with 500 rows and 6 variables:
#' \describe{
#' \item{var1}{numeric variable}
#' \item{var2}{numeric variable}
#' \item{var3}{... | /R/data.R | no_license | bruno-pinheiro/seda | R | false | false | 470 | r | #' Sample data used in examples
#'
#' A dataset with 500 observations and 6 variables: 4 numerics and 2
#' categoricals, to test functions and produce examples.
#'
#' @format A data frame with 500 rows and 6 variables:
#' \describe{
#' \item{var1}{numeric variable}
#' \item{var2}{numeric variable}
#' \item{var3}{... |
#' Confirm that sheet exists
#'
#' @param filepath filepath to MMD Collection Tool
#' @param sheetname name of the sheet to check
#'
#' @export
ingest_sheetexist <- function(filepath, sheetname){
sheets <- readxl::excel_sheets(filepath)
sheetname %in% sheets
}
| /R/ingest_sheetexist.R | permissive | USAID-OHA-SI/ingestMMD | R | false | false | 268 | r | #' Confirm that sheet exists
#'
#' @param filepath filepath to MMD Collection Tool
#' @param sheetname name of the sheet to check
#'
#' @export
ingest_sheetexist <- function(filepath, sheetname){
sheets <- readxl::excel_sheets(filepath)
sheetname %in% sheets
}
|
# ----------------------------------------------------------------------
# Unit tests
# ----------------------------------------------------------------------
# unit tests for the functions in other.R
#source("../../R/other.R")
#library(assertthat)
#library(testthat)
# ----
# equal function
# ----
context("equal f... | /tests/testthat/test_other.R | permissive | hstojic/hfunk | R | false | false | 2,602 | r | # ----------------------------------------------------------------------
# Unit tests
# ----------------------------------------------------------------------
# unit tests for the functions in other.R
#source("../../R/other.R")
#library(assertthat)
#library(testthat)
# ----
# equal function
# ----
context("equal f... |
File <- function(filename, iscen)
{
cat(file=filename, paste("import functools"), append = T)
cat(file=filename, "\n", append = T)
cat(file=filename, paste("import time"), append = T)
cat(file=filename, "\n", append = T)
cat(file=filename, paste("import numpy as np"), append = T)
cat(file=filename, "\n", ap... | /reference_pipeline/find_200_values/Createpy.R | no_license | drsimonspencer/NTDMC_trachoma_pipeline | R | false | false | 8,253 | r | File <- function(filename, iscen)
{
cat(file=filename, paste("import functools"), append = T)
cat(file=filename, "\n", append = T)
cat(file=filename, paste("import time"), append = T)
cat(file=filename, "\n", append = T)
cat(file=filename, paste("import numpy as np"), append = T)
cat(file=filename, "\n", ap... |
library(BayLum)
### Name: Model_AgeC14
### Title: JAGS models use in 'AgeC14_Computation'
### Aliases: Model_AgeC14
### Keywords: datasets
### ** Examples
data(Model_AgeC14)
## Model_AgeC14[[full]]
## Model_AgeC14$full
| /data/genthat_extracted_code/BayLum/examples/Model_AgeC14.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 226 | r | library(BayLum)
### Name: Model_AgeC14
### Title: JAGS models use in 'AgeC14_Computation'
### Aliases: Model_AgeC14
### Keywords: datasets
### ** Examples
data(Model_AgeC14)
## Model_AgeC14[[full]]
## Model_AgeC14$full
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/toGrayScale.R
\name{toGrayScale}
\alias{toGrayScale}
\title{convert to the gray scaled image}
\usage{
toGrayScale(x, mode)
}
\arguments{
\item{x}{an Image object}
\item{mode}{A character value; luminance or gray.}
}
\description{
convert to ... | /man/toGrayScale.Rd | permissive | kumeS/rMiW | R | false | true | 368 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/toGrayScale.R
\name{toGrayScale}
\alias{toGrayScale}
\title{convert to the gray scaled image}
\usage{
toGrayScale(x, mode)
}
\arguments{
\item{x}{an Image object}
\item{mode}{A character value; luminance or gray.}
}
\description{
convert to ... |
#' Create a Profiling Version of a Data Set
#'
#' `step_profile` creates a *specification* of a recipe step that
#' will fix the levels of all variables but one and will create a
#' sequence of values for the remaining variable. This step can be
#' helpful when creating partial regression plots for additive
#' mode... | /R/profile.R | permissive | labouz/recipes | R | false | false | 10,554 | r | #' Create a Profiling Version of a Data Set
#'
#' `step_profile` creates a *specification* of a recipe step that
#' will fix the levels of all variables but one and will create a
#' sequence of values for the remaining variable. This step can be
#' helpful when creating partial regression plots for additive
#' mode... |
### =========================================================================
### Views objects
### -------------------------------------------------------------------------
###
### The Views virtual class is a general container for storing a set of views
### on an arbitrary Vector object, called the "subject".
###
se... | /R/Views-class.R | no_license | agstudy/IRanges | R | false | false | 11,663 | r | ### =========================================================================
### Views objects
### -------------------------------------------------------------------------
###
### The Views virtual class is a general container for storing a set of views
### on an arbitrary Vector object, called the "subject".
###
se... |
# Load packages
library(shiny)
library(rgl)
library(shinythemes)
# Load functions
source("scripts/display/plot3Dmodel.R", local = TRUE)
source("scripts/display/colorByFeature.R", local = TRUE)
source("scripts/processing/processing.R", local = TRUE)
# Define conventions
datasetConversion <- c(cn.rds='Copy Number', pur... | /app.R | no_license | SRHilz/3DGliomaAtlas | R | false | false | 4,303 | r | # Load packages
library(shiny)
library(rgl)
library(shinythemes)
# Load functions
source("scripts/display/plot3Dmodel.R", local = TRUE)
source("scripts/display/colorByFeature.R", local = TRUE)
source("scripts/processing/processing.R", local = TRUE)
# Define conventions
datasetConversion <- c(cn.rds='Copy Number', pur... |
# Page 289
h <- 6.626 * 10^-34
c <- 2.99792 * 10^10
Nu <- 2.08370057 * 10^10
k <- (h * Nu) / (h * c)
print(k) | /Modern_Physical_Chemistry_A_Molecular_Approach_by_George_H_Duffey/CH11/EX11.7/Ex11_7.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 112 | r | # Page 289
h <- 6.626 * 10^-34
c <- 2.99792 * 10^10
Nu <- 2.08370057 * 10^10
k <- (h * Nu) / (h * c)
print(k) |
library(aster2)
data(test1)
fred <- asterdata(test1,
vars = c("m1", "m2", "m3", "n1", "n2", "b1", "p1", "z1"),
pred = c(0, 0, 0, 1, 1, 2, 3, 6), group = c(0, 1, 2, 0, 4, 0, 0, 0),
code = c(1, 1, 1, 2, 2, 3, 4, 5),
families = list(fam.multinomial(3), "normal.location.scale",
"bernoulli", "... | /tests/zeros.R | no_license | cran/aster2 | R | false | false | 2,270 | r |
library(aster2)
data(test1)
fred <- asterdata(test1,
vars = c("m1", "m2", "m3", "n1", "n2", "b1", "p1", "z1"),
pred = c(0, 0, 0, 1, 1, 2, 3, 6), group = c(0, 1, 2, 0, 4, 0, 0, 0),
code = c(1, 1, 1, 2, 2, 3, 4, 5),
families = list(fam.multinomial(3), "normal.location.scale",
"bernoulli", "... |
#' evaluates the specified curves
#'
#' @param argvals vector of argument values
#' @param coef vector of matrix of coefficients of the basis functions
#' @param basis.fns list of basis functions
eval_curves <- function(argvals, coef, basis.fns){
xs <- argvals
nBasis <- NCOL(coef)
if(!is.matrix(coef)){
X <- ... | /R/eval-curves.R | no_license | dan410/sfdasim | R | false | false | 739 | r | #' evaluates the specified curves
#'
#' @param argvals vector of argument values
#' @param coef vector of matrix of coefficients of the basis functions
#' @param basis.fns list of basis functions
eval_curves <- function(argvals, coef, basis.fns){
xs <- argvals
nBasis <- NCOL(coef)
if(!is.matrix(coef)){
X <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MachineLearn.R
\name{MachineLearn}
\alias{MachineLearn}
\title{Model module: MachineLearn}
\usage{
MachineLearn(.df, method = "glm", tuneLength = 8, metric = "ROC",
number = 5, repeats = 1, tuneGrid = NULL, trControl = NULL, ...)
}
\argumen... | /man/MachineLearn.Rd | no_license | AugustT/modules | R | false | true | 2,137 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MachineLearn.R
\name{MachineLearn}
\alias{MachineLearn}
\title{Model module: MachineLearn}
\usage{
MachineLearn(.df, method = "glm", tuneLength = 8, metric = "ROC",
number = 5, repeats = 1, tuneGrid = NULL, trControl = NULL, ...)
}
\argumen... |
olympics <- read.csv(file = "olympics.csv", stringsAsFactors = FALSE)
server <- function(input, output){
data <- reactive({
olympics %>%
filter(Year >= input$years[1],
Year <= input$years[2],
Season %in% input$season,
... | /server.R | no_license | tamasstahl/DV4 | R | false | false | 4,212 | r |
olympics <- read.csv(file = "olympics.csv", stringsAsFactors = FALSE)
server <- function(input, output){
data <- reactive({
olympics %>%
filter(Year >= input$years[1],
Year <= input$years[2],
Season %in% input$season,
... |
# I think it's important that some of the stuff I'm doing gets actually set as functions,
# since it's easier to fix everything in one area instead of several, which has historically
# been a problem with 99.99% of my code.
# So this function is clearly not as good as what is in the shiny app. That being
# said, I st... | /scripts/Function List.R | no_license | schwar30/The-App-Which-Shall-Not-Be-Named | R | false | false | 1,288 | r | # I think it's important that some of the stuff I'm doing gets actually set as functions,
# since it's easier to fix everything in one area instead of several, which has historically
# been a problem with 99.99% of my code.
# So this function is clearly not as good as what is in the shiny app. That being
# said, I st... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/macie2_operations.R
\name{macie2_create_classification_job}
\alias{macie2_create_classification_job}
\title{Creates and defines the settings for a classification job}
\usage{
macie2_create_classification_job(
allowListIds = NULL,
clientTo... | /cran/paws.security.identity/man/macie2_create_classification_job.Rd | permissive | paws-r/paws | R | false | true | 5,551 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/macie2_operations.R
\name{macie2_create_classification_job}
\alias{macie2_create_classification_job}
\title{Creates and defines the settings for a classification job}
\usage{
macie2_create_classification_job(
allowListIds = NULL,
clientTo... |
/BA/LinearRegression/ToyotaCorolla-2.R | permissive | jeklen/notes | R | false | false | 4,172 | r | ||
x <- (1:10)*10; x
length(x)
mean(x); sum(x)
var(x); sd(x)
min(x); max(x)
quantile(x, probs = c(0.25,0.75))
summary(x)
set.seed(10)
x = rnorm(n=500,mean=0,sd=1)
plot(x)
hist(x); abline(v=0, col="red")
a=factor(c("a","b","c","b","c","a","c","c","a"))
plot(a)
hist(iris$Sepal.Length,xlab="cm")
hist(iris$Sepal.Length,breaks... | /차응용통계2주.R | no_license | LeeJaeHu/R- | R | false | false | 3,501 | r | x <- (1:10)*10; x
length(x)
mean(x); sum(x)
var(x); sd(x)
min(x); max(x)
quantile(x, probs = c(0.25,0.75))
summary(x)
set.seed(10)
x = rnorm(n=500,mean=0,sd=1)
plot(x)
hist(x); abline(v=0, col="red")
a=factor(c("a","b","c","b","c","a","c","c","a"))
plot(a)
hist(iris$Sepal.Length,xlab="cm")
hist(iris$Sepal.Length,breaks... |
#Sciencenet
#Info retrieval
#Load libraries
if (!require('XML')) install.packages('XML'); library('XML')
if (!require('rentrez')) install.packages('rentrez'); library('rentrez')
if (!require('igraph')) install.packages('igraph'); library('igraph')
startnode <- c("25651787")
num_of_levels <- 1
######Find relations ... | /get_data.R | no_license | alegarsan2/sciencenet | R | false | false | 4,016 | r |
#Sciencenet
#Info retrieval
#Load libraries
if (!require('XML')) install.packages('XML'); library('XML')
if (!require('rentrez')) install.packages('rentrez'); library('rentrez')
if (!require('igraph')) install.packages('igraph'); library('igraph')
startnode <- c("25651787")
num_of_levels <- 1
######Find relations ... |
setwd("~/R_Working_Directory")
household_power_consumption <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";")
household_power_consumption$Date <- as.Date(household_power_consumption$Date, format = "%d/%m/%Y")
concerned_data <- subset(household_power_consumption, Date == as.Date("2007-02-01") | Dat... | /plot4.R | no_license | mbanje/ExData_Plotting1 | R | false | false | 2,616 | r | setwd("~/R_Working_Directory")
household_power_consumption <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";")
household_power_consumption$Date <- as.Date(household_power_consumption$Date, format = "%d/%m/%Y")
concerned_data <- subset(household_power_consumption, Date == as.Date("2007-02-01") | Dat... |
# this file provides functions for computing q-hat for the SABHA method
# includes:
# Solve_q_step = q-hat of the form (eps,...,eps,1,...,1)
# Solve_q_ordered = q-hat of the form (q1,...,qn) with eps<=q1<=q2<=...<=qn<=1
# Solve_q_block = q-hat that is block-wise constant, and eps<=q<=1
# Solve_q_TV_1dim = q-hat that h... | /utils/All_q_est_functions.R | no_license | zhimeir/adaptive_knockoff_paper | R | false | false | 10,060 | r |
# this file provides functions for computing q-hat for the SABHA method
# includes:
# Solve_q_step = q-hat of the form (eps,...,eps,1,...,1)
# Solve_q_ordered = q-hat of the form (q1,...,qn) with eps<=q1<=q2<=...<=qn<=1
# Solve_q_block = q-hat that is block-wise constant, and eps<=q<=1
# Solve_q_TV_1dim = q-hat that h... |
install.packages("ROSE")
#balancing data:
#what to do if number of 1's is much smaller than the number of 0's
#find the indeces corresponding to 0s, and 1's
input_ones <- mydata[which(mydata$Y == 1), ] # all 1's
input_zeros <- mydata[which(mydata$Y == 0), ] # all 0's
#reduce the number of 0's by selecting a sample ... | /playgrounds/Enzo/IBM/Balancedata.r | no_license | EnzoData/EmployeeAttrition | R | false | false | 1,247 | r | install.packages("ROSE")
#balancing data:
#what to do if number of 1's is much smaller than the number of 0's
#find the indeces corresponding to 0s, and 1's
input_ones <- mydata[which(mydata$Y == 1), ] # all 1's
input_zeros <- mydata[which(mydata$Y == 0), ] # all 0's
#reduce the number of 0's by selecting a sample ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/identitytoolkit_objects.R
\name{VerifyAssertionResponse}
\alias{VerifyAssertionResponse}
\title{VerifyAssertionResponse Object}
\usage{
VerifyAssertionResponse(action = NULL, appInstallationUrl = NULL,
appScheme = NULL, context = NULL, date... | /googleidentitytoolkitv3.auto/man/VerifyAssertionResponse.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 3,631 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/identitytoolkit_objects.R
\name{VerifyAssertionResponse}
\alias{VerifyAssertionResponse}
\title{VerifyAssertionResponse Object}
\usage{
VerifyAssertionResponse(action = NULL, appInstallationUrl = NULL,
appScheme = NULL, context = NULL, date... |
## This is Programming Assignment 2
## The functions compute the inverse of a matrix with caching
## This first function will create a special matrix object that
## can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() ... | /cachematrix.R | no_license | aarienti/ProgrammingAssignment2 | R | false | false | 843 | r | ## This is Programming Assignment 2
## The functions compute the inverse of a matrix with caching
## This first function will create a special matrix object that
## can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() ... |
# Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of PPIandH2RACovid19Complication
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http... | /Covid19ComplicationPPIandH2RA/R/Diagnostics.R | permissive | ohdsi-studies/Covid19PPIandH2RA | R | false | false | 12,956 | r | # Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of PPIandH2RACovid19Complication
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http... |
#' DeleteAction
#'
#' The act of editing a recipient by removing one of its objects.
#'
#'
#' @param id identifier for the object (URI)
#' @param target (EntryPoint type.) Indicates a target EntryPoint for an Action.
#' @param startTime (DateTime or DateTime type.) The startTime of something. For a reserved event or ... | /R/DeleteAction.R | no_license | cboettig/schemar | R | false | false | 5,833 | r | #' DeleteAction
#'
#' The act of editing a recipient by removing one of its objects.
#'
#'
#' @param id identifier for the object (URI)
#' @param target (EntryPoint type.) Indicates a target EntryPoint for an Action.
#' @param startTime (DateTime or DateTime type.) The startTime of something. For a reserved event or ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wafv2_operations.R
\name{wafv2_describe_managed_rule_group}
\alias{wafv2_describe_managed_rule_group}
\title{Provides high-level information for a managed rule group, including
descriptions of the rules}
\usage{
wafv2_describe_managed_rule_gr... | /cran/paws.security.identity/man/wafv2_describe_managed_rule_group.Rd | permissive | paws-r/paws | R | false | true | 1,711 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wafv2_operations.R
\name{wafv2_describe_managed_rule_group}
\alias{wafv2_describe_managed_rule_group}
\title{Provides high-level information for a managed rule group, including
descriptions of the rules}
\usage{
wafv2_describe_managed_rule_gr... |
# setwd("/home/mje/Projects/MEG_RP_behav")
setwd("/home/mje/Projects/MEG_RP_behav/Int_binding/data")
ldf <- list() # creates a list
listcsv <- dir(pattern = "*.csv") # creates the list of all the csv files in the directory
for (k in 1:length(listcsv)){
ldf[[k]] <- read.csv(listcsv[k], header = FALSE)
}
| /preprocess_data.R | no_license | MadsJensen/MEG_RP_behav | R | false | false | 312 | r | # setwd("/home/mje/Projects/MEG_RP_behav")
setwd("/home/mje/Projects/MEG_RP_behav/Int_binding/data")
ldf <- list() # creates a list
listcsv <- dir(pattern = "*.csv") # creates the list of all the csv files in the directory
for (k in 1:length(listcsv)){
ldf[[k]] <- read.csv(listcsv[k], header = FALSE)
}
|
#' Get a listing of the Little Apps including where they are deployed
#'
#' @param pattern an (optional) regex to identify specific apps
#'
#' Returns a data frame giving the names of the Little Apps and the URL where they are deployed.
#' If `pattern` is given, return the info for just the corresponding little apps.
#... | /R/get_app_info.R | no_license | dtkaplan/LittleApp2 | R | false | false | 1,190 | r | #' Get a listing of the Little Apps including where they are deployed
#'
#' @param pattern an (optional) regex to identify specific apps
#'
#' Returns a data frame giving the names of the Little Apps and the URL where they are deployed.
#' If `pattern` is given, return the info for just the corresponding little apps.
#... |
# R libraries required - sbtools, sp, gdalUtils, RCurl, RColorBrewer, maps, mapdata
# functions are a part of package specificed (sbtools::item_get - item_get is function in sbtools library)
# Functions on line 49-50 need to have the libraries loaded (maps,mapdata) to access the databases
library(maps)
library(mapdata... | /FishData/SBMap_Fisheries.R | no_license | abock80/SB_Mapping | R | false | false | 3,000 | r | # R libraries required - sbtools, sp, gdalUtils, RCurl, RColorBrewer, maps, mapdata
# functions are a part of package specificed (sbtools::item_get - item_get is function in sbtools library)
# Functions on line 49-50 need to have the libraries loaded (maps,mapdata) to access the databases
library(maps)
library(mapdata... |
library(caret)
library(tidyverse)
library(here)
training <- as_tibble(read.csv(here("data", "bagim-train.csv")))
testing <- as_tibble(read.csv(here("data", "bagim-test.csv")))
index <- board() %>%
filter(id == 1) %>%
.$index
control <- trainControl(method = 'cv', number = 5, index = index[[1]],
... | /R/model2.R | no_license | tmastny/uno_ml_contest2 | R | false | false | 542 | r |
library(caret)
library(tidyverse)
library(here)
training <- as_tibble(read.csv(here("data", "bagim-train.csv")))
testing <- as_tibble(read.csv(here("data", "bagim-test.csv")))
index <- board() %>%
filter(id == 1) %>%
.$index
control <- trainControl(method = 'cv', number = 5, index = index[[1]],
... |
popover_2 <- function(tag,
title = "",
content,
placement = c("top", "bottom", "left", "right"),
...
) {
tag <- htmltools::tagAppendAttributes(
tag,
title = title,
`data-content` = content,
`data-html` = htmlwidget... | /modules/popover_2.R | no_license | DavidBarke/distributions | R | false | false | 650 | r | popover_2 <- function(tag,
title = "",
content,
placement = c("top", "bottom", "left", "right"),
...
) {
tag <- htmltools::tagAppendAttributes(
tag,
title = title,
`data-content` = content,
`data-html` = htmlwidget... |
context('geom_hilight')
set.seed(102)
tree <- rtree(60)
dat <- data.frame(id=c(62, 88), type=c("A", "B"))
test_that('geom_hilight support gradient color', {
p <- ggtree(tree) +
geom_hilight(
data = dat,
mapping = aes(node = id, fill = type),
gradient = TRUE,
... | /tests/testthat/test-geom_hilight.R | no_license | xiangpin/ggtree | R | false | false | 661 | r | context('geom_hilight')
set.seed(102)
tree <- rtree(60)
dat <- data.frame(id=c(62, 88), type=c("A", "B"))
test_that('geom_hilight support gradient color', {
p <- ggtree(tree) +
geom_hilight(
data = dat,
mapping = aes(node = id, fill = type),
gradient = TRUE,
... |
library(coxed)
### Name: baseline.build
### Title: Generate simulated baseline hazard, cumulative hazard, survival,
### failure PDF, and failure CDF functions
### Aliases: baseline.build
### ** Examples
baseline.functions <- baseline.build(T=100, knots=8, spline=TRUE)
| /data/genthat_extracted_code/coxed/examples/baseline.build.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 278 | r | library(coxed)
### Name: baseline.build
### Title: Generate simulated baseline hazard, cumulative hazard, survival,
### failure PDF, and failure CDF functions
### Aliases: baseline.build
### ** Examples
baseline.functions <- baseline.build(T=100, knots=8, spline=TRUE)
|
### mean ensemble modeling curves ###
##################
##### SET UP #####
##################
### FROM MASTER SCRIPT ###
# set working directory to main analysis folder
setwd(rootDir)
# list model scales
all_mod_scale = c("global_notHI", "regional_HI", "nested_HI")#c("regional", "global", "nested")
all_mod_scale=pas... | /aux_output_scripts/2d_EM_mean_resp_curves.R | no_license | lkaiser7/IS_V2 | R | false | false | 34,449 | r | ### mean ensemble modeling curves ###
##################
##### SET UP #####
##################
### FROM MASTER SCRIPT ###
# set working directory to main analysis folder
setwd(rootDir)
# list model scales
all_mod_scale = c("global_notHI", "regional_HI", "nested_HI")#c("regional", "global", "nested")
all_mod_scale=pas... |
test_that("text",{
expect_identical(vtree(FakeData,"Group Severity",horiz=FALSE,showvarnames=FALSE,text=list(Severity=c(Mild="\n*Excluding\nnew diagnoses*"))),
structure(list(x = list(diagram = "digraph vtree {\ngraph [nodesep=0.1, ranksep=0.5, tooltip=\" \"]\nnode [fontname = \"Arial\", fontcolor = black,shape ... | /tests/testthat/test-vtree.R | no_license | nemochina2008/vtree | R | false | false | 89,164 | r | test_that("text",{
expect_identical(vtree(FakeData,"Group Severity",horiz=FALSE,showvarnames=FALSE,text=list(Severity=c(Mild="\n*Excluding\nnew diagnoses*"))),
structure(list(x = list(diagram = "digraph vtree {\ngraph [nodesep=0.1, ranksep=0.5, tooltip=\" \"]\nnode [fontname = \"Arial\", fontcolor = black,shape ... |
#-------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under... | /src/test/scripts/functions/ternary/CentralMomentWeights.R | permissive | apache/systemds | R | false | false | 1,267 | r | #-------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
vypisManaPocet <- function(nazevZnak, tabulka) {
return(paste0(tabulka$Pocet[which(i... | /server.r | no_license | Karagul/Shiny-webapp-MTG-card-search-and-quick-summary-of-data | R | false | false | 8,824 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
vypisManaPocet <- function(nazevZnak, tabulka) {
return(paste0(tabulka$Pocet[which(i... |
#---------------------------------------------------------#
# x11()
par(mfrow = c(1,2))
df <- data.frame(stolpec1 = 10 * runif(10), stolpec2 = 30 * runif(10))
barplot(df$stolpec1)
lines(df$stolpec2/10) #implicitno x = 1:10
points(df$stolpec2/10)
# x11()
df.bar <- barplot(df$stolpec1)
lines(x = df.bar, y = df$stolpec2... | /revisar.R | no_license | jfloresvaliente/useful_scripts | R | false | false | 1,186 | r |
#---------------------------------------------------------#
# x11()
par(mfrow = c(1,2))
df <- data.frame(stolpec1 = 10 * runif(10), stolpec2 = 30 * runif(10))
barplot(df$stolpec1)
lines(df$stolpec2/10) #implicitno x = 1:10
points(df$stolpec2/10)
# x11()
df.bar <- barplot(df$stolpec1)
lines(x = df.bar, y = df$stolpec2... |
#functions providng various diagnostics for evaluating model assumptions and stability and
#for helping with setting an appropriate random slopes structure for (G)LMMs
#written by Roger Mundry, last modified early 2016
ranef.diagn.plot<-function(model.res, QQ=F){
old.par = par(no.readonly = TRUE)
n.plots=sum(unlist(... | /trpm8/src/diagnostic_fcns.r | no_license | AlexanderMoerseburg/eva | R | false | false | 15,226 | r | #functions providng various diagnostics for evaluating model assumptions and stability and
#for helping with setting an appropriate random slopes structure for (G)LMMs
#written by Roger Mundry, last modified early 2016
ranef.diagn.plot<-function(model.res, QQ=F){
old.par = par(no.readonly = TRUE)
n.plots=sum(unlist(... |
# Author: B.P. Ottow
# parameters
setwd("/media/boukepieter/schijfje_ottow/thesis/workspace1b")
channelLength = 500
minimumHead = 25
minimumDebiet = 0.1
minimumPotential = 100000
# files
ETdir <- "input/ET"
Pdir <- "input/P"
DEMfile <- "input/DEMs.tif"
source("model1b.R")
HydroPowerMonthly(DEMfile, Pdir, ETdir, min... | /startupscript1b.R | no_license | boukepieter/thesis | R | false | false | 3,050 | r | # Author: B.P. Ottow
# parameters
setwd("/media/boukepieter/schijfje_ottow/thesis/workspace1b")
channelLength = 500
minimumHead = 25
minimumDebiet = 0.1
minimumPotential = 100000
# files
ETdir <- "input/ET"
Pdir <- "input/P"
DEMfile <- "input/DEMs.tif"
source("model1b.R")
HydroPowerMonthly(DEMfile, Pdir, ETdir, min... |
#set working directory
setwd('C:/Documents and Settings/duda/My Documents/Coursera/ex2R')
#loading required library
library(ggplot2)
#load files
NEI <- readRDS('summarySCC_PM25.rds')
SCC <- readRDS('Source_Classification_Code.rds')
# Selecting vehicles
vehicles <- grepl("vehicle", SCC$SCC.Level.Two, ignore.case=TRUE)... | /plot6.R | no_license | henrique1837/Exploratory-Data-Analysis-Week-4 | R | false | false | 1,284 | r | #set working directory
setwd('C:/Documents and Settings/duda/My Documents/Coursera/ex2R')
#loading required library
library(ggplot2)
#load files
NEI <- readRDS('summarySCC_PM25.rds')
SCC <- readRDS('Source_Classification_Code.rds')
# Selecting vehicles
vehicles <- grepl("vehicle", SCC$SCC.Level.Two, ignore.case=TRUE)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workmailmessageflow_operations.R
\name{workmailmessageflow_get_raw_message_content}
\alias{workmailmessageflow_get_raw_message_content}
\title{Retrieves the raw content of an in-transit email message, in MIME format}
\usage{
workmailmessagefl... | /cran/paws.end.user.computing/man/workmailmessageflow_get_raw_message_content.Rd | permissive | paws-r/paws | R | false | true | 673 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workmailmessageflow_operations.R
\name{workmailmessageflow_get_raw_message_content}
\alias{workmailmessageflow_get_raw_message_content}
\title{Retrieves the raw content of an in-transit email message, in MIME format}
\usage{
workmailmessagefl... |
#学好ggplot2就够了
ls("package:graphics") #基本常见的绘图函数
demo(graphics) #图例
help("package.contents")
help(package=graphics)
example(heatmap)
#plot函数
women
plot(women)
plot(women$height,women$weight)
#绘制线性回归的结果
fit <- lm(height~weight,data = women)
fit
plot(fit)
heatmap(state.x77)
| /R语言绘图函数.R | no_license | liuiscoding/R_learn | R | false | false | 332 | r | #学好ggplot2就够了
ls("package:graphics") #基本常见的绘图函数
demo(graphics) #图例
help("package.contents")
help(package=graphics)
example(heatmap)
#plot函数
women
plot(women)
plot(women$height,women$weight)
#绘制线性回归的结果
fit <- lm(height~weight,data = women)
fit
plot(fit)
heatmap(state.x77)
|
library(tidyr)
library(dplyr) | /my-first-code.r | no_license | alvarovieira/data-science-edx | R | false | false | 29 | r | library(tidyr)
library(dplyr) |
library(data.table)
library(caret)
library(dimRed)
library(pcalg)
#library(varimpact)
#Copula Estimate
## For details about the arguements and outputs, refer to function 'sbgcop.mcmc' in R package 'sbgcop',
## https://cran.r-project.org/web/packages/sbgcop/index.html.
copula.estimate <- function (Y, n0 = di... | /CS594_PC_algorithm.R | no_license | mohamedbadhrudeen/modechoice_causalmodel | R | false | false | 6,551 | r | library(data.table)
library(caret)
library(dimRed)
library(pcalg)
#library(varimpact)
#Copula Estimate
## For details about the arguements and outputs, refer to function 'sbgcop.mcmc' in R package 'sbgcop',
## https://cran.r-project.org/web/packages/sbgcop/index.html.
copula.estimate <- function (Y, n0 = di... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse.R
\name{verify_str_txt}
\alias{verify_str_txt}
\title{Verify the text of strings}
\usage{
verify_str_txt(pd_with_terminal_text, text)
}
\arguments{
\item{pd_with_terminal_text}{A parse table.}
\item{text}{The text from which \code{pd_w... | /man/verify_str_txt.Rd | no_license | guhjy/styler | R | false | true | 678 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse.R
\name{verify_str_txt}
\alias{verify_str_txt}
\title{Verify the text of strings}
\usage{
verify_str_txt(pd_with_terminal_text, text)
}
\arguments{
\item{pd_with_terminal_text}{A parse table.}
\item{text}{The text from which \code{pd_w... |
library(glmnet)
mydata = read.table("./TrainingSet/Correlation/kidney.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.01,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/kidney/kidney_006.txt',a... | /Model/EN/Correlation/kidney/kidney_006.R | no_license | leon1003/QSMART | R | false | false | 361 | r | library(glmnet)
mydata = read.table("./TrainingSet/Correlation/kidney.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.01,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/kidney/kidney_006.txt',a... |
BINSEG = function(sumstat, pen = 0, cost_func = "mean.norm", shape = 1, minseglen = 2, Q=5){
n = length(sumstat[,1]) - 1
m = length(sumstat[1,])
tol = 0
if(cost_func == "mean.norm" || cost_func == "var.norm" || cost_func == "meanvar.norm" || cost_func == "meanvar.exp" || cost_func == "meanvar.gamma" || cost_f... | /R/BinSeg_one_func_minseglen.R | no_license | diego-urgell/changepointNegbin | R | false | false | 1,870 | r | BINSEG = function(sumstat, pen = 0, cost_func = "mean.norm", shape = 1, minseglen = 2, Q=5){
n = length(sumstat[,1]) - 1
m = length(sumstat[1,])
tol = 0
if(cost_func == "mean.norm" || cost_func == "var.norm" || cost_func == "meanvar.norm" || cost_func == "meanvar.exp" || cost_func == "meanvar.gamma" || cost_f... |
tabItem(tabName = "findMarkersTab",
fluidRow(
column(12,
h3(strong("Finding differentially expressed genes (cluster biomarkers)")),
hr(),
column(12,
shiny::tags$div(class = "BoxArea2",
... | /wizard/ui-tab-findMarkers.R | no_license | goodhen2/single_cell_visual_analytics | R | false | false | 9,119 | r | tabItem(tabName = "findMarkersTab",
fluidRow(
column(12,
h3(strong("Finding differentially expressed genes (cluster biomarkers)")),
hr(),
column(12,
shiny::tags$div(class = "BoxArea2",
... |
sampler = function(stan_model, M_obs, R_obs, tau_M, tau_R, K,
pars = NA, inits = "random", iter = 50000, warmup = 20000, chains = 1)
{
N = length(R_obs)
N_obs = length(M_obs)
#quantiles of the observed log(R)
log_R_obs = log(R_obs)
prob_list = seq(1,K)/(K+1)
q_log_R_obs = quantile(log_R_... | /WRF16/funcs.R | no_license | Marchphy/PME_Based_MR_Relation | R | false | false | 5,603 | r | sampler = function(stan_model, M_obs, R_obs, tau_M, tau_R, K,
pars = NA, inits = "random", iter = 50000, warmup = 20000, chains = 1)
{
N = length(R_obs)
N_obs = length(M_obs)
#quantiles of the observed log(R)
log_R_obs = log(R_obs)
prob_list = seq(1,K)/(K+1)
q_log_R_obs = quantile(log_R_... |
library(tidyverse)
library(patchwork)
library(viridis)
## create the four use cases (plots)
# read dataset
area_biotopes <- read_csv("./data/20220929/20220929_area_biotopes.txt", na = "")
# usecase1 and usecase2 (colors = categorical/qualitative variable)
# Select species Pararge aegeria (Speckled wood)
area_bioto... | /src/20220929/20220929_challenges.R | permissive | inbo/coding-club | R | false | false | 5,241 | r | library(tidyverse)
library(patchwork)
library(viridis)
## create the four use cases (plots)
# read dataset
area_biotopes <- read_csv("./data/20220929/20220929_area_biotopes.txt", na = "")
# usecase1 and usecase2 (colors = categorical/qualitative variable)
# Select species Pararge aegeria (Speckled wood)
area_bioto... |
#
# Developing Data Products
# Weeks 4 submission
# A look at some popular equations
# Server side script
# There are many improvements that could be made but for the purposes
# of the exercise rubric I thought this enough.
#
library(shiny)
# Define server logic required to draw a histogram
shinyServer(fu... | /server.R | no_license | nozzo1/week4 | R | false | false | 1,015 | r | #
# Developing Data Products
# Weeks 4 submission
# A look at some popular equations
# Server side script
# There are many improvements that could be made but for the purposes
# of the exercise rubric I thought this enough.
#
library(shiny)
# Define server logic required to draw a histogram
shinyServer(fu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.gg_roc.R
\name{plot.gg_roc}
\alias{plot.gg_roc}
\title{ROC plot generic function for a \code{\link{gg_roc}} object.}
\usage{
\method{plot}{gg_roc}(x, which.outcome = NULL, ...)
}
\arguments{
\item{x}{\code{\link{gg_roc}} object created f... | /Methodology/Survival Model Research/ggRandomForests/ggRandomForests-master/man/plot.gg_roc.Rd | no_license | ryerex/Research_and_Methods | R | false | true | 1,649 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.gg_roc.R
\name{plot.gg_roc}
\alias{plot.gg_roc}
\title{ROC plot generic function for a \code{\link{gg_roc}} object.}
\usage{
\method{plot}{gg_roc}(x, which.outcome = NULL, ...)
}
\arguments{
\item{x}{\code{\link{gg_roc}} object created f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trend.R
\name{dDtrend}
\alias{dDtrend}
\title{Probability mass function of nonparametric trend statistic \eqn{D}}
\usage{
dDtrend(k = "all", n, override = FALSE)
}
\arguments{
\item{k}{An integer of \code{length} \eqn{\ge 1}
or a character \c... | /man/dDtrend.Rd | no_license | tjfarrar/skedastic | R | false | true | 2,402 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trend.R
\name{dDtrend}
\alias{dDtrend}
\title{Probability mass function of nonparametric trend statistic \eqn{D}}
\usage{
dDtrend(k = "all", n, override = FALSE)
}
\arguments{
\item{k}{An integer of \code{length} \eqn{\ge 1}
or a character \c... |
##predator can be partial or complete
predator_prey <- function(inits,theta,rs,SSp,nstep,partial=T){
predator <- inits[1]
prey <- inits[2]
for(t in 1:nstep){
##predator has to be complete redistribution
dpredator <- rs[1]*predator[t]*(1-theta*(rs[1]+1)/rs[1]*predator[t]/prey[t])/(1+(rs[1]+1)*theta*predator[t]/pr... | /predator-prey.R | no_license | JadeYu/Unconstrained_MERA | R | false | false | 1,004 | r | ##predator can be partial or complete
predator_prey <- function(inits,theta,rs,SSp,nstep,partial=T){
predator <- inits[1]
prey <- inits[2]
for(t in 1:nstep){
##predator has to be complete redistribution
dpredator <- rs[1]*predator[t]*(1-theta*(rs[1]+1)/rs[1]*predator[t]/prey[t])/(1+(rs[1]+1)*theta*predator[t]/pr... |
library(rvest)
library(lubridate)
library(xlsx)
library(XML)
library(dplyr)
dir.create(file.path("podatki"), showWarnings = FALSE)
start<-Sys.time()
url<-"http://www.competo.si/za-kandidate/prosta-delovna-mesta/"
t<-read_html(url)%>%html_nodes(".delovno_mesto")
stran<-"competo.si"
podjetje<-"Competo"
naziv<-t%>%ht... | /Competo.R | no_license | urosgodnov/zaposlitev | R | false | false | 867 | r | library(rvest)
library(lubridate)
library(xlsx)
library(XML)
library(dplyr)
dir.create(file.path("podatki"), showWarnings = FALSE)
start<-Sys.time()
url<-"http://www.competo.si/za-kandidate/prosta-delovna-mesta/"
t<-read_html(url)%>%html_nodes(".delovno_mesto")
stran<-"competo.si"
podjetje<-"Competo"
naziv<-t%>%ht... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interp.R
\name{interp1}
\alias{interp1}
\title{1-D data interpolation.}
\usage{
interp1(x, y, xi, method)
}
\arguments{
\item{x}{A vector with n elements, \code{x[i]} is a support, \code{i = 1, ..., n}.
If \code{x} is not sorted, it will be s... | /man/interp1.Rd | permissive | alexchang2017/rfda | R | false | true | 2,435 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interp.R
\name{interp1}
\alias{interp1}
\title{1-D data interpolation.}
\usage{
interp1(x, y, xi, method)
}
\arguments{
\item{x}{A vector with n elements, \code{x[i]} is a support, \code{i = 1, ..., n}.
If \code{x} is not sorted, it will be s... |
library(OpenMx)
library(mvtnorm)
Cov <- rWishart(4, 20, toeplitz(c(2,1)/20))
write.table(t(apply(Cov, 3, vech)),
file="cov.csv", col.names=FALSE, row.names=FALSE)
Mean <- rmvnorm(4, sigma = diag(2))
write.table(Mean, file="mean.csv", col.names=FALSE, row.names=FALSE)
m1 <- mxModel(
"test1",
mxMatrix("... | /inst/models/passing/loadMatrix.R | no_license | lnsongxf/OpenMx | R | false | false | 1,886 | r | library(OpenMx)
library(mvtnorm)
Cov <- rWishart(4, 20, toeplitz(c(2,1)/20))
write.table(t(apply(Cov, 3, vech)),
file="cov.csv", col.names=FALSE, row.names=FALSE)
Mean <- rmvnorm(4, sigma = diag(2))
write.table(Mean, file="mean.csv", col.names=FALSE, row.names=FALSE)
m1 <- mxModel(
"test1",
mxMatrix("... |
library(glpkAPI)
### Name: glpkAPI-package
### Title: R Interface to C API of GLPK
### Aliases: glpkAPI-package glpkAPI
### Keywords: package optimize
### ** Examples
# load package
library(glpkAPI)
# preparing the model
lp <- initProbGLPK()
# model data
nrows <- 5
ncols <- 8
# constraint matrix
ne <- 14
ia <-... | /data/genthat_extracted_code/glpkAPI/examples/glpkAPI-package.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,260 | r | library(glpkAPI)
### Name: glpkAPI-package
### Title: R Interface to C API of GLPK
### Aliases: glpkAPI-package glpkAPI
### Keywords: package optimize
### ** Examples
# load package
library(glpkAPI)
# preparing the model
lp <- initProbGLPK()
# model data
nrows <- 5
ncols <- 8
# constraint matrix
ne <- 14
ia <-... |
data("biopsy")
dim(biopsy)
head(biopsy)
SF<-subset(biopsy, select=-c(ID))
head(SF)
SF1<-na.omit(SF)
head(SF1)
SF2<-randomForest(class ~., data=SF1, importance=T)
print(SF2)
SF5<-varImpPlot(SF2, pch=16, col="red", n.var=, sort=T, main="Importance of variable for the Cancer data")
SF5
SF3<-randomForest(class~V1+V2+V3+V5+... | /HW#5/HW#5.R | no_license | faizanusa/Introduction-to-DS-Course | R | false | false | 476 | r | data("biopsy")
dim(biopsy)
head(biopsy)
SF<-subset(biopsy, select=-c(ID))
head(SF)
SF1<-na.omit(SF)
head(SF1)
SF2<-randomForest(class ~., data=SF1, importance=T)
print(SF2)
SF5<-varImpPlot(SF2, pch=16, col="red", n.var=, sort=T, main="Importance of variable for the Cancer data")
SF5
SF3<-randomForest(class~V1+V2+V3+V5+... |
#assemble.R -- assemble overlapping fragments of strings
input <- readLines("C:/Users/perez/Documents/Mist Documentos/Programming/R/BIOSTATS/lines.txt", warn = FALSE)
fragments <- input
# input of fragments
#fragments <- unlist(strsplit(input, split = "\n")) # split input into lines
#fragments <- trimws(fragments,... | /assemble.R | no_license | mistirrin/Biostats | R | false | false | 3,510 | r | #assemble.R -- assemble overlapping fragments of strings
input <- readLines("C:/Users/perez/Documents/Mist Documentos/Programming/R/BIOSTATS/lines.txt", warn = FALSE)
fragments <- input
# input of fragments
#fragments <- unlist(strsplit(input, split = "\n")) # split input into lines
#fragments <- trimws(fragments,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate_features.R
\name{generate_features}
\alias{generate_features}
\title{generate_features}
\usage{
generate_features(df, sched = nfl_query("select * from nflschedule"),
season = 2015, pos, def_start, num_start, byes)
}
\arguments{
\it... | /man/generate_features.Rd | no_license | kimjam/dfstoolkit | R | false | true | 829 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate_features.R
\name{generate_features}
\alias{generate_features}
\title{generate_features}
\usage{
generate_features(df, sched = nfl_query("select * from nflschedule"),
season = 2015, pos, def_start, num_start, byes)
}
\arguments{
\it... |
#' Fit a von Bertalanffy growth model
#'
#' For use with data for a single species.
#'
#' @param dat Input data frame. Should be from [gfdata::get_survey_samples()] or
#' [gfdata::get_commercial_samples()].
#' @param sex Either "male" or "female".
#' @param method `"mpd"` for the mode of the posterior distribution (w... | /R/growth.R | no_license | pbs-assess/gfplot | R | false | false | 20,080 | r | #' Fit a von Bertalanffy growth model
#'
#' For use with data for a single species.
#'
#' @param dat Input data frame. Should be from [gfdata::get_survey_samples()] or
#' [gfdata::get_commercial_samples()].
#' @param sex Either "male" or "female".
#' @param method `"mpd"` for the mode of the posterior distribution (w... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfMarkStyle.R
\docType{data}
\name{dfMarkStyle}
\alias{dfMarkStyle}
\alias{dfMarkColor}
\alias{humMarkColor}
\alias{mydfMaColor}
\alias{dfMarkColor5S25S}
\alias{dfMarkColorIn}
\title{Mark characteristics}
\format{
dfMarkColor a data.frame wit... | /man/dfMarkStyle.Rd | no_license | cran/idiogramFISH | R | false | true | 1,635 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfMarkStyle.R
\docType{data}
\name{dfMarkStyle}
\alias{dfMarkStyle}
\alias{dfMarkColor}
\alias{humMarkColor}
\alias{mydfMaColor}
\alias{dfMarkColor5S25S}
\alias{dfMarkColorIn}
\title{Mark characteristics}
\format{
dfMarkColor a data.frame wit... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31640624780149e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist)
str(result) | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615834306-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 270 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31640624780149e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/false_ring_proportion.R
\name{novak_weibull}
\alias{novak_weibull}
\title{novak_weibull}
\usage{
novak_weibull(
novak_freq_object,
min.n = 15,
start = NULL,
max.iter = 500,
make.plot = TRUE,
...
)
}
\arguments{
\item{novak_freq_ob... | /man/novak_weibull.Rd | no_license | cran/iadf | R | false | true | 1,352 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/false_ring_proportion.R
\name{novak_weibull}
\alias{novak_weibull}
\title{novak_weibull}
\usage{
novak_weibull(
novak_freq_object,
min.n = 15,
start = NULL,
max.iter = 500,
make.plot = TRUE,
...
)
}
\arguments{
\item{novak_freq_ob... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/argo.R
\docType{methods}
\name{handleFlags,argo-method}
\alias{handleFlags,argo-method}
\title{Handle Flags in ARGO Objects}
\usage{
\S4method{handleFlags}{argo}(object, flags = list(), actions = list(),
debug = integer())
}
\arguments{
\it... | /man/handleFlags-argo-method.Rd | no_license | yuanjisun/oce | R | false | true | 4,774 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/argo.R
\docType{methods}
\name{handleFlags,argo-method}
\alias{handleFlags,argo-method}
\title{Handle Flags in ARGO Objects}
\usage{
\S4method{handleFlags}{argo}(object, flags = list(), actions = list(),
debug = integer())
}
\arguments{
\it... |
train_adaboosting <- function(trainall){
begin=Sys.time()
adaall <- boosting(train_yall~.,data=trainall,boos=T,mfinal=30,coeflearn="Zhu")
end=Sys.time()
boosttime = end-begin
return(list(fit=adaall,time=boosttime))
}
train_xall <- read.csv("Feature_v3_TrainData.csv")
train_yall <- read.csv("Feature_v3_Train... | /lib/AdaBoost/adaboostingfunction.R | no_license | danielgoncalvesti/Image-Classification | R | false | false | 1,055 | r | train_adaboosting <- function(trainall){
begin=Sys.time()
adaall <- boosting(train_yall~.,data=trainall,boos=T,mfinal=30,coeflearn="Zhu")
end=Sys.time()
boosttime = end-begin
return(list(fit=adaall,time=boosttime))
}
train_xall <- read.csv("Feature_v3_TrainData.csv")
train_yall <- read.csv("Feature_v3_Train... |
library(vcd)
##Problem 1 (11.12) Agresti
count = c(24, 8,13,8,13,11, 10,9,64)
ebert = c(1,2,3,1,2,3,1,2,3)
siskel = c(1,1,1,2,2,2,3,3,3)
movies = data.frame(count=count, ebert=ebert, siskel=siskel)
movies$sym = factor(paste(pmin(movies$ebert,movies$siskel),pmax(movies$ebert,movies$siskel),
sep=",... | /HW5/hw5.R | no_license | dipeshgautam/STA841-CategoricalData | R | false | false | 3,583 | r | library(vcd)
##Problem 1 (11.12) Agresti
count = c(24, 8,13,8,13,11, 10,9,64)
ebert = c(1,2,3,1,2,3,1,2,3)
siskel = c(1,1,1,2,2,2,3,3,3)
movies = data.frame(count=count, ebert=ebert, siskel=siskel)
movies$sym = factor(paste(pmin(movies$ebert,movies$siskel),pmax(movies$ebert,movies$siskel),
sep=",... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{read_twn}
\alias{read_twn}
\alias{get_worms}
\alias{validate_twn}
\title{Read and Validate Taxa Waterbeheer Nederland (TWN) Data}
\usage{
read_twn(filename)
get_worms()
validate_twn(.data)
}
\arguments{
\item{filename}{name of TW... | /man/read_twn.Rd | no_license | aurelienboye/benthos | R | false | true | 1,182 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{read_twn}
\alias{read_twn}
\alias{get_worms}
\alias{validate_twn}
\title{Read and Validate Taxa Waterbeheer Nederland (TWN) Data}
\usage{
read_twn(filename)
get_worms()
validate_twn(.data)
}
\arguments{
\item{filename}{name of TW... |
library(survAccuracyMeasures)
### Name: SimData
### Title: Simulated data for package 'SurvAccuracyMeasures'
### Aliases: SimData
### Keywords: datasets
### ** Examples
data(SimData)
head(SimData)
| /data/genthat_extracted_code/survAccuracyMeasures/examples/SimData.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 207 | r | library(survAccuracyMeasures)
### Name: SimData
### Title: Simulated data for package 'SurvAccuracyMeasures'
### Aliases: SimData
### Keywords: datasets
### ** Examples
data(SimData)
head(SimData)
|
#### summary ####
Linear mixed model fit by REML ['lmerMod']
Formula: FinalInvestment ~ Drug * Trust * Probability * Order * RunNo + (Drug + Trust + Probability | Subject)
Data: data
REML criterion at convergence: 16534.4
Scaled residuals:
Min 1Q Median 3Q Max
-3.2173 -0.6979 -0.0956 0.6378... | /ritalin_for_simmulations.R | no_license | pvavra/mixedmodels | R | false | false | 7,040 | r |
#### summary ####
Linear mixed model fit by REML ['lmerMod']
Formula: FinalInvestment ~ Drug * Trust * Probability * Order * RunNo + (Drug + Trust + Probability | Subject)
Data: data
REML criterion at convergence: 16534.4
Scaled residuals:
Min 1Q Median 3Q Max
-3.2173 -0.6979 -0.0956 0.6378... |
munge_data_for_stan <- function(type = "all", plot = FALSE, lm = FALSE) {
# format incident data
data <- la_neighborhood_incident_count %>%
bind_rows(philly_neighborhood_incident_count) %>%
bind_rows(pitt_neighborhood_incident_count) %>%
bind_rows(sf_neighborhood_incident_count) %>%
filter(type ... | /munge_data_for_stan.R | no_license | mattle24/effect_of_gentrification_on_crime | R | false | false | 2,205 | r | munge_data_for_stan <- function(type = "all", plot = FALSE, lm = FALSE) {
# format incident data
data <- la_neighborhood_incident_count %>%
bind_rows(philly_neighborhood_incident_count) %>%
bind_rows(pitt_neighborhood_incident_count) %>%
bind_rows(sf_neighborhood_incident_count) %>%
filter(type ... |
library(tidyverse)
datos <- read.csv("~/Documents/GitHub/AnalisisTextual/mensajes/duracion_mensajes.txt",
header = T, sep = "\t", stringsAsFactors = F)
xmas1975 <- readLines("1975.txt")
xmas1976 <- readLines("1976.txt")
xmas1977 <- readLines("1977.txt")
xmas1978 <- readLines("1978.txt")
xmas1979 <- ... | /scripts/mensajes.R | no_license | 7PartidasDigital/AnalisisTextual | R | false | false | 3,363 | r | library(tidyverse)
datos <- read.csv("~/Documents/GitHub/AnalisisTextual/mensajes/duracion_mensajes.txt",
header = T, sep = "\t", stringsAsFactors = F)
xmas1975 <- readLines("1975.txt")
xmas1976 <- readLines("1976.txt")
xmas1977 <- readLines("1977.txt")
xmas1978 <- readLines("1978.txt")
xmas1979 <- ... |
library(ape)
testtree <- read.tree("13665_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="13665_0_unrooted.txt") | /codeml_files/newick_trees_processed/13665_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("13665_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="13665_0_unrooted.txt") |
#import the X_test data set
X_test <- read.table("~/Desktop/Coursera/Getting and Cleaning data/week4/UCI HAR Dataset/test/X_test.txt",
quote="\"", comment.char="")
#import subject_test, Each row identifies the subject
#who performed the activity for each window sample. Its range is from 1 to 30. ... | /run_analysis.R | no_license | j-p-courneya/assignment_week4 | R | false | false | 3,436 | r | #import the X_test data set
X_test <- read.table("~/Desktop/Coursera/Getting and Cleaning data/week4/UCI HAR Dataset/test/X_test.txt",
quote="\"", comment.char="")
#import subject_test, Each row identifies the subject
#who performed the activity for each window sample. Its range is from 1 to 30. ... |
# Hayley Laubinger
# Part 5: Data frames
### Section 5.1: Data Frames
### section 5.2: Viewing data frames
#Use data() to load the iris data frame
data("iris")
# Enter iris to display the full data frame
iris
#display the first 10 rows of the data frame
head(iris, n=10)
#display the last rows of the data frame
tail... | /Hw02/hw02-5.R | no_license | mtaylor-semo/laubinger_hayley | R | false | false | 2,174 | r | # Hayley Laubinger
# Part 5: Data frames
### Section 5.1: Data Frames
### section 5.2: Viewing data frames
#Use data() to load the iris data frame
data("iris")
# Enter iris to display the full data frame
iris
#display the first 10 rows of the data frame
head(iris, n=10)
#display the last rows of the data frame
tail... |
#PAGE=87
x=c(2,3,3,5,5,5,8,10,12)
a=max(x)
b=min(x)
c=a-b
c
| /Schaum'S_Outline_Series_-_Theory_And_Problems_Of_Statistics_by_Murray_R._Spiegel/CH4/EX4.1/Ex4_1.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 66 | r | #PAGE=87
x=c(2,3,3,5,5,5,8,10,12)
a=max(x)
b=min(x)
c=a-b
c
|
#Download files
library(data.table)
fileurl='https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip'
if (!file.exists('./UCI HAR Dataset.zip')){
download.file(fileurl,'./UCI HAR Dataset.zip', mode = 'wb')
unzip("UCI HAR Dataset.zip", exdir = getwd())
}
#Read fi... | /run_analysis.R | no_license | jsrubianoj/GettingAndCleaningData | R | false | false | 2,389 | r | #Download files
library(data.table)
fileurl='https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip'
if (!file.exists('./UCI HAR Dataset.zip')){
download.file(fileurl,'./UCI HAR Dataset.zip', mode = 'wb')
unzip("UCI HAR Dataset.zip", exdir = getwd())
}
#Read fi... |
# Test whether the contents of a config file can be read and parsed correctly
library(jsonlite)
config.path <- (function () find_config_files(dirs = c('config_etc')))()
config.content <- fromJSON(config.path)
test_that('Config file contents (JSON) can be parsed', {
expect_equal(srcr:::.read_json_config(config.pat... | /tests/testthat/test_read_config.R | permissive | baileych/srcr | R | false | false | 600 | r | # Test whether the contents of a config file can be read and parsed correctly
library(jsonlite)
config.path <- (function () find_config_files(dirs = c('config_etc')))()
config.content <- fromJSON(config.path)
test_that('Config file contents (JSON) can be parsed', {
expect_equal(srcr:::.read_json_config(config.pat... |
#' module_gcam.korea_L201.socioeconomics
#'
#' Interest rate, population, and GDP for gcam-korea.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on command
#' @return Depends on \code{command}: either a vector of required inputs,
#' a vector of output names, or (if \code{... | /R/zchunk_L201.socioeconomics_korea.R | permissive | rohmin9122/gcam-korea-release | R | false | false | 8,096 | r | #' module_gcam.korea_L201.socioeconomics
#'
#' Interest rate, population, and GDP for gcam-korea.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on command
#' @return Depends on \code{command}: either a vector of required inputs,
#' a vector of output names, or (if \code{... |
#' count
#'
#' Get the number of documents for the cluster, index, type, or a query.
#'
#' \code{count} counts items that match a query.
#'
#' @param index String, String[] A vector of indices to restrict the results
#' @param type String, String[] A vector of types to restrict the results
#' @param body String The qu... | /R/count.R | no_license | brolin/elasticsearch | R | false | false | 2,289 | r | #' count
#'
#' Get the number of documents for the cluster, index, type, or a query.
#'
#' \code{count} counts items that match a query.
#'
#' @param index String, String[] A vector of indices to restrict the results
#' @param type String, String[] A vector of types to restrict the results
#' @param body String The qu... |
library(dplyr)
#reading the data
data <- read.csv("household_power_consumption.txt", sep = ";")
#convert to Date and Time class
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
data$Time <- strptime(data$Time, format = "%H:%M:%S")
data$Time <- format(data$Time, format = "%H:%M:%S")
#remove ? to avoid NA and conv... | /plot2.R | no_license | asandmeyer/ExData_Plotting1 | R | false | false | 1,059 | r | library(dplyr)
#reading the data
data <- read.csv("household_power_consumption.txt", sep = ";")
#convert to Date and Time class
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
data$Time <- strptime(data$Time, format = "%H:%M:%S")
data$Time <- format(data$Time, format = "%H:%M:%S")
#remove ? to avoid NA and conv... |
#### INSTALANDO SLIDIFY:
# Allan Vieira C. Quadros
#rm(list=ls())
install.packages("devtools")
library(devtools)
install_github('ramnathv/slidify', force = TRUE)
install_github('ramnathv/slidifyLibraries')
install_github('slidifyLibraries', 'ramnathv')
install_github('rCharts', 'ramnathv')
library(slidify)
libra... | /LIMPO-install_e_criacao_deck_slidify(4).R | no_license | allanvc/talk_DS_FNDE | R | false | false | 4,404 | r | #### INSTALANDO SLIDIFY:
# Allan Vieira C. Quadros
#rm(list=ls())
install.packages("devtools")
library(devtools)
install_github('ramnathv/slidify', force = TRUE)
install_github('ramnathv/slidifyLibraries')
install_github('slidifyLibraries', 'ramnathv')
install_github('rCharts', 'ramnathv')
library(slidify)
libra... |
\name{predRes}
\alias{predRes}
\alias{plot.predRes}
\title{Evaluation of the prediction accuracy of a prediction model}
\description{
This function computes several criteria to assess the prediction
accuracy of a prediction model.
}
\usage{
predRes(res, method, traindata, newdata, int.cv, int.cv.nfold = 5,... | /man/predRes.Rd | no_license | eroblin/biospear | R | false | false | 6,595 | rd | \name{predRes}
\alias{predRes}
\alias{plot.predRes}
\title{Evaluation of the prediction accuracy of a prediction model}
\description{
This function computes several criteria to assess the prediction
accuracy of a prediction model.
}
\usage{
predRes(res, method, traindata, newdata, int.cv, int.cv.nfold = 5,... |
#############################################################################
#
# XLConnect
# Copyright (C) 2010-2013 Mirai Solutions GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation... | /XLConnect/R/workbook.mergeCells.R | no_license | ingted/R-Examples | R | false | false | 1,636 | r | #############################################################################
#
# XLConnect
# Copyright (C) 2010-2013 Mirai Solutions GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation... |
df<-read.table("household_power_consumption.txt",header=T, sep=";")
df$Date<-as.Date(df$Date,"%d/%m/%Y")
sdf<-subset(df, Date=='2007-02-01')
sdf2<-subset(df, Date=='2007-02-02')
sdf3<-rbind(sdf,sdf2)
h1<-sdf3$Sub_metering_1
h1<-gsub("?","",h1)
h1<-as.numeric(h1)
h2<-sdf3$Sub_metering_2
h2<-gsub("?","",h2)
h2<-as.numeri... | /Graphs1/plot3.R | no_license | ilya-usoltsev/datasciencecoursera | R | false | false | 762 | r | df<-read.table("household_power_consumption.txt",header=T, sep=";")
df$Date<-as.Date(df$Date,"%d/%m/%Y")
sdf<-subset(df, Date=='2007-02-01')
sdf2<-subset(df, Date=='2007-02-02')
sdf3<-rbind(sdf,sdf2)
h1<-sdf3$Sub_metering_1
h1<-gsub("?","",h1)
h1<-as.numeric(h1)
h2<-sdf3$Sub_metering_2
h2<-gsub("?","",h2)
h2<-as.numeri... |
# Vectors -----------------------------------------------------------------
#Create a data set
#Vectors
X = c(1,2,3,4,5,6)
y<-c(1,2,3,4,5,6,7)
# numeric vector
a <- c(1,2,5.3,6,-2,4)
# character vector
b <- c("one","two","three")
#logical vector
c <- c(TRUE,TRUE,TRUE,FALSE,TRUE,FALSE)
#A data frame is a list of e... | /AScriptsforR.R | no_license | tedscott/R-stuff | R | false | false | 661 | r |
# Vectors -----------------------------------------------------------------
#Create a data set
#Vectors
X = c(1,2,3,4,5,6)
y<-c(1,2,3,4,5,6,7)
# numeric vector
a <- c(1,2,5.3,6,-2,4)
# character vector
b <- c("one","two","three")
#logical vector
c <- c(TRUE,TRUE,TRUE,FALSE,TRUE,FALSE)
#A data frame is a list of e... |
if (!require(tidyverse)) install.packages("tidyverse")
if (!require(data.table)) install.packages("data.table")
if (!require(ggfortify)) devtools::install_github("sinhrks/ggfortify")
if (!require(ggmap)) devtools::install_github("dkahle/ggmap")
library(tidyverse)
library(data.table)
library(ggfortify)
library(ggmap)
... | /assign6.R | no_license | joybells7/dabrp_classnote2 | R | false | false | 5,150 | r | if (!require(tidyverse)) install.packages("tidyverse")
if (!require(data.table)) install.packages("data.table")
if (!require(ggfortify)) devtools::install_github("sinhrks/ggfortify")
if (!require(ggmap)) devtools::install_github("dkahle/ggmap")
library(tidyverse)
library(data.table)
library(ggfortify)
library(ggmap)
... |
% TODO File path/AT.Landau.IDF.Rd
\name{AT.Landau.IDF}
\alias{AT.Landau.IDF}
\title{AT.Landau.IDF}
\description{Computes the Landau inverse distribution function using CERNLIB
(G115)
}
\usage{AT.Landau.IDF(rnd)
}
\arguments{
\item{rnd}{ random number from uniform distribution between 0 and 1 (array
of size n).}
}
\... | /man/AT.Landau.IDF.Rd | no_license | zoulianmp/libamtrack | R | false | false | 629 | rd | % TODO File path/AT.Landau.IDF.Rd
\name{AT.Landau.IDF}
\alias{AT.Landau.IDF}
\title{AT.Landau.IDF}
\description{Computes the Landau inverse distribution function using CERNLIB
(G115)
}
\usage{AT.Landau.IDF(rnd)
}
\arguments{
\item{rnd}{ random number from uniform distribution between 0 and 1 (array
of size n).}
}
\... |
#' smsbar
#'
#' @name smsbar
#' @docType package
NULL
##' .. content for \description{} (no empty lines) ..
##'
##' .. content for \details{} ..
##' @title Read an SMS Backup & Restore XML file
##' @param file path name to XML file created by SMS Backup & Restore
##' @return data.frame of SMS text messages, with one ... | /R/smsbar-package.R | no_license | erikriverson/smsbar | R | false | false | 2,126 | r | #' smsbar
#'
#' @name smsbar
#' @docType package
NULL
##' .. content for \description{} (no empty lines) ..
##'
##' .. content for \details{} ..
##' @title Read an SMS Backup & Restore XML file
##' @param file path name to XML file created by SMS Backup & Restore
##' @return data.frame of SMS text messages, with one ... |
chum <- final.fish[ which(final.fish$Species=='Chum'), ]
myvars <- c("ID_code", "Length_TSFT_mm", "Chum_total", "total", "Injury","Sex", "Ocean_age", "Set_time")
chum <- chum[myvars]
# make sure data makes sense
chum <- chum[ which(chum$Chum_total > 0), ]
dim(chum)
# create unique id and add it to data (enter... | /predator/species group size/predator_injury_chum_final.R | permissive | annepolyakov/PacificSalmonProject | R | false | false | 3,362 | r | chum <- final.fish[ which(final.fish$Species=='Chum'), ]
myvars <- c("ID_code", "Length_TSFT_mm", "Chum_total", "total", "Injury","Sex", "Ocean_age", "Set_time")
chum <- chum[myvars]
# make sure data makes sense
chum <- chum[ which(chum$Chum_total > 0), ]
dim(chum)
# create unique id and add it to data (enter... |
\name{integratelogistic.analytic}
\alias{integratelogistic.analytic}
\title{Analytically integrate logistic detection function}
\usage{
integratelogistic.analytic(x, models, beta, width)
}
\arguments{
\item{x}{matrix of data}
\item{models}{list of model formulae}
\item{beta}{parameters of logistic detection fun... | /mrds/man/integratelogistic.analytic.Rd | no_license | jlaake/mrds | R | false | false | 557 | rd | \name{integratelogistic.analytic}
\alias{integratelogistic.analytic}
\title{Analytically integrate logistic detection function}
\usage{
integratelogistic.analytic(x, models, beta, width)
}
\arguments{
\item{x}{matrix of data}
\item{models}{list of model formulae}
\item{beta}{parameters of logistic detection fun... |
t1 <- Sys.time()
source('~/git/kickbase/config.R')
source('~/git/kickbase/get_kickbase_data.R')
source('~/git/kickbase/bigquery.R')
source('~/git/kickbase/email_report.R')
# collect data from Kickbase API
c <- set_kickbase_connection(kickbase_user_agent)
u <- kickbase_login(kickbase_user, kickbase_password)
teams <- ... | /kickbase_to_bigquery.R | no_license | valentinumbach/kickbase | R | false | false | 1,521 | r | t1 <- Sys.time()
source('~/git/kickbase/config.R')
source('~/git/kickbase/get_kickbase_data.R')
source('~/git/kickbase/bigquery.R')
source('~/git/kickbase/email_report.R')
# collect data from Kickbase API
c <- set_kickbase_connection(kickbase_user_agent)
u <- kickbase_login(kickbase_user, kickbase_password)
teams <- ... |
library(shiny)
library(shinydashboard)
library(plotly)
library(deSolve)
dashboard_ui <- dashboardPage(
dashboardHeader(title = "Plotting ODEs with R"),
dashboardSidebar(
sliderInput("sigma", "σ: ", min = -5, max = 5, value = -8/3, step = 0.1),
sliderInput("rho", "ρ: ", min = -15, max = 15, valu... | /project/plotly_ode.R | no_license | vogon-poetic/math-comp | R | false | false | 3,919 | r | library(shiny)
library(shinydashboard)
library(plotly)
library(deSolve)
dashboard_ui <- dashboardPage(
dashboardHeader(title = "Plotting ODEs with R"),
dashboardSidebar(
sliderInput("sigma", "σ: ", min = -5, max = 5, value = -8/3, step = 0.1),
sliderInput("rho", "ρ: ", min = -15, max = 15, valu... |
SystemRequirement {
Identifier : uid243716,
Text : "KTDVHCAE1EDDSC112EYP073NRYLJBOBRJGLAUT32G4NVTM23QW9IMPR81TEWBDRLC1GT0RTLQBJ8TLDEQ8QWHPRGZHL1O1YDGUBQSQ4JGDISHHKVD7NYAOVE1CLTNBF1IDAKZZ5XQ2GWZYVQLCK6MTEYFSWLPAXTCDLF12KZCV6E64MGOY72VD2B1SY6X4QB1R4PHLUBAX23FBN742ZZK5LHM1FXMXD9VZRHXZ1AREKT3Q85LG7HZ1CYD407B15CP7RGV1H5... | /test/huge/Books/5_VCLMCR/8_BL5V7P.rd | permissive | lsp-implementaions/rel | R | false | false | 1,038,525 | rd | SystemRequirement {
Identifier : uid243716,
Text : "KTDVHCAE1EDDSC112EYP073NRYLJBOBRJGLAUT32G4NVTM23QW9IMPR81TEWBDRLC1GT0RTLQBJ8TLDEQ8QWHPRGZHL1O1YDGUBQSQ4JGDISHHKVD7NYAOVE1CLTNBF1IDAKZZ5XQ2GWZYVQLCK6MTEYFSWLPAXTCDLF12KZCV6E64MGOY72VD2B1SY6X4QB1R4PHLUBAX23FBN742ZZK5LHM1FXMXD9VZRHXZ1AREKT3Q85LG7HZ1CYD407B15CP7RGV1H5... |
#' Corrected coverage estimate of the causal variant in the credible set
#'
#' Requires an estimate of the true effect at the CV (e.g. use maximum absolute z-score or output from corrcoverage::est_mu function)
#' @rdname corrected_cov
#' @title Corrected coverage estimate of the causal variant in the credible set
#' @p... | /R/corrected_cov_functions.R | permissive | Shicheng-Guo/corrcoverage | R | false | false | 16,917 | r | #' Corrected coverage estimate of the causal variant in the credible set
#'
#' Requires an estimate of the true effect at the CV (e.g. use maximum absolute z-score or output from corrcoverage::est_mu function)
#' @rdname corrected_cov
#' @title Corrected coverage estimate of the causal variant in the credible set
#' @p... |
i = 9
library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/")
# -------------------------------------------------------------------------
# read in the list of the SNP to be excluded
# -------------------------------------------------------------------------
setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/")
files = list... | /data_preparation/R_batch3/_step2/step2_filter_asCounts.8.R | no_license | jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples | R | false | false | 807 | r | i = 9
library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/")
# -------------------------------------------------------------------------
# read in the list of the SNP to be excluded
# -------------------------------------------------------------------------
setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/")
files = list... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.