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
predict_click = function() { # Read data train <- read.csv("train.csv") test <- read.csv("test.csv") train_labels <- read.csv("train.labels.csv") # Refine train for(col_name in names(train)) { train[[col_name]] <- as.numeric(train[[col_name]]) train[[col_name]][is.na(train[[col_name]])] <- 0 } ...
/predict_click.R
no_license
onidzelskyi/LoopMe
R
false
false
1,476
r
predict_click = function() { # Read data train <- read.csv("train.csv") test <- read.csv("test.csv") train_labels <- read.csv("train.labels.csv") # Refine train for(col_name in names(train)) { train[[col_name]] <- as.numeric(train[[col_name]]) train[[col_name]][is.na(train[[col_name]])] <- 0 } ...
#' Authorize googledrive #' #' Authorize googledrive to view and manage your Drive files. By default, you #' are directed to a web browser, asked to sign in to your Google account, and #' to grant googledrive (the tidyverse, actually) permission to operate on your #' behalf with Google Drive. By default, these user cre...
/R/docs-auth.R
permissive
noamross/googledocs
R
false
false
10,566
r
#' Authorize googledrive #' #' Authorize googledrive to view and manage your Drive files. By default, you #' are directed to a web browser, asked to sign in to your Google account, and #' to grant googledrive (the tidyverse, actually) permission to operate on your #' behalf with Google Drive. By default, these user cre...
trainX<-read.table("train/X_train.txt") trainY<-read.table("train/y_train.txt") trainSubj<-read.table("train/subject_train.txt") testX<-read.table("test/X_test.txt") testY<-read.table("test/y_test.txt") testSubj<-read.table("test/subject_test.txt") X<-rbind(testX,trainX) Y<-rbind(testY,trainY) S<-rbind(testSubj,trainS...
/run_analysis.R
no_license
MonikaKatarzyna/p3
R
false
false
968
r
trainX<-read.table("train/X_train.txt") trainY<-read.table("train/y_train.txt") trainSubj<-read.table("train/subject_train.txt") testX<-read.table("test/X_test.txt") testY<-read.table("test/y_test.txt") testSubj<-read.table("test/subject_test.txt") X<-rbind(testX,trainX) Y<-rbind(testY,trainY) S<-rbind(testSubj,trainS...
#' Create an htmlwidget that shows differences between files or directories #' #' This function can be used for viewing differences between current test #' results and the expected results #' #' @param old,new Names of the old and new directories to compare. #' Alternatively, they can be a character vectors of specif...
/R/view-diff.R
permissive
jbkunst/diffviewer
R
false
false
2,175
r
#' Create an htmlwidget that shows differences between files or directories #' #' This function can be used for viewing differences between current test #' results and the expected results #' #' @param old,new Names of the old and new directories to compare. #' Alternatively, they can be a character vectors of specif...
#Block diagonal model, blocks of highly correlated predictors library(glmnet) library(psych) library(MASS) library(gplots) #some initialization set.seed(09162016) q = .01 n=1000 p=100 err.sigma = 1.5 S0 = seq(1:30) #true active set true.beta <- c(rep(2,30),rep(0,70)) varMat = matrix(1,10,10) for(i in 1:10) for(j i...
/BlockModels/OverlapBlock.R
no_license
niharikag/DPPCode
R
false
false
2,467
r
#Block diagonal model, blocks of highly correlated predictors library(glmnet) library(psych) library(MASS) library(gplots) #some initialization set.seed(09162016) q = .01 n=1000 p=100 err.sigma = 1.5 S0 = seq(1:30) #true active set true.beta <- c(rep(2,30),rep(0,70)) varMat = matrix(1,10,10) for(i in 1:10) for(j i...
# Setup the environment ---- dLetters <- c("A"="A","B"="B","C"="C","D"="D","E"="E","F"="F","G"="G", "H"="H","I"="I","J"="J","K"="K","L"="L","M"="M","N"="N", "O"="O","P"="P","Q"="Q","R"="R","S"="S","T"="T","U"="U", "V"="V","W"="W","X"="X","Y"="Y","Z"="Z") ed_all <- c(244, 245, ...
/ui.R
no_license
cbulmer/BC_soil_map
R
false
false
3,436
r
# Setup the environment ---- dLetters <- c("A"="A","B"="B","C"="C","D"="D","E"="E","F"="F","G"="G", "H"="H","I"="I","J"="J","K"="K","L"="L","M"="M","N"="N", "O"="O","P"="P","Q"="Q","R"="R","S"="S","T"="T","U"="U", "V"="V","W"="W","X"="X","Y"="Y","Z"="Z") ed_all <- c(244, 245, ...
#Necesita para correr en Google Cloud #64 GB de memoria RAM #256 GB de espacio en el disco local #8 vCPU #limpio la memoria rm( list=ls() ) gc() library( "data.table" ) setwd( "~/buckets/b1/" ) #lectura rapida del dataset usando fread de la libreria data.table dataset <- fread( "./datasetsOri/paquete_premium.cs...
/clasesGustavo/TareasHogar/Tarea20210924/746_corrige_fe.r
no_license
gerbeldo/labo2021
R
false
false
11,545
r
#Necesita para correr en Google Cloud #64 GB de memoria RAM #256 GB de espacio en el disco local #8 vCPU #limpio la memoria rm( list=ls() ) gc() library( "data.table" ) setwd( "~/buckets/b1/" ) #lectura rapida del dataset usando fread de la libreria data.table dataset <- fread( "./datasetsOri/paquete_premium.cs...
make_data_hmm <- function(brmshmmdata) { d <- validate_brmshmmdata(brmshmmdata) formula_processed <- d$formula serie_data <- d$serie_data rate_data <- d$rate_data hidden_state_data <- d$hidden_state_data observed_state_data <- d$observed_state_data N_states_hidden <- length(unique(c(rate_data$.from, rat...
/R/make_standata_hmm.R
permissive
cas-bioinf/covid19retrospective
R
false
false
4,460
r
make_data_hmm <- function(brmshmmdata) { d <- validate_brmshmmdata(brmshmmdata) formula_processed <- d$formula serie_data <- d$serie_data rate_data <- d$rate_data hidden_state_data <- d$hidden_state_data observed_state_data <- d$observed_state_data N_states_hidden <- length(unique(c(rate_data$.from, rat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lipdScrubber.R \name{getVals} \alias{getVals} \title{Get values for replacement from a converter} \usage{ getVals(key, conv) } \description{ Get values for replacement from a converter }
/man/getVals.Rd
no_license
nickmckay/lipdverseR
R
false
true
265
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lipdScrubber.R \name{getVals} \alias{getVals} \title{Get values for replacement from a converter} \usage{ getVals(key, conv) } \description{ Get values for replacement from a converter }
bitmap('../images/show-pDIST-and-qDIST.jpg', type="png256", width=10, height=7, res=300, pointsize=14) z <- seq(-4, 4, 0.01) cumulative.norm = pnorm(z) par(mar=c(4.2, 4.2, 0.2, 1)) plot(z, cumulative.norm, type="l", xlab="z", main="", ylab="Cumulative area under probability distribution", cex.lab=1.5, cex.ma...
/r-tutorial/code/show-pDIST-and-qDIST.R
no_license
kgdunn/matlab-R-tutorial
R
false
false
745
r
bitmap('../images/show-pDIST-and-qDIST.jpg', type="png256", width=10, height=7, res=300, pointsize=14) z <- seq(-4, 4, 0.01) cumulative.norm = pnorm(z) par(mar=c(4.2, 4.2, 0.2, 1)) plot(z, cumulative.norm, type="l", xlab="z", main="", ylab="Cumulative area under probability distribution", cex.lab=1.5, cex.ma...
##Inverse martrix calculations are often slow and computational costly. ##Inverse Matrices can be solved using the solve() function in R but the ##following two functions provide an alternative implementation to solve for ##inverse matrices. The first creates an object to a store a matrix and its ##inverse in a cache...
/cachematrix.R
no_license
dbrak/ProgrammingAssignment2
R
false
false
1,535
r
##Inverse martrix calculations are often slow and computational costly. ##Inverse Matrices can be solved using the solve() function in R but the ##following two functions provide an alternative implementation to solve for ##inverse matrices. The first creates an object to a store a matrix and its ##inverse in a cache...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shape.R, R/arc_bar.R, R/arc.R, R/autodensity.R, % R/autohistogram.R, R/bezier.R, R/bspline.R, R/bspline_closed.R, R/circle.R, % R/diagonal.R, R/diagonal_wide.R, R/ellipse.R, R/facet_grid_paginate.R, % R/facet_matrix.R, R/facet_row.R, R/...
/man/ggforce-extensions.Rd
permissive
teunbrand/ggforce
R
false
true
2,316
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shape.R, R/arc_bar.R, R/arc.R, R/autodensity.R, % R/autohistogram.R, R/bezier.R, R/bspline.R, R/bspline_closed.R, R/circle.R, % R/diagonal.R, R/diagonal_wide.R, R/ellipse.R, R/facet_grid_paginate.R, % R/facet_matrix.R, R/facet_row.R, R/...
printz <- function (x, file = "", col.name.align = "cen", col.txt.align = "right", cell.align = "cen", hsep = "|", vsep = "-", csep = "+", row.names = TRUE, col.names = FALSE, append = FALSE, top.border = TRUE, left.border = TRUE, ...) { ndimn <- names(dimnames(x)) rownames <- dimnames(x)[[1]] ...
/R/printz.R
no_license
gvdovandzung/thongke
R
false
false
5,842
r
printz <- function (x, file = "", col.name.align = "cen", col.txt.align = "right", cell.align = "cen", hsep = "|", vsep = "-", csep = "+", row.names = TRUE, col.names = FALSE, append = FALSE, top.border = TRUE, left.border = TRUE, ...) { ndimn <- names(dimnames(x)) rownames <- dimnames(x)[[1]] ...
# Transform variables by rescaling. # The 'reshape' package provides the 'rescaler' function. require(reshape, quietly=TRUE) # Rescale Sepal.Length. crs$dataset[["RMD_Sepal.Length"]] <- crs$dataset[["Sepal.Length"]] # Rescale by subtracting median and dividing by median abs deviation. if (building) { crs$dataset[["R...
/Transform/Rescale/normalize/-median.R
no_license
jimcrozier/rattle
R
false
false
1,037
r
# Transform variables by rescaling. # The 'reshape' package provides the 'rescaler' function. require(reshape, quietly=TRUE) # Rescale Sepal.Length. crs$dataset[["RMD_Sepal.Length"]] <- crs$dataset[["Sepal.Length"]] # Rescale by subtracting median and dividing by median abs deviation. if (building) { crs$dataset[["R...
#' Create progress bar. #' #' Create progress bar object from text string. #' #' Progress bars give feedback on how apply step is proceeding. This #' is mainly useful for long running functions, as for short functions, the #' time taken up by splitting and combining may be on the same order (or #' longer) as the apply...
/R/progress.r
no_license
tentacles-from-outer-space/plyr
R
false
false
5,280
r
#' Create progress bar. #' #' Create progress bar object from text string. #' #' Progress bars give feedback on how apply step is proceeding. This #' is mainly useful for long running functions, as for short functions, the #' time taken up by splitting and combining may be on the same order (or #' longer) as the apply...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_shiny.fosr.R \name{plot_shiny.fosr} \alias{plot_shiny.fosr} \title{Interactive Plotting for Functional-on-Scalar Regressions} \usage{ \method{plot_shiny}{fosr}(obj, xlab = "", ylab = "", title = "", ...) } \arguments{ \item{obj}{fosr obj...
/man/plot_shiny.fosr.Rd
no_license
refunders/refund.shiny
R
false
true
863
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_shiny.fosr.R \name{plot_shiny.fosr} \alias{plot_shiny.fosr} \title{Interactive Plotting for Functional-on-Scalar Regressions} \usage{ \method{plot_shiny}{fosr}(obj, xlab = "", ylab = "", title = "", ...) } \arguments{ \item{obj}{fosr obj...
#' @title Calculate on-target sgRNA activity scores for Cas9 using Azimuth #' @description Calculate on-target sgRNA activity scores for #' CRISPR/Cas9-induced knockout using the Azimuth scoring method. #' The Azimuth algorithm is an improvement upon the commonly-used #' 'Rule Set 2', also developed by the ...
/R/getAzimuthScores.R
permissive
crisprVerse/crisprScore
R
false
false
3,641
r
#' @title Calculate on-target sgRNA activity scores for Cas9 using Azimuth #' @description Calculate on-target sgRNA activity scores for #' CRISPR/Cas9-induced knockout using the Azimuth scoring method. #' The Azimuth algorithm is an improvement upon the commonly-used #' 'Rule Set 2', also developed by the ...
CBA <- function(formula, data, support = 0.2, confidence = 0.8, verbose = FALSE, parameter = NULL, control = NULL, sort.parameter = NULL, lhs.support = FALSE, disc.method = "mdlp"){ return(CBA.internal(formula, data, method="CBA", support = support, confidence = confidence, verbose=FALSE, parameter = NULL, c...
/R/CBA.R
no_license
ToniJulia/arulesCBA
R
false
false
7,430
r
CBA <- function(formula, data, support = 0.2, confidence = 0.8, verbose = FALSE, parameter = NULL, control = NULL, sort.parameter = NULL, lhs.support = FALSE, disc.method = "mdlp"){ return(CBA.internal(formula, data, method="CBA", support = support, confidence = confidence, verbose=FALSE, parameter = NULL, c...
#' Expand a bounding box #' #' Takes a bounding box and returns a new bounding box with a size #' expanded or contracted by a factor of X. #' #' @export #' @param bbox a bounding box #' @param factor the ratio of the new bbox to the input bbox #' @family measurements #' @return the resized bbox, numeric vector of lengt...
/lawn/R/size.R
no_license
ingted/R-Examples
R
false
false
627
r
#' Expand a bounding box #' #' Takes a bounding box and returns a new bounding box with a size #' expanded or contracted by a factor of X. #' #' @export #' @param bbox a bounding box #' @param factor the ratio of the new bbox to the input bbox #' @family measurements #' @return the resized bbox, numeric vector of lengt...
#IODS week 6, 5th of December 2019 #Maija Nuppunen-Puputti #Load in needed packages: library(dplyr) library(tidyr) #Reading in the data in wide form: #BPRS BPRS <- read.table("https://raw.githubusercontent.com/KimmoVehkalahti/MABS/master/Examples/data/BPRS.txt", sep =" ", header = TRUE) names(BPRS) str (BPRS) dim(...
/data/meet_and_repeat.R
no_license
mnpuputti/IODS-project
R
false
false
2,006
r
#IODS week 6, 5th of December 2019 #Maija Nuppunen-Puputti #Load in needed packages: library(dplyr) library(tidyr) #Reading in the data in wide form: #BPRS BPRS <- read.table("https://raw.githubusercontent.com/KimmoVehkalahti/MABS/master/Examples/data/BPRS.txt", sep =" ", header = TRUE) names(BPRS) str (BPRS) dim(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/betydb.R \name{betydb} \alias{betydb} \alias{betydb_citation} \alias{betydb_search} \alias{betydb_site} \alias{betydb_specie} \alias{betydb_trait} \title{Search for traits from BETYdb} \usage{ betydb_search(query = "Maple SLA", fmt = "json", ...
/man/betydb.Rd
permissive
MMesbahU/traits
R
false
true
2,476
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/betydb.R \name{betydb} \alias{betydb} \alias{betydb_citation} \alias{betydb_search} \alias{betydb_site} \alias{betydb_specie} \alias{betydb_trait} \title{Search for traits from BETYdb} \usage{ betydb_search(query = "Maple SLA", fmt = "json", ...
library(MConjoint) ### Name: mc.mean.over.design.utils ### Title: mean over design functions ### Aliases: mc.mean.over.design.utils mc.mean.over.design.imps ### Keywords: multivariate ### ** Examples data(hire.despack) data(hire.data) hire.despack=mc.despack.linear.conjoint(hire.despack,hire.data) hire.despack=mc.d...
/data/genthat_extracted_code/MConjoint/examples/mc.mean.over.design.utils.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
501
r
library(MConjoint) ### Name: mc.mean.over.design.utils ### Title: mean over design functions ### Aliases: mc.mean.over.design.utils mc.mean.over.design.imps ### Keywords: multivariate ### ** Examples data(hire.despack) data(hire.data) hire.despack=mc.despack.linear.conjoint(hire.despack,hire.data) hire.despack=mc.d...
#check on kmat dimensions setwd("~/Projects/BcAt_RNAGWAS/data/GEMMA_eachAt_Bc") myped <- read.table("01_PLINK/dpbinMAF20NA10.ped") myfam <- read.table("01_PLINK/binMAF20NA10.fam") #only 95 isos #mymap <- read.table("01_PLINK/dpbinMAF20NA10.map") #does not include isolate IDs
/scripts/temp_checkKMATisos.R
no_license
nicolise/BcAt_RNAGWAS
R
false
false
276
r
#check on kmat dimensions setwd("~/Projects/BcAt_RNAGWAS/data/GEMMA_eachAt_Bc") myped <- read.table("01_PLINK/dpbinMAF20NA10.ped") myfam <- read.table("01_PLINK/binMAF20NA10.fam") #only 95 isos #mymap <- read.table("01_PLINK/dpbinMAF20NA10.map") #does not include isolate IDs
## Modeling differential selection between genotypes ## ## Stable equilibrium, mean fitness = 1. Genotype fitnesses: #w.AA = 1-t #w.Aa = 1-s #w.aa = (1-p^2(1-t)-2*p*q*(1-s))/q^2 #### Solving for selection against heterozygotes #### ## Input = p for given population hetsel = function(p,t){ a = p*t b = 3*(1-p) s=...
/hetsel_sbound.R
no_license
ETattersall/EMD_code
R
false
false
7,691
r
## Modeling differential selection between genotypes ## ## Stable equilibrium, mean fitness = 1. Genotype fitnesses: #w.AA = 1-t #w.Aa = 1-s #w.aa = (1-p^2(1-t)-2*p*q*(1-s))/q^2 #### Solving for selection against heterozygotes #### ## Input = p for given population hetsel = function(p,t){ a = p*t b = 3*(1-p) s=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summarize_scores.R \name{summarize_scores} \alias{summarize_scores} \title{Summarize a default set of assessments into a single risk score} \usage{ summarize_scores(data, weights = .risk_weights) } \arguments{ \item{data}{a \code{\link[tibble...
/man/summarize_scores.Rd
permissive
marlycormar/riskmetric
R
false
true
1,052
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summarize_scores.R \name{summarize_scores} \alias{summarize_scores} \title{Summarize a default set of assessments into a single risk score} \usage{ summarize_scores(data, weights = .risk_weights) } \arguments{ \item{data}{a \code{\link[tibble...
# -- dwj : October 29th 2018 # ----------------------------------------------------------------- # Functions for calibration curves Calibrate.Bins <- function( obs, pred, ref.level, break.levels = 11 ) { # Computes a calibration curve by equal-width bins over the predicted probability range # # Arguments: # ...
/Code/support_functions.R
no_license
danwjoyce/summ-performance
R
false
false
6,090
r
# -- dwj : October 29th 2018 # ----------------------------------------------------------------- # Functions for calibration curves Calibrate.Bins <- function( obs, pred, ref.level, break.levels = 11 ) { # Computes a calibration curve by equal-width bins over the predicted probability range # # Arguments: # ...
# Install library pylr and data.table install.packages("plyr") install.packages("data.table") # Load library pylr and data.table library("plyr") library("data.table") # Create URL location dataset_url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" # Download file to ...
/run_analysis.R
no_license
narasimhankv/Project-Getting-and-Cleaning-Data
R
false
false
3,287
r
# Install library pylr and data.table install.packages("plyr") install.packages("data.table") # Load library pylr and data.table library("plyr") library("data.table") # Create URL location dataset_url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" # Download file to ...
# Script to analyse roi-roi functional connectivity in the Stockholm Sleepy Brain Project # Gustav Nilsonne 2015-11-11 ###################### # Require packages require(nlme) require(lattice) require(effects) ###################### # List of investigated roi:s #'/data/stress/Resting_State/ROI/de Havas/LIPL.nii' #...
/Resting State/ROI_connectivity/RestingState_SeedBasedConnectivity.R
no_license
AnJK13/SleepyBrain-Analyses
R
false
false
36,211
r
# Script to analyse roi-roi functional connectivity in the Stockholm Sleepy Brain Project # Gustav Nilsonne 2015-11-11 ###################### # Require packages require(nlme) require(lattice) require(effects) ###################### # List of investigated roi:s #'/data/stress/Resting_State/ROI/de Havas/LIPL.nii' #...
library(ISLR) library(class) library(ggplot2) attach(Smarket) train=Smarket$Year<2005 train[1:10] test=!train training_data=Smarket[train,-8] testing_data=Smarket[test,-8] training_y=Direction[test] head(Smarket) #KNN Smarket_scaled <- scale(Smarket[,-c(8,9)]) response <- knn(Smarket_scaled[train,], ...
/LDA QDA.R
no_license
eslh2050/Machine-Learning
R
false
false
1,474
r
library(ISLR) library(class) library(ggplot2) attach(Smarket) train=Smarket$Year<2005 train[1:10] test=!train training_data=Smarket[train,-8] testing_data=Smarket[test,-8] training_y=Direction[test] head(Smarket) #KNN Smarket_scaled <- scale(Smarket[,-c(8,9)]) response <- knn(Smarket_scaled[train,], ...
library(stringi) library(NLP) library(tm) library(ggplot2) library(RWeka) library(reshape2) library(slam) setwd("/home/bahar/projects/NextWord") corpusblogs <- readRDS(file = "./blogsCorpus0.4.RData") corpusnews <- readRDS(file ="./newsCorpus0.4.RData") corpustwitter <- readRDS(file ="./twitterCorpus0.3.RData") ...
/tokenize.R
no_license
beghtesadi/NextWordPrediction
R
false
false
2,173
r
library(stringi) library(NLP) library(tm) library(ggplot2) library(RWeka) library(reshape2) library(slam) setwd("/home/bahar/projects/NextWord") corpusblogs <- readRDS(file = "./blogsCorpus0.4.RData") corpusnews <- readRDS(file ="./newsCorpus0.4.RData") corpustwitter <- readRDS(file ="./twitterCorpus0.3.RData") ...
library(qtl) library(snowfall) load("/share/malooflab/Ruijuan/F2/QTL_analysis/data/LG.f2.after.crossover.43traits.Rdata") LG.f2.after.crossover <- sim.geno(LG.f2.after.crossover,step=1,n.draws=32) LG.f2.after.crossover <- calc.genoprob(LG.f2.after.crossover,step=1) sfInit(parallel = TRUE, cpus = 16) sfExport("LG.f2....
/F2/scantwo/scantwo_perm_11.8.R
no_license
leejimmy93/KIAT_cabernet
R
false
false
750
r
library(qtl) library(snowfall) load("/share/malooflab/Ruijuan/F2/QTL_analysis/data/LG.f2.after.crossover.43traits.Rdata") LG.f2.after.crossover <- sim.geno(LG.f2.after.crossover,step=1,n.draws=32) LG.f2.after.crossover <- calc.genoprob(LG.f2.after.crossover,step=1) sfInit(parallel = TRUE, cpus = 16) sfExport("LG.f2....
# Source: https://stackoverflow.com/questions/35559742/reqexecutions-ibrokers-package twsExecution <- function( execId = NA_character_, time = NA_character_, acctNumber = NA_character_, exchange = NA_character_, ...
/Functions/F.Additional.IB.R
no_license
ishonest/0615
R
false
false
8,568
r
# Source: https://stackoverflow.com/questions/35559742/reqexecutions-ibrokers-package twsExecution <- function( execId = NA_character_, time = NA_character_, acctNumber = NA_character_, exchange = NA_character_, ...
library("data.table") setwd("~/Coursera/Course4 Assignment1") electricpowerDT <- data.table::fread(input = "household_power_consumption.txt" , na.strings="?" ) electricpowerDT[, Global_active_power := lapply(.SD, as.numeric), .SDcols = c("Global_active_power")] electri...
/plot1.R
no_license
jteysh/ExData_Plotting1
R
false
false
686
r
library("data.table") setwd("~/Coursera/Course4 Assignment1") electricpowerDT <- data.table::fread(input = "household_power_consumption.txt" , na.strings="?" ) electricpowerDT[, Global_active_power := lapply(.SD, as.numeric), .SDcols = c("Global_active_power")] electri...
testlist <- list(b = c(-1667457984L, 156L, 67964173L, 67964173L, -1835887972L )) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
/mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613109120-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
147
r
testlist <- list(b = c(-1667457984L, 156L, 67964173L, 67964173L, -1835887972L )) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bone_data.R \docType{data} \name{bone_data} \alias{bone_data} \title{Spinal bone relative mineral density} \format{ A dataframe with four columns: \describe{ \item{\code{idnum}}{ID of the child} \item{\code{age}}{age} \item{\...
/man/bone_data.Rd
no_license
cran/JOPS
R
false
true
1,171
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bone_data.R \docType{data} \name{bone_data} \alias{bone_data} \title{Spinal bone relative mineral density} \format{ A dataframe with four columns: \describe{ \item{\code{idnum}}{ID of the child} \item{\code{age}}{age} \item{\...
# Inclusion of participants # 8 participants misunderstood/did not follow instructions at session 1. # Of those 4 participants did not either follow the instructions at session 2. # All together 12 sessions will be removed from all analyses. This applies for both behavioural and imaging outcomes. # Dubject X, sessi...
/ARROWS/Behavioural_measures.R
no_license
AnJK13/SleepyBrain-Analyses
R
false
false
20,818
r
# Inclusion of participants # 8 participants misunderstood/did not follow instructions at session 1. # Of those 4 participants did not either follow the instructions at session 2. # All together 12 sessions will be removed from all analyses. This applies for both behavioural and imaging outcomes. # Dubject X, sessi...
library(qdap) ### Name: all_words ### Title: Searches Text Column for Words ### Aliases: all_words ### ** Examples ## Not run: ##D x1 <- all_words(raj$dialogue, begins.with="re") ##D head(x1, 10) ##D x2 <- all_words(raj$dialogue, "q") ##D head(x2, 10) ##D all_words(raj$dialogue, contains="conc") ##D x3 <- all_word...
/data/genthat_extracted_code/qdap/examples/all_words.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
657
r
library(qdap) ### Name: all_words ### Title: Searches Text Column for Words ### Aliases: all_words ### ** Examples ## Not run: ##D x1 <- all_words(raj$dialogue, begins.with="re") ##D head(x1, 10) ##D x2 <- all_words(raj$dialogue, "q") ##D head(x2, 10) ##D all_words(raj$dialogue, contains="conc") ##D x3 <- all_word...
source("data.R") doPlot2 <- function() { tbl <- ExData() png(filename = "plot2.png", width = 480, height = 480, units = "px") plot(tbl$DateTime, tbl$Global_active_power, type="l", xlab="", ylab="Global Active Power (kilowatts)") dev.off() } doPlot2()
/plot2.r
no_license
labbyjr/ExData_Plotting1
R
false
false
269
r
source("data.R") doPlot2 <- function() { tbl <- ExData() png(filename = "plot2.png", width = 480, height = 480, units = "px") plot(tbl$DateTime, tbl$Global_active_power, type="l", xlab="", ylab="Global Active Power (kilowatts)") dev.off() } doPlot2()
##' Fits a binary mixture of linear models in which the probability of ##' class membership is related to the covariates through a probit ##' regression model. ##' ##' The model assumes the observations are drawn from a two component ##' mixture, where each component is described by a different linear ##' model. The p...
/R/bmixlm.R
no_license
SWotherspoon/bmixlm
R
false
false
30,154
r
##' Fits a binary mixture of linear models in which the probability of ##' class membership is related to the covariates through a probit ##' regression model. ##' ##' The model assumes the observations are drawn from a two component ##' mixture, where each component is described by a different linear ##' model. The p...
sink("diagnostics/reg_lmer.txt") library(lme4) library(nortest) library(RPostgreSQL) drv <- dbDriver("PostgreSQL") con <- dbConnect(drv,host="localhost",port="5432",dbname="basketball") query <- dbSendQuery(con, " select r.game_id, r.year, r.field as field, ( case when r.field='offense_home' then r.team_id::text...
/ncaa_sr/sos_reg/lmer.R
permissive
maxiledesmacba/basketball
R
false
false
3,142
r
sink("diagnostics/reg_lmer.txt") library(lme4) library(nortest) library(RPostgreSQL) drv <- dbDriver("PostgreSQL") con <- dbConnect(drv,host="localhost",port="5432",dbname="basketball") query <- dbSendQuery(con, " select r.game_id, r.year, r.field as field, ( case when r.field='offense_home' then r.team_id::text...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/leqtar_genotypes_to_frequencies.R \name{leqtar_genotypes_to_frequencies} \alias{leqtar_genotypes_to_frequencies} \title{leqtar_genotypes_to_frequencies} \usage{ leqtar_genotypes_to_frequencies(snps, VERBOSE = F) } \arguments{ \item{snps}{the ...
/man/leqtar_genotypes_to_frequencies.Rd
no_license
ErikSchutte/leqtar
R
false
true
565
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/leqtar_genotypes_to_frequencies.R \name{leqtar_genotypes_to_frequencies} \alias{leqtar_genotypes_to_frequencies} \title{leqtar_genotypes_to_frequencies} \usage{ leqtar_genotypes_to_frequencies(snps, VERBOSE = F) } \arguments{ \item{snps}{the ...
# Title : Twitter API Scraping # Objective : To Scrap Twitter with API # Step 1: Install and load rtweet package install.packages(rtweet) library(rtweet) install.packages(devtools) library(devtools) #install_github("mkearney/rtweet") library(rtweet) # Step 2: API Authorization # With access to...
/Twitter_API_Scraping (Homework).R
no_license
kartikashanti/Homework--Monday--August-19--2019-
R
false
false
2,425
r
# Title : Twitter API Scraping # Objective : To Scrap Twitter with API # Step 1: Install and load rtweet package install.packages(rtweet) library(rtweet) install.packages(devtools) library(devtools) #install_github("mkearney/rtweet") library(rtweet) # Step 2: API Authorization # With access to...
nat_fig_function=function(country_clicked){ COUNTRY_TEXT=tbl(mig_db,"admin_names")%>% collect(n=Inf)%>% filter(ISO==country_clicked)%>% distinct(COUNTRY_NAME)%>% top_n(1) nat_fig=tbl(mig_db,"nat_fig")%>% collect(n=Inf)%>% filter(ISO==country_clicked) format_k=function(x){ ...
/function/bin/nat_fig_function.R
no_license
Flowminder/FDFA_01
R
false
false
4,957
r
nat_fig_function=function(country_clicked){ COUNTRY_TEXT=tbl(mig_db,"admin_names")%>% collect(n=Inf)%>% filter(ISO==country_clicked)%>% distinct(COUNTRY_NAME)%>% top_n(1) nat_fig=tbl(mig_db,"nat_fig")%>% collect(n=Inf)%>% filter(ISO==country_clicked) format_k=function(x){ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compactProject.R, R/project.R \name{submitters,compactProjectSummary-method} \alias{submitters,compactProjectSummary-method} \title{Returns a submitters} \usage{ \S4method{submitters}{compactProjectSummary}(object) \S4method{submitters}{comp...
/man/submitters-compactProjectSummary-method.Rd
no_license
booker-tremayne/new-prideR
R
false
true
538
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compactProject.R, R/project.R \name{submitters,compactProjectSummary-method} \alias{submitters,compactProjectSummary-method} \title{Returns a submitters} \usage{ \S4method{submitters}{compactProjectSummary}(object) \S4method{submitters}{comp...
## ---- echo = FALSE, message = FALSE------------------------------------------- knitr::opts_chunk$set(collapse = T, comment = "#>") options(tibble.print_min = 4L, tibble.print_max = 4L) set.seed(1014) ## ----setup, message = FALSE--------------------------------------------------- library(dplyr) ## ---- results = FA...
/packrat/lib/x86_64-apple-darwin17.0/4.0.2/dplyr/doc/programming.R
permissive
avanlinden/bovid-FEA-results
R
false
false
5,061
r
## ---- echo = FALSE, message = FALSE------------------------------------------- knitr::opts_chunk$set(collapse = T, comment = "#>") options(tibble.print_min = 4L, tibble.print_max = 4L) set.seed(1014) ## ----setup, message = FALSE--------------------------------------------------- library(dplyr) ## ---- results = FA...
deconstruct_and_eval <- function(expr, envir = parent.frame(), enclos = parent.frame()) { if (!mode(expr) %in% c("call", "expression", "(")) return(expr) # Fix for #774. # the only place where a call is of length 1, that I can think of is # a function call with empty arguments: e.g., a[[1L]]() or a$b()...
/R/data.table.R
no_license
scipionesarlo/data.table
R
false
false
133,767
r
deconstruct_and_eval <- function(expr, envir = parent.frame(), enclos = parent.frame()) { if (!mode(expr) %in% c("call", "expression", "(")) return(expr) # Fix for #774. # the only place where a call is of length 1, that I can think of is # a function call with empty arguments: e.g., a[[1L]]() or a$b()...
currentLevelsFunds = function(funds, FUN = "VaR", p=0.98, width = 126, method = "modified", model = "historical", weights = NULL, subs.o=NULL, mode = "percent") { if(model == "weights") { if(is.null(subs.o)) subs.o = organizeSubs() if(is.null(weights)) weights = getWeights(subs.o) ...
/Functions/currentLevelsFunds.R
no_license
bplloyd/R-risk-mgmt
R
false
false
685
r
currentLevelsFunds = function(funds, FUN = "VaR", p=0.98, width = 126, method = "modified", model = "historical", weights = NULL, subs.o=NULL, mode = "percent") { if(model == "weights") { if(is.null(subs.o)) subs.o = organizeSubs() if(is.null(weights)) weights = getWeights(subs.o) ...
rm(list=ls()) library(here) library(tidyverse) library(simcausal) library(simhelpers) #Truncated continious rnorm_trunc <- function(n, mean, sd, minval = 17){ out <- rnorm(n = n, mean = mean, sd = sd) minval <- minval[1] out[out < minval] <- minval out } #Load DAG and simulation results load(here("results...
/src/simulation_performance_RD.R
no_license
amertens/diabetes-dementia-TL-roadmap
R
false
false
3,442
r
rm(list=ls()) library(here) library(tidyverse) library(simcausal) library(simhelpers) #Truncated continious rnorm_trunc <- function(n, mean, sd, minval = 17){ out <- rnorm(n = n, mean = mean, sd = sd) minval <- minval[1] out[out < minval] <- minval out } #Load DAG and simulation results load(here("results...
get_catalog_pns <- function( data_name = "pns" , output_dir , ... ){ catalog <- NULL year_listing <- readLines( textConnection( RCurl::getURL( "ftp://ftp.ibge.gov.br/PNS/" ) ) ) ay <- rev( gsub( "(.*) (.*)" , "\\2" , year_listing ) ) suppressWarnings( available_years <- ay[ as.numeric( ay ) %in% ay ] ) ...
/R/pns.R
no_license
floswald/lodown
R
false
false
7,374
r
get_catalog_pns <- function( data_name = "pns" , output_dir , ... ){ catalog <- NULL year_listing <- readLines( textConnection( RCurl::getURL( "ftp://ftp.ibge.gov.br/PNS/" ) ) ) ay <- rev( gsub( "(.*) (.*)" , "\\2" , year_listing ) ) suppressWarnings( available_years <- ay[ as.numeric( ay ) %in% ay ] ) ...
require(phylotate) require(phangorn) require(rwty) require(phytools) require(tidyverse) require(geiger) require(beanplot) require(FossilSim) require(ggtree) library(devtools) require(RevGadgets) require(tidytree) require(ggridges) cynthwave <- c("#FFA9E7", "#FF84E8", "#7F2CCB", "#414361", "#2A2D43") windwaker <- c("#1...
/params.R
no_license
keaghanjames/Chapter_Three_Thesis
R
false
false
9,678
r
require(phylotate) require(phangorn) require(rwty) require(phytools) require(tidyverse) require(geiger) require(beanplot) require(FossilSim) require(ggtree) library(devtools) require(RevGadgets) require(tidytree) require(ggridges) cynthwave <- c("#FFA9E7", "#FF84E8", "#7F2CCB", "#414361", "#2A2D43") windwaker <- c("#1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/2DLTfunctions mixture.r \name{h.const} \alias{h.const} \title{Detection hazard function \code{h.const} prob(detect | available at x,y)} \usage{ h.const(y, x, b = 1) } \arguments{ \item{y}{Forward distance} \item{x}{perpendicular distance} \...
/LT2D/man/h.const.Rd
no_license
calliste-fagard-jenkin/LT2D-work
R
false
true
677
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/2DLTfunctions mixture.r \name{h.const} \alias{h.const} \title{Detection hazard function \code{h.const} prob(detect | available at x,y)} \usage{ h.const(y, x, b = 1) } \arguments{ \item{y}{Forward distance} \item{x}{perpendicular distance} \...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculations.R \name{calc_obs_props} \alias{calc_obs_props} \title{Calculate proportions from observation counts} \usage{ calc_obs_props(obj, data, cols = NULL, groups = NULL, other_cols = FALSE, out_names = NULL, dataset = NULL) } \argumen...
/man/calc_obs_props.Rd
permissive
robindang0573/metacoder
R
false
true
3,904
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculations.R \name{calc_obs_props} \alias{calc_obs_props} \title{Calculate proportions from observation counts} \usage{ calc_obs_props(obj, data, cols = NULL, groups = NULL, other_cols = FALSE, out_names = NULL, dataset = NULL) } \argumen...
#!/usr/bin/env Rscript # Author: Tim Sterne-Weiler, 2014 # tim.sterne.weiler@utoronto.ca # Updates: Manuel Irimia, 2015-present # mirimia@gmail.com suppressPackageStartupMessages(require(optparse)) option_list <- list( make_option(c("-p", "--prompt"), action="store_true", default=TRUE, type="logical", help="User ...
/install.R
permissive
soberest288/vast-tools
R
false
false
5,120
r
#!/usr/bin/env Rscript # Author: Tim Sterne-Weiler, 2014 # tim.sterne.weiler@utoronto.ca # Updates: Manuel Irimia, 2015-present # mirimia@gmail.com suppressPackageStartupMessages(require(optparse)) option_list <- list( make_option(c("-p", "--prompt"), action="store_true", default=TRUE, type="logical", help="User ...
#' manifestoR R package #' #' Access and process data and documents of the Manifesto Project #' \tabular{ll}{ #' Package: \tab manifestoR\cr #' Type: \tab Package\cr #' License: \tab GPL (>= 3)\cr #' LazyLoad: \tab yes\cr #'} #' #' @name manifestoR #' @docType package #' @title Access and process data and documents o...
/R/manifestoR-package.r
no_license
cran/manifestoR
R
false
false
3,046
r
#' manifestoR R package #' #' Access and process data and documents of the Manifesto Project #' \tabular{ll}{ #' Package: \tab manifestoR\cr #' Type: \tab Package\cr #' License: \tab GPL (>= 3)\cr #' LazyLoad: \tab yes\cr #'} #' #' @name manifestoR #' @docType package #' @title Access and process data and documents o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gradDesc_fixed_df.R \name{gradDesc_fixed_df} \alias{gradDesc_fixed_df} \title{Gradient Descent with a fixed number of constant pieces (degrees of freedom)} \usage{ gradDesc_fixed_df( yy, grad, init = stats::median(yy), counts = le...
/man/gradDesc_fixed_df.Rd
no_license
cran/UMR
R
false
true
2,530
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gradDesc_fixed_df.R \name{gradDesc_fixed_df} \alias{gradDesc_fixed_df} \title{Gradient Descent with a fixed number of constant pieces (degrees of freedom)} \usage{ gradDesc_fixed_df( yy, grad, init = stats::median(yy), counts = le...
\name{bergerPeriods} \alias{bergerPeriods} \title{Obliquity and precession periods of Berger et al. (1992)} \description{ Determine the predicted precession and obliquity periods based on Berger et al. (1992). Values are determined by piecewise linear interpolation. } \usage{ bergerPeriods(age,genplot=T) } \arguments{ ...
/man/bergerPeriods.Rd
no_license
cran/astrochron
R
false
false
615
rd
\name{bergerPeriods} \alias{bergerPeriods} \title{Obliquity and precession periods of Berger et al. (1992)} \description{ Determine the predicted precession and obliquity periods based on Berger et al. (1992). Values are determined by piecewise linear interpolation. } \usage{ bergerPeriods(age,genplot=T) } \arguments{ ...
dataFile <- "./data/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") ,] Numeric_globalActivePower <- as.numeric(subSetData$Global_active_power) png("plot1.png", width=480, height=480) ...
/Plot 1.R
no_license
aryalparas/ExData_Plotting1
R
false
false
446
r
dataFile <- "./data/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") ,] Numeric_globalActivePower <- as.numeric(subSetData$Global_active_power) png("plot1.png", width=480, height=480) ...
#################################################### # entropy for din, gdina and mcdina objects entropy.lca <- function( object ){ # posterior <- object$posterior posterior <- object$like data <- object$data weights <- object$control$weights pjk <- object$pjk if ( class(object) == "mcdina" ){ wei...
/CDM/R/entropy.lca.R
no_license
ingted/R-Examples
R
false
false
2,964
r
#################################################### # entropy for din, gdina and mcdina objects entropy.lca <- function( object ){ # posterior <- object$posterior posterior <- object$like data <- object$data weights <- object$control$weights pjk <- object$pjk if ( class(object) == "mcdina" ){ wei...
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
/epiphy/inst/testfiles/costTotCPP/AFL_costTotCPP/costTotCPP_valgrind_files/1615926710-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
1,102
r
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
################################################### ################################################### ########## Libraries ################ ################################################### ################################################### library(shiny) library(shinydashboard) library(tidyverse) li...
/01 Hw1.2/00 Shinny app/ui_v13.R
no_license
Data-Heretic/Intelligent-Data-Analysis
R
false
false
3,140
r
################################################### ################################################### ########## Libraries ################ ################################################### ################################################### library(shiny) library(shinydashboard) library(tidyverse) li...
library(ggplot2) library(tidyr) # Read the data data <- read.csv("uber-raw-data-apr14.csv", header=T) # Create two columns for "Date" and "Time" data <- data %>% separate(Date.Time, c("Date", "Time"), sep=" ") # Create dataset with hours, minutes and seconds separated final_data <- data final_data <- final_data %>%...
/Geolocation/[002]NYC-Uber/01-libraries_and_data_manipulation.R
no_license
romele-stefano/R-scripts
R
false
false
605
r
library(ggplot2) library(tidyr) # Read the data data <- read.csv("uber-raw-data-apr14.csv", header=T) # Create two columns for "Date" and "Time" data <- data %>% separate(Date.Time, c("Date", "Time"), sep=" ") # Create dataset with hours, minutes and seconds separated final_data <- data final_data <- final_data %>%...
## # Sources ## # https://www.kaggle.com/c/titanic # https://www.kaggle.com/c/titanic/forums ## # CONSTANTS ## CHANCES_OF_DEATH = 0.3838 THRESHOLD = 0.5 ## # LOAD DATASET ## titanic <- read.csv("# Competition/data/train.csv") titanic_validation <- read.csv("# Competition/data/test.csv") ## # JOIN TRAINS AND TEST DA...
/random_forest_cv.R
no_license
brunofms/titanic
R
false
false
11,063
r
## # Sources ## # https://www.kaggle.com/c/titanic # https://www.kaggle.com/c/titanic/forums ## # CONSTANTS ## CHANCES_OF_DEATH = 0.3838 THRESHOLD = 0.5 ## # LOAD DATASET ## titanic <- read.csv("# Competition/data/train.csv") titanic_validation <- read.csv("# Competition/data/test.csv") ## # JOIN TRAINS AND TEST DA...
/Basic_data_analysis/Sequence_mining.R
no_license
ziyefang/R
R
false
false
2,374
r
data<-read.csv('normalized_expression.csv') filter1<-read.csv('Project1_4_1.csv') nrow(data) ncol(data) patients<-colnames(data) step1=data.frame(data) step2=data.frame(filter1) step1[,3:135] vari<-c() var2<-c() for(i in 1:nrow(step1)){ vari<-append(vari,var(as.numeric(step1[i,2:135]))) } for(i...
/project_1/Analysis.R
permissive
MogicianEik/BF528_team_swiss_cheese
R
false
false
5,779
r
data<-read.csv('normalized_expression.csv') filter1<-read.csv('Project1_4_1.csv') nrow(data) ncol(data) patients<-colnames(data) step1=data.frame(data) step2=data.frame(filter1) step1[,3:135] vari<-c() var2<-c() for(i in 1:nrow(step1)){ vari<-append(vari,var(as.numeric(step1[i,2:135]))) } for(i...
#' Read input file and initialise groundwater table parameters #' @param FileLocation list with file locations #' @param ClockStruct crop calendar #' @return \code{GwStruct} water table. #' @export #' @examples #' ReadGroundwaterTable(FileLocation, ClockStruct) ReadGroundwaterTable <- function(FileLocation, ClockStruc...
/R/ReadGroundwaterTable.R
no_license
bluegulcy/aquacrop
R
false
false
3,270
r
#' Read input file and initialise groundwater table parameters #' @param FileLocation list with file locations #' @param ClockStruct crop calendar #' @return \code{GwStruct} water table. #' @export #' @examples #' ReadGroundwaterTable(FileLocation, ClockStruct) ReadGroundwaterTable <- function(FileLocation, ClockStruc...
# load the data filename <- "household_power_consumption.txt" data <- read.table(filename, header=T, sep=";") data$Date <- as.Date(data$Date, format="%d/%m/%Y") power <- data[(data$Date=="2007-02-01") | (data$Date=="2007-02-02"),] power$Global_reactive_power <- as.numeric(as.character(power$Global_reactive_power)) powe...
/plot2.R
no_license
gabbyzhou/ExData_Plotting1
R
false
false
584
r
# load the data filename <- "household_power_consumption.txt" data <- read.table(filename, header=T, sep=";") data$Date <- as.Date(data$Date, format="%d/%m/%Y") power <- data[(data$Date=="2007-02-01") | (data$Date=="2007-02-02"),] power$Global_reactive_power <- as.numeric(as.character(power$Global_reactive_power)) powe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dl4.R \name{dl4} \alias{dl4} \title{Function to return the DL4 hydrologic indicator statistic for a given data frame} \usage{ dl4(qfiletempf, pref = "mean") } \arguments{ \item{qfiletempf}{data frame containing a "discharge" column containing...
/man/dl4.Rd
permissive
klingerf2/EflowStats
R
false
true
848
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dl4.R \name{dl4} \alias{dl4} \title{Function to return the DL4 hydrologic indicator statistic for a given data frame} \usage{ dl4(qfiletempf, pref = "mean") } \arguments{ \item{qfiletempf}{data frame containing a "discharge" column containing...
# Load libraries library(limma) library(edgeR) library(ggplot2) library(gplots) library(data.table) #load file setwd("~/DISK2/glm/redoing/EAP1/") #Pab1.1 <- read.csv("~/DISK2/glm/redoing/Pab1/Pab1.1.csv", row.names=1) #Pab1.2 <- read.csv("~/DISK2/glm/redoing/Pab1/Pab1.2.csv", row.names=1) Pab1.3 <- read.csv("~/DISK2/gl...
/edgeR/Pab1 [interchangable].R
no_license
Krutik6/MSci_KrutikPatel_16-17
R
false
false
1,344
r
# Load libraries library(limma) library(edgeR) library(ggplot2) library(gplots) library(data.table) #load file setwd("~/DISK2/glm/redoing/EAP1/") #Pab1.1 <- read.csv("~/DISK2/glm/redoing/Pab1/Pab1.1.csv", row.names=1) #Pab1.2 <- read.csv("~/DISK2/glm/redoing/Pab1/Pab1.2.csv", row.names=1) Pab1.3 <- read.csv("~/DISK2/gl...
select_rawdata_cols_for_run<-function(rawdata,sid,r,m){ stop("this function does not order the data in the correct order and this may invalidate data produced from this") return(rawdata[subid==sid & Motivation==m & runid==r, .(reaction_time,outcome,cue,choice,cor_res_Counterbalanced,presentation_n,...
/stanlba/singlelevelmodel/rl_discrim/lba_rl_discrim_v2_functions.R
permissive
bjsmith/reversallearning
R
false
false
6,092
r
select_rawdata_cols_for_run<-function(rawdata,sid,r,m){ stop("this function does not order the data in the correct order and this may invalidate data produced from this") return(rawdata[subid==sid & Motivation==m & runid==r, .(reaction_time,outcome,cue,choice,cor_res_Counterbalanced,presentation_n,...
#************************************* # svm #************************************* s_model <- svm(sentiment~., scale = F, data = train[,2:6]) pred_svm <- predict(s_model,test[,2:6]) error<-results$sentiment - pred_svm rmse_s <- mean((results$sentiment - pred_svm)^2) plot(cmdscale(dist(results1[,-6])), col =...
/SVM.R
no_license
purvesh007/sentimental-analysis-of-movie-review
R
false
false
627
r
#************************************* # svm #************************************* s_model <- svm(sentiment~., scale = F, data = train[,2:6]) pred_svm <- predict(s_model,test[,2:6]) error<-results$sentiment - pred_svm rmse_s <- mean((results$sentiment - pred_svm)^2) plot(cmdscale(dist(results1[,-6])), col =...
plot1 <- function(){ #read the file and take out the dates we need # (in a lazy sloppy way since this isn't the goal of the excercise) dat <- read.table("./Data./household_power_consumption.txt",sep=";",header=T,na.strings="?") dat2 <- dat[dat$Date=='1/2/2007',] dat3 <- dat[dat$Date=='2/2/2007',] ...
/plot1.R
no_license
zpg-/ExData_Plotting1
R
false
false
635
r
plot1 <- function(){ #read the file and take out the dates we need # (in a lazy sloppy way since this isn't the goal of the excercise) dat <- read.table("./Data./household_power_consumption.txt",sep=";",header=T,na.strings="?") dat2 <- dat[dat$Date=='1/2/2007',] dat3 <- dat[dat$Date=='2/2/2007',] ...
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
/R/ApiResponseEconomicIndices.r
no_license
Aggarch/r-sdk
R
false
false
4,006
r
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/notebook.R \name{notebookServer} \alias{notebookServer} \title{Notebook Server} \usage{ notebookServer(input, output, session) } \arguments{ \item{id}{id of the notebook} } \value{ A shinyApp object which run in browser (see https://shiny.rst...
/man/notebookServer.Rd
no_license
MehdiChelh/shinynotebook
R
false
true
538
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/notebook.R \name{notebookServer} \alias{notebookServer} \title{Notebook Server} \usage{ notebookServer(input, output, session) } \arguments{ \item{id}{id of the notebook} } \value{ A shinyApp object which run in browser (see https://shiny.rst...
context("results") test_that("results works as expected and throws errors", { ## test contrasts set.seed(1) dds <- makeExampleDESeqDataSet(n=200,m=12) dds$condition <- factor(rep(1:3,each=4)) dds$group <- factor(rep(1:2,length=ncol(dds))) dds$foo <- rep(c("lo","hi"),each=6) counts(dds)[1,] <- rep(c(100L,2...
/tests/testthat/test_results.R
no_license
wesleybarriosufv/DESeq2
R
false
false
6,973
r
context("results") test_that("results works as expected and throws errors", { ## test contrasts set.seed(1) dds <- makeExampleDESeqDataSet(n=200,m=12) dds$condition <- factor(rep(1:3,each=4)) dds$group <- factor(rep(1:2,length=ncol(dds))) dds$foo <- rep(c("lo","hi"),each=6) counts(dds)[1,] <- rep(c(100L,2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ICdetails.R \encoding{UTF-8} \name{ICdetails} \alias{ICdetails} \title{Extract details of information criterion} \usage{ ICdetails(x, variables = NULL, order = TRUE) } \arguments{ \item{x}{A data frame or matrix containing the information cri...
/man/ICdetails.Rd
no_license
vanderleidebastiani/daee
R
false
true
2,136
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ICdetails.R \encoding{UTF-8} \name{ICdetails} \alias{ICdetails} \title{Extract details of information criterion} \usage{ ICdetails(x, variables = NULL, order = TRUE) } \arguments{ \item{x}{A data frame or matrix containing the information cri...
# Unzip the file fileName <- "getdata%2Fprojectfiles%2FUCI HAR Dataset.zip" unzip(fileName) ## Merges the training and the test sets to create one data set. # Extract the feature names, to be used as column names featureNames <- read.table("./UCI HAR Dataset/features.txt", sep=" ", co...
/run_analysis.R
no_license
yufeiwei/Getting-and-Cleaning-Data-Course-Project
R
false
false
2,727
r
# Unzip the file fileName <- "getdata%2Fprojectfiles%2FUCI HAR Dataset.zip" unzip(fileName) ## Merges the training and the test sets to create one data set. # Extract the feature names, to be used as column names featureNames <- read.table("./UCI HAR Dataset/features.txt", sep=" ", co...
#' A genetic dataset from a diploid organism #' #' A simpe diploid dataset, with allele encoded as one digit number #' #' #a' @format A data frame with 44 rows and 6 columns: #' \describe{ #' \item{Pop}{Population identifier, from 1 to 6} #' \item{loc-1}{genotype at loc-1 (only allele 4 present)} #' \item{loc-2...
/R/data.R
no_license
timflutre/hierfstat
R
false
false
1,994
r
#' A genetic dataset from a diploid organism #' #' A simpe diploid dataset, with allele encoded as one digit number #' #' #a' @format A data frame with 44 rows and 6 columns: #' \describe{ #' \item{Pop}{Population identifier, from 1 to 6} #' \item{loc-1}{genotype at loc-1 (only allele 4 present)} #' \item{loc-2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logical.R \name{isExcel2007File} \alias{isExcel2007File} \title{Is this an XLSX file?} \usage{ isExcel2007File(filepath) } \arguments{ \item{filepath}{(vector of) path(s) to the file(s) to be checked for .xlsx extension} } \value{ (vector of)...
/man/isExcel2007File.Rd
permissive
KWB-R/kwb.db
R
false
true
370
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logical.R \name{isExcel2007File} \alias{isExcel2007File} \title{Is this an XLSX file?} \usage{ isExcel2007File(filepath) } \arguments{ \item{filepath}{(vector of) path(s) to the file(s) to be checked for .xlsx extension} } \value{ (vector of)...
require(dplyr) require(ggplot2) emissions <- NEI %>% subset(fips %in% c("24510", "06037")) %>% mutate(year = as.factor(year)) %>% group_by(fips, year) %>% summarise(Emissions = sum(Emissions) / 1000) %>% mutate(city = ifelse(fips == "24510", "Baltimore City", "Los Angeles")) qplot(year, Emissions...
/Exploratory/plot6.R
no_license
zbeisekov/datasciencecoursera
R
false
false
483
r
require(dplyr) require(ggplot2) emissions <- NEI %>% subset(fips %in% c("24510", "06037")) %>% mutate(year = as.factor(year)) %>% group_by(fips, year) %>% summarise(Emissions = sum(Emissions) / 1000) %>% mutate(city = ifelse(fips == "24510", "Baltimore City", "Los Angeles")) qplot(year, Emissions...
library("testthat") library("canadastripes") context("Testing n_stations()") nstns <- n_stations() test_that("n_stations() returns an integer", { expect_type(nstns, "integer") }) test_that("n_stations() returns a single integer", { expect_length(nstns, 1L) })
/tests/testthat/test-n_stations.R
permissive
gavinsimpson/canadian-climate-stripes
R
false
false
272
r
library("testthat") library("canadastripes") context("Testing n_stations()") nstns <- n_stations() test_that("n_stations() returns an integer", { expect_type(nstns, "integer") }) test_that("n_stations() returns a single integer", { expect_length(nstns, 1L) })
########################################################################## # Purpose: Function to evaluate scTEMseq coverage files in a given directory # Output will be a table containing mean methylation levels and QC metrics per sample. # Date: 02.Sep.22 # Version: 0.1.0 # Written by: Sean Burnard # Email: sean...
/scripts/scTEMseq_cov_summary.R
permissive
canepi/scTEM-seq
R
false
false
7,816
r
########################################################################## # Purpose: Function to evaluate scTEMseq coverage files in a given directory # Output will be a table containing mean methylation levels and QC metrics per sample. # Date: 02.Sep.22 # Version: 0.1.0 # Written by: Sean Burnard # Email: sean...
#' @noRd wb_end_point <- function(end_point, lang) { get_url <- build_get_url(end_point, lang = lang) d <- fetch_wb_url(get_url) d_names <- format_wb_tidy_names(names(d), end_point = end_point) names(d) <- d_names format_wb_data(d, end_point = end_point) } #' World Bank Information End Points #' #' These...
/R/end_points.R
no_license
etbrand/wbstats
R
false
false
6,332
r
#' @noRd wb_end_point <- function(end_point, lang) { get_url <- build_get_url(end_point, lang = lang) d <- fetch_wb_url(get_url) d_names <- format_wb_tidy_names(names(d), end_point = end_point) names(d) <- d_names format_wb_data(d, end_point = end_point) } #' World Bank Information End Points #' #' These...
library(psych) args <- commandArgs(trailingOnly = TRUE) D<-as.matrix(read.table(file=paste(args[1],"",sep=""), header = FALSE, sep = ",")) path <- paste('results.out', sep='') times <- double(5) for (iter in 1:5) { start <- Sys.time() res = tr(t(D)) end <- Sys.time() print(res) times[ite...
/scripts/LAPipe/R/PART2/P2.3_S-Q.R
no_license
hadad-paper/HADAD_SIGMOD2021
R
false
false
1,029
r
library(psych) args <- commandArgs(trailingOnly = TRUE) D<-as.matrix(read.table(file=paste(args[1],"",sep=""), header = FALSE, sep = ",")) path <- paste('results.out', sep='') times <- double(5) for (iter in 1:5) { start <- Sys.time() res = tr(t(D)) end <- Sys.time() print(res) times[ite...
microdf <- read.csv("Emily Data.csv") spongedf <- subset(microdf, Substrate=="Cellulose Sponge" & Week.Removed==4) wooddf <- subset(microdf, Substrate=="Wood Veneer" & Week.Removed==6) library(lme4) library(ggplot2) library(ggmap) library(AICcmodavg) library(scatterplot3d) library(devtools) library(cowplot) library(M...
/Microbial Data 2.R
no_license
emily-22/microbial
R
false
false
23,196
r
microdf <- read.csv("Emily Data.csv") spongedf <- subset(microdf, Substrate=="Cellulose Sponge" & Week.Removed==4) wooddf <- subset(microdf, Substrate=="Wood Veneer" & Week.Removed==6) library(lme4) library(ggplot2) library(ggmap) library(AICcmodavg) library(scatterplot3d) library(devtools) library(cowplot) library(M...
#Taken from Finance_1 Quiz week 4, # #n<-15 # T<-0.25 # S<-100 # r<-0.02 # sigma<-0.3 # c<-0.01 # K<-100 #Excel # n<-10 # T<-0.5 # S<-100 # r<-0.02 # sigma<-0.2 # c<-0.01 # K<-100 #metodic n<-3 u<-1.07 d<-1/u R<-1.01 K<-100 q<-(R-d)/(u-d) #book page 336 # n<-6 # u<-1.02 # d<-0.99 # R<-1.01 # S<-100 # K<-102 # #q<-(R...
/Week3/fin2_w3.R
no_license
s368/Finance2
R
false
false
339
r
#Taken from Finance_1 Quiz week 4, # #n<-15 # T<-0.25 # S<-100 # r<-0.02 # sigma<-0.3 # c<-0.01 # K<-100 #Excel # n<-10 # T<-0.5 # S<-100 # r<-0.02 # sigma<-0.2 # c<-0.01 # K<-100 #metodic n<-3 u<-1.07 d<-1/u R<-1.01 K<-100 q<-(R-d)/(u-d) #book page 336 # n<-6 # u<-1.02 # d<-0.99 # R<-1.01 # S<-100 # K<-102 # #q<-(R...
## ----setup, echo = FALSE, include=FALSE--------------------------------------- library(knitr) knitr::opts_chunk$set(collapse=TRUE, message=FALSE, warning=FALSE, comment="#>") ## ----occDownload-------------------------------------------------------------- if (!require('spocc')) install.packages('spocc', repos="https...
/inst/doc/ENMeval-vignette.R
no_license
agoodman312/ENMeval
R
false
false
9,994
r
## ----setup, echo = FALSE, include=FALSE--------------------------------------- library(knitr) knitr::opts_chunk$set(collapse=TRUE, message=FALSE, warning=FALSE, comment="#>") ## ----occDownload-------------------------------------------------------------- if (!require('spocc')) install.packages('spocc', repos="https...
library("QFFX") testFXSpotRateTriRun <- function() { startDate <- "2007-01-03" endDate <- "2007-01-12" quoteside = "mid" cross = "usd/jpy" tsdb <- TimeSeriesDB() fxhist <- FXSpotRateTriRun(FXCurr=FXCurr$setByCross(cross), startDate=startDate,endDate=endDate,tsdb=tsdb,writeToTSDB=FALSE, overUnder =...
/R/src/QFFX/tests/testFXSpotRateTriRun.R
no_license
rsheftel/ratel
R
false
false
461
r
library("QFFX") testFXSpotRateTriRun <- function() { startDate <- "2007-01-03" endDate <- "2007-01-12" quoteside = "mid" cross = "usd/jpy" tsdb <- TimeSeriesDB() fxhist <- FXSpotRateTriRun(FXCurr=FXCurr$setByCross(cross), startDate=startDate,endDate=endDate,tsdb=tsdb,writeToTSDB=FALSE, overUnder =...
# ------------------------------------------------------------------------------ # Functions for gene annotations # March 18, 2022 # TS O'Leary # ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------ # Function: r...
/por/brent/gene_annot_funcs.R
no_license
tsoleary/rna_seq
R
false
false
5,116
r
# ------------------------------------------------------------------------------ # Functions for gene annotations # March 18, 2022 # TS O'Leary # ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------ # Function: r...
# # Test when data frame is not ordered # library(usl) options(digits=3) dfr <- data.frame(load=c(1, 2, 4, 6, 8, 10), tput=c(1, 1.8868, 3.0769, 3.5294, 3.5398, 3.3557)) dfr <- dfr[order(-dfr[1]), ] try(u <- usl(tput ~ load, data=dfr)) coef(u)
/data/genthat_extracted_code/usl/tests/t07.R
no_license
surayaaramli/typeRrh
R
false
false
288
r
# # Test when data frame is not ordered # library(usl) options(digits=3) dfr <- data.frame(load=c(1, 2, 4, 6, 8, 10), tput=c(1, 1.8868, 3.0769, 3.5294, 3.5398, 3.3557)) dfr <- dfr[order(-dfr[1]), ] try(u <- usl(tput ~ load, data=dfr)) coef(u)
\alias{gtkWindowGetSkipPagerHint} \name{gtkWindowGetSkipPagerHint} \title{gtkWindowGetSkipPagerHint} \description{Gets the value set by \code{\link{gtkWindowSetSkipPagerHint}}.} \usage{gtkWindowGetSkipPagerHint(object)} \arguments{\item{\verb{object}}{a \code{\link{GtkWindow}}}} \details{Since 2.2} \value{[logical] \co...
/RGtk2/man/gtkWindowGetSkipPagerHint.Rd
no_license
lawremi/RGtk2
R
false
false
433
rd
\alias{gtkWindowGetSkipPagerHint} \name{gtkWindowGetSkipPagerHint} \title{gtkWindowGetSkipPagerHint} \description{Gets the value set by \code{\link{gtkWindowSetSkipPagerHint}}.} \usage{gtkWindowGetSkipPagerHint(object)} \arguments{\item{\verb{object}}{a \code{\link{GtkWindow}}}} \details{Since 2.2} \value{[logical] \co...
healthData <- gs_url("https://docs.google.com/spreadsheets/d/1O_a3mpZsCKOEQz5MXOzzYU0X1rEbCg6_jhkLVWUOnc8/edit?usp=sharing") forecastData <- gs_read(ss=healthData, ws = "Scenarios", skip = 0) save(forecastData, file="forecastData.RData") DatesOfNoExperimentalMeds <- filter(HospitalDates, `Cyclosporine (mg/day)` < ...
/WBC Analysis Jan 2019B.R
no_license
gamaly/AplasticAnemiaPHR
R
false
false
2,005
r
healthData <- gs_url("https://docs.google.com/spreadsheets/d/1O_a3mpZsCKOEQz5MXOzzYU0X1rEbCg6_jhkLVWUOnc8/edit?usp=sharing") forecastData <- gs_read(ss=healthData, ws = "Scenarios", skip = 0) save(forecastData, file="forecastData.RData") DatesOfNoExperimentalMeds <- filter(HospitalDates, `Cyclosporine (mg/day)` < ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rdataretriever.R \name{install} \alias{install} \title{Install datasets via the Data Retriever (deprecated).} \usage{ install(dataset, connection, db_file = NULL, conn_file = NULL, data_dir = ".", log_dir = NULL) } \arguments{ \item{dataset...
/man/install.Rd
permissive
ha0ye/rdataretriever
R
false
true
1,496
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rdataretriever.R \name{install} \alias{install} \title{Install datasets via the Data Retriever (deprecated).} \usage{ install(dataset, connection, db_file = NULL, conn_file = NULL, data_dir = ".", log_dir = NULL) } \arguments{ \item{dataset...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "irish") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Sex") lrn = makeLearner("classi...
/models/openml_irish/classification_Sex/7f5c9d7edcc24f2ba4dec0016030473a/code.R
no_license
lukaszbrzozowski/CaseStudies2019S
R
false
false
716
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "irish") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Sex") lrn = makeLearner("classi...
/man/dummy.Rd
no_license
cran/FD
R
false
false
606
rd
#Plot 3 #Of the four types of sources indicated by the \color{red}{\verb|type|}type (point, nonpoint, onroad, nonroad) variable, #which of these four sources have seen decreases in emissions from 1999-2008 for Baltimore City? Which have seen increases #in emissions from 1999-2008? Use the ggplot2 plotting system ...
/Plot3.R
no_license
Rengakrishna/Project2_ExplarotoryDataAnalysis
R
false
false
1,291
r
#Plot 3 #Of the four types of sources indicated by the \color{red}{\verb|type|}type (point, nonpoint, onroad, nonroad) variable, #which of these four sources have seen decreases in emissions from 1999-2008 for Baltimore City? Which have seen increases #in emissions from 1999-2008? Use the ggplot2 plotting system ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Contract Obligation by Agency.R \name{bar_primeob_by_agency_choosing} \alias{bar_primeob_by_agency_choosing} \title{Creating a bar chart of Prime Contract Obligations by Agency looking at an agency (or sub-agency) chosen by name to displ...
/man/bar_primeob_by_agency_choosing.Rd
no_license
MSTRoth/PSC-MB
R
false
true
2,980
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Contract Obligation by Agency.R \name{bar_primeob_by_agency_choosing} \alias{bar_primeob_by_agency_choosing} \title{Creating a bar chart of Prime Contract Obligations by Agency looking at an agency (or sub-agency) chosen by name to displ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MetricsChIA.R \name{region_column_functor} \alias{region_column_functor} \title{Builds a function object for extracting a single named annotation from the ChIA object.} \usage{ region_column_functor(var.name) } \arguments{ \item{var.name}{The...
/man/region_column_functor.Rd
no_license
ehenrion/ChIAnalysis
R
false
true
589
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MetricsChIA.R \name{region_column_functor} \alias{region_column_functor} \title{Builds a function object for extracting a single named annotation from the ChIA object.} \usage{ region_column_functor(var.name) } \arguments{ \item{var.name}{The...
T <- 72 # for count data # ZEROS TRICK zeros <- rep(0,T) Up2 <- 4000 Up4 <- 6000 # HMM # N_max1 = 79 # N_max3 = 49 sc = 1 #100 # # BINS for approximative HMM INTERGRATION # N_bin1 = 59 # 109 #59 # # reduction to be based on Gamma plots # bin_size1 = 49 #29 # 69# odd so the midpoints are integer # N_bin3 = 49 # # ...
/Heron/Adaptive/heron_data_HMM_approx_unifprior_norm.R
no_license
TANG16/SCDA
R
false
false
8,492
r
T <- 72 # for count data # ZEROS TRICK zeros <- rep(0,T) Up2 <- 4000 Up4 <- 6000 # HMM # N_max1 = 79 # N_max3 = 49 sc = 1 #100 # # BINS for approximative HMM INTERGRATION # N_bin1 = 59 # 109 #59 # # reduction to be based on Gamma plots # bin_size1 = 49 #29 # 69# odd so the midpoints are integer # N_bin3 = 49 # # ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{chmGetOverview} \alias{chmGetOverview} \title{Get the file path to the specified overview file.} \usage{ chmGetOverview(chm, format = NULL, idx = NULL) } \arguments{ \item{chm}{An NGCHM.} \item{format}{The format of overvie...
/man/chmGetOverview.Rd
no_license
MD-Anderson-Bioinformatics/NGCHM-R
R
false
true
874
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{chmGetOverview} \alias{chmGetOverview} \title{Get the file path to the specified overview file.} \usage{ chmGetOverview(chm, format = NULL, idx = NULL) } \arguments{ \item{chm}{An NGCHM.} \item{format}{The format of overvie...
library(auditor) ### Name: plotScaleLocation ### Title: Scale location plot ### Aliases: plotScaleLocation ### ** Examples library(car) lm_model <- lm(prestige~education + women + income, data = Prestige) lm_au <- audit(lm_model, data = Prestige, y = Prestige$prestige) plotScaleLocation(lm_au)
/data/genthat_extracted_code/auditor/examples/plotScaleLocation.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
304
r
library(auditor) ### Name: plotScaleLocation ### Title: Scale location plot ### Aliases: plotScaleLocation ### ** Examples library(car) lm_model <- lm(prestige~education + women + income, data = Prestige) lm_au <- audit(lm_model, data = Prestige, y = Prestige$prestige) plotScaleLocation(lm_au)