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 |
|---|---|---|---|---|---|---|---|---|---|
# This script prepares the sustherb density data set for comparison agains LiDAR data.
# It is a modification of the script that Ingrid used whihc is moved to trach/Field_data_old.R
# Loading and tidying field data ------------------------------------------
library(readr)
density <- read_csv("data/density.csv")
# D... | /R/Field_data.R | permissive | JamesDMSpeed/LidarMoose | R | false | false | 10,018 | r | # This script prepares the sustherb density data set for comparison agains LiDAR data.
# It is a modification of the script that Ingrid used whihc is moved to trach/Field_data_old.R
# Loading and tidying field data ------------------------------------------
library(readr)
density <- read_csv("data/density.csv")
# D... |
#download data and save to "Data" folder
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
zipFile <- "pm25 emissions.zip"
if (!file.exists(zipFile)) {
download.file(fileUrl, zipFile, mode = "wb")
}
data <- "Data"
if (!file.exists(data)) {
unzip(zipFile)
}
#read files
NEI <- readRDS... | /plot1.R | no_license | pikamegan/Exploratory-Data-Analysis-Course-Project-2 | R | false | false | 669 | r | #download data and save to "Data" folder
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
zipFile <- "pm25 emissions.zip"
if (!file.exists(zipFile)) {
download.file(fileUrl, zipFile, mode = "wb")
}
data <- "Data"
if (!file.exists(data)) {
unzip(zipFile)
}
#read files
NEI <- readRDS... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knitrHelper.R
\name{knitrHelper}
\alias{knitrHelper}
\title{FUNCTION_TITLE}
\usage{
knitrHelper(myfilename = filename, mypathwd = pathwd, computer = "amanMRO")
}
\arguments{
\item{myfilename}{PARAM_DESCRIPTION, Default: filename}
\item{mypat... | /man/knitrHelper.Rd | no_license | holgerman/toolboxH | R | false | true | 563 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knitrHelper.R
\name{knitrHelper}
\alias{knitrHelper}
\title{FUNCTION_TITLE}
\usage{
knitrHelper(myfilename = filename, mypathwd = pathwd, computer = "amanMRO")
}
\arguments{
\item{myfilename}{PARAM_DESCRIPTION, Default: filename}
\item{mypat... |
#' Read in field data into a data.frame
#'
#' @param file
#' a file path for a supported field data format (currently, tsv,
#' csv, or RDS containing a data frame with Date, depth, wtemp or similar columns)
#' @param var_name
#' Name of variable to look for in field_obs file.
#' Should match a GLM simulation variabl... | /R/read_field_obs.R | no_license | hdugan/glmtools | R | false | false | 2,266 | r | #' Read in field data into a data.frame
#'
#' @param file
#' a file path for a supported field data format (currently, tsv,
#' csv, or RDS containing a data frame with Date, depth, wtemp or similar columns)
#' @param var_name
#' Name of variable to look for in field_obs file.
#' Should match a GLM simulation variabl... |
library(ggplot2)
library(tidyr)
library(devtools)
library(dplyr)
library(party)
library(survival)
# target genes selected
genes=c('ENO2',
'NCAM1',
'SYP',
'CHGA',
'FOLH1',
'KLK3 ', "SLC2A1","SLC2A2"
,"SLC2A3",
"SLC2A4","SLC2A5","SLC2A6","SLC2A7","SLC2A8","SLC2A9",... | /R code-BCR prostate cancer project.R | no_license | yadevi/Statistical-Analysis-on-Biochemical-Recurrence-Prostate-Cancer-Among-Patients-in-3-Locations | R | false | false | 16,959 | r | library(ggplot2)
library(tidyr)
library(devtools)
library(dplyr)
library(party)
library(survival)
# target genes selected
genes=c('ENO2',
'NCAM1',
'SYP',
'CHGA',
'FOLH1',
'KLK3 ', "SLC2A1","SLC2A2"
,"SLC2A3",
"SLC2A4","SLC2A5","SLC2A6","SLC2A7","SLC2A8","SLC2A9",... |
\name{calc_t}
\alias{calc_t}
\alias{calc_t_innergrid}
\alias{calc_t_full}
\title{Calculate Canonical Statistic for Potts Model}
\description{
Calculate the canonical statistic 't' for a realization of a Potts
Model
}
\usage{
calc_t_full(x,ncolor)
calc_t_innergrid(x, ncolor, grid, i, j)
calc_t(x, ncolor, grid=NULL, ... | /package/potts/man/calct.Rd | no_license | fgregg/potts | R | false | false | 2,728 | rd | \name{calc_t}
\alias{calc_t}
\alias{calc_t_innergrid}
\alias{calc_t_full}
\title{Calculate Canonical Statistic for Potts Model}
\description{
Calculate the canonical statistic 't' for a realization of a Potts
Model
}
\usage{
calc_t_full(x,ncolor)
calc_t_innergrid(x, ncolor, grid, i, j)
calc_t(x, ncolor, grid=NULL, ... |
#Load clusterProfiler, DOSE, enrichplot, org.Hs.eg.db and call it.
library(clusterProfiler)
library(DOSE)
library(enrichplot)
library(org.Mm.eg.db) # Genome wide annotation for Mouse, primarily based on mapping using Entrez Gene identifiers.
# reading Random_GeneList.csv file
df = read.delim("gene-list.txt", header =... | /gene-ontology/script.r | no_license | mehrapranshu/r | R | false | false | 721 | r | #Load clusterProfiler, DOSE, enrichplot, org.Hs.eg.db and call it.
library(clusterProfiler)
library(DOSE)
library(enrichplot)
library(org.Mm.eg.db) # Genome wide annotation for Mouse, primarily based on mapping using Entrez Gene identifiers.
# reading Random_GeneList.csv file
df = read.delim("gene-list.txt", header =... |
#script for graphs
plot_SPC(df = NHS24_Mon_Fri_AA, cht_title = "NHS 24 Mon-Fri: ALL Contacts per Day",chart_typ = "C", place_title = "Ayrshire and Arran", breakPoint = 43, breakPoint2 = 104)
plot_SPC(cht_title = "NHS 24 Mon-Fri: ALL Contacts per Day",chart_typ = "C", df = NHS24_Mon_Fri_borders, place_title = "Borders"... | /plot_commands.R | no_license | ImogenConnorHelleur/SPC-charts | R | false | false | 38,850 | r | #script for graphs
plot_SPC(df = NHS24_Mon_Fri_AA, cht_title = "NHS 24 Mon-Fri: ALL Contacts per Day",chart_typ = "C", place_title = "Ayrshire and Arran", breakPoint = 43, breakPoint2 = 104)
plot_SPC(cht_title = "NHS 24 Mon-Fri: ALL Contacts per Day",chart_typ = "C", df = NHS24_Mon_Fri_borders, place_title = "Borders"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_sankey.R
\name{create_sankey}
\alias{create_sankey}
\title{Create a sankey chart from a two-column count table}
\usage{
create_sankey(data, var1, var2, count = "n")
}
\arguments{
\item{data}{Data frame of the long count table.}
\item{... | /man/create_sankey.Rd | permissive | Global19/wpa | R | false | true | 935 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_sankey.R
\name{create_sankey}
\alias{create_sankey}
\title{Create a sankey chart from a two-column count table}
\usage{
create_sankey(data, var1, var2, count = "n")
}
\arguments{
\item{data}{Data frame of the long count table.}
\item{... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 12239
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11828
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11828
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Seidl/ASP_Program_Inclusion/S-adeu-21/S-adeu-21.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 2,430 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 12239
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11828
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11828
c
c Input Parameter (command line, ... |
## This first line will likely take a few seconds. Be patient!
NEI <- readRDS("c:/Users/Abel/Desktop/ProgrammingAssignment2/summarySCC_PM25.rds")
SCC <- readRDS("c:/Users/Abel/Desktop/ProgrammingAssignment2/Source_Classification_Code.rds")
#Have total emissions from PM2.5 decreased in the United States from 1999 t... | /plot1.r | no_license | onionsushi/exploratory-graphs | R | false | false | 949 | r | ## This first line will likely take a few seconds. Be patient!
NEI <- readRDS("c:/Users/Abel/Desktop/ProgrammingAssignment2/summarySCC_PM25.rds")
SCC <- readRDS("c:/Users/Abel/Desktop/ProgrammingAssignment2/Source_Classification_Code.rds")
#Have total emissions from PM2.5 decreased in the United States from 1999 t... |
# clear workspace
rm(list = ls ())
# load packages
pacman::p_load(raster, dismo, rgeos, sp, spdep)
# load functions
source('Z:/users/joshua/Snakebite/snakebite/bespoke_functions_cluster.R')
# read in snakelist
snake_list <- read.csv('Z:/users/joshua/Snakebite/snakebite/snake_list.csv',
strings... | /oor_ranking.R | no_license | kostask84/snakebite | R | false | false | 2,598 | r | # clear workspace
rm(list = ls ())
# load packages
pacman::p_load(raster, dismo, rgeos, sp, spdep)
# load functions
source('Z:/users/joshua/Snakebite/snakebite/bespoke_functions_cluster.R')
# read in snakelist
snake_list <- read.csv('Z:/users/joshua/Snakebite/snakebite/snake_list.csv',
strings... |
# =============================================================================
# I. Here you can
# 1. import necessary R packages for your prediction
# 2. load your own files containing trained models, engineered features, extra data etc. for prediction
# 3. set some global constants
# Note:
# 1. You should pu... | /R/demo1/demo1.R | no_license | HorseRacingPrediction/Model | R | false | false | 5,599 | r | # =============================================================================
# I. Here you can
# 1. import necessary R packages for your prediction
# 2. load your own files containing trained models, engineered features, extra data etc. for prediction
# 3. set some global constants
# Note:
# 1. You should pu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_refseq.R
\name{download_refseq}
\alias{download_refseq}
\title{Download RefSeq genome libraries}
\usage{
download_refseq(kingdom, reference = TRUE, representative = FALSE,
compress = TRUE)
}
\arguments{
\item{kingdom}{Select the ki... | /man/download_refseq.Rd | no_license | wevanjohnson/animalcules.preprocess | R | false | true | 1,784 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_refseq.R
\name{download_refseq}
\alias{download_refseq}
\title{Download RefSeq genome libraries}
\usage{
download_refseq(kingdom, reference = TRUE, representative = FALSE,
compress = TRUE)
}
\arguments{
\item{kingdom}{Select the ki... |
library(rms)
library(missForest)
library(pROC)
library(shiny)
library(precrec)
library(caret)
library(e1071)
library(mlr)
library(survival)
library(regplot)
Data <- read.csv("./Data4.csv", sep=",", dec=".")
Data <- Data[complete.cases(Data),]
ddist <- datadist(Data)
ddist$limits$hf[3] <- 30
ddist$limits$hf[5] <- 30
dd... | /Nomogram Ala.R | no_license | precision-medicine-um/Selectively-Targeting-Tumor-Hypoxia-by-CP-506 | R | false | false | 652 | r | library(rms)
library(missForest)
library(pROC)
library(shiny)
library(precrec)
library(caret)
library(e1071)
library(mlr)
library(survival)
library(regplot)
Data <- read.csv("./Data4.csv", sep=",", dec=".")
Data <- Data[complete.cases(Data),]
ddist <- datadist(Data)
ddist$limits$hf[3] <- 30
ddist$limits$hf[5] <- 30
dd... |
#' Reliability analyse
#'
#' Provide a reliability analyse return in Krippen alpha, fleiss kappa and gwet AC1
#'
#' @param raterData : a raterData class
#' @param summary a boolean. If TRUE then the Reliability indicator will be printed out in the console
#' @param threads the number of threads to run in parallel
#'
#... | /R/reliability.R | no_license | LAAC-LSCP/ChildRecordsR | R | false | false | 2,662 | r |
#' Reliability analyse
#'
#' Provide a reliability analyse return in Krippen alpha, fleiss kappa and gwet AC1
#'
#' @param raterData : a raterData class
#' @param summary a boolean. If TRUE then the Reliability indicator will be printed out in the console
#' @param threads the number of threads to run in parallel
#'
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HessFeaturePlot.R
\name{HessFeaturePlot}
\alias{HessFeaturePlot}
\title{Feature sensitivity plot}
\usage{
HessFeaturePlot(object, fdata = NULL, ...)
}
\arguments{
\item{object}{fitted neural network model or \code{array} containing t... | /man/HessFeaturePlot.Rd | no_license | cran/NeuralSens | R | false | true | 2,554 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HessFeaturePlot.R
\name{HessFeaturePlot}
\alias{HessFeaturePlot}
\title{Feature sensitivity plot}
\usage{
HessFeaturePlot(object, fdata = NULL, ...)
}
\arguments{
\item{object}{fitted neural network model or \code{array} containing t... |
#' Printing methods
#'
#' Printing methods for outputs of \code{bnmonitor} functions
#'
#' @param x an appropriate object
#' @param ... for compatibility
#' @name print
#' @return Printing specific to the object it is applied to.
NULL
#'@export
#'@rdname print
#'
#'
print.sensitivity <- function(x,...){
print(x$se... | /R/print.R | no_license | manueleleonelli/bnmonitor | R | false | false | 1,952 | r |
#' Printing methods
#'
#' Printing methods for outputs of \code{bnmonitor} functions
#'
#' @param x an appropriate object
#' @param ... for compatibility
#' @name print
#' @return Printing specific to the object it is applied to.
NULL
#'@export
#'@rdname print
#'
#'
print.sensitivity <- function(x,...){
print(x$se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/miscFunctions.R
\name{ilapply}
\alias{ilapply}
\title{ilapply
an invisible version of lapply}
\usage{
ilapply(X, FUN, ...)
}
\description{
ilapply
an invisible version of lapply
}
| /man/ilapply.Rd | no_license | hferg/BTprocessR | R | false | true | 258 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/miscFunctions.R
\name{ilapply}
\alias{ilapply}
\title{ilapply
an invisible version of lapply}
\usage{
ilapply(X, FUN, ...)
}
\description{
ilapply
an invisible version of lapply
}
|
convert_spatial <- function(trimesh_obj, material){
} | /aftool/R/convert.R | no_license | MilesMcBain/vr_vs_sp | R | false | false | 56 | r | convert_spatial <- function(trimesh_obj, material){
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Poisson_IRR.R
\name{Possion_IRR}
\alias{Possion_IRR}
\title{Variable Effect IRR risk ratio/risk ration Interpretation
This function returns risk ratio coefficient for variable
with 95 percent confidence interval and Pr>|z|}
\usage{
Possion_IR... | /man/Possion_IRR.Rd | no_license | frankcj6/Poisson_glm_tools | R | false | true | 709 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Poisson_IRR.R
\name{Possion_IRR}
\alias{Possion_IRR}
\title{Variable Effect IRR risk ratio/risk ration Interpretation
This function returns risk ratio coefficient for variable
with 95 percent confidence interval and Pr>|z|}
\usage{
Possion_IR... |
#scenario 1
M=100
resa<-array(data = 0,dim = c(16,M*3))
NM= 1000
post.popul <- array(0,M)
max.popul <- array(0,M)
set.seed(040590)
X1<- as.data.frame(array(data = rbinom(n = 50*100,size = 1,prob = runif(n = 50*100,0,1)),dim = c(100,50)))
Y1<-rnorm(n = 100,mean = 1+0.7*(X1$V1*X1$V4) + 0.8896846*(X1$V8*X1$V11)+1.434573*... | /examples/QTL logic regression (trash)/simulations.R | no_license | aliaksah/EMJMCMC2016 | R | false | false | 15,337 | r | #scenario 1
M=100
resa<-array(data = 0,dim = c(16,M*3))
NM= 1000
post.popul <- array(0,M)
max.popul <- array(0,M)
set.seed(040590)
X1<- as.data.frame(array(data = rbinom(n = 50*100,size = 1,prob = runif(n = 50*100,0,1)),dim = c(100,50)))
Y1<-rnorm(n = 100,mean = 1+0.7*(X1$V1*X1$V4) + 0.8896846*(X1$V8*X1$V11)+1.434573*... |
\alias{gtkTextBufferCreateMark}
\name{gtkTextBufferCreateMark}
\title{gtkTextBufferCreateMark}
\description{Creates a mark at position \code{where}. If \code{mark.name} is \code{NULL}, the mark
is anonymous; otherwise, the mark can be retrieved by name using
\code{\link{gtkTextBufferGetMark}}. If a mark has left gravit... | /RGtk2/man/gtkTextBufferCreateMark.Rd | no_license | lawremi/RGtk2 | R | false | false | 1,448 | rd | \alias{gtkTextBufferCreateMark}
\name{gtkTextBufferCreateMark}
\title{gtkTextBufferCreateMark}
\description{Creates a mark at position \code{where}. If \code{mark.name} is \code{NULL}, the mark
is anonymous; otherwise, the mark can be retrieved by name using
\code{\link{gtkTextBufferGetMark}}. If a mark has left gravit... |
model <- xgboost::xgb.load("data/xgboost")
rec_obj <- readRDS("data/recipe.rds")
readCity <- function(city){
out <- tryCatch({
get_forecast(city, units = "metric") %>%
owmr_as_tibble()
},
error = function(cond){
message("Wrong city name")
}
)
return(out)
}
prepare_data <- function(df, hourly... | /App/helper.R | no_license | jyjek/testTask | R | false | false | 4,332 | r | model <- xgboost::xgb.load("data/xgboost")
rec_obj <- readRDS("data/recipe.rds")
readCity <- function(city){
out <- tryCatch({
get_forecast(city, units = "metric") %>%
owmr_as_tibble()
},
error = function(cond){
message("Wrong city name")
}
)
return(out)
}
prepare_data <- function(df, hourly... |
\name{loadDatabaseSchema}
\alias{loadDatabaseSchema}
\title{Load the compendium database schema
}
\description{
Load a database schema file to the compendium database in the
\code{MySQL} server
}
\usage{
loadDatabaseSchema(con, updateSchema = FALSE , file = "")
}
\arguments{
\item{con}{
\code... | /man/loadDatabaseSchema.Rd | no_license | cran/compendiumdb | R | false | false | 1,650 | rd | \name{loadDatabaseSchema}
\alias{loadDatabaseSchema}
\title{Load the compendium database schema
}
\description{
Load a database schema file to the compendium database in the
\code{MySQL} server
}
\usage{
loadDatabaseSchema(con, updateSchema = FALSE , file = "")
}
\arguments{
\item{con}{
\code... |
# R Benchmark 2.5 (06/2008) [Simon Urbanek]
# version 2.5: scaled to get roughly 1s per test, R 2.7.0 @ 2.6GHz Mac Pro
# R Benchmark 2.4 (06/2008) [Simon Urbanek]
# version 2.4 adapted to more recent Matrix package
# R Benchmark 2.3 (21 April 2004)
# Warning: changes are not carefully checked yet!
# version 2.3 adapted... | /benchmarks/R-benchmark-2.5.R | no_license | mikebailey/setup-scripts | R | false | false | 13,306 | r | # R Benchmark 2.5 (06/2008) [Simon Urbanek]
# version 2.5: scaled to get roughly 1s per test, R 2.7.0 @ 2.6GHz Mac Pro
# R Benchmark 2.4 (06/2008) [Simon Urbanek]
# version 2.4 adapted to more recent Matrix package
# R Benchmark 2.3 (21 April 2004)
# Warning: changes are not carefully checked yet!
# version 2.3 adapted... |
#####################################################################
# start with clean slate:
# rm(list = ls())
#####################################################################
#bring in libraries
library(CPUE)
library(stringr) #for str_trim
library(shiny)
library(reshape)
library(ncdf.tools)
librar... | /R/(00)Initialisation.r | no_license | mcgregorv/SSRmultiSpecies | R | false | false | 3,164 | r | #####################################################################
# start with clean slate:
# rm(list = ls())
#####################################################################
#bring in libraries
library(CPUE)
library(stringr) #for str_trim
library(shiny)
library(reshape)
library(ncdf.tools)
librar... |
library("dplyr")
library("ggpubr")
library("ggplot2")
# collapsing technical replicates and ordering pheno with count
data <- collapse.rep(counts, pheno.data)
countdata <- data[[1]]
pheno.coll <- data[[2]]
# collapsed stats
length(unique(pheno.coll$indiv[pheno.coll$pheno == "C"])) # unique C individuals
length(uniqu... | /propd_sampling.R | no_license | brendan4/DBA_project | R | false | false | 40,051 | r | library("dplyr")
library("ggpubr")
library("ggplot2")
# collapsing technical replicates and ordering pheno with count
data <- collapse.rep(counts, pheno.data)
countdata <- data[[1]]
pheno.coll <- data[[2]]
# collapsed stats
length(unique(pheno.coll$indiv[pheno.coll$pheno == "C"])) # unique C individuals
length(uniqu... |
%% ----------------------------------------------------------------------------
%% Header
\name{Kapitel 4}
\alias{Kapitel 4}
\encoding{UTF-8}
\title{Kapitel 4: Differenzielles Itemfunktionieren in Subgruppen}
\description{
Das ist die Nutzerseite zum Kapitel 4, \emph{Differenzielles Itemfunktionieren
in Sub... | /man/04_DIF__20220517.Rd | no_license | cran/LSAmitR | R | false | false | 7,851 | rd | %% ----------------------------------------------------------------------------
%% Header
\name{Kapitel 4}
\alias{Kapitel 4}
\encoding{UTF-8}
\title{Kapitel 4: Differenzielles Itemfunktionieren in Subgruppen}
\description{
Das ist die Nutzerseite zum Kapitel 4, \emph{Differenzielles Itemfunktionieren
in Sub... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loadings_table_psych.R
\name{loadings_table_psych}
\alias{loadings_table_psych}
\title{Factor loadings table from psych object}
\usage{
loadings_table_psych(psych_object, cutoff = 0.2, roundto = 3,
trim = 0, fac.lab = NULL, var.lab = NULL, ... | /man/loadings_table_psych.Rd | no_license | Shareryu/FAtools | R | false | true | 1,102 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loadings_table_psych.R
\name{loadings_table_psych}
\alias{loadings_table_psych}
\title{Factor loadings table from psych object}
\usage{
loadings_table_psych(psych_object, cutoff = 0.2, roundto = 3,
trim = 0, fac.lab = NULL, var.lab = NULL, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataDocs.R
\docType{data}
\name{exampleString}
\alias{exampleString}
\title{A paragraph of text for testing various text-based functions}
\format{character vector with one element}
\description{
This is a long paragraph (2,914 characters) of ... | /man/exampleString.Rd | no_license | HaiyanLW/quanteda | R | false | true | 435 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataDocs.R
\docType{data}
\name{exampleString}
\alias{exampleString}
\title{A paragraph of text for testing various text-based functions}
\format{character vector with one element}
\description{
This is a long paragraph (2,914 characters) of ... |
library(fpc)
library(cluster)
# gather and massage data
col_names=c("query", "qtype", "qlen", "tld_len", "subs_c", "sub_len", "domain_len", "domain_uchars_c", "domain_grams_c", "domain_entropy")
col_classes=c("character", "integer", "integer", "integer", "integer", "integer", "integer", "integer", "integer", "double"... | /post-processing/p.R | no_license | anthonykasza/nxes | R | false | false | 937 | r | library(fpc)
library(cluster)
# gather and massage data
col_names=c("query", "qtype", "qlen", "tld_len", "subs_c", "sub_len", "domain_len", "domain_uchars_c", "domain_grams_c", "domain_entropy")
col_classes=c("character", "integer", "integer", "integer", "integer", "integer", "integer", "integer", "integer", "double"... |
###
### Load any db objects whenever the package is loaded.
### Copied over from TxDb.Athaliana.BioMart.plantsmart19
.onLoad <- function(libname, pkgname)
{
ns <- asNamespace(pkgname)
path <- system.file("extdata", package=pkgname, lib.loc=libname)
files <- dir(path, pattern="*.sqlite")
for (i in seq_len(lengt... | /R/zzz.R | no_license | vsbuffalo/TxDb.Zmays.Ensembl.AGPv2.17 | R | false | false | 579 | r | ###
### Load any db objects whenever the package is loaded.
### Copied over from TxDb.Athaliana.BioMart.plantsmart19
.onLoad <- function(libname, pkgname)
{
ns <- asNamespace(pkgname)
path <- system.file("extdata", package=pkgname, lib.loc=libname)
files <- dir(path, pattern="*.sqlite")
for (i in seq_len(lengt... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
.fpop <- function(data, penalty, min_mean, max_mean, cost_mat_r, end_vec_r, mean_vec_r, intervals_mat_r) {
.Call(`_ChangepointInference_fpop_interface2`, data, penalty, min_mean, max_mean, ... | /R/RcppExports.R | no_license | jewellsean/ChangepointInference | R | false | false | 929 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
.fpop <- function(data, penalty, min_mean, max_mean, cost_mat_r, end_vec_r, mean_vec_r, intervals_mat_r) {
.Call(`_ChangepointInference_fpop_interface2`, data, penalty, min_mean, max_mean, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get-from-simulation.R
\name{model}
\alias{model}
\title{Get one or more models from a simulation}
\usage{
model(sim, ..., subset = NULL, reference = FALSE)
}
\arguments{
\item{sim}{a simulation object}
\item{...}{logical conditions to specif... | /man/model.Rd | no_license | zdk123/simulator | R | false | true | 1,709 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get-from-simulation.R
\name{model}
\alias{model}
\title{Get one or more models from a simulation}
\usage{
model(sim, ..., subset = NULL, reference = FALSE)
}
\arguments{
\item{sim}{a simulation object}
\item{...}{logical conditions to specif... |
.onLoad <- function(libname, pkgname) {
rJava::.jpackage(pkgname, lib.loc = libname)
}
#' @title
#' runBeast
#'
#' @description
#' \code{runBeast} spins up BEAST
#'
#' @details
#' This function executes BEAST through rJava.
#'
#' @param commandLine Command-line string to pass to BEAST
#'
#' @examples
#' runBeast... | /R/plotStackedAreas.R | permissive | venkataduvvuri/RBeast | R | false | false | 3,290 | r |
.onLoad <- function(libname, pkgname) {
rJava::.jpackage(pkgname, lib.loc = libname)
}
#' @title
#' runBeast
#'
#' @description
#' \code{runBeast} spins up BEAST
#'
#' @details
#' This function executes BEAST through rJava.
#'
#' @param commandLine Command-line string to pass to BEAST
#'
#' @examples
#' runBeast... |
# Farees Patel
# HomeWork-3 (Cleaning/ Munging Dataframes)
#Task
#1
WebUrl<- "http://www.census.gov/popest/data/state/totals/2011/tables/NST-EST2011-01.csv" # Load the web url into a variable
#2
readStates<-read.csv(url(WebUrl)) #Read the URL and load the dataset into a data frame
#3
str(readStates) #To... | /HomeWork-3(FareesPatel).R | no_license | fareespatel/Applied-Data-Science-HomeWork | R | false | false | 3,475 | r | # Farees Patel
# HomeWork-3 (Cleaning/ Munging Dataframes)
#Task
#1
WebUrl<- "http://www.census.gov/popest/data/state/totals/2011/tables/NST-EST2011-01.csv" # Load the web url into a variable
#2
readStates<-read.csv(url(WebUrl)) #Read the URL and load the dataset into a data frame
#3
str(readStates) #To... |
library(shiny)
library(DT)
shinyUI(navbarPage(
"MDPlotR: interactive mass defect plots",
# theme = shinytheme('spacelab'),
tabPanel("Get Started",
fluidPage(sidebarLayout(
sidebarPanel(
fileInput(
... | /inst/shinyapps/MDPlot/ui.R | no_license | WBS-TW/enviGCMS | R | false | false | 5,825 | r | library(shiny)
library(DT)
shinyUI(navbarPage(
"MDPlotR: interactive mass defect plots",
# theme = shinytheme('spacelab'),
tabPanel("Get Started",
fluidPage(sidebarLayout(
sidebarPanel(
fileInput(
... |
# Clear workspace
rm(list = ls())
# Setup
################################################################################
# Packages
library(tidyverse)
# Directories
inputdir <- "data"
outputdir <- "postpub_requests/data"
# Read data
load(paste(inputdir, "data_composite_final_sst.Rdata", sep="/"))
data_orig <- da... | /postpub_requests/build_final_dataset.R | no_license | cfree14/forage_fish | R | false | false | 1,144 | r |
# Clear workspace
rm(list = ls())
# Setup
################################################################################
# Packages
library(tidyverse)
# Directories
inputdir <- "data"
outputdir <- "postpub_requests/data"
# Read data
load(paste(inputdir, "data_composite_final_sst.Rdata", sep="/"))
data_orig <- da... |
\name{resboxdummy}
\alias{resboxdummy}
\title{Draws the box plot of residuals for a dummy variable}
\description{This function draws a box-plot of the residuals Res for a discrete numeric variable XVar.}
\usage{resboxdummy(Res, XVar, Weight = F, MyMain = "", savPlt = "",
DispVal = T, confint = T, SignLim =... | /Goodies/man/resboxdummy.Rd | no_license | Kuvelkar/TEST | R | false | false | 1,357 | rd | \name{resboxdummy}
\alias{resboxdummy}
\title{Draws the box plot of residuals for a dummy variable}
\description{This function draws a box-plot of the residuals Res for a discrete numeric variable XVar.}
\usage{resboxdummy(Res, XVar, Weight = F, MyMain = "", savPlt = "",
DispVal = T, confint = T, SignLim =... |
# get node names in pathways
pathway.nodes = function(pathway) {
if(class(pathway) != "igraph") {
stop("Wrong class for pathway.\n")
}
n = vcount(pathway)
name = get.vertex.attribute(pathway, "name")
if(length(name)) {
return(name)
}
else {
return(1:n)
}... | /CePa/R/pathway.nodes.R | no_license | ingted/R-Examples | R | false | false | 323 | r | # get node names in pathways
pathway.nodes = function(pathway) {
if(class(pathway) != "igraph") {
stop("Wrong class for pathway.\n")
}
n = vcount(pathway)
name = get.vertex.attribute(pathway, "name")
if(length(name)) {
return(name)
}
else {
return(1:n)
}... |
#' @export
dcmCompare <-
function(DCM1, DCM2){
bf<-list()
cat('\n','AIC overall Bayes Factor','\n\n')
nats <- -1*(DCM1$AIC-DCM2$AIC)
bits <- nats/log(2)
bf_aic <- 2^(-bits)
bf$bf_aic <- bf_aic
cat(' BF: ',bf_aic,'\n')
cat ('\n','BIC overall Bayes Factor','\n\n')
... | /R/dcmCompare.R | no_license | cran/FIAR | R | false | false | 483 | r | #' @export
dcmCompare <-
function(DCM1, DCM2){
bf<-list()
cat('\n','AIC overall Bayes Factor','\n\n')
nats <- -1*(DCM1$AIC-DCM2$AIC)
bits <- nats/log(2)
bf_aic <- 2^(-bits)
bf$bf_aic <- bf_aic
cat(' BF: ',bf_aic,'\n')
cat ('\n','BIC overall Bayes Factor','\n\n')
... |
context("Addition operations")
test_that("addition handles daylight savings time", {
x <- ctus("2010-03-14 01:02:03")
y <- ctus("2010-03-15 01:02:03")
expect_equal(time_add(x, days = 1), y)
expect_equal(time_add(x, hours = 1, minutes = 50, roll_dst = "skip"), ctus("2010-03-14 03:52:03"))
expect_equal(time_a... | /tests/testthat/test-addition.R | no_license | DavisVaughan/timechange | R | false | false | 9,106 | r | context("Addition operations")
test_that("addition handles daylight savings time", {
x <- ctus("2010-03-14 01:02:03")
y <- ctus("2010-03-15 01:02:03")
expect_equal(time_add(x, days = 1), y)
expect_equal(time_add(x, hours = 1, minutes = 50, roll_dst = "skip"), ctus("2010-03-14 03:52:03"))
expect_equal(time_a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_operations}
\alias{lightsail_get_operations}
\title{Returns information about all operations}
\usage{
lightsail_get_operations(pageToken)
}
\arguments{
\item{pageToken}{The token to advance to the ne... | /paws/man/lightsail_get_operations.Rd | permissive | jcheng5/paws | R | false | true | 972 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_operations}
\alias{lightsail_get_operations}
\title{Returns information about all operations}
\usage{
lightsail_get_operations(pageToken)
}
\arguments{
\item{pageToken}{The token to advance to the ne... |
for (i in c(6,7,8,9)) {
print(1 - ppois(1, i))
print(ppois(1, i, lower.tail = FALSE))
}
| /DASS/HW06/6-1.R | no_license | kartikadur/miniature-spoon | R | false | false | 96 | r | for (i in c(6,7,8,9)) {
print(1 - ppois(1, i))
print(ppois(1, i, lower.tail = FALSE))
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aaa.R
\name{vault_client_object}
\alias{vault_client_object}
\title{Base object type}
\description{
Base object type
Base object type
}
\details{
Base object used by vaultr for all objects
}
\examples{
server <- vaultr::vault_test_server(if... | /man/vault_client_object.Rd | permissive | nviraj/vaultr | R | false | true | 2,026 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aaa.R
\name{vault_client_object}
\alias{vault_client_object}
\title{Base object type}
\description{
Base object type
Base object type
}
\details{
Base object used by vaultr for all objects
}
\examples{
server <- vaultr::vault_test_server(if... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/netlm.grpd.R
\name{netlm.grpd}
\alias{netlm.grpd}
\title{Linear Regression for Network Data with grouped random permutation}
\usage{
netlm.grpd(
y,
x,
intercept = TRUE,
mode = "digraph",
diag = FALSE,
grp.ns = NULL,
nullhyp = c(... | /man/netlm.grpd.Rd | no_license | SNAnalyst/vogeltools | R | false | true | 3,738 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/netlm.grpd.R
\name{netlm.grpd}
\alias{netlm.grpd}
\title{Linear Regression for Network Data with grouped random permutation}
\usage{
netlm.grpd(
y,
x,
intercept = TRUE,
mode = "digraph",
diag = FALSE,
grp.ns = NULL,
nullhyp = c(... |
## ---- plotdata ----
## Example on sparrow data (Original source Bumpus 1898.)
sparrow <- read.table(paste("http://www.ndsu.nodak.edu/ndsu/doetkott/",
"introsas/rawdata/bumpus.html", sep = ""),
skip=20, nrows=49,
col.names=c("id", "total", "alar"... | /examples/templates/lyx/extern.R | no_license | represWS/CourseMaterials | R | false | false | 1,287 | r | ## ---- plotdata ----
## Example on sparrow data (Original source Bumpus 1898.)
sparrow <- read.table(paste("http://www.ndsu.nodak.edu/ndsu/doetkott/",
"introsas/rawdata/bumpus.html", sep = ""),
skip=20, nrows=49,
col.names=c("id", "total", "alar"... |
rm(list = ls(all.names = TRUE))
rm(list = objects(all.names = TRUE))
#dev.off()
########################################################################
## This script is for Project 3, Stat 998, Spring 2016
## This script reads in california data set and makes exploratory plots
#######################################... | /Project3/RScripts_MAC/RS04_PredictionErrors.R | no_license | snandi/Stat998_Spring2016 | R | false | false | 9,811 | r | rm(list = ls(all.names = TRUE))
rm(list = objects(all.names = TRUE))
#dev.off()
########################################################################
## This script is for Project 3, Stat 998, Spring 2016
## This script reads in california data set and makes exploratory plots
#######################################... |
# Thinh Pham & Katherine M. Prioli
# Makeover Monday - reproduce original graph
# Sun Oct 07 11:07:50 2018 ------------------------------
#### Libraries ----
library(tidyverse)
#### Read in and subset data ----
incomedata <- read_csv("data/ACS_16_1YR_S1901_with_ann.csv")
incomedata <- incomedata %>% select("GEO.d... | /code/reprod-orig-graph.R | no_license | kmprioliPROF/Makeover_Monday | R | false | false | 5,713 | r | # Thinh Pham & Katherine M. Prioli
# Makeover Monday - reproduce original graph
# Sun Oct 07 11:07:50 2018 ------------------------------
#### Libraries ----
library(tidyverse)
#### Read in and subset data ----
incomedata <- read_csv("data/ACS_16_1YR_S1901_with_ann.csv")
incomedata <- incomedata %>% select("GEO.d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fastaibuilt.R
\name{crappifier}
\alias{crappifier}
\title{Crappifier}
\usage{
crappifier(path_lr, path_hr)
}
\arguments{
\item{path_lr}{path from (origin)}
\item{path_hr}{path to (destination)}
}
\value{
None
}
\description{
Crappifier
}
\ex... | /man/crappifier.Rd | permissive | Cdk29/fastai | R | false | true | 424 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fastaibuilt.R
\name{crappifier}
\alias{crappifier}
\title{Crappifier}
\usage{
crappifier(path_lr, path_hr)
}
\arguments{
\item{path_lr}{path from (origin)}
\item{path_hr}{path to (destination)}
}
\value{
None
}
\description{
Crappifier
}
\ex... |
#' BMP image of phase map of cross section of modern oyster.
#'
#' An image of the microXRF phase map of the cross section used for this model
#' from the Crassostre gigas #1 oyster used as an example in de Winter (2017)
#'
#' @docType data
#'
#' @usage data(BMP)
#'
#' @format A BMP image imported into R as a large dat... | /R/BMP.R | no_license | nielsjdewinter/ShellTrace | R | false | false | 402 | r | #' BMP image of phase map of cross section of modern oyster.
#'
#' An image of the microXRF phase map of the cross section used for this model
#' from the Crassostre gigas #1 oyster used as an example in de Winter (2017)
#'
#' @docType data
#'
#' @usage data(BMP)
#'
#' @format A BMP image imported into R as a large dat... |
## create Plot 5
## Packages
require(ggplot2)
## Open RDS
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
NEI$year <- factor(NEI$year, levels = c('1999', '2002', '2005', '2008'))
## Baltimore City, Maryland == fips
MD.onroad <- subset(NEI, fips == 24510 & type == 'ON-ROAD')... | /Project 2/Plot5.R | no_license | ItahisaMR/Exploratory-Data-Analysis | R | false | false | 865 | r | ## create Plot 5
## Packages
require(ggplot2)
## Open RDS
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
NEI$year <- factor(NEI$year, levels = c('1999', '2002', '2005', '2008'))
## Baltimore City, Maryland == fips
MD.onroad <- subset(NEI, fips == 24510 & type == 'ON-ROAD')... |
## This code is part of the ips package
## © C. Heibl 2014 (last update 2017-04-06)
#' @title Sequence Alignment with MAFFT
#' @description This function is a wrapper for MAFFT and can be used for
#' (profile) aligning of DNA and aminoacis sequences.
#' @param x An object of class \code{DNAbin} or \code{AAbin}.
#' ... | /R/mafft.R | no_license | richelbilderbeek/ips | R | false | false | 8,358 | r | ## This code is part of the ips package
## © C. Heibl 2014 (last update 2017-04-06)
#' @title Sequence Alignment with MAFFT
#' @description This function is a wrapper for MAFFT and can be used for
#' (profile) aligning of DNA and aminoacis sequences.
#' @param x An object of class \code{DNAbin} or \code{AAbin}.
#' ... |
# Data Check Script for PO Data
# -----------------------------------------------------------------------------
# Data already published:
# Rozewski DM, Herman SEM, Towns WH, Mahoney E, Stefanovski MR, Shin JD, et al.
# Pharmacokinetics and Tissue Disposition of Lenalidomide in Mice. AAPS J.
# 2012;14(4):872-82.
# ----... | /rscripts/data_po.R | no_license | jhhughes256/len_pbpk | R | false | false | 2,853 | r | # Data Check Script for PO Data
# -----------------------------------------------------------------------------
# Data already published:
# Rozewski DM, Herman SEM, Towns WH, Mahoney E, Stefanovski MR, Shin JD, et al.
# Pharmacokinetics and Tissue Disposition of Lenalidomide in Mice. AAPS J.
# 2012;14(4):872-82.
# ----... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MICRO-Landscape-Parameters.R
\name{pointsClustered}
\alias{pointsClustered}
\title{Generate Matern Clustering Point Pattern for Landscape Sites}
\usage{
pointsClustered(n, meanParents = 10, clusteredness = 0.25, xLim = c(0, 1),
yLim = c(0, ... | /man/pointsClustered.Rd | no_license | smitdave/MASH | R | false | true | 979 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MICRO-Landscape-Parameters.R
\name{pointsClustered}
\alias{pointsClustered}
\title{Generate Matern Clustering Point Pattern for Landscape Sites}
\usage{
pointsClustered(n, meanParents = 10, clusteredness = 0.25, xLim = c(0, 1),
yLim = c(0, ... |
# BEMTOOL - Bio-Economic Model TOOLs - version 2.5
# Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018
# COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy
# In case of use of the model, the Authors should be cited.
# If you have any comments or suggestions please contact the following e... | /BEMTOOL-ver2.5-2018_0901/bmtgui/economic_params/economic_params_price - Copia.r | no_license | gustavdelius/BEMTOOL2.5 | R | false | false | 14,348 | r | # BEMTOOL - Bio-Economic Model TOOLs - version 2.5
# Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018
# COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy
# In case of use of the model, the Authors should be cited.
# If you have any comments or suggestions please contact the following e... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is_edge_multiple.R
\name{is_edge_multiple}
\alias{is_edge_multiple}
\title{Is the edge a multiple edge?}
\usage{
is_edge_multiple(graph, edge)
}
\arguments{
\item{graph}{a graph object of class
\code{dgr_graph}.}
\item{edge}{a numeric edge I... | /man/is_edge_multiple.Rd | permissive | akkalbist55/DiagrammeR | R | false | true | 936 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is_edge_multiple.R
\name{is_edge_multiple}
\alias{is_edge_multiple}
\title{Is the edge a multiple edge?}
\usage{
is_edge_multiple(graph, edge)
}
\arguments{
\item{graph}{a graph object of class
\code{dgr_graph}.}
\item{edge}{a numeric edge I... |
\name{ibr.fit}
\alias{ibr.fit}
\title{Iterative bias reduction smoothing}
\description{
Performs iterative bias reduction using kernel, thin plate
splines, Duchon splines or low rank splines.
Missing values are not allowed. This function is not intended to be used directly.
}
\usage{
ibr.fit(x, y, criterion="g... | /man/ibr.fit.Rd | no_license | cran/ibr | R | false | false | 12,747 | rd | \name{ibr.fit}
\alias{ibr.fit}
\title{Iterative bias reduction smoothing}
\description{
Performs iterative bias reduction using kernel, thin plate
splines, Duchon splines or low rank splines.
Missing values are not allowed. This function is not intended to be used directly.
}
\usage{
ibr.fit(x, y, criterion="g... |
library(shiny)
library(shinydashboard)
library(mapview)
library(sp)
library(RCurl)
library(ggplot2)
library(tidyr)
library(dplyr)
library(scales)
library(data.table)
library(RColorBrewer)
library(benford.analysis)
library(mapproj)
library(DT)
## This code loads in the data. the data is in the data file
# globla.r
sta... | /global.R | permissive | coquito77/KnownCityCrimes | R | false | false | 1,719 | r | library(shiny)
library(shinydashboard)
library(mapview)
library(sp)
library(RCurl)
library(ggplot2)
library(tidyr)
library(dplyr)
library(scales)
library(data.table)
library(RColorBrewer)
library(benford.analysis)
library(mapproj)
library(DT)
## This code loads in the data. the data is in the data file
# globla.r
sta... |
library(devtools)
install_github("cpsievert/pitchRx")
library(pitchRx)
library(tidyverse)
library(doParallel)
# Create an empty database instance.
con <- dbConnect(RSQLite::SQLite(), dbname = "mlbgameday.sqlite3")
# Optional: Use parallel processing to populate the database with Spring Training Games.
# Set the num... | /examples of running pitchRx.R | no_license | shonmagnan/Baseball | R | false | false | 2,648 | r | library(devtools)
install_github("cpsievert/pitchRx")
library(pitchRx)
library(tidyverse)
library(doParallel)
# Create an empty database instance.
con <- dbConnect(RSQLite::SQLite(), dbname = "mlbgameday.sqlite3")
# Optional: Use parallel processing to populate the database with Spring Training Games.
# Set the num... |
Plot1 <-function () {
data<-read.csv("household_power_consumption.txt",sep=";",nrows=5000,skip=65500)
namesofcols<-colnames(read.csv("household_power_consumption.txt",sep=";",nrows=1))
names(data)<-namesofcols
day1<-data[data$Date=="1/2/2007",]
#head(datos1)
day2<-data[data$Date=="2/2/2007",]
... | /Plot1.R | no_license | opencon75/ExData_Plotting1 | R | false | false | 701 | r | Plot1 <-function () {
data<-read.csv("household_power_consumption.txt",sep=";",nrows=5000,skip=65500)
namesofcols<-colnames(read.csv("household_power_consumption.txt",sep=";",nrows=1))
names(data)<-namesofcols
day1<-data[data$Date=="1/2/2007",]
#head(datos1)
day2<-data[data$Date=="2/2/2007",]
... |
#Comentário
#Tem que selecionar a linha, ou as linhas, para poder executar
#Quatro operações básicas
#Adição
4 + 5
#Subtração
4 - 5
#Multiplicação
4 * 5
#Exponenciação
4 ^ 5
#ou
4**5
#Raiz quadrada
sqrt(numero)
#Raiz
8^(1/3) #raiz cubica
#Resto da divisão
4 %% 5
#Cociente da divisão... | /quatro_operacoes_matematicas_basicas.R | no_license | sheyslong/Estudo-sobre-Linguagem-R | R | false | false | 414 | r | #Comentário
#Tem que selecionar a linha, ou as linhas, para poder executar
#Quatro operações básicas
#Adição
4 + 5
#Subtração
4 - 5
#Multiplicação
4 * 5
#Exponenciação
4 ^ 5
#ou
4**5
#Raiz quadrada
sqrt(numero)
#Raiz
8^(1/3) #raiz cubica
#Resto da divisão
4 %% 5
#Cociente da divisão... |
#dataframe is a like a dataset
studentid <- c(1,2,3,4)
admindate <- c("10/15/2015","11/16/2015","12/13/2015","14/12/2015")
studentname <- c("ganesh","star","hari","gana")
age <- c(12,13,15,17)
classtype <- c("Class1","Class2","Class1","Class2")
Performance <- c("status","Weak","Good","Excellent")
#create the data fram... | /R/Data Structures/Object_dataframes.R | no_license | palgbpec/ProgrammingLanguages | R | false | false | 928 | r | #dataframe is a like a dataset
studentid <- c(1,2,3,4)
admindate <- c("10/15/2015","11/16/2015","12/13/2015","14/12/2015")
studentname <- c("ganesh","star","hari","gana")
age <- c(12,13,15,17)
classtype <- c("Class1","Class2","Class1","Class2")
Performance <- c("status","Weak","Good","Excellent")
#create the data fram... |
\name{cloneSheet-methods}
\docType{methods}
\alias{cloneSheet}
\alias{cloneSheet-methods}
\alias{cloneSheet,workbook,character-method}
\alias{cloneSheet,workbook,numeric-method}
\title{Cloning/copying worksheets}
\description{
Clones (copies) a worksheet in a \code{\linkS4class{workbook}}.
}
\usage{
\S4met... | /man/cloneSheet-methods.Rd | no_license | miraisolutions/xlconnect | R | false | false | 1,502 | rd | \name{cloneSheet-methods}
\docType{methods}
\alias{cloneSheet}
\alias{cloneSheet-methods}
\alias{cloneSheet,workbook,character-method}
\alias{cloneSheet,workbook,numeric-method}
\title{Cloning/copying worksheets}
\description{
Clones (copies) a worksheet in a \code{\linkS4class{workbook}}.
}
\usage{
\S4met... |
tryCatch({
mun.map <- readOGR("maps/municipios.shp", "municipios", stringsAsFactors = FALSE)
pipe.map <- readOGR("maps/Ductos_Petroliferos.shp", "Ductos_Petroliferos",
stringsAsFactors = FALSE)
mun.map$id_numeric <- as.numeric(mun.map$id)
mun_pipes <- read.csv("maps/muns_pipeline.c... | /R/src/cluster-map-gam.R | permissive | JSOHE/new.crimenmexico | R | false | false | 9,966 | r |
tryCatch({
mun.map <- readOGR("maps/municipios.shp", "municipios", stringsAsFactors = FALSE)
pipe.map <- readOGR("maps/Ductos_Petroliferos.shp", "Ductos_Petroliferos",
stringsAsFactors = FALSE)
mun.map$id_numeric <- as.numeric(mun.map$id)
mun_pipes <- read.csv("maps/muns_pipeline.c... |
source("posterior_generator.R")
thetalist <- get_thetalist()
posterior_generator()
#data must be entered as one long string of 0's for tails and 1's for heads. | /final.R | no_license | StrelkovD/R_Code | R | false | false | 160 | r | source("posterior_generator.R")
thetalist <- get_thetalist()
posterior_generator()
#data must be entered as one long string of 0's for tails and 1's for heads. |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/process.R
\name{maybe_cache}
\alias{maybe_cache}
\title{Cache a File if Necessary}
\usage{
maybe_cache(
source_path,
appname,
filename = construct_processed_filename(source_path),
process_f = readRDS,
process_args = NULL,... | /man/maybe_cache.Rd | no_license | cran/dlr | R | false | true | 2,157 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/process.R
\name{maybe_cache}
\alias{maybe_cache}
\title{Cache a File if Necessary}
\usage{
maybe_cache(
source_path,
appname,
filename = construct_processed_filename(source_path),
process_f = readRDS,
process_args = NULL,... |
click.data.cast1 <- click.data.cast
# valiable for clustering
keys <- names(click.data.cast1)[-c(1,ncol(click.data.cast1))]
# execute clustering
click.data.cast.cluster1 <- ykmeans(click.data.cast1, keys, "total", 3:6)
# confirm number of people in cluster
table(click.data.cast.cluster1$cluster)
library(reshape2)
clic... | /012.LineGraphbyCluster.R | no_license | 031yoshida/R-Clustering | R | false | false | 1,300 | r | click.data.cast1 <- click.data.cast
# valiable for clustering
keys <- names(click.data.cast1)[-c(1,ncol(click.data.cast1))]
# execute clustering
click.data.cast.cluster1 <- ykmeans(click.data.cast1, keys, "total", 3:6)
# confirm number of people in cluster
table(click.data.cast.cluster1$cluster)
library(reshape2)
clic... |
library(dplyr)
library(lmtest)
LR <- function(counts, cell_group, cutoff = 0.9 * nrow(counts)) {
if (is.vector(counts)) {
if (sum(counts == 0) > cutoff) {
return(NA)
}
} else {
zeros <- apply(counts, 2, function(x) sum(x == 0) > cutoff)
if (sum(zeros) == ncol(counts)... | /NYMP_2018/embryo/LRtx.R | permissive | ebecht/logistic_regresion_for_GDE | R | false | false | 1,100 | r | library(dplyr)
library(lmtest)
LR <- function(counts, cell_group, cutoff = 0.9 * nrow(counts)) {
if (is.vector(counts)) {
if (sum(counts == 0) > cutoff) {
return(NA)
}
} else {
zeros <- apply(counts, 2, function(x) sum(x == 0) > cutoff)
if (sum(zeros) == ncol(counts)... |
#' @title Show the relationships between centre and peripheral items.
#'
#' @description This package show the strength of relationships between centre and peripheral items by the length of the lines between them.
#'
#' @param centrename dataname distance, bound, title, color size boundarycolor boundarysize centret... | /R/centralplot.R | no_license | cran/centralplot | R | false | false | 2,760 | r | #' @title Show the relationships between centre and peripheral items.
#'
#' @description This package show the strength of relationships between centre and peripheral items by the length of the lines between them.
#'
#' @param centrename dataname distance, bound, title, color size boundarycolor boundarysize centret... |
\name{getResults}
\alias{getResults}
\title{
Easily retrieve summary data as R-objects (matrices and vectors).
}
\description{
This functions excratcs specific results (descriptives, p-values, Odds-Ratios / Hazard-Ratios, ...) from a compareGroups object as matrix or vectors.
}
\usage{
getResults(obj, what = "descr"... | /man/getResults.Rd | no_license | isubirana/compareGroups | R | false | false | 2,029 | rd | \name{getResults}
\alias{getResults}
\title{
Easily retrieve summary data as R-objects (matrices and vectors).
}
\description{
This functions excratcs specific results (descriptives, p-values, Odds-Ratios / Hazard-Ratios, ...) from a compareGroups object as matrix or vectors.
}
\usage{
getResults(obj, what = "descr"... |
## The code below is to write a pair of functions that cache the inverse of a matrix
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
## 1. set the value of the matrix
## 2. get the value of the matirx
## 3. set the value of the inverse
## 4. get the value of the inverse... | /cachematrix.R | no_license | ZZ2015/ProgrammingAssignment2 | R | false | false | 1,338 | r |
## The code below is to write a pair of functions that cache the inverse of a matrix
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
## 1. set the value of the matrix
## 2. get the value of the matirx
## 3. set the value of the inverse
## 4. get the value of the inverse... |
# analiziram podatke, ki sem jih dobila v uporabaCSCV
setwd("C:/Users/Tina/Documents/faks/2. letnik magisterija/matematika z računalnikom/ProjektMZR")
########################################
### PODATKI, KI SEM JIH DOBILA S TO KODO:
load("./data/analiza.rda")
#######################################
################... | /analizaCSCV.R | no_license | TinaJ/ProjektMZR | R | false | false | 2,770 | r | # analiziram podatke, ki sem jih dobila v uporabaCSCV
setwd("C:/Users/Tina/Documents/faks/2. letnik magisterija/matematika z računalnikom/ProjektMZR")
########################################
### PODATKI, KI SEM JIH DOBILA S TO KODO:
load("./data/analiza.rda")
#######################################
################... |
\name{readPedigreeFile}
\alias{readPedigreeFile}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Read a Plink/Seq pedinfo file.
}
\description{
Read a Plink/Seq pedinfo file.
}
\usage{
readPedigreeFile(file)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{file}{
%% ... | /reference/scripts/xhmmScripts/man/readPedigreeFile.Rd | no_license | jixuan-wang/jxcnv | R | false | false | 571 | rd | \name{readPedigreeFile}
\alias{readPedigreeFile}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Read a Plink/Seq pedinfo file.
}
\description{
Read a Plink/Seq pedinfo file.
}
\usage{
readPedigreeFile(file)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{file}{
%% ... |
setwd("C:/Users/brecre01/Documents/Coursera")
mydata <- read.csv("household_power_consumption.txt", header=TRUE, sep=';', check.names=FALSE, na.strings="?", stringsAsFactors=FALSE, comment.char="", quote='\"')
mydata$Date <- as.Date(mydata$Date, format="%d/%m/%Y")
datasm <- subset(mydata, subset=(Date >= "2007-02-01" &... | /plot3.R | no_license | Brent-Crews/ExData_Plotting1 | R | false | false | 1,043 | r | setwd("C:/Users/brecre01/Documents/Coursera")
mydata <- read.csv("household_power_consumption.txt", header=TRUE, sep=';', check.names=FALSE, na.strings="?", stringsAsFactors=FALSE, comment.char="", quote='\"')
mydata$Date <- as.Date(mydata$Date, format="%d/%m/%Y")
datasm <- subset(mydata, subset=(Date >= "2007-02-01" &... |
library(testthat)
library(eDNAfuns)
test_check("eDNAfuns")
| /tests/testthat.R | permissive | ramongallego/eDNA_functions | R | false | false | 60 | r | library(testthat)
library(eDNAfuns)
test_check("eDNAfuns")
|
inspect(sort(itemsets, by = 'support', decreasing = T)[1:5])
quality(itemsets)$lift <- interestMeasure(itemsets, measure = 'lift', Groceries)
inspect(sort(itemsets, by = 'lift', decreasing = T)[1:5])
rules <- apriori(Groceries,
parameter = list(support = .001,
minle... | /Rtrials 19 03 19.R | no_license | allisonwalker/bts_market_basket | R | false | false | 1,511 | r | inspect(sort(itemsets, by = 'support', decreasing = T)[1:5])
quality(itemsets)$lift <- interestMeasure(itemsets, measure = 'lift', Groceries)
inspect(sort(itemsets, by = 'lift', decreasing = T)[1:5])
rules <- apriori(Groceries,
parameter = list(support = .001,
minle... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidy.R
\name{tidy_tesseract}
\alias{tidy_tesseract}
\title{Tidy hOCR tibble after tesseract}
\usage{
tidy_tesseract(df)
}
\arguments{
\item{df}{tibble as returned by \code{\link[=hocr_parse]{hocr_parse()}}}
}
\value{
tidy tibble with separate... | /man/tidy_tesseract.Rd | permissive | dmi3kno/hocr | R | false | true | 532 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidy.R
\name{tidy_tesseract}
\alias{tidy_tesseract}
\title{Tidy hOCR tibble after tesseract}
\usage{
tidy_tesseract(df)
}
\arguments{
\item{df}{tibble as returned by \code{\link[=hocr_parse]{hocr_parse()}}}
}
\value{
tidy tibble with separate... |
########### Differential expression analysis of genes according to the group of interest ##################
rm(list=ls()) ## environment cleaning
## Loading of the librairies
library("DESeq2")
### To define the working directory
setwd('.') ## A MODIFIER !!!!
#### PART1 : IMPORTING DATA ####
## Loadin... | /AnalyseGenes.R | no_license | qfort/Projet_reprohackaton | R | false | false | 4,506 | r | ########### Differential expression analysis of genes according to the group of interest ##################
rm(list=ls()) ## environment cleaning
## Loading of the librairies
library("DESeq2")
### To define the working directory
setwd('.') ## A MODIFIER !!!!
#### PART1 : IMPORTING DATA ####
## Loadin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createBoilerplate.R
\name{createBoilerplate}
\alias{createBoilerplate}
\title{Title}
\usage{
createBoilerplate(name, path = ".", webapp = TRUE, webapp_name = name)
}
\arguments{
\item{webapp_name}{}
}
\description{
Title
}
| /man/createBoilerplate.Rd | no_license | HealthBigData/PlumberAPImanager | R | false | true | 301 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createBoilerplate.R
\name{createBoilerplate}
\alias{createBoilerplate}
\title{Title}
\usage{
createBoilerplate(name, path = ".", webapp = TRUE, webapp_name = name)
}
\arguments{
\item{webapp_name}{}
}
\description{
Title
}
|
#' modelTrainR: function for training INLA models from modelDefintion objects
#'
#' @param modelDefinition modelDefinition object from one of smoothModel.R, latentFieldModel.R, or effectModel.R
#' @return observedData table that has been prepared for defineModels.R
#'
#' @import INLA
#'
#' @export
#' @examples
#' retur... | /incidenceMapR/R/modelTrainR.R | permissive | seattleflu/incidence-mapper | R | false | false | 2,208 | r | #' modelTrainR: function for training INLA models from modelDefintion objects
#'
#' @param modelDefinition modelDefinition object from one of smoothModel.R, latentFieldModel.R, or effectModel.R
#' @return observedData table that has been prepared for defineModels.R
#'
#' @import INLA
#'
#' @export
#' @examples
#' retur... |
library(fpp2)
fets <- function (y, h, lambda) {
forecast ( ets ( y, lambda = lambda, additive.only = FALSE ), h = h )
}
ets.tsCV <- tsCV ( visitors, fets, h = 1 )
fets2 <- function ( y, h, lambda ) {
forecast ( ets ( y, lambda = lambda, additive.only = TRUE ), h = h )
}
visitors.lambda <- BoxCox.l... | /code tsCV 7_11_f.R | no_license | CWU-Wassellc/ECON-325-Examples | R | false | false | 1,061 | r |
library(fpp2)
fets <- function (y, h, lambda) {
forecast ( ets ( y, lambda = lambda, additive.only = FALSE ), h = h )
}
ets.tsCV <- tsCV ( visitors, fets, h = 1 )
fets2 <- function ( y, h, lambda ) {
forecast ( ets ( y, lambda = lambda, additive.only = TRUE ), h = h )
}
visitors.lambda <- BoxCox.l... |
testlist <- list(n = 1028917760L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) | /breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609960616-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 98 | r | testlist <- list(n = 1028917760L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessData.R
\name{remove_NA_probes}
\alias{remove_NA_probes}
\title{Removes NA probes}
\usage{
remove_NA_probes(consensus_vector)
}
\arguments{
\item{consensus_vector}{consensus vector data frame for each cell in group
names}
}
\value{
... | /man/remove_NA_probes.Rd | permissive | ethanmoyer/ICCE | R | false | true | 489 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessData.R
\name{remove_NA_probes}
\alias{remove_NA_probes}
\title{Removes NA probes}
\usage{
remove_NA_probes(consensus_vector)
}
\arguments{
\item{consensus_vector}{consensus vector data frame for each cell in group
names}
}
\value{
... |
testlist <- list(testX = c(748020022132226, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), trainX = s... | /dann/inst/testfiles/calc_distance_C/AFL_calc_distance_C/calc_distance_C_valgrind_files/1609867609-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 1,196 | r | testlist <- list(testX = c(748020022132226, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), trainX = s... |
# Tidiest data
# Day2
# Amieroh ABrahams
# 11 April 2019
# Load in libraries
library(tidyverse)
library(lubridate)
# Load in the the data
# load the data from a .RData file
load("data/SACTNmonthly_v4.0.RData")
# Copy the data as a dataframe with a shorter name
SACTN <- SACTNmonthly_v4.0
# Remove the original
rm(SACTN... | /Tidiest_Day2.R | no_license | AmierohAbrahams/UWC_Coastal_Research | R | false | false | 1,261 | r | # Tidiest data
# Day2
# Amieroh ABrahams
# 11 April 2019
# Load in libraries
library(tidyverse)
library(lubridate)
# Load in the the data
# load the data from a .RData file
load("data/SACTNmonthly_v4.0.RData")
# Copy the data as a dataframe with a shorter name
SACTN <- SACTNmonthly_v4.0
# Remove the original
rm(SACTN... |
# Ch10CarverPart2.R
# Logistic for profiling; extension to multinomial
# repeat some code from Part 1, then the newer material
# begins with Table 10.9 chunk.
library(caret)
library(gains)
## read and partition the bank data
bank.df <- read.csv("Data/UniversalBank.csv")
bank.df <- bank.df[ , -c(1, 5)] # D... | /Shmueli resources/RCode_by_chapter/Ch10CarverPart2.R | no_license | IBSBigData/BUS212_Spring2018_Pub | R | false | false | 2,440 | r | # Ch10CarverPart2.R
# Logistic for profiling; extension to multinomial
# repeat some code from Part 1, then the newer material
# begins with Table 10.9 chunk.
library(caret)
library(gains)
## read and partition the bank data
bank.df <- read.csv("Data/UniversalBank.csv")
bank.df <- bank.df[ , -c(1, 5)] # D... |
library(tidyverse)
library(dplyr)
library(palmerpenguins)
library(GGally)
library(Rtsne)
library(tidyr)
setwd("~/University/Data Analysis Y4/Week 8/Week8")
penguin <- penguins_raw %>%
janitor::clean_names()
str(penguins_raw)
#look at variables
penguin %>%
select(body_mass_g,
ends_with("_mm"... | /Week8.R | permissive | DanielSproston/Week8 | R | false | false | 4,441 | r | library(tidyverse)
library(dplyr)
library(palmerpenguins)
library(GGally)
library(Rtsne)
library(tidyr)
setwd("~/University/Data Analysis Y4/Week 8/Week8")
penguin <- penguins_raw %>%
janitor::clean_names()
str(penguins_raw)
#look at variables
penguin %>%
select(body_mass_g,
ends_with("_mm"... |
# 1. Read data from working directory
data <- read.csv("household_power_consumption.txt", sep = ";", na.strings = "?")
# 2. Convert Date to Date classes and select range of dates
data$Date <- as.Date(data$Date, "%d/%m/%Y")
subdata <- subset(data, Date == "2007-02-01" | Date == "2007-02-02")
# 3. Merge Data and Time... | /plot1.R | no_license | marcbeldata/ExData_Plotting1 | R | false | false | 681 | r | # 1. Read data from working directory
data <- read.csv("household_power_consumption.txt", sep = ";", na.strings = "?")
# 2. Convert Date to Date classes and select range of dates
data$Date <- as.Date(data$Date, "%d/%m/%Y")
subdata <- subset(data, Date == "2007-02-01" | Date == "2007-02-02")
# 3. Merge Data and Time... |
/Primer Parcial/PuntoFijoW.R | no_license | DavidDuarteC/DavidDuarteAnalisisNumerico | R | false | false | 3,137 | r | ||
x = 1+2
y = log(2)
data1 = c(3,6,9,12,78)
data1Text = c('Mon', 'Tue', "WED")
data1Text = c(data1Text, "Thur")
data2 = scan()
data2Text = scan(what = 'character')
#getwd()
setwd('/home/shashwat/Data Analytics/RProgramming/DA IIT KGP')
#dir()
tcdata = read.csv('stateData.csv', header = T, sep = ',')
extractData = tc... | /RProgramming/DA IIT KGP/data1.R | no_license | shashwatg1/Data-Analytics | R | false | false | 1,274 | r | x = 1+2
y = log(2)
data1 = c(3,6,9,12,78)
data1Text = c('Mon', 'Tue', "WED")
data1Text = c(data1Text, "Thur")
data2 = scan()
data2Text = scan(what = 'character')
#getwd()
setwd('/home/shashwat/Data Analytics/RProgramming/DA IIT KGP')
#dir()
tcdata = read.csv('stateData.csv', header = T, sep = ',')
extractData = tc... |
## Very simple function to compare the distance between simulated
## and observed data for the BioGro function
## Need to add an argument such as pc.sigmas "plant component sigmas"
## If variability of the plant component is known
##' Residual sum of squares for BioGro.
##'
##' Computes residual sum of squares for the ... | /R/RssBioGro.R | permissive | kimberlyh66/biocro | R | false | false | 1,431 | r | ## Very simple function to compare the distance between simulated
## and observed data for the BioGro function
## Need to add an argument such as pc.sigmas "plant component sigmas"
## If variability of the plant component is known
##' Residual sum of squares for BioGro.
##'
##' Computes residual sum of squares for the ... |
# chargement des packages utiles
library(tidyverse)
library(stringr)
# Chargement des données
bvINSEE <- read_csv2("./data/bvINSEE2012.csv")
# les identifiants des bureaux de vote sont codés différemment dans les deux jeux de données, on harmonise cela
bvINSEE <- bvINSEE %>%
mutate(BUREAU_ID = str_replace(BUREAU... | /regMarseille.R | no_license | datactivist/IntroR_ODF | R | false | false | 7,887 | r | # chargement des packages utiles
library(tidyverse)
library(stringr)
# Chargement des données
bvINSEE <- read_csv2("./data/bvINSEE2012.csv")
# les identifiants des bureaux de vote sont codés différemment dans les deux jeux de données, on harmonise cela
bvINSEE <- bvINSEE %>%
mutate(BUREAU_ID = str_replace(BUREAU... |
#' @title Calculate group level summary statistics
#' @description This function computes the mean-vector and covariance matrix of the outcomes for each cohort, where a cohort g is a group of units first treated in period g
#' @param df A data frame containing panel data with the variables y (an outcome), i (an indivi... | /R/compute_efficient_estimator_and_se.R | no_license | ryanedmundkessler/staggered | R | false | false | 45,542 | r |
#' @title Calculate group level summary statistics
#' @description This function computes the mean-vector and covariance matrix of the outcomes for each cohort, where a cohort g is a group of units first treated in period g
#' @param df A data frame containing panel data with the variables y (an outcome), i (an indivi... |
### This is soft-thresholding and blockwise module creation
setwd("~/Bioinformatics Work/Meth & RNA/WGCNA_lnc")
### Load packages
library(WGCNA)
library(permute)
library(lattice)
library(vegan)
library(scatterplot3d)
library(MASS)
library(nlme)
library(mgcv)
library(cluster)
library(rgl)
library(ape)
library(picant... | /SoftThresh_moduleCreation.R | no_license | kornor/CrackedPepper | R | false | false | 11,336 | r |
### This is soft-thresholding and blockwise module creation
setwd("~/Bioinformatics Work/Meth & RNA/WGCNA_lnc")
### Load packages
library(WGCNA)
library(permute)
library(lattice)
library(vegan)
library(scatterplot3d)
library(MASS)
library(nlme)
library(mgcv)
library(cluster)
library(rgl)
library(ape)
library(picant... |
#' numericSummary provides the table text for summarizing a numeric vector
#'
#' This function allows text summarization of a numeric vector. The summary functions can be specified as can the number of significant digits returned
#' @param vec2Summarize - the numeric vector to summarize
#' @param func1 Defaults to mean... | /R/numericSummary.R | permissive | jacobkantrowitz/tableONE | R | false | false | 910 | r | #' numericSummary provides the table text for summarizing a numeric vector
#'
#' This function allows text summarization of a numeric vector. The summary functions can be specified as can the number of significant digits returned
#' @param vec2Summarize - the numeric vector to summarize
#' @param func1 Defaults to mean... |
\name{simulate_tree}
\alias{simulate_tree}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Simulates ranked topology
}
\description{
Simulates a ranked topology with tip abundance data from the beta alpha eta model
}
\usage{
simulate_tree(epsilon, alpha, beta, N, equal.ab = TRUE, eta = 1, lambda... | /man/simulate_tree.Rd | no_license | bcm-uga/apTreeshape | R | false | false | 1,767 | rd | \name{simulate_tree}
\alias{simulate_tree}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Simulates ranked topology
}
\description{
Simulates a ranked topology with tip abundance data from the beta alpha eta model
}
\usage{
simulate_tree(epsilon, alpha, beta, N, equal.ab = TRUE, eta = 1, lambda... |
#!/usr/bin/env Rscript
# Author: James A. Perez
library(argparser, quietly=TRUE)
WriteTable <- function(data, filename, index.name) {
datafile <- gzfile(filename, open = "wt")
on.exit(close(datafile))
header <- c(index.name, colnames(data))
# write shape as first line
writeLines(paste0(dim(data),... | /src/prepare_individual_data/expression/merge_tpm.R | no_license | perezja/Cerebrum | R | false | false | 1,803 | r | #!/usr/bin/env Rscript
# Author: James A. Perez
library(argparser, quietly=TRUE)
WriteTable <- function(data, filename, index.name) {
datafile <- gzfile(filename, open = "wt")
on.exit(close(datafile))
header <- c(index.name, colnames(data))
# write shape as first line
writeLines(paste0(dim(data),... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/od-funs.R
\name{od_aggregate_to}
\alias{od_aggregate_to}
\title{Summary statistics of trips arriving at destination zones in OD data}
\usage{
od_aggregate_to(flow, attrib = NULL, FUN = sum, ..., col = 2)
}
\arguments{
\item{flow}{A data frame... | /man/od_aggregate_to.Rd | permissive | mem48/stplanr | R | false | true | 1,847 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/od-funs.R
\name{od_aggregate_to}
\alias{od_aggregate_to}
\title{Summary statistics of trips arriving at destination zones in OD data}
\usage{
od_aggregate_to(flow, attrib = NULL, FUN = sum, ..., col = 2)
}
\arguments{
\item{flow}{A data frame... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.