content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... | /Simulations/Scripts/R/Rare/Scenario 19/CMPEn50KrareScen19CC.R | no_license | yadevi/CausalMPE | R | false | false | 4,223 | r | rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... |
parse.odf.file = function( fn ) {
dta = readLines(fn )
nheaderlines = grep( "-- DATA --", dta, fixed=T, useBytes=TRUE )
header = dta[1: nheaderlines]
mis = strsplit(header[grep('CRUISE_NUMBER=',header)],"CRUISE_NUMBER='")[[1]][2]
mis = gsub("',","",mis)
set = strsplit(header[grep('EVENT_NUMBER=',header)],... | /common/src/_Rfunctions/fileformats/parse.odf.file.r | no_license | AMCOOK/ecomod | R | false | false | 2,247 | r |
parse.odf.file = function( fn ) {
dta = readLines(fn )
nheaderlines = grep( "-- DATA --", dta, fixed=T, useBytes=TRUE )
header = dta[1: nheaderlines]
mis = strsplit(header[grep('CRUISE_NUMBER=',header)],"CRUISE_NUMBER='")[[1]][2]
mis = gsub("',","",mis)
set = strsplit(header[grep('EVENT_NUMBER=',header)],... |
source("create_csv.R")
source("preprocess.R")
source("build_model.R")
source("tune.R")
suppressPackageStartupMessages(library("optparse"))
suppressPackageStartupMessages(library("caret"))
suppressPackageStartupMessages(library("e1071"))
option_list <- list(
make_option("--generate", action="store_true", help = "G... | /deepseq_classifier.R | permissive | harpomaxx/deepseq | R | false | false | 6,247 | r | source("create_csv.R")
source("preprocess.R")
source("build_model.R")
source("tune.R")
suppressPackageStartupMessages(library("optparse"))
suppressPackageStartupMessages(library("caret"))
suppressPackageStartupMessages(library("e1071"))
option_list <- list(
make_option("--generate", action="store_true", help = "G... |
# seqgen.r
#
# simulate sequences based on parameter values
require("ape")
require("tools")
library("magrittr")
import::from("beast.r", merge, process_beast_template)
import::from("utils.r", run_beast)
seqgen = function(
seqgen_template,
merge_template,
seqgen_config,
merge_config,
output,
par... | /unfinished/seqgen.r | permissive | bioDS/beter | R | false | false | 3,235 | r | # seqgen.r
#
# simulate sequences based on parameter values
require("ape")
require("tools")
library("magrittr")
import::from("beast.r", merge, process_beast_template)
import::from("utils.r", run_beast)
seqgen = function(
seqgen_template,
merge_template,
seqgen_config,
merge_config,
output,
par... |
#Графическая подсистема. Ядерные плотности вероятностей нормального распределения (?)
plot(density(rnorm(100)),col="red")
plot(density(rnorm(1000)),col="blue")
#Способы задания переменной значения
x=5
x<-5
assign("x",5)
x
#Команды и базовые функции function c()
x<-c(1,3,6,7)
#Типы векторов
char<-c("8","edge","turn8k");... | /zan1.R | no_license | KseniyaPostnikova/MathMod | R | false | false | 2,139 | r | #Графическая подсистема. Ядерные плотности вероятностей нормального распределения (?)
plot(density(rnorm(100)),col="red")
plot(density(rnorm(1000)),col="blue")
#Способы задания переменной значения
x=5
x<-5
assign("x",5)
x
#Команды и базовые функции function c()
x<-c(1,3,6,7)
#Типы векторов
char<-c("8","edge","turn8k");... |
# Copyright 2022 Province of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | /00_setup.R | permissive | bcgov/pm25-caaqs-indicator | R | false | false | 5,441 | r | # Copyright 2022 Province of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/schisto_reproduction_numbers.R
\name{Reff_W_kap}
\alias{Reff_W_kap}
\title{Get Reff as function of W, model parameters, kappa, and DDs}
\usage{
Reff_W_kap(W, kap, pars, PDD = phi_Wk, DDF = rho_Wk, DDI = gam_Wxi)
}
\arguments{
\item{W}{mean wo... | /man/Reff_W_kap.Rd | permissive | cmhoove14/DDNTD | R | false | true | 663 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/schisto_reproduction_numbers.R
\name{Reff_W_kap}
\alias{Reff_W_kap}
\title{Get Reff as function of W, model parameters, kappa, and DDs}
\usage{
Reff_W_kap(W, kap, pars, PDD = phi_Wk, DDF = rho_Wk, DDI = gam_Wxi)
}
\arguments{
\item{W}{mean wo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbReconnect.R
\name{dbReconnect}
\alias{dbReconnect}
\title{dbReconnect}
\usage{
dbReconnect()
}
\value{
returns TRUE invisibly
}
\description{
reconnect to a database and reinitialize all the tables
}
\details{
basically just works with cdw ... | /man/dbReconnect.Rd | no_license | crazybilly/muadc | R | false | true | 348 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbReconnect.R
\name{dbReconnect}
\alias{dbReconnect}
\title{dbReconnect}
\usage{
dbReconnect()
}
\value{
returns TRUE invisibly
}
\description{
reconnect to a database and reinitialize all the tables
}
\details{
basically just works with cdw ... |
computePathMatrix2 <- function(G,condSet,PathMatrix1, spars=FALSE)
# Copyright (c) 2013 - 2013 Jonas Peters [peters@stat.math.ethz.ch]
# All rights reserved. See the file COPYING for license terms.
{
# The only difference to the function computePathMatrix is that this function changes
# the graph by removin... | /R/computePathMatrix2.R | no_license | cran/SID | R | false | false | 1,171 | r | computePathMatrix2 <- function(G,condSet,PathMatrix1, spars=FALSE)
# Copyright (c) 2013 - 2013 Jonas Peters [peters@stat.math.ethz.ch]
# All rights reserved. See the file COPYING for license terms.
{
# The only difference to the function computePathMatrix is that this function changes
# the graph by removin... |
# Daan Verhagen
# RTestProject
x <- 1
y <- 5
multiply <- function(x) {
print(x * y)
}
multiply(x=2)
divide <- function(x) {
print(x / y)
}
divide(x=2)
addition <- function(x){
print(x + y)
}
addition(x=3)
| /SomeFunction.R | no_license | daanverhagen/RTestProject | R | false | false | 216 | r | # Daan Verhagen
# RTestProject
x <- 1
y <- 5
multiply <- function(x) {
print(x * y)
}
multiply(x=2)
divide <- function(x) {
print(x / y)
}
divide(x=2)
addition <- function(x){
print(x + y)
}
addition(x=3)
|
library(tidyverse)
library(tidytuesdayR)
library(shonarrr)
# read data
df_astronauts <- tt_load_gh(last_tuesday()) %>%
tt_download() %>%
`[[`(1)
df_astronauts %>%
group_by(nationality) %>%
filter(n() > 5) %>%
summarise(avg_hours = mean(eva_hrs_mission)) %>%
ggplot() +
geom_col(aes(x = reorder(nat... | /scripts/tt_week29_astronauts.R | no_license | shonawilde/TidyTuesday | R | false | false | 4,482 | r | library(tidyverse)
library(tidytuesdayR)
library(shonarrr)
# read data
df_astronauts <- tt_load_gh(last_tuesday()) %>%
tt_download() %>%
`[[`(1)
df_astronauts %>%
group_by(nationality) %>%
filter(n() > 5) %>%
summarise(avg_hours = mean(eva_hrs_mission)) %>%
ggplot() +
geom_col(aes(x = reorder(nat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/meanimpute.R
\name{step_meanimpute}
\alias{step_meanimpute}
\alias{tidy.step_meanimpute}
\title{Impute Numeric Data Using the Mean}
\usage{
step_meanimpute(recipe, ..., role = NA, trained = FALSE,
means = NULL, trim = 0, skip = FALSE, id = ... | /man/step_meanimpute.Rd | no_license | ewv88/recipes | R | false | true | 3,150 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/meanimpute.R
\name{step_meanimpute}
\alias{step_meanimpute}
\alias{tidy.step_meanimpute}
\title{Impute Numeric Data Using the Mean}
\usage{
step_meanimpute(recipe, ..., role = NA, trained = FALSE,
means = NULL, trim = 0, skip = FALSE, id = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sahieAPI.R
\name{sahie}
\alias{sahie}
\alias{sahie_county}
\alias{sahie_state}
\alias{sahie_us}
\title{Get SAHIE data}
\usage{
sahie(geo, year = 2014, var = c("NAME", "NUI_PT"), api_key = NULL)
sahie_us(...)
sahie_state(...)
sahie_county(.... | /man/sahie.Rd | no_license | jjchern/sahieAPI | R | false | true | 1,774 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sahieAPI.R
\name{sahie}
\alias{sahie}
\alias{sahie_county}
\alias{sahie_state}
\alias{sahie_us}
\title{Get SAHIE data}
\usage{
sahie(geo, year = 2014, var = c("NAME", "NUI_PT"), api_key = NULL)
sahie_us(...)
sahie_state(...)
sahie_county(.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataLoadingSaving.R
\name{getDbCohortMethodData}
\alias{getDbCohortMethodData}
\title{Get the cohort data from the server}
\usage{
getDbCohortMethodData(connectionDetails, cdmDatabaseSchema,
oracleTempSchema = cdmDatabaseSchema, targetId, c... | /man/getDbCohortMethodData.Rd | permissive | Alexdavv/CohortMethod | R | false | true | 8,040 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataLoadingSaving.R
\name{getDbCohortMethodData}
\alias{getDbCohortMethodData}
\title{Get the cohort data from the server}
\usage{
getDbCohortMethodData(connectionDetails, cdmDatabaseSchema,
oracleTempSchema = cdmDatabaseSchema, targetId, c... |
#' Dummy data for Upper Tier Local Authorities so dummy maps can be produced
#'
#' A dataset of indicator values for all Upper Tier Local Authorities
#'
#' @format A data frame with 152 records and 4 fields:
#' \describe{
#' \item{AreaCode}{Office for National Statistics area codes}
#' \item{AreaName}{Office... | /R/data.R | no_license | cran/fingertipscharts | R | false | false | 520 | r | #' Dummy data for Upper Tier Local Authorities so dummy maps can be produced
#'
#' A dataset of indicator values for all Upper Tier Local Authorities
#'
#' @format A data frame with 152 records and 4 fields:
#' \describe{
#' \item{AreaCode}{Office for National Statistics area codes}
#' \item{AreaName}{Office... |
## Package installation ----
packages <- c("tidyverse", "tidymodels", "lme4", "broom.mixed", "GGally")
## Install.packages ----
new.packages <- packages[!(packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
## load libraries ----
lapply(packages, require, character.o... | /AIC test/setup.R | no_license | brilstl/paper-DEFR | R | false | false | 359 | r | ## Package installation ----
packages <- c("tidyverse", "tidymodels", "lme4", "broom.mixed", "GGally")
## Install.packages ----
new.packages <- packages[!(packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
## load libraries ----
lapply(packages, require, character.o... |
#' Simply do LOCF.
#'
#' @param paper <object; input> A data frame.
#' @param ink <object; input> A data frame. Typically, same with paper. The columns for visits should be names "vis.INDICATOR-OF-VISITS".
#' @param mold <object; input> A data frame. Missing is 1, otherwise 0. The columns for visits should be names "mi... | /R/mf.LOCF.R | permissive | mrmtshmp/ExploratoryDataAnalysis | R | false | false | 1,275 | r | #' Simply do LOCF.
#'
#' @param paper <object; input> A data frame.
#' @param ink <object; input> A data frame. Typically, same with paper. The columns for visits should be names "vis.INDICATOR-OF-VISITS".
#' @param mold <object; input> A data frame. Missing is 1, otherwise 0. The columns for visits should be names "mi... |
### This script is modified from conversion.R of Seurat's github. Seurat is licensed under GPL 3.0
#' @param X.slot Seurat slot to transfer anndata X into. Default is scale.data
#' @param raw.slot Seurat slot to transfer anndata raw into. Default is data
#' @describeIn Convert from Anndata file to a Seurat object
#' ... | /workflows/cumulus/h5ad2seurat.R | permissive | klarman-cell-observatory/cumulus-obsolete | R | false | false | 3,078 | r | ### This script is modified from conversion.R of Seurat's github. Seurat is licensed under GPL 3.0
#' @param X.slot Seurat slot to transfer anndata X into. Default is scale.data
#' @param raw.slot Seurat slot to transfer anndata raw into. Default is data
#' @describeIn Convert from Anndata file to a Seurat object
#' ... |
#' Read a MODFLOW basic file
#'
#' \code{read_bas} reads in a MODFLOW basic file and returns it as an \code{\link{RMODFLOW}} bas object.
#'
#' @param file filename; typically '*.bas'
#' @param dis discretization file object; defaults to that with the same filename but with extension '.dis'
#' @return object of class ... | /R/rmf-read-bas.R | no_license | CasillasMX/RMODFLOW | R | false | false | 2,299 | r | #' Read a MODFLOW basic file
#'
#' \code{read_bas} reads in a MODFLOW basic file and returns it as an \code{\link{RMODFLOW}} bas object.
#'
#' @param file filename; typically '*.bas'
#' @param dis discretization file object; defaults to that with the same filename but with extension '.dis'
#' @return object of class ... |
## testing code
mean(cars) | /github_test.R | no_license | hannahpalmer/demo_website | R | false | false | 27 | r | ## testing code
mean(cars) |
#' @title Autoevaluacion de 'Ejercicios I' (Modulo Vectores).
#'
#' @description Es una funcion que permite autoevaluar los ejercicios del modulo
#' sobre vectores del curso Introduccion al software estadistico R.
#' @param nombre Una cadena de caracteres que indique el nombre del estudiante.
#' @param apellido Una... | /R/auto_eval_vector.R | no_license | inesmartinezvallve/IntRo | R | false | false | 10,443 | r | #' @title Autoevaluacion de 'Ejercicios I' (Modulo Vectores).
#'
#' @description Es una funcion que permite autoevaluar los ejercicios del modulo
#' sobre vectores del curso Introduccion al software estadistico R.
#' @param nombre Una cadena de caracteres que indique el nombre del estudiante.
#' @param apellido Una... |
#setwd("set to current folder")
rm(list = ls())
#### Viral dynamics model
SARS_COV_model <- function(t,x,params){
with(as.list(x),{
ddt_S = -beta*V*S # susceptible target cells
ddt_I = beta*V*S - delta*I^k*I - m*E^r*I/(E^r+E50^r) # Infected cells
ddt_V = p*I-c*V # Viral load... | /Fig2.R | no_license | ashish2goyal/SARS-COV-2_Within_host_Viral_dynamics | R | false | false | 16,514 | r | #setwd("set to current folder")
rm(list = ls())
#### Viral dynamics model
SARS_COV_model <- function(t,x,params){
with(as.list(x),{
ddt_S = -beta*V*S # susceptible target cells
ddt_I = beta*V*S - delta*I^k*I - m*E^r*I/(E^r+E50^r) # Infected cells
ddt_V = p*I-c*V # Viral load... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bias_feature.R
\name{bias_features}
\alias{bias_features}
\title{Extract Bias Features from Occurrence Records}
\usage{
bias_features(
x,
species = "species",
lon = "decimallongitude",
lat = "decimallatitude",
res = 0.5,
ras = NUL... | /man/bias_features.Rd | no_license | kjrom-sol/IUCNN | R | false | true | 1,921 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bias_feature.R
\name{bias_features}
\alias{bias_features}
\title{Extract Bias Features from Occurrence Records}
\usage{
bias_features(
x,
species = "species",
lon = "decimallongitude",
lat = "decimallatitude",
res = 0.5,
ras = NUL... |
#Creating dataframes and Assigning types
bikeshare.path <- "https://raw.githubusercontent.com/giddo4all/bike_share_kaggle/master/train.csv"
#bikeshare.path <- "C:/Users/Gideon/OneDrive/Lectures/Kaggle/bike_share_comp/"
train.datafile <- "train.csv"
test.datafile <- "test.csv"
missing.types <- c("NA", "")
train.column.... | /bike_share.R | no_license | gideonaina/bike_share_kaggle | R | false | false | 11,190 | r |
#Creating dataframes and Assigning types
bikeshare.path <- "https://raw.githubusercontent.com/giddo4all/bike_share_kaggle/master/train.csv"
#bikeshare.path <- "C:/Users/Gideon/OneDrive/Lectures/Kaggle/bike_share_comp/"
train.datafile <- "train.csv"
test.datafile <- "test.csv"
missing.types <- c("NA", "")
train.column.... |
add_table_column_attrs <- function(table, table_name, schema_name) {
table$columns <- purrr::imodify(
table$columns,
~ add_type(.x, "column", .y, extra = list(name = "parent", value = table_name))
)
table <- add_type(table, "table", table_name, extra = list(name = "parent", value = schema_name))
table
}... | /R/schema_utils.R | no_license | LenaNoel/DataFakeR | R | false | false | 2,095 | r | add_table_column_attrs <- function(table, table_name, schema_name) {
table$columns <- purrr::imodify(
table$columns,
~ add_type(.x, "column", .y, extra = list(name = "parent", value = table_name))
)
table <- add_type(table, "table", table_name, extra = list(name = "parent", value = schema_name))
table
}... |
#cairo chunk setting needed for pdf rendering
knitr::opts_chunk$set(dev=c('png'), comment="")
knitr::opts_chunk$set(dev.args=list(bg="transparent"))
library(librarian)
shelf(CorrelAid/datenguideR, hrbrthemes, viridis, readxl, jsonlite, tidyverse, lubridate, osmdata,
ggspatial, sp, htmltools, rvest, xml2, quante... | /data-raw/00_setup.R | permissive | prototypefund/rightwatching-shiny-app | R | false | false | 1,558 | r | #cairo chunk setting needed for pdf rendering
knitr::opts_chunk$set(dev=c('png'), comment="")
knitr::opts_chunk$set(dev.args=list(bg="transparent"))
library(librarian)
shelf(CorrelAid/datenguideR, hrbrthemes, viridis, readxl, jsonlite, tidyverse, lubridate, osmdata,
ggspatial, sp, htmltools, rvest, xml2, quante... |
rankhospital=function(state,outcome,num){
con=read.csv('outcome-of-care-measures.csv')
if(outcome=='heart attack')index=names(con)[11]
else if(outcome=='heart failure')index=names(con)[17]
else index=names(con)[23]
data=con[con$State==state & con[index] != 'Not Available',]
data=data[order(data$... | /rankhospital.R | no_license | NPaudyal97/datasciencecoursera | R | false | false | 550 | r | rankhospital=function(state,outcome,num){
con=read.csv('outcome-of-care-measures.csv')
if(outcome=='heart attack')index=names(con)[11]
else if(outcome=='heart failure')index=names(con)[17]
else index=names(con)[23]
data=con[con$State==state & con[index] != 'Not Available',]
data=data[order(data$... |
mgsf <-
function(theta1Input,theta2Input,weightInput,M,dateInput){
#vMixedTrancheGsT=function(theta1Input,theta2Input,weightInput,M,dateInput)
#theta1Input=.15
#theta2Input=.08
#weightInput=.03
#MInput=100
#dateInput=c("2007/10/23")
#---define variables for using later
#M=MInput # Monte Carlo runsssssssssssssssssssssss... | /R/mgsf.R | no_license | fengfengyuyu/CDO | R | false | false | 5,676 | r | mgsf <-
function(theta1Input,theta2Input,weightInput,M,dateInput){
#vMixedTrancheGsT=function(theta1Input,theta2Input,weightInput,M,dateInput)
#theta1Input=.15
#theta2Input=.08
#weightInput=.03
#MInput=100
#dateInput=c("2007/10/23")
#---define variables for using later
#M=MInput # Monte Carlo runsssssssssssssssssssssss... |
install.packages("dplyr")
library(dplyr)
# Dataframes and tibbles
install.packages("hflights")
library(hflights)
# Dataframe
str(hflights)
dim(hflights)
hflights # Not recommended
head(hflights) # Recommended
# Tibble
hflights2 <- tbl_df(hflights)
hflights2
glimpse(hflights2) # to catch a glimpse
# Filter: We keep ... | /05 Data Manipulation/05-2_Data Manipulation_Filter.R | no_license | inkyscope/R-for-Data-Analytics | R | false | false | 1,331 | r | install.packages("dplyr")
library(dplyr)
# Dataframes and tibbles
install.packages("hflights")
library(hflights)
# Dataframe
str(hflights)
dim(hflights)
hflights # Not recommended
head(hflights) # Recommended
# Tibble
hflights2 <- tbl_df(hflights)
hflights2
glimpse(hflights2) # to catch a glimpse
# Filter: We keep ... |
#' Acquire income statement.
#'
#' Extracts and displays income statement from the quarterly report of a given company.
#'
#' @export
#' @param symbol A character vector specifying the stock symbol of the company of interest
#' @param year A numeric vector specifying the year during which the report was filed
#' @param... | /R/get_income.R | no_license | Lambeek/finqreportr | R | false | false | 4,131 | r | #' Acquire income statement.
#'
#' Extracts and displays income statement from the quarterly report of a given company.
#'
#' @export
#' @param symbol A character vector specifying the stock symbol of the company of interest
#' @param year A numeric vector specifying the year during which the report was filed
#' @param... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geobon_get.R
\name{geobon_get}
\alias{geobon_get}
\title{Get specific GEOBON EBV record}
\usage{
geobon_get(id = NULL, ebv_class = NULL, ebv_name = NULL)
}
\arguments{
\item{id}{(integer) ID of the dataset}
\item{ebv_class}{(character string... | /man/geobon_get.Rd | permissive | VLucet/rgeobon | R | false | true | 741 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geobon_get.R
\name{geobon_get}
\alias{geobon_get}
\title{Get specific GEOBON EBV record}
\usage{
geobon_get(id = NULL, ebv_class = NULL, ebv_name = NULL)
}
\arguments{
\item{id}{(integer) ID of the dataset}
\item{ebv_class}{(character string... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/c3_functions.R
\name{make_gene_expression_compendium}
\alias{make_gene_expression_compendium}
\title{make_gene_expression_compendium}
\usage{
make_gene_expression_compendium(gene.expression.data, species = "hsapiens",
experiment.descriptor ... | /man/make_gene_expression_compendium.Rd | no_license | VCCRI/C3 | R | false | true | 2,946 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/c3_functions.R
\name{make_gene_expression_compendium}
\alias{make_gene_expression_compendium}
\title{make_gene_expression_compendium}
\usage{
make_gene_expression_compendium(gene.expression.data, species = "hsapiens",
experiment.descriptor ... |
library(testthat)
library(gosset)
test_check("gosset")
| /dev/tests/testthat.R | permissive | AgrDataSci/gosset | R | false | false | 56 | r | library(testthat)
library(gosset)
test_check("gosset")
|
# Function for creating training-testing datasets (with approximately 80% training)
# seed argument allows for recreation of the same dataset for the sake of replication
train.test <- function (data, seed=1) {
df <- data.frame(matrix(TRUE,nrow(data),100))
set.seed(seed)
for (i in 1:ncol(df)) {
samp <- samp... | /T-LoCoH_Algorithm_Functions.R | no_license | doughertyeric/T-LoCoH_Algorithm | R | false | false | 6,793 | r | # Function for creating training-testing datasets (with approximately 80% training)
# seed argument allows for recreation of the same dataset for the sake of replication
train.test <- function (data, seed=1) {
df <- data.frame(matrix(TRUE,nrow(data),100))
set.seed(seed)
for (i in 1:ncol(df)) {
samp <- samp... |
list_free_projects <- function( env ){
sapply( names( env$project_list ), function( project ){
project_cap <- env$project_list[[ project ]][[ "cap" ]]
lecturer <- env$project_list[[ project ]][[ "lecturer" ]]
lecturer_cap <- env$lecturer_list[[ lecturer ]][[ "cap" ]]
n_students_in_project <-... | /R/studentAllocation/R/list_free_projects.R | permissive | Joepriesto/studentProjectAllocation | R | false | false | 621 | r | list_free_projects <- function( env ){
sapply( names( env$project_list ), function( project ){
project_cap <- env$project_list[[ project ]][[ "cap" ]]
lecturer <- env$project_list[[ project ]][[ "lecturer" ]]
lecturer_cap <- env$lecturer_list[[ lecturer ]][[ "cap" ]]
n_students_in_project <-... |
source(here::here("src/include_functions.R"))
australia=read.csv(here::here("australia_1317.csv"),header=TRUE,sep=';')
usa=read.csv(here::here("usa_1317.csv"),header=TRUE,sep=';')
total_australia=sortTotal(australia)
holiday_australia=sortTravelPurpose(australia,"Holiday")
friends_australia=sortTravelPurpose(austral... | /update_data_tests.R | no_license | adriannal12/rr19-FinalProject | R | false | false | 659 | r | source(here::here("src/include_functions.R"))
australia=read.csv(here::here("australia_1317.csv"),header=TRUE,sep=';')
usa=read.csv(here::here("usa_1317.csv"),header=TRUE,sep=';')
total_australia=sortTotal(australia)
holiday_australia=sortTravelPurpose(australia,"Holiday")
friends_australia=sortTravelPurpose(austral... |
library(purrr)
relational_practice <- function() {
# Stock prices
apple <- 48.99
micr <- 77.93
# Apple vs Microsoft
apple > micr
# Not equals
apple != micr
# Dates - today and tomorrow
today <- as.Date(Sys.Date())
tomorrow <- as.Date(Sys.Date() + 1)
# Today vs Tomorrow
... | /finance_basics_with_r/intermediate_r_for_finance/2_if_and_operators/1_if_and_operators.R | no_license | printfCRLF/rr | R | false | false | 2,040 | r | library(purrr)
relational_practice <- function() {
# Stock prices
apple <- 48.99
micr <- 77.93
# Apple vs Microsoft
apple > micr
# Not equals
apple != micr
# Dates - today and tomorrow
today <- as.Date(Sys.Date())
tomorrow <- as.Date(Sys.Date() + 1)
# Today vs Tomorrow
... |
library(R6)
library(outliers)
library(tidyverse)
# TODO
# Outlier detection
# One hit wonders
ProteinRollup <- R6Class(
public = list(
protein_rollup_on_matrix = function(design_fp, data_fp, protein_col, peptide_col, sample_col, out_fp, rollup_func="rrollup",
protein_col_name="Protein") {
... | /ProteinRollup.R | no_license | Jakob37/CraftOmics | R | false | false | 14,543 | r | library(R6)
library(outliers)
library(tidyverse)
# TODO
# Outlier detection
# One hit wonders
ProteinRollup <- R6Class(
public = list(
protein_rollup_on_matrix = function(design_fp, data_fp, protein_col, peptide_col, sample_col, out_fp, rollup_func="rrollup",
protein_col_name="Protein") {
... |
\docType{data}
\name{county_sub_ids}
\alias{county_sub_ids}
\title{County Subdivison Identifiers}
\format{A \code{dataframe} with 10 variables:
\describe{
\item{\code{state_postal}}{County U.S. Postal Service abbreviation, or two-letter ISO 1366 code.}
\item{\code{county_sub_fips}}{Numeric county_su... | /man/county_sub_ids.Rd | no_license | MEDSL/medslcleaner | R | false | false | 1,123 | rd | \docType{data}
\name{county_sub_ids}
\alias{county_sub_ids}
\title{County Subdivison Identifiers}
\format{A \code{dataframe} with 10 variables:
\describe{
\item{\code{state_postal}}{County U.S. Postal Service abbreviation, or two-letter ISO 1366 code.}
\item{\code{county_sub_fips}}{Numeric county_su... |
# Script plots for daily update
all.data <- read.csv("data/all_data.csv")
all.data$date <- as.Date(all.data$date)
all.data <- all.data[order(all.data$date),]
testdata <- read.csv("data-dashboards/percentage-positive-daily-national.csv")
testdata$date <- as.Date(testdata$date)
testdata$values.infected_percentage <- te... | /plot_scripts/daily_plots.R | permissive | mzelst/covid-19 | R | false | false | 12,704 | r | # Script plots for daily update
all.data <- read.csv("data/all_data.csv")
all.data$date <- as.Date(all.data$date)
all.data <- all.data[order(all.data$date),]
testdata <- read.csv("data-dashboards/percentage-positive-daily-national.csv")
testdata$date <- as.Date(testdata$date)
testdata$values.infected_percentage <- te... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% MicroarrayData.ARGS.R
%
% on Tue Jan 15 18:33:27 2008.
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... | /man/validateArgumentGroupBy.MicroarrayData.Rd | no_license | HenrikBengtsson/aroma | R | false | false | 1,464 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% MicroarrayData.ARGS.R
%
% on Tue Jan 15 18:33:27 2008.
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/K1_Cembedding.r
\name{fitk1}
\alias{fitk1}
\title{Fit mixed model for K=1 (one mobility class)}
\usage{
fitk1(timeall, concall, nobs, ttotal, J, sv, size, burnin, thin, tune, nobs_cum,
sigma2b1, sigma2beta1, a0start, a1start, b1star... | /man/fitk1.Rd | no_license | bioimaginggroup/frapmm | R | false | false | 2,221 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/K1_Cembedding.r
\name{fitk1}
\alias{fitk1}
\title{Fit mixed model for K=1 (one mobility class)}
\usage{
fitk1(timeall, concall, nobs, ttotal, J, sv, size, burnin, thin, tune, nobs_cum,
sigma2b1, sigma2beta1, a0start, a1start, b1star... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bootViz.R
\name{bootViz}
\alias{bootViz}
\title{Produce visualizations for boostrap results}
\usage{
bootViz(.result = NULL, type = c("histogram", "density"), bins = 30)
}
\arguments{
\item{.result}{A matrix returned from CalcGTheoryCI.}
\it... | /man/bootViz.Rd | permissive | alanhuebner10/Gboot | R | false | true | 771 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bootViz.R
\name{bootViz}
\alias{bootViz}
\title{Produce visualizations for boostrap results}
\usage{
bootViz(.result = NULL, type = c("histogram", "density"), bins = 30)
}
\arguments{
\item{.result}{A matrix returned from CalcGTheoryCI.}
\it... |
library(testthat)
test_check("ore")
| /tests/test-all.R | no_license | freyreeste/ore | R | false | false | 36 | r | library(testthat)
test_check("ore")
|
#' Supervised Classification
#'
#' Supervised classification both for classification and regression mode based on vector training data (points or polygons).
#'
#' @param img Raster* object. Typically remote sensing imagery, which is to be classified.
#' @param trainData SpatialPolygonsDataFrame or SpatialPointsDataF... | /R/superClass.R | no_license | dondealban/RStoolbox | R | false | false | 23,823 | r | #' Supervised Classification
#'
#' Supervised classification both for classification and regression mode based on vector training data (points or polygons).
#'
#' @param img Raster* object. Typically remote sensing imagery, which is to be classified.
#' @param trainData SpatialPolygonsDataFrame or SpatialPointsDataF... |
#----------------------------------------------------------------------------
#' Simulate a function-on-scalar regression model
#'
#' Simulate data from a function-on-scalar regression model, allowing for
#' subject-specific random effects. The predictors are multivariate normal with
#' mean zero and covariance \code{c... | /R/helper_functions.R | no_license | LinXiyao/fosr | R | false | false | 29,239 | r | #----------------------------------------------------------------------------
#' Simulate a function-on-scalar regression model
#'
#' Simulate data from a function-on-scalar regression model, allowing for
#' subject-specific random effects. The predictors are multivariate normal with
#' mean zero and covariance \code{c... |
### Examine effect of climate and fisheries during VTR period where also have effort data
library(data.table)
library(stringr)
library(rgdal)
library(raster)
vtr <- readRDS("Data/VTR/CaS.commercial_all_port_land_wvessel_info.rds")
vtr.spp <- as.data.table(read.csv("Data/VTR_sppcodes_compiled_NEW.csv"))
### Summarize... | /Code/FishClimVTR.R | no_license | bselden/RAM_FishClim | R | false | false | 1,648 | r | ### Examine effect of climate and fisheries during VTR period where also have effort data
library(data.table)
library(stringr)
library(rgdal)
library(raster)
vtr <- readRDS("Data/VTR/CaS.commercial_all_port_land_wvessel_info.rds")
vtr.spp <- as.data.table(read.csv("Data/VTR_sppcodes_compiled_NEW.csv"))
### Summarize... |
\name{power.curve}
\alias{power.curve}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Generate a power curve
}
\description{
Generate a power curve either based on Sobel test or bootstrap
}
\usage{
power.curve(model, indirect=NULL, nobs=100, type='basic', nrep=1000,
nboot=1000, alpha... | /man/power.curve.Rd | no_license | cran/bmem | R | false | false | 3,922 | rd | \name{power.curve}
\alias{power.curve}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Generate a power curve
}
\description{
Generate a power curve either based on Sobel test or bootstrap
}
\usage{
power.curve(model, indirect=NULL, nobs=100, type='basic', nrep=1000,
nboot=1000, alpha... |
library(PowerTOST)
### Name: sampleN.RSABE
### Title: Sample size estimation for BE decision via linearized scaled ABE
### criterion
### Aliases: sampleN.RSABE
### ** Examples
# using all the defaults:
# design=2x3x3 (partial replicate design), theta0=0.90,
# ABE limits, PE constraint 0.8 - 1.25
# targetpower=80... | /data/genthat_extracted_code/PowerTOST/examples/sampleN.RSABE.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 422 | r | library(PowerTOST)
### Name: sampleN.RSABE
### Title: Sample size estimation for BE decision via linearized scaled ABE
### criterion
### Aliases: sampleN.RSABE
### ** Examples
# using all the defaults:
# design=2x3x3 (partial replicate design), theta0=0.90,
# ABE limits, PE constraint 0.8 - 1.25
# targetpower=80... |
### ---------------------------------------------------------------------------
### --- WD External Identifiers Dashboard, v. 0.0.1
### --- Script: ui.R, v. 0.0.1
### ---------------------------------------------------------------------------
### ------------------------------------------------------------------------... | /ui.R | no_license | GoranMilovanovic/analytics-wmde-WD-WD_identifierLandscape | R | false | false | 37,518 | r | ### ---------------------------------------------------------------------------
### --- WD External Identifiers Dashboard, v. 0.0.1
### --- Script: ui.R, v. 0.0.1
### ---------------------------------------------------------------------------
### ------------------------------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/QAQC.R
\name{QAQC}
\alias{QAQC}
\title{QAQC}
\usage{
QAQC(file, writeQCreport = F, outfile_QAQC = "", summaryStats = T,
dataReport = F, checkdoi = T, verbose = T)
}
\arguments{
\item{file}{directory to data file}
\item{writeQCreport}{if TR... | /Rpkg/man/QAQC.Rd | no_license | xiajz/ISRaD | R | false | true | 1,466 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/QAQC.R
\name{QAQC}
\alias{QAQC}
\title{QAQC}
\usage{
QAQC(file, writeQCreport = F, outfile_QAQC = "", summaryStats = T,
dataReport = F, checkdoi = T, verbose = T)
}
\arguments{
\item{file}{directory to data file}
\item{writeQCreport}{if TR... |
\name{title.control}
\alias{title.control}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Auxilary for Controlling the Title of a Rose Plot }
\description{
Auxilary for controlling the title of a rose plot.
}
\usage{
title.control(text = NULL, cex = 1.5,
between = if ... | /man/title.control.Rd | no_license | pmur002/IDPmisc | R | false | false | 994 | rd | \name{title.control}
\alias{title.control}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Auxilary for Controlling the Title of a Rose Plot }
\description{
Auxilary for controlling the title of a rose plot.
}
\usage{
title.control(text = NULL, cex = 1.5,
between = if ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wflow_start.R
\name{wflow_start}
\alias{wflow_start}
\title{Start a new workflowr project}
\usage{
wflow_start(directory, name = NULL, git = TRUE, existing = FALSE,
overwrite = FALSE, change_wd = TRUE, dry_run = FALSE,
user.name = NULL, u... | /man/wflow_start.Rd | permissive | lazappi/workflowr | R | false | true | 9,710 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wflow_start.R
\name{wflow_start}
\alias{wflow_start}
\title{Start a new workflowr project}
\usage{
wflow_start(directory, name = NULL, git = TRUE, existing = FALSE,
overwrite = FALSE, change_wd = TRUE, dry_run = FALSE,
user.name = NULL, u... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/swe_to_melt.R
\name{swe_to_melt}
\alias{swe_to_melt}
\title{Snow water equivalent to melt}
\usage{
swe_to_melt(df)
}
\arguments{
\item{df}{data frame with 'swe' serie in the second column. See \code{'read_XXX'} functions.}
}
\value{
Data fram... | /man/swe_to_melt.Rd | no_license | cran/hydroToolkit | R | false | true | 794 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/swe_to_melt.R
\name{swe_to_melt}
\alias{swe_to_melt}
\title{Snow water equivalent to melt}
\usage{
swe_to_melt(df)
}
\arguments{
\item{df}{data frame with 'swe' serie in the second column. See \code{'read_XXX'} functions.}
}
\value{
Data fram... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Bootstrap_rqss_2dim.R
\name{Bootstrap_rqss_2dim}
\alias{Bootstrap_rqss_2dim}
\title{Regular Bootstrap Method.}
\usage{
Bootstrap_rqss_2dim(cores = NULL, data = parent.frame(), alpha = 0.05,
tau = 0.25, lambda = 2, B = 100, D = 50, x0 = NULL... | /ConfidenceQuant/man/Bootstrap_rqss_2dim.Rd | no_license | likun-stat/ConfidenceQuant | R | false | true | 3,561 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Bootstrap_rqss_2dim.R
\name{Bootstrap_rqss_2dim}
\alias{Bootstrap_rqss_2dim}
\title{Regular Bootstrap Method.}
\usage{
Bootstrap_rqss_2dim(cores = NULL, data = parent.frame(), alpha = 0.05,
tau = 0.25, lambda = 2, B = 100, D = 50, x0 = NULL... |
options(na.action=na.exclude) # preserve missings
options(contrasts=c('contr.treatment', 'contr.poly')) #ensure constrast type
library(survival)
aeq <- function(x,y, ...) all.equal(as.vector(x), as.vector(y), ...)
# fit1 and fit4 should follow identical iteration paths
fit1 <- survreg(Surv(futime, fustat) ~ age + eco... | /R-Portable-Win/library/survival/tests/survreg1.R | permissive | rana2hin/electron-quick-start | R | false | false | 3,637 | r | options(na.action=na.exclude) # preserve missings
options(contrasts=c('contr.treatment', 'contr.poly')) #ensure constrast type
library(survival)
aeq <- function(x,y, ...) all.equal(as.vector(x), as.vector(y), ...)
# fit1 and fit4 should follow identical iteration paths
fit1 <- survreg(Surv(futime, fustat) ~ age + eco... |
\name{correctComBat}
\alias{correctComBat}
\title{
Batch correction with ComBat
}
\description{
Batch correction with ComBat
}
\usage{
correctComBat(Ys, batchCL, grps, cGsub, Conf, theme, type)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{Ys}{
Expression data
}
\item{batchCL}{
A ... | /man/correctComBat.Rd | no_license | syspremed/exploBATCH | R | false | false | 1,226 | rd | \name{correctComBat}
\alias{correctComBat}
\title{
Batch correction with ComBat
}
\description{
Batch correction with ComBat
}
\usage{
correctComBat(Ys, batchCL, grps, cGsub, Conf, theme, type)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{Ys}{
Expression data
}
\item{batchCL}{
A ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/minmax_mat.R
\name{minmax_mat}
\alias{minmax_mat}
\title{Minmax matrix}
\usage{
minmax_mat(str, varnms, Y, interval)
}
\arguments{
\item{str}{Structure of pathway from the root node in the decision tree to each terminal node}
\ite... | /man/minmax_mat.Rd | no_license | cran/visTree | R | false | true | 652 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/minmax_mat.R
\name{minmax_mat}
\alias{minmax_mat}
\title{Minmax matrix}
\usage{
minmax_mat(str, varnms, Y, interval)
}
\arguments{
\item{str}{Structure of pathway from the root node in the decision tree to each terminal node}
\ite... |
library(lubridate)
## download and unzip data if not already present
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if (!file.exists("household_power_consumption.txt")) {
download.file(fileURL,
method='curl', destfile='exdata-data-househ... | /plot4.R | no_license | cosmo44719/ExData_Plotting1 | R | false | false | 1,862 | r | library(lubridate)
## download and unzip data if not already present
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if (!file.exists("household_power_consumption.txt")) {
download.file(fileURL,
method='curl', destfile='exdata-data-househ... |
library(tidyr)
library(dplyr)
library(MASS)
library(lubridate)
library(ggplot2); theme_set(theme_bw(base_family = "Times", base_size = 14))
library(egg)
library(zoo)
options(na.action='na.pass')
options(scipen=999)
# Negative Binomial & Na-approximated
statefun <- function(datafile, region) {
datafil... | /[2-3] Total Excess & Graphs/[3.08] unnatural (excess).R | permissive | viboudc/DirectIndirectCOVID19MortalityEstimation | R | false | false | 9,371 | r | library(tidyr)
library(dplyr)
library(MASS)
library(lubridate)
library(ggplot2); theme_set(theme_bw(base_family = "Times", base_size = 14))
library(egg)
library(zoo)
options(na.action='na.pass')
options(scipen=999)
# Negative Binomial & Na-approximated
statefun <- function(datafile, region) {
datafil... |
/proj3_3.R | no_license | ronypik/Exploratory | R | false | false | 913 | r | ||
options(prompt="R> ")
##################
### CHAPTER 13 ###
##################
################
# Section 13.1 #
################
## 13.1.1 ##
# no R code
## 13.1.2 ##
chickwts[1:5,]
#
chickwts$weight
chickwts$feed
## 13.1.3 ##
quakes[1:5,]
#
plot(quakes$long,quakes$lat,xlab... | /Book of R answers/Davies_Part3_Source_Code.R | no_license | jpfonseca84/BookR | R | false | false | 13,479 | r | options(prompt="R> ")
##################
### CHAPTER 13 ###
##################
################
# Section 13.1 #
################
## 13.1.1 ##
# no R code
## 13.1.2 ##
chickwts[1:5,]
#
chickwts$weight
chickwts$feed
## 13.1.3 ##
quakes[1:5,]
#
plot(quakes$long,quakes$lat,xlab... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aqp-package.R
\docType{package}
\name{aqp-package}
\alias{aqp-package}
\alias{aqp.env}
\alias{aqp}
\title{Algorithms for Quantitative Pedology}
\format{
An object of class \code{environment} of length 0.
}
\usage{
aqp.env
}
\description{
The ... | /man/aqp-package.Rd | no_license | Memo1986/aqp | R | false | true | 1,465 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aqp-package.R
\docType{package}
\name{aqp-package}
\alias{aqp-package}
\alias{aqp.env}
\alias{aqp}
\title{Algorithms for Quantitative Pedology}
\format{
An object of class \code{environment} of length 0.
}
\usage{
aqp.env
}
\description{
The ... |
#carregando as bibliotecas
library(readr)
library(tidyverse)
#carregando os arquivos que vamos trabalhar
child_mortality <- read_csv("child_mortality_0_5_year_olds_dying_per_1000_born.csv")
health_spending <- read_csv("total_health_spending_percent_of_gdp.csv")
vacc_rate <- read_csv("vacc_rate.csv")
medical_doctors <-... | /file-test.R | no_license | anninhactrbc/health_analysis | R | false | false | 7,168 | r | #carregando as bibliotecas
library(readr)
library(tidyverse)
#carregando os arquivos que vamos trabalhar
child_mortality <- read_csv("child_mortality_0_5_year_olds_dying_per_1000_born.csv")
health_spending <- read_csv("total_health_spending_percent_of_gdp.csv")
vacc_rate <- read_csv("vacc_rate.csv")
medical_doctors <-... |
plot.rivernet <- function(x,margin=0,
main=NA,cex.main=1,pos="topleft",
col=NA,lwd=1,
pch.nodes=NA,cex.nodes=0.2,col.nodes="black",
...)
{
rivernet <- x
w <- rivernet$xlim[2]-rivernet$xlim[1]
h <- ri... | /R/plot.rivernet.r | no_license | cran/rivernet | R | false | false | 1,383 | r | plot.rivernet <- function(x,margin=0,
main=NA,cex.main=1,pos="topleft",
col=NA,lwd=1,
pch.nodes=NA,cex.nodes=0.2,col.nodes="black",
...)
{
rivernet <- x
w <- rivernet$xlim[2]-rivernet$xlim[1]
h <- ri... |
#
# rank-f7groups-test2.R by Chris Hefele, Jan 2016
#
library("quantreg")
DATA.DIR <- "../../data"
PLOT.FILE <- "rank-f7groups-test2.pdf"
INTRADAY.TO.DAILY <- 0.19
VERIFY.INTRADAY.TO.DAILY <- TRUE
#----------------------------------
read.file <- function(rdata.file) {
fname <- paste(DATA... | /Winton/analysis/group.rank/rank-f7groups-test2.R | no_license | chrishefele/kaggle-sample-code | R | false | false | 7,140 | r | #
# rank-f7groups-test2.R by Chris Hefele, Jan 2016
#
library("quantreg")
DATA.DIR <- "../../data"
PLOT.FILE <- "rank-f7groups-test2.pdf"
INTRADAY.TO.DAILY <- 0.19
VERIFY.INTRADAY.TO.DAILY <- TRUE
#----------------------------------
read.file <- function(rdata.file) {
fname <- paste(DATA... |
library(Rdimtools)
### Name: do.crca
### Title: Curvilinear Component Analysis
### Aliases: do.crca
### ** Examples
## Not run:
##D ## generate sample data
##D X <- aux.gensamples(n=200)
##D
##D ## different initial learning rates
##D out1 <- do.crca(X,alpha=1)
##D out2 <- do.crca(X,alpha=5)
##D out3 <- do.crca(X... | /data/genthat_extracted_code/Rdimtools/examples/nonlinear_CRCA.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 544 | r | library(Rdimtools)
### Name: do.crca
### Title: Curvilinear Component Analysis
### Aliases: do.crca
### ** Examples
## Not run:
##D ## generate sample data
##D X <- aux.gensamples(n=200)
##D
##D ## different initial learning rates
##D out1 <- do.crca(X,alpha=1)
##D out2 <- do.crca(X,alpha=5)
##D out3 <- do.crca(X... |
##
## 1_2. Data property analysis
library(ggplot2)
library(ggpubr)
subset <- raw.expression.data
# x: sample
# y: gene expressions
boxplot(subset)
# x: gene expressions,
# y: sample variation
# Randomly chose several genes from total > 13,000 genes
set.seed(2019)
number_of_samples <- 50
random.choice <- runif(nu... | /TCGA_COAD_2_data_property_analysis.R | no_license | leeym950/CMS4_Irinotecan | R | false | false | 398 | r | ##
## 1_2. Data property analysis
library(ggplot2)
library(ggpubr)
subset <- raw.expression.data
# x: sample
# y: gene expressions
boxplot(subset)
# x: gene expressions,
# y: sample variation
# Randomly chose several genes from total > 13,000 genes
set.seed(2019)
number_of_samples <- 50
random.choice <- runif(nu... |
#' Create a list containing metadata about available datasets
#'
#' @example
#' ds_list <- list_datasets()
#'
#' @export
list_datasets <- function()
{
list(
list(dataset_name = "Abalone",
short_name = "abalone",
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/abalone/",
... | /R/list_datasets.R | no_license | fuwiak/ucimlr | R | false | false | 9,198 | r | #' Create a list containing metadata about available datasets
#'
#' @example
#' ds_list <- list_datasets()
#'
#' @export
list_datasets <- function()
{
list(
list(dataset_name = "Abalone",
short_name = "abalone",
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/abalone/",
... |
context("set_attributes")
test_that("we can have numeric data with bounds
where some bounds are missing", {
df <- data.frame(
attributeName = "svl",
attributeDefinition = "Snout-vent length",
unit = "meter",
numberType = "real",
minimum = "0",
maximum = NA,
stringsAsFactors = F... | /tests/testthat/test-set_attributes.R | permissive | annakrystalli/EML | R | false | false | 22,746 | r | context("set_attributes")
test_that("we can have numeric data with bounds
where some bounds are missing", {
df <- data.frame(
attributeName = "svl",
attributeDefinition = "Snout-vent length",
unit = "meter",
numberType = "real",
minimum = "0",
maximum = NA,
stringsAsFactors = F... |
##-- Caixas ----
box_blog <- function(cor, height = NULL, width = NULL, ...){
if(is.null(height)){
height <- '200px'
}
if(is.null(width)){
div(class = "box_blog",
style = paste('border:1px solid', cor, ';
background-color: ', cor, ';
height: ', height, ';
... | /R/utils.R | no_license | DouglasMesquita/shinyverse | R | false | false | 4,157 | r | ##-- Caixas ----
box_blog <- function(cor, height = NULL, width = NULL, ...){
if(is.null(height)){
height <- '200px'
}
if(is.null(width)){
div(class = "box_blog",
style = paste('border:1px solid', cor, ';
background-color: ', cor, ';
height: ', height, ';
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DSAIDE.R
\docType{package}
\name{DSAIDE}
\alias{DSAIDE}
\alias{DSAIDE-package}
\title{DSAIDE: A package to learn about Dynamical Systems Approaches to Infectious
Disease Epidemiology}
\description{
The DSAIDE package provides a number of shin... | /man/DSAIDE.Rd | no_license | kuzmenkov111/DSAIDE | R | false | true | 2,412 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DSAIDE.R
\docType{package}
\name{DSAIDE}
\alias{DSAIDE}
\alias{DSAIDE-package}
\title{DSAIDE: A package to learn about Dynamical Systems Approaches to Infectious
Disease Epidemiology}
\description{
The DSAIDE package provides a number of shin... |
## for a unicontr object, find the formula for the smallest marginality-preserving model that supports the contrasts the user selects
minmodel <- function(contr,frm,cm,debug=F){
## contr = vector of names for matrices within cm
## frm = formula
## cm = unicontr object
if(!all(contr%in%names(cm))){
cat('\n\n... | /PrelimA/minmodel.R | no_license | UTHSCSA-CIRD/PrelimA | R | false | false | 1,270 | r | ## for a unicontr object, find the formula for the smallest marginality-preserving model that supports the contrasts the user selects
minmodel <- function(contr,frm,cm,debug=F){
## contr = vector of names for matrices within cm
## frm = formula
## cm = unicontr object
if(!all(contr%in%names(cm))){
cat('\n\n... |
# File hydrokrige.R
# Part of the hydroTSM R package, http://www.rforge.net/hydroTSM/ ;
# http://cran.r-project.org/web/packages/hydroTSM/
# Copyright 2009-2015 Mauricio Zambrano-Bigiarini
# Distributed under GPL 2 or later
##############################################################... | /R/hydrokrige.R | no_license | xuexianwu/hydroTSM | R | false | false | 70,887 | r | # File hydrokrige.R
# Part of the hydroTSM R package, http://www.rforge.net/hydroTSM/ ;
# http://cran.r-project.org/web/packages/hydroTSM/
# Copyright 2009-2015 Mauricio Zambrano-Bigiarini
# Distributed under GPL 2 or later
##############################################################... |
require(kknn)
data(iris)
m <- dim(iris)[1]
val <- sample(1:m, size = round(m/3), replace = FALSE,
prob = rep(1/m, m))
iris.learn <- iris[-val,]
iris.valid <- iris[val,]
iris.kknn <- kknn(Species~., iris.learn, iris.valid, distance = 1,
kernel = "triangular")
summary(iris.kknn)
fit <- f... | /Data Analytics/code/weighted knn.r | no_license | Ely-S/Datalabs | R | false | false | 3,758 | r | require(kknn)
data(iris)
m <- dim(iris)[1]
val <- sample(1:m, size = round(m/3), replace = FALSE,
prob = rep(1/m, m))
iris.learn <- iris[-val,]
iris.valid <- iris[val,]
iris.kknn <- kknn(Species~., iris.learn, iris.valid, distance = 1,
kernel = "triangular")
summary(iris.kknn)
fit <- f... |
# sample vector of counts to document format
format_to_docs <- function(sample,vocab){
sample <- sample[sample != 0]
idx <- match(names(sample),vocab)
doc <- matrix(0L,2,length(sample),
dimnames=list(c('idx','count'),names(sample)))
doc[1,] <- idx
doc[2,] <- sample
return(doc)
}
# funct... | /fuzzedpackages/themetagenomics/R/formatting.R | no_license | akhikolla/testpackages | R | false | false | 7,981 | r | # sample vector of counts to document format
format_to_docs <- function(sample,vocab){
sample <- sample[sample != 0]
idx <- match(names(sample),vocab)
doc <- matrix(0L,2,length(sample),
dimnames=list(c('idx','count'),names(sample)))
doc[1,] <- idx
doc[2,] <- sample
return(doc)
}
# funct... |
## Put comments here that give an overall description of what your
## functions do
#This function creates a list of methods to set or retrieve a matrix
#or to set and get its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
... | /cachematrix.R | no_license | guillaumesl/ProgrammingAssignment2 | R | false | false | 953 | r | ## Put comments here that give an overall description of what your
## functions do
#This function creates a list of methods to set or retrieve a matrix
#or to set and get its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
... |
# Auto-generated by 'tools/tools-generate-config.R'
#' @rdname config
#' @export
config <- list(
activate.prompt = function(..., default = TRUE) {
renv_config_get(
name = "activate.prompt",
type = "logical[1]",
default = default,
args = list(...)
)
},
auto.snapshot = f... | /R/config-defaults.R | permissive | Spencerx/renv | R | false | false | 6,546 | r |
# Auto-generated by 'tools/tools-generate-config.R'
#' @rdname config
#' @export
config <- list(
activate.prompt = function(..., default = TRUE) {
renv_config_get(
name = "activate.prompt",
type = "logical[1]",
default = default,
args = list(...)
)
},
auto.snapshot = f... |
# create table of the 561 variables collected by the smartphones
smart_vars <- read.table("features.txt", sep = " ", stringsAsFactors = FALSE)
# identify the correct variable names
selected_vars <- grep("mean\\(\\)|std()", smart_vars[,2], value = TRUE)
#identifies the corresponding index to the names
selected_vars... | /run_analysis.R | no_license | NYankelev/week4 | R | false | false | 2,462 | r | # create table of the 561 variables collected by the smartphones
smart_vars <- read.table("features.txt", sep = " ", stringsAsFactors = FALSE)
# identify the correct variable names
selected_vars <- grep("mean\\(\\)|std()", smart_vars[,2], value = TRUE)
#identifies the corresponding index to the names
selected_vars... |
#' Helper function to convert a list of folds to list of dfs
#' @param fold
#' @param df
#' @export
folds_list_to_df_list <- function(fold, df) {
train = df[-fold, ]
valid = df[fold, ]
list(train = train,
valid = valid)
} | /R/folds_list_to_df_list.R | permissive | disarm-platform/disarmr | R | false | false | 236 | r | #' Helper function to convert a list of folds to list of dfs
#' @param fold
#' @param df
#' @export
folds_list_to_df_list <- function(fold, df) {
train = df[-fold, ]
valid = df[fold, ]
list(train = train,
valid = valid)
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/image_readers.R
\name{open_mask_rle}
\alias{open_mask_rle}
\title{open_mask_rle}
\usage{
open_mask_rle(mask_rle, shape)
}
\arguments{
\item{mask_rle}{mask_rle}
\item{shape}{shape}
}
\description{
Return `ImageSegment` object create from run-... | /man/open_mask_rle.Rd | permissive | ysnghr/fastai | R | false | true | 380 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/image_readers.R
\name{open_mask_rle}
\alias{open_mask_rle}
\title{open_mask_rle}
\usage{
open_mask_rle(mask_rle, shape)
}
\arguments{
\item{mask_rle}{mask_rle}
\item{shape}{shape}
}
\description{
Return `ImageSegment` object create from run-... |
library(rgl)
source('C:/Users/Ogan/Dropbox/Rotation 3/ogbox.r')
parent = getParent()
allDataPre = read.csv(parent + 'Data/mostVariableQuantileNormalized', header = T)
require(ggplot2)
design = read.table(parent + 'Data/normalizedDesign.csv',header=T,sep='\t')
design$anatomical = gsub('Corpus Striatum', 'Striatum', d... | /pca/pca.R | no_license | oganm/Rotation-3 | R | false | false | 5,643 | r | library(rgl)
source('C:/Users/Ogan/Dropbox/Rotation 3/ogbox.r')
parent = getParent()
allDataPre = read.csv(parent + 'Data/mostVariableQuantileNormalized', header = T)
require(ggplot2)
design = read.table(parent + 'Data/normalizedDesign.csv',header=T,sep='\t')
design$anatomical = gsub('Corpus Striatum', 'Striatum', d... |
library(quantmod)
library(fBasics)
library(dplyr)
library(highcharter)
library(scales)
library(Quandl)
library(dygraphs)
Quandl.api_key('EcxndBKxcnFeh_sK_yB_')
## SPX vs. VIX lower bound and VXST upper data
Load_SPX_VS_data <- function(some.start.date, some.end.date) {
my.start.date <- some.start.date
... | /volcharting.R | no_license | hvnguy6/application_old | R | false | false | 4,518 | r | library(quantmod)
library(fBasics)
library(dplyr)
library(highcharter)
library(scales)
library(Quandl)
library(dygraphs)
Quandl.api_key('EcxndBKxcnFeh_sK_yB_')
## SPX vs. VIX lower bound and VXST upper data
Load_SPX_VS_data <- function(some.start.date, some.end.date) {
my.start.date <- some.start.date
... |
#!/usr/bin/evn Rscript
### Description
# does analysis and builds figures for the rarefaction test.
# I wanted to see how rarefying at different levels effected
# alpha diversity.
library(ggplot2)
require("getopt", quietly=T)
source("Rutil.R")
### Defualt variables
verbose = FALSE
### Parameter variables
# The para... | /make_rare_figs.R | no_license | islandhopper81/pitcher_plant_utils | R | false | false | 2,557 | r | #!/usr/bin/evn Rscript
### Description
# does analysis and builds figures for the rarefaction test.
# I wanted to see how rarefying at different levels effected
# alpha diversity.
library(ggplot2)
require("getopt", quietly=T)
source("Rutil.R")
### Defualt variables
verbose = FALSE
### Parameter variables
# The para... |
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/kidney.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/kidney/kidney_004.txt',append=TRUE)... | /Model/EN/ReliefF/kidney/kidney_004.R | no_license | leon1003/QSMART | R | false | false | 350 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/kidney.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/kidney/kidney_004.txt',append=TRUE)... |
##Assignment Week 4.4
library(ggplot2)
### Set working directory to where the data lives.
setwd("H:/BigStegShare/COURSERA/DataScience/Exploratory Data Analysis/")
### Read in data.
## This first line will likely take a few seconds. Be patient! The following code comes directly from the class assignment page.... | /plot4.R | no_license | steg1/EploratoryDataAnalysisWeek4Assignment | R | false | false | 1,159 | r | ##Assignment Week 4.4
library(ggplot2)
### Set working directory to where the data lives.
setwd("H:/BigStegShare/COURSERA/DataScience/Exploratory Data Analysis/")
### Read in data.
## This first line will likely take a few seconds. Be patient! The following code comes directly from the class assignment page.... |
library(ggplot2)
library(maps) #maps package contains shape files
library(readxl)
library(maptools)
library(rgeos)
library(Cairo)
library(ggmap)
library(scales)
library(RColorBrewer)
setwd("~/R files/Mapping")
#load us map data
all_county <- map_data("county")
#import rate data to map
cntyrate <- read_excel("countyrat... | /basic_county_map.R | no_license | anvesaka/R_code | R | false | false | 1,034 | r | library(ggplot2)
library(maps) #maps package contains shape files
library(readxl)
library(maptools)
library(rgeos)
library(Cairo)
library(ggmap)
library(scales)
library(RColorBrewer)
setwd("~/R files/Mapping")
#load us map data
all_county <- map_data("county")
#import rate data to map
cntyrate <- read_excel("countyrat... |
---
título: "Capítulo 8. Caso práctico. Patrones de localización en el poblamiento de la Edad del hierro de Galicia (Noroeste de la Península Ibérica), perteneciente al libro Carrero-Pazos, M. (2022). *Arqueología Computacional del Territorio. Métodos y técnicas para estudiar decisiones humanas en paisajes pretéritos*.... | /Capítulo 8/scripts/4. Regresion_logística y procesos de puntos.R | permissive | MCarreroPazos/ArqueologiaComputacionalTerritorio | R | false | false | 8,827 | r | ---
título: "Capítulo 8. Caso práctico. Patrones de localización en el poblamiento de la Edad del hierro de Galicia (Noroeste de la Península Ibérica), perteneciente al libro Carrero-Pazos, M. (2022). *Arqueología Computacional del Territorio. Métodos y técnicas para estudiar decisiones humanas en paisajes pretéritos*.... |
library(ggplot2)
df <- data.frame(x = seq(-3,3,length.out=100))
df$y <- 2 + 3 * df$x + rnorm(100, sd = 0.5)
ggplot(data = df, aes(x = x, y = y)) +
geom_smooth(method="lm",formula=y~x, se=FALSE,color="black",size=2)+
geom_point(color="red",cex=3)
##########
T <- lm(y~x,data=df)
summary(T) | /cs573/code/linearregression.R | no_license | jdavis/college-spring-2014 | R | false | false | 310 | r | library(ggplot2)
df <- data.frame(x = seq(-3,3,length.out=100))
df$y <- 2 + 3 * df$x + rnorm(100, sd = 0.5)
ggplot(data = df, aes(x = x, y = y)) +
geom_smooth(method="lm",formula=y~x, se=FALSE,color="black",size=2)+
geom_point(color="red",cex=3)
##########
T <- lm(y~x,data=df)
summary(T) |
library(preseqR)
### Name: SRR061157_k31
### Title: k-mer counts of a metagenomic data
### Aliases: SRR061157_k31
### Keywords: datasets
### ** Examples
##load library
library(preseqR)
##load data
data(SRR061157_k31)
| /data/genthat_extracted_code/preseqR/examples/SRR061157_k31.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 225 | r | library(preseqR)
### Name: SRR061157_k31
### Title: k-mer counts of a metagenomic data
### Aliases: SRR061157_k31
### Keywords: datasets
### ** Examples
##load library
library(preseqR)
##load data
data(SRR061157_k31)
|
setwd("git/")
RcppParallel::setThreadOptions(numThreads = 32)
source("Scrips/Commons/Config.R")
source("Scrips/Commons/utils.R")
source("Scrips/Propor/Database/DataSets.R")
source("Scrips/Commons/pre-processing.R")
source("Scrips/Commons/glove.R")
source("Scrips/Propor/Database/dbWordnet.R")
source("Scrips/Commons/sim... | /R language/Runs/GLM/mainscript-glm-run-synonym-hyponym.R | no_license | albarsil/unists | R | false | false | 7,022 | r | setwd("git/")
RcppParallel::setThreadOptions(numThreads = 32)
source("Scrips/Commons/Config.R")
source("Scrips/Commons/utils.R")
source("Scrips/Propor/Database/DataSets.R")
source("Scrips/Commons/pre-processing.R")
source("Scrips/Commons/glove.R")
source("Scrips/Propor/Database/dbWordnet.R")
source("Scrips/Commons/sim... |
# Testing the read10xCounts function.
# library(DropletUtils); library(testthat); source("test-read10x.R")
set.seed(1000)
library(Matrix)
tmpdir <- tempfile()
# Mocking up some 10X genomics output.
my.counts <- matrix(rpois(1000, lambda=5), ncol=10, nrow=100)
my.counts <- as(my.counts, "dgCMatrix")
ngenes <- nrow(my... | /tests/testthat/test-read10x.R | no_license | broadinstitute/DropletUtils | R | false | false | 5,629 | r | # Testing the read10xCounts function.
# library(DropletUtils); library(testthat); source("test-read10x.R")
set.seed(1000)
library(Matrix)
tmpdir <- tempfile()
# Mocking up some 10X genomics output.
my.counts <- matrix(rpois(1000, lambda=5), ncol=10, nrow=100)
my.counts <- as(my.counts, "dgCMatrix")
ngenes <- nrow(my... |
rm(list=ls())
library(ggplot2)
library(data.table)
require(reshape)
data=data.frame(read.table('RSEM.genes.fpkm.gt1.tsv',header=T,sep='\t'))
data$GeneId=NULL
data$GeneName=NULL
for(n in 1:ncol(data)){
cur_title=names(data)[n]
cur_values=subset(data,select=c(cur_title))
#png(filename=paste(cur_title,".png",sep=""... | /nemo/plot_fc.R | no_license | annashcherbina/nobel_lab_projects | R | false | false | 522 | r | rm(list=ls())
library(ggplot2)
library(data.table)
require(reshape)
data=data.frame(read.table('RSEM.genes.fpkm.gt1.tsv',header=T,sep='\t'))
data$GeneId=NULL
data$GeneName=NULL
for(n in 1:ncol(data)){
cur_title=names(data)[n]
cur_values=subset(data,select=c(cur_title))
#png(filename=paste(cur_title,".png",sep=""... |
rm(list=ls()) # remove everything currently held in the R memory
options(stringsAsFactors=FALSE)
graphics.off()
library(dplyr)
library(tidyr)
library(ggplot2)
library(lme4)
setwd("~/Documents/git/gelmanhill/gelmanhill_stuff/ARM_Data/rodents")
rat<-read.csv(file="hvs02_sorted.csv", h=TRUE)
#3.a.
#The probablility of ro... | /gelmanhill_stuff/Chapter 14/14.6.3_DB.R | no_license | lizzieinvancouver/gelmanhill | R | false | false | 1,091 | r | rm(list=ls()) # remove everything currently held in the R memory
options(stringsAsFactors=FALSE)
graphics.off()
library(dplyr)
library(tidyr)
library(ggplot2)
library(lme4)
setwd("~/Documents/git/gelmanhill/gelmanhill_stuff/ARM_Data/rodents")
rat<-read.csv(file="hvs02_sorted.csv", h=TRUE)
#3.a.
#The probablility of ro... |
#' pandemicEstimated objects: Fitted PandemicLP model
#'
#' The \pkg{PandemicLP} model-fitting functions return an object of S3 class
#' \code{pandemicEstimated}, which is a list containing the components described below.
#'
#'
#' @name pandemicEstimated-objects
#'
#' @section Elements for \code{pandemicEstimat... | /fuzzedpackages/PandemicLP/R/pandemicEstimated_Class.R | no_license | akhikolla/testpackages | R | false | false | 1,329 | r | #' pandemicEstimated objects: Fitted PandemicLP model
#'
#' The \pkg{PandemicLP} model-fitting functions return an object of S3 class
#' \code{pandemicEstimated}, which is a list containing the components described below.
#'
#'
#' @name pandemicEstimated-objects
#'
#' @section Elements for \code{pandemicEstimat... |
load("All_Results.RData")
## results of ALL comparisons that have been run are stored
## in a list called "AllRes"
all.dat = list()
comp.names = c()
cat("\n")
for (x in 1:length(AllRes)){
name = colnames(AllRes[[x]]$ans)[grep("log2",colnames(AllRes[[x]]$ans))]
name = sub("log2[","",name,fixed=TRUE)
name = s... | /vennDiagram.R | no_license | soccin/BIC-RNAseq | R | false | false | 5,830 | r | load("All_Results.RData")
## results of ALL comparisons that have been run are stored
## in a list called "AllRes"
all.dat = list()
comp.names = c()
cat("\n")
for (x in 1:length(AllRes)){
name = colnames(AllRes[[x]]$ans)[grep("log2",colnames(AllRes[[x]]$ans))]
name = sub("log2[","",name,fixed=TRUE)
name = s... |
#' This is a function to deseasonalize streamflow data in order to compute the 7 statistics of daily streamflow
#' used by Archfield et al., under revision (June 2013). Input to the function is a
#' time series of streamflow with date in the format Y-m-d. Data should include date, month_val and discharge
#'
#' @param... | /R/deseason.R | permissive | jlthomps/EflowStats-1 | R | false | false | 1,347 | r | #' This is a function to deseasonalize streamflow data in order to compute the 7 statistics of daily streamflow
#' used by Archfield et al., under revision (June 2013). Input to the function is a
#' time series of streamflow with date in the format Y-m-d. Data should include date, month_val and discharge
#'
#' @param... |
#' Negated value matching.
#'
#' %nin% is a binary operator which returns a logical vector indicating
#' if there is not a match for its left operand. It is the logical negation
#' of %in%.
#'
#' @param x vector, the values to be matched
#' @param y vector, the values to be matche against
#'
#' @return a vector of the ... | /R/utils.R | permissive | marcpaterno/ldrd2020050 | R | false | false | 5,642 | r | #' Negated value matching.
#'
#' %nin% is a binary operator which returns a logical vector indicating
#' if there is not a match for its left operand. It is the logical negation
#' of %in%.
#'
#' @param x vector, the values to be matched
#' @param y vector, the values to be matche against
#'
#' @return a vector of the ... |
#' @title Show (description of) data frame as HTML table
#' @name sjt.df
#'
#' @seealso \itemize{
#' \item \href{http://www.strengejacke.de/sjPlot/datainit/}{sjPlot manual: data initialization}
#' \item \href{http://www.strengejacke.de/sjPlot/view_spss/}{sjPlot manual: inspecting (SPSS imp... | /R/sjTabDataFrame.R | no_license | laakmann/sjPlot | R | false | false | 19,574 | r | #' @title Show (description of) data frame as HTML table
#' @name sjt.df
#'
#' @seealso \itemize{
#' \item \href{http://www.strengejacke.de/sjPlot/datainit/}{sjPlot manual: data initialization}
#' \item \href{http://www.strengejacke.de/sjPlot/view_spss/}{sjPlot manual: inspecting (SPSS imp... |
#' Replicate Data Process History
#'
#' \code{modHistory} replicates the \code{fs} history of a reference object.
#' Used by \code{predict} to prepare validation set for model deployment.
#'
#' @param object An \code{ExprsArray} object. The object that should undergo a
#' replication of some feature selection and dim... | /R/2-mod.R | no_license | cran/exprso | R | false | false | 13,698 | r | #' Replicate Data Process History
#'
#' \code{modHistory} replicates the \code{fs} history of a reference object.
#' Used by \code{predict} to prepare validation set for model deployment.
#'
#' @param object An \code{ExprsArray} object. The object that should undergo a
#' replication of some feature selection and dim... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.