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
Wingcrd <- c(59, 55, 53.5, 55, 52.5, 57.5, 53, 55) mean(Wingcrd) median(Wingcrd) min(Wingcrd) max(Wingcrd) Tarsus <- c(22.3, 19.7, 20.8, 20.3, 20.8, 21.5, 20.6, 21.5) mean(Tarsus) median(Tarsus) min(Tarsus) max(Tarsus) Head <- c(31.2, 30.4, 30.6, 30.3, 30.3, 30.8, 32.5, NA ) mean(Head) median(Head) min(Head) max(Head) ...
/part3.R
no_license
qp891097/Lab1_401410028
R
false
false
410
r
Wingcrd <- c(59, 55, 53.5, 55, 52.5, 57.5, 53, 55) mean(Wingcrd) median(Wingcrd) min(Wingcrd) max(Wingcrd) Tarsus <- c(22.3, 19.7, 20.8, 20.3, 20.8, 21.5, 20.6, 21.5) mean(Tarsus) median(Tarsus) min(Tarsus) max(Tarsus) Head <- c(31.2, 30.4, 30.6, 30.3, 30.3, 30.8, 32.5, NA ) mean(Head) median(Head) min(Head) max(Head) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DBI.R \name{dbPool} \alias{dbPool} \title{Create a DBI Database Connection Pool.} \usage{ dbPool(drv, ..., validateQuery = NULL) } \arguments{ \item{drv}{An object that inherits from \code{\link[DBI]{DBIDriver-class}}, or an existing \code{\l...
/man/dbPool.Rd
no_license
long-do/pool
R
false
true
2,808
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DBI.R \name{dbPool} \alias{dbPool} \title{Create a DBI Database Connection Pool.} \usage{ dbPool(drv, ..., validateQuery = NULL) } \arguments{ \item{drv}{An object that inherits from \code{\link[DBI]{DBIDriver-class}}, or an existing \code{\l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/slotmachine.R \name{score} \alias{score} \title{score} \usage{ score(symbols) } \description{ get score based in symbols generated by get_symbols } \examples{ \dontrun{ set.seed(24) one_play <- get_symbols() score(one_play) } }
/man/score.Rd
no_license
GustavoBruges/slotMachine
R
false
true
306
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/slotmachine.R \name{score} \alias{score} \title{score} \usage{ score(symbols) } \description{ get score based in symbols generated by get_symbols } \examples{ \dontrun{ set.seed(24) one_play <- get_symbols() score(one_play) } }
.ppath <- function(tag, filepath) { wd <- options('width')[[1]] - nchar(tag) - 6 if(is.na(filepath)) return(sprintf("%s: %s\n", tag, NA_character_)) if (0L == length(filepath) || nchar(filepath) < wd) return(sprintf("%s: %s\n", tag, filepath)) bname <- basename(filepath) wd1 <- wd - ...
/R/utilities.R
permissive
lh3/Rsamtools
R
false
false
3,697
r
.ppath <- function(tag, filepath) { wd <- options('width')[[1]] - nchar(tag) - 6 if(is.na(filepath)) return(sprintf("%s: %s\n", tag, NA_character_)) if (0L == length(filepath) || nchar(filepath) < wd) return(sprintf("%s: %s\n", tag, filepath)) bname <- basename(filepath) wd1 <- wd - ...
set.seed( 64 ) library(mvtnorm) library(fields) library(Rcpp) library(mclust) library(kernlab) library(ConsensusClusterPlus) simu=function(s){ prob_glcm<-function(c,s=s,mc=30000){ mu<-c(2+c,14-c) sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2) elip<-rmvnorm(mc,mu,sigma) # par(xaxs='i',yaxs='i') ...
/s=12/simu_64.R
no_license
mguindanigroup/Radiomics-Hierarchical-Rounded-Gaussian-Spatial-Dirichlet-Process
R
false
false
9,293
r
set.seed( 64 ) library(mvtnorm) library(fields) library(Rcpp) library(mclust) library(kernlab) library(ConsensusClusterPlus) simu=function(s){ prob_glcm<-function(c,s=s,mc=30000){ mu<-c(2+c,14-c) sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2) elip<-rmvnorm(mc,mu,sigma) # par(xaxs='i',yaxs='i') ...
## ## ANNEALING 1: simulated annealing to maximize negative log ## likelihood for the following: ## Model: Radius = a + b * DBH ## Dataset: included crown_rad dataset ## library(likelihood) # Set up our dataset data(crown_rad) dataset = crown_rad # Create our model function modelfun = function (a, b, D...
/demo/annealing1.R
no_license
cran/likelihood
R
false
false
1,498
r
## ## ANNEALING 1: simulated annealing to maximize negative log ## likelihood for the following: ## Model: Radius = a + b * DBH ## Dataset: included crown_rad dataset ## library(likelihood) # Set up our dataset data(crown_rad) dataset = crown_rad # Create our model function modelfun = function (a, b, D...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parametric.R \name{conic.spiral} \alias{conic.spiral} \title{Conic Spiral} \usage{ conic.spiral(n = 10000, a = 0.2, b = 1, c = 0.1, w = 2) } \arguments{ \item{n}{number of points} \item{a}{final radius of cone} \item{b}{height of object} \...
/man/conic.spiral.Rd
no_license
schloerke/geozoo
R
false
true
695
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parametric.R \name{conic.spiral} \alias{conic.spiral} \title{Conic Spiral} \usage{ conic.spiral(n = 10000, a = 0.2, b = 1, c = 0.1, w = 2) } \arguments{ \item{n}{number of points} \item{a}{final radius of cone} \item{b}{height of object} \...
setwd("/dscrhome/yy222/gas-rgls-master/scripts") # for terminal options library(optparse) ############ ### ARGV ### ############ # define options option_list = list( make_option(c("-p", "--plot"), action = "store_true", default = FALSE, help = "create plot of existing data"), make_option("--simple"...
/PCA_gwas/test_optimal_k_fixed_50.R
no_license
YYQ111/pca-gwas
R
false
false
12,442
r
setwd("/dscrhome/yy222/gas-rgls-master/scripts") # for terminal options library(optparse) ############ ### ARGV ### ############ # define options option_list = list( make_option(c("-p", "--plot"), action = "store_true", default = FALSE, help = "create plot of existing data"), make_option("--simple"...
chart_data <- function(chime, ratio_table, capacity, total_bed, icu_perc, capacity_perc, advanced = TRUE) { require(tidyverse) chime_long <- chime %>% filter(date >= Sys.Date()) %>% rename(General = hospitalized, IC...
/function/chart_data.R
permissive
guptatan/staff_projection
R
false
false
1,873
r
chart_data <- function(chime, ratio_table, capacity, total_bed, icu_perc, capacity_perc, advanced = TRUE) { require(tidyverse) chime_long <- chime %>% filter(date >= Sys.Date()) %>% rename(General = hospitalized, IC...
library("knitr") library("rgl") #knit("sprinkle.Rmd") #markdownToHTML('sprinkle.md', 'sprinkle.html', options=c("use_xhml")) #system("pandoc -s sprinkle.html -o sprinkle.pdf") knit2html('sprinkle.Rmd')
/FDA_Pesticide_Glossary/sprinkle.R
permissive
andrewdefries/andrewdefries.github.io
R
false
false
204
r
library("knitr") library("rgl") #knit("sprinkle.Rmd") #markdownToHTML('sprinkle.md', 'sprinkle.html', options=c("use_xhml")) #system("pandoc -s sprinkle.html -o sprinkle.pdf") knit2html('sprinkle.Rmd')
# This script creates a treemap and a multilayer pie chart to represent the # broad histologies, short histologies, and molecular subtypes within the dataset. # # This script uses the packages sunburstR, d3r, and treemap to produce the # visualizations. # # Chante Bethell for CCDL 2019 # # #### USAGE # This script is i...
/analyses/sample-distribution-analysis/02-multilayer-plots.R
permissive
letitiaismyname/OpenPBTA-analysis
R
false
false
3,503
r
# This script creates a treemap and a multilayer pie chart to represent the # broad histologies, short histologies, and molecular subtypes within the dataset. # # This script uses the packages sunburstR, d3r, and treemap to produce the # visualizations. # # Chante Bethell for CCDL 2019 # # #### USAGE # This script is i...
#### #### CER eDNA study #### No.4 CMR-002 Eukaryote: Standard check #### # Set random seeds (for reproduction) ran_seed <- 8181 set.seed(ran_seed) output_folder04 <- "04_STDCheck_EukOut" dir.create(output_folder04) # Load library and functions library(ggplot2); packageVersion("ggplot2") #3.2.1, 2020.1.6 library(cowp...
/01_DNAtsCERrice2017/01_SequenceProcessing/CERrice2017_Eukaryote/04_STDCheck_Euk.R
permissive
ong8181/interaction-capacity
R
false
false
10,108
r
#### #### CER eDNA study #### No.4 CMR-002 Eukaryote: Standard check #### # Set random seeds (for reproduction) ran_seed <- 8181 set.seed(ran_seed) output_folder04 <- "04_STDCheck_EukOut" dir.create(output_folder04) # Load library and functions library(ggplot2); packageVersion("ggplot2") #3.2.1, 2020.1.6 library(cowp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{par_cor} \alias{par_cor} \title{Partial Correlation} \usage{ par_cor(Y, X, control = NULL, wgt = rep(1, length(Y))) } \arguments{ \item{Y}{outcome vector (must be numeric without NA's).} \item{X}{numeric data frame or matrix ...
/man/par_cor.Rd
no_license
cran/optinterv
R
false
true
739
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{par_cor} \alias{par_cor} \title{Partial Correlation} \usage{ par_cor(Y, X, control = NULL, wgt = rep(1, length(Y))) } \arguments{ \item{Y}{outcome vector (must be numeric without NA's).} \item{X}{numeric data frame or matrix ...
## Script to make deeptools like heatmaps from methylation data in TEs # loads libs source("~/T2T-Epigenetics/utils/ilee_plot_utils.R") source("~/T2T-Epigenetics/utils/methylation_R_utils.R") library(tidyverse) library(cowplot) library(BSgenome.t2t.v1.0.release) library(GenomicRanges) # load meth dat="/kyber/Data...
/TE/DeeptoolsHeatmaps.R
no_license
Musketeer-D/T2T-Epigenetics
R
false
false
3,121
r
## Script to make deeptools like heatmaps from methylation data in TEs # loads libs source("~/T2T-Epigenetics/utils/ilee_plot_utils.R") source("~/T2T-Epigenetics/utils/methylation_R_utils.R") library(tidyverse) library(cowplot) library(BSgenome.t2t.v1.0.release) library(GenomicRanges) # load meth dat="/kyber/Data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sim-phybreak.R \name{sim.phybreak} \alias{sim.phybreak} \title{Outbreak simulation.} \usage{ sim.phybreak(obsize = 50, popsize = NA, samplesperhost = 1, R0 = 1.5, shape.gen = 10, mean.gen = 1, shape.sample = 10, mean.sample = 1, additiona...
/man/sim.phybreak.Rd
no_license
cran/phybreak
R
false
true
3,779
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sim-phybreak.R \name{sim.phybreak} \alias{sim.phybreak} \title{Outbreak simulation.} \usage{ sim.phybreak(obsize = 50, popsize = NA, samplesperhost = 1, R0 = 1.5, shape.gen = 10, mean.gen = 1, shape.sample = 10, mean.sample = 1, additiona...
Fizemos um experimento aleatorizado com blocos completos generalizados (GCBD) de 1 tratamento com 3 níveis (0 minuto de molho, 30 minutos de molho e 2 horas de molho). Cada tulipa é uma unidade experimental e cada forno um bloco. Temos 12 tulipas por bloco, 4 tulipas para cada nível de tratamento e 4 tulipas não receb...
/trabalho_final.R
no_license
ArtoniG/ME623
R
false
false
1,214
r
Fizemos um experimento aleatorizado com blocos completos generalizados (GCBD) de 1 tratamento com 3 níveis (0 minuto de molho, 30 minutos de molho e 2 horas de molho). Cada tulipa é uma unidade experimental e cada forno um bloco. Temos 12 tulipas por bloco, 4 tulipas para cada nível de tratamento e 4 tulipas não receb...
################################################ # Function: dynamicFBA # # Performs a dynamic flux balance analysis # # The function dynamicFBA() is inspired by the function # dynamicFBA() contained in the COBRA Toolbox. # The algorithm is the same. dynamicFBA <- function (model,substrateRxns,initConcentrat...
/R/dynamicFBA.R
no_license
cran/sybilDynFBA
R
false
false
9,015
r
################################################ # Function: dynamicFBA # # Performs a dynamic flux balance analysis # # The function dynamicFBA() is inspired by the function # dynamicFBA() contained in the COBRA Toolbox. # The algorithm is the same. dynamicFBA <- function (model,substrateRxns,initConcentrat...
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../scripts/h2o-r-test-setup.R") #This tests quantile and weighted quantile on synthetic data by comparing with R test.quantile <- function(conn){ N = 1000 x = rgamma(N, shape=0.067, scale = 0.008) aa = as.h2o(x) r_q = quantile(x, pro...
/h2o-r/tests/testdir_misc/runit_NOPASS_quantile.R
permissive
huamichaelchen/h2o-3
R
false
false
1,178
r
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../scripts/h2o-r-test-setup.R") #This tests quantile and weighted quantile on synthetic data by comparing with R test.quantile <- function(conn){ N = 1000 x = rgamma(N, shape=0.067, scale = 0.008) aa = as.h2o(x) r_q = quantile(x, pro...
x1 <- c(2.7,4.6,2.6,3.0,3.2,3.8) x2 <- c(4.6,3.4,2.9,3.5,4.1,5.1) t.test(x1,x2) s1 <- var(x1) s2 <- var(x2) fstar <- s1/s2 qf(0.95,5,5) boxplot(x1,x2)
/2.12.R
no_license
Clairepp/Design-of-Experiments
R
false
false
151
r
x1 <- c(2.7,4.6,2.6,3.0,3.2,3.8) x2 <- c(4.6,3.4,2.9,3.5,4.1,5.1) t.test(x1,x2) s1 <- var(x1) s2 <- var(x2) fstar <- s1/s2 qf(0.95,5,5) boxplot(x1,x2)
#' Run tests for a Shiny application #' #' @param appDir Path to the Shiny application to be tested. #' @param files Test script(s) to run. For example, \code{"mytest.R"} or #' \code{c("mytest.R", "mytest2.R")}. If \code{NULL} (the default), all #' scripts in the tests/ directory will be run. #' #' @export testApp ...
/R/test-app.R
permissive
bborgesr/shinytest
R
false
false
1,289
r
#' Run tests for a Shiny application #' #' @param appDir Path to the Shiny application to be tested. #' @param files Test script(s) to run. For example, \code{"mytest.R"} or #' \code{c("mytest.R", "mytest2.R")}. If \code{NULL} (the default), all #' scripts in the tests/ directory will be run. #' #' @export testApp ...
library(sp) library(dplyr) library(ggplot2) library(gridExtra) library(formattable) map_departamentos <- readRDS("gadm36_PER_1_sp.rds") dep_ggplot <- map_data(map_departamentos,namefield = "NAME_1") salario_departamentos <- read.csv("./data/salario-promedio-departamento.csv",stringsAsFactors = F, encoding="UTF-8") c...
/mapa-salarios.R
no_license
Seb-997/el_kipu_vis
R
false
false
1,726
r
library(sp) library(dplyr) library(ggplot2) library(gridExtra) library(formattable) map_departamentos <- readRDS("gadm36_PER_1_sp.rds") dep_ggplot <- map_data(map_departamentos,namefield = "NAME_1") salario_departamentos <- read.csv("./data/salario-promedio-departamento.csv",stringsAsFactors = F, encoding="UTF-8") c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/notion_header.R \name{notion_header} \alias{notion_header} \title{Function to generate a request header for notion.so} \usage{ notion_header(version = "2021-05-13") } \arguments{ \item{version}{Notion version used in a request} } \description...
/man/notion_header.Rd
no_license
Songyosr/Rnotion
R
false
true
637
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/notion_header.R \name{notion_header} \alias{notion_header} \title{Function to generate a request header for notion.so} \usage{ notion_header(version = "2021-05-13") } \arguments{ \item{version}{Notion version used in a request} } \description...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mxnet_generated.R \name{mx.symbol.cast} \alias{mx.symbol.cast} \title{cast:Casts all elements of the input to a new type.} \usage{ mx.symbol.cast(...) } \arguments{ \item{data}{NDArray-or-Symbol The input.} \item{dtype}{{'float16', 'float32'...
/Rsite/source/api/man/mx.symbol.Cast.Rd
no_license
mli/new-docs
R
false
true
830
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mxnet_generated.R \name{mx.symbol.cast} \alias{mx.symbol.cast} \title{cast:Casts all elements of the input to a new type.} \usage{ mx.symbol.cast(...) } \arguments{ \item{data}{NDArray-or-Symbol The input.} \item{dtype}{{'float16', 'float32'...
###################################################################################################### # Internal consistency # # Version 1.00 23/07/2009 # # Author: Christina Frisk, cfr@aqua.dtu.dk # DTU-Aqua, Charlottenlund, DK # # Plots a double interannual consistency for both DATRAS and LGCP data. # # De...
/NSSprat/Acoustics/Internal_consistency_Acoustics.r
no_license
ices-eg/wg_HAWG
R
false
false
3,526
r
###################################################################################################### # Internal consistency # # Version 1.00 23/07/2009 # # Author: Christina Frisk, cfr@aqua.dtu.dk # DTU-Aqua, Charlottenlund, DK # # Plots a double interannual consistency for both DATRAS and LGCP data. # # De...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/results_summary.R \name{summary-pmartR-results} \alias{summary-pmartR-results} \alias{summary.normRes} \alias{summary.SPANSRes} \alias{summary.dimRes} \alias{summary.corRes} \title{Summary of pmartR Analysis Functions} \usage{ \method{summary...
/man/summary-pmartR-results.Rd
permissive
clabornd/pmartR
R
false
true
1,636
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/results_summary.R \name{summary-pmartR-results} \alias{summary-pmartR-results} \alias{summary.normRes} \alias{summary.SPANSRes} \alias{summary.dimRes} \alias{summary.corRes} \title{Summary of pmartR Analysis Functions} \usage{ \method{summary...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gis.R \name{gis_advisory} \alias{gis_advisory} \title{gis_advisory} \usage{ gis_advisory(key, advisory = as.character()) } \arguments{ \item{key}{Key of storm (i.e., AL012008, EP092015)} \item{advisory}{Advisory number. If NULL, all advisori...
/man/gis_advisory.Rd
permissive
mraza007/rrricanes
R
false
true
502
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gis.R \name{gis_advisory} \alias{gis_advisory} \title{gis_advisory} \usage{ gis_advisory(key, advisory = as.character()) } \arguments{ \item{key}{Key of storm (i.e., AL012008, EP092015)} \item{advisory}{Advisory number. If NULL, all advisori...
tree <- dirtree(".", "", c("predictions", "models", "PortalData", "data", "tmp")); all <- read.csv(file_path(tree, "data/all.csv")); controls <- read.csv(file_path(tree, "data/controls.csv")); metadata <- yaml::yaml.load_file(file_path(tree, "data/metadata.yaml")); f_a <- nbGARCH(all, metadata); f_c <- nbGARCH(controls...
/models/nbGARCH.R
permissive
ha0ye/portalPredictions
R
false
false
428
r
tree <- dirtree(".", "", c("predictions", "models", "PortalData", "data", "tmp")); all <- read.csv(file_path(tree, "data/all.csv")); controls <- read.csv(file_path(tree, "data/controls.csv")); metadata <- yaml::yaml.load_file(file_path(tree, "data/metadata.yaml")); f_a <- nbGARCH(all, metadata); f_c <- nbGARCH(controls...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/kidney.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.4,family="gaussian",standardize=TRUE) sink('./kidney_051.txt',append=TRUE) print(...
/Model/EN/Lasso/kidney/kidney_051.R
no_license
esbgkannan/QSMART
R
false
false
343
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/kidney.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.4,family="gaussian",standardize=TRUE) sink('./kidney_051.txt',append=TRUE) print(...
\name{CATparam} \alias{CATparam} %- Also NEED an '\alias' for EACH other topic documented here. \title{Population-mean Cosinor Test (PMCtest) %% ~~function to do ... ~~ } \description{Statistical test performed on the output parameters from the PMC, testing the equality of rhythm parameters (MESOR, Amplitude, Acrophas...
/man/CATparam.Rd
no_license
cran/CATkit
R
false
false
6,179
rd
\name{CATparam} \alias{CATparam} %- Also NEED an '\alias' for EACH other topic documented here. \title{Population-mean Cosinor Test (PMCtest) %% ~~function to do ... ~~ } \description{Statistical test performed on the output parameters from the PMC, testing the equality of rhythm parameters (MESOR, Amplitude, Acrophas...
## code to prepare `DATASET` dataset goes here ### ---------------------------------------------- ### ---------------------------------------------- ### This script loads and wrangles data ### CSV spreadsheets of the data we want to ### visualize ### ---------------------------------------------- ### ------------------...
/data-raw/clean_eruptions.R
no_license
nicolalove/shiny_day_1
R
false
false
1,204
r
## code to prepare `DATASET` dataset goes here ### ---------------------------------------------- ### ---------------------------------------------- ### This script loads and wrangles data ### CSV spreadsheets of the data we want to ### visualize ### ---------------------------------------------- ### ------------------...
library(EnvStats) ### Name: plotPredIntLnormAltTestPowerCurve ### Title: Power Curves for Sampling Design for Test Based on Prediction ### Interval for Lognormal Distribution ### Aliases: plotPredIntLnormAltTestPowerCurve ### Keywords: distribution htest ### ** Examples # Plot power vs. ratio of means for k=1 f...
/data/genthat_extracted_code/EnvStats/examples/plotPredIntLnormAltTestPowerCurve.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
3,126
r
library(EnvStats) ### Name: plotPredIntLnormAltTestPowerCurve ### Title: Power Curves for Sampling Design for Test Based on Prediction ### Interval for Lognormal Distribution ### Aliases: plotPredIntLnormAltTestPowerCurve ### Keywords: distribution htest ### ** Examples # Plot power vs. ratio of means for k=1 f...
library(mvtnorm) library(MASS) # Is that the right name?! set.seed(5) sigma <-matrix(c(4,2,2,3), ncol=2) x<-rmvnorm(n=500, mean=c(1,2), sigma=sigma, method="chol") z<-kde2d(x[,1],x[,2],n=200) par(mar=rep(0,4)) persp(z,theta=60,phi=15,col=heat.colors(199,alpha=1), shade=0.4,border=NA,box=FALSE)
/lectures/IntroductionToR/data/exampleScript.R
no_license
fischuu/fischuu.github.io
R
false
false
299
r
library(mvtnorm) library(MASS) # Is that the right name?! set.seed(5) sigma <-matrix(c(4,2,2,3), ncol=2) x<-rmvnorm(n=500, mean=c(1,2), sigma=sigma, method="chol") z<-kde2d(x[,1],x[,2],n=200) par(mar=rep(0,4)) persp(z,theta=60,phi=15,col=heat.colors(199,alpha=1), shade=0.4,border=NA,box=FALSE)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/timeprune.R \name{timeprune} \alias{timeprune} \title{Prune tree in time order} \usage{ timeprune(tr, tipdates = NULL, reverse = FALSE) } \arguments{ \item{tr}{a tree, as a \code{phylo} object} \item{tipdates}{a vector of sampling times or d...
/man/timeprune.Rd
no_license
Hackout3/saphy
R
false
true
763
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/timeprune.R \name{timeprune} \alias{timeprune} \title{Prune tree in time order} \usage{ timeprune(tr, tipdates = NULL, reverse = FALSE) } \arguments{ \item{tr}{a tree, as a \code{phylo} object} \item{tipdates}{a vector of sampling times or d...
#' #' Generalized Low Rank Model #' #' Generalized low rank decomposition of an H2O data frame. #' #' #' @param training_frame An H2OFrame object containing the #' variables in the model. #' @param cols (Optional) A vector containing the data columns on #' which k-means operates. #' @param k The rank of t...
/implementation/h2o-fakegame/h2o-r/h2o-package/R/glrm.R
permissive
kordikp/AutoMLprediction
R
false
false
15,968
r
#' #' Generalized Low Rank Model #' #' Generalized low rank decomposition of an H2O data frame. #' #' #' @param training_frame An H2OFrame object containing the #' variables in the model. #' @param cols (Optional) A vector containing the data columns on #' which k-means operates. #' @param k The rank of t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/window_functions_dyads.R \name{extract_lagged_measure_dyads} \alias{extract_lagged_measure_dyads} \title{Extract dyad level measures from a list of networks when the measure requires comparisons between networks.} \usage{ extract_lagged_measu...
/man/extract_lagged_measure_dyads.Rd
no_license
ChloeVilette/netTS
R
false
true
1,006
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/window_functions_dyads.R \name{extract_lagged_measure_dyads} \alias{extract_lagged_measure_dyads} \title{Extract dyad level measures from a list of networks when the measure requires comparisons between networks.} \usage{ extract_lagged_measu...
library(mlsjunkgen) context("mlsjunkgend") dat <- data.frame(0.95516) names(dat) <- "RN" dat2 <- data.frame(c(0.95516, 0.66908, 0.21235, 0.34488, 0.11995)) names(dat2) <- "RN" dat3 <- data.frame(c(0.887, 0.762, 0.214, 0.197, 0.375, 0.168)) names(dat3) <- "RN" test_that("mlsjunkgend returns the correct dat...
/data/genthat_extracted_code/mlsjunkgen/tests/test-mlsjunkgend.R
no_license
surayaaramli/typeRrh
R
false
false
812
r
library(mlsjunkgen) context("mlsjunkgend") dat <- data.frame(0.95516) names(dat) <- "RN" dat2 <- data.frame(c(0.95516, 0.66908, 0.21235, 0.34488, 0.11995)) names(dat2) <- "RN" dat3 <- data.frame(c(0.887, 0.762, 0.214, 0.197, 0.375, 0.168)) names(dat3) <- "RN" test_that("mlsjunkgend returns the correct dat...
library(AtmRay) library(kernlab) #Prints accuracy and confusion tables given predictions and targets printAccAndConf = function(label, preds, real) { conf = table(preds, real) acc = sum(diag(conf)) / sum(conf) print(sprintf("%s Confusion table", label)) print(conf) print(sprintf("%s Accuracy: %g", label, acc...
/Exams/Exam 20191023/Assignment4-2.R
no_license
viktorgus/Advanced-Machine-Learning-TDDE15
R
false
false
1,899
r
library(AtmRay) library(kernlab) #Prints accuracy and confusion tables given predictions and targets printAccAndConf = function(label, preds, real) { conf = table(preds, real) acc = sum(diag(conf)) / sum(conf) print(sprintf("%s Confusion table", label)) print(conf) print(sprintf("%s Accuracy: %g", label, acc...
## code to prepare `DATASET` dataset goes here usethis::use_data("DATASET") # Breast survival data library(dplyr) library(RTCGA) library(RTCGA.clinical) brca_cohort <- survivalTCGA( BRCA.clinical, extract.cols = c( "admin.disease_code", "patient.breast_carcinoma_estrogen_receptor_status", "patient.b...
/data-raw/DATASET.R
permissive
bailliem/pharmavisR
R
false
false
1,355
r
## code to prepare `DATASET` dataset goes here usethis::use_data("DATASET") # Breast survival data library(dplyr) library(RTCGA) library(RTCGA.clinical) brca_cohort <- survivalTCGA( BRCA.clinical, extract.cols = c( "admin.disease_code", "patient.breast_carcinoma_estrogen_receptor_status", "patient.b...
#vectorized form set.seed(42) mat <-- replicate(10,rnorm(10)) dataf <-- data.frame(mat) time1 = system.time( dataf <-- dataf+ 10*sin(0.75*pi) #converting to dataframe ) print(dataf) #nonvectorised form set.seed(42) mat1 <-- replicate(10,rnorm(10)) dataf1 <-- data.frame(mat1) time2 = syst...
/assignment3_2.r
no_license
Achu-nair/Assignment-3.2
R
false
false
525
r
#vectorized form set.seed(42) mat <-- replicate(10,rnorm(10)) dataf <-- data.frame(mat) time1 = system.time( dataf <-- dataf+ 10*sin(0.75*pi) #converting to dataframe ) print(dataf) #nonvectorised form set.seed(42) mat1 <-- replicate(10,rnorm(10)) dataf1 <-- data.frame(mat1) time2 = syst...
# basic cloumn-line combo chart HighChartAreaLineDate <- function(.data, .yTitle) { highchart() %>% hc_add_series( name = .yTitle(), data = .data(), type = "area", hcaes( x = as.Date(plotX), y = plotYC ) ) %>% hc_add_series( name = "7-Day Moving Average...
/components/highChartAreaLineDate.R
permissive
joseph-ellis/va-covid
R
false
false
1,836
r
# basic cloumn-line combo chart HighChartAreaLineDate <- function(.data, .yTitle) { highchart() %>% hc_add_series( name = .yTitle(), data = .data(), type = "area", hcaes( x = as.Date(plotX), y = plotYC ) ) %>% hc_add_series( name = "7-Day Moving Average...
#' Convert between oxygen in torr to mg per litre #' #' @param temperature temperature in degrees celcius #' @param oxygen_in_torr oxygen concentration in torr #' #' @return #' @export #' #' @examples torr_mgl <- function(temperature, oxygen_in_torr) { if (temperature == 16) { return(oxygen_in_torr*0.0000019705*3...
/R/torr_mgl.R
no_license
JoeyBernhardt/oxygen
R
false
false
580
r
#' Convert between oxygen in torr to mg per litre #' #' @param temperature temperature in degrees celcius #' @param oxygen_in_torr oxygen concentration in torr #' #' @return #' @export #' #' @examples torr_mgl <- function(temperature, oxygen_in_torr) { if (temperature == 16) { return(oxygen_in_torr*0.0000019705*3...
slice data(sample_matrix) sample.xts <- as.xts(sample_matrix, descr='my new xts object') sample.xts %>% select(Open,Close) sample.xts %>% slice(4) methods("slice") tidyxts:::sl
/data-raw/slice.R
permissive
ThinkR-open/tidyxts
R
false
false
180
r
slice data(sample_matrix) sample.xts <- as.xts(sample_matrix, descr='my new xts object') sample.xts %>% select(Open,Close) sample.xts %>% slice(4) methods("slice") tidyxts:::sl
#' Solve covariance matrix from unstable X #' solve_S0 <- function(Y){ warn <- FALSE m <- 1e-9 # hedging ss <- try(S0 <- solve(t(Y)%*%Y + diag(m, ncol(Y))), TRUE) while("try-error"%in% is(ss)){ ss <- try(S0 <- solve(t(Y)%*%Y + diag(m <- m * 2, ncol(Y))), TRUE) warn <- TRUE } if(warn) warning(paste(...
/R/solve_S0.R
no_license
antiphon/ellipsoid
R
false
false
391
r
#' Solve covariance matrix from unstable X #' solve_S0 <- function(Y){ warn <- FALSE m <- 1e-9 # hedging ss <- try(S0 <- solve(t(Y)%*%Y + diag(m, ncol(Y))), TRUE) while("try-error"%in% is(ss)){ ss <- try(S0 <- solve(t(Y)%*%Y + diag(m <- m * 2, ncol(Y))), TRUE) warn <- TRUE } if(warn) warning(paste(...
##################################################################--------------------------------------------------------------------- # # Nearshore Stock Classification # # Tyler # 7/17/2015 # # Code description: Methodology/Function for classifying stocks in the Upside database as nearshore # ######################...
/Functions/ClassifyNearshore.R
no_license
kmillage/Global-Fishery-Potential
R
false
false
14,166
r
##################################################################--------------------------------------------------------------------- # # Nearshore Stock Classification # # Tyler # 7/17/2015 # # Code description: Methodology/Function for classifying stocks in the Upside database as nearshore # ######################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/retrieve_annotation_keylist.r \name{retrieve_annotation_keylist} \alias{retrieve_annotation_keylist} \title{retrieve_annotation_keylist} \usage{ retrieve_annotation_keylist( channel = "allertameteoLIG", category = "emergency", target = ...
/man/retrieve_annotation_keylist.Rd
no_license
alfcrisci/rTwChannel
R
false
true
1,012
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/retrieve_annotation_keylist.r \name{retrieve_annotation_keylist} \alias{retrieve_annotation_keylist} \title{retrieve_annotation_keylist} \usage{ retrieve_annotation_keylist( channel = "allertameteoLIG", category = "emergency", target = ...
### Jinliang Yang ### 4.13.2015 ### Move to SeeDs repo
/profiling/3.seedata/3.B.4_move2SeeDs_repo.R
no_license
yangjl/Misc
R
false
false
54
r
### Jinliang Yang ### 4.13.2015 ### Move to SeeDs repo
#' Authenticate with Google Analytics OAuth2 #' #' A wrapper for \link[googleAuthR]{gar_auth} and \link[googleAuthR]{gar_auth_service} #' #' @param new_user If TRUE, reauthenticate via Google login screen #' @param no_auto Skip auto authentication #' #' @details #' #' Run this function first time to authenticate with...
/R/auth.R
no_license
benda1997/googleAnalyticsR
R
false
false
2,633
r
#' Authenticate with Google Analytics OAuth2 #' #' A wrapper for \link[googleAuthR]{gar_auth} and \link[googleAuthR]{gar_auth_service} #' #' @param new_user If TRUE, reauthenticate via Google login screen #' @param no_auto Skip auto authentication #' #' @details #' #' Run this function first time to authenticate with...
###Recurrent Mutations and CNAs to phylostrata library(ggplot2) library(reshape2) library(gridExtra) library(Biobase) library(clinfun) library(readr) source('helper_functions.R') tumours <- c("ACC", "BLCA", "BRCA", "CESC", "CHOL", "COAD", "ESCA", "GBM", "HNSC", "KICH", "KIRC", "KIRP", "LGG", "LIHC", "...
/Figure1/Figure1 - recurrent mut CNAs to phy_gistic_mutsig.R
permissive
elifesciences-publications/Evolutionary-analysis-of-somatic-mutations-in-cancer
R
false
false
13,965
r
###Recurrent Mutations and CNAs to phylostrata library(ggplot2) library(reshape2) library(gridExtra) library(Biobase) library(clinfun) library(readr) source('helper_functions.R') tumours <- c("ACC", "BLCA", "BRCA", "CESC", "CHOL", "COAD", "ESCA", "GBM", "HNSC", "KICH", "KIRC", "KIRP", "LGG", "LIHC", "...
# Jake Yeung # October 31 2014 # visualize_exprs_distribution.R # Plot distribution of gene expressions (may correlate with microarray?) library(ggplot2) library(reshape2) # Constants --------------------------------------------------------------- epsilon <- 1 # RNA-Seq log2 transform to prevent infinities N.RNASEQ...
/scripts/plot_scripts/visualize_exprs_distribution.R
no_license
jakeyeung/Yeung_et_al_2018_TissueSpecificity
R
false
false
8,423
r
# Jake Yeung # October 31 2014 # visualize_exprs_distribution.R # Plot distribution of gene expressions (may correlate with microarray?) library(ggplot2) library(reshape2) # Constants --------------------------------------------------------------- epsilon <- 1 # RNA-Seq log2 transform to prevent infinities N.RNASEQ...
#' Saves refs to file #' #' @import RCurl #' @save_path Location to save #' @return references. #' @export #' @include import-google.R output_references = function(save_path='references.tex'){ studies = load_dmq_data() data = list('norms', 'cor', 'personality') names(data) = data .sort = function(x){ ...
/R/output-references.R
no_license
aadu/dmq-meta-analysis
R
false
false
741
r
#' Saves refs to file #' #' @import RCurl #' @save_path Location to save #' @return references. #' @export #' @include import-google.R output_references = function(save_path='references.tex'){ studies = load_dmq_data() data = list('norms', 'cor', 'personality') names(data) = data .sort = function(x){ ...
#' @title Construct a template capeml workflow #' #' @description Write a workflow template Rmd file for the capeml workflow #' #' @usage #' write_template( #' scope, #' identifier, #' path, #' overwrite #' ) #' #' @param scope #' (character) Quoted name of the package scope (e.g., "edi...
/R/write_template.R
no_license
CAPLTER/capeml
R
false
false
2,081
r
#' @title Construct a template capeml workflow #' #' @description Write a workflow template Rmd file for the capeml workflow #' #' @usage #' write_template( #' scope, #' identifier, #' path, #' overwrite #' ) #' #' @param scope #' (character) Quoted name of the package scope (e.g., "edi...
#' Create a new HTTP response #' #' Generally, you should not need to call this function directly; you'll #' get a real HTTP response by calling [req_perform()] and friends. This #' function is provided primarily for testing, and a place to describe #' the key components of a response. #' #' @keywords internal #' @para...
/R/resp.R
permissive
isabella232/httr2
R
false
false
3,269
r
#' Create a new HTTP response #' #' Generally, you should not need to call this function directly; you'll #' get a real HTTP response by calling [req_perform()] and friends. This #' function is provided primarily for testing, and a place to describe #' the key components of a response. #' #' @keywords internal #' @para...
\name{dev.rej} \alias{dev.rej} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Murray...%% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ dev.rej(X) } %- maybe also 'usage' for other objects documented here. \arguments{ ...
/man/dev.rej.Rd
no_license
mpoll/scale
R
false
false
1,765
rd
\name{dev.rej} \alias{dev.rej} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Murray...%% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ dev.rej(X) } %- maybe also 'usage' for other objects documented here. \arguments{ ...
################################################################################ ##' @title Analyze log size, Lottia digitalis (x1p; era only model, pooled) ##' @author Robin Elahi ##' @contact elahi.robin@gmail.com ##' @date 2019-09-11 ################################################################################ #...
/3_analyse_data/04_analyse_logsize_lodi_x1p.R
permissive
elahi/snail-body-size-hms-ecology
R
false
false
1,471
r
################################################################################ ##' @title Analyze log size, Lottia digitalis (x1p; era only model, pooled) ##' @author Robin Elahi ##' @contact elahi.robin@gmail.com ##' @date 2019-09-11 ################################################################################ #...
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_socioeconomics_L100.Population_downscale_ctry #' #' Clean and interpolate both Maddison historical population data (1700-2010) and SSP population scenarios. #' #' @param command API command to execute #' @param ... other optional parameters...
/input/gcamdata/R/zchunk_L100.Population_downscale_ctry.R
permissive
yangxhcaf/gcam-core
R
false
false
14,195
r
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_socioeconomics_L100.Population_downscale_ctry #' #' Clean and interpolate both Maddison historical population data (1700-2010) and SSP population scenarios. #' #' @param command API command to execute #' @param ... other optional parameters...
rm(list=ls()) setwd('/Volumes/HDD/Data/BCI/figures/') library('lme4') library('LMERConvenienceFunctions') # Alpha file = '/Volumes/HDD/data/BCI/work/alldat-2000-trials_alpha.csv' dat = read.csv(file,) colnames(dat) = c('subject','gender','age','handedness','group','session','block','hemisphere','trial','ERD') dat$s...
/EEG_LME_singlesubs.R
no_license
TheMidnightBarber/BCI_EEG
R
false
false
2,298
r
rm(list=ls()) setwd('/Volumes/HDD/Data/BCI/figures/') library('lme4') library('LMERConvenienceFunctions') # Alpha file = '/Volumes/HDD/data/BCI/work/alldat-2000-trials_alpha.csv' dat = read.csv(file,) colnames(dat) = c('subject','gender','age','handedness','group','session','block','hemisphere','trial','ERD') dat$s...
/TDM2/script ACP.R
no_license
xbouteiller/coursM2
R
false
false
1,332
r
\name{z2theta} \alias{z2theta} %- Also NEED an '\alias' for EACH other topic documented here. \title{Inverse of the parameter transformation } \description{This is the inverse of the function \code{\link{theta2z}}} \usage{ z2theta(z, family) } %- maybe also 'usage' for other objects documented here. \arguments{ \item...
/man/z2theta.Rd
no_license
cran/CopulaRegression
R
false
false
948
rd
\name{z2theta} \alias{z2theta} %- Also NEED an '\alias' for EACH other topic documented here. \title{Inverse of the parameter transformation } \description{This is the inverse of the function \code{\link{theta2z}}} \usage{ z2theta(z, family) } %- maybe also 'usage' for other objects documented here. \arguments{ \item...
library("caret") library(corrplot) library(C50) library(dummies) library(gmodels) library(Metrics) library(neuralnet) library(plDTr) library(rpart) library(tree) library(e1071) library(rpart.plot) library(fastDummies) ################################## Load Files ############################################# x <- rea...
/0-Implementation/R Files/Decision Trees/League/BPL/BPLL08-09.R
no_license
Chanter08/Thesis
R
false
false
6,666
r
library("caret") library(corrplot) library(C50) library(dummies) library(gmodels) library(Metrics) library(neuralnet) library(plDTr) library(rpart) library(tree) library(e1071) library(rpart.plot) library(fastDummies) ################################## Load Files ############################################# x <- rea...
# for federal lands, filtered to manager type == federal # see doc in folder for more info rm(list = ls()) tribedf <- read_rds("01_data/cache/tribe_shapefiles.rds") tribeunqiue <- tribedf %>% st_set_geometry(NULL) %>% distinct(UID) tribebuffed <- tribedf %>% st_transform(5070) %>% st_buffer(160.934) %...
/02_build/03h_federallands.R
no_license
galsk223/tribalclimate
R
false
false
1,203
r
# for federal lands, filtered to manager type == federal # see doc in folder for more info rm(list = ls()) tribedf <- read_rds("01_data/cache/tribe_shapefiles.rds") tribeunqiue <- tribedf %>% st_set_geometry(NULL) %>% distinct(UID) tribebuffed <- tribedf %>% st_transform(5070) %>% st_buffer(160.934) %...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/partbl.R \name{summary.partbl} \alias{summary.partbl} \title{Return Summary of \code{partbl} Object} \usage{ \method{summary}{partbl}(partbl) } \arguments{ \item{partbl}{An object of class \code{partbl}.} } \value{ A list (of class \code{summ...
/man/summary.partbl.Rd
permissive
bahlolab/linkrvis
R
false
true
454
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/partbl.R \name{summary.partbl} \alias{summary.partbl} \title{Return Summary of \code{partbl} Object} \usage{ \method{summary}{partbl}(partbl) } \arguments{ \item{partbl}{An object of class \code{partbl}.} } \value{ A list (of class \code{summ...
#' mergeGtrd #' @description Find TFBS overalpping features #' @param gr ranges to search TFBS for #' @param gtrd GTRD GenomicRanges #' @return data.table #' @export #' @examples #' mergeGtrd(dt, gtrd) #' @import GenomicRanges #' @import data.table mergeGtrd <- function (gr, gtrd) { # df <- data.frame(chr = gsub(p...
/chromatin_accessibility_in_human_prostate_cancer_progression/gene_expression/myhelpers/R/mergeGtrd.R
permissive
NykterLab/Tampere_PC
R
false
false
1,112
r
#' mergeGtrd #' @description Find TFBS overalpping features #' @param gr ranges to search TFBS for #' @param gtrd GTRD GenomicRanges #' @return data.table #' @export #' @examples #' mergeGtrd(dt, gtrd) #' @import GenomicRanges #' @import data.table mergeGtrd <- function (gr, gtrd) { # df <- data.frame(chr = gsub(p...
#separates experimental table (cm$data_ode) into a list of data.frames #with the same experimental conditions (only time differs) #' Data separator #' #' gets a data.frame, divides it into a list of data.frames so that each data.frame has unique experimental conditions #' @param dat data.frame to be separated #' @keywo...
/R/separate_data.R
no_license
insysbio/confest
R
false
false
1,747
r
#separates experimental table (cm$data_ode) into a list of data.frames #with the same experimental conditions (only time differs) #' Data separator #' #' gets a data.frame, divides it into a list of data.frames so that each data.frame has unique experimental conditions #' @param dat data.frame to be separated #' @keywo...
outpath <- 'Data/intermediate/mergedSurveys2.csv' survey <- read_excel('Data/raw/2017_survey_data/Bangladesh Garments Labour Survey-2017.xlsx') # read in Stata file. There is some issue with the factor labels here, # which takes a little bit of fixing df <- read.dta('Data/raw/2017_survey_data/data_NK_2017.dta', conv...
/Code/Pilot/intermediate/merge.R
no_license
seinman90/whistleblowing
R
false
false
1,505
r
outpath <- 'Data/intermediate/mergedSurveys2.csv' survey <- read_excel('Data/raw/2017_survey_data/Bangladesh Garments Labour Survey-2017.xlsx') # read in Stata file. There is some issue with the factor labels here, # which takes a little bit of fixing df <- read.dta('Data/raw/2017_survey_data/data_NK_2017.dta', conv...
rm(list = ls()); gc(reset = T) library(tensorflow) input_dataset <- tf$examples$tutorials$mnist$input_data mnist <- input_dataset$read_data_sets("MNIST-data", one_hot = TRUE) sess <- tf$InteractiveSession() x <- tf$placeholder(tf$float32, shape(NULL, 784L)) y <- tf$placeholder(tf$float32, shape(NULL, 10L)...
/dnn_mlp_mnist_tensorflow.R
no_license
chchiuleroy/tensorflow-mnist-testing-in-R
R
false
false
1,114
r
rm(list = ls()); gc(reset = T) library(tensorflow) input_dataset <- tf$examples$tutorials$mnist$input_data mnist <- input_dataset$read_data_sets("MNIST-data", one_hot = TRUE) sess <- tf$InteractiveSession() x <- tf$placeholder(tf$float32, shape(NULL, 784L)) y <- tf$placeholder(tf$float32, shape(NULL, 10L)...
library(tidyverse) library(gganimate) library(gifski) boty_raw <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-11-19/BOTY-votes-2019.csv") # functions ------------------------------------- count_votes <- function(df) { #summarises raw data into totals for th...
/tidytuesday47/tidytuesday_week47.R
no_license
lmaxfield/TidyTuesday
R
false
false
5,352
r
library(tidyverse) library(gganimate) library(gifski) boty_raw <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-11-19/BOTY-votes-2019.csv") # functions ------------------------------------- count_votes <- function(df) { #summarises raw data into totals for th...
#' Author: Lancelot Henry de Frahan #' # Run similar regressions as "main_semesterly_regressions_commonsupport_c1.R", but with county X module data # + Importantly run the regression cohort-by-cohort then average the effect across cohorts # Here we define a cohort based on time of ``treatment" library(data.table) lib...
/R/regressions/Semester_regressions/Make_test_Cohort_TWFE_regression.R
no_license
lancelothdf/sales.taxes
R
false
false
5,811
r
#' Author: Lancelot Henry de Frahan #' # Run similar regressions as "main_semesterly_regressions_commonsupport_c1.R", but with county X module data # + Importantly run the regression cohort-by-cohort then average the effect across cohorts # Here we define a cohort based on time of ``treatment" library(data.table) lib...
#library(FirebrowseR) context("Analyses.CopyNumber.Genes.Amplified") test_that("Getting the GISTIC2 amplified ouput", { format = "csv" cohort = "" gene = "PTEN" q = 0.05 page = 1 page_size = 250 sort_by = "cohort" obj = Analyses.CopyNumber.Genes.Amplified(format = format, ...
/tests/testthat/test.Analyses.CopyNumber.Genes.Amplified.R
no_license
xtmgah/FirebrowseR
R
false
false
1,785
r
#library(FirebrowseR) context("Analyses.CopyNumber.Genes.Amplified") test_that("Getting the GISTIC2 amplified ouput", { format = "csv" cohort = "" gene = "PTEN" q = 0.05 page = 1 page_size = 250 sort_by = "cohort" obj = Analyses.CopyNumber.Genes.Amplified(format = format, ...
# Tab completions for rga clas .DollarNames.rga <- function(x, pattern) { grep(pattern, getRefClass(class(x))$methods(), value = TRUE) }
/R/misc.R
no_license
tedconf/rga
R
false
false
142
r
# Tab completions for rga clas .DollarNames.rga <- function(x, pattern) { grep(pattern, getRefClass(class(x))$methods(), value = TRUE) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rwe_powerp.R \name{rwePsPowDrawPost} \alias{rwePsPowDrawPost} \title{Get Posterior for all stratum} \usage{ rwePsPowDrawPost( data, type = c("continuous", "binary"), A = 0, RS = NULL, Fix.RS = FALSE, v.outcome = "Y", ... ) } \ar...
/man/rwePsPowDrawPost.Rd
no_license
olssol/rwetools
R
false
true
681
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rwe_powerp.R \name{rwePsPowDrawPost} \alias{rwePsPowDrawPost} \title{Get Posterior for all stratum} \usage{ rwePsPowDrawPost( data, type = c("continuous", "binary"), A = 0, RS = NULL, Fix.RS = FALSE, v.outcome = "Y", ... ) } \ar...
\name{ITypeInfo-class} \docType{class} \alias{ITypeInfo-class} \alias{ITypeInfoCoClass-class} \alias{ITypeInfoModule-class} \alias{ITypeInfoDispatch-class} \alias{ITypeInfoEnum-class} \alias{ITypeInfoInterface-class} \alias{ITypeInfoRecord-class} \alias{ITypeInfoUnion-class} \alias{ITypeInfoAlias-class} \alias{[[,IType...
/man/ITypeInfo-class.Rd
no_license
lgaborini/SWinTypeLibs
R
false
false
2,687
rd
\name{ITypeInfo-class} \docType{class} \alias{ITypeInfo-class} \alias{ITypeInfoCoClass-class} \alias{ITypeInfoModule-class} \alias{ITypeInfoDispatch-class} \alias{ITypeInfoEnum-class} \alias{ITypeInfoInterface-class} \alias{ITypeInfoRecord-class} \alias{ITypeInfoUnion-class} \alias{ITypeInfoAlias-class} \alias{[[,IType...
.neg <- function(x){ - as.numeric(x<0) * x } .nndsvd.internal <- function(A, k, flag=0){ #check the input matrix if( any(A<0) ) stop('The input matrix contains negative elements !') #size of input matrix size = dim(A); m <- size[1]; n<- size[2] #the matrices of the factorization W = matrix(0, m, k); H = matr...
/R/IntNMF-internal.R
no_license
TJMKuijpers/IntNMF
R
false
false
2,229
r
.neg <- function(x){ - as.numeric(x<0) * x } .nndsvd.internal <- function(A, k, flag=0){ #check the input matrix if( any(A<0) ) stop('The input matrix contains negative elements !') #size of input matrix size = dim(A); m <- size[1]; n<- size[2] #the matrices of the factorization W = matrix(0, m, k); H = matr...
## Code for Data_Analysis - Course Project 1 raw_data <- read.table("household_power_consumption.txt", sep = ";", header = T, na.strings=c("?")) sub_data <- subset(raw_data, Date == "1/2/2007" | Date == "2/2/2007") ## Check data in console with head & tail functions to verify correct date ## Depended on discussion b...
/totalcode.r
no_license
buddyhump/ExData_Plotting1
R
false
false
2,152
r
## Code for Data_Analysis - Course Project 1 raw_data <- read.table("household_power_consumption.txt", sep = ";", header = T, na.strings=c("?")) sub_data <- subset(raw_data, Date == "1/2/2007" | Date == "2/2/2007") ## Check data in console with head & tail functions to verify correct date ## Depended on discussion b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DPLogisticRegressionClassifier.R \name{predict.DPLogisticRegressionClassifier} \alias{predict.DPLogisticRegressionClassifier} \title{predict method for DP logistic regression} \usage{ \method{predict}{DPLogisticRegressionClassifier}(object, p...
/man/predict.DPLogisticRegressionClassifier.Rd
no_license
terencekwt/diffPrivML
R
false
true
1,062
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DPLogisticRegressionClassifier.R \name{predict.DPLogisticRegressionClassifier} \alias{predict.DPLogisticRegressionClassifier} \title{predict method for DP logistic regression} \usage{ \method{predict}{DPLogisticRegressionClassifier}(object, p...
# father involvement in time flexible tasks, random slope of maternal employment, # With cross-level interaction of GEM score # if running directly from file and not sourcing: # setwd("~/Dropbox/Fatherinvolv_jmf_s1/revise fatherinvol - Sociological Science/data") # pacman::p_load(mcmcplots,mvtnorm,R2jags,rjags,coda,...
/analyses/call/call_fifle_gem_160118.R
no_license
brettory-zz/mother-work-hours-father-involvement
R
false
false
6,982
r
# father involvement in time flexible tasks, random slope of maternal employment, # With cross-level interaction of GEM score # if running directly from file and not sourcing: # setwd("~/Dropbox/Fatherinvolv_jmf_s1/revise fatherinvol - Sociological Science/data") # pacman::p_load(mcmcplots,mvtnorm,R2jags,rjags,coda,...
#' @title Create R/packages.R file #' @param open Logical value, whether to open packages.R for editing #' @return #' @author Bryan West #' @export use_packages <- function (open = interactive()) { usethis::use_directory("R") usethis::use_template("packages.R", package = "sbwtools") invisible() }
/R/use_packages.R
permissive
sbw78/sbwtools
R
false
false
304
r
#' @title Create R/packages.R file #' @param open Logical value, whether to open packages.R for editing #' @return #' @author Bryan West #' @export use_packages <- function (open = interactive()) { usethis::use_directory("R") usethis::use_template("packages.R", package = "sbwtools") invisible() }
library(xlsx) dir.create("Podaci") #Download podataka download.file("http://www.hnb.hr/documents/20182/9b11412d-f8d9-4923-910a-9120e1b09dd3", "Podaci/h-D10.xls", mode = "wb") #' Tablica D10 Inozmena pasiva DMFI # #' @name D10 #' @author David Ravnik \email{dravnik@unipu.hr} #' @author Tomislava Kolar \email{tkolar@u...
/SiVHMP1/R/D10.R
no_license
RavnikD/SiVHMP1P
R
false
false
3,131
r
library(xlsx) dir.create("Podaci") #Download podataka download.file("http://www.hnb.hr/documents/20182/9b11412d-f8d9-4923-910a-9120e1b09dd3", "Podaci/h-D10.xls", mode = "wb") #' Tablica D10 Inozmena pasiva DMFI # #' @name D10 #' @author David Ravnik \email{dravnik@unipu.hr} #' @author Tomislava Kolar \email{tkolar@u...
library(LearningRlab) ### Name: explain.median ### Title: Median Function Explained ### Aliases: explain.median ### Keywords: ~median ~explain ~mediana.explicada ~explicada ### ** Examples { #data creation data <- c(1,2,2,5,10,4,2) explain.median(data) }
/data/genthat_extracted_code/LearningRlab/examples/explain.median.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
285
r
library(LearningRlab) ### Name: explain.median ### Title: Median Function Explained ### Aliases: explain.median ### Keywords: ~median ~explain ~mediana.explicada ~explicada ### ** Examples { #data creation data <- c(1,2,2,5,10,4,2) explain.median(data) }
#' @title Kearfott function. #' #' @description Two-dimensional test function based on the formula #' \deqn{f(\mathbf{x}) = (x_1^2 + x_2^2 - 2)^2 + (x_1^2 - x_2^2 - 1)^2} #' with \eqn{\mathbf{x}_1, \mathbf{x}_2 \in [-3, 4]}. #' #' @references See \url{https://al-roomi.org/benchmarks/unconstrained/2-dimensions/59-kearfo...
/R/sof.kearfott.R
permissive
jakobbossek/smoof
R
false
false
1,444
r
#' @title Kearfott function. #' #' @description Two-dimensional test function based on the formula #' \deqn{f(\mathbf{x}) = (x_1^2 + x_2^2 - 2)^2 + (x_1^2 - x_2^2 - 1)^2} #' with \eqn{\mathbf{x}_1, \mathbf{x}_2 \in [-3, 4]}. #' #' @references See \url{https://al-roomi.org/benchmarks/unconstrained/2-dimensions/59-kearfo...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/sun.rise.set.R \name{is.day} \alias{is.day} \title{determines if measurement was taken during the daytime} \usage{ is.day(datetimes, lat) } \arguments{ \item{datetimes}{Vector of dates as \code{POSIXct} or \code{POSIXlt} (see \code{\l...
/man/is.day.Rd
no_license
aappling-usgs/LakeMetabolizer
R
false
false
665
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/sun.rise.set.R \name{is.day} \alias{is.day} \title{determines if measurement was taken during the daytime} \usage{ is.day(datetimes, lat) } \arguments{ \item{datetimes}{Vector of dates as \code{POSIXct} or \code{POSIXlt} (see \code{\l...
# #' Write a backup file if the file exist # #' \code{filebackup} # #' @param file file name # #' @param backup if backup, TRUE/FALSE # #' @export # filebackup <- function(file, backup = FALSE){ # if(file.exists(file) & backup){ # bakFile <- paste0(file,format(Sys.time(), '%Y%m%d.%H%M%S'),'-',round(rnorm(1),2)); ...
/R/writeInput.R
permissive
SHUD-System/rSHUD
R
false
false
5,321
r
# #' Write a backup file if the file exist # #' \code{filebackup} # #' @param file file name # #' @param backup if backup, TRUE/FALSE # #' @export # filebackup <- function(file, backup = FALSE){ # if(file.exists(file) & backup){ # bakFile <- paste0(file,format(Sys.time(), '%Y%m%d.%H%M%S'),'-',round(rnorm(1),2)); ...
#_____________________________Initilization________________________________________________________ rm(list = ls()) # clear environment cat("\014") # clear console setwd("/Users/bin/Dropbox/Bin - Chen/Paper2 Code") set.seed(123) #Load require package library(caret) library(mlbench) library(qrnn) #___________________...
/QRNN_Index_node.R
no_license
Newtoniano/Stock-Index-Prediciton
R
false
false
5,178
r
#_____________________________Initilization________________________________________________________ rm(list = ls()) # clear environment cat("\014") # clear console setwd("/Users/bin/Dropbox/Bin - Chen/Paper2 Code") set.seed(123) #Load require package library(caret) library(mlbench) library(qrnn) #___________________...
#' Search the Pangaea database with Elasticsearch #' #' @export #' @param query (character) Query terms.. #' @param size (character) The number of hits to return. Pass in as a #' character string to avoid problems with large number conversion to #' scientific notation. Default: 10. The default maximum is 10,000 - howev...
/R/pg_search_es.R
permissive
Danapit/pangaear
R
false
false
5,340
r
#' Search the Pangaea database with Elasticsearch #' #' @export #' @param query (character) Query terms.. #' @param size (character) The number of hits to return. Pass in as a #' character string to avoid problems with large number conversion to #' scientific notation. Default: 10. The default maximum is 10,000 - howev...
# Model selection for seed germination data setwd("C:/Users/ac79/Downloads/Dropbox/POAR--Aldo&Tom/Response-Surface experiment/Experiment/Implementation") library(lme4) ; library(bbmle) ; library(boot) ; library(testthat) source("C:/Users/ac79/Documents/CODE/LLELA/analysis/model_avg.R") # Read in data and format------...
/germination_mod_sel.R
no_license
AldoCompagnoni/LLELA
R
false
false
2,060
r
# Model selection for seed germination data setwd("C:/Users/ac79/Downloads/Dropbox/POAR--Aldo&Tom/Response-Surface experiment/Experiment/Implementation") library(lme4) ; library(bbmle) ; library(boot) ; library(testthat) source("C:/Users/ac79/Documents/CODE/LLELA/analysis/model_avg.R") # Read in data and format------...
# # Skoulis-size.R, 19 Jun 17 # Data from: # Analysis of Schema Evolution for Databases in Open-Source Software # Ioannis Skoulis # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones # # TAG schema_evolution database_schema source("ESEUR_config.r") library("...
/ecosystems/Skoulis-size.R
no_license
Derek-Jones/ESEUR-code-data
R
false
false
1,843
r
# # Skoulis-size.R, 19 Jun 17 # Data from: # Analysis of Schema Evolution for Databases in Open-Source Software # Ioannis Skoulis # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones # # TAG schema_evolution database_schema source("ESEUR_config.r") library("...
i = 410 library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/") # ------------------------------------------------------------------------- # read in the list of the SNP to be excluded # ------------------------------------------------------------------------- setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/") files = li...
/data_preparation/R_batch3/_step2/step2_filter_asCounts.409.R
no_license
jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples
R
false
false
809
r
i = 410 library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/") # ------------------------------------------------------------------------- # read in the list of the SNP to be excluded # ------------------------------------------------------------------------- setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/") files = li...
# Import the lubridate package library(lubridate) # First read in the data from the current working directory power <- read.table('household_power_consumption.txt', sep=';', skip=66637, nrows=2880) headers <- read.table('household_power_consumption.txt', sep=';', nrows=1) names(power) <-lapply(headers, as.character) p...
/plot2.R
no_license
kevinrtai/ExData_Plotting1
R
false
false
830
r
# Import the lubridate package library(lubridate) # First read in the data from the current working directory power <- read.table('household_power_consumption.txt', sep=';', skip=66637, nrows=2880) headers <- read.table('household_power_consumption.txt', sep=';', nrows=1) names(power) <-lapply(headers, as.character) p...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2120 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2120 c c Input Parameter (command line, file): c input filename QBFLIB/Letombe/renHorn/renHorn_400CNF2120_2aQBF_19.qdimacs c ou...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Letombe/renHorn/renHorn_400CNF2120_2aQBF_19/renHorn_400CNF2120_2aQBF_19.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
645
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2120 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2120 c c Input Parameter (command line, file): c input filename QBFLIB/Letombe/renHorn/renHorn_400CNF2120_2aQBF_19.qdimacs c ou...
# Script to build a longform dataframe of precipitation observations and covariates # for input to the neural network interpolation method library(rgdal) library(reshape2) # Set timezone for environment to UTC Sys.setenv(TZ="UTC") # Constant for path to local ncar statmos code location PATH_CODE <- '/storage/home/jwo...
/scripts/r/select_xval_stns.R
no_license
jaredwo/ncar_statmos
R
false
false
1,591
r
# Script to build a longform dataframe of precipitation observations and covariates # for input to the neural network interpolation method library(rgdal) library(reshape2) # Set timezone for environment to UTC Sys.setenv(TZ="UTC") # Constant for path to local ncar statmos code location PATH_CODE <- '/storage/home/jwo...
<html> <head> <meta name="TextLength" content="SENT_NUM:12, WORD_NUM:229"> </head> <body bgcolor="white"> <a href="#0" id="0">This is done by splitting the original set of states into subsets as the successor tree is traversed.</a> <a href="#1" id="1">{a mathematical formula}o(s)=s and {a mathematical formula}s,s′⊨c.</...
/AI-Dataset/Summary_rnd/S000437021630114X.xml.A.R
no_license
Angela7126/SLNSumEval
R
false
false
1,987
r
<html> <head> <meta name="TextLength" content="SENT_NUM:12, WORD_NUM:229"> </head> <body bgcolor="white"> <a href="#0" id="0">This is done by splitting the original set of states into subsets as the successor tree is traversed.</a> <a href="#1" id="1">{a mathematical formula}o(s)=s and {a mathematical formula}s,s′⊨c.</...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/dfm-main.R \docType{methods} \name{trim} \alias{trim} \alias{trim,dfm-method} \alias{trimdfm} \title{Trim a dfm using threshold-based or random feature selection} \usage{ trim(x, minCount = 1, minDoc = 1, nsample = NULL, verbose = TRU...
/man/trim.Rd
no_license
parthasen/quanteda
R
false
false
1,420
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/dfm-main.R \docType{methods} \name{trim} \alias{trim} \alias{trim,dfm-method} \alias{trimdfm} \title{Trim a dfm using threshold-based or random feature selection} \usage{ trim(x, minCount = 1, minDoc = 1, nsample = NULL, verbose = TRU...
#' Process release-recapture history data #' #' Creates needed constructs from the release-recapture history. #' #' #' @param ch Vector of character strings; each character string is #' composed of either a constant length sequence of single characters (01001) or #' the character string can be comma separat...
/RMark/R/process.ch.R
no_license
jlaake/RMark
R
false
false
5,109
r
#' Process release-recapture history data #' #' Creates needed constructs from the release-recapture history. #' #' #' @param ch Vector of character strings; each character string is #' composed of either a constant length sequence of single characters (01001) or #' the character string can be comma separat...
## ----setup, echo = FALSE, message = FALSE, warning = FALSE---- library(dplyr) options(dplyr.print_min = 5) library(knitr) library(readr) library(plotly) library(DT) opts_chunk$set(echo = FALSE) ## ----session,echo=TRUE,eval=FALSE---------------- ## shinyServer(function(input, output, session) { ## ## do stuff ##...
/RShinyDynamicUserInterface.R
permissive
jrcarr83/ST-558
R
false
false
9,760
r
## ----setup, echo = FALSE, message = FALSE, warning = FALSE---- library(dplyr) options(dplyr.print_min = 5) library(knitr) library(readr) library(plotly) library(DT) opts_chunk$set(echo = FALSE) ## ----session,echo=TRUE,eval=FALSE---------------- ## shinyServer(function(input, output, session) { ## ## do stuff ##...
year <- c(1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002) num_of_cases <- c(39.7, 38.2, 34.7, 33.1, 30.1, 28.4, 26.3, 24.7) newdata <- data.frame(year = year, num_of_cases = num_of_cases) plot(newdata, main = "Scatter diagram", pch = 20) model <- lm(num_of_cases ~ year, data = newdata) model abline(model, col = "...
/7_1.R
no_license
BohdanBakhlul/statistics
R
false
false
1,595
r
year <- c(1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002) num_of_cases <- c(39.7, 38.2, 34.7, 33.1, 30.1, 28.4, 26.3, 24.7) newdata <- data.frame(year = year, num_of_cases = num_of_cases) plot(newdata, main = "Scatter diagram", pch = 20) model <- lm(num_of_cases ~ year, data = newdata) model abline(model, col = "...
#' @title Binomial Random Variable #' @description Creates an object of class binvar, a list containing the number of trials and the probability of success on each trial #' @param trials integer representing n, the total number of trials #' @param prob float representing p, the probability of success on a given trial ...
/workout03/binomial/R/bin_var.R
no_license
stat133-sp19/hw-stat133-ischmidt20
R
false
false
1,810
r
#' @title Binomial Random Variable #' @description Creates an object of class binvar, a list containing the number of trials and the probability of success on each trial #' @param trials integer representing n, the total number of trials #' @param prob float representing p, the probability of success on a given trial ...
if (!require("shiny")) { install.packages("shiny") library(shiny) } if (!require("gplots")) { install.packages("gplots") library(gplots) } if (!require("colorspace")) { install.packages("colorspace") library(colorspace) }
/dependencies.r
no_license
hmbotelho/gene_heatmap
R
false
false
248
r
if (!require("shiny")) { install.packages("shiny") library(shiny) } if (!require("gplots")) { install.packages("gplots") library(gplots) } if (!require("colorspace")) { install.packages("colorspace") library(colorspace) }
#This is a test script a <- rnorm(100) plot(a, xlim=c(-2,2))
/test.R
no_license
lalitsurampudi/Sandbox
R
false
false
62
r
#This is a test script a <- rnorm(100) plot(a, xlim=c(-2,2))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/inspect_text.R \name{inspect_text} \alias{inspect_text} \alias{inspect_text.Corpus} \alias{inspect_text.default} \title{Inspect Text Vectors} \usage{ inspect_text(text.var, grouping.var = NULL, ...) \method{inspect_text}{default}(text.var, g...
/man/inspect_text.Rd
no_license
hoodaly/qdap
R
false
true
1,376
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/inspect_text.R \name{inspect_text} \alias{inspect_text} \alias{inspect_text.Corpus} \alias{inspect_text.default} \title{Inspect Text Vectors} \usage{ inspect_text(text.var, grouping.var = NULL, ...) \method{inspect_text}{default}(text.var, g...
\name{NISTcalTOjoule} \alias{NISTcalTOjoule} \title{Convert calorie to joule } \usage{NISTcalTOjoule(cal)} \description{\code{NISTcalTOjoule} converts from calorie (cal) (mean) to joule (J) } \arguments{ \item{cal}{calorie (cal) (mean) } } \value{joule (J) } \source{ National Institute of Standards and Technology (N...
/man/NISTcalTOjoule.Rd
no_license
cran/NISTunits
R
false
false
722
rd
\name{NISTcalTOjoule} \alias{NISTcalTOjoule} \title{Convert calorie to joule } \usage{NISTcalTOjoule(cal)} \description{\code{NISTcalTOjoule} converts from calorie (cal) (mean) to joule (J) } \arguments{ \item{cal}{calorie (cal) (mean) } } \value{joule (J) } \source{ National Institute of Standards and Technology (N...
setwd(dir = "~/Desktop/") ##function bydevicesessions renders tables for product report ## you can CHANGE the number of weeks shown in the final table when calling ## the function in the console "bydevicesessions(X)" where X is the number ## of weeks you want to show, the default value is 5, which means it will ## sho...
/alex.R
no_license
AlexKosior/AppReport
R
false
false
4,657
r
setwd(dir = "~/Desktop/") ##function bydevicesessions renders tables for product report ## you can CHANGE the number of weeks shown in the final table when calling ## the function in the console "bydevicesessions(X)" where X is the number ## of weeks you want to show, the default value is 5, which means it will ## sho...