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
## ---- message = FALSE, warning = FALSE---------------------------------------- library(ape) library(adephylo) library(phylobase) library(phylosignal) data(carni19) ## ----------------------------------------------------------------------------- tre <- read.tree(text = carni19$tre) ## -------------------------------...
/phylosignal/inst/doc/Demo_plots.R
no_license
akhikolla/Rcpp-TestPkgs-WebPages
R
false
false
3,119
r
## ---- message = FALSE, warning = FALSE---------------------------------------- library(ape) library(adephylo) library(phylobase) library(phylosignal) data(carni19) ## ----------------------------------------------------------------------------- tre <- read.tree(text = carni19$tre) ## -------------------------------...
testlist <- list(b = numeric(0), p1 = c(8.5728629954997e-312, 1.48571064469896e-72, 8.50408730081934e+144, 2.12530129086192e-42, 9.30116759388657e+225, 3.19860070393215e+129, -1.22227646714106e-150, -2.48280557433659e+258, -9.13799141996196e-296, -1.88918554334287e+52, -4.11215093765371e-273, -6.93132091139805e-107...
/metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615768435-test.R
permissive
akhikolla/updatedatatype-list3
R
false
false
887
r
testlist <- list(b = numeric(0), p1 = c(8.5728629954997e-312, 1.48571064469896e-72, 8.50408730081934e+144, 2.12530129086192e-42, 9.30116759388657e+225, 3.19860070393215e+129, -1.22227646714106e-150, -2.48280557433659e+258, -9.13799141996196e-296, -1.88918554334287e+52, -4.11215093765371e-273, -6.93132091139805e-107...
electrical_data <- read.csv("household_power_consumption.txt",sep=';',stringsAsFactors=FALSE) print(head(electrical_data)) electrical_data$date<-as.Date(electrical_data$Date,format="%d/%m/%Y") data<-electrical_data[electrical_data$Date %in% c("1/2/2007","2/2/2007"),] data$Global_active_power<-as.numeric(data$Global_...
/plot3.R
no_license
uit12345/ExData_Plotting1
R
false
false
1,011
r
electrical_data <- read.csv("household_power_consumption.txt",sep=';',stringsAsFactors=FALSE) print(head(electrical_data)) electrical_data$date<-as.Date(electrical_data$Date,format="%d/%m/%Y") data<-electrical_data[electrical_data$Date %in% c("1/2/2007","2/2/2007"),] data$Global_active_power<-as.numeric(data$Global_...
\name{vect2rast.SpatialPoints} \alias{vect2rast.SpatialPoints} \title{Converts points to rasters} \description{Converts object of class \code{"SpatialPoints*"} to a raster map, and (optional) writes it to an external file (GDAL-supported formats; it used the SAGA GIS format by default).} \usage{ vect2rast.SpatialPoints...
/plotKML/man/vect2rast.SpatialPoints.Rd
no_license
albrizre/spatstat.revdep
R
false
false
1,998
rd
\name{vect2rast.SpatialPoints} \alias{vect2rast.SpatialPoints} \title{Converts points to rasters} \description{Converts object of class \code{"SpatialPoints*"} to a raster map, and (optional) writes it to an external file (GDAL-supported formats; it used the SAGA GIS format by default).} \usage{ vect2rast.SpatialPoints...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mlPipelineAndAlgorithmFunctions.R \name{rfAlgorithm} \alias{rfAlgorithm} \title{RF algorithm function} \usage{ rfAlgorithm(Training_set, Prediction_set, Ntree, Mtry) } \arguments{ \item{Training_set}{data frame to train the network} \item{Pr...
/man/rfAlgorithm.Rd
no_license
Kanjali/stencilRfunctions
R
false
true
523
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mlPipelineAndAlgorithmFunctions.R \name{rfAlgorithm} \alias{rfAlgorithm} \title{RF algorithm function} \usage{ rfAlgorithm(Training_set, Prediction_set, Ntree, Mtry) } \arguments{ \item{Training_set}{data frame to train the network} \item{Pr...
#print("hello from 2") args <- commandArgs(trailingOnly = TRUE) #print(args) #print(arg1) #print(args[3]) #print(length(args)) #df_scr2 = read.table(args[3], header=TRUE) #print(df1) suma <- function(){ algo <- 1 sum(algo + algo) }
/test-r/test-launch-scripts/scr2.R
no_license
sergiocy/scripts-tests
R
false
false
247
r
#print("hello from 2") args <- commandArgs(trailingOnly = TRUE) #print(args) #print(arg1) #print(args[3]) #print(length(args)) #df_scr2 = read.table(args[3], header=TRUE) #print(df1) suma <- function(){ algo <- 1 sum(algo + algo) }
## R NOTES ## # Pound sign in front depicts notes. (Will de-activate a line of code) # %>% essentially means "then" - continuing a function to next operation. # df = dataframe - refers to your dataset that you are using, assuming it is named df # load packages library(tidyverse) library(readxl)...
/R/ts_rnotes.R
no_license
tylerstright/fins
R
false
false
1,409
r
## R NOTES ## # Pound sign in front depicts notes. (Will de-activate a line of code) # %>% essentially means "then" - continuing a function to next operation. # df = dataframe - refers to your dataset that you are using, assuming it is named df # load packages library(tidyverse) library(readxl)...
library(tidyverse) load("data/wybory.rda") # wybory_prez <- read_csv("data/wybory.csv") summary(wybory) # braki danych sd(wybory$percent_glosow_waznych, na.rm = TRUE) wybory_braki <- wybory %>% filter(!is.na(percent_glosow_waznych)) wybory_complete <- wybory %>% select(-w_tym_z_powodu_postawienia_znaku_x_w...
/podstawy_programowania/2021_2022/ppr20220122_przetwarzanie2.R
no_license
lwawrowski/cdv_bigdata
R
false
false
2,830
r
library(tidyverse) load("data/wybory.rda") # wybory_prez <- read_csv("data/wybory.csv") summary(wybory) # braki danych sd(wybory$percent_glosow_waznych, na.rm = TRUE) wybory_braki <- wybory %>% filter(!is.na(percent_glosow_waznych)) wybory_complete <- wybory %>% select(-w_tym_z_powodu_postawienia_znaku_x_w...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbx.R \name{dbxUpsert} \alias{dbxUpsert} \title{Upsert records} \usage{ dbxUpsert(conn, table, records, where_cols, batch_size = NULL) } \arguments{ \item{conn}{A DBIConnection object} \item{table}{The table name to upsert} \item{records}{A...
/man/dbxUpsert.Rd
no_license
gridl/dbx
R
false
true
681
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbx.R \name{dbxUpsert} \alias{dbxUpsert} \title{Upsert records} \usage{ dbxUpsert(conn, table, records, where_cols, batch_size = NULL) } \arguments{ \item{conn}{A DBIConnection object} \item{table}{The table name to upsert} \item{records}{A...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.directconnect_operations.R \name{create_connection} \alias{create_connection} \title{Creates a connection between a customer network and a specific AWS Direct Connect location} \usage{ create_connection(location, bandwidth, connectionNam...
/service/paws.directconnect/man/create_connection.Rd
permissive
CR-Mercado/paws
R
false
true
1,470
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.directconnect_operations.R \name{create_connection} \alias{create_connection} \title{Creates a connection between a customer network and a specific AWS Direct Connect location} \usage{ create_connection(location, bandwidth, connectionNam...
testlist <- list(testX = c(191493125665849920, 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, 0, 0, 0), trainX ...
/dann/inst/testfiles/calc_distance_C/AFL_calc_distance_C/calc_distance_C_valgrind_files/1609869454-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,199
r
testlist <- list(testX = c(191493125665849920, 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, 0, 0, 0), trainX ...
# Install packages if not exist package_list=c('data.table', 'gridExtra', 'ggplot2', 'cowplot', 'plyr', 'dplyr', 'grid', 'pracma') new_packages=package_list[!(package_list %in% installed.packages()[,'Package'])] if(length(new_packages)) install.packages(new_packages) # Load packages library(data.table) library(g...
/create_ptosis_output.R
no_license
RetinaTechnologies/data-visualization
R
false
false
5,688
r
# Install packages if not exist package_list=c('data.table', 'gridExtra', 'ggplot2', 'cowplot', 'plyr', 'dplyr', 'grid', 'pracma') new_packages=package_list[!(package_list %in% installed.packages()[,'Package'])] if(length(new_packages)) install.packages(new_packages) # Load packages library(data.table) library(g...
rm(list=ls(all=TRUE)) Metrics = read.csv("FilteredMartin.csv") vNames = c("1.0.0","1.0.0.0","1.0.0.1","1.0.0.1a","1.0.0.2","1.0.0.3","2.0.0.1","2.0.1") versions = c(vNames) A_values = c(Metrics$A) A = data.frame(versions, A_values) A_plot <- ggplot(data=A, aes(x = factor(A$versions), y = A$A_values, group=1)) + ...
/QRScanner/ExecutionTraceBased/MartinVisualization/Martin.r
no_license
Hareem-E-Sahar/Replication-Package-
R
false
false
1,415
r
rm(list=ls(all=TRUE)) Metrics = read.csv("FilteredMartin.csv") vNames = c("1.0.0","1.0.0.0","1.0.0.1","1.0.0.1a","1.0.0.2","1.0.0.3","2.0.0.1","2.0.1") versions = c(vNames) A_values = c(Metrics$A) A = data.frame(versions, A_values) A_plot <- ggplot(data=A, aes(x = factor(A$versions), y = A$A_values, group=1)) + ...
### Makeover Monday Week 19 2019 ### Bar Chart Race Gif # Load Libraries library(gganimate) library(janitor) library(gifski) library(dplyr) library(zoo) theme_set(theme_classic()) # Load Dataset df <- read.csv("https://query.data.world/s/u3stzqkmghigjrrzio7vyfzch4gqe5", header=TRUE, stringsAsFactors=FALSE) # Prepare...
/2019w19/mlb_chart_build.R
permissive
wjsutton/Makeover-Monday
R
false
false
4,181
r
### Makeover Monday Week 19 2019 ### Bar Chart Race Gif # Load Libraries library(gganimate) library(janitor) library(gifski) library(dplyr) library(zoo) theme_set(theme_classic()) # Load Dataset df <- read.csv("https://query.data.world/s/u3stzqkmghigjrrzio7vyfzch4gqe5", header=TRUE, stringsAsFactors=FALSE) # Prepare...
source('./parameters.R') options(dplyr.summarise.inform=F, width = 110) if(!exists("simData")) {simData <- readRDS("Data/simData.rds")} rhoList <- levels(simData$rho) shiftList <- levels(simData$shift) copulaList <- levels(simData$copula) iterations <- max(simData$iteration) size <- max(simData$N) Ncopula <- length(c...
/analysis.R
permissive
Heril/CopulaControl
R
false
false
2,633
r
source('./parameters.R') options(dplyr.summarise.inform=F, width = 110) if(!exists("simData")) {simData <- readRDS("Data/simData.rds")} rhoList <- levels(simData$rho) shiftList <- levels(simData$shift) copulaList <- levels(simData$copula) iterations <- max(simData$iteration) size <- max(simData$N) Ncopula <- length(c...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % SingleArrayUnitModel.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{SingleArrayUn...
/man/SingleArrayUnitModel.Rd
no_license
HenrikBengtsson/aroma.affymetrix
R
false
false
2,250
rd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % SingleArrayUnitModel.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{SingleArrayUn...
# Plot1 rm(list = ls(all = TRUE)) setwd("H:/2016_Samsung/Coursera_Video/Data Sciences/R_Exemples/Graphs") ###Download the zip file in Graphs folder download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile="H:/2016_Samsung/Coursera_Video/Data ...
/Plot1.R
no_license
bachsamir/ExData_Plotting1
R
false
false
1,495
r
# Plot1 rm(list = ls(all = TRUE)) setwd("H:/2016_Samsung/Coursera_Video/Data Sciences/R_Exemples/Graphs") ###Download the zip file in Graphs folder download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile="H:/2016_Samsung/Coursera_Video/Data ...
% Please edit documentation in R/shiny.R \name{tidy_app} \alias{tidy_app} \title{A Shiny app to format R code} \usage{ tidy_app() } \description{ This function calls \code{\link{tidy_source}()} to format R code in a Shiny app. The arguments of \code{tidy_source()} are presented in the app as input widgets such as check...
/man/tidy_app.Rd
no_license
badbye/formatR
R
false
false
381
rd
% Please edit documentation in R/shiny.R \name{tidy_app} \alias{tidy_app} \title{A Shiny app to format R code} \usage{ tidy_app() } \description{ This function calls \code{\link{tidy_source}()} to format R code in a Shiny app. The arguments of \code{tidy_source()} are presented in the app as input widgets such as check...
cols <- c("OZIP","D","F") dta <- c( "0",0.01,1, "0.000014",0.01,1, "0.0000305",0.01,1, "0000",0.01,2, "00000",0.01,1, "006463607",1,0.01, "00693",1,0.01, "00719",1,0.01, "00726-9324",1,0.01, "00820",2,0.01, "00907-2420",1,0.01, "00924-4073",0.01,1, "00926",1,2, "00926-5117",1,0.01, "00952-4055",1,0.01, "01060-1639",1,...
/zipps.R
no_license
aray6a/products
R
false
false
119,143
r
cols <- c("OZIP","D","F") dta <- c( "0",0.01,1, "0.000014",0.01,1, "0.0000305",0.01,1, "0000",0.01,2, "00000",0.01,1, "006463607",1,0.01, "00693",1,0.01, "00719",1,0.01, "00726-9324",1,0.01, "00820",2,0.01, "00907-2420",1,0.01, "00924-4073",0.01,1, "00926",1,2, "00926-5117",1,0.01, "00952-4055",1,0.01, "01060-1639",1,...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setinverse <- function(inverse) i...
/cachematrix.R
no_license
skoh5/ProgrammingAssignment2
R
false
false
789
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setinverse <- function(inverse) i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ISOFeatureOperation.R \docType{class} \name{ISOFeatureOperation} \alias{ISOFeatureOperation} \title{ISOFeatureOperation} \format{\code{\link{R6Class}} object.} \usage{ ISOFeatureOperation } \value{ Object of \code{\link{R6Class}} for modellin...
/man/ISOFeatureOperation.Rd
no_license
65MO/geometa
R
false
true
1,112
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ISOFeatureOperation.R \docType{class} \name{ISOFeatureOperation} \alias{ISOFeatureOperation} \title{ISOFeatureOperation} \format{\code{\link{R6Class}} object.} \usage{ ISOFeatureOperation } \value{ Object of \code{\link{R6Class}} for modellin...
poisson.MVlerouxCARdasmoothalpha <- function(formula, data=NULL, W, Y.region, weights, alpha, burnin, n.sample, thin=1, n.da, prior.mean.beta=NULL, prior.var.beta=NULL, prior.Sigma.df=NULL, prior.Sigma.scale=NULL, rho=NULL, MALA=FALSE, verbose=TRUE) { ############################################## #### Format the argu...
/poisson.MVlerouxCARdasmoothalpha.R
no_license
duncanplee/spatially-misaligned-count-data
R
false
false
15,800
r
poisson.MVlerouxCARdasmoothalpha <- function(formula, data=NULL, W, Y.region, weights, alpha, burnin, n.sample, thin=1, n.da, prior.mean.beta=NULL, prior.var.beta=NULL, prior.Sigma.df=NULL, prior.Sigma.scale=NULL, rho=NULL, MALA=FALSE, verbose=TRUE) { ############################################## #### Format the argu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cite_data.R \name{cite_climate_data} \alias{cite_climate_data} \title{Returns the references associated with the climate data used to fit the \code{pdfs}.} \usage{ cite_climate_data(x, verbose = TRUE) } \arguments{ \item{x}{A \code{\link{cres...
/man/cite_climate_data.Rd
permissive
mchevalier2/crestr
R
false
true
790
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cite_data.R \name{cite_climate_data} \alias{cite_climate_data} \title{Returns the references associated with the climate data used to fit the \code{pdfs}.} \usage{ cite_climate_data(x, verbose = TRUE) } \arguments{ \item{x}{A \code{\link{cres...
# Gibbs sampler for Hurricane Error Fields # LM2: Constant mean instead of landfall-location-specific mean # Steve Walsh Feb 2020 # pdf("pdf/Gibbs/GibbsSamplerHurrRegr_EMPBAYESIW_NA_GHG_sqrt.pdf") # remove(list=ls()) # load("NAM-Model-Validation/RData/par_optim_allbut43.RData") # rm(list=setdiff(ls(), c("par_optim")))...
/scripts/GibbsSamp_LM2.R
no_license
stevewalsh124/NAM-Model-Validation
R
false
false
17,137
r
# Gibbs sampler for Hurricane Error Fields # LM2: Constant mean instead of landfall-location-specific mean # Steve Walsh Feb 2020 # pdf("pdf/Gibbs/GibbsSamplerHurrRegr_EMPBAYESIW_NA_GHG_sqrt.pdf") # remove(list=ls()) # load("NAM-Model-Validation/RData/par_optim_allbut43.RData") # rm(list=setdiff(ls(), c("par_optim")))...
#' Generate numeric summaries #' #' Generates numeric summaries, removing missing values #' #' @param x The numeric data #' @param na.rm Should missing values be removed? #' #' @author Aimee Gott #' statSummary <- function(x, na.rm = TRUE){ xMean <- mean(x, na.rm = na.rm) xVar <- var(x, na.rm = na.rm) x...
/Packages/summaryTools/R/statSummary.R
no_license
R-forks-to-learn/Formal-Package-Development-Workshop
R
false
false
439
r
#' Generate numeric summaries #' #' Generates numeric summaries, removing missing values #' #' @param x The numeric data #' @param na.rm Should missing values be removed? #' #' @author Aimee Gott #' statSummary <- function(x, na.rm = TRUE){ xMean <- mean(x, na.rm = na.rm) xVar <- var(x, na.rm = na.rm) x...
print("coda") library(coda) samples = coda.samples(model, jags.params, n.iter=n.iter, n.chains=n.chains, n.adapt=n.burnin, thin=n.thin) #coda.samples ############################################################################ ss <- summary(samples) m <- ss$statistics[,...
/wrappers/coda.R
no_license
tkusmierczyk/pmf-jags
R
false
false
690
r
print("coda") library(coda) samples = coda.samples(model, jags.params, n.iter=n.iter, n.chains=n.chains, n.adapt=n.burnin, thin=n.thin) #coda.samples ############################################################################ ss <- summary(samples) m <- ss$statistics[,...
#' Convert Malaysian odds to Probabilities #' #' @param x A vector of Malaysian odds #' #' @return A vector of Probabilities #' #'@export #' #' @examples #' odds.malay2prob(c(1.93,2.05)) odds.malay2prob <- function (x) { prob <- x prob[] <- NA_real_ prob[which(x > 0 & x <= 1)] <- 1 / (1 + x[which(x > 0 & x <= 1)]...
/R/odds.malay2prob.R
no_license
cran/odds.converter
R
false
false
405
r
#' Convert Malaysian odds to Probabilities #' #' @param x A vector of Malaysian odds #' #' @return A vector of Probabilities #' #'@export #' #' @examples #' odds.malay2prob(c(1.93,2.05)) odds.malay2prob <- function (x) { prob <- x prob[] <- NA_real_ prob[which(x > 0 & x <= 1)] <- 1 / (1 + x[which(x > 0 & x <= 1)]...
#'@title Maximum Likelihood Fit of the BMT Distribution to Non-censored Data. #' #'@description Fit of the BMT distribution to non-censored data by maximum #' likelihood estimation (mle). #' #'@rdname BMTfit.mle #'@name BMTfit.mle #' #'@details This function is not intended to be called directly but is ...
/R/BMTfit.mle.R
no_license
cran/BMT
R
false
false
9,158
r
#'@title Maximum Likelihood Fit of the BMT Distribution to Non-censored Data. #' #'@description Fit of the BMT distribution to non-censored data by maximum #' likelihood estimation (mle). #' #'@rdname BMTfit.mle #'@name BMTfit.mle #' #'@details This function is not intended to be called directly but is ...
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variables) required to compute the correlation be...
/corr.r
no_license
anilhardageri/datasciencecoursera
R
false
false
748
r
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variables) required to compute the correlation be...
# lm_eqn # Function to displaying R2 on ggplot lm_eqn = function(m){ l <- list(a = format(coef(m)[1], digits = 2), b = format(abs(coef(m)[2]), digits = 2), r2 = format(summary(m)$r.squared, digits = 3)); if(coef(m)[2] >= 0){ eq <- substitute(italic(y) == a + b %.% ...
/code/functions/lm_R2_equation_ggplot.R
no_license
ksirving/asci_ffm_2019
R
false
false
514
r
# lm_eqn # Function to displaying R2 on ggplot lm_eqn = function(m){ l <- list(a = format(coef(m)[1], digits = 2), b = format(abs(coef(m)[2]), digits = 2), r2 = format(summary(m)$r.squared, digits = 3)); if(coef(m)[2] >= 0){ eq <- substitute(italic(y) == a + b %.% ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cyjShiny.R \name{renderCyjShiny} \alias{renderCyjShiny} \title{More shiny plumbing - a cyjShiny wrapper for htmlwidget standard rendering operation} \usage{ renderCyjShiny(expr, env = parent.frame(), quoted = FALSE) } \arguments{ \item{expr}...
/man/renderCyjShiny.Rd
permissive
mw201608/cyjShiny
R
false
true
660
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cyjShiny.R \name{renderCyjShiny} \alias{renderCyjShiny} \title{More shiny plumbing - a cyjShiny wrapper for htmlwidget standard rendering operation} \usage{ renderCyjShiny(expr, env = parent.frame(), quoted = FALSE) } \arguments{ \item{expr}...
ggROC = function(df, facetName, groupName = "grp", predName = "res") { require(plyr) require(ggplot2) df = df[complete.cases(df),] plotdata = ddply(df, facetName, function(x) data.frame(roc(x[,groupName], x[,predName])[c("sensitivities", "specifi...
/R/ggROC.R
permissive
hbc/CHBUtils
R
false
false
537
r
ggROC = function(df, facetName, groupName = "grp", predName = "res") { require(plyr) require(ggplot2) df = df[complete.cases(df),] plotdata = ddply(df, facetName, function(x) data.frame(roc(x[,groupName], x[,predName])[c("sensitivities", "specifi...
data <- read.csv("C:\\Users\\user\\Desktop\\R\\iris.csv") summary(data) m <- lm(cbind(data$sepal_length,data$sepal_width) ~ data$petal_length + data$petal_width) summary(m) mm <- manova(m) mm summary(mm)
/Assignment4/MultivariateRegression.R
no_license
Krithikap019/Data-Analytics
R
false
false
213
r
data <- read.csv("C:\\Users\\user\\Desktop\\R\\iris.csv") summary(data) m <- lm(cbind(data$sepal_length,data$sepal_width) ~ data$petal_length + data$petal_width) summary(m) mm <- manova(m) mm summary(mm)
source('Functions.R', chdir = TRUE) x=c(-300, -200, -100, 0, 100, 200, 300); y=c(-20, -10, -10, 10, 5, 5, 20); resultExercise2 <- exercise2Enhanced(x, y, 400, 60) resultExercise2
/Homework3/Exercise2-Enhanced.R
no_license
buzduganalex1/Special-Chapters-on-Artificial-Intelligence
R
false
false
182
r
source('Functions.R', chdir = TRUE) x=c(-300, -200, -100, 0, 100, 200, 300); y=c(-20, -10, -10, 10, 5, 5, 20); resultExercise2 <- exercise2Enhanced(x, y, 400, 60) resultExercise2
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{segRESTREND} \alias{segRESTREND} \title{Data frame containing the annual data for a segRESTREND analysis} \format{R data frame} \source{ \code{\link[gimms]{gimms-package}} } \usage{ segRESTREND } \desc...
/TSS.RESTREND/man/segRESTREND.Rd
permissive
fdbesanto2/TSSRESTREND
R
false
true
462
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{segRESTREND} \alias{segRESTREND} \title{Data frame containing the annual data for a segRESTREND analysis} \format{R data frame} \source{ \code{\link[gimms]{gimms-package}} } \usage{ segRESTREND } \desc...
library(palinsol) ### Name: Insol ### Title: Computes incoming solar radiation (insolation) ### Aliases: Insol ### Keywords: misc ### ** Examples ## make a little wrapper, with all default values insolation <- function(times, astrosol=ber78,...) sapply(times, function(tt) Insol(orbit=astrosol(tt))) tts <- seq(...
/data/genthat_extracted_code/palinsol/examples/Insol.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
411
r
library(palinsol) ### Name: Insol ### Title: Computes incoming solar radiation (insolation) ### Aliases: Insol ### Keywords: misc ### ** Examples ## make a little wrapper, with all default values insolation <- function(times, astrosol=ber78,...) sapply(times, function(tt) Insol(orbit=astrosol(tt))) tts <- seq(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/treemap.R \name{hgch_treemap_CatNum} \alias{hgch_treemap_CatNum} \title{Treemap density by numeric variable} \usage{ hgch_treemap_CatNum(data, title = NULL, subtitle = NULL, caption = NULL, minColor = "#E63917", maxColor = "#18941E", back_c...
/man/hgch_treemap_CatNum.Rd
no_license
isciolab/hgchmagic
R
false
true
613
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/treemap.R \name{hgch_treemap_CatNum} \alias{hgch_treemap_CatNum} \title{Treemap density by numeric variable} \usage{ hgch_treemap_CatNum(data, title = NULL, subtitle = NULL, caption = NULL, minColor = "#E63917", maxColor = "#18941E", back_c...
#' @importFrom stats rbinom runif pnorm setNames coef rnbinom vcov simulate update #' rnorm rpois sd sigma terms time reshape #' @importFrom stats na.omit #' @importFrom utils data head tail write.csv zip #' @importFrom methods new .onAttach = function(...) { if (!interactive()) return() msg = "Welcome to ...
/R/zzz.R
permissive
OpenSDP/OpenSDPsynthR
R
false
false
2,797
r
#' @importFrom stats rbinom runif pnorm setNames coef rnbinom vcov simulate update #' rnorm rpois sd sigma terms time reshape #' @importFrom stats na.omit #' @importFrom utils data head tail write.csv zip #' @importFrom methods new .onAttach = function(...) { if (!interactive()) return() msg = "Welcome to ...
#Resilience #K. Wiese September 2018 ######################## Resilience <- function(NANOprev, TANO, SPEI, NANO){ Input <- stack(NANOprev, TANO, SPEI, NANO)#stack all raster variables tsl <- dim(NANO)[3] #time series length #Resilience Beta coeficient, NANO - 1 funBeta <- function(x) { if (is.na(x[1])){ NA } ...
/R/Resilience.R
no_license
klauswiese/Forward
R
false
false
1,316
r
#Resilience #K. Wiese September 2018 ######################## Resilience <- function(NANOprev, TANO, SPEI, NANO){ Input <- stack(NANOprev, TANO, SPEI, NANO)#stack all raster variables tsl <- dim(NANO)[3] #time series length #Resilience Beta coeficient, NANO - 1 funBeta <- function(x) { if (is.na(x[1])){ NA } ...
#' Plot the response probabilities for all observations as a heatmap #' #' This function plots the response probabilities from a model fit as a #' heatmap with additional options for sorting and filtering both axes. #' #' @param result The BAMBAResult object. #' @param xorderTable A \code{data.frame} with all ag/re/tp...
/R/response_heatmap_custom.r
no_license
RGLab/BAMBA
R
false
false
4,858
r
#' Plot the response probabilities for all observations as a heatmap #' #' This function plots the response probabilities from a model fit as a #' heatmap with additional options for sorting and filtering both axes. #' #' @param result The BAMBAResult object. #' @param xorderTable A \code{data.frame} with all ag/re/tp...
library('SummarizedExperiment') library('recount') library('ggplot2') ## Load files projects <- c('sra', 'TCGA', 'SRP012682') rse <- lapply(projects, function(project) { load(paste0('rse_', project, '.Rdata')) ## Scale counts result <- scale_counts(rse, round = FALSE) return(result) }) projects <-...
/IGHwindows/explore_windows_counts.R
no_license
LieberInstitute/insp
R
false
false
2,463
r
library('SummarizedExperiment') library('recount') library('ggplot2') ## Load files projects <- c('sra', 'TCGA', 'SRP012682') rse <- lapply(projects, function(project) { load(paste0('rse_', project, '.Rdata')) ## Scale counts result <- scale_counts(rse, round = FALSE) return(result) }) projects <-...
library(quantmod) library(lubridate) library(ggplot2) library(gridExtra) Sys.setlocale("LC_TIME", "C") getSymbols(c("GOOG", "AMZN", "AAPL", "NFLX", "FB", "MSFT"), env = .GlobalEnv, from="2017-01-01") getSymbols("SPY", env = .GlobalEnv, from="2017-01-01") FANG <- data.frame(GOOG[,"GOOG.Close"] + AMZN[,"AMZN.Close"]...
/derived/FANG_Index.R
no_license
JMFlin/trading-analytics
R
false
false
1,476
r
library(quantmod) library(lubridate) library(ggplot2) library(gridExtra) Sys.setlocale("LC_TIME", "C") getSymbols(c("GOOG", "AMZN", "AAPL", "NFLX", "FB", "MSFT"), env = .GlobalEnv, from="2017-01-01") getSymbols("SPY", env = .GlobalEnv, from="2017-01-01") FANG <- data.frame(GOOG[,"GOOG.Close"] + AMZN[,"AMZN.Close"]...
#' Extreme Heat Exposure (EHE) #' #' @description Extreme Heat Exposure (EHE). Useful for climatic risks assessement on wheat and barley. #' @param mx vector of daily maximum temperature series. #' @param dates vector of dates corresponding with daily temprature series #' @param op character. Indicates whether the outp...
/R/ehe.R
no_license
cran/agroclim
R
false
false
2,697
r
#' Extreme Heat Exposure (EHE) #' #' @description Extreme Heat Exposure (EHE). Useful for climatic risks assessement on wheat and barley. #' @param mx vector of daily maximum temperature series. #' @param dates vector of dates corresponding with daily temprature series #' @param op character. Indicates whether the outp...
################################################################################################################### # Code for simulating detection-nondetection data for 30 regional monitoring transects # ########################################################################################...
/02-Sims_rSPACE_R6.R
no_license
qureshlatif/WHWO-Regional-monitoring-simulation-project
R
false
false
3,925
r
################################################################################################################### # Code for simulating detection-nondetection data for 30 regional monitoring transects # ########################################################################################...
context("Check misc functions...") testthat::test_that("Checking is.wholenumber..", { testthat::expect_equal( is.wholenumber(x=1), TRUE, info = "is.wholenumber failed") }) testthat::test_that("Checking isNumeric..", { testthat::expect_equal( isNumeric(x=1), TRUE, info = "isNumeric failed") }) test...
/tests/testthat/test-misc_func.R
no_license
daniel1noble/metaDigitise
R
false
false
4,703
r
context("Check misc functions...") testthat::test_that("Checking is.wholenumber..", { testthat::expect_equal( is.wholenumber(x=1), TRUE, info = "is.wholenumber failed") }) testthat::test_that("Checking isNumeric..", { testthat::expect_equal( isNumeric(x=1), TRUE, info = "isNumeric failed") }) test...
context("repositories") # SETUP ------------------------------------------------------------------------ suffix <- sample(letters, 10, replace = TRUE) %>% str_c(collapse = "") setup(suppressMessages({ create_team( name = str_c("test-repositories-", suffix), org = "HairyCoos", descripti...
/tests/testthat/test-repositories.R
permissive
jfontestad/githapi
R
false
false
24,601
r
context("repositories") # SETUP ------------------------------------------------------------------------ suffix <- sample(letters, 10, replace = TRUE) %>% str_c(collapse = "") setup(suppressMessages({ create_team( name = str_c("test-repositories-", suffix), org = "HairyCoos", descripti...
# Leaving the code used to derive the hr_NHDPlusFlowline layer in sugar creek gpkg # matched <- readr::read_csv("../../HU12_NHD/out/report/matched.csv") # # src_gpkg <- system.file("gpkg/sugar_creek_fort_mill.gpkg", package = "hygeo") # # fline <- nhdplusTools::align_nhdplus_names(sf::read_sf(src_gpkg, "NHDFlowline_Net...
/inst/gpkg/mr_hr_crosswalk_pull.R
permissive
dblodgett-usgs/hygeo
R
false
false
1,013
r
# Leaving the code used to derive the hr_NHDPlusFlowline layer in sugar creek gpkg # matched <- readr::read_csv("../../HU12_NHD/out/report/matched.csv") # # src_gpkg <- system.file("gpkg/sugar_creek_fort_mill.gpkg", package = "hygeo") # # fline <- nhdplusTools::align_nhdplus_names(sf::read_sf(src_gpkg, "NHDFlowline_Net...
testlist <- list(a = 2.01456375923297e-314, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
/BayesMRA/inst/testfiles/rmvn_arma_scalar/AFL_rmvn_arma_scalar/rmvn_arma_scalar_valgrind_files/1615926022-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
117
r
testlist <- list(a = 2.01456375923297e-314, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_aes.R \name{create_aes} \alias{create_aes} \title{Create Aes Mapping from a List} \usage{ create_aes(.list, parse = FALSE) } \arguments{ \item{.list}{a list of aesthetic arguments; for example .list = list(x = "dose", y = "len", color ...
/man/create_aes.Rd
no_license
earcanal/ggpubr
R
false
true
804
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_aes.R \name{create_aes} \alias{create_aes} \title{Create Aes Mapping from a List} \usage{ create_aes(.list, parse = FALSE) } \arguments{ \item{.list}{a list of aesthetic arguments; for example .list = list(x = "dose", y = "len", color ...
\name{heights} \alias{heights} \alias{heights.cover} \alias{heights.incidence} \alias{height.poset} \title{ Heights } \description{ The function computes the vector of heights of poset elements. } \usage{ heights(z) } \arguments{ \item{z}{ an object of class \code{cover}, \code{incidence} or \code...
/man/heights.Rd
no_license
cran/parsec
R
false
false
434
rd
\name{heights} \alias{heights} \alias{heights.cover} \alias{heights.incidence} \alias{height.poset} \title{ Heights } \description{ The function computes the vector of heights of poset elements. } \usage{ heights(z) } \arguments{ \item{z}{ an object of class \code{cover}, \code{incidence} or \code...
################################################################################ #' Convert to a tibble of the n first/last elements. #' #' @param x A [FDF][FDF-class]. #' @param ... Not used. #' @param n A single positive integer. #' #' @importFrom utils head #' @export #' @method head FDF #' #' @include filter.R #' ...
/R/head-tail.R
no_license
privefl/bigdfr
R
false
false
1,326
r
################################################################################ #' Convert to a tibble of the n first/last elements. #' #' @param x A [FDF][FDF-class]. #' @param ... Not used. #' @param n A single positive integer. #' #' @importFrom utils head #' @export #' @method head FDF #' #' @include filter.R #' ...
testlist <- list(a = 0L, b = 0L, x = c(3079936L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610130999-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
313
r
testlist <- list(a = 0L, b = 0L, x = c(3079936L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
library(CodeClanData) library(dplyr) library(ggplot2) library(shiny) library(data.table) library(shinythemes) library(gganimate) ui <- fluidPage( theme = shinytheme("sandstone"), titlePanel(tags$b("Video Games 1988-2018")), tabsetPanel( tabPanel( "Find Gam...
/week_05/weekend/shiny_weekend_homework/app.R
no_license
C-Power1/codeclan_homework_ConorPower
R
false
false
5,443
r
library(CodeClanData) library(dplyr) library(ggplot2) library(shiny) library(data.table) library(shinythemes) library(gganimate) ui <- fluidPage( theme = shinytheme("sandstone"), titlePanel(tags$b("Video Games 1988-2018")), tabsetPanel( tabPanel( "Find Gam...
#This is a function which computes the correlation of two columns of data #for each data set in a directory. corr <- function(directory, threshold = 0){ file_list <- list.files(directory, full.names=TRUE) correlation <- vector(mode = "numeric", length = 0) j <- 0 for(i in 1:332){ ...
/corr.R
no_license
hymno/data_science_coursera
R
false
false
803
r
#This is a function which computes the correlation of two columns of data #for each data set in a directory. corr <- function(directory, threshold = 0){ file_list <- list.files(directory, full.names=TRUE) correlation <- vector(mode = "numeric", length = 0) j <- 0 for(i in 1:332){ ...
library(tidyverse) library(latex2exp) setwd('~/Documents/paper2/bla') ################################ # Data Collection ################################ collect_blas <- function (runtime, infile, state, location, solvent){ data <- read_csv(infile, col_names = FALSE) nsteps <- ncol(data) - 1 time_labels <- (0:...
/Paper2/plot_funcs/bla.R
no_license
PotentialParadox/potentialparadox.github.io
R
false
false
4,323
r
library(tidyverse) library(latex2exp) setwd('~/Documents/paper2/bla') ################################ # Data Collection ################################ collect_blas <- function (runtime, infile, state, location, solvent){ data <- read_csv(infile, col_names = FALSE) nsteps <- ncol(data) - 1 time_labels <- (0:...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/utilities.R \name{rollingMean} \alias{rollingMean} \title{Calculate rollingMean values} \usage{ rollingMean(mydata, pollutant = "o3", width = 8, new.name = "rolling", data.thresh = 75, align = "centre", ...) } \arguments{ \item{myda...
/man/rollingMean.Rd
no_license
antoniopessotti/openair
R
false
false
2,424
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/utilities.R \name{rollingMean} \alias{rollingMean} \title{Calculate rollingMean values} \usage{ rollingMean(mydata, pollutant = "o3", width = 8, new.name = "rolling", data.thresh = 75, align = "centre", ...) } \arguments{ \item{myda...
#' Load Application Default Credentials #' #' Loads credentials from a file identified via a search strategy known as #' Application Default Credentials (ADC). The hope is to make auth "just work" #' for someone working on Google-provided infrastructure or who has used Google #' tooling to get started. A sequence of pa...
/R/credentials_app_default.R
permissive
MarkEdmondson1234/gargle
R
false
false
3,754
r
#' Load Application Default Credentials #' #' Loads credentials from a file identified via a search strategy known as #' Application Default Credentials (ADC). The hope is to make auth "just work" #' for someone working on Google-provided infrastructure or who has used Google #' tooling to get started. A sequence of pa...
# Empirical survival ------------------------------------------------------ source('lib/reload.R'); reload() load('data/rda/study_info.rda') load('data/rda/KM_digitized.rda') load('data/rda/KM2IPD.rda') id_developed <- study_info$pubID[study_info$Developed=='Developed'] id_developing <- study_info$pubID[study_info$De...
/EmpiricalSurvivalEstimatesKM.R
permissive
webbedfeet/LupusDeath
R
false
false
1,764
r
# Empirical survival ------------------------------------------------------ source('lib/reload.R'); reload() load('data/rda/study_info.rda') load('data/rda/KM_digitized.rda') load('data/rda/KM2IPD.rda') id_developed <- study_info$pubID[study_info$Developed=='Developed'] id_developing <- study_info$pubID[study_info$De...
##Downloaded files filename= "exdata_data_household_power_consumption.zip" if(!file.exists("exdata_data_household_power_consumption")){ unzip(filename) } ##Read data data<-read.table("./exdata_data_household_power_consumption/household_power_consumption.txt" , header = T, sep=";" ...
/plot2.R
no_license
sowmyamohan13/ExData_Plotting1
R
false
false
789
r
##Downloaded files filename= "exdata_data_household_power_consumption.zip" if(!file.exists("exdata_data_household_power_consumption")){ unzip(filename) } ##Read data data<-read.table("./exdata_data_household_power_consumption/household_power_consumption.txt" , header = T, sep=";" ...
## Calculate attributable fraction of Hib ## ######################################################################################################## ## Prep ## ######################################################################################################## library(metafor) library(matrixStats) library(plyr) ...
/gbd_2019/nonfatal_code/lri/Etiologies/Hib/calculate_hib_paf.R
no_license
Nermin-Ghith/ihme-modeling
R
false
false
12,225
r
## Calculate attributable fraction of Hib ## ######################################################################################################## ## Prep ## ######################################################################################################## library(metafor) library(matrixStats) library(plyr) ...
#' Set up a \pkg{basilisk} environments #' #' Set up a Python conda environment for isolated execution of Python code with appropriate versions of all Python packages. #' #' @param envpath String containing the path to the environment to use. #' @param packages Character vector containing the names of conda packages ...
/R/setupBasiliskEnv.R
no_license
kieranrcampbell/basilisk
R
false
false
4,800
r
#' Set up a \pkg{basilisk} environments #' #' Set up a Python conda environment for isolated execution of Python code with appropriate versions of all Python packages. #' #' @param envpath String containing the path to the environment to use. #' @param packages Character vector containing the names of conda packages ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user_predict.R \name{user_predict} \alias{user_predict} \title{Generate Predictions for 1 User} \usage{ user_predict(user, user_similarities, ratings_wide, predict_n) } \arguments{ \item{user}{An existing or new user denoted by their unique U...
/cf/man/user_predict.Rd
no_license
apentz/assign1
R
false
true
1,364
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user_predict.R \name{user_predict} \alias{user_predict} \title{Generate Predictions for 1 User} \usage{ user_predict(user, user_similarities, ratings_wide, predict_n) } \arguments{ \item{user}{An existing or new user denoted by their unique U...
library(seqinr) library(stringr) library(readr) peptide_df_gen <- function(protein_fasta, peptide_file, group = 'default'){ protein_seq_list <- read.fasta(protein_fasta, seqtype = 'AA', seqonly = TRUE) protein_seq <- protein_seq_list[[1]] peptides <- read_csv(peptide_file, col_name...
/peptide_mapping_to_protein.R
no_license
weaversd/MUC16_glycosylation_R
R
false
false
2,066
r
library(seqinr) library(stringr) library(readr) peptide_df_gen <- function(protein_fasta, peptide_file, group = 'default'){ protein_seq_list <- read.fasta(protein_fasta, seqtype = 'AA', seqonly = TRUE) protein_seq <- protein_seq_list[[1]] peptides <- read_csv(peptide_file, col_name...
library(party) ## for cforest library(caret) ## preprocessing data <- read.csv("../data/NIHMS53736-supplement-9.csv") str(data) data$Cell <- sapply(as.character(data$Cell), function(x) substr(x,1,nchar(x)-3)) data$Cell <- as.factor(data$Cell) ####################################################...
/machineLearning/randomForest.R
no_license
caramirezal/dataScience
R
false
false
11,570
r
library(party) ## for cforest library(caret) ## preprocessing data <- read.csv("../data/NIHMS53736-supplement-9.csv") str(data) data$Cell <- sapply(as.character(data$Cell), function(x) substr(x,1,nchar(x)-3)) data$Cell <- as.factor(data$Cell) ####################################################...
as_integer_tensor <- function(x, dtype = tf$int64) { # recurse over lists if (is.list(x) || (is.numeric(x) && length(x) > 1)) lapply(x, function(elem) as_integer_tensor(elem, dtype)) else if (is.null(x)) x else if (is_tensor(x)) tensor_value(tf$cast(x, dtype = dtype)) else tensor_value(tf$c...
/R/utils.R
no_license
stjordanis/tfdatasets
R
false
false
2,127
r
as_integer_tensor <- function(x, dtype = tf$int64) { # recurse over lists if (is.list(x) || (is.numeric(x) && length(x) > 1)) lapply(x, function(elem) as_integer_tensor(elem, dtype)) else if (is.null(x)) x else if (is_tensor(x)) tensor_value(tf$cast(x, dtype = dtype)) else tensor_value(tf$c...
H.6 <- matrix(rbind(diag(3), c(0, 0, 0), c(0, 0, 0)), nrow=5, ncol=3) H6 <- summary(bh6lrtest(z = H1, H = H.6, r = 2, r1 = 1))
/vars/book-ex/Rcode-8-6.R
permissive
solgenomics/R_libs
R
false
false
169
r
H.6 <- matrix(rbind(diag(3), c(0, 0, 0), c(0, 0, 0)), nrow=5, ncol=3) H6 <- summary(bh6lrtest(z = H1, H = H.6, r = 2, r1 = 1))
#check if data from 2007-02-01 and 2007-02-02 are already stored in the "subpower" table in R if(!exists("subpower")) { #check if the "powert" table with all the power data is already stored in R if(!exists("powert")) { #check if the external file with power data has been downloaded into the working directory i...
/checkfiles.R
no_license
aventurine/ExData_Plotting1
R
false
false
1,216
r
#check if data from 2007-02-01 and 2007-02-02 are already stored in the "subpower" table in R if(!exists("subpower")) { #check if the "powert" table with all the power data is already stored in R if(!exists("powert")) { #check if the external file with power data has been downloaded into the working directory i...
require(ggplot2) require(dplyr) require(tidyr) require(xtable) mytheme = theme_bw() + theme(text = element_text(family="Times",size=14),axis.text.x = element_text(angle =45,hjust = 1)) data = read.table("data_distance.txt",header=T) glimpse(data) data$distance = as.numeric(data$distance) # Make a graph ! pdf("di...
/stat_distance.R
no_license
loire/dilectus_pumillo_dufour
R
false
false
961
r
require(ggplot2) require(dplyr) require(tidyr) require(xtable) mytheme = theme_bw() + theme(text = element_text(family="Times",size=14),axis.text.x = element_text(angle =45,hjust = 1)) data = read.table("data_distance.txt",header=T) glimpse(data) data$distance = as.numeric(data$distance) # Make a graph ! pdf("di...
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # Master's Thesis - Remote Sensing % # Environmental Engineering - ISA/UL - Lisbon, Portugal % # (c) 2014 by Jonas Schmedtmann & Manuel Campagnolo % # % # MAIN SCRIPT ...
/main.R
no_license
sharath747/crop-identification-cap
R
false
false
24,474
r
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # Master's Thesis - Remote Sensing % # Environmental Engineering - ISA/UL - Lisbon, Portugal % # (c) 2014 by Jonas Schmedtmann & Manuel Campagnolo % # % # MAIN SCRIPT ...
library(ggplot2) NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") coal <- grepl("coal", SCC$SCC.Level.Four, ignore.case=TRUE) combustion <- grepl("comb", SCC$SCC.Level.One, ignore.case=TRUE) coal_combustion <- (combustion & coal) SCC_combustion <- SCC[coal_combustion,]$SCC NEI_...
/plot4.R
no_license
wyassue/exploratory-data-analysis-week4
R
false
false
730
r
library(ggplot2) NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") coal <- grepl("coal", SCC$SCC.Level.Four, ignore.case=TRUE) combustion <- grepl("comb", SCC$SCC.Level.One, ignore.case=TRUE) coal_combustion <- (combustion & coal) SCC_combustion <- SCC[coal_combustion,]$SCC NEI_...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/plotLon.R \docType{methods} \name{plotLon,Movement-method} \alias{plotLon,Movement-method} \title{Longitude plot for a Movement reference class object} \usage{ \S4method{plotLon}{Movement}(object, plotArgs = list(), args = list(), a...
/man/plotLon-Movement-method.Rd
no_license
dsjohnson/argosTrack
R
false
false
983
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/plotLon.R \docType{methods} \name{plotLon,Movement-method} \alias{plotLon,Movement-method} \title{Longitude plot for a Movement reference class object} \usage{ \S4method{plotLon}{Movement}(object, plotArgs = list(), args = list(), a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GetSlopes.R \name{getSlopes} \alias{getSlopes} \title{Estimate gene specific count-depth relationships} \usage{ getSlopes( Data, SeqDepth = 0, Tau = 0.5, FilterCellNum = 10, ditherCounts = FALSE ) } \arguments{ \item{Data}{matrix of...
/man/getSlopes.Rd
no_license
rhondabacher/SCnorm
R
false
true
1,245
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GetSlopes.R \name{getSlopes} \alias{getSlopes} \title{Estimate gene specific count-depth relationships} \usage{ getSlopes( Data, SeqDepth = 0, Tau = 0.5, FilterCellNum = 10, ditherCounts = FALSE ) } \arguments{ \item{Data}{matrix of...
brownian.motion.variance <- function(n.locs, time.lag, location.error, x, y, max.lag){ #Creating NULL vectors to store data T.jump <- alpha <- ztz <- ob <- loc.error.1 <- loc.error.2 <- NULL i <- 2 while(i < n.locs){ if((time.lag[i]+time.lag[i-1])/2 >= max.lag) { i = i + 1 } else { ...
/R/brownian.motion.variance.R
no_license
cran/BBMM
R
false
false
1,115
r
brownian.motion.variance <- function(n.locs, time.lag, location.error, x, y, max.lag){ #Creating NULL vectors to store data T.jump <- alpha <- ztz <- ob <- loc.error.1 <- loc.error.2 <- NULL i <- 2 while(i < n.locs){ if((time.lag[i]+time.lag[i-1])/2 >= max.lag) { i = i + 1 } else { ...
## library(exactRankTests) setwd('/gpfs/group/su/lhgioia/map/') ## allen.dat <- read.table('data/allen/tpm_matrix.csv',sep=',',header=T) ## var.genes <- readRDS('results/allen/variable_genes_log_4k.RDS') ## allen.dat <- allen.dat[,var.genes] ## saveRDS(allen.dat,'data/allen/allen_tpm_variable_genes_log_4k.RDS') alle...
/src/allen/markers/wilcox_louvain_markers.R
no_license
SuLab/expression_map
R
false
false
3,744
r
## library(exactRankTests) setwd('/gpfs/group/su/lhgioia/map/') ## allen.dat <- read.table('data/allen/tpm_matrix.csv',sep=',',header=T) ## var.genes <- readRDS('results/allen/variable_genes_log_4k.RDS') ## allen.dat <- allen.dat[,var.genes] ## saveRDS(allen.dat,'data/allen/allen_tpm_variable_genes_log_4k.RDS') alle...
#' Map BCU Indicator #' #' Produce a satellite map for a BCU, along with the values for a supplied indicator. #' #' @param bcu Indicator data for a single BCU, from \code{data/bcus_list.rds} #' @param tile Bing tile for a single BCU, from \code{data/bcus_tiles_indicator.rds} #' @param indicator Indicator being mapped #...
/R/map_indicator.R
permissive
sparkgeo/local-reef-pressures
R
false
false
7,409
r
#' Map BCU Indicator #' #' Produce a satellite map for a BCU, along with the values for a supplied indicator. #' #' @param bcu Indicator data for a single BCU, from \code{data/bcus_list.rds} #' @param tile Bing tile for a single BCU, from \code{data/bcus_tiles_indicator.rds} #' @param indicator Indicator being mapped #...
library('rvest') library('stringr') library('xlsx') library(bestglm) # Reads in excel file. Necessary because manual imputation was made for the high school socioeconomic information. y=file.choose() finalESPN1=read.xlsx(y,1) southESPN=finalESPN1 southESPN = southESPN[,-1] southESPN = southESPN[,-2] names...
/SouthESPN.R
no_license
NickTice/thesis
R
false
false
9,954
r
library('rvest') library('stringr') library('xlsx') library(bestglm) # Reads in excel file. Necessary because manual imputation was made for the high school socioeconomic information. y=file.choose() finalESPN1=read.xlsx(y,1) southESPN=finalESPN1 southESPN = southESPN[,-1] southESPN = southESPN[,-2] names...
# start with jump-start code... no need to run the data prep code # Here we read in the training and test files # Read text columns as character strings and convert selected columns to factor variables. # The training set will be used to create build and validation sets in cross-validation. training <- read.csv(file =...
/code/nfl_combine_modeling.R
no_license
michaelpallante/nfl_combine_modeling
R
false
false
9,694
r
# start with jump-start code... no need to run the data prep code # Here we read in the training and test files # Read text columns as character strings and convert selected columns to factor variables. # The training set will be used to create build and validation sets in cross-validation. training <- read.csv(file =...
observeEvent(input$nucPreset, { sel <- input$nucPreset updateRadioSubgroup(session, "exampleId", "sub", selected = sel, inline = TRUE) }) observeEvent(input$exampleId, { sel <- input$exampleId sel2 <- as.numeric(gsub(".*-", "", sel)) if (sel2 %in% 9:10) { updateRadioButtons(session, "nucPreset", se...
/inst/shinyApps/iBoard/obser/obserPresets.R
no_license
cran/idiogramFISH
R
false
false
24,452
r
observeEvent(input$nucPreset, { sel <- input$nucPreset updateRadioSubgroup(session, "exampleId", "sub", selected = sel, inline = TRUE) }) observeEvent(input$exampleId, { sel <- input$exampleId sel2 <- as.numeric(gsub(".*-", "", sel)) if (sel2 %in% 9:10) { updateRadioButtons(session, "nucPreset", se...
########################################################################### ## Generating figures from literature search ## ## make sure that the csv file is updated to match the current xlsx file ## ########################################################################### ## path to camp...
/R/figures.r
no_license
davebetts/Data-management-scripts
R
false
false
5,187
r
########################################################################### ## Generating figures from literature search ## ## make sure that the csv file is updated to match the current xlsx file ## ########################################################################### ## path to camp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/continuous_step.R \name{fire} \alias{fire} \title{Fire transition, changing the individual} \usage{ fire(transition, individual, when, variables = NULL) } \arguments{ \item{transition}{A list of transitions} \item{individual}{A list with ind...
/macro/man/fire.Rd
no_license
dd-harp/MASH
R
false
true
683
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/continuous_step.R \name{fire} \alias{fire} \title{Fire transition, changing the individual} \usage{ fire(transition, individual, when, variables = NULL) } \arguments{ \item{transition}{A list of transitions} \item{individual}{A list with ind...
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615853204-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
659
r
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e...
x <- c(5.4, 6.2, 7.1, 4.8, 7.5) names(x) <- c('a', 'b', 'c', 'd', 'e') x x[1] x[4] x[c(1, 3)] x[1:4] x[c(1,1,3)] x[6] x[0] # If we ask for the 0th element, we get an empty vector x[-2] # use a negative number as the index of a vector, R will return every element except for the one specified x[c(-1, -5)] # We can skip...
/week-06.R
no_license
ruixiangliu/BCB546-R-Exercise
R
false
false
3,683
r
x <- c(5.4, 6.2, 7.1, 4.8, 7.5) names(x) <- c('a', 'b', 'c', 'd', 'e') x x[1] x[4] x[c(1, 3)] x[1:4] x[c(1,1,3)] x[6] x[0] # If we ask for the 0th element, we get an empty vector x[-2] # use a negative number as the index of a vector, R will return every element except for the one specified x[c(-1, -5)] # We can skip...
#' @title Estadisticas de los jugadores de la MLB en ESPN #' @param year numeric #' @param stats character #' @param season_type character #' @return Estadisticas de la MLB en ESPN #' @export #' @import tidyr dplyr purrr janitor rvest stringr #' @importFrom dplyr %>% #' @importFrom jsonlite fromJSON #' @importFrom glu...
/R/espn_player_stats.R
no_license
IvoVillanueva/mlbstatsR
R
false
false
3,495
r
#' @title Estadisticas de los jugadores de la MLB en ESPN #' @param year numeric #' @param stats character #' @param season_type character #' @return Estadisticas de la MLB en ESPN #' @export #' @import tidyr dplyr purrr janitor rvest stringr #' @importFrom dplyr %>% #' @importFrom jsonlite fromJSON #' @importFrom glu...
###### Data wrangling of the original tree div data##### #read csv file with Simon's data data_simon<-read.csv("Data/data_original/data_simon.csv", header = TRUE)%>%as_tibble() #data_simon.csv not on github because way to heavy to upload (160 MB). See sharepoint under "Survival_Analysis" #Make a dummy dataset that ho...
/Data/data_products/wrangling_survivaldata.R
no_license
yadevi/CAMBIO_survival
R
false
false
3,295
r
###### Data wrangling of the original tree div data##### #read csv file with Simon's data data_simon<-read.csv("Data/data_original/data_simon.csv", header = TRUE)%>%as_tibble() #data_simon.csv not on github because way to heavy to upload (160 MB). See sharepoint under "Survival_Analysis" #Make a dummy dataset that ho...
########## # PCA plots # Usage: R --args config.file pca.type < pca_plots.R ########## library(GWASTools) library(QCpipeline) library(RColorBrewer) library(MASS) library(ggplot2) library(GGally) library(ggExtra) sessionInfo() # read configuration args <- commandArgs(trailingOnly=TRUE) if (length(args) < 1) stop("miss...
/R/pca_plots.R
no_license
UW-GAC/QCpipeline
R
false
false
10,855
r
########## # PCA plots # Usage: R --args config.file pca.type < pca_plots.R ########## library(GWASTools) library(QCpipeline) library(RColorBrewer) library(MASS) library(ggplot2) library(GGally) library(ggExtra) sessionInfo() # read configuration args <- commandArgs(trailingOnly=TRUE) if (length(args) < 1) stop("miss...
category I/O IOが読み込み可能になるまで待つ機能を提供するライブラリです。 Windowsではこのライブラリで定義されているメソッドは Socketに対してしか利用できません。 = reopen IO == Instance Methods #@since 1.9.1 --- nread -> Integer ブロックせずに読み込み可能なバイト数を返します。 ブロックする場合は0を返します。 判別が不可能な場合は0を返します。#@end #@until 1.9.1 --- ready?-> Integer | false | nil ブロックせずに読み込み可能なら真を、 不可能であれば偽を返します...
/target/rubydoc/refm/api/src/io/wait.rd
no_license
nacyot/omegat-rurima-ruby
R
false
false
2,374
rd
category I/O IOが読み込み可能になるまで待つ機能を提供するライブラリです。 Windowsではこのライブラリで定義されているメソッドは Socketに対してしか利用できません。 = reopen IO == Instance Methods #@since 1.9.1 --- nread -> Integer ブロックせずに読み込み可能なバイト数を返します。 ブロックする場合は0を返します。 判別が不可能な場合は0を返します。#@end #@until 1.9.1 --- ready?-> Integer | false | nil ブロックせずに読み込み可能なら真を、 不可能であれば偽を返します...
## ---- echo = FALSE, message = FALSE-------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ------------------------------------------------------------------------ query_v_1 <- '{"_and":[ {"_gte":{"patent_date":"2007-03-01"}}, {"_or":[ ...
/inst/doc/writing-queries.R
no_license
crew102/patentsview
R
false
false
2,530
r
## ---- echo = FALSE, message = FALSE-------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ------------------------------------------------------------------------ query_v_1 <- '{"_and":[ {"_gte":{"patent_date":"2007-03-01"}}, {"_or":[ ...
# Clear workspace -------------------------------------------------------------- rm(list = ls()) # Load libraries --------------------------------------------------------------- library("tidyverse") library("leaflet") library("leaflet.extras") library("ggpubr") library("broom") library("purrr") library("rpart") libra...
/R/03_analysis_descriptive.R
no_license
rforbiodatascience/2020_group06
R
false
false
13,264
r
# Clear workspace -------------------------------------------------------------- rm(list = ls()) # Load libraries --------------------------------------------------------------- library("tidyverse") library("leaflet") library("leaflet.extras") library("ggpubr") library("broom") library("purrr") library("rpart") libra...
# Tools for the package, tests and calcuations. # Find the p-values for the Johansen procedure using bootstrapped values rankTest <- function(M){ p = length(M$test) pVals = numeric(0) for(i in 1:p){ test.cdf = ecdf(M$boot[,i]) pVals[i] = 1-test.cdf(M$test[i]) } names(p...
/R/tools.R
permissive
jacobostergaard/cods
R
false
false
2,385
r
# Tools for the package, tests and calcuations. # Find the p-values for the Johansen procedure using bootstrapped values rankTest <- function(M){ p = length(M$test) pVals = numeric(0) for(i in 1:p){ test.cdf = ecdf(M$boot[,i]) pVals[i] = 1-test.cdf(M$test[i]) } names(p...
# Parse the header,test and train files # Build glm model with lambda search # Predict using all models and calculate auc for each model # Compare the aucs returned with those calculated by ROCR package setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../findNSourceUtils.R') test.pub.82...
/R/tests/testdir_jira/runit_pub_822_lambdaSearch_auc_check_medium.R
permissive
yangls06/h2o
R
false
false
2,045
r
# Parse the header,test and train files # Build glm model with lambda search # Predict using all models and calculate auc for each model # Compare the aucs returned with those calculated by ROCR package setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../findNSourceUtils.R') test.pub.82...
run_analysis <- function(X_test, X_train, y_test, y_train, features, subject_test, subject_train) { data <- rbind(X_test, X_train) #Merges the training and the test sets to create one data set c <- (grepl("mean", features)) | (grepl("std", features)) data <- data[,c] #Extracts only the measurements on ...
/run_analysis.R
no_license
AnastasiaPlisova/MyProject
R
false
false
1,319
r
run_analysis <- function(X_test, X_train, y_test, y_train, features, subject_test, subject_train) { data <- rbind(X_test, X_train) #Merges the training and the test sets to create one data set c <- (grepl("mean", features)) | (grepl("std", features)) data <- data[,c] #Extracts only the measurements on ...
testlist <- list(ExpressionSet = structure(c(3.10503529562433e+231, 1.23181983389617e+58, 1.52478221747831e+245, 1.57532647271067e+179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), Phylostratum = numeric(0)) result <- do.call(myTAI:::cpp_TAI,testlis...
/myTAI/inst/testfiles/cpp_TAI/AFL_cpp_TAI/cpp_TAI_valgrind_files/1615763604-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
334
r
testlist <- list(ExpressionSet = structure(c(3.10503529562433e+231, 1.23181983389617e+58, 1.52478221747831e+245, 1.57532647271067e+179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), Phylostratum = numeric(0)) result <- do.call(myTAI:::cpp_TAI,testlis...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/heatmap.3.R \name{heatmap.3} \alias{heatmap.3} \title{Heatmap} \usage{ heatmap.3(x, dist.fun = c("euclidean", "pearson"), na.avg = TRUE, col.ramp = bluered, z.transf = c(FALSE, TRUE), breaks = seq(-1, +1, length = 100), linkage = c("avera...
/man/heatmap.3.Rd
no_license
JMoon1/vp.misc
R
false
true
1,339
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/heatmap.3.R \name{heatmap.3} \alias{heatmap.3} \title{Heatmap} \usage{ heatmap.3(x, dist.fun = c("euclidean", "pearson"), na.avg = TRUE, col.ramp = bluered, z.transf = c(FALSE, TRUE), breaks = seq(-1, +1, length = 100), linkage = c("avera...
## ------------------------------------------------------------------------ library(aoos) Person <- defineRefClass({ Class <- "person" # this is the argument 'Class' in setRefClass personName <- "character" # this is a field of class 'character' initialize <- function(name) { .self$personName <- name ...
/inst/doc/referenceClasses.R
no_license
wahani/aoos
R
false
false
1,629
r
## ------------------------------------------------------------------------ library(aoos) Person <- defineRefClass({ Class <- "person" # this is the argument 'Class' in setRefClass personName <- "character" # this is a field of class 'character' initialize <- function(name) { .self$personName <- name ...
source(here::here("code/packages.R")) source(here::here("code/file_paths.R")) source(here("code/programs/fn_getplotdata.R")) # will need this little function later and in other codes get_plot_data dir.create(file.path(here("out")), showWarnings = FALSE) dir.create(file.path(here("out", "analysis")), showWarnings = FA...
/code/analysis/05b_analyse_severity.R
no_license
hendersonad/2021_skinCMDs
R
false
false
12,239
r
source(here::here("code/packages.R")) source(here::here("code/file_paths.R")) source(here("code/programs/fn_getplotdata.R")) # will need this little function later and in other codes get_plot_data dir.create(file.path(here("out")), showWarnings = FALSE) dir.create(file.path(here("out", "analysis")), showWarnings = FA...
############### # 3^5 Projected Change Analyses - drought plotter library(ncdf4) # loading necessary libraries and extra functions library(maps) library(fields) library(sp) source("analysisfunctions.R") ############## # User supplied inputs varname = "SPEIlow" # short name for the variable of interest options includ...
/old/analysis3to5_droughtplotter.R
no_license
amwootte/analysisscripts
R
false
false
9,107
r
############### # 3^5 Projected Change Analyses - drought plotter library(ncdf4) # loading necessary libraries and extra functions library(maps) library(fields) library(sp) source("analysisfunctions.R") ############## # User supplied inputs varname = "SPEIlow" # short name for the variable of interest options includ...
### Version history: # V02: changed to pair with functions_V03 setwd("/frazer01/projects/GTEx_v7/analysis/eqtls_deconvolution") suppressMessages(source("analysis/cardiac_qtls_packages.R" )) suppressMessages(source("analysis/cardiac_qtls_input_files.R" )) suppressMessages(source("analysis/cardiac_qtls_functions...
/qtls_run_divide_genotypes.R
no_license
Diennguyen8290/gtex_deconvolution
R
false
false
1,167
r
### Version history: # V02: changed to pair with functions_V03 setwd("/frazer01/projects/GTEx_v7/analysis/eqtls_deconvolution") suppressMessages(source("analysis/cardiac_qtls_packages.R" )) suppressMessages(source("analysis/cardiac_qtls_input_files.R" )) suppressMessages(source("analysis/cardiac_qtls_functions...
library(PKconverter) ### Name: TwoComp_Volume_Exponent ### Title: Convert pharmacokinetic parameters for two compartment model ### Aliases: TwoComp_Volume_Exponent ### ** Examples TwoComp_Volume_Exponent(V1=5,alpha=1.221, beta=0.029, k21=0.05, V1.sd=0.01,alpha.sd=0.01,beta.sd=0.00005,k21.sd=0.0006)
/data/genthat_extracted_code/PKconverter/examples/TwoComp_Volume_Exponent.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
307
r
library(PKconverter) ### Name: TwoComp_Volume_Exponent ### Title: Convert pharmacokinetic parameters for two compartment model ### Aliases: TwoComp_Volume_Exponent ### ** Examples TwoComp_Volume_Exponent(V1=5,alpha=1.221, beta=0.029, k21=0.05, V1.sd=0.01,alpha.sd=0.01,beta.sd=0.00005,k21.sd=0.0006)
#' power.groupsByFactor #' #' Subsets a dataset by a factor then uses power.groups to calculate statistical power for each group #' #' @author James Hutchison #' @param x Numerical vector from which the distribution parameters will be calculated using \code{fitdistr} #' @param f Factor the same length as \code{x}, whic...
/R/power.groupsByFactor_function.r
no_license
hutchisonjtw/JNCCTools
R
false
false
5,833
r
#' power.groupsByFactor #' #' Subsets a dataset by a factor then uses power.groups to calculate statistical power for each group #' #' @author James Hutchison #' @param x Numerical vector from which the distribution parameters will be calculated using \code{fitdistr} #' @param f Factor the same length as \code{x}, whic...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/b2r.R \name{b2r} \alias{b2r} \title{Obtain correlation coefficients and their variance-covariances} \usage{ b2r(b, s, rho, n) } \arguments{ \item{b}{the vector of linear regression coefficients.} \item{s}{the corresponding vector of standard...
/gap/man/b2r.Rd
no_license
jinghuazhao/R
R
false
true
1,351
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/b2r.R \name{b2r} \alias{b2r} \title{Obtain correlation coefficients and their variance-covariances} \usage{ b2r(b, s, rho, n) } \arguments{ \item{b}{the vector of linear regression coefficients.} \item{s}{the corresponding vector of standard...