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 |
|---|---|---|---|---|---|---|---|---|---|
###Lab 3: Spatial Variation in Risk
# Load relevant libraries
install.packages("spatstat")
install.packages("lme4")
install.packages("lgcp")
install.packages("geoR")
install.packages("gtools")
install.packages("Metrics")
library(Metrics)
library(spatstat)
library(raster)
library(sp)
#library(lgcp)
library(geoR)
librar... | /course_materials/week3/Lab_files/Lab 3.R | permissive | drkamarul/HughSt.github.io | R | false | false | 10,175 | r | ###Lab 3: Spatial Variation in Risk
# Load relevant libraries
install.packages("spatstat")
install.packages("lme4")
install.packages("lgcp")
install.packages("geoR")
install.packages("gtools")
install.packages("Metrics")
library(Metrics)
library(spatstat)
library(raster)
library(sp)
#library(lgcp)
library(geoR)
librar... |
#' @importFrom htmltools tagList tags HTML div
NULL
#' Utility class for forming table-based containers (works better with Outlook
#' than divs, for example, this seems to be the only way to center a block).
#'
#' @noRd
panel <- function(
...,
width = "100%",
outer_align = NULL,
inner_align = NULL,
... | /R/panel.R | permissive | rstudio/blastula | R | false | false | 849 | r | #' @importFrom htmltools tagList tags HTML div
NULL
#' Utility class for forming table-based containers (works better with Outlook
#' than divs, for example, this seems to be the only way to center a block).
#'
#' @noRd
panel <- function(
...,
width = "100%",
outer_align = NULL,
inner_align = NULL,
... |
# source("https://bioconductor.org/biocLite.R")
# biocLite(c("GenomicRanges","IRanges"))
# biocLite("methylKit",dependencies=TRUE)
#
# setwd("/media/donglei/New Volume/Users/Donglei/Documents")
library(methylKit)
start.time <- Sys.time()
file.list=list("./test1_CpG.txt","./test2_CpG.txt","./ctrl1_CpG.tx... | /methylkit_server_20180604.R | no_license | dangdang001/DNA_methylation | R | false | false | 2,508 | r | # source("https://bioconductor.org/biocLite.R")
# biocLite(c("GenomicRanges","IRanges"))
# biocLite("methylKit",dependencies=TRUE)
#
# setwd("/media/donglei/New Volume/Users/Donglei/Documents")
library(methylKit)
start.time <- Sys.time()
file.list=list("./test1_CpG.txt","./test2_CpG.txt","./ctrl1_CpG.tx... |
generate_daily <- function(date = Sys.Date()) {
usethis::ui_info("Creating directory and README for {date}...")
fs::dir_create(date)
readme_contents <- c(
"---",
paste0("title: \"", as.character(date), "\""),
"output: github_document",
"---",
"",
"# - i know this one!",
"",
"```{r... | /R/functions.R | no_license | achafetz/twofunctionsmostdays | R | false | false | 4,066 | r | generate_daily <- function(date = Sys.Date()) {
usethis::ui_info("Creating directory and README for {date}...")
fs::dir_create(date)
readme_contents <- c(
"---",
paste0("title: \"", as.character(date), "\""),
"output: github_document",
"---",
"",
"# - i know this one!",
"",
"```{r... |
#Assignment 5
library(tidyverse)
data <- read.csv("siscowet.csv")
#plot age vs. length
data %>%
ggplot(aes(x=age,y=len)) +
geom_point()
#add color to sex data and remove gray background
data %>%
ggplot(aes(x=age,y=len,
color=sex)) +
geom_point()+
theme_minimal()
#add axis titles,main title,mo... | /figures/Brewer_HW5_code.R | no_license | arialbrewer/Assignment-5 | R | false | false | 835 | r | #Assignment 5
library(tidyverse)
data <- read.csv("siscowet.csv")
#plot age vs. length
data %>%
ggplot(aes(x=age,y=len)) +
geom_point()
#add color to sex data and remove gray background
data %>%
ggplot(aes(x=age,y=len,
color=sex)) +
geom_point()+
theme_minimal()
#add axis titles,main title,mo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aspirin-data.R
\docType{data}
\name{aspirin}
\alias{aspirin}
\title{Aspirin compliance on pregnancy outcomes}
\format{A data frame with several variables.}
\usage{
data(aspirin)
}
\description{
Data from a randomized trial on low dose aspirin... | /man/aspirin.Rd | permissive | ainaimi/pgf | R | false | true | 759 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aspirin-data.R
\docType{data}
\name{aspirin}
\alias{aspirin}
\title{Aspirin compliance on pregnancy outcomes}
\format{A data frame with several variables.}
\usage{
data(aspirin)
}
\description{
Data from a randomized trial on low dose aspirin... |
#' Display the results from an evaluated exercise in the chunk
#'
display_exercise_results <- function(exercise, envir,
evaluate_global_setup = FALSE,
err = NULL) {
# create temp dir for execution (remove on exit)
exercise_dir <- tempfile(pat... | /R/display_exercise_results.R | no_license | dtkaplan/learnrAlt | R | false | false | 5,382 | r | #' Display the results from an evaluated exercise in the chunk
#'
display_exercise_results <- function(exercise, envir,
evaluate_global_setup = FALSE,
err = NULL) {
# create temp dir for execution (remove on exit)
exercise_dir <- tempfile(pat... |
# Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComDayCqWcmCoreMvtMVTStatisticsI... | /clients/r/generated/R/ComDayCqWcmCoreMvtMVTStatisticsImplProperties.r | permissive | shinesolutions/swagger-aem-osgi | R | false | false | 2,557 | r | # Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComDayCqWcmCoreMvtMVTStatisticsI... |
#' tidytuesdayR doesn't save the downloaded files locally. Instead, it retrieves them from GitHub each time, "so that you always are using the most recent version of the data" (<https://github.com/thebioengineer/tidytuesdayR/issues/69>). If you're rerunning the script multiple times, this can result in GitHub rate li... | /one-time-setup.R | no_license | AlexDayer/lab-w03-r | R | false | false | 1,060 | r | #' tidytuesdayR doesn't save the downloaded files locally. Instead, it retrieves them from GitHub each time, "so that you always are using the most recent version of the data" (<https://github.com/thebioengineer/tidytuesdayR/issues/69>). If you're rerunning the script multiple times, this can result in GitHub rate li... |
/man/kinwrite.KinGUI.Rd | no_license | cran/kinfit | R | false | false | 1,682 | rd | ||
library(ggplot2)
# Front squares
squares <-data.frame(x1=c(10,30,50,70), x2=c(20,40,60,80), y1=10, y2= 15)
# Background colors
background_squares <- data.frame(x1 = seq(0,89,1), x2 = seq(1,90,1), y1 = 5, y2 = 20, col_fill = paste0("gray", seq(89,0,-1)))
# Plot
ggplot() +
# Background first
geom_rect(data=backgr... | /random-geoms/same-color.R | no_license | AmitLevinson/single_visualizations | R | false | false | 921 | r | library(ggplot2)
# Front squares
squares <-data.frame(x1=c(10,30,50,70), x2=c(20,40,60,80), y1=10, y2= 15)
# Background colors
background_squares <- data.frame(x1 = seq(0,89,1), x2 = seq(1,90,1), y1 = 5, y2 = 20, col_fill = paste0("gray", seq(89,0,-1)))
# Plot
ggplot() +
# Background first
geom_rect(data=backgr... |
# all figures
# setup ========================================================================
library(neonUtilities)
library(tidyverse)
library(sf)
library(ggpubr)
library(car)
library(emmeans)
library(vegan)
library(httr)
library(RCurl)
library(ggthemes)
library(viridis)
library(lme4)
library(car)
if(!exists("pre... | /R/final_figures.R | permissive | admahood/six-invasion-questions | R | false | false | 17,397 | r | # all figures
# setup ========================================================================
library(neonUtilities)
library(tidyverse)
library(sf)
library(ggpubr)
library(car)
library(emmeans)
library(vegan)
library(httr)
library(RCurl)
library(ggthemes)
library(viridis)
library(lme4)
library(car)
if(!exists("pre... |
get.sapFlowDensity <- function(method = "HFD", data, Dst, Zax, Ztg,
sapWoodDepth){
if (method == "HFD"){
data$SFS = 3600 * Dst * (data[, "k"] + data[, "dTsa"]) / data[, "dTas"] *
Zax / Ztg
data$SFDsw = NA
data$SFDsw = data$SFS / sapWoodDepth
}
re... | /R_scripts/functions/fun_sapflow.R | no_license | hannahjames77/SFA | R | false | false | 5,011 | r | get.sapFlowDensity <- function(method = "HFD", data, Dst, Zax, Ztg,
sapWoodDepth){
if (method == "HFD"){
data$SFS = 3600 * Dst * (data[, "k"] + data[, "dTsa"]) / data[, "dTas"] *
Zax / Ztg
data$SFDsw = NA
data$SFDsw = data$SFS / sapWoodDepth
}
re... |
#####################################################################################################
#
# PROJETO
#
#####################################################################################################
# EMPRESA WKD
# Perguntas para esta tarefa
# "Nossa tax... | /projeto.r | no_license | Joanini/Projetos-Machine-Learning | R | false | false | 1,947 | r | #####################################################################################################
#
# PROJETO
#
#####################################################################################################
# EMPRESA WKD
# Perguntas para esta tarefa
# "Nossa tax... |
library(Hmisc)
#library(geoR)
#library(MASS)
#library(zoo)
library(parallel)
source('/home/yuhuiyao/Documents/Github/MWwithFP/F&P.R')
#boxcoxTrans <- function(x, lam1, lam2 = NULL) {
#
# # if we set lambda2 to zero, it becomes the one parameter transformation
# lam2 <- ifelse(is.null(lam2), 0, lam2)
#
# if ... | /example2.R | no_license | bolus123/MWwithFP | R | false | false | 4,162 | r | library(Hmisc)
#library(geoR)
#library(MASS)
#library(zoo)
library(parallel)
source('/home/yuhuiyao/Documents/Github/MWwithFP/F&P.R')
#boxcoxTrans <- function(x, lam1, lam2 = NULL) {
#
# # if we set lambda2 to zero, it becomes the one parameter transformation
# lam2 <- ifelse(is.null(lam2), 0, lam2)
#
# if ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modify_columns.R
\name{cols_label}
\alias{cols_label}
\title{Relabel one or more columns}
\usage{
cols_label(data, ..., .list = list2(...))
}
\arguments{
\item{data}{a table object that is created using the \code{\link{gt}()}
function.}
\ite... | /man/cols_label.Rd | permissive | mustafaascha/gt | R | false | true | 1,983 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modify_columns.R
\name{cols_label}
\alias{cols_label}
\title{Relabel one or more columns}
\usage{
cols_label(data, ..., .list = list2(...))
}
\arguments{
\item{data}{a table object that is created using the \code{\link{gt}()}
function.}
\ite... |
37c1236759647eaaf908149230e55d25 dungeon_i25-m12-u5-v0.pddl_planlen=72.qdimacs 54483 491071 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i25-m12-u5-v0.pddl_planlen=72/dungeon_i25-m12-u5-v0.pddl_planlen=72.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 91 | r | 37c1236759647eaaf908149230e55d25 dungeon_i25-m12-u5-v0.pddl_planlen=72.qdimacs 54483 491071 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_irh.R
\name{compute.irh}
\alias{compute.irh}
\title{Computes IRH (intra run homogeneity) of a neuR-object}
\usage{
compute.irh(D, pc.num = 1, drop.tcs = FALSE)
}
\arguments{
\item{D}{a neuR-object}
\item{pc.num}{1}
\item{drop.tcs}{F... | /man/compute.irh.Rd | no_license | livioivil/neuR | R | false | true | 819 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_irh.R
\name{compute.irh}
\alias{compute.irh}
\title{Computes IRH (intra run homogeneity) of a neuR-object}
\usage{
compute.irh(D, pc.num = 1, drop.tcs = FALSE)
}
\arguments{
\item{D}{a neuR-object}
\item{pc.num}{1}
\item{drop.tcs}{F... |
# Building a Prod-Ready, Robust Shiny Application.
#
# Each step is optional.
#
# 1 - On init
#
## 1.1 - Fill the descripion & set options
##
## Add information about the package that will contain your app
golem::fill_desc(
pkg_name = "mobilequake", # The Name of the package containing the App
pkg_title = "E... | /dev/01_start.R | permissive | korur/mobilequake | R | false | false | 1,843 | r | # Building a Prod-Ready, Robust Shiny Application.
#
# Each step is optional.
#
# 1 - On init
#
## 1.1 - Fill the descripion & set options
##
## Add information about the package that will contain your app
golem::fill_desc(
pkg_name = "mobilequake", # The Name of the package containing the App
pkg_title = "E... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nhlthemes.R
\docType{package}
\name{nhlthemes}
\alias{nhlthemes}
\alias{nhlthemes-package}
\title{nhlthemes: R Studio addin for setting editor theme to NHL team colors}
\description{
nhlthemes: R Studio addin for setting editor theme to NHL t... | /man/nhlthemes.Rd | no_license | themechanicalbear/nhlthemes | R | false | true | 333 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nhlthemes.R
\docType{package}
\name{nhlthemes}
\alias{nhlthemes}
\alias{nhlthemes-package}
\title{nhlthemes: R Studio addin for setting editor theme to NHL team colors}
\description{
nhlthemes: R Studio addin for setting editor theme to NHL t... |
#pdf(file='./trans_single/literate_mcmc_logs/COMBINED_RTT_plots.pdf',width=12, height=8)
#par(mfrow=c(2,4))
#library(scales)
###COMBINED_mcmc###
#Number Shifts
sp_rate_trans_single_unique=c(3.0, 4.0,5.0,6.0,7.0,8.0)
sp_rate_trans_single_counts=c(50306, 288106,57149,4239,191,9)
#sp_rate_ Plot
sp_rate_trans_single_tim... | /complete_data/trans_single_combined_raw.r | no_license | erikgjes/Diversification_Rates_of_Richness_Data | R | false | false | 16,005 | r |
#pdf(file='./trans_single/literate_mcmc_logs/COMBINED_RTT_plots.pdf',width=12, height=8)
#par(mfrow=c(2,4))
#library(scales)
###COMBINED_mcmc###
#Number Shifts
sp_rate_trans_single_unique=c(3.0, 4.0,5.0,6.0,7.0,8.0)
sp_rate_trans_single_counts=c(50306, 288106,57149,4239,191,9)
#sp_rate_ Plot
sp_rate_trans_single_tim... |
# As of testthat 1.0.2.9000, objects are captured as quosures by `expect_*()`.
# This causes spurious test failures, due to a bug in `rlang::enquo()`
# (https://github.com/tidyverse/rlang/issues/280) and its inability to
# comprehend literal unquoting operators
# (cf. https://github.com/tidyverse/rlang/issues/264).
ex... | /tests/testthat/helper.R | permissive | cran/nofrills | R | false | false | 443 | r | # As of testthat 1.0.2.9000, objects are captured as quosures by `expect_*()`.
# This causes spurious test failures, due to a bug in `rlang::enquo()`
# (https://github.com/tidyverse/rlang/issues/280) and its inability to
# comprehend literal unquoting operators
# (cf. https://github.com/tidyverse/rlang/issues/264).
ex... |
/coding/动图.R | permissive | shangfr/R-Markdown | R | false | false | 627 | r | ||
% 2021-06-04 A. Papritz
% R CMD Rdconv -t html -o bla.html profilelogLik.Rd ; open bla.html; R CMD Rd2pdf --force profilelogLik.Rd;
\encoding{utf8}
\name{profilelogLik}
\alias{profilelogLik}
\title{Profile Likelihood}
\description{
The function \code{profilelogLik} computes for an array of fixed
variogram paramet... | /man/profilelogLik.Rd | no_license | cran/georob | R | false | false | 5,262 | rd | % 2021-06-04 A. Papritz
% R CMD Rdconv -t html -o bla.html profilelogLik.Rd ; open bla.html; R CMD Rd2pdf --force profilelogLik.Rd;
\encoding{utf8}
\name{profilelogLik}
\alias{profilelogLik}
\title{Profile Likelihood}
\description{
The function \code{profilelogLik} computes for an array of fixed
variogram paramet... |
##Q2 R code
#let e_t ~ id N(0,1), let n=100
#theta=0.25=1/4
Y.t=arima.sim(list(order=c(0,0,1),ma=0.25),n=100)
#compute the ACF
acf(Y.t)
#plot the time series
plot.ts(Y.t)
#theta=4
Y.t=arima.sim(list(order=c(0,0,1),ma=4),n=100)
#compute the ACF
acf(Y.t2)
#plot the time series
plot.ts(Y.t2)
##Q3 R code
N=50
xs1=rep(NA,N... | /SimulationForACFs.r | permissive | alchemz/TimeSeries_R | R | false | false | 772 | r | ##Q2 R code
#let e_t ~ id N(0,1), let n=100
#theta=0.25=1/4
Y.t=arima.sim(list(order=c(0,0,1),ma=0.25),n=100)
#compute the ACF
acf(Y.t)
#plot the time series
plot.ts(Y.t)
#theta=4
Y.t=arima.sim(list(order=c(0,0,1),ma=4),n=100)
#compute the ACF
acf(Y.t2)
#plot the time series
plot.ts(Y.t2)
##Q3 R code
N=50
xs1=rep(NA,N... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/example_sources.R
\name{bb_example_sources}
\alias{bb_example_sources}
\title{Example bowerbird data sources}
\usage{
bb_example_sources()
}
\value{
a tibble with columns as specified by \code{\link{bb_source}}
}
\description{
These example s... | /man/bb_example_sources.Rd | permissive | MilesMcBain/bowerbird | R | false | true | 1,945 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/example_sources.R
\name{bb_example_sources}
\alias{bb_example_sources}
\title{Example bowerbird data sources}
\usage{
bb_example_sources()
}
\value{
a tibble with columns as specified by \code{\link{bb_source}}
}
\description{
These example s... |
source("code/R/lib/helper.R")
exec_supl_a54cda3d <- ler_exec_desp("data-raw/exec_suplementacao_a54cda3d.xlsx")
exec_supl_a54cda3d <- add_saude(exec_supl_a54cda3d)
exec_supl_a54cda3d <- add_tipo(exec_supl_a54cda3d)
exec_supl_a54cda3d <- adiciona_desc(exec_supl_a54cda3d, "ACAO_COD")
writexl::write_xlsx(exec_supl_a54c... | /code/R/src/exec_supl_a54cda3d.R | no_license | fjuniorr/encerramento_2017 | R | false | false | 363 | r | source("code/R/lib/helper.R")
exec_supl_a54cda3d <- ler_exec_desp("data-raw/exec_suplementacao_a54cda3d.xlsx")
exec_supl_a54cda3d <- add_saude(exec_supl_a54cda3d)
exec_supl_a54cda3d <- add_tipo(exec_supl_a54cda3d)
exec_supl_a54cda3d <- adiciona_desc(exec_supl_a54cda3d, "ACAO_COD")
writexl::write_xlsx(exec_supl_a54c... |
#' Simulate a random field with a MVT distribution
#'
#' @param n_knots The number of knots
#' @param n_draws The number of draws (for example, the number of years)
#' @param gp_theta The Gaussian Process scale parameter
#' @param gp_sigma The Gaussian Process variance parameter
#' @param mvt Logical: MVT? (vs. MVN)
#'... | /R/sim.R | no_license | Climostatistics/glmmfields | R | false | false | 7,796 | r | #' Simulate a random field with a MVT distribution
#'
#' @param n_knots The number of knots
#' @param n_draws The number of draws (for example, the number of years)
#' @param gp_theta The Gaussian Process scale parameter
#' @param gp_sigma The Gaussian Process variance parameter
#' @param mvt Logical: MVT? (vs. MVN)
#'... |
#' Function for the max distribution integrand
#'
#' This function is not generally used. This function is used by seamlessTrials to calculate the max distribution integrand
#' @param y value of maximum test statistic
#' @param integrand.arguments The integrand arguments passed to the function that contain K, incv,... | /R/max.distribution.integrand.R | no_license | Gtmille2/seamlessTrial | R | false | false | 613 | r | #' Function for the max distribution integrand
#'
#' This function is not generally used. This function is used by seamlessTrials to calculate the max distribution integrand
#' @param y value of maximum test statistic
#' @param integrand.arguments The integrand arguments passed to the function that contain K, incv,... |
#弯月面Meniscus的高度和角度随流量,极间距离,电压变化而变化
#针头三种液体,ethanol,acetone, isoproply
#height高度和angle角度,在一张图上,分为上下部分
#三张图,分别对应三种x轴,流量,极间距离,电压
#两张大图,分别对应height和angle
#函数名为men_ih & men_ia, men_ih & men_ia,men_ih & men_ia
#设定工作区间
setwd("D:/data")
library(xlsx)
#读取数据
men_ih<-read.xlsx("meniscus.xls",sheetName="voltage_h", ... | /Liquids/meniscus/meniscus_voltage.r | permissive | shuaimeng/r | R | false | false | 2,151 | r | #弯月面Meniscus的高度和角度随流量,极间距离,电压变化而变化
#针头三种液体,ethanol,acetone, isoproply
#height高度和angle角度,在一张图上,分为上下部分
#三张图,分别对应三种x轴,流量,极间距离,电压
#两张大图,分别对应height和angle
#函数名为men_ih & men_ia, men_ih & men_ia,men_ih & men_ia
#设定工作区间
setwd("D:/data")
library(xlsx)
#读取数据
men_ih<-read.xlsx("meniscus.xls",sheetName="voltage_h", ... |
\name{MCHdiag}
\alias{MCHdiag}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Multivariate Conditional Heteroscadastic Model Cheking
%% ~~function to do ... ~~
}
\description{Apply four portmanteau test statistics to check the
validity of a fitted multivariate volatility model
%% ~~ A concise ... | /man/MCHdiag.Rd | no_license | tsay/MTS | R | false | false | 1,935 | rd | \name{MCHdiag}
\alias{MCHdiag}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Multivariate Conditional Heteroscadastic Model Cheking
%% ~~function to do ... ~~
}
\description{Apply four portmanteau test statistics to check the
validity of a fitted multivariate volatility model
%% ~~ A concise ... |
# Test ?? bruke RStudio p?? gamle macen min..
# Fortsett p?? Coursera kurset Data Science Specialization
# Programming in R
# Week 4
# Programming assignment 3
# Download ProgAssignment3-data.zip file
# Find and read data
getwd()
setwd("/Users/oscarhaavardsholm/Desktop/Coursera Data Science/rprog-data-ProgAssignme... | /Programming_assignment_3.R | no_license | oscarjo89/Coursera_DataScienceSpecialization | R | false | false | 1,356 | r | # Test ?? bruke RStudio p?? gamle macen min..
# Fortsett p?? Coursera kurset Data Science Specialization
# Programming in R
# Week 4
# Programming assignment 3
# Download ProgAssignment3-data.zip file
# Find and read data
getwd()
setwd("/Users/oscarhaavardsholm/Desktop/Coursera Data Science/rprog-data-ProgAssignme... |
#' wgsSomaticCalling
#'
#' @description
#' Align, infer the coverage and the quality of the bam or fastq files
#'
#' @param normalBam Normal bam file of the paired normal tumor set to analyse
#' @param tumorBam Tumor bam file of the paired normal tumor set to analyse
#' @param rstPath Path where to save the coverage an... | /onGoing/wgsSomaticCalling.R | no_license | msubirana/ergWgsTools | R | false | false | 1,827 | r | #' wgsSomaticCalling
#'
#' @description
#' Align, infer the coverage and the quality of the bam or fastq files
#'
#' @param normalBam Normal bam file of the paired normal tumor set to analyse
#' @param tumorBam Tumor bam file of the paired normal tumor set to analyse
#' @param rstPath Path where to save the coverage an... |
# Cleaned data
# See fp_shape_data.R for details
rm(list=ls())
load("auditc.rdata")
gc()
# Sys.setenv(PATH=paste(Sys.getenv("PATH"),"/usr/texbin",sep=":"))
#-------------------------------------------------------------------------------------------
# Packages for Overview
require(survey)
require(Hmisc)
require(vcd)
req... | /AUDITC/fp_overview.R | no_license | ABWerks/Legacy | R | false | false | 6,536 | r | # Cleaned data
# See fp_shape_data.R for details
rm(list=ls())
load("auditc.rdata")
gc()
# Sys.setenv(PATH=paste(Sys.getenv("PATH"),"/usr/texbin",sep=":"))
#-------------------------------------------------------------------------------------------
# Packages for Overview
require(survey)
require(Hmisc)
require(vcd)
req... |
test_that("errors are thrown when they should be", {
x <- rnorm(100)
y <- rnorm(100, 2)
expect_error(mi_confidence(x, y, alpha = 1))
expect_error(tr_confidence(x, y, alpha = 0))
})
| /tests/testthat/test.R | no_license | samdchamberlain/salinity_study | R | false | false | 192 | r | test_that("errors are thrown when they should be", {
x <- rnorm(100)
y <- rnorm(100, 2)
expect_error(mi_confidence(x, y, alpha = 1))
expect_error(tr_confidence(x, y, alpha = 0))
})
|
mydata = read.table('../../TrainingSet/FullSet/AvgRank/skin.csv',head=T,sep=",")
model = lm(IC50 ~ factor(Cancer) + factor(Drug), data=mydata)
sse <- c(crossprod(model$residuals))
sink('./skin.txt',append=TRUE)
print(summary(model))
print(sse)
sink()
| /Model/ANOVA/skin.R | no_license | esbgkannan/QSMART | R | false | false | 251 | r | mydata = read.table('../../TrainingSet/FullSet/AvgRank/skin.csv',head=T,sep=",")
model = lm(IC50 ~ factor(Cancer) + factor(Drug), data=mydata)
sse <- c(crossprod(model$residuals))
sink('./skin.txt',append=TRUE)
print(summary(model))
print(sse)
sink()
|
library(ape)
testtree <- read.tree("2778_6.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="2778_6_unrooted.txt") | /codeml_files/newick_trees_processed/2778_6/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("2778_6.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="2778_6_unrooted.txt") |
#!/usr/bin/env Rscript
library(tidyverse)
library(wesanderson)
args = commandArgs(trailingOnly=TRUE)
result_dir <- args[1]
upfile <- list.files(path=result_dir, pattern="gsea_report_for_na_pos_[0-9]*.xls", full.names=T)[1]
downfile <- list.files(path=result_dir, pattern="gsea_report_for_na_neg_[0-9]*.xls", full.name... | /gsea_tools/plot_gsea_results | no_license | aakrosh/biotools | R | false | false | 1,263 | #!/usr/bin/env Rscript
library(tidyverse)
library(wesanderson)
args = commandArgs(trailingOnly=TRUE)
result_dir <- args[1]
upfile <- list.files(path=result_dir, pattern="gsea_report_for_na_pos_[0-9]*.xls", full.names=T)[1]
downfile <- list.files(path=result_dir, pattern="gsea_report_for_na_neg_[0-9]*.xls", full.name... | |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/herring-main-func.R
\name{herring_main_baseline_assess_func}
\alias{herring_main_baseline_assess_func}
\title{main wrapper function that does all the steps for assessing the baseline}
\usage{
herring_main_baseline_assess_func(baseline... | /man/herring_main_baseline_assess_func.Rd | permissive | eriqande/herring | R | false | false | 1,059 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/herring-main-func.R
\name{herring_main_baseline_assess_func}
\alias{herring_main_baseline_assess_func}
\title{main wrapper function that does all the steps for assessing the baseline}
\usage{
herring_main_baseline_assess_func(baseline... |
parDosa <-
function(cl, seq, fun, cldata,
lib = NULL, dir = NULL, evalq = NULL,
size = 1, balancing = c("none", "load", "size", "both"),
rng.type = c("none", "RNGstream"),
cleanup = TRUE, unload = FALSE, iseed=NULL, ...)
{
## get defaults right for cl argument
cl <- evalParallelArgument(cl, quit... | /R/parDosa.R | no_license | datacloning/dclone | R | false | false | 4,427 | r | parDosa <-
function(cl, seq, fun, cldata,
lib = NULL, dir = NULL, evalq = NULL,
size = 1, balancing = c("none", "load", "size", "both"),
rng.type = c("none", "RNGstream"),
cleanup = TRUE, unload = FALSE, iseed=NULL, ...)
{
## get defaults right for cl argument
cl <- evalParallelArgument(cl, quit... |
testlist <- list(a = 0L, b = 0L, x = c(-9342607L, 1903260017L, 1903260017L, 1903260017L, 1903260017L, 1903260017L, 1903260017L, 1897798399L, 788493402L, 437976862L, 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/1610129259-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 293 | r | testlist <- list(a = 0L, b = 0L, x = c(-9342607L, 1903260017L, 1903260017L, 1903260017L, 1903260017L, 1903260017L, 1903260017L, 1897798399L, 788493402L, 437976862L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(grattan:::anyOutside,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_hipster.R
\name{get_hipster}
\alias{get_hipster}
\title{get_hipster}
\usage{
get_hipster()
}
\description{
Plots an image of a hipster. What else?
}
\examples{
# Get a hipster
get_hipster()
}
\author{
Mike McMahon, \email{Mike.McMahon@df... | /man/get_hipster.Rd | permissive | Maritimes/hipsteR | R | false | true | 335 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_hipster.R
\name{get_hipster}
\alias{get_hipster}
\title{get_hipster}
\usage{
get_hipster()
}
\description{
Plots an image of a hipster. What else?
}
\examples{
# Get a hipster
get_hipster()
}
\author{
Mike McMahon, \email{Mike.McMahon@df... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pepsubs.R
\name{save.varcsv}
\alias{save.varcsv}
\title{Export tryptic peptide variants to fasta file}
\usage{
save.varcsv(infilename, outfilename = "default")
}
\arguments{
\item{infilename}{A file containing the output from the make.var fun... | /man/save.varcsv.Rd | no_license | tobiasvonderhaar/pepvaR | R | false | true | 736 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pepsubs.R
\name{save.varcsv}
\alias{save.varcsv}
\title{Export tryptic peptide variants to fasta file}
\usage{
save.varcsv(infilename, outfilename = "default")
}
\arguments{
\item{infilename}{A file containing the output from the make.var fun... |
acStarter <- function(x,
db,
grpBy_quo = NULL,
polys = NULL,
returnSpatial = FALSE,
byLandType = FALSE,
landType = 'forest',
method = 'TI',
lamb... | /R/areaChange.R | no_license | yangdi1031/rFIA | R | false | false | 17,173 | r | acStarter <- function(x,
db,
grpBy_quo = NULL,
polys = NULL,
returnSpatial = FALSE,
byLandType = FALSE,
landType = 'forest',
method = 'TI',
lamb... |
# Postconfiguration script
library(tidyverse)
library(devtools)
install.packages("ggfortify")
install.packages("zoo")
library(ggfortify)
autoplot(AirPassengers)
| /test1.R | no_license | perryrivera/r_development_presentation | R | false | false | 162 | r | # Postconfiguration script
library(tidyverse)
library(devtools)
install.packages("ggfortify")
install.packages("zoo")
library(ggfortify)
autoplot(AirPassengers)
|
\name{sugm.plot}
\alias{sugm.plot}
\title{
Graph visualization for an object with S3 class \code{"sugm"}
}
\description{
Implements the graph visualization using adjacency matrix. It can automatic organize 2D embedding layout.
}
\usage{
sugm.plot(G, epsflag = FALSE, graph.name = "default", cur.num = 1,
lo... | /man/sugm.plot.Rd | no_license | cran/flare | R | false | false | 1,673 | rd | \name{sugm.plot}
\alias{sugm.plot}
\title{
Graph visualization for an object with S3 class \code{"sugm"}
}
\description{
Implements the graph visualization using adjacency matrix. It can automatic organize 2D embedding layout.
}
\usage{
sugm.plot(G, epsflag = FALSE, graph.name = "default", cur.num = 1,
lo... |
#' Ordering of methylation data
#'
#' Orders methylation data using a given seriation method. This function can also perform a weighted seriation if the method is set to "PCA".
#'
#' @param input.GCH The GCH input data.
#' @param input.HCG The HCG input data.
#' @param Method Indicates the seriation method to use. The ... | /R/initialOrder.R | no_license | pknight24/methylscaper | R | false | false | 4,924 | r | #' Ordering of methylation data
#'
#' Orders methylation data using a given seriation method. This function can also perform a weighted seriation if the method is set to "PCA".
#'
#' @param input.GCH The GCH input data.
#' @param input.HCG The HCG input data.
#' @param Method Indicates the seriation method to use. The ... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{nonlinear_normal_aft}
\alias{nonlinear_normal_aft}
\title{Generate data from a general nonlinear log-normal AFT model.}
\usage{
nonlinear_normal_aft(n, p, sd_err, f, censoring_rate)
}
\arguments{
\item{n}{Sample size.}
\item{p}{Number of covariates.}
\item{sd... | /man/nonlinear_normal_aft.Rd | no_license | daniel-conn17/survsimpack | R | false | false | 1,645 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{nonlinear_normal_aft}
\alias{nonlinear_normal_aft}
\title{Generate data from a general nonlinear log-normal AFT model.}
\usage{
nonlinear_normal_aft(n, p, sd_err, f, censoring_rate)
}
\arguments{
\item{n}{Sample size.}
\item{p}{Number of covariates.}
\item{sd... |
#export LD_LIBRARY_PATH=/usr/local/lib
#R CMD BATCH filename.r
#setwd("~/Downloads/maxent_analysis")
#set working directory
setwd("/home/bharti/D/PostDoc data/centipede_spatial")
library(raster)
library(rgdal)
library(rgeos)
library(reshape2)
library(ggplot2)
library(ggpubr)
library(stringr)
#setting projection
wgs<... | /code7_plots_5Apr21.R | no_license | bhartidk/centipede_diversity_endemism | R | false | false | 6,120 | r | #export LD_LIBRARY_PATH=/usr/local/lib
#R CMD BATCH filename.r
#setwd("~/Downloads/maxent_analysis")
#set working directory
setwd("/home/bharti/D/PostDoc data/centipede_spatial")
library(raster)
library(rgdal)
library(rgeos)
library(reshape2)
library(ggplot2)
library(ggpubr)
library(stringr)
#setting projection
wgs<... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrap_add_prior_information.R
\name{add_prior_information}
\alias{add_prior_information}
\alias{is_wrapper_with_prior_information}
\alias{generate_prior_information}
\title{Add or compute prior information for a trajectory}
\usage{
add_prior_i... | /man/add_prior_information.Rd | permissive | dynverse/dynwrap | R | false | true | 3,951 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrap_add_prior_information.R
\name{add_prior_information}
\alias{add_prior_information}
\alias{is_wrapper_with_prior_information}
\alias{generate_prior_information}
\title{Add or compute prior information for a trajectory}
\usage{
add_prior_i... |
library(twoplane)
library(palm)
library(tcltk)
library(car)
nm2km=1.852 # multiplier to convert nautical miles to kilometres
planeknots=100 # observer speed in knots CHECK THIS
planespd=planeknots*nm2km/(60^2) # observer speed in km/sec
# Density
D = D.2D <- 1.24
# --------------- A few simulations to chck stuff s... | /inst/simruns.R | no_license | david-borchers/twoplane2 | R | false | false | 8,265 | r | library(twoplane)
library(palm)
library(tcltk)
library(car)
nm2km=1.852 # multiplier to convert nautical miles to kilometres
planeknots=100 # observer speed in knots CHECK THIS
planespd=planeknots*nm2km/(60^2) # observer speed in km/sec
# Density
D = D.2D <- 1.24
# --------------- A few simulations to chck stuff s... |
######### Module 1 #########
install.packages("e1071")
install.packages("ggpubr")
install.packages("expss")
install.packages("plotly")
library("readxl")
library("pacman")
library("dplyr")
library("ggplot2")
library("ggpubr")
library(e1071)
library(expss)
library(plotly)
install.packages("ggthemes")
library(ggthemes)
l... | /Week1-RFile-Shah-Dhruvin.R | no_license | drshah96/Graphical-Representation-2017-US-County-Migration-and-Population-Dataset | R | false | false | 10,478 | r | ######### Module 1 #########
install.packages("e1071")
install.packages("ggpubr")
install.packages("expss")
install.packages("plotly")
library("readxl")
library("pacman")
library("dplyr")
library("ggplot2")
library("ggpubr")
library(e1071)
library(expss)
library(plotly)
install.packages("ggthemes")
library(ggthemes)
l... |
library(tm)
library(wordcloud)
library(RColorBrewer)
dest <- "/Users/satyakiroy/Documents/R/pdfs/"
txt = readLines(dest)
#corp<-Corpus(VectorSource(txt))
corp<-Corpus(DirSource(dest, pattern = "txt"))
data<-tm_map(corp,stripWhitespace)
data<-tm_map(data,tolower)
data<-tm_map(data,removeNumbers)
data<-tm_map... | /cloud2.R | no_license | satyakiroy1992/DataSmart | R | false | false | 735 | r | library(tm)
library(wordcloud)
library(RColorBrewer)
dest <- "/Users/satyakiroy/Documents/R/pdfs/"
txt = readLines(dest)
#corp<-Corpus(VectorSource(txt))
corp<-Corpus(DirSource(dest, pattern = "txt"))
data<-tm_map(corp,stripWhitespace)
data<-tm_map(data,tolower)
data<-tm_map(data,removeNumbers)
data<-tm_map... |
# Michael Huffer
# Azure ML Play Type Classifier Web Service
# This script makes a call out to a Azure SQL SB, pulls in some nfl play type data.
# The script then calls the Azure ML web service to predict whether the play is going to be a run or a pass play.
# This script is part of a SQL Saturday 2018 Integrating Azur... | /PLAY_TYPE_CLASSIFIER.R | no_license | mdhuffer299/nfl-azureml | R | false | false | 3,964 | r | # Michael Huffer
# Azure ML Play Type Classifier Web Service
# This script makes a call out to a Azure SQL SB, pulls in some nfl play type data.
# The script then calls the Azure ML web service to predict whether the play is going to be a run or a pass play.
# This script is part of a SQL Saturday 2018 Integrating Azur... |
library(SimDesign)
### Name: add_missing
### Title: Add missing values to a vector given a MCAR, MAR, or MNAR scheme
### Aliases: add_missing
### ** Examples
set.seed(1)
y <- rnorm(1000)
## 10% missing rate with default FUN
head(ymiss <- add_missing(y), 10)
## 50% missing with default FUN
head(ymiss <- add_missi... | /data/genthat_extracted_code/SimDesign/examples/add_missing.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,265 | r | library(SimDesign)
### Name: add_missing
### Title: Add missing values to a vector given a MCAR, MAR, or MNAR scheme
### Aliases: add_missing
### ** Examples
set.seed(1)
y <- rnorm(1000)
## 10% missing rate with default FUN
head(ymiss <- add_missing(y), 10)
## 50% missing with default FUN
head(ymiss <- add_missi... |
context("Testing survnma outputs / inputs")
df <- data.frame(
stringsAsFactors = FALSE,
"treatment" = c("Suni", "Ifn", "Suni", "Pazo"),
"study" = c("Study 1", "Study 1", "Study 2", "Study 2"),
"baseline" = c("Suni", "Suni", "Suni", "Suni"),
"filepath" = sapply(c("Mota_OS_Suni_KM.txt",
... | /tests/testthat/test_survnma.R | no_license | certara/survivalnma | R | false | false | 1,627 | r | context("Testing survnma outputs / inputs")
df <- data.frame(
stringsAsFactors = FALSE,
"treatment" = c("Suni", "Ifn", "Suni", "Pazo"),
"study" = c("Study 1", "Study 1", "Study 2", "Study 2"),
"baseline" = c("Suni", "Suni", "Suni", "Suni"),
"filepath" = sapply(c("Mota_OS_Suni_KM.txt",
... |
/Sap_xep_n_Tim_kiem.R | no_license | TranThiDieuHien/RStudio-CTDLvsGT | R | false | false | 1,771 | r | ||
\name{rho}
\alias{rho}
\title{Dillon-Goldstein's rho}
\usage{
rho(X)
}
\arguments{
\item{X}{matrix representing one block of manifest
variables}
}
\value{
Dillon-Goldstein's rho
}
\description{
Dillon-Goldstein's rho of a single block of variables
}
\examples{
\dontrun{
# load dataset satisfaction
data(sati... | /man/rho.Rd | no_license | gastonstat/plspm | R | false | false | 561 | rd | \name{rho}
\alias{rho}
\title{Dillon-Goldstein's rho}
\usage{
rho(X)
}
\arguments{
\item{X}{matrix representing one block of manifest
variables}
}
\value{
Dillon-Goldstein's rho
}
\description{
Dillon-Goldstein's rho of a single block of variables
}
\examples{
\dontrun{
# load dataset satisfaction
data(sati... |
###################################################
### code chunk number 2: Cs00_required-libraries
###################################################
library(MARSS)
library(KFAS)
library(ggplot2) # plotting
library(tidyr) # data frame manipulation
###################################################
### code chunk ... | /inst/userguide/doc/Chapter_KFAS.R | permissive | nwfsc-timeseries/MARSS | R | false | false | 28,122 | r | ###################################################
### code chunk number 2: Cs00_required-libraries
###################################################
library(MARSS)
library(KFAS)
library(ggplot2) # plotting
library(tidyr) # data frame manipulation
###################################################
### code chunk ... |
# ns <- as_data_table_nodes(RF)$id
# expr <-RF$DB1.tab1$r_expr)
#
# stringr::str_extract(string = expr, pattern = stringr::fixed(ns))
which.name <- function(x) names(which(x))
detect_deps <- function(x, ...) {
UseMethod("detect_deps", x)
}
detect_deps.NULL <- function(x, node_ids) {
character()
}
detect_deps.ch... | /R/verify_deps.R | permissive | vh-d/Rflow | R | false | false | 7,492 | r | # ns <- as_data_table_nodes(RF)$id
# expr <-RF$DB1.tab1$r_expr)
#
# stringr::str_extract(string = expr, pattern = stringr::fixed(ns))
which.name <- function(x) names(which(x))
detect_deps <- function(x, ...) {
UseMethod("detect_deps", x)
}
detect_deps.NULL <- function(x, node_ids) {
character()
}
detect_deps.ch... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{bin_cumulative}
\alias{bin_cumulative}
\title{bin_cumulative}
\usage{
bin_cumulative(trials, prob)
}
\arguments{
\item{trials}{Number of trials}
\item{prob}{probability of success in a single trial}
}
\value{
bincum : Retur... | /binomial/man/bin_cumulative.Rd | no_license | ranmeng747/R-Data-Vis-and-Pkg-Development | R | false | true | 598 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{bin_cumulative}
\alias{bin_cumulative}
\title{bin_cumulative}
\usage{
bin_cumulative(trials, prob)
}
\arguments{
\item{trials}{Number of trials}
\item{prob}{probability of success in a single trial}
}
\value{
bincum : Retur... |
# module for reading covid19.analytics RNA sequence
#
# M.Ponce
covid19.genomic.data <- function(graphics.ON=TRUE) {
#' function to obtain sequencing data grom NCBI
#' Reference: https://www.ncbi.nlm.nih.gov/nuccore/NC_045512.2
#'
#' @param graphics.ON flag to activate/deactivate graphical output
#'
#' @importFrom... | /R/covid19_seq.R | no_license | donortilesnew/covid19.analytics | R | false | false | 1,021 | r | # module for reading covid19.analytics RNA sequence
#
# M.Ponce
covid19.genomic.data <- function(graphics.ON=TRUE) {
#' function to obtain sequencing data grom NCBI
#' Reference: https://www.ncbi.nlm.nih.gov/nuccore/NC_045512.2
#'
#' @param graphics.ON flag to activate/deactivate graphical output
#'
#' @importFrom... |
library(ggplot2)
advertising <- read.csv("Advertising.csv")
fit <- lm(Sales ~ TV, data=advertising)
summary(fit)
ggplot(advertising, aes(x = TV, y = Sales)) +
geom_smooth(method = "lm", se=FALSE, color="red", formula = y ~ x) +
geom_point()
| /03.1-simple-linear-regression/Advertising.R | no_license | craigching/datascience-course | R | false | false | 249 | r | library(ggplot2)
advertising <- read.csv("Advertising.csv")
fit <- lm(Sales ~ TV, data=advertising)
summary(fit)
ggplot(advertising, aes(x = TV, y = Sales)) +
geom_smooth(method = "lm", se=FALSE, color="red", formula = y ~ x) +
geom_point()
|
Library(dplr)
test < -mean(a)
| /analysis.r | no_license | ellejaygroundifm3/git-test | R | false | false | 31 | r | Library(dplr)
test < -mean(a)
|
library("kknn")
library("caTools") #must be install for split
library("RCurl") # must be install for acess table url on MacBook --getURL
#Getting data with header from EDX
data <- getURL("https://d37djvu3ytnwxt.cloudfront.net/assets/courseware/v1/e39a3df780dacd5503df6a8322d72cd2/asset-v1:GTx+ISYE6501x+2T2017+type@asse... | /Introduction_to_Analytics_Modeling/HW1/Q2--KNN-bestK.R | no_license | wiflore/GT-Analytics | R | false | false | 1,920 | r | library("kknn")
library("caTools") #must be install for split
library("RCurl") # must be install for acess table url on MacBook --getURL
#Getting data with header from EDX
data <- getURL("https://d37djvu3ytnwxt.cloudfront.net/assets/courseware/v1/e39a3df780dacd5503df6a8322d72cd2/asset-v1:GTx+ISYE6501x+2T2017+type@asse... |
## Clear workspace
#rm (list = ls())
#library(tidyverse)
#read_csv("data/scenarios/accra/baseline_and_scenarios.csv")
# Remove short walking, 99, Train, Other and Unspecified modes
dataset <- filter(bs[[INDEX]], ! trip_mode %in% c('Short Walking', "99", "Train", "Other", "Unspecified"))
# Unique number of ind
tota... | /code/scenarios/accra/dist_dur_tbls.R | no_license | walkabillylab/ITHIM-R | R | false | false | 5,084 | r | ## Clear workspace
#rm (list = ls())
#library(tidyverse)
#read_csv("data/scenarios/accra/baseline_and_scenarios.csv")
# Remove short walking, 99, Train, Other and Unspecified modes
dataset <- filter(bs[[INDEX]], ! trip_mode %in% c('Short Walking', "99", "Train", "Other", "Unspecified"))
# Unique number of ind
tota... |
pollutantmean <- function(directory, pollutant, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'pollutant' is a character vector of length 1 indicating
## the name of the pollutant for which we will calculate the
## mean; either "sulfate" or "n... | /pollutantDataAnalysis/pollutantmean.R | no_license | kaniska/R_Workshop | R | false | false | 1,037 | r | pollutantmean <- function(directory, pollutant, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'pollutant' is a character vector of length 1 indicating
## the name of the pollutant for which we will calculate the
## mean; either "sulfate" or "n... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615766029-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,803 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
install_github("daroczig/binancer")
# clean base
rm(list = ls())
# Libraries
library(magrittr)
library(plotly)
library(quantmod)
library(dplyr)
library(PerformanceAnalytics)
library(binancer)
library(emayili)
library(openxlsx)
# Begin cycle
repeat {
# Source functions
#so... | /test.R | no_license | kshlsa/Bitcoin_Trading_Bot | R | false | false | 3,621 | r | install_github("daroczig/binancer")
# clean base
rm(list = ls())
# Libraries
library(magrittr)
library(plotly)
library(quantmod)
library(dplyr)
library(PerformanceAnalytics)
library(binancer)
library(emayili)
library(openxlsx)
# Begin cycle
repeat {
# Source functions
#so... |
library("zoo")
IPEDS <- read.csv("data.csv")
IPEDS <- IPEDS[,-c(1,2)]
School_location <- IPEDS[,c("UNITID", "INSTNM", "LONGITUD", "LATITUDE", "YEAR")]
School_locations <- unique(School_location[order(School_location$UNITID,
School_location$YEAR,
decreasing = TRUE),])
# Your latitude and longitude variables are... | /code/draft_scripts/interpolation_script.R | no_license | scmcdonald/honorsthesis | R | false | false | 2,198 | r | library("zoo")
IPEDS <- read.csv("data.csv")
IPEDS <- IPEDS[,-c(1,2)]
School_location <- IPEDS[,c("UNITID", "INSTNM", "LONGITUD", "LATITUDE", "YEAR")]
School_locations <- unique(School_location[order(School_location$UNITID,
School_location$YEAR,
decreasing = TRUE),])
# Your latitude and longitude variables are... |
##############################################################################
## Re-analysis of single-channel microarray of Anna Beatriz - ABI - 2012 #
## 2017-02-27
## Reviwed May 2018.
##############################################################################
set.seed(210920)
options(digits = 3)
### Loa... | /ind_dataset_analysis/GSE35423.R | no_license | thyagoleal/leprosy_reanalysis_paper | R | false | false | 15,536 | r | ##############################################################################
## Re-analysis of single-channel microarray of Anna Beatriz - ABI - 2012 #
## 2017-02-27
## Reviwed May 2018.
##############################################################################
set.seed(210920)
options(digits = 3)
### Loa... |
table(mtcars$cyl)
summary(mtcars$cyl)
library(dplyr)
mtcars%>% group_by(cyl)%>%tally()
xatbs(~cyl, data=mtcars)
ftable(mtcars$cyl)
?xtabs
#cyl and mpg
xtabs(~cyl,~mpg,data=mtcars)
table(mtcars$cyl, mtcars$mpg)
table(mtcars$cyl,mtcars$mpg, dnn=c('cylinder','mpg'))
mtcars%>%group_by(cyl,mpg)%>%tally()
mtcars%>%group_by... | /Day2.R | no_license | prakashray27/analytics | R | false | false | 4,255 | r | table(mtcars$cyl)
summary(mtcars$cyl)
library(dplyr)
mtcars%>% group_by(cyl)%>%tally()
xatbs(~cyl, data=mtcars)
ftable(mtcars$cyl)
?xtabs
#cyl and mpg
xtabs(~cyl,~mpg,data=mtcars)
table(mtcars$cyl, mtcars$mpg)
table(mtcars$cyl,mtcars$mpg, dnn=c('cylinder','mpg'))
mtcars%>%group_by(cyl,mpg)%>%tally()
mtcars%>%group_by... |
#' ---
#' title: "Estimating the temperature-CH4 relationship from SiBCASA outputs"
#' author: Alexey Shiklomanov
#' output_format:
#' rmarkdown::html_document
#' ---
#' # Setup
#'
#' Load necessary libraries
library(readxl)
library(tidyverse)
library(tsibble, exclude = "id")
library(cowplot)
theme_set(theme_cowplo... | /analysis/scripts/sibcasa-explore.R | permissive | ashiklom/hector_permafrost_emit | R | false | false | 7,635 | r | #' ---
#' title: "Estimating the temperature-CH4 relationship from SiBCASA outputs"
#' author: Alexey Shiklomanov
#' output_format:
#' rmarkdown::html_document
#' ---
#' # Setup
#'
#' Load necessary libraries
library(readxl)
library(tidyverse)
library(tsibble, exclude = "id")
library(cowplot)
theme_set(theme_cowplo... |
suppressWarnings(suppressPackageStartupMessages(library(xbioc)))
suppressWarnings(suppressPackageStartupMessages(library(MuSiC)))
args <- commandArgs(trailingOnly = TRUE)
source(args[1])
printout <- function(text) {
if (typeof(text) %in% c("list", "vector")) {
write.table(text, file = outfile_tab, quote ... | /tools/music_deconvolution/scripts/inspect.R | no_license | Delphine-L/galaxytools | R | false | false | 741 | r |
suppressWarnings(suppressPackageStartupMessages(library(xbioc)))
suppressWarnings(suppressPackageStartupMessages(library(MuSiC)))
args <- commandArgs(trailingOnly = TRUE)
source(args[1])
printout <- function(text) {
if (typeof(text) %in% c("list", "vector")) {
write.table(text, file = outfile_tab, quote ... |
# Pakete laden
library(rstan)
library(ggplot2)
library(data.table)
# Multithreading aktivieren
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
# Daten laden
d <- fread("data/heights.csv")
# 1.
ols_fit <- lm(height ~ weight, data = d)
summary(ols_fit)
# 2.
stan_data <- list(
"N" =... | /R/examples/02_linreg.R | no_license | p-gw/stan-workshop-2017 | R | false | false | 1,815 | r | # Pakete laden
library(rstan)
library(ggplot2)
library(data.table)
# Multithreading aktivieren
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
# Daten laden
d <- fread("data/heights.csv")
# 1.
ols_fit <- lm(height ~ weight, data = d)
summary(ols_fit)
# 2.
stan_data <- list(
"N" =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/detect_resource_inconsistencies.R
\name{detect_resource_inconsistencies}
\alias{detect_resource_inconsistencies}
\title{Detect resource inconsistencies}
\usage{
detect_resource_inconsistencies(eventlog, filter_condition)
}
\arguments{... | /man/detect_resource_inconsistencies.Rd | no_license | cran/bupaR | R | false | true | 594 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/detect_resource_inconsistencies.R
\name{detect_resource_inconsistencies}
\alias{detect_resource_inconsistencies}
\title{Detect resource inconsistencies}
\usage{
detect_resource_inconsistencies(eventlog, filter_condition)
}
\arguments{... |
library("cluster")
library("factoextra")
library("magrittr")
# Load and prepare the data
data("USArrests")
setwd('/home/yashwanth/Downloads')
rd=read.csv('glasses.csv')
rd=as.data.frame(rd)#Converting to a DataFrame
rd=rd[1:ncol(rd)-1]#Removing the label
my_data <-rd %>%
na.omit() %>% # Remove missing valu... | /kmeans_with_glasses_csv.R | no_license | chYashwanth/Datamining-programs | R | false | false | 1,300 | r | library("cluster")
library("factoextra")
library("magrittr")
# Load and prepare the data
data("USArrests")
setwd('/home/yashwanth/Downloads')
rd=read.csv('glasses.csv')
rd=as.data.frame(rd)#Converting to a DataFrame
rd=rd[1:ncol(rd)-1]#Removing the label
my_data <-rd %>%
na.omit() %>% # Remove missing valu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/differential_discovery.R
\name{tof_daa_glmm}
\alias{tof_daa_glmm}
\title{Differential Abundance Analysis (DAA) with generalized linear mixed-models (GLMMs)}
\usage{
tof_daa_glmm(
tof_tibble,
sample_col,
cluster_col,
fixed_effect_cols,... | /man/tof_daa_glmm.Rd | permissive | sandeshregmi/tidytof | R | false | true | 4,986 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/differential_discovery.R
\name{tof_daa_glmm}
\alias{tof_daa_glmm}
\title{Differential Abundance Analysis (DAA) with generalized linear mixed-models (GLMMs)}
\usage{
tof_daa_glmm(
tof_tibble,
sample_col,
cluster_col,
fixed_effect_cols,... |
FMPartDSA <- function(newmodels=list()){
me <- FMRegressor()
class(me) <- append(class(me),"FMPartDSA")
me$models <- if(length(newmodels) != 0) newmodels else getFMModels(me)
return(me)
}
getFMModels.FMPartDSA <- function(){
allModels <- list(getModel.partDSA())
return(allModels)
}
getModel.partDSA<-fun... | /code/models/partdsa.R | no_license | miguelangcosta/forecasting-machine | R | false | false | 752 | r | FMPartDSA <- function(newmodels=list()){
me <- FMRegressor()
class(me) <- append(class(me),"FMPartDSA")
me$models <- if(length(newmodels) != 0) newmodels else getFMModels(me)
return(me)
}
getFMModels.FMPartDSA <- function(){
allModels <- list(getModel.partDSA())
return(allModels)
}
getModel.partDSA<-fun... |
# local package directory whose existence triggers this script
.projlib <- normalizePath('R-lib');
# default CRAN repo
.projrep <- 'https://cloud.r-project.org';
# packages to load BEFORE adding .projlib to the library path
# (uncomment the line after next and put in package names)
.projpre <- c();
#.projpre <- 'dply... | /projlib.R | no_license | bokov/shish | R | false | false | 3,071 | r | # local package directory whose existence triggers this script
.projlib <- normalizePath('R-lib');
# default CRAN repo
.projrep <- 'https://cloud.r-project.org';
# packages to load BEFORE adding .projlib to the library path
# (uncomment the line after next and put in package names)
.projpre <- c();
#.projpre <- 'dply... |
\name{GM}
\alias{GM}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Multithreaded Gaussian mixture trainer
}
\description{
The traditional training algorithm via maximum likelihood for parameterizing weighted data with a mixture of Gaussian PDFs. Bounds on covariance matrix eigen ratios and mixt... | /man/GM.Rd | no_license | cran/GMKMcharlie | R | false | false | 12,016 | rd | \name{GM}
\alias{GM}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Multithreaded Gaussian mixture trainer
}
\description{
The traditional training algorithm via maximum likelihood for parameterizing weighted data with a mixture of Gaussian PDFs. Bounds on covariance matrix eigen ratios and mixt... |
#' @title Detect Attack
#'
#' @description This function takes in a payload and analyses it for malicious strings.
#' If malicious strings are found it will return an indicator and tokenized data (fingerprint).
#'
#' @details Detect SQLi or XSS in parameter or request body payload.
#' The process of detection and cl... | /R/detectAttack.R | permissive | O1sims/injectR | R | false | false | 1,742 | r | #' @title Detect Attack
#'
#' @description This function takes in a payload and analyses it for malicious strings.
#' If malicious strings are found it will return an indicator and tokenized data (fingerprint).
#'
#' @details Detect SQLi or XSS in parameter or request body payload.
#' The process of detection and cl... |
rmas_dir <- "C:/Users/bai.li/Documents/Github/RMAS-master/src/"
devtools::load_all(rmas_dir)
setwd("C:/Users/bai.li/Documents/Github/Age_Structured_Stock_Assessment_Model_Comparison/ASSAMC/")
#setwd("C:/Users/bai.li/Documents/Github/Age_Structured_Stock_Assessment_Model_Comparison/ASSAMC/")
devtools::load_all()
## Nee... | /example/example_withRMAS.R | no_license | JonBrodziak/Age_Structured_Stock_Assessment_Model_Comparison | R | false | false | 3,257 | r | rmas_dir <- "C:/Users/bai.li/Documents/Github/RMAS-master/src/"
devtools::load_all(rmas_dir)
setwd("C:/Users/bai.li/Documents/Github/Age_Structured_Stock_Assessment_Model_Comparison/ASSAMC/")
#setwd("C:/Users/bai.li/Documents/Github/Age_Structured_Stock_Assessment_Model_Comparison/ASSAMC/")
devtools::load_all()
## Nee... |
# importing library
library(dplyr)
# reading mechacar data csv file into dataframe
mechacar_data <- read.csv(file='MechaCar_mpg.csv', check.names = F, stringsAsFactors = F)
# creating multiple linear regression model
lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ground_clearance + AWD, data=mechacar_dat... | /MechaCarChallenge.R | no_license | taranahassan/MechaCar_Statistical_Analysis | R | false | false | 1,456 | r | # importing library
library(dplyr)
# reading mechacar data csv file into dataframe
mechacar_data <- read.csv(file='MechaCar_mpg.csv', check.names = F, stringsAsFactors = F)
# creating multiple linear regression model
lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ground_clearance + AWD, data=mechacar_dat... |
## ff_scoringhistory (ESPN) ##
#' Get a dataframe of scoring history, utilizing the ff_scoring and load_player_stats functions.
#'
#' @param conn a conn object created by `ff_connect()`
#' @param season season a numeric vector of seasons (earliest available year is 1999)
#' @param ... other arguments
#'
#' @examples
#... | /R/espn_scoringhistory.R | permissive | mgirlich/ffscrapr | R | false | false | 2,854 | r | ## ff_scoringhistory (ESPN) ##
#' Get a dataframe of scoring history, utilizing the ff_scoring and load_player_stats functions.
#'
#' @param conn a conn object created by `ff_connect()`
#' @param season season a numeric vector of seasons (earliest available year is 1999)
#' @param ... other arguments
#'
#' @examples
#... |
context("Bounding and Rounding")
# Test bound
test_that("bound output", {
expect_equal(bound(1:10, 2, 8),
c(2, 2, 3, 4, 5, 6, 7, 8, 8, 8))
expect_equal(bound(1:5, upper = 3),
c(1, 2, 3, 3, 3))
expect_equal(bound(1:5, lower = 3),
c(3, 3, 3, 4, 5))
expect_equal(bound... | /tests/testthat/test_Bounding_and_Rounding.R | permissive | KO112/KO | R | false | false | 612 | r | context("Bounding and Rounding")
# Test bound
test_that("bound output", {
expect_equal(bound(1:10, 2, 8),
c(2, 2, 3, 4, 5, 6, 7, 8, 8, 8))
expect_equal(bound(1:5, upper = 3),
c(1, 2, 3, 3, 3))
expect_equal(bound(1:5, lower = 3),
c(3, 3, 3, 4, 5))
expect_equal(bound... |
# Script to recreate figures 3a and 3b from Lek et al in review
library(binom)
# Load data
source('exac_constants.R')
if (!("constraint" %in% ls(globalenv()))) {
constraint = load_constraint_data()
}
# Figure 3A (Z score dist)
constraint_density_plot = function(save_plot=T) {
if (save_plot) {
pdf('figures/con... | /analysis/constraint/overall_constraint_figure_script.R | permissive | tpall/exac_2015 | R | false | false | 7,156 | r | # Script to recreate figures 3a and 3b from Lek et al in review
library(binom)
# Load data
source('exac_constants.R')
if (!("constraint" %in% ls(globalenv()))) {
constraint = load_constraint_data()
}
# Figure 3A (Z score dist)
constraint_density_plot = function(save_plot=T) {
if (save_plot) {
pdf('figures/con... |
`ensemble.raster` <- function(
xn=NULL,
models.list=NULL,
input.weights=models.list$output.weights,
thresholds=models.list$thresholds,
RASTER.species.name=models.list$species.name,
RASTER.stack.name=xn@title,
RASTER.format="GTiff", RASTER.datatype="INT2S", RASTER.NAflag=-32767,
... | /R/ensemble.raster.R | no_license | cran/BiodiversityR | R | false | false | 125,442 | r | `ensemble.raster` <- function(
xn=NULL,
models.list=NULL,
input.weights=models.list$output.weights,
thresholds=models.list$thresholds,
RASTER.species.name=models.list$species.name,
RASTER.stack.name=xn@title,
RASTER.format="GTiff", RASTER.datatype="INT2S", RASTER.NAflag=-32767,
... |
require(plotly)
require(tidyverse)
library(Rvcg)
library(morpho)
mesh1=vcgCone(0.5,0.5,h=1)
mesh2=vcgCone(1,1,h=1)
plot_ly(
x = mesh1$vb[1,], y = mesh1$vb[2,], z = mesh1$vb[3,],
i = mesh1$it[1,]-1, j = mesh1$it[2,]-1, k = mesh1$it[3,]-1,
intensity = mesh$vb[3,],
type = "mesh3d",
)%>% layout(scene... | /workflow/extra_scripts/plotly_explore.R | permissive | AdamWilsonLab/meshSDM | R | false | false | 521 | r | require(plotly)
require(tidyverse)
library(Rvcg)
library(morpho)
mesh1=vcgCone(0.5,0.5,h=1)
mesh2=vcgCone(1,1,h=1)
plot_ly(
x = mesh1$vb[1,], y = mesh1$vb[2,], z = mesh1$vb[3,],
i = mesh1$it[1,]-1, j = mesh1$it[2,]-1, k = mesh1$it[3,]-1,
intensity = mesh$vb[3,],
type = "mesh3d",
)%>% layout(scene... |
## Coursera - Exploring Data
## Project 2
## function: plot4
# Across the United States change in emissions from coal combustion-related
# sources from 1999–2008?
## Plot description:
## 4 panel plot (source), Baltimore only
## y = sum(Emissions by year), x = year
## Strategy
## 1. find which SCC codes in S... | /plot4.R | no_license | chubbybunny123/ExData_Proj2 | R | false | false | 1,921 | r | ## Coursera - Exploring Data
## Project 2
## function: plot4
# Across the United States change in emissions from coal combustion-related
# sources from 1999–2008?
## Plot description:
## 4 panel plot (source), Baltimore only
## y = sum(Emissions by year), x = year
## Strategy
## 1. find which SCC codes in S... |
################################################################################
# 1 setup -----
# install.packages("usethis")
R.version.string
usethis::git_sitrep()
install.packages("blogdown")
blogdown::install_hugo()
blogdown::hugo_version()
#######################################################################... | /nabcviz.R | permissive | piyayut-ch/nabcviz | R | false | false | 1,563 | r | ################################################################################
# 1 setup -----
# install.packages("usethis")
R.version.string
usethis::git_sitrep()
install.packages("blogdown")
blogdown::install_hugo()
blogdown::hugo_version()
#######################################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survival_functions.R
\name{normboot.haz}
\alias{normboot.haz}
\title{Bootstrap hazards}
\usage{
normboot.haz(x, t, start, newdata = NULL, X = NULL, fn, B)
}
\description{
Bootstrap hazards
}
| /man/normboot.haz.Rd | permissive | Dawei-Zhu85/darthtools | R | false | true | 269 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survival_functions.R
\name{normboot.haz}
\alias{normboot.haz}
\title{Bootstrap hazards}
\usage{
normboot.haz(x, t, start, newdata = NULL, X = NULL, fn, B)
}
\description{
Bootstrap hazards
}
|
# Create a tidy data set from the Samsung motion data sets FEB-2015
#
# STEP A. Download the ZIP file & extract the data, perform this step only once, and then comment them out!
#
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
... | /run_analysis.R | no_license | svenbear/Tidy_Data_Project | R | false | false | 4,422 | r | # Create a tidy data set from the Samsung motion data sets FEB-2015
#
# STEP A. Download the ZIP file & extract the data, perform this step only once, and then comment them out!
#
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cocYEAR.R
\docType{data}
\name{CoC_2013}
\alias{CoC_2013}
\title{2013 Continuum of Care (CoC) GIS shapefiles and Homeless Counts}
\format{An object of class \code{SpatialPolygonsDataFrame} with 406 rows and 26 columns.}
\source{
https://www.h... | /man/CoC_2013.Rd | no_license | dcook137/CoCHomeless | R | false | true | 627 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cocYEAR.R
\docType{data}
\name{CoC_2013}
\alias{CoC_2013}
\title{2013 Continuum of Care (CoC) GIS shapefiles and Homeless Counts}
\format{An object of class \code{SpatialPolygonsDataFrame} with 406 rows and 26 columns.}
\source{
https://www.h... |
#' @docType package
#' @name aws.cloudwatch-package
#' @aliases aws.cloudwatch-package aws.cloudwatch
#' @title aws.cloudwatch
#' @description AWS CloudWatch Client Package
#' @details A simple client package for the Amazon Web Services AWS CloudWatch REST APIs. The package wraps three separate APIs: the CloudWatch API... | /R/aws.cloudwatch-package.R | no_license | cloudyr/aws.cloudwatch | R | false | false | 992 | r | #' @docType package
#' @name aws.cloudwatch-package
#' @aliases aws.cloudwatch-package aws.cloudwatch
#' @title aws.cloudwatch
#' @description AWS CloudWatch Client Package
#' @details A simple client package for the Amazon Web Services AWS CloudWatch REST APIs. The package wraps three separate APIs: the CloudWatch API... |
pirls.mean <-
function(variable, by, data, export=FALSE, name= "output", folder=getwd()) {
intsvy.mean(variable=variable, by=by, data=data,
export=export, name=name, folder=folder,
config=pirls_conf)
} | /intsvy/R/pirls.mean.R | no_license | ingted/R-Examples | R | false | false | 251 | r | pirls.mean <-
function(variable, by, data, export=FALSE, name= "output", folder=getwd()) {
intsvy.mean(variable=variable, by=by, data=data,
export=export, name=name, folder=folder,
config=pirls_conf)
} |
library("readxl")
setwd("C:/Users/brendan/Documents/sravandevanathan/")
pheno <- read_excel("061518_phenotypes.xlsx")
# all mutant carriers
I.one <- c('L3_ACTTGA', "L6_TTAGGC")
II.eight <- c("L3_GGCTAC")
III.two <- c("L3_CGATGT", "L6_ACAGTG", "L2_ATCACG","L2_GCCAAT", "L6_TGACCA")
III.three <- c("L6_GCCAAT", "L6_ACTTG... | /Transcript_Based/analysis/Brendan/Working Dataset/Phenotypes/pheno generation.R | no_license | brendan4/sravandevanathan | R | false | false | 3,783 | r | library("readxl")
setwd("C:/Users/brendan/Documents/sravandevanathan/")
pheno <- read_excel("061518_phenotypes.xlsx")
# all mutant carriers
I.one <- c('L3_ACTTGA', "L6_TTAGGC")
II.eight <- c("L3_GGCTAC")
III.two <- c("L3_CGATGT", "L6_ACAGTG", "L2_ATCACG","L2_GCCAAT", "L6_TGACCA")
III.three <- c("L6_GCCAAT", "L6_ACTTG... |
# Import packages ---------------------------------------------------------
library(tidyverse)
library(vegan)
library(lme4)
library(lmerTest)
library(emmeans)
library(multcomp)
library(ggsci)
# Import data -------------------------------------------------------------
df_biomass_clean <- read.csv("biomass_12_Mar.c... | /data_analysis_12_Mar.R | no_license | jaymicro/iran_data | R | false | false | 16,148 | r |
# Import packages ---------------------------------------------------------
library(tidyverse)
library(vegan)
library(lme4)
library(lmerTest)
library(emmeans)
library(multcomp)
library(ggsci)
# Import data -------------------------------------------------------------
df_biomass_clean <- read.csv("biomass_12_Mar.c... |
#' Plot movement rates from model output
#'
#' Plots estimated movement rates in final year for each area/seaon with movement as
#' reported in Report.sso. If movement is time-varying, an additional figure shows
#' pattern across years.
#'
#'
#' @param replist list created by \code{\link{SS_output}}
#' @param plot p... | /R/SSplotMovementRates.R | no_license | thefaylab/r4ss | R | false | false | 11,354 | r | #' Plot movement rates from model output
#'
#' Plots estimated movement rates in final year for each area/seaon with movement as
#' reported in Report.sso. If movement is time-varying, an additional figure shows
#' pattern across years.
#'
#'
#' @param replist list created by \code{\link{SS_output}}
#' @param plot p... |
library(philr); packageVersion("philr")
library(phyloseq); packageVersion("phyloseq")
library(ape); packageVersion("ape")
library(ggplot2); packageVersion("ggplot2")
library(glmnet); packageVersion('glmnet')
library(ggtree); packageVersion("ggtree")
library(ggimage); packageVersion("ggimage")
library(dplyr); pac... | /2_statistical_analysis_and_figures/Fig4C.script.R | permissive | POMMS/methods_baseline_insights | R | false | false | 12,683 | r | library(philr); packageVersion("philr")
library(phyloseq); packageVersion("phyloseq")
library(ape); packageVersion("ape")
library(ggplot2); packageVersion("ggplot2")
library(glmnet); packageVersion('glmnet')
library(ggtree); packageVersion("ggtree")
library(ggimage); packageVersion("ggimage")
library(dplyr); pac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.