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/ped_convert.R \name{as.matrix.ped} \alias{as.matrix.ped} \alias{restore_ped} \title{Convert ped to matrix} \usage{ \method{as.matrix}{ped}(x, include.attrs = TRUE, ...) restore_ped(x, attrs = NULL, validate = TRUE) } \arguments{ ...
/man/as.matrix.ped.Rd
no_license
luansheng/pedtools
R
false
true
2,332
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ped_convert.R \name{as.matrix.ped} \alias{as.matrix.ped} \alias{restore_ped} \title{Convert ped to matrix} \usage{ \method{as.matrix}{ped}(x, include.attrs = TRUE, ...) restore_ped(x, attrs = NULL, validate = TRUE) } \arguments{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/internet_browser.R \name{internet_browser} \alias{internet_browser} \title{Generate Random Vector of Internet Browsers} \usage{ internet_browser(n, x = c("Chrome", "IE", "Firefox", "Safari", "Opera", "Android"), prob = c(0.5027, 0.175, 0.16...
/man/internet_browser.Rd
no_license
iqis/wakefield
R
false
true
2,632
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/internet_browser.R \name{internet_browser} \alias{internet_browser} \title{Generate Random Vector of Internet Browsers} \usage{ internet_browser(n, x = c("Chrome", "IE", "Firefox", "Safari", "Opera", "Android"), prob = c(0.5027, 0.175, 0.16...
\name{m} \alias{m} double2 \title{ multiply } \description{ test run double } \usage{ m(a,...) } value to double \arguments{ na2 \item{a}{ numeric } } \details{ NA } \value{ test } \references{ shen } \author{ sheen } \note{ ho } \seealso{ gffgg } \examples{ d 3; function (a) { s <- a + a return(s) } } ...
/man/m.Rd
no_license
ArefinSheen/f1
R
false
false
363
rd
\name{m} \alias{m} double2 \title{ multiply } \description{ test run double } \usage{ m(a,...) } value to double \arguments{ na2 \item{a}{ numeric } } \details{ NA } \value{ test } \references{ shen } \author{ sheen } \note{ ho } \seealso{ gffgg } \examples{ d 3; function (a) { s <- a + a return(s) } } ...
# load the necessary libraries library(shiny) library(shinydashboard) library(ggplot2) library(reshape2) ####################################################################################### ########################### START OF DASHBOARDPAGE #################################### ######################################...
/app.R
no_license
roni-kovacs/polyaurn
R
false
false
35,896
r
# load the necessary libraries library(shiny) library(shinydashboard) library(ggplot2) library(reshape2) ####################################################################################### ########################### START OF DASHBOARDPAGE #################################### ######################################...
############################################################################## ### ### MST ### ### Plot Random Main ### ############################################################################## ### Copyright (c) 2015-2018, The TRONCO Team (www.troncopackage.org) ### email: tronco@disco.unimib.it ### All rights res...
/experiment_6_multiple/plot.random.main.R
no_license
BIMIB-DISCo/MST
R
false
false
8,821
r
############################################################################## ### ### MST ### ### Plot Random Main ### ############################################################################## ### Copyright (c) 2015-2018, The TRONCO Team (www.troncopackage.org) ### email: tronco@disco.unimib.it ### All rights res...
## load required packages if(!require('xlsx')) {install.packages('xlsx')} library('xlsx') if(!require('ggplot2')) {install.packages('ggplot2')} library('ggplot2') ## import sales data my_dir <- "C:/Users/Marcus/Documents/R/Regression" df_data <- read.xlsx(paste0(my_dir, "/data/toy_sales_data.xlsx"), sheetNam...
/regression.R
no_license
tili7864/c_test
R
false
false
2,962
r
## load required packages if(!require('xlsx')) {install.packages('xlsx')} library('xlsx') if(!require('ggplot2')) {install.packages('ggplot2')} library('ggplot2') ## import sales data my_dir <- "C:/Users/Marcus/Documents/R/Regression" df_data <- read.xlsx(paste0(my_dir, "/data/toy_sales_data.xlsx"), sheetNam...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/conversion.R \name{as_adj_list} \alias{as_adj_edge_list} \alias{as_adj_list} \alias{get.adjedgelist} \alias{get.adjlist} \title{Adjacency lists} \usage{ as_adj_list(graph, mode = c("all", "out", "in", "total")) as_adj_edge_list(graph, mode =...
/man/as_adj_list.Rd
no_license
Ruchika8/Dgraph
R
false
true
1,355
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/conversion.R \name{as_adj_list} \alias{as_adj_edge_list} \alias{as_adj_list} \alias{get.adjedgelist} \alias{get.adjlist} \title{Adjacency lists} \usage{ as_adj_list(graph, mode = c("all", "out", "in", "total")) as_adj_edge_list(graph, mode =...
# downloading GBIF data library(spocc) library(mapr) library(ggplot2) library(raster) wc = getData('worldclim', var='bio', res=5, path='tmp') spdist <- occ(query='Crotalus horridus', from='gbif', limit =7500) #No info is given spdist #tiblle to get data spdist$gbif$data #look at S4 head(spdist$gbif$data) #Conve...
/R/Primary Biodiversity Data.R
no_license
stephbryson98/BIO331GeoSpatial
R
false
false
1,461
r
# downloading GBIF data library(spocc) library(mapr) library(ggplot2) library(raster) wc = getData('worldclim', var='bio', res=5, path='tmp') spdist <- occ(query='Crotalus horridus', from='gbif', limit =7500) #No info is given spdist #tiblle to get data spdist$gbif$data #look at S4 head(spdist$gbif$data) #Conve...
#setwd("~/R/coursera-data-science-getdata-course-project/rawdata") #library("microbenchmark") library("data.table") a.labels <- fread("activity_labels.txt") v.names <- fread("features.txt")[grepl("-(mean|std)\\(\\)", V2, perl = T)] v.names[, V2:=gsub("()", "", V2, fixed = T)][, V2:=gsub("-", ".", V2, fixed = T)] s <- r...
/run_analysis-fastest.R
no_license
ZedLeb/coursera-data-science-getdata-course-project
R
false
false
1,139
r
#setwd("~/R/coursera-data-science-getdata-course-project/rawdata") #library("microbenchmark") library("data.table") a.labels <- fread("activity_labels.txt") v.names <- fread("features.txt")[grepl("-(mean|std)\\(\\)", V2, perl = T)] v.names[, V2:=gsub("()", "", V2, fixed = T)][, V2:=gsub("-", ".", V2, fixed = T)] s <- r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Sql.R \name{renderTranslateQuerySql} \alias{renderTranslateQuerySql} \title{Render, translate, and query to data.frame} \usage{ renderTranslateQuerySql( connection, sql, errorReportFile = file.path(getwd(), "errorReportSql.txt"), snak...
/man/renderTranslateQuerySql.Rd
permissive
ABMI/DatabaseConnector
R
false
true
2,345
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Sql.R \name{renderTranslateQuerySql} \alias{renderTranslateQuerySql} \title{Render, translate, and query to data.frame} \usage{ renderTranslateQuerySql( connection, sql, errorReportFile = file.path(getwd(), "errorReportSql.txt"), snak...
############################################################################### # STEP 0: SETUP ----- pkgs <- c( 'fs', 'glue', 'here', 'tidyverse', 'janitor', 'DBI', 'vroom', 'readxl', 'writexl', 'lubridate', 'tsibble', 'tsbox', 'timetk', 'xts', 'stringr', 'forcats' ) xfun::pkg_attach2(pkgs, message = FALSE...
/oae_index/script/data-prep.R
no_license
piyayut-ch/nabc.dashboard
R
false
false
1,774
r
############################################################################### # STEP 0: SETUP ----- pkgs <- c( 'fs', 'glue', 'here', 'tidyverse', 'janitor', 'DBI', 'vroom', 'readxl', 'writexl', 'lubridate', 'tsibble', 'tsbox', 'timetk', 'xts', 'stringr', 'forcats' ) xfun::pkg_attach2(pkgs, message = FALSE...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ShinySimulatorUI.R \docType{data} \name{shiny_simulator_ui} \alias{shiny_simulator_ui} \title{UI file for the Shiny Simulator application} \format{ An object of class \code{shiny.tag.list} (inherits from \code{list}) of length 4. } \...
/man/shiny_simulator_ui.Rd
no_license
cran/NetSimR
R
false
true
494
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ShinySimulatorUI.R \docType{data} \name{shiny_simulator_ui} \alias{shiny_simulator_ui} \title{UI file for the Shiny Simulator application} \format{ An object of class \code{shiny.tag.list} (inherits from \code{list}) of length 4. } \...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_taxa.R \name{plot_taxa_sample_time} \alias{plot_taxa_sample_time} \title{Plot dates and times samples were taken (DEPRECATED)} \usage{ plot_taxa_sample_time(observation, id = NA_character_, alpha = 1) } \arguments{ \item{observation}{(tb...
/man/plot_taxa_sample_time.Rd
permissive
EDIorg/ecocomDP
R
false
true
838
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_taxa.R \name{plot_taxa_sample_time} \alias{plot_taxa_sample_time} \title{Plot dates and times samples were taken (DEPRECATED)} \usage{ plot_taxa_sample_time(observation, id = NA_character_, alpha = 1) } \arguments{ \item{observation}{(tb...
pilgrimDB = read.csv("PilgrimData.csv") View(pilgrimDB) #Makes scatter plot of Tenure vs Profit in 1999 plot(pilgrimDB$Profit..1999.~ pilgrimDB$Tenure..1999., main = "Scatter plot of Tenure and Profit in 1999", xlab = "Tenure (Years)", ylab = "Profit ($)") #Breaks profit values (1999) into 3 levels pilgrimDB$P...
/SeansPart.R
no_license
galahadho/Pilgrim-Case-Study
R
false
false
1,328
r
pilgrimDB = read.csv("PilgrimData.csv") View(pilgrimDB) #Makes scatter plot of Tenure vs Profit in 1999 plot(pilgrimDB$Profit..1999.~ pilgrimDB$Tenure..1999., main = "Scatter plot of Tenure and Profit in 1999", xlab = "Tenure (Years)", ylab = "Profit ($)") #Breaks profit values (1999) into 3 levels pilgrimDB$P...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/selection.R \name{selectInd} \alias{selectInd} \title{Select individuals} \usage{ selectInd( pop, nInd, trait = 1, use = "pheno", sex = "B", selectTop = TRUE, returnPop = TRUE, candidates = NULL, simParam = NU...
/fuzzedpackages/AlphaSimR/man/selectInd.Rd
no_license
akhikolla/testpackages
R
false
true
1,843
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/selection.R \name{selectInd} \alias{selectInd} \title{Select individuals} \usage{ selectInd( pop, nInd, trait = 1, use = "pheno", sex = "B", selectTop = TRUE, returnPop = TRUE, candidates = NULL, simParam = NU...
makeCacheMatrix <- function(x = matrix()) { m<-NULL set<-function(y){ x<<-y m<<-NULL } get<-function() x setmatrix<-function(solve) m<<- solve getmatrix<-function() m list(set=set, get=get, setmatrix=setmatrix, getmatrix=getmatrix) } cacheSolve <- function(x=matrix(), ...) { m<-x$getma...
/assignment2.R
no_license
William9208/RProgrammingAssignment2
R
false
false
490
r
makeCacheMatrix <- function(x = matrix()) { m<-NULL set<-function(y){ x<<-y m<<-NULL } get<-function() x setmatrix<-function(solve) m<<- solve getmatrix<-function() m list(set=set, get=get, setmatrix=setmatrix, getmatrix=getmatrix) } cacheSolve <- function(x=matrix(), ...) { m<-x$getma...
\name{align.MEME} \alias{align.MEME} \title{ Multiple sequence alignment by means of MEME.} \description{ DNA sequences are aligned by means of MEME Version 4.4.0. (Multiple Expectation-Maximization for Motif Elicitation)} \usage{align.MEME(filein, fileout = "Sq.fa", iicc)} \arguments{ \item{filein}{ A set of nucleot...
/man/align.MEME.Rd
no_license
mikepipo/MEET
R
false
false
732
rd
\name{align.MEME} \alias{align.MEME} \title{ Multiple sequence alignment by means of MEME.} \description{ DNA sequences are aligned by means of MEME Version 4.4.0. (Multiple Expectation-Maximization for Motif Elicitation)} \usage{align.MEME(filein, fileout = "Sq.fa", iicc)} \arguments{ \item{filein}{ A set of nucleot...
testlist <- list(data = structure(c(3.21991641333768e-310, 4.94078866277837e+131 ), .Dim = 1:2), q = 0) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
/biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610554355-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
173
r
testlist <- list(data = structure(c(3.21991641333768e-310, 4.94078866277837e+131 ), .Dim = 1:2), q = 0) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
# load data set power <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?") # Convert the Date variable and get susbset of data from the dates 2007-02-01 and 2007-02-02 power$Date <- as.Date(power$Date, "%d/%m/%Y") power_sub <- power[power$Date %in% c(a...
/plot4.R
no_license
prsalm/ExData_Plotting1
R
false
false
2,177
r
# load data set power <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?") # Convert the Date variable and get susbset of data from the dates 2007-02-01 and 2007-02-02 power$Date <- as.Date(power$Date, "%d/%m/%Y") power_sub <- power[power$Date %in% c(a...
#### 1. Setup (You Try It) #### ## to start with, we will load a package for data management ## and load a package for fitting Linear Mixed effects Models (LMMs) ## recall that loading a package is like opening an app ## and you need to repeat this process each time you start up R ## if everything installed successfu...
/LMM_Pt2_worksheet.R
permissive
tegansellick/MonashHonoursStatistics
R
false
false
6,460
r
#### 1. Setup (You Try It) #### ## to start with, we will load a package for data management ## and load a package for fitting Linear Mixed effects Models (LMMs) ## recall that loading a package is like opening an app ## and you need to repeat this process each time you start up R ## if everything installed successfu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MS1_AdductDbCreate.R \name{prepareCompoundList} \alias{prepareCompoundList} \title{Preparation of compound list} \usage{ prepareCompoundList(compoundList, adductList = NA, rt = FALSE, ccs = FALSE, extId = FALSE) } \arguments{ \item{compound...
/man/prepareCompoundList.Rd
no_license
AspirinCode/masstrixR
R
false
true
1,729
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MS1_AdductDbCreate.R \name{prepareCompoundList} \alias{prepareCompoundList} \title{Preparation of compound list} \usage{ prepareCompoundList(compoundList, adductList = NA, rt = FALSE, ccs = FALSE, extId = FALSE) } \arguments{ \item{compound...
#"~/Nakano_RNAseq/network_analysis/script/tGRN_analysis20181023/motif/tGRN_MCLNumDEGs_multifasta.R" ########################################### #upstream_500 <- read.table(file = "~/bigdata/yasue/motif/TAIR10_upstream_500_20101028", fill = T, sep = ",", stringsAsFactors = F) #upstream_500 <- as.character(unlist(upstrea...
/tGRN_MCLNumDEGs_multifasta.R
no_license
YKeito/tGRN_analysis20181023
R
false
false
3,938
r
#"~/Nakano_RNAseq/network_analysis/script/tGRN_analysis20181023/motif/tGRN_MCLNumDEGs_multifasta.R" ########################################### #upstream_500 <- read.table(file = "~/bigdata/yasue/motif/TAIR10_upstream_500_20101028", fill = T, sep = ",", stringsAsFactors = F) #upstream_500 <- as.character(unlist(upstrea...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/arqasgui.R \name{exportToUI} \alias{exportToUI} \title{Exports a function to the UI} \usage{ exportToUI(fun, name, args, class) } \arguments{ \item{fun}{Function of the model} \item{name}{Name of the model} \item{args}{Type of each ...
/man/exportToUI.Rd
no_license
vishkey/arqasgui
R
false
false
503
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/arqasgui.R \name{exportToUI} \alias{exportToUI} \title{Exports a function to the UI} \usage{ exportToUI(fun, name, args, class) } \arguments{ \item{fun}{Function of the model} \item{name}{Name of the model} \item{args}{Type of each ...
# Chapter 8 Lab: Decision Trees # Fitting Classification Trees library(tree) library(ISLR) attach(Carseats) High=ifelse(Sales<=8,"No","Yes") Carseats=data.frame(Carseats,High) head(Caravan) tree.carseats=tree(High~.-Sales,Carseats) summary(tree.carseats) plot(tree.carseats) text(tree.carseats,pretty=0) tree.carseats ...
/ch8.r
no_license
codingfinance/ISLR
R
false
false
2,944
r
# Chapter 8 Lab: Decision Trees # Fitting Classification Trees library(tree) library(ISLR) attach(Carseats) High=ifelse(Sales<=8,"No","Yes") Carseats=data.frame(Carseats,High) head(Caravan) tree.carseats=tree(High~.-Sales,Carseats) summary(tree.carseats) plot(tree.carseats) text(tree.carseats,pretty=0) tree.carseats ...
#' Example data set #' #' "pbmc_small" #' Example data set 2 #' #' "cell_type_df" #' Example data set 2 #' #' "pbmc_small_nested_interactions"
/R/data.R
no_license
idelvalle/tidyseurat
R
false
false
144
r
#' Example data set #' #' "pbmc_small" #' Example data set 2 #' #' "cell_type_df" #' Example data set 2 #' #' "pbmc_small_nested_interactions"
### This function will do the same as above, but uses the Double Mad Cap #' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param data PARAM_DESCRIPTION #' @param chaos_pc PARAM_DESCRIPTION, Default: 10 #' @param iso_portion PARAM_DESCRIPTION, Default: 1 #' @param metadata PARAM_DESCRIPTION, Default: ens...
/AFModel/R/chaos_draw_distro_DMC.R
permissive
sadatnfs/AFModel
R
false
false
4,692
r
### This function will do the same as above, but uses the Double Mad Cap #' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param data PARAM_DESCRIPTION #' @param chaos_pc PARAM_DESCRIPTION, Default: 10 #' @param iso_portion PARAM_DESCRIPTION, Default: 1 #' @param metadata PARAM_DESCRIPTION, Default: ens...
tweets <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-06-15/tweets.csv') library(tidyverse) library(tidytext) library(textdata) library(wordcloud) library(wordcloud2) library(dplyr) library(patchwork) library(ggimage) library(cowplot) most_traction <- tweets %>...
/tweets_tt.R
no_license
vina1998/TidyTuesday-06-15
R
false
false
1,400
r
tweets <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-06-15/tweets.csv') library(tidyverse) library(tidytext) library(textdata) library(wordcloud) library(wordcloud2) library(dplyr) library(patchwork) library(ggimage) library(cowplot) most_traction <- tweets %>...
#' @param ope the number of observations per 'epoch'. For convenience of #' interpretation, The Sharpe ratio is typically quoted in 'annualized' #' units for some epoch, that is, 'per square root epoch', though returns #' are observed at a frequency of \code{ope} per epoch. #' The default value is 1, meaning...
/man-roxygen/param-ope.R
no_license
shabbychef/SharpeR
R
false
false
486
r
#' @param ope the number of observations per 'epoch'. For convenience of #' interpretation, The Sharpe ratio is typically quoted in 'annualized' #' units for some epoch, that is, 'per square root epoch', though returns #' are observed at a frequency of \code{ope} per epoch. #' The default value is 1, meaning...
env = read.csv('./data/tgp_utm_env_complete.csv') env = env[env$repeat_plot == 1, ] comm = read.csv('./data/tgp_comm_mat_all.csv') comm = comm[match(env$plot_yr, comm$plot.yr), ] ## drop species that don't occur comm = comm[ , colSums(comm) > 0 ] row.names(comm) = comm$plot.yr comm = comm[ , -1] comm_sqr = sqrt(co...
/scripts/tgp_repeat_data_import.R
no_license
mcglinnlab/tgp_management
R
false
false
1,473
r
env = read.csv('./data/tgp_utm_env_complete.csv') env = env[env$repeat_plot == 1, ] comm = read.csv('./data/tgp_comm_mat_all.csv') comm = comm[match(env$plot_yr, comm$plot.yr), ] ## drop species that don't occur comm = comm[ , colSums(comm) > 0 ] row.names(comm) = comm$plot.yr comm = comm[ , -1] comm_sqr = sqrt(co...
# hw2 ## 8. library(graphics) library(MASS) # install.packages("ISLR") library(ISLR) data(Auto) summary(Auto) # head(Auto) # View(Auto) # mydata <- read.csv(file = "/Users/wei/Desktop/Auto.csv") # head(mydata) # mydata$origin = as.numeric(mydata$origin) # mydata$horsepower = as.numeric(mydata$horsepower) lm.fit = ...
/hw2.R
no_license
wwweiwei/Statistical-Learning
R
false
false
2,134
r
# hw2 ## 8. library(graphics) library(MASS) # install.packages("ISLR") library(ISLR) data(Auto) summary(Auto) # head(Auto) # View(Auto) # mydata <- read.csv(file = "/Users/wei/Desktop/Auto.csv") # head(mydata) # mydata$origin = as.numeric(mydata$origin) # mydata$horsepower = as.numeric(mydata$horsepower) lm.fit = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SLR_prediction_vis.R \name{SLR_prediction_vis.default} \alias{SLR_prediction_vis.default} \title{SLR prediction visualization default method} \usage{ \method{SLR_prediction_vis}{default}(y) } \arguments{ \item{y}{an object of a wrong class} }...
/man/SLR_prediction_vis.default.Rd
no_license
EmanuelSommer/SLRprediction
R
false
true
407
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SLR_prediction_vis.R \name{SLR_prediction_vis.default} \alias{SLR_prediction_vis.default} \title{SLR prediction visualization default method} \usage{ \method{SLR_prediction_vis}{default}(y) } \arguments{ \item{y}{an object of a wrong class} }...
library(dplyr) library(ggplot2) library(nloptr) library(purrr) library(tidyr) # MeanVariance ------------------------------------------------------------ # Tools for computing mean variance cor2cov <- function(cor, v1, v2) { return(cor*(sqrt(v1)*sqrt(v2))) } # Computes portfolio variance portvar <- function(w1, ...
/content/post/portfolioselection/portfolioselection.R
no_license
jasonyang5/jasonyang5.github.io
R
false
false
4,675
r
library(dplyr) library(ggplot2) library(nloptr) library(purrr) library(tidyr) # MeanVariance ------------------------------------------------------------ # Tools for computing mean variance cor2cov <- function(cor, v1, v2) { return(cor*(sqrt(v1)*sqrt(v2))) } # Computes portfolio variance portvar <- function(w1, ...
#' Calculate the weighted mean of fitted values for various levels of #' random effect terms. #' #' \code{REimpact} calculates the average predicted value for each row of a #' new data frame across the distribution of \code{\link{expectedRank}} for a #' merMod object. This allows the user to make meaningful compar...
/R/merSubstEff.R
no_license
jknowles/merTools
R
false
false
6,458
r
#' Calculate the weighted mean of fitted values for various levels of #' random effect terms. #' #' \code{REimpact} calculates the average predicted value for each row of a #' new data frame across the distribution of \code{\link{expectedRank}} for a #' merMod object. This allows the user to make meaningful compar...
#' Overview. Linear Group Fixed Effects #' #' The package uses the Method of Alternating Projections to estimate linear #' models with multiple group fixed effects. A generalization of the within #' estimator. It supports IV-estimation with multiple endogenous variables via #' 2SLS, with conditional F statistics fo...
/R/lfe-package.R
no_license
kendonB/lfe
R
false
false
10,128
r
#' Overview. Linear Group Fixed Effects #' #' The package uses the Method of Alternating Projections to estimate linear #' models with multiple group fixed effects. A generalization of the within #' estimator. It supports IV-estimation with multiple endogenous variables via #' 2SLS, with conditional F statistics fo...
#!/usr/bin/env Rscript # bosh liu # durga # subset top n genes according to rpkm sum # command args: args=commandArgs(T) input_file=args[1] output_file=args[2] n=args[3] # read input: input=fread(input_file,header=T) # calculate sum of expression: rpkm_sum=rowSums(input[,-1,with=F]) rpkm_rank=rank(rpkm_sum) # ...
/eqtl/peer/subset_top_genes.R
no_license
chanibravo/hcasmc_eqtl
R
false
false
477
r
#!/usr/bin/env Rscript # bosh liu # durga # subset top n genes according to rpkm sum # command args: args=commandArgs(T) input_file=args[1] output_file=args[2] n=args[3] # read input: input=fread(input_file,header=T) # calculate sum of expression: rpkm_sum=rowSums(input[,-1,with=F]) rpkm_rank=rank(rpkm_sum) # ...
library(parsetools) ### Name: pd_class_definitions ### Title: Test for Class Definitions ### Aliases: pd_class_definitions pd_is_class_definition ### pd_is_in_class_definition pd_add_class_definition pd_add_class ### Keywords: datasets ### ** Examples # load example file and get_parse data ex.file <- system.file(...
/data/genthat_extracted_code/parsetools/examples/pd_class_definitions.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
819
r
library(parsetools) ### Name: pd_class_definitions ### Title: Test for Class Definitions ### Aliases: pd_class_definitions pd_is_class_definition ### pd_is_in_class_definition pd_add_class_definition pd_add_class ### Keywords: datasets ### ** Examples # load example file and get_parse data ex.file <- system.file(...
accs = get_mt_ids("acc26") #filter Pindel output dir = file.path(DIR_Repo, "mt_35/40_sv/31_pindel") f1 = file.path(dir, "11.tbl") p1 = read.table(f1, sep="\t", header=T, as.is=T) p2 = p1[p1$size_d >= 30 & p1$n_ind >=2 & p1$n_reads_uniq >= 5,] write.table(p2, file.path(dir, "12_filtered.tbl"), sep="\t", quote=F, row.n...
/r/crest.R
no_license
rakeshponnala/luffy
R
false
false
2,269
r
accs = get_mt_ids("acc26") #filter Pindel output dir = file.path(DIR_Repo, "mt_35/40_sv/31_pindel") f1 = file.path(dir, "11.tbl") p1 = read.table(f1, sep="\t", header=T, as.is=T) p2 = p1[p1$size_d >= 30 & p1$n_ind >=2 & p1$n_reads_uniq >= 5,] write.table(p2, file.path(dir, "12_filtered.tbl"), sep="\t", quote=F, row.n...
#import features.txt file to determine which columns to use in the data set features<-read.table("C:/Users/raoul/OneDrive/Documents/DataScience-Coursera/week1-clenning-data/getdata_projectfiles_UCI HAR Dataset/UCI HAR Dataset/features.txt", sep ="", header = FALSE, dec =".") #Only retain featu...
/run_analysis.R
no_license
shivaygulati/Getting-and-cleaning-data-from-the-accelerometers-in-the-Samsung-Galaxy-S-smartphone
R
false
false
4,455
r
#import features.txt file to determine which columns to use in the data set features<-read.table("C:/Users/raoul/OneDrive/Documents/DataScience-Coursera/week1-clenning-data/getdata_projectfiles_UCI HAR Dataset/UCI HAR Dataset/features.txt", sep ="", header = FALSE, dec =".") #Only retain featu...
source('../WERM_Heuristic.R') # A function for estimating \hat{W*}. This function is dependent on the graph. myComputeSW.lowhigh = function(outVar.train, inVar.train, outVar.eval, inVar.eval, outputname){ # Compute P(outputVal|inputVal1,...,inputValD) inVar_margin = data.matrix(rep(1,length(outVar.train))) mode...
/demonstration/Example_1-napkin/napkin-as-BD.R
no_license
CMLennon/WERM
R
false
false
2,531
r
source('../WERM_Heuristic.R') # A function for estimating \hat{W*}. This function is dependent on the graph. myComputeSW.lowhigh = function(outVar.train, inVar.train, outVar.eval, inVar.eval, outputname){ # Compute P(outputVal|inputVal1,...,inputValD) inVar_margin = data.matrix(rep(1,length(outVar.train))) mode...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{plot.mhtest} \alias{plot.mhtest} \title{Plot method} \usage{ \method{plot}{mhtest}(x, type = c("Manhattan", "Q-Q", "Volcano"), main = paste(type, "Plot"), coeff = 1, ...) } \arguments{ \item{x}{An object of class \code{mhtest}....
/man/plot.mhtest.Rd
no_license
pamelinni/bigstatsr
R
false
true
1,351
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{plot.mhtest} \alias{plot.mhtest} \title{Plot method} \usage{ \method{plot}{mhtest}(x, type = c("Manhattan", "Q-Q", "Volcano"), main = paste(type, "Plot"), coeff = 1, ...) } \arguments{ \item{x}{An object of class \code{mhtest}....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helpfunctions_JAGS.R \name{sum_duration} \alias{sum_duration} \title{Calculate the sum of the computational duration of a JointAI object} \usage{ sum_duration(object, by = NULL) } \arguments{ \item{object}{object of class \code{JointAI}} \it...
/man/sum_duration.Rd
no_license
NErler/JointAI
R
false
true
831
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helpfunctions_JAGS.R \name{sum_duration} \alias{sum_duration} \title{Calculate the sum of the computational duration of a JointAI object} \usage{ sum_duration(object, by = NULL) } \arguments{ \item{object}{object of class \code{JointAI}} \it...
library(tidyverse) library(lubridate) library(gridExtra) library(plotly) library(roll) library(magick) library(kableExtra) # Prince George Airport Plot ---------------------------------------------- # Comparing 2019, 2020 with 1989-2010 climate normals pgdat <- paste0("Climate-Comparisons/pg_daily_data/", dir(path ...
/Climate-Comparisons/Climate-Comparisons.R
no_license
Jhydromet/Ancient-Forest_Wetland-Hydrology
R
false
false
11,766
r
library(tidyverse) library(lubridate) library(gridExtra) library(plotly) library(roll) library(magick) library(kableExtra) # Prince George Airport Plot ---------------------------------------------- # Comparing 2019, 2020 with 1989-2010 climate normals pgdat <- paste0("Climate-Comparisons/pg_daily_data/", dir(path ...
#' The 'stanmd' package. #' #' @description A DESCRIPTION OF THE PACKAGE #' #' @docType package #' @name stanmd-package #' @aliases stanmd #' @useDynLib stanmd, .registration = TRUE #' @import methods #' @import Rcpp #' @importFrom rstan sampling #' #' @references #' Stan Development Team (2019). RStan: the R interface...
/R/stanmd-package.R
no_license
medewitt/stanmd
R
false
false
384
r
#' The 'stanmd' package. #' #' @description A DESCRIPTION OF THE PACKAGE #' #' @docType package #' @name stanmd-package #' @aliases stanmd #' @useDynLib stanmd, .registration = TRUE #' @import methods #' @import Rcpp #' @importFrom rstan sampling #' #' @references #' Stan Development Team (2019). RStan: the R interface...
#' PheVis simulated dataset #' #' Simulated dataset for PheVis phenotyping. #' #' @docType data #' #' @usage data(data_phevis) #' #' @keywords datasets "data_phevis"
/R/data_phevis.R
no_license
cran/PheVis
R
false
false
165
r
#' PheVis simulated dataset #' #' Simulated dataset for PheVis phenotyping. #' #' @docType data #' #' @usage data(data_phevis) #' #' @keywords datasets "data_phevis"
#' @title Step 5 - Build Phylogenetic Tree #' #' @description The phangorn R package is then used to construct a phylogenetic #' tree. First, a neighbor-joining tree is constructed and then fit to a GTR+G+I #' maximum likelihood tree using the neighbor-joining tree as a starting point. #' #' @import dada2 DECIPHER phan...
/R/5_buildphylotree.R
no_license
seanstuntz/BAW
R
false
false
1,038
r
#' @title Step 5 - Build Phylogenetic Tree #' #' @description The phangorn R package is then used to construct a phylogenetic #' tree. First, a neighbor-joining tree is constructed and then fit to a GTR+G+I #' maximum likelihood tree using the neighbor-joining tree as a starting point. #' #' @import dada2 DECIPHER phan...
rm(list=ls()) #args=(commandArgs(TRUE)) #for(p in 1:length(args)){ # eval(parse(text=args[[p]])) # } #print(i) #i1 <- i #commandarg <- commandArgs(trailingOnly=F) #myarg <- commandarg[length(commandarg)] #myarg <- sub("-","",myarg) #i <- as.numeric(myarg) #print(i) #pheno is ICOGS,data2 is onco_array arg <- comm...
/whole_genome/ICOG/ERPRHER2_fixed/code/whole_genome_ERPRHER2_fixed.R
no_license
andrewhaoyu/breast_cancer_data_analysis
R
false
false
3,701
r
rm(list=ls()) #args=(commandArgs(TRUE)) #for(p in 1:length(args)){ # eval(parse(text=args[[p]])) # } #print(i) #i1 <- i #commandarg <- commandArgs(trailingOnly=F) #myarg <- commandarg[length(commandarg)] #myarg <- sub("-","",myarg) #i <- as.numeric(myarg) #print(i) #pheno is ICOGS,data2 is onco_array arg <- comm...
setwd('/local/home/shrestha/Documents/Thesis/counqer/classifier_crowd_annotations') library(dplyr) ############### Counting results <- read.csv('counting/figure-eight/f1411878.csv') results.minus.gold <- results[which(results$X_golden == "false"), -c(16:20)] disabled_ids <- c(2393883419, 2398349110, 2393883423, 23938...
/classifier_crowd_annotations/view_crowd_results.R
no_license
ghoshs/counqer_v1
R
false
false
3,530
r
setwd('/local/home/shrestha/Documents/Thesis/counqer/classifier_crowd_annotations') library(dplyr) ############### Counting results <- read.csv('counting/figure-eight/f1411878.csv') results.minus.gold <- results[which(results$X_golden == "false"), -c(16:20)] disabled_ids <- c(2393883419, 2398349110, 2393883423, 23938...
library(xlsx) df<- read.xlsx("/home/shauny/Desktop/yeildhort2032015/FRUITS/BANANA.xlsx",sheetIndex=1, header=TRUE) df colnames(df)[colnames(df) == 'STATES.Uts.'] <- 'STATES' colnames(df)[colnames(df) == 'X2011.12'] <- '2011-2012(A)' colnames(df)[colnames(df) == 'NA.'] <- '2011-2012(P)' colnames(df)[colnames(df)...
/Banana.R
no_license
ShaunyMachado/Horticulture-Data-Visualisation
R
false
false
8,682
r
library(xlsx) df<- read.xlsx("/home/shauny/Desktop/yeildhort2032015/FRUITS/BANANA.xlsx",sheetIndex=1, header=TRUE) df colnames(df)[colnames(df) == 'STATES.Uts.'] <- 'STATES' colnames(df)[colnames(df) == 'X2011.12'] <- '2011-2012(A)' colnames(df)[colnames(df) == 'NA.'] <- '2011-2012(P)' colnames(df)[colnames(df)...
source("hw0.R") intro_to_r(6) intro_to_plotting(6)
/HW0_refactored/test.R
no_license
nasifimtiazohi/ALDA_HW
R
false
false
55
r
source("hw0.R") intro_to_r(6) intro_to_plotting(6)
# Null model for de novo regulatory mutations # Probability of mutation in middle base of each trinucleotide is calculated from empirical data. # The probabilities are assumed poisson, independent and summed across each sequence mut_rates <- read.table("../data/forSanger_1KG_mutation_rate_table.txt", header=TRUE) ##...
/R/regmut_null_model.R
no_license
pjshort/rupit
R
false
false
1,204
r
# Null model for de novo regulatory mutations # Probability of mutation in middle base of each trinucleotide is calculated from empirical data. # The probabilities are assumed poisson, independent and summed across each sequence mut_rates <- read.table("../data/forSanger_1KG_mutation_rate_table.txt", header=TRUE) ##...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/item_desc.R \name{crt_iteman} \alias{crt_iteman} \title{Calculate criterion-referenced item discrimination indices} \usage{ crt_iteman(data, items, cut_score, scale = "raw") } \arguments{ \item{data}{A data frame of dichotomously scored test ...
/man/crt_iteman.Rd
no_license
gtlaflair/rcrtan
R
false
true
1,143
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/item_desc.R \name{crt_iteman} \alias{crt_iteman} \title{Calculate criterion-referenced item discrimination indices} \usage{ crt_iteman(data, items, cut_score, scale = "raw") } \arguments{ \item{data}{A data frame of dichotomously scored test ...
tmAggregate <- function(dtfDT, indexList, type, ascending, drop.unused.levels, fun.aggregate, args) { l <- s <- i <- k <- n <- NULL depth <- length(indexList) dats <- list() for (d in 1:depth) { datd <- tmAggregateStep(dtfDT, indexList[1:d], fun.aggregate, args) if (d < depth) { ...
/pkg/R/tmAggregate.R
no_license
chintasunny/treemap
R
false
false
2,356
r
tmAggregate <- function(dtfDT, indexList, type, ascending, drop.unused.levels, fun.aggregate, args) { l <- s <- i <- k <- n <- NULL depth <- length(indexList) dats <- list() for (d in 1:depth) { datd <- tmAggregateStep(dtfDT, indexList[1:d], fun.aggregate, args) if (d < depth) { ...
# Code for processing TUME (ESALQ/USP) # Authors: Gorgens (gorgens at usp.br); Andre Gracioso Peres da Silva (andregracioso@gmail.com) ############################################################################### #version 1.01 (dez/2016) ### ---------------------------------------------------------------------------...
/R_TUME.R
no_license
Gorgens/TUME
R
false
false
14,766
r
# Code for processing TUME (ESALQ/USP) # Authors: Gorgens (gorgens at usp.br); Andre Gracioso Peres da Silva (andregracioso@gmail.com) ############################################################################### #version 1.01 (dez/2016) ### ---------------------------------------------------------------------------...
## This code allows to compute the inverse of the matrix ## and cashe the result. If the matrix doesn't change, ## the inverse will be computed only once at the first request ## for the inverse of the matrix and cached for further requests. ## The first function, makeCacheMatrix creates a special "matrix", ## which is...
/cachematrix.R
no_license
CarpenterVII/ProgrammingAssignment2
R
false
false
1,329
r
## This code allows to compute the inverse of the matrix ## and cashe the result. If the matrix doesn't change, ## the inverse will be computed only once at the first request ## for the inverse of the matrix and cached for further requests. ## The first function, makeCacheMatrix creates a special "matrix", ## which is...
##assumes working directory is already established ##read data into var data1 data1<-read.delim("household_power_consumption.txt",header=T,sep=";",na.strings="?") ##Subseting data to plot data1subset<-data1[data1$Date=="1/2/2007" | data1$Date=="2/2/2007",] data1subset$Date<-as.Date(data1subset$Date,format="%d/%m/%Y")...
/Plot2.R
no_license
ftsua1985/ExData_Plotting1
R
false
false
807
r
##assumes working directory is already established ##read data into var data1 data1<-read.delim("household_power_consumption.txt",header=T,sep=";",na.strings="?") ##Subseting data to plot data1subset<-data1[data1$Date=="1/2/2007" | data1$Date=="2/2/2007",] data1subset$Date<-as.Date(data1subset$Date,format="%d/%m/%Y")...
# the code below was mostly contributed by @egnha from # https://github.com/yihui/formatR/pull/66 deparse_collapse = function(x) { d = deparse(x) if (length(d) > 1L) { paste(trimws(d, which = 'both'), collapse = ' ') } else { d } } count_tokens = function(.call) { if (length(.call) == 1L) { # +2...
/R/usage.R
no_license
cderv/formatR
R
false
false
6,532
r
# the code below was mostly contributed by @egnha from # https://github.com/yihui/formatR/pull/66 deparse_collapse = function(x) { d = deparse(x) if (length(d) > 1L) { paste(trimws(d, which = 'both'), collapse = ' ') } else { d } } count_tokens = function(.call) { if (length(.call) == 1L) { # +2...
\name{statGen} \alias{statGen} \title{ Individual genotype statistics for an R/qtl cross object } \description{ Individual genotype statistics for the current linkage map order of and R/qtl cross object } \usage{ statGen(cross, chr, bychr = TRUE, stat.type = c("xo","dxo","miss"), id = "Genotype") } \argumen...
/man/statGen.Rd
no_license
kbroman/ASMap
R
false
false
1,964
rd
\name{statGen} \alias{statGen} \title{ Individual genotype statistics for an R/qtl cross object } \description{ Individual genotype statistics for the current linkage map order of and R/qtl cross object } \usage{ statGen(cross, chr, bychr = TRUE, stat.type = c("xo","dxo","miss"), id = "Genotype") } \argumen...
# Get posterior samples w <- do.call(rbind.data.frame, fit_blm$posterior$samples) # Split w and sigma sigma <- w[,4] w <- w[,-4] # Create linear combinations lincom <- bfit$input$X %*% t(w) # Function to calculate R2 for each bayes_R2 <- function(lincom_current, sigma) { # Variance in lincom current vlc <- var(...
/experiments/3. R-squared/R2.R
permissive
anhnguyendepocen/blm
R
false
false
1,362
r
# Get posterior samples w <- do.call(rbind.data.frame, fit_blm$posterior$samples) # Split w and sigma sigma <- w[,4] w <- w[,-4] # Create linear combinations lincom <- bfit$input$X %*% t(w) # Function to calculate R2 for each bayes_R2 <- function(lincom_current, sigma) { # Variance in lincom current vlc <- var(...
# Title : TODO # Objective : TODO # Created by: coeat # Created on: 2021/04/20 library(MASS) print('START**********') tab <- with(Cars93, table(Type)) # (tab <- with(Cars93, table(Type))) <- 괄호로 감싸주면 입력구문에서 출력까지 같이 해준다고 함 # tab <-table(Cars93$Type) #<- 8번행은 이 행과 같다 head <- c('Compact', 'Large', 'Midsize', 'Small'...
/139p-barplot.R
no_license
kukaro/R-Computing-Study
R
false
false
570
r
# Title : TODO # Objective : TODO # Created by: coeat # Created on: 2021/04/20 library(MASS) print('START**********') tab <- with(Cars93, table(Type)) # (tab <- with(Cars93, table(Type))) <- 괄호로 감싸주면 입력구문에서 출력까지 같이 해준다고 함 # tab <-table(Cars93$Type) #<- 8번행은 이 행과 같다 head <- c('Compact', 'Large', 'Midsize', 'Small'...
############################################################################ ### ### Some general comments on the structure of the scripts: ### Each module (00, 01 ...) builds on the previous ones and does NOT work ### standalone - this avoids redundancies. Data, functions etc. will be ### carried over from one ...
/00_initialize_directories_and_scripts.R
no_license
Katatrepsis/Ziv_et_al_N2000
R
false
false
2,200
r
############################################################################ ### ### Some general comments on the structure of the scripts: ### Each module (00, 01 ...) builds on the previous ones and does NOT work ### standalone - this avoids redundancies. Data, functions etc. will be ### carried over from one ...
renv::restore() if (blogdown::hugo_version() != numeric_version("0.74.3")) { options(blogdown.hugo.dir = normalizePath("renv/bin")) blogdown::install_hugo(version = "v0.74.3") }
/install.R
no_license
TranSophie/sophietran-website
R
false
false
184
r
renv::restore() if (blogdown::hugo_version() != numeric_version("0.74.3")) { options(blogdown.hugo.dir = normalizePath("renv/bin")) blogdown::install_hugo(version = "v0.74.3") }
context("Data stores") test_that("file store", { st <- file_store$new() path <- tempdir() file <- file.path(path, "test.txt") writeLines(letters, file) expect_that(st$exists(file), is_true()) h <- st$get_hash(file) expect_that(h, equals(unname(tools::md5sum(file)))) expect_that(st$get_hash("not/in/s...
/tests/testthat/test-store.R
no_license
aammd/remake
R
false
false
512
r
context("Data stores") test_that("file store", { st <- file_store$new() path <- tempdir() file <- file.path(path, "test.txt") writeLines(letters, file) expect_that(st$exists(file), is_true()) h <- st$get_hash(file) expect_that(h, equals(unname(tools::md5sum(file)))) expect_that(st$get_hash("not/in/s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit.meta.GMCM.R \name{fit.meta.GMCM} \alias{fit.meta.GMCM} \alias{fit.meta.gmcm} \alias{fit.special.GMCM} \alias{fit.special.gmcm} \title{Estimate GMCM parameters of the special model} \usage{ fit.meta.GMCM( u, init.par, method = c("NM"...
/man/fit.meta.GMCM.Rd
no_license
AEBilgrau/GMCM
R
false
true
4,859
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit.meta.GMCM.R \name{fit.meta.GMCM} \alias{fit.meta.GMCM} \alias{fit.meta.gmcm} \alias{fit.special.GMCM} \alias{fit.special.gmcm} \title{Estimate GMCM parameters of the special model} \usage{ fit.meta.GMCM( u, init.par, method = c("NM"...
Arimax Code #Installing library package library(tseries) library("TTR") library("TSA") library("forecast") library("lubridate") library(tsoutliers) library(expsmooth) library(fma) #getting required data (base data of RPM for wednesday) arima_data_Wednesday <- read.csv("D:/Projects/Arimax_All_Days_Model/RPM_all_days/...
/RPM_Arimax.R
no_license
Deepak2094/Time-Series-ARIMAX
R
false
false
2,296
r
Arimax Code #Installing library package library(tseries) library("TTR") library("TSA") library("forecast") library("lubridate") library(tsoutliers) library(expsmooth) library(fma) #getting required data (base data of RPM for wednesday) arima_data_Wednesday <- read.csv("D:/Projects/Arimax_All_Days_Model/RPM_all_days/...
if (interactive()) source(rprojroot::find_package_root_file("tests/testlive/helper-globals_live.R")) account = local_create_account() withr::defer(account$authentication$logout()) # cannot be in local_create_account with covr p_api = ProjectManagementApi$new(account$apiClient) f_api = FormsAndSubmissionsApi$new(ac...
/tests/testlive/test-FormRoles.R
no_license
dmenne/odkapi
R
false
false
3,712
r
if (interactive()) source(rprojroot::find_package_root_file("tests/testlive/helper-globals_live.R")) account = local_create_account() withr::defer(account$authentication$logout()) # cannot be in local_create_account with covr p_api = ProjectManagementApi$new(account$apiClient) f_api = FormsAndSubmissionsApi$new(ac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DiversityCurves.R \name{DiversityCurves} \alias{DiversityCurves} \alias{phyloDiv} \alias{taxicDivCont} \alias{taxicDivDisc} \title{Diversity Curves} \usage{ taxicDivCont(timeData, int.length = 1, int.times = NULL, plot = TRUE, plotLogRich =...
/man/DiversityCurves.Rd
permissive
KlausVigo/paleotree
R
false
true
10,110
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DiversityCurves.R \name{DiversityCurves} \alias{DiversityCurves} \alias{phyloDiv} \alias{taxicDivCont} \alias{taxicDivDisc} \title{Diversity Curves} \usage{ taxicDivCont(timeData, int.length = 1, int.times = NULL, plot = TRUE, plotLogRich =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cn_assess.R \name{pool_auPRs} \alias{pool_auPRs} \title{pool auprs} \usage{ pool_auPRs(perfDF, rng = seq(-4, 10, by = 1)) } \arguments{ \item{perfDF}{perfDF} \item{rng}{seq -4 to 10} } \value{ df } \description{ pool auprs }
/man/pool_auPRs.Rd
permissive
edroaldo/CellNet
R
false
true
305
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cn_assess.R \name{pool_auPRs} \alias{pool_auPRs} \title{pool auprs} \usage{ pool_auPRs(perfDF, rng = seq(-4, 10, by = 1)) } \arguments{ \item{perfDF}{perfDF} \item{rng}{seq -4 to 10} } \value{ df } \description{ pool auprs }
#!/usr/bin/env Rscript # Set the precision to 16 digits: options( digits = 16 ); #' Run benchmarks. #' #' @examples #' main(); main <- function() { # Define benchmark parameters: name <- "asinh"; iterations <- 1000000L; repeats <- 3; #' Print the TAP version. #' #' @examples #' print_version(); print_versio...
/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/r/benchmark.R
permissive
UndefinedBehaviour/stdlib
R
false
false
2,268
r
#!/usr/bin/env Rscript # Set the precision to 16 digits: options( digits = 16 ); #' Run benchmarks. #' #' @examples #' main(); main <- function() { # Define benchmark parameters: name <- "asinh"; iterations <- 1000000L; repeats <- 3; #' Print the TAP version. #' #' @examples #' print_version(); print_versio...
if(!require(dplyr)) install.packages('dplyr') if(!require(MASS)) install.packages("MASS") if(!require(stringr)) install.packages("stringr") if(!require(ggplot2)) install.packages('ggplot2') if(!require(purrr)) install.packages("purrr") library(stringr) library(purrr) library(ggplot2) syn=amlresistancenetwor...
/results/beatAMLpatientProfiling/tumor_NRAS_proteomics_hyphalnet.R
no_license
Lthura/amlresistancenetworks
R
false
false
2,452
r
if(!require(dplyr)) install.packages('dplyr') if(!require(MASS)) install.packages("MASS") if(!require(stringr)) install.packages("stringr") if(!require(ggplot2)) install.packages('ggplot2') if(!require(purrr)) install.packages("purrr") library(stringr) library(purrr) library(ggplot2) syn=amlresistancenetwor...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pacf2phi.R \name{ar.pacf2phi} \alias{ar.pacf2phi} \title{Convert partial autocorrelation coefficients to autoregressive coeffients} \usage{ ar.pacf2phi(pac) } \arguments{ \item{pac}{partial autocorrelation coefficient (vector)} } \description...
/man/ar.pacf2phi.Rd
no_license
pedrognicolau/ARbiascorrect-v1
R
false
true
417
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pacf2phi.R \name{ar.pacf2phi} \alias{ar.pacf2phi} \title{Convert partial autocorrelation coefficients to autoregressive coeffients} \usage{ ar.pacf2phi(pac) } \arguments{ \item{pac}{partial autocorrelation coefficient (vector)} } \description...
# #dui zhongwen bu youhao. # zhiyao shi tongyi shiyan bianke. yieldAnalysis<-function(dd,area=667) { dd$chanliang<-chanliang(dd,area) #dd$biaozhunchanliang<-biaozhunchanliang(dd) fit<-aov(chanliang~code,data=dd) #summary(fit) library("agricolae") dt<-duncan.test(fit,"code",alpha=0.05) fcfx<-cbind(dt$mean...
/R/yield.R
no_license
zhaoqingsonga/soy
R
false
false
2,094
r
# #dui zhongwen bu youhao. # zhiyao shi tongyi shiyan bianke. yieldAnalysis<-function(dd,area=667) { dd$chanliang<-chanliang(dd,area) #dd$biaozhunchanliang<-biaozhunchanliang(dd) fit<-aov(chanliang~code,data=dd) #summary(fit) library("agricolae") dt<-duncan.test(fit,"code",alpha=0.05) fcfx<-cbind(dt$mean...
#Data revenue <- c(14574.49, 7606.46, 8611.41, 9175.41, 8058.65, 8105.44, 11496.28, 9766.09, 10305.32, 14379.96, 10713.97, 15433.50) expenses <- c(12051.82, 5695.07, 12319.20, 12089.72, 8658.57, 840.20, 3285.73, 5821.12, 6976.93, 16618.61, 10054.37, 3803.96) #Solution #Calculate Profit As The Differences Between Reven...
/Section3-Homework-FillInTheBlanks.R/Section3-Homework-FillInTheBlanks.R
no_license
desamsetti/R
R
false
false
1,976
r
#Data revenue <- c(14574.49, 7606.46, 8611.41, 9175.41, 8058.65, 8105.44, 11496.28, 9766.09, 10305.32, 14379.96, 10713.97, 15433.50) expenses <- c(12051.82, 5695.07, 12319.20, 12089.72, 8658.57, 840.20, 3285.73, 5821.12, 6976.93, 16618.61, 10054.37, 3803.96) #Solution #Calculate Profit As The Differences Between Reven...
library(doParallel) library(doRNG) source("coupling.R") source("ising/ising_functions.R") set.seed(1) registerDoParallel(cores = detectCores()) size <- 32 # We're ultimately interested in a low temperature, for which the SSG sampler is not mixing well. beta <- 0.46 NREP <- 5e2 max_iterations <- 1e7 # Single-site Gi...
/ising/ising_run.R
permissive
niloyb/LlagCouplings
R
false
false
1,461
r
library(doParallel) library(doRNG) source("coupling.R") source("ising/ising_functions.R") set.seed(1) registerDoParallel(cores = detectCores()) size <- 32 # We're ultimately interested in a low temperature, for which the SSG sampler is not mixing well. beta <- 0.46 NREP <- 5e2 max_iterations <- 1e7 # Single-site Gi...
# run code before source('R/00_loadpackages.R') source('R/00_vis_custom.R') source('R/01_load_wrangle.R') source('R/01_guana_wrangle_tidy.R') # all sites first dat4 %>% filter(component_short == "TP") %>% ggplot() + geom_line(aes(x = date_sampled, y = result, color = site), size = 1) + geom_point(aes(x = date_...
/R/Working/02_totalphosphorus.R
no_license
skdunnigan/guana
R
false
false
11,455
r
# run code before source('R/00_loadpackages.R') source('R/00_vis_custom.R') source('R/01_load_wrangle.R') source('R/01_guana_wrangle_tidy.R') # all sites first dat4 %>% filter(component_short == "TP") %>% ggplot() + geom_line(aes(x = date_sampled, y = result, color = site), size = 1) + geom_point(aes(x = date_...
## global.R ## # 加载R包----- enableBookmarking(store = "url") library(DTedit) library(shiny); library(shinydashboard); library(tsda); library(tsdo); library(tsui); library(shinyalert); DTeditCn::setDTtoCn() # 设置引入页----- source('00_data.R',encoding = 'utf-8'); source('00_conn.R',encoding = 'utf-8'); source('topbarMenu.R'...
/global.R
no_license
takewiki/lcsd
R
false
false
790
r
## global.R ## # 加载R包----- enableBookmarking(store = "url") library(DTedit) library(shiny); library(shinydashboard); library(tsda); library(tsdo); library(tsui); library(shinyalert); DTeditCn::setDTtoCn() # 设置引入页----- source('00_data.R',encoding = 'utf-8'); source('00_conn.R',encoding = 'utf-8'); source('topbarMenu.R'...
context("check_TF") test_that("check_TF", { expect_null(check_TF(TRUE)) expect_null(check_TF(FALSE)) mustBe <- NA expect_error(check_TF(mustBe), '`mustBe = NA` but must be TRUE or FALSE. Change `mustBe` to be TRUE or FALSE.') mustBe <- 1 expect_error(check_TF(mustBe), ...
/tests/testthat/test_check_TF.R
no_license
cran/grattan
R
false
false
1,079
r
context("check_TF") test_that("check_TF", { expect_null(check_TF(TRUE)) expect_null(check_TF(FALSE)) mustBe <- NA expect_error(check_TF(mustBe), '`mustBe = NA` but must be TRUE or FALSE. Change `mustBe` to be TRUE or FALSE.') mustBe <- 1 expect_error(check_TF(mustBe), ...
tar_test("tar_pid()", { tar_script(tar_target(x, 1)) tar_make(callr_function = NULL) expect_equal(tar_pid(), Sys.getpid()) }) tar_test("custom script and store args", { skip_cran() expect_equal(tar_config_get("script"), path_script_default()) expect_equal(tar_config_get("store"), path_store_default()) ta...
/tests/testthat/test-tar_pid.R
permissive
ropensci/targets
R
false
false
1,169
r
tar_test("tar_pid()", { tar_script(tar_target(x, 1)) tar_make(callr_function = NULL) expect_equal(tar_pid(), Sys.getpid()) }) tar_test("custom script and store args", { skip_cran() expect_equal(tar_config_get("script"), path_script_default()) expect_equal(tar_config_get("store"), path_store_default()) ta...
args = (commandArgs(TRUE)); chr = as.numeric(args[1]); mafrv = as.numeric(args[2]); genotype.file = args[3];# converted vcf file; output from vcf_format_change_v2.pl phenotype.file = args[4]; gene.file = args[5]; output.file = args[6]; nc = args[7]; cat("Input parameters:\n","...
/R/ARIELqQT_script_general.R
no_license
jennasimit/ARIEL
R
false
false
2,100
r
args = (commandArgs(TRUE)); chr = as.numeric(args[1]); mafrv = as.numeric(args[2]); genotype.file = args[3];# converted vcf file; output from vcf_format_change_v2.pl phenotype.file = args[4]; gene.file = args[5]; output.file = args[6]; nc = args[7]; cat("Input parameters:\n","...
library("poibin") args<-commandArgs(TRUE) probFile<-args[1] #"~/Documents/Lab/SnyderLab/LocalMutationRate/WindowProbs/RegionProbs_chr22_1.csv" countsFile<-args[2] #"/Users/cmelton/Documents/Aptana Studio 3 Workspace/GenomeScanner/output/Mar5/OneBP/RawOutput/WholeGenomeWindows_1a.1b.1d.1f.2a.2b.2c.3a.3b.4.5_chr22_1.txt...
/PoissonBinomial/PoiBinProbsNew.R
no_license
corner0426/RecurrentMutationStats
R
false
false
2,033
r
library("poibin") args<-commandArgs(TRUE) probFile<-args[1] #"~/Documents/Lab/SnyderLab/LocalMutationRate/WindowProbs/RegionProbs_chr22_1.csv" countsFile<-args[2] #"/Users/cmelton/Documents/Aptana Studio 3 Workspace/GenomeScanner/output/Mar5/OneBP/RawOutput/WholeGenomeWindows_1a.1b.1d.1f.2a.2b.2c.3a.3b.4.5_chr22_1.txt...
library(pbdMPI, quiet=TRUE) init() ## ## comm.rank <- function(comm=0) 0 ## rank 0 writes a bunch of integers into a binary file if(comm.rank() == 0) { ## write a vector of doubles to a binary file length <- 32 x <- seq(0.5, length, 1) writeBin(x, "binary.vector.file") } if(comm.rank() == 1) { ncol...
/pbdr/common/scripts/input/1_writebinary.r
no_license
RBigData/pbd-tutorial
R
false
false
455
r
library(pbdMPI, quiet=TRUE) init() ## ## comm.rank <- function(comm=0) 0 ## rank 0 writes a bunch of integers into a binary file if(comm.rank() == 0) { ## write a vector of doubles to a binary file length <- 32 x <- seq(0.5, length, 1) writeBin(x, "binary.vector.file") } if(comm.rank() == 1) { ncol...
library(testthat) library(tximport) library(tximportData) library(readr) test_check("tximport")
/2016-SIB/data/rnaseq/tximport-master/tests/testthat.R
no_license
wurmlab/genomicscourse
R
false
false
96
r
library(testthat) library(tximport) library(tximportData) library(readr) test_check("tximport")
babyData = read.csv('week_09/data/birthweight_reduced.csv') head(babyData, n=3) dim(babyData) babyData = na.omit(babyData); dim(babyData) class(babyData$smoker) babyData$smoker<-factor(babyData$smoker, labels=c('Non-smoker','Smoker')) # Проверка на мультиколлинеарность attach(babyData) pairs...
/lectures/07/scripts/regression_mult.R
no_license
dkhramov/iad_2020
R
false
false
1,552
r
babyData = read.csv('week_09/data/birthweight_reduced.csv') head(babyData, n=3) dim(babyData) babyData = na.omit(babyData); dim(babyData) class(babyData$smoker) babyData$smoker<-factor(babyData$smoker, labels=c('Non-smoker','Smoker')) # Проверка на мультиколлинеарность attach(babyData) pairs...
\name{gridData} \alias{gridData} \title{ Apply a grid (2D bins) to nodiv objects of type 'points' } \description{ Takes an object of type \code{distrib_data} or \code{nodiv_data}, and puts the point distributions on a grid. Can also be used for resampling grid data at a coarser scale. If the comm matrix has abundances...
/man/gridData.Rd
no_license
barnabywalker/nodiv
R
false
false
1,692
rd
\name{gridData} \alias{gridData} \title{ Apply a grid (2D bins) to nodiv objects of type 'points' } \description{ Takes an object of type \code{distrib_data} or \code{nodiv_data}, and puts the point distributions on a grid. Can also be used for resampling grid data at a coarser scale. If the comm matrix has abundances...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.cec.R \name{plot.cec} \alias{plot.cec} \title{Plot CEC Objects} \usage{ \method{plot}{cec}( x, col, cex = 0.5, pch = 19, cex.centers = 1, pch.centers = 8, ellipses = TRUE, ellipses.lwd = 4, ellipses.lty = 2, model = T...
/man/plot.cec.Rd
no_license
cran/CEC
R
false
true
2,326
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.cec.R \name{plot.cec} \alias{plot.cec} \title{Plot CEC Objects} \usage{ \method{plot}{cec}( x, col, cex = 0.5, pch = 19, cex.centers = 1, pch.centers = 8, ellipses = TRUE, ellipses.lwd = 4, ellipses.lty = 2, model = T...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rabbitmq.R \name{rabbitmq_parse_uri} \alias{rabbitmq_parse_uri} \title{parse the RabbiMQ URI.} \usage{ rabbitmq_parse_uri(uri, prefix = "", port = 15672) } \arguments{ \item{uri}{the amqp URI} \item{prefix}{the prefix that the RabbitMQ manag...
/base/remote/man/rabbitmq_parse_uri.Rd
permissive
PecanProject/pecan
R
false
true
616
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rabbitmq.R \name{rabbitmq_parse_uri} \alias{rabbitmq_parse_uri} \title{parse the RabbiMQ URI.} \usage{ rabbitmq_parse_uri(uri, prefix = "", port = 15672) } \arguments{ \item{uri}{the amqp URI} \item{prefix}{the prefix that the RabbitMQ manag...
# Present graphically the relationship between per capita A and marginal alpha effects. # This provides intuitions for the allocation problem across planners. # Tested out graphing structure here: https://fanwangecon.github.io/R4Econ/tabgraph/ggscatter/htmlpdfr/fs_ggscatter_3cts_mdisc.html # The code/loop structure fol...
/AllocateR/alloc_discrete_paper_graphs/fs_A_alpha_scatter.R
permissive
DynamicProgramming-StructuralEstimation/PrjOptiSNW
R
false
false
14,165
r
# Present graphically the relationship between per capita A and marginal alpha effects. # This provides intuitions for the allocation problem across planners. # Tested out graphing structure here: https://fanwangecon.github.io/R4Econ/tabgraph/ggscatter/htmlpdfr/fs_ggscatter_3cts_mdisc.html # The code/loop structure fol...
# Step-1 # Identify the Problem Statement, What are you trying to solve? ##"Predict the rating of (movie/web series/etc.) based on its characteristics" # Step-2 # Identify the Target variable, What value will be predicted? ##"Rating" # Step-3 #Loading the raw Data InputData=read.csv(choose.files(),na.stri...
/anime.R
no_license
karankatyal456/Anime-Rating-Prediction
R
false
false
20,623
r
# Step-1 # Identify the Problem Statement, What are you trying to solve? ##"Predict the rating of (movie/web series/etc.) based on its characteristics" # Step-2 # Identify the Target variable, What value will be predicted? ##"Rating" # Step-3 #Loading the raw Data InputData=read.csv(choose.files(),na.stri...
library(tidyverse) library(ieugwasr) args <- commandArgs(trailingOnly=TRUE) X <- readRDS(args[1]) pval_thresh <- as.numeric(args[2]) r2_thresh <- as.numeric(args[3]) ref_path <- args[4] out_file <- args[5] X <- X %>% rename(rsid = snp, pval = p_value) X_clump <- ld_clump(dat = X, ...
/pipeline_code/R/ld_prune_plink.R
no_license
CreRecombinase/cause
R
false
false
599
r
library(tidyverse) library(ieugwasr) args <- commandArgs(trailingOnly=TRUE) X <- readRDS(args[1]) pval_thresh <- as.numeric(args[2]) r2_thresh <- as.numeric(args[3]) ref_path <- args[4] out_file <- args[5] X <- X %>% rename(rsid = snp, pval = p_value) X_clump <- ld_clump(dat = X, ...
\name{NEWS} \title{News for Package \pkg{RcppArmadillo}} \newcommand{\ghpr}{\href{https://github.com/RcppCore/RcppArmadillo/pull/#1}{##1}} \newcommand{\ghit}{\href{https://github.com/RcppCore/RcppArmadillo/issues/#1}{##1}} \section{Changes in RcppArmadillo version 0.10.2.2.0 (2021-03-09)}{ \itemize{ \item Upgrad...
/packrat/lib/x86_64-apple-darwin19.4.0/4.0.4/RcppArmadillo/NEWS.Rd
no_license
marilotte/Pregancy_Relapse_Count_Simulation
R
false
false
89,884
rd
\name{NEWS} \title{News for Package \pkg{RcppArmadillo}} \newcommand{\ghpr}{\href{https://github.com/RcppCore/RcppArmadillo/pull/#1}{##1}} \newcommand{\ghit}{\href{https://github.com/RcppCore/RcppArmadillo/issues/#1}{##1}} \section{Changes in RcppArmadillo version 0.10.2.2.0 (2021-03-09)}{ \itemize{ \item Upgrad...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/inline_text.R \name{inline_text.tbl_summary} \alias{inline_text.tbl_summary} \title{Report statistics from summary tables inline} \usage{ \method{inline_text}{tbl_summary}(x, variable, level = NULL, column = ifelse(is.null(x$by), "stat_0", ...
/man/inline_text.tbl_summary.Rd
permissive
yushu-liu/gtsummary
R
false
true
2,141
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/inline_text.R \name{inline_text.tbl_summary} \alias{inline_text.tbl_summary} \title{Report statistics from summary tables inline} \usage{ \method{inline_text}{tbl_summary}(x, variable, level = NULL, column = ifelse(is.null(x$by), "stat_0", ...
subset.int <- function(timestamp, subset) { ### internal function for data subsets num.samples <- length(timestamp) tz <- attr(timestamp, "tzone") if(is.null(tz)) tz <- "" if((!any(is.character(subset)) && !any(is.na(subset))) || length(subset)!=2) stop("Please specify 'subset' as vector of start and end time sta...
/R/subset.int.R
no_license
paulponcet/bReeze
R
false
false
1,577
r
subset.int <- function(timestamp, subset) { ### internal function for data subsets num.samples <- length(timestamp) tz <- attr(timestamp, "tzone") if(is.null(tz)) tz <- "" if((!any(is.character(subset)) && !any(is.na(subset))) || length(subset)!=2) stop("Please specify 'subset' as vector of start and end time sta...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ecs_operations.R \name{ecs_list_task_definition_families} \alias{ecs_list_task_definition_families} \title{Returns a list of task definition families that are registered to your account (which may include task definition families that no long...
/paws/man/ecs_list_task_definition_families.Rd
permissive
johnnytommy/paws
R
false
true
3,376
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ecs_operations.R \name{ecs_list_task_definition_families} \alias{ecs_list_task_definition_families} \title{Returns a list of task definition families that are registered to your account (which may include task definition families that no long...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/FuGePSD.R \name{Rule.clearAntecedent} \alias{Rule.clearAntecedent} \title{Remove completely the antecedent part of a rule.} \usage{ Rule.clearAntecedent(rule) } \arguments{ \item{rule}{The rule to where we want to remove the anteceden...
/man/Rule.clearAntecedent.Rd
permissive
dejavu2010/SDEFSR
R
false
false
438
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/FuGePSD.R \name{Rule.clearAntecedent} \alias{Rule.clearAntecedent} \title{Remove completely the antecedent part of a rule.} \usage{ Rule.clearAntecedent(rule) } \arguments{ \item{rule}{The rule to where we want to remove the anteceden...
\name{position_upsideDownsideVarianceRatio} \alias{position_upsideDownsideVarianceRatio} \title{Position Upside/Downside Variance Ratio} \usage{position_upsideDownsideVarianceRatio(portfolio,symbol,thresholdReturn) } \arguments{ \item{portfolio}{Portfolio object created using \link[=portfolio_create]{portfolio_...
/PortfolioEffectHFT/man/position_upsideDownsideVarianceRatio.Rd
permissive
githubfun/portfolioeffect-quant-r
R
false
false
1,896
rd
\name{position_upsideDownsideVarianceRatio} \alias{position_upsideDownsideVarianceRatio} \title{Position Upside/Downside Variance Ratio} \usage{position_upsideDownsideVarianceRatio(portfolio,symbol,thresholdReturn) } \arguments{ \item{portfolio}{Portfolio object created using \link[=portfolio_create]{portfolio_...
context("ml feature standard scaler") test_that("ft_standard_scaler() default params", { test_requires_latest_spark() sc <- testthat_spark_connection() test_default_args(sc, ft_standard_scaler) }) test_that("ft_standard_scaler() param setting", { test_requires_latest_spark() sc <- testthat_spark_connection(...
/tests/testthat/test-ml-feature-standard-scaler.R
permissive
tnixon/sparklyr
R
false
false
1,296
r
context("ml feature standard scaler") test_that("ft_standard_scaler() default params", { test_requires_latest_spark() sc <- testthat_spark_connection() test_default_args(sc, ft_standard_scaler) }) test_that("ft_standard_scaler() param setting", { test_requires_latest_spark() sc <- testthat_spark_connection(...
################# # read all the *.bin files from directory, converts the data to xts and assigns it to the symbol derived from the filename. ################# library(mmap) library(xts) #library(quantmod) #only needed for plotting source('IBmakeVarlengthStruct.r') source('datafeed-config.r') allshares<-dir(IBdatafe...
/_checkMKTSharedBinXTS-N.R
no_license
parthasen/datafeedMKT-pub
R
false
false
2,974
r
################# # read all the *.bin files from directory, converts the data to xts and assigns it to the symbol derived from the filename. ################# library(mmap) library(xts) #library(quantmod) #only needed for plotting source('IBmakeVarlengthStruct.r') source('datafeed-config.r') allshares<-dir(IBdatafe...
library(neuralnet) library("caret") library(corrplot) library(C50) library(dummies) library(gmodels) library(Metrics) library(neuralnet) library(plyr) library(rpart) library(tree) library(e1071) library(rpart.plot) library(fastDummies) ################################## Load Files ######################################...
/0-Implementation/R Files/NN/League/Bundesliga/01-02.R
no_license
Chanter08/Thesis
R
false
false
6,227
r
library(neuralnet) library("caret") library(corrplot) library(C50) library(dummies) library(gmodels) library(Metrics) library(neuralnet) library(plyr) library(rpart) library(tree) library(e1071) library(rpart.plot) library(fastDummies) ################################## Load Files ######################################...
load("data/nba_hustle.RData") load("data/nba_advanced.RData") nba_data_all <- full_join(nba_data, nba_hustle_data, by = c("PLAYERID", "Year", "GP", "TEAM")) save(nba_data_all, file = "data/nba_data_all.RData")
/nba_defense_combiner.R
no_license
alee2019/moneyballproject
R
false
false
212
r
load("data/nba_hustle.RData") load("data/nba_advanced.RData") nba_data_all <- full_join(nba_data, nba_hustle_data, by = c("PLAYERID", "Year", "GP", "TEAM")) save(nba_data_all, file = "data/nba_data_all.RData")
block_multiple <- function(A, B, ii, sortcol, sortcol2) { result <- NULL object <- NULL for (i in 1:ncol(A)) { if(sum(sortcol[ii]==i)==0) object <- rep(0,nrow(A)) if(sum(sortcol[ii]==i)>0) object <- A[,sortcol2[ii][which(sortcol[ii]==i)]]%*%as.matrix(B[which(sortcol[ii]==i),]) result <- c(result,object) } ...
/ES/R/block_multiple.R
no_license
ingted/R-Examples
R
false
false
350
r
block_multiple <- function(A, B, ii, sortcol, sortcol2) { result <- NULL object <- NULL for (i in 1:ncol(A)) { if(sum(sortcol[ii]==i)==0) object <- rep(0,nrow(A)) if(sum(sortcol[ii]==i)>0) object <- A[,sortcol2[ii][which(sortcol[ii]==i)]]%*%as.matrix(B[which(sortcol[ii]==i),]) result <- c(result,object) } ...
library(HKprocess) ### Name: inferH ### Title: Posterior distribution of the H parameter of the HKp using an ### Accept-Reject algorithm. ### Aliases: inferH ### Keywords: models ### ** Examples # Posterior distribution of the H parameter of the HKp for the Nile time series. set.seed(12345) samp.sim <- inferH(N...
/data/genthat_extracted_code/HKprocess/examples/inferH.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
395
r
library(HKprocess) ### Name: inferH ### Title: Posterior distribution of the H parameter of the HKp using an ### Accept-Reject algorithm. ### Aliases: inferH ### Keywords: models ### ** Examples # Posterior distribution of the H parameter of the HKp for the Nile time series. set.seed(12345) samp.sim <- inferH(N...