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
### ========================================================================= ### Expression objects ### ------------------------------------------------------------------------- ### ### Temporarily copy/pasted from rsolr ### setClassUnion("Expression", "language") setClass("ConstantExpression", slots=c(valu...
/R/Expression-class.R
no_license
samuelmacedo83/hailr
R
false
false
2,227
r
### ========================================================================= ### Expression objects ### ------------------------------------------------------------------------- ### ### Temporarily copy/pasted from rsolr ### setClassUnion("Expression", "language") setClass("ConstantExpression", slots=c(valu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compile-dll.r \name{compile_dll} \alias{compile_dll} \title{Compile a .dll/.so from source.} \usage{ compile_dll(path = ".", quiet = FALSE) } \arguments{ \item{path}{Path to a package, or within a package.} \item{quiet}{if \code{TRUE} suppre...
/man/compile_dll.Rd
no_license
guhjy/pkgbuild
R
false
true
952
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compile-dll.r \name{compile_dll} \alias{compile_dll} \title{Compile a .dll/.so from source.} \usage{ compile_dll(path = ".", quiet = FALSE) } \arguments{ \item{path}{Path to a package, or within a package.} \item{quiet}{if \code{TRUE} suppre...
#install.packages("MatrixEQTL") # source("Matrix_eQTL_R/Matrix_eQTL_engine.r"); library(MatrixEQTL) ## Location of the package with the data files. base.dir = find.package('MatrixEQTL'); # base.dir = '.'; ## Settings # Linear model to use, modelANOVA, modelLINEAR, or modelLINEAR_CROSS useModel = modelLINEAR; # mode...
/eQTL_analyses/R_script_for_Eurobats_adipose_TriG_significant_4213_regulators_matrix_eQTL.R
no_license
hoskinsjw/aQTL2021
R
false
false
4,690
r
#install.packages("MatrixEQTL") # source("Matrix_eQTL_R/Matrix_eQTL_engine.r"); library(MatrixEQTL) ## Location of the package with the data files. base.dir = find.package('MatrixEQTL'); # base.dir = '.'; ## Settings # Linear model to use, modelANOVA, modelLINEAR, or modelLINEAR_CROSS useModel = modelLINEAR; # mode...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1043 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1043 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query54_query07_1344n/query54_query07_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
710
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1043 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1043 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
library(curl) library(dplyr) library(tidyr) library(ggplot2) library(magrittr) library(readxl) library(purrr) library(HMDHFDplus) library(viridis) library(ggfan) ############### ## plan # 1. get yearly exposure data # 1961-2014 - hmd # 2015-2016 mid year estimates # 2017- NPP 2016 forecast? # 2. divide into weeks. # ...
/R/generate_exposures.R
no_license
jasonhilton/viz_weekly
R
false
false
8,873
r
library(curl) library(dplyr) library(tidyr) library(ggplot2) library(magrittr) library(readxl) library(purrr) library(HMDHFDplus) library(viridis) library(ggfan) ############### ## plan # 1. get yearly exposure data # 1961-2014 - hmd # 2015-2016 mid year estimates # 2017- NPP 2016 forecast? # 2. divide into weeks. # ...
### continuous wavelet transform functions normalize.series <- function(x) { x <- x - mean(x) x <- x / sd(x) } cwt <- function(x, dt, dj, pad=1, s0=(-1), J=(-1), mother="morlet", param=(-1)) { x <- normalize.series(x) n <- length(x) if (s0 == -1) s0 <- 2 * dt if (J == -1) J <- floor(1/dj * log2(n * dt / s0)) i...
/R/WaveletPkg.R
no_license
weinbergerlab/quant_meth_id
R
false
false
21,359
r
### continuous wavelet transform functions normalize.series <- function(x) { x <- x - mean(x) x <- x / sd(x) } cwt <- function(x, dt, dj, pad=1, s0=(-1), J=(-1), mother="morlet", param=(-1)) { x <- normalize.series(x) n <- length(x) if (s0 == -1) s0 <- 2 * dt if (J == -1) J <- floor(1/dj * log2(n * dt / s0)) i...
rm(list=ls()) library(lubridate) library(ggpubr) library(purrr) library(tidyverse) library(data.table) library(dplyr) library(ggplot2) options(digit=9) options(digits=9) source_path_1 = "/Users/hn/Documents/GitHub/Ag/Lagoon/core_lagoon.R" source_path_2 = "/Users/hn/Documents/GitHub/Ag/Lagoon/core_plot_lagoon.R" source...
/Lagoon/999_laptop/51_analysis_plots/precip_run/update_clusters_in_data/update_clusters_in_monthly_trends_precp.R
permissive
HNoorazar/Ag
R
false
false
2,114
r
rm(list=ls()) library(lubridate) library(ggpubr) library(purrr) library(tidyverse) library(data.table) library(dplyr) library(ggplot2) options(digit=9) options(digits=9) source_path_1 = "/Users/hn/Documents/GitHub/Ag/Lagoon/core_lagoon.R" source_path_2 = "/Users/hn/Documents/GitHub/Ag/Lagoon/core_plot_lagoon.R" source...
pollutantmean <- function(directory, pollutant, id = 1:332) { data <- data.frame(); files <- list.files(directory, full.names = TRUE); for (index in files) { data <- rbind(data, read.csv(index, comment.char = "")) } neededMonitors <- subset(data, ID %in% id); pollutantMean <- mean(neededM...
/pollutantmean.R
no_license
piyush-its-1/datasciencecoursera
R
false
false
1,297
r
pollutantmean <- function(directory, pollutant, id = 1:332) { data <- data.frame(); files <- list.files(directory, full.names = TRUE); for (index in files) { data <- rbind(data, read.csv(index, comment.char = "")) } neededMonitors <- subset(data, ID %in% id); pollutantMean <- mean(neededM...
lme_mass_RgEI1<-function(X,Zcols,W,CBhat,L,phi,ni,G,GDa,GDb) { m<-length(ni) n<-sum(ni) nv<-nrow(G) q<-length(Zcols) nth<-q*(q+1)/2+1 p<-ncol(X) Pth <- array(0,c(nth,p,p)) Qthth <- array(0,c(nth,nth,p,p)) Der <- array(0,c(nth,n,max(ni))) # Computation of the first order d...
/R/lme_mass_RgEI1.R
permissive
kdiers/fslmer
R
false
false
4,552
r
lme_mass_RgEI1<-function(X,Zcols,W,CBhat,L,phi,ni,G,GDa,GDb) { m<-length(ni) n<-sum(ni) nv<-nrow(G) q<-length(Zcols) nth<-q*(q+1)/2+1 p<-ncol(X) Pth <- array(0,c(nth,p,p)) Qthth <- array(0,c(nth,nth,p,p)) Der <- array(0,c(nth,n,max(ni))) # Computation of the first order d...
library(shiny) diabetesRisk <- function(glucose) glucose / 200 shinyServer( function(input, output) { output$inputValue <- renderPrint({input$glucose}) output$prediction <- renderPrint({diabetesRisk(input$glucose)}) } )
/server.R
no_license
calchad/ShinyApp
R
false
false
235
r
library(shiny) diabetesRisk <- function(glucose) glucose / 200 shinyServer( function(input, output) { output$inputValue <- renderPrint({input$glucose}) output$prediction <- renderPrint({diabetesRisk(input$glucose)}) } )
# INITIALIZE ################################# options(contrasts = c("contr.sum","contr.poly")) library(car) library(ez) library(afex) library(xtable) library(lattice) library(lme4) library(ggplot2) # read in data setwd("C:/Users/Jeff/Documents/McMaster University/Data & Analysis/NCStudy2 Data - May 1...
/r/NCStudy2/analyze_structured_diary.R
no_license
jeffbruce/masters-thesis-code
R
false
false
479
r
# INITIALIZE ################################# options(contrasts = c("contr.sum","contr.poly")) library(car) library(ez) library(afex) library(xtable) library(lattice) library(lme4) library(ggplot2) # read in data setwd("C:/Users/Jeff/Documents/McMaster University/Data & Analysis/NCStudy2 Data - May 1...
#Dear Student, # #Welcome to the dataset for the homework exercise. # #Instructions for this dataset: # You have only been supplied vectors. You will need # to create the matrices yourself. # Matrices: # - FreeThrows # - FreeThrowAttempts # #Sincerely, #Kirill Eremenko #www.superdatascience.com #Copyrig...
/P2-Section4-Homework-Dataset-R/Section4-Homework-Data.R
no_license
Sasidhar222/R-Programming
R
false
false
3,358
r
#Dear Student, # #Welcome to the dataset for the homework exercise. # #Instructions for this dataset: # You have only been supplied vectors. You will need # to create the matrices yourself. # Matrices: # - FreeThrows # - FreeThrowAttempts # #Sincerely, #Kirill Eremenko #www.superdatascience.com #Copyrig...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/map_layer_path.R \name{add_path} \alias{add_path} \title{Add Path} \usage{ add_path( map, data = get_map_data(map), polyline = NULL, stroke_colour = NULL, stroke_width = NULL, stroke_opacity = NULL, dash_size = NULL, dash_gap ...
/man/add_path.Rd
no_license
freyreeste/mapdeck
R
false
true
6,275
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/map_layer_path.R \name{add_path} \alias{add_path} \title{Add Path} \usage{ add_path( map, data = get_map_data(map), polyline = NULL, stroke_colour = NULL, stroke_width = NULL, stroke_opacity = NULL, dash_size = NULL, dash_gap ...
########################################################################## # Jose Cajide - @jrcajide # Master Data Science: Reading data ########################################################################## list.of.packages <- c("R.utils", "tidyverse", "doParallel", "foreach", "sqldf") new.packages <- list.of.pac...
/02-read_data.R
no_license
huan-lui/master_data_science
R
false
false
7,836
r
########################################################################## # Jose Cajide - @jrcajide # Master Data Science: Reading data ########################################################################## list.of.packages <- c("R.utils", "tidyverse", "doParallel", "foreach", "sqldf") new.packages <- list.of.pac...
#### Base R functions to use with Vectors #### ## mean, standard deviation, median, range, length, sorting ## new_vector <- c(5, 20, 9, 46, 20, 11) # mean mean(new_vector) # standard deviation sd(new_vector) # median median(new_vector) # range range(new_vector) # sorting sort(new_vector) new_...
/Module 4/04-05-base-r-functions-to-use-with-vectors.R
no_license
agentmishra/intro-to-r
R
false
false
488
r
#### Base R functions to use with Vectors #### ## mean, standard deviation, median, range, length, sorting ## new_vector <- c(5, 20, 9, 46, 20, 11) # mean mean(new_vector) # standard deviation sd(new_vector) # median median(new_vector) # range range(new_vector) # sorting sort(new_vector) new_...
discretize <- function(x) { if ((median(x) - 2*sd(x) < min(x)) & (median(x) + 2*sd(x) > max(x))) { d <- c(min(x),median(x) - sd(x),median(x),median(x) + sd(x),max(x)) } if ((median(x) - 2*sd(x) > min(x)) & (median(x) + 2*sd(x) > max(x))) { d <- c(min(x),median(x) - 2*sd(x),median(x) - sd(x),median(x),medi...
/discretize.R
no_license
joelgombin/carto
R
false
false
710
r
discretize <- function(x) { if ((median(x) - 2*sd(x) < min(x)) & (median(x) + 2*sd(x) > max(x))) { d <- c(min(x),median(x) - sd(x),median(x),median(x) + sd(x),max(x)) } if ((median(x) - 2*sd(x) > min(x)) & (median(x) + 2*sd(x) > max(x))) { d <- c(min(x),median(x) - 2*sd(x),median(x) - sd(x),median(x),medi...
testlist <- list(n = -2128798435L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
/breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609961235-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
99
r
testlist <- list(n = -2128798435L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
" Created on Feb 1 2019 @author: Gizem Intepe This file takes an input.csv with comments to be analysed in a column called 'Query' and implements LDA. The output is a .csv file of topics, represented by their most probable words. " #----------------------------------------- #TOPIC MODELS #-----...
/R_scripts/TopicModeling.R
no_license
alisonsneyd/Maths-Support-Centre-Feedback
R
false
false
2,746
r
" Created on Feb 1 2019 @author: Gizem Intepe This file takes an input.csv with comments to be analysed in a column called 'Query' and implements LDA. The output is a .csv file of topics, represented by their most probable words. " #----------------------------------------- #TOPIC MODELS #-----...
rm(list = ls()) library(clusterProfiler) library(annotables) library(enrichplot) load("result/intersect_Gene.RData") data("grch37") downgenlist <- dplyr::filter(grch37, ensgene %in% intersectdown) upgenlist <- dplyr::filter(grch37, ensgene %in% intersetup) upeg = bitr(unique(upgenlist$symbol), ...
/201-functional_enrichment_analysis.R
no_license
saisaitian/PCa_ceRNA
R
false
false
2,910
r
rm(list = ls()) library(clusterProfiler) library(annotables) library(enrichplot) load("result/intersect_Gene.RData") data("grch37") downgenlist <- dplyr::filter(grch37, ensgene %in% intersectdown) upgenlist <- dplyr::filter(grch37, ensgene %in% intersetup) upeg = bitr(unique(upgenlist$symbol), ...
#' Plot elbow plot for Cophenetic Metric against range of factorization ranks #' @details Use this function to plot Cophenetic correlation metric against a range of factorization ranks tried. This plot helps to choose optimal factorization rank. #' Ideally optimal rank is the one at which Cophenetic metric significantl...
/R/plotCopheneticMetric.R
permissive
AxelitoMartin/maftools
R
false
false
1,948
r
#' Plot elbow plot for Cophenetic Metric against range of factorization ranks #' @details Use this function to plot Cophenetic correlation metric against a range of factorization ranks tried. This plot helps to choose optimal factorization rank. #' Ideally optimal rank is the one at which Cophenetic metric significantl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ssm.R \name{ssm} \alias{ssm} \title{A constructor for a Additive linear State space model.} \usage{ ssm(ts,trend = FALSE,damped = FALSE,seasonal = FALSE,xreg = NULL, period = 0,genT = FALSE,series.name = NULL) } \arguments{ \item{...
/man/ssm.Rd
no_license
cran/bayesforecast
R
false
true
3,348
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ssm.R \name{ssm} \alias{ssm} \title{A constructor for a Additive linear State space model.} \usage{ ssm(ts,trend = FALSE,damped = FALSE,seasonal = FALSE,xreg = NULL, period = 0,genT = FALSE,series.name = NULL) } \arguments{ \item{...
library(spdep); example(columbus) ?poly2nb getwd() dir_out = "~/projects/datzen/tests/proto/" save_coord_nb(foo_spdf = columbus,dir_out=NULL) save_coord_nb(foo_spdf = columbus,dir_out=dir_out)
/tests/test_save_coord_nb.R
no_license
mikejacktzen/datzen
R
false
false
199
r
library(spdep); example(columbus) ?poly2nb getwd() dir_out = "~/projects/datzen/tests/proto/" save_coord_nb(foo_spdf = columbus,dir_out=NULL) save_coord_nb(foo_spdf = columbus,dir_out=dir_out)
library(SMRD)
/inst/apps/figure6_4/global.R
no_license
anhnguyendepocen/SMRD
R
false
false
14
r
library(SMRD)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pwOmics_downstream_analysis.R \name{identifyPWs} \alias{identifyPWs} \title{Identify pathway IDs and pathway names of differentially abundant proteins} \usage{ identifyPWs(data_omics_plus) } \arguments{ \item{data_omics_plus}{output list of r...
/man/identifyPWs.Rd
no_license
MarenS2/pwOmics
R
false
true
2,332
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pwOmics_downstream_analysis.R \name{identifyPWs} \alias{identifyPWs} \title{Identify pathway IDs and pathway names of differentially abundant proteins} \usage{ identifyPWs(data_omics_plus) } \arguments{ \item{data_omics_plus}{output list of r...
### ========================================================================= ### Grouping objects ### ------------------------------------------------------------------------- ### ### We call "grouping" an arbitrary mapping from a collection of NO objects ### to a collection of NG groups, or, more formally, a bipartit...
/R/Grouping-class.R
no_license
Bioconductor/IRanges
R
false
false
31,423
r
### ========================================================================= ### Grouping objects ### ------------------------------------------------------------------------- ### ### We call "grouping" an arbitrary mapping from a collection of NO objects ### to a collection of NG groups, or, more formally, a bipartit...
#source("ConstructSparseNetwork_from_moore_tcga.R") ##################### ## Set Working Dir ## ##################### setwd("~/Box Sync/Genomics_Project/") source("dirinfo.R") ############## ## Packages ## ############## #install.packages("MASS") library(MASS) ################### ## Normal Sample ## ...
/tcga_codes/ConstructSparseNetwork_from_moore_tcga.R
no_license
Fengithub/Genomics_Project_DCGs
R
false
false
831
r
#source("ConstructSparseNetwork_from_moore_tcga.R") ##################### ## Set Working Dir ## ##################### setwd("~/Box Sync/Genomics_Project/") source("dirinfo.R") ############## ## Packages ## ############## #install.packages("MASS") library(MASS) ################### ## Normal Sample ## ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/singleCESpectra_func.R \name{singleCESpectra} \alias{singleCESpectra} \title{spectra from single CE function} \usage{ singleCESpectra(all.frag, energy = "15", dmz = 0.001) } \arguments{ \item{all.frag}{} \item{energy}{collision energy desire...
/man/singleCESpectra.Rd
no_license
dutchjes/MSMSsim
R
false
true
401
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/singleCESpectra_func.R \name{singleCESpectra} \alias{singleCESpectra} \title{spectra from single CE function} \usage{ singleCESpectra(all.frag, energy = "15", dmz = 0.001) } \arguments{ \item{all.frag}{} \item{energy}{collision energy desire...
# Getting and Cleaning Data - Week 4 - Programming Assignment: ## Set working directory: setwd("C:/Users/user/Desktop/week4assignment") ## Load the training (from X_train.txt file) and test (from X_test.txt file) data: X_train <- read.table("C:\\Users\\user\\Desktop\\week4assignment\\Data\\train\\X_train.txt",h...
/run_analysis.R
no_license
ambiance-r/Getting_and_Cleaning_Data
R
false
false
4,187
r
# Getting and Cleaning Data - Week 4 - Programming Assignment: ## Set working directory: setwd("C:/Users/user/Desktop/week4assignment") ## Load the training (from X_train.txt file) and test (from X_test.txt file) data: X_train <- read.table("C:\\Users\\user\\Desktop\\week4assignment\\Data\\train\\X_train.txt",h...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/marginplot.R \name{marginplot} \alias{marginplot} \title{Scatterplot with additional information in the margins} \usage{ marginplot(x, delimiter = NULL, col = c("skyblue", "red", "red4", "orange", "orange4"), alpha = NULL, pch = c(1,...
/man/marginplot.Rd
no_license
ashimb9/VIM
R
false
true
5,749
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/marginplot.R \name{marginplot} \alias{marginplot} \title{Scatterplot with additional information in the margins} \usage{ marginplot(x, delimiter = NULL, col = c("skyblue", "red", "red4", "orange", "orange4"), alpha = NULL, pch = c(1,...
#' Calculate linear trends for a set of time series variables #' For each combination of \code{idvar} and \code{measure} regress measure values against time period. #' The result will be the best linear approximation of the measure slope as a function of time #' #' @param df (data frame) data frame containing the time ...
/R/tsTrends.R
no_license
etlundquist/eRic
R
false
false
2,299
r
#' Calculate linear trends for a set of time series variables #' For each combination of \code{idvar} and \code{measure} regress measure values against time period. #' The result will be the best linear approximation of the measure slope as a function of time #' #' @param df (data frame) data frame containing the time ...
library(e1071) # Prep X and Y ---- ## process HIV data from http://hivdb.stanford.edu/pages/published_analysis/genophenoPNAS2006/DATA/PI_DATA.txt to send to matlab hivdata=read.table('genetic_application/NNRTI/hivdata.txt',fill=TRUE,sep='\t',header=TRUE) y_cols=4:6;x_cols=7:246 # locations in the data matrix is.le...
/genetic_application/non_gaussian_sim/prep_non_G_sim.R
no_license
svteichman/prelim
R
false
false
2,361
r
library(e1071) # Prep X and Y ---- ## process HIV data from http://hivdb.stanford.edu/pages/published_analysis/genophenoPNAS2006/DATA/PI_DATA.txt to send to matlab hivdata=read.table('genetic_application/NNRTI/hivdata.txt',fill=TRUE,sep='\t',header=TRUE) y_cols=4:6;x_cols=7:246 # locations in the data matrix is.le...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DummyApply.R \name{DummyApply} \alias{DummyApply} \title{Apply a function to subsets defined by a dummy matrix} \usage{ DummyApply(x, y, FUN = sum, simplify = TRUE) } \arguments{ \item{x}{A (sparse) dummy matrix} \item{y}{Vector o...
/man/DummyApply.Rd
no_license
cran/SSBtools
R
false
true
1,738
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DummyApply.R \name{DummyApply} \alias{DummyApply} \title{Apply a function to subsets defined by a dummy matrix} \usage{ DummyApply(x, y, FUN = sum, simplify = TRUE) } \arguments{ \item{x}{A (sparse) dummy matrix} \item{y}{Vector o...
#Module 1: Upload data and parse them #Note: Does not support native MS SQLServer yet as of 180417 #argument: type: ACS should trigger ACS only feature ACSUploadParseUI <- function(id, multiple = FALSE, type = "ACS"){ ns <- NS(id) tagList( fileInput(ns("ACSFile"), paste("Please Upload ", type, " Data file"), ...
/1_uploadParseModule.R
no_license
WongyuChoi/ParetoBoundarySearch
R
false
false
16,672
r
#Module 1: Upload data and parse them #Note: Does not support native MS SQLServer yet as of 180417 #argument: type: ACS should trigger ACS only feature ACSUploadParseUI <- function(id, multiple = FALSE, type = "ACS"){ ns <- NS(id) tagList( fileInput(ns("ACSFile"), paste("Please Upload ", type, " Data file"), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/efficiency.R \name{are_nr} \alias{are_nr} \title{Newton-Raphson method for the \code{are} function} \usage{ are_nr(estimator, n, startingpoint, level = 0.95) } \arguments{ \item{estimator}{M-type estimator (\code{'huber'} or \code{'tukey'}).}...
/man/are_nr.Rd
no_license
hayoungshin1/GeodRegr
R
false
true
1,633
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/efficiency.R \name{are_nr} \alias{are_nr} \title{Newton-Raphson method for the \code{are} function} \usage{ are_nr(estimator, n, startingpoint, level = 0.95) } \arguments{ \item{estimator}{M-type estimator (\code{'huber'} or \code{'tukey'}).}...
testlist <- list(x1 = numeric(0), x2 = NA_real_, y1 = NaN, y2 = c(NaN, 2.90856445706742e-320, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
/palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612968331-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
415
r
testlist <- list(x1 = numeric(0), x2 = NA_real_, y1 = NaN, y2 = c(NaN, 2.90856445706742e-320, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
# load package FactoMineR and ggplot2 DF.data <- ddr #Random sample of 50% of row numbers created indexes = sample(1:nrow(DF.data), size=0.5*nrow(DF.data)) #training data train50 <- DF.data[indexes,] #test data test50 <- DF.data[-indexes,] setDT(train50) setDT(test50) labels <- train50$Status ts_label <- test50$S...
/XGBoost.R
no_license
khpasalkar/SEM-7-AI-mini-project
R
false
false
1,963
r
# load package FactoMineR and ggplot2 DF.data <- ddr #Random sample of 50% of row numbers created indexes = sample(1:nrow(DF.data), size=0.5*nrow(DF.data)) #training data train50 <- DF.data[indexes,] #test data test50 <- DF.data[-indexes,] setDT(train50) setDT(test50) labels <- train50$Status ts_label <- test50$S...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tensor.R \name{tch_equal} \alias{tch_equal} \title{Equal} \usage{ tch_equal(x, other) } \arguments{ \item{x}{tensor object} \item{other}{tensor object to compare} } \description{ \code{TRUE} if two tensors have the same size and elements, \c...
/man/tch_equal.Rd
permissive
dselivanov/torch
R
false
true
414
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tensor.R \name{tch_equal} \alias{tch_equal} \title{Equal} \usage{ tch_equal(x, other) } \arguments{ \item{x}{tensor object} \item{other}{tensor object to compare} } \description{ \code{TRUE} if two tensors have the same size and elements, \c...
\name{student2003} \alias{student2003} \alias{student2003dict} \docType{data} \title{Data from student questionnaire PISA 2003} \description{ The english version of student questionnaire PISA 2003 is avaliable here \code{http://pisa2003.acer.edu.au/downloads/StQ_Questionnaire2003.pdf}. There is 276165 rows/pupils ...
/man/student2003.Rd
no_license
pbiecek/PISA2003lite
R
false
false
1,229
rd
\name{student2003} \alias{student2003} \alias{student2003dict} \docType{data} \title{Data from student questionnaire PISA 2003} \description{ The english version of student questionnaire PISA 2003 is avaliable here \code{http://pisa2003.acer.edu.au/downloads/StQ_Questionnaire2003.pdf}. There is 276165 rows/pupils ...
library(smoothSurv) ### Name: c2a ### Title: Work Function for 'smoothSurvReg' ### Aliases: c2a ### Keywords: internal utilities ### ** Examples ccoef <- c(0.1, 0.2, 0.15, 0.3, 0.25) ### Compute 'a' counterparts acoef <- c2a(ccoef, 1) print(acoef) ### And back 'c', ccoef2 should be same as ccoef ccoef2 <- a2c(aco...
/data/genthat_extracted_code/smoothSurv/examples/c2a.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
341
r
library(smoothSurv) ### Name: c2a ### Title: Work Function for 'smoothSurvReg' ### Aliases: c2a ### Keywords: internal utilities ### ** Examples ccoef <- c(0.1, 0.2, 0.15, 0.3, 0.25) ### Compute 'a' counterparts acoef <- c2a(ccoef, 1) print(acoef) ### And back 'c', ccoef2 should be same as ccoef ccoef2 <- a2c(aco...
######################################### #R script to produce daily Forecast Plots #Driven by /cair-forecast/aqfs_farrow/scripts/run_plots_R.sh ######################################### library('rgdal') library('ncdf') library('animation') library('maptools') library('SpatialEpi') setwd("/cair-forecast/aqfs_farrow/scr...
/rplots/cmaq_maps_v1.R
no_license
aidanfarrow/aqfs_farrow
R
false
false
5,044
r
######################################### #R script to produce daily Forecast Plots #Driven by /cair-forecast/aqfs_farrow/scripts/run_plots_R.sh ######################################### library('rgdal') library('ncdf') library('animation') library('maptools') library('SpatialEpi') setwd("/cair-forecast/aqfs_farrow/scr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.reduced.dim.R \name{plot.reduced.dim} \alias{plot.reduced.dim} \alias{plot.reduced.dim.} \title{Plot of reduced dimensions and labels} \usage{ \method{plot}{reduced.dim}(object, reduction, assay, clust.method, column, pt.size = 5, cells ...
/man/plot.reduced.dim.Rd
no_license
jcogan1/IBRAP
R
false
true
1,066
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.reduced.dim.R \name{plot.reduced.dim} \alias{plot.reduced.dim} \alias{plot.reduced.dim.} \title{Plot of reduced dimensions and labels} \usage{ \method{plot}{reduced.dim}(object, reduction, assay, clust.method, column, pt.size = 5, cells ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table16_1.R \docType{data} \name{Table16_1} \alias{Table16_1} \title{Table 16_1} \format{ \itemize{ \item \strong{I: }airline id \item \strong{T: }year id \item \strong{Q: }output, in revenue passenger miles, an index number \item \strong{C: ...
/man/Table16_1.Rd
no_license
brunoruas2/gujarati
R
false
true
803
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table16_1.R \docType{data} \name{Table16_1} \alias{Table16_1} \title{Table 16_1} \format{ \itemize{ \item \strong{I: }airline id \item \strong{T: }year id \item \strong{Q: }output, in revenue passenger miles, an index number \item \strong{C: ...
ex1<-read.csv("ex6.7.csv") rownames(ex1)=ex1[,1] ex1<-ex1[,-1] Bartl<-factanal(ex1, 3, scores="Bartlett", rotation="none") head(Bartl[["scores"]]) Regre<-factanal(ex1, 3, scores="regression", rotation="none") head(Regre[["scores"]]) rawdata<-read.csv("data.csv",stringsAsFactors = FALSE) rawdata$Weight<-as.numeric(raw...
/pr7/main.R
no_license
Hc1023/Statistics-in-R
R
false
false
1,981
r
ex1<-read.csv("ex6.7.csv") rownames(ex1)=ex1[,1] ex1<-ex1[,-1] Bartl<-factanal(ex1, 3, scores="Bartlett", rotation="none") head(Bartl[["scores"]]) Regre<-factanal(ex1, 3, scores="regression", rotation="none") head(Regre[["scores"]]) rawdata<-read.csv("data.csv",stringsAsFactors = FALSE) rawdata$Weight<-as.numeric(raw...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DownsampleWrapper.R \name{makeDownsampleWrapper} \alias{makeDownsampleWrapper} \title{Fuse learner with simple downsampling (subsampling).} \usage{ makeDownsampleWrapper(learner, dw.perc = 1, dw.stratify = FALSE) } \arguments{ \item{learner}{...
/man/makeDownsampleWrapper.Rd
no_license
albert3858/mlr
R
false
true
1,849
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DownsampleWrapper.R \name{makeDownsampleWrapper} \alias{makeDownsampleWrapper} \title{Fuse learner with simple downsampling (subsampling).} \usage{ makeDownsampleWrapper(learner, dw.perc = 1, dw.stratify = FALSE) } \arguments{ \item{learner}{...
torus.500.10 <- lapply(1:10,function(i)torusUnif(500,1,2.5)) set.seed(1908) ex1.aggr <- homologyMethodsComp(torus.500.10,2,3,300,10) torus.500.100 <- lapply(1:100,function(i)torusUnif(500,1,2.5)) for(i in 1:10){ set.seed(1908) ex2.temp <- homologyMethodsComp(torus.500.100[((i-1)*10+1):(i*10)],2,3,300,10) if(i=...
/hikitsugi/m1_fields.R
no_license
jetstreamokayasu/ph_jikken2
R
false
false
1,474
r
torus.500.10 <- lapply(1:10,function(i)torusUnif(500,1,2.5)) set.seed(1908) ex1.aggr <- homologyMethodsComp(torus.500.10,2,3,300,10) torus.500.100 <- lapply(1:100,function(i)torusUnif(500,1,2.5)) for(i in 1:10){ set.seed(1908) ex2.temp <- homologyMethodsComp(torus.500.100[((i-1)*10+1):(i*10)],2,3,300,10) if(i=...
####################################################### ## Fitting Regression Trees library(dplyr) library(tree) library(ISLR) ####################################################### ## Use the Carseats dataset to get loose ####################################################### names(Carseats) #####################...
/trees/TreeIntro3.R
no_license
elijahverdoorn/MATH384
R
false
false
6,965
r
####################################################### ## Fitting Regression Trees library(dplyr) library(tree) library(ISLR) ####################################################### ## Use the Carseats dataset to get loose ####################################################### names(Carseats) #####################...
#prepare necessary package library(seqinr) library(ggplot2) #load input file ma<-read.fasta(file = "~/binp29project/microcystis aeruginosa.fasta") maseq<-ma[[1]] mv<-read.fasta(file="~/binp29project/Microcystis viridis.fasta") mvseq<-mv[[1]] #sliding window gc plot function slidingwindowplot<-function(windowsize, inp...
/plot_gc_content_ggplotversion.R
no_license
lsjmouse/binp29_project
R
false
false
1,333
r
#prepare necessary package library(seqinr) library(ggplot2) #load input file ma<-read.fasta(file = "~/binp29project/microcystis aeruginosa.fasta") maseq<-ma[[1]] mv<-read.fasta(file="~/binp29project/Microcystis viridis.fasta") mvseq<-mv[[1]] #sliding window gc plot function slidingwindowplot<-function(windowsize, inp...
testlist <- list(type = -524800L, z = -5.48612406879394e+303) result <- do.call(esreg::G1_fun,testlist) str(result)
/esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609892031-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
115
r
testlist <- list(type = -524800L, z = -5.48612406879394e+303) result <- do.call(esreg::G1_fun,testlist) str(result)
library(tidyverse) library(stringr) data <- read_csv("data/congressional/ny-congressional-counties.csv") join_table <- read_csv("data/join_tables/ny_county_join_table.csv") join_table <- join_table %>% select(-notes) data_join <- data %>% left_join(join_table, by = c("county" = "nnv_county")) data_subset <- data_j...
/scripts/joining-tables.R
no_license
mapping-elections/data-cleaning
R
false
false
938
r
library(tidyverse) library(stringr) data <- read_csv("data/congressional/ny-congressional-counties.csv") join_table <- read_csv("data/join_tables/ny_county_join_table.csv") join_table <- join_table %>% select(-notes) data_join <- data %>% left_join(join_table, by = c("county" = "nnv_county")) data_subset <- data_j...
library(briskaR) ### Name: Precipitation ### Title: Precipitation data ### Aliases: Precipitation ### Keywords: datasets ### ** Examples data(Precipitation)
/data/genthat_extracted_code/briskaR/examples/Precipitation.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
164
r
library(briskaR) ### Name: Precipitation ### Title: Precipitation data ### Aliases: Precipitation ### Keywords: datasets ### ** Examples data(Precipitation)
library(diffEq) ### Name: diffEq-package ### Title: Functions to create the figures of the book "solving ### differential equations in R" by Karline Soetaert, Jeff R. Cash and ### Francesca Mazzia. Published by Springer ### Aliases: diffEq-package diffEq ### Keywords: package ### ** Examples ## Not run: ##D ##...
/data/genthat_extracted_code/diffEq/examples/diffEq.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
765
r
library(diffEq) ### Name: diffEq-package ### Title: Functions to create the figures of the book "solving ### differential equations in R" by Karline Soetaert, Jeff R. Cash and ### Francesca Mazzia. Published by Springer ### Aliases: diffEq-package diffEq ### Keywords: package ### ** Examples ## Not run: ##D ##...
testlist <- list(type = 1229539657L, z = 1.1278053375566e+45) result <- do.call(esreg::G1_fun,testlist) str(result)
/esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609893130-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
115
r
testlist <- list(type = 1229539657L, z = 1.1278053375566e+45) result <- do.call(esreg::G1_fun,testlist) str(result)
library(testthat) library(Fibanocci) test_check("Fibanocci")
/tests/testthat.R
no_license
OscarBarranco/Fibanocci
R
false
false
63
r
library(testthat) library(Fibanocci) test_check("Fibanocci")
# Sample Size Calculation for Cross SEctional Study to Estimate Prevalence # Author: Jaynal Abedin <joystatru@gmail.com> # Date: 14-Jun-2020 # Version: 0.0.1 ################################################# # Libraries ################################################# library(shiny) library(shinydashboard) #library(...
/app.R
permissive
jaynal83/SampleSizeForPrevalence
R
false
false
5,957
r
# Sample Size Calculation for Cross SEctional Study to Estimate Prevalence # Author: Jaynal Abedin <joystatru@gmail.com> # Date: 14-Jun-2020 # Version: 0.0.1 ################################################# # Libraries ################################################# library(shiny) library(shinydashboard) #library(...
library("spacetime") library("sp") data(fires) fires$X <- fires$X * 100000 fires$Y <- fires$Y * 100000 fires$Time <- as.POSIXct(as.Date("1960-01-01")+(fires$Time-1)) names(fires) coordinates(fires) <- c("X", "Y") proj4string(fires) <- CRS("+init=epsg:2229 +ellps=GRS80") plot(fires, pch = 3) # Subset points within X...
/R/PostgreSQL.R
no_license
adithirgis/ambient_data
R
false
false
9,588
r
library("spacetime") library("sp") data(fires) fires$X <- fires$X * 100000 fires$Y <- fires$Y * 100000 fires$Time <- as.POSIXct(as.Date("1960-01-01")+(fires$Time-1)) names(fires) coordinates(fires) <- c("X", "Y") proj4string(fires) <- CRS("+init=epsg:2229 +ellps=GRS80") plot(fires, pch = 3) # Subset points within X...
displayClusters <- function(W, group, xlabel = 'samples', ylabel = 'samples', main.title, ...) { # Visualizes the specified clusters in an affinity matrix # # Args: # W: Affinity matrix # group: labels for each row/column in W # # Returns: # NULL - Plots the image col.ar...
/R/displayClusters.R
no_license
MaximilianLombardo/SNFtoolMax
R
false
false
729
r
displayClusters <- function(W, group, xlabel = 'samples', ylabel = 'samples', main.title, ...) { # Visualizes the specified clusters in an affinity matrix # # Args: # W: Affinity matrix # group: labels for each row/column in W # # Returns: # NULL - Plots the image col.ar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wta_rankings.R \name{wta_rankings} \alias{wta_rankings} \title{Rankings of WTA Players} \format{A data frame with 1,455,338 rows and 5 variables} \source{ \url{https://github.com/JeffSackmann/tennis_wta} } \description{ This dataset contains ...
/man/wta_rankings.Rd
no_license
dashee87/deuce
R
false
true
710
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wta_rankings.R \name{wta_rankings} \alias{wta_rankings} \title{Rankings of WTA Players} \format{A data frame with 1,455,338 rows and 5 variables} \source{ \url{https://github.com/JeffSackmann/tennis_wta} } \description{ This dataset contains ...
library(shiny) library(shinyrecap) library(shinycssloaders) library(shinyhelper) library(magrittr) source("ui-intro.R") source("ui-import.R") source("ui-loglinear.R") source("ui-dga.R") source("ui-lcmcr.R") source("ui-pairwise.R") # Define UI for application that draws a histogram shinyUI( navbarPage( "Multip...
/inst/apps/rcapture/ui.R
permissive
fellstat/shinyrecap
R
false
false
1,381
r
library(shiny) library(shinyrecap) library(shinycssloaders) library(shinyhelper) library(magrittr) source("ui-intro.R") source("ui-import.R") source("ui-loglinear.R") source("ui-dga.R") source("ui-lcmcr.R") source("ui-pairwise.R") # Define UI for application that draws a histogram shinyUI( navbarPage( "Multip...
# Jake Yeung # Date of Creation: 2020-11-04 # File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/BM_merged_with_old/3-filter_H3K27me3.R # rerun LDA rm(list=ls()) library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) hubprefix <- "/home/jyeung/hub_oudenaarden" inf <- file.pa...
/scripts/rstudioserver_analysis/spikeins/BM_merged_with_old/3-filter_H3K27me3.R
no_license
jakeyeung/sortchicAllScripts
R
false
false
1,355
r
# Jake Yeung # Date of Creation: 2020-11-04 # File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/BM_merged_with_old/3-filter_H3K27me3.R # rerun LDA rm(list=ls()) library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) hubprefix <- "/home/jyeung/hub_oudenaarden" inf <- file.pa...
#' Convert reflectance to radiance using linear function coefficients #' #' @description #' The function converts the reflectance (ref) back to radiance (rad) given that #' linear conversion coefficients for both radiance and reflectance are #' available. #' #' @param band raster::RasterStack or raster::Raste...
/satellite/R/convRef2RadLinear.R
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
1,198
r
#' Convert reflectance to radiance using linear function coefficients #' #' @description #' The function converts the reflectance (ref) back to radiance (rad) given that #' linear conversion coefficients for both radiance and reflectance are #' available. #' #' @param band raster::RasterStack or raster::Raste...
#load library lubridate for easy date parsing library(lubridate) #load dplyr for filter() library(dplyr) file <- "data/household_power_consumption.txt" edata <- read.table(file, sep=";", header=T, na.strings="?") ## use lubridate to parse date & time to POSIX edata$Date <- dmy(edata$Date) edata$Time <- hms(edata$T...
/plot1.R
no_license
flipsmash/ExData_Plotting1
R
false
false
780
r
#load library lubridate for easy date parsing library(lubridate) #load dplyr for filter() library(dplyr) file <- "data/household_power_consumption.txt" edata <- read.table(file, sep=";", header=T, na.strings="?") ## use lubridate to parse date & time to POSIX edata$Date <- dmy(edata$Date) edata$Time <- hms(edata$T...
makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() (x) setInverse <- function(inverse) inv <<- inverse getInverse <- function() (inv) list(set = set, get = get,setInverse=setInverse, getInverse =getInvers...
/rdpeng.R
no_license
201618255/ProgrammingAssignment2
R
false
false
606
r
makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() (x) setInverse <- function(inverse) inv <<- inverse getInverse <- function() (inv) list(set = set, get = get,setInverse=setInverse, getInverse =getInvers...
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/oesophagus.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=1,family="gaussian",standardize=FALSE) sink('./Model/EN/Lasso/oesophagus/oesophagus_098.txt',a...
/Model/EN/Lasso/oesophagus/oesophagus_098.R
no_license
leon1003/QSMART
R
false
false
361
r
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/oesophagus.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=1,family="gaussian",standardize=FALSE) sink('./Model/EN/Lasso/oesophagus/oesophagus_098.txt',a...
#load packages: library(ggplot2) library(cowplot) library(dplyr) library(reshape2) theme_set(theme_cowplot()) # read raw data table tab <- read.csv2("MARES_analysis_and_visualization_data.csv", header = T) # subset data, use included papers only tab_Inc <- subset(tab, Include.Exclude.Full == "Include") ta...
/MARES_analysis_and_visualization.R
no_license
M-Heckwolf/BONUS_MARES_coastal_ecosystem_services
R
false
false
8,802
r
#load packages: library(ggplot2) library(cowplot) library(dplyr) library(reshape2) theme_set(theme_cowplot()) # read raw data table tab <- read.csv2("MARES_analysis_and_visualization_data.csv", header = T) # subset data, use included papers only tab_Inc <- subset(tab, Include.Exclude.Full == "Include") ta...
# overview #### # this creates the geometry and demographics for zip codes in parts of the # Kasnas City metro area. # Platte - 29165 # Clay - 29047 # Kansas City - 29511 # Jackson - 29095 # Wyandotte - 20209 # Johnson - 20091 # === # === # === # === # === # === # === # === # === # === # === # === # === # # dependen...
/source/build.R
permissive
slu-openGIS/KC_BOUNDARY_ZCTA
R
false
false
16,614
r
# overview #### # this creates the geometry and demographics for zip codes in parts of the # Kasnas City metro area. # Platte - 29165 # Clay - 29047 # Kansas City - 29511 # Jackson - 29095 # Wyandotte - 20209 # Johnson - 20091 # === # === # === # === # === # === # === # === # === # === # === # === # === # # dependen...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{LodgepolePines} \alias{LodgepolePines} \title{Lodgepole Pine Cone Masses} \format{A data frame with 16 observations on the following 4 variables. \describe{ \item{habitat}{a factor with levels: \code{is...
/man/LodgepolePines.Rd
no_license
cran/abd
R
false
false
1,127
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{LodgepolePines} \alias{LodgepolePines} \title{Lodgepole Pine Cone Masses} \format{A data frame with 16 observations on the following 4 variables. \describe{ \item{habitat}{a factor with levels: \code{is...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CoVVSURF.R \name{repeated_simus} \alias{repeated_simus} \title{Helps to repeat experiments for simulated data} \usage{ repeated_simus(n = 600, nrep = 50, nfor = 50, ...) } \arguments{ \item{n}{Number of observations in simulated data} \item{...
/man/repeated_simus.Rd
no_license
guhjy/CoVVSURF
R
false
true
556
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CoVVSURF.R \name{repeated_simus} \alias{repeated_simus} \title{Helps to repeat experiments for simulated data} \usage{ repeated_simus(n = 600, nrep = 50, nfor = 50, ...) } \arguments{ \item{n}{Number of observations in simulated data} \item{...
#' # A simple example for the usage of the *tm* package #' The following makes use of the *tm* package. You may need to install it from #' [CRAN](https://cran.r-project.org/package=tm) using the code #' `install.packages("tm")` if you want to run this on your computer. (The #' package is already installed on the noteb...
/09-text-as-data/tm-simple.R
no_license
melff/dataman-r
R
false
false
666
r
#' # A simple example for the usage of the *tm* package #' The following makes use of the *tm* package. You may need to install it from #' [CRAN](https://cran.r-project.org/package=tm) using the code #' `install.packages("tm")` if you want to run this on your computer. (The #' package is already installed on the noteb...
\name{prrVal} \alias{prrVal} \title{ P-value determination by pivotal MC with CCC^2 report } \description{ This is a wrapper function calling C++ code that executes a pivotal analysis. The P-Value (prr) is the percentile at which the provided Explained Variation (Rsqr) exists in a large random sampling of the model ...
/pkgs/pivotals/man/prrVal.Rd
no_license
thomas4912/pkgs
R
false
false
2,049
rd
\name{prrVal} \alias{prrVal} \title{ P-value determination by pivotal MC with CCC^2 report } \description{ This is a wrapper function calling C++ code that executes a pivotal analysis. The P-Value (prr) is the percentile at which the provided Explained Variation (Rsqr) exists in a large random sampling of the model ...
# Monte Calo policy evaluation # W MC nie musimy iterować po wszystkich możliwych stanach source("markov-decision-process/grid_world.R") source("markov-decision-process/idx.R") library(zeallot) library(matricks) runif_same_dims <- function(mat, min = 0, max = 1){ data <- runif(length(mat), min = min, max = max) ...
/rl/monte-carlo/first_visit_mc.R
no_license
krzjoa/learning-R
R
false
false
3,480
r
# Monte Calo policy evaluation # W MC nie musimy iterować po wszystkich możliwych stanach source("markov-decision-process/grid_world.R") source("markov-decision-process/idx.R") library(zeallot) library(matricks) runif_same_dims <- function(mat, min = 0, max = 1){ data <- runif(length(mat), min = min, max = max) ...
data<-read.csv("household_power_consumption.txt",sep = ";") dataforgraph<- data[data$Date %in% c("1/2/2007","2/2/2007") ,] dataforgraph$DateTime<-paste(dataforgraph$Date, dataforgraph$Time) dataforgraph$DateTime<-strptime(dataforgraph$DateTime, "%d/%m/%Y %H:%M:%S") png("plot4.png", width=480, height=480) par(mfrow =...
/plot4.R
no_license
fabioposa/ExData_Plotting1
R
false
false
1,190
r
data<-read.csv("household_power_consumption.txt",sep = ";") dataforgraph<- data[data$Date %in% c("1/2/2007","2/2/2007") ,] dataforgraph$DateTime<-paste(dataforgraph$Date, dataforgraph$Time) dataforgraph$DateTime<-strptime(dataforgraph$DateTime, "%d/%m/%Y %H:%M:%S") png("plot4.png", width=480, height=480) par(mfrow =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_subj_info.R \name{get_subj_info} \alias{get_subj_info} \title{Extract subjects info from Ibex data} \usage{ get_subj_info(file_name, form_name = "intro", info = NULL, browser_info = FALSE, short_subj_ids = TRUE, verbose = TRUE, ...) } \...
/man/get_subj_info.Rd
no_license
antonmalko/ibextor
R
false
true
1,653
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_subj_info.R \name{get_subj_info} \alias{get_subj_info} \title{Extract subjects info from Ibex data} \usage{ get_subj_info(file_name, form_name = "intro", info = NULL, browser_info = FALSE, short_subj_ids = TRUE, verbose = TRUE, ...) } \...
\name{InspectScatterplots} \alias{InspectScatterplots} \title{ Pairwise scatterplots and optimal histograms } \description{ Pairwise scatterplots and optimal histograms of all features stored as columns of data are plotted } \usage{ InspectScatterplots(Data,Names=colnames(Data)) } \arguments{ \item{Da...
/man/InspectScatterplots.Rd
no_license
cran/DataVisualizations
R
false
false
1,662
rd
\name{InspectScatterplots} \alias{InspectScatterplots} \title{ Pairwise scatterplots and optimal histograms } \description{ Pairwise scatterplots and optimal histograms of all features stored as columns of data are plotted } \usage{ InspectScatterplots(Data,Names=colnames(Data)) } \arguments{ \item{Da...
##any income range with 5th,10th,20th,...,90th,95th,&99th Percentile range<-c(800,4000,10000,17000,24000,30000,40000,50000,64500,91500,125000,327000) ##creating 100th Percentil which is equal to 99th rangel<-c(range,range[length(range)]) ##creating Percentile values perc<-c(.05,.1,.2,.3,.4,.5,.6,.7,.8,.9,.95,.99,1) ##f...
/scripts/r_scripts/gini_simulator.r
no_license
CommerceDataService/midaas-api
R
false
false
1,739
r
##any income range with 5th,10th,20th,...,90th,95th,&99th Percentile range<-c(800,4000,10000,17000,24000,30000,40000,50000,64500,91500,125000,327000) ##creating 100th Percentil which is equal to 99th rangel<-c(range,range[length(range)]) ##creating Percentile values perc<-c(.05,.1,.2,.3,.4,.5,.6,.7,.8,.9,.95,.99,1) ##f...
library(caTools) library(rms) require(randomForest) df0 = read.csv("./data/HPtrain.csv") df2 = read.csv("./data/HPtest.csv") str(df0) str(df2) r1 = nrow(df0)#1460 r2 = nrow(df2)#1459 c1 = df0[,c(1:80)] str(c1) df1 = rbind(c1,df2) str(df1) colSums(is.na(df1)) df1$MSZoning[is.na(df1$MSZoning)] = names(table(df1$MSZoning)...
/Modelling/HousePrice3.R
no_license
gosh76/Rinaction
R
false
false
3,334
r
library(caTools) library(rms) require(randomForest) df0 = read.csv("./data/HPtrain.csv") df2 = read.csv("./data/HPtest.csv") str(df0) str(df2) r1 = nrow(df0)#1460 r2 = nrow(df2)#1459 c1 = df0[,c(1:80)] str(c1) df1 = rbind(c1,df2) str(df1) colSums(is.na(df1)) df1$MSZoning[is.na(df1$MSZoning)] = names(table(df1$MSZoning)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nodesplit-class.R \name{print.nodesplit} \alias{print.nodesplit} \title{Prints summary results from a nodesplit object} \usage{ \method{print}{nodesplit}(x, ...) } \arguments{ \item{x}{An object of \code{class("nodesplit")}} \item{...}{furth...
/man/print.nodesplit.Rd
no_license
hugaped/MBNMAdose
R
false
true
431
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nodesplit-class.R \name{print.nodesplit} \alias{print.nodesplit} \title{Prints summary results from a nodesplit object} \usage{ \method{print}{nodesplit}(x, ...) } \arguments{ \item{x}{An object of \code{class("nodesplit")}} \item{...}{furth...
\name{id_quality} \alias{id_quality} \title{Identification quality} \description{ Reports quality for a given level of identification (spectra, peptide or protein). } \usage{ id_quality(object, filter=NULL, level=c("PSM", "peptide", "accession")) } \arguments{ \item{object}{An instanc...
/man/id_quality.Rd
no_license
vladpetyuk/MSnID
R
false
false
1,325
rd
\name{id_quality} \alias{id_quality} \title{Identification quality} \description{ Reports quality for a given level of identification (spectra, peptide or protein). } \usage{ id_quality(object, filter=NULL, level=c("PSM", "peptide", "accession")) } \arguments{ \item{object}{An instanc...
#' Override window order and frame #' #' These allow you to override the `PARTITION BY` and `ORDER BY` clauses #' of window functions generated by grouped mutates. #' #' @inheritParams arrange.tbl_lazy #' @param ... Variables to order by #' @export #' @examples #' library(dplyr, warn.conflicts = FALSE) #' #' db <- memd...
/R/verb-window.R
permissive
tidyverse/dbplyr
R
false
false
2,853
r
#' Override window order and frame #' #' These allow you to override the `PARTITION BY` and `ORDER BY` clauses #' of window functions generated by grouped mutates. #' #' @inheritParams arrange.tbl_lazy #' @param ... Variables to order by #' @export #' @examples #' library(dplyr, warn.conflicts = FALSE) #' #' db <- memd...
library(pacman) ### Name: p_isinstalled ### Title: Checks if Package is Installed ### Aliases: p_isinstalled ### Keywords: installed package ### ** Examples ## Not run: ##D p_installed(pacman) ##D p_installed(fakePackage) ## End(Not run)
/data/genthat_extracted_code/pacman/examples/p_isinstalled.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
246
r
library(pacman) ### Name: p_isinstalled ### Title: Checks if Package is Installed ### Aliases: p_isinstalled ### Keywords: installed package ### ** Examples ## Not run: ##D p_installed(pacman) ##D p_installed(fakePackage) ## End(Not run)
library(survival) # # Survival curves could fail with data that was almost exact. # The calculations use both unique() and table(), which don't # necessarily give the same number of values. # Check that the routine handles this properly # tdata <- data.frame(time=c(1,2, sqrt(2)^2, 2, sqrt(2)^2), ...
/Tools/DECoN-master/Windows/packrat/lib-R/survival/tests/rounding.R
permissive
robinwijngaard/TFM_code
R
false
false
496
r
library(survival) # # Survival curves could fail with data that was almost exact. # The calculations use both unique() and table(), which don't # necessarily give the same number of values. # Check that the routine handles this properly # tdata <- data.frame(time=c(1,2, sqrt(2)^2, 2, sqrt(2)^2), ...
# File name: ex_mvn_spmd.r # Run: mpiexec -np 2 Rscript --vanilla ex_mvn_spmd.r ### Load pbdMPI and initial the communicator. library(pbdMPI, quiet = TRUE) init() ### Main codes start from here. set.seed(1234) N <- 100 p <- 2 X <- matrix(rnorm(N * p), ncol = p) mu <- c(0.1, 0.2) Sigma <- matrix(c(0.9, 0.1, 0.1, 0.9),...
/hpsc/cookbook/ex_mvn_spmd.r
no_license
snoweye/snoweye.github.io
R
false
false
1,043
r
# File name: ex_mvn_spmd.r # Run: mpiexec -np 2 Rscript --vanilla ex_mvn_spmd.r ### Load pbdMPI and initial the communicator. library(pbdMPI, quiet = TRUE) init() ### Main codes start from here. set.seed(1234) N <- 100 p <- 2 X <- matrix(rnorm(N * p), ncol = p) mu <- c(0.1, 0.2) Sigma <- matrix(c(0.9, 0.1, 0.1, 0.9),...
testlist <- list(A = structure(c(1.09682573376757e-321, 5.42966093561423e-312, 1.96568459603274e-236, 2.2250738585072e-308, 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), .Dim = 6:7), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivaria...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613125654-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
358
r
testlist <- list(A = structure(c(1.09682573376757e-321, 5.42966093561423e-312, 1.96568459603274e-236, 2.2250738585072e-308, 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), .Dim = 6:7), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivaria...
# READ AND SELECT DATA library(tidyverse) # I used tidyverse for getting and cleaning data power_cons_full <- read_delim("household_power_consumption.txt", delim = ";", col_types = "ccddddddd", na = "?") power_cons <- power_con...
/plot4.R
no_license
LuigiBernardi/ExData_Plotting1
R
false
false
1,935
r
# READ AND SELECT DATA library(tidyverse) # I used tidyverse for getting and cleaning data power_cons_full <- read_delim("household_power_consumption.txt", delim = ";", col_types = "ccddddddd", na = "?") power_cons <- power_con...
#' Run Benjamini-Hochberg procedure with log correction #' #' Runs the adjusted Benjamini-Hochberg procedure with q/S(p) replacing q #' where S(p) = 1 + 1/2 + ... + 1/p. #' #' @param X A nxp design matrix. #' @param y A vector of n responses. #' @param fdr The desired false discovery rate. #' #' @return A list containi...
/R/run_BHq_log.R
no_license
svteichman/prelim.knockoffs
R
false
false
1,522
r
#' Run Benjamini-Hochberg procedure with log correction #' #' Runs the adjusted Benjamini-Hochberg procedure with q/S(p) replacing q #' where S(p) = 1 + 1/2 + ... + 1/p. #' #' @param X A nxp design matrix. #' @param y A vector of n responses. #' @param fdr The desired false discovery rate. #' #' @return A list containi...
rm(list=ls()) set.seed(1) library(readxl) library(rpart) library(rpart.plot) library(zoo) library(tree) library(class) confmat<- function(table){ tp = table[4] fn = table[3] fp = table[2] tn = table[1] total_recs<- sum(tp, tn, fn, fp) recall_rate<- round(tp/(tp+fn),5) precision_rate<- round(tp/(tp+fp),5...
/Project Back-Up Code.R
no_license
bakerb545/DataAnalytics2020_Bailey_Baker
R
false
false
28,233
r
rm(list=ls()) set.seed(1) library(readxl) library(rpart) library(rpart.plot) library(zoo) library(tree) library(class) confmat<- function(table){ tp = table[4] fn = table[3] fp = table[2] tn = table[1] total_recs<- sum(tp, tn, fn, fp) recall_rate<- round(tp/(tp+fn),5) precision_rate<- round(tp/(tp+fp),5...
setwd("/Users/shua784/Dropbox/PNNL/Projects/Reach_scale_model/") rm(list=ls()) library(fields) library(AtmRay) library(maptools) library(raster) library(plot3D) ##------------------INPUT-------------------------------## fname_hanford = "data/geoFramework/hanford.asc" fname_basalt= "data/geoFramework/top_of_basalt.a...
/70km_reach_model/pre_process/grid_200m/HFR_prepare_facies_boundary.R
no_license
mrubayet/archived_codes_for_sfa_modeling
R
false
false
14,767
r
setwd("/Users/shua784/Dropbox/PNNL/Projects/Reach_scale_model/") rm(list=ls()) library(fields) library(AtmRay) library(maptools) library(raster) library(plot3D) ##------------------INPUT-------------------------------## fname_hanford = "data/geoFramework/hanford.asc" fname_basalt= "data/geoFramework/top_of_basalt.a...
riv_mcdest <- function(Y, Xend, Xex, Zinst, intercept) { if (is.null(Xex)) { X <- Xend Z <- cbind(Xend, Zinst, Y) } else { X <- cbind(Xend, Xex) Z <- cbind(Xend, Zinst, Xex, Y) } res1 <- CovMcd(Z) L <- res1@center V <- res1@cov n <- length(Y) p <- ncol(X...
/R/riv_mcdest.R
no_license
cran/riv
R
false
false
1,335
r
riv_mcdest <- function(Y, Xend, Xex, Zinst, intercept) { if (is.null(Xex)) { X <- Xend Z <- cbind(Xend, Zinst, Y) } else { X <- cbind(Xend, Xex) Z <- cbind(Xend, Zinst, Xex, Y) } res1 <- CovMcd(Z) L <- res1@center V <- res1@cov n <- length(Y) p <- ncol(X...
#Data Wrangling R for Data Science #Load Libraries library(nycflights13) library(tidyverse) #Question 1: **Question 1**: The `player` tibble below is meant to record De'Andre Hunter and Kyle Guy's dates of birth and heights. Why can't you tidy it up with the [`spread()`][12.3.2] function? How could you add a new co...
/submissions/04-r4ds-Data-Wrangling-mcr3zc.R
no_license
GCOM7140/r4ds-exercises
R
false
false
4,694
r
#Data Wrangling R for Data Science #Load Libraries library(nycflights13) library(tidyverse) #Question 1: **Question 1**: The `player` tibble below is meant to record De'Andre Hunter and Kyle Guy's dates of birth and heights. Why can't you tidy it up with the [`spread()`][12.3.2] function? How could you add a new co...
#!/usr/bin/env Rscript #library(tidyverse) library(ggtree) # Get input tree file args <- commandArgs(trailingOnly = TRUE) treefile <- args[1] print(paste("reading ",treefile)) # Start the clock start <- Sys.time() # Run, Forrest, Run! tree <- read.tree(treefile) # Stop the clock end <- Sys.time() duration <- difft...
/ggtree/read_newick.R
no_license
lczech/genesis-gappa-paper
R
false
false
391
r
#!/usr/bin/env Rscript #library(tidyverse) library(ggtree) # Get input tree file args <- commandArgs(trailingOnly = TRUE) treefile <- args[1] print(paste("reading ",treefile)) # Start the clock start <- Sys.time() # Run, Forrest, Run! tree <- read.tree(treefile) # Stop the clock end <- Sys.time() duration <- difft...
library(lubridate) library(dplyr) library(data.table) ########################################## Read the cleaned subsets of data produced in openrefine after previous R step#### #####################################then filter just the annotated ones and in the end export one merged file################## ...
/1.1 - loadData_CLEANED.R
no_license
marianapatriciooo/Twitter_cube_UTH
R
false
false
3,200
r
library(lubridate) library(dplyr) library(data.table) ########################################## Read the cleaned subsets of data produced in openrefine after previous R step#### #####################################then filter just the annotated ones and in the end export one merged file################## ...
65a15150753e59ab2588e7cc04727f95 query50_query44_1344.qdimacs 1026 2775
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query50_query44_1344/query50_query44_1344.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
71
r
65a15150753e59ab2588e7cc04727f95 query50_query44_1344.qdimacs 1026 2775
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kaplan.R \name{kaplanUI} \alias{kaplanUI} \title{kaplanUI: shiny module UI for kaplan-meier plot} \usage{ kaplanUI(id) } \arguments{ \item{id}{id} } \value{ Shiny module UI for kaplan-meier plot } \description{ Shiny module UI for kaplan-meie...
/man/kaplanUI.Rd
permissive
jinseob2kim/jsmodule
R
false
true
962
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kaplan.R \name{kaplanUI} \alias{kaplanUI} \title{kaplanUI: shiny module UI for kaplan-meier plot} \usage{ kaplanUI(id) } \arguments{ \item{id}{id} } \value{ Shiny module UI for kaplan-meier plot } \description{ Shiny module UI for kaplan-meie...
source('seed_hash.R') source('mcmc_urn.R') source('diagnostics.R') library(parallel) NMONTE <- 1:100 GELMAN.CHAINS <- 10 NUM.WORKERS <- 8 THETAS <- c(0.25, 0.5, 1) DIM.VALUES <- c(100, 250, 1000, 4000) CUT.OFF.MULT <- seq(0.4, 4, by=0.2) SEED.BASE <- '1045ww' params <- expand.grid( d=DIM.VALUES, cut.off.mult=CU...
/diagnostics_urn.R
no_license
jgorham/mcmc_diagnostics
R
false
false
2,131
r
source('seed_hash.R') source('mcmc_urn.R') source('diagnostics.R') library(parallel) NMONTE <- 1:100 GELMAN.CHAINS <- 10 NUM.WORKERS <- 8 THETAS <- c(0.25, 0.5, 1) DIM.VALUES <- c(100, 250, 1000, 4000) CUT.OFF.MULT <- seq(0.4, 4, by=0.2) SEED.BASE <- '1045ww' params <- expand.grid( d=DIM.VALUES, cut.off.mult=CU...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get.gcr.R \name{get.MSstats_gcr} \alias{get.MSstats_gcr} \title{Extract ComparisonResult from a MSstats group comparision object} \usage{ get.MSstats_gcr(x, label) } \arguments{ \item{x}{A group comparision result as generated by \code{\link[...
/man/get.MSstats_gcr.Rd
permissive
tobiasko/posprot
R
false
true
906
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get.gcr.R \name{get.MSstats_gcr} \alias{get.MSstats_gcr} \title{Extract ComparisonResult from a MSstats group comparision object} \usage{ get.MSstats_gcr(x, label) } \arguments{ \item{x}{A group comparision result as generated by \code{\link[...
########################################################### ###Code to convert shapefile points to gpx format for upload to Garmin GPS ###Prepared by Jasper Slingsby ###February 2020 ########################################################### library(sf) library(tidyverse) # Get points pts <- st_read("/home/jasper/Dr...
/Code/shp_to_gpx.R
no_license
jslingsby/RReTool
R
false
false
1,482
r
########################################################### ###Code to convert shapefile points to gpx format for upload to Garmin GPS ###Prepared by Jasper Slingsby ###February 2020 ########################################################### library(sf) library(tidyverse) # Get points pts <- st_read("/home/jasper/Dr...
library(dplyr) library(randomForest) library(gbm) library(h2o) library(corrplot) library(e1071) library(caret) library(fscaret) library(xgboost) library(Matrix) library(neuralnet) library(nnet) library(MLmetrics) ################################### #EDA ################################### #registerDoMC(cores = 2) train...
/Project3-MachineLearning/JohnEromeUtunedi/proj4.R
no_license
yunweidashuju/online_bootcamp_project
R
false
false
20,915
r
library(dplyr) library(randomForest) library(gbm) library(h2o) library(corrplot) library(e1071) library(caret) library(fscaret) library(xgboost) library(Matrix) library(neuralnet) library(nnet) library(MLmetrics) ################################### #EDA ################################### #registerDoMC(cores = 2) train...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bloodmeal_constant.R \name{bloodmeal_constant_module} \alias{bloodmeal_constant_module} \title{This bloodmeal is for testing. It sends out the same data each time.} \usage{ bloodmeal_constant_module(parameters) } \arguments{ \item{parameters}...
/macro/man/bloodmeal_constant_module.Rd
no_license
dd-harp/MASH
R
false
true
510
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bloodmeal_constant.R \name{bloodmeal_constant_module} \alias{bloodmeal_constant_module} \title{This bloodmeal is for testing. It sends out the same data each time.} \usage{ bloodmeal_constant_module(parameters) } \arguments{ \item{parameters}...
# This file was generated by Rcpp::compileAttributes # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 hvolume2d_Rcpp <- function(S, x1, x2) { .Call('GPareto_hvolume2d_Rcpp', PACKAGE = 'GPareto', S, x1, x2) } exipsi_Rcpp <- function(a, b, m, s) { .Call('GPareto_exipsi_Rcpp', PACKAGE = 'GPareto', a, b, m...
/GPareto/R/RcppExports.R
no_license
ingted/R-Examples
R
false
false
447
r
# This file was generated by Rcpp::compileAttributes # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 hvolume2d_Rcpp <- function(S, x1, x2) { .Call('GPareto_hvolume2d_Rcpp', PACKAGE = 'GPareto', S, x1, x2) } exipsi_Rcpp <- function(a, b, m, s) { .Call('GPareto_exipsi_Rcpp', PACKAGE = 'GPareto', a, b, m...
library(shiny) library(ggplot2) shinyServer(function(input, output) { data <- reactive({ if(input$reload.data > 0 | TRUE) { data <- data.frame(x=integer(), y=integer(), run=integer()) for(i in seq_len(input$runs)) { vals <- sample(input$odds, input$games, replace=TRUE) vals <- ifelse(vals==1, 1, -1) ...
/inst/shiny/gambler/server.R
no_license
jbryer/ShinyDemo
R
false
false
1,144
r
library(shiny) library(ggplot2) shinyServer(function(input, output) { data <- reactive({ if(input$reload.data > 0 | TRUE) { data <- data.frame(x=integer(), y=integer(), run=integer()) for(i in seq_len(input$runs)) { vals <- sample(input$odds, input$games, replace=TRUE) vals <- ifelse(vals==1, 1, -1) ...
#' Summarizes data #' #' @param data A data frame containing the group collum for grouping info #' #' @return a data frame containing count, max, mean, standard deviation, #' standard error of mean, 95% confidence interval #' @export #' #' @examples #' data <- iris #' colnames(data)[5] <- "group" #' summaryAll(data) su...
/R/summaryAll.R
no_license
ZhonghuiGai/ggroup
R
false
false
1,519
r
#' Summarizes data #' #' @param data A data frame containing the group collum for grouping info #' #' @return a data frame containing count, max, mean, standard deviation, #' standard error of mean, 95% confidence interval #' @export #' #' @examples #' data <- iris #' colnames(data)[5] <- "group" #' summaryAll(data) su...