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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset.merging.R
\name{dataset.merging}
\alias{dataset.merging}
\title{Merging all individual esets and merging them into a big eset}
\usage{
dataset.merging(
esets,
method = c("union", "intersect"),
standardization = c("quantile", "ro... | /man/dataset.merging.Rd | no_license | bhklab/consensusOV | R | false | true | 781 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset.merging.R
\name{dataset.merging}
\alias{dataset.merging}
\title{Merging all individual esets and merging them into a big eset}
\usage{
dataset.merging(
esets,
method = c("union", "intersect"),
standardization = c("quantile", "ro... |
##########################################################
####### Code for Pinnacles Biodiversity Paper ############
################# J. Meiners 2017 ########################
setwd("~/Dropbox/ResearchProjects/Biodiv Paper/Pinnacles_Bee_Biodiversity")
library(dplyr)
library(plyr)
library(RColorBrewer)
library(tidyver... | /Biodiv_manuscript_code.R | no_license | beecycles/pinnacles_bee_biodiversity | R | false | false | 12,758 | r | ##########################################################
####### Code for Pinnacles Biodiversity Paper ############
################# J. Meiners 2017 ########################
setwd("~/Dropbox/ResearchProjects/Biodiv Paper/Pinnacles_Bee_Biodiversity")
library(dplyr)
library(plyr)
library(RColorBrewer)
library(tidyver... |
ring_model_t_date_size_pdbh_nc <- function() {
tau2 ~ dunif(-1, 1) # 2-core correlation
#tau3 ~ dunif(-1.0/2.0, 1) # 3-core correlation; keep it pos def
#tau4 ~ dunif(-1.0/3.0, 1) # 4-core correlation; keep it pos def
beta0 ~ dnorm(0, sd = 1.0/0.00001)
beta_slope ~ dunif(0, 0.3)
sig_d_obs... | /sites/HMC/models/ring_model_t_date_size_pdbh_nc.R | no_license | PalEON-Project/RW-2-BIO | R | false | false | 3,926 | r | ring_model_t_date_size_pdbh_nc <- function() {
tau2 ~ dunif(-1, 1) # 2-core correlation
#tau3 ~ dunif(-1.0/2.0, 1) # 3-core correlation; keep it pos def
#tau4 ~ dunif(-1.0/3.0, 1) # 4-core correlation; keep it pos def
beta0 ~ dnorm(0, sd = 1.0/0.00001)
beta_slope ~ dunif(0, 0.3)
sig_d_obs... |
\name{probit.reg}
\alias{probit.reg}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Fit Probit Model.
}
\description{
Wrapper function for \code{\link[oglmx]{oglmx}} to estimate the binary response probit model.
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
p... | /man/probit.reg.Rd | no_license | njc-econ/oglmx | R | false | false | 4,539 | rd | \name{probit.reg}
\alias{probit.reg}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Fit Probit Model.
}
\description{
Wrapper function for \code{\link[oglmx]{oglmx}} to estimate the binary response probit model.
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
p... |
\name{each}
\alias{each}
\title{Aggregate multiple functions into a single function.}
\usage{
each(...)
}
\arguments{
\item{...}{functions to combine. each function should
produce a single number as output}
}
\description{
Combine multiple functions into a single function returning
a named vector of outputs. Note: ... | /man/each.Rd | no_license | dengyishuo/plyr | R | false | false | 904 | rd | \name{each}
\alias{each}
\title{Aggregate multiple functions into a single function.}
\usage{
each(...)
}
\arguments{
\item{...}{functions to combine. each function should
produce a single number as output}
}
\description{
Combine multiple functions into a single function returning
a named vector of outputs. Note: ... |
## makeVector creates a special "vector", which is really a
## list containing a function to:
## set the value of the vector
## get the value of the vector
## set the value of the mean
## get the value of the mean
makeVector <- function(x = numeric()) {
m <- NULL
set <- function(y) {
x... | /cacheMean.R | no_license | tomekla/ProgrammingAssignment2 | R | false | false | 1,188 | r | ## makeVector creates a special "vector", which is really a
## list containing a function to:
## set the value of the vector
## get the value of the vector
## set the value of the mean
## get the value of the mean
makeVector <- function(x = numeric()) {
m <- NULL
set <- function(y) {
x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny.R
\name{flamingoHtmlDependencies}
\alias{flamingoHtmlDependencies}
\title{HTML Dependencies For The Flamingo Interface}
\usage{
flamingoHtmlDependencies()
}
\description{
HTML Dependencies For The Flamingo Interface
}
| /BFE_RShiny/flamingo/man/flamingoHtmlDependencies.Rd | permissive | miraisolutions/OasisUI | R | false | true | 302 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny.R
\name{flamingoHtmlDependencies}
\alias{flamingoHtmlDependencies}
\title{HTML Dependencies For The Flamingo Interface}
\usage{
flamingoHtmlDependencies()
}
\description{
HTML Dependencies For The Flamingo Interface
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flight_delays.R
\docType{data}
\name{flight_delays}
\alias{flight_delays}
\title{Flight delays for flights departing Newark airport in 2013}
\format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 117596 ro... | /dviz.supp/man/flight_delays.Rd | permissive | f0nzie/dataviz-wilke-2020 | R | false | true | 1,118 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flight_delays.R
\docType{data}
\name{flight_delays}
\alias{flight_delays}
\title{Flight delays for flights departing Newark airport in 2013}
\format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 117596 ro... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dust.R, R/redust.R
\name{dust}
\alias{dust}
\alias{dust.default}
\alias{dust.grouped_df}
\alias{dust.list}
\alias{redust}
\alias{redust.default}
\alias{redust.dust_list}
\title{Dust Table Construction}
\usage{
dust(object, ...)
... | /man/dust.Rd | no_license | cran/pixiedust | R | false | true | 11,024 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dust.R, R/redust.R
\name{dust}
\alias{dust}
\alias{dust.default}
\alias{dust.grouped_df}
\alias{dust.list}
\alias{redust}
\alias{redust.default}
\alias{redust.dust_list}
\title{Dust Table Construction}
\usage{
dust(object, ...)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dmas.extract.single.R
\name{dmas.extract.single}
\alias{dmas.extract.single}
\title{Extracting a single coefficient model}
\usage{
dmas.extract.single(apikey, coeff, infoid, id = NA)
}
\arguments{
\item{apikey}{API Key provided by DMAS}
\ite... | /import/rdmas/man/dmas.extract.single.Rd | permissive | jrising/prospectus-tools | R | false | true | 562 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dmas.extract.single.R
\name{dmas.extract.single}
\alias{dmas.extract.single}
\title{Extracting a single coefficient model}
\usage{
dmas.extract.single(apikey, coeff, infoid, id = NA)
}
\arguments{
\item{apikey}{API Key provided by DMAS}
\ite... |
library(googledrive)
### Name: drive_rename
### Title: Rename a Drive file
### Aliases: drive_rename
### ** Examples
## Not run:
##D ## Create a folder to rename
##D folder <- drive_mkdir("folder-to-rename")
##D
##D ## Rename folder
##D folder <- folder %>%
##D drive_rename(name = "renamed-folder")
##D
##D ## ... | /data/genthat_extracted_code/googledrive/examples/drive_rename.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 369 | r | library(googledrive)
### Name: drive_rename
### Title: Rename a Drive file
### Aliases: drive_rename
### ** Examples
## Not run:
##D ## Create a folder to rename
##D folder <- drive_mkdir("folder-to-rename")
##D
##D ## Rename folder
##D folder <- folder %>%
##D drive_rename(name = "renamed-folder")
##D
##D ## ... |
filename <- "~/Desktop/WorkDirectory/household_power_consumption.txt"
data <- read.table(filename, sep =";", header = TRUE, na.strings = "?")
data$Date <- as.Date(data$Date, format="%d/%m/%y")
data$Time <- strptime(data$Time, format="%H:%M:%S")
subset <- Date == "1/2/2007" | Date == "2/2/2007"
datetime <- strptime(pa... | /plot2.R | no_license | jiang-jin/ExData_Plotting1 | R | false | false | 597 | r | filename <- "~/Desktop/WorkDirectory/household_power_consumption.txt"
data <- read.table(filename, sep =";", header = TRUE, na.strings = "?")
data$Date <- as.Date(data$Date, format="%d/%m/%y")
data$Time <- strptime(data$Time, format="%H:%M:%S")
subset <- Date == "1/2/2007" | Date == "2/2/2007"
datetime <- strptime(pa... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = 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), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ... | /meteor/inst/testfiles/ET0_PenmanMonteith/AFL_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1615838443-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 826 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = 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), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_sampling_hist.R
\name{plot_sampling_hist}
\alias{plot_sampling_hist}
\title{Create a grid of sampling distribution histogram from samples}
\usage{
plot_sampling_hist(samples, var_name, sample_size)
}
\arguments{
\item{samples}{the sample... | /man/plot_sampling_hist.Rd | permissive | tguo9/samplingsimulatorr | R | false | true | 826 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_sampling_hist.R
\name{plot_sampling_hist}
\alias{plot_sampling_hist}
\title{Create a grid of sampling distribution histogram from samples}
\usage{
plot_sampling_hist(samples, var_name, sample_size)
}
\arguments{
\item{samples}{the sample... |
rm(list = ls())
library(data.table)
library(magrittr)
library(stringr)
source('a12_func.R')
dtt <- fread('../Input/a12.csv', sep = '') %>%
.[, c('direction', 'n') := list(gsub('(^[[:alpha:]]).*?$', '\\1', INPUT),
as.numeric(gsub('^.(\\d{1,4}$)', '\\1', INPUT)))]
direction <- dtt[['d... | /R/a12.R | no_license | Kata-na/aoc_2020 | R | false | false | 3,346 | r | rm(list = ls())
library(data.table)
library(magrittr)
library(stringr)
source('a12_func.R')
dtt <- fread('../Input/a12.csv', sep = '') %>%
.[, c('direction', 'n') := list(gsub('(^[[:alpha:]]).*?$', '\\1', INPUT),
as.numeric(gsub('^.(\\d{1,4}$)', '\\1', INPUT)))]
direction <- dtt[['d... |
#Test case 63
Data_1 <- matrix(c(3,8,1,2,
7,4,5,8,
2,3,2,1,
4,1,2,5),byrow=TRUE, nrow=4);
Input = matrix(c(3,8,
7,4,
2,3,
4,1), byrow = TRUE, nrow = 4);
Output = matrix(c(1,
5,
... | /2_nsbm_approach/Nsbm.function/tests/Test_case_63.R | no_license | thomaskrupa/thesis | R | false | false | 9,477 | r | #Test case 63
Data_1 <- matrix(c(3,8,1,2,
7,4,5,8,
2,3,2,1,
4,1,2,5),byrow=TRUE, nrow=4);
Input = matrix(c(3,8,
7,4,
2,3,
4,1), byrow = TRUE, nrow = 4);
Output = matrix(c(1,
5,
... |
# install necessary packages, to be run start of the first session
# install.packages("readxl")
# install.packages("plm")
# install.packages("plyr")
# install.packages("foreach")
# install.packages("doParallel")
# install.packages("car")
# install.packages("lmtest")
# Load dependencies
library(readxl)
library(plm)
lib... | /Final Script 3.r | no_license | patrickherrod/LongDifferencingEstimator | R | false | false | 15,678 | r | # install necessary packages, to be run start of the first session
# install.packages("readxl")
# install.packages("plm")
# install.packages("plyr")
# install.packages("foreach")
# install.packages("doParallel")
# install.packages("car")
# install.packages("lmtest")
# Load dependencies
library(readxl)
library(plm)
lib... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/methods-plotCountsPerGene.R
\docType{methods}
\name{plotCountsPerGene}
\alias{plotCountsPerGene}
\alias{plotCountsPerGene,bcbioRNADataSet-method}
\alias{plotCountsPerGene,data.frame-method}
\title{Plot Counts Per Gene}
\usage... | /man/plotCountsPerGene.Rd | permissive | microsud/bcbioRNASeq | R | false | true | 1,745 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/methods-plotCountsPerGene.R
\docType{methods}
\name{plotCountsPerGene}
\alias{plotCountsPerGene}
\alias{plotCountsPerGene,bcbioRNADataSet-method}
\alias{plotCountsPerGene,data.frame-method}
\title{Plot Counts Per Gene}
\usage... |
###############################
## These functions
## 1. Cache what is by definition
## an invertible, square matrix.
## 2. Determine if the inverse
## of that matrix has already.
## been calculated and cached.
## 3. If it has been calculated
## and cached, return the inverse
## from cache and print to console... | /cachematrix.R | no_license | gwfrink3/ProgrammingAssignment2 | R | false | false | 2,990 | r | ###############################
## These functions
## 1. Cache what is by definition
## an invertible, square matrix.
## 2. Determine if the inverse
## of that matrix has already.
## been calculated and cached.
## 3. If it has been calculated
## and cached, return the inverse
## from cache and print to console... |
library(pcadapt)
library(plotly)
library(ggplot2)
library(shiny)
library(rjson)
options(shiny.maxRequestSize = 2000 * 1024^2)
options(warn = -1)
shiny::shinyServer(function(input, output) {
r.x <- reactive({
inFile <- input$file1
file <- inFile$datapath
K <- input$K
ploidy <- in... | /inst/shiny-examples/app-pcadapt/server.R | no_license | cran/pcadapt | R | false | false | 1,636 | r | library(pcadapt)
library(plotly)
library(ggplot2)
library(shiny)
library(rjson)
options(shiny.maxRequestSize = 2000 * 1024^2)
options(warn = -1)
shiny::shinyServer(function(input, output) {
r.x <- reactive({
inFile <- input$file1
file <- inFile$datapath
K <- input$K
ploidy <- in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BumpRiverStage.R
\name{BumpRiverStage}
\alias{BumpRiverStage}
\title{Adjust Implausible River Stage}
\usage{
BumpRiverStage(r, outlets, min.drop = 1e-06)
}
\arguments{
\item{r}{'RasterLayer'.
Numeric cell values representing river s... | /man/BumpRiverStage.Rd | permissive | cran/inlmisc | R | false | true | 1,643 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BumpRiverStage.R
\name{BumpRiverStage}
\alias{BumpRiverStage}
\title{Adjust Implausible River Stage}
\usage{
BumpRiverStage(r, outlets, min.drop = 1e-06)
}
\arguments{
\item{r}{'RasterLayer'.
Numeric cell values representing river s... |
#pick colors by name
twColor <- function(color) {
twPaletteNamed <- c(
lightblue = "#97E3FF",
grey = "#CFD9DE",
blue = "#1D9BF0",
lightyellow = "#FFF094",
lightred = "#FF7D63",
lightpurple = "#AAB9FF",
vibrantyellow = "#FCD61A",
vibrantred = "#FA4233",
vibrantpurple = "#7366D8",
... | /twViz/R/twColor.R | no_license | dchiuten/twtr | R | false | false | 1,672 | r | #pick colors by name
twColor <- function(color) {
twPaletteNamed <- c(
lightblue = "#97E3FF",
grey = "#CFD9DE",
blue = "#1D9BF0",
lightyellow = "#FFF094",
lightred = "#FF7D63",
lightpurple = "#AAB9FF",
vibrantyellow = "#FCD61A",
vibrantred = "#FA4233",
vibrantpurple = "#7366D8",
... |
rankhospital <- function(state, outcome_name, top_n, reader=read.csv) {
# Use the specified reader to get the data frame
outcomes <- reader("outcome-of-care-measures.csv", colClasses= "character")
states <- factor(outcomes$State)
# columns
# 2 - hospital name
# 11 - heart attack 30 day mortality
# 17 ... | /week4/rankhospital.R | no_license | jrepp/coursera | R | false | false | 1,520 | r |
rankhospital <- function(state, outcome_name, top_n, reader=read.csv) {
# Use the specified reader to get the data frame
outcomes <- reader("outcome-of-care-measures.csv", colClasses= "character")
states <- factor(outcomes$State)
# columns
# 2 - hospital name
# 11 - heart attack 30 day mortality
# 17 ... |
# Load provided datasets
NEI <- readRDS("~/coursera/EDA/summarySCC_PM25.rds")
SCC <- readRDS("~/coursera/EDA/Source_Classification_Code.rds")
# Subset coal combustion related NEI data
combustionRelated <- grepl("comb", SCC$SCC.Level.One, ignore.case=TRUE)
coalRelated <- grepl("coal", SCC$SCC.Level.Four, ignore.case=TR... | /Project2/plot4.R | no_license | ericpglass/ExploratoryDataAnalysis | R | false | false | 927 | r | # Load provided datasets
NEI <- readRDS("~/coursera/EDA/summarySCC_PM25.rds")
SCC <- readRDS("~/coursera/EDA/Source_Classification_Code.rds")
# Subset coal combustion related NEI data
combustionRelated <- grepl("comb", SCC$SCC.Level.One, ignore.case=TRUE)
coalRelated <- grepl("coal", SCC$SCC.Level.Four, ignore.case=TR... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rainfall_data.R
\docType{data}
\name{rainfall}
\alias{rainfall}
\title{Rainfall dataset}
\format{A data frame with 1440 rows and 3 variables:
\describe{
\item{Date Time}{date time variable}
\item{Discharge}{discharge data, in double forma... | /man/rainfall.Rd | no_license | eppofahmi/dataplot | R | false | true | 549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rainfall_data.R
\docType{data}
\name{rainfall}
\alias{rainfall}
\title{Rainfall dataset}
\format{A data frame with 1440 rows and 3 variables:
\describe{
\item{Date Time}{date time variable}
\item{Discharge}{discharge data, in double forma... |
dmcScore <- function(actual, prediction) {
tp <- sum(actual == "1" & prediction == "1")
fp <- sum(actual == "0" & prediction == "1")
fn <- sum(actual == "1" & prediction == "0")
return(-5 * fn + 5 * tp - 25 * fp)
}
xgbDMCScore <- function(preds, dtrain) {
return(list(metric = "DMC score",
value... | /UtilityFunctions.R | permissive | Jakob-Bach/AGD-Lab-2019-Task-1 | R | false | false | 3,320 | r | dmcScore <- function(actual, prediction) {
tp <- sum(actual == "1" & prediction == "1")
fp <- sum(actual == "0" & prediction == "1")
fn <- sum(actual == "1" & prediction == "0")
return(-5 * fn + 5 * tp - 25 * fp)
}
xgbDMCScore <- function(preds, dtrain) {
return(list(metric = "DMC score",
value... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/array_transform.R
\name{mat2array}
\alias{mat2array}
\title{(Back-)Transforms a matrix to an array. See array2mat as a related function.}
\usage{
mat2array(dat, dims = NULL, row_dim = NULL)
}
\arguments{
\item{dat}{a matrix to reshape... | /man/mat2array.Rd | no_license | kapilsaxena33/eegR | R | false | false | 886 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/array_transform.R
\name{mat2array}
\alias{mat2array}
\title{(Back-)Transforms a matrix to an array. See array2mat as a related function.}
\usage{
mat2array(dat, dims = NULL, row_dim = NULL)
}
\arguments{
\item{dat}{a matrix to reshape... |
setOldClass(c("tbl_df", "tbl", "data.frame"))
#' An S4 class to represent a set of GWAS Catalog associations
#'
#' The association object consists of six slots, each a table
#' (\code{\link[tibble]{tibble}}), that combined form a relational database of a
#' subset of GWAS Catalog associations. Each association is an o... | /R/class-associations.R | permissive | fmadani/gwasrapidd | R | false | false | 15,830 | r | setOldClass(c("tbl_df", "tbl", "data.frame"))
#' An S4 class to represent a set of GWAS Catalog associations
#'
#' The association object consists of six slots, each a table
#' (\code{\link[tibble]{tibble}}), that combined form a relational database of a
#' subset of GWAS Catalog associations. Each association is an o... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pt_helper_functions.R
\name{pt_calc.data.table}
\alias{pt_calc.data.table}
\title{pt_options hold options passed to pivot table functions}
\usage{
\method{pt_calc}{data.table}(x, pt_options)
}
\arguments{
\item{x}{data.table containing data}
... | /man/pt_calc.data.table.Rd | no_license | mrhopko/pivotlike | R | false | true | 484 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pt_helper_functions.R
\name{pt_calc.data.table}
\alias{pt_calc.data.table}
\title{pt_options hold options passed to pivot table functions}
\usage{
\method{pt_calc}{data.table}(x, pt_options)
}
\arguments{
\item{x}{data.table containing data}
... |
##############
# Header
##############
dbHeader <- dashboardHeader(title = applicationTitle,
titleWidth = titleWidth)
##############
# sidebar
##############
sidebar <- dashboardSidebar(
width = sidebarWidth,
sidebarMenu(
menuItem(text = "Handson",
tabName = "mod... | /05_ShinyApp/ui.R | no_license | JorisVdBos/Data-Science-Capstone | R | false | false | 2,617 | r | ##############
# Header
##############
dbHeader <- dashboardHeader(title = applicationTitle,
titleWidth = titleWidth)
##############
# sidebar
##############
sidebar <- dashboardSidebar(
width = sidebarWidth,
sidebarMenu(
menuItem(text = "Handson",
tabName = "mod... |
#Teammates- Arvind Pawar and Ashish Salunkhe
#UI
#install.packages("sqldf")
#install.packages("shinydashboard")
library(shiny)
library(sqldf)
library(shinydashboard)
library (ggplot2)
library(scales)
library(dplyr)
setwd("C:/Users/Arvind/Desktop/Communication and Visualization for Data Analytics")
getwd()... | /Communication Visualization R shiny.R | no_license | ArvindPawar08/House-Pricing-R-shiny-Project- | R | false | false | 7,312 | r | #Teammates- Arvind Pawar and Ashish Salunkhe
#UI
#install.packages("sqldf")
#install.packages("shinydashboard")
library(shiny)
library(sqldf)
library(shinydashboard)
library (ggplot2)
library(scales)
library(dplyr)
setwd("C:/Users/Arvind/Desktop/Communication and Visualization for Data Analytics")
getwd()... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/addGeneAnnotation.R,
% R/addSNPAnnotation.R
\name{addSNPAnnotation}
\alias{addSNPAnnotation}
\alias{addGeneAnnotation,NULL-method}
\alias{addSNPAnnotation,GuideSet-method}
\alias{addSNPAnnotation,PairedGuideSet-method}
\ali... | /man/addSNPAnnotation.Rd | permissive | crisprVerse/crisprDesign | R | false | true | 2,526 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/addGeneAnnotation.R,
% R/addSNPAnnotation.R
\name{addSNPAnnotation}
\alias{addSNPAnnotation}
\alias{addGeneAnnotation,NULL-method}
\alias{addSNPAnnotation,GuideSet-method}
\alias{addSNPAnnotation,PairedGuideSet-method}
\ali... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/numbers_math.R
\name{dfun.numeric}
\alias{dfun.numeric}
\alias{dfun.array}
\alias{dfun}
\title{Finite Differences}
\usage{
\method{dfun}{numeric}(x, fn)
\method{dfun}{array}(x, fn)
dfun(x, fn)
}
\arguments{
\item{x}{input \code{numeric}}
\... | /man/dfun.Rd | no_license | cran/modello | R | false | true | 715 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/numbers_math.R
\name{dfun.numeric}
\alias{dfun.numeric}
\alias{dfun.array}
\alias{dfun}
\title{Finite Differences}
\usage{
\method{dfun}{numeric}(x, fn)
\method{dfun}{array}(x, fn)
dfun(x, fn)
}
\arguments{
\item{x}{input \code{numeric}}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parabolic.R
\docType{data}
\name{parabolic}
\alias{parabolic}
\title{Parabolic class boundary data}
\value{
\item{parabolic}{a data frame}
}
\description{
Parabolic class boundary data
}
\details{
These data were simulated. There are two corr... | /man/parabolic.Rd | permissive | minghao2016/modeldata | R | false | true | 428 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parabolic.R
\docType{data}
\name{parabolic}
\alias{parabolic}
\title{Parabolic class boundary data}
\value{
\item{parabolic}{a data frame}
}
\description{
Parabolic class boundary data
}
\details{
These data were simulated. There are two corr... |
context("is_convertible_data")
test_that("is_convertible_data_list and is_convertible_data return TRUE", {
data <- list(x = 1)
expect_that(is_convertible_data_list(data), equals(TRUE))
expect_that(is_convertible_data(data), equals(TRUE))
data <- list(x = 1, y = 1)
expect_that(is_convertible_data_list(d... | /inst/tests/test-is-data.r | permissive | poissonconsulting/jaggernaut | R | false | false | 1,933 | r | context("is_convertible_data")
test_that("is_convertible_data_list and is_convertible_data return TRUE", {
data <- list(x = 1)
expect_that(is_convertible_data_list(data), equals(TRUE))
expect_that(is_convertible_data(data), equals(TRUE))
data <- list(x = 1, y = 1)
expect_that(is_convertible_data_list(d... |
data_formatting = function(pwd_csv_files,bacteria_name,nat_wga,pwd,save_intermediary_files){
#############
# This function takes as input the ipd per position csv file after Python code
# The output is 2 RData files containing each a matrix of the positions and corresponding IPDs
# pwd_csv_files is the location of the... | /src/data_formatting.R | no_license | alibashir/EMMCKmer | R | false | false | 1,201 | r | data_formatting = function(pwd_csv_files,bacteria_name,nat_wga,pwd,save_intermediary_files){
#############
# This function takes as input the ipd per position csv file after Python code
# The output is 2 RData files containing each a matrix of the positions and corresponding IPDs
# pwd_csv_files is the location of the... |
#libraries
library(glmnet)
library(purrr)
library(magrittr)
library(pense)
#load data
#data.full <- readRDS()
#full.data <- readRDS("/Users/Matt Multach/Dropbox/USC_Grad2/Courses/Dissertation/Dissertation_Git/Data_Storage/")
#half.data <- readRDS("/Users/Matt Multach/Dropbox/USC_Grad2/Courses/Dissertation/500_data_100... | /Model_Application/Full_Run/Split_by_n_Runs/PENSE5_outlier100.R | no_license | multach87/Dissertation | R | false | false | 3,956 | r | #libraries
library(glmnet)
library(purrr)
library(magrittr)
library(pense)
#load data
#data.full <- readRDS()
#full.data <- readRDS("/Users/Matt Multach/Dropbox/USC_Grad2/Courses/Dissertation/Dissertation_Git/Data_Storage/")
#half.data <- readRDS("/Users/Matt Multach/Dropbox/USC_Grad2/Courses/Dissertation/500_data_100... |
#plant versus animal figures script
##### figure using only unique combinations of species-phenotype #####
dat <- read.csv("../../results/thinned.comp.csv")
#dat <- dat[! is.na(dat$add),]
# get just within species
#dat <- dat[dat$divergence == "within",]
# dat <- dat[dat$divergence == "between",]
plant <- sort(dat[dat$... | /figures/fig3c-P_A/p.a.figures.R | no_license | coleoguy/LCAdata | R | false | false | 1,268 | r | #plant versus animal figures script
##### figure using only unique combinations of species-phenotype #####
dat <- read.csv("../../results/thinned.comp.csv")
#dat <- dat[! is.na(dat$add),]
# get just within species
#dat <- dat[dat$divergence == "within",]
# dat <- dat[dat$divergence == "between",]
plant <- sort(dat[dat$... |
## Problem Set 1
## Page Tofil
##1
#Poisson
#All natural numbers between zero and infinity
#only one parameter, lambda (??)
#discrete
#number of touchdowns scored during the games in the first round of the NFL playoffs
#Negative Binomial
#Whole numbers representing the number of successes
#r (in... | /problem-sets/problem-set-1/submissions/Tofil Problem Set 1.R | no_license | cmhelmholz/advanced-biostats | R | false | false | 8,931 | r | ## Problem Set 1
## Page Tofil
##1
#Poisson
#All natural numbers between zero and infinity
#only one parameter, lambda (??)
#discrete
#number of touchdowns scored during the games in the first round of the NFL playoffs
#Negative Binomial
#Whole numbers representing the number of successes
#r (in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uci_uci.R
\name{uci_uci}
\alias{uci_uci}
\title{Sending command uci for chess engine}
\usage{
uci_uci(engine)
}
\arguments{
\item{engine}{engine object}
}
\value{
engine object
}
\description{
Sending command uci for chess engine. Info about ... | /man/uci_uci.Rd | no_license | cran/bigchess | R | false | true | 893 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uci_uci.R
\name{uci_uci}
\alias{uci_uci}
\title{Sending command uci for chess engine}
\usage{
uci_uci(engine)
}
\arguments{
\item{engine}{engine object}
}
\value{
engine object
}
\description{
Sending command uci for chess engine. Info about ... |
library(testthat)
library(stfit)
library(dplyr)
library(doParallel)
registerDoParallel(6)
test_that("meanEst backward compatibility check", {
# skip("skip this test")
skip_on_cran()
dfB = landsat106 %>% filter(year >= 2000)
mat = as.matrix(dfB[,-c(1:2)])
year = dfB$year
doy = dfB$doy
meanest = meanEst(... | /tests/testthat/test-meanEst.R | no_license | CrossD/stfit | R | false | false | 541 | r | library(testthat)
library(stfit)
library(dplyr)
library(doParallel)
registerDoParallel(6)
test_that("meanEst backward compatibility check", {
# skip("skip this test")
skip_on_cran()
dfB = landsat106 %>% filter(year >= 2000)
mat = as.matrix(dfB[,-c(1:2)])
year = dfB$year
doy = dfB$doy
meanest = meanEst(... |
#' @title List of kernel parts included in the kernel semi parametric model
#'
#'
#' @description internal method for listing all kernel parts included in the model
#'
#' @param formula kernel part formula provided in the \code{kspm} function.
#' @param data data provided in the \code{kspm} function.
#' @param n... | /R/kernelList.R | no_license | cran/KSPM | R | false | false | 21,640 | r | #' @title List of kernel parts included in the kernel semi parametric model
#'
#'
#' @description internal method for listing all kernel parts included in the model
#'
#' @param formula kernel part formula provided in the \code{kspm} function.
#' @param data data provided in the \code{kspm} function.
#' @param n... |
x = read.csv("555assgn1.csv", header = TRUE)
A=x[['X17']]
mean(A)
min(A)
mean(A)
median(A)
sd(A)
quantile(A)
max(A)
boxplot(A, ylab = "duration of days of hospital stays", main = "boxplot of the duration of days of hospital stays.")
hist(A,xlab = "duration of days of hospital stays", main = " histogram of the... | /555ass1.R | no_license | DharmitD/R-programming | R | false | false | 544 | r | x = read.csv("555assgn1.csv", header = TRUE)
A=x[['X17']]
mean(A)
min(A)
mean(A)
median(A)
sd(A)
quantile(A)
max(A)
boxplot(A, ylab = "duration of days of hospital stays", main = "boxplot of the duration of days of hospital stays.")
hist(A,xlab = "duration of days of hospital stays", main = " histogram of the... |
#'@title Get list of files attached to SB item
#'
#'@param id item ID
#'@param Session Session object from \link{authenticate_sb}
#'
#'@return A data.frame with columns fname, size, and url.
#'
#'
#'@export
item_list_files = function(id, session){
item = item_get(id, session)
files = item$files
out = data.frame(fn... | /R/item_list_files.R | permissive | arturochian/sbtools | R | false | false | 492 | r | #'@title Get list of files attached to SB item
#'
#'@param id item ID
#'@param Session Session object from \link{authenticate_sb}
#'
#'@return A data.frame with columns fname, size, and url.
#'
#'
#'@export
item_list_files = function(id, session){
item = item_get(id, session)
files = item$files
out = data.frame(fn... |
##
## lab_03_02.R : SCperf function
##
## update: 20.02.18
## update: 20.05.14
## 연간 수요량(Demand) d = 8000 EA
## 주문당 고정 비용(Setup Cost) k = 12000 USD
## 제품당 보유비용(Holding Cost) h = 0.3 USD
## 단위당 페널티 비용(Penalty Cost) b = 0
# install.packages("SCperf")
library("SCperf")
## EOQ: Economic Order Quantity model
## T = Q/D... | /Lab/lab_03-02.R | no_license | BenjaminKim5/hands_on_bigdata | R | false | false | 817 | r | ##
## lab_03_02.R : SCperf function
##
## update: 20.02.18
## update: 20.05.14
## 연간 수요량(Demand) d = 8000 EA
## 주문당 고정 비용(Setup Cost) k = 12000 USD
## 제품당 보유비용(Holding Cost) h = 0.3 USD
## 단위당 페널티 비용(Penalty Cost) b = 0
# install.packages("SCperf")
library("SCperf")
## EOQ: Economic Order Quantity model
## T = Q/D... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binomial.R
\name{bin_skewness}
\alias{bin_skewness}
\title{bin_skewness}
\usage{
bin_skewness(trials, prob)
}
\arguments{
\item{trials}{the number of (fixed) trials}
\item{prob}{the probability of success on each trial}
}
\value{
the skewnes... | /binomial/man/bin_skewness.Rd | no_license | stat133-sp19/hw-stat133-ycycchen | R | false | true | 457 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binomial.R
\name{bin_skewness}
\alias{bin_skewness}
\title{bin_skewness}
\usage{
bin_skewness(trials, prob)
}
\arguments{
\item{trials}{the number of (fixed) trials}
\item{prob}{the probability of success on each trial}
}
\value{
the skewnes... |
#ejemplo para git
auto <- mtcars
head(auto)
tail(auto) | /Ejemplo01.R | no_license | earandir/DataAnalysisS07 | R | false | false | 56 | r | #ejemplo para git
auto <- mtcars
head(auto)
tail(auto) |
\name{cdssden}
\alias{cdssden}
\alias{cpssden}
\alias{cqssden}
\title{Evaluating Conditional PDF, CDF, and Quantiles of Smoothing
Spline Density Estimates}
\description{
Evaluate conditional pdf, cdf, and quantiles for smoothing spline
density estimates.
}
\usage{
cdssden(object, x, cond, int=NULL)
cpssden(... | /man/cdssden.Rd | no_license | weirichd/gss | R | false | false | 1,670 | rd | \name{cdssden}
\alias{cdssden}
\alias{cpssden}
\alias{cqssden}
\title{Evaluating Conditional PDF, CDF, and Quantiles of Smoothing
Spline Density Estimates}
\description{
Evaluate conditional pdf, cdf, and quantiles for smoothing spline
density estimates.
}
\usage{
cdssden(object, x, cond, int=NULL)
cpssden(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GIMAP5CEUrd.R
\docType{data}
\name{GIMAP5.CEU}
\alias{GIMAP5.CEU}
\title{Example data set for LDheatmap}
\format{GIMAP5.CEU is a list with two elements: snp.data and snp.support.
snp.data is a \code{SnpMatrix}
object containing the SNP genoty... | /man/GIMAP5.CEU.Rd | no_license | sumeetmankar171/LDheatmap-testing | R | false | true | 1,707 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GIMAP5CEUrd.R
\docType{data}
\name{GIMAP5.CEU}
\alias{GIMAP5.CEU}
\title{Example data set for LDheatmap}
\format{GIMAP5.CEU is a list with two elements: snp.data and snp.support.
snp.data is a \code{SnpMatrix}
object containing the SNP genoty... |
# plot4.R code to produce plot4.png
# get the data
# save the Url
powerdataUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
# download the zip file
download.file(powerdataUrl, destfile = "exdata-data-household_power_consumption.zip")
# extract the text file from the zip fi... | /plot4.R | no_license | dboiani/ExData_Plotting1 | R | false | false | 2,362 | r | # plot4.R code to produce plot4.png
# get the data
# save the Url
powerdataUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
# download the zip file
download.file(powerdataUrl, destfile = "exdata-data-household_power_consumption.zip")
# extract the text file from the zip fi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sf.R
\name{st_as_sf}
\alias{st_as_sf}
\alias{st_as_sfc.stars}
\alias{st_as_sf.stars}
\title{Convert stars object into an sf object}
\usage{
\method{st_as_sfc}{stars}(x, ..., as_points,
which = seq_len(prod(dim(x)[1:2])))
\method{st_as_sf}{... | /man/st_as_sf.Rd | no_license | Dr-Dong/stars | R | false | true | 1,957 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sf.R
\name{st_as_sf}
\alias{st_as_sf}
\alias{st_as_sfc.stars}
\alias{st_as_sf.stars}
\title{Convert stars object into an sf object}
\usage{
\method{st_as_sfc}{stars}(x, ..., as_points,
which = seq_len(prod(dim(x)[1:2])))
\method{st_as_sf}{... |
html.output<-function(data, Chip="hgu133a", n.rows=nrow(data), html=TRUE, title="")
# For html output
# data : data frame to annotate. Columns have to be named as data$t.value, data$adj.p.value
# Chip : The Chip database to consider
# n.rows : The number of results to consider
# title : The title for the table... | /html.output.R | no_license | fredcommo/FredScript | R | false | false | 983 | r | html.output<-function(data, Chip="hgu133a", n.rows=nrow(data), html=TRUE, title="")
# For html output
# data : data frame to annotate. Columns have to be named as data$t.value, data$adj.p.value
# Chip : The Chip database to consider
# n.rows : The number of results to consider
# title : The title for the table... |
# This file contains functions for data transfer between R and PostgreSQL googlekml database on BDEEP cairo AWS vm.
# For more information about package PostgreSQL, see https://cran.r-project.org/web/packages/RPostgreSQL/RPostgreSQL.pdf
#' get_cairo_usr
#' @description This function gets from database according to a u... | /BDEEPGooglekml/R/googlekml.R | no_license | uiuc-bdeep/GoogleKML_Database | R | false | false | 1,729 | r | # This file contains functions for data transfer between R and PostgreSQL googlekml database on BDEEP cairo AWS vm.
# For more information about package PostgreSQL, see https://cran.r-project.org/web/packages/RPostgreSQL/RPostgreSQL.pdf
#' get_cairo_usr
#' @description This function gets from database according to a u... |
########################################################################################################################
#
# Title: Minesweeper Game Creation
# Author: Chris Maerzluft
# Description: Create a minesweeper game than can be played
# Date: 6/15/18
#
##########################################################... | /R/create.minesweeper.R | no_license | cmaerzluft/minesweeper | R | false | false | 6,847 | r | ########################################################################################################################
#
# Title: Minesweeper Game Creation
# Author: Chris Maerzluft
# Description: Create a minesweeper game than can be played
# Date: 6/15/18
#
##########################################################... |
# ------------------- file generated by automated process ----------------------
# --------------------------- DO NOT EDIT BY HAND ------------------------------
# --------- make edits to the vignette-spinners/ensr-datasets.R file -----------
#' Water Percolation Through A Landfill
#'
#' A computer simulation of wate... | /R/landfill.R | no_license | dewittpe/ensr | R | false | false | 581 | r |
# ------------------- file generated by automated process ----------------------
# --------------------------- DO NOT EDIT BY HAND ------------------------------
# --------- make edits to the vignette-spinners/ensr-datasets.R file -----------
#' Water Percolation Through A Landfill
#'
#' A computer simulation of wate... |
head(leafdecay)
AFDM <- function(data,
InitDryW,
FinalDryW,
FractIntW,
FractFinW,
Treatment,
Day,
Replicate,
Difference,
control) {
# Calculate the control by manu... | /test.R | permissive | PEGutierrezF/leaf_decay | R | false | false | 3,763 | r |
head(leafdecay)
AFDM <- function(data,
InitDryW,
FinalDryW,
FractIntW,
FractFinW,
Treatment,
Day,
Replicate,
Difference,
control) {
# Calculate the control by manu... |
csv_url <- "https://s3-ap-northeast-1.amazonaws.com/r-essentials/chicago_bulls_1995_1996.csv"
chicago_bulls <- read.csv(csv_url, stringsAsFactors = FALSE)
trio <- chicago_bulls[c(7, 11, 12), ]
trio | /r-essentials-gists/ch1009.R | no_license | jtlai0921/AEL023000_- | R | false | false | 197 | r | csv_url <- "https://s3-ap-northeast-1.amazonaws.com/r-essentials/chicago_bulls_1995_1996.csv"
chicago_bulls <- read.csv(csv_url, stringsAsFactors = FALSE)
trio <- chicago_bulls[c(7, 11, 12), ]
trio |
# TRABAJO PRÁCTICO N" 2
## SCRAPING
library(tidyverse)
library(rvest)
investing <- read_html("https://es.investing.com/crypto/bitcoin") | /TP2-3.R | no_license | fsiverino/TPIAU | R | false | false | 138 | r | # TRABAJO PRÁCTICO N" 2
## SCRAPING
library(tidyverse)
library(rvest)
investing <- read_html("https://es.investing.com/crypto/bitcoin") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_options.R
\name{data_options}
\alias{data_options}
\title{Data Options}
\usage{
data_options()
}
\value{
List of datasets
}
\description{
Function showing which datasets are supported by the `read_data` function.
}
\examples{
data_optio... | /man/data_options.Rd | no_license | JonWayland/uncoveR | R | false | true | 328 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_options.R
\name{data_options}
\alias{data_options}
\title{Data Options}
\usage{
data_options()
}
\value{
List of datasets
}
\description{
Function showing which datasets are supported by the `read_data` function.
}
\examples{
data_optio... |
# Employment status of the civilian noninstitutional population, not seasonaly adjusted monthly series
# 1976-01 - 2019-03
# For more information, see https://www.bls.gov/web/laus.supp.toc.htm
library(tidyverse)
# Downloade Statewide Annual Averages -------------------------------------
url = "https://www.bls.gov/we... | /data-raw/prep_state_month_nsa.R | no_license | jjchern/laus | R | false | false | 1,930 | r | # Employment status of the civilian noninstitutional population, not seasonaly adjusted monthly series
# 1976-01 - 2019-03
# For more information, see https://www.bls.gov/web/laus.supp.toc.htm
library(tidyverse)
# Downloade Statewide Annual Averages -------------------------------------
url = "https://www.bls.gov/we... |
function (x, window)
{
e <- get("data.env", .GlobalEnv)
e[["blockaves_i_max"]][[length(e[["blockaves_i_max"]]) +
1]] <- list(x = x, window = window)
.Call("_accelerometry_blockaves_i_max", x, window)
}
| /valgrind_test_dir/blockaves_i_max-test.R | no_license | akhikolla/RcppDeepStateTest | R | false | false | 224 | r | function (x, window)
{
e <- get("data.env", .GlobalEnv)
e[["blockaves_i_max"]][[length(e[["blockaves_i_max"]]) +
1]] <- list(x = x, window = window)
.Call("_accelerometry_blockaves_i_max", x, window)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allClass.R
\name{leafSummarizedExperiment-constructor}
\alias{leafSummarizedExperiment-constructor}
\alias{leafSummarizedExperiment}
\title{Construct a leafSummarizedExperiment object}
\usage{
leafSummarizedExperiment(tree, ...)
}
\arguments{... | /man/leafSummarizedExperiment-constructor.Rd | no_license | fionarhuang/treeAGG | R | false | true | 2,571 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allClass.R
\name{leafSummarizedExperiment-constructor}
\alias{leafSummarizedExperiment-constructor}
\alias{leafSummarizedExperiment}
\title{Construct a leafSummarizedExperiment object}
\usage{
leafSummarizedExperiment(tree, ...)
}
\arguments{... |
/assignment_1/1_Gulewitsch_korrigiert.R | no_license | l3onhard/Programming-with-R-course | R | false | false | 1,775 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/project_methods.r
\name{getZ}
\alias{getZ}
\title{getZ method for the size based model}
\usage{
getZ(object, n, n_pp, effort, m2)
}
\arguments{
\item{object}{A \code{MizerParams} object.}
\item{n}{A matrix of species abundance (species x siz... | /man/getZ.Rd | no_license | mdsumner/mizer | R | false | true | 1,344 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/project_methods.r
\name{getZ}
\alias{getZ}
\title{getZ method for the size based model}
\usage{
getZ(object, n, n_pp, effort, m2)
}
\arguments{
\item{object}{A \code{MizerParams} object.}
\item{n}{A matrix of species abundance (species x siz... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/urinary_tract.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="mae",alpha=0.7,family="gaussian",standardize=FALSE)
sink('./urinary_tract_076.txt',ap... | /Model/EN/ReliefF/urinary_tract/urinary_tract_076.R | no_license | esbgkannan/QSMART | R | false | false | 360 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/urinary_tract.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="mae",alpha=0.7,family="gaussian",standardize=FALSE)
sink('./urinary_tract_076.txt',ap... |
#- set working directory
setwd("D:\\Documents\\Study and small Project training\\project_tsunami\\test\\usgs")
options(scipen = 999)
# load necessary packages
library(neuralnet)
library(nnet)
library(NeuralNetTools)
library(dplyr)
library(ggplot2)
#library(maptools)
library(astsa)
library(leaflet)
librar... | /ann_predict.R | no_license | ijoroyo/usgscode | R | false | false | 6,706 | r | #- set working directory
setwd("D:\\Documents\\Study and small Project training\\project_tsunami\\test\\usgs")
options(scipen = 999)
# load necessary packages
library(neuralnet)
library(nnet)
library(NeuralNetTools)
library(dplyr)
library(ggplot2)
#library(maptools)
library(astsa)
library(leaflet)
librar... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/kprod.R
\name{kprod}
\alias{kprod}
\title{Kronecker Product}
\usage{
kprod(...)
}
\arguments{
\item{\ldots}{Either a sequence of matrices or a single list of matrices.}
}
\value{
A matrix with dimensions equal to the product of the in... | /man/kprod.Rd | no_license | pdhoff/hmvregression | R | false | false | 599 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/kprod.R
\name{kprod}
\alias{kprod}
\title{Kronecker Product}
\usage{
kprod(...)
}
\arguments{
\item{\ldots}{Either a sequence of matrices or a single list of matrices.}
}
\value{
A matrix with dimensions equal to the product of the in... |
#' Turn POSIXct object to an ISO formatted time needed for the FullCalendar js to recognise
#'
#' @param time A POSIXct valid time object
#' @param tz A time zone string. By default will try to get it from the Posixct object, else will set to system locale
#'
#' @return a string following the pattern \code{\%Y-\%m-\%dT... | /R/helpers.R | permissive | ari-nz/fullercalendar | R | false | false | 8,031 | r | #' Turn POSIXct object to an ISO formatted time needed for the FullCalendar js to recognise
#'
#' @param time A POSIXct valid time object
#' @param tz A time zone string. By default will try to get it from the Posixct object, else will set to system locale
#'
#' @return a string following the pattern \code{\%Y-\%m-\%dT... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{data_dictionary_MFD}
\alias{data_dictionary_MFD}
\title{Moral Foundations Dictionary}
\format{An object of class \code{dictionary2} of length 10.}
\source{
http://www.jeremyfrimer.com/research-downloads.html; a pre... | /man/data_dictionary_MFD.Rd | no_license | mrweiler/quanteda.dictionaries | R | false | true | 1,643 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{data_dictionary_MFD}
\alias{data_dictionary_MFD}
\title{Moral Foundations Dictionary}
\format{An object of class \code{dictionary2} of length 10.}
\source{
http://www.jeremyfrimer.com/research-downloads.html; a pre... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.mediapackage_operations.R
\name{list_origin_endpoints}
\alias{list_origin_endpoints}
\title{Returns a collection of OriginEndpoint records}
\usage{
list_origin_endpoints(ChannelId = NULL, MaxResults = NULL,
NextToken = NULL)
}
\argumen... | /service/paws.mediapackage/man/list_origin_endpoints.Rd | permissive | CR-Mercado/paws | R | false | true | 810 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.mediapackage_operations.R
\name{list_origin_endpoints}
\alias{list_origin_endpoints}
\title{Returns a collection of OriginEndpoint records}
\usage{
list_origin_endpoints(ChannelId = NULL, MaxResults = NULL,
NextToken = NULL)
}
\argumen... |
<!DOCTYPE html>
<html lang="en" class=" is-copy-enabled is-u2f-enabled">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
<meta charset='utf-8'>
<link crossorigin="anonymous" href="https:/... | /00101_example_7.2_of_section_7.1.3.R | no_license | ssange/DataAnalysis | R | false | false | 37,872 | r |
<!DOCTYPE html>
<html lang="en" class=" is-copy-enabled is-u2f-enabled">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
<meta charset='utf-8'>
<link crossorigin="anonymous" href="https:/... |
% Auto-generated: do not edit by hand
\name{htmlRb}
\alias{htmlRb}
\title{Rb component}
\description{
Rb is a wrapper for the <rb> HTML5 element. For detailed attribute info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rb
}
\usage{
htmlRb(children=NULL, id=NULL, accessKey=NULL, className=NULL,
con... | /man/htmlRb.Rd | permissive | Kri1919/dash-html-components | R | false | false | 3,529 | rd | % Auto-generated: do not edit by hand
\name{htmlRb}
\alias{htmlRb}
\title{Rb component}
\description{
Rb is a wrapper for the <rb> HTML5 element. For detailed attribute info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rb
}
\usage{
htmlRb(children=NULL, id=NULL, accessKey=NULL, className=NULL,
con... |
##Chapter 8 Notes##
##Flow Control and Loops##
if
# takes a logical value (more precisely, a logical vector of length one) and executes the next statement if TRUE
# missing values (NA) cannot be passed so an error occurs
#format
if (condition){
Do_something
} else {
Do_something_different
}
#example:
if (i > 3){
... | /chapter.8.tanjanay.R | no_license | paul-shannon/learningR | R | false | false | 5,822 | r | ##Chapter 8 Notes##
##Flow Control and Loops##
if
# takes a logical value (more precisely, a logical vector of length one) and executes the next statement if TRUE
# missing values (NA) cannot be passed so an error occurs
#format
if (condition){
Do_something
} else {
Do_something_different
}
#example:
if (i > 3){
... |
# Return a call defining the structure of the given object x.
get_structure <- function(x) {
result <- paste(deparse(x, width.cutoff = 500), collapse = "")
result <- gsub(" *, *", ", ", result)
result <- gsub(" *= *", " = ", result)
result <- gsub("\\( +", "(", result)
result
}
# Returns a quoted string, e.g... | /make.paws/R/utils.R | permissive | peoplecure/paws | R | false | false | 1,717 | r | # Return a call defining the structure of the given object x.
get_structure <- function(x) {
result <- paste(deparse(x, width.cutoff = 500), collapse = "")
result <- gsub(" *, *", ", ", result)
result <- gsub(" *= *", " = ", result)
result <- gsub("\\( +", "(", result)
result
}
# Returns a quoted string, e.g... |
#' Fetch enrollment survey responses
#'
#' Get responses to survey questions asked during course enrollment.
#'
#' If there are multiple submissions of the same survey for the same course by
#' the same user, then the most recent is returned. Not sure why there are
#' duplicates. It might occur when a user edits a... | /R/enrollment_survey.R | no_license | sbkellogg/fimoodler | R | false | false | 5,885 | r |
#' Fetch enrollment survey responses
#'
#' Get responses to survey questions asked during course enrollment.
#'
#' If there are multiple submissions of the same survey for the same course by
#' the same user, then the most recent is returned. Not sure why there are
#' duplicates. It might occur when a user edits a... |
\name{checkMgrastMetagenome}
\alias{checkMgrastMetagenome}
\title{
Check whether the MGRAST annotation is completed
}
\description{
Check the whether MGRAST annotation is comleted of the metagenomic sequence.
}
\usage{
checkMgrastMetagenome(login.info, metagenome.id, public = TRUE)
}
\arguments{
\item{lo... | /man/checkMgrastMetagenome.Rd | no_license | yiluheihei/mmnet | R | false | false | 1,017 | rd | \name{checkMgrastMetagenome}
\alias{checkMgrastMetagenome}
\title{
Check whether the MGRAST annotation is completed
}
\description{
Check the whether MGRAST annotation is comleted of the metagenomic sequence.
}
\usage{
checkMgrastMetagenome(login.info, metagenome.id, public = TRUE)
}
\arguments{
\item{lo... |
#
# data <- read.table ("./data/household_power_consumption.txt",header=TRUE,sep=';')
data<-read.table("./data/household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
#subset the d... | /plot4.R | no_license | ibrahimr/ExData_Plotting1 | R | false | false | 1,726 | r | #
# data <- read.table ("./data/household_power_consumption.txt",header=TRUE,sep=';')
data<-read.table("./data/household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
#subset the d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/3_buildMST.R
\name{PlotNode}
\alias{PlotNode}
\title{Plot star chart}
\usage{
PlotNode(fsom, id, markers = fsom$map$colsUsed,
colorPalette = grDevices::colorRampPalette(c("#00007F", "blue", "#007FFF",
"cyan", "#7FFF7F", "yellow", "#FF7F00... | /man/PlotNode.Rd | no_license | StarXian/FlowSOM | R | false | true | 1,504 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/3_buildMST.R
\name{PlotNode}
\alias{PlotNode}
\title{Plot star chart}
\usage{
PlotNode(fsom, id, markers = fsom$map$colsUsed,
colorPalette = grDevices::colorRampPalette(c("#00007F", "blue", "#007FFF",
"cyan", "#7FFF7F", "yellow", "#FF7F00... |
# split the data into matrices and obtain other relevant info for the further
# steps
divide_matrices <- function(data, fixed, random = NULL, analysis_type,
auxvars = NULL, scale_vars = NULL, refcats = NULL,
models = NULL, timevar = NULL, no_model = NULL,
... | /R/divide_matrices.R | no_license | NErler/JointAI | R | false | false | 11,178 | r | # split the data into matrices and obtain other relevant info for the further
# steps
divide_matrices <- function(data, fixed, random = NULL, analysis_type,
auxvars = NULL, scale_vars = NULL, refcats = NULL,
models = NULL, timevar = NULL, no_model = NULL,
... |
#####################
# internal function #
#####################
#' determineTypeNumBasesAndTrDir (internal function)
#'
#' For a given signature or genome representation: determine the
#' type (Shiraishi or Alexandrov), the number of bases, and whether
#' transcription-strand information is included.
#'
#' @usage d... | /R/determineTypeNumBasesAndTrDir.R | no_license | zhiiiyang/decompTumor2Sig | R | false | false | 2,869 | r |
#####################
# internal function #
#####################
#' determineTypeNumBasesAndTrDir (internal function)
#'
#' For a given signature or genome representation: determine the
#' type (Shiraishi or Alexandrov), the number of bases, and whether
#' transcription-strand information is included.
#'
#' @usage d... |
## Programming assigment 2
# This second programming assignment will require you to write an R function is able to cache potentially
# time-consuming computations. For example, taking the mean of a numeric vector is typically a fast operation.
# Matrix inversion is usually a costly computation and their may be so... | /cachematrix.R | no_license | luismart/ProgrammingAssignment2 | R | false | false | 2,211 | r | ## Programming assigment 2
# This second programming assignment will require you to write an R function is able to cache potentially
# time-consuming computations. For example, taking the mean of a numeric vector is typically a fast operation.
# Matrix inversion is usually a costly computation and their may be so... |
setwd('C:\\Users\\Amanda\\Documents\\data\\exdata%2Fdata%2Fhousehold_power_consumption')
if(!file.exists('data')) dir.create('data')
fileUrl <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
download.file(fileUrl, destfile = './data/household_power_consumption.zip')
unzip('.... | /Peer graded Assignment Course Project 1.R | no_license | NewNestor/ExData_Plotting1 | R | false | false | 2,788 | r | setwd('C:\\Users\\Amanda\\Documents\\data\\exdata%2Fdata%2Fhousehold_power_consumption')
if(!file.exists('data')) dir.create('data')
fileUrl <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
download.file(fileUrl, destfile = './data/household_power_consumption.zip')
unzip('.... |
library(phyext2)
### Name: phyext2
### Title: Misc. functions from phyext package
### Aliases: addSubNode collapse.singletons collapse.subnodes
### collapse.to.singles deep.phy.copy expand.singles get.nexus.comments
### get.nodenames get.tree.weights getEmptyDataFrame getSubNodeData
### getSubNodeEdgeInds getSu... | /data/genthat_extracted_code/phyext2/examples/phyext2.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 793 | r | library(phyext2)
### Name: phyext2
### Title: Misc. functions from phyext package
### Aliases: addSubNode collapse.singletons collapse.subnodes
### collapse.to.singles deep.phy.copy expand.singles get.nexus.comments
### get.nodenames get.tree.weights getEmptyDataFrame getSubNodeData
### getSubNodeEdgeInds getSu... |
# Script to create input file to PMN of only highly variable genes, using
# the same set that was used to create the WGCNA network.
#
# Written by Joe Reistetter
setwd("~/Dropbox/thesis_work/data/exprs/")
load("expr.cons.1.5.RData")
load("filt_pt5.net.RData")
#Grab the genes used in building the WGCNA network
wgcna_... | /exprs/PMN_high_var_expr.R | no_license | jreistetter/MS_thesis | R | false | false | 767 | r | # Script to create input file to PMN of only highly variable genes, using
# the same set that was used to create the WGCNA network.
#
# Written by Joe Reistetter
setwd("~/Dropbox/thesis_work/data/exprs/")
load("expr.cons.1.5.RData")
load("filt_pt5.net.RData")
#Grab the genes used in building the WGCNA network
wgcna_... |
\title{expandAsMatrix}
\name{expandAsMatrix}
\alias{expandAsMatrix}
\description{
Expand scalar or vector to a matrix.
}
\usage{
expandAsMatrix(x, dim=NULL, byrow=TRUE)
}
\arguments{
\item{x}{scalar, vector, matrix or CompressedMatrix.}
\item{dim}{integer vector of length 2 specifying the required dimens... | /man/expandAsMatrix.Rd | no_license | wenmm/edgeR | R | false | false | 1,654 | rd | \title{expandAsMatrix}
\name{expandAsMatrix}
\alias{expandAsMatrix}
\description{
Expand scalar or vector to a matrix.
}
\usage{
expandAsMatrix(x, dim=NULL, byrow=TRUE)
}
\arguments{
\item{x}{scalar, vector, matrix or CompressedMatrix.}
\item{dim}{integer vector of length 2 specifying the required dimens... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/youtube_functions.R
\name{channelBanners.insert}
\alias{channelBanners.insert}
\title{Uploads a channel banner image to YouTube. This method represents the first two steps in a three-step process to update the banner image for a channel:- Cal... | /googleyoutubev3.auto/man/channelBanners.insert.Rd | permissive | uwazac/autoGoogleAPI | R | false | true | 1,807 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/youtube_functions.R
\name{channelBanners.insert}
\alias{channelBanners.insert}
\title{Uploads a channel banner image to YouTube. This method represents the first two steps in a three-step process to update the banner image for a channel:- Cal... |
context("Marker-based decomposition")
library(Biobase)
test_that("Catches input errors", {
# Expression not in eset
bulk.counts <- matrix(0,nrow=2,ncol=2)
bulk.eset <- Biobase::ExpressionSet(assayData = bulk.counts)
markers <- data.frame(gene=c("1","2"), cluster=c("a", "b"))
expect_error(BisqueRNA::MarkerBas... | /tests/testthat/test_marker_based.R | no_license | cran/BisqueRNA | R | false | false | 2,610 | r | context("Marker-based decomposition")
library(Biobase)
test_that("Catches input errors", {
# Expression not in eset
bulk.counts <- matrix(0,nrow=2,ncol=2)
bulk.eset <- Biobase::ExpressionSet(assayData = bulk.counts)
markers <- data.frame(gene=c("1","2"), cluster=c("a", "b"))
expect_error(BisqueRNA::MarkerBas... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apex-utils.R
\name{ax_yaxis}
\alias{ax_yaxis}
\title{Y-axis options}
\usage{
ax_yaxis(
ax,
opposite = NULL,
tickAmount = NULL,
max = NULL,
min = NULL,
floating = NULL,
labels = NULL,
axisBorder = NULL,
axisTicks = NULL,
ti... | /man/ax_yaxis.Rd | permissive | dreamRs/apexcharter | R | false | true | 2,052 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apex-utils.R
\name{ax_yaxis}
\alias{ax_yaxis}
\title{Y-axis options}
\usage{
ax_yaxis(
ax,
opposite = NULL,
tickAmount = NULL,
max = NULL,
min = NULL,
floating = NULL,
labels = NULL,
axisBorder = NULL,
axisTicks = NULL,
ti... |
# Assignment: ASSIGNMENT 7
# Name: Oke, Osmond
# Date: 2020-07-09
## Set the working directory to the root of your DSC 520 directory
setwd("/homoe/jdoe/Workspaces/dsc520")
## Load the `data/r4ds/heights.csv` to
heights_df <- read.csv("data/r4ds/heights.csv")
# Fit a linear model
earn_lm <- lm(earn ~ heig... | /assignments/exercise_07_OkeOsmond.R | permissive | OsmondOke/dsc520 | R | false | false | 1,580 | r | # Assignment: ASSIGNMENT 7
# Name: Oke, Osmond
# Date: 2020-07-09
## Set the working directory to the root of your DSC 520 directory
setwd("/homoe/jdoe/Workspaces/dsc520")
## Load the `data/r4ds/heights.csv` to
heights_df <- read.csv("data/r4ds/heights.csv")
# Fit a linear model
earn_lm <- lm(earn ~ heig... |
source("function.r")
#need to take in parameter
## passed in from the command prompt.
parseCommandArgs()
## Will disply the default values on the first run,
print(seed)
print(n_rep)
print(r)
print(n_family) #number of family
print(p_dis) #prevelance
## ... your simualtion code
##the founder's haplotypes
#... | /2015-02-27 figure 7. compare 2g2c and 2conly.r | no_license | gtlntw/p3_TRAP | R | false | false | 4,566 | r | source("function.r")
#need to take in parameter
## passed in from the command prompt.
parseCommandArgs()
## Will disply the default values on the first run,
print(seed)
print(n_rep)
print(r)
print(n_family) #number of family
print(p_dis) #prevelance
## ... your simualtion code
##the founder's haplotypes
#... |
FILE <- Sys.getenv("FILE")
library(readr)
library(stringr)
library(dplyr)
library(stringi)
NEWFILENAME <- FILE %>% str_replace("_AD_fields", "") %>% str_replace("_header.tab", "")
AD_depths_sum <- read_delim(str_c("split_processed_depth_files/AD_depths_sum_", FILE), delim="\t", col_types = cols(.default="c"))
AD_depths... | /scripts/r/generate_final_AD_matrices.R | no_license | ipdgc/pdgsc | R | false | false | 1,559 | r | FILE <- Sys.getenv("FILE")
library(readr)
library(stringr)
library(dplyr)
library(stringi)
NEWFILENAME <- FILE %>% str_replace("_AD_fields", "") %>% str_replace("_header.tab", "")
AD_depths_sum <- read_delim(str_c("split_processed_depth_files/AD_depths_sum_", FILE), delim="\t", col_types = cols(.default="c"))
AD_depths... |
library(shiny)
library(shinydashboard)
library(dplyr)
library(ggplot2)
Teams<-read.csv("Teams.csv")
Scoring<-read.csv("TotalScoring.csv")
counter.balanced.median<- function(x){
len<-length(x)
x<-sort(x)
x<-data.frame(x)
x$row<-row.names(x)
med<-median(x$x)
#test if the calculated median ... | /server.r | no_license | dvdoc555/Counterbalanced-Median | R | false | false | 3,818 | r | library(shiny)
library(shinydashboard)
library(dplyr)
library(ggplot2)
Teams<-read.csv("Teams.csv")
Scoring<-read.csv("TotalScoring.csv")
counter.balanced.median<- function(x){
len<-length(x)
x<-sort(x)
x<-data.frame(x)
x$row<-row.names(x)
med<-median(x$x)
#test if the calculated median ... |
# Please do three things to ensure this template is correctly modified:
# 1. Rename this file based on the content you are testing using
# `test-functionName.R` format so that your can directly call `moduleCoverage`
# to calculate module coverage information.
# `functionName` is a function's name in your modu... | /modules/birdsAlberta/tests/testthat/test-template.R | no_license | tati-micheletti/SpaDESinAction | R | false | false | 3,414 | r |
# Please do three things to ensure this template is correctly modified:
# 1. Rename this file based on the content you are testing using
# `test-functionName.R` format so that your can directly call `moduleCoverage`
# to calculate module coverage information.
# `functionName` is a function's name in your modu... |
#The first function, makeVector creates a special "vector", which is really a list containing a function to
#set the value of the vector
#get the value of the vector
#set the value of the mean
#get the value of the mean
makeVector <- function(x = numeric()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NU... | /meanVector.R | no_license | satybald/ProgrammingAssignment2 | R | false | false | 1,046 | r | #The first function, makeVector creates a special "vector", which is really a list containing a function to
#set the value of the vector
#get the value of the vector
#set the value of the mean
#get the value of the mean
makeVector <- function(x = numeric()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NU... |
plot_theme <- hrbrthemes::theme_ipsum(base_size = 14,
axis_title_size = 16,
base_family = "Fira Sans")
theme_set(plot_theme)
capitalize <- function(string) {
substr(string, 1, 1) <- toupper(substr(string, 1, 1))
string
}
year_mpa <- 25
... | /backup.R | permissive | DanOvando/simmpa | R | false | false | 5,256 | r | plot_theme <- hrbrthemes::theme_ipsum(base_size = 14,
axis_title_size = 16,
base_family = "Fira Sans")
theme_set(plot_theme)
capitalize <- function(string) {
substr(string, 1, 1) <- toupper(substr(string, 1, 1))
string
}
year_mpa <- 25
... |
# test queries -----------------------------------------------------------------
context("create_met()")
test_that("create_met() creates a .met file for APSIM use", {
skip_on_cran()
create_met(
lonlat = c(151.81, -27.48),
dates = c("1985-01-01", "1985-12-31"),
dsn = tempdir(),
file_out = "... | /tests/testthat/test-create_met.R | permissive | KuldeepSJadon/nasapower | R | false | false | 2,670 | r |
# test queries -----------------------------------------------------------------
context("create_met()")
test_that("create_met() creates a .met file for APSIM use", {
skip_on_cran()
create_met(
lonlat = c(151.81, -27.48),
dates = c("1985-01-01", "1985-12-31"),
dsn = tempdir(),
file_out = "... |
library(testthat)
library(rush)
test_check("rush")
| /tests/testthat.R | permissive | jeroenjanssens/rush | R | false | false | 52 | r | library(testthat)
library(rush)
test_check("rush")
|
context("Create Match ID")
competition_id <- "sco_pl"
match_date <- ymd("2020-01-01")
home_team <- "Celtic"
away_team <- "Rangers"
match_id <- "sco_pl__20200101__Celtic__Rangers"
test_that("create_match_id works as expected", {
expect_equivalent(create_match_id(competition_id, match_date, home_team, away_team), m... | /tests/testthat/test_create_match_id.R | no_license | Sol-Won-1100/panenkar | R | false | false | 1,390 | r |
context("Create Match ID")
competition_id <- "sco_pl"
match_date <- ymd("2020-01-01")
home_team <- "Celtic"
away_team <- "Rangers"
match_id <- "sco_pl__20200101__Celtic__Rangers"
test_that("create_match_id works as expected", {
expect_equivalent(create_match_id(competition_id, match_date, home_team, away_team), m... |
S5_parallel = function(NC,X,y,ind_fun,model,tuning,tem,ITER=20,S=20,C0=2){
requireNamespace("snowfall")
requireNamespace("Matrix")
#require(snowfall)
#require(Matrix)
n = nrow(X)
p = ncol(X)
y = y - mean(y)
sfInit = snowfall::sfInit
sfLibrary = snowfall::sfLibrary
sfExportAll = snowfall::sfExportAll... | /R/S5_parallel.R | no_license | cran/BayesS5 | R | false | false | 1,925 | r | S5_parallel = function(NC,X,y,ind_fun,model,tuning,tem,ITER=20,S=20,C0=2){
requireNamespace("snowfall")
requireNamespace("Matrix")
#require(snowfall)
#require(Matrix)
n = nrow(X)
p = ncol(X)
y = y - mean(y)
sfInit = snowfall::sfInit
sfLibrary = snowfall::sfLibrary
sfExportAll = snowfall::sfExportAll... |
setwd("/home/marco/Documentos/BEDU/modulo2/sesion2/postwork/files")
# Importa los datos de soccer de las temporadas 2017/2018, 2018/2019 y 2019/2020
# de la primera división de la liga española a R,los datos los puedes encontrar en el
# siguiente enlace: https://www.football-data.co.uk/spainm.php
division17 <- read... | /Módulo 2/Sesion2/postworkdos.R | permissive | angelvegamtz/BEDU-Data-Science- | R | false | false | 1,697 | r | setwd("/home/marco/Documentos/BEDU/modulo2/sesion2/postwork/files")
# Importa los datos de soccer de las temporadas 2017/2018, 2018/2019 y 2019/2020
# de la primera división de la liga española a R,los datos los puedes encontrar en el
# siguiente enlace: https://www.football-data.co.uk/spainm.php
division17 <- read... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.