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/rbeta2.R \name{rbeta2} \alias{rbeta2} \title{Generate random number(s) from a beta distribution with specified mean and standard deviation} \usage{ rbeta2(n, mean, sdev) } \arguments{ \item{n}{number of random deviates desired} \item{mean}{m...
/man/rbeta2.Rd
no_license
juvelas/PVA
R
false
true
809
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rbeta2.R \name{rbeta2} \alias{rbeta2} \title{Generate random number(s) from a beta distribution with specified mean and standard deviation} \usage{ rbeta2(n, mean, sdev) } \arguments{ \item{n}{number of random deviates desired} \item{mean}{m...
######################################################################## # dailyhourlybarplot/createDataList.R # # Create a list of data needed to generate the plot. # # Author: Tate Brasel, Spencer Pease, Jonathan Callahan ######################################################################## createDataList <- func...
/monitor-custom/R/dailyhourlybarplot/createDataList.R
no_license
MazamaScience/monitoring-custom-service
R
false
false
3,902
r
######################################################################## # dailyhourlybarplot/createDataList.R # # Create a list of data needed to generate the plot. # # Author: Tate Brasel, Spencer Pease, Jonathan Callahan ######################################################################## createDataList <- func...
# Zad 4-1 mpg str(mpg) ?mpg # 1. 11 # 2. 234 # 3. engine displacement to pojemność silnika, miles per gallon to amerykańska wersja litrów na 100 km # 4. # manufacturer (producent) # model- model name (model samochodu) # displ- engine displacement, in litres (pojemność silnika) # year- year of manufacture (rocznik) # c...
/zadania4.R
no_license
misiolek/tipn_zad_misiolek
R
false
false
1,297
r
# Zad 4-1 mpg str(mpg) ?mpg # 1. 11 # 2. 234 # 3. engine displacement to pojemność silnika, miles per gallon to amerykańska wersja litrów na 100 km # 4. # manufacturer (producent) # model- model name (model samochodu) # displ- engine displacement, in litres (pojemność silnika) # year- year of manufacture (rocznik) # c...
library(gethr) ### Name: shh_getSymKey ### Title: Symmetric key given a symmetric key ID. ### Aliases: shh_getSymKey ### ** Examples ## No test: shh_getSymKey('8d7b2dff569d14308a8e74ca1475dd93ba8dd42a9a74e97638796d5d6c8751ac') ## End(No test)
/data/genthat_extracted_code/gethr/examples/shh_getSymKey.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
252
r
library(gethr) ### Name: shh_getSymKey ### Title: Symmetric key given a symmetric key ID. ### Aliases: shh_getSymKey ### ** Examples ## No test: shh_getSymKey('8d7b2dff569d14308a8e74ca1475dd93ba8dd42a9a74e97638796d5d6c8751ac') ## End(No test)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.backup_operations.R \name{describe_protected_resource} \alias{describe_protected_resource} \title{Returns information about a saved resource, including the last time it was backed-up, its Amazon Resource Name (ARN), and the AWS service t...
/service/paws.backup/man/describe_protected_resource.Rd
permissive
CR-Mercado/paws
R
false
true
850
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.backup_operations.R \name{describe_protected_resource} \alias{describe_protected_resource} \title{Returns information about a saved resource, including the last time it was backed-up, its Amazon Resource Name (ARN), and the AWS service t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Tuning.R \name{MakeLowessPred} \alias{MakeLowessPred} \title{Predict RFLOWESS Tuning} \usage{ MakeLowessPred(OOBWeights, PredWeights, TRAINY, TEST, tol = tol, ind, parvec, method = "Tukey") } \arguments{ \item{OOBWeights}{matrix of training...
/man/MakeLowessPred.Rd
no_license
AndrewjSage/RFLOWESS
R
false
true
1,368
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Tuning.R \name{MakeLowessPred} \alias{MakeLowessPred} \title{Predict RFLOWESS Tuning} \usage{ MakeLowessPred(OOBWeights, PredWeights, TRAINY, TEST, tol = tol, ind, parvec, method = "Tukey") } \arguments{ \item{OOBWeights}{matrix of training...
# qsub -v script=pQTL_Mapk3_mediation Rsubmit_args.sh # R/3.4.1 setwd("/projects/korstanje-lab/ytakemon/JAC_DO_Kidney/") load("./RNAseq_data/DO188b_kidney_noprobs.RData") library(ggplot2) library(dplyr) library(scales) # Get list of genes with trans pQTL list <- read.csv("./QTLscan/output/Threshold6_pQTL_intAge_pbatc...
/QTLmapping/scan_addtrans/pQTL_Mapk3_mediation.R
permissive
ytakemon/JAC_DO_Kidney
R
false
false
5,915
r
# qsub -v script=pQTL_Mapk3_mediation Rsubmit_args.sh # R/3.4.1 setwd("/projects/korstanje-lab/ytakemon/JAC_DO_Kidney/") load("./RNAseq_data/DO188b_kidney_noprobs.RData") library(ggplot2) library(dplyr) library(scales) # Get list of genes with trans pQTL list <- read.csv("./QTLscan/output/Threshold6_pQTL_intAge_pbatc...
#' @title Sub-community plot under each sub-environmental space K #' @aliases subplot #' @description The function to represent the community subniche position under each subenvironment K with their respective marginality from Gk. #' @param ... further arguments passed to or from other methods. #' @param subnic an obj...
/R/subplot.R
no_license
cran/subniche
R
false
false
9,437
r
#' @title Sub-community plot under each sub-environmental space K #' @aliases subplot #' @description The function to represent the community subniche position under each subenvironment K with their respective marginality from Gk. #' @param ... further arguments passed to or from other methods. #' @param subnic an obj...
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(plotly) # Define UI for application that draws a histogram shinyUI(...
/ui.R
no_license
cmalla94/FirstDataStory
R
false
false
3,872
r
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(plotly) # Define UI for application that draws a histogram shinyUI(...
run_analysis <- function(featuresfile = "features.txt", activitylabelfile = "activity_labels.txt", traindatafile = "./train/X_train.txt", trainlabelfile = "./train/y_train.txt", testdatafile = "./test/X_test.txt", testlabelfile = "./test/y_test.txt" ){ ## Run scr...
/run_analysis.r
no_license
JayeBlurb/tidydataassign
R
false
false
2,670
r
run_analysis <- function(featuresfile = "features.txt", activitylabelfile = "activity_labels.txt", traindatafile = "./train/X_train.txt", trainlabelfile = "./train/y_train.txt", testdatafile = "./test/X_test.txt", testlabelfile = "./test/y_test.txt" ){ ## Run scr...
#! /usr/bin/env Rscript ############################################# ############## FUNCTIONAL HUNTER ########### ############################################# # this is wrapped in a tryCatch. The first expression works when source executes, the # second expression works when R CMD does it. full.fpath <- tryCatch(nor...
/render_corr_report.R
no_license
MariaSuero/DEgenesHunter
R
false
false
4,533
r
#! /usr/bin/env Rscript ############################################# ############## FUNCTIONAL HUNTER ########### ############################################# # this is wrapped in a tryCatch. The first expression works when source executes, the # second expression works when R CMD does it. full.fpath <- tryCatch(nor...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rcox.R \name{rcox} \alias{rcox} \title{Simulate Cox process in 2- or 3-dimensional box} \usage{ rcox(lambda, n, bbox, W, iter = 10000, verb = FALSE) } \arguments{ \item{lambda}{object from 'lambda'-function} \item{n}{points to simulate if fi...
/man/rcox.Rd
no_license
antiphon/rcox
R
false
true
690
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rcox.R \name{rcox} \alias{rcox} \title{Simulate Cox process in 2- or 3-dimensional box} \usage{ rcox(lambda, n, bbox, W, iter = 10000, verb = FALSE) } \arguments{ \item{lambda}{object from 'lambda'-function} \item{n}{points to simulate if fi...
#Optimal Number of Clusters in data #Reduce total within ss data = iris[-5] head(data) km1= kmeans(data,centers=1) km1$tot.withinss km2= kmeans(data,centers=2) km2$tot.withinss km2$withinss km3= kmeans(data,centers=3) km3$tot.withinss km4= kmeans(data,centers=4) km4$tot.withinss km5= kmeans(data,centers=5) km5$to...
/optimal no.R
no_license
Vishakha2992/Analytics1
R
false
false
827
r
#Optimal Number of Clusters in data #Reduce total within ss data = iris[-5] head(data) km1= kmeans(data,centers=1) km1$tot.withinss km2= kmeans(data,centers=2) km2$tot.withinss km2$withinss km3= kmeans(data,centers=3) km3$tot.withinss km4= kmeans(data,centers=4) km4$tot.withinss km5= kmeans(data,centers=5) km5$to...
context("shed") test_that("shed works as expected", { tdat <- data.frame( Sepal.Length = c("Sepal.Length", "blah", "4.9", "4.7"), Sepal.Width = c("Sepal.Width", "3.5", "3.0", "3.2"), Petal.Length = c("Petal.Length", "1.4", "1.4", "1.3"), Petal.Width = c("Petal.Width", "0.2", "0.2", "0.2"), Spec...
/tests/testthat/test_shed.R
permissive
s-fleck/shed
R
false
false
964
r
context("shed") test_that("shed works as expected", { tdat <- data.frame( Sepal.Length = c("Sepal.Length", "blah", "4.9", "4.7"), Sepal.Width = c("Sepal.Width", "3.5", "3.0", "3.2"), Petal.Length = c("Petal.Length", "1.4", "1.4", "1.3"), Petal.Width = c("Petal.Width", "0.2", "0.2", "0.2"), Spec...
rm(list=ls()) ####### R version 3.6.3 (2020-02-29) -- "Holding the Windsock" library(rocc) library(ggplot2) library(Biobase) library(edgeR) library(limma) library(biomaRt) library(dplyr) library(cancerclass) library(cowplot) library(caret) library(RColorBrewer) library(FactoMineR) library(factoextra) ...
/immuneSig_CV_test_mod.R
no_license
donghaixiong/ReplyToMattersArising
R
false
false
31,403
r
rm(list=ls()) ####### R version 3.6.3 (2020-02-29) -- "Holding the Windsock" library(rocc) library(ggplot2) library(Biobase) library(edgeR) library(limma) library(biomaRt) library(dplyr) library(cancerclass) library(cowplot) library(caret) library(RColorBrewer) library(FactoMineR) library(factoextra) ...
library(shiny) poundsToKilos <<- 2.204 # 1 kg = 2.204 pounds inchesToMeters <<- 0.0254 # 1 inches = 0.0254 m # Metric BMI formula where weight is in kg, and height is in meters calculateBMI <- function(w,h) w/(h^2) # Check the measurement units and convert to metric if it is imperial system calculate <- function(...
/server.R
no_license
naiavu/DDP_Coursera
R
false
false
1,348
r
library(shiny) poundsToKilos <<- 2.204 # 1 kg = 2.204 pounds inchesToMeters <<- 0.0254 # 1 inches = 0.0254 m # Metric BMI formula where weight is in kg, and height is in meters calculateBMI <- function(w,h) w/(h^2) # Check the measurement units and convert to metric if it is imperial system calculate <- function(...
NEI <- readRDS("data/exdata_data_NEI_data/summarySCC_PM25.rds") SCC <- readRDS("data/exdata_data_NEI_data/Source_Classification_Code.rds") png(filename = "datasciencecoursera/Exploratory Data Analysis/figure/plot1.png", width = 480, height = 380, units = "px", pointsize = 12, bg = "white") totEm = aggregat...
/Exploratory Data Analysis/Assignment2.R
no_license
siddharth012/datasciencecoursera-1
R
false
false
525
r
NEI <- readRDS("data/exdata_data_NEI_data/summarySCC_PM25.rds") SCC <- readRDS("data/exdata_data_NEI_data/Source_Classification_Code.rds") png(filename = "datasciencecoursera/Exploratory Data Analysis/figure/plot1.png", width = 480, height = 380, units = "px", pointsize = 12, bg = "white") totEm = aggregat...
library(plyr) library(greport) rm(list=ls()) #Loading Data trainD <- read.table("X_train.txt") trainL <- read.table("y_train.txt") trainSub <- read.table("subject_train.txt") testD <- read.table("X_test.txt") testL <- read.table("y_test.txt") testSub <- read.table("...
/run_analysis.R
no_license
Belphegorus/Getting-Cleaning-Data
R
false
false
1,309
r
library(plyr) library(greport) rm(list=ls()) #Loading Data trainD <- read.table("X_train.txt") trainL <- read.table("y_train.txt") trainSub <- read.table("subject_train.txt") testD <- read.table("X_test.txt") testL <- read.table("y_test.txt") testSub <- read.table("...
## ---- include = FALSE---------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----setup, include=FALSE------------------------ knitr::opts_chunk$set(echo = TRUE) ## ------------------------------------------------ X <- 4 ## ------------------------------------------------ librar...
/inst/doc/Introduction-to-R.R
no_license
Hamrita/StatMath_R
R
false
false
3,782
r
## ---- include = FALSE---------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----setup, include=FALSE------------------------ knitr::opts_chunk$set(echo = TRUE) ## ------------------------------------------------ X <- 4 ## ------------------------------------------------ librar...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/helper_functions.R \name{symb2I} \alias{symb2I} \title{Convert names of pathogen/combinations into 0/1 coding} \usage{ symb2I(pathogen_name, pathogen_list) } \arguments{ \item{pathogen_name}{The allowed pathogen name (can be a combina...
/man/symb2I.Rd
permissive
swihart/nplcm
R
false
false
742
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/helper_functions.R \name{symb2I} \alias{symb2I} \title{Convert names of pathogen/combinations into 0/1 coding} \usage{ symb2I(pathogen_name, pathogen_list) } \arguments{ \item{pathogen_name}{The allowed pathogen name (can be a combina...
# Iowa ncaag('https://www.sports-reference.com/cbb/boxscores/2023-03-17-01-iowa_w.html') ncaag('https://www.sports-reference.com/cbb/boxscores/2023-03-19-01-iowa_w.html') ncaag('https://www.sports-reference.com/cbb/boxscores/2023-03-24-03-iowa_w.html') ncaag('https://www.sports-reference.com/cbb/boxscores/2023-03-26-03...
/scripts/tournament2023w.r
no_license
sportModel/basketball
R
false
false
355
r
# Iowa ncaag('https://www.sports-reference.com/cbb/boxscores/2023-03-17-01-iowa_w.html') ncaag('https://www.sports-reference.com/cbb/boxscores/2023-03-19-01-iowa_w.html') ncaag('https://www.sports-reference.com/cbb/boxscores/2023-03-24-03-iowa_w.html') ncaag('https://www.sports-reference.com/cbb/boxscores/2023-03-26-03...
Transformer <- R6::R6Class( classname = "Transformer", public = list( fit = function(X, y = NULL, ...) stop('Undefined'), fit_transform = function(X, y = NULL, ...) { # Override method if "transform" can be efficiently implemented immediately after fit. self$fit(X, y) ...
/R/base.R
no_license
schmidtfederico/txtlib
R
false
false
4,387
r
Transformer <- R6::R6Class( classname = "Transformer", public = list( fit = function(X, y = NULL, ...) stop('Undefined'), fit_transform = function(X, y = NULL, ...) { # Override method if "transform" can be efficiently implemented immediately after fit. self$fit(X, y) ...
context("Functions") test_that("merge_ibaq throws error without valid input", { expect_error(merge_ibaq("test_data", test_pep)) expect_error(merge_ibaq(test_data, "test_pep")) expect_error(merge_ibaq(test_data[,-(30)], test_pep)) expect_error(merge_ibaq(test_data[,-(31)], test_pep)) expect_error(merge_ibaq(t...
/tests/testthat/test.R
no_license
algom/DEPstoi
R
false
false
6,410
r
context("Functions") test_that("merge_ibaq throws error without valid input", { expect_error(merge_ibaq("test_data", test_pep)) expect_error(merge_ibaq(test_data, "test_pep")) expect_error(merge_ibaq(test_data[,-(30)], test_pep)) expect_error(merge_ibaq(test_data[,-(31)], test_pep)) expect_error(merge_ibaq(t...
setwd("C:/Users/SINDHU/Desktop/data science") train=read.csv("train.csv") str(train) train <- train[,-c(10,11)] #Converting integer variables to factor variables train$season <- as.factor(train$season) train$holiday <- as.factor(train$holiday) train$workingday <- as.factor(train$workingday) train$weather <-...
/Linear_Regression.R
no_license
sindhukrovvidi/Bike-sharing-demand
R
false
false
3,782
r
setwd("C:/Users/SINDHU/Desktop/data science") train=read.csv("train.csv") str(train) train <- train[,-c(10,11)] #Converting integer variables to factor variables train$season <- as.factor(train$season) train$holiday <- as.factor(train$holiday) train$workingday <- as.factor(train$workingday) train$weather <-...
testlist <- list(A = structure(c(2.32784082958487e-308, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_ro...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613107166-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
344
r
testlist <- list(A = structure(c(2.32784082958487e-308, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_ro...
MaxentProject <- function(Species, VariableNamesIn, PredictorsIn, OutGridID, SubsetVariableNumber, VariableSubset, TrainSWD, TrainPresAbsID, Threshold, BetaMult, OutDirectIn..., Output, CatVarsPrefix, MaxentArgsIn) { ############################################################################## # This R function...
/MaxEnt/RCode/Functions/MaxentProject_Function.R
no_license
jamesltracy/RSFSA_R
R
false
false
4,455
r
MaxentProject <- function(Species, VariableNamesIn, PredictorsIn, OutGridID, SubsetVariableNumber, VariableSubset, TrainSWD, TrainPresAbsID, Threshold, BetaMult, OutDirectIn..., Output, CatVarsPrefix, MaxentArgsIn) { ############################################################################## # This R function...
createNullSampling <-function(X, groupLabel, N=100, verbose=TRUE){ groupNum=length(levels(groupLabel)); samplePool=X; groupMean=list(); for (i in 1:groupNum){ groupLabeli=which(groupLabel==levels(groupLabel)[i]); Xi=X[groupLabeli,] mi=colMeans(Xi); groupMean[[i]]=mi; } ...
/R/createNullSampling.R
permissive
nghiavtr/speaq
R
false
false
662
r
createNullSampling <-function(X, groupLabel, N=100, verbose=TRUE){ groupNum=length(levels(groupLabel)); samplePool=X; groupMean=list(); for (i in 1:groupNum){ groupLabeli=which(groupLabel==levels(groupLabel)[i]); Xi=X[groupLabeli,] mi=colMeans(Xi); groupMean[[i]]=mi; } ...
# This script defines custom functions to be sourced in the # `rna-expression-validation.R` script of this module. # # Chante Bethell for CCDL 2019 # # # #### USAGE # This script is intended to be sourced in the # 'analyses/focal-cn-file-preparation/rna-expression-validation.R' script as # follows: # # source(file.path...
/analyses/focal-cn-file-preparation/util/rna-expression-functions.R
permissive
7716870223/OpenPBTA-analysis
R
false
false
9,409
r
# This script defines custom functions to be sourced in the # `rna-expression-validation.R` script of this module. # # Chante Bethell for CCDL 2019 # # # #### USAGE # This script is intended to be sourced in the # 'analyses/focal-cn-file-preparation/rna-expression-validation.R' script as # follows: # # source(file.path...
#' @templateVar class anova #' @template title_desc_tidy #' #' @param x An `anova` objects, such as those created by [stats::anova()] or #' [car::Anova()]. #' @template param_unused_dots #' #' @evalRd return_tidy( #' "term", #' "df", #' "sumsq", #' "meansq", #' "statistic", #' "p.value" #' ) #' #' @detail...
/R/stats-anova-tidiers.R
no_license
kyusque/broom
R
false
false
7,865
r
#' @templateVar class anova #' @template title_desc_tidy #' #' @param x An `anova` objects, such as those created by [stats::anova()] or #' [car::Anova()]. #' @template param_unused_dots #' #' @evalRd return_tidy( #' "term", #' "df", #' "sumsq", #' "meansq", #' "statistic", #' "p.value" #' ) #' #' @detail...
# 09.08.2016 Alberto.Rovellini@vuw.ac.nz # this is a script to read the opwall monitoring data # 11.08.2016 Script is a bit better now. Next thing to do is to order the factors of the location # for the plotting, but the renaming of the empty benthic types is working now and the code is # better commented # rename in...
/trunk/monitoringBenthic.R
no_license
somros/exploratoryHoga
R
false
false
10,965
r
# 09.08.2016 Alberto.Rovellini@vuw.ac.nz # this is a script to read the opwall monitoring data # 11.08.2016 Script is a bit better now. Next thing to do is to order the factors of the location # for the plotting, but the renaming of the empty benthic types is working now and the code is # better commented # rename in...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prune.phylo.rank.R \name{prune.phylo.rank} \alias{prune.phylo.rank} \title{Prune Phylogenies to Higher Ranks} \usage{ prune.phylo.rank(phy, tax, rank = "genus") } \arguments{ \item{phy}{An object of class \code{\link[ape]{phylo}}.} \item{tax...
/man/prune.phylo.rank.Rd
no_license
heibl/megaptera
R
false
true
871
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prune.phylo.rank.R \name{prune.phylo.rank} \alias{prune.phylo.rank} \title{Prune Phylogenies to Higher Ranks} \usage{ prune.phylo.rank(phy, tax, rank = "genus") } \arguments{ \item{phy}{An object of class \code{\link[ape]{phylo}}.} \item{tax...
.DC_store visualisations *.xlsx
/.gitignore.R
no_license
charleaj/bti-tech-lab2
R
false
false
32
r
.DC_store visualisations *.xlsx
# Generate a figure to show how ROC curves originate from the distributions rm(list=ls()) require(warningsignals) null <- rnorm(1000, 5.5, 1) # Consider a -1, 1 range? test <- rnorm(1000, 6.5, 1) init.pow <- function(null, test){ pow <- vector("list", length=2) class(pow) <- "pow" dummy <- list(loglik=0, k=0) ...
/demo/esa/roc_figure.R
no_license
cboettig/warningsignals
R
false
false
2,220
r
# Generate a figure to show how ROC curves originate from the distributions rm(list=ls()) require(warningsignals) null <- rnorm(1000, 5.5, 1) # Consider a -1, 1 range? test <- rnorm(1000, 6.5, 1) init.pow <- function(null, test){ pow <- vector("list", length=2) class(pow) <- "pow" dummy <- list(loglik=0, k=0) ...
library( ReporteRs ) library( ggplot2) # get data source("data_pre_processing.R") data <- data_pre_processing() #################### visualisation of data analysis ############################ # Creation of mydoc, a mydocx object html = bsdoc( title = 'Data_visualisation' ) html = addTitle(html, value = "Report", 1, ...
/data_analysing.R
no_license
jinxing1/ravelin_challenge
R
false
false
9,748
r
library( ReporteRs ) library( ggplot2) # get data source("data_pre_processing.R") data <- data_pre_processing() #################### visualisation of data analysis ############################ # Creation of mydoc, a mydocx object html = bsdoc( title = 'Data_visualisation' ) html = addTitle(html, value = "Report", 1, ...
test_that("Type of elements dataset:", { datasetToTest <- resTspToHour(analyse_crps_news(dl_data_from(as.numeric(as.POSIXct("2018-12-11 1:00:00 EST"))), c("BTC", "ETH")) , c("BTC", "ETH")) expect_is(datasetToTest$time, "POSIXct") expect_is(datasetToTest$BTC, "numeric") expect_is(datasetToTest$ETH, "numeric") })...
/CryptoShiny/tests/testthat/test-resTspToHour.R
permissive
souhailelaissaoui/Crypto-Trading-Tools
R
false
false
321
r
test_that("Type of elements dataset:", { datasetToTest <- resTspToHour(analyse_crps_news(dl_data_from(as.numeric(as.POSIXct("2018-12-11 1:00:00 EST"))), c("BTC", "ETH")) , c("BTC", "ETH")) expect_is(datasetToTest$time, "POSIXct") expect_is(datasetToTest$BTC, "numeric") expect_is(datasetToTest$ETH, "numeric") })...
# 4. faza: Analiza podatkov require(ggdendro) #Napoved prihodkov od prodaje za panogo z največjimi prihodki za naslenjih 6 let najboljsa <- melt(prva, Panoge.zap., id.vars =c("Panoga", "Leto"), measure.vars = c("Prihodki_od_prodaje_v_tisoc_EUR", "Bruto_poslovni_presezek_v_tisoc_EUR", "Stevilo_zapos...
/analiza/analiza.r
permissive
melamalej/APPR-2018-19
R
false
false
1,976
r
# 4. faza: Analiza podatkov require(ggdendro) #Napoved prihodkov od prodaje za panogo z največjimi prihodki za naslenjih 6 let najboljsa <- melt(prva, Panoge.zap., id.vars =c("Panoga", "Leto"), measure.vars = c("Prihodki_od_prodaje_v_tisoc_EUR", "Bruto_poslovni_presezek_v_tisoc_EUR", "Stevilo_zapos...
library(tidyverse) library(data.table) library(randomForest) library(mice) library(mlr) source("na_replace.R") # Custom Function --------------------------------------------------------- dummify <- function(data){ # Create Features features <- colnames(data) for(f in features) { if ((class(data[[f]])=="fact...
/auto_predict.R
no_license
aljrico/kaggle_hcdr
R
false
false
2,053
r
library(tidyverse) library(data.table) library(randomForest) library(mice) library(mlr) source("na_replace.R") # Custom Function --------------------------------------------------------- dummify <- function(data){ # Create Features features <- colnames(data) for(f in features) { if ((class(data[[f]])=="fact...
testlist <- list(a = 0L, b = 0L, x = c(-121423L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67...
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610131256-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
670
r
testlist <- list(a = 0L, b = 0L, x = c(-121423L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67372037L, -67...
#Library for RNAseq analysis #05-15 #Christian Meyer #Contact christian.t.meyer@vanderbilt.edu #Functions and libraries to load initially #location of Data: dataLoc = "~/Documents/Lab/WGCNA_analysis/GSE58135_RAW/FPKM" #location of MRSR report MRSRreport = "" #location of ##Initial library loading and workspace config...
/Lib_RNAseq.R
no_license
meyerct1/LabCode
R
false
false
3,021
r
#Library for RNAseq analysis #05-15 #Christian Meyer #Contact christian.t.meyer@vanderbilt.edu #Functions and libraries to load initially #location of Data: dataLoc = "~/Documents/Lab/WGCNA_analysis/GSE58135_RAW/FPKM" #location of MRSR report MRSRreport = "" #location of ##Initial library loading and workspace config...
library(gamlss) ### Name: gamlss ### Title: Generalized Additive Models for Location Scale and Shape ### Aliases: gamlss is.gamlss gamlssNews ### Keywords: regression ### ** Examples data(abdom) mod<-gamlss(y~pb(x),sigma.fo=~pb(x),family=BCT, data=abdom, method=mixed(1,20)) plot(mod) rm(mod)
/data/genthat_extracted_code/gamlss/examples/gamlss.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
301
r
library(gamlss) ### Name: gamlss ### Title: Generalized Additive Models for Location Scale and Shape ### Aliases: gamlss is.gamlss gamlssNews ### Keywords: regression ### ** Examples data(abdom) mod<-gamlss(y~pb(x),sigma.fo=~pb(x),family=BCT, data=abdom, method=mixed(1,20)) plot(mod) rm(mod)
library(raster) library(rgdal) landsat<- stack("Landsat7.tif") landsat plotRGB(landsat, r = 1, g = 2, b = 3, alpha=80,stretch="hist") library(shiny) ui <- fluidPage( sliderInput(inputId = "num", label = "Transparency", value = 100, min = 1, max = 255), sliderInput(i...
/Assignment Spatial R/Shiny.R
no_license
QiZhiqi/262
R
false
false
1,005
r
library(raster) library(rgdal) landsat<- stack("Landsat7.tif") landsat plotRGB(landsat, r = 1, g = 2, b = 3, alpha=80,stretch="hist") library(shiny) ui <- fluidPage( sliderInput(inputId = "num", label = "Transparency", value = 100, min = 1, max = 255), sliderInput(i...
#!/usr/bin/env Rscript # Verilog sin ROM n <- 32 m <- 8-1 cat(paste("reg [", m,":0" ,"] sin [0:",n-1,"];\n", sep="")) cat("initial begin\n") a <- floor((1+sin((0:n)*2*pi/n))*(2^m-1)) if (T) { # Hex for (i in 1:(length(a)-1)){ cat(paste(" sin[",i-1 ,"] = ", 2, "'h", format(as.hexmode(a[i+1]),upper.case=T, width=2...
/sin.r
no_license
humdeum/spinv
R
false
false
903
r
#!/usr/bin/env Rscript # Verilog sin ROM n <- 32 m <- 8-1 cat(paste("reg [", m,":0" ,"] sin [0:",n-1,"];\n", sep="")) cat("initial begin\n") a <- floor((1+sin((0:n)*2*pi/n))*(2^m-1)) if (T) { # Hex for (i in 1:(length(a)-1)){ cat(paste(" sin[",i-1 ,"] = ", 2, "'h", format(as.hexmode(a[i+1]),upper.case=T, width=2...
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{package} \name{griffun} \alias{griffun} \alias{griffun-package} \title{My library of functions} \description{ My library of functions }
/man/griffun.Rd
no_license
SathishN/griffun
R
false
false
199
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{package} \name{griffun} \alias{griffun} \alias{griffun-package} \title{My library of functions} \description{ My library of functions }
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/get_rcards.R \name{get_rcards} \alias{get_rcards} \title{get_rcards()} \usage{ get_rcards(file, format_type = "format1") } \arguments{ \item{file}{The name of the file which the data are to be read from (including the .pdf extension)....
/man/get_rcards.Rd
no_license
thelayc/laycReportCards
R
false
false
663
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/get_rcards.R \name{get_rcards} \alias{get_rcards} \title{get_rcards()} \usage{ get_rcards(file, format_type = "format1") } \arguments{ \item{file}{The name of the file which the data are to be read from (including the .pdf extension)....
library(here) library(prophet) library(tidyverse) # load(here("data", "tidy_data", "BBDD_Germany_20180619.RData")) # BBDD_Germany <- BBDD_Germany %>% as.tibble() # # tb_data <- BBDD_Germany %>% # transmute(ds = fecha, # y = Reservas_Ocio_Berlin) load(here("data", "tidy_data", "all_V3.RData")) rm(xt...
/code/raw_code/my_example.R
no_license
miguel-conde/prophet_primer
R
false
false
10,822
r
library(here) library(prophet) library(tidyverse) # load(here("data", "tidy_data", "BBDD_Germany_20180619.RData")) # BBDD_Germany <- BBDD_Germany %>% as.tibble() # # tb_data <- BBDD_Germany %>% # transmute(ds = fecha, # y = Reservas_Ocio_Berlin) load(here("data", "tidy_data", "all_V3.RData")) rm(xt...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/dplyr.r \docType{package} \name{dplyr} \alias{dplyr} \alias{dplyr-package} \title{dplyr: a grammar of data manipulation} \description{ dplyr provides a flexible grammar of data manipulation. It's the next iteration of plyr, focussed o...
/man/dplyr.Rd
no_license
PriyankaSGA/dplyr
R
false
false
865
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/dplyr.r \docType{package} \name{dplyr} \alias{dplyr} \alias{dplyr-package} \title{dplyr: a grammar of data manipulation} \description{ dplyr provides a flexible grammar of data manipulation. It's the next iteration of plyr, focussed o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dplyr.R \name{mutate.PKNCAresults} \alias{mutate.PKNCAresults} \alias{mutate.PKNCAconc} \alias{mutate.PKNCAdose} \title{dplyr mutate-based modification for PKNCA} \usage{ \method{mutate}{PKNCAresults}(.data, ...) \method{mutate}{PK...
/man/mutate.PKNCAresults.Rd
no_license
cran/PKNCA
R
false
true
1,267
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dplyr.R \name{mutate.PKNCAresults} \alias{mutate.PKNCAresults} \alias{mutate.PKNCAconc} \alias{mutate.PKNCAdose} \title{dplyr mutate-based modification for PKNCA} \usage{ \method{mutate}{PKNCAresults}(.data, ...) \method{mutate}{PK...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/heavy_model.R \name{HEAVYmodel} \alias{HEAVYmodel} \title{HEAVY Model estimation} \usage{ HEAVYmodel( data, p = matrix(c(0, 0, 1, 1), ncol = 2), q = matrix(c(1, 0, 0, 1), ncol = 2), startingValues = NULL, LB = NULL, UB = NULL, b...
/highfrequency/man/HEAVYmodel.Rd
no_license
akhikolla/InformationHouse
R
false
true
6,692
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/heavy_model.R \name{HEAVYmodel} \alias{HEAVYmodel} \title{HEAVY Model estimation} \usage{ HEAVYmodel( data, p = matrix(c(0, 0, 1, 1), ncol = 2), q = matrix(c(1, 0, 0, 1), ncol = 2), startingValues = NULL, LB = NULL, UB = NULL, b...
rm(list=ls()) training<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/RFE-RF/CAD Dataset Train70p.csv") testing<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/RFE-RF/CAD Dataset Test30p.csv") sapdata<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/RFE-RF/Sap_SVM_Selected.csv") seedarray <- c(131,124,451,689,320...
/RFE-RF/SVM.R
permissive
UtshaDas/CAD-Classification
R
false
false
3,027
r
rm(list=ls()) training<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/RFE-RF/CAD Dataset Train70p.csv") testing<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/RFE-RF/CAD Dataset Test30p.csv") sapdata<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/RFE-RF/Sap_SVM_Selected.csv") seedarray <- c(131,124,451,689,320...
context("dplyr") sc <- testthat_spark_connection() iris_tbl <- testthat_tbl("iris") test_requires("dplyr") df1 <- tibble(a = 1:3, b = letters[1:3]) df2 <- tibble(b = letters[1:3], c = letters[24:26]) df1_tbl <- testthat_tbl("df1") df2_tbl <- testthat_tbl("df2") test_that("the implementation of 'mutate' functions a...
/tests/testthat/test-dplyr.R
permissive
COUBANAO/sparklyr
R
false
false
7,649
r
context("dplyr") sc <- testthat_spark_connection() iris_tbl <- testthat_tbl("iris") test_requires("dplyr") df1 <- tibble(a = 1:3, b = letters[1:3]) df2 <- tibble(b = letters[1:3], c = letters[24:26]) df1_tbl <- testthat_tbl("df1") df2_tbl <- testthat_tbl("df2") test_that("the implementation of 'mutate' functions a...
### Coauthors network; i.e., authors as vertices and two vertices ### joined by an edge if the two authors have written a joint paper. library("ISIPTA") demo("regular-contributors", package = "ISIPTA", verbose = FALSE, echo = FALSE, ask = FALSE) data("papers_authors", package = "ISIPTA") coauthors_...
/demo/coauthors-network.R
no_license
mjaeugster/ISIPTA
R
false
false
4,807
r
### Coauthors network; i.e., authors as vertices and two vertices ### joined by an edge if the two authors have written a joint paper. library("ISIPTA") demo("regular-contributors", package = "ISIPTA", verbose = FALSE, echo = FALSE, ask = FALSE) data("papers_authors", package = "ISIPTA") coauthors_...
\name{print_relimp} \alias{print_relimp} %- Also NEED an '\alias' for EACH other topic documented here. \title{Print tables of estimates} \description{ Presents various estimates for measures of educational differentials, the relative importance of primary and secondary effects and corresponding standard errors a...
/man/print_relimp.Rd
no_license
cran/DECIDE
R
false
false
2,036
rd
\name{print_relimp} \alias{print_relimp} %- Also NEED an '\alias' for EACH other topic documented here. \title{Print tables of estimates} \description{ Presents various estimates for measures of educational differentials, the relative importance of primary and secondary effects and corresponding standard errors a...
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----------------------------------------------------------------------------- library("cdata") data <- wrapr::build_frame( "record_id" , "row" , "col1", "col2", "col3" |...
/inst/doc/general_transform.R
no_license
cran/cdata
R
false
false
2,847
r
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----------------------------------------------------------------------------- library("cdata") data <- wrapr::build_frame( "record_id" , "row" , "col1", "col2", "col3" |...
pacman::p_load(tidyverse,ggrepel, lubridate, ggridges, ggalt, Rcolorbrewer) the_dark_knight <- theme(panel.background = element_rect(fill = "#404040"), # This is my theme I will use plot.background = element_rect(fill = "#404040"), panel.grid.major.y = element_bla...
/Full_Projects/Tidy_Tues_complete/Broadway Musicals/Musicals.r
no_license
jashonnew/DSci-Actua-Rjunkie
R
false
false
3,511
r
pacman::p_load(tidyverse,ggrepel, lubridate, ggridges, ggalt, Rcolorbrewer) the_dark_knight <- theme(panel.background = element_rect(fill = "#404040"), # This is my theme I will use plot.background = element_rect(fill = "#404040"), panel.grid.major.y = element_bla...
svc <- paws::networkmanager() test_that("describe_global_networks", { expect_error(svc$describe_global_networks(), NA) }) test_that("describe_global_networks", { expect_error(svc$describe_global_networks(MaxResults = 20), NA) })
/paws/tests/testthat/test_networkmanager.R
permissive
TWarczak/paws
R
false
false
235
r
svc <- paws::networkmanager() test_that("describe_global_networks", { expect_error(svc$describe_global_networks(), NA) }) test_that("describe_global_networks", { expect_error(svc$describe_global_networks(MaxResults = 20), NA) })
suppressMessages(library(dplyr)) suppressMessages(library(glmnet)) suppressMessages((library(reshape2))) suppressMessages(library(methods)) suppressMessages(library(doMC)) suppressMessages(library(doRNG)) suppressMessages(library(tidyr)) suppressMessages(library(tibble)) "%&%" <- function(a,b) paste(a,b, sep = "") #...
/01_pull_snps_driving.R
no_license
annie-novak9/Coloc
R
false
false
4,732
r
suppressMessages(library(dplyr)) suppressMessages(library(glmnet)) suppressMessages((library(reshape2))) suppressMessages(library(methods)) suppressMessages(library(doMC)) suppressMessages(library(doRNG)) suppressMessages(library(tidyr)) suppressMessages(library(tibble)) "%&%" <- function(a,b) paste(a,b, sep = "") #...
mardia<-function(x){ x<-data.frame(x) n<-dim(x)[1] p<-dim(x)[2] bar<-mean(x) S<-matrix(var(x)*(n-1)/n,2,2) b1.ma<-matrix(NA,n,n) b2.ma<-rep(NA,n) for(i in 1:n){ for(j in 1:n){ b1.ma[i,j]<-(sum((x[i,]-bar)*(solve(S)%*%t(x[j,]-bar))))^3 } b2.ma[i]<-(sum((x[i,]-bar)*(solve(S)%*%t(x[i,]-bar))))^2 } b1<-sum(b1...
/Z Old Tex Files/program R/Apéndice/Mardia.r
no_license
cualquiercosa327/2ed-team
R
false
false
783
r
mardia<-function(x){ x<-data.frame(x) n<-dim(x)[1] p<-dim(x)[2] bar<-mean(x) S<-matrix(var(x)*(n-1)/n,2,2) b1.ma<-matrix(NA,n,n) b2.ma<-rep(NA,n) for(i in 1:n){ for(j in 1:n){ b1.ma[i,j]<-(sum((x[i,]-bar)*(solve(S)%*%t(x[j,]-bar))))^3 } b2.ma[i]<-(sum((x[i,]-bar)*(solve(S)%*%t(x[i,]-bar))))^2 } b1<-sum(b1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network_utils.R \name{connect_gap_modules} \alias{connect_gap_modules} \title{Loop through each of the modules and connect the adjacent ones which is only allow.gap away from each other} \usage{ connect_gap_modules(final_summary, final_geneli...
/man/connect_gap_modules.Rd
no_license
naikai/sake
R
false
true
764
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network_utils.R \name{connect_gap_modules} \alias{connect_gap_modules} \title{Loop through each of the modules and connect the adjacent ones which is only allow.gap away from each other} \usage{ connect_gap_modules(final_summary, final_geneli...
library(Thermimage) ### Name: qrad ### Title: Estimates the area specific heat transfer by radiation (W/m2) ### Aliases: qrad ### ** Examples ## The function is currently defined as function (Ts = 30, Ta = 25, Tg = NULL, RH = 0.5, E = 0.96, rho = 0.1, cloud = 0, SE = 0) { qrad <- qabs(Ta = Ta, Tg = Tg, R...
/data/genthat_extracted_code/Thermimage/examples/qrad.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,004
r
library(Thermimage) ### Name: qrad ### Title: Estimates the area specific heat transfer by radiation (W/m2) ### Aliases: qrad ### ** Examples ## The function is currently defined as function (Ts = 30, Ta = 25, Tg = NULL, RH = 0.5, E = 0.96, rho = 0.1, cloud = 0, SE = 0) { qrad <- qabs(Ta = Ta, Tg = Tg, R...
#------------------------------------------------# # Home Assignment Geoffrey 3 #------------------------------------------------# rm(list=ls()) graphics.off() setwd("~/Documents/Master/Statistics /Exams") library(ggplot2) #write function for simulating data with a given n_group and output only the p-value ao...
/Geoffrey_Assignment_3.R
no_license
boeltzig/PSYP13_Assignments_Marius
R
false
false
2,795
r
#------------------------------------------------# # Home Assignment Geoffrey 3 #------------------------------------------------# rm(list=ls()) graphics.off() setwd("~/Documents/Master/Statistics /Exams") library(ggplot2) #write function for simulating data with a given n_group and output only the p-value ao...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hmc_glmm_logistic.R \name{g_glmm_bin_posterior} \alias{g_glmm_bin_posterior} \title{Gradient of a Logistic Mixed Effects model log posterior} \usage{ g_glmm_bin_posterior( theta, y, X, Z, m, q = 1, A = 10000, nulambda = 1, A...
/man/g_glmm_bin_posterior.Rd
no_license
be-green/hmclearn
R
false
true
2,761
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hmc_glmm_logistic.R \name{g_glmm_bin_posterior} \alias{g_glmm_bin_posterior} \title{Gradient of a Logistic Mixed Effects model log posterior} \usage{ g_glmm_bin_posterior( theta, y, X, Z, m, q = 1, A = 10000, nulambda = 1, A...
library(synapseClient) synapseLogin() # This code is implemented for curating data which has a features with gene symbol and non replicated samples with averaged replicates # uploaded in Synapse with RObject # Dataset <- add Layer # project id <- add Dataset, etc #####################################################...
/curation_code/curation_GSK_exprs.R
no_license
insockjang/DrugResponse
R
false
false
3,721
r
library(synapseClient) synapseLogin() # This code is implemented for curating data which has a features with gene symbol and non replicated samples with averaged replicates # uploaded in Synapse with RObject # Dataset <- add Layer # project id <- add Dataset, etc #####################################################...
library(shiny) library(dplyr) library(plotly) library(shinythemes) ui <- navbarPage( # returns a theme theme = shinytheme("slate"), "Law, Happiness, & Gun Violence", # Introduction tab tabPanel( "Introduction", includeCSS("www/style.css"), div( class = "center", h1("Why It Matters"),...
/ui.R
no_license
tleung22/final-project
R
false
false
8,825
r
library(shiny) library(dplyr) library(plotly) library(shinythemes) ui <- navbarPage( # returns a theme theme = shinytheme("slate"), "Law, Happiness, & Gun Violence", # Introduction tab tabPanel( "Introduction", includeCSS("www/style.css"), div( class = "center", h1("Why It Matters"),...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/submitter.R \name{wait_for_qsub} \alias{wait_for_qsub} \title{Wait for qsub job} \usage{ wait_for_qsub(remote, job_id, quiet = TRUE) } \arguments{ \item{remote}{(\code{\link{remote_server}}) The remote server information.} \item{job_id}{(\co...
/man/wait_for_qsub.Rd
no_license
zachary-foster/qsubmitter
R
false
true
500
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/submitter.R \name{wait_for_qsub} \alias{wait_for_qsub} \title{Wait for qsub job} \usage{ wait_for_qsub(remote, job_id, quiet = TRUE) } \arguments{ \item{remote}{(\code{\link{remote_server}}) The remote server information.} \item{job_id}{(\co...
# initialise h2o cluster localH2O <- h2o.init(ip = "localhost", port = 54321, startH2O = TRUE, nthreads = -1) # get max / min for scaling maxs <- apply(summary.dt %>% select(-device_id, -epoch_id, -steps_bin, -steps, -n), 2, max) mins <- apply(summary.dt %>% select(-device_id, -epoch_id, -steps_bin, -steps, -n), 2, ...
/src/03 - model.binned.h2o.R
no_license
irishlouis/actigraphy_device_id
R
false
false
8,898
r
# initialise h2o cluster localH2O <- h2o.init(ip = "localhost", port = 54321, startH2O = TRUE, nthreads = -1) # get max / min for scaling maxs <- apply(summary.dt %>% select(-device_id, -epoch_id, -steps_bin, -steps, -n), 2, max) mins <- apply(summary.dt %>% select(-device_id, -epoch_id, -steps_bin, -steps, -n), 2, ...
#####-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----##### #####-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----##### ##### Allele/Genotype Analysis at different Focal Points ##### #####-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#---...
/Crohns Disease/Allele Kernel Analysis/Focal Point Analysis/Crohn_focal_point_analysis.R
no_license
petertea96/Genetic-Association-Methodology-Research
R
false
false
5,356
r
#####-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----##### #####-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----##### ##### Allele/Genotype Analysis at different Focal Points ##### #####-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#-----#---...
/MP3_project.R
no_license
Dlaureano/mini-project-3
R
false
false
11,713
r
# Of the four types of sources indicated by the type (point, nonpoint, # onroad, nonroad) variable, which of these four sources have # seen decreases in emissions from 1999–2008 for Baltimore # City? Which have seen increases in emissions from 1999–2008? # Use the ggplot2 plotting system to make a plot answer this ...
/plot3.R
no_license
mbirgen/Ex_Data_An_Project2
R
false
false
835
r
# Of the four types of sources indicated by the type (point, nonpoint, # onroad, nonroad) variable, which of these four sources have # seen decreases in emissions from 1999–2008 for Baltimore # City? Which have seen increases in emissions from 1999–2008? # Use the ggplot2 plotting system to make a plot answer this ...
library(dplyr) install.packages("ggplot2") str(ggplot2::mpg) head(ggplot2::mpg) #문제1 mpg<-as.data.frame(ggplot2::mpg) #1-1 mpg %>% select() mpg %>% filter() nrow(mpg) ncol(mpg) #1-2 mpg %>% head(10) #1-3 mpg %>% tail(10) #1-4 mpg %>% View() #1-5 summary(mpg) #1-6 str(mpg) #2-1 mpg<-mpg %>% rename("city"="cty","high...
/dplyr_lab1.R
no_license
hsyun89/Rstudy
R
false
false
1,750
r
library(dplyr) install.packages("ggplot2") str(ggplot2::mpg) head(ggplot2::mpg) #문제1 mpg<-as.data.frame(ggplot2::mpg) #1-1 mpg %>% select() mpg %>% filter() nrow(mpg) ncol(mpg) #1-2 mpg %>% head(10) #1-3 mpg %>% tail(10) #1-4 mpg %>% View() #1-5 summary(mpg) #1-6 str(mpg) #2-1 mpg<-mpg %>% rename("city"="cty","high...
library(ProTrackR) ### Name: name ### Title: Obtain or replace the name of a PTModule or PTSample ### Aliases: name name,PTSample-method name<- ### name<-,PTSample,character-method name,PTModule-method ### name<-,PTModule,character-method ### ** Examples data("mod.intro") ## get the name of mod.intro: name(mod...
/data/genthat_extracted_code/ProTrackR/examples/name.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
616
r
library(ProTrackR) ### Name: name ### Title: Obtain or replace the name of a PTModule or PTSample ### Aliases: name name,PTSample-method name<- ### name<-,PTSample,character-method name,PTModule-method ### name<-,PTModule,character-method ### ** Examples data("mod.intro") ## get the name of mod.intro: name(mod...
testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 3.85183323117031e+59, 7.59955788945772e-256, 5.5539...
/myTAI/inst/testfiles/cpp_omitMatrix/AFL_cpp_omitMatrix/cpp_omitMatrix_valgrind_files/1615845589-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,091
r
testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 3.85183323117031e+59, 7.59955788945772e-256, 5.5539...
## Part III: Fish Community Composition between Reefs #Here again, we will remove all the object to clean the memory knitr::opts_chunk$set(eval = FALSE) remove(list = ls()) cran_packages <- c("knitr", "phyloseqGraphTest", "phyloseq", "shiny", "microbiome", "tidyverse", "miniUI", "caret", "pls", ...
/03_host_community.R
no_license
mccheutin/Seychelles
R
false
false
6,427
r
## Part III: Fish Community Composition between Reefs #Here again, we will remove all the object to clean the memory knitr::opts_chunk$set(eval = FALSE) remove(list = ls()) cran_packages <- c("knitr", "phyloseqGraphTest", "phyloseq", "shiny", "microbiome", "tidyverse", "miniUI", "caret", "pls", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bulma-card.R \name{bulmaCard} \alias{bulmaCard} \alias{bulmaCardHeader} \alias{bulmaCardHeaderTitle} \alias{bulmaCardContent} \alias{bulmaCardFooter} \alias{bulmaCardFooterItem} \title{Add card} \usage{ bulmaCard(...) bulmaCardHeader(...) b...
/man/card.Rd
no_license
PaulC91/shinybulma
R
false
true
1,145
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bulma-card.R \name{bulmaCard} \alias{bulmaCard} \alias{bulmaCardHeader} \alias{bulmaCardHeaderTitle} \alias{bulmaCardContent} \alias{bulmaCardFooter} \alias{bulmaCardFooterItem} \title{Add card} \usage{ bulmaCard(...) bulmaCardHeader(...) b...
## ---------------------------------------------------------- ## makeCacheMatrix - ## ## defines a function that takes a matrix as a parameter, ## and defines access methods to the matrix and a ## value of the matrix inverse, to be calculated and stored makeCacheMatrix <- function(x = matrix()) { m <-...
/cachematrix.R
no_license
lastlift/ProgrammingAssignment2
R
false
false
1,413
r
## ---------------------------------------------------------- ## makeCacheMatrix - ## ## defines a function that takes a matrix as a parameter, ## and defines access methods to the matrix and a ## value of the matrix inverse, to be calculated and stored makeCacheMatrix <- function(x = matrix()) { m <-...
############################################################################## ## STAR for Testing on DAGs ################################################################## ############ source("generic_STAR.R") #### Find_Candidate_Fun find.DAG.strong <- function(covar, mask, prop = NULL, ...
/R/STAR_DAG.R
no_license
lihualei71/STAR
R
false
false
4,699
r
############################################################################## ## STAR for Testing on DAGs ################################################################## ############ source("generic_STAR.R") #### Find_Candidate_Fun find.DAG.strong <- function(covar, mask, prop = NULL, ...
min.rv <- function(..., na.rm=FALSE) { if (anyisrv(...)) { simapply(cbind.rv(...), base::min, na.rm=na.rm) } else { base::min(..., na.rm=na.rm) } } max.rv <- function(..., na.rm=FALSE) { if (anyisrv(...)) { simapply(cbind.rv(...), base::max, na.rm=na.rm) } else { base::max(..., na.rm=na.rm)...
/rv/R/min_max_rv.R
no_license
ingted/R-Examples
R
false
false
1,054
r
min.rv <- function(..., na.rm=FALSE) { if (anyisrv(...)) { simapply(cbind.rv(...), base::min, na.rm=na.rm) } else { base::min(..., na.rm=na.rm) } } max.rv <- function(..., na.rm=FALSE) { if (anyisrv(...)) { simapply(cbind.rv(...), base::max, na.rm=na.rm) } else { base::max(..., na.rm=na.rm)...
CV.calc<-function(x){ cv.out=(sd(x)/mean(x))*100 return(cv.out) } filter.fun<-function(data,low_pct,high_pct,cv,exclude){ norm_data=apply(data,1,function(x) sqrt(sum(x^2)) ) data_sub=data[(norm_data < quantile(norm_data , high_pct) & norm_data > quantile(norm_data,low_pct) ),] if(cv!=0) { ...
/FUNS_new/data_filter.R
no_license
dhard/semi-CAM
R
false
false
976
r
CV.calc<-function(x){ cv.out=(sd(x)/mean(x))*100 return(cv.out) } filter.fun<-function(data,low_pct,high_pct,cv,exclude){ norm_data=apply(data,1,function(x) sqrt(sum(x^2)) ) data_sub=data[(norm_data < quantile(norm_data , high_pct) & norm_data > quantile(norm_data,low_pct) ),] if(cv!=0) { ...
\name{tm.divisiveWords} \alias{tm.divisiveWords} \title{Divisive Words} \usage{ tm.divisiveWords(tm,species) } \description{ Reuturns words that seperate a species from all other species } \examples{ tm.divisiveWords(tm.ecology,3,"Cryptococcus Neoformans") }
/man/tm.divisiveWords.Rd
no_license
molikd/MicrobeAssociator
R
false
false
261
rd
\name{tm.divisiveWords} \alias{tm.divisiveWords} \title{Divisive Words} \usage{ tm.divisiveWords(tm,species) } \description{ Reuturns words that seperate a species from all other species } \examples{ tm.divisiveWords(tm.ecology,3,"Cryptococcus Neoformans") }
#!/usr/bin/Rscript ## Script to run oncodriverClust ## Separate because I need to run all the samples together setwd("/mnt/lustre/users/k1469280/mourikisa/data/OAC") cat("Sourcing relevant functions...") source("functions.R") OUT = commandArgs(trailingOnly = TRUE)[1] ## Mutations # mainDirs = c("~/data/OAC/71_OAC...
/raw_scripts/runOncodriveClust.R
no_license
ciccalab/sysSVM
R
false
false
2,096
r
#!/usr/bin/Rscript ## Script to run oncodriverClust ## Separate because I need to run all the samples together setwd("/mnt/lustre/users/k1469280/mourikisa/data/OAC") cat("Sourcing relevant functions...") source("functions.R") OUT = commandArgs(trailingOnly = TRUE)[1] ## Mutations # mainDirs = c("~/data/OAC/71_OAC...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotJPEG.R \name{plotJPEG} \alias{plotJPEG} \title{Plot JPEG file using base graphics} \usage{ plotJPEG(input_jpeg, add = FALSE) } \arguments{ \item{input_jpeg}{string. Input filename of JPG picture.} } \description{ Internal function to plot...
/man/plotJPEG.Rd
no_license
yangxhcaf/GWRFC
R
false
true
340
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotJPEG.R \name{plotJPEG} \alias{plotJPEG} \title{Plot JPEG file using base graphics} \usage{ plotJPEG(input_jpeg, add = FALSE) } \arguments{ \item{input_jpeg}{string. Input filename of JPG picture.} } \description{ Internal function to plot...
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.2494...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615827406-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.2494...
# Basic R commands and usage # 30 January 2018 # LAP library(ggplot2) #Using the assignment operator x <- 5 # preferred print(x) y = 4 # legal but not used except in function y = y+1.1 y <- y+1 plantHeight <- 5.5 # Class Feb 1 2018 # the combine function z<-c(3,7,7,10) # simple atomic vector print(z) typeof(z) # get...
/FirstProject/BasicCoding.R
no_license
lpett/Bio381_2018
R
false
false
7,907
r
# Basic R commands and usage # 30 January 2018 # LAP library(ggplot2) #Using the assignment operator x <- 5 # preferred print(x) y = 4 # legal but not used except in function y = y+1.1 y <- y+1 plantHeight <- 5.5 # Class Feb 1 2018 # the combine function z<-c(3,7,7,10) # simple atomic vector print(z) typeof(z) # get...
#server options(shiny.maxRequestSize=10000*1024^2) server <- function(input, output, session) { fileObs <- callModule(file_observed_server, "obs") fileSim <- callModule(file_simulated_server, "sim") observeEvent(fileObs(),{ updateSelectizeInput(session, inputId = "yvar", choices = names(fileObs())) ...
/server.R
no_license
jameswcraig/shiny-vpc
R
false
false
34,931
r
#server options(shiny.maxRequestSize=10000*1024^2) server <- function(input, output, session) { fileObs <- callModule(file_observed_server, "obs") fileSim <- callModule(file_simulated_server, "sim") observeEvent(fileObs(),{ updateSelectizeInput(session, inputId = "yvar", choices = names(fileObs())) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/storage_functions.R \name{objects.get} \alias{objects.get} \title{Retrieves objects or their associated metadata.} \usage{ objects.get(bucket, object, projection = NULL) } \arguments{ \item{bucket}{Name of the bucket in which the object resid...
/googlestoragev1beta1.auto/man/objects.get.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,173
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/storage_functions.R \name{objects.get} \alias{objects.get} \title{Retrieves objects or their associated metadata.} \usage{ objects.get(bucket, object, projection = NULL) } \arguments{ \item{bucket}{Name of the bucket in which the object resid...
library(MLmetrics) library(StatMeasures) library(dplyr) library(tidyr) library(corrgram) library(MASS) library(Hmisc) library(ggplot2) library(readxl) library(glmnet) trainRaw <- read.csv(file.choose(), header=TRUE, sep=",") #load the data into the HousingPrices dataframe HousingPricesPrediction <- read.csv(file.choo...
/HousingPrices_MMA867.R
no_license
daniyalfarooqi/DF-MMA867-Repo
R
false
false
10,007
r
library(MLmetrics) library(StatMeasures) library(dplyr) library(tidyr) library(corrgram) library(MASS) library(Hmisc) library(ggplot2) library(readxl) library(glmnet) trainRaw <- read.csv(file.choose(), header=TRUE, sep=",") #load the data into the HousingPrices dataframe HousingPricesPrediction <- read.csv(file.choo...
build.lm.model.inter <- lm(price ~ carat + color + clarity + cut + channel + store + store:clarity, data = train.tmsalary)
/build_lm_model_inter_script.R
no_license
DarrelDent/P412-Assignment-2
R
false
false
182
r
build.lm.model.inter <- lm(price ~ carat + color + clarity + cut + channel + store + store:clarity, data = train.tmsalary)
#' PaleyIPrimePower #' #' @param n integer #' @return #' Hadamard matrix #' @export #' @details #' let q = n-1 , and q = 3 (mod 4), q is the prime power, then obtained the Hadamard #' matrix of order q+1.if input satisfies these condition it retuns Hadamard Matrix; otherwise #' returns NULL. #' #' @referen...
/R/PaleyIPrimePower.R
no_license
cran/HadamardR
R
false
false
876
r
#' PaleyIPrimePower #' #' @param n integer #' @return #' Hadamard matrix #' @export #' @details #' let q = n-1 , and q = 3 (mod 4), q is the prime power, then obtained the Hadamard #' matrix of order q+1.if input satisfies these condition it retuns Hadamard Matrix; otherwise #' returns NULL. #' #' @referen...
## install required packages and get the data library(dplyr) zipUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" zipFile <- "UCI HAR Dataset.zip" if (!file.exists(zipFile)) { download.file(zipUrl, zipFile, mode = "wb") } database <- "UCI HAR Dataset" if (!file....
/run_analysis.R
no_license
Abhishek500/Getting-and-Cleaning-Data-Course-Project
R
false
false
2,846
r
## install required packages and get the data library(dplyr) zipUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" zipFile <- "UCI HAR Dataset.zip" if (!file.exists(zipFile)) { download.file(zipUrl, zipFile, mode = "wb") } database <- "UCI HAR Dataset" if (!file....
some_vector <- c("a", "b", "c") index <- 1 while (index <= length(some_vector)) { cat("Element ", index, " contains ", some_vector[index], ".\n", sep = "") index <- index + 1 }
/src/while_loop.r
permissive
fvafrCU/programmieren_in_r
R
false
false
185
r
some_vector <- c("a", "b", "c") index <- 1 while (index <= length(some_vector)) { cat("Element ", index, " contains ", some_vector[index], ".\n", sep = "") index <- index + 1 }
InitDataObjects("conc", "stat", FALSE) mSet<-Read.TextData(mSet, "Replacing_with_your_file_path", "rowu", "disc"); mSet<-SanityCheckData(mSet) mSet<-ReplaceMin(mSet); mSet<-Normalization(mSet, "NULL", "LogNorm", "ParetoNorm", "1", ratio=FALSE, ratioNum=20) mSet<-PlotNormSummary(mSet, "norm_0_", "png", 72, width=NA) mSe...
/output/3Genotypes_sum_lipid_class_sPLSD_Loadings.R
no_license
rr-lab/Zea-Lip
R
false
false
2,003
r
InitDataObjects("conc", "stat", FALSE) mSet<-Read.TextData(mSet, "Replacing_with_your_file_path", "rowu", "disc"); mSet<-SanityCheckData(mSet) mSet<-ReplaceMin(mSet); mSet<-Normalization(mSet, "NULL", "LogNorm", "ParetoNorm", "1", ratio=FALSE, ratioNum=20) mSet<-PlotNormSummary(mSet, "norm_0_", "png", 72, width=NA) mSe...
install.packages("tidyverse") install.packages("leaflet") install.packages("data.table") library("data.table") library("ggplot2") library("dplyr") library("tidyr") library("lubridate") library("tibble") library("leaflet") library("scales") crime_raw <- read.csv("RMS_Crime_Incidents.csv") weather_raw <- read...
/DPDCrime/Crime_Data.R
no_license
Yellowmanic/DPDCRIME
R
false
false
9,829
r
install.packages("tidyverse") install.packages("leaflet") install.packages("data.table") library("data.table") library("ggplot2") library("dplyr") library("tidyr") library("lubridate") library("tibble") library("leaflet") library("scales") crime_raw <- read.csv("RMS_Crime_Incidents.csv") weather_raw <- read...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_LN.R \docType{class} \name{LNoutput-class} \alias{LNoutput-class} \title{make S4 object} \description{ make S4 object }
/man/LNoutput-class.Rd
no_license
jtmancilla/LexisNexisTools
R
false
true
203
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_LN.R \docType{class} \name{LNoutput-class} \alias{LNoutput-class} \title{make S4 object} \description{ make S4 object }
# packages library(ggplot2) # a few pretty plots edulvl_ggpot <- ggplot(data = x, aes(edulvl, fill = 'indianred')) + geom_bar() + theme_minimal() + labs(y = '# of people', x = 'Education level') + scale_x_discrete(limits = 1:6, labels = c("no degree","GED/high school", ...
/ass1/ggplot.R
no_license
lafet1/microeconometrics
R
false
false
2,138
r
# packages library(ggplot2) # a few pretty plots edulvl_ggpot <- ggplot(data = x, aes(edulvl, fill = 'indianred')) + geom_bar() + theme_minimal() + labs(y = '# of people', x = 'Education level') + scale_x_discrete(limits = 1:6, labels = c("no degree","GED/high school", ...
#' Sort a BibEntry Object #' #' Sorts a \code{BibEntry} object by specified fields. The possible fields used for sorting and #' the order they are used in correspond with the options avaiable in BibLaTeX. #' #' @param x an object of class BibEntry #' @param decreasing logical; should the sort be increasing or decreasi...
/RefManageR/R/09sort.R
no_license
ingted/R-Examples
R
false
false
6,011
r
#' Sort a BibEntry Object #' #' Sorts a \code{BibEntry} object by specified fields. The possible fields used for sorting and #' the order they are used in correspond with the options avaiable in BibLaTeX. #' #' @param x an object of class BibEntry #' @param decreasing logical; should the sort be increasing or decreasi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/break.R \name{broken.default} \alias{broken.default} \title{Create the model agnostic broken object} \usage{ \method{broken}{default}(model, new_observation, data, direction = "up", ..., baseline = 0, predict.function = predict) } \argument...
/man/broken.default.Rd
no_license
shan-huang/breakDown
R
false
true
1,709
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/break.R \name{broken.default} \alias{broken.default} \title{Create the model agnostic broken object} \usage{ \method{broken}{default}(model, new_observation, data, direction = "up", ..., baseline = 0, predict.function = predict) } \argument...
.RfigletEnv <- new.env() .__Rfiglet_fonts <- c( "3-d", "3x5", "4max", "5lineoblique", "acrobatic", "alligator2", "alligator", "alphabet", "arrows", "avatar", "B1FF", "banner3-D", "banner3", "banner4", "banner", "barbwire", "basic", "bell", "bigchief", "bigfig", "big", "binary", "block", "bolger", "bright", "...
/R/fonts.r
permissive
talgalili/Rfiglet
R
false
false
1,800
r
.RfigletEnv <- new.env() .__Rfiglet_fonts <- c( "3-d", "3x5", "4max", "5lineoblique", "acrobatic", "alligator2", "alligator", "alphabet", "arrows", "avatar", "B1FF", "banner3-D", "banner3", "banner4", "banner", "barbwire", "basic", "bell", "bigchief", "bigfig", "big", "binary", "block", "bolger", "bright", "...
library(ggplot2) library(lme4) library(hydroGOF) library(dplyr) source("../results/helpers.R") setwd("~/git/arabic_adjectives/experiments/2-order-preference-expanded/Submiterator-master") num_round_dirs = 15 df1 = do.call(rbind, lapply(1:num_round_dirs, function(i) { return (read.csv(paste( 'round', i, '/arabic...
/experiments/2-order-preference-expanded/results/analysis.R
no_license
gscontras/arabic_adjectives
R
false
false
3,336
r
library(ggplot2) library(lme4) library(hydroGOF) library(dplyr) source("../results/helpers.R") setwd("~/git/arabic_adjectives/experiments/2-order-preference-expanded/Submiterator-master") num_round_dirs = 15 df1 = do.call(rbind, lapply(1:num_round_dirs, function(i) { return (read.csv(paste( 'round', i, '/arabic...
context("RSEC") test_that("`RSEC` works with matrix, ClusterExperiment, summarizedExperiment",{ ##these examples don't do dendrogram/merge because all -1 after combineMany ##only tests clusterMany, combineMany parts. ##so can't do expect_silent, because returns NOTE about that issue. expect_message(rsecOut1<-RSEC(...
/tests/testthat/test_RSEC.R
no_license
kevinbenac/clusterExperiment
R
false
false
5,782
r
context("RSEC") test_that("`RSEC` works with matrix, ClusterExperiment, summarizedExperiment",{ ##these examples don't do dendrogram/merge because all -1 after combineMany ##only tests clusterMany, combineMany parts. ##so can't do expect_silent, because returns NOTE about that issue. expect_message(rsecOut1<-RSEC(...
##################Answer # A. Use R to create a scatter plot and add the regression line. library(readxl) # Import data from an Excel workbook COMNODE <- read_excel("C:\\Users\\Zack\\Documents\\Spring 2021\\MATH 212\\Data Sets\\COMNODE3.xlsx", sheet=1) # Open the book CD file and save as "xlsx" in your folder # Vi...
/MATH 212/R Files/Chapter 3.3 Comm Node Student.R
no_license
zackroder/Spring-2021
R
false
false
801
r
##################Answer # A. Use R to create a scatter plot and add the regression line. library(readxl) # Import data from an Excel workbook COMNODE <- read_excel("C:\\Users\\Zack\\Documents\\Spring 2021\\MATH 212\\Data Sets\\COMNODE3.xlsx", sheet=1) # Open the book CD file and save as "xlsx" in your folder # Vi...
# Artificial Neural Network # Importing the dataset dataset = read.csv('Churn_Modelling.csv') dataset = dataset[4:14] # Encoding the categorical variables as factors dataset$Geography = as.numeric(factor(dataset$Geography, levels = c('France', 'Spain', 'Germany'), ...
/Part 8 - Deep Learning/Section 39 - Artificial Neural Networks (ANN)/Artificial_Neural_Networks/ann.R
no_license
arnaldoljr/Curso-Machine-Learning
R
false
false
1,719
r
# Artificial Neural Network # Importing the dataset dataset = read.csv('Churn_Modelling.csv') dataset = dataset[4:14] # Encoding the categorical variables as factors dataset$Geography = as.numeric(factor(dataset$Geography, levels = c('France', 'Spain', 'Germany'), ...