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 |
|---|---|---|---|---|---|---|---|---|---|
# function V = proj_TpM_spd(V)
# %PROJ_TPM_SPD projects a set of tangent V vectors onto TpM. Symmetrization.
# %
# % See also MGLM_SPD
#
# % Hyunwoo J. Kim
# % $Revision: 0.1 $ $Date: 2014/06/23 16:59:20 $
#
# for i = 1:size(V,3)
# V(:,:,i) = (V(:,:,i)+V(:,:,i)')/2;
# end
# end
#' @title proj_TpM_sp... | /R/proj_TpM_spd.R | permissive | zhangzjjjjjj/MGLMRiem | R | false | false | 996 | r | # function V = proj_TpM_spd(V)
# %PROJ_TPM_SPD projects a set of tangent V vectors onto TpM. Symmetrization.
# %
# % See also MGLM_SPD
#
# % Hyunwoo J. Kim
# % $Revision: 0.1 $ $Date: 2014/06/23 16:59:20 $
#
# for i = 1:size(V,3)
# V(:,:,i) = (V(:,:,i)+V(:,:,i)')/2;
# end
# end
#' @title proj_TpM_sp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transitions.R
\name{transitions}
\alias{transitions}
\title{Transitions between elements of a sequence}
\usage{
transitions(S, strucmat = NULL, xstart = TRUE, xstop = FALSE, out = "ml")
}
\arguments{
\item{S}{character, the sequence}
\item{s... | /man/transitions.Rd | no_license | gobbios/cfp | R | false | true | 2,129 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transitions.R
\name{transitions}
\alias{transitions}
\title{Transitions between elements of a sequence}
\usage{
transitions(S, strucmat = NULL, xstart = TRUE, xstop = FALSE, out = "ml")
}
\arguments{
\item{S}{character, the sequence}
\item{s... |
library(RSelenium)
library(rvest)
#네이버 웹툰 댓글 읽기
#1
remDr <- remoteDriver(remoteServerAddr = 'localhost',
port=4445, browserName = 'chrome')
#2
remDr$open()
#3
url = "http://comic.naver.com/comment/comment.nhn?titleId=570503&no=135"
remDr$navigate(url)
#4 bestReview
bestNodes <- remDr$findEl... | /R_training/MyCode/2주_Web Basic/day5/2.webtoon1.R | no_license | BaeYS-marketing/R | R | false | false | 1,243 | r | library(RSelenium)
library(rvest)
#네이버 웹툰 댓글 읽기
#1
remDr <- remoteDriver(remoteServerAddr = 'localhost',
port=4445, browserName = 'chrome')
#2
remDr$open()
#3
url = "http://comic.naver.com/comment/comment.nhn?titleId=570503&no=135"
remDr$navigate(url)
#4 bestReview
bestNodes <- remDr$findEl... |
#####
merge_counts(file.name, folders) <- function {
temp= c()
file.list.path = c()
file.list = c()
for (i in seq_along(folders)){
temp = list.files(folders[i], pattern=".genes.results.withGeneName")
file.list = c(file.list, temp)
file.list.path = c(file.list.path, paste(folders[i], temp, sep="/... | /01_function/merge_counts.R | permissive | StanleyYang01/early-diet-study | R | false | false | 940 | r | #####
merge_counts(file.name, folders) <- function {
temp= c()
file.list.path = c()
file.list = c()
for (i in seq_along(folders)){
temp = list.files(folders[i], pattern=".genes.results.withGeneName")
file.list = c(file.list, temp)
file.list.path = c(file.list.path, paste(folders[i], temp, sep="/... |
# Eric R. Gamazon
# Create required Expr Table
a <- read.table('/nas40t0/egamazon/VANDY/PREDIXCAN/DGN-WB.exp.IDxGENE', header=F)
a.t <- t(a)
dim(a.t)
genes <- read.table('/nas40t0/egamazon/VANDY/PREDIXCAN/DGN-WB.exp.GENE.list', header=F)
row.names(a.t) = t(genes)
write.table(a.t, file="DGN-WB.forMatrixeQTL.GENExID", s... | /Paper-Scripts/Eric/createDGNExprTable.r | permissive | cdesyoun/docker_predixcan | R | false | false | 366 | r | # Eric R. Gamazon
# Create required Expr Table
a <- read.table('/nas40t0/egamazon/VANDY/PREDIXCAN/DGN-WB.exp.IDxGENE', header=F)
a.t <- t(a)
dim(a.t)
genes <- read.table('/nas40t0/egamazon/VANDY/PREDIXCAN/DGN-WB.exp.GENE.list', header=F)
row.names(a.t) = t(genes)
write.table(a.t, file="DGN-WB.forMatrixeQTL.GENExID", s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot_themes.R
\name{theme_delabj}
\alias{theme_delabj}
\alias{theme_delabj_dark}
\title{My Prefered ggplot2 themes}
\usage{
theme_delabj(
base_size =12,
base_family = "Poppins",
base_line_size = .5,
base_rect_size = .5)
theme_delabj_dark(
... | /man/delabj_themes.Rd | no_license | jimsforks/delabj | R | false | true | 1,748 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot_themes.R
\name{theme_delabj}
\alias{theme_delabj}
\alias{theme_delabj_dark}
\title{My Prefered ggplot2 themes}
\usage{
theme_delabj(
base_size =12,
base_family = "Poppins",
base_line_size = .5,
base_rect_size = .5)
theme_delabj_dark(
... |
#code to run on summarized winter data
#+++++++++++ functions to perform and analyze Tukey test +++++++++++####
plot.CFSR.Annual.var <- function(df,maxday=150,varname,maxbaseyr=2011){
ss<-which((df$BaseYear >1999)&(df$DOYsinceBase < maxday)&(df$BaseYear <= maxbaseyr))
win.graph(width=9,h=5)
plot(as.factor... | /Compare_years_extracted_CFSR_data.r | permissive | sarahsupp/extreme_limits | R | false | false | 18,487 | r |
#code to run on summarized winter data
#+++++++++++ functions to perform and analyze Tukey test +++++++++++####
plot.CFSR.Annual.var <- function(df,maxday=150,varname,maxbaseyr=2011){
ss<-which((df$BaseYear >1999)&(df$DOYsinceBase < maxday)&(df$BaseYear <= maxbaseyr))
win.graph(width=9,h=5)
plot(as.factor... |
library(tidyverse)
n <- 10
beta0 <- -1.6
beta1 <- 0.03
x <- runif(n=n, min=18, max=60)
pi_x <- exp(beta0 + beta1 * x) / (1 + exp(beta0 + beta1 * x))
y <- rbinom(n=length(x), size=1, prob=pi_x)
data <- data.frame(x, pi_x, y)
names(data) <- c("age", "pi", "y")
print(data)
# This will generate a list of faculties -- do ... | /generate_data.R | no_license | sechilds/cirpa2017 | R | false | false | 478 | r | library(tidyverse)
n <- 10
beta0 <- -1.6
beta1 <- 0.03
x <- runif(n=n, min=18, max=60)
pi_x <- exp(beta0 + beta1 * x) / (1 + exp(beta0 + beta1 * x))
y <- rbinom(n=length(x), size=1, prob=pi_x)
data <- data.frame(x, pi_x, y)
names(data) <- c("age", "pi", "y")
print(data)
# This will generate a list of faculties -- do ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotSizeCompsGG.Single.R
\name{plotSizeCompsGG.Single}
\alias{plotSizeCompsGG.Single}
\title{Plot size comps from a single year (possibly for multiple models).}
\usage{
plotSizeCompsGG.Single(n_xmsz = NULL, res = NULL,
component = "pop.quan... | /man/plotSizeCompsGG.Single.Rd | permissive | wStockhausen/rTCSAM2015 | R | false | true | 904 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotSizeCompsGG.Single.R
\name{plotSizeCompsGG.Single}
\alias{plotSizeCompsGG.Single}
\title{Plot size comps from a single year (possibly for multiple models).}
\usage{
plotSizeCompsGG.Single(n_xmsz = NULL, res = NULL,
component = "pop.quan... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rowGrpMeans.R
\name{.rowGrpMeans}
\alias{.rowGrpMeans}
\title{row group mean (main)}
\usage{
.rowGrpMeans(x, grp, na.replVa = NULL, na.rm = TRUE)
}
\arguments{
\item{x}{numeric matrix where relplicates are organized into separate columns}
\i... | /man/dot-rowGrpMeans.Rd | no_license | cran/wrMisc | R | false | true | 993 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rowGrpMeans.R
\name{.rowGrpMeans}
\alias{.rowGrpMeans}
\title{row group mean (main)}
\usage{
.rowGrpMeans(x, grp, na.replVa = NULL, na.rm = TRUE)
}
\arguments{
\item{x}{numeric matrix where relplicates are organized into separate columns}
\i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mortality_rate.R
\docType{data}
\name{mortality_rate}
\alias{mortality_rate}
\title{Arabidopsis QTL data on gravitropism}
\format{
An object of class \code{spec_tbl_df} (inherits from \code{tbl_df}, \code{tbl}, \code{data.frame}) with 40 rows... | /man/mortality_rate.Rd | permissive | lewishounkpevi/BeninStats | R | false | true | 835 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mortality_rate.R
\docType{data}
\name{mortality_rate}
\alias{mortality_rate}
\title{Arabidopsis QTL data on gravitropism}
\format{
An object of class \code{spec_tbl_df} (inherits from \code{tbl_df}, \code{tbl}, \code{data.frame}) with 40 rows... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/private.R
\name{writeGenoFile}
\alias{writeGenoFile}
\title{Print the genotype file}
\usage{
writeGenoFile(object)
}
\description{
Print the genotype file
}
\examples{
my_simulation <- new("simulation")
writeMainFile(my_simulation)
}
| /man/writeGenoFile.Rd | no_license | frederic-michaud/RQuantiNemo | R | false | true | 312 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/private.R
\name{writeGenoFile}
\alias{writeGenoFile}
\title{Print the genotype file}
\usage{
writeGenoFile(object)
}
\description{
Print the genotype file
}
\examples{
my_simulation <- new("simulation")
writeMainFile(my_simulation)
}
|
test_that("test built-in distributions", {
print("~~~~~~ Testing built-in distributions ~~~~~~~~")
tt <- 2.5
## ============================== weibull =================================
print("***** weibull ...")
distP <- list(scale = 1.2, shape = 1.16)
alpha <- exp(-log(distP[["scale"]]) / distP... | /fuzzedpackages/Countr/tests/testthat/test-built_in_distributions.R | no_license | akhikolla/testpackages | R | false | false | 1,362 | r | test_that("test built-in distributions", {
print("~~~~~~ Testing built-in distributions ~~~~~~~~")
tt <- 2.5
## ============================== weibull =================================
print("***** weibull ...")
distP <- list(scale = 1.2, shape = 1.16)
alpha <- exp(-log(distP[["scale"]]) / distP... |
# "airport_short.csv" file is a csv file consisting of useful columns taken from the dataset which we are provided with.
# Reading the csv file into a dataframe called airport
airport = read.csv('airport_short.csv',stringsAsFactors = FALSE)
# Converting the airport_name and author_country into factors
airport$a... | /R Code/median_imputation.R | no_license | prerit1998jain/Aspect-Based-sentiment-analysis | R | false | false | 2,418 | r | # "airport_short.csv" file is a csv file consisting of useful columns taken from the dataset which we are provided with.
# Reading the csv file into a dataframe called airport
airport = read.csv('airport_short.csv',stringsAsFactors = FALSE)
# Converting the airport_name and author_country into factors
airport$a... |
## Combine all the running results
CombLOSS <- function(RDPath)
{
RDS <- file.path(RDPath, dir(RDPath))
nRDS <- length(RDS)
HwangLOSS <- NULL
for(i in 1:nRDS)
{
load(RDS[i])
HwangLOSS <- rbind(HwangLOSS, OUT.LOSS)
}
return(HwangLOSS)
}
HwangRadiaLOSS <- CombLOSS("... | /inst/scripts/plots/PlotSimulHwang.R | no_license | feng-li/movingknots | R | false | false | 1,483 | r |
## Combine all the running results
CombLOSS <- function(RDPath)
{
RDS <- file.path(RDPath, dir(RDPath))
nRDS <- length(RDS)
HwangLOSS <- NULL
for(i in 1:nRDS)
{
load(RDS[i])
HwangLOSS <- rbind(HwangLOSS, OUT.LOSS)
}
return(HwangLOSS)
}
HwangRadiaLOSS <- CombLOSS("... |
#' Fit a single layer neural network
#'
#' `lantern_mlp()` fits a model.
#'
#' @param x Depending on the context:
#'
#' * A __data frame__ of predictors.
#' * A __matrix__ of predictors.
#' * A __recipe__ specifying a set of preprocessing steps
#' created from [recipes::recipe()].
#'
#' The predictor data sh... | /R/lantern_mlp-fit.R | permissive | EmilHvitfeldt/lantern | R | false | false | 21,551 | r | #' Fit a single layer neural network
#'
#' `lantern_mlp()` fits a model.
#'
#' @param x Depending on the context:
#'
#' * A __data frame__ of predictors.
#' * A __matrix__ of predictors.
#' * A __recipe__ specifying a set of preprocessing steps
#' created from [recipes::recipe()].
#'
#' The predictor data sh... |
#' Distance Over Time
#'
#' @param player_profile player profile from player_profile function
#' @param split_time Time
#'
#' @return The distance traveled over a given amount of time from zero velocity
#'
distance_time <- function(player_profile, split_time) {
max_speed <- player_profile[[1]]
player_tau... | /R/distance_time.R | no_license | aadler/midsprint | R | false | false | 480 | r | #' Distance Over Time
#'
#' @param player_profile player profile from player_profile function
#' @param split_time Time
#'
#' @return The distance traveled over a given amount of time from zero velocity
#'
distance_time <- function(player_profile, split_time) {
max_speed <- player_profile[[1]]
player_tau... |
subgraph_rank <- grViz("
digraph subgraph_rank {
node [shape = circle,
style = filled,
color = grey]
node [fillcolor = red]
a
node [fillcolor = green]
b c
node [fillcolor = orange]
d e f g
subgraph abc {a; b; c}
edge [color = gr... | /Graphviz/scripts/subgraph_rank.R | permissive | jonmcalder/DiagrammeR | R | false | false | 412 | r | subgraph_rank <- grViz("
digraph subgraph_rank {
node [shape = circle,
style = filled,
color = grey]
node [fillcolor = red]
a
node [fillcolor = green]
b c
node [fillcolor = orange]
d e f g
subgraph abc {a; b; c}
edge [color = gr... |
##-----------------------------------------------------------##
## ##
## WBP Demographic Model ##
## Libby Pansing ##
##-----------------------------------------------------------##
... | /IAVS Density Dependent effects.R | no_license | erpansing/whitebark-pine-demographic-model-master | R | false | false | 22,923 | r | ##-----------------------------------------------------------##
## ##
## WBP Demographic Model ##
## Libby Pansing ##
##-----------------------------------------------------------##
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.iot_operations.R
\name{delete_certificate}
\alias{delete_certificate}
\title{Deletes the specified certificate}
\usage{
delete_certificate(certificateId, forceDelete = NULL)
}
\arguments{
\item{certificateId}{[required] The ID of the cer... | /service/paws.iot/man/delete_certificate.Rd | permissive | CR-Mercado/paws | R | false | true | 929 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.iot_operations.R
\name{delete_certificate}
\alias{delete_certificate}
\title{Deletes the specified certificate}
\usage{
delete_certificate(certificateId, forceDelete = NULL)
}
\arguments{
\item{certificateId}{[required] The ID of the cer... |
plot1 <- function() {
hist(df$Global_active_power, main = paste("Global Active Power"), col="red", xlab="Global Active Power (kilowatts)")
dev.copy(png, file="plot1.png", width=480, height=480)
dev.off()
cat("Plot1.png has been saved in", getwd())
}
plot1() | /plot1.R | no_license | Saurabh2388/Exploratory-Data-Analysis-pt1 | R | false | false | 295 | r | plot1 <- function() {
hist(df$Global_active_power, main = paste("Global Active Power"), col="red", xlab="Global Active Power (kilowatts)")
dev.copy(png, file="plot1.png", width=480, height=480)
dev.off()
cat("Plot1.png has been saved in", getwd())
}
plot1() |
#10222015--------------------------------------------------------------------------------
library(readr)
library(xgboost)
set.seed(28071993)
cat("reading the train and test data\n")
train <- read_csv("D:/kaggle/Forecasting/DATA/train.csv")
test <- read_csv("D:/kaggle/Forecasting/DATA/test.csv")
store <- read_cs... | /Forecasting/working_file.R | no_license | ronroc/kaggle | R | false | false | 12,884 | r | #10222015--------------------------------------------------------------------------------
library(readr)
library(xgboost)
set.seed(28071993)
cat("reading the train and test data\n")
train <- read_csv("D:/kaggle/Forecasting/DATA/train.csv")
test <- read_csv("D:/kaggle/Forecasting/DATA/test.csv")
store <- read_cs... |
##1/11/18
library(RColorBrewer)
library(gplots)
data <- read.table("data/scaled_difference_urine5_sorted2.txt", header=TRUE)
rnames <- data[,1] # assign labels in column 1 to "rnames"
mat_data <- data.matrix(data[,2:ncol(data)]) # transform column 2-5 into a matrix
rownames(mat_data) <- ... | /scripts/heatmap.R | no_license | amill017/USD_metaanalysis_2020 | R | false | false | 2,799 | r | ##1/11/18
library(RColorBrewer)
library(gplots)
data <- read.table("data/scaled_difference_urine5_sorted2.txt", header=TRUE)
rnames <- data[,1] # assign labels in column 1 to "rnames"
mat_data <- data.matrix(data[,2:ncol(data)]) # transform column 2-5 into a matrix
rownames(mat_data) <- ... |
\name{robCompositions-package}
\alias{robCompositions-package}
\alias{robCompositions}
\docType{package}
\title{
Robust Estimation for Compositional Data.
}
\description{
The package contains methods for imputation
of compositional data including robust methods, (robust) outlier detection for compositiona... | /man/robCompositions-package.Rd | no_license | Hasil-Sharma/robCompositions | R | false | false | 3,155 | rd | \name{robCompositions-package}
\alias{robCompositions-package}
\alias{robCompositions}
\docType{package}
\title{
Robust Estimation for Compositional Data.
}
\description{
The package contains methods for imputation
of compositional data including robust methods, (robust) outlier detection for compositiona... |
## name: res_eftu.r
## date: 11/18/2016
## Here I collect the residue name, number, membership of ras
load("/Users/hyangl/project/ras/results/2016/0715_ras_eftu/alignment/ali_raseftu.RData")
membership_eftu <- as.numeric(ali_raseftu["membership_eftu",ali_raseftu["membership_eftu",]!="0"])
community_eftu <- c("a1/b1-... | /info/res_eftu.r | no_license | Hongyang449/2016 | R | false | false | 910 | r | ## name: res_eftu.r
## date: 11/18/2016
## Here I collect the residue name, number, membership of ras
load("/Users/hyangl/project/ras/results/2016/0715_ras_eftu/alignment/ali_raseftu.RData")
membership_eftu <- as.numeric(ali_raseftu["membership_eftu",ali_raseftu["membership_eftu",]!="0"])
community_eftu <- c("a1/b1-... |
library(rockchalk)
set.seed(12345)
x1 <- rnorm(100)
x2 <- rnorm(100)
x3 <- rnorm(100)
x4 <- rnorm(100)
y <- rnorm(100)
y2 <- 0.03 + 0.1*x1 + 0.1*x2 + 0.25*x1*x2 + 0.4*x3 -0.1*x4 + 1*rnorm(100)
dat <- data.frame(x1,x2,x3,x4,y, y2)
rm(x1, x2, x3, x4, y, y2)
## linear ordinary regression
m1 <- lm(y ~ x1 + x2 +x3 + x4, ... | /packages/rockchalk/rockchalk/inst/examples/plotPlane-ex.R | no_license | rgroup-crmda/rgroup-crmda | R | false | false | 3,713 | r | library(rockchalk)
set.seed(12345)
x1 <- rnorm(100)
x2 <- rnorm(100)
x3 <- rnorm(100)
x4 <- rnorm(100)
y <- rnorm(100)
y2 <- 0.03 + 0.1*x1 + 0.1*x2 + 0.25*x1*x2 + 0.4*x3 -0.1*x4 + 1*rnorm(100)
dat <- data.frame(x1,x2,x3,x4,y, y2)
rm(x1, x2, x3, x4, y, y2)
## linear ordinary regression
m1 <- lm(y ~ x1 + x2 +x3 + x4, ... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /mepstrends/hc_use/json/code/r/totEVT__married__poverty__.r | permissive | RandomCriticalAnalysis/MEPS-summary-tables | R | false | false | 3,370 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DIDparams.R
\name{DIDparams}
\alias{DIDparams}
\title{DIDparams}
\usage{
DIDparams(
yname,
tname,
idname = NULL,
first.treat.name,
xformla = NULL,
data,
control.group,
weightsname = NULL,
alp = 0.05,
bstrap = T,
biters =... | /man/DIDparams.Rd | no_license | Lingbing/did | R | false | true | 5,149 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DIDparams.R
\name{DIDparams}
\alias{DIDparams}
\title{DIDparams}
\usage{
DIDparams(
yname,
tname,
idname = NULL,
first.treat.name,
xformla = NULL,
data,
control.group,
weightsname = NULL,
alp = 0.05,
bstrap = T,
biters =... |
#!/usr/bin/Rscript
options(scipen=100)
startTime <- Sys.time()
################ USE THE FOLLOWING FILES FROM PREVIOUS STEPS
# - script0: rna_geneList.Rdata
# - script0: pipeline_geneList.Rdata
# - script1: DE_topTable.Rdata
# - script1: DE_geneList.Rdata
# - script1: DE_rnaseqDT.Rdata
# - script8: all_obs_ratioD... | /14f5_cumulAllDown_limited_AUC_flexQuant.R | no_license | marzuf/TAD_DE_pipeline_v2 | R | false | false | 11,108 | r | #!/usr/bin/Rscript
options(scipen=100)
startTime <- Sys.time()
################ USE THE FOLLOWING FILES FROM PREVIOUS STEPS
# - script0: rna_geneList.Rdata
# - script0: pipeline_geneList.Rdata
# - script1: DE_topTable.Rdata
# - script1: DE_geneList.Rdata
# - script1: DE_rnaseqDT.Rdata
# - script8: all_obs_ratioD... |
E001TM53.R GISS Model E gas 06/00
WARNING: The boundary conditions used here may not be what you want
and no tuning has yet been done.
Please check and see before running
E001TM53: 53 layer 4x5 model sample tracers
Air mass, SF6, RN222, CO2, 14CO2, CFC-11, CH4, N2O, lineariz... | /source/model/E001TM53.R | permissive | Climostatistics/giss_model_e | R | false | false | 6,556 | r | E001TM53.R GISS Model E gas 06/00
WARNING: The boundary conditions used here may not be what you want
and no tuning has yet been done.
Please check and see before running
E001TM53: 53 layer 4x5 model sample tracers
Air mass, SF6, RN222, CO2, 14CO2, CFC-11, CH4, N2O, lineariz... |
dc_compact <- function(l) Filter(Negate(is.null), l)
dc_base <- function() "search.datacite.org"
dc_oai_base <- function() "https://oai.datacite.org/oai"
pluck <- function(x, name, type) {
if (missing(type)) {
lapply(x, "[[", name)
} else {
vapply(x, "[[", name, FUN.VALUE = type)
}
}
last <- function(... | /R/zzz.r | permissive | shivam11/rdatacite | R | false | false | 585 | r | dc_compact <- function(l) Filter(Negate(is.null), l)
dc_base <- function() "search.datacite.org"
dc_oai_base <- function() "https://oai.datacite.org/oai"
pluck <- function(x, name, type) {
if (missing(type)) {
lapply(x, "[[", name)
} else {
vapply(x, "[[", name, FUN.VALUE = type)
}
}
last <- function(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timespans.r, R/intervals.r
\docType{methods}
\name{time_length}
\alias{time_length}
\alias{time_length,Interval-method}
\title{Compute the exact length of a time span}
\usage{
time_length(x, unit = "second")
\S4method{time_length}{Interval}(... | /man/time_length.Rd | no_license | lizl90/lubridate | R | false | true | 1,570 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timespans.r, R/intervals.r
\docType{methods}
\name{time_length}
\alias{time_length}
\alias{time_length,Interval-method}
\title{Compute the exact length of a time span}
\usage{
time_length(x, unit = "second")
\S4method{time_length}{Interval}(... |
# User Interface
# Corsica Team App
# Last edited 1-26-2016
# Manny
shinyUI(navbarPage("Teams", id = "tab", inverse = F, windowTitle = "Corsica | Teams",
tabPanel("Team Stats", value = "stats",
# Formatting
... | /corsicateam/ui.R | no_license | NlIceD/shiny-server | R | false | false | 3,651 | r | # User Interface
# Corsica Team App
# Last edited 1-26-2016
# Manny
shinyUI(navbarPage("Teams", id = "tab", inverse = F, windowTitle = "Corsica | Teams",
tabPanel("Team Stats", value = "stats",
# Formatting
... |
#' Causal Mediation Analysis for Multiple Outcome/Treatment/Mediator
#' Combinations
#'
#' 'mediations' can be used to process a set of outcome/treatment/mediator
#' combinations through the \code{\link{mediate}} function to produce a series
#' of causal mediation analysis results.
#'
#' @details This function pro... | /R/mediations.R | no_license | kosukeimai/mediation | R | false | false | 18,078 | r | #' Causal Mediation Analysis for Multiple Outcome/Treatment/Mediator
#' Combinations
#'
#' 'mediations' can be used to process a set of outcome/treatment/mediator
#' combinations through the \code{\link{mediate}} function to produce a series
#' of causal mediation analysis results.
#'
#' @details This function pro... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/response-type.R
\name{http_type}
\alias{http_type}
\title{Extract the content type of a response}
\usage{
http_type(x)
}
\arguments{
\item{x}{A response}
}
\value{
A string giving the complete mime type, with all parameters
stripped off.
}
\d... | /man/http_type.Rd | permissive | r-lib/httr | R | false | true | 564 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/response-type.R
\name{http_type}
\alias{http_type}
\title{Extract the content type of a response}
\usage{
http_type(x)
}
\arguments{
\item{x}{A response}
}
\value{
A string giving the complete mime type, with all parameters
stripped off.
}
\d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jaccardAndPValue.R
\name{jaccardAndPValue}
\alias{jaccardAndPValue}
\title{Ranks bed file similarities with significance}
\usage{
jaccardAndPValue(n, bed1, genome, folder_dir)
}
\arguments{
\item{n}{he number of background files generated (th... | /man/jaccardAndPValue.Rd | no_license | ADotDong/RankBindingSimilarity | R | false | true | 1,467 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jaccardAndPValue.R
\name{jaccardAndPValue}
\alias{jaccardAndPValue}
\title{Ranks bed file similarities with significance}
\usage{
jaccardAndPValue(n, bed1, genome, folder_dir)
}
\arguments{
\item{n}{he number of background files generated (th... |
library(smdata)
### Name: rtime
### Title: Censored response time data
### Aliases: rtime
### Keywords: datasets
### ** Examples
data("rtime", package="smdata")
| /data/genthat_extracted_code/smdata/examples/rtime.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 168 | r | library(smdata)
### Name: rtime
### Title: Censored response time data
### Aliases: rtime
### Keywords: datasets
### ** Examples
data("rtime", package="smdata")
|
library(dplyr)
library(ggplot2)
setwd(paste0(Sys.getenv('CS_HOME'),'/CircularEconomy/Models/NetLogo/netlogo6'))
source(paste0(Sys.getenv("CN_HOME"),'/Models/Utils/R/plots.R'))
#resdirpref='20180615_1623_NSGA2_SYNTHETIC_TRCOST1.0_DISTRIBSD0.1'
#res <- as.tbl(read.csv(paste0('explo/',resdirpref,'/population879.csv')))
... | /Models/Analysis/calibration.R | no_license | SFICSSS16-CircularEconomy/CircularEconomy | R | false | false | 1,108 | r | library(dplyr)
library(ggplot2)
setwd(paste0(Sys.getenv('CS_HOME'),'/CircularEconomy/Models/NetLogo/netlogo6'))
source(paste0(Sys.getenv("CN_HOME"),'/Models/Utils/R/plots.R'))
#resdirpref='20180615_1623_NSGA2_SYNTHETIC_TRCOST1.0_DISTRIBSD0.1'
#res <- as.tbl(read.csv(paste0('explo/',resdirpref,'/population879.csv')))
... |
fluidRow(
boxPlus(
width = 12, closable = F,
title = tagList(icon("chart-line"), i18n$t("COVID-19 重症患者状況 日本COVID-19対策ECMOnet集計")),
tags$p(i18n$t("このページは、"),
tags$a(
icon("external-link-alt"),
i18n$t("COVID-19 重症患者状況 日本COVID-19対策ECMOnet集計"),
href = "http... | /04_Pages/ECMO/ECMO.ui.R | permissive | takewiki/2019-ncov-japan | R | false | false | 3,626 | r | fluidRow(
boxPlus(
width = 12, closable = F,
title = tagList(icon("chart-line"), i18n$t("COVID-19 重症患者状況 日本COVID-19対策ECMOnet集計")),
tags$p(i18n$t("このページは、"),
tags$a(
icon("external-link-alt"),
i18n$t("COVID-19 重症患者状況 日本COVID-19対策ECMOnet集計"),
href = "http... |
join_df <- function(df1, df2) {
if(is.null(df1$annData) | is.null(df2$annData))
stop("Merge sites first to get annData")
sampleData <- bind_rows(df1$sampleData, df2$sampleData)
annData <- inner_join(df1$annData, df2$annData, by="ann_ID")
annIntData <- bind_rows(semi_join(df1$annIntData, annData),
... | /R/07 - join_df.R | no_license | kbajdzienko/Phosphoproteomics | R | false | false | 904 | r | join_df <- function(df1, df2) {
if(is.null(df1$annData) | is.null(df2$annData))
stop("Merge sites first to get annData")
sampleData <- bind_rows(df1$sampleData, df2$sampleData)
annData <- inner_join(df1$annData, df2$annData, by="ann_ID")
annIntData <- bind_rows(semi_join(df1$annIntData, annData),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_register_transit_gateway_multicast_group_members}
\alias{ec2_register_transit_gateway_multicast_group_members}
\title{Registers members (network interfaces) with the transit gateway
multicast group}
\usage{
ec2_regi... | /paws/man/ec2_register_transit_gateway_multicast_group_members.Rd | permissive | johnnytommy/paws | R | false | true | 1,985 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_register_transit_gateway_multicast_group_members}
\alias{ec2_register_transit_gateway_multicast_group_members}
\title{Registers members (network interfaces) with the transit gateway
multicast group}
\usage{
ec2_regi... |
logistpl <-
function(x, y, init=NULL, i, LL.0, firth, which = -1,
offset=rep(0, length(y)), weight=rep(1,length(y)), plcontrol) {
n<-nrow(x)
k<-ncol(x)
if (is.null(init)) init<-rep(0,k)
beta<-init
if (is.null(offset)) offset=rep(0,n)
if (is.null(weight)) weight=rep(1,n)
if (missing(plcontrol)) plcontrol<... | /R/logistpl.R | no_license | ezgicn/logistf | R | false | false | 1,235 | r | logistpl <-
function(x, y, init=NULL, i, LL.0, firth, which = -1,
offset=rep(0, length(y)), weight=rep(1,length(y)), plcontrol) {
n<-nrow(x)
k<-ncol(x)
if (is.null(init)) init<-rep(0,k)
beta<-init
if (is.null(offset)) offset=rep(0,n)
if (is.null(weight)) weight=rep(1,n)
if (missing(plcontrol)) plcontrol<... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method_structure.R
\docType{methods}
\name{CSanalysis,matrix,matrix,character-method}
\alias{CSanalysis,matrix,matrix,character-method}
\title{Connectivity Score Analysis.}
\usage{
\S4method{CSanalysis}{matrix,matrix,character}(querMat... | /man/CSanalysis-matrix-matrix-character-method.Rd | no_license | cran/CSFA | R | false | true | 1,643 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method_structure.R
\docType{methods}
\name{CSanalysis,matrix,matrix,character-method}
\alias{CSanalysis,matrix,matrix,character-method}
\title{Connectivity Score Analysis.}
\usage{
\S4method{CSanalysis}{matrix,matrix,character}(querMat... |
#' Convert a Seurat Object to a Monocle Cell Data Set
#'
#' @param seu
#'
#' @return
#' @export
#'
#' @examples
convert_seu_to_cds <- function(seu, resolution = 1) {
### Building the necessary parts for a basic cds
# part two, counts sparse matrix
if ("integrated" %in% names(seu@assays)) {
default_assay =... | /R/monocle.R | permissive | mitsingh/seuratTools | R | false | false | 31,326 | r | #' Convert a Seurat Object to a Monocle Cell Data Set
#'
#' @param seu
#'
#' @return
#' @export
#'
#' @examples
convert_seu_to_cds <- function(seu, resolution = 1) {
### Building the necessary parts for a basic cds
# part two, counts sparse matrix
if ("integrated" %in% names(seu@assays)) {
default_assay =... |
########################################
#
# Week 4: "Real" NN using iris data
#
########################################
library(nnet)
#
# Look at the iris data
#
str(iris)
#
# Play with colors a bit and make a plot
#
col <- c("orange","blue","red")
col <- adjustcolor(col,alpha=.4) # cool function
col <- col[iris$Sp... | /Week 4/R/Nnet2.R | no_license | mwickers1/Statistical-Machine-Learning | R | false | false | 3,311 | r | ########################################
#
# Week 4: "Real" NN using iris data
#
########################################
library(nnet)
#
# Look at the iris data
#
str(iris)
#
# Play with colors a bit and make a plot
#
col <- c("orange","blue","red")
col <- adjustcolor(col,alpha=.4) # cool function
col <- col[iris$Sp... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536106953e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615783602-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 329 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536106953e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... |
#' @title Get Quota
#' @description Get Quota
#' @template dots
#' @examples
#' \dontrun{
#' get_quota()
#' }
#' @export
get_quota <- function(...) {
query <- list(Action = "GetSendQuota")
r <- sesPOST(query = query, ...)
return(r)
}
#' @title Get Statistics
#' @description Get Statistics
#' @template do... | /R/statistics.R | no_license | metanoid/aws.ses | R | false | false | 523 | r | #' @title Get Quota
#' @description Get Quota
#' @template dots
#' @examples
#' \dontrun{
#' get_quota()
#' }
#' @export
get_quota <- function(...) {
query <- list(Action = "GetSendQuota")
r <- sesPOST(query = query, ...)
return(r)
}
#' @title Get Statistics
#' @description Get Statistics
#' @template do... |
library(shiny)
shinyUI(fluidPage(
titlePanel("PAM - Prediction Analysis of Microarrays"),
fluidRow(
column(3,
wellPanel(
fileInput(inputId = "iFile", label = "", accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),
selectInput("analysisType", "", c("Cla... | /ui.R | no_license | MikeJSeo/PAM | R | false | false | 6,853 | r | library(shiny)
shinyUI(fluidPage(
titlePanel("PAM - Prediction Analysis of Microarrays"),
fluidRow(
column(3,
wellPanel(
fileInput(inputId = "iFile", label = "", accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),
selectInput("analysisType", "", c("Cla... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predlinear.R
\name{predlinear}
\alias{predlinear}
\title{Determine the Effective Dose from a Linear Regression Fit}
\usage{
predlinear(pct, LWmod, simple = FALSE)
}
\arguments{
\item{pct}{A numeric vector of effects (in percents) for which to... | /man/predlinear.Rd | no_license | JVAdams/LW1949 | R | false | true | 2,457 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predlinear.R
\name{predlinear}
\alias{predlinear}
\title{Determine the Effective Dose from a Linear Regression Fit}
\usage{
predlinear(pct, LWmod, simple = FALSE)
}
\arguments{
\item{pct}{A numeric vector of effects (in percents) for which to... |
library(shiny)
library(shinydashboard)
library(shinyWidgets)
#nonduplicated <- read.csv(here::here('Projections_2018_28_cleaned.csv'))
#source(here::here('generating_1st_cluster_graphs.R'))
#source(here::here('generating_2nd_cluster_graphs.R'))
#source(here::here("generating_3rd_cluster_graphs.R"))
#info_text <- read.... | /dashboard/app.R | permissive | coopercenter/cte-trailblazers | R | false | false | 9,509 | r | library(shiny)
library(shinydashboard)
library(shinyWidgets)
#nonduplicated <- read.csv(here::here('Projections_2018_28_cleaned.csv'))
#source(here::here('generating_1st_cluster_graphs.R'))
#source(here::here('generating_2nd_cluster_graphs.R'))
#source(here::here("generating_3rd_cluster_graphs.R"))
#info_text <- read.... |
##########################################################################################################################################
#### ####
### ... | /Data/CD/E-GEOD-59867_processing.R | no_license | hamelpatel/AD_microarray_gene_expression_classifier | R | false | false | 44,831 | r |
##########################################################################################################################################
#### ####
### ... |
\name{getReadsInRange}
\alias{getReadsInRange}
\title{
Retrieves Reads in Specified Range
}
\description{
'getReadsInRange' retrieves reads in range based on arguments refSeq,
refStart, refEnd and idx.
}
\usage{
getReadsInRange(cmpH5, refSeq, refStart = 1, refEnd = NA, idx = 1:nrow(cmpH5))
}
\arguments{
\item{... | /man/getReadsInRange.Rd | no_license | pb-jlee/R-pbh5 | R | false | false | 956 | rd | \name{getReadsInRange}
\alias{getReadsInRange}
\title{
Retrieves Reads in Specified Range
}
\description{
'getReadsInRange' retrieves reads in range based on arguments refSeq,
refStart, refEnd and idx.
}
\usage{
getReadsInRange(cmpH5, refSeq, refStart = 1, refEnd = NA, idx = 1:nrow(cmpH5))
}
\arguments{
\item{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{ROIcoeffs}
\alias{ROIcoeffs}
\title{Compute the Return on Investment (ROI) surface coefficients from population probabilities}
\usage{
ROIcoeffs(probabilities, As = 5:20, Ls = (diff(range(As)) + 1):1)
}
\arguments{
\item{probabil... | /man/ROIcoeffs.Rd | no_license | cran/denvax | R | false | true | 2,648 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{ROIcoeffs}
\alias{ROIcoeffs}
\title{Compute the Return on Investment (ROI) surface coefficients from population probabilities}
\usage{
ROIcoeffs(probabilities, As = 5:20, Ls = (diff(range(As)) + 1):1)
}
\arguments{
\item{probabil... |
%
% Copyright 2007-2018 The OpenMx Project
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable ... | /man/vech.Rd | no_license | mileysmiley/OpenMx | R | false | false | 1,285 | rd | %
% Copyright 2007-2018 The OpenMx Project
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable ... |
a<-read.table("household_power_consumption.txt",header = TRUE,sep=";")
sub_1<-a$Sub_metering_1[a$Date=="1/2/2007"|a$Date=="2/2/2007"]
sub_2<-a$Sub_metering_2[a$Date=="1/2/2007"|a$Date=="2/2/2007"]
sub_3<-a$Sub_metering_3[a$Date=="1/2/2007"|a$Date=="2/2/2007"]
su1<-as.numeric(as.character(sub_1))
su2<-as.numeric(as.char... | /plot4.R | no_license | Preeti-gupta02/ExData_Plotting1 | R | false | false | 1,850 | r | a<-read.table("household_power_consumption.txt",header = TRUE,sep=";")
sub_1<-a$Sub_metering_1[a$Date=="1/2/2007"|a$Date=="2/2/2007"]
sub_2<-a$Sub_metering_2[a$Date=="1/2/2007"|a$Date=="2/2/2007"]
sub_3<-a$Sub_metering_3[a$Date=="1/2/2007"|a$Date=="2/2/2007"]
su1<-as.numeric(as.character(sub_1))
su2<-as.numeric(as.char... |
# Code for exercise 1
# This should produce three plots
# Histogram for earconch measurements.
# histo_earconch.png
# Side-by-side box plots of the male and female earconch measurements.
# box_plot_earconch_gender.png
# Side-by-side histograms of the male and female earconch measurements.
# histo_earconch_gender.png
ea... | /ExploratoryDataAnalysis/HistogramsInGGPlot.R | no_license | ConorOSullivan/Coursework | R | false | false | 966 | r | # Code for exercise 1
# This should produce three plots
# Histogram for earconch measurements.
# histo_earconch.png
# Side-by-side box plots of the male and female earconch measurements.
# box_plot_earconch_gender.png
# Side-by-side histograms of the male and female earconch measurements.
# histo_earconch_gender.png
ea... |
library(dplyr)
library(ggplot2)
library(visdat)
library(reshape2)
library(ggcorrplot)
credit <- read.csv("Credit_Bureau.csv", header = T)
demo <- read.csv("demogs.csv", header = T)
#=========================#
# Remove Duplicates #
#=========================#
demo <- demo %>% group_by(Application.ID) %>% filter... | /Pre_A01.R | no_license | YemoAde/ModelComparison-LoanDataset | R | false | false | 10,330 | r | library(dplyr)
library(ggplot2)
library(visdat)
library(reshape2)
library(ggcorrplot)
credit <- read.csv("Credit_Bureau.csv", header = T)
demo <- read.csv("demogs.csv", header = T)
#=========================#
# Remove Duplicates #
#=========================#
demo <- demo %>% group_by(Application.ID) %>% filter... |
rm(list=ls())
################################################################################
####################load packages, functions and result SE object ##############
################################################################################
# load packages
# devtools::install_github(repo="krumsieklab/... | /Capstone/Code/app.R | no_license | ZhuXiangNEU/Maplet-Capstone | R | false | false | 75,443 | r | rm(list=ls())
################################################################################
####################load packages, functions and result SE object ##############
################################################################################
# load packages
# devtools::install_github(repo="krumsieklab/... |
library(raster)
# x <- hps <- nepal::pyuthan_health_facilities
# y <- hps[hps@data$HF_TYPE %in% c('Sub Health Post', 'Health Post') |
# (hps@data$VDC_NAME1 == 'Bijubar' &
# hps@data$HF_TYPE == 'Hospital') |
# hps@data$VDC_NAME1 =='Bhingri PHC' ,]
# y$hospital <- (y@data$VDC_NAME1 =... | /inst/shiny/global.R | permissive | joebrew/nepallite | R | false | false | 1,102 | r | library(raster)
# x <- hps <- nepal::pyuthan_health_facilities
# y <- hps[hps@data$HF_TYPE %in% c('Sub Health Post', 'Health Post') |
# (hps@data$VDC_NAME1 == 'Bijubar' &
# hps@data$HF_TYPE == 'Hospital') |
# hps@data$VDC_NAME1 =='Bhingri PHC' ,]
# y$hospital <- (y@data$VDC_NAME1 =... |
# Author: Namra Ansari
# Overlaying Plots
library(datasets)
head(co2)
hist(co2)
hist(co2,freq = FALSE,col = "thistle1")
curve(dnorm(x, mean = mean(co2), sd = sd(co2)),col="purple",lwd=2,add = TRUE)
lines(density(co2),col="blue",lwd=2)
lines(density(co2,adjust = 2),col="pink",lwd=2)
rug(co2,col = "grey",lwd = 2)
| /overlaying_plot.r | no_license | NamraAnsari/Learning_R | R | false | false | 318 | r | # Author: Namra Ansari
# Overlaying Plots
library(datasets)
head(co2)
hist(co2)
hist(co2,freq = FALSE,col = "thistle1")
curve(dnorm(x, mean = mean(co2), sd = sd(co2)),col="purple",lwd=2,add = TRUE)
lines(density(co2),col="blue",lwd=2)
lines(density(co2,adjust = 2),col="pink",lwd=2)
rug(co2,col = "grey",lwd = 2)
|
cat('\n\n');timestamp();cat('\n')
library(btergm)
library(parallel)
library(texreg)
data_dir <- '/home/sdowning/data/firm_nets_rnr2'
firm_i <- 'verint'
d <- 3
ncpus <- 4
parallel <- "multicore"
data_file <- file.path(data_dir,sprintf('%s_d%s.rds',firm_i,d))
nets <- readRDS(data_file)
nPeriods <- 11 ## 5
if (!("f... | /R/amj_rnr2/awareness_AMJ_RNR_TERGM_m4-verint.R | no_license | sdownin/compnet-venus | R | false | false | 2,976 | r | cat('\n\n');timestamp();cat('\n')
library(btergm)
library(parallel)
library(texreg)
data_dir <- '/home/sdowning/data/firm_nets_rnr2'
firm_i <- 'verint'
d <- 3
ncpus <- 4
parallel <- "multicore"
data_file <- file.path(data_dir,sprintf('%s_d%s.rds',firm_i,d))
nets <- readRDS(data_file)
nPeriods <- 11 ## 5
if (!("f... |
#' Calculate the degree of each node in the network
#'
#' @param adjacency an adjacency matrix
#' @return a named vector
#' @export
degree <- function(adjacency) {
sort(colSums(adjacency) + rowSums(adjacency), decreasing=TRUE)
}
#' Identify sink nodes in the network
#'
#' @param adjacency an adjacency matrix
#' @r... | /R/properties.R | no_license | sritchie73/networkTools | R | false | false | 3,054 | r | #' Calculate the degree of each node in the network
#'
#' @param adjacency an adjacency matrix
#' @return a named vector
#' @export
degree <- function(adjacency) {
sort(colSums(adjacency) + rowSums(adjacency), decreasing=TRUE)
}
#' Identify sink nodes in the network
#'
#' @param adjacency an adjacency matrix
#' @r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generateDataset.R
\name{generateDataset}
\alias{generateDataset}
\title{Generate a time series dataset}
\usage{
generateDataset()
}
\value{
\describe{
\item{X}{a matrix of 300 time series (300 rows and 256 columns)}
\item{col}{a vector, descr... | /man/generateDataset.Rd | no_license | Erwangf/funHDDC-wavelet | R | false | true | 462 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generateDataset.R
\name{generateDataset}
\alias{generateDataset}
\title{Generate a time series dataset}
\usage{
generateDataset()
}
\value{
\describe{
\item{X}{a matrix of 300 time series (300 rows and 256 columns)}
\item{col}{a vector, descr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flame_generate_dataframe.R
\name{flame_generate_dataframe}
\alias{flame_generate_dataframe}
\title{Flame Database Generator}
\usage{
flame_generate_dataframe(a_list)
}
\arguments{
\item{a_list}{Flame data list}
}
\description{
Parses a list o... | /man/flame_generate_dataframe.Rd | no_license | callowy/flames | R | false | true | 426 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flame_generate_dataframe.R
\name{flame_generate_dataframe}
\alias{flame_generate_dataframe}
\title{Flame Database Generator}
\usage{
flame_generate_dataframe(a_list)
}
\arguments{
\item{a_list}{Flame data list}
}
\description{
Parses a list o... |
library(rtrek)
### Name: st_tiles
### Title: Return the url associated with a tile set
### Aliases: st_tiles
### ** Examples
st_tiles("galaxy1")
| /data/genthat_extracted_code/rtrek/examples/st_tiles.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 152 | r | library(rtrek)
### Name: st_tiles
### Title: Return the url associated with a tile set
### Aliases: st_tiles
### ** Examples
st_tiles("galaxy1")
|
library(data.table)
setwd("C:/Users/NNarasim/OneDrive/Temp/Coursera/04. Exploratory Data Analysis/RWorking")
require(data.table)
DT <- fread("./data/household_power_consumption.txt", sep=";", header=TRUE, na.strings="?")
febData <- as.data.frame(DT[Date == c("1/2/2007","2/2/2007"),])
febData$Time <- strptime(paste(fe... | /plot4.R | no_license | NNarasimulu/ExData_Plotting1 | R | false | false | 1,312 | r | library(data.table)
setwd("C:/Users/NNarasim/OneDrive/Temp/Coursera/04. Exploratory Data Analysis/RWorking")
require(data.table)
DT <- fread("./data/household_power_consumption.txt", sep=";", header=TRUE, na.strings="?")
febData <- as.data.frame(DT[Date == c("1/2/2007","2/2/2007"),])
febData$Time <- strptime(paste(fe... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/parse-save.R
\name{parse_save.list}
\alias{parse_save.list}
\title{create a Parse object from a list}
\usage{
\method{parse_save}{list}(x, class_name, ...)
}
\arguments{
\item{x}{list to be saved}
\item{class_name}{class to save the ... | /man/parse_save.list.Rd | no_license | dgrtwo/rparse | R | false | false | 442 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/parse-save.R
\name{parse_save.list}
\alias{parse_save.list}
\title{create a Parse object from a list}
\usage{
\method{parse_save}{list}(x, class_name, ...)
}
\arguments{
\item{x}{list to be saved}
\item{class_name}{class to save the ... |
library(shiny)
library(data.table)
library(dplyr)
library(ggplot2)
library(plotly)
library(shinyWidgets)
library(shinydashboard)
#### 6.1 Estrtura página dashboard####
dados <- fread('dados_limpos.csv',encoding = 'UTF-8')
cabecalho <- dashboardHeader(title = "Dashboard PROCONs",
... | /6_1_app.R | no_license | gabriellimagomes15/r_shiny | R | false | false | 5,221 | r | library(shiny)
library(data.table)
library(dplyr)
library(ggplot2)
library(plotly)
library(shinyWidgets)
library(shinydashboard)
#### 6.1 Estrtura página dashboard####
dados <- fread('dados_limpos.csv',encoding = 'UTF-8')
cabecalho <- dashboardHeader(title = "Dashboard PROCONs",
... |
#QBA random forests
#Informative dataset #1
#Non-differential misclassification of predictor for simulated data to assess prediction accuracy
library(foreign)
library(randomForest)
library(pROC)
#Get arguments from the command line
argv <- commandArgs(TRUE)
# Check if the command line is not empty and convert values... | /Informative dataset #1 - original and misclassified/informative dataset 1 misclassified nondiff predictors.R | no_license | jiangtammy/Quantitative-Bias-Analysis | R | false | false | 3,456 | r | #QBA random forests
#Informative dataset #1
#Non-differential misclassification of predictor for simulated data to assess prediction accuracy
library(foreign)
library(randomForest)
library(pROC)
#Get arguments from the command line
argv <- commandArgs(TRUE)
# Check if the command line is not empty and convert values... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bedfile_tests.R
\name{file_is_valid_bed_vectorized}
\alias{file_is_valid_bed_vectorized}
\title{Are files real, valid beds}
\usage{
file_is_valid_bed_vectorized(filepaths, genomefile, warn = TRUE)
}
\arguments{
\item{filepaths}{vector of path... | /man/file_is_valid_bed_vectorized.Rd | permissive | selkamand/bedutilsr | R | false | true | 523 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bedfile_tests.R
\name{file_is_valid_bed_vectorized}
\alias{file_is_valid_bed_vectorized}
\title{Are files real, valid beds}
\usage{
file_is_valid_bed_vectorized(filepaths, genomefile, warn = TRUE)
}
\arguments{
\item{filepaths}{vector of path... |
partido_analise <- tabPanel(title = "Análise Partidária",
value = "partidos",
br(), hr(),
column(width = 4,
column(width = 6,
pickerInput(inputId = "partido_a... | /tabs/ui/partidos/partidos_analise.R | no_license | voronoys/voronoys-app-dev | R | false | false | 6,366 | r | partido_analise <- tabPanel(title = "Análise Partidária",
value = "partidos",
br(), hr(),
column(width = 4,
column(width = 6,
pickerInput(inputId = "partido_a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ustring.R
\name{text_to_utf16}
\alias{text_to_utf16}
\title{Convert a UTF-8 text to UTF-16 ustring.}
\usage{
text_to_utf16(text, endian = "big")
}
\arguments{
\item{text}{a scalar character}
\item{endian}{little endian or big endian?}
}
\des... | /man/text_to_utf16.Rd | permissive | randy3k/ustring | R | false | true | 372 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ustring.R
\name{text_to_utf16}
\alias{text_to_utf16}
\title{Convert a UTF-8 text to UTF-16 ustring.}
\usage{
text_to_utf16(text, endian = "big")
}
\arguments{
\item{text}{a scalar character}
\item{endian}{little endian or big endian?}
}
\des... |
# Default line plot
ggplot(data_time_long, aes(x = year, y = value / 1000000)) +
geom_line(aes(color = category)) +
labs(title = "Number of CAT and DOG lovers in 2000 - 2020") +
ylab("'000 000 of respondents")
# Basic line plot with 2 lines
ggplot(data_time_long, aes(x = year, y = value / 1000000)) +
geom_line... | /05_line_plot_labels.R | no_license | axc836/data_visualisation | R | false | false | 2,322 | r | # Default line plot
ggplot(data_time_long, aes(x = year, y = value / 1000000)) +
geom_line(aes(color = category)) +
labs(title = "Number of CAT and DOG lovers in 2000 - 2020") +
ylab("'000 000 of respondents")
# Basic line plot with 2 lines
ggplot(data_time_long, aes(x = year, y = value / 1000000)) +
geom_line... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Input.r
\name{LstepCE1}
\alias{LstepCE1}
\title{A management procedure that incrementally adjusts the TAC according to the
mean length of recent catches.}
\usage{
LstepCE1(x, Data, reps = 100, yrsmth = 5, xx = 0, stepsz = 0.05,
llim = c(0.96,... | /man/LstepCE1.Rd | no_license | Lijiuqi/DLMtool | R | false | true | 1,137 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Input.r
\name{LstepCE1}
\alias{LstepCE1}
\title{A management procedure that incrementally adjusts the TAC according to the
mean length of recent catches.}
\usage{
LstepCE1(x, Data, reps = 100, yrsmth = 5, xx = 0, stepsz = 0.05,
llim = c(0.96,... |
# December 16, 2018.
# Luis Da Silva.
library(ergm)
# Start by reading in the adjancecy matrix showing relationships between pairs of characters
ga.mat<-as.matrix(read.table("Grey's Anatomy - sociomat.tsv", sep="\t",
header=T, row.names=1, quote="\""))
# check it:
ga.mat
# Next import the... | /Social Network Analysis/Greys anatomy social networks.R | permissive | fitrialif/Playground | R | false | false | 1,645 | r | # December 16, 2018.
# Luis Da Silva.
library(ergm)
# Start by reading in the adjancecy matrix showing relationships between pairs of characters
ga.mat<-as.matrix(read.table("Grey's Anatomy - sociomat.tsv", sep="\t",
header=T, row.names=1, quote="\""))
# check it:
ga.mat
# Next import the... |
student<-c(1:10)
score<-c(85,61,85,67,74,72,70,75,59,66)
population<-data.frame(student,score)
population
u<-mean(population$score)
cat("Mean is ",u)
SD<-sd(population$score)
cat("Standard Deviation is ",SD)
n<-4
mean<-c()
for(i in 1:10){
sample<-sample(population$score,n,replace=FALSE)
mean<-c(mean,m... | /4)Population.R | no_license | Dhirajdgandhi/RStudio-Basics | R | false | false | 712 | r | student<-c(1:10)
score<-c(85,61,85,67,74,72,70,75,59,66)
population<-data.frame(student,score)
population
u<-mean(population$score)
cat("Mean is ",u)
SD<-sd(population$score)
cat("Standard Deviation is ",SD)
n<-4
mean<-c()
for(i in 1:10){
sample<-sample(population$score,n,replace=FALSE)
mean<-c(mean,m... |
rm(list=ls())
setwd(dirname(rstudioapi::getSourceEditorContext()$path))
require(xlsx)
require(tidyverse)
df <- read.xlsx2('emisie.xlsx', startRow = 6, endRow = 181, sheetIndex = 1)
df <- df[-1,]
df2 <- data.frame(Country = df$Year, NUTS2 = df$X., value = df$X2017)
df2[df2$Country=='',1]<-NA
df2 <- df2 %>%... | /data.R | no_license | kubocery/mapy | R | false | false | 3,532 | r | rm(list=ls())
setwd(dirname(rstudioapi::getSourceEditorContext()$path))
require(xlsx)
require(tidyverse)
df <- read.xlsx2('emisie.xlsx', startRow = 6, endRow = 181, sheetIndex = 1)
df <- df[-1,]
df2 <- data.frame(Country = df$Year, NUTS2 = df$X., value = df$X2017)
df2[df2$Country=='',1]<-NA
df2 <- df2 %>%... |
#' @include internal.R ConservationProblem-proto.R
NULL
#' Evaluate solution connectivity
#'
#' Calculate the connectivity held within a solution to a conservation
#' planning [problem()].
#' This summary statistic evaluates the connectivity of a solution using
#' pair-wise connectivity values between combinations of ... | /R/eval_connectivity_summary.R | no_license | diminera/prioritizr | R | false | false | 11,358 | r | #' @include internal.R ConservationProblem-proto.R
NULL
#' Evaluate solution connectivity
#'
#' Calculate the connectivity held within a solution to a conservation
#' planning [problem()].
#' This summary statistic evaluates the connectivity of a solution using
#' pair-wise connectivity values between combinations of ... |
\name{cacc.cut.points}
\alias{cacc.cut.points}
\title{Compute cut points.}
\usage{
cacc.cut.points(values, classes)
}
\arguments{
\item{values}{vector with the continuous values to
discretize.}
\item{classes}{vector with the classes associated with
the values in \code{values}.}
}
\value{
Vector with the cu... | /man/cacc.cut.points.Rd | no_license | b3aver/uarray | R | false | false | 396 | rd | \name{cacc.cut.points}
\alias{cacc.cut.points}
\title{Compute cut points.}
\usage{
cacc.cut.points(values, classes)
}
\arguments{
\item{values}{vector with the continuous values to
discretize.}
\item{classes}{vector with the classes associated with
the values in \code{values}.}
}
\value{
Vector with the cu... |
test_that("urls are valid", {
baseurl <- "https://data.baltimorecity.gov/api/views/dz54-2aru/"
testthat::expect_true(externalrdata:::url_exists(baseurl))
})
| /tests/testthat/test-get.R | no_license | jsta/externalrdata | R | false | false | 161 | r | test_that("urls are valid", {
baseurl <- "https://data.baltimorecity.gov/api/views/dz54-2aru/"
testthat::expect_true(externalrdata:::url_exists(baseurl))
})
|
# TODO depending on whether the file was generated from a description based on
# XMCDA v2 or v3, only one list is correct, either XMCDA_v2_TAG_FOR_FILENAME
# or XMCDA_v3_TAG_FOR_FILENAME: check them to determine which one should be
# adapted.
XMCDA_v2_TAG_FOR_FILENAME <- list(
# output name -> XMCDA v2 tag
necessa... | /ImpreciseDEAValueADD/ImpreciseDEAValueADDPreferenceRelations/src/outputsHandler.R | no_license | alabijak/diviz_DEA | R | false | false | 2,197 | r | # TODO depending on whether the file was generated from a description based on
# XMCDA v2 or v3, only one list is correct, either XMCDA_v2_TAG_FOR_FILENAME
# or XMCDA_v3_TAG_FOR_FILENAME: check them to determine which one should be
# adapted.
XMCDA_v2_TAG_FOR_FILENAME <- list(
# output name -> XMCDA v2 tag
necessa... |
# This tests the functionality of modelGeneCV2.
# library(testthat); library(scran); source("test-model-cv2.R")
set.seed(20001)
ncells <- 200
ngenes <- 1000
means <- 2^runif(ngenes, -1, 5)
dummy <- matrix(rnbinom(ngenes*ncells, mu=means, size=5), ncol=ncells, nrow=ngenes)
rownames(dummy) <- paste0("X", seq_len(ngenes)... | /tests/testthat/test-model-cv2.R | no_license | piyushjo15/scran | R | false | false | 11,414 | r | # This tests the functionality of modelGeneCV2.
# library(testthat); library(scran); source("test-model-cv2.R")
set.seed(20001)
ncells <- 200
ngenes <- 1000
means <- 2^runif(ngenes, -1, 5)
dummy <- matrix(rnbinom(ngenes*ncells, mu=means, size=5), ncol=ncells, nrow=ngenes)
rownames(dummy) <- paste0("X", seq_len(ngenes)... |
## call from main.R
make_AGP_sub <- function(n) {
new_model(name = "AGP",
label = sprintf("n = %s", n),
params = list(n=n),
simulate = function(n, nsim) {
if (n>nrow(otu_train)) stop('max sample size exceeded')
pcoef <- n/sum(runtab[test])
... | /public/qiita/AGP/simulator/model_functions.R | no_license | zdk123/SpiecEasiSLR_manuscript | R | false | false | 557 | r | ## call from main.R
make_AGP_sub <- function(n) {
new_model(name = "AGP",
label = sprintf("n = %s", n),
params = list(n=n),
simulate = function(n, nsim) {
if (n>nrow(otu_train)) stop('max sample size exceeded')
pcoef <- n/sum(runtab[test])
... |
library(rstan)
library(dplyr)
library(survival)
library(splines2)
library(statmod)
library(abind)
library(caret)
# create folder for fits
if (!dir.exists('fits')) {dir.create('fits')}
### setup data
mice <- read.csv('datasets/schultz_data.csv', header = TRUE, sep = ",")
mice.surv <- read.csv('datasets/schultz_surv_d... | /fit_mouse_3.r | permissive | Spencerfar/aging-damagerepair | R | false | false | 4,688 | r | library(rstan)
library(dplyr)
library(survival)
library(splines2)
library(statmod)
library(abind)
library(caret)
# create folder for fits
if (!dir.exists('fits')) {dir.create('fits')}
### setup data
mice <- read.csv('datasets/schultz_data.csv', header = TRUE, sep = ",")
mice.surv <- read.csv('datasets/schultz_surv_d... |
#' Plots for Top Variant and Region Inclusions
#' @description This function allows the user to create image plots of the top variants and top Regions
#' (any user specified set of variants such as pathways or genes) included in the top models.
#' Variants and Regions are ordered based on marginal BF and regional BF w... | /R/bvs_plot.R | no_license | USCbiostats/bvs | R | false | false | 6,987 | r | #' Plots for Top Variant and Region Inclusions
#' @description This function allows the user to create image plots of the top variants and top Regions
#' (any user specified set of variants such as pathways or genes) included in the top models.
#' Variants and Regions are ordered based on marginal BF and regional BF w... |
##
names(SCC)
NEI$type
SCCcoal <- SCC[grepl("coal", SCC$Short.Name, ignore.case = T),]
NEIcoal <- NEI[NEI$SCC %in% SCCcoal$SCC,]
totalCoal <- aggregate(Emissions ~ year + type, NEIcoal, sum)
png("plot4.png", width = 480, height = 480)
ggplot(totalCoal, aes(year, Emissions, col = type)) +
geom_line() +
geom... | /plot4.r | no_license | pengguo-01/EPA-National-Emission-Inventory | R | false | false | 599 | r | ##
names(SCC)
NEI$type
SCCcoal <- SCC[grepl("coal", SCC$Short.Name, ignore.case = T),]
NEIcoal <- NEI[NEI$SCC %in% SCCcoal$SCC,]
totalCoal <- aggregate(Emissions ~ year + type, NEIcoal, sum)
png("plot4.png", width = 480, height = 480)
ggplot(totalCoal, aes(year, Emissions, col = type)) +
geom_line() +
geom... |
## Finding the inverse of a square matrix is very expensive.
## If the matrix inverse has been already computed, it can be cached
## instead of being computed repeatedly. The following functions achieve this
## Create a matrix which can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
s... | /cachematrix.R | no_license | git-skc/ProgrammingAssignment2 | R | false | false | 1,130 | r | ## Finding the inverse of a square matrix is very expensive.
## If the matrix inverse has been already computed, it can be cached
## instead of being computed repeatedly. The following functions achieve this
## Create a matrix which can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smcfcs.r
\docType{data}
\name{ex_logisticquad}
\alias{ex_logisticquad}
\title{Simulated example data with binary outcome and quadratic covariate effects}
\format{A data frame with 1000 rows and 5 variables:
\describe{
\item{y}{Binary outcom... | /man/ex_logisticquad.Rd | no_license | guhjy/smcfcs | R | false | true | 856 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smcfcs.r
\docType{data}
\name{ex_logisticquad}
\alias{ex_logisticquad}
\title{Simulated example data with binary outcome and quadratic covariate effects}
\format{A data frame with 1000 rows and 5 variables:
\describe{
\item{y}{Binary outcom... |
# Acquire -----------------------------------------------------------------
#' @title Acquire Twitter Tweets
#'
#' @description Function will enable a user to access the twitter API throught the
#' [Twitter Developers Account](https://dev.twitter.com/) site.
#' Once a user has a twitter developers account and has ... | /R/Functions.R | no_license | whaleshark16/SAoTD | R | false | false | 50,941 | r |
# Acquire -----------------------------------------------------------------
#' @title Acquire Twitter Tweets
#'
#' @description Function will enable a user to access the twitter API throught the
#' [Twitter Developers Account](https://dev.twitter.com/) site.
#' Once a user has a twitter developers account and has ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{ip2long}
\alias{ip2long}
\title{Character (dotted-decimal) IPv4 Address Conversion to long integer}
\usage{
ip2long(ip)
}
\arguments{
\item{ip}{input character vector of IPv4 addresses (dotted-decimal)}
}
\value{
v... | /man/ip2long.Rd | no_license | rOpenSec/ipv4heatmap | R | false | false | 535 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{ip2long}
\alias{ip2long}
\title{Character (dotted-decimal) IPv4 Address Conversion to long integer}
\usage{
ip2long(ip)
}
\arguments{
\item{ip}{input character vector of IPv4 addresses (dotted-decimal)}
}
\value{
v... |
\name{xscat}
\alias{xscat}
\title{Concatenate sequences contained in XString, XStringSet
and/or XStringViews objects}
\description{
This function mimics the semantic of \code{paste(..., sep="")}
but accepts \link{XString}, \link{XStringSet} or \link{XStringViews}
arguments and returns an \link{XString} or \... | /man/xscat.Rd | no_license | Bioconductor/Biostrings | R | false | false | 2,179 | rd | \name{xscat}
\alias{xscat}
\title{Concatenate sequences contained in XString, XStringSet
and/or XStringViews objects}
\description{
This function mimics the semantic of \code{paste(..., sep="")}
but accepts \link{XString}, \link{XStringSet} or \link{XStringViews}
arguments and returns an \link{XString} or \... |
\name{anRpackage-package}
\alias{anRpackage-package}
\alias{anRpackage}
\docType{package}
\title{
\packageTitle{anRpackage}
}
\description{
\packageDescription{anRpackage}
}
\details{
The DESCRIPTION file:
\packageDESCRIPTION{anRpackage}
\packageIndices{anRpackage}
~~ An overview of how to use the package, including t... | /anRpackage/man/anRpackage-package.Rd | no_license | Phoebekan/created.r.package | R | false | false | 826 | rd | \name{anRpackage-package}
\alias{anRpackage-package}
\alias{anRpackage}
\docType{package}
\title{
\packageTitle{anRpackage}
}
\description{
\packageDescription{anRpackage}
}
\details{
The DESCRIPTION file:
\packageDESCRIPTION{anRpackage}
\packageIndices{anRpackage}
~~ An overview of how to use the package, including t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_functions.R
\name{square_it_mat}
\alias{square_it_mat}
\title{Expands unit-squares on points.}
\usage{
square_it_mat(X)
}
\arguments{
\item{X}{A data.frame with two columns, named x and y respectively.}
}
\value{
Takes a set of gridpoi... | /man/square_it_mat.Rd | permissive | EmilHvitfeldt/ggtetris | R | false | true | 549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_functions.R
\name{square_it_mat}
\alias{square_it_mat}
\title{Expands unit-squares on points.}
\usage{
square_it_mat(X)
}
\arguments{
\item{X}{A data.frame with two columns, named x and y respectively.}
}
\value{
Takes a set of gridpoi... |
# devtools::install_github("rstudio/keras")
library(keras)
install_tensorflow()
install_tensorflow(gpu = T)
| /keras.R | no_license | mikeyangpro/Projects | R | false | false | 109 | r | # devtools::install_github("rstudio/keras")
library(keras)
install_tensorflow()
install_tensorflow(gpu = T)
|
\name{read.simmap}
\alias{read.simmap}
\title{Read SIMMAP style trees from file}
\usage{
read.simmap(file="", text, format="nexus", rev.order=TRUE, version=1)
}
\arguments{
\item{file}{name of text file with one or multiple SIMMAP v1.0 or v1.5 style trees containing the mapped history of a discrete character.}
... | /man/read.simmap.Rd | no_license | cran/phytools | R | false | false | 3,033 | rd | \name{read.simmap}
\alias{read.simmap}
\title{Read SIMMAP style trees from file}
\usage{
read.simmap(file="", text, format="nexus", rev.order=TRUE, version=1)
}
\arguments{
\item{file}{name of text file with one or multiple SIMMAP v1.0 or v1.5 style trees containing the mapped history of a discrete character.}
... |
#' Estabilish a connection to Servolab Database
#'
#' The function connects to sybase using a JDBC driver. It takes in the host IP address
#' @param servolabIPaddress the ipAddress of the server
#' @param username database username
#' @param password database password
#' @import RJDBC
#' @return returns a jdbc con... | /ServolabR/R/servolabConnection.R | no_license | joebrew/hotspots | R | false | false | 1,382 | r | #' Estabilish a connection to Servolab Database
#'
#' The function connects to sybase using a JDBC driver. It takes in the host IP address
#' @param servolabIPaddress the ipAddress of the server
#' @param username database username
#' @param password database password
#' @import RJDBC
#' @return returns a jdbc con... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OnlyTransferredPatients.R
\name{OnlyTransferredPatients}
\alias{OnlyTransferredPatients}
\title{Only transferred patients}
\usage{
OnlyTransferredPatients(study.sample, transfer.variable.name = "tran",
transfer.value = "Yes", remove.missing... | /man/OnlyTransferredPatients.Rd | permissive | martingerdin/bengaltiger | R | false | true | 962 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OnlyTransferredPatients.R
\name{OnlyTransferredPatients}
\alias{OnlyTransferredPatients}
\title{Only transferred patients}
\usage{
OnlyTransferredPatients(study.sample, transfer.variable.name = "tran",
transfer.value = "Yes", remove.missing... |
#' Mice Weight Data for Paired-Samples Mean Test
#'
#'@description contains the weight of 10 mice before and after the treatment.
#'
#' A paired-samples t-test can be performed to answer to this question.
#'@name mice2
#'@docType data
#'@usage data("mice2")
#'@format A data frame with 10 rows and 3 columns
#' @examples... | /R/mice2.R | no_license | snijesh/datarium | R | false | false | 371 | r | #' Mice Weight Data for Paired-Samples Mean Test
#'
#'@description contains the weight of 10 mice before and after the treatment.
#'
#' A paired-samples t-test can be performed to answer to this question.
#'@name mice2
#'@docType data
#'@usage data("mice2")
#'@format A data frame with 10 rows and 3 columns
#' @examples... |
test_that("KernelRidge", {
# Check kernel ridge with linear kernel == ridge regression
# Make toy dataset
n <- 200
n_test <- 100
X_train <- matrix(runif(n, -2,4), nrow = n, ncol = 1)
y_train <- as.vector(sin(X_train)) + rnorm(n, sd = 0.3) + 10
X_test <- matrix(seq(from = -2, to = 4, length.out = n_test),... | /chigcrim/tests/testthat/test-regression.R | no_license | shannon-wms/chicago-crime | R | false | false | 2,447 | r | test_that("KernelRidge", {
# Check kernel ridge with linear kernel == ridge regression
# Make toy dataset
n <- 200
n_test <- 100
X_train <- matrix(runif(n, -2,4), nrow = n, ncol = 1)
y_train <- as.vector(sin(X_train)) + rnorm(n, sd = 0.3) + 10
X_test <- matrix(seq(from = -2, to = 4, length.out = n_test),... |
#' Baixar todas as publicações do dje São Paulo.
#'
#' @param processo número do processo com ou sem pontos e hífen.
#' @param diretorio default para o diretório atual.
#'
#' @details Esta função não é vetorizada.
#' @return publicações em html
#' @export
#'
baixar_publicacoes_dje <- function(processo, diretorio = ".")... | /R/baixar_publicacoes_dje.R | permissive | jjesusfilho/tjsp | R | false | false | 2,455 | r | #' Baixar todas as publicações do dje São Paulo.
#'
#' @param processo número do processo com ou sem pontos e hífen.
#' @param diretorio default para o diretório atual.
#'
#' @details Esta função não é vetorizada.
#' @return publicações em html
#' @export
#'
baixar_publicacoes_dje <- function(processo, diretorio = ".")... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.