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
shinyUI( fluidPage( sidebarPanel( # dateRangeInput('date_range','',start=min(dataset$Date),end=max(dataset$Date)), checkboxInput('by_pitch_type',label='By Pitch Type?', value=T), checkboxInput('by_inning',label='By Inning?', value=F), checkboxInput('by_side',label='By Batter Side?', value=...
/ui.R
no_license
evonhei1/PitchfxViewer
R
false
false
1,813
r
shinyUI( fluidPage( sidebarPanel( # dateRangeInput('date_range','',start=min(dataset$Date),end=max(dataset$Date)), checkboxInput('by_pitch_type',label='By Pitch Type?', value=T), checkboxInput('by_inning',label='By Inning?', value=F), checkboxInput('by_side',label='By Batter Side?', value=...
setwd("~/Dropbox/PhD_thesis/PhD_thesis/Barenc_Sea/temperature/") ishodnik <- read.csv2("Kolskiy_meridian.csv") str(ishodnik) ishodnik$Year # форматруем в POSIXlt ish_posix<-data.frame(year = sort(rep(seq(2000, 2013,1),12)), month = rep(seq(01:12), 14), temp = as.vector(t(as.matrix(ishodnik)[,-1]))) ish_posix$date <...
/Barenc_Sea/temperature/temp_water.r
no_license
sophianazarova/PhD_thesis
R
false
false
2,498
r
setwd("~/Dropbox/PhD_thesis/PhD_thesis/Barenc_Sea/temperature/") ishodnik <- read.csv2("Kolskiy_meridian.csv") str(ishodnik) ishodnik$Year # форматруем в POSIXlt ish_posix<-data.frame(year = sort(rep(seq(2000, 2013,1),12)), month = rep(seq(01:12), 14), temp = as.vector(t(as.matrix(ishodnik)[,-1]))) ish_posix$date <...
LOGLIK_TYPES <- c("max", "mean", "median") #' @name pval_with_less_var #' @title Select p-value estimates with less variance. #' @description Importance sampling based p-values can be computed in two forms #' A) sum_i weight_i*X_i / N; B) sum_i weight_i*X_i / sum_i weight_i. #' This util function picks the better fo...
/R/utility.R
no_license
chandlerzuo/atSNP
R
false
false
20,157
r
LOGLIK_TYPES <- c("max", "mean", "median") #' @name pval_with_less_var #' @title Select p-value estimates with less variance. #' @description Importance sampling based p-values can be computed in two forms #' A) sum_i weight_i*X_i / N; B) sum_i weight_i*X_i / sum_i weight_i. #' This util function picks the better fo...
\name{lsquared} \alias{lsquared} \title{Calculate l-squared} \description{Calculate Blair and Lacy's l-squared.} \usage{lsquared(V)} \arguments{ \item{V}{A frequency vector} } \details{This function calculates Blair and Lacy's l-squared, a measure of concentration based on squared Euclidean distances. This function f...
/man/lsquared.Rd
no_license
cran/agrmt
R
false
false
771
rd
\name{lsquared} \alias{lsquared} \title{Calculate l-squared} \description{Calculate Blair and Lacy's l-squared.} \usage{lsquared(V)} \arguments{ \item{V}{A frequency vector} } \details{This function calculates Blair and Lacy's l-squared, a measure of concentration based on squared Euclidean distances. This function f...
library(readr) library(dplyr) read_blast_tab <- function(path){ blast <- read_tsv(path, col_names = c("qseqid", "sseqid", "pident", "length", "mismatch", "gapopen", "qstart", "qend", "sstart", "send", "evalue", "bitscore")) } #...
/sandbox/test_megahit_diginorm_nocat/sandbox/blast_against_minot_willis/compare_to_minot_and_willis.R
permissive
dib-lab/2020-ibd
R
false
false
1,587
r
library(readr) library(dplyr) read_blast_tab <- function(path){ blast <- read_tsv(path, col_names = c("qseqid", "sseqid", "pident", "length", "mismatch", "gapopen", "qstart", "qend", "sstart", "send", "evalue", "bitscore")) } #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sdf_interface.R \name{sdf_partition_sizes} \alias{sdf_partition_sizes} \title{Compute the number of records within each partition of a Spark DataFrame} \usage{ sdf_partition_sizes(x) } \arguments{ \item{x}{A \code{spark_connection}, \code{ml_...
/man/sdf_partition_sizes.Rd
permissive
pgramme/sparklyr
R
false
true
647
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sdf_interface.R \name{sdf_partition_sizes} \alias{sdf_partition_sizes} \title{Compute the number of records within each partition of a Spark DataFrame} \usage{ sdf_partition_sizes(x) } \arguments{ \item{x}{A \code{spark_connection}, \code{ml_...
#' Draw a Chromatogram or Spectrum #' #' This function creates a chromatogram or spectrum from a list of appropriate #' parameters describing the peaks. The individual curves are computed using #' the mathematical definition of either a Gaussian curve, possibly with #' tailing, or a Lorentzian curve. Gaussian curves...
/R/makeSpec.R
no_license
bryanhanson/SpecHelpers
R
false
false
6,579
r
#' Draw a Chromatogram or Spectrum #' #' This function creates a chromatogram or spectrum from a list of appropriate #' parameters describing the peaks. The individual curves are computed using #' the mathematical definition of either a Gaussian curve, possibly with #' tailing, or a Lorentzian curve. Gaussian curves...
# # # # # # # # Functions # # # # # # # # lieLogisticModel <- function(k, beta, mu){ logodds = beta * (k-mu) logitToProb(pmin(10, pmax(-10, logodds))) } p.lie.k <- function(k, beta, mu){ lieLogisticModel(k, beta, mu) } p.kstar.k <- function(k, kstar, alph){ alph = logitToProb(alph) dbinom(kstar, 10, alph...
/model/lauren/mleFits/meanLie.fit/meanLie.func.R
no_license
la-oey/Bullshitter
R
false
false
2,600
r
# # # # # # # # Functions # # # # # # # # lieLogisticModel <- function(k, beta, mu){ logodds = beta * (k-mu) logitToProb(pmin(10, pmax(-10, logodds))) } p.lie.k <- function(k, beta, mu){ lieLogisticModel(k, beta, mu) } p.kstar.k <- function(k, kstar, alph){ alph = logitToProb(alph) dbinom(kstar, 10, alph...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ConvertMatrix.R \name{ConvertMatrix} \alias{ConvertMatrix} \title{Convert matrices} \usage{ ConvertMatrix(matrix, from = NULL, to = NULL, background.format = NULL, background.pseudo = NULL, return = NULL, sort = NULL, top = NULL, pseudo =...
/man/ConvertMatrix.Rd
no_license
rioualen/regutools
R
false
true
4,824
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ConvertMatrix.R \name{ConvertMatrix} \alias{ConvertMatrix} \title{Convert matrices} \usage{ ConvertMatrix(matrix, from = NULL, to = NULL, background.format = NULL, background.pseudo = NULL, return = NULL, sort = NULL, top = NULL, pseudo =...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615834320-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,048
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
## ----setupKnitr, echo=FALSE, results='hide'------------------------------ knitr::opts_chunk$set(dev='png') ## ----load_packages------------------------------------------------------- library(GenomicRanges) library(ggplot2) library(hgu133plus2.db) library(fmcorrelationbreastcaparp1) library(fmdatabreastcaparp1) ## -...
/inst/doc/parp1_expression.R
no_license
rmflight/fmcorrelationbreastcaparp1
R
false
false
2,506
r
## ----setupKnitr, echo=FALSE, results='hide'------------------------------ knitr::opts_chunk$set(dev='png') ## ----load_packages------------------------------------------------------- library(GenomicRanges) library(ggplot2) library(hgu133plus2.db) library(fmcorrelationbreastcaparp1) library(fmdatabreastcaparp1) ## -...
### data density source("/Users/heatherwelch/Dropbox/JPSS/JPSS_VIIRS/code/load_functions.R") library(padr) library(zoo) modisDir="/Users/heatherwelch/Dropbox/JPSS/modis_8Day/Satellite" viirsDir="/Users/heatherwelch/Dropbox/JPSS/viirs_8Day/Satellite" dates_m=list.files(modisDir,full.names = T,recursive = T,pattern = "....
/code_02.14.19/data_density_2018.R
no_license
HeatherWelch/JPSS_VIIRS
R
false
false
4,560
r
### data density source("/Users/heatherwelch/Dropbox/JPSS/JPSS_VIIRS/code/load_functions.R") library(padr) library(zoo) modisDir="/Users/heatherwelch/Dropbox/JPSS/modis_8Day/Satellite" viirsDir="/Users/heatherwelch/Dropbox/JPSS/viirs_8Day/Satellite" dates_m=list.files(modisDir,full.names = T,recursive = T,pattern = "....
source('~/scripts/single_cell/atac.R') source('~/scripts/single_cell/wrapper.R') source('~/scripts/single_cell/markers.R') source('~/scripts/single_cell/celltype.R') source('~/scripts/single_cell/de.R') source('~/scripts/perturbator/de.R') source('~/scripts/single_cell/graphs.R') source('~/scripts/grn/models.R') libra...
/analysis/GRN_analysis/moo_terminal_da.R
no_license
tomasgomes/pallium_evo
R
false
false
9,446
r
source('~/scripts/single_cell/atac.R') source('~/scripts/single_cell/wrapper.R') source('~/scripts/single_cell/markers.R') source('~/scripts/single_cell/celltype.R') source('~/scripts/single_cell/de.R') source('~/scripts/perturbator/de.R') source('~/scripts/single_cell/graphs.R') source('~/scripts/grn/models.R') libra...
library(dplyr) library(readr) library(ggplot2) source("http://raw.githubusercontent.com/andrewpbray/math-243/master/assets/week-11/pca-code.R") https://raw.githubusercontent.com/andrewpbray/math-243/master/assets/data/handwritten.csv d <- read_csv("http://raw.githubusercontent.com/andrewpbray/math-243/master/assets/...
/notes/pca.R
no_license
jayleetx/stat_learning_243
R
false
false
1,608
r
library(dplyr) library(readr) library(ggplot2) source("http://raw.githubusercontent.com/andrewpbray/math-243/master/assets/week-11/pca-code.R") https://raw.githubusercontent.com/andrewpbray/math-243/master/assets/data/handwritten.csv d <- read_csv("http://raw.githubusercontent.com/andrewpbray/math-243/master/assets/...
#Q return interval plots #### Function for plotting ecdf with line on ggplot #### f <- function(u){ which.min(abs(as.numeric(u$vals) - 0.5)) } ecdf.plot <- function(DATA) { DATA = DATA[!is.na(DATA)] x = sort(unique(DATA, na.rm = T)) vals = cumsum(tabulate(match(DATA , unique(DATA))))/length(DATA) df = data...
/analysis-scripts/Q-plots.R
permissive
jimjunker1/Hengill-discharge
R
false
false
3,628
r
#Q return interval plots #### Function for plotting ecdf with line on ggplot #### f <- function(u){ which.min(abs(as.numeric(u$vals) - 0.5)) } ecdf.plot <- function(DATA) { DATA = DATA[!is.na(DATA)] x = sort(unique(DATA, na.rm = T)) vals = cumsum(tabulate(match(DATA , unique(DATA))))/length(DATA) df = data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/automl_functions.R \name{projects.locations.datasets.delete} \alias{projects.locations.datasets.delete} \title{Deletes a dataset and all of its contents. Returns empty response in the response field when it completes, and `delete_details` in ...
/googleautomlv1beta1.auto/man/projects.locations.datasets.delete.Rd
no_license
justinjm/autoGoogleAPI
R
false
true
924
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/automl_functions.R \name{projects.locations.datasets.delete} \alias{projects.locations.datasets.delete} \title{Deletes a dataset and all of its contents. Returns empty response in the response field when it completes, and `delete_details` in ...
#Benazir Rowe Spring 2018 UNLV #LD tables production from piMASS #Takes lists of significant loci available #Reads the corresponding full mcmc output files and pick top 10% SNPs #Save names and locations to a file under a region name #bash command to start the R session qsub -I -l ncpus=1,mem=5gb,cput=5:0:0 -l wa...
/checkingLDpipeline.R
no_license
rowedata/validation
R
false
false
1,687
r
#Benazir Rowe Spring 2018 UNLV #LD tables production from piMASS #Takes lists of significant loci available #Reads the corresponding full mcmc output files and pick top 10% SNPs #Save names and locations to a file under a region name #bash command to start the R session qsub -I -l ncpus=1,mem=5gb,cput=5:0:0 -l wa...
arma_logistic_model <- function(Y, X = matrix(1, nrow=length(Y)), eps = 1e-8, max_iter = 25) { .Call('arma_logistic_model', PACKAGE = 'matrixExamples', Y, X, eps, max_iter) }
/R/arma_logistic_model.r
no_license
introRcpp/matrixExamples
R
false
false
178
r
arma_logistic_model <- function(Y, X = matrix(1, nrow=length(Y)), eps = 1e-8, max_iter = 25) { .Call('arma_logistic_model', PACKAGE = 'matrixExamples', Y, X, eps, max_iter) }
#' Replace keyword values in CALPUFF system input files #' @description This function allows for the replacement of values in a CALPUFF system input file. #' @param inp_file_working the string vector that represents the working input file. #' @param keyword a string vector of input file keywords for the appropriate sec...
/R/replace_in_inp.R
permissive
yosukefk/PuffR
R
false
false
1,174
r
#' Replace keyword values in CALPUFF system input files #' @description This function allows for the replacement of values in a CALPUFF system input file. #' @param inp_file_working the string vector that represents the working input file. #' @param keyword a string vector of input file keywords for the appropriate sec...
dataset = read.csv('Mall_Customers.csv') X <- dataset[4:5] #KMEANS elbow set.seed(6) wcss <- vector() for (i in 1:10) { wcss[i] <- sum(kmeans(X, i)$withinss) } plot(1:10, wcss, type = "b", main = paste("Clusters"), xlab = "Number of clusters", ylab = "wcss") #applying kmeans with 5 clusters set.seed(29) kmeans <- k...
/KM.R
no_license
abhimanyudwivedi/weirdMLinR
R
false
false
657
r
dataset = read.csv('Mall_Customers.csv') X <- dataset[4:5] #KMEANS elbow set.seed(6) wcss <- vector() for (i in 1:10) { wcss[i] <- sum(kmeans(X, i)$withinss) } plot(1:10, wcss, type = "b", main = paste("Clusters"), xlab = "Number of clusters", ylab = "wcss") #applying kmeans with 5 clusters set.seed(29) kmeans <- k...
nb.mc<-function (x, alternative = "two.sided",exact=FALSE, min.reps=100, max.reps=1000, delta=10^-3) { # 11.1. A Test of Exponentiality versus IFR Alternatives (Epstein) # Monte Carlo Version for the exact test. # Assumptions: # A1. x_{i} ~ iid F (F is continuous) # A2. F(a) = 0 for a<0. ...
/R/nb.mc.R
no_license
cran/NSM3
R
false
false
3,703
r
nb.mc<-function (x, alternative = "two.sided",exact=FALSE, min.reps=100, max.reps=1000, delta=10^-3) { # 11.1. A Test of Exponentiality versus IFR Alternatives (Epstein) # Monte Carlo Version for the exact test. # Assumptions: # A1. x_{i} ~ iid F (F is continuous) # A2. F(a) = 0 for a<0. ...
R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for dis...
/Chapter 05/2Smooth Splines.r
permissive
PacktPublishing/Practical-Machine-Learning-Cookbook
R
false
false
3,081
r
R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for dis...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/settling_time_analysis.r \name{delta_tension} \alias{delta_tension} \title{delta_tension TODO Test} \usage{ delta_tension(settling) } \arguments{ \item{settling}{data frame with columns: settling, initial_tension, final_tension} } \value{ num...
/man/delta_tension.Rd
no_license
bc/frontiers2017
R
false
true
430
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/settling_time_analysis.r \name{delta_tension} \alias{delta_tension} \title{delta_tension TODO Test} \usage{ delta_tension(settling) } \arguments{ \item{settling}{data frame with columns: settling, initial_tension, final_tension} } \value{ num...
library(dplyr) library(ggplot2) inYlim<-450 #==plot theme .THEME = theme_bw(base_size = 12, base_family = "") + theme(strip.text.x = element_text(margin= margin(1,0,1,0)), panel.grid.major = element_blank(), panel.grid.minor = element_blank(), #panel.border = element_blank(), panel...
/scripts/projection_figure.R
no_license
szuwalski/CIE_2020
R
false
false
7,029
r
library(dplyr) library(ggplot2) inYlim<-450 #==plot theme .THEME = theme_bw(base_size = 12, base_family = "") + theme(strip.text.x = element_text(margin= margin(1,0,1,0)), panel.grid.major = element_blank(), panel.grid.minor = element_blank(), #panel.border = element_blank(), panel...
library(latex2exp) library("plot3D") source('ADMM_Optim.R') source('ADMM2_Optim.R') library(plyr) library(ggplot2) CrtData <- function(alpha,L,S,N){ # Create empty matrix for storing adjacency matrix X and Probability for X <- matrix(0,N,N); P <- matrix(0,N,N); P <- exp(alpha+L+S)/(1+exp(alpha+L+S)); ...
/Codes & Data/Codes/Synthetic Networks.R
no_license
namjoonsuh/Network-CFSG
R
false
false
11,830
r
library(latex2exp) library("plot3D") source('ADMM_Optim.R') source('ADMM2_Optim.R') library(plyr) library(ggplot2) CrtData <- function(alpha,L,S,N){ # Create empty matrix for storing adjacency matrix X and Probability for X <- matrix(0,N,N); P <- matrix(0,N,N); P <- exp(alpha+L+S)/(1+exp(alpha+L+S)); ...
scoring.QLQCR29 <- function(X,id="",time=""){ items=paste("q",31:59,sep="") if(length(which(is.element(items,colnames(X))))<29){ stop("At least one item is missing: items must be named q31 to q59"); break } if(length(which(match(items,colnames(X))==sort(match(items,colnames(X)))))<29){ stop("Items must be...
/R/scoring.QLQCR29.R
no_license
cran/QoLR
R
false
false
3,703
r
scoring.QLQCR29 <- function(X,id="",time=""){ items=paste("q",31:59,sep="") if(length(which(is.element(items,colnames(X))))<29){ stop("At least one item is missing: items must be named q31 to q59"); break } if(length(which(match(items,colnames(X))==sort(match(items,colnames(X)))))<29){ stop("Items must be...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.18626445098015e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613112459-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
257
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.18626445098015e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
# Bootrstapped "Traditional" Doubly Robust Difference-in-Differences # 2 periods and 2 groups wboot_drdid_rc <- function(nn, n, y, post, D, int.cov, i.weights){ #----------------------------------------------------------------------------- v <- stats::rexp(n) #v <- v / mean(v) #weights for the bootstrap b.we...
/R/wboot_drdid_rc.R
no_license
shizelong1985/DRDID
R
false
false
2,410
r
# Bootrstapped "Traditional" Doubly Robust Difference-in-Differences # 2 periods and 2 groups wboot_drdid_rc <- function(nn, n, y, post, D, int.cov, i.weights){ #----------------------------------------------------------------------------- v <- stats::rexp(n) #v <- v / mean(v) #weights for the bootstrap b.we...
#' Mullein data from Lava Beds National Monument - test dataset #' #' This dataset contains information about the presence and absence of #' common mullein (Verbascum thapsus) at 1,512 randomly selected sites #' in Lava Beds National Monument. The data were collected in summer 2006. #' This dataset may be used to evalu...
/R/mulleinTest.R
no_license
jillbo1000/EZtune
R
false
false
4,201
r
#' Mullein data from Lava Beds National Monument - test dataset #' #' This dataset contains information about the presence and absence of #' common mullein (Verbascum thapsus) at 1,512 randomly selected sites #' in Lava Beds National Monument. The data were collected in summer 2006. #' This dataset may be used to evalu...
##' Coerce to data frame ##' ##' \pkg{spatPomp} objects can be recast as data frames. ##' ##' @name as.data.frame ##' @rdname as_data_frame ##' @include spatPomp_class.R get_covariate_names.R ##' @aliases coerce,spatPomp,data.frame-method ##' @importFrom rlang `:=` .data ##' ##' @details ##' When \code{object} is a sim...
/R/as_data_frame.R
no_license
kidusasfaw/spatPomp
R
false
false
3,910
r
##' Coerce to data frame ##' ##' \pkg{spatPomp} objects can be recast as data frames. ##' ##' @name as.data.frame ##' @rdname as_data_frame ##' @include spatPomp_class.R get_covariate_names.R ##' @aliases coerce,spatPomp,data.frame-method ##' @importFrom rlang `:=` .data ##' ##' @details ##' When \code{object} is a sim...
library(structree) ### Name: rent ### Title: Munich Rent Data ### Aliases: rent ### ** Examples data(rent) y <- rent$nmqm X <- rent[,-1] boxplot(y) summary(X)
/data/genthat_extracted_code/structree/examples/rent.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
170
r
library(structree) ### Name: rent ### Title: Munich Rent Data ### Aliases: rent ### ** Examples data(rent) y <- rent$nmqm X <- rent[,-1] boxplot(y) summary(X)
################################################# # R-for-Epi # Epidemiologic Methods II (PHW250F, PHW250G) # created by Jade Benjamin-Chung, Nolan Pokpongkiat, Anna Nguyen # Autograder: Homework 4, Functions ############################################### source("setup/autograder-setup/autograder_setup.R") Autograd...
/setup/autograder-setup/hw4_functions/hw4_functions.ok.R
no_license
UCB-Epi-R/phw250fg2019
R
false
false
10,800
r
################################################# # R-for-Epi # Epidemiologic Methods II (PHW250F, PHW250G) # created by Jade Benjamin-Chung, Nolan Pokpongkiat, Anna Nguyen # Autograder: Homework 4, Functions ############################################### source("setup/autograder-setup/autograder_setup.R") Autograd...
library(odeintr) ### Name: integrate_sys ### Title: Integrate an ODE system using ODEINT ### Aliases: integrate_sys ### ** Examples ## Not run: ##D # Lotka-Volterra predator-prey equations ##D LV.sys = function(x, t) ##D { ##D c(x[1] - 0.1 * x[1] * x[2], ##D 0.05 * x[1] * x[2] - 0.5 * x[2]) ##D } ##D null_...
/data/genthat_extracted_code/odeintr/examples/integrate_sys.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,030
r
library(odeintr) ### Name: integrate_sys ### Title: Integrate an ODE system using ODEINT ### Aliases: integrate_sys ### ** Examples ## Not run: ##D # Lotka-Volterra predator-prey equations ##D LV.sys = function(x, t) ##D { ##D c(x[1] - 0.1 * x[1] * x[2], ##D 0.05 * x[1] * x[2] - 0.5 * x[2]) ##D } ##D null_...
individual <- function(topology, sample_rset, G_lower = 1, G_upper = 100, K_lower = 0.1, K_upper = 1, TH_lower = 0.02, TH_upper = 1.98, N_lower = 1, N_upper = 6, FC_lower = 1, FC_upper = 100) { number_of_genes <- ncol(sracipeParams(sample_rset)) parameter_names <-colnames(sracipeParams(sample_rset)) ind <...
/Genetic Algorithm/GA3_R.R
no_license
theturbokhemist/Optimization-Algorithms
R
false
false
21,620
r
individual <- function(topology, sample_rset, G_lower = 1, G_upper = 100, K_lower = 0.1, K_upper = 1, TH_lower = 0.02, TH_upper = 1.98, N_lower = 1, N_upper = 6, FC_lower = 1, FC_upper = 100) { number_of_genes <- ncol(sracipeParams(sample_rset)) parameter_names <-colnames(sracipeParams(sample_rset)) ind <...
library(ggplot2) meth.data <- read.table("MGMTe1methallsamples_wo.txt",sep="\t") meth.data <- t(meth.data) colnames(meth.data) <- meth.data[1,] meth.data <- meth.data[-1,] r.names <- meth.data[,1] meth.data <- meth.data[,-1] meth.data <- as.data.frame(apply(meth.data,2,as.numeric)) row.names(meth.data) <- r.names e1.da...
/heatmaps/stratify_by_e1_methylation.R
no_license
schmic05/MGMT_methylation
R
false
false
2,197
r
library(ggplot2) meth.data <- read.table("MGMTe1methallsamples_wo.txt",sep="\t") meth.data <- t(meth.data) colnames(meth.data) <- meth.data[1,] meth.data <- meth.data[-1,] r.names <- meth.data[,1] meth.data <- meth.data[,-1] meth.data <- as.data.frame(apply(meth.data,2,as.numeric)) row.names(meth.data) <- r.names e1.da...
pkgs <- c('RColorBrewer', 'pvclust', 'gplots', 'vegan') lapply(pkgs, require, character.only = TRUE) ## increase ctt to get more clusters. Stay in range [ .5 - 3 ] ctt=1.5 # Load data in matrix form genre <- as.matrix(read.table("expressions", header = TRUE, row.names = 1)) gct <- dim(genre)[1] ## debugg...
/r/heatmaps.3.0.R
permissive
neocruiser/pipelines
R
false
false
8,949
r
pkgs <- c('RColorBrewer', 'pvclust', 'gplots', 'vegan') lapply(pkgs, require, character.only = TRUE) ## increase ctt to get more clusters. Stay in range [ .5 - 3 ] ctt=1.5 # Load data in matrix form genre <- as.matrix(read.table("expressions", header = TRUE, row.names = 1)) gct <- dim(genre)[1] ## debugg...
library(faraway) library(carData) library(car) install.packages("randomForest") library(randomForest) #rfNews() #1 d0=data.frame(hsb) dim(d0) head(d0) set.seed(1) bag1=randomForest(prog~math+science,d0,mtry=2,importance=T) par(mfrow=c(1,2)) ypred=predict(bag1,newdata = d0) labels=c("academic","general","vocation") col...
/HW/HW6.R
no_license
crystal1114/Predictive-Analyze-using-R
R
false
false
1,483
r
library(faraway) library(carData) library(car) install.packages("randomForest") library(randomForest) #rfNews() #1 d0=data.frame(hsb) dim(d0) head(d0) set.seed(1) bag1=randomForest(prog~math+science,d0,mtry=2,importance=T) par(mfrow=c(1,2)) ypred=predict(bag1,newdata = d0) labels=c("academic","general","vocation") col...
# return expectation of latent variables # input: rankIndex_list(in conv.R) # output: expectation of latent variables E_fun.prob= function(pi_mat, rankIndex_list, mu_e, Sig_e, Omg_e, burn_num, restore_num, parallel = T, verbose = T) { p = ncol(pi_mat) n = nrow(pi_mat) r...
/lib/em_lib.R
no_license
jenjong/MLE_Thurstone
R
false
false
3,184
r
# return expectation of latent variables # input: rankIndex_list(in conv.R) # output: expectation of latent variables E_fun.prob= function(pi_mat, rankIndex_list, mu_e, Sig_e, Omg_e, burn_num, restore_num, parallel = T, verbose = T) { p = ncol(pi_mat) n = nrow(pi_mat) r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/markdown-escaping.R \name{escape_rd_for_md} \alias{escape_rd_for_md} \alias{unescape_rd_for_md} \title{Escape Rd markup, to avoid interpreting it as markdown} \usage{ escape_rd_for_md(text) unescape_rd_for_md(rd_text, esc_text) } \arguments{...
/man/markdown-internals.Rd
permissive
r-lib/roxygen2
R
false
true
1,687
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/markdown-escaping.R \name{escape_rd_for_md} \alias{escape_rd_for_md} \alias{unescape_rd_for_md} \title{Escape Rd markup, to avoid interpreting it as markdown} \usage{ escape_rd_for_md(text) unescape_rd_for_md(rd_text, esc_text) } \arguments{...
# This script is used by the EDI data pacakge reviewer to visualize a few plots for QAQC purposes # By: Adrienne Breef-Pilz #### Load Packages #### pacman::p_load(tidyverse, lubridate, scattermore) #### This section is from EDI R Code section #### # SECTION YOU NEED TO CHANGE # Need to update the URL each time fro...
/Data/DataAlreadyUploadedToEDI/EDIProductionFiles/MakeEML_CCRMetData/2023/REVIEWER_PLOTS_SCRIPTS.R
no_license
CareyLabVT/Reservoirs
R
false
false
1,746
r
# This script is used by the EDI data pacakge reviewer to visualize a few plots for QAQC purposes # By: Adrienne Breef-Pilz #### Load Packages #### pacman::p_load(tidyverse, lubridate, scattermore) #### This section is from EDI R Code section #### # SECTION YOU NEED TO CHANGE # Need to update the URL each time fro...
\alias{gdkDisplayGetCorePointer} \name{gdkDisplayGetCorePointer} \title{gdkDisplayGetCorePointer} \description{Returns the core pointer device for the given display} \usage{gdkDisplayGetCorePointer(object)} \arguments{\item{\code{object}}{[\code{\link{GdkDisplay}}] a \code{\link{GdkDisplay}}}} \details{ Since 2.2} \...
/man/gdkDisplayGetCorePointer.Rd
no_license
cran/RGtk2.10
R
false
false
426
rd
\alias{gdkDisplayGetCorePointer} \name{gdkDisplayGetCorePointer} \title{gdkDisplayGetCorePointer} \description{Returns the core pointer device for the given display} \usage{gdkDisplayGetCorePointer(object)} \arguments{\item{\code{object}}{[\code{\link{GdkDisplay}}] a \code{\link{GdkDisplay}}}} \details{ Since 2.2} \...
library(rcosmo) ### Name: areCompatibleCMBDFs ### Title: Check compatibleness of CMBDataFrames ### Aliases: areCompatibleCMBDFs ### ** Examples a <- CMBDataFrame(nside = 2, ordering = "ring", coords = "cartesian") b <- CMBDataFrame(nside = 1, ordering = "nested", coords = "spherical") areCompatibleCMBDFs(a,b) supp...
/data/genthat_extracted_code/rcosmo/examples/areCompatibleCMBDFs.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
363
r
library(rcosmo) ### Name: areCompatibleCMBDFs ### Title: Check compatibleness of CMBDataFrames ### Aliases: areCompatibleCMBDFs ### ** Examples a <- CMBDataFrame(nside = 2, ordering = "ring", coords = "cartesian") b <- CMBDataFrame(nside = 1, ordering = "nested", coords = "spherical") areCompatibleCMBDFs(a,b) supp...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(ggplot2) library(dplyr) library(rsconnect) ebMaxDepth <- read.csv("ebMaxDepth.csv", string...
/ebDives/app.R
no_license
STAT545-UBC-hw-2018-19/hw08-rgryba
R
false
false
2,399
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(ggplot2) library(dplyr) library(rsconnect) ebMaxDepth <- read.csv("ebMaxDepth.csv", string...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/storage_functions.R \name{objectAccessControls.update} \alias{objectAccessControls.update} \title{Updates an ACL entry on the specified object.} \usage{ objectAccessControls.update(ObjectAccessControl, bucket, object, entity, generation = N...
/googlestoragev1.auto/man/objectAccessControls.update.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,672
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/storage_functions.R \name{objectAccessControls.update} \alias{objectAccessControls.update} \title{Updates an ACL entry on the specified object.} \usage{ objectAccessControls.update(ObjectAccessControl, bucket, object, entity, generation = N...
##podaje użytkownik odp=readline('log transformation T/F :') #czy dane mają być w skali logarytmicznej? PCA<- function(ExprSet,odp) { dane=exprs(ExprSet) dane2=t(dane) pca2=prcomp(dane2,retx=odp,scale=T) #PCA jpeg(filename="PCA_ScreePlot.jpg") plot(pca2,main="PCA") dev.off() jpeg(filename="PCA_ScreePlot2.jpg") pl...
/Main Project/PCA_BozenaMika.R
no_license
WSP2/Projekt
R
false
false
649
r
##podaje użytkownik odp=readline('log transformation T/F :') #czy dane mają być w skali logarytmicznej? PCA<- function(ExprSet,odp) { dane=exprs(ExprSet) dane2=t(dane) pca2=prcomp(dane2,retx=odp,scale=T) #PCA jpeg(filename="PCA_ScreePlot.jpg") plot(pca2,main="PCA") dev.off() jpeg(filename="PCA_ScreePlot2.jpg") pl...
#### Sparse Matrices in Compressed column-oriented format ### contains = "dsparseMatrix", "CsparseMatrix" ## Specific conversions, should they be necessary. Better to convert as ## as(x, "TsparseMatrix") or as(x, "denseMatrix") ## Moved to ./Csparse.R : ## setAs("dgCMatrix", "dgTMatrix", .... ## setAs("dgCMatrix", ...
/branches/Matrix-nolmer/R/dgCMatrix.R
no_license
LTLA/Matrix
R
false
false
9,278
r
#### Sparse Matrices in Compressed column-oriented format ### contains = "dsparseMatrix", "CsparseMatrix" ## Specific conversions, should they be necessary. Better to convert as ## as(x, "TsparseMatrix") or as(x, "denseMatrix") ## Moved to ./Csparse.R : ## setAs("dgCMatrix", "dgTMatrix", .... ## setAs("dgCMatrix", ...
################ ~~~~~~~~~~~~~~~~~ ######## ~~~~~~~~~~~~~~~~~ ################## ## ## ## Daytons Weather ## ## ...
/R/wrangling.R
no_license
moralmar/DaytonsWeather
R
false
false
2,481
r
################ ~~~~~~~~~~~~~~~~~ ######## ~~~~~~~~~~~~~~~~~ ################## ## ## ## Daytons Weather ## ## ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_distributions.R \name{combine_norm} \alias{combine_norm} \title{Weight a set of normal parameters into a single distribution} \usage{ combine_norm(dat) } \arguments{ \item{dat}{Dataframe of mean, sd and weights.} } \value{ A dataframe. } ...
/man/combine_norm.Rd
permissive
Karagul/collector
R
false
true
1,183
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_distributions.R \name{combine_norm} \alias{combine_norm} \title{Weight a set of normal parameters into a single distribution} \usage{ combine_norm(dat) } \arguments{ \item{dat}{Dataframe of mean, sd and weights.} } \value{ A dataframe. } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connectivity.R \name{connectivity} \alias{connectivity} \title{Check Connectivity of Rankings} \usage{ connectivity(x, verbose = TRUE) } \arguments{ \item{x}{an adjacency matrix as returned by \code{\link{adjacency}}, a \code{"\link{rankings}...
/man/connectivity.Rd
no_license
Felix660/PlackettLuce
R
false
true
2,486
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connectivity.R \name{connectivity} \alias{connectivity} \title{Check Connectivity of Rankings} \usage{ connectivity(x, verbose = TRUE) } \arguments{ \item{x}{an adjacency matrix as returned by \code{\link{adjacency}}, a \code{"\link{rankings}...
numPerPatch66000 <- c(2515,2485)
/NatureEE-data-archive/Run203121/JAFSdata/JAFSnumPerPatch66000.R
no_license
flaxmans/NatureEE2017
R
false
false
33
r
numPerPatch66000 <- c(2515,2485)
%% File Name: IRT.WrightMap.Rd %% File Version: 0.30 \name{IRT.WrightMap} % \alias{IRT.WrightMap} \alias{IRT.WrightMap.tam.mml} \alias{IRT.WrightMap.tamaan} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Wright Map for Item Response Models by Using the \pkg{WrightMap} Package } \...
/man/IRT.WrightMap.Rd
no_license
cran/TAM
R
false
false
8,597
rd
%% File Name: IRT.WrightMap.Rd %% File Version: 0.30 \name{IRT.WrightMap} % \alias{IRT.WrightMap} \alias{IRT.WrightMap.tam.mml} \alias{IRT.WrightMap.tamaan} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Wright Map for Item Response Models by Using the \pkg{WrightMap} Package } \...
getx<-function(){ charx<-paste(data$Date,data$Time,sep=" ") x<-strptime(charx,"%d/%m/%Y %H:%M:%S") } gety1<-function(){ y1<-as.numeric(as.character(data$Global_active_power)) } gety2_1<-function(){ y2_1<-as.numeric(as.character(data$Sub_metering_1)) } gety2_2<-function(){ y2_2<-as.numeric(as.charact...
/plot4.R
no_license
elliberto/ExData_Plotting1
R
false
false
1,568
r
getx<-function(){ charx<-paste(data$Date,data$Time,sep=" ") x<-strptime(charx,"%d/%m/%Y %H:%M:%S") } gety1<-function(){ y1<-as.numeric(as.character(data$Global_active_power)) } gety2_1<-function(){ y2_1<-as.numeric(as.character(data$Sub_metering_1)) } gety2_2<-function(){ y2_2<-as.numeric(as.charact...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/train_model.R \name{plot.forecast_results} \alias{plot.forecast_results} \title{Plot an object of class forecast_results} \usage{ \method{plot}{forecast_results}(forecast_results, data_actual = NULL, models = NULL, horizons = NULL, windows ...
/man/plot.forecast_results.Rd
permissive
GapData/forecastML
R
false
true
1,165
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/train_model.R \name{plot.forecast_results} \alias{plot.forecast_results} \title{Plot an object of class forecast_results} \usage{ \method{plot}{forecast_results}(forecast_results, data_actual = NULL, models = NULL, horizons = NULL, windows ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BallMapper.R \name{BallMapper} \alias{BallMapper} \title{Create vertices and edges (with additional properties) of a Ball Mapper graph of the input data.} \usage{ BallMapper(points, values, epsilon) } \arguments{ \item{points, }{a co...
/man/BallMapper.Rd
no_license
pdlotko/RBallMapper
R
false
true
1,858
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BallMapper.R \name{BallMapper} \alias{BallMapper} \title{Create vertices and edges (with additional properties) of a Ball Mapper graph of the input data.} \usage{ BallMapper(points, values, epsilon) } \arguments{ \item{points, }{a co...
library(tidyverse) library(data.table) library(magrittr) library(DiagrammeR) graph_fill_mission <- function(path, ...){ edges <- read_csv2(path) # names_nodes = c(edges$from, edges$to) %>% unique edges %<>% mutate(to = if_else(link %>% is.na, to, paste0('|', link, '|', to)), line...
/R/diagrams/heuristic/heuristic.R
no_license
pchtsp/optima
R
false
false
1,769
r
library(tidyverse) library(data.table) library(magrittr) library(DiagrammeR) graph_fill_mission <- function(path, ...){ edges <- read_csv2(path) # names_nodes = c(edges$from, edges$to) %>% unique edges %<>% mutate(to = if_else(link %>% is.na, to, paste0('|', link, '|', to)), line...
## count the number of x-flips on x .packageName <- 'mousetrack' xflip <-function(x){ dx = x[1:length(x)-1]-x[2:length(x)] # dx2 = dx(dx); dx = dx/abs(dx) dx = dx[which(is.na(dx) == FALSE)] dx2 = dx[2:length(dx)] - dx[1:length(dx)-1]; out = length(which(dx2 != 0)); return(out) }
/mousetrack/R/xflip.R
no_license
ingted/R-Examples
R
false
false
290
r
## count the number of x-flips on x .packageName <- 'mousetrack' xflip <-function(x){ dx = x[1:length(x)-1]-x[2:length(x)] # dx2 = dx(dx); dx = dx/abs(dx) dx = dx[which(is.na(dx) == FALSE)] dx2 = dx[2:length(dx)] - dx[1:length(dx)-1]; out = length(which(dx2 != 0)); return(out) }
#' Load complete package. #' #' `load_all` loads a package. It roughly simulates what happens #' when a package is installed and loaded with [library()]. #' #' Currently `load_all`: #' #' \itemize{ #' \item Loads all data files in `data/`. See [load_data()] #' for more details. #' #' \item Sources all R files ...
/R/load.r
no_license
riccardoporreca/pkgload
R
false
false
9,799
r
#' Load complete package. #' #' `load_all` loads a package. It roughly simulates what happens #' when a package is installed and loaded with [library()]. #' #' Currently `load_all`: #' #' \itemize{ #' \item Loads all data files in `data/`. See [load_data()] #' for more details. #' #' \item Sources all R files ...
#' @title DUPLEX algorithm for calibration sampling #' @description Select calibration samples from a large multivariate data using the DUPLEX algorithm #' @usage #' duplex(X,k,metric,pc,group,.center = TRUE,.scale = FALSE) #' @param X a \code{matrix} #' @param k number of calibration/validation samples #' @para...
/prospectr/R/duplex.r
no_license
ingted/R-Examples
R
false
false
7,699
r
#' @title DUPLEX algorithm for calibration sampling #' @description Select calibration samples from a large multivariate data using the DUPLEX algorithm #' @usage #' duplex(X,k,metric,pc,group,.center = TRUE,.scale = FALSE) #' @param X a \code{matrix} #' @param k number of calibration/validation samples #' @para...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/InvBatschelet.R \name{K_kplam} \alias{K_kplam} \title{Compute a partial normalizing constant of a vM-based inverse Batschelet distribution} \usage{ K_kplam(kp, lam) } \arguments{ \item{kp}{Numeric, \eqn{> 0,}the concentration parameter.} \it...
/man/K_kplam.Rd
no_license
keesmulder/flexcircmix
R
false
true
548
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/InvBatschelet.R \name{K_kplam} \alias{K_kplam} \title{Compute a partial normalizing constant of a vM-based inverse Batschelet distribution} \usage{ K_kplam(kp, lam) } \arguments{ \item{kp}{Numeric, \eqn{> 0,}the concentration parameter.} \it...
# FITTING CLASSIFICATION TREES library(tree) library(ISLR) attach(Carseats) High <- ifelse(Sales <= 8, "No", "Yes") Carseats <- data.frame(Carseats, High) tree.carseats <- tree(High ~. -Sales, Carseats) summary(tree.carseats) par(mfrow=c(1,1)) plot(tree.carseats) text(tree.carseats, pretty = 0) tree.carseats #...
/Tree-Based-Methods/ch8-fitting-classification-trees.r
no_license
colson1111/ISLR
R
false
false
1,652
r
# FITTING CLASSIFICATION TREES library(tree) library(ISLR) attach(Carseats) High <- ifelse(Sales <= 8, "No", "Yes") Carseats <- data.frame(Carseats, High) tree.carseats <- tree(High ~. -Sales, Carseats) summary(tree.carseats) par(mfrow=c(1,1)) plot(tree.carseats) text(tree.carseats, pretty = 0) tree.carseats #...
\name{Prostate} \alias{Prostate} \title{Prostate Cancer Data} \description{ These data come from a study that examined the correlation between the level of prostate specific antigen and a number of clinical measures in men who were about to receive a radical prostatectomy. It is data frame with 97 rows and 9 co...
/man/Prostate.Rd
no_license
cran/islasso
R
false
false
1,205
rd
\name{Prostate} \alias{Prostate} \title{Prostate Cancer Data} \description{ These data come from a study that examined the correlation between the level of prostate specific antigen and a number of clinical measures in men who were about to receive a radical prostatectomy. It is data frame with 97 rows and 9 co...
context("Unit tests for IIVM") lgr::get_logger("mlr3")$set_threshold("warn") on_cran = !identical(Sys.getenv("NOT_CRAN"), "true") if (on_cran) { test_cases = expand.grid( learner = "rpart", dml_procedure = "dml2", score = "LATE", trimming_rule = c("truncate"), trimming_threshold = c(0.05), s...
/tests/testthat/test-double_ml_iivm_trim.R
no_license
k-segiet/doubleml-for-r
R
false
false
2,927
r
context("Unit tests for IIVM") lgr::get_logger("mlr3")$set_threshold("warn") on_cran = !identical(Sys.getenv("NOT_CRAN"), "true") if (on_cran) { test_cases = expand.grid( learner = "rpart", dml_procedure = "dml2", score = "LATE", trimming_rule = c("truncate"), trimming_threshold = c(0.05), s...
test_that("TensorShapes are converted to lists", { skip_if_no_tensorflow() x <- tf$constant(10, shape = shape(5,10)) expect_identical(x$shape[2], list(10L)) expect_identical(x$shape[[2]], 10L) y <- tf$TensorShape(shape(5L, 10L)) expect_s3_class(y, "tensorflow.python.framework.tensor_shape.TensorShape") ...
/tests/testthat/test-types.R
permissive
btongson/tensorflow
R
false
false
391
r
test_that("TensorShapes are converted to lists", { skip_if_no_tensorflow() x <- tf$constant(10, shape = shape(5,10)) expect_identical(x$shape[2], list(10L)) expect_identical(x$shape[[2]], 10L) y <- tf$TensorShape(shape(5L, 10L)) expect_s3_class(y, "tensorflow.python.framework.tensor_shape.TensorShape") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func.E.r \name{entropy} \alias{entropy} \title{entropy} \usage{ entropy(v) } \arguments{ \item{v}{a vector input (treated as binary, i.e. zero/non-zero)} } \description{ Compute the entropy of a binary vector } \author{ Chenhao Li, Gerald Tan...
/man/entropy.Rd
permissive
satopan/beem-static
R
false
true
343
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func.E.r \name{entropy} \alias{entropy} \title{entropy} \usage{ entropy(v) } \arguments{ \item{v}{a vector input (treated as binary, i.e. zero/non-zero)} } \description{ Compute the entropy of a binary vector } \author{ Chenhao Li, Gerald Tan...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/school_palettes.R \docType{data} \name{school_palettes} \alias{school_palettes} \title{Complete List of School Palettes} \format{ An object of class \code{list} of length 1158. } \usage{ school_palettes } \description{ Use \code{\link{school_...
/man/school_palettes.Rd
permissive
cbenge509/schoolcolors
R
false
true
483
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/school_palettes.R \docType{data} \name{school_palettes} \alias{school_palettes} \title{Complete List of School Palettes} \format{ An object of class \code{list} of length 1158. } \usage{ school_palettes } \description{ Use \code{\link{school_...
# ##### Analysis Processing Functions ###### getCountObjRDS <- function(x){ print(paste(x)) featureCountRDS <- readRDS(x) return(featureCountRDS$count) } getCountObjTXT <- function(fileName, colNumb=1, rowNames=1){ print(paste(fileName)) featureCountTxt <- read.table(fileName, sep="\t", row.names = rowNam...
/analysisFunctions.R
no_license
sentisci/RNALandscape
R
false
false
36,569
r
# ##### Analysis Processing Functions ###### getCountObjRDS <- function(x){ print(paste(x)) featureCountRDS <- readRDS(x) return(featureCountRDS$count) } getCountObjTXT <- function(fileName, colNumb=1, rowNames=1){ print(paste(fileName)) featureCountTxt <- read.table(fileName, sep="\t", row.names = rowNam...
hhpow <- read.table("household_power_consumption.txt", header=TRUE, sep=";",colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"), na.strings = "?") hhpow$Date <- as.Date(hhpow$Date, "%d/%m/%Y") hhpow2 <- hhpow[hhpow["Date"]=="2007/02/01" | hhpow["Date"]=="2007/02/0...
/cp1/plot1.R
no_license
pmotipara/dataexploration
R
false
false
620
r
hhpow <- read.table("household_power_consumption.txt", header=TRUE, sep=";",colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"), na.strings = "?") hhpow$Date <- as.Date(hhpow$Date, "%d/%m/%Y") hhpow2 <- hhpow[hhpow["Date"]=="2007/02/01" | hhpow["Date"]=="2007/02/0...
library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error b.var <- c(0.0025) # The set of varaince of random covariates b as random slope smooth <- 0 # measurement error is added to M if smooth = 0; no measurement error is added if sooth = 1 cores <- 8 r.sim <- b....
/full simulation/summer/hetero_power/variance0.0025/seed2/heter_power_0.0025_pca_u_seed2_200_20.R
no_license
wma9/FMRI-project
R
false
false
9,199
r
library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error b.var <- c(0.0025) # The set of varaince of random covariates b as random slope smooth <- 0 # measurement error is added to M if smooth = 0; no measurement error is added if sooth = 1 cores <- 8 r.sim <- b....
# setwd("/home/chris/Bureau/sb_cofactor_hr") setwd("/Users/chris/Desktop/sb_cofactor_hr") library(ComplexHeatmap) library(circlize) source("scripts/lincs/lincs.utils.R") # Load fold change gene expression values A549_LINCs_KD_matrix <- readRDS("output/analysis/lincs/A549_LINCs_KD_matrix.rds") # Remove gene name in o...
/scripts/lincs/LINCS_KD_A549_correlation.R
no_license
ArnaudDroitLab/sb_cofactor
R
false
false
3,789
r
# setwd("/home/chris/Bureau/sb_cofactor_hr") setwd("/Users/chris/Desktop/sb_cofactor_hr") library(ComplexHeatmap) library(circlize) source("scripts/lincs/lincs.utils.R") # Load fold change gene expression values A549_LINCs_KD_matrix <- readRDS("output/analysis/lincs/A549_LINCs_KD_matrix.rds") # Remove gene name in o...
#' @title Find edges in a graph or edges not in an undirected graph. #' #' @description Returns the edges of a graph (or edges not in a graph) where the #' graph can be either an igraph object, a list of generators or an #' adjacency matrix. #' #' @name getEdges #' #' @details #' #' When \code{ingraph=TRUE}: I...
/R/getEdges.R
no_license
cran/gRim
R
false
false
6,625
r
#' @title Find edges in a graph or edges not in an undirected graph. #' #' @description Returns the edges of a graph (or edges not in a graph) where the #' graph can be either an igraph object, a list of generators or an #' adjacency matrix. #' #' @name getEdges #' #' @details #' #' When \code{ingraph=TRUE}: I...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LGA__Year_SexemploymentToPopulation.R \docType{data} \name{LGA__Year_SexemploymentToPopulation} \alias{LGA__Year_SexemploymentToPopulation} \title{Sex by LGA, Year} \format{3,378 observations and 4 variables.} \usage{ LGA__Year_SexemploymentT...
/man/LGA__Year_SexemploymentToPopulation.Rd
no_license
HughParsonage/Census2016.DataPack.TimeSeries
R
false
true
474
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LGA__Year_SexemploymentToPopulation.R \docType{data} \name{LGA__Year_SexemploymentToPopulation} \alias{LGA__Year_SexemploymentToPopulation} \title{Sex by LGA, Year} \format{3,378 observations and 4 variables.} \usage{ LGA__Year_SexemploymentT...
library(gridGraphics) clip1 <- function() { set.seed(1) x <- rnorm(1000) hist(x, xlim = c(-4,4)) usr <- par("usr") clip(usr[1], -2, usr[3], usr[4]) hist(x, col = 'red', add = TRUE) clip(2, usr[2], usr[3], usr[4]) hist(x, col = 'blue', add = TRUE) } plotdiff(expression(clip1()), "clip-...
/gridGraphics/test-scripts/test-clip.R
permissive
solgenomics/R_libs
R
false
false
342
r
library(gridGraphics) clip1 <- function() { set.seed(1) x <- rnorm(1000) hist(x, xlim = c(-4,4)) usr <- par("usr") clip(usr[1], -2, usr[3], usr[4]) hist(x, col = 'red', add = TRUE) clip(2, usr[2], usr[3], usr[4]) hist(x, col = 'blue', add = TRUE) } plotdiff(expression(clip1()), "clip-...
context("Util function accuracy") test_that("Invalid data items/types",{ expect_error(get_function("B1111")) expect_error(check_data_item("B1720", "test")) expect_warning(check_data_item("TEMP", "B Flow")) expect_error(get_column_names("B1111")) expect_error(get_data_items("something")) }) test_th...
/tests/testthat/test_util.R
no_license
cran/BMRSr
R
false
false
1,499
r
context("Util function accuracy") test_that("Invalid data items/types",{ expect_error(get_function("B1111")) expect_error(check_data_item("B1720", "test")) expect_warning(check_data_item("TEMP", "B Flow")) expect_error(get_column_names("B1111")) expect_error(get_data_items("something")) }) test_th...
## ----options, echo=FALSE, warning=FALSE, message=FALSE------------------- options(width=120) opts_chunk$set(comment=NA, fig.width=6, fig.height=5, size='tiny', out.width='0.6\\textwidth', fig.align='center', message=FALSE) ## ----libraries, message=FALSE, warning=FALSE, echo=FALSE----------------- library("dplyr") l...
/courses/stat587Eng/slides/Supplementary/S02-Poisson_regression/S02-Poisson_regression.R
no_license
jarad/jarad.github.com
R
false
false
3,304
r
## ----options, echo=FALSE, warning=FALSE, message=FALSE------------------- options(width=120) opts_chunk$set(comment=NA, fig.width=6, fig.height=5, size='tiny', out.width='0.6\\textwidth', fig.align='center', message=FALSE) ## ----libraries, message=FALSE, warning=FALSE, echo=FALSE----------------- library("dplyr") l...
set.seed(10) trials <- 2000 v_mat2 <- matrix(NA, ncol = trials, nrow = 3) poly_gamma <- matrix(c(-1, 0, 0, 1, 0, 0, 0, -1, 0, 0, 1, 0), ncol = 3, nrow = 4, byrow = T) poly_u <- c(-1, .5, -3, -3) .l2norm <- function(x){sqrt(sum(x^2))} basis1 <- c(1,...
/experiments/uniform_direction.R
no_license
linnykos/selectiveModel
R
false
false
1,550
r
set.seed(10) trials <- 2000 v_mat2 <- matrix(NA, ncol = trials, nrow = 3) poly_gamma <- matrix(c(-1, 0, 0, 1, 0, 0, 0, -1, 0, 0, 1, 0), ncol = 3, nrow = 4, byrow = T) poly_u <- c(-1, .5, -3, -3) .l2norm <- function(x){sqrt(sum(x^2))} basis1 <- c(1,...
ClueIO <- function(Concordant_signature) { url3 <<- paste("https://api.clue.io/api/perts?filter={%22fields%22:[%22canonical_smiles%22,%22pert_iname%22],%22where%22:{%22pert_id%22:{%22inq%22:[%22",Concordant_signature,"%22]}}}&user_key=e201f96e629b5741375fd1c58a46e3d6", sep="") raw.result3 <- GET(url = url3) ...
/lib/ClueIO.R
no_license
thormaaw/Sig2Lead.R
R
false
false
382
r
ClueIO <- function(Concordant_signature) { url3 <<- paste("https://api.clue.io/api/perts?filter={%22fields%22:[%22canonical_smiles%22,%22pert_iname%22],%22where%22:{%22pert_id%22:{%22inq%22:[%22",Concordant_signature,"%22]}}}&user_key=e201f96e629b5741375fd1c58a46e3d6", sep="") raw.result3 <- GET(url = url3) ...
library(lda) ### Name: top.topic.words ### Title: Get the Top Words and Documents in Each Topic ### Aliases: top.topic.words top.topic.documents ### Keywords: utilities ### ** Examples ## From demo(lda). data(cora.documents) data(cora.vocab) K <- 10 ## Num clusters result <- lda.collapsed.gibbs.sampler(cora.docum...
/data/genthat_extracted_code/lda/examples/top.topic.words.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,593
r
library(lda) ### Name: top.topic.words ### Title: Get the Top Words and Documents in Each Topic ### Aliases: top.topic.words top.topic.documents ### Keywords: utilities ### ** Examples ## From demo(lda). data(cora.documents) data(cora.vocab) K <- 10 ## Num clusters result <- lda.collapsed.gibbs.sampler(cora.docum...
# the periodic sum of the intermediate portion of solute-solute LMF potential rm(list = ls()) library(tidyverse) library(pracma) library(here) vLMF_intermediate <- function(r){ a <- 0.78 b <- 0.75 sig <- 0.5 epsilon <- 71 v <- a/epsilon*exp(-b*(r/sig)^2) v } filepath <- here("utilities/get_PMF/") filepath...
/utilities/get_PMF/LMF_Ewald_intermediate_CG.R
no_license
andy90/DNA_simulation
R
false
false
1,716
r
# the periodic sum of the intermediate portion of solute-solute LMF potential rm(list = ls()) library(tidyverse) library(pracma) library(here) vLMF_intermediate <- function(r){ a <- 0.78 b <- 0.75 sig <- 0.5 epsilon <- 71 v <- a/epsilon*exp(-b*(r/sig)^2) v } filepath <- here("utilities/get_PMF/") filepath...
#' @title DUPLEX algorithm for calibration sampling #' @description #' Select calibration samples from a large multivariate data using the DUPLEX #' algorithm #' @usage #' duplex(X, #' k, #' metric = c("mahal", "euclid"), #' pc, #' group, #' .center = TRUE, #' .scale...
/R/duplex.R
no_license
cran/prospectr
R
false
false
7,693
r
#' @title DUPLEX algorithm for calibration sampling #' @description #' Select calibration samples from a large multivariate data using the DUPLEX #' algorithm #' @usage #' duplex(X, #' k, #' metric = c("mahal", "euclid"), #' pc, #' group, #' .center = TRUE, #' .scale...
#' Predictions #' #' Performs predictions over a trained model. #' #' Predicts future values over a "modl" object which can be ARIMA or data mining, and returns #' the predictions. Data mining predictions start right after the last value #' contained in the training data, so they overlap with the end of the origi...
/R/pred.R
no_license
cran/predtoolsTS
R
false
false
10,205
r
#' Predictions #' #' Performs predictions over a trained model. #' #' Predicts future values over a "modl" object which can be ARIMA or data mining, and returns #' the predictions. Data mining predictions start right after the last value #' contained in the training data, so they overlap with the end of the origi...
library(tidyquant) imkta <- getSymbols("imkta", from = "2010-01-01", to = "2019-12-31", auto.assign = FALSE) tsm <- getSymbols("tsm", from = "2010-01-01", to = "2019-12-31", auto.assign = FALSE) combined <- cbind(imkta,tsm) %>% head() imkta <- Ad(imkta) tsm <- Ad(tsm) ad_combined <- cbind(imkta,tsm) %>%...
/tidyquant.R
no_license
kwknpui/learning_R
R
false
false
1,191
r
library(tidyquant) imkta <- getSymbols("imkta", from = "2010-01-01", to = "2019-12-31", auto.assign = FALSE) tsm <- getSymbols("tsm", from = "2010-01-01", to = "2019-12-31", auto.assign = FALSE) combined <- cbind(imkta,tsm) %>% head() imkta <- Ad(imkta) tsm <- Ad(tsm) ad_combined <- cbind(imkta,tsm) %>%...
#==========================================================================================# # Leave these commands at the beginning. They will refresh the session. # #------------------------------------------------------------------------------------------# rm(list=ls()) graphics.off() #===========...
/scripts/test_crown_mod.r
no_license
femeunier/LianaAlbedo
R
false
false
6,558
r
#==========================================================================================# # Leave these commands at the beginning. They will refresh the session. # #------------------------------------------------------------------------------------------# rm(list=ls()) graphics.off() #===========...
################################################################################################## ### gs25 분석 ### #분석할 파일 읽고 gs25<-read.csv("insta_gs25.csv") cu<-read.csv("./data/insta_cu.csv") emart24<-read.csv("./data/insta_emart24.csv") mini<-read.csv("./data/insta_ministop.csv") #중복 제거 insta_cu<-unique(cu) insta...
/R/textmining/pmkim_textmining.R
no_license
sehooh5/watcheap-project
R
false
false
7,806
r
################################################################################################## ### gs25 분석 ### #분석할 파일 읽고 gs25<-read.csv("insta_gs25.csv") cu<-read.csv("./data/insta_cu.csv") emart24<-read.csv("./data/insta_emart24.csv") mini<-read.csv("./data/insta_ministop.csv") #중복 제거 insta_cu<-unique(cu) insta...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sign-commits.R \name{gh_store_key} \alias{gh_store_key} \title{Add a public key to your GitHub account} \usage{ gh_store_key(key, .token = NULL) } \arguments{ \item{key}{A character string containing the ID of a key to use. See [gpg::gpg_list...
/man/gh_store_key.Rd
no_license
karawoo/ropsec
R
false
true
934
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sign-commits.R \name{gh_store_key} \alias{gh_store_key} \title{Add a public key to your GitHub account} \usage{ gh_store_key(key, .token = NULL) } \arguments{ \item{key}{A character string containing the ID of a key to use. See [gpg::gpg_list...
# load-sensor-data.R # loads all sensor data, summarizes, saves timeseries and summaries as .rds # objects. Puts the following data into the global namespace: # - alltemps (xts time series of all temperature sensors # - temp.daily.sum (df of daily temperature stats) # - temp.monthly.sum (df of monthly temperature stat...
/scripts/load-sensor-data.R
no_license
schwilklab/skyisland-climate
R
false
false
3,214
r
# load-sensor-data.R # loads all sensor data, summarizes, saves timeseries and summaries as .rds # objects. Puts the following data into the global namespace: # - alltemps (xts time series of all temperature sensors # - temp.daily.sum (df of daily temperature stats) # - temp.monthly.sum (df of monthly temperature stat...
library("RCurl") library(ggplot2) library(XML) library(data.table) library(plyr) library(foreach) library(compiler) library(fasttime) library("RMySQL") connectdb <- function() { #print ("Connecting mysql ...") #con <- dbConnect(MySQL(), user="root", password="root", dbname="bpl", host="127.0.0.1", port=3306) co...
/parttime/r-scripts/sensors/dbdataaccess.R
no_license
haijunsu/oldprojs
R
false
false
8,107
r
library("RCurl") library(ggplot2) library(XML) library(data.table) library(plyr) library(foreach) library(compiler) library(fasttime) library("RMySQL") connectdb <- function() { #print ("Connecting mysql ...") #con <- dbConnect(MySQL(), user="root", password="root", dbname="bpl", host="127.0.0.1", port=3306) co...
\docType{class} \name{CenterNN_C} \alias{CenterNN_C} \alias{R6_CenterNN_C} \title{CenterNN_C KEEL Classification Algorithm} \description{ CenterNN_C Classification Algorithm from KEEL. } \usage{ CenterNN_C(train, test) } \arguments{ \item{train}{Train dataset as a data.frame object} \item{test}{Test dataset as a data....
/RKEEL/man/CenterNN-C.Rd
no_license
i02momuj/RKEEL
R
false
false
734
rd
\docType{class} \name{CenterNN_C} \alias{CenterNN_C} \alias{R6_CenterNN_C} \title{CenterNN_C KEEL Classification Algorithm} \description{ CenterNN_C Classification Algorithm from KEEL. } \usage{ CenterNN_C(train, test) } \arguments{ \item{train}{Train dataset as a data.frame object} \item{test}{Test dataset as a data....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{closeProgress} \alias{closeProgress} \title{Close the progress even if there's an error} \usage{ closeProgress(message = NULL, global = if (isRunning()) sharedData else getHidden()) } \arguments{ \item{message}{Character: mess...
/man/closeProgress.Rd
no_license
ahmczwg/psichomics
R
false
true
549
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{closeProgress} \alias{closeProgress} \title{Close the progress even if there's an error} \usage{ closeProgress(message = NULL, global = if (isRunning()) sharedData else getHidden()) } \arguments{ \item{message}{Character: mess...
test_that("toer works without pruning", { # Compare Fujikawa et al., 2020 design <- setupOneStageBasket(k = 3, shape1 = 1, shape2 = 1, theta0 = 0.2) # Proposed design (i) in Fujikawa et al. # Compare the results of reject_prob_ew, reject_prob_group and # reject_single_loop toer_group1 <- toer(design...
/tests/testthat/test-toer.R
no_license
cran/baskexact
R
false
false
3,281
r
test_that("toer works without pruning", { # Compare Fujikawa et al., 2020 design <- setupOneStageBasket(k = 3, shape1 = 1, shape2 = 1, theta0 = 0.2) # Proposed design (i) in Fujikawa et al. # Compare the results of reject_prob_ew, reject_prob_group and # reject_single_loop toer_group1 <- toer(design...
# Ejercicio 2 # Como tenemos datos no agrupados, calculamos el promedio n = 50 alpha = 0.05 xi = c(32, 23, 64, 31, 74, 44, 61, 33, 66, 73, 27, 65, 40, 54, 23, 43, 58, 87, 58, 62, 68, 89, 93, 24, 73, 42, 33, 63, 36, 48, 77, 75, 37, 59, 70, 61, 43, 68, 54, 29, 48, 81, 57, 97, 35, 58, 56, 58, 57,...
/Lab03.R
no_license
callmeanto/co3321
R
false
false
746
r
# Ejercicio 2 # Como tenemos datos no agrupados, calculamos el promedio n = 50 alpha = 0.05 xi = c(32, 23, 64, 31, 74, 44, 61, 33, 66, 73, 27, 65, 40, 54, 23, 43, 58, 87, 58, 62, 68, 89, 93, 24, 73, 42, 33, 63, 36, 48, 77, 75, 37, 59, 70, 61, 43, 68, 54, 29, 48, 81, 57, 97, 35, 58, 56, 58, 57,...
library(httr) # 1. Find OAuth settings for github: # http://developer.github.com/v3/oauth/ oauth_endpoints("github") # 2. To make your own application, register at at # https://github.com/settings/applications. Use any URL for the homepage URL # (http://github.com is fine) and http://localhost:1410 as the c...
/Getting and Cleaning Data/Week 2/GithubGetDate.R
no_license
indralukmana/datasciencecoursera
R
false
false
726
r
library(httr) # 1. Find OAuth settings for github: # http://developer.github.com/v3/oauth/ oauth_endpoints("github") # 2. To make your own application, register at at # https://github.com/settings/applications. Use any URL for the homepage URL # (http://github.com is fine) and http://localhost:1410 as the c...
#' Fitting a pattern along a line. #' #' @param x A \code{numeric} vector of baseline x-coordinates; of the same #' length as the \code{y} argument. #' @param y A \code{numeric} vector of baseline y-coordinates; of the same #' length as the \code{x} argument. #' @param z A numeric vector with a pattern to fit to th...
/R/utils_lines.R
permissive
gejielin/elementalist
R
false
false
5,925
r
#' Fitting a pattern along a line. #' #' @param x A \code{numeric} vector of baseline x-coordinates; of the same #' length as the \code{y} argument. #' @param y A \code{numeric} vector of baseline y-coordinates; of the same #' length as the \code{x} argument. #' @param z A numeric vector with a pattern to fit to th...
plot3 <- function(){ #load data, filter on dates and create kW column data <- read.csv("household_power_consumption.txt", sep=";" , na.strings = '?') plotData <- subset(data, Date == '1/2/2007' | Date == '2/2/2007') remove(data) plotData$DateTime <- strptime(paste(plotData$Date,plotData$Time, sep=" "...
/plot3.R
no_license
mtukeric-loreal/ExData_Plotting1
R
false
false
886
r
plot3 <- function(){ #load data, filter on dates and create kW column data <- read.csv("household_power_consumption.txt", sep=";" , na.strings = '?') plotData <- subset(data, Date == '1/2/2007' | Date == '2/2/2007') remove(data) plotData$DateTime <- strptime(paste(plotData$Date,plotData$Time, sep=" "...
#' Detect Outliers in Text #' #' Locate possible outliers for text variables given numeric word function. #' #' @param text.var The text variable. #' @param grouping.var The grouping variables. Default NULL generates one word #' list for all text. Also takes a single grouping variable or a list of 1 or #' more gr...
/R/outlier.detect.R
no_license
PsychoAnalytix/qdap
R
false
false
2,724
r
#' Detect Outliers in Text #' #' Locate possible outliers for text variables given numeric word function. #' #' @param text.var The text variable. #' @param grouping.var The grouping variables. Default NULL generates one word #' list for all text. Also takes a single grouping variable or a list of 1 or #' more gr...
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
/myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615765536-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,803
r
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
library(shiny) drake <- function(R, fp, ne, fl, fi, fc, L) R * fp * ne * fl * fi * fc * L shinyServer( function(input, output) { output$text1 <- renderText({drake(input$R,input$fp,input$ne,input$fl,input$fi,input$fc,input$L)}) } )
/server.r
no_license
mjtanner/Developing-Data-Products-Shiny-App
R
false
false
242
r
library(shiny) drake <- function(R, fp, ne, fl, fi, fc, L) R * fp * ne * fl * fi * fc * L shinyServer( function(input, output) { output$text1 <- renderText({drake(input$R,input$fp,input$ne,input$fl,input$fi,input$fc,input$L)}) } )
# test created for bug 285824 # When adding nested columns for tables with columns that already # includes line shift it breaks on top context("Test NNTable bug 285824") nntable_dir <- gsub("/NNtable-tests/testthat|/tests/testthat", "", getwd()) output_path <- file.path(nntable_dir, "tests", "output") dir.create(...
/tests/testthat/test-NNTable_bug_285824.R
permissive
NNpackages/NNtable
R
false
false
5,049
r
# test created for bug 285824 # When adding nested columns for tables with columns that already # includes line shift it breaks on top context("Test NNTable bug 285824") nntable_dir <- gsub("/NNtable-tests/testthat|/tests/testthat", "", getwd()) output_path <- file.path(nntable_dir, "tests", "output") dir.create(...
###############################################################################33 vars<-c(iadlza="IADLs",adla="ADLs",conde="# Conditions",hsptim="# Hospital Visits") #vars<-c(conde="# Conditions",iadlza="IADLs",adla="ADLs")#,mobila="Mobility Problems",lgmusa="Large muscle",grossa="Gross motor problems",finea="Fine moto...
/E3_mediation.R
no_license
ben-domingue/effect_spousaldeath
R
false
false
2,348
r
###############################################################################33 vars<-c(iadlza="IADLs",adla="ADLs",conde="# Conditions",hsptim="# Hospital Visits") #vars<-c(conde="# Conditions",iadlza="IADLs",adla="ADLs")#,mobila="Mobility Problems",lgmusa="Large muscle",grossa="Gross motor problems",finea="Fine moto...
# 1. Import dataset trainData <- read.csv('https://raw.githubusercontent.com/selva86/datasets/master/breastcancer_training.csv') testData <- read.csv('https://raw.githubusercontent.com/selva86/datasets/master/breastcancer_test.csv') # 2. Build Logistic Model logitmod <- glm(Class ~ Cl.thickness + Cell.size + Cell.shap...
/Practice/evaluation_metrics.R
no_license
iamsaurabhmishra/R-projects
R
false
false
2,348
r
# 1. Import dataset trainData <- read.csv('https://raw.githubusercontent.com/selva86/datasets/master/breastcancer_training.csv') testData <- read.csv('https://raw.githubusercontent.com/selva86/datasets/master/breastcancer_test.csv') # 2. Build Logistic Model logitmod <- glm(Class ~ Cl.thickness + Cell.size + Cell.shap...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{h2o.weights} \alias{h2o.weights} \title{Retrieve the respective weight matrix} \usage{ h2o.weights(object, matrix_id = 1) } \arguments{ \item{object}{An \linkS4class{H2OModel} or \linkS4class{H2OModelMetrics}} \item{matrix_id}{An integer, ranging from 1 to num...
/h2o_3.10.4.4/h2o/man/h2o.weights.Rd
no_license
JoeyChiese/gitKraken_test
R
false
false
441
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{h2o.weights} \alias{h2o.weights} \title{Retrieve the respective weight matrix} \usage{ h2o.weights(object, matrix_id = 1) } \arguments{ \item{object}{An \linkS4class{H2OModel} or \linkS4class{H2OModelMetrics}} \item{matrix_id}{An integer, ranging from 1 to num...