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 |
|---|---|---|---|---|---|---|---|---|---|
.libPaths("D:/Copy/R/Win-library/3.1")
library(RSQLite)
con <- dbConnect(SQLite(), "Boggler.sqlite")
# Depending on mode (via RScript or via interactive sessions),
# get the 16 letters from the Boggle game
if(length(commandArgs(TRUE))==1) {
bog.letters <- strsplit(paste(commandArgs(TRUE)[1],collapse=""),"")[[1]]
} ... | /3 - Boggler.R | no_license | arturochian/Boggler | R | false | false | 1,651 | r | .libPaths("D:/Copy/R/Win-library/3.1")
library(RSQLite)
con <- dbConnect(SQLite(), "Boggler.sqlite")
# Depending on mode (via RScript or via interactive sessions),
# get the 16 letters from the Boggle game
if(length(commandArgs(TRUE))==1) {
bog.letters <- strsplit(paste(commandArgs(TRUE)[1],collapse=""),"")[[1]]
} ... |
library("BSgenome.Hsapiens.UCSC.hg19", character.only = T)
library(MutationalPatterns)
library(reshape2)
library(gridExtra)
library(dplyr)
library(ggplot2)
library(biomaRt)
library(rtracklayer)
library(optparse)
ref_genome = "BSgenome.Hsapiens.UCSC.hg19"
###Parse command line arguments
option_list = list(
make_opti... | /R/mutationalpatterns_analysis.R | permissive | FreekManders/Denovo_SNV_Analysis | R | false | false | 11,145 | r | library("BSgenome.Hsapiens.UCSC.hg19", character.only = T)
library(MutationalPatterns)
library(reshape2)
library(gridExtra)
library(dplyr)
library(ggplot2)
library(biomaRt)
library(rtracklayer)
library(optparse)
ref_genome = "BSgenome.Hsapiens.UCSC.hg19"
###Parse command line arguments
option_list = list(
make_opti... |
#Compound data structures
#Vectors
#Creating vectors with c function
a=c(12,22,23,34,35)
a
class(a)
b=c("Dog","Cat","Rat")
b
class(b)
x=c(12,22,23,"Man","Car")
x #This is called the coercion
#logical < integer < numeric < complex < character (This is the order)
class(x)
y=c(TRUE,FALSE,12)
y
class(... | /Fundamentals 02 (Compound Data Structures).R | permissive | ranmuni345/My-R-Projects | R | false | false | 8,463 | r | #Compound data structures
#Vectors
#Creating vectors with c function
a=c(12,22,23,34,35)
a
class(a)
b=c("Dog","Cat","Rat")
b
class(b)
x=c(12,22,23,"Man","Car")
x #This is called the coercion
#logical < integer < numeric < complex < character (This is the order)
class(x)
y=c(TRUE,FALSE,12)
y
class(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_samples.R
\name{compute_sample_sirene}
\alias{compute_sample_sirene}
\title{Compute sample sirene}
\usage{
compute_sample_sirene(db)
}
\arguments{
\item{db}{name of the database}
}
\value{
a table in the database
}
\description{
Compu... | /man/compute_sample_sirene.Rd | no_license | SGMAP-AGD/opensignauxfaibles | R | false | true | 421 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_samples.R
\name{compute_sample_sirene}
\alias{compute_sample_sirene}
\title{Compute sample sirene}
\usage{
compute_sample_sirene(db)
}
\arguments{
\item{db}{name of the database}
}
\value{
a table in the database
}
\description{
Compu... |
\name{wiki4HE}
\alias{wiki4HE}
\docType{data}
\title{
wiki4HE dataset}
\description{
Survey on university faculty perceptions and practices of using Wikipedia as a teaching resource.
}
\usage{data(wiki4HE)}
\format{
A data.frame with 913 rows on 53 variables.
}
\details{
The dataset contains socio-demograp... | /man/wiki4HE.Rd | no_license | cran/datasetsICR | R | false | false | 1,818 | rd | \name{wiki4HE}
\alias{wiki4HE}
\docType{data}
\title{
wiki4HE dataset}
\description{
Survey on university faculty perceptions and practices of using Wikipedia as a teaching resource.
}
\usage{data(wiki4HE)}
\format{
A data.frame with 913 rows on 53 variables.
}
\details{
The dataset contains socio-demograp... |
create_meta_query <- function(table_id, lang) {
opt <- list("table" = table_id, "lang" = lang, "format" = "JSON")
json <- jsonlite::toJSON(opt, auto_unbox = TRUE)
return(json)
}
create_data_query <- function(x) {
v <- vector(mode = "list", length = length(x))
for (i in seq_along(v)) {
v[[i]] <- list(
... | /R/utils-api.R | permissive | akselthomsen/statbank | R | false | false | 1,130 | r |
create_meta_query <- function(table_id, lang) {
opt <- list("table" = table_id, "lang" = lang, "format" = "JSON")
json <- jsonlite::toJSON(opt, auto_unbox = TRUE)
return(json)
}
create_data_query <- function(x) {
v <- vector(mode = "list", length = length(x))
for (i in seq_along(v)) {
v[[i]] <- list(
... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252171733e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615827905-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 361 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252171733e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
\name{fetchSCAN}
\alias{fetchSCAN}
\alias{SCAN_sensor_metadata}
\title{Fetch SCAN Data}
\description{Query soil/climate data from USDA-NRCS SCAN Stations (experimental)}
\usage{
# get SCAN data
fetchSCAN(site.code, year, report='SCAN', req=NULL)
# get SCAN station metadata
SCAN_sensor_metadata(site.code)}
... | /man/fetchSCAN.Rd | no_license | HONG1992/soilDB | R | false | false | 1,153 | rd | \name{fetchSCAN}
\alias{fetchSCAN}
\alias{SCAN_sensor_metadata}
\title{Fetch SCAN Data}
\description{Query soil/climate data from USDA-NRCS SCAN Stations (experimental)}
\usage{
# get SCAN data
fetchSCAN(site.code, year, report='SCAN', req=NULL)
# get SCAN station metadata
SCAN_sensor_metadata(site.code)}
... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/import.R
\name{df2genind}
\alias{df2genind}
\title{Convert a data.frame of allele data to a genind object.}
\usage{
df2genind(X, sep = NULL, ncode = NULL, ind.names = NULL,
loc.names = NULL, pop = NULL, NA.char = "", ploidy = 2,
t... | /man/df2genind.Rd | no_license | hute37/adegenet | R | false | false | 3,235 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/import.R
\name{df2genind}
\alias{df2genind}
\title{Convert a data.frame of allele data to a genind object.}
\usage{
df2genind(X, sep = NULL, ncode = NULL, ind.names = NULL,
loc.names = NULL, pop = NULL, NA.char = "", ploidy = 2,
t... |
## The first function takes a matrix input and converts
## it to a special list, while the second uses that list
## to either compute the inverse of the matrix, or to pull
## said inverse from a stored cache in order to save computation
## time.
## Both of these were written using the 'makeVector' and 'cachemean'
## f... | /cachematrix.R | no_license | dhochnadel/ProgrammingAssignment2 | R | false | false | 1,534 | r | ## The first function takes a matrix input and converts
## it to a special list, while the second uses that list
## to either compute the inverse of the matrix, or to pull
## said inverse from a stored cache in order to save computation
## time.
## Both of these were written using the 'makeVector' and 'cachemean'
## f... |
#####################################################################################################
#
#
# Script de création des résultats de comparaison entre R_webexpo / R_JAGS et CSHARP
#
#
#
###################################################################################################
library(ggplot2)
###... | /Revalidation/test/test.R | no_license | lhimp/scripts | R | false | false | 16,813 | r | #####################################################################################################
#
#
# Script de création des résultats de comparaison entre R_webexpo / R_JAGS et CSHARP
#
#
#
###################################################################################################
library(ggplot2)
###... |
#Import the Data
getwd()
setwd("C:\\Users\\James\\R Programming A- Z")
mov <- read.csv("Section6-Homework-Data.csv")
#Data Exploration
head(mov) #top rows
summary(mov) #column summaries
str(mov) #structure of the dataset
#Activate GGPlot2
#install.packages("ggplot2")
library(ggplot2)
#{Offtopic} This I... | /Section6-Homework-FillInTheBlanks_Revised.R | no_license | DinaraZeynalova/ogurluq | R | false | false | 3,559 | r | #Import the Data
getwd()
setwd("C:\\Users\\James\\R Programming A- Z")
mov <- read.csv("Section6-Homework-Data.csv")
#Data Exploration
head(mov) #top rows
summary(mov) #column summaries
str(mov) #structure of the dataset
#Activate GGPlot2
#install.packages("ggplot2")
library(ggplot2)
#{Offtopic} This I... |
setwd("./Documents/coursera/eda")
df <- read.table("household_power_consumption.txt",
sep = ";",
header = TRUE,
na = "?",
colClasses=c("character", "character", rep("numeric",7)))
df$Time <- strptime(paste(df$Date, df$Time), "%d/%m/%Y %H:%M:%S")
df... | /plot2.R | no_license | yxiaoecon/ExData_Plotting1 | R | false | false | 665 | r | setwd("./Documents/coursera/eda")
df <- read.table("household_power_consumption.txt",
sep = ";",
header = TRUE,
na = "?",
colClasses=c("character", "character", rep("numeric",7)))
df$Time <- strptime(paste(df$Date, df$Time), "%d/%m/%Y %H:%M:%S")
df... |
library(shiny)
# Define UI for app that draws a histogram ----
ui <- fluidPage(
# App title ----
titlePanel("Hello Shiny!"),
# Sidebar layout with input and output definitions ----
sidebarLayout(
# Sidebar panel for inputs ----
sidebarPanel(
# Input: Slider for the number of bin... | /app.R | no_license | shriharsha05/Rshiny-experiments | R | false | false | 1,405 | r | library(shiny)
# Define UI for app that draws a histogram ----
ui <- fluidPage(
# App title ----
titlePanel("Hello Shiny!"),
# Sidebar layout with input and output definitions ----
sidebarLayout(
# Sidebar panel for inputs ----
sidebarPanel(
# Input: Slider for the number of bin... |
\name{read.starbeast}
\alias{read.starbeast}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
this function reads in the results of a *BEAST phylogenetic analysis}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
read.starbeast(beast.xml, combinedfiled... | /man/read.starbeast.Rd | no_license | fmichonneau/starbeastPPS | R | false | false | 3,013 | rd | \name{read.starbeast}
\alias{read.starbeast}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
this function reads in the results of a *BEAST phylogenetic analysis}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
read.starbeast(beast.xml, combinedfiled... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get.cullingtime.R
\name{get.cullingtime}
\alias{get.cullingtime}
\title{Derive time of culling}
\usage{
get.cullingtime(
population,
database = NULL,
gen = NULL,
cohorts = NULL,
use.id = FALSE
)
}
\arguments{
\item{po... | /man/get.cullingtime.Rd | no_license | cran/MoBPS | R | false | true | 895 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get.cullingtime.R
\name{get.cullingtime}
\alias{get.cullingtime}
\title{Derive time of culling}
\usage{
get.cullingtime(
population,
database = NULL,
gen = NULL,
cohorts = NULL,
use.id = FALSE
)
}
\arguments{
\item{po... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3control_operations.R
\name{s3control_list_jobs}
\alias{s3control_list_jobs}
\title{Lists current Amazon S3 Batch Operations jobs and jobs that have ended
within the last 30 days for the AWS account making the request}
\usage{
s3control_list... | /cran/paws.storage/man/s3control_list_jobs.Rd | permissive | jcheng5/paws | R | false | true | 1,809 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3control_operations.R
\name{s3control_list_jobs}
\alias{s3control_list_jobs}
\title{Lists current Amazon S3 Batch Operations jobs and jobs that have ended
within the last 30 days for the AWS account making the request}
\usage{
s3control_list... |
## Map+Dens-ETbyField-WaterYear.R
source(file.path("code", "paths+packages.R"))
# lema and buffer
sf_lema <- sf::st_read(file.path("data", "SD6_outline.gpkg"))
sf_buff <- sf::st_read(file.path("data", "SD6-buffer_outline.gpkg"))
# field boundaries and attributes
sf_fields <- sf::st_read(file.path("data", "Fields_No... | /figures+tables/old_deprecated/Map+Dens-ETbyField-WaterYear.R | no_license | samzipper/SD-6_MapWaterConservation | R | false | false | 4,764 | r | ## Map+Dens-ETbyField-WaterYear.R
source(file.path("code", "paths+packages.R"))
# lema and buffer
sf_lema <- sf::st_read(file.path("data", "SD6_outline.gpkg"))
sf_buff <- sf::st_read(file.path("data", "SD6-buffer_outline.gpkg"))
# field boundaries and attributes
sf_fields <- sf::st_read(file.path("data", "Fields_No... |
###############################################################################
# R (http://r-project.org/) Market Class Model
#
# Copyright (c) 2015
# Gei Lin, Linnis
#
###############################################################################
.market <- new.env(parent=emptyenv())
#' class test for object suppo... | /R/Market.R | no_license | gmonaie/FinancialEvent | R | false | false | 17,809 | r | ###############################################################################
# R (http://r-project.org/) Market Class Model
#
# Copyright (c) 2015
# Gei Lin, Linnis
#
###############################################################################
.market <- new.env(parent=emptyenv())
#' class test for object suppo... |
#' Calculate quantile-weighted CRPS
#'
#' Get the quantile-weighted CRPS (continuous ranked probability score) for the
#' forecast, estimated by trapezoidal integration of its quantile decomposition.
#' Can be weighted or unweighted (default).
#'
#' @param fc A [valid time x quantile] matrix of probabilistic quantile
... | /R/evaluation_functions.R | permissive | mhdella/solarbenchmarks | R | false | false | 14,699 | r |
#' Calculate quantile-weighted CRPS
#'
#' Get the quantile-weighted CRPS (continuous ranked probability score) for the
#' forecast, estimated by trapezoidal integration of its quantile decomposition.
#' Can be weighted or unweighted (default).
#'
#' @param fc A [valid time x quantile] matrix of probabilistic quantile
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mm_data.R
\name{mm_data}
\alias{mm_data}
\title{Return the data types that may be used by metab_models using the
metab_model_interface.}
\usage{
mm_data(..., optional = "none")
}
\arguments{
\item{...}{column names to select, as passed to \c... | /man/mm_data.Rd | permissive | lsdeel/streamMetabolizer | R | false | true | 3,761 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mm_data.R
\name{mm_data}
\alias{mm_data}
\title{Return the data types that may be used by metab_models using the
metab_model_interface.}
\usage{
mm_data(..., optional = "none")
}
\arguments{
\item{...}{column names to select, as passed to \c... |
.plt.legend <-
function(colnms, horiz, stroke, fill, shape, usr) {
par(xpd=NA)
ll <- legend(0,0, legend=colnms, cex=.7, pt.cex=0.9,
horiz=TRUE, plot=FALSE) # get coordinates
if (horiz) {
ytop <- usr[3] - (1.25 * ll$rect$h)
axis.horiz <- usr[2] - usr[1]
lgnd.hhalf <- (ll$rect$w)... | /lessR/R/plt.zlegend.R | no_license | ingted/R-Examples | R | false | false | 1,344 | r | .plt.legend <-
function(colnms, horiz, stroke, fill, shape, usr) {
par(xpd=NA)
ll <- legend(0,0, legend=colnms, cex=.7, pt.cex=0.9,
horiz=TRUE, plot=FALSE) # get coordinates
if (horiz) {
ytop <- usr[3] - (1.25 * ll$rect$h)
axis.horiz <- usr[2] - usr[1]
lgnd.hhalf <- (ll$rect$w)... |
library(tidyverse)
library(rgeos)
library(scales)
library(rworldmap)
library(reshape2)
library(scatterpie)
library(RColorBrewer)
## Colored Mapping
## Dataset for countries' longitude and latitude
world <- map_data("world")
## Raw data variable 'countries' is separated by comma
Plotmap <- (Dataset) %>%
mutate(`Coun... | /mapping.R | no_license | AngelaaZhai/Visualization | R | false | false | 3,593 | r | library(tidyverse)
library(rgeos)
library(scales)
library(rworldmap)
library(reshape2)
library(scatterpie)
library(RColorBrewer)
## Colored Mapping
## Dataset for countries' longitude and latitude
world <- map_data("world")
## Raw data variable 'countries' is separated by comma
Plotmap <- (Dataset) %>%
mutate(`Coun... |
library(batchtools)
### Name: addProblem
### Title: Define Problems for Experiments
### Aliases: addProblem Problem removeProblems
### ** Examples
## Don't show:
batchtools:::example_push_temp(1)
## End(Don't show)
tmp = makeExperimentRegistry(file.dir = NA, make.default = FALSE)
addProblem("p1", fun = function(... | /data/genthat_extracted_code/batchtools/examples/addProblem.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 759 | r | library(batchtools)
### Name: addProblem
### Title: Define Problems for Experiments
### Aliases: addProblem Problem removeProblems
### ** Examples
## Don't show:
batchtools:::example_push_temp(1)
## End(Don't show)
tmp = makeExperimentRegistry(file.dir = NA, make.default = FALSE)
addProblem("p1", fun = function(... |
library(mvtnorm)
#data
m=8
Y<-matrix(ncol=m)
Y[1] <- read.table("http://www.stat.washington.edu/hoff/Book/Data/hwdata/school1.dat")
Y[2] <- read.table("http://www.stat.washington.edu/hoff/Book/Data/hwdata/school2.dat")
Y[3] <- read.table("http://www.stat.washington.edu/hoff/Book/Data/hwdata/school3.dat")
Y[4] <- read.t... | /Lab Assignments/10/Lab 10-Dai Li.R | no_license | simpletonpeach/Bayesian_Statistics | R | false | false | 3,839 | r | library(mvtnorm)
#data
m=8
Y<-matrix(ncol=m)
Y[1] <- read.table("http://www.stat.washington.edu/hoff/Book/Data/hwdata/school1.dat")
Y[2] <- read.table("http://www.stat.washington.edu/hoff/Book/Data/hwdata/school2.dat")
Y[3] <- read.table("http://www.stat.washington.edu/hoff/Book/Data/hwdata/school3.dat")
Y[4] <- read.t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_551}
\alias{movie_551}
\title{Pretty Woman}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0100405
}
\usage... | /man/movie_551.Rd | permissive | kjhealy/networkdata | R | false | true | 1,005 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_551}
\alias{movie_551}
\title{Pretty Woman}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0100405
}
\usage... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CFR_estimation.R
\name{EMforCFR}
\alias{EMforCFR}
\title{A function to estimate the relative case fatality ratio when reporting rates
are time-varying and deaths are lagged because of survival time.}
\usage{
EMforCFR(assumed.nu, alpha.start.v... | /man/EMforCFR.Rd | no_license | nickreich/coarseDataTools | R | false | true | 4,732 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CFR_estimation.R
\name{EMforCFR}
\alias{EMforCFR}
\title{A function to estimate the relative case fatality ratio when reporting rates
are time-varying and deaths are lagged because of survival time.}
\usage{
EMforCFR(assumed.nu, alpha.start.v... |
/Estimation/gumbel.R | no_license | SebastianGPedersen/masters-thesis | R | false | false | 481 | r | ||
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307393648e+77, 5.99966164527331e-304, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615780948-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 348 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307393648e+77, 5.99966164527331e-304, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... |
setwd("C:/Users/Hackstutz/Dropbox/Git/rc28_2014/")
library(foreign)
communities <- read.dta("C:/Users/Hackstutz/Dropbox/PX-Daten/kontextvariablen0.02.dta")
library(dplyr)
communities <- communities %.%
filter(Jahr %in% c(1971,1981,1995,2001,2005,2008)) %.%
mutate(employed=prim+sek+tert, #create some variables
... | /interactive/map_setup.r | no_license | hackstutz/rc28_2014 | R | false | false | 1,820 | r | setwd("C:/Users/Hackstutz/Dropbox/Git/rc28_2014/")
library(foreign)
communities <- read.dta("C:/Users/Hackstutz/Dropbox/PX-Daten/kontextvariablen0.02.dta")
library(dplyr)
communities <- communities %.%
filter(Jahr %in% c(1971,1981,1995,2001,2005,2008)) %.%
mutate(employed=prim+sek+tert, #create some variables
... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/timmaCategoryWeighted.R
\name{timmaCategoryWeighted}
\alias{timmaCategoryWeighted}
\title{Predicting drug sensitivity with multi-class drug-target interaction data using one.sided and weighted TIMMA model}
\usage{
timmaCategoryW... | /timma/man/timmaCategoryWeighted.Rd | no_license | akhikolla/InformationHouse | R | false | false | 1,387 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/timmaCategoryWeighted.R
\name{timmaCategoryWeighted}
\alias{timmaCategoryWeighted}
\title{Predicting drug sensitivity with multi-class drug-target interaction data using one.sided and weighted TIMMA model}
\usage{
timmaCategoryW... |
# BuildMap file: function that returns a plotly map
library(plotly)
library(stringr)
# BuildMap function: fill this in with a function that returns a map:
BuildMap <- function(data, map.var) {
l <- list(color = toRGB("white"), width = 2)
# specify some map projection/options
g <- list(scope = 'usa',
proj... | /exercise-3/scripts/buildMap.R | permissive | Alimcg2/m14-shiny | R | false | false | 836 | r | # BuildMap file: function that returns a plotly map
library(plotly)
library(stringr)
# BuildMap function: fill this in with a function that returns a map:
BuildMap <- function(data, map.var) {
l <- list(color = toRGB("white"), width = 2)
# specify some map projection/options
g <- list(scope = 'usa',
proj... |
require("quantmod");require("data.table")
RAW = Sys.Date()
daytoday = format(RAW,"%Y%m%d")
FILES = list.files("/Volumes/3TB/CBOE/ALL",full.names = TRUE)
# FILES = tail(FILES,1) # recent
# FILES= FILES[50] # Falling
# FILES= FILES[110] # Rising
# read in options
ops = readRDS(FILES)
# calculates the Synthetic Longs fo... | /SyntheticLongs.R | no_license | jgQuantScripts/SyntheticLongOptions | R | false | false | 6,885 | r | require("quantmod");require("data.table")
RAW = Sys.Date()
daytoday = format(RAW,"%Y%m%d")
FILES = list.files("/Volumes/3TB/CBOE/ALL",full.names = TRUE)
# FILES = tail(FILES,1) # recent
# FILES= FILES[50] # Falling
# FILES= FILES[110] # Rising
# read in options
ops = readRDS(FILES)
# calculates the Synthetic Longs fo... |
\name{anthelminthika}
\alias{anthelminthika}
\docType{data}
\title{
Anthelmintic Drugs
}
\description{
Effects of two drugs on number of worm eggs in rat feces
}
\usage{data("anthelminthika")}
\format{
A data frame with 40 observations on the following 4 variables.
\describe{
\item{\code{tier}}{rat id}
\ite... | /man/anthelminthika.Rd | no_license | thomaspruf/fiwidat | R | false | false | 762 | rd | \name{anthelminthika}
\alias{anthelminthika}
\docType{data}
\title{
Anthelmintic Drugs
}
\description{
Effects of two drugs on number of worm eggs in rat feces
}
\usage{data("anthelminthika")}
\format{
A data frame with 40 observations on the following 4 variables.
\describe{
\item{\code{tier}}{rat id}
\ite... |
is.wmppp <-
function (X) {
inherits(X, "wmppp")
}
| /dbmss/R/is.wmppp.R | no_license | albrizre/spatstat.revdep | R | false | false | 52 | r | is.wmppp <-
function (X) {
inherits(X, "wmppp")
}
|
install.packages("readxl")
install.packages("dplyr")
install.packages("stringr")
install.packages("openxlsx")
install.packages("gdata")
library(readxl)
library(dplyr)
library(stringr)
library(openxlsx)
library(gdata)
### download file with eurostat classification
download.file("https://ec.europa.eu/eurostat/docume... | /correspondence_NUTS_LAU_FUA.R | no_license | gabrimarconi/OJA-LMCI | R | false | false | 4,684 | r |
install.packages("readxl")
install.packages("dplyr")
install.packages("stringr")
install.packages("openxlsx")
install.packages("gdata")
library(readxl)
library(dplyr)
library(stringr)
library(openxlsx)
library(gdata)
### download file with eurostat classification
download.file("https://ec.europa.eu/eurostat/docume... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
# Invokes the SQL endpoint with password credentials
# The queries are intentionally invalid - the purpose is to demonstrate we don't log credentials even if the request fails
# Test framework is responsib... | /h2o-r/tests/testdir_misc/runit_import_sql_no_log.R | permissive | h2oai/h2o-3 | R | false | false | 1,135 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
# Invokes the SQL endpoint with password credentials
# The queries are intentionally invalid - the purpose is to demonstrate we don't log credentials even if the request fails
# Test framework is responsib... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_PR_site.R
\name{compute_PR_site}
\alias{compute_PR_site}
\title{Site wrapper for calculating recall and precision from IoU overlap for a NEON site.}
\usage{
compute_PR_site(site, algorithm = "Silva", threshold = 0.5, plot = FALSE,
s... | /man/compute_PR_site.Rd | no_license | weecology/TreeSegmentation | R | false | true | 764 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_PR_site.R
\name{compute_PR_site}
\alias{compute_PR_site}
\title{Site wrapper for calculating recall and precision from IoU overlap for a NEON site.}
\usage{
compute_PR_site(site, algorithm = "Silva", threshold = 0.5, plot = FALSE,
s... |
#' Decision Point
#'
#'
#' This Shiny app/gadget to select a decision point (cutoff) used
#' by binomial classification model.
#'
#' You can run the application by clicking the 'Run App' button above.
#' At present it requires a model.
#'
#' @param actual character; actual/observed class
#' @param preds numeric; pred... | /R/decisionpt.R | no_license | decisionpatterns/ml.tools | R | false | false | 2,075 | r | #' Decision Point
#'
#'
#' This Shiny app/gadget to select a decision point (cutoff) used
#' by binomial classification model.
#'
#' You can run the application by clicking the 'Run App' button above.
#' At present it requires a model.
#'
#' @param actual character; actual/observed class
#' @param preds numeric; pred... |
install.packages("caret",dependencies = TRUE)
install.packages("randomforest")
library(caret)
library(randomForest)
model=randomForest(iris$Species~.,data=iris,ntree=50)
print(model)
#importance of lower gini variable
print(importance(model))
pred=predict(model,iris[,-5])
pred
table(pred,iris$Species)
| /random forest.R | no_license | karthi-25/Tutorials-on-R-codes | R | false | false | 303 | r | install.packages("caret",dependencies = TRUE)
install.packages("randomforest")
library(caret)
library(randomForest)
model=randomForest(iris$Species~.,data=iris,ntree=50)
print(model)
#importance of lower gini variable
print(importance(model))
pred=predict(model,iris[,-5])
pred
table(pred,iris$Species)
|
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/urinary_tract.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.9,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/urinary_tract/urinary_trac... | /Model/EN/ReliefF/urinary_tract/urinary_tract_090.R | no_license | leon1003/QSMART | R | false | false | 373 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/urinary_tract.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.9,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/urinary_tract/urinary_trac... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_for_RGWAS.R
\name{manhattan}
\alias{manhattan}
\title{Draw manhattan plot}
\usage{
manhattan(input, sig.level = 0.05, method.thres = "BH", y.max = NULL,
cex.lab = 1, lwd.thres = 1, plot.col1 = c("dark blue",
"cornflowerblue"), c... | /man/manhattan.Rd | permissive | quanrd/RAINBOWR | R | false | true | 1,596 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_for_RGWAS.R
\name{manhattan}
\alias{manhattan}
\title{Draw manhattan plot}
\usage{
manhattan(input, sig.level = 0.05, method.thres = "BH", y.max = NULL,
cex.lab = 1, lwd.thres = 1, plot.col1 = c("dark blue",
"cornflowerblue"), c... |
#install.packages("neuralnet")
#install.packages("e1071")
library(neuralnet)
library(e1071)
library(glm2)
library(ggplot2)
library(shiny)
library(forecast)
library(e1071)
library(kernlab)
library(deepnet)
library(RSNNS)
library(neuralnet)
library(MASS)
library(Hmisc)
library(eegkit)
library(ee... | /server.R | no_license | abhishek-96/WorkloadAnalysis | R | false | false | 38,870 | r |
#install.packages("neuralnet")
#install.packages("e1071")
library(neuralnet)
library(e1071)
library(glm2)
library(ggplot2)
library(shiny)
library(forecast)
library(e1071)
library(kernlab)
library(deepnet)
library(RSNNS)
library(neuralnet)
library(MASS)
library(Hmisc)
library(eegkit)
library(ee... |
# NCBI Datasets API
#
# NCBI service to query and download biological sequence data across all domains of life from NCBI databases.
#
# The version of the OpenAPI document: v1alpha
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title V1alpha1TabularOutput
#' @description V1alpha1TabularOutput ... | /R/v1alpha1_tabular_output.R | no_license | zhang-ncbi/dataset_r_test | R | false | false | 1,834 | r | # NCBI Datasets API
#
# NCBI service to query and download biological sequence data across all domains of life from NCBI databases.
#
# The version of the OpenAPI document: v1alpha
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title V1alpha1TabularOutput
#' @description V1alpha1TabularOutput ... |
rm(list=ls())
library("gbcode")
n=10
V=1:n
netwDAG<-new("graphNEL", nodes=as.character(1:n), edgemode="directed")
Nodes<-nodes(netwDAG)
NX<-Nodes[1]
NY<-Nodes[length(Nodes)]
netwDAG <- addEdge("2", NX, netwDAG, 1)
netwDAG <- addEdge(NX, NY, netwDAG, 1)
netwDAG <- addEdge("8", "2", netwDAG, 1)
netwDAG <- addEdge("3", NX... | /inst/scripts/draft/gendataDAG.R | no_license | gbonte/D2C | R | false | false | 1,549 | r | rm(list=ls())
library("gbcode")
n=10
V=1:n
netwDAG<-new("graphNEL", nodes=as.character(1:n), edgemode="directed")
Nodes<-nodes(netwDAG)
NX<-Nodes[1]
NY<-Nodes[length(Nodes)]
netwDAG <- addEdge("2", NX, netwDAG, 1)
netwDAG <- addEdge(NX, NY, netwDAG, 1)
netwDAG <- addEdge("8", "2", netwDAG, 1)
netwDAG <- addEdge("3", NX... |
test_that("colsums_spaces() returns text not error", {
# Build a test table
#test_table <- matrix(c(51,43,22,NA,28,21,68,'',9),ncol=3,byrow=TRUE)
#colnames(test_table) <- c("High","Low","Middle")
#test_table <- as.tibble(test_table)
test_table = tibble::tibble(High = c(51,43,22), Medium = c(NA,28,21), L... | /tests/testthat/test-colsums_spaces.R | no_license | frankbmgmt/frank | R | false | false | 504 | r | test_that("colsums_spaces() returns text not error", {
# Build a test table
#test_table <- matrix(c(51,43,22,NA,28,21,68,'',9),ncol=3,byrow=TRUE)
#colnames(test_table) <- c("High","Low","Middle")
#test_table <- as.tibble(test_table)
test_table = tibble::tibble(High = c(51,43,22), Medium = c(NA,28,21), L... |
library(dplyr,quietly = TRUE, warn.conflicts = FALSE)
library(data.table,quietly = TRUE, warn.conflicts = FALSE)
library(ggplot2,quietly = TRUE, warn.conflicts = FALSE)
library(gridExtra,quietly = TRUE, warn.conflicts = FALSE)
args = commandArgs(trailingOnly=TRUE)
stat_source = args[1]
dir = args[2]
outdir = args[3]
p... | /scripts/aaFeatures.R | no_license | nadiabykova/breg-immunoseq | R | false | false | 4,360 | r | library(dplyr,quietly = TRUE, warn.conflicts = FALSE)
library(data.table,quietly = TRUE, warn.conflicts = FALSE)
library(ggplot2,quietly = TRUE, warn.conflicts = FALSE)
library(gridExtra,quietly = TRUE, warn.conflicts = FALSE)
args = commandArgs(trailingOnly=TRUE)
stat_source = args[1]
dir = args[2]
outdir = args[3]
p... |
library(sparklyr)
library(rsparkling)
library(dplyr)
library(h2o)
#spark_disconnect(sc)
sc <- spark_connect("local", version = "1.6.2")
mtcars_tbl <- copy_to(sc, mtcars, "mtcars", overwrite = TRUE)
#Now, let’s perform some simple transformations – we’ll
# Remove all cars with horsepower less than 100,
# Produce a colu... | /scripts/using H20_sparklinR.R | no_license | blewy/Mlearning_withSparklyR | R | false | false | 8,564 | r | library(sparklyr)
library(rsparkling)
library(dplyr)
library(h2o)
#spark_disconnect(sc)
sc <- spark_connect("local", version = "1.6.2")
mtcars_tbl <- copy_to(sc, mtcars, "mtcars", overwrite = TRUE)
#Now, let’s perform some simple transformations – we’ll
# Remove all cars with horsepower less than 100,
# Produce a colu... |
# Fit ETS model to austa in fitaus
fitaus <- ets(austa)
# Check residuals
checkresiduals(fitaus)
# Plot forecasts
autoplot(forecast(fitaus))
# Repeat for hyndsight data in fiths
fiths <- ets(hyndsight)
checkresiduals(fiths)
autoplot(forecast(fiths))
# Which model(s) fails test? (TRUE or FALSE)
fitausfail <- FALSE
f... | /forecasting/03 - exponential.smoothing/06 - ets.R | no_license | aliawaischeema/DataCamp | R | false | false | 697 | r | # Fit ETS model to austa in fitaus
fitaus <- ets(austa)
# Check residuals
checkresiduals(fitaus)
# Plot forecasts
autoplot(forecast(fitaus))
# Repeat for hyndsight data in fiths
fiths <- ets(hyndsight)
checkresiduals(fiths)
autoplot(forecast(fiths))
# Which model(s) fails test? (TRUE or FALSE)
fitausfail <- FALSE
f... |
#' \code{fitDrate} Fit state-space model to weighted drift dive record
#' @param data Data frame with dive data output from the \code{pDrift} function.
#' @param weight Select weighting variables to be used. Default is to use \code{weight} created by \code{pDrift}.
#' See example for how to specify other weighting
#' @... | /R/fitDrate.R | no_license | embiuw/drifteR | R | false | false | 10,334 | r | #' \code{fitDrate} Fit state-space model to weighted drift dive record
#' @param data Data frame with dive data output from the \code{pDrift} function.
#' @param weight Select weighting variables to be used. Default is to use \code{weight} created by \code{pDrift}.
#' See example for how to specify other weighting
#' @... |
# install.packages("shiny")
# install.packages("httr")
# install.packages("dplyr")
# install.packages("jsonlite")
# install.packages("DT")
library(shiny)
library(httr)
library(dplyr)
library(jsonlite)
library(DT)
library(eeptools)
# reads in data
url <- paste0("https://api.fantasydata.net/v3/nba/stats/JSON/PlayerSeaso... | /ui.R | no_license | jonah555/info201-NBA | R | false | false | 2,634 | r | # install.packages("shiny")
# install.packages("httr")
# install.packages("dplyr")
# install.packages("jsonlite")
# install.packages("DT")
library(shiny)
library(httr)
library(dplyr)
library(jsonlite)
library(DT)
library(eeptools)
# reads in data
url <- paste0("https://api.fantasydata.net/v3/nba/stats/JSON/PlayerSeaso... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SL.ksvm.R
\encoding{utf-8}
\name{SL.ksvm}
\alias{SL.ksvm}
\title{Wrapper for Kernlab's SVM algorithm}
\usage{
SL.ksvm(Y, X, newX, family, type = NULL, kernel = "rbfdot",
kpar = "automatic", scaled = T, C = 1, nu = 0.2, epsilon = 0.1,
cros... | /man/SL.ksvm.Rd | no_license | hilldrew/SuperLearner | R | false | true | 4,201 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SL.ksvm.R
\encoding{utf-8}
\name{SL.ksvm}
\alias{SL.ksvm}
\title{Wrapper for Kernlab's SVM algorithm}
\usage{
SL.ksvm(Y, X, newX, family, type = NULL, kernel = "rbfdot",
kpar = "automatic", scaled = T, C = 1, nu = 0.2, epsilon = 0.1,
cros... |
library(reshape2) # to melt and cast, from wide to long
library(ggplot2)
#Set working Directory
#path <- "C:/Users/javie/git/businessCycles/businessCycles/BusinessC_ExploreD/R"
path <- "C:/Users/javie/OneDrive - AUSTRAL/Investigaci?n - JGS/Penrosian version of Recessions and Comp Leapfroging/SMJ/R&R/Data"
setwd(... | /businessCycles/exploreData/qqplot2Draw.R | no_license | javiergarciasanchez/businessCycles | R | false | false | 1,582 | r | library(reshape2) # to melt and cast, from wide to long
library(ggplot2)
#Set working Directory
#path <- "C:/Users/javie/git/businessCycles/businessCycles/BusinessC_ExploreD/R"
path <- "C:/Users/javie/OneDrive - AUSTRAL/Investigaci?n - JGS/Penrosian version of Recessions and Comp Leapfroging/SMJ/R&R/Data"
setwd(... |
#' pkgOut for demonstration purpose of linking native routines
#' @docType package
#' @description A out-going package that exports a native routine
#' @author Jitao David Zhang <jitao_david.zhang@roche.com>
#' @useDynLib pkgOut, .registration=TRUE, .fixes="C_"
#' @name pkgOut
NULL
#' A dummy function exported for dem... | /pkgOut/R/pkgOut.R | no_license | Accio/demo-linking-native | R | false | false | 584 | r | #' pkgOut for demonstration purpose of linking native routines
#' @docType package
#' @description A out-going package that exports a native routine
#' @author Jitao David Zhang <jitao_david.zhang@roche.com>
#' @useDynLib pkgOut, .registration=TRUE, .fixes="C_"
#' @name pkgOut
NULL
#' A dummy function exported for dem... |
\name{palette.echogram}
\alias{palette.echogram}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Design color palettes for echograms
}
\description{
This function allows to design and visualise color palettes to be used in echograms.
}
\usage{
palette.echogram(Svthr, Svmax, col.sep = NULL, col.n... | /man/palette.echogram.Rd | no_license | hvillalo/echogram | R | false | false | 1,563 | rd | \name{palette.echogram}
\alias{palette.echogram}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Design color palettes for echograms
}
\description{
This function allows to design and visualise color palettes to be used in echograms.
}
\usage{
palette.echogram(Svthr, Svmax, col.sep = NULL, col.n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neptune_operations.R
\name{neptune_restore_db_cluster_from_snapshot}
\alias{neptune_restore_db_cluster_from_snapshot}
\title{Creates a new DB cluster from a DB snapshot or DB cluster snapshot}
\usage{
neptune_restore_db_cluster_from_snapshot(... | /cran/paws.database/man/neptune_restore_db_cluster_from_snapshot.Rd | permissive | paws-r/paws | R | false | true | 4,619 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neptune_operations.R
\name{neptune_restore_db_cluster_from_snapshot}
\alias{neptune_restore_db_cluster_from_snapshot}
\title{Creates a new DB cluster from a DB snapshot or DB cluster snapshot}
\usage{
neptune_restore_db_cluster_from_snapshot(... |
library(dplyr)
library(tidyverse)
library(ggplot2)
library(dslabs)
dat <- us_contagious_diseases %>%
filter(year == 1967 & disease=="Measles" & !is.na(population)) %>% mutate(rate = count / population * 10000 * 52 / weeks_reporting)
state <- dat$state
rate <- dat$count/(dat$population/10000)*(52/dat$weeks_reporting)... | /code_section5_assessment2.R | no_license | nissan/edx-harvardx-ph125.2x | R | false | false | 341 | r | library(dplyr)
library(tidyverse)
library(ggplot2)
library(dslabs)
dat <- us_contagious_diseases %>%
filter(year == 1967 & disease=="Measles" & !is.na(population)) %>% mutate(rate = count / population * 10000 * 52 / weeks_reporting)
state <- dat$state
rate <- dat$count/(dat$population/10000)*(52/dat$weeks_reporting)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/haplo_blocks.R
\name{haplo_blocks}
\alias{haplo_blocks}
\title{Determine haplotype blocks and haplotypes}
\usage{
haplo_blocks(gp, hap = 1, hap.unit = 1, sliding.window = FALSE, gap = 1,
LD.based = FALSE, ld.threshold = 0.9)
}
\arguments{
\... | /man/haplo_blocks.Rd | no_license | vincentgarin/mppGWAS | R | false | true | 3,305 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/haplo_blocks.R
\name{haplo_blocks}
\alias{haplo_blocks}
\title{Determine haplotype blocks and haplotypes}
\usage{
haplo_blocks(gp, hap = 1, hap.unit = 1, sliding.window = FALSE, gap = 1,
LD.based = FALSE, ld.threshold = 0.9)
}
\arguments{
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/plotAbundances.R
\docType{methods}
\name{plotAbundances}
\alias{plotAbundances}
\alias{plotAbundances,daFrame-method}
\title{Population frequencies across samples & clusters}
\usage{
plotAbundances(x, ...)
\S4method{plotAbun... | /man/plotAbundances.Rd | no_license | almutlue/CATALYST | R | false | true | 1,732 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/plotAbundances.R
\docType{methods}
\name{plotAbundances}
\alias{plotAbundances}
\alias{plotAbundances,daFrame-method}
\title{Population frequencies across samples & clusters}
\usage{
plotAbundances(x, ...)
\S4method{plotAbun... |
MRSAcTree <- function(morbiSet,
min_Blatt=1000){
X <- morbiSet@X
Kost <- morbiSet@Kost
tage <- morbiSet@tage
Result <- data.frame(Knoten=0, Vater=NA,Name="Stamm", Kosten=sum(Kost)/sum(tage), Tage=sum(tage),Offen=0)
Result$Name <- as.character(Result$Name)
Edge <- rep(0,length(Kost)... | /R/Reg_cTree.R | no_license | AaarrrRookie/GWR | R | false | false | 1,562 | r | MRSAcTree <- function(morbiSet,
min_Blatt=1000){
X <- morbiSet@X
Kost <- morbiSet@Kost
tage <- morbiSet@tage
Result <- data.frame(Knoten=0, Vater=NA,Name="Stamm", Kosten=sum(Kost)/sum(tage), Tage=sum(tage),Offen=0)
Result$Name <- as.character(Result$Name)
Edge <- rep(0,length(Kost)... |
/DesarrolloPreguntasForLoop.R | no_license | DanaeOKington/Tarea2_FOR_LOOP | R | false | false | 9,253 | r | ||
print.Bayesian.SGoF <-
function(x, ...){
cat("Call:\n")
print(x$call)
cat("\n")
cat("Parameters:","\n")
cat("alpha=",x$alpha,"\n")
cat("gamma=",x$gamma,"\n")
cat("P0=",x$P0,"\n")
cat("a0=",x$a0,"\n")
cat("b0=",x$b0,"\n")
cat("\n")
cat("Rejections:\n")
print(x$Rejections)
}
| /R/print.Bayesian.SGoF.R | no_license | cran/sgof | R | false | false | 292 | r | print.Bayesian.SGoF <-
function(x, ...){
cat("Call:\n")
print(x$call)
cat("\n")
cat("Parameters:","\n")
cat("alpha=",x$alpha,"\n")
cat("gamma=",x$gamma,"\n")
cat("P0=",x$P0,"\n")
cat("a0=",x$a0,"\n")
cat("b0=",x$b0,"\n")
cat("\n")
cat("Rejections:\n")
print(x$Rejections)
}
|
# Generate Data 6
options(stringsAsFactors = F, scipen = 999)
std <- function(x) sd(x)/sqrt(length(x))
pathData = "/home/XXXXX/data//Projet-SplicedVariants/"
n1_n2_treshold = 100
data_sp = data.frame()
for (species in c("Homo_sapiens","Drosophila_melanogaster")){
fpkm_cov = read.delim(paste(pathData,"/Analyses/",... | /pipelines/data generator/Data6_supp.R | no_license | FloBeni/2023-alternative_splicing | R | false | false | 3,996 | r | # Generate Data 6
options(stringsAsFactors = F, scipen = 999)
std <- function(x) sd(x)/sqrt(length(x))
pathData = "/home/XXXXX/data//Projet-SplicedVariants/"
n1_n2_treshold = 100
data_sp = data.frame()
for (species in c("Homo_sapiens","Drosophila_melanogaster")){
fpkm_cov = read.delim(paste(pathData,"/Analyses/",... |
#' Convert PROJ.4 Coordinate Reference System string to Well-known Text.
#'
#' The \code{arc.fromP4ToWkt} command converts a PROJ.4 coordinate
#' reference system (CRS) string to a well-known text (WKT) representation.
#' Well-known text is used by ArcGIS and other applications to robustly
#' describe a coordinate refe... | /src/package/R/arc.P4_WKT.R | permissive | hhkaos/r-bridge | R | false | false | 3,240 | r | #' Convert PROJ.4 Coordinate Reference System string to Well-known Text.
#'
#' The \code{arc.fromP4ToWkt} command converts a PROJ.4 coordinate
#' reference system (CRS) string to a well-known text (WKT) representation.
#' Well-known text is used by ArcGIS and other applications to robustly
#' describe a coordinate refe... |
###
# Create 1 or 2 more functions for Copula, look at summary and or print
# Create general class for "simulations" including all the sub classes
#
#
# Create summary for A-R
# Summary for Inverse sampling
# Christian can look into an "analysis" function, returning a 1page PDF with all results
# - Consider using ... | /R/PROJECTSINPROGRESS.R | no_license | Hoejrup/ACM | R | false | false | 435 | r |
###
# Create 1 or 2 more functions for Copula, look at summary and or print
# Create general class for "simulations" including all the sub classes
#
#
# Create summary for A-R
# Summary for Inverse sampling
# Christian can look into an "analysis" function, returning a 1page PDF with all results
# - Consider using ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{quicksight}
\alias{quicksight}
\title{Amazon QuickSight}
\usage{
quicksight(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.}
}
\description{
Amazon QuickSight API Refer... | /cran/paws/man/quicksight.Rd | permissive | TWarczak/paws | R | false | true | 13,346 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{quicksight}
\alias{quicksight}
\title{Amazon QuickSight}
\usage{
quicksight(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.}
}
\description{
Amazon QuickSight API Refer... |
## The goal is to obtain the inverse of a matrix.
## This assignment will have two steps.
## In the first step, a function is created that caches a matrix.
## In the second step, another function is created that caches the inverse of the above matrix.
## The First Step:
makeCacheMatrix <- function(x=matrix())... | /Week3 Assignment2.R | no_license | schakraborty123/R-Programming-Week-3 | R | false | false | 852 | r | ## The goal is to obtain the inverse of a matrix.
## This assignment will have two steps.
## In the first step, a function is created that caches a matrix.
## In the second step, another function is created that caches the inverse of the above matrix.
## The First Step:
makeCacheMatrix <- function(x=matrix())... |
## Process long format data table
library(lutz)
library(countrycode)
library(readxl)
library(reshape2)
library(lubridate)
library(dplyr)
library(ggplot2)
options(dplyr.summarise.inform = FALSE)
## change the default directories as needed
baseDir = "."
baseIPT = "."
baseAnalysis = "."
fileName = "DataSheet_longforma... | /processLongFormat.R | no_license | gonzalobravoargentina/P2P-templates | R | false | false | 6,882 | r | ## Process long format data table
library(lutz)
library(countrycode)
library(readxl)
library(reshape2)
library(lubridate)
library(dplyr)
library(ggplot2)
options(dplyr.summarise.inform = FALSE)
## change the default directories as needed
baseDir = "."
baseIPT = "."
baseAnalysis = "."
fileName = "DataSheet_longforma... |
args = commandArgs(TRUE)
# args[1] is the directory for observation files
# args[2] is the directory for simulation files
# args[2] is output directory of graphs
args1 = "obs_file/SEV_obs_flux.txt"
#args2 = "sim_file/Simu_dailyflux14001.txt"
#args3 = "sim_file"
args2 = "graphoutput/Simu_dailyflux001.txt"
args3 = "graph... | /ECOPAD_viz.R | no_license | eco-cgjung/teco_sev_viz | R | false | false | 4,138 | r | args = commandArgs(TRUE)
# args[1] is the directory for observation files
# args[2] is the directory for simulation files
# args[2] is output directory of graphs
args1 = "obs_file/SEV_obs_flux.txt"
#args2 = "sim_file/Simu_dailyflux14001.txt"
#args3 = "sim_file"
args2 = "graphoutput/Simu_dailyflux001.txt"
args3 = "graph... |
#these are summary plots of historic catch (not spatially)
source(paste(DIR$'General functions',"MakeBlankPlot.R",sep=""))
this_run<-"Base"
nboxes<-30
this_path<-paste(DIR$'Base',"ATLANTISmodels\\",sep="")
plotPath<-paste(DIR$"Figures","CatchHistories\\",sep="")
catchYears<-seq(1900,2014); ny<-length(catc... | /(8)Fishing/PFS_focusedCatchHistories.R | no_license | mcgregorv/AtlantisRscripts | R | false | false | 5,066 | r | #these are summary plots of historic catch (not spatially)
source(paste(DIR$'General functions',"MakeBlankPlot.R",sep=""))
this_run<-"Base"
nboxes<-30
this_path<-paste(DIR$'Base',"ATLANTISmodels\\",sep="")
plotPath<-paste(DIR$"Figures","CatchHistories\\",sep="")
catchYears<-seq(1900,2014); ny<-length(catc... |
### a ShinyApp to visually explore the effects of sensitivity, specificity, and prevalence
### on True positives, False positives, False negatives, and True negatives.
library(shiny)
library(ggplot2)
library(dplyr)
#######################################################
# formula to calculate confidence inte... | /ShinyApps/TestAccuracy/Archive/VisualizeSensitivityAndSpecificityShinyAppv7.2.R | no_license | NIHRDECncl/R-tools | R | false | false | 14,750 | r | ### a ShinyApp to visually explore the effects of sensitivity, specificity, and prevalence
### on True positives, False positives, False negatives, and True negatives.
library(shiny)
library(ggplot2)
library(dplyr)
#######################################################
# formula to calculate confidence inte... |
################################################################################
# Same as in bigstatsr
printf <- bigstatsr:::printf
message2 <- bigstatsr:::message2
warning2 <- bigstatsr:::warning2
stop2 <- bigstatsr:::stop2
CutBySize <- bigstatsr:::CutBySize
seq2 ... | /R/utils.R | no_license | guhjy/bigsnpr | R | false | false | 2,449 | r | ################################################################################
# Same as in bigstatsr
printf <- bigstatsr:::printf
message2 <- bigstatsr:::message2
warning2 <- bigstatsr:::warning2
stop2 <- bigstatsr:::stop2
CutBySize <- bigstatsr:::CutBySize
seq2 ... |
proprietary <- "agent,desc,count
buy,Assists in buying goods.,480
service,Do It Yourself type tasks,284
self-improve,Self Improvement/Help,183
school-work,Task related to school,158
contact,Email SMS or call,101
call,Makes a phone call via OS,97
email,Emails a contact via OS,60
calendar,Make an appointment,55
pay-bill-... | /src/r/analysis.r | permissive | plandes/todo-task | R | false | false | 1,535 | r | proprietary <- "agent,desc,count
buy,Assists in buying goods.,480
service,Do It Yourself type tasks,284
self-improve,Self Improvement/Help,183
school-work,Task related to school,158
contact,Email SMS or call,101
call,Makes a phone call via OS,97
email,Emails a contact via OS,60
calendar,Make an appointment,55
pay-bill-... |
if(!file.exists("exdata-data-household_power_consumption.zip")) {
temp <- tempfile()
download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp)
file <- unzip(temp)
unlink(temp)
}
electric <- read.table(file, header=T, sep=";")
electric$Date <- as.Date(electric$Dat... | /plot3.R | no_license | Daniel-Andrews/ExData_Plotting1 | R | false | false | 1,390 | r | if(!file.exists("exdata-data-household_power_consumption.zip")) {
temp <- tempfile()
download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp)
file <- unzip(temp)
unlink(temp)
}
electric <- read.table(file, header=T, sep=";")
electric$Date <- as.Date(electric$Dat... |
# Read the file
df<-read.table('household_power_consumption.txt',header=T,sep=';')
# Calculate the subset data limits
m1<-min(which(df$Date=='1/2/2007'))
m2<-max(which(df$Date=='2/2/2007'))
#Subset data
df2<-df[m1:m2,]
df2[df2=='?']<-NA
df2<- df2[complete.cases(df2),]
# Covert date and time
df2$Date<-paste(df2$Date... | /plot2.R | no_license | scatterbrain333/ExData_Plotting1 | R | false | false | 516 | r | # Read the file
df<-read.table('household_power_consumption.txt',header=T,sep=';')
# Calculate the subset data limits
m1<-min(which(df$Date=='1/2/2007'))
m2<-max(which(df$Date=='2/2/2007'))
#Subset data
df2<-df[m1:m2,]
df2[df2=='?']<-NA
df2<- df2[complete.cases(df2),]
# Covert date and time
df2$Date<-paste(df2$Date... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/conn_cog_df.R
\name{print.dfCogConn}
\alias{print.dfCogConn}
\title{Print a dfCogConn object}
\usage{
\method{print}{dfCogConn}(x, ...)
}
\arguments{
\item{x}{a "dfCogConn" object}
\item{\ldots}{further arguments passed to or from other meth... | /man/print.dfCogConn.Rd | permissive | hafen/trelliscope | R | false | true | 368 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/conn_cog_df.R
\name{print.dfCogConn}
\alias{print.dfCogConn}
\title{Print a dfCogConn object}
\usage{
\method{print}{dfCogConn}(x, ...)
}
\arguments{
\item{x}{a "dfCogConn" object}
\item{\ldots}{further arguments passed to or from other meth... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discovr_data.R
\docType{data}
\name{gelman_2009}
\alias{gelman_2009}
\title{Gelman & Weakliem (2009) data}
\format{
A tibble with 548 rows and 3 variables.
}
\source{
\href{https://www.discoveringstatistics.com/books/discovering-statistics-us... | /man/gelman_2009.Rd | no_license | poldrack/discovr | R | false | true | 2,096 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discovr_data.R
\docType{data}
\name{gelman_2009}
\alias{gelman_2009}
\title{Gelman & Weakliem (2009) data}
\format{
A tibble with 548 rows and 3 variables.
}
\source{
\href{https://www.discoveringstatistics.com/books/discovering-statistics-us... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test-or.R
\name{test_or}
\alias{test_or}
\title{Test if one of the given sct parts are correct.}
\usage{
test_or(..., incorrect_msg = NULL, choose_feedback = 1, subs = TRUE,
env = parent.frame())
}
\arguments{
\item{...}{one of these code b... | /man/test_or.Rd | no_license | selcukfidan47/testwhat | R | false | true | 973 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test-or.R
\name{test_or}
\alias{test_or}
\title{Test if one of the given sct parts are correct.}
\usage{
test_or(..., incorrect_msg = NULL, choose_feedback = 1, subs = TRUE,
env = parent.frame())
}
\arguments{
\item{...}{one of these code b... |
#Run the Simulator
source("anticoagulation_therapy_simulator.R")
#Read in the avatars table
avatars = read.table("avatars", sep="\t", header=T)
#Distribute the job
av_per = 5 # Number of avatars per file (per run)
block = av_per - 1
av_index = 1
to = av_index*av_per
from = to - block
av_sub = avatars[from:to,]
#... | /run_the_simulator.R | no_license | kravvaz/PGxCATraining | R | false | false | 901 | r | #Run the Simulator
source("anticoagulation_therapy_simulator.R")
#Read in the avatars table
avatars = read.table("avatars", sep="\t", header=T)
#Distribute the job
av_per = 5 # Number of avatars per file (per run)
block = av_per - 1
av_index = 1
to = av_index*av_per
from = to - block
av_sub = avatars[from:to,]
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_functions.R
\name{advertiserGroups.list}
\alias{advertiserGroups.list}
\title{Retrieves a list of advertiser groups, possibly filtered. This method supports paging.}
\usage{
advertiserGroups.list(profileId, ids = NULL, maxResults... | /googledfareportingv26.auto/man/advertiserGroups.list.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 1,377 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_functions.R
\name{advertiserGroups.list}
\alias{advertiserGroups.list}
\title{Retrieves a list of advertiser groups, possibly filtered. This method supports paging.}
\usage{
advertiserGroups.list(profileId, ids = NULL, maxResults... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/browse_nops_eval.R
\name{browse_nops_eval}
\alias{browse_nops_eval}
\title{Launches a shiny gadget for browsing nops_eval.zip of written
exams created with R/exams.}
\usage{
browse_nops_eval(file, width = 1000, height = 800)
}
\arguments{
\it... | /man/browse_nops_eval.Rd | permissive | kenjisato/examtools | R | false | true | 649 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/browse_nops_eval.R
\name{browse_nops_eval}
\alias{browse_nops_eval}
\title{Launches a shiny gadget for browsing nops_eval.zip of written
exams created with R/exams.}
\usage{
browse_nops_eval(file, width = 1000, height = 800)
}
\arguments{
\it... |
#' Impute values derived from linear (in)equality restrictions.
#'
#' Partially filled records \eqn{\boldsymbol{x}} under linear (in)equality
#' restrictions may reveal unique imputation solutions when the system
#' of linear inequalities is reduced by substituting observed values.
#' This function applies a number... | /pkg/R/linimpute.R | no_license | guhjy/deductive | R | false | false | 5,659 | r |
#' Impute values derived from linear (in)equality restrictions.
#'
#' Partially filled records \eqn{\boldsymbol{x}} under linear (in)equality
#' restrictions may reveal unique imputation solutions when the system
#' of linear inequalities is reduced by substituting observed values.
#' This function applies a number... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../../h2o-runit.R')
check.drf.grid.cars.negative <- function(conn) {
cars <- h2o.uploadFile(locate("smalldata/junit/cars_20mpg.csv"))
seed <- sample(1:1000000, 1)
Log.info(paste0("runif seed: ",seed))
r <- h2o.runif(cars,seed=seed)
... | /h2o-r/tests/testdir_algos/randomforest/runit_RF_grid_cars_negative.R | permissive | ppapai/h2o-3 | R | false | false | 5,308 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../../h2o-runit.R')
check.drf.grid.cars.negative <- function(conn) {
cars <- h2o.uploadFile(locate("smalldata/junit/cars_20mpg.csv"))
seed <- sample(1:1000000, 1)
Log.info(paste0("runif seed: ",seed))
r <- h2o.runif(cars,seed=seed)
... |
#!/usr/bin/env Rscript
# Hierarchical Clustering on batch corrected matrices
# ref: https://scrnaseq-course.cog.sanger.ac.uk/website/biological-analysis.html
# NOTE: we only subset by features in for methods correcting count matrix (bbknn, harmony or fastMNN outpu lack feature space or is reduced to PCA space)
suppr... | /bin/clust_hierarchical.R | permissive | anu-bioinfo/batchbench | R | false | false | 6,296 | r | #!/usr/bin/env Rscript
# Hierarchical Clustering on batch corrected matrices
# ref: https://scrnaseq-course.cog.sanger.ac.uk/website/biological-analysis.html
# NOTE: we only subset by features in for methods correcting count matrix (bbknn, harmony or fastMNN outpu lack feature space or is reduced to PCA space)
suppr... |
get_data<- read.table("C:/Users/Dell/Desktop/coursera/household_power_consumption.txt",skip=1,sep=";")
names(get_data) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
get_datetime <- subset(get_data,get_data$Date=="1/2/2... | /plot1.R | no_license | Akila1901/Coursera_Project1_Akila | R | false | false | 530 | r | get_data<- read.table("C:/Users/Dell/Desktop/coursera/household_power_consumption.txt",skip=1,sep=";")
names(get_data) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
get_datetime <- subset(get_data,get_data$Date=="1/2/2... |
shorten_names = function(x, n) {
x = head(x ,n)
bn = basename(x)
here = paste0(normalizePath("."), .Platform$file.sep, bn)
clean = gsub("\"", "", bn)
if (any(x != here))
paste0("[...]", .Platform$file.sep, clean)
else
clean
}
#' @export
print.stars_proxy = function(x, ..., n = 1e5, nfiles = 10, simplify = TR... | /R/proxy.R | permissive | ccap-zhy/stars | R | false | false | 14,095 | r | shorten_names = function(x, n) {
x = head(x ,n)
bn = basename(x)
here = paste0(normalizePath("."), .Platform$file.sep, bn)
clean = gsub("\"", "", bn)
if (any(x != here))
paste0("[...]", .Platform$file.sep, clean)
else
clean
}
#' @export
print.stars_proxy = function(x, ..., n = 1e5, nfiles = 10, simplify = TR... |
library(caTools)
### Name: runquantile
### Title: Quantile of Moving Window
### Aliases: runquantile
### Keywords: ts smooth array utilities
### ** Examples
# show plot using runquantile
k=31; n=200;
x = rnorm(n,sd=30) + abs(seq(n)-n/4)
y=runquantile(x, k, probs=c(0.05, 0.25, 0.5, 0.75, 0.95))
col = c("bl... | /data/genthat_extracted_code/caTools/examples/runquantile.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 4,479 | r | library(caTools)
### Name: runquantile
### Title: Quantile of Moving Window
### Aliases: runquantile
### Keywords: ts smooth array utilities
### ** Examples
# show plot using runquantile
k=31; n=200;
x = rnorm(n,sd=30) + abs(seq(n)-n/4)
y=runquantile(x, k, probs=c(0.05, 0.25, 0.5, 0.75, 0.95))
col = c("bl... |
/Introduction to R/R_package.R | no_license | jkoooong/stat_jkoooong | R | false | false | 1,319 | r | ||
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Estimate Mileage of Cars from Horse Power, Number of Cylinders and Transmission Type"),
sidebarPanel(
h4("Please enter parameters :"),
sliderInput("hp", 'Horse Power',
min = 50,... | /ui.R | no_license | wayneleung555/DevelopingDataProducts | R | false | false | 1,278 | r | library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Estimate Mileage of Cars from Horse Power, Number of Cylinders and Transmission Type"),
sidebarPanel(
h4("Please enter parameters :"),
sliderInput("hp", 'Horse Power',
min = 50,... |
library(mgcv)
library(dplyr)
setwd("/groups/umcg-lifelines/tmp01/projects/ov20_0051/umcg-dzhernakova/gender_difs/prediction_model")
traits_path <- "../v5/data/LL_phenotypes_merged_all.log_some.v5.txt"
pheno_path <- "age_gender_new_CVD.v5.txt"
traits <- read.delim(traits_path, header = T, row.names = 1, sep = "\t", a... | /age_sex_interactions_paper/prediction_model_per_pheno.R | no_license | DashaZhernakova/umcg_scripts | R | false | false | 2,361 | r | library(mgcv)
library(dplyr)
setwd("/groups/umcg-lifelines/tmp01/projects/ov20_0051/umcg-dzhernakova/gender_difs/prediction_model")
traits_path <- "../v5/data/LL_phenotypes_merged_all.log_some.v5.txt"
pheno_path <- "age_gender_new_CVD.v5.txt"
traits <- read.delim(traits_path, header = T, row.names = 1, sep = "\t", a... |
#Created by Khoi Phan - pkhoi176@gmail.com
#The requirements:
# 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 activities in the data set.
... | /run_analysis.R | no_license | khoip7/CourseraCleaningDataW4 | R | false | false | 3,795 | r | #Created by Khoi Phan - pkhoi176@gmail.com
#The requirements:
# 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 activities in the data set.
... |
DHS_disruption <- function(Genes_near_SVs = Genes_SVs,
Input_Breakpoints = Breakpoints,
overwrite = TRUE,
output_folder = "",
DHS_dataset){
if(output_folder != ""){
# The disrupted connections will be wr... | /Integration/DHS_functions.R | no_license | UMCUGenetics/Complex_SVs | R | false | false | 5,364 | r | DHS_disruption <- function(Genes_near_SVs = Genes_SVs,
Input_Breakpoints = Breakpoints,
overwrite = TRUE,
output_folder = "",
DHS_dataset){
if(output_folder != ""){
# The disrupted connections will be wr... |
library(oce) #used for despiking
library(hydroGOF) #forgot what I used this for
library(pls) #Load the pls package
library(xts)
source("C:/Users/FBlab/Documents/GitHub/Brittany/BrittanyFunctions.R", echo=TRUE)
#******Specify file paths and names
#FPpath<-"C:\\Users\\FBLab\\Desktop\\workHere\\Data\\FichiersFP\\" #S... | /olderCode/ASABE/MESForASABE2014Images.R | no_license | BirgandLab/Brittany | R | false | false | 9,043 | r | library(oce) #used for despiking
library(hydroGOF) #forgot what I used this for
library(pls) #Load the pls package
library(xts)
source("C:/Users/FBlab/Documents/GitHub/Brittany/BrittanyFunctions.R", echo=TRUE)
#******Specify file paths and names
#FPpath<-"C:\\Users\\FBLab\\Desktop\\workHere\\Data\\FichiersFP\\" #S... |
## copied/modified from nlme
splitFormula <-
## split, on the nm call, the rhs of a formula into a list of subformulas
function(form, sep = "/")
{
if (inherits(form, "formula") ||
mode(form) == "call" && form[[1]] == as.name("~"))
return(splitFormula(form[[length(form)]], sep = sep))
if (mod... | /R/plot.R | no_license | jknowles/lme4 | R | false | false | 20,557 | r | ## copied/modified from nlme
splitFormula <-
## split, on the nm call, the rhs of a formula into a list of subformulas
function(form, sep = "/")
{
if (inherits(form, "formula") ||
mode(form) == "call" && form[[1]] == as.name("~"))
return(splitFormula(form[[length(form)]], sep = sep))
if (mod... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/IO-methods.R
\name{import_qiime_otu_tax}
\alias{import_qiime_otu_tax}
\title{Import now legacy-format QIIME OTU table as a list of two matrices.}
\usage{
import_qiime_otu_tax(file, parseFunction = parse_taxonomy_qiime,
verbose = TRU... | /man/import_qiime_otu_tax.Rd | no_license | ajcardenasb/phyloseq | R | false | false | 3,146 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/IO-methods.R
\name{import_qiime_otu_tax}
\alias{import_qiime_otu_tax}
\title{Import now legacy-format QIIME OTU table as a list of two matrices.}
\usage{
import_qiime_otu_tax(file, parseFunction = parse_taxonomy_qiime,
verbose = TRU... |
## ----eval=FALSE----------------------------------------------------------
# temp <- tempfile()
# download.file('https://ndownloader.figshare.com/files/2075362',
# temp)
# dataset <- read.csv(temp, as.is = T)
# unlink(temp)
## ----eval=FALSE----------------------------------------------------------... | /vignettes/CRF_data_prep.R | no_license | yangxhcaf/MRFcov | R | false | false | 1,303 | r | ## ----eval=FALSE----------------------------------------------------------
# temp <- tempfile()
# download.file('https://ndownloader.figshare.com/files/2075362',
# temp)
# dataset <- read.csv(temp, as.is = T)
# unlink(temp)
## ----eval=FALSE----------------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hippo.R
\name{hippo_diagnostic_plot}
\alias{hippo_diagnostic_plot}
\title{Conduct feature selection by computing test statistics for each gene}
\usage{
hippo_diagnostic_plot(sce, show_outliers = FALSE, zvalue_thresh = 10)
}
\arguments{
\item{... | /man/hippo_diagnostic_plot.Rd | no_license | MatthieuRouland/HIPPO | R | false | true | 777 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hippo.R
\name{hippo_diagnostic_plot}
\alias{hippo_diagnostic_plot}
\title{Conduct feature selection by computing test statistics for each gene}
\usage{
hippo_diagnostic_plot(sce, show_outliers = FALSE, zvalue_thresh = 10)
}
\arguments{
\item{... |
context("test ggplot stuff")
test_that("SOgg returns a ggplot object", {
p <- SOmap(trim = -45)
pg <- SOgg(p)
expect_s3_class(pg, "SOmap_gg")
expect_identical(sort(names(pg)), c("axis_labels", "bathy", "bathy_legend", "border", "coastline", "coord", "ice", "init", "plot_sequence", "projection", "scale_... | /tests/testthat/test-ggplot.R | no_license | xichaow/SOmap | R | false | false | 2,270 | r | context("test ggplot stuff")
test_that("SOgg returns a ggplot object", {
p <- SOmap(trim = -45)
pg <- SOgg(p)
expect_s3_class(pg, "SOmap_gg")
expect_identical(sort(names(pg)), c("axis_labels", "bathy", "bathy_legend", "border", "coastline", "coord", "ice", "init", "plot_sequence", "projection", "scale_... |
\name{error.dots}
\alias{error.dots}
\title{Show a dot.chart with error bars for different groups or variables}
\description{Yet one more of the graphical ways of showing data with error bars for different groups.
A dot.chart with error bars for different groups or variables is found using from \code{\link{describe}}... | /man/error.dots.Rd | no_license | cran/psych | R | false | false | 5,637 | rd | \name{error.dots}
\alias{error.dots}
\title{Show a dot.chart with error bars for different groups or variables}
\description{Yet one more of the graphical ways of showing data with error bars for different groups.
A dot.chart with error bars for different groups or variables is found using from \code{\link{describe}}... |
#' @import vegan
#' @import phyloseq
#' @importFrom tsnemicrobiota tsne_phyloseq
#'
#'
#' @title Ordination and beta dispersion
#'
#' @description This function performs ordination using a selected method. It also performs PERMANOVA using a distance matrix corresponding
#' to the taxa abundance under the differ... | /R/ordination.R | permissive | alienzj/microbiotaPair | R | false | false | 4,707 | r | #' @import vegan
#' @import phyloseq
#' @importFrom tsnemicrobiota tsne_phyloseq
#'
#'
#' @title Ordination and beta dispersion
#'
#' @description This function performs ordination using a selected method. It also performs PERMANOVA using a distance matrix corresponding
#' to the taxa abundance under the differ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.