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
# Analyses that form the basis of manuscript written with J. Bloch and J. Austin # Dependencies ----- library(dplyr) library(viridis) library(gridBase) library(maps) library(ggplot2) library(ggrepel) library(ggmap) datadir<-"path/to/data/raw_data" setwd(datadir) # Pick Colors for bar plot ----- colorindex<-c(virid...
/podomys-gopherus_site-association_search.R
no_license
nsvitek/scripts-for-misc-publications
R
false
false
26,816
r
# Analyses that form the basis of manuscript written with J. Bloch and J. Austin # Dependencies ----- library(dplyr) library(viridis) library(gridBase) library(maps) library(ggplot2) library(ggrepel) library(ggmap) datadir<-"path/to/data/raw_data" setwd(datadir) # Pick Colors for bar plot ----- colorindex<-c(virid...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/selfea.R \name{glm_anova} \alias{glm_anova} \title{glm_anova} \usage{ glm_anova(dataset.expr, dataset.ID, group, padj = "fdr") } \arguments{ \item{dataset.expr}{A data frame that has column names for distinguishing experiments and num...
/man/glm_anova.Rd
no_license
cran/selfea
R
false
false
1,001
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/selfea.R \name{glm_anova} \alias{glm_anova} \title{glm_anova} \usage{ glm_anova(dataset.expr, dataset.ID, group, padj = "fdr") } \arguments{ \item{dataset.expr}{A data frame that has column names for distinguishing experiments and num...
library(dplyr) library(plotly) library(knitr) data <- read.csv('../data/intro_survey_data.csv') total_students <- nrow(data) data_by_class <- group_by(data, What.is.your.current.class.standing.) %>% summarise(total = n()) most_class_standing <- as.character(arrange(data_by_class, desc(total))$What.i...
/scripts/summary.r
no_license
syhsyp/a7-GroupX
R
false
false
818
r
library(dplyr) library(plotly) library(knitr) data <- read.csv('../data/intro_survey_data.csv') total_students <- nrow(data) data_by_class <- group_by(data, What.is.your.current.class.standing.) %>% summarise(total = n()) most_class_standing <- as.character(arrange(data_by_class, desc(total))$What.i...
#set seed set.seed(9850) #random numbers generation gp<-runif(nrow(iris)) #mix irish data knn_iris<-iris[order(gp),] head(knn_iris) str(knn_iris) summary(knn_iris) #normalize knn_iris normalize<- function(x) { return( (x-min(x))/(max(x)-min(x)) ) } knn_iris_normalize<- as.data.frame(lapply(knn_iris[...
/supervise_classification_err_knn.R
permissive
Sasankaa/jsPDF
R
false
false
717
r
#set seed set.seed(9850) #random numbers generation gp<-runif(nrow(iris)) #mix irish data knn_iris<-iris[order(gp),] head(knn_iris) str(knn_iris) summary(knn_iris) #normalize knn_iris normalize<- function(x) { return( (x-min(x))/(max(x)-min(x)) ) } knn_iris_normalize<- as.data.frame(lapply(knn_iris[...
library(shiny) ui<-fluidPage( titlePanel("My shiny App"), sidebarLayout( sidebarPanel(h2("Installation"), p("shiny is available on CRAN, so you can install it in the usual way from your R console : ",code('install.packages("shiny")')), br(), ...
/shiny-lesson 1 & 2/app.R
no_license
TECT-2000/shiny-tutos
R
false
false
1,317
r
library(shiny) ui<-fluidPage( titlePanel("My shiny App"), sidebarLayout( sidebarPanel(h2("Installation"), p("shiny is available on CRAN, so you can install it in the usual way from your R console : ",code('install.packages("shiny")')), br(), ...
test_report_2 <- function() { report.dir <- "RnBeads_report_testing" rnb.initialize.reports(report.dir) report <- createReport(file.path(report.dir, "myreport.html"), "An Eye Opener", page.title = "Fascinating Report", authors = c("Me","You")) stext <- "Here is some text for our awesome report" report <- rnb.ad...
/inst/unitTests/test_report_2.R
no_license
epigen/RnBeads
R
false
false
3,648
r
test_report_2 <- function() { report.dir <- "RnBeads_report_testing" rnb.initialize.reports(report.dir) report <- createReport(file.path(report.dir, "myreport.html"), "An Eye Opener", page.title = "Fascinating Report", authors = c("Me","You")) stext <- "Here is some text for our awesome report" report <- rnb.ad...
#Universidade Federal de Minas Gerais #Introducao ao Reconhecimento de Padroes #Nikolas Dias Magalhaes Fantoni #AULA 7 - K medias #2019/2 #Limpando o ambiente rm(list=ls()) #Funcao de distancia euclidiana eucdist <- function(x,y){ sqrt(sum((x-y)^2)) } #Definindo constantes do teste s <- 0.3 #desvio padrao k <- 4 ...
/Aula7/Aula7.R
no_license
nikolasfantoni/IRP
R
false
false
3,253
r
#Universidade Federal de Minas Gerais #Introducao ao Reconhecimento de Padroes #Nikolas Dias Magalhaes Fantoni #AULA 7 - K medias #2019/2 #Limpando o ambiente rm(list=ls()) #Funcao de distancia euclidiana eucdist <- function(x,y){ sqrt(sum((x-y)^2)) } #Definindo constantes do teste s <- 0.3 #desvio padrao k <- 4 ...
library(BACCT) ### Name: decision_eval ### Title: Evaluating a Decision Rule ### Aliases: decision_eval ### ** Examples ## Not run: ##D #borrow from 3 historical trials# ##D yh = c(11,300,52);nh = c(45,877,128) ##D #specify current trial sample sizes# ##D n1 = 20;n2 = 30 ##D obj = BAC_binom(yh=yh,nh=nh,n1=n1,n2=n2...
/data/genthat_extracted_code/BACCT/examples/decision_eval.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
622
r
library(BACCT) ### Name: decision_eval ### Title: Evaluating a Decision Rule ### Aliases: decision_eval ### ** Examples ## Not run: ##D #borrow from 3 historical trials# ##D yh = c(11,300,52);nh = c(45,877,128) ##D #specify current trial sample sizes# ##D n1 = 20;n2 = 30 ##D obj = BAC_binom(yh=yh,nh=nh,n1=n1,n2=n2...
#Limpieza datos<-read.table("./household_power_consumption.txt",sep=";",header=T, colClasses =c(rep("character",2),rep("numeric",7)),na="?") datos$Time <- strptime(paste(datos$Date, datos$Time), "%d/%m/%Y %H:%M:%S") datos$Date <- as.Date(datos$Date, "%d/%m/%Y") filfecha <- as.Date(c("2007-02-01", "200...
/plot1.R
no_license
Rhoboot/ExData_Plotting1
R
false
false
600
r
#Limpieza datos<-read.table("./household_power_consumption.txt",sep=";",header=T, colClasses =c(rep("character",2),rep("numeric",7)),na="?") datos$Time <- strptime(paste(datos$Date, datos$Time), "%d/%m/%Y %H:%M:%S") datos$Date <- as.Date(datos$Date, "%d/%m/%Y") filfecha <- as.Date(c("2007-02-01", "200...
# INFO -------------------------------------------------------------------------------- # Project: SDO, Self-compassion & Mindfulness / with Michael Juberg # Script: Network Analysis # CONFIGURE R ------------------------------------------------------------------------- options(scipen=99) # Change scientific notati...
/scripts/network_analysis.R
no_license
pbeloborodova/CompassionSDO
R
false
false
9,706
r
# INFO -------------------------------------------------------------------------------- # Project: SDO, Self-compassion & Mindfulness / with Michael Juberg # Script: Network Analysis # CONFIGURE R ------------------------------------------------------------------------- options(scipen=99) # Change scientific notati...
##PCA soil, litterfall, rainfall## library(devtools) install_github("vqv/ggbiplot") library(ggplot2) library(plyr) library(scales) library(grid) library(ggbiplot) #uploading data PCA_ms<-read.csv(file.choose())#20210503_Cap2_Env_Matrix attach(PCA_ms) names(PCA_ms) str(PCA_ms)#n=12 of 23 variables summary(PCA_ms) PCA...
/scripts:/PCA.R
no_license
bdbomfim/SavannaSoilBiodiversityFunction
R
false
false
2,376
r
##PCA soil, litterfall, rainfall## library(devtools) install_github("vqv/ggbiplot") library(ggplot2) library(plyr) library(scales) library(grid) library(ggbiplot) #uploading data PCA_ms<-read.csv(file.choose())#20210503_Cap2_Env_Matrix attach(PCA_ms) names(PCA_ms) str(PCA_ms)#n=12 of 23 variables summary(PCA_ms) PCA...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drop.R \name{drop.shapes} \alias{drop.shapes} \title{Drop shapes outside bounding box.} \usage{ drop.shapes(shapes, xmin, xmax, ymin, ymax) } \arguments{ \item{shapes}{a data frame of shapes.} \item{xmin}{west edge of the bounding box.} \it...
/man/drop.shapes.Rd
permissive
Sithara26/strafica
R
false
true
539
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drop.R \name{drop.shapes} \alias{drop.shapes} \title{Drop shapes outside bounding box.} \usage{ drop.shapes(shapes, xmin, xmax, ymin, ymax) } \arguments{ \item{shapes}{a data frame of shapes.} \item{xmin}{west edge of the bounding box.} \it...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{guess_polr} \alias{guess_polr} \title{Prediction from a MASS:polr object in parallel} \usage{ guess_polr(dt, polr_obj) } \arguments{ \item{dt}{a data.table} \item{polr_obj}{a polr object} } \description{ `guess_polr` return...
/man/guess_polr.Rd
no_license
ChristK/CKutils
R
false
true
494
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{guess_polr} \alias{guess_polr} \title{Prediction from a MASS:polr object in parallel} \usage{ guess_polr(dt, polr_obj) } \arguments{ \item{dt}{a data.table} \item{polr_obj}{a polr object} } \description{ `guess_polr` return...
### Author: Dr. Qiusheng Wu ##################### Ex7 ## (a) n <- 14 MSS <- 4234 RSS <- 3487 TSS <- MSS + RSS ## TSS = 7721 df1 <- 3 df2 <- n-1-df1 ## df2=10 msq1 <- MSS/df1 ## msq1 = 1411.33 msq2 <- RSS/df2 ## msq2 = 348.7 F.value <- msq1/msq2 ## F.value = 4.047 ## (b) R2 <- MSS/TSS ## R2=0.548 ## (c) # use t...
/Labs/lab09/Geog533_lab09_script.R
no_license
xujianzi/GEOG533
R
false
false
3,624
r
### Author: Dr. Qiusheng Wu ##################### Ex7 ## (a) n <- 14 MSS <- 4234 RSS <- 3487 TSS <- MSS + RSS ## TSS = 7721 df1 <- 3 df2 <- n-1-df1 ## df2=10 msq1 <- MSS/df1 ## msq1 = 1411.33 msq2 <- RSS/df2 ## msq2 = 348.7 F.value <- msq1/msq2 ## F.value = 4.047 ## (b) R2 <- MSS/TSS ## R2=0.548 ## (c) # use t...
# Run CNN model with Keras in R # ref: https://blog.rstudio.com/2017/09/05/keras-for-r/ #' Get the 100nt 5' UTR sequence upstream of start codon for transcripts in transcriptIdColumn and predict their MRL #' @keywords internal #' @description \code{predictMRL} Get the 100nt 5' UTR sequence upstream of start codon for ...
/R/utr5_mrl_prediction.R
no_license
cran/utr.annotation
R
false
false
7,584
r
# Run CNN model with Keras in R # ref: https://blog.rstudio.com/2017/09/05/keras-for-r/ #' Get the 100nt 5' UTR sequence upstream of start codon for transcripts in transcriptIdColumn and predict their MRL #' @keywords internal #' @description \code{predictMRL} Get the 100nt 5' UTR sequence upstream of start codon for ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/yml_citations.R \name{yml_reference} \alias{yml_reference} \alias{reference} \title{Write references as YAML fields} \usage{ yml_reference(.yml, ..., .bibentry = NULL) reference(id = NULL, ...) } \arguments{ \item{.yml}{a \code{yml} object c...
/man/yml_reference.Rd
permissive
r-lib/ymlthis
R
false
true
4,103
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/yml_citations.R \name{yml_reference} \alias{yml_reference} \alias{reference} \title{Write references as YAML fields} \usage{ yml_reference(.yml, ..., .bibentry = NULL) reference(id = NULL, ...) } \arguments{ \item{.yml}{a \code{yml} object c...
GSE_data<-read.table('GSE37745_series_matrix.txt',skip = 45,fill = T,sep='\t',stringsAsFactors = F, header = T) GSE_clinical<-GSE_data[c(9,8,10),] GSE_clinical[2,]<-grepl('yes',GSE_clinical[2,]) GSE_clinical[1,]<-sapply(GSE_clinical[1,],USE.NAMES = F, function(x) strsplit(...
/Code/Preprocess/GSE37745_preprocess.R
no_license
neil2003tw/Reserach_LungSCCprognosis
R
false
false
1,849
r
GSE_data<-read.table('GSE37745_series_matrix.txt',skip = 45,fill = T,sep='\t',stringsAsFactors = F, header = T) GSE_clinical<-GSE_data[c(9,8,10),] GSE_clinical[2,]<-grepl('yes',GSE_clinical[2,]) GSE_clinical[1,]<-sapply(GSE_clinical[1,],USE.NAMES = F, function(x) strsplit(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/remove_capture_effect.R \name{remove_capture} \alias{remove_capture} \alias{remove_capture_effect} \alias{remove_capture_effect.track_xyt} \title{Removes Capture Effects} \usage{ remove_capture_effect(x, ...) \method{remove_capture_effect}{t...
/man/remove_capture.Rd
no_license
jmsigner/amt
R
false
true
902
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/remove_capture_effect.R \name{remove_capture} \alias{remove_capture} \alias{remove_capture_effect} \alias{remove_capture_effect.track_xyt} \title{Removes Capture Effects} \usage{ remove_capture_effect(x, ...) \method{remove_capture_effect}{t...
library(rCharts) library(ggplot2) ## Example 1 Facetted Scatterplot names(iris) = gsub("\\.", "", names(iris)) rPlot(SepalLength ~ SepalWidth | Species, data = iris, color = 'Species', type = 'point') ## Example 2 Facetted Barplot hair_eye = as.data.frame(HairEyeColor) rPlot(Freq ~ Hair | Eye, color = 'Eye', data = h...
/test.R
no_license
clementmignon/R-airs-test
R
false
false
352
r
library(rCharts) library(ggplot2) ## Example 1 Facetted Scatterplot names(iris) = gsub("\\.", "", names(iris)) rPlot(SepalLength ~ SepalWidth | Species, data = iris, color = 'Species', type = 'point') ## Example 2 Facetted Barplot hair_eye = as.data.frame(HairEyeColor) rPlot(Freq ~ Hair | Eye, color = 'Eye', data = h...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/integrateIt.R \name{integrateIt} \alias{integrateIt} \alias{integrateIt,ANY-method} \title{Finding a definite integral under a curve} \usage{ integrateIt(x, y, a, b, rule = "Trap") } \arguments{ \item{x}{A numeric object} \item{y}{A ...
/integrateIt/man/integrateIt.Rd
no_license
jmontgomery/2016Midterm
R
false
false
1,353
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/integrateIt.R \name{integrateIt} \alias{integrateIt} \alias{integrateIt,ANY-method} \title{Finding a definite integral under a curve} \usage{ integrateIt(x, y, a, b, rule = "Trap") } \arguments{ \item{x}{A numeric object} \item{y}{A ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/components.R, R/colormap.R, % R/sidebar.R \name{add_component} \alias{add_component} \alias{add_to_sidebar} \alias{add_colormap} \alias{add_link} \alias{add_component,i2dashboard,character-method} \alias{add_component,i2das...
/man/i2dashboard-content.Rd
permissive
loosolab/i2dash
R
false
true
6,234
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/components.R, R/colormap.R, % R/sidebar.R \name{add_component} \alias{add_component} \alias{add_to_sidebar} \alias{add_colormap} \alias{add_link} \alias{add_component,i2dashboard,character-method} \alias{add_component,i2das...
dvBuildMetadata <- function(..., format='dcterms', validate=FALSE){ if(format=='dcterms'){ pairls <- list(...) dublincore <- c( "abstract","accessRights","accrualMethod","accrualPeriodicity", "accrualPolicy","alternative","audience","available", "bibliograph...
/R/dvBuildMetadata.r
no_license
cran/dvn
R
false
false
6,634
r
dvBuildMetadata <- function(..., format='dcterms', validate=FALSE){ if(format=='dcterms'){ pairls <- list(...) dublincore <- c( "abstract","accessRights","accrualMethod","accrualPeriodicity", "accrualPolicy","alternative","audience","available", "bibliograph...
## This script generates EVI2 GeoTIFF for each image in the ARD stack ## Still working on topographic correction component (need to modify for each LC) require(raster) require(rgdal) require(gdalUtils) require(rgeos) require(jsonlite) require(spatialEco) library(foreach) library(iterators) library(doParallel) library(...
/process.R
no_license
emelaas/landsat_ARD
R
false
false
7,252
r
## This script generates EVI2 GeoTIFF for each image in the ARD stack ## Still working on topographic correction component (need to modify for each LC) require(raster) require(rgdal) require(gdalUtils) require(rgeos) require(jsonlite) require(spatialEco) library(foreach) library(iterators) library(doParallel) library(...
# * * * * * * * # # Metadata #### # # Title: sparese RDA # meta: sparese RDA # # code by: Koos Zwinderman, Attila Csala # place: Amsterdam # date: 2016-11 # * ...
/Example/sPLSPM/R/generate_data.R
no_license
acsala/2018_msPLS
R
false
false
8,386
r
# * * * * * * * # # Metadata #### # # Title: sparese RDA # meta: sparese RDA # # code by: Koos Zwinderman, Attila Csala # place: Amsterdam # date: 2016-11 # * ...
directory=getwd() sampleFiles <- grep("../*.counts",list.files(directory),value=TRUE) sampleStrains <- c() for (i in (strsplit(sampleFiles,"_"))){ sampleStrains <- c(sampleStrains,unlist(i)[1]) } sampleCondition <- c() for (i in (strsplit(sampleFiles,"_"))){ sampleCondition <- c(sampleCondition,unlist(i)[2]) } sampl...
/pipelines/RNAseq/DEseq2_condition.r
no_license
zm-git-dev/collection
R
false
false
1,571
r
directory=getwd() sampleFiles <- grep("../*.counts",list.files(directory),value=TRUE) sampleStrains <- c() for (i in (strsplit(sampleFiles,"_"))){ sampleStrains <- c(sampleStrains,unlist(i)[1]) } sampleCondition <- c() for (i in (strsplit(sampleFiles,"_"))){ sampleCondition <- c(sampleCondition,unlist(i)[2]) } sampl...
# # ML: classificacao random forest # setwd("/Users/Lindice/Desktop/R-Study/ArvoresDeDecisao") # # Leitura da base de dados e analise base <- read.csv('censo.csv') View(base) str(base) table(base$age) levels(base$age) table(base$capital.gain) levels(base$capital.gain) table(base$capital.loos) levels(base$capital.loo...
/ArvoresDeDecisao/Classificacao_random_forest.R
no_license
lindicell/R-Study
R
false
false
4,427
r
# # ML: classificacao random forest # setwd("/Users/Lindice/Desktop/R-Study/ArvoresDeDecisao") # # Leitura da base de dados e analise base <- read.csv('censo.csv') View(base) str(base) table(base$age) levels(base$age) table(base$capital.gain) levels(base$capital.gain) table(base$capital.loos) levels(base$capital.loo...
# This R script contains functions that are used in the dashboard filelocation <- paste(getwd(), "/Player Data/", sep="") # "H:/Backup/Documents/Shamanth's Folder/Fantasy Dashboard/Player Data/" filelocation2 <- "H:/Backup/Documents/Shamanth's Folder/Fantasy Dashboard/Team Data/" library(dplyr) library(rvest) ...
/Fantasy-Dashboard/NBA-statistic-predictions.R
no_license
shamanthc/nba_fantasy_dashboard
R
false
false
26,620
r
# This R script contains functions that are used in the dashboard filelocation <- paste(getwd(), "/Player Data/", sep="") # "H:/Backup/Documents/Shamanth's Folder/Fantasy Dashboard/Player Data/" filelocation2 <- "H:/Backup/Documents/Shamanth's Folder/Fantasy Dashboard/Team Data/" library(dplyr) library(rvest) ...
library(shiny) shinyServer(function(input, output,session){ })
/energyUsagePrediction/EEModel/server.R
no_license
gmiller7138/ist687
R
false
false
68
r
library(shiny) shinyServer(function(input, output,session){ })
## Getting full dataset data_full <- read.csv("C:/Users/irvin/Desktop/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y") ## Subsetting the...
/plot4.R
no_license
irvinlkm/ExData_Plotting1
R
false
false
1,307
r
## Getting full dataset data_full <- read.csv("C:/Users/irvin/Desktop/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y") ## Subsetting the...
#! /usr/bin/Rscript source("/triton/ics/scratch/uzielak1/general_scripts/my_plot.R") cargs <- commandArgs(trailingOnly = TRUE) prebs_rma_file <- cargs[1] array_expr_means_file <- cargs[2] output_dir <- cargs[3] prebs_cors <- NULL load(prebs_rma_file) load(array_expr_means_file) for (i in 1:ncol(array_expr_means)...
/2012-03-16-PREBS-stock-cdf/scripts/plot_stock.R
no_license
uziela/helsinki-project
R
false
false
1,220
r
#! /usr/bin/Rscript source("/triton/ics/scratch/uzielak1/general_scripts/my_plot.R") cargs <- commandArgs(trailingOnly = TRUE) prebs_rma_file <- cargs[1] array_expr_means_file <- cargs[2] output_dir <- cargs[3] prebs_cors <- NULL load(prebs_rma_file) load(array_expr_means_file) for (i in 1:ncol(array_expr_means)...
# Description: 50 Genotypes Slice and dice the dataframe # by Kevin Falk # May 2018 ######## AllData=read.csv("C:/Users/falk/Google Drive/PhD/PhD Projects/Blue Steel/2017 Data - Growth Chamber/Raw Data/KF_Imputed_DF.csv") summary(AllData) AllData$Rep=as.factor(AllData$Rep) AllData$SB=as.factor(All...
/50 Genotypes Slice and Dice.R
no_license
mighster/Data_Wrangling
R
false
false
2,959
r
# Description: 50 Genotypes Slice and dice the dataframe # by Kevin Falk # May 2018 ######## AllData=read.csv("C:/Users/falk/Google Drive/PhD/PhD Projects/Blue Steel/2017 Data - Growth Chamber/Raw Data/KF_Imputed_DF.csv") summary(AllData) AllData$Rep=as.factor(AllData$Rep) AllData$SB=as.factor(All...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/depLT-functions.R \name{positivity.cont} \alias{positivity.cont} \title{Diagnostics of non-overlap in the TVW estimator for a continuous covariate} \usage{ positivity.cont(Z, X, T, delta, chosen = NA, ylim = NA, xlim = NA) } \arguments{ \item...
/man/positivity.cont.Rd
no_license
Bella2001/depLT
R
false
true
1,330
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/depLT-functions.R \name{positivity.cont} \alias{positivity.cont} \title{Diagnostics of non-overlap in the TVW estimator for a continuous covariate} \usage{ positivity.cont(Z, X, T, delta, chosen = NA, ylim = NA, xlim = NA) } \arguments{ \item...
#' Return lambda_GC for different numbers of PCs for GWAS on Panicum virgatum. #' #' @description Given a dataframe of phenotypes associated with PLANT_IDs and #' output from a PCA to control for population structure, this function will #' return a .csv file of the lambda_GC values for the GWAS upon inclusion #...
/R/pvdiv_gwas.R
no_license
quanrd/switchgrassGWAS
R
false
false
10,626
r
#' Return lambda_GC for different numbers of PCs for GWAS on Panicum virgatum. #' #' @description Given a dataframe of phenotypes associated with PLANT_IDs and #' output from a PCA to control for population structure, this function will #' return a .csv file of the lambda_GC values for the GWAS upon inclusion #...
#' Getting ICD9 codes from strings #' #' This function retrieves ICD9/10 codes based on string matching. #' @param string String to match. Can be single term, or vector. Case insensitive. #' @param ICD Which ICD? Specify numeric, 9 or 10. #' @keywords ICD9 ICD10 #' @export stringToICD #' @return If matches are found, ...
/R/stringToICD.R
no_license
bahlolab/ukbRRR
R
false
false
719
r
#' Getting ICD9 codes from strings #' #' This function retrieves ICD9/10 codes based on string matching. #' @param string String to match. Can be single term, or vector. Case insensitive. #' @param ICD Which ICD? Specify numeric, 9 or 10. #' @keywords ICD9 ICD10 #' @export stringToICD #' @return If matches are found, ...
#' @export ####################################################### # 'testModel' function for binomial regression ####################################################### testGlmBi <- function(formula, link){ testModel <- function(Train.data, Validation.data){ modT <- stats :: glm(formula , family = stats :: binom...
/R/testGlmBi.R
no_license
cran/BAGofT
R
false
false
931
r
#' @export ####################################################### # 'testModel' function for binomial regression ####################################################### testGlmBi <- function(formula, link){ testModel <- function(Train.data, Validation.data){ modT <- stats :: glm(formula , family = stats :: binom...
library(ggplot2) roll <- function() { dice <- sample(1:6, size = 2, replace = TRUE, prob=c(.125,.125,.125, .125,.125, .375)) # cat(' dice=', dice) sum(dice) } rolls <- replicate(10000, roll()) qplot(rolls, binwidth = 1)
/03Hands-On Programming with R/ch2R_packages/i3sample_with_different_prob.R
no_license
greatabel/RStudy
R
false
false
235
r
library(ggplot2) roll <- function() { dice <- sample(1:6, size = 2, replace = TRUE, prob=c(.125,.125,.125, .125,.125, .375)) # cat(' dice=', dice) sum(dice) } rolls <- replicate(10000, roll()) qplot(rolls, binwidth = 1)
library(DBI) library(RSQLite) library(proto) library(gsubfn) library(sqldf) library(tcltk) library(dplyr) f <- file("household_power_consumption.txt") elec_consumption <- sqldf("select * from f where Date In ('1/2/2007','2/2/2007')", dbname = tempfile(), file.format = list(header = T, row.names = F, sep=";")) elec_cons...
/plot4.R
no_license
sukalpomitra/ExData_Plotting1
R
false
false
1,331
r
library(DBI) library(RSQLite) library(proto) library(gsubfn) library(sqldf) library(tcltk) library(dplyr) f <- file("household_power_consumption.txt") elec_consumption <- sqldf("select * from f where Date In ('1/2/2007','2/2/2007')", dbname = tempfile(), file.format = list(header = T, row.names = F, sep=";")) elec_cons...
#' Predict wining probability of each team in a matchup by #' fitting Bradley-Terry model #' #' @details Note that diagonal entries of the return matrix are #' not exactly 50% because home-court advantage is taken into account. #' Also, for the Bradley-Terry models here we based much of our code #' off of #' \url{http:...
/R/buildWinProbMatrixBT.R
no_license
kitliu5/nbamodelR
R
false
false
2,763
r
#' Predict wining probability of each team in a matchup by #' fitting Bradley-Terry model #' #' @details Note that diagonal entries of the return matrix are #' not exactly 50% because home-court advantage is taken into account. #' Also, for the Bradley-Terry models here we based much of our code #' off of #' \url{http:...
library(ciTools) ### Name: add_pi.lmerMod ### Title: Prediction Intervals for Linear Mixed Model Fitted Values ### Aliases: add_pi.lmerMod ### ** Examples dat <- lme4::sleepstudy # Fit a (random intercept) linear mixed model fit <- lme4::lmer(Reaction ~ Days + (1|Subject), data = lme4::sleepstudy) # Add 50% predict...
/data/genthat_extracted_code/ciTools/examples/add_pi.lmerMod.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
669
r
library(ciTools) ### Name: add_pi.lmerMod ### Title: Prediction Intervals for Linear Mixed Model Fitted Values ### Aliases: add_pi.lmerMod ### ** Examples dat <- lme4::sleepstudy # Fit a (random intercept) linear mixed model fit <- lme4::lmer(Reaction ~ Days + (1|Subject), data = lme4::sleepstudy) # Add 50% predict...
# insertInAddin # # You can learn more about package authoring with RStudio at: # # http://r-pkgs.had.co.nz/ # # Some useful keyboard shortcuts for package authoring: # # Build and Reload Package: 'Ctrl + Shift + B' # Check Package: 'Ctrl + Shift + E' # Test Package: 'Ctrl + Shift + T'...
/R/insertInAddin.R
no_license
gonzalezben81/addins
R
false
false
709
r
# insertInAddin # # You can learn more about package authoring with RStudio at: # # http://r-pkgs.had.co.nz/ # # Some useful keyboard shortcuts for package authoring: # # Build and Reload Package: 'Ctrl + Shift + B' # Check Package: 'Ctrl + Shift + E' # Test Package: 'Ctrl + Shift + T'...
#' aggregate numeric vector to the mean #' #' aggregates numeric vectors with the appropriate method #' #' @param x vector to aggregate #' @param aggregate.to vector of group names to which to aggregate #' @details bla #' @value data frame with aggregated values and group names #' @export aggregate_weighted_numeric <-...
/R/aggregate_weighted_numeric.R
no_license
mabafaba/ki_yem
R
false
false
493
r
#' aggregate numeric vector to the mean #' #' aggregates numeric vectors with the appropriate method #' #' @param x vector to aggregate #' @param aggregate.to vector of group names to which to aggregate #' @details bla #' @value data frame with aggregated values and group names #' @export aggregate_weighted_numeric <-...
source("R/00_setup.R") path_save <- "res" if(!(dir.exists("res"))) { dir.create("res", recursive = T) } # Simplify shape # NEA_cropped <- NEA %>% # st_as_sf() %>% # st_crop(st_bbox(c(xmin = -20, xmax = 20, ymin = 40, ymax = 75))) %>% # ms_simplify(keep = 0.2) # # st_write(NEA_cropped, "data/shape_land/shap...
/Analysis/visualize_trawl_data.R
no_license
MathieuGenu/NorthSea_Trawling
R
false
false
1,733
r
source("R/00_setup.R") path_save <- "res" if(!(dir.exists("res"))) { dir.create("res", recursive = T) } # Simplify shape # NEA_cropped <- NEA %>% # st_as_sf() %>% # st_crop(st_bbox(c(xmin = -20, xmax = 20, ymin = 40, ymax = 75))) %>% # ms_simplify(keep = 0.2) # # st_write(NEA_cropped, "data/shape_land/shap...
# Any code in this file is guaranteed to be called before either # ui.R or server.R source("linechart.R") #source("getCohorts.R") #source("runSQL.R")
/R/global.R
permissive
mi-erasmusmc/patientLevelPredictionUI
R
false
false
152
r
# Any code in this file is guaranteed to be called before either # ui.R or server.R source("linechart.R") #source("getCohorts.R") #source("runSQL.R")
\name{CatDynMod} \alias{CatDynMod} \title{ Class Attribute of Model Output Object } \description{ To be used by plot.CatDynMod() to graphically examine model results. } \usage{ CatDynMod(x, ...) } \arguments{ \item{x}{ A list object coming from CatDyn(). } \item{\dots}{ Not used. } } \value{ A c...
/man/CatDynMod.Rd
no_license
santucofs/CatDyn
R
false
false
472
rd
\name{CatDynMod} \alias{CatDynMod} \title{ Class Attribute of Model Output Object } \description{ To be used by plot.CatDynMod() to graphically examine model results. } \usage{ CatDynMod(x, ...) } \arguments{ \item{x}{ A list object coming from CatDyn(). } \item{\dots}{ Not used. } } \value{ A c...
library('ggplot2') df <- read.csv('histo.csv') # kmer-counts histplot <- ggplot(df, aes(x = count)) + geom_histogram(color="white") + scale_x_log10(breaks = 10^(0:5), labels = c("0", "10", "100", "1K", "10K", "100K")) + scale_y_log10(breaks = 10^(0:6), labels = c("0", "10", "100", "1K", "10K", "100K",...
/kmers/src/plots.R
permissive
bob-carpenter/case-studies
R
false
false
438
r
library('ggplot2') df <- read.csv('histo.csv') # kmer-counts histplot <- ggplot(df, aes(x = count)) + geom_histogram(color="white") + scale_x_log10(breaks = 10^(0:5), labels = c("0", "10", "100", "1K", "10K", "100K")) + scale_y_log10(breaks = 10^(0:6), labels = c("0", "10", "100", "1K", "10K", "100K",...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tpptrCurveFit.R \name{tpptrCurveFit} \alias{tpptrCurveFit} \title{Fit melting curves to all proteins in a dataset.} \usage{ tpptrCurveFit(data, dataCI = NULL, resultPath = NULL, ggplotTheme = tppDefaultTheme(), doPlot = TRUE, startPars = c(...
/man/tpptrCurveFit.Rd
no_license
SamGG/TPP
R
false
true
3,256
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tpptrCurveFit.R \name{tpptrCurveFit} \alias{tpptrCurveFit} \title{Fit melting curves to all proteins in a dataset.} \usage{ tpptrCurveFit(data, dataCI = NULL, resultPath = NULL, ggplotTheme = tppDefaultTheme(), doPlot = TRUE, startPars = c(...
install.packages("RPostgreSQL") library("RPostgreSQL") drv = dbDriver("PostgreSQL") con = dbConnect(drv , dbname = "postgres", host = "127.0.0.1", port = "5432", user = "postgres", password = "admin") print(con) # Leggo i valori da ...
/R/createcsv.r
no_license
pressure-plate/Veicle-Register-Project
R
false
false
3,735
r
install.packages("RPostgreSQL") library("RPostgreSQL") drv = dbDriver("PostgreSQL") con = dbConnect(drv , dbname = "postgres", host = "127.0.0.1", port = "5432", user = "postgres", password = "admin") print(con) # Leggo i valori da ...
corr <- function(directory,threshold = 0) { #rawData <- data.frame(matrix(ncol = 2,nrow = 0)) #colnames(rawData) <- c("sulfate","nitrate") v <- vector(mode = "numeric", length = 0) for(index in c(1:332)) { fileName <- paste(directory,"/",convertString(index),".csv",sep = '') myData <- re...
/data_science/R_Programming/week2/corr.R
no_license
BillMark98/data_coursera
R
false
false
917
r
corr <- function(directory,threshold = 0) { #rawData <- data.frame(matrix(ncol = 2,nrow = 0)) #colnames(rawData) <- c("sulfate","nitrate") v <- vector(mode = "numeric", length = 0) for(index in c(1:332)) { fileName <- paste(directory,"/",convertString(index),".csv",sep = '') myData <- re...
#' @export profile_fn <- function(x, args, .slot) { slot(args$OM, .slot) <- rep(x, 2) do.call(SRA_scope, args) } #' @export get_profileLL <- function(x) { vapply(x, function(xx) ifelse(all(xx@conv), xx@mean_fit$opt$objective, NA), numeric(1)) } fit_SR <- function(logR0, h, SSBPR0, sigmaR, SSB, Robs, opt = TRU...
/mfSCA/R/generate_args.R
no_license
quang-huynh/NE_retro
R
false
false
6,915
r
#' @export profile_fn <- function(x, args, .slot) { slot(args$OM, .slot) <- rep(x, 2) do.call(SRA_scope, args) } #' @export get_profileLL <- function(x) { vapply(x, function(xx) ifelse(all(xx@conv), xx@mean_fit$opt$objective, NA), numeric(1)) } fit_SR <- function(logR0, h, SSBPR0, sigmaR, SSB, Robs, opt = TRU...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/content_objects.R \name{ProductTax} \alias{ProductTax} \title{ProductTax Object} \usage{ ProductTax(country = NULL, locationId = NULL, postalCode = NULL, rate = NULL, region = NULL, taxShip = NULL) } \arguments{ \item{country}{The country w...
/googlecontentv2.auto/man/ProductTax.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,059
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/content_objects.R \name{ProductTax} \alias{ProductTax} \title{ProductTax Object} \usage{ ProductTax(country = NULL, locationId = NULL, postalCode = NULL, rate = NULL, region = NULL, taxShip = NULL) } \arguments{ \item{country}{The country w...
compute_tstat_by_group<-function(leedata,sign,mean_name="MEAN",...) { p.treated_inds<-mean(leedata$treat==1) X_inds<- (leedata$selection ==1 ) * (leedata$treat==1)/p.treated_inds - (leedata$selection ==1 ) * (leedata$treat==0)/(1-p.treated_inds) leedata<-as.data.frame(leedata) MEAN<-unique(as.nume...
/JobCorps/STEP2_Test_Monotonicity/utils_for_test.R
no_license
mindis/leebounds
R
false
false
5,553
r
compute_tstat_by_group<-function(leedata,sign,mean_name="MEAN",...) { p.treated_inds<-mean(leedata$treat==1) X_inds<- (leedata$selection ==1 ) * (leedata$treat==1)/p.treated_inds - (leedata$selection ==1 ) * (leedata$treat==0)/(1-p.treated_inds) leedata<-as.data.frame(leedata) MEAN<-unique(as.nume...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sfs.R \name{theta_w} \alias{d_xy} \alias{theta_pi} \alias{theta_w} \alias{theta_zeta} \title{Calculate Watterson's estimator of theta} \usage{ theta_w(sfs, persite = FALSE, ...) theta_pi(sfs, persite = FALSE, ...) theta_zeta(sfs, persite = ...
/man/diversity_stats.Rd
no_license
Arawndale/sfsr
R
false
true
1,348
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sfs.R \name{theta_w} \alias{d_xy} \alias{theta_pi} \alias{theta_w} \alias{theta_zeta} \title{Calculate Watterson's estimator of theta} \usage{ theta_w(sfs, persite = FALSE, ...) theta_pi(sfs, persite = FALSE, ...) theta_zeta(sfs, persite = ...
library( ordinalRidge ) library( qs ) library( microbenchmark ) ## Load real data and compute a linear kernel traindata <- qread("traindata.qs") y <- purrr::pluck(traindata, "Label") X <- as.matrix(dplyr::select(traindata, -Label)) nvar <- ncol(X) ncls <- length(levels(y)) ## Benchmark microbenchmark( m1 = ordin...
/04-benchmark.R
permissive
clemenshug/ord-work
R
false
false
1,990
r
library( ordinalRidge ) library( qs ) library( microbenchmark ) ## Load real data and compute a linear kernel traindata <- qread("traindata.qs") y <- purrr::pluck(traindata, "Label") X <- as.matrix(dplyr::select(traindata, -Label)) nvar <- ncol(X) ncls <- length(levels(y)) ## Benchmark microbenchmark( m1 = ordin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/type-string.R \name{vec_ptype_full} \alias{vec_ptype_full} \alias{vec_ptype_abbr} \title{Vector type as a string} \usage{ vec_ptype_full(x) vec_ptype_abbr(x) } \arguments{ \item{x}{A vector.} } \value{ A string. } \description{ \code{vec_pty...
/man/vec_ptype_full.Rd
no_license
yutannihilation/vctrs
R
false
true
989
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/type-string.R \name{vec_ptype_full} \alias{vec_ptype_full} \alias{vec_ptype_abbr} \title{Vector type as a string} \usage{ vec_ptype_full(x) vec_ptype_abbr(x) } \arguments{ \item{x}{A vector.} } \value{ A string. } \description{ \code{vec_pty...
# assertions ---- #' Additional Assertions for `checkmate` #' #' @description `r lifecycle::badge("experimental")` #' #' We provide additional assertion functions that can be used together with #' the `checkmate` functions. These are described in individual help pages #' linked below. #' #' @return Depending on the fu...
/R/checkmate.R
no_license
Roche/crmPack
R
false
false
8,895
r
# assertions ---- #' Additional Assertions for `checkmate` #' #' @description `r lifecycle::badge("experimental")` #' #' We provide additional assertion functions that can be used together with #' the `checkmate` functions. These are described in individual help pages #' linked below. #' #' @return Depending on the fu...
library(Sleuth2) ### Name: case1902 ### Title: Death Penalty and Race ### Aliases: case1902 ### Keywords: datasets ### ** Examples str(case1902) # Add smidgeon to denominator because of zeros empiricalodds <- with(case1902, Death/(Nodeath + .5)) plot(empiricalodds ~ as.numeric(Aggravation), case1902, log="y", pc...
/data/genthat_extracted_code/Sleuth2/examples/case1902.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
986
r
library(Sleuth2) ### Name: case1902 ### Title: Death Penalty and Race ### Aliases: case1902 ### Keywords: datasets ### ** Examples str(case1902) # Add smidgeon to denominator because of zeros empiricalodds <- with(case1902, Death/(Nodeath + .5)) plot(empiricalodds ~ as.numeric(Aggravation), case1902, log="y", pc...
#### Render all the plots #### source("prerequisites.R") setwd("analyses") for (file in dir(".", pattern = ".Rmd")){ rmarkdown::render(file) } setwd("..") system(command = "cd analyses; rsync -avz *html assets /srv/stats.jemu.name/theincomparable/")
/render_local.R
permissive
jemus42/theincompaRable
R
false
false
256
r
#### Render all the plots #### source("prerequisites.R") setwd("analyses") for (file in dir(".", pattern = ".Rmd")){ rmarkdown::render(file) } setwd("..") system(command = "cd analyses; rsync -avz *html assets /srv/stats.jemu.name/theincomparable/")
library(tseries) library(zoo) library(ggplot2) library(forecast) library(dplyr) require(lmtest) data <- read.csv('TOTBUSSMNSA.csv') title = 'Total Business Sales FRED (FED St. Louis Economics Research)' #data before intervention pre_intervention <- data %>% filter(DATE < as.Date("2008-08-01")) FRED_pre <- ts(pre_interv...
/intervention_analysis/analysis.R
no_license
viguardieiro/time_series
R
false
false
2,352
r
library(tseries) library(zoo) library(ggplot2) library(forecast) library(dplyr) require(lmtest) data <- read.csv('TOTBUSSMNSA.csv') title = 'Total Business Sales FRED (FED St. Louis Economics Research)' #data before intervention pre_intervention <- data %>% filter(DATE < as.Date("2008-08-01")) FRED_pre <- ts(pre_interv...
\name{ldenseMatrix-class} \docType{class} \alias{ldenseMatrix-class} \alias{!,ldenseMatrix-method} \alias{coerce,matrix,ldenseMatrix-method} \alias{coerce,ldenseMatrix,matrix-method} %%-- These are already in ./lsparseMatrix-classes.Rd : %\alias{\%*\%,lsparseMatrix,ldenseMatrix-method} %\alias{\%*\%,ldenseMatrix,lspars...
/branches/Matrix-mer2/man/ldenseMatrix-class.Rd
no_license
LTLA/Matrix
R
false
false
1,853
rd
\name{ldenseMatrix-class} \docType{class} \alias{ldenseMatrix-class} \alias{!,ldenseMatrix-method} \alias{coerce,matrix,ldenseMatrix-method} \alias{coerce,ldenseMatrix,matrix-method} %%-- These are already in ./lsparseMatrix-classes.Rd : %\alias{\%*\%,lsparseMatrix,ldenseMatrix-method} %\alias{\%*\%,ldenseMatrix,lspars...
# Load Data # Since data loading is slow, only load data if not loaded already if(!exists("NEI")){ NEI <- readRDS("summarySCC_PM25.rds") } if(!exists("SCC")){ SCC <- readRDS("Source_Classification_Code.rds") } # sum total emissions per year data <- aggregate(Emissions ~ year, NEI, sum) # Plot png('plot1.png') bar...
/eda-project2/plot1.R
permissive
hsgrewal/dss
R
false
false
507
r
# Load Data # Since data loading is slow, only load data if not loaded already if(!exists("NEI")){ NEI <- readRDS("summarySCC_PM25.rds") } if(!exists("SCC")){ SCC <- readRDS("Source_Classification_Code.rds") } # sum total emissions per year data <- aggregate(Emissions ~ year, NEI, sum) # Plot png('plot1.png') bar...
# Setting Working Directory setwd("~/Diego/Analytics/LoL Analytics/Logistic Model") # Loading Libraries library(dplyr) library(readxl) # Loading the .xlsx dataset into RStudio. ModelData <- read_excel(path = "~/Diego/Analytics/LoL Analytics/Logistic Model/Extra Files/ModelData.xlsx", ...
/Lol_Logistic_Model.R
no_license
Diego-Angulo/Predicting-Wins-in-League-of-Legends
R
false
false
9,794
r
# Setting Working Directory setwd("~/Diego/Analytics/LoL Analytics/Logistic Model") # Loading Libraries library(dplyr) library(readxl) # Loading the .xlsx dataset into RStudio. ModelData <- read_excel(path = "~/Diego/Analytics/LoL Analytics/Logistic Model/Extra Files/ModelData.xlsx", ...
# Wymagana uprzednia instalacja pakietu corrplot oraz rgl! library(corrplot) library(rgl) source('eksploracja.r') getMappedGlassData <- function (rawData){ glassData <- data.frame( ri = rawData$szklo.B[,1], na = rawData$szklo.B[,2], mg = rawData$szklo.B[,3], al = rawData$szklo.B[,4], si = rawData$szklo.B[,5...
/R/Zenon.R.WebApi/RScripts/Zenon_Motyka_projekt_eksploracja_danych_kod.r
no_license
zmotyka/MscThesis
R
false
false
9,920
r
# Wymagana uprzednia instalacja pakietu corrplot oraz rgl! library(corrplot) library(rgl) source('eksploracja.r') getMappedGlassData <- function (rawData){ glassData <- data.frame( ri = rawData$szklo.B[,1], na = rawData$szklo.B[,2], mg = rawData$szklo.B[,3], al = rawData$szklo.B[,4], si = rawData$szklo.B[,5...
Arimama <- function(behavior,phaseX,v,m){ t1<-table(phaseX) tmax<-t1[names(t1)==v] start<-match(v,phaseX) end<-tmax+start-1 tsx<-behavior[start:end] e=length(tsx) x=1:end x<-ts(x,start=1,end=e,deltat=1) tsma<-SMA(tsx,n=m) graphics.off() par(mfrow=c(1,2)) plot.ts(tsx,xlab="time", ylab="behavior") plot.ts(tsma,xlab="t...
/A_github/sources/authors/2866/SSDforR/Arimama.R
no_license
Irbis3/crantasticScrapper
R
false
false
363
r
Arimama <- function(behavior,phaseX,v,m){ t1<-table(phaseX) tmax<-t1[names(t1)==v] start<-match(v,phaseX) end<-tmax+start-1 tsx<-behavior[start:end] e=length(tsx) x=1:end x<-ts(x,start=1,end=e,deltat=1) tsma<-SMA(tsx,n=m) graphics.off() par(mfrow=c(1,2)) plot.ts(tsx,xlab="time", ylab="behavior") plot.ts(tsma,xlab="t...
"------------------------Decission Tree Classifier -------------------------" # Question 1 ---- # Required packages #install.packages(c("rpart","rpart.plot","party","tree")) library("party") library (tree) library(rpart);library(rpart.plot) library(C50) # Required Data ---- data("iris") head(iris) #Here...
/DecisionTree_fraudcheck.r
no_license
shilpa2hait/Redo_Assignments
R
false
false
2,522
r
"------------------------Decission Tree Classifier -------------------------" # Question 1 ---- # Required packages #install.packages(c("rpart","rpart.plot","party","tree")) library("party") library (tree) library(rpart);library(rpart.plot) library(C50) # Required Data ---- data("iris") head(iris) #Here...
\name{FisherSkew} \alias{FisherSkew} %- Also NEED an '\alias' for EACH other topic documented here. \title{Fisher's measure of skewness %% ~~function to do ... ~~ } \description{Computes Fisher's measure of skewness, that is the third standardized moment of each variable in the dataset %% ~~ A concise (1-5...
/man/FisherSkew.Rd
no_license
cran/MultiSkew
R
false
false
1,303
rd
\name{FisherSkew} \alias{FisherSkew} %- Also NEED an '\alias' for EACH other topic documented here. \title{Fisher's measure of skewness %% ~~function to do ... ~~ } \description{Computes Fisher's measure of skewness, that is the third standardized moment of each variable in the dataset %% ~~ A concise (1-5...
# 05_05_10 # This appears to be working #ZIBI ZIBI <- function (mu.link = "logit", sigma.link = "logit") { mstats <- checklink("mu.link", "ZIBI", substitute(mu.link), c("logit", "probit", "cloglog", "cauchit", "log", "own")) dstats <- checklink("sigma.link", "ZIBI", substitute(...
/R/ZIBI.R
no_license
deoclecioamorim/GAMLSS-Distibutions
R
false
false
6,493
r
# 05_05_10 # This appears to be working #ZIBI ZIBI <- function (mu.link = "logit", sigma.link = "logit") { mstats <- checklink("mu.link", "ZIBI", substitute(mu.link), c("logit", "probit", "cloglog", "cauchit", "log", "own")) dstats <- checklink("sigma.link", "ZIBI", substitute(...
# Gregory Way 2017 # PanCancer Classifier # scripts/viz/ras_differential_expression_figure.R # # Visualize differences between differential expression analysis of Ras # wild-type to Ras mutant tumors and the machine learning derived gene # importance scores # # Usage: Run in command line # # Rscript --vanilla scrip...
/scripts/viz/ras_differential_expression_figure.R
permissive
nvk747/pancancer
R
false
false
4,797
r
# Gregory Way 2017 # PanCancer Classifier # scripts/viz/ras_differential_expression_figure.R # # Visualize differences between differential expression analysis of Ras # wild-type to Ras mutant tumors and the machine learning derived gene # importance scores # # Usage: Run in command line # # Rscript --vanilla scrip...
if(! ("XLConnect" %in% installed.packages())) {install.packages("XLConnect")} if(! ("RSQLite" %in% installed.packages())) {install.packages("RSQLite")} if(! ("ggplot2" %in% installed.packages())) {install.packages("ggplot2")} if(! ("dplyr" %in% installed.packages())) {install.packages("dplyr")} if(! ("qdata" %in% insta...
/010-rbase-two-days/docs/other/packages_to_install.R
no_license
quantide/qtraining
R
false
false
516
r
if(! ("XLConnect" %in% installed.packages())) {install.packages("XLConnect")} if(! ("RSQLite" %in% installed.packages())) {install.packages("RSQLite")} if(! ("ggplot2" %in% installed.packages())) {install.packages("ggplot2")} if(! ("dplyr" %in% installed.packages())) {install.packages("dplyr")} if(! ("qdata" %in% insta...
b <- 1+1
/btest.R
no_license
yangyxq/test
R
false
false
8
r
b <- 1+1
+ +### load data ### +download.file('https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip', destfile = 'zz.zip', method='curl') +zz <- unz('zz.zip', 'household_power_consumption.txt') +d <- read.table(zz, header=TRUE, sep=';', colClasses = 'character') +data <- subset(d, Date == '1...
/Plot1.R
no_license
nvolchetskiy/ExData_Plotting1
R
false
false
753
r
+ +### load data ### +download.file('https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip', destfile = 'zz.zip', method='curl') +zz <- unz('zz.zip', 'household_power_consumption.txt') +d <- read.table(zz, header=TRUE, sep=';', colClasses = 'character') +data <- subset(d, Date == '1...
library(ape) testtree <- read.tree("5436_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5436_0_unrooted.txt")
/codeml_files/newick_trees_processed/5436_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("5436_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5436_0_unrooted.txt")
#!/bin/Rscript #databaseQuery # Given a vector of columns to include and a list of named filters to apply, # function uses queryTrace() to identify required tables and inner_joins them # recursively to produce a query, then applies filters using stackedFilters(). # Finally, function selects() columns to be included and...
/src/R/shiny/ROMOPOmics/src/databaseQuery.R
permissive
NCBI-Codeathons/OMOPOmics
R
false
false
544
r
#!/bin/Rscript #databaseQuery # Given a vector of columns to include and a list of named filters to apply, # function uses queryTrace() to identify required tables and inner_joins them # recursively to produce a query, then applies filters using stackedFilters(). # Finally, function selects() columns to be included and...
suppressMessages(library(pbdDMAT, quietly = TRUE)) init.grid() { if (comm.rank()==0) A <- matrix(1:25, 5,5) else A <- NULL } dA <- as.ddmatrix(A, bldim=2) # distribute print(dA) comm.print(submatrix(dA), all.rank = TRUE) newA <- redistribute(dA, bldim=2, ICTXT=1) print(newA) comm.print(submatrix(newA), ...
/mpicode.R
no_license
wwwjk365/aafc-materials
R
false
false
348
r
suppressMessages(library(pbdDMAT, quietly = TRUE)) init.grid() { if (comm.rank()==0) A <- matrix(1:25, 5,5) else A <- NULL } dA <- as.ddmatrix(A, bldim=2) # distribute print(dA) comm.print(submatrix(dA), all.rank = TRUE) newA <- redistribute(dA, bldim=2, ICTXT=1) print(newA) comm.print(submatrix(newA), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readData.R \docType{methods} \name{readTranscriptFeatures} \alias{readTranscriptFeatures} \alias{readTranscriptFeatures,character-method} \title{Function for reading exon intron and promoter structure from a given bed file} \usage{ readTransc...
/man/readTranscriptFeatures-methods.Rd
no_license
katwre/genomation
R
false
true
1,719
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readData.R \docType{methods} \name{readTranscriptFeatures} \alias{readTranscriptFeatures} \alias{readTranscriptFeatures,character-method} \title{Function for reading exon intron and promoter structure from a given bed file} \usage{ readTransc...
#Draws random multivariate normal samples from means with #two different distrubtions. #Plot them in different colors. library(MASS) #dist to use. Sigma <- matrix(c(1,0,0,1),2,2) #same covariance matrix A <- mvrnorm(250,c(2,2),Sigma) # different means B <- mvrnorm(250,c(-2,-2),Sigma) plot(A[,1],A[,2],col="red",xl...
/twosamplemv.R
no_license
Spstolar/Statistical-Computing-Group-Project
R
false
false
449
r
#Draws random multivariate normal samples from means with #two different distrubtions. #Plot them in different colors. library(MASS) #dist to use. Sigma <- matrix(c(1,0,0,1),2,2) #same covariance matrix A <- mvrnorm(250,c(2,2),Sigma) # different means B <- mvrnorm(250,c(-2,-2),Sigma) plot(A[,1],A[,2],col="red",xl...
# # 2018_005_est.R, 25 Aug 20 # Data from: # Composing Effective Software Security Assurance Workflows # William R. Nichols and James D. McHale and David Sweeney and William Snavely and Aaron Volkman # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones # # TAG ...
/projects/2018_005_est.R
no_license
Derek-Jones/ESEUR-code-data
R
false
false
3,467
r
# # 2018_005_est.R, 25 Aug 20 # Data from: # Composing Effective Software Security Assurance Workflows # William R. Nichols and James D. McHale and David Sweeney and William Snavely and Aaron Volkman # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones # # TAG ...
## PLEASE MAKE SURE THE DATA FILE IS IN WORKING DIRECTORY FOLDER ## ## PART A ## SUBSETS & IMPORTS THE DATA dataFile <- "household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] ## PART B ## PLOT...
/plot2.R
no_license
arpitt89/ExData_Plotting1
R
false
false
684
r
## PLEASE MAKE SURE THE DATA FILE IS IN WORKING DIRECTORY FOLDER ## ## PART A ## SUBSETS & IMPORTS THE DATA dataFile <- "household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] ## PART B ## PLOT...
library(stm) processed <- textProcessor(data$REASON, metadata = data) out <- prepDocuments(processed$documents, processed$vocab, processed$meta) PreFit <- stm(documents = out$documents, vocab = out$vocab, K = 5, prevalence =~ Joe + liberal_attitude + Joe*liberal_attitude, ...
/stm_insights_test.R
no_license
xinkaichen97/YelpReviewTopicMining
R
false
false
1,204
r
library(stm) processed <- textProcessor(data$REASON, metadata = data) out <- prepDocuments(processed$documents, processed$vocab, processed$meta) PreFit <- stm(documents = out$documents, vocab = out$vocab, K = 5, prevalence =~ Joe + liberal_attitude + Joe*liberal_attitude, ...
context("Anchored ranges") test_that("AnchoredIntegerRanges and friends", { ir <- IRanges() astart <- anchor_start(ir) # check class and accessors expect_true(is(astart, "AnchoredIntegerRanges")) expect_s4_class(astart, "AnchoredIntegerRanges") expect_equal(anchor(astart), "start") # adding a new anchore...
/tests/testthat/test-anchor.R
no_license
liupfskygre/plyranges
R
false
false
2,503
r
context("Anchored ranges") test_that("AnchoredIntegerRanges and friends", { ir <- IRanges() astart <- anchor_start(ir) # check class and accessors expect_true(is(astart, "AnchoredIntegerRanges")) expect_s4_class(astart, "AnchoredIntegerRanges") expect_equal(anchor(astart), "start") # adding a new anchore...
library("MASS") # Mittelwert mean(Boston$crim) # Standardabweichung sd(Boston$crim) plot(ecdf(Boston$crim)) # Standardisierung (Lineare Transformation) z <- scale(Boston$crim) # Mittelwert standardisiert mean(z) # Standardabweichung standardisiert sd(z) plot(ecdf(z))
/inst/examples/stat/example_scale.R
no_license
Kale14/mmstat4
R
false
false
267
r
library("MASS") # Mittelwert mean(Boston$crim) # Standardabweichung sd(Boston$crim) plot(ecdf(Boston$crim)) # Standardisierung (Lineare Transformation) z <- scale(Boston$crim) # Mittelwert standardisiert mean(z) # Standardabweichung standardisiert sd(z) plot(ecdf(z))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dump.R \name{blastxml_dump} \alias{blastxml_dump} \title{Extract blast XML contents possibly writing to a text file} \usage{ blastxml_dump(xml_file = get_example_filename(), out_file = NULL, sep = "\\t", bxd = NULL, fields = NULL, form = c(...
/man/blastxml_dump.Rd
permissive
BigelowLab/blastxml
R
false
true
968
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dump.R \name{blastxml_dump} \alias{blastxml_dump} \title{Extract blast XML contents possibly writing to a text file} \usage{ blastxml_dump(xml_file = get_example_filename(), out_file = NULL, sep = "\\t", bxd = NULL, fields = NULL, form = c(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataManipulationModel.R \name{normalize} \alias{normalize} \title{Normalizing data the data} \usage{ normalize(currentVariable, currentVariableValues, averageData) } \arguments{ \item{currentVariable}{temp} \item{currentVariableValues}{temp}...
/man/normalize.Rd
no_license
Wessie1991/MachineLearneR
R
false
true
462
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataManipulationModel.R \name{normalize} \alias{normalize} \title{Normalizing data the data} \usage{ normalize(currentVariable, currentVariableValues, averageData) } \arguments{ \item{currentVariable}{temp} \item{currentVariableValues}{temp}...
model <- "LDAModel" context(model) test_that("model fitting", { skip_if_not(TEST_MODEL_FITTING) with_parallel({ expect_output(test_model_binary(model)) expect_output(test_model_factor(model)) expect_error(test_model_numeric(model)) expect_error(test_model_Surv(model)) }) })
/tests/testthat/test-ML_LDAModel.R
no_license
Drbuxie/MachineShop
R
false
false
299
r
model <- "LDAModel" context(model) test_that("model fitting", { skip_if_not(TEST_MODEL_FITTING) with_parallel({ expect_output(test_model_binary(model)) expect_output(test_model_factor(model)) expect_error(test_model_numeric(model)) expect_error(test_model_Surv(model)) }) })
################################################ #### #### Minority Depository Institutions #### Shiny App #### PubH 7462 #### Cody R Tuttle #### ############################################### ### load packages #install.packages("writexl") #install.packages("shinythemes") #install.packages("plotly") library(shiny)...
/app.R
no_license
codyrtuttle/mdi_shinyapp
R
false
false
23,741
r
################################################ #### #### Minority Depository Institutions #### Shiny App #### PubH 7462 #### Cody R Tuttle #### ############################################### ### load packages #install.packages("writexl") #install.packages("shinythemes") #install.packages("plotly") library(shiny)...
#' Calculate the gas reserves using several different exponential and harmonic declines. #' #' \code{Gas_Reserves} #' #' @param x list of data to parse #' @importFrom MASS lqs #' @importFrom LambertW W #' @export #' @examples #' data <- list(SampleWell = data.frame(t=seq(as.POSIXct("2000/1/1"), by = "month", length.ou...
/Supporting Data/R/Gas_Reserves.r
no_license
morganmadell/PIMS2018
R
false
false
5,768
r
#' Calculate the gas reserves using several different exponential and harmonic declines. #' #' \code{Gas_Reserves} #' #' @param x list of data to parse #' @importFrom MASS lqs #' @importFrom LambertW W #' @export #' @examples #' data <- list(SampleWell = data.frame(t=seq(as.POSIXct("2000/1/1"), by = "month", length.ou...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/fslhd.R \name{fslmerge} \alias{fslmerge} \title{Merge images using FSL} \usage{ fslmerge(infiles, direction = c("x", "y", "z", "t", "a"), outfile = NULL, retimg = FALSE, reorient = FALSE, intern = TRUE, verbose = TRUE, ...) } \argum...
/man/fslmerge.Rd
no_license
emsweene/fslr
R
false
false
1,053
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/fslhd.R \name{fslmerge} \alias{fslmerge} \title{Merge images using FSL} \usage{ fslmerge(infiles, direction = c("x", "y", "z", "t", "a"), outfile = NULL, retimg = FALSE, reorient = FALSE, intern = TRUE, verbose = TRUE, ...) } \argum...
library(WDI) library(countrycode) library(rio) library(stargazer) library(ggplot2) library(tidyr) library(plotly) library(rJava) library(xlsx) library(repmis) possible_dir <- c('C:/RajuPC/CollaborativeSSDA/Assignments/Assignment4', '/Users/mariorodriguez/Desktop/Assignment4') repmis::set_valid_wd(possible_dir) GINI <...
/CodeforPresentation.R
no_license
adhikariraju1/Assignment4
R
false
false
5,776
r
library(WDI) library(countrycode) library(rio) library(stargazer) library(ggplot2) library(tidyr) library(plotly) library(rJava) library(xlsx) library(repmis) possible_dir <- c('C:/RajuPC/CollaborativeSSDA/Assignments/Assignment4', '/Users/mariorodriguez/Desktop/Assignment4') repmis::set_valid_wd(possible_dir) GINI <...
library(dinamic) ### Name: makeCytoband ### Title: Find the Chromosome Arm for Each Marker ### Aliases: makeCytoband ### Keywords: manip ### ** Examples data(wilms.markers) data(annot.file) wilms.pq = makeCytoband(wilms.markers, annot.file) #A character vector of length 3288, and each entry is either #"p" or "q", d...
/data/genthat_extracted_code/dinamic/examples/makeCytoband.rd.R
no_license
surayaaramli/typeRrh
R
false
false
445
r
library(dinamic) ### Name: makeCytoband ### Title: Find the Chromosome Arm for Each Marker ### Aliases: makeCytoband ### Keywords: manip ### ** Examples data(wilms.markers) data(annot.file) wilms.pq = makeCytoband(wilms.markers, annot.file) #A character vector of length 3288, and each entry is either #"p" or "q", d...
# This script uses a simple function to build a provenance relationship for a # given set of input files, code files, and output files, allowing for a # slightly more intuitive specification of these lists. # Example usage: # # activity_name <- "RNAseq count file merging" # input_files <- c("syn2875349", "syn2875350...
/synapseHelpers/R/set_provenance.R
no_license
jaeddy/ampSynapseProjects
R
false
false
2,022
r
# This script uses a simple function to build a provenance relationship for a # given set of input files, code files, and output files, allowing for a # slightly more intuitive specification of these lists. # Example usage: # # activity_name <- "RNAseq count file merging" # input_files <- c("syn2875349", "syn2875350...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SegFunctions.R \name{LQ} \alias{LQ} \title{A function to compute location quotients (LQs)} \usage{ LQ(x) } \arguments{ \item{x}{- an object of class matrix (or which can be coerced to that class), where each column represents the d...
/man/LQ.Rd
no_license
cran/OasisR
R
false
true
1,048
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SegFunctions.R \name{LQ} \alias{LQ} \title{A function to compute location quotients (LQs)} \usage{ LQ(x) } \arguments{ \item{x}{- an object of class matrix (or which can be coerced to that class), where each column represents the d...
\name{hyperbolic} \alias{hyperbolic} \alias{Ihyperbolic} \title{Hyperbolic transform} \usage{ hyperbolic(x, factor = 0, scale = mean(x, na.rm = TRUE)) Ihyperbolic(x, factor = 0, scale) } \arguments{ \item{x}{a numeric vector to be transformed by \code{hyperbolic} or back-trasnformed by \code{Ihyperbolic}. Mu...
/man/hyperbolic.Rd
permissive
tfransen/USGSwsBase
R
false
false
2,225
rd
\name{hyperbolic} \alias{hyperbolic} \alias{Ihyperbolic} \title{Hyperbolic transform} \usage{ hyperbolic(x, factor = 0, scale = mean(x, na.rm = TRUE)) Ihyperbolic(x, factor = 0, scale) } \arguments{ \item{x}{a numeric vector to be transformed by \code{hyperbolic} or back-trasnformed by \code{Ihyperbolic}. Mu...
################R script to calulate affinity matrix of users ################ # Four variables for each user: age, sex, salary, zipcode # We calculate similarily for each and take the weighted average of them # A function to transform the Ordinal variable to quantitative variable trans_ordinal <- function(ordinal_col...
/Exploration/David/affinity_matrix.R
no_license
DavidTongxx/P2_Recom_Sys_MovieLens
R
false
false
2,740
r
################R script to calulate affinity matrix of users ################ # Four variables for each user: age, sex, salary, zipcode # We calculate similarily for each and take the weighted average of them # A function to transform the Ordinal variable to quantitative variable trans_ordinal <- function(ordinal_col...
#' nbastatR #' #' Tools to acquire and explore NBA data #' #' @name nbastatR #' @docType package #' @author Alex Bresler (abresler@@asbcllc.com) #' @import dplyr purrr stringr stringr stringi tidyr curl jsonlite readr rvest lubridate magrittr httr furrr future memoise #' @importFrom glue glue NULL
/R/nbastatR-package.R
no_license
abresler/nbastatR
R
false
false
300
r
#' nbastatR #' #' Tools to acquire and explore NBA data #' #' @name nbastatR #' @docType package #' @author Alex Bresler (abresler@@asbcllc.com) #' @import dplyr purrr stringr stringr stringi tidyr curl jsonlite readr rvest lubridate magrittr httr furrr future memoise #' @importFrom glue glue NULL
\alias{cch} \name{cch} \title{Fits proportional hazards regression model to case-cohort data} \description{ Returns estimates and standard errors from relative risk regression fit to data from case-cohort studies. A choice is available among the Prentice, Self-Prentice and Lin-Ying methods for unstratified data. For s...
/survival/man/cch.Rd
no_license
fuentesdt/viewsurvivalsource
R
false
false
5,169
rd
\alias{cch} \name{cch} \title{Fits proportional hazards regression model to case-cohort data} \description{ Returns estimates and standard errors from relative risk regression fit to data from case-cohort studies. A choice is available among the Prentice, Self-Prentice and Lin-Ying methods for unstratified data. For s...
library(shinythemes) library(plotly) ui = fluidPage(theme = shinytheme("superhero"), # Application title titlePanel("Citibikes for NYC"), tabsetPanel( tabPanel("Summary", sidebarLayout( sidebarPanel( selectInput('type', 'Choose Your Role:', choices = c('Manager',...
/ui.R
no_license
ljyyuan/NYC_Citybike_ShinyAPP
R
false
false
1,372
r
library(shinythemes) library(plotly) ui = fluidPage(theme = shinytheme("superhero"), # Application title titlePanel("Citibikes for NYC"), tabsetPanel( tabPanel("Summary", sidebarLayout( sidebarPanel( selectInput('type', 'Choose Your Role:', choices = c('Manager',...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/image_analysis.R \name{wbt_histogram_matching} \alias{wbt_histogram_matching} \title{Histogram matching} \usage{ wbt_histogram_matching( input, histo_file, output, wd = NULL, verbose_mode = FALSE, compress_rasters = FALSE ) } \arg...
/man/wbt_histogram_matching.Rd
permissive
dondealban/whiteboxR
R
false
true
899
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/image_analysis.R \name{wbt_histogram_matching} \alias{wbt_histogram_matching} \title{Histogram matching} \usage{ wbt_histogram_matching( input, histo_file, output, wd = NULL, verbose_mode = FALSE, compress_rasters = FALSE ) } \arg...
\name{itis_kingdomnames} \alias{itis_kingdomnames} \title{Get kingdom names.} \usage{ itis_kingdomnames(tsn = NULL, ...) } \arguments{ \item{tsn}{One or more TSN's (taxonomic serial number)} \item{...}{Further arguments passed on to getkingdomnamefromtsn} } \description{ Get kingdom names. } \examples{ \dontrun{...
/man/itis_kingdomnames.Rd
permissive
dlebauer/taxize_
R
false
false
477
rd
\name{itis_kingdomnames} \alias{itis_kingdomnames} \title{Get kingdom names.} \usage{ itis_kingdomnames(tsn = NULL, ...) } \arguments{ \item{tsn}{One or more TSN's (taxonomic serial number)} \item{...}{Further arguments passed on to getkingdomnamefromtsn} } \description{ Get kingdom names. } \examples{ \dontrun{...
Fraud_check <- read.csv(choose.files()) View(Fraud_check) #As per the condition, we need to consider individuals who have taxable_income <= 30000 as "Risky" and others are "Good" #Hence we have to make Taxable_Income as categorical. Cat_Taxable.Income <- cut(Fraud_check$Taxable.Income, breaks = c(0,30000,100000),la...
/Fraud_Check.R
no_license
SD346/Fraud-check-using-Decision-Trees
R
false
false
1,194
r
Fraud_check <- read.csv(choose.files()) View(Fraud_check) #As per the condition, we need to consider individuals who have taxable_income <= 30000 as "Risky" and others are "Good" #Hence we have to make Taxable_Income as categorical. Cat_Taxable.Income <- cut(Fraud_check$Taxable.Income, breaks = c(0,30000,100000),la...
#Exe 04 #Cheese - Price Elasticity Modeling #Demand Curve Function #================================================================ # Cheese: Hierarchical Model Gibbs Sampler ====================== #================================================================ gibbs.cheese = function(y,X,idx,muB,V,C,d,iter=11000...
/Exercise_4/exe4_FUNCTIONS_cheese.r
no_license
amberiii/Stats-Modelling2-sp19
R
false
false
5,426
r
#Exe 04 #Cheese - Price Elasticity Modeling #Demand Curve Function #================================================================ # Cheese: Hierarchical Model Gibbs Sampler ====================== #================================================================ gibbs.cheese = function(y,X,idx,muB,V,C,d,iter=11000...
/perceptron/preprocessing.R
no_license
HoltechHard/Machine_Learning-1-Classification
R
false
false
2,181
r