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
library(htmltools) test_that("mergeLists", { a <- list(a = 1, b = "b", c = 3) b <- list(a = 2, c = 4, d = "d") expect_equal(mergeLists(a, b), list(a = 2, b = "b", c = 4, d = "d")) a <- list(a = 1, b = 2) b <- list() expect_equal(mergeLists(a, b), list(a = 1, b = 2)) a <- list() b <- list(a = 1, b = 2...
/tests/testthat/test-utils.R
permissive
glin/reactable
R
false
false
10,854
r
library(htmltools) test_that("mergeLists", { a <- list(a = 1, b = "b", c = 3) b <- list(a = 2, c = 4, d = "d") expect_equal(mergeLists(a, b), list(a = 2, b = "b", c = 4, d = "d")) a <- list(a = 1, b = 2) b <- list() expect_equal(mergeLists(a, b), list(a = 1, b = 2)) a <- list() b <- list(a = 1, b = 2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/valid_corr.R \name{valid_corr} \alias{valid_corr} \title{Determine Correlation Bounds for Ordinal, Continuous, Poisson, and/or Negative Binomial Variables: Correlation Method 1} \usage{ valid_corr(k_cat = 0, k_cont = 0, k_pois = 0, k_nb...
/man/valid_corr.Rd
no_license
cran/SimMultiCorrData
R
false
true
15,042
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/valid_corr.R \name{valid_corr} \alias{valid_corr} \title{Determine Correlation Bounds for Ordinal, Continuous, Poisson, and/or Negative Binomial Variables: Correlation Method 1} \usage{ valid_corr(k_cat = 0, k_cont = 0, k_pois = 0, k_nb...
library(rmarkdown);library(knitr);library(aws.s3) ## Render the R markdown file render('/home/ubuntu/Git/Sensor_Alert/Sensor_Alert_Performance.Rmd') ## Adding the R environment file. This file contains the API used for analysis readRenviron("/home/ubuntu/Git/API.Renviron") ## Add your AWS account details Sys.setenv...
/.ipynb_checkpoints/Base_script-checkpoint.R
no_license
adeel1997/Sensor_Alert
R
false
false
681
r
library(rmarkdown);library(knitr);library(aws.s3) ## Render the R markdown file render('/home/ubuntu/Git/Sensor_Alert/Sensor_Alert_Performance.Rmd') ## Adding the R environment file. This file contains the API used for analysis readRenviron("/home/ubuntu/Git/API.Renviron") ## Add your AWS account details Sys.setenv...
library(crrSC) ### Name: center ### Title: Multicenter Bone Marrow transplantation data ### Aliases: center ### Keywords: datasets crrSC ### ** Examples data(center)
/data/genthat_extracted_code/crrSC/examples/center.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
171
r
library(crrSC) ### Name: center ### Title: Multicenter Bone Marrow transplantation data ### Aliases: center ### Keywords: datasets crrSC ### ** Examples data(center)
library("lme4") library("nlme") m_neigh <- read.csv("../results/ Neighbourhood.csv") m_neigh$colonia <- paste(m_neigh$SETT_NAME, m_neigh$MUN_NAME, sep = "_") m_neigh$days2 <- m_neigh$days^2 m_neigh$days3 <- m_neigh$days^3 model <- lmer( value ~ Type + days + days2 | SETT_NAME, data = m_neigh ) model <- gls( v...
/analysis/006_mortality_kriging_plots/bin/model.R
no_license
KarolBL/Atlas-CDMX
R
false
false
879
r
library("lme4") library("nlme") m_neigh <- read.csv("../results/ Neighbourhood.csv") m_neigh$colonia <- paste(m_neigh$SETT_NAME, m_neigh$MUN_NAME, sep = "_") m_neigh$days2 <- m_neigh$days^2 m_neigh$days3 <- m_neigh$days^3 model <- lmer( value ~ Type + days + days2 | SETT_NAME, data = m_neigh ) model <- gls( v...
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %%%%%%%%%%%%%%%%%%%%%%%% CODE FUNCTION %%%%%%%%%%%%%%%%%%%%%%%% # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
/R/EWS_functions.R
no_license
cran/EWS
R
false
false
77,565
r
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %%%%%%%%%%%%%%%%%%%%%%%% CODE FUNCTION %%%%%%%%%%%%%%%%%%%%%%%% # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
#Script to make plot1.png #Read data. Missing values encoded as ? electric_power<-read.table("household_power_consumption.txt",sep=";",header=T,na.strings = "?",stringsAsFactors = F) #Convert date to R Date class electric_power$Date<-strptime(electric_power$Date,format="%d/%m/%Y") #Subset to 2007-02-01 and 2007-02-02 e...
/plot1.R
no_license
yuliangwang/ExData_Plotting1
R
false
false
680
r
#Script to make plot1.png #Read data. Missing values encoded as ? electric_power<-read.table("household_power_consumption.txt",sep=";",header=T,na.strings = "?",stringsAsFactors = F) #Convert date to R Date class electric_power$Date<-strptime(electric_power$Date,format="%d/%m/%Y") #Subset to 2007-02-01 and 2007-02-02 e...
#!/usr/bin/env Rscript ## Library R packages ---- library(pacman) suppressWarnings(suppressPackageStartupMessages( p_load( crayon, data.table, dplyr, ggplot2, ggpubr, ggsci, stringr, tximport, rtracklayer, ggrepel, viridis )...
/Hi-C_Processing/ComparePC1BedGraph_WithABCompartmentChangeInfo.R
no_license
srikanthkris/Ath_Heat_Hi-C
R
false
false
6,383
r
#!/usr/bin/env Rscript ## Library R packages ---- library(pacman) suppressWarnings(suppressPackageStartupMessages( p_load( crayon, data.table, dplyr, ggplot2, ggpubr, ggsci, stringr, tximport, rtracklayer, ggrepel, viridis )...
## Put comments here that give an overall description of what your ## functions do ## makeCacheMatrix will create a matrix object and defines the getter/setter ## methods for the matrix and its inverse makeCacheMatrix <- function(x = matrix()) { xinv = NULL #initialze the matix inverse as NULL #the set fun...
/cachematrix.R
no_license
subhashbylaiah/ProgrammingAssignment2
R
false
false
1,248
r
## Put comments here that give an overall description of what your ## functions do ## makeCacheMatrix will create a matrix object and defines the getter/setter ## methods for the matrix and its inverse makeCacheMatrix <- function(x = matrix()) { xinv = NULL #initialze the matix inverse as NULL #the set fun...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils-tidy-eval.R \name{tidyeval} \alias{tidyeval} \alias{expr} \alias{enquo} \alias{enquos} \alias{sym} \alias{syms} \alias{.data} \alias{:=} \alias{as_name} \alias{as_label} \title{Tidy eval helpers} \description{ \itemize{ \item \code{\lin...
/man/tidyeval.Rd
permissive
shamindras/maars
R
false
true
2,047
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils-tidy-eval.R \name{tidyeval} \alias{tidyeval} \alias{expr} \alias{enquo} \alias{enquos} \alias{sym} \alias{syms} \alias{.data} \alias{:=} \alias{as_name} \alias{as_label} \title{Tidy eval helpers} \description{ \itemize{ \item \code{\lin...
# Copyright 2021 Bedford Freeman & Worth Pub Grp LLC DBA Macmillan Learning. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
/data-raw/sysdata.R
permissive
ablack3/torchtransformers
R
false
false
2,918
r
# Copyright 2021 Bedford Freeman & Worth Pub Grp LLC DBA Macmillan Learning. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/newGitbook.R \name{newGitbook} \alias{newGitbook} \title{Initializes a new Gitbook.} \usage{ newGitbook(dir, example_sections = TRUE) } \arguments{ \item{dir}{location of the built gitbook.} \item{example_sections}{If TRUE, sample ch...
/man/newGitbook.Rd
no_license
sboysel/Rgitbook
R
false
false
472
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/newGitbook.R \name{newGitbook} \alias{newGitbook} \title{Initializes a new Gitbook.} \usage{ newGitbook(dir, example_sections = TRUE) } \arguments{ \item{dir}{location of the built gitbook.} \item{example_sections}{If TRUE, sample ch...
library(tidytext) # reorder_within and scale_x_reordered work. # (Note that you need to set scales = "free_x" in the facet) iris_gathered <- pivot_longer(iris, cols = 1:4,names_to = "metric", values_to = "value") # Before ggplot(iris_gathered, aes(reorder(Species, value), value)) + geom_bar(stat = 'identity') +...
/My R functions/Arranging facet bar in ggplot.R
no_license
gbganalyst/Data-science-with-R
R
false
false
558
r
library(tidytext) # reorder_within and scale_x_reordered work. # (Note that you need to set scales = "free_x" in the facet) iris_gathered <- pivot_longer(iris, cols = 1:4,names_to = "metric", values_to = "value") # Before ggplot(iris_gathered, aes(reorder(Species, value), value)) + geom_bar(stat = 'identity') +...
# scooby do data set 20210715 library(tidyverse) library(lubridate) scoobydoo <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-07-13/scoobydoo.csv') # 603 observations... colnames(scoobydoo) unique(scoobydoo$series_name) # 29 different series # my idea how does ...
/fig_3C.R
no_license
brennanpincardiff/fig_for_the_Biochemist
R
false
false
2,449
r
# scooby do data set 20210715 library(tidyverse) library(lubridate) scoobydoo <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-07-13/scoobydoo.csv') # 603 observations... colnames(scoobydoo) unique(scoobydoo$series_name) # 29 different series # my idea how does ...
#assign("p11", NULL, envir = .GlobalEnv) #assign("p12", NULL, envir = .GlobalEnv) #assign("p21", NULL, envir = .GlobalEnv) #assign("p22", NULL, envir = .GlobalEnv) #p11 <<- par() p22 <<- par() p12 <<- par() p21 <<- par() #p11 <- par() p22 <- par() p12 <- par() p21 <- par() .varDiagOptions <- new.env(FALSE, glob...
/R/VARDIAG.R
no_license
edzer/vardiag
R
false
false
19,993
r
#assign("p11", NULL, envir = .GlobalEnv) #assign("p12", NULL, envir = .GlobalEnv) #assign("p21", NULL, envir = .GlobalEnv) #assign("p22", NULL, envir = .GlobalEnv) #p11 <<- par() p22 <<- par() p12 <<- par() p21 <<- par() #p11 <- par() p22 <- par() p12 <- par() p21 <- par() .varDiagOptions <- new.env(FALSE, glob...
component <- data.frame(supplier=c(1,2,2,3,1,2,3,2,3,1,3,1,3,2,2,3,3,2,2,3,4,3,3,1,4,3,3,2,2,4,3,4,2,2,4,3,2,1,3,3,4,2,3,2,2,2, 3,2,3,3,4,2,1,4,3,2,3,3,2,3,3,3,1,3,2,3,2,3,2,3,2,3,1,3,3,2,4,3,1,3,3,2,3,2,2,2,3,3,3,3,2,2, 2,2,2,2,2,3,2,1,3,3,1,2,3,3,2,1,2,1,2,3,4,2,2,4,3,3,2,3,2,2,3,2,3,4,3,1,2,3), lifetime=c(8.38,9.98,...
/R/componentdata.R
no_license
cran/doex
R
false
false
1,023
r
component <- data.frame(supplier=c(1,2,2,3,1,2,3,2,3,1,3,1,3,2,2,3,3,2,2,3,4,3,3,1,4,3,3,2,2,4,3,4,2,2,4,3,2,1,3,3,4,2,3,2,2,2, 3,2,3,3,4,2,1,4,3,2,3,3,2,3,3,3,1,3,2,3,2,3,2,3,2,3,1,3,3,2,4,3,1,3,3,2,3,2,2,2,3,3,3,3,2,2, 2,2,2,2,2,3,2,1,3,3,1,2,3,3,2,1,2,1,2,3,4,2,2,4,3,3,2,3,2,2,3,2,3,4,3,1,2,3), lifetime=c(8.38,9.98,...
#'@name correlation #'@import corrplot #'@import data.table #'@export correlation_plot <- function(DF3){ cor_cts <- cor(DF3, method="pearson") print(cor_cts) cols<- colorRampPalette(c("blue", "white", "red"))(20) corrplot(cor_cts, type="upper", order="hclust", hclust.method= "ward", col=cols, addCoef.col = "bl...
/iSeqQC_shinyapp/R/correlation.R
permissive
novapyth/iSeqQC
R
false
false
452
r
#'@name correlation #'@import corrplot #'@import data.table #'@export correlation_plot <- function(DF3){ cor_cts <- cor(DF3, method="pearson") print(cor_cts) cols<- colorRampPalette(c("blue", "white", "red"))(20) corrplot(cor_cts, type="upper", order="hclust", hclust.method= "ward", col=cols, addCoef.col = "bl...
#' Nordpred-object with fit of power5 and poisson Age- Period-Cohort models and #' related predictions for use on of cancer incidence data #' #' \code{nordpred} uses the power5 and poisson Age-Period-Cohort (APC) models to #' calculate prediction of cancer incidence and mortality #' This class of objects is return...
/R/nordpred.object.R
no_license
ondiekhann/nordpred
R
false
false
3,042
r
#' Nordpred-object with fit of power5 and poisson Age- Period-Cohort models and #' related predictions for use on of cancer incidence data #' #' \code{nordpred} uses the power5 and poisson Age-Period-Cohort (APC) models to #' calculate prediction of cancer incidence and mortality #' This class of objects is return...
# T03_Matrix_arrays.R - DESC # T03_Matrix_arrays.R # Copyright 2011-13 JRC FishReg. Distributed under the GPL 2 or later # Maintainer: FishReg, JRC # Introduction to R for Fisheries Science # MATRIX # A 2D structure of either numeric or character elements # Constructed using matrix() matrix(rnorm(10), ncol=10, n...
/Day01/T03_Matrix_arrays.R
no_license
ariffahmi7/RforFisheries
R
false
false
1,318
r
# T03_Matrix_arrays.R - DESC # T03_Matrix_arrays.R # Copyright 2011-13 JRC FishReg. Distributed under the GPL 2 or later # Maintainer: FishReg, JRC # Introduction to R for Fisheries Science # MATRIX # A 2D structure of either numeric or character elements # Constructed using matrix() matrix(rnorm(10), ncol=10, n...
# ============================================================================== # # Regression for ladder fuel metrics from trad, ALS, UAV, ZEB, and banner # # ============================================================================== # # Author: Brieanne Forbes # # Created: 21 Jan 2021 # # ======================...
/ladder_fuel_regression(6).R
no_license
forbesb97/forbesb_b_manuscript
R
false
false
16,640
r
# ============================================================================== # # Regression for ladder fuel metrics from trad, ALS, UAV, ZEB, and banner # # ============================================================================== # # Author: Brieanne Forbes # # Created: 21 Jan 2021 # # ======================...
#Group 15: Anisha Bhuiyan, Shermeen Khan, Sahil Rajapkar #Assignment HW # 2 -------------------------------------- #Reading in the Facebook data through the CSV file. csv_download_link = "http://guides.newman.baruch.cuny.edu/ld.php?content_id=39953204" link_url = url(csv_download_link) fb_data = read.csv(link_url...
/Facebook Marketing (1) (1) (3).R
no_license
THSSIR18/cis3920-project-2
R
false
false
4,922
r
#Group 15: Anisha Bhuiyan, Shermeen Khan, Sahil Rajapkar #Assignment HW # 2 -------------------------------------- #Reading in the Facebook data through the CSV file. csv_download_link = "http://guides.newman.baruch.cuny.edu/ld.php?content_id=39953204" link_url = url(csv_download_link) fb_data = read.csv(link_url...
#' Protein-protein interaction (PPI) networks for 5 microorganisms #' #' A dataset containing the protein-protein interaction networks for the #' following 5 microorganisms #' \itemize{ #' \item EBV #' \itemize{ #' \item Common name: Epstein Barr virus #' \item Scientific name: Human gammaherpesvirus 4 #'...
/R/data.R
permissive
alan-turing-institute/network-comparison
R
false
false
3,191
r
#' Protein-protein interaction (PPI) networks for 5 microorganisms #' #' A dataset containing the protein-protein interaction networks for the #' following 5 microorganisms #' \itemize{ #' \item EBV #' \itemize{ #' \item Common name: Epstein Barr virus #' \item Scientific name: Human gammaherpesvirus 4 #'...
testlist <- list(a = 255L, b = -1L, x = integer(0)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610054630-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
112
r
testlist <- list(a = 255L, b = -1L, x = integer(0)) result <- do.call(grattan:::anyOutside,testlist) str(result)
\name{so2} \alias{so2} \docType{data} \title{SO2 levels from the LA pollution study } \description{Sulfur dioxide levels from the LA pollution study } \format{ The format is: Time-Series [1:508] from 1970 to 1980: 3.37 2.59 3.29 3.04 3.39 2.57 2.35 3.38 1.5 2.56 ... } \seealso{\code{\link{lap}}} \keyword{datasets}
/astsa/man/so2.Rd
permissive
wilsonify/TimeSeries
R
false
false
319
rd
\name{so2} \alias{so2} \docType{data} \title{SO2 levels from the LA pollution study } \description{Sulfur dioxide levels from the LA pollution study } \format{ The format is: Time-Series [1:508] from 1970 to 1980: 3.37 2.59 3.29 3.04 3.39 2.57 2.35 3.38 1.5 2.56 ... } \seealso{\code{\link{lap}}} \keyword{datasets}
=begin =@False Boolean @False() ==説明 Falseを返します。 ==引数 なし ==エラー *引数の数が合っていない場合 ==条件 なし ==例 # False # -> False @False() =end
/docs/FalseFunction.rd
permissive
snakamura/q3
R
false
false
233
rd
=begin =@False Boolean @False() ==説明 Falseを返します。 ==引数 なし ==エラー *引数の数が合っていない場合 ==条件 なし ==例 # False # -> False @False() =end
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as-data-frame-har.R \name{as_data_frame.harentry} \alias{as_data_frame.harentry} \alias{as_data_frame.harentries} \alias{as_data_frame.har} \alias{as.data.frame.har} \alias{as.data.frame.harentries} \alias{as.data.frame.harentry} \title{Turns...
/man/as_data_frame.harentry.Rd
no_license
cran/splashr
R
false
true
761
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as-data-frame-har.R \name{as_data_frame.harentry} \alias{as_data_frame.harentry} \alias{as_data_frame.harentries} \alias{as_data_frame.har} \alias{as.data.frame.har} \alias{as.data.frame.harentries} \alias{as.data.frame.harentry} \title{Turns...
#Q1 set.seed(1) rmse <- replicate(100, { test_index <- createDataPartition(dat$y, times = 1, p = 0.5, list = FALSE) train_set <- dat %>% slice(-test_index) test_set <- dat %>% slice(test_index) fit <- lm(y ~ x, data = train_set) y_hat <- predict(fit, newdata = test_set) sqrt(mean((y_hat-test_set$y)^2)) }) ...
/test 4.R
no_license
thinhle1304/machinelearning
R
false
false
1,421
r
#Q1 set.seed(1) rmse <- replicate(100, { test_index <- createDataPartition(dat$y, times = 1, p = 0.5, list = FALSE) train_set <- dat %>% slice(-test_index) test_set <- dat %>% slice(test_index) fit <- lm(y ~ x, data = train_set) y_hat <- predict(fit, newdata = test_set) sqrt(mean((y_hat-test_set$y)^2)) }) ...
rbind(day1.learn,day2.learn) %>% mutate(symbl_pair=fct_relevel(symbl_pair, "AB","CD","EF")) -> d d %>% group_by(subj) %>% summarize(group=first(group)) -> gd stan.data=list( N=length(unique(d$subj)), T=length(unique(d$trial))*2, ## both days one after the other group_n_cond=as.integer(gd$group=="n_cond"), g...
/munge/01-A_standata.R
no_license
ZsoltTuri/2018-placebo-nocebo-study
R
false
false
919
r
rbind(day1.learn,day2.learn) %>% mutate(symbl_pair=fct_relevel(symbl_pair, "AB","CD","EF")) -> d d %>% group_by(subj) %>% summarize(group=first(group)) -> gd stan.data=list( N=length(unique(d$subj)), T=length(unique(d$trial))*2, ## both days one after the other group_n_cond=as.integer(gd$group=="n_cond"), g...
with(af3a895751f014aa185f8deb89b4a92cb, {ROOT <- 'D:/ATS2.0/SEMOSS/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/834ef95c-965c-42d6-b939-0419704fe83f';options(digits.secs=NULL);FRAME941572[,(c('DATA_COLLECTION_TIME')) := lapply(.SD, function(x) as.POSIXct(fast_strptime(x, format...
/834ef95c-965c-42d6-b939-0419704fe83f/R/Temp/aKnNbAKfamY5Z.R
no_license
ayanmanna8/test
R
false
false
384
r
with(af3a895751f014aa185f8deb89b4a92cb, {ROOT <- 'D:/ATS2.0/SEMOSS/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/834ef95c-965c-42d6-b939-0419704fe83f';options(digits.secs=NULL);FRAME941572[,(c('DATA_COLLECTION_TIME')) := lapply(.SD, function(x) as.POSIXct(fast_strptime(x, format...
rm(list=ls()) library(tidyverse) library(curl) library(forcats) library(RcppRoll) library(data.table) library(readxl) library(cowplot) library(sf) library(rmapshaper) library(gganimate) library(paletteer) library(ggtext) options(scipen = 999) #Read in COVID case data temp <- tempfile() source <- "https://coronavirus...
/Heatmaps/English LA Heatmaps.R
no_license
cymack/COVID-20
R
false
false
31,405
r
rm(list=ls()) library(tidyverse) library(curl) library(forcats) library(RcppRoll) library(data.table) library(readxl) library(cowplot) library(sf) library(rmapshaper) library(gganimate) library(paletteer) library(ggtext) options(scipen = 999) #Read in COVID case data temp <- tempfile() source <- "https://coronavirus...
################################################################## ################################################################## ## functional linear model ################################################################## ################################################################## SL.flm <- function(Y, X,...
/SL-fda/SL.flm.R
no_license
ecpolley/SuperLearnerExtra
R
false
false
1,099
r
################################################################## ################################################################## ## functional linear model ################################################################## ################################################################## SL.flm <- function(Y, X,...
#Monte Carlo Integration 1-Dimension #Goal: Write a Monte Carlo integrator for a 1D Function # (1) Calculus (By Hand) # (2) Numerical Integration (R Tools) # (3) Monte Carlo Integration #Function Under Consideration: #f(x) = 3 x^2 + 1 #Interval: 1 to 3 integrand <- function(x) {sin(x)} #<-- Will chang...
/Lab_07/monteCarlo1D.R
no_license
ifelsejet/MATH-032
R
false
false
2,063
r
#Monte Carlo Integration 1-Dimension #Goal: Write a Monte Carlo integrator for a 1D Function # (1) Calculus (By Hand) # (2) Numerical Integration (R Tools) # (3) Monte Carlo Integration #Function Under Consideration: #f(x) = 3 x^2 + 1 #Interval: 1 to 3 integrand <- function(x) {sin(x)} #<-- Will chang...
############################# ## # Author: Gina Nichols # # Date Created: Oct 22 # # Date last modified: Oct 30 2018 - by Andrea # Nov 1 2018 - Gina, added biomass separated by following crop graph # Oct 29 2019 - updated code, new database # # Purpose: Create figures for ASA pr...
/code/old/code_CCmeta_figs-for-Lunchinators.R
no_license
spoicts/ccweedmeta-analysis
R
false
false
7,809
r
############################# ## # Author: Gina Nichols # # Date Created: Oct 22 # # Date last modified: Oct 30 2018 - by Andrea # Nov 1 2018 - Gina, added biomass separated by following crop graph # Oct 29 2019 - updated code, new database # # Purpose: Create figures for ASA pr...
library(dyngen.manuscript) library(tidyverse) library(dtw) library(ggbeeswarm) library(viridis) exp <- start_analysis("usecase_trajectory_alignment") # For each pair, use 3 different kind of processing: smoothing, subsampling, original cells design_smoothing <- exp$result("design_smoothing.rds") %cache% { read_rds(...
/analysis/usecase_trajectory_alignment/2_smoothing.R
no_license
PeterZZQ/dyngen_manuscript
R
false
false
2,412
r
library(dyngen.manuscript) library(tidyverse) library(dtw) library(ggbeeswarm) library(viridis) exp <- start_analysis("usecase_trajectory_alignment") # For each pair, use 3 different kind of processing: smoothing, subsampling, original cells design_smoothing <- exp$result("design_smoothing.rds") %cache% { read_rds(...
library(shiny) library(knitr) shinyUI( pageWithSidebar( # Application title headerPanel("Yellowstone Old Faithful Geyser Eruption Duration Prediction"), sidebarPanel( numericInput('wait', 'Enter geyser wai...
/ui.R
no_license
medmatix/ShinyApplication
R
false
false
1,274
r
library(shiny) library(knitr) shinyUI( pageWithSidebar( # Application title headerPanel("Yellowstone Old Faithful Geyser Eruption Duration Prediction"), sidebarPanel( numericInput('wait', 'Enter geyser wai...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots.R \name{plot_cells} \alias{plot_cells} \title{Plot cells in reduced dimensionality 2D space} \usage{ plot_cells(fce, features, ...) } \arguments{ \item{fce}{fce object of class MultiAssayExperiment} \item{features}{features to plot, ei...
/man/plot_cells.Rd
permissive
mandylr/scrunchy
R
false
true
516
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots.R \name{plot_cells} \alias{plot_cells} \title{Plot cells in reduced dimensionality 2D space} \usage{ plot_cells(fce, features, ...) } \arguments{ \item{fce}{fce object of class MultiAssayExperiment} \item{features}{features to plot, ei...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22371540218325e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615769915-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
362
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22371540218325e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DEG.R \name{wilcoxDEG} \alias{wilcoxDEG} \title{Wilcoxon test for each row of a dataframe} \usage{ wilcoxDEG(data, n1, n2) } \arguments{ \item{data}{dataframe of gene expression levels: Gene names in rows, samples in columns.} \item{n1}{Numb...
/man/wilcoxDEG.Rd
no_license
acolajanni/GENEXPRESSO
R
false
true
1,031
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DEG.R \name{wilcoxDEG} \alias{wilcoxDEG} \title{Wilcoxon test for each row of a dataframe} \usage{ wilcoxDEG(data, n1, n2) } \arguments{ \item{data}{dataframe of gene expression levels: Gene names in rows, samples in columns.} \item{n1}{Numb...
#Author: Chathura J Gunasekara #Version: 1 #data: June 20, 2017 #install.packages("doMC") #install.packages("infotheo") #install.packages(stats) #install.packages(MASS) #install.packages(iterators) #install.packages(parallel) #install.packages(foreach) library("parallel") library(stats) library(MASS) library(iterators)...
/run_TGMI.R
no_license
cjgunase/TGMI
R
false
false
6,073
r
#Author: Chathura J Gunasekara #Version: 1 #data: June 20, 2017 #install.packages("doMC") #install.packages("infotheo") #install.packages(stats) #install.packages(MASS) #install.packages(iterators) #install.packages(parallel) #install.packages(foreach) library("parallel") library(stats) library(MASS) library(iterators)...
#record time start_time<-Sys.time() #----------------------------------------------------------------------------------------------------- callInfo<-callInfo[custorm_id!='NULL'&!is.na(custorm_id)] callInfo[,'time_contact']<-dateMap(callInfo$time_contact) callInfo[,'num_contact'] <-callInfo$num_contact%>%as.character%>...
/LabelAutoComputeScripts/SOCIAL_MODULE/CODE/callFeatAggregate.R
no_license
miission/RProj
R
false
false
3,356
r
#record time start_time<-Sys.time() #----------------------------------------------------------------------------------------------------- callInfo<-callInfo[custorm_id!='NULL'&!is.na(custorm_id)] callInfo[,'time_contact']<-dateMap(callInfo$time_contact) callInfo[,'num_contact'] <-callInfo$num_contact%>%as.character%>...
\name{expSBM_ELBO} \alias{expSBM_ELBO} \title{expSBM_ELBO} \description{ Evaluates the evidence lower bound for a given dynamic network. } \usage{ expSBM_ELBO(N, edgelist, Z, lambda, mu, nu, directed = F, trunc = T, verbose = F) } \arguments{ \item{N}{Number of nodes.} \item{edgelist}{A matrix with 4 columns: on th...
/fuzzedpackages/expSBM/man/expSBM_ELBO.Rd
no_license
akhikolla/testpackages
R
false
false
1,763
rd
\name{expSBM_ELBO} \alias{expSBM_ELBO} \title{expSBM_ELBO} \description{ Evaluates the evidence lower bound for a given dynamic network. } \usage{ expSBM_ELBO(N, edgelist, Z, lambda, mu, nu, directed = F, trunc = T, verbose = F) } \arguments{ \item{N}{Number of nodes.} \item{edgelist}{A matrix with 4 columns: on th...
\name{sequentialSearch_dir} \alias{sequentialSearch_dir} \title{Compute PeakSeg model with given number of peaks} \description{Compute the most likely peak model with at most the number of peaks given by \code{peaks.int}. This function repeated calls \code{\link{PeakSegFPOP_dir}} with different penalty values, until ei...
/man/sequentialSearch_dir.Rd
no_license
tdhock/PeakSegDisk
R
false
false
2,814
rd
\name{sequentialSearch_dir} \alias{sequentialSearch_dir} \title{Compute PeakSeg model with given number of peaks} \description{Compute the most likely peak model with at most the number of peaks given by \code{peaks.int}. This function repeated calls \code{\link{PeakSegFPOP_dir}} with different penalty values, until ei...
tsb <- function(data,h=10,w=NULL,init=c("mean","naive"), cost=c("mar","msr","mae","mse"), init.opt=c(TRUE,FALSE),outplot=c(FALSE,TRUE), opt.on=c(FALSE,TRUE),na.rm=c(FALSE,TRUE)){ # TSB method # # Inputs: # data Intermittent demand time series. # h For...
/R/tsb.R
no_license
trnnick/tsintermittent
R
false
false
7,726
r
tsb <- function(data,h=10,w=NULL,init=c("mean","naive"), cost=c("mar","msr","mae","mse"), init.opt=c(TRUE,FALSE),outplot=c(FALSE,TRUE), opt.on=c(FALSE,TRUE),na.rm=c(FALSE,TRUE)){ # TSB method # # Inputs: # data Intermittent demand time series. # h For...
library(distrEx) ### Name: var ### Title: Generic Functions for the Computation of Functionals ### Aliases: var var-methods var,ANY-method ### var,UnivariateDistribution-method var,AffLinDistribution-method ### var,AffLinAbscontDistribution-method ### var,AffLinDiscreteDistribution-method ### var,AffLinLattic...
/data/genthat_extracted_code/distrEx/examples/Var.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
4,278
r
library(distrEx) ### Name: var ### Title: Generic Functions for the Computation of Functionals ### Aliases: var var-methods var,ANY-method ### var,UnivariateDistribution-method var,AffLinDistribution-method ### var,AffLinAbscontDistribution-method ### var,AffLinDiscreteDistribution-method ### var,AffLinLattic...
context("src") test_that("src structure is as expected", { expect_is(src_itis, "function") expect_is(src_gbif, "function") expect_is(src_tpl, "function") expect_is(src_col, "function") }) test_that("src fails well", { skip_on_cran() skip_on_travis() expect_error(src_itis(), "argument \"user\" is missi...
/data/genthat_extracted_code/taxizedb/tests/test-src.R
no_license
surayaaramli/typeRrh
R
false
false
602
r
context("src") test_that("src structure is as expected", { expect_is(src_itis, "function") expect_is(src_gbif, "function") expect_is(src_tpl, "function") expect_is(src_col, "function") }) test_that("src fails well", { skip_on_cran() skip_on_travis() expect_error(src_itis(), "argument \"user\" is missi...
library(tidyverse) library(rgeos) library(sf) library(ggplot2) library(sp) library(geosphere) library(rgdal) library(tmaptools) library(dplyr) #getwd() setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) # Set projection wgs.84 <- get_proj4("WGS84", output = "character") if (!dir.exists("../Data Files/NSWDep...
/Raw Data/R Code/NSWGovt_SchoolsMasterDataset_Data_Extract.R
no_license
william-kent-stds/stds_edu
R
false
false
2,712
r
library(tidyverse) library(rgeos) library(sf) library(ggplot2) library(sp) library(geosphere) library(rgdal) library(tmaptools) library(dplyr) #getwd() setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) # Set projection wgs.84 <- get_proj4("WGS84", output = "character") if (!dir.exists("../Data Files/NSWDep...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/Zagg.R \name{Zagg} \alias{Zagg} \title{Processing output of label switching function} \usage{ Zagg(USout, .Y = Y) } \arguments{ \item{output}{of UNIVARIATE label switching function} } \description{ explain here } \examples{ #nope } \k...
/man/Zagg.Rd
no_license
zoevanhavre/Zmix_devVersion2
R
false
false
344
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/Zagg.R \name{Zagg} \alias{Zagg} \title{Processing output of label switching function} \usage{ Zagg(USout, .Y = Y) } \arguments{ \item{output}{of UNIVARIATE label switching function} } \description{ explain here } \examples{ #nope } \k...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rocCI.R \name{ciROC} \alias{ciROC} \title{Confidence Interval of ROC curve} \usage{ ciROC(object, ...) } \arguments{ \item{object}{An object of class \code{"rocit"}, returned by \code{\link{rocit}}. Supports \code{"empirical"} and \...
/man/ciROC.Rd
no_license
cran/ROCit
R
false
true
486
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rocCI.R \name{ciROC} \alias{ciROC} \title{Confidence Interval of ROC curve} \usage{ ciROC(object, ...) } \arguments{ \item{object}{An object of class \code{"rocit"}, returned by \code{\link{rocit}}. Supports \code{"empirical"} and \...
##SAMPLING FUNCTIONS FROM PRIOR DISTRIBUTIONS samp_int_vec<-function(x=1,y=1:10){ #x is an integer, y is a vector out<-c() for (i in 1:length(y)){ if (x!=y[i]){ out[i]<-sample(x:y[i],1,replace=T) }else{ out[i]<-x } } return(out) } samp_vec_int<-function(x=1:10,y=1){ #x is a vector, y is an integer out<-c() for...
/Orangos/mod_1a.r
no_license
anbena/ABC-FDSS
R
false
false
8,035
r
##SAMPLING FUNCTIONS FROM PRIOR DISTRIBUTIONS samp_int_vec<-function(x=1,y=1:10){ #x is an integer, y is a vector out<-c() for (i in 1:length(y)){ if (x!=y[i]){ out[i]<-sample(x:y[i],1,replace=T) }else{ out[i]<-x } } return(out) } samp_vec_int<-function(x=1:10,y=1){ #x is a vector, y is an integer out<-c() for...
# Coursera Course - Exploratory Data Analysis # Week 1 - Project 1 # plot3.R # Author: J Szijjarto # nrows=2076000 library(data.table) plot3 <- function() { data_file = "./data/household_power_consumption.txt" col_classes = c("Date", "character", "numeric","numeric", "numeric","numeric","numeric...
/plot3.R
no_license
ljszijjarto/ExData_Plotting1
R
false
false
1,209
r
# Coursera Course - Exploratory Data Analysis # Week 1 - Project 1 # plot3.R # Author: J Szijjarto # nrows=2076000 library(data.table) plot3 <- function() { data_file = "./data/household_power_consumption.txt" col_classes = c("Date", "character", "numeric","numeric", "numeric","numeric","numeric...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/harvard-botanists.R \name{bot_search} \alias{bot_search} \title{Harvard botanist index functions} \usage{ bot_search(name = NULL, individual = FALSE, start = NULL, fuzzy = FALSE, remarks = NULL, speciality = NULL, country = NULL, is_colle...
/man/bot_search.Rd
permissive
AshwinAgrawal16/scrubr
R
false
true
774
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/harvard-botanists.R \name{bot_search} \alias{bot_search} \title{Harvard botanist index functions} \usage{ bot_search(name = NULL, individual = FALSE, start = NULL, fuzzy = FALSE, remarks = NULL, speciality = NULL, country = NULL, is_colle...
library(tidyverse) library(broom) library(modelr) library(nls.multstart) sea <- read_csv("data-processed/sea_processed2.csv") TT_fit <- sea %>% filter(species == "TT") %>% filter(temperature < 34) %>% # filter(cell_density > 1000) %>% # mutate(cell_density = ifelse(cell_density < 2000, 1000, cell_density)) %>...
/Rscripts/23_logistic.R
no_license
OConnor-Lab-UBC/J-TEMP
R
false
false
19,560
r
library(tidyverse) library(broom) library(modelr) library(nls.multstart) sea <- read_csv("data-processed/sea_processed2.csv") TT_fit <- sea %>% filter(species == "TT") %>% filter(temperature < 34) %>% # filter(cell_density > 1000) %>% # mutate(cell_density = ifelse(cell_density < 2000, 1000, cell_density)) %>...
\name{linmod} \alias{linmod} %- Also NEED an '\alias' for EACH other topic documented here. \title{ sadf} \description{ sadf} \usage{ linmod(x, ...) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{x}{ asf} \item{\dots}{ sadf} } \details{ sadf} \value{ sadf%% If it is a LIST, use %% \i...
/man/linmod.Rd
no_license
atomczik/linmod
R
false
false
947
rd
\name{linmod} \alias{linmod} %- Also NEED an '\alias' for EACH other topic documented here. \title{ sadf} \description{ sadf} \usage{ linmod(x, ...) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{x}{ asf} \item{\dots}{ sadf} } \details{ sadf} \value{ sadf%% If it is a LIST, use %% \i...
## deprecated functions ## as.mlm: deprecated in 2.5-0 `as.mlm` <- function(x) { .Deprecated("see ?hatvalues.cca for new alternatives") if (is.null(x$CCA)) stop("'as.mlm' can be used only for constrained ordination") UseMethod("as.mlm") } `as.mlm.cca` <- function (x) { w <- x$rowsum ...
/R/vegan-deprecated.R
no_license
Microbiology/vegan
R
false
false
624
r
## deprecated functions ## as.mlm: deprecated in 2.5-0 `as.mlm` <- function(x) { .Deprecated("see ?hatvalues.cca for new alternatives") if (is.null(x$CCA)) stop("'as.mlm' can be used only for constrained ordination") UseMethod("as.mlm") } `as.mlm.cca` <- function (x) { w <- x$rowsum ...
#' Palindromic squares #' #' Under OEIS \href{https://oeis.org/A002779}{A002779}, a \emph{Palindromic square} is a number that is #' both Palindromic and Square. First 6 such numbers are 0, 1, 4, 9, 121, 484. It uses only the base 10 decimals. #' #' @param n the number of first \code{n} entries from the sequence. #' @p...
/R/Palindromic.Squares.R
no_license
cran/Zseq
R
false
false
1,363
r
#' Palindromic squares #' #' Under OEIS \href{https://oeis.org/A002779}{A002779}, a \emph{Palindromic square} is a number that is #' both Palindromic and Square. First 6 such numbers are 0, 1, 4, 9, 121, 484. It uses only the base 10 decimals. #' #' @param n the number of first \code{n} entries from the sequence. #' @p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeMeta.R \name{makeMeta} \alias{makeMeta} \title{Create a metadata object table for a set of charts} \usage{ makeMeta(charts) } \arguments{ \item{charts}{list of safetyGraphics chart objects for which to create metadata} } \value{ tibble of...
/man/makeMeta.Rd
permissive
SafetyGraphics/safetyGraphics
R
false
true
1,488
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeMeta.R \name{makeMeta} \alias{makeMeta} \title{Create a metadata object table for a set of charts} \usage{ makeMeta(charts) } \arguments{ \item{charts}{list of safetyGraphics chart objects for which to create metadata} } \value{ tibble of...
\docType{class} \name{lmList-class} \alias{lmList-class} \alias{show,lmList-method} \title{Class "lmList" of 'lm' Objects on Common Model} \description{ Class \code{"lmList"} is an S4 class with basically a list of objects of class \code{\link{lm}} with a common model. } \section{Objects from the Class}{ Object...
/man/lmList-class.Rd
no_license
jknowles/lme4
R
false
false
463
rd
\docType{class} \name{lmList-class} \alias{lmList-class} \alias{show,lmList-method} \title{Class "lmList" of 'lm' Objects on Common Model} \description{ Class \code{"lmList"} is an S4 class with basically a list of objects of class \code{\link{lm}} with a common model. } \section{Objects from the Class}{ Object...
context("datetime") test_that("datetime conversions", { h <- skip_unless_has_test_db() t1 <- execute(h, "`datetime$6803.5601388888890142") t2 <- execute(h, "`datetime$6803.5601388888917427") expect_equal(t2 - t1 > 0,TRUE) })
/tests/testthat/test-datetime.R
permissive
vishalbelsare/rkdb
R
false
false
233
r
context("datetime") test_that("datetime conversions", { h <- skip_unless_has_test_db() t1 <- execute(h, "`datetime$6803.5601388888890142") t2 <- execute(h, "`datetime$6803.5601388888917427") expect_equal(t2 - t1 > 0,TRUE) })
#################################################################################################### # # Single site LAI SDA # # # --- Last updated: 03.22.2019 By Shawn P. Serbin <sserbin@bnl.gov> #################################################################################################### #-----------...
/modules/assim.sequential/inst/sda_backup/sserbin/Rscripts/single_site_SDA_BNL.R
permissive
PecanProject/pecan
R
false
false
9,703
r
#################################################################################################### # # Single site LAI SDA # # # --- Last updated: 03.22.2019 By Shawn P. Serbin <sserbin@bnl.gov> #################################################################################################### #-----------...
#============================================= # Run Tutorial 15 prior to running this code #============================================= #install.packages('wordcloud') #install.packages('udpipe') #install.packages('textdata') #to install nrc lexicon library(wordcloud) library(udpipe) library(lattice) ############...
/Tutorials/sentiment-analysis/assets/sentiment analysis example.R
no_license
rifayat/OSU_MSIS_5193_Tutorials
R
false
false
11,128
r
#============================================= # Run Tutorial 15 prior to running this code #============================================= #install.packages('wordcloud') #install.packages('udpipe') #install.packages('textdata') #to install nrc lexicon library(wordcloud) library(udpipe) library(lattice) ############...
#Exploratory Data Analysis - Assignment 1 - Plot 2 #Importing the dataset, with file.choose #The subset data (rom the dates 2007-02-01 and 2007-02-02) has been copied to another file. #This is the one that will be selected hhDataSubset <- read.delim(file.choose(),sep = ";", header = TRUE) #Post import, doing ...
/Plot2.R
no_license
sanjaynvs/ExData_Plotting1
R
false
false
1,023
r
#Exploratory Data Analysis - Assignment 1 - Plot 2 #Importing the dataset, with file.choose #The subset data (rom the dates 2007-02-01 and 2007-02-02) has been copied to another file. #This is the one that will be selected hhDataSubset <- read.delim(file.choose(),sep = ";", header = TRUE) #Post import, doing ...
# Chapter 4 Exercises. library(Lahman) library(tidyverse) # 1. Relations between winning percentage and run differential across decadese. # a. Fit linear regression model for the 60s, 70s, 80s, 90s # 60s my_60_teams <- Teams %>% filter(yearID > 1960, year < 1971) %>% select(teamID, yearID, lgID, G, W, L, R, RA) %>...
/Chapter4.R
permissive
coderjones/mlb-stats
R
false
false
4,655
r
# Chapter 4 Exercises. library(Lahman) library(tidyverse) # 1. Relations between winning percentage and run differential across decadese. # a. Fit linear regression model for the 60s, 70s, 80s, 90s # 60s my_60_teams <- Teams %>% filter(yearID > 1960, year < 1971) %>% select(teamID, yearID, lgID, G, W, L, R, RA) %>...
# set file type png(filename = "plot4.png", width = 480, height = 480, units = "px") # set colClasses columns <- c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric") # read in data data <- read.table("Data/household_power_consumption.txt", sep=";", na.st...
/Plot4.R
no_license
njkroes/ExData_Plotting1
R
false
false
1,300
r
# set file type png(filename = "plot4.png", width = 480, height = 480, units = "px") # set colClasses columns <- c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric") # read in data data <- read.table("Data/household_power_consumption.txt", sep=";", na.st...
#Generate barplots for the taxonomy (class level) of the hub OTUs ## Libraries ## library(Hmisc) library(igraph) library(rgexf) library(ggplot2) library(GGally) library(network) library(sna) library(ggplot2) library(tidyr) library(VennDiagram) tema=theme(axis.text.x = element_text(color="black",size=14)...
/plot_taxa_networks.R
no_license
vicflonun/Agavinetworks
R
false
false
4,523
r
#Generate barplots for the taxonomy (class level) of the hub OTUs ## Libraries ## library(Hmisc) library(igraph) library(rgexf) library(ggplot2) library(GGally) library(network) library(sna) library(ggplot2) library(tidyr) library(VennDiagram) tema=theme(axis.text.x = element_text(color="black",size=14)...
######################################################################################## ## Prepare volume data ## Emilie Maddison ## May 17, 2020 ######################################################################################## ## ---------------------------------------------------------------------------------...
/Immunization Financing Project/code/out-of-pocket/03_stgpr/03b_4_prep_volume_results.R
no_license
hashimig/Resource_Tracking_Domestic_Health_Accounts
R
false
false
7,963
r
######################################################################################## ## Prepare volume data ## Emilie Maddison ## May 17, 2020 ######################################################################################## ## ---------------------------------------------------------------------------------...
\name{setEdgeTargetArrowColorRule} \alias{setEdgeTargetArrowColorRule} \alias{setEdgeTargetArrowColorRule,CytoscapeWindowClass-method} \title{Specify rule for the target arrow color} \description{ Specify how edge attributes -- that is, data values of the specified edge attribute -- control the color of the target arro...
/man/setEdgeTargetArrowColorRule.Rd
no_license
sathishsrinivasank/Bioconductor_RCy3_the_new_RCytoscape
R
false
false
2,296
rd
\name{setEdgeTargetArrowColorRule} \alias{setEdgeTargetArrowColorRule} \alias{setEdgeTargetArrowColorRule,CytoscapeWindowClass-method} \title{Specify rule for the target arrow color} \description{ Specify how edge attributes -- that is, data values of the specified edge attribute -- control the color of the target arro...
# directories root_dir <- rprojroot::find_root(rprojroot::has_dir(".git")) source(file.path(root_dir, "code", "utils", "define_directories.R")) # source functions source(file.path(patient_level_analyses_utils, 'kaplan_meier.R')) # recurrent alterations kaplan_meier_pediatric <- kaplan_meier(all_cor = pbta_pnoc008_nn_...
/code/patient_level_analyses/p5_kaplan_meier_pediatric.R
no_license
Shicheng-Guo/OMPARE
R
false
false
507
r
# directories root_dir <- rprojroot::find_root(rprojroot::has_dir(".git")) source(file.path(root_dir, "code", "utils", "define_directories.R")) # source functions source(file.path(patient_level_analyses_utils, 'kaplan_meier.R')) # recurrent alterations kaplan_meier_pediatric <- kaplan_meier(all_cor = pbta_pnoc008_nn_...
# Test whether a correlation between two variables changes # from one within-subject condition to another. N_Subj <- 60 N_Within <- 2 rel_str = 0.3 subj_var = 1.5; subj <- rep(1:N_Subj, each=N_Within) subj_effect <- subj_var * rep(rnorm(N_Subj), each=N_Within) condition_within_subject <- rep(1:N_Within, l...
/test_dep_cor_sims.R
permissive
thomasgladwin/test_dep_cor_sims
R
false
false
1,456
r
# Test whether a correlation between two variables changes # from one within-subject condition to another. N_Subj <- 60 N_Within <- 2 rel_str = 0.3 subj_var = 1.5; subj <- rep(1:N_Subj, each=N_Within) subj_effect <- subj_var * rep(rnorm(N_Subj), each=N_Within) condition_within_subject <- rep(1:N_Within, l...
rmarkdown::render( "produce_full_report.Rmd", output_format = rmdformats::readthedown( self_contained = FALSE, css = "mystyle.css", include = list(before_body = "header.html", after_body = "footer.html") ) )
/src/produce_full_report/script.R
no_license
rcleoni/covid19-forecasts-orderly
R
false
false
245
r
rmarkdown::render( "produce_full_report.Rmd", output_format = rmdformats::readthedown( self_contained = FALSE, css = "mystyle.css", include = list(before_body = "header.html", after_body = "footer.html") ) )
#' @useDynLib compboost, .registration = TRUE NULL #' @import Rcpp NULL
/R/zzz.R
permissive
QuayAu/compboost
R
false
false
73
r
#' @useDynLib compboost, .registration = TRUE NULL #' @import Rcpp NULL
## Time-consuming computations can be speeded up by cacheing the result if the content of e.g. vector or matrix has not changed. ## So, instead of repeating the computation, the program will look up the cached value of the computation (which is stored in ## a different environment than the current environment). ##...
/cachematrix.R
no_license
toracornelia/ProgrammingAssignment2
R
false
false
1,750
r
## Time-consuming computations can be speeded up by cacheing the result if the content of e.g. vector or matrix has not changed. ## So, instead of repeating the computation, the program will look up the cached value of the computation (which is stored in ## a different environment than the current environment). ##...
#' Function to simulate multiple input structures #' #' @description Function is designed to evaluate several different inputs. #' #' `r lifecycle::badge('experimental')` #' #' @details Function is using several other functions to perform sets of operations #' designed to test several inputs. Designed to validate mode...
/R/aml_simulation.R
permissive
DrRoad/lazytrade
R
false
false
11,907
r
#' Function to simulate multiple input structures #' #' @description Function is designed to evaluate several different inputs. #' #' `r lifecycle::badge('experimental')` #' #' @details Function is using several other functions to perform sets of operations #' designed to test several inputs. Designed to validate mode...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1718 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1718 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query04_nreachq_1344/query04_nreachq_1344.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
707
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1718 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1718 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
\name{calcPredictionAccuracy} \Rdversion{1.1} \alias{calcPredictionAccuracy} \alias{calcPredictionAccuracy,realRatingMatrix,realRatingMatrix-method} \alias{calcPredictionAccuracy,topNList,binaryRatingMatrix-method} \alias{calcPredictionAccuracy,topNList,realRatingMatrix-method} \title{ Calculate the Prediction Error ...
/man/calcPredictionAccuracy.Rd
no_license
r0y0u/recommenderlab
R
false
false
4,270
rd
\name{calcPredictionAccuracy} \Rdversion{1.1} \alias{calcPredictionAccuracy} \alias{calcPredictionAccuracy,realRatingMatrix,realRatingMatrix-method} \alias{calcPredictionAccuracy,topNList,binaryRatingMatrix-method} \alias{calcPredictionAccuracy,topNList,realRatingMatrix-method} \title{ Calculate the Prediction Error ...
library(numbersBR) ### Name: is.valid ### Title: Validate numbers ### Aliases: is.valid is.valid.CNPJ is.valid.CPF is.valid.RENAVAN is.valid ### ** Examples is.valid(CNPJ(c(13515463000138, 66670000101))) # TRUE, FALSE is.valid(CPF(c(1239157673, 42752486198))) # TRUE, FALSE is.valid(RENAVAN(c(75320797785, 4275248619...
/data/genthat_extracted_code/numbersBR/examples/is.valid.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
342
r
library(numbersBR) ### Name: is.valid ### Title: Validate numbers ### Aliases: is.valid is.valid.CNPJ is.valid.CPF is.valid.RENAVAN is.valid ### ** Examples is.valid(CNPJ(c(13515463000138, 66670000101))) # TRUE, FALSE is.valid(CPF(c(1239157673, 42752486198))) # TRUE, FALSE is.valid(RENAVAN(c(75320797785, 4275248619...
library(data.table) library(zoo) library(rstudioapi) library(tidyverse) # Set the working directory to the script directory setwd (dirname(getActiveDocumentContext()$path)) # Set Date Language in English Sys.setlocale("LC_TIME", "C") source("Factors.R") portfolio_returns <- as.data.table(portfolio_returns) +cre...
/Ttest.R
no_license
Antoniodigiovanni/FAT-Cases-in-Finance
R
false
false
4,062
r
library(data.table) library(zoo) library(rstudioapi) library(tidyverse) # Set the working directory to the script directory setwd (dirname(getActiveDocumentContext()$path)) # Set Date Language in English Sys.setlocale("LC_TIME", "C") source("Factors.R") portfolio_returns <- as.data.table(portfolio_returns) +cre...
library(samplesize4surveys) ### Name: BigLucyT0T1 ### Title: Some Business Population Database for two periods of time ### Aliases: BigLucyT0T1 ### Keywords: datasets ### ** Examples data(Lucy) attach(Lucy) # The variables of interest are: Income, Employees and Taxes # This information is stored in a data frame cal...
/data/genthat_extracted_code/samplesize4surveys/examples/BigLucyT0T1.rd.R
no_license
surayaaramli/typeRrh
R
false
false
706
r
library(samplesize4surveys) ### Name: BigLucyT0T1 ### Title: Some Business Population Database for two periods of time ### Aliases: BigLucyT0T1 ### Keywords: datasets ### ** Examples data(Lucy) attach(Lucy) # The variables of interest are: Income, Employees and Taxes # This information is stored in a data frame cal...
#work with iris dataset. we shall predict Petal.Width setwd("~/OneDrive/shared files/Statslearningcourse/multi step regression") library("plyr") library("dplyr") library('magrittr') #predict Petal.Width using lm, find RMSE RMSE<- function(answer, guess){ error= answer-guess root.error= sqrt(mean(error^2)) print...
/Statslearningcourse/multi step regression/separte_regs_iris.R
no_license
amycook/cheatsheet
R
false
false
1,938
r
#work with iris dataset. we shall predict Petal.Width setwd("~/OneDrive/shared files/Statslearningcourse/multi step regression") library("plyr") library("dplyr") library('magrittr') #predict Petal.Width using lm, find RMSE RMSE<- function(answer, guess){ error= answer-guess root.error= sqrt(mean(error^2)) print...
#' This script simulates data using familial frailty model. #' We use the following variation: gamma(mu, ssq), where mu is the mean and ssq is sigma square. #' See: https://www.rocscience.com/help/swedge/webhelp/swedge/Gamma_Distribution.htm #' @param N Number of individuals. #' @param f a list of formulas that define...
/fuzzedpackages/stpm/R/simdata_gamma_frailty.R
no_license
akhikolla/testpackages
R
false
false
4,716
r
#' This script simulates data using familial frailty model. #' We use the following variation: gamma(mu, ssq), where mu is the mean and ssq is sigma square. #' See: https://www.rocscience.com/help/swedge/webhelp/swedge/Gamma_Distribution.htm #' @param N Number of individuals. #' @param f a list of formulas that define...
library(tidyverse) # function to fit the aov and run the multiple comparisons run_multicomp <- function(data, group_var, continuous_var) { # to make this work in a pipe / make my life more difficult, I'm using quasiquotation here lhs <- pull(data, {{ continuous_var }}) rhs <- as.factor(pull(data, {{ group_va...
/99_letters-functions.R
no_license
davisadamw/buncha-tukeys
R
false
false
2,884
r
library(tidyverse) # function to fit the aov and run the multiple comparisons run_multicomp <- function(data, group_var, continuous_var) { # to make this work in a pipe / make my life more difficult, I'm using quasiquotation here lhs <- pull(data, {{ continuous_var }}) rhs <- as.factor(pull(data, {{ group_va...
## ff_schedule (MFL) ## #' Get a dataframe detailing every game for every franchise #' #' @param conn a conn object created by `ff_connect()` #' @param ... for other platforms #' #' @examples #' \donttest{ #' try({ # try only shown here because sometimes CRAN checks are weird #' ssb_conn <- ff_connect(platform = "mf...
/R/mfl_schedule.R
permissive
SCasanova/ffscrapr
R
false
false
2,425
r
## ff_schedule (MFL) ## #' Get a dataframe detailing every game for every franchise #' #' @param conn a conn object created by `ff_connect()` #' @param ... for other platforms #' #' @examples #' \donttest{ #' try({ # try only shown here because sometimes CRAN checks are weird #' ssb_conn <- ff_connect(platform = "mf...
# titanic is avaliable in your workspace # Check out the structure of titanic str(titanic) # Use ggplot() for the first instruction ggplot(titanic, aes(x = factor(Pclass), fill = factor(Sex))) + geom_bar(position = "dodge") # Use ggplot() for the second instruction ggplot(titanic, aes(x = factor(Pclass)...
/Titanic.R
no_license
edmondmarv/Data-Visualization-with-ggplot2-part-1-
R
false
false
682
r
# titanic is avaliable in your workspace # Check out the structure of titanic str(titanic) # Use ggplot() for the first instruction ggplot(titanic, aes(x = factor(Pclass), fill = factor(Sex))) + geom_bar(position = "dodge") # Use ggplot() for the second instruction ggplot(titanic, aes(x = factor(Pclass)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network_connectivity_permutation.R \name{get_largest_component_from_edgelist} \alias{get_largest_component_from_edgelist} \title{Returns the size of the largest component from a list of edges} \usage{ get_largest_component_from_edgelist(edgel...
/packages/bcPcaAnalysis/man/get_largest_component_from_edgelist.Rd
no_license
a3cel2/bc_pca_git
R
false
true
523
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network_connectivity_permutation.R \name{get_largest_component_from_edgelist} \alias{get_largest_component_from_edgelist} \title{Returns the size of the largest component from a list of edges} \usage{ get_largest_component_from_edgelist(edgel...
#!/usr/bin/env Rscript # STILT R Executable # For documentation, see https://uataq.github.io/stilt/ # Ben Fasoli # User inputs ------------------------------------------------------------------ project <- 'stilt_run' stilt_wd <- file.path('/shared', project) output_wd <- file.path(stilt_wd, 'out') lib.loc <- .libPaths...
/cases/memory-light/run_stilt_AWS.r
no_license
jimmielin/cs205-spring-20-final
R
false
false
7,723
r
#!/usr/bin/env Rscript # STILT R Executable # For documentation, see https://uataq.github.io/stilt/ # Ben Fasoli # User inputs ------------------------------------------------------------------ project <- 'stilt_run' stilt_wd <- file.path('/shared', project) output_wd <- file.path(stilt_wd, 'out') lib.loc <- .libPaths...
#' align plots on an axis #' #' given a list of plots, align them on plotting space #' @name align_plot #' @param plot_list list of ggplot objects #' @param axis character string to specify the axis to align plotting space on, one of both, width, height #' @return ggplotGrob object #' @import gridExtra #' @import gtab...
/R/align_plot.R
permissive
hjanime/GenVisR
R
false
false
1,314
r
#' align plots on an axis #' #' given a list of plots, align them on plotting space #' @name align_plot #' @param plot_list list of ggplot objects #' @param axis character string to specify the axis to align plotting space on, one of both, width, height #' @return ggplotGrob object #' @import gridExtra #' @import gtab...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/r-functions.selection.R \name{compute.spatial.stats} \alias{compute.spatial.stats} \title{Compute statistics related to mutational spatial distributions} \usage{ compute.spatial.stats(output.folder, output.prefix, bw = 5, m = 3) } \arguments{...
/man/compute.spatial.stats.Rd
no_license
liliulab/gust
R
false
true
729
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/r-functions.selection.R \name{compute.spatial.stats} \alias{compute.spatial.stats} \title{Compute statistics related to mutational spatial distributions} \usage{ compute.spatial.stats(output.folder, output.prefix, bw = 5, m = 3) } \arguments{...
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615828732-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
487
r
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
# #====================== calculating MI matrix of a dataset # dataMat <- as.matrix(matA) # dataMat <- scale(dataMat) # dataMat <- discretize(dataMat) # minetMIM1 <- build.mim(dataMat) # # minetMIM2 <- build.mim(matA) # # all(minetMIM2 == minetMIM3) # # View(minetMIM2) # View(minetMIM3) # MIMat <- ...
/Dream4DPI.R
no_license
aag13/thesis
R
false
false
14,049
r
# #====================== calculating MI matrix of a dataset # dataMat <- as.matrix(matA) # dataMat <- scale(dataMat) # dataMat <- discretize(dataMat) # minetMIM1 <- build.mim(dataMat) # # minetMIM2 <- build.mim(matA) # # all(minetMIM2 == minetMIM3) # # View(minetMIM2) # View(minetMIM3) # MIMat <- ...
library(MASS) library(tidyverse) library(modelr) library(rethinking) xentropy <- function(p,q) -sum(p*log(q)) entropy <- function(p) xentropy(p,p) divergence <- function(p,q) xentropy(p,q) - entropy(p) rd <- c(0.3, 0.7) md1 <- c(0.5, 0.5) md2 <- c(0.1, 0.99) entropy(rd) #0.6108643 divergence(rd, md1) #0.08228288 ###...
/chapter6/notes.R
no_license
nzxwang/statistical_rethinking
R
false
false
1,751
r
library(MASS) library(tidyverse) library(modelr) library(rethinking) xentropy <- function(p,q) -sum(p*log(q)) entropy <- function(p) xentropy(p,p) divergence <- function(p,q) xentropy(p,q) - entropy(p) rd <- c(0.3, 0.7) md1 <- c(0.5, 0.5) md2 <- c(0.1, 0.99) entropy(rd) #0.6108643 divergence(rd, md1) #0.08228288 ###...
############################################################### ### BATCH RECLASSIFY AND CLUMP RASTERS ########## ############################################################### ## Reclassify SIC rasters so 1=ice and 0=else. Use clump fxn to determine pack ice ## # ----------------- Load Data ---------...
/bat_reclass.R
no_license
anniekellner/ch1_landing
R
false
false
1,608
r
############################################################### ### BATCH RECLASSIFY AND CLUMP RASTERS ########## ############################################################### ## Reclassify SIC rasters so 1=ice and 0=else. Use clump fxn to determine pack ice ## # ----------------- Load Data ---------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataManipulation.R \name{calcHybridForce} \alias{calcHybridForce} \title{Generate the hybrid force functions given peak, location of peak, and cutoff} \usage{ calcHybridForce(x = seq(-0.3, 2.5, 0.01), max_F = 0.2, peak_location = 1.1) } \argu...
/man/calcHybridForce.Rd
no_license
clairemiller/chasteR
R
false
true
519
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataManipulation.R \name{calcHybridForce} \alias{calcHybridForce} \title{Generate the hybrid force functions given peak, location of peak, and cutoff} \usage{ calcHybridForce(x = seq(-0.3, 2.5, 0.01), max_F = 0.2, peak_location = 1.1) } \argu...
plot.cv.gcdclust <- function(x, sign.lambda = 1, ...) { cvobj <- x xlab <- "log(Lambda)" if (sign.lambda < 0) xlab <- paste("-", xlab, sep = "") plot.args <- list(x = sign.lambda * log(cvobj$lambda), y = cvobj$cvm, ylim = range(cvobj$cvupper, cvobj$cvlo), xlab = xlab, ylab ...
/R/plot.cv.gcdclust.R
no_license
KarimOualkacha/HHSVM-ClusterNet
R
false
false
936
r
plot.cv.gcdclust <- function(x, sign.lambda = 1, ...) { cvobj <- x xlab <- "log(Lambda)" if (sign.lambda < 0) xlab <- paste("-", xlab, sep = "") plot.args <- list(x = sign.lambda * log(cvobj$lambda), y = cvobj$cvm, ylim = range(cvobj$cvupper, cvobj$cvlo), xlab = xlab, ylab ...
TCGAanalyze_ImmuneSubtypes <- function(ImmuneMW, dataGE){ dataImmuneGroups_merged <- matrix(0,ncol(dataGE),ncol(ImmuneMW)) rownames(dataImmuneGroups_merged) <- colnames(dataGE) colnames(dataImmuneGroups_merged) <- colnames(ImmuneMW) dataImmuneGroups_merged <- as.data....
/inst/scripts/TCGAanalyze_ImmuneSubtypes.R
no_license
TransBioInfoLab/Bioc2019PanCancerStudy
R
false
false
1,906
r
TCGAanalyze_ImmuneSubtypes <- function(ImmuneMW, dataGE){ dataImmuneGroups_merged <- matrix(0,ncol(dataGE),ncol(ImmuneMW)) rownames(dataImmuneGroups_merged) <- colnames(dataGE) colnames(dataImmuneGroups_merged) <- colnames(ImmuneMW) dataImmuneGroups_merged <- as.data....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom_timeline_label.R \name{geom_timeline_label} \alias{geom_timeline_label} \title{geom_timeline_label} \usage{ geom_timeline_label( mapping = NULL, data = NULL, stat = "identity", position = "identity", na.rm = FALSE, show.legen...
/man/geom_timeline_label.Rd
permissive
A0791298/CourseraCapstone
R
false
true
722
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom_timeline_label.R \name{geom_timeline_label} \alias{geom_timeline_label} \title{geom_timeline_label} \usage{ geom_timeline_label( mapping = NULL, data = NULL, stat = "identity", position = "identity", na.rm = FALSE, show.legen...
#-----------------------------------------------------------------------------# # # # QUALITY CONTROL STATISTICS IN R # # ...
/R/qcs.cusum.r
no_license
cran/qcr
R
false
false
5,659
r
#-----------------------------------------------------------------------------# # # # QUALITY CONTROL STATISTICS IN R # # ...
setwd("~/Personal Training") #Reads in data from file then subsets data for specified dates data <- read.table("household_power_consumption.txt", na.strings="?", sep = ';', header = T) data$Date <- as.Date(data$Date, format = "%d/%m/%Y") # Filter Dates for 2007-02-01 and 2007-02-02 data <- subset(data, subs...
/plot 3.R
no_license
Zucethy/Coursera-EDA
R
false
false
938
r
setwd("~/Personal Training") #Reads in data from file then subsets data for specified dates data <- read.table("household_power_consumption.txt", na.strings="?", sep = ';', header = T) data$Date <- as.Date(data$Date, format = "%d/%m/%Y") # Filter Dates for 2007-02-01 and 2007-02-02 data <- subset(data, subs...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EPFR.r \name{fcn.indirect} \alias{fcn.indirect} \title{fcn.indirect} \usage{ fcn.indirect(fcn, x) } \arguments{ \item{fcn}{= a function to apply} \item{x}{= vector of function names} } \description{ applies <fcn> recursively } \seealso{ Othe...
/man/fcn.indirect.Rd
no_license
vsrimurthy/EPFR
R
false
true
1,558
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EPFR.r \name{fcn.indirect} \alias{fcn.indirect} \title{fcn.indirect} \usage{ fcn.indirect(fcn, x) } \arguments{ \item{fcn}{= a function to apply} \item{x}{= vector of function names} } \description{ applies <fcn> recursively } \seealso{ Othe...
library(shinydashboard) library(shinydashboardPlus) library(DT) library(plotly) library(shinycssloaders) # Static code is in the helper.R file. This includes reading in the initial data set and cleaning and also # easily callable subsets of the variables and variable names. See helper.R for more information. source("...
/ui.R
permissive
kedumas/ST-558-Project-3
R
false
false
30,846
r
library(shinydashboard) library(shinydashboardPlus) library(DT) library(plotly) library(shinycssloaders) # Static code is in the helper.R file. This includes reading in the initial data set and cleaning and also # easily callable subsets of the variables and variable names. See helper.R for more information. source("...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/divisions_lords.R \name{fetch_lords_divisions_all} \alias{fetch_lords_divisions_all} \title{Fetch key details on all Lords divisions} \usage{ fetch_lords_divisions_all(from_date = NULL, to_date = NULL, on_date = NULL) } \arguments{ \item{from...
/man/fetch_lords_divisions_all.Rd
no_license
houseofcommonslibrary/clvotes
R
false
true
1,574
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/divisions_lords.R \name{fetch_lords_divisions_all} \alias{fetch_lords_divisions_all} \title{Fetch key details on all Lords divisions} \usage{ fetch_lords_divisions_all(from_date = NULL, to_date = NULL, on_date = NULL) } \arguments{ \item{from...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DigitalPicoTools.R \docType{class} \name{LFRdataframe-class} \alias{LFRdataframe} \alias{LFRdataframe-class} \title{The LFRdataframe class} \description{ An S4 base class. All other LFR class containing a data frame Table as main object inher...
/man/LFRdataframe-class.Rd
no_license
chedonat/DigitalPicoTools
R
false
true
594
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DigitalPicoTools.R \docType{class} \name{LFRdataframe-class} \alias{LFRdataframe} \alias{LFRdataframe-class} \title{The LFRdataframe class} \description{ An S4 base class. All other LFR class containing a data frame Table as main object inher...