content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library(ggplot2)
library(data.table)
library(p.exact)
per_chrom <- function(x){ # function to find per chromosome position
if (x <= 34964571){
as.numeric(x)
}
else if(x <= 57002136){
as.numeric(x - 34964571)
}
else if(x <= 82501170){
as.numeric(x - 57002136)
}
else if(x <= 103363881){
as.n... | /src/HA-coefficient script with data processing.R | no_license | liberjul/GWAS_comparisons | R | false | false | 3,476 | r | library(ggplot2)
library(data.table)
library(p.exact)
per_chrom <- function(x){ # function to find per chromosome position
if (x <= 34964571){
as.numeric(x)
}
else if(x <= 57002136){
as.numeric(x - 34964571)
}
else if(x <= 82501170){
as.numeric(x - 57002136)
}
else if(x <= 103363881){
as.n... |
## `ps_complete.Rds` (input) is a cleaned up phyloseq-object based on code included in the
## MUIS5_NP-project (`load_NP.Rmd`). Among others, the data was curated, `decontam`-inated and
## undoubled.
## Here, we make a selection of samples, so these can be used to demonstrate functions contained
## in this package.
l... | /data-raw/ps_NP.R | permissive | wsteenhu/microbiomer | R | false | false | 1,009 | r | ## `ps_complete.Rds` (input) is a cleaned up phyloseq-object based on code included in the
## MUIS5_NP-project (`load_NP.Rmd`). Among others, the data was curated, `decontam`-inated and
## undoubled.
## Here, we make a selection of samples, so these can be used to demonstrate functions contained
## in this package.
l... |
#!/usr/bin/env Rscript
# Run sc3_calc_dists() function. This function calculates distances between the
# cells. It creates and populates the following items of the sc3 slot of the
# metadata(object):
#
# distances - contains a list of distance matrices corresponding to Euclidean, Pearson and Spearman distances.
# Sc... | /sc3-sc3-calc-dists.R | permissive | ebi-gene-expression-group/bioconductor-sc3-scripts | R | false | false | 2,049 | r | #!/usr/bin/env Rscript
# Run sc3_calc_dists() function. This function calculates distances between the
# cells. It creates and populates the following items of the sc3 slot of the
# metadata(object):
#
# distances - contains a list of distance matrices corresponding to Euclidean, Pearson and Spearman distances.
# Sc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/queue.R
\name{enqueue}
\alias{enqueue}
\title{Add an Element}
\usage{
enqueue(x, val, ...)
}
\arguments{
\item{x}{a queue object}
\item{val}{an R object}
\item{...}{arguments passed to other methods}
}
\value{
Nothing useful
}
\description{... | /man/enqueue.Rd | no_license | rdpeng/queue | R | false | true | 427 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/queue.R
\name{enqueue}
\alias{enqueue}
\title{Add an Element}
\usage{
enqueue(x, val, ...)
}
\arguments{
\item{x}{a queue object}
\item{val}{an R object}
\item{...}{arguments passed to other methods}
}
\value{
Nothing useful
}
\description{... |
## Two functions for Coursera R programming
## assignment 2.
## This first function produces a special matrix
## for which it is possible to cache the inverse.
## First one creates a variable with
## foo <- makeCacheMatrix()
## Then initializes it with, (for example)
## foo$set(matrix( rnorm(16), 4, 4))
makeCacheMa... | /cachematrix.R | no_license | oldmanstompy/ProgrammingAssignment2 | R | false | false | 1,046 | r | ## Two functions for Coursera R programming
## assignment 2.
## This first function produces a special matrix
## for which it is possible to cache the inverse.
## First one creates a variable with
## foo <- makeCacheMatrix()
## Then initializes it with, (for example)
## foo$set(matrix( rnorm(16), 4, 4))
makeCacheMa... |
logit <- function(x){
log(x/(1-x))
}
expit <- function(x){
exp(x)/(1+exp(x))
}
library(mvtnorm)
library(binarySimCLF)
gen.data.my <- function(n , k , q , b , a , R){
#n <- 500 # number of individuals
#k <- 3 # number of obs per cluster
#q <- 2 # number of covariates
#b <- c(.3,-.5) # beta for q's
... | /code/previous/gen_data_my.r | no_license | mcefalu/CorrBin | R | false | false | 1,802 | r | logit <- function(x){
log(x/(1-x))
}
expit <- function(x){
exp(x)/(1+exp(x))
}
library(mvtnorm)
library(binarySimCLF)
gen.data.my <- function(n , k , q , b , a , R){
#n <- 500 # number of individuals
#k <- 3 # number of obs per cluster
#q <- 2 # number of covariates
#b <- c(.3,-.5) # beta for q's
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tabulate_aux.R
\name{get_n_questions}
\alias{get_n_questions}
\title{Get number of questions}
\usage{
get_n_questions(survey_data)
}
\arguments{
\item{survey_data}{Tibble. Question table with numbers as categories}
}
\value{
Numeric. The numb... | /man/get_n_questions.Rd | permissive | leofmr/surveystats | R | false | true | 460 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tabulate_aux.R
\name{get_n_questions}
\alias{get_n_questions}
\title{Get number of questions}
\usage{
get_n_questions(survey_data)
}
\arguments{
\item{survey_data}{Tibble. Question table with numbers as categories}
}
\value{
Numeric. The numb... |
temperature<-read.csv("Temperature_Phenology_Analysis/Outputs/temperature.data.csv",header=T)
names(temperature)<-tolower(names(temperature))
head(temperature)
#temperature$month = factor(temperature$month, levels=c("jan", "feb", "mar","apr","may","jun","jul","aug","sep","oct","nov","dec"))
par(mfrow = c(3, 3))
for... | /Temperature_Phenology_Analysis/Scripts/Temperature data/Plot of temperature vs month for each year from 1976.R | no_license | mgreenwell/Phenology_Analysis | R | false | false | 675 | r | temperature<-read.csv("Temperature_Phenology_Analysis/Outputs/temperature.data.csv",header=T)
names(temperature)<-tolower(names(temperature))
head(temperature)
#temperature$month = factor(temperature$month, levels=c("jan", "feb", "mar","apr","may","jun","jul","aug","sep","oct","nov","dec"))
par(mfrow = c(3, 3))
for... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metadata.R
\name{as.data.frame.metadata}
\alias{as.data.frame.metadata}
\title{Convert a metadata object to a 1-row data.frame}
\usage{
\method{as.data.frame}{metadata}(x, row.names = NULL, optional = FALSE, ...,
stringsAsFactors = FALSE)
}... | /man/as.data.frame.metadata.Rd | permissive | McDowellLab/loadflex | R | false | true | 1,213 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metadata.R
\name{as.data.frame.metadata}
\alias{as.data.frame.metadata}
\title{Convert a metadata object to a 1-row data.frame}
\usage{
\method{as.data.frame}{metadata}(x, row.names = NULL, optional = FALSE, ...,
stringsAsFactors = FALSE)
}... |
## The following are two sepparate functions that cache
## and compute the inverse of a matrix
## The first function, 'makeCacheMatrix' creates a special
## "matrix" object that can cache its inverse
makeCacheMatrix5 <- function(mtx = matrix()) {
inverse <- NULL
set <- function(x) {
mtx <<- x... | /cachematrix.R | no_license | artykreaper/ProgrammingAssignment2 | R | false | false | 1,165 | r | ## The following are two sepparate functions that cache
## and compute the inverse of a matrix
## The first function, 'makeCacheMatrix' creates a special
## "matrix" object that can cache its inverse
makeCacheMatrix5 <- function(mtx = matrix()) {
inverse <- NULL
set <- function(x) {
mtx <<- x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{get_data_structure}
\alias{get_data_structure}
\title{Get the data structure of a dataset.}
\usage{
get_data_structure(dataset)
}
\arguments{
\item{dataset}{A string containing the code for a dataset}
}
\value{
A list of data fra... | /man/get_data_structure.Rd | no_license | asaelin/OECD | R | false | true | 500 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{get_data_structure}
\alias{get_data_structure}
\title{Get the data structure of a dataset.}
\usage{
get_data_structure(dataset)
}
\arguments{
\item{dataset}{A string containing the code for a dataset}
}
\value{
A list of data fra... |
#' @title Make TSNE Plot from Comparison Matrix
#' @description
#' From a user-inputted value, creates a TSNE plot from the
#' sample data and colors each point by the subtype information
#' provided.
#' @param compare.matrix The comparison matrix generated from
#' the compMatrix() function
#' @param value The value to... | /R/epiTSNE.R | no_license | alexyfyf/epihet | R | false | false | 5,410 | r | #' @title Make TSNE Plot from Comparison Matrix
#' @description
#' From a user-inputted value, creates a TSNE plot from the
#' sample data and colors each point by the subtype information
#' provided.
#' @param compare.matrix The comparison matrix generated from
#' the compMatrix() function
#' @param value The value to... |
## File Name: lq_fit_estimate_power.R
## File Version: 0.15
lq_fit_estimate_power <- function(e, pow_init=2, lower_pow=.1, upper_pow=10)
{
pow0 <- pow_init
me <- mean(e)
n <- length(e)
est_pow <- TRUE
if (stats::var(e)<1e-5){
est_pow <- FALSE
p <- pow0
}
if (e... | /R/lq_fit_estimate_power.R | no_license | cran/sirt | R | false | false | 753 | r | ## File Name: lq_fit_estimate_power.R
## File Version: 0.15
lq_fit_estimate_power <- function(e, pow_init=2, lower_pow=.1, upper_pow=10)
{
pow0 <- pow_init
me <- mean(e)
n <- length(e)
est_pow <- TRUE
if (stats::var(e)<1e-5){
est_pow <- FALSE
p <- pow0
}
if (e... |
### =========================================================================
### RectangularData objects
### -------------------------------------------------------------------------
###
### RectangularData is a virtual class with no slots to be extended by
### classes that aim at representing objects with a rectangul... | /R/RectangularData-class.R | no_license | Bioconductor/S4Vectors | R | false | false | 10,646 | r | ### =========================================================================
### RectangularData objects
### -------------------------------------------------------------------------
###
### RectangularData is a virtual class with no slots to be extended by
### classes that aim at representing objects with a rectangul... |
############################################################################################
# For multilinear interpolation approximation for bridge Inverse
############################################################################################
#' @importFrom chebpol ipol
NULL
##################################... | /R/bridgeInv.R | no_license | IrinaStatsLab/mixedCCA | R | false | false | 4,208 | r | ############################################################################################
# For multilinear interpolation approximation for bridge Inverse
############################################################################################
#' @importFrom chebpol ipol
NULL
##################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/taxmap--docs.R
\name{n_obs_1}
\alias{n_obs_1}
\title{Count observation assigned in \code{\link[=taxmap]{taxmap()}}}
\arguments{
\item{obj}{(\code{\link[=taxmap]{taxmap()}})}
\item{data}{Dataset name, index, or a logical vector that indicates... | /man/n_obs_1.Rd | permissive | grabear/taxa | R | false | true | 1,435 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/taxmap--docs.R
\name{n_obs_1}
\alias{n_obs_1}
\title{Count observation assigned in \code{\link[=taxmap]{taxmap()}}}
\arguments{
\item{obj}{(\code{\link[=taxmap]{taxmap()}})}
\item{data}{Dataset name, index, or a logical vector that indicates... |
rm(list=ls())
setwd("/home/matt/Documents/EEE4022S Project/Stats Analysis")
dir()
#Section A
require(MASS)
require(plyr)
library(plyr)
raw_data_1<-read.csv("RAW Flume Data 1.csv")
raw_data_2<-read.csv("RAW Flume Data 2.csv")
raw_data_3<-read.csv("RAW Flume Data 3.csv")
head(raw_data_1)
head(raw_data_2)
#Diagnostic P... | /Results Analysis.R | no_license | kvwa-watersensor/R-Stuff | R | false | false | 5,260 | r | rm(list=ls())
setwd("/home/matt/Documents/EEE4022S Project/Stats Analysis")
dir()
#Section A
require(MASS)
require(plyr)
library(plyr)
raw_data_1<-read.csv("RAW Flume Data 1.csv")
raw_data_2<-read.csv("RAW Flume Data 2.csv")
raw_data_3<-read.csv("RAW Flume Data 3.csv")
head(raw_data_1)
head(raw_data_2)
#Diagnostic P... |
library(divDyn)
### Name: indices
### Title: Scalar indices of diversity
### Aliases: indices
### ** Examples
# the coral data
data(corals)
# Pleistocene subset
plei <- corals[corals$stg==94,]
# calculate everything
pleiIndex<-indices(plei$genus, plei$coll)
| /data/genthat_extracted_code/divDyn/examples/indices.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 275 | r | library(divDyn)
### Name: indices
### Title: Scalar indices of diversity
### Aliases: indices
### ** Examples
# the coral data
data(corals)
# Pleistocene subset
plei <- corals[corals$stg==94,]
# calculate everything
pleiIndex<-indices(plei$genus, plei$coll)
|
library(optpart)
### Name: opttdev
### Title: Optimizing Classification by Minimizing Table Deviance
### Aliases: opttdev
### Keywords: cluster
### ** Examples
## Not run: data(shoshveg) # returns a data.frame of vegetation
## Not run: # data called shoshveg
## Not run: res <- opttdev(shoshveg,sample(1:... | /data/genthat_extracted_code/optpart/examples/opttdev.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 397 | r | library(optpart)
### Name: opttdev
### Title: Optimizing Classification by Minimizing Table Deviance
### Aliases: opttdev
### Keywords: cluster
### ** Examples
## Not run: data(shoshveg) # returns a data.frame of vegetation
## Not run: # data called shoshveg
## Not run: res <- opttdev(shoshveg,sample(1:... |
plot_data_column <- function (data1, data2, data3, bins, column) {
p <- ggplot(data1, aes(bins, y=value, color = samples)) +
geom_line(aes(y=data1[, column], col='WT'), size=3) +
geom_line(aes(y=data2[, column], col='Clone 25'), size=3) +
geom_line(aes(y=data3[, column], col='Clone 21'), size=3) +
... | /hic_pipeline/plot_columns.R | no_license | dizhmp/boundary-insertion | R | false | false | 771 | r | plot_data_column <- function (data1, data2, data3, bins, column) {
p <- ggplot(data1, aes(bins, y=value, color = samples)) +
geom_line(aes(y=data1[, column], col='WT'), size=3) +
geom_line(aes(y=data2[, column], col='Clone 25'), size=3) +
geom_line(aes(y=data3[, column], col='Clone 21'), size=3) +
... |
#' Generate ggexp palette with assigned color values based on alphabetized input values and overriden with input palette
#'
#' @param values
#' @param palette
#' @param return_ggplot_scale
#'
#' @return
#' @export
#'
#' @examples
get_palette = function(values = NULL, palette = c(), return_ggplot_scale = TRUE) {
palet... | /R/palette.R | permissive | keshav-motwani/ggexp | R | false | false | 6,917 | r | #' Generate ggexp palette with assigned color values based on alphabetized input values and overriden with input palette
#'
#' @param values
#' @param palette
#' @param return_ggplot_scale
#'
#' @return
#' @export
#'
#' @examples
get_palette = function(values = NULL, palette = c(), return_ggplot_scale = TRUE) {
palet... |
R2S4 <-
function(x) {M = read.delim(x, header = TRUE, sep = "\t"); temp=new("Abstracts", Journal=as.character(M$Journal), Abstract=as.character(M$Abstract), PMID=as.numeric(M$PMID)); return(temp)}
| /R/R2S4.R | no_license | iramonarch/pubmed.mineR | R | false | false | 201 | r | R2S4 <-
function(x) {M = read.delim(x, header = TRUE, sep = "\t"); temp=new("Abstracts", Journal=as.character(M$Journal), Abstract=as.character(M$Abstract), PMID=as.numeric(M$PMID)); return(temp)}
|
###plot.mixedAn###############################################################################################
#' Summary plot of the health economic analysis when the mixed analysis is
#' considered
#'
#' Compares the optimal scenario to the mixed case in terms of the EVPI
#'
#'
#' @param x An object of class \co... | /R/plot.mixedAn.R | no_license | PAREXEL-PAC/BCEA | R | false | false | 7,985 | r | ###plot.mixedAn###############################################################################################
#' Summary plot of the health economic analysis when the mixed analysis is
#' considered
#'
#' Compares the optimal scenario to the mixed case in terms of the EVPI
#'
#'
#' @param x An object of class \co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qpcr_clean.R
\name{qpcr_clean}
\alias{qpcr_clean}
\title{Remove outliers}
\usage{
qpcr_clean(.data, cq, threshold, ...)
}
\arguments{
\item{.data}{A data frame or tibble.}
\item{cq}{Unquoted expression. The name of the column containing the ... | /man/qpcr_clean.Rd | permissive | JorikBot/tidyqpcr | R | false | true | 2,008 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qpcr_clean.R
\name{qpcr_clean}
\alias{qpcr_clean}
\title{Remove outliers}
\usage{
qpcr_clean(.data, cq, threshold, ...)
}
\arguments{
\item{.data}{A data frame or tibble.}
\item{cq}{Unquoted expression. The name of the column containing the ... |
library(R.oo)
### Name: DOLLAR.Class
### Title: Makes the fields and methods of an Class accessable via the \$
### and the [[ operator
### Aliases: $.Class Class.$ $,Class-method Class.[[ [[.Class
### [[,Class-method
### Keywords: internal methods programming
### ** Examples
## Not run: For a complete example se... | /data/genthat_extracted_code/R.oo/examples/DOLLAR.Class.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 337 | r | library(R.oo)
### Name: DOLLAR.Class
### Title: Makes the fields and methods of an Class accessable via the \$
### and the [[ operator
### Aliases: $.Class Class.$ $,Class-method Class.[[ [[.Class
### [[,Class-method
### Keywords: internal methods programming
### ** Examples
## Not run: For a complete example se... |
library(readr)
library(plyr)
library(dplyr)
in_dir <- ""
out_dir <- ""
raw_data_dir2 <- ""
raw_data_dir <- ""
load("pew_histograms_with_standardized_breaks.RData") # pew hists
setwd(in_dir)
df <- read.table(
"demog_v4.tsv",
sep = ",",
colClasses = rep("character", 23),
header = T
)
names(df) <- c(... | /voter_file_panel/summarize_for_poq_neu_pew.R | no_license | sdmccabe/poq-constructing-samples-replication | R | false | false | 5,790 | r | library(readr)
library(plyr)
library(dplyr)
in_dir <- ""
out_dir <- ""
raw_data_dir2 <- ""
raw_data_dir <- ""
load("pew_histograms_with_standardized_breaks.RData") # pew hists
setwd(in_dir)
df <- read.table(
"demog_v4.tsv",
sep = ",",
colClasses = rep("character", 23),
header = T
)
names(df) <- c(... |
\alias{gtkStatusIconIsEmbedded}
\name{gtkStatusIconIsEmbedded}
\title{gtkStatusIconIsEmbedded}
\description{Returns whether the status icon is embedded in a notification
area.}
\usage{gtkStatusIconIsEmbedded(object)}
\arguments{\item{\verb{object}}{a \code{\link{GtkStatusIcon}}}}
\details{Since 2.10}
\value{[logical] \... | /RGtk2/man/gtkStatusIconIsEmbedded.Rd | no_license | lawremi/RGtk2 | R | false | false | 458 | rd | \alias{gtkStatusIconIsEmbedded}
\name{gtkStatusIconIsEmbedded}
\title{gtkStatusIconIsEmbedded}
\description{Returns whether the status icon is embedded in a notification
area.}
\usage{gtkStatusIconIsEmbedded(object)}
\arguments{\item{\verb{object}}{a \code{\link{GtkStatusIcon}}}}
\details{Since 2.10}
\value{[logical] \... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/102.Confidence_base_n_Graph.R
\name{PlotciLR}
\alias{PlotciLR}
\title{Plots the CI estimation of Likelihood Ratio method}
\usage{
PlotciLR(n, alp)
}
\arguments{
\item{n}{- Number of trials}
\item{alp}{- Alpha value (significance l... | /man/PlotciLR.Rd | no_license | cran/proportion | R | false | true | 1,042 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/102.Confidence_base_n_Graph.R
\name{PlotciLR}
\alias{PlotciLR}
\title{Plots the CI estimation of Likelihood Ratio method}
\usage{
PlotciLR(n, alp)
}
\arguments{
\item{n}{- Number of trials}
\item{alp}{- Alpha value (significance l... |
#
# Copyright (c) 2010, 2014, IBM Corp. All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later vers... | /ibmdbR/R/merge.R | no_license | ingted/R-Examples | R | false | false | 5,521 | r | #
# Copyright (c) 2010, 2014, IBM Corp. All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later vers... |
## The functions are use to generate an inverse for a given matrix
## If the inverse was already calculated returns the cached result
## If the inverse was not yet calculated, it calculates the inverse
## and caches the result for further use
## This function is used to encapsulate the matrix and its inverse
makeCac... | /cachematrix.R | no_license | vikram-ed/ProgrammingAssignment2 | R | false | false | 1,018 | r | ## The functions are use to generate an inverse for a given matrix
## If the inverse was already calculated returns the cached result
## If the inverse was not yet calculated, it calculates the inverse
## and caches the result for further use
## This function is used to encapsulate the matrix and its inverse
makeCac... |
# Epsilon Intelligence order book simulation
setwd("C:/aya/Documents/MFE/Baruch/Capstone/")
#Book setup
L <- 40 #Set number of price levels to be included in iterations
# Generate initial book
LL <- 1000 #Total number of levels in buy and sell books
mbLag <- 1;
msLag <- 1;
# Initialize book with asymptotic depth o... | /Toth-EI-2-Ind.R | no_license | darkhorse20/Capstone | R | false | false | 10,048 | r | # Epsilon Intelligence order book simulation
setwd("C:/aya/Documents/MFE/Baruch/Capstone/")
#Book setup
L <- 40 #Set number of price levels to be included in iterations
# Generate initial book
LL <- 1000 #Total number of levels in buy and sell books
mbLag <- 1;
msLag <- 1;
# Initialize book with asymptotic depth o... |
make_birdlist <- function(refuge = NULL, outdir = "Output/refuge_birds") {
# Get list of available refuges
poss_refs <- pull(refs, ORGNAME) %>% unique() %>% sort()
# Pick a refuge
if (is.null(refuge)) {
refuge <- utils::select.list(poss_refs, title="Select one or more refuges.",
... | /R/make_birdlist.R | no_license | adamdsmith/fws_origins | R | false | false | 2,089 | r | make_birdlist <- function(refuge = NULL, outdir = "Output/refuge_birds") {
# Get list of available refuges
poss_refs <- pull(refs, ORGNAME) %>% unique() %>% sort()
# Pick a refuge
if (is.null(refuge)) {
refuge <- utils::select.list(poss_refs, title="Select one or more refuges.",
... |
# get_est_price function
get_est_price <- function(item, hd_df)
{
test_attr_df2 <- ""
result_df <- hd_df
last_price_df <- ""
result = "test_attr_df2 <- hd_df"
if (length(item) == 1)
{
if (is.character(item[[names(item)[1]]]))
{
str_to_run <- paste(" %>% fil... | /server.R | no_license | MohammadRusdi/House-Price-Estimate-Calculator | R | false | false | 14,054 | r | # get_est_price function
get_est_price <- function(item, hd_df)
{
test_attr_df2 <- ""
result_df <- hd_df
last_price_df <- ""
result = "test_attr_df2 <- hd_df"
if (length(item) == 1)
{
if (is.character(item[[names(item)[1]]]))
{
str_to_run <- paste(" %>% fil... |
#This mehod removes all the URLs from a tweet
removeURL <- function(tweetText) {
gsub("http[[:alnum:][:punct:]]+", "", tweetText)
}
#This method preprocess the tweets
twitter.preprocessTweets <- function(tweets) {
#get rid of latin words by cnverting to utf-8
tweets = iconv(tweets, "LATIN1", "UTF-8",sub="")
tw... | /preProcess.R | no_license | pejakalabhargava/Twitter-sentiment-classification-using-R | R | false | false | 1,727 | r | #This mehod removes all the URLs from a tweet
removeURL <- function(tweetText) {
gsub("http[[:alnum:][:punct:]]+", "", tweetText)
}
#This method preprocess the tweets
twitter.preprocessTweets <- function(tweets) {
#get rid of latin words by cnverting to utf-8
tweets = iconv(tweets, "LATIN1", "UTF-8",sub="")
tw... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mhmm_biofam.R
\docType{data}
\name{mhmm_biofam}
\alias{mhmm_biofam}
\title{Mixture hidden Markov model for the biofam data}
\format{
A mixture hidden Markov model of class \code{mhmm}:
three clusters with left-to-right models including 4, 4, ... | /man/mhmm_biofam.Rd | no_license | cran/seqHMM | R | false | true | 4,770 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mhmm_biofam.R
\docType{data}
\name{mhmm_biofam}
\alias{mhmm_biofam}
\title{Mixture hidden Markov model for the biofam data}
\format{
A mixture hidden Markov model of class \code{mhmm}:
three clusters with left-to-right models including 4, 4, ... |
\name{half.matrix}
\alias{half.matrix}
\alias{print.halfmatrix}
\alias{as.matrix.halfmatrix}
\alias{as.halfmatrix}
\alias{as.halfmatrix.halfmatrix}
\alias{as.halfmatrix.default}
\alias{offdiag}
\alias{offdiag.halfmatrix}
\alias{half}
\title{Interconvert Between a Symmetric Matrix and a Triangular Matrix}
\description{
... | /man/half.matrix.Rd | no_license | metrumresearchgroup/metrumrg | R | false | false | 2,059 | rd | \name{half.matrix}
\alias{half.matrix}
\alias{print.halfmatrix}
\alias{as.matrix.halfmatrix}
\alias{as.halfmatrix}
\alias{as.halfmatrix.halfmatrix}
\alias{as.halfmatrix.default}
\alias{offdiag}
\alias{offdiag.halfmatrix}
\alias{half}
\title{Interconvert Between a Symmetric Matrix and a Triangular Matrix}
\description{
... |
library(epiGWAS)
### Name: stabilityGLM
### Title: Computes the area under the stability path for all covariates
### Aliases: stabilityGLM
### ** Examples
# ---- Continuous data ----
n <- 50
p <- 20
X <- matrix(rnorm(n * p), ncol = p)
Y <- crossprod(t(X), rnorm(p))
aucs_cont <- stabilityGLM(X, Y, family = "gaussian... | /data/genthat_extracted_code/epiGWAS/examples/stabilityGLM.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 706 | r | library(epiGWAS)
### Name: stabilityGLM
### Title: Computes the area under the stability path for all covariates
### Aliases: stabilityGLM
### ** Examples
# ---- Continuous data ----
n <- 50
p <- 20
X <- matrix(rnorm(n * p), ncol = p)
Y <- crossprod(t(X), rnorm(p))
aucs_cont <- stabilityGLM(X, Y, family = "gaussian... |
testlist <- list(rates = numeric(0), thresholds = numeric(0), x = c(NaN, NaN, 2.05236116102037e-289, NaN, 1.8386866407379e+231, 5.95745073762348e+228, -8.52438965096082e+245, NaN, 7.28845257458077e-304, -8.73989987746428e+245, NaN, NaN, NaN, NaN, 2.42973184321875e-317, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610382229-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 475 | r | testlist <- list(rates = numeric(0), thresholds = numeric(0), x = c(NaN, NaN, 2.05236116102037e-289, NaN, 1.8386866407379e+231, 5.95745073762348e+228, -8.52438965096082e+245, NaN, 7.28845257458077e-304, -8.73989987746428e+245, NaN, NaN, NaN, NaN, 2.42973184321875e-317, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_source_file_dir.R
\name{create_source_file_dir}
\alias{create_source_file_dir}
\title{Create source file directories}
\usage{
create_source_file_dir(
project.id0 = get("project.id"),
source.file0 = get("source.file"),
source.desc... | /man/create_source_file_dir.Rd | no_license | gelfondjal/adapr | R | false | true | 1,340 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_source_file_dir.R
\name{create_source_file_dir}
\alias{create_source_file_dir}
\title{Create source file directories}
\usage{
create_source_file_dir(
project.id0 = get("project.id"),
source.file0 = get("source.file"),
source.desc... |
preprocess <-
function(data,
removewhitespace,
removepunctuation,
removestopwords,
tolowercase,
stemming)
{
require("RTextTools")
require("tm")
# Stops the tm package from trying to implement a... | /R/preprocess.R | no_license | aidanoneill/textMining3 | R | false | false | 1,310 | r | preprocess <-
function(data,
removewhitespace,
removepunctuation,
removestopwords,
tolowercase,
stemming)
{
require("RTextTools")
require("tm")
# Stops the tm package from trying to implement a... |
context("Sizing Functions Tests")
test_that("get_table_cols() works as expected.", {
tbl <- create_table(mtcars[1:10, ], show_cols = "none") %>%
define(mpg, format = "%.1f") %>%
define(cyl, width = 1) %>%
define(hp)
lst1 <- get_table_cols(tbl)
expect_equal(lst1, c("mpg", "cyl", "hp", ... | /tests/testthat/test-sizing_functions.R | no_license | armenic/reporter | R | false | false | 5,023 | r | context("Sizing Functions Tests")
test_that("get_table_cols() works as expected.", {
tbl <- create_table(mtcars[1:10, ], show_cols = "none") %>%
define(mpg, format = "%.1f") %>%
define(cyl, width = 1) %>%
define(hp)
lst1 <- get_table_cols(tbl)
expect_equal(lst1, c("mpg", "cyl", "hp", ... |
is_valid_data_dict <- function(x) {
if(!inherits(x, "data.frame")) {
stop("Your data dictionary is not a data.frame", call. = FALSE)
}
if (!"start" %in% names(x)) {
stop("You need a 'start' column in your data dictionary")
}
if (!"stop" %in% names(x)) {
stop("You need a 'stop' column in your da... | /R/utils-is.R | permissive | bcgov/dipr | R | false | false | 522 | r | is_valid_data_dict <- function(x) {
if(!inherits(x, "data.frame")) {
stop("Your data dictionary is not a data.frame", call. = FALSE)
}
if (!"start" %in% names(x)) {
stop("You need a 'start' column in your data dictionary")
}
if (!"stop" %in% names(x)) {
stop("You need a 'stop' column in your da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/QTL_R2.R
\name{QTL_R2}
\alias{QTL_R2}
\title{QTL global and partial R squared}
\usage{
QTL_R2(mppData, trait = 1, QTL = NULL, Q.eff = "cr", glb.only = FALSE)
}
\arguments{
\item{mppData}{An object of class \code{mppData}.}
\item{trait}{\code... | /man/QTL_R2.Rd | no_license | vincentgarin/mppR | R | false | true | 3,608 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/QTL_R2.R
\name{QTL_R2}
\alias{QTL_R2}
\title{QTL global and partial R squared}
\usage{
QTL_R2(mppData, trait = 1, QTL = NULL, Q.eff = "cr", glb.only = FALSE)
}
\arguments{
\item{mppData}{An object of class \code{mppData}.}
\item{trait}{\code... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rsq_nagel.R
\name{rsq_nagel}
\alias{rsq_nagel}
\title{Nagelkerke's R-square calculation for logistic regression / glm models}
\usage{
rsq_nagel(fitobj)
}
\arguments{
\item{fitobj}{a logistic regression model object of "glm"}
}
\val... | /man/rsq_nagel.Rd | no_license | cran/psfmi | R | false | true | 568 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rsq_nagel.R
\name{rsq_nagel}
\alias{rsq_nagel}
\title{Nagelkerke's R-square calculation for logistic regression / glm models}
\usage{
rsq_nagel(fitobj)
}
\arguments{
\item{fitobj}{a logistic regression model object of "glm"}
}
\val... |
## Compile Usage Stats for JnJ ##
# Taken from "Slides/20131001 - JnJ_Report/20131001-JnJ_Report_Rscript.txt"
# Script based on "Big_Call_Paper/Code/20141113/20141113_1_Tech_Plots.R"
## June 29, 2014 ##
## Kristopher Standish ##
## Compile Table of Statistics for Variant Calling Pipeline
#
PLOT_COLS <- c("firebri... | /Fig1_Tech_Stats.R | no_license | k26stan/Manuscript_BigCall | R | false | false | 43,474 | r | ## Compile Usage Stats for JnJ ##
# Taken from "Slides/20131001 - JnJ_Report/20131001-JnJ_Report_Rscript.txt"
# Script based on "Big_Call_Paper/Code/20141113/20141113_1_Tech_Plots.R"
## June 29, 2014 ##
## Kristopher Standish ##
## Compile Table of Statistics for Variant Calling Pipeline
#
PLOT_COLS <- c("firebri... |
pkgname <- "reproj"
source(file.path(R.home("share"), "R", "examples-header.R"))
options(warn = 1)
library('reproj')
base::assign(".oldSearch", base::search(), pos = 'CheckExEnv')
base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv')
cleanEx()
nameEx("reproj")
### * reproj
flush(stderr()); flush(stdout())
### N... | /revdep/checks/reproj/new/reproj.Rcheck/reproj-Ex.R | no_license | paleolimbot/PROJ | R | false | false | 913 | r | pkgname <- "reproj"
source(file.path(R.home("share"), "R", "examples-header.R"))
options(warn = 1)
library('reproj')
base::assign(".oldSearch", base::search(), pos = 'CheckExEnv')
base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv')
cleanEx()
nameEx("reproj")
### * reproj
flush(stderr()); flush(stdout())
### N... |
library(qtl)
library(snowfall)
load("/share/malooflab/Ruijuan/F2/QTL_analysis/data/LG.f2.after.crossover.43traits.Rdata")
LG.f2.after.crossover <- sim.geno(LG.f2.after.crossover,step=1,n.draws=32)
LG.f2.after.crossover <- calc.genoprob(LG.f2.after.crossover,step=1)
sfInit(parallel = TRUE, cpus = 16)
sfExport("LG.f2.... | /F2/scantwo/scantwo_perm_13.7.R | no_license | leejimmy93/KIAT_cabernet | R | false | false | 750 | r | library(qtl)
library(snowfall)
load("/share/malooflab/Ruijuan/F2/QTL_analysis/data/LG.f2.after.crossover.43traits.Rdata")
LG.f2.after.crossover <- sim.geno(LG.f2.after.crossover,step=1,n.draws=32)
LG.f2.after.crossover <- calc.genoprob(LG.f2.after.crossover,step=1)
sfInit(parallel = TRUE, cpus = 16)
sfExport("LG.f2.... |
#
# fse13-dyno-fit.R, 15 Jul 20
#
# Data from:
# Dynodroid: {An} Input Generation System for {Android} Apps
# Aravind Machiry and Rohan Tahiliani and Mayur Naik
#
# Example from:
# Evidence-based Software Engineering: based on the publicly available data
# Derek M. Jones
#
# TAG testing_human testing_tool Android_App A... | /regression/fse13-dyno-fit.R | no_license | Derek-Jones/ESEUR-code-data | R | false | false | 2,708 | r | #
# fse13-dyno-fit.R, 15 Jul 20
#
# Data from:
# Dynodroid: {An} Input Generation System for {Android} Apps
# Aravind Machiry and Rohan Tahiliani and Mayur Naik
#
# Example from:
# Evidence-based Software Engineering: based on the publicly available data
# Derek M. Jones
#
# TAG testing_human testing_tool Android_App A... |
helloworld <- function(){
print("Hello World !!!")
}
helloworld() | /r/helloworld.R | no_license | josephmisiti/hello-world-project | R | false | false | 69 | r |
helloworld <- function(){
print("Hello World !!!")
}
helloworld() |
#' Create a sunburst
#'
#' This function loads a ViruScreen output file as a dataframe and creates a sunburst of the
#' taxonomy and total reads
#'
#' @param csv_file Path to the input file
#' @param size_col Column from the csv file that is illustrated in the plot
#'
#' @import plotme
#' @import dplyr
#' @export
make_... | /R/sunburst.R | no_license | MichelledeGroot/virusunburst | R | false | false | 810 | r | #' Create a sunburst
#'
#' This function loads a ViruScreen output file as a dataframe and creates a sunburst of the
#' taxonomy and total reads
#'
#' @param csv_file Path to the input file
#' @param size_col Column from the csv file that is illustrated in the plot
#'
#' @import plotme
#' @import dplyr
#' @export
make_... |
readBruker<-function(BrukerDataDir)
{
## written by Dr. Jie Hao, Imperial College London
warnDef<-options("warn")$warn
warnRead<-options(warn = -1)
datapath<-BrukerDataDir
## read in bruker spectra
## find the data files
ppm <- NULL
pfile <-list.files(path = datapath, pattern = "^procs$", all.files =... | /readBruker.R | no_license | jieh/batman | R | false | false | 3,759 | r | readBruker<-function(BrukerDataDir)
{
## written by Dr. Jie Hao, Imperial College London
warnDef<-options("warn")$warn
warnRead<-options(warn = -1)
datapath<-BrukerDataDir
## read in bruker spectra
## find the data files
ppm <- NULL
pfile <-list.files(path = datapath, pattern = "^procs$", all.files =... |
rm = (list=ls())
dcdata = read.csv("dcdata.txt")
target = dcdata[, 3]
dcdata = dcdata[, 1:2]
d = dist(dcdata)
hc_single = hclust(d, method = "single")
clusters_single = cutree(hc_single, k = 2)
plot(dcdata, col = clusters_single, pch = 15, main = "Single Linkage")
text(dcdata, labels = row.names(dcdata), pos = ... | /Pattern Recognition/quiz8_HierarchicalClustering_DBSCAN.R | permissive | imanousar/University-Projects | R | false | false | 1,143 | r | rm = (list=ls())
dcdata = read.csv("dcdata.txt")
target = dcdata[, 3]
dcdata = dcdata[, 1:2]
d = dist(dcdata)
hc_single = hclust(d, method = "single")
clusters_single = cutree(hc_single, k = 2)
plot(dcdata, col = clusters_single, pch = 15, main = "Single Linkage")
text(dcdata, labels = row.names(dcdata), pos = ... |
lfilepath<-system("find /Volumes/bek/reversal/vba_output -name '*.csv' -maxdepth 2 -mindepth 1 -type f",intern = T)
sppath<-strsplit(lfilepath,split = "/")
sapply(sppath, "[[",6)->filenames
substr(filenames,start = 3+regexpr("id_",filenames),stop = regexpr("_rev",filenames)-1)->IDLIST
tempenvir<-as.environment(list())... | /vbacsvtoR.R | no_license | DecisionNeurosciencePsychopathology/reversal | R | false | false | 683 | r | lfilepath<-system("find /Volumes/bek/reversal/vba_output -name '*.csv' -maxdepth 2 -mindepth 1 -type f",intern = T)
sppath<-strsplit(lfilepath,split = "/")
sapply(sppath, "[[",6)->filenames
substr(filenames,start = 3+regexpr("id_",filenames),stop = regexpr("_rev",filenames)-1)->IDLIST
tempenvir<-as.environment(list())... |
# Script to generate data for testing the PPP.
# Generate 10 species each with 100 actions each.
a.data <- data.frame(
action_id = 1:1000,
species_id = rep(1:10, each = 100),
TaxaCodeText = rep(LETTERS[1:10], each = 100),
TaxaCode = rep(21:30, each = 100),
ProjectText = rep(letters[1:10], each = 100),
... | /tests/ppp_pseudo_data.R | no_license | saverygomm/ppp | R | false | false | 1,857 | r | # Script to generate data for testing the PPP.
# Generate 10 species each with 100 actions each.
a.data <- data.frame(
action_id = 1:1000,
species_id = rep(1:10, each = 100),
TaxaCodeText = rep(LETTERS[1:10], each = 100),
TaxaCode = rep(21:30, each = 100),
ProjectText = rep(letters[1:10], each = 100),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CH06_LM.R
\name{FCI_CH06}
\alias{FCI_CH06}
\title{Residual-based test for fractional cointegration (Chen, Hurvich (2006))}
\usage{
FCI_CH06(X, m_peri, m, alpha = 0.05, diff_param = 1)
}
\arguments{
\item{X}{data matrix.}
\item{m_p... | /LongMemoryTS/man/FCI_CH06.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 1,583 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CH06_LM.R
\name{FCI_CH06}
\alias{FCI_CH06}
\title{Residual-based test for fractional cointegration (Chen, Hurvich (2006))}
\usage{
FCI_CH06(X, m_peri, m, alpha = 0.05, diff_param = 1)
}
\arguments{
\item{X}{data matrix.}
\item{m_p... |
blockFinder <- function(object, design, coef = 2, what = c("Beta", "M"),
cluster = NULL, cutoff = NULL,
pickCutoff = FALSE, pickCutoffQ = 0.99,
nullMethod = c("permutation","bootstrap"),
smooth = TRUE, smoothFunction = locfi... | /R/blocks.R | no_license | wikum/minfi | R | false | false | 9,249 | r | blockFinder <- function(object, design, coef = 2, what = c("Beta", "M"),
cluster = NULL, cutoff = NULL,
pickCutoff = FALSE, pickCutoffQ = 0.99,
nullMethod = c("permutation","bootstrap"),
smooth = TRUE, smoothFunction = locfi... |
library(rstan)
library(eRm)
pcm_data <- pcmdat
pcm_data
J = 20
K = 7
data1 <- list(
J = J,
K = K,
N = J*K,
jj = rep(1:J, times = K),
kk = rep(1:K, each = J),
y = as.numeric(unlist(pcm_data))
)
fit_pcm <- stan(file = 'pcm.stan', data = data1)
fit_pcm
##plot
plot(fit_pcm)
| /Code/R_file/pcm_stan.R | no_license | esj205/RSATN_Manual | R | false | false | 292 | r | library(rstan)
library(eRm)
pcm_data <- pcmdat
pcm_data
J = 20
K = 7
data1 <- list(
J = J,
K = K,
N = J*K,
jj = rep(1:J, times = K),
kk = rep(1:K, each = J),
y = as.numeric(unlist(pcm_data))
)
fit_pcm <- stan(file = 'pcm.stan', data = data1)
fit_pcm
##plot
plot(fit_pcm)
|
library(gee)
dfAll <- read.csv("/Users/jrteubl/Desktop/heroin_data/2016-06-29-database-merge-umass-N539.csv", header=T, sep=",")
inj <- dfAll$FirstInj_Note1.FirstInj_1
# Have you ever injected a drug for non-medical reasons?
# 0: No
# 1: Yes
# 77: Not Applicable
# 88: Don't know
# 99: Refuse to answer
injGrp <- rep(0,... | /FinalTable.R | no_license | JRTeubl/NDRI_PO | R | false | false | 13,896 | r | library(gee)
dfAll <- read.csv("/Users/jrteubl/Desktop/heroin_data/2016-06-29-database-merge-umass-N539.csv", header=T, sep=",")
inj <- dfAll$FirstInj_Note1.FirstInj_1
# Have you ever injected a drug for non-medical reasons?
# 0: No
# 1: Yes
# 77: Not Applicable
# 88: Don't know
# 99: Refuse to answer
injGrp <- rep(0,... |
library(twitteR)
library(dismo)
library(XML)
library(maps)
library(geosphere)
#function, which draw followers on map
draw_followers <- function(userName, colorFollowers){
#get name and location, transform location into geocodes
tmp1 <- getUser(userName)
tmpuserlocation <- geocode(tmp1$location)
tnFollower... | /twi2.R | no_license | energyfirefox/vistwitteR | R | false | false | 1,820 | r | library(twitteR)
library(dismo)
library(XML)
library(maps)
library(geosphere)
#function, which draw followers on map
draw_followers <- function(userName, colorFollowers){
#get name and location, transform location into geocodes
tmp1 <- getUser(userName)
tmpuserlocation <- geocode(tmp1$location)
tnFollower... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library("ggplot2")
library(dplyr)
data(diamonds)
shinyServer(function(inp... | /server.R | no_license | AdaSteen/DevelopDataProducts | R | false | false | 1,603 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library("ggplot2")
library(dplyr)
data(diamonds)
shinyServer(function(inp... |
library(tidyverse)
library(here)
desserts_iconic <- read_csv(here("desserts.csv"))
our_desserts <- read_csv(here("favorite_desserts.csv"))
is_iconic <- function(dessert) {
if (dessert %in% desserts_iconic$dessert){
print("My dessert is iconic!!")
} else
print("Your dessert is lame. Choose better")
}
... | /dessert_match_jd.R | no_license | palomacartwright/favorite-desserts | R | false | false | 321 | r | library(tidyverse)
library(here)
desserts_iconic <- read_csv(here("desserts.csv"))
our_desserts <- read_csv(here("favorite_desserts.csv"))
is_iconic <- function(dessert) {
if (dessert %in% desserts_iconic$dessert){
print("My dessert is iconic!!")
} else
print("Your dessert is lame. Choose better")
}
... |
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959363795322e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615827150-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 487 | r | testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959363795322e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... |
#' Merge eyetracking and datavyu data
#'
#' Both files should first have been processed with the relevant commands
#'
#' @param ETdata a file of processed eyetracking data
#' @param datavyudata processed output from datavyu file
#' @param write if TRUE will write a file directly to the current wd
#'
#' @examples
#' lib... | /R/merge_ET_datavyu.R | permissive | samhforbes/DDLab | R | false | false | 1,345 | r | #' Merge eyetracking and datavyu data
#'
#' Both files should first have been processed with the relevant commands
#'
#' @param ETdata a file of processed eyetracking data
#' @param datavyudata processed output from datavyu file
#' @param write if TRUE will write a file directly to the current wd
#'
#' @examples
#' lib... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TreeIndex-methods.R
\docType{methods}
\name{getNodes,TreeIndex-method}
\alias{getNodes,TreeIndex-method}
\title{Method to get nodes at a tree level}
\usage{
\S4method{getNodes}{TreeIndex}(x, selectedLevel = NULL)
}
\arguments{
\item{x}{a Tree... | /man/getNodes-TreeIndex-method.Rd | no_license | markrobinsonuzh/TreeSE | R | false | true | 443 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TreeIndex-methods.R
\docType{methods}
\name{getNodes,TreeIndex-method}
\alias{getNodes,TreeIndex-method}
\title{Method to get nodes at a tree level}
\usage{
\S4method{getNodes}{TreeIndex}(x, selectedLevel = NULL)
}
\arguments{
\item{x}{a Tree... |
## Create HIV adjustment summary results
rm(list=ls())
library(readr); library(data.table); library(foreign); library(reshape2); library(haven); library(assertable)
## Setup filepaths
root <- "ROOT_FILEPATH"
user <- "USERNAME"
location <- commandArgs(trailingOnly = T)[1]
new_upload_version <- commandArgs(trailingOnly... | /gbd_2017/mortality_code/mortality_estimation/reckoning/hiv_adjust/01b_prep_hiv_adjust.R | no_license | Nermin-Ghith/ihme-modeling | R | false | false | 3,507 | r | ## Create HIV adjustment summary results
rm(list=ls())
library(readr); library(data.table); library(foreign); library(reshape2); library(haven); library(assertable)
## Setup filepaths
root <- "ROOT_FILEPATH"
user <- "USERNAME"
location <- commandArgs(trailingOnly = T)[1]
new_upload_version <- commandArgs(trailingOnly... |
#Read necessary functions and files. There are two functions knit2pdf and knit2html which will produce documents directly, but there are problems with pdf and also problems rendering the markdown file when complete. Best to just use knit first then take md file and convert in ternimal.
# First source analysis file
s... | /R/knit_doc.r | no_license | daniel1noble/colsci_rep | R | false | false | 421 | r | #Read necessary functions and files. There are two functions knit2pdf and knit2html which will produce documents directly, but there are problems with pdf and also problems rendering the markdown file when complete. Best to just use knit first then take md file and convert in ternimal.
# First source analysis file
s... |
## Dataset: Electric power consumption [20Mb]
## Downloaded from the link
## https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
## Unpacked to the directory where the cloned repository is situated
## unpacked file name is "household_power_consumption.txt"
## reading data
data <-read.... | /plot2.R | no_license | alina-artcibasova/Coursera-ExploratoryDataAnalysis-PlottingAssignment1 | R | false | false | 860 | r | ## Dataset: Electric power consumption [20Mb]
## Downloaded from the link
## https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
## Unpacked to the directory where the cloned repository is situated
## unpacked file name is "household_power_consumption.txt"
## reading data
data <-read.... |
distsamp <- function(formula, data,
keyfun=c("halfnorm", "exp", "hazard", "uniform"),
output=c("density", "abund"), unitsOut=c("ha", "kmsq"), starts=NULL,
method="BFGS", se = TRUE, engine = c("C", "R"),
rel.tol=0.001, ...)
{
engine <- match.arg(engine)
keyfun <- match.arg(keyfun)
# ... | /R/unmarked/R/distsamp.R | no_license | kwinner/latentcountmodels | R | false | false | 12,634 | r |
distsamp <- function(formula, data,
keyfun=c("halfnorm", "exp", "hazard", "uniform"),
output=c("density", "abund"), unitsOut=c("ha", "kmsq"), starts=NULL,
method="BFGS", se = TRUE, engine = c("C", "R"),
rel.tol=0.001, ...)
{
engine <- match.arg(engine)
keyfun <- match.arg(keyfun)
# ... |
# Copyright 2012, Gurobi Optimization, Inc.
#
# Formulate a simple linear program, solve it, and then solve it
# again using the optimal basis.
library("gurobi")
model <- list()
model$A <- matrix(c(1,3,4,8,2,3), nrow=2, byrow=T)
model$obj <- c(1,2,3)
model$rhs <- c(4,7)
model$sense <- c('>=', '>=... | /opt/gurobi501/linux64/examples/R/lp2.R | no_license | revisalo/cr2 | R | false | false | 560 | r | # Copyright 2012, Gurobi Optimization, Inc.
#
# Formulate a simple linear program, solve it, and then solve it
# again using the optimal basis.
library("gurobi")
model <- list()
model$A <- matrix(c(1,3,4,8,2,3), nrow=2, byrow=T)
model$obj <- c(1,2,3)
model$rhs <- c(4,7)
model$sense <- c('>=', '>=... |
library(tidyverse)
library(lubridate)
library(xts)
library(TSclust)
library(TSdist)
library(cluster)
library(reshape2)
library(dygraphs)
load("Data/Base_Consolidada.RData")
BDD_vaz = BDD_full[,1:6]
names(BDD_vaz)[1] = "Anio"
BDDv = reshape2::dcast(data= BDD_vaz, formula= Anio + Mes ~ Usina,value.var = "Vazoes" )
rem... | /AppCluster/Code/graficoPrelim.R | no_license | CristianPachacama/ClusterTS | R | false | false | 756 | r | library(tidyverse)
library(lubridate)
library(xts)
library(TSclust)
library(TSdist)
library(cluster)
library(reshape2)
library(dygraphs)
load("Data/Base_Consolidada.RData")
BDD_vaz = BDD_full[,1:6]
names(BDD_vaz)[1] = "Anio"
BDDv = reshape2::dcast(data= BDD_vaz, formula= Anio + Mes ~ Usina,value.var = "Vazoes" )
rem... |
# setup for plotting 8 queens
# set up for plotting
# install.packages("jpeg")
library(jpeg)
# install.packages("png")
library(png)
chessboardImage <- readJPEG("images/chessboard.jpg")
queenImage <- readPNG("images/queen_image.png")
chessbrd.width <- ncol(chessboardImage)
chessbrd.height <- nrow(chessboardImage)
one... | /code/3_eight_queens/plotTheQueens.R | no_license | hai-mn/code-clinic-r | R | false | false | 1,077 | r | # setup for plotting 8 queens
# set up for plotting
# install.packages("jpeg")
library(jpeg)
# install.packages("png")
library(png)
chessboardImage <- readJPEG("images/chessboard.jpg")
queenImage <- readPNG("images/queen_image.png")
chessbrd.width <- ncol(chessboardImage)
chessbrd.height <- nrow(chessboardImage)
one... |
getwd()
install.packages('xlsx', dependencies = T)
install.packages('corrplot')
library(data.table)
library(xlsx)
library(corrplot)
boston <- fread('Data/boston.csv')
wine <- fread("http://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data", sep = ",")
colnames(wine) <- c("Cult", "Alc", "MalAcid", "As... | /R/Class1.R | no_license | anuj-kapil/mda | R | false | false | 3,272 | r | getwd()
install.packages('xlsx', dependencies = T)
install.packages('corrplot')
library(data.table)
library(xlsx)
library(corrplot)
boston <- fread('Data/boston.csv')
wine <- fread("http://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data", sep = ",")
colnames(wine) <- c("Cult", "Alc", "MalAcid", "As... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/liver.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.35,family="gaussian",standardize=FALSE)
sink('./liver_046.txt',append=TRUE)
print(... | /Model/EN/Lasso/liver/liver_046.R | no_license | esbgkannan/QSMART | R | false | false | 343 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/liver.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.35,family="gaussian",standardize=FALSE)
sink('./liver_046.txt',append=TRUE)
print(... |
PLSR<-function(datos,file_nameCOV,ExpDes=ExpDes,BiplotFormat=BiplotFormat,traits=traits,selected=selected, typecov=typecov, tmp=tmp){
rm(list=ls(all=TRUE))
library(lsmeans)
library(reshape)
library(nlme)
library(plsgenomics)
#############################################################################################... | /PLS/PLS.R | no_license | avengerpb/GEA-R_Galaxy | R | false | false | 8,963 | r |
PLSR<-function(datos,file_nameCOV,ExpDes=ExpDes,BiplotFormat=BiplotFormat,traits=traits,selected=selected, typecov=typecov, tmp=tmp){
rm(list=ls(all=TRUE))
library(lsmeans)
library(reshape)
library(nlme)
library(plsgenomics)
#############################################################################################... |
#These steps will help you combine the outputs
#from your spatial interpolation with your income data.
#Convert your interpolation into a raster and map it:
data.class(r.m4)
# it is already a raster
# Surface map is found on dataprep page for IDW = 4
#Extract average elev for each polygon
#takes a while to run
vriCl... | /combiningVRI.R | no_license | ebialob/Geog418FinalProject | R | false | false | 721 | r | #These steps will help you combine the outputs
#from your spatial interpolation with your income data.
#Convert your interpolation into a raster and map it:
data.class(r.m4)
# it is already a raster
# Surface map is found on dataprep page for IDW = 4
#Extract average elev for each polygon
#takes a while to run
vriCl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/server-queue.R
\name{staff_q}
\alias{staff_q}
\title{Get staff queue}
\usage{
staff_q(pool, start = floor_date(now(), unit = "day"), end = now())
}
\arguments{
\item{pool}{Connection to the database}
\item{start}{Start time}
\item{end}{End ... | /man/staff_q.Rd | no_license | nibrivia/helpq | R | false | true | 438 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/server-queue.R
\name{staff_q}
\alias{staff_q}
\title{Get staff queue}
\usage{
staff_q(pool, start = floor_date(now(), unit = "day"), end = now())
}
\arguments{
\item{pool}{Connection to the database}
\item{start}{Start time}
\item{end}{End ... |
#~~~~~~~~~~~~~~~~~~~~~~~
# Adam Griffin, 2020-06-15
#
# The Empirical Copula functions
#
# For aquaCAT, Project 07441.
#
# Created ABG 2020-06-15
#
#~~~~~~~~~~~~~~~~~~~~~~~
##### SETUP #####---------------------------------------------------
library(ncdf4)
library(extRemes)
library(dplyr)
library(rea... | /OLD/06_EmpiricalCopula.R | no_license | griffada/AQUACAT_UKCEH | R | false | false | 6,936 | r | #~~~~~~~~~~~~~~~~~~~~~~~
# Adam Griffin, 2020-06-15
#
# The Empirical Copula functions
#
# For aquaCAT, Project 07441.
#
# Created ABG 2020-06-15
#
#~~~~~~~~~~~~~~~~~~~~~~~
##### SETUP #####---------------------------------------------------
library(ncdf4)
library(extRemes)
library(dplyr)
library(rea... |
library(plyr)
library(dplyr)
library(tidyr)
library(knitr)
library(lattice)
setwd("C:/Users/jgpolanc/Desktop/Coursera/c5p1/RepData_PeerAssessment1")
dat <- read.csv(paste(getwd(),"/data/activity.csv",sep=""))
dat$interval<- as.factor(dat$interval)
##Calculate the total number of steps taken per day
tot_steps_day<-a... | /code.R | no_license | joelpolanco/RepData_PeerAssessment1 | R | false | false | 3,472 | r | library(plyr)
library(dplyr)
library(tidyr)
library(knitr)
library(lattice)
setwd("C:/Users/jgpolanc/Desktop/Coursera/c5p1/RepData_PeerAssessment1")
dat <- read.csv(paste(getwd(),"/data/activity.csv",sep=""))
dat$interval<- as.factor(dat$interval)
##Calculate the total number of steps taken per day
tot_steps_day<-a... |
## 动态网可视化及分析
## 上海大学延长校区, 2016/7/31
## 黄荣贵, 复旦大学
library(network)
library(ergm)
library(networkDynamic)
library(ndtv)
## demo: construction of network
## read in edgelist data
edges = read.csv("ex1_edgelist.csv")
## read in vertex attribute data
nodes = read.csv("ex1_vertex.attributes.csv", stringsAsFactors = FALSE)... | /SHU.networks/Dynamic networks.R | no_license | asifkhan2017/networks | R | false | false | 7,491 | r | ## 动态网可视化及分析
## 上海大学延长校区, 2016/7/31
## 黄荣贵, 复旦大学
library(network)
library(ergm)
library(networkDynamic)
library(ndtv)
## demo: construction of network
## read in edgelist data
edges = read.csv("ex1_edgelist.csv")
## read in vertex attribute data
nodes = read.csv("ex1_vertex.attributes.csv", stringsAsFactors = FALSE)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/twin_surrogate.R
\name{twin_surrogate_cpp}
\alias{twin_surrogate_cpp}
\title{Generate twin surrogate time series}
\usage{
twin_surrogate_cpp(
original,
dim,
num.iter,
tau = 1,
s = 0.875,
surrogate.option = c("random", "phase_lock"... | /man/twin_surrogate_cpp.Rd | permissive | ong8181/macam | R | false | true | 1,819 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/twin_surrogate.R
\name{twin_surrogate_cpp}
\alias{twin_surrogate_cpp}
\title{Generate twin surrogate time series}
\usage{
twin_surrogate_cpp(
original,
dim,
num.iter,
tau = 1,
s = 0.875,
surrogate.option = c("random", "phase_lock"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_labelled.R
\name{read_labelled}
\alias{read_labelled}
\title{Imports Data Frame from Excel File with Variable and Value Labels}
\usage{
read_labelled(file, data.sheet = 1, vars.sheet = 2)
}
\arguments{
\item{file}{Excel workbook with two... | /man/read_labelled.Rd | no_license | alex-vinogradov/readlabelled | R | false | true | 682 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_labelled.R
\name{read_labelled}
\alias{read_labelled}
\title{Imports Data Frame from Excel File with Variable and Value Labels}
\usage{
read_labelled(file, data.sheet = 1, vars.sheet = 2)
}
\arguments{
\item{file}{Excel workbook with two... |
setwd("~/Desktop/Personal/Penn State/Research/PhD Research/CARCA/Establishment_Modeling")
#################################################################
# Setting up parameterizations of current forest condition to be compared with establishment models
#
#############################################################... | /Scripts/3_CurrentDistribution.R | no_license | crollinson/Establishment_SDMs | R | false | false | 27,250 | r | setwd("~/Desktop/Personal/Penn State/Research/PhD Research/CARCA/Establishment_Modeling")
#################################################################
# Setting up parameterizations of current forest condition to be compared with establishment models
#
#############################################################... |
# Load Packages
if (!require(corrplot)) install.packages("corrplot")
library(corrplot)
if (!require(tidyverse)) install.packages("tidyverse")
library(tidyverse)
if (!require(caret)) install.packages("caret")
library(caret)
if (!require(dslabs)) install.packages("dslabs")
library(dslabs)
if (!require(rpart)) in... | /Workspace.R | no_license | jwarc927/IDV-Capstone | R | false | false | 4,933 | r | # Load Packages
if (!require(corrplot)) install.packages("corrplot")
library(corrplot)
if (!require(tidyverse)) install.packages("tidyverse")
library(tidyverse)
if (!require(caret)) install.packages("caret")
library(caret)
if (!require(dslabs)) install.packages("dslabs")
library(dslabs)
if (!require(rpart)) in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hierarchyWide.R
\name{hierarchyWide}
\alias{hierarchyWide}
\title{hierarchyWide}
\usage{
hierarchyWide(ee, supv)
}
\arguments{
\item{ee}{A vector containing unique identifiers for employees.}
\item{supv}{A vector containing unique identifier... | /man/hierarchyWide.Rd | no_license | enginbagis/hR | R | false | true | 1,074 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hierarchyWide.R
\name{hierarchyWide}
\alias{hierarchyWide}
\title{hierarchyWide}
\usage{
hierarchyWide(ee, supv)
}
\arguments{
\item{ee}{A vector containing unique identifiers for employees.}
\item{supv}{A vector containing unique identifier... |
#' Function getting converting a customized dataframe with descriptives to latex code
#'
#'
#' @param SETTINGS ... the path to the tsanalysis/SETTINGS.R config file.
#' @param df_melted ... dataframes produced with the melt function of the reshape packae.
#' @param xaxis_legend ... legend of the x-axis
#' @param ya... | /quant/impl/analysis/ts_analysis/03_make_desc_plot_helpers.R | no_license | pernicgu/ccurr_velocity | R | false | false | 1,760 | r | #' Function getting converting a customized dataframe with descriptives to latex code
#'
#'
#' @param SETTINGS ... the path to the tsanalysis/SETTINGS.R config file.
#' @param df_melted ... dataframes produced with the melt function of the reshape packae.
#' @param xaxis_legend ... legend of the x-axis
#' @param ya... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_read_years}
\alias{fars_read_years}
\title{Read csv file with given years}
\usage{
fars_read_years(years)
}
\arguments{
\item{years}{a vector of list of year to read in}
}
\value{
A date table including month for a... | /man/fars_read_years.Rd | no_license | fukeyouko/Fars | R | false | true | 574 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_read_years}
\alias{fars_read_years}
\title{Read csv file with given years}
\usage{
fars_read_years(years)
}
\arguments{
\item{years}{a vector of list of year to read in}
}
\value{
A date table including month for a... |
\name{SBA}
\alias{sba}
\docType{data}
\title{ Artificially generated data alike that of Suspension bead arrays}
\description{
The data that has similarity to Suspension bead arrays data.
}
\usage{data(sba)}
\format{
A list that consists of \code{"plate"} which is a \code{factor} of plate number,
... | /man/sba.Rd | no_license | cran/MDimNormn | R | false | false | 937 | rd | \name{SBA}
\alias{sba}
\docType{data}
\title{ Artificially generated data alike that of Suspension bead arrays}
\description{
The data that has similarity to Suspension bead arrays data.
}
\usage{data(sba)}
\format{
A list that consists of \code{"plate"} which is a \code{factor} of plate number,
... |
03598bf7379c70409a2f88cd18733930 reachqu_query34_1344.qdimacs 7357 47961 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/reachqu_query34_1344/reachqu_query34_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 72 | r | 03598bf7379c70409a2f88cd18733930 reachqu_query34_1344.qdimacs 7357 47961 |
% File src/library/base/man/diag.Rd
% Part of the R package, https://www.R-project.org
% Copyright 1995-2017 R Core Team
% Distributed under GPL 2 or later
\name{diag}
\title{Matrix Diagonals}
\usage{
diag(x = 1, nrow, ncol, names = TRUE)
diag(x) <- value
}
\alias{diag}
\alias{diag<-}
\description{
Extract or replac... | /bin/R-3.5.1/src/library/base/man/diag.Rd | permissive | lifebit-ai/exomedepth | R | false | false | 3,797 | rd | % File src/library/base/man/diag.Rd
% Part of the R package, https://www.R-project.org
% Copyright 1995-2017 R Core Team
% Distributed under GPL 2 or later
\name{diag}
\title{Matrix Diagonals}
\usage{
diag(x = 1, nrow, ncol, names = TRUE)
diag(x) <- value
}
\alias{diag}
\alias{diag<-}
\description{
Extract or replac... |
## ----buildit,include=FALSE,eval=FALSE-----------------------------------------
## rnw2pdf("lecture-popdy-basics")
## rnw2pdf("lecture-popdy-basics", tangle=TRUE)
## ----geo1,size='scriptsize',out.width='0.9\\textwidth',fig.width=8,fig.height=5,fig.align="center"----
time <- 0:100
T <- length(time) ##... | /lectures/popdy-basics/lecture-popdy-basics.R | permissive | rbchan/popdy-inference | R | false | false | 5,742 | r | ## ----buildit,include=FALSE,eval=FALSE-----------------------------------------
## rnw2pdf("lecture-popdy-basics")
## rnw2pdf("lecture-popdy-basics", tangle=TRUE)
## ----geo1,size='scriptsize',out.width='0.9\\textwidth',fig.width=8,fig.height=5,fig.align="center"----
time <- 0:100
T <- length(time) ##... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CustomOmega.R
\name{CustomOmega}
\alias{CustomOmega}
\title{Calculate Omega (Smoothness matrix)}
\usage{
CustomOmega(B, available.indx)
}
\arguments{
\item{B}{A set of basis functions (K x q matrix)}
\item{available.indx}{A list of observed ... | /man/CustomOmega.Rd | no_license | jihuilee/VCERGM | R | false | true | 387 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CustomOmega.R
\name{CustomOmega}
\alias{CustomOmega}
\title{Calculate Omega (Smoothness matrix)}
\usage{
CustomOmega(B, available.indx)
}
\arguments{
\item{B}{A set of basis functions (K x q matrix)}
\item{available.indx}{A list of observed ... |
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(11264L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... | /dexterMST/inst/testfiles/im_booklet_score/libFuzzer_im_booklet_score/im_booklet_score_valgrind_files/1612728311-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 459 | r | testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(11264L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... |
library("shiny")
library("shinyjs")
library("shinydashboard")
library("readxl")
library(shinyBS)
library(shinyFiles)
library(DT)
# db = readxl::read_excel("D:/simple_template.xlsx", "Fieldbook")
# tr = readxl::read_excel("D:/simple_template.xlsx", "Traits")
ui <- dashboardPage(skin = "yellow",
dashboardHeader(... | /inst/collme/app.R | no_license | c5sire/fbcollect | R | false | false | 8,239 | r | library("shiny")
library("shinyjs")
library("shinydashboard")
library("readxl")
library(shinyBS)
library(shinyFiles)
library(DT)
# db = readxl::read_excel("D:/simple_template.xlsx", "Fieldbook")
# tr = readxl::read_excel("D:/simple_template.xlsx", "Traits")
ui <- dashboardPage(skin = "yellow",
dashboardHeader(... |
## This file contains functions to create and manipulate a wrapper for the
## matrix type that caches its inverse. The purpose of the class is to avoid the
## computational overhead of re-calculating the matrix inverse once it has
## already been found.
## makeCacheMatrix - Creates a caching wrapper around the matrix ... | /cachematrix.R | no_license | italchemy/ProgrammingAssignment2 | R | false | false | 2,016 | r | ## This file contains functions to create and manipulate a wrapper for the
## matrix type that caches its inverse. The purpose of the class is to avoid the
## computational overhead of re-calculating the matrix inverse once it has
## already been found.
## makeCacheMatrix - Creates a caching wrapper around the matrix ... |
## Data for top UK 7 teams, win lose and draw, one matrix for each timepoint
# 3 131 CHELSEA
# 8 136 EVERTON
#11 139 LIVERPOOL
#10 138 ASTON VILLA
#14 142 ARSENAL
#15 143 TOTTENHAM
#19 147 MANCHESTER UNITED
results <-... | /Premier_top_WDL.R | no_license | EllaKaye/Dynamic_BT | R | false | false | 2,665 | r | ## Data for top UK 7 teams, win lose and draw, one matrix for each timepoint
# 3 131 CHELSEA
# 8 136 EVERTON
#11 139 LIVERPOOL
#10 138 ASTON VILLA
#14 142 ARSENAL
#15 143 TOTTENHAM
#19 147 MANCHESTER UNITED
results <-... |
### R code from vignette source 'StatDA.Rnw'
###################################################
### code chunk number 1: fig1plot
###################################################
library(StatDA)
data(chorizon)
Ba=chorizon[,"Ba"]
n=length(Ba)
par(mfcol=c(2,2),mar=c(4,4,2,2))
edaplotlog(Ba,H.freq=F,box=T,H.breaks=30... | /data/genthat_extracted_code/StatDA/vignettes/StatDA.R | no_license | surayaaramli/typeRrh | R | false | false | 44,030 | r | ### R code from vignette source 'StatDA.Rnw'
###################################################
### code chunk number 1: fig1plot
###################################################
library(StatDA)
data(chorizon)
Ba=chorizon[,"Ba"]
n=length(Ba)
par(mfcol=c(2,2),mar=c(4,4,2,2))
edaplotlog(Ba,H.freq=F,box=T,H.breaks=30... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/writeSim.gmacs.R
\name{writeSim.gmacs}
\alias{writeSim.gmacs}
\title{Write simulation results to gmacs input file.}
\usage{
writeSim.gmacs(mc, mp, mr, fn = "gmacs.input.dat", showPlot = TRUE)
}
\arguments{
\item{mc}{- model configurat... | /man/writeSim.gmacs.Rd | permissive | seacode/rsimGmacs | R | false | false | 579 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/writeSim.gmacs.R
\name{writeSim.gmacs}
\alias{writeSim.gmacs}
\title{Write simulation results to gmacs input file.}
\usage{
writeSim.gmacs(mc, mp, mr, fn = "gmacs.input.dat", showPlot = TRUE)
}
\arguments{
\item{mc}{- model configurat... |
\name{sum}
\alias{sum}
\alias{sum.free}
\alias{prodfree}
\alias{freeprod}
\title{Repeated summation by concatenation}
\description{
Concatenates its arguments to give a single free object
}
\usage{
\method{sum}{free}(..., na.rm = FALSE)
}
\arguments{
\item{\dots}{Objects of class \code{free}, to be summed}
\item{na... | /man/sum.Rd | no_license | cran/freegroup | R | false | false | 1,052 | rd | \name{sum}
\alias{sum}
\alias{sum.free}
\alias{prodfree}
\alias{freeprod}
\title{Repeated summation by concatenation}
\description{
Concatenates its arguments to give a single free object
}
\usage{
\method{sum}{free}(..., na.rm = FALSE)
}
\arguments{
\item{\dots}{Objects of class \code{free}, to be summed}
\item{na... |
\name{ASAT}
\alias{ASAT}
\docType{data}
\title{ Toxicological Study on Female Wistar Rats }
\description{
ASAT-Values for a new compound and a control group of 34 female Wistar
rats.
}
\usage{data(ASAT)}
\format{
A data frame with 34 observations on the following 2 variables.
\describe{
\item{asat}{the ASAT-v... | /man/ASAT.Rd | no_license | cran/exactRankTests | R | false | false | 1,649 | rd | \name{ASAT}
\alias{ASAT}
\docType{data}
\title{ Toxicological Study on Female Wistar Rats }
\description{
ASAT-Values for a new compound and a control group of 34 female Wistar
rats.
}
\usage{data(ASAT)}
\format{
A data frame with 34 observations on the following 2 variables.
\describe{
\item{asat}{the ASAT-v... |
if(verbose) message("Using AIREML Procedure...")
if(verbose) message(paste("Sample Size: ", n))
if(verbose) message("Computing Variance Component Estimates...")
if(verbose) message(paste("Sigma^2_",c(names(covMatList),"E"),sep="", collapse=" "))
# initial values
if(is.null(start)){
sigma2.p <- var(Y)
sigma2.k... | /matts_varCompEst_fxn.R | no_license | mchughc/mlm_x | R | false | false | 3,390 | r |
if(verbose) message("Using AIREML Procedure...")
if(verbose) message(paste("Sample Size: ", n))
if(verbose) message("Computing Variance Component Estimates...")
if(verbose) message(paste("Sigma^2_",c(names(covMatList),"E"),sep="", collapse=" "))
# initial values
if(is.null(start)){
sigma2.p <- var(Y)
sigma2.k... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.