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/decomp_lm.R \name{decomp_lm} \alias{decomp_lm} \title{decomp_lm} \usage{ decomp_lm(x, y, options = list()) } \arguments{ \item{x}{model matrix} \item{y}{target variable} \item{options}{list of additional options: \describe{ \item{coeffici...
/man/decomp_lm.Rd
permissive
wkostelecki/tidyecon
R
false
true
618
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/decomp_lm.R \name{decomp_lm} \alias{decomp_lm} \title{decomp_lm} \usage{ decomp_lm(x, y, options = list()) } \arguments{ \item{x}{model matrix} \item{y}{target variable} \item{options}{list of additional options: \describe{ \item{coeffici...
% Generated by roxygen2 (4.0.1): do not edit by hand \docType{class} \name{RasterLayerNamed-class} \alias{RasterLayerNamed-class} \title{RasterLayerNamed class} \description{ This new class extends \code{RasterLayer} by adding a slot called \code{name}. } \details{ Using the simulation visualization features in \code{P...
/SpaDES-master/man/RasterLayerNamed-class.Rd
no_license
B-Ron12/RCodeSK
R
false
false
493
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \docType{class} \name{RasterLayerNamed-class} \alias{RasterLayerNamed-class} \title{RasterLayerNamed class} \description{ This new class extends \code{RasterLayer} by adding a slot called \code{name}. } \details{ Using the simulation visualization features in \code{P...
library(httr) ## # 1. Find OAuth settings for github: # http://developer.github.com/v3/oauth/ oauth_endpoints("github") # 2. To make your own application, register at # https://github.com/settings/developers. Use any URL for the homepage URL # (http://github.com is fine) and http://localhost:1410 as the call...
/github api.R
no_license
ADEWAAD1/testing2
R
false
false
869
r
library(httr) ## # 1. Find OAuth settings for github: # http://developer.github.com/v3/oauth/ oauth_endpoints("github") # 2. To make your own application, register at # https://github.com/settings/developers. Use any URL for the homepage URL # (http://github.com is fine) and http://localhost:1410 as the call...
# Q6 # Compare emissions from motor vehicle sources in Baltimore City with emissions # from motor vehicle sources in Los Angeles County, California (fips == # "06037"). Which city has seen greater changes over time in motor vehicle # emissions? #remove all objects just to be safe rm(list = ls(all = TRUE)) #get neede...
/plot6.R
no_license
wer61537/Particulate_Matter
R
false
false
2,660
r
# Q6 # Compare emissions from motor vehicle sources in Baltimore City with emissions # from motor vehicle sources in Los Angeles County, California (fips == # "06037"). Which city has seen greater changes over time in motor vehicle # emissions? #remove all objects just to be safe rm(list = ls(all = TRUE)) #get neede...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{drop_rows_all_na} \alias{drop_rows_all_na} \title{A function} \usage{ drop_rows_all_na(x, pct = 1) } \description{ A function } \examples{ drop_rows_all_na() }
/man/drop_rows_all_na.Rd
no_license
srhoads/srhoads
R
false
true
256
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{drop_rows_all_na} \alias{drop_rows_all_na} \title{A function} \usage{ drop_rows_all_na(x, pct = 1) } \description{ A function } \examples{ drop_rows_all_na() }
# # ggdendro/R/dendro_tree.R by Andrie de Vries Copyright (C) 2011-2013 # Contains code adapted from stats/hclust.R Copyright (C) 1995-2012 The R Core Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Sof...
/R/dendrogram.R
no_license
mmaga/ggdendro
R
false
false
10,203
r
# # ggdendro/R/dendro_tree.R by Andrie de Vries Copyright (C) 2011-2013 # Contains code adapted from stats/hclust.R Copyright (C) 1995-2012 The R Core Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Sof...
library(reliaR) ### Name: GPWeibull ### Title: The generalized power Weibull(GPW) distribution ### Aliases: GPWeibull dgp.weibull pgp.weibull qgp.weibull rgp.weibull ### Keywords: distribution ### ** Examples ## Load data sets data(repairtimes) ## Maximum Likelihood(ML) Estimates of alpha & theta for the data(repai...
/data/genthat_extracted_code/reliaR/examples/GPWeibull.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
674
r
library(reliaR) ### Name: GPWeibull ### Title: The generalized power Weibull(GPW) distribution ### Aliases: GPWeibull dgp.weibull pgp.weibull qgp.weibull rgp.weibull ### Keywords: distribution ### ** Examples ## Load data sets data(repairtimes) ## Maximum Likelihood(ML) Estimates of alpha & theta for the data(repai...
testlist <- list(Rext = numeric(0), Rs = numeric(0), Z = numeric(0), alpha = numeric(0), atmp = c(3.67587069093475e+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, 0,...
/meteor/inst/testfiles/E_Penman/libFuzzer_E_Penman/E_Penman_valgrind_files/1612738466-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
561
r
testlist <- list(Rext = numeric(0), Rs = numeric(0), Z = numeric(0), alpha = numeric(0), atmp = c(3.67587069093475e+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, 0,...
# 시계열 time series # 시간의 흐름에 따라 관찰된 자료를 분석하는 통계분야 # 시계열 자료들간의 계열상관을 이용하여 # 동태적인 관계를 분석하는 것 # 시계열 # 시간의 흐름(주간/월간/분기/연간)에 따라 관찰된 자료 # 계열상관/자기상관autocorrelation # => 시계열 자료들에서 오차항끼리 상관성이 존재하는 현상 # 어떤 경제 현상(서브프라임)을 시발점으로 다양한 파생현상(브렉시트 등)이 발생되는 경우 # 기존 경제모델의 변수로는 설명 불가 # -> 이것을 오차항으로 인식하는데, ...
/R1811/R37시계열분석.R
no_license
SonDog0/bigdata
R
false
false
4,458
r
# 시계열 time series # 시간의 흐름에 따라 관찰된 자료를 분석하는 통계분야 # 시계열 자료들간의 계열상관을 이용하여 # 동태적인 관계를 분석하는 것 # 시계열 # 시간의 흐름(주간/월간/분기/연간)에 따라 관찰된 자료 # 계열상관/자기상관autocorrelation # => 시계열 자료들에서 오차항끼리 상관성이 존재하는 현상 # 어떤 경제 현상(서브프라임)을 시발점으로 다양한 파생현상(브렉시트 등)이 발생되는 경우 # 기존 경제모델의 변수로는 설명 불가 # -> 이것을 오차항으로 인식하는데, ...
#' Estonia Class for downloading, cleaning and processing notification data #' @description Information for downloading, cleaning #' and processing COVID-19 region data for Estonia #' # nolint start #' @source \url{https://www.terviseamet.ee/et/koroonaviirus/avaandmed} # nolint end #' @export #' @concept dataset #' @f...
/R/Estonia.R
permissive
sierra2190/covidregionaldata
R
false
false
3,589
r
#' Estonia Class for downloading, cleaning and processing notification data #' @description Information for downloading, cleaning #' and processing COVID-19 region data for Estonia #' # nolint start #' @source \url{https://www.terviseamet.ee/et/koroonaviirus/avaandmed} # nolint end #' @export #' @concept dataset #' @f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pairwise_similarity.R \name{pairwise_similarity} \alias{pairwise_similarity} \alias{pairwise_similarity_} \title{Cosine similarity of pairs of items} \usage{ pairwise_similarity(tbl, item, feature, value, ...) pairwise_similarity_(tbl, item,...
/man/pairwise_similarity.Rd
permissive
Kudusch/widyr
R
false
true
1,212
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pairwise_similarity.R \name{pairwise_similarity} \alias{pairwise_similarity} \alias{pairwise_similarity_} \title{Cosine similarity of pairs of items} \usage{ pairwise_similarity(tbl, item, feature, value, ...) pairwise_similarity_(tbl, item,...
#Eigenvalue localization performance analysis for different Eigen Gradient #Author: Akshay Joshi #Description: This code implements both EL methods proposed by Cvetkovic and Chaoqian Li for random 5*5 double stochastic matrices. Can be used to test other eigengradients and variant spectrum. #Generating random st...
/Performance vs Eigen Gradient.R
permissive
akshayjoshi942/eigenvalue-localization
R
false
false
5,493
r
#Eigenvalue localization performance analysis for different Eigen Gradient #Author: Akshay Joshi #Description: This code implements both EL methods proposed by Cvetkovic and Chaoqian Li for random 5*5 double stochastic matrices. Can be used to test other eigengradients and variant spectrum. #Generating random st...
## Amazon prices scraping: #http://stackoverflow.com/questions/1500365/how-does-one-find-prices-from-amazons-site-programmatically library(rvest) #searches: #https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords=nvidia+grapgics+card&rh=i%3Aaps%2Ck%3Anvidia+grapgics+card #function to grab pric...
/Pricing_Data/Amazon Price Scrapping CODE/Amazon Price Scrapping.R
no_license
jbohning/Pricing_Data
R
false
false
7,224
r
## Amazon prices scraping: #http://stackoverflow.com/questions/1500365/how-does-one-find-prices-from-amazons-site-programmatically library(rvest) #searches: #https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords=nvidia+grapgics+card&rh=i%3Aaps%2Ck%3Anvidia+grapgics+card #function to grab pric...
#SVR # Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Fitting SVR to the dataset # install.packages('e1071') library(e1071) regressor=svm(formula=Salary ~., data = dataset, type='eps-regression') # Predicting a new result y_pred=predict(regres...
/Part 2 - Regression/Section 7 - Support Vector Regression (SVR)/svr_va.R
no_license
mudumalavamsikrishna/datascience
R
false
false
707
r
#SVR # Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Fitting SVR to the dataset # install.packages('e1071') library(e1071) regressor=svm(formula=Salary ~., data = dataset, type='eps-regression') # Predicting a new result y_pred=predict(regres...
set.seed(42) library(ggplot2) library(dplyr) vars = c("none", "rs77010315") traits = c("Ala", "Pyruvate", "Ile", "Val", "Leu") data.table::rbindlist(lapply(vars, function(var) { data.table::rbindlist(lapply(traits, function(trait) { data.table::fread(paste0("conditional/SLC36A2/", var, ".", trait, ".glm....
/Data Analysis/Conditional/run.all.coloc.SLC36A2.R
no_license
courtrun/Pleiotropy-of-UKB-Metabolites
R
false
false
1,839
r
set.seed(42) library(ggplot2) library(dplyr) vars = c("none", "rs77010315") traits = c("Ala", "Pyruvate", "Ile", "Val", "Leu") data.table::rbindlist(lapply(vars, function(var) { data.table::rbindlist(lapply(traits, function(trait) { data.table::fread(paste0("conditional/SLC36A2/", var, ".", trait, ".glm....
bh_randomforest <-function(Data, label,option) ## Option -->"train" performs training of the random forest # Data --> Input training data # label --> training labels ## option--> "test" performs testing of the random forest # Data --> trained function (fitted function) of the random forest # label --...
/bh_randomforest.R
no_license
bbdamodaran/AP_DERIVED
R
false
false
2,128
r
bh_randomforest <-function(Data, label,option) ## Option -->"train" performs training of the random forest # Data --> Input training data # label --> training labels ## option--> "test" performs testing of the random forest # Data --> trained function (fitted function) of the random forest # label --...
mink.dist <- function(x1, x2, p) { (sum(abs(avdiff(x1,x2))^p, na.rm=TRUE))^(1/p) } if (FALSE) { # Minkowski distance dissimilarity matrices for the weathercl data dissmat(weathercl, function (x1, x2) mink.dist(x1, x2, 1)) dissmat(weathercl, function (x1, x2) mink.dist(x1, x2, 3)) }
/R/dissimilarity-minkowski.R
no_license
42n4/dmr.dissim
R
false
false
289
r
mink.dist <- function(x1, x2, p) { (sum(abs(avdiff(x1,x2))^p, na.rm=TRUE))^(1/p) } if (FALSE) { # Minkowski distance dissimilarity matrices for the weathercl data dissmat(weathercl, function (x1, x2) mink.dist(x1, x2, 1)) dissmat(weathercl, function (x1, x2) mink.dist(x1, x2, 3)) }
install.packages("DT") install.packages("shiny") install.packages("shinydashboard") install.packages("shinyFiles") install.packages("tidyverse")
/install.R
permissive
mikeniemant/TCU_trend_analysis
R
false
false
145
r
install.packages("DT") install.packages("shiny") install.packages("shinydashboard") install.packages("shinyFiles") install.packages("tidyverse")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/path.R \name{get_current_paths} \alias{get_current_paths} \title{Get the current paths defined by \code{\link{init.path}()} or \code{\link{add_path_prefix}()}} \usage{ get_current_paths() } \description{ Get the current paths defined by \code...
/man/get_current_paths.Rd
no_license
cturbelin/ifnBase
R
false
true
749
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/path.R \name{get_current_paths} \alias{get_current_paths} \title{Get the current paths defined by \code{\link{init.path}()} or \code{\link{add_path_prefix}()}} \usage{ get_current_paths() } \description{ Get the current paths defined by \code...
{ ## First, import the data ## 'f' is the file name, 'd' is the raw datafram f <- "household_power_consumption.txt" d <- read.csv(f, header = TRUE, sep = ";", colClasses = "character") # Trim to make the dataset more manageable d_sm <- subset(d, Date == "1/2/2007...
/plot1.R
no_license
genuardi/ExData_Plotting1
R
false
false
618
r
{ ## First, import the data ## 'f' is the file name, 'd' is the raw datafram f <- "household_power_consumption.txt" d <- read.csv(f, header = TRUE, sep = ";", colClasses = "character") # Trim to make the dataset more manageable d_sm <- subset(d, Date == "1/2/2007...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/donut.R \name{donut_chart} \alias{donut_chart} \title{Creates a donut chart.} \usage{ donut_chart(data, groupColumn, totalsColumn, centerLabel = "", centerColor = "#767676", centerLabelColor = "white", centerLabelSize = 24, startColor = "...
/man/donut_chart.Rd
permissive
Blake-Madden/donutchart
R
false
true
1,847
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/donut.R \name{donut_chart} \alias{donut_chart} \title{Creates a donut chart.} \usage{ donut_chart(data, groupColumn, totalsColumn, centerLabel = "", centerColor = "#767676", centerLabelColor = "white", centerLabelSize = 24, startColor = "...
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615854175-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
659
r
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e...
#Monte Carlo simulation to compute the probability of simple event #Acknowledgement: https://www.countbayesie.com/blog/2015/3/3/6-amazing-trick-with-monte-carlo-simulations if (FALSE) {" Suppose we rolled two fair dice. What is the probability that their sum is at least 7? We will approach this by simulating many thr...
/comp_graph_in_applied_stat/Lecture Files for Test 1/MonteCarloexample1.R
no_license
himesh257/classwork-research
R
false
false
1,373
r
#Monte Carlo simulation to compute the probability of simple event #Acknowledgement: https://www.countbayesie.com/blog/2015/3/3/6-amazing-trick-with-monte-carlo-simulations if (FALSE) {" Suppose we rolled two fair dice. What is the probability that their sum is at least 7? We will approach this by simulating many thr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generateData.R \name{generateData} \alias{generateData} \title{Generate Full Dataset} \usage{ generateData(n) } \arguments{ \item{n}{the sample size in each simulated dataset} } \value{ the simulated dataset according to the settings in Konto...
/MIsimulation/man/generateData.Rd
no_license
sheep720/MIsimulation
R
false
true
474
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generateData.R \name{generateData} \alias{generateData} \title{Generate Full Dataset} \usage{ generateData(n) } \arguments{ \item{n}{the sample size in each simulated dataset} } \value{ the simulated dataset according to the settings in Konto...
#' Calculate a timely completion term for every student #' #' Add a column to a data frame of student-level records that indicates the #' latest term by which degree completion would be considered timely for every #' student. #' #' By "completion" we mean an undergraduate earning their first baccalaureate #' degree ...
/R/add_timely_term.R
permissive
MIDFIELDR/midfieldr
R
false
false
9,591
r
#' Calculate a timely completion term for every student #' #' Add a column to a data frame of student-level records that indicates the #' latest term by which degree completion would be considered timely for every #' student. #' #' By "completion" we mean an undergraduate earning their first baccalaureate #' degree ...
library(FSAdata) ### Name: YERockfish ### Title: Ages, lengths, and maturity for Yelloweye Rockfish. ### Aliases: YERockfish ### Keywords: datasets ### ** Examples data(YERockfish) str(YERockfish) head(YERockfish) op <- par(mfrow=c(2,2),pch=19) plot(length~age,data=YERockfish,ylab="Total Length (cm)",xlab="Age") hi...
/data/genthat_extracted_code/FSAdata/examples/YERockfish.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
734
r
library(FSAdata) ### Name: YERockfish ### Title: Ages, lengths, and maturity for Yelloweye Rockfish. ### Aliases: YERockfish ### Keywords: datasets ### ** Examples data(YERockfish) str(YERockfish) head(YERockfish) op <- par(mfrow=c(2,2),pch=19) plot(length~age,data=YERockfish,ylab="Total Length (cm)",xlab="Age") hi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sem_fit.R \name{sem_e} \alias{sem_e} \title{SEM (Residuals)} \usage{ sem_e(obs, FUN = ram_residuals, ...) } \arguments{ \item{obs}{Observed sample variance-covariance matrix.} \item{FUN}{Function to derive model implied variance-covariance m...
/man/sem_e.Rd
permissive
jeksterslabds/jeksterslabRds
R
false
true
563
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sem_fit.R \name{sem_e} \alias{sem_e} \title{SEM (Residuals)} \usage{ sem_e(obs, FUN = ram_residuals, ...) } \arguments{ \item{obs}{Observed sample variance-covariance matrix.} \item{FUN}{Function to derive model implied variance-covariance m...
library(tidyverse) library(lubridate) library(stringr) library(tidytext) library(broom) library(scales) library(dplyr) library(ggplot2) theme_set(theme_bw()) # get text Livy <- read_csv("All_Livy.csv")%>% mutate(Book = parse_number(Book)) # convert to tokens Livy_tokens <- Livy %>% group_by(Book) %>% unnest_to...
/FP_topicmodel.R
no_license
cfss-old/fp-EmilyForden
R
false
false
1,116
r
library(tidyverse) library(lubridate) library(stringr) library(tidytext) library(broom) library(scales) library(dplyr) library(ggplot2) theme_set(theme_bw()) # get text Livy <- read_csv("All_Livy.csv")%>% mutate(Book = parse_number(Book)) # convert to tokens Livy_tokens <- Livy %>% group_by(Book) %>% unnest_to...
library(testthat) library(gscVisualizer) test_check("gscVisualizer")
/tests/testthat.R
permissive
Deemolotus/gscVisualizer
R
false
false
70
r
library(testthat) library(gscVisualizer) test_check("gscVisualizer")
########################### # File: Draft Day.R # Description: Continually recalculates optimal team given which players are available # Date: 3/3/2013 # Author: Isaac Petersen (isaac@fantasyfootballanalytics.net) # Notes: # -These calculations are from last year (they have not yet been updated for the upcoming season)...
/R Scripts/Draft Day.R
no_license
Themustardtiger/FantasyFootballAnalyticsR
R
false
false
6,003
r
########################### # File: Draft Day.R # Description: Continually recalculates optimal team given which players are available # Date: 3/3/2013 # Author: Isaac Petersen (isaac@fantasyfootballanalytics.net) # Notes: # -These calculations are from last year (they have not yet been updated for the upcoming season)...
limpiar.materiales <- function(){ setwd("~/Magro/Clientes/Bond/Bond - en proceso") library(openxlsx) library(dplyr) library(tidyr) library(stringi) '%!in%' <- function(x,y)!('%in%'(x,y)) #unique(df[c("yad", "per")]) ruta <- "~/Magro/Clientes/Bond/Bond - en proceso" datos.raw ...
/scripts.R
no_license
espinosabouvy/bond
R
false
false
2,661
r
limpiar.materiales <- function(){ setwd("~/Magro/Clientes/Bond/Bond - en proceso") library(openxlsx) library(dplyr) library(tidyr) library(stringi) '%!in%' <- function(x,y)!('%in%'(x,y)) #unique(df[c("yad", "per")]) ruta <- "~/Magro/Clientes/Bond/Bond - en proceso" datos.raw ...
#clean the data,fill the missing value setwd("/Users/9zai/Desktop/competition/Titanic/data") library(Hmisc) getTitle <- function(data){ title.dot <- regexpr("\\,[A-Z ]{1,20}\\.",data$Name,T) title.comm <- title.dot + attr(title.dot,"match.length") -1 data$Title <- substr(data$Name,title.dot+2,title.comm -1) re...
/cleanDataVersion1.R
no_license
9zai/Titanic
R
false
false
3,040
r
#clean the data,fill the missing value setwd("/Users/9zai/Desktop/competition/Titanic/data") library(Hmisc) getTitle <- function(data){ title.dot <- regexpr("\\,[A-Z ]{1,20}\\.",data$Name,T) title.comm <- title.dot + attr(title.dot,"match.length") -1 data$Title <- substr(data$Name,title.dot+2,title.comm -1) re...
library(turner) ### Name: dummy_to_list ### Title: Create an indexed list from a dummy matrix ### Aliases: dummy_to_list ### ** Examples # let's say you have a list like this some_list = list(1:3, 1:2, 1:4) # first create a dummy matrix based on some_list some_dummy = list_to_dummy(some_list) # now apply 'dummy_t...
/data/genthat_extracted_code/turner/examples/dummy_to_list.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
487
r
library(turner) ### Name: dummy_to_list ### Title: Create an indexed list from a dummy matrix ### Aliases: dummy_to_list ### ** Examples # let's say you have a list like this some_list = list(1:3, 1:2, 1:4) # first create a dummy matrix based on some_list some_dummy = list_to_dummy(some_list) # now apply 'dummy_t...
context("REMOTE") test_that("get, set, etc. remotes", { desc <- description$new("D2") expect_identical( desc$get_remotes(), c("foo/digest", "svn::https://github.com/hadley/stringr", "local::/pkgs/testthat" ) ) desc$set_remotes(c("bar/knitr", "local::/pkgs/Rcpp")) expect_identical(...
/packrat/lib/x86_64-w64-mingw32/3.4.1/desc/tests/testthat/test-remotes.R
permissive
LimnoTech/SWMPrExtension
R
false
false
978
r
context("REMOTE") test_that("get, set, etc. remotes", { desc <- description$new("D2") expect_identical( desc$get_remotes(), c("foo/digest", "svn::https://github.com/hadley/stringr", "local::/pkgs/testthat" ) ) desc$set_remotes(c("bar/knitr", "local::/pkgs/Rcpp")) expect_identical(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/amcatr.r \name{amcat.upload.articles} \alias{amcat.upload.articles} \title{Upload new articles to AmCAT} \usage{ amcat.upload.articles( conn, project, articleset, text, headline, date, medium, provenance = NULL, ... ) } \arg...
/man/amcat.upload.articles.Rd
permissive
amcat/amcat-r
R
false
true
1,428
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/amcatr.r \name{amcat.upload.articles} \alias{amcat.upload.articles} \title{Upload new articles to AmCAT} \usage{ amcat.upload.articles( conn, project, articleset, text, headline, date, medium, provenance = NULL, ... ) } \arg...
library(plyr) library(tree) library(gbm) library(glmnet) library(randomForest) library(pls) set.seed(1) train = read.csv("C:/Users/Anson/Documents/R/train.csv", stringsAsFactors = F) test = read.csv("C:/Users/Anson/Documents/R/test.csv", stringsAsFactors = F) #Fill the missing data by median/mode/resamping ...
/project2/HO-MAN-CHEUNG_15/project2.R
no_license
deeplearning-math/2018_math4432
R
false
false
12,385
r
library(plyr) library(tree) library(gbm) library(glmnet) library(randomForest) library(pls) set.seed(1) train = read.csv("C:/Users/Anson/Documents/R/train.csv", stringsAsFactors = F) test = read.csv("C:/Users/Anson/Documents/R/test.csv", stringsAsFactors = F) #Fill the missing data by median/mode/resamping ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metabolismModeling.R \name{metabolismModeling} \alias{metabolismModeling} \title{\code{metabolismModeling} model metabolism with streamMetabolizer package} \usage{ metabolismModeling(metab.data, filename, pool_K600 = "binned", err_obs_iid =...
/PackagesHW/metabolizerhelper/man/metabolismModeling.Rd
no_license
michelleckelly/Kelly_dcei
R
false
true
2,475
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metabolismModeling.R \name{metabolismModeling} \alias{metabolismModeling} \title{\code{metabolismModeling} model metabolism with streamMetabolizer package} \usage{ metabolismModeling(metab.data, filename, pool_K600 = "binned", err_obs_iid =...
mcgd.ml <- function(y, groups, var.type, lambda1 = NULL, lambda2 = NULL, U = NULL, maxit = 100, thresh = 1e-6, alpha0 = NULL, theta0 = NULL, R0 = NULL, trace.it = T){ y <- as.matrix(y) y0 <- y d <- dim(y) n <- d[1] p <- d[2] p1 <- sum(var.type == "gaussian") p2 <- sum(var.type == "bino...
/R/mcgd.ml.R
no_license
genevievelrobin/mimi
R
false
false
9,890
r
mcgd.ml <- function(y, groups, var.type, lambda1 = NULL, lambda2 = NULL, U = NULL, maxit = 100, thresh = 1e-6, alpha0 = NULL, theta0 = NULL, R0 = NULL, trace.it = T){ y <- as.matrix(y) y0 <- y d <- dim(y) n <- d[1] p <- d[2] p1 <- sum(var.type == "gaussian") p2 <- sum(var.type == "bino...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/E_step_approx.R \name{cbbinom.logl} \alias{cbbinom.logl} \title{Cost function for optimizing tau for spike-in data} \usage{ cbbinom.logl(p, z, y, prob, c) } \description{ Cost function for optimizing tau for spike-in data }
/man/cbbinom.logl.Rd
no_license
cz-ye/DECENT
R
false
true
302
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/E_step_approx.R \name{cbbinom.logl} \alias{cbbinom.logl} \title{Cost function for optimizing tau for spike-in data} \usage{ cbbinom.logl(p, z, y, prob, c) } \description{ Cost function for optimizing tau for spike-in data }
######################################################## ## rankprod analysis of generic single channel arrays ## ######################################################## library(RankProd) CLASSES <- c( __PARAM_CLASSES__) ORIGIN <- c( __PARAM_ORIGIN__) # rank prod does not accept duplicated rows - these are usu...
/src/de/mpimp/golm/robin/resources/R/singlechannel/singlechannel_main_rankprod.R
no_license
usadellab/Robina
R
false
false
4,709
r
######################################################## ## rankprod analysis of generic single channel arrays ## ######################################################## library(RankProd) CLASSES <- c( __PARAM_CLASSES__) ORIGIN <- c( __PARAM_ORIGIN__) # rank prod does not accept duplicated rows - these are usu...
#' Climate Data from Sagehen Creek #' #' Data from meterologic station #' #' @format A dataframe with 11 columns and 22617 rows #' \itemize{ #' \item date Month/day/year #' \item year #' \item month #' \item day #' \item wy water year #' \item tmax maximum daily temperature C #' \item tmin minimum daily temperature C #...
/R/sagecomb.R
no_license
Lihao-CAU/ecohydroexamples
R
false
false
495
r
#' Climate Data from Sagehen Creek #' #' Data from meterologic station #' #' @format A dataframe with 11 columns and 22617 rows #' \itemize{ #' \item date Month/day/year #' \item year #' \item month #' \item day #' \item wy water year #' \item tmax maximum daily temperature C #' \item tmin minimum daily temperature C #...
\name{coef.crch} \alias{coef.crch} \alias{vcov.crch} \alias{print.crch} \alias{summary.crch} \alias{print.summary.crch} \alias{logLik.crch} \alias{terms.crch} \alias{model.frame.crch} \alias{model.matrix.crch} \alias{residuals.crch} \alias{fitted.crch} \alias{getSummary.crch} \alias{estfun.crch} \alias{crps.crch} \tit...
/crch/man/coef.crch.Rd
no_license
Three-Poles/Reprocessing
R
false
false
1,337
rd
\name{coef.crch} \alias{coef.crch} \alias{vcov.crch} \alias{print.crch} \alias{summary.crch} \alias{print.summary.crch} \alias{logLik.crch} \alias{terms.crch} \alias{model.frame.crch} \alias{model.matrix.crch} \alias{residuals.crch} \alias{fitted.crch} \alias{getSummary.crch} \alias{estfun.crch} \alias{crps.crch} \tit...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_comparison.R \name{plot_comparison} \alias{plot_comparison} \title{Plot comparison of lake water chemistry} \usage{ plot_comparison( description, x_title = description, text_size = 12, no_seepage = TRUE ) } \arguments{ \item{desc...
/man/plot_comparison.Rd
no_license
cvoter/CSLSchem
R
false
true
818
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_comparison.R \name{plot_comparison} \alias{plot_comparison} \title{Plot comparison of lake water chemistry} \usage{ plot_comparison( description, x_title = description, text_size = 12, no_seepage = TRUE ) } \arguments{ \item{desc...
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 1.4916...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615826988-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
487
r
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 1.4916...
## num_nodes_plot.R: Plots the number of nodes over time. # It is called from "eval/" source("includes.R") ############################### CONSTANTS ######################## dataFile = "num_nodes.csv" plotDateBreaks = "24 hours" pointSeparation = 100 ############################### PLOTTING ########################...
/eval/plotting/num_nodes_plot.R
permissive
tiago-peres/ipfs-crawler
R
false
false
1,603
r
## num_nodes_plot.R: Plots the number of nodes over time. # It is called from "eval/" source("includes.R") ############################### CONSTANTS ######################## dataFile = "num_nodes.csv" plotDateBreaks = "24 hours" pointSeparation = 100 ############################### PLOTTING ########################...
## Copyright (C) 2013 Lars Simon Zehnder # # This file is part of finmix. # # finmix is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # ...
/finmix/R/prior.R
no_license
simonsays1980/finmix-old
R
false
false
80,193
r
## Copyright (C) 2013 Lars Simon Zehnder # # This file is part of finmix. # # finmix is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # ...
library(doParallel) library(foreach) # Calculate the number of cores getDoParWorkers() detectCores() cl=makeCluster(detectCores()-1) registerDoParallel(cl) ...
/ML_sims/delta_0.50/n2500/ipw_haz.R
no_license
lw499/Stochastic_treatment_paper
R
false
false
7,414
r
library(doParallel) library(foreach) # Calculate the number of cores getDoParWorkers() detectCores() cl=makeCluster(detectCores()-1) registerDoParallel(cl) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{predict_hpaSelection} \alias{predict_hpaSelection} \title{Predict outcome and selection equation values from hpaSelection model} \usage{ predict_hpaSelection( object, newdata = NULL, method = "HPA", is_cond = TRUE,...
/hpa/man/predict_hpaSelection.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
1,620
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{predict_hpaSelection} \alias{predict_hpaSelection} \title{Predict outcome and selection equation values from hpaSelection model} \usage{ predict_hpaSelection( object, newdata = NULL, method = "HPA", is_cond = TRUE,...
library(AdaptGauss) data<- read.csv('./prepared_resids.csv', header = T) data <- data[,c("TSP_resid", "SO2_resid", "SO4_resid", "NO2_resid")] for(column in c("TSP_resid", "SO2_resid", "SO4_resid", "NO2_resid")) { ts = data[, column][data[,column] != 0] sampled_ts = sample(ts) len_half = length(ts) %/% 2 train ...
/em_algorithm.r
no_license
artemmaksimov/Modeling-statistical-patterns-of-air-pollution
R
false
false
621
r
library(AdaptGauss) data<- read.csv('./prepared_resids.csv', header = T) data <- data[,c("TSP_resid", "SO2_resid", "SO4_resid", "NO2_resid")] for(column in c("TSP_resid", "SO2_resid", "SO4_resid", "NO2_resid")) { ts = data[, column][data[,column] != 0] sampled_ts = sample(ts) len_half = length(ts) %/% 2 train ...
library("gettext") file <- system.file("data-raw", "iso639-full.csv", package="gettext") iso639 <- read.csv(file, stringsAsFactors = FALSE) iso639 <- data.frame(code=trimws(c(iso639$alpha3.b, iso639$alpha3.t, iso639$alpha2)), english=trimws(rep(iso639$English, 3)), french=tri...
/inst/data-raw/iso639.R
no_license
sigbertklinke/gettext
R
false
false
1,086
r
library("gettext") file <- system.file("data-raw", "iso639-full.csv", package="gettext") iso639 <- read.csv(file, stringsAsFactors = FALSE) iso639 <- data.frame(code=trimws(c(iso639$alpha3.b, iso639$alpha3.t, iso639$alpha2)), english=trimws(rep(iso639$English, 3)), french=tri...
## Practical machine learning final project ## Script for model building ## Libraries library(caret); library(ggplot2); library(dplyr) ## Get data files download.file("https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv", destfile = "pml-training.csv", method = "curl"...
/Model_script.r
no_license
JasonParker/Practical_Machine_course
R
false
false
1,763
r
## Practical machine learning final project ## Script for model building ## Libraries library(caret); library(ggplot2); library(dplyr) ## Get data files download.file("https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv", destfile = "pml-training.csv", method = "curl"...
if(!require(data.table)){ install.packages('data.table') library(data.table) } library(parallel) library(sqldf) ##HELPER FUNCTIONS## #################### readNames<-function(nameFile){ splitLines<-do.call(rbind,strsplit(readLines(nameFile),'\\s*\\|\\s*')) splitLines<-splitLines[splitLines[,4]=='scientific name...
/taxaId.R
no_license
sherrillmix/chloroplast
R
false
false
5,017
r
if(!require(data.table)){ install.packages('data.table') library(data.table) } library(parallel) library(sqldf) ##HELPER FUNCTIONS## #################### readNames<-function(nameFile){ splitLines<-do.call(rbind,strsplit(readLines(nameFile),'\\s*\\|\\s*')) splitLines<-splitLines[splitLines[,4]=='scientific name...
#' autoCaret: Create one-click binary classification models #' #' Functions and a graphical interface to 'automagically' create high performing binary classification models #' @docType package #' @name autoCaret NULL
/R/autoCaret-package.R
permissive
bigdatamatta/autoCaret
R
false
false
216
r
#' autoCaret: Create one-click binary classification models #' #' Functions and a graphical interface to 'automagically' create high performing binary classification models #' @docType package #' @name autoCaret NULL
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sqrt.R \name{step_sqrt} \alias{step_sqrt} \title{Square Root Transformation} \usage{ step_sqrt( recipe, ..., role = NA, trained = FALSE, columns = NULL, skip = FALSE, id = rand_id("sqrt") ) } \arguments{ \item{recipe}{A recipe o...
/man/step_sqrt.Rd
permissive
DavisVaughan/recipes
R
false
true
2,684
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sqrt.R \name{step_sqrt} \alias{step_sqrt} \title{Square Root Transformation} \usage{ step_sqrt( recipe, ..., role = NA, trained = FALSE, columns = NULL, skip = FALSE, id = rand_id("sqrt") ) } \arguments{ \item{recipe}{A recipe o...
library(shiny) require(rCharts) library(knitr) shinyUI(fluidPage(theme = "/shared/bootstrap/css/bootstrap.css", titlePanel("Legerdemain"), navlistPanel( "Garbage Collection", tabPanel("Generations", h3("Heap"), tabsetPanel( tabPanel("Metaspace",showOutput("metaspace", "highcharts")), ...
/R/ui.R
no_license
mohanr/ReactiveServiceability
R
false
false
769
r
library(shiny) require(rCharts) library(knitr) shinyUI(fluidPage(theme = "/shared/bootstrap/css/bootstrap.css", titlePanel("Legerdemain"), navlistPanel( "Garbage Collection", tabPanel("Generations", h3("Heap"), tabsetPanel( tabPanel("Metaspace",showOutput("metaspace", "highcharts")), ...
#' Insert an exercise from a file #' #' Each exercise is contained in its own file, with a unique ID. This function #' reads the file for that ID, knits the contents, and returns the knitted contents. #' Typically this will be used to insert the exercise into an Rmd file. #' If not specified, argument `show_answer` wil...
/R/exercises.R
no_license
dtkaplan/SDSdata
R
false
false
7,789
r
#' Insert an exercise from a file #' #' Each exercise is contained in its own file, with a unique ID. This function #' reads the file for that ID, knits the contents, and returns the knitted contents. #' Typically this will be used to insert the exercise into an Rmd file. #' If not specified, argument `show_answer` wil...
library(umx) ### Name: umx_default_option ### Title: Select first item in list of options, while being flexible about ### choices. ### Aliases: umx_default_option umx_match.arg ### ** Examples option_list = c("default", "par.observed", "empirical") umx_default_option("par.observed", option_list) # An example of ...
/data/genthat_extracted_code/umx/examples/umx_default_option.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
868
r
library(umx) ### Name: umx_default_option ### Title: Select first item in list of options, while being flexible about ### choices. ### Aliases: umx_default_option umx_match.arg ### ** Examples option_list = c("default", "par.observed", "empirical") umx_default_option("par.observed", option_list) # An example of ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model_herlang.R \name{HErlangClass} \alias{HErlangClass} \title{Hyper-Erlang distribution} \description{ Hyper-Erlang distribution Hyper-Erlang distribution } \details{ A mixture of Erlang distributions. A subclass of PH distributions. } \se...
/man/HErlangClass.Rd
permissive
okamumu/mapfit
R
false
true
8,779
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model_herlang.R \name{HErlangClass} \alias{HErlangClass} \title{Hyper-Erlang distribution} \description{ Hyper-Erlang distribution Hyper-Erlang distribution } \details{ A mixture of Erlang distributions. A subclass of PH distributions. } \se...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table.R \name{armadillo.load_table} \alias{armadillo.load_table} \title{Load a table from a project} \usage{ armadillo.load_table(project, folder, name) } \arguments{ \item{project}{study or collection variables} \item{folder}{the folder con...
/man/armadillo.load_table.Rd
no_license
fdlk/molgenis-r-armadillo
R
false
true
588
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table.R \name{armadillo.load_table} \alias{armadillo.load_table} \title{Load a table from a project} \usage{ armadillo.load_table(project, folder, name) } \arguments{ \item{project}{study or collection variables} \item{folder}{the folder con...
#' aplica_cortes_ordinales #' #' apply the cuts obtained with aplica_agrupa_nominal to a list of new variables #' . #' @param tbla_cortes_variables_ord table with cuts return by aplica_agrupa_nominal. #' @param tbl table with data to apply the cuts. #' @param campo_merge name of the variable used to merge the result a...
/R/aplica_cortes_ordinales.R
no_license
gabriela-plantie/preparation4modeling
R
false
false
2,296
r
#' aplica_cortes_ordinales #' #' apply the cuts obtained with aplica_agrupa_nominal to a list of new variables #' . #' @param tbla_cortes_variables_ord table with cuts return by aplica_agrupa_nominal. #' @param tbl table with data to apply the cuts. #' @param campo_merge name of the variable used to merge the result a...
print.HCPCshiny<- function(x,...){ res.shinyhcpc=x if(!inherits(res.shinyhcpc,"HCPCshiny")) stop("non convenient data") cat("Results for the HCPC with Factoshiny\n") cat("You can use it to fine your app the way you left it\n") cat("\n") cat("Corresponding script : \n") print...
/R/print.HCPCshiny.R
no_license
DiegoGamboa28/Factoshiny
R
false
false
503
r
print.HCPCshiny<- function(x,...){ res.shinyhcpc=x if(!inherits(res.shinyhcpc,"HCPCshiny")) stop("non convenient data") cat("Results for the HCPC with Factoshiny\n") cat("You can use it to fine your app the way you left it\n") cat("\n") cat("Corresponding script : \n") print...
.suppdata.plos <- function(doi, si, save.name=NA, dir=NA, cache=TRUE, ...){ #Argument handling if(!is.numeric(si)) stop("PLoS download requires numeric SI info") dir <- .tmpdir(dir) save.name <- .save.name(doi, save.name, si) #Find journal from DOI journals <- setNames(c("plosone", ...
/R/journals.R
no_license
MarionLegrandLogrami/suppdata
R
false
false
8,837
r
.suppdata.plos <- function(doi, si, save.name=NA, dir=NA, cache=TRUE, ...){ #Argument handling if(!is.numeric(si)) stop("PLoS download requires numeric SI info") dir <- .tmpdir(dir) save.name <- .save.name(doi, save.name, si) #Find journal from DOI journals <- setNames(c("plosone", ...
server <- function(input, output, session) { #displaying table output$table.output <- renderTable(striped = TRUE, hover = TRUE, bordered = TRUE,width = 50, spacing = 's', { upload_file() ...
/2.R
no_license
microsoftjulius/RECESS2-GROUP023-2018
R
false
false
4,165
r
server <- function(input, output, session) { #displaying table output$table.output <- renderTable(striped = TRUE, hover = TRUE, bordered = TRUE,width = 50, spacing = 's', { upload_file() ...
## ----setup, include=FALSE------------------------------------------------ knitr::opts_chunk$set(echo = TRUE) ## ---- fig.show='hold'---------------------------------------------------- # devtools::install_github(c("ramnathv/htmlwidgets", "smartinsightsfromdata/rpivotTable")) ## ---- fig.show='hold'-----------------...
/vignettes/rpivotTableIntroduction.R
no_license
AnnickB/MyPivot
R
false
false
1,482
r
## ----setup, include=FALSE------------------------------------------------ knitr::opts_chunk$set(echo = TRUE) ## ---- fig.show='hold'---------------------------------------------------- # devtools::install_github(c("ramnathv/htmlwidgets", "smartinsightsfromdata/rpivotTable")) ## ---- fig.show='hold'-----------------...
# Cleaning and formating input -------------------------------------------- input <- function(x) { x <- tolower(x) x <- gsub("[[:punct:]]|\\d", "", x) x <- gsub("(^[[:space:]]+|[[:space:]]+$)", "", x) input_len <- sapply(gregexpr("\\S+", x), length) if (input_len == 1) { monogram <- unlist(st...
/helpers.R
no_license
vpascal/Data-Capstone
R
false
false
3,655
r
# Cleaning and formating input -------------------------------------------- input <- function(x) { x <- tolower(x) x <- gsub("[[:punct:]]|\\d", "", x) x <- gsub("(^[[:space:]]+|[[:space:]]+$)", "", x) input_len <- sapply(gregexpr("\\S+", x), length) if (input_len == 1) { monogram <- unlist(st...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EPFR.r \name{txt.hdr} \alias{txt.hdr} \title{txt.hdr} \usage{ txt.hdr(x) } \arguments{ \item{x}{= any string} } \description{ nice-looking header } \seealso{ Other txt: \code{\link{txt.anagram.underlying}}, \code{\link{txt.anagram}}, \code{...
/man/txt.hdr.Rd
no_license
vsrimurthy/EPFR
R
false
true
1,240
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EPFR.r \name{txt.hdr} \alias{txt.hdr} \title{txt.hdr} \usage{ txt.hdr(x) } \arguments{ \item{x}{= any string} } \description{ nice-looking header } \seealso{ Other txt: \code{\link{txt.anagram.underlying}}, \code{\link{txt.anagram}}, \code{...
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
/myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615766259-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,803
r
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting.R \name{plot_cells} \alias{plot_cells} \title{Plots the cells along with their trajectories.} \usage{ plot_cells(cds, x = 1, y = 2, reduction_method = c("UMAP", "tSNE", "PCA"), color_cells_by = "cluster", group_cells_by = c("cluste...
/man/plot_cells.Rd
permissive
mauriziopaul/monocle3
R
false
true
3,762
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting.R \name{plot_cells} \alias{plot_cells} \title{Plots the cells along with their trajectories.} \usage{ plot_cells(cds, x = 1, y = 2, reduction_method = c("UMAP", "tSNE", "PCA"), color_cells_by = "cluster", group_cells_by = c("cluste...
rm(list = ls()) #clear workspace setwd("x://Files/Department/CIC/Achmea/Opleiding 2016/04. 03-01 Machine Learning/") #set working directory Churn_data <- read.csv("Churn.csv",header=TRUE) #read csv file Churn_data$ChurnString[Churn_data$Churn==1]="Churn" Churn_data$ChurnString[Churn_data$Churn==0]="Stay" Churn...
/Semester 3/Data Science and Marketing Analysis/Assignment2/ChurnData.R
no_license
fsimanjuntak/kuliah
R
false
false
14,686
r
rm(list = ls()) #clear workspace setwd("x://Files/Department/CIC/Achmea/Opleiding 2016/04. 03-01 Machine Learning/") #set working directory Churn_data <- read.csv("Churn.csv",header=TRUE) #read csv file Churn_data$ChurnString[Churn_data$Churn==1]="Churn" Churn_data$ChurnString[Churn_data$Churn==0]="Stay" Churn...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 36165 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 26817 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 26817 c c Input Parameter (command line, ...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Kronegger-Pfandler-Pichler/dungeon/dungeon_i10-m10-u10-v0.pddl_planlen=62/dungeon_i10-m10-u10-v0.pddl_planlen=62.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
49,010
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 36165 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 26817 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 26817 c c Input Parameter (command line, ...
## Name: Elizabeth Lee ## Date: 8/31/2017 ## Function: EDA suite of variable selection analyses for wksToEpi aggregation bias at county level ## Filenames: dbMetrics_periodicReg_ilinDt_Octfit_span0.4_degree2_analyzeDB.csv, source_clean_data_function.R ## Data Source: ## Notes: ## ## useful commands: ## install.pack...
/programs/main_aggBias_wksToEpi_predictors_explore.R
no_license
eclee25/flu-SDI-scales
R
false
false
6,398
r
## Name: Elizabeth Lee ## Date: 8/31/2017 ## Function: EDA suite of variable selection analyses for wksToEpi aggregation bias at county level ## Filenames: dbMetrics_periodicReg_ilinDt_Octfit_span0.4_degree2_analyzeDB.csv, source_clean_data_function.R ## Data Source: ## Notes: ## ## useful commands: ## install.pack...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 10366 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 10366 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#144.A#48.c#.w#3.s#26.asp/ctrl.e#1.a#3.E#144.A#48.c#.w#3.s#26.asp.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
732
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 10366 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 10366 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
#' Make Regions String from Data Frame of Regions #' #' Given a data frame with variables \code{chrom}, \code{start}, and \code{end}, #' make a regions string that can be passed to bcftools. #' #' @param regions A data frame with \code{chrom}, \code{start}, and \code{end}. #' @return A character string of the form "ch...
/package/R/query_vcf.R
no_license
cc2qe/local_pca
R
false
false
12,265
r
#' Make Regions String from Data Frame of Regions #' #' Given a data frame with variables \code{chrom}, \code{start}, and \code{end}, #' make a regions string that can be passed to bcftools. #' #' @param regions A data frame with \code{chrom}, \code{start}, and \code{end}. #' @return A character string of the form "ch...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hybrid.predict_NCII.R \name{predhy.predict_NCII} \alias{predhy.predict_NCII} \title{Predict the Performance of Hybrids} \usage{ predhy.predict_NCII( inbred_gen, hybrid_phe, male_name = hybrid_phe[, 1], female_name = hybrid_phe[, 2], ...
/man/predhy.predict_NCII.Rd
no_license
cran/predhy
R
false
true
2,664
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hybrid.predict_NCII.R \name{predhy.predict_NCII} \alias{predhy.predict_NCII} \title{Predict the Performance of Hybrids} \usage{ predhy.predict_NCII( inbred_gen, hybrid_phe, male_name = hybrid_phe[, 1], female_name = hybrid_phe[, 2], ...
# Dag Lohmann, KatRisk LLC, June 2012 # katrisk.R explains the basics of risk modeling # The code assumes some abitrary hazard and vulnerability functions that # would normally be peril dependent (e.g. as functions of peak wind gust # or flood depth) # The code contains all features of a risk model including secondary ...
/r_catmodel/katrisk2_1.r
no_license
njumeiyi/catmodel
R
false
false
16,648
r
# Dag Lohmann, KatRisk LLC, June 2012 # katrisk.R explains the basics of risk modeling # The code assumes some abitrary hazard and vulnerability functions that # would normally be peril dependent (e.g. as functions of peak wind gust # or flood depth) # The code contains all features of a risk model including secondary ...
# FUNCTION 1: The following function creates a special "matrix" object that can cache its inverse. # MakeCasheMatrix creates a list containing a function that sets the value of the vector, # gets the value of the vector, sets the values of the inversed matrix, and gets the values of the inversed matrix. makeCa...
/cachematrix.R
no_license
knwallaart/ProgrammingAssignment2
R
false
false
2,745
r
# FUNCTION 1: The following function creates a special "matrix" object that can cache its inverse. # MakeCasheMatrix creates a list containing a function that sets the value of the vector, # gets the value of the vector, sets the values of the inversed matrix, and gets the values of the inversed matrix. makeCa...
#Setting the working dir setwd("C:/Users/Nino/R Kurs/Getting and Cleaning Data/Project/UCI HAR Dataset") #Loading the train datasets x_test<-read.table("./test/x_test.txt",header=F) y_test<-read.table("./test/y_test.txt",header=F) subject_test<-read.table("./test/subject_test.txt",header=F) activitylab <- as.character...
/run_analysis.R
no_license
NikoGitt/Getting-and-cleaning-Data-Project
R
false
false
1,987
r
#Setting the working dir setwd("C:/Users/Nino/R Kurs/Getting and Cleaning Data/Project/UCI HAR Dataset") #Loading the train datasets x_test<-read.table("./test/x_test.txt",header=F) y_test<-read.table("./test/y_test.txt",header=F) subject_test<-read.table("./test/subject_test.txt",header=F) activitylab <- as.character...
/gapAnalysis_plots.R
no_license
vbern/gap-analysis-maxent
R
false
false
6,429
r
#------------------------------------------------------------------------------ # libraries #------------------------------------------------------------------------------ library('SSN') library('fluvgrm') library('viridis') #------------------------------------------------------------------------------ #-------------...
/inst/scripts/realDataFigures.R
no_license
jayverhoef/fluvgrm
R
false
false
14,392
r
#------------------------------------------------------------------------------ # libraries #------------------------------------------------------------------------------ library('SSN') library('fluvgrm') library('viridis') #------------------------------------------------------------------------------ #-------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/repos.R \name{DkubeFeatureSet} \alias{DkubeFeatureSet} \title{Dkube Featureset} \usage{ DkubeFeatureSet(user = NULL, name = NULL) } \arguments{ \item{user}{username} \item{name}{repo/resource name} \item{description}{additional details for ...
/man/DkubeFeatureSet.Rd
permissive
oneconvergence/dkube-R
R
false
true
365
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/repos.R \name{DkubeFeatureSet} \alias{DkubeFeatureSet} \title{Dkube Featureset} \usage{ DkubeFeatureSet(user = NULL, name = NULL) } \arguments{ \item{user}{username} \item{name}{repo/resource name} \item{description}{additional details for ...
# report <- get_detailled_report() # report <- head(report) # # load(here::here("data-raw", "report.RData")) # usethis::use_data("report")
/data-raw/report.R
permissive
karissawhiting/togglvis
R
false
false
139
r
# report <- get_detailled_report() # report <- head(report) # # load(here::here("data-raw", "report.RData")) # usethis::use_data("report")
library(nodbi) ### Name: docdb_create ### Title: Create documents ### Aliases: docdb_create ### ** Examples ## Not run: ##D # CouchDB ##D src <- src_couchdb() ##D docdb_create(src, key="mtcars2", value=mtcars) ##D docdb_get(src, "mtcars2") ##D ##D # etcd ##D # src <- src_etcd() ##D # docdb_create(src, key = "/new...
/data/genthat_extracted_code/nodbi/examples/docdb_create.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
909
r
library(nodbi) ### Name: docdb_create ### Title: Create documents ### Aliases: docdb_create ### ** Examples ## Not run: ##D # CouchDB ##D src <- src_couchdb() ##D docdb_create(src, key="mtcars2", value=mtcars) ##D docdb_get(src, "mtcars2") ##D ##D # etcd ##D # src <- src_etcd() ##D # docdb_create(src, key = "/new...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/query.R \name{get.organisms} \alias{get.organisms} \title{Retrieve table of organisms and their taxonomy ID's} \usage{ get.organisms() } \value{ A \code{data.frame} with two columns called "taxid" and "organism" } \description{ BioGRI...
/rbiogrid/man/get.organisms.Rd
no_license
jbuonagurio/cdkr
R
false
false
614
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/query.R \name{get.organisms} \alias{get.organisms} \title{Retrieve table of organisms and their taxonomy ID's} \usage{ get.organisms() } \value{ A \code{data.frame} with two columns called "taxid" and "organism" } \description{ BioGRI...
#Getting and cleaning data Course project# # Leer en los datos 'Caractyeristicas' features <- read.table("D:/Users/Contingencia/Escritorio/Positiva 2020/Getting data/Home/UCI HAR Dataset/features.txt", col.names = c("n","functions")) activities <- read.table("D:/Users/Contingencia/Escritorio/Positiva 2020/Getting data/...
/run_analysis_J.R
no_license
joseruizbc/run_analysis
R
false
false
2,885
r
#Getting and cleaning data Course project# # Leer en los datos 'Caractyeristicas' features <- read.table("D:/Users/Contingencia/Escritorio/Positiva 2020/Getting data/Home/UCI HAR Dataset/features.txt", col.names = c("n","functions")) activities <- read.table("D:/Users/Contingencia/Escritorio/Positiva 2020/Getting data/...
library(TSA) ### Name: armasubsets ### Title: Selection of Subset ARMA Models ### Aliases: armasubsets ### Keywords: methods ### ** Examples set.seed(92397) test=arima.sim(model=list(ar=c(rep(0,11),.8),ma=c(rep(0,11),0.7)),n=120) res=armasubsets(y=test,nar=14,nma=14,y.name='test',ar.method='ols') plot(res)
/data/genthat_extracted_code/TSA/examples/armasubsets.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
315
r
library(TSA) ### Name: armasubsets ### Title: Selection of Subset ARMA Models ### Aliases: armasubsets ### Keywords: methods ### ** Examples set.seed(92397) test=arima.sim(model=list(ar=c(rep(0,11),.8),ma=c(rep(0,11),0.7)),n=120) res=armasubsets(y=test,nar=14,nma=14,y.name='test',ar.method='ols') plot(res)
##------------- dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] str(subSetData) #---------------- datetime <- strptime(paste(subSetData$Date, subSetData$Time, ...
/plot3.R
no_license
bkvijay/Exploratory-Data-Analysis-Coursera-Project-1
R
false
false
754
r
##------------- dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] str(subSetData) #---------------- datetime <- strptime(paste(subSetData$Date, subSetData$Time, ...
#' Transcript of commands typed during live coding session #' at ECAS 2019 (with minor modifications to avoid errors). #' Not all commands make sense on their own; nor do they necessarily #' represent the recommended way to do everything. They are simply #' provided as a service after request from some participants. l...
/docs/transcript.R
no_license
spatstat/ECAS2019
R
false
false
1,327
r
#' Transcript of commands typed during live coding session #' at ECAS 2019 (with minor modifications to avoid errors). #' Not all commands make sense on their own; nor do they necessarily #' represent the recommended way to do everything. They are simply #' provided as a service after request from some participants. l...
library(data.table) load("data/output/op/my_ngram1t4_01_20_2018.RData") NG<-data.table(ngram) save(NG,file="data/output/op/my_ngram1t4DT_01_20_2018.RData")
/convert_to_table.R
no_license
sayefi/nlp
R
false
false
160
r
library(data.table) load("data/output/op/my_ngram1t4_01_20_2018.RData") NG<-data.table(ngram) save(NG,file="data/output/op/my_ngram1t4DT_01_20_2018.RData")
# ------------------------------------------ # BIOL 381 HW 12: Advanced ggplotting # 16 Apr 2020 # EKJ # ------------------------------------------ # # Preliminaries ----------------------------------------------------------- # LOAD LIBRARIES library(ggplot2) require(ggplot2) library(patchwork) require(patchwork) lib...
/Homework_12.R
permissive
ElizabethJamison/JamisonBio381
R
false
false
17,694
r
# ------------------------------------------ # BIOL 381 HW 12: Advanced ggplotting # 16 Apr 2020 # EKJ # ------------------------------------------ # # Preliminaries ----------------------------------------------------------- # LOAD LIBRARIES library(ggplot2) require(ggplot2) library(patchwork) require(patchwork) lib...
library(raster) ### Name: getValuesFocal ### Title: Get focal raster cell values ### Aliases: getValuesFocal getValuesFocal,Raster-method ### getValuesFocal,Raster,missing,missing,numeric-method ### getValuesFocal,Raster,numeric,numeric,numeric-method ### Keywords: spatial methods ### ** Examples r <- raster(nr...
/data/genthat_extracted_code/raster/examples/getValuesFocal.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
511
r
library(raster) ### Name: getValuesFocal ### Title: Get focal raster cell values ### Aliases: getValuesFocal getValuesFocal,Raster-method ### getValuesFocal,Raster,missing,missing,numeric-method ### getValuesFocal,Raster,numeric,numeric,numeric-method ### Keywords: spatial methods ### ** Examples r <- raster(nr...
# Challenge 316 Easy ------------------------------------------------------ knight <- function(x) { moves <- matrix(c(-1,-2,1,-2,-1,2,1,2,-2,-1,2,-1,-2,1,2,1), ncol = 2, byrow = T) d_moves <- matrix(data = 0, ncol = 2) count <- 0 sums <- x while(!all(apply(d_moves, 2, sum) == x)) { count <- cou...
/316 Easy.R
no_license
albcab/-r-dailyprogrammer-
R
false
false
856
r
# Challenge 316 Easy ------------------------------------------------------ knight <- function(x) { moves <- matrix(c(-1,-2,1,-2,-1,2,1,2,-2,-1,2,-1,-2,1,2,1), ncol = 2, byrow = T) d_moves <- matrix(data = 0, ncol = 2) count <- 0 sums <- x while(!all(apply(d_moves, 2, sum) == x)) { count <- cou...
# This is from MCMCpack and GPL-3 riwish <- function (v, S) { solve(rwish(v, solve(S))) } # This is from MCMCpack and GPL-3 rwish <- function (v, S) { if (!is.matrix(S)) S <- matrix(S) if (nrow(S) != ncol(S)) { stop(message = "S not square in rwish().\n") } if (v < nrow(S)) { stop(message = ...
/code/SCM/R/NMAR-Bayes-MI.R
permissive
carushi/mrna-prot
R
false
false
8,286
r
# This is from MCMCpack and GPL-3 riwish <- function (v, S) { solve(rwish(v, solve(S))) } # This is from MCMCpack and GPL-3 rwish <- function (v, S) { if (!is.matrix(S)) S <- matrix(S) if (nrow(S) != ncol(S)) { stop(message = "S not square in rwish().\n") } if (v < nrow(S)) { stop(message = ...
pacman::p_load(magrittr, tidyverse, ENCODExplorer) encode_df <- get_encode_df() targets <- c("YY1", "SPI1", "IKZF1", "RUNX1", "GFI1B", "GATA2", "ERF", "MEIS2") # explore the possible data tf_data <- encode_df %>% dplyr::filter(biosample_name == "K562") %>% dplyr::filter(target %in% targets) %>% dplyr::filte...
/data/tracks/K562/get_bw_files.R
no_license
welch16/YY1_chipseq_tracks
R
false
false
811
r
pacman::p_load(magrittr, tidyverse, ENCODExplorer) encode_df <- get_encode_df() targets <- c("YY1", "SPI1", "IKZF1", "RUNX1", "GFI1B", "GATA2", "ERF", "MEIS2") # explore the possible data tf_data <- encode_df %>% dplyr::filter(biosample_name == "K562") %>% dplyr::filter(target %in% targets) %>% dplyr::filte...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gamelift_operations.R \name{gamelift_describe_ec2_instance_limits} \alias{gamelift_describe_ec2_instance_limits} \title{Retrieves the following information for the specified EC2 instance type: \itemize{ \item maximum number of instances allow...
/paws/man/gamelift_describe_ec2_instance_limits.Rd
permissive
peoplecure/paws
R
false
true
2,620
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gamelift_operations.R \name{gamelift_describe_ec2_instance_limits} \alias{gamelift_describe_ec2_instance_limits} \title{Retrieves the following information for the specified EC2 instance type: \itemize{ \item maximum number of instances allow...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/word_frequency.R \name{word_frequency} \alias{word_frequency} \title{Graph of word usage of a data set} \usage{ word_frequency(df, words_to_graph) } \arguments{ \item{df}{A dataframe with the following columns: 'speech' <chr>, 'location' <chr...
/coursework/speechanalysis/man/word_frequency.Rd
no_license
Mauzey/MATH513-Group-Work
R
false
true
696
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/word_frequency.R \name{word_frequency} \alias{word_frequency} \title{Graph of word usage of a data set} \usage{ word_frequency(df, words_to_graph) } \arguments{ \item{df}{A dataframe with the following columns: 'speech' <chr>, 'location' <chr...
#This program is being created to generate random forest predictions for CocaCola IRT data # #Overall, this is program: 88 library(randomForest) library(readxl) library(fpp2) library(ggpubr) library(MLmetrics) library(writexl) library(caret) #Never hurts: set.seed(1) #For saving results: Likes_MAE = ...
/RF_CocaCola_IRT.R
no_license
PenTompkins/Tompkins_OUDSA5900
R
false
false
27,830
r
#This program is being created to generate random forest predictions for CocaCola IRT data # #Overall, this is program: 88 library(randomForest) library(readxl) library(fpp2) library(ggpubr) library(MLmetrics) library(writexl) library(caret) #Never hurts: set.seed(1) #For saving results: Likes_MAE = ...
#library(DBI) #library(RMySQL) #library(jsonlite) get__platform <- function() { platform <- .Platform$OS.type return(platform) } getfilepath <- function( env_var ) { pl <- get__platform() if ( pl == "windows" ) { fpath <- "'C:/Users/wleutwy/My Documents/R`" } else if (is.element(pl,...
/common_code/common_code_V1.R
no_license
cetanhota/R-Code
R
false
false
850
r
#library(DBI) #library(RMySQL) #library(jsonlite) get__platform <- function() { platform <- .Platform$OS.type return(platform) } getfilepath <- function( env_var ) { pl <- get__platform() if ( pl == "windows" ) { fpath <- "'C:/Users/wleutwy/My Documents/R`" } else if (is.element(pl,...
create.smooth <- function(tab_input,smooth_type=NULL,sigmaLN_cst=NULL,pas=NULL,shift=NULL,smooth_param=NULL) { shift_init <- shift if (is.null(shift)) shift <- 1.8 ##default values if (is.null(pas)) pas <- 0.1 if (is.null(smooth_param)) smooth_param <- 0.07 if (is.null(sigmaLN_cst)) sigmaLN_cst <...
/EcoTroph/R/create.smooth.R
no_license
ingted/R-Examples
R
false
false
2,461
r
create.smooth <- function(tab_input,smooth_type=NULL,sigmaLN_cst=NULL,pas=NULL,shift=NULL,smooth_param=NULL) { shift_init <- shift if (is.null(shift)) shift <- 1.8 ##default values if (is.null(pas)) pas <- 0.1 if (is.null(smooth_param)) smooth_param <- 0.07 if (is.null(sigmaLN_cst)) sigmaLN_cst <...
#------------------------------------------------------------ # GFW #------------------------------------------------------------ # Create average map of fishing effort 2012-2016 # Correlation with shipping maps # Load packages library(tidyverse) # for general data wrangling and plotting library(furrr) # for paral...
/analysis/ais-global/new/gfw2.R
permissive
dmarch/covid19-ais
R
false
false
6,262
r
#------------------------------------------------------------ # GFW #------------------------------------------------------------ # Create average map of fishing effort 2012-2016 # Correlation with shipping maps # Load packages library(tidyverse) # for general data wrangling and plotting library(furrr) # for paral...
\name{disaggSums} \alias{disaggSums} \title{Disaggregation of sums based on a higher-resolution time series} \usage{ disaggSums(L, H, setZero = FALSE) } \arguments{ \item{L}{A numeric vector representing the values of the lower-resolution series whose \emph{sum} is to be retained. The sum is only guaranteed to ...
/R/packages/meteovars/man/disaggSums.Rd
permissive
echse/echse_tools
R
false
false
2,404
rd
\name{disaggSums} \alias{disaggSums} \title{Disaggregation of sums based on a higher-resolution time series} \usage{ disaggSums(L, H, setZero = FALSE) } \arguments{ \item{L}{A numeric vector representing the values of the lower-resolution series whose \emph{sum} is to be retained. The sum is only guaranteed to ...