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(ggplot2) library(Rmisc) library(Sleuth2) library(ggpubr) set.seed(364) kappa1 <- runif(NP, 0, 4) kappa2 <- runif(NP, 0, 4) sigma1 <- runif(NP, 0.3, 3) sigma2 <- runif(NP, 0.3, 3) gname = c("ESS.eps",sep="") postscript(gname,width=5,height=4,horizontal = FALSE, onefile = FALSE, paper = "special") par(mfrow...
/Simulation/simulation5_1/lambdaSMC/SMCl1/FigureBasis.R
no_license
ecustwy/smcDE
R
false
false
2,763
r
library(ggplot2) library(Rmisc) library(Sleuth2) library(ggpubr) set.seed(364) kappa1 <- runif(NP, 0, 4) kappa2 <- runif(NP, 0, 4) sigma1 <- runif(NP, 0.3, 3) sigma2 <- runif(NP, 0.3, 3) gname = c("ESS.eps",sep="") postscript(gname,width=5,height=4,horizontal = FALSE, onefile = FALSE, paper = "special") par(mfrow...
#' Prints an Example of a QualtRics Configuration File to the Console. #' #' This function is deprecated; use [qualtRics::qualtrics_api_credentials()] instead. #' #' @param ... All arguments for `qualtRicsConfigFile` #' #' @export #' @examples #' \dontrun{ #' # Execute this line to get instructions on how to make a .qu...
/R/deprecated.R
permissive
ropensci/qualtRics
R
false
false
1,790
r
#' Prints an Example of a QualtRics Configuration File to the Console. #' #' This function is deprecated; use [qualtRics::qualtrics_api_credentials()] instead. #' #' @param ... All arguments for `qualtRicsConfigFile` #' #' @export #' @examples #' \dontrun{ #' # Execute this line to get instructions on how to make a .qu...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' AmazonApiGatewayManagementApi #' #' @description #' The Amazon API Gateway Management API allows you to directly manage #' runtime aspects of your deployed APIs. To use it, you must ex...
/R/apigatewaymanagementapi_service.R
no_license
cran/paws.networking
R
false
false
4,034
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' AmazonApiGatewayManagementApi #' #' @description #' The Amazon API Gateway Management API allows you to directly manage #' runtime aspects of your deployed APIs. To use it, you must ex...
## Composition estimation with one sample sscomp <- function(x,wt=rep(1,length(x)),alpha=1.4) { ## Check inputs if ((nlvl <- length(x))<3) stop("gss error in sscomp: length of x should be 3 or more") if (length(x)!=length(wt)) stop("gss error in sscomp: x and wt mismatch in lengths") ## ...
/R/sscomp.R
no_license
cran/gss
R
false
false
1,687
r
## Composition estimation with one sample sscomp <- function(x,wt=rep(1,length(x)),alpha=1.4) { ## Check inputs if ((nlvl <- length(x))<3) stop("gss error in sscomp: length of x should be 3 or more") if (length(x)!=length(wt)) stop("gss error in sscomp: x and wt mismatch in lengths") ## ...
rm(list=ls()) require(cowplot) gg_color_hue <- function(n) { hues = seq(15, 375, length=n+1) hcl(h=hues, l=65, c=100)[1:n] } cols = rev(gg_color_hue(3)) d <- read.table('~/Google Drive/Data/influenza_HA_evolution/data_table/numbering_table_unix.csv', sep=',', head=T, stringsAsFactors = F) d <- d[!is.na(d$pdb.4fnk)...
/figures/rsquared_internal_barplot.R
no_license
schlogl2017/influenza_HA_evolution
R
false
false
2,365
r
rm(list=ls()) require(cowplot) gg_color_hue <- function(n) { hues = seq(15, 375, length=n+1) hcl(h=hues, l=65, c=100)[1:n] } cols = rev(gg_color_hue(3)) d <- read.table('~/Google Drive/Data/influenza_HA_evolution/data_table/numbering_table_unix.csv', sep=',', head=T, stringsAsFactors = F) d <- d[!is.na(d$pdb.4fnk)...
### Coercion and Methods for Symmetric Packed Matrices dsp2dsy <- function(from) .Call(dspMatrix_as_dsyMatrix, from) dsp2C <- function(from) dsy2C(.Call(dspMatrix_as_dsyMatrix, from)) setAs("dspMatrix", "dsyMatrix", dsp2dsy) ## setAs("dspMatrix", "dsCMatrix", dsp2C) setAs("dspMatrix", "CsparseMatrix", dsp2C) setAs("ds...
/R/dspMatrix.R
no_license
bedatadriven/renjin-matrix
R
false
false
2,722
r
### Coercion and Methods for Symmetric Packed Matrices dsp2dsy <- function(from) .Call(dspMatrix_as_dsyMatrix, from) dsp2C <- function(from) dsy2C(.Call(dspMatrix_as_dsyMatrix, from)) setAs("dspMatrix", "dsyMatrix", dsp2dsy) ## setAs("dspMatrix", "dsCMatrix", dsp2C) setAs("dspMatrix", "CsparseMatrix", dsp2C) setAs("ds...
plot(as.numeric(as.character(tit_new$pclass)),tit_new$fare/as.numeric(as.character(tit_new$family)),ylim=c(-10,550)) plot(as.numeric(as.character(tit_new$pclass)),tit_new$fare,ylim=c(-10,550)) by(as.numeric(as.character(tit_new$fare))/as.numeric(as.character(tit_new$family)),tit_new$pclass,summary) a<-tit_new[tit_new...
/Code/Raw/test1.R
no_license
astronerma/Titanic
R
false
false
668
r
plot(as.numeric(as.character(tit_new$pclass)),tit_new$fare/as.numeric(as.character(tit_new$family)),ylim=c(-10,550)) plot(as.numeric(as.character(tit_new$pclass)),tit_new$fare,ylim=c(-10,550)) by(as.numeric(as.character(tit_new$fare))/as.numeric(as.character(tit_new$family)),tit_new$pclass,summary) a<-tit_new[tit_new...
library('csv') library('dplyr') library('readxl') library('aTSA') library('outliers') library('quantmod') library('ggplot2') library('scales') library('xtable') setwd("~/Desktop/15.458 Financial Data Science/PS3") dt <- read.csv("Q3return.csv",header=TRUE) colnames(dt) = c('Date','Long','Short','Combined') dt$Date = a...
/Q2 & Q3/Project_C_#3.R
no_license
irali1994/project-C
R
false
false
1,600
r
library('csv') library('dplyr') library('readxl') library('aTSA') library('outliers') library('quantmod') library('ggplot2') library('scales') library('xtable') setwd("~/Desktop/15.458 Financial Data Science/PS3") dt <- read.csv("Q3return.csv",header=TRUE) colnames(dt) = c('Date','Long','Short','Combined') dt$Date = a...
## Getting full dataset datafile <- "./data/household_power_consumption.txt" data <- read.table(datafile, header = TRUE, sep = ";",stringsAsFactors = FALSE, na.strings = "?", dec = ".") ## Subsetting the data subsetData <- data[data$Date %in% c("1/2/2007","2/2/2007"),] ## clear full dataset rm(data) datetime <- strp...
/Plot 2.R
no_license
mnoohu28/ExData_Plotting1
R
false
false
541
r
## Getting full dataset datafile <- "./data/household_power_consumption.txt" data <- read.table(datafile, header = TRUE, sep = ";",stringsAsFactors = FALSE, na.strings = "?", dec = ".") ## Subsetting the data subsetData <- data[data$Date %in% c("1/2/2007","2/2/2007"),] ## clear full dataset rm(data) datetime <- strp...
list.of.packages <- c("data.table", "dplyr", "tidyverse", "network", "visNetwork", "networkD3", "magrittr") new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] if(length(new.packages)) install.packages(new.packages) lapply(list.of.packages, require, character.only=T) setwd("~/gi...
/link_visualization.R
no_license
akmiller01/sdl-mock-data
R
false
false
2,194
r
list.of.packages <- c("data.table", "dplyr", "tidyverse", "network", "visNetwork", "networkD3", "magrittr") new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] if(length(new.packages)) install.packages(new.packages) lapply(list.of.packages, require, character.only=T) setwd("~/gi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sqladmin_functions.R \name{sql.databases.patch} \alias{sql.databases.patch} \title{Updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.} \usage{ sql.databases.patch(Data...
/googlesqladminv1beta4.auto/man/sql.databases.patch.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sqladmin_functions.R \name{sql.databases.patch} \alias{sql.databases.patch} \title{Updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.} \usage{ sql.databases.patch(Data...
library(ggplot2) library(dplyr) library(ggsignif) setwd("~/Desktop/islets CNN/luciferase_results/") res=read.table("endoC_luciferase.txt",h=T) summary <- res %>% # the names of the new data frame and the data frame to be summarised group_by(experiment) %>% # the grouping variable summarise(mean = mean(lucifera...
/endoC_luciferase_plot.R
permissive
agawes/islet_CNN
R
false
false
4,500
r
library(ggplot2) library(dplyr) library(ggsignif) setwd("~/Desktop/islets CNN/luciferase_results/") res=read.table("endoC_luciferase.txt",h=T) summary <- res %>% # the names of the new data frame and the data frame to be summarised group_by(experiment) %>% # the grouping variable summarise(mean = mean(lucifera...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph_to_shp.R \name{graph_to_shp} \alias{graph_to_shp} \title{Export a spatial graph to shapefile layers} \usage{ graph_to_shp( graph, crds, mode = "both", crds_crs, layer_name, dir_path, metrics = FALSE ) } \arguments{ \item{g...
/man/graph_to_shp.Rd
no_license
jamilleveiga/graph4lg
R
false
true
2,879
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph_to_shp.R \name{graph_to_shp} \alias{graph_to_shp} \title{Export a spatial graph to shapefile layers} \usage{ graph_to_shp( graph, crds, mode = "both", crds_crs, layer_name, dir_path, metrics = FALSE ) } \arguments{ \item{g...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 3342 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 3342 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/query24_query25_1344n/query24_query25_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
710
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 3342 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 3342 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
cat("\014") rm(list = ls()) # exploring dplyr with michael levy's workshop # http://www.michaellevy.name/blog/dplyr-data-manipulation-in-r-made-easy ############################################################### install.packages("dplyr") install.packages("babynames") require(dplyr) set.seed(1234) rows <- 8 d <- data....
/datavis/dplyr_practice.R
no_license
haesunshine/R
R
false
false
1,864
r
cat("\014") rm(list = ls()) # exploring dplyr with michael levy's workshop # http://www.michaellevy.name/blog/dplyr-data-manipulation-in-r-made-easy ############################################################### install.packages("dplyr") install.packages("babynames") require(dplyr) set.seed(1234) rows <- 8 d <- data....
crossValErrors <- function ( trueLabels , cvFit ) { nFeatureSets <- cvFit$nSplits delete <- cvFit$delete nUniqueLabels <- length( table( trueLabels ) ) predictionErrors <- matrix( NA , ncol = length( nFeatureSets ) , nrow = cvFit$nFold ) errorConfusion <- vector( length = length( nFeatureSets ) , "nume...
/axioPackages/svmrfe/R/crossValErrors.R
no_license
jjsayleraxio/Axio_rstudio
R
false
false
1,263
r
crossValErrors <- function ( trueLabels , cvFit ) { nFeatureSets <- cvFit$nSplits delete <- cvFit$delete nUniqueLabels <- length( table( trueLabels ) ) predictionErrors <- matrix( NA , ncol = length( nFeatureSets ) , nrow = cvFit$nFold ) errorConfusion <- vector( length = length( nFeatureSets ) , "nume...
## The german Credit data set contains 25 columns. ## columns 1 - 20 are actual data features ## columns 21 - 24 are indicator columns ## column 25 is the classificator column ## Read in the data set. # apparently only works if we put sep="" df <- read.csv('homework_1.txt', header=FALSE, sep="") ## quick summary ...
/homeworks/homework1/homework1.R
no_license
GusSand/GADataScience
R
false
false
2,283
r
## The german Credit data set contains 25 columns. ## columns 1 - 20 are actual data features ## columns 21 - 24 are indicator columns ## column 25 is the classificator column ## Read in the data set. # apparently only works if we put sep="" df <- read.csv('homework_1.txt', header=FALSE, sep="") ## quick summary ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit.R \name{ifind2} \alias{ifind2} \title{Item Fit indexes 'chi^2' and 'g^2' statistics that cut scores based on observed score.} \usage{ ifind2(x, para, theta, Gc = 2, fc = 3, p = 0.05, D = 1.702) } \arguments{ \item{x}{data.frame of item re...
/man/ifind2.Rd
permissive
takuizum/irtfun2
R
false
true
739
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit.R \name{ifind2} \alias{ifind2} \title{Item Fit indexes 'chi^2' and 'g^2' statistics that cut scores based on observed score.} \usage{ ifind2(x, para, theta, Gc = 2, fc = 3, p = 0.05, D = 1.702) } \arguments{ \item{x}{data.frame of item re...
install.packages("stringr") # Install stringr package library(stringr) library(dplyr) ######################################################################################################################################### #solution for question 1 ####################################################################...
/CA2/NIPostcode.R
no_license
murthysn18/Data_Science_R
R
false
false
3,954
r
install.packages("stringr") # Install stringr package library(stringr) library(dplyr) ######################################################################################################################################### #solution for question 1 ####################################################################...
library(shiny) shinyUI(fluidPage( titlePanel("Mauna Loa Atmospheric CO2 Concentration"), sidebarLayout( sidebarPanel( sliderInput("years", "Select the range of years to plot", sep="", 1959, 1997, value = c(1994, 1997)), checkboxInput("show_xlab", "Show/Hide X Axis Label...
/coursera_homework/developing_data_products/week_4/ui.R
no_license
tamcknight/coding-exercises
R
false
false
1,011
r
library(shiny) shinyUI(fluidPage( titlePanel("Mauna Loa Atmospheric CO2 Concentration"), sidebarLayout( sidebarPanel( sliderInput("years", "Select the range of years to plot", sep="", 1959, 1997, value = c(1994, 1997)), checkboxInput("show_xlab", "Show/Hide X Axis Label...
#plot1 mydata<-read.table("household_power_consumption.txt", sep = ";", nrows = 24*60*2, skip = 24*60*46 + 396, header = TRUE) names(mydata)<-c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") hist(mydata$Global_active_power,xla...
/plot1.R
no_license
carlawright/ExData_Plotting1
R
false
false
445
r
#plot1 mydata<-read.table("household_power_consumption.txt", sep = ";", nrows = 24*60*2, skip = 24*60*46 + 396, header = TRUE) names(mydata)<-c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") hist(mydata$Global_active_power,xla...
# The functions in this file are all internal. # Determine if a set of parameters is within the bounds. checkBounds <- function(tab, bounds) { return( sapply( names(bounds) , function(paramName) { tab[[paramName]] >= bounds[[paramName]][[1]] & tab[[paramName]] <= bounds[[paramName]][[2]] ...
/R/SmallFuncs.R
no_license
ilyaselitser/ParBayesianOptimization
R
false
false
6,614
r
# The functions in this file are all internal. # Determine if a set of parameters is within the bounds. checkBounds <- function(tab, bounds) { return( sapply( names(bounds) , function(paramName) { tab[[paramName]] >= bounds[[paramName]][[1]] & tab[[paramName]] <= bounds[[paramName]][[2]] ...
testread <- function(data){ # Reads only two days of data from the text file header=read.table("household_power_consumption.txt", nrows = 1, header = T, sep = ";") datasource_p2=read.table("household_power_consumption.txt", skip = 66636, nrows = (2*24*60), header = T, sep = ";", stringsAsFactors = F, n...
/plot2.R
no_license
arghyaditya/ExData_Plotting1
R
false
false
1,009
r
testread <- function(data){ # Reads only two days of data from the text file header=read.table("household_power_consumption.txt", nrows = 1, header = T, sep = ";") datasource_p2=read.table("household_power_consumption.txt", skip = 66636, nrows = (2*24*60), header = T, sep = ";", stringsAsFactors = F, n...
context("agree_test") testthat::test_that("Simple Use Run Through", { sf <- matrix( c(9, 2, 5, 8, 6, 1, 3, 2, 8, 4, 6, 8, 7, 1, 2, 6, 10, 5, 6, 9, 6, 2, 4, 7), ncol = 4, byrow = TRUE ) colnames(sf) <- paste("J", 1:4, sep =...
/tests/testthat/test-reli_stats.R
no_license
hyunsooseol/SimplyAgree
R
false
false
2,418
r
context("agree_test") testthat::test_that("Simple Use Run Through", { sf <- matrix( c(9, 2, 5, 8, 6, 1, 3, 2, 8, 4, 6, 8, 7, 1, 2, 6, 10, 5, 6, 9, 6, 2, 4, 7), ncol = 4, byrow = TRUE ) colnames(sf) <- paste("J", 1:4, sep =...
# Reference: http://www.tutorialspoint.com/r/r_csv_files.htm #[1] CSV Files ------------------------------------------------------- # Read in the data file data <- read.csv("input.csv") print(data) # Examine its contents print(is.data.frame(data)) print(ncol(data)) print(nrow(data)) # List the variables in this da...
/R Bootcamp/R_Bootcamp_Data_Formats.R
permissive
dustinoakes/UCLA-MAE
R
false
false
6,986
r
# Reference: http://www.tutorialspoint.com/r/r_csv_files.htm #[1] CSV Files ------------------------------------------------------- # Read in the data file data <- read.csv("input.csv") print(data) # Examine its contents print(is.data.frame(data)) print(ncol(data)) print(nrow(data)) # List the variables in this da...
\name{toUnambig} \title{Generates unambiguous base sequences} \description{ Given a string containing ambiguous bases, generate a list of all possible unambiguous sequences that could match that string } \usage{ toUnambig(ambigBases) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{a...
/man/toUnambig.Rd
no_license
gringer/RichPoreTK
R
false
false
1,629
rd
\name{toUnambig} \title{Generates unambiguous base sequences} \description{ Given a string containing ambiguous bases, generate a list of all possible unambiguous sequences that could match that string } \usage{ toUnambig(ambigBases) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{a...
\name{h2o.parseRaw.VA} \alias{h2o.parseRaw.VA} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Parse Raw Data File to ValueArray } \description{ Parses a raw data file, returning an object containing the identifying hex key. } \usage{ h2o.parseRaw.VA(data, key = "", header, sep = "", col.names) }...
/R/h2oRClient-package/man/h2o.parseRaw.VA.Rd
permissive
cloudtrends/h2o
R
false
false
2,422
rd
\name{h2o.parseRaw.VA} \alias{h2o.parseRaw.VA} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Parse Raw Data File to ValueArray } \description{ Parses a raw data file, returning an object containing the identifying hex key. } \usage{ h2o.parseRaw.VA(data, key = "", header, sep = "", col.names) }...
# set working directory to the priors-for-separation subdirectory # setwd("~/Dropbox/projects/priors-for-separation") # clear workspace rm(list = ls()) # paramaters install_packages <- FALSE n_sims <- 200000 # 200,000 in paper---use 200 as the initial run n_burnin <- 50000 # 50,0000 in paper---use 50 as the initial ...
/do-all.R
no_license
hal2001/priors-for-separation
R
false
false
1,720
r
# set working directory to the priors-for-separation subdirectory # setwd("~/Dropbox/projects/priors-for-separation") # clear workspace rm(list = ls()) # paramaters install_packages <- FALSE n_sims <- 200000 # 200,000 in paper---use 200 as the initial run n_burnin <- 50000 # 50,0000 in paper---use 50 as the initial ...
ttsplot <- function (stn, hy, ..., stagetics = seq(0, 4, 0.1), adj = T, number = T, units = "cfs", split = 0.35, grid1, grid2) { arglist <- as.list(match.call()[-1]) #collect Args #Collect ... args (i.e. turbsrc objects): predobj <- as.list(match.call(expand.dots = F)$...) print(units) msc.n <- 0...
/r/ttsplot.r
no_license
adamkc/HydroRSL
R
false
false
1,341
r
ttsplot <- function (stn, hy, ..., stagetics = seq(0, 4, 0.1), adj = T, number = T, units = "cfs", split = 0.35, grid1, grid2) { arglist <- as.list(match.call()[-1]) #collect Args #Collect ... args (i.e. turbsrc objects): predobj <- as.list(match.call(expand.dots = F)$...) print(units) msc.n <- 0...
#' @title Plot percent spliced-in (PSI) values for exon-level alternative splicing events #' #' @description #' \code{PlotPSI} computes percent spliced-in (PSI) at each genomic coordinate for exon-level alternative splicing events. #' #' @details #' This function computes percent spliced-in (PSI) at each genomic coordi...
/R/Script_01_0_PlotPSI.R
no_license
HSCBWIMMlab/VALERIE
R
false
false
9,399
r
#' @title Plot percent spliced-in (PSI) values for exon-level alternative splicing events #' #' @description #' \code{PlotPSI} computes percent spliced-in (PSI) at each genomic coordinate for exon-level alternative splicing events. #' #' @details #' This function computes percent spliced-in (PSI) at each genomic coordi...
library(data.table) library(dplyr) library(GenomicRanges) library(BuenColors) library(diffloop) library(Biostrings) library(BSgenome.Hsapiens.UCSC.hg19) "%ni%" <- Negate("%in%") # Import annotation x01 <- bedToGRanges("../annotations/UCSC_3primeUTR.bed") x02 <- bedToGRanges("../annotations/UCSC_Exons.bed") x03 <- bed...
/code/02_annotationProportions.R
no_license
sankaranlab/translation-regulation-bcl11a
R
false
false
2,012
r
library(data.table) library(dplyr) library(GenomicRanges) library(BuenColors) library(diffloop) library(Biostrings) library(BSgenome.Hsapiens.UCSC.hg19) "%ni%" <- Negate("%in%") # Import annotation x01 <- bedToGRanges("../annotations/UCSC_3primeUTR.bed") x02 <- bedToGRanges("../annotations/UCSC_Exons.bed") x03 <- bed...
context("pkg-options") # Setup ------------------------------------------------------------------------ source("setup.R") skip_on_cran_windows() # Test package options --------------------------------------------------------- test_that("workflowr does not overwrite user-defined package options", { sysgit <- cal...
/tests/testthat/test-pkg-options.R
permissive
workflowr/workflowr
R
false
false
2,031
r
context("pkg-options") # Setup ------------------------------------------------------------------------ source("setup.R") skip_on_cran_windows() # Test package options --------------------------------------------------------- test_that("workflowr does not overwrite user-defined package options", { sysgit <- cal...
Prova
/Prova.R
no_license
SimoneArrigoni/Time-Series
R
false
false
8
r
Prova
#Q1 library(rattle) library(AppliedPredictiveModeling) data(segmentationOriginal) suppressMessages(library(caret)) inTrain=createDataPartition(segmentationOriginal$Case,p=0.65,list=F) training=segmentationOriginal[inTrain,] testing=segmentationOriginal[-inTrain,] set.seed(125) modFit=train(Class ~ .,method="rp...
/MachineQuiz3.R
no_license
hawaiidaniel/Practical-Machine-Learning
R
false
false
1,550
r
#Q1 library(rattle) library(AppliedPredictiveModeling) data(segmentationOriginal) suppressMessages(library(caret)) inTrain=createDataPartition(segmentationOriginal$Case,p=0.65,list=F) training=segmentationOriginal[inTrain,] testing=segmentationOriginal[-inTrain,] set.seed(125) modFit=train(Class ~ .,method="rp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rm_noninfo_vars.r \name{rm_near_zero_vars} \alias{rm_near_zero_vars} \alias{rm_high_correlated} \alias{rm_linear_combos} \title{Remove non informative variables} \usage{ rm_near_zero_vars(data, keep = NULL, freqCut = 95/5, uniqueCut = 10, v...
/dapre/man/rm_noninfo_vars.Rd
no_license
peter159/RpackageDev
R
false
true
840
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rm_noninfo_vars.r \name{rm_near_zero_vars} \alias{rm_near_zero_vars} \alias{rm_high_correlated} \alias{rm_linear_combos} \title{Remove non informative variables} \usage{ rm_near_zero_vars(data, keep = NULL, freqCut = 95/5, uniqueCut = 10, v...
rm(list=ls()) # Loading R packages library(rEDM) library(Synth) library(astsa) source("ccm_function.R") # prepare covariates for artificial states: permutation index artcov_prep <-function(){ country_name = advers$country new_country = paste0("f_",country_name) advers$country = new_country advers$unit.num = ad...
/jasa_figure10.R
permissive
y-ding/DYNSCM
R
false
false
14,831
r
rm(list=ls()) # Loading R packages library(rEDM) library(Synth) library(astsa) source("ccm_function.R") # prepare covariates for artificial states: permutation index artcov_prep <-function(){ country_name = advers$country new_country = paste0("f_",country_name) advers$country = new_country advers$unit.num = ad...
######################################################################################################################################################################################################### ##Funktion f?r die Berechnung der ?berlebenswahrscheinlichkeit f?r einen bestimmten Zeitpunkt #######################...
/bbsurvr/R/survival.R
permissive
biobits/bbsurvr
R
false
false
19,197
r
######################################################################################################################################################################################################### ##Funktion f?r die Berechnung der ?berlebenswahrscheinlichkeit f?r einen bestimmten Zeitpunkt #######################...
################################################################################ ### Voorbereidingen.R ################################################################################ ### R code voor Tentamenanalyse Vrije Universiteit Amsterdam ### ### Bestandsnaam: Voorbereidingen.R ### Doel: De working director...
/Voorbereidingen.R
permissive
Dritty/toetsanalyse
R
false
false
15,779
r
################################################################################ ### Voorbereidingen.R ################################################################################ ### R code voor Tentamenanalyse Vrije Universiteit Amsterdam ### ### Bestandsnaam: Voorbereidingen.R ### Doel: De working director...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_rls_data.R \name{get_rls_data} \alias{get_rls_data} \title{get_rls_data} \usage{ get_rls_data() } \value{ } \description{ get_rls_data }
/man/get_rls_data.Rd
permissive
SimonCoulombe/covidtwitterbot
R
false
true
220
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_rls_data.R \name{get_rls_data} \alias{get_rls_data} \title{get_rls_data} \usage{ get_rls_data() } \value{ } \description{ get_rls_data }
#' Transform a footnote mark to an HTML representation #' #' @noRd footnote_mark_to_html <- function(mark) { if (is.na(mark)) return("") # Generate the CSS classes needed on the basis of whether the # mark is one or more asterisk characters or anything else if (!grepl("^[\\*]+?$", mark)) { sup_class <- "g...
/R/utils_render_html.R
permissive
jooyoungseo/gt
R
false
false
44,060
r
#' Transform a footnote mark to an HTML representation #' #' @noRd footnote_mark_to_html <- function(mark) { if (is.na(mark)) return("") # Generate the CSS classes needed on the basis of whether the # mark is one or more asterisk characters or anything else if (!grepl("^[\\*]+?$", mark)) { sup_class <- "g...
#' Complete Random Sampling #' #' complete_rs implements a random sampling procedure in which fixed numbers of units are sampled. The canonical example of complete random sampling is a procedure in which exactly n of N units are sampled.\cr \cr #' Users can set the exact number of units to sample with n. Alternatively,...
/R/complete_rs.R
no_license
lukesonnet/randomizr
R
false
false
4,163
r
#' Complete Random Sampling #' #' complete_rs implements a random sampling procedure in which fixed numbers of units are sampled. The canonical example of complete random sampling is a procedure in which exactly n of N units are sampled.\cr \cr #' Users can set the exact number of units to sample with n. Alternatively,...
################################################################ #Title: Thermal History (TH) Analysis With Real Tide Pool Temp Values #Purpose: Determine relationship between Q10 and thermal history - all species - across all timepoints #Created by: R. E. Rangel #Created: August 2018 #Last edited: 15 April 2022 ######...
/RangelandSorte_TH_Values.R
no_license
racine-rangel/RangelandSorte_ThermalHistory
R
false
false
32,610
r
################################################################ #Title: Thermal History (TH) Analysis With Real Tide Pool Temp Values #Purpose: Determine relationship between Q10 and thermal history - all species - across all timepoints #Created by: R. E. Rangel #Created: August 2018 #Last edited: 15 April 2022 ######...
rm(list=ls()) install.packages("sp") library(sp) xa <- round(runif(10),2) ya <- round(runif(10),2) xy <- cbind(xa,ya) xy.sp <- SpatialPoints(xy) xy.sp plot(xy.sp, axes=T, pch=2) x1 <-c(1,2,3,3) y1 <-c(4,3,3,4) l11 <-cbind(x1,y1) l12<- cbind(l11[,1]+.05,l11[,2]+.05) sl11<-Line(l11) sl12<-Line(l12) s1 <- Lines(list(sl...
/06_29_05.R
no_license
yujinnnnn/R_practice
R
false
false
886
r
rm(list=ls()) install.packages("sp") library(sp) xa <- round(runif(10),2) ya <- round(runif(10),2) xy <- cbind(xa,ya) xy.sp <- SpatialPoints(xy) xy.sp plot(xy.sp, axes=T, pch=2) x1 <-c(1,2,3,3) y1 <-c(4,3,3,4) l11 <-cbind(x1,y1) l12<- cbind(l11[,1]+.05,l11[,2]+.05) sl11<-Line(l11) sl12<-Line(l12) s1 <- Lines(list(sl...
/code/analizaEscenarios2013.r
no_license
csteclaire/mex-open-map
R
false
false
157,672
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/types_nimbleFunctionList.R \docType{class} \name{nimbleFunctionList-class} \alias{nimbleFunctionList} \alias{nimbleFunctionList-class} \title{Create a list of nimbleFunctions} \description{ Create an empty list of nimbleFunctions that all wil...
/packages/nimble/man/nimbleFunctionList-class.Rd
permissive
DRJP/nimble
R
false
true
494
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/types_nimbleFunctionList.R \docType{class} \name{nimbleFunctionList-class} \alias{nimbleFunctionList} \alias{nimbleFunctionList-class} \title{Create a list of nimbleFunctions} \description{ Create an empty list of nimbleFunctions that all wil...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/7-aldex2propr.R \name{aldex.cor} \alias{aldex.cor} \title{Correlate CLR Data with a Continuous Measurement} \usage{ aldex.cor(clr, conditions, ...) } \arguments{ \item{clr}{An \code{aldex.clr} object.} \item{conditions}{A numeric vector of a...
/man/aldex.cor.Rd
no_license
tpq/propr
R
false
true
802
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/7-aldex2propr.R \name{aldex.cor} \alias{aldex.cor} \title{Correlate CLR Data with a Continuous Measurement} \usage{ aldex.cor(clr, conditions, ...) } \arguments{ \item{clr}{An \code{aldex.clr} object.} \item{conditions}{A numeric vector of a...
library(lme4) library(dplyr) library(MuMIn) processed_data <- read.csv("~/Downloads/distances_data.csv") soa_200 <- read.csv("~/Documents/cs-clps-final_project/200SOA.csv") soa_1200 <- read.csv("~/Documents/cs-clps-final_project/1200SOA.csv") small_data <- processed_data %>% dplyr::select(Unnamed..0,prime, target, rel...
/semantic_priming_analysis.R
no_license
annanakai/semantic_priming_analysis
R
false
false
6,734
r
library(lme4) library(dplyr) library(MuMIn) processed_data <- read.csv("~/Downloads/distances_data.csv") soa_200 <- read.csv("~/Documents/cs-clps-final_project/200SOA.csv") soa_1200 <- read.csv("~/Documents/cs-clps-final_project/1200SOA.csv") small_data <- processed_data %>% dplyr::select(Unnamed..0,prime, target, rel...
#Patricia Moran 03/03/2019 #compile RSEM gene matrix options(stringsAsFactors=F) setwd("./pmlosada/CUL3/RSEM_files") files = dir(pattern="*.RSEM_Quant.genes.results",recursive=T) inFile=read.delim(files[[1]],row.names=1) genes = row.names(inFile) counts=inFile$expected_count tpm=inFile$TPM for(i in 2:l...
/2.Compile_RSEM.R
no_license
IakouchevaLab/CUL3
R
false
false
784
r
#Patricia Moran 03/03/2019 #compile RSEM gene matrix options(stringsAsFactors=F) setwd("./pmlosada/CUL3/RSEM_files") files = dir(pattern="*.RSEM_Quant.genes.results",recursive=T) inFile=read.delim(files[[1]],row.names=1) genes = row.names(inFile) counts=inFile$expected_count tpm=inFile$TPM for(i in 2:l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dejong-map.R \name{dejong_map} \alias{dejong_map} \title{The De Jong map.} \usage{ dejong_map(n = 1000, xi = -5, yi = 0.1, a = 1.4, b = -2.3, c = 2.4, d = -2.1, add.timestep = FALSE, plot = FALSE) } \arguments{ \item{n}{Number of points in ...
/man/dejong_map.Rd
no_license
kahaaga/chaoticmaps
R
false
true
782
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dejong-map.R \name{dejong_map} \alias{dejong_map} \title{The De Jong map.} \usage{ dejong_map(n = 1000, xi = -5, yi = 0.1, a = 1.4, b = -2.3, c = 2.4, d = -2.1, add.timestep = FALSE, plot = FALSE) } \arguments{ \item{n}{Number of points in ...
##[Geoestatistica]=group ##load_vector_using_rgdal ##showplots ##Camada=vector ##Variavel=Field Camada ##Pasta=folder ##Modelo_de_Variograma=string ##Vizinhanca_max=number 0 ##Vizinhanca_min=number 0 ##Distancia_Maxima=number 0.1 ##CrossValidation= output vector library(sp) library(gstat) library(rgdal) Layer = Cama...
/scripts/Validação Cruzada.rsx
no_license
felipe-geo95/introd_geoestat
R
false
false
1,224
rsx
##[Geoestatistica]=group ##load_vector_using_rgdal ##showplots ##Camada=vector ##Variavel=Field Camada ##Pasta=folder ##Modelo_de_Variograma=string ##Vizinhanca_max=number 0 ##Vizinhanca_min=number 0 ##Distancia_Maxima=number 0.1 ##CrossValidation= output vector library(sp) library(gstat) library(rgdal) Layer = Cama...
\name{integrateSphereStroud11} \alias{integrateSphereStroud11} %- Also NEED an '\alias' for EACH other topic documented here. \title{Integrate a function over the sphere in n-dimensions. } \description{Approximate the integral of a function f(x)=f(x[1],...,x[n]) over the unit sphere in n-space using Stroud's meth...
/man/integrateSphereStroud11.Rd
no_license
cran/SphericalCubature
R
false
false
1,625
rd
\name{integrateSphereStroud11} \alias{integrateSphereStroud11} %- Also NEED an '\alias' for EACH other topic documented here. \title{Integrate a function over the sphere in n-dimensions. } \description{Approximate the integral of a function f(x)=f(x[1],...,x[n]) over the unit sphere in n-space using Stroud's meth...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{ENSURE_2A} \alias{ENSURE_2A} \title{ENSURE, figure 2A} \format{ A data frame of 217 observations and 3 variables: \tabular{lll}{ \tab \code{time} \tab event time (in months) \cr \tab \code{event} \tab PFS event ind...
/man/ENSURE_2A.Rd
no_license
Owain-S/kmdata
R
false
true
947
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{ENSURE_2A} \alias{ENSURE_2A} \title{ENSURE, figure 2A} \format{ A data frame of 217 observations and 3 variables: \tabular{lll}{ \tab \code{time} \tab event time (in months) \cr \tab \code{event} \tab PFS event ind...
# 5.4 # Doing 10.000.000 simulations for some X_n NSIM = 1e7 n = 10 Xn = sample(c(1/n, n), size = NSIM, replace = TRUE, prob = c(1-1/n^2, 1/n^2)) # Simulated vs. Theoretical mean(Xn) 2/n - 1/n^3 var(Xn) 1 - 3/n^2 + 3/n^4 - 1/n^6 n = 50 Xn = sample(c(1/n, n), size = NSIM, replace = TRUE, prob = ...
/code/5.4.R
no_license
christophersalim/AllStatistics
R
false
false
604
r
# 5.4 # Doing 10.000.000 simulations for some X_n NSIM = 1e7 n = 10 Xn = sample(c(1/n, n), size = NSIM, replace = TRUE, prob = c(1-1/n^2, 1/n^2)) # Simulated vs. Theoretical mean(Xn) 2/n - 1/n^3 var(Xn) 1 - 3/n^2 + 3/n^4 - 1/n^6 n = 50 Xn = sample(c(1/n, n), size = NSIM, replace = TRUE, prob = ...
library(argonR) ### Name: argonButton ### Title: Create a Boostrap 4 argon button ### Aliases: argonButton ### ** Examples if(interactive()){ library(argonR) argonButton( name = "Click me!", status = "danger", icon = "atom", size = "lg", toggle_modal = TRUE, modal_id = "modal1" ) }
/data/genthat_extracted_code/argonR/examples/argonButton.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
306
r
library(argonR) ### Name: argonButton ### Title: Create a Boostrap 4 argon button ### Aliases: argonButton ### ** Examples if(interactive()){ library(argonR) argonButton( name = "Click me!", status = "danger", icon = "atom", size = "lg", toggle_modal = TRUE, modal_id = "modal1" ) }
#' Reads xml data from lattes zip file #' #' @param zip.in A (single) name of zip file containing a xml file #' #' @return A list with the following items: #' \describe{ #' \item{tpesq}{A dataframe with information about researchers} #' \item{tpublic}{A dataframe with information about publications} #' } #' @expor...
/R/gld_read_lattes_zip.R
no_license
pcbrom/GetLattesData
R
false
false
10,061
r
#' Reads xml data from lattes zip file #' #' @param zip.in A (single) name of zip file containing a xml file #' #' @return A list with the following items: #' \describe{ #' \item{tpesq}{A dataframe with information about researchers} #' \item{tpublic}{A dataframe with information about publications} #' } #' @expor...
# Scheffe Post Hoc - Chapter 11 chap11 <- function() { # Enter MS error and degrees of freedom from ANOVA table # Enter sales data, group vectors, j = 3 groups and save as data frame mserror <- 22.22 dfnum <- 2 dferror <- 9 sales <- c(30,30,40,40,25,20,25,30,15,20,25,20) store <- c(1,1,1,1,2,2,2,2,3,3,3,3) j <- 3 ...
/understanding_stats_using_r/Chap11b_Scheffe.R
no_license
alexmerk/courses
R
false
false
1,746
r
# Scheffe Post Hoc - Chapter 11 chap11 <- function() { # Enter MS error and degrees of freedom from ANOVA table # Enter sales data, group vectors, j = 3 groups and save as data frame mserror <- 22.22 dfnum <- 2 dferror <- 9 sales <- c(30,30,40,40,25,20,25,30,15,20,25,20) store <- c(1,1,1,1,2,2,2,2,3,3,3,3) j <- 3 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isPositiveIntegerOrNaOrNanOrInfScalarOrNull.R \name{isPositiveIntegerOrNaOrNanOrInfScalarOrNull} \alias{isPositiveIntegerOrNaOrNanOrInfScalarOrNull} \title{Wrapper for the checkarg function, using specific parameter settings.} \usage{ i...
/man/isPositiveIntegerOrNaOrNanOrInfScalarOrNull.Rd
no_license
cran/checkarg
R
false
true
2,573
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isPositiveIntegerOrNaOrNanOrInfScalarOrNull.R \name{isPositiveIntegerOrNaOrNanOrInfScalarOrNull} \alias{isPositiveIntegerOrNaOrNanOrInfScalarOrNull} \title{Wrapper for the checkarg function, using specific parameter settings.} \usage{ i...
build_geography_ruralUrban_pnad <- function(Data){ # Loading the crosswalk file_location <- system.file("extdata", "crosswalk_pnad_ruralUrban.csv", package = "harmonizePNAD") crosswalk <- data.table::fread(file_locatio...
/R/build_geography_ruralUrban_pnad.R
no_license
arthurwelle/harmonizePNAD
R
false
false
1,416
r
build_geography_ruralUrban_pnad <- function(Data){ # Loading the crosswalk file_location <- system.file("extdata", "crosswalk_pnad_ruralUrban.csv", package = "harmonizePNAD") crosswalk <- data.table::fread(file_locatio...
library(class) # Prediction of breast cancer diagnosis using the WBCD dataset. wbcd <- read.csv('data/wisc_bc_data.csv', stringsAsFactors=FALSE) # Remove the ID attribute wbcd = wbcd[-1] table(wbcd$diagnosis) # Recode the diagnosis as a factor wbcd$diagnosis <- factor(wbcd$diagnosis, levels=c('M', 'B'), ...
/kNN/wbcd.r
no_license
niclupfer/mlr
R
false
false
3,363
r
library(class) # Prediction of breast cancer diagnosis using the WBCD dataset. wbcd <- read.csv('data/wisc_bc_data.csv', stringsAsFactors=FALSE) # Remove the ID attribute wbcd = wbcd[-1] table(wbcd$diagnosis) # Recode the diagnosis as a factor wbcd$diagnosis <- factor(wbcd$diagnosis, levels=c('M', 'B'), ...
#' Default MMRDclassifier. #' #' MMRDclassifier trained on ~270 colorectal cancers. #' #' @format R object list of 30 #' "MMRDclassifier" #' MMRDetect classifier #' #' @param mutationVariable A list of input variables,"Del_rep_mean","RepIndel_num","MMR_sum","maxcossim" #' @param classifier provided classifier #' @...
/R/MMRDetect.classify.R
no_license
Nik-Zainal-Group/MMRDetect
R
false
false
820
r
#' Default MMRDclassifier. #' #' MMRDclassifier trained on ~270 colorectal cancers. #' #' @format R object list of 30 #' "MMRDclassifier" #' MMRDetect classifier #' #' @param mutationVariable A list of input variables,"Del_rep_mean","RepIndel_num","MMR_sum","maxcossim" #' @param classifier provided classifier #' @...
context('add_line_unity') data("example_data") test_that('basic',{ # perform moderated t-test stats_df <- calc_mod_ttest(example_data) sig_df <- id_significant_proteins(stats_df) # generate volcano plot with bait protein labeled basic_scatter <- plot_scatter_basic(sig_df) bait_scatter <- plot_overla...
/tests/testthat/test.add_line_unity.R
permissive
lagelab/Genoppi
R
false
false
499
r
context('add_line_unity') data("example_data") test_that('basic',{ # perform moderated t-test stats_df <- calc_mod_ttest(example_data) sig_df <- id_significant_proteins(stats_df) # generate volcano plot with bait protein labeled basic_scatter <- plot_scatter_basic(sig_df) bait_scatter <- plot_overla...
rankhospital <- function(state, outcome, num = "best") { ## Read outcome data filename <- "rprog-data-ProgAssignment3-data/outcome-of-care-measures.csv" data <- read.csv(filename, colClasses = "character") ## Check that state and outcome are valid state_mask <- data[,"State"] == state if (sum(s...
/r-programming/PA3/rankhospital.R
no_license
snelsen/datasciencecoursera
R
false
false
1,177
r
rankhospital <- function(state, outcome, num = "best") { ## Read outcome data filename <- "rprog-data-ProgAssignment3-data/outcome-of-care-measures.csv" data <- read.csv(filename, colClasses = "character") ## Check that state and outcome are valid state_mask <- data[,"State"] == state if (sum(s...
\name{psi.rks} \alias{psi.rks} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Random samples from Kolmogorov distribution } \description{ Generate random samples from Kolmogorov distribution. } \usage{ psi.rks(n, df, randgen = runif, cdf = punif, ...) } \arguments{ \item{n}{ number of observ...
/man/psi.rks.Rd
no_license
GeoBosh/psistat
R
false
false
1,796
rd
\name{psi.rks} \alias{psi.rks} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Random samples from Kolmogorov distribution } \description{ Generate random samples from Kolmogorov distribution. } \usage{ psi.rks(n, df, randgen = runif, cdf = punif, ...) } \arguments{ \item{n}{ number of observ...
# PCA #https://davetang.org/muse/2012/02/01/step-by-step-principal-components-analysis-using-r/ # use a simple two dimensional dataset to illustrate PCA x <- c(2.5, 0.5, 2.2, 1.9, 3.1, 2.3, 2, 1, 1.5, 1.1) y <- c(2.4, 0.7, 2.9, 2.2, 3.0, 2.7, 1.6, 1.1, 1.6, 0.9) plot(x, y, pch = 19) mean(x) mean(y) (x1 <- x - mea...
/pca/pca-eg5.R
no_license
dupadhyaya/dspgmsc2017
R
false
false
1,352
r
# PCA #https://davetang.org/muse/2012/02/01/step-by-step-principal-components-analysis-using-r/ # use a simple two dimensional dataset to illustrate PCA x <- c(2.5, 0.5, 2.2, 1.9, 3.1, 2.3, 2, 1, 1.5, 1.1) y <- c(2.4, 0.7, 2.9, 2.2, 3.0, 2.7, 1.6, 1.1, 1.6, 0.9) plot(x, y, pch = 19) mean(x) mean(y) (x1 <- x - mea...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotingFunctions.R \name{precisionPlot} \alias{precisionPlot} \title{Precision plot} \usage{ precisionPlot(RES, byCond = FALSE, nullSet = c(-1, 1), avgCond = FALSE, ptm = FALSE) } \arguments{ \item{RES}{A results list generated from the fun...
/man/precisionPlot.Rd
no_license
ColtoCaro/compositionalMS
R
false
true
1,544
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotingFunctions.R \name{precisionPlot} \alias{precisionPlot} \title{Precision plot} \usage{ precisionPlot(RES, byCond = FALSE, nullSet = c(-1, 1), avgCond = FALSE, ptm = FALSE) } \arguments{ \item{RES}{A results list generated from the fun...
Component.Tendency <- function() { boxPlus( # 国内状況推移 title = tagList(icon("chart-line"), i18n$t("国内状況推移")), closable = F, collapsible = T, collapsed = F, enable_label = T, label_text = tagList(i18n$t("もっと見る"), icon("hand-point-right")), label_status = "warning", footer = tags$small...
/03_Components/Main/Tendency.ui.R
permissive
takewiki/2019-ncov-japan
R
false
false
1,230
r
Component.Tendency <- function() { boxPlus( # 国内状況推移 title = tagList(icon("chart-line"), i18n$t("国内状況推移")), closable = F, collapsible = T, collapsed = F, enable_label = T, label_text = tagList(i18n$t("もっと見る"), icon("hand-point-right")), label_status = "warning", footer = tags$small...
#' draw an oncoprint similar to the cBioportal output. #' @details takes output generated by \code{read.maf} and draw oncoprint using ggplot2. #' #' @param maf output generated by \code{read.maf} #' @param genes draw oncoprint for these genes. default NULL. Plots top 5 genes. #' @param sort logical sort oncomatrix for ...
/R/oncoprint.R
no_license
xtmgah/maftools
R
false
false
4,501
r
#' draw an oncoprint similar to the cBioportal output. #' @details takes output generated by \code{read.maf} and draw oncoprint using ggplot2. #' #' @param maf output generated by \code{read.maf} #' @param genes draw oncoprint for these genes. default NULL. Plots top 5 genes. #' @param sort logical sort oncomatrix for ...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{add_tooltip} \alias{add_tooltip} \title{Add tooltips to a plot.} \usage{ add_tooltip(vis, html, on = c("hover", "click")) } \arguments{ \item{vis}{Visualisation to add tooltips to.} \item{html}{A function that takes a single argument as input. This argument wi...
/man/add_tooltip.Rd
no_license
harryprince/ggvis
R
false
false
838
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{add_tooltip} \alias{add_tooltip} \title{Add tooltips to a plot.} \usage{ add_tooltip(vis, html, on = c("hover", "click")) } \arguments{ \item{vis}{Visualisation to add tooltips to.} \item{html}{A function that takes a single argument as input. This argument wi...
library(shiny) shinyUI(fluidPage( titlePanel("d3vennR demo"), fluidRow( column(width = 6, d3vennROutput("venn") ), column(width = 6, tableOutput("table") ) ) ))
/ui.R
no_license
lifan0127/r-mini-talk
R
false
false
223
r
library(shiny) shinyUI(fluidPage( titlePanel("d3vennR demo"), fluidRow( column(width = 6, d3vennROutput("venn") ), column(width = 6, tableOutput("table") ) ) ))
#' @title Aggregate Group-Time Average Treatment Effects #' #' @description A function to take group-time average treatment effects #' and aggregate them into a smaller number of parameters. There are #' several possible aggregations including "simple", "dynamic", "group", #' and "calendar." #' #' @param MP ...
/R/aggte.R
no_license
advancehs/did
R
false
false
4,331
r
#' @title Aggregate Group-Time Average Treatment Effects #' #' @description A function to take group-time average treatment effects #' and aggregate them into a smaller number of parameters. There are #' several possible aggregations including "simple", "dynamic", "group", #' and "calendar." #' #' @param MP ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_reports.R \name{write_reports} \alias{write_reports} \title{Write NSSP BioSense Platform Data Quality Summary Reports} \usage{ write_reports(username, password, table, mft, start, end, directory = "", nexamples = 0, offset) } \argumen...
/man/write_reports.Rd
no_license
markhwhiteii/biosensequality
R
false
true
2,374
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_reports.R \name{write_reports} \alias{write_reports} \title{Write NSSP BioSense Platform Data Quality Summary Reports} \usage{ write_reports(username, password, table, mft, start, end, directory = "", nexamples = 0, offset) } \argumen...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/correctSigns.R \name{applyFix} \alias{applyFix} \title{Apply flips and swaps to a record.} \usage{ applyFix(flips, swaps, r) } \arguments{ \item{flips}{Index vector in r. r will be sign-flipped at flips} \item{swaps}{nx2 matrix denot...
/man/applyFix.Rd
no_license
cran/deducorrect
R
false
false
487
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/correctSigns.R \name{applyFix} \alias{applyFix} \title{Apply flips and swaps to a record.} \usage{ applyFix(flips, swaps, r) } \arguments{ \item{flips}{Index vector in r. r will be sign-flipped at flips} \item{swaps}{nx2 matrix denot...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alpha_to_num.R \name{alpha_to_num} \alias{alpha_to_num} \title{Convert alphabet to numbers 1-26} \usage{ alpha_to_num(x) } \arguments{ \item{x}{character} } \value{ number from 1-26 (a = 1, b = 2, etc.) } \description{ Convert alphabet to num...
/man/alpha_to_num.Rd
permissive
njtierney/njtmisc
R
false
true
516
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alpha_to_num.R \name{alpha_to_num} \alias{alpha_to_num} \title{Convert alphabet to numbers 1-26} \usage{ alpha_to_num(x) } \arguments{ \item{x}{character} } \value{ number from 1-26 (a = 1, b = 2, etc.) } \description{ Convert alphabet to num...
parncpt=function(tstat, df, zeromean=TRUE, ...) { stopifnot(all(df>0)) if(!zeromean && any(is.infinite(df)) && !all(is.infinite(df)) ) { df[is.infinite(df)]=500 } method=c('L-BFGS-B') # method=match.arg(method) if (method=='EM') { stop("EM algorithm not implemented") # ...
/R/parncp.R
no_license
gitlongor/pi0
R
false
false
9,890
r
parncpt=function(tstat, df, zeromean=TRUE, ...) { stopifnot(all(df>0)) if(!zeromean && any(is.infinite(df)) && !all(is.infinite(df)) ) { df[is.infinite(df)]=500 } method=c('L-BFGS-B') # method=match.arg(method) if (method=='EM') { stop("EM algorithm not implemented") # ...
#### Data cleansing script #### ## This script encapsulates the data cleansing operations ## outlined in 1_Exploration.R library(dplyr) source("./Code/Processing/Processing_Functions.R") #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #### Clean Missing Values #### #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ clean_dataset <- functio...
/Capstone/Code/Modeling/Data_Cleanser.R
no_license
DannyGsGit/UW_DS450
R
false
false
1,722
r
#### Data cleansing script #### ## This script encapsulates the data cleansing operations ## outlined in 1_Exploration.R library(dplyr) source("./Code/Processing/Processing_Functions.R") #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #### Clean Missing Values #### #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ clean_dataset <- functio...
file_path <- "/Users/blahiri/healthcare/data/tcga/Raw_Data/v3" load(paste(file_path, "/vital_logr.rda", sep = "")) drug_vars <- c("Avastin", "BCNU", "CCNU", "CPT.11", "Dexamethasone", "Gliadel.Wafer", "Other_drug", "Tarceva", "Temozolomide", "VP.16") radiation_vars <- c("EXTERNAL.BEAM", "Ot...
/code/recomm_system/combi_chem/server.R
no_license
bibudhlahiri/healthcare
R
false
false
6,017
r
file_path <- "/Users/blahiri/healthcare/data/tcga/Raw_Data/v3" load(paste(file_path, "/vital_logr.rda", sep = "")) drug_vars <- c("Avastin", "BCNU", "CCNU", "CPT.11", "Dexamethasone", "Gliadel.Wafer", "Other_drug", "Tarceva", "Temozolomide", "VP.16") radiation_vars <- c("EXTERNAL.BEAM", "Ot...
#----------------------------------# # Estimation Using Delta Normal # # & Historical Simulation # # # # Dr Aric LaBarr # #----------------------------------# # Needed Libraries for Analysis # library(graphics) library(haven) library(ks) library...
/MSA/Estimation Using Monte Carlo Simulation.R
no_license
nadolsw/R
R
false
false
2,599
r
#----------------------------------# # Estimation Using Delta Normal # # & Historical Simulation # # # # Dr Aric LaBarr # #----------------------------------# # Needed Libraries for Analysis # library(graphics) library(haven) library(ks) library...
library(ggplot2) library(reshape2) library(rdrop2) library(googlesheets) token <- drop_auth() saveRDS(token, "droptoken.rds") # Upload droptoken to your server # ******** WARNING ******** # Losing this file will give anyone # complete control of your Dropbox account # You can then revoke the rdrop2 app from your # dr...
/wordCountTracker.R
no_license
nicaless/wordcounttracker
R
false
false
3,900
r
library(ggplot2) library(reshape2) library(rdrop2) library(googlesheets) token <- drop_auth() saveRDS(token, "droptoken.rds") # Upload droptoken to your server # ******** WARNING ******** # Losing this file will give anyone # complete control of your Dropbox account # You can then revoke the rdrop2 app from your # dr...
setwd("/Users/carlybarbera/Desktop/Biocomputing_Junk") iris <- read.csv("iris.csv") # function to return #odd rows of a dataframe nootevenstevens <- function(x){ x[seq(1,nrow(x), by=2),] } nootevenstevens(iris) # function to return number of rows for a given species rowcount <- function(x, y){ count <- sum(x =...
/BarberaNorthIBC07.R
no_license
dnorthnd/IBC_Exercise_07
R
false
false
841
r
setwd("/Users/carlybarbera/Desktop/Biocomputing_Junk") iris <- read.csv("iris.csv") # function to return #odd rows of a dataframe nootevenstevens <- function(x){ x[seq(1,nrow(x), by=2),] } nootevenstevens(iris) # function to return number of rows for a given species rowcount <- function(x, y){ count <- sum(x =...
## These functions will cache the inverse of a matrix for future use ## makeCacheMatrix creates a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get ...
/cachematrix.R
no_license
MsTiggy/ProgrammingAssignment2
R
false
false
1,025
r
## These functions will cache the inverse of a matrix for future use ## makeCacheMatrix creates a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get ...
plotSampleClusteringDendro <- function(dendro, fontSize = 15, fileName = "SampleClustering.pdf"){ sampleClusteringQC <- ggdendrogram(dendro, rotate = TRUE)+ ggtitle("Sample Clustering to Detect Outliers")+ xlab("Sample")+ ylab("Height")+ coord_flip() theme_bw() theme...
/R/plotSampleClusteringDendro.R
permissive
avcarr2/MetaNetworkDownloadable
R
false
false
451
r
plotSampleClusteringDendro <- function(dendro, fontSize = 15, fileName = "SampleClustering.pdf"){ sampleClusteringQC <- ggdendrogram(dendro, rotate = TRUE)+ ggtitle("Sample Clustering to Detect Outliers")+ xlab("Sample")+ ylab("Height")+ coord_flip() theme_bw() theme...
library(shiny) library(shinyjs) ui <- fluidPage( useShinyjs(), # Include shinyjs actionButton("button", "Click me"), textInput("text", "Text") ) server <- function(input, output) { observeEvent(input$button, { toggle("text") # toggle is a shinyjs function }) } shinyApp(ui, server)
/js.R
no_license
avijandiran/My-shiny-dashboards
R
false
false
319
r
library(shiny) library(shinyjs) ui <- fluidPage( useShinyjs(), # Include shinyjs actionButton("button", "Click me"), textInput("text", "Text") ) server <- function(input, output) { observeEvent(input$button, { toggle("text") # toggle is a shinyjs function }) } shinyApp(ui, server)
testlist <- list(data = structure(3.52936705200262e+30, .Dim = c(1L, 1L)), q = 0) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
/biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610554720-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
156
r
testlist <- list(data = structure(3.52936705200262e+30, .Dim = c(1L, 1L)), q = 0) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
shinyUI( pageWithSidebar( headerPanel("Diabetes prediction"), sidebarPanel( numericInput('glucose', 'Glucose mg/dl', 90, min = 50, max = 200, step = 5), submitButton('Submit') ), mainPanel( h3('Results o...
/Tutorials & Trails/jhp_1/ui.R
no_license
AaronRanAn/JHU_Developing_Data_Products
R
false
false
539
r
shinyUI( pageWithSidebar( headerPanel("Diabetes prediction"), sidebarPanel( numericInput('glucose', 'Glucose mg/dl', 90, min = 50, max = 200, step = 5), submitButton('Submit') ), mainPanel( h3('Results o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/burk-data.R \docType{data} \name{burk} \alias{burk} \title{Burkitt's lymphoma in Uganda} \format{\code{burk} is a named list with three members: \describe{ \item{\code{$cases}}{ An object of class \code{\link[spatstat.geom]{ppp}} giving the s...
/sparr/man/burk.Rd
no_license
albrizre/spatstat.revdep
R
false
true
2,101
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/burk-data.R \docType{data} \name{burk} \alias{burk} \title{Burkitt's lymphoma in Uganda} \format{\code{burk} is a named list with three members: \describe{ \item{\code{$cases}}{ An object of class \code{\link[spatstat.geom]{ppp}} giving the s...
library(sfsmisc) ### Name: tkdensity ### Title: GUI Density Estimation using Tcl/Tk ### Aliases: tkdensity ### Keywords: hplot dynamic ### ** Examples if (dev.interactive(TRUE)) ## does really not make sense otherwise if(try(require("tcltk"))) { ## sometimes (rarely) there, but broken data(faithful) tkdensity...
/data/genthat_extracted_code/sfsmisc/examples/tkdensity.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
468
r
library(sfsmisc) ### Name: tkdensity ### Title: GUI Density Estimation using Tcl/Tk ### Aliases: tkdensity ### Keywords: hplot dynamic ### ** Examples if (dev.interactive(TRUE)) ## does really not make sense otherwise if(try(require("tcltk"))) { ## sometimes (rarely) there, but broken data(faithful) tkdensity...
# /usr/bin/rscript ## Coursera Getting and Cleaning Data ## by Jeff Leek, PhD, Roger D. Peng, PhD, Brian Caffo, PhD ## Johns Hopkins University ## ## Question 4 ## ## How many characters are in the 10th, 20th, 30th and 100th lines of HTML from ## this page: ## ## http://biostat.jhsph.edu/~jleek/contact.html ## ## (...
/03.GettingAndCleaningData/quizzes/quiz2/ques4.R
no_license
minw2828/datasciencecoursera
R
false
false
899
r
# /usr/bin/rscript ## Coursera Getting and Cleaning Data ## by Jeff Leek, PhD, Roger D. Peng, PhD, Brian Caffo, PhD ## Johns Hopkins University ## ## Question 4 ## ## How many characters are in the 10th, 20th, 30th and 100th lines of HTML from ## this page: ## ## http://biostat.jhsph.edu/~jleek/contact.html ## ## (...
context("Test query functions") orig.options <- options(test_context = TRUE) ## test_that("regions and compilations are mandatory args", { ## expect_error(query_jx(compilation = "tcga"), "argument \"regions\" is missing, with no default") ## expect_error(query_jx(regions = "CD99"), "argument \"compilation\" i...
/tests/testthat/test-query-functions.R
permissive
langmead-lab/snapcount
R
false
false
5,101
r
context("Test query functions") orig.options <- options(test_context = TRUE) ## test_that("regions and compilations are mandatory args", { ## expect_error(query_jx(compilation = "tcga"), "argument \"regions\" is missing, with no default") ## expect_error(query_jx(regions = "CD99"), "argument \"compilation\" i...
S.basis=function(tt,basis,lambda=0,Lfdobj=vec2Lfd(c(0,0)),w=NULL,...){ phi=getbasismatrix(tt,basis,...) np<-length(tt) if (is.null(w)) w<-rep(1,np) if (!is.matrix(w)) w<-diag(w) if (lambda!=0) { R=getbasispenalty(basis,Lfdobj) S=phi%*%solve(t(phi)%*%w%*%phi+lambda*R)%*%t(phi)%*%...
/R/S.basis.R
no_license
dgorbachev/fda.usc
R
false
false
398
r
S.basis=function(tt,basis,lambda=0,Lfdobj=vec2Lfd(c(0,0)),w=NULL,...){ phi=getbasismatrix(tt,basis,...) np<-length(tt) if (is.null(w)) w<-rep(1,np) if (!is.matrix(w)) w<-diag(w) if (lambda!=0) { R=getbasispenalty(basis,Lfdobj) S=phi%*%solve(t(phi)%*%w%*%phi+lambda*R)%*%t(phi)%*%...
priorTau <- list(tau0 = 0, v0 = 1000) priorPsi <- list(psi0 = 500, eta0 = 1) priorVar <- list(s0 = 500, kappa0 = 1) priorBeta <- list(b0 = c(0,0), bMat = matrix(c(1000,100,100,1000), nc = 2)) data(hiermeanRegTest.df) data.df <- hiermeanRegTest.df design <- list(y = data.df$y, group = data.df$group, ...
/Bolstad2/demo/hiermeanReg.r
no_license
ingted/R-Examples
R
false
false
422
r
priorTau <- list(tau0 = 0, v0 = 1000) priorPsi <- list(psi0 = 500, eta0 = 1) priorVar <- list(s0 = 500, kappa0 = 1) priorBeta <- list(b0 = c(0,0), bMat = matrix(c(1000,100,100,1000), nc = 2)) data(hiermeanRegTest.df) data.df <- hiermeanRegTest.df design <- list(y = data.df$y, group = data.df$group, ...
#' Performs support vectors analysis for data sets with survival outcome. #' Three approaches are available in the package: #' The regression approach takes censoring into account when formulating the inequality constraints of the support vector problem. #' In the ranking approach, the inequality constraints set the...
/output/sources/authors/6913/survivalsvm/survivalsvm.R
no_license
Irbis3/crantasticScrapper
R
false
false
15,816
r
#' Performs support vectors analysis for data sets with survival outcome. #' Three approaches are available in the package: #' The regression approach takes censoring into account when formulating the inequality constraints of the support vector problem. #' In the ranking approach, the inequality constraints set the...
\name{importCufflinksFiles} \alias{importCufflinksFiles} \title{ Import CuffDiff (Cufflinks) Data Into R } \description{ This function enables users to run Cufflinks/Cuffdiff on Galaxy and then afterwards import the result into R for post analysis with isoformSwitchAnalyzeR. The user just has to download (some of) the ...
/man/importCufflinksGalaxyData.Rd
no_license
afonsoguerra/IsoformSwitchAnalyzeR
R
false
false
6,522
rd
\name{importCufflinksFiles} \alias{importCufflinksFiles} \title{ Import CuffDiff (Cufflinks) Data Into R } \description{ This function enables users to run Cufflinks/Cuffdiff on Galaxy and then afterwards import the result into R for post analysis with isoformSwitchAnalyzeR. The user just has to download (some of) the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataSet.R, R/DataSetList.R \name{get_FV_summary} \alias{get_FV_summary} \alias{get_FV_summary.DataSet} \alias{get_FV_summary.DataSetList} \title{Get Function Value Summary} \usage{ get_FV_summary(ds, ...) \method{get_FV_summary}{DataSet}(ds,...
/man/get_FV_summary.Rd
permissive
nojhan/IOHanalyzer
R
false
true
881
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataSet.R, R/DataSetList.R \name{get_FV_summary} \alias{get_FV_summary} \alias{get_FV_summary.DataSet} \alias{get_FV_summary.DataSetList} \title{Get Function Value Summary} \usage{ get_FV_summary(ds, ...) \method{get_FV_summary}{DataSet}(ds,...
\name{college} \alias{college} \title{ Statistics on colleges in 15 states. } \description{ The data frame college contains statistics relating to colleges from 15 states. This is a sample of fifteen states and certain statistics taken from the Chronicle of Higher Education (most data is for 1992). All entrie...
/man/college.Rd
no_license
cran/Rlab
R
false
false
1,172
rd
\name{college} \alias{college} \title{ Statistics on colleges in 15 states. } \description{ The data frame college contains statistics relating to colleges from 15 states. This is a sample of fifteen states and certain statistics taken from the Chronicle of Higher Education (most data is for 1992). All entrie...
# Note, this app can't be developed in bluevelvet. rm(list=ls()) library(shiny) library(tidyverse) d <- readRDS("/figures/risk-factor/figure-data/all_forest_plot_RR.RDS") df <- d %>% filter() intervention_options <- dplyr::count(df, intervention_variable, sort = TRUE)[1] outcome_options <- dplyr::count(df, outcome_...
/app.R
permissive
child-growth/causes
R
false
false
1,280
r
# Note, this app can't be developed in bluevelvet. rm(list=ls()) library(shiny) library(tidyverse) d <- readRDS("/figures/risk-factor/figure-data/all_forest_plot_RR.RDS") df <- d %>% filter() intervention_options <- dplyr::count(df, intervention_variable, sort = TRUE)[1] outcome_options <- dplyr::count(df, outcome_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generics.R \name{grbase_generics} \alias{grbase_generics} \alias{fit} \alias{compile} \alias{propagate} \alias{stepwise} \title{Compile and propagate functions} \usage{ fit(object, ...) compile(object, ...) propagate(object, ...) stepwise(...
/gRbase/man/grbase_generics.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
879
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generics.R \name{grbase_generics} \alias{grbase_generics} \alias{fit} \alias{compile} \alias{propagate} \alias{stepwise} \title{Compile and propagate functions} \usage{ fit(object, ...) compile(object, ...) propagate(object, ...) stepwise(...
?USArrests nrow(USArrests) ncol(USArrests) fix(USArrests) head(USArrests) head(USArrests,10) USArrests$Murder L=USArrests$Murder>3 L USArrests[L,]$Assault ?euro fix(euro) df=data.frame(euro) df nrow(df) ncol(df) ?eurodist fix(eurodist) df=data.matrix(eurodist) df
/task_10_datasets.r
no_license
Nivas138/LearningRStudio
R
false
false
284
r
?USArrests nrow(USArrests) ncol(USArrests) fix(USArrests) head(USArrests) head(USArrests,10) USArrests$Murder L=USArrests$Murder>3 L USArrests[L,]$Assault ?euro fix(euro) df=data.frame(euro) df nrow(df) ncol(df) ?eurodist fix(eurodist) df=data.matrix(eurodist) df
west <- c( 'Western Europe', 'Northern Europe', 'Southern Europe', 'Northern America', 'Australia and New Zealand' ) countries2 <- c( 'United Kingdom', 'Portugal' ) dat <- gapminder %>% filter( year %in% c( 2010, 2015 ) & region %in% west & !is.na( life_expectancy ) & population > 10^7 ) head( dat ) dat %>% ...
/HarvardX_PH125.2x_Visualization/1.dataVisualization.R
no_license
JayChart/HarvardX_DataScienceProfessional
R
false
false
4,989
r
west <- c( 'Western Europe', 'Northern Europe', 'Southern Europe', 'Northern America', 'Australia and New Zealand' ) countries2 <- c( 'United Kingdom', 'Portugal' ) dat <- gapminder %>% filter( year %in% c( 2010, 2015 ) & region %in% west & !is.na( life_expectancy ) & population > 10^7 ) head( dat ) dat %>% ...
#Chapter 8 범주형 자료분석 #값으로부터 직접 계산을 할수 없는 질적자료의 경우 #1 Sample T And Sample Prop #2 sample T #Paired T #ANOVA #등분산성, 정규성 #예제 1. 멘델의 법칙 x <- c(315,101,108,32) chisq.test(x,p=c(9,3,3,1)/16) #p-value = 0.9254 ychi <- dchisq(x,3) alpha <- 0.05 tol <- qchisq(0.95, df=3) par(mar=c(0,1,1,1)) curve(x,ychi,type = "l", axes=F...
/ch8/점주형 자료분석.R
no_license
joeychoi12/R_Statistics
R
false
false
2,765
r
#Chapter 8 범주형 자료분석 #값으로부터 직접 계산을 할수 없는 질적자료의 경우 #1 Sample T And Sample Prop #2 sample T #Paired T #ANOVA #등분산성, 정규성 #예제 1. 멘델의 법칙 x <- c(315,101,108,32) chisq.test(x,p=c(9,3,3,1)/16) #p-value = 0.9254 ychi <- dchisq(x,3) alpha <- 0.05 tol <- qchisq(0.95, df=3) par(mar=c(0,1,1,1)) curve(x,ychi,type = "l", axes=F...
############################################################################## # Copyright (c) 2012-2016 Russell V. Lenth # # # # This file is part of the emmeans package for R (*emmeans*) # # ...
/R/ordinal-support.R
no_license
hauselin/emmeans
R
false
false
16,812
r
############################################################################## # Copyright (c) 2012-2016 Russell V. Lenth # # # # This file is part of the emmeans package for R (*emmeans*) # # ...