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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/robomaker_operations.R
\name{robomaker_list_world_generation_jobs}
\alias{robomaker_list_world_generation_jobs}
\title{Lists world generator jobs}
\usage{
robomaker_list_world_generation_jobs(nextToken, maxResults, filters)
}
\arguments{
\ite... | /cran/paws.robotics/man/robomaker_list_world_generation_jobs.Rd | permissive | sanchezvivi/paws | R | false | true | 1,657 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/robomaker_operations.R
\name{robomaker_list_world_generation_jobs}
\alias{robomaker_list_world_generation_jobs}
\title{Lists world generator jobs}
\usage{
robomaker_list_world_generation_jobs(nextToken, maxResults, filters)
}
\arguments{
\ite... |
#' @name primate.dat
#' @title Primate line transect survey data.
#' @docType data
#' @description Locations relative to the observer of 127 detections of primates from a
#' visual survey conducted by three sets of trained observers walking previously cut line
#' transects in primary tropical rainforest.
#' @usage p... | /R/data.r | no_license | david-borchers/LT2D | R | false | false | 1,825 | r |
#' @name primate.dat
#' @title Primate line transect survey data.
#' @docType data
#' @description Locations relative to the observer of 127 detections of primates from a
#' visual survey conducted by three sets of trained observers walking previously cut line
#' transects in primary tropical rainforest.
#' @usage p... |
#
# Copyright 2007-2017 The OpenMx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | /inst/models/passing/test_thresh_kept_in_order.R | no_license | ktargows/OpenMx | R | false | false | 2,711 | r | #
# Copyright 2007-2017 The OpenMx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
library(plyr)
library(emdbook)
source('../R/Libraries/GLM.functions.R')
data = read.table('../Output/omg.huge.output.tsv', sep='\t', header=TRUE)
wi = read.table('../supporting files/WI_boundary_lat_lon.tsv', sep='\t', header=TRUE)
driver.data = read.table('../Output/driver.JAS.means.tsv', sep='\t', header=TRU... | /demo/pub_code/R.Figures/figure.maps.R | permissive | USGS-R/mda.lakes | R | false | false | 5,044 | r |
library(plyr)
library(emdbook)
source('../R/Libraries/GLM.functions.R')
data = read.table('../Output/omg.huge.output.tsv', sep='\t', header=TRUE)
wi = read.table('../supporting files/WI_boundary_lat_lon.tsv', sep='\t', header=TRUE)
driver.data = read.table('../Output/driver.JAS.means.tsv', sep='\t', header=TRU... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/arrival.process.R
\name{arrival.process}
\alias{arrival.process}
\title{Generates patient arrival data}
\usage{
arrival.process(nr.datasets = 1, seed = NULL, rates.by.disease,
mutants.by.disease = NULL, mutants.by.module = NULL, by.module =... | /man/arrival.process.Rd | no_license | stefvanbuuren/BayesAdaptive | R | false | true | 1,797 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/arrival.process.R
\name{arrival.process}
\alias{arrival.process}
\title{Generates patient arrival data}
\usage{
arrival.process(nr.datasets = 1, seed = NULL, rates.by.disease,
mutants.by.disease = NULL, mutants.by.module = NULL, by.module =... |
library(ggplot2)
library(corrplot)
mtcars <- read.csv("Seccion 09 - El paquete ggplot2/mtcars.csv")
mtcars$X <- NULL
mtcars.cor <- cor(mtcars,
method = "pearson")
round(mtcars.cor,
digits = 2)
corrplot(mtcars.cor)
corrplot(mtcars.cor,
method = "shade",
shade.col = NA,
... | /Seccion 09 - El paquete ggplot2/118 - Graficos con Matrices de correlación.R | no_license | achiola/r | R | false | false | 3,557 | r | library(ggplot2)
library(corrplot)
mtcars <- read.csv("Seccion 09 - El paquete ggplot2/mtcars.csv")
mtcars$X <- NULL
mtcars.cor <- cor(mtcars,
method = "pearson")
round(mtcars.cor,
digits = 2)
corrplot(mtcars.cor)
corrplot(mtcars.cor,
method = "shade",
shade.col = NA,
... |
\name{read_indexing_PCR}
\alias{read_idx}
\title{Parsing Indexing PCRs}
\usage{
read_indexing_PCR(ss)
}
\description{
When preparing MiSeq libraries using Nextera indices, I use a Google spreadsheet for adding the samples and the Indetifiers they use.
Use this function to recover all that info
}
\examples{
indexing_ss... | /man/Read_gsheet.Rd | permissive | ramongallego/eDNA_functions | R | false | false | 405 | rd | \name{read_indexing_PCR}
\alias{read_idx}
\title{Parsing Indexing PCRs}
\usage{
read_indexing_PCR(ss)
}
\description{
When preparing MiSeq libraries using Nextera indices, I use a Google spreadsheet for adding the samples and the Indetifiers they use.
Use this function to recover all that info
}
\examples{
indexing_ss... |
library(plyr)
library(dplyr)
library(ggplot2)
library(stats4)
library(gridExtra)
setwd("/Users/g-woloschak/Documents/")
BEIR_VII_animal_data <- read.csv('BEIR_VII_animal_data.csv')
data_to_plot <- BEIR_VII_animal_data[BEIR_VII_animal_data$protraction == "Acute" &
!is.na(B... | /BEIR_VII_10-B4.R | no_license | aliazander/Learn_R_and_radiation_models | R | false | false | 4,585 | r | library(plyr)
library(dplyr)
library(ggplot2)
library(stats4)
library(gridExtra)
setwd("/Users/g-woloschak/Documents/")
BEIR_VII_animal_data <- read.csv('BEIR_VII_animal_data.csv')
data_to_plot <- BEIR_VII_animal_data[BEIR_VII_animal_data$protraction == "Acute" &
!is.na(B... |
help("sapply")
help("apply")
help("lapply")
help("c")
## Compute row and column sums for a matrix:
x <- cbind(x1 = 3, x2 = c(4:1, 2:5))
dimnames(x)[[1]] <- letters[1:8]
class(x)
View(x)
# apply(X, MARGIN, FUN, ...)
# MARGIN a vector giving the subscripts which the function will be applied over.
# E.g., for a matrix... | /R/applysample.R | no_license | kate-kee/R-Analytics-and-visualizations | R | false | false | 851 | r | help("sapply")
help("apply")
help("lapply")
help("c")
## Compute row and column sums for a matrix:
x <- cbind(x1 = 3, x2 = c(4:1, 2:5))
dimnames(x)[[1]] <- letters[1:8]
class(x)
View(x)
# apply(X, MARGIN, FUN, ...)
# MARGIN a vector giving the subscripts which the function will be applied over.
# E.g., for a matrix... |
# 앞에서 data이름으로 전처리를 마친후에 확인
# 1. 결측치 확인
table(is.na(data$birth))
# 2. birth컬럼을 이용한 age파생변수 생성
data$age <- 2021 - data$birth + 1
data
# 3. 나이에따른 월급평균표
d2 <- data %>%
filter(!is.na(income)) %>%
group_by(round(age,-1)) %>% #10대, 20대....
summarise(mean_income = mean(income))
colnames(d2)[1] <- "mean_age"
ggpl... | /basic_r/code/04분석하기/script02(나이에따른급여).R | no_license | jhr1494/R | R | false | false | 1,837 | r | # 앞에서 data이름으로 전처리를 마친후에 확인
# 1. 결측치 확인
table(is.na(data$birth))
# 2. birth컬럼을 이용한 age파생변수 생성
data$age <- 2021 - data$birth + 1
data
# 3. 나이에따른 월급평균표
d2 <- data %>%
filter(!is.na(income)) %>%
group_by(round(age,-1)) %>% #10대, 20대....
summarise(mean_income = mean(income))
colnames(d2)[1] <- "mean_age"
ggpl... |
#' Read a file using readr::read_csv suppressing its output
#'
#' This function reads csv files using the read_csv function from readr.
#' Its messages and progress bar is suppressed.
#' Entering a non-existent file
#' while raise an error.
#' @param filename (character) The file to load
#' @return A tbl_df
#' @export
... | /R/fars_functions.R | no_license | pipinho13/fars | R | false | false | 3,980 | r | #' Read a file using readr::read_csv suppressing its output
#'
#' This function reads csv files using the read_csv function from readr.
#' Its messages and progress bar is suppressed.
#' Entering a non-existent file
#' while raise an error.
#' @param filename (character) The file to load
#' @return A tbl_df
#' @export
... |
library(tidyverse)
library(reshape2)
setwd("//chws3092/PPM Admin File/Pricing Product General/Users/Carey C/Coursera/Getting and cleaning data")
# find out which activities we want to keep
activityLabels <- read.table("getdata_projectfiles_UCI HAR Dataset/UCI HAR dataset/activity_labels.txt")
labels <- as.character(a... | /run_analysis.R | no_license | Tanvir007/getting-and-cleaning-data-coursera | R | false | false | 1,959 | r | library(tidyverse)
library(reshape2)
setwd("//chws3092/PPM Admin File/Pricing Product General/Users/Carey C/Coursera/Getting and cleaning data")
# find out which activities we want to keep
activityLabels <- read.table("getdata_projectfiles_UCI HAR Dataset/UCI HAR dataset/activity_labels.txt")
labels <- as.character(a... |
\name{oligo.estrogen}
\alias{oligo.estrogen}
\docType{data}
\title{The data from the estrogen package as an ExpressionFeatureSet object}
\description{
This data is taken from the \pkg{estrogen} package. It was created to be used in the vignette for the \pkg{puma} pacakge. It can be produced using the following code... | /man/oligo.estrogen.Rd | no_license | PUGEA1/pumadata | R | false | false | 1,231 | rd | \name{oligo.estrogen}
\alias{oligo.estrogen}
\docType{data}
\title{The data from the estrogen package as an ExpressionFeatureSet object}
\description{
This data is taken from the \pkg{estrogen} package. It was created to be used in the vignette for the \pkg{puma} pacakge. It can be produced using the following code... |
# ------------------------------------------------------------------------
# Create date difference variables for modelling dataset
# ------------------------------------------------------------------------
library(lubridate)
library(tidyverse)
library(zoo)
# Globals -----------------------------------------------... | /pre_modelling/03_create_training_date_diffs.R | no_license | jzhao0802/strongbridge | R | false | false | 3,079 | r |
# ------------------------------------------------------------------------
# Create date difference variables for modelling dataset
# ------------------------------------------------------------------------
library(lubridate)
library(tidyverse)
library(zoo)
# Globals -----------------------------------------------... |
/WhatIsCooking.R | no_license | CNJDS-Whats-Cooking/Team-2 | R | false | false | 126,220 | r | ||
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1120
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1034
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1034
c
c Input Parameter (command line, fil... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Herbstritt/blackbox-01X-QBF/biu.mv.xl_ao.bb-b003-p020-IPF03-c03.blif-biu.inv.prop.bb-bmc.conf05.01X-QBF.BB1-Zi.BB2-01X.BB3-Zi.with-IOC.unfold-001/biu.mv.xl_ao.bb-b003-p020-IPF03-c03.blif-biu.inv.prop.bb-bmc.conf05.01X-QBF.BB1-Zi.BB2-01X.BB3-Zi.with-IOC.unfol... | no_license | arey0pushpa/dcnf-autarky | R | false | false | 1,230 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1120
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1034
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1034
c
c Input Parameter (command line, fil... |
library(randomForest)
# Loading data
word = read.csv("word_matrix.csv") # last column is "y"
power = read.csv("power_matrix.csv")
filenames = word[,1]
word = word[,-c(1,2)]
power = power[,-1]
word$y = as.factor(word$y)
power$y = as.factor(power$y)
combine = cbind(word[,-ncol(word)], power)
# Classification on the fil... | /random_forest.R | no_license | Jay4869/STAT-154 | R | false | false | 2,660 | r | library(randomForest)
# Loading data
word = read.csv("word_matrix.csv") # last column is "y"
power = read.csv("power_matrix.csv")
filenames = word[,1]
word = word[,-c(1,2)]
power = power[,-1]
word$y = as.factor(word$y)
power$y = as.factor(power$y)
combine = cbind(word[,-ncol(word)], power)
# Classification on the fil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate.R
\name{generate}
\alias{generate}
\title{R2RESUME: Converts Rmarkdown to Beautiful Resume Sites}
\usage{
generate(
template = "manzana",
self_contained = FALSE,
dir_lib = "site_libs",
css = "style.css",
...
)
}
\arguments{... | /man/generate.Rd | no_license | oobianom/r2resume | R | false | true | 2,754 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate.R
\name{generate}
\alias{generate}
\title{R2RESUME: Converts Rmarkdown to Beautiful Resume Sites}
\usage{
generate(
template = "manzana",
self_contained = FALSE,
dir_lib = "site_libs",
css = "style.css",
...
)
}
\arguments{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grain.R
\name{plot.grain}
\alias{plot.grain}
\title{Title}
\usage{
\method{plot}{grain}(x, show = c("centre", "corner"))
}
\arguments{
\item{show}{}
}
\value{
}
\description{
Title
}
| /man/plot.grain.Rd | no_license | hypertidy/granulated | R | false | true | 262 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grain.R
\name{plot.grain}
\alias{plot.grain}
\title{Title}
\usage{
\method{plot}{grain}(x, show = c("centre", "corner"))
}
\arguments{
\item{show}{}
}
\value{
}
\description{
Title
}
|
library(NHANES)
library(tidyverse)
# This dataset is from on the National Health and Nutrition Examination Survey
# (NHANES), a program designed to assess the health status of adults and children
# in the United States. It is conducted yearly by a suborganization of the CDC,
# and involves both interviews and physica... | /data-raw/make_nhanes.R | permissive | shealynj/PPBDS.data | R | false | false | 5,707 | r |
library(NHANES)
library(tidyverse)
# This dataset is from on the National Health and Nutrition Examination Survey
# (NHANES), a program designed to assess the health status of adults and children
# in the United States. It is conducted yearly by a suborganization of the CDC,
# and involves both interviews and physica... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/primendoR.R
\docType{data}
\name{primendoR}
\alias{primendoR}
\title{example dataset}
\usage{
data(primendoR)
}
\description{
right brain hemisphere of 19 primate species
}
\author{
Antonio Profico, Costantino Buzi, Marina Melchionna, Paolo P... | /man/primendoR.Rd | no_license | cran/Arothron | R | false | true | 380 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/primendoR.R
\docType{data}
\name{primendoR}
\alias{primendoR}
\title{example dataset}
\usage{
data(primendoR)
}
\description{
right brain hemisphere of 19 primate species
}
\author{
Antonio Profico, Costantino Buzi, Marina Melchionna, Paolo P... |
## ----rosenbroeck---------------------------------------------------------
mountains <- function(v) {
(1 - v[1])^2 + 100 * (v[2] - v[1]*v[1])^2 +
0.3*(0.2 - 2*v[2])^2 + 100 * (v[1] - v[2]*v[2])^2 -
0.5*(v[1]^2 +5*v[2]^2)
}
## ---- eval=FALSE---------------------------------------------------------
## libra... | /Chapter 5/chapter5.R | permissive | PacktPublishing/Simulation-for-Data-Science-with-R | R | false | false | 8,067 | r | ## ----rosenbroeck---------------------------------------------------------
mountains <- function(v) {
(1 - v[1])^2 + 100 * (v[2] - v[1]*v[1])^2 +
0.3*(0.2 - 2*v[2])^2 + 100 * (v[1] - v[2]*v[2])^2 -
0.5*(v[1]^2 +5*v[2]^2)
}
## ---- eval=FALSE---------------------------------------------------------
## libra... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
get... | /cachematrix.R | no_license | francisivanclado/ProgrammingAssignment2 | R | false | false | 750 | 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()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
get... |
\name{bag.o.words}
\alias{bag.o.words}
\alias{breaker}
\alias{word.split}
\title{Bag of Words}
\usage{
bag.o.words(text.var, apostrophe.remove = FALSE, ...)
breaker(text.var)
word.split(text.var)
}
\arguments{
\item{text.var}{The text variable.}
\item{apostrophe.remove}{logical. If TRUE removes
apostrop... | /man/bag.o.words.Rd | no_license | toledobastos/qdap | R | false | false | 1,268 | rd | \name{bag.o.words}
\alias{bag.o.words}
\alias{breaker}
\alias{word.split}
\title{Bag of Words}
\usage{
bag.o.words(text.var, apostrophe.remove = FALSE, ...)
breaker(text.var)
word.split(text.var)
}
\arguments{
\item{text.var}{The text variable.}
\item{apostrophe.remove}{logical. If TRUE removes
apostrop... |
#######################################
#### Example and Exercise
####
#### Cong Mu
#### 09/13/2019
#######################################
#### Example with gala dataset
## Load the package
library(faraway)
## Attach the data
data(gala, package = "faraway")
## Learn the data
head(gala[,-2])
## Fit a linea... | /teaching/Applied Statistics and Data Analysis/section-9-13-11am.R | no_license | CongM/CongM.github.io | R | false | false | 1,310 | r | #######################################
#### Example and Exercise
####
#### Cong Mu
#### 09/13/2019
#######################################
#### Example with gala dataset
## Load the package
library(faraway)
## Attach the data
data(gala, package = "faraway")
## Learn the data
head(gala[,-2])
## Fit a linea... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/user_interaction.R
\name{invalidateEvents}
\alias{invalidateEvents}
\title{Allow the user to determine a given movement event invalid}
\usage{
invalidateEvents(
displayed.moves,
all.moves,
detections,
tag,
GUI,
save.ta... | /man/invalidateEvents.Rd | no_license | cran/actel | R | false | true | 1,530 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/user_interaction.R
\name{invalidateEvents}
\alias{invalidateEvents}
\title{Allow the user to determine a given movement event invalid}
\usage{
invalidateEvents(
displayed.moves,
all.moves,
detections,
tag,
GUI,
save.ta... |
plotPost = function( paramSampleVec , credMass=0.95 , compVal=NULL ,
HDItextPlace=0.7 , ROPE=NULL , yaxt=NULL , ylab=NULL ,
xlab=NULL , cex.lab=NULL , cex=NULL , xlim=NULL , main=NULL ,
col=NULL , border=NULL , showMode=F , showCurve=F , breaks=NULL ,
... ) {
#... | /functions/plotPost.R | permissive | pjastam/r-bayesian-football-odds | R | false | false | 4,902 | r | plotPost = function( paramSampleVec , credMass=0.95 , compVal=NULL ,
HDItextPlace=0.7 , ROPE=NULL , yaxt=NULL , ylab=NULL ,
xlab=NULL , cex.lab=NULL , cex=NULL , xlim=NULL , main=NULL ,
col=NULL , border=NULL , showMode=F , showCurve=F , breaks=NULL ,
... ) {
#... |
## 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 | msoltow261/ProgrammingAssignment2 | R | false | false | 776 | 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... |
### final figures
library(tidyverse)
library(RColorBrewer)
library(ggthemes)
library(ggpubr)
#
##
###
#### Figure 1 - NMDS comparing AMR samples by unique sample (dilution and normal)
###
##
#
#
##
###
#### Figure 2 showing resistome composition and microbiome composition
###
##
#
AMR_class_sum <- amr_melted_analy... | /scripts/FC_ground_beef_manuscript_figures.R | no_license | meglab-metagenomics/Ground_beef_metagenomics_manuscript | R | false | false | 15,653 | r | ### final figures
library(tidyverse)
library(RColorBrewer)
library(ggthemes)
library(ggpubr)
#
##
###
#### Figure 1 - NMDS comparing AMR samples by unique sample (dilution and normal)
###
##
#
#
##
###
#### Figure 2 showing resistome composition and microbiome composition
###
##
#
AMR_class_sum <- amr_melted_analy... |
#' Create a description object for a parameter of a machine learning algorithm.
#'
#' This specializes \code{\link{Param}} by adding a few more attributes,
#' like a default value, whether it refers to a training or a predict function, etc.
#'
#' The S3 class is a \code{\link{Param}} which additionally stores these ele... | /ParamHelpers/R/LearnerParam.R | no_license | ingted/R-Examples | R | false | false | 1,905 | r | #' Create a description object for a parameter of a machine learning algorithm.
#'
#' This specializes \code{\link{Param}} by adding a few more attributes,
#' like a default value, whether it refers to a training or a predict function, etc.
#'
#' The S3 class is a \code{\link{Param}} which additionally stores these ele... |
## plots Plot2 and create the Plot2.png
##get dataset
getData <- function(){
if(!file.exists("household_power_consumption.txt")) {
##download and unzip file into current workind directory
download.file(url="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehol... | /Plot2.R | no_license | works123/ExData_Plotting1 | R | false | false | 1,951 | r | ## plots Plot2 and create the Plot2.png
##get dataset
getData <- function(){
if(!file.exists("household_power_consumption.txt")) {
##download and unzip file into current workind directory
download.file(url="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehol... |
# Define UI ----
ui <- fluidPage(
titlePanel("QC Tool"),
sidebarLayout(
sidebarPanel(
titlePanel("Controls"),
helpText("Select the required parameters"),
uiOutput("choose_haulSubset"),
uiOutput("choose_species"),
helpText(paste("We are operating on cruise year", maxYear)),
ui... | /inst/app/ui.R | permissive | iambaim/icesHackathon2018 | R | false | false | 1,059 | r | # Define UI ----
ui <- fluidPage(
titlePanel("QC Tool"),
sidebarLayout(
sidebarPanel(
titlePanel("Controls"),
helpText("Select the required parameters"),
uiOutput("choose_haulSubset"),
uiOutput("choose_species"),
helpText(paste("We are operating on cruise year", maxYear)),
ui... |
# Endpoints
#
# Endpoints API for different services in SKIL
#
# OpenAPI spec version: 1.2.0-rc1
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' SingleRecord Class
#'
#' @field values
#' @field uri
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @expo... | /r/R/SingleRecord.r | permissive | farizrahman4u/skil-clients | R | false | false | 1,928 | r | # Endpoints
#
# Endpoints API for different services in SKIL
#
# OpenAPI spec version: 1.2.0-rc1
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' SingleRecord Class
#'
#' @field values
#' @field uri
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @expo... |
library(magic)
### Name: hadamard
### Title: Hadamard matrices
### Aliases: hadamard is.hadamard sylvester
### Keywords: array
### ** Examples
is.hadamard(sylvester(4))
image(sylvester(5))
| /data/genthat_extracted_code/magic/examples/hadamard.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 197 | r | library(magic)
### Name: hadamard
### Title: Hadamard matrices
### Aliases: hadamard is.hadamard sylvester
### Keywords: array
### ** Examples
is.hadamard(sylvester(4))
image(sylvester(5))
|
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Skewed Normal Distributions"),
column(12,
helpText("This page lets you vary the shape of a skewed normal distribution.",
"The case of a standard normal distribution is also included when shape and location a... | /ui.r | no_license | pra1981/skewedDistributions | R | false | false | 1,581 | r | library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Skewed Normal Distributions"),
column(12,
helpText("This page lets you vary the shape of a skewed normal distribution.",
"The case of a standard normal distribution is also included when shape and location a... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.09573821228693e-236, 3.88583085748592e-208, 9.35124901230701e-235, 0, 0, 0), .Dim = c(6L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist)
str(result) | /CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615840817-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 275 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.09573821228693e-236, 3.88583085748592e-208, 9.35124901230701e-235, 0, 0, 0), .Dim = c(6L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_summarize_years}
\alias{fars_summarize_years}
\title{Summarize fars accident data for a given set of years}
\usage{
fars_summarize_years(years)
}
\arguments{
\item{years}{A vector containing the years for which dat... | /man/fars_summarize_years.Rd | no_license | monotreme/Asswk4Package | R | false | true | 968 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_summarize_years}
\alias{fars_summarize_years}
\title{Summarize fars accident data for a given set of years}
\usage{
fars_summarize_years(years)
}
\arguments{
\item{years}{A vector containing the years for which dat... |
#' @title DataBlock
#'
#' @description Generic container to quickly build `Datasets` and `DataLoaders`
#'
#'
#' @param blocks blocks
#' @param dl_type dl_type
#' @param getters getters
#' @param n_inp n_inp is the number of elements in the tuples that should be considered part of the input and will default to 1 if tfms... | /R/GAN.R | permissive | ysnghr/fastai | R | false | false | 16,451 | r | #' @title DataBlock
#'
#' @description Generic container to quickly build `Datasets` and `DataLoaders`
#'
#'
#' @param blocks blocks
#' @param dl_type dl_type
#' @param getters getters
#' @param n_inp n_inp is the number of elements in the tuples that should be considered part of the input and will default to 1 if tfms... |
require(devEMF)
library(quantmod)
library(RHmm)
library(parallel)
#postscript('AAPL.eps')
getSymbols("AAPL", src = "google")
#getSymbols("AAPL")
chartSeries(AAPL, theme="white")
#trainset <- window(AAPL, start = as.Date("2000-01-01"), end = as.Date("2013-04-01"))
trainsetraw <- window(AAPL, start = as.Date("2000-01-01... | /rhmm/AAPL.R | no_license | HarryXueTJU/stock | R | false | false | 5,147 | r | require(devEMF)
library(quantmod)
library(RHmm)
library(parallel)
#postscript('AAPL.eps')
getSymbols("AAPL", src = "google")
#getSymbols("AAPL")
chartSeries(AAPL, theme="white")
#trainset <- window(AAPL, start = as.Date("2000-01-01"), end = as.Date("2013-04-01"))
trainsetraw <- window(AAPL, start = as.Date("2000-01-01... |
\name{readSnpMatrix}
\alias{readSnpMatrix}
\title{Read in the SNP read count matrix file}
\description{
Reads a snp read count matrix generated by the snp-pileup code
included and prepares the read counts data frame needed for
\code{preProcSample}
}
\usage{readSnpMatrix(filename, skip=0L, err.thresh=Inf, del.thre... | /man/readSnpMatrix.Rd | no_license | 1512474508/facets2n | R | false | false | 2,896 | rd | \name{readSnpMatrix}
\alias{readSnpMatrix}
\title{Read in the SNP read count matrix file}
\description{
Reads a snp read count matrix generated by the snp-pileup code
included and prepares the read counts data frame needed for
\code{preProcSample}
}
\usage{readSnpMatrix(filename, skip=0L, err.thresh=Inf, del.thre... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/perm.significance.R
\name{perm.significance}
\alias{perm.significance}
\title{A Function for Computing a Vector of Pearson Correlation Coefficients}
\usage{
perm.significance(exp.mat, cn.mat, gene.annot, method = "pearson",
digits = ... | /man/perm.significance.Rd | no_license | cran/MVisAGe | R | false | true | 2,748 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/perm.significance.R
\name{perm.significance}
\alias{perm.significance}
\title{A Function for Computing a Vector of Pearson Correlation Coefficients}
\usage{
perm.significance(exp.mat, cn.mat, gene.annot, method = "pearson",
digits = ... |
### booster.R ###
##### Setup #####
source('R_Pipeline/initialize.R')
load_package('rutils', version = rutils.version)
load_package('rbig', version = rbig.version)
load_package('rfun', version = rfun.version)
load_package('rml', version = rml.version)
source('R_Pipeline/libraries/ext_rml.R')
################ Inputs ###... | /event_prediction_pipeline/modules/booster.R | no_license | genpack/tutorials | R | false | false | 638 | r | ### booster.R ###
##### Setup #####
source('R_Pipeline/initialize.R')
load_package('rutils', version = rutils.version)
load_package('rbig', version = rbig.version)
load_package('rfun', version = rfun.version)
load_package('rml', version = rml.version)
source('R_Pipeline/libraries/ext_rml.R')
################ Inputs ###... |
#
# Perform the parant roll selection optimization
#
print("Seleting Optimal Parent Rolls for each Possible Number of Parents")
# Test this with a specific grade and calipeer
#rawData <- filter(rawData, Grade == "SUS" & CalDW == "26-72-W")
# select all the unique parents
parent_types <- rawData %>% group_by... | /4.Parent Roll Selection.R | no_license | rschroeder70/test | R | false | false | 11,454 | r | #
# Perform the parant roll selection optimization
#
print("Seleting Optimal Parent Rolls for each Possible Number of Parents")
# Test this with a specific grade and calipeer
#rawData <- filter(rawData, Grade == "SUS" & CalDW == "26-72-W")
# select all the unique parents
parent_types <- rawData %>% group_by... |
library(tidyverse)
library(tabulizer)
pdfFile <- tempfile()
download.file('https://github.com/openelections/openelections-sources-tx/raw/master/2016/2016%20DALLAS%201108G%20General%20Final%20PctbyPct%20Totals.pdf',
pdfFile, mode='wb')
INTERACTIVE <- FALSE
dfs <- list()
dfs$RegisteredVoters <- extract_... | /src/openelections-tx-r/Parse_Dallas.R | no_license | openelections/openelections-data-tx | R | false | false | 18,136 | r | library(tidyverse)
library(tabulizer)
pdfFile <- tempfile()
download.file('https://github.com/openelections/openelections-sources-tx/raw/master/2016/2016%20DALLAS%201108G%20General%20Final%20PctbyPct%20Totals.pdf',
pdfFile, mode='wb')
INTERACTIVE <- FALSE
dfs <- list()
dfs$RegisteredVoters <- extract_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stream_data.R
\name{stream_read_orc}
\alias{stream_read_orc}
\title{Read ORC Stream}
\usage{
stream_read_orc(sc, path, name = NULL, columns = NULL,
options = list(), ...)
}
\arguments{
\item{sc}{A \code{spark_connection}.}
\item{path}{The ... | /man/stream_read_orc.Rd | permissive | lu-wang-dl/sparklyr | R | false | true | 2,062 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stream_data.R
\name{stream_read_orc}
\alias{stream_read_orc}
\title{Read ORC Stream}
\usage{
stream_read_orc(sc, path, name = NULL, columns = NULL,
options = list(), ...)
}
\arguments{
\item{sc}{A \code{spark_connection}.}
\item{path}{The ... |
#Author - Yatish B. Patil
# This script is used for the RNASeq QC report for read counts, phred quality score, mapping percentage and RNA species.
rm(list=ls())
source("http://bioconductor.org/biocLite.R")
# library
require(ggplot2)
require(reshape)
require(scales)
###### Creating folder structure as main, scrip... | /rnaseq_results_doc.R | no_license | syspremed/rnaseqAnalysis | R | false | false | 6,839 | r | #Author - Yatish B. Patil
# This script is used for the RNASeq QC report for read counts, phred quality score, mapping percentage and RNA species.
rm(list=ls())
source("http://bioconductor.org/biocLite.R")
# library
require(ggplot2)
require(reshape)
require(scales)
###### Creating folder structure as main, scrip... |
library(mcomp)
library(forecast)
library(pbapply)
data(M3)
res <- pbsapply(M3, function(x){
mod <- ets(x$x)
f <- forecast(mod, length(x$xx))
return(accuracy(f, x$xx)['Test set','MAPE'])
})
res <- sort(res)
pick <- c(head(res, 5), tail(res, 5))
round(pick, 2)
dev.off()
par(mfrow=c(5,2))
n <- names(pick)
for(i in... | /data-science-scripts/zach/M3_comp_top_and_bottom.R | no_license | mcohenmcohen/DataRobot | R | false | false | 660 | r | library(mcomp)
library(forecast)
library(pbapply)
data(M3)
res <- pbsapply(M3, function(x){
mod <- ets(x$x)
f <- forecast(mod, length(x$xx))
return(accuracy(f, x$xx)['Test set','MAPE'])
})
res <- sort(res)
pick <- c(head(res, 5), tail(res, 5))
round(pick, 2)
dev.off()
par(mfrow=c(5,2))
n <- names(pick)
for(i in... |
test = c("abc", "abcvasdf", "abc_rrrr")
gregexpr(pattern = "||abc&||rrrr", text = test)
# [[1]]
# [1] 1 2 3
# attr(,"match.length")
# [1] 0 0 0
# attr(,"useBytes")
# [1] TRUE
#
# [[2]]
# [1] 1 2 3 4 5 6 7 8
# attr(,"match.length")
# [1] 0 0 0 0 0 0 0 0
# attr(,"useBytes")
# [1] TRUE
#
# [[3]]
# [1] 1 2 3 4 5
# attr(,... | /01_R/grammers/text_handling/Regular_Expression_06.R | no_license | heejour/encaion | R | false | false | 676 | r | test = c("abc", "abcvasdf", "abc_rrrr")
gregexpr(pattern = "||abc&||rrrr", text = test)
# [[1]]
# [1] 1 2 3
# attr(,"match.length")
# [1] 0 0 0
# attr(,"useBytes")
# [1] TRUE
#
# [[2]]
# [1] 1 2 3 4 5 6 7 8
# attr(,"match.length")
# [1] 0 0 0 0 0 0 0 0
# attr(,"useBytes")
# [1] TRUE
#
# [[3]]
# [1] 1 2 3 4 5
# attr(,... |
## Code to prepare `WHO_SR` dataset goes here.
## Package users ignore this code.
# SOURCE https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports
devtools::load_all()
WHO_SR <- read.csv("data-raw/WHO_SR.csv")
WHO_SR$Date <- as.Date(WHO_SR$Date)
usethis::use_data(WHO_SR, overwrite = TRUE)
... | /data-raw/WHO_SR.R | no_license | achalpashine/data2019nCoV | R | false | false | 7,650 | r | ## Code to prepare `WHO_SR` dataset goes here.
## Package users ignore this code.
# SOURCE https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports
devtools::load_all()
WHO_SR <- read.csv("data-raw/WHO_SR.csv")
WHO_SR$Date <- as.Date(WHO_SR$Date)
usethis::use_data(WHO_SR, overwrite = TRUE)
... |
#' Group continuous data values (x-axis)
#'
#' The "bin" property is for grouping quantitative, continuous data values of a
#' particular field into smaller number of “bins” (e.g., for a histogram).
#'
#' @param vl Vega-Lite object
#' @param min the minimum bin value to consider.
#' @param max the maximum bin value to ... | /R/bin.r | no_license | cran/vegalite | R | false | false | 4,641 | r | #' Group continuous data values (x-axis)
#'
#' The "bin" property is for grouping quantitative, continuous data values of a
#' particular field into smaller number of “bins” (e.g., for a histogram).
#'
#' @param vl Vega-Lite object
#' @param min the minimum bin value to consider.
#' @param max the maximum bin value to ... |
library(lavaan)
setwd("/Volumes/SP PHD U3/missing-data-project-2")
source("functions.R")
source("Models_WM.R") #done
### FOR TWO MISSING VARIABLES
#purpose: create missing data on x11, x12.
#Argument:
#model: lavaan defined population model
#sample.nobs: numeric; sample size without missing data
#missing.percentage:... | /generateMCAR_study2_p2_ts.R | no_license | cathyxijuan/missing-data-project-2 | R | false | false | 23,328 | r | library(lavaan)
setwd("/Volumes/SP PHD U3/missing-data-project-2")
source("functions.R")
source("Models_WM.R") #done
### FOR TWO MISSING VARIABLES
#purpose: create missing data on x11, x12.
#Argument:
#model: lavaan defined population model
#sample.nobs: numeric; sample size without missing data
#missing.percentage:... |
testlist <- list(type = 0L, z = 1.7838734208744e-319)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609893243-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 107 | r | testlist <- list(type = 0L, z = 1.7838734208744e-319)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
#' @param x A simList or a directory containing a valid archivist repository
#' @param after A time (POSIX, character understandable by data.table).
#' Objects cached after this time will be shown or deleted.
#' @param before A time (POSIX, character understandable by data.table).
#' ... | /R/cache-tools.R | no_license | guhjy/reproducible | R | false | false | 6,465 | r | #' @param x A simList or a directory containing a valid archivist repository
#' @param after A time (POSIX, character understandable by data.table).
#' Objects cached after this time will be shown or deleted.
#' @param before A time (POSIX, character understandable by data.table).
#' ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllMethods.R
\docType{methods}
\name{tnsPreprocess,TNI-method}
\alias{tnsPreprocess,TNI-method}
\alias{tnsPreprocess}
\title{Preprocessing of TNS class objects.}
\usage{
\S4method{tnsPreprocess}{TNI}(tni, survivalData, keycovar, time = 1,
e... | /man/tnsPreprocess-methods.Rd | no_license | xtsvm/RTNsurvival | R | false | true | 1,753 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllMethods.R
\docType{methods}
\name{tnsPreprocess,TNI-method}
\alias{tnsPreprocess,TNI-method}
\alias{tnsPreprocess}
\title{Preprocessing of TNS class objects.}
\usage{
\S4method{tnsPreprocess}{TNI}(tni, survivalData, keycovar, time = 1,
e... |
# Source reactive expressions and other code
source("external/appSourceFiles/reactives.R",local=T) # source reactive expressions
source("external/appSourceFiles/iosidebarwp1.R",local=T) # source input/output objects associated with sidebar wellPanel 1
source("external/appSourceFiles/iosidebarwp2.R",local=T) # source... | /system_call_test-devel/external/app.R | no_license | man-bear-pig/shiny-apps | R | false | false | 2,147 | r | # Source reactive expressions and other code
source("external/appSourceFiles/reactives.R",local=T) # source reactive expressions
source("external/appSourceFiles/iosidebarwp1.R",local=T) # source input/output objects associated with sidebar wellPanel 1
source("external/appSourceFiles/iosidebarwp2.R",local=T) # source... |
#!/bin/Rscript -l
##########################################################################################################
############### DADA2 PIPELINE 8 : Ad Phylogeny to Phyloseq ##############################################
#######################################################################################... | /Pipeline/dada2_pipeline8.R | no_license | andreasnovotny/DadaSlurm | R | false | false | 1,643 | r | #!/bin/Rscript -l
##########################################################################################################
############### DADA2 PIPELINE 8 : Ad Phylogeny to Phyloseq ##############################################
#######################################################################################... |
best<- function(state,outcome){
# read data # data is still with NAs
data<- read.csv("outcome-of-care-measures.csv",colClasses = "character")
sdata<-data[,c(2,7,11,17,23)]
names(sdata)<- c("h.name","State","heart attack","heart failure","pneumonia")
# validating Argument outcome
if (outcome== ... | /Best Hospital _ Final.R | no_license | anurag-code/JhonHopkins_R_Prog | R | false | false | 1,042 | r | best<- function(state,outcome){
# read data # data is still with NAs
data<- read.csv("outcome-of-care-measures.csv",colClasses = "character")
sdata<-data[,c(2,7,11,17,23)]
names(sdata)<- c("h.name","State","heart attack","heart failure","pneumonia")
# validating Argument outcome
if (outcome== ... |
build_recode_39<-function() {
require(dplyr,quietly = T,warn.conflicts = FALSE)
require(stringr,quietly = T,warn.conflicts = FALSE)
recode39<-read.delim("./misc/recode39.tab",stringsAsFactors = F)
recode39$ICD.10<-gsub("[()]","",recode39$ICD.10)
colnames(recode39)<-tolower(colnames(recode39))
recode39_... | /code/build_recodes_39.R | no_license | JahNorr/mortRecode | R | false | false | 4,630 | r |
build_recode_39<-function() {
require(dplyr,quietly = T,warn.conflicts = FALSE)
require(stringr,quietly = T,warn.conflicts = FALSE)
recode39<-read.delim("./misc/recode39.tab",stringsAsFactors = F)
recode39$ICD.10<-gsub("[()]","",recode39$ICD.10)
colnames(recode39)<-tolower(colnames(recode39))
recode39_... |
# coursera Specialization: "Data Science" by Johns Hopkins University
# Course: 4. Exploratory Data Analysis
# Assignment: Course Project 1
# Author: Niek Alexander Peters, MD
# PhD Candidate Surgical Oncology
# ... | /plot3.R | no_license | npeters91/ExData_Plotting1 | R | false | false | 1,922 | r | # coursera Specialization: "Data Science" by Johns Hopkins University
# Course: 4. Exploratory Data Analysis
# Assignment: Course Project 1
# Author: Niek Alexander Peters, MD
# PhD Candidate Surgical Oncology
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cc_social_historical.R
\name{cc_social_historical}
\alias{cc_social_historical}
\title{cc_social_historical}
\usage{
cc_social_historical(
symbol = NULL,
start = NULL,
end = NULL,
interval = c("daily", "hourly"),
api_key = NULL
)
}
... | /man/cc_social_historical.Rd | no_license | beniamino98/cryptocompareR | R | false | true | 682 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cc_social_historical.R
\name{cc_social_historical}
\alias{cc_social_historical}
\title{cc_social_historical}
\usage{
cc_social_historical(
symbol = NULL,
start = NULL,
end = NULL,
interval = c("daily", "hourly"),
api_key = NULL
)
}
... |
# Server code for safetyGraphics App
# - calls dataUpload module (data tab)
# - calls renderSettings module (settings tab)
# - calls chart modules (chart tab)
# - uses render UI to append a red X or green check on tab title,
# indicating whether user has satisfied requirements of that tab
function(input, ... | /inst/safetyGraphics_app/server.R | no_license | mli1/safetyGraphics | R | false | false | 8,008 | r | # Server code for safetyGraphics App
# - calls dataUpload module (data tab)
# - calls renderSettings module (settings tab)
# - calls chart modules (chart tab)
# - uses render UI to append a red X or green check on tab title,
# indicating whether user has satisfied requirements of that tab
function(input, ... |
#################################### read & merge datas ####################################
handleData <- function(ref, wd, out){
ref_table <- read.csv(ref, header=TRUE)
ref_table <- ref_table[unique(ref_table$Ensembl.ID.supplied.by.Ensembl.),]
TCGA_genes <- as.character(ref_table$Approved.Symbol)
gene_ids... | /User/kyulhee/TCGA/Code/02-1.meRgefile_error.R | no_license | Chan-Hee/BioDataLab | R | false | false | 6,505 | r | #################################### read & merge datas ####################################
handleData <- function(ref, wd, out){
ref_table <- read.csv(ref, header=TRUE)
ref_table <- ref_table[unique(ref_table$Ensembl.ID.supplied.by.Ensembl.),]
TCGA_genes <- as.character(ref_table$Approved.Symbol)
gene_ids... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_snps.R
\name{parse_snps}
\alias{parse_snps}
\title{Parse SNP matrix from Ali's pipeline}
\usage{
parse_snps(
varmat_code,
varmat_allele,
tree = NULL,
og = NULL,
remove_multi_annots = FALSE,
return_binary_matrix = TRUE,
ref... | /man/parse_snps.Rd | permissive | wangdi2014/snitkitr | R | false | true | 2,237 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_snps.R
\name{parse_snps}
\alias{parse_snps}
\title{Parse SNP matrix from Ali's pipeline}
\usage{
parse_snps(
varmat_code,
varmat_allele,
tree = NULL,
og = NULL,
remove_multi_annots = FALSE,
return_binary_matrix = TRUE,
ref... |
##creamos un script
a<- c(1,2,3,4) | /Script.R | no_license | Lolaalvarez/ecoinfo_2014_2015_reto_4_1 | R | false | false | 34 | r | ##creamos un script
a<- c(1,2,3,4) |
#' Download and install dependencies
#'
#' When called in the repo of an R package, its package dependencies are inspected
#' and the obsolete ones are updated. This function is a thin wrapper around
#' \code{stats::update(remotes::dev_package_deps())}. Unlike the 'Update' button in RStudio's 'Packages' panel,
#' thi... | /R/updatePackagesAddin.R | no_license | wibeasley/addinexamples | R | false | false | 577 | r | #' Download and install dependencies
#'
#' When called in the repo of an R package, its package dependencies are inspected
#' and the obsolete ones are updated. This function is a thin wrapper around
#' \code{stats::update(remotes::dev_package_deps())}. Unlike the 'Update' button in RStudio's 'Packages' panel,
#' thi... |
# R-functions used when filtering normalized expression data
# by Boel Brynedal
filtIQR=function(Exp,prob1) {
iqr=apply(Exp,1, function(x) IQR(x, na.rm = TRUE))
mmIQR <- Mclust(iqr, G=2)
filt=vector('logical',length=nrow(Exp))
filt[which(mmIQR$z[,2]>=prob1)]=T
return(filt) }
filtE=function(Exp,prob2) {
mE=apply(Exp,1... | /filtFun.R | no_license | cotsapaslab/CPMAtranseqtl | R | false | false | 521 | r | # R-functions used when filtering normalized expression data
# by Boel Brynedal
filtIQR=function(Exp,prob1) {
iqr=apply(Exp,1, function(x) IQR(x, na.rm = TRUE))
mmIQR <- Mclust(iqr, G=2)
filt=vector('logical',length=nrow(Exp))
filt[which(mmIQR$z[,2]>=prob1)]=T
return(filt) }
filtE=function(Exp,prob2) {
mE=apply(Exp,1... |
### pulls in several ESI geodatabases from
### https://response.restoration.noaa.gov/esi_download
rm(list=ls())
library(sp)
library(sf)
library(rgdal)
### ESI dataset - central California
fgdb = "data/CentralCal_2006_GDB/CentralCaliforniaESI.gdb/"
fc = readOGR(dsn=fgdb,verbose = T,layer = 'esil_arc')
latlon <- c()
I... | /R/read.ESI.data.R | no_license | esotka/BalanusGlandula | R | false | false | 3,382 | r | ### pulls in several ESI geodatabases from
### https://response.restoration.noaa.gov/esi_download
rm(list=ls())
library(sp)
library(sf)
library(rgdal)
### ESI dataset - central California
fgdb = "data/CentralCal_2006_GDB/CentralCaliforniaESI.gdb/"
fc = readOGR(dsn=fgdb,verbose = T,layer = 'esil_arc')
latlon <- c()
I... |
#!/usr/bin/env Rscript
# sbdiexportreannotate.R
#
# A script that collates taxonomy data from Ampliseq to produce an updated
# annotation tsv file as close to ready for submission to the Swedish
# Biodiversity Data Infrastructure (SBDI) as possible.
#
# The script expects the following arguments: dbversion, ASV_tax_sp... | /bin/sbdiexportreannotate.R | permissive | erikrikarddaniel/ampliseq | R | false | false | 3,236 | r | #!/usr/bin/env Rscript
# sbdiexportreannotate.R
#
# A script that collates taxonomy data from Ampliseq to produce an updated
# annotation tsv file as close to ready for submission to the Swedish
# Biodiversity Data Infrastructure (SBDI) as possible.
#
# The script expects the following arguments: dbversion, ASV_tax_sp... |
existing_product_attributes <- read.csv(paste("https://github.com/pvpgit/Predicting-Sales-Volume/tree/master/existing_product_attributes.csv", sep=""), header = TRUE)
install.packages("e1071")
library("e1071")
existing_product_attributes$"X.Product.Type." <- NULL
existing_product_attributes$"X.Best.Sellers.Rank." <- NU... | /SVM.R | no_license | pvpgit/Predicting-Sales-Volume | R | false | false | 2,438 | r | existing_product_attributes <- read.csv(paste("https://github.com/pvpgit/Predicting-Sales-Volume/tree/master/existing_product_attributes.csv", sep=""), header = TRUE)
install.packages("e1071")
library("e1071")
existing_product_attributes$"X.Product.Type." <- NULL
existing_product_attributes$"X.Best.Sellers.Rank." <- NU... |
# Use the "norm" package downloaded from CRAN to
# carry out proper multiple imputation using a
# multivariate normal model to impute on the
# bivariate normal data
#
# install.packages("norm") and choose a mirror site
#
# Visit the CRAN website for the documentation
# Load the libary for the norm package
l... | /course/st790_missing/examples/norm_mi.R | no_license | BowenNCSU/BowenNCSU.github.io | R | false | false | 8,426 | r | # Use the "norm" package downloaded from CRAN to
# carry out proper multiple imputation using a
# multivariate normal model to impute on the
# bivariate normal data
#
# install.packages("norm") and choose a mirror site
#
# Visit the CRAN website for the documentation
# Load the libary for the norm package
l... |
#' Probability Plots Using Maximum Likelihood Estimates
#'
#' Make quantile-quantile plots and probability-probability plots using maximum
#' likelihood estimation.
#'
#' `qqmlplot` produces a quantile-quantile plot (Q-Q plot) of the values in
#' `y` with respect to the distribution defined by `obj`, which is
#' eith... | /R/probability_plots.R | permissive | JonasMoss/univariateML | R | false | false | 4,108 | r | #' Probability Plots Using Maximum Likelihood Estimates
#'
#' Make quantile-quantile plots and probability-probability plots using maximum
#' likelihood estimation.
#'
#' `qqmlplot` produces a quantile-quantile plot (Q-Q plot) of the values in
#' `y` with respect to the distribution defined by `obj`, which is
#' eith... |
#' Creates all the dataframes and save them in the specified folder
#' @inheritParams default_params_doc
#' @export
run_all <- function(
address1 = "https://docs.google.com/spreadsheets/d/1wKeDUhL4TJJ9yVUDN49kOANU_5Y77r6-vIxaq4Wgdks/",
address2 = "https://docs.google.com/spreadsheets/d/1AipazAj6Ebfuv0Kek4xMRYva8sod... | /R/run_all.R | no_license | Giappo/dbmefu | R | false | false | 1,059 | r | #' Creates all the dataframes and save them in the specified folder
#' @inheritParams default_params_doc
#' @export
run_all <- function(
address1 = "https://docs.google.com/spreadsheets/d/1wKeDUhL4TJJ9yVUDN49kOANU_5Y77r6-vIxaq4Wgdks/",
address2 = "https://docs.google.com/spreadsheets/d/1AipazAj6Ebfuv0Kek4xMRYva8sod... |
# Load data. This assumes that the data file is in the working directory
epc <- read.table('./household_power_consumption.txt', sep=";", header=TRUE)
# Get subset for dates between 2/1/2007 and 2/2/2007
epc$Date <- as.character(epc$Date)
epc.sub <- epc[(epc$Date == "1/2/2007") | (epc$Date == "2/2/2007"), ]
#make a ve... | /plot3.R | no_license | msbuckley/ExData_Plotting1 | R | false | false | 1,101 | r | # Load data. This assumes that the data file is in the working directory
epc <- read.table('./household_power_consumption.txt', sep=";", header=TRUE)
# Get subset for dates between 2/1/2007 and 2/2/2007
epc$Date <- as.character(epc$Date)
epc.sub <- epc[(epc$Date == "1/2/2007") | (epc$Date == "2/2/2007"), ]
#make a ve... |
install.packages("locfit")
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("DESeq2") | /batchx/deg-patterns/install.deg-patterns2.R | permissive | lpantano/DEGreport | R | false | false | 140 | r |
install.packages("locfit")
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("DESeq2") |
#Brandon Vermeer
#Thesis Code
#Spring 2018
#############################################################
#clear items and install packages
rm(list=ls())
install.packages("car")
library("car")
#set working directory
getwd()
setwd("/Users/BrandonVermeer/Documents/Thesis/NHL_Team_Stats")
#Load 2015-2016 Season Tea... | /NHL_Analysis.R | no_license | brandonbev/Regression_to_predict_NHL_wins | R | false | false | 1,731 | r | #Brandon Vermeer
#Thesis Code
#Spring 2018
#############################################################
#clear items and install packages
rm(list=ls())
install.packages("car")
library("car")
#set working directory
getwd()
setwd("/Users/BrandonVermeer/Documents/Thesis/NHL_Team_Stats")
#Load 2015-2016 Season Tea... |
# this returns a scatterplot for all countries in which
# we can compare the urban and rural unemployment with plotly
# load in packages
library(dplyr)
source('./scripts/datafunctions.R')
# data to test out our function
data <- read.csv("./data/ilodata.csv")
data <- filter(data, !is.na(Obs_Value))
# pare down colu... | /finalproject-master/scripts/scatter.R | no_license | Anushree-12/WINFO-Hackathon-2018 | R | false | false | 736 | r | # this returns a scatterplot for all countries in which
# we can compare the urban and rural unemployment with plotly
# load in packages
library(dplyr)
source('./scripts/datafunctions.R')
# data to test out our function
data <- read.csv("./data/ilodata.csv")
data <- filter(data, !is.na(Obs_Value))
# pare down colu... |
context("gce-token-mocked")
test_that('Can list service accounts', {
service_accounts = c('account1@project.gserviceaccount.com', 'default')
request_mock <- function(path, ...) {
stopifnot(path == 'instance/service-accounts')
httr:::response(
url = path,
status_code = 200,
header = list(`... | /tests/testthat/test-gce-token.R | permissive | takewiki/gargle | R | false | false | 1,477 | r | context("gce-token-mocked")
test_that('Can list service accounts', {
service_accounts = c('account1@project.gserviceaccount.com', 'default')
request_mock <- function(path, ...) {
stopifnot(path == 'instance/service-accounts')
httr:::response(
url = path,
status_code = 200,
header = list(`... |
birth1 <- c(1,0,0,0,1,1,0,1,0,1,0,0,1,1,0,1,1,0,0,0,1,0,0,0,1,0,
0,0,0,1,1,1,0,1,0,1,1,1,0,1,0,1,1,0,1,0,0,1,1,0,1,0,0,0,0,0,0,0,
1,1,0,1,0,0,1,0,0,0,1,0,0,1,1,1,1,0,1,0,1,1,1,1,1,0,0,1,0,1,1,0,
1,0,1,1,1,0,1,1,1,1)
birth2 <- c(0,1,0,1,0,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,1,0,
1,1,1,0,1,1,1,0,1,0,0,1,1,1,1,0,0,... | /data/homeworkch3.R | permissive | StatisticalRethinkingJulia/DynamicHMCModels.jl | R | false | false | 438 | r | birth1 <- c(1,0,0,0,1,1,0,1,0,1,0,0,1,1,0,1,1,0,0,0,1,0,0,0,1,0,
0,0,0,1,1,1,0,1,0,1,1,1,0,1,0,1,1,0,1,0,0,1,1,0,1,0,0,0,0,0,0,0,
1,1,0,1,0,0,1,0,0,0,1,0,0,1,1,1,1,0,1,0,1,1,1,1,1,0,0,1,0,1,1,0,
1,0,1,1,1,0,1,1,1,1)
birth2 <- c(0,1,0,1,0,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,1,0,
1,1,1,0,1,1,1,0,1,0,0,1,1,1,1,0,0,... |
# tests for avisHasSpecies in rAvis
context("avisHasSpecies")
test_that("Pica pica is in the database, Pica pic is not",{
nameraw<- "Pica pica"
expect_true(avisHasSpecies (nameraw))
nameraw<- "Pica pic"
expect_false(avisHasSpecies (nameraw))
})
| /rAvis/tests/testthat_disabled/test-avisHasSpecies.R | no_license | ingted/R-Examples | R | false | false | 279 | r | # tests for avisHasSpecies in rAvis
context("avisHasSpecies")
test_that("Pica pica is in the database, Pica pic is not",{
nameraw<- "Pica pica"
expect_true(avisHasSpecies (nameraw))
nameraw<- "Pica pic"
expect_false(avisHasSpecies (nameraw))
})
|
#Primary functions for running the selection model
#' Fit the Selection Model for Proteomics
#'
#' @param dat Correctly formated and normalized data frame
#' @param ndraws Number of draws of the Gibbs Sampler
#' @param burn Number of draws to discard before summarizing the posterior
#' @param fc_prior Explicitly set a... | /R/main.R | no_license | Feigeliudan01/missMS | R | false | false | 2,918 | r | #Primary functions for running the selection model
#' Fit the Selection Model for Proteomics
#'
#' @param dat Correctly formated and normalized data frame
#' @param ndraws Number of draws of the Gibbs Sampler
#' @param burn Number of draws to discard before summarizing the posterior
#' @param fc_prior Explicitly set a... |
# Load packages
library(tidyverse)
library(tidymodels)
library(naniar)
library(corrplot)
library(corrr)
library(glmnet)
library(ranger)
# set seed
set.seed(123)
# load data
loan_train <- read_csv("stat-301-3-classification-2021-loan-repayment/train.csv")
loan_test <- read_csv("stat-301-3-classification-2021-loan-repaym... | /rf_results.R | no_license | lilyyan2023/STAT301-3Classification | R | false | false | 1,397 | r | # Load packages
library(tidyverse)
library(tidymodels)
library(naniar)
library(corrplot)
library(corrr)
library(glmnet)
library(ranger)
# set seed
set.seed(123)
# load data
loan_train <- read_csv("stat-301-3-classification-2021-loan-repayment/train.csv")
loan_test <- read_csv("stat-301-3-classification-2021-loan-repaym... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_JAGS_model.R
\name{write_JAGS_model}
\alias{write_JAGS_model}
\title{Write the JAGS model file}
\usage{
write_JAGS_model(
filename = "MixSIAR_model.txt",
resid_err = TRUE,
process_err = TRUE,
mix,
source
)
}
\arguments{
\item{... | /man/write_JAGS_model.Rd | no_license | cran/MixSIAR | R | false | true | 1,557 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_JAGS_model.R
\name{write_JAGS_model}
\alias{write_JAGS_model}
\title{Write the JAGS model file}
\usage{
write_JAGS_model(
filename = "MixSIAR_model.txt",
resid_err = TRUE,
process_err = TRUE,
mix,
source
)
}
\arguments{
\item{... |
#' @rdname stat_summary
#' @inheritParams stat_bin
#' @export
stat_summary_bin <- function(mapping = NULL, data = NULL,
geom = "pointrange", position = "identity",
...,
fun.data = NULL,
fun = NULL,... | /R/stat-summary-bin.R | no_license | cran/ggplot2 | R | false | false | 4,149 | r | #' @rdname stat_summary
#' @inheritParams stat_bin
#' @export
stat_summary_bin <- function(mapping = NULL, data = NULL,
geom = "pointrange", position = "identity",
...,
fun.data = NULL,
fun = NULL,... |
computeCost <- function(X, y, theta){
m = length(y)
return ((1/(2*m)) * sum((X %*% theta - y) ^ 2))
} | /exercise1/computeCost.R | no_license | Lemmawool/R-Practice | R | false | false | 105 | r | computeCost <- function(X, y, theta){
m = length(y)
return ((1/(2*m)) * sum((X %*% theta - y) ^ 2))
} |
## The function cacheSolve computes the inverse of matrix X.
## If it is already computed, then return the cached data.
## It uses the makeCacheMatrix "matrix" object that can
## cache its inverse.
## makeCacheMatrix function is a special "matrix" object.
## set: store the data matrix.
## get: return the d... | /cachematrix.R | no_license | djusto/ProgrammingAssignment2 | R | false | false | 1,258 | r | ## The function cacheSolve computes the inverse of matrix X.
## If it is already computed, then return the cached data.
## It uses the makeCacheMatrix "matrix" object that can
## cache its inverse.
## makeCacheMatrix function is a special "matrix" object.
## set: store the data matrix.
## get: return the d... |
defExonicRegions <-
function(regionsGene)
{
## regionsGene: matrix with the structure of the exons of a gene
## we sort the exons based on the genomic start
if(is.unsorted(regionsGene$Exon.Chr.Start..bp.,))
{
regionsGene <- regionsGene[order(regionsGene$Exon.Chr.Start..bp.),]
}
## we check whether there... | /R/defExonicRegions.R | no_license | gughi/eQTLPipeline | R | false | false | 1,079 | r | defExonicRegions <-
function(regionsGene)
{
## regionsGene: matrix with the structure of the exons of a gene
## we sort the exons based on the genomic start
if(is.unsorted(regionsGene$Exon.Chr.Start..bp.,))
{
regionsGene <- regionsGene[order(regionsGene$Exon.Chr.Start..bp.),]
}
## we check whether there... |
# Packages and helpers specific to model fitting and prediction
if (!exists("MODELING_R__")) {
library("glmnet")
library("gbm")
.get_mm <- function (d, f, discrete_y = TRUE) {
# Given a data.frame and formula, return the model matrix X and y as a list
# Args:
# d: data frame used for trainin... | /src/modeling.R | no_license | jballesterosc/recidivism-predictions | R | false | false | 8,929 | r | # Packages and helpers specific to model fitting and prediction
if (!exists("MODELING_R__")) {
library("glmnet")
library("gbm")
.get_mm <- function (d, f, discrete_y = TRUE) {
# Given a data.frame and formula, return the model matrix X and y as a list
# Args:
# d: data frame used for trainin... |
file1<-read_excel("Centroid_Location1.xls")
install.packages("readxl")
#access library
library("readxl")
sheet1 <- read_excel("Centroid_Location1.xlsx", sheet = 1)
sheet2 <- read_excel("Centroid_Location1.xlsx", sheet = 2)
sheet3 <- read_excel("Centroid_Location1.xlsx", sheet = 3)
sheet4 <- read_excel("Centroid_Locati... | /facility location/Thesis_facility_location/code/excel_upload.R | no_license | ranasingh-gkp/Thesis_facility_location | R | false | false | 3,140 | r | file1<-read_excel("Centroid_Location1.xls")
install.packages("readxl")
#access library
library("readxl")
sheet1 <- read_excel("Centroid_Location1.xlsx", sheet = 1)
sheet2 <- read_excel("Centroid_Location1.xlsx", sheet = 2)
sheet3 <- read_excel("Centroid_Location1.xlsx", sheet = 3)
sheet4 <- read_excel("Centroid_Locati... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 239615
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 236510
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 236510
c
c Input Parameter (command lin... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Kronegger-Pfandler-Pichler/bomb/p20-5.pddl_planlen=40/p20-5.pddl_planlen=40.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 15,784 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 239615
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 236510
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 236510
c
c Input Parameter (command lin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sof.schaffer.function.2.R
\name{makeSchafferN2Function}
\alias{makeSchafferN2Function}
\title{Modified Schaffer Function N. 2}
\usage{
makeSchafferN2Function()
}
\value{
[\code{smoof_single_objective_function}]
}
\description{
Second function... | /man/makeSchafferN2Function.Rd | no_license | mllg/smoof | R | false | true | 691 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sof.schaffer.function.2.R
\name{makeSchafferN2Function}
\alias{makeSchafferN2Function}
\title{Modified Schaffer Function N. 2}
\usage{
makeSchafferN2Function()
}
\value{
[\code{smoof_single_objective_function}]
}
\description{
Second function... |
#KoNLP 설치
install.packages("KoNLP")
library(KoNLP)
library(stringi)
#KoNLP를 불러올때 에러가 난다면 JAVA의 경로를 다시 세팅
#Sys.setenv(JAVA_HOME="C:/Program Files/Java/jre1.8.0_131/")
#문석 대상 텍스트
sentence1 = "류현진(30·LA다저스)이 복귀전에서 5회를 버티지 못했다. 하지만 충분히 박수를 받을만한 경기였다."
sentence2 = "샌프란시스코 자이언츠 내야수 황재균은 2일(한국시간) PNC파크에서 열린 피츠버그 파이어리츠와의 원정 ... | /FastCampus/Week_3/konlp_test.R | no_license | NamyounKim/RWork | R | false | false | 1,132 | r | #KoNLP 설치
install.packages("KoNLP")
library(KoNLP)
library(stringi)
#KoNLP를 불러올때 에러가 난다면 JAVA의 경로를 다시 세팅
#Sys.setenv(JAVA_HOME="C:/Program Files/Java/jre1.8.0_131/")
#문석 대상 텍스트
sentence1 = "류현진(30·LA다저스)이 복귀전에서 5회를 버티지 못했다. 하지만 충분히 박수를 받을만한 경기였다."
sentence2 = "샌프란시스코 자이언츠 내야수 황재균은 2일(한국시간) PNC파크에서 열린 피츠버그 파이어리츠와의 원정 ... |
\name{several.breakpoints}
\alias{several.breakpoints}
\title{several breakpoints}
\description{Zero-one loss when breakpoint annotations are considered to mean
presence of 1 or more breakpoints.}
\usage{several.breakpoints(counts, anns)}
\arguments{
\item{counts}{Counts of breakpoints of model.}
\item{anns... | /man/several.breakpoints.Rd | no_license | tdhock/bams | R | false | false | 411 | rd | \name{several.breakpoints}
\alias{several.breakpoints}
\title{several breakpoints}
\description{Zero-one loss when breakpoint annotations are considered to mean
presence of 1 or more breakpoints.}
\usage{several.breakpoints(counts, anns)}
\arguments{
\item{counts}{Counts of breakpoints of model.}
\item{anns... |
# Data Management 1----
rm(list=ls())
library(plyr)
library(tidyverse)
library(magrittr)
library(ggiraph)
library(stargazer)
library(foreign)
library(ggthemes)
library(readxl)
library(bit64)
library(data.table)
library(plm)
load("data/aiddata.Rdata")
countrynames2<- c("Cabo Verde", "Gambia, The", "Ivory Coast","An... | /Files/Course Scripts/script_aiddata.R | no_license | LuMesserschmidt/stats_CoronaNet | R | false | false | 6,806 | r |
# Data Management 1----
rm(list=ls())
library(plyr)
library(tidyverse)
library(magrittr)
library(ggiraph)
library(stargazer)
library(foreign)
library(ggthemes)
library(readxl)
library(bit64)
library(data.table)
library(plm)
load("data/aiddata.Rdata")
countrynames2<- c("Cabo Verde", "Gambia, The", "Ivory Coast","An... |
## ----setup, include=FALSE-----------------------------------------------------------------------------------------------------------
library(rgl)
knitr::opts_chunk$set(echo = TRUE)
knitr::knit_hooks$set(webgl = hook_webgl)
## .extracode {
## background-color: lightblue;
## }
## ---------------------------------... | /Block II - Nonparametric Inference/NPS-lab07_Confidence.R | no_license | EricaManf/lab_nonparametricstatistics | R | false | false | 2,499 | r | ## ----setup, include=FALSE-----------------------------------------------------------------------------------------------------------
library(rgl)
knitr::opts_chunk$set(echo = TRUE)
knitr::knit_hooks$set(webgl = hook_webgl)
## .extracode {
## background-color: lightblue;
## }
## ---------------------------------... |
\name{atoms.sort}
\alias{atoms.sort}
\title{Sorts atoms}
\usage{
atoms.sort(atoms, sortindices = c(7, 3, 1, 2))
}
\arguments{
\item{atoms}{dataframe of atoms}
\item{sortindices}{vector of indices after which to sort.
\code{c(1,3)} will sort by rx then by rz}
}
\description{
\code{atoms.sort} sorts atoms.
}
| /Rvasp/man/atoms.sort.Rd | permissive | gokhansurucu/Rvasp | R | false | false | 320 | rd | \name{atoms.sort}
\alias{atoms.sort}
\title{Sorts atoms}
\usage{
atoms.sort(atoms, sortindices = c(7, 3, 1, 2))
}
\arguments{
\item{atoms}{dataframe of atoms}
\item{sortindices}{vector of indices after which to sort.
\code{c(1,3)} will sort by rx then by rz}
}
\description{
\code{atoms.sort} sorts atoms.
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/esm.R
\name{esm}
\alias{esm}
\title{Errore standard (della media)}
\usage{
esm(x, q = 1.96, digits = 6)
}
\arguments{
\item{x}{vettore}
\item{q}{quantile (o qualunque valore) della distribuzione normale
default = 1.96 (int. conf ... | /man/esm.Rd | no_license | cran/LabRS | R | false | true | 781 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/esm.R
\name{esm}
\alias{esm}
\title{Errore standard (della media)}
\usage{
esm(x, q = 1.96, digits = 6)
}
\arguments{
\item{x}{vettore}
\item{q}{quantile (o qualunque valore) della distribuzione normale
default = 1.96 (int. conf ... |
## Put comments here that give an overall description of what your
## functions do
##Creating two functions that work together to return the inverse of a matrix.
## Write a short comment describing this function
##makeCacheMatrix sets up the functions/objects to store,set and retrieve the inverse
makeCacheMatrix <- fu... | /cachematrix.R | no_license | hardisoneverett/ProgrammingAssignment2 | R | false | false | 1,047 | r | ## Put comments here that give an overall description of what your
## functions do
##Creating two functions that work together to return the inverse of a matrix.
## Write a short comment describing this function
##makeCacheMatrix sets up the functions/objects to store,set and retrieve the inverse
makeCacheMatrix <- fu... |
testlist <- list(type = 207L, z = 3.23785921002061e-319)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609894290-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 110 | r | testlist <- list(type = 207L, z = 3.23785921002061e-319)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
#' ARMET-tc main
#'
#' @description This function calls the stan model.
#'
#'
#' @import dplyr
#' @import purrr
#'
#' @importFrom tidybulk aggregate_duplicates
#' @importFrom tidybulk scale_abundance
#' @importFrom tidybulk as_matrix
#'
#' @importFrom tidyr spread
#' @importFrom tidyr gather
#' @importFrom tidyr drop_... | /R/functions_NON_hierarchical.R | no_license | stemangiola/ARMET | R | false | false | 22,427 | r | #' ARMET-tc main
#'
#' @description This function calls the stan model.
#'
#'
#' @import dplyr
#' @import purrr
#'
#' @importFrom tidybulk aggregate_duplicates
#' @importFrom tidybulk scale_abundance
#' @importFrom tidybulk as_matrix
#'
#' @importFrom tidyr spread
#' @importFrom tidyr gather
#' @importFrom tidyr drop_... |
library(shiny)
library(bootstraplib)
library(waiter)
library(bsplus)
library(shinyjs)
bs_theme_new(version = "4+3", bootswatch = "slate")
bs_theme_accent_colors(secondary = "#f8f8f8e6")
bs_theme_add_variables(black = "#88837d")
ui = tagList(
## functions required to be used in the ui
bootstrap(),
use_wa... | /ui.R | no_license | shahreyar-abeer/life_of_pi | R | false | false | 8,167 | r |
library(shiny)
library(bootstraplib)
library(waiter)
library(bsplus)
library(shinyjs)
bs_theme_new(version = "4+3", bootswatch = "slate")
bs_theme_accent_colors(secondary = "#f8f8f8e6")
bs_theme_add_variables(black = "#88837d")
ui = tagList(
## functions required to be used in the ui
bootstrap(),
use_wa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.