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
\name{componerPeriodos} \alias{componerPeriodos} \title{Function to create a vector of texts with the periods to consult} \description{ Function to create a vector of texts with the periods to consult. } \usage{ componerPeriodos(annos, mes = NULL, frecuencia = "TRIMESTRE") } \arguments{ \item{annos}{ ...
/man/componerPeriodos.Rd
no_license
cran/leerSIECyL
R
false
false
1,102
rd
\name{componerPeriodos} \alias{componerPeriodos} \title{Function to create a vector of texts with the periods to consult} \description{ Function to create a vector of texts with the periods to consult. } \usage{ componerPeriodos(annos, mes = NULL, frecuencia = "TRIMESTRE") } \arguments{ \item{annos}{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gating-functions.R \name{drawPolygon} \alias{drawPolygon} \title{Draw Polygon(s) to Gate Flow Cytometry Populations.} \usage{ drawPolygon(fr, channels, alias = NULL, plot = TRUE, labels = TRUE, ...) } \arguments{ \item{fr}{a \code{\link[flo...
/man/drawPolygon.Rd
no_license
gfinak/cytoRSuite
R
false
true
1,954
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gating-functions.R \name{drawPolygon} \alias{drawPolygon} \title{Draw Polygon(s) to Gate Flow Cytometry Populations.} \usage{ drawPolygon(fr, channels, alias = NULL, plot = TRUE, labels = TRUE, ...) } \arguments{ \item{fr}{a \code{\link[flo...
# Clean data from scrape # Setup ------------------------------------------------------------------- library(lubridate) library(dplyr) library(stringr) options(stringsAsFactors=FALSE) # Read in data ------------------------------------------------------------ # Load scraped_files <- list.files(path = here::here("...
/code/final_code/clean.R
no_license
kbmorales/pornPrEP
R
false
false
2,097
r
# Clean data from scrape # Setup ------------------------------------------------------------------- library(lubridate) library(dplyr) library(stringr) options(stringsAsFactors=FALSE) # Read in data ------------------------------------------------------------ # Load scraped_files <- list.files(path = here::here("...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/listOMLRunEvaluations.R \name{listOMLRunEvaluations} \alias{listOMLRunEvaluations} \title{List run results of a task.} \usage{ listOMLRunEvaluations(task.id = NULL, setup.id = NULL, flow.id = NULL, run.id = NULL, uploader.id = NULL, verbosi...
/man/listOMLRunEvaluations.Rd
no_license
gitter-badger/r
R
false
true
1,540
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/listOMLRunEvaluations.R \name{listOMLRunEvaluations} \alias{listOMLRunEvaluations} \title{List run results of a task.} \usage{ listOMLRunEvaluations(task.id = NULL, setup.id = NULL, flow.id = NULL, run.id = NULL, uploader.id = NULL, verbosi...
# This function is for Multiple Linear Regression # For convenience: after running the code, you can run the command fix(models) to have a look at the models used here. #Preparing Data library(MASS) library(ISLR) #Reading the file is not needed if you are loading ISLR. ISLR already includes Boston as a dataset. Bost...
/MLRegression.R
no_license
fazeelahmedsyed/ISLR
R
false
false
2,925
r
# This function is for Multiple Linear Regression # For convenience: after running the code, you can run the command fix(models) to have a look at the models used here. #Preparing Data library(MASS) library(ISLR) #Reading the file is not needed if you are loading ISLR. ISLR already includes Boston as a dataset. Bost...
#' Add a TickTick Task from the console #' @export add_ticktick_task <- function(task, description) { if (is.null(Sys.getenv("ticktick_email"))) { stop('ticktick_email is null') } postfixR::send_email(to = Sys.getenv("ticktick_email"), ...
/R/add_ticktick_task.R
no_license
meerapatelmd/secretary
R
false
false
399
r
#' Add a TickTick Task from the console #' @export add_ticktick_task <- function(task, description) { if (is.null(Sys.getenv("ticktick_email"))) { stop('ticktick_email is null') } postfixR::send_email(to = Sys.getenv("ticktick_email"), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qott.R \name{F.Y0} \alias{F.Y0} \title{F.Y0} \usage{ F.Y0( firststep = c("dr", "qr", "ll"), xformla, data, yvals, tvals, h = NULL, retF = TRUE, retZ = FALSE ) } \arguments{ \item{firststep}{whether to use distribution regressi...
/man/F.Y0.Rd
no_license
bcallaway11/csabounds
R
false
true
1,796
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qott.R \name{F.Y0} \alias{F.Y0} \title{F.Y0} \usage{ F.Y0( firststep = c("dr", "qr", "ll"), xformla, data, yvals, tvals, h = NULL, retF = TRUE, retZ = FALSE ) } \arguments{ \item{firststep}{whether to use distribution regressi...
## the two functions below leverage R's lexical scoping to optimize the computation of inverse matrix ## 'makeCacheMatrix' function creates a special object that holds a matrix and its inverse for caching purposes ## 'cacheSolve' function attempts to retrieve the inverse matrix from the passed in object x which has bee...
/cachematrix.R
no_license
kristenphan/ComputeAndCacheMatrixInverse
R
false
false
1,718
r
## the two functions below leverage R's lexical scoping to optimize the computation of inverse matrix ## 'makeCacheMatrix' function creates a special object that holds a matrix and its inverse for caching purposes ## 'cacheSolve' function attempts to retrieve the inverse matrix from the passed in object x which has bee...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/realizedMeasures.R \name{rSemiCov} \alias{rSemiCov} \title{Realized semicovariance} \usage{ rSemiCov( rData, cor = FALSE, alignBy = NULL, alignPeriod = NULL, makeReturns = FALSE ) } \arguments{ \item{rData}{an \code{xts} or \code{da...
/man/rSemiCov.Rd
no_license
jonathancornelissen/highfrequency
R
false
true
3,883
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/realizedMeasures.R \name{rSemiCov} \alias{rSemiCov} \title{Realized semicovariance} \usage{ rSemiCov( rData, cor = FALSE, alignBy = NULL, alignPeriod = NULL, makeReturns = FALSE ) } \arguments{ \item{rData}{an \code{xts} or \code{da...
## load required packages and set basic options ################################################################################ library("tidyverse"); theme_set(theme_minimal()) library("parallel"); options(mc.cores = detectCores()) library("rjags"); library("runjags") library("bayesplot") library("bench") library("he...
/simple-models/continuous/normal/normal-prior/normal-normal-jags.R
no_license
dkahle/Bayes-Computational-Methods
R
false
false
2,158
r
## load required packages and set basic options ################################################################################ library("tidyverse"); theme_set(theme_minimal()) library("parallel"); options(mc.cores = detectCores()) library("rjags"); library("runjags") library("bayesplot") library("bench") library("he...
# writes out some stats on data coverage read.wc2 <- function(ptt, wd = getwd(), tag, pop, type = 'sst'){ if(substr(wd, nchar(wd), nchar(wd)) == '/'){ } else{ wd <- paste(wd, '/', sep='') } if(type == 'pdt'){ # READ IN PDT DATA FROM WC FILES data <- utils::read.table(paste(wd, ptt,'-PDTs....
/read.wc2.r
no_license
camrinbraun/HMMoce_run
R
false
false
4,315
r
# writes out some stats on data coverage read.wc2 <- function(ptt, wd = getwd(), tag, pop, type = 'sst'){ if(substr(wd, nchar(wd), nchar(wd)) == '/'){ } else{ wd <- paste(wd, '/', sep='') } if(type == 'pdt'){ # READ IN PDT DATA FROM WC FILES data <- utils::read.table(paste(wd, ptt,'-PDTs....
/chap03/DVD_online3.R
no_license
KSDeng/Mathematical-Modeling-with-R
R
false
false
1,597
r
\name{Reduction.Phase} \alias{Reduction.Phase} \title{Reduction by successive traversal of hypercubes proposed by Cox, D. R. & Battey, H. S. (2017)} \description{ This function traverses successively lower dimensional hypercubes, discarding variables according to the appropriate decision rules. It provides the number ...
/HCmodelSets/man/Reduction.Phase.Rd
no_license
hhhelfer/HCmodelSets
R
false
false
3,891
rd
\name{Reduction.Phase} \alias{Reduction.Phase} \title{Reduction by successive traversal of hypercubes proposed by Cox, D. R. & Battey, H. S. (2017)} \description{ This function traverses successively lower dimensional hypercubes, discarding variables according to the appropriate decision rules. It provides the number ...
fancy <- read.csv("../data/fancyhouse.csv") house <- read.csv("../data/housingprice.csv") train <- read.csv("../data/train.data.csv") test <- read.csv("../data/test.data.csv") library(kableExtra) library(dplyr) library(ggplot2) options(digits=6) ### (a) # R2 indicates the percentage of the variance in the depend...
/code/homework2.r
no_license
cassiemeow/STA243-HW2
R
false
false
11,750
r
fancy <- read.csv("../data/fancyhouse.csv") house <- read.csv("../data/housingprice.csv") train <- read.csv("../data/train.data.csv") test <- read.csv("../data/test.data.csv") library(kableExtra) library(dplyr) library(ggplot2) options(digits=6) ### (a) # R2 indicates the percentage of the variance in the depend...
library(pdftools) library(stringr) library(plotly) # Get current time for later use currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone()) attributes(currenttime)$tzone <- "Asia/Hong_Kong" currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="") # download latest data file download.fi...
/2020-12-18/analysis.R
no_license
tszhim-tsui/2020-hk-covid19
R
false
false
27,307
r
library(pdftools) library(stringr) library(plotly) # Get current time for later use currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone()) attributes(currenttime)$tzone <- "Asia/Hong_Kong" currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="") # download latest data file download.fi...
# Exercise 2: using `*apply()` functions # Create a *list* of 10 random numbers. Use the `runif()` function to make a # vector of random numbers, then use `as.list()` to convert that to a list rand_list <- as.list(runif(10, 1, 100)) # Use `lapply()` to apply the `round()` function to each number, rounding it to # ...
/chapter-08-exercises/exercise-2/exercise.R
permissive
info-201a-sp21/exercises-avaghela-1925502
R
false
false
1,852
r
# Exercise 2: using `*apply()` functions # Create a *list* of 10 random numbers. Use the `runif()` function to make a # vector of random numbers, then use `as.list()` to convert that to a list rand_list <- as.list(runif(10, 1, 100)) # Use `lapply()` to apply the `round()` function to each number, rounding it to # ...
library(foreach) library(caret) partialDependence <- function( object, X, predictor, pred.fun, verbose = T, grid.size=10, grid.window=c(0, 1), sample.rate=1, allow.parallel = T){ if (missing(object)) stop('A model object must be supplied') if (missing(X)) stop('Training data must be supplied') if (mis...
/functional/ml/R/partial_dependence.R
no_license
eric-czech/portfolio
R
false
false
2,858
r
library(foreach) library(caret) partialDependence <- function( object, X, predictor, pred.fun, verbose = T, grid.size=10, grid.window=c(0, 1), sample.rate=1, allow.parallel = T){ if (missing(object)) stop('A model object must be supplied') if (missing(X)) stop('Training data must be supplied') if (mis...
\name{power.curve} \alias{power.curve} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Generate a power curve } \description{ Generate a power curve either based on Sobel test or bootstrap } \usage{ power.curve(model, nobs=100, method='normal', nrep=1000, nboot=1000, alpha=.95, skewne...
/man/power.curve.Rd
no_license
mingsgen/bmemLavaan
R
false
false
3,621
rd
\name{power.curve} \alias{power.curve} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Generate a power curve } \description{ Generate a power curve either based on Sobel test or bootstrap } \usage{ power.curve(model, nobs=100, method='normal', nrep=1000, nboot=1000, alpha=.95, skewne...
library(ISLR) library(boot) library(dplyr) plot(mpg ~ horsepower,data = ISLR::Auto) nrow(ISLR::Auto) == 392 set.seed(123) vct_random_row <- sample(nrow(ISLR::Auto)) # ========CROSS VALIDATION BASIC PROCESS =============== # split into test and training.....set parameters on training # then see how they go on test.......
/cross_validation.r
no_license
thefactmachine/forrest_experiments
R
false
false
3,136
r
library(ISLR) library(boot) library(dplyr) plot(mpg ~ horsepower,data = ISLR::Auto) nrow(ISLR::Auto) == 392 set.seed(123) vct_random_row <- sample(nrow(ISLR::Auto)) # ========CROSS VALIDATION BASIC PROCESS =============== # split into test and training.....set parameters on training # then see how they go on test.......
#Example 1.12 Section I. Solving Linear Systems page7 #package used matlib v0.9.1 #install package using command: install.packages("matlib") #Github reposiory of matlib :https://github.com/friendly/matlib #installing and loading library #install.packages("matlib") library("matlib") #program A <- matrix(c(1,2,2,3,1,2...
/Ajay Ragh/R_TBC/Linear Algebra/chapter1/Ex1_12.R
no_license
sahridhaya/BitPlease
R
false
false
701
r
#Example 1.12 Section I. Solving Linear Systems page7 #package used matlib v0.9.1 #install package using command: install.packages("matlib") #Github reposiory of matlib :https://github.com/friendly/matlib #installing and loading library #install.packages("matlib") library("matlib") #program A <- matrix(c(1,2,2,3,1,2...
#' Plot method for plant objects. #' #' @param x The \code{plant} object to be plotted. #' @param trunk.width The plotting line width for the trunk. Successive child #' branches are plotted with increasingly finer \code{lwd}, to a minimum of #' \code{1}. #' @param add If \code{TRUE}, the plant will be added to the...
/R/plot.plant.R
no_license
xtmgah/trees
R
false
false
848
r
#' Plot method for plant objects. #' #' @param x The \code{plant} object to be plotted. #' @param trunk.width The plotting line width for the trunk. Successive child #' branches are plotted with increasingly finer \code{lwd}, to a minimum of #' \code{1}. #' @param add If \code{TRUE}, the plant will be added to the...
# loading the dataset into R. # If you have the dataset .txt in your directory you can use this way: "./household_power_consumption.txt". Otherwise, please use ./data/household_power_consumption.txt # Read.table is a function that read a file in table forma and creates a data frame from it. # "./data/household_power_...
/plot1.R
no_license
jleandroj/ExData_Plotting1
R
false
false
1,892
r
# loading the dataset into R. # If you have the dataset .txt in your directory you can use this way: "./household_power_consumption.txt". Otherwise, please use ./data/household_power_consumption.txt # Read.table is a function that read a file in table forma and creates a data frame from it. # "./data/household_power_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.ecr_operations.R \name{list_images} \alias{list_images} \title{Lists all the image IDs for a given repository} \usage{ list_images(registryId = NULL, repositoryName, nextToken = NULL, maxResults = NULL, filter = NULL) } \arguments{ \it...
/service/paws.ecr/man/list_images.Rd
permissive
CR-Mercado/paws
R
false
true
2,654
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.ecr_operations.R \name{list_images} \alias{list_images} \title{Lists all the image IDs for a given repository} \usage{ list_images(registryId = NULL, repositoryName, nextToken = NULL, maxResults = NULL, filter = NULL) } \arguments{ \it...
mapa = function(lista, titulo1, nombre, label){ library(maps) require(fields) require(mapdata) library(ggplot2) library(metR) library(RColorBrewer) library(mapproj) titulo = c("DJF", "MAM", "JJA", "SON") for(i in 1:4){ value = array(lista[[i]]*mask, dim = 23*30) data = matrix(data = NA, ...
/mapa.R
no_license
LucianoAndrian/CC
R
false
false
2,401
r
mapa = function(lista, titulo1, nombre, label){ library(maps) require(fields) require(mapdata) library(ggplot2) library(metR) library(RColorBrewer) library(mapproj) titulo = c("DJF", "MAM", "JJA", "SON") for(i in 1:4){ value = array(lista[[i]]*mask, dim = 23*30) data = matrix(data = NA, ...
## I have two main functions: makeCacheMatrix() and cacheSolve(), ## The makeCacheMatrix generally caches matrix and inverse and stores ## them indirectly in a list from which the can be aquired. ## The cacheSolve function tries to get the stored values from this ## list, and when it can't, it goes ahead to calculate t...
/cachematrix.R
no_license
SMIJes/ProgrammingAssignment2
R
false
false
2,314
r
## I have two main functions: makeCacheMatrix() and cacheSolve(), ## The makeCacheMatrix generally caches matrix and inverse and stores ## them indirectly in a list from which the can be aquired. ## The cacheSolve function tries to get the stored values from this ## list, and when it can't, it goes ahead to calculate t...
#' @export SVM_parral <- function(Yvar, variable, k=5, cost=1, epsilon=0.1, cross=5, kernel=c("radial", "linear")){ T0 <- Sys.time() data_test <- variable data_test$Y <- Yvar data_test <- data_test[!is.na(data_test$Y),] ### SPLIT DATA INTO K FOLDS ### df1 <- ...
/R/SVM_parral.R
no_license
Pintademijote/LETG_pkg
R
false
false
1,549
r
#' @export SVM_parral <- function(Yvar, variable, k=5, cost=1, epsilon=0.1, cross=5, kernel=c("radial", "linear")){ T0 <- Sys.time() data_test <- variable data_test$Y <- Yvar data_test <- data_test[!is.na(data_test$Y),] ### SPLIT DATA INTO K FOLDS ### df1 <- ...
\name{swConservativeTemperature} \alias{swConservativeTemperature} \title{Seawater conservative temperature, in TEOS-10.} \description{Compute seawater conservative temperature, according to TEOS-10.} \usage{swConservativeTemperature(salinity, temperature, pressure)} \arguments{ \item{salinity}{either salinity (...
/man/swConservativeTemperature.Rd
no_license
landsat/oce
R
false
false
1,838
rd
\name{swConservativeTemperature} \alias{swConservativeTemperature} \title{Seawater conservative temperature, in TEOS-10.} \description{Compute seawater conservative temperature, according to TEOS-10.} \usage{swConservativeTemperature(salinity, temperature, pressure)} \arguments{ \item{salinity}{either salinity (...
#'@title fit epsilon from block of ADV data #'@description #'solves for epsilon from ADV data in the inertial subrange assuming Zappa et al. 2003 \cr #' #'@details a \code{GDopp} function for splitting sensor data into temporal segments.\cr #' #'@references #'Zappa, Christopher J., Peter A. Raymond, Eugene A. Terray...
/R/fit_epsilon.R
permissive
govtmirror/GDopp
R
false
false
2,695
r
#'@title fit epsilon from block of ADV data #'@description #'solves for epsilon from ADV data in the inertial subrange assuming Zappa et al. 2003 \cr #' #'@details a \code{GDopp} function for splitting sensor data into temporal segments.\cr #' #'@references #'Zappa, Christopher J., Peter A. Raymond, Eugene A. Terray...
install.packages("kernlab") library("kernlab") install.packages("ggplot2") library("ggplot2") install.packages("e1071") library("e1071") install.packages("gridExtra") library(gridExtra) airquality aq = airquality # Reading the data str(aq) # Removing all the NAs and Replacing by mean: for(i in 1:ncol(aq)){ ...
/4.7/LAB_SVM.R
no_license
shrutikk7/Applied-Data-Science-IST687
R
false
false
4,081
r
install.packages("kernlab") library("kernlab") install.packages("ggplot2") library("ggplot2") install.packages("e1071") library("e1071") install.packages("gridExtra") library(gridExtra) airquality aq = airquality # Reading the data str(aq) # Removing all the NAs and Replacing by mean: for(i in 1:ncol(aq)){ ...
#' Retrieve the taxonomic hierarchy for a given taxon ID. #' #' @export #' @param x Vector of taxa names (character) or IDs (character or numeric) #' to query. #' @param db character; database to query. either `ncbi`, `itis`, `eol`, `col`, #' `tropicos`, `gbif`, `nbn`, `worms`, `natserv`, `bold`, `wiki`, or `pow`. #' N...
/R/classification.R
permissive
fuyanli-UHM/taxize
R
false
false
29,466
r
#' Retrieve the taxonomic hierarchy for a given taxon ID. #' #' @export #' @param x Vector of taxa names (character) or IDs (character or numeric) #' to query. #' @param db character; database to query. either `ncbi`, `itis`, `eol`, `col`, #' `tropicos`, `gbif`, `nbn`, `worms`, `natserv`, `bold`, `wiki`, or `pow`. #' N...
loan.test <- read.csv("/home/awaz/Documents/UISCourses/DataScience/midterm_test.csv", stringsAsFactors = FALSE) str(loan.test) #First try with selected variable loan.second.tst <- loan.test[,-which(names(loan.test) %in% c("Loan_ID", "Borrower_ID", "Employer", "Loan_Description", ...
/CSCMidTerm/NameTheLoanTEST.R
no_license
Psychkya/Data-Sciences
R
false
false
10,014
r
loan.test <- read.csv("/home/awaz/Documents/UISCourses/DataScience/midterm_test.csv", stringsAsFactors = FALSE) str(loan.test) #First try with selected variable loan.second.tst <- loan.test[,-which(names(loan.test) %in% c("Loan_ID", "Borrower_ID", "Employer", "Loan_Description", ...
#ASSIGNMENT 4 --------- setwd("~/Studier+Studentliv/HT19/TDDE01/Labb2") data_frame=read.csv2("NIRSpectra.csv") RGNversion('3.5.1') # ----1 -----Principal Component Analysis - PCA source("https://bioconductor.org/biocLite.R") biocLite("pcaMethods") data_frame$Viscosity=c() PCA=prcomp(data_frame) lambda=PCA$sdev^2 ...
/Lab2/Lab2_Assignment4.R
no_license
AliceVelander/TDDE01
R
false
false
1,354
r
#ASSIGNMENT 4 --------- setwd("~/Studier+Studentliv/HT19/TDDE01/Labb2") data_frame=read.csv2("NIRSpectra.csv") RGNversion('3.5.1') # ----1 -----Principal Component Analysis - PCA source("https://bioconductor.org/biocLite.R") biocLite("pcaMethods") data_frame$Viscosity=c() PCA=prcomp(data_frame) lambda=PCA$sdev^2 ...
#Install MSstats Packages #a <- installed.packages() #packages <- a[, 1] install.packages(c("gplots", "lme4", "reshape", "reshape2", "ggplot2", "ggrepel", "data.table", "dplyr", "tidyr", "survival", "doSNOW", "snow", "foreach", 'stringr', "randomForest", "minpac...
/pwiz_tools/Skyline/Executables/Tools/MSstats/tool-inf/InstallPackages.r
permissive
sneumann/pwiz
R
false
false
958
r
#Install MSstats Packages #a <- installed.packages() #packages <- a[, 1] install.packages(c("gplots", "lme4", "reshape", "reshape2", "ggplot2", "ggrepel", "data.table", "dplyr", "tidyr", "survival", "doSNOW", "snow", "foreach", 'stringr', "randomForest", "minpac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/evaluate_model_target_prediction.R \name{convert_expression_settings_evaluation} \alias{convert_expression_settings_evaluation} \title{Convert expression settings to correct settings format for evaluation of target gene prediction.} \usage{ c...
/man/convert_expression_settings_evaluation.Rd
no_license
saeyslab/nichenetr
R
false
true
1,186
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/evaluate_model_target_prediction.R \name{convert_expression_settings_evaluation} \alias{convert_expression_settings_evaluation} \title{Convert expression settings to correct settings format for evaluation of target gene prediction.} \usage{ c...
# # 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/ # setwd("~/Dropbox/LAURENT/COURS/EDHEC/LEARNING/SHINY") source("generation.R") source("trace_front.R") library(ggplo...
/SHINY/overfitting_app.R
no_license
lrouviere/intro-machine-learning
R
false
false
2,993
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/ # setwd("~/Dropbox/LAURENT/COURS/EDHEC/LEARNING/SHINY") source("generation.R") source("trace_front.R") library(ggplo...
##### #####This script is for creating 1,0 indicator matrices for the clusters produced by subsamp_wgcna.R #### library("data.table") library(pryr) args <- commandArgs(TRUE) exp_name <- as.character(args[1]) ##create matrix from gene list gene_f <- read.delim("/cbcb/lab/smount/ZCL/gene_list.txt", sep = "\t", hea...
/seq_inidicator_mat3.R
no_license
czawora/strawberry
R
false
false
2,478
r
##### #####This script is for creating 1,0 indicator matrices for the clusters produced by subsamp_wgcna.R #### library("data.table") library(pryr) args <- commandArgs(TRUE) exp_name <- as.character(args[1]) ##create matrix from gene list gene_f <- read.delim("/cbcb/lab/smount/ZCL/gene_list.txt", sep = "\t", hea...
plot_seq <- function(x, format.labels = TRUE, ticks.on = 'auto', k = 1, cex.axis = 0.7, ...) { ticks <- xts::axTicksByTime(x, ticks.on = ticks.on, k, format.labels = format.labels) plot(head(as.vector(ticks), -1), y = as.vector(x), xaxt = 'n', ...) axis(side = 1, at = as.vector(ticks), labels = names(tick...
/clases/R/plots.R
permissive
rodrigodelrosso/unrseries18
R
false
false
1,196
r
plot_seq <- function(x, format.labels = TRUE, ticks.on = 'auto', k = 1, cex.axis = 0.7, ...) { ticks <- xts::axTicksByTime(x, ticks.on = ticks.on, k, format.labels = format.labels) plot(head(as.vector(ticks), -1), y = as.vector(x), xaxt = 'n', ...) axis(side = 1, at = as.vector(ticks), labels = names(tick...
print.FHtestrcc <- function (x, digits = max(options()$digits - 4, 3), ...) { saveopt <- options(digits = digits) on.exit(options(saveopt)) if (!inherits(x, "FHtestrcc")) stop("Object is not of class FHtestrcc") cat("\n") writeLines(x$information) cat("\n") cat(x$data.name, sep = "\n") cat("\n"...
/R/print.FHtestrcc.R
no_license
cran/FHtest
R
false
false
1,229
r
print.FHtestrcc <- function (x, digits = max(options()$digits - 4, 3), ...) { saveopt <- options(digits = digits) on.exit(options(saveopt)) if (!inherits(x, "FHtestrcc")) stop("Object is not of class FHtestrcc") cat("\n") writeLines(x$information) cat("\n") cat(x$data.name, sep = "\n") cat("\n"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/toxEval.R \docType{package} \name{toxEval-package} \alias{toxEval-package} \title{Evaluation of measured concentration data using the ToxCast high-throughput screening database or a user-defined set of concentration benchmarks} \description{...
/man/toxEval-package.Rd
permissive
limnoliver/toxEval
R
false
true
1,026
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/toxEval.R \docType{package} \name{toxEval-package} \alias{toxEval-package} \title{Evaluation of measured concentration data using the ToxCast high-throughput screening database or a user-defined set of concentration benchmarks} \description{...
######################################################################### # # CHAPTER 2, EXAMPLE 1, Dental Study # # Explore overall and within-child patterns of correlation in the # dental study data using R # ######################################################################### # You may need to install...
/course/st790/examples/dental_corr.R
no_license
BowenNCSU/BowenNCSU.github.io
R
false
false
9,871
r
######################################################################### # # CHAPTER 2, EXAMPLE 1, Dental Study # # Explore overall and within-child patterns of correlation in the # dental study data using R # ######################################################################### # You may need to install...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/soccerVelocity.R \name{soccerVelocity} \alias{soccerVelocity} \title{Compute instantaneous distance, speed and direction from x,y-coordinates} \usage{ soccerVelocity(dat) } \arguments{ \item{dat}{dataframe containing unnormalised x,y-coordina...
/man/soccerVelocity.Rd
no_license
Bustami/soccermatics
R
false
true
684
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/soccerVelocity.R \name{soccerVelocity} \alias{soccerVelocity} \title{Compute instantaneous distance, speed and direction from x,y-coordinates} \usage{ soccerVelocity(dat) } \arguments{ \item{dat}{dataframe containing unnormalised x,y-coordina...
#*****************************************************************# # Model diagnostic Fire Ignitions # # Deserts and xeric shrublands # #*****************************************************************# # This code is grouped into two steps: # -Step 1...
/Code analysis biomes/Deserts and xeric shrublands Ignitions.R
no_license
PatiBent/LME_Drivers_of_Fire
R
false
false
18,356
r
#*****************************************************************# # Model diagnostic Fire Ignitions # # Deserts and xeric shrublands # #*****************************************************************# # This code is grouped into two steps: # -Step 1...
### Script for managing data export by Access to use in harris matrices library(dplyr) library(DiagrammeR) library(RPostgreSQL) con <- dbConnect("PostgreSQL", host='192.168.2.100', port = '5432', dbname = 'gygaia', user = 'gygaiaro', ...
/harris matrix.R
no_license
plekhovd/Harris-Matrix
R
false
false
2,249
r
### Script for managing data export by Access to use in harris matrices library(dplyr) library(DiagrammeR) library(RPostgreSQL) con <- dbConnect("PostgreSQL", host='192.168.2.100', port = '5432', dbname = 'gygaia', user = 'gygaiaro', ...
#!/usr/bin/Rscript library(psych) library(effsize) sink("abcd_ed_gi_descriptive_output.txt",split=TRUE) print("Loading Rds files...") abcd.ed.gi=readRDS("abcd_ed_gi.Rds") abcd.ed.gi.m_crpbi=readRDS("abcd_ed_gi_mcrpbi.Rds") abcd.ed.gi.f_crpbi=readRDS("abcd_ed_gi_fcrpbi.Rds") abcd.ed.gi=abcd.ed.gi[abcd.ed.gi$gender==...
/abcd_ed_gi_descriptives.R
no_license
klkerr/abcd_ed_gi
R
false
false
6,475
r
#!/usr/bin/Rscript library(psych) library(effsize) sink("abcd_ed_gi_descriptive_output.txt",split=TRUE) print("Loading Rds files...") abcd.ed.gi=readRDS("abcd_ed_gi.Rds") abcd.ed.gi.m_crpbi=readRDS("abcd_ed_gi_mcrpbi.Rds") abcd.ed.gi.f_crpbi=readRDS("abcd_ed_gi_fcrpbi.Rds") abcd.ed.gi=abcd.ed.gi[abcd.ed.gi$gender==...
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/1615764338-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,795
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...
rm(list = ls()) #packages { library(C50) require("ktspair") library(e1071) library(pamr) library(switchBox) library(tspair) } #functions { ktsp<-function(training_data,training_grp,krange=seq(3,9,by=2)){ p<-dim(training_data)[1] c_0<-training_data[,training_grp==0] c_1<-training_data...
/AllinOne.R
no_license
e-arslan/ktsp
R
false
false
13,961
r
rm(list = ls()) #packages { library(C50) require("ktspair") library(e1071) library(pamr) library(switchBox) library(tspair) } #functions { ktsp<-function(training_data,training_grp,krange=seq(3,9,by=2)){ p<-dim(training_data)[1] c_0<-training_data[,training_grp==0] c_1<-training_data...
outputpng <- "~/projects/datasciencecoursera/explore/a1/ExData_Plotting1/plot2.png" # Download power consumption data and read into R (view code in prepData.R) source("prepData.R") data <- getPowerConsumptionDataFrame() # Open png png(file = outputpng, width = 480, height = 480) # Write out graph plot(data$datetime,...
/plot2.R
no_license
solatido/ExData_Plotting1
R
false
false
453
r
outputpng <- "~/projects/datasciencecoursera/explore/a1/ExData_Plotting1/plot2.png" # Download power consumption data and read into R (view code in prepData.R) source("prepData.R") data <- getPowerConsumptionDataFrame() # Open png png(file = outputpng, width = 480, height = 480) # Write out graph plot(data$datetime,...
plot.alignment.in.3d <- function(x1, y1, z1, x2, y2, z2, path1, path2, draw.text = FALSE) { foo <- plot.in.3d(x1, y1, z1, radius = 0.01) foo <- plot.in.3d(x2, y2, z2, new.plot=FALSE, color.base = 'g', radius = 0.01) ...
/plots.3d.R
no_license
browarsoftware/headmotions
R
false
false
852
r
plot.alignment.in.3d <- function(x1, y1, z1, x2, y2, z2, path1, path2, draw.text = FALSE) { foo <- plot.in.3d(x1, y1, z1, radius = 0.01) foo <- plot.in.3d(x2, y2, z2, new.plot=FALSE, color.base = 'g', radius = 0.01) ...
### Enter directory containing downloaded source files source_dir="/home/source_dir/" ### Enter directory containing SNP array genotype data array_dir="/home/array_dir/" ### Is the genotype data in PLINK *.ped format or GenomeStudio matrix *.txt format? ### Enter "PLINK" or "GS": format="PLINK" ### Enter f...
/seXY.R
no_license
Christopher-Amos-Lab/seXY
R
false
false
3,922
r
### Enter directory containing downloaded source files source_dir="/home/source_dir/" ### Enter directory containing SNP array genotype data array_dir="/home/array_dir/" ### Is the genotype data in PLINK *.ped format or GenomeStudio matrix *.txt format? ### Enter "PLINK" or "GS": format="PLINK" ### Enter f...
# Function creates a "matrix" object, along with a get, set get-inverse and set-inverse methods. makeCacheMatrix <- function(x = matrix()) { m <- NULL # initialise cache set <- function(y) { x <<- y m <<- NULL } get <- function() x setinv <- function(solve) m <<- solve getinv <- fun...
/cachematrix.R
no_license
ryan402/ProgrammingAssignment2
R
false
false
916
r
# Function creates a "matrix" object, along with a get, set get-inverse and set-inverse methods. makeCacheMatrix <- function(x = matrix()) { m <- NULL # initialise cache set <- function(y) { x <<- y m <<- NULL } get <- function() x setinv <- function(solve) m <<- solve getinv <- fun...
## --------------------------- ## ## Script name: ui.R ## ## Purpose of script: user interface for CORONAinJena-App ## ## Author: Ben Phillips, Volker Holzendorf ## ## Date Created: 2020-03-12, 2020-03-29 ## ## Email: statistik@jena.de ## ## --------------------------- ## ## Notes: ## Diese Datei übersetzt das Sktript...
/ui.R
permissive
StatistikVolker/CORONA_App_Jena
R
false
false
2,107
r
## --------------------------- ## ## Script name: ui.R ## ## Purpose of script: user interface for CORONAinJena-App ## ## Author: Ben Phillips, Volker Holzendorf ## ## Date Created: 2020-03-12, 2020-03-29 ## ## Email: statistik@jena.de ## ## --------------------------- ## ## Notes: ## Diese Datei übersetzt das Sktript...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/adherence.R \name{new_adherence} \alias{new_adherence} \title{Adherence function} \usage{ new_adherence(n = 100, type = "markov", markov = list(p11 = 0.75, p01 = 0.75), p_binom = 0.7) } \description{ Adherence function }
/man/new_adherence.Rd
permissive
yookhwan/PKPDsim
R
false
false
310
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/adherence.R \name{new_adherence} \alias{new_adherence} \title{Adherence function} \usage{ new_adherence(n = 100, type = "markov", markov = list(p11 = 0.75, p01 = 0.75), p_binom = 0.7) } \description{ Adherence function }
#' Calculate analyte concentration (ppm) from plate reader absorbance values #' #' This function calculates analyte concentration from absorbance values within an exported Gen5 Excel table. Returns a dataframe. #' @param assay.data.raw An excel table exported from the Gen5 software. #' @param sample.IDs A 2-column data...
/.Rproj.user/D2E2CF1A/sources/s-317BE811/C23A42A9-contents
no_license
mselensky/platereadR
R
false
false
2,122
#' Calculate analyte concentration (ppm) from plate reader absorbance values #' #' This function calculates analyte concentration from absorbance values within an exported Gen5 Excel table. Returns a dataframe. #' @param assay.data.raw An excel table exported from the Gen5 software. #' @param sample.IDs A 2-column data...
library(shiny) # Define UI for application that draws a histogram shinyUI(pageWithSidebar( # Application title headerPanel("Triathlon Time Estimator"), # Sidebar with a slider input for the number of bins sidebarPanel( h4("Swim Pace (min/100m)", align = "center"), column(12, col...
/ui.R
permissive
pbieberstein/Triathlon_estimator
R
false
false
6,561
r
library(shiny) # Define UI for application that draws a histogram shinyUI(pageWithSidebar( # Application title headerPanel("Triathlon Time Estimator"), # Sidebar with a slider input for the number of bins sidebarPanel( h4("Swim Pace (min/100m)", align = "center"), column(12, col...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BSDA-package.R \docType{data} \name{Backtoback} \alias{Backtoback} \title{Illustrates inferences based on pooled t-test versus Wilcoxon rank sum test} \format{A data frame with 24 observations on the following 3 variables. \describe{ \item{s...
/man/Backtoback.Rd
no_license
lelou6666/BSDA
R
false
true
647
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BSDA-package.R \docType{data} \name{Backtoback} \alias{Backtoback} \title{Illustrates inferences based on pooled t-test versus Wilcoxon rank sum test} \format{A data frame with 24 observations on the following 3 variables. \describe{ \item{s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sampling.R \name{new_sample} \alias{new_sample} \title{Generate particles and select one to be the new sample} \usage{ new_sample( s, data, num_particles, parameters, efficient_mu = NULL, efficient_sig2 = NULL, mix_proportion = ...
/man/new_sample.Rd
no_license
cran/pmwg
R
false
true
3,143
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sampling.R \name{new_sample} \alias{new_sample} \title{Generate particles and select one to be the new sample} \usage{ new_sample( s, data, num_particles, parameters, efficient_mu = NULL, efficient_sig2 = NULL, mix_proportion = ...
test_that("dependencies are not reformatted if new value is the same", { desc <- description$new(test_path("D1")) desc$set("Imports", "R6") before <- desc$get("Imports") desc$set_dep("R6") after <- desc$get("Imports") expect_equal(before, after) desc <- description$new(test_path("D1")) desc$set("Im...
/tests/testthat/test-idempotent.R
permissive
cran/desc
R
false
false
813
r
test_that("dependencies are not reformatted if new value is the same", { desc <- description$new(test_path("D1")) desc$set("Imports", "R6") before <- desc$get("Imports") desc$set_dep("R6") after <- desc$get("Imports") expect_equal(before, after) desc <- description$new(test_path("D1")) desc$set("Im...
rm(list = ls()) args <- commandArgs(TRUE) wd <- args[1] query <- args[2] service <- args[3] setwd(wd) #Don't forget to set your working directory renv::activate() renv::restore(lockfile = '../renv.lock') Sys.setlocale(category="LC_ALL", locale = "en_US.UTF-8") library(jsonlite) library(logging) source('utils.R') if...
/server/preprocessing/other-scripts/run_base.R
permissive
dasch124/Headstart
R
false
false
1,121
r
rm(list = ls()) args <- commandArgs(TRUE) wd <- args[1] query <- args[2] service <- args[3] setwd(wd) #Don't forget to set your working directory renv::activate() renv::restore(lockfile = '../renv.lock') Sys.setlocale(category="LC_ALL", locale = "en_US.UTF-8") library(jsonlite) library(logging) source('utils.R') if...
## These functions are used together to cache the inverse of a matrix ## The first function can be given an invertible matrix, and returns a list containing four functions. "setinverse" stores ## the calculated inverse of the matrix in a cache, "getinverse" retrieves the cached value, the "get" function ## returns the...
/cachematrix.R
no_license
floondi/ProgrammingAssignment2
R
false
false
1,189
r
## These functions are used together to cache the inverse of a matrix ## The first function can be given an invertible matrix, and returns a list containing four functions. "setinverse" stores ## the calculated inverse of the matrix in a cache, "getinverse" retrieves the cached value, the "get" function ## returns the...
fluidPage( # Application title titlePanel("Tumor Image Processing"), sidebarLayout( # Sidebar with a slider input sidebarPanel( conditionalPanel(condition="input.conditionedPanels == 'Single Image Processing'", helpText("Please select a .tif file from the folder you ...
/ui.R
no_license
rbotts/TumorQuant
R
false
false
7,504
r
fluidPage( # Application title titlePanel("Tumor Image Processing"), sidebarLayout( # Sidebar with a slider input sidebarPanel( conditionalPanel(condition="input.conditionedPanels == 'Single Image Processing'", helpText("Please select a .tif file from the folder you ...
setwd("~/Coursera/Exploratory/Project1/ExData_Plotting1") tidydata<-read.csv("household_power_consumption.txt",sep=";", header=TRUE,na.strings="?",stringsAsFactors=FALSE) library(dplyr) library(lubridate) tidydata$date_time = dmy_hms(paste(tidydata$Date,tidydata$Time)) tidydata<-select(...
/plot1.R
no_license
dalemillar/Individual-Power
R
false
false
681
r
setwd("~/Coursera/Exploratory/Project1/ExData_Plotting1") tidydata<-read.csv("household_power_consumption.txt",sep=";", header=TRUE,na.strings="?",stringsAsFactors=FALSE) library(dplyr) library(lubridate) tidydata$date_time = dmy_hms(paste(tidydata$Date,tidydata$Time)) tidydata<-select(...
#************************************************ # Brandon Cabaleiro # RCS: cabalb # RIN: 661648482 # 6000 Level # # This R code is for Group 4 ida1.R #************************************************ library(kknn) data(ionosphere) # class is categorical var. i2<-ionosphere[,-1] i2<-i2[,-1] # class is c...
/Lab/Group4/DataAnalytics_Group4_Brandon_Cabaleiro_ida1.R
no_license
brandon-cabaleiro/DataAnalytics2021_Brandon_Cabaleiro
R
false
false
558
r
#************************************************ # Brandon Cabaleiro # RCS: cabalb # RIN: 661648482 # 6000 Level # # This R code is for Group 4 ida1.R #************************************************ library(kknn) data(ionosphere) # class is categorical var. i2<-ionosphere[,-1] i2<-i2[,-1] # class is c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simulation.R \name{parallel.trial} \alias{parallel.trial} \title{Simulated Dose-finding Trial} \usage{ parallel.trial(true, n, cores = 1, K, size, cycle_prob, cycle_time, target, samples, assessment, fixed, mode, stopping, least, dropout, ...
/AWBLRM/man/parallel.trial.Rd
no_license
cralo31/awblrm
R
false
true
6,448
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simulation.R \name{parallel.trial} \alias{parallel.trial} \title{Simulated Dose-finding Trial} \usage{ parallel.trial(true, n, cores = 1, K, size, cycle_prob, cycle_time, target, samples, assessment, fixed, mode, stopping, least, dropout, ...
context("m2r parser") m2_parse_test <- function(m2_str, m2_expected_output) { out <- m2_parse(m2_str) if (is.m2(out) && !is.null(m2_name(out))) m2_name(out) <- "" expect_equal(out, m2_expected_output) } test_that("m2_parse parses basic data structures",{ m2_list <- "{1,2,3}" m2_list_output <- structure( ...
/tests/testthat/test-m2_parser.R
no_license
rshhar/m2r
R
false
false
5,539
r
context("m2r parser") m2_parse_test <- function(m2_str, m2_expected_output) { out <- m2_parse(m2_str) if (is.m2(out) && !is.null(m2_name(out))) m2_name(out) <- "" expect_equal(out, m2_expected_output) } test_that("m2_parse parses basic data structures",{ m2_list <- "{1,2,3}" m2_list_output <- structure( ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sdhelper.r \name{setup.results} \alias{setup.results} \title{Create results file} \usage{ setup.results(ResultsFile, out.metrics, scale.vec, do.cwm = 0) } \arguments{ \item{ResultsFile}{The file that results will be written to.} \item{out.me...
/man/setup.results.Rd
no_license
akeyel/spatialdemography
R
false
true
586
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sdhelper.r \name{setup.results} \alias{setup.results} \title{Create results file} \usage{ setup.results(ResultsFile, out.metrics, scale.vec, do.cwm = 0) } \arguments{ \item{ResultsFile}{The file that results will be written to.} \item{out.me...
\name{silhouette.partana} \alias{silhouette.partana} \alias{silhouette.clustering} \alias{silhouette.stride} \alias{testsil} \title{Produce a Silhouette Object From a Partana, Clustering, or Stride Object} \description{Extracts components from a \code{partana}, \code{clustering}, or \code{stride} object, and passes the...
/man/silhouette.Rd
no_license
cran/optpart
R
false
false
2,459
rd
\name{silhouette.partana} \alias{silhouette.partana} \alias{silhouette.clustering} \alias{silhouette.stride} \alias{testsil} \title{Produce a Silhouette Object From a Partana, Clustering, or Stride Object} \description{Extracts components from a \code{partana}, \code{clustering}, or \code{stride} object, and passes the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/merge-data.R \name{which_conflicts} \alias{which_conflicts} \title{return which rows of a merged \code{data.frame} contain conflicts} \usage{ which_conflicts(merged) } \arguments{ \item{merged}{\code{data.frame} merged data.frame with possibl...
/man/which_conflicts.Rd
no_license
gwarnes-mdsol/daff
R
false
true
879
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/merge-data.R \name{which_conflicts} \alias{which_conflicts} \title{return which rows of a merged \code{data.frame} contain conflicts} \usage{ which_conflicts(merged) } \arguments{ \item{merged}{\code{data.frame} merged data.frame with possibl...
## function API によるモデルの定義 x = layer_input(784) z1 = x %>% layer_dense(units = 256, activation="relu") z2 = z1 %>% layer_dense(units = 128, activation="relu") y = z2 %>% layer_dense(units = 10, activation="softmax") model = keras_model(x, y) ## 上記のネットワークは, 次のように書くこともできる. # model = keras_model_sequential() # model %>% #...
/chap3/R/code2.r
no_license
daishinmutaku/SRAPR
R
false
false
576
r
## function API によるモデルの定義 x = layer_input(784) z1 = x %>% layer_dense(units = 256, activation="relu") z2 = z1 %>% layer_dense(units = 128, activation="relu") y = z2 %>% layer_dense(units = 10, activation="softmax") model = keras_model(x, y) ## 上記のネットワークは, 次のように書くこともできる. # model = keras_model_sequential() # model %>% #...
# Function calling # rnorm will return random normal distribution with given sample size (optional to provide mean and s.d.) x <- rnorm(100, mean=21, sd=2.1) # Support functions help(rnorm) example(rnorm) # Launch HTML helper help.start() # Vectors # initializing with given vector components vec1 = c(1,2,3,4,5) vec...
/reference.R
no_license
ashans/r-statistical-inference
R
false
false
1,029
r
# Function calling # rnorm will return random normal distribution with given sample size (optional to provide mean and s.d.) x <- rnorm(100, mean=21, sd=2.1) # Support functions help(rnorm) example(rnorm) # Launch HTML helper help.start() # Vectors # initializing with given vector components vec1 = c(1,2,3,4,5) vec...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/highlight.R \name{highlight} \alias{highlight} \title{syntax highlighting based on the R parser} \usage{ highlight(file, output = stdout(), detective = simple_detective, renderer, encoding = "unknown", parse.output = parse(file, encoding = ...
/man/highlight.Rd
no_license
eddelbuettel/highlight
R
false
true
3,305
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/highlight.R \name{highlight} \alias{highlight} \title{syntax highlighting based on the R parser} \usage{ highlight(file, output = stdout(), detective = simple_detective, renderer, encoding = "unknown", parse.output = parse(file, encoding = ...
# Copyright (C) Tal Galili # # This file is part of dendextend. # # dendextend is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # dend...
/R/nleaves.R
no_license
timelyportfolio/dendextend
R
false
false
9,328
r
# Copyright (C) Tal Galili # # This file is part of dendextend. # # dendextend is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # dend...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{logger.status} \alias{logger.error} \alias{logger.info} \alias{logger.status} \alias{logger.warning} \title{Writing text messages to the log file.} \usage{ logger.status(txt) logger.info(txt) logger.warning(txt) logger.error(txt, terminate = rnb.getOption("l...
/RnBeads/r-packages/RnBeads/man/loggerMessages.Rd
permissive
relshire/epiGBS
R
false
false
1,187
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{logger.status} \alias{logger.error} \alias{logger.info} \alias{logger.status} \alias{logger.warning} \title{Writing text messages to the log file.} \usage{ logger.status(txt) logger.info(txt) logger.warning(txt) logger.error(txt, terminate = rnb.getOption("l...
library(glmnet) mydata = read.table("./TrainingSet/Correlation/bone.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="mae",alpha=0.04,family="gaussian",standardize=FALSE) sink('./Model/EN/Correlation/bone/bone_020.txt',append=...
/Model/EN/Correlation/bone/bone_020.R
no_license
leon1003/QSMART
R
false
false
355
r
library(glmnet) mydata = read.table("./TrainingSet/Correlation/bone.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="mae",alpha=0.04,family="gaussian",standardize=FALSE) sink('./Model/EN/Correlation/bone/bone_020.txt',append=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linear_SSLDP.R \name{do.ssldp} \alias{do.ssldp} \title{Semi-Supervised Locally Discriminant Projection} \usage{ do.ssldp(X, label, ndim = 2, type = c("proportion", 0.1), preprocess = c("center", "scale", "cscale", "whiten", "decorrelate"), ...
/man/linear_SSLDP.Rd
no_license
rcannood/Rdimtools
R
false
true
2,791
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linear_SSLDP.R \name{do.ssldp} \alias{do.ssldp} \title{Semi-Supervised Locally Discriminant Projection} \usage{ do.ssldp(X, label, ndim = 2, type = c("proportion", 0.1), preprocess = c("center", "scale", "cscale", "whiten", "decorrelate"), ...
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 609641752L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10...
/dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615938416-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
826
r
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 609641752L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10...
########################### # Mut matrix ########################### # Mutations CCLE_mutations<- readr::read_csv("downloads/CCLE/CCLE_mutations.csv") # Only missense CCLE_maf<- CCLE_mutations[CCLE_mutations$Variant_Classification=="Missense_Mutation",] # Factorize samples CCLE_maf$DepMap_ID<- factor(CCLE_maf$DepMap...
/scripts/create_CCLE_data.R
no_license
CCGGlab/mhc_driver
R
false
false
5,286
r
########################### # Mut matrix ########################### # Mutations CCLE_mutations<- readr::read_csv("downloads/CCLE/CCLE_mutations.csv") # Only missense CCLE_maf<- CCLE_mutations[CCLE_mutations$Variant_Classification=="Missense_Mutation",] # Factorize samples CCLE_maf$DepMap_ID<- factor(CCLE_maf$DepMap...
#!/usr/bin/env Rscript options(error = function() { traceback(2); stop("Error encountered") } ) C_CHR <- "chr" C_START <- "start" C_STOP <- "stop" C_HCLUST_METHODS <- c("ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median", "centroid") C_OUTPUT_FORMAT <- c("pdf", "png") ## also including some ...
/R/inferCNV_constants.R
no_license
gegegui/infercnv
R
false
false
1,910
r
#!/usr/bin/env Rscript options(error = function() { traceback(2); stop("Error encountered") } ) C_CHR <- "chr" C_START <- "start" C_STOP <- "stop" C_HCLUST_METHODS <- c("ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median", "centroid") C_OUTPUT_FORMAT <- c("pdf", "png") ## also including some ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Sql.R \name{renderTranslateQuerySql.ffdf} \alias{renderTranslateQuerySql.ffdf} \title{Render, translate, and query to ffdf} \usage{ renderTranslateQuerySql.ffdf( connection, sql, errorReportFile = file.path(getwd(), "errorReport.txt"), ...
/man/renderTranslateQuerySql.ffdf.Rd
permissive
CristianPachacama/DatabaseConnector
R
false
true
1,818
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Sql.R \name{renderTranslateQuerySql.ffdf} \alias{renderTranslateQuerySql.ffdf} \title{Render, translate, and query to ffdf} \usage{ renderTranslateQuerySql.ffdf( connection, sql, errorReportFile = file.path(getwd(), "errorReport.txt"), ...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392687e+77, 4.09661819939949e+305, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_...
/CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615829005-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
361
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392687e+77, 4.09661819939949e+305, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{curatedMarkers_human} \alias{curatedMarkers_human} \title{Curated cell type markers for hand-selected cell types (Human)} \format{: A list of gene symbols for different tissues/cell-types} \source{ \url{http://co...
/man/curatedMarkers_human.Rd
no_license
shmohammadi86/ACTIONet_legacy
R
false
true
476
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{curatedMarkers_human} \alias{curatedMarkers_human} \title{Curated cell type markers for hand-selected cell types (Human)} \format{: A list of gene symbols for different tissues/cell-types} \source{ \url{http://co...
context("Comparing three vectors") test_that("Identifies if identical", { expect_true(compare_three(1:10, 1:10, 1:10)) expect_false(compare_three(c("a", "a"), c("a", "a"), c("a", "b"))) expect_length(compare_three(c("a", "a"), c("a", "a"), c("a", "b"), result = "itemized"), 2) }) test_that("Fails on diffe...
/tests/testthat/test-comparing-three.R
permissive
konradzdeb/KEmisc
R
false
false
444
r
context("Comparing three vectors") test_that("Identifies if identical", { expect_true(compare_three(1:10, 1:10, 1:10)) expect_false(compare_three(c("a", "a"), c("a", "a"), c("a", "b"))) expect_length(compare_three(c("a", "a"), c("a", "a"), c("a", "b"), result = "itemized"), 2) }) test_that("Fails on diffe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/recurrent.r \name{recurrent.marginal.mean} \alias{recurrent.marginal.mean} \title{Estimates marginal mean of recurrent events} \usage{ recurrent.marginal.mean(recurrent, death) } \arguments{ \item{recurrent}{aalen model for recurrent events} ...
/man/recurrent.marginal.mean.Rd
no_license
scheike/timereg
R
false
true
1,866
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/recurrent.r \name{recurrent.marginal.mean} \alias{recurrent.marginal.mean} \title{Estimates marginal mean of recurrent events} \usage{ recurrent.marginal.mean(recurrent, death) } \arguments{ \item{recurrent}{aalen model for recurrent events} ...
## Put comments here that give an overall description of what your ## functions do ## Adding comments ## 'makeCacheMatrix' initializes the makeCacheMatrix 'object' using the matrix ## given in the function argument makeCacheMatrix <- function(x = matrix()) { ## Initialize an empty variable for the inverse ...
/cachematrix.R
no_license
mayanatid/ProgrammingAssignment2
R
false
false
2,533
r
## Put comments here that give an overall description of what your ## functions do ## Adding comments ## 'makeCacheMatrix' initializes the makeCacheMatrix 'object' using the matrix ## given in the function argument makeCacheMatrix <- function(x = matrix()) { ## Initialize an empty variable for the inverse ...
<!DOCTYPE html> <!-- saved from url=(0025)https://www.facebook.com/ --> <html lang="en" id="facebook" class=" sidebarMode sidebarCapable"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireL...
/ui.R
no_license
Mayur131/datasciencecoursera
R
false
false
1,377,844
r
<!DOCTYPE html> <!-- saved from url=(0025)https://www.facebook.com/ --> <html lang="en" id="facebook" class=" sidebarMode sidebarCapable"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireL...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/A4.measures.R \name{A4.measures} \alias{A4.measures} \title{A4 page measures} \usage{ A4.measures(metric = c("cm", "inch")) } \arguments{ \item{metric}{= c('cm', 'inch')} } \description{ A4 page measures } \examples{ A4.measu...
/man/A4.measures.Rd
no_license
NathanDeFruyt/WormTools
R
false
true
328
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/A4.measures.R \name{A4.measures} \alias{A4.measures} \title{A4 page measures} \usage{ A4.measures(metric = c("cm", "inch")) } \arguments{ \item{metric}{= c('cm', 'inch')} } \description{ A4 page measures } \examples{ A4.measu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/weldlog.R \name{weldlog} \alias{weldlog} \title{Changes boundaries segments in basic lithologs} \usage{ weldlog( log, dt, seg, j = 1:length(dt), col.xy = 1, col.dt = 2, auto.dt = T, add.dt = 0, omit1 = NULL, omit2 = NULL, ...
/man/weldlog.Rd
no_license
cran/StratigrapheR
R
false
true
2,722
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/weldlog.R \name{weldlog} \alias{weldlog} \title{Changes boundaries segments in basic lithologs} \usage{ weldlog( log, dt, seg, j = 1:length(dt), col.xy = 1, col.dt = 2, auto.dt = T, add.dt = 0, omit1 = NULL, omit2 = NULL, ...
rm(list=ls()) #Xinming Zhuo, xzhuo@bcm.edu #this script take samcluster.csv files for similarity comparison #it take one ore more files to plot # the plot and new csv file will saved to the the same location and name as last file #only for pair wise comparison #patch 1 #cluster_compare_simple_v1.R fix bugs when samcl...
/deprecated/cluster_compare_simple_pair2ng.R
no_license
xmzhuo/NIPT_genotyping
R
false
false
11,418
r
rm(list=ls()) #Xinming Zhuo, xzhuo@bcm.edu #this script take samcluster.csv files for similarity comparison #it take one ore more files to plot # the plot and new csv file will saved to the the same location and name as last file #only for pair wise comparison #patch 1 #cluster_compare_simple_v1.R fix bugs when samcl...
library(data.table) #import data into variable pwrdata <- data.table::fread(input="household_power_consumption.txt",na.strings = "?") # Subset the full data to obtain data on two mentioned dates: pwrdata <- subset(pwrdata,(pwrdata$Date=="1/2/2007" | pwrdata$Date== "2/2/2007")) #Chage class of date column to Date for...
/Plot2.R
no_license
mandaliadhaval/ExData_Plotting1
R
false
false
822
r
library(data.table) #import data into variable pwrdata <- data.table::fread(input="household_power_consumption.txt",na.strings = "?") # Subset the full data to obtain data on two mentioned dates: pwrdata <- subset(pwrdata,(pwrdata$Date=="1/2/2007" | pwrdata$Date== "2/2/2007")) #Chage class of date column to Date for...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/findTargets.R \name{list_on_target_amplifiable} \alias{list_on_target_amplifiable} \title{List on-target amplifiable species} \usage{ list_on_target_amplifiable(bsPrimerTree, target_taxa, target_level) } \arguments{ \item{bsPrimerTree}{a bsPr...
/man/list_on_target_amplifiable.Rd
permissive
MVesuviusC/Primer-Evaluation-Pipeline
R
false
true
635
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/findTargets.R \name{list_on_target_amplifiable} \alias{list_on_target_amplifiable} \title{List on-target amplifiable species} \usage{ list_on_target_amplifiable(bsPrimerTree, target_taxa, target_level) } \arguments{ \item{bsPrimerTree}{a bsPr...
#LIST - list() function #List can contain elements of different types like - number, string, vectors, another list inside it, matrix. list_data <- list("Red", "Green", c(21,32,11), TRUE, 51.23, 119.1) vector1 <- 1:4 newList <- list(vector1, list_data, 'cdsdd', 232, 33.53, TRUE) #NAMING LIST ELEMENTS - The list elem...
/R/list.R
no_license
dipeshjoshi/MachineLearning
R
false
false
1,604
r
#LIST - list() function #List can contain elements of different types like - number, string, vectors, another list inside it, matrix. list_data <- list("Red", "Green", c(21,32,11), TRUE, 51.23, 119.1) vector1 <- 1:4 newList <- list(vector1, list_data, 'cdsdd', 232, 33.53, TRUE) #NAMING LIST ELEMENTS - The list elem...
#### RUN ZIP MODEL with host genus random effect on use (for BC): Model 19 ## Set up output files arguments <- commandArgs(T) outdir <- arguments[1] iter <- as.numeric(arguments[2]) ## load packages #library(reshape2) #attach the reshape package for function "melt()" library(R2jags) library(rjags) load...
/finalmodels/ZINBphase123/ho.R
no_license
jogwalker/bipartitemodelsBC
R
false
false
2,376
r
#### RUN ZIP MODEL with host genus random effect on use (for BC): Model 19 ## Set up output files arguments <- commandArgs(T) outdir <- arguments[1] iter <- as.numeric(arguments[2]) ## load packages #library(reshape2) #attach the reshape package for function "melt()" library(R2jags) library(rjags) load...
## read in and prepare data library(data.table) d <- fread("household_power_consumption.txt") d$Date <- as.Date(d$Date, "%d/%m/%Y") d <- d[d$Date >= as.Date("2007-02-01") & d$Date<=as.Date("2007-02-02"), ] numcols <- c(3:dim(d)[2]) d[, (numcols) := lapply(.SD, as.numeric), .SDcols = numcols] ## plot3 png(filename="plo...
/plot3.R
no_license
lefant/ExData_Plotting1
R
false
false
715
r
## read in and prepare data library(data.table) d <- fread("household_power_consumption.txt") d$Date <- as.Date(d$Date, "%d/%m/%Y") d <- d[d$Date >= as.Date("2007-02-01") & d$Date<=as.Date("2007-02-02"), ] numcols <- c(3:dim(d)[2]) d[, (numcols) := lapply(.SD, as.numeric), .SDcols = numcols] ## plot3 png(filename="plo...
EQ5D5L_crosswalk_indexvalues.df <- read.csv("data-raw/EQ5D5L_crosswalk_indexvalues.csv", header = TRUE, stringsAsFactor = FALSE) usethis::use_data(EQ5D5L_crosswalk_indexvalues.df, overwrite = TRUE)
/data-raw/EQ5D5L_crosswalk_indexvalues_df.R
no_license
sheejamk/valueEQ5D
R
false
false
198
r
EQ5D5L_crosswalk_indexvalues.df <- read.csv("data-raw/EQ5D5L_crosswalk_indexvalues.csv", header = TRUE, stringsAsFactor = FALSE) usethis::use_data(EQ5D5L_crosswalk_indexvalues.df, overwrite = TRUE)
# segmentation test # una singo, SNGUNA003 # 29 January 2020 # import R functions ------------ source("R/plotter.R") source("R/simulate.R") source("R/segmentation.R") source("R/simulate.R") source("R/ICC_EM.R") # libraries --------------------- library('tidyverse') library(readxl) library(MASS) library(fossil) set....
/tests/03_ICC_EM_test.R
no_license
Una95Singo/MarketStates
R
false
false
6,649
r
# segmentation test # una singo, SNGUNA003 # 29 January 2020 # import R functions ------------ source("R/plotter.R") source("R/simulate.R") source("R/segmentation.R") source("R/simulate.R") source("R/ICC_EM.R") # libraries --------------------- library('tidyverse') library(readxl) library(MASS) library(fossil) set....
rm(list=ls()) setwd('C:\\Users\\WenluluSens\\Downloads\\output20190102') library(dplyr) library(data.table) library(MatrixCompletion) id <- as.data.table(openxlsx::read.xlsx('idmap.xlsx') %>% select(pid=patient_id,grp=group16)) x <- data.table::fread('daily_final.csv') %>% mutate(y=( (exp_rat...
/14_summary2pid.R
no_license
wenrurumon/fenglin
R
false
false
1,805
r
rm(list=ls()) setwd('C:\\Users\\WenluluSens\\Downloads\\output20190102') library(dplyr) library(data.table) library(MatrixCompletion) id <- as.data.table(openxlsx::read.xlsx('idmap.xlsx') %>% select(pid=patient_id,grp=group16)) x <- data.table::fread('daily_final.csv') %>% mutate(y=( (exp_rat...
numPerPatch42656 <- c(2506,2494)
/NatureEE-data-archive/Run202971/JAFSdata/JAFSnumPerPatch42656.R
no_license
flaxmans/NatureEE2017
R
false
false
33
r
numPerPatch42656 <- c(2506,2494)
##Select the data, and eliminate NAs plot2Data<-houPow[houPow$Date=="1/2/2007" | houPow$Date=="2/2/2007",] plot2Data<-plot2Data[complete.cases(plot2Data$Time,plot2Data$Global_active_power),] ##concatonate Date and Time and store appropriately powDay<-as.POSIXct(paste(plot2Data$Date,plot2Data$Time), format="%d/%...
/Plot2.R
no_license
stevenjj72/BasePlotEDA
R
false
false
616
r
##Select the data, and eliminate NAs plot2Data<-houPow[houPow$Date=="1/2/2007" | houPow$Date=="2/2/2007",] plot2Data<-plot2Data[complete.cases(plot2Data$Time,plot2Data$Global_active_power),] ##concatonate Date and Time and store appropriately powDay<-as.POSIXct(paste(plot2Data$Date,plot2Data$Time), format="%d/%...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kinesisanalyticsv2_operations.R \name{kinesisanalyticsv2_list_tags_for_resource} \alias{kinesisanalyticsv2_list_tags_for_resource} \title{Retrieves the list of key-value tags assigned to the application} \usage{ kinesisanalyticsv2_list_tags_f...
/paws/man/kinesisanalyticsv2_list_tags_for_resource.Rd
permissive
johnnytommy/paws
R
false
true
771
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kinesisanalyticsv2_operations.R \name{kinesisanalyticsv2_list_tags_for_resource} \alias{kinesisanalyticsv2_list_tags_for_resource} \title{Retrieves the list of key-value tags assigned to the application} \usage{ kinesisanalyticsv2_list_tags_f...
library(mrgsolve) ### Name: as_bmat ### Title: Coerce R objects to block or diagonal matrices ### Aliases: as_bmat as_bmat,list-method as_bmat,numeric-method ### as_bmat,data.frame-method as_bmat,ANY-method as_dmat ### as_dmat,list-method as_dmat,ANY-method as_dmat,numeric-method ### as_dmat,data.frame-method ...
/data/genthat_extracted_code/mrgsolve/examples/as_bmat.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
574
r
library(mrgsolve) ### Name: as_bmat ### Title: Coerce R objects to block or diagonal matrices ### Aliases: as_bmat as_bmat,list-method as_bmat,numeric-method ### as_bmat,data.frame-method as_bmat,ANY-method as_dmat ### as_dmat,list-method as_dmat,ANY-method as_dmat,numeric-method ### as_dmat,data.frame-method ...
#' Grab CV1se Solution for Lasso Regression #' #' This function runs a glmnet() with lasso regression and pulls the best the beta value of #' the glmnet.fit object with the largest value of lambda such that error is #' within 1 standard error of the minimum. #' #' @param folds Optional. The number of cross validatio...
/R/lassoCV1se.R
permissive
Sage-Bionetworks/metanetwork
R
false
false
762
r
#' Grab CV1se Solution for Lasso Regression #' #' This function runs a glmnet() with lasso regression and pulls the best the beta value of #' the glmnet.fit object with the largest value of lambda such that error is #' within 1 standard error of the minimum. #' #' @param folds Optional. The number of cross validatio...