content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{signatures.exome.cosmic.v3.may2019}
\alias{signatures.exome.cosmic.v3.may2019}
\title{Updated SBS Exome Signatures from Sanger COSMIC (May 2019)}
\format{A data frame of 65 rows and 96 columns}
\source{
\url{ht... | /man/signatures.exome.cosmic.v3.may2019.Rd | no_license | luolingqi/deconstructSigs.mm10 | R | false | true | 555 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{signatures.exome.cosmic.v3.may2019}
\alias{signatures.exome.cosmic.v3.may2019}
\title{Updated SBS Exome Signatures from Sanger COSMIC (May 2019)}
\format{A data frame of 65 rows and 96 columns}
\source{
\url{ht... |
print ("hello R world")
#multiply 5 times 4
5*4
#name my number
a <- 20
#divide my number by 5
a/5
#make a vector of numbers
b <- c(12,8,24,100)
#multiply all numbers by 3
b*3
| /activity 1/activity1_script.r | no_license | cbarb21/datasci | R | false | false | 176 | r | print ("hello R world")
#multiply 5 times 4
5*4
#name my number
a <- 20
#divide my number by 5
a/5
#make a vector of numbers
b <- c(12,8,24,100)
#multiply all numbers by 3
b*3
|
# loadABCSFromMaster.0.1.R
#
# Purpose: Provides functions to load A-B-Cell-Synergy lists
# from a master source.
# This file can be loaded as an ABCSLOADER asset in
# the DREAM_Combi_main.R workflow and is
# therefore expected to provide a
# loadABCSmaster()... | /loadABCSFromMaster.0.1.R | no_license | DREAM-Toronto/Drug-Combination-Prediction-2015 | R | false | false | 1,473 | r | # loadABCSFromMaster.0.1.R
#
# Purpose: Provides functions to load A-B-Cell-Synergy lists
# from a master source.
# This file can be loaded as an ABCSLOADER asset in
# the DREAM_Combi_main.R workflow and is
# therefore expected to provide a
# loadABCSmaster()... |
#' Rank sites by EAR
#'
#' The \code{rank_sites_DT} (DT option) and \code{rank_sites} (data frame option) functions
#' create tables with one row per site. Columns represent the maximum or mean EAR
#' (depending on the mean_logic argument) for each category ("Chemical Class",
#' "Chemical", or "Biological") and the... | /R/rank_sites.R | no_license | waternk/toxEval | R | false | false | 8,743 | r | #' Rank sites by EAR
#'
#' The \code{rank_sites_DT} (DT option) and \code{rank_sites} (data frame option) functions
#' create tables with one row per site. Columns represent the maximum or mean EAR
#' (depending on the mean_logic argument) for each category ("Chemical Class",
#' "Chemical", or "Biological") and the... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make.R
\name{make_percent}
\alias{make_percent}
\title{Clean up a character vector to make it a percent}
\usage{
make_percent(x)
}
\arguments{
\item{x}{character vector to process}
}
\value{
numeric vector
}
\description{
Remove "%" primarily... | /man/make_percent.Rd | no_license | tpopenfoose/hrbrmisc | R | false | true | 360 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make.R
\name{make_percent}
\alias{make_percent}
\title{Clean up a character vector to make it a percent}
\usage{
make_percent(x)
}
\arguments{
\item{x}{character vector to process}
}
\value{
numeric vector
}
\description{
Remove "%" primarily... |
# PhenoFunctions
#### READ IN PHENOLOGY DATA 2016 ####
ReadInBodyPhenology2016 <- function(datasheet, site, year){
# import body of data
dat <- read.csv(datasheet, header=FALSE, sep=";", skip=3, stringsAsFactors=FALSE)
dat <- dat[dat$V2!="",] # get rid of empty lines, where no species
dat <- dat[,-3] # get rid... | /PhenoFunctions.R | no_license | fanyanghenu/PhenologyLi | R | false | false | 14,494 | r | # PhenoFunctions
#### READ IN PHENOLOGY DATA 2016 ####
ReadInBodyPhenology2016 <- function(datasheet, site, year){
# import body of data
dat <- read.csv(datasheet, header=FALSE, sep=";", skip=3, stringsAsFactors=FALSE)
dat <- dat[dat$V2!="",] # get rid of empty lines, where no species
dat <- dat[,-3] # get rid... |
# ISSUE DATA
data <- read.csv(here("data/FSCissues.csv"))
data$Change <- gsub("Bacame", "Became", data$Change)
data$Issue %<>% gsub(" $", "", .)
data$Change %<>% gsub(" * .$", "", .)
data$Strictist %<>% as.factor()
# PROGRAM NAMES
data %<>% mutate(Program = ifelse(Program == "FSC-US", "Activist-backed FSC-US", Pro... | /data/cleandata.R | no_license | judgelord/FSC-SFI | R | false | false | 7,362 | r |
# ISSUE DATA
data <- read.csv(here("data/FSCissues.csv"))
data$Change <- gsub("Bacame", "Became", data$Change)
data$Issue %<>% gsub(" $", "", .)
data$Change %<>% gsub(" * .$", "", .)
data$Strictist %<>% as.factor()
# PROGRAM NAMES
data %<>% mutate(Program = ifelse(Program == "FSC-US", "Activist-backed FSC-US", Pro... |
answer_data='AAAAA.csv'
google_token='goolge_token.rds'
shiny_path=''
shiny_name=''
shiny_token=''
shiny_secret=''
| /config.R | no_license | samex4x4/Shiny_AUC_Score_Update | R | false | false | 117 | r | answer_data='AAAAA.csv'
google_token='goolge_token.rds'
shiny_path=''
shiny_name=''
shiny_token=''
shiny_secret=''
|
rm(list=ls())
library(car); library(stargazer)
setwd("D:/AP LARSON/HOLC")
dat <- read.csv("HOLCbyTractFinal.csv")
str(dat$cbsaname)
# Set up for panel model
namevector <- as.character(unique(dat$cbsaname))
for (i in namevector){
dat[,namevector] <- NA
}
for (i in 1:length(namevector)){
dat[i + 60] <- ifelse(dat$cbs... | /Regressions.R | no_license | addisonlarson/HOLCModeling | R | false | false | 64,351 | r | rm(list=ls())
library(car); library(stargazer)
setwd("D:/AP LARSON/HOLC")
dat <- read.csv("HOLCbyTractFinal.csv")
str(dat$cbsaname)
# Set up for panel model
namevector <- as.character(unique(dat$cbsaname))
for (i in namevector){
dat[,namevector] <- NA
}
for (i in 1:length(namevector)){
dat[i + 60] <- ifelse(dat$cbs... |
FDRhistBaySeq <- function(results_BaySeq, the.file, Project){
db.cache <- InitDb(db.name='fdrhistbays_db', db.path=file.path("RNASeqGUI_Projects",Project,"Logs","cache"))
SaveInCache(db.cache, the.file, "thefile_key")
SaveInCache(db.cache, Project, "project_key")
SaveInCache(db.cache, results_BaySeq, "res... | /R/FDRhistBaySeq.R | no_license | drighelli/RNASeqGUI | R | false | false | 11,036 | r | FDRhistBaySeq <- function(results_BaySeq, the.file, Project){
db.cache <- InitDb(db.name='fdrhistbays_db', db.path=file.path("RNASeqGUI_Projects",Project,"Logs","cache"))
SaveInCache(db.cache, the.file, "thefile_key")
SaveInCache(db.cache, Project, "project_key")
SaveInCache(db.cache, results_BaySeq, "res... |
install.packages(XLConnect)
"XLConnect"
library(httr)
library(devtools)
library(twitter)
library(base64enc)
Consumer Key (API Key) y0p7r2CZ5NJKoDYlz7NSphMLz
Consumer Secret (API Secret) vaCgJCpKzSQAYhTPoURKaEAEE8AbuNEGSsplmd4hZES3lk0ScO
Access Token 868377331898826752-wBX6bXzsC9WUVSchpzPk4HwNKtapViQ
Access Token Secret... | /Email/twitter.R | no_license | adityakumbhavdekar/iris | R | false | false | 671 | r | install.packages(XLConnect)
"XLConnect"
library(httr)
library(devtools)
library(twitter)
library(base64enc)
Consumer Key (API Key) y0p7r2CZ5NJKoDYlz7NSphMLz
Consumer Secret (API Secret) vaCgJCpKzSQAYhTPoURKaEAEE8AbuNEGSsplmd4hZES3lk0ScO
Access Token 868377331898826752-wBX6bXzsC9WUVSchpzPk4HwNKtapViQ
Access Token Secret... |
install.packages('Seurat')
library(Seurat)
install.packages("dplyr")
library(dplyr)
install.packages('Rtsne')
library(Rtsne)
install.packages("reticulate")
library(reticulate)
reticulate::py_install(packages = 'umap-learn')
use_condaenv(condaenv="Renv", conda="/home/druss/anaconda3/bin/conda")
library(umap)
library(co... | /R_scripts/seurat_joseph_single_cell.R | no_license | pbpayal/Bioinformatics-Documents | R | false | false | 11,127 | r | install.packages('Seurat')
library(Seurat)
install.packages("dplyr")
library(dplyr)
install.packages('Rtsne')
library(Rtsne)
install.packages("reticulate")
library(reticulate)
reticulate::py_install(packages = 'umap-learn')
use_condaenv(condaenv="Renv", conda="/home/druss/anaconda3/bin/conda")
library(umap)
library(co... |
rm(list = ls())
library(data.table)
library(zoo)
str(Vaccinations)
IndiaVaccinations <- VaccinationData[country == "India"]
USA <- VaccinationData[country == "United States"]
| /CoronaVaccination.R | no_license | midhunt/CoronaVirus | R | false | false | 181 | r | rm(list = ls())
library(data.table)
library(zoo)
str(Vaccinations)
IndiaVaccinations <- VaccinationData[country == "India"]
USA <- VaccinationData[country == "United States"]
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/find-overlaps.R
\name{find_overlaps}
\alias{find_overlaps}
\title{Find overlapping indices of two gtf/gff/bed/bam objects}
\usage{
find_overlaps(x, y, ignore_redundant = FALSE, ignore_strand = FALSE, ...)
}
\arguments{
\item{x, y}{An object o... | /man/find_overlaps.Rd | no_license | openanalytics/gcount | R | false | true | 956 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/find-overlaps.R
\name{find_overlaps}
\alias{find_overlaps}
\title{Find overlapping indices of two gtf/gff/bed/bam objects}
\usage{
find_overlaps(x, y, ignore_redundant = FALSE, ignore_strand = FALSE, ...)
}
\arguments{
\item{x, y}{An object o... |
context("api")
test_that("neon_dir()", {
x <- neon_dir()
expect_equal(x, Sys.getenv("NEONSTORE_HOME"))
})
test_that("neon_sites()", {
skip_on_cran()
skip_if_offline()
x <- neon_sites()
expect_is(x, "data.frame")
expect_match(colnames(x), "siteCode", all=FALSE)
expect_gt(nrow(x), 10)
})
... | /tests/testthat/test-api.R | permissive | cboettig/neonstore | R | false | false | 1,581 | r | context("api")
test_that("neon_dir()", {
x <- neon_dir()
expect_equal(x, Sys.getenv("NEONSTORE_HOME"))
})
test_that("neon_sites()", {
skip_on_cran()
skip_if_offline()
x <- neon_sites()
expect_is(x, "data.frame")
expect_match(colnames(x), "siteCode", all=FALSE)
expect_gt(nrow(x), 10)
})
... |
# Introduccion a R
# DataCLubUy
# 11/Set/2020
# Principio ---------------------------------------------------------------
# "#" indica el principio de un comentario (lineas que no se van a ejecutar)
# IMPORTANTE: setear directorio de trabajo ya que alli se van a buscar y a guardar los archivos por defecto
# puede se... | /E5T1_IntroducciónR/EjemplosR.R | no_license | dclubuy/DataClubUy | R | false | false | 6,108 | r | # Introduccion a R
# DataCLubUy
# 11/Set/2020
# Principio ---------------------------------------------------------------
# "#" indica el principio de un comentario (lineas que no se van a ejecutar)
# IMPORTANTE: setear directorio de trabajo ya que alli se van a buscar y a guardar los archivos por defecto
# puede se... |
library(ape)
testtree <- read.tree("12551_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12551_0_unrooted.txt") | /codeml_files/newick_trees_processed/12551_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("12551_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12551_0_unrooted.txt") |
context('tidy_corpus')
test_that('empty corpus', {
t1 <- data.frame(id = c(1,2,3), text = c(NA, '', ':)'))
func <- LinguisticMarkers:::tidy_corpus
t2 <- func(t1, 'id', 'text')
expect_equal(nrow(t2), 0)
})
test_that('basic corpus', {
t1 <- data.frame(id = c(1,2), text = c('a', 'a b'))
func <- Lingui... | /tests/testthat/test-tidy_corpus.R | permissive | markanewman/LinguisticMarkers | R | false | false | 692 | r | context('tidy_corpus')
test_that('empty corpus', {
t1 <- data.frame(id = c(1,2,3), text = c(NA, '', ':)'))
func <- LinguisticMarkers:::tidy_corpus
t2 <- func(t1, 'id', 'text')
expect_equal(nrow(t2), 0)
})
test_that('basic corpus', {
t1 <- data.frame(id = c(1,2), text = c('a', 'a b'))
func <- Lingui... |
#' @noRd
# build search url
get_url <- function(mindate_taken,
maxdate_taken,
mindate_uploaded = NULL,
maxdate_uploaded = NULL,
user_id = NULL,
api_key,
page,
text = NULL,
... | /R/utils.R | no_license | monicagerber/photosearcher | R | false | false | 5,649 | r | #' @noRd
# build search url
get_url <- function(mindate_taken,
maxdate_taken,
mindate_uploaded = NULL,
maxdate_uploaded = NULL,
user_id = NULL,
api_key,
page,
text = NULL,
... |
rm(list=ls())
source(file = "./package_load.R", chdir = T)
# Number of bases: 5, 10, 15, 20
process <- "gsk" # ebf: empirical basis functions, gsk: gaussian kernels
margin <- "gsk" # ebf: empirical basis functions, gsk: gaussian kernels
L <- 20 # number of knots to use for the basis functions
cv <- 4 ... | /markdown/fire-analysis/fit-gsk-20-4.R | permissive | sammorris81/extreme-decomp | R | false | false | 1,324 | r | rm(list=ls())
source(file = "./package_load.R", chdir = T)
# Number of bases: 5, 10, 15, 20
process <- "gsk" # ebf: empirical basis functions, gsk: gaussian kernels
margin <- "gsk" # ebf: empirical basis functions, gsk: gaussian kernels
L <- 20 # number of knots to use for the basis functions
cv <- 4 ... |
#' Retry a request until it succeeds.
#'
#' Safely retry a request until it succeeds, as defined by the `terminate_on`
#' parameter, which by default means a response for which [http_error()]
#' is `FALSE`. Will also retry on error conditions raised by the underlying curl code,
#' but if the last retry still raises one... | /R/retry.R | permissive | womeimingzi11/httr | R | false | false | 4,723 | r | #' Retry a request until it succeeds.
#'
#' Safely retry a request until it succeeds, as defined by the `terminate_on`
#' parameter, which by default means a response for which [http_error()]
#' is `FALSE`. Will also retry on error conditions raised by the underlying curl code,
#' but if the last retry still raises one... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot_coef}
\alias{plot_coef}
\title{plot estimated coefficients}
\usage{
plot_coef(x)
}
\arguments{
\item{x}{model object}
}
\description{
plot estimated coefficients
}
| /man/plot_coef.Rd | permissive | nanxstats/logreg | R | false | true | 260 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot_coef}
\alias{plot_coef}
\title{plot estimated coefficients}
\usage{
plot_coef(x)
}
\arguments{
\item{x}{model object}
}
\description{
plot estimated coefficients
}
|
function (A)
{
e <- get("data.env", .GlobalEnv)
e[["JSDmat"]][[length(e[["JSDmat"]]) + 1]] <- list(A = A)
.Call("_textmineR_JSDmat", A)
}
| /valgrind_test_dir/JSDmat-test.R | no_license | akhikolla/RcppDeepStateTest | R | false | false | 151 | r | function (A)
{
e <- get("data.env", .GlobalEnv)
e[["JSDmat"]][[length(e[["JSDmat"]]) + 1]] <- list(A = A)
.Call("_textmineR_JSDmat", A)
}
|
testlist <- list(A = structure(c(1.01184644268287e-319, 8.11762876570616e-310, 2.10747668061271e+101, 5.78517196954163e+98, 2.02410200510026e-79, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613103427-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 469 | r | testlist <- list(A = structure(c(1.01184644268287e-319, 8.11762876570616e-310, 2.10747668061271e+101, 5.78517196954163e+98, 2.02410200510026e-79, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... |
library(tidyverse)
library(lubridate)
library(zoo)
hotel_data <- read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-02-11/hotels.csv")
hotel_data %>% View()
hotel_data %>%
filter(!is_canceled) %>%
count(reservation_status_date) %>%
ggplot(aes(reservation_status_date... | /2020/week_07/hotels.R | no_license | shoninouye/tidytuesday-analysis | R | false | false | 632 | r | library(tidyverse)
library(lubridate)
library(zoo)
hotel_data <- read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-02-11/hotels.csv")
hotel_data %>% View()
hotel_data %>%
filter(!is_canceled) %>%
count(reservation_status_date) %>%
ggplot(aes(reservation_status_date... |
## Plot 4
## Task 1: Set working directory
setwd("~/R/Exploratory_DataAnalysis")
## Task 2: Read in the data
mydata<-read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
mydata$Date <- as.Date(mydata$Date... | /plot4.R | no_license | dianajflora/Coursera_ExploratoryDataAnalysis | R | false | false | 1,410 | r | ## Plot 4
## Task 1: Set working directory
setwd("~/R/Exploratory_DataAnalysis")
## Task 2: Read in the data
mydata<-read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
mydata$Date <- as.Date(mydata$Date... |
library(tidyverse)
library(scales)
library(cowplot)
demogr <- read_csv("demographics.csv")
# demogr %>% group_by(płeć) %>% summarise(n = n())
plec_levels <- c(Kobieta = "female",
Kobieta = "Female",
Kobieta = "Woman",
Mężczyzna = "male",
Mężczyzna... | /21_demographics_viz.R | permissive | zremek/survey-polish-data-science | R | false | false | 24,951 | r | library(tidyverse)
library(scales)
library(cowplot)
demogr <- read_csv("demographics.csv")
# demogr %>% group_by(płeć) %>% summarise(n = n())
plec_levels <- c(Kobieta = "female",
Kobieta = "Female",
Kobieta = "Woman",
Mężczyzna = "male",
Mężczyzna... |
## Download Zip file to your desire working directory
filesPath <- "F:/Data Science/GettingandCleaningData/Course Project - Getting and Cleaning Data"
setwd(filesPath)
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"... | /run_analysis.R | no_license | ellazhoujx/CourseProject-GettingandCleaningData | R | false | false | 2,344 | r | ## Download Zip file to your desire working directory
filesPath <- "F:/Data Science/GettingandCleaningData/Course Project - Getting and Cleaning Data"
setwd(filesPath)
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"... |
##########################################################
## Parameters for the simulation, SIS without mortality ##
##########################################################
nt <- 1e5
num_points <- 600
rptfreq <- max(nt / num_points, 1)
num_runs <- 5
deterministic <- FALSE ## run the model... | /parameter_setup_nm.R | no_license | morgankain/Stochastic_Virulence_Evolution | R | false | false | 2,420 | r | ##########################################################
## Parameters for the simulation, SIS without mortality ##
##########################################################
nt <- 1e5
num_points <- 600
rptfreq <- max(nt / num_points, 1)
num_runs <- 5
deterministic <- FALSE ## run the model... |
= class RedEye
--- RedEye#__alloc__
--- RedEye.new(GdkPixbuf* pixbuf, Integer minX, Integer minY, Integer maxX, Integer maxY)
--- RedEye#identify_blobs(double green_sensitivity, double blue_sensitivity, Integer min_red_val)
--- RedEye#correct_blob(Integer blob_id)
--- RedEye#highlight_blob(Integer blob_id, Integ... | /ext/redeye/redeye.rd | no_license | geoffyoungs/redeye | R | false | false | 472 | rd | = class RedEye
--- RedEye#__alloc__
--- RedEye.new(GdkPixbuf* pixbuf, Integer minX, Integer minY, Integer maxX, Integer maxY)
--- RedEye#identify_blobs(double green_sensitivity, double blue_sensitivity, Integer min_red_val)
--- RedEye#correct_blob(Integer blob_id)
--- RedEye#highlight_blob(Integer blob_id, Integ... |
### Project: Polio Mixing Experiment for Bangladesh Sample Sequencing
### Purpose: Empirically derive the optimal filtering criteria for variant calling
library(tidyverse)
library(shiny)
library(ggplot2)
library(pROC)
library(wesanderson)
library(gtable)
library(gridExtra)
library(plyr)
library(reshape2)
library(show... | /app.R | permissive | andrewvalesano/PolioBenchmarking_Shiny | R | false | false | 18,089 | r |
### Project: Polio Mixing Experiment for Bangladesh Sample Sequencing
### Purpose: Empirically derive the optimal filtering criteria for variant calling
library(tidyverse)
library(shiny)
library(ggplot2)
library(pROC)
library(wesanderson)
library(gtable)
library(gridExtra)
library(plyr)
library(reshape2)
library(show... |
context("Bootstrap Diagnosands")
test_that("test diagnosands", {
my_population <- declare_population(N = 50, noise = rnorm(N))
my_potential_outcomes <-
declare_potential_outcomes(Y_Z_0 = noise,
Y_Z_1 = noise + rnorm(N, mean = 2, sd = 2))
my_assignment <- declare_assignment(m ... | /tests/testthat/test-bootstrap-diagnosands.R | no_license | antoshachekhonte/DeclareDesign | R | false | false | 1,064 | r | context("Bootstrap Diagnosands")
test_that("test diagnosands", {
my_population <- declare_population(N = 50, noise = rnorm(N))
my_potential_outcomes <-
declare_potential_outcomes(Y_Z_0 = noise,
Y_Z_1 = noise + rnorm(N, mean = 2, sd = 2))
my_assignment <- declare_assignment(m ... |
question_rating <- function(data){
flat_res <- data$result$problem
graph_data <- flat_res %>%
group_by(rating) %>%
summarise(count = n()) %>%
mutate(percent = round(count/sum(count)*100, digits = 2))
graph <- plot_ly(
graph_data,
x = ~rating,
y = ~count,
color = ~rati... | /app/analytics/question_rating.R | no_license | codesparsh/Codeforces-Visualizer | R | false | false | 656 | r |
question_rating <- function(data){
flat_res <- data$result$problem
graph_data <- flat_res %>%
group_by(rating) %>%
summarise(count = n()) %>%
mutate(percent = round(count/sum(count)*100, digits = 2))
graph <- plot_ly(
graph_data,
x = ~rating,
y = ~count,
color = ~rati... |
\encoding{UTF-8}
\name{get.music.info}
\alias{get.music.info}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
获取豆瓣音乐的专辑信息
}
\description{
获取豆瓣音乐的专辑信息,API V2接口。
}
\usage{
get.music.info(musicid)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{musicid}{豆瓣... | /man/get.music.info.Rd | no_license | ljtyduyu/Rdouban | R | false | false | 1,325 | rd | \encoding{UTF-8}
\name{get.music.info}
\alias{get.music.info}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
获取豆瓣音乐的专辑信息
}
\description{
获取豆瓣音乐的专辑信息,API V2接口。
}
\usage{
get.music.info(musicid)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{musicid}{豆瓣... |
library(shiny)
library(leaflet)
library(rCharts)
library(ggplot2)
library(dplyr)
library(scales)
library(DT)
source('global.R')
attach('./data/combined_movies.rda')
shinyServer(function(input, output){
reactive_dataset <- reactive({
if (input$menu1 != 'histogram'){
dataset <- combined_movies[combined_m... | /Project1-ExploreVis/Epstein_Shiny_Dashboard_Project/server.R | no_license | liyuhaojohn/bootcamp008_project | R | false | false | 7,971 | r | library(shiny)
library(leaflet)
library(rCharts)
library(ggplot2)
library(dplyr)
library(scales)
library(DT)
source('global.R')
attach('./data/combined_movies.rda')
shinyServer(function(input, output){
reactive_dataset <- reactive({
if (input$menu1 != 'histogram'){
dataset <- combined_movies[combined_m... |
test_that("ifelse_censor_linter skips allowed usages", {
expect_lint("ifelse(x == 2, x, y)", NULL, ifelse_censor_linter())
expect_lint("ifelse(x > 2, x, y)", NULL, ifelse_censor_linter())
})
test_that("ifelse_censor_linter blocks simple disallowed usages", {
expect_lint(
"ifelse(x < 0, 0, x)",
rex::rex("... | /tests/testthat/test-ifelse_censor_linter.R | permissive | cordis-dev/lintr | R | false | false | 1,924 | r | test_that("ifelse_censor_linter skips allowed usages", {
expect_lint("ifelse(x == 2, x, y)", NULL, ifelse_censor_linter())
expect_lint("ifelse(x > 2, x, y)", NULL, ifelse_censor_linter())
})
test_that("ifelse_censor_linter blocks simple disallowed usages", {
expect_lint(
"ifelse(x < 0, 0, x)",
rex::rex("... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glmnet_utils.R
\name{make_roc2}
\alias{make_roc2}
\title{make_roc2}
\usage{
make_roc2(roc)
}
\description{
make_roc2
}
| /man/make_roc2.Rd | no_license | kevinmhadi/khtools | R | false | true | 197 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glmnet_utils.R
\name{make_roc2}
\alias{make_roc2}
\title{make_roc2}
\usage{
make_roc2(roc)
}
\description{
make_roc2
}
|
# Poker hands dataset
#### load data ####
poker = read.csv("http://archive.ics.uci.edu/ml/machine-learning-databases/poker/poker-hand-training-true.data",
header = FALSE, sep = ",", strip.white = TRUE, na.strings="NA", stringsAsFactors = TRUE)
names(poker)<- c("s1","c1","s2","c2","s3","c3","s4"... | /processing.R | no_license | Eulerbird/Poker-Hand-Prediction-R- | R | false | false | 1,433 | r | # Poker hands dataset
#### load data ####
poker = read.csv("http://archive.ics.uci.edu/ml/machine-learning-databases/poker/poker-hand-training-true.data",
header = FALSE, sep = ",", strip.white = TRUE, na.strings="NA", stringsAsFactors = TRUE)
names(poker)<- c("s1","c1","s2","c2","s3","c3","s4"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeOperator.R
\name{makeOperator}
\alias{makeOperator}
\title{Construct evolutionary operator.}
\usage{
makeOperator(operator, name, description = NULL,
supported = getAvailableRepresentations(), params = list())
}
\arguments{
\item{operat... | /man/makeOperator.Rd | no_license | niiwise/ecr2 | R | false | true | 1,176 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeOperator.R
\name{makeOperator}
\alias{makeOperator}
\title{Construct evolutionary operator.}
\usage{
makeOperator(operator, name, description = NULL,
supported = getAvailableRepresentations(), params = list())
}
\arguments{
\item{operat... |
train = read.csv("train.csv")
test = read.csv("test.csv")
str(train)
summary(train)
for(i in 1:ncol(train)){
train[is.na(train[,i]), i] <- mean(train[,i], na.rm = TRUE)
}
for(j in 1:ncol(test)){
test[is.na(test[,j]), j] <- mean(test[,j], na.rm = TRUE)
}
summary(train)
summary(test)
str(train)
tra... | /Analytics-Vidhya/Stock_Market.R | no_license | tinkudhull/Data_Science | R | false | false | 951 | r | train = read.csv("train.csv")
test = read.csv("test.csv")
str(train)
summary(train)
for(i in 1:ncol(train)){
train[is.na(train[,i]), i] <- mean(train[,i], na.rm = TRUE)
}
for(j in 1:ncol(test)){
test[is.na(test[,j]), j] <- mean(test[,j], na.rm = TRUE)
}
summary(train)
summary(test)
str(train)
tra... |
getwd()
setwd("C:/Users/schnuri/Desktop/Neuer Ordner/Dataset/")
#get from dataset the monthly corrected values for NAs
#see what data you have
#eliminate columns you dont need
data = co2month[,c(3,5)]
colnames(data)= c("year", "co2")
#visualize our data
attach(data)
plot(year, co2, add=T, type="n",las=1, xlab="Y... | /Rscript/visualization.R | no_license | Mallypop/Time-Series-Project | R | false | false | 4,371 | r | getwd()
setwd("C:/Users/schnuri/Desktop/Neuer Ordner/Dataset/")
#get from dataset the monthly corrected values for NAs
#see what data you have
#eliminate columns you dont need
data = co2month[,c(3,5)]
colnames(data)= c("year", "co2")
#visualize our data
attach(data)
plot(year, co2, add=T, type="n",las=1, xlab="Y... |
# This tests the mapCellsToEdges function.
# library(testthat); library(TSCAN); source('test-mapping.R')
set.seed(10001)
test_that("mapCellsToEdges works correctly in general", {
y <- matrix(rnorm(1000), ncol=10)
clust <- kmeans(y,5)$cluster
mst <- createClusterMST(y, cluster=clust)
mapping <- mapCell... | /tests/testthat/test-mapping.R | no_license | vd4mmind/TSCAN | R | false | false | 3,442 | r | # This tests the mapCellsToEdges function.
# library(testthat); library(TSCAN); source('test-mapping.R')
set.seed(10001)
test_that("mapCellsToEdges works correctly in general", {
y <- matrix(rnorm(1000), ncol=10)
clust <- kmeans(y,5)$cluster
mst <- createClusterMST(y, cluster=clust)
mapping <- mapCell... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/senCloudMask.R
\name{senCloudMask}
\alias{senCloudMask}
\title{Create cloud masks for Sentinel-2 images}
\usage{
senCloudMask(
src,
AppRoot,
out.name,
resbands,
sensitivity = 50,
overwrite = FALSE,
...
)
}
\argum... | /man/senCloudMask.Rd | no_license | cran/RGISTools | R | false | true | 3,821 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/senCloudMask.R
\name{senCloudMask}
\alias{senCloudMask}
\title{Create cloud masks for Sentinel-2 images}
\usage{
senCloudMask(
src,
AppRoot,
out.name,
resbands,
sensitivity = 50,
overwrite = FALSE,
...
)
}
\argum... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pullGeno.R
\name{pullSnpGeno}
\alias{pullSnpGeno}
\title{Pull SNP genotypes}
\usage{
pullSnpGeno(pop, snpChip = 1, chr = NULL, asRaw = FALSE, simParam = NULL)
}
\arguments{
\item{pop}{an object of \code{\link{Pop-class}}}
\item{sn... | /man/pullSnpGeno.Rd | no_license | cran/AlphaSimR | R | false | true | 972 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pullGeno.R
\name{pullSnpGeno}
\alias{pullSnpGeno}
\title{Pull SNP genotypes}
\usage{
pullSnpGeno(pop, snpChip = 1, chr = NULL, asRaw = FALSE, simParam = NULL)
}
\arguments{
\item{pop}{an object of \code{\link{Pop-class}}}
\item{sn... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/beta.div.r
\name{beta.div}
\alias{beta.div}
\title{Make a distance matrix of samples vs samples.}
\usage{
beta.div(biom, method, weighted = TRUE, tree = NULL)
}
\arguments{
\item{biom}{A \code{matrix}, \code{simple_triplet_matrix}, o... | /man/beta.div.Rd | no_license | cran/rbiom | R | false | true | 1,624 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/beta.div.r
\name{beta.div}
\alias{beta.div}
\title{Make a distance matrix of samples vs samples.}
\usage{
beta.div(biom, method, weighted = TRUE, tree = NULL)
}
\arguments{
\item{biom}{A \code{matrix}, \code{simple_triplet_matrix}, o... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinymaterial)
library(shinydashboard)
library(tidyverse)
library(MASS)
library(fBasics) ... | /taeunalmed2018/app.R | no_license | joaerazogo/shinyapp | R | false | false | 10,430 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinymaterial)
library(shinydashboard)
library(tidyverse)
library(MASS)
library(fBasics) ... |
\name{mc.se}
\alias{mc.se}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Count error for h2 and corr
}
\description{
This function counts standard error(se) for heritability(h2) and corr value for MCMCglmm package.
}
\usage{
mc.se(object = NULL, Nmc = NULL, confinterval = NULL, lv = N... | /man/mc.se.Rd | no_license | yzhlinscau/AAfun | R | false | false | 3,876 | rd | \name{mc.se}
\alias{mc.se}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Count error for h2 and corr
}
\description{
This function counts standard error(se) for heritability(h2) and corr value for MCMCglmm package.
}
\usage{
mc.se(object = NULL, Nmc = NULL, confinterval = NULL, lv = N... |
# NamSor API v2
#
# NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many m... | /R/first_last_name_gendered_out.R | no_license | wing328/namsor-r-client | R | false | false | 4,899 | r | # NamSor API v2
#
# NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many m... |
library(prism)
### Name: prism_image
### Title: Quick image plot
### Aliases: prism_image
### ** Examples
## Not run:
##D get_prism_dailys(type="tmean", minDate = "2013-06-01", maxDate = "2013-06-14", keepZip=FALSE)
##D prism_image(ls_prism_data()[1])
## End(Not run)
| /data/genthat_extracted_code/prism/examples/prism_image.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 277 | r | library(prism)
### Name: prism_image
### Title: Quick image plot
### Aliases: prism_image
### ** Examples
## Not run:
##D get_prism_dailys(type="tmean", minDate = "2013-06-01", maxDate = "2013-06-14", keepZip=FALSE)
##D prism_image(ls_prism_data()[1])
## End(Not run)
|
## Script to carry out sensitivity analysis:
## The effect of the mean seasonal variations
## Geographical variations
## Long-term trends
rm(list=ls())
library(esd)
ar1 <- function(x) {
n <- length(x)
x0 <- x[1:(n-1)]
x1 <- x[2:n]
ok <- is.finite(x0) & is.finite(x1)
ar1 <- cor(x0[ok],x1[ok])
return(ar1)
}... | /AACA/paper59trends.R | no_license | metno/esd_Rmarkdown | R | false | false | 13,917 | r | ## Script to carry out sensitivity analysis:
## The effect of the mean seasonal variations
## Geographical variations
## Long-term trends
rm(list=ls())
library(esd)
ar1 <- function(x) {
n <- length(x)
x0 <- x[1:(n-1)]
x1 <- x[2:n]
ok <- is.finite(x0) & is.finite(x1)
ar1 <- cor(x0[ok],x1[ok])
return(ar1)
}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tracesMethods.R
\name{plot.traces}
\alias{plot.traces}
\title{Plot traces}
\usage{
\method{plot}{traces}(traces, log = FALSE, legend = TRUE,
PDF = FALSE, name = "Traces", plot = TRUE, colour_by = "id",
highlight = NULL, highlight_col = NU... | /man/plot.traces.Rd | permissive | kiahalespractice/CCprofiler | R | false | true | 1,980 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tracesMethods.R
\name{plot.traces}
\alias{plot.traces}
\title{Plot traces}
\usage{
\method{plot}{traces}(traces, log = FALSE, legend = TRUE,
PDF = FALSE, name = "Traces", plot = TRUE, colour_by = "id",
highlight = NULL, highlight_col = NU... |
###############################################################
###### Catch illegal input for GLM w/ Beta Constraints #######
###############################################################
test <- function() {
## Import data
h2oData <- h2o.importFile("/mnt/0xcustomer-datasets/c27/data.csv")
betaConstraints ... | /h2o-r/tests/testdir_algos/glm/runit_INTERNAL_GLM_bc_illegal_input.R | permissive | StephRoark/h2o-3 | R | false | false | 1,940 | r | ###############################################################
###### Catch illegal input for GLM w/ Beta Constraints #######
###############################################################
test <- function() {
## Import data
h2oData <- h2o.importFile("/mnt/0xcustomer-datasets/c27/data.csv")
betaConstraints ... |
# Read in the raw data
# Install packages
pacman::p_load("tidyverse", "DECIPHER", "Biostrings", "skimr", "caret",
"cowplot", "tidymodels", "ranger", "tree", "rsample",
"randomForest", "gbm","nnet","e1071","svmpath","lars",
"glmnet", "svmpath", "readxl")
# Set working direc... | /bin/machine_learning/20200103_binary_classificaton_test_molec_features.r | no_license | serina-robinson/synbio-data-analysis | R | false | false | 14,893 | r | # Read in the raw data
# Install packages
pacman::p_load("tidyverse", "DECIPHER", "Biostrings", "skimr", "caret",
"cowplot", "tidymodels", "ranger", "tree", "rsample",
"randomForest", "gbm","nnet","e1071","svmpath","lars",
"glmnet", "svmpath", "readxl")
# Set working direc... |
#############################################################################################################################
rm(list=ls())
#############################################################################################################################
test <- TRUE # set test to FALSE to run the real simul... | /code/scenarios_micro/micro_noecig/MLA_micro.R | no_license | KateDoan/gice | R | false | false | 10,824 | r | #############################################################################################################################
rm(list=ls())
#############################################################################################################################
test <- TRUE # set test to FALSE to run the real simul... |
# param is a named numeric vector or a matrix.
# if param is a vector, it specifies a 5PL curve.
# if param is a matrix, each row of it specifies a 5PL curve
# param can be in either the classical parameterization or the g-h parameterization
# param can come from drm fit or bcrm fit
# the ed50 parameterization is... | /nCal/R/5pl.R | no_license | ingted/R-Examples | R | false | false | 9,930 | r | # param is a named numeric vector or a matrix.
# if param is a vector, it specifies a 5PL curve.
# if param is a matrix, each row of it specifies a 5PL curve
# param can be in either the classical parameterization or the g-h parameterization
# param can come from drm fit or bcrm fit
# the ed50 parameterization is... |
#EXAM!!!!!!
gala_data = read.table("gala.txt", header = TRUE)
gala_data
attach(gala_data)
gala_glm = glm(Species~Area+Elevation+Nearest+Scruz+Adjacent, family= poisson, data = gala_data)
summary(gala_glm)
# As we can see, all the p-values are smaller than 0.05 now
# That means all the variables are signifi... | /Exam/Exam-scriptC.R | no_license | MglMX/EDDA-VU | R | false | false | 2,611 | r | #EXAM!!!!!!
gala_data = read.table("gala.txt", header = TRUE)
gala_data
attach(gala_data)
gala_glm = glm(Species~Area+Elevation+Nearest+Scruz+Adjacent, family= poisson, data = gala_data)
summary(gala_glm)
# As we can see, all the p-values are smaller than 0.05 now
# That means all the variables are signifi... |
# Importing dataset
dataset <- read.csv('Mall_Customers.csv')
X = dataset[4:5]
# Using elbow method to find the optimal number of clusters
set.seed(6)
wcss = vector()
for(i in 1:10) wcss[i] = sum(kmeans(X, i)$withinss)
plot(1:10,
wcss,
type='b',
main = paste('Clusters of clients'),
xlab = 'Numb... | /4_Clustering/KMeans.R | no_license | saimahesh-geek/machine-learning | R | false | false | 803 | r | # Importing dataset
dataset <- read.csv('Mall_Customers.csv')
X = dataset[4:5]
# Using elbow method to find the optimal number of clusters
set.seed(6)
wcss = vector()
for(i in 1:10) wcss[i] = sum(kmeans(X, i)$withinss)
plot(1:10,
wcss,
type='b',
main = paste('Clusters of clients'),
xlab = 'Numb... |
%% File Name: TAM-package.Rd
%% File Version: 2.62
\name{TAM-package}
\alias{TAM-package}
\alias{TAM}
\docType{package}
\title{
Test Analysis Modules
}
\description{
Includes marginal maximum likelihood estimation and joint maximum
likelihood estimation for unidimensional and multidimensional
item response... | /man/TAM-package.Rd | no_license | markdly/TAM | R | false | false | 2,325 | rd | %% File Name: TAM-package.Rd
%% File Version: 2.62
\name{TAM-package}
\alias{TAM-package}
\alias{TAM}
\docType{package}
\title{
Test Analysis Modules
}
\description{
Includes marginal maximum likelihood estimation and joint maximum
likelihood estimation for unidimensional and multidimensional
item response... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/e2e_plot_ycurve.R
\name{e2e_plot_ycurve}
\alias{e2e_plot_ycurve}
\title{Plot fishery yield curve data for planktivorous or demersal fish.}
\usage{
e2e_plot_ycurve(
model,
selection = "",
use.saved = FALSE,
use.example = FALSE,
resul... | /man/e2e_plot_ycurve.Rd | no_license | cran/StrathE2E2 | R | false | true | 5,373 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/e2e_plot_ycurve.R
\name{e2e_plot_ycurve}
\alias{e2e_plot_ycurve}
\title{Plot fishery yield curve data for planktivorous or demersal fish.}
\usage{
e2e_plot_ycurve(
model,
selection = "",
use.saved = FALSE,
use.example = FALSE,
resul... |
testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0... | /IntervalSurgeon/inst/testfiles/rcpp_depth/AFL_rcpp_depth/rcpp_depth_valgrind_files/1609858392-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 713 | r | testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0... |
# plot3.R
plot3 <- function() {
library("data.table")
hhData = loadData() # function below...
# Open the png file as a device, plot the graph there, and close it...
png(filename = "plot3.png", width = 480, height = 480, units = "px")
with(hhData, plot(DateTime, Sub_metering_... | /plot3.R | no_license | htornitram/ExData_Plotting1 | R | false | false | 2,180 | r | # plot3.R
plot3 <- function() {
library("data.table")
hhData = loadData() # function below...
# Open the png file as a device, plot the graph there, and close it...
png(filename = "plot3.png", width = 480, height = 480, units = "px")
with(hhData, plot(DateTime, Sub_metering_... |
preprocesamiento<-{
sidebarLayout(
# Sidebar panel for inputs ----
sidebarPanel(
div(actionButton("guardar", label = "Guardar .csv", icon = icon("save"))),
div(actionButton("normalizar", label = "Normalizar Columnas", icon = icon("database")))
),
mainPanel(
tabl... | /TF Shiny/www/Tabs/TabPreprocesamiento.R | no_license | adbxd/kickstarter-projects-Adminfo | R | false | false | 358 | r | preprocesamiento<-{
sidebarLayout(
# Sidebar panel for inputs ----
sidebarPanel(
div(actionButton("guardar", label = "Guardar .csv", icon = icon("save"))),
div(actionButton("normalizar", label = "Normalizar Columnas", icon = icon("database")))
),
mainPanel(
tabl... |
#!/share/nas2/genome/biosoft/R/3.1.1/lib64/R/bin/Rscript
# usage function
usage <- function() {
print("-------------------------------------------------------------------------------")
print("Usage: Rscript bin/cog_anno_plot.r in.stat out.png")
print("1) in.stat: the stat file for COG anno")
print("2) out.png: th... | /bin/annotation/v1.5/bin/cog_anno_plot.r | no_license | baibaijingjing/LncRNA | R | false | false | 1,401 | r | #!/share/nas2/genome/biosoft/R/3.1.1/lib64/R/bin/Rscript
# usage function
usage <- function() {
print("-------------------------------------------------------------------------------")
print("Usage: Rscript bin/cog_anno_plot.r in.stat out.png")
print("1) in.stat: the stat file for COG anno")
print("2) out.png: th... |
library(sandwich)
### Name: estfun
### Title: Extract Empirical Estimating Functions
### Aliases: estfun estfun.lm estfun.glm estfun.mlm estfun.rlm estfun.polr
### estfun.clm estfun.survreg estfun.coxph estfun.nls estfun.hurdle
### estfun.zeroinfl estfun.mlogit
### Keywords: regression
### ** Examples
## linear... | /data/genthat_extracted_code/sandwich/examples/estfun.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 462 | r | library(sandwich)
### Name: estfun
### Title: Extract Empirical Estimating Functions
### Aliases: estfun estfun.lm estfun.glm estfun.mlm estfun.rlm estfun.polr
### estfun.clm estfun.survreg estfun.coxph estfun.nls estfun.hurdle
### estfun.zeroinfl estfun.mlogit
### Keywords: regression
### ** Examples
## linear... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim10GDINA.R
\docType{data}
\name{sim10GDINA}
\alias{sim10GDINA}
\title{Simulated data (10 items, G-DINA model)}
\format{
A list with components:
\describe{
\item{\code{simdat}}{simulated responses of 1000 examinees}
\item{\code{simQ}}{artifi... | /man/sim10GDINA.Rd | no_license | Wenchao-Ma/GDINA | R | false | true | 813 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim10GDINA.R
\docType{data}
\name{sim10GDINA}
\alias{sim10GDINA}
\title{Simulated data (10 items, G-DINA model)}
\format{
A list with components:
\describe{
\item{\code{simdat}}{simulated responses of 1000 examinees}
\item{\code{simQ}}{artifi... |
library(POT)
### Name: qq
### Title: Quantile Quantile Plot
### Aliases: qq qq.uvpot
### Keywords: hplot
### ** Examples
x <- rgpd(75, 1, 2, 0.1)
pwmu <- fitgpd(x, 1, "pwmu")
qq(pwmu)
| /data/genthat_extracted_code/POT/examples/qq.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 191 | r | library(POT)
### Name: qq
### Title: Quantile Quantile Plot
### Aliases: qq qq.uvpot
### Keywords: hplot
### ** Examples
x <- rgpd(75, 1, 2, 0.1)
pwmu <- fitgpd(x, 1, "pwmu")
qq(pwmu)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculate_MiniMax_drivers.R
\name{MiniMax_calculateDrivers}
\alias{MiniMax_calculateDrivers}
\title{Mark which Platforms are Driving the MiniMax Statistics}
\usage{
MiniMax_calculateDrivers(
res_df,
orderStat = 2L,
drivers_char = colnam... | /man/MiniMax_calculateDrivers.Rd | no_license | TransBioInfoLab/pathwayMultiomics | R | false | true | 3,054 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculate_MiniMax_drivers.R
\name{MiniMax_calculateDrivers}
\alias{MiniMax_calculateDrivers}
\title{Mark which Platforms are Driving the MiniMax Statistics}
\usage{
MiniMax_calculateDrivers(
res_df,
orderStat = 2L,
drivers_char = colnam... |
library(MASS)
get_mu <- function(xl)
{
m <- dim(xl)[2]
mu <- matrix(NA, 1, m)
for(i in 1:m)
{
mu[1,i] <- mean(xl[,i])
}
return(mu)
}
get_matrix <- function(xl,mu)
{
n <- dim(xl)[1]
m <- dim(xl)[2]
sigma <- matrix(0, m, m)
xl <- as.matrix(xl)
for(i in 1:n)
{
sigma <- sigma + (t(xl[i,]-mu) %*% (... | /bayes/iris.R | no_license | TIR13/ML0 | R | false | false | 5,284 | r | library(MASS)
get_mu <- function(xl)
{
m <- dim(xl)[2]
mu <- matrix(NA, 1, m)
for(i in 1:m)
{
mu[1,i] <- mean(xl[,i])
}
return(mu)
}
get_matrix <- function(xl,mu)
{
n <- dim(xl)[1]
m <- dim(xl)[2]
sigma <- matrix(0, m, m)
xl <- as.matrix(xl)
for(i in 1:n)
{
sigma <- sigma + (t(xl[i,]-mu) %*% (... |
#
#
# HAI Modeling
# All analysis are in log2 scale
#
# Developed by Saeid Parvandeh 12/27/2016
#
#-----------------------------------------
rm(list=ls())
library(ggplot2)
library(EnvStats)
library(gridExtra)
# read Baylor titers
load("baylor_titers.RData")
bay.d0 <- baylor_titers$Matched.Max.day0
bay.d28 <- baylor... | /R script/5_Modeling_log2(HAI).R | no_license | saeid651/predictHAI | R | false | false | 12,446 | r | #
#
# HAI Modeling
# All analysis are in log2 scale
#
# Developed by Saeid Parvandeh 12/27/2016
#
#-----------------------------------------
rm(list=ls())
library(ggplot2)
library(EnvStats)
library(gridExtra)
# read Baylor titers
load("baylor_titers.RData")
bay.d0 <- baylor_titers$Matched.Max.day0
bay.d28 <- baylor... |
############################
# S3 method for gmnl package
#############################
#' @rdname gmnl
#' @method print gmnl
#' @import stats
#' @export
print.gmnl <- function(x, digits = max(3, getOption("digits") - 3),
width = getOption("width"), ...){
cat("\nCall:\n", deparse(x$call),"\... | /gmnl/R/gmnl.methods.R | no_license | ingted/R-Examples | R | false | false | 31,475 | r | ############################
# S3 method for gmnl package
#############################
#' @rdname gmnl
#' @method print gmnl
#' @import stats
#' @export
print.gmnl <- function(x, digits = max(3, getOption("digits") - 3),
width = getOption("width"), ...){
cat("\nCall:\n", deparse(x$call),"\... |
library(rgl)
### Name: writeWebGL
### Title: Write scene to HTML.
### Aliases: writeWebGL
### Keywords: graphics
### ** Examples
plot3d(rnorm(100), rnorm(100), rnorm(100), type = "s", col = "red")
# This writes a copy into temporary directory 'webGL', and then displays it
filename <- writeWebGL(dir = file.pat... | /data/genthat_extracted_code/rgl/examples/writeWebGL.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 557 | r | library(rgl)
### Name: writeWebGL
### Title: Write scene to HTML.
### Aliases: writeWebGL
### Keywords: graphics
### ** Examples
plot3d(rnorm(100), rnorm(100), rnorm(100), type = "s", col = "red")
# This writes a copy into temporary directory 'webGL', and then displays it
filename <- writeWebGL(dir = file.pat... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/pad.R
\name{pad}
\alias{pad}
\title{Pad numeric vars to strings of specified size}
\usage{
pad(x, mx = NULL, fill = 0)
}
\arguments{
\item{x}{Input object}
\item{mx}{How many places do you want padded?}
\item{fill}{What should it be... | /man/pad.Rd | no_license | bestdan/ULF | R | false | false | 564 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/pad.R
\name{pad}
\alias{pad}
\title{Pad numeric vars to strings of specified size}
\usage{
pad(x, mx = NULL, fill = 0)
}
\arguments{
\item{x}{Input object}
\item{mx}{How many places do you want padded?}
\item{fill}{What should it be... |
library("Rimlbuoy")
library("xts")
library("ggplot2")
source("~/MEGA/Arctus/project/workshop_presentation/read.extract.pix.file.R")
load("~/MEGA/data/BoueesIML/2015/L2/COPS.DB.IML4.V3.RData")
################read data
####################################
#read data for viking buoy
iml4="~/MEGA/Arctus/data/total/IML... | /matchup_COPS.R | no_license | zygomare/L2_validation | R | false | false | 771 | r | library("Rimlbuoy")
library("xts")
library("ggplot2")
source("~/MEGA/Arctus/project/workshop_presentation/read.extract.pix.file.R")
load("~/MEGA/data/BoueesIML/2015/L2/COPS.DB.IML4.V3.RData")
################read data
####################################
#read data for viking buoy
iml4="~/MEGA/Arctus/data/total/IML... |
\name{ISV.Equality}
\alias{ISV.Equality}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Test for Equality of Intra-Subject Variabilities
}
\description{
H0: within-subject variance of treatment T is equal to within-subject variance of treatment R
Ha: not equal
The test is find... | /man/ISV.Equality.Rd | no_license | cran/TrialSize | R | false | false | 907 | rd | \name{ISV.Equality}
\alias{ISV.Equality}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Test for Equality of Intra-Subject Variabilities
}
\description{
H0: within-subject variance of treatment T is equal to within-subject variance of treatment R
Ha: not equal
The test is find... |
\name{speedglm-package}
\alias{speedglm-package}
\docType{package}
\title{
Fitting Linear and Generalized Linear Models to Large Data Sets.
}
\description{
Fits LMs and GLMs to large data sets. For data loaded in R memory the fitting is usually
fast, especially if R is linked against an optimized BLAS. For data... | /man/speedglm-package.rd | no_license | francesconero/speedglm | R | false | false | 717 | rd | \name{speedglm-package}
\alias{speedglm-package}
\docType{package}
\title{
Fitting Linear and Generalized Linear Models to Large Data Sets.
}
\description{
Fits LMs and GLMs to large data sets. For data loaded in R memory the fitting is usually
fast, especially if R is linked against an optimized BLAS. For data... |
library(xpose4)
### Name: reset.graph.par
### Title: Resets Xpose variable definitions to factory settings
### Aliases: reset.graph.par
### Keywords: methods
### ** Examples
## Not run:
##D ## xpdb5 is an Xpose data object
##D ## We expect to find the required NONMEM run and table files for run
##D ## 5 in the cu... | /data/genthat_extracted_code/xpose4/examples/reset.graph.par.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 648 | r | library(xpose4)
### Name: reset.graph.par
### Title: Resets Xpose variable definitions to factory settings
### Aliases: reset.graph.par
### Keywords: methods
### ** Examples
## Not run:
##D ## xpdb5 is an Xpose data object
##D ## We expect to find the required NONMEM run and table files for run
##D ## 5 in the cu... |
\name{ear2bey}
\alias{ear2bey}
\title{bond-equivalent yield (BEY), 2 x the semiannual discount rate}
\usage{
ear2bey(ear)
}
\arguments{
\item{ear}{effective annual rate}
}
\description{
bond-equivalent yield (BEY), 2 x the semiannual discount
rate
}
\examples{
ear2bey(ear=0.08)
}
\seealso{
\code{\link{ear}}
}
| /man/ear2bey.Rd | no_license | asheshwor/FinCal | R | false | false | 314 | rd | \name{ear2bey}
\alias{ear2bey}
\title{bond-equivalent yield (BEY), 2 x the semiannual discount rate}
\usage{
ear2bey(ear)
}
\arguments{
\item{ear}{effective annual rate}
}
\description{
bond-equivalent yield (BEY), 2 x the semiannual discount
rate
}
\examples{
ear2bey(ear=0.08)
}
\seealso{
\code{\link{ear}}
}
|
\name{parviol}
\Rdversion{1.1}
\alias{parviol}
\title{Parviol}
\description{
Parviol combines parallel coordinates and violin plot
}
\usage{
parviol(df, violinplot=TRUE, main=NULL, sub=NULL)
}
\arguments{
\item{df}{data frame.}
\item{violinplot}{if \code{TRUE} draws violin plots on parallel axis.}
\i... | /man/parviol.Rd | no_license | cran/parviol | R | false | false | 623 | rd | \name{parviol}
\Rdversion{1.1}
\alias{parviol}
\title{Parviol}
\description{
Parviol combines parallel coordinates and violin plot
}
\usage{
parviol(df, violinplot=TRUE, main=NULL, sub=NULL)
}
\arguments{
\item{df}{data frame.}
\item{violinplot}{if \code{TRUE} draws violin plots on parallel axis.}
\i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/correctionsataglance-data.R
\name{parseCorrGrades}
\alias{parseCorrGrades}
\title{Parse CORR Grades}
\usage{
parseCorrGrades(timeSeries, timezone)
}
\arguments{
\item{timeSeries}{The time series to get grades for}
\item{timezone}{The timezon... | /man/parseCorrGrades.Rd | permissive | USGS-R/repgen | R | false | true | 409 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/correctionsataglance-data.R
\name{parseCorrGrades}
\alias{parseCorrGrades}
\title{Parse CORR Grades}
\usage{
parseCorrGrades(timeSeries, timezone)
}
\arguments{
\item{timeSeries}{The time series to get grades for}
\item{timezone}{The timezon... |
##
# The following bug is associated with JIRA PUB-838
# 'Inaccurate error message: h2o.performance()'
# Testing h2o.performance with rogue label vector and original dataframe
##
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
test <- function(conn) {
print("Reading... | /h2o-r/tests/testdir_jira/runit_NOPASS_pub_838_h2o_perf_message.R | permissive | JMR-b/h2o-dev | R | false | false | 1,575 | r | ##
# The following bug is associated with JIRA PUB-838
# 'Inaccurate error message: h2o.performance()'
# Testing h2o.performance with rogue label vector and original dataframe
##
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
test <- function(conn) {
print("Reading... |
#Exploratory analysis
load("~/Documents/Caltex/Analysis workspace.Rdata")
setwd('/Users/Sophie/Documents/Caltex')
detach(analysis.data)
attach(analysis.data)
#Time series plot
plot(Calendar.day[Fuel.Grade == 'E10'], quantity[Fuel.Grade == 'E10'], type = 'l',
col = 'gray', xlab = 'Sale date', ylab = 'Fuel quantity ... | /3_Exploratory analysis.r | no_license | S0phie/Example-data-analysis | R | false | false | 4,790 | r | #Exploratory analysis
load("~/Documents/Caltex/Analysis workspace.Rdata")
setwd('/Users/Sophie/Documents/Caltex')
detach(analysis.data)
attach(analysis.data)
#Time series plot
plot(Calendar.day[Fuel.Grade == 'E10'], quantity[Fuel.Grade == 'E10'], type = 'l',
col = 'gray', xlab = 'Sale date', ylab = 'Fuel quantity ... |
.lang$init.R <- list(
plain = list(
error_rpgm.setLang = "(init.R) Aucune langue n'a pu être chargée."
),
gui.updateLang = list(
error = "(gui.updateLang) Il n'y a pas de liste nommée .lang$%s"
)
)
.lang$example <- list(
title = list(
value = "Gestion des langues dans une Ap... | /lang/French.R | no_license | pgmsolutions/pgm-lang | R | false | false | 1,581 | r | .lang$init.R <- list(
plain = list(
error_rpgm.setLang = "(init.R) Aucune langue n'a pu être chargée."
),
gui.updateLang = list(
error = "(gui.updateLang) Il n'y a pas de liste nommée .lang$%s"
)
)
.lang$example <- list(
title = list(
value = "Gestion des langues dans une Ap... |
\name{hg18refGene}
\alias{hg18refGene}
\title{hg18's refGenes }
\description{
The human (hg18) reference genes from UCSC
}
\keyword{datasets} | /man/hg18refGene.Rd | no_license | supatt-lab/r3Cseq | R | false | false | 141 | rd | \name{hg18refGene}
\alias{hg18refGene}
\title{hg18's refGenes }
\description{
The human (hg18) reference genes from UCSC
}
\keyword{datasets} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{groupByPieceThemeAvg}
\alias{groupByPieceThemeAvg}
\title{Average pieces for each theme.}
\usage{
groupByPieceThemeAvg(dataset, minYear = min(dataset$year),
maxYear = max(dataset$year), minPrice = min(dataset$price),
maxPri... | /lego/man/groupByPieceThemeAvg.Rd | permissive | darrenredmond/advanced_r | R | false | true | 1,721 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{groupByPieceThemeAvg}
\alias{groupByPieceThemeAvg}
\title{Average pieces for each theme.}
\usage{
groupByPieceThemeAvg(dataset, minYear = min(dataset$year),
maxYear = max(dataset$year), minPrice = min(dataset$price),
maxPri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mapHydroShed1}
\alias{mapHydroShed1}
\title{HydroSHEDS level 1}
\format{
A SpatialPolygonsDataFrame
}
\source{
Lehner, B., Grill G. (2013): Global river hydrography and network routing:
baseline data and new approa... | /man/mapHydroShed1.Rd | no_license | JGCRI/rmapdata | R | false | true | 652 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mapHydroShed1}
\alias{mapHydroShed1}
\title{HydroSHEDS level 1}
\format{
A SpatialPolygonsDataFrame
}
\source{
Lehner, B., Grill G. (2013): Global river hydrography and network routing:
baseline data and new approa... |
# Dependencies
list.of.packages <- c("scatterplot3d","plotly")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, require, character.only = TRUE)
rm(list = c("list.of.packages","new.packages"))
#... | /Vytvorenie_premennych.R | no_license | LukasVeverka/DataX | R | false | false | 5,504 | r |
# Dependencies
list.of.packages <- c("scatterplot3d","plotly")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, require, character.only = TRUE)
rm(list = c("list.of.packages","new.packages"))
#... |
# Daniela Victoria Cansino Rosales
# Matrícula: 1821849
# 27.02.2020
# Importar datos de Cedro Rojo --------------------------------------------
setwd("C:/Tarea/108-Estadistica/Clases")
CR <- read.csv("cedro_rojo.csv", header = TRUE)
summary(CR)
# Una muestra ---------------------------------------------------------... | /Clases/Script_4.R | no_license | 1821849/108-Estadistica | R | false | false | 840 | r | # Daniela Victoria Cansino Rosales
# Matrícula: 1821849
# 27.02.2020
# Importar datos de Cedro Rojo --------------------------------------------
setwd("C:/Tarea/108-Estadistica/Clases")
CR <- read.csv("cedro_rojo.csv", header = TRUE)
summary(CR)
# Una muestra ---------------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/initializeKARL.R
\name{initializeKARL}
\alias{initializeKARL}
\title{initializeKARL}
\usage{
initializeKARL(rank = "all",
silva.url = "http://www.arb-silva.de/fileadmin/silva_databases/current/Exports/SILVA_123_SSURef_Nr99_tax_silva.fasta.g... | /man/initializeKARL.Rd | no_license | fernandoh76/KARL | R | false | true | 759 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/initializeKARL.R
\name{initializeKARL}
\alias{initializeKARL}
\title{initializeKARL}
\usage{
initializeKARL(rank = "all",
silva.url = "http://www.arb-silva.de/fileadmin/silva_databases/current/Exports/SILVA_123_SSURef_Nr99_tax_silva.fasta.g... |
getwd()
USDA = read.csv("USDA.csv")
summary(USDA)
str(USDA)
max(USDA$Sodium)
max(USDA$Sodium, na.rm=TRUE)
which.max(USDA$Sodium, na.rm=TRUE)
which.max(USDA$Sodium)
max(USDA$Sodium)
names(USDA)
USDA$Description[265]
HighSodium = subset(USDA, Sodium > 10000)
nrow(HighSodium)
HighSodium$Description
match("CAVIAR", USDA$De... | /2015/mitx_ana_edge_15_071x/lec1-intro/recitation.R | no_license | bicepjai/myclasses | R | false | false | 3,330 | r | getwd()
USDA = read.csv("USDA.csv")
summary(USDA)
str(USDA)
max(USDA$Sodium)
max(USDA$Sodium, na.rm=TRUE)
which.max(USDA$Sodium, na.rm=TRUE)
which.max(USDA$Sodium)
max(USDA$Sodium)
names(USDA)
USDA$Description[265]
HighSodium = subset(USDA, Sodium > 10000)
nrow(HighSodium)
HighSodium$Description
match("CAVIAR", USDA$De... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matchNodes.R
\name{matchNodes}
\alias{matchNodes}
\title{matchNodes()}
\usage{
matchNodes(list_1, list_2)
}
\arguments{
\item{list_1}{A list object from createAncestry()}
\item{list_2}{Another list object from createAncestry()}
}
\descriptio... | /man/matchNodes.Rd | no_license | palautatan/csnap | R | false | true | 404 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matchNodes.R
\name{matchNodes}
\alias{matchNodes}
\title{matchNodes()}
\usage{
matchNodes(list_1, list_2)
}
\arguments{
\item{list_1}{A list object from createAncestry()}
\item{list_2}{Another list object from createAncestry()}
}
\descriptio... |
# Attemtping the replicate the ACSI index using sentiment analysis on Twitter data
# Using the Bing lexicon
# Loading necessary libraries
library(readr)
library(dplyr)
library(tidyr)
library(tidytext)
library(stringr)
library(ggplot2)
# Reading tweets from tweets csv. Also elimintaing retweets by choosing distinct te... | /airlineTweetSentimentAnalysisBing.r | no_license | atofarides/ieseDataSciTwitterProject | R | false | false | 5,130 | r | # Attemtping the replicate the ACSI index using sentiment analysis on Twitter data
# Using the Bing lexicon
# Loading necessary libraries
library(readr)
library(dplyr)
library(tidyr)
library(tidytext)
library(stringr)
library(ggplot2)
# Reading tweets from tweets csv. Also elimintaing retweets by choosing distinct te... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_edge_link.R
\name{geom_edge_link}
\alias{geom_edge_link}
\alias{geom_edge_link2}
\alias{geom_edge_link0}
\title{Draw edges as straight lines between nodes}
\usage{
geom_edge_link(mapping = NULL, data = get_edges("short"),
position = "i... | /man/geom_edge_link.Rd | permissive | malcolmbarrett/ggraph | R | false | true | 8,334 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_edge_link.R
\name{geom_edge_link}
\alias{geom_edge_link}
\alias{geom_edge_link2}
\alias{geom_edge_link0}
\title{Draw edges as straight lines between nodes}
\usage{
geom_edge_link(mapping = NULL, data = get_edges("short"),
position = "i... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\docType{methods}
\name{generateCircos}
\alias{generateCircos}
\title{generate circos input file}
\arguments{
\item{mat}{matrix}
\item{sorted.origins}{labels}
\item{SCTGs_}{SCTG numbers}
\item{origins}{labels}
\item{VWCTable}{matrix}
}
\description{
generate circ... | /man/generateCircos.Rd | no_license | XiaowenLin/uscropnetwork | R | false | false | 337 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\docType{methods}
\name{generateCircos}
\alias{generateCircos}
\title{generate circos input file}
\arguments{
\item{mat}{matrix}
\item{sorted.origins}{labels}
\item{SCTGs_}{SCTG numbers}
\item{origins}{labels}
\item{VWCTable}{matrix}
}
\description{
generate circ... |
#' Save MLflow Model Flavor
#'
#' Saves model in MLflow's flavor, to be used by package authors
#' to extend the supported MLflow models.
#'
#' @param x The serving function or model that will perform a prediction.
#' @param path Destination path where this MLflow compatible model
#' will be saved.
#'
#' @return This... | /mlflow/R/mlflow/R/flavor.R | permissive | kevinykuo/mlflow | R | false | false | 1,225 | r | #' Save MLflow Model Flavor
#'
#' Saves model in MLflow's flavor, to be used by package authors
#' to extend the supported MLflow models.
#'
#' @param x The serving function or model that will perform a prediction.
#' @param path Destination path where this MLflow compatible model
#' will be saved.
#'
#' @return This... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TwoSampleTest.HD-package.r
\docType{package}
\name{TwoSampleTest.HD-package}
\alias{TwoSampleTest.HD-package}
\alias{_PACKAGE}
\alias{TwoSampleTest.HDpackage}
\title{A two-sample test for the equality of distributions for high-dimensional dat... | /man/TwoSampleTest.HD-package.Rd | no_license | cran/TwoSampleTest.HD | R | false | true | 2,985 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TwoSampleTest.HD-package.r
\docType{package}
\name{TwoSampleTest.HD-package}
\alias{TwoSampleTest.HD-package}
\alias{_PACKAGE}
\alias{TwoSampleTest.HDpackage}
\title{A two-sample test for the equality of distributions for high-dimensional dat... |
get_queries_parameter_documentation <- function() {
return(c(
"a list of queries, each provided as a list of parameters. The queries are",
"executed by the [geocode] function in the order provided.",
"(ex. `list(list(method = 'osm'), list(method = 'census'), ...)`)"
))
}
get_global_params_para... | /R/geocode_combine.R | permissive | cran/tidygeocoder | R | false | false | 12,539 | r |
get_queries_parameter_documentation <- function() {
return(c(
"a list of queries, each provided as a list of parameters. The queries are",
"executed by the [geocode] function in the order provided.",
"(ex. `list(list(method = 'osm'), list(method = 'census'), ...)`)"
))
}
get_global_params_para... |
# function test cases
stopifnot(!four.in.a.row(player="X", v=c(rep("X", 3)), debug=TRUE))
stopifnot(!four.in.a.row(player="O", v=c(rep("X", 3)), debug=TRUE))
stopifnot(!four.in.a.row(player="X", v=c(rep("X", 3), rep("O", 3)), debug=TRUE))
stopifnot(!four.in.a.row(player="O", v=c(rep("X", ... | /Section2/hw3/hw3test.R | no_license | davidfastovich/STAT327 | R | false | false | 3,699 | r |
# function test cases
stopifnot(!four.in.a.row(player="X", v=c(rep("X", 3)), debug=TRUE))
stopifnot(!four.in.a.row(player="O", v=c(rep("X", 3)), debug=TRUE))
stopifnot(!four.in.a.row(player="X", v=c(rep("X", 3), rep("O", 3)), debug=TRUE))
stopifnot(!four.in.a.row(player="O", v=c(rep("X", ... |
library(lattice);
# load data
FILE.british.doctors <- "../../data/table-09-1_British-doctors-smoking-and-coronary-death.csv";
DF.british.doctors <- read.table(
file = FILE.british.doctors,
sep = "\t",
header = TRUE
);
DF.british.doctors;
pdf("example-9-2-1_british-doctors_data.pdf");
dotplot(
x = I(100000... | /exercises/statistics/generalized-linear-models/dobson-barnett/chap09/examples/example-9-2-1.R | no_license | paradisepilot/statistics | R | false | false | 9,714 | r |
library(lattice);
# load data
FILE.british.doctors <- "../../data/table-09-1_British-doctors-smoking-and-coronary-death.csv";
DF.british.doctors <- read.table(
file = FILE.british.doctors,
sep = "\t",
header = TRUE
);
DF.british.doctors;
pdf("example-9-2-1_british-doctors_data.pdf");
dotplot(
x = I(100000... |
//Plot a point using ggplot2 library
//Choose x and y coordinates
x=4
y=9
//Create a dataframe
D = data.frame(x,y)
//import ggplot2 library
library(ggplot2)
//Plot the point
ggplot()+geom_point(data=D,aes(x=x,y=y),size=10,color="blue")
| /plot_a_point.R | no_license | Praneet460/Get-Started-With-R | R | false | false | 263 | r | //Plot a point using ggplot2 library
//Choose x and y coordinates
x=4
y=9
//Create a dataframe
D = data.frame(x,y)
//import ggplot2 library
library(ggplot2)
//Plot the point
ggplot()+geom_point(data=D,aes(x=x,y=y),size=10,color="blue")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/settings.R
\name{settings}
\alias{settings}
\title{MachineShop Settings}
\usage{
settings(...)
}
\arguments{
\item{...}{character names of settings to view, \code{name = value} pairs
giving the values of settings to change, a vector... | /man/settings.Rd | no_license | cran/MachineShop | R | false | true | 6,065 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/settings.R
\name{settings}
\alias{settings}
\title{MachineShop Settings}
\usage{
settings(...)
}
\arguments{
\item{...}{character names of settings to view, \code{name = value} pairs
giving the values of settings to change, a vector... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.