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 |
|---|---|---|---|---|---|---|---|---|---|
getwd()
setwd("/home/uday/Desktop/Weather-Data/Weather")
chicago <- read.csv("Chicago-F.csv")
chicago
chicago <- read.csv("Chicago-F.csv",row.names=1)
chicago
houston<- read.csv("Houston-F.csv",row.names=1)
newyork <- read.csv("NewYork-F.csv",row.names = 1)
sanfrancisco <- read.csv("SanFrancisco-F.csv",row.names = 1)
... | /R/DONR/CA-3/BYOD PRAC 3/BYOD PRAC 3/SET_A_EVEN/demo11.R | no_license | ekanshbari/R-programs | R | false | false | 1,756 | r | getwd()
setwd("/home/uday/Desktop/Weather-Data/Weather")
chicago <- read.csv("Chicago-F.csv")
chicago
chicago <- read.csv("Chicago-F.csv",row.names=1)
chicago
houston<- read.csv("Houston-F.csv",row.names=1)
newyork <- read.csv("NewYork-F.csv",row.names = 1)
sanfrancisco <- read.csv("SanFrancisco-F.csv",row.names = 1)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kaplan_meier.R
\name{my.draw.kaplan}
\alias{my.draw.kaplan}
\title{Title}
\usage{
my.draw.kaplan(coef.l, xdata, ydata, plot.title = "", no.plot = FALSE)
}
\arguments{
\item{xdata.ix}{}
}
\description{
Title
}
| /man/my.draw.kaplan.Rd | no_license | averissimo/glmSparseNetPaper | R | false | true | 287 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kaplan_meier.R
\name{my.draw.kaplan}
\alias{my.draw.kaplan}
\title{Title}
\usage{
my.draw.kaplan(coef.l, xdata, ydata, plot.title = "", no.plot = FALSE)
}
\arguments{
\item{xdata.ix}{}
}
\description{
Title
}
|
library(readxl)
library(ggplot2)
library(dplyr)
notas <- read_excel("nombres60.xlsx")
notas
# opcion 1: paquete base
plot(notas$solemne, notas$examen)
boxplot(notas$solemne)
boxplot(notas$examen)
# opcion 2; paquete ggplot2
ggplot(notas) +
geom_point(aes(x = solemne, y = examen))
ggplot(notas) +
geom_boxplot... | /2019_2/control_3_ie.R | no_license | ricardomayerb/ico8306 | R | false | false | 1,201 | r | library(readxl)
library(ggplot2)
library(dplyr)
notas <- read_excel("nombres60.xlsx")
notas
# opcion 1: paquete base
plot(notas$solemne, notas$examen)
boxplot(notas$solemne)
boxplot(notas$examen)
# opcion 2; paquete ggplot2
ggplot(notas) +
geom_point(aes(x = solemne, y = examen))
ggplot(notas) +
geom_boxplot... |
#Corona Virus Simulations
#This simulation analyzes the time a person would be in the office before they realize they are sick
#Time from infection to incubation period is modeled
# as log normal distribution
#Lauer SA, Grantz KH, Bi Q, et al. The Incubation Period of Coronavirus Disease 2019 (COVID-19) From Publ... | /Corona Virus Simulation - Working From Home.R | no_license | Adamishere/WFH_COV19 | R | false | false | 4,036 | r | #Corona Virus Simulations
#This simulation analyzes the time a person would be in the office before they realize they are sick
#Time from infection to incubation period is modeled
# as log normal distribution
#Lauer SA, Grantz KH, Bi Q, et al. The Incubation Period of Coronavirus Disease 2019 (COVID-19) From Publ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smwrGraphs-package.R
\docType{package}
\name{smwrGraphs-package}
\alias{smwrGraphs-package}
\alias{smwrGraphs}
\title{Graphing Functions}
\description{
Functions to create high-quality graphs.\cr These graphs meet or nearly meet
the publicati... | /man/smwrGraphs-package.Rd | permissive | ldecicco-USGS/smwrGraphs | R | false | true | 4,685 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smwrGraphs-package.R
\docType{package}
\name{smwrGraphs-package}
\alias{smwrGraphs-package}
\alias{smwrGraphs}
\title{Graphing Functions}
\description{
Functions to create high-quality graphs.\cr These graphs meet or nearly meet
the publicati... |
power <- read.table("household_power_consumption.txt",skip=1,sep=";")
names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
subpower <- subset(power,power$Date=="1/2/2007" | power$Date =="2/2/2007")
subpower$Date ... | /exploratory-master/plot2.R | no_license | sakibb019/explority | R | false | false | 768 | r |
power <- read.table("household_power_consumption.txt",skip=1,sep=";")
names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
subpower <- subset(power,power$Date=="1/2/2007" | power$Date =="2/2/2007")
subpower$Date ... |
### ----- REGRESION AVANZADA ----- ###
# --- Prof. Luis E. Nieto Barajas --- #
#--- Usar espejo CRAN del ITAM ---
options(repos="http://cran.itam.mx/")
#--- Funciones utiles ---
prob<-function(x){
out<-min(length(x[x>0])/length(x),length(x[x<0])/length(x))
out
}
#--- Ilustracion del proceso de inferencia ---
#... | /cRA1.R | no_license | abraham314/GLM2018 | R | false | false | 30,362 | r | ### ----- REGRESION AVANZADA ----- ###
# --- Prof. Luis E. Nieto Barajas --- #
#--- Usar espejo CRAN del ITAM ---
options(repos="http://cran.itam.mx/")
#--- Funciones utiles ---
prob<-function(x){
out<-min(length(x[x>0])/length(x),length(x[x<0])/length(x))
out
}
#--- Ilustracion del proceso de inferencia ---
#... |
Length<-c(20,21,22,23,21,20)
Speed<-c(12,14,12,16,20,21)
Algae<-c(40,45,45,80,75,65)
NO3<-c(2.25,2.15,1.75,1.95,1.95,2.75)
BOD<-c(200,180,135,120,110,120)
mf<-data.frame(Length,Speed,Algae,NO3,BOD)
mf
plot(Length~BOD,data=mf, main='plot1')
plot.new()
plot.new()
plot(Length ~ NO3,data=mf,main='plot2')
| /multivariate.R | no_license | GauthamSampath/dsr | R | false | false | 316 | r | Length<-c(20,21,22,23,21,20)
Speed<-c(12,14,12,16,20,21)
Algae<-c(40,45,45,80,75,65)
NO3<-c(2.25,2.15,1.75,1.95,1.95,2.75)
BOD<-c(200,180,135,120,110,120)
mf<-data.frame(Length,Speed,Algae,NO3,BOD)
mf
plot(Length~BOD,data=mf, main='plot1')
plot.new()
plot.new()
plot(Length ~ NO3,data=mf,main='plot2')
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/affine.R
\name{readAffine}
\alias{readAffine}
\title{Read an affine matrix from a file}
\usage{
readAffine(fileName, source = NULL, target = NULL, type = NULL)
}
\arguments{
\item{fileName}{A string giving the file name to read the affine mat... | /man/readAffine.Rd | no_license | jonclayden/RNiftyReg | R | false | true | 1,575 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/affine.R
\name{readAffine}
\alias{readAffine}
\title{Read an affine matrix from a file}
\usage{
readAffine(fileName, source = NULL, target = NULL, type = NULL)
}
\arguments{
\item{fileName}{A string giving the file name to read the affine mat... |
# R code for the render function
rmarkdown::render("steakArticleParams.Rmd",
params = list(region = "Mountain"))
# R code to create the custom function
render_report <-function(regionvar){
template <-"steakArticleParams.Rmd"
outfile <-sprintf("steakArticle_%s.html",regionvar)
parameters <-l... | /Automated report.R | no_license | Raylc/ReproducibleTemplates | R | false | false | 893 | r | # R code for the render function
rmarkdown::render("steakArticleParams.Rmd",
params = list(region = "Mountain"))
# R code to create the custom function
render_report <-function(regionvar){
template <-"steakArticleParams.Rmd"
outfile <-sprintf("steakArticle_%s.html",regionvar)
parameters <-l... |
library(shiny)
ui <- basicPage(
plotOutput("plot1", click = "plot_click", width = 400),
verbatimTextOutput("info")
)
server <- function(input, output) {
output$plot1 <- renderPlot({
plot(mtcars$wt, mtcars$mpg)
})
output$info <- renderText({
paste0("x=", input$plot_click$x, "\n",
"y=", in... | /shiny/small_examples/02-click.R | no_license | SuperUsersDK/SU0237 | R | false | false | 367 | r | library(shiny)
ui <- basicPage(
plotOutput("plot1", click = "plot_click", width = 400),
verbatimTextOutput("info")
)
server <- function(input, output) {
output$plot1 <- renderPlot({
plot(mtcars$wt, mtcars$mpg)
})
output$info <- renderText({
paste0("x=", input$plot_click$x, "\n",
"y=", in... |
#' Title: GME Case
#' Author: Maria Fernanda Pernillo
#' email: mpernillodominguez2019@student.hult.edu
#' Date: March 10 2021
# WD
setwd("~/Personal/hult_NLP_student/cases/session II/WallStreetBets")
# Libs
library(tidytext)
library(dplyr)
library(stringr)
library(tibble)
library(ggplot2)
library(t... | /Pernillo_GME_case.R | no_license | Mafer104/WallStreet-bets- | R | false | false | 9,435 | r | #' Title: GME Case
#' Author: Maria Fernanda Pernillo
#' email: mpernillodominguez2019@student.hult.edu
#' Date: March 10 2021
# WD
setwd("~/Personal/hult_NLP_student/cases/session II/WallStreetBets")
# Libs
library(tidytext)
library(dplyr)
library(stringr)
library(tibble)
library(ggplot2)
library(t... |
## WGCNA with bootstrap
## 3.27.16.a
## Ciera Martinez
#This is one more attempt to get a Network with some usable information. This time I am going to
#use Dan Koenig's data. want to make network with JUST cluster 35
## library
library(WGCNA)
options(stringsAsFactors = FALSE)
#enableWGCNAThreads()
ALLOW_WGCNAT_T... | /R/WGCNA.bootstrap.Ciera.03.27.15.a.R | no_license | Pwahle/10wgcna | R | false | false | 7,457 | r | ## WGCNA with bootstrap
## 3.27.16.a
## Ciera Martinez
#This is one more attempt to get a Network with some usable information. This time I am going to
#use Dan Koenig's data. want to make network with JUST cluster 35
## library
library(WGCNA)
options(stringsAsFactors = FALSE)
#enableWGCNAThreads()
ALLOW_WGCNAT_T... |
library(matrixTests)
source("utils/capture.r")
#--- x argument errors ---------------------------------------------------------
# cannot be missing
err <- 'argument "x" is missing, with no default'
res <- capture(row_cor_pearson())
stopifnot(all.equal(res$error, err))
# cannot be NULL
err <- '"x" must be a numeric m... | /tests/cor_pearson_errors.r | no_license | cran/matrixTests | R | false | false | 6,010 | r | library(matrixTests)
source("utils/capture.r")
#--- x argument errors ---------------------------------------------------------
# cannot be missing
err <- 'argument "x" is missing, with no default'
res <- capture(row_cor_pearson())
stopifnot(all.equal(res$error, err))
# cannot be NULL
err <- '"x" must be a numeric m... |
setwd("~/Dropbox/NFW-EFW Analyses/NFW-EFW/Year 1")
source("00_MergedY1Cohort.R")
table(Y1$Know.Pre); table(Y1$Know.Post)
table(Y1$Skill.Pre); table(Y1$Skill.Post)
table(Y1$Eff.Pre); table(Y1$Eff.Post)
table(Y1$Mot.Pre); table(Y1$Mot.Post)
table(Y1$SuppOth.Pre); table(Y1$SuppOth.Post)
table(Y1$SuppCol.Pre); table(Y1$Su... | /Y1 June15-June16/02_Y1Analysis.R | no_license | rajendrc/NFW-EFW | R | false | false | 5,560 | r | setwd("~/Dropbox/NFW-EFW Analyses/NFW-EFW/Year 1")
source("00_MergedY1Cohort.R")
table(Y1$Know.Pre); table(Y1$Know.Post)
table(Y1$Skill.Pre); table(Y1$Skill.Post)
table(Y1$Eff.Pre); table(Y1$Eff.Post)
table(Y1$Mot.Pre); table(Y1$Mot.Post)
table(Y1$SuppOth.Pre); table(Y1$SuppOth.Post)
table(Y1$SuppCol.Pre); table(Y1$Su... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survival.r
\name{survival.data.frame}
\alias{survival.data.frame}
\title{Compute survival (data.frame input)}
\usage{
survival.data.frame(
df,
times = NULL,
digits = 2,
followup = FALSE,
label = FALSE
)
}
\arguments{
\item{df}{df}
... | /man/survival.data.frame.Rd | no_license | DanChaltiel/biostat2 | R | false | true | 489 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survival.r
\name{survival.data.frame}
\alias{survival.data.frame}
\title{Compute survival (data.frame input)}
\usage{
survival.data.frame(
df,
times = NULL,
digits = 2,
followup = FALSE,
label = FALSE
)
}
\arguments{
\item{df}{df}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/des_gs_pois.R
\name{des_gs_pois}
\alias{des_gs_pois}
\title{Design a multi-stage group-sequential multi-arm clinical trial for a
Poisson distributed primary outcome}
\usage{
des_gs_pois(
K = 2,
J = 2,
alpha = 0.025,
beta = 0.1,
lamb... | /man/des_gs_pois.Rd | permissive | mjg211/multiarm | R | false | true | 6,300 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/des_gs_pois.R
\name{des_gs_pois}
\alias{des_gs_pois}
\title{Design a multi-stage group-sequential multi-arm clinical trial for a
Poisson distributed primary outcome}
\usage{
des_gs_pois(
K = 2,
J = 2,
alpha = 0.025,
beta = 0.1,
lamb... |
bd2ad56fe8cfaf44ad63efcc21168545 ctrl.e#1.a#3.E#134.A#48.c#.w#9.s#42.asp.qdimacs 9829 28942 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#134.A#48.c#.w#9.s#42.asp/ctrl.e#1.a#3.E#134.A#48.c#.w#9.s#42.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 91 | r | bd2ad56fe8cfaf44ad63efcc21168545 ctrl.e#1.a#3.E#134.A#48.c#.w#9.s#42.asp.qdimacs 9829 28942 |
# R code for DESeq2 analysis
#
# Author: Ming Wang
# Date: 2018-09-30
#
# DESeq2: v1.18.1
#' run DESeq2 for matrix data
#'
#' @param file Path to the matrix file, featureCount output
#'
#' @param species Name of the species, dm3, dm6, mm9, mm10, hh19, default: dm3
#'
#' @param outdir Path to directory to save resul... | /R/rnaseq_deseq2_functions.R | no_license | bakerwm/goldclipReport | R | false | false | 26,242 | r |
# R code for DESeq2 analysis
#
# Author: Ming Wang
# Date: 2018-09-30
#
# DESeq2: v1.18.1
#' run DESeq2 for matrix data
#'
#' @param file Path to the matrix file, featureCount output
#'
#' @param species Name of the species, dm3, dm6, mm9, mm10, hh19, default: dm3
#'
#' @param outdir Path to directory to save resul... |
#!/bin/Rscript
# account.snp.sample.fate.R
#
# This script accounts for the fate of each SNP and sample through the QC
# process.
library(dplyr)
library(readr)
library(purrr)
library(tidyr)
################################################################################
################ Section 1: Manifest Resolu... | /src/account.snp.sample.fate.R | no_license | cotsapaslab/CrossDiseaseImmunochip | R | false | false | 46,917 | r | #!/bin/Rscript
# account.snp.sample.fate.R
#
# This script accounts for the fate of each SNP and sample through the QC
# process.
library(dplyr)
library(readr)
library(purrr)
library(tidyr)
################################################################################
################ Section 1: Manifest Resolu... |
### LOADING THE DATA ###
# Let's read in the dataset describing NYC taxi trips on May 14, 2013.
# Don't forget to start by navigating to the directory where you've saved the CSV file, using Session -> Set Working Directory, or setwd("YOUR_PATH_HERE")
# We'll set stringsAsFactors to FALSE just to make sure nothing ... | /2-data-wrangling/script.R | no_license | joehuchette/OR-software-tools-2016 | R | false | false | 25,895 | r | ### LOADING THE DATA ###
# Let's read in the dataset describing NYC taxi trips on May 14, 2013.
# Don't forget to start by navigating to the directory where you've saved the CSV file, using Session -> Set Working Directory, or setwd("YOUR_PATH_HERE")
# We'll set stringsAsFactors to FALSE just to make sure nothing ... |
\name{radialtext}
\alias{radialtext}
\title{Display text in a radial line}
\description{
Displays a string in a radial line, rotating it to flow in the radial
direction and optionally scaling each letter's size according to its
distance from the center.
}
\usage{
radialtext(x, center=c(0,0), start=NA, middle=1, end... | /man/radialtext.Rd | no_license | plotrix/plotrix | R | false | false | 3,174 | rd | \name{radialtext}
\alias{radialtext}
\title{Display text in a radial line}
\description{
Displays a string in a radial line, rotating it to flow in the radial
direction and optionally scaling each letter's size according to its
distance from the center.
}
\usage{
radialtext(x, center=c(0,0), start=NA, middle=1, end... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chspider.batch.annotation.child.R
\name{chspider.batch.annotation.child}
\alias{chspider.batch.annotation.child}
\title{Human Metabolome Database', 'ChEMBL', 'ChEBI', 'NIAID','Pesticide Common Names','SMPDB Small Molecule Pathway Database',
M... | /man/chspider.batch.annotation.child.Rd | no_license | stolltho/xMSannotator | R | false | true | 724 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chspider.batch.annotation.child.R
\name{chspider.batch.annotation.child}
\alias{chspider.batch.annotation.child}
\title{Human Metabolome Database', 'ChEMBL', 'ChEBI', 'NIAID','Pesticide Common Names','SMPDB Small Molecule Pathway Database',
M... |
set.seed(123)
tau_1_tru <- 0.25
x <- y <- rep(0,1000)
for ( i in 1:1000){
if( runif(1) < tau_1_tru ) {
x[i] <- rnorm(1, mean=1)
y[i] <- "heads"
}else {
x[i] <- rnorm(1, mean=7)
y[i] <- "tails"
}
}
densityPlot(~x, col=as.factor(y))
print( x[1] )
dnorm( x[1], mean=0)
mu_1 <- 0
mu_2 <- 1
tau_1 <- 0.5
tau... | /EM.R | no_license | rafael-bianchi/MAI-BDA | R | false | false | 616 | r | set.seed(123)
tau_1_tru <- 0.25
x <- y <- rep(0,1000)
for ( i in 1:1000){
if( runif(1) < tau_1_tru ) {
x[i] <- rnorm(1, mean=1)
y[i] <- "heads"
}else {
x[i] <- rnorm(1, mean=7)
y[i] <- "tails"
}
}
densityPlot(~x, col=as.factor(y))
print( x[1] )
dnorm( x[1], mean=0)
mu_1 <- 0
mu_2 <- 1
tau_1 <- 0.5
tau... |
#IMPLMENTATION OF DECISION TREE
#PACKAGES REQUIRED
# -> RPART
# -> RPART.PLOT
# STEPS:
# 1. Import Dataset
# 2. Split Training and Testing Data
# 3. Build Tree
# 4. Acquire Tree Information -> mytree and printcp(mytree)
# 5. Plot Tree
# 6. Prune the Decision Tree
# 7. Again Acquire Tree Information -> mytree a... | /RScripts/DecisionTree/DecisionTree.R | no_license | sbalci/Statistical-Methods-and-Machine-Learning-in-R | R | false | false | 1,673 | r | #IMPLMENTATION OF DECISION TREE
#PACKAGES REQUIRED
# -> RPART
# -> RPART.PLOT
# STEPS:
# 1. Import Dataset
# 2. Split Training and Testing Data
# 3. Build Tree
# 4. Acquire Tree Information -> mytree and printcp(mytree)
# 5. Plot Tree
# 6. Prune the Decision Tree
# 7. Again Acquire Tree Information -> mytree a... |
library(visNetwork)
library(RColorBrewer)
library(igraph)
library(dplyr)
nodes <- read.csv("scott-nodes.csv", header = T, as.is = T)
links <- read.csv("scott-edges-no-id.csv", header = T, as.is = T)
head(nodes)
head(links)
str(nodes)
str(links)
glimpse(nodes)
glimpse(links)
length(unique(nodes$id))
unique(nodes$At... | /scott_data_igraph.R | no_license | lexicondevil12/networkGraphPractice | R | false | false | 457 | r | library(visNetwork)
library(RColorBrewer)
library(igraph)
library(dplyr)
nodes <- read.csv("scott-nodes.csv", header = T, as.is = T)
links <- read.csv("scott-edges-no-id.csv", header = T, as.is = T)
head(nodes)
head(links)
str(nodes)
str(links)
glimpse(nodes)
glimpse(links)
length(unique(nodes$id))
unique(nodes$At... |
getAggrAWSData_allVars <- function(tstep, net_aws, start, end, aws_dir){
tz <- Sys.getenv("TZ")
origin <- "1970-01-01"
net_aws <- strsplit(net_aws, "_")[[1]]
out <- data.frame(Date = NA, status = "no.data")
######
adt_args <- readRDS(file.path(aws_dir, "AWS_DATA", "AUTH", "adt.con"))
con... | /R/app_get_awsdata.R | no_license | rijaf-iri/mtoadtNMA | R | false | false | 18,448 | r |
getAggrAWSData_allVars <- function(tstep, net_aws, start, end, aws_dir){
tz <- Sys.getenv("TZ")
origin <- "1970-01-01"
net_aws <- strsplit(net_aws, "_")[[1]]
out <- data.frame(Date = NA, status = "no.data")
######
adt_args <- readRDS(file.path(aws_dir, "AWS_DATA", "AUTH", "adt.con"))
con... |
# read file
elcons <- read.csv("C:/Users/srinivas/Documents/R/exdata_data_household_power_consumption/household_power_consumption.txt",header = TRUE, sep = ";",na.strings = "?",stringsAsFactors = FALSE)
# subset the rows within 2 days 2/1/2007 or 2/2/2007
elconsub <- elcons[elcons$Date %in% c('1/2/2007', '2/2/2007'),]... | /plot2.R | no_license | srini2014/ExData_Plotting1 | R | false | false | 946 | r | # read file
elcons <- read.csv("C:/Users/srinivas/Documents/R/exdata_data_household_power_consumption/household_power_consumption.txt",header = TRUE, sep = ";",na.strings = "?",stringsAsFactors = FALSE)
# subset the rows within 2 days 2/1/2007 or 2/2/2007
elconsub <- elcons[elcons$Date %in% c('1/2/2007', '2/2/2007'),]... |
\name{adworld}
\docType{data}
\alias{adworld}
\encoding{latin1}
\title{Geographical coordinates}
\description{Latitude and longitude of all administrative areas.}
\usage{data(adworld)}
\format{A matrix of many rows and 3 columns (Latitude, Longitude and name of the administrative area)}
\source{Latitude and lon... | /man/adworld.Rd | no_license | cran/KnowBR | R | false | false | 457 | rd | \name{adworld}
\docType{data}
\alias{adworld}
\encoding{latin1}
\title{Geographical coordinates}
\description{Latitude and longitude of all administrative areas.}
\usage{data(adworld)}
\format{A matrix of many rows and 3 columns (Latitude, Longitude and name of the administrative area)}
\source{Latitude and lon... |
Drawdowns <-
function (R, geometric = TRUE, ...)
{ # @author Peter Carl
# DESCRIPTION:
# Calculate the drawdown levels in a timeseries
# FUNCTION:
x = checkData(R)
# Get dimensions and labels
columns = ncol(x)
columnnames = colnames(x)
colDrawdown <- function(x, geometric) {
... | /PerformanceAnalytics/R/Drawdowns.R | no_license | ingted/R-Examples | R | false | false | 1,402 | r | Drawdowns <-
function (R, geometric = TRUE, ...)
{ # @author Peter Carl
# DESCRIPTION:
# Calculate the drawdown levels in a timeseries
# FUNCTION:
x = checkData(R)
# Get dimensions and labels
columns = ncol(x)
columnnames = colnames(x)
colDrawdown <- function(x, geometric) {
... |
# Environment preparation
library(caret)
library(parallel)
library(doParallel)
library(randomForest)
library(rpart)
library(rpart.plot)
library(corrplot)
# Obtain the data
urltrain <- "http://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv"
urltest <- "http://d396qusza40orc.cloudfront.net/predmachlearn/p... | /PMLearningAssignment.r | no_license | anan4/PMLearning | R | false | false | 2,980 | r | # Environment preparation
library(caret)
library(parallel)
library(doParallel)
library(randomForest)
library(rpart)
library(rpart.plot)
library(corrplot)
# Obtain the data
urltrain <- "http://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv"
urltest <- "http://d396qusza40orc.cloudfront.net/predmachlearn/p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustering_quality.R
\name{k_homogeneity}
\alias{k_homogeneity}
\title{Measures a degree of mutual dissimilarity between all objects in a cluster}
\usage{
k_homogeneity(my_k, df, sample_size)
}
\arguments{
\item{my_k}{\itemize{
\item a cluste... | /man/k_homogeneity.Rd | permissive | Nowosad/motifplus | R | false | true | 596 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustering_quality.R
\name{k_homogeneity}
\alias{k_homogeneity}
\title{Measures a degree of mutual dissimilarity between all objects in a cluster}
\usage{
k_homogeneity(my_k, df, sample_size)
}
\arguments{
\item{my_k}{\itemize{
\item a cluste... |
library(zoom)
### Name: zm
### Title: Launch interaction on a plot
### Aliases: zm
### Keywords: navigate navigation plot zm zoom
### ** Examples
## Not run:
##D # basic example
##D plot(rnorm(1000),rnorm(1000)) # could be any plot
##D zm() # navigate the plot
##D
##D # use the same xlim/ylim as ended up in the z... | /data/genthat_extracted_code/zoom/examples/zm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,173 | r | library(zoom)
### Name: zm
### Title: Launch interaction on a plot
### Aliases: zm
### Keywords: navigate navigation plot zm zoom
### ** Examples
## Not run:
##D # basic example
##D plot(rnorm(1000),rnorm(1000)) # could be any plot
##D zm() # navigate the plot
##D
##D # use the same xlim/ylim as ended up in the z... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psupplementary.R
\name{scale_dim}
\alias{scale_dim}
\title{Scales dimensions for nice plotting}
\usage{
scale_dim(v)
}
\description{
Scales dimensions for nice plotting
}
| /man/scale_dim.Rd | no_license | wmacnair/psupplementary | R | false | true | 249 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psupplementary.R
\name{scale_dim}
\alias{scale_dim}
\title{Scales dimensions for nice plotting}
\usage{
scale_dim(v)
}
\description{
Scales dimensions for nice plotting
}
|
library(httr)
library(base64enc)
create_btoken <- function() {
appname <- "Network_Viz_App"
key <- "gHvYsYgHeB9HylcWZ7LNDO91n"
secret <- "iklKrD5R37eawVBrWmQB5OC8uz3LYQBgv8VzCiJDjxXSMxMH1V"
# base64 encoding
kands <- paste(key, secret, sep=":")
base64kands <- base64encode(charToRaw(kands... | /twitter_30day_setup.R | no_license | fjsackfield/nba-twitter-network-viz | R | false | false | 865 | r | library(httr)
library(base64enc)
create_btoken <- function() {
appname <- "Network_Viz_App"
key <- "gHvYsYgHeB9HylcWZ7LNDO91n"
secret <- "iklKrD5R37eawVBrWmQB5OC8uz3LYQBgv8VzCiJDjxXSMxMH1V"
# base64 encoding
kands <- paste(key, secret, sep=":")
base64kands <- base64encode(charToRaw(kands... |
spark_dependencies <- function(spark_version, scala_version, ...) {
graphframes_version <- if (spark_version >= "2.4.0") {
"0.8.1"
} else if (spark_version >= "2.2.0") {
"0.6.0"
} else {
"0.5.0"
}
spark_dependency(
jars = NULL,
packages = c(
sprintf(
"graphframes:graphframes... | /R/dependencies.R | permissive | lgeistlinger/graphframes | R | false | false | 571 | r | spark_dependencies <- function(spark_version, scala_version, ...) {
graphframes_version <- if (spark_version >= "2.4.0") {
"0.8.1"
} else if (spark_version >= "2.2.0") {
"0.6.0"
} else {
"0.5.0"
}
spark_dependency(
jars = NULL,
packages = c(
sprintf(
"graphframes:graphframes... |
# Load libraries
library(readxl)
library(tidyr)
library(dplyr)
library(ggplot2)
library(plotrix)
library(plotly)
# Read and extract the data
df <- read_excel("mlb2014.xls", sheet=1, col_names = TRUE)
# Arrange by team and then average
grouped <- arrange(df, teamID, avg)
# Find mean and standard deviation of batting ... | /mlbDataAnalysis.R | no_license | staceynlee/MLB2014analysis | R | false | false | 5,078 | r | # Load libraries
library(readxl)
library(tidyr)
library(dplyr)
library(ggplot2)
library(plotrix)
library(plotly)
# Read and extract the data
df <- read_excel("mlb2014.xls", sheet=1, col_names = TRUE)
# Arrange by team and then average
grouped <- arrange(df, teamID, avg)
# Find mean and standard deviation of batting ... |
## create plot 3 for week 1 of exploratory data analysis
## read the data in from your current working directory
data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
## put the dates into the correct format and filter for just the days that we want (dplyr)
data$Date <- as.Date(data$Date, fo... | /plot3.R | no_license | sevenBananas/ExData_Plotting1 | R | false | false | 1,306 | r | ## create plot 3 for week 1 of exploratory data analysis
## read the data in from your current working directory
data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
## put the dates into the correct format and filter for just the days that we want (dplyr)
data$Date <- as.Date(data$Date, fo... |
library("tidyverse")
library("readxl")
source('./splitting_names.R')
file <- "../lobby/BB.DD. LOBBY 2_ (1).xlsx"
sheets <- excel_sheets(file)
sheets_data <- map(sheets, function(X) {
result <- read_excel(file, sheet = X)
result <- result %>% select(1:13)
result$month <- X
result
})
lobby_data_xl <- do.call("... | /read_lobby_data.R | no_license | wfjvdham/padronElectoralChile | R | false | false | 3,034 | r | library("tidyverse")
library("readxl")
source('./splitting_names.R')
file <- "../lobby/BB.DD. LOBBY 2_ (1).xlsx"
sheets <- excel_sheets(file)
sheets_data <- map(sheets, function(X) {
result <- read_excel(file, sheet = X)
result <- result %>% select(1:13)
result$month <- X
result
})
lobby_data_xl <- do.call("... |
# normalisierte Gleitpunktzahlen
suppressPackageStartupMessages(library(mosaic))
all_values <- function(Z, E, B = 2, V=c("+", "-")) {
ret <- c()
for (e in E) {
for (z in Z) {
for (v in V) {
val <-0
b <- 0.5
for (c in strsplit(z, NULL)[[1]]) {
... | /R-Skripte/VerteilungGleitpunktzahlen.R | permissive | NMarkgraf/Quantitative-Methoden-der-W-Informatik | R | false | false | 4,489 | r | # normalisierte Gleitpunktzahlen
suppressPackageStartupMessages(library(mosaic))
all_values <- function(Z, E, B = 2, V=c("+", "-")) {
ret <- c()
for (e in E) {
for (z in Z) {
for (v in V) {
val <-0
b <- 0.5
for (c in strsplit(z, NULL)[[1]]) {
... |
stg_bin = read.csv("strange_binary.csv")
library(rpart)
dt = rpart(c~.,stg_bin,method="class",maxdepth=3)
plot(dt)
text(dt)
printcp(dt)
prd = predict(dt, stg_bin)
c = ifelse(stg_bin$c == 'good' , 0 , 1)
prd = as.data.frame(prd[,1])
sum(round(prd, digits = 0) == c) | /3a_decision_tree.R | no_license | anurag2301/data_mining | R | false | false | 267 | r | stg_bin = read.csv("strange_binary.csv")
library(rpart)
dt = rpart(c~.,stg_bin,method="class",maxdepth=3)
plot(dt)
text(dt)
printcp(dt)
prd = predict(dt, stg_bin)
c = ifelse(stg_bin$c == 'good' , 0 , 1)
prd = as.data.frame(prd[,1])
sum(round(prd, digits = 0) == c) |
##These function cachethe inverse of a matrix
##This function creates a matrix which is just a list containing
##functions to set the value of a matrix, get the value of the matrix,
##set the value of the matrix, and get the value of the matrix
makeCacheMatrix <- function(x = matrix()) {
inv<-NULL
set<-functi... | /cachematrix.R | no_license | abecca5/ProgrammingAssignment2 | R | false | false | 832 | r | ##These function cachethe inverse of a matrix
##This function creates a matrix which is just a list containing
##functions to set the value of a matrix, get the value of the matrix,
##set the value of the matrix, and get the value of the matrix
makeCacheMatrix <- function(x = matrix()) {
inv<-NULL
set<-functi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotPerf_multi.R
\name{plotPerf_multi}
\alias{plotPerf_multi}
\title{Plots a set of ROC/PR curves with average.}
\usage{
plotPerf_multi(inList, plotTitle = "performance", plotType = "ROC",
xlab = "TPR", ylab = "FPR", meanCol = "darkblue", x... | /man/plotPerf_multi.Rd | permissive | Yaqiongxiao/netDx | R | false | true | 1,663 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotPerf_multi.R
\name{plotPerf_multi}
\alias{plotPerf_multi}
\title{Plots a set of ROC/PR curves with average.}
\usage{
plotPerf_multi(inList, plotTitle = "performance", plotType = "ROC",
xlab = "TPR", ylab = "FPR", meanCol = "darkblue", x... |
#!/usr/bin/env Rscript
library(randomForest)
library(reshape)
library(ggplot2)
library(caret)
library(MLmetrics)
library(philentropy)
library(vcd)
library(PRROC)
OG_Dir = getwd() # Original directory from which script was called
dirInd = strsplit(OG_Dir, split = '/')[[1]]
randInd = dirInd[length(dirInd)]
dirInd = ... | /scripts/prediction/train_validate_random.R | permissive | demattox/lec_gly_binding | R | false | false | 18,099 | r | #!/usr/bin/env Rscript
library(randomForest)
library(reshape)
library(ggplot2)
library(caret)
library(MLmetrics)
library(philentropy)
library(vcd)
library(PRROC)
OG_Dir = getwd() # Original directory from which script was called
dirInd = strsplit(OG_Dir, split = '/')[[1]]
randInd = dirInd[length(dirInd)]
dirInd = ... |
#' Set credentials for an ODBC data source
#'
#' @details The credentials for the DSN are saved as environmental variables,
#' using the R function \code{Sys.setenv()}. The user name for the DSN is
#'
#'
#' @param dsn The name of the data source name
#' @param usr The user name for the connection
#' @param pwd The pass... | /R/set_odbc_credential.R | no_license | NateByers/etljobs | R | false | false | 1,112 | r | #' Set credentials for an ODBC data source
#'
#' @details The credentials for the DSN are saved as environmental variables,
#' using the R function \code{Sys.setenv()}. The user name for the DSN is
#'
#'
#' @param dsn The name of the data source name
#' @param usr The user name for the connection
#' @param pwd The pass... |
## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
out.width = "100%"
)
## ----example1------------------------------------------------------------
library(discreteQ)
set.seed(1234)
outcome <- rpois(100, 3)
results1 <- discreteQ(out... | /inst/doc/discreteQ.R | permissive | bmelly/discreteQ | R | false | false | 2,672 | r | ## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
out.width = "100%"
)
## ----example1------------------------------------------------------------
library(discreteQ)
set.seed(1234)
outcome <- rpois(100, 3)
results1 <- discreteQ(out... |
Instructions --
Add both the year (1980) and director (Stanley Kubrick) to shining_list again. Try to do it in a one-liner this time, and save the result
in a new variable, shining_list_ext.
Again, have a look at the structure of shining_list_ext.
---------------
# shining_list is already defined in the workspace
sh... | /LIST/LAB2/L5.r | no_license | jabhij/DAT204x_R_DataScience | R | false | false | 596 | r | Instructions --
Add both the year (1980) and director (Stanley Kubrick) to shining_list again. Try to do it in a one-liner this time, and save the result
in a new variable, shining_list_ext.
Again, have a look at the structure of shining_list_ext.
---------------
# shining_list is already defined in the workspace
sh... |
# 4.6.5 K-Nearest Neighbors
library(class)
attach(Smarket)
# Split data for train and test
train = (Year < 2005)
train.X = cbind(Lag1, Lag2)[train,] # Train predictors
test.X = cbind(Lag1, Lag2)[!train,] # Test predictors
train.Direction = Direction[train] # Direction labels for train data
# Predict movemen... | /ch4-classification/4.R-classification-in-R/k-nearest-neighbors/4.6.5-k-nearest-neighbors.R | no_license | AntonioPelayo/stanford-statistical-learning | R | false | false | 671 | r | # 4.6.5 K-Nearest Neighbors
library(class)
attach(Smarket)
# Split data for train and test
train = (Year < 2005)
train.X = cbind(Lag1, Lag2)[train,] # Train predictors
test.X = cbind(Lag1, Lag2)[!train,] # Test predictors
train.Direction = Direction[train] # Direction labels for train data
# Predict movemen... |
library(ritis)
### Name: vernacular_languages
### Title: Provides a list of the unique languages used in the vernacular
### table.
### Aliases: vernacular_languages
### ** Examples
## Not run:
##D vernacular_languages()
## End(Not run)
| /data/genthat_extracted_code/ritis/examples/vernacular_languages.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 246 | r | library(ritis)
### Name: vernacular_languages
### Title: Provides a list of the unique languages used in the vernacular
### table.
### Aliases: vernacular_languages
### ** Examples
## Not run:
##D vernacular_languages()
## End(Not run)
|
\name{summary.FPDclustering}
\alias{summary.FPDclustering}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Summary for FPDclusteringt Objects
}
\description{
Number of elements per cluster.
}
\usage{
\method{summary}{FPDclustering}(object, ... )
}
\arguments{
\item{object}{
an object of class... | /man/summary.FPDclustering.Rd | no_license | cran/FPDclustering | R | false | false | 498 | rd | \name{summary.FPDclustering}
\alias{summary.FPDclustering}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Summary for FPDclusteringt Objects
}
\description{
Number of elements per cluster.
}
\usage{
\method{summary}{FPDclustering}(object, ... )
}
\arguments{
\item{object}{
an object of class... |
stiti ce este o " cotitura radicala " ?
e o miscare hotarita in urma careia elanul si dorinta de schimbare duc un om , o echipa , un partid sau o tara exact in pozitia in care erau si inainte .
nici nea Nicu , atunci cind zicea : " Tovarasi , sa facem o cotitura radicala in munca noastra " , nu - si imagina ca noi o ... | /data/Newspapers/2000.07.28.editorial.28595.0398.r | no_license | narcis96/decrypting-alpha | R | false | false | 4,316 | r | stiti ce este o " cotitura radicala " ?
e o miscare hotarita in urma careia elanul si dorinta de schimbare duc un om , o echipa , un partid sau o tara exact in pozitia in care erau si inainte .
nici nea Nicu , atunci cind zicea : " Tovarasi , sa facem o cotitura radicala in munca noastra " , nu - si imagina ca noi o ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ATEbounds.R
\name{ATEbounds}
\alias{ATEbounds}
\title{Bounding the Average Treatment Effect when some of the Outcome Data are
Missing}
\usage{
ATEbounds(
formula,
data = parent.frame(),
maxY = NULL,
minY = NULL,
alpha = 0.05,
n.re... | /man/ATEbounds.Rd | no_license | kosukeimai/experiment | R | false | true | 4,521 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ATEbounds.R
\name{ATEbounds}
\alias{ATEbounds}
\title{Bounding the Average Treatment Effect when some of the Outcome Data are
Missing}
\usage{
ATEbounds(
formula,
data = parent.frame(),
maxY = NULL,
minY = NULL,
alpha = 0.05,
n.re... |
read_dir <- function (path = getwd(), file.type = c("csv"), read.as = c("csv"))
{
map <- matrix(c("csv", "tsv", "xlsx",
",", "\t", "xlsx"), ncol = 2)
if(length(file.type) != length(read.as)) stop("file.type and read.as must be of same length")
if(!(all(read.as %in% map[, 1]))) stop(... | /other/read_dir.R | no_license | benpremireiller/my-personal-repo | R | false | false | 1,315 | r | read_dir <- function (path = getwd(), file.type = c("csv"), read.as = c("csv"))
{
map <- matrix(c("csv", "tsv", "xlsx",
",", "\t", "xlsx"), ncol = 2)
if(length(file.type) != length(read.as)) stop("file.type and read.as must be of same length")
if(!(all(read.as %in% map[, 1]))) stop(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uhc_plots.R
\name{calc_w}
\alias{calc_w}
\title{Calculate \code{w(x)}}
\usage{
calc_w(f, b, newdata)
}
\arguments{
\item{f}{\verb{[formula]} \cr A model formula.}
\item{b}{\verb{[numeric]} A named vector of coefficients.}
\item{newdata}{\ve... | /man/calc_w.Rd | no_license | jmsigner/amt | R | false | true | 539 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uhc_plots.R
\name{calc_w}
\alias{calc_w}
\title{Calculate \code{w(x)}}
\usage{
calc_w(f, b, newdata)
}
\arguments{
\item{f}{\verb{[formula]} \cr A model formula.}
\item{b}{\verb{[numeric]} A named vector of coefficients.}
\item{newdata}{\ve... |
# This script will organize data in concise manner to attribute lat/lng to AU and appropriate lake name
# and additional information
library(tidyverse)
library(rgdal)
# data from 2016 IR, there are 255 AU's in the 2016 IR, one additional from 2014
# table was exported from VA_ADB_2016_final.mdb, tblAllLakes_2016 tab... | /app2020/LakeAssessmentApp_v2/dataManagement_2018IR_AUattribution.R | no_license | EmmaVJones/LakesAssessment2020 | R | false | false | 15,569 | r | # This script will organize data in concise manner to attribute lat/lng to AU and appropriate lake name
# and additional information
library(tidyverse)
library(rgdal)
# data from 2016 IR, there are 255 AU's in the 2016 IR, one additional from 2014
# table was exported from VA_ADB_2016_final.mdb, tblAllLakes_2016 tab... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_line.R
\name{add_line}
\alias{add_line}
\title{Add a line to an \code{xyplot}}
\usage{
add_line(
intercept,
slope,
vline = NULL,
hline = NULL,
units = "native",
color = "red"
)
}
\arguments{
\item{intercept}{Numerical (optiona... | /man/add_line.Rd | no_license | mobilizingcs/mobilizr | R | false | true | 1,277 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_line.R
\name{add_line}
\alias{add_line}
\title{Add a line to an \code{xyplot}}
\usage{
add_line(
intercept,
slope,
vline = NULL,
hline = NULL,
units = "native",
color = "red"
)
}
\arguments{
\item{intercept}{Numerical (optiona... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{plot_prior_vs_posterior}
\alias{plot_prior_vs_posterior}
\title{Plot prior vs posterior distribution of parameters}
\usage{
plot_prior_vs_posterior(stanfitobjects)
}
\arguments{
\item{stanfitobjects}{list of stanfit objects}... | /man/plot_prior_vs_posterior.Rd | no_license | nikosbosse/epipredictr | R | false | true | 423 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{plot_prior_vs_posterior}
\alias{plot_prior_vs_posterior}
\title{Plot prior vs posterior distribution of parameters}
\usage{
plot_prior_vs_posterior(stanfitobjects)
}
\arguments{
\item{stanfitobjects}{list of stanfit objects}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rbind.pages.R
\name{rbind.pages}
\alias{rbind.pages}
\title{Combine pages into a single data frame}
\usage{
rbind.pages(pages)
}
\arguments{
\item{pages}{a list of data frames, each representing a \emph{page} of data}
}
\description{
The \cod... | /man/rbind.pages.Rd | permissive | Smudgerville/jsonlite | R | false | true | 1,667 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rbind.pages.R
\name{rbind.pages}
\alias{rbind.pages}
\title{Combine pages into a single data frame}
\usage{
rbind.pages(pages)
}
\arguments{
\item{pages}{a list of data frames, each representing a \emph{page} of data}
}
\description{
The \cod... |
library(shiny)
library(tidyverse)
library(rjson)
library(ggvis)
library(dplyr)
library(xml2)
library(ggplot2)
library(readxl)
library(scales)
#####################
# SUPPORT FUNCTIONS #
#####################
# create a function to calculate eight indices, m-score, and final probability
# outputs a list
beneish = func... | /server.R | no_license | mjonelis/beneish-calculator-shiny | R | false | false | 9,432 | r | library(shiny)
library(tidyverse)
library(rjson)
library(ggvis)
library(dplyr)
library(xml2)
library(ggplot2)
library(readxl)
library(scales)
#####################
# SUPPORT FUNCTIONS #
#####################
# create a function to calculate eight indices, m-score, and final probability
# outputs a list
beneish = func... |
library(camiller)
library(testthat)
test_that("brk_labels returns breaks formatted with shorthands", {
percent_breaks <- c("[0,0.1]", "(0.1,0.25]", "(0.25,0.3333]")
expect_equal(brk_labels(percent_breaks, format = "percent", mult_by = 100, round_digits = 0), c("0 to 10%", "10 to 25%", "25 to 33%"))
dollar_break... | /tests/testthat/test-brk_labels.R | permissive | camille-s/camiller | R | false | false | 1,315 | r | library(camiller)
library(testthat)
test_that("brk_labels returns breaks formatted with shorthands", {
percent_breaks <- c("[0,0.1]", "(0.1,0.25]", "(0.25,0.3333]")
expect_equal(brk_labels(percent_breaks, format = "percent", mult_by = 100, round_digits = 0), c("0 to 10%", "10 to 25%", "25 to 33%"))
dollar_break... |
get.test<-function( proportion.test,
qdatafn=NULL,
seed=NULL,
folder=NULL,
qdata.trainfn=paste(strsplit(qdatafn,split=".csv")[[1]],"_train.csv",sep=""),
qdata.testfn=paste(strsplit(qdatafn,split=".csv")[[1]],"_test.csv",sep="")){
## Select dataset
if (is.null(qdatafn)){
if(.Platform$OS.t... | /R/get.test.R | no_license | cran/ModelMap | R | false | false | 2,698 | r |
get.test<-function( proportion.test,
qdatafn=NULL,
seed=NULL,
folder=NULL,
qdata.trainfn=paste(strsplit(qdatafn,split=".csv")[[1]],"_train.csv",sep=""),
qdata.testfn=paste(strsplit(qdatafn,split=".csv")[[1]],"_test.csv",sep="")){
## Select dataset
if (is.null(qdatafn)){
if(.Platform$OS.t... |
testlist <- list(x1 = numeric(0), x2 = numeric(0), y1 = numeric(0), y2 = c(7.29112026763647e-304, NaN, 4.77831053068348e-299, NaN))
result <- do.call(palm:::euc_distances,testlist)
str(result) | /palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612969159-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 193 | r | testlist <- list(x1 = numeric(0), x2 = numeric(0), y1 = numeric(0), y2 = c(7.29112026763647e-304, NaN, 4.77831053068348e-299, NaN))
result <- do.call(palm:::euc_distances,testlist)
str(result) |
\name{rLSreadVarStartPoint}
\alias{rLSreadVarStartPoint}
\title{Provide initial values for variables from a file.}
\description{
R interface function for LINDO API function \code{LSreadVarStartPoint}. For more information,
please refer to LINDO API User Manual.
}
\usage{
rLSreadVarStartPoint(model,pszFn... | /man/rLSreadVarStartPoint.Rd | no_license | cran/rLindo | R | false | false | 734 | rd | \name{rLSreadVarStartPoint}
\alias{rLSreadVarStartPoint}
\title{Provide initial values for variables from a file.}
\description{
R interface function for LINDO API function \code{LSreadVarStartPoint}. For more information,
please refer to LINDO API User Manual.
}
\usage{
rLSreadVarStartPoint(model,pszFn... |
setwd("/Users/ellen/BMI215/HW2")
library(plyr)
library(ggplot2)
#------------------------------------------------------------------------------------------
# GENERAL IDEA
#------------------------------------------------------------------------------------------
# The point of this assignment is to build a "side-effec... | /HW2/drug_safety_latent_signal_detection.R | no_license | ellenlt/BMI215 | R | false | false | 20,223 | r | setwd("/Users/ellen/BMI215/HW2")
library(plyr)
library(ggplot2)
#------------------------------------------------------------------------------------------
# GENERAL IDEA
#------------------------------------------------------------------------------------------
# The point of this assignment is to build a "side-effec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/update.R
\docType{methods}
\name{update,rfh-method}
\alias{update,fitrfh-method}
\alias{update,rfh-method}
\title{Update a fitted object}
\usage{
\S4method{update}{rfh}(object, formula, ..., where = parent.frame(2))
\S4method{update}{fitrfh}... | /man/update.Rd | no_license | CentreForSAE/saeRobust | R | false | true | 787 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/update.R
\docType{methods}
\name{update,rfh-method}
\alias{update,fitrfh-method}
\alias{update,rfh-method}
\title{Update a fitted object}
\usage{
\S4method{update}{rfh}(object, formula, ..., where = parent.frame(2))
\S4method{update}{fitrfh}... |
# Sun Mar 24 08:24:59 2019 ------------------------------
# Logistic regression model from greta w/ varying intercepts
library(tensorflow)
use_condaenv("greta")
library(greta)
library(tidyverse)
library(bayesplot)
library(readxl)
# Download data set from Riehl et al. 2019
dataURL <- "https://datadryad.org/stash/downlo... | /dbinomSuccessful.R | no_license | johnypark/cuckooParasitism | R | false | false | 2,872 | r | # Sun Mar 24 08:24:59 2019 ------------------------------
# Logistic regression model from greta w/ varying intercepts
library(tensorflow)
use_condaenv("greta")
library(greta)
library(tidyverse)
library(bayesplot)
library(readxl)
# Download data set from Riehl et al. 2019
dataURL <- "https://datadryad.org/stash/downlo... |
############################################################################################################
#Script does the following:
#1. Merges the training and the test sets to create one data set.
#2. Extracts only the measurements on the mean and standard deviation for each measurement.
#3. Uses descriptive acti... | /run_analysis.R | no_license | TK2008/Getting_and_Cleaning_Data_Course_Project | R | false | false | 3,333 | r | ############################################################################################################
#Script does the following:
#1. Merges the training and the test sets to create one data set.
#2. Extracts only the measurements on the mean and standard deviation for each measurement.
#3. Uses descriptive acti... |
setwd("~/R_Cap_Stone/final/en_US/Final_release/quanteda")
install.packages("quanteda.textmodels")
install.packages("quanteda.corpora")
install.packages("topicmodels")
install.packages("newsmap")
install.packages("remotes")
remotes::install_github("koheiw/Newsmap")
library("tidytext")
library(tidyverse)
library... | /Report_final_quanteda_1.R | no_license | cochetstephane/CapStone | R | false | false | 6,967 | r | setwd("~/R_Cap_Stone/final/en_US/Final_release/quanteda")
install.packages("quanteda.textmodels")
install.packages("quanteda.corpora")
install.packages("topicmodels")
install.packages("newsmap")
install.packages("remotes")
remotes::install_github("koheiw/Newsmap")
library("tidytext")
library(tidyverse)
library... |
## Across the United States, how have emissions from coal combustion-related sources changed from 1999-2008?
setwd("F:/JHU/3_EXPLORATORY DATA/ASSIGNMENT 2")
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
head(SCC)
summary(SCC$EI.Sector)
coal <- grepl("Coal", SCC$EI.Sector)
coalso... | /plot4.R | no_license | msi888/ExData_Plotting2 | R | false | false | 840 | r | ## Across the United States, how have emissions from coal combustion-related sources changed from 1999-2008?
setwd("F:/JHU/3_EXPLORATORY DATA/ASSIGNMENT 2")
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
head(SCC)
summary(SCC$EI.Sector)
coal <- grepl("Coal", SCC$EI.Sector)
coalso... |
#' Is the input the empty model?
#'
#' Checks to see if the input is the empty model.
#'
#' @param x Input to check.
#' @param .xname Not intended to be used directly.
#' @param severity How severe should the consequences of the assertion be?
#' Either \code{"stop"}, \code{"warning"}, \code{"message"}, or \code{"none... | /R/is-empty-model.R | no_license | cran/assertive.models | R | false | false | 2,312 | r | #' Is the input the empty model?
#'
#' Checks to see if the input is the empty model.
#'
#' @param x Input to check.
#' @param .xname Not intended to be used directly.
#' @param severity How severe should the consequences of the assertion be?
#' Either \code{"stop"}, \code{"warning"}, \code{"message"}, or \code{"none... |
##############################
#HW 3 Christian Gao- Modeling#
##############################
library(h2o)
library(gbm)
library(randomForest)
library(xgboost)
###############
##### GBM #####
###############
###GBM- H2o###
h2o.init(nthreads = -1)
df <- h2o.importFile("data/sentiment_df.csv")
splits <- h2o.splitFrame(
... | /Hw3ModelingGBM.R | no_license | flyingabove/418-hw3 | R | false | false | 3,116 | r | ##############################
#HW 3 Christian Gao- Modeling#
##############################
library(h2o)
library(gbm)
library(randomForest)
library(xgboost)
###############
##### GBM #####
###############
###GBM- H2o###
h2o.init(nthreads = -1)
df <- h2o.importFile("data/sentiment_df.csv")
splits <- h2o.splitFrame(
... |
#' @author Harald FIedler
#' @title plotFirma
#' @description Wrapper für EventPlot.
#' @details Plottet einzelne Firmen in ihren individuellen Konfidenzbänder
plotFirma <- function(Firmenanalyse, FirmaISIN="FI0009010391", DDay){
# Firmenanalyse ist ein Objekt was von analysiereFirmen() erzeugt wird
CAR_it <- Firm... | /MacKinlay/R/plotFirma.R | no_license | cavorit/MacKinlay | R | false | false | 635 | r | #' @author Harald FIedler
#' @title plotFirma
#' @description Wrapper für EventPlot.
#' @details Plottet einzelne Firmen in ihren individuellen Konfidenzbänder
plotFirma <- function(Firmenanalyse, FirmaISIN="FI0009010391", DDay){
# Firmenanalyse ist ein Objekt was von analysiereFirmen() erzeugt wird
CAR_it <- Firm... |
context("Meta Analysis")
options <- jaspTools::analysisOptions("ClassicalMetaAnalysis")
options$covariates <- "contcor2"
options$dependent <- "contNormal"
options$factors <- c("facGender", "facExperim")
options$forestPlot <- TRUE
options$funnelPlot <- TRUE
options$funnelPlotAsymmetryTest <- TRUE
options$method ... | /tests/testthat/test-classicalmetaanalysis.R | no_license | Owain-S/jaspMetaAnalysis | R | false | false | 72,157 | r | context("Meta Analysis")
options <- jaspTools::analysisOptions("ClassicalMetaAnalysis")
options$covariates <- "contcor2"
options$dependent <- "contNormal"
options$factors <- c("facGender", "facExperim")
options$forestPlot <- TRUE
options$funnelPlot <- TRUE
options$funnelPlotAsymmetryTest <- TRUE
options$method ... |
replace_inf <- function(df) {
do.call(data.frame,
lapply(df, function(j) {
replace(j, is.infinite(j), NA)
})
)
}
dynamics_ts <-
function(x) {
require(TTR)
x_std <- as.vector(scale(x))
cat("Computing trend ...\n")
ts_trend <- trend(x)
cat("Co... | /src/dynamics.r | no_license | fabrizziosoares/performance_estimation | R | false | false | 4,019 | r | replace_inf <- function(df) {
do.call(data.frame,
lapply(df, function(j) {
replace(j, is.infinite(j), NA)
})
)
}
dynamics_ts <-
function(x) {
require(TTR)
x_std <- as.vector(scale(x))
cat("Computing trend ...\n")
ts_trend <- trend(x)
cat("Co... |
setClass('xgb.DMatrix')
#' Get a new DMatrix containing the specified rows of
#' orginal xgb.DMatrix object
#'
#' Get a new DMatrix containing the specified rows of
#' orginal xgb.DMatrix object
#'
#' @examples
#' data(agaricus.train, package='xgboost')
#' train <- agaricus.train
#' dtrain <- xgb.DMatrix(train$data, ... | /src/external/xgboost/R-package/R/slice.xgb.DMatrix.R | permissive | Sitispeaks/turicreate | R | false | false | 1,481 | r | setClass('xgb.DMatrix')
#' Get a new DMatrix containing the specified rows of
#' orginal xgb.DMatrix object
#'
#' Get a new DMatrix containing the specified rows of
#' orginal xgb.DMatrix object
#'
#' @examples
#' data(agaricus.train, package='xgboost')
#' train <- agaricus.train
#' dtrain <- xgb.DMatrix(train$data, ... |
# Joshua Alley
# execute all files in public-goods-test
# load packages and set seeds, and manage conflicts
source("data/setup-script.R")
# simulate problems with ratio outcomes
source("data/ratio-simulation.R")
# primary analyses
source("data/analysis.R")
# analyses of weighted membership and changes
source("data/a... | /do-all.R | no_license | joshuaalley/public-goods-test | R | false | false | 499 | r | # Joshua Alley
# execute all files in public-goods-test
# load packages and set seeds, and manage conflicts
source("data/setup-script.R")
# simulate problems with ratio outcomes
source("data/ratio-simulation.R")
# primary analyses
source("data/analysis.R")
# analyses of weighted membership and changes
source("data/a... |
install.packages(c("tidyverse","grid","gridExtra"), repos = "https://cloud.r-project.org") | /scripts/setupR.R | permissive | Kennedy-Lab-UW/Duplex-Seq-Pipeline | R | false | false | 90 | r | install.packages(c("tidyverse","grid","gridExtra"), repos = "https://cloud.r-project.org") |
#' Make a DHS API client
#'
#' @title Make a dhs client
#'
#' @param config config object, as created using \code{read_rdhs_config}
#' @param root Character for root directory to where client, caches,
#' surveys etc. will be stored. Default = \code{rappdirs_rdhs()}
#' @param api_key Character for DHS API KEY. Default... | /R/client.R | no_license | tXiao95/rdhs | R | false | false | 35,476 | r | #' Make a DHS API client
#'
#' @title Make a dhs client
#'
#' @param config config object, as created using \code{read_rdhs_config}
#' @param root Character for root directory to where client, caches,
#' surveys etc. will be stored. Default = \code{rappdirs_rdhs()}
#' @param api_key Character for DHS API KEY. Default... |
#' @keywords internal
#' @import shiny
#' @import shinydashboard
#' @importFrom sf st_linestring st_drop_geometry
#' @import mapview
#' @importFrom flexdashboard gauge gaugeSectors gaugeOutput
#' @importFrom esquisse esquisserUI esquisserServer
# The following block is used by usethis to automatically manage
# roxygen ... | /R/emdash-package.R | permissive | asiripanich/emdash | R | false | false | 413 | r | #' @keywords internal
#' @import shiny
#' @import shinydashboard
#' @importFrom sf st_linestring st_drop_geometry
#' @import mapview
#' @importFrom flexdashboard gauge gaugeSectors gaugeOutput
#' @importFrom esquisse esquisserUI esquisserServer
# The following block is used by usethis to automatically manage
# roxygen ... |
library(ape)
testtree <- read.tree("2072_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="2072_0_unrooted.txt") | /codeml_files/newick_trees_processed/2072_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("2072_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="2072_0_unrooted.txt") |
#' @importFrom graphics par rect text
plotlodmatlist <- function(lodmatlist, times, ylab="QTL position", xlab="Time", mval=0, ...) {
nlst <- length(lodmatlist)
nlsts <- lapply(lodmatlist, function(t) nrow(t))
chrs <- lapply(lodmatlist, function(t) t[1,1])
end <- NULL
start <- NULL
num = 0
... | /R/plotlodmatlist.R | no_license | ikwak2/funqtl | R | false | false | 1,688 | r | #' @importFrom graphics par rect text
plotlodmatlist <- function(lodmatlist, times, ylab="QTL position", xlab="Time", mval=0, ...) {
nlst <- length(lodmatlist)
nlsts <- lapply(lodmatlist, function(t) nrow(t))
chrs <- lapply(lodmatlist, function(t) t[1,1])
end <- NULL
start <- NULL
num = 0
... |
# PCA with prcomp()
# to get more information about prcomp
?prcomp
dim(iris)
data(iris)
# remove class variable
pca.data <- iris[,-5]
#PCA with prcomp()
pca <- prcomp(pca.data)
# importance of variables - variance captured by each principal component
#old variables: Sepal.Length, Sepal.Width, Petal.Length, Petal.Wid... | /AppliedDataMining/AppliedDataMining/HW2/2.2/pca.R | no_license | keithhickman08/IUH | R | false | false | 1,736 | r | # PCA with prcomp()
# to get more information about prcomp
?prcomp
dim(iris)
data(iris)
# remove class variable
pca.data <- iris[,-5]
#PCA with prcomp()
pca <- prcomp(pca.data)
# importance of variables - variance captured by each principal component
#old variables: Sepal.Length, Sepal.Width, Petal.Length, Petal.Wid... |
#' Soma dois Elementos
#'
#' somar retorna a soma de dois valores
#'
#' @param x primeiro elemento
#' @param y segundo elemento
#'
#' @examples
#' x <- 1
#' y <- 2
#' somar(x,y)
#'
#' @export
somar <- function(x,y) { #### devtools::use_package('tibble')
x + y
}
| /R/somar.R | no_license | evelinangelica/Rackaton | R | false | false | 264 | r | #' Soma dois Elementos
#'
#' somar retorna a soma de dois valores
#'
#' @param x primeiro elemento
#' @param y segundo elemento
#'
#' @examples
#' x <- 1
#' y <- 2
#' somar(x,y)
#'
#' @export
somar <- function(x,y) { #### devtools::use_package('tibble')
x + y
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ext2spy.R
\name{ext2spy}
\alias{ext2spy}
\title{Convert Spatial Extent to Polygon}
\usage{
ext2spy(x, crs = "+init=epsg:4326", as_sf = TRUE)
}
\arguments{
\item{x}{An \code{Extent} object, or any object from which an \code{Extent}
can be ext... | /fuzzedpackages/Orcs/man/ext2spy.Rd | no_license | akhikolla/testpackages | R | false | true | 876 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ext2spy.R
\name{ext2spy}
\alias{ext2spy}
\title{Convert Spatial Extent to Polygon}
\usage{
ext2spy(x, crs = "+init=epsg:4326", as_sf = TRUE)
}
\arguments{
\item{x}{An \code{Extent} object, or any object from which an \code{Extent}
can be ext... |
#' The Main App UI
#'
#' @return A \code{\link[shiny]{tagList}} containing the UI.
#' @keywords internal
.ui_main <- function() {
dashboard_title <- "R4DS Mentor Tool"
shiny::tagList(
# Leave this function for adding external resources. But commenting out
# until I use it to avoid bugs.
# .golem_add_ex... | /R/app_ui.R | permissive | jmbuhr/mentordash | R | false | false | 2,017 | r | #' The Main App UI
#'
#' @return A \code{\link[shiny]{tagList}} containing the UI.
#' @keywords internal
.ui_main <- function() {
dashboard_title <- "R4DS Mentor Tool"
shiny::tagList(
# Leave this function for adding external resources. But commenting out
# until I use it to avoid bugs.
# .golem_add_ex... |
# Data
# URL: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
# Note: assumed to be located in the parent directory
# Load the household power consumption data
load_data <- function(filepath) {
# read the dataset
data <- read.table(filepath, sep=";", header=TRUE, na.strings="?... | /plot4.R | no_license | rfiorillo/ExData_Plotting1 | R | false | false | 1,831 | r | # Data
# URL: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
# Note: assumed to be located in the parent directory
# Load the household power consumption data
load_data <- function(filepath) {
# read the dataset
data <- read.table(filepath, sep=";", header=TRUE, na.strings="?... |
require(table1)
require(survival)
dat <- subset(survival::pbc, !is.na(trt)) # Exclude subjects not randomized
help(pbc) # see the description of the dataset
help(is.na) # learn the is.na function
dat$trt <- factor(dat$trt, levels=1:2, labels=c("D-penicillamine", "Placebo"))
dat$sex <- factor(dat$sex, leve... | /week3 discussion.R | no_license | c1rowe/math189 | R | false | false | 3,960 | r | require(table1)
require(survival)
dat <- subset(survival::pbc, !is.na(trt)) # Exclude subjects not randomized
help(pbc) # see the description of the dataset
help(is.na) # learn the is.na function
dat$trt <- factor(dat$trt, levels=1:2, labels=c("D-penicillamine", "Placebo"))
dat$sex <- factor(dat$sex, leve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ga_v4_get.R
\name{fetch_google_analytics_4}
\alias{fetch_google_analytics_4}
\title{Fetch multiple GAv4 requests}
\usage{
fetch_google_analytics_4(request_list, merge = FALSE,
useResourceQuotas = NULL)
}
\arguments{
\item{request_list}{A li... | /man/fetch_google_analytics_4.Rd | no_license | Erinmitten/googleAnalyticsR | R | false | true | 1,787 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ga_v4_get.R
\name{fetch_google_analytics_4}
\alias{fetch_google_analytics_4}
\title{Fetch multiple GAv4 requests}
\usage{
fetch_google_analytics_4(request_list, merge = FALSE,
useResourceQuotas = NULL)
}
\arguments{
\item{request_list}{A li... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{heart}
\alias{heart}
\title{Cleveland heart disease dataset}
\format{An object of class \code{data.frame} with 303 rows and 14 columns.}
\usage{
heart
}
\description{
A description.
}
\keyword{datasets}
| /man/heart.Rd | no_license | klovens/pineplot | R | false | true | 309 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{heart}
\alias{heart}
\title{Cleveland heart disease dataset}
\format{An object of class \code{data.frame} with 303 rows and 14 columns.}
\usage{
heart
}
\description{
A description.
}
\keyword{datasets}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim01NA42-data.R
\docType{data}
\name{sim01NA42}
\alias{sim01NA42}
\title{Simulated Sperm-seq data 0/1/NA encoded}
\format{
A dataframe with column names, 4136 rows, and 51 columns:
\describe{
\item{positions}{positions, integer, SNP index pr... | /man/sim01NA42.Rd | no_license | mccoy-lab/rhapsodi | R | false | true | 923 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim01NA42-data.R
\docType{data}
\name{sim01NA42}
\alias{sim01NA42}
\title{Simulated Sperm-seq data 0/1/NA encoded}
\format{
A dataframe with column names, 4136 rows, and 51 columns:
\describe{
\item{positions}{positions, integer, SNP index pr... |
library(tidyverse)
library(magrittr)
library(rvest)
#Step 1
myurl<-"https://www.imdb.com/title/tt0068646/"
#Step 2
myhtml<-read_html(myurl)
#Step 4
mycast<-html_nodes(myhtml, "table") %>% html_table()
#Step 5
mydat<-mycast %>% extract2(1)
mydat<-mydat[-1,c(2,4)]
names(mydat)<-c("Actor","Role")
library(stringr)
... | /public/materials/scripts/Week10_Rscript.R | no_license | ochyzh/POLS478 | R | false | false | 2,016 | r | library(tidyverse)
library(magrittr)
library(rvest)
#Step 1
myurl<-"https://www.imdb.com/title/tt0068646/"
#Step 2
myhtml<-read_html(myurl)
#Step 4
mycast<-html_nodes(myhtml, "table") %>% html_table()
#Step 5
mydat<-mycast %>% extract2(1)
mydat<-mydat[-1,c(2,4)]
names(mydat)<-c("Actor","Role")
library(stringr)
... |
#' Compute lagged or leading values
#'
#' Find the "previous" (`lag()`) or "next" (`lead()`) values in a vector.
#' Useful for comparing values behind of or ahead of the current values.
#'
#' @param x Vector of values
#' @param n Positive integer of length 1, giving the number of positions to
#' lead or lag by
#' @pa... | /R/lead-lag.R | permissive | torockel/dplyr | R | false | false | 2,598 | r | #' Compute lagged or leading values
#'
#' Find the "previous" (`lag()`) or "next" (`lead()`) values in a vector.
#' Useful for comparing values behind of or ahead of the current values.
#'
#' @param x Vector of values
#' @param n Positive integer of length 1, giving the number of positions to
#' lead or lag by
#' @pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/indirect.R
\name{get_reverse_linkingto}
\alias{get_reverse_linkingto}
\title{get_reverse_linkingto}
\usage{
get_reverse_linkingto(packages, level = 1L)
}
\arguments{
\item{packages}{(non-empty character vector) Package names}
\item{level}{(p... | /man/get_reverse_linkingto.Rd | no_license | talegari/pkggraph | R | false | true | 854 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/indirect.R
\name{get_reverse_linkingto}
\alias{get_reverse_linkingto}
\title{get_reverse_linkingto}
\usage{
get_reverse_linkingto(packages, level = 1L)
}
\arguments{
\item{packages}{(non-empty character vector) Package names}
\item{level}{(p... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.60630538515239e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615768287-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,803 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.60630538515239e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
#' @title reset.sim
#' @description a function to create a "reasonable" set of parameters
#' to create simulated panel data that obeys a parallel trends assumption.
#' In particular, it provides parameters where the the effect of participating
#' in the treatment is equal to one in all post-treatment time periods.
#... | /R/simulate_data.R | no_license | bcallaway11/did | R | false | false | 11,095 | r | #' @title reset.sim
#' @description a function to create a "reasonable" set of parameters
#' to create simulated panel data that obeys a parallel trends assumption.
#' In particular, it provides parameters where the the effect of participating
#' in the treatment is equal to one in all post-treatment time periods.
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qstats.r
\name{qstats}
\alias{qstats}
\title{Summary statistics for a quantitative variable}
\usage{
qstats(data, x, ..., stats = c("n", "mean", "sd"), na.rm = TRUE, digits = 2)
}
\arguments{
\item{data}{data frame}
\item{x}{numeric variable... | /man/qstats.Rd | permissive | Rkabacoff/qacEDA | R | false | true | 1,355 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qstats.r
\name{qstats}
\alias{qstats}
\title{Summary statistics for a quantitative variable}
\usage{
qstats(data, x, ..., stats = c("n", "mean", "sd"), na.rm = TRUE, digits = 2)
}
\arguments{
\item{data}{data frame}
\item{x}{numeric variable... |
#!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
if(length(args) < 3){
stop("Usage: combineTable.r <relASVTable.tsv> <repseq.fasta> <taxonomy.tsv>")
}
table <- args[1]
seq <- args[2]
taxonomy <- args[3]
OUT="qiime2_ASV_table.csv"
#load packages, Biostrings_2.46.0
library("Biostrings")
#read requir... | /bin/combineTable.r | permissive | apeltzer/rrna-ampliseq | R | false | false | 1,105 | r | #!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
if(length(args) < 3){
stop("Usage: combineTable.r <relASVTable.tsv> <repseq.fasta> <taxonomy.tsv>")
}
table <- args[1]
seq <- args[2]
taxonomy <- args[3]
OUT="qiime2_ASV_table.csv"
#load packages, Biostrings_2.46.0
library("Biostrings")
#read requir... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{projects}
\alias{projects}
\alias{schema}
\alias{fields}
\alias{values}
\alias{query_graphql}
\title{Discover and query Gen3 resources}
\usage{
projects()
schema(as = c("brief", "full"))
fields(type_name, as = c("brief", "full... | /man/query.Rd | no_license | nturaga/Gen3 | R | false | true | 2,708 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{projects}
\alias{projects}
\alias{schema}
\alias{fields}
\alias{values}
\alias{query_graphql}
\title{Discover and query Gen3 resources}
\usage{
projects()
schema(as = c("brief", "full"))
fields(type_name, as = c("brief", "full... |
# Final Project
library(ggplot2)
library(dplyr)
library(shiny)
library(DT)
library(rsconnect)
library(shinycssloaders)
library(lubridate)
my.server <- function(input, output) {
data <- read.csv("data/movies.csv")
changing_data <- reactive({
check_lang <- input$lang
rating_max <- input$rating[2]
rat... | /server.R | no_license | navjanar/7654321098_finalproj | R | false | false | 2,311 | r | # Final Project
library(ggplot2)
library(dplyr)
library(shiny)
library(DT)
library(rsconnect)
library(shinycssloaders)
library(lubridate)
my.server <- function(input, output) {
data <- read.csv("data/movies.csv")
changing_data <- reactive({
check_lang <- input$lang
rating_max <- input$rating[2]
rat... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/functions_targetHub.R
\name{parse_response}
\alias{parse_response}
\title{Function that checks the status and parses the response.}
\usage{
parse_response(req)
}
\arguments{
\item{req}{json object}
\item{...}{other arguments}
}
\desc... | /miRNAtargetpackage.Rcheck/00_pkg_src/miRNAtargetpackage/man/parse_response.Rd | no_license | camgu844/miRNA | R | false | false | 389 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/functions_targetHub.R
\name{parse_response}
\alias{parse_response}
\title{Function that checks the status and parses the response.}
\usage{
parse_response(req)
}
\arguments{
\item{req}{json object}
\item{...}{other arguments}
}
\desc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.