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
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(NaN, NaN, NaN, 1.27319747457422e-312, 5.2625495605761e-312, 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)) result <- do.call(meteor:::ET0_ThornthwaiteW...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/libFuzzer_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1612735985-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
348
r
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(NaN, NaN, NaN, 1.27319747457422e-312, 5.2625495605761e-312, 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)) result <- do.call(meteor:::ET0_ThornthwaiteW...
\name{plot.solist} \alias{plot.solist} \title{Plot a List of Spatial Objects} \description{ Plots a list of two-dimensional spatial objects. } \usage{ \method{plot}{solist}(x, \dots, main, arrange=TRUE, nrows=NULL, ncols=NULL, main.panel=NULL, mar.panel=c(2,1,1,2), hsep=0, vsep=0, panel.begin=NULL, panel.e...
/man/plot.solist.Rd
no_license
rubak/spatstat
R
false
false
8,674
rd
\name{plot.solist} \alias{plot.solist} \title{Plot a List of Spatial Objects} \description{ Plots a list of two-dimensional spatial objects. } \usage{ \method{plot}{solist}(x, \dots, main, arrange=TRUE, nrows=NULL, ncols=NULL, main.panel=NULL, mar.panel=c(2,1,1,2), hsep=0, vsep=0, panel.begin=NULL, panel.e...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/internals.R \name{rmfi_rev_rainbow} \alias{rmfi_rev_rainbow} \title{Reversed rainbow color palette} \usage{ rmfi_rev_rainbow(...) } \description{ Reversed rainbow color palette } \keyword{internal}
/man/rmfi_rev_rainbow.Rd
no_license
rogiersbart/RMODFLOW
R
false
true
276
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/internals.R \name{rmfi_rev_rainbow} \alias{rmfi_rev_rainbow} \title{Reversed rainbow color palette} \usage{ rmfi_rev_rainbow(...) } \description{ Reversed rainbow color palette } \keyword{internal}
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AnnotateChIA.R \name{associate_centralities} \alias{associate_centralities} \title{Associates centrality scores and boolean centrality markers to regions.} \usage{ associate_centralities(chia.obj, which.measures = c("Degree", "Betweenness", ...
/man/associate_centralities.Rd
no_license
ehenrion/ChIAnalysis
R
false
true
848
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AnnotateChIA.R \name{associate_centralities} \alias{associate_centralities} \title{Associates centrality scores and boolean centrality markers to regions.} \usage{ associate_centralities(chia.obj, which.measures = c("Degree", "Betweenness", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pl_est_com.R \name{pl_est_com} \alias{pl_est_com} \title{Fits the stochastic block model using maximum pseudolikelihood estimation} \usage{ pl_est_com(X, K = NULL, max.iter = 1000, tol = 1e-08, parallel = FALSE) } \arguments{ \item{X}{n x n a...
/man/pl_est_com.Rd
no_license
cran/multiviewtest
R
false
true
2,421
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pl_est_com.R \name{pl_est_com} \alias{pl_est_com} \title{Fits the stochastic block model using maximum pseudolikelihood estimation} \usage{ pl_est_com(X, K = NULL, max.iter = 1000, tol = 1e-08, parallel = FALSE) } \arguments{ \item{X}{n x n a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readInputs.R \name{h5ReadClusterDesc} \alias{h5ReadClusterDesc} \title{Import cluster description} \usage{ h5ReadClusterDesc(opts) } \arguments{ \item{opts}{\code{list} of simulation parameters returned by the function \link[antaresR...
/man/h5ReadClusterDesc.Rd
no_license
rte-antares-rpackage/antaresHDF5
R
false
true
614
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readInputs.R \name{h5ReadClusterDesc} \alias{h5ReadClusterDesc} \title{Import cluster description} \usage{ h5ReadClusterDesc(opts) } \arguments{ \item{opts}{\code{list} of simulation parameters returned by the function \link[antaresR...
/MacOSX10.2.8.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers/ApplicationServices.r
no_license
alexey-lysiuk/macos-sdk
R
false
false
753
r
#' quantiles #' #' The function quantile produces quantiles corresponding to the given #' probabilities. The smallest observation corresponds to a probability of 0 and the largest to a probability of 1. #' Current implementation doesn't use the \code{type} parameter of \code{\link{quantile}}. For large \code{ff} vect...
/pkg/R/quantile_ff.R
no_license
arturochian/ffbase
R
false
false
1,245
r
#' quantiles #' #' The function quantile produces quantiles corresponding to the given #' probabilities. The smallest observation corresponds to a probability of 0 and the largest to a probability of 1. #' Current implementation doesn't use the \code{type} parameter of \code{\link{quantile}}. For large \code{ff} vect...
# Take single layer of data and combine it with panel information to split # data into different panels. Adds in extra data for missing facetting # levels and for margins. # # @params data a data frame locate_grid <- function(data, panels, rows = NULL, cols = NULL, margins = FALSE) { rows <- as.quoted(rows) cols <...
/R/facet-locate.r
no_license
wligtenberg/ggplot2
R
false
false
2,255
r
# Take single layer of data and combine it with panel information to split # data into different panels. Adds in extra data for missing facetting # levels and for margins. # # @params data a data frame locate_grid <- function(data, panels, rows = NULL, cols = NULL, margins = FALSE) { rows <- as.quoted(rows) cols <...
#' files.list #' #' List files available in via the DoubleClick Reporting API #' #' @title List files available in via the DoubleClick Reporting API #' #' @param profileId The DFA profile ID - use userprofiles.list() to find yours #' @param results The number of files to return. Defaults to 10, can be increased to mak...
/R/files.list.R
permissive
heck1/RDoubleClick
R
false
false
2,904
r
#' files.list #' #' List files available in via the DoubleClick Reporting API #' #' @title List files available in via the DoubleClick Reporting API #' #' @param profileId The DFA profile ID - use userprofiles.list() to find yours #' @param results The number of files to return. Defaults to 10, can be increased to mak...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/JJF.R \name{bri.gpr} \alias{bri.gpr} \title{Gaussian Process Regression in 1D} \usage{ bri.gpr(x, y, pcprior, nbasis = 25, degree = 2, alpha = 2, xout = x, sigma0 = sd(y), rho0 = 0.25 * (max(x) - min(x))) } \arguments{ \item{x}{the predicto...
/man/bri.gpr.Rd
no_license
nemochina2008/brinla
R
false
true
1,238
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/JJF.R \name{bri.gpr} \alias{bri.gpr} \title{Gaussian Process Regression in 1D} \usage{ bri.gpr(x, y, pcprior, nbasis = 25, degree = 2, alpha = 2, xout = x, sigma0 = sd(y), rho0 = 0.25 * (max(x) - min(x))) } \arguments{ \item{x}{the predicto...
setOldClass("ModelFrame") setOldClass("recipe") #' Resampling Classes and Methods #' #' @name MLControl-class #' @rdname MLControl-class #' #' @slot summary function to compute model performance metrics. #' @slot cutoff threshold above which probabilities are classified as success #' for factor outcomes and which ex...
/R/AllClasses.R
no_license
guhjy/MachineShop
R
false
false
10,860
r
setOldClass("ModelFrame") setOldClass("recipe") #' Resampling Classes and Methods #' #' @name MLControl-class #' @rdname MLControl-class #' #' @slot summary function to compute model performance metrics. #' @slot cutoff threshold above which probabilities are classified as success #' for factor outcomes and which ex...
# Exercise 1: practice with basic R syntax # Create a variable `hometown` that stores the city in which you were born hometown <- "Palo Alto" # Assign your name to the variable `my_name` my_name <- "Ryan Lee" # Assign your height (in inches) to a variable `my_height` my_height <- "66" # Create a variable `puppies` ...
/chapter-05-exercises/exercise-1/exercise.R
permissive
CocoaCommander/book-exercises
R
false
false
856
r
# Exercise 1: practice with basic R syntax # Create a variable `hometown` that stores the city in which you were born hometown <- "Palo Alto" # Assign your name to the variable `my_name` my_name <- "Ryan Lee" # Assign your height (in inches) to a variable `my_height` my_height <- "66" # Create a variable `puppies` ...
library(rstanarm) if (Sys.getenv("CI") == "true") { print(packageVersion("dplyr")) install.packages("hrbrthemes", repos = "https://cinc.rud.is") } library(hrbrthemes) df <- cuadrantes %>% group_by(crime) %>% mutate(total_count = sum(count)) %>% ungroup %>% filter(total_count / length(unique(cuadrantes$dat...
/src/multilevel_gam.R
no_license
diegovalle/hoyodecrimen.clean
R
false
false
5,014
r
library(rstanarm) if (Sys.getenv("CI") == "true") { print(packageVersion("dplyr")) install.packages("hrbrthemes", repos = "https://cinc.rud.is") } library(hrbrthemes) df <- cuadrantes %>% group_by(crime) %>% mutate(total_count = sum(count)) %>% ungroup %>% filter(total_count / length(unique(cuadrantes$dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appregistry_service.R \name{appregistry} \alias{appregistry} \title{AWS Service Catalog App Registry} \usage{ appregistry( config = list(), credentials = list(), endpoint = NULL, region = NULL ) } \arguments{ \item{config}{Optional co...
/cran/paws.management/man/appregistry.Rd
permissive
paws-r/paws
R
false
true
6,957
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appregistry_service.R \name{appregistry} \alias{appregistry} \title{AWS Service Catalog App Registry} \usage{ appregistry( config = list(), credentials = list(), endpoint = NULL, region = NULL ) } \arguments{ \item{config}{Optional co...
####################### ### Dynamische Netzwerkanalyse # von Björn Siepe & Kai J. Nehler ## Daten laden data <- read.csv(url("https://osf.io/g6ya4/download")) names(data) # Variablennamen data$time <- as.POSIXct(data$time, tz = "Europe/Amsterdam") # Datumsvariable transformieren data$time[1:8] ## Modell ### Detre...
/content/post/KliPPs_MSc5a_R_Files/11_netzwerkanalyse-laengsschnitt_RCode.R
no_license
martscht/projekte
R
false
false
2,463
r
####################### ### Dynamische Netzwerkanalyse # von Björn Siepe & Kai J. Nehler ## Daten laden data <- read.csv(url("https://osf.io/g6ya4/download")) names(data) # Variablennamen data$time <- as.POSIXct(data$time, tz = "Europe/Amsterdam") # Datumsvariable transformieren data$time[1:8] ## Modell ### Detre...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/nplcm-fit-NoReg-BrSandSS-Nest.R \name{nplcm_fit_NoReg_BrSandSS_Nest} \alias{nplcm_fit_NoReg_BrSandSS_Nest} \title{Fit nested partially-latent class model (low-level)} \usage{ nplcm_fit_NoReg_BrSandSS_Nest(data_nplcm, model_optio...
/man/nplcm_fit_NoReg_BrSandSS_Nest.Rd
permissive
zhenkewu/nplcm
R
false
false
4,372
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/nplcm-fit-NoReg-BrSandSS-Nest.R \name{nplcm_fit_NoReg_BrSandSS_Nest} \alias{nplcm_fit_NoReg_BrSandSS_Nest} \title{Fit nested partially-latent class model (low-level)} \usage{ nplcm_fit_NoReg_BrSandSS_Nest(data_nplcm, model_optio...
library(rio) library(tidyverse) library(skimr) getwd() setwd("~/documents/") getwd() m = import("pr201_marks_leaked.csv", encoding="UTF-8") glimpse(m) qplot(data = m, x = k3_final) + labs(title = "оценки за КР-3", x = "Оценка за кр", y = "Количество бриллиантов") # гистограмма skim(m) view(m...
/DZ.R
no_license
DaveYerzh/catch_the_dragon
R
false
false
841
r
library(rio) library(tidyverse) library(skimr) getwd() setwd("~/documents/") getwd() m = import("pr201_marks_leaked.csv", encoding="UTF-8") glimpse(m) qplot(data = m, x = k3_final) + labs(title = "оценки за КР-3", x = "Оценка за кр", y = "Количество бриллиантов") # гистограмма skim(m) view(m...
\name{qqthin} \alias{qqthin} %- Also NEED an '\alias' for EACH other topic documented here. \title{a version of qqplot() that thins out points that overplot} \description{ QQ-plots with large numbers of points typically generate graphics files that are unhelpfully large. This function handles the problem by removing p...
/man/qqthin.Rd
no_license
cran/hddplot
R
false
false
3,835
rd
\name{qqthin} \alias{qqthin} %- Also NEED an '\alias' for EACH other topic documented here. \title{a version of qqplot() that thins out points that overplot} \description{ QQ-plots with large numbers of points typically generate graphics files that are unhelpfully large. This function handles the problem by removing p...
print_dust_markdown <- function(x, ..., asis=TRUE, interactive = getOption("pixie_interactive")) { if (is.null(interactive)) interactive <- interactive() if (!is.null(x$caption) & x$caption_number) increment_pixie_count() caption_number_prefix <- if (x$caption_number) sp...
/R/print_dust_markdown.R
no_license
cran/pixiedust
R
false
false
5,030
r
print_dust_markdown <- function(x, ..., asis=TRUE, interactive = getOption("pixie_interactive")) { if (is.null(interactive)) interactive <- interactive() if (!is.null(x$caption) & x$caption_number) increment_pixie_count() caption_number_prefix <- if (x$caption_number) sp...
library(dplyr) library(tidyr) library(data.table) #Download and unzip data set if(!file.exists("./SamsungGalaxS.zip")){ url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(url, "SamsungGalaxyS.zip") unzip("SamsungGalaxyS.zip", exdir="SamsungGalaxyS") #creade...
/run_analysis.R
no_license
yvettejanecek/Getting-and-Cleaning-Data
R
false
false
3,168
r
library(dplyr) library(tidyr) library(data.table) #Download and unzip data set if(!file.exists("./SamsungGalaxS.zip")){ url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(url, "SamsungGalaxyS.zip") unzip("SamsungGalaxyS.zip", exdir="SamsungGalaxyS") #creade...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LocalSearchFSFunctions.R \name{GRASPFS} \alias{GRASPFS} \title{A GRASP algorithm for the permutative flowshop} \usage{ GRASPFS(M, rcl = 4, iter = 100, op = "swap", opt = "HC", ...) } \arguments{ \item{M}{A matrix object storing the time to pr...
/man/GRASPFS.Rd
no_license
jmsallan/combheuristics
R
false
true
1,435
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LocalSearchFSFunctions.R \name{GRASPFS} \alias{GRASPFS} \title{A GRASP algorithm for the permutative flowshop} \usage{ GRASPFS(M, rcl = 4, iter = 100, op = "swap", opt = "HC", ...) } \arguments{ \item{M}{A matrix object storing the time to pr...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/rClr-exported.R \name{clrGetStaticFields} \alias{clrGetStaticFields} \title{Gets the static fields for a type} \usage{ clrGetStaticFields(objOrType, contains = "") } \arguments{ \item{objOrType}{a CLR object, or type name, possibly na...
/man/clrGetStaticFields.Rd
no_license
dbremner/rclr
R
false
false
533
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/rClr-exported.R \name{clrGetStaticFields} \alias{clrGetStaticFields} \title{Gets the static fields for a type} \usage{ clrGetStaticFields(objOrType, contains = "") } \arguments{ \item{objOrType}{a CLR object, or type name, possibly na...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_mediation.R \name{fit_mediation} \alias{fit_mediation} \alias{print.fit_mediation} \alias{summary.reg_fit_mediation} \alias{summary.cov_fit_mediation} \title{(Robustly) fit a mediation model} \usage{ fit_mediation(data, x, y, m, covariate...
/man/fit_mediation.Rd
no_license
cnovoaneira/robmed
R
false
true
6,640
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_mediation.R \name{fit_mediation} \alias{fit_mediation} \alias{print.fit_mediation} \alias{summary.reg_fit_mediation} \alias{summary.cov_fit_mediation} \title{(Robustly) fit a mediation model} \usage{ fit_mediation(data, x, y, m, covariate...
# パラメータ設定済みのモデルを訓練&評価 # CV 分割ごとの平均値を評価スコアとする # df.model_with_param: パラメータ設定済みモデルの一覧(parsnip::model_spec のリスト) # df.cv: クロスバリデーション用データ(rsample::vfold_cv) # metrics: 評価指標(デフォルトは Accuracy) train_and_evaluate <- function(df.model_with_param, df.cv, metrics = yardstick::accuracy) { library(tidyverse) library(tidymodels)...
/train_and_evaluate.R
no_license
you1025/train_and_evaluate
R
false
false
2,926
r
# パラメータ設定済みのモデルを訓練&評価 # CV 分割ごとの平均値を評価スコアとする # df.model_with_param: パラメータ設定済みモデルの一覧(parsnip::model_spec のリスト) # df.cv: クロスバリデーション用データ(rsample::vfold_cv) # metrics: 評価指標(デフォルトは Accuracy) train_and_evaluate <- function(df.model_with_param, df.cv, metrics = yardstick::accuracy) { library(tidyverse) library(tidymodels)...
# The first function, makeCacheMatrix creates a special "matrix", which is really a # list containing a function to # 1. set the value of the matrix # 2. get the value of the matrix # 3. set the value of inverse of the matrix # 4. get the value of inverse of the matrix makeCacheMatrix <- function(x = matrix()) { inv...
/cachematrix.R
no_license
huberyzhou/ProgrammingAssignment2
R
false
false
1,328
r
# The first function, makeCacheMatrix creates a special "matrix", which is really a # list containing a function to # 1. set the value of the matrix # 2. get the value of the matrix # 3. set the value of inverse of the matrix # 4. get the value of inverse of the matrix makeCacheMatrix <- function(x = matrix()) { inv...
#' @rdname ConsRegArima #' @export ConsRegArima.default <- function(x, y, order, seasonal, optimizer, LOWER = NULL, UPPER = NULL, penalty = 1000, constraints = NULL, ini.pars.coef, model_...
/R/ConsRegArima_default.R
no_license
puigjos/ConsReg
R
false
false
2,170
r
#' @rdname ConsRegArima #' @export ConsRegArima.default <- function(x, y, order, seasonal, optimizer, LOWER = NULL, UPPER = NULL, penalty = 1000, constraints = NULL, ini.pars.coef, model_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parameters.R \name{GroupParameter} \alias{GroupParameter} \title{GroupParameter} \usage{ GroupParameter(name, items, id = NULL, default = NULL, optional = FALSE, include_in_default = TRUE) } \arguments{ \item{name}{Human-readable name for t...
/man/GroupParameter.Rd
permissive
MindFoundry/optaas-r-client
R
false
true
994
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parameters.R \name{GroupParameter} \alias{GroupParameter} \title{GroupParameter} \usage{ GroupParameter(name, items, id = NULL, default = NULL, optional = FALSE, include_in_default = TRUE) } \arguments{ \item{name}{Human-readable name for t...
# ui.R library(rhandsontable) shinyUI(fluidPage( titlePanel("LO%Own3d \"DFS\" App"), sidebarLayout( sidebarPanel(width = 3, selectInput("Sport", label = ("Sport"), choices = list("Football", "Basketball", "Baseball", "Soccer", "LOL" ), selected = "Football"), selectInp...
/ui.R
no_license
sangamc/_lowOwned
R
false
false
1,733
r
# ui.R library(rhandsontable) shinyUI(fluidPage( titlePanel("LO%Own3d \"DFS\" App"), sidebarLayout( sidebarPanel(width = 3, selectInput("Sport", label = ("Sport"), choices = list("Football", "Basketball", "Baseball", "Soccer", "LOL" ), selected = "Football"), selectInp...
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{package} \name{jiebaR} \alias{jiebaR} \alias{jiebaR-package} \title{A package for Chinese text segmentation} \description{ This is a package for Chinese text segmentation, keyword extraction and speech tagging with Rcpp and cppjieba. JiebaR supports ...
/man/jiebaR.Rd
permissive
wertion/jiebaR
R
false
false
1,451
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{package} \name{jiebaR} \alias{jiebaR} \alias{jiebaR-package} \title{A package for Chinese text segmentation} \description{ This is a package for Chinese text segmentation, keyword extraction and speech tagging with Rcpp and cppjieba. JiebaR supports ...
# ----------------------------------------------------------- # # Install relevant packages (if not already done) # ----------------------------------------------------------- # Packages <- c("mlbench", "caret", "elasticnet", "klaR", "xtable", "tikzDevice") # install.packages(Packages) # ---------------...
/data/data_sets/source/classification.R
no_license
seemir/bias
R
false
false
6,212
r
# ----------------------------------------------------------- # # Install relevant packages (if not already done) # ----------------------------------------------------------- # Packages <- c("mlbench", "caret", "elasticnet", "klaR", "xtable", "tikzDevice") # install.packages(Packages) # ---------------...
library(gbRd) ### Name: Rdo_args2txt_list ### Title: Extract the descriptions of the arguments of a function ### Aliases: Rdo_args2txt_list ### Keywords: Rd ### ** Examples # each arg always gets an individual entry in the list; # compare: Rdo_args2txt_list("seq", c("from", "to", "by")) # to: cat(Rdo_args2txt("seq"...
/data/genthat_extracted_code/gbRd/examples/Rdo_args2txt_list.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
350
r
library(gbRd) ### Name: Rdo_args2txt_list ### Title: Extract the descriptions of the arguments of a function ### Aliases: Rdo_args2txt_list ### Keywords: Rd ### ** Examples # each arg always gets an individual entry in the list; # compare: Rdo_args2txt_list("seq", c("from", "to", "by")) # to: cat(Rdo_args2txt("seq"...
# Expression QTL analysis in expression genetic data ############################################################ # 1. install some packages ############################################################ install.packages("qtl") install.packages("lineup") ############################################################ # 2....
/DataAnalysis.R
no_license
shiluzhang/eQTL-analysis
R
false
false
7,251
r
# Expression QTL analysis in expression genetic data ############################################################ # 1. install some packages ############################################################ install.packages("qtl") install.packages("lineup") ############################################################ # 2....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coeff_lasso.R \name{lasso_f} \alias{lasso_f} \title{LASSO penalty term} \usage{ lasso_f(lambda, beta) } \description{ LASSO penalty term }
/man/lasso_f.Rd
no_license
mcmtroffaes/bootlasso
R
false
true
217
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coeff_lasso.R \name{lasso_f} \alias{lasso_f} \title{LASSO penalty term} \usage{ lasso_f(lambda, beta) } \description{ LASSO penalty term }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logger.R \name{logger.setLevel} \alias{logger.setLevel} \title{Configure logging level.} \usage{ logger.setLevel(level) } \arguments{ \item{level}{the level of the message (ALL, DEBUG, INFO, WARN, ERROR, OFF)} } \description{ This will config...
/utils/man/logger.setLevel.Rd
permissive
yogeshdarji/pecan
R
false
true
486
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logger.R \name{logger.setLevel} \alias{logger.setLevel} \title{Configure logging level.} \usage{ logger.setLevel(level) } \arguments{ \item{level}{the level of the message (ALL, DEBUG, INFO, WARN, ERROR, OFF)} } \description{ This will config...
#install.packages("devtools", dependencies = TRUE, repos = "http://cran.us.r-project.org") library(devtools) #install_github("bmckuw/UWbe536") library(ggplot2) library(lmtest) library(beeswarm) library(data.table) library(tidyverse) library(UWbe536) #setwd("C:/Users/arthur/Desktop/AU2019/Biost 536") #data <- read_r...
/Final project/main_analysis.R
no_license
dmccoomes/Biostats_536
R
false
false
7,275
r
#install.packages("devtools", dependencies = TRUE, repos = "http://cran.us.r-project.org") library(devtools) #install_github("bmckuw/UWbe536") library(ggplot2) library(lmtest) library(beeswarm) library(data.table) library(tidyverse) library(UWbe536) #setwd("C:/Users/arthur/Desktop/AU2019/Biost 536") #data <- read_r...
library(aemo) ### Name: aemo ### Title: AEMO data set May 2009 - May 2014 ### Aliases: aemo ### Keywords: datasets ### ** Examples data(aemo) head(aemo)
/data/genthat_extracted_code/aemo/examples/aemo.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
160
r
library(aemo) ### Name: aemo ### Title: AEMO data set May 2009 - May 2014 ### Aliases: aemo ### Keywords: datasets ### ** Examples data(aemo) head(aemo)
library(RPostgreSQL) drv <- dbDriver("PostgreSQL") con <- dbConnect(drv, host="postgres", dbname='dataexpo') # con <- dbConnect(drv, host="rpsql", dbname='dataexpo') dbListConnections(drv) dbListTables(con) dbListFields(con, "location_table") # dbGetQuery returns a data.frame which can be used directly meas <- dbGet...
/db-test.R
no_license
wwtung/rspark-tests
R
false
false
837
r
library(RPostgreSQL) drv <- dbDriver("PostgreSQL") con <- dbConnect(drv, host="postgres", dbname='dataexpo') # con <- dbConnect(drv, host="rpsql", dbname='dataexpo') dbListConnections(drv) dbListTables(con) dbListFields(con, "location_table") # dbGetQuery returns a data.frame which can be used directly meas <- dbGet...
## Common Correlated Effects Pooled/MG estimators ## ref. Holly, Pesaran and Yamagata JoE 158 (2010) ## (also Kapetanios, Pesaran and Yamagata JoE 2011) ## CCEP and CCEMG together in the same SW framework ## based on generalized FEs ## this version 6: includes both defactored (cce) and raw (standard) r...
/R/est_cce.R
no_license
cran/plm
R
false
false
19,494
r
## Common Correlated Effects Pooled/MG estimators ## ref. Holly, Pesaran and Yamagata JoE 158 (2010) ## (also Kapetanios, Pesaran and Yamagata JoE 2011) ## CCEP and CCEMG together in the same SW framework ## based on generalized FEs ## this version 6: includes both defactored (cce) and raw (standard) r...
get_label <- function(data, cols) { sapply(cols, function(col) { lbl <- attr(data[[col]], "label") if (is.null(lbl)) lbl <- col lbl }) } stop_nice <- function(...) { stop(paste(strwrap(paste(...), exdent = 7), collapse = "\n"), call. = FALSE) } #' Compute automatic cognostics #' #' @param da...
/R/auto_cogs.R
no_license
beansrowning/trelliscopejs
R
false
false
3,658
r
get_label <- function(data, cols) { sapply(cols, function(col) { lbl <- attr(data[[col]], "label") if (is.null(lbl)) lbl <- col lbl }) } stop_nice <- function(...) { stop(paste(strwrap(paste(...), exdent = 7), collapse = "\n"), call. = FALSE) } #' Compute automatic cognostics #' #' @param da...
## 23 May 2019 - R 3.5.3 - planetfish2 version 0.6.1 ## Let's find that bug! ## Script for generating data and casal assessment output using Planetfish2 ## Goal: Use a scenario that performs poorly to inspect attributes between OM and AM that may cause discrepency. Namely, inspect ## perfect knowledge of population p...
/scripts/TOA_bug_1.R
no_license
Brett-Stacy/planetfish2_bugs
R
false
false
18,774
r
## 23 May 2019 - R 3.5.3 - planetfish2 version 0.6.1 ## Let's find that bug! ## Script for generating data and casal assessment output using Planetfish2 ## Goal: Use a scenario that performs poorly to inspect attributes between OM and AM that may cause discrepency. Namely, inspect ## perfect knowledge of population p...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170364e+295, 2.39632081294858e-312, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_row...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613102657-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
343
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170364e+295, 2.39632081294858e-312, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_row...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fifo.R \name{add} \alias{add} \title{Add a value to the queue} \usage{ add(q, val) } \arguments{ \item{q}{is the current queue object} \item{val}{is the value to be added to the queue} } \value{ The updated queue object } \description{ Add a...
/Practice/qfifo/man/add.Rd
no_license
shyamks111/R
R
false
true
385
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fifo.R \name{add} \alias{add} \title{Add a value to the queue} \usage{ add(q, val) } \arguments{ \item{q}{is the current queue object} \item{val}{is the value to be added to the queue} } \value{ The updated queue object } \description{ Add a...
testlist <- list(A = structure(c(1.38523985028333e-309, 3.81575932257023e-236, 3.81571422914747e-236), .Dim = c(1L, 3L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613126546-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
226
r
testlist <- list(A = structure(c(1.38523985028333e-309, 3.81575932257023e-236, 3.81571422914747e-236), .Dim = c(1L, 3L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
# 2. faza: Uvoz podatkov sl <- locale("sl", decimal_mark=",", grouping_mark=".") # install.packages("maptools") # install.packages("httr") # install.packages("rvest") library(rvest) library(reshape2) library(rgeos) library(maptools) library(httr) # Funkcija, ki uvozi občine iz Wikipedije uvozi.obcine <- function() { ...
/uvoz/uvoz.r
permissive
AnjaTrobec/APPR-2018-19
R
false
false
2,577
r
# 2. faza: Uvoz podatkov sl <- locale("sl", decimal_mark=",", grouping_mark=".") # install.packages("maptools") # install.packages("httr") # install.packages("rvest") library(rvest) library(reshape2) library(rgeos) library(maptools) library(httr) # Funkcija, ki uvozi občine iz Wikipedije uvozi.obcine <- function() { ...
#arg6=region #arg7=number of MCI #arg8=number of normal args=commandArgs() REGION=args[6] DIAG=args[7] LCDM <- function(fileNames,condTests,REGION){ #DATA_NUMB<-c(as.integer(args[7]),as.integer(args[8])) ### Pre-Processing ### library(MASS) b<-list(); dists<-c(); distsl<-c(); for (i in 1:length(fileNam...
/src/LCDM_wave1_wave2_pooled.r
no_license
adalisan/MAS_Score_analysis
R
false
false
2,946
r
#arg6=region #arg7=number of MCI #arg8=number of normal args=commandArgs() REGION=args[6] DIAG=args[7] LCDM <- function(fileNames,condTests,REGION){ #DATA_NUMB<-c(as.integer(args[7]),as.integer(args[8])) ### Pre-Processing ### library(MASS) b<-list(); dists<-c(); distsl<-c(); for (i in 1:length(fileNam...
#' @title r.iplot #' @export r.iplot <- function ( y, x = NULL, xlim = c(0,1), ylim = c(0,1), ...) { require(manipulate) y = rmodel::r.toColumns(y) n <- length(y[,1]) m <- length(y[1,]) if(missing(xlim) && !missing(x)) { xlim = c(min(x), max(x)) } else if(missing(xlim)) { xlim = c(1,n)...
/R/rplot_interactive.R
no_license
rocalabern/rplot
R
false
false
3,664
r
#' @title r.iplot #' @export r.iplot <- function ( y, x = NULL, xlim = c(0,1), ylim = c(0,1), ...) { require(manipulate) y = rmodel::r.toColumns(y) n <- length(y[,1]) m <- length(y[1,]) if(missing(xlim) && !missing(x)) { xlim = c(min(x), max(x)) } else if(missing(xlim)) { xlim = c(1,n)...
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(lubridate) library(tidyverse) library(tabulizer) # Directories indir <- "data/entanglements/data/entanglement_reports" outdir <- "data/entanglements/data" # Extract data dat...
/data/entanglements/Step2_format_entanglement_data.R
no_license
cfree14/dungeness
R
false
false
3,947
r
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(lubridate) library(tidyverse) library(tabulizer) # Directories indir <- "data/entanglements/data/entanglement_reports" outdir <- "data/entanglements/data" # Extract data dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scMeth_functions.R \name{merge_cpgs} \alias{merge_cpgs} \title{Create in silico merged bulk profiles from single-cell files} \usage{ merge_cpgs(cpg_all, cluster_assignments, desired_cluster) } \arguments{ \item{cpg_all}{The list containing al...
/man/merge_cpgs.Rd
no_license
hui-tony-zk/PDclust
R
false
true
817
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scMeth_functions.R \name{merge_cpgs} \alias{merge_cpgs} \title{Create in silico merged bulk profiles from single-cell files} \usage{ merge_cpgs(cpg_all, cluster_assignments, desired_cluster) } \arguments{ \item{cpg_all}{The list containing al...
test_that("broom/tidy returns a simplified data set with only maes_ghoos t50", { options(warn = 0) data = cleanup_data(simulate_breathtest_data(seed = 10)$data) fit = nls_fit(data) td = tidy(fit) expect_is(td, "tbl") expect_equal(names(td), c("patient_id", "group", "m", "k", "beta", "t50")) expect_equal(n...
/tests/testthat/test_broom.R
no_license
histopathology/breathtestcore
R
false
false
939
r
test_that("broom/tidy returns a simplified data set with only maes_ghoos t50", { options(warn = 0) data = cleanup_data(simulate_breathtest_data(seed = 10)$data) fit = nls_fit(data) td = tidy(fit) expect_is(td, "tbl") expect_equal(names(td), c("patient_id", "group", "m", "k", "beta", "t50")) expect_equal(n...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vector_parse_date.R \name{vector_parse_date_first_clean} \alias{vector_parse_date_first_clean} \title{cleans incoming dates a little bit so they are a little similar and we don't need to try as many formats} \usage{ vector_parse_date_first_cl...
/man/vector_parse_date_first_clean.Rd
no_license
hswerdfe/VectorParseDate
R
false
true
1,085
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vector_parse_date.R \name{vector_parse_date_first_clean} \alias{vector_parse_date_first_clean} \title{cleans incoming dates a little bit so they are a little similar and we don't need to try as many formats} \usage{ vector_parse_date_first_cl...
\alias{gtkFileChooserListFilters} \name{gtkFileChooserListFilters} \title{gtkFileChooserListFilters} \description{Lists the current set of user-selectable filters; see \code{\link{gtkFileChooserAddFilter}}, \code{\link{gtkFileChooserRemoveFilter}}.} \usage{gtkFileChooserListFilters(object)} \arguments{\item{\code{objec...
/man/gtkFileChooserListFilters.Rd
no_license
cran/RGtk2.10
R
false
false
569
rd
\alias{gtkFileChooserListFilters} \name{gtkFileChooserListFilters} \title{gtkFileChooserListFilters} \description{Lists the current set of user-selectable filters; see \code{\link{gtkFileChooserAddFilter}}, \code{\link{gtkFileChooserRemoveFilter}}.} \usage{gtkFileChooserListFilters(object)} \arguments{\item{\code{objec...
testlist <- list(Rs = c(-1.9577272327571e+276, 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), atmp = numeric(0), relh = c(7.64681479918174e-304, -4.29227809743625e-307, 1.81037701089217e+87, -2.93112217825115e-158, 9.03412394302482e-46, 7.31195213563656e+256, -1.939255246...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615862582-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
473
r
testlist <- list(Rs = c(-1.9577272327571e+276, 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), atmp = numeric(0), relh = c(7.64681479918174e-304, -4.29227809743625e-307, 1.81037701089217e+87, -2.93112217825115e-158, 9.03412394302482e-46, 7.31195213563656e+256, -1.939255246...
# Matrix inversion is usually a costly computation and there may be some benefit # to caching the inverse of a matrix rather than compute it repeatedly. # The two functions below provide a means to cache the inverse of a matrix, thus # potentially saving significant processing time. # This function creates a special "...
/cachematrix.R
no_license
edickinson75/ProgrammingAssignment2
R
false
false
1,229
r
# Matrix inversion is usually a costly computation and there may be some benefit # to caching the inverse of a matrix rather than compute it repeatedly. # The two functions below provide a means to cache the inverse of a matrix, thus # potentially saving significant processing time. # This function creates a special "...
tcga_build_cellimage_nodes_files <- function() { iatlas.data::synapse_store_feather_file( dplyr::tibble(name = character()), "deprecated_tcga_cellimage_network_nodes.feather", "syn22126180" ) immune_subtype_nodes <- "syn23538719" %>% synapse_feather_id_to_tbl() %>% dplyr::mutate("network" = ...
/R/feather_file_creator-tcga_build_cellimage_nodes_files.R
no_license
CRI-iAtlas/iatlas-feather-files
R
false
false
1,295
r
tcga_build_cellimage_nodes_files <- function() { iatlas.data::synapse_store_feather_file( dplyr::tibble(name = character()), "deprecated_tcga_cellimage_network_nodes.feather", "syn22126180" ) immune_subtype_nodes <- "syn23538719" %>% synapse_feather_id_to_tbl() %>% dplyr::mutate("network" = ...
## version: 1.30 ## method: post ## path: /networks/create ## code: 201 ## response: {"Id":"22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30","Warning":""} list( id = "22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30", warning = "")
/tests/testthat/sample_responses/v1.30/network_create.R
no_license
cran/stevedore
R
false
false
269
r
## version: 1.30 ## method: post ## path: /networks/create ## code: 201 ## response: {"Id":"22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30","Warning":""} list( id = "22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30", warning = "")
context("hyperparameterValidation") test_that("generate data", { # generate data with nested no trafo ps = makeParamSet(makeNumericParam("C", lower = -5, upper = 5, trafo = function(x) 2^x) ) ctrl = makeTuneControlRandom(maxit = 5L) rdesc = makeResampleDesc("Holdout") lrn = makeTuneWrapper("classif.ksv...
/tests/testthat/test_base_generateHyperParsEffect.R
no_license
cauldnz/mlr
R
false
false
13,312
r
context("hyperparameterValidation") test_that("generate data", { # generate data with nested no trafo ps = makeParamSet(makeNumericParam("C", lower = -5, upper = 5, trafo = function(x) 2^x) ) ctrl = makeTuneControlRandom(maxit = 5L) rdesc = makeResampleDesc("Holdout") lrn = makeTuneWrapper("classif.ksv...
# the purpose of this script is to demonstrate ability to collect, work with, and clean a data set # please read README and CodeBook for additional information # loading libraries lybrary(tidyverse) # downloading and storing if (!(file.exists("data"))) { dir.create("data") } if (!(file.exists("data/dataset.zip")))...
/run_analysis.R
no_license
RodMorais/Getting-and-Cleaning-Data-Course-Project
R
false
false
2,619
r
# the purpose of this script is to demonstrate ability to collect, work with, and clean a data set # please read README and CodeBook for additional information # loading libraries lybrary(tidyverse) # downloading and storing if (!(file.exists("data"))) { dir.create("data") } if (!(file.exists("data/dataset.zip")))...
testlist <- list(doy = c(-1.34765550943381e+28, -6.41943608631928e+167, 5.06147895673148e-241, -3.80269803056297e+245, 7.31782995655776e-304, -2.37636445786895e-212, 6.65004044562904e-304, 1.26937468623092e-153, 1.75512488333167e+50, 2.64939586740134e-158, -15728640.1250391), latitude = c(-1.38615190940838e+304, 2....
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615831608-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
919
r
testlist <- list(doy = c(-1.34765550943381e+28, -6.41943608631928e+167, 5.06147895673148e-241, -3.80269803056297e+245, 7.31782995655776e-304, -2.37636445786895e-212, 6.65004044562904e-304, 1.26937468623092e-153, 1.75512488333167e+50, 2.64939586740134e-158, -15728640.1250391), latitude = c(-1.38615190940838e+304, 2....
library(aprean3) ### Name: dse22g ### Title: Dataset for Exercise G, Chapter 22 ### Aliases: dse22g ### Keywords: datasets ### ** Examples dse22g
/data/genthat_extracted_code/aprean3/examples/dse22g.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
153
r
library(aprean3) ### Name: dse22g ### Title: Dataset for Exercise G, Chapter 22 ### Aliases: dse22g ### Keywords: datasets ### ** Examples dse22g
#' Import your ERP data files. #' #' \code{load.data} imports your individual ERP data files. File extensions must be .txt and #' file names must be in the format: YourFile_Condition.txt (e.g., SS34_Positive.txt). Raw data files to be #' imported should be organized as follows: #' \itemize{ #' \item each el...
/R/Load.R
no_license
cran/erp.easy
R
false
false
7,628
r
#' Import your ERP data files. #' #' \code{load.data} imports your individual ERP data files. File extensions must be .txt and #' file names must be in the format: YourFile_Condition.txt (e.g., SS34_Positive.txt). Raw data files to be #' imported should be organized as follows: #' \itemize{ #' \item each el...
## Put comments here that give an overall description of what your ## functions do ## The first function,makeCacheMatrix creates a "matrix",which is really a list ## containing a function to ## 1.set the value of the matrix ## 2.get the value of the matrix ## 3.set the value of inverse matrix ## 4.get the value of i...
/cachematrix.R
no_license
BhaviChikhal/ProgrammingAssignment2
R
false
false
1,348
r
## Put comments here that give an overall description of what your ## functions do ## The first function,makeCacheMatrix creates a "matrix",which is really a list ## containing a function to ## 1.set the value of the matrix ## 2.get the value of the matrix ## 3.set the value of inverse matrix ## 4.get the value of i...
####################################################### ## Preparing the RAM data for B/Bmsy values ####################################################### source('../ohiprep/src/R/common.R') # STEP 1: ##### Prepare data to link RAM stocks to SAUP regions and Taxon IDs # The initial MatchedPairs.csv file was from Ly...
/globalprep/fis/v2015/RAMdataPrep.R
no_license
OHI-Science/ohiprep_v2018
R
false
false
10,812
r
####################################################### ## Preparing the RAM data for B/Bmsy values ####################################################### source('../ohiprep/src/R/common.R') # STEP 1: ##### Prepare data to link RAM stocks to SAUP regions and Taxon IDs # The initial MatchedPairs.csv file was from Ly...
context("parse columns") test_that("apply funcs to columns", { # when df <- data.frame(x = 1:5, y = 11:15, z = "OK") fx <- function(x) x * 2 fy <- function(x) x - 1 # then result <- parse_columns(df, list(x = fx, y = fy)) expected_x <- seq(2, 10, 2) expected_y <- 10:14 # --- expect_equal(result$x, ...
/tests/testthat/test_parse_columns.R
no_license
aedobbyn/owmr
R
false
false
372
r
context("parse columns") test_that("apply funcs to columns", { # when df <- data.frame(x = 1:5, y = 11:15, z = "OK") fx <- function(x) x * 2 fy <- function(x) x - 1 # then result <- parse_columns(df, list(x = fx, y = fy)) expected_x <- seq(2, 10, 2) expected_y <- 10:14 # --- expect_equal(result$x, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggplot.R \name{shenwei356.theme} \alias{shenwei356.theme} \title{shenwei356.theme} \usage{ shenwei356.theme() } \description{ shenwei356's ggplot2 theme }
/man/shenwei356.theme.Rd
permissive
shenwei356/swr
R
false
true
233
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggplot.R \name{shenwei356.theme} \alias{shenwei356.theme} \title{shenwei356.theme} \usage{ shenwei356.theme() } \description{ shenwei356's ggplot2 theme }
plot21x <- function(bwsurvival=NA,x=NA,...){ library(Hmisc) x<-factor(x) if (length(bwsurvival)%%2==0) par(mfrow=c(floor(length(bwsurvival)%/%2),2),font=1,font.axis=3,font.lab=4,las=1,oma=c(0,0,1,0)) else par(mfrow=c(floor(length(bwsurvival)%/%2+1),2),font=1,font.axis=3,font.lab=4,las=1,oma=c(0,0,1,0)) plot(bwsur...
/R/plot21x.R
no_license
cran/bwsurvival
R
false
false
1,340
r
plot21x <- function(bwsurvival=NA,x=NA,...){ library(Hmisc) x<-factor(x) if (length(bwsurvival)%%2==0) par(mfrow=c(floor(length(bwsurvival)%/%2),2),font=1,font.axis=3,font.lab=4,las=1,oma=c(0,0,1,0)) else par(mfrow=c(floor(length(bwsurvival)%/%2+1),2),font=1,font.axis=3,font.lab=4,las=1,oma=c(0,0,1,0)) plot(bwsur...
## Functions described here caches the value of the inverse matrix of a given matrix ## This function makes cache of a matrix and the Inverse of it ## Matrix must be invertible makeCacheMatrix <- function(x = matrix()) { inverseValue <- NULL ## sets the matrix value. In this time, the inverse se...
/cachematrix.R
no_license
amandaorbite/ProgrammingAssignment2
R
false
false
1,513
r
## Functions described here caches the value of the inverse matrix of a given matrix ## This function makes cache of a matrix and the Inverse of it ## Matrix must be invertible makeCacheMatrix <- function(x = matrix()) { inverseValue <- NULL ## sets the matrix value. In this time, the inverse se...
## Function: entropy ## Calculates the entropy, given a dataset and a variable entropy <- function(data, variable) { p_overall <- 0 for (i in 1:length(levels(as.factor(data[,which(names(data) == variable)])))){ p_level <- (length(data[,which(names(data) == variable)] ...
/ch1_entropy.R
permissive
bbrewington/data-science-for-business
R
false
false
578
r
## Function: entropy ## Calculates the entropy, given a dataset and a variable entropy <- function(data, variable) { p_overall <- 0 for (i in 1:length(levels(as.factor(data[,which(names(data) == variable)])))){ p_level <- (length(data[,which(names(data) == variable)] ...
#Power calculation rld.design <- function(nsim, nv, np, ndlevel, nexposure, rho, p0, RR, method = c("LRT", "log-rank"), Siglevel){ ##data generation Gendata <- function(nv, np, ndlevel, nexposure, rho, p0, RR){ if (rho>0){ Nu <- rho/(1-rho)*(pi^2/6) AlphaBetap <- log((1/Nu)*(exp(-N...
/R/rld.design.R
no_license
cran/rld
R
false
false
7,583
r
#Power calculation rld.design <- function(nsim, nv, np, ndlevel, nexposure, rho, p0, RR, method = c("LRT", "log-rank"), Siglevel){ ##data generation Gendata <- function(nv, np, ndlevel, nexposure, rho, p0, RR){ if (rho>0){ Nu <- rho/(1-rho)*(pi^2/6) AlphaBetap <- log((1/Nu)*(exp(-N...
############################################################################################################################## # Title: Profile-Line.R # Type: Module for DCR Shiny App # Description: Line Plot for # Written by: Nick Zinck, Spring 2017 #####################################################...
/modules/plots/profile_line.R
permissive
dancrocker/DCR-WAVE
R
false
false
7,722
r
############################################################################################################################## # Title: Profile-Line.R # Type: Module for DCR Shiny App # Description: Line Plot for # Written by: Nick Zinck, Spring 2017 #####################################################...
\name{autoFill} \alias{autoFill} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Automatically fill out blanks of a vector with the preceding label } \description{ \code{autoFill} is commonly used to generate labels from columns of a spreadsheet when many cells are left blank in order to save...
/man/autoFill.Rd
no_license
petebaker/polysegratio
R
false
false
1,378
rd
\name{autoFill} \alias{autoFill} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Automatically fill out blanks of a vector with the preceding label } \description{ \code{autoFill} is commonly used to generate labels from columns of a spreadsheet when many cells are left blank in order to save...
library(testthat) library(tsic) test_check("tsic")
/tests/testthat.R
no_license
philliplab/tsic
R
false
false
52
r
library(testthat) library(tsic) test_check("tsic")
## PCA+KNN implemented ## Accuracy : 0.9556 #install.packages("caret") library("caret") #removing categorical column k = 100L ####update the file path#### iris <- read.csv("C:\\Users\\Rachit Agrawal\\Downloads\\iris.data", header=F, sep=",") data <- iris[,c(1:4)] ############ visualize <- prcomp(data, scale...
/iris/pca_only.R
no_license
rachitagrawal20/Dimentionality-Reduction-and-classification
R
false
false
630
r
## PCA+KNN implemented ## Accuracy : 0.9556 #install.packages("caret") library("caret") #removing categorical column k = 100L ####update the file path#### iris <- read.csv("C:\\Users\\Rachit Agrawal\\Downloads\\iris.data", header=F, sep=",") data <- iris[,c(1:4)] ############ visualize <- prcomp(data, scale...
context("test-getupdates") test_that("can get updates", { skip_if_offline() skip_if(!login()) updates <- getUpdates() expect_true(length(updates) > 0) expect_true("matches" %in% names(updates)) })
/tests/testthat/test-getupdates.R
no_license
jcrodriguez1989/Rtinder
R
false
false
219
r
context("test-getupdates") test_that("can get updates", { skip_if_offline() skip_if(!login()) updates <- getUpdates() expect_true(length(updates) > 0) expect_true("matches" %in% names(updates)) })
rThomas.sp2 <- function(alpha, scale, mu, win=sphwin(type="sphere"), parents=FALSE) { stopifnot(inherits(win, "sphwin") && alpha > 0 && scale > 0 && mu > 0) rp <- rpoispp.sp2(lambda=alpha, win=win, as.sp=FALSE) rpl <- nrow(rp) rThom2 <- rp for(i in 1:rpl) { np <- rpois(1, mu) if(np > 0) { rThom1 <- ...
/R/rThomas.sp2.R
no_license
baddstats/spherstat
R
false
false
641
r
rThomas.sp2 <- function(alpha, scale, mu, win=sphwin(type="sphere"), parents=FALSE) { stopifnot(inherits(win, "sphwin") && alpha > 0 && scale > 0 && mu > 0) rp <- rpoispp.sp2(lambda=alpha, win=win, as.sp=FALSE) rpl <- nrow(rp) rThom2 <- rp for(i in 1:rpl) { np <- rpois(1, mu) if(np > 0) { rThom1 <- ...
source("../COMMON.R")
/kubobook_2012/glmm/COMMON.R
no_license
yoshiki146/Stat_Modelling_for_Data_Analysis
R
false
false
22
r
source("../COMMON.R")
\name{print.lm.madlib} \alias{print.lm.madlib} %- Also NEED an '\alias' for EACH other topic documented here. \title{ function to do ... ~~ } \description{ A concise (1-5 lines) description of what the function does. ~~ } \usage{ \method{print}{lm.madlib}(x, digits = max(3L, getOption("digits") - 3L), ...) } %- maybe a...
/PivotalR/man/print.lm.madlib.Rd
no_license
nborwankar/rmadlib
R
false
false
1,382
rd
\name{print.lm.madlib} \alias{print.lm.madlib} %- Also NEED an '\alias' for EACH other topic documented here. \title{ function to do ... ~~ } \description{ A concise (1-5 lines) description of what the function does. ~~ } \usage{ \method{print}{lm.madlib}(x, digits = max(3L, getOption("digits") - 3L), ...) } %- maybe a...
## Question 3. ## Reads in the relevant dataset. q3_data <- read.csv("question3_data.csv") ## Re-directs output to a file. sink(file="question3_results_UPDRS_maleandfemale.txt") ## Performs linear regression. ## Output = UPDRS. cat("\nUPDRS vs. Statin and All Variables\n") UPDRS_all_statin <- lm(U...
/question3.R
no_license
cashuseyepatch/medicalStats
R
false
false
11,654
r
## Question 3. ## Reads in the relevant dataset. q3_data <- read.csv("question3_data.csv") ## Re-directs output to a file. sink(file="question3_results_UPDRS_maleandfemale.txt") ## Performs linear regression. ## Output = UPDRS. cat("\nUPDRS vs. Statin and All Variables\n") UPDRS_all_statin <- lm(U...
library(psychometric) ### Name: CAFAA ### Title: Compound Attenuation Factor for Meta-Analytic Artifact ### Corrections ### Aliases: CAFAA ### Keywords: univar models ### ** Examples #From Arthur et al data(ABHt32) CAFAA(ABHt32) rhoCA(ABHt32) # From Hunter et al data(HSJt35) CAFAA(HSJt35) rhoCA(HSJt35)
/data/genthat_extracted_code/psychometric/examples/CAFAA.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
316
r
library(psychometric) ### Name: CAFAA ### Title: Compound Attenuation Factor for Meta-Analytic Artifact ### Corrections ### Aliases: CAFAA ### Keywords: univar models ### ** Examples #From Arthur et al data(ABHt32) CAFAA(ABHt32) rhoCA(ABHt32) # From Hunter et al data(HSJt35) CAFAA(HSJt35) rhoCA(HSJt35)
# USAGE # source("storm_data.R") # read_raw() # data = read_tmp("data.RData") require(data.table) read_raw <- function () { file_path = "data/repdata-data-StormData.csv"; data = read.csv(file_path,sep = ",") } read_tmp <- function (var) { cat ("Read from tmp:", var ,"\n") return (readRDS( pas...
/storm_data.R
no_license
natapone/RepData_PeerAssessment2
R
false
false
1,721
r
# USAGE # source("storm_data.R") # read_raw() # data = read_tmp("data.RData") require(data.table) read_raw <- function () { file_path = "data/repdata-data-StormData.csv"; data = read.csv(file_path,sep = ",") } read_tmp <- function (var) { cat ("Read from tmp:", var ,"\n") return (readRDS( pas...
##Authors: SO (with edits from TH) ##Last Updated: 2017 July (adapted for mounting on my local machine - sorry!) ##Notes: Run this *after* doing motion correction A03 scripts (bc need mcplots.1D files) # but *before* running nuisance regression (A06_RunNuisanceRegression.bash) print("*****...
/TIGER_A05b_CreateRegressors.R
no_license
tiffanycheingho/TIGER
R
false
false
12,786
r
##Authors: SO (with edits from TH) ##Last Updated: 2017 July (adapted for mounting on my local machine - sorry!) ##Notes: Run this *after* doing motion correction A03 scripts (bc need mcplots.1D files) # but *before* running nuisance regression (A06_RunNuisanceRegression.bash) print("*****...
################################################################################################## ################################################################################################## library(ape) library(Rcpp) sourceCpp("beta_binom_cov.cpp") source('beta_binom_cov.R') source('legend.R') ############...
/BGCR.R
no_license
JialiangMao/BGCR
R
false
false
19,246
r
################################################################################################## ################################################################################################## library(ape) library(Rcpp) sourceCpp("beta_binom_cov.cpp") source('beta_binom_cov.R') source('legend.R') ############...
`convertTime` <- function(tmp.time) { tmp <- tail(c(0, 0, rev(as.numeric(rev(unlist(strsplit(sub("sec", "", tmp.time), ":")))))), 3) tmp.label <- c("Hour", "Minute", "Second") tmp.label[which(tmp!=1)] <- paste(tmp.label, "s", sep="")[which(tmp!=1)] return(paste(paste(tmp[tmp!=0], tmp.label[tmp!=0]), collapse=", "))...
/SGP/R/convertTime.R
no_license
ingted/R-Examples
R
false
false
343
r
`convertTime` <- function(tmp.time) { tmp <- tail(c(0, 0, rev(as.numeric(rev(unlist(strsplit(sub("sec", "", tmp.time), ":")))))), 3) tmp.label <- c("Hour", "Minute", "Second") tmp.label[which(tmp!=1)] <- paste(tmp.label, "s", sep="")[which(tmp!=1)] return(paste(paste(tmp[tmp!=0], tmp.label[tmp!=0]), collapse=", "))...
# This script runs the regression model on CD4 T cells 7 days after malaria infection. # Data was taken from Loennberg et al. library(BASiCS) #setwd("/nfs/research2/marioni/Nils/BASiCS/") setwd("~/Documents/OneDrive/Projects/SingleCell/Datasets/Regression") chains.path <- "~/Documents/OneDrive/Projects/SingleCell/BA...
/ChainGeneration/DifferentialTesting/CD4diff_7day.R
no_license
catavallejos/RegressionBASiCS2017
R
false
false
1,645
r
# This script runs the regression model on CD4 T cells 7 days after malaria infection. # Data was taken from Loennberg et al. library(BASiCS) #setwd("/nfs/research2/marioni/Nils/BASiCS/") setwd("~/Documents/OneDrive/Projects/SingleCell/Datasets/Regression") chains.path <- "~/Documents/OneDrive/Projects/SingleCell/BA...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sheets_objects.R \name{DeleteProtectedRangeRequest} \alias{DeleteProtectedRangeRequest} \title{DeleteProtectedRangeRequest Object} \usage{ DeleteProtectedRangeRequest(protectedRangeId = NULL) } \arguments{ \item{protectedRangeId}{The ID of th...
/man/DeleteProtectedRangeRequest.Rd
no_license
bradgwest/googleSheetsR
R
false
true
622
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sheets_objects.R \name{DeleteProtectedRangeRequest} \alias{DeleteProtectedRangeRequest} \title{DeleteProtectedRangeRequest Object} \usage{ DeleteProtectedRangeRequest(protectedRangeId = NULL) } \arguments{ \item{protectedRangeId}{The ID of th...
\docType{data} \name{demo-SensorAffinity} \alias{demo-SensorAffinity} \title{Demo SensorAffinity.} \description{ Demo SensorAffinity. } \examples{ # define a representative set of gases A, C and AC # - appropriate to test sensor affinities across two species A and C set <- c("A 0.01", "A 0.05", "C 0.1", "C 1", "A 0....
/man/demo-SensorAffinity.Rd
no_license
cran/chemosensors
R
false
false
1,976
rd
\docType{data} \name{demo-SensorAffinity} \alias{demo-SensorAffinity} \title{Demo SensorAffinity.} \description{ Demo SensorAffinity. } \examples{ # define a representative set of gases A, C and AC # - appropriate to test sensor affinities across two species A and C set <- c("A 0.01", "A 0.05", "C 0.1", "C 1", "A 0....
# # ggbiplot2-package.R # # Copyright 2014 Vincent Q. Vu. All rights reserved # #' ggbiplot2 #' #' @import ggplot2 plyr grid scales #' @name ggbiplot2 #' @docType package NULL #' @title Wine dataset #' @name wine #' @aliases wine.class #' @description #' Results of a chemical analysis of wines grown in the same re...
/R/ggbiplot2-package.R
no_license
deprekate/ggbiplot2
R
false
false
795
r
# # ggbiplot2-package.R # # Copyright 2014 Vincent Q. Vu. All rights reserved # #' ggbiplot2 #' #' @import ggplot2 plyr grid scales #' @name ggbiplot2 #' @docType package NULL #' @title Wine dataset #' @name wine #' @aliases wine.class #' @description #' Results of a chemical analysis of wines grown in the same re...
# More tests are in test-write_fs_weight test_that("Invalid arguments to read.fs.weight lead to errors", { tmp_file = tempfile(fileext=".w"); expect_error(read.fs.weight(tmp_file, format = "no such format")); # invalid format })
/tests/testthat/test-read_fs_weight.R
permissive
dfsp-spirit/freesurferformats
R
false
false
236
r
# More tests are in test-write_fs_weight test_that("Invalid arguments to read.fs.weight lead to errors", { tmp_file = tempfile(fileext=".w"); expect_error(read.fs.weight(tmp_file, format = "no such format")); # invalid format })
## ----my-first-shiny-app, eval = FALSE------------------------------------ ## library(shiny) ## ## ui <- fluidPage() ## server <- function(input, output) {} ## ## shinyApp(ui = ui, server = server) ## ----shinydashboard------------------------------------------------------ library(shiny) library(shinydashboard) u...
/060-ggplot/output/purl/04-01-my-first-shiny.R
no_license
quantide/qtraining
R
false
false
476
r
## ----my-first-shiny-app, eval = FALSE------------------------------------ ## library(shiny) ## ## ui <- fluidPage() ## server <- function(input, output) {} ## ## shinyApp(ui = ui, server = server) ## ----shinydashboard------------------------------------------------------ library(shiny) library(shinydashboard) u...
#' @rdname fixationIndels #' @title Fixation indels prediction #' @description The fixation of insertions of deletions. #' @param x The return from \code{\link{sitesMinEntropy}} function. #' @param ... Other arguments. #' @return A \code{fixationIndels} object. #' @export #' @examples #' data(zikv_tree_reduced) #' data...
/R/fixationIndels.R
permissive
wuaipinglab/sitePath
R
false
false
7,046
r
#' @rdname fixationIndels #' @title Fixation indels prediction #' @description The fixation of insertions of deletions. #' @param x The return from \code{\link{sitesMinEntropy}} function. #' @param ... Other arguments. #' @return A \code{fixationIndels} object. #' @export #' @examples #' data(zikv_tree_reduced) #' data...
library(MASS) library(caret) library(magrittr) library(ggplot2) data(Boston) set.seed(123) # mean centering b2 <- preProcess(Boston, method = "center") %>% predict(., Boston) idx <- createDataPartition(b2$medv, p = 0.8, list = FALSE) train <- Boston[idx,] test <- Boston[-idx,] mod0 <- lm(data = train, medv ~.) sm...
/waterfall/regression.R
no_license
tohweizhong/auxml-lab
R
false
false
2,377
r
library(MASS) library(caret) library(magrittr) library(ggplot2) data(Boston) set.seed(123) # mean centering b2 <- preProcess(Boston, method = "center") %>% predict(., Boston) idx <- createDataPartition(b2$medv, p = 0.8, list = FALSE) train <- Boston[idx,] test <- Boston[-idx,] mod0 <- lm(data = train, medv ~.) sm...
processing_setting <- function(s1) { s2=list() data.in <- FALSE id.out <- FALSE if (!is.null(s1)){ if (!is.null(s1$record.file)) {s2$recordFile=s1$record.file} if (!is.null(s1$load.design)) {s2$loadDesign=s1$load.design} if (!is.null(s1$seed)) {s2$seed=s1$seed} if (!is.null(s1...
/R/processing_setting.R
no_license
MarcLavielle/mlxR
R
false
false
468
r
processing_setting <- function(s1) { s2=list() data.in <- FALSE id.out <- FALSE if (!is.null(s1)){ if (!is.null(s1$record.file)) {s2$recordFile=s1$record.file} if (!is.null(s1$load.design)) {s2$loadDesign=s1$load.design} if (!is.null(s1$seed)) {s2$seed=s1$seed} if (!is.null(s1...
#S05_C26_Trees_Motivation #Motivacion para Arboles de Decisión #Describimos cómo los métodos como lda y qda no deben usarse con conjuntos de datos que tienen muchos predictores. #Esto se debe a que el número de parámetros que necesitamos estimar se vuelve demasiado grande. #Por ejemplo, con el ejemplo de dígitos don...
/HC_SeccionN05/S05_C26_Trees_Motivation.R
no_license
wparedesgt/MachineLearning
R
false
false
2,701
r
#S05_C26_Trees_Motivation #Motivacion para Arboles de Decisión #Describimos cómo los métodos como lda y qda no deben usarse con conjuntos de datos que tienen muchos predictores. #Esto se debe a que el número de parámetros que necesitamos estimar se vuelve demasiado grande. #Por ejemplo, con el ejemplo de dígitos don...
library(data.table) exclusion_name <- "YES-NEALELAB-MARCH-19" # The old version of the outcome info file old_variable_info <- "variable-info/outcome_info_final_round2.tsv" # The latest version of the Data Dictionary Showcase - download from UKB if updating. # wget http://biobank.ctsu.ox.ac.uk/%7Ebbdatan/Data_Dictionary...
/WAS/merging_variable_info.r
permissive
astheeggeggs/PHESANT
R
false
false
4,670
r
library(data.table) exclusion_name <- "YES-NEALELAB-MARCH-19" # The old version of the outcome info file old_variable_info <- "variable-info/outcome_info_final_round2.tsv" # The latest version of the Data Dictionary Showcase - download from UKB if updating. # wget http://biobank.ctsu.ox.ac.uk/%7Ebbdatan/Data_Dictionary...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EPFR.r \name{sql.regr} \alias{sql.regr} \title{sql.regr} \usage{ sql.regr(x, y, n) } \arguments{ \item{x}{= a string vector (independent variable(s))} \item{y}{= a string (dependent variable)} \item{n}{= T/F depending on whether there's an ...
/man/sql.regr.Rd
no_license
vsrimurthy/EPFR
R
false
true
4,894
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EPFR.r \name{sql.regr} \alias{sql.regr} \title{sql.regr} \usage{ sql.regr(x, y, n) } \arguments{ \item{x}{= a string vector (independent variable(s))} \item{y}{= a string (dependent variable)} \item{n}{= T/F depending on whether there's an ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pca.R \name{plot_projection_features} \alias{plot_projection_features} \alias{plot_pca_features} \alias{plot_sma_features} \alias{plot_lda_features} \alias{plot_pls_features} \title{Plot PCA/PLS/LDA/SMA features} \usage{ plot_projection_featu...
/autonomics.plot/man/plot_projection_features.Rd
no_license
bhagwataditya/autonomics0
R
false
true
2,383
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pca.R \name{plot_projection_features} \alias{plot_projection_features} \alias{plot_pca_features} \alias{plot_sma_features} \alias{plot_lda_features} \alias{plot_pls_features} \title{Plot PCA/PLS/LDA/SMA features} \usage{ plot_projection_featu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GREA.functions.R \name{get.genes.within.loci} \alias{get.genes.within.loci} \title{get.genes.within.loci \code{get.genes.within.loci} Given a set of \code{positions}(genomic coordinates), will return a data.frame with the genes within the inp...
/man/get.genes.within.loci.Rd
no_license
raguirreg/GREA
R
false
true
1,344
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GREA.functions.R \name{get.genes.within.loci} \alias{get.genes.within.loci} \title{get.genes.within.loci \code{get.genes.within.loci} Given a set of \code{positions}(genomic coordinates), will return a data.frame with the genes within the inp...
census_geocoder <- function(address,type,secondary,state){ library(jsonlite) library(RCurl) addy <- paste("street=",gsub(" ","+",address),sep="") if(type=="z"){ wild <- paste("zip=",gsub(" ","+",secondary),sep="") }else{ wild <- paste("city=",gsub(" ","+",secondary),sep=""...
/wrapper.R
no_license
SigmaMonstR/census-geocoder
R
false
false
1,601
r
census_geocoder <- function(address,type,secondary,state){ library(jsonlite) library(RCurl) addy <- paste("street=",gsub(" ","+",address),sep="") if(type=="z"){ wild <- paste("zip=",gsub(" ","+",secondary),sep="") }else{ wild <- paste("city=",gsub(" ","+",secondary),sep=""...
\name{model.matrixBayes} %\docType{genericFunction} \alias{model.matrixBayes} \title{Construct Design Matrices} \description{ \code{model.matrixBayes} creates a design matrix. } \usage{ model.matrixBayes(object, data = environment(object), contrasts.arg = NULL, xlev = NULL, keep.order = FALSE, drop...
/man/model.matrixBayes.Rd
no_license
suyusung/arm
R
false
false
3,103
rd
\name{model.matrixBayes} %\docType{genericFunction} \alias{model.matrixBayes} \title{Construct Design Matrices} \description{ \code{model.matrixBayes} creates a design matrix. } \usage{ model.matrixBayes(object, data = environment(object), contrasts.arg = NULL, xlev = NULL, keep.order = FALSE, drop...
data <- read.table("household_power_consumption.txt", header=T, sep=";", na.strings="?", nrows=1000000, stringsAsFactors=F) data$DateTime <- paste(data$Date, data$Time) data$DateTime <- as.Date(data$DateTime, format = "%d/%m/%Y %H:%M:%S") library(dplyr) subsetData <- filter(data, DateTime >= as.Dat...
/plot2.R
no_license
kpal/ExData_Plotting1
R
false
false
633
r
data <- read.table("household_power_consumption.txt", header=T, sep=";", na.strings="?", nrows=1000000, stringsAsFactors=F) data$DateTime <- paste(data$Date, data$Time) data$DateTime <- as.Date(data$DateTime, format = "%d/%m/%Y %H:%M:%S") library(dplyr) subsetData <- filter(data, DateTime >= as.Dat...