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 |
|---|---|---|---|---|---|---|---|---|---|
##' Get counties in a state
##'
##' This function is a wrapper for the Local.getCounties() method of the PVS API Local class which returns a list of counties in a state. The function sends a request with this method to the PVS API for all state IDs given as a function input, extracts the XML values from the returned X... | /R/Local.getCounties.R | no_license | decktools/pvsR | R | false | false | 1,974 | r | ##' Get counties in a state
##'
##' This function is a wrapper for the Local.getCounties() method of the PVS API Local class which returns a list of counties in a state. The function sends a request with this method to the PVS API for all state IDs given as a function input, extracts the XML values from the returned X... |
## Put comments here that give an overall description of what your
## functions do
###makeCacheMatrix creates an specialmatrix object that stores the matrix and possibly its inverse for caching
## Write a short comment describing this function
###Creates a matrix object that can store its inverse for caching
makeCacheM... | /cachematrix.R | no_license | mceze/ProgrammingAssignment2 | R | false | false | 961 | r | ## Put comments here that give an overall description of what your
## functions do
###makeCacheMatrix creates an specialmatrix object that stores the matrix and possibly its inverse for caching
## Write a short comment describing this function
###Creates a matrix object that can store its inverse for caching
makeCacheM... |
\alias{gtkLabelGetJustify}
\name{gtkLabelGetJustify}
\title{gtkLabelGetJustify}
\description{Returns the justification of the label. See \code{\link{gtkLabelSetJustify}}.}
\usage{gtkLabelGetJustify(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkLabel}}] a \code{\link{GtkLabel}}}}
\value{[\code{\link{GtkJusti... | /man/gtkLabelGetJustify.Rd | no_license | cran/RGtk2.10 | R | false | false | 436 | rd | \alias{gtkLabelGetJustify}
\name{gtkLabelGetJustify}
\title{gtkLabelGetJustify}
\description{Returns the justification of the label. See \code{\link{gtkLabelSetJustify}}.}
\usage{gtkLabelGetJustify(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkLabel}}] a \code{\link{GtkLabel}}}}
\value{[\code{\link{GtkJusti... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bulk-operation.R
\name{sf_batch_details_bulk}
\alias{sf_batch_details_bulk}
\title{Returning the Details of a Batch in a Bulk API Job}
\usage{
sf_batch_details_bulk(
job_id,
batch_id,
api_type = c("Bulk 1.0"),
verbose = FALSE
)
}
\arg... | /man/sf_batch_details_bulk.Rd | permissive | mjvtnm/salesforcer | R | false | true | 1,724 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bulk-operation.R
\name{sf_batch_details_bulk}
\alias{sf_batch_details_bulk}
\title{Returning the Details of a Batch in a Bulk API Job}
\usage{
sf_batch_details_bulk(
job_id,
batch_id,
api_type = c("Bulk 1.0"),
verbose = FALSE
)
}
\arg... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pinpoint_operations.R
\name{pinpoint_update_endpoints_batch}
\alias{pinpoint_update_endpoints_batch}
\title{Use to update a batch of endpoints}
\usage{
pinpoint_update_endpoints_batch(ApplicationId, EndpointBatchRequest)
}
\arguments{
\item{A... | /cran/paws.customer.engagement/man/pinpoint_update_endpoints_batch.Rd | permissive | peoplecure/paws | R | false | true | 1,796 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pinpoint_operations.R
\name{pinpoint_update_endpoints_batch}
\alias{pinpoint_update_endpoints_batch}
\title{Use to update a batch of endpoints}
\usage{
pinpoint_update_endpoints_batch(ApplicationId, EndpointBatchRequest)
}
\arguments{
\item{A... |
setwd("D:/Documents/Training/Coursera/Data Science/Exploratory Data Analysis")
# Read data
dataAll <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
# Extract data falling in date ... | /plot3.R | no_license | Col198/coursera_exploratory_data_analysis | R | false | false | 1,038 | r | setwd("D:/Documents/Training/Coursera/Data Science/Exploratory Data Analysis")
# Read data
dataAll <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
# Extract data falling in date ... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{getCovariateIds}
\alias{getCovariateIds}
\title{Get covariate identifiers}
\usage{
getCovariateIds(object)
}
\arguments{
\item{object}{An OHDSI Cyclops data object}
}
\description{
\code{getCovariateIds} returns a vector of integer covariate identifiers in an O... | /man/getCovariateIds.Rd | no_license | testdev123org/Cyclops | R | false | false | 348 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{getCovariateIds}
\alias{getCovariateIds}
\title{Get covariate identifiers}
\usage{
getCovariateIds(object)
}
\arguments{
\item{object}{An OHDSI Cyclops data object}
}
\description{
\code{getCovariateIds} returns a vector of integer covariate identifiers in an O... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/googleAuthR_generator.R
\name{doHttrRequest}
\alias{doHttrRequest}
\title{Get URL content based on if its Shiny or local}
\usage{
doHttrRequest(url, shiny_access_token = NULL, request_type = "GET",
the_body = NULL)
}
\arguments{
\it... | /man/doHttrRequest.Rd | no_license | gofullthrottle/googleAuthR | R | false | false | 788 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/googleAuthR_generator.R
\name{doHttrRequest}
\alias{doHttrRequest}
\title{Get URL content based on if its Shiny or local}
\usage{
doHttrRequest(url, shiny_access_token = NULL, request_type = "GET",
the_body = NULL)
}
\arguments{
\it... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shinydrawr.R
\name{shinydrawrUI}
\alias{shinydrawrUI}
\title{Make a you draw it line chart in the style of this [New York Times article](https://www.nytimes.com/interactive/2017/01/15/us/politics/you-draw-obama-legacy.html?mtrref=undefined&gw... | /man/shinydrawrUI.Rd | no_license | ijlyttle/shinysense | R | false | true | 1,146 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shinydrawr.R
\name{shinydrawrUI}
\alias{shinydrawrUI}
\title{Make a you draw it line chart in the style of this [New York Times article](https://www.nytimes.com/interactive/2017/01/15/us/politics/you-draw-obama-legacy.html?mtrref=undefined&gw... |
# 在R中使用正则表达式的例子
word <- c('abc noboby@stat.berkeley.edu','text with no email','first me@mything.com also you@yourspace.com')
pattern <- '[-A-Za-z0-9_.%]+@[-A-Za-z0-9_.%]+\\.[A-Za-z]+'
(gregout <- gregexpr(pattern,word))
substr(word[1],gregout[[1]],gregout[[1]]+attr(gregout[[1]],'match.length')-1)
getcontent <- functio... | /movie.R | no_license | aigncy/R_code | R | false | false | 1,712 | r | # 在R中使用正则表达式的例子
word <- c('abc noboby@stat.berkeley.edu','text with no email','first me@mything.com also you@yourspace.com')
pattern <- '[-A-Za-z0-9_.%]+@[-A-Za-z0-9_.%]+\\.[A-Za-z]+'
(gregout <- gregexpr(pattern,word))
substr(word[1],gregout[[1]],gregout[[1]]+attr(gregout[[1]],'match.length')-1)
getcontent <- functio... |
# Linear Regression
library(Ecdat)
library(data.table)
comp <- data.table(Computers)
# Using R (To Eventually Compare the Output)
fit <- lm(price ~ ., data = comp)
summary(fit)
# My Own Version
# Beta = ((X'X)^-1) X'Y
X = as.matrix(comp[, -"price"])
# Transform Factors into dummy variables
# Define function
get... | /regression.R | no_license | vviers/ML-tutorials | R | false | false | 1,214 | r | # Linear Regression
library(Ecdat)
library(data.table)
comp <- data.table(Computers)
# Using R (To Eventually Compare the Output)
fit <- lm(price ~ ., data = comp)
summary(fit)
# My Own Version
# Beta = ((X'X)^-1) X'Y
X = as.matrix(comp[, -"price"])
# Transform Factors into dummy variables
# Define function
get... |
#!/usr/bin/env Rscript
# towards 1: add print statement '__numeric__'
outputdir <- 'out/ctax'
excelfile <- 'out/ctax/bugs.xlsx'
ppp <- 8
n_col <- 2
mapfile <- "data/map.txt"
groupfile <- "data/group"
samplebytax <- "out/samplebytax/"
taxpattern <- "otu_tax_L.*.txt$"
# # # # # # # # # # # # # #... | /process_biom/plot.R | no_license | husenzhang/makethings | R | false | false | 1,734 | r | #!/usr/bin/env Rscript
# towards 1: add print statement '__numeric__'
outputdir <- 'out/ctax'
excelfile <- 'out/ctax/bugs.xlsx'
ppp <- 8
n_col <- 2
mapfile <- "data/map.txt"
groupfile <- "data/group"
samplebytax <- "out/samplebytax/"
taxpattern <- "otu_tax_L.*.txt$"
# # # # # # # # # # # # # #... |
/samples/replication+appendix.r | no_license | gpfarina/sym-core-R | R | false | false | 26,854 | r | ||
## Megan Cattau
## Earth Lab, Project Forest
## Contact info: megan.cattau@gmail.com or megan.cattau@colorado.edu, 706.338.9436
## Project: Disturbance Interactions in the Southern Rockies
## Project overview: Forest transitions (i.e., Changes in ecosystem type / forest composition and structure) as a function of distu... | /Transitions.Rd | no_license | mcattau/code_efficiency | R | false | false | 84,086 | rd | ## Megan Cattau
## Earth Lab, Project Forest
## Contact info: megan.cattau@gmail.com or megan.cattau@colorado.edu, 706.338.9436
## Project: Disturbance Interactions in the Southern Rockies
## Project overview: Forest transitions (i.e., Changes in ecosystem type / forest composition and structure) as a function of distu... |
# Load and clean 11-year average data
lead11 <- read.csv("~/Downloads/lead_11.csv", header=TRUE, sep=",", stringsAsFactors=FALSE, na.strings="")
lead11[,3] <- as.numeric(lead11[,3])
lead11[4] <- lead11[2]
colnames(lead11)[4] <- colnames(lead11)[2]
lead11[2] <- 1950-lead11[1]
colnames(lead11) <- c("Years bp", "Year", "1... | /lead_pollution.R | no_license | Jmuccigr/blog | R | false | false | 1,887 | r | # Load and clean 11-year average data
lead11 <- read.csv("~/Downloads/lead_11.csv", header=TRUE, sep=",", stringsAsFactors=FALSE, na.strings="")
lead11[,3] <- as.numeric(lead11[,3])
lead11[4] <- lead11[2]
colnames(lead11)[4] <- colnames(lead11)[2]
lead11[2] <- 1950-lead11[1]
colnames(lead11) <- c("Years bp", "Year", "1... |
# Lista 08
# Professor: Davi Moreira
# Disciplina: Análise de Dados
# Aluna: Maria Eduarda R. N. Lessa
# Questão 2:
## 5.5.1.1:
# Instalar pacotes necessários caso estes ainda não tenham sido:
if(require(tidyverse)==F)install.packages('tidyverse');require(tidyverse)
if(require(rvest)==F)install.pa... | /lista_08_MariaEduarda_Lessa.R | no_license | lessaeduarda/respostas_lista_08 | R | false | false | 11,229 | r |
# Lista 08
# Professor: Davi Moreira
# Disciplina: Análise de Dados
# Aluna: Maria Eduarda R. N. Lessa
# Questão 2:
## 5.5.1.1:
# Instalar pacotes necessários caso estes ainda não tenham sido:
if(require(tidyverse)==F)install.packages('tidyverse');require(tidyverse)
if(require(rvest)==F)install.pa... |
#načteme soubor data.txt
data = read.table("data.txt", header = TRUE, sep = "")
# máme zadanou regresní fci ale tu musíme zlogarytmovat
# po úpravě vznikne: log(Output) = B1*log(LPrice) + B2*log(KPrice) + B3*log(FPrice) + (B0 + epsilon)*log(u)
# přiřadíme proměnné k datovému souboru
LPrice = data$LPrice
KPrice = dat... | /home_asigment2.R | no_license | charouzic/home_assignment2 | R | false | false | 1,380 | r | #načteme soubor data.txt
data = read.table("data.txt", header = TRUE, sep = "")
# máme zadanou regresní fci ale tu musíme zlogarytmovat
# po úpravě vznikne: log(Output) = B1*log(LPrice) + B2*log(KPrice) + B3*log(FPrice) + (B0 + epsilon)*log(u)
# přiřadíme proměnné k datovému souboru
LPrice = data$LPrice
KPrice = dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brainvr-getters.R
\name{get_trial_event_times}
\alias{get_trial_event_times}
\title{Returns times of certain events happening in particular trials}
\usage{
get_trial_event_times(obj, iTrial, event_name = "", ...)
}
\arguments{
\item{iTrial}{v... | /man/get_trial_event_times.Rd | no_license | BrainVR/brainvr-reader | R | false | true | 475 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brainvr-getters.R
\name{get_trial_event_times}
\alias{get_trial_event_times}
\title{Returns times of certain events happening in particular trials}
\usage{
get_trial_event_times(obj, iTrial, event_name = "", ...)
}
\arguments{
\item{iTrial}{v... |
## This file was created by Daniel Bondeson on 27 September 2018 for the
## Programming in R: Programming Assignment 2: Lexical Scoping.
## The goal of this exercise was to generate two functions which receive a matrix,
## check to see if that matrix has been solved before, and then either return
## the previous ... | /cachematrix.R | no_license | dbondeson/ProgrammingAssignment2 | R | false | false | 2,049 | r | ## This file was created by Daniel Bondeson on 27 September 2018 for the
## Programming in R: Programming Assignment 2: Lexical Scoping.
## The goal of this exercise was to generate two functions which receive a matrix,
## check to see if that matrix has been solved before, and then either return
## the previous ... |
metabricENetCoxModelMeanTopvaringMC_unpenalty <- setRefClass(Class = "metabricENetCoxModelMeanTopvaringMC_unpenalty",
contains="PredictiveModel",
fields=c("model","childcla... | /survival_analysis/IterCV_Gaurav/MC_unpenalty/metabricENetCoxModelMeanTopvaringMC_unpenalty.R | no_license | insockjang/DrugResponse | R | false | false | 10,342 | r |
metabricENetCoxModelMeanTopvaringMC_unpenalty <- setRefClass(Class = "metabricENetCoxModelMeanTopvaringMC_unpenalty",
contains="PredictiveModel",
fields=c("model","childcla... |
# Swaggy Jenkins
#
# Jenkins API clients generated from Swagger / Open API specification
#
# OpenAPI spec version: 1.0.0
# Contact: blah@cliffano.com
# Generated by: https://openapi-generator.tech
#' NullSCM Class
#'
#' @field _class
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Nul... | /clients/r/generated/R/NullSCM.r | permissive | rahulyhg/swaggy-jenkins | R | false | false | 1,248 | r | # Swaggy Jenkins
#
# Jenkins API clients generated from Swagger / Open API specification
#
# OpenAPI spec version: 1.0.0
# Contact: blah@cliffano.com
# Generated by: https://openapi-generator.tech
#' NullSCM Class
#'
#' @field _class
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Nul... |
library(shiny)
ui <- fluidPage(
fluidRow(
column(3),
column(5, sliderInput(inputId = "num",
label = "Choose a number",
value = 25, min = 1, max = 100))
),
fluidRow(
column(4, offset = 8,
plotOutput("hist")
)
)
)
server <- functio... | /16_shiny/10_row_layout.R | no_license | mjllanosc/Rcourse | R | false | false | 439 | r | library(shiny)
ui <- fluidPage(
fluidRow(
column(3),
column(5, sliderInput(inputId = "num",
label = "Choose a number",
value = 25, min = 1, max = 100))
),
fluidRow(
column(4, offset = 8,
plotOutput("hist")
)
)
)
server <- functio... |
# ---------------------------------------------------#
#
# Simulate gene expression data to test TPOT template
#
# ---------------------------------------------------#
#
# Subset sizes are simulated to match the distribution
# of 23 module sizes in "Identification and replication of
# RNA-Seq gene network module... | /simulation/inte1.R | no_license | stockedge/tpot-fss | R | false | false | 3,427 | r | # ---------------------------------------------------#
#
# Simulate gene expression data to test TPOT template
#
# ---------------------------------------------------#
#
# Subset sizes are simulated to match the distribution
# of 23 module sizes in "Identification and replication of
# RNA-Seq gene network module... |
# test_igvR.R
#------------------------------------------------------------------------------------------------------------------------
library(RUnit)
library(igvR)
library(GenomicRanges)
library(VariantAnnotation)
#--------------------------------------------------------------------------------------------------------... | /inst/browserCode/testImmediate/test_simple.R | permissive | nathanweeks/igvR | R | false | false | 821 | r | # test_igvR.R
#------------------------------------------------------------------------------------------------------------------------
library(RUnit)
library(igvR)
library(GenomicRanges)
library(VariantAnnotation)
#--------------------------------------------------------------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{confint.spbp}
\alias{confint.spbp}
\title{Confidence intervals for the regression coefficients}
\usage{
\method{confint}{spbp}(spbp, level = 0.95, ...)
}
\arguments{
\item{spbp}{an object of the class spbp}
\item{level}{the con... | /fuzzedpackages/spsurv/man/confint-methods.Rd | no_license | akhikolla/testpackages | R | false | true | 554 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{confint.spbp}
\alias{confint.spbp}
\title{Confidence intervals for the regression coefficients}
\usage{
\method{confint}{spbp}(spbp, level = 0.95, ...)
}
\arguments{
\item{spbp}{an object of the class spbp}
\item{level}{the con... |
v1 = c(1.1,-7.1,5.4,-2.7)
v2 = c(-3.6,4.1,5.8,-8.0)
mean(c(sum(round(abs(v1))),sum(round(abs(v2)))))
sort(rep(seq(8,2,by=-2),times = 2))
sort(c(8,6,4,2,8,6,4,2),decreasing=TRUE)
is.list(v1)
li = as.list(v1)
is.list(li)
#unlist(li)
append(li,rev(li))
# regular expression
animals <- c("cat","mouse","impala","a... | /utilities.R | no_license | xuelian11/intro_R | R | false | false | 3,240 | r | v1 = c(1.1,-7.1,5.4,-2.7)
v2 = c(-3.6,4.1,5.8,-8.0)
mean(c(sum(round(abs(v1))),sum(round(abs(v2)))))
sort(rep(seq(8,2,by=-2),times = 2))
sort(c(8,6,4,2,8,6,4,2),decreasing=TRUE)
is.list(v1)
li = as.list(v1)
is.list(li)
#unlist(li)
append(li,rev(li))
# regular expression
animals <- c("cat","mouse","impala","a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/return_error.R
\name{return_error}
\alias{return_error}
\title{Compute forecast error}
\usage{
return_error(
data_results,
data_test = NULL,
test_indices = NULL,
metrics = c("mae", "mape", "mdape", "smape"),
models = NULL,
horizon... | /man/return_error.Rd | no_license | nguyenkaos/forecastML | R | false | true | 5,226 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/return_error.R
\name{return_error}
\alias{return_error}
\title{Compute forecast error}
\usage{
return_error(
data_results,
data_test = NULL,
test_indices = NULL,
metrics = c("mae", "mape", "mdape", "smape"),
models = NULL,
horizon... |
#' Sort data by variables
#'
#' Sorts a dataframe by one or more variables, and returns the result
#' along with tidyverse code used to generate it.
#'
#' @param .data a dataframe to sort
#' @param vars a character vector of variable names to sort by
#' @param asc logical, same length as \code{vars}.
#' ... | /R/sort_data.R | no_license | cran/iNZightTools | R | false | false | 1,345 | r | #' Sort data by variables
#'
#' Sorts a dataframe by one or more variables, and returns the result
#' along with tidyverse code used to generate it.
#'
#' @param .data a dataframe to sort
#' @param vars a character vector of variable names to sort by
#' @param asc logical, same length as \code{vars}.
#' ... |
mm.fsreg <- function(target, dataset, ini = NULL, threshold = 0.05, wei = NULL, stopping = "BIC", tol = 2, ncores = 1 ) {
###### If there is an initial set of variables do this function
if ( !is.null(ini) ) {
result <- mm.fsreg_2(target, dataset, iniset = ini, threshold = threshold, wei = NULL, stopp... | /R/mm.fsreg.R | no_license | cran/MXM | R | false | false | 9,348 | r | mm.fsreg <- function(target, dataset, ini = NULL, threshold = 0.05, wei = NULL, stopping = "BIC", tol = 2, ncores = 1 ) {
###### If there is an initial set of variables do this function
if ( !is.null(ini) ) {
result <- mm.fsreg_2(target, dataset, iniset = ini, threshold = threshold, wei = NULL, stopp... |
#'Find the zeros of a function of two or more variables
#'
#'Compute numerically zeros of a function of two or more variables.
#'All free variables (all but the variable on the right side) named in the expression must be assigned
#' a value via `\ldots`
#'
#'@param ... arguments for values NOTE: if the system has more... | /R/findZerosMult.R | no_license | jeyu22/mosaic | R | false | false | 11,450 | r | #'Find the zeros of a function of two or more variables
#'
#'Compute numerically zeros of a function of two or more variables.
#'All free variables (all but the variable on the right side) named in the expression must be assigned
#' a value via `\ldots`
#'
#'@param ... arguments for values NOTE: if the system has more... |
# This file is part of logeasier R package. https://github.com/bthieurmel/logeasier
#
# logeasier 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
# (at your option) any late... | /R/extract_Informations.R | no_license | bthieurmel/logeasier | R | false | false | 6,457 | r | # This file is part of logeasier R package. https://github.com/bthieurmel/logeasier
#
# logeasier 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
# (at your option) any late... |
library(tidyverse)
library(rayshader)
library(data.table)
headers <- fread("headers.txt", sep = "|", header = F)
colnames <- pluck(transpose(headers), 1)
aqsn <- fread("Acquisition_2006Q2.txt", sep = "|", header = FALSE)
colnames(aqsn) <- colnames
levels <- aqsn %>%
ggplot(aes(x = fico_bo, y = d_ratiob)) +
st... | /plot-fico-dti.R | no_license | saadaslam/fm-rayshader-use-case | R | false | false | 675 | r | library(tidyverse)
library(rayshader)
library(data.table)
headers <- fread("headers.txt", sep = "|", header = F)
colnames <- pluck(transpose(headers), 1)
aqsn <- fread("Acquisition_2006Q2.txt", sep = "|", header = FALSE)
colnames(aqsn) <- colnames
levels <- aqsn %>%
ggplot(aes(x = fico_bo, y = d_ratiob)) +
st... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{extract_trade_data_oil_coal}
\alias{extract_trade_data_oil_coal}
\title{Reads oil and gas trade data from BP Database}
\usage{
extract_trade_data_oil_coal(sheet, prefix = "Oil - ")
}
\arguments{
\item{sheet}{Excel sheet with... | /man/extract_trade_data_oil_coal.Rd | no_license | inwe-boku/irenabpdata | R | false | true | 618 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{extract_trade_data_oil_coal}
\alias{extract_trade_data_oil_coal}
\title{Reads oil and gas trade data from BP Database}
\usage{
extract_trade_data_oil_coal(sheet, prefix = "Oil - ")
}
\arguments{
\item{sheet}{Excel sheet with... |
#地図画像のトリミング(古い地図の装飾向け)
library("jpeg")
#df <- read.csv("out_WestGunma.json.csv", header = FALSE)
path <- "C:/your-path"
flist <- list.files(paste(path, "set", sep="/"), recursive=TRUE, pattern="jpg", full.names=TRUE)
for(name in flist){
tryCatch( {
#name = "C:/your-path/set/1376448/image.jpg"
print(name... | /tool/trimming.R | no_license | mghs15/papermapOnWebmap | R | false | false | 5,015 | r | #地図画像のトリミング(古い地図の装飾向け)
library("jpeg")
#df <- read.csv("out_WestGunma.json.csv", header = FALSE)
path <- "C:/your-path"
flist <- list.files(paste(path, "set", sep="/"), recursive=TRUE, pattern="jpg", full.names=TRUE)
for(name in flist){
tryCatch( {
#name = "C:/your-path/set/1376448/image.jpg"
print(name... |
library(data.table)
fileurl3a = 'https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv'
dst3a = 'getwd()'
fileurl3b = 'https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FEDSTATS_Country.csv'
dst3b = 'getwd()'
download.file(fileurl3a, dst3a, method = 'curl')
download.file(fileurl3b, dst3b, method = ... | /week3/q3.R | no_license | qRodp/GettingAndCleaningData | R | false | false | 797 | r | library(data.table)
fileurl3a = 'https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv'
dst3a = 'getwd()'
fileurl3b = 'https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FEDSTATS_Country.csv'
dst3b = 'getwd()'
download.file(fileurl3a, dst3a, method = 'curl')
download.file(fileurl3b, dst3b, method = ... |
#///////////////////////////#
# PROJECT 1 #
#///////////////////////////#
# Import csv data
t01<-read.csv("~/Desktop/Project1/data/demographic/01.csv", head=TRUE, sep=";", stringsAsFactors=FALSE)
AREAS<-read.csv("~/Desktop/Project1/data/areas.csv", head=TRUE, sep=",", stringsAsFactors=FALSE)
# Clean t... | /Project1/Project1.R | no_license | teopalva/sweet-home-chicago | R | false | false | 1,587 | r | #///////////////////////////#
# PROJECT 1 #
#///////////////////////////#
# Import csv data
t01<-read.csv("~/Desktop/Project1/data/demographic/01.csv", head=TRUE, sep=";", stringsAsFactors=FALSE)
AREAS<-read.csv("~/Desktop/Project1/data/areas.csv", head=TRUE, sep=",", stringsAsFactors=FALSE)
# Clean t... |
#load xmsPANDA v1.0.7.1
library(xmsPANDA)
feature_table_file<-"~/PANDA_Training/Mzmine_smokers_nonsmokers_PANDA.txt"
class_labels_file<-"~/PANDA_Training/classlabels.txt"
outloc<-"~/PANDA_Training/testpandav1.0.7.1/"
#start
demetabs_res<-diffexp(
#1) arguments for input files
feature_tab... | /examples_and_manual/xmsPANDA_example_script.R | no_license | nicolecarlson/xmsPANDA | R | false | false | 4,625 | r |
#load xmsPANDA v1.0.7.1
library(xmsPANDA)
feature_table_file<-"~/PANDA_Training/Mzmine_smokers_nonsmokers_PANDA.txt"
class_labels_file<-"~/PANDA_Training/classlabels.txt"
outloc<-"~/PANDA_Training/testpandav1.0.7.1/"
#start
demetabs_res<-diffexp(
#1) arguments for input files
feature_tab... |
#' View NWM Model Metadata
#'
#' @param config \code{character} model configuration
#' @param type \code{character} model type
#'
#' @return prints a description to the console
#' @export
#'
#' @examples
#' \dontrun{
#' look("short_range")
#' look("short_range", "channel")
#' }
#'
#' @author Mike Johnson
look = fun... | /R/utility_look.R | permissive | mikejohnson51/NWM | R | false | false | 3,101 | r | #' View NWM Model Metadata
#'
#' @param config \code{character} model configuration
#' @param type \code{character} model type
#'
#' @return prints a description to the console
#' @export
#'
#' @examples
#' \dontrun{
#' look("short_range")
#' look("short_range", "channel")
#' }
#'
#' @author Mike Johnson
look = fun... |
library(shiny)
library(parcoords)
library(dplyr)
#load iris data set as default
default<-iris
shinyServer(function(input, output, session){
#load user data file
theData<-reactive({
inFile <- input$file1
if (is.null(inFile)){d<-default}
else{d<-read.csv(inFile$datapath, header=input$header, sep=inpu... | /server.R | no_license | jinhseok/parcoordsPlotter | R | false | false | 1,941 | r | library(shiny)
library(parcoords)
library(dplyr)
#load iris data set as default
default<-iris
shinyServer(function(input, output, session){
#load user data file
theData<-reactive({
inFile <- input$file1
if (is.null(inFile)){d<-default}
else{d<-read.csv(inFile$datapath, header=input$header, sep=inpu... |
#' @return If flatten is TRUE, and sources_only = TRUE a data frame of:
#' \item{category}{numeric}
#' \item{code}{numeric}
#' \item{content_type}{factor}
#' \item{created}{factor}
#' \item{credits}{numeric}
#' \item{description}{factor}
#' \item{file_name}{factor}
#' \item{md5}{factor}
#' \item{name}{factor}
#' \item{... | /bigml/man-roxygen/source_list_return.R | no_license | elcovi/bigml-r | R | false | false | 1,158 | r | #' @return If flatten is TRUE, and sources_only = TRUE a data frame of:
#' \item{category}{numeric}
#' \item{code}{numeric}
#' \item{content_type}{factor}
#' \item{created}{factor}
#' \item{credits}{numeric}
#' \item{description}{factor}
#' \item{file_name}{factor}
#' \item{md5}{factor}
#' \item{name}{factor}
#' \item{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/htmlTable_helpers_prepareColors.R
\name{prPrepareColors}
\alias{prPrepareColors}
\title{Prepares the alternating colors}
\usage{
prPrepareColors(clr, n = NULL, ng = NULL, gtxt)
}
\arguments{
\item{clr}{The colors}
\item{n}{The number of rows... | /man/prPrepareColors.Rd | no_license | gforge/htmlTable | R | false | true | 584 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/htmlTable_helpers_prepareColors.R
\name{prPrepareColors}
\alias{prPrepareColors}
\title{Prepares the alternating colors}
\usage{
prPrepareColors(clr, n = NULL, ng = NULL, gtxt)
}
\arguments{
\item{clr}{The colors}
\item{n}{The number of rows... |
#libraries
library(glmnet)
#OS Lasso function
OS.lasso<- function(X,Y,lambda.lasso.try,lambda.gamma.try){
n<-length(Y)
Y.orgn<- Y
model.for.cv<- cv.glmnet(X, Y, family="gaussian",lambda=lambda.lasso.try)
lambda.lasso.opt<- model.for.cv$lambda.min
model.est<- glmnet(X,Y,family="gaussi... | /Model_Application/Single_Dataset/OS_Lasso.R | no_license | multach87/Dissertation | R | false | false | 3,975 | r | #libraries
library(glmnet)
#OS Lasso function
OS.lasso<- function(X,Y,lambda.lasso.try,lambda.gamma.try){
n<-length(Y)
Y.orgn<- Y
model.for.cv<- cv.glmnet(X, Y, family="gaussian",lambda=lambda.lasso.try)
lambda.lasso.opt<- model.for.cv$lambda.min
model.est<- glmnet(X,Y,family="gaussi... |
## ----echo=FALSE----------------------------------------------------------
# NDVI data preprocessing
# Author: John M
# International Center for Tropical Agriculture (CIAT)
# Last modified: March 1 2018
setwd("C:/Users/computation/Desktop/Final_NDVI_27_Mar_18")
## --------------------------------------------... | /Time_series_analysis_of_NDVI/00_NDVI_data_preprocessing_21Mar18_EF.R | no_license | Chimbioputo1980/LDN_Namibia | R | false | false | 2,752 | r | ## ----echo=FALSE----------------------------------------------------------
# NDVI data preprocessing
# Author: John M
# International Center for Tropical Agriculture (CIAT)
# Last modified: March 1 2018
setwd("C:/Users/computation/Desktop/Final_NDVI_27_Mar_18")
## --------------------------------------------... |
# WARNING: if run from rstudio, memory is not released and tends to crash R/Rstudio
# If ran from Rstudio make sure to resart R after script is finished
# Better run as Rscript from command line
# Execute with Rscript on command line (HMDB_selection.txt contains a list of HMDB accession numbers)
# All files (xml, HMD... | /xml_hmdb_taxonomy.R | no_license | smvanliempd/HMDB_XML_search | R | false | false | 5,225 | r |
# WARNING: if run from rstudio, memory is not released and tends to crash R/Rstudio
# If ran from Rstudio make sure to resart R after script is finished
# Better run as Rscript from command line
# Execute with Rscript on command line (HMDB_selection.txt contains a list of HMDB accession numbers)
# All files (xml, HMD... |
#
# Copyright (c) 2015 Wolfgang Huber
# based on `DOI: 10.12688/f1000research.7035.1 <http://www.doi.org/10.12688/f1000research.7035.1>`
# Copyright (c) 2016 BeDataDriven B.V.
# License: Artistic 2.0
##### set up session #####
set.seed(1000)
DEBUGGING <- FALSE
##### loading packages #####
library("Rsamtools")
librar... | /bioinformatics/rnaseq_deseq2/rnaseq_deseq2.R | permissive | bedatadriven/renjin-benchmarks | R | false | false | 12,516 | r | #
# Copyright (c) 2015 Wolfgang Huber
# based on `DOI: 10.12688/f1000research.7035.1 <http://www.doi.org/10.12688/f1000research.7035.1>`
# Copyright (c) 2016 BeDataDriven B.V.
# License: Artistic 2.0
##### set up session #####
set.seed(1000)
DEBUGGING <- FALSE
##### loading packages #####
library("Rsamtools")
librar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ncaa_scrape.R
\name{ncaa_scrape}
\alias{ncaa_scrape}
\title{Scrape NCAA baseball data (Division I, II, and III)}
\usage{
ncaa_scrape(teamid, year, type)
}
\arguments{
\item{teamid}{The numerical ID that the NCAA website uses to identify a tea... | /man/ncaa_scrape.Rd | no_license | Danny1127/baseballr | R | false | true | 906 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ncaa_scrape.R
\name{ncaa_scrape}
\alias{ncaa_scrape}
\title{Scrape NCAA baseball data (Division I, II, and III)}
\usage{
ncaa_scrape(teamid, year, type)
}
\arguments{
\item{teamid}{The numerical ID that the NCAA website uses to identify a tea... |
library(maps)
library(mapdata)
# saving a map from package 'maps' with Mercator projection
map("world", projection = "mercator")
if (!file.exists("worldRmapMercator.dat")) {
GpMapsr2gnu(map("world", projection = "mercator", plot = FALSE), "worldRmapMercator.dat")
}
Gprun("unset key; unset tics\nplot \"worldRmapMerc... | /demo/maps2.R | no_license | cran/Rgnuplot | R | false | false | 6,567 | r | library(maps)
library(mapdata)
# saving a map from package 'maps' with Mercator projection
map("world", projection = "mercator")
if (!file.exists("worldRmapMercator.dat")) {
GpMapsr2gnu(map("world", projection = "mercator", plot = FALSE), "worldRmapMercator.dat")
}
Gprun("unset key; unset tics\nplot \"worldRmapMerc... |
#' Load a plate layout file and a file specifying the machine runs
#'
#' See the provided example files for the layout and machine run file formats.
#' @title Create a well data frame
#' @param plateLayoutFile a file containing the plate layout.
#' The file must contain a column named \code{plate} and a column named \... | /R/wellDataFrame.R | no_license | SamGG/cellGrowth | R | false | false | 1,694 | r | #' Load a plate layout file and a file specifying the machine runs
#'
#' See the provided example files for the layout and machine run file formats.
#' @title Create a well data frame
#' @param plateLayoutFile a file containing the plate layout.
#' The file must contain a column named \code{plate} and a column named \... |
#PROJECT4
#setseed
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
set.seed(100)
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Install packages
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if (!require("pacman")) install.packages("pacman")
... | /lendclub.R | no_license | Shimura233/machine-learning-mini-project | R | false | false | 8,324 | r |
#PROJECT4
#setseed
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
set.seed(100)
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Install packages
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if (!require("pacman")) install.packages("pacman")
... |
# Class-Individuals.R
# Part of the SEHmodel package.
#
# Copyright (C) 2015 Melen Leclerc <melen.leclerc@rennes.inra.fr>
# Jean-Francois Rey <jean-francois.rey@paca.inra.fr>
# Samuel Soubeyrand <Samuel.Soubeyrand@avignon.inra.fr>
# E... | /SEHmodel/R/Class-Individuals.R | no_license | ingted/R-Examples | R | false | false | 4,111 | r | # Class-Individuals.R
# Part of the SEHmodel package.
#
# Copyright (C) 2015 Melen Leclerc <melen.leclerc@rennes.inra.fr>
# Jean-Francois Rey <jean-francois.rey@paca.inra.fr>
# Samuel Soubeyrand <Samuel.Soubeyrand@avignon.inra.fr>
# E... |
\name{GShell.getSwing}
\alias{GShell.getSwing}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
GShell.getSwing
}
\description{
Returns the SwingBuilder instance associated with GShell.
}
\usage{
GShell.getSwing()
}
\author{
%% ~~who you are~~
Malcolm Lidierth
}
\examples{
example <-function... | /Waterloo_For_R/gshell/man/GShell.getSwing.Rd | no_license | irondukepublishing/waterloo | R | false | false | 535 | rd | \name{GShell.getSwing}
\alias{GShell.getSwing}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
GShell.getSwing
}
\description{
Returns the SwingBuilder instance associated with GShell.
}
\usage{
GShell.getSwing()
}
\author{
%% ~~who you are~~
Malcolm Lidierth
}
\examples{
example <-function... |
ny = read.csv('new_york_city.csv')
wash = read.csv('washington.csv')
chi = read.csv('chicago.csv')
head(ny)
head(wash)
head(chi)
# Your solution code goes here
month <- function(city) {
startDate <-
sapply(strsplit(as.character(city$Start.Time), " "), "[", 1)
#extract month from the datatime
month <- subs... | /Explore_bikeshare_data.r | no_license | NataProtasova/Udacity-programming-for-Data-Science-With-R-Nanodegree | R | false | false | 3,424 | r |
ny = read.csv('new_york_city.csv')
wash = read.csv('washington.csv')
chi = read.csv('chicago.csv')
head(ny)
head(wash)
head(chi)
# Your solution code goes here
month <- function(city) {
startDate <-
sapply(strsplit(as.character(city$Start.Time), " "), "[", 1)
#extract month from the datatime
month <- subs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/waf_operations.R
\name{waf_list_rule_groups}
\alias{waf_list_rule_groups}
\title{This is AWS WAF Classic documentation}
\usage{
waf_list_rule_groups(NextMarker, Limit)
}
\arguments{
\item{NextMarker}{If you specify a value for \code{Limit} an... | /cran/paws.security.identity/man/waf_list_rule_groups.Rd | permissive | TWarczak/paws | R | false | true | 1,873 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/waf_operations.R
\name{waf_list_rule_groups}
\alias{waf_list_rule_groups}
\title{This is AWS WAF Classic documentation}
\usage{
waf_list_rule_groups(NextMarker, Limit)
}
\arguments{
\item{NextMarker}{If you specify a value for \code{Limit} an... |
0a24bbbb0be7f6fbac7f5a90735286a1 mult_bool_matrix_dyn_4_6.sat.qdimacs 7440 60402 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Tentrup/mult-matrix/mult_bool_matrix_dyn_4_6.sat/mult_bool_matrix_dyn_4_6.sat.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 80 | r | 0a24bbbb0be7f6fbac7f5a90735286a1 mult_bool_matrix_dyn_4_6.sat.qdimacs 7440 60402 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/WinsetCreator.R
\name{WinsetCreator}
\alias{WinsetCreator}
\title{Create Winset and Selectorate variables}
\source{
See Bueno de Mesquita Bruce, Alastair Smith, Randolph M. Siverson, and James D. Morrow. 2003. The Logic of Political Survival.... | /man/WinsetCreator.Rd | no_license | xfim/psData | R | false | true | 3,116 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/WinsetCreator.R
\name{WinsetCreator}
\alias{WinsetCreator}
\title{Create Winset and Selectorate variables}
\source{
See Bueno de Mesquita Bruce, Alastair Smith, Randolph M. Siverson, and James D. Morrow. 2003. The Logic of Political Survival.... |
###### Matrix must be of same type -- often numerics
A <- matrix(1:10, nrow=5)
A
B <- matrix(21:30, nrow=5)
C <- matrix(21:40, nrow=2)
B
C
###### Check # of rows/columns in matrix
nrow(A)
ncol(A)
dim(A)
dim(C)
###### Operations you can perform
A
B
A + B # Adding matching row/column combo
A*B # Mult matching row/col... | /Matrices.r | no_license | michelle-bolner/R-Practice | R | false | false | 1,423 | r | ###### Matrix must be of same type -- often numerics
A <- matrix(1:10, nrow=5)
A
B <- matrix(21:30, nrow=5)
C <- matrix(21:40, nrow=2)
B
C
###### Check # of rows/columns in matrix
nrow(A)
ncol(A)
dim(A)
dim(C)
###### Operations you can perform
A
B
A + B # Adding matching row/column combo
A*B # Mult matching row/col... |
#' Aggregate emissions by lumped groups in chemical mechanism
#'
#' @description \code{\link{emis_chem2}} aggregates VOC emissions by chemical mechanism
#' and convert grams to mol.
#'
#' @param df data.frame with emissions including columns "id" and "pol".
#' @param mech Character, "CB4", "CB05", "S99", "S7","CS7", "S... | /R/emis_chem2.R | no_license | cran/vein | R | false | false | 6,378 | r | #' Aggregate emissions by lumped groups in chemical mechanism
#'
#' @description \code{\link{emis_chem2}} aggregates VOC emissions by chemical mechanism
#' and convert grams to mol.
#'
#' @param df data.frame with emissions including columns "id" and "pol".
#' @param mech Character, "CB4", "CB05", "S99", "S7","CS7", "S... |
##############################################
#
# General description:
#
# The following script reads a L1 catalog and creates a separate alignment for
# all reads that overlap the junction.
# Input:
#
# BamFile: path to file that contains mapped reads
# L1TableFileName: path to file that contains L1HS ra... | /Scripts/AlignLocalL1Peaks.R | no_license | hdohna/L1polymORFgit | R | false | false | 14,436 | r | ##############################################
#
# General description:
#
# The following script reads a L1 catalog and creates a separate alignment for
# all reads that overlap the junction.
# Input:
#
# BamFile: path to file that contains mapped reads
# L1TableFileName: path to file that contains L1HS ra... |
theta.ini <-
function(z, X, CorModels, use.nugget,
use.anisotropy, dist.hydro.data, x.dat, y.dat, REs)
{
n.models <- length(CorModels)
var.resid <- mean((z - X %*% mginv(t(X) %*% X) %*% t(X) %*% z)^2)
theta <- NULL
scale <- NULL ## What scale is the parameter on - to simplify back transformation
type <- NUL... | /R/theta.ini.R | no_license | jayverhoef/SSN | R | false | false | 2,808 | r | theta.ini <-
function(z, X, CorModels, use.nugget,
use.anisotropy, dist.hydro.data, x.dat, y.dat, REs)
{
n.models <- length(CorModels)
var.resid <- mean((z - X %*% mginv(t(X) %*% X) %*% t(X) %*% z)^2)
theta <- NULL
scale <- NULL ## What scale is the parameter on - to simplify back transformation
type <- NUL... |
# PDF TO TEXT ============================================================================
#' Converts a PDF to text file
#'
#' @description
#' This function is part of the 'pdf operations' (pop) function set\cr
#' This function converts pdf files into plain text files
#'
#' @param file
#' A PDF file
#'
#' @param outdi... | /R/pdf_functions.R | no_license | M2UCT/RFtex | R | false | false | 1,298 | r | # PDF TO TEXT ============================================================================
#' Converts a PDF to text file
#'
#' @description
#' This function is part of the 'pdf operations' (pop) function set\cr
#' This function converts pdf files into plain text files
#'
#' @param file
#' A PDF file
#'
#' @param outdi... |
source("R_code/libraries.R")
# Functions which take the experimental results and process them so that they can be plotted
# and analysed
# Adding a cost ratio of 0.1 as this is fixed throughout, naming it so it is easy to
# modify when further work is done
costRatio <- 0.1
# Basic functions which combines all of the ... | /R_code/dataProcessor.R | no_license | nandresthio/Bifidelity-Surrogate-Modelling | R | false | false | 6,743 | r | source("R_code/libraries.R")
# Functions which take the experimental results and process them so that they can be plotted
# and analysed
# Adding a cost ratio of 0.1 as this is fixed throughout, naming it so it is easy to
# modify when further work is done
costRatio <- 0.1
# Basic functions which combines all of the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{bambini}
\alias{bambini}
\title{Attitudini e priorita' di bambini delle elementari}
\format{A data frame with 478 rows and 10 variables:
\describe{
\item{Gender}{Sesso}
\item{Grade}{la Classe}
\item{Age}{eta'... | /EsamiR/man/bambini.Rd | no_license | maurizio-rinaldi/Rbook | R | false | true | 1,112 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{bambini}
\alias{bambini}
\title{Attitudini e priorita' di bambini delle elementari}
\format{A data frame with 478 rows and 10 variables:
\describe{
\item{Gender}{Sesso}
\item{Grade}{la Classe}
\item{Age}{eta'... |
## set current directory
setwd("C:/tanvir/Tutorial/")
### download data
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","MyData/exdata_household_power_consumption.zip")
### unzip data
zipF<- "MyData/exdata_household_power_consumption.zip"
outDir<-"MyData/exdata... | /RCode/exdata_assignment1.R | no_license | tanvir073/MyCode | R | false | false | 4,199 | r | ## set current directory
setwd("C:/tanvir/Tutorial/")
### download data
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","MyData/exdata_household_power_consumption.zip")
### unzip data
zipF<- "MyData/exdata_household_power_consumption.zip"
outDir<-"MyData/exdata... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/stat_convenience.R
\name{wmean}
\alias{wmean}
\title{wmean}
\usage{
wmean(x, w = NA)
}
\arguments{
\item{x}{(vector of numerics) The values}
\item{w}{(vector of numerics) The corresponding weights
If NA, then it defaults to... | /stat.convenience/man/wmean.Rd | no_license | gpawlik/con-functions-R | R | false | false | 716 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/stat_convenience.R
\name{wmean}
\alias{wmean}
\title{wmean}
\usage{
wmean(x, w = NA)
}
\arguments{
\item{x}{(vector of numerics) The values}
\item{w}{(vector of numerics) The corresponding weights
If NA, then it defaults to... |
#'wrapper for function JGL fromo package "JGL"
#'@param X data list
#'@param lambda1 The tuning parameter for the graphical lasso penalty.
#'@param lambda2 The tuning parameter for the fused or group lasso penalty.
#'@param ... optional parameters passed to JGL() from "JGL" package
#'@return a list of estimated precisi... | /R/jgl.R | permissive | QData/JointNets | R | false | false | 738 | r | #'wrapper for function JGL fromo package "JGL"
#'@param X data list
#'@param lambda1 The tuning parameter for the graphical lasso penalty.
#'@param lambda2 The tuning parameter for the fused or group lasso penalty.
#'@param ... optional parameters passed to JGL() from "JGL" package
#'@return a list of estimated precisi... |
# Homework 4
rm(list=ls())
library(igraph)
# Load the stock edgelist
stock_file<-file("/Users/eunsunlee/Documents/EE232_HW4/StockNetworkFile.txt")
sector_file <- read.csv("/Users/eunsunlee/Documents/UCLA_Spring_2017/HW4/finance_data/Name_sector.csv", header = TRUE, sep = ",", quote = "\"")
# create stock graph
g_sto... | /HW_4/hw4_p4.R | no_license | gkhadge/EE232E | R | false | false | 2,572 | r | # Homework 4
rm(list=ls())
library(igraph)
# Load the stock edgelist
stock_file<-file("/Users/eunsunlee/Documents/EE232_HW4/StockNetworkFile.txt")
sector_file <- read.csv("/Users/eunsunlee/Documents/UCLA_Spring_2017/HW4/finance_data/Name_sector.csv", header = TRUE, sep = ",", quote = "\"")
# create stock graph
g_sto... |
library(dplyr, warn.conflicts = F, quietly = T)
library(ggplot2)
library(patchwork)
source('dt_sim.R')
#weights related functions
source('funs/weight_define_each.R')
source('funs/fun_a.R')
source('funs/fun_b.R')
source('funs/assign_weights.R')
source('funs/pvf_apply.R')
source('funs/pvf.R')
source('funs/mi_weights.R... | /one_study_ex/one_study_c4_sc2.R | no_license | yuliasidi/ch3sim | R | false | false | 5,927 | r | library(dplyr, warn.conflicts = F, quietly = T)
library(ggplot2)
library(patchwork)
source('dt_sim.R')
#weights related functions
source('funs/weight_define_each.R')
source('funs/fun_a.R')
source('funs/fun_b.R')
source('funs/assign_weights.R')
source('funs/pvf_apply.R')
source('funs/pvf.R')
source('funs/mi_weights.R... |
set.seed(1234567890)
library(neuralnet)
library(ggplot2)
library(tidyverse)
library(grid)
library(gridExtra)
# for taking our predicted ratings scale and making it on the 1-10 scale
denormalize <- function(predicted, actual) {
d <- predicted * (max(actual)-min(actual))+min(actual)
return(d)
}
#i.e. denormalize(got_... | /src/R/neural_network.R | no_license | funston/got_ist687 | R | false | false | 3,523 | r | set.seed(1234567890)
library(neuralnet)
library(ggplot2)
library(tidyverse)
library(grid)
library(gridExtra)
# for taking our predicted ratings scale and making it on the 1-10 scale
denormalize <- function(predicted, actual) {
d <- predicted * (max(actual)-min(actual))+min(actual)
return(d)
}
#i.e. denormalize(got_... |
testlist <- list(data = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(7L, 7L )), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610555366-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 282 | r | testlist <- list(data = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(7L, 7L )), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) |
\name{Plot.dcl.par}
\alias{Plot.dcl.par}
\title{Plotting the estimated parameters in the DCL model
}
\description{Show a two by two plot with the estimated parameters in the Double Chain Ladder model
}
\usage{
Plot.dcl.par( dcl.par , type.inflat = 'DCL' )
}
\arguments{
\item{dcl.par }{A list object with th... | /man/Plot.dcl.par.Rd | no_license | cran/DCL | R | false | false | 1,433 | rd | \name{Plot.dcl.par}
\alias{Plot.dcl.par}
\title{Plotting the estimated parameters in the DCL model
}
\description{Show a two by two plot with the estimated parameters in the Double Chain Ladder model
}
\usage{
Plot.dcl.par( dcl.par , type.inflat = 'DCL' )
}
\arguments{
\item{dcl.par }{A list object with th... |
getZDT6 <- function(x) {
f1 <- 1 - (exp(-4*x[1])) * (sin(4*pi*x[1]))^6
g <- 0
for (i in 2:10)
g <- g + x[i]
g <- g/9
g <- g^0.25
g <- 1 + 9*g
h <- 1 - ((f1/g)^2)
f2 <- g * h
return(c(f1, f2))
}
ZDT6 <- function(n, limInf, limSup, xr) {
obj <- matrix(NA, 0, 2)
if (length(xr) == ... | /ZDT6.R | no_license | cesarms89/NSGA-II | R | false | false | 664 | r | getZDT6 <- function(x) {
f1 <- 1 - (exp(-4*x[1])) * (sin(4*pi*x[1]))^6
g <- 0
for (i in 2:10)
g <- g + x[i]
g <- g/9
g <- g^0.25
g <- 1 + 9*g
h <- 1 - ((f1/g)^2)
f2 <- g * h
return(c(f1, f2))
}
ZDT6 <- function(n, limInf, limSup, xr) {
obj <- matrix(NA, 0, 2)
if (length(xr) == ... |
########################################
## Libraries
########################################
## Manejo de JSON
library(jsonlite)
library(rjson)
library(RJSONIO)
## Manejo de URLs
library(RCurl)
## Manejo de arreglos
library(plyr)
library(dplyr)
library(tidyr)
## Manejo de cadenas de caracteres
library(stringr)
## Man... | /code/functions.R | no_license | lromang/risk_region | R | false | false | 19,661 | r | ########################################
## Libraries
########################################
## Manejo de JSON
library(jsonlite)
library(rjson)
library(RJSONIO)
## Manejo de URLs
library(RCurl)
## Manejo de arreglos
library(plyr)
library(dplyr)
library(tidyr)
## Manejo de cadenas de caracteres
library(stringr)
## Man... |
testlist <- list(X = structure(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), .Dim = c(4L, 7L)))
result <- do.call(hmlasso:::covC,testlist)
str(result) | /hmlasso/inst/testfiles/covC/libFuzzer_covC/covC_valgrind_files/1609896842-test.R | no_license | akhikolla/newtestfiles-2 | R | false | false | 192 | r | testlist <- list(X = structure(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), .Dim = c(4L, 7L)))
result <- do.call(hmlasso:::covC,testlist)
str(result) |
# PACKAGES ----------------------------------------------------------------
library(tidyverse)
library(tm)
library(factoextra)
library(ggthemes)
library(viridis)
library(textmineR)
library(ggrepel)
# SOURCE(s) ---------------------------------------------------------------
# https://cran.r-project.org/web/packages/tex... | /archived_scripts/text_cosine_v4.R | no_license | sebolden/reddit | R | false | false | 9,778 | r | # PACKAGES ----------------------------------------------------------------
library(tidyverse)
library(tm)
library(factoextra)
library(ggthemes)
library(viridis)
library(textmineR)
library(ggrepel)
# SOURCE(s) ---------------------------------------------------------------
# https://cran.r-project.org/web/packages/tex... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/viz_dispersion.R
\name{viz_dispersion}
\alias{viz_dispersion}
\title{Vizualize lexical dispersion plot}
\usage{
viz_dispersion(data, var, group, words = 10, symbol = NULL, alpha = 0.7)
}
\arguments{
\item{data}{A data.frame.}
\item{var}{vari... | /man/viz_dispersion.Rd | permissive | EmilHvitfeldt/horus | R | false | true | 1,192 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/viz_dispersion.R
\name{viz_dispersion}
\alias{viz_dispersion}
\title{Vizualize lexical dispersion plot}
\usage{
viz_dispersion(data, var, group, words = 10, symbol = NULL, alpha = 0.7)
}
\arguments{
\item{data}{A data.frame.}
\item{var}{vari... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysisApi.r
\name{analysis$getSecurity}
\alias{analysis$getSecurity}
\title{Get the security information of the specified security item associated with the Analysis for a specified user.}
\arguments{
\item{webId}{The ID of the Analysis for ... | /man/analysis-cash-getSecurity.Rd | permissive | aj9253/PI-Web-API-Client-R | R | false | true | 1,080 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysisApi.r
\name{analysis$getSecurity}
\alias{analysis$getSecurity}
\title{Get the security information of the specified security item associated with the Analysis for a specified user.}
\arguments{
\item{webId}{The ID of the Analysis for ... |
#' Describe EWAS samples using the variable of interest and covariates.
#'
#' @param ewas.object Output of \code{\link{meffil.ewas}()}.
#' @return A data frame with one row for each continuous or ordinal variable
#' and one row for each level of each categorical variable.
#' In the first case, each row provides the nam... | /R/ewas-variable-summaries.r | permissive | perishky/meffil | R | false | false | 12,005 | r | #' Describe EWAS samples using the variable of interest and covariates.
#'
#' @param ewas.object Output of \code{\link{meffil.ewas}()}.
#' @return A data frame with one row for each continuous or ordinal variable
#' and one row for each level of each categorical variable.
#' In the first case, each row provides the nam... |
t <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
t$Date <- as.Date(t$Date, "%d/%m/%Y")
t <- subset(t,Date >= as.Date("2007-2-1") & Date <= as.Date("2007-2-2"))
... | /plot2.R | no_license | pl203621/Exploratory-data-analysis-week-1-project | R | false | false | 646 | r | t <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
t$Date <- as.Date(t$Date, "%d/%m/%Y")
t <- subset(t,Date >= as.Date("2007-2-1") & Date <= as.Date("2007-2-2"))
... |
globalVariables(unique(c(
# sf_proj_as_ray
"L1", "L1b", "L2", "X", "X_ray", "Y", "Y_ray", "Z_ray",
"xmin", "xres", "ymin", "yres", "z", "geometry",
# render_cropped_scene
"Ymax_pos", "Ymin_pos", "X_ray", "Y_ray", "Z_ray"
)))
| /R/globals.R | permissive | eamcvey/maps2ray | R | false | false | 236 | r | globalVariables(unique(c(
# sf_proj_as_ray
"L1", "L1b", "L2", "X", "X_ray", "Y", "Y_ray", "Z_ray",
"xmin", "xres", "ymin", "yres", "z", "geometry",
# render_cropped_scene
"Ymax_pos", "Ymin_pos", "X_ray", "Y_ray", "Z_ray"
)))
|
#' Find most likely change point in irregular time series
#'
#' Finds the single best change point according to the likelihood function. Used internally within \code{\link{WindowSweep}}.
#'
#' @param x vector of time series values.
#' @param t vector of times of measurements associated with x.
#' @param range t... | /fuzzedpackages/bcpa/R/GetBestBreak.R | no_license | akhikolla/testpackages | R | false | false | 1,819 | r | #' Find most likely change point in irregular time series
#'
#' Finds the single best change point according to the likelihood function. Used internally within \code{\link{WindowSweep}}.
#'
#' @param x vector of time series values.
#' @param t vector of times of measurements associated with x.
#' @param range t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/admis2.R
\name{admis2}
\alias{admis2}
\title{Initialization of admissibility test recursion, two-level model.}
\usage{
admis2(nvec, zvec, jvec)
}
\arguments{
\item{nvec}{The vector of numbers of observations per cluster.}
\item{zvec}{The vec... | /man/admis2.Rd | no_license | lalondetl/ECLR | R | false | true | 866 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/admis2.R
\name{admis2}
\alias{admis2}
\title{Initialization of admissibility test recursion, two-level model.}
\usage{
admis2(nvec, zvec, jvec)
}
\arguments{
\item{nvec}{The vector of numbers of observations per cluster.}
\item{zvec}{The vec... |
\name{gamma.phylodiv}
\alias{gamma.phylodiv}
\title{Gamma phylodiversity}
\usage{}
\arguments{}
| /man/gamma.phylodiv.Rd | no_license | cylove1112/hilldiv | R | false | false | 97 | rd |
\name{gamma.phylodiv}
\alias{gamma.phylodiv}
\title{Gamma phylodiversity}
\usage{}
\arguments{}
|
## New file!
| /testatomfile.R | no_license | bgarnz/new-atom-project | R | false | false | 13 | r | ## New file!
|
# Run in R 3.5.1
source('global.R')
source('AUshapefileLocation.R')
# Draft 2020 data
conventionals <- read_csv('data/final2020data/CEDSWQM_2020_IR_DATA-CONVENTIONALS_20190305.csv') %>%
filter(!is.na(Latitude)|!is.na(Longitude)) %>% # remove sites without coordinates
rename("FDT_TEMP_CELCIUS" ="TEMPERATURE_0001... | /RiverineApp2020/server.R | no_license | EmmaVJones/Rivers-StreamsAssessment | R | false | false | 24,215 | r | # Run in R 3.5.1
source('global.R')
source('AUshapefileLocation.R')
# Draft 2020 data
conventionals <- read_csv('data/final2020data/CEDSWQM_2020_IR_DATA-CONVENTIONALS_20190305.csv') %>%
filter(!is.na(Latitude)|!is.na(Longitude)) %>% # remove sites without coordinates
rename("FDT_TEMP_CELCIUS" ="TEMPERATURE_0001... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/Graphics.R
\name{missinValueBarplot}
\alias{missinValueBarplot}
\title{Plot Percentage of Features with with missing values}
\usage{
missinValueBarplot(eset,
col = as.character(.getConditionColors(eset)[pData(eset)$condition, ]),
... | /man/missinValueBarplot.Rd | no_license | ealearn/SafeQuant | R | false | false | 563 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/Graphics.R
\name{missinValueBarplot}
\alias{missinValueBarplot}
\title{Plot Percentage of Features with with missing values}
\usage{
missinValueBarplot(eset,
col = as.character(.getConditionColors(eset)[pData(eset)$condition, ]),
... |
\name{oldfaith}
\alias{oldfaith}
\docType{data}
\title{Old Faithful Geyser data}
\description{
Data on eruptions of Old Faithful Geyser, October 1980. Variables are the
duration in seconds of the current eruption, and the time in minutes to the
next eruption. Collected by volunteers, and supplied by the Yellow... | /man/oldfaith.Rd | no_license | cran/alr3 | R | false | false | 792 | rd | \name{oldfaith}
\alias{oldfaith}
\docType{data}
\title{Old Faithful Geyser data}
\description{
Data on eruptions of Old Faithful Geyser, October 1980. Variables are the
duration in seconds of the current eruption, and the time in minutes to the
next eruption. Collected by volunteers, and supplied by the Yellow... |
#!/applications/R/R-3.5.0/bin/Rscript
# Plot library-size-normalized average coverage profiles around features and
# around equivalent random loci
# Usage:
# ./featureProfilesPlot_ChIPseq_MNaseSeq_log2ChIPMNase.R both genes 20bp 20 2kb 2000 141218
align <- "both"
featureName <- "genes"
binName <- "20bp"
binSize <- 2... | /featureProfiles/hotspot_chr3B_9188023_9189966/featureProfilesPlot_ChIPseq_MNaseSeq_log2ChIPMNase.R | no_license | ajtock/wheat | R | false | false | 6,336 | r | #!/applications/R/R-3.5.0/bin/Rscript
# Plot library-size-normalized average coverage profiles around features and
# around equivalent random loci
# Usage:
# ./featureProfilesPlot_ChIPseq_MNaseSeq_log2ChIPMNase.R both genes 20bp 20 2kb 2000 141218
align <- "both"
featureName <- "genes"
binName <- "20bp"
binSize <- 2... |
#'
#' Calculate area-weighted upstream averages of grouped SLC class fractions.
#'
#' Function to calculate averages of grouped SLC class fractions calculated from imported GeoData.txt and GeoClass.txt or any other user-defined grouping.
#'
#' @param subid Integer vector of SUBIDs for which to calculate upstream prop... | /R/function_UpstreamGroupSLCClasses.R | no_license | hangqianyu/HYPEtools | R | false | false | 6,288 | r | #'
#' Calculate area-weighted upstream averages of grouped SLC class fractions.
#'
#' Function to calculate averages of grouped SLC class fractions calculated from imported GeoData.txt and GeoClass.txt or any other user-defined grouping.
#'
#' @param subid Integer vector of SUBIDs for which to calculate upstream prop... |
library(metaMA)
### Name: row.ttest.stat
### Title: Row t-tests
### Aliases: row.ttest.stat
### Keywords: methods models
### ** Examples
## The function is currently defined as
function(mat1,mat2){
n1<-dim(mat1)[2]
n2<-dim(mat2)[2]
n<-n1+n2
m1<-rowMeans(mat1,na.rm=TRUE)
m2<-rowMeans(mat2,na.rm=TRUE)
v1<-rowVar... | /data/genthat_extracted_code/metaMA/examples/row.ttest.stat.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 472 | r | library(metaMA)
### Name: row.ttest.stat
### Title: Row t-tests
### Aliases: row.ttest.stat
### Keywords: methods models
### ** Examples
## The function is currently defined as
function(mat1,mat2){
n1<-dim(mat1)[2]
n2<-dim(mat2)[2]
n<-n1+n2
m1<-rowMeans(mat1,na.rm=TRUE)
m2<-rowMeans(mat2,na.rm=TRUE)
v1<-rowVar... |
#' Process data from the DWD CDC FTP Server
#'
#' Read climate variables (column meta data) from zip folders downloaded with
#' [dataDWD()].
#' The metadata file `"Metadaten_Parameter.*txt"` in the zip folder `file`
#' is read, processed and returned as a data.frame.\cr
#' `file` can be a vector with several filenames... | /R/readVars.R | no_license | brry/rdwd | R | false | false | 10,145 | r | #' Process data from the DWD CDC FTP Server
#'
#' Read climate variables (column meta data) from zip folders downloaded with
#' [dataDWD()].
#' The metadata file `"Metadaten_Parameter.*txt"` in the zip folder `file`
#' is read, processed and returned as a data.frame.\cr
#' `file` can be a vector with several filenames... |
#source("https://bioconductor.org/biocLite.R")
#biocLite()
biocLite("ChIPComp")
library(ChIPComp)
#Example
confs=makeConf(system.file("extdata", "conf.csv", package="ChIPComp"))
conf=confs$conf
design=confs$design
system.file("extdata", "Helas3.peak.bed", package="ChIPComp")
setwd("/Library/Frameworks/R.framework... | /049_ChIPComp.R | no_license | andrewholding/BrundleDevelopment | R | false | false | 1,898 | r |
#source("https://bioconductor.org/biocLite.R")
#biocLite()
biocLite("ChIPComp")
library(ChIPComp)
#Example
confs=makeConf(system.file("extdata", "conf.csv", package="ChIPComp"))
conf=confs$conf
design=confs$design
system.file("extdata", "Helas3.peak.bed", package="ChIPComp")
setwd("/Library/Frameworks/R.framework... |
library(IQCC)
### Name: add.data
### Title: Updates the Hotelling Control Chart.
### Aliases: add.data
### ** Examples
mu <- c(5.682, 88.22)
Sigma <- symMatrix(c(3.770, -5.495, 13.53), 2)
datum <- data.1(20, 10, mu, Sigma)
estat <- stats(datum, 20, 10, 2)
datum2 <- data.2(estat, 10, p = 2)
T2II <- T2.2(datum2, est... | /data/genthat_extracted_code/IQCC/examples/add.data.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,098 | r | library(IQCC)
### Name: add.data
### Title: Updates the Hotelling Control Chart.
### Aliases: add.data
### ** Examples
mu <- c(5.682, 88.22)
Sigma <- symMatrix(c(3.770, -5.495, 13.53), 2)
datum <- data.1(20, 10, mu, Sigma)
estat <- stats(datum, 20, 10, 2)
datum2 <- data.2(estat, 10, p = 2)
T2II <- T2.2(datum2, est... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CombPredict.R
\name{CombPredict}
\alias{CombPredict}
\title{Integrated Prediction of Testing samples using Combination Weights from integrated RF or MRF model}
\usage{
CombPredict(finalX, finalY_train, Cell, finalY_train_cell, finalY_te... | /IntegratedMRF/man/CombPredict.Rd | no_license | akhikolla/InformationHouse | R | false | true | 4,163 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CombPredict.R
\name{CombPredict}
\alias{CombPredict}
\title{Integrated Prediction of Testing samples using Combination Weights from integrated RF or MRF model}
\usage{
CombPredict(finalX, finalY_train, Cell, finalY_train_cell, finalY_te... |
version https://git-lfs.github.com/spec/v1
oid sha256:c4e9ad53845493074e2ad091132f36c40289fe4f340f7d27c531d7d4a33760eb
size 1706
| /5_HypothesisTesting_ConfidenceIntervals/homeworkWeek5.R | no_license | sam-j-robinson/dataSci350 | R | false | false | 129 | r | version https://git-lfs.github.com/spec/v1
oid sha256:c4e9ad53845493074e2ad091132f36c40289fe4f340f7d27c531d7d4a33760eb
size 1706
|
###############################################################################
# R (https://r-project.org/) Numeric Methods for Optimization of Portfolios
#
# Copyright (c) 2004-2021 Brian G. Peterson, Peter Carl, Ross Bennett, Kris Boudt
#
# This library is distributed under the terms of the GNU Public License (GPL)
... | /R/charts.DE.R | no_license | crconline/PortfolioAnalytics | R | false | false | 17,419 | r | ###############################################################################
# R (https://r-project.org/) Numeric Methods for Optimization of Portfolios
#
# Copyright (c) 2004-2021 Brian G. Peterson, Peter Carl, Ross Bennett, Kris Boudt
#
# This library is distributed under the terms of the GNU Public License (GPL)
... |
# 2016 10 09 I.Zliobaite
# updated 2016 10 23, 2016 11 28
out_file <- 'generated_data_last_run/data_random_13.csv'
n_loops <- 10000
n_times <- 47
warm_up_times <- 30
n_localities <- 20
m_taxa_origin <- 7
sd_origin <- m_taxa_origin/3
m_localities_step <- 3
sd_step <- m_localities_step/3
p_up <- 0.5
param_min_times_occ... | /2_baseline_model/run_random_walk_baseline_13.R | permissive | zliobaite/RedQueen | R | false | false | 4,190 | r | # 2016 10 09 I.Zliobaite
# updated 2016 10 23, 2016 11 28
out_file <- 'generated_data_last_run/data_random_13.csv'
n_loops <- 10000
n_times <- 47
warm_up_times <- 30
n_localities <- 20
m_taxa_origin <- 7
sd_origin <- m_taxa_origin/3
m_localities_step <- 3
sd_step <- m_localities_step/3
p_up <- 0.5
param_min_times_occ... |
context("test-cartesian")
test_that("cartesian works", {
relations <- data.frame(sets = c(rep("a", 5), "b"),
elements = letters[seq_len(6)])
TS <- tidySet(relations)
out <- cartesian(TS, "a", "b")
expect_s4_class(out, "TidySet")
expect_equal(nSets(out), 8)
expect_equ... | /tests/testthat/test-cartesian.R | permissive | annakrystalli/BaseSet | R | false | false | 388 | r | context("test-cartesian")
test_that("cartesian works", {
relations <- data.frame(sets = c(rep("a", 5), "b"),
elements = letters[seq_len(6)])
TS <- tidySet(relations)
out <- cartesian(TS, "a", "b")
expect_s4_class(out, "TidySet")
expect_equal(nSets(out), 8)
expect_equ... |
# Add Labels to Dataset
library(haven)
library(readxl)
library(dplyr)
apply_labels <- function(data, surveycto_filepath){
# Applies labels to dataset from SurveyCTO.
# INPUT
# data: Dataset (dataframe)
# surveycto_filepath: Filepath to surveycto .xlsx file
survey_questions <- read_excel(surveycto_fi... | /add_labels.R | permissive | gauravgupta88/SurveyCTO-R-Tools | R | false | false | 2,313 | r | # Add Labels to Dataset
library(haven)
library(readxl)
library(dplyr)
apply_labels <- function(data, surveycto_filepath){
# Applies labels to dataset from SurveyCTO.
# INPUT
# data: Dataset (dataframe)
# surveycto_filepath: Filepath to surveycto .xlsx file
survey_questions <- read_excel(surveycto_fi... |
context("BOM")
dta <- data.frame(
foo = c(1,2,3,10),
bar = c(2.2, 3.3, 4.4, 9.9),
stringsAsFactors = TRUE
)
bom <- raw(3)
bom[1] <- as.raw(239)
bom[2] <- as.raw(187)
bom[3] <- as.raw(191)
test_that("DOM detection works for fixed width", {
lines <- " 12.2\n 23.3\n 34.4\n109.9"
fn <- tempfile()
con <- f... | /fuzzedpackages/LaF/tests/testthat/test_bom.R | no_license | akhikolla/testpackages | R | false | false | 1,885 | r |
context("BOM")
dta <- data.frame(
foo = c(1,2,3,10),
bar = c(2.2, 3.3, 4.4, 9.9),
stringsAsFactors = TRUE
)
bom <- raw(3)
bom[1] <- as.raw(239)
bom[2] <- as.raw(187)
bom[3] <- as.raw(191)
test_that("DOM detection works for fixed width", {
lines <- " 12.2\n 23.3\n 34.4\n109.9"
fn <- tempfile()
con <- f... |
# Engines API
#
# Allow clients to fetch Engines Analytics through APIs.
#
# The version of the OpenAPI document: 2
# Contact: analytics.api.support@factset.com
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title Currencies operations
#' @description factset.analyticsapi.engines.Curren... | /R/currencies_api.R | no_license | cran/factset.analyticsapi.engines | R | false | false | 8,800 | r | # Engines API
#
# Allow clients to fetch Engines Analytics through APIs.
#
# The version of the OpenAPI document: 2
# Contact: analytics.api.support@factset.com
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title Currencies operations
#' @description factset.analyticsapi.engines.Curren... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.