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 |
|---|---|---|---|---|---|---|---|---|---|
rm(list=ls(all=TRUE))
setwd('E://Insofe//Week7//Day1//Lab//20180120//')
getwd()
data<-read.csv("CustomerData.csv",header=T)
str(data)
summary(data)
# Data Preparation
data = data[,-1]# remove CustomerID column
numeric_Variables = data[,c(2:10)]
str(nu)
target_variable = subset(data,select="TotalRevenueGenerated")
# co... | /Week7/Day1/Lab/20180120/20180120_Batch37_CSE7302c_LR_Lasso_Ridge.R | no_license | SheikMBasha/MLLearning | R | false | false | 2,287 | r | rm(list=ls(all=TRUE))
setwd('E://Insofe//Week7//Day1//Lab//20180120//')
getwd()
data<-read.csv("CustomerData.csv",header=T)
str(data)
summary(data)
# Data Preparation
data = data[,-1]# remove CustomerID column
numeric_Variables = data[,c(2:10)]
str(nu)
target_variable = subset(data,select="TotalRevenueGenerated")
# co... |
library(ggplot2)
p = ggplot(aes(x = Petal.Length, y = Petal.Width), data = iris) +
geom_point(aes(color = Species, shape = Species))
print(p)
| /inst/examples/iris-ggplot2.R | no_license | minghao2016/MSG | R | false | false | 144 | r | library(ggplot2)
p = ggplot(aes(x = Petal.Length, y = Petal.Width), data = iris) +
geom_point(aes(color = Species, shape = Species))
print(p)
|
hier_constantSD_k_FRESD<-function(year0,no.years, age1, L, l, k.reparam, sigma.start,No.comp, Lengths,niter,rel.tolerance,sdl,sdk)
{
#####set up Mu's. If no variation between years than only need one set one Mus
no.surveys<-length(no.years)
if(length(sigma.start)>1){
... | /R/hier_ck_CSD_subfun_FRESD.R | no_license | lbatts/LFEM | R | false | false | 12,048 | r | hier_constantSD_k_FRESD<-function(year0,no.years, age1, L, l, k.reparam, sigma.start,No.comp, Lengths,niter,rel.tolerance,sdl,sdk)
{
#####set up Mu's. If no variation between years than only need one set one Mus
no.surveys<-length(no.years)
if(length(sigma.start)>1){
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Class-LagEstimator.R
\name{getValues-LagEstimator}
\alias{getValues-LagEstimator}
\alias{getValues,LagEstimator-method}
\title{Get values from a lag-window type estimator.}
\usage{
\S4method{getValues}{LagEstimator}(
object,
freq... | /man/getValues-LagEstimator.Rd | no_license | cran/quantspec | R | false | true | 1,535 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Class-LagEstimator.R
\name{getValues-LagEstimator}
\alias{getValues-LagEstimator}
\alias{getValues,LagEstimator-method}
\title{Get values from a lag-window type estimator.}
\usage{
\S4method{getValues}{LagEstimator}(
object,
freq... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tableau.R
\name{tableau_shape_pal}
\alias{tableau_shape_pal}
\title{Tableau Shape Palettes (discrete)}
\usage{
tableau_shape_pal(palette = c("default", "filled", "proportions"))
}
\arguments{
\item{palette}{Palette name.}
}
\description{
Shap... | /man/tableau_shape_pal.Rd | no_license | cran/ggthemes | R | false | true | 1,026 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tableau.R
\name{tableau_shape_pal}
\alias{tableau_shape_pal}
\title{Tableau Shape Palettes (discrete)}
\usage{
tableau_shape_pal(palette = c("default", "filled", "proportions"))
}
\arguments{
\item{palette}{Palette name.}
}
\description{
Shap... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{mark}
\alias{mark}
\title{'mark' Dataset}
\format{A data frame with the following parameters:
\itemize{
\item nom names of the students
\item math marks in mathematics
\item phys marks in physics
\it... | /man/mark.Rd | no_license | amnahsiddiqa/ropls | R | false | true | 951 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{mark}
\alias{mark}
\title{'mark' Dataset}
\format{A data frame with the following parameters:
\itemize{
\item nom names of the students
\item math marks in mathematics
\item phys marks in physics
\it... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\encoding{UTF-8}
\name{dbc_offline}
\alias{dbc_offline}
\title{DBC (offline)}
\format{
A data frame with ecological and morphological information for 8066 diatoms
}
\source{
\url{https://www.kmae-journal.org/articles/kma... | /man/dbc_offline.Rd | no_license | king8w/diathor | R | false | true | 684 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\encoding{UTF-8}
\name{dbc_offline}
\alias{dbc_offline}
\title{DBC (offline)}
\format{
A data frame with ecological and morphological information for 8066 diatoms
}
\source{
\url{https://www.kmae-journal.org/articles/kma... |
# TODO: Add comment
#
# Author: julia
###############################################################################
args= commandArgs()
i = 1
while(args[i]!="--args"){
cat(args[i])
i=i+1
}
tissue<-args[i + 1]
npcs<-args[i + 2]
npc<-as.numeric(args [i + 3])
pcs2remove<-args[i+4]
pheno.dir<-args[i+5]
pheno.fil... | /Residual4GE_PCs_Elimination.R | no_license | jullstranger/CEDAR_Preprocesing | R | false | false | 1,730 | r | # TODO: Add comment
#
# Author: julia
###############################################################################
args= commandArgs()
i = 1
while(args[i]!="--args"){
cat(args[i])
i=i+1
}
tissue<-args[i + 1]
npcs<-args[i + 2]
npc<-as.numeric(args [i + 3])
pcs2remove<-args[i+4]
pheno.dir<-args[i+5]
pheno.fil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sentomeasures_methods.R
\name{scale.sentomeasures}
\alias{scale.sentomeasures}
\title{Scaling and centering of sentiment measures}
\usage{
\method{scale}{sentomeasures}(x, center = TRUE, scale = TRUE)
}
\arguments{
\item{x}{a \code{sentomeasu... | /man/scale.sentomeasures.Rd | no_license | vanpeltj/sentometrics | R | false | true | 2,458 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sentomeasures_methods.R
\name{scale.sentomeasures}
\alias{scale.sentomeasures}
\title{Scaling and centering of sentiment measures}
\usage{
\method{scale}{sentomeasures}(x, center = TRUE, scale = TRUE)
}
\arguments{
\item{x}{a \code{sentomeasu... |
df <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
library(lubridate)
df$Date <- dmy(df$Date)
df2 <- df[df$Date %within% interval(dmy("01/02/2007"), dmy("02/02/2007")),]
es1 <- as.numeric(df2$Sub_metering_1)
es2 <- as.numeric(df2$Sub_metering_2)
es3 <- as.numeric(df2$Sub_metering_3)
dates ... | /plot3.R | no_license | Stiui85/ExData_Plotting1 | R | false | false | 709 | r | df <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
library(lubridate)
df$Date <- dmy(df$Date)
df2 <- df[df$Date %within% interval(dmy("01/02/2007"), dmy("02/02/2007")),]
es1 <- as.numeric(df2$Sub_metering_1)
es2 <- as.numeric(df2$Sub_metering_2)
es3 <- as.numeric(df2$Sub_metering_3)
dates ... |
library(vfcp)
### Name: vfalihaq
### Title: Ali-Mikhail-Haq Copula Variable Given Second One and Copula
### Probability
### Aliases: vfalihaq
### Keywords: ~kwd1 ~kwd2
### ** Examples
require(copula)
C = 0.3
tht = 0.5
u = c(0.35, 0.40, 0.45)
v <- vfalihaq(C, u, tht)
kali <- archmCopula(family = "amh", param = tht... | /data/genthat_extracted_code/vfcp/examples/vfalihaq.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 650 | r | library(vfcp)
### Name: vfalihaq
### Title: Ali-Mikhail-Haq Copula Variable Given Second One and Copula
### Probability
### Aliases: vfalihaq
### Keywords: ~kwd1 ~kwd2
### ** Examples
require(copula)
C = 0.3
tht = 0.5
u = c(0.35, 0.40, 0.45)
v <- vfalihaq(C, u, tht)
kali <- archmCopula(family = "amh", param = tht... |
# Load the standard iris dataset, already available in R
data(iris)
# First wrap the data
irisBox <- WrapData(iris)
# Discretize the "Species" variable. This will find all possible values of the "Species"
# variable and define new variables. The parameter name used here should be replaced by
# the new preferred para... | /swaps/Old_R_Data/9.R | no_license | masymbol/customer_experience | R | false | false | 925 | r | # Load the standard iris dataset, already available in R
data(iris)
# First wrap the data
irisBox <- WrapData(iris)
# Discretize the "Species" variable. This will find all possible values of the "Species"
# variable and define new variables. The parameter name used here should be replaced by
# the new preferred para... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{model-method-sample_mpi}
\alias{model-method-sample_mpi}
\alias{sample_mpi}
\title{Run Stan's MCMC algorithms with MPI}
\usage{
sample_mpi(
data = NULL,
mpi_cmd = "mpiexec",
mpi_args = NULL,
seed = NULL,
refresh = NULL... | /man/model-method-sample_mpi.Rd | permissive | polvanrijn/cmdstanr | R | false | true | 13,036 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{model-method-sample_mpi}
\alias{model-method-sample_mpi}
\alias{sample_mpi}
\title{Run Stan's MCMC algorithms with MPI}
\usage{
sample_mpi(
data = NULL,
mpi_cmd = "mpiexec",
mpi_args = NULL,
seed = NULL,
refresh = NULL... |
getwd()
setwd("C:/Users/sagak/Desktop/Coursera/EDA")
library("data.table")
#Reads in data from file then subsets data for specified dates
D.T <- data.table::fread(input = "household_power_consumption.txt", na.strings="?")
# Prevents Scientific Notation
D.T[, Global_active_power := lapply(.SD, as.numeric), .SDcols = ... | /plot3.R | no_license | AlexisXochihuatl/Course-Project-1 | R | false | false | 1,013 | r | getwd()
setwd("C:/Users/sagak/Desktop/Coursera/EDA")
library("data.table")
#Reads in data from file then subsets data for specified dates
D.T <- data.table::fread(input = "household_power_consumption.txt", na.strings="?")
# Prevents Scientific Notation
D.T[, Global_active_power := lapply(.SD, as.numeric), .SDcols = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ge_qdel.R
\name{qdel}
\alias{qdel}
\title{Kill jobs}
\usage{
qdel(id = NULL, force = FALSE, flags = c(), cmd = "qdel",
verbose = TRUE)
}
\arguments{
\item{id}{job id to kill}
\item{force}{force kill (`FALSE` by default)}
\item{flags}{poss... | /man/qdel.Rd | permissive | ronkeizer/Rge | R | false | true | 470 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ge_qdel.R
\name{qdel}
\alias{qdel}
\title{Kill jobs}
\usage{
qdel(id = NULL, force = FALSE, flags = c(), cmd = "qdel",
verbose = TRUE)
}
\arguments{
\item{id}{job id to kill}
\item{force}{force kill (`FALSE` by default)}
\item{flags}{poss... |
library(rsample)
### Name: complement
### Title: Determine the Assessment Samples
### Aliases: complement
### ** Examples
set.seed(28432)
fold_rs <- vfold_cv(mtcars)
head(fold_rs$splits[[1]]$in_id)
fold_rs$splits[[1]]$out_id
complement(fold_rs$splits[[1]])
| /data/genthat_extracted_code/rsample/examples/complement.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 264 | r | library(rsample)
### Name: complement
### Title: Determine the Assessment Samples
### Aliases: complement
### ** Examples
set.seed(28432)
fold_rs <- vfold_cv(mtcars)
head(fold_rs$splits[[1]]$in_id)
fold_rs$splits[[1]]$out_id
complement(fold_rs$splits[[1]])
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_selection.R
\name{model_selection}
\alias{model_selection}
\title{model_selection}
\usage{
model_selection(list_of_algos, on_Train = FALSE, regression = TRUE,
evaluation_metric = NULL, t.test.conf.int = 0.95, cor_test = NULL,
sort_d... | /man/model_selection.Rd | no_license | gridl/RandomSearchR | R | false | true | 2,808 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_selection.R
\name{model_selection}
\alias{model_selection}
\title{model_selection}
\usage{
model_selection(list_of_algos, on_Train = FALSE, regression = TRUE,
evaluation_metric = NULL, t.test.conf.int = 0.95, cor_test = NULL,
sort_d... |
#텍스트 분석, R 함수
myvector<-c(1:6,'a')
mylist<-list(1:6,'a')
print(mylist)
print(myvector)
mylist[1] #<- list는 숫자와 문자가 따로
obj1<-1:4
obj1
obj2<-6:10
obj2
obj3<-list(obj1,obj2)
obj3
mylist<-list(obj1,obj2,obj3)
mylist[3]
#Notation: 벡터=[], 리스트=[[]]로 표기기
mylist[[3]][1]
mylist[[3]][[1]]
#리스트에서 자료 추출시, [1]를 ... | /02-12 Day8.R | no_license | kyunghankim/TIL | R | false | false | 10,135 | r | #텍스트 분석, R 함수
myvector<-c(1:6,'a')
mylist<-list(1:6,'a')
print(mylist)
print(myvector)
mylist[1] #<- list는 숫자와 문자가 따로
obj1<-1:4
obj1
obj2<-6:10
obj2
obj3<-list(obj1,obj2)
obj3
mylist<-list(obj1,obj2,obj3)
mylist[3]
#Notation: 벡터=[], 리스트=[[]]로 표기기
mylist[[3]][1]
mylist[[3]][[1]]
#리스트에서 자료 추출시, [1]를 ... |
\alias{gtkPrintOperationSetCurrentPage}
\name{gtkPrintOperationSetCurrentPage}
\title{gtkPrintOperationSetCurrentPage}
\description{Sets the current page.}
\usage{gtkPrintOperationSetCurrentPage(object, current.page)}
\arguments{
\item{\verb{object}}{a \code{\link{GtkPrintOperation}}}
\item{\verb{current.page}}{the cur... | /RGtk2/man/gtkPrintOperationSetCurrentPage.Rd | no_license | lawremi/RGtk2 | R | false | false | 626 | rd | \alias{gtkPrintOperationSetCurrentPage}
\name{gtkPrintOperationSetCurrentPage}
\title{gtkPrintOperationSetCurrentPage}
\description{Sets the current page.}
\usage{gtkPrintOperationSetCurrentPage(object, current.page)}
\arguments{
\item{\verb{object}}{a \code{\link{GtkPrintOperation}}}
\item{\verb{current.page}}{the cur... |
#!usr/bin/env Rscript
library(methods)
library(Matrix)
library(MASS)
#library(Rcpp)
library(lme4)
# Read in your data as an R dataframe
basedir <- c("/seastor/helenhelen/ISR_2015")
resultdir <- paste(basedir,"/me/results/mem",sep="/")
setwd(resultdir)
r.itemInfo <- matrix(data=NA, nr=2, nc=4)
## read data
#get data for... | /ROI_based/me/tln/itemInfo_RANG_CA2.R | no_license | QQXiao/ISR_2015 | R | false | false | 3,047 | r | #!usr/bin/env Rscript
library(methods)
library(Matrix)
library(MASS)
#library(Rcpp)
library(lme4)
# Read in your data as an R dataframe
basedir <- c("/seastor/helenhelen/ISR_2015")
resultdir <- paste(basedir,"/me/results/mem",sep="/")
setwd(resultdir)
r.itemInfo <- matrix(data=NA, nr=2, nc=4)
## read data
#get data for... |
rm(list=ls())
#set so R doesn't use scientific notation
options("scipen"=100, "digits"=4)
library(tidyverse)
library(ggpubr)
library(MASS)
library(popbio)
#devtools::install_github("BruceKendall/mpmtools")
library(mpmtools)
#The goal here is to find a reasonable prior for lambda by setting a CV on survival and anoth... | /01_Data.generating.model/z_old/Leslie_matrix_saved_2022.05.25.R | no_license | JDSwenson/LemonSharkCKMR | R | false | false | 10,761 | r | rm(list=ls())
#set so R doesn't use scientific notation
options("scipen"=100, "digits"=4)
library(tidyverse)
library(ggpubr)
library(MASS)
library(popbio)
#devtools::install_github("BruceKendall/mpmtools")
library(mpmtools)
#The goal here is to find a reasonable prior for lambda by setting a CV on survival and anoth... |
#======================================================================================================
# Scoring Functions
get_demographics <- function(x){
x %>%
filter(trial_type == "survey-text") %>%
select(responses)
}
clean_demographics <- function(x){
x %>%
str_remove_all(pattern = "Q0") %>%
... | /aural_survey/data_analysis/scoringFunctions.R | no_license | davidjohnbaker1/mmd | R | false | false | 1,268 | r | #======================================================================================================
# Scoring Functions
get_demographics <- function(x){
x %>%
filter(trial_type == "survey-text") %>%
select(responses)
}
clean_demographics <- function(x){
x %>%
str_remove_all(pattern = "Q0") %>%
... |
library(StMoMo)
### Name: extractCohort
### Title: Extract cohort from an age-period array
### Aliases: extractCohort
### ** Examples
LCfit <- fit(lc(), data = EWMaleData, ages.fit = 55:89)
#Plot forecast mortality rates for the 1950 cohort
LCfor <- forecast(LCfit)
plot(55:61, extractCohort(fitted(LCfit, type = "ra... | /data/genthat_extracted_code/StMoMo/examples/extractCohort.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,066 | r | library(StMoMo)
### Name: extractCohort
### Title: Extract cohort from an age-period array
### Aliases: extractCohort
### ** Examples
LCfit <- fit(lc(), data = EWMaleData, ages.fit = 55:89)
#Plot forecast mortality rates for the 1950 cohort
LCfor <- forecast(LCfit)
plot(55:61, extractCohort(fitted(LCfit, type = "ra... |
# The MCMC options that were used to generate the samples.
my_options <- McmcOptions(
burnin = 1000,
step = 2,
samples = 1000
)
# Create an object of class 'Samples'
# Here the parameters 'alpha' and 'beta' are randomly generated. Of course, in
# a real example these would be a samples coming from MCMC procedure... | /examples/Samples-class.R | no_license | Roche/crmPack | R | false | false | 427 | r | # The MCMC options that were used to generate the samples.
my_options <- McmcOptions(
burnin = 1000,
step = 2,
samples = 1000
)
# Create an object of class 'Samples'
# Here the parameters 'alpha' and 'beta' are randomly generated. Of course, in
# a real example these would be a samples coming from MCMC procedure... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_edge_arc.R
\name{geom_edge_arc}
\alias{geom_edge_arc}
\alias{geom_edge_arc2}
\alias{geom_edge_arc0}
\title{Draw edges as Arcs}
\usage{
geom_edge_arc(mapping = NULL, data = get_edges(),
position = "identity", arrow = NULL, curvature = 1... | /man/geom_edge_arc.Rd | permissive | billdenney/ggraph | R | false | true | 9,396 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_edge_arc.R
\name{geom_edge_arc}
\alias{geom_edge_arc}
\alias{geom_edge_arc2}
\alias{geom_edge_arc0}
\title{Draw edges as Arcs}
\usage{
geom_edge_arc(mapping = NULL, data = get_edges(),
position = "identity", arrow = NULL, curvature = 1... |
testlist <- list(doy = c(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), latitude = numeric(0), temp = numeric(0))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/libFuzzer_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1612736038-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 259 | r | testlist <- list(doy = c(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), latitude = numeric(0), temp = numeric(0))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/autonomic_ganglia.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.45,family="gaussian",standardize=TRUE)
sink('./autonomic_ganglia_053... | /Model/EN/AvgRank/autonomic_ganglia/autonomic_ganglia_053.R | no_license | esbgkannan/QSMART | R | false | false | 368 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/autonomic_ganglia.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.45,family="gaussian",standardize=TRUE)
sink('./autonomic_ganglia_053... |
#' @title Fitting model
#'
#' @description
#' \code{FitM} calculate the parameters of the selected model.
#'
#' @details
#' This function calculate the parameters of the selected model.
#' There are seven model parameters that can be calculated using this function.
#' The seven basic models include one s... | /R/FitM.R | no_license | fhruilin/BestFitM | R | false | false | 12,138 | r | #' @title Fitting model
#'
#' @description
#' \code{FitM} calculate the parameters of the selected model.
#'
#' @details
#' This function calculate the parameters of the selected model.
#' There are seven model parameters that can be calculated using this function.
#' The seven basic models include one s... |
#############################################################
## VITOR FLISCH CAVALANTI
## 25-APR-15
## DATA SCIENCE SPECIALIZATION - JHU
## Exploratory Data Analysis
## Plot 2
#############################################################
setwd("C:/R/Exp/P2")
library(plyr)
library(ggplot2)
library(data.table)
## Th... | /P2/plot2.R | no_license | vitorfc/Exploratory-Data-Analysis | R | false | false | 1,267 | r | #############################################################
## VITOR FLISCH CAVALANTI
## 25-APR-15
## DATA SCIENCE SPECIALIZATION - JHU
## Exploratory Data Analysis
## Plot 2
#############################################################
setwd("C:/R/Exp/P2")
library(plyr)
library(ggplot2)
library(data.table)
## Th... |
data_all <- read.csv("household_power_consumption.txt", header = TRUE, sep = ';', na.strings = "?", check.names = FALSE, stringsAsFactors = FALSE, comment.char="", quote='\"')
data_all$Date <- as.Date(data_all$Date, format="%d/%m/%Y")
## Subsetting the data for the given dats
data <- subset(data_all, subset=(Dat... | /Plot2.R | no_license | lsoltis/Data-and-Exploratory-Analysis-Week-1-Project- | R | false | false | 758 | r | data_all <- read.csv("household_power_consumption.txt", header = TRUE, sep = ';', na.strings = "?", check.names = FALSE, stringsAsFactors = FALSE, comment.char="", quote='\"')
data_all$Date <- as.Date(data_all$Date, format="%d/%m/%Y")
## Subsetting the data for the given dats
data <- subset(data_all, subset=(Dat... |
labels <- read.table("data/household_power_consumption.txt", header = TRUE, sep=";", nrows=1)
names <- c(colnames(labels))
f<-file("data/household_power_consumption.txt","r");
data <- read.table(text = grep("^[1,2]/2/2007",readLines(f),value=TRUE), header=FALSE, sep=";", col.names=names)
close(f)
#adding new column w... | /plot3.R | no_license | Orsb/ExData_Plotting1 | R | false | false | 944 | r | labels <- read.table("data/household_power_consumption.txt", header = TRUE, sep=";", nrows=1)
names <- c(colnames(labels))
f<-file("data/household_power_consumption.txt","r");
data <- read.table(text = grep("^[1,2]/2/2007",readLines(f),value=TRUE), header=FALSE, sep=";", col.names=names)
close(f)
#adding new column w... |
library(PMCMR)
### Name: posthoc.kruskal.conover.test
### Title: Pairwise Test for Multiple Comparisons of Mean Rank Sums
### (Conover's-Test)
### Aliases: posthoc.kruskal.conover.test
### posthoc.kruskal.conover.test.default
### posthoc.kruskal.conover.test.formula
### Keywords: htest nonparametric
### ** Exa... | /data/genthat_extracted_code/PMCMR/examples/posthoc.kruskal.conover.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 614 | r | library(PMCMR)
### Name: posthoc.kruskal.conover.test
### Title: Pairwise Test for Multiple Comparisons of Mean Rank Sums
### (Conover's-Test)
### Aliases: posthoc.kruskal.conover.test
### posthoc.kruskal.conover.test.default
### posthoc.kruskal.conover.test.formula
### Keywords: htest nonparametric
### ** Exa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/All_MUFASA_Code.R
\name{pseudo.pred.norm}
\alias{pseudo.pred.norm}
\title{Generate a pseudo predator parametrically from multivariate normal
distributions.}
\usage{
pseudo.pred.norm(mu.mat, sigma.pool, diet)
}
\arguments{
\item{mu.mat}{matrix... | /man/pseudo.pred.norm.Rd | no_license | cran/QFASA | R | false | true | 1,007 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/All_MUFASA_Code.R
\name{pseudo.pred.norm}
\alias{pseudo.pred.norm}
\title{Generate a pseudo predator parametrically from multivariate normal
distributions.}
\usage{
pseudo.pred.norm(mu.mat, sigma.pool, diet)
}
\arguments{
\item{mu.mat}{matrix... |
#==================================================================================================#
# geographies ----
ctpp_geography_list <- data.frame(rbind(
#c("01","National","National"),
#c("02","State","State"),
c("03","County","State-County"),
c("04","MCD","State-County-MCD (for 12 strong MCD states)"),
c(... | /prep/create_package_objects.R | no_license | erinv/CTPPr | R | false | false | 5,654 | r | #==================================================================================================#
# geographies ----
ctpp_geography_list <- data.frame(rbind(
#c("01","National","National"),
#c("02","State","State"),
c("03","County","State-County"),
c("04","MCD","State-County-MCD (for 12 strong MCD states)"),
c(... |
#' @importFrom magrittr %>%
#' @import ggplot2
#' @import dplyr
#' @importFrom mixOmics plsda perf vip
#' @import RColorBrewer
#' @importFrom utils write.csv data
#' @importFrom stats median sd approx
#' @importFrom xlsx createWorkbook createSheet addDataFrame saveWorkbook
#' @importFrom stats median sd predict... | /R/import_packages.R | no_license | mikies21/beetlesNMR | R | false | false | 737 | r | #' @importFrom magrittr %>%
#' @import ggplot2
#' @import dplyr
#' @importFrom mixOmics plsda perf vip
#' @import RColorBrewer
#' @importFrom utils write.csv data
#' @importFrom stats median sd approx
#' @importFrom xlsx createWorkbook createSheet addDataFrame saveWorkbook
#' @importFrom stats median sd predict... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SSsummarize.R
\name{SSsummarize}
\alias{SSsummarize}
\title{Summarize the output from multiple Stock Synthesis models.}
\usage{
SSsummarize(
biglist,
sizeselfactor = "Lsel",
ageselfactor = "Asel",
selfleet = NULL,
selyr = "startyr",... | /man/SSsummarize.Rd | no_license | roliveros-ramos/r4ss | R | false | true | 1,885 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SSsummarize.R
\name{SSsummarize}
\alias{SSsummarize}
\title{Summarize the output from multiple Stock Synthesis models.}
\usage{
SSsummarize(
biglist,
sizeselfactor = "Lsel",
ageselfactor = "Asel",
selfleet = NULL,
selyr = "startyr",... |
"meanint.vect" <-
function(data)
{
data$stat1$meanint
}
| /R/meanint.vect.R | no_license | cran/varmixt | R | false | false | 64 | r | "meanint.vect" <-
function(data)
{
data$stat1$meanint
}
|
#!/usr/bin/env Rscript
# Copyright (c) 2022 ISciences, LLC.
# All rights reserved.
#
# WSIM is 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.
#
# Unl... | /wsim_polygon_summary.R | permissive | isciences/wsim | R | false | false | 5,139 | r | #!/usr/bin/env Rscript
# Copyright (c) 2022 ISciences, LLC.
# All rights reserved.
#
# WSIM is 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.
#
# Unl... |
## Read data file
data <- read.table("household_power_consumption.txt",sep = ";",head=TRUE)
## Use only data from dates 2007-02-01 and 2007-02-02
data <- data[data$Date %in% c("1/2/2007","2/2/2007"), ]
## Convert date and time columns into single datetime column
## Convert numeric columns
data$DateTime <- strptime(past... | /plot4.R | no_license | lamiettek/ExData_Plotting1 | R | false | false | 1,773 | r | ## Read data file
data <- read.table("household_power_consumption.txt",sep = ";",head=TRUE)
## Use only data from dates 2007-02-01 and 2007-02-02
data <- data[data$Date %in% c("1/2/2007","2/2/2007"), ]
## Convert date and time columns into single datetime column
## Convert numeric columns
data$DateTime <- strptime(past... |
#' Draw values from multinomial distribution
#'
#' Draws values from a mutinomial distribution and matches them with a row in the pmatrix (attribute profile matrix)
#' to obtain the alpha values
#' @param pmatrix a matrix indicating all possible attribute profiles
#' @param y number of random vectors to draw
#' @para... | /dcmr/R/dcm_mcmc_scorer.R | no_license | ingted/R-Examples | R | false | false | 23,990 | r | #' Draw values from multinomial distribution
#'
#' Draws values from a mutinomial distribution and matches them with a row in the pmatrix (attribute profile matrix)
#' to obtain the alpha values
#' @param pmatrix a matrix indicating all possible attribute profiles
#' @param y number of random vectors to draw
#' @para... |
#page - 265
#section - 9.4 CHARACTERISTIC VALUES AND VECTORS
#example - 4
#matrix A
A <- matrix(c(1,1,3,1,-2,1,3,1,3), 3, 3, byrow=TRUE)
A
#matrix X
X <- matrix(c(1,1,1), 3, 1, byrow=TRUE)
X
#eigenvalues and eigenvectors
eigen(A) | /Matrices_And_Linear_Transformations_by_Charles_G._Cullen/CH9/EX9.4/Ex9_4.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 245 | r | #page - 265
#section - 9.4 CHARACTERISTIC VALUES AND VECTORS
#example - 4
#matrix A
A <- matrix(c(1,1,3,1,-2,1,3,1,3), 3, 3, byrow=TRUE)
A
#matrix X
X <- matrix(c(1,1,1), 3, 1, byrow=TRUE)
X
#eigenvalues and eigenvectors
eigen(A) |
#' @title Class that implements the flow of pipes
#' @description This class inherits from the TypePipe class, which has the
#' pipeAll method that has a default implementation.
#' @docType class
#' @usage SerialPipes$new()
#' @details This class uses the default implementation provided by its parent
#' class and manag... | /R/SerialPipes.R | no_license | miferreiro/bdp4R | R | false | false | 1,838 | r | #' @title Class that implements the flow of pipes
#' @description This class inherits from the TypePipe class, which has the
#' pipeAll method that has a default implementation.
#' @docType class
#' @usage SerialPipes$new()
#' @details This class uses the default implementation provided by its parent
#' class and manag... |
# makeCacheMatrix creates a list containing a function to
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the value of inverse of the matrix
# 4. get the value of inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
inverse <- NULL
set <- function(y) {
x <<- y
... | /cachematrix.R | no_license | munikumargv/ProgrammingAssignment2 | R | false | false | 1,214 | r | # makeCacheMatrix creates a list containing a function to
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the value of inverse of the matrix
# 4. get the value of inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
inverse <- NULL
set <- function(y) {
x <<- y
... |
#' @title Fetches proposition from API using a query
#' @description Fetches information about law's projects, resolutions, provisional measures,
#' law amendments, opinions and all the other propositions types on the
#' Deputies' Chamber.
#' Several parameters can be used to select and filter the final result. By defa... | /R/proposicoes.R | no_license | lago1970/rcongresso | R | false | false | 5,577 | r | #' @title Fetches proposition from API using a query
#' @description Fetches information about law's projects, resolutions, provisional measures,
#' law amendments, opinions and all the other propositions types on the
#' Deputies' Chamber.
#' Several parameters can be used to select and filter the final result. By defa... |
pdf("mPing_Ping_Pong_frequency.pdf", width=12, height=7)
layout(matrix(c(1,2,3), 1, 3, byrow = TRUE), widths=c(1,1,1))
library("plotrix")
par(mar=c(7,5,4,2))
#mPing
mping_data <- read.table("Rice3k_3000_RelocaTEi_mPing.CombinedGFF.ALL.merge.frequency", sep="\t", header=F)
mping <- mping_data[,6]
breaks <- seq(0, 1800, ... | /Manuscript/figure/Figure_mPing_Ping_Pong_frequency/test.R | no_license | JinfengChen/Rice_pop | R | false | false | 907 | r | pdf("mPing_Ping_Pong_frequency.pdf", width=12, height=7)
layout(matrix(c(1,2,3), 1, 3, byrow = TRUE), widths=c(1,1,1))
library("plotrix")
par(mar=c(7,5,4,2))
#mPing
mping_data <- read.table("Rice3k_3000_RelocaTEi_mPing.CombinedGFF.ALL.merge.frequency", sep="\t", header=F)
mping <- mping_data[,6]
breaks <- seq(0, 1800, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EA.blank.correct.R
\name{EA.blank.correct}
\alias{EA.blank.correct}
\title{Blank corrects EA sample data. (Not Implemented)}
\usage{
EA.blank.correct(results)
}
\value{
List with two tables: standard C & N data ($standard.CN),
sample ... | /man/EA.blank.correct.Rd | permissive | gholtgrieve/HEEL | R | false | true | 740 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EA.blank.correct.R
\name{EA.blank.correct}
\alias{EA.blank.correct}
\title{Blank corrects EA sample data. (Not Implemented)}
\usage{
EA.blank.correct(results)
}
\value{
List with two tables: standard C & N data ($standard.CN),
sample ... |
library(testthat)
library(RMarkov)
library(Matrix)
context("Unit tests for tran rwd")
cumexp <- function(Q, t) {
n <- dim(Q)[1]
im <- diag(n)
zm <- matrix(0,n,n)
Qdash <- rbind(cbind(Q, im), cbind(zm, zm))
expm(Qdash*t)[1:n,(n+1):(n+n)]
}
test_that("tran rwd vecT vecT forward dense", {
Q <- rbind(
c(... | /tests/testthat/test-tran_rwd.R | permissive | okamumu/RMarkov | R | false | false | 20,296 | r | library(testthat)
library(RMarkov)
library(Matrix)
context("Unit tests for tran rwd")
cumexp <- function(Q, t) {
n <- dim(Q)[1]
im <- diag(n)
zm <- matrix(0,n,n)
Qdash <- rbind(cbind(Q, im), cbind(zm, zm))
expm(Qdash*t)[1:n,(n+1):(n+n)]
}
test_that("tran rwd vecT vecT forward dense", {
Q <- rbind(
c(... |
# Function 1
create_dtm <- function(raw_data)
{
data_df = data_frame(text = tolower(as.character(raw_data$text)))
dtm_df = data_df%>% mutate(docid=row_number()) %>% unnest_tokens(word,text) %>% anti_join(stop_words) %>% group_by(docid) %>% count(word)
final_dtm = cast_sparse(dtm_df,docid, word,n)
return... | /custom_r_functions.R | no_license | deepanshu-goyal/Text-Analytics | R | false | false | 4,523 | r | # Function 1
create_dtm <- function(raw_data)
{
data_df = data_frame(text = tolower(as.character(raw_data$text)))
dtm_df = data_df%>% mutate(docid=row_number()) %>% unnest_tokens(word,text) %>% anti_join(stop_words) %>% group_by(docid) %>% count(word)
final_dtm = cast_sparse(dtm_df,docid, word,n)
return... |
test_that( 'basic has works properly', {
expect_equal(
hashfiles(
test_file( 'null-columns.xlsx' ),
full.hash = TRUE
),
'559904736dd3b0cb436d1ebbb7eb2657'
)
})
test_that( 'missing files are handled properly', {
expect_equal(
hashfiles( c( test_file( 'null-colu... | /tests/testthat/test_hashfiles.R | no_license | cran/easyr | R | false | false | 870 | r | test_that( 'basic has works properly', {
expect_equal(
hashfiles(
test_file( 'null-columns.xlsx' ),
full.hash = TRUE
),
'559904736dd3b0cb436d1ebbb7eb2657'
)
})
test_that( 'missing files are handled properly', {
expect_equal(
hashfiles( c( test_file( 'null-colu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gibbs_stcos.R
\name{DIC}
\alias{DIC}
\title{Deviance Information Criterion}
\usage{
DIC(object, ...)
}
\arguments{
\item{object}{A fitted model object.}
\item{...}{Additional arguments.}
}
\value{
A numeric value of the DIC.
}
\description{
... | /stcos/man/DIC.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 415 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gibbs_stcos.R
\name{DIC}
\alias{DIC}
\title{Deviance Information Criterion}
\usage{
DIC(object, ...)
}
\arguments{
\item{object}{A fitted model object.}
\item{...}{Additional arguments.}
}
\value{
A numeric value of the DIC.
}
\description{
... |
#' extract.marker.index
#'
#' extracts the theta and r coordinates for a given marker index
#'
#' @param index The index of the marker to be extracted
#' @param GSdata Processed GenomeStudio data
#'
#' @return A list containing only marker name, Theta and R values for the specified marker
#'
#' @examples
#'
#'
# This f... | /R/extract.marker.index.R | no_license | mtmcgowan/PolySNPclust | R | false | false | 564 | r | #' extract.marker.index
#'
#' extracts the theta and r coordinates for a given marker index
#'
#' @param index The index of the marker to be extracted
#' @param GSdata Processed GenomeStudio data
#'
#' @return A list containing only marker name, Theta and R values for the specified marker
#'
#' @examples
#'
#'
# This f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PeakFunctions_multi_logNormal.R
\name{multi_logNormal}
\alias{multi_logNormal}
\title{Calculate Log-Normal Distribution(s) or Peak(s)}
\usage{
multi_logNormal(x, mus, sigmas, probDensity, returnComponentPks = FALSE, ks)
}
\arguments{
\item{x}... | /man/multi_logNormal.Rd | no_license | hechth/SummitR | R | false | true | 2,171 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PeakFunctions_multi_logNormal.R
\name{multi_logNormal}
\alias{multi_logNormal}
\title{Calculate Log-Normal Distribution(s) or Peak(s)}
\usage{
multi_logNormal(x, mus, sigmas, probDensity, returnComponentPks = FALSE, ks)
}
\arguments{
\item{x}... |
library(unbalanced)
### Name: ubOver
### Title: Over-sampling
### Aliases: ubOver
### ** Examples
library(unbalanced)
data(ubIonosphere)
n<-ncol(ubIonosphere)
output<-ubIonosphere$Class
input<-ubIonosphere[ ,-n]
data<-ubOver(X=input, Y= output)
newData<-cbind(data$X, data$Y)
| /data/genthat_extracted_code/unbalanced/examples/ubOver.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 284 | r | library(unbalanced)
### Name: ubOver
### Title: Over-sampling
### Aliases: ubOver
### ** Examples
library(unbalanced)
data(ubIonosphere)
n<-ncol(ubIonosphere)
output<-ubIonosphere$Class
input<-ubIonosphere[ ,-n]
data<-ubOver(X=input, Y= output)
newData<-cbind(data$X, data$Y)
|
### PARAMETERIZATION INITIAL DOM & Soil pools for a simulation with LANDIS-ForCS ######
## Marco Mina - February 2019
##
## Procedure: after having run a simulation with soilDOM spinup activated (SoilSpinUp table. Col1=1)
## 1) Read the outputs of the size of the DOM and soil pools (log_Pools.csv)
## 2) Save values f... | /Rscripts/soilDOMspinup_ForCS.R | no_license | eavensdrop/firewood_landis | R | false | false | 4,630 | r | ### PARAMETERIZATION INITIAL DOM & Soil pools for a simulation with LANDIS-ForCS ######
## Marco Mina - February 2019
##
## Procedure: after having run a simulation with soilDOM spinup activated (SoilSpinUp table. Col1=1)
## 1) Read the outputs of the size of the DOM and soil pools (log_Pools.csv)
## 2) Save values f... |
library('LICORS')
flattenCorrelationMatrix <- function(cormat, pmat) {
ut <- upper.tri(cormat)
data.frame(
row = rownames(cormat)[row(cormat)[ut]],
col = rownames(cormat)[col(cormat)[ut]],
cor = (cormat)[ut],
p = pmat[ut]
)
}
getPlotFrame <- function(features, range=1:20){
... | /src/gp2/basketball_clustering/utils.R | no_license | Edpearsonjr/howba | R | false | false | 3,020 | r | library('LICORS')
flattenCorrelationMatrix <- function(cormat, pmat) {
ut <- upper.tri(cormat)
data.frame(
row = rownames(cormat)[row(cormat)[ut]],
col = rownames(cormat)[col(cormat)[ut]],
cor = (cormat)[ut],
p = pmat[ut]
)
}
getPlotFrame <- function(features, range=1:20){
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/seasons-data.R
\docType{data}
\name{seasons}
\alias{seasons}
\title{Traditional seasonal calander for Southern and Northern Hemisphere}
\format{tibble}
\source{
http://www.weathersa.co.za/learning/weather-questions/82-how-are-the-date... | /man/seasons.Rd | permissive | JedStephens/rarma | R | false | true | 721 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/seasons-data.R
\docType{data}
\name{seasons}
\alias{seasons}
\title{Traditional seasonal calander for Southern and Northern Hemisphere}
\format{tibble}
\source{
http://www.weathersa.co.za/learning/weather-questions/82-how-are-the-date... |
#' Convert a spatial data frame into a series of lat/lon coordinates
#'
#' @author Laura Hughes, laura.d.hughes@gmail.com
#'
#' @import ggplot2
#'
#'
#' @export
#' @examples
#'
sp2df = function(sp_df){
# pull out the row names from the data and save it as a new column called 'id'
sp_df@data$id = rownames(sp_df@da... | /R/sp2df.R | permissive | tessam30/geocenter | R | false | false | 572 | r | #' Convert a spatial data frame into a series of lat/lon coordinates
#'
#' @author Laura Hughes, laura.d.hughes@gmail.com
#'
#' @import ggplot2
#'
#'
#' @export
#' @examples
#'
sp2df = function(sp_df){
# pull out the row names from the data and save it as a new column called 'id'
sp_df@data$id = rownames(sp_df@da... |
# 02c: Date
source('~/R/qa_functions.R')
if (file.exists("02c_date_qa.RData")) {
load("02c_date_qa.RData")
} else {
# Assigning `SCRIPT_MAP_02c_data` object as the current operating SCRIPT_MAP,
SCRIPT_MAP <- SCRIPT_MAP_02c_date %>% call_mr_clean()
INPUT_DATA_FINAL_02C <- INPUT_DATA_FINA... | /archive/02c_date_qa.R | no_license | meerapatelmd/clinicalDataQuality | R | false | false | 4,207 | r | # 02c: Date
source('~/R/qa_functions.R')
if (file.exists("02c_date_qa.RData")) {
load("02c_date_qa.RData")
} else {
# Assigning `SCRIPT_MAP_02c_data` object as the current operating SCRIPT_MAP,
SCRIPT_MAP <- SCRIPT_MAP_02c_date %>% call_mr_clean()
INPUT_DATA_FINAL_02C <- INPUT_DATA_FINA... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cem_match.R
\name{cem_match}
\alias{cem_match}
\title{Match using CEM}
\usage{
cem_match(
theta,
projection,
treat,
topic_breaks = c(0, 0.1, 1),
projection_breaks = 5,
returnX = FALSE,
...
)
}
\arguments{
\item{theta}{an output ... | /man/cem_match.Rd | no_license | bstewart/textmatching | R | false | true | 1,951 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cem_match.R
\name{cem_match}
\alias{cem_match}
\title{Match using CEM}
\usage{
cem_match(
theta,
projection,
treat,
topic_breaks = c(0, 0.1, 1),
projection_breaks = 5,
returnX = FALSE,
...
)
}
\arguments{
\item{theta}{an output ... |
## Put comments here that give an overall description of what your
## functions do
## To get inverse of matrix
makeCacheMatrix <- function(x = matrix()) {
inv<-NULL
set<-function(y)
{
x<<-y
inv<<-NULL
}
get<-function() x
setinverse<-function(inverse)inv<<-inverse
getinverse<-function()inv
lis... | /cachematrix.R | no_license | PinkySheetal/ProgrammingAssignment2 | R | false | false | 638 | r | ## Put comments here that give an overall description of what your
## functions do
## To get inverse of matrix
makeCacheMatrix <- function(x = matrix()) {
inv<-NULL
set<-function(y)
{
x<<-y
inv<<-NULL
}
get<-function() x
setinverse<-function(inverse)inv<<-inverse
getinverse<-function()inv
lis... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TS_on_LDA.R
\name{TS_on_LDA}
\alias{TS_on_LDA}
\alias{check_TS_on_LDA_inputs}
\title{Conduct a set of Time Series analyses on a set of LDA models}
\usage{
TS_on_LDA(LDA_models, document_covariate_table, formulas = ~1,
nchangepoints = 0, wei... | /man/TS_on_LDA.Rd | permissive | ml-lab/LDATS | R | false | true | 4,083 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TS_on_LDA.R
\name{TS_on_LDA}
\alias{TS_on_LDA}
\alias{check_TS_on_LDA_inputs}
\title{Conduct a set of Time Series analyses on a set of LDA models}
\usage{
TS_on_LDA(LDA_models, document_covariate_table, formulas = ~1,
nchangepoints = 0, wei... |
#' Simulate case information from the generative BETS model
#'
#' @keywords internal
#'
simulate.case <- function(n = 1e7,
params = c(pi = 0.1,
lambda_w = 0.0005,
lambda_v = 0.001,
ka... | /R/simulate.R | permissive | luoluogogogo/bets.covid19 | R | false | false | 2,026 | r | #' Simulate case information from the generative BETS model
#'
#' @keywords internal
#'
simulate.case <- function(n = 1e7,
params = c(pi = 0.1,
lambda_w = 0.0005,
lambda_v = 0.001,
ka... |
library(Lahman)
library(tidyverse)
library(dslabs)
library(broom)
pa_per_game <- Batting %>%
filter(yearID == 2002) %>%
group_by(teamID) %>%
summarize(pa_per_game = sum(AB+BB)/max(G)) %>%
.$pa_per_game %>%
mean
pa_per_game
head(Batting$G)
head(Batting)
?Batting
Batting %>%
filter(yearID == 2002) %>% ... | /cc2_4.R | no_license | sboersma91/whatQQ | R | false | false | 1,532 | r | library(Lahman)
library(tidyverse)
library(dslabs)
library(broom)
pa_per_game <- Batting %>%
filter(yearID == 2002) %>%
group_by(teamID) %>%
summarize(pa_per_game = sum(AB+BB)/max(G)) %>%
.$pa_per_game %>%
mean
pa_per_game
head(Batting$G)
head(Batting)
?Batting
Batting %>%
filter(yearID == 2002) %>% ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pricing_operations.R
\name{pricing_describe_services}
\alias{pricing_describe_services}
\title{Returns the metadata for one service or a list of the metadata for all
services}
\usage{
pricing_describe_services(ServiceCode, FormatVersion, Next... | /cran/paws.cost.management/man/pricing_describe_services.Rd | permissive | ryanb8/paws | R | false | true | 1,737 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pricing_operations.R
\name{pricing_describe_services}
\alias{pricing_describe_services}
\title{Returns the metadata for one service or a list of the metadata for all
services}
\usage{
pricing_describe_services(ServiceCode, FormatVersion, Next... |
model.heartFailure.fromUserFile.load <- function (userFile) {
read.csv(userFile, sep = ',')
}
model.heartFailure.fromUserFile.predict <- function (classifier = NULL, dataset, modelType) {
if (modelType == 'logisticRegression') {
return(model.heartFailure.fromUserFile.logisticRegression.predict(classifier, data... | /app/scripts/model/heart_failure/from_user_file.R | no_license | kaniosx/lifenum | R | false | false | 2,168 | r | model.heartFailure.fromUserFile.load <- function (userFile) {
read.csv(userFile, sep = ',')
}
model.heartFailure.fromUserFile.predict <- function (classifier = NULL, dataset, modelType) {
if (modelType == 'logisticRegression') {
return(model.heartFailure.fromUserFile.logisticRegression.predict(classifier, data... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pinpointemail_operations.R
\name{pinpointemail_put_configuration_set_reputation_options}
\alias{pinpointemail_put_configuration_set_reputation_options}
\title{Enable or disable collection of reputation metrics for emails that you
send using a... | /cran/paws.customer.engagement/man/pinpointemail_put_configuration_set_reputation_options.Rd | permissive | johnnytommy/paws | R | false | true | 1,195 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pinpointemail_operations.R
\name{pinpointemail_put_configuration_set_reputation_options}
\alias{pinpointemail_put_configuration_set_reputation_options}
\title{Enable or disable collection of reputation metrics for emails that you
send using a... |
testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.24869941268294e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613108308-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 344 | r | testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.24869941268294e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... |
require("tidyverse")
# Retrieve Accession IDs for Uniprot
ncbi_df<-read_delim("species_results-MetaHIT-spanish.txt",
delim = "\t", col_names = TRUE)
names(ncbi_df)<-c("BGC_NAME", "TAXA_NAME", "ACC_ID", "PERC_IDENT", "COVERAGE")
filter_ncbi_df <- ncbi_df %>% filter(ACC_ID != "N/A") # 400 mapped
w... | /data/species-profiler-results/accesion_ids-create-table.R | permissive | frcamacho/smNRPS-Crohns | R | false | false | 1,265 | r | require("tidyverse")
# Retrieve Accession IDs for Uniprot
ncbi_df<-read_delim("species_results-MetaHIT-spanish.txt",
delim = "\t", col_names = TRUE)
names(ncbi_df)<-c("BGC_NAME", "TAXA_NAME", "ACC_ID", "PERC_IDENT", "COVERAGE")
filter_ncbi_df <- ncbi_df %>% filter(ACC_ID != "N/A") # 400 mapped
w... |
d <- read.delim("ex.haps", sep = " ", header=FALSE)
l <- read.delim("ex.leg", sep="", header=TRUE)
head(d)
g <- d[,seq(1,ncol(d), by = 2)]
g = g + d[,seq(2,ncol(d), by = 2)]
head(g)
?rbinom
?matrix
gCov <- matrix(rpois(nrow(g) * ncol(g),coverage), nrow=nrow(g))
head(gCov)
length(as.vector(gCov))
temp = rbinom(as.vec... | /samples/hapGen/generateGLs.R | permissive | winni2k/GLPhase | R | false | false | 1,821 | r | d <- read.delim("ex.haps", sep = " ", header=FALSE)
l <- read.delim("ex.leg", sep="", header=TRUE)
head(d)
g <- d[,seq(1,ncol(d), by = 2)]
g = g + d[,seq(2,ncol(d), by = 2)]
head(g)
?rbinom
?matrix
gCov <- matrix(rpois(nrow(g) * ncol(g),coverage), nrow=nrow(g))
head(gCov)
length(as.vector(gCov))
temp = rbinom(as.vec... |
#! /tp/bin/Rscript --no-site-file --no-init-file
rm(list = ls())
library(fincad)
library(GSFCore)
library(RUnit)
library(RJDBC)
library(GSFAnalytics)
library(QFEquity)
library(QFFixedIncome)
library(QFCredit)
args <- commandArgs()
a... | /R/scripts/Jobs/copy91dPutImpliedVolsToInternal.r | no_license | rsheftel/ratel | R | false | false | 1,785 | r | #! /tp/bin/Rscript --no-site-file --no-init-file
rm(list = ls())
library(fincad)
library(GSFCore)
library(RUnit)
library(RJDBC)
library(GSFAnalytics)
library(QFEquity)
library(QFFixedIncome)
library(QFCredit)
args <- commandArgs()
a... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/dse13d.R
\docType{data}
\name{dse13d}
\alias{dse13d}
\title{Dataset for Exercise D, Chapter 13}
\format{A \code{data.frame} with 24 rows and 4 variables:
\describe{
\item{x1}{}
\item{x2}{}
\item{x3}{}
\item{y}{}
}}
\source{
Draper, N.... | /man/dse13d.Rd | no_license | danielgil1/aprean3 | R | false | false | 505 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/dse13d.R
\docType{data}
\name{dse13d}
\alias{dse13d}
\title{Dataset for Exercise D, Chapter 13}
\format{A \code{data.frame} with 24 rows and 4 variables:
\describe{
\item{x1}{}
\item{x2}{}
\item{x3}{}
\item{y}{}
}}
\source{
Draper, N.... |
################################## Functions to build synthetic data ######################################
################################# Unique set of data ####################################################
#' Create synthetic gaussian-shaped species abundance data
#'
#' @param SpeciesNum An integer giving the... | /R/Synthetic_Data.R | no_license | cran/EcotoneFinder | R | false | false | 18,298 | r | ################################## Functions to build synthetic data ######################################
################################# Unique set of data ####################################################
#' Create synthetic gaussian-shaped species abundance data
#'
#' @param SpeciesNum An integer giving the... |
ui <- bootstrapPage(
# # # # # # # # # # # # # # # # # # # # # # # # #
# #
# Home Tab #
# #
# # # # # # # # # # # # # # # # # # # # # # # # #
navbarPage("Southend-... | /ui.R | no_license | jrapki01/crimemap | R | false | false | 20,066 | r | ui <- bootstrapPage(
# # # # # # # # # # # # # # # # # # # # # # # # #
# #
# Home Tab #
# #
# # # # # # # # # # # # # # # # # # # # # # # # #
navbarPage("Southend-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myf.R
\name{myf}
\alias{myf}
\title{Square Function}
\usage{
myf(x, y)
}
\arguments{
\item{x}{}
}
\value{
a vector of square components in the form of a vector object
}
\description{
takes vector and returns a vector of squared components
}
\... | /man/myf.Rd | no_license | lmtrevisi/MATH4753ouTrev0002 | R | false | true | 357 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myf.R
\name{myf}
\alias{myf}
\title{Square Function}
\usage{
myf(x, y)
}
\arguments{
\item{x}{}
}
\value{
a vector of square components in the form of a vector object
}
\description{
takes vector and returns a vector of squared components
}
\... |
#' Class SQLiteResult (and methods)
#'
#' SQLiteDriver objects are created by [dbSendQuery()] or [dbSendStatement()],
#' and encapsulate the result of an SQL statement (either `SELECT` or not).
#' They are a superclass of the [DBIResult-class] class.
#' The "Usage" section lists the class methods overridden by \pkg{RSQ... | /R/SQLiteResult.R | permissive | Sparty87/RSQLite | R | false | false | 910 | r | #' Class SQLiteResult (and methods)
#'
#' SQLiteDriver objects are created by [dbSendQuery()] or [dbSendStatement()],
#' and encapsulate the result of an SQL statement (either `SELECT` or not).
#' They are a superclass of the [DBIResult-class] class.
#' The "Usage" section lists the class methods overridden by \pkg{RSQ... |
library(dplyr)
library(tidyverse)
args <- commandArgs(TRUE)
TOP_N <- strtoi(args[1])
df <- read.csv("../data/geo/GSE50911_series_matrix.txt/GSE50911_expression.csv")
df <- unique(df)
df$fold_increase <- df$GSM1232317 / df$GSM1232315
df <- df[c("entrez","fold_increase")]
df <- df %>% arrange(desc(fold_increase))
... | /R Development/FoldIncrease_Scripts/GSE50911_fold_change_over.R | no_license | mmanchon/Master-Final-Thesis | R | false | false | 528 | r | library(dplyr)
library(tidyverse)
args <- commandArgs(TRUE)
TOP_N <- strtoi(args[1])
df <- read.csv("../data/geo/GSE50911_series_matrix.txt/GSE50911_expression.csv")
df <- unique(df)
df$fold_increase <- df$GSM1232317 / df$GSM1232315
df <- df[c("entrez","fold_increase")]
df <- df %>% arrange(desc(fold_increase))
... |
elec_data <- read.table("./data/household_power_consumption.txt", sep = ";", header = TRUE)
elec_data <- elec_data[which(as.character(elec_data$Date) == "1/2/2007" | as.character(elec_data$Date) == "2/2/2007"), ]
elec_data <- transform(elec_data, datetime = paste(Date, Time, sep = " "))
elec_data <- transform(elec_data... | /plot4.R | no_license | Uttam1609/ExData_Plotting1 | R | false | false | 1,350 | r | elec_data <- read.table("./data/household_power_consumption.txt", sep = ";", header = TRUE)
elec_data <- elec_data[which(as.character(elec_data$Date) == "1/2/2007" | as.character(elec_data$Date) == "2/2/2007"), ]
elec_data <- transform(elec_data, datetime = paste(Date, Time, sep = " "))
elec_data <- transform(elec_data... |
#############################################################################
# Sigma index #
# (Creates a data frame of words with their respective sigma index values.) #
#############################################################################
# -----... | /src/SKE-2-compute-sigma-index-LAKE.R | no_license | SDuari/Supervised-Keyword-Extraction | R | false | false | 1,956 | r | #############################################################################
# Sigma index #
# (Creates a data frame of words with their respective sigma index values.) #
#############################################################################
# -----... |
# Read data, convert dates and subset on two days in February 2007
filename <- "exdata_plotting1.zip"
if (!file.exists(filename)) {
retval <- download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = filename)
}
data <- read.csv(unz(filename, "household_po... | /plot2.R | no_license | alainlegera/ExData_Plotting1 | R | false | false | 1,078 | r | # Read data, convert dates and subset on two days in February 2007
filename <- "exdata_plotting1.zip"
if (!file.exists(filename)) {
retval <- download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = filename)
}
data <- read.csv(unz(filename, "household_po... |
library(ggplot2)
ggplot(data=dataset,aes(x=Year,y=Status))
#add geometry
#figure 21
ggplot(data=dataset,aes(x=Year,y=Status))+
geom_point() +
ggtitle("Year vs Status")
#figure 22
ggplot(data=dataset,aes(x=Month,y=Status))+
geom_point() +
ggtitle("Month vs Status")+
theme(axis.text.x = element... | /Data Visualization/ggplot.R | no_license | prg127/foodborne_diseases_outbreak_prediction | R | false | false | 3,809 | r | library(ggplot2)
ggplot(data=dataset,aes(x=Year,y=Status))
#add geometry
#figure 21
ggplot(data=dataset,aes(x=Year,y=Status))+
geom_point() +
ggtitle("Year vs Status")
#figure 22
ggplot(data=dataset,aes(x=Month,y=Status))+
geom_point() +
ggtitle("Month vs Status")+
theme(axis.text.x = element... |
#' The application server-side
#'
#' @param input,output,session Internal parameters for {shiny}.
#' DO NOT REMOVE.
#' @import shiny
#' @import shinyjs
#' @import shinyBS
#' @import shinycssloaders
#' @import shinyFiles
#' @import shinydashboard
#' @import DT
#' @import Seurat
#' @import dplyr
#' @import Matrix
#... | /R/app_server.R | no_license | xqs-time/SoftTools2021 | R | false | false | 32,241 | r | #' The application server-side
#'
#' @param input,output,session Internal parameters for {shiny}.
#' DO NOT REMOVE.
#' @import shiny
#' @import shinyjs
#' @import shinyBS
#' @import shinycssloaders
#' @import shinyFiles
#' @import shinydashboard
#' @import DT
#' @import Seurat
#' @import dplyr
#' @import Matrix
#... |
#' Execute a program/script from the installed MCUPGMA suite.
#'
#' @param exec Name of the file of the executable.
#' @param console Logical. Print output to R console or fetch for return to
#' caller
#' @param ... Arguments passed to mcupgma executable in order required by
#' program
#' @return console=TRUE: ... | /R/tools.R | no_license | genepi-freiburg/Netboost | R | false | false | 2,946 | r | #' Execute a program/script from the installed MCUPGMA suite.
#'
#' @param exec Name of the file of the executable.
#' @param console Logical. Print output to R console or fetch for return to
#' caller
#' @param ... Arguments passed to mcupgma executable in order required by
#' program
#' @return console=TRUE: ... |
##Divyan Kavdia's Correlation
##directory<-c('F:/Coursera/Week2 Project/specdata')
corr <- function(directory, threshold = 0) {
source("complete.R")
completeCases <- complete(directory)
casesAboveThreshold <- completeCases[completeCases$nobs > threshold,1]
allFiles <- list.files(path = directory, full.names =... | /Week2 Project/Scripts/Corr.R | no_license | DivyanKavdia/datasciencecoursera | R | false | false | 746 | r | ##Divyan Kavdia's Correlation
##directory<-c('F:/Coursera/Week2 Project/specdata')
corr <- function(directory, threshold = 0) {
source("complete.R")
completeCases <- complete(directory)
casesAboveThreshold <- completeCases[completeCases$nobs > threshold,1]
allFiles <- list.files(path = directory, full.names =... |
\name{optDesign}
\alias{optDesign}
\alias{plot.DRdesign}
\alias{calcCrit}
\alias{rndDesign}
\title{
Function to calculate optimal designs
}
\description{
Given a set of models (with full parameter values and model
probabilities) the \samp{optDesign} function calculates the optimal
design for estimating the dos... | /man/optDesign.Rd | no_license | bbnkmp/DoseFinding | R | false | false | 13,232 | rd | \name{optDesign}
\alias{optDesign}
\alias{plot.DRdesign}
\alias{calcCrit}
\alias{rndDesign}
\title{
Function to calculate optimal designs
}
\description{
Given a set of models (with full parameter values and model
probabilities) the \samp{optDesign} function calculates the optimal
design for estimating the dos... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inclusion.exclusion.R
\name{apply.inc.exc}
\alias{apply.inc.exc}
\title{Using parsed control inclusion/exclusion data,
remove controls that don't match specified criteria.}
\usage{
apply.inc.exc(
df,
phenotype.name,
trait.is.binary,
c... | /man/apply.inc.exc.Rd | no_license | NCI-CGR/construct.model.matrix | R | false | true | 1,295 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inclusion.exclusion.R
\name{apply.inc.exc}
\alias{apply.inc.exc}
\title{Using parsed control inclusion/exclusion data,
remove controls that don't match specified criteria.}
\usage{
apply.inc.exc(
df,
phenotype.name,
trait.is.binary,
c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregatingMeta.R
\name{MAD_}
\alias{MAD_}
\alias{SAD_}
\title{All pairs mean and sum of absolute differences}
\usage{
MAD_(x, ..., na.rm = getOption("na.omit", FALSE))
SAD_(x, ..., na.rm = getOption("na.omit", FALSE))
}
\arguments{
\item{x}... | /man/MAD_.Rd | no_license | kenjimyzk/mosaic | R | false | true | 691 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregatingMeta.R
\name{MAD_}
\alias{MAD_}
\alias{SAD_}
\title{All pairs mean and sum of absolute differences}
\usage{
MAD_(x, ..., na.rm = getOption("na.omit", FALSE))
SAD_(x, ..., na.rm = getOption("na.omit", FALSE))
}
\arguments{
\item{x}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geoMean.R
\name{geoMean}
\alias{geoMean}
\title{Geometric mean}
\usage{
geoMean(x, na.rm = FALSE)
}
\arguments{
\item{x}{a vector. Matrices are allowed.}
\item{na.rm}{logical; should NA values be removed?}
}
\value{
If \code{x} has any \code... | /BrCa_Age_Associated_TMA/Packages/biostatUtil/man/geoMean.Rd | no_license | BCCRCMO/BrCa_AgeAssociations | R | false | true | 788 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geoMean.R
\name{geoMean}
\alias{geoMean}
\title{Geometric mean}
\usage{
geoMean(x, na.rm = FALSE)
}
\arguments{
\item{x}{a vector. Matrices are allowed.}
\item{na.rm}{logical; should NA values be removed?}
}
\value{
If \code{x} has any \code... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/backup_operations.R
\name{backup_describe_region_settings}
\alias{backup_describe_region_settings}
\title{Returns the current service opt-in settings for the Region}
\usage{
backup_describe_region_settings()
}
\description{
Returns the curren... | /paws/man/backup_describe_region_settings.Rd | permissive | sanchezvivi/paws | R | false | true | 814 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/backup_operations.R
\name{backup_describe_region_settings}
\alias{backup_describe_region_settings}
\title{Returns the current service opt-in settings for the Region}
\usage{
backup_describe_region_settings()
}
\description{
Returns the curren... |
#Sandra Berenice Valdes Platas
# Matricula: 1873490
# 29.01.2020
# operadores basicos -----------------------------------------------------
2+2
a <- 2
a + 5
a+a^2
log(a)
# Descriptivas ------------------------------------------------------------
# Ingresar conjunto de datos
peso <- c(70, 62, 52, 90, 38, ... | /Clases/Script_1.R | no_license | 1873490/108-Estadistica- | R | false | false | 853 | r | #Sandra Berenice Valdes Platas
# Matricula: 1873490
# 29.01.2020
# operadores basicos -----------------------------------------------------
2+2
a <- 2
a + 5
a+a^2
log(a)
# Descriptivas ------------------------------------------------------------
# Ingresar conjunto de datos
peso <- c(70, 62, 52, 90, 38, ... |
VERSION <- "1.0.1"
cat("Non-Parametric Shrinkage", VERSION, "\n")
ASSERT <- function(test) {
if (length(test) == 0) {
stop(paste("ASSERT fail for empty conditional:",
deparse(substitute(test))))
}
if (is.na(test)) {
stop(paste("ASSERT fail for missing value:",
... | /npsR/nps_back2snpeff.R | no_license | mclaugsf/nps | R | false | false | 7,402 | r | VERSION <- "1.0.1"
cat("Non-Parametric Shrinkage", VERSION, "\n")
ASSERT <- function(test) {
if (length(test) == 0) {
stop(paste("ASSERT fail for empty conditional:",
deparse(substitute(test))))
}
if (is.na(test)) {
stop(paste("ASSERT fail for missing value:",
... |
# 03.1 Gráficos de deciles de ingreso
#
#' A partir de 03, se crean gráficos de deciles de ingreso
#*****************************************************************************
# 1. Activar librerías ---------------------------------------------------------------
#***************************************************... | /R/03.1 - Gráficas deciles.R | no_license | du-gartre/Datxs-Unidxs | R | false | false | 1,765 | r | # 03.1 Gráficos de deciles de ingreso
#
#' A partir de 03, se crean gráficos de deciles de ingreso
#*****************************************************************************
# 1. Activar librerías ---------------------------------------------------------------
#***************************************************... |
#' @useDynLib groupedtseries
#' @importFrom Rcpp sourceCpp
#' @importFrom stats is.ts as.ts
#' @export
create_X_AR <- function(y,taille,AR_lags,MA_lags, ts_segments) {
number_ts_segments <- nrow(ts_segments)
X_AR <- matrix(0,taille-AR_lags*number_ts_segments,1+AR_lags+MA_lags)
X_AR[,1] <- matrix(1,taille-AR_lags*num... | /R/create_X_AR.R | no_license | MichaelHoerner/groupedtseries | R | false | false | 1,479 | r | #' @useDynLib groupedtseries
#' @importFrom Rcpp sourceCpp
#' @importFrom stats is.ts as.ts
#' @export
create_X_AR <- function(y,taille,AR_lags,MA_lags, ts_segments) {
number_ts_segments <- nrow(ts_segments)
X_AR <- matrix(0,taille-AR_lags*number_ts_segments,1+AR_lags+MA_lags)
X_AR[,1] <- matrix(1,taille-AR_lags*num... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metutils.R
\name{sw2par}
\alias{sw2par}
\title{SW to PAR}
\usage{
sw2par(sw)
}
\arguments{
\item{sw}{shortwave radiation (W/m2 == J/m2/s)}
}
\value{
PAR W/m2
}
\description{
Solar Radiation to PPFD
}
\details{
Here the input is the total sola... | /modules/data.atmosphere/man/sw2par.Rd | permissive | Kah5/pecan | R | false | true | 529 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metutils.R
\name{sw2par}
\alias{sw2par}
\title{SW to PAR}
\usage{
sw2par(sw)
}
\arguments{
\item{sw}{shortwave radiation (W/m2 == J/m2/s)}
}
\value{
PAR W/m2
}
\description{
Solar Radiation to PPFD
}
\details{
Here the input is the total sola... |
\name{wavenorm<-}
\alias{wavenorm<-}
\alias{wavenorm<--methods}
\title{Replace slot wavenorm}
\description{changes slot \code{wavenorm} of a CGHoptions object}
\arguments{
\item{.Object}{an object of the CGHoptions class}
}
\value{None}
\details{
\code{CGHo["wavenorm"]} determines the method to remove the
wave-ef... | /man/wavenorm.Rd | no_license | cran/cghseg | R | false | false | 818 | rd | \name{wavenorm<-}
\alias{wavenorm<-}
\alias{wavenorm<--methods}
\title{Replace slot wavenorm}
\description{changes slot \code{wavenorm} of a CGHoptions object}
\arguments{
\item{.Object}{an object of the CGHoptions class}
}
\value{None}
\details{
\code{CGHo["wavenorm"]} determines the method to remove the
wave-ef... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ijtiff.R
\docType{package}
\name{ijtiff}
\alias{ijtiff}
\alias{ijtiff-package}
\title{\code{ijtiff}: TIFF I/O for \emph{ImageJ} users}
\description{
This is a general purpose TIFF I/O utility for R. The \href{https://cran.r-project.org/packag... | /man/ijtiff.Rd | no_license | R-forks-to-learn/ijtiff | R | false | true | 866 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ijtiff.R
\docType{package}
\name{ijtiff}
\alias{ijtiff}
\alias{ijtiff-package}
\title{\code{ijtiff}: TIFF I/O for \emph{ImageJ} users}
\description{
This is a general purpose TIFF I/O utility for R. The \href{https://cran.r-project.org/packag... |
# ------------------------------------------------------------------------
# Bayesian semi-supervised learning
# ------------------------------------------------------------------------
# User input
args <- commandArgs(TRUE)
vis <- args[1]
# For test
setwd('C:/Users/erogeka/bla/Protoype/Analysis')
vis = TRUE
... | /Prototype/bssl-modeling.R | permissive | rocka261/bssl-al | R | false | false | 2,057 | r |
# ------------------------------------------------------------------------
# Bayesian semi-supervised learning
# ------------------------------------------------------------------------
# User input
args <- commandArgs(TRUE)
vis <- args[1]
# For test
setwd('C:/Users/erogeka/bla/Protoype/Analysis')
vis = TRUE
... |
#===============================================================================
# Load libraries
#===============================================================================
library(DESeq2)
library("BiocParallel")
register(MulticoreParam(12))
library(ggplot2)
library(Biostrings)
library(devtools)
load_all("... | /new_dge.R | no_license | harrisonlab/quorn_rna-seq | R | false | false | 8,388 | r | #===============================================================================
# Load libraries
#===============================================================================
library(DESeq2)
library("BiocParallel")
register(MulticoreParam(12))
library(ggplot2)
library(Biostrings)
library(devtools)
load_all("... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation-functions.R
\name{compare_RML_HPS}
\alias{compare_RML_HPS}
\title{Run simulation comparing REML and HPS estimates}
\usage{
compare_RML_HPS(iterations, beta, rho, phi, design, m, n, MB = TRUE)
}
\arguments{
\item{iterations}{number ... | /man/compare_RML_HPS.Rd | no_license | Cristrinaranjus/scdhlm | R | false | true | 1,655 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation-functions.R
\name{compare_RML_HPS}
\alias{compare_RML_HPS}
\title{Run simulation comparing REML and HPS estimates}
\usage{
compare_RML_HPS(iterations, beta, rho, phi, design, m, n, MB = TRUE)
}
\arguments{
\item{iterations}{number ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cognitoidentityprovider_operations.R
\name{cognitoidentityprovider_confirm_sign_up}
\alias{cognitoidentityprovider_confirm_sign_up}
\title{Confirms registration of a user and handles the existing alias from a
previous user}
\usage{
cognitoide... | /cran/paws.security.identity/man/cognitoidentityprovider_confirm_sign_up.Rd | permissive | sanchezvivi/paws | R | false | true | 3,826 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cognitoidentityprovider_operations.R
\name{cognitoidentityprovider_confirm_sign_up}
\alias{cognitoidentityprovider_confirm_sign_up}
\title{Confirms registration of a user and handles the existing alias from a
previous user}
\usage{
cognitoide... |
proportionAsSize <- function(data) {
results <- data.frame(matrix(ncol = 3, nrow = 0))
names(results) <- c("commit_words", "jacob", "charles")
for (i in 1:max(data$commit_words)) {
jacobT = nrow(subset(data, commit_words == i & jacob == "True"))
jacobF = nrow(subset(data, commit_words == i & jacob == "False"))... | /commit_tagging/proportion_as_size.r | no_license | jacoblb64/McGill_MSR_G14 | R | false | false | 3,749 | r | proportionAsSize <- function(data) {
results <- data.frame(matrix(ncol = 3, nrow = 0))
names(results) <- c("commit_words", "jacob", "charles")
for (i in 1:max(data$commit_words)) {
jacobT = nrow(subset(data, commit_words == i & jacob == "True"))
jacobF = nrow(subset(data, commit_words == i & jacob == "False"))... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.