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
testlist <- list(A = structure(c(2.31584399703534e+77, 9.53818252170339e+295, 1.22810536108214e+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, 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(9L, 7...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613103519-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
428
r
testlist <- list(A = structure(c(2.31584399703534e+77, 9.53818252170339e+295, 1.22810536108214e+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, 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(9L, 7...
library(ape) testtree <- read.tree("7799_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="7799_0_unrooted.txt")
/codeml_files/newick_trees_processed/7799_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("7799_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="7799_0_unrooted.txt")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/urqCI.R \name{urqCI} \alias{urqCI} \title{Unconditional Quantile Regression} \usage{ urqCI(urq,data,R=20,seed=NULL,colour=NULL,confidence=NULL,graph=TRUE,cluster=NULL) } \arguments{ \item{urq}{an object of class \code{urq}.} \item{data}{a \c...
/man/urqCI.Rd
no_license
snembrini/quantreg2
R
false
true
1,817
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/urqCI.R \name{urqCI} \alias{urqCI} \title{Unconditional Quantile Regression} \usage{ urqCI(urq,data,R=20,seed=NULL,colour=NULL,confidence=NULL,graph=TRUE,cluster=NULL) } \arguments{ \item{urq}{an object of class \code{urq}.} \item{data}{a \c...
#Created by : Larbi Bedrani #Date : April 18, 2018 #Version: 1.2 #For a given column COL of numeric values in a dataset, this function append a new column containing the quantile number in which falls the corresponding numerical value. The appended column's name is "Quantiles + number of quantiles + COL". #i.e. If a c...
/Attibute_Quantiles.R
no_license
rostomides/Attribute-Quantiles
R
false
false
2,473
r
#Created by : Larbi Bedrani #Date : April 18, 2018 #Version: 1.2 #For a given column COL of numeric values in a dataset, this function append a new column containing the quantile number in which falls the corresponding numerical value. The appended column's name is "Quantiles + number of quantiles + COL". #i.e. If a c...
## reading sampled data. Data starts with 16/12/2006. Every day is 1440 minutes. ## Our sample start after approximetly 66000 rows. ## I will take 4000 rows to be sure that all nedeed data is considered, and filter data afterwords hpc <- read.table('household_power_consumption.txt',sep=';',header = F, nrows = 4000, s...
/plot1.R
no_license
JakubChmiel/ExData_Plotting1
R
false
false
1,065
r
## reading sampled data. Data starts with 16/12/2006. Every day is 1440 minutes. ## Our sample start after approximetly 66000 rows. ## I will take 4000 rows to be sure that all nedeed data is considered, and filter data afterwords hpc <- read.table('household_power_consumption.txt',sep=';',header = F, nrows = 4000, s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/track.R \name{chemotaxis_index} \alias{chemotaxis_index} \title{Calculate the mean chemotaxis index of a track object.} \usage{ chemotaxis_index(tracks, x_var = "Location_Center_X", y_var = "Location_Center_Y") } \arguments{ \item{tracks}{d...
/man/chemotaxis_index.Rd
permissive
cells2numbers/migrationminer
R
false
true
896
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/track.R \name{chemotaxis_index} \alias{chemotaxis_index} \title{Calculate the mean chemotaxis index of a track object.} \usage{ chemotaxis_index(tracks, x_var = "Location_Center_X", y_var = "Location_Center_Y") } \arguments{ \item{tracks}{d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main-functions.R \name{bin_skewness} \alias{bin_skewness} \title{bin_skewness} \usage{ bin_skewness(trials, prob) } \arguments{ \item{int}{integer trials} \item{int}{integer prob} } \value{ binomial skewness } \description{ checks probabilit...
/binomial/man/bin_skewness.Rd
no_license
stat133-sp19/hw-stat133-mallikakolar
R
false
true
404
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main-functions.R \name{bin_skewness} \alias{bin_skewness} \title{bin_skewness} \usage{ bin_skewness(trials, prob) } \arguments{ \item{int}{integer trials} \item{int}{integer prob} } \value{ binomial skewness } \description{ checks probabilit...
## workspace init # load necessary libraries library(plyr) library(ggplot2) # read data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") ## process data for plotting # subset only relevant data Baltimore_NEI<-subset(NEI,fips=="24510") vehicleSCC<-SCC[grep("Vehicles$",SCC$EI.Sector...
/Exploratory Data Analysis/Project 2/plot5.R
no_license
oyavin/datasciencecoursera
R
false
false
880
r
## workspace init # load necessary libraries library(plyr) library(ggplot2) # read data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") ## process data for plotting # subset only relevant data Baltimore_NEI<-subset(NEI,fips=="24510") vehicleSCC<-SCC[grep("Vehicles$",SCC$EI.Sector...
#code to make a map for range paper #EVM 12/1/17 #install package to map (leaflet), download data from GoogleSheets (gsheet), save html (htmlwidgets).drawing objects (sp) install.packages(c("shiny", "leaflet", "gsheet", "htmlwidgets", "sp", "tidyverse")) ##get leaflet library(shiny) library(leaflet) library(...
/geolitreview_unpaambr.R
no_license
ebgoldstein/UNPA_AMBR
R
false
false
2,832
r
#code to make a map for range paper #EVM 12/1/17 #install package to map (leaflet), download data from GoogleSheets (gsheet), save html (htmlwidgets).drawing objects (sp) install.packages(c("shiny", "leaflet", "gsheet", "htmlwidgets", "sp", "tidyverse")) ##get leaflet library(shiny) library(leaflet) library(...
library(sonar) ### Name: AbsorptionSoundFreshWaterFrancoisGarrison ### Title: Calculation of absorption of sound in fresh water From Francois ### & Garrison 1982 ### Aliases: AbsorptionSoundFreshWaterFrancoisGarrison ### ** Examples AbsorptionSoundFreshWaterFrancoisGarrison(50, 0, 0)
/data/genthat_extracted_code/sonar/examples/AbsorptionSoundFreshWaterFrancoisGarrison.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
294
r
library(sonar) ### Name: AbsorptionSoundFreshWaterFrancoisGarrison ### Title: Calculation of absorption of sound in fresh water From Francois ### & Garrison 1982 ### Aliases: AbsorptionSoundFreshWaterFrancoisGarrison ### ** Examples AbsorptionSoundFreshWaterFrancoisGarrison(50, 0, 0)
x=seq(from=-3,to=3,by=0.1) y=x^3 # save the plot of y = x^3 as graph.svg in svg format svg(filename="graph.svg", width=6, height=6) plot(x,y,type="l") dev.off()
/R/save_plot_as_svg/solution.R
no_license
dnuffer/dpcode
R
false
false
161
r
x=seq(from=-3,to=3,by=0.1) y=x^3 # save the plot of y = x^3 as graph.svg in svg format svg(filename="graph.svg", width=6, height=6) plot(x,y,type="l") dev.off()
# Tests for BESTmcmc context("BESTmcmc_errors") test_that("BESTmcmc gives sensible errors", { expect_error(BESTmcmc(c(1:4, NA), 1:4, numSavedSteps = 9, burnInSteps = 1), "The input data include NA or Inf") expect_error(BESTmcmc(1:4, 1:4, 9), "'priors' is now the 3rd argument") expect_error(B...
/inst/tests/testthat/test-BESTmcmc_errors.R
no_license
cran/BEST
R
false
false
945
r
# Tests for BESTmcmc context("BESTmcmc_errors") test_that("BESTmcmc gives sensible errors", { expect_error(BESTmcmc(c(1:4, NA), 1:4, numSavedSteps = 9, burnInSteps = 1), "The input data include NA or Inf") expect_error(BESTmcmc(1:4, 1:4, 9), "'priors' is now the 3rd argument") expect_error(B...
"Para_niche" <- function ( resp, model, top, optima, pess, central = exp(-0.5), outer = exp(-2), newdata = NULL, ...) { x <- if(is.null(newdata)) seq(resp$range[1] - diff(resp$range)/2, resp$range[2] + diff(resp$range)/2, length.out = 10000) else newdata M <- resp$M if (missing(model)) ...
/R/Para.niche.r
no_license
shahar710/eHOF
R
false
false
5,850
r
"Para_niche" <- function ( resp, model, top, optima, pess, central = exp(-0.5), outer = exp(-2), newdata = NULL, ...) { x <- if(is.null(newdata)) seq(resp$range[1] - diff(resp$range)/2, resp$range[2] + diff(resp$range)/2, length.out = 10000) else newdata M <- resp$M if (missing(model)) ...
.mcmcdrm <- function(Model, Data, Iterations, Status, Thinning, Specs, Acceptance, Dev, DiagCovar, LIV, Mon, Mo0, ScaleF, thinned, tuning, VarCov, Debug, LogFile) { DR <- 1 U <- chol(VarCov) for (iter in 1:Iterations) { ### Print Status if(iter %% Status == 0) ...
/R/Algorithms/mcmcdrm.R
permissive
vthorrf/LaplacesDemonCpp
R
false
false
4,865
r
.mcmcdrm <- function(Model, Data, Iterations, Status, Thinning, Specs, Acceptance, Dev, DiagCovar, LIV, Mon, Mo0, ScaleF, thinned, tuning, VarCov, Debug, LogFile) { DR <- 1 U <- chol(VarCov) for (iter in 1:Iterations) { ### Print Status if(iter %% Status == 0) ...
library(tidyverse) library(ggthemes) idmb <- read_csv('imdb-5000-movie-dataset/movie_metadata.csv') idmb <- read.csv('imdb-5000-movie-dataset/movie_metadata.csv') idmb %>% filter(country=="Japan" | country =="South Korea" | country == "UK" | country =="USA") %>% group_by(country) %>% summarise(mean = mean(bu...
/idmb_practice.R
no_license
ssrin0522/r-codes
R
false
false
1,728
r
library(tidyverse) library(ggthemes) idmb <- read_csv('imdb-5000-movie-dataset/movie_metadata.csv') idmb <- read.csv('imdb-5000-movie-dataset/movie_metadata.csv') idmb %>% filter(country=="Japan" | country =="South Korea" | country == "UK" | country =="USA") %>% group_by(country) %>% summarise(mean = mean(bu...
library(tidyverse) library(MASS) ggplot(data=Boston) + aes(x=rm, y=medv) + geom_point() + geom_smooth(method="lm", se=FALSE) #1. The graphic you just created fits a best line to a cloud of points. Copy and modify the code to produce a plot where “crim” is the x variable instead of “rm.” ggplot(data=Boston) + ae...
/cdhanan_lab8.R
no_license
syrchanan/ist387
R
false
false
2,735
r
library(tidyverse) library(MASS) ggplot(data=Boston) + aes(x=rm, y=medv) + geom_point() + geom_smooth(method="lm", se=FALSE) #1. The graphic you just created fits a best line to a cloud of points. Copy and modify the code to produce a plot where “crim” is the x variable instead of “rm.” ggplot(data=Boston) + ae...
library(repmis) ### Name: source_data ### Title: Load plain-text data and RData from a URL (either http or https) ### Aliases: source_data ### ** Examples ## Not run: ##D # Download electoral disproportionality data stored on GitHub ##D # Note: Using shortened URL created by bitly ##D DisData <- source_data("http:...
/data/genthat_extracted_code/repmis/examples/source_data.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
533
r
library(repmis) ### Name: source_data ### Title: Load plain-text data and RData from a URL (either http or https) ### Aliases: source_data ### ** Examples ## Not run: ##D # Download electoral disproportionality data stored on GitHub ##D # Note: Using shortened URL created by bitly ##D DisData <- source_data("http:...
library(tidyverse) library(maps) if(!require(mapplots)){install.packages("mapplots") ;library(mapplots)} if(!require(ggmap)){install.packages("ggmap") ;library(ggmap)} if(!require(mapdata)){install.packages("mapdata") ;library(mapdata)} # USA map old_par <- par() par(mfrow = c(1,2)) map(database = "usa") # lines map(da...
/데이터기반 통계분석 시스템구축/ggmap_and_map.R
no_license
BenHeo/SNU
R
false
false
2,730
r
library(tidyverse) library(maps) if(!require(mapplots)){install.packages("mapplots") ;library(mapplots)} if(!require(ggmap)){install.packages("ggmap") ;library(ggmap)} if(!require(mapdata)){install.packages("mapdata") ;library(mapdata)} # USA map old_par <- par() par(mfrow = c(1,2)) map(database = "usa") # lines map(da...
## Simulate_data.R # #======================================================== # --- ### title: Simulate movement data # author: Marie Gilbertson # date: "10/14/2022" #--- ### Preamble # # What this code does: # 1. Simulates animal movement data for demonstration of dispersal detection algorithm. ##### CLEAR EN...
/Scripts/Simulate_data.R
no_license
mjones029/WhiteTailedDeer_Dispersal
R
false
false
8,529
r
## Simulate_data.R # #======================================================== # --- ### title: Simulate movement data # author: Marie Gilbertson # date: "10/14/2022" #--- ### Preamble # # What this code does: # 1. Simulates animal movement data for demonstration of dispersal detection algorithm. ##### CLEAR EN...
library(sp) library(sf) library(rgeos) library(velox) library(raster) context("Extract") test_that("summary extract works with lines and polygons", { ## Make VeloxRaster with two bands set.seed(0) mat1 <- matrix(rnorm(100), 10, 10) mat2 <- matrix(rnorm(100), 10, 10) brk <- brick(raster(mat1), raster(mat2)) ...
/tests/testthat/test_extract.R
no_license
JimColl/velox
R
false
false
6,276
r
library(sp) library(sf) library(rgeos) library(velox) library(raster) context("Extract") test_that("summary extract works with lines and polygons", { ## Make VeloxRaster with two bands set.seed(0) mat1 <- matrix(rnorm(100), 10, 10) mat2 <- matrix(rnorm(100), 10, 10) brk <- brick(raster(mat1), raster(mat2)) ...
## Purpose: Create plot that shows distribution of simulated particles ## Author: Kathryn Peebles ## Date: 7 January 2019 # Attach packages library(ggplot2) library(ggtern) library(data.table) library(ggpubr) library(scales) library(viridis) setwd("~/Documents/code/aspire/abc") # Plot line showing density of par...
/abc/abc-plots.R
no_license
laura-matrajt/aspire
R
false
false
6,361
r
## Purpose: Create plot that shows distribution of simulated particles ## Author: Kathryn Peebles ## Date: 7 January 2019 # Attach packages library(ggplot2) library(ggtern) library(data.table) library(ggpubr) library(scales) library(viridis) setwd("~/Documents/code/aspire/abc") # Plot line showing density of par...
library(magick) library(tidyverse) # From the docs for the excellent magick package bigdata <- image_read('https://jeroen.github.io/images/bigdata.jpg') frink <- image_read("https://jeroen.github.io/images/frink.png") logo <- image_read("https://jeroen.github.io/images/Rlogo.png") combo <- c(bigdata, frink,logo) combo...
/R/logo.R
no_license
urbandj/teachR
R
false
false
407
r
library(magick) library(tidyverse) # From the docs for the excellent magick package bigdata <- image_read('https://jeroen.github.io/images/bigdata.jpg') frink <- image_read("https://jeroen.github.io/images/frink.png") logo <- image_read("https://jeroen.github.io/images/Rlogo.png") combo <- c(bigdata, frink,logo) combo...
# test coeffs stuff library("disordR") # needed for is.disord() test_that("Test suite test_aaf.R",{ foo <- function(a,b){ ca <- coeffs(a) cb <- coeffs(b) print(ca) expect_silent(!ca) expect_silent(!cb) expect_silent(+ca) expect_silent(-ca) ...
/tests/testthat/test_aaf.R
no_license
cran/mvp
R
false
false
4,183
r
# test coeffs stuff library("disordR") # needed for is.disord() test_that("Test suite test_aaf.R",{ foo <- function(a,b){ ca <- coeffs(a) cb <- coeffs(b) print(ca) expect_silent(!ca) expect_silent(!cb) expect_silent(+ca) expect_silent(-ca) ...
\name{meclight.default} \alias{meclight} \alias{meclight.default} \alias{meclight.formula} \alias{meclight.matrix} \alias{meclight.data.frame} \alias{print.meclight} \title{Minimal Error Classification} \description{Computer intensive method for linear dimension reduction that minimizes the classification error...
/man/meclight.Rd
no_license
cran/klaR
R
false
false
2,845
rd
\name{meclight.default} \alias{meclight} \alias{meclight.default} \alias{meclight.formula} \alias{meclight.matrix} \alias{meclight.data.frame} \alias{print.meclight} \title{Minimal Error Classification} \description{Computer intensive method for linear dimension reduction that minimizes the classification error...
##' A function to safely take the maximum of a vector that could include only NAs. ##' @description When computing the maximum on arbitrary subsets of data, some ##' of which may only have missing values, it may be necessary to take the maximum ##' of a vector of NAs. This replaces the behavior that returns Inf or-In...
/R/max_mis.R
no_license
larcat/eeptools
R
false
false
1,818
r
##' A function to safely take the maximum of a vector that could include only NAs. ##' @description When computing the maximum on arbitrary subsets of data, some ##' of which may only have missing values, it may be necessary to take the maximum ##' of a vector of NAs. This replaces the behavior that returns Inf or-In...
library(hypothesestest) ### Name: findroot ### Title: find the Z score ### Aliases: findroot ### Keywords: findroot ### ** Examples ##find the z score findroot(alpha = 0.05, side = "both", method = "n", n=30, mu = 0, sigma = 1) # 1.959961
/data/genthat_extracted_code/hypothesestest/examples/findroot.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
246
r
library(hypothesestest) ### Name: findroot ### Title: find the Z score ### Aliases: findroot ### Keywords: findroot ### ** Examples ##find the z score findroot(alpha = 0.05, side = "both", method = "n", n=30, mu = 0, sigma = 1) # 1.959961
################# # QTL_Beta_oneS # ################# # MPP GxE one stage QTL (Beta) genetic effects # # Compute MPP GxE one stage QTL genetic effects (Beta) to be used in # cross-validation. # # @param plot_data \code{data.frame} containing the plot data with the following # columns: the trait(s), 'genotype' (genotyp...
/R/QTL_Beta_oneS.R
no_license
vincentgarin/mppGxE
R
false
false
6,095
r
################# # QTL_Beta_oneS # ################# # MPP GxE one stage QTL (Beta) genetic effects # # Compute MPP GxE one stage QTL genetic effects (Beta) to be used in # cross-validation. # # @param plot_data \code{data.frame} containing the plot data with the following # columns: the trait(s), 'genotype' (genotyp...
################################################## #Setup needed packages and working directory# ################################################## library(triangle) library(ks) library(MASS) library(rgl) library(graphics) library(truncnorm) library(LaplacesDemon) #####################################################...
/Drilling_Sim.R
no_license
ImDavidJordan/DrillingSimulation
R
false
false
1,898
r
################################################## #Setup needed packages and working directory# ################################################## library(triangle) library(ks) library(MASS) library(rgl) library(graphics) library(truncnorm) library(LaplacesDemon) #####################################################...
library("dplyr") library("readxl") library("stringr") library("readxl") #upload data MLG <- read.table("MLG.profile", encoding="UTF-8", stringsAsFactors=FALSE) #KO <- read.table("KO.profile", encoding="UTF-8", stringsAsFactors=FALSE) sample <- read.delim("1301samples_config") infoMLG <- read.delim("MLG.infor") #MLG a...
/tesi_etl.R
no_license
giuliaciardi/MasterThesis
R
false
false
6,358
r
library("dplyr") library("readxl") library("stringr") library("readxl") #upload data MLG <- read.table("MLG.profile", encoding="UTF-8", stringsAsFactors=FALSE) #KO <- read.table("KO.profile", encoding="UTF-8", stringsAsFactors=FALSE) sample <- read.delim("1301samples_config") infoMLG <- read.delim("MLG.infor") #MLG a...
testlist <- list(phi = 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, 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, 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), x = c(1.36656528938164e-311, -1.657912...
/dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609866678-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
831
r
testlist <- list(phi = 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, 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, 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), x = c(1.36656528938164e-311, -1.657912...
library(dplyr) best<-function(state,outcome){ #read data data<-read.csv("Dataset/outcome-of-care-measures.csv",colClasses = "character") #data validation possible_outcome<-c("heart attack","heart failure","pneumonia") if (any(data$State==state)) { message("**Your state paramet...
/best.R
no_license
TharindraParanagama/Assignment-3
R
false
false
2,561
r
library(dplyr) best<-function(state,outcome){ #read data data<-read.csv("Dataset/outcome-of-care-measures.csv",colClasses = "character") #data validation possible_outcome<-c("heart attack","heart failure","pneumonia") if (any(data$State==state)) { message("**Your state paramet...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cMSY_funs.R \name{doproject} \alias{doproject} \title{doproject after running the cMSY analysis the plausible trajectories} \usage{ doproject(intraj, constC, projn = 5, sigpR = 0.025) } \arguments{ \item{intraj}{the successful biomas...
/man/doproject.Rd
no_license
haddonm/datalowSA
R
false
true
1,269
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cMSY_funs.R \name{doproject} \alias{doproject} \title{doproject after running the cMSY analysis the plausible trajectories} \usage{ doproject(intraj, constC, projn = 5, sigpR = 0.025) } \arguments{ \item{intraj}{the successful biomas...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mlb_standings.R \docType{data} \name{mlb_standings} \alias{mlb_standings} \title{MLB final standings, 1999-2017, Regular season} \format{A data frame with 570 rows and 10 variables season: The season, 2017 stands for the season 2017-...
/man/mlb_standings.Rd
no_license
iamrafael8/CSE270
R
false
true
940
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mlb_standings.R \docType{data} \name{mlb_standings} \alias{mlb_standings} \title{MLB final standings, 1999-2017, Regular season} \format{A data frame with 570 rows and 10 variables season: The season, 2017 stands for the season 2017-...
#' Count touching cells for a single pair of phenotypes #' #' Fast implementation of count touching cells. #' This function requires a membrane label image such as #' created by adaptive cell segmentation in inForm 2.4.3 or newer. #' It will not work with #' membrane masks created by older segmentation algorithms. #' #...
/R/count_touching_cells_fast.R
permissive
hjames1/phenoptr
R
false
false
8,126
r
#' Count touching cells for a single pair of phenotypes #' #' Fast implementation of count touching cells. #' This function requires a membrane label image such as #' created by adaptive cell segmentation in inForm 2.4.3 or newer. #' It will not work with #' membrane masks created by older segmentation algorithms. #' #...
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ------------------------------------------------------------------------ library(brainvr.reader) dir_path <- system.file("extdata/CFNS", package = "brainvr.reader") obj <- load_ex...
/docs/articles/main.R
no_license
BrainVR/brainvr-reader
R
false
false
665
r
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ------------------------------------------------------------------------ library(brainvr.reader) dir_path <- system.file("extdata/CFNS", package = "brainvr.reader") obj <- load_ex...
#Plot2.R ##download and unzip file from source download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile="data.zip", method="curl") unzip ("data.zip", exdir = "./") ##Read file as csv and get column names, header, and number of rows in dataset fullData <- read.csv(...
/Plot2.R
no_license
machm/ExData_Plotting1
R
false
false
1,288
r
#Plot2.R ##download and unzip file from source download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile="data.zip", method="curl") unzip ("data.zip", exdir = "./") ##Read file as csv and get column names, header, and number of rows in dataset fullData <- read.csv(...
data <- read.table('household_power_consumption.txt',sep=';',header=F,skip=66637,nrows=2880) dataColNames <- read.table('household_power_consumption.txt',sep=';',header=T,nrows=2) colnames(data) <- colnames(dataColNames) rm(dataColNames) data$Date <- as.Date(data$Date, format = "%d/%m/%Y") data$Time <- paste(data$Date,...
/plot4.R
no_license
dac284/ExData_Plotting1
R
false
false
1,119
r
data <- read.table('household_power_consumption.txt',sep=';',header=F,skip=66637,nrows=2880) dataColNames <- read.table('household_power_consumption.txt',sep=';',header=T,nrows=2) colnames(data) <- colnames(dataColNames) rm(dataColNames) data$Date <- as.Date(data$Date, format = "%d/%m/%Y") data$Time <- paste(data$Date,...
################################################################################ # # Genus 2017. 2017-05-26 # Download and unzip the missing data. DE, DK, SI. NUTS2 # Ilya Kashnitsky, ilya.kashnitsky@gmail.com # ...
/R_scripts/2_data_manipulation/2.04_missing_download&unzip.R
permissive
ikashnitsky/genus-2017
R
false
false
1,126
r
################################################################################ # # Genus 2017. 2017-05-26 # Download and unzip the missing data. DE, DK, SI. NUTS2 # Ilya Kashnitsky, ilya.kashnitsky@gmail.com # ...
setwd('~/Desktop/case study') source('functions.R') #merging the data based on mergeDataPoints function created in functions.R finalData <- completeData(file1="harvest_sample_data", file2="planting_sample_data") #complete data as a csv file write.csv(finalData, file="completeData.csv") str(finalData) nrow(finalData...
/Rcode.R
no_license
ggargucsc/PlantHarvestPointAssociationProblem
R
false
false
4,568
r
setwd('~/Desktop/case study') source('functions.R') #merging the data based on mergeDataPoints function created in functions.R finalData <- completeData(file1="harvest_sample_data", file2="planting_sample_data") #complete data as a csv file write.csv(finalData, file="completeData.csv") str(finalData) nrow(finalData...
#Data revenue <- c(14574.49, 7606.46, 8611.41, 9175.41, 8058.65, 8105.44, 11496.28, 9766.09, 10305.32, 14379.96, 10713.97, 15433.50) expenses <- c(12051.82, 5695.07, 12319.20, 12089.72, 8658.57, 840.20, 3285.73, 5821.12, 6976.93, 16618.61, 10054.37, 3803.96) #Solution #Calculate Profit As The Differences Between ...
/Financial Statement Analysis.R
no_license
prachigupta194/prachi.techieworld14
R
false
false
1,970
r
#Data revenue <- c(14574.49, 7606.46, 8611.41, 9175.41, 8058.65, 8105.44, 11496.28, 9766.09, 10305.32, 14379.96, 10713.97, 15433.50) expenses <- c(12051.82, 5695.07, 12319.20, 12089.72, 8658.57, 840.20, 3285.73, 5821.12, 6976.93, 16618.61, 10054.37, 3803.96) #Solution #Calculate Profit As The Differences Between ...
testing<-ggplot(PP512[which(PP512$bb != 6),], aes(x=Blocks, y=Count, color=factor(bb), shape=factor(bb))) + geom_point() + labs(title="512 Byte Partial Paging", x="Blocks (log)", y="Ticks to complete (log)") + scale_color_manual(name="Benchmark", labels=c("0", "1", "2", "3", "4", "5", "7"), values=c("blue", "purple"...
/512bpartialpaging.R
no_license
mcmenaminadrian/R-utilities
R
false
false
550
r
testing<-ggplot(PP512[which(PP512$bb != 6),], aes(x=Blocks, y=Count, color=factor(bb), shape=factor(bb))) + geom_point() + labs(title="512 Byte Partial Paging", x="Blocks (log)", y="Ticks to complete (log)") + scale_color_manual(name="Benchmark", labels=c("0", "1", "2", "3", "4", "5", "7"), values=c("blue", "purple"...
2ddd30893f82b02a374d11c71a3ec8c8 bobsm9234.qdimacs 1706 4623
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Akshay-Chakraborty-John-Shah-Rabe/disjunctive_decomposition/bobsm9234/bobsm9234.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
60
r
2ddd30893f82b02a374d11c71a3ec8c8 bobsm9234.qdimacs 1706 4623
source("utils.R") context("Pool's fetch method") describe("fetch", { pool <- poolCreate(MockPooledObj$new, minSize = 1, maxSize = 3) it("throws if onActivate fails", { checkCounts(pool, free = 1, taken = 0) failOnActivate <<- TRUE expect_error( expect_warning(obj <- poolCheckout(pool), ...
/packrat/lib/x86_64-pc-linux-gnu/3.2.5/pool/tests/testthat/test-fetch.R
no_license
harryprince/seamonster
R
false
false
5,291
r
source("utils.R") context("Pool's fetch method") describe("fetch", { pool <- poolCreate(MockPooledObj$new, minSize = 1, maxSize = 3) it("throws if onActivate fails", { checkCounts(pool, free = 1, taken = 0) failOnActivate <<- TRUE expect_error( expect_warning(obj <- poolCheckout(pool), ...
my.data <- matrix(c(38.1, 1.7, 27.8, 28.7, 34.1, 69.6) , nrow=2) rownames(my.data) <- c("China", "Germany") colnames(my.data) <- c("primary", "second", "tertiary") my.data barplot(my.data, main = "Grouped barplot", xlab = "Industires", ylab = "Employmen...
/01R language in action/ch5Practical_statistical_graphics/i10matrix_with_barplot.R
no_license
greatabel/RStudy
R
false
false
448
r
my.data <- matrix(c(38.1, 1.7, 27.8, 28.7, 34.1, 69.6) , nrow=2) rownames(my.data) <- c("China", "Germany") colnames(my.data) <- c("primary", "second", "tertiary") my.data barplot(my.data, main = "Grouped barplot", xlab = "Industires", ylab = "Employmen...
#' Reproduce Figure 2.3 #' #' Reproduces Figure 2.3 from the book; if you specify any options, your results may look different. #' #' @param lambda Regularization parameter #' @param n Sample size #' @param sigma Standard deviation of noise #' @param ymax What density should Pr(1) correspond to? #' ...
/R/univ-samp-dist.R
no_license
wangsanshui/hdrm
R
false
false
1,616
r
#' Reproduce Figure 2.3 #' #' Reproduces Figure 2.3 from the book; if you specify any options, your results may look different. #' #' @param lambda Regularization parameter #' @param n Sample size #' @param sigma Standard deviation of noise #' @param ymax What density should Pr(1) correspond to? #' ...
library(loadflex) # Interpolation data: Packers Falls NO3 grab sample observations data(lamprey_nitrate) intdat <- lamprey_nitrate[c("DATE","DISCHARGE","NO3")] # Calibration data: Restrict to points separated by sufficient time regdat <- subset(lamprey_nitrate, REGR)[c("DATE","DISCHARGE","NO3")] # Estimation data: P...
/vignette.R
no_license
andrews518/Loading
R
false
false
2,293
r
library(loadflex) # Interpolation data: Packers Falls NO3 grab sample observations data(lamprey_nitrate) intdat <- lamprey_nitrate[c("DATE","DISCHARGE","NO3")] # Calibration data: Restrict to points separated by sufficient time regdat <- subset(lamprey_nitrate, REGR)[c("DATE","DISCHARGE","NO3")] # Estimation data: P...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gamesManagement_objects.R \name{AchievementResetMultipleForAllRequest} \alias{AchievementResetMultipleForAllRequest} \title{AchievementResetMultipleForAllRequest Object} \usage{ AchievementResetMultipleForAllRequest(achievement_ids = NULL) } ...
/googlegamesManagementv1management.auto/man/AchievementResetMultipleForAllRequest.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
778
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gamesManagement_objects.R \name{AchievementResetMultipleForAllRequest} \alias{AchievementResetMultipleForAllRequest} \title{AchievementResetMultipleForAllRequest Object} \usage{ AchievementResetMultipleForAllRequest(achievement_ids = NULL) } ...
\name{internals} \alias{compute.var} \alias{computeBeta} \alias{computeMoments} \alias{computeTiltDirect} \alias{ComputeZ.fromS.R} \alias{ComputeZ.fromS.R.partial} \alias{computeZ.onechange} \alias{computeZ.onechange.sample} \alias{computeZ.squarewave.sample} \alias{dchi} \alias{fcompute.max.Z} \alias{fmscbs} \alias{fs...
/man/internals.Rd
no_license
cran/saasCNV
R
false
false
1,141
rd
\name{internals} \alias{compute.var} \alias{computeBeta} \alias{computeMoments} \alias{computeTiltDirect} \alias{ComputeZ.fromS.R} \alias{ComputeZ.fromS.R.partial} \alias{computeZ.onechange} \alias{computeZ.onechange.sample} \alias{computeZ.squarewave.sample} \alias{dchi} \alias{fcompute.max.Z} \alias{fmscbs} \alias{fs...
library(shiny) # Define UI for application that draws a histogram shinyUI(fluidPage( titlePanel("Marathon Simulation"), sidebarLayout( sidebarPanel( helpText("Examine Simulation Under Various Scenarios."), sliderInput("arrival_rate", label = "Base Arrival Rate", ...
/ui.R
no_license
comccall/NBM
R
false
false
1,510
r
library(shiny) # Define UI for application that draws a histogram shinyUI(fluidPage( titlePanel("Marathon Simulation"), sidebarLayout( sidebarPanel( helpText("Examine Simulation Under Various Scenarios."), sliderInput("arrival_rate", label = "Base Arrival Rate", ...
# 일반화 선형 모델 # 로지스틱 회귀 - UCLA admission data ucla <- read.csv('https://stats.idre.ucla.edu/stat/data/binary.csv') str(ucla) #모델만들기 lr <-glm(admit ~ .,data = ucla,family = 'binomial') coef(lr) #예측하기 test <- data.frame(gre=c(376), gpa=c(3.6), rank=c(3)) predict(lr, test, type='response') #합격이 될 확률이 0.18 # UCLA 데이터 셋 tr...
/ch08_로지스틱회귀.R
no_license
minzzz995/R-Lecture-2021
R
false
false
925
r
# 일반화 선형 모델 # 로지스틱 회귀 - UCLA admission data ucla <- read.csv('https://stats.idre.ucla.edu/stat/data/binary.csv') str(ucla) #모델만들기 lr <-glm(admit ~ .,data = ucla,family = 'binomial') coef(lr) #예측하기 test <- data.frame(gre=c(376), gpa=c(3.6), rank=c(3)) predict(lr, test, type='response') #합격이 될 확률이 0.18 # UCLA 데이터 셋 tr...
# Practical Machine Learning # Course Project Source Code # Code exercise rm(list = ls()) library(ggplot2) library(caret) library(randomForest) # read original datasets, both training and testing examples ## setwd("D:/4 - Works/GitHub/MyStudy/PML Course Project") rawData_training <- read.csv('pml-training.csv', header...
/PML Course Project/pmlprjcode.R
no_license
sunbaoshi1975/MyStudy
R
false
false
9,560
r
# Practical Machine Learning # Course Project Source Code # Code exercise rm(list = ls()) library(ggplot2) library(caret) library(randomForest) # read original datasets, both training and testing examples ## setwd("D:/4 - Works/GitHub/MyStudy/PML Course Project") rawData_training <- read.csv('pml-training.csv', header...
#INSTALAR O PACKAGE TIDYVERSE #install.packages("tidyverse") #CONHECENDO O TIDYVERSE (devtools = developer tools) devtools::session_info(c("tidyverse")) #require(gridExtra) # possibilita visualizacao de varios graficos numa tela #libraries library(tidyverse) library(readr) # fornece uma maneira rapid...
/labs/r/airbnb-analysis/AIRBNB.R
no_license
nicolas0liveira/binderhub-r
R
false
false
13,139
r
#INSTALAR O PACKAGE TIDYVERSE #install.packages("tidyverse") #CONHECENDO O TIDYVERSE (devtools = developer tools) devtools::session_info(c("tidyverse")) #require(gridExtra) # possibilita visualizacao de varios graficos numa tela #libraries library(tidyverse) library(readr) # fornece uma maneira rapid...
#This code has five major parts, following Stralberg et al. (2018): #1. Generate climate-change refugia indices for individual species based on species distribution model predictions #2. Generate a multi-species climate-change refugia index based on species-specific refugia layers #3. Calculate topographic metrics ...
/StralbergEtAlGEB2018Macorefugia.R
no_license
dstralberg/Refugia
R
false
false
22,278
r
#This code has five major parts, following Stralberg et al. (2018): #1. Generate climate-change refugia indices for individual species based on species distribution model predictions #2. Generate a multi-species climate-change refugia index based on species-specific refugia layers #3. Calculate topographic metrics ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MSPE.R \name{MSPE_boot_augmented} \alias{MSPE_boot_augmented} \title{Bootstrap MSPE estimator of Augmented Observed Best Predictor (Augmented OBP).} \usage{ MSPE_boot_augmented(theta.OBP.augmented, D, x, weight, L = 200) } \arguments{ \item{t...
/man/MSPE_boot_augmented.Rd
no_license
rohosen/OBPSAE
R
false
true
1,096
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MSPE.R \name{MSPE_boot_augmented} \alias{MSPE_boot_augmented} \title{Bootstrap MSPE estimator of Augmented Observed Best Predictor (Augmented OBP).} \usage{ MSPE_boot_augmented(theta.OBP.augmented, D, x, weight, L = 200) } \arguments{ \item{t...
# The Source Data - household_power_consumption.txt has been downloaded and saved in the R Working directory #load library data.table library(data.table) # load source txt file from working directory DT<-fread("household_power_consumption.txt", na.strings="?") #set date as d:m:y DT$strDate <- as.Date(DT$Date,"%d/%...
/plot1.R
no_license
HsiuYea/ExData_Plotting1
R
false
false
707
r
# The Source Data - household_power_consumption.txt has been downloaded and saved in the R Working directory #load library data.table library(data.table) # load source txt file from working directory DT<-fread("household_power_consumption.txt", na.strings="?") #set date as d:m:y DT$strDate <- as.Date(DT$Date,"%d/%...
#' WTA Match Odds #' #' This dataset contains outcomes of matches on the WTA Tour from 2007 forward along with betting odds. The variables of the dataset are: #' #' \itemize{ #' \item WTA. A numeric value for the tournament number #' \item Location. A character venue of tournament #' \item Tournament. A character...
/R/wta_odds.R
no_license
dashee87/deuce
R
false
false
3,375
r
#' WTA Match Odds #' #' This dataset contains outcomes of matches on the WTA Tour from 2007 forward along with betting odds. The variables of the dataset are: #' #' \itemize{ #' \item WTA. A numeric value for the tournament number #' \item Location. A character venue of tournament #' \item Tournament. A character...
options(error = recover) setwd("~/dev/projects/Chen_environmental_study/") source("./R_code/Yang_REML.R") source("./R_code/simulation_decorrelation/decorrelation_helpers.R") library(sas7bdat) library(MASS) library(tidyverse) library(foreach) library(doRNG) library(doParallel) cores <- 10 # n_total <- c(100,200,300,40...
/R_code/simulation_decorrelation/simulation_code_3.R
no_license
wal615/prime_project
R
false
false
6,238
r
options(error = recover) setwd("~/dev/projects/Chen_environmental_study/") source("./R_code/Yang_REML.R") source("./R_code/simulation_decorrelation/decorrelation_helpers.R") library(sas7bdat) library(MASS) library(tidyverse) library(foreach) library(doRNG) library(doParallel) cores <- 10 # n_total <- c(100,200,300,40...
\docType{methods} \name{sillyadd} \alias{sillyadd} \alias{sillyadd,ANY-method} \alias{sillyadd,character-method} \title{Trivial addition of two arguments with S4 method} \usage{ sillyadd(x, y) } \arguments{ \item{x}{Description of \code{x}.} \item{y}{Description of \code{y}.} } \value{ The two arguments added ...
/man/sillyadd-methods.Rd
no_license
joey711/testpkg
R
false
false
400
rd
\docType{methods} \name{sillyadd} \alias{sillyadd} \alias{sillyadd,ANY-method} \alias{sillyadd,character-method} \title{Trivial addition of two arguments with S4 method} \usage{ sillyadd(x, y) } \arguments{ \item{x}{Description of \code{x}.} \item{y}{Description of \code{y}.} } \value{ The two arguments added ...
## Analysis for the Volta paper ## Juan Rocha ## juan.rocha@su.se ## Here I kept the code that worked droping all intermediate stages. It comes from the draft Rmd document that is taking too long time to compile. So Now I calculate all analysis and figures separately and only import objects there. # this file combines...
/180116_analysis.R
no_license
neiljun/TAI-Volta
R
false
false
19,204
r
## Analysis for the Volta paper ## Juan Rocha ## juan.rocha@su.se ## Here I kept the code that worked droping all intermediate stages. It comes from the draft Rmd document that is taking too long time to compile. So Now I calculate all analysis and figures separately and only import objects there. # this file combines...
fulldata = read.csv("speachMemcovariateDTM.csv") #2310 speaches by 8468 words + covariates (in columns c(2:12, 8480) ) data66 = fulldata[which(fulldata$year67 == 0),] # year 1866 data CountY66 = as.matrix(data66[,13:(ncol(fulldata)-1)] ) # Count Data for NB factor Logit66 = as.matrix(data66[,c(4,5,6,11)]) ...
/combFactorexample.R
no_license
smoser11/hansard-factor
R
false
false
2,572
r
fulldata = read.csv("speachMemcovariateDTM.csv") #2310 speaches by 8468 words + covariates (in columns c(2:12, 8480) ) data66 = fulldata[which(fulldata$year67 == 0),] # year 1866 data CountY66 = as.matrix(data66[,13:(ncol(fulldata)-1)] ) # Count Data for NB factor Logit66 = as.matrix(data66[,c(4,5,6,11)]) ...
context("Single tests") set.seed(1) n <- 100 p <- 20 X <- matrix(rnorm(p*n), ncol = p) y <- X[, 1] - 0.5*X[, 2] + rnorm(n) test_that("Fast", { # cor.test(y, X[, 1])$p.v # cor.test(y, X[, 2])$p.v # cor.test(y, X[, 13])$p.v d <- prepare_data(y, X, na = FALSE, verbose = FALSE) expect_equal(reduce_matrix(d)$can...
/tests/testthat/test_reduce.R
no_license
pmszulc/bigstep
R
false
false
1,174
r
context("Single tests") set.seed(1) n <- 100 p <- 20 X <- matrix(rnorm(p*n), ncol = p) y <- X[, 1] - 0.5*X[, 2] + rnorm(n) test_that("Fast", { # cor.test(y, X[, 1])$p.v # cor.test(y, X[, 2])$p.v # cor.test(y, X[, 13])$p.v d <- prepare_data(y, X, na = FALSE, verbose = FALSE) expect_equal(reduce_matrix(d)$can...
library(CircNNTSR) ### Name: nntsmanifoldnewtonestimationinterval0to1 ### Title: Parameter estimation for grouped data defined in [0,1) ### Aliases: nntsmanifoldnewtonestimationinterval0to1 ### ** Examples data<-c(1,2,4,6,1) cutpoints<-c(0,0.2,0.4,0.6,0.8,0.999999999) nntsmanifoldnewtonestimationinterval0to1(data, ...
/data/genthat_extracted_code/CircNNTSR/examples/nntsmanifoldnewtonestimationinterval0to1.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
351
r
library(CircNNTSR) ### Name: nntsmanifoldnewtonestimationinterval0to1 ### Title: Parameter estimation for grouped data defined in [0,1) ### Aliases: nntsmanifoldnewtonestimationinterval0to1 ### ** Examples data<-c(1,2,4,6,1) cutpoints<-c(0,0.2,0.4,0.6,0.8,0.999999999) nntsmanifoldnewtonestimationinterval0to1(data, ...
#' Create list for Cape Cod model #' #' g itself #' Basic design is for g to be a function of a single parameter vector, however #' in the simulations it is necessary to work on a matrix of parameters, one #' row for each simulated parameter, so g_obj must be flexible enough to handle #' both. #' Here g_obj is a versio...
/R/chain.R
permissive
OwenAnalytics/stochasticreserver
R
false
false
6,197
r
#' Create list for Cape Cod model #' #' g itself #' Basic design is for g to be a function of a single parameter vector, however #' in the simulations it is necessary to work on a matrix of parameters, one #' row for each simulated parameter, so g_obj must be flexible enough to handle #' both. #' Here g_obj is a versio...
row_sum_odd_numbers <- function(n){ n * n * n }
/7KYU/Sum of Odd Numbers/solution.r
no_license
stuartstein777/CodeWars
R
false
false
49
r
row_sum_odd_numbers <- function(n){ n * n * n }
''' In this exercise you will create some simulated data and will fit simple linear regression models to it. Make sure to use set.seed(1) prior to starting part (a) to ensure consistent results ''' ''' Using the rnorm() function, create a vector, x, containing 100 observations drawn from a N(0, 1) distribution. This r...
/Linear Regression/Applied Exercises/exercises_linear_regression_part4.R
no_license
fabianaboldrin/pattern-recognition
R
false
false
2,216
r
''' In this exercise you will create some simulated data and will fit simple linear regression models to it. Make sure to use set.seed(1) prior to starting part (a) to ensure consistent results ''' ''' Using the rnorm() function, create a vector, x, containing 100 observations drawn from a N(0, 1) distribution. This r...
#' @title data.for.distance #' @description Formats the data generated by create.survey.results into #' a form suitable for import into Distance #' @param object an object of class Survey.Results generated by create.survey.results #' @param file path and filename if the user would like the results saved to csv file. Sh...
/DSsim/R/data.for.distance.R
no_license
dill/DSsim
R
false
false
1,337
r
#' @title data.for.distance #' @description Formats the data generated by create.survey.results into #' a form suitable for import into Distance #' @param object an object of class Survey.Results generated by create.survey.results #' @param file path and filename if the user would like the results saved to csv file. Sh...
#'Imputation of unordered data by polytomous regression #' #'Imputes missing data in a categorical variable using polytomous regression #' #'@aliases mice.impute.polyreg #'@inheritParams mice.impute.pmm #'@param nnet.maxit Tuning parameter for \code{nnet()}. #'@param nnet.trace Tuning parameter for \code{nnet()...
/R/mice.impute.polyreg.R
no_license
worldbank/mice
R
false
false
3,597
r
#'Imputation of unordered data by polytomous regression #' #'Imputes missing data in a categorical variable using polytomous regression #' #'@aliases mice.impute.polyreg #'@inheritParams mice.impute.pmm #'@param nnet.maxit Tuning parameter for \code{nnet()}. #'@param nnet.trace Tuning parameter for \code{nnet()...
`gene70` <- function(data, annot, do.mapping=FALSE, mapping, std=c("none", "scale", "robust"), verbose=FALSE) { std <- match.arg(std) gt <- nrow(sig.gene70) if(do.mapping) { gid1 <- as.numeric(as.character(sig.gene70[ ,"EntrezGene.ID"])) names(gid1) <- dimnames(sig.gene70)[[1]] gid2 <- as.numeric(as.characte...
/R/gene70.R
no_license
cran/genefu
R
false
false
2,436
r
`gene70` <- function(data, annot, do.mapping=FALSE, mapping, std=c("none", "scale", "robust"), verbose=FALSE) { std <- match.arg(std) gt <- nrow(sig.gene70) if(do.mapping) { gid1 <- as.numeric(as.character(sig.gene70[ ,"EntrezGene.ID"])) names(gid1) <- dimnames(sig.gene70)[[1]] gid2 <- as.numeric(as.characte...
##### RCircos code for Shiny app ##### library(RCircos) #RCircos draw chromosome function-adjusted to speed up, remove extra stuff RCircos.Chromosome.Ideogram.Plot=function () { RCircos.Cyto <- RCircos.Get.Plot.Ideogram() RCircos.Pos <- RCircos.Get.Plot.Positions() RCircos.Par <- RCircos.Get.Plot.Parameters() ...
/vds_shinyApp/RCircos_vdsApp.R
no_license
jguinney/virtualIC50
R
false
false
5,944
r
##### RCircos code for Shiny app ##### library(RCircos) #RCircos draw chromosome function-adjusted to speed up, remove extra stuff RCircos.Chromosome.Ideogram.Plot=function () { RCircos.Cyto <- RCircos.Get.Plot.Ideogram() RCircos.Pos <- RCircos.Get.Plot.Positions() RCircos.Par <- RCircos.Get.Plot.Parameters() ...
# TODO: Add comment # # Author: zhaos ############################################################################### ##' sample_size ##' ##' A function to estitamete the sample size for differential expression analysis of RNA-seq data. ##' ##' A function to estitamete the sample size for differential ...
/R/sampleSize.R
no_license
slzhao/RnaSeqSampleSize
R
false
false
5,502
r
# TODO: Add comment # # Author: zhaos ############################################################################### ##' sample_size ##' ##' A function to estitamete the sample size for differential expression analysis of RNA-seq data. ##' ##' A function to estitamete the sample size for differential ...
library("dplyr") library("ggplot2") library("tidyr") library("grid") ## import data data1m<- read.csv('data_exp1_forsupplement.csv') %>% filter(!exclude) ## create a data frame to feed to ggplot for graphing data data1mGraph <- data1m %>% group_by(condition, healthySpecies, patchLength, patchTrial, uniqueid) %>% ...
/analysis_1mushroom.r
no_license
alexanderrich/HorizonExperimentsAnalysis
R
false
false
3,577
r
library("dplyr") library("ggplot2") library("tidyr") library("grid") ## import data data1m<- read.csv('data_exp1_forsupplement.csv') %>% filter(!exclude) ## create a data frame to feed to ggplot for graphing data data1mGraph <- data1m %>% group_by(condition, healthySpecies, patchLength, patchTrial, uniqueid) %>% ...
\name{bincap} \alias{bincap} \title{ a ui-constructor for Class \code{"bincap"} in Package \pkg{HandTill2001} } \description{ \code{bincap(\dots)} is an alias to \code{new("bincap", \dots)}. } \usage{ bincap(response, predicted, true = "1") } \arguments{ \item{response}{Object of class \code{"factor"}.} \item{predi...
/man/bincap.Rd
no_license
nkola123/kola
R
false
false
995
rd
\name{bincap} \alias{bincap} \title{ a ui-constructor for Class \code{"bincap"} in Package \pkg{HandTill2001} } \description{ \code{bincap(\dots)} is an alias to \code{new("bincap", \dots)}. } \usage{ bincap(response, predicted, true = "1") } \arguments{ \item{response}{Object of class \code{"factor"}.} \item{predi...
## Polygon data ---- #' Desikan-Killiany Cortical Atlas #' #' Coordinate data for the Desikan-Killany Cortical atlas, #' with 40 regions in on the cortical surface of the brain. #' #' @docType data #' @name dk #' @usage data(dk) #' @keywords datasets #' @family ggseg_atlases #' #' @references Fischl et al. (2004) Cereb...
/R/data.R
permissive
neuroconductor-releases/ggseg
R
false
false
1,766
r
## Polygon data ---- #' Desikan-Killiany Cortical Atlas #' #' Coordinate data for the Desikan-Killany Cortical atlas, #' with 40 regions in on the cortical surface of the brain. #' #' @docType data #' @name dk #' @usage data(dk) #' @keywords datasets #' @family ggseg_atlases #' #' @references Fischl et al. (2004) Cereb...
\name{imakehamperks} \alias{imakehamperks} \title{Makeham-Perks integrated hazard rate function} \description{Computes the integrated hazard rate function of the Makeham-Perks distribution} \usage{ imakehamperks(x, t = 1, alpha = 1, beta = 1, epsilon = 1) } \arguments{ \item{x}{scale or vector of positive val...
/man/imakehamperks.Rd
no_license
cran/ActuDistns
R
false
false
1,250
rd
\name{imakehamperks} \alias{imakehamperks} \title{Makeham-Perks integrated hazard rate function} \description{Computes the integrated hazard rate function of the Makeham-Perks distribution} \usage{ imakehamperks(x, t = 1, alpha = 1, beta = 1, epsilon = 1) } \arguments{ \item{x}{scale or vector of positive val...
library(rvest) library(stringr) enter<-function(year) { web=paste0('https://mobilednajournal.biomedcentral.com/articles?query=&volume=', switch(year, "2019"=10, "2018" =9, "2017"=8, "2016"=7, "2015"=6, "2014"=5, "2013"=4, "2012"=3, "2011"=2, "2010"=1), ...
/Web Scraping project/crawler.R
no_license
sirishabojjireddy/Rprogramming_CS636
R
false
false
888
r
library(rvest) library(stringr) enter<-function(year) { web=paste0('https://mobilednajournal.biomedcentral.com/articles?query=&volume=', switch(year, "2019"=10, "2018" =9, "2017"=8, "2016"=7, "2015"=6, "2014"=5, "2013"=4, "2012"=3, "2011"=2, "2010"=1), ...
#-------------------------------------------------- # Get Frequent Deg Patterns #-------------------------------------------------- library(tidyverse) #-------------------------------------------------- patterns <- read_delim("corpus/deg_patterns.tsv",col_names = c("Count","Pattern","Gram"),delim = "\t") #-----------...
/corpus/get_deg_patterns.R
permissive
davidjohnbaker1/sdrt
R
false
false
582
r
#-------------------------------------------------- # Get Frequent Deg Patterns #-------------------------------------------------- library(tidyverse) #-------------------------------------------------- patterns <- read_delim("corpus/deg_patterns.tsv",col_names = c("Count","Pattern","Gram"),delim = "\t") #-----------...
## Adjust data.Major ---- full_data_select<-full_data_select%>% mutate(major=replace(major,major=='Business (Exchange Student)','Business')) %>% #Exchange mutate(major=replace(major,major=='Accounting (Exchange)','Accounting')) %>% mutate(major=replace(major,major=='International Business (Exchange)','Internatio...
/Past.R
no_license
rct-research/RCT
R
false
false
437
r
## Adjust data.Major ---- full_data_select<-full_data_select%>% mutate(major=replace(major,major=='Business (Exchange Student)','Business')) %>% #Exchange mutate(major=replace(major,major=='Accounting (Exchange)','Accounting')) %>% mutate(major=replace(major,major=='International Business (Exchange)','Internatio...
library(tidyverse) line_params <- function(x0, x1, y0, y1) { m <- (y1 - y0) / (x1 - x0) c <- y1 - m * x1 list("slope" = m, "intercept" = c) } secant <- function(f, x0, x1, ...) { line_params(x0, x1, f(x0, ...), f(x1, ...)) } geom_secant <- function(fun, x0, x1, ...) { params <- secant(fun, x0, x1) list(g...
/drafts/secant_lines.R
no_license
expersso/blog
R
false
false
592
r
library(tidyverse) line_params <- function(x0, x1, y0, y1) { m <- (y1 - y0) / (x1 - x0) c <- y1 - m * x1 list("slope" = m, "intercept" = c) } secant <- function(f, x0, x1, ...) { line_params(x0, x1, f(x0, ...), f(x1, ...)) } geom_secant <- function(fun, x0, x1, ...) { params <- secant(fun, x0, x1) list(g...
## AER::ivreg getSummary.ivreg <- function(obj, alpha = 0.05, ...) { ## extract summary object s <- summary(obj) ## coefficient matrix and confidence interval cf <- cbind(s$coefficients, confint(obj, level = 1 - alpha)) colnames(cf) <- c("est", "se", "stat", "p", "lwr", "upr") ## further summary statis...
/memisc/R/yy-mtable-ext-AchimZeileis.R
no_license
radfordneal/R-package-mods
R
false
false
5,845
r
## AER::ivreg getSummary.ivreg <- function(obj, alpha = 0.05, ...) { ## extract summary object s <- summary(obj) ## coefficient matrix and confidence interval cf <- cbind(s$coefficients, confint(obj, level = 1 - alpha)) colnames(cf) <- c("est", "se", "stat", "p", "lwr", "upr") ## further summary statis...
library(data.table) library(xlsx) library(psych) setwd("C:/Users/owner/Downloads") bb = read.xlsx(file = 'basketball.xlsx', sheetName = 'basketball', header = T) setnames(bb, c('X1', 'X2', 'X3', 'X4', 'X5'), c('ht', 'wt', 'fg', 'ft', 'pt')) #convert ht in feet to inches bb$ht <- bb$ht*12 #Basic statistics summary(...
/bball project part 1.R
no_license
rhh2wb/STAT-3080-Basketball-Final-Project
R
false
false
2,255
r
library(data.table) library(xlsx) library(psych) setwd("C:/Users/owner/Downloads") bb = read.xlsx(file = 'basketball.xlsx', sheetName = 'basketball', header = T) setnames(bb, c('X1', 'X2', 'X3', 'X4', 'X5'), c('ht', 'wt', 'fg', 'ft', 'pt')) #convert ht in feet to inches bb$ht <- bb$ht*12 #Basic statistics summary(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vosonSML.R \name{createTokenId} \alias{createTokenId} \title{Create a twitter auth token id} \usage{ createTokenId(cred) } \arguments{ \item{cred}{\pkg{vosonSML} twitter credential object.} } \value{ A token id as character string...
/man/createTokenId.Rd
no_license
cran/VOSONDash
R
false
true
457
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vosonSML.R \name{createTokenId} \alias{createTokenId} \title{Create a twitter auth token id} \usage{ createTokenId(cred) } \arguments{ \item{cred}{\pkg{vosonSML} twitter credential object.} } \value{ A token id as character string...
## ----interval-------------------------------------------- course_start <- as_date('2017-04-12') course_end <- as_date('2017-04-21') interval(course_start, course_end) ## ----overlapping intervals------------------------------- vacation_start <- as_date('2017-04-19') vacation_end <- as_date('2017-04-...
/handling-data-and-time-in-r/scripts/module-9.R
no_license
stghn/Free-Online-R-Courses
R
false
false
2,861
r
## ----interval-------------------------------------------- course_start <- as_date('2017-04-12') course_end <- as_date('2017-04-21') interval(course_start, course_end) ## ----overlapping intervals------------------------------- vacation_start <- as_date('2017-04-19') vacation_end <- as_date('2017-04-...
testlist <- list(Rs = numeric(0), atmp = c(9.53708019597101e-228, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(NA, NaN, NaN, -5.59219752033303e+72), temp = -Inf) result <- do.call(meteor:::ET0_Makkink,test...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615860707-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
337
r
testlist <- list(Rs = numeric(0), atmp = c(9.53708019597101e-228, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(NA, NaN, NaN, -5.59219752033303e+72), temp = -Inf) result <- do.call(meteor:::ET0_Makkink,test...
library(tidyverse) library(lubridate) library(magrittr) library(googlesheets) setwd("C:/Users/braym/Box Sync/Personal/JobScraper") # No work-around that I can find... this should be the only spot it's needed source(here::here("FL-Scraper.R")) source(here::here("ASA-Scraper.R")) # Update Google Sheet scrape.asa.post...
/Academic-Jobs-Update.R
no_license
mathieubray/JobScraper
R
false
false
2,186
r
library(tidyverse) library(lubridate) library(magrittr) library(googlesheets) setwd("C:/Users/braym/Box Sync/Personal/JobScraper") # No work-around that I can find... this should be the only spot it's needed source(here::here("FL-Scraper.R")) source(here::here("ASA-Scraper.R")) # Update Google Sheet scrape.asa.post...
## Assignement 2 R-programming - Coursera ## Caching the Inverse of a Matrix ## 2 functions that cache the inverse of a matrix, in order to avoid repeated computing. ## function that creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { m <- NULL set...
/cachematrix.R
no_license
gingerchip/ProgrammingAssignment2
R
false
false
1,461
r
## Assignement 2 R-programming - Coursera ## Caching the Inverse of a Matrix ## 2 functions that cache the inverse of a matrix, in order to avoid repeated computing. ## function that creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { m <- NULL set...
#Assignment4.2 #Question.1 x <- c('data.science.in.R','machine.learning.in.R') # • Replace the period character "." within each string with another character #i.e. "-" minus sign. x gsub("\\.",'_',x) #Question.2 x <- c('data.science.in.R','machine.learning.in.R') #Append again with "-" minus sign characte...
/Assignment4_2.R
no_license
VereDias/Assignment4.2
R
false
false
524
r
#Assignment4.2 #Question.1 x <- c('data.science.in.R','machine.learning.in.R') # • Replace the period character "." within each string with another character #i.e. "-" minus sign. x gsub("\\.",'_',x) #Question.2 x <- c('data.science.in.R','machine.learning.in.R') #Append again with "-" minus sign characte...
forward.adaptive <- function(data, params, dcc.true) { ### Data: ## int<lower=0> T; // time periods ## int<lower=0> N; // population ## int<lower=0> K; // # weather preds ## matrix[T, K] weather; ## real ii_init; // usually 0, so provide as known ### Parameters: ## // parameters ## vecto...
/seir-model/forward-0314-adaptive.R
no_license
openmodels/coronaclimate
R
false
false
4,367
r
forward.adaptive <- function(data, params, dcc.true) { ### Data: ## int<lower=0> T; // time periods ## int<lower=0> N; // population ## int<lower=0> K; // # weather preds ## matrix[T, K] weather; ## real ii_init; // usually 0, so provide as known ### Parameters: ## // parameters ## vecto...
##Átalakítás befektetéshez #hozam és szórásvektor meg van adva n = length(hozamok) Dmat = diag(szorasok) dvec = rep(0, n) Amat = cbind(hozamok, rep(1, n), diag(n)) r=colMeans(Amat) w1<-c() #befektetés h1<-sum(r*w1);h1 #k1<-sqrt(w1%*%cov(X)%*%w1);k1 k1<-sqrt(w1%*%Dmat)%*%w1);k1 ##vagy ide lehet hogy a kova...
/portfolio_atalakitas.r
no_license
raymileshun/rgyakok
R
false
false
347
r
##Átalakítás befektetéshez #hozam és szórásvektor meg van adva n = length(hozamok) Dmat = diag(szorasok) dvec = rep(0, n) Amat = cbind(hozamok, rep(1, n), diag(n)) r=colMeans(Amat) w1<-c() #befektetés h1<-sum(r*w1);h1 #k1<-sqrt(w1%*%cov(X)%*%w1);k1 k1<-sqrt(w1%*%Dmat)%*%w1);k1 ##vagy ide lehet hogy a kova...
# ------------------ Exploration ------------------------ # # Directories -------------------------------------------------------------- genDir<-"S:/quinonesa/Simulations/functionAprox/ActCrit/RBF" scriptDir<-"d:/quinonesa/learning_models_c++/RBF_funcAprox/" plotsdir<-"D:/quinonesa/Dropbox/Neuchatel/Results/functAprox...
/explor.R
no_license
andreseqp/RBF_funcAprox
R
false
false
14,536
r
# ------------------ Exploration ------------------------ # # Directories -------------------------------------------------------------- genDir<-"S:/quinonesa/Simulations/functionAprox/ActCrit/RBF" scriptDir<-"d:/quinonesa/learning_models_c++/RBF_funcAprox/" plotsdir<-"D:/quinonesa/Dropbox/Neuchatel/Results/functAprox...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc_fluorescence.R \name{sigma_Fvp_Fmp} \alias{sigma_Fvp_Fmp} \title{function to plot Sigma'/Sigma vs Fv'/Fm'/Fv/Fm} \usage{ sigma_Fvp_Fmp( sigmaPSII, sigmaPSIIp, Fo, Fop, Fm, Fp, Fmp, overlay = FALSE, pch = NULL, bg = NU...
/man/sigma_Fvp_Fmp.Rd
no_license
bmjesus/thejesus
R
false
true
805
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc_fluorescence.R \name{sigma_Fvp_Fmp} \alias{sigma_Fvp_Fmp} \title{function to plot Sigma'/Sigma vs Fv'/Fm'/Fv/Fm} \usage{ sigma_Fvp_Fmp( sigmaPSII, sigmaPSIIp, Fo, Fop, Fm, Fp, Fmp, overlay = FALSE, pch = NULL, bg = NU...
# == title # Wrapper of the Perl module ``Getopt::Long`` in R # # == param # -... Specification of options. The value can be a two-column matrix, a vector with even number of elements # or a text template. See the vignette for detailed explanation. # -help_head Head of the help message when invoking ``Rsc...
/R/get_options.R
no_license
cran/GetoptLong
R
false
false
15,054
r
# == title # Wrapper of the Perl module ``Getopt::Long`` in R # # == param # -... Specification of options. The value can be a two-column matrix, a vector with even number of elements # or a text template. See the vignette for detailed explanation. # -help_head Head of the help message when invoking ``Rsc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-CellTypeHierarchy.R \name{newCellTypeHierarchy} \alias{newCellTypeHierarchy} \alias{classifyCells} \alias{calculateMarkerSpecificity} \title{Classify cells according to a set of markers} \usage{ newCellTypeHierarchy() classifyCells(c...
/man/newCellTypeHierarchy.Rd
no_license
jlduan/monocle-release
R
false
true
7,786
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-CellTypeHierarchy.R \name{newCellTypeHierarchy} \alias{newCellTypeHierarchy} \alias{classifyCells} \alias{calculateMarkerSpecificity} \title{Classify cells according to a set of markers} \usage{ newCellTypeHierarchy() classifyCells(c...
###To Read and Clean up the data### household_power_consumption<-read.table('household_power_consumption.txt',sep=';', header=T, colClasses = rep('character',9)) #decide to set class in character because there might be '?' in the dataframe,...
/plot3.R
no_license
zylittlep/ExData_Plotting1
R
false
false
1,228
r
###To Read and Clean up the data### household_power_consumption<-read.table('household_power_consumption.txt',sep=';', header=T, colClasses = rep('character',9)) #decide to set class in character because there might be '?' in the dataframe,...
library(gamlss) ### Name: coef.gamlss ### Title: Extract Model Coefficients in a GAMLSS fitted model ### Aliases: coef.gamlss ### Keywords: regression ### ** Examples data(aids) h<-gamlss(y~poly(x,3)+qrt, family=PO, data=aids) # coef(h) rm(h)
/data/genthat_extracted_code/gamlss/examples/coef.gamlss.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
251
r
library(gamlss) ### Name: coef.gamlss ### Title: Extract Model Coefficients in a GAMLSS fitted model ### Aliases: coef.gamlss ### Keywords: regression ### ** Examples data(aids) h<-gamlss(y~poly(x,3)+qrt, family=PO, data=aids) # coef(h) rm(h)
#This code defines the model object for the Guatemala TB model described in the publication by Phillips, et al. #Same model object as in version labeled gtm_tb_first_half11_rssh_interaction #J. Ross July 29, 2020 model = ' # Linkage 1 = relationships between inputs and activities Firstline_Distributed_act_cumulat...
/impact_evaluation/gtm/models/gtm_tb_pub.R
no_license
ihmeuw/gf
R
false
false
2,694
r
#This code defines the model object for the Guatemala TB model described in the publication by Phillips, et al. #Same model object as in version labeled gtm_tb_first_half11_rssh_interaction #J. Ross July 29, 2020 model = ' # Linkage 1 = relationships between inputs and activities Firstline_Distributed_act_cumulat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.package.R \name{ATHGENEANNO} \alias{ATHGENEANNO} \alias{ATHGENGO} \title{Arabidopsis: gene annotation data} \description{ Both ATHGENEANNO and ATHGENGO are parsed from 'https://www.arabidopsis.org/download_files/GO_and_PO_Annotations/Gen...
/man/ATHGENEANNO.Rd
no_license
zgzhao/vizRNAseq
R
false
true
750
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.package.R \name{ATHGENEANNO} \alias{ATHGENEANNO} \alias{ATHGENGO} \title{Arabidopsis: gene annotation data} \description{ Both ATHGENEANNO and ATHGENGO are parsed from 'https://www.arabidopsis.org/download_files/GO_and_PO_Annotations/Gen...
#' prepareParameters4 #' #' @description #' Prepare and normalize the parameters for functions with x0, x1 and y0, y1 parameters #' #' @details #' This function prepares and normalizes the parameters for plotting functions #' with x0, x1, y0 and y1 parameters (as opposed to x and y) so functions can #' offer a r...
/R/prepareParameters4.R
no_license
abhijitcbio/karyoploteR
R
false
false
6,768
r
#' prepareParameters4 #' #' @description #' Prepare and normalize the parameters for functions with x0, x1 and y0, y1 parameters #' #' @details #' This function prepares and normalizes the parameters for plotting functions #' with x0, x1, y0 and y1 parameters (as opposed to x and y) so functions can #' offer a r...
throughput_time_log <- function(eventlog, units = "days") { stop_eventlog(eventlog) r <- throughput_time_case(eventlog, units = units) s <- summary(r$throughput_time) s <- c(s, St.Dev = sd(r$throughput_time)) s <- c(s, IQR = s[5] - s[2]) s <- c(s, tot = sum(r$throughput_time)) names(s) <- c("min","...
/R/throughput_time_log.R
no_license
bbrewington/edeaR
R
false
false
444
r
throughput_time_log <- function(eventlog, units = "days") { stop_eventlog(eventlog) r <- throughput_time_case(eventlog, units = units) s <- summary(r$throughput_time) s <- c(s, St.Dev = sd(r$throughput_time)) s <- c(s, IQR = s[5] - s[2]) s <- c(s, tot = sum(r$throughput_time)) names(s) <- c("min","...
#' Gets the height for an x-axis object #' #' A function that gets the height of an \code{\link[grid]{xaxisGrob}}. #' It is for some reason not included by default in the \pkg{grid}-package. #' #' @param x The \code{\link[grid]{xaxisGrob}} object #' @return \code{grid::unit} A \code{\link[grid]{unit}} object #' #' @exa...
/R/grid_helpers.R
no_license
gforge/forestplot
R
false
false
604
r
#' Gets the height for an x-axis object #' #' A function that gets the height of an \code{\link[grid]{xaxisGrob}}. #' It is for some reason not included by default in the \pkg{grid}-package. #' #' @param x The \code{\link[grid]{xaxisGrob}} object #' @return \code{grid::unit} A \code{\link[grid]{unit}} object #' #' @exa...
library("R2OpenBUGS") library("coda") library("lattice") library("reshape2") library("ggplot2") library("quantreg") library("RSQLite") library("twosamples") library("outliers") library("mixdist") # setprior is a function that prior cover fraction from a table and reformat them to be use in this script setprior <- func...
/BA_optim_CWT.r
no_license
Guillaume-Marie/R-script_African_biomass
R
false
false
8,649
r
library("R2OpenBUGS") library("coda") library("lattice") library("reshape2") library("ggplot2") library("quantreg") library("RSQLite") library("twosamples") library("outliers") library("mixdist") # setprior is a function that prior cover fraction from a table and reformat them to be use in this script setprior <- func...