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/ssm_operations.R
\name{ssm_start_session}
\alias{ssm_start_session}
\title{Initiates a connection to a target (for example, an instance) for a
Session Manager session}
\usage{
ssm_start_session(Target, DocumentName, Parameters)
}
\arguments{
... | /cran/paws.management/man/ssm_start_session.Rd | permissive | TWarczak/paws | R | false | true | 1,891 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssm_operations.R
\name{ssm_start_session}
\alias{ssm_start_session}
\title{Initiates a connection to a target (for example, an instance) for a
Session Manager session}
\usage{
ssm_start_session(Target, DocumentName, Parameters)
}
\arguments{
... |
#!/usr/bin/env Rscript
#*****************
# OPTION PARSING *
#*****************
suppressPackageStartupMessages(library("optparse"))
option_list <- list (
make_option( c("--input", "-i"), default = 'stdin',
help = "Input matrix. 'stdin' for reading from standard input [default = %default]." ),
... | /R/p-adjust.R | no_license | bborsari/Scripts | R | false | false | 2,369 | r | #!/usr/bin/env Rscript
#*****************
# OPTION PARSING *
#*****************
suppressPackageStartupMessages(library("optparse"))
option_list <- list (
make_option( c("--input", "-i"), default = 'stdin',
help = "Input matrix. 'stdin' for reading from standard input [default = %default]." ),
... |
\name{qat_analyse_histogram_test_1d}
\alias{qat_analyse_histogram_test_1d}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Perform a histogram test with a given metric}
\description{This check divides the data into blocks, estimates their probability density functions by histograms and compares th... | /man/qat_analyse_histogram_test_1d.Rd | no_license | cran/qat | R | false | false | 2,463 | rd | \name{qat_analyse_histogram_test_1d}
\alias{qat_analyse_histogram_test_1d}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Perform a histogram test with a given metric}
\description{This check divides the data into blocks, estimates their probability density functions by histograms and compares th... |
# This file is auto-generated by h2o-3/h2o-bindings/bin/gen_R.py
# Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details)
#'
# -------------------------- KMeans Model in H2O -------------------------- #
#'
#' Performs k-means clustering on an H2O dataset
#'
#' @param training_frame Id of the trai... | /h2o-r/h2o-package/R/kmeans.R | permissive | RaghunandanVenkatesh/h2o-3 | R | false | false | 18,115 | r | # This file is auto-generated by h2o-3/h2o-bindings/bin/gen_R.py
# Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details)
#'
# -------------------------- KMeans Model in H2O -------------------------- #
#'
#' Performs k-means clustering on an H2O dataset
#'
#' @param training_frame Id of the trai... |
get_tracks <- function(albums) {
################################################################################
# shame- and mindlessly copied from RCharlie.com
client_id <- "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
client_secret <- "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" # except these ofc
access_token <- POST("... | /get_tracks.R | no_license | MarauderPixie/broken__spotify | R | false | false | 4,100 | r | get_tracks <- function(albums) {
################################################################################
# shame- and mindlessly copied from RCharlie.com
client_id <- "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
client_secret <- "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" # except these ofc
access_token <- POST("... |
#' @export
process_alterations <- function(alterations, include_hetdel = FALSE,
# include_homdel = FALSE,
na.fun = khtools::na2zero) {
if (all(is.na(na.fun)) || is.null(na.fun)) {
na.fun = identity
} else if (is.character(na.fun)) {
... | /R/alt_process.R | no_license | kevinmhadi/khtools | R | false | false | 8,418 | r | #' @export
process_alterations <- function(alterations, include_hetdel = FALSE,
# include_homdel = FALSE,
na.fun = khtools::na2zero) {
if (all(is.na(na.fun)) || is.null(na.fun)) {
na.fun = identity
} else if (is.character(na.fun)) {
... |
# for challenge/exercise 6
##1
# load iris.csv as a variable
iris = read.csv("iris.csv")
# to replicate head function in R code using variable to return top ten lines
iris[c(1:10),]
# alternatively for top ten lines
head(iris,10)
##2a
# for loading iris.csv
iris = read.csv("iris.csv")
# for last two rows o... | /exercise6.R | no_license | jakebrndt/ICB2019_Exercise06 | R | false | false | 1,125 | r | # for challenge/exercise 6
##1
# load iris.csv as a variable
iris = read.csv("iris.csv")
# to replicate head function in R code using variable to return top ten lines
iris[c(1:10),]
# alternatively for top ten lines
head(iris,10)
##2a
# for loading iris.csv
iris = read.csv("iris.csv")
# for last two rows o... |
plot.saery <-
function(direct, eblup, mse.eblup, sigma2edi){
resid <- direct-eblup
resid <- resid[order(sigma2edi)]
devAskNewPage(TRUE)
par(bty="n")
plot(resid, type = "l", col=1, ylab = "", xaxt = "n", pch = 1)
abline(h=0, lty = 2, lwd = 2, col = "mediumseagreen")
title(main = expression(paste("Res... | /saery/R/plot.saery.R | no_license | ingted/R-Examples | R | false | false | 1,318 | r | plot.saery <-
function(direct, eblup, mse.eblup, sigma2edi){
resid <- direct-eblup
resid <- resid[order(sigma2edi)]
devAskNewPage(TRUE)
par(bty="n")
plot(resid, type = "l", col=1, ylab = "", xaxt = "n", pch = 1)
abline(h=0, lty = 2, lwd = 2, col = "mediumseagreen")
title(main = expression(paste("Res... |
## Put comments here that give an overall description of what your
## functions do
## This function creates a special "matrix", which is really a list containing
## a function to:
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of the inverse
## 4. get the value of the inverse
... | /cachematrix.R | no_license | GregFRogers/ProgrammingAssignment2 | R | false | false | 1,337 | r | ## Put comments here that give an overall description of what your
## functions do
## This function creates a special "matrix", which is really a list containing
## a function to:
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of the inverse
## 4. get the value of the inverse
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/piItemsAttributeTemplate.r
\name{piItemsAttributeTemplate}
\alias{piItemsAttributeTemplate}
\title{Generate an instance of the piItemsAttributeTemplate PI Web API class}
\usage{
piItemsAttributeTemplate(items = NULL, links = NULL)
}
\argument... | /man/piItemsAttributeTemplate.Rd | permissive | aj9253/PI-Web-API-Client-R | R | false | true | 492 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/piItemsAttributeTemplate.r
\name{piItemsAttributeTemplate}
\alias{piItemsAttributeTemplate}
\title{Generate an instance of the piItemsAttributeTemplate PI Web API class}
\usage{
piItemsAttributeTemplate(items = NULL, links = NULL)
}
\argument... |
test_that("run_recode_all updates all the variables ", {
dict_basic <- tibble::tibble(variable = c("A", "A", "B", "B", "C"),
value = c(1, 2, 1, 2, 1),
definition = c("cat", "dog", "fred", "george", "lonely"))
def_basic <- def_prep(dict_ba... | /tests/testthat/test-run-recode-all.R | permissive | davisadamw/definer | R | false | false | 935 | r | test_that("run_recode_all updates all the variables ", {
dict_basic <- tibble::tibble(variable = c("A", "A", "B", "B", "C"),
value = c(1, 2, 1, 2, 1),
definition = c("cat", "dog", "fred", "george", "lonely"))
def_basic <- def_prep(dict_ba... |
\name{MiClip.binding}
\alias{MiClip.binding}
\title{ Identify binding sites }
\description{
This function implements the second HMM and tries to identify binding sites within enriched bins.
}
\usage{MiClip.binding(mic,quiet=FALSE)
}
\arguments{
\item{mic}{
\code{mic} is an ojbect of class "MiClip" returned by \... | /man/MiClip.binding.Rd | no_license | cran/MiClip | R | false | false | 2,169 | rd | \name{MiClip.binding}
\alias{MiClip.binding}
\title{ Identify binding sites }
\description{
This function implements the second HMM and tries to identify binding sites within enriched bins.
}
\usage{MiClip.binding(mic,quiet=FALSE)
}
\arguments{
\item{mic}{
\code{mic} is an ojbect of class "MiClip" returned by \... |
pkgs <- c("shiny", "shinyjs", "leaflet", "shinythemes", "leaflet.extras", "DT", "janitor", "ggplot2", "dplyr", "scales",
"tidyverse", "lubridate", "RSocrata", "leaflet", "scales", "sf", "sp", "rgdal", "rsconnect")
lapply(pkgs, require, character.only = TRUE)
#years_ago = today() - years(2)
#crash_url = ... | /app.R | no_license | enzobo/app1_disciplina_estatistica_espacial | R | false | false | 16,031 | r | pkgs <- c("shiny", "shinyjs", "leaflet", "shinythemes", "leaflet.extras", "DT", "janitor", "ggplot2", "dplyr", "scales",
"tidyverse", "lubridate", "RSocrata", "leaflet", "scales", "sf", "sp", "rgdal", "rsconnect")
lapply(pkgs, require, character.only = TRUE)
#years_ago = today() - years(2)
#crash_url = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parametros_nbr14653.R
\name{amplitude}
\alias{amplitude}
\alias{g_precisao}
\alias{campo_arbitrio}
\alias{aval_intervalar}
\title{Based on a dataframe containing the estimated values, returns amplitude
according to NBR14.653-2}
\usage{
amplit... | /man/parametros_NBR.Rd | permissive | lfpdroubi/appraiseR | R | false | true | 1,397 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parametros_nbr14653.R
\name{amplitude}
\alias{amplitude}
\alias{g_precisao}
\alias{campo_arbitrio}
\alias{aval_intervalar}
\title{Based on a dataframe containing the estimated values, returns amplitude
according to NBR14.653-2}
\usage{
amplit... |
context("get_presidential_candidate_total")
test_that("expected errors", {
expect_warning(expect_error(get_presidential_candidate_total(16), "Incorrect cycle"), "Cycle should be four-digit year")
expect_warning(expect_error(get_presidential_candidate_total(1995), "Incorrect cycle"), "Cycle should be four-digit yea... | /tests/testthat/test-get_presidential_candidate_total.R | no_license | DavytJ/ProPublicaR | R | false | false | 585 | r | context("get_presidential_candidate_total")
test_that("expected errors", {
expect_warning(expect_error(get_presidential_candidate_total(16), "Incorrect cycle"), "Cycle should be four-digit year")
expect_warning(expect_error(get_presidential_candidate_total(1995), "Incorrect cycle"), "Cycle should be four-digit yea... |
## Create TDHeat05.
# Read raw data
SB_Yield <- read.csv(system.file("extdata", "SB_yield.csv",
package = "statgenSTA"),
stringsAsFactors = FALSE, na.strings = c("NA", "*"))
# Restrict to HEAT05
Heat05 <- SB_Yield[SB_Yield[["Env"]] == "HEAT05", ]
# Create o... | /data-raw/exampleData.R | no_license | ntduc11/statgenSTA | R | false | false | 4,399 | r | ## Create TDHeat05.
# Read raw data
SB_Yield <- read.csv(system.file("extdata", "SB_yield.csv",
package = "statgenSTA"),
stringsAsFactors = FALSE, na.strings = c("NA", "*"))
# Restrict to HEAT05
Heat05 <- SB_Yield[SB_Yield[["Env"]] == "HEAT05", ]
# Create o... |
#' Read and evaluate a Python script
#'
#' Evaluate a Python script within the Python main module, then make all public
#' (non-module) objects within the main Python module available within the
#' specified R environment.
#'
#' To prevent assignment of objects into R, pass `NULL` for the `envir`
#' parameter.
#'
#' ... | /R/source.R | permissive | dimitri-mar/reticulate | R | false | false | 1,737 | r |
#' Read and evaluate a Python script
#'
#' Evaluate a Python script within the Python main module, then make all public
#' (non-module) objects within the main Python module available within the
#' specified R environment.
#'
#' To prevent assignment of objects into R, pass `NULL` for the `envir`
#' parameter.
#'
#' ... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 273308
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 273308
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/fpu/fpu-10Xe-correct02-nonuniform-depth... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Miller-Marin/fpu/fpu-10Xe-correct02-nonuniform-depth-3/fpu-10Xe-correct02-nonuniform-depth-3.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 688 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 273308
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 273308
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/fpu/fpu-10Xe-correct02-nonuniform-depth... |
dataSets <- c("tothill2008", "bentink2011", "dressman2007", "spentzos_bidmc552011", "spentzos_upenn2011", "birrer2010", "crijin2009", "yoshihara2010", "mok2009", "denkert2009", "marquez2005")
#dataSets <- c("tcga2011")
number <- 0
for(i in 1:length(dataSets)) {
setwd( sprintf("/common/projects/trisch/Ovarian_ca... | /r_code/angiogenic/patient_counter.R | no_license | xulijunji/GENIUS_ovarian | R | false | false | 939 | r | dataSets <- c("tothill2008", "bentink2011", "dressman2007", "spentzos_bidmc552011", "spentzos_upenn2011", "birrer2010", "crijin2009", "yoshihara2010", "mok2009", "denkert2009", "marquez2005")
#dataSets <- c("tcga2011")
number <- 0
for(i in 1:length(dataSets)) {
setwd( sprintf("/common/projects/trisch/Ovarian_ca... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Bayesian-IDP.R
\name{bayesian.imprecise}
\alias{bayesian.imprecise}
\title{Bayesian Imprecise Dirichlet Prior}
\usage{
bayesian.imprecise(x, y, s = sqrt(2) - 1, c = 0.5, mc.samples = 10000)
}
\arguments{
\item{x}{First vector of observations}... | /man/bayesian.imprecise.Rd | no_license | JacintoCC/rNPBST | R | false | true | 709 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Bayesian-IDP.R
\name{bayesian.imprecise}
\alias{bayesian.imprecise}
\title{Bayesian Imprecise Dirichlet Prior}
\usage{
bayesian.imprecise(x, y, s = sqrt(2) - 1, c = 0.5, mc.samples = 10000)
}
\arguments{
\item{x}{First vector of observations}... |
library(rgdal)
library(rgeos)
library(yaml)
library(sf)
library(dplyr)
library(raster)
library(magrittr)
library(lidR)
##-------------------------------------- LiDAR metric --------------------------------------
metrik_arci <- function(rn, nr, cls, z, h) # first return canopy index
{
ar <- (rn > 0 & z >= 0) # all... | /ConsoleTNS1_New.R | no_license | firstime09/00RCode | R | false | false | 2,868 | r | library(rgdal)
library(rgeos)
library(yaml)
library(sf)
library(dplyr)
library(raster)
library(magrittr)
library(lidR)
##-------------------------------------- LiDAR metric --------------------------------------
metrik_arci <- function(rn, nr, cls, z, h) # first return canopy index
{
ar <- (rn > 0 & z >= 0) # all... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.size.R
\name{print.size}
\alias{print.size}
\title{Print size object}
\usage{
\method{print}{size}(x, ...)
}
\arguments{
\item{x}{\code{size} object.}
\item{...}{further arguments passed to or from other methods.}
}
\descr... | /man/print.size.Rd | no_license | cran/seqtest | R | false | true | 1,435 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.size.R
\name{print.size}
\alias{print.size}
\title{Print size object}
\usage{
\method{print}{size}(x, ...)
}
\arguments{
\item{x}{\code{size} object.}
\item{...}{further arguments passed to or from other methods.}
}
\descr... |
library(tidyverse)
library(janitor)
gapminder <- read_csv("C:/Users/Allen/Desktop/MSiA/boot camp 082620/data/gapminder5.csv") %>%
clean_names()
y <- '2002'
x <- sum(str_detect(gapminder$year, y))
if(x > 0){
print(paste("Yes", "there is a total of", x, "entries of", y))
} else {
print("no entries")
}
head... | /submissions/day4exercise_AllenXu.R | no_license | latterfate/bootcamp-2020 | R | false | false | 404 | r | library(tidyverse)
library(janitor)
gapminder <- read_csv("C:/Users/Allen/Desktop/MSiA/boot camp 082620/data/gapminder5.csv") %>%
clean_names()
y <- '2002'
x <- sum(str_detect(gapminder$year, y))
if(x > 0){
print(paste("Yes", "there is a total of", x, "entries of", y))
} else {
print("no entries")
}
head... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ModelMetrics.R
\name{mlogLoss}
\alias{mlogLoss}
\title{Multiclass Log Loss}
\usage{
mlogLoss(actual, predicted)
}
\arguments{
\item{actual}{A vector of the labels. Can be \code{numeric, character, or factor}}
\item{predicted}{matrix of predi... | /man/mlogLoss.Rd | no_license | kush99993s/ModelMetrics | R | false | true | 388 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ModelMetrics.R
\name{mlogLoss}
\alias{mlogLoss}
\title{Multiclass Log Loss}
\usage{
mlogLoss(actual, predicted)
}
\arguments{
\item{actual}{A vector of the labels. Can be \code{numeric, character, or factor}}
\item{predicted}{matrix of predi... |
#' Generalized Linear Model
#'
#' Fits generalized linear models, specified by giving a symbolic description of
#' the linear predictor and a description of the error distribution.
#'
#' @param family description of the error distribution and link function to be
#' used in the model. Set automatically according to t... | /R/ML_GLMModel.R | no_license | zhaoxiaohe/MachineShop | R | false | false | 4,093 | r | #' Generalized Linear Model
#'
#' Fits generalized linear models, specified by giving a symbolic description of
#' the linear predictor and a description of the error distribution.
#'
#' @param family description of the error distribution and link function to be
#' used in the model. Set automatically according to t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{wGMV}
\alias{wGMV}
\title{Sample estimator of the weights of the global minimum variance portfolio}
\usage{
wGMV(data)
}
\arguments{
\item{data}{an n by p matrix of asset returns. Columns represent different
assets rows are obse... | /man/wGMV.Rd | no_license | cran/DOSPortfolio | R | false | true | 909 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{wGMV}
\alias{wGMV}
\title{Sample estimator of the weights of the global minimum variance portfolio}
\usage{
wGMV(data)
}
\arguments{
\item{data}{an n by p matrix of asset returns. Columns represent different
assets rows are obse... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Phemd-methods.R
\name{selectMarkers}
\alias{selectMarkers}
\title{Accessor function for gene/protein markers measured in experiment}
\usage{
selectMarkers(obj)
}
\arguments{
\item{obj}{Phemd object}
}
\value{
Vector representing gene/protein ... | /man/selectMarkers.Rd | no_license | zorrodong/phemd | R | false | true | 570 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Phemd-methods.R
\name{selectMarkers}
\alias{selectMarkers}
\title{Accessor function for gene/protein markers measured in experiment}
\usage{
selectMarkers(obj)
}
\arguments{
\item{obj}{Phemd object}
}
\value{
Vector representing gene/protein ... |
update.trans.prob.nhmm <-
function(Z, dgamma, gamma, trans.par1, trans.par2,iter.conj.grad=10, dist.included=TRUE){
trans.par1.old <- trans.par1
trans.par2.old <- trans.par2
gradient.old <- compute.gradient(Z, dgamma, gamma, trans.par1.old, trans.par2.old,dist.included=dist.included)
delta2.old <- -gradient.old
... | /R/update.trans.prob.nhmm.R | no_license | alabarga/ZIGNHMMfdr | R | false | false | 1,351 | r | update.trans.prob.nhmm <-
function(Z, dgamma, gamma, trans.par1, trans.par2,iter.conj.grad=10, dist.included=TRUE){
trans.par1.old <- trans.par1
trans.par2.old <- trans.par2
gradient.old <- compute.gradient(Z, dgamma, gamma, trans.par1.old, trans.par2.old,dist.included=dist.included)
delta2.old <- -gradient.old
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{nzSml84}
\alias{nzSml84}
\title{nzSml84}
\format{
A SpatialPolygonsDataframe object with 3 features
\describe{
\item{name}{Name of the island}
...
}
}
\source{
\url{www.data.linz.govt.nz}
}
\usage{
nzSml84
}
\d... | /man/nzSml84.Rd | permissive | orb16/southernMaps | R | false | true | 434 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{nzSml84}
\alias{nzSml84}
\title{nzSml84}
\format{
A SpatialPolygonsDataframe object with 3 features
\describe{
\item{name}{Name of the island}
...
}
}
\source{
\url{www.data.linz.govt.nz}
}
\usage{
nzSml84
}
\d... |
\name{facetsY-package}
\alias{facetsY-package}
\alias{facetsY}
\docType{package}
\title{
\packageTitle{facetsY}
}
\description{
\packageDescription{facetsY}
}
\details{
FACETS Y stands for Fraction and Allelic Copy number Estimation from
Tumor/normal Sequencing. INCLUDING Y CHROMOSOME. It uses high coverage nex... | /man/facets-package.Rd | no_license | BastienNguyen/facetsY | R | false | false | 868 | rd | \name{facetsY-package}
\alias{facetsY-package}
\alias{facetsY}
\docType{package}
\title{
\packageTitle{facetsY}
}
\description{
\packageDescription{facetsY}
}
\details{
FACETS Y stands for Fraction and Allelic Copy number Estimation from
Tumor/normal Sequencing. INCLUDING Y CHROMOSOME. It uses high coverage nex... |
# iterate t test over multiple columsn
#### Data ####
set.seed(333)
a <- rnorm(20, 10, 1)
b <- rnorm(20, 15, 2)
c <- rnorm(20, 20, 3)
grp <- rep(c('m', 'y'),10)
test_data <- data.frame(a, b, c, grp)
test_data
#### Method 1 ####
library(tidyverse)
test_data %>%
select_if(is.numeric) %>%
m... | /multiple-t-tests-over-columns.R | no_license | drkamarul/Programming | R | false | false | 597 | r |
# iterate t test over multiple columsn
#### Data ####
set.seed(333)
a <- rnorm(20, 10, 1)
b <- rnorm(20, 15, 2)
c <- rnorm(20, 20, 3)
grp <- rep(c('m', 'y'),10)
test_data <- data.frame(a, b, c, grp)
test_data
#### Method 1 ####
library(tidyverse)
test_data %>%
select_if(is.numeric) %>%
m... |
# Multiple Regression - Andrew Trick
# Setup and library import
setwd("E:/projects/it460/week_two")
library("psych")
# Data import
df <- read.csv("../data/insurance.csv", stringsAsFactors = TRUE)
#############
#### EDA ####
#############
str(df)
#charges
summary(df$charges)
hist(df$charges)
summary(df$bmi) # R... | /week_two/2-1.R | no_license | leaflettuce/ml_algorithms_in_R | R | false | false | 1,465 | r | # Multiple Regression - Andrew Trick
# Setup and library import
setwd("E:/projects/it460/week_two")
library("psych")
# Data import
df <- read.csv("../data/insurance.csv", stringsAsFactors = TRUE)
#############
#### EDA ####
#############
str(df)
#charges
summary(df$charges)
hist(df$charges)
summary(df$bmi) # R... |
#!/usr/bin/env Rscript
# Normalizing the raw data
suppressMessages(library(data.table))
suppressMessages(library(caret))
suppressMessages(library(yaGST))
suppressMessages(library(Miracle))
setwd("/export/cse02/rmall/AntiPD1_Challenge/APD1DC2021/Model_building/")
deg_df <- read_excel("Required_Files/predictive genes... | /Model_building/Scripts/subchallenge3_deg_model.R | no_license | Sidra-TBI-FCO/APD1DC2021 | R | false | false | 526 | r | #!/usr/bin/env Rscript
# Normalizing the raw data
suppressMessages(library(data.table))
suppressMessages(library(caret))
suppressMessages(library(yaGST))
suppressMessages(library(Miracle))
setwd("/export/cse02/rmall/AntiPD1_Challenge/APD1DC2021/Model_building/")
deg_df <- read_excel("Required_Files/predictive genes... |
library(ROL)
library(ggplot2)
library(dplyr)
library(purrr)
library(driver)
library(stringr)
library(phyloseq)
library(mixtools)
tax_level <- "ASV"
logratio <- "clr"
uncertain_scores <- FALSE
if(uncertain_scores) {
Sigmas <- load_full_posteriors(tax_level="ASV", logratio="clr")
n_hosts <- length(Sigmas)
n_taxa... | /exploratory/universality_scoring.R | no_license | kimberlyroche/ROL | R | false | false | 12,893 | r | library(ROL)
library(ggplot2)
library(dplyr)
library(purrr)
library(driver)
library(stringr)
library(phyloseq)
library(mixtools)
tax_level <- "ASV"
logratio <- "clr"
uncertain_scores <- FALSE
if(uncertain_scores) {
Sigmas <- load_full_posteriors(tax_level="ASV", logratio="clr")
n_hosts <- length(Sigmas)
n_taxa... |
library(dplyr);
library(ggplot2);
df <- read.csv("saidas.11.05.2020/papiallrapl");
k <- df %>% select(counter,size,memtype,temp,opt,value) %>%
group_by(counter,size,memtype,temp,opt) %>% summarise(mean=mean(value), n=n(), sd=sd(value), se=sd/sqrt(n), ic=2.576*se)
write.csv(k, "pp.csv")
exit
... | /avx2/simple/papi/plot.r | no_license | mittmann/streaming_loads | R | false | false | 735 | r | library(dplyr);
library(ggplot2);
df <- read.csv("saidas.11.05.2020/papiallrapl");
k <- df %>% select(counter,size,memtype,temp,opt,value) %>%
group_by(counter,size,memtype,temp,opt) %>% summarise(mean=mean(value), n=n(), sd=sd(value), se=sd/sqrt(n), ic=2.576*se)
write.csv(k, "pp.csv")
exit
... |
testlist <- list(data = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 5L)), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610555072-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 254 | r | testlist <- list(data = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 5L)), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_top10percent_genesets_file.R
\name{create_top10percent_genesets_file}
\alias{create_top10percent_genesets_file}
\title{Create gene covar file}
\usage{
create_top10percent_genesets_file(
genesOutFile,
ctd,
annotLevel,
specificit... | /man/create_top10percent_genesets_file.Rd | no_license | mayunlong89/MAGMA_Celltyping | R | false | true | 1,281 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_top10percent_genesets_file.R
\name{create_top10percent_genesets_file}
\alias{create_top10percent_genesets_file}
\title{Create gene covar file}
\usage{
create_top10percent_genesets_file(
genesOutFile,
ctd,
annotLevel,
specificit... |
context("grouped_ggdotplotstats")
testthat::test_that(
desc = "grouped_ggdotplotstats works",
code = {
testthat::skip_on_cran()
# for reproducibility
set.seed(123)
# removing factor level with very few no. of observations
df <- dplyr::filter(.data = ggplot2::mpg, cyl %in% c("4", "6... | /data/genthat_extracted_code/ggstatsplot/tests/test_grouped_ggdotplotstats.R | no_license | surayaaramli/typeRrh | R | false | false | 1,480 | r | context("grouped_ggdotplotstats")
testthat::test_that(
desc = "grouped_ggdotplotstats works",
code = {
testthat::skip_on_cran()
# for reproducibility
set.seed(123)
# removing factor level with very few no. of observations
df <- dplyr::filter(.data = ggplot2::mpg, cyl %in% c("4", "6... |
.is.word2vec <- function(obj) {
if (!inherits(obj, "word2vec")) return(FALSE)
if (!identical(class(obj$model_file), "character")) return(FALSE)
if (!file.exists(obj$model_file)) return(FALSE)
if (length(obj$model_file) > 1) return(FALSE)
if (file.info(obj$model_file)$isdir) return(FALSE)
return(TRUE)
}
| /R/utils.R | permissive | cpeeples/wordVectors | R | false | false | 314 | r | .is.word2vec <- function(obj) {
if (!inherits(obj, "word2vec")) return(FALSE)
if (!identical(class(obj$model_file), "character")) return(FALSE)
if (!file.exists(obj$model_file)) return(FALSE)
if (length(obj$model_file) > 1) return(FALSE)
if (file.info(obj$model_file)$isdir) return(FALSE)
return(TRUE)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/traffic-proj.R
\name{traffic_proj}
\alias{traffic_proj}
\title{Output list of traffic flow projections by year}
\usage{
traffic_proj(base_yr, base_aadt, pc_hgv, opening_yr, region)
}
\arguments{
\item{base_yr}{The year of observed traffic vol... | /man/traffic_proj.Rd | no_license | Allisterh/cba | R | false | true | 774 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/traffic-proj.R
\name{traffic_proj}
\alias{traffic_proj}
\title{Output list of traffic flow projections by year}
\usage{
traffic_proj(base_yr, base_aadt, pc_hgv, opening_yr, region)
}
\arguments{
\item{base_yr}{The year of observed traffic vol... |
/과제#4.R | no_license | nzuiw/Rtest | R | false | false | 3,563 | r | ||
# Jake Yeung
# Date of Creation: 2020-02-16
# File: ~/projects/scchic/scripts/rstudioserver_analysis/BM_all_merged_from_hiddendomains/1-GLMPCA_from_hiddendomains.R
# Don't correct variance
rm(list=ls())
jstart <- Sys.time()
library(parallel)
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
librar... | /scripts/rstudioserver_analysis/BM_all_merged_from_hiddendomains/1-GLMPCA_from_hiddendomains.R | no_license | jakeyeung/sortchicAllScripts | R | false | false | 9,292 | r | # Jake Yeung
# Date of Creation: 2020-02-16
# File: ~/projects/scchic/scripts/rstudioserver_analysis/BM_all_merged_from_hiddendomains/1-GLMPCA_from_hiddendomains.R
# Don't correct variance
rm(list=ls())
jstart <- Sys.time()
library(parallel)
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
librar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tests.R
\name{permTest}
\alias{permTest}
\title{Random mark permutation test for SPDs}
\usage{
permTest(x, marks, timeRange, nsim, bins = NA, runm = NA,
datenormalised = FALSE, spdnormalised = FALSE, raw = FALSE,
verbose = TRUE)
}
\argume... | /man/permTest.Rd | no_license | joeroe/rcarbon | R | false | true | 3,920 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tests.R
\name{permTest}
\alias{permTest}
\title{Random mark permutation test for SPDs}
\usage{
permTest(x, marks, timeRange, nsim, bins = NA, runm = NA,
datenormalised = FALSE, spdnormalised = FALSE, raw = FALSE,
verbose = TRUE)
}
\argume... |
##' createSqTemplate function creates a new google sheet in the template form which we follow for the quantified self data recording process
#'
#' This function creates a new google sheet called "Self Quant", and worksheet called "Template"
#' @param title parameter for the name of the google sheet, defaults to Self Qu... | /R/createSqTemplate.R | no_license | maczokni/selfquant | R | false | false | 1,424 | r | ##' createSqTemplate function creates a new google sheet in the template form which we follow for the quantified self data recording process
#'
#' This function creates a new google sheet called "Self Quant", and worksheet called "Template"
#' @param title parameter for the name of the google sheet, defaults to Self Qu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/webpower.R
\name{wp.anova.binary}
\alias{wp.anova.binary}
\title{Statistical Power Analysis for One-way ANOVA with Binary Data}
\usage{
wp.anova.binary(k = NULL, n = NULL, V = NULL, alpha = 0.05,
power = NULL)
}
\arguments{
\item{... | /man/wp.anova.binary.Rd | no_license | cran/WebPower | R | false | true | 3,823 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/webpower.R
\name{wp.anova.binary}
\alias{wp.anova.binary}
\title{Statistical Power Analysis for One-way ANOVA with Binary Data}
\usage{
wp.anova.binary(k = NULL, n = NULL, V = NULL, alpha = 0.05,
power = NULL)
}
\arguments{
\item{... |
\name{computeMDS95}
\encoding{UTF-8}
\alias{computeMDS95}
\title{
computeMDS95
}
\description{
Fist Mediterranean Adherence score index, developed by Trichopoulou et al. which has been extensively used and modified.
}
\usage{
computeMDS95(data, Vegetables, Legumes, FruitAndNuts,
Cereals, Potatoes = NULL,... | /man/computeMDS95.Rd | no_license | cran/MedDietScore | R | false | false | 6,007 | rd | \name{computeMDS95}
\encoding{UTF-8}
\alias{computeMDS95}
\title{
computeMDS95
}
\description{
Fist Mediterranean Adherence score index, developed by Trichopoulou et al. which has been extensively used and modified.
}
\usage{
computeMDS95(data, Vegetables, Legumes, FruitAndNuts,
Cereals, Potatoes = NULL,... |
.broadSets <- function()
getBroadSets(system.file("extdata", "Broad.xml", package="GSEABase"))
.check_subset_Ok <- function(geneIds, gs) {
checkTrue(validObject(gs))
checkIdentical(length(geneIds), length(geneIds(gs)))
checkTrue(all(geneIds==geneIds(gs)))
}
getClassOfSlot <- function(klass, slot) {
... | /R-library/GSEABase/UnitTests/GeneSet_test.R | no_license | jmswenson/src-from-orona | R | false | false | 6,735 | r | .broadSets <- function()
getBroadSets(system.file("extdata", "Broad.xml", package="GSEABase"))
.check_subset_Ok <- function(geneIds, gs) {
checkTrue(validObject(gs))
checkIdentical(length(geneIds), length(geneIds(gs)))
checkTrue(all(geneIds==geneIds(gs)))
}
getClassOfSlot <- function(klass, slot) {
... |
## The functions cache the inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = numeric()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(solve) i <<- solve
getinverse ... | /cachematrix.R | no_license | sylwia101/ProgrammingAssignment2 | R | false | false | 871 | r | ## The functions cache the inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = numeric()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(solve) i <<- solve
getinverse ... |
#' Gradient Boosted Machines
#'
#' Builds gradient boosted classification trees, and gradient boosted regression trees on a parsed data set.
#'
#' The default distribution function will guess the model type
#' based on the response column typerun properly the response column must be an numeric for "gaussian" or an
#' e... | /h2o-r/h2o-package/R/gbm.R | permissive | herberteuler/h2o-3 | R | false | false | 7,543 | r | #' Gradient Boosted Machines
#'
#' Builds gradient boosted classification trees, and gradient boosted regression trees on a parsed data set.
#'
#' The default distribution function will guess the model type
#' based on the response column typerun properly the response column must be an numeric for "gaussian" or an
#' e... |
# nocov start - compat-downstream-deps.R
# Latest version: https://github.com/r-lib/rlang/blob/master/R/compat-downstream-deps.R
# No dependencies but uses rlang and pak if available. In interactive
# sessions the user is prompted to update outdated packages. If they
# choose no, they are informed about the global opt... | /R/compat-downstream-deps.R | permissive | seankross/rlang | R | false | false | 8,943 | r | # nocov start - compat-downstream-deps.R
# Latest version: https://github.com/r-lib/rlang/blob/master/R/compat-downstream-deps.R
# No dependencies but uses rlang and pak if available. In interactive
# sessions the user is prompted to update outdated packages. If they
# choose no, they are informed about the global opt... |
rm(list=ls())
.libPaths("/global/home/users/cbrook/R/x86_64-pc-linux-gnu-library/4.0")
#setwd("/Users/caraebrook/Documents/R/R_repositories/Berkeley-Reopening/Dec-2020/all-runs/Re-Run-12-24/FigS1/")
#no group, no test, no trace
library(data.table)
library(plyr)
library(dplyr)
library(deSolve)
library(matrixStats)
li... | /all-model-runs/Fig4-Layered-Interventions-higher-prop-UCB/weekly/weekly-7-test-days-trace-1.R | no_license | carabrook/Berkeley-COVID-testing | R | false | false | 85,415 | r | rm(list=ls())
.libPaths("/global/home/users/cbrook/R/x86_64-pc-linux-gnu-library/4.0")
#setwd("/Users/caraebrook/Documents/R/R_repositories/Berkeley-Reopening/Dec-2020/all-runs/Re-Run-12-24/FigS1/")
#no group, no test, no trace
library(data.table)
library(plyr)
library(dplyr)
library(deSolve)
library(matrixStats)
li... |
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_gcamusa_LA122.Refining
#'
#' Downscales crude oil, corn ethanol, and biodiesel refining inputs and outputs to state-level.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on command
#' @return D... | /R/zchunk_LA122.Refining.R | permissive | JGCRI/gcamdata | R | false | false | 8,833 | r | # Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_gcamusa_LA122.Refining
#'
#' Downscales crude oil, corn ethanol, and biodiesel refining inputs and outputs to state-level.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on command
#' @return D... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mutCovariate.indel.R
\name{mutCovariate.indel}
\alias{mutCovariate.indel}
\title{Prepare covariates matrix by chromosome for indel model fitting.}
\usage{
mutCovariate.indel(mask.regions.file = system.file("extdata",
"mask_regions.RDS", pac... | /MutSpot_Rpackage/man/mutCovariate.indel.Rd | no_license | danchubb/hg38MutSpot | R | false | true | 1,803 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mutCovariate.indel.R
\name{mutCovariate.indel}
\alias{mutCovariate.indel}
\title{Prepare covariates matrix by chromosome for indel model fitting.}
\usage{
mutCovariate.indel(mask.regions.file = system.file("extdata",
"mask_regions.RDS", pac... |
allData = read.table('household_power_consumption.txt', sep = ';', header = TRUE, na.strings = '?')
febData = allData[allData$Date=='1/2/2007' | allData$Date=='2/2/2007',]
datetime = strptime(paste(febData[,1], febData[,2]), '%d/%m/%Y %H:%M:%S')
plotData = cbind(datetime, febData[,3:9])
png(file = 'Plot3.png', width ... | /Plot3.R | no_license | sumithras/ExData_Plotting1 | R | false | false | 712 | r | allData = read.table('household_power_consumption.txt', sep = ';', header = TRUE, na.strings = '?')
febData = allData[allData$Date=='1/2/2007' | allData$Date=='2/2/2007',]
datetime = strptime(paste(febData[,1], febData[,2]), '%d/%m/%Y %H:%M:%S')
plotData = cbind(datetime, febData[,3:9])
png(file = 'Plot3.png', width ... |
filter_if_not_empty <- function(table, name, value, quote = TRUE)
{
value <- remove_null_values(value)
if (table$has_column(name))
{
if (base::length(value) == 1)
{
if (quote) value <- stringr::str_c("'", value, "'")
table$filter(name, " = ", value)... | /r/code/commons.R | no_license | TanguyAubert/sql | R | false | false | 25,799 | r |
filter_if_not_empty <- function(table, name, value, quote = TRUE)
{
value <- remove_null_values(value)
if (table$has_column(name))
{
if (base::length(value) == 1)
{
if (quote) value <- stringr::str_c("'", value, "'")
table$filter(name, " = ", value)... |
testlist <- list(Beta = 0, CAL = numeric(0), CVLinf = 0, L50 = 0, L95 = 0, LenBins = numeric(0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), nage = 0L, nlen = 0L, pars = c(3.81959242373749e-313, 0, 0, 0), rLens = numeric(0))
result <- do.call(DLMtool:::... | /DLMtool/inst/testfiles/LBSPRopt/AFL_LBSPRopt/LBSPRopt_valgrind_files/1615838653-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 350 | r | testlist <- list(Beta = 0, CAL = numeric(0), CVLinf = 0, L50 = 0, L95 = 0, LenBins = numeric(0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), nage = 0L, nlen = 0L, pars = c(3.81959242373749e-313, 0, 0, 0), rLens = numeric(0))
result <- do.call(DLMtool:::... |
library(caTools)
library(lubridate)
#---------------------------------
# Reading the train and test sets.
#---------------------------------
train <- read.csv("./raw_dataset/train.csv", stringsAsFactors = FALSE)
test <- read.csv("./raw_dataset/test.csv", stringsAsFactors = FALSE)
#-------------------------... | /1_data_cleaner_basic.R | no_license | benedekrozemberczki/AV_Ultimate_Student_Hunt | R | false | false | 9,522 | r | library(caTools)
library(lubridate)
#---------------------------------
# Reading the train and test sets.
#---------------------------------
train <- read.csv("./raw_dataset/train.csv", stringsAsFactors = FALSE)
test <- read.csv("./raw_dataset/test.csv", stringsAsFactors = FALSE)
#-------------------------... |
### Plot 1
##read data
data<-read.csv("household_power_consumption.txt", sep = ";",na.strings = "?")
data$Date <- as.Date(data$Date, format="%d/%m/%Y")
##subset of data for histogramm
datahist <- subset(data, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
##plot in a file
png(filename = "plot1.png",... | /plot1.R | no_license | PoloskovS/ExData_Plotting1 | R | false | false | 494 | r | ### Plot 1
##read data
data<-read.csv("household_power_consumption.txt", sep = ";",na.strings = "?")
data$Date <- as.Date(data$Date, format="%d/%m/%Y")
##subset of data for histogramm
datahist <- subset(data, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
##plot in a file
png(filename = "plot1.png",... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generated_client.R
\name{bocce_clusters_patch}
\alias{bocce_clusters_patch}
\title{Modify Bocce Cluster}
\usage{
bocce_clusters_patch(id, instance_type = NULL, min_instances = NULL,
max_instances = NULL, region = NULL, organization_ids = NU... | /man/bocce_clusters_patch.Rd | permissive | wlattner/civis-r | R | false | true | 2,979 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generated_client.R
\name{bocce_clusters_patch}
\alias{bocce_clusters_patch}
\title{Modify Bocce Cluster}
\usage{
bocce_clusters_patch(id, instance_type = NULL, min_instances = NULL,
max_instances = NULL, region = NULL, organization_ids = NU... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/sdev.R
\name{sdev}
\alias{sdev}
\title{Function to return the standard deviation for a given data series}
\usage{
sdev(x)
}
\arguments{
\item{x}{data frame containing value data for the chosen timeseries}
}
\value{
sdev standard devia... | /man/sdev.Rd | permissive | joycezw/EflowStats | R | false | false | 524 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/sdev.R
\name{sdev}
\alias{sdev}
\title{Function to return the standard deviation for a given data series}
\usage{
sdev(x)
}
\arguments{
\item{x}{data frame containing value data for the chosen timeseries}
}
\value{
sdev standard devia... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NPSimulation.R
\name{simulateRandomizedDesignEffectSizes}
\alias{simulateRandomizedDesignEffectSizes}
\title{simulateRandomizedDesignEffectSizes}
\usage{
simulateRandomizedDesignEffectSizes(
mean,
sd,
diff,
N,
type = "n",
StdAdj =... | /man/simulateRandomizedDesignEffectSizes.Rd | no_license | cran/reproducer | R | false | true | 4,497 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NPSimulation.R
\name{simulateRandomizedDesignEffectSizes}
\alias{simulateRandomizedDesignEffectSizes}
\title{simulateRandomizedDesignEffectSizes}
\usage{
simulateRandomizedDesignEffectSizes(
mean,
sd,
diff,
N,
type = "n",
StdAdj =... |
# Visualize map
library(ggplot2)
require(maps)
library(ggmap)
library(googleway)
library(ggrepel)
library(dplyr)
library(tidyr)
library(extrafont)
par(family="AppleGothic")
theme_set(theme_void())
key = "AIzaSyBGuxb5QupCTjLQjvk_Au_3CenPYBGfISY"
register_google(key = key)
geo <- geocode("hallasan")
center_loc = c(... | /visualization.R | permissive | EunhoCho/RRRRRR | R | false | false | 4,257 | r | # Visualize map
library(ggplot2)
require(maps)
library(ggmap)
library(googleway)
library(ggrepel)
library(dplyr)
library(tidyr)
library(extrafont)
par(family="AppleGothic")
theme_set(theme_void())
key = "AIzaSyBGuxb5QupCTjLQjvk_Au_3CenPYBGfISY"
register_google(key = key)
geo <- geocode("hallasan")
center_loc = c(... |
testlist <- list(x = structure(c(2.2518859956022e-231, 1.52922906507862e-308, 8.043382946415e-270, 7.06327097976756e-304, 1.03333934597886e-255, 8.25666746635789e-317, 7.29024243357443e-304, 1.39067115865411e-309, 7.06238442695308e-304, 9.17555102801741e-72, 1.19965362845564e-71, 4.94065645841247e-324, 5.0064161652... | /multivariance/inst/testfiles/doubleCenterBiasCorrected/libFuzzer_doubleCenterBiasCorrected/doubleCenterBiasCorrected_valgrind_files/1612735083-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 455 | r | testlist <- list(x = structure(c(2.2518859956022e-231, 1.52922906507862e-308, 8.043382946415e-270, 7.06327097976756e-304, 1.03333934597886e-255, 8.25666746635789e-317, 7.29024243357443e-304, 1.39067115865411e-309, 7.06238442695308e-304, 9.17555102801741e-72, 1.19965362845564e-71, 4.94065645841247e-324, 5.0064161652... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/continuous_entropy.R
\name{continuous_entropy}
\alias{continuous_entropy}
\title{Shannon entropy for a continuous pdf}
\usage{
continuous_entropy(pdf, lower, upper, base = 2)
}
\arguments{
\item{pdf}{R function for the pdf \eqn{p(x)} of a RV ... | /man/continuous_entropy.Rd | no_license | IanMadlenya/ForeCA | R | false | true | 1,832 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/continuous_entropy.R
\name{continuous_entropy}
\alias{continuous_entropy}
\title{Shannon entropy for a continuous pdf}
\usage{
continuous_entropy(pdf, lower, upper, base = 2)
}
\arguments{
\item{pdf}{R function for the pdf \eqn{p(x)} of a RV ... |
testlist <- list(x = c(7.05779521827552e-304, 1.26480805335359e-320, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
res... | /diceR/inst/testfiles/connectivity_matrix/libFuzzer_connectivity_matrix/connectivity_matrix_valgrind_files/1609958518-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 384 | r | testlist <- list(x = c(7.05779521827552e-304, 1.26480805335359e-320, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
res... |
#' Creation of summary-level riskset tables from individual-level data
#'
#' This function creates summary-level riskset tables from individual-level data at each data-contributing site, under both the conventional inverse probability weights and the stabilized weights. A logistic regression model is used to estimate t... | /R/createRisksetTable.R | no_license | cran/ppmHR | R | false | false | 5,842 | r | #' Creation of summary-level riskset tables from individual-level data
#'
#' This function creates summary-level riskset tables from individual-level data at each data-contributing site, under both the conventional inverse probability weights and the stabilized weights. A logistic regression model is used to estimate t... |
\name{bmi}
\alias{bmi}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
BMI
}
\description{
Berechnet den BMI
}
\usage{
bmi(gewicht, groesse)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{gewicht}{
Eingabe Gewicht in kg.
}
\item{groesse}{
Eingabe Groesse in m.
}
... | /man/bmi - Kopie.Rd | no_license | mpahl/bmipackage | R | false | false | 822 | rd | \name{bmi}
\alias{bmi}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
BMI
}
\description{
Berechnet den BMI
}
\usage{
bmi(gewicht, groesse)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{gewicht}{
Eingabe Gewicht in kg.
}
\item{groesse}{
Eingabe Groesse in m.
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/style_mono_accent.R
\name{style_mono_accent}
\alias{style_mono_accent}
\title{Monotone Accent Theme}
\usage{
style_mono_accent(
base_color = "#43418A",
white_color = "#FFFFFF",
black_color = "#272822",
text_color = black_color,
head... | /man/style_mono_accent.Rd | permissive | gadenbuie/xaringanthemer | R | false | true | 23,016 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/style_mono_accent.R
\name{style_mono_accent}
\alias{style_mono_accent}
\title{Monotone Accent Theme}
\usage{
style_mono_accent(
base_color = "#43418A",
white_color = "#FFFFFF",
black_color = "#272822",
text_color = black_color,
head... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DEgene_clustering_Intersections.R
\name{clusterDEgenes}
\alias{clusterDEgenes}
\title{Cluster DE genes by fold change from multiple files}
\usage{
clusterDEgenes(DEoutList, sampleNames, FDRcutoff = 0.05,
method = "correlation", cut_cluster ... | /man/clusterDEgenes.Rd | no_license | giusem/vivlib | R | false | true | 1,806 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DEgene_clustering_Intersections.R
\name{clusterDEgenes}
\alias{clusterDEgenes}
\title{Cluster DE genes by fold change from multiple files}
\usage{
clusterDEgenes(DEoutList, sampleNames, FDRcutoff = 0.05,
method = "correlation", cut_cluster ... |
# assesses monophyly of genera (or customized units) and makes the result available in different ways (tables, onjects, plot...)
# written by Orlando Schwery 2015
AssessMonophyly <-
function(tree, taxonomy=NULL, verbosity=5) {
# initial tests and data preparation
if (!is.binary.tree(tree)) { # checks and returns err... | /R/deps/MonoPhy-master/R/AssessMonophyly.R | no_license | hmarx/Alpine-Sky-Islands | R | false | false | 13,898 | r | # assesses monophyly of genera (or customized units) and makes the result available in different ways (tables, onjects, plot...)
# written by Orlando Schwery 2015
AssessMonophyly <-
function(tree, taxonomy=NULL, verbosity=5) {
# initial tests and data preparation
if (!is.binary.tree(tree)) { # checks and returns err... |
shinyUI(fluidPage(
titlePanel("Air pollution in US cities"),
sidebarLayout(
sidebarPanel(
helpText("Variation of the air pollution across the US cities for a given period of time"),
selectInput("city",
label = "Choose a city",
choices = c('Please wait...')
... | /ui.R | no_license | Cvetanka/DataProducts | R | false | false | 722 | r | shinyUI(fluidPage(
titlePanel("Air pollution in US cities"),
sidebarLayout(
sidebarPanel(
helpText("Variation of the air pollution across the US cities for a given period of time"),
selectInput("city",
label = "Choose a city",
choices = c('Please wait...')
... |
modelInfo <- list(label = "Extreme Learning Machine",
library = "elmNN",
loop = NULL,
type = c("Classification", "Regression"),
parameters = data.frame(parameter = c('nhid', 'actfun'),
class = c("numeric", ... | /models/files/elm.R | no_license | JackStat/caret | R | false | false | 2,695 | r | modelInfo <- list(label = "Extreme Learning Machine",
library = "elmNN",
loop = NULL,
type = c("Classification", "Regression"),
parameters = data.frame(parameter = c('nhid', 'actfun'),
class = c("numeric", ... |
library(ape)
testtree <- read.tree("1819_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1819_0_unrooted.txt") | /codeml_files/newick_trees_processed/1819_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("1819_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1819_0_unrooted.txt") |
################################################################################
# WGDEEP data overviews
#
# Generating overviews of several stocks assessed within WGDEEP
#
# 18/03/2018 coding during HAWG 2018
# 20/03/2018 added all weight in the catch; added the crayola plots; Note stock trends now
# ... | /R/WGDEEP data overviews.r | no_license | martinpastoors/wgdeep | R | false | false | 4,470 | r | ################################################################################
# WGDEEP data overviews
#
# Generating overviews of several stocks assessed within WGDEEP
#
# 18/03/2018 coding during HAWG 2018
# 20/03/2018 added all weight in the catch; added the crayola plots; Note stock trends now
# ... |
## ---------------------------------------------------------------------
#' Load a data set from the corpora package
#'
#' corpora is a collection of small corpora of interesting data
#' for the creation of bots and similar stuff.
#'
#' This project is a collection of static corpora (plural of "corpus") that
#' are po... | /R/corpora.R | permissive | gaborcsardi/rcorpora | R | false | false | 3,921 | r |
## ---------------------------------------------------------------------
#' Load a data set from the corpora package
#'
#' corpora is a collection of small corpora of interesting data
#' for the creation of bots and similar stuff.
#'
#' This project is a collection of static corpora (plural of "corpus") that
#' are po... |
# -------------------------------------- #
# Spat21/Mozzie Study #
# Make plot of survival for participants #
# Aim 1A #
# Human Data #
# Mozzie Phase 2 #
# K. Sumner #
# December... | /SpatialR21_project/code/aim1a_analyses/spat21_aim1a_survivalplot_modified_for_phase2.R | no_license | kelseysumner/taylorlab | R | false | false | 19,486 | r | # -------------------------------------- #
# Spat21/Mozzie Study #
# Make plot of survival for participants #
# Aim 1A #
# Human Data #
# Mozzie Phase 2 #
# K. Sumner #
# December... |
# Importing the dataset
dataset = read.csv("Social_Network_Ads.csv")
dataset = dataset[3:5]
# Encoding categorical data
# com esse processo a coluna assume valores do tipo factor, e não númericos, apesar de serem números
# dataset$Gender = factor(dataset$Gender,
# levels = c("Male","Female"),
#... | /Part 3 - Classification/Section 16 - Support Vector Machine (SVM)/svm.R | no_license | DenisOliveira1/course_machine_learning_A_Z | R | false | false | 2,494 | r | # Importing the dataset
dataset = read.csv("Social_Network_Ads.csv")
dataset = dataset[3:5]
# Encoding categorical data
# com esse processo a coluna assume valores do tipo factor, e não númericos, apesar de serem números
# dataset$Gender = factor(dataset$Gender,
# levels = c("Male","Female"),
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mergeArgs.R
\name{callWith}
\alias{callWith}
\title{Call a Function with Given Arguments}
\usage{
callWith(FUN, ...)
}
\arguments{
\item{FUN}{function to be called}
\item{...}{(unnamed) lists containing argument assignments passed to
\code{F... | /man/callWith.Rd | permissive | KWB-R/kwb.utils | R | false | true | 1,036 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mergeArgs.R
\name{callWith}
\alias{callWith}
\title{Call a Function with Given Arguments}
\usage{
callWith(FUN, ...)
}
\arguments{
\item{FUN}{function to be called}
\item{...}{(unnamed) lists containing argument assignments passed to
\code{F... |
library(readr)
library(lubridate)
library(zoo)
print("Domestic Suppliers")
DomesticSuppliers <- read_csv("Data Sources/Ofgem/Domestic Suppliers/Domestic Sales.csv")
names(DomesticSuppliers)[c(1,4)] <- c("Date", "Dual")
DomesticSuppliers$Date <- dmy(paste0("01-",DomesticSuppliers$Date))
write.table(DomesticSupplie... | /Processing Scripts/Domestic Suppliers.R | no_license | ischerr/ScottishEnergyStatsProcessing | R | false | false | 438 | r | library(readr)
library(lubridate)
library(zoo)
print("Domestic Suppliers")
DomesticSuppliers <- read_csv("Data Sources/Ofgem/Domestic Suppliers/Domestic Sales.csv")
names(DomesticSuppliers)[c(1,4)] <- c("Date", "Dual")
DomesticSuppliers$Date <- dmy(paste0("01-",DomesticSuppliers$Date))
write.table(DomesticSupplie... |
#' Returns the base pair complement of a feature file.
#'
#' @param i <bed/gff/vcf>
#' @param g <genome>
#' @param L Limit output to solely the chromosomes with records in the input file.
#'
#' @param output Output filepath instead of returning output in R.
#'
bt.complement <- function(i, g, L = NULL, output = NULL)... | /R/bt.complement.R | permissive | MAnalytics/bedtoolsr | R | false | false | 1,214 | r | #' Returns the base pair complement of a feature file.
#'
#' @param i <bed/gff/vcf>
#' @param g <genome>
#' @param L Limit output to solely the chromosomes with records in the input file.
#'
#' @param output Output filepath instead of returning output in R.
#'
bt.complement <- function(i, g, L = NULL, output = NULL)... |
%% File Name: rasch.mirtlc.Rd
%% File Version: 2.85
%% File Last Change: 2017-01-18 18:23:05
\name{rasch.mirtlc}
\alias{rasch.mirtlc}
\alias{summary.rasch.mirtlc}
\alias{logLik.rasch.mirtlc}
\alias{anova.rasch.mirtlc}
\alias{IRT.irfprob.rasch.mirtlc}
\alias{IRT.likelihood.rasch.mirtlc}
\alias{IRT.posterior.rasch.mirtl... | /man/rasch.mirtlc.Rd | no_license | SanVerhavert/sirt | R | false | false | 25,254 | rd | %% File Name: rasch.mirtlc.Rd
%% File Version: 2.85
%% File Last Change: 2017-01-18 18:23:05
\name{rasch.mirtlc}
\alias{rasch.mirtlc}
\alias{summary.rasch.mirtlc}
\alias{logLik.rasch.mirtlc}
\alias{anova.rasch.mirtlc}
\alias{IRT.irfprob.rasch.mirtlc}
\alias{IRT.likelihood.rasch.mirtlc}
\alias{IRT.posterior.rasch.mirtl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genoset-class.R
\name{chrInfo}
\alias{chrInfo}
\alias{chrInfo,GenoSetOrGenomicRanges-method}
\title{Get chromosome start and stop positions}
\usage{
chrInfo(object)
\S4method{chrInfo}{GenoSetOrGenomicRanges}(object)
}
\arguments{
\item{objec... | /man/chrInfo-methods.Rd | no_license | phaverty/genoset | R | false | true | 606 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genoset-class.R
\name{chrInfo}
\alias{chrInfo}
\alias{chrInfo,GenoSetOrGenomicRanges-method}
\title{Get chromosome start and stop positions}
\usage{
chrInfo(object)
\S4method{chrInfo}{GenoSetOrGenomicRanges}(object)
}
\arguments{
\item{objec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statx_dataset.R
\name{statx_dataset}
\alias{statx_dataset}
\title{Download a dataset}
\usage{
statx_dataset(request)
}
\arguments{
\item{request}{\code{string}. A valid JSON request body. See the
\href{https://stat-xplore.dwp.gov.uk/webapi/on... | /man/statx_dataset.Rd | permissive | thomascrines/statx | R | false | true | 1,010 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statx_dataset.R
\name{statx_dataset}
\alias{statx_dataset}
\title{Download a dataset}
\usage{
statx_dataset(request)
}
\arguments{
\item{request}{\code{string}. A valid JSON request body. See the
\href{https://stat-xplore.dwp.gov.uk/webapi/on... |
\name{casparCV}
\alias{casparCV}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Internal function.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
Internal function.
}
\usage{
casparCV(Y, X, Ytest, Xtest, h, alpha, locs, verbose = FALSE)
}
%- maybe also 'us... | /man/casparCV.Rd | no_license | cran/caspar | R | false | false | 1,550 | rd | \name{casparCV}
\alias{casparCV}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Internal function.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
Internal function.
}
\usage{
casparCV(Y, X, Ytest, Xtest, h, alpha, locs, verbose = FALSE)
}
%- maybe also 'us... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_covid19_br_map.R
\name{plot_covid19_br_map}
\alias{plot_covid19_br_map}
\title{Plots Covid-19 Per State in Brazil Map}
\usage{
plot_covid19_br_map(covid19_df, polygon_df)
}
\arguments{
\item{covid19_df}{Data Frame resulted from function ... | /man/plot_covid19_br_map.Rd | no_license | carolinaholanda/Covid19-Monitor | R | false | true | 490 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_covid19_br_map.R
\name{plot_covid19_br_map}
\alias{plot_covid19_br_map}
\title{Plots Covid-19 Per State in Brazil Map}
\usage{
plot_covid19_br_map(covid19_df, polygon_df)
}
\arguments{
\item{covid19_df}{Data Frame resulted from function ... |
# CWAC data analysis for SANBI
# 18 Oct 2019
library(lubridate)
# load functions needed to download CAWC data
source("cwac api data download functions.r")
sites <- get_cwac_sites(province = "northern%20cape") # get northern cape sites
sites[,c("Name","counts","FirstCount","LatestCount","Loc_code")]
cards <- get_cw... | /cwac analysis for SANBI.R | no_license | Gareth1995/birdie | R | false | false | 1,520 | r | # CWAC data analysis for SANBI
# 18 Oct 2019
library(lubridate)
# load functions needed to download CAWC data
source("cwac api data download functions.r")
sites <- get_cwac_sites(province = "northern%20cape") # get northern cape sites
sites[,c("Name","counts","FirstCount","LatestCount","Loc_code")]
cards <- get_cw... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/toeplitz.R
\name{toep}
\alias{toep}
\title{Toeplitz Approximation Problem}
\usage{
toep(A)
}
\arguments{
\item{A}{A symmetric matrix}
}
\value{
\item{X}{A list containing the solution matrix to the primal problem}
\item{y}{A list containing t... | /man/toep.Rd | no_license | AdamRahman/sdpt3r | R | false | true | 951 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/toeplitz.R
\name{toep}
\alias{toep}
\title{Toeplitz Approximation Problem}
\usage{
toep(A)
}
\arguments{
\item{A}{A symmetric matrix}
}
\value{
\item{X}{A list containing the solution matrix to the primal problem}
\item{y}{A list containing t... |
library(argparse)
library(rjson)
parser <- ArgumentParser(description = 'Histogram creator for dailymotion')
parser$add_argument('--date', help = 'Year and month, format: yyyy-mm', required = T)
parser$add_argument('--directory', help = 'Path to directory with dailymotion data', required = T)
parser$add_argument('--use... | /GaussTest/src/gauss_dailymotion.R | no_license | tom3097/VideoPopularityPrediction | R | false | false | 2,037 | r | library(argparse)
library(rjson)
parser <- ArgumentParser(description = 'Histogram creator for dailymotion')
parser$add_argument('--date', help = 'Year and month, format: yyyy-mm', required = T)
parser$add_argument('--directory', help = 'Path to directory with dailymotion data', required = T)
parser$add_argument('--use... |
# downloaded from: http://www.stat.cmu.edu/~hseltman/rube/rube0.2-16/R/getBugsExample.R
# following this SO comment: https://stackoverflow.com/questions/10169575/how-to-open-winbugs-odc-file-in-r#comment13048777_10169575
# Read models, data, and intialization out of WinBUGS .odc example files
#
# (This is a horrible ... | /model_code/odc_files/getBugsExample.R | no_license | anhnguyendepocen/bayes_ecology_course | R | false | false | 14,119 | r | # downloaded from: http://www.stat.cmu.edu/~hseltman/rube/rube0.2-16/R/getBugsExample.R
# following this SO comment: https://stackoverflow.com/questions/10169575/how-to-open-winbugs-odc-file-in-r#comment13048777_10169575
# Read models, data, and intialization out of WinBUGS .odc example files
#
# (This is a horrible ... |
my.anno.db <- "EnsDb" # DB for AnnotationHub
my.species <- "Homo sapiens" # Species of the input dataset
featurecounts.path <- list(HISAT2="../hisat2_output/featurecounts.tsv",
STAR="../star_output/featurecounts.tsv") # Paths to featurecounts count matrices
sample.table <- "../conf... | /config/config_single1.R | no_license | Mira0507/snakemake_alignment | R | false | false | 872 | r | my.anno.db <- "EnsDb" # DB for AnnotationHub
my.species <- "Homo sapiens" # Species of the input dataset
featurecounts.path <- list(HISAT2="../hisat2_output/featurecounts.tsv",
STAR="../star_output/featurecounts.tsv") # Paths to featurecounts count matrices
sample.table <- "../conf... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/youtube_objects.R
\name{PlaylistPlayer}
\alias{PlaylistPlayer}
\title{PlaylistPlayer Object}
\usage{
PlaylistPlayer(embedHtml = NULL)
}
\arguments{
\item{embedHtml}{An <iframe> tag that embeds a player that will play the playlist}
}
\value{
P... | /googleyoutubev3.auto/man/PlaylistPlayer.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 476 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/youtube_objects.R
\name{PlaylistPlayer}
\alias{PlaylistPlayer}
\title{PlaylistPlayer Object}
\usage{
PlaylistPlayer(embedHtml = NULL)
}
\arguments{
\item{embedHtml}{An <iframe> tag that embeds a player that will play the playlist}
}
\value{
P... |
##Linux uncle
library(recommenderlab)
library(reshape2)
library(ggplot2)
test.rating<-alpha.rating
head(test.rating)
colnames(test.rating)
nrow(test.rating)
##remove -1
test.rating<-test.rating[test.rating$rating!=-1, ]
##remove hentai
colnames(alpha.anime)
unique(alpha.anime$genre)
alpha.anime$anime... | /ratingmanipulation.R | no_license | phillipsr85/anime-recommendation-project | R | false | false | 876 | r | ##Linux uncle
library(recommenderlab)
library(reshape2)
library(ggplot2)
test.rating<-alpha.rating
head(test.rating)
colnames(test.rating)
nrow(test.rating)
##remove -1
test.rating<-test.rating[test.rating$rating!=-1, ]
##remove hentai
colnames(alpha.anime)
unique(alpha.anime$genre)
alpha.anime$anime... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{rgeo}
\alias{rgeo}
\alias{rgeo2}
\title{Sample longitude and latitude on a sphere}
\usage{
rgeo(n = 1, latlim = c(-90, 90), lonlim = c(-180, 180), verbose = FALSE)
rgeo2(n = 1, latlim = c(-90, 90), lonlim = c(-180, 180),
verbose = FALSE)
}
\arguments{
\item{... | /man/rgeo.Rd | no_license | TotallyBullshit/mosaic | R | false | false | 1,972 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{rgeo}
\alias{rgeo}
\alias{rgeo2}
\title{Sample longitude and latitude on a sphere}
\usage{
rgeo(n = 1, latlim = c(-90, 90), lonlim = c(-180, 180), verbose = FALSE)
rgeo2(n = 1, latlim = c(-90, 90), lonlim = c(-180, 180),
verbose = FALSE)
}
\arguments{
\item{... |
library(shiny)
library(dplyr)
library(ggplot2)
# Load data
url = "https://www2.census.gov/programs-surveys/popest/datasets/2010-2017/state/asrh/sc-est2017-alldata6.csv"
df <- read.csv(url)
df <- df[,-(10:11)]
df$SEX <- as.factor(df$SEX)
df$SEX <- ifelse(df$SEX == "0","TOTAL",ifelse(df$SEX == "1", "Male","Female"))
df... | /ui.R | no_license | jaykang1030/USPopulation | R | false | false | 898 | r | library(shiny)
library(dplyr)
library(ggplot2)
# Load data
url = "https://www2.census.gov/programs-surveys/popest/datasets/2010-2017/state/asrh/sc-est2017-alldata6.csv"
df <- read.csv(url)
df <- df[,-(10:11)]
df$SEX <- as.factor(df$SEX)
df$SEX <- ifelse(df$SEX == "0","TOTAL",ifelse(df$SEX == "1", "Male","Female"))
df... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generic_subplots.R
\name{add_col_plot}
\alias{add_col_plot}
\alias{add_col_plot,Iheatmap-method}
\title{add_col_plot}
\usage{
\S4method{add_col_plot}{Iheatmap}(
p,
y,
...,
mode = c("lines+markers", "lines", "markers"),
color = NULL,... | /man/add_col_plot.Rd | permissive | ropensci/iheatmapr | R | false | true | 1,829 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generic_subplots.R
\name{add_col_plot}
\alias{add_col_plot}
\alias{add_col_plot,Iheatmap-method}
\title{add_col_plot}
\usage{
\S4method{add_col_plot}{Iheatmap}(
p,
y,
...,
mode = c("lines+markers", "lines", "markers"),
color = NULL,... |
## read data from file and select rows within the sepecified data range
data <- read.table("household_power_consumption.txt", header = TRUE, sep=";",na.strings="?")
data[,1] <- as.Date(data[,1],"%d/%m/%Y")
data <- data[data[,"Date"]== "2007-02-01" | data[,"Date"]== "2007-02-02",]
## plot the graph for global active p... | /plot3.R | no_license | lynn00lynn/ExData_Plotting1 | R | false | false | 752 | r | ## read data from file and select rows within the sepecified data range
data <- read.table("household_power_consumption.txt", header = TRUE, sep=";",na.strings="?")
data[,1] <- as.Date(data[,1],"%d/%m/%Y")
data <- data[data[,"Date"]== "2007-02-01" | data[,"Date"]== "2007-02-02",]
## plot the graph for global active p... |
#' Easily download DataCamp slides.
#' @param input character
#' @param dir character
#' @importFrom stringr str_replace
#' @importFrom glue glue
#' @importFrom dplyr mutate
#' @importFrom purrr map2
#' @export
#' @examples
#' download_datacamp_slides(
#' input = file.path(
#' "https://s3.amazonaws.com/assets.datacamp.... | /R/download_datacamp_slides.R | permissive | ancgate/add2datacamp | R | false | false | 1,300 | r | #' Easily download DataCamp slides.
#' @param input character
#' @param dir character
#' @importFrom stringr str_replace
#' @importFrom glue glue
#' @importFrom dplyr mutate
#' @importFrom purrr map2
#' @export
#' @examples
#' download_datacamp_slides(
#' input = file.path(
#' "https://s3.amazonaws.com/assets.datacamp.... |
library(mlearning);
library(mlbench);
data("Glass", package = "mlbench")
Glass$Type <- as.factor(paste("Glass", Glass$Type))
summary(glassLvq <- mlLvq(Type ~ ., data = Glass));
(glassConf <- confusion(predict(glassLvq, Glass, type = "class"), Glass$Type))
plot(glassConf) # Image by default
| /confusionMatrix.R | no_license | sromano1992/OnlineLearning | R | false | false | 293 | r | library(mlearning);
library(mlbench);
data("Glass", package = "mlbench")
Glass$Type <- as.factor(paste("Glass", Glass$Type))
summary(glassLvq <- mlLvq(Type ~ ., data = Glass));
(glassConf <- confusion(predict(glassLvq, Glass, type = "class"), Glass$Type))
plot(glassConf) # Image by default
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NewickNumberStringSplitter.R
\name{NewickNumberStringSplitter}
\alias{NewickNumberStringSplitter}
\title{Split Newick Number String}
\usage{
NewickNumberStringSplitter(NewickNumberString)
}
\arguments{
\item{NewickNumberString}{A vector of Ne... | /man/NewickNumberStringSplitter.Rd | no_license | graemetlloyd/hypRspace | R | false | true | 715 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NewickNumberStringSplitter.R
\name{NewickNumberStringSplitter}
\alias{NewickNumberStringSplitter}
\title{Split Newick Number String}
\usage{
NewickNumberStringSplitter(NewickNumberString)
}
\arguments{
\item{NewickNumberString}{A vector of Ne... |
#' hplot_calculated_flows
#'
#' @param dam name of dam to be analyzed
#' @import ggplot2
#' @importFrom tidyr gather
#' @importFrom dplyr select mutate if_else summarise
#' @return plot of i and r observed versus computed
#' @export
#'
hplot_calculated_flows <- function(dam, plot_years = NULL){
dam %>%
read_dam(... | /R/diagnostics.R | permissive | gooood-night/horizon | R | false | false | 9,837 | r | #' hplot_calculated_flows
#'
#' @param dam name of dam to be analyzed
#' @import ggplot2
#' @importFrom tidyr gather
#' @importFrom dplyr select mutate if_else summarise
#' @return plot of i and r observed versus computed
#' @export
#'
hplot_calculated_flows <- function(dam, plot_years = NULL){
dam %>%
read_dam(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.