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
context("Sum") # data(variable.Text) # data(variable.Binary) # data(variable.Nominal) # data(variable.Numeric) # data(variable.Time) # data(variable.Date) # test_that("Variables", # { # expect_error(SumColumns(variable.Text), # "It is not possible to 'Sum' Text") # ...
/tests/testthat/test-sumcolumns.R
no_license
mwmclean/verbs
R
false
false
4,586
r
context("Sum") # data(variable.Text) # data(variable.Binary) # data(variable.Nominal) # data(variable.Numeric) # data(variable.Time) # data(variable.Date) # test_that("Variables", # { # expect_error(SumColumns(variable.Text), # "It is not possible to 'Sum' Text") # ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.R \name{print.SMARTp} \alias{print.SMARTp} \title{Print for SMARTp class} \usage{ \method{print}{SMARTp}(x, ...) } \arguments{ \item{x}{SMARTp object to print} \item{...}{Other parameters for print} } \description{ Print for SMARTp cla...
/man/print.SMARTp.Rd
no_license
cran/SMARTp
R
false
true
325
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.R \name{print.SMARTp} \alias{print.SMARTp} \title{Print for SMARTp class} \usage{ \method{print}{SMARTp}(x, ...) } \arguments{ \item{x}{SMARTp object to print} \item{...}{Other parameters for print} } \description{ Print for SMARTp cla...
### ch03. - Central Tendency # central limit theorem rm(list = ls()) cwd <- getwd() dataFile <- "yvalues.csv" yvals <- read.csv(paste(cwd, "/", dataFile, sep = "")) str(yvals) head(yvals) attach(yvals) hist(y) # arithmetic mean total <- sum(y); total n <- length(y); n ybar <- total/n; ybar ybar <-...
/Stats - An Introduction Using R by Crawley/03.Central Tendency/03.centralTendency.R
no_license
EM-Lee/DataAnalysis.Stats.withR
R
false
false
3,022
r
### ch03. - Central Tendency # central limit theorem rm(list = ls()) cwd <- getwd() dataFile <- "yvalues.csv" yvals <- read.csv(paste(cwd, "/", dataFile, sep = "")) str(yvals) head(yvals) attach(yvals) hist(y) # arithmetic mean total <- sum(y); total n <- length(y); n ybar <- total/n; ybar ybar <-...
library(shiny) library(readxl) library(ggplot2) source("helpers.R") options(stringsAsFactors = FALSE) max_plots <- 16 shinyServer(function(input, output) { # read data file file.upload <- reactive({ inFile <- input$GFRfile if (!is.null(inFile)) { # if any file name is given ext <- tools::file_ex...
/server.r
permissive
simecek/GFRcalc
R
false
false
4,853
r
library(shiny) library(readxl) library(ggplot2) source("helpers.R") options(stringsAsFactors = FALSE) max_plots <- 16 shinyServer(function(input, output) { # read data file file.upload <- reactive({ inFile <- input$GFRfile if (!is.null(inFile)) { # if any file name is given ext <- tools::file_ex...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/project_meta_data.R \name{SetProjectAnalyst} \alias{SetProjectAnalyst} \title{Set Project Analyst} \usage{ SetProjectAnalyst(AnalystName) } \arguments{ \item{AnalystName}{A string containing the analyst name} } \value{ A message stating the n...
/man/SetProjectAnalyst.Rd
no_license
CIDA-CSPH/CIDAtools
R
false
true
518
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/project_meta_data.R \name{SetProjectAnalyst} \alias{SetProjectAnalyst} \title{Set Project Analyst} \usage{ SetProjectAnalyst(AnalystName) } \arguments{ \item{AnalystName}{A string containing the analyst name} } \value{ A message stating the n...
# IF, FOR, WHILE 문 # R의 IF문 구조는 다른 언어와 큰 차이가 없다. if(T){ print('TRUE') print('Hello') }else{ print('FALSE') print('World') } if(F){ print('TRUE') print('Hello') }else{ cat('FALSE') cat('World') } for(i in 1:10){ cat(i) cat(' ') } for(i in c('a','b','c','d')){ cat(i) cat(' ') } i = 0 while(i<10)...
/Day02/Ex07.R
no_license
bigdata202005/RProject
R
false
false
4,329
r
# IF, FOR, WHILE 문 # R의 IF문 구조는 다른 언어와 큰 차이가 없다. if(T){ print('TRUE') print('Hello') }else{ print('FALSE') print('World') } if(F){ print('TRUE') print('Hello') }else{ cat('FALSE') cat('World') } for(i in 1:10){ cat(i) cat(' ') } for(i in c('a','b','c','d')){ cat(i) cat(' ') } i = 0 while(i<10)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/r6sagemaker.R \docType{package} \name{R6sagemaker-package} \alias{R6sagemaker} \alias{R6sagemaker-package} \title{r6 sagemaker: this is just a placeholder} \description{ A library for training and deploying machine learning models on Ama...
/man/R6sagemaker-package.Rd
permissive
Xerso/sagemaker-r-sdk
R
false
true
553
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/r6sagemaker.R \docType{package} \name{R6sagemaker-package} \alias{R6sagemaker} \alias{R6sagemaker-package} \title{r6 sagemaker: this is just a placeholder} \description{ A library for training and deploying machine learning models on Ama...
VanillaCalibrationLasso <- function(d,X,c=1.1, PostLasso=F,trace=F,maxIter=1e3){ ### Function to compute beta_0, the covariate balancing weights ### Only use a single penalty parameter ### Jeremy L Hour ### 11 janvier 2016 ### INPUTS: # d : Treatment indicator # X : Covariat...
/functions/VanillaCalibrationLasso.R
no_license
jeremylhour/alternative-synthetic-control-sparsity
R
false
false
2,151
r
VanillaCalibrationLasso <- function(d,X,c=1.1, PostLasso=F,trace=F,maxIter=1e3){ ### Function to compute beta_0, the covariate balancing weights ### Only use a single penalty parameter ### Jeremy L Hour ### 11 janvier 2016 ### INPUTS: # d : Treatment indicator # X : Covariat...
library(gridExtra) library(ggplot2) library(plyr) showData <- function() { data <- read.csv('output.csv', sep=";", header=T) lastStep <- subset(data, step==max(data$step)) maxRow <- lastStep[lastStep$size==max(lastStep$size),] g1 <- ggplot(data, aes(x=step, y=size, group=site)) + geom_line() ...
/lognormal/code.R
no_license
xrubio/entropy_abc
R
false
false
505
r
library(gridExtra) library(ggplot2) library(plyr) showData <- function() { data <- read.csv('output.csv', sep=";", header=T) lastStep <- subset(data, step==max(data$step)) maxRow <- lastStep[lastStep$size==max(lastStep$size),] g1 <- ggplot(data, aes(x=step, y=size, group=site)) + geom_line() ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/portalr-package.R \docType{package} \name{portalr} \alias{portalr} \alias{portalr-package} \title{Creates summaries of the Portal data} \description{ This package is designed to be an interface to the Portal data, which resides online at \url...
/man/portalr.Rd
permissive
emchristensen/portalr
R
false
true
459
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/portalr-package.R \docType{package} \name{portalr} \alias{portalr} \alias{portalr-package} \title{Creates summaries of the Portal data} \description{ This package is designed to be an interface to the Portal data, which resides online at \url...
library(SSDforR) ### Name: PEMbelow ### Title: PEM - desired values below the reference line ### Aliases: PEMbelow ### Keywords: ~kwd1 ~kwd2 ### ** Examples cry<-c(3, 4, 2, 5, 3, 4, NA, 2, 2, 3, 2, 1, 2, NA, 2, 2, 1, 2, 1, 0, 0, 0) pcry<-c("A", "A", "A", "A", "A", "A", NA, "B", "B", "B", "B", "B", "B", NA, "B1", "B...
/data/genthat_extracted_code/SSDforR/examples/PEMbelow.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
390
r
library(SSDforR) ### Name: PEMbelow ### Title: PEM - desired values below the reference line ### Aliases: PEMbelow ### Keywords: ~kwd1 ~kwd2 ### ** Examples cry<-c(3, 4, 2, 5, 3, 4, NA, 2, 2, 3, 2, 1, 2, NA, 2, 2, 1, 2, 1, 0, 0, 0) pcry<-c("A", "A", "A", "A", "A", "A", NA, "B", "B", "B", "B", "B", "B", NA, "B1", "B...
#Get the data data <- read.table("household_power_consumption.txt", header = FALSE, sep = ";", skip = 66637, nrows = 2879) #Define the column names colnames(data) <- c("Date", "Time", "Global_active_power", "Global_reactive_power", ...
/plot3.R
no_license
Cheetos/ExData_Plotting1
R
false
false
949
r
#Get the data data <- read.table("household_power_consumption.txt", header = FALSE, sep = ";", skip = 66637, nrows = 2879) #Define the column names colnames(data) <- c("Date", "Time", "Global_active_power", "Global_reactive_power", ...
body <- shinydashboard::dashboardBody( #### 0 about #### shiny::fluidRow( shiny::column( 7, shinydashboard::box( background="black", # collapsible=TRUE, width=NULL, shiny::uiOutput("about_ui") ), ...
/edge_plots/ui.R
no_license
aya49/flowGraph_experiments
R
false
false
11,542
r
body <- shinydashboard::dashboardBody( #### 0 about #### shiny::fluidRow( shiny::column( 7, shinydashboard::box( background="black", # collapsible=TRUE, width=NULL, shiny::uiOutput("about_ui") ), ...
\encoding{UTF-8} \name{boreas} \alias{boreasNP} \alias{boreasNS} \alias{boreasSA} \alias{boreasSP} \docType{data} \title{ %% ~~ data name/kind ... ~~ Marked Point Pattern Tree Data from BOREAS } \description{ %% ~~ A concise (1-5 lines) description of the dataset. ~~ Four data sets from the Boreal Ecosystem–Atmosphe...
/siplab/man/boreas.Rd
no_license
albrizre/spatstat.revdep
R
false
false
2,375
rd
\encoding{UTF-8} \name{boreas} \alias{boreasNP} \alias{boreasNS} \alias{boreasSA} \alias{boreasSP} \docType{data} \title{ %% ~~ data name/kind ... ~~ Marked Point Pattern Tree Data from BOREAS } \description{ %% ~~ A concise (1-5 lines) description of the dataset. ~~ Four data sets from the Boreal Ecosystem–Atmosphe...
#' Quotation #' #' @description #' #' \Sexpr[results=rd, stage=render]{rlang:::lifecycle("stable")} #' #' Quotation is a mechanism by which an expression supplied as #' argument is captured by a function. Instead of seeing the value of #' the argument, the function sees the recipe (the R code) to make #' that value. Th...
/R/quotation.R
no_license
yutannihilation/rlang
R
false
false
12,180
r
#' Quotation #' #' @description #' #' \Sexpr[results=rd, stage=render]{rlang:::lifecycle("stable")} #' #' Quotation is a mechanism by which an expression supplied as #' argument is captured by a function. Instead of seeing the value of #' the argument, the function sees the recipe (the R code) to make #' that value. Th...
#INIT source("functions.r",encoding = "UTF-8") config <- config::get() query <- config$suchbegriffe # Ziehen aller Einzelmarken über alle zeitraeume ls <- get_all_brands(marken, config[["zeitraum_name"]], config[["zeitraum_api"]], branchenvergleich = F) #Zeitreihen Dataframe über alle marken und zeitraeume,evtl. fuer...
/input.r
no_license
Vogelweide1985/google_trends_brands
R
false
false
1,181
r
#INIT source("functions.r",encoding = "UTF-8") config <- config::get() query <- config$suchbegriffe # Ziehen aller Einzelmarken über alle zeitraeume ls <- get_all_brands(marken, config[["zeitraum_name"]], config[["zeitraum_api"]], branchenvergleich = F) #Zeitreihen Dataframe über alle marken und zeitraeume,evtl. fuer...
data1 <- read.table("household_power_consumption.txt", sep = ';', na.strings = '?', header = TRUE); #Converting the Date and Time data1$DateTime <- paste(data1$Date, data1$Time) data1$DateTime <- as.POSIXct(data1$DateTime, format = "%d/%m/%Y %H:%M:%S") #subsetting the data data1$Date <- as....
/plot4.R
no_license
edemmon/ExData_Plotting1
R
false
false
1,483
r
data1 <- read.table("household_power_consumption.txt", sep = ';', na.strings = '?', header = TRUE); #Converting the Date and Time data1$DateTime <- paste(data1$Date, data1$Time) data1$DateTime <- as.POSIXct(data1$DateTime, format = "%d/%m/%Y %H:%M:%S") #subsetting the data data1$Date <- as....
#simulation anneling func<-function(x1,x2){ y= (x1+2*x2-7)^2+(2*x1+x2-5)^2 return(y) } T<-1000 step<-0.05 r<-runif(1,0,1) eps<-0.001 for(T in 1000:1){ for(i in 1:10){ x1=runif(1,-1,1) x2=runif(1,4,5) x1_new=x1+step*runif(1) x...
/SA.r
no_license
mina20/soec
R
false
false
692
r
#simulation anneling func<-function(x1,x2){ y= (x1+2*x2-7)^2+(2*x1+x2-5)^2 return(y) } T<-1000 step<-0.05 r<-runif(1,0,1) eps<-0.001 for(T in 1000:1){ for(i in 1:10){ x1=runif(1,-1,1) x2=runif(1,4,5) x1_new=x1+step*runif(1) x...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## cachematrix.R makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinv <- function(inverse) ...
/cachematrix.R
no_license
ganesh199980/ProgrammingAssignment2
R
false
false
755
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## cachematrix.R makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinv <- function(inverse) ...
## set working directory setwd("E:/DataScienceR/module_4_w1/") ## load the data pdata<-read.table("household_power_consumption.txt",skip=1,header = FALSE,na.strings = "?",sep = ";") ## define and rename variables varNames<-c("Date","Time","Global_active_power","Global_reactive_power", "Voltage","Global_int...
/plot4.R
no_license
oyemas/ExData_Plotting1
R
false
false
1,605
r
## set working directory setwd("E:/DataScienceR/module_4_w1/") ## load the data pdata<-read.table("household_power_consumption.txt",skip=1,header = FALSE,na.strings = "?",sep = ";") ## define and rename variables varNames<-c("Date","Time","Global_active_power","Global_reactive_power", "Voltage","Global_int...
if(!file.exists("./Data")) { dir.create("./Data") } fUrl1 <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fUrl1,destfile="./Data/Dataset.zip") unzip(zipfile="./Data/Dataset.zip",exdir="./Data") train_text_A <- read.table("./Data/UCI HAR Dataset/train/X_trai...
/run_analysis.R
no_license
AppleCharan/Getting-and-Cleaning-Data-Course-Project
R
false
false
2,079
r
if(!file.exists("./Data")) { dir.create("./Data") } fUrl1 <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fUrl1,destfile="./Data/Dataset.zip") unzip(zipfile="./Data/Dataset.zip",exdir="./Data") train_text_A <- read.table("./Data/UCI HAR Dataset/train/X_trai...
#Notes: # see Kendal et al 2019 for common issues with Leslie Matrices # Leslie matrices project the population from one nominal census date to the next. # Census occurs just before breeding (“prebreeding census”) e.g. Cortes 2002 # or just after breeding (“postbreeding census”) e.g. Aires da Sil...
/Leslie.matrix.R
no_license
JuanMatiasBraccini/Git_Population.dynamics
R
false
false
5,768
r
#Notes: # see Kendal et al 2019 for common issues with Leslie Matrices # Leslie matrices project the population from one nominal census date to the next. # Census occurs just before breeding (“prebreeding census”) e.g. Cortes 2002 # or just after breeding (“postbreeding census”) e.g. Aires da Sil...
context("Grid search for performance evaluation") data("graph_toy") set.seed(1) metrics <- list( auc = metric_fun(curve = "ROC"), prc = metric_fun(curve = "PRC")) test_that("Grid search works on a graph", { expect_error({ df_perf <- perf( graph = graph_toy, scores = graph_toy$input_mat, ...
/tests/testthat/test-perf.R
no_license
b2slab/diffuStats
R
false
false
1,928
r
context("Grid search for performance evaluation") data("graph_toy") set.seed(1) metrics <- list( auc = metric_fun(curve = "ROC"), prc = metric_fun(curve = "PRC")) test_that("Grid search works on a graph", { expect_error({ df_perf <- perf( graph = graph_toy, scores = graph_toy$input_mat, ...
# Tools for geocoding addresses affiliated with Pubmed Records # Geocoder still needs some work - Not a good enough hit rate... #' Returns a data frame of geocoded addresses with longitude and latitudes #' Uses the Google Maps geocode API #' @export #' @param addresses A character vector of addresses for geocoding #'...
/R/rpubmed_locations.R
no_license
myndworkz/rpubmed
R
false
false
4,092
r
# Tools for geocoding addresses affiliated with Pubmed Records # Geocoder still needs some work - Not a good enough hit rate... #' Returns a data frame of geocoded addresses with longitude and latitudes #' Uses the Google Maps geocode API #' @export #' @param addresses A character vector of addresses for geocoding #'...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % deviceUtils.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{devSet} \alias{devSet}...
/man/devSet.Rd
no_license
HenrikBengtsson/R.devices
R
false
false
970
rd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % deviceUtils.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{devSet} \alias{devSet}...
### MODUS ### Aula 3 ### Prof. Jorge Alexandre ########################## ######################################################## # Setando o diretório de trabalho setwd('~/MODUS_regressao') # Lista os arquivos existentes no diretório list.files() # Carregando os pacotes necessários library(foreign) library(ggplot2...
/modus_regressao_03.R
no_license
neylsoncrepalde/MODUS
R
false
false
2,132
r
### MODUS ### Aula 3 ### Prof. Jorge Alexandre ########################## ######################################################## # Setando o diretório de trabalho setwd('~/MODUS_regressao') # Lista os arquivos existentes no diretório list.files() # Carregando os pacotes necessários library(foreign) library(ggplot2...
rm(list=ls()) #all the heatmaps! data=read.table("RSEM.genes.fpkm.gt1.noGm.averagedreps.differential.lncRNA.tsv",header=TRUE,sep='\t') header="Satellite Cells time course \n FPKM for Differential lncRNAs" library(gplots) data$GeneId=NULL GeneName=data$GeneName data$GeneName=NULL data=as.matrix(data) hclust_fun = funct...
/nemo/remove_day4_sat2_ko/lncRNA/heatmaps.R
no_license
annashcherbina/nobel_lab_projects
R
false
false
856
r
rm(list=ls()) #all the heatmaps! data=read.table("RSEM.genes.fpkm.gt1.noGm.averagedreps.differential.lncRNA.tsv",header=TRUE,sep='\t') header="Satellite Cells time course \n FPKM for Differential lncRNAs" library(gplots) data$GeneId=NULL GeneName=data$GeneName data$GeneName=NULL data=as.matrix(data) hclust_fun = funct...
#' @param flux logical if TRUE results are returned in flux, if FALSE concentration. Default is set to FALSE. #' @export #' @rdname tableChange #' @export #' @return dataframe with Year1, Year2, change[mg/L], slope[mg/L], change[percent], slope[percent] columns. The data in each row is the change or slope calculated fr...
/R/tableChangeSingle.R
permissive
zac-driscoll/EGRET
R
false
false
5,452
r
#' @param flux logical if TRUE results are returned in flux, if FALSE concentration. Default is set to FALSE. #' @export #' @rdname tableChange #' @export #' @return dataframe with Year1, Year2, change[mg/L], slope[mg/L], change[percent], slope[percent] columns. The data in each row is the change or slope calculated fr...
### Voorbeeld x = c(1,2,3) y = c(4,5,6) A = cbind(x,y);A t(A) B = t(A) %*% A; B eigen(B) C = solve(B); C B %*% C diag(3) xx = x %*% x; xx xx*A as.numeric(xx)*A D = data.frame(x,y) t(D)%*%D t(as.matrix(D))%*%as.matrix(D) mean(A) colMeans(A) colMeans(D) ### Oefeningen Beschrijvende multivariate statistiek x = rnorm(100)...
/cursusEnInfo/oefening03mahalanobisenzo.R
permissive
ThomasBamelis/statistiekProject
R
false
false
11,557
r
### Voorbeeld x = c(1,2,3) y = c(4,5,6) A = cbind(x,y);A t(A) B = t(A) %*% A; B eigen(B) C = solve(B); C B %*% C diag(3) xx = x %*% x; xx xx*A as.numeric(xx)*A D = data.frame(x,y) t(D)%*%D t(as.matrix(D))%*%as.matrix(D) mean(A) colMeans(A) colMeans(D) ### Oefeningen Beschrijvende multivariate statistiek x = rnorm(100)...
head(mtcars) head(cars) attach(cars) plot(x=speed,y=dist) cor(speed,dist) lm(speed~dist) summary(lm(speed~dist)) model<-lm(dist~speed) coefficients(model) confint(model) anova(model) plot(model) addon=data.frame(speed=45) predict(model,addon) # 1 #159.3793 ######Multiple Regression head(mtcars) attac...
/regressionModels.R
no_license
seansio1995/R-tutorials
R
false
false
1,403
r
head(mtcars) head(cars) attach(cars) plot(x=speed,y=dist) cor(speed,dist) lm(speed~dist) summary(lm(speed~dist)) model<-lm(dist~speed) coefficients(model) confint(model) anova(model) plot(model) addon=data.frame(speed=45) predict(model,addon) # 1 #159.3793 ######Multiple Regression head(mtcars) attac...
#Script pour l'importation de s�quences et l'alignement # Le signe diese faire shift 3 # le signe \ doit toujours �tre doubl� car sinon en programmation, il annonce les caract�res suivants donc mettre \\ # []-les bracquets se font avec altcar et 9, 0 # les doubles guillemets-shift+point #�crire-le nom de la fonction s...
/Alignement/Alignement.R
no_license
toto3/statR
R
false
false
32,321
r
#Script pour l'importation de s�quences et l'alignement # Le signe diese faire shift 3 # le signe \ doit toujours �tre doubl� car sinon en programmation, il annonce les caract�res suivants donc mettre \\ # []-les bracquets se font avec altcar et 9, 0 # les doubles guillemets-shift+point #�crire-le nom de la fonction s...
#' TeX row (B) #' #' Generates a row of TeX code for the payoffs of Player B. For use in \code{\link{normalTexGame}}. #' #' @param rowB A row of payoffs of Player B #' @return A string of TeX output #' #' @export TeXrow.B <- function(rowB){ str <- paste(rowB, sep = ":", collapse="} & & \\multicolumn{1}{c|}{") str ...
/R/TeXrow.B.R
permissive
rfaltings/GT.Tools
R
false
false
382
r
#' TeX row (B) #' #' Generates a row of TeX code for the payoffs of Player B. For use in \code{\link{normalTexGame}}. #' #' @param rowB A row of payoffs of Player B #' @return A string of TeX output #' #' @export TeXrow.B <- function(rowB){ str <- paste(rowB, sep = ":", collapse="} & & \\multicolumn{1}{c|}{") str ...
# BUSINESS SCIENCE UNIVERSITY # DS4B 103-R: TIME SERIES FORECASTING FOR BUSINESS # MODULE: FEATURE ENGINEERING # GOAL ---- # - FIND ENGINEERED FEATURES BEFORE MODELING # OBJECTIVES: # - Time-Based Features - Trend-Based & Seasonal Features # - Interactions # - Fourier Series # - Autocorrelated Lags # - Special Events...
/04_feature-engineering/01_feature_engineering_1.R
no_license
flostracke/modeltime_course
R
false
false
1,471
r
# BUSINESS SCIENCE UNIVERSITY # DS4B 103-R: TIME SERIES FORECASTING FOR BUSINESS # MODULE: FEATURE ENGINEERING # GOAL ---- # - FIND ENGINEERED FEATURES BEFORE MODELING # OBJECTIVES: # - Time-Based Features - Trend-Based & Seasonal Features # - Interactions # - Fourier Series # - Autocorrelated Lags # - Special Events...
##### CREDIT SCORE CASE ##### ##### Prepare the working environment ##### rm(list=ls(all=TRUE)) data <- read.table('DATA_3.01_CREDIT.csv',sep=',',header=T) ##### Initial Exploration ##### str(data) summary(data) pairs(data) hist(data$Rating,300) cor(data[, c(1:5,10)]) #calculate Correllation for all rows and column 1...
/Module 2.R
no_license
kimlongngo/Strategy
R
false
false
6,081
r
##### CREDIT SCORE CASE ##### ##### Prepare the working environment ##### rm(list=ls(all=TRUE)) data <- read.table('DATA_3.01_CREDIT.csv',sep=',',header=T) ##### Initial Exploration ##### str(data) summary(data) pairs(data) hist(data$Rating,300) cor(data[, c(1:5,10)]) #calculate Correllation for all rows and column 1...
best <- function(state, outcome) { ## Read in outcome data outcome.data <- read.csv("outcome-of-care-measures.csv", stringsAsFactors = FALSE) ## Check that state and outcome are valid if (sum(toupper(outcome.data[, "State"]) == toupper(state)) <= 0) { stop ("invalid state") } if (sum(toupper(c("heart attack", ...
/Data Scientists Toolbox/Week4/best.R
no_license
sintecs/Coursera_Data_Science_Homework
R
false
false
1,563
r
best <- function(state, outcome) { ## Read in outcome data outcome.data <- read.csv("outcome-of-care-measures.csv", stringsAsFactors = FALSE) ## Check that state and outcome are valid if (sum(toupper(outcome.data[, "State"]) == toupper(state)) <= 0) { stop ("invalid state") } if (sum(toupper(c("heart attack", ...
data <- read.csv('C:\\Users\\jmcdermo\\Documents\\GitHub\\datasciencecoursera\\r_programming\\week_one\\hw1_data.csv')
/02_r_programming/week_one/assignment_one.r
no_license
jmcdermo/jhopkins_datascience_coursera
R
false
false
118
r
data <- read.csv('C:\\Users\\jmcdermo\\Documents\\GitHub\\datasciencecoursera\\r_programming\\week_one\\hw1_data.csv')
############################################################ # Initial setup ############################################################ library(rstan) rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores()) util <- new.env() source('stan_utility.R', local=util) setwd('/home/sila/stan_drexel/mat...
/material/4 - logistic_regression/logistic_regression.R
no_license
silaada/stan_drexel
R
false
false
5,032
r
############################################################ # Initial setup ############################################################ library(rstan) rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores()) util <- new.env() source('stan_utility.R', local=util) setwd('/home/sila/stan_drexel/mat...
source("functions and packages/functions.R") source("master_scripts/plot_objects.R") source("functions and packages/packages.R") # library(visreg) # library(multcomp) # library(nlme) #read in gm data set (no drought) and Cibar(discrimination)------------------------------------------------------- DELTA <- read.csv("c...
/master_scripts/delta_cica.R
no_license
CourtneyCampany/WTC3_tree
R
false
false
1,433
r
source("functions and packages/functions.R") source("master_scripts/plot_objects.R") source("functions and packages/packages.R") # library(visreg) # library(multcomp) # library(nlme) #read in gm data set (no drought) and Cibar(discrimination)------------------------------------------------------- DELTA <- read.csv("c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mycltu.R \name{mycltu} \alias{mycltu} \title{Central Limit Theorem function} \usage{ mycltu(n, iter, a = 0, b = 10) } \arguments{ \item{n}{#sample size, default} \item{iter}{#iterations, default} \item{b}{} } \value{ histogram, density curv...
/man/mycltu.Rd
permissive
Xavier00001/a4753
R
false
true
401
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mycltu.R \name{mycltu} \alias{mycltu} \title{Central Limit Theorem function} \usage{ mycltu(n, iter, a = 0, b = 10) } \arguments{ \item{n}{#sample size, default} \item{iter}{#iterations, default} \item{b}{} } \value{ histogram, density curv...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/silhouette.R \name{plotSilhouette} \alias{plotSilhouette} \title{Plot silhouette} \usage{ plotSilhouette(sil, chosenK = NULL, fileName) } \arguments{ \item{sil}{vector of the average silhouette for K from 2 to some value maxK} \item{chosenK}...
/man/plotSilhouette.Rd
no_license
cran/coca
R
false
true
652
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/silhouette.R \name{plotSilhouette} \alias{plotSilhouette} \title{Plot silhouette} \usage{ plotSilhouette(sil, chosenK = NULL, fileName) } \arguments{ \item{sil}{vector of the average silhouette for K from 2 to some value maxK} \item{chosenK}...
setwd("~/Desktop/P6 Tiejuan/TDMD_target_pred/") human_UTR <- read.table(file="human_3UTR_v2.txt", header = FALSE, fill = TRUE, sep = "\t") colnames(human_UTR) <- c("SYMBOL","UTR") human_UTR$UTR <- toupper(human_UTR$UTR) mir7 <- "UGGAAGACUAGUGAUUUUGUUGUU" #mir21 <- "UAGCUUAUCAGACUGAUGUUGA" #mir769 <- "UGAGACCUCUGGGUU...
/Extensive_pairing_targets/TDMD_targets_v2.R
permissive
sharanm0/oligo-tail-miRNA-2023-backup-
R
false
false
2,602
r
setwd("~/Desktop/P6 Tiejuan/TDMD_target_pred/") human_UTR <- read.table(file="human_3UTR_v2.txt", header = FALSE, fill = TRUE, sep = "\t") colnames(human_UTR) <- c("SYMBOL","UTR") human_UTR$UTR <- toupper(human_UTR$UTR) mir7 <- "UGGAAGACUAGUGAUUUUGUUGUU" #mir21 <- "UAGCUUAUCAGACUGAUGUUGA" #mir769 <- "UGAGACCUCUGGGUU...
#' Download criteria pollutants from CETESB QUALAR #' #' This function download the criteria pollutants from one air quality station (AQS) #' of CETESB AQS network. It will pad out the date with missing data with NA. #' #' @param username User name of CETESB QUALAR #' @param password User name's password of CETESB QUAL...
/R/CetesbRetrievePol.R
permissive
lapat-iag-usp/qualR
R
false
false
3,105
r
#' Download criteria pollutants from CETESB QUALAR #' #' This function download the criteria pollutants from one air quality station (AQS) #' of CETESB AQS network. It will pad out the date with missing data with NA. #' #' @param username User name of CETESB QUALAR #' @param password User name's password of CETESB QUAL...
library(unittest) library(twstats) cmp <- function (a, b) { if (identical(a, b)) return(TRUE) capture.output({ str(a) ; writeLines('... vs ...'); str(b) }) } ok_group('parse_twstats_id', { ok(cmp(twstats:::parse_twstats_id('pxweb/fi_statfin_kuol_pxt_002/country:99IS/country:99DK'), list( class = ...
/tests/test_core_twstats_id.R
no_license
tutor-web/twstats
R
false
false
452
r
library(unittest) library(twstats) cmp <- function (a, b) { if (identical(a, b)) return(TRUE) capture.output({ str(a) ; writeLines('... vs ...'); str(b) }) } ok_group('parse_twstats_id', { ok(cmp(twstats:::parse_twstats_id('pxweb/fi_statfin_kuol_pxt_002/country:99IS/country:99DK'), list( class = ...
# Hierarchial Clustering # Task-1 : Verification Example Matrix mydata <- matrix(c(0,1,7,8,2,0,1,7,8,2),nrow=5,ncol=2) # Operating on iris data-set # mydata <- iris # Loading iris dataframe into mydata # mydata$Species <- NULL # Remove the column representing classes # mydata <- as.matrix(mydata) # Operating on W...
/Hierarchical_Clustering.R
no_license
Amrut009/Clustering_Algorithms
R
false
false
3,048
r
# Hierarchial Clustering # Task-1 : Verification Example Matrix mydata <- matrix(c(0,1,7,8,2,0,1,7,8,2),nrow=5,ncol=2) # Operating on iris data-set # mydata <- iris # Loading iris dataframe into mydata # mydata$Species <- NULL # Remove the column representing classes # mydata <- as.matrix(mydata) # Operating on W...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.8800325730541e-142, 1.295541...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615835572-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,047
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.8800325730541e-142, 1.295541...
% Auto-generated: do not edit by hand \name{dccRadioItems} \alias{dccRadioItems} \title{RadioItems component} \description{ RadioItems is a component that encapsulates several radio item inputs. The values and labels of the RadioItems is specified in the `options` property and the seleced item is specified with the ...
/man/dccRadioItems.Rd
permissive
o3cloud/dash-core-components
R
false
false
3,630
rd
% Auto-generated: do not edit by hand \name{dccRadioItems} \alias{dccRadioItems} \title{RadioItems component} \description{ RadioItems is a component that encapsulates several radio item inputs. The values and labels of the RadioItems is specified in the `options` property and the seleced item is specified with the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/time.R \name{time} \alias{time} \title{time} \usage{ time(X, Y, a) } \arguments{ \item{This}{functions takes input data, labels and scalar a>0.} } \value{ time statistics taken for AAR, ORR, OSLOG and COIRR. } \description{ time } \examples{ ...
/man/time.Rd
no_license
JamilWaqas/CR
R
false
true
334
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/time.R \name{time} \alias{time} \title{time} \usage{ time(X, Y, a) } \arguments{ \item{This}{functions takes input data, labels and scalar a>0.} } \value{ time statistics taken for AAR, ORR, OSLOG and COIRR. } \description{ time } \examples{ ...
# Title: Software Carpentry Workshop notes # Author: Amanda K. Luther # Date 2017 09 14 #### load packages #### # four hash can help you navigate through a long script 1 + 100 1 + 3+5+2 # please ignore this 2/100000 2e5 #### unload packages #### #log () in R is alwasys natural log log(1e4, base10) #you got to design...
/SWCDay1.R
no_license
tickleweed/git_swc
R
false
false
1,191
r
# Title: Software Carpentry Workshop notes # Author: Amanda K. Luther # Date 2017 09 14 #### load packages #### # four hash can help you navigate through a long script 1 + 100 1 + 3+5+2 # please ignore this 2/100000 2e5 #### unload packages #### #log () in R is alwasys natural log log(1e4, base10) #you got to design...
\name{d11Aneglog} \alias{d11Aneglog} %- Also NEED an '\alias' for EACH other topic documented here. \title{ internal } \description{ internal use only } \usage{ d11Aneglog(t1, t2, alpha = 2, ...) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{t1}{ %% ~~Describe \code{t...
/man/d11Aneglog.Rd
no_license
muguangyuze/mgpd
R
false
false
1,376
rd
\name{d11Aneglog} \alias{d11Aneglog} %- Also NEED an '\alias' for EACH other topic documented here. \title{ internal } \description{ internal use only } \usage{ d11Aneglog(t1, t2, alpha = 2, ...) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{t1}{ %% ~~Describe \code{t...
context("Plotting tests") library(ggplot2) test_that("the plotting works", { print( ggplot(mpg, aes(x=manufacturer, y=displ)) + geom_boxplot() + stat_signif(comparisons=list(c("audi", "ford"), c("hyundai", "nissan")), map_signif_level=TRUE, test="wilcox.test", t...
/packrat/lib/x86_64-redhat-linux-gnu/3.5.1/ggsignif/tests/testthat/test-significance_annotation.R
no_license
teyden/asthma-research
R
false
false
6,458
r
context("Plotting tests") library(ggplot2) test_that("the plotting works", { print( ggplot(mpg, aes(x=manufacturer, y=displ)) + geom_boxplot() + stat_signif(comparisons=list(c("audi", "ford"), c("hyundai", "nissan")), map_signif_level=TRUE, test="wilcox.test", t...
library(tidyverse) #----------------------------------------------------------------------------- #' Try and place a Queen given a vector of positions of the current Queens #' #' This function calls itself recursively for every valid placement of the #' next queen. #' #' @param queens A vector of integers rep...
/CTDLGT_R/BT5.R
no_license
ncphung1405/bai_tap_giai_thuat
R
false
false
4,555
r
library(tidyverse) #----------------------------------------------------------------------------- #' Try and place a Queen given a vector of positions of the current Queens #' #' This function calls itself recursively for every valid placement of the #' next queen. #' #' @param queens A vector of integers rep...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dummy.R \name{dummy} \alias{dummy} \title{A dummy function} \usage{ dummy(x) } \arguments{ \item{x}{Anything} } \value{ `x`. } \description{ A dummy function } \examples{ dummy("Hello World") }
/man/dummy.Rd
no_license
maurolepore/pkgsite
R
false
true
272
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dummy.R \name{dummy} \alias{dummy} \title{A dummy function} \usage{ dummy(x) } \arguments{ \item{x}{Anything} } \value{ `x`. } \description{ A dummy function } \examples{ dummy("Hello World") }
library(tidyverse) library(haven) library(janitor) library(sf) pm25 <- read_rds("./Datos/tab_2000_2019.rds") %>% select(year, site, pm25) %>% print() mun <- c("19019", "19021", "19039", "19018", "19048", "19025", "19041", "19009", "19012", "19046", "19010", "19001", "19047", "19031", "19049", "190...
/scripts/idw_anual.R
no_license
luisarreguin/r_pm_mty
R
false
false
58,342
r
library(tidyverse) library(haven) library(janitor) library(sf) pm25 <- read_rds("./Datos/tab_2000_2019.rds") %>% select(year, site, pm25) %>% print() mun <- c("19019", "19021", "19039", "19018", "19048", "19025", "19041", "19009", "19012", "19046", "19010", "19001", "19047", "19031", "19049", "190...
## The following functions are to create a special matrix, calculate its inverse, and store them in cache, ## rather than calculating the inverse everytime it is required. ## makeCacheMatrix() function creates a special "matrix", and has the follwoing functionalities: # set the value of the matrix # get the value o...
/cachematrix.R
no_license
malikshahrukh/ProgrammingAssignment2
R
false
false
1,372
r
## The following functions are to create a special matrix, calculate its inverse, and store them in cache, ## rather than calculating the inverse everytime it is required. ## makeCacheMatrix() function creates a special "matrix", and has the follwoing functionalities: # set the value of the matrix # get the value o...
# Exercise 1: Creating and Indexing Vectors #Complete # Create a vector `x` that has the values 10 through 20 in it (using the : operator) x <- 10:20 # Create a vector `y` that has the values 21 through 30 in it (using the seq() function) y <- seq(21, 30) # Create a vector `z` by combining the vectors `x` and `y` z...
/exercise-1/exercise.R
permissive
Kyle-Simpson/module7-vectors
R
false
false
848
r
# Exercise 1: Creating and Indexing Vectors #Complete # Create a vector `x` that has the values 10 through 20 in it (using the : operator) x <- 10:20 # Create a vector `y` that has the values 21 through 30 in it (using the seq() function) y <- seq(21, 30) # Create a vector `z` by combining the vectors `x` and `y` z...
#' The function sgccak() is called by sgcca() and does not have to be used by #' the user. sgccak() enables the computation of SGCCA block components, outer #' weight vectors, etc., for each block and each deflation stage. #' @inheritParams sgcca #' @inheritParams rgccak #' @return \item{Y}{A list of \eqn{J} eleme...
/R/sgccak.R
no_license
cran/RGCCA
R
false
false
3,159
r
#' The function sgccak() is called by sgcca() and does not have to be used by #' the user. sgccak() enables the computation of SGCCA block components, outer #' weight vectors, etc., for each block and each deflation stage. #' @inheritParams sgcca #' @inheritParams rgccak #' @return \item{Y}{A list of \eqn{J} eleme...
app <- ShinyDriver$new("../") app$snapshotInit("line_colors_etc") app$setInputs(example_data = TRUE) app$setInputs(main = "Plot") app$setInputs(plotselect = "line") app$setInputs(settings = "Labeling and colour(s)") app$setInputs(title = "Line Test") app$setInputs(xlab = "x ") app$setInputs(xlab = "x test") app$setInp...
/tests/line_colors_etc.R
permissive
ckafi/ggShiny
R
false
false
660
r
app <- ShinyDriver$new("../") app$snapshotInit("line_colors_etc") app$setInputs(example_data = TRUE) app$setInputs(main = "Plot") app$setInputs(plotselect = "line") app$setInputs(settings = "Labeling and colour(s)") app$setInputs(title = "Line Test") app$setInputs(xlab = "x ") app$setInputs(xlab = "x test") app$setInp...
library("reshape2") library("ggplot2") library("zoo") ##### r square plots ######### r2<-read.csv("data/r2_cluster.csv",header=FALSE,sep="") colnames(r2)<-c("model","rsquare") string_list<- strsplit(as.character(r2$model),split="_") r2_list<- strsplit(as.character(r2$rsquare),split=",") for (i in 1:nrow(r2)){ r2$m...
/R/old code/rsquare_plot_cluster.R
no_license
zhou100/WD-Early-Warning-Food-Insecurity
R
false
false
1,522
r
library("reshape2") library("ggplot2") library("zoo") ##### r square plots ######### r2<-read.csv("data/r2_cluster.csv",header=FALSE,sep="") colnames(r2)<-c("model","rsquare") string_list<- strsplit(as.character(r2$model),split="_") r2_list<- strsplit(as.character(r2$rsquare),split=",") for (i in 1:nrow(r2)){ r2$m...
gaucho_simple_data=read.table("gaucho_simple_data.txt",header=TRUE,row.names=1)
/inst/extdata/gaucho_simple_data.R
no_license
MurisonWardell/gaucho
R
false
false
79
r
gaucho_simple_data=read.table("gaucho_simple_data.txt",header=TRUE,row.names=1)
library(DBI) con <- dbConnect( RPostgres::Postgres(), user = "jovyan", host = "127.0.0.1", port = 8765, dbname = "rsm-docker", password = "postgres" ) ## show list of tables db_tabs <- dbListTables(con) db_tabs ## add a dataframe that is available in R by default to the dbase library(dplyr) if (!"mtcars" ...
/postgres/postgres-connect.R
permissive
radiant-rstats/docker
R
false
false
656
r
library(DBI) con <- dbConnect( RPostgres::Postgres(), user = "jovyan", host = "127.0.0.1", port = 8765, dbname = "rsm-docker", password = "postgres" ) ## show list of tables db_tabs <- dbListTables(con) db_tabs ## add a dataframe that is available in R by default to the dbase library(dplyr) if (!"mtcars" ...
#### Run Statistcs # --- View Raw Data head(ori) nrow(ori) ncol(ori) # names(ori) # --- Inspect the data. # summary(ori) str(ori) dim(ori) # glimpse(ori) # class(ori) sapply(ori, class) # --- FIND COLUMNS CONTAINING STRING # grep("WAP", names(df), value=T) # --- See Column range with specific String value range(gr...
/SCRIPTS/1PREPARATION/Script01_2_00-Inspection.R
no_license
GamL68/MOD3_Task03_WiFi
R
false
false
404
r
#### Run Statistcs # --- View Raw Data head(ori) nrow(ori) ncol(ori) # names(ori) # --- Inspect the data. # summary(ori) str(ori) dim(ori) # glimpse(ori) # class(ori) sapply(ori, class) # --- FIND COLUMNS CONTAINING STRING # grep("WAP", names(df), value=T) # --- See Column range with specific String value range(gr...
################################################################################################ # bashRhipeArchive #' THIS ONLY IS EXPECTED TO WORK FOR SOMEONE USING A BASH SHELL. #' Creates an archive on the HDFS with a runner script appropriate for running Rhipe jobs. #' Uploads that archive to the HDFS #' #' WARNI...
/code/R/R/bashRhipeArchive.R
no_license
a3a/RHIPE
R
false
false
6,768
r
################################################################################################ # bashRhipeArchive #' THIS ONLY IS EXPECTED TO WORK FOR SOMEONE USING A BASH SHELL. #' Creates an archive on the HDFS with a runner script appropriate for running Rhipe jobs. #' Uploads that archive to the HDFS #' #' WARNI...
#' surface UI Function #' #' @description A shiny Module. #' #' @param id,input,output,session Internal parameters for {shiny}. #' #' @noRd #' #' @importFrom shiny NS tagList mod_surface_ui <- function(id) { ns <- NS(id) tagList( menuItem("surface", icon = icon("sliders-h"), selectInput(ns("surfac...
/R/mod_surface.R
no_license
nvelden/shinyNGLVieweR
R
false
false
3,269
r
#' surface UI Function #' #' @description A shiny Module. #' #' @param id,input,output,session Internal parameters for {shiny}. #' #' @noRd #' #' @importFrom shiny NS tagList mod_surface_ui <- function(id) { ns <- NS(id) tagList( menuItem("surface", icon = icon("sliders-h"), selectInput(ns("surfac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/em_functions.r \name{func.M} \alias{func.M} \title{func.M} \usage{ func.M(dat.tss, a, b, ncpu = 4, ...) } \arguments{ \item{dat.tss}{relative abundance matrix (each OTU in one row)} \item{a}{estimated growth rate values (scaled by self-inter...
/man/func.M.Rd
permissive
pythseq/BEEM-static
R
false
true
564
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/em_functions.r \name{func.M} \alias{func.M} \title{func.M} \usage{ func.M(dat.tss, a, b, ncpu = 4, ...) } \arguments{ \item{dat.tss}{relative abundance matrix (each OTU in one row)} \item{a}{estimated growth rate values (scaled by self-inter...
############################# ##### Georgian ## Type of website: Institution <- CIConnexName("Georgian") webPage <- read_webPage('https://www.georgiancollege.ca/academics/full-time-programs/') program_urls <- webPage %>% html_nodes("section.body") %>% html_nodes("table") %>% html_table(fill = T) %>% bind...
/Georgian.R
no_license
redeps/2020_Programs_scrape
R
false
false
3,707
r
############################# ##### Georgian ## Type of website: Institution <- CIConnexName("Georgian") webPage <- read_webPage('https://www.georgiancollege.ca/academics/full-time-programs/') program_urls <- webPage %>% html_nodes("section.body") %>% html_nodes("table") %>% html_table(fill = T) %>% bind...
#' Calculate SHOWF PSD. #' #' @param freq Frequency vector (units: Hz). #' @param k Cantilever stiffness (N/m). #' @param f0 Resonance frequency (Hz). #' @param Q Quality factor (unitless). #' @param Sw Power of the white noise term (m^2/Hz). #' @param Sf Power of the 1/f noise term (m^2/Hz). #' @param alpha Exponent o...
/R/showf_psd.R
no_license
mlysy/realPSD
R
false
false
848
r
#' Calculate SHOWF PSD. #' #' @param freq Frequency vector (units: Hz). #' @param k Cantilever stiffness (N/m). #' @param f0 Resonance frequency (Hz). #' @param Q Quality factor (unitless). #' @param Sw Power of the white noise term (m^2/Hz). #' @param Sf Power of the 1/f noise term (m^2/Hz). #' @param alpha Exponent o...
set.seed( 38 ) library(mvtnorm) library(fields) library(Rcpp) library(mclust) library(kernlab) library(ConsensusClusterPlus) simu=function(s){ prob_glcm<-function(c,s=s,mc=30000){ mu<-c(2+c,14-c) sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2) elip<-rmvnorm(mc,mu,sigma) # par(xaxs='i',yaxs='i') ...
/s=15/simu_38.R
no_license
mguindanigroup/Radiomics-Hierarchical-Rounded-Gaussian-Spatial-Dirichlet-Process
R
false
false
9,293
r
set.seed( 38 ) library(mvtnorm) library(fields) library(Rcpp) library(mclust) library(kernlab) library(ConsensusClusterPlus) simu=function(s){ prob_glcm<-function(c,s=s,mc=30000){ mu<-c(2+c,14-c) sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2) elip<-rmvnorm(mc,mu,sigma) # par(xaxs='i',yaxs='i') ...
#' Storage accounts in Key Vault #' #' This class represents the collection of storage accounts managed by a vault. It provides methods for adding and removing accounts, and doing backups and restores. For operations with a specific account, see [storage]. #' #' @docType class #' #' @section Methods: #' This cla...
/R/storage_accounts.R
no_license
cran/AzureKeyVault
R
false
false
5,635
r
#' Storage accounts in Key Vault #' #' This class represents the collection of storage accounts managed by a vault. It provides methods for adding and removing accounts, and doing backups and restores. For operations with a specific account, see [storage]. #' #' @docType class #' #' @section Methods: #' This cla...
#' loess tidiers #' @export glance.loess <- function(x, ...) { ret <- data.frame( n_observations=x$n, # Number of Observations enp=x$enp, # Equivalent Number of Parameters residual_std_error=x$s, # Residual Standard Error trace_of_smoother_matrix=x$trace.hat # Trace of smoother matrix (exact) ) re...
/R/loess_tidiers.R
permissive
exploratory-io/exploratory_func
R
false
false
324
r
#' loess tidiers #' @export glance.loess <- function(x, ...) { ret <- data.frame( n_observations=x$n, # Number of Observations enp=x$enp, # Equivalent Number of Parameters residual_std_error=x$s, # Residual Standard Error trace_of_smoother_matrix=x$trace.hat # Trace of smoother matrix (exact) ) re...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MLControl.R \name{MLControl} \alias{MLControl} \alias{controls} \alias{BootControl} \alias{BootOptimismControl} \alias{CVControl} \alias{CVOptimismControl} \alias{OOBControl} \alias{SplitControl} \alias{TrainControl} \title{Resampling Control...
/man/MLControl.Rd
no_license
brian-j-smith/MachineShop
R
false
true
4,981
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MLControl.R \name{MLControl} \alias{MLControl} \alias{controls} \alias{BootControl} \alias{BootOptimismControl} \alias{CVControl} \alias{CVOptimismControl} \alias{OOBControl} \alias{SplitControl} \alias{TrainControl} \title{Resampling Control...
#' Parsed sourced file from a filename #' #' This object is given as input to each linter #' #' @details #' The file is read in using the `encoding` setting. #' This setting found by taking the first valid result from the following locations #' #' 1. The `encoding` key from the usual lintr configuration settings. #' 2....
/R/get_source_expressions.R
permissive
fabian-s/lintr
R
false
false
19,081
r
#' Parsed sourced file from a filename #' #' This object is given as input to each linter #' #' @details #' The file is read in using the `encoding` setting. #' This setting found by taking the first valid result from the following locations #' #' 1. The `encoding` key from the usual lintr configuration settings. #' 2....
library(bedr) ### Name: index2bed ### Title: convert a region index into a bed file dataframe ### Aliases: index2bed ### Keywords: bedtools ### ** Examples if (check.binary("bedtools")) { index <- get.example.regions(); a <- index[[1]]; a.bed <- index2bed(a); }
/data/genthat_extracted_code/bedr/examples/index2bed.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
270
r
library(bedr) ### Name: index2bed ### Title: convert a region index into a bed file dataframe ### Aliases: index2bed ### Keywords: bedtools ### ** Examples if (check.binary("bedtools")) { index <- get.example.regions(); a <- index[[1]]; a.bed <- index2bed(a); }
#load dependencies pacman::p_load(MASS, parallel, spatstat, geostatsp, maptools, cluster, stringr, smoothr, sf, units, raster, rgeos, imager, ggnewscale, cowplot, tidyverse, rgdal, rasterVis, broom) #removed fasterRaster, lwgeom,stars, # import the data --------------------------------------------------------- messa...
/R/element_modeler.R
no_license
CaitlinCasar/Casar2021_DeMMO_RockHostedBiofilms
R
false
false
14,822
r
#load dependencies pacman::p_load(MASS, parallel, spatstat, geostatsp, maptools, cluster, stringr, smoothr, sf, units, raster, rgeos, imager, ggnewscale, cowplot, tidyverse, rgdal, rasterVis, broom) #removed fasterRaster, lwgeom,stars, # import the data --------------------------------------------------------- messa...
data <- read.csv("C:/Users/Regular/Downloads/vatsal test.csv") #Mean #Median #Average Resultant Acceleration for (i in 1:nrow(data)) { meanData <- mean(data$Sensor1[i]+data$Sensor2[i]+data$Sensor3[i]) medianData <- median(data$Sensor1[i]+data$Sensor2[i]+data$Sensor3[i]) data$meanArr[i] <- meanData #data$median...
/R-Code/featureExtractionOffline.R
permissive
vkku/GBAS
R
false
false
843
r
data <- read.csv("C:/Users/Regular/Downloads/vatsal test.csv") #Mean #Median #Average Resultant Acceleration for (i in 1:nrow(data)) { meanData <- mean(data$Sensor1[i]+data$Sensor2[i]+data$Sensor3[i]) medianData <- median(data$Sensor1[i]+data$Sensor2[i]+data$Sensor3[i]) data$meanArr[i] <- meanData #data$median...
W <- readRDS('bow/model/dfm/WDFM_TAG_ENG.rds') wcnosw <- readRDS('bow/model/dfm/Wcomb.rds') class_name <- paste0(docnames(W),'_related') #find 50 topfeatures from doc_matrix and group_matrix feat1 <- sapply(docnames(W),function(x) names(topfeatures(W[which(docnames(W) == x)],30)),simplify = FALSE) feat2 <- sapply(do...
/nlp/document_classification/R/keywords/dict.r
no_license
obiba/machine-learning
R
false
false
664
r
W <- readRDS('bow/model/dfm/WDFM_TAG_ENG.rds') wcnosw <- readRDS('bow/model/dfm/Wcomb.rds') class_name <- paste0(docnames(W),'_related') #find 50 topfeatures from doc_matrix and group_matrix feat1 <- sapply(docnames(W),function(x) names(topfeatures(W[which(docnames(W) == x)],30)),simplify = FALSE) feat2 <- sapply(do...
testthat::test_that("neibo k=1", { testthat::expect_identical(as.vector(neibo(1:1000, 1:10, 1)), as.numeric(1:10)) testthat::expect_identical(as.vector(neibo(c(11, 2, 33, 111, 1, 76), c(100, 10, 4, 29), 1)), c(111, 11, 2, 33)) }) testthat::test_that("neibo k=2", { set.seed(1234) testthat::expect_identical(as.v...
/tests/testthat/test-neibo.R
no_license
Polkas/miceFast
R
false
false
845
r
testthat::test_that("neibo k=1", { testthat::expect_identical(as.vector(neibo(1:1000, 1:10, 1)), as.numeric(1:10)) testthat::expect_identical(as.vector(neibo(c(11, 2, 33, 111, 1, 76), c(100, 10, 4, 29), 1)), c(111, 11, 2, 33)) }) testthat::test_that("neibo k=2", { set.seed(1234) testthat::expect_identical(as.v...
library(bios2mds) ### Name: mmds ### Title: Metric multidimensional scaling ### Aliases: mmds ### Keywords: exploratory analysis ### ** Examples # performing metric MDS of human GPCRs with projection of # GPCRs from D. melanogaster as supplementary elements: data(gpcr) active <- gpcr$dif$sapiens.sapiens mmds1 <- mm...
/data/genthat_extracted_code/bios2mds/examples/mmds.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
362
r
library(bios2mds) ### Name: mmds ### Title: Metric multidimensional scaling ### Aliases: mmds ### Keywords: exploratory analysis ### ** Examples # performing metric MDS of human GPCRs with projection of # GPCRs from D. melanogaster as supplementary elements: data(gpcr) active <- gpcr$dif$sapiens.sapiens mmds1 <- mm...
## File from http://rwiki.sciviews.org/doku.php?id=developers:runit ## Unit tests will not be done if RUnit is not available if(require("RUnit", quietly=TRUE)) { ## --- Setup --- library(MASS) library(Matrix) library(multcomp) pkg <- "Crossover" if(Sys.getenv("RCMDCHECK") == "FALSE") { ## Path to un...
/Crossover/tests/doRUnit.R
no_license
ingted/R-Examples
R
false
false
2,065
r
## File from http://rwiki.sciviews.org/doku.php?id=developers:runit ## Unit tests will not be done if RUnit is not available if(require("RUnit", quietly=TRUE)) { ## --- Setup --- library(MASS) library(Matrix) library(multcomp) pkg <- "Crossover" if(Sys.getenv("RCMDCHECK") == "FALSE") { ## Path to un...
/第11章 地理空间型图表/中国地图图表系列/图11-2-2-全局中国等位地图_数据插值法.R
no_license
EasyChart/Beautiful-Visualization-with-R
R
false
false
7,054
r
# lets actually get the stuff from the constiuative domains script and look at percentage overlap of each domain class rm(list = ls()) setwd("~/Desktop/retrotransposonAccumulationAnalysis/retrotransposonAccumulation/") library(GenomicRanges) library(rtracklayer) source("baseScripts/functions.R") source("base...
/supplementaryAnalysis/RDsimilarity.R
no_license
AdelaideBioinfo/retrotransposonAccumulation
R
false
false
8,612
r
# lets actually get the stuff from the constiuative domains script and look at percentage overlap of each domain class rm(list = ls()) setwd("~/Desktop/retrotransposonAccumulationAnalysis/retrotransposonAccumulation/") library(GenomicRanges) library(rtracklayer) source("baseScripts/functions.R") source("base...
#' Velocity/Flow Conversion #' #' Simple helper function to convert between flow and velocity. #' These functions assume full flow through a circular pipe/culvert. #' #' @inheritParams loss_entrance #' @inheritParams culvert_area #' @return Fluid flow, ft^3/s. #' #' @details Flow is calculated as the product of velocit...
/R/util.r
no_license
mkoohafkan/culvrt-clone
R
false
false
619
r
#' Velocity/Flow Conversion #' #' Simple helper function to convert between flow and velocity. #' These functions assume full flow through a circular pipe/culvert. #' #' @inheritParams loss_entrance #' @inheritParams culvert_area #' @return Fluid flow, ft^3/s. #' #' @details Flow is calculated as the product of velocit...
#CSVデータの読み込み heart <- read.csv("./heart.csv", header=T, row.names=1) heart1 <- heart[,2] #ヒストグラムで表示 hist(heart1) #散布図を表示 plot(heart, lwd=3, xlab="x(sec)", ylab="y(beat)", bg="blue")
/Last/2019年1月12日のみの解析/heart.r
no_license
KoretsuNobuyasu/R_data_analysis_school
R
false
false
230
r
#CSVデータの読み込み heart <- read.csv("./heart.csv", header=T, row.names=1) heart1 <- heart[,2] #ヒストグラムで表示 hist(heart1) #散布図を表示 plot(heart, lwd=3, xlab="x(sec)", ylab="y(beat)", bg="blue")
# This is to test whether the propotion of male IT professionals who drink # enough water is greater than that of female IT profesionals who drink # enough water. # pm := propotion of male IT professionals who drink enough water # pf := propotion of female IT professionals who drink enough water # H0 := pm = ...
/scripts/test_for_propotion_difference.R
no_license
thilinaur/cs5651si
R
false
false
1,258
r
# This is to test whether the propotion of male IT professionals who drink # enough water is greater than that of female IT profesionals who drink # enough water. # pm := propotion of male IT professionals who drink enough water # pf := propotion of female IT professionals who drink enough water # H0 := pm = ...
#benodigde packages. een keer installeren is voldoende install.packages("data.table") install.packages("dplyr") install.packages("ggplot2") install.packages("plotly") #benodigde libraries, elke keer draaien nadat de pc (of eigenlijjk R) opnieuw is opgestart. library(data.table) # voor de %between% operator lib...
/R-Code trials.R
no_license
Wolter87/R_Scripting
R
false
false
1,820
r
#benodigde packages. een keer installeren is voldoende install.packages("data.table") install.packages("dplyr") install.packages("ggplot2") install.packages("plotly") #benodigde libraries, elke keer draaien nadat de pc (of eigenlijjk R) opnieuw is opgestart. library(data.table) # voor de %between% operator lib...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nebula.R \name{nebula.bin.train} \alias{nebula.bin.train} \title{Nonparametric empirical Bayes classifier using latent annotations: binary indicators; training} \usage{ nebula.bin.train(pi0, pi1, n0, n1, I, d = 25, maxit = 200, tol = 1e-04,...
/man/nebula.bin.train.Rd
no_license
sdzhao/ssa
R
false
true
2,390
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nebula.R \name{nebula.bin.train} \alias{nebula.bin.train} \title{Nonparametric empirical Bayes classifier using latent annotations: binary indicators; training} \usage{ nebula.bin.train(pi0, pi1, n0, n1, I, d = 25, maxit = 200, tol = 1e-04,...
#### Bill Petti #### billpetti.github.io #### Research Notebook #### Acquiring Baseball Stats from the NCAA with R #### Originally coded November 2016 # load required packages if(!require(baseballr)) { install_github("BillPetti/baseballr") require(baseballr) } # functions for baseball analysis require(rvest) # f...
/ncaa_scraping/ncaa_scraping.R
no_license
BillPetti/baseball_research_notebook
R
false
false
3,713
r
#### Bill Petti #### billpetti.github.io #### Research Notebook #### Acquiring Baseball Stats from the NCAA with R #### Originally coded November 2016 # load required packages if(!require(baseballr)) { install_github("BillPetti/baseballr") require(baseballr) } # functions for baseball analysis require(rvest) # f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summarize.sum.R \name{summarize.sum} \alias{summarize.sum} \title{Sum-based probe summarization} \usage{ summarize.sum(taxonomy, level, probedata, verbose = TRUE, downweight.ambiguous.probes = TRUE) } \arguments{ \item{taxonomy}{oligo - phy...
/man/summarize.sum.Rd
no_license
TTloveTT/microbiome
R
false
true
928
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summarize.sum.R \name{summarize.sum} \alias{summarize.sum} \title{Sum-based probe summarization} \usage{ summarize.sum(taxonomy, level, probedata, verbose = TRUE, downweight.ambiguous.probes = TRUE) } \arguments{ \item{taxonomy}{oligo - phy...
to_tbl <- function(xts_obj){ data.frame(Date = index(xts_obj), coredata(xts_obj)) %>% tbl_df() } to_xts <- function(tbl_obj){ xts(tbl_obj %>% select(-Date), order.by=tbl_obj[["Date"]]) } prep_for_treemap <- function(returns){ returns %>% mutate(size = abs(value), color = ifelse(value > 0, 1, ifelse(value < 0, -...
/R/functions.R
no_license
steve-liang/ETFR
R
false
false
331
r
to_tbl <- function(xts_obj){ data.frame(Date = index(xts_obj), coredata(xts_obj)) %>% tbl_df() } to_xts <- function(tbl_obj){ xts(tbl_obj %>% select(-Date), order.by=tbl_obj[["Date"]]) } prep_for_treemap <- function(returns){ returns %>% mutate(size = abs(value), color = ifelse(value > 0, 1, ifelse(value < 0, -...
# plot2.R #============== # Create a directory, download and extract the data if necessary if (!dir.exists("./project1")) dir.create("project1"); if (!file.exists("./exdata-data-household_power_consumption.zip")){ download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",te...
/plot2.R
no_license
nuricka/ExData_Plotting1
R
false
false
1,172
r
# plot2.R #============== # Create a directory, download and extract the data if necessary if (!dir.exists("./project1")) dir.create("project1"); if (!file.exists("./exdata-data-household_power_consumption.zip")){ download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",te...
critval<-function(q=1,k=2,e) { (8.238+1.756*q-0.043*q*q-0.659*k-15.436*e+0.025*q/e)*exp(0.389/k-0.013/(e*k)) } critvalwdm<-function(q=1,e) { (9.039+3.318*q-9.969*e)*exp(-0.03*q-0.327*e) } ################################################################# supf<-function(reslst,bc,k,T) { nomlst<-reslst bc<-c(0,bc[[k]],...
/R/fstat.R
no_license
cran/spatclus
R
false
false
1,301
r
critval<-function(q=1,k=2,e) { (8.238+1.756*q-0.043*q*q-0.659*k-15.436*e+0.025*q/e)*exp(0.389/k-0.013/(e*k)) } critvalwdm<-function(q=1,e) { (9.039+3.318*q-9.969*e)*exp(-0.03*q-0.327*e) } ################################################################# supf<-function(reslst,bc,k,T) { nomlst<-reslst bc<-c(0,bc[[k]],...
library(MASS) attach(Bank) dim(Bank) # replace categorical variables by dummies. job<- model.matrix(~job, data = Bank)[,-1] marital = model.matrix(~marital, data = Bank)[,-1] education = model.matrix(~education, data = Bank)[,-1] default = model.matrix(~default, data = Bank)[,-1] housing = model.matrix(~housing...
/MVA9.R
no_license
ry176/data.world_bank_marketing
R
false
false
4,557
r
library(MASS) attach(Bank) dim(Bank) # replace categorical variables by dummies. job<- model.matrix(~job, data = Bank)[,-1] marital = model.matrix(~marital, data = Bank)[,-1] education = model.matrix(~education, data = Bank)[,-1] default = model.matrix(~default, data = Bank)[,-1] housing = model.matrix(~housing...
myselect <- function(mydata, myvar) { mydata <- dplyr::select(mydata,myvar) mydata } myselect(mtcars, c("mpg", "disp")) myselect(mtcars, c(mpg, disp)) # error c("mpg", "disp") # error myselect2 <- function(mydata, myvar) { my_var <- enquo(myvar) mydata <- dplyr::select(mydata, !!myvar) mydata } ...
/functions_for_dplyr_purrr.R
no_license
drkamarul/Programming
R
false
false
3,352
r
myselect <- function(mydata, myvar) { mydata <- dplyr::select(mydata,myvar) mydata } myselect(mtcars, c("mpg", "disp")) myselect(mtcars, c(mpg, disp)) # error c("mpg", "disp") # error myselect2 <- function(mydata, myvar) { my_var <- enquo(myvar) mydata <- dplyr::select(mydata, !!myvar) mydata } ...
######STAT701 Homework 1 - Landon Budge, John Costa, Brandon Muirhead################# ########################## ####### PROBLEM 1 ######## ########################## ### Part (a): exploring, cleaning, and summarizing the data getwd() dir=c("~/Wharton/STAT/Data") setwd(dir) getwd() radio=read.csv("Survey_results_fi...
/HW1.R
no_license
brandonmuirhead/STAT701
R
false
false
13,241
r
######STAT701 Homework 1 - Landon Budge, John Costa, Brandon Muirhead################# ########################## ####### PROBLEM 1 ######## ########################## ### Part (a): exploring, cleaning, and summarizing the data getwd() dir=c("~/Wharton/STAT/Data") setwd(dir) getwd() radio=read.csv("Survey_results_fi...
################################################################# ### ### ### Data input: ### "./4_Analysis/",download.method, "/", Cancer, "/Correlation", Cancer, ### "_Bindea_xCell_HallmarkPathways.Rdata") ### Output : ### "./5_Figures/Correlation_plots/ICR_Correlation_plots/", download.method, ### "/ICR_Correlatio...
/Any Cancer (V4)/5.2.Pancancer ICR Correlation boxplot.R
no_license
dudious/QCRI-SIDRA-ICR
R
false
false
6,314
r
################################################################# ### ### ### Data input: ### "./4_Analysis/",download.method, "/", Cancer, "/Correlation", Cancer, ### "_Bindea_xCell_HallmarkPathways.Rdata") ### Output : ### "./5_Figures/Correlation_plots/ICR_Correlation_plots/", download.method, ### "/ICR_Correlatio...
/BeerComparator/getBeerEvaluations.R
no_license
GiulSposito/R-x
R
false
false
2,786
r
context("TOM") library(psychTestR) app <- AppTester$new("apps/TOM_DE_subscales_Stable_Incremental") # Enter id app$expect_ui_text("Bitte gib Deine ID ein Weiter") app$set_inputs(p_id = "abcde") app$click_next() # Intro app$expect_ui_text("Wir interessieren uns für deine Meinung zu musikalischen Fähigkeiten. Lies die...
/tests/testthat/test-TOM_DE_subscales_Stable_Incremental_maximum.R
permissive
fmhoeger/psyquest
R
false
false
1,627
r
context("TOM") library(psychTestR) app <- AppTester$new("apps/TOM_DE_subscales_Stable_Incremental") # Enter id app$expect_ui_text("Bitte gib Deine ID ein Weiter") app$set_inputs(p_id = "abcde") app$click_next() # Intro app$expect_ui_text("Wir interessieren uns für deine Meinung zu musikalischen Fähigkeiten. Lies die...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{stream_lines} \alias{stream_lines} \title{Stream network for Sixmile Creek Watershed, Wisconsin, USA. Extracted from US NHDPlus v2.1 national seamless dataset.} \format{ A simple feature LINESTRONG collection with ...
/man/stream_lines.Rd
no_license
FoundrySpatial/streamDepletr
R
false
true
770
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{stream_lines} \alias{stream_lines} \title{Stream network for Sixmile Creek Watershed, Wisconsin, USA. Extracted from US NHDPlus v2.1 national seamless dataset.} \format{ A simple feature LINESTRONG collection with ...
vc <- jacobian %*% vcov %*% t(jacobian) vcovgood = vcov vcovgood[is.na(vcovgood)] = 0 vc <- jacobian %*% vcovgood %*% t(jacobian) vcov <- vcov(model) load('vcetester.Rdata') fe = select(main,contains('stateabr_')) v.x = getReg(2.1, regdir.good)$v.x dat = main[,v.x,with=F] maindat = cbind(fe,dat) tester = co...
/superceeded/Untitled2.R
no_license
eastnile/proj_010_trump
R
false
false
1,977
r
vc <- jacobian %*% vcov %*% t(jacobian) vcovgood = vcov vcovgood[is.na(vcovgood)] = 0 vc <- jacobian %*% vcovgood %*% t(jacobian) vcov <- vcov(model) load('vcetester.Rdata') fe = select(main,contains('stateabr_')) v.x = getReg(2.1, regdir.good)$v.x dat = main[,v.x,with=F] maindat = cbind(fe,dat) tester = co...
source("R/main/dependency.R") source("R/main/variable.R") source("R/util_eval/util_init_values.R") source("R/util_eval/util_modelcpp_main.R") source("R/util_eval/util_modelcpp_input_reward_side.R") rm(dmodel) source("R/main/preprocess_input_data.R") result_model <- list() sourceCpp("./cpp/model/model_basic.cpp") resul...
/R/batch/batch_predict_probability_sample_mouse_20210521.R
permissive
jmjablons/dither-over-model
R
false
false
910
r
source("R/main/dependency.R") source("R/main/variable.R") source("R/util_eval/util_init_values.R") source("R/util_eval/util_modelcpp_main.R") source("R/util_eval/util_modelcpp_input_reward_side.R") rm(dmodel) source("R/main/preprocess_input_data.R") result_model <- list() sourceCpp("./cpp/model/model_basic.cpp") resul...
#' Retrieve ILINet Surveillance Data #' #' The CDC FluView Portal provides in-season and past seasons' national, regional, #' and state-level outpatient illness and viral surveillance data from both #' ILINet (Influenza-like Illness Surveillance Network) and WHO/NREVSS #' (National Respiratory and Enteric Virus Surveil...
/R/ilinet.r
permissive
hrbrmstr/cdcfluview
R
false
false
4,519
r
#' Retrieve ILINet Surveillance Data #' #' The CDC FluView Portal provides in-season and past seasons' national, regional, #' and state-level outpatient illness and viral surveillance data from both #' ILINet (Influenza-like Illness Surveillance Network) and WHO/NREVSS #' (National Respiratory and Enteric Virus Surveil...