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 |
|---|---|---|---|---|---|---|---|---|---|
library(acebayes)
### Name: assess
### Title: Compares two designs under the approximate expected utility
### Aliases: assess assess.ace assess.pace
### ** Examples
## This example involves finding a Bayesian D-optimal design for a
## compartmental model with n = 18 runs. There are three parameters.
## Two parame... | /data/genthat_extracted_code/acebayes/examples/assess.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,083 | r | library(acebayes)
### Name: assess
### Title: Compares two designs under the approximate expected utility
### Aliases: assess assess.ace assess.pace
### ** Examples
## This example involves finding a Bayesian D-optimal design for a
## compartmental model with n = 18 runs. There are three parameters.
## Two parame... |
#' Detrend NDVI Array or Vector Data.
#'
#' This function wraps the \code{pracma} library function \code{detrend} for detrending data
#' in three dimensional arrays.
#'
#' @param data The numeric array or vector of data to be detrended.
#' @param years The range of years to detrend.
#'
#' @return Array or vector obj... | /scripts/NDVIDetrender.R | no_license | ThomasGartman/AVHRR_DataAnalysis | R | false | false | 2,461 | r | #' Detrend NDVI Array or Vector Data.
#'
#' This function wraps the \code{pracma} library function \code{detrend} for detrending data
#' in three dimensional arrays.
#'
#' @param data The numeric array or vector of data to be detrended.
#' @param years The range of years to detrend.
#'
#' @return Array or vector obj... |
## Construct ClusterExperiment with multiple named assays
suppressMessages(multi_se <- SummarizedExperiment(assays = list(counts = simCount,
logcounts = log1p(simCount))))
suppressMessages(multi_cc <- ClusterExperiment(multi_se, trueCluster))
suppressMessages(ccTrue <- Clu... | /longtests/testthat/test-rsec.R | no_license | epurdom/clusterExperiment | R | false | false | 12,755 | r | ## Construct ClusterExperiment with multiple named assays
suppressMessages(multi_se <- SummarizedExperiment(assays = list(counts = simCount,
logcounts = log1p(simCount))))
suppressMessages(multi_cc <- ClusterExperiment(multi_se, trueCluster))
suppressMessages(ccTrue <- Clu... |
library(ggplot2)
library(scales)
library(reshape2)
library(lubridate)
library(data.table)
library(dplyr)
library(gridExtra)
filename <- file.choose()
setwd(dirname(filename))
## read in raw data file
data <- read.table(filename, stringsAsFactors = FALSE)
## date, start and stop time
datestart <- as.POSIXct(strptim... | /envPlotter.R | no_license | jaspwn/CircadianTools | R | false | false | 1,964 | r | library(ggplot2)
library(scales)
library(reshape2)
library(lubridate)
library(data.table)
library(dplyr)
library(gridExtra)
filename <- file.choose()
setwd(dirname(filename))
## read in raw data file
data <- read.table(filename, stringsAsFactors = FALSE)
## date, start and stop time
datestart <- as.POSIXct(strptim... |
#' Render a reprex
#'
#' @description `reprex_addin()` opens an [RStudio
#' gadget](https://shiny.rstudio.com/articles/gadgets.html) and
#' [addin](http://rstudio.github.io/rstudioaddins/) that allows you to say
#' where the reprex source is (clipboard? current selection? active file?
#' other file?) and to con... | /R/reprex-addin.R | permissive | yonicd/reprex | R | false | false | 4,291 | r | #' Render a reprex
#'
#' @description `reprex_addin()` opens an [RStudio
#' gadget](https://shiny.rstudio.com/articles/gadgets.html) and
#' [addin](http://rstudio.github.io/rstudioaddins/) that allows you to say
#' where the reprex source is (clipboard? current selection? active file?
#' other file?) and to con... |
# Load the data
tui <- read.csv('../data/FSE-TUI1_X.csv')
colnames(tui)
# plot Closing Price
plot(tui$Close, type='l', main='TUI Close', lwd=1, col='red', ylab='closing')
# plot log
plot(log(tui$Close), type='l', main='TUI Close', lwd=1, col='red', ylab='closing')
# plot diff of the Log of the closing price
plot(di... | /18_R_AWSML/R/timeseries_exploration.R | no_license | alexisperrier/gads | R | false | false | 5,208 | r |
# Load the data
tui <- read.csv('../data/FSE-TUI1_X.csv')
colnames(tui)
# plot Closing Price
plot(tui$Close, type='l', main='TUI Close', lwd=1, col='red', ylab='closing')
# plot log
plot(log(tui$Close), type='l', main='TUI Close', lwd=1, col='red', ylab='closing')
# plot diff of the Log of the closing price
plot(di... |
numPerPatch192000 <- c(2473,2527)
| /NatureEE-data-archive/Run203121/JAFSdata/JAFSnumPerPatch192000.R | no_license | flaxmans/NatureEE2017 | R | false | false | 34 | r | numPerPatch192000 <- c(2473,2527)
|
library(tsDyn)
### Name: NNET
### Title: Neural Network nonlinear autoregressive model
### Aliases: NNET nnetTs
### Keywords: ts
### ** Examples
#fit a Neural Network model
mod.nnet <- nnetTs(log(lynx), m=2, size=3)
mod.nnet
| /data/genthat_extracted_code/tsDyn/examples/nnet.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 232 | r | library(tsDyn)
### Name: NNET
### Title: Neural Network nonlinear autoregressive model
### Aliases: NNET nnetTs
### Keywords: ts
### ** Examples
#fit a Neural Network model
mod.nnet <- nnetTs(log(lynx), m=2, size=3)
mod.nnet
|
############### SYNOPSIS ###################
### AIM: Make hypothalamus plot: Campbell+Mousebrain + BMI geneset cell-type enrichment
### OUTPUT:
# ....
### REMARKS:
# ....
### REFERENCE:
# ======================================================================= #
# ================================ SETUP ==========... | /src/publication/fig-celltype_priori_hypo_mb_campbell.R | no_license | Tobi1kenobi/msc-thesis-2019 | R | false | false | 17,326 | r | ############### SYNOPSIS ###################
### AIM: Make hypothalamus plot: Campbell+Mousebrain + BMI geneset cell-type enrichment
### OUTPUT:
# ....
### REMARKS:
# ....
### REFERENCE:
# ======================================================================= #
# ================================ SETUP ==========... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/networkAttr.R
\docType{data}
\name{networkAttrDF}
\alias{networkAttrDF}
\title{Network Attributes Data}
\format{An object of class \code{data.frame} with 10 rows and 4 columns.}
\usage{
networkAttrDF
}
\description{
A data set cont... | /man/networkAttrDF.Rd | no_license | ktargows/neatmaps | R | false | true | 757 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/networkAttr.R
\docType{data}
\name{networkAttrDF}
\alias{networkAttrDF}
\title{Network Attributes Data}
\format{An object of class \code{data.frame} with 10 rows and 4 columns.}
\usage{
networkAttrDF
}
\description{
A data set cont... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_mhc_1_haplotypes.R
\name{get_mhc_1_haplotypes}
\alias{get_mhc_1_haplotypes}
\title{Get all the MHC-I haplotypes}
\usage{
get_mhc_1_haplotypes(
folder_name = get_default_mhcnuggets_folder(),
mhcnuggets_url = get_mhcnuggets_url()
)
}
\a... | /man/get_mhc_1_haplotypes.Rd | no_license | cran/mhcnuggetsr | R | false | true | 845 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_mhc_1_haplotypes.R
\name{get_mhc_1_haplotypes}
\alias{get_mhc_1_haplotypes}
\title{Get all the MHC-I haplotypes}
\usage{
get_mhc_1_haplotypes(
folder_name = get_default_mhcnuggets_folder(),
mhcnuggets_url = get_mhcnuggets_url()
)
}
\a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deprecated.R
\name{gg.axis.limits}
\alias{gg.axis.limits}
\title{Calculate axis limits}
\usage{
gg.axis.limits(gg)
}
\arguments{
\item{gg}{the ggplot object}
}
\value{
a list containing inforation about limits for X and Y.
}
\description{
Det... | /man/gg.axis.limits.Rd | no_license | ying14/yingtools2 | R | false | true | 450 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deprecated.R
\name{gg.axis.limits}
\alias{gg.axis.limits}
\title{Calculate axis limits}
\usage{
gg.axis.limits(gg)
}
\arguments{
\item{gg}{the ggplot object}
}
\value{
a list containing inforation about limits for X and Y.
}
\description{
Det... |
# simulate covariate data
n <- 100
sdx <- 10
pop_taux <- 1 / (sdx * sdx)
sdobs <- 8
taux <- 1 / (sdobs * sdobs)
truex <- rnorm(n, 0, sdx)
errorx <- rnorm(n, 0, sdobs)
obsx <- truex + errorx
# simulate response data
alpha <- 0
beta <- 10
sdy <- 10
tauy <- 1 / (sdy * sdy)
errory <- rnorm(n, 0, sdy)
obsy <- alpha + beta... | /jags_xerror.R | no_license | ibreckhe/MORA_microclimate | R | false | false | 2,754 | r | # simulate covariate data
n <- 100
sdx <- 10
pop_taux <- 1 / (sdx * sdx)
sdobs <- 8
taux <- 1 / (sdobs * sdobs)
truex <- rnorm(n, 0, sdx)
errorx <- rnorm(n, 0, sdobs)
obsx <- truex + errorx
# simulate response data
alpha <- 0
beta <- 10
sdy <- 10
tauy <- 1 / (sdy * sdy)
errory <- rnorm(n, 0, sdy)
obsy <- alpha + beta... |
# Estimating density of urchins using a transect survey.
# 2015-02-21 CJS update ggplot; plyr; split; as.is
# This dataset consists of the results from a series
# of transects conducted perpendicular to the shore.
# As divers swam along the transect, they counted
# the number of red sea urchins in 1 m**2 quadrats.
... | /Sampling_Regression_Experiment_Design_and_Analysis/urchin.r | no_license | burakbayramli/books | R | false | false | 3,187 | r | # Estimating density of urchins using a transect survey.
# 2015-02-21 CJS update ggplot; plyr; split; as.is
# This dataset consists of the results from a series
# of transects conducted perpendicular to the shore.
# As divers swam along the transect, they counted
# the number of red sea urchins in 1 m**2 quadrats.
... |
pollutantmean <- function(directory, pollutant, id = 1:332){
# create empty master data frame to store all values
master_frame <- data.frame()
#create a list of all of the file names in the directory
location_files <- list.files(directory, full.names = TRUE)
#step through each location and ad... | /pollutantmean.R | no_license | c0rn06/datasciencecoursera | R | false | false | 898 | r | pollutantmean <- function(directory, pollutant, id = 1:332){
# create empty master data frame to store all values
master_frame <- data.frame()
#create a list of all of the file names in the directory
location_files <- list.files(directory, full.names = TRUE)
#step through each location and ad... |
# 1
1 / 3
# 2
x <- c(0, 1, 2, 3, 4, 5, 6, 7)
P.x <- c(0.200, 0.239, 0.245, 0.182, 0.100, 0.030, 0.003, 0.001)
ev <- sum(x * P.x)
var <- sum(P.x * (x - ev) ^ 2)
sd <- sqrt(var)
avg <- round(sum(x * P.x), digits = 3)
var <- round(sum(P.x * (x - avg) ^ 2), digits = 3)
sd <- round(sqrt(var), digits = 2)
mode = x[P.x =... | /Classes/MSDS401/Final/final.R | no_license | bmoretz/R-Playground | R | false | false | 3,007 | r | # 1
1 / 3
# 2
x <- c(0, 1, 2, 3, 4, 5, 6, 7)
P.x <- c(0.200, 0.239, 0.245, 0.182, 0.100, 0.030, 0.003, 0.001)
ev <- sum(x * P.x)
var <- sum(P.x * (x - ev) ^ 2)
sd <- sqrt(var)
avg <- round(sum(x * P.x), digits = 3)
var <- round(sum(P.x * (x - avg) ^ 2), digits = 3)
sd <- round(sqrt(var), digits = 2)
mode = x[P.x =... |
library(spotifyr)
library(tidyverse)
library(ggridges)
library(lubridate)
library(purrr)
library(ggplot2)
library(magick)
library(magrittr)
library(stringr)
# Pull audio features using spotifyr package
Sys.setenv(SPOTIFY_CLIENT_ID = 'INSERT USERNAME HERE')
Sys.setenv(SPOTIFY_CLIENT_SECRET = 'INSERT PASSWORD HERE')
acc... | /Gorillaz.R | no_license | Bashkeel/ggGif | R | false | false | 2,441 | r | library(spotifyr)
library(tidyverse)
library(ggridges)
library(lubridate)
library(purrr)
library(ggplot2)
library(magick)
library(magrittr)
library(stringr)
# Pull audio features using spotifyr package
Sys.setenv(SPOTIFY_CLIENT_ID = 'INSERT USERNAME HERE')
Sys.setenv(SPOTIFY_CLIENT_SECRET = 'INSERT PASSWORD HERE')
acc... |
require(tidyverse)
require(broom)
# data
dat <- readxl::read_xlsx("monthly_in_situ_co2_mlo_MOD.xlsx")
data <- dat %>%
rename("date1" = "Date...3", "date2" = "Date...4", "szn_adj" = "seasonally_adjusted",
"szn_adj_fit" = "seasonally_adjusted_fit", "CO2_fill" = "CO2_filled",
"szn_adj_fill" = ... | /datawrangle.R | no_license | e-sang/usesoCO2 | R | false | false | 580 | r | require(tidyverse)
require(broom)
# data
dat <- readxl::read_xlsx("monthly_in_situ_co2_mlo_MOD.xlsx")
data <- dat %>%
rename("date1" = "Date...3", "date2" = "Date...4", "szn_adj" = "seasonally_adjusted",
"szn_adj_fit" = "seasonally_adjusted_fit", "CO2_fill" = "CO2_filled",
"szn_adj_fill" = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/v.R
\name{v}
\alias{v}
\title{v}
\usage{
v(x)
}
\arguments{
\item{x}{voro++-input}
}
\description{
v
}
| /man/v.Rd | permissive | nevrome/voro | R | false | true | 181 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/v.R
\name{v}
\alias{v}
\title{v}
\usage{
v(x)
}
\arguments{
\item{x}{voro++-input}
}
\description{
v
}
|
#Caret PLSDA
################################################################################
#Set up
################################################################################
library(spectrolab)
library(caret)
library(dplyr)
library(mlbench)
library(corrplot)
library(matrixStats)
library(naniar)
library(rlist)... | /caret_plsda_sploc_nohyb.R | no_license | LanceStasinski/Dryas2 | R | false | false | 11,678 | r | #Caret PLSDA
################################################################################
#Set up
################################################################################
library(spectrolab)
library(caret)
library(dplyr)
library(mlbench)
library(corrplot)
library(matrixStats)
library(naniar)
library(rlist)... |
# unlink("/Library/Frameworks/R.framework/Versions/3.2/Resources/library/PFDA", recursive = TRUE)
#' Releasing 4 Differential Private RKHS smoothing means of a simulated dataset
#'
#' This function create 4 DP RKHS smoothing means from an existing data set
#' with known eigenvalues and eigenvectors
#' @param alpha,beta... | /R/MDP.Sim.R | no_license | ardeeshany/PFDA | R | false | false | 1,981 | r | # unlink("/Library/Frameworks/R.framework/Versions/3.2/Resources/library/PFDA", recursive = TRUE)
#' Releasing 4 Differential Private RKHS smoothing means of a simulated dataset
#'
#' This function create 4 DP RKHS smoothing means from an existing data set
#' with known eigenvalues and eigenvectors
#' @param alpha,beta... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_doc.R
\docType{data}
\name{pf3}
\alias{pf3}
\title{PARAFAC model, see vignette, non-negative constraints, normalised, outliers removed}
\format{
list of parafacs
}
\usage{
pf3
}
\description{
PARAFAC model, see vignette, non-negative con... | /man/pf3.Rd | no_license | MatthiasPucher/staRdom | R | false | true | 380 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_doc.R
\docType{data}
\name{pf3}
\alias{pf3}
\title{PARAFAC model, see vignette, non-negative constraints, normalised, outliers removed}
\format{
list of parafacs
}
\usage{
pf3
}
\description{
PARAFAC model, see vignette, non-negative con... |
# load library
source("src/data.analyse/svm.regression.R")
source("src/utils/common.R")
source("src/utils/file.utils.R")
# get cluster of data
get.cluster <- function(data, cluster){
ind <- which(data$clazz == cluster)
get.data <- data[ind, ]
return (get.data)
}
library(caret)
cluster <- 1
data.train <- get.clu... | /src/rainfall.regression/svm.rainfall.regression_gmm_cluster.R | no_license | tormlee/rainfalls-v2 | R | false | false | 4,522 | r | # load library
source("src/data.analyse/svm.regression.R")
source("src/utils/common.R")
source("src/utils/file.utils.R")
# get cluster of data
get.cluster <- function(data, cluster){
ind <- which(data$clazz == cluster)
get.data <- data[ind, ]
return (get.data)
}
library(caret)
cluster <- 1
data.train <- get.clu... |
# The MIT License (MIT)
# Copyright (c) 2017 Louise AC Millard, MRC Integrative Epidemiology Unit, University of Bristol
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, i... | /WAS/binaryLogisticRegression.r | permissive | MRCIEU/PHESANT | R | false | false | 4,469 | r | # The MIT License (MIT)
# Copyright (c) 2017 Louise AC Millard, MRC Integrative Epidemiology Unit, University of Bristol
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, i... |
if (!require('pacman')) install.packages('pacman'); library('pacman')
pacman::p_load(tidyverse, ISOweek, neonstore)
source("./scripts/resolve_taxonomy.R")
# neonstore::neon_dir()
Sys.setenv("NEONSTORE_HOME" = "/Users/ryanmcclure/Documents/let-it-beetle/neonstore")
Sys.setenv("NEONSTORE_DB" = "/Users/ryanmcclure/Docu... | /scripts/download_neon_get_target.R | no_license | eco4cast-class-VT/let-it-beetle | R | false | false | 1,923 | r |
if (!require('pacman')) install.packages('pacman'); library('pacman')
pacman::p_load(tidyverse, ISOweek, neonstore)
source("./scripts/resolve_taxonomy.R")
# neonstore::neon_dir()
Sys.setenv("NEONSTORE_HOME" = "/Users/ryanmcclure/Documents/let-it-beetle/neonstore")
Sys.setenv("NEONSTORE_DB" = "/Users/ryanmcclure/Docu... |
\alias{gtkTextViewNew}
\name{gtkTextViewNew}
\title{gtkTextViewNew}
\description{Creates a new \code{\link{GtkTextView}}. If you don't call \code{\link{gtkTextViewSetBuffer}}
before using the text view, an empty default buffer will be created
for you. Get the buffer with \code{\link{gtkTextViewGetBuffer}}. If you want
... | /man/gtkTextViewNew.Rd | no_license | cran/RGtk2.10 | R | false | false | 572 | rd | \alias{gtkTextViewNew}
\name{gtkTextViewNew}
\title{gtkTextViewNew}
\description{Creates a new \code{\link{GtkTextView}}. If you don't call \code{\link{gtkTextViewSetBuffer}}
before using the text view, an empty default buffer will be created
for you. Get the buffer with \code{\link{gtkTextViewGetBuffer}}. If you want
... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{plot.cumulative_lexical_classification}
\alias{plot.cumulative_lexical_classification}
\title{Plots a cumulative_lexical_classification Object}
\usage{
\method{plot}{cumulative_lexical_classification}(x, ...)
}
\arguments{
\item{x}{The cumulative_lexical_classi... | /man/plot.cumulative_lexical_classification.Rd | no_license | joffrevillanueva/qdap | R | false | false | 431 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{plot.cumulative_lexical_classification}
\alias{plot.cumulative_lexical_classification}
\title{Plots a cumulative_lexical_classification Object}
\usage{
\method{plot}{cumulative_lexical_classification}(x, ...)
}
\arguments{
\item{x}{The cumulative_lexical_classi... |
rm(list=ls())
source(paste0(here::here(), "/0-config.R"))
source(paste0(here::here(), "/0-project-functions/0_clean_study_data_functions.R"))
require(ggmap)
require(cowplot)
#Figure 3
p_severecomp <- readRDS(paste0(BV_dir,"/results/fig-severe-outcome-comps.RDS"))[[1]]
p_ageRR <- readRDS(paste0(BV_dir,"/results/fig... | /5-visualizations/risk factors/rf_manuscript_figure_grids.R | no_license | child-growth/ki-longitudinal-growth | R | false | false | 4,881 | r |
rm(list=ls())
source(paste0(here::here(), "/0-config.R"))
source(paste0(here::here(), "/0-project-functions/0_clean_study_data_functions.R"))
require(ggmap)
require(cowplot)
#Figure 3
p_severecomp <- readRDS(paste0(BV_dir,"/results/fig-severe-outcome-comps.RDS"))[[1]]
p_ageRR <- readRDS(paste0(BV_dir,"/results/fig... |
read.tfl <- function (file)
{
tmp <- read.delim(auto.gzfile(file), as.is=TRUE, comment.char="")
vars <- colnames(tmp)
if (!("f" %in% vars)) stop("required column 'f' missing from .tfl file ", file)
f <- tmp$f
k <- if ("k" %in% vars) tmp$k else 1:nrow(tmp)
if (!is.integer(f) || any(f < 0))
stop("type... | /zipfR/R/read_tfl.R | no_license | ingted/R-Examples | R | false | false | 559 | r | read.tfl <- function (file)
{
tmp <- read.delim(auto.gzfile(file), as.is=TRUE, comment.char="")
vars <- colnames(tmp)
if (!("f" %in% vars)) stop("required column 'f' missing from .tfl file ", file)
f <- tmp$f
k <- if ("k" %in% vars) tmp$k else 1:nrow(tmp)
if (!is.integer(f) || any(f < 0))
stop("type... |
with(a8f760555fca349d797c49b2ada5112d1, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';rm(list=ls())}); | /80bb2a25-ac5d-47d0-abfc-b3f3811f0936/R/Temp/a1t8VaplC4Ruf.R | no_license | ayanmanna8/test | R | false | false | 212 | r | with(a8f760555fca349d797c49b2ada5112d1, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';rm(list=ls())}); |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/places & rays fcns.R
\name{initial.hwy.subset}
\alias{initial.hwy.subset}
\title{initial.hwy.subset}
\usage{
initial.hwy.subset(place, hwy.sf, hwy.types = NULL, buffer.meters = 300, ...)
}
\description{
Sets up road objects for ray measures. ... | /man/initial.hwy.subset.Rd | no_license | kmcd39/divFcns | R | false | true | 517 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/places & rays fcns.R
\name{initial.hwy.subset}
\alias{initial.hwy.subset}
\title{initial.hwy.subset}
\usage{
initial.hwy.subset(place, hwy.sf, hwy.types = NULL, buffer.meters = 300, ...)
}
\description{
Sets up road objects for ray measures. ... |
/Programs/4_2_script_enterotype_embl.R | no_license | AlQatrum/ProjetFilRouge | R | false | false | 10,153 | r | ||
## Below function calculates and stores inverse of (an invertible) matrix. If the inverse has
## been calculated previously, function returns the cached value.
## If not, function calculates and caches the inverse.
## Function defines the following actions, to be called in later function:
## Set matrix argument... | /cachematrix.R | no_license | dyrl/ProgrammingAssignment2 | R | false | false | 1,714 | r | ## Below function calculates and stores inverse of (an invertible) matrix. If the inverse has
## been calculated previously, function returns the cached value.
## If not, function calculates and caches the inverse.
## Function defines the following actions, to be called in later function:
## Set matrix argument... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-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/1615766319-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.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
###
### This is step6_associate.metabolites.with.phenotype.R, part of the Nature Protocol:
### 'A computational framework for conducting a three-pronged association study
### to integrate high-throughput ‘-omics’ datasets for the identification of
### potential mechanistic links'.
### 26/7-2018
###
###
### Step 6 - L... | /script/step6_associate.metabolites.with.phenotype.R | no_license | pipeuser/clinical-micro-meta-integration | R | false | false | 2,914 | r | ###
### This is step6_associate.metabolites.with.phenotype.R, part of the Nature Protocol:
### 'A computational framework for conducting a three-pronged association study
### to integrate high-throughput ‘-omics’ datasets for the identification of
### potential mechanistic links'.
### 26/7-2018
###
###
### Step 6 - L... |
#utf-8
# A multinomial response recoded to use clogit
# The revised data set has one copy per possible outcome level, with new
# variable tocc = target occupation for this copy, and case = whether
# that is the actual outcome for each subject.
# See the reference below for the data.
setwd("~/rwd/m04")
rm(list = ls()... | /code.R | no_license | jingjuanwang/R_project | R | false | false | 4,819 | r | #utf-8
# A multinomial response recoded to use clogit
# The revised data set has one copy per possible outcome level, with new
# variable tocc = target occupation for this copy, and case = whether
# that is the actual outcome for each subject.
# See the reference below for the data.
setwd("~/rwd/m04")
rm(list = ls()... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/totgoals.R
\name{totgoals}
\alias{totgoals}
\title{Return all instances of a team being involved in a game with n goals}
\usage{
totgoals(df = NULL, N = NULL, teamname = NULL)
}
\arguments{
\item{df}{The results dataframe}
\item{N}{Number of... | /man/totgoals.Rd | no_license | nturaga/engsoccerdata | R | false | true | 564 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/totgoals.R
\name{totgoals}
\alias{totgoals}
\title{Return all instances of a team being involved in a game with n goals}
\usage{
totgoals(df = NULL, N = NULL, teamname = NULL)
}
\arguments{
\item{df}{The results dataframe}
\item{N}{Number of... |
rm(list=ls())
library(ggplot2)
library(devtools)
library(plyr)
library(car)
library(gridExtra)
#source("./R/publication figures/theme.R")
source_url("https://raw.github.com/low-decarie/Useful-R-functions/master/ggplot2_themes/theme.R")
theme_set(theme_minimal())
load(file="./Outputs/fitted readings.RData")
readings<-r... | /Low-Decarie_2013_PRSB/R/publication figures/Figure 2.R | no_license | low-decarie/Data-and-scripts-associated-with-publications | R | false | false | 1,877 | r | rm(list=ls())
library(ggplot2)
library(devtools)
library(plyr)
library(car)
library(gridExtra)
#source("./R/publication figures/theme.R")
source_url("https://raw.github.com/low-decarie/Useful-R-functions/master/ggplot2_themes/theme.R")
theme_set(theme_minimal())
load(file="./Outputs/fitted readings.RData")
readings<-r... |
\name{lrData1}
\docType{data}
\alias{lrData1}
\title{Result of linear regresssion on Data1}
\description{Result of linear regression on dataset with 1 sp}
\usage{data(lrData1)}
\format{A list containing 12 objects.}
\keyword{datasets}
| /man/lrData1.Rd | no_license | microsud/gLVInterNetworks | R | false | false | 235 | rd | \name{lrData1}
\docType{data}
\alias{lrData1}
\title{Result of linear regresssion on Data1}
\description{Result of linear regression on dataset with 1 sp}
\usage{data(lrData1)}
\format{A list containing 12 objects.}
\keyword{datasets}
|
#' Get metadata for a Discogs release
#'
#' Return metadata for a release (a particular physical or digital object
#' released by one or more artists) listed on Discogs.
#'
#' @param release_id The ID of the Release.
#' @param mkt_currency Currency for marketplace data. Defaults to GBP (must be one of:
#' "GBP", "USD"... | /R/release.R | permissive | ewenme/discogger | R | false | false | 2,943 | r | #' Get metadata for a Discogs release
#'
#' Return metadata for a release (a particular physical or digital object
#' released by one or more artists) listed on Discogs.
#'
#' @param release_id The ID of the Release.
#' @param mkt_currency Currency for marketplace data. Defaults to GBP (must be one of:
#' "GBP", "USD"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normal_assumption.R
\name{jarque_bera}
\alias{jarque_bera}
\title{Jarque-Bera-Test}
\usage{
jarque_bera(X)
}
\arguments{
\item{X}{a single numeric vector of data values.}
}
\value{
An htest object is returned. The critical value and the p-val... | /man/jarque_bera.Rd | no_license | Kale-S/olsdiagnosticR | R | false | true | 1,181 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normal_assumption.R
\name{jarque_bera}
\alias{jarque_bera}
\title{Jarque-Bera-Test}
\usage{
jarque_bera(X)
}
\arguments{
\item{X}{a single numeric vector of data values.}
}
\value{
An htest object is returned. The critical value and the p-val... |
install.packages("HH")
install.packages("rgl")
install.packages("lmtest")
install.packages("leaps")
install.packages("ggplot2")
install.packages("car")
install.packages("sos")
install.packages("outliers")
install.packages("DAAG",dependencies="Depends")
library(car)
library(DAAG)
library(outliers)
library(leaps)
librar... | /college-graduation-rate/Report-III.R | no_license | mailparag79/data-mining | R | false | false | 4,858 | r | install.packages("HH")
install.packages("rgl")
install.packages("lmtest")
install.packages("leaps")
install.packages("ggplot2")
install.packages("car")
install.packages("sos")
install.packages("outliers")
install.packages("DAAG",dependencies="Depends")
library(car)
library(DAAG)
library(outliers)
library(leaps)
librar... |
#' Copernicus journals format.
#'
#' Format for creating submissions to Copernicus journals.
#'
#' @inheritParams rmarkdown::pdf_document
#' @param ... Additional arguments to [rmarkdown::pdf_document()]. **Note**: `extra_dependencies` are not
#' allowed as Copernicus does not support additional packages included... | /R/copernicus_article.R | no_license | cran/rticles | R | false | false | 6,586 | r | #' Copernicus journals format.
#'
#' Format for creating submissions to Copernicus journals.
#'
#' @inheritParams rmarkdown::pdf_document
#' @param ... Additional arguments to [rmarkdown::pdf_document()]. **Note**: `extra_dependencies` are not
#' allowed as Copernicus does not support additional packages included... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/registration_stats_enrichment.R
\name{registration_stats_enrichment}
\alias{registration_stats_enrichment}
\title{Spatial registration: compute enrichment statistics}
\usage{
registration_stats_enrichment(
sce_pseudo,
block_cor,
covars ... | /man/registration_stats_enrichment.Rd | no_license | LieberInstitute/spatialLIBD | R | false | true | 2,524 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/registration_stats_enrichment.R
\name{registration_stats_enrichment}
\alias{registration_stats_enrichment}
\title{Spatial registration: compute enrichment statistics}
\usage{
registration_stats_enrichment(
sce_pseudo,
block_cor,
covars ... |
#' Theme with nothing other than a background color
#'
#' Theme that removes all non-geom elements (lines, text, etc),
#' This theme is when only the geometric objects are desired.
#'
#' @param base_size Base font size.
#' @param base_family Ignored, kept for consistency with \code{theme}.
#' @param fill Background col... | /R/theme-solid.R | no_license | ctguxp/ggthemes | R | false | false | 869 | r | #' Theme with nothing other than a background color
#'
#' Theme that removes all non-geom elements (lines, text, etc),
#' This theme is when only the geometric objects are desired.
#'
#' @param base_size Base font size.
#' @param base_family Ignored, kept for consistency with \code{theme}.
#' @param fill Background col... |
is_installed <- function(mypkg) is.element(mypkg, installed.packages()[,1])
load_or_install<-function(package_names)
{
for(package_name in package_names)
{
if(!is_installed(package_name))
{
install.packages(package_name,repos="http://lib.stat.cmu.edu/R/CRAN")
}
library(package_name,... | /SrcNB.r | no_license | Aashu3739/PJS | R | false | false | 26,818 | r | is_installed <- function(mypkg) is.element(mypkg, installed.packages()[,1])
load_or_install<-function(package_names)
{
for(package_name in package_names)
{
if(!is_installed(package_name))
{
install.packages(package_name,repos="http://lib.stat.cmu.edu/R/CRAN")
}
library(package_name,... |
E1 <- function (x1, x2) 7 * x1 + 11 * x2 + -77;
E2 <- function (x1, x2) 10 * x1 + 8 * x2 + -80;
E3 <- function (x1, x2) 1 * x1 + 0 * x2 + -9;
E4 <- function (x1, x2) 0 * x1 + 1 * x2 + -6;
E5 <- function (x1, x2) -150 * x1 + -175 * x2 + 0;
f <- list(E1, E2, E3, E4, E5);
# a = c(7,11,1,0,0,0,0,77);
# b = c(10,... | /R/simplex.r | no_license | chjuruena/simplex150 | R | false | false | 5,096 | r | E1 <- function (x1, x2) 7 * x1 + 11 * x2 + -77;
E2 <- function (x1, x2) 10 * x1 + 8 * x2 + -80;
E3 <- function (x1, x2) 1 * x1 + 0 * x2 + -9;
E4 <- function (x1, x2) 0 * x1 + 1 * x2 + -6;
E5 <- function (x1, x2) -150 * x1 + -175 * x2 + 0;
f <- list(E1, E2, E3, E4, E5);
# a = c(7,11,1,0,0,0,0,77);
# b = c(10,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boot_ci.R
\name{boot_ci}
\alias{boot_ci}
\title{Calculate bootstrap confidence intervals from a cutpointr object}
\usage{
boot_ci(x, variable, in_bag = TRUE, alpha = 0.05)
}
\arguments{
\item{x}{(character) The numeric independent (predictor)... | /man/boot_ci.Rd | no_license | muschellij2/cutpointr | R | false | true | 1,789 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boot_ci.R
\name{boot_ci}
\alias{boot_ci}
\title{Calculate bootstrap confidence intervals from a cutpointr object}
\usage{
boot_ci(x, variable, in_bag = TRUE, alpha = 0.05)
}
\arguments{
\item{x}{(character) The numeric independent (predictor)... |
#!/usr/bin/env R
library(ggplot2)
args <- commandArgs(trailingOnly=T)
data <- read.table(args[1], header=F, na.strings = "NA", comment.char='')
colnames(data) <- c("reads","duplicates")
# print scatter plot to file
pdf("Duplicates.pdf")
p=ggplot(data, aes(reads, duplicates, color = reads)) +
geom_point(shape = 1... | /bin/scatterPlot.R | permissive | hodamaz/wgbs | R | false | false | 861 | r | #!/usr/bin/env R
library(ggplot2)
args <- commandArgs(trailingOnly=T)
data <- read.table(args[1], header=F, na.strings = "NA", comment.char='')
colnames(data) <- c("reads","duplicates")
# print scatter plot to file
pdf("Duplicates.pdf")
p=ggplot(data, aes(reads, duplicates, color = reads)) +
geom_point(shape = 1... |
/DCA Tutorial - R Code.R | no_license | yadevi/ML_Based_Prediction_Clinical_Outcomes_CED | R | false | false | 10,920 | r | ||
#' @param role For model terms created by this step, what analysis
#' role should they be assigned?. By default, the function assumes
#' that the new columns created by the original variables will be
#' used as predictors in a model.
| /man-roxygen/args-role_predictors.R | permissive | tidymodels/textrecipes | R | false | false | 237 | r | #' @param role For model terms created by this step, what analysis
#' role should they be assigned?. By default, the function assumes
#' that the new columns created by the original variables will be
#' used as predictors in a model.
|
# `dplyr` package to convert `data.frame` into `tibble`
library(dplyr) #load `dplyr` package
mtcars_dplyr <- tbl_df(data = mtcars) #change the class of `mtcars` into `tibble`
| /dplyr.R | no_license | puneeth019/playground | R | false | false | 177 | r | # `dplyr` package to convert `data.frame` into `tibble`
library(dplyr) #load `dplyr` package
mtcars_dplyr <- tbl_df(data = mtcars) #change the class of `mtcars` into `tibble`
|
library(dplyr)
library(stringr)
cname <- c(
"CHROM",
"POS",
"ID",
"REF",
"ALT",
"QUAL",
"FILTER",
"INFO",
"FORMAT",
"BP-10",
"BP-11",
"BP-12",
"BP-13",
"BP-14",
"BP-15",
"BP-16",
"BP-17",
"BP-18",
"BP-19",
"BP-1",
"BP-20",
"BP-21",
"BP-22",
"BP-23",
"BP-24",
"BP-25",
"BP-26",
"BP-27",
"BP-... | /trees_fst/shared_polymorphism_allpops.R | no_license | nreid/het_grand | R | false | false | 11,347 | r | library(dplyr)
library(stringr)
cname <- c(
"CHROM",
"POS",
"ID",
"REF",
"ALT",
"QUAL",
"FILTER",
"INFO",
"FORMAT",
"BP-10",
"BP-11",
"BP-12",
"BP-13",
"BP-14",
"BP-15",
"BP-16",
"BP-17",
"BP-18",
"BP-19",
"BP-1",
"BP-20",
"BP-21",
"BP-22",
"BP-23",
"BP-24",
"BP-25",
"BP-26",
"BP-27",
"BP-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysis.R
\name{make_all}
\alias{make_all}
\title{Calculate hardness and discrimination for all questions}
\usage{
make_all(d_wide)
}
\arguments{
\item{d_wide}{wide-format marks df with each question in one column}
}
\value{
data frame of qu... | /man/make_all.Rd | permissive | nxskok/examstats | R | false | true | 483 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysis.R
\name{make_all}
\alias{make_all}
\title{Calculate hardness and discrimination for all questions}
\usage{
make_all(d_wide)
}
\arguments{
\item{d_wide}{wide-format marks df with each question in one column}
}
\value{
data frame of qu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metaX.R
\name{importDataFromQI}
\alias{importDataFromQI}
\title{importDataFromQI}
\usage{
importDataFromQI(para, file, mode = 1, fw = NULL, rt = NULL)
}
\arguments{
\item{para}{an object of metaXpara}
\item{file}{a csv file exported from Pro... | /man/importDataFromQI.Rd | no_license | wenbostar/metaX | R | false | true | 715 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metaX.R
\name{importDataFromQI}
\alias{importDataFromQI}
\title{importDataFromQI}
\usage{
importDataFromQI(para, file, mode = 1, fw = NULL, rt = NULL)
}
\arguments{
\item{para}{an object of metaXpara}
\item{file}{a csv file exported from Pro... |
votes <- read.csv("borneo.csv", header=TRUE)
row.names(votes) <- votes$X
votes <- votes[-1]
votes[is.na(votes)] <- 0
m <- as.matrix(votes)
t <- as.table(t(m))
df <- as.data.frame(t)
df <- df[df$Freq != 0,]
df <- df[c(2,1,3)]
colnames(df) <- c("s1", "s2", "samevotes")
View(df)
write.csv(df, "borneoList.csv", row.nam... | /exploratory/survivor.R | no_license | bchugit/Survivor-Project | R | false | false | 332 | r | votes <- read.csv("borneo.csv", header=TRUE)
row.names(votes) <- votes$X
votes <- votes[-1]
votes[is.na(votes)] <- 0
m <- as.matrix(votes)
t <- as.table(t(m))
df <- as.data.frame(t)
df <- df[df$Freq != 0,]
df <- df[c(2,1,3)]
colnames(df) <- c("s1", "s2", "samevotes")
View(df)
write.csv(df, "borneoList.csv", row.nam... |
## This pair of functions works together to cache the inverse of
## of a matrix so that the inverse can be computed one time and
## not repeatedly computed, saving time and resources.
## makeCacheMatrix creates a "special" matrix which can cache its
## inverse. This function is a list of four functions which: set... | /cachematrix.R | no_license | kbremp/ProgrammingAssignment2 | R | false | false | 1,244 | r | ## This pair of functions works together to cache the inverse of
## of a matrix so that the inverse can be computed one time and
## not repeatedly computed, saving time and resources.
## makeCacheMatrix creates a "special" matrix which can cache its
## inverse. This function is a list of four functions which: set... |
li0= list(n = 10000,
dim = 10,
rho = 0.1,
thresh = 0.3,
eps_sd=0.01,
r = 1,
initPopSize = 500,
carryingCapacity = 500,
timeSteps = 10000,
setseed = FALSE,
seed = 10)
li1= list(n = 10000,
dim... | /test.R | no_license | nmrnm/copulas-and-tail-dependence | R | false | false | 2,177 | r | li0= list(n = 10000,
dim = 10,
rho = 0.1,
thresh = 0.3,
eps_sd=0.01,
r = 1,
initPopSize = 500,
carryingCapacity = 500,
timeSteps = 10000,
setseed = FALSE,
seed = 10)
li1= list(n = 10000,
dim... |
\name{summary.indirect}
\alias{summary.indirect}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Summary of a indirect object}
\description{
Provides detailed information about a
\code{indirect} object.
}
\usage{
\method{summary}{indirect}(object, ...)
}
%- maybe also 'usage' for other objects... | /man/summary.indirect.Rd | no_license | cran/SV | R | false | false | 855 | rd | \name{summary.indirect}
\alias{summary.indirect}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Summary of a indirect object}
\description{
Provides detailed information about a
\code{indirect} object.
}
\usage{
\method{summary}{indirect}(object, ...)
}
%- maybe also 'usage' for other objects... |
## reading raw data from working directory
rawData <- read.csv("household_power_consumption.txt", sep = ";", na.string = "?")
## merging date and time columns and chaging to POSIXct
datetime <- as.POSIXct(paste(rawData$Date, rawData$Time), format="%d/%m/%Y %H:%M:%S")
## subsetting by date
daterange <- datetime >= "20... | /plot3.R | no_license | haogenhuang/ExData_Plotting1 | R | false | false | 1,045 | r | ## reading raw data from working directory
rawData <- read.csv("household_power_consumption.txt", sep = ";", na.string = "?")
## merging date and time columns and chaging to POSIXct
datetime <- as.POSIXct(paste(rawData$Date, rawData$Time), format="%d/%m/%Y %H:%M:%S")
## subsetting by date
daterange <- datetime >= "20... |
#-------------------------------------------------------------------------------
# Environment Set-up
#-------------------------------------------------------------------------------
rm(list=ls(all=TRUE))
gc()
options(scipen=999)
# Link DropBox
# library(RStudioAMI)
# linkDropbox()
# install.packages(c("xgboost", "dat... | /Model/xgboost_cv/xgboost_cv_4.R | no_license | vikasnitk85/RossmannStoreSales | R | false | false | 5,813 | r | #-------------------------------------------------------------------------------
# Environment Set-up
#-------------------------------------------------------------------------------
rm(list=ls(all=TRUE))
gc()
options(scipen=999)
# Link DropBox
# library(RStudioAMI)
# linkDropbox()
# install.packages(c("xgboost", "dat... |
#######################################################################################
# Function to compile fracreg outputs into a format for easy plotting
#
# In two steps: First, we compile output for time-invariant variables, and then compile
# output for the time-varying variables
###################... | /R/compile_fracreg_outputs.R | no_license | rebeccamancy/Angelopoulos-et-al-2023-PRSB--Smallpox-Vaccine-Refusal | R | false | false | 6,061 | r | #######################################################################################
# Function to compile fracreg outputs into a format for easy plotting
#
# In two steps: First, we compile output for time-invariant variables, and then compile
# output for the time-varying variables
###################... |
#------------------------------------------------------------------------------------
Parallel_function <- function(tr_dt, ts_dt, params, tune_names){
library(caret)
library(lubridate)
# library(glmnet)
library(dplyr)
# library(kernlab)
# library(liquidSVM)
# library(xgboost)
#---------... | /Code_files/knn/knn_promo3_wolog.R | no_license | kstatju/DMC-2020 | R | false | false | 15,374 | r | #------------------------------------------------------------------------------------
Parallel_function <- function(tr_dt, ts_dt, params, tune_names){
library(caret)
library(lubridate)
# library(glmnet)
library(dplyr)
# library(kernlab)
# library(liquidSVM)
# library(xgboost)
#---------... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 2069
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 2069
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query55_reachqu_1344n/query55_reachqu_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 710 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 2069
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 2069
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... |
#' Fit a causal MARS model
#'
#' @param x matrix of covariates
#' @param tx vector of treatment indicators (0 or 1)
#' @param y vector of response values
#' @param maxterms maximum number of terms to include in the regression basis
#' (e.g. \code{maxterms = 11} means intercept + 5 pairs added)
#' @param nquant... | /APA 31-08-2020/causalMars.R | no_license | dingmu365/APA_grioup7 | R | false | false | 20,019 | r | #' Fit a causal MARS model
#'
#' @param x matrix of covariates
#' @param tx vector of treatment indicators (0 or 1)
#' @param y vector of response values
#' @param maxterms maximum number of terms to include in the regression basis
#' (e.g. \code{maxterms = 11} means intercept + 5 pairs added)
#' @param nquant... |
rm(list=ls())
# Package library installation and data loading ----------------------------------------
library(tidyr)
library(stringr)
library(tidyverse)
library(dplyr)
# install.packages("lubridate")
library(lubridate)
library(ggplot2)
#install.packages("gtable")
#install.packages("gridExtra")
#install.packages("gri... | /00-1_flight_delay_analysis.R | no_license | RubenB1/FlightDelaysDSF | R | false | false | 29,907 | r | rm(list=ls())
# Package library installation and data loading ----------------------------------------
library(tidyr)
library(stringr)
library(tidyverse)
library(dplyr)
# install.packages("lubridate")
library(lubridate)
library(ggplot2)
#install.packages("gtable")
#install.packages("gridExtra")
#install.packages("gri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GraphUtils.R
\name{getMyPalette}
\alias{getMyPalette}
\title{Customised palette with about 70 colours.}
\usage{
getMyPalette(n, add.grey = 0)
}
\arguments{
\item{n}{The number of colors (>= 1) to be in the palette. If missing, then return the... | /man/getMyPalette.Rd | permissive | walterxie/gg1L | R | false | true | 588 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GraphUtils.R
\name{getMyPalette}
\alias{getMyPalette}
\title{Customised palette with about 70 colours.}
\usage{
getMyPalette(n, add.grey = 0)
}
\arguments{
\item{n}{The number of colors (>= 1) to be in the palette. If missing, then return the... |
library(rjson)
library(RCurl)
library(tm)
library(SnowballC)
j_file5 <-"./talks_time.json"
talks_time<-fromJSON(file=j_file5, method="C")
str(talks_time)
talks_time<-fromJSON(file=j_file5, method="C")
str(talks_time)
talk_names<-names(talks_time$talks[[16]]$talk)
talk_names
###Convertobject type
talks_time_... | /time데이터 완전 k=13.R | no_license | JYK007/test-repo | R | false | false | 3,559 | r | library(rjson)
library(RCurl)
library(tm)
library(SnowballC)
j_file5 <-"./talks_time.json"
talks_time<-fromJSON(file=j_file5, method="C")
str(talks_time)
talks_time<-fromJSON(file=j_file5, method="C")
str(talks_time)
talk_names<-names(talks_time$talks[[16]]$talk)
talk_names
###Convertobject type
talks_time_... |
options(stringsAsFactors = FALSE)
library(lubridate)
library(reshape2)
library(stringr)
library(plyr)
source("../Data/tidy-data/data/xtable.r")
#raw <- read.csv("billboard.csv")
raw <- read.csv("../Data/tidy-data/data/billboard.csv")
raw <- raw[, c("year", "artist.inverted", "track", "time", "date.entered", "x1st.wee... | /course/msds001/Data/tidy-data/data/billboard.r | no_license | namkyodai/namkyodai.github.io | R | false | false | 2,755 | r | options(stringsAsFactors = FALSE)
library(lubridate)
library(reshape2)
library(stringr)
library(plyr)
source("../Data/tidy-data/data/xtable.r")
#raw <- read.csv("billboard.csv")
raw <- read.csv("../Data/tidy-data/data/billboard.csv")
raw <- raw[, c("year", "artist.inverted", "track", "time", "date.entered", "x1st.wee... |
#################### BirdLab ###################
######## Getting & Shaping Weather Data ########
### weather data providing by GSODR package ####
#Libraries
library(GSODR)
library(reshape)
library(dplyr)
#GSODR Data
ToGetGSODRData{
?get_GSOD
GSODR_data_all <- get_GSOD(years=c(2014,2015,2016,2017,2018),country="F... | /weather_data.r | no_license | romainlorrilliere/Chiro | R | false | false | 16,708 | r | #################### BirdLab ###################
######## Getting & Shaping Weather Data ########
### weather data providing by GSODR package ####
#Libraries
library(GSODR)
library(reshape)
library(dplyr)
#GSODR Data
ToGetGSODRData{
?get_GSOD
GSODR_data_all <- get_GSOD(years=c(2014,2015,2016,2017,2018),country="F... |
# Adrian Osterried, Arndt Glatz
(x <- matrix(1:16, nrow=4))
n_diag <- function(mat, n){
m <- nrow(mat)
neben <- c()
for(i in 1:m){
for (j in 1:m) {
if(i==j-n)
neben <- c(neben,mat[i,j])
}
}
... | /P03-2.R | no_license | adrian1econ/Programmiersprache_R | R | false | false | 1,132 | r | # Adrian Osterried, Arndt Glatz
(x <- matrix(1:16, nrow=4))
n_diag <- function(mat, n){
m <- nrow(mat)
neben <- c()
for(i in 1:m){
for (j in 1:m) {
if(i==j-n)
neben <- c(neben,mat[i,j])
}
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_tools.R
\name{get_containing_set_idx}
\alias{get_containing_set_idx}
\title{get the position of the set containing all members of a group of elements}
\usage{
get_containing_set_idx(rxns, sets)
}
\arguments{
\item{rxns}{list of elements t... | /man/get_containing_set_idx.Rd | no_license | DikshantPradhan/FluxCouplingTools | R | false | true | 535 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_tools.R
\name{get_containing_set_idx}
\alias{get_containing_set_idx}
\title{get the position of the set containing all members of a group of elements}
\usage{
get_containing_set_idx(rxns, sets)
}
\arguments{
\item{rxns}{list of elements t... |
# makeCacheMatrix function creates a special "matrix" object that can cache its
# inverse and which is really a list containing a function to
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the value of inverse of the matrix
# 4. get the value of inverse of the matrix
makeCacheMatrix <- fun... | /cachematrix.R | no_license | ValeriaR/ProgrammingAssignment2 | R | false | false | 1,054 | r | # makeCacheMatrix function creates a special "matrix" object that can cache its
# inverse and which is really a list containing a function to
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the value of inverse of the matrix
# 4. get the value of inverse of the matrix
makeCacheMatrix <- fun... |
source('framework/data.R');
source('framework/backtester.R')
source('framework/processResults.R');
source('strategies/W%R-MACD-MA4-stoploss-profitTarget1.R')
numOfDays <- 1100
dataList <- getData(directory="PART2")
dataList <- lapply(dataList, function(x) x[1:numOfDays])
sMult <- 0.2 # slippage multiplier
#params ... | /backtester_v4.2/optimize/O4-3.R | no_license | whyVeronica/backtester_v4.2 | R | false | false | 2,605 | r | source('framework/data.R');
source('framework/backtester.R')
source('framework/processResults.R');
source('strategies/W%R-MACD-MA4-stoploss-profitTarget1.R')
numOfDays <- 1100
dataList <- getData(directory="PART2")
dataList <- lapply(dataList, function(x) x[1:numOfDays])
sMult <- 0.2 # slippage multiplier
#params ... |
#require(dplyr) #for cleaner DFs
#require(lubridate)
#load files
datafile <- "household_power_consumption.txt"
household.all <- read.csv(datafile, sep=";", stringsAsFactors = FALSE)
#consider commenting to avoid dplyr
#household.all <- tbl_df(household.all) #cleaner DFs
#convert dates
household.all$Date <-as.Date( hou... | /plot1.r | no_license | rcphq/ExData_Plotting1 | R | false | false | 1,061 | r | #require(dplyr) #for cleaner DFs
#require(lubridate)
#load files
datafile <- "household_power_consumption.txt"
household.all <- read.csv(datafile, sep=";", stringsAsFactors = FALSE)
#consider commenting to avoid dplyr
#household.all <- tbl_df(household.all) #cleaner DFs
#convert dates
household.all$Date <-as.Date( hou... |
new_rand_eff_t_t_mod1_jm_weibull_deriv = "
data{
int<lower = 1> ntot;
int<lower = 1> ngroup;
int<lower = 1> p;
int<lower = 1> q;
int id[ntot];
vector[ntot] y;
matrix[ntot, p] x;
//matrix[ntot, q * ngroup] d;
matrix[ntot, q] d;
int<lower = 1> Q;
int<lower = 1> ntot_quad;
int d_ind[ngroup, 2];
int Q_ind[ngroup, 2];
... | /R/new_rand_eff_t_t_mod1_jm_weibull_deriv.R | no_license | ozgurasarstat/robjm | R | false | false | 4,149 | r | new_rand_eff_t_t_mod1_jm_weibull_deriv = "
data{
int<lower = 1> ntot;
int<lower = 1> ngroup;
int<lower = 1> p;
int<lower = 1> q;
int id[ntot];
vector[ntot] y;
matrix[ntot, p] x;
//matrix[ntot, q * ngroup] d;
matrix[ntot, q] d;
int<lower = 1> Q;
int<lower = 1> ntot_quad;
int d_ind[ngroup, 2];
int Q_ind[ngroup, 2];
... |
#1. Set Librarries
## r=free up memory amd load required libraries
rm(list=ls())
library(knitr)
library(caret)
library(rpart)
library(rpart.plot)
library(rattle)
library(randomForest)
library(corrplot)
set.seed(12345)
#2. Download Dataset
## set the URL for the download
UrlTrain <- "http://d396qusza40orc.cloudfront.ne... | /module 8 - practical machine learning/project/project module 8.r | no_license | kuzek07/practical-machine-learning | R | false | false | 2,899 | r | #1. Set Librarries
## r=free up memory amd load required libraries
rm(list=ls())
library(knitr)
library(caret)
library(rpart)
library(rpart.plot)
library(rattle)
library(randomForest)
library(corrplot)
set.seed(12345)
#2. Download Dataset
## set the URL for the download
UrlTrain <- "http://d396qusza40orc.cloudfront.ne... |
## ---- init
o <- Sys.setlocale("LC_TIME",
ifelse(params$lang=="FR","French_France.1252","English"))
suppressMessages(library(highcharter))
library(htmltools)
suppressMessages(library(zoo))
style.color.FR <- "dodgerblue"
style.color.EA <- "black"
style.color.IT <- "limegreen"
style.color.DE <- "or... | /R/ccze_init.R | no_license | lcamus/pubstat | R | false | false | 2,766 | r | ## ---- init
o <- Sys.setlocale("LC_TIME",
ifelse(params$lang=="FR","French_France.1252","English"))
suppressMessages(library(highcharter))
library(htmltools)
suppressMessages(library(zoo))
style.color.FR <- "dodgerblue"
style.color.EA <- "black"
style.color.IT <- "limegreen"
style.color.DE <- "or... |
options("rgdal_show_exportToProj4_warnings"="none")
library(sp)
data(meuse)
data(meuse.grid)
coordinates(meuse) = ~x+y
coordinates(meuse.grid) = ~x+y
x = coordinates(meuse)
y = coordinates(meuse.grid)
out = spDists(meuse,meuse.grid)
out2 = as.matrix(dist(rbind(coordinates(meuse),coordinates(meuse.grid))))
out2 = out2[1... | /tests/spDists.R | no_license | edzer/sp | R | false | false | 489 | r | options("rgdal_show_exportToProj4_warnings"="none")
library(sp)
data(meuse)
data(meuse.grid)
coordinates(meuse) = ~x+y
coordinates(meuse.grid) = ~x+y
x = coordinates(meuse)
y = coordinates(meuse.grid)
out = spDists(meuse,meuse.grid)
out2 = as.matrix(dist(rbind(coordinates(meuse),coordinates(meuse.grid))))
out2 = out2[1... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/network_range.R
\name{network_range}
\alias{network_range}
\title{Network range (diversity) scores for nodes in a network}
\usage{
network_range(network, attr, directed = TRUE)
}
\arguments{
\item{network}{Either an \emph{n} by \emph{n} adjac... | /man/network_range.Rd | permissive | ramorel/egoist | R | false | true | 866 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/network_range.R
\name{network_range}
\alias{network_range}
\title{Network range (diversity) scores for nodes in a network}
\usage{
network_range(network, attr, directed = TRUE)
}
\arguments{
\item{network}{Either an \emph{n} by \emph{n} adjac... |
library(pcadapt)
library(robust)
library(MASS)
pool.old <- function(input,K,min.maf=0.05){
nPOP <- nrow(input)
nSNP <- ncol(input)
if (missing(K)){
K <- nPOP-1
}
res <- corpca(input,K)
freq <- apply(input,2,FUN=function(x){mean(x,na.rm=TRUE)})
res$maf <- as.vector(pmin(freq,1-freq))
res$loadings[re... | /poolOld.R | no_license | keurcien/pooled-samples | R | false | false | 2,073 | r | library(pcadapt)
library(robust)
library(MASS)
pool.old <- function(input,K,min.maf=0.05){
nPOP <- nrow(input)
nSNP <- ncol(input)
if (missing(K)){
K <- nPOP-1
}
res <- corpca(input,K)
freq <- apply(input,2,FUN=function(x){mean(x,na.rm=TRUE)})
res$maf <- as.vector(pmin(freq,1-freq))
res$loadings[re... |
#------ 2015. 7. 08
#----------------------- RVPA program -----------------------------
# written by Hiroshi Okamura (VPA & reference point)
# and Momoko Ichinokawa (future projection & reference point)
#
# (*) macで読む場合は、
# source("rvpa1.6.r",encoding="shift-jis")
# として、文字コードを指定して読んでください
# (*) vpaを... | /R/rvpa.r | permissive | OkamuraHiroshi/frasyr | R | false | false | 61,101 | r | #------ 2015. 7. 08
#----------------------- RVPA program -----------------------------
# written by Hiroshi Okamura (VPA & reference point)
# and Momoko Ichinokawa (future projection & reference point)
#
# (*) macで読む場合は、
# source("rvpa1.6.r",encoding="shift-jis")
# として、文字コードを指定して読んでください
# (*) vpaを... |
library(PopED)
### Name: zeros
### Title: Creates a matrix of zeros.
### Aliases: zeros
### ** Examples
zeros(3)
zeros(0,3)
zeros(4,7)
zeros(1,4)
| /data/genthat_extracted_code/PopED/examples/zeros.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 154 | r | library(PopED)
### Name: zeros
### Title: Creates a matrix of zeros.
### Aliases: zeros
### ** Examples
zeros(3)
zeros(0,3)
zeros(4,7)
zeros(1,4)
|
####App Manifold Learning
library(networkD3)
shinyUI(fluidPage(
tags$head(
tags$style(HTML("
body {
background-color: black;
color:white
}
svg {
color:white;
}
.well {
background-color:black;
color:white;
}
"))
),
titlePa... | /Code/ui.r | no_license | sharop/tda | R | false | false | 1,178 | r | ####App Manifold Learning
library(networkD3)
shinyUI(fluidPage(
tags$head(
tags$style(HTML("
body {
background-color: black;
color:white
}
svg {
color:white;
}
.well {
background-color:black;
color:white;
}
"))
),
titlePa... |
# == title
# Read/parse cytoband data from a data frame/file/UCSC database
#
# == param
# -cytoband Path of the cytoband file or a data frame that already contains cytoband data
# -species Abbreviations of species. e.g. hg19 for human, mm10 for mouse. If this
# value is specified, the function will down... | /R/genomic_utils.R | no_license | jokergooo/circlize | R | false | false | 12,376 | r | # == title
# Read/parse cytoband data from a data frame/file/UCSC database
#
# == param
# -cytoband Path of the cytoband file or a data frame that already contains cytoband data
# -species Abbreviations of species. e.g. hg19 for human, mm10 for mouse. If this
# value is specified, the function will down... |
### Input: a dataframe with features, treatment, outcome
### Output: n11, n12, n21, n22
get_contingency_table <- function(input_dataframe,treatment,outcome) {
n11 = n12 = n21 = n22 = 0
# for (i in 1:nrow(input_dataframe)) {
# this_row = input_dataframe[i,]
# if (this_row[treatment]==1 & this_row[outc... | /get_contingency_table.R | no_license | JuliusZSS/DEEP_SZ | R | false | false | 1,137 | r | ### Input: a dataframe with features, treatment, outcome
### Output: n11, n12, n21, n22
get_contingency_table <- function(input_dataframe,treatment,outcome) {
n11 = n12 = n21 = n22 = 0
# for (i in 1:nrow(input_dataframe)) {
# this_row = input_dataframe[i,]
# if (this_row[treatment]==1 & this_row[outc... |
#### Set working directory ####
session_info = sessionInfo()
platform = session_info$platform
directory = "af-werx"
if(length(grep("linux|apple", platform)) > 0){
Sys.getenv("USER")
dir = paste0("~/Desktop/", directory)
}else{
username = Sys.getenv("USERNAME")
dir=paste0("C:/Users/", username, "/Desktop/", di... | /2 - R_Data Visualization/shiny/day-2/4-boxplot/server.R | no_license | jamesK1000011/Data-Science | R | false | false | 930 | r | #### Set working directory ####
session_info = sessionInfo()
platform = session_info$platform
directory = "af-werx"
if(length(grep("linux|apple", platform)) > 0){
Sys.getenv("USER")
dir = paste0("~/Desktop/", directory)
}else{
username = Sys.getenv("USERNAME")
dir=paste0("C:/Users/", username, "/Desktop/", di... |
"lilars" <-
function(y,isort=.dFvGet()$isr) {
n <- length(y)
if (missing(y)) y <- single(n)
theta <- single(1)
sigma <- single(1)
xmad <- single(1)
var <- single(1)
rs <- single(n)
f.res <- .Fortran("lilars",
y=to.single(y),
n=to.integer(n),
isort=to.integer(isort),
theta=to.single(theta),
sigma=to.single... | /robeth/R/lilars.R | no_license | ingted/R-Examples | R | false | false | 493 | r | "lilars" <-
function(y,isort=.dFvGet()$isr) {
n <- length(y)
if (missing(y)) y <- single(n)
theta <- single(1)
sigma <- single(1)
xmad <- single(1)
var <- single(1)
rs <- single(n)
f.res <- .Fortran("lilars",
y=to.single(y),
n=to.integer(n),
isort=to.integer(isort),
theta=to.single(theta),
sigma=to.single... |
######################################
#AGGREGATE DATA (DAILY LEVEL)
#make sure that newdata is loaded in environment - from ReadData.R
#This syntax:
# - creates interesting variables
# - aggregates the data
# - prepares the data for modelling
######################################
#################################... | /Assignment_1/adv/Ass1_Syntax/AggregateData.R | no_license | ximua00/DM_Techniques | R | false | false | 7,929 | r | ######################################
#AGGREGATE DATA (DAILY LEVEL)
#make sure that newdata is loaded in environment - from ReadData.R
#This syntax:
# - creates interesting variables
# - aggregates the data
# - prepares the data for modelling
######################################
#################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{RHSForm}
\alias{RHSForm}
\title{Parse merMod formulas}
\usage{
RHSForm(form, as.form = FALSE)
}
\description{
Parse merMod formulas
}
\keyword{internal}
| /man/RHSForm.Rd | no_license | alapo/merTools | R | false | true | 248 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{RHSForm}
\alias{RHSForm}
\title{Parse merMod formulas}
\usage{
RHSForm(form, as.form = FALSE)
}
\description{
Parse merMod formulas
}
\keyword{internal}
|
#!/usr/bin/env Rscript
metabkos<-setNames(read.csv("data/reads.metabko.only.csv",h=F,stringsAsFactors=F), c("read","ko"))
colnames(metabkos)<-c("read","ko")
#reads which are classifiable at the genus level
#Method1:Fail
#awk {'print $2'} data/classifiable_reads/taxa.Genus.txt |sort|uniq > data/kos.classifiable_at_gen... | /seq.0102.choose.uncl.only.R | no_license | etheleon/metagenomics_reads | R | false | false | 1,241 | r | #!/usr/bin/env Rscript
metabkos<-setNames(read.csv("data/reads.metabko.only.csv",h=F,stringsAsFactors=F), c("read","ko"))
colnames(metabkos)<-c("read","ko")
#reads which are classifiable at the genus level
#Method1:Fail
#awk {'print $2'} data/classifiable_reads/taxa.Genus.txt |sort|uniq > data/kos.classifiable_at_gen... |
save_plot <- function (plot_grid, width, height, save_filepath) {
grid::grid.draw(plot_grid)
#save it
ggplot2::ggsave(filename = save_filepath,
plot=plot_grid, width=(width/72), height=(height/72), bg="white")
}
#Left align text
left_align <- function (plot_name, pieces) {
grob <- ggplot2... | /R/finalise_plot.R | no_license | cguibourg/jpplot2 | R | false | false | 5,142 | r | save_plot <- function (plot_grid, width, height, save_filepath) {
grid::grid.draw(plot_grid)
#save it
ggplot2::ggsave(filename = save_filepath,
plot=plot_grid, width=(width/72), height=(height/72), bg="white")
}
#Left align text
left_align <- function (plot_name, pieces) {
grob <- ggplot2... |
# weight of evidence####
setwd("C:/Users/abhishek2.s/Downloads/Hackathon")
# Importing the dataset
training_set = read.csv('train_LZdllcl.csv')
training_set = training_set[2:14]
test_set = read.csv('test_2umaH9m.csv')
test_set = test_set[2:13]
variables <- names(training_set)
str(training_set)
##########Feature En... | /others_solutions/pre-final/294r_409_41793_cf_woe3_xgboost.R | no_license | DataScienceWorks/AV-WNS-2018-September-JobPromotionPrediction | R | false | false | 11,798 | r | # weight of evidence####
setwd("C:/Users/abhishek2.s/Downloads/Hackathon")
# Importing the dataset
training_set = read.csv('train_LZdllcl.csv')
training_set = training_set[2:14]
test_set = read.csv('test_2umaH9m.csv')
test_set = test_set[2:13]
variables <- names(training_set)
str(training_set)
##########Feature En... |
## This file will:
## 1. Download & load individual power consumption data from UCI's machine learning
## repository
## 2. Replicate plot 1 from Coursera's Exploratory Data Analysis Wk 1 Course Project
library(lubridate)
## If data directory does not already exist, create a data directory in current
## working direct... | /plot1.R | no_license | sandyjaugust/ExData_Plotting1 | R | false | false | 2,031 | r | ## This file will:
## 1. Download & load individual power consumption data from UCI's machine learning
## repository
## 2. Replicate plot 1 from Coursera's Exploratory Data Analysis Wk 1 Course Project
library(lubridate)
## If data directory does not already exist, create a data directory in current
## working direct... |
#wenzel-app_3
library(shiny)
library(leaflet)
library(RColorBrewer)
library(sp)
library(leaflet.extras)
ausstellungsorte <- dbGetQuery(conn = con, "SELECT DISTINCT place FROM regesten_wenzel")
ausstellungsorte <- rbind(ausstellungsorte, data.frame(place = "Eingabe"))
orte <- dbGetQuery(conn = con, "SELECT DIS... | /app.R | no_license | vwestric/wenzel-app_3 | R | false | false | 15,609 | r | #wenzel-app_3
library(shiny)
library(leaflet)
library(RColorBrewer)
library(sp)
library(leaflet.extras)
ausstellungsorte <- dbGetQuery(conn = con, "SELECT DISTINCT place FROM regesten_wenzel")
ausstellungsorte <- rbind(ausstellungsorte, data.frame(place = "Eingabe"))
orte <- dbGetQuery(conn = con, "SELECT DIS... |
#11-7-19_74 patients _ IFN genes and score and SLICC total score not high vs low
#0-2 is labeled as 1 and >=3 as 2
# Data read in off of biowulf
# Read Data
setwd("/data/amarnanian/Data Files Wd")
data <- read.csv("/spin1/USERS1/amarnanian/Data Files Wd/11-7-19 74 patients for R cleaned.csv", header = TRUE,
... | /11-7-19 74 ptsIFN and SLICC.R | no_license | aamarnani/Lupus-Machine-learning | R | false | false | 8,222 | r | #11-7-19_74 patients _ IFN genes and score and SLICC total score not high vs low
#0-2 is labeled as 1 and >=3 as 2
# Data read in off of biowulf
# Read Data
setwd("/data/amarnanian/Data Files Wd")
data <- read.csv("/spin1/USERS1/amarnanian/Data Files Wd/11-7-19 74 patients for R cleaned.csv", header = TRUE,
... |
ui <-
shiny::fluidPage(shinythemes::shinytheme("cerulean"),
shiny::sidebarLayout(
shiny::sidebarPanel(width = 4,
shiny::selectInput(
inputId = "City",
label = "Please select City",
... | /inst/shiny/sampleGUI/ui.R | no_license | unimi-dse/ea34b421 | R | false | false | 877 | r | ui <-
shiny::fluidPage(shinythemes::shinytheme("cerulean"),
shiny::sidebarLayout(
shiny::sidebarPanel(width = 4,
shiny::selectInput(
inputId = "City",
label = "Please select City",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary_equivfisherbinomial.R
\name{summary.equivfisherbinom}
\alias{summary.equivfisherbinom}
\title{Equivalence Fisher-Binomial Test Summary Function}
\usage{
\method{summary}{equivfisherbinom}(res)
}
\description{
\code{summary.equivfisher... | /man/summary.equivfisherbinom.Rd | permissive | jwbowers/equivtest | R | false | true | 799 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary_equivfisherbinomial.R
\name{summary.equivfisherbinom}
\alias{summary.equivfisherbinom}
\title{Equivalence Fisher-Binomial Test Summary Function}
\usage{
\method{summary}{equivfisherbinom}(res)
}
\description{
\code{summary.equivfisher... |
#cand <- 1:50
#for (n in cand) {
# rem_total <- sum(n %% (1:n))
# if (rem_total == 2*n) {
# print(sprintf("%d",n))
# }
#} | /src/site/discrete-spring2020/coq-competitions/problem.R | permissive | kapsitis/math | R | false | false | 127 | r | #cand <- 1:50
#for (n in cand) {
# rem_total <- sum(n %% (1:n))
# if (rem_total == 2*n) {
# print(sprintf("%d",n))
# }
#} |
format_orders1day<-function(df_tasks_for_today,clust_names){
library(data.table)
a<-data.table(matrix(NA,nrow=0,ncol=length(clust_names)))
names(a)<-clust_names
df_tasks_for_today <-data.table(df_tasks_for_today)
df_tasks_for_today<-rbind(df_tasks_for_today,a,use.names = TRUE,fill=TRUE)
pred_M_shft<-df_tas... | /tasks_driv_1day.R | no_license | madhudharmav/DemandPrediction_ZJ | R | false | false | 5,623 | r |
format_orders1day<-function(df_tasks_for_today,clust_names){
library(data.table)
a<-data.table(matrix(NA,nrow=0,ncol=length(clust_names)))
names(a)<-clust_names
df_tasks_for_today <-data.table(df_tasks_for_today)
df_tasks_for_today<-rbind(df_tasks_for_today,a,use.names = TRUE,fill=TRUE)
pred_M_shft<-df_tas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.