content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
context("ndgeo_write") file <- system.file("examples", 'featurecollection2.geojson', package = "geojson") str <- paste0(readLines(file), collapse = " ") x <- featurecollection(str) test_that("ndgeo_write", { outfile <- tempfile(fileext = ".geojson") aa <- ndgeo_write(x, outfile) fconn <- file(outfile) bb ...
/tests/testthat/test-ndgeo.R
permissive
ropensci/geojson
R
false
false
2,036
r
context("ndgeo_write") file <- system.file("examples", 'featurecollection2.geojson', package = "geojson") str <- paste0(readLines(file), collapse = " ") x <- featurecollection(str) test_that("ndgeo_write", { outfile <- tempfile(fileext = ".geojson") aa <- ndgeo_write(x, outfile) fconn <- file(outfile) bb ...
## Functions makeCacheMatrix and cacheSolve are used to calculate ## inverse of matrix with ability of caching inversion results. ## Function makeCacheMatrix creates a caching object which is used ## to store a cached inverse of a matrix and functions to manipulate the cache. ## If matrix is changed then cache is rese...
/cachematrix.R
no_license
selivanovm/ProgrammingAssignment2
R
false
false
1,102
r
## Functions makeCacheMatrix and cacheSolve are used to calculate ## inverse of matrix with ability of caching inversion results. ## Function makeCacheMatrix creates a caching object which is used ## to store a cached inverse of a matrix and functions to manipulate the cache. ## If matrix is changed then cache is rese...
#Comparisons of colts/adults rm(list=ls()) library(ggplot2) library(gridExtra) adults16<-read.csv("output/adults2016.tum.csv") colts16<-read.csv("output/colts2016.tum.csv") adults17<-read.csv("output/adults2017.tum.csv") colts17<-read.csv("output/colts2017.tum.csv") adults16$age<-"adult" adults16$year<-2016...
/scripts/comparison of 2016 time use metrics.R
no_license
dwwolfson/ch2_crane_movement
R
false
false
2,774
r
#Comparisons of colts/adults rm(list=ls()) library(ggplot2) library(gridExtra) adults16<-read.csv("output/adults2016.tum.csv") colts16<-read.csv("output/colts2016.tum.csv") adults17<-read.csv("output/adults2017.tum.csv") colts17<-read.csv("output/colts2017.tum.csv") adults16$age<-"adult" adults16$year<-2016...
mainpanel <- function() {mainPanel( tabsetPanel( id = 'panel' , tabPanel("Datasets", data_datasets_table_UI("data") ), tabPanel("Taxonomy", taxo_table_UI("taxo_table") ), tabPanel("Treemap", treemapUI("treemap") ), tabPanel("Map", ...
/R/ui_mainpanel.R
permissive
pr2database/metapr2-shiny
R
false
false
1,375
r
mainpanel <- function() {mainPanel( tabsetPanel( id = 'panel' , tabPanel("Datasets", data_datasets_table_UI("data") ), tabPanel("Taxonomy", taxo_table_UI("taxo_table") ), tabPanel("Treemap", treemapUI("treemap") ), tabPanel("Map", ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/code.R \name{summary.CMM} \alias{summary.CMM} \title{Summary information on a 'CMM' object} \usage{ \method{summary}{CMM}(object, which = names(object[1]), perchain = TRUE, ...) } \arguments{ \item{object}{an object of class \code{C...
/man/summary.CMM.Rd
no_license
ClementCalenge/metroponcfs
R
false
false
841
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/code.R \name{summary.CMM} \alias{summary.CMM} \title{Summary information on a 'CMM' object} \usage{ \method{summary}{CMM}(object, which = names(object[1]), perchain = TRUE, ...) } \arguments{ \item{object}{an object of class \code{C...
library(class) knn(train, test, cl, k = 1) knn1(train, test, cl) knn.cv(train, cl, k = 1) library(class) train = rbind(iris3[1:25,,1], iris3[1:25,,2], iris3[1:25,,3]) test = rbind(iris3[26:50,,1], iris3[26:50,,2], iris3[26:50,,3]) cl =factor(c(rep("s",25), rep("c",25), rep("v",25))) model=knn(train, test, cl, k = 3, p...
/TAA/knn.R
no_license
BrunoOlivera/Maestria
R
false
false
355
r
library(class) knn(train, test, cl, k = 1) knn1(train, test, cl) knn.cv(train, cl, k = 1) library(class) train = rbind(iris3[1:25,,1], iris3[1:25,,2], iris3[1:25,,3]) test = rbind(iris3[26:50,,1], iris3[26:50,,2], iris3[26:50,,3]) cl =factor(c(rep("s",25), rep("c",25), rep("v",25))) model=knn(train, test, cl, k = 3, p...
## This script allows the user to run STRUCTURE, which evaluates population structure ## using a Bayesian framework. The publication can be found here: http://membres-timc.imag.fr/Olivier.Francois/tutoRstructure.pdf setwd('/Users/jimblotter/Desktop/Grad_School/Data_Analysis/erisor/downstream_analysis/') library(fields...
/downstream_analysis/STRUCTURE_in_R.R
no_license
jenessalemon/erisor
R
false
false
1,116
r
## This script allows the user to run STRUCTURE, which evaluates population structure ## using a Bayesian framework. The publication can be found here: http://membres-timc.imag.fr/Olivier.Francois/tutoRstructure.pdf setwd('/Users/jimblotter/Desktop/Grad_School/Data_Analysis/erisor/downstream_analysis/') library(fields...
# *********************************************************************************************** # Function : gpb.get.eval.result # Objective : gpb.Boosterオブジェクトから要素を抽出する # Created by: Owner # Created on: 2021/03/28 # URL : https://www.rdocumentation.org/packages/gpboost/versions/0.5.0/topics/gpb.get.eval.resul...
/library/gpboost/function/model/gpb.get.eval.result.R
no_license
delta0726/r-hierarchical_model
R
false
false
2,642
r
# *********************************************************************************************** # Function : gpb.get.eval.result # Objective : gpb.Boosterオブジェクトから要素を抽出する # Created by: Owner # Created on: 2021/03/28 # URL : https://www.rdocumentation.org/packages/gpboost/versions/0.5.0/topics/gpb.get.eval.resul...
# Create tables of all methods for manuscript # 1/25/2021 # ----- AF lifetime risks ----- pseudo.ltr <- read.csv('results//pseudologit_af_pred.csv') fg.ltr <- read.csv('results//finegray_af_diffltr_ci_revision.csv') flex.ltr <- read.csv('results//flex_af_diffltr_revision.csv') flex.ltr.bic <- read.csv('results//fle...
/FHS illustrative example/5_tables.R
no_license
foolkenan/lifetimerisk
R
false
false
3,271
r
# Create tables of all methods for manuscript # 1/25/2021 # ----- AF lifetime risks ----- pseudo.ltr <- read.csv('results//pseudologit_af_pred.csv') fg.ltr <- read.csv('results//finegray_af_diffltr_ci_revision.csv') flex.ltr <- read.csv('results//flex_af_diffltr_revision.csv') flex.ltr.bic <- read.csv('results//fle...
library(data.table) library(dplyr) library(stringr) ### Read and Process Data ### dt <- read.table('household_power_consumption.txt',sep=";", header = FALSE, skip = 66636, nrows = 2880) names(dt) <- names(read.table('household_power_consumption.txt',sep=";", h...
/plot1.R
no_license
T-Marty/ExData_Plotting1
R
false
false
748
r
library(data.table) library(dplyr) library(stringr) ### Read and Process Data ### dt <- read.table('household_power_consumption.txt',sep=";", header = FALSE, skip = 66636, nrows = 2880) names(dt) <- names(read.table('household_power_consumption.txt',sep=";", h...
rm(list=ls(all=TRUE)) if (.Platform$OS.type=="windows") home="/users/radivot" else home="/home/radivot" setwd(home) # place where models and results will go if (0) library(ccems) else { # if 0 source in the package pkgNms=dir(paste(home,"/case/active/ccems/ccems/R",sep=""),full.names=TRUE) for (i in pkgNms...
/inst/papers/RX/fig7n8fitsExtrap.r
no_license
cran/ccems
R
false
false
3,990
r
rm(list=ls(all=TRUE)) if (.Platform$OS.type=="windows") home="/users/radivot" else home="/home/radivot" setwd(home) # place where models and results will go if (0) library(ccems) else { # if 0 source in the package pkgNms=dir(paste(home,"/case/active/ccems/ccems/R",sep=""),full.names=TRUE) for (i in pkgNms...
# modified 3-29-10: Qunhua Li # add 2 columns in the output of "-overlapped-peaks.txt": local.idr and IDR # 01-20-2010 Qunhua Li # # This program performs consistency analysis for a pair of peak calling outputs # It takes narrowPeak or broadPeak formats. # # usage: Rscript batch-consistency-analysis2.r peakfile1 peak...
/batch-consistency-analysis.r
no_license
avictorsen/IGSB_pipeline
R
false
false
5,781
r
# modified 3-29-10: Qunhua Li # add 2 columns in the output of "-overlapped-peaks.txt": local.idr and IDR # 01-20-2010 Qunhua Li # # This program performs consistency analysis for a pair of peak calling outputs # It takes narrowPeak or broadPeak formats. # # usage: Rscript batch-consistency-analysis2.r peakfile1 peak...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Prepare_data.R \name{fix_bills_discrim} \alias{fix_bills_discrim} \title{Function to take a roll call data set and the names of opposition and governing parties. The opposition party should be as extreme in opposition as possible. This functi...
/man/fix_bills_discrim.Rd
no_license
saudiwin/bawsala
R
false
true
1,584
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Prepare_data.R \name{fix_bills_discrim} \alias{fix_bills_discrim} \title{Function to take a roll call data set and the names of opposition and governing parties. The opposition party should be as extreme in opposition as possible. This functi...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{asROCRPrediction} \alias{asROCRPrediction} \title{Converts predictions to a format package ROCR can handle.} \usage{ asROCRPrediction(pred) } \arguments{ \item{pred}{[\code{\link{Prediction}}]\cr Prediction object.} } \description{ Converts predictions to a for...
/man/asROCRPrediction.Rd
no_license
narayana1208/mlr
R
false
false
352
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{asROCRPrediction} \alias{asROCRPrediction} \title{Converts predictions to a format package ROCR can handle.} \usage{ asROCRPrediction(pred) } \arguments{ \item{pred}{[\code{\link{Prediction}}]\cr Prediction object.} } \description{ Converts predictions to a for...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/IndexW.R \name{IndexW} \alias{IndexW} \title{W index value for a single topology.} \usage{ IndexW(tree = tree) } \arguments{ \item{tree}{is a single tree with n terminals, an ape phylo object.} } \description{ This function assigns the weight...
/man/IndexW.Rd
no_license
cran/jrich
R
false
true
682
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/IndexW.R \name{IndexW} \alias{IndexW} \title{W index value for a single topology.} \usage{ IndexW(tree = tree) } \arguments{ \item{tree}{is a single tree with n terminals, an ape phylo object.} } \description{ This function assigns the weight...
#load packages library("vegan") library("tidyverse") source("community/start_here.R") #get functional groups noGraminoids <- taxa %>% filter(!functionalGroup %in% c("gramineae", "sedge")) %>% select(species) ## find taxonomic distance moved dist_moved <- cover_thin %>% left_join(noGraminoids) %>% group...
/community/Old code/distance_moved.R
no_license
chencaf/PFTC_1_2_China
R
false
false
3,830
r
#load packages library("vegan") library("tidyverse") source("community/start_here.R") #get functional groups noGraminoids <- taxa %>% filter(!functionalGroup %in% c("gramineae", "sedge")) %>% select(species) ## find taxonomic distance moved dist_moved <- cover_thin %>% left_join(noGraminoids) %>% group...
setwd("C:/Users/lpost/My Documents/Coursera/04 - Exploratory Data Analysis") DataFile <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075258, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') SubsetData <- subset(DataFile, Date %in% c("1/2/2007","2/2/2007")) Sub...
/plot4.R
no_license
lpost627/ExData_Plotting1
R
false
false
1,290
r
setwd("C:/Users/lpost/My Documents/Coursera/04 - Exploratory Data Analysis") DataFile <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075258, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') SubsetData <- subset(DataFile, Date %in% c("1/2/2007","2/2/2007")) Sub...
#Save all R files as .R 4 + 1 2 + 2 #Short cut to run a line: Ctrl + Enter # Macs: Command Enter? #Create variables base and height base <- 3 height <- 5 #Shortcut: Alt + - = works as well #Calculate Area of triangle 0.5*base*height ls() rm(list = ls()) base a <- 10 2*a a^2 #to m...
/PDFs/lectures/week1/1 28.R
permissive
stat400/stat400.github.io
R
false
false
1,232
r
#Save all R files as .R 4 + 1 2 + 2 #Short cut to run a line: Ctrl + Enter # Macs: Command Enter? #Create variables base and height base <- 3 height <- 5 #Shortcut: Alt + - = works as well #Calculate Area of triangle 0.5*base*height ls() rm(list = ls()) base a <- 10 2*a a^2 #to m...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc_and_utility.r \name{umxCov2cor} \alias{umxCov2cor} \title{Convert a covariance matrix into a correlation matrix} \usage{ umxCov2cor(x) } \arguments{ \item{x}{something that cov2cor can work on (matrix, df, etc.)} } \value{ - a correlatio...
/man/umxCov2cor.Rd
no_license
guhjy/umx
R
false
true
907
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc_and_utility.r \name{umxCov2cor} \alias{umxCov2cor} \title{Convert a covariance matrix into a correlation matrix} \usage{ umxCov2cor(x) } \arguments{ \item{x}{something that cov2cor can work on (matrix, df, etc.)} } \value{ - a correlatio...
#====== Deep Learning - LSTM Model ======# # Loading required libraries library(keras) library(astsa) library(tseries) library(tensorflow) # Reading Data data <-read.csv("C:\\Users\\ME\\Desktop\\Phase 3\\Data.csv") series<-ts(exp(data$Aluva),frequency = 16) diffed<-diff(series) head(diffed) kpss.te...
/lstm_aluva.R
no_license
ashbin-jaison/Analysis-of-Traffic-Flow-for-Kochi-Metro
R
false
false
3,640
r
#====== Deep Learning - LSTM Model ======# # Loading required libraries library(keras) library(astsa) library(tseries) library(tensorflow) # Reading Data data <-read.csv("C:\\Users\\ME\\Desktop\\Phase 3\\Data.csv") series<-ts(exp(data$Aluva),frequency = 16) diffed<-diff(series) head(diffed) kpss.te...
####################################################################### # This script creates the histogram in the readme for RI senate ####################################################################### #Import votes-ri.csv setwd("/Users/. . . /ri/") votes <- read.csv("votes-ri.csv") #Get all senators sens <- c...
/code/readme_graphics.R
permissive
seansegal/parity-in-the-senate
R
false
false
558
r
####################################################################### # This script creates the histogram in the readme for RI senate ####################################################################### #Import votes-ri.csv setwd("/Users/. . . /ri/") votes <- read.csv("votes-ri.csv") #Get all senators sens <- c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/serialization-lib.R \name{polyhedronToXML} \alias{polyhedronToXML} \title{polyhedronToXML()} \usage{ polyhedronToXML(polyhedron.state.defined, is.transformed.vertices = TRUE) } \arguments{ \item{polyhedron.state.defined}{the polyhedron to get...
/man/polyhedronToXML.Rd
no_license
schloerke/Rpolyhedra
R
false
true
771
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/serialization-lib.R \name{polyhedronToXML} \alias{polyhedronToXML} \title{polyhedronToXML()} \usage{ polyhedronToXML(polyhedron.state.defined, is.transformed.vertices = TRUE) } \arguments{ \item{polyhedron.state.defined}{the polyhedron to get...
install.packages("arules") install.packages("arulesViz") library(arules) library(arulesViz) data("Groceries") str(Groceries) class(Groceries) a<-Groceries@itemInfo head(a) Groceries@itemsetInfo Groceries@data@p itemFrequencyPlot(Groceries,topN=20,type="absolute") itemFrequencyPlot(Groceries,topN=20,type="relative",col...
/Groceries.R
no_license
prathmesh2998/R-program
R
false
false
4,894
r
install.packages("arules") install.packages("arulesViz") library(arules) library(arulesViz) data("Groceries") str(Groceries) class(Groceries) a<-Groceries@itemInfo head(a) Groceries@itemsetInfo Groceries@data@p itemFrequencyPlot(Groceries,topN=20,type="absolute") itemFrequencyPlot(Groceries,topN=20,type="relative",col...
#Predicts teams going to Superbowl TeamOdds=read.csv("OddsToSuperBowl.csv", header=TRUE ) NFCWinner=NULL AFCWinner=NULL NFCFINAL=NULL AFCFINAL=NULL for(j in 1:1000) { NFCWinner=sample(TeamOdds$NFC,size=1,replace = FALSE,prob = TeamOdds$NFCODDS) AFCWinner=sample(TeamOdds$AFC,size=1,replace = FALSE,prob = Tea...
/NFLSUPERBOWL.R
no_license
JillMercer/Superbowl-Analysis
R
false
false
2,610
r
#Predicts teams going to Superbowl TeamOdds=read.csv("OddsToSuperBowl.csv", header=TRUE ) NFCWinner=NULL AFCWinner=NULL NFCFINAL=NULL AFCFINAL=NULL for(j in 1:1000) { NFCWinner=sample(TeamOdds$NFC,size=1,replace = FALSE,prob = TeamOdds$NFCODDS) AFCWinner=sample(TeamOdds$AFC,size=1,replace = FALSE,prob = Tea...
load('my_oauth') library(streamR) #collecting all tweets that contain at least one of the following terms #following Barbera et al. 2015 tweeting from left to right # this script will be run once every hour, and tweets are stored in different # files, whose name indicate when they were created. current.time <- forma...
/01_data_collect_primaries/collect_primary.R
no_license
thomas-keller/tweet-pol
R
false
false
885
r
load('my_oauth') library(streamR) #collecting all tweets that contain at least one of the following terms #following Barbera et al. 2015 tweeting from left to right # this script will be run once every hour, and tweets are stored in different # files, whose name indicate when they were created. current.time <- forma...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/descript.R \name{descript} \alias{descript} \title{Description of a partition of variables} \usage{ descript(part, rec, matsim = FALSE) } \arguments{ \item{part}{a vector with cluster memberships of a partition of variables} \item{rec}{the e...
/man/descript.Rd
no_license
praveenarunachalam/ClustOfVar
R
false
true
2,348
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/descript.R \name{descript} \alias{descript} \title{Description of a partition of variables} \usage{ descript(part, rec, matsim = FALSE) } \arguments{ \item{part}{a vector with cluster memberships of a partition of variables} \item{rec}{the e...
testlist <- list(latLongs = structure(c(7.17641185691776e-306, 9.79032497743168e-307, 8.40581053466517e-310, 8.38461436209072e-315, 5.74080072733227e-270, 5.5342554778134e-222, 3.04867387943553e-05, 0, 0, 0), .Dim = c(10L, 1L)), r = 0) result <- do.call(MGDrivE::calcCos,testlist) str(result)
/MGDrivE/inst/testfiles/calcCos/libFuzzer_calcCos/calcCos_valgrind_files/1612727116-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
295
r
testlist <- list(latLongs = structure(c(7.17641185691776e-306, 9.79032497743168e-307, 8.40581053466517e-310, 8.38461436209072e-315, 5.74080072733227e-270, 5.5342554778134e-222, 3.04867387943553e-05, 0, 0, 0), .Dim = c(10L, 1L)), r = 0) result <- do.call(MGDrivE::calcCos,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cnd.R \name{cnd} \alias{cnd} \title{Create a ParameterSet Condition} \usage{ cnd(type, value = NULL, id = NULL) } \arguments{ \item{type}{(\code{character(1)}) \cr The condition \code{type} determines the type of dependency to create, options...
/man/cnd.Rd
permissive
hadley/param6
R
false
true
2,754
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cnd.R \name{cnd} \alias{cnd} \title{Create a ParameterSet Condition} \usage{ cnd(type, value = NULL, id = NULL) } \arguments{ \item{type}{(\code{character(1)}) \cr The condition \code{type} determines the type of dependency to create, options...
library(MASS);library(NlcOptim) #PROBLEM 1# obj=function(x){ return((600-3*x[1]+x[2])*x[1]+(800-2*x[2]+x[1])*x[2])*-1 } x = c(0,0) #solution for part a #constraint con = function(x){ f = NULL f = rbind(f,(-5*X[2]+2500)/12) f = rbind(f,(-12*X[1]+2500)/5) return(list(ceq = f, c =NULL)) } #x0 ...
/LSN9_Homework_problems.r
no_license
bonviefosam/MA391_Fosam
R
false
false
2,668
r
library(MASS);library(NlcOptim) #PROBLEM 1# obj=function(x){ return((600-3*x[1]+x[2])*x[1]+(800-2*x[2]+x[1])*x[2])*-1 } x = c(0,0) #solution for part a #constraint con = function(x){ f = NULL f = rbind(f,(-5*X[2]+2500)/12) f = rbind(f,(-12*X[1]+2500)/5) return(list(ceq = f, c =NULL)) } #x0 ...
#' Plot Density Histograms and set cutoffs with mouse #' @rdname setCutoff #' @aliases setCutoff #' #' @details \code{Plots density histograms and saves cutoffs in a dataframe}. #' @examples \donttest{# setCutof(expressionData) #' } #' @export setCutoff=function(exprData, # data...
/PRI-base/_archive/20200217_delta/R-packages/needfulFuns_1.1/needfulFuns/R/set_cutoffs.R
no_license
yhoang/drfz_PRI
R
false
false
2,432
r
#' Plot Density Histograms and set cutoffs with mouse #' @rdname setCutoff #' @aliases setCutoff #' #' @details \code{Plots density histograms and saves cutoffs in a dataframe}. #' @examples \donttest{# setCutof(expressionData) #' } #' @export setCutoff=function(exprData, # data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pivot_wider.R \name{pivot_wider.} \alias{pivot_wider.} \title{Pivot data from long to wide} \usage{ pivot_wider.( .df, names_from = name, values_from = value, id_cols = NULL, names_sep = "_", values_fn = NULL, values_fill = NULL...
/man/pivot_wider..Rd
permissive
moutikabdessabour/tidytable
R
false
true
1,998
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pivot_wider.R \name{pivot_wider.} \alias{pivot_wider.} \title{Pivot data from long to wide} \usage{ pivot_wider.( .df, names_from = name, values_from = value, id_cols = NULL, names_sep = "_", values_fn = NULL, values_fill = NULL...
# ==================================== # = Functions for cleaning spp names = # ==================================== #' Cull Bad Species Characters #' #' Remove/ fix characters that are unlikely to be part of a species name #' #' @param x A character vector #' #' @details #' \code{cull} performs the following corre...
/R/formatValue.R
no_license
afredston/trawlData
R
false
false
7,760
r
# ==================================== # = Functions for cleaning spp names = # ==================================== #' Cull Bad Species Characters #' #' Remove/ fix characters that are unlikely to be part of a species name #' #' @param x A character vector #' #' @details #' \code{cull} performs the following corre...
######################### # Title: Explore Medicaid Health Quality Measures Data 2018 # Purpose: Create exploratory graphics to identify potential covariates ######################### # SETUP ------------------------------------------------------------------- rm(list = ls()) gc(reset = TRUE) library(tidyverse) li...
/superseded/Exploratory.R
no_license
rahmed517/bst210_final
R
false
false
8,625
r
######################### # Title: Explore Medicaid Health Quality Measures Data 2018 # Purpose: Create exploratory graphics to identify potential covariates ######################### # SETUP ------------------------------------------------------------------- rm(list = ls()) gc(reset = TRUE) library(tidyverse) li...
library(mbbefd) ### Name: exposureCurve ### Title: Exposure curves for the beta and the uniform distributions. ### Aliases: exposureCurve ecbeta ecunif ### ** Examples x <- 0.2 ecbeta(x, 2, 3) ecunif(x)
/data/genthat_extracted_code/mbbefd/examples/exposureCurve.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
213
r
library(mbbefd) ### Name: exposureCurve ### Title: Exposure curves for the beta and the uniform distributions. ### Aliases: exposureCurve ecbeta ecunif ### ** Examples x <- 0.2 ecbeta(x, 2, 3) ecunif(x)
# common function # Created date: 2019/3/28 # Modification date: 2021/11/29 # Author: mariko ohtsuka #' @title #' Exit function #' @description #' Exit from this program #' @return #' No return value Exit <- function(){ .Internal(.invokeRestart(list(NULL, NULL), NULL)) } #' @title #' Checking if the column name exist...
/program/ptosh-format-function.R
permissive
nnh/ptosh-format
R
false
false
9,378
r
# common function # Created date: 2019/3/28 # Modification date: 2021/11/29 # Author: mariko ohtsuka #' @title #' Exit function #' @description #' Exit from this program #' @return #' No return value Exit <- function(){ .Internal(.invokeRestart(list(NULL, NULL), NULL)) } #' @title #' Checking if the column name exist...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataset.R \name{Indices} \alias{Indices} \title{Dataset} \usage{ Indices() } \description{ Dataset } \examples{ \dontrun{ Indices() } } \seealso{ Other datasets in directories other than Reference or datastore: \code{\link{DebtMarketClimate}}...
/man/Indices.Rd
no_license
andybue/r2dii.dataraw
R
false
true
1,622
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataset.R \name{Indices} \alias{Indices} \title{Dataset} \usage{ Indices() } \description{ Dataset } \examples{ \dontrun{ Indices() } } \seealso{ Other datasets in directories other than Reference or datastore: \code{\link{DebtMarketClimate}}...
\name{Maxwell.triangle} \alias{Maxwell.triangle} \alias{Maxwell.triangle.color} \alias{Maxwell.triangle.color.fill} \title{Plot the Maxwell triangle} \description{\code{Maxwell.triangle} Plots the Maxwell triangle, as a black line, a color line or a polygon. } \usage{Maxwell.triangle(primariesRGB=get("whitepointsRGB",...
/man/Maxwell.triangle.Rd
no_license
playwar/colorscience
R
false
false
825
rd
\name{Maxwell.triangle} \alias{Maxwell.triangle} \alias{Maxwell.triangle.color} \alias{Maxwell.triangle.color.fill} \title{Plot the Maxwell triangle} \description{\code{Maxwell.triangle} Plots the Maxwell triangle, as a black line, a color line or a polygon. } \usage{Maxwell.triangle(primariesRGB=get("whitepointsRGB",...
## File Name: tam_pv_mcmc_parameter_samples.R ## File Version: 0.19 tam_pv_mcmc_parameter_samples <- function(beta_samples, variance_samples) { require_namespace_msg("coda") #--- parameter_samples parameter_samples <- data.frame( beta_samples, variance_samples ) saved_iter <- attr( beta_samples...
/R/tam_pv_mcmc_parameter_samples.R
no_license
cran/TAM
R
false
false
1,969
r
## File Name: tam_pv_mcmc_parameter_samples.R ## File Version: 0.19 tam_pv_mcmc_parameter_samples <- function(beta_samples, variance_samples) { require_namespace_msg("coda") #--- parameter_samples parameter_samples <- data.frame( beta_samples, variance_samples ) saved_iter <- attr( beta_samples...
options( digits = 16 ) library( jsonlite ) d1 = 9 d2 = 1 probs = c( 0, 0.25, 0.5, 0.75, 1 ) y = qf( probs, d1, d2 ) cat( y, sep = ",\n" ) data = list( d1 = d1, d2 = d2, data = probs, expected = y ) write( toJSON( data, digits = 16, auto_unbox = TRUE ), "./test/fixtures/partial.json" )
/test/fixtures/test.partial.R
permissive
distributions-io/f-quantile
R
false
false
295
r
options( digits = 16 ) library( jsonlite ) d1 = 9 d2 = 1 probs = c( 0, 0.25, 0.5, 0.75, 1 ) y = qf( probs, d1, d2 ) cat( y, sep = ",\n" ) data = list( d1 = d1, d2 = d2, data = probs, expected = y ) write( toJSON( data, digits = 16, auto_unbox = TRUE ), "./test/fixtures/partial.json" )
library(CDVine) ### Name: BiCopCDF ### Title: Distribution function of a bivariate copula ### Aliases: BiCopCDF ### ** Examples # simulate from a bivariate t-copula simdata = BiCopSim(300,2,-0.7,par2=4) # evaluate the distribution function of the bivariate t-copula u1 = simdata[,1] u2 = simdata[,2] BiCopCDF(u1,u2,...
/data/genthat_extracted_code/CDVine/examples/BiCopCDF.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
338
r
library(CDVine) ### Name: BiCopCDF ### Title: Distribution function of a bivariate copula ### Aliases: BiCopCDF ### ** Examples # simulate from a bivariate t-copula simdata = BiCopSim(300,2,-0.7,par2=4) # evaluate the distribution function of the bivariate t-copula u1 = simdata[,1] u2 = simdata[,2] BiCopCDF(u1,u2,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_steps.R \name{plot_steps} \alias{plot_steps} \title{Plot steps vs time (minute)} \usage{ plot_steps(pa_data) } \arguments{ \item{pa_data}{dataframe with one minute epoch dat} } \value{ a line graph of steps for each minute over the study...
/Accelerometer/man/plot_steps.Rd
no_license
ccmoore/AccelData_Processing
R
false
true
451
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_steps.R \name{plot_steps} \alias{plot_steps} \title{Plot steps vs time (minute)} \usage{ plot_steps(pa_data) } \arguments{ \item{pa_data}{dataframe with one minute epoch dat} } \value{ a line graph of steps for each minute over the study...
# clear environment rm(list = ls()) gc() # setwd( "C:/Users/James.Thorson/Desktop/Project_git/Trout_GRF/" ) ####################### # Load libraries ####################### # install.packages("minqa") library(TMB) library(dplyr) library(minqa) library(optimx) library(ggplot2) source("Functions/Input_Functions.R") sour...
/Code/O-U_GMRF_W_Susquehanna_YOY.R
no_license
djhocking/Trout_GRF
R
false
false
20,450
r
# clear environment rm(list = ls()) gc() # setwd( "C:/Users/James.Thorson/Desktop/Project_git/Trout_GRF/" ) ####################### # Load libraries ####################### # install.packages("minqa") library(TMB) library(dplyr) library(minqa) library(optimx) library(ggplot2) source("Functions/Input_Functions.R") sour...
\name{pca} \alias{pca} \title{Principal Components Analysis} \description{Performs a principal components analysis on the given data matrix and returns the results as an object of class "\code{prcomp}".} \usage{ pca(x, ...) } \arguments{ \item{x}{a matrix of data.} \item{...}{arguments passed to \code{\link{pr...
/man/pca.Rd
no_license
cran/KODAMA
R
false
false
1,911
rd
\name{pca} \alias{pca} \title{Principal Components Analysis} \description{Performs a principal components analysis on the given data matrix and returns the results as an object of class "\code{prcomp}".} \usage{ pca(x, ...) } \arguments{ \item{x}{a matrix of data.} \item{...}{arguments passed to \code{\link{pr...
\name{ThresholdGram} \alias{ThresholdGram} \title{ Thresholds the gram matrix } \description{ Thresholds the gram matrix } \usage{ ThresholdGram(gram.full, delta = 1/log(dim(gram.full)[1])) } \arguments{ \item{gram.full}{ the gram matrix before the elementwise thresholding, a p by p symmetric matrix } ...
/man/ThresholdGram.Rd
no_license
cran/ScreenClean
R
false
false
768
rd
\name{ThresholdGram} \alias{ThresholdGram} \title{ Thresholds the gram matrix } \description{ Thresholds the gram matrix } \usage{ ThresholdGram(gram.full, delta = 1/log(dim(gram.full)[1])) } \arguments{ \item{gram.full}{ the gram matrix before the elementwise thresholding, a p by p symmetric matrix } ...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "boston") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")...
/models/openml_boston/classification_binaryClass/b67e683e3f892e00ee56abfbce053b69/code.R
no_license
lukaszbrzozowski/CaseStudies2019S
R
false
false
735
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "boston") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ss_targets.R \name{tar_shinyspring} \alias{tar_shinyspring} \title{ease of use method for initializing shinyspring in a target} \usage{ tar_shinyspring(config_file) } \arguments{ \item{config_file}{the config.yml for shinyspring application.}...
/man/tar_shinyspring.Rd
no_license
shambhu112/shinyspring
R
false
true
532
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ss_targets.R \name{tar_shinyspring} \alias{tar_shinyspring} \title{ease of use method for initializing shinyspring in a target} \usage{ tar_shinyspring(config_file) } \arguments{ \item{config_file}{the config.yml for shinyspring application.}...
## Reading data and creating a subset with the relevant dates data<-read.table(file="household_power_consumption.txt",sep=";",header=TRUE,stringsAsFactors=FALSE,na.strings = '?' ,colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) datar<-data[d...
/plot1.R
no_license
yarharel/ExData_Plotting1
R
false
false
705
r
## Reading data and creating a subset with the relevant dates data<-read.table(file="household_power_consumption.txt",sep=";",header=TRUE,stringsAsFactors=FALSE,na.strings = '?' ,colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) datar<-data[d...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/cervix.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.75,family="gaussian",standardize=TRUE) sink('./cervix_079.txt',append=TRUE)...
/Model/EN/Correlation/cervix/cervix_079.R
no_license
esbgkannan/QSMART
R
false
false
350
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/cervix.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.75,family="gaussian",standardize=TRUE) sink('./cervix_079.txt',append=TRUE)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots_infection_summary_table.R \name{infection_summary_table_fxn} \alias{infection_summary_table_fxn} \title{Title} \usage{ infection_summary_table_fxn(pop, partners, dframe, ind) } \arguments{ \item{x}{A number.} \item{y}{A number.} } \val...
/man/infection_summary_table_fxn.Rd
no_license
EvoNetHIV/RoleSPVL
R
false
true
449
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots_infection_summary_table.R \name{infection_summary_table_fxn} \alias{infection_summary_table_fxn} \title{Title} \usage{ infection_summary_table_fxn(pop, partners, dframe, ind) } \arguments{ \item{x}{A number.} \item{y}{A number.} } \val...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AIC.list.R \name{AIC.list} \alias{AIC.list} \title{Assess the AIC for all models in a list of models} \usage{ \method{AIC}{list}(object, ..., assess.best = TRUE) } \arguments{ \item{object}{the list of models} \item{\dots}{paramet...
/man/AIC.list.Rd
no_license
cran/PKNCA
R
false
true
811
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AIC.list.R \name{AIC.list} \alias{AIC.list} \title{Assess the AIC for all models in a list of models} \usage{ \method{AIC}{list}(object, ..., assess.best = TRUE) } \arguments{ \item{object}{the list of models} \item{\dots}{paramet...
if (Sys.getenv("JAVA_HOME")!="") Sys.setenv(JAVA_HOME="") library(RODBC) library(shiny) library(rJava) library(plan) library(xlsx) library(DiagrammeR) library(magrittr) library(igraph) library(network) library(sna) library(ndtv) library(dplyr) library(grDevices) library(plotrix) library(plotly) library(plotrix) libr...
/Applications/Project Management/Helper.R
no_license
paulmattheww/Original-Projects
R
false
false
953
r
if (Sys.getenv("JAVA_HOME")!="") Sys.setenv(JAVA_HOME="") library(RODBC) library(shiny) library(rJava) library(plan) library(xlsx) library(DiagrammeR) library(magrittr) library(igraph) library(network) library(sna) library(ndtv) library(dplyr) library(grDevices) library(plotrix) library(plotly) library(plotrix) libr...
source("lib/needleman_wunsch/scoring_function/general.R") needleman_wunsch <- function(seq1, seq2, s, select_min=F) { # get the lengths of sequences len_seq1 <- dim(seq1)[2] len_seq2 <- dim(seq2)[2] # initialize variable g1 <- matrix("-", nrow = dim(seq1)[1]) g2 <- matrix("-", nrow = dim(seq2)[1]) # m...
/R/lib/needleman_wunsch/NeedlemanWunsch.R
no_license
KiyamaMizuki/ryukyu_lang
R
false
false
2,501
r
source("lib/needleman_wunsch/scoring_function/general.R") needleman_wunsch <- function(seq1, seq2, s, select_min=F) { # get the lengths of sequences len_seq1 <- dim(seq1)[2] len_seq2 <- dim(seq2)[2] # initialize variable g1 <- matrix("-", nrow = dim(seq1)[1]) g2 <- matrix("-", nrow = dim(seq2)[1]) # m...
filled.contour.custom <- function (x = seq(0, 1, length.out = nrow(z)), y = seq(0, 1, length.out = ncol(z)), z, xlim = range(x, finite = TRUE), ylim = range(y, finite = TRUE), zlim = range(z, finite = TRUE), levels = pretty(zlim, nlevels), nlevels = 20, color.palette = cm.colors, col = color.pal...
/src/plotting/filled.contour.custom.r
no_license
douglask3/fireMIPbenchmarking
R
false
false
1,487
r
filled.contour.custom <- function (x = seq(0, 1, length.out = nrow(z)), y = seq(0, 1, length.out = ncol(z)), z, xlim = range(x, finite = TRUE), ylim = range(y, finite = TRUE), zlim = range(z, finite = TRUE), levels = pretty(zlim, nlevels), nlevels = 20, color.palette = cm.colors, col = color.pal...
testlist <- list(genotype = c(1701117952L, 1701143909L, 1701117952L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(detectRUNS:::genoConvertCpp,testlist) str(result)
/detectRUNS/inst/testfiles/genoConvertCpp/libFuzzer_genoConvertCpp/genoConvertCpp_valgrind_files/1609875344-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
178
r
testlist <- list(genotype = c(1701117952L, 1701143909L, 1701117952L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(detectRUNS:::genoConvertCpp,testlist) str(result)
###### # Creating a custom cursor ###### ## This data is in X bitmap format, and can be created with the 'bitmap' ## utility in X11 cursor1_width <- 16 cursor1_height <- 16 cursor1_bits <- c(0x80, 0x01, 0x40, 0x02, 0x20, 0x04, 0x10, 0x08, 0x08, 0x10, 0x04, 0x20, 0x82, 0x41, 0x41, 0x82, 0x41, 0x82, 0x...
/RGtk2/inst/examples/gdk-Cursors.R
no_license
lawremi/RGtk2
R
false
false
1,120
r
###### # Creating a custom cursor ###### ## This data is in X bitmap format, and can be created with the 'bitmap' ## utility in X11 cursor1_width <- 16 cursor1_height <- 16 cursor1_bits <- c(0x80, 0x01, 0x40, 0x02, 0x20, 0x04, 0x10, 0x08, 0x08, 0x10, 0x04, 0x20, 0x82, 0x41, 0x41, 0x82, 0x41, 0x82, 0x...
# クラス定義 setClass( "Person", representation( name = "character", birth = "Date" ), prototype = list( name = as.character(NULL), birth = as.Date(as.character(NULL)) ) ) ogiwara <- new("Person", name = "ogiwara", birth = as.Date("1999-05-30")) print(ogiwara@name)
/hello.R
no_license
MACVASCO/R
R
false
false
300
r
# クラス定義 setClass( "Person", representation( name = "character", birth = "Date" ), prototype = list( name = as.character(NULL), birth = as.Date(as.character(NULL)) ) ) ogiwara <- new("Person", name = "ogiwara", birth = as.Date("1999-05-30")) print(ogiwara@name)
#' The payments Shiny app #' #' The Shiny module UI for the Stripe payments Shiny app. This app can be easily added #' to your Shiny apps that use polished. #' #' @param id the Shiny module id #' @param custom_ui Either \code{NULL}, the default, or a list of 2 elements containing custom #' UI to add additional 'shiny...
/R/app_module.R
no_license
nathhenry3/polishedpayments
R
false
false
13,243
r
#' The payments Shiny app #' #' The Shiny module UI for the Stripe payments Shiny app. This app can be easily added #' to your Shiny apps that use polished. #' #' @param id the Shiny module id #' @param custom_ui Either \code{NULL}, the default, or a list of 2 elements containing custom #' UI to add additional 'shiny...
### ### R routines for the R package mvmeta (c) Antonio Gasparrini 2012-2014 # blup <- function (object, ...) UseMethod("blup")
/mvmeta/R/blup.R
no_license
ingted/R-Examples
R
false
false
133
r
### ### R routines for the R package mvmeta (c) Antonio Gasparrini 2012-2014 # blup <- function (object, ...) UseMethod("blup")
#' @title Density Function for Asymmetric Apparatus #' #' @description This function computes the density as a function of distance for #' the asymmetric appratus. #' #' @param d A length 2 numeric vector of distances values in cm. #' #' @param angle1 A scalar for the angle in deg that the left arm makes with #' vert...
/R/skew_density_general.R
no_license
sjmgarnier/projectOptimalBridge
R
false
false
2,453
r
#' @title Density Function for Asymmetric Apparatus #' #' @description This function computes the density as a function of distance for #' the asymmetric appratus. #' #' @param d A length 2 numeric vector of distances values in cm. #' #' @param angle1 A scalar for the angle in deg that the left arm makes with #' vert...
rm(list = ls()) set.seed(69) setwd("/Users/michaeljoyce/hw-machinelearning2k15/hw8/") #Mike #setwd("~/Documents/R/machinelearning/machinelearning2k15/hw8/") #Jack #setwd("C:/Users/Tom/Dropbox/Booth/Machine Learning/machinelearning2k15/hw8/") #Tom library(igraph) data(karate, package = "igraphdata") # nodes in fac...
/hw8/hw8.r
no_license
jackcarter/machinelearning2k15
R
false
false
4,126
r
rm(list = ls()) set.seed(69) setwd("/Users/michaeljoyce/hw-machinelearning2k15/hw8/") #Mike #setwd("~/Documents/R/machinelearning/machinelearning2k15/hw8/") #Jack #setwd("C:/Users/Tom/Dropbox/Booth/Machine Learning/machinelearning2k15/hw8/") #Tom library(igraph) data(karate, package = "igraphdata") # nodes in fac...
=begin =AddressDeleteアクション 選択されたアドレス帳のエントリを削除します。 ==引数 なし ==有効なウィンドウ・ビュー *アドレス帳ウィンドウ =end
/docs/AddressDeleteAction.rd
permissive
snakamura/q3
R
false
false
216
rd
=begin =AddressDeleteアクション 選択されたアドレス帳のエントリを削除します。 ==引数 なし ==有効なウィンドウ・ビュー *アドレス帳ウィンドウ =end
# require libraries library(dplyr) # source in scripts source("scripts/data_wrangling_scripts.r") # Read in data data <- read.csv("data/911Calls.csv", stringsAsFactors = FALSE) # data for the day_graph day_graph_data <- data %>% mutate(date = unlist(lapply(data$At.Scene.Time, format_date))) %>% group_by(date) %>...
/Scripts/data_wrangling.r
no_license
drewjmccoy/Seattle-911-Calls-2015
R
false
false
1,102
r
# require libraries library(dplyr) # source in scripts source("scripts/data_wrangling_scripts.r") # Read in data data <- read.csv("data/911Calls.csv", stringsAsFactors = FALSE) # data for the day_graph day_graph_data <- data %>% mutate(date = unlist(lapply(data$At.Scene.Time, format_date))) %>% group_by(date) %>...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 3.15570419661883e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613110173-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
257
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 3.15570419661883e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
\name{oregon.tract} \Rdversion{1.1} \alias{oregon.tract} \docType{data} \title{ oregon.tract } \description{ oregon.tract is a \code{\link[sp:SpatialPolygonsDataFrame]{SpatialPolygonsDataFrame}} with polygons made from the 2000 US Census tiger/line boundary files (\url{http://www.census.gov/geo/www/tiger/}) for Census...
/man/oregon.tract.Rd
no_license
cran/UScensus2000tract
R
false
false
9,660
rd
\name{oregon.tract} \Rdversion{1.1} \alias{oregon.tract} \docType{data} \title{ oregon.tract } \description{ oregon.tract is a \code{\link[sp:SpatialPolygonsDataFrame]{SpatialPolygonsDataFrame}} with polygons made from the 2000 US Census tiger/line boundary files (\url{http://www.census.gov/geo/www/tiger/}) for Census...
#Title: Jags-Model-2 #Author: Jack Crum #Date: 4/13/2018 #Set working directory setwd("C:/Users/sjcrum/Documents/Bayesian Statistics/DataSets/Visas") #Source utilities package source("DBDA2E-utilities.R") #=============================================================================== #Generate MCMC c...
/Jags-Model-2.R
no_license
jpcrum/VisaApplicationCertification
R
false
false
9,655
r
#Title: Jags-Model-2 #Author: Jack Crum #Date: 4/13/2018 #Set working directory setwd("C:/Users/sjcrum/Documents/Bayesian Statistics/DataSets/Visas") #Source utilities package source("DBDA2E-utilities.R") #=============================================================================== #Generate MCMC c...
trainer=function(m,X,y){ model_type=m[['model_type']] if (model_type %in% c('randomForest','cv.glmnet')){ args = c(m[['args']], XSetter(m,X), ySetter(m,y)) }else{ args = c(m[['args']], formulaSetter(m,X,y)) } set.seed(m[['seed']]) model = do.call(model_type,args) return (model...
/david/scripts/lib/trainer.R
no_license
dtfoster/Santander
R
false
false
324
r
trainer=function(m,X,y){ model_type=m[['model_type']] if (model_type %in% c('randomForest','cv.glmnet')){ args = c(m[['args']], XSetter(m,X), ySetter(m,y)) }else{ args = c(m[['args']], formulaSetter(m,X,y)) } set.seed(m[['seed']]) model = do.call(model_type,args) return (model...
library(shiny) library(shinythemes) library(rsconnect) library(packrat) library(htmltools) library(DT) library(sf) library(leaflet) library(leafpop) library(tidyverse) library(scales) # Data Import sd1_zcta <- read.csv("data/sd1_zcta.csv", stringsAsFactors = FALSE) sd2_zcta <- read.csv("data/sd...
/Shiny_app/app.R
no_license
jxmontano/supervisorial-district-census-data
R
false
false
60,866
r
library(shiny) library(shinythemes) library(rsconnect) library(packrat) library(htmltools) library(DT) library(sf) library(leaflet) library(leafpop) library(tidyverse) library(scales) # Data Import sd1_zcta <- read.csv("data/sd1_zcta.csv", stringsAsFactors = FALSE) sd2_zcta <- read.csv("data/sd...
# Packages install.packages('pacman') # only need to do once! This package helps you install or load the packages you need pacman::p_load(rio,tidyverse)# load or install necessary packages # Directories (change to the location where you have files) inputdir <- "C:/Users/david/Dropbox/Governance analysis/tables/" outp...
/3_Analysis/1_Social/1_Experimental_analyses/Governance/stakeholder_involvement_counts.R
no_license
WWF-ConsEvidence/MPAMystery
R
false
false
2,785
r
# Packages install.packages('pacman') # only need to do once! This package helps you install or load the packages you need pacman::p_load(rio,tidyverse)# load or install necessary packages # Directories (change to the location where you have files) inputdir <- "C:/Users/david/Dropbox/Governance analysis/tables/" outp...
library(lubridate) library(maps) library(dplyr) library(scales) library(RColorBrewer) #-------------Function definitions-------------# # Takes a df containing all observations of a species. # Returns a list of dfs, each df being observations for a single individual. extract_individuals_atn <- function(dataset) { in...
/DataProcessing/ATN_data_proc.R
no_license
gabezuckerman/Marine_Migratory
R
false
false
4,493
r
library(lubridate) library(maps) library(dplyr) library(scales) library(RColorBrewer) #-------------Function definitions-------------# # Takes a df containing all observations of a species. # Returns a list of dfs, each df being observations for a single individual. extract_individuals_atn <- function(dataset) { in...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Gaussian_Inference.r \name{dPosterior.GaussianInvWishart} \alias{dPosterior.GaussianInvWishart} \title{Density function of the posterior distribution of a "GaussianInvWishart" object} \usage{ \method{dPosterior}{GaussianInvWishart}(obj, Sigma...
/man/dPosterior.GaussianInvWishart.Rd
permissive
seanahmad/Bayesian-Bricks
R
false
true
1,331
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Gaussian_Inference.r \name{dPosterior.GaussianInvWishart} \alias{dPosterior.GaussianInvWishart} \title{Density function of the posterior distribution of a "GaussianInvWishart" object} \usage{ \method{dPosterior}{GaussianInvWishart}(obj, Sigma...
#' @name traineR #' @aliases traineR #' @docType package #' @title Predictive (Classification and Regression) Models Homologator #' @author #' Maintainer: Oldemar Rodriguez Rojas <oldemar.rodriguez@ucr.ac.cr>\cr #' \itemize{ #' \item Oldemar Rodriguez Rojas <oldemar.rodriguez@ucr.ac.cr> #' \item Andres Navarro D #'...
/R/traineR.R
no_license
PROMiDAT/traineR
R
false
false
1,935
r
#' @name traineR #' @aliases traineR #' @docType package #' @title Predictive (Classification and Regression) Models Homologator #' @author #' Maintainer: Oldemar Rodriguez Rojas <oldemar.rodriguez@ucr.ac.cr>\cr #' \itemize{ #' \item Oldemar Rodriguez Rojas <oldemar.rodriguez@ucr.ac.cr> #' \item Andres Navarro D #'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract_text.R \name{extract_text} \alias{extract_text} \title{extract_text} \usage{ extract_text(file, pages = NULL) } \arguments{ \item{file}{A character string specifying the path or URL to a PDF file.} \item{pages}{An optional integer ve...
/man/extract_text.Rd
permissive
darioromero/tabulizer
R
false
true
1,001
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract_text.R \name{extract_text} \alias{extract_text} \title{extract_text} \usage{ extract_text(file, pages = NULL) } \arguments{ \item{file}{A character string specifying the path or URL to a PDF file.} \item{pages}{An optional integer ve...
d3$weekday <- weekdays(d3$eventDateTime) perhour <- sqldf("select year, mon, weekday, mday, hour, sum(SCREEN_ACTIVE) as activescreencount, count(SCREEN_ACTIVE) as screenobs, (CASE WHEN sum(plugged) > 0 THEN 1 ELSE 0 END) as plugged from d3 group by year, mon, weekday, mday, hour ...
/feinbergPerHour.R
no_license
samhillis/FeinbergProject
R
false
false
1,341
r
d3$weekday <- weekdays(d3$eventDateTime) perhour <- sqldf("select year, mon, weekday, mday, hour, sum(SCREEN_ACTIVE) as activescreencount, count(SCREEN_ACTIVE) as screenobs, (CASE WHEN sum(plugged) > 0 THEN 1 ELSE 0 END) as plugged from d3 group by year, mon, weekday, mday, hour ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/contemporaryPhy.R \name{contemporaryPhy} \alias{contemporaryPhy} \title{prune tree and data to lineages present in a time bin in the past} \usage{ contemporaryPhy( phy, maxBin, minBin, reScale = 0, allTraits, closest.min = TRUE, ...
/fuzzedpackages/motmot/man/contemporaryPhy.Rd
no_license
akhikolla/testpackages
R
false
true
2,504
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/contemporaryPhy.R \name{contemporaryPhy} \alias{contemporaryPhy} \title{prune tree and data to lineages present in a time bin in the past} \usage{ contemporaryPhy( phy, maxBin, minBin, reScale = 0, allTraits, closest.min = TRUE, ...
rm(list = ls()) library("snowfall") options(error = recover) sfInit(parallel = TRUE, cpus = 8, type = "SOCK") sfLibrary("rayThesis", character.only = TRUE) sfLibrary("ggplot2", character.only = TRUE) sfLibrary("grid", character.only = TRUE) L_subject_numbers <- c("02", "07", "22", "28") R_subject_numbers <- c("01", "...
/inst/appliedPAClassificationScripts/preprocess/Sasaki/initial_plots_sasaki_lab_unprocessed.R
no_license
elray1/PACwithDDM
R
false
false
5,974
r
rm(list = ls()) library("snowfall") options(error = recover) sfInit(parallel = TRUE, cpus = 8, type = "SOCK") sfLibrary("rayThesis", character.only = TRUE) sfLibrary("ggplot2", character.only = TRUE) sfLibrary("grid", character.only = TRUE) L_subject_numbers <- c("02", "07", "22", "28") R_subject_numbers <- c("01", "...
#' @import xml2 #' @import ape NULL #' Lists the offspring of each node in a edgelist #' @noRd list_offspring <- function(edgelist, size) { o <- split(edgelist[,2], edgelist[,1]) a <- matrix(list(integer(0L)), ncol=1, nrow = size) a[as.integer(names(o))] <- unname(o) a[,1] } #' Prepares a peeling sequence to...
/R/write.R
permissive
USCbiostats/rphyloxml
R
false
false
7,130
r
#' @import xml2 #' @import ape NULL #' Lists the offspring of each node in a edgelist #' @noRd list_offspring <- function(edgelist, size) { o <- split(edgelist[,2], edgelist[,1]) a <- matrix(list(integer(0L)), ncol=1, nrow = size) a[as.integer(names(o))] <- unname(o) a[,1] } #' Prepares a peeling sequence to...
#' Coerce an ggvis object to a vega list. #' #' This generic function powers the coercion of ggvis objects to vega #' compatible data structures. #' #' @param x an object to convert to vega #' @return a list. When converted to JSON, will be the type of structure #' that vega expects. #' @keywords internal as.vega <- ...
/R/vega.R
no_license
renzhonglu/ggvis
R
false
false
5,793
r
#' Coerce an ggvis object to a vega list. #' #' This generic function powers the coercion of ggvis objects to vega #' compatible data structures. #' #' @param x an object to convert to vega #' @return a list. When converted to JSON, will be the type of structure #' that vega expects. #' @keywords internal as.vega <- ...
## makeCacheMatrix and cacheSolve find the inverse of a matrix, stores the inverse ## in cache and returns the inverse when it is called. ## makeCacheMatrix allows us to store the inverse of a matrix in cache. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { ...
/cachematrix.R
no_license
K9Nik/ProgrammingAssignment2
R
false
false
967
r
## makeCacheMatrix and cacheSolve find the inverse of a matrix, stores the inverse ## in cache and returns the inverse when it is called. ## makeCacheMatrix allows us to store the inverse of a matrix in cache. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { ...
#Expectation Maximization Problem library(mvtnorm) # calculate distance between previous and latest mu distance_mu <- function(old_mu, new_mu, k) { dist_center <- 0 # sum of squares of distance between means for each center for (i in 1:k){ dist_center <- dist_center + (dist(rbind(old_mu[[i]],new_mu[[i]]))[1...
/Unsupervised learning/Code/Gk.R
no_license
BBaggines/ML
R
false
false
3,724
r
#Expectation Maximization Problem library(mvtnorm) # calculate distance between previous and latest mu distance_mu <- function(old_mu, new_mu, k) { dist_center <- 0 # sum of squares of distance between means for each center for (i in 1:k){ dist_center <- dist_center + (dist(rbind(old_mu[[i]],new_mu[[i]]))[1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PlotData.R \name{ggplot_fp} \alias{ggplot_fp} \title{Internal ggplot Wrapper to Graph Frequency Profiles} \usage{ ggplot_fp(data1, resolution = resolution, step = step, yAxis = yAxis, xAxisUnits = xAxisUnits, xmin = xmin, xmax = xmax, tic...
/man/ggplot_fp.Rd
no_license
AIBRT/FreqProf
R
false
true
1,093
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PlotData.R \name{ggplot_fp} \alias{ggplot_fp} \title{Internal ggplot Wrapper to Graph Frequency Profiles} \usage{ ggplot_fp(data1, resolution = resolution, step = step, yAxis = yAxis, xAxisUnits = xAxisUnits, xmin = xmin, xmax = xmax, tic...
devtools::install_github('charlie86/spotifyr') devtools::install_github('JosiahParry/geniusR') library(spotifyr) library(tidyverse) #set system enviroment variables for client ID and Secret ID Sys.setenv(SPOTIFY_CLIENT_ID = '##########################') Sys.setenv(SPOTIFY_CLIENT_SECRET = '######################...
/spotify_API_scrape.R
no_license
TigMel/Spotify_Artist_Popularity_Predictor
R
false
false
2,335
r
devtools::install_github('charlie86/spotifyr') devtools::install_github('JosiahParry/geniusR') library(spotifyr) library(tidyverse) #set system enviroment variables for client ID and Secret ID Sys.setenv(SPOTIFY_CLIENT_ID = '##########################') Sys.setenv(SPOTIFY_CLIENT_SECRET = '######################...
library(testthat) test_that("Required parameters are present", { expect_error(CreateGroupPartition()) expect_error(CreateGroupPartition(validationType = "CV")) expect_error(CreateGroupPartition(validationType = "CV", holdoutPct = 20)) expect_error(CreateGroupPartition(validationType = "CV", holdoutPct = 20, pa...
/tests/testthat/test-CreateGroupPartition.R
no_license
cran/datarobot
R
false
false
4,375
r
library(testthat) test_that("Required parameters are present", { expect_error(CreateGroupPartition()) expect_error(CreateGroupPartition(validationType = "CV")) expect_error(CreateGroupPartition(validationType = "CV", holdoutPct = 20)) expect_error(CreateGroupPartition(validationType = "CV", holdoutPct = 20, pa...
library(DBI) library(RPostgres) #conexion a la base conn=dbConnect(RPostgres :: Postgres (),host="52.38.27.79",port="5432",dbname="datos_gye",user="postgres",password="admin1234") #extraer los datos rf14=dbGetQuery(conn,"SELECT latitud,longitud FROM public.trayectoria_gye") #agrupar los datos datos<-rbind(rf14) #gen...
/public/R/analisis_kmeans.R
permissive
ReynaldoBP/fci
R
false
false
641
r
library(DBI) library(RPostgres) #conexion a la base conn=dbConnect(RPostgres :: Postgres (),host="52.38.27.79",port="5432",dbname="datos_gye",user="postgres",password="admin1234") #extraer los datos rf14=dbGetQuery(conn,"SELECT latitud,longitud FROM public.trayectoria_gye") #agrupar los datos datos<-rbind(rf14) #gen...
#' LSOA data #' #' A dataset containing 2011 LSOA boundaries for London. #' Boundaries are not precise and have been simplified to remove around 90\% of points while keeping accuracy of boundaries as high as possible. #' #' @format A sf object with 4 variables: #' \describe{ #' \item{Name}{LSOA (2011) Name} #' \item{Co...
/R/data.R
permissive
Chrisjb/RDistanceMatrix
R
false
false
589
r
#' LSOA data #' #' A dataset containing 2011 LSOA boundaries for London. #' Boundaries are not precise and have been simplified to remove around 90\% of points while keeping accuracy of boundaries as high as possible. #' #' @format A sf object with 4 variables: #' \describe{ #' \item{Name}{LSOA (2011) Name} #' \item{Co...
\name{ecf} \docType{data} \alias{ecf} \title{East Coast Fever transmission dynamics} \description{ \emph{Theileriosis} or East Coast Fever (ECF) is a major cattle disease in East and Southern Africa. The disease is caused by \emph{Theileria parva} which is transmitted by the ticks \emph{Rhipicephalus append...
/man/ecf.Rd
no_license
cran/parfm
R
false
false
3,577
rd
\name{ecf} \docType{data} \alias{ecf} \title{East Coast Fever transmission dynamics} \description{ \emph{Theileriosis} or East Coast Fever (ECF) is a major cattle disease in East and Southern Africa. The disease is caused by \emph{Theileria parva} which is transmitted by the ticks \emph{Rhipicephalus append...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/limitedImpute.R \name{limitedImpute} \alias{limitedImpute} \title{Limited last observation carried forward imputation} \usage{ limitedImpute(var, date, limit) } \arguments{ \item{var}{Variable to be imputed forward in time.} \item{da...
/man/limitedImpute.Rd
no_license
tranlm/lrecImpact
R
false
false
1,046
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/limitedImpute.R \name{limitedImpute} \alias{limitedImpute} \title{Limited last observation carried forward imputation} \usage{ limitedImpute(var, date, limit) } \arguments{ \item{var}{Variable to be imputed forward in time.} \item{da...
setwd("C://Users//NEW//Desktop//big_data_proj") mydata<-read.csv("test1.csv") mydata tot_pos<-sum(mydata$positive) tot_pos tot_neg<-sum(mydata$negative) tot_neg tot_overall<-sum(mydata$overall) tot_overall division <- c(tot_pos,tot_neg) lbls <- c("Positve Sentiment", "Negative Sentiment") percentage <- round(division...
/R_Plots/Pie chart of overall sentiment.R
no_license
d3bd33p/hadoop_sentiment
R
false
false
524
r
setwd("C://Users//NEW//Desktop//big_data_proj") mydata<-read.csv("test1.csv") mydata tot_pos<-sum(mydata$positive) tot_pos tot_neg<-sum(mydata$negative) tot_neg tot_overall<-sum(mydata$overall) tot_overall division <- c(tot_pos,tot_neg) lbls <- c("Positve Sentiment", "Negative Sentiment") percentage <- round(division...
# # -------------------- # Set up R rm(list=ls()) library(data.table) library(ggplot2) library(stringr) library(plyr) library(RColorBrewer) library(readxl) # this library loads the data library(stringi) # this creates a data from the file name library(Hmisc) library(tools) library(lubridate) ##-disable scientific not...
/malaria/Updating_Malaria figures_22_07_2019.R
no_license
ihmeuw/idrc
R
false
false
6,782
r
# # -------------------- # Set up R rm(list=ls()) library(data.table) library(ggplot2) library(stringr) library(plyr) library(RColorBrewer) library(readxl) # this library loads the data library(stringi) # this creates a data from the file name library(Hmisc) library(tools) library(lubridate) ##-disable scientific not...
library(nomisr) context("nomis_get_metadata") test_that("nomis_get_metadata return expected format", { skip_on_cran() expect_error(nomis_get_metadata(), "The dataset ID must be specified.") b <- nomis_get_metadata("NM_1_1", "item", search = "*married*") expect_equal(nrow(b), 1) expect_true(tibble::is_tibbl...
/tests/testthat/test_get_metadata.R
permissive
ropensci/nomisr
R
false
false
633
r
library(nomisr) context("nomis_get_metadata") test_that("nomis_get_metadata return expected format", { skip_on_cran() expect_error(nomis_get_metadata(), "The dataset ID must be specified.") b <- nomis_get_metadata("NM_1_1", "item", search = "*married*") expect_equal(nrow(b), 1) expect_true(tibble::is_tibbl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chime_operations.R \name{chime_batch_update_user} \alias{chime_batch_update_user} \title{Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account} \usage{ chime_batch_update_user(A...
/cran/paws.business.applications/man/chime_batch_update_user.Rd
permissive
paws-r/paws
R
false
true
1,622
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chime_operations.R \name{chime_batch_update_user} \alias{chime_batch_update_user} \title{Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account} \usage{ chime_batch_update_user(A...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exprs.R \name{read.gct} \alias{read.gct} \title{Reads ExpressionSet from GCT file.} \usage{ read.gct(gct, ...) } \arguments{ \item{gct}{Path to gct file} \item{...}{additional options for read.csv} } \value{ ExpressionSet object } \descripti...
/man/read.gct.Rd
no_license
assaron/r-utils
R
false
true
367
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exprs.R \name{read.gct} \alias{read.gct} \title{Reads ExpressionSet from GCT file.} \usage{ read.gct(gct, ...) } \arguments{ \item{gct}{Path to gct file} \item{...}{additional options for read.csv} } \value{ ExpressionSet object } \descripti...
# Jake Yeung # Date of Creation: 2019-03-12 # File: ~/projects/scchic/scripts/scripts_analysis/primetime/plot_marker_genes_repressive_marks.R # Summarize repressive marks also show the other genes jstart <- Sys.time() library(dplyr) library(ggplot2) library(JFuncs) library(topicmodels) library(ChIPseeker) library(Ge...
/scripts/scripts_analysis/primetime/plot_marker_genes_repressive_marks.R
no_license
jakeyeung/scChIC-analysis
R
false
false
9,091
r
# Jake Yeung # Date of Creation: 2019-03-12 # File: ~/projects/scchic/scripts/scripts_analysis/primetime/plot_marker_genes_repressive_marks.R # Summarize repressive marks also show the other genes jstart <- Sys.time() library(dplyr) library(ggplot2) library(JFuncs) library(topicmodels) library(ChIPseeker) library(Ge...
# set working directory # setwd("~.../Data") # library for reading json files library("rjson") # json data metro_stations_entrances_data <- fromJSON(file = "metro_stations_entrances.json") # get name, lat, and lon name <- c(); line <- c(); latitude <- c(); longitude <- c() for (i in 1:length(metro_stations_entrance...
/R/metro_stations_entrances.R
no_license
margaretmf/DCMetros
R
false
false
974
r
# set working directory # setwd("~.../Data") # library for reading json files library("rjson") # json data metro_stations_entrances_data <- fromJSON(file = "metro_stations_entrances.json") # get name, lat, and lon name <- c(); line <- c(); latitude <- c(); longitude <- c() for (i in 1:length(metro_stations_entrance...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/quicksight_operations.R \name{quicksight_update_dashboard_permissions} \alias{quicksight_update_dashboard_permissions} \title{Updates read and write permissions on a dashboard} \usage{ quicksight_update_dashboard_permissions( AwsAccountId, ...
/cran/paws.analytics/man/quicksight_update_dashboard_permissions.Rd
permissive
paws-r/paws
R
false
true
1,215
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/quicksight_operations.R \name{quicksight_update_dashboard_permissions} \alias{quicksight_update_dashboard_permissions} \title{Updates read and write permissions on a dashboard} \usage{ quicksight_update_dashboard_permissions( AwsAccountId, ...
#' Returns Statistics on Events Attributed With 'myTarget' Ad Impressions From Offline Conversion Lists for Campaigns #' #' @param date_from Start date #' @param date_to End date #' @param object_id Campaigns IDs #' @param auth R auth object #' @param token_path Path to directory where you save credential data #...
/R/myTarGetOfflineConversionsStats.R
permissive
selesnow/rmytarget
R
false
false
2,129
r
#' Returns Statistics on Events Attributed With 'myTarget' Ad Impressions From Offline Conversion Lists for Campaigns #' #' @param date_from Start date #' @param date_to End date #' @param object_id Campaigns IDs #' @param auth R auth object #' @param token_path Path to directory where you save credential data #...
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615854034-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
659
r
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/cluster.R \docType{methods} \name{peptide.sequence<-,Cluster-method} \alias{peptide.sequence<-,Cluster-method} \title{Replaces a cluster peptide.sequence} \usage{ \S4method{peptide.sequence}{Cluster}(object) <- value } \arguments{ \it...
/vignettes/man/peptide.sequence-set-Cluster-method.Rd
no_license
gccong/ddiR-sirius
R
false
false
459
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/cluster.R \docType{methods} \name{peptide.sequence<-,Cluster-method} \alias{peptide.sequence<-,Cluster-method} \title{Replaces a cluster peptide.sequence} \usage{ \S4method{peptide.sequence}{Cluster}(object) <- value } \arguments{ \it...
# Author:Roee Levy, Yale # Date: Mon Jan 22 18:23:36 2018 # Purpose: Anaylze the effects of the intervention on media outcomes over time rm(list=ls()) source("Code/Utils/log.R"); beginLogging() source("Code/Utils/commonVars.R") source("Code/Utils/robustReg.R") source("Code/Utils/indexFunctions.R") library(...
/levy21/Code/Analyze/Media/analyzeMediaPersistence.R
no_license
2021-Research-Practicum/course-materials
R
false
false
14,193
r
# Author:Roee Levy, Yale # Date: Mon Jan 22 18:23:36 2018 # Purpose: Anaylze the effects of the intervention on media outcomes over time rm(list=ls()) source("Code/Utils/log.R"); beginLogging() source("Code/Utils/commonVars.R") source("Code/Utils/robustReg.R") source("Code/Utils/indexFunctions.R") library(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/numMissing.R \name{numMissing} \alias{numMissing} \title{Number Missing Data} \usage{ numMissing(g, by.strata = FALSE, prop = FALSE) } \arguments{ \item{g}{a \linkS4class{gtypes} object.} \item{by.strata}{logical - return results grouped by ...
/man/numMissing.Rd
no_license
EricArcher/strataG
R
false
true
755
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/numMissing.R \name{numMissing} \alias{numMissing} \title{Number Missing Data} \usage{ numMissing(g, by.strata = FALSE, prop = FALSE) } \arguments{ \item{g}{a \linkS4class{gtypes} object.} \item{by.strata}{logical - return results grouped by ...
rpkmByGroup <- function(y, ...) UseMethod("rpkmByGroup") rpkmByGroup.DGEList <- function(y, group=NULL, gene.length=NULL, dispersion=NULL, ...) # RPKM or FPKM averaged by group # Gordon Smyth # Created 10 July 2017. Last modified 4 Nov 2018. { if(is.null(group)) group <- y$samples$group group <- as.factor(group) i...
/R/rpkmByGroup.R
no_license
hiraksarkar/edgeR_fork
R
false
false
2,049
r
rpkmByGroup <- function(y, ...) UseMethod("rpkmByGroup") rpkmByGroup.DGEList <- function(y, group=NULL, gene.length=NULL, dispersion=NULL, ...) # RPKM or FPKM averaged by group # Gordon Smyth # Created 10 July 2017. Last modified 4 Nov 2018. { if(is.null(group)) group <- y$samples$group group <- as.factor(group) i...