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 |
|---|---|---|---|---|---|---|---|---|---|
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615837310-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,047 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
library(tidyverse)
library(data.table)
library(fgsea)
library(msigdbr)
library(DT)
library(clusterProfiler)
library(grid)
library(org.Mmusculus.GRCm38p6.99.eg.db)
## RNAseq DEG functional analysis using clusterProfiler
rm(list = ls())
source(file = "E:/Chris_UM/GitHub/omics_util/04_GO_enrichment/topGO_functions.R")... | /scripts/03_RNAseq_functional_enrichment.R | no_license | lakhanp1/38_ZhuBO_RNAseq4_DKO | R | false | false | 13,584 | r | library(tidyverse)
library(data.table)
library(fgsea)
library(msigdbr)
library(DT)
library(clusterProfiler)
library(grid)
library(org.Mmusculus.GRCm38p6.99.eg.db)
## RNAseq DEG functional analysis using clusterProfiler
rm(list = ls())
source(file = "E:/Chris_UM/GitHub/omics_util/04_GO_enrichment/topGO_functions.R")... |
# This script produces statistical summaries and graphical results
# from the output of ba_rand_test.R in the different regions and subregions
library(tidyverse)
cell_km2 <- 0.215 # MODIS raster cell area in km2
# Codes (used in file names) and names (to display in plots) for regions and subregions
reg_codes <- c("n... | /ba_process_output.R | no_license | pmarchand1/fire-recurrence-modis | R | false | false | 7,248 | r | # This script produces statistical summaries and graphical results
# from the output of ba_rand_test.R in the different regions and subregions
library(tidyverse)
cell_km2 <- 0.215 # MODIS raster cell area in km2
# Codes (used in file names) and names (to display in plots) for regions and subregions
reg_codes <- c("n... |
shinyServer(
function(input, output) {
# forming dataframe fo radar plot
radar.data <- reactive({
rbind(r.data,
nriData.wide[nriData.wide$Country==input$country1, dims],
nriData.wide[nriData.wide$Country==input$country2, dims]
)
... | /server.R | no_license | tomowc/ddp_proj_app | R | false | false | 1,282 | r |
shinyServer(
function(input, output) {
# forming dataframe fo radar plot
radar.data <- reactive({
rbind(r.data,
nriData.wide[nriData.wide$Country==input$country1, dims],
nriData.wide[nriData.wide$Country==input$country2, dims]
)
... |
#3
#일리노이주와 미시건주 오하이오주의 전체 인구는 크게 차이가 없는 반면 일리노이 주의 아시아인 수가 월등히 높다.
#mean(midwest$percollege)== 18.27274
#mean(midwest[midwest$percasian>1,]$percollege) == 29.87688
#mean(midwest[midwest$percasian>2,]$percollege) == 35.01751
#mean(midwest[midwest$percasian>3,]$percollege) == 38.84174
#mean(midwest[midwest$percasian>4,]$... | /R/midwest데이터.R | no_license | better331132/helloR | R | false | false | 1,404 | r | #3
#일리노이주와 미시건주 오하이오주의 전체 인구는 크게 차이가 없는 반면 일리노이 주의 아시아인 수가 월등히 높다.
#mean(midwest$percollege)== 18.27274
#mean(midwest[midwest$percasian>1,]$percollege) == 29.87688
#mean(midwest[midwest$percasian>2,]$percollege) == 35.01751
#mean(midwest[midwest$percasian>3,]$percollege) == 38.84174
#mean(midwest[midwest$percasian>4,]$... |
.Random.seed <-
c(403L, 432L, -678628990L, -398879292L, -1175936006L, -1927840090L,
71575548L, 116701410L, 973048916L, -1634865779L, 413940365L,
626374877L, 688513227L, -158508683L, 80827441L, 376549021L, -198417317L,
-601753194L, 1399586916L, 1828546730L, 864239660L, -427201396L,
-2085029066L, -1447676248L, 297026... | /GDAtools/R/GDAtools-internal.R | no_license | ingted/R-Examples | R | false | false | 8,244 | r | .Random.seed <-
c(403L, 432L, -678628990L, -398879292L, -1175936006L, -1927840090L,
71575548L, 116701410L, 973048916L, -1634865779L, 413940365L,
626374877L, 688513227L, -158508683L, 80827441L, 376549021L, -198417317L,
-601753194L, 1399586916L, 1828546730L, 864239660L, -427201396L,
-2085029066L, -1447676248L, 297026... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_data.R
\name{fmt_url}
\alias{fmt_url}
\title{Format URLs to generate links}
\usage{
fmt_url(
data,
columns = everything(),
rows = everything(),
label = NULL,
as_button = FALSE,
color = "auto",
show_underline = "auto",
b... | /man/fmt_url.Rd | permissive | rstudio/gt | R | false | true | 14,997 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_data.R
\name{fmt_url}
\alias{fmt_url}
\title{Format URLs to generate links}
\usage{
fmt_url(
data,
columns = everything(),
rows = everything(),
label = NULL,
as_button = FALSE,
color = "auto",
show_underline = "auto",
b... |
data.replace <- function(datavector, to, from) {
datavector[datavector %in% from] <- to
datavector
}
| /scripts/data-replace.R | no_license | philsf-biostat/analise_dados_ACD_2017 | R | false | false | 105 | r | data.replace <- function(datavector, to, from) {
datavector[datavector %in% from] <- to
datavector
}
|
\name{augm}
\alias{augm}
\docType{data}
\title{\eqn{2^{(7-3)}}{2^{(7-3)}} arsenic removal experiment augmented with mirror image}
\description{
Data from the \eqn{2^{(7-3)}} arsenic removal experiment augmented with mirror image in chapter 6 of Design and Analysis
of Experiments with R
}
\usage{data(augm)}
\f... | /man/augm.Rd | no_license | cran/daewr | R | false | false | 1,098 | rd | \name{augm}
\alias{augm}
\docType{data}
\title{\eqn{2^{(7-3)}}{2^{(7-3)}} arsenic removal experiment augmented with mirror image}
\description{
Data from the \eqn{2^{(7-3)}} arsenic removal experiment augmented with mirror image in chapter 6 of Design and Analysis
of Experiments with R
}
\usage{data(augm)}
\f... |
#read the file
myFile <- "household_power_consumption.txt"
#read header's names
myHeader <- read.csv(myFile, sep=";", skip=0, nrows=1)
#read data, skip unnecessary rows
myData <- read.csv(myFile, sep=";", skip=66637, nrows=2880, na.strings="?", colClasses = c("character","character","numeric","numeric","numeric","nume... | /plot3.R | no_license | txevas/ExData_Plotting1 | R | false | false | 1,014 | r | #read the file
myFile <- "household_power_consumption.txt"
#read header's names
myHeader <- read.csv(myFile, sep=";", skip=0, nrows=1)
#read data, skip unnecessary rows
myData <- read.csv(myFile, sep=";", skip=66637, nrows=2880, na.strings="?", colClasses = c("character","character","numeric","numeric","numeric","nume... |
rm(list = ls())
data <- read.csv("~/ProgrammingAssignment2/ProgrammingAssignment2/assignment/ExData_Plotting1/household_power_consumption.txt", sep=";",stringsAsFactors=F,comment.char="")
neededData <- subset(data, Date %in% c("1/2/2007","2/2/2007"))
neededData$Date <- as.Date(neededData$Date, format="%d/%m/%Y")
... | /Plot3.R | no_license | MohitsSingh/ExData_Plotting1 | R | false | false | 905 | r | rm(list = ls())
data <- read.csv("~/ProgrammingAssignment2/ProgrammingAssignment2/assignment/ExData_Plotting1/household_power_consumption.txt", sep=";",stringsAsFactors=F,comment.char="")
neededData <- subset(data, Date %in% c("1/2/2007","2/2/2007"))
neededData$Date <- as.Date(neededData$Date, format="%d/%m/%Y")
... |
### Explaining the Student t-test
## Let's look at our data:
anastasia <- c(65, 74, 73, 83, 76, 65, 86, 70, 80, 55, 78, 78, 90, 77, 68)
bernadette <- c(72, 66, 71, 66, 76, 69, 79, 73, 62, 69, 68, 60, 73, 68, 67, 74, 56, 74)
mean(anastasia) # 74.5
sd(anastasia) # 9.0
nA<-length(anastasia) ... | /statistics/two_sample_ttest_theory.R | no_license | depocen/PSY317L | R | false | false | 4,064 | r |
### Explaining the Student t-test
## Let's look at our data:
anastasia <- c(65, 74, 73, 83, 76, 65, 86, 70, 80, 55, 78, 78, 90, 77, 68)
bernadette <- c(72, 66, 71, 66, 76, 69, 79, 73, 62, 69, 68, 60, 73, 68, 67, 74, 56, 74)
mean(anastasia) # 74.5
sd(anastasia) # 9.0
nA<-length(anastasia) ... |
#' Import Canadian Snow Data from .dly file
#' @param fileLoc File path to .dly data
#' @param progress boolean spesifing if you want progress of code to be printed out
#' @return nicely organized dataframe of snow data
#' @export
importDLY<-function(fileLoc,progress=FALSE){
SnowDataUpdated <- read.delim(file =... | /R/importDLY.R | no_license | joej1997/importDLY | R | false | false | 2,151 | r | #' Import Canadian Snow Data from .dly file
#' @param fileLoc File path to .dly data
#' @param progress boolean spesifing if you want progress of code to be printed out
#' @return nicely organized dataframe of snow data
#' @export
importDLY<-function(fileLoc,progress=FALSE){
SnowDataUpdated <- read.delim(file =... |
################################################
# Center a matrix (genes as columns, samples as rows)
SampleCenterMean <- function(mat){
# Ensure data is matrix
if(!is.matrix(mat)){
stop("Data must be matrix")
}
# Ensure data is numeric
if(!is.numeric(mat)){
... | /functions/SampleCenterMean.R | permissive | steepale/20200915_metabolomics-pass1a | R | false | false | 586 | r | ################################################
# Center a matrix (genes as columns, samples as rows)
SampleCenterMean <- function(mat){
# Ensure data is matrix
if(!is.matrix(mat)){
stop("Data must be matrix")
}
# Ensure data is numeric
if(!is.numeric(mat)){
... |
# ------------------------------------------------------------------------------
# H2O GBM for Santander Product Recommendations
# Generate level one data using H2O Random Grid Search
# ------------------------------------------------------------------------------
# Core model parameters
n_seed <- 1234
n_trees_max <- ... | /B_analysts_sources_github/woobe/kaggle_santander_product/h2o_gbm_L1.R | no_license | Irbis3/crantasticScrapper | R | false | false | 11,125 | r | # ------------------------------------------------------------------------------
# H2O GBM for Santander Product Recommendations
# Generate level one data using H2O Random Grid Search
# ------------------------------------------------------------------------------
# Core model parameters
n_seed <- 1234
n_trees_max <- ... |
#******************************************************************************************************
# Applied generalized linear model - FS
# Viviana Amati
# Social Network Labs
# Department of Humanities, Social and Political Sciences
# ETH Zurich
# 24 March 2020
# This script provides the code for applying bin... | /Course_Material/BinaryDataModel.R | no_license | japolak/ETH-AGLM | R | false | false | 9,459 | r | #******************************************************************************************************
# Applied generalized linear model - FS
# Viviana Amati
# Social Network Labs
# Department of Humanities, Social and Political Sciences
# ETH Zurich
# 24 March 2020
# This script provides the code for applying bin... |
path_scaling <- paste0(path_sub, "scaling/")
dir.create(path_scaling, recursive = T)
# convert data and variance into 3d arrays
x <- array(NA,
dim = c(nrow(coord_df), length(date_list), length(var_list)),
dimnames = list(
as.character(1:nrow(coord_df)),
as.character(date_list),
var_list
)
)
for (j in... | /simulations/code/steps/21 preprocess data.R | permissive | zhulabgroup/song-2023-landsc-ecol | R | false | false | 4,432 | r | path_scaling <- paste0(path_sub, "scaling/")
dir.create(path_scaling, recursive = T)
# convert data and variance into 3d arrays
x <- array(NA,
dim = c(nrow(coord_df), length(date_list), length(var_list)),
dimnames = list(
as.character(1:nrow(coord_df)),
as.character(date_list),
var_list
)
)
for (j in... |
\name{mr_union}
\alias{mr_union}
\alias{mr_intersect}
\alias{mr_diff}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Set operations on multiple-response objects
}
\description{
These functions take union, intersection, and difference of two multiple-response objects. An observation has a level ... | /man/mr_union.Rd | no_license | mabafaba/rimu | R | false | false | 1,231 | rd | \name{mr_union}
\alias{mr_union}
\alias{mr_intersect}
\alias{mr_diff}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Set operations on multiple-response objects
}
\description{
These functions take union, intersection, and difference of two multiple-response objects. An observation has a level ... |
# Getting dataset
all_data <- read.table("~/Data/household_power_consumption.txt", header = T, sep=";",
quote="\"", na.strings="?", stringsAsFactors=FALSE)
all_data$Date <- as.Date(all_data$Date, format="%d/%m/%Y")
# Subsetting the data
data <- subset(all_data, subset=(Date >= "2007-02-01" & Dat... | /Course Project 1/plot3.R | no_license | sturekm/Exploratory-Data-Analysis | R | false | false | 877 | r | # Getting dataset
all_data <- read.table("~/Data/household_power_consumption.txt", header = T, sep=";",
quote="\"", na.strings="?", stringsAsFactors=FALSE)
all_data$Date <- as.Date(all_data$Date, format="%d/%m/%Y")
# Subsetting the data
data <- subset(all_data, subset=(Date >= "2007-02-01" & Dat... |
# web crwaling
library(httr)
library(rvest)
library(readr)
library(dplyr)
otp_url = "http://marketdata.krx.co.kr/contents/COM/GenerateOTP.jspx?name=fileDown&filetype=csv&url=MKD/13/1302/13020401/mkd13020401&market_gubun=ALL&gubun=1&isu_cdnm=A005930%2F%EC%82%BC%EC%84%B1%EC%A0%84%EC%9E%90&isu_cd=KR7005930003&isu_... | /code_webcrwaling.R | no_license | ParkChanhyeock/Stock | R | false | false | 1,126 | r | # web crwaling
library(httr)
library(rvest)
library(readr)
library(dplyr)
otp_url = "http://marketdata.krx.co.kr/contents/COM/GenerateOTP.jspx?name=fileDown&filetype=csv&url=MKD/13/1302/13020401/mkd13020401&market_gubun=ALL&gubun=1&isu_cdnm=A005930%2F%EC%82%BC%EC%84%B1%EC%A0%84%EC%9E%90&isu_cd=KR7005930003&isu_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apple_mobility_data.R
\name{apple_mobility_data}
\alias{apple_mobility_data}
\title{Access Apple mobility data}
\usage{
apple_mobility_data(agree_to_terms = TRUE, max_tries = 3, message_url = FALSE)
}
\arguments{
\item{agree_to_terms}{logical... | /man/apple_mobility_data.Rd | permissive | kartechbabu/sars2pack | R | false | true | 5,084 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apple_mobility_data.R
\name{apple_mobility_data}
\alias{apple_mobility_data}
\title{Access Apple mobility data}
\usage{
apple_mobility_data(agree_to_terms = TRUE, max_tries = 3, message_url = FALSE)
}
\arguments{
\item{agree_to_terms}{logical... |
/R-Portable/tests/utf8-regex.R | permissive | ksasso/Electron_ShinyApp_Deployment | R | false | false | 8,104 | r | ||
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../findNSourceUtils.R')
test.rdocapply.golden <- function(H2Oserver) {
irisPath = system.file("extdata", "iris.csv", package="h2oRClient")
iris.hex = h2o.importFile(H2Oserver, path = irisPath, key = "iris.hex")
summary(apply(iris.hex, 1,... | /R/tests/testdir_docexamples/runit_Rdoc_apply.R | permissive | svaithianatha/h2o | R | false | false | 387 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../findNSourceUtils.R')
test.rdocapply.golden <- function(H2Oserver) {
irisPath = system.file("extdata", "iris.csv", package="h2oRClient")
iris.hex = h2o.importFile(H2Oserver, path = irisPath, key = "iris.hex")
summary(apply(iris.hex, 1,... |
makeCacheMatrix <- function(x = matrix()){
inv <- NULL
set <- function(y){
x <<- y
inv <<- NULL
}
get <<- function() {x}
setInverse <- function(inverse) {inv <<- inverse}
getInverse <- function() {inv}
list(set = set, get = get, setInverse = setInverse, getInverse = getInverse)
}
... | /makeCacheMatrix.R | no_license | priti-27/week-3 | R | false | false | 541 | r | makeCacheMatrix <- function(x = matrix()){
inv <- NULL
set <- function(y){
x <<- y
inv <<- NULL
}
get <<- function() {x}
setInverse <- function(inverse) {inv <<- inverse}
getInverse <- function() {inv}
list(set = set, get = get, setInverse = setInverse, getInverse = getInverse)
}
... |
# read in data
myurl = "https://liangfgithub.github.io/MovieData/"
movies = readLines(paste0(myurl, 'movies.dat?raw=true'))
movies = strsplit(movies, split = "::", fixed = TRUE, useBytes = TRUE)
movies = matrix(unlist(movies), ncol = 3, byrow = TRUE)
movies = data.frame(movies, stringsAsFactors = FALSE)
colnames(movies... | /MovieRecommender/functions/sample.R | no_license | chien314/Movie_Recommender_in_R | R | false | false | 1,468 | r | # read in data
myurl = "https://liangfgithub.github.io/MovieData/"
movies = readLines(paste0(myurl, 'movies.dat?raw=true'))
movies = strsplit(movies, split = "::", fixed = TRUE, useBytes = TRUE)
movies = matrix(unlist(movies), ncol = 3, byrow = TRUE)
movies = data.frame(movies, stringsAsFactors = FALSE)
colnames(movies... |
filter_df_by_apt <- function(.df, .apt){
df <- .df %>% filter(APT_ICAO == .apt) %>%
filter(YEAR >= min_year) # ensure only 5 years of data
}
#
pick_apt_name <- function(.df, .apt){
name <- .df %>% filter(APT_ICAO == .apt)
name <- name$APT_NAME[1]
}
#
pick_state_name <- function(.df, .apt){
state <- .df %>%... | /R/utils.R | no_license | rainer-rq-koelle/pru-apt-dashboards | R | false | false | 5,929 | r | filter_df_by_apt <- function(.df, .apt){
df <- .df %>% filter(APT_ICAO == .apt) %>%
filter(YEAR >= min_year) # ensure only 5 years of data
}
#
pick_apt_name <- function(.df, .apt){
name <- .df %>% filter(APT_ICAO == .apt)
name <- name$APT_NAME[1]
}
#
pick_state_name <- function(.df, .apt){
state <- .df %>%... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/documentation.R
\docType{data}
\name{cola.original}
\alias{cola.original}
\title{Cola Original}
\format{A \code{\link{data.frame}}.}
\usage{
cola.original
}
\description{
A data file from a survey of the Australian cola market in 2007.
}
\key... | /man/cola.original.Rd | no_license | gkalnytskyi/flipExampleData | R | false | true | 336 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/documentation.R
\docType{data}
\name{cola.original}
\alias{cola.original}
\title{Cola Original}
\format{A \code{\link{data.frame}}.}
\usage{
cola.original
}
\description{
A data file from a survey of the Australian cola market in 2007.
}
\key... |
/funciones.R | no_license | dcsolano10/cancer | R | false | false | 58,574 | r | ||
# still need to insert factor name in error message; look for which
.BlankStop = function() {
stop("\n")
return(invisible(NULL))
}
.FactorNotFactor = function(which=NULL) {
stop("The factor is not stored as a factor.\nTry using as.factor() on a copy of the data.frame.")
return(invisible(NULL))
}
.G... | /R/Stop.R | no_license | ajrgodfrey/BrailleR | R | false | false | 1,968 | r | # still need to insert factor name in error message; look for which
.BlankStop = function() {
stop("\n")
return(invisible(NULL))
}
.FactorNotFactor = function(which=NULL) {
stop("The factor is not stored as a factor.\nTry using as.factor() on a copy of the data.frame.")
return(invisible(NULL))
}
.G... |
power.consumption.all <- read.csv2(
"household_power_consumption.txt",
#"household_power_consumption_subset.txt",
colClasses = c("character", "character", "character", "character", "character", "character", "character", "character", "character")
)
#head(power.consumption.all)
power.consumption ... | /plot4.R | no_license | swapnildipankar/ExData_Plotting1 | R | false | false | 2,145 | r | power.consumption.all <- read.csv2(
"household_power_consumption.txt",
#"household_power_consumption_subset.txt",
colClasses = c("character", "character", "character", "character", "character", "character", "character", "character", "character")
)
#head(power.consumption.all)
power.consumption ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_geo_dist.R
\name{get.geo.dist}
\alias{get.geo.dist}
\title{Compute the geodesic distance between two coordinate locations}
\usage{
get.geo.dist(long1, lat1, long2, lat2, units = "m")
}
\arguments{
\item{long1}{Numerical argument -- the lo... | /man/get.geo.dist.Rd | no_license | jBernardADFG/cpuesim | R | false | true | 852 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_geo_dist.R
\name{get.geo.dist}
\alias{get.geo.dist}
\title{Compute the geodesic distance between two coordinate locations}
\usage{
get.geo.dist(long1, lat1, long2, lat2, units = "m")
}
\arguments{
\item{long1}{Numerical argument -- the lo... |
suppressPackageStartupMessages(library(float))
set.seed(1234)
tol = 1e-6
x = crossprod(matrix(stats::rnorm(30), 10))
xs = fl(x)
y = 1:3
ys = fl(y)
z = cbind(y, rev(y))
zs = fl(z)
test = dbl(backsolve(xs, ys, upper.tri=FALSE))
truth = backsolve(x, y, upper.tri=FALSE)
stopifnot(all.equal(test, truth, tol=tol))
test ... | /tests/backsolve.r | permissive | wrathematics/float | R | false | false | 726 | r | suppressPackageStartupMessages(library(float))
set.seed(1234)
tol = 1e-6
x = crossprod(matrix(stats::rnorm(30), 10))
xs = fl(x)
y = 1:3
ys = fl(y)
z = cbind(y, rev(y))
zs = fl(z)
test = dbl(backsolve(xs, ys, upper.tri=FALSE))
truth = backsolve(x, y, upper.tri=FALSE)
stopifnot(all.equal(test, truth, tol=tol))
test ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colors.R
\name{values2colors}
\alias{values2colors}
\title{values to colors}
\usage{
values2colors(v, n = 100, zlim, col = heat.colors, na.col = "gray50",
...)
}
\arguments{
\item{v}{the values}
\item{n}{number of colors}
\item{zlim}{limi... | /man/values2colors.Rd | no_license | antiphon/sphere | R | false | true | 414 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colors.R
\name{values2colors}
\alias{values2colors}
\title{values to colors}
\usage{
values2colors(v, n = 100, zlim, col = heat.colors, na.col = "gray50",
...)
}
\arguments{
\item{v}{the values}
\item{n}{number of colors}
\item{zlim}{limi... |
#' Calculate the delta_delta_ct model
#'
#' Uses the \eqn{C_T} values and a reference gene and a group to calculate the delta
#' delta \eqn{C_T} model to estimate the normalized relative expression of target
#' genes.
#'
#' @param df A data.frame of \eqn{C_T} values with genes in the columns and samples
#' in rows rows... | /R/analyses_fun.R | no_license | felix28dls/ddCt_QPCR_Analysis | R | false | false | 18,281 | r | #' Calculate the delta_delta_ct model
#'
#' Uses the \eqn{C_T} values and a reference gene and a group to calculate the delta
#' delta \eqn{C_T} model to estimate the normalized relative expression of target
#' genes.
#'
#' @param df A data.frame of \eqn{C_T} values with genes in the columns and samples
#' in rows rows... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/combi_3.R
\name{gmdh.combi_3}
\alias{gmdh.combi_3}
\title{GMDH COMBI auxiliar functions}
\usage{
gmdh.combi_3(X, y, G = 2)
}
\description{
Performs auxiliar tasks to predict.mia
}
\keyword{internal}
| /man/gmdh.combi_3.Rd | no_license | perelom3/GMDHreg | R | false | true | 277 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/combi_3.R
\name{gmdh.combi_3}
\alias{gmdh.combi_3}
\title{GMDH COMBI auxiliar functions}
\usage{
gmdh.combi_3(X, y, G = 2)
}
\description{
Performs auxiliar tasks to predict.mia
}
\keyword{internal}
|
## MS script to process account$billing.geo.code
# add "hotspots"
# us no us geos
# standardize geos
# group geos by city, state
# map geos
library(stringr)
library(fields)
library(mi)
geo <- rawData$accounts
geo <- as.data.frame(geo[, c(1,3,5)]) #c(1,3)
table(str_length(geo[,2]))
# add missing zero to four-digit... | /geo.2.R | no_license | MatthewSchumwinger/towerProperty | R | false | false | 5,153 | r | ## MS script to process account$billing.geo.code
# add "hotspots"
# us no us geos
# standardize geos
# group geos by city, state
# map geos
library(stringr)
library(fields)
library(mi)
geo <- rawData$accounts
geo <- as.data.frame(geo[, c(1,3,5)]) #c(1,3)
table(str_length(geo[,2]))
# add missing zero to four-digit... |
## Plot1.R script
source("./load_dataset.R")
##
# open png grDevice
png(filename = "plot3.png", width = 480, height = 480, units = "px")
plot(epc$Datetime, epc$Sub_metering_1,
type = "l",
col = "black",
xlab = "",
ylab = "Energy sub metering")
lines(epc$Datetime, epc$Sub_metering_2, col =... | /plot3.R | no_license | jahirul76/ExData_Plotting1 | R | false | false | 534 | r | ## Plot1.R script
source("./load_dataset.R")
##
# open png grDevice
png(filename = "plot3.png", width = 480, height = 480, units = "px")
plot(epc$Datetime, epc$Sub_metering_1,
type = "l",
col = "black",
xlab = "",
ylab = "Energy sub metering")
lines(epc$Datetime, epc$Sub_metering_2, col =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/probSign.R
\name{probSign}
\alias{probSign}
\title{Compute probability of positive or negative sign from bootPairs output}
\usage{
probSign(out, tau = 0.476)
}
\arguments{
\item{out}{{output from bootPairs with p-1 columns and n999 rows}}
\i... | /man/probSign.Rd | no_license | cran/generalCorr | R | false | true | 2,785 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/probSign.R
\name{probSign}
\alias{probSign}
\title{Compute probability of positive or negative sign from bootPairs output}
\usage{
probSign(out, tau = 0.476)
}
\arguments{
\item{out}{{output from bootPairs with p-1 columns and n999 rows}}
\i... |
tema_gg_blank <- function() {
ggplot2::theme(
rect = ggplot2::element_blank(),
panel.grid = ggplot2::element_blank(),
text = ggplot2::element_blank(),
axis.ticks = ggplot2::element_blank()
)
} | /R/utils_tema.R | no_license | nupec/ods6 | R | false | false | 212 | r | tema_gg_blank <- function() {
ggplot2::theme(
rect = ggplot2::element_blank(),
panel.grid = ggplot2::element_blank(),
text = ggplot2::element_blank(),
axis.ticks = ggplot2::element_blank()
)
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/betaDist.R
\name{betaDist}
\alias{betaDist}
\title{The Beta distribution}
\usage{
betaDist(x, alpha, beta)
}
\arguments{
\item{x}{Double - A value within the intervall [0,1].}
\item{alpha}{Double - A value greater than zero.}
\item{beta}{Do... | /man/betaDist.Rd | no_license | PhilippVWC/myBayes | R | false | true | 556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/betaDist.R
\name{betaDist}
\alias{betaDist}
\title{The Beta distribution}
\usage{
betaDist(x, alpha, beta)
}
\arguments{
\item{x}{Double - A value within the intervall [0,1].}
\item{alpha}{Double - A value greater than zero.}
\item{beta}{Do... |
###
# QUESTÃO 1
###
install.packages("tidyverse")
library(tidyverse)
nomero <- function(name) {
name = tolower(name)
name = gsub(' ', '', name)
total = 0
name = match(unlist(strsplit(name, split="")), letters)
for (i in name) {
total = total + i
}
return(total)
}
name = 'filipe zabala'
nomero(nam... | /questao_1&2.R | no_license | brunaoliveira/t1_estatistica | R | false | false | 806 | r | ###
# QUESTÃO 1
###
install.packages("tidyverse")
library(tidyverse)
nomero <- function(name) {
name = tolower(name)
name = gsub(' ', '', name)
total = 0
name = match(unlist(strsplit(name, split="")), letters)
for (i in name) {
total = total + i
}
return(total)
}
name = 'filipe zabala'
nomero(nam... |
###############################################################################
################################ Standardise ##################################
###############################################################################
#' Use standard names and spellings
#'
#' @description Standardise the names of... | /R/hemibrain_standardise.R | no_license | natverse/hemibrainr | R | false | false | 4,816 | r | ###############################################################################
################################ Standardise ##################################
###############################################################################
#' Use standard names and spellings
#'
#' @description Standardise the names of... |
#######################################################################################################################
############### Bean seed microbiome analysis for the rain out shelter experiment: OTU 97% ############################
################################################################################... | /16SV4_OTU97/20210604_16SV4/20210604_16SV4_OTU97_Rainout.R | no_license | ShadeLab/PAPER_Bintarti_2021_Bean_Rainoutshelter | R | false | false | 83,308 | r | #######################################################################################################################
############### Bean seed microbiome analysis for the rain out shelter experiment: OTU 97% ############################
################################################################################... |
# Analysis
# Load libraries -----
library(openair)
library(ggplot2)
library(reshape2)
library(readr)
# Load the data -------------
filepath <- '~/data/ODIN_SD/2017-traffic-AK'
load(paste0(filepath,'/odin_traffic_data.RData'))
# Merge the datasets
raw.odin.data <- merge(ODIN.100,ODIN.101,by='date',all=TRUE)
raw.odin.da... | /analysis.R | permissive | guolivar/poet-auckland | R | false | false | 3,394 | r | # Analysis
# Load libraries -----
library(openair)
library(ggplot2)
library(reshape2)
library(readr)
# Load the data -------------
filepath <- '~/data/ODIN_SD/2017-traffic-AK'
load(paste0(filepath,'/odin_traffic_data.RData'))
# Merge the datasets
raw.odin.data <- merge(ODIN.100,ODIN.101,by='date',all=TRUE)
raw.odin.da... |
#' Check the new time series
#'
#' \code{check_time_series} examines the first value in the Time column
#' for each event. If they are equal, it will return a single value. The returned
#' value should be equal to 0 minus the offset.
#'
#' @export
#' @import dplyr
#' @import tidyr
#' @import lazyeval
#'
... | /VWPre/R/utilities.R | no_license | ingted/R-Examples | R | false | false | 7,426 | r | #' Check the new time series
#'
#' \code{check_time_series} examines the first value in the Time column
#' for each event. If they are equal, it will return a single value. The returned
#' value should be equal to 0 minus the offset.
#'
#' @export
#' @import dplyr
#' @import tidyr
#' @import lazyeval
#'
... |
#!/usr/bin/env Rscript
source("functions.R")
context("Dual Regression")
# This script will example the ALFF output
# from the complete CPAC
# to the partial quick pack run
base.0 <- "/home2/data/Projects/ABIDE_Initiative/CPAC/test_qp/All_Output/pipeline_MerrittIsland/0051466_session_1"
base.1 <- "/home2/data/Proj... | /scripts/tests/quickpack/compare_50_dr.R | no_license | fitrialif/abide-1 | R | false | false | 1,140 | r | #!/usr/bin/env Rscript
source("functions.R")
context("Dual Regression")
# This script will example the ALFF output
# from the complete CPAC
# to the partial quick pack run
base.0 <- "/home2/data/Projects/ABIDE_Initiative/CPAC/test_qp/All_Output/pipeline_MerrittIsland/0051466_session_1"
base.1 <- "/home2/data/Proj... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pred_funs.R
\name{LPDS}
\alias{LPDS}
\title{Calculate the Log Predictive Density Score for a fitted TVP model}
\usage{
LPDS(mod, data_test)
}
\arguments{
\item{mod}{an object of class \code{shrinkTVP}, containing the fitted model for which th... | /man/LPDS.Rd | no_license | cran/shrinkTVP | R | false | true | 1,440 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pred_funs.R
\name{LPDS}
\alias{LPDS}
\title{Calculate the Log Predictive Density Score for a fitted TVP model}
\usage{
LPDS(mod, data_test)
}
\arguments{
\item{mod}{an object of class \code{shrinkTVP}, containing the fitted model for which th... |
#' Ratio of maximum to minimum
#'
#' @export
#' @param x numeric vector.
#' @return \code{max(x) / min(x)}
#'
max_over_min <- function(x) {
stopifnot(is.numeric(x))
max(x) / min(x)
}
| /R/max_over_min.R | no_license | jgabry/RHhelpers | R | false | false | 187 | r | #' Ratio of maximum to minimum
#'
#' @export
#' @param x numeric vector.
#' @return \code{max(x) / min(x)}
#'
max_over_min <- function(x) {
stopifnot(is.numeric(x))
max(x) / min(x)
}
|
library("stringr")
library ("RCurl")
library ("XML")
new_results <- '/government/announcements?keywords=&announcement_filter_option=press-releases&topics[]=all&departments[]=all&world_locations[]=all& from_date=&to_date=01%2F07%2F2018'
signatures = system.file("CurlSSL", cainfo = "cacert.pem",
... | /lab5/text_mining.R | no_license | max-kalganov/internet_data_analysis | R | false | false | 4,135 | r | library("stringr")
library ("RCurl")
library ("XML")
new_results <- '/government/announcements?keywords=&announcement_filter_option=press-releases&topics[]=all&departments[]=all&world_locations[]=all& from_date=&to_date=01%2F07%2F2018'
signatures = system.file("CurlSSL", cainfo = "cacert.pem",
... |
## code to prepare `garden_spending` dataset
library(googlesheets4)
library(tidyverse)
gs4_deauth()
garden_spending <- read_sheet("https://docs.google.com/spreadsheets/d/1dPVHwZgR9BxpigbHLnA0U99TtVHHQtUzNB9UR0wvb7o/edit?usp=sharing",
col_types = "ccccnn")
usethis::use_data(garden_spendi... | /data-raw/clean_garden_spending.R | no_license | mariorollojr/gardenR | R | false | false | 342 | r | ## code to prepare `garden_spending` dataset
library(googlesheets4)
library(tidyverse)
gs4_deauth()
garden_spending <- read_sheet("https://docs.google.com/spreadsheets/d/1dPVHwZgR9BxpigbHLnA0U99TtVHHQtUzNB9UR0wvb7o/edit?usp=sharing",
col_types = "ccccnn")
usethis::use_data(garden_spendi... |
# Hello, world!
#
# This is an example function named 'hello'
# which prints 'Hello, world!'.
#
# You can learn more about package authoring with RStudio at:
#
# http://r-pkgs.had.co.nz/
#
# Some useful keyboard shortcuts for package authoring:
#
# Build and Reload Package: 'Cmd + Shift + B'
# Check Package: ... | /R/hello.R | no_license | wcrump/crumpTest | R | false | false | 451 | r | # Hello, world!
#
# This is an example function named 'hello'
# which prints 'Hello, world!'.
#
# You can learn more about package authoring with RStudio at:
#
# http://r-pkgs.had.co.nz/
#
# Some useful keyboard shortcuts for package authoring:
#
# Build and Reload Package: 'Cmd + Shift + B'
# Check Package: ... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/dirs-files.R
\name{copy_dirs}
\alias{copy_dirs}
\title{Copy directories recursively, creating a new directory if not already there}
\usage{
copy_dirs(from, to)
}
\arguments{
\item{string}{}
}
\value{
string
}
\description{
copy_dirs
}... | /man/copy_dirs.Rd | no_license | jpmarindiaz/utter | R | false | false | 347 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/dirs-files.R
\name{copy_dirs}
\alias{copy_dirs}
\title{Copy directories recursively, creating a new directory if not already there}
\usage{
copy_dirs(from, to)
}
\arguments{
\item{string}{}
}
\value{
string
}
\description{
copy_dirs
}... |
/distrib_energy_price/src/regression.R | no_license | juananguita10/adi-energy-cost-analysis | R | false | false | 3,918 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/burst_tj.R
\name{group_labels}
\alias{group_labels}
\alias{group_labels.sftrack}
\alias{group_labels.sftraj}
\alias{group_labels.c_grouping}
\title{Shows grouping labels created from the s_group and the c_grouping}
\usage{
group_labels(x)
\m... | /man/group_labels.Rd | permissive | jmsigner/sftrack | R | false | true | 561 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/burst_tj.R
\name{group_labels}
\alias{group_labels}
\alias{group_labels.sftrack}
\alias{group_labels.sftraj}
\alias{group_labels.c_grouping}
\title{Shows grouping labels created from the s_group and the c_grouping}
\usage{
group_labels(x)
\m... |
predict.knnTree <- function(object, test, train, verbose = FALSE, ...)
{
#
# predict.knnTree: get prediction from "test" on model in "object"
#
# Arguments: object: object of class "knnTree"
# test: Data on which to make predictions
# train: Data from which model was built (required)
# ... | /R/predict.knnTree.R | no_license | cran/knnTree | R | false | false | 2,054 | r | predict.knnTree <- function(object, test, train, verbose = FALSE, ...)
{
#
# predict.knnTree: get prediction from "test" on model in "object"
#
# Arguments: object: object of class "knnTree"
# test: Data on which to make predictions
# train: Data from which model was built (required)
# ... |
# tepCCA -----
#' @title A \code{TExPosition}-type version of Canonical Correlation
#' Analysis (CCA).\emph{Temporary Version (11-04-2019)}.
#'
#' @description \code{tepCCA}:
#' A \code{TExPosition}-type version of Canonical Correlation
#' Analysis (CCA). \emph{Temporary Version.
#' This version will soon be revised... | /R/tepCCA.R | no_license | weiwei-wch/data4PCCAR | R | false | false | 5,620 | r | # tepCCA -----
#' @title A \code{TExPosition}-type version of Canonical Correlation
#' Analysis (CCA).\emph{Temporary Version (11-04-2019)}.
#'
#' @description \code{tepCCA}:
#' A \code{TExPosition}-type version of Canonical Correlation
#' Analysis (CCA). \emph{Temporary Version.
#' This version will soon be revised... |
library(GeneSurvey)
#################################################################
#################################################################
baseDir <- getBaseDir()
zipFile <- getZipDir()
if ((!is.null(baseDir))&&(!is.null(zipFile)))
{
initGeneReport("-Xmx4800m")
foo <- getMirs_List_Mir(theZipFile=zipF... | /tests/getMirs_List_Mir.R | no_license | minghao2016/GeneSurvey | R | false | false | 433 | r | library(GeneSurvey)
#################################################################
#################################################################
baseDir <- getBaseDir()
zipFile <- getZipDir()
if ((!is.null(baseDir))&&(!is.null(zipFile)))
{
initGeneReport("-Xmx4800m")
foo <- getMirs_List_Mir(theZipFile=zipF... |
data = read.table("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors=FALSE)
subset_data = data[data$Date %in% c("1/2/2007","2/2/2007") ,]
day = strptime(paste(subset_data$Date, subset_data$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
gap = as.numeric(subset_data$Global_active_power)
png(filename = "p... | /plot2.R | no_license | spoorthyparne/ExData_Plotting1 | R | false | false | 446 | r | data = read.table("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors=FALSE)
subset_data = data[data$Date %in% c("1/2/2007","2/2/2007") ,]
day = strptime(paste(subset_data$Date, subset_data$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
gap = as.numeric(subset_data$Global_active_power)
png(filename = "p... |
########
# 1D dynamic densities
########
# Simulate the data: 100 time points with 10 obsv each
nx <- 10
total <- nx*100
x <- c()
times <- c()
sd <- 13
xx <- seq(-120,120,length=100)
dd <- c()
for(i in 1:10)
{ r <- rbinom(nx, 1, 0.5)
x <- c(x, rnorm(nx, 80, sd)*r + rnorm(nx, -80, sd)*(1-r) )
times <- c(times,... | /Bmix/demo/bar1D.R | no_license | ingted/R-Examples | R | false | false | 4,039 | r | ########
# 1D dynamic densities
########
# Simulate the data: 100 time points with 10 obsv each
nx <- 10
total <- nx*100
x <- c()
times <- c()
sd <- 13
xx <- seq(-120,120,length=100)
dd <- c()
for(i in 1:10)
{ r <- rbinom(nx, 1, 0.5)
x <- c(x, rnorm(nx, 80, sd)*r + rnorm(nx, -80, sd)*(1-r) )
times <- c(times,... |
#Script R
args <- commandArgs(trailingOnly = TRUE)
col_to_use_min=as.numeric(args[1])
col_to_use_max=as.numeric(args[2])
# Threshold of detection:
thres=0.05
#Expression
data <- read.delim("Expression.txt")
rownames(data)=data[,1]
data=data[,-1]
colnames(data)=gsub("DC", "TT06DC." , colnames(data))
rownames(data)=... | /6_Expression/Find_related_genes_DESeq2.R | no_license | holtzy/Resistance-to-fusarium | R | false | false | 2,288 | r | #Script R
args <- commandArgs(trailingOnly = TRUE)
col_to_use_min=as.numeric(args[1])
col_to_use_max=as.numeric(args[2])
# Threshold of detection:
thres=0.05
#Expression
data <- read.delim("Expression.txt")
rownames(data)=data[,1]
data=data[,-1]
colnames(data)=gsub("DC", "TT06DC." , colnames(data))
rownames(data)=... |
# devtools::use_data(defaults, noiseThresholdsDict, BaNaRatios, notesDict, internal = TRUE, overwrite = TRUE)
#' Manual counts of syllables in 260 sounds
#'
#' A vector of the number of syllables in the corpus of 260 human non-linguistic emotional vocalizations from Anikin & Persson (2017). The corpus can be downloade... | /R/data.R | no_license | danstowell/soundgen | R | false | false | 1,460 | r | # devtools::use_data(defaults, noiseThresholdsDict, BaNaRatios, notesDict, internal = TRUE, overwrite = TRUE)
#' Manual counts of syllables in 260 sounds
#'
#' A vector of the number of syllables in the corpus of 260 human non-linguistic emotional vocalizations from Anikin & Persson (2017). The corpus can be downloade... |
#!/usr/bin/env Rscript
### libraries
library(gdsfmt)
library(SNPRelate)
library(data.table)
library(ggplot2)
library(foreach)
library(lattice)
library(tidyr)
library(SeqArray)
library(tid... | /December2019/Checkmales7757region | no_license | kbkubow/DaphniaPulex20162017Sequencing | R | false | false | 9,716 | #!/usr/bin/env Rscript
### libraries
library(gdsfmt)
library(SNPRelate)
library(data.table)
library(ggplot2)
library(foreach)
library(lattice)
library(tidyr)
library(SeqArray)
library(tid... | |
library(embed)
library(dplyr)
library(testthat)
library(modeldata)
| /tests/testthat/test_helpers.R | no_license | konradsemsch/embed-1 | R | false | false | 67 | r | library(embed)
library(dplyr)
library(testthat)
library(modeldata)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MetaAnalysisForFamiliesOfExperimentsSR.R
\name{transformZrtoHgapprox}
\alias{transformZrtoHgapprox}
\title{transformZrtoHgapprox}
\usage{
transformZrtoHgapprox(Zr)
}
\arguments{
\item{Zr}{A vector of normalised point bi-serial values}
}
\valu... | /man/transformZrtoHgapprox.Rd | no_license | cran/reproducer | R | false | true | 961 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MetaAnalysisForFamiliesOfExperimentsSR.R
\name{transformZrtoHgapprox}
\alias{transformZrtoHgapprox}
\title{transformZrtoHgapprox}
\usage{
transformZrtoHgapprox(Zr)
}
\arguments{
\item{Zr}{A vector of normalised point bi-serial values}
}
\valu... |
## Code is for ProgrammingAssignment2 of the Coursera R programming course.
## makeCacheMatrix: This function creates a special "matrix" object that can
## cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
... | /cachematrix.R | no_license | shortd/ProgrammingAssignment2 | R | false | false | 1,108 | r | ## Code is for ProgrammingAssignment2 of the Coursera R programming course.
## makeCacheMatrix: This function creates a special "matrix" object that can
## cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
... |
source("~/r-workspace/dec-functions.r")
heights20<-read.table(mfn22(pvalues[9],TRUE),header=T)
heights5<-read.table(mfn22(pvalues[3],TRUE),header=T)
prc20<-pca(heights20)
prc5<-pca(heights5)
opt20s<-"PC1+1:PC1-1:PC4+1:PC4-1:PC2+1:PC2-1"
opt5s<-"PC1+1:PC1-1:PC3+1:PC3-1:PC5+1:PC5-1:PC7+1:PC7-1"
opt20<-strsplit(opt20s,... | /variables/dec-variables.r | no_license | alexjgriffith/r-workspace | R | false | false | 1,608 | r | source("~/r-workspace/dec-functions.r")
heights20<-read.table(mfn22(pvalues[9],TRUE),header=T)
heights5<-read.table(mfn22(pvalues[3],TRUE),header=T)
prc20<-pca(heights20)
prc5<-pca(heights5)
opt20s<-"PC1+1:PC1-1:PC4+1:PC4-1:PC2+1:PC2-1"
opt5s<-"PC1+1:PC1-1:PC3+1:PC3-1:PC5+1:PC5-1:PC7+1:PC7-1"
opt20<-strsplit(opt20s,... |
testlist <- list(A = structure(c(2.32784507011897e-308, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613107463-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 344 | r | testlist <- list(A = structure(c(2.32784507011897e-308, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... |
library(R2Cuba)
library(MASS)
n <- 100
p <- 1
ht <- n^(-1/3)
hx <- rep(ht, p)
m = 10
theta <- c(0.5, 0.5, 0.5, 2, 2, 2, -0.5, -0.6, -0.7)
q <- length(theta) - 3
mA <- matrix(NA, m, m)
mb <- matrix(NA, q, m)
vg <- seq(0.5, 1.5, length.out = m)
vq <- dunif(vg, 0.5, 1.5)
n <- 100
cn <- 50
p <- 1
ij <- as.matrix(expand.g... | /accleft/accleft.r | no_license | homebovine/harvard | R | false | false | 17,232 | r | library(R2Cuba)
library(MASS)
n <- 100
p <- 1
ht <- n^(-1/3)
hx <- rep(ht, p)
m = 10
theta <- c(0.5, 0.5, 0.5, 2, 2, 2, -0.5, -0.6, -0.7)
q <- length(theta) - 3
mA <- matrix(NA, m, m)
mb <- matrix(NA, q, m)
vg <- seq(0.5, 1.5, length.out = m)
vq <- dunif(vg, 0.5, 1.5)
n <- 100
cn <- 50
p <- 1
ij <- as.matrix(expand.g... |
#!/usr/bin/env Rscript
#test how to use anova in windows:
suppressPackageStartupMessages(library("argparse"))
suppressPackageStartupMessages(library("reshape2"))
suppressPackageStartupMessages(library("zoo"))
suppressPackageStartupMessages(library("ggplot2"))
# create parser object
parser <- ArgumentParser()
# speci... | /Distortion_2019/simulation/full_binomdat_sim_unphased.R | no_license | jgbaldwinbrown/jgbutils | R | false | false | 4,572 | r | #!/usr/bin/env Rscript
#test how to use anova in windows:
suppressPackageStartupMessages(library("argparse"))
suppressPackageStartupMessages(library("reshape2"))
suppressPackageStartupMessages(library("zoo"))
suppressPackageStartupMessages(library("ggplot2"))
# create parser object
parser <- ArgumentParser()
# speci... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{Datasets}
\alias{Datasets}
\alias{data_all}
\title{data_all}
\format{
An object of class \code{list} of length 22.
}
\usage{
data(data_all)
}
\description{
See wichita
}
\details{
See description.
}
\keyword{datase... | /man/Datasets.Rd | no_license | FranzKrah/ClimInd | R | false | true | 324 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{Datasets}
\alias{Datasets}
\alias{data_all}
\title{data_all}
\format{
An object of class \code{list} of length 22.
}
\usage{
data(data_all)
}
\description{
See wichita
}
\details{
See description.
}
\keyword{datase... |
## directory to download reports
dl.dir <- file.path(getwd(), paste0("downloads.", format(Sys.time(), "%Y%m%d.%H%M%S")))
dir.create(dl.dir)
## connect to server and navigate to page
require(RSelenium)
rd <- rsDriver(browser="chrome", extraCapabilities=list(chromeOptions=list(prefs=list("download.default_directory"=dl.... | /scraper.R | no_license | johnlaing/ashcroft.polls.scraper | R | false | false | 2,621 | r | ## directory to download reports
dl.dir <- file.path(getwd(), paste0("downloads.", format(Sys.time(), "%Y%m%d.%H%M%S")))
dir.create(dl.dir)
## connect to server and navigate to page
require(RSelenium)
rd <- rsDriver(browser="chrome", extraCapabilities=list(chromeOptions=list(prefs=list("download.default_directory"=dl.... |
## pattern scaling
## run timeshift.r
library(stringi)
library(dplyr)
setwd('~/Desktop/PatternScaling/xtreme_indices')
ndxs <- list.files(pattern = 'RData_allscenarios')
index_names = c('cdd','fd','gsl','r10mm','r95ptot','rx5day',
'sdii','tnn','txx','wsdi')
## scenarios
scenarios = c('1pt5degC','2p... | /scaling.R | no_license | armbuster/Pattern-Scaling-Research | R | false | false | 3,413 | r | ## pattern scaling
## run timeshift.r
library(stringi)
library(dplyr)
setwd('~/Desktop/PatternScaling/xtreme_indices')
ndxs <- list.files(pattern = 'RData_allscenarios')
index_names = c('cdd','fd','gsl','r10mm','r95ptot','rx5day',
'sdii','tnn','txx','wsdi')
## scenarios
scenarios = c('1pt5degC','2p... |
library(jstor)
### Name: find_article
### Title: Defunct: Extract meta information for articles
### Aliases: find_article
### ** Examples
## Not run:
##D
##D find_article(jstor_example("sample_with_references.xml"))
## End(Not run)
| /data/genthat_extracted_code/jstor/examples/find_article.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 242 | r | library(jstor)
### Name: find_article
### Title: Defunct: Extract meta information for articles
### Aliases: find_article
### ** Examples
## Not run:
##D
##D find_article(jstor_example("sample_with_references.xml"))
## End(Not run)
|
## ----setup, echo = FALSE, include=FALSE---------------------------------------
knitr::opts_chunk$set(echo = TRUE)
## ----logo, echo=FALSE, fig.height=8.5, fig.pos="H", fig.align='center'--------
knitr::include_graphics('img/logo.png')
## ----libraries, echo=TRUE, message=FALSE--------------------------------------
... | /inst/doc/examples.R | permissive | cran/waydown | R | false | false | 12,358 | r | ## ----setup, echo = FALSE, include=FALSE---------------------------------------
knitr::opts_chunk$set(echo = TRUE)
## ----logo, echo=FALSE, fig.height=8.5, fig.pos="H", fig.align='center'--------
knitr::include_graphics('img/logo.png')
## ----libraries, echo=TRUE, message=FALSE--------------------------------------
... |
\name{standardColors}
\alias{standardColors}
\title{Colors this library uses for labeling modules.}
\description{
Returns the vector of color names in the order they are assigned by other functions in this library.
}
\usage{
standardColors(n = NULL)
}
\arguments{
\item{n}{Number of colors requested. If \code{NULL}... | /man/standardColors.Rd | no_license | cran/WGCNA | R | false | false | 697 | rd | \name{standardColors}
\alias{standardColors}
\title{Colors this library uses for labeling modules.}
\description{
Returns the vector of color names in the order they are assigned by other functions in this library.
}
\usage{
standardColors(n = NULL)
}
\arguments{
\item{n}{Number of colors requested. If \code{NULL}... |
## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
library(C50)
library(modeldata)
## ----credit-data--------------------------------------------------------------
library(modeldata)
data(credit_data)
## ----credit-vars----------------------------------... | /inst/doc/C5.0.R | no_license | cran/C50 | R | false | false | 1,969 | r | ## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
library(C50)
library(modeldata)
## ----credit-data--------------------------------------------------------------
library(modeldata)
data(credit_data)
## ----credit-vars----------------------------------... |
#' @description
#' Simple interface for the Keywords Everywhere API.
#' @keywords internal
#' @importFrom httr GET POST add_headers
#' @importFrom jsonlite fromJSON
"_PACKAGE"
| /R/kwewr.R | no_license | retowyss/kwewr | R | false | false | 176 | r | #' @description
#' Simple interface for the Keywords Everywhere API.
#' @keywords internal
#' @importFrom httr GET POST add_headers
#' @importFrom jsonlite fromJSON
"_PACKAGE"
|
library(testthat)
library(devtools)
library(doParallel)
library(StepwiseTest)
library(matrixcalc)
library(foreach)
library(mvtnorm)
# # THIS TEST TAKES A WHILE BECAUSE IT RUNS 500 RESAMPLES
# # COMMENT IT OUT IF YOU WANT TO AVOID IT
# # test that increasing the correlation between outcomes increases width of null inte... | /NRejections/tests/testthat/testthat.R | no_license | mayamathur/NRejections | R | false | false | 18,836 | r | library(testthat)
library(devtools)
library(doParallel)
library(StepwiseTest)
library(matrixcalc)
library(foreach)
library(mvtnorm)
# # THIS TEST TAKES A WHILE BECAUSE IT RUNS 500 RESAMPLES
# # COMMENT IT OUT IF YOU WANT TO AVOID IT
# # test that increasing the correlation between outcomes increases width of null inte... |
#' Martingale Difference Divergence
#'
#' \code{mdd} measures conditional mean dependence of \code{Y} given \code{X},
#' where each contains one variable (univariate) or more variables (multivariate).
#'
#' @param X A vector, matrix or data frame, where rows represent samples, and columns represent variables.
#' ... | /R/mdd.R | no_license | cran/EDMeasure | R | false | false | 3,410 | r | #' Martingale Difference Divergence
#'
#' \code{mdd} measures conditional mean dependence of \code{Y} given \code{X},
#' where each contains one variable (univariate) or more variables (multivariate).
#'
#' @param X A vector, matrix or data frame, where rows represent samples, and columns represent variables.
#' ... |
pollutantmean <- function(directory, pollutant, id = 1:332) {
## A function calculates the mean of a pollutant (sulfate or
## nitrate) across a specified list of monitors.
##
## Args:
## 'directory' : a character vector of length 1 indicating
## the location of the CSV files
... | /assignment01/pollutantmean.R | permissive | ksokolovic/R-Programming | R | false | false | 1,339 | r | pollutantmean <- function(directory, pollutant, id = 1:332) {
## A function calculates the mean of a pollutant (sulfate or
## nitrate) across a specified list of monitors.
##
## Args:
## 'directory' : a character vector of length 1 indicating
## the location of the CSV files
... |
# 2.2 ATE y estimación MCO
library(Matching)
library(stargazer)
data(lalonde)
attach(lalonde)
mean(re78[treat==1]) - mean(re78[treat==0])
# Prueba de Neyman
# se vió clase pasada
reg1 <- lm(re78~treat)
stargazer(reg1,type="text")
c(mean(age[treat==1]),mean(age[treat==0]))
t.test(
x = age[treat==1],
y = age[... | /clase03_lalonde.R | no_license | rsf94/taller_econometria | R | false | false | 333 | r | # 2.2 ATE y estimación MCO
library(Matching)
library(stargazer)
data(lalonde)
attach(lalonde)
mean(re78[treat==1]) - mean(re78[treat==0])
# Prueba de Neyman
# se vió clase pasada
reg1 <- lm(re78~treat)
stargazer(reg1,type="text")
c(mean(age[treat==1]),mean(age[treat==0]))
t.test(
x = age[treat==1],
y = age[... |
#' Make study function
#'
#' This is the main study function and runs the entire study.
#' @param data_path Path to data set. Should be a character vector of length 1. Defaults to c("../data/mdf.csv")
#' @param bs_samples The number of bootstrap samples to be generated as int. Defaults to 10
#' @export
make.study <- fu... | /R/make.study.r | no_license | martingerdin/SupaLarna | R | false | false | 4,403 | r | #' Make study function
#'
#' This is the main study function and runs the entire study.
#' @param data_path Path to data set. Should be a character vector of length 1. Defaults to c("../data/mdf.csv")
#' @param bs_samples The number of bootstrap samples to be generated as int. Defaults to 10
#' @export
make.study <- fu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{emr}
\alias{emr}
\title{Amazon EMR}
\usage{
emr(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.
\itemize{
\item{\strong{access_key_id}:} {AWS access key ID}
\item{\stro... | /man/emr.Rd | no_license | cran/paws | R | false | true | 11,114 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{emr}
\alias{emr}
\title{Amazon EMR}
\usage{
emr(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.
\itemize{
\item{\strong{access_key_id}:} {AWS access key ID}
\item{\stro... |
###################################################################################################
#HOMEWORK 04#
###################################################################################################
Kamilar_Cooper <- read.csv("~/Desktop/Development/Assignment_... | /Homework_04.R | no_license | naivers/Ivers_Nick_Homework-04 | R | false | false | 3,576 | r | ###################################################################################################
#HOMEWORK 04#
###################################################################################################
Kamilar_Cooper <- read.csv("~/Desktop/Development/Assignment_... |
##################################################
# UI
##################################################
#' @import shiny
#' @import shinydashboard
#' @import leaflet
#' @import shiny
#' @import ggplot2
#' @import shinyMobile
mobile_app_ui <- function(request) {
tagList(
mobile_golem_add_external_resources(... | /R/mobile_app.R | permissive | griu/covid19 | R | false | false | 6,057 | r |
##################################################
# UI
##################################################
#' @import shiny
#' @import shinydashboard
#' @import leaflet
#' @import shiny
#' @import ggplot2
#' @import shinyMobile
mobile_app_ui <- function(request) {
tagList(
mobile_golem_add_external_resources(... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 2.73876647344422e+189, 4.12396251261199e-221, 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), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual... | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615831338-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 2.73876647344422e+189, 4.12396251261199e-221, 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), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual... |
#' Framework 7 searchbar
#'
#' Searchbar to filter elements in a page.
#'
#' @param id Necessary when using \link{f7SearchbarTrigger}. NULL otherwise.
#' @param placeholder Searchbar placeholder.
#' @param expandable Whether to enable the searchbar with a target link,
#' in the navbar. See \link{f7SearchbarTrigger}.
#'... | /R/f7Searchbar.R | no_license | grambretagna/shinyMobile | R | false | false | 5,812 | r | #' Framework 7 searchbar
#'
#' Searchbar to filter elements in a page.
#'
#' @param id Necessary when using \link{f7SearchbarTrigger}. NULL otherwise.
#' @param placeholder Searchbar placeholder.
#' @param expandable Whether to enable the searchbar with a target link,
#' in the navbar. See \link{f7SearchbarTrigger}.
#'... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rank_sites.R
\name{rank_sites_DT}
\alias{rank_sites_DT}
\alias{rank_sites}
\title{Rank sites by EAR}
\usage{
rank_sites_DT(
chemical_summary,
category = "Biological",
mean_logic = FALSE,
sum_logic = TRUE,
hit_threshold = 0.1
)
rank... | /man/rank_sites_DT.Rd | permissive | jcmartinmu/toxEval | R | false | true | 2,348 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rank_sites.R
\name{rank_sites_DT}
\alias{rank_sites_DT}
\alias{rank_sites}
\title{Rank sites by EAR}
\usage{
rank_sites_DT(
chemical_summary,
category = "Biological",
mean_logic = FALSE,
sum_logic = TRUE,
hit_threshold = 0.1
)
rank... |
library(shiny)
library(dplyr)
library(ggplot2)
library(cgdsr)
load(file.path("data", "pam50centroids.rda"))
source("utility_functions.R")
ggplot2::theme_set(theme_classic() +
theme(axis.line.x = element_blank()) +
theme(axis.line.y = element_blank()))
colmutcat <- c("(germline)" = "black", "mutated" = "#10... | /server.R | permissive | gsh150801/tcga-brca-explorer | R | false | false | 7,582 | r | library(shiny)
library(dplyr)
library(ggplot2)
library(cgdsr)
load(file.path("data", "pam50centroids.rda"))
source("utility_functions.R")
ggplot2::theme_set(theme_classic() +
theme(axis.line.x = element_blank()) +
theme(axis.line.y = element_blank()))
colmutcat <- c("(germline)" = "black", "mutated" = "#10... |
setwd("~/Dropbox/@Next/AI/JH_EDA/HW1")
library(readr)
household_power_consumption <- read_delim("household_power_consumption.txt",
";", escape_double = FALSE, locale = locale(date_format = "%d/%m/%Y"),
na = "NA", trim_ws = TRUE)
names(household_power_consumption)<-tolower(names(household_power_consumption))
library(dpl... | /plot3.r | no_license | rjcc/ExData_Plotting1_RJCC | R | false | false | 1,031 | r | setwd("~/Dropbox/@Next/AI/JH_EDA/HW1")
library(readr)
household_power_consumption <- read_delim("household_power_consumption.txt",
";", escape_double = FALSE, locale = locale(date_format = "%d/%m/%Y"),
na = "NA", trim_ws = TRUE)
names(household_power_consumption)<-tolower(names(household_power_consumption))
library(dpl... |
#Monty Hall Problem
#Keeping your choice
montyhall1<-function(n){
count=0
for (i in 1:n){
#Assigning a car to one door
car=sample(3,1)
#Selecting your door
pick=1
#If your pick matches your car
if (pick==car){
count=count+1
}
}
print(count/n)
}
#Changing your choice
montyhall2<-function(n){
... | /University/Monty Hall Problem/montyhallproblem.R | no_license | michaelfilletti/myrepository | R | false | false | 561 | r | #Monty Hall Problem
#Keeping your choice
montyhall1<-function(n){
count=0
for (i in 1:n){
#Assigning a car to one door
car=sample(3,1)
#Selecting your door
pick=1
#If your pick matches your car
if (pick==car){
count=count+1
}
}
print(count/n)
}
#Changing your choice
montyhall2<-function(n){
... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{chart.RollingCorr}
\alias{chart.RollingCorr}
\title{\code{chart.RollingCorr}}
\usage{
chart.RollingCorr(Ra, Rb, width = 12, xaxis = TRUE, legend.loc = NULL,
colorset = (1:12), ylimmin = -1, ylimmax = 1, ..., fill = NA)
}
\arguments{
\item{Ra}{A univariate xts... | /man/chart.RollingCorr.Rd | no_license | bigdatalib/RTL | R | false | false | 1,642 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{chart.RollingCorr}
\alias{chart.RollingCorr}
\title{\code{chart.RollingCorr}}
\usage{
chart.RollingCorr(Ra, Rb, width = 12, xaxis = TRUE, legend.loc = NULL,
colorset = (1:12), ylimmin = -1, ylimmax = 1, ..., fill = NA)
}
\arguments{
\item{Ra}{A univariate xts... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/getIndex.R
\name{getIndex}
\alias{getIndex}
\title{Group experiments.}
\usage{
getIndex(reg, ids, by.prob = FALSE, by.algo = FALSE, by.repl = FALSE,
by.prob.pars, by.algo.pars, enclos = parent.frame())
}
\arguments{
\item{reg}{[\cod... | /man/getIndex.Rd | no_license | renozao/BatchExperiments | R | false | false | 2,522 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/getIndex.R
\name{getIndex}
\alias{getIndex}
\title{Group experiments.}
\usage{
getIndex(reg, ids, by.prob = FALSE, by.algo = FALSE, by.repl = FALSE,
by.prob.pars, by.algo.pars, enclos = parent.frame())
}
\arguments{
\item{reg}{[\cod... |
# Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComDayCqWcmMobileCoreImplRedirec... | /clients/r/generated/R/ComDayCqWcmMobileCoreImplRedirectRedirectFilterInfo.r | permissive | shinesolutions/swagger-aem-osgi | R | false | false | 6,119 | r | # Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComDayCqWcmMobileCoreImplRedirec... |
library(geosphere)
lon1 = -97.040443
lat1 = 32.897480
lon2 = -97.0150
lat2 = 32.9546
distm(c(lon1, lat1), c(lon2, lat2), fun = distHaversine) * 0.000621371
| /usefulFunctions/distance.between.locations.r | no_license | gsdavis1959/R_examples | R | false | false | 159 | r | library(geosphere)
lon1 = -97.040443
lat1 = 32.897480
lon2 = -97.0150
lat2 = 32.9546
distm(c(lon1, lat1), c(lon2, lat2), fun = distHaversine) * 0.000621371
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convert.r
\name{create.capt}
\alias{create.capt}
\title{Creating capture history object.}
\usage{
create.capt(captures, n.traps = NULL)
}
\arguments{
\item{captures}{A data frame of capture records, see 'Details' for
the correct format.}
\it... | /man/create.capt.Rd | no_license | cmjt/ascr | R | false | true | 2,458 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convert.r
\name{create.capt}
\alias{create.capt}
\title{Creating capture history object.}
\usage{
create.capt(captures, n.traps = NULL)
}
\arguments{
\item{captures}{A data frame of capture records, see 'Details' for
the correct format.}
\it... |
##MDML Final Project
##Shannon Kay, Jaejin Kim, & Jessica Spencer
##December 13, 2019
##Preprocess Chicago Restaurant Data
##Load required packages and data
library(tidyverse)
chicago <- read_csv("../Food_Inspections.csv")
#1. Drop unnecessary columns and rename variables
chicago <- chicago %>%
select(-`DBA Name`... | /Code/preprocess_chicago.R | no_license | Jaejin-Kim/Restaurant_Inspection_Forecasting | R | false | false | 3,243 | r | ##MDML Final Project
##Shannon Kay, Jaejin Kim, & Jessica Spencer
##December 13, 2019
##Preprocess Chicago Restaurant Data
##Load required packages and data
library(tidyverse)
chicago <- read_csv("../Food_Inspections.csv")
#1. Drop unnecessary columns and rename variables
chicago <- chicago %>%
select(-`DBA Name`... |
library(shiny)
# library(ggplot2) # for the diamonds dataset
shinyUI(fluidPage(
title = 'Examples of DataTables',
titlePanel("The Paradox for Accuracy and Kappa Statistic"),
sidebarLayout(
sidebarPanel(
conditionalPanel(
'input.dataset === "Paradox"',
helpText('To see a demonstra... | /ui.r | no_license | firefreezing/developing-data-products | R | false | false | 7,347 | r | library(shiny)
# library(ggplot2) # for the diamonds dataset
shinyUI(fluidPage(
title = 'Examples of DataTables',
titlePanel("The Paradox for Accuracy and Kappa Statistic"),
sidebarLayout(
sidebarPanel(
conditionalPanel(
'input.dataset === "Paradox"',
helpText('To see a demonstra... |
# increase console log limit
options(max.print=1000000)
rm(list = ls())
library(broom)
library(dplyr)
library(foreach)
library(car)
library(Hmisc)
library(survey)
library(mfx)
library(margins)
library(hash)
# library(stargazer)
library(testthat)
library(crayon)
library(readxl)
library(jsonlite)
# library("xlsx") No ... | /EWAS_survey_regression_on_NHANES_1999_2006.R | no_license | menicgiulia/MLFoodProcessing | R | false | false | 25,186 | r | # increase console log limit
options(max.print=1000000)
rm(list = ls())
library(broom)
library(dplyr)
library(foreach)
library(car)
library(Hmisc)
library(survey)
library(mfx)
library(margins)
library(hash)
# library(stargazer)
library(testthat)
library(crayon)
library(readxl)
library(jsonlite)
# library("xlsx") No ... |
## Analysis of SNA
#
#========================================================
# ---
# ## title: Analysis of social network analysis metrics
# author: Marie Gilbertson
# date: "01/03/2019"
#---
# ## Preamble
#
# What this code does:
# 1. Calculates ranked correlation for node-level SNA metrics between complete and... | /Analysis_of_SNA.R | no_license | mjones029/Telemetry_Network_Simulations | R | false | false | 6,677 | r | ## Analysis of SNA
#
#========================================================
# ---
# ## title: Analysis of social network analysis metrics
# author: Marie Gilbertson
# date: "01/03/2019"
#---
# ## Preamble
#
# What this code does:
# 1. Calculates ranked correlation for node-level SNA metrics between complete and... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.