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 |
|---|---|---|---|---|---|---|---|---|---|
require("vcfR")
source("../../code/tools.r")
# read reference data from Snipper input file
nsam = 2000 # samples for simulating p-values
require("parallel")
options(mc.cores = 3)
##################
a = read.table("1000G_SampleListWithLocations.txt", header = FALSE)
inds = a[,1:3]
dat = getData("1000G_AIMsetKidd.vcf.g... | /data/1000G/analysis_Kidd.r | no_license | pfaffelh/recent-admixture | R | false | false | 3,766 | r | require("vcfR")
source("../../code/tools.r")
# read reference data from Snipper input file
nsam = 2000 # samples for simulating p-values
require("parallel")
options(mc.cores = 3)
##################
a = read.table("1000G_SampleListWithLocations.txt", header = FALSE)
inds = a[,1:3]
dat = getData("1000G_AIMsetKidd.vcf.g... |
new.function <- function(a) {
for(i in 1:a) {
b <- i^2
print(b)
}
}
new.function(6)
| /functionTest.R | no_license | CodyMcMahon/lets_see_if_I_can_learn_R | R | false | false | 91 | r | new.function <- function(a) {
for(i in 1:a) {
b <- i^2
print(b)
}
}
new.function(6)
|
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/NSCLC.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.3,family="gaussian",standardize=TRUE)
sink('./NSCLC_041.txt',append=TRUE)
print(gl... | /Model/EN/Lasso/NSCLC/NSCLC_041.R | no_license | esbgkannan/QSMART | R | false | false | 341 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/NSCLC.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.3,family="gaussian",standardize=TRUE)
sink('./NSCLC_041.txt',append=TRUE)
print(gl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geo_dirlist.R
\name{munge_dirlist}
\alias{munge_dirlist}
\title{Returns supplementary file names from Entrez GEO}
\usage{
munge_dirlist(x)
}
\arguments{
\item{x}{a character vector of files at Entrez GEO ftp site.}
}
\value{
a data frame with... | /man/munge_dirlist.Rd | no_license | tpall/entrezquery | R | false | true | 1,028 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geo_dirlist.R
\name{munge_dirlist}
\alias{munge_dirlist}
\title{Returns supplementary file names from Entrez GEO}
\usage{
munge_dirlist(x)
}
\arguments{
\item{x}{a character vector of files at Entrez GEO ftp site.}
}
\value{
a data frame with... |
library(data.table)
data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
data$Date <- as.Date(strptime(data$Date, "%d/%m/%Y"))
data <- subset(data, data$Date %in% as.Date(c("2007-02-01", "2007-02-02")))
png("plot1.png", width = 480, height = 480)
hist(as.numeric(as.character(data$Global_activ... | /plot1.R | no_license | Brainteaser9/ExData_Plotting1 | R | false | false | 425 | r | library(data.table)
data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
data$Date <- as.Date(strptime(data$Date, "%d/%m/%Y"))
data <- subset(data, data$Date %in% as.Date(c("2007-02-01", "2007-02-02")))
png("plot1.png", width = 480, height = 480)
hist(as.numeric(as.character(data$Global_activ... |
library(class)
library(caret)
require(mlbench)
library(e1071)
library(base)
require(base)
data(Sonar)
head(Sonar)
summary(Sonar)
str(Sonar)
cat("number of rows and columns are:", nrow(Sonar), ncol(Sonar))
###############
#Lets check how many ???? classes and ????
#classes Sonar data contain?and c... | /Machine Learning.R | no_license | DAMARISKILANGO/DAMSY_RCODES | R | false | false | 3,888 | r |
library(class)
library(caret)
require(mlbench)
library(e1071)
library(base)
require(base)
data(Sonar)
head(Sonar)
summary(Sonar)
str(Sonar)
cat("number of rows and columns are:", nrow(Sonar), ncol(Sonar))
###############
#Lets check how many ???? classes and ????
#classes Sonar data contain?and c... |
#' @title Induced model of learner.
#'
#' @description
#' Result from \code{\link{train}}.
#'
#' It internally stores the underlying fitted model,
#' the subset used for training, features used for training, levels of factors in the
#' data set and computation time that was spent for training.
#'
#' Object members: See... | /R/WrappedModel.R | no_license | dickoa/mlr | R | false | false | 3,625 | r | #' @title Induced model of learner.
#'
#' @description
#' Result from \code{\link{train}}.
#'
#' It internally stores the underlying fitted model,
#' the subset used for training, features used for training, levels of factors in the
#' data set and computation time that was spent for training.
#'
#' Object members: See... |
\name{ppi}
\alias{ppi}
\docType{data}
\title{
Pathway information and Protein-Protein interactions from String DB V10
}
\description{}
\usage{data("ppi")}
\format{
The format is:
List of 2
$ pathwaydat: chr [1:87, 1:3] "Apoptosis" "Apoptosis" "Apoptosis" "Apoptosis" ...
..- attr(*, "dimnames")=List of 2
.. ..$ :... | /man/ppi.Rd | no_license | MinJinHa/PRECISE | R | false | false | 1,449 | rd | \name{ppi}
\alias{ppi}
\docType{data}
\title{
Pathway information and Protein-Protein interactions from String DB V10
}
\description{}
\usage{data("ppi")}
\format{
The format is:
List of 2
$ pathwaydat: chr [1:87, 1:3] "Apoptosis" "Apoptosis" "Apoptosis" "Apoptosis" ...
..- attr(*, "dimnames")=List of 2
.. ..$ :... |
#######################################
### EcoVirtual -Internal Functions ####
#######################################
##############################################
### Island Biogeography and Neutral Theory ###
##############################################
## fuction rich used in 'simHub1' 'simHub2' simHub3'
ric... | /R/intEcoVirtual.R | no_license | piklprado/EcoVirtual | R | false | false | 12,823 | r | #######################################
### EcoVirtual -Internal Functions ####
#######################################
##############################################
### Island Biogeography and Neutral Theory ###
##############################################
## fuction rich used in 'simHub1' 'simHub2' simHub3'
ric... |
#' @title Create Rocky Mountain plots from taxa relative abundance correlations
#' @name cor_rocky_mtn
#' @description Calculate the correlation between the relative abundance of each taxa within a specified table and a continuous variable of interest. Correlation is calculated by \code{\link[stats]{cor}}. By default, ... | /R/cor_rocky_mtn.R | no_license | CharlieCarpenter/tidyMicro | R | false | false | 5,224 | r | #' @title Create Rocky Mountain plots from taxa relative abundance correlations
#' @name cor_rocky_mtn
#' @description Calculate the correlation between the relative abundance of each taxa within a specified table and a continuous variable of interest. Correlation is calculated by \code{\link[stats]{cor}}. By default, ... |
defineModule(sim, list(
name = "fixPreLCC05Classes",
description = c("This module has been develop to address a concern regarding the lack of ",
"knowledge on which classes were harvested pre-2005 as the bird",
"model used for the hindcasting project takes into account the 2005 l... | /modules/fixPreLCC05Classes/fixPreLCC05Classes.R | no_license | tati-micheletti/borealBirdsAndForestry | R | false | false | 9,687 | r | defineModule(sim, list(
name = "fixPreLCC05Classes",
description = c("This module has been develop to address a concern regarding the lack of ",
"knowledge on which classes were harvested pre-2005 as the bird",
"model used for the hindcasting project takes into account the 2005 l... |
check_pkg <- function(name, reason) {
if (requireNamespace(name, quietly = TRUE))
return(invisible(TRUE))
glubort('The {name} package is required to {reason}.
Please install it with `install.packages("{name}")`'
)
}
# ngettext() does extra work, this function is a simpler version
ntext <- function(n, ms... | /R/error.R | permissive | skribled/dplyr | R | false | false | 2,825 | r | check_pkg <- function(name, reason) {
if (requireNamespace(name, quietly = TRUE))
return(invisible(TRUE))
glubort('The {name} package is required to {reason}.
Please install it with `install.packages("{name}")`'
)
}
# ngettext() does extra work, this function is a simpler version
ntext <- function(n, ms... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NorNorCVTest.R
\name{NorNorCVTest}
\alias{NorNorCVTest}
\title{Test normality and homogeneity of variance of Input data}
\usage{
NorNorCVTest(data = data_wt, i = 4, method_cv = "leveneTest", ...)
}
\arguments{
\item{data}{a data.frame contain... | /man/NorNorCVTest.Rd | no_license | JohnMeatbun/EasyStat | R | false | true | 984 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NorNorCVTest.R
\name{NorNorCVTest}
\alias{NorNorCVTest}
\title{Test normality and homogeneity of variance of Input data}
\usage{
NorNorCVTest(data = data_wt, i = 4, method_cv = "leveneTest", ...)
}
\arguments{
\item{data}{a data.frame contain... |
###########################################################
# Title: Simulation 1 - Bayesian Profile Regression of NATA 2014 for NC
# Authors: Kara McCormack (kara.mccormack@duke.edu)
# Date created: 12/10/2019
# Input files:
# /Users/karamccormack/Box/SES-environment/Spatial LCM Paper/Data/NC_NATA_wide_z_transform.... | /code/simulations/simulation_nata_1.R | no_license | kara-mccormack/spatial-mpe-ses | R | false | false | 4,440 | r | ###########################################################
# Title: Simulation 1 - Bayesian Profile Regression of NATA 2014 for NC
# Authors: Kara McCormack (kara.mccormack@duke.edu)
# Date created: 12/10/2019
# Input files:
# /Users/karamccormack/Box/SES-environment/Spatial LCM Paper/Data/NC_NATA_wide_z_transform.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linear-optimization-model-impl.R
\name{sum_over}
\alias{sum_over}
\alias{sum_expr}
\title{Sum over indexes}
\usage{
sum_over(.expr, ...)
sum_expr(.expr, ...)
}
\arguments{
\item{.expr}{an expression that can be expanded to a sum}
\item{...}... | /man/sum_over.Rd | permissive | dirkschumacher/ompr | R | false | true | 865 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linear-optimization-model-impl.R
\name{sum_over}
\alias{sum_over}
\alias{sum_expr}
\title{Sum over indexes}
\usage{
sum_over(.expr, ...)
sum_expr(.expr, ...)
}
\arguments{
\item{.expr}{an expression that can be expanded to a sum}
\item{...}... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/dataset.R
\name{Dataset.retrieve}
\alias{Dataset.retrieve}
\title{Dataset.retrieve}
\usage{
Dataset.retrieve(id)
}
\arguments{
\item{id}{String The ID or full name of a SolveBio dataset}
}
\description{
Retrieves the metadata about a ... | /man/Dataset.retrieve.Rd | permissive | h3biomed/solvebio-r | R | false | false | 464 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/dataset.R
\name{Dataset.retrieve}
\alias{Dataset.retrieve}
\title{Dataset.retrieve}
\usage{
Dataset.retrieve(id)
}
\arguments{
\item{id}{String The ID or full name of a SolveBio dataset}
}
\description{
Retrieves the metadata about a ... |
##----------------------------------------------------------------
## Init by deleting all variables and functions
rm(list=ls())
## Set the working directory
setwd(".")
## Source scripts in the functions folder
sapply(dir("functions",full.names=TRUE), source)
## Load the data
Data <- readRDS("data_soenderborg.RDS")
... | /Ex_4/q3_load_forecast.R | no_license | marcohv/exercises_ts_dtu | R | false | false | 6,516 | r | ##----------------------------------------------------------------
## Init by deleting all variables and functions
rm(list=ls())
## Set the working directory
setwd(".")
## Source scripts in the functions folder
sapply(dir("functions",full.names=TRUE), source)
## Load the data
Data <- readRDS("data_soenderborg.RDS")
... |
#' Perform ANOVA and run multiple comparisons
#'
#' @param data a data.frame contain the input data
#' @param i col index wtich need to test
#' @param method_Mc which specify the method of multiple comparisons.included:"Tukey","LSD","SNK","Duncan","scheffe","scheffe".
#' @examples
#' # data(data_wt)
#' result= aovMcom... | /R/aovMcomper.R | no_license | zhao-hx/EasyStat | R | false | false | 2,456 | r | #' Perform ANOVA and run multiple comparisons
#'
#' @param data a data.frame contain the input data
#' @param i col index wtich need to test
#' @param method_Mc which specify the method of multiple comparisons.included:"Tukey","LSD","SNK","Duncan","scheffe","scheffe".
#' @examples
#' # data(data_wt)
#' result= aovMcom... |
library(dplyr)
library(tidyr)
library(ggplot2)
library(sf)
source(file.path("explore","src","explore_summaries.R"))
# Fluorescence:
fl_signals_all <- fl_signals()
glri <- readRDS(file.path("process","out","glri_fl_MRL_adjusted.rds"))
mmsd <- readRDS(file.path("process","out","mmsd_fl_MRL_adjusted.rds"))
glpf <- read... | /explore/summarize_detections.R | no_license | ldecicco-USGS/GLPF_manuscript | R | false | false | 4,831 | r | library(dplyr)
library(tidyr)
library(ggplot2)
library(sf)
source(file.path("explore","src","explore_summaries.R"))
# Fluorescence:
fl_signals_all <- fl_signals()
glri <- readRDS(file.path("process","out","glri_fl_MRL_adjusted.rds"))
mmsd <- readRDS(file.path("process","out","mmsd_fl_MRL_adjusted.rds"))
glpf <- read... |
\name{DFA}
\alias{DFA}
\title{Discriminant function analysis}
\description{Produces SPSS- and SAS-like output for linear discriminant function analysis.}
\usage{DFA(data, groups, variables, plot, predictive, priorprob, covmat_type, CV, verbose)}
\arguments{
\item{data}{
\code{}A dataframe where the rows are cases &... | /man/DFA.Rd | no_license | cran/DFA.CANCOR | R | false | false | 15,186 | rd | \name{DFA}
\alias{DFA}
\title{Discriminant function analysis}
\description{Produces SPSS- and SAS-like output for linear discriminant function analysis.}
\usage{DFA(data, groups, variables, plot, predictive, priorprob, covmat_type, CV, verbose)}
\arguments{
\item{data}{
\code{}A dataframe where the rows are cases &... |
# Get the "Wine" dataset
#install.packages("rattle.data")
library(rattle.data)
head(wine)
table(wine$Type)
# Take only Type='1'
temp <-wine[wine$Type=='1',]
# Generate 1,000 row samples with replacement. Note if replace=False, it won't work.
temp2<-temp[sample(nrow(temp), 4000,replace=T), ]
dim(temp2)
# Put together
... | /Lecture notes with R code /Module 9_10 - Supervised - Wine down-sampling.r | no_license | FANYifei94/FraudDetection | R | false | false | 755 | r |
# Get the "Wine" dataset
#install.packages("rattle.data")
library(rattle.data)
head(wine)
table(wine$Type)
# Take only Type='1'
temp <-wine[wine$Type=='1',]
# Generate 1,000 row samples with replacement. Note if replace=False, it won't work.
temp2<-temp[sample(nrow(temp), 4000,replace=T), ]
dim(temp2)
# Put together
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/asc.R
\name{asc}
\alias{asc}
\alias{chr}
\title{Convert between characters and ASCII codes}
\usage{
asc(char, simplify = TRUE)
chr(ascii)
}
\arguments{
\item{char}{vector of character strings}
\item{simplify}{logical indicating whether to a... | /man/asc.Rd | no_license | JDixonCS/gtools | R | false | true | 2,076 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/asc.R
\name{asc}
\alias{asc}
\alias{chr}
\title{Convert between characters and ASCII codes}
\usage{
asc(char, simplify = TRUE)
chr(ascii)
}
\arguments{
\item{char}{vector of character strings}
\item{simplify}{logical indicating whether to a... |
#' Data containing nodes and weights of graph
#'
#' A dataset is containing the edges and weights of graph.
#'
#' @format A data frame with 18 rows and 3 variables:
#' \describe{
#' \item{v1}{edges of the graph-from}
#' \item{v2}{edges of the graph-to}
#' \item{w}{weight of the edge from v1 to v2}
#' ...
#' }
#... | /R/wiki_graph.R | no_license | shwva184/LiuLab3 | R | false | false | 408 | r | #' Data containing nodes and weights of graph
#'
#' A dataset is containing the edges and weights of graph.
#'
#' @format A data frame with 18 rows and 3 variables:
#' \describe{
#' \item{v1}{edges of the graph-from}
#' \item{v2}{edges of the graph-to}
#' \item{w}{weight of the edge from v1 to v2}
#' ...
#' }
#... |
#' Edit a single attribute
#'
#' This function edits the slots of a single attribute in an existing list of attributes for a data object.
#'
#' This function can only be used on attributes entirely defined within the 'attributes' slot of attributeList;
#' it cannot be used to edit the factors table of an enumeratedDoma... | /R/edit_attribute.R | permissive | NCEAS/datamgmt | R | false | false | 6,128 | r | #' Edit a single attribute
#'
#' This function edits the slots of a single attribute in an existing list of attributes for a data object.
#'
#' This function can only be used on attributes entirely defined within the 'attributes' slot of attributeList;
#' it cannot be used to edit the factors table of an enumeratedDoma... |
# Copyright 2019 Province of British Columbia
#
# 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | /R/calc_longterm_daily_stats.R | permissive | Rain3498/fasstr | R | false | false | 14,932 | r | # Copyright 2019 Province of British Columbia
#
# 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... |
/Model_Prod_6_01.R | no_license | marcelomedre/B2WLabs | R | false | false | 5,362 | r | ||
#' Extraction of intensity singles, given any excitation and emission wavelenghts.
#'
#' @param x_emission Selected emission wavelenght in nm. Default is 350 for exampling purposes.
#' @param y_excitation Selected excitation wavelenght in nm. Default is 350 for exampling purposes.
#' @param data The default value of ... | /R/LBE_fluo3D_single_point.R | no_license | guilayn/lbe3df | R | false | false | 1,407 | r | #' Extraction of intensity singles, given any excitation and emission wavelenghts.
#'
#' @param x_emission Selected emission wavelenght in nm. Default is 350 for exampling purposes.
#' @param y_excitation Selected excitation wavelenght in nm. Default is 350 for exampling purposes.
#' @param data The default value of ... |
#' Temporarily mock requests
#'
#' Mocking allows you to selectively and temporarily replace the response
#' you would typically receive from a request with your own code. It's
#' primarily used for testing.
#'
#' @param mock A single argument function called with a request object.
#' It should return either `NULL` (... | /R/req-mock.R | permissive | adithirgis/httr2 | R | false | false | 1,169 | r | #' Temporarily mock requests
#'
#' Mocking allows you to selectively and temporarily replace the response
#' you would typically receive from a request with your own code. It's
#' primarily used for testing.
#'
#' @param mock A single argument function called with a request object.
#' It should return either `NULL` (... |
# Read the data in correctly
mydata_utf8 = read.table("WDIData.csv",sep=",",fileEncoding="UTF-8-BOM",header=TRUE)
country_code = read.table("country_code.csv",sep=",",header=TRUE)
# drop off the final blank column
mydata = mydata_utf8[,1:63]
# find the right variables
my_var = c("EN.ATM.CO2E.PC","BX.KLT.DIN... | /Normality and Correlation Analysis.R | no_license | respectisearnednotgiven/CO2-Emission-Project | R | false | false | 3,365 | r | # Read the data in correctly
mydata_utf8 = read.table("WDIData.csv",sep=",",fileEncoding="UTF-8-BOM",header=TRUE)
country_code = read.table("country_code.csv",sep=",",header=TRUE)
# drop off the final blank column
mydata = mydata_utf8[,1:63]
# find the right variables
my_var = c("EN.ATM.CO2E.PC","BX.KLT.DIN... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ds_get_latest.R
\name{ds_get_latest}
\alias{ds_get_latest}
\title{ds_get_latest}
\usage{
ds_get_latest(ds, ds_name)
}
\arguments{
\item{ds}{path to datastore}
\item{ds_name}{name of data-object to retrieve}
}
\value{
the requested data-objec... | /man/ds_get_latest.Rd | no_license | bernhard-da/datastore | R | false | true | 429 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ds_get_latest.R
\name{ds_get_latest}
\alias{ds_get_latest}
\title{ds_get_latest}
\usage{
ds_get_latest(ds, ds_name)
}
\arguments{
\item{ds}{path to datastore}
\item{ds_name}{name of data-object to retrieve}
}
\value{
the requested data-objec... |
testlist <- list(data = structure(c(-1.39067116739524e-308, 9.32399348468785e-256, 2.22809558051354e-313, 4.16249482798317e-258, 0, 0, 1.6189543082926e-319, 0, 0, 0), .Dim = c(10L, 1L)), q = 5.85317984824666e+170)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610554520-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 285 | r | testlist <- list(data = structure(c(-1.39067116739524e-308, 9.32399348468785e-256, 2.22809558051354e-313, 4.16249482798317e-258, 0, 0, 1.6189543082926e-319, 0, 0, 0), .Dim = c(10L, 1L)), q = 5.85317984824666e+170)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) |
comment("-------------Expressions---------")
2+2
4*3
2/7
7-3
3^(-2)
2^(1/2)
pi
exp(1)
log(1)
?log
log(exp(1))
?loglin
a <- 10
"OR"
a = 10
?comment
comment("--------------TYPES--------------")
42.5
is.numeric(42.5)
is.double(42.5)
TRUE
is.logical(TRUE)
"Stat"
is.character("Stat")
comment("-------------Vectors are Homg... | /Basic.R | no_license | boshika/uiuc_stat_420 | R | false | false | 1,760 | r | comment("-------------Expressions---------")
2+2
4*3
2/7
7-3
3^(-2)
2^(1/2)
pi
exp(1)
log(1)
?log
log(exp(1))
?loglin
a <- 10
"OR"
a = 10
?comment
comment("--------------TYPES--------------")
42.5
is.numeric(42.5)
is.double(42.5)
TRUE
is.logical(TRUE)
"Stat"
is.character("Stat")
comment("-------------Vectors are Homg... |
rm(list = ls())
pkgs <- c("readr", "data.table", "dplyr", "tidyr", "DT", "reshape2", "tm", "stringr", "gsubfn", "lubridate",
"ggplot2", "gridExtra", "highcharter", "plotly", "ggrepel", "leaflet", "leaflet.extras", "ggmap",
"RColorBrewer", "viridisLite", "countrycode", "ggmap", "zipcode")
... | /Dangerous Places to work in US.R | no_license | ashishtele/Kaggle-Work-EDA-Kernel | R | false | false | 6,791 | r | rm(list = ls())
pkgs <- c("readr", "data.table", "dplyr", "tidyr", "DT", "reshape2", "tm", "stringr", "gsubfn", "lubridate",
"ggplot2", "gridExtra", "highcharter", "plotly", "ggrepel", "leaflet", "leaflet.extras", "ggmap",
"RColorBrewer", "viridisLite", "countrycode", "ggmap", "zipcode")
... |
#' get_toggl_api_token
#' @description return the toggle api token
#' @param ask booleen do we have to ask if missing
#' @importFrom magrittr %>%
#' @importFrom keyring key_set_with_value
#' @import keyring
#' @export
get_toggl_api_token <- function(ask=TRUE){
token <-NULL
try(token<-key_get(service = "toggl_... | /R/tools.R | no_license | ColinFay/togglr | R | false | false | 2,015 | r | #' get_toggl_api_token
#' @description return the toggle api token
#' @param ask booleen do we have to ask if missing
#' @importFrom magrittr %>%
#' @importFrom keyring key_set_with_value
#' @import keyring
#' @export
get_toggl_api_token <- function(ask=TRUE){
token <-NULL
try(token<-key_get(service = "toggl_... |
library(BSDA)
### Name: Statclas
### Title: Grades for two introductory statistics classes
### Aliases: Statclas
### Keywords: datasets
### ** Examples
str(Statclas)
boxplot(score ~ class, data = Statclas, col = "red")
t.test(score ~ class, data = Statclas)
| /data/genthat_extracted_code/BSDA/examples/Statclas.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 267 | r | library(BSDA)
### Name: Statclas
### Title: Grades for two introductory statistics classes
### Aliases: Statclas
### Keywords: datasets
### ** Examples
str(Statclas)
boxplot(score ~ class, data = Statclas, col = "red")
t.test(score ~ class, data = Statclas)
|
#' Run a Monte Carlo simulation given a data.frame of conditions and simulation functions
#'
#' This function runs a Monte Carlo simulation study given a set of predefined simulation functions,
#' design conditions, and number of replications. Results can be saved as temporary files in case of interruptions
#' and may ... | /R/runSimulation.R | no_license | oguzhanogreden/SimDesign | R | false | false | 63,289 | r | #' Run a Monte Carlo simulation given a data.frame of conditions and simulation functions
#'
#' This function runs a Monte Carlo simulation study given a set of predefined simulation functions,
#' design conditions, and number of replications. Results can be saved as temporary files in case of interruptions
#' and may ... |
#' Returns games played by a CFL team in one season
#'
#' These functions return games played in the CFL at a high level
#' @param team Abbreviated team name
#' @param season The season of play
#' @return data.frame
#' @import jsonlite
#' @keywords canadian football, CFL, cflstats
#' @export
#' @examples \dontrun{
#' #... | /R/games.R | no_license | andrewjdyck/CanadianFootball | R | false | false | 2,007 | r | #' Returns games played by a CFL team in one season
#'
#' These functions return games played in the CFL at a high level
#' @param team Abbreviated team name
#' @param season The season of play
#' @return data.frame
#' @import jsonlite
#' @keywords canadian football, CFL, cflstats
#' @export
#' @examples \dontrun{
#' #... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /mepstrends/hc_cond/json/code/r/meanEXP__Condition__mnhlth__.r | permissive | RandomCriticalAnalysis/MEPS-summary-tables | R | false | false | 3,376 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
library(qtlc)
### Name: spot2D
### Title: Locate spots manually.
### Aliases: spot2D
### ** Examples
## Not run:
##D print(object)
##D object <- spot2D(object)
## End(Not run)
| /data/genthat_extracted_code/qtlc/examples/spot2D.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 185 | r | library(qtlc)
### Name: spot2D
### Title: Locate spots manually.
### Aliases: spot2D
### ** Examples
## Not run:
##D print(object)
##D object <- spot2D(object)
## End(Not run)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/common-connections.R
\name{selectData}
\alias{selectData}
\title{Pull data into R via an ODBC connection}
\usage{
selectData(MSSQLConnectionString = NULL, query, SQLiteFileName = NULL,
randomize = FALSE)
}
\arguments{
\item{MSSQLConnectionS... | /man/selectData.Rd | permissive | niilante/healthcareai-r | R | false | true | 1,506 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/common-connections.R
\name{selectData}
\alias{selectData}
\title{Pull data into R via an ODBC connection}
\usage{
selectData(MSSQLConnectionString = NULL, query, SQLiteFileName = NULL,
randomize = FALSE)
}
\arguments{
\item{MSSQLConnectionS... |
## ----ex1-----------------------------------------------------------------
library("wrapr")
'a' := 5
c('a' := 5, 'b' := 6)
c('a', 'b') := c(5, 6)
## ----key1----------------------------------------------------------------
`:=` <- wrapr::`:=` # in case data.tables "catch calls" definition is active
key = 'keycode'... | /packrat/lib/x86_64-pc-linux-gnu/3.4.4/wrapr/doc/named_map_builder.R | no_license | h-dychko/zno_analysis | R | false | false | 447 | r | ## ----ex1-----------------------------------------------------------------
library("wrapr")
'a' := 5
c('a' := 5, 'b' := 6)
c('a', 'b') := c(5, 6)
## ----key1----------------------------------------------------------------
`:=` <- wrapr::`:=` # in case data.tables "catch calls" definition is active
key = 'keycode'... |
/MacOSX10.3.9.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/Headers/FinderRegistry.r | no_license | alexey-lysiuk/macos-sdk | R | false | false | 20,299 | r | ||
testlist <- list(b = c(-1667457875L, -1667457892L, 420285709L, 420285709L, -1835887972L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613106656-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 157 | r | testlist <- list(b = c(-1667457875L, -1667457892L, 420285709L, 420285709L, -1835887972L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
init_context <- function(threads = 1L) {
.Call('_clustermq_init_context', PACKAGE = 'clustermq', threads)
}
init_socket <- function(context, socket_type) {
.Call('_clustermq_init_socke... | /clustermq/R/RcppExports.R | permissive | akhikolla/TestedPackages-NoIssues | R | false | false | 1,458 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
init_context <- function(threads = 1L) {
.Call('_clustermq_init_context', PACKAGE = 'clustermq', threads)
}
init_socket <- function(context, socket_type) {
.Call('_clustermq_init_socke... |
#THIS IS A TEST!!!
rnorm(100)
#again | /Test rnorm.R | no_license | ZacharyThompsonMoffitt/NewTestProject | R | false | false | 38 | r | #THIS IS A TEST!!!
rnorm(100)
#again |
\name{bart_predict_for_test_data}
\alias{bart_predict_for_test_data}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Predict for Test Data with Known Outcomes
}
\description{
Utility wrapper function for computing out-of-sample metrics for a BART model when the test set outcomes are known.
}
\usa... | /bartMachine/man/bart_predict_for_test_data.Rd | permissive | kapelner/bartMachine | R | false | false | 2,043 | rd | \name{bart_predict_for_test_data}
\alias{bart_predict_for_test_data}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Predict for Test Data with Known Outcomes
}
\description{
Utility wrapper function for computing out-of-sample metrics for a BART model when the test set outcomes are known.
}
\usa... |
#
# common-con-distrib.R, 30 Dec 15
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
plot_layout(2, 2)
brew_col=rainbow(3)
plot(c(0, 1, 1, 4, 4, 5), c(0, 0, 0.25, 0.25, 0, 0), type="l",
bty="n", yaxt="n",
col=brew_col[1],
xlab="x", ylab="")
x_exp=seq(0, 2, by=... | /statistics/common-con-distrib.R | no_license | vinodrajendran001/ESEUR-code-data | R | false | false | 1,556 | r | #
# common-con-distrib.R, 30 Dec 15
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
plot_layout(2, 2)
brew_col=rainbow(3)
plot(c(0, 1, 1, 4, 4, 5), c(0, 0, 0.25, 0.25, 0, 0), type="l",
bty="n", yaxt="n",
col=brew_col[1],
xlab="x", ylab="")
x_exp=seq(0, 2, by=... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StudyInvariant.R
\name{email}
\alias{email}
\title{Email results}
\usage{
email(from, to, subject, dataDescription, file)
}
\arguments{
\item{from}{Return email address}
\item{to}{(Optional) Delivery email address (must be a gmail.com acccou... | /phenotypeDataExtraction/man/email.Rd | no_license | amrapalijz/StudyProtocolSandbox | R | false | true | 660 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StudyInvariant.R
\name{email}
\alias{email}
\title{Email results}
\usage{
email(from, to, subject, dataDescription, file)
}
\arguments{
\item{from}{Return email address}
\item{to}{(Optional) Delivery email address (must be a gmail.com acccou... |
\name{get_default_mapping}
\alias{get_default_mapping}
\title{Get default mapping}
\usage{
get_default_mapping(engine = NA, debug = FALSE)
}
\arguments{
\item{engine}{Data engine. See function
\code{\link{create_schema}} for details.}
\item{debug}{Print additional information useful for
debugging.}
}
\descript... | /man/get_default_mapping.Rd | no_license | tomasgreif/mondrianr | R | false | false | 1,744 | rd | \name{get_default_mapping}
\alias{get_default_mapping}
\title{Get default mapping}
\usage{
get_default_mapping(engine = NA, debug = FALSE)
}
\arguments{
\item{engine}{Data engine. See function
\code{\link{create_schema}} for details.}
\item{debug}{Print additional information useful for
debugging.}
}
\descript... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/attachmentBlock.R
\name{attachmentBlock}
\alias{attachmentBlock}
\title{AdminLTE2 attachment container}
\usage{
attachmentBlock(..., src = NULL, title = NULL, title_url = NULL)
}
\arguments{
\item{...}{any element.}
\item{src}{url or path to... | /man/attachmentBlock.Rd | no_license | pvictor/shinydashboardPlus | R | false | true | 1,044 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/attachmentBlock.R
\name{attachmentBlock}
\alias{attachmentBlock}
\title{AdminLTE2 attachment container}
\usage{
attachmentBlock(..., src = NULL, title = NULL, title_url = NULL)
}
\arguments{
\item{...}{any element.}
\item{src}{url or path to... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gLV_simulations.R
\name{convert_series_clr}
\alias{convert_series_clr}
\title{CLR-convert a set of species abundance series, calculate covariance across species, and return
the upper triangular portion of this covariance matrix}
\usage{
conve... | /man/convert_series_clr.Rd | no_license | kimberlyroche/rulesoflife | R | false | true | 609 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gLV_simulations.R
\name{convert_series_clr}
\alias{convert_series_clr}
\title{CLR-convert a set of species abundance series, calculate covariance across species, and return
the upper triangular portion of this covariance matrix}
\usage{
conve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matrix_functions.R
\name{set_rownames}
\alias{set_rownames}
\title{Set rownames of object}
\usage{
set_rownames(.m, row_names = NULL)
}
\arguments{
\item{.m}{A 2d matrix}
\item{row_names}{Numeric or character vector or NULL}
}
\value{
Copy o... | /man/set_rownames.Rd | permissive | user01/uvadsi | R | false | true | 592 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matrix_functions.R
\name{set_rownames}
\alias{set_rownames}
\title{Set rownames of object}
\usage{
set_rownames(.m, row_names = NULL)
}
\arguments{
\item{.m}{A 2d matrix}
\item{row_names}{Numeric or character vector or NULL}
}
\value{
Copy o... |
rd <- read.csv2("../data/redmine.csv")[c(1, 7, 8, 12, 19, 21, 20)]
names(rd) <- c("id", "job", "short.name", "ddate", "start.hour", "start.quater", "duration")
rd$ddate <- as.Date(rd$ddate, format = "%d.%m.%Y")
if (FALSE) {
rd$start.hour <- sample(0:23, nrow(rd), replace = TRUE)
rd$start.quat... | /code/rdread.R | no_license | anthony01/inout | R | false | false | 1,019 | r | rd <- read.csv2("../data/redmine.csv")[c(1, 7, 8, 12, 19, 21, 20)]
names(rd) <- c("id", "job", "short.name", "ddate", "start.hour", "start.quater", "duration")
rd$ddate <- as.Date(rd$ddate, format = "%d.%m.%Y")
if (FALSE) {
rd$start.hour <- sample(0:23, nrow(rd), replace = TRUE)
rd$start.quat... |
testthat::context("Download NetLogo")
testthat::test_that("Download NetLogo", {
# Run these tests only on TRAVIS:
testthat::skip_if(!identical(Sys.getenv("TRAVIS"), "true"))
## Version 6.0.0
nlversion <- "5.3.1"
nlpath <- tempdir()
download_netlogo(to = nlpath,
version = nl... | /data/genthat_extracted_code/nlrx/tests/test_download_netlogo.R | no_license | surayaaramli/typeRrh | R | false | false | 3,740 | r |
testthat::context("Download NetLogo")
testthat::test_that("Download NetLogo", {
# Run these tests only on TRAVIS:
testthat::skip_if(!identical(Sys.getenv("TRAVIS"), "true"))
## Version 6.0.0
nlversion <- "5.3.1"
nlpath <- tempdir()
download_netlogo(to = nlpath,
version = nl... |
#' Feature Quality score
#'
#' Calculate the feature quality score based on the presence of non failed gaussian fits.
#'
#'
#' @param XCMSobject An xcmsSet object
#' @param indices.to.keep Vector with indices to keep. Either numeric indices or a vector with TRUE/FALSE (same length as nr. of groups in XCMSobject)
#'
... | /R/FeatureQualityScore.R | permissive | Beirnaert/MetaboMeeseeks | R | false | false | 1,351 | r | #' Feature Quality score
#'
#' Calculate the feature quality score based on the presence of non failed gaussian fits.
#'
#'
#' @param XCMSobject An xcmsSet object
#' @param indices.to.keep Vector with indices to keep. Either numeric indices or a vector with TRUE/FALSE (same length as nr. of groups in XCMSobject)
#'
... |
swap <- function(rota, i, j) {
# Mantem o caminho de 1 -> (i - 1) e (j + 1) -> length(rota) intacto
novaRota <- rota
# Altera apenas o caminho de i -> j
for (k in i:j) {
novaRota[k] <- rota[j + i - k]
}
return(novaRota)
} | /swap.R | no_license | tiagoyukio12/PCS3438-EP01 | R | false | false | 254 | r | swap <- function(rota, i, j) {
# Mantem o caminho de 1 -> (i - 1) e (j + 1) -> length(rota) intacto
novaRota <- rota
# Altera apenas o caminho de i -> j
for (k in i:j) {
novaRota[k] <- rota[j + i - k]
}
return(novaRota)
} |
#-------------------------------------------------------------------------------#
# Last updated date: 7/10/2020
# Author: Duzhe Wang (dwang282@wisc.edu)
#--------------------------------------------------------------------------------#
rm(list=ls())
setwd("/Users/peterwang/Desktop/HHLM/model3")
source("/Users/peterwa... | /model3/simu2.R | no_license | duzhewang/HHLM | R | false | false | 6,135 | r | #-------------------------------------------------------------------------------#
# Last updated date: 7/10/2020
# Author: Duzhe Wang (dwang282@wisc.edu)
#--------------------------------------------------------------------------------#
rm(list=ls())
setwd("/Users/peterwang/Desktop/HHLM/model3")
source("/Users/peterwa... |
\name{selectSample}
\Rdversion{1.3}
\alias{selectSample}
\title{
Selection of a stratified sample from the frame with srswor method
}
\description{
Once optimal stratification has been obtained,
and a new frame has been
built by assigning to the units of the old one the new strata labels, it is possible to ... | /man/selectSample.Rd | no_license | cran/SamplingStrata | R | false | false | 2,405 | rd | \name{selectSample}
\Rdversion{1.3}
\alias{selectSample}
\title{
Selection of a stratified sample from the frame with srswor method
}
\description{
Once optimal stratification has been obtained,
and a new frame has been
built by assigning to the units of the old one the new strata labels, it is possible to ... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 537906
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 537006
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 537006
c
c Input Parameter (command lin... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Kronegger-Pfandler-Pichler/bomb/p20-20.pddl_planlen=6/p20-20.pddl_planlen=6.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 4,794 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 537906
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 537006
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 537006
c
c Input Parameter (command lin... |
library(ctools)
e.files <- list.files("../data/classify/estimates", pattern = "-1.*.Rda", full.names = T)
c.lapply(e.files, function(f) {
print(f)
load(f)
sub.est <- lapply(sub.est, function(sub) {
sub <- lapply(sub, function (inst) {
if (!is.na(inst$EUT[1])) {
inst$EUT$pfunc <- "EUT"
}
if (!is.na(i... | /welcalc/addpf.R | no_license | bamonroe/code-ch4 | R | false | false | 558 | r | library(ctools)
e.files <- list.files("../data/classify/estimates", pattern = "-1.*.Rda", full.names = T)
c.lapply(e.files, function(f) {
print(f)
load(f)
sub.est <- lapply(sub.est, function(sub) {
sub <- lapply(sub, function (inst) {
if (!is.na(inst$EUT[1])) {
inst$EUT$pfunc <- "EUT"
}
if (!is.na(i... |
# Author: Gino
# Live Assignment 06
# Part 3
#required Cleanup_02.R
source("~/Github/DataScienceLiveSessionAssignment06/Analysis/Data/Cleanup_02.R",echo=FALSE)
#Cleanng up manhattan file and setting the data for analysis "Cleanup_03.R"
#plot gross sqft to price
plot(mn.sale$gross.sqft, mn.sale$sale.price.n)
plot(l... | /Analysis/Data/Cleanup_03.R | no_license | smusimham/ManhattanAssignment | R | false | false | 1,654 | r | # Author: Gino
# Live Assignment 06
# Part 3
#required Cleanup_02.R
source("~/Github/DataScienceLiveSessionAssignment06/Analysis/Data/Cleanup_02.R",echo=FALSE)
#Cleanng up manhattan file and setting the data for analysis "Cleanup_03.R"
#plot gross sqft to price
plot(mn.sale$gross.sqft, mn.sale$sale.price.n)
plot(l... |
#VCS, 29.10.2019, extremely important example to understand the begining of the data analysis,
#also works to get the number of Hu genes that only have intronic enhancers,
#which means calculating intronic enhancers, enhancers with another annotations, a subset, and then a setdiff of both.
library(data.table)
HomerTa... | /R/HowManyHuGenesOnlyHaveIntronicEnhancers.R | no_license | vitorcalistosilva/VDR | R | false | false | 2,081 | r | #VCS, 29.10.2019, extremely important example to understand the begining of the data analysis,
#also works to get the number of Hu genes that only have intronic enhancers,
#which means calculating intronic enhancers, enhancers with another annotations, a subset, and then a setdiff of both.
library(data.table)
HomerTa... |
library(seqinr)
#This expression can be a boolean and if true add to the list of desired sequences
all_pax6_fasta[grep("p63", ignore.case = TRUE, value = TRUE, names(all_pax6_fasta))]
names(all_pax6_fasta)
try <- names(all_pax6_fasta)[which(ortholog_names==names(all_pax6_fasta))]
| /R_folder/14:06:18 copy.R | no_license | martinastoycheva/Project_Lovell | R | false | false | 284 | r | library(seqinr)
#This expression can be a boolean and if true add to the list of desired sequences
all_pax6_fasta[grep("p63", ignore.case = TRUE, value = TRUE, names(all_pax6_fasta))]
names(all_pax6_fasta)
try <- names(all_pax6_fasta)[which(ortholog_names==names(all_pax6_fasta))]
|
GetKnownCorrectors2 = function(addNewCompounds=TRUE){
# the integers are pubchem ids
correctors = c(
'VALPROIC ACID' = 3121,
'CHLORZOXAZONE' = 2733,
'NEOSTIGMINE BROMIDE' = 8246,
'MIDODRINE' = 4195,
'TRICHOSTATIN A' = 444732,
'MS-275' = 4261,
'GLAFENINE' = 3474,
'IBUPROFEN' = 3672,
... | /R/scripts/ATC_and_target_prediction/process_cf_drug_labels_into_matrix.R | no_license | RaymondSHANG/dgc_predict | R | false | false | 1,799 | r | GetKnownCorrectors2 = function(addNewCompounds=TRUE){
# the integers are pubchem ids
correctors = c(
'VALPROIC ACID' = 3121,
'CHLORZOXAZONE' = 2733,
'NEOSTIGMINE BROMIDE' = 8246,
'MIDODRINE' = 4195,
'TRICHOSTATIN A' = 444732,
'MS-275' = 4261,
'GLAFENINE' = 3474,
'IBUPROFEN' = 3672,
... |
# 그래픽 기초
setwd('d:/Workspace-JWP/R_Data_Analysis/R-Lecture/Part4')
# plot() 함수
# plot( y축 데이터, 옵션 )
# plot( x축 데이터, y축 데이터, 옵션 )
var1 <- 1:5
plot(var1)
var2 <- c(2, 2, 2)
plot(var2)
x <- 1:3
y <- 4:2
plot(x, y)
plot(x, y, xlim = c(0, 4), ylim = c(0, 5))
plot(x, y, xlim = c(0, 4), ylim = c(0, 5),
xlab = 'x축 값'... | /Part4/sec1_graphic.R | no_license | Blockhead4/R-Lecture | R | false | false | 10,697 | r | # 그래픽 기초
setwd('d:/Workspace-JWP/R_Data_Analysis/R-Lecture/Part4')
# plot() 함수
# plot( y축 데이터, 옵션 )
# plot( x축 데이터, y축 데이터, 옵션 )
var1 <- 1:5
plot(var1)
var2 <- c(2, 2, 2)
plot(var2)
x <- 1:3
y <- 4:2
plot(x, y)
plot(x, y, xlim = c(0, 4), ylim = c(0, 5))
plot(x, y, xlim = c(0, 4), ylim = c(0, 5),
xlab = 'x축 값'... |
elibrary(quickpsy)
library(tidyverse)
library(circular)
library(cowplot)
library(PropCIs)
library(R.utils)
sourceDirectory('R')
source('graphical_parameters.R')
################################################################################
### phase ##################################################################... | /analysis/tracking3.R | no_license | danilinares/tracking | R | false | false | 24,632 | r | elibrary(quickpsy)
library(tidyverse)
library(circular)
library(cowplot)
library(PropCIs)
library(R.utils)
sourceDirectory('R')
source('graphical_parameters.R')
################################################################################
### phase ##################################################################... |
#' Calculates the normalized inverse fft of an array
#'
#' @description Convenience function to calculates the normalized inverse fft of an array (like in MatLab)
#' @param x An array as used by fft()
#' @return The normalized inverse fft of x
#' @references \url{http://stackoverflow.com/questions/8162562/is-there-a-pa... | /R/ifft.R | permissive | AdamWilsonLab/rasterAutocorr | R | false | false | 426 | r | #' Calculates the normalized inverse fft of an array
#'
#' @description Convenience function to calculates the normalized inverse fft of an array (like in MatLab)
#' @param x An array as used by fft()
#' @return The normalized inverse fft of x
#' @references \url{http://stackoverflow.com/questions/8162562/is-there-a-pa... |
# This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
... | /cachematrix.R | no_license | Mhanik7951/ProgrammingAssignment2 | R | false | false | 971 | r | # This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
... |
# Graphics and Tables for section 5.3:
# "Results" (5) > "Prediction Bands to Predict True Tropical Cyclones" (5.3)
library(tidyverse)
library(reshape2)
library(xtable)
library(forcats)
library(progress)
library(latex2exp)
library(gridExtra)
library(TCpredictionbands)
# theme -----------------
tc_theme <- theme_min... | /main/R2-acc_vs_area_result.R | permissive | RobinMDunn/Hurricanes_701 | R | false | false | 14,745 | r | # Graphics and Tables for section 5.3:
# "Results" (5) > "Prediction Bands to Predict True Tropical Cyclones" (5.3)
library(tidyverse)
library(reshape2)
library(xtable)
library(forcats)
library(progress)
library(latex2exp)
library(gridExtra)
library(TCpredictionbands)
# theme -----------------
tc_theme <- theme_min... |
library(BioMark)
### Name: selection
### Title: Accessor function to the selected variables of a BioMark object
### Aliases: selection
### Keywords: models multivariate
### ** Examples
## stability-based selection
set.seed(17)
data(spikedApples)
apple.stab <- get.biom(X = spikedApples$dataMatrix,
... | /data/genthat_extracted_code/BioMark/examples/selection.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 456 | r | library(BioMark)
### Name: selection
### Title: Accessor function to the selected variables of a BioMark object
### Aliases: selection
### Keywords: models multivariate
### ** Examples
## stability-based selection
set.seed(17)
data(spikedApples)
apple.stab <- get.biom(X = spikedApples$dataMatrix,
... |
GetTotalMarks <- function(quiz.marks, viva.marks, assignment.marks = 5L,...) {
total.marks <- quiz.marks + viva.marks + assignment.marks + sum(...)
#extra.arguments <- list(...)
#print(extra.arguments)
total.marks
}
GetTotalMarks(quiz.marks = c(70L, 75L, 80L, 85L), viva.marks = c(7L, 5L, 8L, 6L),
... | /Pluralsight/Function/03AdditionalArgumentsUsingEllipsis.R | no_license | cyrsis/RSandBox | R | false | false | 578 | r | GetTotalMarks <- function(quiz.marks, viva.marks, assignment.marks = 5L,...) {
total.marks <- quiz.marks + viva.marks + assignment.marks + sum(...)
#extra.arguments <- list(...)
#print(extra.arguments)
total.marks
}
GetTotalMarks(quiz.marks = c(70L, 75L, 80L, 85L), viva.marks = c(7L, 5L, 8L, 6L),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graph_quebec_cas_par_age.R
\name{heatmap_cas}
\alias{heatmap_cas}
\title{heatmap_cas}
\usage{
heatmap_cas(prepped_data, variable, variable_title, type = "maximum")
}
\value{
}
\description{
heatmap_cas
}
| /man/heatmap_cas.Rd | permissive | SimonCoulombe/covidtwitterbot | R | false | true | 283 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graph_quebec_cas_par_age.R
\name{heatmap_cas}
\alias{heatmap_cas}
\title{heatmap_cas}
\usage{
heatmap_cas(prepped_data, variable, variable_title, type = "maximum")
}
\value{
}
\description{
heatmap_cas
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psy.phd.R
\name{ci95_to_se}
\alias{ci95_to_se}
\title{Convert 95% confidence interval to standard error}
\usage{
ci95_to_se(u, l)
}
\arguments{
\item{u}{upper interval}
\item{l}{lower interval}
}
\value{
numeric
}
\description{
Convert 95% c... | /man/ci95_to_se.Rd | permissive | paulsharpeY/psy.phd | R | false | true | 443 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psy.phd.R
\name{ci95_to_se}
\alias{ci95_to_se}
\title{Convert 95% confidence interval to standard error}
\usage{
ci95_to_se(u, l)
}
\arguments{
\item{u}{upper interval}
\item{l}{lower interval}
}
\value{
numeric
}
\description{
Convert 95% c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/measures_binaryclass.R
\name{Brier}
\alias{Brier}
\title{Brier score}
\usage{
Brier(probabilities, truth, negative, positive)
}
\arguments{
\item{probabilities}{[numeric] vector of predicted probabilities}
\item{truth}{vector of true values}... | /man/Brier.Rd | no_license | PhilippPro/measures | R | false | true | 995 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/measures_binaryclass.R
\name{Brier}
\alias{Brier}
\title{Brier score}
\usage{
Brier(probabilities, truth, negative, positive)
}
\arguments{
\item{probabilities}{[numeric] vector of predicted probabilities}
\item{truth}{vector of true values}... |
# Usage example:
# Rscript L.saxatilis-Mate-choice/scripts/mods_comp.R --modelone models/gaus_skew/SKEW/gaus_skew.rds \
# --modeltwo models/gaus_skew/BCDG_shore/gaus_skew_hier_BCDG_shore.rds --modelthree models/gaus_skew/BCDG_eco/gaus_skew_hier_BCDG_eco.rds \
# --modelfour models/gaus_skew/BCDG/gaus_skew_hier_BCDG.... | /scripts/mods_comp.R | no_license | sam0per/L.saxatilis-Mate-choice | R | false | false | 11,331 | r | # Usage example:
# Rscript L.saxatilis-Mate-choice/scripts/mods_comp.R --modelone models/gaus_skew/SKEW/gaus_skew.rds \
# --modeltwo models/gaus_skew/BCDG_shore/gaus_skew_hier_BCDG_shore.rds --modelthree models/gaus_skew/BCDG_eco/gaus_skew_hier_BCDG_eco.rds \
# --modelfour models/gaus_skew/BCDG/gaus_skew_hier_BCDG.... |
##get ContribUrl of the BrainConductor repository,
##the package should be available via the Url,
##or the function will check it for older R version.
.getContribUrl <-
function(BCoVersion)
{
.contribUrl <-
function(repos, replace_oldRepos = FALSE)
{
contribUrl <- contrib.url(repos)
... | /BrainCoSetup/R/updateBCoPkg.R | no_license | haixiao990/BrainConductor | R | false | false | 4,547 | r | ##get ContribUrl of the BrainConductor repository,
##the package should be available via the Url,
##or the function will check it for older R version.
.getContribUrl <-
function(BCoVersion)
{
.contribUrl <-
function(repos, replace_oldRepos = FALSE)
{
contribUrl <- contrib.url(repos)
... |
library(poker)
### Name: assignToPlayers
### Title: assignToPlayers
### Aliases: assignToPlayers
### ** Examples
assignToPlayers(9,9,1:23)
assignToPlayers(9,1,1:23)
assignToPlayers(9,1,c(1:17,24,48:52))
| /data/genthat_extracted_code/poker/examples/assignToPlayers.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 210 | r | library(poker)
### Name: assignToPlayers
### Title: assignToPlayers
### Aliases: assignToPlayers
### ** Examples
assignToPlayers(9,9,1:23)
assignToPlayers(9,1,1:23)
assignToPlayers(9,1,c(1:17,24,48:52))
|
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Investment Proper... | /ui.R | no_license | Qaiserijaz/developingdataproduct | R | false | false | 1,714 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Investment Proper... |
# Installing older version of statnet.common package (this may take a while)
devtools::install_version("statnet.common", version = "4.1.2", repos = "http://cran.us.r-project.org")
# Installing CRAN packages (this may take a while)
packages <- c("devtools", "tm","quanteda", "tuber","qdapRegex","rlang","purrr","ggplot2"... | /binder/install.R | no_license | gesiscss/YouTubeComments | R | false | false | 1,044 | r | # Installing older version of statnet.common package (this may take a while)
devtools::install_version("statnet.common", version = "4.1.2", repos = "http://cran.us.r-project.org")
# Installing CRAN packages (this may take a while)
packages <- c("devtools", "tm","quanteda", "tuber","qdapRegex","rlang","purrr","ggplot2"... |
if(!require("pacman")) install.packages("pacman")
p_load("tidyverse", "xlsx", "sandwich", "lmtest")
library("lpirfs")
GW_dataset <- read.xlsx("data/Returns_short_interest_data.xlsx",
sheetName = "GW variables")
GW_varset <- as.data.frame(apply(GW_dataset, 2, as.numeric)) %>%
f... | /replication.R | no_license | GabboCg/IVX-Wald-and-qLLL-hat | R | false | false | 9,156 | r | if(!require("pacman")) install.packages("pacman")
p_load("tidyverse", "xlsx", "sandwich", "lmtest")
library("lpirfs")
GW_dataset <- read.xlsx("data/Returns_short_interest_data.xlsx",
sheetName = "GW variables")
GW_varset <- as.data.frame(apply(GW_dataset, 2, as.numeric)) %>%
f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deploy.R
\name{deploy}
\alias{deploy}
\alias{deploy_current}
\title{Deploy a bundle}
\usage{
deploy(
connect,
bundle,
name = create_random_name(),
title = name,
guid = NULL,
...,
.pre_deploy = {
}
)
deploy_current(content)
}
\... | /man/deploy.Rd | permissive | rstudio/connectapi | R | false | true | 2,082 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deploy.R
\name{deploy}
\alias{deploy}
\alias{deploy_current}
\title{Deploy a bundle}
\usage{
deploy(
connect,
bundle,
name = create_random_name(),
title = name,
guid = NULL,
...,
.pre_deploy = {
}
)
deploy_current(content)
}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/foo.R
\name{plotpairs2}
\alias{plotpairs2}
\title{plot pair-wise correlations with p value. in: a dataframe. out: a figure.}
\usage{
plotpairs2(data, lower.panel = panel.smooth, upper.panel = panel.cor,
diag.panel = panel.diag, lwd = 2,... | /man/plotpairs2.Rd | no_license | JanusChoi/beginr | R | false | true | 829 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/foo.R
\name{plotpairs2}
\alias{plotpairs2}
\title{plot pair-wise correlations with p value. in: a dataframe. out: a figure.}
\usage{
plotpairs2(data, lower.panel = panel.smooth, upper.panel = panel.cor,
diag.panel = panel.diag, lwd = 2,... |
#' Plot simple features simply
#'
#' Overrides `sf::plot.sf` and wraps the call to `plot(st_geometry(x))`. When
#' working with spatial data it's often useful to create maps where we
#' overlay spatially coincident data in a plot.
#'
#' This is used so that plots aren't always facetted by all attributes, coloured
#' by... | /R/plot.R | no_license | cran/basf | R | false | false | 1,177 | r | #' Plot simple features simply
#'
#' Overrides `sf::plot.sf` and wraps the call to `plot(st_geometry(x))`. When
#' working with spatial data it's often useful to create maps where we
#' overlay spatially coincident data in a plot.
#'
#' This is used so that plots aren't always facetted by all attributes, coloured
#' by... |
# data.table package - faster version of data.frame. Written in C
# new syntax
DF=data.frame(x=rnorm(9), y=rep(c("a","b","c"),each=3),z=rnorm(9))
head(DF)
DF
library(data.table)
DF=data.table(x=rnorm(9), y=rep(c("a","b","c"),each=3),z=rnorm(9))
DF
tables() # shows all tables in memory
DF[2,] subsets
DF[DF$y=="a",]... | /Week 1 - Data Table Package.R | no_license | MHCoursera/GettingCleaningDataLectures | R | false | false | 1,603 | r |
# data.table package - faster version of data.frame. Written in C
# new syntax
DF=data.frame(x=rnorm(9), y=rep(c("a","b","c"),each=3),z=rnorm(9))
head(DF)
DF
library(data.table)
DF=data.table(x=rnorm(9), y=rep(c("a","b","c"),each=3),z=rnorm(9))
DF
tables() # shows all tables in memory
DF[2,] subsets
DF[DF$y=="a",]... |
library(Interpol.T)
date<-date.time(day.begin="01/04/2020", day.end="31/07/2020", date.format= "d/m/y") # generate Date hour
tempd <- read.table("result.txt", sep="\t", header=FALSE) #from python program CIBSE Algorithm
x <- data.frame(date$year ,date$month, date$day, date$hour, tempd$V2)
y <- data.frame(x$year,x... | /Split_day2hour.R | no_license | kashiff007/netCDF-Processing-Pipeline | R | false | false | 658 | r | library(Interpol.T)
date<-date.time(day.begin="01/04/2020", day.end="31/07/2020", date.format= "d/m/y") # generate Date hour
tempd <- read.table("result.txt", sep="\t", header=FALSE) #from python program CIBSE Algorithm
x <- data.frame(date$year ,date$month, date$day, date$hour, tempd$V2)
y <- data.frame(x$year,x... |
# run_analysis.R - script that does the following:
# 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activities in the data set
# 4. Appropriately lab... | /run_analysis.R | no_license | baderstine/gcd-course-project | R | false | false | 3,727 | r | # run_analysis.R - script that does the following:
# 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activities in the data set
# 4. Appropriately lab... |
##Transcript abundance to Gene counts (ensembl)
# The following code takes transcript count data outputed from kallisto and summarises the abundance to the gene level for further use in coexpression networks
## Install Packages
#tximport
# try http:// if https:// URLs are not supported
# source("https://bioconductor... | /functions/convert_transcript_to_gene_tximport.R | no_license | alecstansell/code-masters | R | false | false | 2,108 | r | ##Transcript abundance to Gene counts (ensembl)
# The following code takes transcript count data outputed from kallisto and summarises the abundance to the gene level for further use in coexpression networks
## Install Packages
#tximport
# try http:// if https:// URLs are not supported
# source("https://bioconductor... |
#############################################################################################
#
# Mirror, mirror ... best batsman of them all
# Designed and developed by: Tinniam V Ganesh
# Date: 24 March 2015
# More details - https://gigadom.wordpress.com
#
########################################################... | /src/batsman.R | no_license | tvganesh/bestBatsman | R | false | false | 4,030 | r | #############################################################################################
#
# Mirror, mirror ... best batsman of them all
# Designed and developed by: Tinniam V Ganesh
# Date: 24 March 2015
# More details - https://gigadom.wordpress.com
#
########################################################... |
# Samsara API
#
# # Introduction Samsara provides API endpoints for interacting with Samsara Cloud, so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets. The Samsara Cloud API is a [RESTful API](htt... | /openapi-generator/r/R/trip_response_trips.R | no_license | silverspace/samsara-sdks | R | false | false | 15,984 | r | # Samsara API
#
# # Introduction Samsara provides API endpoints for interacting with Samsara Cloud, so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets. The Samsara Cloud API is a [RESTful API](htt... |
install.packages('tidyverse')
#install.packages('sva')
#install.packages('patchwork')
#install.packages('RColorBrewer')
install.packages('gplots')
install.packages('devtools')
install.packages('broom')
#install.packages('Biobase')
#install.packages('limma')
#install.packages('edge')
#install.packages('genefilter')
#ins... | /H2/otreba_homework2.R | no_license | jakubotreba/jakubotreba | R | false | false | 5,055 | r | install.packages('tidyverse')
#install.packages('sva')
#install.packages('patchwork')
#install.packages('RColorBrewer')
install.packages('gplots')
install.packages('devtools')
install.packages('broom')
#install.packages('Biobase')
#install.packages('limma')
#install.packages('edge')
#install.packages('genefilter')
#ins... |
# G64164008
# Rya Meyvriska
# Praktikum 2
# 1. Mempersiapkan data
dt <- read.table("https://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/wdbc.data", sep = ',')
dt <- dt[,-1] #menghilangkan fitur v1, karena isinya hanya ID
# 2. Split data
dtClassB <- dt[which(dt$V2=='B'),]
dtClassM <- dt[w... | /code/kNNOverSampling.R | no_license | RyMey/Classification-Breast-Cancer-Wisconsin-Diagnostic-Data-Set-with-kNN | R | false | false | 3,119 | r | # G64164008
# Rya Meyvriska
# Praktikum 2
# 1. Mempersiapkan data
dt <- read.table("https://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/wdbc.data", sep = ',')
dt <- dt[,-1] #menghilangkan fitur v1, karena isinya hanya ID
# 2. Split data
dtClassB <- dt[which(dt$V2=='B'),]
dtClassM <- dt[w... |
# Gene set enrichment analysis
# Package: piano
# https://github.com/sysmedicine/phd2018/blob/master/Workshop/TranscriptomicsWorkshop/Part2/Rcode.R
GSE_input_Table <- as.data.frame(read_excel("./Dataset_liv_kid_hepa/GSE_Table/atorvastatin.xlsx"))
if (!requireNamespace("BiocManager", quietly = TRUE))
in... | /scripts/DrugM_Affymetrics_GSEA_process.R | no_license | YouchengZHANG/ProjectDrugRepurposing | R | false | false | 25,398 | r |
# Gene set enrichment analysis
# Package: piano
# https://github.com/sysmedicine/phd2018/blob/master/Workshop/TranscriptomicsWorkshop/Part2/Rcode.R
GSE_input_Table <- as.data.frame(read_excel("./Dataset_liv_kid_hepa/GSE_Table/atorvastatin.xlsx"))
if (!requireNamespace("BiocManager", quietly = TRUE))
in... |
cyan <- 3
magenta <- 5
yellow <- 7
# Assign a variable `p` as the probability of choosing a cyan ball from the box
p <- cyan / (cyan + magenta + yellow)
p # 0.2
# probability that the ball you draw from the box will NOT be cyan
1-p # 0.8
| /1_Discrete_Probability.R | no_license | rishi10819/probability | R | false | false | 243 | r | cyan <- 3
magenta <- 5
yellow <- 7
# Assign a variable `p` as the probability of choosing a cyan ball from the box
p <- cyan / (cyan + magenta + yellow)
p # 0.2
# probability that the ball you draw from the box will NOT be cyan
1-p # 0.8
|
library(BioGeoBEARS)
### Name: getAIC_weight_for_model1
### Title: Calculate Akaike Weight
### Aliases: getAIC_weight_for_model1
### ** Examples
test=1
AICval_1 = 20
AICvals = c(20,30,40)
getAIC_weight_for_model1(AICval_1, AICvals)
| /data/genthat_extracted_code/BioGeoBEARS/examples/getAIC_weight_for_model1.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 240 | r | library(BioGeoBEARS)
### Name: getAIC_weight_for_model1
### Title: Calculate Akaike Weight
### Aliases: getAIC_weight_for_model1
### ** Examples
test=1
AICval_1 = 20
AICvals = c(20,30,40)
getAIC_weight_for_model1(AICval_1, AICvals)
|
\name{BestMatches2ProjectedPoints}
\alias{BestMatches2ProjectedPoints}
\title{
BestMatches2ProjectedPoints
}
\description{
Converts quadgrid coordinates (= BestMatchingUnit coordinates) to a set of cartesian (x,y) coordinates
}
\usage{
BestMatches2ProjectedPoints(Bestmatches, Lines)
}
%- maybe also 'usage... | /DbtTools/Projections/man/BestMatches2ProjectedPoints.Rd | no_license | markus-flicke/KD_Projekt_1 | R | false | false | 574 | rd | \name{BestMatches2ProjectedPoints}
\alias{BestMatches2ProjectedPoints}
\title{
BestMatches2ProjectedPoints
}
\description{
Converts quadgrid coordinates (= BestMatchingUnit coordinates) to a set of cartesian (x,y) coordinates
}
\usage{
BestMatches2ProjectedPoints(Bestmatches, Lines)
}
%- maybe also 'usage... |
library(shiny)
library(plotly)
library(statsfoRstudents)
library(shinyjs)
#library(tidyverse)
library(dplyr)
#library(checkmate)
shinyUI(fluidPage(title="STAT 585",useShinyjs(),
tabsetPanel(#widths=c(2,10),
tabPanel(title = h4("Type I Error vs Type II error"),
... | /inst/shiny/ui.R | permissive | kgulzina/statsfoRstudents | R | false | false | 29,715 | r | library(shiny)
library(plotly)
library(statsfoRstudents)
library(shinyjs)
#library(tidyverse)
library(dplyr)
#library(checkmate)
shinyUI(fluidPage(title="STAT 585",useShinyjs(),
tabsetPanel(#widths=c(2,10),
tabPanel(title = h4("Type I Error vs Type II error"),
... |
## Export: inla.pc.ddof
##! \name{pc.ddof}
##! \alias{pc.ddof}
##! \alias{inla.pc.ddof}
##! \alias{pc.t}
##! \alias{pc.dof}
##! \alias{inla.pc.t}
##! \alias{inla.pc.dof}
##!
##! \title{PC-prior for dof in a standarized Student-t}
##!
##! \description{A function to evaluate the PC-prior for the degrees of freedom
##! ... | /R/pc-t.R | no_license | inbo/INLA | R | false | false | 564,567 | r | ## Export: inla.pc.ddof
##! \name{pc.ddof}
##! \alias{pc.ddof}
##! \alias{inla.pc.ddof}
##! \alias{pc.t}
##! \alias{pc.dof}
##! \alias{inla.pc.t}
##! \alias{inla.pc.dof}
##!
##! \title{PC-prior for dof in a standarized Student-t}
##!
##! \description{A function to evaluate the PC-prior for the degrees of freedom
##! ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{bypass_prop_Q}
\alias{bypass_prop_Q}
\title{Proportion Flow at Yolo and Sutter Bypasses}
\format{A 3 dimensional array: 12 by 21 by 6 [months, years, bypasses]
\itemize{
\item [ , , 1] Sutter Bypass 1
\item [ ... | /man/bypass_prop_Q.Rd | no_license | elizabethshaw/cvpiaData | R | false | true | 828 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{bypass_prop_Q}
\alias{bypass_prop_Q}
\title{Proportion Flow at Yolo and Sutter Bypasses}
\format{A 3 dimensional array: 12 by 21 by 6 [months, years, bypasses]
\itemize{
\item [ , , 1] Sutter Bypass 1
\item [ ... |
test_that("get_SDA_hydric works", {
skip_if_offline()
skip_on_cran()
# by areasymbol
expect_equal(nrow(get_SDA_hydric(areasymbols = c("CA077", "CA630"))), 313)
# by mukey
expect_equal(nrow(get_SDA_hydric(mukeys = c(461994, 461995))), 2)
})
| /tests/testthat/test-SDA_hydric.R | no_license | Emory-ENVS-SihiLab/soilDB | R | false | false | 256 | r | test_that("get_SDA_hydric works", {
skip_if_offline()
skip_on_cran()
# by areasymbol
expect_equal(nrow(get_SDA_hydric(areasymbols = c("CA077", "CA630"))), 313)
# by mukey
expect_equal(nrow(get_SDA_hydric(mukeys = c(461994, 461995))), 2)
})
|
#' Check if Triangle has a Right Angle
#'
#' @param a Length of 1st side, doesn't need to be the longest or shortest
#' @param b Length of 2nd side, doesn't need to be the longest or shortest
#' @param c Length of 3rd side, doesn't need to be the longest or shortest
#'
#' @return The function returns true if it i... | /R/is_rightangle.R | no_license | hzwangjiren/jiren441final | R | false | false | 646 | r | #' Check if Triangle has a Right Angle
#'
#' @param a Length of 1st side, doesn't need to be the longest or shortest
#' @param b Length of 2nd side, doesn't need to be the longest or shortest
#' @param c Length of 3rd side, doesn't need to be the longest or shortest
#'
#' @return The function returns true if it i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.