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 |
|---|---|---|---|---|---|---|---|---|---|
test_that("gargle_verbosity() defaults to 'info'", {
withr::local_options(list(
gargle_verbosity = NULL,
gargle_quiet = NULL
))
expect_equal(gargle_verbosity(), "info")
})
test_that("gargle_verbosity() validates the value it finds", {
withr::local_options(list(gargle_verbosity = TRUE))
expect_snapsho... | /tests/testthat/test-utils-ui.R | permissive | muschellij2/gargle | R | false | false | 1,968 | r | test_that("gargle_verbosity() defaults to 'info'", {
withr::local_options(list(
gargle_verbosity = NULL,
gargle_quiet = NULL
))
expect_equal(gargle_verbosity(), "info")
})
test_that("gargle_verbosity() validates the value it finds", {
withr::local_options(list(gargle_verbosity = TRUE))
expect_snapsho... |
setwd("C:\\Users\\user\\Desktop\\R code")
demandCal = function(up,lo,times,demand_mean,demand_sd)
{
demandlist <- list()
demand <- c()
for(i in 1:times){
repeat{
demand[i] <- rnorm(1,mean = demand_mean,sd = demand_sd)
if(demand[i] < up && demand[i] > lo ) break
}
}
demandlist <... | /20170308demanddata.R | no_license | tina850506/R_code | R | false | false | 1,251 | r | setwd("C:\\Users\\user\\Desktop\\R code")
demandCal = function(up,lo,times,demand_mean,demand_sd)
{
demandlist <- list()
demand <- c()
for(i in 1:times){
repeat{
demand[i] <- rnorm(1,mean = demand_mean,sd = demand_sd)
if(demand[i] < up && demand[i] > lo ) break
}
}
demandlist <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssm_operations.R
\name{ssm_get_parameter}
\alias{ssm_get_parameter}
\title{Get information about a parameter by using the parameter name}
\usage{
ssm_get_parameter(Name, WithDecryption)
}
\arguments{
\item{Name}{[required] The name of the par... | /paws/man/ssm_get_parameter.Rd | permissive | johnnytommy/paws | R | false | true | 770 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssm_operations.R
\name{ssm_get_parameter}
\alias{ssm_get_parameter}
\title{Get information about a parameter by using the parameter name}
\usage{
ssm_get_parameter(Name, WithDecryption)
}
\arguments{
\item{Name}{[required] The name of the par... |
# fileloc = "C:/Users/Ian/Documents/Work/JP/Schizophrenia/Processed_data"
# filename = "FeatureMatrixCLEAN2REPSBACK.txt"
# srvyinds=3:40
# labels = c("Anxiety","Depression","Meds","Sleep","Psychosis","WSS")
# groupings = list()
# groupings[[1]] = c(3,6,8,13,23,25)
# groupings[[2]] = c(5,7,10,11,14,21,24,26)
# groupings... | /Processing/CombineSurveyResponses.R | no_license | ianjamesbarnett/AWARE_Processing_AutoReports | R | false | false | 1,667 | r | # fileloc = "C:/Users/Ian/Documents/Work/JP/Schizophrenia/Processed_data"
# filename = "FeatureMatrixCLEAN2REPSBACK.txt"
# srvyinds=3:40
# labels = c("Anxiety","Depression","Meds","Sleep","Psychosis","WSS")
# groupings = list()
# groupings[[1]] = c(3,6,8,13,23,25)
# groupings[[2]] = c(5,7,10,11,14,21,24,26)
# groupings... |
\name{threads}
\alias{threads}
\title{E-Mail Threads}
\description{
Extract threads (i.e., chains of messages on a single subject) from
e-mail documents.
}
\usage{
threads(x)
}
\arguments{
\item{x}{A corpus consisting of e-mails (\code{MailDocument}s).}
}
\value{
A list with the two named components \code{Threa... | /man/threads.Rd | no_license | cran/tm.plugin.mail | R | false | false | 1,031 | rd | \name{threads}
\alias{threads}
\title{E-Mail Threads}
\description{
Extract threads (i.e., chains of messages on a single subject) from
e-mail documents.
}
\usage{
threads(x)
}
\arguments{
\item{x}{A corpus consisting of e-mails (\code{MailDocument}s).}
}
\value{
A list with the two named components \code{Threa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MAUDE.R
\name{getZScalesWithNTGuides}
\alias{getZScalesWithNTGuides}
\title{Calculate Z-score scaling factors using non-targeting guides}
\usage{
getZScalesWithNTGuides(ntData, uGuidesPerElement, mergeBy, ntSampleFold = 10)
}
\arguments{
\ite... | /man/getZScalesWithNTGuides.Rd | permissive | pimentel/MAUDE | R | false | true | 1,047 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MAUDE.R
\name{getZScalesWithNTGuides}
\alias{getZScalesWithNTGuides}
\title{Calculate Z-score scaling factors using non-targeting guides}
\usage{
getZScalesWithNTGuides(ntData, uGuidesPerElement, mergeBy, ntSampleFold = 10)
}
\arguments{
\ite... |
=begin
=メニューのカスタマイズ
((<menus.xml|URL:MenusXml.html>))を編集することでメニューをカスタマイズできます。
Windows Mobile 5.0以降では、トップレベルのポップアップメニューの数を2個以下にするとソフトキーが使用できます。
=end
| /docs/CustomizeMenus.rd | permissive | snakamura/q3 | R | false | false | 319 | rd | =begin
=メニューのカスタマイズ
((<menus.xml|URL:MenusXml.html>))を編集することでメニューをカスタマイズできます。
Windows Mobile 5.0以降では、トップレベルのポップアップメニューの数を2個以下にするとソフトキーが使用できます。
=end
|
\name{runCommand}
\alias{runCommand}
\title{Issue the System Call That Invokes NONMEM}
\description{
If \code{udef} is \code{FALSE}, \code{command} is passed to \code{nm.pl} with supporting arguments. If \code{grid}
is \code{TRUE}, the result is passed to \code{qsub} with supporting arguments. If \code{boot}
is \... | /man/runCommand.Rd | no_license | cran/MIfuns | R | false | false | 4,149 | rd | \name{runCommand}
\alias{runCommand}
\title{Issue the System Call That Invokes NONMEM}
\description{
If \code{udef} is \code{FALSE}, \code{command} is passed to \code{nm.pl} with supporting arguments. If \code{grid}
is \code{TRUE}, the result is passed to \code{qsub} with supporting arguments. If \code{boot}
is \... |
source('.Rprofile')
##
# get data for doc
# segment polygon for old tampa bay
seg_shp <- readShapeSpatial('seagrass_gis/seg_820.shp')
# seagrass bathmetry intersected points for old tampa bay
sgpts_shp <- readShapeSpatial('seagrass_gis/sgpts_820_2006_buff.shp')
# set ggplot theme
theme_set(theme_bw())
# for debugg... | /extra.R | no_license | fawda123/bigbend_seagrass | R | false | false | 2,089 | r | source('.Rprofile')
##
# get data for doc
# segment polygon for old tampa bay
seg_shp <- readShapeSpatial('seagrass_gis/seg_820.shp')
# seagrass bathmetry intersected points for old tampa bay
sgpts_shp <- readShapeSpatial('seagrass_gis/sgpts_820_2006_buff.shp')
# set ggplot theme
theme_set(theme_bw())
# for debugg... |
# GO_MWU uses continuous measure of significance (such as fold-change or -log(p-value) ) to identify GO categories that are significantly enriches with either up- or down-regulated genes. The advantage - no need to impose arbitrary significance cutoff.
# If the measure is binary (0 or 1) the script will perform a typ... | /GO_MWU_Diversity_WGCNA_magenta.R | no_license | lfuess/MicrobiomeMS | R | false | false | 5,143 | r |
# GO_MWU uses continuous measure of significance (such as fold-change or -log(p-value) ) to identify GO categories that are significantly enriches with either up- or down-regulated genes. The advantage - no need to impose arbitrary significance cutoff.
# If the measure is binary (0 or 1) the script will perform a typ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fun_recovery.R
\name{calcRecoveryTS}
\alias{calcRecoveryTS}
\title{Calculate recovery for a single time series}
\usage{
calcRecoveryTS(
tsi,
maxBreak,
obspyr,
inp = "segmented",
shortDenseTS = TRUE,
nPre = 2,
nDist ... | /man/calcRecoveryTS.Rd | permissive | RETURN-project/UpscaleRecovery | R | false | true | 2,114 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fun_recovery.R
\name{calcRecoveryTS}
\alias{calcRecoveryTS}
\title{Calculate recovery for a single time series}
\usage{
calcRecoveryTS(
tsi,
maxBreak,
obspyr,
inp = "segmented",
shortDenseTS = TRUE,
nPre = 2,
nDist ... |
WriteOnNoteBook <- function(total.page.count) {
count <- 0
repeat {
count <- count + 1
if (count > total.page.count) {
print("Page finished")
break
}
print(paste("writing on page number", count))
}
}
WriteOnNoteBook(total.page.count = 10)
| /RProgrammingFundamentals/07.R_Flow_Control/07RepeatWithBreak.R | no_license | samuraoka/RExamples | R | false | false | 308 | r | WriteOnNoteBook <- function(total.page.count) {
count <- 0
repeat {
count <- count + 1
if (count > total.page.count) {
print("Page finished")
break
}
print(paste("writing on page number", count))
}
}
WriteOnNoteBook(total.page.count = 10)
|
library(rjson)
library(jsonlite)
library(data.table)
# library(gsheet)
source(file = "01_Settings/Path.R", local = T, encoding = "UTF-8")
source(file = "00_System/Generate.ProcessData.R", local = T, encoding = "UTF-8")
# ====けんもデータ====
# positiveDetail <- gsheet2tbl("docs.google.com/spreadsheets/d/1Cy4W9hYhGmABq1GuhL... | /00_System/FetchData.R | permissive | linc-student/2019-ncov-japan | R | false | false | 11,679 | r | library(rjson)
library(jsonlite)
library(data.table)
# library(gsheet)
source(file = "01_Settings/Path.R", local = T, encoding = "UTF-8")
source(file = "00_System/Generate.ProcessData.R", local = T, encoding = "UTF-8")
# ====けんもデータ====
# positiveDetail <- gsheet2tbl("docs.google.com/spreadsheets/d/1Cy4W9hYhGmABq1GuhL... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_fstats.R
\name{plot_fstats}
\alias{plot_fstats}
\title{Plot F2, F3, F3star, F4, D or pairwise Fst values with their Confidence Intervals}
\usage{
plot_fstats(
x,
stat.name = "F2",
ci.perc = 95,
value.range = c(NA, NA),
pop.sel ... | /man/plot_fstats.Rd | no_license | cran/poolfstat | R | false | true | 2,715 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_fstats.R
\name{plot_fstats}
\alias{plot_fstats}
\title{Plot F2, F3, F3star, F4, D or pairwise Fst values with their Confidence Intervals}
\usage{
plot_fstats(
x,
stat.name = "F2",
ci.perc = 95,
value.range = c(NA, NA),
pop.sel ... |
x<-c(1,2,3,4,5)
x
x <- c("A","B","C","가","나","다")
x
class(x)
x<-c("1","2","3")
x
x <- "2018-01-18"
class(x)
x <- as.Date("2020-01-18")
x
class(x)
y <- as.Date("2019-01-18")
y
class(y)
x-y
x <- TRUE
y <- FALSE
class(x)
class(y)
# Alt+Enter = 실행
# Alt+ - = <- 자동 입력
# 1차원 - ... | /rclass1.r | no_license | sp-moribito/R | R | false | false | 1,068 | r | x<-c(1,2,3,4,5)
x
x <- c("A","B","C","가","나","다")
x
class(x)
x<-c("1","2","3")
x
x <- "2018-01-18"
class(x)
x <- as.Date("2020-01-18")
x
class(x)
y <- as.Date("2019-01-18")
y
class(y)
x-y
x <- TRUE
y <- FALSE
class(x)
class(y)
# Alt+Enter = 실행
# Alt+ - = <- 자동 입력
# 1차원 - ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/context.R
\name{context}
\alias{context}
\alias{n}
\alias{cur_data}
\alias{cur_group}
\alias{cur_group_id}
\alias{cur_group_rows}
\alias{cur_column}
\title{Context dependent expressions}
\usage{
n()
cur_data()
cur_group()
cur_group_id()
c... | /man/context.Rd | permissive | earowang/dplyr | R | false | true | 1,742 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/context.R
\name{context}
\alias{context}
\alias{n}
\alias{cur_data}
\alias{cur_group}
\alias{cur_group_id}
\alias{cur_group_rows}
\alias{cur_column}
\title{Context dependent expressions}
\usage{
n()
cur_data()
cur_group()
cur_group_id()
c... |
library(scater)
library(readr)
library(AUC)
library(aargh)
library(dplyr)
library(stringr)
source("analysis/simulations/parse_funcs.R")
sim_dir <- file.path("data", "simulations")
calculate_rocs_pp <- function(df_small) {
df <- read_csv(df_small$path)
quasi_p_val <- dnorm(0, df$m_beta, sqrt(df$s_beta))
sce <- ... | /analysis/simulations/calculate_auc_phenopath.R | no_license | kieranrcampbell/phenopath_revisions | R | false | false | 1,163 | r | library(scater)
library(readr)
library(AUC)
library(aargh)
library(dplyr)
library(stringr)
source("analysis/simulations/parse_funcs.R")
sim_dir <- file.path("data", "simulations")
calculate_rocs_pp <- function(df_small) {
df <- read_csv(df_small$path)
quasi_p_val <- dnorm(0, df$m_beta, sqrt(df$s_beta))
sce <- ... |
#Given a 4x2 matrix containing four points in the x-y plane, determine if the four points form a convex
#quadrilateral. Return TRUE if they do form a convex quadrilateral and FALSE otherwise.# The function
#prototype is: Is.convex.quad <- function(p).
#p is a 4x2 numerical matrix. Each row of p is a point in the x-y... | /RScripts/convex.quad.R | no_license | fagnersutel/r-programming | R | false | false | 1,790 | r | #Given a 4x2 matrix containing four points in the x-y plane, determine if the four points form a convex
#quadrilateral. Return TRUE if they do form a convex quadrilateral and FALSE otherwise.# The function
#prototype is: Is.convex.quad <- function(p).
#p is a 4x2 numerical matrix. Each row of p is a point in the x-y... |
mu<- 0
valor<-1000
sigma <- 5.2
sigma2<- 3.4
n <- 25
n2<- 36
xbarra1 <- 81
xbarra2 <- 76
vector <-1:valor
vector2 <- 1:valor
for(i in vector){
vector[i]<- mean(rnorm(n,mu,sigma))
}
for(y in vector2){
vector2[y]<- mean(rnorm(n2,mu,sigma2))
}
vectorfin<- 1:valor
contador<-0
vectorfin<-vector-vector2
for(c in 1:valor... | /10,30.R | no_license | FelipeRojas15/PRYE | R | false | false | 389 | r | mu<- 0
valor<-1000
sigma <- 5.2
sigma2<- 3.4
n <- 25
n2<- 36
xbarra1 <- 81
xbarra2 <- 76
vector <-1:valor
vector2 <- 1:valor
for(i in vector){
vector[i]<- mean(rnorm(n,mu,sigma))
}
for(y in vector2){
vector2[y]<- mean(rnorm(n2,mu,sigma2))
}
vectorfin<- 1:valor
contador<-0
vectorfin<-vector-vector2
for(c in 1:valor... |
## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, fig.width = 4.8, fig.height = 4.8)
## -----------------------------------------------------------------------------
library(MPBoost)
mpboost(N1 = 6, N2 = 6)
## --------------------------------------... | /inst/doc/mpboost.R | no_license | cran/MPBoost | R | false | false | 1,847 | r | ## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, fig.width = 4.8, fig.height = 4.8)
## -----------------------------------------------------------------------------
library(MPBoost)
mpboost(N1 = 6, N2 = 6)
## --------------------------------------... |
# trend pnl prediction
symb <- "sh000001"
d<- fread(paste0(getMinuteDataFolder(),getOneTicker(symb),".txt"),
skip = 1,fill = T,select = c(1,2,3,4,5,6),key = "D",col.names = c("D","T","O","H","L","C"))
d <- d[!.N,]
#for shcomp only
fillData000001()
d <- generateIndexMin()
d[, D:=ymd(D)]
#d[, DT:=ymd_hm(past... | /inst/trendPnlAnalysis.R | no_license | lukas1421/chinaTrading | R | false | false | 1,645 | r | # trend pnl prediction
symb <- "sh000001"
d<- fread(paste0(getMinuteDataFolder(),getOneTicker(symb),".txt"),
skip = 1,fill = T,select = c(1,2,3,4,5,6),key = "D",col.names = c("D","T","O","H","L","C"))
d <- d[!.N,]
#for shcomp only
fillData000001()
d <- generateIndexMin()
d[, D:=ymd(D)]
#d[, DT:=ymd_hm(past... |
######################################################
# Purpose: Plot age trends in C cycle variables
# Inputs:
# - ForC_simplified table
# - Map of the world (in supplenentary resrouces)
# Outputs:
# -
# Developped by: Valentine Herrmann - HerrmannV@si.edu in Arpil 2018
# R version 3.4.4 (2018-03-15)
##############... | /ForC-master/scripts/Figures/Age_trend_in_C_cycle_variables.R | no_license | mingkaijiang/ForC_analysis | R | false | false | 13,849 | r | ######################################################
# Purpose: Plot age trends in C cycle variables
# Inputs:
# - ForC_simplified table
# - Map of the world (in supplenentary resrouces)
# Outputs:
# -
# Developped by: Valentine Herrmann - HerrmannV@si.edu in Arpil 2018
# R version 3.4.4 (2018-03-15)
##############... |
# -------------------------------------------------------------------------------
# This file is part of Ranger.
#
# Ranger is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or... | /R/ranger.R | no_license | dplecko/ranger | R | false | false | 46,601 | r | # -------------------------------------------------------------------------------
# This file is part of Ranger.
#
# Ranger is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or... |
## Clean environment #################################################################
rm(list=ls())
## Libraries
library(sp)
library(lattice)
library(RColorBrewer)
library(ggplot2)
library(reshape2)
library(mice)
library(Amelia)
library(VIM)
library(gstat)
library(raster)
## Load functions
source("util/my_helper.R"... | /preprocessing/join_epa_daily_ca.R | permissive | rgualan/soton-data-science-thesis | R | false | false | 20,035 | r | ## Clean environment #################################################################
rm(list=ls())
## Libraries
library(sp)
library(lattice)
library(RColorBrewer)
library(ggplot2)
library(reshape2)
library(mice)
library(Amelia)
library(VIM)
library(gstat)
library(raster)
## Load functions
source("util/my_helper.R"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate.basis.R
\name{generate.basis}
\alias{generate.basis}
\title{generate hermite basis}
\usage{
generate.basis(X, order = 3)
}
\arguments{
\item{X}{an n by p matrix containing the input features}
\item{order}{order of hermite polynomial... | /man/generate.basis.Rd | no_license | clu0/diffindiff | R | false | true | 513 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate.basis.R
\name{generate.basis}
\alias{generate.basis}
\title{generate hermite basis}
\usage{
generate.basis(X, order = 3)
}
\arguments{
\item{X}{an n by p matrix containing the input features}
\item{order}{order of hermite polynomial... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## This function get as input a matrix
## and creates a special "matrix" object that can cache its inverse
## In fact a list object with 4 elements is created.
## The elements are 4 fu... | /cachematrix.R | no_license | AsterAlpestris/ProgrammingAssignment2 | R | false | false | 2,757 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## This function get as input a matrix
## and creates a special "matrix" object that can cache its inverse
## In fact a list object with 4 elements is created.
## The elements are 4 fu... |
library(tm)
stopWords <- stopwords("en")
stopWordses <- stopwords("es")
stopWordsde <- stopwords("de")
pat <- paste0("\\b(",paste0(stopWords, collapse="|") ,")\\b")
pat_es <- paste0("\\b(", paste0(stopWordses, collapse="|"), ")\\b")
pat_de <- paste0("\\b(", paste0(stopWordsde, collapse="|"), ")\\b")
fri... | /url_friendly.R | no_license | gabrielbenitezfml/ml-and-data-analysis | R | false | false | 1,520 | r | library(tm)
stopWords <- stopwords("en")
stopWordses <- stopwords("es")
stopWordsde <- stopwords("de")
pat <- paste0("\\b(",paste0(stopWords, collapse="|") ,")\\b")
pat_es <- paste0("\\b(", paste0(stopWordses, collapse="|"), ")\\b")
pat_de <- paste0("\\b(", paste0(stopWordsde, collapse="|"), ")\\b")
fri... |
getCombiCoefs <- function(model){
classes = attr(model$terms,"dataClasses")
factors = ifelse(classes[2:length(classes)]!="numeric",T,F)
f = i = var = 1
result = data.frame(i=1:length(coef(model)),var=NA)
for(factor in factors){
if(factor){
n = length(unlist(model$xlevels[f]))
for(j in 1:(n-1))... | /R/getCombiCoefs.R | no_license | davidgoes4wce/brant | R | false | false | 517 | r | getCombiCoefs <- function(model){
classes = attr(model$terms,"dataClasses")
factors = ifelse(classes[2:length(classes)]!="numeric",T,F)
f = i = var = 1
result = data.frame(i=1:length(coef(model)),var=NA)
for(factor in factors){
if(factor){
n = length(unlist(model$xlevels[f]))
for(j in 1:(n-1))... |
% $Id: rs15-normalize.Rd
\name{normalize}
\alias{normalize,MatrixLike-method}
\title{Normalization}
\description{
This function performs normalization for sample loading after quantification.
It is typically invoked as part of the process of creating summary
information from an \code{RPPASet} object.
}
\usage{
\... | /RPPASPACE/man/rs15-normalize.Rd | no_license | MD-Anderson-Bioinformatics/rppaspace | R | false | false | 2,352 | rd | % $Id: rs15-normalize.Rd
\name{normalize}
\alias{normalize,MatrixLike-method}
\title{Normalization}
\description{
This function performs normalization for sample loading after quantification.
It is typically invoked as part of the process of creating summary
information from an \code{RPPASet} object.
}
\usage{
\... |
runcyclicspectrum <- function(peptide) {
imt <- integermasstable()
peptide <- strsplit(peptide,"")[[1]]
cyclicspec <- cyclicspectrum(peptide, imt$proteins, imt$intmass)
return(cyclicspec)
}
cyclicspectrum <- function(peptide, aminoacid, aminoacidmass) {
## peptide is the peptide for which we are determ... | /cyclicspectrum.R | no_license | HomerJSimpson1/BioinfAlgos | R | false | false | 1,659 | r | runcyclicspectrum <- function(peptide) {
imt <- integermasstable()
peptide <- strsplit(peptide,"")[[1]]
cyclicspec <- cyclicspectrum(peptide, imt$proteins, imt$intmass)
return(cyclicspec)
}
cyclicspectrum <- function(peptide, aminoacid, aminoacidmass) {
## peptide is the peptide for which we are determ... |
#' @name runifm
#' @title Create matrix of random values drawn from uniform distribution
#' @param nrow number of rows
#' @param ncol numer of columns
#' @param min lower limit of the distribution. Must be finite.
#' @param max upper limit of the distribution. Must be finite.
#' @importFrom stats runif
#' @return a mat... | /R/random-matrix.R | permissive | krzjoa/matricks | R | false | false | 1,539 | r | #' @name runifm
#' @title Create matrix of random values drawn from uniform distribution
#' @param nrow number of rows
#' @param ncol numer of columns
#' @param min lower limit of the distribution. Must be finite.
#' @param max upper limit of the distribution. Must be finite.
#' @importFrom stats runif
#' @return a mat... |
## Setup libraries =============================================================
library(tidyverse)
library(voterdiffR)
## Initialize blocks and summary dataframe =====================================
init <- block_init(
varlist,
firstname = "szNameFirst",
gender = "gender",
address_partial = c("sHo... | /dedup.R | no_license | monitoringtheelection/auditingVR | R | false | false | 2,092 | r | ## Setup libraries =============================================================
library(tidyverse)
library(voterdiffR)
## Initialize blocks and summary dataframe =====================================
init <- block_init(
varlist,
firstname = "szNameFirst",
gender = "gender",
address_partial = c("sHo... |
# ------------------------------------------------------------------------------
# Libraries
library(dplyr)
library(readr)
library(stringr)
library(caret)
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
#... | /Caret/Script/Script_gamLoess.R | no_license | bemayer/DigitRecognizer | R | false | false | 2,723 | r | # ------------------------------------------------------------------------------
# Libraries
library(dplyr)
library(readr)
library(stringr)
library(caret)
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
#... |
## ------------------------------------------------------------------------
library("vembedr")
library("htmltools")
## ------------------------------------------------------------------------
embed_channel9(
id = c("Events", "useR-international-R-User-conference", "useR2016", "Forty-years-of-S")
)
## --------------... | /docs/articles/embed.R | no_license | JohnModica/vembedr | R | false | false | 1,799 | r | ## ------------------------------------------------------------------------
library("vembedr")
library("htmltools")
## ------------------------------------------------------------------------
embed_channel9(
id = c("Events", "useR-international-R-User-conference", "useR2016", "Forty-years-of-S")
)
## --------------... |
\name{pipe.DEtools}
\alias{pipe.DESeq}
\alias{pipe.EdgeR}
\alias{pipe.RankProduct}
\alias{pipe.RoundRobin}
\alias{pipe.SAM}
\title{
Pipes for Group-wise Differential Expression Tools like DESeq, EdgeR, SAM, etc.
}
\description{
Wrapper functions to a family of published DE tools, to find significant
differentially expr... | /man/pipe.DEtools.Rd | no_license | robertdouglasmorrison/DuffyNGS | R | false | false | 8,892 | rd | \name{pipe.DEtools}
\alias{pipe.DESeq}
\alias{pipe.EdgeR}
\alias{pipe.RankProduct}
\alias{pipe.RoundRobin}
\alias{pipe.SAM}
\title{
Pipes for Group-wise Differential Expression Tools like DESeq, EdgeR, SAM, etc.
}
\description{
Wrapper functions to a family of published DE tools, to find significant
differentially expr... |
## File Name: sirt_import_coda_effectiveSize.R
## File Version: 0.01
sirt_import_coda_effectiveSize <- function(...)
{
TAM::require_namespace_msg("coda")
res <- coda::effectiveSize(...)
return(res)
}
| /sirt/R/sirt_import_coda_effectiveSize.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 224 | r | ## File Name: sirt_import_coda_effectiveSize.R
## File Version: 0.01
sirt_import_coda_effectiveSize <- function(...)
{
TAM::require_namespace_msg("coda")
res <- coda::effectiveSize(...)
return(res)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coloredmesh.R
\name{coloredmeshes.from.color}
\alias{coloredmeshes.from.color}
\title{Create coloredmeshes for both hemis using pre-defined colors.}
\usage{
coloredmeshes.from.color(
subjects_dir,
subject_id,
color_data,
hemi,
surfa... | /man/coloredmeshes.from.color.Rd | permissive | dfsp-spirit/fsbrain | R | false | true | 1,940 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coloredmesh.R
\name{coloredmeshes.from.color}
\alias{coloredmeshes.from.color}
\title{Create coloredmeshes for both hemis using pre-defined colors.}
\usage{
coloredmeshes.from.color(
subjects_dir,
subject_id,
color_data,
hemi,
surfa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setupX.R
\name{setupX}
\alias{setupX}
\title{Set up design matrix X by reading data from big data file}
\usage{
setupX(
filename,
dir = getwd(),
sep = ",",
backingfile = paste0(unlist(strsplit(filename, split = "\\\\."))[1],... | /man/setupX.Rd | no_license | YaohuiZeng/biglasso | R | false | true | 2,949 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setupX.R
\name{setupX}
\alias{setupX}
\title{Set up design matrix X by reading data from big data file}
\usage{
setupX(
filename,
dir = getwd(),
sep = ",",
backingfile = paste0(unlist(strsplit(filename, split = "\\\\."))[1],... |
testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... | /IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609873765-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 729 | r | testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... |
require(devtools)
require(testthat)
require(R.rsp)
options(error = NULL)
load_all()
roxygen2::roxygenize()
build_vignettes()
| /development.R | no_license | MirkoTh/mtR | R | false | false | 130 | r | require(devtools)
require(testthat)
require(R.rsp)
options(error = NULL)
load_all()
roxygen2::roxygenize()
build_vignettes()
|
############################################################################################
### SETTINGS
############################################################################################
source("~/swissinfo/_helpers/helpers.R")
library(animation)
displayStatistics <- F
data.file <- 'contenate_allData.csv... | /prod/vieillissement/01_ageDistribution_prod.R | no_license | d-qn/2014_07_03_evolutionDeLaPopulationSuisse | R | false | false | 6,148 | r | ############################################################################################
### SETTINGS
############################################################################################
source("~/swissinfo/_helpers/helpers.R")
library(animation)
displayStatistics <- F
data.file <- 'contenate_allData.csv... |
"permutation.test.fun" <-
function (x, y = NULL, fun = function(x, y) sum(x * y), alternative = "greater",
trials = 1000)
{
if (length(y)) {
n <- length(y)
if (length(x) != n)
stop("x and y have different lengths")
if (!is.numeric(y))
stop("y must be nume... | /R/permutation.test.fun.R | no_license | cran/BurStMisc | R | false | false | 1,675 | r | "permutation.test.fun" <-
function (x, y = NULL, fun = function(x, y) sum(x * y), alternative = "greater",
trials = 1000)
{
if (length(y)) {
n <- length(y)
if (length(x) != n)
stop("x and y have different lengths")
if (!is.numeric(y))
stop("y must be nume... |
library(RPostgreSQL)
con <- dbConnect(dbDriver("PostgreSQL"), user="postgres", password="postgres", dbname="ed",host="127.0.0.1",port=9876)
| /R/0_init.R | no_license | tloszabno/ed-projekt | R | false | false | 146 | r | library(RPostgreSQL)
con <- dbConnect(dbDriver("PostgreSQL"), user="postgres", password="postgres", dbname="ed",host="127.0.0.1",port=9876)
|
wbcd <- read.csv('wisc_bc_data.csv', stringsAsFactors=FALSE)
wbcd <- wbcd[-1]
wbcd$diagnosis <- factor(wbcd$diagnosis, levels=c('B','M'),
labels=c('Benign','Malignant'))
wbcd_z <- as.data.frame(scale(wbcd[-1]))
wbcd_train <- wbcd_z[1:469,]
wbcd_test <- wbcd_z[470:569,]
wbcd_train_labels <- wbcd... | /MLwR/wbcd.R | permissive | glu99331/R-lang | R | false | false | 574 | r | wbcd <- read.csv('wisc_bc_data.csv', stringsAsFactors=FALSE)
wbcd <- wbcd[-1]
wbcd$diagnosis <- factor(wbcd$diagnosis, levels=c('B','M'),
labels=c('Benign','Malignant'))
wbcd_z <- as.data.frame(scale(wbcd[-1]))
wbcd_train <- wbcd_z[1:469,]
wbcd_test <- wbcd_z[470:569,]
wbcd_train_labels <- wbcd... |
#' Calculate a factor analysis for a Rasch Model
#'
#' @param df a data frame of individual survey data, where each row is an individual
#' @param vars_metric a character vector of items to use in the Rasch Analysis
#' @param print_results a logical vector indicating whether to print the results of the model to the \c... | /R/rasch_factor.R | no_license | CarolinaFellinghauer/whomds | R | false | false | 5,401 | r | #' Calculate a factor analysis for a Rasch Model
#'
#' @param df a data frame of individual survey data, where each row is an individual
#' @param vars_metric a character vector of items to use in the Rasch Analysis
#' @param print_results a logical vector indicating whether to print the results of the model to the \c... |
#' summary.mm
#'
#' "summary.mm" is used to display the results of the mediation analyzes done with "multimediate".
#'
#'
#' @param object element of the class "mm".
#' @param opt a character string indicating the details of the analysis "navg" for the average causal effects for t=0,1 and "avg" for the average causal ... | /R/summary.mm.R | no_license | AllanJe/multimediate | R | false | false | 13,705 | r | #' summary.mm
#'
#' "summary.mm" is used to display the results of the mediation analyzes done with "multimediate".
#'
#'
#' @param object element of the class "mm".
#' @param opt a character string indicating the details of the analysis "navg" for the average causal effects for t=0,1 and "avg" for the average causal ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_objects.R
\name{TargetHttpsProxyList}
\alias{TargetHttpsProxyList}
\title{TargetHttpsProxyList Object}
\usage{
TargetHttpsProxyList(id = NULL, items = NULL, nextPageToken = NULL,
selfLink = NULL)
}
\arguments{
\item{id}{[Output Only... | /googlecomputealpha.auto/man/TargetHttpsProxyList.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 804 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_objects.R
\name{TargetHttpsProxyList}
\alias{TargetHttpsProxyList}
\title{TargetHttpsProxyList Object}
\usage{
TargetHttpsProxyList(id = NULL, items = NULL, nextPageToken = NULL,
selfLink = NULL)
}
\arguments{
\item{id}{[Output Only... |
## Description: Basic NCA AUC function
## Key words: NCA, AUC, function
## Author: Tarj Sahota, Peter Lawrence
## Run interactively: FALSE
AUC <- function(time, conc, loq=0,method=c("linuplogdown","linuplogdowntmax","linear"))
{
method <- match.arg(method)
trap.log.rule <- function(x,y){ ## custom function for log... | /Scripts/AUC.R | no_license | tsahota/PMXcodelibrary | R | false | false | 1,259 | r | ## Description: Basic NCA AUC function
## Key words: NCA, AUC, function
## Author: Tarj Sahota, Peter Lawrence
## Run interactively: FALSE
AUC <- function(time, conc, loq=0,method=c("linuplogdown","linuplogdowntmax","linear"))
{
method <- match.arg(method)
trap.log.rule <- function(x,y){ ## custom function for log... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate.R
\name{isAccessibleFunction}
\alias{isAccessibleFunction}
\title{Do we have access to the function in test generation phase, to recompute the return value from the arguments?}
\usage{
isAccessibleFunction(function.name)
}
\arguments... | /man/isAccessibleFunction.Rd | no_license | mvacha/genthat | R | false | true | 724 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate.R
\name{isAccessibleFunction}
\alias{isAccessibleFunction}
\title{Do we have access to the function in test generation phase, to recompute the return value from the arguments?}
\usage{
isAccessibleFunction(function.name)
}
\arguments... |
alzGenes <- scan('~/Desktop/alzgenes.txt',what='character')
alzGenes <- unique(alzGenes)
library(metaNet)
enr1<-metaNet::enrichmentPath(rankedList = newDf$hgncSymbol,targetList = alzGenes)
library(ggplot2)
enr1$pval <- -log10(as.numeric(enr1$pval))
enr1$enr <- as.numeric(enr1$enr)
enr1$rank <- 1:nrow(enr1)
require... | /quickAnalyses.R | no_license | blogsdon/ROSMAP | R | false | false | 1,739 | r | alzGenes <- scan('~/Desktop/alzgenes.txt',what='character')
alzGenes <- unique(alzGenes)
library(metaNet)
enr1<-metaNet::enrichmentPath(rankedList = newDf$hgncSymbol,targetList = alzGenes)
library(ggplot2)
enr1$pval <- -log10(as.numeric(enr1$pval))
enr1$enr <- as.numeric(enr1$enr)
enr1$rank <- 1:nrow(enr1)
require... |
lancamentos <- c(
F,F,T,T,F,F,F,F,F,F,
T,T,F,F,F,F,T,T,F,F,
T,F,F,F,T,F,F,F,T,T,
T,T,F,F,F,F,T,T,T,F,
T,F,F,T,F,F,T,F,T,F,
F,F,T,T,T,T,T,F,F,F,
T,T,F,T
)
complementos <- sample(c(T,F), replace=TRUE, size=100000)
lancamentos <- c(lancamentos, complementos)
n_lancamento <- 1:length(lancamentos)
tab <- ... | /vi_experimento_moeda.R | no_license | tiagombp/learning-rstats | R | false | false | 903 | r |
lancamentos <- c(
F,F,T,T,F,F,F,F,F,F,
T,T,F,F,F,F,T,T,F,F,
T,F,F,F,T,F,F,F,T,T,
T,T,F,F,F,F,T,T,T,F,
T,F,F,T,F,F,T,F,T,F,
F,F,T,T,T,T,T,F,F,F,
T,T,F,T
)
complementos <- sample(c(T,F), replace=TRUE, size=100000)
lancamentos <- c(lancamentos, complementos)
n_lancamento <- 1:length(lancamentos)
tab <- ... |
##########################################################
# Create edx set, validation set (final hold-out test set)
# Code provided by course, I take no credit for this section.
##########################################################
# Note: this process could take a couple of minutes
if(!require(tidyverse)) ins... | /2021_01_05_Mulhallp_MovieLens_R.R | no_license | pmulhall/movielens | R | false | false | 3,593 | r | ##########################################################
# Create edx set, validation set (final hold-out test set)
# Code provided by course, I take no credit for this section.
##########################################################
# Note: this process could take a couple of minutes
if(!require(tidyverse)) ins... |
################################################################################
################################################################################
##
## Analysis script for ... Ogle, DH. 201X. An Algorithm for the von Bertalanffy
## Seasonal Cessation in Growth Function of Pauly et al. (1992). Fishe... | /resources/pubs/SeasonalGrowth_Analysis.R | permissive | treymaddaleno/droglenc.github.io | R | false | false | 25,912 | r | ################################################################################
################################################################################
##
## Analysis script for ... Ogle, DH. 201X. An Algorithm for the von Bertalanffy
## Seasonal Cessation in Growth Function of Pauly et al. (1992). Fishe... |
# cacheMatrixTests
source("cachematrix.R")
# -----------------------------------------------------------------------------
# Test: makeCacheMatrix()
# -----------------------------------------------------------------------------
## Test the function with the default empty matrix
x = makeCacheMatrix()
# ge... | /cacheMatrixTest.R | no_license | Burkehaven/ProgrammingAssignment2 | R | false | false | 1,904 | r | # cacheMatrixTests
source("cachematrix.R")
# -----------------------------------------------------------------------------
# Test: makeCacheMatrix()
# -----------------------------------------------------------------------------
## Test the function with the default empty matrix
x = makeCacheMatrix()
# ge... |
# So here we'll try and get all the data in the correct structure for the spatial model.
library(SEBDAM)
library(tidyverse)
library(sf)
library(stringr)
library(optimx)
library(parallel)
library(INLA)
library(ggthemes)
library(cowplot)
# Download the function to go from inla to sf
funs <- c("https://raw.githubusercon... | /Model/Sab_SEBDAM.R | no_license | freyakeyser/Framework | R | false | false | 56,988 | r | # So here we'll try and get all the data in the correct structure for the spatial model.
library(SEBDAM)
library(tidyverse)
library(sf)
library(stringr)
library(optimx)
library(parallel)
library(INLA)
library(ggthemes)
library(cowplot)
# Download the function to go from inla to sf
funs <- c("https://raw.githubusercon... |
#
# Exercise 1
#
# generate numbers
# m = 100000
# choose ditributions (normal, poisson, ...)
# berechne zufallszahlen mit r____-Funktion
# Berechne ( M - E(X)) / sqrt( Var(X) / m ), das "standardized mean of empirical mean"
#
makeStuff <- function (n, random_numbers, m.teo, v.teo, name) {
# arithmethisches Mitt... | /Exercise-01.R | no_license | jcalov/HFT-Simulation-Studies-2019 | R | false | false | 1,807 | r | #
# Exercise 1
#
# generate numbers
# m = 100000
# choose ditributions (normal, poisson, ...)
# berechne zufallszahlen mit r____-Funktion
# Berechne ( M - E(X)) / sqrt( Var(X) / m ), das "standardized mean of empirical mean"
#
makeStuff <- function (n, random_numbers, m.teo, v.teo, name) {
# arithmethisches Mitt... |
\name{survival_exp}
\alias{survival_exp}
\title{survival_exp function}
\usage{
survival_exp(inputs)
}
\arguments{
\item{inputs}{inputs for the function including the model
matrix, frailties, fixed effects and the parameters of
the baseline hazard derived from this model}
}
\value{
the survival function for the in... | /man/survival_exp.Rd | no_license | ssouyris/spatsurv | R | false | false | 477 | rd | \name{survival_exp}
\alias{survival_exp}
\title{survival_exp function}
\usage{
survival_exp(inputs)
}
\arguments{
\item{inputs}{inputs for the function including the model
matrix, frailties, fixed effects and the parameters of
the baseline hazard derived from this model}
}
\value{
the survival function for the in... |
# Functions for the book Applied Hierarchical Modeling in Ecology (AHM)
# Marc Kery & Andy Royle, Academic Press, 2016.
# spline.prep - section 10.14 p623
# Function to prepare input for BUGS model when fitting a spline for a covariate
# (introduced in Section 10.14)
spline.prep <- function(cov, nknot = NA... | /R/spline-prep_10-14_Prepare_input_spline.R | no_license | guillaumesouchay/AHMbook | R | false | false | 1,552 | r | # Functions for the book Applied Hierarchical Modeling in Ecology (AHM)
# Marc Kery & Andy Royle, Academic Press, 2016.
# spline.prep - section 10.14 p623
# Function to prepare input for BUGS model when fitting a spline for a covariate
# (introduced in Section 10.14)
spline.prep <- function(cov, nknot = NA... |
# data
kospi <- kospi_20181012
rm(kospi_20181012)
# explore
str(kospi)
summary(kospi)
# preparation for prophet::facebook
kospi_sub <- subset(kospi, select = c(date, closing_price))
kospi_sub$date <- as.Date(kospi_sub$date)
if(!require(dplyr)){
install.packages("dplyr")
library(dplyr)
}
kospi_prop... | /prophet_kospi.R | permissive | hansjang/R_Radar | R | false | false | 756 | r | # data
kospi <- kospi_20181012
rm(kospi_20181012)
# explore
str(kospi)
summary(kospi)
# preparation for prophet::facebook
kospi_sub <- subset(kospi, select = c(date, closing_price))
kospi_sub$date <- as.Date(kospi_sub$date)
if(!require(dplyr)){
install.packages("dplyr")
library(dplyr)
}
kospi_prop... |
\name{checkStoppingRule-methods}
\docType{methods}
\alias{checkStoppingRule-methods}
\alias{checkStoppingRule,APlusBSpecifier,CTData,numeric-method}
\alias{checkStoppingRule,CRMSpecifier,CTData,numeric-method}
\alias{checkStoppingRule}
\title{ Methods "checkStoppingRule" }
\description{
checks the stoppin... | /CTDesignExplorerDevel/man/checkStoppingRule-methods.Rd | no_license | ishanina/CTDesignExperimenter | R | false | false | 1,674 | rd | \name{checkStoppingRule-methods}
\docType{methods}
\alias{checkStoppingRule-methods}
\alias{checkStoppingRule,APlusBSpecifier,CTData,numeric-method}
\alias{checkStoppingRule,CRMSpecifier,CTData,numeric-method}
\alias{checkStoppingRule}
\title{ Methods "checkStoppingRule" }
\description{
checks the stoppin... |
#Quiz3
setwd("/media/michael/PATRIOT/Self-Education/John Hopkins Data Science Specialization/3. Getting and Cleaning Data/week3/quiz")
# Question 1
if(!file.exists('data')) {
dir.create('data')
}
fileUrl <- 'https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06hid.csv'
codeBookUrl <- 'https://d396qusza40orc... | /3. Getting and Cleaning Data/week3/quiz/quiz3.R | no_license | MichaelDS/Data-Science-Coursera | R | false | false | 3,273 | r | #Quiz3
setwd("/media/michael/PATRIOT/Self-Education/John Hopkins Data Science Specialization/3. Getting and Cleaning Data/week3/quiz")
# Question 1
if(!file.exists('data')) {
dir.create('data')
}
fileUrl <- 'https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06hid.csv'
codeBookUrl <- 'https://d396qusza40orc... |
#Ensemble of Gene Set Enrichment Analyses
#
# Author: Monther Alhamdoosh, E:m.hamdoosh@gmail.com
###############################################################################
writeResultsToHTML <- function(contrast.name, gsa.results, gs.annot, method,
file.name){
title = paste0("Gene Set Enrichment Analysis o... | /R/htmlUtils.R | no_license | malhamdoosh/EGSEA | R | false | false | 30,305 | r | #Ensemble of Gene Set Enrichment Analyses
#
# Author: Monther Alhamdoosh, E:m.hamdoosh@gmail.com
###############################################################################
writeResultsToHTML <- function(contrast.name, gsa.results, gs.annot, method,
file.name){
title = paste0("Gene Set Enrichment Analysis o... |
context("vig-getting-started")
# Testing similar workflow as in getting-started vignette
library("git2r")
# start project in a tempdir
site_dir <- tempfile("new-")
suppressMessages(wflow_start(site_dir, change_wd = FALSE))
on.exit(unlink(site_dir, recursive = TRUE, force = TRUE))
site_dir <- workflowr:::absolute(sit... | /tests/testthat/test-vig-getting-started.R | permissive | anorris8/workflowr | R | false | false | 3,478 | r | context("vig-getting-started")
# Testing similar workflow as in getting-started vignette
library("git2r")
# start project in a tempdir
site_dir <- tempfile("new-")
suppressMessages(wflow_start(site_dir, change_wd = FALSE))
on.exit(unlink(site_dir, recursive = TRUE, force = TRUE))
site_dir <- workflowr:::absolute(sit... |
## makeCacheMatrix is a function that takes a square matrix as an argument and returns an object with a group of functions actionable upon it.
## this group of functions include set, get, setInverse, and getInverse
## by returning a list, the object's set of functions can be accessed by using the $ symbol
makeCach... | /cachematrix.R | no_license | wergild-1/ProgrammingAssignment2 | R | false | false | 1,036 | r | ## makeCacheMatrix is a function that takes a square matrix as an argument and returns an object with a group of functions actionable upon it.
## this group of functions include set, get, setInverse, and getInverse
## by returning a list, the object's set of functions can be accessed by using the $ symbol
makeCach... |
\name{continue_OCN}
\alias{continue_OCN}
\title{Perform OCN Search Algorithm on an Existing OCN}
\usage{
continue_OCN(OCN,nNewIter, coolingRate=NULL, initialNoCoolingPhase=0,
displayUpdates=1, showIntermediatePlots=FALSE, thrADraw=NULL,
easyDraw=NULL, nUpdates=50)
}
\arguments{
\item{OCN}{A \code{river} object (as ge... | /man/continue_OCN.Rd | no_license | lucarraro/OCNet | R | false | false | 3,306 | rd | \name{continue_OCN}
\alias{continue_OCN}
\title{Perform OCN Search Algorithm on an Existing OCN}
\usage{
continue_OCN(OCN,nNewIter, coolingRate=NULL, initialNoCoolingPhase=0,
displayUpdates=1, showIntermediatePlots=FALSE, thrADraw=NULL,
easyDraw=NULL, nUpdates=50)
}
\arguments{
\item{OCN}{A \code{river} object (as ge... |
#' Sign our from your 'shiny' app
#'
#' Call this function to sign a user out of your 'shiny' app. This function should
#' be called inside the server function of your 'shiny' app. See
#' \url{https://github.com/Tychobra/polished/blob/master/inst/examples/polished_example_01/server.R}
#' For an example of this functi... | /R/sign_out_from_shiny.R | no_license | Yaswanth-Tippireddy/polished | R | false | false | 1,113 | r | #' Sign our from your 'shiny' app
#'
#' Call this function to sign a user out of your 'shiny' app. This function should
#' be called inside the server function of your 'shiny' app. See
#' \url{https://github.com/Tychobra/polished/blob/master/inst/examples/polished_example_01/server.R}
#' For an example of this functi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/team_scrape.R
\name{GetTeamShotDashboard}
\alias{GetTeamShotDashboard}
\title{Team Shot Dashboard}
\usage{
GetTeamShotDashboard(split = "shot clock", ...)
}
\value{
data frame with team information by a variety of splits
}
\description{
Team ... | /man/GetTeamShotDashboard.Rd | no_license | Zero2848/nbaTools | R | false | true | 468 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/team_scrape.R
\name{GetTeamShotDashboard}
\alias{GetTeamShotDashboard}
\title{Team Shot Dashboard}
\usage{
GetTeamShotDashboard(split = "shot clock", ...)
}
\value{
data frame with team information by a variety of splits
}
\description{
Team ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/overlayDetections.R
\name{rasterText}
\alias{rasterText}
\title{raster the text in a image}
\usage{
rasterText(img, ...)
}
\arguments{
\item{img}{an \link[EBImage:Image-class]{Image} or \link{Image2}}
\item{\dots}{the parameters for \link[gr... | /man/rasterText.Rd | no_license | jianhong/cellCounter | R | false | true | 466 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/overlayDetections.R
\name{rasterText}
\alias{rasterText}
\title{raster the text in a image}
\usage{
rasterText(img, ...)
}
\arguments{
\item{img}{an \link[EBImage:Image-class]{Image} or \link{Image2}}
\item{\dots}{the parameters for \link[gr... |
##these two functions work together to cache the inverse of a matrix
##the first one creates a matrix object that is able to cache its inverse, yet unable to do the computation of inversion
makeCasheMatrix<-function(x=matrix()){
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
get<-function()x
... | /cachematrix.R | no_license | kakakalol/ProgrammingAssignment2 | R | false | false | 800 | r | ##these two functions work together to cache the inverse of a matrix
##the first one creates a matrix object that is able to cache its inverse, yet unable to do the computation of inversion
makeCasheMatrix<-function(x=matrix()){
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
get<-function()x
... |
server <- function(input, output) {}
shinyApp(ui, server) | /CrimeMap/server.R | no_license | BingoLaHaye/CUAHAX2019 | R | false | false | 58 | r | server <- function(input, output) {}
shinyApp(ui, server) |
setwd("C:/Users/chandra.nakkalakunta/Documents")
date1 <- "1/2/2007"
date2<- "2/2/2007"
inputData<-read.csv("household_power_consumption.txt", header=T, sep=';',na.strings = "?")
subsetData<- subset(inputData, Date %in% c(date1,date2))
subsetData$Date <- as.Date(subsetData$Date, format="%d/%m/%Y")
d... | /Plot3.R | no_license | chandranakkalakunta/Exploratory-Data-Analytics | R | false | false | 856 | r | setwd("C:/Users/chandra.nakkalakunta/Documents")
date1 <- "1/2/2007"
date2<- "2/2/2007"
inputData<-read.csv("household_power_consumption.txt", header=T, sep=';',na.strings = "?")
subsetData<- subset(inputData, Date %in% c(date1,date2))
subsetData$Date <- as.Date(subsetData$Date, format="%d/%m/%Y")
d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rfun_naive.R
\name{naive}
\alias{naive}
\title{Simple Linear Models for Rating and Ranking}
\usage{
naive(jpMat, stats = FALSE, ties.method = "average")
}
\arguments{
\item{jpMat}{a Judge-Presenter matrix, or a User-Movie matrix}
\item{stats... | /man/naive.Rd | no_license | cran/raincin | R | false | true | 1,002 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rfun_naive.R
\name{naive}
\alias{naive}
\title{Simple Linear Models for Rating and Ranking}
\usage{
naive(jpMat, stats = FALSE, ties.method = "average")
}
\arguments{
\item{jpMat}{a Judge-Presenter matrix, or a User-Movie matrix}
\item{stats... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.14967427584229e-221, 0), .Dim = c(5L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist)
str(result) | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615834905-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 270 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.14967427584229e-221, 0), .Dim = c(5L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist)
str(result) |
#links <- read.csv("links.csv")
movies <- read.csv("movies.csv",stringsAsFactors=FALSE)
ratings <- read.csv("ratings.csv")
#tags <- read.csv("tags.csv")
install.packages("recommenderlab")
library(recommenderlab)
library(ggplot2)
## Data pre-processing
genres <- as.data.frame(movies$genres, stringsAsFactors=FA... | /movieRec.R | no_license | ganeshsai08/project- | R | false | false | 8,627 | r | #links <- read.csv("links.csv")
movies <- read.csv("movies.csv",stringsAsFactors=FALSE)
ratings <- read.csv("ratings.csv")
#tags <- read.csv("tags.csv")
install.packages("recommenderlab")
library(recommenderlab)
library(ggplot2)
## Data pre-processing
genres <- as.data.frame(movies$genres, stringsAsFactors=FA... |
dftmp<-dfs4[dfs4$id==vecid[1],]
dftmp<-dftmp[,c(1,6,7)]
dfmin<-data.frame(min=0:1439)
dfmin$id<-vecid[1]
dfmin$f1<-FALSE
for (i in 0:1439){
if(nrow(dftmp[dftmp$MealMinN0==i,])>=1){
dfsub<-subset(dftmp,(MealMinN0>=i & MealMinN0 <(i+(gap-1))))
if (nrow(dfsub)>0){
dfsub2<-ddply(dfsub,~id,summar... | /Rcode/trying to understand the looping code.R | no_license | winterwang/LSHTMproject | R | false | false | 1,122 | r | dftmp<-dfs4[dfs4$id==vecid[1],]
dftmp<-dftmp[,c(1,6,7)]
dfmin<-data.frame(min=0:1439)
dfmin$id<-vecid[1]
dfmin$f1<-FALSE
for (i in 0:1439){
if(nrow(dftmp[dftmp$MealMinN0==i,])>=1){
dfsub<-subset(dftmp,(MealMinN0>=i & MealMinN0 <(i+(gap-1))))
if (nrow(dfsub)>0){
dfsub2<-ddply(dfsub,~id,summar... |
library(shiny)
library(tidyverse)
library(cowplot)
library(knitr)
## load all files
files <- list.files(path = "www", pattern = '*.Rdata')
lapply(files, function(x) load(paste0("www/", x), envir = globalenv()))
load("www/param_4.5.RData")
ui <- fluidPage(
titlePanel("Exemplification of a simulation study for Pro... | /sim_probio/app.R | no_license | alecri/shiny-server | R | false | false | 10,418 | r | library(shiny)
library(tidyverse)
library(cowplot)
library(knitr)
## load all files
files <- list.files(path = "www", pattern = '*.Rdata')
lapply(files, function(x) load(paste0("www/", x), envir = globalenv()))
load("www/param_4.5.RData")
ui <- fluidPage(
titlePanel("Exemplification of a simulation study for Pro... |
## R-script to analyse dipper population
library(esd)
library(ncdf4)
examine <- FALSE
print('read dipper data')
dipper <- read.table('~/Dropbox/data/dipper.csv',header=TRUE)
dipper <- zoo(x=dipper[[2]],order.by=dipper[[1]])
y <- as.station(dipper,loc='Lyngdalselva',
lon=7,lat=58.5,alt=520,
... | /dipper/dipper.R | no_license | metno/esd_Rmarkdown | R | false | false | 3,222 | r | ## R-script to analyse dipper population
library(esd)
library(ncdf4)
examine <- FALSE
print('read dipper data')
dipper <- read.table('~/Dropbox/data/dipper.csv',header=TRUE)
dipper <- zoo(x=dipper[[2]],order.by=dipper[[1]])
y <- as.station(dipper,loc='Lyngdalselva',
lon=7,lat=58.5,alt=520,
... |
# The function 'makeCacheMatrix' creates a list containing a function to
# 1. set the value of the vector
# 2. get the value of the vector
# 3. set the value of the mean
# 4. get the value of the mean
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
... | /cachematrix.R | no_license | redtealongan/ProgrammingAssignment2 | R | false | false | 966 | r | # The function 'makeCacheMatrix' creates a list containing a function to
# 1. set the value of the vector
# 2. get the value of the vector
# 3. set the value of the mean
# 4. get the value of the mean
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
... |
\name{PLD_interface}
\alias{PLD_interface}
\title{
Model parameters and internal locations estimations
}
\description{
Function that estimates model parameters, genealogies and internal locations through Bayesian Markov chain Monte Carlo (MCMC) algorithm.
}
\usage{
PLD_interface(fileTREES, fileDATA, num_step = 1e+0... | /phyloland/man/PLD_interface.Rd | permissive | LouisRanjard/Phyloland | R | false | false | 5,110 | rd | \name{PLD_interface}
\alias{PLD_interface}
\title{
Model parameters and internal locations estimations
}
\description{
Function that estimates model parameters, genealogies and internal locations through Bayesian Markov chain Monte Carlo (MCMC) algorithm.
}
\usage{
PLD_interface(fileTREES, fileDATA, num_step = 1e+0... |
complete <- function(directory, id = 1:332) {
nobs <- function (id) {
#set the path
wd = directory
#get the file List in that directory
fileList = list.files(wd)
#extract the file names and store as numeric for comparison
file.names = as.numeric(sub("\\.csv$","",fileList))
#select files to be imp... | /r_programming/wk2/complete.R | no_license | randallhelms/datasciencecoursera | R | false | false | 681 | r | complete <- function(directory, id = 1:332) {
nobs <- function (id) {
#set the path
wd = directory
#get the file List in that directory
fileList = list.files(wd)
#extract the file names and store as numeric for comparison
file.names = as.numeric(sub("\\.csv$","",fileList))
#select files to be imp... |
## These 2 functions are used to invert a square matrix and cache the result in memory.
## If the results are in memory then they are used otherwise the matrix is inverted and
## stored in memory
## This function makeCacheMatrix creates a list containing a function to -
## 1) set the value of the matrix
## 2) get the ... | /cachematrix.R | no_license | skibugvt/ProgrammingAssignment2 | R | false | false | 1,421 | r | ## These 2 functions are used to invert a square matrix and cache the result in memory.
## If the results are in memory then they are used otherwise the matrix is inverted and
## stored in memory
## This function makeCacheMatrix creates a list containing a function to -
## 1) set the value of the matrix
## 2) get the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/emr_operations.R
\name{emr_describe_step}
\alias{emr_describe_step}
\title{Provides more detail about the cluster step}
\usage{
emr_describe_step(ClusterId, StepId)
}
\arguments{
\item{ClusterId}{[required] The identifier of the cluster with ... | /cran/paws.analytics/man/emr_describe_step.Rd | permissive | paws-r/paws | R | false | true | 575 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/emr_operations.R
\name{emr_describe_step}
\alias{emr_describe_step}
\title{Provides more detail about the cluster step}
\usage{
emr_describe_step(ClusterId, StepId)
}
\arguments{
\item{ClusterId}{[required] The identifier of the cluster with ... |
# 6.8.80 dmc spio sfortran
#
# these routines perform i/o to specpr files
#--------------------------------------------------------------
subroutine readsp(lun,buf,key,iflg)
implicit integer*4 (i-n)
dimension buf(384)
read(lun,rec=key+1,iostat=ier) buf
if (ier != 0) {
write(6,20)lun,k... | /src-local/specpr/src.specpr/gfit/io/readsp.r | no_license | ns-bak/tetracorder-tutorial | R | false | false | 429 | r | # 6.8.80 dmc spio sfortran
#
# these routines perform i/o to specpr files
#--------------------------------------------------------------
subroutine readsp(lun,buf,key,iflg)
implicit integer*4 (i-n)
dimension buf(384)
read(lun,rec=key+1,iostat=ier) buf
if (ier != 0) {
write(6,20)lun,k... |
testlist <- list(lims = structure(c(NaN, 8.80011477617474e+223, 1.97322161218351e+223, 5.22851419824833e+54), .Dim = c(2L, 2L)), points = structure(c(1.49166949647652e-154, NaN, 1.22034214522788e-321, 9.94672311440879e-203, 8.80011477617474e+223 ), .Dim = c(1L, 5L)))
result <- do.call(palm:::pbc_distances,testlist)
s... | /palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612988218-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 330 | r | testlist <- list(lims = structure(c(NaN, 8.80011477617474e+223, 1.97322161218351e+223, 5.22851419824833e+54), .Dim = c(2L, 2L)), points = structure(c(1.49166949647652e-154, NaN, 1.22034214522788e-321, 9.94672311440879e-203, 8.80011477617474e+223 ), .Dim = c(1L, 5L)))
result <- do.call(palm:::pbc_distances,testlist)
s... |
# Reads the MSI file
# outliers = read file with outliers removed or not, batch = batch 1, 2 or 0 (all data)
# centerandscale = preprocess centerscale
readMSI <- function(outliersRemoved = F, batch = 0, centerandscale = T)
{
if(outliersRemoved) {
index <- 110
data <- read.table("VM R1 AND R3_NEWNEW.cs... | /Util.R | no_license | ozcanonur/Chicken_ML | R | false | false | 35,295 | r | # Reads the MSI file
# outliers = read file with outliers removed or not, batch = batch 1, 2 or 0 (all data)
# centerandscale = preprocess centerscale
readMSI <- function(outliersRemoved = F, batch = 0, centerandscale = T)
{
if(outliersRemoved) {
index <- 110
data <- read.table("VM R1 AND R3_NEWNEW.cs... |
setwd("C:/Users/nitin/OneDrive/WIP/Auto")
from_date<- as.Date(c("2015-06-04"))
##################################################QWERTY
INfile<-read.csv("Open SR's.csv")
z<-INfile[order(INfile$Owner.Group),]
#CoreAc<-c(z$Owner.Group=="C-BOI-IE-AMS-CARDS",z$Owner.Group=="C-BOI-IE-AMS-BOOKKEEPING")
Name<-"BOOK KEEPING"
... | /Auto2.R | no_license | NitinMahajan1/Automate-for-Dell | R | false | false | 16,906 | r | setwd("C:/Users/nitin/OneDrive/WIP/Auto")
from_date<- as.Date(c("2015-06-04"))
##################################################QWERTY
INfile<-read.csv("Open SR's.csv")
z<-INfile[order(INfile$Owner.Group),]
#CoreAc<-c(z$Owner.Group=="C-BOI-IE-AMS-CARDS",z$Owner.Group=="C-BOI-IE-AMS-BOOKKEEPING")
Name<-"BOOK KEEPING"
... |
php端的输入验证,如果是POST过来的验证POST的变量,否则验证GET
$rules = array(
'name' => array(
'required',
'maxlength'=>5
),
'age' => array(
'required',
'int',
),
'email' => array(
'required',
... | /README.rd | no_license | male110/php_validator | R | false | false | 1,826 | rd |
php端的输入验证,如果是POST过来的验证POST的变量,否则验证GET
$rules = array(
'name' => array(
'required',
'maxlength'=>5
),
'age' => array(
'required',
'int',
),
'email' => array(
'required',
... |
#set working directory to the location where the UCI HAR Dataset was unzipped
setwd("C:/Users/goku/downloads/coursera/Data Science Track/Getting and Cleaning data/UCI HAR Dataset")
# 1. Merge the training and the test sets to create one data set
# Read in the data from files
features = read.table('./features.txt... | /run_analysis.R | no_license | gokuprasanna/Getting-and-Cleaning-Data | R | false | false | 4,597 | r | #set working directory to the location where the UCI HAR Dataset was unzipped
setwd("C:/Users/goku/downloads/coursera/Data Science Track/Getting and Cleaning data/UCI HAR Dataset")
# 1. Merge the training and the test sets to create one data set
# Read in the data from files
features = read.table('./features.txt... |
library(genpathmox)
### Name: plot.xtree.pls
### Title: Plot function for the Pathmox Segmentation Trees: PLS-PM
### Aliases: plot.xtree.pls
### ** Examples
## Not run:
##D ## example of PLS-PM in alumni satisfaction
##D
##D # select manifest variables
##D data.fib <-fibtele[,12:35]
##D
##D # define inner mo... | /data/genthat_extracted_code/genpathmox/examples/plot.xtree.pls.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,362 | r | library(genpathmox)
### Name: plot.xtree.pls
### Title: Plot function for the Pathmox Segmentation Trees: PLS-PM
### Aliases: plot.xtree.pls
### ** Examples
## Not run:
##D ## example of PLS-PM in alumni satisfaction
##D
##D # select manifest variables
##D data.fib <-fibtele[,12:35]
##D
##D # define inner mo... |
################################################################
## Univariate Properties for standardized data ##
## J Di 02/12/2018 ##
################################################################
#1. moments
rm(list = ls())
setwd("~/Dropbox/Junrui Di/tens... | /univariate_2.R | no_license | junruidi/GSVD_Scripts | R | false | false | 3,977 | r | ################################################################
## Univariate Properties for standardized data ##
## J Di 02/12/2018 ##
################################################################
#1. moments
rm(list = ls())
setwd("~/Dropbox/Junrui Di/tens... |
# Load the data
#--------------
# The code that loads the data is
# common for all the plots, but
# should all the plots be made,
# the code only needs to be run once.
# read the data in a data frame
data<-na.omit(read.table("./data/household_power_consumption.txt", sep=";", header=TRUE, na.strings="?", colClasses=c("... | /plot2.R | no_license | adrianbrustur/ExData_Plotting1 | R | false | false | 988 | r | # Load the data
#--------------
# The code that loads the data is
# common for all the plots, but
# should all the plots be made,
# the code only needs to be run once.
# read the data in a data frame
data<-na.omit(read.table("./data/household_power_consumption.txt", sep=";", header=TRUE, na.strings="?", colClasses=c("... |
library(dplyr)
library(reshape2)
library(tidyr)
load(file=paste0(getwd(),"/vegas2018.Rdata")) # b16
bb <- bb.data18
bb$fav.out <- ifelse(bb$home.ML < 100 & bb$home.win == 'W', 'W', 'L')
bb$home.ML.grp <- round(as.integer(bb$home.ML) / 10)
bb1 <- bb %>%
select(home.ML.grp,fav.out) %>%
group_by(home.ML.g... | /v 2020 a1.R | no_license | maximize22/bball2018 | R | false | false | 434 | r | library(dplyr)
library(reshape2)
library(tidyr)
load(file=paste0(getwd(),"/vegas2018.Rdata")) # b16
bb <- bb.data18
bb$fav.out <- ifelse(bb$home.ML < 100 & bb$home.win == 'W', 'W', 'L')
bb$home.ML.grp <- round(as.integer(bb$home.ML) / 10)
bb1 <- bb %>%
select(home.ML.grp,fav.out) %>%
group_by(home.ML.g... |
######################################################################
#SCRIPT QUE FILTRA DATOS DE EXPRESION
#Autor: Andrés Rabinovich en base a un script de Ariel Chernomoretz
#Creación: 01/06/2018
#Última modificación: XX/XX/XXXX (por XXX)
######################################################################
#Libre... | /pipeline/2_prefiltrado_genes.R | no_license | andresrabinovich/redes_mixtas | R | false | false | 8,031 | r | ######################################################################
#SCRIPT QUE FILTRA DATOS DE EXPRESION
#Autor: Andrés Rabinovich en base a un script de Ariel Chernomoretz
#Creación: 01/06/2018
#Última modificación: XX/XX/XXXX (por XXX)
######################################################################
#Libre... |
testlist <- list(testX = c(191493125665849920, 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 ... | /dann/inst/testfiles/calc_distance_C/AFL_calc_distance_C/calc_distance_C_valgrind_files/1609869297-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 1,198 | r | testlist <- list(testX = c(191493125665849920, 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 ... |
fullData <- read.delim("household_power_consumption.txt",sep=";", stringsAsFactors=FALSE)
fullData$dateTime <- strptime(paste(fullData$Date, fullData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
plotData <- fullData[as.Date(fullData$dateTime) == as.Date("2007-02-02") | as.Date(fullData$dateTime) == as.Date("2007-02-01"),]
par(... | /plot1.R | no_license | mpuittinen/ExData_Plotting1 | R | false | false | 560 | r | fullData <- read.delim("household_power_consumption.txt",sep=";", stringsAsFactors=FALSE)
fullData$dateTime <- strptime(paste(fullData$Date, fullData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
plotData <- fullData[as.Date(fullData$dateTime) == as.Date("2007-02-02") | as.Date(fullData$dateTime) == as.Date("2007-02-01"),]
par(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{addforecast}
\alias{addforecast}
\alias{addforecast.samforecast}
\title{SAM add forecasts}
\usage{
addforecast(fit, what, dotcol = "black", dotpch = 19, dotcex = 1.5,
intervalcol = gray(0.5, alpha = 0.5), ...)
\method{addforec... | /stockassessment/man/addforecast.Rd | no_license | jimianelli/SAM | R | false | true | 769 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{addforecast}
\alias{addforecast}
\alias{addforecast.samforecast}
\title{SAM add forecasts}
\usage{
addforecast(fit, what, dotcol = "black", dotpch = 19, dotcex = 1.5,
intervalcol = gray(0.5, alpha = 0.5), ...)
\method{addforec... |
sortResults <- function( pbatObj, sortBy=NULL ) {
## I'm guessing Christoph titles this differently sometimes?
if( is.null(sortBy) ) {
guess <- c("powerFBAT")
}else{
guess <- sortBy
}
for( g in guess ) {
wh <- which( g == names(pbatObj$results) )
if( length(wh)>0 ) {
pbatObj$results <- ... | /R/top.R | no_license | cran/pbatR | R | false | false | 889 | r | sortResults <- function( pbatObj, sortBy=NULL ) {
## I'm guessing Christoph titles this differently sometimes?
if( is.null(sortBy) ) {
guess <- c("powerFBAT")
}else{
guess <- sortBy
}
for( g in guess ) {
wh <- which( g == names(pbatObj$results) )
if( length(wh)>0 ) {
pbatObj$results <- ... |
test_that("Test that stan_prior accepts supported prior classes", {
prior <- prior_frame(prior = "uniform(0,10)", class = "b")
expect_equal(stan_prior(class = "b", coef = "x1", prior = prior),
" b ~ uniform(0,10); \n")
prior <- prior_frame(prior = c("uniform(0,10)", "normal(0,1)"),
... | /tests/testthat/tests.stan.R | no_license | BERENZ/brms | R | false | false | 9,838 | r | test_that("Test that stan_prior accepts supported prior classes", {
prior <- prior_frame(prior = "uniform(0,10)", class = "b")
expect_equal(stan_prior(class = "b", coef = "x1", prior = prior),
" b ~ uniform(0,10); \n")
prior <- prior_frame(prior = c("uniform(0,10)", "normal(0,1)"),
... |
### data camp course ####
# topic: machine learning with tree based models
# part 2: regression trees
# data set : creditsub - classification of loan defaults
packages = c("rpart","tidyverse","caret","rpart.plot","Metrics")
package.check <- lapply(packages, FUN = function(pkg) {
if (!require(pkg, character.only =... | /tree based models/regression trees.R | no_license | balramsidh/Data-Projects | R | false | false | 1,727 | r | ### data camp course ####
# topic: machine learning with tree based models
# part 2: regression trees
# data set : creditsub - classification of loan defaults
packages = c("rpart","tidyverse","caret","rpart.plot","Metrics")
package.check <- lapply(packages, FUN = function(pkg) {
if (!require(pkg, character.only =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LibOPF.R
\name{opf_check}
\alias{opf_check}
\title{Checks the OPF file for proper formatting purposes}
\usage{
opf_check(file)
}
\arguments{
\item{file}{The text OPF file name}
}
\value{
`NULL`
}
\description{
Checks the OPF file for proper f... | /man/opf_check.Rd | no_license | RafaelJM/LibOPF-in-R | R | false | true | 706 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LibOPF.R
\name{opf_check}
\alias{opf_check}
\title{Checks the OPF file for proper formatting purposes}
\usage{
opf_check(file)
}
\arguments{
\item{file}{The text OPF file name}
}
\value{
`NULL`
}
\description{
Checks the OPF file for proper f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.