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 |
|---|---|---|---|---|---|---|---|---|---|
# Set options here
options(golem.app.prod = FALSE) # TRUE = production mode, FALSE = development mode
# Detach all loaded packages and clean your environment
golem::detach_all_attached()
# rm(list=ls(all.names = TRUE))
# Document and reload your package
golem::document_and_reload()
# Run the application
m... | /dev/run_dev.R | no_license | VincentGuyader/memory | R | false | false | 338 | r | # Set options here
options(golem.app.prod = FALSE) # TRUE = production mode, FALSE = development mode
# Detach all loaded packages and clean your environment
golem::detach_all_attached()
# rm(list=ls(all.names = TRUE))
# Document and reload your package
golem::document_and_reload()
# Run the application
m... |
#baseDir <- "/home/jonathan/Jonathan/programs/femtastic/frontData"
baseDir <- getwd()
#This will compare the average population fitness for a run of experiments
plotMultiFronts <- function()
{
files = list.files(path=baseDir, pattern = "Pop[0-9]+")
noOfRuns <- length(files)
xCoords <- c()
yCoords <- c()
g... | /architype/frontData/animateFronts.r | no_license | squeakus/bitsandbytes | R | false | false | 1,223 | r | #baseDir <- "/home/jonathan/Jonathan/programs/femtastic/frontData"
baseDir <- getwd()
#This will compare the average population fitness for a run of experiments
plotMultiFronts <- function()
{
files = list.files(path=baseDir, pattern = "Pop[0-9]+")
noOfRuns <- length(files)
xCoords <- c()
yCoords <- c()
g... |
#-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... | /modules/uncertainty/R/run.ensemble.analysis.R | permissive | serbinsh/pecan | R | false | false | 13,713 | r | #-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/wybory_wsk_artykuly.R
\name{wybory_wsk_artykuly}
\alias{wybory_wsk_artykuly}
\title{Wskaznik widocznosci kandydata - portale internetowe}
\usage{
wybory_wsk_artykuly(okres, wzor, serwis, sciezka_do_folderu=getwd())
}
\arguments{
\ite... | /wyborySmudaWyszynska/man/wybory_wsk_artykuly.Rd | no_license | Wyszynskak/Projekty | R | false | false | 1,749 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/wybory_wsk_artykuly.R
\name{wybory_wsk_artykuly}
\alias{wybory_wsk_artykuly}
\title{Wskaznik widocznosci kandydata - portale internetowe}
\usage{
wybory_wsk_artykuly(okres, wzor, serwis, sciezka_do_folderu=getwd())
}
\arguments{
\ite... |
#Name- Shabeg Singh Gill
#Roll No-2019388
#Branch- CSSS
#directory will change based on where you have stored the file
setwd("~/Desktop/Shabeg_2019388")
#QUESTION-1
#Reading csv file
data=read.csv("dataset.csv")
#(a)
mean(data$GER)
#(b)
mean(data$EL)
#(c)
mean(data$DW)
#(d)
mean(data$BT)
#(e)
mean(data$GT)
#(f)
... | /DataAss.R | no_license | shabeg19388/ECON-Assignment- | R | false | false | 7,323 | r | #Name- Shabeg Singh Gill
#Roll No-2019388
#Branch- CSSS
#directory will change based on where you have stored the file
setwd("~/Desktop/Shabeg_2019388")
#QUESTION-1
#Reading csv file
data=read.csv("dataset.csv")
#(a)
mean(data$GER)
#(b)
mean(data$EL)
#(c)
mean(data$DW)
#(d)
mean(data$BT)
#(e)
mean(data$GT)
#(f)
... |
########################################################################
# PREPARATION #
########################################################################
# =============================================================================
# imports
# ========... | /app.R | permissive | rlukevie/shinymap2017 | R | false | false | 35,171 | r | ########################################################################
# PREPARATION #
########################################################################
# =============================================================================
# imports
# ========... |
# install dataset and caret packages
# install.packages("caret")
# install.packages("ISLR")
# install.packages("e1071")
# install.packages("fastAdaboost")
#
# packageDescription("caret")
# Load the packages
library(caret)
library(ISLR)
# Import dataset
data(OJ)
# Structure of the dataframe
str(OJ)
... | /code.R | no_license | haolanig/Caret | R | false | false | 4,554 | r | # install dataset and caret packages
# install.packages("caret")
# install.packages("ISLR")
# install.packages("e1071")
# install.packages("fastAdaboost")
#
# packageDescription("caret")
# Load the packages
library(caret)
library(ISLR)
# Import dataset
data(OJ)
# Structure of the dataframe
str(OJ)
... |
plot(h.entropy.48.c$counts ~ c(1:8),type="o",
ylab='Games',xlab='Moves',
main='Times solved after N moves', sub='l=4, c=8')
lines(h.most.48.c$counts ~ c(1:8),col='red',lty='dashed', type='o')
| /data/plot-histo-me-4-8.R | no_license | JJ/mastermind-paper | R | false | false | 202 | r | plot(h.entropy.48.c$counts ~ c(1:8),type="o",
ylab='Games',xlab='Moves',
main='Times solved after N moves', sub='l=4, c=8')
lines(h.most.48.c$counts ~ c(1:8),col='red',lty='dashed', type='o')
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{us_atc_state_polygons}
\alias{us_atc_state_polygons}
\title{Coordinates to draw state's hexagons}
\format{
A tibble with 11 variables and 306 rows:
\describe{
\item{state}{Two letter state abbreviation}
\item{hospi... | /man/us_atc_state_polygons.Rd | permissive | sol-eng/accesstocare | R | false | true | 783 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{us_atc_state_polygons}
\alias{us_atc_state_polygons}
\title{Coordinates to draw state's hexagons}
\format{
A tibble with 11 variables and 306 rows:
\describe{
\item{state}{Two letter state abbreviation}
\item{hospi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/problem-1.R
\name{multiples}
\alias{multiples}
\title{Multiples of 3 or 5}
\usage{
multiples(limit)
}
\arguments{
\item{limit}{A positive integer.}
}
\value{
A vector.
}
\description{
\code{multiples} fetch \strong{all} numbers of multiples o... | /src/r/man/multiples.Rd | permissive | Fazendaaa/project-euler | R | false | true | 543 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/problem-1.R
\name{multiples}
\alias{multiples}
\title{Multiples of 3 or 5}
\usage{
multiples(limit)
}
\arguments{
\item{limit}{A positive integer.}
}
\value{
A vector.
}
\description{
\code{multiples} fetch \strong{all} numbers of multiples o... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chime_operations.R
\name{chime_delete_proxy_session}
\alias{chime_delete_proxy_session}
\title{Deletes the specified proxy session from the specified Amazon Chime
Voice Connector}
\usage{
chime_delete_proxy_session(VoiceConnectorId, ProxySess... | /cran/paws.business.applications/man/chime_delete_proxy_session.Rd | permissive | jcheng5/paws | R | false | true | 725 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chime_operations.R
\name{chime_delete_proxy_session}
\alias{chime_delete_proxy_session}
\title{Deletes the specified proxy session from the specified Amazon Chime
Voice Connector}
\usage{
chime_delete_proxy_session(VoiceConnectorId, ProxySess... |
library(quantreg)
# Read model in given prefix
read.model <- function(prefix) {
X_name <- sprintf('%s_X.csv', prefix)
X <- as.matrix(read.csv(X_name))
W1_0_name <- sprintf('%s_W1_0.csv', prefix)
W1_0 <- as.matrix(read.csv(W1_0_name))
W2_0_name <- sprintf('%s_W2_0.csv', prefix)
W2_0 <- as.matrix(read.csv(W... | /Colon/repair-colon.r | no_license | seungkyoon/CPSC490 | R | false | false | 7,502 | r |
library(quantreg)
# Read model in given prefix
read.model <- function(prefix) {
X_name <- sprintf('%s_X.csv', prefix)
X <- as.matrix(read.csv(X_name))
W1_0_name <- sprintf('%s_W1_0.csv', prefix)
W1_0 <- as.matrix(read.csv(W1_0_name))
W2_0_name <- sprintf('%s_W2_0.csv', prefix)
W2_0 <- as.matrix(read.csv(W... |
\name{lmerControl}
\title{Control of Mixed Model Fitting}
\alias{glmerControl}
\alias{lmerControl}
\alias{nlmerControl}
\alias{convergence}
\alias{.makeCC}
\description{
Construct control structures for mixed model fitting. All arguments
have defaults, and can be grouped into
\itemize{
\item general control ... | /man/lmerControl.Rd | no_license | jknowles/lme4 | R | false | false | 14,018 | rd | \name{lmerControl}
\title{Control of Mixed Model Fitting}
\alias{glmerControl}
\alias{lmerControl}
\alias{nlmerControl}
\alias{convergence}
\alias{.makeCC}
\description{
Construct control structures for mixed model fitting. All arguments
have defaults, and can be grouped into
\itemize{
\item general control ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r_api.R
\name{Sigmoid}
\alias{Sigmoid}
\title{Sigmoid Op}
\usage{
Sigmoid(inp, name = NULL)
}
\arguments{
\item{inp}{Input node}
\item{name}{Optional custom name for node. If not specified, a random name is generated}
}
\value{
Unique name o... | /man/Sigmoid.Rd | permissive | beansrowning/rtensorflow | R | false | true | 383 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r_api.R
\name{Sigmoid}
\alias{Sigmoid}
\title{Sigmoid Op}
\usage{
Sigmoid(inp, name = NULL)
}
\arguments{
\item{inp}{Input node}
\item{name}{Optional custom name for node. If not specified, a random name is generated}
}
\value{
Unique name o... |
library(shiny)
shinyUI(
navbarPage("Analyzing MPG Performance vs Automobile Design",
tabPanel("Analysis",
fluidPage(
titlePanel("Miles per gallon (MPG) vs Design Variable"),
sidebarLayout(
sideb... | /ui.R | no_license | paperless247/DS9_Proj_1 | R | false | false | 3,393 | r | library(shiny)
shinyUI(
navbarPage("Analyzing MPG Performance vs Automobile Design",
tabPanel("Analysis",
fluidPage(
titlePanel("Miles per gallon (MPG) vs Design Variable"),
sidebarLayout(
sideb... |
rm(list=ls())
setwd("/Users/davidterner/Desktop/Indiana/Year 3/S610/Final Project")
source("Distance Data Script.R")
library(tidyverse)
rand_locations=runif(16,min=-180,max=180)
rand_locations=matrix(rand_locations,4,4)
#Testing gcd.hf
gcd.hf(rand_locations[,1],rand_locations[,2],rand_locations[,3],rand_locations[,4]... | /Tests/test_file.R | no_license | davidmterneriu/S610_Final_Project | R | false | false | 1,589 | r | rm(list=ls())
setwd("/Users/davidterner/Desktop/Indiana/Year 3/S610/Final Project")
source("Distance Data Script.R")
library(tidyverse)
rand_locations=runif(16,min=-180,max=180)
rand_locations=matrix(rand_locations,4,4)
#Testing gcd.hf
gcd.hf(rand_locations[,1],rand_locations[,2],rand_locations[,3],rand_locations[,4]... |
# copyright also @celine
library("ChemmineR")
library("R.matlab")
args = commandArgs(TRUE)
sdffilename = args[1]
resfilename = args[2]
alllabels = c("H","He","Li","Be","B","C","N","O","F","Ne","Na","Mg","Al","Si","P","S","Cl","Ar","K","Ca","Sc","Ti","V","Cr","Mn","Fe","Co","Ni","Cu","Zn","Ga","Ge","As","Se","Br",... | /data/preprocessing_codes/run_sdf_to_mat.r | no_license | aalto-ics-kepaco/molecular_classification | R | false | false | 1,366 | r |
# copyright also @celine
library("ChemmineR")
library("R.matlab")
args = commandArgs(TRUE)
sdffilename = args[1]
resfilename = args[2]
alllabels = c("H","He","Li","Be","B","C","N","O","F","Ne","Na","Mg","Al","Si","P","S","Cl","Ar","K","Ca","Sc","Ti","V","Cr","Mn","Fe","Co","Ni","Cu","Zn","Ga","Ge","As","Se","Br",... |
powerData <- read.csv("household_power_consumption.txt", sep=";",na.strings=c("","?"))
powerData$Date<-as.Date(powerData$Date,"%d/%m/%Y")
## Taking only the subset so we can work faster with less data and memory
data_subset <-powerData[powerData$Date %in% as.Date(c("2007-02-01","2007-02-02")),]
##Draw and save the pl... | /plot1.R | no_license | MattiaVio/ExData_Plotting1 | R | false | false | 523 | r | powerData <- read.csv("household_power_consumption.txt", sep=";",na.strings=c("","?"))
powerData$Date<-as.Date(powerData$Date,"%d/%m/%Y")
## Taking only the subset so we can work faster with less data and memory
data_subset <-powerData[powerData$Date %in% as.Date(c("2007-02-01","2007-02-02")),]
##Draw and save the pl... |
# library(plyr)
# library(tidyr)
# library(dplyr)
# library(ggplot2)
# library(scales)
set.seed(12345)
my_labels <- function(variable, value){
names_li <- list("percentage", "cost in pounds")
return(names_li[value])
}
df <- data.frame(
rate = runif(10, 0.1, 0.65),
cost = rnorm(10, 0, 10000),
years = seq(f... | /stack_of_charts_example.R | no_license | iwi/ggplot2_stack_of_charts | R | false | false | 1,694 | r | # library(plyr)
# library(tidyr)
# library(dplyr)
# library(ggplot2)
# library(scales)
set.seed(12345)
my_labels <- function(variable, value){
names_li <- list("percentage", "cost in pounds")
return(names_li[value])
}
df <- data.frame(
rate = runif(10, 0.1, 0.65),
cost = rnorm(10, 0, 10000),
years = seq(f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_at_a_glance.R
\name{mod_at_a_glance_server}
\alias{mod_at_a_glance_server}
\title{at_a_glance Server Function}
\usage{
mod_at_a_glance_server(input, output, session)
}
\description{
at_a_glance Server Function
}
| /man/mod_at_a_glance_server.Rd | permissive | polinabee/bgse-dw-final-project | R | false | true | 294 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_at_a_glance.R
\name{mod_at_a_glance_server}
\alias{mod_at_a_glance_server}
\title{at_a_glance Server Function}
\usage{
mod_at_a_glance_server(input, output, session)
}
\description{
at_a_glance Server Function
}
|
## a script visualize binomial distributions
## see code at bottom for running
## some tests of the binomial dist
ix <- 426
cx <- 8
iy <- 475
cy <- 12
## plot theta from 0.00 to 0.10
th <- seq(0,0.1,0.001)
## alternative
th <- seq(0.05,0.06,0.001)
plot(th,dbeta(th,cx,ix-cx),type='l')
points(th,dbeta(th,cy,iy-cy),ty... | /implied_distribution_viz.R | no_license | pongnguy/big-data-tools | R | false | false | 3,223 | r | ## a script visualize binomial distributions
## see code at bottom for running
## some tests of the binomial dist
ix <- 426
cx <- 8
iy <- 475
cy <- 12
## plot theta from 0.00 to 0.10
th <- seq(0,0.1,0.001)
## alternative
th <- seq(0.05,0.06,0.001)
plot(th,dbeta(th,cx,ix-cx),type='l')
points(th,dbeta(th,cy,iy-cy),ty... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simTVVAR.R
\name{simTVVAR}
\alias{simTVVAR}
\title{Simulate the process component of a TVVARSS model}
\usage{
simTVVAR(Bt, topo = NULL, TT, var_QX, cov_QX, var_QB, cov_QB = 0,
QQ_XX = NULL, QQ_BB = NULL, X0 = NULL, CC = NULL, cc = NULL)
}
\... | /man/simTVVAR.Rd | no_license | mdscheuerell/tvvarss | R | false | true | 4,722 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simTVVAR.R
\name{simTVVAR}
\alias{simTVVAR}
\title{Simulate the process component of a TVVARSS model}
\usage{
simTVVAR(Bt, topo = NULL, TT, var_QX, cov_QX, var_QB, cov_QB = 0,
QQ_XX = NULL, QQ_BB = NULL, X0 = NULL, CC = NULL, cc = NULL)
}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interface.R
\name{neighbors}
\alias{neighbors}
\title{Neighboring (adjacent) vertices in a graph}
\usage{
neighbors(graph, v, mode = c("out", "in", "all", "total"))
}
\arguments{
\item{graph}{The input graph.}
\item{v}{The vertex of which th... | /CRAN/contrib/igraph/man/neighbors.Rd | no_license | PRL-PRG/dyntrace-instrumented-packages | R | false | true | 1,212 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interface.R
\name{neighbors}
\alias{neighbors}
\title{Neighboring (adjacent) vertices in a graph}
\usage{
neighbors(graph, v, mode = c("out", "in", "all", "total"))
}
\arguments{
\item{graph}{The input graph.}
\item{v}{The vertex of which th... |
# user options
#Legend position Valid options are "bottomright", "bottom", "bottomleft",
#"left", "topleft", "top", "topright", "right" and "center". Use NULL for no legend
legend.position <- "topleft"
legend.ncol <- 2
#weigting factor for survey observations, start with default value to get a solid line for ... | /SMS_r_prog/r_prog_less_frequently_used/weighting_factor_single_sp.r | permissive | ices-eg/wg_WGSAM | R | false | false | 4,188 | r | # user options
#Legend position Valid options are "bottomright", "bottom", "bottomleft",
#"left", "topleft", "top", "topright", "right" and "center". Use NULL for no legend
legend.position <- "topleft"
legend.ncol <- 2
#weigting factor for survey observations, start with default value to get a solid line for ... |
setwd("~/Documents/GitHub/Techlab-week7")
library(tidyverse)
library(lubridate)
# setwd("~/Documents/UTS/Merge Data Examples/FOR CLASS")
rain <- read_csv("Rain.csv")
maxTemp <- read_csv("Maxtemp.csv")
minTemp <- read_csv("Mintemp.csv")
solar <- read_csv("Solarexp.csv")
##get number of rows and cols for each
##what... | /Thing.R | no_license | samfi/Techlab-week7 | R | false | false | 2,744 | r | setwd("~/Documents/GitHub/Techlab-week7")
library(tidyverse)
library(lubridate)
# setwd("~/Documents/UTS/Merge Data Examples/FOR CLASS")
rain <- read_csv("Rain.csv")
maxTemp <- read_csv("Maxtemp.csv")
minTemp <- read_csv("Mintemp.csv")
solar <- read_csv("Solarexp.csv")
##get number of rows and cols for each
##what... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kin.sgFilter.r
\name{kin.sgFilter}
\alias{kin.sgFilter}
\title{apply Savitzky-Golay filter}
\usage{
kin.sgFilter(x, p = 4, m = 0, ts = 1)
}
\description{
This function is a wrapper for signal::sgolayfilt with a modification to handle NAs
}
| /man/kin.sgFilter.Rd | no_license | ccamp83/kinesis | R | false | true | 318 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kin.sgFilter.r
\name{kin.sgFilter}
\alias{kin.sgFilter}
\title{apply Savitzky-Golay filter}
\usage{
kin.sgFilter(x, p = 4, m = 0, ts = 1)
}
\description{
This function is a wrapper for signal::sgolayfilt with a modification to handle NAs
}
|
library(ggplot2)
library(gdata)
library(maps)
library(scales)
library(plyr)
source("multiplot.R")
options(digits=12, digits.secs = 3, stringsAsFactors=F)
print("setup plotting")
lat.range <- c(sort(com.data$LA)[round(0.01*nrow(com.data))]-2, sort(com.data$LA)[round(0.99*nrow(com.data))]+2)
lon.range <- c(sort(com.data... | /realtime-ggplot.r | no_license | rec3141/underway | R | false | false | 12,650 | r | library(ggplot2)
library(gdata)
library(maps)
library(scales)
library(plyr)
source("multiplot.R")
options(digits=12, digits.secs = 3, stringsAsFactors=F)
print("setup plotting")
lat.range <- c(sort(com.data$LA)[round(0.01*nrow(com.data))]-2, sort(com.data$LA)[round(0.99*nrow(com.data))]+2)
lon.range <- c(sort(com.data... |
context("Test CreateRandomPartition")
fakeProjectId <- "project-id"
fakeProject <- list(projectName = "FakeProject",
projectId = fakeProjectId,
fileName = "fake.csv",
created = "faketimestamp")
fakeTarget <- "fake-target"
test_that("Required parameters are p... | /data/genthat_extracted_code/datarobot/tests/test-CreateRandomPartition.R | no_license | surayaaramli/typeRrh | R | false | false | 3,088 | r | context("Test CreateRandomPartition")
fakeProjectId <- "project-id"
fakeProject <- list(projectName = "FakeProject",
projectId = fakeProjectId,
fileName = "fake.csv",
created = "faketimestamp")
fakeTarget <- "fake-target"
test_that("Required parameters are p... |
#' Automatic Generation of R Functions
#'
#' Automatically generate an R funtion using source code contained in an R
#' script.
#'
#' @param fun.name Name of the function.
#'
#' @param read.file A connection, or a character string naming the file that
#' contains the R source code that will constitute the body of t... | /R/autofun.R | no_license | samuel-rosa/autofun | R | false | false | 1,875 | r | #' Automatic Generation of R Functions
#'
#' Automatically generate an R funtion using source code contained in an R
#' script.
#'
#' @param fun.name Name of the function.
#'
#' @param read.file A connection, or a character string naming the file that
#' contains the R source code that will constitute the body of t... |
e5b025ddea9e0c24f1da3be313b093ac klieber2017q-056-14-t1.qdimacs 701 1894 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Klieber/CombinationalEquivalence/klieber2017q-056-14-t1/klieber2017q-056-14-t1.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 72 | r | e5b025ddea9e0c24f1da3be313b093ac klieber2017q-056-14-t1.qdimacs 701 1894 |
\encoding{UTF-8}
\name{noniv.route}
\alias{noniv.route}
\title{Options for Extravascular Models Menu}
\description{
Provide the following three PK models for selection:
1. one-compartment, single-dose, and first-ordered absorption with lag time model;
2. one-compartment, single-dose, and first-or... | /man/noniv.route.Rd | no_license | cran/ivivc | R | false | false | 478 | rd | \encoding{UTF-8}
\name{noniv.route}
\alias{noniv.route}
\title{Options for Extravascular Models Menu}
\description{
Provide the following three PK models for selection:
1. one-compartment, single-dose, and first-ordered absorption with lag time model;
2. one-compartment, single-dose, and first-or... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit_aci_response.R
\name{fit_aci_response}
\alias{fit_aci_response}
\title{Fitting ACi curves}
\usage{
fit_aci_response(
data,
varnames = list(A_net = "A_net", T_leaf = "T_leaf", C_i = "C_i", PPFD = "PPFD", g_mc
= "g_mc"),
P = 100,
... | /man/fit_aci_response.Rd | permissive | wangdata/photosynthesis | R | false | true | 6,323 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit_aci_response.R
\name{fit_aci_response}
\alias{fit_aci_response}
\title{Fitting ACi curves}
\usage{
fit_aci_response(
data,
varnames = list(A_net = "A_net", T_leaf = "T_leaf", C_i = "C_i", PPFD = "PPFD", g_mc
= "g_mc"),
P = 100,
... |
#
# import url
rds_url <- "https://github.com/DataCapstone/Data-Capstone/blob/master/Drafts/ceuno/NewYork_State/newyork_state_fy17.rds?raw=true"
# read .rds url
newyork_state <- readRDS( gzcon( url( rds_url ) ) ) # three seconds
# plot
par( mar = c(5, 15, 4, 4))
barplot( height = sort( table( as.factor( newyork_state$t... | /Drafts/ceuno/NewYork_State/images/barplot_example.R | no_license | cenuno/Data-Capstone-1 | R | false | false | 682 | r | #
# import url
rds_url <- "https://github.com/DataCapstone/Data-Capstone/blob/master/Drafts/ceuno/NewYork_State/newyork_state_fy17.rds?raw=true"
# read .rds url
newyork_state <- readRDS( gzcon( url( rds_url ) ) ) # three seconds
# plot
par( mar = c(5, 15, 4, 4))
barplot( height = sort( table( as.factor( newyork_state$t... |
#exer 2
library(ISLR)
summary(Weekly)
pairs(Weekly[,-9])
cor(Weekly[,-9])
## (a)
#从相关系数矩阵和散点矩阵图可以看出:滞后时间变量Lag1~Lag5之间没有显著性关系,但交易量Volume随时间Year不断有明显的增加具有一定的相关性。
attach(Weekly)
glm.fit=glm(Direction~Lag1+Lag2+Lag3+Lag4+Lag5+Volume,data=Weekly,family=binomial)
#建立逻辑斯蒂回归模型
summary(glm.fit)
## (b)
#从P值来看,Lag2在统计上更显著,P... | /exer2/0183468.r | no_license | peco33/ISL | R | false | false | 4,951 | r | #exer 2
library(ISLR)
summary(Weekly)
pairs(Weekly[,-9])
cor(Weekly[,-9])
## (a)
#从相关系数矩阵和散点矩阵图可以看出:滞后时间变量Lag1~Lag5之间没有显著性关系,但交易量Volume随时间Year不断有明显的增加具有一定的相关性。
attach(Weekly)
glm.fit=glm(Direction~Lag1+Lag2+Lag3+Lag4+Lag5+Volume,data=Weekly,family=binomial)
#建立逻辑斯蒂回归模型
summary(glm.fit)
## (b)
#从P值来看,Lag2在统计上更显著,P... |
mparse <-
function(x,
pattern = "\\[(.*)\\] (.*?): (.*$)",
names = c("commit",
"commit_date",
"commit_description")) {
output <- list()
for (i in seq_along(names)) {
... | /R/mparse.R | no_license | meerapatelmd/glitter | R | false | false | 851 | r | mparse <-
function(x,
pattern = "\\[(.*)\\] (.*?): (.*$)",
names = c("commit",
"commit_date",
"commit_description")) {
output <- list()
for (i in seq_along(names)) {
... |
## Creating a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
## let's set up and initialize
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinv <- function(inverse) m <<- inverse
getinv <- function... | /ProgrammingAssignment2.R | no_license | TammyRM/ProgrammingAssignment2 | R | false | false | 1,046 | r |
## Creating a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
## let's set up and initialize
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinv <- function(inverse) m <<- inverse
getinv <- function... |
##
# Copyright (c) 2014 LabKey Corporation
#
# 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 ag... | /server/test/modules/pipelinetest/resources/pipeline/tasks/filter-lines.R | no_license | scchess/LabKey | R | false | false | 973 | r | ##
# Copyright (c) 2014 LabKey Corporation
#
# 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 ag... |
# R script to search for and remove primers from mel's metabarcoding round 2 sequencing
raw_dir <- "/vlsci/VR0267/pgriffin/hsm/mel_metabarcoding_run2/raw/AGRF_CAGRF13385_AWP8B/"
trimmed_dir <- "/vlsci/VR0267/pgriffin/hsm/mel_metabarcoding_run2/trimmed/"
pc_trimmed_threshold <- 0.5
adapter_table <- read.csv("/vlsci/VR0... | /5b_trim_primers_with_cutadapt_run2.R | no_license | griffinp/metabarcoding_workflow | R | false | false | 7,953 | r | # R script to search for and remove primers from mel's metabarcoding round 2 sequencing
raw_dir <- "/vlsci/VR0267/pgriffin/hsm/mel_metabarcoding_run2/raw/AGRF_CAGRF13385_AWP8B/"
trimmed_dir <- "/vlsci/VR0267/pgriffin/hsm/mel_metabarcoding_run2/trimmed/"
pc_trimmed_threshold <- 0.5
adapter_table <- read.csv("/vlsci/VR0... |
f<-function(a,b,c){ ##a为年份,b为月份,c为日期,本程序判断该日期为本年的第几天
yuefen1<-c(0,31,28,31,30,31,30,31,31,30,31,30,31)
yuefen2<-c(0,31,29,31,30,31,30,31,31,30,31,30,31)
if(a%%100==0){
if(a%%400==0)yuefen<-yuefen2 else yuefen<-yuefen1
}else{
if(a%%4==0)yuefen<-yuefen2 else yuefen<-yuefen1
}
d<-sum(yu... | /R源码/本年第几天.R | no_license | xuedisong/Rscripts | R | false | false | 437 | r | f<-function(a,b,c){ ##a为年份,b为月份,c为日期,本程序判断该日期为本年的第几天
yuefen1<-c(0,31,28,31,30,31,30,31,31,30,31,30,31)
yuefen2<-c(0,31,29,31,30,31,30,31,31,30,31,30,31)
if(a%%100==0){
if(a%%400==0)yuefen<-yuefen2 else yuefen<-yuefen1
}else{
if(a%%4==0)yuefen<-yuefen2 else yuefen<-yuefen1
}
d<-sum(yu... |
#Kim Fruge and Jordan Holsinger
#Florida State University
# 15 Sept 2015
# Subsetting ICEWS Data, first by government target, then HRO source, then events, collapsing data, and saving
library(foreign)
library(tidyr)
library(doBy)
Events95 <- read.csv2("/Volumes/Lexar/Events1995.tab", sep="\t", header=T... | /JAHRO_datacleanup.R | no_license | jordanholsinger/JAHRO | R | false | false | 255,772 | r | #Kim Fruge and Jordan Holsinger
#Florida State University
# 15 Sept 2015
# Subsetting ICEWS Data, first by government target, then HRO source, then events, collapsing data, and saving
library(foreign)
library(tidyr)
library(doBy)
Events95 <- read.csv2("/Volumes/Lexar/Events1995.tab", sep="\t", header=T... |
library(reshape2)
library(ggplot2)
library(gridExtra)
library(RColorBrewer)
af <- list.files('cluster/res/')
pd <- do.call(rbind,lapply(af,function(f) {
data.frame(readRDS(paste0('cluster/res/',f)),gn=sub('.rds','',sub('.*_','',f)),stringsAsFactors = F)
}))
pd <- pd[pd$Metric=='ARI' & pd$clu=='k-means' & pd$Method!=... | /Fig1C.R | permissive | zji90/eSVD_evaluation | R | false | false | 851 | r | library(reshape2)
library(ggplot2)
library(gridExtra)
library(RColorBrewer)
af <- list.files('cluster/res/')
pd <- do.call(rbind,lapply(af,function(f) {
data.frame(readRDS(paste0('cluster/res/',f)),gn=sub('.rds','',sub('.*_','',f)),stringsAsFactors = F)
}))
pd <- pd[pd$Metric=='ARI' & pd$clu=='k-means' & pd$Method!=... |
\name{get_gwpt}
\alias{get_gwpt}
\title{Get state-level historical events from Gledistch & Ward and Powell & Thyne}
\usage{
get_gwpt(start = 1945, end = 2013, independence = "gw_indep",
coups = "pt_coup")
}
\arguments{
\item{start}{the first year of measurement to include.
Defaults to \code{1945}.}
\item{end}{... | /man/get_gwpt.Rd | no_license | briatte/psData | R | false | false | 3,168 | rd | \name{get_gwpt}
\alias{get_gwpt}
\title{Get state-level historical events from Gledistch & Ward and Powell & Thyne}
\usage{
get_gwpt(start = 1945, end = 2013, independence = "gw_indep",
coups = "pt_coup")
}
\arguments{
\item{start}{the first year of measurement to include.
Defaults to \code{1945}.}
\item{end}{... |
mylogit <- function(p) log(p/(1-p))
myinvlogit <- function(x) exp(x) / (1 + exp(x))
myintegrate <- function(f, tmin, tmax, deltat, param, ...){ # my function to simply integrate a function with parameters "param"
if(tmin == tmax) return(0)
tmp <- sapply(seq(tmin, tmax, deltat), f, param = param, ...)
if(any(is.... | /functions_v3.R | no_license | FrancoisBlanquart/selection_variant | R | false | false | 20,979 | r | mylogit <- function(p) log(p/(1-p))
myinvlogit <- function(x) exp(x) / (1 + exp(x))
myintegrate <- function(f, tmin, tmax, deltat, param, ...){ # my function to simply integrate a function with parameters "param"
if(tmin == tmax) return(0)
tmp <- sapply(seq(tmin, tmax, deltat), f, param = param, ...)
if(any(is.... |
#' add_osm_groups
#'
#' Plots spatially distinct groups of osm objects in different colours.
#'
#' @param obj An sp SPDF or SLDF (list of polygons or lines) returned by
#' extract_osm_objects()
#' @param groups A list of spatial points objects, each of which contains the
#' coordinates of points defining one group
#' ... | /R/add-osm-groups.R | no_license | jhollist/osmplotr | R | false | false | 18,224 | r | #' add_osm_groups
#'
#' Plots spatially distinct groups of osm objects in different colours.
#'
#' @param obj An sp SPDF or SLDF (list of polygons or lines) returned by
#' extract_osm_objects()
#' @param groups A list of spatial points objects, each of which contains the
#' coordinates of points defining one group
#' ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{expose_stan_fns}
\alias{expose_stan_fns}
\title{Expose internal package stan functions in R}
\usage{
expose_stan_fns(files, target_dir, ...)
}
\arguments{
\item{files}{A character vector indicating the target files.}
\item{... | /man/expose_stan_fns.Rd | permissive | epiforecasts/EpiNow2 | R | false | true | 872 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{expose_stan_fns}
\alias{expose_stan_fns}
\title{Expose internal package stan functions in R}
\usage{
expose_stan_fns(files, target_dir, ...)
}
\arguments{
\item{files}{A character vector indicating the target files.}
\item{... |
hcg.estimate <- function(subject, recruiter, time, degree, out, N, small.fraction=FALSE, tol=.00005, max.iter=50,
reltol=sqrt(.Machine$double.eps), BS.reltol=sqrt(.Machine$double.eps), max.optim=500, theta.start=NULL){
rds <- data.frame(subject, recruiter, time, degree, out)
rds <- rds[or... | /R/hcg-util.R | no_license | Edouard-Legoupil/RDS | R | false | false | 6,963 | r |
hcg.estimate <- function(subject, recruiter, time, degree, out, N, small.fraction=FALSE, tol=.00005, max.iter=50,
reltol=sqrt(.Machine$double.eps), BS.reltol=sqrt(.Machine$double.eps), max.optim=500, theta.start=NULL){
rds <- data.frame(subject, recruiter, time, degree, out)
rds <- rds[or... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/kvPairs.R
\name{kvPairs}
\alias{kvPairs}
\title{Specify a Collection of Key-Value Pairs}
\usage{
kvPairs(...)
}
\arguments{
\item{\ldots}{key-value pairs (lists with two elements)}
}
\value{
a list of objects of class "kvPair"
}
\desc... | /man/kvPairs.Rd | permissive | jrounds/datadr | R | false | false | 468 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/kvPairs.R
\name{kvPairs}
\alias{kvPairs}
\title{Specify a Collection of Key-Value Pairs}
\usage{
kvPairs(...)
}
\arguments{
\item{\ldots}{key-value pairs (lists with two elements)}
}
\value{
a list of objects of class "kvPair"
}
\desc... |
# TO run this code NiPostCode data frame is needed so first run the r code from the link
# LINK: https://github.com/naveenjaladi/Data_Science/blob/master/CA_2_NiPostCodes.R
# Donot download village list data prior to execution of step 1 as it read all files csv files present in the
# Folder and copy the village list d... | /CA_2_AllCrimeData.R | no_license | naveenjaladi/Data_Science | R | false | false | 7,458 | r | # TO run this code NiPostCode data frame is needed so first run the r code from the link
# LINK: https://github.com/naveenjaladi/Data_Science/blob/master/CA_2_NiPostCodes.R
# Donot download village list data prior to execution of step 1 as it read all files csv files present in the
# Folder and copy the village list d... |
## Getting and Cleaning Data Course Project Script
## Dan Stegman
## Started: 5/20/2015
## import training data files
x_train <- read.table("./UCI HAR Dataset/train/X_train.txt")
y_train <- read.table("./UCI HAR Dataset/train/y_train.txt")
subject_train <- read.table("./UCI HAR Dataset/train/su... | /run_analysis.R | no_license | danstegman/Getting_and_Cleaning_Data_Course_Project | R | false | false | 10,598 | r | ## Getting and Cleaning Data Course Project Script
## Dan Stegman
## Started: 5/20/2015
## import training data files
x_train <- read.table("./UCI HAR Dataset/train/X_train.txt")
y_train <- read.table("./UCI HAR Dataset/train/y_train.txt")
subject_train <- read.table("./UCI HAR Dataset/train/su... |
library(dplyr)
library(tidyr)
library(ggplot2)
# load data
dat <- read.csv("../data/EcolArchives-E089-51-D1.csv",header = T, sep=",", stringsAsFactors = T)
# create variables
dat = dat %>%
mutate(Predator.mass.log = log(Predator.mass),
Prey.mass.log = log(Prey.mass),
SizeRatio = Prey.mass ... | /Week3/Code/PP_Regress.R | no_license | YuanZhang1203/CMEECourseWork | R | false | false | 1,719 | r | library(dplyr)
library(tidyr)
library(ggplot2)
# load data
dat <- read.csv("../data/EcolArchives-E089-51-D1.csv",header = T, sep=",", stringsAsFactors = T)
# create variables
dat = dat %>%
mutate(Predator.mass.log = log(Predator.mass),
Prey.mass.log = log(Prey.mass),
SizeRatio = Prey.mass ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/events.R
\name{sg_events}
\alias{sg_events}
\title{Events}
\usage{
sg_events(sg, events)
}
\arguments{
\item{sg}{An object of class \code{sigmajs}as intatiated by \code{\link{sigmajs}}.}
\item{events}{A vector of valid events (see section be... | /man/sg_events.Rd | no_license | cran/sigmajs | R | false | true | 1,805 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/events.R
\name{sg_events}
\alias{sg_events}
\title{Events}
\usage{
sg_events(sg, events)
}
\arguments{
\item{sg}{An object of class \code{sigmajs}as intatiated by \code{\link{sigmajs}}.}
\item{events}{A vector of valid events (see section be... |
\encoding{UTF-8}
\name{RunModel_GR5H}
\alias{RunModel_GR5H}
\title{Run with the GR5H hydrological model}
\description{
Function which performs a single run for the GR5H hourly lumped model.
}
\usage{
RunModel_GR5H(InputsModel, RunOptions, Param)
}
\arguments{
\item{InputsModel}{[object of... | /man/RunModel_GR5H.Rd | no_license | xuzhenwu/airGR | R | false | false | 7,121 | rd | \encoding{UTF-8}
\name{RunModel_GR5H}
\alias{RunModel_GR5H}
\title{Run with the GR5H hydrological model}
\description{
Function which performs a single run for the GR5H hourly lumped model.
}
\usage{
RunModel_GR5H(InputsModel, RunOptions, Param)
}
\arguments{
\item{InputsModel}{[object of... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/keras_models.R
\name{keras_gru_cnn}
\alias{keras_gru_cnn}
\title{keras gru cnn}
\usage{
keras_gru_cnn(input_dim, embed_dim = 128, seq_len = 50, gru_dim = 64,
gru_drop = 0.2, filter_sizes = c(3, 2), n_filters = c(120, 60),
pool_size = 4, o... | /man/keras_gru_cnn.Rd | permissive | systats/deeplyr | R | false | true | 963 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/keras_models.R
\name{keras_gru_cnn}
\alias{keras_gru_cnn}
\title{keras gru cnn}
\usage{
keras_gru_cnn(input_dim, embed_dim = 128, seq_len = 50, gru_dim = 64,
gru_drop = 0.2, filter_sizes = c(3, 2), n_filters = c(120, 60),
pool_size = 4, o... |
# Create the data
data <- Data(x=c(0.1, 0.5, 1.5, 3, 6, 10, 10, 10),
y=c(0, 0, 0, 0, 0, 0, 1, 0),
cohort=c(0, 1, 2, 3, 4, 5, 5, 5),
doseGrid=
c(0.1, 0.5, 1.5, 3, 6,
seq(from=10, to=80, by=2)))
# Initialize the CRM model used to model the data
mode... | /examples/Rules-method-stopTrial-StoppingTargetProb.R | no_license | insightsengineering/crmPack | R | false | false | 1,910 | r |
# Create the data
data <- Data(x=c(0.1, 0.5, 1.5, 3, 6, 10, 10, 10),
y=c(0, 0, 0, 0, 0, 0, 1, 0),
cohort=c(0, 1, 2, 3, 4, 5, 5, 5),
doseGrid=
c(0.1, 0.5, 1.5, 3, 6,
seq(from=10, to=80, by=2)))
# Initialize the CRM model used to model the data
mode... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Correlation.R
\name{tt_sample_aggregator}
\alias{tt_sample_aggregator}
\title{Get list_tt_expData object for correlation analysis}
\usage{
tt_sample_aggregator(list_cell_ctDist, list_expData)
}
\arguments{
\item{list_expData}{}
}
\value{
}
\... | /man/tt_sample_aggregator.Rd | no_license | AlexanderKononov/cytofBrowser | R | false | true | 387 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Correlation.R
\name{tt_sample_aggregator}
\alias{tt_sample_aggregator}
\title{Get list_tt_expData object for correlation analysis}
\usage{
tt_sample_aggregator(list_cell_ctDist, list_expData)
}
\arguments{
\item{list_expData}{}
}
\value{
}
\... |
library("adegenet", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
library("ade4", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
library("factoextra", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
setwd("/Volumes/Brumfield_Lab_Drive/data... | /DAPC/dapc_pca_mazaria_propinqua.R | permissive | henicorhina/Riverine_islands_code | R | false | false | 4,289 | r | library("adegenet", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
library("ade4", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
library("factoextra", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
setwd("/Volumes/Brumfield_Lab_Drive/data... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{compareAndUpdate}
\alias{compareAndUpdate}
\title{compare numeric and update dataframe}
\usage{
compareAndUpdate(unknown, known, protFrame, knownCount)
}
\arguments{
\item{unknown}{Numerical, A numerical vector of the unknown p... | /man/compareAndUpdate.Rd | permissive | angelawong1526/mutVis | R | false | true | 925 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{compareAndUpdate}
\alias{compareAndUpdate}
\title{compare numeric and update dataframe}
\usage{
compareAndUpdate(unknown, known, protFrame, knownCount)
}
\arguments{
\item{unknown}{Numerical, A numerical vector of the unknown p... |
### Numeric Vectors
# A vector is a series of values, all of the same type. They are the most basic data type in R and can
# hold numeric data, character data, or logical data. In R, you can create a vector with the combine
# function c(). You place the vector elements separated by a comma between the parentheses. F... | /section2/script/assessment3.r | no_license | Ricksanchez000/PH125.1x-Data-Science-R-Basics | R | false | false | 10,442 | r | ### Numeric Vectors
# A vector is a series of values, all of the same type. They are the most basic data type in R and can
# hold numeric data, character data, or logical data. In R, you can create a vector with the combine
# function c(). You place the vector elements separated by a comma between the parentheses. F... |
if (!require(RMySQL)) {
install.packages("RMySQL")
library(DBI)
}
csv_url <- "https://storage.googleapis.com/ds_data_import/boston_celtics_2007_2008.csv"
boston_celtics <- read.csv(csv_url)
host <- "YOURHOST" # 輸入自己的 AWS RDS Enpoint 位址
port <- 3306
dbname <- "YOURDBNAME" # 輸入自己設定的資料庫名稱
user <- "YOURUSERNAME" # 輸入... | /dsia_demo_codes/ch0303.R | no_license | jtlai0921/AEL018600_codes | R | false | false | 782 | r | if (!require(RMySQL)) {
install.packages("RMySQL")
library(DBI)
}
csv_url <- "https://storage.googleapis.com/ds_data_import/boston_celtics_2007_2008.csv"
boston_celtics <- read.csv(csv_url)
host <- "YOURHOST" # 輸入自己的 AWS RDS Enpoint 位址
port <- 3306
dbname <- "YOURDBNAME" # 輸入自己設定的資料庫名稱
user <- "YOURUSERNAME" # 輸入... |
test_that("explorePCVariability works with Eset", {
library(ALL)
data(ALL)
#Default param
expect_error(
explorePCVariability(ALL, c()),
'No annotations present'
)
#assess with column
expect_silent(explorePCVariability(ALL, age))
expect_silent(explorePCVariability(ALL, c(age)))
#multiple ann... | /tests/testthat/test-explorePCVariability.R | no_license | bhuvad/restools | R | false | false | 525 | r | test_that("explorePCVariability works with Eset", {
library(ALL)
data(ALL)
#Default param
expect_error(
explorePCVariability(ALL, c()),
'No annotations present'
)
#assess with column
expect_silent(explorePCVariability(ALL, age))
expect_silent(explorePCVariability(ALL, c(age)))
#multiple ann... |
# install.packages("dplyr")
# install.packages("ggplot2")
# install.packages("mgcv")
# install.packages("REdaS")
# install.packages("gridExtra")
# install.packages("googlesheets4")
# install.packages("gt")
# library(tidyverse)
# library(ggplot2)
# library(mgcv)
# library(REdaS)
# library(gridExtra)
# library(googleshee... | /PitchingPlanMobile/source.R | no_license | pmammino/PitchingPlan | R | false | false | 10,704 | r | # install.packages("dplyr")
# install.packages("ggplot2")
# install.packages("mgcv")
# install.packages("REdaS")
# install.packages("gridExtra")
# install.packages("googlesheets4")
# install.packages("gt")
# library(tidyverse)
# library(ggplot2)
# library(mgcv)
# library(REdaS)
# library(gridExtra)
# library(googleshee... |
mtcars
git config --global user.email "neeta.p18031@iimtrichy.com"
git config --global user.name "neetamc"
women
| /file1.R | no_license | neetamc/analytics1 | R | false | false | 113 | r | mtcars
git config --global user.email "neeta.p18031@iimtrichy.com"
git config --global user.name "neetamc"
women
|
#this function use proxy from proxybonanza
rotate_proxy <- function(proxy_table=my_proxy_table){
#load proxy table
if(!exists("proxy_rotation_counter")){
proxy_rotation_counter <<- 1
}
if(proxy_rotation_counter == nrow(proxy_table)+1){
proxy_rotation_counter <<- 1
}
cu... | /R Projects/function/rotate_proxy.R | no_license | yusuzech/web-scraping-projects | R | false | false | 785 | r | #this function use proxy from proxybonanza
rotate_proxy <- function(proxy_table=my_proxy_table){
#load proxy table
if(!exists("proxy_rotation_counter")){
proxy_rotation_counter <<- 1
}
if(proxy_rotation_counter == nrow(proxy_table)+1){
proxy_rotation_counter <<- 1
}
cu... |
library(mixtox)
### Name: BMD
### Title: Calculating benchmark dose (BMD) and lower limit of benchmark
### dose (BMDL)
### Aliases: BMD
### Keywords: BMD BMDL
### ** Examples
## example 1
# calcualte the BMD of heavy metal Ni(2+) on the MCF-7 cells
x <- cytotox$Ni$x
rspn <- cytotox$Ni$y
obj <- curveFit(x, rspn, ... | /data/genthat_extracted_code/mixtox/examples/BMD.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 489 | r | library(mixtox)
### Name: BMD
### Title: Calculating benchmark dose (BMD) and lower limit of benchmark
### dose (BMDL)
### Aliases: BMD
### Keywords: BMD BMDL
### ** Examples
## example 1
# calcualte the BMD of heavy metal Ni(2+) on the MCF-7 cells
x <- cytotox$Ni$x
rspn <- cytotox$Ni$y
obj <- curveFit(x, rspn, ... |
# This is a temporary file. Do not use. I just need to plot heterotrophic respiration from key plots for the 10th May El Nino meeting.
# load packages
library(sqldf)
require(ggplot2)
require(plyr)
require(gridExtra)
# read in soil respiration auxillary functions from GitHub
setwd("~/Github/GEMcarbon.R")
... | /elnino_rhet_10may.R | no_license | WalterHH/GEMcarbon.R | R | false | false | 14,203 | r |
# This is a temporary file. Do not use. I just need to plot heterotrophic respiration from key plots for the 10th May El Nino meeting.
# load packages
library(sqldf)
require(ggplot2)
require(plyr)
require(gridExtra)
# read in soil respiration auxillary functions from GitHub
setwd("~/Github/GEMcarbon.R")
... |
#!/usr/bin/env Rscript
suppressPackageStartupMessages(library(knitr))
suppressPackageStartupMessages(library(markdown))
args <- commandArgs(T)
if (length(args) < 2) stop("Need input and output script")
input <- args[1]
outPrefix <- args[2]
args <- args[c(-1,-2)]
figPath <- file.path(outPrefix, 'figure/')
cachePat... | /scripts/knit.R | no_license | jrflab/modules | R | false | false | 923 | r | #!/usr/bin/env Rscript
suppressPackageStartupMessages(library(knitr))
suppressPackageStartupMessages(library(markdown))
args <- commandArgs(T)
if (length(args) < 2) stop("Need input and output script")
input <- args[1]
outPrefix <- args[2]
args <- args[c(-1,-2)]
figPath <- file.path(outPrefix, 'figure/')
cachePat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dodo.R
\name{dodo}
\alias{dodo}
\title{My First Function}
\usage{
dodo(n_sum, n_count)
}
\arguments{
\item{num_sum}{explain parameter 1}
\item{num_count}{explain parameter 2}
}
\value{
the average
}
\description{
dodo does the average calcul... | /man/dodo.Rd | no_license | ling32342/package.tuto | R | false | true | 330 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dodo.R
\name{dodo}
\alias{dodo}
\title{My First Function}
\usage{
dodo(n_sum, n_count)
}
\arguments{
\item{num_sum}{explain parameter 1}
\item{num_count}{explain parameter 2}
}
\value{
the average
}
\description{
dodo does the average calcul... |
######################################
#
# BUSCO summary figure
# @version 3.0.0
# @since BUSCO 2.0.0
#
# Copyright (c) 2016-2017, Evgeny Zdobnov (ez@ezlab.org)
# Licensed under the MIT license. See LICENSE.md file.
#
######################################
# Load the required libraries
library(ggplot2)
library("grid"... | /src/insect_apg_busco.R | no_license | HFpostdoc/apGenomes | R | false | false | 4,580 | r | ######################################
#
# BUSCO summary figure
# @version 3.0.0
# @since BUSCO 2.0.0
#
# Copyright (c) 2016-2017, Evgeny Zdobnov (ez@ezlab.org)
# Licensed under the MIT license. See LICENSE.md file.
#
######################################
# Load the required libraries
library(ggplot2)
library("grid"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitclasses.r
\name{fitmodel}
\alias{fitmodel}
\title{Constructor of fitmodel object}
\usage{
fitmodel(name = NULL, state.names = NULL, theta.names = NULL,
simulate = NULL, rPointObs = NULL, dprior = NULL, dPointObs = NULL)
}
\arguments{
\it... | /man/fitmodel.Rd | no_license | WWH98932/fitR | R | false | true | 6,210 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitclasses.r
\name{fitmodel}
\alias{fitmodel}
\title{Constructor of fitmodel object}
\usage{
fitmodel(name = NULL, state.names = NULL, theta.names = NULL,
simulate = NULL, rPointObs = NULL, dprior = NULL, dPointObs = NULL)
}
\arguments{
\it... |
library(RMark)
### Name: add.design.data
### Title: Add design data
### Aliases: add.design.data
### Keywords: utility
### ** Examples
## No test:
# This example is excluded from testing to reduce package check time
data(example.data)
example.data.proc=process.data(example.data)
ddl=make.design.data(example.data.p... | /data/genthat_extracted_code/RMark/examples/add.design.data.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 656 | r | library(RMark)
### Name: add.design.data
### Title: Add design data
### Aliases: add.design.data
### Keywords: utility
### ** Examples
## No test:
# This example is excluded from testing to reduce package check time
data(example.data)
example.data.proc=process.data(example.data)
ddl=make.design.data(example.data.p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auth.R
\name{auth_remote}
\alias{auth_remote}
\title{Authentication -- remote}
\usage{
auth_remote(app_id = Sys.getenv("PHILIPS_HUE_APP_ID"),
client_id = Sys.getenv("PHILIPS_HUE_CLIENT_ID"),
client_secret = Sys.getenv("PHILIPS_HUE_CLIENT_... | /man/auth_remote.Rd | no_license | ianhandel/PhilipsHue | R | false | true | 2,277 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auth.R
\name{auth_remote}
\alias{auth_remote}
\title{Authentication -- remote}
\usage{
auth_remote(app_id = Sys.getenv("PHILIPS_HUE_APP_ID"),
client_id = Sys.getenv("PHILIPS_HUE_CLIENT_ID"),
client_secret = Sys.getenv("PHILIPS_HUE_CLIENT_... |
library(rjson)
library(randomForest)
#' makeModel
#'
#' Creates a randomForest word model
#'
#' @param TaggedJson Json File with tagged letter data
#' @return randomForest model
#'
#' @importFrom randomForest randomForest
makeModel = function(TaggedJson){
na.exclude <- NULL
#Load JSON file
... | /R/WordModelMaker.R | no_license | cran/handwriter | R | false | false | 2,559 | r | library(rjson)
library(randomForest)
#' makeModel
#'
#' Creates a randomForest word model
#'
#' @param TaggedJson Json File with tagged letter data
#' @return randomForest model
#'
#' @importFrom randomForest randomForest
makeModel = function(TaggedJson){
na.exclude <- NULL
#Load JSON file
... |
##' Load Dataset for Paramater Data Assimilation
##'
##' @title Load Dataset for Paramater Data Assimilation
##' @param input.settings = settings$assim.batch$inputs from pecan.xml or similar
##'
##' @return A list containg the loaded input data, plus metadata
##'
##' @author Ryan Kelly
##' @export
load.pda.data <- func... | /modules/assim.batch/R/pda.utils.R | permissive | ncsa/pecan | R | false | false | 30,393 | r | ##' Load Dataset for Paramater Data Assimilation
##'
##' @title Load Dataset for Paramater Data Assimilation
##' @param input.settings = settings$assim.batch$inputs from pecan.xml or similar
##'
##' @return A list containg the loaded input data, plus metadata
##'
##' @author Ryan Kelly
##' @export
load.pda.data <- func... |
testlist <- list(b = c(-1667457875L, -1667457798L, 67964173L, 67964173L, -1835887972L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613109207-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 155 | r | testlist <- list(b = c(-1667457875L, -1667457798L, 67964173L, 67964173L, -1835887972L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) |
#' ---
#' title: "Sesión X ANOVA - Diseño Factorial (DF)"
#' author: "Nombre y apellido"
#' date: "Mes día, año"
#' ---
# Cargar paquetes
library(ggplot2)
library(dplyr)
library(car)
# Cargar datos - archivo .csv
###############################ANÁLISIS EXPLORATORIOS###############################################... | /VT-02 - Primeros_pasos/Script-Intro.R | no_license | carlosneftaly/NP-Microdata | R | false | false | 489 | r | #' ---
#' title: "Sesión X ANOVA - Diseño Factorial (DF)"
#' author: "Nombre y apellido"
#' date: "Mes día, año"
#' ---
# Cargar paquetes
library(ggplot2)
library(dplyr)
library(car)
# Cargar datos - archivo .csv
###############################ANÁLISIS EXPLORATORIOS###############################################... |
# In-silico PCR to check MiFish primer specificty of mammal primers
# ----------------------------------------------------------
# Cannon, M. V. et al. In silico assessment of primers for eDNA studies
# using PrimerTree and application to characterize the biodiversity
# surrounding the Cuyahoga River. Sci. Rep. 6,... | /000_r_in_silico_pcr.R | permissive | macrobiotus/Fiordland-eDNA | R | false | false | 3,627 | r | # In-silico PCR to check MiFish primer specificty of mammal primers
# ----------------------------------------------------------
# Cannon, M. V. et al. In silico assessment of primers for eDNA studies
# using PrimerTree and application to characterize the biodiversity
# surrounding the Cuyahoga River. Sci. Rep. 6,... |
assert_has_columns <- function(x, columns, name = deparse(substitute(x))) {
msg <- setdiff(columns, names(x))
if (length(msg) > 0L) {
stop(sprintf("Missing columns from '%s': %s",
name, paste(msg, collapse = ", ")))
}
}
| /R/util_assert.R | permissive | vimc/jenner | R | false | false | 247 | r | assert_has_columns <- function(x, columns, name = deparse(substitute(x))) {
msg <- setdiff(columns, names(x))
if (length(msg) > 0L) {
stop(sprintf("Missing columns from '%s': %s",
name, paste(msg, collapse = ", ")))
}
}
|
#Purpose of plot3.R file:
## --defines function- plot3() used to generate line plot for energy sub-metering (No. 1, 2, 3) in 3 different colors vs datetimestamp as per Plot 3
# -----------------------------------------------------
#Function: plot3()
##Purpose:
### --uses function plot_graph() defined in this file to ge... | /plot3.R | no_license | preetis/ExData_Plotting1 | R | false | false | 4,330 | r | #Purpose of plot3.R file:
## --defines function- plot3() used to generate line plot for energy sub-metering (No. 1, 2, 3) in 3 different colors vs datetimestamp as per Plot 3
# -----------------------------------------------------
#Function: plot3()
##Purpose:
### --uses function plot_graph() defined in this file to ge... |
testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615827484-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 734 | r | testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6... |
library(ape)
testtree <- read.tree("8651_4.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="8651_4_unrooted.txt") | /codeml_files/newick_trees_processed/8651_4/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("8651_4.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="8651_4_unrooted.txt") |
#### =========== ######
## PREDICT FUNCTION #
#### =========== ######
# include is used for aggregating
# averaged is used to be included in the prediction
# ignored is not used included in the prediction
"predict.mmec" <- function(object, Dtable=NULL, D, ...){
if(is.character(D)){classify <- D}else{classify="id"} ... | /R/predict_mmec.R | no_license | covaruber/sommer | R | false | false | 11,496 | r | #### =========== ######
## PREDICT FUNCTION #
#### =========== ######
# include is used for aggregating
# averaged is used to be included in the prediction
# ignored is not used included in the prediction
"predict.mmec" <- function(object, Dtable=NULL, D, ...){
if(is.character(D)){classify <- D}else{classify="id"} ... |
# Define UI
shinyUI(
dashboardPage(
dashboardHeader(title = 'Opioids by Specialty'),
dashboardSidebar(
selectInput("specialty",
label = "Specialty:",
choices = specialties,
selected = 'Family Pract... | /ui.R | no_license | amerus/US-Opioid-Prescribing | R | false | false | 1,007 | r |
# Define UI
shinyUI(
dashboardPage(
dashboardHeader(title = 'Opioids by Specialty'),
dashboardSidebar(
selectInput("specialty",
label = "Specialty:",
choices = specialties,
selected = 'Family Pract... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trial_survey.R
\name{response_likert}
\alias{response_likert}
\title{Specify a Likert response}
\usage{
response_likert(labels, scale_width = NULL)
}
\arguments{
\item{labels}{character vector of response labels}
\item{scale_width}{width of ... | /man/response_likert.Rd | no_license | djnavarro/xprmntr | R | false | true | 430 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trial_survey.R
\name{response_likert}
\alias{response_likert}
\title{Specify a Likert response}
\usage{
response_likert(labels, scale_width = NULL)
}
\arguments{
\item{labels}{character vector of response labels}
\item{scale_width}{width of ... |
#' Function to calculate predictions and AIC values
#' input a port value
#'
#' @param the_port Port name
#' @param the_seed Seed value for rmultinom and predictions
#' @export
get_aic <- function(the_port, the_seed = 300){
# browser()
#Find the files
the_string <- paste0(the_port, "_runs1_rev100_minyr2007_foc... | /R/get_aic.R | no_license | peterkuriyama/ch4 | R | false | false | 2,843 | r | #' Function to calculate predictions and AIC values
#' input a port value
#'
#' @param the_port Port name
#' @param the_seed Seed value for rmultinom and predictions
#' @export
get_aic <- function(the_port, the_seed = 300){
# browser()
#Find the files
the_string <- paste0(the_port, "_runs1_rev100_minyr2007_foc... |
# Create test matrix
test = matrix(rnorm(200), 20, 10)
test[1:10, seq(1, 10, 2)] = test[1:10, seq(1, 10, 2)] + 3
test[11:20, seq(2, 10, 2)] = test[11:20, seq(2, 10, 2)] + 2
test[15:20, seq(2, 10, 2)] = test[15:20, seq(2, 10, 2)] + 4
colnames(test) = paste("Test", 1:10, sep = "")
rownames(test) = paste("Gene", 1:2... | /pheatmap.R | no_license | cnyanyan/HCC-gut-microbiome | R | false | false | 3,567 | r | # Create test matrix
test = matrix(rnorm(200), 20, 10)
test[1:10, seq(1, 10, 2)] = test[1:10, seq(1, 10, 2)] + 3
test[11:20, seq(2, 10, 2)] = test[11:20, seq(2, 10, 2)] + 2
test[15:20, seq(2, 10, 2)] = test[15:20, seq(2, 10, 2)] + 4
colnames(test) = paste("Test", 1:10, sep = "")
rownames(test) = paste("Gene", 1:2... |
library(tidyverse)
# load training data from local storage
x_train <- read.table("./UCI HAR Dataset/train/X_train.txt")
y_train <- read.table("./UCI HAR Dataset/train/Y_train.txt")
subject_train <- read.table("./UCI HAR Dataset/train/subject_train.txt")
# load test data from local storage
x_test <- read.table("./UCI ... | /run_analysis.R | no_license | aleshireb/CleaningDataWeek4 | R | false | false | 1,578 | r | library(tidyverse)
# load training data from local storage
x_train <- read.table("./UCI HAR Dataset/train/X_train.txt")
y_train <- read.table("./UCI HAR Dataset/train/Y_train.txt")
subject_train <- read.table("./UCI HAR Dataset/train/subject_train.txt")
# load test data from local storage
x_test <- read.table("./UCI ... |
test_that("quos() creates quosures", {
fs <- quos(x = 1 + 2, y = 2 + 3)
expect_identical(fs$x, as_quosure(~ 1 + 2))
expect_identical(fs$y, as_quosure(~ 2 + 3))
})
test_that("quos() captures correct environment", {
fn <- function(x = a + b, ...) {
list(dots = quos(x = x, y = a + b, ...), env = environment()... | /tests/testthat/test-nse-defuse.R | permissive | ianmcook/rlang | R | false | false | 17,761 | r | test_that("quos() creates quosures", {
fs <- quos(x = 1 + 2, y = 2 + 3)
expect_identical(fs$x, as_quosure(~ 1 + 2))
expect_identical(fs$y, as_quosure(~ 2 + 3))
})
test_that("quos() captures correct environment", {
fn <- function(x = a + b, ...) {
list(dots = quos(x = x, y = a + b, ...), env = environment()... |
fileName <- "Smartphones.zip"
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
dir <- "Smartphones"
download.file(url,fileName, mode = "wb")
unzip("Smartphones.zip", files = NULL, exdir=".")
subject_test <- read.table("UCI HAR Dataset/test/subject_test.txt")
subject_trai... | /run_analysis.R | no_license | PerikovaE/-Getting-and-Cleaning-Data | R | false | false | 2,181 | r | fileName <- "Smartphones.zip"
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
dir <- "Smartphones"
download.file(url,fileName, mode = "wb")
unzip("Smartphones.zip", files = NULL, exdir=".")
subject_test <- read.table("UCI HAR Dataset/test/subject_test.txt")
subject_trai... |
# SARS-CoV/CoV-2 loading and preparing the viral-protein-overexpressed A549 proteome data
#
# Author: Alexey Stukalov
###############################################################################
project_id <- 'cov2'
message('Project ID=', project_id)
data_version <- "20200506"
fit_version <- "20200506"
ms_folder <... | /prepare_data_cov2ts_proteome.R | no_license | innatelab/cov2 | R | false | false | 33,999 | r | # SARS-CoV/CoV-2 loading and preparing the viral-protein-overexpressed A549 proteome data
#
# Author: Alexey Stukalov
###############################################################################
project_id <- 'cov2'
message('Project ID=', project_id)
data_version <- "20200506"
fit_version <- "20200506"
ms_folder <... |
# Exercise-1: practice with basic syntax
# Create a variable `hometown` that stores the city in which you were born
hometown <- "Butterworth"
# Assign your name to the variable `my.name`
my.name <- "Eshin"
# Assign your height to a variable `my.height`
my.height <- 165
# Create a variable `puppies` equal to the numb... | /exercise-1/exercise.R | permissive | eang16/ch5-r-intro | R | false | false | 793 | r | # Exercise-1: practice with basic syntax
# Create a variable `hometown` that stores the city in which you were born
hometown <- "Butterworth"
# Assign your name to the variable `my.name`
my.name <- "Eshin"
# Assign your height to a variable `my.height`
my.height <- 165
# Create a variable `puppies` equal to the numb... |
#goal: merge all of the EUR, AFR, LAC genotyped data
setwd('/data/zhangh24/breast_cancer_data_analysis')
load("/data/zhangh24/KG.vcf/MAF_result/pruned_MAF_permu.Rdata")
load(paste0("./multi_ethnic/result/y_",1))
n.snp <- nrow(pruned.snp.permu)
n.EUR <- nrow(y[[1]])
n.AFR <- nrow(y[[2]])
n.LAC <- nrow(y[[3]])
library(bi... | /code/independent_SNPs_simulation/regression_prediciton/merge_all_genotype_data.R | no_license | andrewhaoyu/multi_ethnic | R | false | false | 397 | r | #goal: merge all of the EUR, AFR, LAC genotyped data
setwd('/data/zhangh24/breast_cancer_data_analysis')
load("/data/zhangh24/KG.vcf/MAF_result/pruned_MAF_permu.Rdata")
load(paste0("./multi_ethnic/result/y_",1))
n.snp <- nrow(pruned.snp.permu)
n.EUR <- nrow(y[[1]])
n.AFR <- nrow(y[[2]])
n.LAC <- nrow(y[[3]])
library(bi... |
shinyPanelVis <- fluidPage(
tags$div(
class = "container",
h1("Gene Visualization"),
h5(tags$a(href = "https://compbiomed.github.io/sctk_docs/articles/v05-tab03_Dimensionality-Reduction-and-Clustering.html",
"(help)", target = "_blank")),
sidebarLayout(
sidebarPanel(
h4("Op... | /inst/shiny/ui_03_1_genewise_vis.R | permissive | hliyun418/singleCellTK | R | false | false | 1,498 | r | shinyPanelVis <- fluidPage(
tags$div(
class = "container",
h1("Gene Visualization"),
h5(tags$a(href = "https://compbiomed.github.io/sctk_docs/articles/v05-tab03_Dimensionality-Reduction-and-Clustering.html",
"(help)", target = "_blank")),
sidebarLayout(
sidebarPanel(
h4("Op... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{theme_bw}
\alias{theme_bw}
\title{A theme with white background and black gridlines.}
\usage{
theme_bw(base_size = 12, base_family = "")
}
\arguments{
\item{base_size}{base font size}
\item{base_family}{base font family}
}
\description{
A theme with white ... | /man/theme_bw.Rd | no_license | Xiuying/ggplot2 | R | false | false | 355 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{theme_bw}
\alias{theme_bw}
\title{A theme with white background and black gridlines.}
\usage{
theme_bw(base_size = 12, base_family = "")
}
\arguments{
\item{base_size}{base font size}
\item{base_family}{base font family}
}
\description{
A theme with white ... |
#----------------------------------------------------------------------------------------------------
#' An S4 class to represent a Bayes Spike solver
#'
#' @import vbsr
#' @import methods
#'
#' @include Solver.R
#' @name BayesSpikeSolver-class
.BayesSpikeSolver <- setClass ("BayesSpikeSolver",
... | /R/BayesSpikeSolver.R | no_license | noahmclean1/trena-1 | R | false | false | 6,189 | r | #----------------------------------------------------------------------------------------------------
#' An S4 class to represent a Bayes Spike solver
#'
#' @import vbsr
#' @import methods
#'
#' @include Solver.R
#' @name BayesSpikeSolver-class
.BayesSpikeSolver <- setClass ("BayesSpikeSolver",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{expected_trend}
\alias{expected_trend}
\title{The expected trend analysis}
\format{
A data frame with 9 rows and 3 variables:
\describe{
\item{old_outcome}{The original outcome of interest}
\item{new_outcome}{The r... | /man/expected_trend.Rd | permissive | hmsuw-learn-r/DiagnosticReportR | R | false | true | 1,457 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{expected_trend}
\alias{expected_trend}
\title{The expected trend analysis}
\format{
A data frame with 9 rows and 3 variables:
\describe{
\item{old_outcome}{The original outcome of interest}
\item{new_outcome}{The r... |
\name{cmh.test}
\alias{cmh.test}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Vectorized Cochran-Mantel-Haenszel Test for Count Data
}
\description{
Performs a vectorized version of the Cochran-Mantel-Haenszel (CMH) test with the nullhypothesis that relative allele frequencies are not associat... | /man/cmh.test.Rd | permissive | ThomasTaus/poolSeq | R | false | false | 4,208 | rd | \name{cmh.test}
\alias{cmh.test}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Vectorized Cochran-Mantel-Haenszel Test for Count Data
}
\description{
Performs a vectorized version of the Cochran-Mantel-Haenszel (CMH) test with the nullhypothesis that relative allele frequencies are not associat... |
# Function, Debugging & Condition Handling exercises
#1
my_factorial=function(x){
prod = prod(1:x)
print(prod)
}
my_factorial(5)
is.integer(7L) # la razon por la cual la función is.integer no nos sirve es porque nuestra definicion de entero es diferente a la R
my_int= function(x){
if(x=... | /Homework/ejercios de funciones y debugging.R | no_license | chinomandarin77/ApplStatsR | R | false | false | 1,522 | r | # Function, Debugging & Condition Handling exercises
#1
my_factorial=function(x){
prod = prod(1:x)
print(prod)
}
my_factorial(5)
is.integer(7L) # la razon por la cual la función is.integer no nos sirve es porque nuestra definicion de entero es diferente a la R
my_int= function(x){
if(x=... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculations_api.R
\docType{class}
\name{CalculationsApi}
\alias{CalculationsApi}
\title{Calculations operations}
\format{An \code{R6Class} generator object}
\description{
factset.analyticsapi.engines.Calculations
}
\section{Methods... | /man/CalculationsApi.Rd | no_license | cran/factset.analyticsapi.engines | R | false | true | 30,412 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculations_api.R
\docType{class}
\name{CalculationsApi}
\alias{CalculationsApi}
\title{Calculations operations}
\format{An \code{R6Class} generator object}
\description{
factset.analyticsapi.engines.Calculations
}
\section{Methods... |
test_that("chk_mcmcarray", {
expect_null(chk_mcmcarray(as.mcmcarray(1)))
expect_invisible(chk_mcmcarray(as.mcmcarray(1)))
expect_error(chk_mcmcarray(1), "^`1` must inherit from S3 class 'mcmcarray'[.]$",
class = "chk_error"
)
x <- 1
class(x) <- "mcmcarray"
expect_error(chk_mcmcarray(x), "^`x` must be ... | /tests/testthat/test-chk.R | permissive | poissonconsulting/mcmcr | R | false | false | 1,313 | r | test_that("chk_mcmcarray", {
expect_null(chk_mcmcarray(as.mcmcarray(1)))
expect_invisible(chk_mcmcarray(as.mcmcarray(1)))
expect_error(chk_mcmcarray(1), "^`1` must inherit from S3 class 'mcmcarray'[.]$",
class = "chk_error"
)
x <- 1
class(x) <- "mcmcarray"
expect_error(chk_mcmcarray(x), "^`x` must be ... |
dim.gvector = function(x) x@dim
#' @export
"dim<-.gvector" = function(x,value) {
if (prod(value) != length(x@vec)) stop("Wrong dimensions for this gvector")
new("gvector",vec=x@vec, dim=value);
}
getGenericFun = function ()
{
frame <- sys.parent()
envir <- parent.frame()
call <- sys.call(frame)
localArg... | /R/z_methods.R | no_license | llaniewski/gvector | R | false | false | 6,304 | r |
dim.gvector = function(x) x@dim
#' @export
"dim<-.gvector" = function(x,value) {
if (prod(value) != length(x@vec)) stop("Wrong dimensions for this gvector")
new("gvector",vec=x@vec, dim=value);
}
getGenericFun = function ()
{
frame <- sys.parent()
envir <- parent.frame()
call <- sys.call(frame)
localArg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.