content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/customProbFunctions.R
\name{autoSolution}
\alias{autoSolution}
\alias{fullSolution}
\alias{numericalSolution}
\title{Calculate and itegrate probability functions for shape functions}
\usage{
autoSolution(
suffix,
shape,
tau_0,
tau_n,
... | /man/autoSolution.Rd | no_license | FluvialLandscapeLab/hydrogeom | R | false | true | 5,277 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/customProbFunctions.R
\name{autoSolution}
\alias{autoSolution}
\alias{fullSolution}
\alias{numericalSolution}
\title{Calculate and itegrate probability functions for shape functions}
\usage{
autoSolution(
suffix,
shape,
tau_0,
tau_n,
... |
context("uninformative 8-parent markers")
test_that("Check that the eight-parent uninformative marker combination gives an RF estimate of NA in the right cases",
{
testInfiniteSelfing <- function(pedigree)
{
pedigree@selfing <- "infinite"
map <- sim.map(len = 10, n.mar = 2, anchor.tel=TRUE, include.x=FALSE, ... | /tests/testthat/test-approximatelyUninformative8.R | no_license | HZaw/mpMap2 | R | false | false | 2,287 | r | context("uninformative 8-parent markers")
test_that("Check that the eight-parent uninformative marker combination gives an RF estimate of NA in the right cases",
{
testInfiniteSelfing <- function(pedigree)
{
pedigree@selfing <- "infinite"
map <- sim.map(len = 10, n.mar = 2, anchor.tel=TRUE, include.x=FALSE, ... |
setwd("C:/Users/adi44/Desktop/ATM/Spring2018/STAT646/EXAM2")
set.seed(101)
Y <- read.csv("exam2_data2.csv", row.names = 1) #Load the data
m <- nrow(Y) # Get the rows
Y_train <- Y[, 1:225] # Training set
Y_test <- Y[, 226:300] # Testing set
GRP_train <- factor(rep(c("A", "B", "C"), each = 75)) # Create training ... | /Question2.R | no_license | adilahiri/BioInformatics | R | false | false | 1,201 | r | setwd("C:/Users/adi44/Desktop/ATM/Spring2018/STAT646/EXAM2")
set.seed(101)
Y <- read.csv("exam2_data2.csv", row.names = 1) #Load the data
m <- nrow(Y) # Get the rows
Y_train <- Y[, 1:225] # Training set
Y_test <- Y[, 226:300] # Testing set
GRP_train <- factor(rep(c("A", "B", "C"), each = 75)) # Create training ... |
install.packages("sp")
library(sp)
data(meuse)
# let's see how the meuse dataset is structured:
meuse
# let's look at the first row of the set:
head(meuse)
# let's plot two variables together
# let's see if zinc concentration is related to that of copper
attach(meuse)
plot(zinc,copper)
plot(zinc,copper,col="green")... | /R_code_first.r | no_license | irenecampetti2/monitoring | R | false | false | 401 | r | install.packages("sp")
library(sp)
data(meuse)
# let's see how the meuse dataset is structured:
meuse
# let's look at the first row of the set:
head(meuse)
# let's plot two variables together
# let's see if zinc concentration is related to that of copper
attach(meuse)
plot(zinc,copper)
plot(zinc,copper,col="green")... |
logon=read.csv(file="log_on.csv")
library(lubridate)
library(dplyr)
library(ggplot2)
library(sqldf)
library(corrplot)
library(glmnet)
str(logon)
head(logon,10)
head(finaldata,2)
###merge:
x=finaldata%>%
select(member_id,activity_play_id,activity_timestamp_start,month)
x$activity_play_id=as.character(x$activit... | /Churn Model.R | no_license | yuzhang1509/Game-Analytics-Educational-Game-Data-Analysis | R | false | false | 5,113 | r | logon=read.csv(file="log_on.csv")
library(lubridate)
library(dplyr)
library(ggplot2)
library(sqldf)
library(corrplot)
library(glmnet)
str(logon)
head(logon,10)
head(finaldata,2)
###merge:
x=finaldata%>%
select(member_id,activity_play_id,activity_timestamp_start,month)
x$activity_play_id=as.character(x$activit... |
library(shiny)
library(knitr, warn.conflicts = FALSE)
library(dplyr, warn.conflicts = FALSE)
library(ggplot2, warn.conflicts = FALSE)
library(tidyverse)
library(gplots)
library(rpart)
library(randomForest)
shinyServer(
function(input, output) {
# 3. wczytanie danych i 4. przetworzenie brakujacych danych
... | /server.R | no_license | mbero/r_shiny_example_app | R | false | false | 1,030 | r | library(shiny)
library(knitr, warn.conflicts = FALSE)
library(dplyr, warn.conflicts = FALSE)
library(ggplot2, warn.conflicts = FALSE)
library(tidyverse)
library(gplots)
library(rpart)
library(randomForest)
shinyServer(
function(input, output) {
# 3. wczytanie danych i 4. przetworzenie brakujacych danych
... |
source("readData.R")
sentencetype_general <- ratingtypes.df%>% mutate(
stimID=as.integer(item_type),#converting to the recommended integer-coding format for matrix representation
canon_status=ifelse(canon_status,1,2)
... | /data_2/STAformat.R | no_license | stevenlangsford/sentenceSTA | R | false | false | 3,178 | r | source("readData.R")
sentencetype_general <- ratingtypes.df%>% mutate(
stimID=as.integer(item_type),#converting to the recommended integer-coding format for matrix representation
canon_status=ifelse(canon_status,1,2)
... |
\name{NEWS}
\section{Changes in version 1.2.6}{
\subsection{NEW FEATURES}{
\itemize{
\item Added covariate argument to SIMrun to enable simulation with covariates
\item Internal moving of parseBlocks function to independent function
}
}
\subsection{BUG FIXES}{
\itemize{
\item Fixed small bug in makeNCA that caused an ... | /Pmetrics/inst/NEWS.Rd | no_license | nickibeaks/Pmetrics | R | false | false | 25,535 | rd | \name{NEWS}
\section{Changes in version 1.2.6}{
\subsection{NEW FEATURES}{
\itemize{
\item Added covariate argument to SIMrun to enable simulation with covariates
\item Internal moving of parseBlocks function to independent function
}
}
\subsection{BUG FIXES}{
\itemize{
\item Fixed small bug in makeNCA that caused an ... |
# source_me_create_one_file_20200904.R should be run first
library("reshape2")
mtl_involvement_df <- data.frame(id = c("sub-epilepsy03","sub-epilepsy05","sub-epilepsy11", "sub-epilepsy12","sub-epilepsy09","sub-epilepsy09","sub-epilepsy16"),
affected_side = c("left","right","left","right","right","left","right"))
v... | /hipp_amyg_analysis_loo_20200904/source_me_reformat_hipp_amyg_vols_to_long_20200916.R | no_license | hpardoe/hacl | R | false | false | 1,945 | r | # source_me_create_one_file_20200904.R should be run first
library("reshape2")
mtl_involvement_df <- data.frame(id = c("sub-epilepsy03","sub-epilepsy05","sub-epilepsy11", "sub-epilepsy12","sub-epilepsy09","sub-epilepsy09","sub-epilepsy16"),
affected_side = c("left","right","left","right","right","left","right"))
v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{rtuvn_single}
\alias{rtuvn_single}
\title{Univariate Truncated Normal Distribution - single sample}
\usage{
rtuvn_single(mean, sd, lower, upper)
}
\description{
Generate one sample from the truncated normal distribution
T... | /man/rtuvn_single.Rd | no_license | kathsel/multlogreg | R | false | true | 349 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{rtuvn_single}
\alias{rtuvn_single}
\title{Univariate Truncated Normal Distribution - single sample}
\usage{
rtuvn_single(mean, sd, lower, upper)
}
\description{
Generate one sample from the truncated normal distribution
T... |
require(foreign)
require(tidyr)
################################################################
dat_ihoma<-read.spss("./Data/PMNS PREDIABETES DATA_27JUNE2019.sav",to.data.frame = T,use.value.labels = T)
df_labels<-data.frame(attr(dat_ihoma,"variable.labels"))
###### data for bergman plot ##############################... | /R_scripts/1.data_preprocessing.R | no_license | tiwaript/Disposition_index_analysis | R | false | false | 13,446 | r | require(foreign)
require(tidyr)
################################################################
dat_ihoma<-read.spss("./Data/PMNS PREDIABETES DATA_27JUNE2019.sav",to.data.frame = T,use.value.labels = T)
df_labels<-data.frame(attr(dat_ihoma,"variable.labels"))
###### data for bergman plot ##############################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cleanMerge.R
\name{cleanMerge}
\alias{cleanMerge}
\title{Clean up the entanglement time data for geary-carrying animals and merge it to \code{tangle}}
\usage{
cleanMerge(etime, tangle)
}
\arguments{
\item{etime}{- the timing of entan... | /man/cleanMerge.Rd | permissive | robschick/tangled | R | false | true | 718 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cleanMerge.R
\name{cleanMerge}
\alias{cleanMerge}
\title{Clean up the entanglement time data for geary-carrying animals and merge it to \code{tangle}}
\usage{
cleanMerge(etime, tangle)
}
\arguments{
\item{etime}{- the timing of entan... |
ANOM <- function(mc, xlabel=NULL, ylabel=NULL, printn=TRUE, printp=TRUE,
stdep=NULL, stind=NULL, pst=NULL, pbin=NULL, bg="white",
bgrid=TRUE, axlsize=18, axtsize=25, npsize=5, psize=5,
lwidth=1, dlstyle="dashed", fillcol="darkgray"){
if(!(class(mc)[1] %in% c(... | /R/ANOM.R | no_license | cran/ANOM | R | false | false | 12,165 | r | ANOM <- function(mc, xlabel=NULL, ylabel=NULL, printn=TRUE, printp=TRUE,
stdep=NULL, stind=NULL, pst=NULL, pbin=NULL, bg="white",
bgrid=TRUE, axlsize=18, axtsize=25, npsize=5, psize=5,
lwidth=1, dlstyle="dashed", fillcol="darkgray"){
if(!(class(mc)[1] %in% c(... |
library(spatsurv)
set.seed(10)
dat <- simsurv(mcmc.control=mcmcpars(nits=100,burn=10,thin=11),dist="exp")
X <- as.data.frame(dat$X) # covariates
survtimes <- dat$survtimes
n <- length(survtimes)
censtimes <- runif(n,min(survtimes),max(survtimes))
survdat <- gensens(survtimes,cens... | /tests/test_sim_ana.R | no_license | ssouyris/spatsurv | R | false | false | 720 | r | library(spatsurv)
set.seed(10)
dat <- simsurv(mcmc.control=mcmcpars(nits=100,burn=10,thin=11),dist="exp")
X <- as.data.frame(dat$X) # covariates
survtimes <- dat$survtimes
n <- length(survtimes)
censtimes <- runif(n,min(survtimes),max(survtimes))
survdat <- gensens(survtimes,cens... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dc.R
\name{dc.MakeRFmatrixSkeleton}
\alias{dc.MakeRFmatrixSkeleton}
\title{Make Recency-Frequency Matrix Skeleton}
\usage{
dc.MakeRFmatrixSkeleton(n.periods)
}
\arguments{
\item{n.periods}{number of transaction opportunities in the calibratio... | /man/dc.MakeRFmatrixSkeleton.Rd | no_license | cran/BTYD | R | false | true | 666 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dc.R
\name{dc.MakeRFmatrixSkeleton}
\alias{dc.MakeRFmatrixSkeleton}
\title{Make Recency-Frequency Matrix Skeleton}
\usage{
dc.MakeRFmatrixSkeleton(n.periods)
}
\arguments{
\item{n.periods}{number of transaction opportunities in the calibratio... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/rds.data.frame.R
\name{get.seed.rid}
\alias{get.seed.rid}
\title{Gets the recruiter id assosiated with the seeds}
\usage{
get.seed.rid(x, check.type = TRUE)
}
\arguments{
\item{x}{an rds.data.frame object}
\item{check.type}{if true, ... | /man/get.seed.rid.Rd | no_license | ifellows/RDS | R | false | false | 503 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/rds.data.frame.R
\name{get.seed.rid}
\alias{get.seed.rid}
\title{Gets the recruiter id assosiated with the seeds}
\usage{
get.seed.rid(x, check.type = TRUE)
}
\arguments{
\item{x}{an rds.data.frame object}
\item{check.type}{if true, ... |
##AIRPORT TOP SIX TIMELINE##
library(ggplot2)
library(plyr)
library(reshape2)
library(extrafont)
setwd("E:/ROUTES/Year One Airport Seizure Analysis/R")
tot <- read.csv("tot.csv")
air <- data.frame(table(tot$Location))
air[air == 0] <- NA
air[air == ""] <- NA
air <- air[complete.cases(air),]
names(air) <- c("airport... | /over_air_timeline.R | no_license | pbaine/ROUTES | R | false | false | 1,709 | r | ##AIRPORT TOP SIX TIMELINE##
library(ggplot2)
library(plyr)
library(reshape2)
library(extrafont)
setwd("E:/ROUTES/Year One Airport Seizure Analysis/R")
tot <- read.csv("tot.csv")
air <- data.frame(table(tot$Location))
air[air == 0] <- NA
air[air == ""] <- NA
air <- air[complete.cases(air),]
names(air) <- c("airport... |
## makeCacheMatrix function creates a special "matrix" object that can
## cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
x_inv <- NULL
set <- function(y) {
x <<- y
x_inv <<- NULL
}
get <- function() x
setinverse <- functi... | /cachematrix.R | no_license | Mael23/ProgrammingAssignment2 | R | false | false | 1,142 | r | ## makeCacheMatrix function creates a special "matrix" object that can
## cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
x_inv <- NULL
set <- function(y) {
x <<- y
x_inv <<- NULL
}
get <- function() x
setinverse <- functi... |
## Ensures that all non-standard R packages are installed
## Downloads the original dataset and verifies its content
packages <- c("data.table", "reshape2")
sapply(packages, require, character.only=TRUE, quietly=TRUE)
path <- getwd()
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20H... | /Run_analysis.R | no_license | leelagithubrepo/Getting-Cleaningdata-Week4 | R | false | false | 2,777 | r | ## Ensures that all non-standard R packages are installed
## Downloads the original dataset and verifies its content
packages <- c("data.table", "reshape2")
sapply(packages, require, character.only=TRUE, quietly=TRUE)
path <- getwd()
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20H... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AmerAssocIndividInvestorsAAII.R
\name{dbdfMatchColsEM}
\alias{dbdfMatchColsEM}
\title{Bind New Columns to a Server or Local and Re-Order Columns}
\usage{
dbdfMatchColsEM(
connName,
name = substitute(value),
value,
temporary = FALSE,
... | /man/dbdfMatchColsEM.Rd | no_license | AndreMikulec/econModel | R | false | true | 3,078 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AmerAssocIndividInvestorsAAII.R
\name{dbdfMatchColsEM}
\alias{dbdfMatchColsEM}
\title{Bind New Columns to a Server or Local and Re-Order Columns}
\usage{
dbdfMatchColsEM(
connName,
name = substitute(value),
value,
temporary = FALSE,
... |
library(ComplexHeatmap)
library(circlize)
HM_clusters <- Heatmap(matrix = mat)
draw(HM_clusters)
L1 <- row_order(HM_clusters) #Extract clusters (output is a list)
getHMClust <- function(L1, mat){
df3 <- NULL
for(i in 1:length(L1)){
df1 <- NULL
tab <- NULL
for(j in 1:length(L1[[i]])){
tab <- r... | /getHMClust.R | no_license | labio-unesp/Bioinfo | R | false | false | 637 | r | library(ComplexHeatmap)
library(circlize)
HM_clusters <- Heatmap(matrix = mat)
draw(HM_clusters)
L1 <- row_order(HM_clusters) #Extract clusters (output is a list)
getHMClust <- function(L1, mat){
df3 <- NULL
for(i in 1:length(L1)){
df1 <- NULL
tab <- NULL
for(j in 1:length(L1[[i]])){
tab <- r... |
library(caret)
library(dslabs)
data(heights)
y <- heights$sex
x <- heights$height
set.seed(2)
test_index <- createDataPartition(y, times = 1, p = 0.5, list = FALSE)
test_set <- heights[test_index, ]
train_set <- heights[-test_index, ]
y_hat <- sample(c("Male", "Female"),length(test_index), replace = TRUE)
y_hat <... | /height-analysis-R/analysis.R | no_license | kusalhettiarachchi/Machine-Learning | R | false | false | 1,194 | r | library(caret)
library(dslabs)
data(heights)
y <- heights$sex
x <- heights$height
set.seed(2)
test_index <- createDataPartition(y, times = 1, p = 0.5, list = FALSE)
test_set <- heights[test_index, ]
train_set <- heights[-test_index, ]
y_hat <- sample(c("Male", "Female"),length(test_index), replace = TRUE)
y_hat <... |
#library(rstan)
setwd("/Users/karimimohammedbelhal/Desktop/variationalBayes/mcmc_R_isolate/Dir2")
source('compute_LL.R')
source('func_aux.R')
source('func_cov.R')
source('func_distcond.R')
source('func_FIM.R')
source('func_ggplot2.R')
source('func_plots.R')
source('func_simulations.R')
source(... | /PKPD - Main/oxboys/saem_mamyula.R | no_license | BelhalK/AccelerationTrainingAlgorithms | R | false | false | 3,719 | r | #library(rstan)
setwd("/Users/karimimohammedbelhal/Desktop/variationalBayes/mcmc_R_isolate/Dir2")
source('compute_LL.R')
source('func_aux.R')
source('func_cov.R')
source('func_distcond.R')
source('func_FIM.R')
source('func_ggplot2.R')
source('func_plots.R')
source('func_simulations.R')
source(... |
#' Plot CGH data
#'
#' Given a vector of gains/losses at CGH spots, this makes a plot of gain/loss
#' on each chromosome.
#'
#' This function makes a plot of regions of genomic gain/loss.
#'
#' @param array A vector containing the chromosomal location of each CGH spot.
#' @param chrom A numeric vector of the same lengt... | /R/PlotFusedLasso.R | no_license | cran/PMA | R | false | false | 3,963 | r | #' Plot CGH data
#'
#' Given a vector of gains/losses at CGH spots, this makes a plot of gain/loss
#' on each chromosome.
#'
#' This function makes a plot of regions of genomic gain/loss.
#'
#' @param array A vector containing the chromosomal location of each CGH spot.
#' @param chrom A numeric vector of the same lengt... |
################################################################################
context("test-nlines.R")
################################################################################
test_that("'nlines()' works", {
expect_error(nlines("does_not_exist.txt"))
strings <- readRDS(system.file("testdat... | /tests/testthat/test-nlines.R | no_license | cran/bigreadr | R | false | false | 1,233 | r | ################################################################################
context("test-nlines.R")
################################################################################
test_that("'nlines()' works", {
expect_error(nlines("does_not_exist.txt"))
strings <- readRDS(system.file("testdat... |
# Hello World!
# Test please.
#
# Update | /R/testfile.R | no_license | Bowlesna/LabWorkNathan | R | false | false | 41 | r | # Hello World!
# Test please.
#
# Update |
## our version of separability metric
ComputeSeparability <- function(input.data, cells.1, cells.2) {
if (length(cells.1) < 3) {
#warning("Fewer than 3 cells in the first group (cells.1)")
return(NA)
}
if (length(cells.2) < 3) {
#warning("Fewer than 3 cells in the second group (cells.2)")
return(N... | /functions.R | no_license | vladchimescu/hca2018 | R | false | false | 2,472 | r | ## our version of separability metric
ComputeSeparability <- function(input.data, cells.1, cells.2) {
if (length(cells.1) < 3) {
#warning("Fewer than 3 cells in the first group (cells.1)")
return(NA)
}
if (length(cells.2) < 3) {
#warning("Fewer than 3 cells in the second group (cells.2)")
return(N... |
#read the column/feature names
colNames <- read.csv('UCI HAR Dataset/features.txt',header=FALSE, sep='', stringsAsFactors=FALSE)$V2
#read the training file
trainData <- read.csv('UCI HAR Dataset/train/X_train.txt',header=FALSE,sep='')
#set the column names
names(trainData) <- colNames
#read the training label file
tr... | /run_analysis.R | no_license | jangedoo/cleaningdata_coursera | R | false | false | 2,917 | r | #read the column/feature names
colNames <- read.csv('UCI HAR Dataset/features.txt',header=FALSE, sep='', stringsAsFactors=FALSE)$V2
#read the training file
trainData <- read.csv('UCI HAR Dataset/train/X_train.txt',header=FALSE,sep='')
#set the column names
names(trainData) <- colNames
#read the training label file
tr... |
library(ape)
testtree <- read.tree("3981_8.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3981_8_unrooted.txt") | /codeml_files/newick_trees_processed/3981_8/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("3981_8.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3981_8_unrooted.txt") |
#' ---
#' title: "Evidence synthesis IRS model:
#' jags using 4 category data and aggregated data"
#'
#' author: "N Green"
#' date: "`r format(Sys.Date())`"
#' output:
#' html_document:
#' keep_md: TRUE
#' ---
library(R2jags)
library(R2WinBUGS)
library(purrr)
data_a <- read.csv(here::here("data input", "N2_da... | /scripts/script_WinBUGS_evidsynth.R | no_license | n8thangreen/malaria_evidence_synthesis | R | false | false | 2,556 | r |
#' ---
#' title: "Evidence synthesis IRS model:
#' jags using 4 category data and aggregated data"
#'
#' author: "N Green"
#' date: "`r format(Sys.Date())`"
#' output:
#' html_document:
#' keep_md: TRUE
#' ---
library(R2jags)
library(R2WinBUGS)
library(purrr)
data_a <- read.csv(here::here("data input", "N2_da... |
plotcompprm <-
function(prmdcvobj,...)
{
# Generate plot showing optimal number of components for
# Repeated Double Cross Validation of PRM
#
prm.dcv.optcomp <- table(prmdcvobj$optco)/sum(table(prmdcvobj$optco))
plot(names(prm.dcv.optcomp),prm.dcv.optcomp,type="b",
xlab="Number of components",ylab="Relative frequenc... | /R/plotcompprm.R | no_license | amoriml52/chemometrics | R | false | false | 497 | r | plotcompprm <-
function(prmdcvobj,...)
{
# Generate plot showing optimal number of components for
# Repeated Double Cross Validation of PRM
#
prm.dcv.optcomp <- table(prmdcvobj$optco)/sum(table(prmdcvobj$optco))
plot(names(prm.dcv.optcomp),prm.dcv.optcomp,type="b",
xlab="Number of components",ylab="Relative frequenc... |
library(shiny)
ui <- fluidPage(
fluidRow(
column(width = 12,
tags$h1('R-ladies libs'))
),
fluidRow(
column(width = 4,
textInput(inputId = 'adjective1', label = 'adjective'),
textInput('verb1', 'verb ending in "ing"'),
textInput('verb2', 'verb ending in "ing"'),... | /app.R | no_license | thesadie/mad-libs | R | false | false | 904 | r | library(shiny)
ui <- fluidPage(
fluidRow(
column(width = 12,
tags$h1('R-ladies libs'))
),
fluidRow(
column(width = 4,
textInput(inputId = 'adjective1', label = 'adjective'),
textInput('verb1', 'verb ending in "ing"'),
textInput('verb2', 'verb ending in "ing"'),... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stickyFigure.R
\name{sticky}
\alias{sticky}
\title{importFrom shiny runApp}
\usage{
sticky()
}
\description{
importFrom shiny runApp
}
| /man/sticky.Rd | no_license | lshep/LorisWorld | R | false | true | 214 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stickyFigure.R
\name{sticky}
\alias{sticky}
\title{importFrom shiny runApp}
\usage{
sticky()
}
\description{
importFrom shiny runApp
}
|
# Course Script day 4, 21.11.17
setwd("C:/Users/Ltischer/Documents/Studium/A Master/Geostatistics/R-Skripte/geostat_course_scripts/geostat_course_scripts")
# 1) Repetition -creating raster and vector data ####
# task: create data and recode it.
library(car)
random_data <- rnorm(n = 10, mean = 20, sd = 5)
random_data... | /4_geostat_21_11_17.R | no_license | LuciaTi/geostat_course_scripts | R | false | false | 5,956 | r | # Course Script day 4, 21.11.17
setwd("C:/Users/Ltischer/Documents/Studium/A Master/Geostatistics/R-Skripte/geostat_course_scripts/geostat_course_scripts")
# 1) Repetition -creating raster and vector data ####
# task: create data and recode it.
library(car)
random_data <- rnorm(n = 10, mean = 20, sd = 5)
random_data... |
## Processing Xiaomeng's Exposure Data for R
setwd("D:/Users/profu/Documents/Schoolwork/PhD/Research Projects/haqast/data")
options(mc.cores=parallel::detectCores())
library(tidyverse)
exposure <- read_csv("data_for_r_v3.csv")
exposure <- janitor::clean_names(exposure)
exposure$newdate <- as.Date(exposure$date, for... | /code/01_2019_exposure_processing.R | no_license | mike-z-he/haqast | R | false | false | 1,029 | r | ## Processing Xiaomeng's Exposure Data for R
setwd("D:/Users/profu/Documents/Schoolwork/PhD/Research Projects/haqast/data")
options(mc.cores=parallel::detectCores())
library(tidyverse)
exposure <- read_csv("data_for_r_v3.csv")
exposure <- janitor::clean_names(exposure)
exposure$newdate <- as.Date(exposure$date, for... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prosail.R
\name{pro4sail}
\alias{pro4sail}
\title{PRO4SAIL model}
\usage{
pro4sail(param)
}
\arguments{
\item{param}{Vector of PRO4SAIL parameter values:
N: Effective number of leaf layers (>1)
Cab: Leaf chlorophyll content (ug/cm2) (>0)
Car:... | /modules/rtm/man/pro4sail.Rd | permissive | Kah5/pecan | R | false | true | 1,062 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prosail.R
\name{pro4sail}
\alias{pro4sail}
\title{PRO4SAIL model}
\usage{
pro4sail(param)
}
\arguments{
\item{param}{Vector of PRO4SAIL parameter values:
N: Effective number of leaf layers (>1)
Cab: Leaf chlorophyll content (ug/cm2) (>0)
Car:... |
compute_TAarea <- function(antennaConf, grid, network_type){
if (network_type == '4G') {
delta <- 78.07
}
if (network_type == '3G') {
delta <- 554
}
tileDim_x <- grid$'X Tile Dim'
tileDim_y <- grid$'Y Tile Dim'
nTiles_x <- grid$'No Tiles X'
nTiles_y <-... | /code/src/compute_TAarea.R | no_license | maria-cf/MobileNetworkDataSimulationTemplate | R | false | false | 2,649 | r | compute_TAarea <- function(antennaConf, grid, network_type){
if (network_type == '4G') {
delta <- 78.07
}
if (network_type == '3G') {
delta <- 554
}
tileDim_x <- grid$'X Tile Dim'
tileDim_y <- grid$'Y Tile Dim'
nTiles_x <- grid$'No Tiles X'
nTiles_y <-... |
\name{tsea.expression.decode}
\alias{tsea.expression.decode}
\title{Tissue-specific enrichment analysis for RNA-Seq expression profiles
}
\description{Tissue-specific enrichment analysis to decode whether a given RNA-seq sample (RPKM) with potential confounding effects based on expression profiles.
}
\usage{
tse... | /man/tsea.expression.decode.Rd | no_license | cran/deTS | R | false | false | 1,900 | rd | \name{tsea.expression.decode}
\alias{tsea.expression.decode}
\title{Tissue-specific enrichment analysis for RNA-Seq expression profiles
}
\description{Tissue-specific enrichment analysis to decode whether a given RNA-seq sample (RPKM) with potential confounding effects based on expression profiles.
}
\usage{
tse... |
library(tidyverse)
library(Matrix)
library(tm)
library(wordcloud)
library(patchwork)
library(ggwordcloud)
library(wordcloud)
library(tidytext)
library(gridExtra)
library(gridGraphics)
library(ggplotify)
################################################################################
# FREQUENCIES
#####################... | /EDA/word_clouds.R | no_license | MichaelKitchener98/RedditIdeology-Honours2021 | R | false | false | 8,187 | r | library(tidyverse)
library(Matrix)
library(tm)
library(wordcloud)
library(patchwork)
library(ggwordcloud)
library(wordcloud)
library(tidytext)
library(gridExtra)
library(gridGraphics)
library(ggplotify)
################################################################################
# FREQUENCIES
#####################... |
#' projection of 2d line on a straight line
#'
#' @param co a numeric two-column matrix with the coordinates of the line in columns
#' @param alpha angle of the projection line with respect to the x-axis
#' @return A 2-column matrix with the projected x and y coordinates
#' ('xp' and 'yp').
#' @description The orthogon... | /R/prl2d.R | no_license | emielvanloon/amoter | R | false | false | 1,089 | r | #' projection of 2d line on a straight line
#'
#' @param co a numeric two-column matrix with the coordinates of the line in columns
#' @param alpha angle of the projection line with respect to the x-axis
#' @return A 2-column matrix with the projected x and y coordinates
#' ('xp' and 'yp').
#' @description The orthogon... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_gstar.R
\name{plot.gstar}
\alias{plot.gstar}
\title{Plotting the gstar object}
\usage{
\method{plot}{gstar}(x, testing = NULL, n_predict = NULL, ...)
}
\arguments{
\item{x}{an object of class "gstar".}
\item{testing}{The testing data to... | /man/plot.gstar.Rd | no_license | cran/gstar | R | false | true | 521 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_gstar.R
\name{plot.gstar}
\alias{plot.gstar}
\title{Plotting the gstar object}
\usage{
\method{plot}{gstar}(x, testing = NULL, n_predict = NULL, ...)
}
\arguments{
\item{x}{an object of class "gstar".}
\item{testing}{The testing data to... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coo-utilities.R
\name{coo_ldk}
\alias{coo_ldk}
\title{Defines interactively landmarks}
\usage{
coo_ldk(coo, nb.ldk)
}
\arguments{
\item{coo}{a \code{matrix} or a list of (x; y) coordinates.}
\item{nb.ldk}{\code{integer}, the number of landma... | /man/coo_ldk.Rd | no_license | yuting27/Momocs | R | false | true | 703 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coo-utilities.R
\name{coo_ldk}
\alias{coo_ldk}
\title{Defines interactively landmarks}
\usage{
coo_ldk(coo, nb.ldk)
}
\arguments{
\item{coo}{a \code{matrix} or a list of (x; y) coordinates.}
\item{nb.ldk}{\code{integer}, the number of landma... |
\name{print.hmmspec}
\alias{print.hmmspec}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Print function for hmmspec }
\description{
Prints the parameters contained in the object
}
\usage{
\method{print}{hmmspec}(x, ...)
}
\arguments{
\item{x}{ An object of type \code{hmmspec}}
\item{\dot... | /man/print.hmmspec.Rd | no_license | cran/mhsmm | R | false | false | 427 | rd | \name{print.hmmspec}
\alias{print.hmmspec}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Print function for hmmspec }
\description{
Prints the parameters contained in the object
}
\usage{
\method{print}{hmmspec}(x, ...)
}
\arguments{
\item{x}{ An object of type \code{hmmspec}}
\item{\dot... |
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that realizes single word prediction
shinyUI(fl... | /ui.R | no_license | sangitadas118/Peer-graded-Assignment-Final-Project-Submission1 | R | false | false | 3,738 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that realizes single word prediction
shinyUI(fl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readmsb.R
\name{read.ms}
\alias{read.ms}
\title{Read data generated by Hudson ms program
Read data generated by
\href{http://home.uchicago.edu/rhudson1/source/mksamples.html}{Hudson ms}
program, either as Haplotypes or as SNPs.}
... | /man/read.ms.Rd | no_license | WLemieux03/hierfstat | R | false | true | 1,953 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readmsb.R
\name{read.ms}
\alias{read.ms}
\title{Read data generated by Hudson ms program
Read data generated by
\href{http://home.uchicago.edu/rhudson1/source/mksamples.html}{Hudson ms}
program, either as Haplotypes or as SNPs.}
... |
##### Working with new API file
## Step 1 - Data Preparation
library(xts)
library(forecast)
library(dplyr)
library(smbinning)
library(astsa)
library(aTSA)
library(TSA)
library(lubridate)
library(ggplot2)
library(lmtest)
library(vars)
#library(plotly)
setwd('C:\\Users\\Rohit Jagtani\\Desktop\\Coal_f... | /data_prep.R | no_license | rjagtani/Time_Series_Data | R | false | false | 6,933 | r | ##### Working with new API file
## Step 1 - Data Preparation
library(xts)
library(forecast)
library(dplyr)
library(smbinning)
library(astsa)
library(aTSA)
library(TSA)
library(lubridate)
library(ggplot2)
library(lmtest)
library(vars)
#library(plotly)
setwd('C:\\Users\\Rohit Jagtani\\Desktop\\Coal_f... |
\name{three-phase}
\alias{generator}
\title{Three-phase generator}
\description{Calculates three-phase generator}
\usage{
generator(x)
}
\arguments{
\item{x}{parameters for generator: list(S3p, Vl.rms, pf, lead.lag, Zs.r) where: S3p rated three-phase apparent power, V1.rms line voltage as rms, pf lo... | /man/functions.3phase.Rd | no_license | cran/renpow | R | false | false | 1,349 | rd | \name{three-phase}
\alias{generator}
\title{Three-phase generator}
\description{Calculates three-phase generator}
\usage{
generator(x)
}
\arguments{
\item{x}{parameters for generator: list(S3p, Vl.rms, pf, lead.lag, Zs.r) where: S3p rated three-phase apparent power, V1.rms line voltage as rms, pf lo... |
#' \code{mercadolibreR} package
#'
#' A Quick and Easy Wrapper for Seller and Listing Data from MercadoLibre's Web API
#'
#' See the README on
#' \href{https://github.com/njcorona/mercadolibreR#readme}{GitHub}
#'
#' @docType package
#' @name mercadolibreR
#' @importFrom purrr map map_df map2
#' @importFrom httr RETRY G... | /R/mercadolibreR.R | permissive | njcorona/mercadolibreR | R | false | false | 1,717 | r | #' \code{mercadolibreR} package
#'
#' A Quick and Easy Wrapper for Seller and Listing Data from MercadoLibre's Web API
#'
#' See the README on
#' \href{https://github.com/njcorona/mercadolibreR#readme}{GitHub}
#'
#' @docType package
#' @name mercadolibreR
#' @importFrom purrr map map_df map2
#' @importFrom httr RETRY G... |
numPerPatch24000 <- c(2555,2445)
| /NatureEE-data-archive/Run203121/JAFSdata/JAFSnumPerPatch24000.R | no_license | flaxmans/NatureEE2017 | R | false | false | 33 | r | numPerPatch24000 <- c(2555,2445)
|
## Script to run the coverage tests. This is needed for running the tests on
## travis CI because the travis_wait command mangles the arguments you need to
## put the commands inline in the after_success section
library(covr)
x <- package_coverage(line_exclusions = list("R/parse-others.R"))
cat("coverage = ", percent... | /coverage.R | permissive | mobb/cosore | R | false | false | 364 | r | ## Script to run the coverage tests. This is needed for running the tests on
## travis CI because the travis_wait command mangles the arguments you need to
## put the commands inline in the after_success section
library(covr)
x <- package_coverage(line_exclusions = list("R/parse-others.R"))
cat("coverage = ", percent... |
#' Makes a \code{bibtex} entry from an output of
#' \code{\link{abstract_retrieval}} or \code{\link{article_retrieval}}
#'
#' @param x output of \code{\link{abstract_retrieval}} or
#' \code{\link{article_retrieval}}, with both \code{get_statement}
#' and \code{content}
#'
#'
#' @return A character vector of bibtex valu... | /R/bibtex_core_data.R | no_license | cpikas/rscopus | R | false | false | 3,410 | r | #' Makes a \code{bibtex} entry from an output of
#' \code{\link{abstract_retrieval}} or \code{\link{article_retrieval}}
#'
#' @param x output of \code{\link{abstract_retrieval}} or
#' \code{\link{article_retrieval}}, with both \code{get_statement}
#' and \code{content}
#'
#'
#' @return A character vector of bibtex valu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{deprecate_argument}
\alias{deprecate_argument}
\title{issue warning for deprecrated function arguments}
\usage{
deprecate_argument(old, new, args)
}
\description{
Sets a new argument name to an older one, and issues a deprecatio... | /man/deprecate_argument.Rd | no_license | leeper/quanteda | R | false | true | 645 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{deprecate_argument}
\alias{deprecate_argument}
\title{issue warning for deprecrated function arguments}
\usage{
deprecate_argument(old, new, args)
}
\description{
Sets a new argument name to an older one, and issues a deprecatio... |
library(tidyverse)
library(ggplot2)
library(janitor)
"fdi.csv" %>%
read.csv() -> raw_data
c("AGRICULTURAL MACHINERY", "SUGAR", "FOOD PROCESSING INDUSTRIES",
"VEGETABLE OILS AND VANASPATI", "AGRICULTURE SERVICES") -> services_required
raw_data[raw_data$Sector %in% services_required, ] %>%
select(c(... | /Harshal/Bar_plot.R | no_license | tusharchaudhari30/FDI_investment | R | false | false | 1,585 | r | library(tidyverse)
library(ggplot2)
library(janitor)
"fdi.csv" %>%
read.csv() -> raw_data
c("AGRICULTURAL MACHINERY", "SUGAR", "FOOD PROCESSING INDUSTRIES",
"VEGETABLE OILS AND VANASPATI", "AGRICULTURE SERVICES") -> services_required
raw_data[raw_data$Sector %in% services_required, ] %>%
select(c(... |
# create days and month
library(lubridate)
# convert string to date
promo$date = mdy(promo$date)
# convert to day and month
promo$day = wday(promo$date)
promo$month = month(promo$date)
# calculate revenue for each transaction
promo$revenue = promo$price * promo$booked
# drop rows with nas in date
promo$nas = is.na(... | /pricing analysis scratchpad.R | no_license | devens-mn/Devens_NYCDSA_Shiny_Project | R | false | false | 5,717 | r | # create days and month
library(lubridate)
# convert string to date
promo$date = mdy(promo$date)
# convert to day and month
promo$day = wday(promo$date)
promo$month = month(promo$date)
# calculate revenue for each transaction
promo$revenue = promo$price * promo$booked
# drop rows with nas in date
promo$nas = is.na(... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{n.c.hp}
\alias{n.c.hp}
\title{Hypergeometric (HerdPlus) optimum sample size and cut-point number
of positives}
\usage{
n.c.hp(N, sep = 0.95, c = 1, se, sp = 1, pstar, minSpH = 0.95)
}
\arguments{
\item{N}{population size}
\item{sep}{target population sensitivi... | /man/n.c.hp.Rd | no_license | gustavossvet/RSurveillance-1 | R | false | false | 1,367 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{n.c.hp}
\alias{n.c.hp}
\title{Hypergeometric (HerdPlus) optimum sample size and cut-point number
of positives}
\usage{
n.c.hp(N, sep = 0.95, c = 1, se, sp = 1, pstar, minSpH = 0.95)
}
\arguments{
\item{N}{population size}
\item{sep}{target population sensitivi... |
library(dplyr)
#Read in and format data:
DATA<- read.csv("Data/Clean_collocated_hourly_data.csv")
DATA$Date<- as.Date(DATA$Date)
#Adding in other spatial and temporal variables:
near_hwy<- data.frame(ID=c("NJH", "LaCasa", "I25.1", "I25.2", "I25.3"),
Near_hwy=c(FALSE, FALSE, TRUE, TRUE, TRUE))
D... | /R/2-Archived_final_training.R | permissive | EllenConsidine/Love_My_Air | R | false | false | 4,009 | r | library(dplyr)
#Read in and format data:
DATA<- read.csv("Data/Clean_collocated_hourly_data.csv")
DATA$Date<- as.Date(DATA$Date)
#Adding in other spatial and temporal variables:
near_hwy<- data.frame(ID=c("NJH", "LaCasa", "I25.1", "I25.2", "I25.3"),
Near_hwy=c(FALSE, FALSE, TRUE, TRUE, TRUE))
D... |
pollutantmean <- function(directory, pollutant, id = 1:332) {
ogDir <- getwd()
fileList <- paste(sprintf("%03d", id), ".csv", sep="")
setwd(directory)
rowCount <- 0
sumCount <- 0
for (i in fileList) {
x <- read.csv(i)
y <- x[pollutant]
z <- y[complete.cases(y),]
rowCount <- rowCount + lengt... | /week2Assignment/rprog_data_specdata/pollutantmean.R | no_license | Npascetti/datasciencecoursera | R | false | false | 402 | r | pollutantmean <- function(directory, pollutant, id = 1:332) {
ogDir <- getwd()
fileList <- paste(sprintf("%03d", id), ".csv", sep="")
setwd(directory)
rowCount <- 0
sumCount <- 0
for (i in fileList) {
x <- read.csv(i)
y <- x[pollutant]
z <- y[complete.cases(y),]
rowCount <- rowCount + lengt... |
###########################################################################################
####### Script to plot time lines of GFR count for N patients selected randomly ###########
###########################################################################################
# The database has been ported to local MyS... | /tsClustering_rahultej_biplapsa/tools/n_timeseries_graph.r | no_license | rahultejwani/cse740fall2014 | R | false | false | 1,604 | r | ###########################################################################################
####### Script to plot time lines of GFR count for N patients selected randomly ###########
###########################################################################################
# The database has been ported to local MyS... |
## Package: swirl
## Title: Learn R, in R.
## Description: swirl turns the R console into an interactive learning
## environment. Users receive immediate feedback as they are guided through
## self-paced lessons in data science and R programming.
########################################################################... | /R_Swirl_Package.R | no_license | kevmct90/RSwirl | R | false | false | 1,775 | r | ## Package: swirl
## Title: Learn R, in R.
## Description: swirl turns the R console into an interactive learning
## environment. Users receive immediate feedback as they are guided through
## self-paced lessons in data science and R programming.
########################################################################... |
\name{get_formula}
\alias{get_formula}
\title{Retrieve the identifying formula of a causal query}
\description{Returns the identifying formula describing a causal query of an object of class "\link{dosearch}". }
\usage{get_formula(x, run_again = FALSE)}
\arguments{
\item{x}{an object of class "\link{dosearc... | /fuzzedpackages/dosearch/man/get_formula.Rd | no_license | akhikolla/testpackages | R | false | false | 825 | rd | \name{get_formula}
\alias{get_formula}
\title{Retrieve the identifying formula of a causal query}
\description{Returns the identifying formula describing a causal query of an object of class "\link{dosearch}". }
\usage{get_formula(x, run_again = FALSE)}
\arguments{
\item{x}{an object of class "\link{dosearc... |
#-----hunt
if(y == 2) {
total.removals <- rep(0, 14) + removals$problem_animal@kills + removals$noncompliance@kills
}
if(y == 3) {
total.removals <- rep(0, 14) + removals$problem_animal@kills + removals$noncompliance@kills
}
if(y == 4) {
total.removals <- rep(0, 14) + removals$problem_animal@kills + removals$... | /code/five.years.recovery.R | no_license | cttedwards/LEOPARD-MP | R | false | false | 5,663 | r |
#-----hunt
if(y == 2) {
total.removals <- rep(0, 14) + removals$problem_animal@kills + removals$noncompliance@kills
}
if(y == 3) {
total.removals <- rep(0, 14) + removals$problem_animal@kills + removals$noncompliance@kills
}
if(y == 4) {
total.removals <- rep(0, 14) + removals$problem_animal@kills + removals$... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vEvent.R
\name{vEvent}
\alias{vEvent}
\title{Return the visit IDs (EVENT_ID) of a Patient/Visit table}
\usage{
vEvent(d)
}
\arguments{
\item{d}{the table from which EVENT_ID should be extracted}
}
\description{
Return the visit IDs (EVENT_ID)... | /Package-Template/man/vEvent.Rd | no_license | patzaw/PPMI-R-package-generator | R | false | true | 348 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vEvent.R
\name{vEvent}
\alias{vEvent}
\title{Return the visit IDs (EVENT_ID) of a Patient/Visit table}
\usage{
vEvent(d)
}
\arguments{
\item{d}{the table from which EVENT_ID should be extracted}
}
\description{
Return the visit IDs (EVENT_ID)... |
\name{testSESG}
\alias{testSESG}
\title{
Execute statistical estimation of strategic game for timing.
}
\description{ This function uses maximum likelihood to estimate the
parameters of statistical strategic model. Its purpose is to fill
space with a realistic task.}
\usage{
testSESG()
}
\details{ In this cas... | /SLbench/man/testSESG.Rd | no_license | olmjo/SLbench | R | false | false | 822 | rd | \name{testSESG}
\alias{testSESG}
\title{
Execute statistical estimation of strategic game for timing.
}
\description{ This function uses maximum likelihood to estimate the
parameters of statistical strategic model. Its purpose is to fill
space with a realistic task.}
\usage{
testSESG()
}
\details{ In this cas... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/factory_pipeline_r.R
\name{factory_pipeline_r}
\alias{factory_pipeline_r}
\title{Prepare and fit a text classification pipeline}
\usage{
factory_pipeline_r(
x,
y,
tknz = "spacy",
ordinal = FALSE,
metric = "class_balance_accuracy_sco... | /man/factory_pipeline_r.Rd | permissive | nhs-r-community/pxtextmineR | R | false | true | 9,661 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/factory_pipeline_r.R
\name{factory_pipeline_r}
\alias{factory_pipeline_r}
\title{Prepare and fit a text classification pipeline}
\usage{
factory_pipeline_r(
x,
y,
tknz = "spacy",
ordinal = FALSE,
metric = "class_balance_accuracy_sco... |
#' @title
#' Non-dominated sorting selector.
#'
#' @description
#' Applies nondominated sorting of the objective and subsequent crowding distance
#' criterion to select a subset of individuals. This is the selector used by the
#' NSGA-II EMOA (see \code{\link{nsga2}}).
#'
#' @return [\code{setOfIndividuals}]
#' @family... | /R/operator.selector.nondom.R | no_license | niiwise/ecr2 | R | false | false | 2,041 | r | #' @title
#' Non-dominated sorting selector.
#'
#' @description
#' Applies nondominated sorting of the objective and subsequent crowding distance
#' criterion to select a subset of individuals. This is the selector used by the
#' NSGA-II EMOA (see \code{\link{nsga2}}).
#'
#' @return [\code{setOfIndividuals}]
#' @family... |
## The makeCacheMatrix is a function that creates the matrix object
## Caching the inverse of a Matrix elminates the need to repeatdly compute it
## This is the Caching of the Inverse of a Matrix
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- func... | /cachematrix.R | no_license | mallisa71/ProgrammingAssignment2 | R | false | false | 853 | r | ## The makeCacheMatrix is a function that creates the matrix object
## Caching the inverse of a Matrix elminates the need to repeatdly compute it
## This is the Caching of the Inverse of a Matrix
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- func... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class-f_meas.R
\name{f_meas}
\alias{f_meas}
\alias{f_meas.data.frame}
\alias{f_meas_vec}
\title{F Measure}
\usage{
f_meas(data, ...)
\method{f_meas}{data.frame}(
data,
truth,
estimate,
beta = 1,
estimator = NULL,
na_rm = TRUE,
... | /man/f_meas.Rd | permissive | tidymodels/yardstick | R | false | true | 6,193 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class-f_meas.R
\name{f_meas}
\alias{f_meas}
\alias{f_meas.data.frame}
\alias{f_meas_vec}
\title{F Measure}
\usage{
f_meas(data, ...)
\method{f_meas}{data.frame}(
data,
truth,
estimate,
beta = 1,
estimator = NULL,
na_rm = TRUE,
... |
# Returns a stacked bar graph of the operating system (Windows or Mac) of each class standing
# based on the data passed in
chartTwo <- function(dataset) {
# getting the operating system information from dataset
info <- dataset %>%
group_by(What.is.your.current.class.standing.) %>%
summarise(Windows... | /collaborative coding/scripts/Chart_2.R | no_license | leej68/R-code- | R | false | false | 1,240 | r | # Returns a stacked bar graph of the operating system (Windows or Mac) of each class standing
# based on the data passed in
chartTwo <- function(dataset) {
# getting the operating system information from dataset
info <- dataset %>%
group_by(What.is.your.current.class.standing.) %>%
summarise(Windows... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/natstrat-package.R
\docType{package}
\name{natstrat-package}
\alias{natstrat}
\alias{natstrat-package}
\title{natstrat: Obtain Unweighted Natural Strata that Balance Many Covariates}
\description{
Natural strata fix a constant ratio o... | /man/natstrat-package.Rd | no_license | cran/natstrat | R | false | true | 1,611 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/natstrat-package.R
\docType{package}
\name{natstrat-package}
\alias{natstrat}
\alias{natstrat-package}
\title{natstrat: Obtain Unweighted Natural Strata that Balance Many Covariates}
\description{
Natural strata fix a constant ratio o... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis_volume.R
\name{vol.imagestack}
\alias{vol.imagestack}
\title{Turn volume into an ImageMagick image stack.}
\usage{
vol.imagestack(volume, axis = 1L, intensity_scale = 255)
}
\arguments{
\item{volume}{a 3D image volume. Can be numeric, or ... | /man/vol.imagestack.Rd | permissive | dfsp-spirit/fsbrain | R | false | true | 1,420 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis_volume.R
\name{vol.imagestack}
\alias{vol.imagestack}
\title{Turn volume into an ImageMagick image stack.}
\usage{
vol.imagestack(volume, axis = 1L, intensity_scale = 255)
}
\arguments{
\item{volume}{a 3D image volume. Can be numeric, or ... |
# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
.isProbRcpp <- function(prob) {
.Call('markovchain_isProb', PACKAGE = 'markovchain', prob)
}
generatorToTransitionMatrix <- function(gen) {
.Call('markovchain_generatorToTransitionMatrix', PACKAGE = 'm... | /R/RcppExports.R | no_license | ashokkumar2016/markovchain | R | false | false | 2,586 | r | # This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
.isProbRcpp <- function(prob) {
.Call('markovchain_isProb', PACKAGE = 'markovchain', prob)
}
generatorToTransitionMatrix <- function(gen) {
.Call('markovchain_generatorToTransitionMatrix', PACKAGE = 'm... |
path = "c:/users/lukes/dropbox/pseudo-replication/SLiM/Final Files/"
filetoread = paste(path,"FstNe200.csv",sep="")
BigFstData = read.csv(filetoread)
P1 = subset(BigFstData,BigFstData$POP == "1_2")
P1[,4] = 1
P2 = subset(BigFstData,BigFstData$POP == "1_3")
P2[,4] = 2
P3 = subset(BigFstData,BigFstData$POP == "1... | /scripts/R/ReadFst.R | no_license | nwfsc-cb/pseudorep | R | false | false | 2,666 | r | path = "c:/users/lukes/dropbox/pseudo-replication/SLiM/Final Files/"
filetoread = paste(path,"FstNe200.csv",sep="")
BigFstData = read.csv(filetoread)
P1 = subset(BigFstData,BigFstData$POP == "1_2")
P1[,4] = 1
P2 = subset(BigFstData,BigFstData$POP == "1_3")
P2[,4] = 2
P3 = subset(BigFstData,BigFstData$POP == "1... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_numbers.R
\name{aitoa.format.fes}
\alias{aitoa.format.fes}
\title{Format a Function Evaluation Counter}
\usage{
aitoa.format.fes(t)
}
\arguments{
\item{t}{the FE number}
}
\value{
the formatted FE string
}
\description{
format an FE va... | /man/aitoa.format.fes.Rd | permissive | thomasWeise/aitoaEvaluate | R | false | true | 326 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_numbers.R
\name{aitoa.format.fes}
\alias{aitoa.format.fes}
\title{Format a Function Evaluation Counter}
\usage{
aitoa.format.fes(t)
}
\arguments{
\item{t}{the FE number}
}
\value{
the formatted FE string
}
\description{
format an FE va... |
args <- commandArgs(trailingOnly = TRUE)
output_filename <- args[8]
pdf(output_filename, width = 11, height = 10)
prefix <- strsplit(output_filename, "scNOVA_result")[[1]][1]
prefix <- substring(prefix, 1, nchar(prefix) - 1)
if (nchar(prefix) == 0) {
prefix <- "."
}
print(prefix)
subclone_list <- read.table(... | /workflow/scripts/scNOVA_scripts/feature_sc_var.R | permissive | friendsofstrandseq/mosaicatcher-pipeline | R | false | false | 6,892 | r | args <- commandArgs(trailingOnly = TRUE)
output_filename <- args[8]
pdf(output_filename, width = 11, height = 10)
prefix <- strsplit(output_filename, "scNOVA_result")[[1]][1]
prefix <- substring(prefix, 1, nchar(prefix) - 1)
if (nchar(prefix) == 0) {
prefix <- "."
}
print(prefix)
subclone_list <- read.table(... |
library(shinydashboard)
dashboardPage(
dashboardHeader(title='FII Audit Dashboard'),
dashboardSidebar(
sidebarMenu(id = "menu_tabs",
menuItem("Error Overview", tabName="overview"),
menuItem("Error Breakdown", tabName="breakdown"),
uiOutput("familyFilter"),
... | /dashboards/ui.R | no_license | slauricella/datakind_fii_project | R | false | false | 2,383 | r | library(shinydashboard)
dashboardPage(
dashboardHeader(title='FII Audit Dashboard'),
dashboardSidebar(
sidebarMenu(id = "menu_tabs",
menuItem("Error Overview", tabName="overview"),
menuItem("Error Breakdown", tabName="breakdown"),
uiOutput("familyFilter"),
... |
GTFS_to_moveVis_Freq <- function(dir_GTFS, startHH = 6, endHH = 8, file_output = "GTFS.csv"){
# required libraries:
require(dplyr)
require(chron)
# fase 1: select trips using calendar and add min of frequency
Freq <- read.delim(paste(dir_GTFS, "trips.txt", sep = "/"), sep=",", fileEnco... | /GTFS_to_moveVis_Freq.R | no_license | nickaplan/GTFS_moveVis | R | false | false | 4,783 | r |
GTFS_to_moveVis_Freq <- function(dir_GTFS, startHH = 6, endHH = 8, file_output = "GTFS.csv"){
# required libraries:
require(dplyr)
require(chron)
# fase 1: select trips using calendar and add min of frequency
Freq <- read.delim(paste(dir_GTFS, "trips.txt", sep = "/"), sep=",", fileEnco... |
#' @rdname splash_user_agent
#' @export
ua_splashr <- sprintf("splashr/%s", packageVersion("splashr"))
#' @rdname splash_user_agent
#' @export
ua_win10_chrome <- "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
#' @rdname splash_user_agent
#' @expor... | /R/user-agents.R | no_license | firebitsbr/splashr | R | false | false | 1,839 | r |
#' @rdname splash_user_agent
#' @export
ua_splashr <- sprintf("splashr/%s", packageVersion("splashr"))
#' @rdname splash_user_agent
#' @export
ua_win10_chrome <- "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
#' @rdname splash_user_agent
#' @expor... |
library(tidyverse)
library(bayesm)
setwd("/Users/yongyilin/Econ613/Assignments/A2")
data(margarine)
# Exercise 1 Data Description
choiceprice <- margarine$choicePrice
demos <- margarine$demos
# Average and dispersion in product characteristics
prod_avg <- as.matrix(apply(choiceprice[,2:12], 2, mean))
prod_avg
prod_di... | /A2_Yongyi_Lin.R | no_license | yl654/A2 | R | false | false | 3,966 | r | library(tidyverse)
library(bayesm)
setwd("/Users/yongyilin/Econ613/Assignments/A2")
data(margarine)
# Exercise 1 Data Description
choiceprice <- margarine$choicePrice
demos <- margarine$demos
# Average and dispersion in product characteristics
prod_avg <- as.matrix(apply(choiceprice[,2:12], 2, mean))
prod_avg
prod_di... |
library(tidyverse)
library(fredr)
library(sqldf)
continue_download = F
clean_existing_data = F
setwd("~/how_we_live/Data")
fred_sqlite = dbConnect(SQLite(), dbname= "fred_sqlite.sqlite")
fredr_set_key('0437e7baffc7066bacb86efa56cc37c9')
economy_wide_predictors = c('T10Y2Y', 'DGS10')
economy_wide_stacked = map(ec... | /scripts/housing_prices/usa/get_us_economic_data.r | no_license | tgwhite/how_we_live | R | false | false | 708 | r |
library(tidyverse)
library(fredr)
library(sqldf)
continue_download = F
clean_existing_data = F
setwd("~/how_we_live/Data")
fred_sqlite = dbConnect(SQLite(), dbname= "fred_sqlite.sqlite")
fredr_set_key('0437e7baffc7066bacb86efa56cc37c9')
economy_wide_predictors = c('T10Y2Y', 'DGS10')
economy_wide_stacked = map(ec... |
bt_sa_record_new_source=function(establish.connection=F){
if(establish.connection){
library(gtalibrary)
library(gtasql)
library(pool)
library(RMariaDB)
library(data.table)
gta_sql_pool_open(db.title="gtamain",
db.host = gta_pwd("gtamain")$host,
db... | /R/bt_sa_record_new_source.R | no_license | KamranSattary/gtabastiat | R | false | false | 2,831 | r | bt_sa_record_new_source=function(establish.connection=F){
if(establish.connection){
library(gtalibrary)
library(gtasql)
library(pool)
library(RMariaDB)
library(data.table)
gta_sql_pool_open(db.title="gtamain",
db.host = gta_pwd("gtamain")$host,
db... |
context("assert")
test_that("assert handles custom errors", {
expect_error(assert_all(c(FALSE, FALSE, TRUE)), class = "assertError")
expect_true(assert_all(c(TRUE, TRUE, TRUE)))
expect_error(
assert_all(
list(a = c(TRUE, FALSE), b = TRUE),
list(TRUE)
),
class = "assertError"
)
expe... | /tests/testthat/test-assert_all.R | permissive | s-fleck/sfmisc | R | false | false | 638 | r | context("assert")
test_that("assert handles custom errors", {
expect_error(assert_all(c(FALSE, FALSE, TRUE)), class = "assertError")
expect_true(assert_all(c(TRUE, TRUE, TRUE)))
expect_error(
assert_all(
list(a = c(TRUE, FALSE), b = TRUE),
list(TRUE)
),
class = "assertError"
)
expe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotPlatePosition.R
\name{plotPlatePosition}
\alias{plotPlatePosition}
\title{Plot cells in plate positions}
\usage{
plotPlatePosition(object, plate_position = NULL, colour_by = NULL,
size_by = NULL, shape_by = NULL, by_exprs_values = "logc... | /man/plotPlatePosition.Rd | no_license | liyueyikate/scater | R | false | true | 3,498 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotPlatePosition.R
\name{plotPlatePosition}
\alias{plotPlatePosition}
\title{Plot cells in plate positions}
\usage{
plotPlatePosition(object, plate_position = NULL, colour_by = NULL,
size_by = NULL, shape_by = NULL, by_exprs_values = "logc... |
#' calculate fragments from a peptide sequence
#' @param sequence character vector of length 1
#' @param type could be c("a", "b", "c", "x", "y", "z")
#' @param z charge
#' @param modifications a named (amino acid one-letter-code; upper case) vector
#' of mass that should be added (default: Carbamidomethyl 57.02146 is ... | /R/functions-fragments.R | no_license | procha2/MSnbase | R | false | false | 7,144 | r | #' calculate fragments from a peptide sequence
#' @param sequence character vector of length 1
#' @param type could be c("a", "b", "c", "x", "y", "z")
#' @param z charge
#' @param modifications a named (amino acid one-letter-code; upper case) vector
#' of mass that should be added (default: Carbamidomethyl 57.02146 is ... |
#Data frames
x<-c(3,6,8)
y<-c(4,7,6)
s<-c(4,5,6)
#capital letters for dataframes
X<-data.frame(x,y,s)
X
X$x #3 6 8
X$y #4 7 6
X$s #4 5 6
| /r-ggplot-simpleLinearRegression/dataframes.R | no_license | Delizald/R-Language | R | false | false | 142 | r | #Data frames
x<-c(3,6,8)
y<-c(4,7,6)
s<-c(4,5,6)
#capital letters for dataframes
X<-data.frame(x,y,s)
X
X$x #3 6 8
X$y #4 7 6
X$s #4 5 6
|
#' Interface between the Zelig Model exp and
#' the Pre-existing Model-fitting Method
#' @param formula a formula
#' @param ... additonal parameters
#' @param data a data.frame
#' @return a list specifying '.function'
#' @export
zelig2exp <- function (formula, ..., robust = FALSE, cluster = NULL, data) {
if (!(is.... | /R/zelig2exp.R | no_license | zeligdev/ZeligCommon | R | false | false | 990 | r | #' Interface between the Zelig Model exp and
#' the Pre-existing Model-fitting Method
#' @param formula a formula
#' @param ... additonal parameters
#' @param data a data.frame
#' @return a list specifying '.function'
#' @export
zelig2exp <- function (formula, ..., robust = FALSE, cluster = NULL, data) {
if (!(is.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doremi.R
\name{generate.panel.2order}
\alias{generate.panel.2order}
\title{Generation of second order differential equation solutions for several individuals with intra-individual and inter-individual noise}
\usage{
generate.panel.2orde... | /man/generate.panel.2order.Rd | no_license | cran/doremi | R | false | true | 3,823 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doremi.R
\name{generate.panel.2order}
\alias{generate.panel.2order}
\title{Generation of second order differential equation solutions for several individuals with intra-individual and inter-individual noise}
\usage{
generate.panel.2orde... |
### 行・列ごとの計算
x <- matrix(1:100, 4, 25)
sum(x) # xの成分全ての和を計算する(mean等も同様)
rowSums(x) # 行ごとの総和
apply(x, 1, sum) # 上と同じ
### 気候データによる例
kikou <- read.csv("kikou2016.csv", fileEncoding = "sjis")
x <- subset(kikou, select=-c(月, 日)) # 月日は除いておく
colMeans(x) # 列ごとの平均
apply(x, 2, max) # 列ごとの最大値
sapply(x, max) ... | /docs/autumn/example/data-apply.r | no_license | noboru-murata/sda | R | false | false | 633 | r | ### 行・列ごとの計算
x <- matrix(1:100, 4, 25)
sum(x) # xの成分全ての和を計算する(mean等も同様)
rowSums(x) # 行ごとの総和
apply(x, 1, sum) # 上と同じ
### 気候データによる例
kikou <- read.csv("kikou2016.csv", fileEncoding = "sjis")
x <- subset(kikou, select=-c(月, 日)) # 月日は除いておく
colMeans(x) # 列ごとの平均
apply(x, 2, max) # 列ごとの最大値
sapply(x, max) ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/storagegateway_operations.R
\name{storagegateway_assign_tape_pool}
\alias{storagegateway_assign_tape_pool}
\title{Assigns a tape to a tape pool for archiving}
\usage{
storagegateway_assign_tape_pool(TapeARN, PoolId)
}
\arguments{
\item{TapeAR... | /paws/man/storagegateway_assign_tape_pool.Rd | permissive | jcheng5/paws | R | false | true | 1,390 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/storagegateway_operations.R
\name{storagegateway_assign_tape_pool}
\alias{storagegateway_assign_tape_pool}
\title{Assigns a tape to a tape pool for archiving}
\usage{
storagegateway_assign_tape_pool(TapeARN, PoolId)
}
\arguments{
\item{TapeAR... |
# Load the library
library(car)
# Load the data
prestige = data(Prestige)
# Look at the help file for details
?Prestige
# Get rid of categorical variables
prestige = Prestige[,1:4]
#split data
y = prestige[,4] #using income as dependent variable
x = as.matrix(prestige[,1:3]) #using the three non-categ... | /section1-code.R | no_license | Sarehkch/Statistical-Modeling-II | R | false | false | 933 | r | # Load the library
library(car)
# Load the data
prestige = data(Prestige)
# Look at the help file for details
?Prestige
# Get rid of categorical variables
prestige = Prestige[,1:4]
#split data
y = prestige[,4] #using income as dependent variable
x = as.matrix(prestige[,1:3]) #using the three non-categ... |
#' createSampleLot - Creates a lot of a sample.
#'
#' \code{createSampleLot} Creates a sample lot of a sample. Assumes the sample lot entity is inth from samplename_lot
#' @param coreApi coreApi object with valid jsessionid
#' @param sampleType sample type to create the lot of
#' @param sampleBarcode parent sample barc... | /R/createSampleLot.R | no_license | ceparman/CoreAPIV2_beta | R | false | false | 1,618 | r | #' createSampleLot - Creates a lot of a sample.
#'
#' \code{createSampleLot} Creates a sample lot of a sample. Assumes the sample lot entity is inth from samplename_lot
#' @param coreApi coreApi object with valid jsessionid
#' @param sampleType sample type to create the lot of
#' @param sampleBarcode parent sample barc... |
rm(list=ls())
library(tidyverse)
library(jsonlite)
## 先設定 working directory 在 source file location
## 讀取原檔
my_course <- fromJSON("original_course_data_108-1.json")
head(my_course)
df_course <- as.tibble(my_course)
## 整理資料
course_no_need <- "健康體適能|全民國防教育軍事訓練課程|進階英語|高階英語|服務學習|專題討論一"
new_df_course <- df_course %>%
... | /src/select_course.R | no_license | rlads2019/project-tong4627 | R | false | false | 1,257 | r | rm(list=ls())
library(tidyverse)
library(jsonlite)
## 先設定 working directory 在 source file location
## 讀取原檔
my_course <- fromJSON("original_course_data_108-1.json")
head(my_course)
df_course <- as.tibble(my_course)
## 整理資料
course_no_need <- "健康體適能|全民國防教育軍事訓練課程|進階英語|高階英語|服務學習|專題討論一"
new_df_course <- df_course %>%
... |
library(openintro)
data(countyComplete)
cc <- countyComplete
data(COL)# <- c('#550000AA','#88440055','#11447788','#884400AA','#114477CC')
w3 <- 1==0
if(w3){
myPNG("MHP.png", 1200, 800, mar=c(3, 3.5, 0.5, 0.5), mgp=c(2.4, 0.5, 0), cex=2)
} else {
myPDF("multiunitsVsOwnership.pdf", 6, 3.5, mar=c(3, 3.5, 0.5, 0.5)... | /Introduction to Probability and Statistics/01/figures/multiunitsVsOwnership/multiunitsVsOwnership.R | no_license | nishanmudalige/ebooks | R | false | false | 1,876 | r | library(openintro)
data(countyComplete)
cc <- countyComplete
data(COL)# <- c('#550000AA','#88440055','#11447788','#884400AA','#114477CC')
w3 <- 1==0
if(w3){
myPNG("MHP.png", 1200, 800, mar=c(3, 3.5, 0.5, 0.5), mgp=c(2.4, 0.5, 0), cex=2)
} else {
myPDF("multiunitsVsOwnership.pdf", 6, 3.5, mar=c(3, 3.5, 0.5, 0.5)... |
#####DECLARE LIBRARIES########
library(reshape2)
library(plyr)
library (rgdal)
library (ggplot2)
library(data.table)
library(quantmod)
library(forecast)
library(lubridate)
source("C:/Users/e022147/Desktop/Temp/New Platform Dashboard(Temp)/spModels.R")
source("C:/Users/e022147/Desktop/Temp/New Platform Dashb... | /USRetailSalesForecasting.R | no_license | KamaleshRao/DataScience | R | false | false | 41,284 | r | #####DECLARE LIBRARIES########
library(reshape2)
library(plyr)
library (rgdal)
library (ggplot2)
library(data.table)
library(quantmod)
library(forecast)
library(lubridate)
source("C:/Users/e022147/Desktop/Temp/New Platform Dashboard(Temp)/spModels.R")
source("C:/Users/e022147/Desktop/Temp/New Platform Dashb... |
#' Compute "power" for the default t-test Bayes factor
#'
#' For a given N, this function returns the Bayes factor that will be
#' exceeded with a specified probability in a t-test. Transfers the
#' frequentist concept of statistical power to Bayes factors. Uses the
#' default Bayesian t test implemented in the packag... | /R/Power.R | permissive | m-Py/bayesEd | R | false | false | 10,232 | r |
#' Compute "power" for the default t-test Bayes factor
#'
#' For a given N, this function returns the Bayes factor that will be
#' exceeded with a specified probability in a t-test. Transfers the
#' frequentist concept of statistical power to Bayes factors. Uses the
#' default Bayesian t test implemented in the packag... |
library(shiny)
cm5feet <- 152.4
cm1inch <- 2.54
minBMI <- 18.5
maxBMI <- 25
w <- function(height, weight, diff) {
round(weight + diff * (height-cm5feet)/cm1inch, 1)
}
w1 <- function(sex, height) {
w <- if(sex==1) 52 else 49
d <- if(sex==1) 1.9 else 1.7
w(height, w, d)
}
w2 <- function(sex, height) {
w <- ... | /server.R | no_license | pengrad/coursera-dataproducts | R | false | false | 1,159 | r | library(shiny)
cm5feet <- 152.4
cm1inch <- 2.54
minBMI <- 18.5
maxBMI <- 25
w <- function(height, weight, diff) {
round(weight + diff * (height-cm5feet)/cm1inch, 1)
}
w1 <- function(sex, height) {
w <- if(sex==1) 52 else 49
d <- if(sex==1) 1.9 else 1.7
w(height, w, d)
}
w2 <- function(sex, height) {
w <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getMaxStartEnd.R
\name{getMaxStartEnd}
\alias{getMaxStartEnd}
\title{Find maximum start and end dates from Daily dataframe}
\usage{
getMaxStartEnd(localDaily, value = "Flow", date = "Date")
}
\arguments{
\item{localDaily}{dataframe returned f... | /man/getMaxStartEnd.Rd | permissive | joshuaeveleth/USGSHydroTools | R | false | true | 1,201 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getMaxStartEnd.R
\name{getMaxStartEnd}
\alias{getMaxStartEnd}
\title{Find maximum start and end dates from Daily dataframe}
\usage{
getMaxStartEnd(localDaily, value = "Flow", date = "Date")
}
\arguments{
\item{localDaily}{dataframe returned f... |
#! /usr/bin/env RScript
source("./data.R")
data <- loadData("household_power_consumption")
head(data)
summary(data)
# create a PNG file (named 'plot1.png', width 480 pixels, height 480 pixels) containing the histogramm
png(filename="./plot1.png", width=480, height=480)
par(mfrow=c(1,1), mar=c(4, 4, 1, 2))
hist(data$... | /plot1.R | no_license | kdejongh/ExData_Plotting1 | R | false | false | 430 | r | #! /usr/bin/env RScript
source("./data.R")
data <- loadData("household_power_consumption")
head(data)
summary(data)
# create a PNG file (named 'plot1.png', width 480 pixels, height 480 pixels) containing the histogramm
png(filename="./plot1.png", width=480, height=480)
par(mfrow=c(1,1), mar=c(4, 4, 1, 2))
hist(data$... |
# The R script for Cytokine Library data analysis 2020.
# Quickly define the platform...
if(length(grep("linux", version)) > 0){
platform = "linux"
} else {
platform = "windows"
}
# Version
analysis.version = "SciData"
# Define directory for output
main.dir = paste("output/v_", analysis.version, sep=... | /SciDataEpi2020/Rscript_SciData.r | no_license | Hindrance/EpiSciData2020 | R | false | false | 2,522 | r | # The R script for Cytokine Library data analysis 2020.
# Quickly define the platform...
if(length(grep("linux", version)) > 0){
platform = "linux"
} else {
platform = "windows"
}
# Version
analysis.version = "SciData"
# Define directory for output
main.dir = paste("output/v_", analysis.version, sep=... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biqr.R
\name{clone.aln}
\alias{clone.aln}
\title{Local align multiple clones}
\usage{
clone.aln(seq.fns, chrm, beg, end, min.score = 100, snames = NULL)
}
\arguments{
\item{seq.fns}{a vector of sequence file names}
\item{chrm}{target chromos... | /man/clone.aln.Rd | permissive | zwdzwd/biqr | R | false | true | 560 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biqr.R
\name{clone.aln}
\alias{clone.aln}
\title{Local align multiple clones}
\usage{
clone.aln(seq.fns, chrm, beg, end, min.score = 100, snames = NULL)
}
\arguments{
\item{seq.fns}{a vector of sequence file names}
\item{chrm}{target chromos... |
#' Tibble of converters and parsers to download data
#'
#' Tibble of converters and parsers to download data.
#' To update watchdog your may proceed in the following steps:
#'
#' 1. Set the working directory to the package folder.
#'
#' 2. Update the watchdog dataset in memory.
#'
#' 3. usethis::use_data(watchdog)
#'
#... | /R/data.R | permissive | kassandra-ru/kassandr | R | false | false | 864 | r | #' Tibble of converters and parsers to download data
#'
#' Tibble of converters and parsers to download data.
#' To update watchdog your may proceed in the following steps:
#'
#' 1. Set the working directory to the package folder.
#'
#' 2. Update the watchdog dataset in memory.
#'
#' 3. usethis::use_data(watchdog)
#'
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.