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 |
|---|---|---|---|---|---|---|---|---|---|
## Put comments here that give an overall description of what your
## functions do
## Make object which holds a matrix and it's inverse
## Inverse is not calculated when creating the object, but should be set by
## calling function
## If input matrix is not square, the function returns NULL
## Return makeCacheMatrix o... | /cachematrix.R | no_license | tbuanes/ProgrammingAssignment2 | R | false | false | 1,519 | r | ## Put comments here that give an overall description of what your
## functions do
## Make object which holds a matrix and it's inverse
## Inverse is not calculated when creating the object, but should be set by
## calling function
## If input matrix is not square, the function returns NULL
## Return makeCacheMatrix o... |
chi2 <- function(a,b,c,d) {
# Compute the chi^2 statistic for a 2x2 crosstab containing the values
# [[a, b], [c, d]]
ooe <- function(o, e) {(o-e)*(o-e) / e}
tot = 0.0 + a+b+c+d
a = as.numeric(a)
b = as.numeric(b)
c = as.numeric(c)
d = as.numeric(d)
(ooe(a, (a+c)*(a+b)/tot)
+ ooe(b, (b+d)*(a+b)/to... | /corpus.r | permissive | amcat/amcat-r-tools | R | false | false | 2,201 | r | chi2 <- function(a,b,c,d) {
# Compute the chi^2 statistic for a 2x2 crosstab containing the values
# [[a, b], [c, d]]
ooe <- function(o, e) {(o-e)*(o-e) / e}
tot = 0.0 + a+b+c+d
a = as.numeric(a)
b = as.numeric(b)
c = as.numeric(c)
d = as.numeric(d)
(ooe(a, (a+c)*(a+b)/tot)
+ ooe(b, (b+d)*(a+b)/to... |
library(MLML2R)
### Name: MLML
### Title: MLE (maximum likelihood estimates) of 5-mC and 5-hmC levels.
### Aliases: MLML
### ** Examples
# load the example datasets from BS, oxBS and TAB methods
data(C_BS_sim)
data(C_OxBS_sim)
data(T_BS_sim)
data(T_OxBS_sim)
data(C_TAB_sim)
data(T_TAB_sim)
# obtain MLE via EM-algo... | /data/genthat_extracted_code/MLML2R/examples/MLML.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,005 | r | library(MLML2R)
### Name: MLML
### Title: MLE (maximum likelihood estimates) of 5-mC and 5-hmC levels.
### Aliases: MLML
### ** Examples
# load the example datasets from BS, oxBS and TAB methods
data(C_BS_sim)
data(C_OxBS_sim)
data(T_BS_sim)
data(T_OxBS_sim)
data(C_TAB_sim)
data(T_TAB_sim)
# obtain MLE via EM-algo... |
rm(list=ls())
setwd("D:\\Studies\\PhD\\Year1\\STAT548 - Qualifying course\\Paper 1 - TGS\\Code\\Results\\Simulation_Study\\dld\\")
plot_and_save <- function(data, title, vers, width=8, height=6.5){
require(ggplot2)
ggplot(data, aes(x=x, y=y)) +
geom_point() + labs(x="", y="", title = title) +
g... | /process_real_data_results.R | no_license | vittrom/Scalable-Importance-Tempering-and-Bayesian-Variable-Selection | R | false | false | 1,827 | r | rm(list=ls())
setwd("D:\\Studies\\PhD\\Year1\\STAT548 - Qualifying course\\Paper 1 - TGS\\Code\\Results\\Simulation_Study\\dld\\")
plot_and_save <- function(data, title, vers, width=8, height=6.5){
require(ggplot2)
ggplot(data, aes(x=x, y=y)) +
geom_point() + labs(x="", y="", title = title) +
g... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/score_teamX.R
\name{score_teamX}
\alias{score_teamX}
\title{List all occurrences of a specific scoreline for a specific team}
\usage{
score_teamX(df = NULL, score = NULL, teamname = NULL)
}
\arguments{
\item{df}{the results dataset}
\item{sc... | /man/score_teamX.Rd | no_license | nturaga/engsoccerdata | R | false | true | 1,098 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/score_teamX.R
\name{score_teamX}
\alias{score_teamX}
\title{List all occurrences of a specific scoreline for a specific team}
\usage{
score_teamX(df = NULL, score = NULL, teamname = NULL)
}
\arguments{
\item{df}{the results dataset}
\item{sc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rcloud.jupyter.notebooks.R
\docType{package}
\name{rcloud.jupyter.noteooks}
\alias{rcloud.jupyter.noteooks}
\alias{rcloud.jupyter.noteooks-package}
\title{rcloud.jupyter.noteooks}
\description{
This package is an extension to RCloud, it allow... | /man/rcloud.jupyter.noteooks.Rd | no_license | altusnets/rcloud.jupyter.notebooks | R | false | true | 364 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rcloud.jupyter.notebooks.R
\docType{package}
\name{rcloud.jupyter.noteooks}
\alias{rcloud.jupyter.noteooks}
\alias{rcloud.jupyter.noteooks-package}
\title{rcloud.jupyter.noteooks}
\description{
This package is an extension to RCloud, it allow... |
#' @title plotSampleCount function
#' @param ReturnClass Description
#' @param Colour_List list - optional colours specified for the columns
#' @keywords Mutation Waterfall
#' @export
#' @examples
#' ## Pass the function a MuationPlot object
#' plotSampleCount(MutationPlot)
## FuncColour=c("frameshift deletion" = "#7... | /R/plotSampleCount.R | no_license | findlaycopley/MutPlot | R | false | false | 1,392 | r | #' @title plotSampleCount function
#' @param ReturnClass Description
#' @param Colour_List list - optional colours specified for the columns
#' @keywords Mutation Waterfall
#' @export
#' @examples
#' ## Pass the function a MuationPlot object
#' plotSampleCount(MutationPlot)
## FuncColour=c("frameshift deletion" = "#7... |
library(dplyr)
library(stringr)
library(ggplot2)
############ settings ##############
#maze4 <- c('maze4_path_weight100_weight30.csv','Maze4 - 201801162151 - Trial 0 - TRIAL_NUM - 6000 - TEST.csv') #Maze4 - 201801162151 - Trial 0 - TRIAL_NUM - 6000 - TEST.csv')
maze4 <- c('maze4_path_weight100_weight30.csv','m... | /dst_plot.R | no_license | cx1027/DST | R | false | false | 13,044 | r | library(dplyr)
library(stringr)
library(ggplot2)
############ settings ##############
#maze4 <- c('maze4_path_weight100_weight30.csv','Maze4 - 201801162151 - Trial 0 - TRIAL_NUM - 6000 - TEST.csv') #Maze4 - 201801162151 - Trial 0 - TRIAL_NUM - 6000 - TEST.csv')
maze4 <- c('maze4_path_weight100_weight30.csv','m... |
singleview.clusterer <- function(datasets, index, kernel_funcs) {
mydata = datasets[[index]]
#Build the dendrogram from data set module names
priori.decomp <- build.dendrogam(rownames(mydata$mtx))
best_kernel_func = NULL
best_kernel_func_index = 1
best_score = Inf
for (i in 1:length(ker... | /R/multiview/clusterValidate.R | no_license | amirms/GeLaToLab | R | false | false | 11,212 | r | singleview.clusterer <- function(datasets, index, kernel_funcs) {
mydata = datasets[[index]]
#Build the dendrogram from data set module names
priori.decomp <- build.dendrogam(rownames(mydata$mtx))
best_kernel_func = NULL
best_kernel_func_index = 1
best_score = Inf
for (i in 1:length(ker... |
#' Performs Mercator or Lambert projection of data.
#'
#' Performs Mercator, Lambert or no projection of data, as a default it will
#' perform the projection used in current plot.
#'
#'
#' @param a,b The input data to be projected, may be given as two vectors or as
#' list attributes, lat and lon (x and y if project... | /R/Proj.R | no_license | Hafro/geo | R | false | false | 2,352 | r | #' Performs Mercator or Lambert projection of data.
#'
#' Performs Mercator, Lambert or no projection of data, as a default it will
#' perform the projection used in current plot.
#'
#'
#' @param a,b The input data to be projected, may be given as two vectors or as
#' list attributes, lat and lon (x and y if project... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/20_watson.R
\name{watson}
\alias{watson}
\title{Watson Function}
\usage{
watson()
}
\value{
A list containing:
\itemize{
\item \code{fn} Objective function which calculates the value given input
parameter vector.
\item \code{gr} Gradien... | /man/watson.Rd | permissive | jlmelville/funconstrain | R | false | true | 2,333 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/20_watson.R
\name{watson}
\alias{watson}
\title{Watson Function}
\usage{
watson()
}
\value{
A list containing:
\itemize{
\item \code{fn} Objective function which calculates the value given input
parameter vector.
\item \code{gr} Gradien... |
data<- read.csv.sql("household_power_consumption.txt",
sql= "select * from file where date in ( '1/2/2007' , '2/2/2007')" ,
sep=";" )
data$DIT<-paste(data$Date, data$Time)
data$DIT<-strptime(data$DIT, "%d/%m/%Y %H:%M:%S")
data$Date<-as.Date(data$Date)
png("plot1.png", height=... | /plot1.R | no_license | katarzynakedzierska/ExData_Plotting1 | R | false | false | 481 | r | data<- read.csv.sql("household_power_consumption.txt",
sql= "select * from file where date in ( '1/2/2007' , '2/2/2007')" ,
sep=";" )
data$DIT<-paste(data$Date, data$Time)
data$DIT<-strptime(data$DIT, "%d/%m/%Y %H:%M:%S")
data$Date<-as.Date(data$Date)
png("plot1.png", height=... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
##This funtion will define all the functions necessary to work on
##inverting the matrix in the cacheSolve Function
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- func... | /cachematrix.R | no_license | rklarpit/ProgrammingAssignment2 | R | false | false | 1,094 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
##This funtion will define all the functions necessary to work on
##inverting the matrix in the cacheSolve Function
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- func... |
#' NA to Zeros
#'
#' Specify a dataframe and a vector of column names. If there are NAs in those columns,
#' convert them to 0s and return a dataframe. This is slower than using na_to_zero.R with purrr:: map().
#' @param df A dataframe.
#' @param cols A vector of quoted column names.
#' @param ... Other arguments
#' @... | /R/na_to_zero_df.R | no_license | aedobbyn/dobtools | R | false | false | 699 | r |
#' NA to Zeros
#'
#' Specify a dataframe and a vector of column names. If there are NAs in those columns,
#' convert them to 0s and return a dataframe. This is slower than using na_to_zero.R with purrr:: map().
#' @param df A dataframe.
#' @param cols A vector of quoted column names.
#' @param ... Other arguments
#' @... |
library(chipmine)
library(org.AFumigatus.Af293.eg.db)
library(ggpubr)
library(ggrepel)
library(cowplot)
rm(list = ls())
# source("E:/Chris_UM/GitHub/omics_util/RNAseq_scripts/DESeq2_functions.R")
# source(file = "E:/Chris_UM/GitHub/omics_util/GO_enrichment/topGO_functions.R")
# "CEA17_AA_vs_CEA17_C", "5A9_AA_vs_5A9_... | /integrate_ChIP_RNA/diffbind_DESeq2_volcano.R | no_license | lakhanp1/omics_utils | R | false | false | 9,862 | r | library(chipmine)
library(org.AFumigatus.Af293.eg.db)
library(ggpubr)
library(ggrepel)
library(cowplot)
rm(list = ls())
# source("E:/Chris_UM/GitHub/omics_util/RNAseq_scripts/DESeq2_functions.R")
# source(file = "E:/Chris_UM/GitHub/omics_util/GO_enrichment/topGO_functions.R")
# "CEA17_AA_vs_CEA17_C", "5A9_AA_vs_5A9_... |
#' To perform QTL mapping with Wen method
#'
#' @param pheRaw phenotype matrix.
#' @param genRaw genotype matrix.
#' @param mapRaw1 linkage map matrix.
#' @param WalkSpeed Walk speed for Genome-wide Scanning.
#' @param CriLOD Critical LOD scores for significant QTL.
#' @param dir file path in your computer.
#'
... | /R/ZhouF.R | no_license | cran/QTL.gCIMapping | R | false | false | 90,494 | r | #' To perform QTL mapping with Wen method
#'
#' @param pheRaw phenotype matrix.
#' @param genRaw genotype matrix.
#' @param mapRaw1 linkage map matrix.
#' @param WalkSpeed Walk speed for Genome-wide Scanning.
#' @param CriLOD Critical LOD scores for significant QTL.
#' @param dir file path in your computer.
#'
... |
rankall <- function(outcome,num="best"){
data = read.csv("outcome-of-care-measures.csv", colClasses="character")
data[,7] <- as.factor(data[,7])
statesH <- levels(data[,7])
rnkHospital <- matrix(NA,nrow=length(statesH),ncol=2)
colnames(rnkHospital) <- c("hospital","state")
... | /rankall.R | no_license | Rhyzpect/R-programming | R | false | false | 3,210 | r | rankall <- function(outcome,num="best"){
data = read.csv("outcome-of-care-measures.csv", colClasses="character")
data[,7] <- as.factor(data[,7])
statesH <- levels(data[,7])
rnkHospital <- matrix(NA,nrow=length(statesH),ncol=2)
colnames(rnkHospital) <- c("hospital","state")
... |
testlist <- list(lambda = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), logq = numeric(0), nu = numeric(0), tol = 0, ymax = 0)
result <- do.call(COMPoissonReg:::qcmp_cpp,testlist)
str(result) | /COMPoissonReg/inst/testfiles/qcmp_cpp/libFuzzer_qcmp_cpp/qcmp_cpp_valgrind_files/1612728719-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 296 | r | testlist <- list(lambda = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), logq = numeric(0), nu = numeric(0), tol = 0, ymax = 0)
result <- do.call(COMPoissonReg:::qcmp_cpp,testlist)
str(result) |
testlist <- list(Beta = 0, CVLinf = -1.37672047637255e-268, FM = 2.78530958780685e-307, 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/1615830358-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 486 | r | testlist <- list(Beta = 0, CVLinf = -1.37672047637255e-268, FM = 2.78530958780685e-307, 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... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_handling.r
\name{aggr_data}
\alias{aggr_data}
\title{convert individual event information to aggregated information per network node}
\usage{
aggr_data(dat, from = NULL, cumsum = TRUE)
}
\arguments{
\item{dat}{\code{data.frame} with vari... | /man/aggr_data.Rd | no_license | cran/NetOrigin | R | false | true | 1,206 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_handling.r
\name{aggr_data}
\alias{aggr_data}
\title{convert individual event information to aggregated information per network node}
\usage{
aggr_data(dat, from = NULL, cumsum = TRUE)
}
\arguments{
\item{dat}{\code{data.frame} with vari... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/well_row.R
\name{well_row}
\alias{well_row}
\title{Get row number from a well label}
\usage{
well_row(well)
}
\arguments{
\item{well}{A well label (e.g., "A4")}
}
\value{
Integer value for the corresponding row
}
\description{
TODO
}
\note{
T... | /man/well_row.Rd | permissive | briandconnelly/microtiterr | R | false | true | 443 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/well_row.R
\name{well_row}
\alias{well_row}
\title{Get row number from a well label}
\usage{
well_row(well)
}
\arguments{
\item{well}{A well label (e.g., "A4")}
}
\value{
Integer value for the corresponding row
}
\description{
TODO
}
\note{
T... |
tr1 <- function(x) sum(diag(x))
tr2 <- icomp:::tr
set.seed(1234)
x <- matrix(rnorm(30), 10)
stopifnot(all.equal(tr1(x), tr2(x)))
x <- t(x)
stopifnot(all.equal(tr1(x), tr2(x)))
| /tests/trace.R | no_license | wrathematics/icomp | R | false | false | 179 | r | tr1 <- function(x) sum(diag(x))
tr2 <- icomp:::tr
set.seed(1234)
x <- matrix(rnorm(30), 10)
stopifnot(all.equal(tr1(x), tr2(x)))
x <- t(x)
stopifnot(all.equal(tr1(x), tr2(x)))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/occCitation.R
\name{occCitation}
\alias{occCitation}
\title{Occurrence Citations}
\usage{
occCitation(x = NULL)
}
\arguments{
\item{x}{An object of class \code{\link{occCiteData}}}
}
\value{
A dataframe with citations information for occurren... | /man/occCitation.Rd | no_license | cmerow/occCite | R | false | true | 454 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/occCitation.R
\name{occCitation}
\alias{occCitation}
\title{Occurrence Citations}
\usage{
occCitation(x = NULL)
}
\arguments{
\item{x}{An object of class \code{\link{occCiteData}}}
}
\value{
A dataframe with citations information for occurren... |
####################################
### Methods to calculate LLs of
### OTU structures
### And then to plot them using the network package
###
### Jarrett Byrnes
### Last updated: 4/11/2013
###
### Changelog
### 4/11/2013 - added poisson LL for LikColDensity
####################################
library(bipartite)
li... | /getNetworkAIC.R | no_license | el-ee/otu-frontiers | R | false | false | 4,355 | r | ####################################
### Methods to calculate LLs of
### OTU structures
### And then to plot them using the network package
###
### Jarrett Byrnes
### Last updated: 4/11/2013
###
### Changelog
### 4/11/2013 - added poisson LL for LikColDensity
####################################
library(bipartite)
li... |
gustometerData <- function(fileName, timeStamps = FALSE) {
# Read in an electrogustometry file
# If fewer than two time stamps are read, the function returns empty
# Otherwise assumes that last two stamps delineate the data of interest
# i.e. there was a restart before the set that was used
# Output is dataframe of fil... | /gustometerData.R | no_license | pd73/R_TSFB | R | false | false | 1,922 | r | gustometerData <- function(fileName, timeStamps = FALSE) {
# Read in an electrogustometry file
# If fewer than two time stamps are read, the function returns empty
# Otherwise assumes that last two stamps delineate the data of interest
# i.e. there was a restart before the set that was used
# Output is dataframe of fil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DerivedValues.R
\name{DerivedValues}
\alias{DerivedValues}
\title{Function to post-process MCMC results of the year-specific sampler}
\usage{
DerivedValues(N, gamma, phi, psi, M, extrap = 0)
}
\arguments{
\item{N}{matrix containing the poster... | /man/DerivedValues.Rd | no_license | benaug/OpenPopSCR | R | false | true | 1,953 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DerivedValues.R
\name{DerivedValues}
\alias{DerivedValues}
\title{Function to post-process MCMC results of the year-specific sampler}
\usage{
DerivedValues(N, gamma, phi, psi, M, extrap = 0)
}
\arguments{
\item{N}{matrix containing the poster... |
#' InternetProvider
#'
#' @export
#' @keywords internal
#' @param locale (character) the locale to use. See
#' `internet_provider_locales` for locales supported (default: en_US)
#' @details
#' **Methods**
#'
#' - `to_ascii(x)` - convert to ascii
#' - `email(domain)` - get an email address
#' - `safe_email()` - get a sa... | /R/internet-provider.R | permissive | ktaranov/charlatan | R | false | false | 11,606 | r | #' InternetProvider
#'
#' @export
#' @keywords internal
#' @param locale (character) the locale to use. See
#' `internet_provider_locales` for locales supported (default: en_US)
#' @details
#' **Methods**
#'
#' - `to_ascii(x)` - convert to ascii
#' - `email(domain)` - get an email address
#' - `safe_email()` - get a sa... |
VectorsToRectangular <- function (vectors)
{
rectangular_vectors = vectors
grades <- vectors[, 2]
module <- vectors[, 1]
radians <- ToRadians(grades)
x1 = sin(radians) * module
y1 = cos(radians) * module
rectangular_vectors[, 1] <- x1
rectangular_vectors[, 2] <- y1
return(... | /VecStatGraphs2D/R/VectorsToRectangular.R | no_license | ingted/R-Examples | R | false | false | 345 | r | VectorsToRectangular <- function (vectors)
{
rectangular_vectors = vectors
grades <- vectors[, 2]
module <- vectors[, 1]
radians <- ToRadians(grades)
x1 = sin(radians) * module
y1 = cos(radians) * module
rectangular_vectors[, 1] <- x1
rectangular_vectors[, 2] <- y1
return(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidy_scan_pvl.R
\name{add_phenames}
\alias{add_phenames}
\title{Replace old (default) trait names with true trait names}
\usage{
add_phenames(charvec, phe1, phe2)
}
\arguments{
\item{charvec}{a character vector containing entries like "profil... | /man/add_phenames.Rd | permissive | kbroman/qtl2pleio | R | false | true | 597 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidy_scan_pvl.R
\name{add_phenames}
\alias{add_phenames}
\title{Replace old (default) trait names with true trait names}
\usage{
add_phenames(charvec, phe1, phe2)
}
\arguments{
\item{charvec}{a character vector containing entries like "profil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/requests.R
\name{post_request}
\alias{post_request}
\title{post_request}
\usage{
post_request(endpoint_url, payload = list())
}
\arguments{
\item{endpoint_url}{the url for the endpoint}
\item{payload}{the parameters needed for the post reque... | /man/post_request.Rd | no_license | cunybpl/bplclientR | R | false | true | 537 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/requests.R
\name{post_request}
\alias{post_request}
\title{post_request}
\usage{
post_request(endpoint_url, payload = list())
}
\arguments{
\item{endpoint_url}{the url for the endpoint}
\item{payload}{the parameters needed for the post reque... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vizGeomorphicComponent.R
\name{vizGeomorphicComponent}
\alias{vizGeomorphicComponent}
\title{Visual Summary of Hill Landform Positions}
\usage{
vizGeomorphicComponent(
x,
s = NULL,
annotations = TRUE,
annotation.cex = 0.75,
... | /man/vizGeomorphicComponent.Rd | no_license | cran/sharpshootR | R | false | true | 1,504 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vizGeomorphicComponent.R
\name{vizGeomorphicComponent}
\alias{vizGeomorphicComponent}
\title{Visual Summary of Hill Landform Positions}
\usage{
vizGeomorphicComponent(
x,
s = NULL,
annotations = TRUE,
annotation.cex = 0.75,
... |
#
# Get beer data
#
# Author: Jitender Aswani, Co-Founder @datadolph.in
# Date: 3/15/2013
# Copyright (c) 2011, under the Creative Commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) License
# For more information see: https://creativecommons.org/licenses/by-nc/3.0/
# All rights reserved.
require(data.table)
... | /FetchData/FetchBeerRatings.R | no_license | shapang/R-1 | R | false | false | 1,902 | r | #
# Get beer data
#
# Author: Jitender Aswani, Co-Founder @datadolph.in
# Date: 3/15/2013
# Copyright (c) 2011, under the Creative Commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) License
# For more information see: https://creativecommons.org/licenses/by-nc/3.0/
# All rights reserved.
require(data.table)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StyleBypasses.R
\name{setEdgeTargetArrowShapeBypass}
\alias{setEdgeTargetArrowShapeBypass}
\title{Set Edge Target Arrow Shape Bypass}
\usage{
setEdgeTargetArrowShapeBypass(
edge.names,
new.shapes,
network = NULL,
base.url = .defaultBa... | /man/setEdgeTargetArrowShapeBypass.Rd | permissive | kumonismo/RCy3 | R | false | true | 1,378 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StyleBypasses.R
\name{setEdgeTargetArrowShapeBypass}
\alias{setEdgeTargetArrowShapeBypass}
\title{Set Edge Target Arrow Shape Bypass}
\usage{
setEdgeTargetArrowShapeBypass(
edge.names,
new.shapes,
network = NULL,
base.url = .defaultBa... |
acontext("PredictedPeaks data set")
require(httr)
PredictedPeaks.RData <- file.path(tempdir(), "PredictedPeaks.RData")
request <- GET("http://github.com/tdhock/animint-examples/blob/master/data/PredictedPeaks.RData?raw=true")
stop_for_status(request)
writeBin(content(request), PredictedPeaks.RData)
## If we don't load... | /tests/testthat/test-renderer2-PredictedPeaks.R | no_license | cpsievert/animint | R | false | false | 10,024 | r | acontext("PredictedPeaks data set")
require(httr)
PredictedPeaks.RData <- file.path(tempdir(), "PredictedPeaks.RData")
request <- GET("http://github.com/tdhock/animint-examples/blob/master/data/PredictedPeaks.RData?raw=true")
stop_for_status(request)
writeBin(content(request), PredictedPeaks.RData)
## If we don't load... |
library(lcc)
### Name: hue
### Title: Hue color data
### Aliases: hue
### Keywords: datasets
### ** Examples
data(hue)
summary(hue)
str(hue)
## Second degree polynomial model with random intercept, slope and
## quadratic term including an exponential variance function using
## time as covariate.
model<-lcc(dataset ... | /data/genthat_extracted_code/lcc/examples/hue.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 721 | r | library(lcc)
### Name: hue
### Title: Hue color data
### Aliases: hue
### Keywords: datasets
### ** Examples
data(hue)
summary(hue)
str(hue)
## Second degree polynomial model with random intercept, slope and
## quadratic term including an exponential variance function using
## time as covariate.
model<-lcc(dataset ... |
source("/home/mr984/diversity_metrics/scripts/checkplot_initials.R")
source("/home/mr984/diversity_metrics/scripts/checkplot_inf.R")
reps<-50
outerreps<-1000
size<-rev(round(10^seq(2, 5, 0.25)))[
10
]
nc<-12
plan(strategy=multisession, workers=nc)
map(rev(1:outerreps), function(x){
start<-Sys.time()
out<-checkp... | /scripts/checkplots_for_parallel_amarel/asy_839.R | no_license | dushoff/diversity_metrics | R | false | false | 536 | r | source("/home/mr984/diversity_metrics/scripts/checkplot_initials.R")
source("/home/mr984/diversity_metrics/scripts/checkplot_inf.R")
reps<-50
outerreps<-1000
size<-rev(round(10^seq(2, 5, 0.25)))[
10
]
nc<-12
plan(strategy=multisession, workers=nc)
map(rev(1:outerreps), function(x){
start<-Sys.time()
out<-checkp... |
#' @title Metric: Number of Traces with Selfloop
#'
#' @description Returns the number of traces in which one or more selfloops occur, both in absolute and relative numbers.
#'
#'
#' @param eventlog The event log to be used. An object of class
#' \code{eventlog}.
#'
#'
#' @export number_of_traces_with_selfloop... | /edeaR/R/number_of_traces_with_selfloop.R | no_license | ingted/R-Examples | R | false | false | 708 | r | #' @title Metric: Number of Traces with Selfloop
#'
#' @description Returns the number of traces in which one or more selfloops occur, both in absolute and relative numbers.
#'
#'
#' @param eventlog The event log to be used. An object of class
#' \code{eventlog}.
#'
#'
#' @export number_of_traces_with_selfloop... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hic_loess.R
\name{hic_loess}
\alias{hic_loess}
\title{Perform joint loess normalization on two Hi-C datasets}
\usage{
hic_loess(hic.table, degree = 1, span = NA, loess.criterion = "gcv",
Plot = FALSE, parallel = FALSE, BP_param = bpp... | /man/hic_loess.Rd | permissive | dozmorovlab/HiCdiff | R | false | true | 4,883 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hic_loess.R
\name{hic_loess}
\alias{hic_loess}
\title{Perform joint loess normalization on two Hi-C datasets}
\usage{
hic_loess(hic.table, degree = 1, span = NA, loess.criterion = "gcv",
Plot = FALSE, parallel = FALSE, BP_param = bpp... |
#' @title df_line45()
#'
#' @description Cette fonction crée un dataframe avec 2 observations pour créer une ligne à 45 degrés dans un ggplot
#' @examples +geom_line(data = df_line45(),aes(x=x, y=y), color = "lightgray")
#' @export
df_line45 <- function(label="label"){
data.frame( x= c(-Inf, Inf), y = c(-Inf, Inf), ... | /R/df_line45.R | permissive | SimonCoulombe/pkgsimon | R | false | false | 349 | r | #' @title df_line45()
#'
#' @description Cette fonction crée un dataframe avec 2 observations pour créer une ligne à 45 degrés dans un ggplot
#' @examples +geom_line(data = df_line45(),aes(x=x, y=y), color = "lightgray")
#' @export
df_line45 <- function(label="label"){
data.frame( x= c(-Inf, Inf), y = c(-Inf, Inf), ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gs8}
\alias{gs8}
\title{Gold Standard 8}
\usage{
gs8
}
\description{
Gold standard segmentation for subject 8.
This data was created by Alessandra Valcarcel and is artificial for example purposes.
}
| /man/gs8.Rd | no_license | avalcarcel9/rtapas | R | false | true | 305 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gs8}
\alias{gs8}
\title{Gold Standard 8}
\usage{
gs8
}
\description{
Gold standard segmentation for subject 8.
This data was created by Alessandra Valcarcel and is artificial for example purposes.
}
|
# Lecture 9
# Illustration of exercises 5 and 6 of lecture 8
vienna_model_estimate <- lm(price ~ distance, data = my_vienna_data)
# This will give some coefficients, e.g. distance para is 2.35
# Ex 5
# What do these parameters predict for London?
# Ex 6
london_model_estimate <-lm(price ~ distance, data = my_londo... | /lecture_9/lecture9-class.R | no_license | kovacskokokornel/Rcoding_CEU | R | false | false | 6,836 | r | # Lecture 9
# Illustration of exercises 5 and 6 of lecture 8
vienna_model_estimate <- lm(price ~ distance, data = my_vienna_data)
# This will give some coefficients, e.g. distance para is 2.35
# Ex 5
# What do these parameters predict for London?
# Ex 6
london_model_estimate <-lm(price ~ distance, data = my_londo... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /mepstrends/hc_care/json/code/r/totPOP__education__diab_eye__.r | permissive | HHS-AHRQ/MEPS-summary-tables | R | false | false | 2,235 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
make_percentage <- function(numerator, denominator, digits = 1){
round(numerator / denominator * 100, digits)
} | /R/make_percentage.R | no_license | sbha/handier | R | false | false | 113 | r | make_percentage <- function(numerator, denominator, digits = 1){
round(numerator / denominator * 100, digits)
} |
#' @include DBDriver.R
NULL
#' An S4 class to represent a SQL Server connection
#'
#' This class extends the \code{\link[RJDBC:JDBCConnection-class]{JDBCConnection}}
#' class to represent a SQL Server connection.
#'
#' @slot jc Java object representing the connection.
#' @slot identifier.quote quote character for a SQ... | /R/DBConnection.R | no_license | mnel/RSQLServer | R | false | false | 6,679 | r | #' @include DBDriver.R
NULL
#' An S4 class to represent a SQL Server connection
#'
#' This class extends the \code{\link[RJDBC:JDBCConnection-class]{JDBCConnection}}
#' class to represent a SQL Server connection.
#'
#' @slot jc Java object representing the connection.
#' @slot identifier.quote quote character for a SQ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/utils.R
\name{left_fill}
\alias{left_fill}
\title{Fills values from left}
\usage{
left_fill(vec, str, by = NULL)
}
\description{
Fills values from left
}
| /man/left_fill.Rd | no_license | crubba/crmisc | R | false | false | 241 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/utils.R
\name{left_fill}
\alias{left_fill}
\title{Fills values from left}
\usage{
left_fill(vec, str, by = NULL)
}
\description{
Fills values from left
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ScoreTestSupport.r
\name{ScoreTestSupport}
\alias{ScoreTestSupport}
\title{Title}
\usage{
ScoreTestSupport(
y,
baselineonly = NULL,
additive = NULL,
pairwise.interaction = NULL,
saturated = NULL,
missingTumorIndicator = NULL
)
}
\... | /man/ScoreTestSupport.Rd | no_license | andrewhaoyu/TOP | R | false | true | 386 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ScoreTestSupport.r
\name{ScoreTestSupport}
\alias{ScoreTestSupport}
\title{Title}
\usage{
ScoreTestSupport(
y,
baselineonly = NULL,
additive = NULL,
pairwise.interaction = NULL,
saturated = NULL,
missingTumorIndicator = NULL
)
}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{h_deparsed_sys_call}
\alias{h_deparsed_sys_call}
\title{Simply converts a call into a character}
\usage{
h_deparsed_sys_call(which)
}
\arguments{
\item{which}{see \link{sys.call}. However the function bounds it by
the number of... | /man/h_deparsed_sys_call.Rd | no_license | cran/sanityTracker | R | false | true | 469 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{h_deparsed_sys_call}
\alias{h_deparsed_sys_call}
\title{Simply converts a call into a character}
\usage{
h_deparsed_sys_call(which)
}
\arguments{
\item{which}{see \link{sys.call}. However the function bounds it by
the number of... |
#calculate the level of design parameta from operation environment (via QFD)
#oe ()
#qfd as matrix
calculateRequiredDesign <- function(oeData, qfd){
numberOfDP <- ncol(qfd);
requiredDesign <- matrix(data=0, ncol = numberOfDP);
diffFuncs <- as.matrix(oeData) - 1; #the difference between initial OE and current O... | /qfdCalculation.R | no_license | calculusGura/paper2 | R | false | false | 2,649 | r | #calculate the level of design parameta from operation environment (via QFD)
#oe ()
#qfd as matrix
calculateRequiredDesign <- function(oeData, qfd){
numberOfDP <- ncol(qfd);
requiredDesign <- matrix(data=0, ncol = numberOfDP);
diffFuncs <- as.matrix(oeData) - 1; #the difference between initial OE and current O... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/configservice_operations.R
\name{configservice_deliver_config_snapshot}
\alias{configservice_deliver_config_snapshot}
\title{Schedules delivery of a configuration snapshot to the Amazon S3 bucket
in the specified delivery channel}
\usage{
con... | /cran/paws.management/man/configservice_deliver_config_snapshot.Rd | permissive | paws-r/paws | R | false | true | 876 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/configservice_operations.R
\name{configservice_deliver_config_snapshot}
\alias{configservice_deliver_config_snapshot}
\title{Schedules delivery of a configuration snapshot to the Amazon S3 bucket
in the specified delivery channel}
\usage{
con... |
rm(list = ls())
gc()
#loading packages
require(ggsci)
require(data.table)
require(cowplot)
#sort function from oncoprint complexHeatmap
memoSort <- function(M) {
geneOrder <- sort(rowSums(M), decreasing=TRUE, index.return=TRUE)$ix;
scoreCol <- function(x) {
score <- 0;
for(i in 1:length(x)) {
if(x[... | /scriptsWithData/tumor_vs_met/Tumor vs Met.R | no_license | Jingjing-Qi/RscriptCollection | R | false | false | 4,492 | r | rm(list = ls())
gc()
#loading packages
require(ggsci)
require(data.table)
require(cowplot)
#sort function from oncoprint complexHeatmap
memoSort <- function(M) {
geneOrder <- sort(rowSums(M), decreasing=TRUE, index.return=TRUE)$ix;
scoreCol <- function(x) {
score <- 0;
for(i in 1:length(x)) {
if(x[... |
#' Force dataframe columns to character
#'
## Copyright(c) 2017-2020 R. Mark Sharp
## This file is part of nprcgenekeepr
#' Converts designated columns of a dataframe to character. Defaults to
#' converting columns \code{id}, \code{sire}, and \code{dam}.
#'
#' @return A dataframe with the specified columns converted to... | /R/toCharacter.R | permissive | jhagberg/nprcgenekeepr | R | false | false | 1,051 | r | #' Force dataframe columns to character
#'
## Copyright(c) 2017-2020 R. Mark Sharp
## This file is part of nprcgenekeepr
#' Converts designated columns of a dataframe to character. Defaults to
#' converting columns \code{id}, \code{sire}, and \code{dam}.
#'
#' @return A dataframe with the specified columns converted to... |
#'Runs the simulation for a a range of die sizes
#'
#'The function was just an additional little experiment I wanted to try, and is not part of the core functions of the package.
#'\code{roll_probabilities} creates a new transition matrix, runs the markov chain simulation, and produces a new probability distribution... | /R/roll_probabilities.R | no_license | iawindham/snakesandladders | R | false | false | 1,782 | r | #'Runs the simulation for a a range of die sizes
#'
#'The function was just an additional little experiment I wanted to try, and is not part of the core functions of the package.
#'\code{roll_probabilities} creates a new transition matrix, runs the markov chain simulation, and produces a new probability distribution... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unbmom2.R
\name{uM4pool}
\alias{uM4pool}
\title{Pooled central moment estimates - two-sample}
\usage{
uM4pool(m2, m4, n_x, n_y)
}
\arguments{
\item{m2}{naive biased variance estimate \eqn{m_2 = 1/(n_x + n_y) \sum_{i =
1}^{n_x} ((X_i - \bar{X}... | /man/uM4pool.Rd | no_license | cran/Umoments | R | false | true | 1,533 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unbmom2.R
\name{uM4pool}
\alias{uM4pool}
\title{Pooled central moment estimates - two-sample}
\usage{
uM4pool(m2, m4, n_x, n_y)
}
\arguments{
\item{m2}{naive biased variance estimate \eqn{m_2 = 1/(n_x + n_y) \sum_{i =
1}^{n_x} ((X_i - \bar{X}... |
############# Anspach and Carlson ##############
rm(list = ls())
options(stringsAsFactors = FALSE)
library(dplyr)
library(stargazer)
library(ggplot2)
library(gridExtra)
#set working directory
setwd("C:/Users/kevin/Desktop/rap_replication")
# load data - (choose sample to analyze)
load("data/q.Rdata") # 10759 X 112
... | /ac_experiment.R | no_license | kmunger/RAP_DL_replication_materials | R | false | false | 15,158 | r | ############# Anspach and Carlson ##############
rm(list = ls())
options(stringsAsFactors = FALSE)
library(dplyr)
library(stargazer)
library(ggplot2)
library(gridExtra)
#set working directory
setwd("C:/Users/kevin/Desktop/rap_replication")
# load data - (choose sample to analyze)
load("data/q.Rdata") # 10759 X 112
... |
---
title: "White_Wines"
author: "Anuj Nimkar"
date: "Monday, April 27, 2015"
output: html_document
---
### Setting the work directory and loading in the train data
```{r}
setwd('F:/Anuj/Study & Work/Sem 2 Courses/INST 737/Final Project')
trainData <- read.csv('wineWhites_trainData.csv', sep = ',')
testData <- ... | /white_Wines_Decision_Tree.R | no_license | anujnimkar/WineQuality_Analysis_and_Prediction-using-R | R | false | false | 1,604 | r | ---
title: "White_Wines"
author: "Anuj Nimkar"
date: "Monday, April 27, 2015"
output: html_document
---
### Setting the work directory and loading in the train data
```{r}
setwd('F:/Anuj/Study & Work/Sem 2 Courses/INST 737/Final Project')
trainData <- read.csv('wineWhites_trainData.csv', sep = ',')
testData <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Gamma2gammasCon.R
\name{Gamma2gammasCon}
\alias{Gamma2gammasCon}
\title{Constrains non-diagonal matrix elements of transition probability matrix.}
\usage{
Gamma2gammasCon(Gamma)
}
\arguments{
\item{Gamma}{Transition probability matrix.}
}
\va... | /man/Gamma2gammasCon.Rd | no_license | Fratelino/fHMM | R | false | true | 557 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Gamma2gammasCon.R
\name{Gamma2gammasCon}
\alias{Gamma2gammasCon}
\title{Constrains non-diagonal matrix elements of transition probability matrix.}
\usage{
Gamma2gammasCon(Gamma)
}
\arguments{
\item{Gamma}{Transition probability matrix.}
}
\va... |
#' @title test_edger
#'
#' @description Function \code{test_edger} computes the statistics for quasi-likelihood F-tests or likelihood ratio tests .
#'
#' @param data data frame containing the raw counts of sequencing reads. Columns corresponds to genes, rows to samples.
#' @param condition vector of levels coresponding... | /MLExpResso/R/test_edger.R | no_license | geneticsMiNIng/MLGenSig | R | false | false | 1,684 | r | #' @title test_edger
#'
#' @description Function \code{test_edger} computes the statistics for quasi-likelihood F-tests or likelihood ratio tests .
#'
#' @param data data frame containing the raw counts of sequencing reads. Columns corresponds to genes, rows to samples.
#' @param condition vector of levels coresponding... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StudentDistribution.R
\docType{class}
\name{Student-class}
\alias{Student-class}
\alias{Student}
\alias{quantile,Student-method}
\alias{simulate,Student,numeric-method}
\title{Student's t data distribution}
\usage{
Student(two_armed = TRUE)
... | /man/StudentDataDistribution-class.Rd | permissive | kkmann/adoptr | R | false | true | 1,110 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StudentDistribution.R
\docType{class}
\name{Student-class}
\alias{Student-class}
\alias{Student}
\alias{quantile,Student-method}
\alias{simulate,Student,numeric-method}
\title{Student's t data distribution}
\usage{
Student(two_armed = TRUE)
... |
##Quesion 1##
v_data_q1 <- read.csv("getdata-data-ss06hid.csv")
agricultureLogical <- v_data_q1$AGS == 6 & v_data_q1$ACR == 3
which(agricultureLogical)
##Quesion 2##
library(jpeg)
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fjeff.jpg"
file_path <- paste(getwd(), "/", "jeff.jpg", sep = "")
download.file(url,... | /Week 3/answer.R | no_license | nortonle/GettingAndCleaningData | R | false | false | 464 | r | ##Quesion 1##
v_data_q1 <- read.csv("getdata-data-ss06hid.csv")
agricultureLogical <- v_data_q1$AGS == 6 & v_data_q1$ACR == 3
which(agricultureLogical)
##Quesion 2##
library(jpeg)
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fjeff.jpg"
file_path <- paste(getwd(), "/", "jeff.jpg", sep = "")
download.file(url,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fluoroscripts.R
\docType{data}
\name{protein.spectra}
\alias{protein.spectra}
\title{Spectral information of selected fluorescent proteins.}
\format{A data frame with 5600 rows and 4 variables.
\describe{
\item{protein}{Name of protein}
... | /man/protein.spectra.Rd | permissive | ssokolen/fluoroscripts | R | false | true | 705 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fluoroscripts.R
\docType{data}
\name{protein.spectra}
\alias{protein.spectra}
\title{Spectral information of selected fluorescent proteins.}
\format{A data frame with 5600 rows and 4 variables.
\describe{
\item{protein}{Name of protein}
... |
library(ape)
testtree <- read.tree("10329_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10329_1_unrooted.txt") | /codeml_files/newick_trees_processed_and_cleaned/10329_1/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("10329_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10329_1_unrooted.txt") |
## makeCasheMatrix is a function that make a matrix and cache the inverse of it.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
getinverse <- function() m
list... | /cachematrix.R | no_license | shadynassrat/ProgrammingAssignment2 | R | false | false | 760 | r | ## makeCasheMatrix is a function that make a matrix and cache the inverse of it.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
getinverse <- function() m
list... |
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 4.01944536247129e+84, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615853882-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 659 | r | testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 4.01944536247129e+84, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... |
#------------------------------------------------
# The following commands ensure that package dependencies are listed in the NAMESPACE file.
#' @useDynLib bobFunctionsEpi
#' @importFrom Rcpp evalCpp
#' @importFrom odin odin
NULL
# -----------------------------------
#' functionTimer
#'
#' Calls an Rcpp function that... | /R/misc.R | no_license | bobverity/bobFunctionsEpi | R | false | false | 562 | r | #------------------------------------------------
# The following commands ensure that package dependencies are listed in the NAMESPACE file.
#' @useDynLib bobFunctionsEpi
#' @importFrom Rcpp evalCpp
#' @importFrom odin odin
NULL
# -----------------------------------
#' functionTimer
#'
#' Calls an Rcpp function that... |
#' @title PrepareSimulationData
#' @description Prepare Data for WTP simulation
#' @param stan_est Stan fit model from FitMDCEV
#' @param policies list containing
#' price_p with additive price increases, and
#' dat_psi_p with new psi data
#' @param nsims Number of simulation draws to use for parameter uncertainty
#' @... | /R/PrepareSimulationData.R | no_license | notabigdeal/rmdcev | R | false | false | 5,628 | r | #' @title PrepareSimulationData
#' @description Prepare Data for WTP simulation
#' @param stan_est Stan fit model from FitMDCEV
#' @param policies list containing
#' price_p with additive price increases, and
#' dat_psi_p with new psi data
#' @param nsims Number of simulation draws to use for parameter uncertainty
#' @... |
# Grab the simulation results quickly! ####
# Written by Arianna Krinos, last edits by KJF on 25 May 2017
#install.packages('gplots') #if you are without gplots
#install.packages('plotrix') #if you are without plotrix
library(gplots) #if you just opened R
library(plotrix) #if you just opened R
# You need these numb... | /Scripts/Sim_Output_HeatMaps_Flow.R | no_license | CareyLabVT/GLM-GRAPLEr | R | false | false | 13,659 | r | # Grab the simulation results quickly! ####
# Written by Arianna Krinos, last edits by KJF on 25 May 2017
#install.packages('gplots') #if you are without gplots
#install.packages('plotrix') #if you are without plotrix
library(gplots) #if you just opened R
library(plotrix) #if you just opened R
# You need these numb... |
##
# The five essential tasks to complete the Course Project are as follows.
# Loading Activities
# 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activit... | /run_analysis.R | no_license | didiervila76/Getting_Cleaning_Data_Assignement | R | false | false | 3,970 | r | ##
# The five essential tasks to complete the Course Project are as follows.
# Loading Activities
# 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activit... |
###Examples adding arms to trials in progress
##required packages
require(MAMS)
require(parallel)
require(mvtnorm)
##source functions
funloc <- ()
source(funloc)
#####################################################################################################
#Defining parameters
#The existing MAMS ... | /MAMSaddrun.R | no_license | Thomas-Burnett/Adding-treatments-to-clinical-trials-in-progress | R | false | false | 5,296 | r | ###Examples adding arms to trials in progress
##required packages
require(MAMS)
require(parallel)
require(mvtnorm)
##source functions
funloc <- ()
source(funloc)
#####################################################################################################
#Defining parameters
#The existing MAMS ... |
library(tidyverse)
library(data.table)
library(janitor)
library(sf)
library(mapview)
rm(list = ls())
tribe_df <- read_rds("01_data/cache/tribe_bg_file_names.rds") %>%
tidyr::separate(file_path,into = c("d1","d2","rt","tribe","file"),sep = "/") %>%
filter(rt %in% c("air_federal","air_state","otsa","sdtsa","tdsa"))... | /02_build/02_to_tribal_microsf.R | no_license | galsk223/tribalclimate | R | false | false | 2,086 | r | library(tidyverse)
library(data.table)
library(janitor)
library(sf)
library(mapview)
rm(list = ls())
tribe_df <- read_rds("01_data/cache/tribe_bg_file_names.rds") %>%
tidyr::separate(file_path,into = c("d1","d2","rt","tribe","file"),sep = "/") %>%
filter(rt %in% c("air_federal","air_state","otsa","sdtsa","tdsa"))... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate_test_data.R
\name{generate_test_data}
\alias{generate_test_data}
\title{Generate test data}
\usage{
generate_test_data(input_data, center_mean, center_stddev, grid,
weather_dataset, wt_f=NULL, scaled = T, soil_type = NULL, points=N... | /man/generate_test_data.Rd | no_license | mppalves/GSTools | R | false | true | 2,522 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate_test_data.R
\name{generate_test_data}
\alias{generate_test_data}
\title{Generate test data}
\usage{
generate_test_data(input_data, center_mean, center_stddev, grid,
weather_dataset, wt_f=NULL, scaled = T, soil_type = NULL, points=N... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gtable.R
\name{gtable}
\alias{gtable}
\title{Create a new grob table.}
\usage{
gtable(
widths = list(),
heights = list(),
respect = FALSE,
name = "layout",
rownames = NULL,
colnames = NULL,
vp = NULL
)
}
\arguments{
\item{widths... | /man/gtable.Rd | no_license | cran/gtable | R | false | true | 3,398 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gtable.R
\name{gtable}
\alias{gtable}
\title{Create a new grob table.}
\usage{
gtable(
widths = list(),
heights = list(),
respect = FALSE,
name = "layout",
rownames = NULL,
colnames = NULL,
vp = NULL
)
}
\arguments{
\item{widths... |
library(dplyr)
# Part 2
# Data loaded to variables
hd <- read.csv("http://s3.amazonaws.com/assets.datacamp.com/production/course_2218/datasets/human_development.csv", stringsAsFactors = F)
gii <- read.csv("http://s3.amazonaws.com/assets.datacamp.com/production/course_2218/datasets/gender_inequality.csv", stringsAsFact... | /data/create_human.R | no_license | ahjyrkia/IODS-project | R | false | false | 2,626 | r | library(dplyr)
# Part 2
# Data loaded to variables
hd <- read.csv("http://s3.amazonaws.com/assets.datacamp.com/production/course_2218/datasets/human_development.csv", stringsAsFactors = F)
gii <- read.csv("http://s3.amazonaws.com/assets.datacamp.com/production/course_2218/datasets/gender_inequality.csv", stringsAsFact... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kinesisvideo_operations.R
\name{kinesisvideo_create_signaling_channel}
\alias{kinesisvideo_create_signaling_channel}
\title{Creates a signaling channel}
\usage{
kinesisvideo_create_signaling_channel(ChannelName, ChannelType,
SingleMasterCon... | /cran/paws.media.services/man/kinesisvideo_create_signaling_channel.Rd | permissive | paws-r/paws | R | false | true | 1,401 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kinesisvideo_operations.R
\name{kinesisvideo_create_signaling_channel}
\alias{kinesisvideo_create_signaling_channel}
\title{Creates a signaling channel}
\usage{
kinesisvideo_create_signaling_channel(ChannelName, ChannelType,
SingleMasterCon... |
library(IAPWS95)
### Name: hTD
### Title: Specific Enthalpy, Function of Temperature and Density
### Aliases: hTD
### ** Examples
T <- 500.
D <- 838.025
h <- hTD(T,D)
h
| /data/genthat_extracted_code/IAPWS95/examples/hTD.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 177 | r | library(IAPWS95)
### Name: hTD
### Title: Specific Enthalpy, Function of Temperature and Density
### Aliases: hTD
### ** Examples
T <- 500.
D <- 838.025
h <- hTD(T,D)
h
|
tabPanel("Simulation",
h3("Reaction Times"),
h4("1. Select the parameter values:"),
fluidRow(
column(3,
uiOutput("soa_input"),
sliderInput("N","Number of trials:",
min = 1, max = 1000, value = 500)),
column(3,
sliderInput("proc.A","for auditory stim... | /ui/ui_Simulation.R | no_license | Kaanwoj/tojTWIN | R | false | false | 2,110 | r | tabPanel("Simulation",
h3("Reaction Times"),
h4("1. Select the parameter values:"),
fluidRow(
column(3,
uiOutput("soa_input"),
sliderInput("N","Number of trials:",
min = 1, max = 1000, value = 500)),
column(3,
sliderInput("proc.A","for auditory stim... |
currentGMVersion = "2.5.12"
#' importGraspableJson
#'
#' This simple script just loads a json data file, merges the trial data and events, and renames a few columns
#' It also twiddles things down to a single version of GM, and a single context ("experiment"). It does this only if you
#' set 'compress' to true, but ... | /R/dataLoading.R | no_license | dlandy/GraspableDataAnalysis | R | false | false | 8,636 | r | currentGMVersion = "2.5.12"
#' importGraspableJson
#'
#' This simple script just loads a json data file, merges the trial data and events, and renames a few columns
#' It also twiddles things down to a single version of GM, and a single context ("experiment"). It does this only if you
#' set 'compress' to true, but ... |
\name{summary.mpprob}
\alias{summary.mpprob}
\title{Summary of mpprob object}
\usage{
\method{summary}{mpprob} (object, ...)
}
\arguments{
\item{object}{Object of class \code{mpprob}}
\item{...}{Additional arguments}
}
\value{
Output to screen of percentage of each chromosome
inherited from foun... | /man/summary.mpprob.Rd | no_license | cran/mpMap | R | false | false | 1,045 | rd | \name{summary.mpprob}
\alias{summary.mpprob}
\title{Summary of mpprob object}
\usage{
\method{summary}{mpprob} (object, ...)
}
\arguments{
\item{object}{Object of class \code{mpprob}}
\item{...}{Additional arguments}
}
\value{
Output to screen of percentage of each chromosome
inherited from foun... |
# Importing Dataset
dataset = read.csv('50_Startups.csv')
# Encoding Categorical Data
dataset$State = factor(dataset$State,
c('New York', 'California', 'Florida'),
c(1,2,3))
# Splitting The DataSet into Training Set and Test Set
library(caTools)
set.seed(123)
split = ... | /Regression/Multiple Linear Regression/multiple_linear_regression.R | no_license | ritwik0706/ML-Playground | R | false | false | 1,148 | r |
# Importing Dataset
dataset = read.csv('50_Startups.csv')
# Encoding Categorical Data
dataset$State = factor(dataset$State,
c('New York', 'California', 'Florida'),
c(1,2,3))
# Splitting The DataSet into Training Set and Test Set
library(caTools)
set.seed(123)
split = ... |
#!/usr/bin/Rscript
# Radar interpretation
library(tidyverse)
library(stringr)
library(gtools)
library(raster)
library(geosphere)
library(RCurl)
setwd("/mnt/R")
source("../config.r")
#02 = Melbourne
#49 = Yarrawonda
rad_tab=data.frame(rad=c("02","49"),time=c(6,10))
this_rad="02"
ss_rad = rad_tab[rad_tab$rad==this_rad... | /radar_1.r | permissive | ozjimbob/aaqfx-render | R | false | false | 6,917 | r | #!/usr/bin/Rscript
# Radar interpretation
library(tidyverse)
library(stringr)
library(gtools)
library(raster)
library(geosphere)
library(RCurl)
setwd("/mnt/R")
source("../config.r")
#02 = Melbourne
#49 = Yarrawonda
rad_tab=data.frame(rad=c("02","49"),time=c(6,10))
this_rad="02"
ss_rad = rad_tab[rad_tab$rad==this_rad... |
context("o3 annual 4th highest")
multi_id <- readRDS("daily_averages.rds")
multi_id$valid_max8hr <- TRUE
multi_id$flag_max8hr_incomplete <- FALSE
one_id <- multi_id[multi_id$id == "a", ]
test_one <- o3_ann_4th_highest(one_id, dt = "dates", val = "val")
test_mult <- o3_ann_4th_highest(multi_id, dt = "dates", val = "va... | /tests/testthat/test-o3_ann_4th_highest.R | permissive | paulroberts68/rcaaqs | R | false | false | 2,622 | r | context("o3 annual 4th highest")
multi_id <- readRDS("daily_averages.rds")
multi_id$valid_max8hr <- TRUE
multi_id$flag_max8hr_incomplete <- FALSE
one_id <- multi_id[multi_id$id == "a", ]
test_one <- o3_ann_4th_highest(one_id, dt = "dates", val = "val")
test_mult <- o3_ann_4th_highest(multi_id, dt = "dates", val = "va... |
%% File Name: personfit.stat.Rd
%% File Version: 0.24
\name{personfit.stat}
\alias{personfit.stat}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Person Fit Statistics for the Rasch Model
}
\description{
This function collects some person fit statistics
for the Rasch model (Karabatsos, 2003; Me... | /man/personfit.stat.Rd | no_license | rosefu79/sirt | R | false | false | 3,787 | rd | %% File Name: personfit.stat.Rd
%% File Version: 0.24
\name{personfit.stat}
\alias{personfit.stat}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Person Fit Statistics for the Rasch Model
}
\description{
This function collects some person fit statistics
for the Rasch model (Karabatsos, 2003; Me... |
# sign up:
# https://coinmarketcap.com/api/
# rate/call limits:
# https://pro.coinmarketcap.com/api/features
# sign in:
# https://pro.coinmarketcap.com/account/
# documentation
# https://coinmarketcap.com/api/documentation/v1/
# *******************************************************************************************... | /coinmarketcapAPI.R | no_license | julia-tache/coinmarketcap | R | false | false | 10,187 | r | # sign up:
# https://coinmarketcap.com/api/
# rate/call limits:
# https://pro.coinmarketcap.com/api/features
# sign in:
# https://pro.coinmarketcap.com/account/
# documentation
# https://coinmarketcap.com/api/documentation/v1/
# *******************************************************************************************... |
# ROH GWAS. This script runs a modified GWAS which tests an
# effect of ROH status on annual survival at every SNP, controlling
# for a range of other variables.
# Needs to be run on a cluster, every model takes appr. 40 sec to run,
# 417K models overall.
library(lme4)
library(tidyverse)
library(broom.mixed)
library(s... | /6_alt_gwas_annual_survival_bothA_sep.R | no_license | mastoffel/sheep_ID | R | false | false | 7,431 | r | # ROH GWAS. This script runs a modified GWAS which tests an
# effect of ROH status on annual survival at every SNP, controlling
# for a range of other variables.
# Needs to be run on a cluster, every model takes appr. 40 sec to run,
# 417K models overall.
library(lme4)
library(tidyverse)
library(broom.mixed)
library(s... |
# Import libraries
#install.packages("tidyverse")
library(tidyverse)
# Import data from CSV
charGifts <- read.csv("./Gantt_CharGift_Char_Data.csv")
head(charGifts)
stdGifts <- read.csv("./Gantt_CharGift_Std_Data.csv")
head(stdGifts)
# Change column names
cols <- c("Character", "Best Gifts", "Image")
col... | /Gantt_CharGiftTable_Script.R | no_license | mnandrews24/stardew-valley-connections | R | false | false | 674 | r | # Import libraries
#install.packages("tidyverse")
library(tidyverse)
# Import data from CSV
charGifts <- read.csv("./Gantt_CharGift_Char_Data.csv")
head(charGifts)
stdGifts <- read.csv("./Gantt_CharGift_Std_Data.csv")
head(stdGifts)
# Change column names
cols <- c("Character", "Best Gifts", "Image")
col... |
# US市場で持っている銘柄のリスク管理プログラム
# ポートフォリオ全体でのリスクと、リターン、
# 銘柄ごとのリスクとリターン
# パフォーマンス分析
# の3つをトラックできるようにしたい
setwd("/Users/popopopo/myWork/stock_info/R_analysis")
library(fPortfolio)
library(fImport)
# Yahoo!からデータを取り込む
# 取得銘柄ティッカー
# 今持っている銘柄は
# AAPL : 5
# AMZN : 2
# CSCO : 10
# FXI : 40
# Adj. Close : Close price adjusted for... | /R_analysis/us_portfolio_analysis.R | no_license | stubz/stock_info | R | false | false | 1,763 | r | # US市場で持っている銘柄のリスク管理プログラム
# ポートフォリオ全体でのリスクと、リターン、
# 銘柄ごとのリスクとリターン
# パフォーマンス分析
# の3つをトラックできるようにしたい
setwd("/Users/popopopo/myWork/stock_info/R_analysis")
library(fPortfolio)
library(fImport)
# Yahoo!からデータを取り込む
# 取得銘柄ティッカー
# 今持っている銘柄は
# AAPL : 5
# AMZN : 2
# CSCO : 10
# FXI : 40
# Adj. Close : Close price adjusted for... |
\name{codev}
\alias{codev}
\title{ Calcola la codevianza }
\description{
Questa funzione calcola la codevianza come somma dei prodotti degli scarti dalla media
}
\usage{
codev(x,y)
}
\arguments{
\item{x}{ vettore numerico di dimensione \emph{n} }
\item{y}{ vettore numerico di dimensione \emp... | /man/codev.Rd | no_license | cran/sigma2tools | R | false | false | 877 | rd | \name{codev}
\alias{codev}
\title{ Calcola la codevianza }
\description{
Questa funzione calcola la codevianza come somma dei prodotti degli scarti dalla media
}
\usage{
codev(x,y)
}
\arguments{
\item{x}{ vettore numerico di dimensione \emph{n} }
\item{y}{ vettore numerico di dimensione \emp... |
## Basic R coding and usage
## 30 january 2018
## ALS
library(ggplot2)
#using the assignment operator
x <- 5 #preferred
print(x)
y = 4 #legal but not used except in function
y= y +1.1
y <- y+1
plantHeight <- 5.5
#--------------------------------------------------{end class}
# The combine function
z <- c(3,7,7,10) ... | /BasicCoding.R | no_license | anyasteinhart9898/BIOL-381 | R | false | false | 6,844 | r | ## Basic R coding and usage
## 30 january 2018
## ALS
library(ggplot2)
#using the assignment operator
x <- 5 #preferred
print(x)
y = 4 #legal but not used except in function
y= y +1.1
y <- y+1
plantHeight <- 5.5
#--------------------------------------------------{end class}
# The combine function
z <- c(3,7,7,10) ... |
## Getting full dataset
## first placed unzipped data source file in current directory
data_full <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data_full$Date <- as.Date(data_full$Da... | /plot4.R | no_license | devendramehra/datasciencecoursera | R | false | false | 1,374 | r | ## Getting full dataset
## first placed unzipped data source file in current directory
data_full <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data_full$Date <- as.Date(data_full$Da... |
#나이브 베이즈 확률 이론
#동전을 100회 던졌을때 앞면이 나오는 횟수는?
#전통적 확률에서는 일어난 횟수/전체시도횟수로 계산
# =>경험적 확률 = 일정한 확률로 반복 실행
#만일 A라는 도시에 수지가 태어날 경우
#이 아이가 노벨상을 받을 확률은 얼마나 될까?
#이것을 경험적 확률로 계싼하려면
#이 아이를 여러명 살게하고
#그 중 몇명이 노벨상을 받는지 평가해보면된다.
#문제는 동일한 유전자,환경에 자란 아이를 만들수 있는가?
#이러한 상황에서 베이즈 확률론을 이용한다.
#일어나지 않을 일에 대한 확률을 불확실성이라는 개념으로 ... | /R1811/R13-베이즈확률이론.R | no_license | SonDog0/bigdata | R | false | false | 5,507 | r | #나이브 베이즈 확률 이론
#동전을 100회 던졌을때 앞면이 나오는 횟수는?
#전통적 확률에서는 일어난 횟수/전체시도횟수로 계산
# =>경험적 확률 = 일정한 확률로 반복 실행
#만일 A라는 도시에 수지가 태어날 경우
#이 아이가 노벨상을 받을 확률은 얼마나 될까?
#이것을 경험적 확률로 계싼하려면
#이 아이를 여러명 살게하고
#그 중 몇명이 노벨상을 받는지 평가해보면된다.
#문제는 동일한 유전자,환경에 자란 아이를 만들수 있는가?
#이러한 상황에서 베이즈 확률론을 이용한다.
#일어나지 않을 일에 대한 확률을 불확실성이라는 개념으로 ... |
context("radioGroupButtons")
library("shiny")
test_that("Default", {
choices <- c("A", "B", "C")
rtag <- radioGroupButtons(
inputId = "Id029",
label = "Label",
choices = choices
)
choicestag <- rtag$children[[3]]$children[[1]]$children[[1]]
expect_length(choicestag, length(choices))
check... | /tests/testthat/test-radioGroupButtons.R | permissive | jcheng5/shinyWidgets | R | false | false | 4,235 | r |
context("radioGroupButtons")
library("shiny")
test_that("Default", {
choices <- c("A", "B", "C")
rtag <- radioGroupButtons(
inputId = "Id029",
label = "Label",
choices = choices
)
choicestag <- rtag$children[[3]]$children[[1]]$children[[1]]
expect_length(choicestag, length(choices))
check... |
library(ggplot2)
library(tidyverse)
library(qmap)
library(hydroGOF)
library(EnvStats)
obs <- read_csv("./observed/CHIANG_RAI_TH_TH000048303_1951-2019.csv",
col_types = cols(
TAVG = col_double(),
TMIN = col_double(),
... | /qmap_prcp.R | no_license | chuan-khuna/bias_correction | R | false | false | 2,221 | r | library(ggplot2)
library(tidyverse)
library(qmap)
library(hydroGOF)
library(EnvStats)
obs <- read_csv("./observed/CHIANG_RAI_TH_TH000048303_1951-2019.csv",
col_types = cols(
TAVG = col_double(),
TMIN = col_double(),
... |
#-------------------
# Principal Coordinate Analysis
#-------------------
library(vegan)
library(rgl)
library(ape)
setwd("~/Desktop/diseaseScript_Final/pcoa/")
dat=read.csv("VSDandPVALS_disease.csv")
names(dat)
head(dat)
data=dat[,2:25]
row.names(data)=data$X
head(data)
#-------------Set experimental conditions
nam... | /PCoA_Ahya.R | no_license | rachelwright8/Ahya-White-Syndromes | R | false | false | 2,426 | r | #-------------------
# Principal Coordinate Analysis
#-------------------
library(vegan)
library(rgl)
library(ape)
setwd("~/Desktop/diseaseScript_Final/pcoa/")
dat=read.csv("VSDandPVALS_disease.csv")
names(dat)
head(dat)
data=dat[,2:25]
row.names(data)=data$X
head(data)
#-------------Set experimental conditions
nam... |
#' JuliaCall: Seamless Integration Between R and Julia.
#'
#' JuliaCall provides you with functions to call Julia functions and
#' to use Julia packages as easy as possible.
#'
#' @examples
#'
#' if (identical(Sys.getenv("AUTO_JULIA_INSTALL"), "true")) { ## The examples are quite time consuming
#'
#' ## Do i... | /R/JuliaCall.R | permissive | cran/JuliaCall | R | false | false | 1,594 | r | #' JuliaCall: Seamless Integration Between R and Julia.
#'
#' JuliaCall provides you with functions to call Julia functions and
#' to use Julia packages as easy as possible.
#'
#' @examples
#'
#' if (identical(Sys.getenv("AUTO_JULIA_INSTALL"), "true")) { ## The examples are quite time consuming
#'
#' ## Do i... |
#' Vernacular name search
#'
#' Search for taxa using vernacular names
#'
#' @param name a vernacular name
#' @param exact approximate or exact match?
#' @export
#' @return a data frame of results or NA
#' @examples
#' \dontrun{
#' vernacular("pimenta", exact = TRUE)
#' vernacular("pimenta", exact = FALSE)
#' }
vern... | /flora/R/vernacular.R | no_license | ingted/R-Examples | R | false | false | 828 | r | #' Vernacular name search
#'
#' Search for taxa using vernacular names
#'
#' @param name a vernacular name
#' @param exact approximate or exact match?
#' @export
#' @return a data frame of results or NA
#' @examples
#' \dontrun{
#' vernacular("pimenta", exact = TRUE)
#' vernacular("pimenta", exact = FALSE)
#' }
vern... |
# libraries, global functions and global values are handled in "global.R"
# For the original (non-shiny) code see https://doi.org/10.5281/zenodo.3727255
# where it may be easier to follow without the reactive wrappers
# Define server logic
server <- function(input, output, session) {
# define the reset button
o... | /server.R | no_license | DrRoad/covid-19_shiny | R | false | false | 43,660 | r | # libraries, global functions and global values are handled in "global.R"
# For the original (non-shiny) code see https://doi.org/10.5281/zenodo.3727255
# where it may be easier to follow without the reactive wrappers
# Define server logic
server <- function(input, output, session) {
# define the reset button
o... |
setwd("../Downloads/")
d=read.csv("predOutcome.txt",header=F)
##########################viz#########################
tiss.lbl=names(table(d[,2]))
barplot(height=table(d[,2]),names.arg =tiss.lbl,ylim=c(0,1500)) # overview across all patients
##########################cohort##########################
allbarcode=NULL
allp... | /postprocessing/vgg/patchClassification.r | no_license | cshukai/tcga_colorectal_histology_images | R | false | false | 655 | r | setwd("../Downloads/")
d=read.csv("predOutcome.txt",header=F)
##########################viz#########################
tiss.lbl=names(table(d[,2]))
barplot(height=table(d[,2]),names.arg =tiss.lbl,ylim=c(0,1500)) # overview across all patients
##########################cohort##########################
allbarcode=NULL
allp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{week7_SleepDeprivationExpt}
\alias{week7_SleepDeprivationExpt}
\title{Light at Night for Mice}
\format{An object of class \code{data.frame} with 21 rows and 2 columns.}
\usage{
week7_SleepDeprivationExpt
}
\descrip... | /man/week7_SleepDeprivationExpt.Rd | no_license | l-inda/FutureLearnData | R | false | true | 521 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{week7_SleepDeprivationExpt}
\alias{week7_SleepDeprivationExpt}
\title{Light at Night for Mice}
\format{An object of class \code{data.frame} with 21 rows and 2 columns.}
\usage{
week7_SleepDeprivationExpt
}
\descrip... |
#############################################################################
#
# XLConnect
# Copyright (C) 2010-2021 Mirai Solutions GmbH
#
# 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... | /demo/writeNamedRegion.R | no_license | miraisolutions/xlconnect | R | false | false | 2,182 | r | #############################################################################
#
# XLConnect
# Copyright (C) 2010-2021 Mirai Solutions GmbH
#
# 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... |
# viz_eigenangles_batch_vs_all<-function(...){
# list(...) %>% map(~.$batch_vs_all) %>% transpose -> angles
# angles.df<-data.frame(
# cosinus=angles %>% unlist %>% cospi,
# sinus=angles %>% unlist %>% sinpi,
# method=angles %>% map(imap %>% partial(...=,~rep(..2,each=length(..1)))) %>% unlist %>% facto... | /R/viz_angles.R | no_license | gheger11/eigenangles | R | false | false | 1,652 | r | # viz_eigenangles_batch_vs_all<-function(...){
# list(...) %>% map(~.$batch_vs_all) %>% transpose -> angles
# angles.df<-data.frame(
# cosinus=angles %>% unlist %>% cospi,
# sinus=angles %>% unlist %>% sinpi,
# method=angles %>% map(imap %>% partial(...=,~rep(..2,each=length(..1)))) %>% unlist %>% facto... |
/2. SECOND YEAR/Statistical Software/R/Scripts classes /Clase10/Rfunction_fourGraphs.R | no_license | laurajuliamelis/BachelorDegree_Statistics | R | false | false | 991 | r |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.