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/basisSet.R
\name{filterExogenous}
\alias{filterExogenous}
\title{Filter relationships among exogenous variables from the basis set (ignoring add.vars)}
\usage{
filterExogenous(b, modelList, amat)
}
\description{
Filter relationships among exo... | /man/filterExogenous.Rd | no_license | jslefche/piecewiseSEM | R | false | true | 397 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/basisSet.R
\name{filterExogenous}
\alias{filterExogenous}
\title{Filter relationships among exogenous variables from the basis set (ignoring add.vars)}
\usage{
filterExogenous(b, modelList, amat)
}
\description{
Filter relationships among exo... |
library(shiny)
# Define server logic required to draw a histogram
shinyServer( function(input, output) {
# Expression that generates a histogram. The expression is
# wrapped in a call to renderPlot to indicate that:
#
# 1) It is "reactive" and therefore should be automatically
# re-executed when inputs... | /server.R | no_license | sebnorth/Developing-Data-Products-Coursera | R | false | false | 1,156 | r | library(shiny)
# Define server logic required to draw a histogram
shinyServer( function(input, output) {
# Expression that generates a histogram. The expression is
# wrapped in a call to renderPlot to indicate that:
#
# 1) It is "reactive" and therefore should be automatically
# re-executed when inputs... |
# ************THIS IS AN EXPERIMENTAL TEST FILE BECAUSE I DON'T KNOW WHAT I'M DOING SOMETIMES**************
# Load packages
library(dplyr)
library(ggplot2)
library(leaflet)
library(tidyverse)
library(maps)
library(ggiraph)
library(rgdal)
# Load dataframe
terrrorism <- read.csv("../data/global_terrorism.csv", strings... | /analysis/temp.R | no_license | jctroyer/Info-201-Final-Project | R | false | false | 1,940 | r |
# ************THIS IS AN EXPERIMENTAL TEST FILE BECAUSE I DON'T KNOW WHAT I'M DOING SOMETIMES**************
# Load packages
library(dplyr)
library(ggplot2)
library(leaflet)
library(tidyverse)
library(maps)
library(ggiraph)
library(rgdal)
# Load dataframe
terrrorism <- read.csv("../data/global_terrorism.csv", strings... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/to_raise.R
\name{to_raise}
\alias{to_raise}
\title{Set raise error condition}
\usage{
to_raise(.data, ...)
}
\arguments{
\item{.data}{input. Anything that can be coerced to a \code{StubbedRequest}
class object}
\item{...}{One or more HTTP ex... | /man/to_raise.Rd | permissive | ropensci/webmockr | R | false | true | 1,582 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/to_raise.R
\name{to_raise}
\alias{to_raise}
\title{Set raise error condition}
\usage{
to_raise(.data, ...)
}
\arguments{
\item{.data}{input. Anything that can be coerced to a \code{StubbedRequest}
class object}
\item{...}{One or more HTTP ex... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/orgaos.R
\name{orgaos_id}
\alias{orgaos_id}
\title{Extract an unique identifier for a given body or commission}
\usage{
orgaos_id(abbr)
}
\arguments{
\item{abbr}{A body or commission abbreviation}
}
\value{
A unique identifier for a given bod... | /man/orgaos_id.Rd | permissive | pedrodrocha/camaradeputadosapi | R | false | true | 686 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/orgaos.R
\name{orgaos_id}
\alias{orgaos_id}
\title{Extract an unique identifier for a given body or commission}
\usage{
orgaos_id(abbr)
}
\arguments{
\item{abbr}{A body or commission abbreviation}
}
\value{
A unique identifier for a given bod... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/hyperspec-package.R
\docType{package}
\name{hyperSpec-package}
\alias{hyperSpec-package}
\title{Package hyperSpec}
\description{
Interface for hyperspectral data sets
This package gives an interface to handle hyperspectral data sets i... | /man/hyperSpec-package.Rd | no_license | sfornasaro/hyperSpec | R | false | false | 1,137 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/hyperspec-package.R
\docType{package}
\name{hyperSpec-package}
\alias{hyperSpec-package}
\title{Package hyperSpec}
\description{
Interface for hyperspectral data sets
This package gives an interface to handle hyperspectral data sets i... |
testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(c(4.73858215544888e-228, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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(10L, 6L)))
result <- do.call(... | /palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612987769-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(c(4.73858215544888e-228, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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(10L, 6L)))
result <- do.call(... |
panel.hist <- function(x, ...)
{
usr <- par("usr"); on.exit(par(usr))
par(usr = c(usr[1:2], 0, 1.5) )
h <- hist(x, plot = FALSE)
breaks <- h$breaks; nB <- length(breaks)
y <- h$counts; y <- y/max(y)
rect(breaks[-nB], 0, breaks[-1], y, col = "cyan", ...)
}
panel.cor <- function(x, y, digits=2, c... | /Auto_v1.5/R/pairs.R | no_license | ivanliu1989/Time_Series_Forecasting_STL | R | false | false | 1,037 | r | panel.hist <- function(x, ...)
{
usr <- par("usr"); on.exit(par(usr))
par(usr = c(usr[1:2], 0, 1.5) )
h <- hist(x, plot = FALSE)
breaks <- h$breaks; nB <- length(breaks)
y <- h$counts; y <- y/max(y)
rect(breaks[-nB], 0, breaks[-1], y, col = "cyan", ...)
}
panel.cor <- function(x, y, digits=2, c... |
# data will be generated from tau1=tau^2, tau2=tau^2/2, and tau3=tau^2/4
library(parallel)
simRep <- 5000 # Replication times in one simulation
pvalue.true <- .05 # Testing type I error
b.var <- c(0.0225) # The set of varaince of random covariates b as random slope
smooth <- 1 # measurement error is added to M if smoo... | /full simulation/summer/hetero_power/variance0.0225/seed3/heter_power_0.0225_pca_s_seed3_20_20.R | no_license | wma9/FMRI-project | R | false | false | 9,361 | r | # data will be generated from tau1=tau^2, tau2=tau^2/2, and tau3=tau^2/4
library(parallel)
simRep <- 5000 # Replication times in one simulation
pvalue.true <- .05 # Testing type I error
b.var <- c(0.0225) # The set of varaince of random covariates b as random slope
smooth <- 1 # measurement error is added to M if smoo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{describe.mean.and.t}
\alias{describe.mean.and.t}
\title{Describe two-sample t-test with means and effect sizes}
\usage{
describe.mean.and.t(
x,
by,
which.mean = 1,
digits = 2,
paired = F,
eff.size = F,
abs = F,... | /apastats/man/describe.mean.and.t.Rd | no_license | achetverikov/APAstats | R | false | true | 1,683 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{describe.mean.and.t}
\alias{describe.mean.and.t}
\title{Describe two-sample t-test with means and effect sizes}
\usage{
describe.mean.and.t(
x,
by,
which.mean = 1,
digits = 2,
paired = F,
eff.size = F,
abs = F,... |
###################### ============================================================ ######################
###################### Model Dow returns with binomial family for pos/neg returns ######################
###################### ============================================================ ######################... | /R/Modelling/9_results/binomial/A_cutoff90_frame40/predictor_of_values.binomial.R | no_license | Nicholas-Autio-Mitchell/master_thesis | R | false | false | 10,299 | r | ###################### ============================================================ ######################
###################### Model Dow returns with binomial family for pos/neg returns ######################
###################### ============================================================ ######################... |
# OPERADORES
# POTENCIA
8^2
8**2
# MÓDULO
8%%3
### OPERADORES RELACIONAIS
# ATRIBUIÇÃO
Z = 9
X <- 2
mode(x)
#Exemplos de matriz
matrix(c(1,2,3,4,5,6), nrow=3)
ma1 = matrix(c(1,2,3,4,5,6), nrow=2)
matrix(c(1,2,3,4,5,6), ncol=3)
matrix(c(1,2,3,4,5,6), ncol = 1)
ma = matrix(1:20, nrow = 2)
mode(ma)
typeof(ma)
class(m... | /matrizes.R | no_license | paulofranciscon/intro-r | R | false | false | 1,326 | r | # OPERADORES
# POTENCIA
8^2
8**2
# MÓDULO
8%%3
### OPERADORES RELACIONAIS
# ATRIBUIÇÃO
Z = 9
X <- 2
mode(x)
#Exemplos de matriz
matrix(c(1,2,3,4,5,6), nrow=3)
ma1 = matrix(c(1,2,3,4,5,6), nrow=2)
matrix(c(1,2,3,4,5,6), ncol=3)
matrix(c(1,2,3,4,5,6), ncol = 1)
ma = matrix(1:20, nrow = 2)
mode(ma)
typeof(ma)
class(m... |
magaxis <-
function(side=1:2, majorn=5, minorn=5, tcl=0.5, ratio=0.5, labels=TRUE, unlog='Auto', tline=0.5, mtline=2, xlab=NULL, ylab=NULL, crunch=TRUE, logpretty=TRUE, prettybase=10, hersh=FALSE, family='sans', frame.plot=FALSE, ...){
majornlist=majorn
minornlist=minorn
unloglist=unlog
labelslist=labels
crunchlist=cru... | /R/magaxis.R | no_license | AngusWright/magicaxis | R | false | false | 4,672 | r | magaxis <-
function(side=1:2, majorn=5, minorn=5, tcl=0.5, ratio=0.5, labels=TRUE, unlog='Auto', tline=0.5, mtline=2, xlab=NULL, ylab=NULL, crunch=TRUE, logpretty=TRUE, prettybase=10, hersh=FALSE, family='sans', frame.plot=FALSE, ...){
majornlist=majorn
minornlist=minorn
unloglist=unlog
labelslist=labels
crunchlist=cru... |
library(shiny)
library(shinyTable)
#' Define UI for application that demonstrates a simple Handsontable
#' @author Jeff Allen \email{jeff@@trestletech.com}
shinyUI(pageWithSidebar(
# Application title
headerPanel("Simple Shiny Table!"),
sidebarPanel(
helpText(HTML("A simple editable matrix used as a calcula... | /inst/examples/04-calc/ui.R | permissive | arupnathdaw/shinyTable | R | false | false | 565 | r | library(shiny)
library(shinyTable)
#' Define UI for application that demonstrates a simple Handsontable
#' @author Jeff Allen \email{jeff@@trestletech.com}
shinyUI(pageWithSidebar(
# Application title
headerPanel("Simple Shiny Table!"),
sidebarPanel(
helpText(HTML("A simple editable matrix used as a calcula... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615832505-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,215 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
# Two Group Hypothesis Testing
## Question: In terms of weight gain, are diet 1 and
## diet 4 statistically equivalent?
## ChickWeight data set has four variables: Chick, weight, Time, Diet
library(datasets); data(ChickWeight); library(reshape2)
head(ChickWeight)
names(ChickWeight)
str(ChickWeight)
## dcast creates... | /Johns Hopkins Data Science Concentration/Statistical Inference/Two Group Hypothesis Testing_ChickWeight.R | no_license | ercbk/Notes | R | false | false | 1,551 | r | # Two Group Hypothesis Testing
## Question: In terms of weight gain, are diet 1 and
## diet 4 statistically equivalent?
## ChickWeight data set has four variables: Chick, weight, Time, Diet
library(datasets); data(ChickWeight); library(reshape2)
head(ChickWeight)
names(ChickWeight)
str(ChickWeight)
## dcast creates... |
#' @title Plots water temperature heatmap with major limnetic layers indicated
#'
#' @description This creates a heat map of water temperature similar to
#' \code{\link{wtr.heat.map}} with additional lines drawn to denote the
#' thermocline, and the top and bottom of the metalimnion as calculated using
#' \code{\link{... | /R/wtr.heatmap.layers.R | no_license | lawinslow/rLakeAnalyzer | R | false | false | 5,038 | r | #' @title Plots water temperature heatmap with major limnetic layers indicated
#'
#' @description This creates a heat map of water temperature similar to
#' \code{\link{wtr.heat.map}} with additional lines drawn to denote the
#' thermocline, and the top and bottom of the metalimnion as calculated using
#' \code{\link{... |
#' Mantel–Haenszel DIF Statistics for polytomous data
#'
#' @param data numeric: either the data matrix only, or the data matrix plus the vector of group membership.
#' @param group factor: the vector of group membership
#' @param focal.name numeric or character: a single value
#' @param ref.name numeric or character: ... | /R/Mantel.poly.R | no_license | cswells1/MeasInv | R | false | false | 4,108 | r | #' Mantel–Haenszel DIF Statistics for polytomous data
#'
#' @param data numeric: either the data matrix only, or the data matrix plus the vector of group membership.
#' @param group factor: the vector of group membership
#' @param focal.name numeric or character: a single value
#' @param ref.name numeric or character: ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/constraints.R
\name{employ.constraint}
\alias{employ.constraint}
\title{Applies constraint to a dataset}
\usage{
employ.constraint(obj, x, d, ...)
}
\arguments{
\item{obj}{object with constraint}
\item{x}{matrix with pure spectra or contribu... | /man/employ.constraint.Rd | permissive | svkucheryavski/mdatools | R | false | true | 454 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/constraints.R
\name{employ.constraint}
\alias{employ.constraint}
\title{Applies constraint to a dataset}
\usage{
employ.constraint(obj, x, d, ...)
}
\arguments{
\item{obj}{object with constraint}
\item{x}{matrix with pure spectra or contribu... |
library(rvest)
library(httr)
library(RSelenium)
remDr <- remoteDriver(port=4445, browserName="chrome")
# 1. 스타벅스 홈페이지 > 서울 전체 매장 불러오기
remDr$open()
url_main <- "https://www.istarbucks.co.kr/store/store_map.do?disp=locale"
remDr$navigate(url_main)
Sys.sleep(2)
tmp_btn <- remDr$findElement('xpath', '//*[@id="container"... | /kim_Rstudy/starbucks_191104.R | no_license | sam351/TIL | R | false | false | 2,522 | r | library(rvest)
library(httr)
library(RSelenium)
remDr <- remoteDriver(port=4445, browserName="chrome")
# 1. 스타벅스 홈페이지 > 서울 전체 매장 불러오기
remDr$open()
url_main <- "https://www.istarbucks.co.kr/store/store_map.do?disp=locale"
remDr$navigate(url_main)
Sys.sleep(2)
tmp_btn <- remDr$findElement('xpath', '//*[@id="container"... |
library(cooccurNet)
### Name: coocnet
### Title: coocnet
### Aliases: coocnet
### ** Examples
cooccurNetwork = coocnet(dataFile=getexample(dataType="protein"), dataType="protein")
| /data/genthat_extracted_code/cooccurNet/examples/coocnet.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 188 | r | library(cooccurNet)
### Name: coocnet
### Title: coocnet
### Aliases: coocnet
### ** Examples
cooccurNetwork = coocnet(dataFile=getexample(dataType="protein"), dataType="protein")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matches.R
\name{match_number}
\alias{match_class}
\alias{match_data_frame}
\alias{match_formula}
\alias{match_names}
\alias{match_number}
\alias{match_vector}
\title{Comparison functions}
\usage{
match_number(x, tol = NULL, pm = 1e-08, range ... | /man/matches.Rd | no_license | ramnathv/checkr | R | false | true | 2,095 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matches.R
\name{match_number}
\alias{match_class}
\alias{match_data_frame}
\alias{match_formula}
\alias{match_names}
\alias{match_number}
\alias{match_vector}
\title{Comparison functions}
\usage{
match_number(x, tol = NULL, pm = 1e-08, range ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dictionaries.R
\name{as.dictionary}
\alias{as.dictionary}
\alias{is.dictionary}
\title{coercion and checking functions for dictionary objects}
\usage{
as.dictionary(x)
is.dictionary(x)
}
\arguments{
\item{x}{object to be coerced or checked; ... | /man/as.dictionary.Rd | no_license | pokhrelj/quanteda | R | false | true | 1,569 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dictionaries.R
\name{as.dictionary}
\alias{as.dictionary}
\alias{is.dictionary}
\title{coercion and checking functions for dictionary objects}
\usage{
as.dictionary(x)
is.dictionary(x)
}
\arguments{
\item{x}{object to be coerced or checked; ... |
# tests for unnest_tokens function
context("Unnesting tokens")
suppressPackageStartupMessages(library(dplyr))
test_that("tokenizing by character works", {
d <- tibble(txt = "Emily Dickinson")
d <- d %>% unnest_tokens(char, txt, token = "characters")
expect_equal(nrow(d), 14)
expect_equal(ncol(d), 1)
expect... | /tests/testthat/test-unnest-tokens.R | permissive | anh/tidytext | R | false | false | 12,246 | r | # tests for unnest_tokens function
context("Unnesting tokens")
suppressPackageStartupMessages(library(dplyr))
test_that("tokenizing by character works", {
d <- tibble(txt = "Emily Dickinson")
d <- d %>% unnest_tokens(char, txt, token = "characters")
expect_equal(nrow(d), 14)
expect_equal(ncol(d), 1)
expect... |
test <- read.csv("Data/test_2014.csv", stringsAsFactors=FALSE)
mat <- matrix(1, ncol=70)
submit <- data.frame(Id = test$Id, mat)
submit <- subset(submit, select=c(1,71,2:70))
names(submit) <- gsub("X", "Predicted", names(submit))
colnames(submit)[2] <- "Predicted0"
write.csv(submit, file = "Output/all_ones.csv", ro... | /all_ones.R | permissive | codebender/kaggle-how-much-did-it-rain | R | false | false | 352 | r | test <- read.csv("Data/test_2014.csv", stringsAsFactors=FALSE)
mat <- matrix(1, ncol=70)
submit <- data.frame(Id = test$Id, mat)
submit <- subset(submit, select=c(1,71,2:70))
names(submit) <- gsub("X", "Predicted", names(submit))
colnames(submit)[2] <- "Predicted0"
write.csv(submit, file = "Output/all_ones.csv", ro... |
#' HinduTemple
#'
#' A Hindu temple.
#'
#'
#' @param id identifier for the object (URI)
#' @param openingHours (Text or Text type.) The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separ... | /R/HinduTemple.R | no_license | cboettig/schemar | R | false | false | 9,935 | r | #' HinduTemple
#'
#' A Hindu temple.
#'
#'
#' @param id identifier for the object (URI)
#' @param openingHours (Text or Text type.) The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics_mask.R
\name{>=.fastai.torch_core.TensorMask}
\alias{>=.fastai.torch_core.TensorMask}
\title{Greater or equal}
\usage{
\method{>=}{fastai.torch_core.TensorMask}(a, b)
}
\arguments{
\item{a}{tensor}
\item{b}{tensor}
}
\value{
tensor
... | /man/greater-than-equals-.fastai.torch_core.TensorMask.Rd | permissive | han-tun/fastai | R | false | true | 410 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics_mask.R
\name{>=.fastai.torch_core.TensorMask}
\alias{>=.fastai.torch_core.TensorMask}
\title{Greater or equal}
\usage{
\method{>=}{fastai.torch_core.TensorMask}(a, b)
}
\arguments{
\item{a}{tensor}
\item{b}{tensor}
}
\value{
tensor
... |
# rm(list=ls()) # Clean up the memory, if we want to rerun from scratch
# source("helpersSet1.R")
getdata.fromscratch = 1
website_used = "yahoo" # can be "yahoo" or other ( see help(getSymbols) ). Depending on the website we may need to change the stock tickers' representation
mytickers = c("SPY", "AAPL", "YH... | /Exercises/Exerciseset1/dataSet1.R | permissive | mmael/INSEADAnalytics | R | false | false | 2,281 | r |
# rm(list=ls()) # Clean up the memory, if we want to rerun from scratch
# source("helpersSet1.R")
getdata.fromscratch = 1
website_used = "yahoo" # can be "yahoo" or other ( see help(getSymbols) ). Depending on the website we may need to change the stock tickers' representation
mytickers = c("SPY", "AAPL", "YH... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /mepstrends/hc_use/json/code/r/totEVT__event__sop__.r | permissive | RandomCriticalAnalysis/MEPS-summary-tables | R | false | false | 2,636 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
#' tidytime: tidying functions for time series data
#'
#' tidytime provides functions for tidying time series data.
#' \code{tidytime} supports major time series formats including:
#' \item builtin time.series (ts)
#' \item zoo
#' \item xts
#'
#' @docType package
#' @name tidytime
#'
#' @seealso \url{https://cran.r-... | /R/tidytime.r | no_license | qg0/tidytime | R | false | false | 2,605 | r | #' tidytime: tidying functions for time series data
#'
#' tidytime provides functions for tidying time series data.
#' \code{tidytime} supports major time series formats including:
#' \item builtin time.series (ts)
#' \item zoo
#' \item xts
#'
#' @docType package
#' @name tidytime
#'
#' @seealso \url{https://cran.r-... |
## test_file('test-evals.R')
cache.dir <- evalsOptions('cache.dir')
graph.dir <- evalsOptions('graph.dir')
evalsOptions('cache.dir', file.path(tempdir(), '.cache'))
evalsOptions('graph.dir', file.path(tempdir(), 'plots'))
context('eval.msgs')
test_that('returns', {
expect_that(eval.msgs('1:5')$result, equals(1... | /inst/tests/test-evals.R | no_license | onesandzeroes/pander | R | false | false | 9,567 | r | ## test_file('test-evals.R')
cache.dir <- evalsOptions('cache.dir')
graph.dir <- evalsOptions('graph.dir')
evalsOptions('cache.dir', file.path(tempdir(), '.cache'))
evalsOptions('graph.dir', file.path(tempdir(), 'plots'))
context('eval.msgs')
test_that('returns', {
expect_that(eval.msgs('1:5')$result, equals(1... |
library(data.table)
dat <- fread("household_power_consumption.txt")
d1 <- which(dat$Date == "1/2/2007")
d2 <- which(dat$Date == "2/2/2007")
#select rows for the dates we are interested in
data <- dat[c(d1,d2),]
data
#create a new column for date and time
data$DateTime <- paste(data$Date, data$Time, sep=" ")
#create va... | /plot2.R | no_license | tcrompton/ExData_Plotting1 | R | false | false | 594 | r | library(data.table)
dat <- fread("household_power_consumption.txt")
d1 <- which(dat$Date == "1/2/2007")
d2 <- which(dat$Date == "2/2/2007")
#select rows for the dates we are interested in
data <- dat[c(d1,d2),]
data
#create a new column for date and time
data$DateTime <- paste(data$Date, data$Time, sep=" ")
#create va... |
# flip coin / random dice simulator
library(shiny)
shinyUI(
fluidPage(
titlePanel("Coin Flip Simulator"),
sidebarLayout(
sidebarPanel(
sliderInput("prob", "What is the probability of getting tails?", min = 0, max = 1, val = 0.5),
sliderInput("obs", "How many times would you li... | /RandomizationSimulator/ui.R | permissive | melissavanbussel/shiny-apps | R | false | false | 617 | r | # flip coin / random dice simulator
library(shiny)
shinyUI(
fluidPage(
titlePanel("Coin Flip Simulator"),
sidebarLayout(
sidebarPanel(
sliderInput("prob", "What is the probability of getting tails?", min = 0, max = 1, val = 0.5),
sliderInput("obs", "How many times would you li... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vd_dir.R
\name{print.vd_dir}
\alias{print.vd_dir}
\title{Prints a vd_dir Object}
\usage{
\method{print}{vd_dir}(x, ...)
}
\arguments{
\item{x}{A vd_dir object.}
\item{\ldots}{ignored.}
}
\description{
Prints a vd_dir object
}
| /man/print.vd_dir.Rd | no_license | trinker/valiData | R | false | true | 305 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vd_dir.R
\name{print.vd_dir}
\alias{print.vd_dir}
\title{Prints a vd_dir Object}
\usage{
\method{print}{vd_dir}(x, ...)
}
\arguments{
\item{x}{A vd_dir object.}
\item{\ldots}{ignored.}
}
\description{
Prints a vd_dir object
}
|
#Set working directory
setwd("/Users/siwendeng/Downloads/VESTA_Strawberry/Phyloseq/Venn/")
#load R data and source itag_diversity scripts
load("/Users/siwendeng/Downloads/VESTA_Strawberry/Phyloseq/VESTA_Final_base.RData")
#install.packages("reshape")
library("reshape")
library("ggplot2")
library("VennDiagram")
library... | /Venn.R | no_license | siwendeng/Strawberry-Microbiome | R | false | false | 5,168 | r | #Set working directory
setwd("/Users/siwendeng/Downloads/VESTA_Strawberry/Phyloseq/Venn/")
#load R data and source itag_diversity scripts
load("/Users/siwendeng/Downloads/VESTA_Strawberry/Phyloseq/VESTA_Final_base.RData")
#install.packages("reshape")
library("reshape")
library("ggplot2")
library("VennDiagram")
library... |
app <- ShinyDriver$new("..")
app$snapshotInit("mytest")
app$snapshot()
app$setInputs(show = TRUE)
app$snapshot()
app$setInputs(tab = "tabPanel(\"Test\", \"Test page\")")
app$setInputs(select = TRUE)
app$setInputs(menuName = "More")
app$snapshot()
app$setInputs(go = "click")
app$setInputs(navbarPage = "Test")
app$snaps... | /insert-tab/tests/mytest.R | no_license | ErikaDva/shiny-test-apps | R | false | false | 1,514 | r | app <- ShinyDriver$new("..")
app$snapshotInit("mytest")
app$snapshot()
app$setInputs(show = TRUE)
app$snapshot()
app$setInputs(tab = "tabPanel(\"Test\", \"Test page\")")
app$setInputs(select = TRUE)
app$setInputs(menuName = "More")
app$snapshot()
app$setInputs(go = "click")
app$setInputs(navbarPage = "Test")
app$snaps... |
# compare reconstruction error of different complex moment types
#
# Author: Allison Irvine
###############################################################################
data(earth_200)
orders=c(25,50,100)
#continuous complex moments
#gpzm Generalized Pseudo-Zernike
#fm fourier mellin
#fc fourier chebyshev
#... | /demo/reconstruct_cmplx.R | no_license | cran/IM | R | false | false | 1,567 | r | # compare reconstruction error of different complex moment types
#
# Author: Allison Irvine
###############################################################################
data(earth_200)
orders=c(25,50,100)
#continuous complex moments
#gpzm Generalized Pseudo-Zernike
#fm fourier mellin
#fc fourier chebyshev
#... |
testlist <- list(a = 0L, b = 0L, x = c(1429143551L, 505085951L, 1526726654L, -11206656L, 16777215L, -15066369L, 503316480L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610132051-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 426 | r | testlist <- list(a = 0L, b = 0L, x = c(1429143551L, 505085951L, 1526726654L, -11206656L, 16777215L, -15066369L, 503316480L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... |
tar_test("tar_prune() works", {
pipeline <- pipeline_init(
list(
target_init("y1", quote(1 + 1)),
target_init("y2", quote(1 + 1)),
target_init("z", quote(y1 + y2))
)
)
local_init(pipeline = pipeline)$run()
tar_script(tar_pipeline(tar_target(y1, quote(1))))
tar_prune(callr_arguments =... | /tests/testthat/test-tar_prune.R | permissive | Robinlovelace/targets | R | false | false | 2,227 | r | tar_test("tar_prune() works", {
pipeline <- pipeline_init(
list(
target_init("y1", quote(1 + 1)),
target_init("y2", quote(1 + 1)),
target_init("z", quote(y1 + y2))
)
)
local_init(pipeline = pipeline)$run()
tar_script(tar_pipeline(tar_target(y1, quote(1))))
tar_prune(callr_arguments =... |
testlist <- list(doy = -1.72131968218785e+83, latitude = 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), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.8003850344468e+41, 2.68... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615831382-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 733 | r | testlist <- list(doy = -1.72131968218785e+83, latitude = 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), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.8003850344468e+41, 2.68... |
library(tidyverse)
# Load in table of nested CV results
f <- "/path/to/BLSFPASP_AGEs_RF_ModerateIsolatesRemoved_GSCV_NestedCVResults.csv"
p <- "/path/to/BLSFPASP_AGEs_RF_ModerateIsolatesRemoved_GSCV_NestedCVResults.pdf"
g <- "/path/to/BLSFPASP_AGEs_RF_ModerateIsolatesRemoved_GSCV_NestedCVResults.png"
CV_raw <- readr:... | /Plotting/BLSFPASP_AGEs_RF_ModerateIsolatesRemoved_NestedCVResults.R | no_license | nathanpincus/PA_Virulence_Prediction | R | false | false | 1,783 | r | library(tidyverse)
# Load in table of nested CV results
f <- "/path/to/BLSFPASP_AGEs_RF_ModerateIsolatesRemoved_GSCV_NestedCVResults.csv"
p <- "/path/to/BLSFPASP_AGEs_RF_ModerateIsolatesRemoved_GSCV_NestedCVResults.pdf"
g <- "/path/to/BLSFPASP_AGEs_RF_ModerateIsolatesRemoved_GSCV_NestedCVResults.png"
CV_raw <- readr:... |
# Read raster layer with the same extent and resolution,
# no matter if they are in different formats (reads all `raster`accepted formats
output$niche_layers <- renderPlot({
if(!is.null(rasterLayers())){
plot(rasterLayers()[[1]])
}
else{
messages <- "Load niche layers"
x <- -10:10
y <- x
plo... | /inst/shinyApp/server_funcs/niche_layers.R | no_license | luismurao/ntbox | R | false | false | 708 | r | # Read raster layer with the same extent and resolution,
# no matter if they are in different formats (reads all `raster`accepted formats
output$niche_layers <- renderPlot({
if(!is.null(rasterLayers())){
plot(rasterLayers()[[1]])
}
else{
messages <- "Load niche layers"
x <- -10:10
y <- x
plo... |
\name{remove_data_variables}
\alias{remove_data_variables}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Remove data variables
}
\description{
Remove data variables from the dataset.
}
\usage{
remove_data_variables(dataset, variables.to.remove,
by.index = FALSE)
}
%- maybe also 'usage' for ... | /man/remove_data_variables.Rd | no_license | BioSystemsUM/specmine | R | false | false | 1,059 | rd | \name{remove_data_variables}
\alias{remove_data_variables}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Remove data variables
}
\description{
Remove data variables from the dataset.
}
\usage{
remove_data_variables(dataset, variables.to.remove,
by.index = FALSE)
}
%- maybe also 'usage' for ... |
####### R SCRIPT FOR ANALYSIS OF DATA IN COOPER (2019) #######
## Reference: Cooper, K.M. (2019) A new machine learning approach to seabed biotope classification. Science Advances
## Required Files:
# 1. BiotopePredictionScript.R (i.e. this script. Available from https://doi.org/10.14466/CefasDataHub.72).
# 2. EUROP... | /BACKUP/BiotopePredictionScript_BACKUP.R | no_license | keithmcooper/BiotopePrediction | R | false | false | 50,173 | r | ####### R SCRIPT FOR ANALYSIS OF DATA IN COOPER (2019) #######
## Reference: Cooper, K.M. (2019) A new machine learning approach to seabed biotope classification. Science Advances
## Required Files:
# 1. BiotopePredictionScript.R (i.e. this script. Available from https://doi.org/10.14466/CefasDataHub.72).
# 2. EUROP... |
source("/home/binguo/pm2.5/dataorganize/weather_data.r")
location<-read.csv("/home/binguo/pm2.5/data_1_18/weather_data/weather_website.csv")
dir<-"/home/binguo/pm2.5/data_1_18/weather_data/data/"
writedir<-"/home/binguo/pm2.5/data_1_18/weather_data/data_organize/"
for(i in 156:dim(location)[1])
{
temp<-read.... | /old code/data_organize.r | no_license | haozhestat/WebCrawler_AirPollutionProject | R | false | false | 768 | r | source("/home/binguo/pm2.5/dataorganize/weather_data.r")
location<-read.csv("/home/binguo/pm2.5/data_1_18/weather_data/weather_website.csv")
dir<-"/home/binguo/pm2.5/data_1_18/weather_data/data/"
writedir<-"/home/binguo/pm2.5/data_1_18/weather_data/data_organize/"
for(i in 156:dim(location)[1])
{
temp<-read.... |
#' Simulation of clustering with firm and time effects.
#'
#' A dataset containing the 500 simulated firms over 10 years.
#' Originally created by Mitchell Petersen in conjunction with
#' Petersen (2009) and made available at
#' \url{http://www.kellogg.northwestern.edu/faculty/petersen/htm/papers/se/test_data.txt... | /multiwayvcov/R/petersen.r | no_license | ingted/R-Examples | R | false | false | 1,063 | r | #' Simulation of clustering with firm and time effects.
#'
#' A dataset containing the 500 simulated firms over 10 years.
#' Originally created by Mitchell Petersen in conjunction with
#' Petersen (2009) and made available at
#' \url{http://www.kellogg.northwestern.edu/faculty/petersen/htm/papers/se/test_data.txt... |
source('workflow/nhd_workflows/01_read.R')
source('workflow/nhd_workflows/02_frag_fix.R')
source('workflow/nhd_workflows/03_levelpath.R')
source('workflow/nhd_workflows/04_island_removal.R')
source('workflow/nhd_workflows/05_dissolve_headwaters.R')
nexus_prefix = "nex-"
catchment_prefix = "cat-"
waterbody_prefix =... | /workflow/nhd_workflows/00_runner_nhd.R | permissive | mikejohnson51/hydrofabrics | R | false | false | 4,896 | r | source('workflow/nhd_workflows/01_read.R')
source('workflow/nhd_workflows/02_frag_fix.R')
source('workflow/nhd_workflows/03_levelpath.R')
source('workflow/nhd_workflows/04_island_removal.R')
source('workflow/nhd_workflows/05_dissolve_headwaters.R')
nexus_prefix = "nex-"
catchment_prefix = "cat-"
waterbody_prefix =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{vis.pca}
\alias{vis.pca}
\title{PCA result visualisation}
\usage{
vis.pca(.data, .groups = NA, .text = T)
}
\arguments{
\item{.data}{Result from prcomp() function or a data frame with two columns 'First' and 'Second'
stands for ... | /fuzzedpackages/tcR/man/vis.pca.Rd | no_license | akhikolla/testpackages | R | false | true | 736 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{vis.pca}
\alias{vis.pca}
\title{PCA result visualisation}
\usage{
vis.pca(.data, .groups = NA, .text = T)
}
\arguments{
\item{.data}{Result from prcomp() function or a data frame with two columns 'First' and 'Second'
stands for ... |
library(data.table)
db.loss <- fread("db-loss.tsv")
path <- db.loss[, {
print(prob.id)
loss.dt <- data.table(.SD)
(loss.inc <- loss.dt[, list(
total.loss=total.loss[which.min(time.computed)]
), by=list(peaks)][order(peaks)])
loss.inc[, cummin := cummin(total.loss)]
loss.min <- loss.inc[total.loss==cummi... | /db-loss.R | no_license | tdhock/fullpath | R | false | false | 659 | r | library(data.table)
db.loss <- fread("db-loss.tsv")
path <- db.loss[, {
print(prob.id)
loss.dt <- data.table(.SD)
(loss.inc <- loss.dt[, list(
total.loss=total.loss[which.min(time.computed)]
), by=list(peaks)][order(peaks)])
loss.inc[, cummin := cummin(total.loss)]
loss.min <- loss.inc[total.loss==cummi... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53812476784589e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615772080-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53812476784589e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
#####################################################################
# this program makes the county borders for washington metro area
# April 1, 2019
# acs_county_borders_v04.R
##############################################################################
##### A. start-up and set-up
library(RColorBrewer)
librar... | /r_programs/2020/old/acs_county_borders_v04.R | no_license | chirag-jhamb/us_census_data_study | R | false | false | 14,101 | r | #####################################################################
# this program makes the county borders for washington metro area
# April 1, 2019
# acs_county_borders_v04.R
##############################################################################
##### A. start-up and set-up
library(RColorBrewer)
librar... |
#' SEC Filing Information
#'
#' The SEC generates a html page as an index for every filing it receives containing
#' all the meta-information about the filing.
#'
#' Information returned:
#' \itemize{
#' \item type
#' \item description
#' \item accession_number
#' \item filing_date
#' \item accepted_date
#' \item... | /R/filing_information.R | permissive | Feihelan/edgarWebR | R | false | false | 2,418 | r | #' SEC Filing Information
#'
#' The SEC generates a html page as an index for every filing it receives containing
#' all the meta-information about the filing.
#'
#' Information returned:
#' \itemize{
#' \item type
#' \item description
#' \item accession_number
#' \item filing_date
#' \item accepted_date
#' \item... |
library(ape)
testtree <- read.tree("3662_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3662_0_unrooted.txt") | /codeml_files/newick_trees_processed/3662_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("3662_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3662_0_unrooted.txt") |
## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(datamaps)
## ------------------------------------------------------------------------
# Fake data
st <- c("AR", "NY", "CA", "IL", "CO", "MT", "TX", "OK", "AL", "NM... | /data/genthat_extracted_code/datamaps/vignettes/get_started.R | no_license | surayaaramli/typeRrh | R | false | false | 4,866 | r | ## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(datamaps)
## ------------------------------------------------------------------------
# Fake data
st <- c("AR", "NY", "CA", "IL", "CO", "MT", "TX", "OK", "AL", "NM... |
#run this script in linux system and oracle java
source('/mnt/md1200/2/scRNA_Seq/Cleandata/cellrouter-master/CellRouter_Class.R')
libdir <- '/mnt/md1200/2/scRNA_Seq/Cleandata/cellrouter-master/CellRouter/'
library(dplyr)
library(plotrix)
matrix=read.table("/mnt/md1200/2/scRNA_Seq/Cleandata/HP1/cellrangerRkit/HP1P_outs/... | /Bone_Marrow_CellRouter.R | no_license | mcdullzjm/scRNA-seq | R | false | false | 9,150 | r | #run this script in linux system and oracle java
source('/mnt/md1200/2/scRNA_Seq/Cleandata/cellrouter-master/CellRouter_Class.R')
libdir <- '/mnt/md1200/2/scRNA_Seq/Cleandata/cellrouter-master/CellRouter/'
library(dplyr)
library(plotrix)
matrix=read.table("/mnt/md1200/2/scRNA_Seq/Cleandata/HP1/cellrangerRkit/HP1P_outs/... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/texreg.R
\name{htmlreg}
\alias{htmlreg}
\title{Convert regression output to a HTML table}
\usage{
htmlreg(
l,
file = NULL,
single.row = FALSE,
stars = c(0.001, 0.01, 0.05),
custom.model.names = NULL,
custom.coef.names = NULL,
cu... | /man/htmlreg.Rd | no_license | zauster/texreg | R | false | true | 22,559 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/texreg.R
\name{htmlreg}
\alias{htmlreg}
\title{Convert regression output to a HTML table}
\usage{
htmlreg(
l,
file = NULL,
single.row = FALSE,
stars = c(0.001, 0.01, 0.05),
custom.model.names = NULL,
custom.coef.names = NULL,
cu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/content_functions.R
\name{datafeedstatuses.get}
\alias{datafeedstatuses.get}
\title{Retrieves the status of a datafeed from your Merchant Center account. This method can only be called for non-multi-client accounts.}
\usage{
datafeedstatuses.... | /googlecontentv2.auto/man/datafeedstatuses.get.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 902 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/content_functions.R
\name{datafeedstatuses.get}
\alias{datafeedstatuses.get}
\title{Retrieves the status of a datafeed from your Merchant Center account. This method can only be called for non-multi-client accounts.}
\usage{
datafeedstatuses.... |
#' Cook's distance
#'
#' \code{Cook} plots Cook's distance for each age to age factor relatively to the linear model they belong.
#'
#' @param triangle Cumulated triangle as a matrix
#' @return a data.frame with Cook's distances as well as a plot displaying them
#'
#' @examples Cook(triangleExampleEngland)
#'
#' @expor... | /R/Cook.R | no_license | ArnaudBu/ReservingLad | R | false | false | 1,714 | r | #' Cook's distance
#'
#' \code{Cook} plots Cook's distance for each age to age factor relatively to the linear model they belong.
#'
#' @param triangle Cumulated triangle as a matrix
#' @return a data.frame with Cook's distances as well as a plot displaying them
#'
#' @examples Cook(triangleExampleEngland)
#'
#' @expor... |
testlist <- list(doy = c(-Inf, 0), latitude = c(-6.96458622264812e-107, 1.86807199752012e+112, -Inf, 2.00994342527714e-162, 1.81541609400943e-79, 7.89363005545926e+139, 2.3317908961407e-93, NaN, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615834467-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 421 | r | testlist <- list(doy = c(-Inf, 0), latitude = c(-6.96458622264812e-107, 1.86807199752012e+112, -Inf, 2.00994342527714e-162, 1.81541609400943e-79, 7.89363005545926e+139, 2.3317908961407e-93, NaN, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_rsq.r
\name{contingency}
\alias{contingency}
\title{Obtain 2x2 contingency table from marginal parameters and odds ratio}
\usage{
contingency(af, prop, odds_ratio, eps = 1e-15)
}
\arguments{
\item{af}{Allele frequency of effect allele.}
... | /man/contingency.Rd | permissive | MRCIEU/TwoSampleMR | R | false | true | 593 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_rsq.r
\name{contingency}
\alias{contingency}
\title{Obtain 2x2 contingency table from marginal parameters and odds ratio}
\usage{
contingency(af, prop, odds_ratio, eps = 1e-15)
}
\arguments{
\item{af}{Allele frequency of effect allele.}
... |
#' @title Classical decomposition method for seasonality estimation
#'
#' @description Estimates the seasonality at different levels by
#' subtracting the mean for additive seasonality
#' (dividing for multiplicative) and then averaging across
#' the entire data.
#'
#' @param d the actual data.
#'
... | /R/classical.R | no_license | anupamal14/twoStageForecast_v0 | R | false | false | 572 | r | #' @title Classical decomposition method for seasonality estimation
#'
#' @description Estimates the seasonality at different levels by
#' subtracting the mean for additive seasonality
#' (dividing for multiplicative) and then averaging across
#' the entire data.
#'
#' @param d the actual data.
#'
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/algae.r
\name{algae}
\alias{algae}
\title{Algae metrics}
\usage{
algae(data)
}
\arguments{
\item{data}{Input data}
}
\description{
Algae metrics
}
\examples{
algae(sampdat)
}
| /man/algae.Rd | no_license | qthi24/PHABMetrics | R | false | true | 253 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/algae.r
\name{algae}
\alias{algae}
\title{Algae metrics}
\usage{
algae(data)
}
\arguments{
\item{data}{Input data}
}
\description{
Algae metrics
}
\examples{
algae(sampdat)
}
|
#' kmeans+++. You can specify some centers meaningly and others randomly based on the method of kmeans++.
#' @param x input data
#' @param k number of clusters
#' @param centers_manual partial or all selection of initial centers
#' @param scale TRUE or FALSE to scale x
#' @param iter.max the maximum number of iteration... | /R/kmeansp3.R | no_license | atusy/mytools | R | false | false | 2,809 | r | #' kmeans+++. You can specify some centers meaningly and others randomly based on the method of kmeans++.
#' @param x input data
#' @param k number of clusters
#' @param centers_manual partial or all selection of initial centers
#' @param scale TRUE or FALSE to scale x
#' @param iter.max the maximum number of iteration... |
context("General functions")
test_that("Generate FORCE folder structure", {
forcefolder <- tempdir()
fldrs <- setFolders(forcefolder)
expect_equal(fldrs[['tmpfolder']], file.path(forcefolder, 'temp'))
expect_equal(file.exists(fldrs[['tmpfolder']]),TRUE)
expect_equal(fldrs[['l1folder']], file.path(forcefolder... | /tests/testthat/test-general.R | permissive | RETURN-project/UpscaleRecovery | R | false | false | 3,995 | r | context("General functions")
test_that("Generate FORCE folder structure", {
forcefolder <- tempdir()
fldrs <- setFolders(forcefolder)
expect_equal(fldrs[['tmpfolder']], file.path(forcefolder, 'temp'))
expect_equal(file.exists(fldrs[['tmpfolder']]),TRUE)
expect_equal(fldrs[['l1folder']], file.path(forcefolder... |
dyn.load("MrE_Engine.dll")
.C("sumSeq", start = as.integer(10), size = as.integer(5), sumVect = as.integer(rep(0, 5)))
.C("fiboSeq", size = as.integer(5), sumVect = as.integer(rep(0, 5)))
.C("sumSeq", start = as.integer(10), size = as.integer(5), sumVect = as.integer(rep(0, 5)))$sumVect
.C("fiboSeq", size = as.integer(... | /CLibraryMrEEngine/Test.R | no_license | ProvenSecureSolutionsLLC/CFT2-MrE | R | false | false | 366 | r | dyn.load("MrE_Engine.dll")
.C("sumSeq", start = as.integer(10), size = as.integer(5), sumVect = as.integer(rep(0, 5)))
.C("fiboSeq", size = as.integer(5), sumVect = as.integer(rep(0, 5)))
.C("sumSeq", start = as.integer(10), size = as.integer(5), sumVect = as.integer(rep(0, 5)))$sumVect
.C("fiboSeq", size = as.integer(... |
# Run this script FIRST. It invokes some libraries and define some functions
# Place newer function FIRST and more generic older TESTED functions
# further down below.
library(scales)
library(dplyr)
library(timeDate)
library(zoo)
library(... | /StartUp.R | no_license | ChristoGH/scaling-archer | R | false | false | 7,885 | r | # Run this script FIRST. It invokes some libraries and define some functions
# Place newer function FIRST and more generic older TESTED functions
# further down below.
library(scales)
library(dplyr)
library(timeDate)
library(zoo)
library(... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/sampleEntropy.R
\name{sampleEntropy}
\alias{embeddingDims.sampleEntropy}
\alias{estimate.sampleEntropy}
\alias{nlOrder.sampleEntropy}
\alias{plot.sampleEntropy}
\alias{radius.sampleEntropy}
\alias{sampleEntropy}
\alias{sampleEntropyFu... | /man/sampleEntropy.Rd | no_license | suvo-ee16s073/nonlinearTseries | R | false | false | 5,282 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/sampleEntropy.R
\name{sampleEntropy}
\alias{embeddingDims.sampleEntropy}
\alias{estimate.sampleEntropy}
\alias{nlOrder.sampleEntropy}
\alias{plot.sampleEntropy}
\alias{radius.sampleEntropy}
\alias{sampleEntropy}
\alias{sampleEntropyFu... |
library(ggplot2)
library(rgl)
# setting up the Column Headers and the categories for the network networkData
networknetworkData <- read.csv(file = "/Users/zachariahpelletier/PycharmProjects/r-format-factory/Processed_Data/KDD.csv", header=FALSE)
colnames(networkData) = c("duration", "protocol_type", "service", "flag"... | /pre_process.R | no_license | Derrezed-Fez/network-analysis | R | false | false | 6,678 | r | library(ggplot2)
library(rgl)
# setting up the Column Headers and the categories for the network networkData
networknetworkData <- read.csv(file = "/Users/zachariahpelletier/PycharmProjects/r-format-factory/Processed_Data/KDD.csv", header=FALSE)
colnames(networkData) = c("duration", "protocol_type", "service", "flag"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/relsurv.varHaz.fixed.R
\name{varHaz.fixed}
\alias{varHaz.fixed}
\title{Upgrade the varHaz object}
\usage{
varHaz.fixed(varHaz, link_trans, varHaz_original)
}
\arguments{
\item{varHaz}{The varHaz object (present in a msfit object).}
... | /man/varHaz.fixed.Rd | no_license | cran/mstate | R | false | true | 920 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/relsurv.varHaz.fixed.R
\name{varHaz.fixed}
\alias{varHaz.fixed}
\title{Upgrade the varHaz object}
\usage{
varHaz.fixed(varHaz, link_trans, varHaz_original)
}
\arguments{
\item{varHaz}{The varHaz object (present in a msfit object).}
... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/breast.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.7,family="gaussian",standardize=TRUE)
sink('./breast_073.txt',append=TRUE)
prin... | /Model/EN/AvgRank/breast/breast_073.R | no_license | esbgkannan/QSMART | R | false | false | 345 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/breast.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.7,family="gaussian",standardize=TRUE)
sink('./breast_073.txt',append=TRUE)
prin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{buildServer}
\alias{buildServer}
\title{buildServer}
\usage{
buildServer(name, dbms, hostname, port, databases)
}
\value{
a Server instance
}
\description{
buildServer
}
\details{
Creates Server which can contain 1 or more databa... | /pregnancy episodes and outcomes/man/buildServer.Rd | permissive | himschoota/PhenotypeLibrary | R | false | true | 337 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{buildServer}
\alias{buildServer}
\title{buildServer}
\usage{
buildServer(name, dbms, hostname, port, databases)
}
\value{
a Server instance
}
\description{
buildServer
}
\details{
Creates Server which can contain 1 or more databa... |
library(ggplot2)
library(plotly,warn.conflicts = FALSE)
library(dplyr,warn.conflicts = FALSE)
#install.packages("ggplot2",lib="/usr/local/lib/R/site-library")
#library(ggplot2)
library(RColorBrewer)
#install.packages("ggrepel")
library(ggrepel)
library(scales)
#source("~/Documents/NYC/Shiny Proj/Youtube/Shiny_youtube... | /server.R | no_license | vickywinter/Youtube_shiny | R | false | false | 1,318 | r |
library(ggplot2)
library(plotly,warn.conflicts = FALSE)
library(dplyr,warn.conflicts = FALSE)
#install.packages("ggplot2",lib="/usr/local/lib/R/site-library")
#library(ggplot2)
library(RColorBrewer)
#install.packages("ggrepel")
library(ggrepel)
library(scales)
#source("~/Documents/NYC/Shiny Proj/Youtube/Shiny_youtube... |
#######
#######
#######
#######
#######
#######
#######
####### Time Series Model for NASDAQ
#######
#######
#######
#######
#######
#######
#######
##
####
######
# LOADING DATA, PACKAGES
######
####
##
print("Time Series Model for NASDAQ")
dataMaster <- read.csv("/home/dc/myProjects/learn/learnCode/dataScienc... | /scriptsR/timeSeries/timeSeries_nyse.R | no_license | lishulincug/dataScience_stockMarket | R | false | false | 10,457 | r | #######
#######
#######
#######
#######
#######
#######
####### Time Series Model for NASDAQ
#######
#######
#######
#######
#######
#######
#######
##
####
######
# LOADING DATA, PACKAGES
######
####
##
print("Time Series Model for NASDAQ")
dataMaster <- read.csv("/home/dc/myProjects/learn/learnCode/dataScienc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/launchCerebroV1.3.R
\name{launchCerebroV1.3}
\alias{launchCerebroV1.3}
\title{Launch Cerebro v1.3}
\usage{
launchCerebroV1.3(
mode = "open",
maxFileSize = 800,
crb_file_to_load = NULL,
welcome_message = NULL,
projections_default_poi... | /man/launchCerebroV1.3.Rd | permissive | romanhaa/cerebroApp | R | false | true | 1,952 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/launchCerebroV1.3.R
\name{launchCerebroV1.3}
\alias{launchCerebroV1.3}
\title{Launch Cerebro v1.3}
\usage{
launchCerebroV1.3(
mode = "open",
maxFileSize = 800,
crb_file_to_load = NULL,
welcome_message = NULL,
projections_default_poi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pbapply.R
\name{pbapply}
\alias{pbapply}
\alias{pblapply}
\alias{pbreplicate}
\alias{pbsapply}
\title{\code{apply} family functions with progress bars}
\usage{
pbapply(X, MARGIN, FUN, ...)
pbsapply(X, FUN, ..., simplify = TRUE, USE.NAMES = T... | /man/pbapply.Rd | no_license | sboysel/pbapply | R | false | true | 2,069 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pbapply.R
\name{pbapply}
\alias{pbapply}
\alias{pblapply}
\alias{pbreplicate}
\alias{pbsapply}
\title{\code{apply} family functions with progress bars}
\usage{
pbapply(X, MARGIN, FUN, ...)
pbsapply(X, FUN, ..., simplify = TRUE, USE.NAMES = T... |
## ========================= mgFeature Class ========================
#' mgFeature-class object
#'
#' Object contains taxonomic annotation and reference sequence data for
#' classified OTUs. The class extends the \link[S4Vectors]{DataFrame}
#' class with a slot with a subset of the reference database sequences and
#' p... | /R/mgFeatures-class.R | no_license | jnpaulson/metagenomeFeatures | R | false | false | 3,882 | r | ## ========================= mgFeature Class ========================
#' mgFeature-class object
#'
#' Object contains taxonomic annotation and reference sequence data for
#' classified OTUs. The class extends the \link[S4Vectors]{DataFrame}
#' class with a slot with a subset of the reference database sequences and
#' p... |
library(ape)
testtree <- read.tree("13243_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="13243_0_unrooted.txt") | /codeml_files/newick_trees_processed/13243_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("13243_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="13243_0_unrooted.txt") |
#Getting Zip
#http://www.markit.com/news/InterestRates_USD_20160102.zip
temp <- tempfile()
download.file("http://www.markit.com/news/InterestRates_USD_20160102.zip",temp)
temp_xml <- unz(temp, "InterestRates_USD_20160102.xml")
xmldoc<- readChar(temp_xml, file.info(temp_xml$size))
unlink(temp)
| /Unzip.R | no_license | Claudio911015/FinanceInR1 | R | false | false | 295 | r | #Getting Zip
#http://www.markit.com/news/InterestRates_USD_20160102.zip
temp <- tempfile()
download.file("http://www.markit.com/news/InterestRates_USD_20160102.zip",temp)
temp_xml <- unz(temp, "InterestRates_USD_20160102.xml")
xmldoc<- readChar(temp_xml, file.info(temp_xml$size))
unlink(temp)
|
{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf500
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww15320\viewh6780\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803... | /Scripts.r | no_license | oOrtegon/Experiments | R | false | false | 2,575 | r | {\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf500
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww15320\viewh6780\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803... |
library(shiny)
library(ggplot2)
library(ggvis)
library(ggthemes)
library(reshape2)
library(lubridate)
library(dplyr)
options(shiny.reactlog=TRUE)
server <- function(input, output, session) {
myplot1 <- function(DF, year) {
# plot function for the Huglin Index as a function of day number
mypalette <- c("#... | /server.R | no_license | paulvanoppen/Huglin_index | R | false | false | 9,670 | r | library(shiny)
library(ggplot2)
library(ggvis)
library(ggthemes)
library(reshape2)
library(lubridate)
library(dplyr)
options(shiny.reactlog=TRUE)
server <- function(input, output, session) {
myplot1 <- function(DF, year) {
# plot function for the Huglin Index as a function of day number
mypalette <- c("#... |
library(tidyverse)
library(lme4)
library(lme4)
library(lme4)
library(data.table)
out_dir <- "/Volumes/GoogleDrive/My Drive/SCEPTIC_fMRI/dan_medusa"
#repo_directory <- "~/code/clock_analysis"
# repo_directory <- "~/Data_Analysis/clock_analysis"
repo_directory <- "~/code/clock_analysis"
visuomotor_long <- TRUE # what ... | /fmri/keuka_brain_behavior_analyses/dan/medusa_final/dan_medusa_fmri_encode_meg_betas.R | no_license | UNCDEPENdLab/clock_analysis | R | false | false | 12,216 | r | library(tidyverse)
library(lme4)
library(lme4)
library(lme4)
library(data.table)
out_dir <- "/Volumes/GoogleDrive/My Drive/SCEPTIC_fMRI/dan_medusa"
#repo_directory <- "~/code/clock_analysis"
# repo_directory <- "~/Data_Analysis/clock_analysis"
repo_directory <- "~/code/clock_analysis"
visuomotor_long <- TRUE # what ... |
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_modeltime_batch_modeltime_xml
#'
#' Construct XML data structure for \code{modeltime.xml}.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on command
#' @return Depends on \code{command}: either... | /R/zchunk_batch_modeltime_xml.R | permissive | JGCRI/gcamdata | R | false | false | 1,420 | r | # Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_modeltime_batch_modeltime_xml
#'
#' Construct XML data structure for \code{modeltime.xml}.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on command
#' @return Depends on \code{command}: either... |
library(DescTools)
### Name: BubbleLegend
### Title: Add a Legend to a Bubble Plot
### Aliases: BubbleLegend
### Keywords: aplot
### ** Examples
PlotBubble(x=d.pizza$delivery_min, y=d.pizza$temperature, area=d.pizza$price,
xlab="delivery time", ylab="temperature",
col=SetAlpha(as.numeric(d.piz... | /data/genthat_extracted_code/DescTools/examples/BubbleLegend.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 667 | r | library(DescTools)
### Name: BubbleLegend
### Title: Add a Legend to a Bubble Plot
### Aliases: BubbleLegend
### Keywords: aplot
### ** Examples
PlotBubble(x=d.pizza$delivery_min, y=d.pizza$temperature, area=d.pizza$price,
xlab="delivery time", ylab="temperature",
col=SetAlpha(as.numeric(d.piz... |
\name{unlistDF}
\alias{unlistDF}
\title{"Unlist" a \code{list} of \code{data.frame}s to your workspace}
\usage{
unlistDF(mylist)
}
\arguments{
\item{mylist}{The name of your \code{list} object}
}
\description{
Many people like the convenience that a \code{list} of
\code{data.frame}s offer; however, some would p... | /man/unlistDF.Rd | no_license | mrdwab/AMsnippets | R | false | false | 1,057 | rd | \name{unlistDF}
\alias{unlistDF}
\title{"Unlist" a \code{list} of \code{data.frame}s to your workspace}
\usage{
unlistDF(mylist)
}
\arguments{
\item{mylist}{The name of your \code{list} object}
}
\description{
Many people like the convenience that a \code{list} of
\code{data.frame}s offer; however, some would p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_pa_graph.R
\name{add_pa_graph}
\alias{add_pa_graph}
\title{Add a preferential attachment graph}
\usage{
add_pa_graph(graph, n, m = NULL, power = 1, out_dist = NULL,
use_total_degree = FALSE, zero_appeal = 1, algo = "psumtree",
type = ... | /man/add_pa_graph.Rd | permissive | carlosal1015/DiagrammeR | R | false | true | 3,898 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_pa_graph.R
\name{add_pa_graph}
\alias{add_pa_graph}
\title{Add a preferential attachment graph}
\usage{
add_pa_graph(graph, n, m = NULL, power = 1, out_dist = NULL,
use_total_degree = FALSE, zero_appeal = 1, algo = "psumtree",
type = ... |
testlist <- list(data = structure(c(3.21991641333768e-310, 3.45845952088873e-322, 2.47810233574683e-307, 1.32548927588006e-309, 3.11976262167388e-05, 1.58456325028529e+29, 0, 0, 0, 0), .Dim = c(5L, 2L)), 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/1610554604-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 282 | r | testlist <- list(data = structure(c(3.21991641333768e-310, 3.45845952088873e-322, 2.47810233574683e-307, 1.32548927588006e-309, 3.11976262167388e-05, 1.58456325028529e+29, 0, 0, 0, 0), .Dim = c(5L, 2L)), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) |
context("term_stats")
test_that("'term_stats' works", {
expect_equal(term_stats("A rose is a rose is a rose."),
structure(data.frame(term = c("a", "rose", "is", "."),
count = c(3, 3, 2, 1),
support = c(1, 1, 1, 1),
... | /tests/testthat/test-term_stats.R | permissive | cran/corpus | R | false | false | 4,773 | r | context("term_stats")
test_that("'term_stats' works", {
expect_equal(term_stats("A rose is a rose is a rose."),
structure(data.frame(term = c("a", "rose", "is", "."),
count = c(3, 3, 2, 1),
support = c(1, 1, 1, 1),
... |
library(FSelector);
data <- read.csv("permission_train.csv");
results <- chi.squared(type ~, data);
subset <- cutoff.k(results,5); #5 here means the first 5 features
f <- as.simple.formula(subset, "type") | /Thesis codes/Chi-square.R | no_license | toktok911/Master_Thesis | R | false | false | 209 | r | library(FSelector);
data <- read.csv("permission_train.csv");
results <- chi.squared(type ~, data);
subset <- cutoff.k(results,5); #5 here means the first 5 features
f <- as.simple.formula(subset, "type") |
## example
## obj = AnnotationHub$foo.adir.gr1.rda
### A few other helpful methods. TODO: move these?
########################################
## Methods for exploring metatdata
#####################################
## Before I go any further I need helper methods that will get me a list of
## files based on only... | /R/filter.R | no_license | dtenenba/AnnotationHub.new | R | false | false | 5,712 | r | ## example
## obj = AnnotationHub$foo.adir.gr1.rda
### A few other helpful methods. TODO: move these?
########################################
## Methods for exploring metatdata
#####################################
## Before I go any further I need helper methods that will get me a list of
## files based on only... |
#' @title Rayleigh sampler
#' @description Rayleigh sampler using acceptance-rejection method
#' @param n size of the random number
#' @param sigma parameter of rayleigh density
#' @return Rayleigh random number and iteration times
#' @examples
#' \dontrun{
#' n <- 1000
#' sigma <- 1
#' x <- Rayleigh(n, sigma)
#' }
#' ... | /R/functions.R | no_license | Miyastat/StatComp20073 | R | false | false | 627 | r | #' @title Rayleigh sampler
#' @description Rayleigh sampler using acceptance-rejection method
#' @param n size of the random number
#' @param sigma parameter of rayleigh density
#' @return Rayleigh random number and iteration times
#' @examples
#' \dontrun{
#' n <- 1000
#' sigma <- 1
#' x <- Rayleigh(n, sigma)
#' }
#' ... |
## Project Getting & Cleaning Data
## Phase 1: verify needed libraries
install.packages("data.table")
library(data.table)
install.packages("dplyr")
library(dplyr)
install.packages("sqldf")
library(sqldf)
install.packages("reshape2")
library(reshape2)
## Phase 2: verify directory
if(!file.exists("GDCproj")){dir.cre... | /run_analysis.R | no_license | ds598p/GCD_Project | R | false | false | 2,279 | r | ## Project Getting & Cleaning Data
## Phase 1: verify needed libraries
install.packages("data.table")
library(data.table)
install.packages("dplyr")
library(dplyr)
install.packages("sqldf")
library(sqldf)
install.packages("reshape2")
library(reshape2)
## Phase 2: verify directory
if(!file.exists("GDCproj")){dir.cre... |
% Auto-generated: do not edit by hand
\name{sideBar}
\alias{sideBar}
\title{SideBar component}
\description{
A collapsible side bar for your dashboard, with icons from Font Awesome
}
\usage{
sideBar(children=NULL, id=NULL, className=NULL, bg_color=NULL,
text_color=NULL)
}
\arguments{
\item{children}{A list of or a... | /man/sideBar.Rd | no_license | pkozilekmm/dash_trich_components | R | false | false | 696 | rd | % Auto-generated: do not edit by hand
\name{sideBar}
\alias{sideBar}
\title{SideBar component}
\description{
A collapsible side bar for your dashboard, with icons from Font Awesome
}
\usage{
sideBar(children=NULL, id=NULL, className=NULL, bg_color=NULL,
text_color=NULL)
}
\arguments{
\item{children}{A list of or a... |
df.season <- data.frame(source = 'fandom', season = seq(10), summary="")
df.season$summary <- as.character(df.season$summary)
for (seas in seq(10)) {
url_ <- paste("http://friends.wikia.com/wiki/Season_", seas, sep="")
page <- read_html(url_)
tt <- page %>% html_nodes('p')
summ_ <- ""
for (ll i... | /Rscript/scrape_fandom.R | no_license | amerval/RNN-friends | R | false | false | 2,717 | r |
df.season <- data.frame(source = 'fandom', season = seq(10), summary="")
df.season$summary <- as.character(df.season$summary)
for (seas in seq(10)) {
url_ <- paste("http://friends.wikia.com/wiki/Season_", seas, sep="")
page <- read_html(url_)
tt <- page %>% html_nodes('p')
summ_ <- ""
for (ll i... |
.onAttach <- function(...) {
packageStartupMessage("Welcome to archivist.github (ver: ", utils::packageVersion("archivist.github"), ").")
}
.onLoad <- function(...) {
archivist::aoptions("readmeDescription", "A [`Repository`](https://github.com/pbiecek/archivist/wiki/archivist-package-Repository) of R artifact... | /R/zzz.R | no_license | MarcinKosinski/archivist.github | R | false | false | 1,220 | r | .onAttach <- function(...) {
packageStartupMessage("Welcome to archivist.github (ver: ", utils::packageVersion("archivist.github"), ").")
}
.onLoad <- function(...) {
archivist::aoptions("readmeDescription", "A [`Repository`](https://github.com/pbiecek/archivist/wiki/archivist-package-Repository) of R artifact... |
testlist <- list(alpha = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0... | /o2geosocial/inst/testfiles/cpp_find_descendents/libFuzzer_cpp_find_descendents/cpp_find_descendents_valgrind_files/1612732674-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 522 | r | testlist <- list(alpha = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/score.R
\name{score}
\alias{score}
\title{Score a package assement, collapsing results into a single numeric}
\usage{
score(x, ..., error_handler = score_error_default)
}
\arguments{
\item{x}{a \code{pkg_metric} object, whose subclass is used... | /man/score.Rd | permissive | elimillera/riskmetric | R | false | true | 2,099 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/score.R
\name{score}
\alias{score}
\title{Score a package assement, collapsing results into a single numeric}
\usage{
score(x, ..., error_handler = score_error_default)
}
\arguments{
\item{x}{a \code{pkg_metric} object, whose subclass is used... |
#Calculo de la energia solar fotovoltaica producida
EREAL<- list()
EPRONOSTICO<- list()
Wp=375*10^6 # capacidad instalada#9MWp para bogota
mf=0.85 # factor de desajuste
e=0.64 #eficiencia conbinada--- baterias (0.8),controlador(0.9), inversor(0.9)
for (j in 1:maxP) {
if (j==1) {
EREAL[[j]]<- wComp24[,8]*... | /storage/app/templates/1/rscript/main/funciones/ESOLAR.R | permissive | davidpachonc/maep-backend | R | false | false | 554 | r | #Calculo de la energia solar fotovoltaica producida
EREAL<- list()
EPRONOSTICO<- list()
Wp=375*10^6 # capacidad instalada#9MWp para bogota
mf=0.85 # factor de desajuste
e=0.64 #eficiencia conbinada--- baterias (0.8),controlador(0.9), inversor(0.9)
for (j in 1:maxP) {
if (j==1) {
EREAL[[j]]<- wComp24[,8]*... |
\name{dcOzaki}
\alias{dcOzaki}
\title{Approximated conditional law of a diffusion process by Ozaki's method}
\description{
Approximated conditional densities for \eqn{X(t) | X(t_0) = x_0}{X(t) | X(t0) = x0} of a diffusion process.}
\usage{
dcOzaki(x, t, x0, t0, theta, d, dx, s, log=FALSE)
}
\arguments{
\item{x}{vecto... | /man/dcOzaki.Rd | no_license | cran/sde | R | false | false | 1,364 | rd | \name{dcOzaki}
\alias{dcOzaki}
\title{Approximated conditional law of a diffusion process by Ozaki's method}
\description{
Approximated conditional densities for \eqn{X(t) | X(t_0) = x_0}{X(t) | X(t0) = x0} of a diffusion process.}
\usage{
dcOzaki(x, t, x0, t0, theta, d, dx, s, log=FALSE)
}
\arguments{
\item{x}{vecto... |
# == title
# Get Row Order from a Heatmap List
#
# == param
# -object A `HeatmapList-class` object.
# -name Name of a specific heatmap.
#
# == value
# The format of the returned object depends on whether rows/columns of the heatmaps are split.
#
# == author
# Zuguang Gu <z.gu@dkfz.de>
#
# == example
# mat = matrix(rno... | /R/HeatmapList-get_order.R | permissive | jokergoo/ComplexHeatmap | R | false | false | 12,111 | r |
# == title
# Get Row Order from a Heatmap List
#
# == param
# -object A `HeatmapList-class` object.
# -name Name of a specific heatmap.
#
# == value
# The format of the returned object depends on whether rows/columns of the heatmaps are split.
#
# == author
# Zuguang Gu <z.gu@dkfz.de>
#
# == example
# mat = matrix(rno... |
# this script converts TrackReport perimeter point cloud data from weird .csv
# to Excel sheets for each time interval in x,y pairs
#
library(xlsx)
#
# USER INPUT: LIST TIMES TO WRITE(SEPARATED BY COMMAS)
time_list = c(seq(from = 10,to = 100,by = 10), 142.5)
#
# Choose TrackReport File
fileName <- choose.f... | /convertperimeter.r | no_license | E1kT6MNF/TrackImage-R-Scripts | R | false | false | 2,059 | r | # this script converts TrackReport perimeter point cloud data from weird .csv
# to Excel sheets for each time interval in x,y pairs
#
library(xlsx)
#
# USER INPUT: LIST TIMES TO WRITE(SEPARATED BY COMMAS)
time_list = c(seq(from = 10,to = 100,by = 10), 142.5)
#
# Choose TrackReport File
fileName <- choose.f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.