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/setup.R
\name{setup}
\alias{setup}
\title{Setup your computer to run \code{MLWIC2}}
\usage{
setup(python_loc = "/anaconda3/bin/", conda_loc = "auto", r_reticulate = FALSE)
}
\arguments{
\item{python_loc}{The location of python on your machine... | /man/setup.Rd | no_license | hin7141/MLWIC2 | R | false | true | 1,058 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setup.R
\name{setup}
\alias{setup}
\title{Setup your computer to run \code{MLWIC2}}
\usage{
setup(python_loc = "/anaconda3/bin/", conda_loc = "auto", r_reticulate = FALSE)
}
\arguments{
\item{python_loc}{The location of python on your machine... |
## This set of 2 functions will cache the inverse of a matrix
## The "makeCacheMatrix" function creates a special matrix object
## that will cache the inverse of a matrix, by setting and
## getting its value and then setting and getting its inverse
## using "solve"
makeCacheMatrix <- function(x = matrix()) {
... | /cachematrix.R | no_license | eorabone/ProgrammingAssignment2 | R | false | false | 1,100 | r | ## This set of 2 functions will cache the inverse of a matrix
## The "makeCacheMatrix" function creates a special matrix object
## that will cache the inverse of a matrix, by setting and
## getting its value and then setting and getting its inverse
## using "solve"
makeCacheMatrix <- function(x = matrix()) {
... |
library(xlsx)
f.total <- read.xlsx("~/R/R-Project/yews4denv/data/dataset_total.xlsx", 1)
training <- subset(f.total,year<2011)
| /R/04_ew4d_dataset.R | no_license | MartinPDLE/yews4denv | R | false | false | 128 | r | library(xlsx)
f.total <- read.xlsx("~/R/R-Project/yews4denv/data/dataset_total.xlsx", 1)
training <- subset(f.total,year<2011)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CalculateTravelDemand.R,
% R/CalculateTravelDemandFuture.R
\name{calculateAveFuelCo2e}
\alias{calculateAveFuelCo2e}
\alias{calculateAveFuelCo2e}
\title{Function to calculate average Co2 equivalent gas emissions for fuels by
vehicle type}
\u... | /sources/modules/VEHouseholdTravel/man/calculateAveFuelCo2e.Rd | permissive | goreaditya/VisionEval | R | false | true | 2,359 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CalculateTravelDemand.R,
% R/CalculateTravelDemandFuture.R
\name{calculateAveFuelCo2e}
\alias{calculateAveFuelCo2e}
\alias{calculateAveFuelCo2e}
\title{Function to calculate average Co2 equivalent gas emissions for fuels by
vehicle type}
\u... |
## Set Java path if necessary
if (Sys.info()["sysname"] == "Windows" & Sys.getenv("JAVA_HOME") == "") {
java_path <- "C:/Program Files (x86)/Java/jre7"
Sys.setenv(JAVA_HOME=java_path)
cat(paste("Set Java path to", java_path))
}
## CRAN packages
tidyverse_packages <- c("tidyverse", "stringr")
visualizati... | /milestone1/scripts/02_packages.R | no_license | mohitxD/deeplearning | R | false | false | 938 | r | ## Set Java path if necessary
if (Sys.info()["sysname"] == "Windows" & Sys.getenv("JAVA_HOME") == "") {
java_path <- "C:/Program Files (x86)/Java/jre7"
Sys.setenv(JAVA_HOME=java_path)
cat(paste("Set Java path to", java_path))
}
## CRAN packages
tidyverse_packages <- c("tidyverse", "stringr")
visualizati... |
#' Add supplementary data to a plot
#'
#' @description
#' Add supplementary data to a plot
#'
#' @param ggp a ggplot2 plot.
#' @param df a data frame containing the x and y coordinates
#' @param axes a numeric vector of length 2 specifying the components to be plotted.
#' @param geom a character specifying the geome... | /R/fviz_add.R | no_license | xtmgah/factoextra | R | false | false | 3,857 | r | #' Add supplementary data to a plot
#'
#' @description
#' Add supplementary data to a plot
#'
#' @param ggp a ggplot2 plot.
#' @param df a data frame containing the x and y coordinates
#' @param axes a numeric vector of length 2 specifying the components to be plotted.
#' @param geom a character specifying the geome... |
library(simulator)
library(Matrix)
library(multiviewtest)
n <- 50
K <- 2
delta <- 0 # independent communities
# settings for varying pi and theta
offdiag <- 0.25
smallcl <- 1
sparsecl <- 0.5
rho <- 1 # correlation between popularities
source("model_functions.R")
source("method_functions.R")
source("eval_functions.R... | /Web_Appendix_B/init.R | no_license | lucylgao/mv-network-test-code | R | false | false | 1,239 | r | library(simulator)
library(Matrix)
library(multiviewtest)
n <- 50
K <- 2
delta <- 0 # independent communities
# settings for varying pi and theta
offdiag <- 0.25
smallcl <- 1
sparsecl <- 0.5
rho <- 1 # correlation between popularities
source("model_functions.R")
source("method_functions.R")
source("eval_functions.R... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/recipes-step_box_cox.R, R/recipes-step_diff.R,
% R/recipes-step_fourier.R, R/recipes-step_holiday_signature.R,
% R/recipes-step_log_interval.R, R/recipes-step_slidify.R,
% R/recipes-step_smooth.R, R/recipes-step_timeseries_signature.R,
... | /man/required_pkgs.timetk.Rd | no_license | topepo/timetk | R | false | true | 1,611 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/recipes-step_box_cox.R, R/recipes-step_diff.R,
% R/recipes-step_fourier.R, R/recipes-step_holiday_signature.R,
% R/recipes-step_log_interval.R, R/recipes-step_slidify.R,
% R/recipes-step_smooth.R, R/recipes-step_timeseries_signature.R,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/storagegateway_operations.R
\name{storagegateway_describe_bandwidth_rate_limit}
\alias{storagegateway_describe_bandwidth_rate_limit}
\title{Returns the bandwidth rate limits of a gateway}
\usage{
storagegateway_describe_bandwidth_rate_limit(G... | /cran/paws.storage/man/storagegateway_describe_bandwidth_rate_limit.Rd | permissive | paws-r/paws | R | false | true | 929 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/storagegateway_operations.R
\name{storagegateway_describe_bandwidth_rate_limit}
\alias{storagegateway_describe_bandwidth_rate_limit}
\title{Returns the bandwidth rate limits of a gateway}
\usage{
storagegateway_describe_bandwidth_rate_limit(G... |
k <- 55
if(k <= 19){
n <- 200 - k
}else{
n <- k
}
p <- c(.01, .1, .3, .5, .9)
f <- c(dbinom, pbinom)
text <- c("out_A.png", "二項分布 確率関数", "成功回数", "確率", "out_B.png", "二項分布 累積分布関数", "n", "成功回数がn以下となる確率")
dim(text) <- c(4, 2)
for(i in 1:2){
png(text[1, i])
for(j in 1:length(p)){
plot(0:n, f[[i]](0:n, n, p[j]), ylim... | /binom.R | no_license | fiveseven-lambda/informatics_task_1 | R | false | false | 708 | r | k <- 55
if(k <= 19){
n <- 200 - k
}else{
n <- k
}
p <- c(.01, .1, .3, .5, .9)
f <- c(dbinom, pbinom)
text <- c("out_A.png", "二項分布 確率関数", "成功回数", "確率", "out_B.png", "二項分布 累積分布関数", "n", "成功回数がn以下となる確率")
dim(text) <- c(4, 2)
for(i in 1:2){
png(text[1, i])
for(j in 1:length(p)){
plot(0:n, f[[i]](0:n, n, p[j]), ylim... |
\name{NEWS}
\title{News for Package 'oligo'}
\section{Changes in version 1.20}{
\subsection{USER VISIBLE CHANGES}{
\itemize{
\item New getProbeInfo() function added, to simplify probe
selection without using SQL.
\item New fitProbeLevelModel() function added. It allows
probe-level models ('pl... | /inst/NEWS.Rd | no_license | dandante/oligo | R | false | false | 5,018 | rd | \name{NEWS}
\title{News for Package 'oligo'}
\section{Changes in version 1.20}{
\subsection{USER VISIBLE CHANGES}{
\itemize{
\item New getProbeInfo() function added, to simplify probe
selection without using SQL.
\item New fitProbeLevelModel() function added. It allows
probe-level models ('pl... |
\name{getComments}
\alias{getComments}
\title{getComments()}
\usage{
getComments(tdf)
}
\arguments{
\item{tdf}{data.frame, the section of the biopax data
frame to pull comments about nodes from. Must have
columns "property", "property_value" and "id"}
}
\value{
data frame with two columns "id" and "comment" where... | /man/getComments.Rd | no_license | stochasticTreat/simpath | R | false | false | 510 | rd | \name{getComments}
\alias{getComments}
\title{getComments()}
\usage{
getComments(tdf)
}
\arguments{
\item{tdf}{data.frame, the section of the biopax data
frame to pull comments about nodes from. Must have
columns "property", "property_value" and "id"}
}
\value{
data frame with two columns "id" and "comment" where... |
## MAplots from edgeR's topTags or DESeq2's results objects coloring significant genes.
MAplot_smoothScatter <- function(Input, ## a topTags (edgeR) or results (DESeq2) object
Preset = "DESeq2", ## DESeq2 or edgeR
Signif.Th... | /Differential_Analysis/MAplot_smoothScatter_v1.R | no_license | mics-jusuE404/Code_Cellar | R | false | false | 4,019 | r | ## MAplots from edgeR's topTags or DESeq2's results objects coloring significant genes.
MAplot_smoothScatter <- function(Input, ## a topTags (edgeR) or results (DESeq2) object
Preset = "DESeq2", ## DESeq2 or edgeR
Signif.Th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/minTCtest.R
\name{min_tc_test}
\alias{min_tc_test}
\title{Hybrid permutation test based on the t-, trimmed-t- and Huber-test}
\usage{
min_tc_test(x, y, alternative = c("two.sided", "greater", "less"),
delta = 0, k = 1.8, na.rm = FALSE, n.re... | /man/min_tc_test.Rd | no_license | b-brune/robTests | R | false | true | 2,326 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/minTCtest.R
\name{min_tc_test}
\alias{min_tc_test}
\title{Hybrid permutation test based on the t-, trimmed-t- and Huber-test}
\usage{
min_tc_test(x, y, alternative = c("two.sided", "greater", "less"),
delta = 0, k = 1.8, na.rm = FALSE, n.re... |
## install and load packages ####
install.packages("littler")
install.packages(c("dplyr", "ggvis", "ggplot2", "tidyr"))
my_packages <- c("littler", "dplyr","ggvis", "ggplot2", "tidyr")
lapply(my_packages, require, character.only = TRUE)
installed.packages() # show loaded packages
| /packages_libraries.R | no_license | SheaZhao/SFPD_project | R | false | false | 285 | r | ## install and load packages ####
install.packages("littler")
install.packages(c("dplyr", "ggvis", "ggplot2", "tidyr"))
my_packages <- c("littler", "dplyr","ggvis", "ggplot2", "tidyr")
lapply(my_packages, require, character.only = TRUE)
installed.packages() # show loaded packages
|
rankall <- function(outcome, num = "best") {
## Read outcome data
## Create a vector identifying the columns to be read from the file.
## A "NULL" will skip a column while an NA will read a column.
##
## Only the following columns are to be read from the file:
## 2. ... | /Assignment 3/rankall.R | no_license | ksjpswaroop/rprogramming | R | false | false | 3,264 | r | rankall <- function(outcome, num = "best") {
## Read outcome data
## Create a vector identifying the columns to be read from the file.
## A "NULL" will skip a column while an NA will read a column.
##
## Only the following columns are to be read from the file:
## 2. ... |
\name{summary.RHuginDomain}
\alias{summary.RHuginDomain}
\title{RHuginDomain Summary Method}
\description{
Summary method for RHugin domains.
}
\usage{
\method{summary}{RHuginDomain}(object, domain = TRUE, nodes = FALSE, jt = FALSE, print.cliques = FALSE, ...)
}
\arguments{
\item{object}{an RHugin domain.}
\ite... | /man/summary.RHuginDomain.Rd | no_license | huginexpert/RHugin | R | false | false | 4,947 | rd | \name{summary.RHuginDomain}
\alias{summary.RHuginDomain}
\title{RHuginDomain Summary Method}
\description{
Summary method for RHugin domains.
}
\usage{
\method{summary}{RHuginDomain}(object, domain = TRUE, nodes = FALSE, jt = FALSE, print.cliques = FALSE, ...)
}
\arguments{
\item{object}{an RHugin domain.}
\ite... |
#' @import httr
#' @importFrom signature_v4_auth
#' @importFrom XML xmlToList xmlParse
#' @importFrom jsonlite fromJSON
#' @export
iamHTTP <- function(query, verb = "GET", body = "",
region = Sys.getenv("AWS_DEFAULT_REGION","us-east-1"),
key = Sys.getenv("AWS_ACCESS_KEY_ID"),
... | /R/http.R | no_license | angelonardone/aws.iam | R | false | false | 2,222 | r | #' @import httr
#' @importFrom signature_v4_auth
#' @importFrom XML xmlToList xmlParse
#' @importFrom jsonlite fromJSON
#' @export
iamHTTP <- function(query, verb = "GET", body = "",
region = Sys.getenv("AWS_DEFAULT_REGION","us-east-1"),
key = Sys.getenv("AWS_ACCESS_KEY_ID"),
... |
## This script is designed to be used with "FindsgRNAfunction_Doench2014.R"
## "Doench_Model_Weights_Singleonly.csv", "Doench_Model_Weights_Doubleonly.csv",
## and "CFD_Scoring.csv"
## The above files must be in the working directory
##
## example: setwd("C://Users//Dylan//Desktop//SP")
##
##
## if packages nee... | /RunShiny.R | no_license | dylanbeeber/Cas9-Guide-Designer | R | false | false | 12,067 | r | ## This script is designed to be used with "FindsgRNAfunction_Doench2014.R"
## "Doench_Model_Weights_Singleonly.csv", "Doench_Model_Weights_Doubleonly.csv",
## and "CFD_Scoring.csv"
## The above files must be in the working directory
##
## example: setwd("C://Users//Dylan//Desktop//SP")
##
##
## if packages nee... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cites-package.R
\docType{package}
\name{cites-package}
\alias{cites}
\alias{cites-package}
\title{cites: Fast access to the CITES Wildlife Trade Database}
\description{
This package provides the full extracted data and metadata from the CITE... | /man/cites-package.Rd | permissive | ecohealthalliance/cites | R | false | true | 746 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cites-package.R
\docType{package}
\name{cites-package}
\alias{cites}
\alias{cites-package}
\title{cites: Fast access to the CITES Wildlife Trade Database}
\description{
This package provides the full extracted data and metadata from the CITE... |
context("test-teams")
test_that("Team pulls team", {
q <- getTeam()
expect_s3_class(q, 'nhl_api')
q<-getTeam(1)
expect_s3_class(q, 'nhl_api')
expect_equal(q$data$name, "New Jersey Devils")
q <- getTeam(1, info = "team.schedule.previous")
expect_s3_class(q, 'nhl_api')
expect_true("previousGameSchedul... | /tests/testthat/test-teams.R | permissive | pbulsink/nhlRapi | R | false | false | 2,029 | r | context("test-teams")
test_that("Team pulls team", {
q <- getTeam()
expect_s3_class(q, 'nhl_api')
q<-getTeam(1)
expect_s3_class(q, 'nhl_api')
expect_equal(q$data$name, "New Jersey Devils")
q <- getTeam(1, info = "team.schedule.previous")
expect_s3_class(q, 'nhl_api')
expect_true("previousGameSchedul... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/selected.R
\name{selected.default}
\alias{selected.default}
\title{Identify Selected Names by Default}
\usage{
\method{selected}{default}(x, ..., expand = TRUE)
}
\arguments{
\item{x}{object}
\item{...}{to \code{\link[dplyr]{selec... | /man/selected.default.Rd | no_license | cran/yamlet | R | false | true | 1,702 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/selected.R
\name{selected.default}
\alias{selected.default}
\title{Identify Selected Names by Default}
\usage{
\method{selected}{default}(x, ..., expand = TRUE)
}
\arguments{
\item{x}{object}
\item{...}{to \code{\link[dplyr]{selec... |
##ALEXA CANAAN
##ACTIVITY 4
#use built in iris dataset
#petal measurements of iris plants
#take a look at it
head(iris)
#load in some tidyverse packages
#install.packages("dplyr")
#install.packages("ggplot2")
library(dplyr)
library(ggplot2)
#####################################
##### Part 1: for loops #####... | /activity4/activity4_script.R | no_license | alexacanaan23/GEOG331 | R | false | false | 2,992 | r | ##ALEXA CANAAN
##ACTIVITY 4
#use built in iris dataset
#petal measurements of iris plants
#take a look at it
head(iris)
#load in some tidyverse packages
#install.packages("dplyr")
#install.packages("ggplot2")
library(dplyr)
library(ggplot2)
#####################################
##### Part 1: for loops #####... |
# b - beta, se - se, pval - pvalue, nd - N discovery, nr - N replication, nl - number of loci for replication
pwr.rep<-function(b,se,nd,nr,pval,nl) {
chi<-qchisq(1-pval/nl,1)
t2<-(b/se)^2
ncp<-t2*(nr/nd)-1
if(ncp<0) ncp<-0
pwr<-pchisq(chi,1,ncp=ncp,lower.tail = F)... | /pwr4rep.r | no_license | mfreidin1975/power4repl | R | false | false | 517 | r | # b - beta, se - se, pval - pvalue, nd - N discovery, nr - N replication, nl - number of loci for replication
pwr.rep<-function(b,se,nd,nr,pval,nl) {
chi<-qchisq(1-pval/nl,1)
t2<-(b/se)^2
ncp<-t2*(nr/nd)-1
if(ncp<0) ncp<-0
pwr<-pchisq(chi,1,ncp=ncp,lower.tail = F)... |
computeMDS05 <- function (data, Vegetables, Legumes, FruitAndNuts, Cereals, Potatoes = NULL, Fish, Meat, Dairy, Alcohol,
Fats = NULL, MUFA = NULL, PUFA = NULL, SFA = NULL, Sex, men = "male", women = "female",
frequency = NULL, output = "percent", rm.na = FALSE) {
... | /R/computeMDS05.R | no_license | cran/MedDietScore | R | false | false | 8,106 | r | computeMDS05 <- function (data, Vegetables, Legumes, FruitAndNuts, Cereals, Potatoes = NULL, Fish, Meat, Dairy, Alcohol,
Fats = NULL, MUFA = NULL, PUFA = NULL, SFA = NULL, Sex, men = "male", women = "female",
frequency = NULL, output = "percent", rm.na = FALSE) {
... |
### Author##############
## Amarinder Singh Thind
# Install and load packages
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("DESeq2")
BiocManager::install("edgeR")
BiocManager::install("biomaRt")
BiocManager::install('PCAtools')
library(e... | /RNA-Seq-DGE.R | no_license | Yedomon/RNA-seq-tutorial-for-gene-differential-expression-analysis | R | false | false | 6,583 | r | ### Author##############
## Amarinder Singh Thind
# Install and load packages
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("DESeq2")
BiocManager::install("edgeR")
BiocManager::install("biomaRt")
BiocManager::install('PCAtools')
library(e... |
plot.bart <- function(
x,
plquants = c(0.05, 0.95), cols = c('blue','black'),
...
)
{
if('sigma' %in% names(x)) {
par(mfrow=c(1,2))
plot(c(x$first.sigma,x$sigma),col=rep(c('red','black'),
c(length(x$first.sigma),length(x$sigma))),ylab='sigma',...)
} else {
par(mfrow=c(1,1))
}
if('si... | /dbarts/R/plot.R | no_license | ingted/R-Examples | R | false | false | 2,439 | r | plot.bart <- function(
x,
plquants = c(0.05, 0.95), cols = c('blue','black'),
...
)
{
if('sigma' %in% names(x)) {
par(mfrow=c(1,2))
plot(c(x$first.sigma,x$sigma),col=rep(c('red','black'),
c(length(x$first.sigma),length(x$sigma))),ylab='sigma',...)
} else {
par(mfrow=c(1,1))
}
if('si... |
library(recosystem)
library(rectools)
library(partykit)
library(data.table)
ratingProbsFit <- function(dataIn,maxRating,predMethod,embedMeans,specialArgs){
# Check for errors where using or not using embeded means with an incompatible method.
# Will stop execution because of invalid inputs.
if( embedMeans && pre... | /Submission/TermProject.R | no_license | ynnalecitona/Rating-Probability-Predictor | R | false | false | 19,190 | r | library(recosystem)
library(rectools)
library(partykit)
library(data.table)
ratingProbsFit <- function(dataIn,maxRating,predMethod,embedMeans,specialArgs){
# Check for errors where using or not using embeded means with an incompatible method.
# Will stop execution because of invalid inputs.
if( embedMeans && pre... |
/R-列表.R | no_license | nibaibai/R-day2 | R | false | false | 318 | r | ||
ccp=function(y,d,method="multinom",...){
# transform to numeric&matrix
y=factor(y)
y_levels=levels(y)
y=as.numeric(y)
d=data.matrix(d)
#determine label vector pv from y, d and method
if(method=="multinom"){
#require(nnet)
fit = nnet::multinom(y~d,...)
pv=predict(fit,type='class')... | /R/ccp.R | no_license | cran/mcca | R | false | false | 1,590 | r | ccp=function(y,d,method="multinom",...){
# transform to numeric&matrix
y=factor(y)
y_levels=levels(y)
y=as.numeric(y)
d=data.matrix(d)
#determine label vector pv from y, d and method
if(method=="multinom"){
#require(nnet)
fit = nnet::multinom(y~d,...)
pv=predict(fit,type='class')... |
# Title : TODO
# Objective : TODO
# Created by: Gaborando
# Created on: 02/12/2020
par(mfrow = c(1, 2))
files <- list.files(path = "dati/settembre", pattern = "*.dat", full.names = TRUE, recursive = FALSE)
speed <- matrix(ncol = 30, nrow = 1500)
for (i in 1:length(files)) {
data <- read.table(files[i], sep = " ",... | /laboratorio/20201124/es4.1_fluttuazioni_del_mese.R | no_license | GaborGalazzoUniUPO/Comutational-Statistics | R | false | false | 793 | r | # Title : TODO
# Objective : TODO
# Created by: Gaborando
# Created on: 02/12/2020
par(mfrow = c(1, 2))
files <- list.files(path = "dati/settembre", pattern = "*.dat", full.names = TRUE, recursive = FALSE)
speed <- matrix(ncol = 30, nrow = 1500)
for (i in 1:length(files)) {
data <- read.table(files[i], sep = " ",... |
## setting the directory
getwd()
setwd("C:/Users/ASEEL/Desktop")
getwd()
## reading the data
data <- read.table("household_power_consumption.txt",header = TRUE ,na.strings = "?",sep = ";")
str(data)
ncol(data)
## converting the date and time format
data$Date <- as.Date(data$Date,format("%d/%m/%Y"))
hea... | /Plot2.R | no_license | AseelAmmari/ExData_Plotting1 | R | false | false | 861 | r | ## setting the directory
getwd()
setwd("C:/Users/ASEEL/Desktop")
getwd()
## reading the data
data <- read.table("household_power_consumption.txt",header = TRUE ,na.strings = "?",sep = ";")
str(data)
ncol(data)
## converting the date and time format
data$Date <- as.Date(data$Date,format("%d/%m/%Y"))
hea... |
#' Use swiss topo for geocodes
#'
#' @description This function take as address information as arguements and retrieves the geocodes using the swiss topo API.
#' The minimum information required is the postal code. When insufficient information is provided then the function returns the central
#' point of all possi... | /R/180707_SwissTopo.R | no_license | gkonstantinoudis/GeoSwiss | R | false | false | 4,973 | r |
#' Use swiss topo for geocodes
#'
#' @description This function take as address information as arguements and retrieves the geocodes using the swiss topo API.
#' The minimum information required is the postal code. When insufficient information is provided then the function returns the central
#' point of all possi... |
#' Prediction at new locations based on the fitting results on HDFS.
#'
#' The prediction at new locations are calculated based on the fitting results
#' saved on HDFS based on the original dataset.
#'
#' @param newdata
#' A data.frame includes all locations' longitude, latitude, and elevation,
#' where the pre... | /R/predNew_mr.R | permissive | XiaosuTong/drsstl | R | false | false | 16,813 | r | #' Prediction at new locations based on the fitting results on HDFS.
#'
#' The prediction at new locations are calculated based on the fitting results
#' saved on HDFS based on the original dataset.
#'
#' @param newdata
#' A data.frame includes all locations' longitude, latitude, and elevation,
#' where the pre... |
## Age ------------------------------------------------------------------------
test_that("'make_labels_age' gives correct answer with valid inputs", {
expect_identical(make_labels_age(breaks = c(0L, 1L, 5L, 10L),
open_last = TRUE,
include_... | /tests/testthat/test-make_labels-internal.R | permissive | bayesiandemography/demprep | R | false | false | 10,290 | r |
## Age ------------------------------------------------------------------------
test_that("'make_labels_age' gives correct answer with valid inputs", {
expect_identical(make_labels_age(breaks = c(0L, 1L, 5L, 10L),
open_last = TRUE,
include_... |
#The MDS function within DiDiSTATIS
#
#'Conduct metric multidimensional scaling
#'
#'@param DATA The data
#'@param data_are Flag to indicate data type #d, d2, CP
#'@param DESIGN_rows List of DESIGN info
#'@param n2k Number of components to keep
#'@return Results of MDS
#'@export
MDS <- function(DATA, data_are=NULL, DE... | /R/MDS.R | no_license | michaelkriegsman/DiDiSTATIS | R | false | false | 766 | r | #The MDS function within DiDiSTATIS
#
#'Conduct metric multidimensional scaling
#'
#'@param DATA The data
#'@param data_are Flag to indicate data type #d, d2, CP
#'@param DESIGN_rows List of DESIGN info
#'@param n2k Number of components to keep
#'@return Results of MDS
#'@export
MDS <- function(DATA, data_are=NULL, DE... |
library(data.table)
library(tree)
house_train <- fread("C:/Users/Administrator/Desktop/LMS/ML/Housing Prices/Training Data/housing_train.csv")
house_test <- fread("C:/Users/Administrator/Desktop/LMS/ML/Housing Prices/Sample Data/housing_test.csv")
house_act <- fread("C:/Users/Administrator/Desktop/LMS/ML/Housing ... | /Housing Prices/Source_Code.R | no_license | ravindrareddytamma/ML-EDA-Practise | R | false | false | 705 | r | library(data.table)
library(tree)
house_train <- fread("C:/Users/Administrator/Desktop/LMS/ML/Housing Prices/Training Data/housing_train.csv")
house_test <- fread("C:/Users/Administrator/Desktop/LMS/ML/Housing Prices/Sample Data/housing_test.csv")
house_act <- fread("C:/Users/Administrator/Desktop/LMS/ML/Housing ... |
wechat_devtools_macos_files | /README.rd | no_license | onefunyAndy/wechat_devtools_macos_files | R | false | false | 27 | rd | wechat_devtools_macos_files |
hpc <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
hpc$Date <- as.Date(hpc$Date, format="%d/%m/%Y")
subsethpc <- subset(hpc, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
rm(hpc)... | /plot1.R | no_license | Evarm46/ExData_Plotting1 | R | false | false | 659 | r | hpc <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
hpc$Date <- as.Date(hpc$Date, format="%d/%m/%Y")
subsethpc <- subset(hpc, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
rm(hpc)... |
#' Export the results of the \code{MCPtest} function.
#'
#' The \code{x} object from a \code{MCPtest} is written to file arguments.
#' @param x object from the \code{MCPtest} functions.
#' @param MCP Allows choosing the multiple comparison test.
#' The \emph{defaut} is "all". This option will go perform all te... | /R/MCPwrite.R | no_license | cran/MCPtests | R | false | false | 12,915 | r | #' Export the results of the \code{MCPtest} function.
#'
#' The \code{x} object from a \code{MCPtest} is written to file arguments.
#' @param x object from the \code{MCPtest} functions.
#' @param MCP Allows choosing the multiple comparison test.
#' The \emph{defaut} is "all". This option will go perform all te... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/garden_spending.R
\docType{data}
\name{garden_spending}
\alias{garden_spending}
\title{Data from Lisa Lendway's backyard garden}
\format{
A tibble with 65 rows and 6 variables:
\describe{
\item{vegetable}{type of vegetable seed/plant OR oth... | /man/garden_spending.Rd | no_license | mariorollojr/gardenR | R | false | true | 1,062 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/garden_spending.R
\docType{data}
\name{garden_spending}
\alias{garden_spending}
\title{Data from Lisa Lendway's backyard garden}
\format{
A tibble with 65 rows and 6 variables:
\describe{
\item{vegetable}{type of vegetable seed/plant OR oth... |
#------------------------------------------------------------#
# Para rodar este programa deixe no objeto fit.model a sa?da
# do ajuste da regress?o com erros Poisson e liga??o log.
# Programa extra?do do site: https://www.ime.usp.br/~giapaula/textoregressao.htm
# Cr?ditos: Prof. Dr. Gilberto Alvarenga Paula
# A... | /Parte02/codigos/envel_pois.r | no_license | GuilhermePazian/TrabalhoME714 | R | false | false | 1,845 | r | #------------------------------------------------------------#
# Para rodar este programa deixe no objeto fit.model a sa?da
# do ajuste da regress?o com erros Poisson e liga??o log.
# Programa extra?do do site: https://www.ime.usp.br/~giapaula/textoregressao.htm
# Cr?ditos: Prof. Dr. Gilberto Alvarenga Paula
# A... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_beta.R
\name{plot_beta}
\alias{plot_beta}
\title{Plots beta values of slope parameters}
\usage{
plot_beta(slope_analysis_fish, parameters_to_plot, species, DoS, min.y = NA,
max.y = NA)
}
\arguments{
\item{slope_analysis_fish}{The slope... | /man/plot_beta.Rd | no_license | samaperrin/analyseslope | R | false | true | 702 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_beta.R
\name{plot_beta}
\alias{plot_beta}
\title{Plots beta values of slope parameters}
\usage{
plot_beta(slope_analysis_fish, parameters_to_plot, species, DoS, min.y = NA,
max.y = NA)
}
\arguments{
\item{slope_analysis_fish}{The slope... |
testlist <- list(doy = c(1.60693846973121e+226, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(-6.16249584696239e+100, 2.61788686270017e+185))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615837556-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 224 | r | testlist <- list(doy = c(1.60693846973121e+226, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(-6.16249584696239e+100, 2.61788686270017e+185))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{gibbs_sampler_no_update_new_inits}
\alias{gibbs_sampler_no_update_new_inits}
\title{Obtain draws from gibbs sampler}
\usage{
gibbs_sampler_no_update_new_inits(
overall_sum_trees_mu,
overall_sum_trees_tau,
overall_sum... | /man/gibbs_sampler_no_update_new_inits.Rd | no_license | EoghanONeill/bcfbma | R | false | true | 682 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{gibbs_sampler_no_update_new_inits}
\alias{gibbs_sampler_no_update_new_inits}
\title{Obtain draws from gibbs sampler}
\usage{
gibbs_sampler_no_update_new_inits(
overall_sum_trees_mu,
overall_sum_trees_tau,
overall_sum... |
interval <-
function(min,max) {
rval= list(
minValue = min,
maxValue = max
)
class(rval) = "interval"
return(rval)
}
| /ISDA.R/R/interval.R | no_license | ingted/R-Examples | R | false | false | 138 | r | interval <-
function(min,max) {
rval= list(
minValue = min,
maxValue = max
)
class(rval) = "interval"
return(rval)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_read}
\alias{fars_read}
\title{Read in data from a csv file
## A note from the author: Jeewesh Jha
### Please leave feedback where appropriate.}
\usage{
fars_read(filename)
}
\arguments{
\item{filename}{a character... | /man/fars_read.Rd | no_license | drsudhirpathak/Building-an-R-Package | R | false | true | 868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_read}
\alias{fars_read}
\title{Read in data from a csv file
## A note from the author: Jeewesh Jha
### Please leave feedback where appropriate.}
\usage{
fars_read(filename)
}
\arguments{
\item{filename}{a character... |
#' Dates and times made easy with lubridate
#'
#' Lubridate provides tools that make it easier to parse and
#' manipulate dates. These tools are grouped below by common
#' purpose. More information about each function can be found in
#' its help documentation.
#'
#' @section Parsing dates:
#'
#' Lubridate's parsing fun... | /R/package.r | no_license | lizl90/lubridate | R | false | false | 7,172 | r | #' Dates and times made easy with lubridate
#'
#' Lubridate provides tools that make it easier to parse and
#' manipulate dates. These tools are grouped below by common
#' purpose. More information about each function can be found in
#' its help documentation.
#'
#' @section Parsing dates:
#'
#' Lubridate's parsing fun... |
library(Matrix)
require(Matrix)
#functions for calculating and plotting rate of succession using surreal numbers
#input data frame data (rows are time points, columns are species abundances) and times (vector of time points)
#return list containing:
#rbar: one row per time point. Columns are coefficients of omega^(1/o... | /R/successionmeasures.surreal2.R | no_license | vivaldianalytics/shapechange | R | false | false | 19,219 | r | library(Matrix)
require(Matrix)
#functions for calculating and plotting rate of succession using surreal numbers
#input data frame data (rows are time points, columns are species abundances) and times (vector of time points)
#return list containing:
#rbar: one row per time point. Columns are coefficients of omega^(1/o... |
library(dplyr); library(ggplot2)
# Simulations -------------------------------------------------------------
dg_raw = readxl::read_xlsx('Dosidicus_data_final_2.xlsx', sheet = 'values')
dg_raw = dg_raw %>% group_by(temp, metric) %>% summarise(mean_mr = mean(value), se_mr = birk::se(value))
sims = apply(dg_raw, 1, fu... | /simulations.R | no_license | matthewabirk/DVM_temp_sensitivity | R | false | false | 8,654 | r | library(dplyr); library(ggplot2)
# Simulations -------------------------------------------------------------
dg_raw = readxl::read_xlsx('Dosidicus_data_final_2.xlsx', sheet = 'values')
dg_raw = dg_raw %>% group_by(temp, metric) %>% summarise(mean_mr = mean(value), se_mr = birk::se(value))
sims = apply(dg_raw, 1, fu... |
library("rjags");
library("R2jags");
mu <- 1.0;
tau <- 0.25;
N <- 5;
jags.data <- list("mu","tau","N");
jags.params <- c("y");
jags.inits <- function() {
list(y=rnorm(N,mu,tau));
}
jags.fit <- jags(data=jags.data, inits=jags.inits, jags.params,
n.iter=100, model.file="../jags/demo.jags",
... | /trec2011/R/jags-demo.R | no_license | lingpipe/sandbox | R | false | false | 394 | r | library("rjags");
library("R2jags");
mu <- 1.0;
tau <- 0.25;
N <- 5;
jags.data <- list("mu","tau","N");
jags.params <- c("y");
jags.inits <- function() {
list(y=rnorm(N,mu,tau));
}
jags.fit <- jags(data=jags.data, inits=jags.inits, jags.params,
n.iter=100, model.file="../jags/demo.jags",
... |
#' Posterior predictive checking for nested partially latent class models -
#' pairwise log odds ratio
#'
#' At each MCMC iteration, we generate a new data set based on the model and
#' parameter values at that iteration. The sample size of the new data set equals
#' that of the actual data set, i.e. the same n... | /R/nplcm_checking_pairwise_logOR.R | permissive | swihart/nplcm | R | false | false | 4,182 | r | #' Posterior predictive checking for nested partially latent class models -
#' pairwise log odds ratio
#'
#' At each MCMC iteration, we generate a new data set based on the model and
#' parameter values at that iteration. The sample size of the new data set equals
#' that of the actual data set, i.e. the same n... |
## This first line will likely take a few seconds. Be patient!
if(!exists("NEI")){
NEI <- readRDS("C:\\Users\\BZM11\\Documents\\R\\EDA\\CP2\\summarySCC_PM25.rds")
}
if(!exists("SCC")){
SCC <- readRDS("C:\\Users\\BZM11\\Documents\\R\\EDA\\CP2\\Source_Classification_Code.rds")
}
library(ggplot2)
##... | /CP2 Plot3.R | no_license | bmillaard/EDA-project-2 | R | false | false | 1,148 | r | ## This first line will likely take a few seconds. Be patient!
if(!exists("NEI")){
NEI <- readRDS("C:\\Users\\BZM11\\Documents\\R\\EDA\\CP2\\summarySCC_PM25.rds")
}
if(!exists("SCC")){
SCC <- readRDS("C:\\Users\\BZM11\\Documents\\R\\EDA\\CP2\\Source_Classification_Code.rds")
}
library(ggplot2)
##... |
#CalculateFinalVolumes:
# This is after equilibration.
Vwatf.fun<- function(Vbot20 = 60,
alpha = 1e-05,
TempCWi = 5,
Pdbar = 0,
TempCf = 5){
MassSW<-MassSW.fun(Vbot20,
alpha,
... | /CO2/CO2 calc/sub functions/General/05_CalculateFinalVolumes.R | no_license | low-decarie/Useful-R-functions | R | false | false | 888 | r | #CalculateFinalVolumes:
# This is after equilibration.
Vwatf.fun<- function(Vbot20 = 60,
alpha = 1e-05,
TempCWi = 5,
Pdbar = 0,
TempCf = 5){
MassSW<-MassSW.fun(Vbot20,
alpha,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mplot.R
\name{mplot}
\alias{mplot}
\title{Plot multiple data series}
\usage{
mplot(list, x = "x", y = "y", ...)
}
\arguments{
\item{list}{A list of objects, each with elements named 'x' and 'y'.}
\item{x}{The name of the element to use for t... | /man/mplot.Rd | no_license | jukent/climod | R | false | true | 1,406 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mplot.R
\name{mplot}
\alias{mplot}
\title{Plot multiple data series}
\usage{
mplot(list, x = "x", y = "y", ...)
}
\arguments{
\item{list}{A list of objects, each with elements named 'x' and 'y'.}
\item{x}{The name of the element to use for t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sklearn.R
\name{sk_isotonic}
\alias{sk_isotonic}
\title{SK Isotonic
\href{https://scikit-learn.org/stable/modules/classes.html#module-sklearn.isotonic}{Isotonic functions}
\href{https://scikit-learn.org/stable/modules/isotonic.html#isotonic}{... | /man/sk_isotonic.Rd | permissive | abresler/sklearn | R | false | true | 609 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sklearn.R
\name{sk_isotonic}
\alias{sk_isotonic}
\title{SK Isotonic
\href{https://scikit-learn.org/stable/modules/classes.html#module-sklearn.isotonic}{Isotonic functions}
\href{https://scikit-learn.org/stable/modules/isotonic.html#isotonic}{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/saga_norm.R
\name{saga_norm}
\alias{saga_norm}
\title{Normalize joint SAGA data sets}
\usage{
saga_norm(SAGA_RAW, TEST_RAW, pData.joint, plotnumber = 2)
}
\arguments{
\item{SAGA_RAW}{SAGA raw data matrix}
\item{TEST_RAW}{Test or sample data ... | /man/saga_norm.Rd | no_license | mytalbot/saga_package | R | false | true | 763 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/saga_norm.R
\name{saga_norm}
\alias{saga_norm}
\title{Normalize joint SAGA data sets}
\usage{
saga_norm(SAGA_RAW, TEST_RAW, pData.joint, plotnumber = 2)
}
\arguments{
\item{SAGA_RAW}{SAGA raw data matrix}
\item{TEST_RAW}{Test or sample data ... |
#This is a trip advisor data set, where tripadvisor users have gone to vegas hotels and have rated
#experinece and have helped log information about the hotel and details about it
#This kind of data set could be very useful in marketing to specific users
#I got this data set from the UCI Machine learning repository
... | /Data Visualization/Indvidual_Project.R | no_license | kunalroy95/DataScience | R | false | false | 7,802 | r |
#This is a trip advisor data set, where tripadvisor users have gone to vegas hotels and have rated
#experinece and have helped log information about the hotel and details about it
#This kind of data set could be very useful in marketing to specific users
#I got this data set from the UCI Machine learning repository
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bar_chart.R
\name{bar_chart}
\alias{bar_chart}
\alias{column_chart}
\title{Bar Chart}
\usage{
bar_chart(
data,
x,
y,
facet = NULL,
...,
bar_color = "#1F77B4",
highlight = NULL,
sort = TRUE,
horizontal = TRUE,
limit = NULL,... | /man/bar_chart.Rd | no_license | bukmans/ggcharts | R | false | true | 3,240 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bar_chart.R
\name{bar_chart}
\alias{bar_chart}
\alias{column_chart}
\title{Bar Chart}
\usage{
bar_chart(
data,
x,
y,
facet = NULL,
...,
bar_color = "#1F77B4",
highlight = NULL,
sort = TRUE,
horizontal = TRUE,
limit = NULL,... |
change_theme_dropdown <- function(id, dropDownLabel = "Change Theme", defaultTheme = "grey_light")
{
changeThemeChoices <- c(
"Light" = "grey_light",
"Dark" = "grey_dark"
)
ns <- NS(id)
dropdown <- tagList(
selectizeInput(
inputId = ns("dbxChangeTheme"),
label = dropDownLabel,
cho... | /R/mod_change_theme.R | permissive | polinabee/bgse-dw-final-project | R | false | false | 1,042 | r | change_theme_dropdown <- function(id, dropDownLabel = "Change Theme", defaultTheme = "grey_light")
{
changeThemeChoices <- c(
"Light" = "grey_light",
"Dark" = "grey_dark"
)
ns <- NS(id)
dropdown <- tagList(
selectizeInput(
inputId = ns("dbxChangeTheme"),
label = dropDownLabel,
cho... |
plot.tosANYN <-
function (x, sub = NULL, xlab = "Time", arrow.length = 0.05,
verbose = FALSE, ...)
{
object <- x
x <- x$x
if (is.null(sub))
sub <- paste("MC Type: ", object$mc.method[1], ". ", object$nreject,
" rejected.")
plot(x=1:length(x), y=x, xlab = xlab, sub = sub, col ... | /R/plot.tosANYN.R | no_license | cran/locits | R | false | false | 2,704 | r | plot.tosANYN <-
function (x, sub = NULL, xlab = "Time", arrow.length = 0.05,
verbose = FALSE, ...)
{
object <- x
x <- x$x
if (is.null(sub))
sub <- paste("MC Type: ", object$mc.method[1], ". ", object$nreject,
" rejected.")
plot(x=1:length(x), y=x, xlab = xlab, sub = sub, col ... |
library(metR)
### Name: Derivate
### Title: Derivate a discrete variable using finite differences
### Aliases: Derivate Laplacian Divergence Vorticity
### ** Examples
theta <- seq(0, 360, length.out = 20)*pi/180
theta <- theta[-1]
x <- cos(theta)
dx_analytical <- -sin(theta)
dx_finitediff <- Derivate(x ~ theta, cyc... | /data/genthat_extracted_code/metR/examples/Derivate.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,178 | r | library(metR)
### Name: Derivate
### Title: Derivate a discrete variable using finite differences
### Aliases: Derivate Laplacian Divergence Vorticity
### ** Examples
theta <- seq(0, 360, length.out = 20)*pi/180
theta <- theta[-1]
x <- cos(theta)
dx_analytical <- -sin(theta)
dx_finitediff <- Derivate(x ~ theta, cyc... |
trace.variog <-
function(coords, L2norm, bin=FALSE, max.dist, uvec="default", breaks="default", nugget.tolerance){
# Argument validation
if(is.null(coords)) stop("coords is not an optional parameter")
if(ncol(coords)!=2) stop("coords must be an n x 2 matrix")
if(!isSymmetric(L2norm)) stop("L2norm must be... | /R/trace.variog.R | no_license | cran/geofd | R | false | false | 5,410 | r | trace.variog <-
function(coords, L2norm, bin=FALSE, max.dist, uvec="default", breaks="default", nugget.tolerance){
# Argument validation
if(is.null(coords)) stop("coords is not an optional parameter")
if(ncol(coords)!=2) stop("coords must be an n x 2 matrix")
if(!isSymmetric(L2norm)) stop("L2norm must be... |
#Cross validation for XGBoost model (Github)
library(readr)
library(plyr)
library(dplyr)
library(reshape2)
library(parallel)
library(caret)
library(xgboost)
library(doMC)
library(pROC)
registerDoMC(5) #for parallelization.
# Note that results may differ slightly when using a different number of cores,
# given that n... | /build_boost.R | no_license | DURGASHIVAPRASAD/admissionprediction | R | false | false | 1,728 | r | #Cross validation for XGBoost model (Github)
library(readr)
library(plyr)
library(dplyr)
library(reshape2)
library(parallel)
library(caret)
library(xgboost)
library(doMC)
library(pROC)
registerDoMC(5) #for parallelization.
# Note that results may differ slightly when using a different number of cores,
# given that n... |
\name{eqlist}
\alias{eqlist}
\title{Earthquake list}
\docType{data}
\description{
This dataset contains a list of all earthquakes of magnitude
greater than 6 between 1900 and 2014.
}
\usage{
data(eqlist)
}
\format{
\code{eqlist} is a data frame of 16 columns and 1,698 rows:
\describe{
\item{\code{time}}{A fac... | /pkg/man/eqlist.Rd | no_license | TonyWU-git/CASdatasets | R | false | false | 2,152 | rd | \name{eqlist}
\alias{eqlist}
\title{Earthquake list}
\docType{data}
\description{
This dataset contains a list of all earthquakes of magnitude
greater than 6 between 1900 and 2014.
}
\usage{
data(eqlist)
}
\format{
\code{eqlist} is a data frame of 16 columns and 1,698 rows:
\describe{
\item{\code{time}}{A fac... |
#READ AND TRANSFORM THE DATA
data <- read.csv('./household_power_consumption.txt', sep = ';', na.strings = '?')
data$Date <- as.Date(data$Date, format = '%d/%m/%Y')
data$Time <- strptime(data$Time, format = '%H:%M:%S')
data <- data[data$Date >= '2007-02-01' & data$Date <= '2007-02-02',]
#PLOT1
png('plot1.png')
hist(da... | /plot1.R | no_license | SAMO5484/Exploratory_data_analysis_1 | R | false | false | 458 | r | #READ AND TRANSFORM THE DATA
data <- read.csv('./household_power_consumption.txt', sep = ';', na.strings = '?')
data$Date <- as.Date(data$Date, format = '%d/%m/%Y')
data$Time <- strptime(data$Time, format = '%H:%M:%S')
data <- data[data$Date >= '2007-02-01' & data$Date <= '2007-02-02',]
#PLOT1
png('plot1.png')
hist(da... |
library(RCurl)
library(XML)
library(plyr)
library(reports) # capitalizing
library(stringr)
#' Get a PubMed search index
#' @param query a PubMed search string
#' @return the XML declaration of the search
#' @example
#' # Which articles discuss the WHO FCTC?
#' pubmed_ask("FCTC OR 'Framework Convention on Tobacco Contr... | /PubMedXML/PubMedXML.r | no_license | rpsychologist/PubMed | R | false | false | 10,848 | r | library(RCurl)
library(XML)
library(plyr)
library(reports) # capitalizing
library(stringr)
#' Get a PubMed search index
#' @param query a PubMed search string
#' @return the XML declaration of the search
#' @example
#' # Which articles discuss the WHO FCTC?
#' pubmed_ask("FCTC OR 'Framework Convention on Tobacco Contr... |
# move to the directory where the data file exdata_data_household_power_consumption.zip is
setwd("~/Desktop/ExploratoryCoursera")
if(!file.exists("exdata_data_household_power_consumption.zip")) {
url<- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" # internet address of the us... | /project1plot2.R | no_license | rgolstani/ExData_Plotting1 | R | false | false | 1,298 | r |
# move to the directory where the data file exdata_data_household_power_consumption.zip is
setwd("~/Desktop/ExploratoryCoursera")
if(!file.exists("exdata_data_household_power_consumption.zip")) {
url<- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" # internet address of the us... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GDINA.R, R/anova.GDINA.R, R/coef.R,
% R/extract.R, R/personparm.GDINA.R, R/s3GDINA.R, R/summary.GDINA.R
\name{GDINA}
\alias{GDINA}
\alias{anova.GDINA}
\alias{coef.GDINA}
\alias{extract.GDINA}
\alias{personparm.GDINA}
\alias{logLik.GDINA}
\a... | /man/GDINA.Rd | no_license | momo609/GDINA | R | false | true | 46,660 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GDINA.R, R/anova.GDINA.R, R/coef.R,
% R/extract.R, R/personparm.GDINA.R, R/s3GDINA.R, R/summary.GDINA.R
\name{GDINA}
\alias{GDINA}
\alias{anova.GDINA}
\alias{coef.GDINA}
\alias{extract.GDINA}
\alias{personparm.GDINA}
\alias{logLik.GDINA}
\a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/na_count.R
\name{na_count}
\alias{na_count}
\title{Count Missing}
\usage{
na_count(x)
}
\arguments{
\item{x}{Vector}
}
\value{
integer for number of missing
}
\description{
Count Missing
}
\examples{
x = 1:100
ind = sample(1:100, 10, replace ... | /man/na_count.Rd | no_license | Ajfrick/ajfhelpR | R | false | true | 388 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/na_count.R
\name{na_count}
\alias{na_count}
\title{Count Missing}
\usage{
na_count(x)
}
\arguments{
\item{x}{Vector}
}
\value{
integer for number of missing
}
\description{
Count Missing
}
\examples{
x = 1:100
ind = sample(1:100, 10, replace ... |
library(leaflet)
library(shiny)
library(shinyBS)
library(shinydashboard)
library(DT)
library(rgdal)
library(lazyeval)
library(dplyr)
library(purrr)
library(ggplot2)
load("appData.RData")
action_btn_style <- "margin: 10px 15px 10px 15px; width: 200px"
groupby_vars <- c("", "GBM", "RCP", "Model", "Region", "Vegetation"... | /jfsp-archive/other_example_apps/older_app_versions/jfsp-v07/global.R | no_license | ua-snap/snap-r-tools | R | false | false | 649 | r | library(leaflet)
library(shiny)
library(shinyBS)
library(shinydashboard)
library(DT)
library(rgdal)
library(lazyeval)
library(dplyr)
library(purrr)
library(ggplot2)
load("appData.RData")
action_btn_style <- "margin: 10px 15px 10px 15px; width: 200px"
groupby_vars <- c("", "GBM", "RCP", "Model", "Region", "Vegetation"... |
# Predicting Customer Retention (R)
library(lattice) # lattice plot
library(vcd) # mosaic plots
library(gam) # generalized additive models for probability smooth
library(rpart) # tree-structured modeling
library(e1071) # support vector machines
library(randomForest) # random forests
library(nnet) # neur... | /Miller 05.R | no_license | ChandSuma/BUS256 | R | false | false | 16,712 | r | # Predicting Customer Retention (R)
library(lattice) # lattice plot
library(vcd) # mosaic plots
library(gam) # generalized additive models for probability smooth
library(rpart) # tree-structured modeling
library(e1071) # support vector machines
library(randomForest) # random forests
library(nnet) # neur... |
# ---- nm_fun ----
me_ <- nm_fun("TEST-range_write")
# ---- tests ----
test_that("range_write() works", {
skip_if_offline()
skip_if_no_token()
n <- 3
m <- 5
data <- suppressMessages( # silence messages about name repair
tibble::as_tibble(
matrix(head(letters, n * m), nrow = n , ncol = m), .name_re... | /tests/testthat/test-range_write.R | permissive | jesramyep/googlesheets4 | R | false | false | 5,773 | r | # ---- nm_fun ----
me_ <- nm_fun("TEST-range_write")
# ---- tests ----
test_that("range_write() works", {
skip_if_offline()
skip_if_no_token()
n <- 3
m <- 5
data <- suppressMessages( # silence messages about name repair
tibble::as_tibble(
matrix(head(letters, n * m), nrow = n , ncol = m), .name_re... |
library(tidyverse)
library(tabulizer)
library(stringr)
library(tidygeocoder)
library(leaflet)
proper_case <- function(x) {
return (gsub("\\b([A-Z])([A-Z]+)", "\\U\\1\\L\\2" , x, perl=TRUE))
}
# Location of folders
folder_location <- "C:/Users/danie/Documents/GitHub/Crime-Analysis/Rproject/Crime-Analysis/data"
for(... | /Crime-Analysis/.Rproj.user/5673F445/sources/s-3EDEBC84/F13F7345-contents | no_license | dtkillian/Kingston_Crime | R | false | false | 3,928 | library(tidyverse)
library(tabulizer)
library(stringr)
library(tidygeocoder)
library(leaflet)
proper_case <- function(x) {
return (gsub("\\b([A-Z])([A-Z]+)", "\\U\\1\\L\\2" , x, perl=TRUE))
}
# Location of folders
folder_location <- "C:/Users/danie/Documents/GitHub/Crime-Analysis/Rproject/Crime-Analysis/data"
for(... | |
% Generated by roxygen2 (4.0.1.99): do not edit by hand
\docType{methods}
\name{calculateAlignmentCoverageTwoGRanges}
\alias{calculateAlignmentCoverageTwoGRanges}
\title{Calculates the coverage of two GRanges objects}
\usage{
calculateAlignmentCoverageTwoGRanges(qh, sh)
}
\arguments{
\item{subject}{GRanges object}
\it... | /man/calculateAlignmentCoverageTwoGRanges.Rd | permissive | SimonSchafferer/short-ncrna-annotation | R | false | false | 492 | rd | % Generated by roxygen2 (4.0.1.99): do not edit by hand
\docType{methods}
\name{calculateAlignmentCoverageTwoGRanges}
\alias{calculateAlignmentCoverageTwoGRanges}
\title{Calculates the coverage of two GRanges objects}
\usage{
calculateAlignmentCoverageTwoGRanges(qh, sh)
}
\arguments{
\item{subject}{GRanges object}
\it... |
context("Plots")
test_that("plotGseaTable works", {
data(examplePathways)
data(exampleRanks)
fgseaRes <- fgsea(examplePathways, exampleRanks,
minSize=15, maxSize=100, eps=0.0)
tf <- tempfile("plot", fileext = ".png")
topPathways <- fgseaRes[head(order(pval), n=15)][order(NES),... | /tests/testthat/test_plot.R | permissive | huerqiang/fgsea | R | false | false | 1,325 | r | context("Plots")
test_that("plotGseaTable works", {
data(examplePathways)
data(exampleRanks)
fgseaRes <- fgsea(examplePathways, exampleRanks,
minSize=15, maxSize=100, eps=0.0)
tf <- tempfile("plot", fileext = ".png")
topPathways <- fgseaRes[head(order(pval), n=15)][order(NES),... |
/audit final.R | no_license | Arjit24/Audit-on-Sales-data-of-supermarket-using-R- | R | false | false | 8,646 | r | ||
\encoding{UTF-8}
\name{nestedtemp}
\alias{nestedtemp}
\alias{nestedchecker}
\alias{nestedn0}
\alias{nesteddisc}
\alias{nestednodf}
\alias{nestedbetasor}
\alias{nestedbetajac}
\alias{plot.nestedtemp}
\alias{plot.nestednodf}
\title{ Nestedness Indices for Communities of Islands or Patches }
\description{
Patches or l... | /man/nestedtemp.Rd | no_license | kevinwkc/vegan | R | false | false | 9,725 | rd | \encoding{UTF-8}
\name{nestedtemp}
\alias{nestedtemp}
\alias{nestedchecker}
\alias{nestedn0}
\alias{nesteddisc}
\alias{nestednodf}
\alias{nestedbetasor}
\alias{nestedbetajac}
\alias{plot.nestedtemp}
\alias{plot.nestednodf}
\title{ Nestedness Indices for Communities of Islands or Patches }
\description{
Patches or l... |
# Code for processing input data for the eye diagram visualization
# LICENSE: FreeBSD License
# (c) 2011-2012, Juuso Parkkinen (juuso.parkkinen@gmail.com). All rights reserved.
# Main function for writing input for the Eye diagram -script
writeEyeDiagramInput <- function(d2t, w2t, input.folder, output.file,
... | /eyediagram.R | permissive | ouzor/eyediagram | R | false | false | 7,824 | r | # Code for processing input data for the eye diagram visualization
# LICENSE: FreeBSD License
# (c) 2011-2012, Juuso Parkkinen (juuso.parkkinen@gmail.com). All rights reserved.
# Main function for writing input for the Eye diagram -script
writeEyeDiagramInput <- function(d2t, w2t, input.folder, output.file,
... |
x=c(5, 0.1, 10, 0, 5.4, NA, "abc", 4, "qwerty", NA)
is.numeric(x)
is.complex(x)
is.logical(x)
is.character(x)
is.raw(x)
for (i in 1:length(x)){
if(is.na(x[i])){
print(i)
}
}
k=0
for (i in 1:length(x)){
if(is.na(x[i])){
k=k+1
}
}
if (k==0){
print("There are no NA in x")
}
if (k!=0){
xna=numeric(k)
xx=num... | /lab1_2.R | no_license | leetimofey/RUDNprogs | R | false | false | 497 | r | x=c(5, 0.1, 10, 0, 5.4, NA, "abc", 4, "qwerty", NA)
is.numeric(x)
is.complex(x)
is.logical(x)
is.character(x)
is.raw(x)
for (i in 1:length(x)){
if(is.na(x[i])){
print(i)
}
}
k=0
for (i in 1:length(x)){
if(is.na(x[i])){
k=k+1
}
}
if (k==0){
print("There are no NA in x")
}
if (k!=0){
xna=numeric(k)
xx=num... |
#!/usr/bin/env Rscript
args <- commandArgs(trailingOnly=TRUE)
if (length(args) != 2) stop('Please specify number of topics, K.', call.=FALSE)
library(stm)
library(biom)
library(readr)
library(tidyr)
library(dplyr)
library(fastICA)
library(randomForest)
library(stringr)
library(kernlab)
library(Rcpp)
library(parallel)... | /qiime_active/ag/code/classify_ko_1.R | no_license | EESI/exploring_thematic_structure | R | false | false | 4,021 | r | #!/usr/bin/env Rscript
args <- commandArgs(trailingOnly=TRUE)
if (length(args) != 2) stop('Please specify number of topics, K.', call.=FALSE)
library(stm)
library(biom)
library(readr)
library(tidyr)
library(dplyr)
library(fastICA)
library(randomForest)
library(stringr)
library(kernlab)
library(Rcpp)
library(parallel)... |
test_that(
desc = "kitty_pics_df works as expected",
code = {
skip_on_cran()
set.seed(123)
df1 <- kitty_pics_df(url = "https://unsplash.com/s/photos/cat/")
set.seed(123)
df2 <- kitty_pics_df(url = "https://www.reshot.com/search/kitten/")
expect_equal(dim(df1)[2], 3L)
expect_equal(dim(... | /tests/testthat/test-kitty_pics_df.R | no_license | cran/kittyR | R | false | false | 463 | r | test_that(
desc = "kitty_pics_df works as expected",
code = {
skip_on_cran()
set.seed(123)
df1 <- kitty_pics_df(url = "https://unsplash.com/s/photos/cat/")
set.seed(123)
df2 <- kitty_pics_df(url = "https://www.reshot.com/search/kitten/")
expect_equal(dim(df1)[2], 3L)
expect_equal(dim(... |
library(tidyverse)
library(Biostrings)
# Manual preprocessing ----------------------------------------------------
# Make sure that data/library/ contains the following files:
# * hcg_alpha.fasta - FASTA sequence of hCG alpha chain
# * hcg_beta.fasta - FASTA sequence of hCG beta chain
# * glycan_nomenclature.csv - ... | /make_glycan_library.R | permissive | VSchaepertoens/hcg-glycosylation | R | false | false | 6,304 | r | library(tidyverse)
library(Biostrings)
# Manual preprocessing ----------------------------------------------------
# Make sure that data/library/ contains the following files:
# * hcg_alpha.fasta - FASTA sequence of hCG alpha chain
# * hcg_beta.fasta - FASTA sequence of hCG beta chain
# * glycan_nomenclature.csv - ... |
# Load packages required for later code
library(foreign)
library(data.table)
library("ggplot2")
# Read in RRS data for use in plots
rrs_database <- fread("https://raw.githubusercontent.com/SurveyDataAnalysis/supplemental/master/Leuven%20rumination%20data.csv", data.table = FALSE)
rrs_working_data <- rrs_databas... | /Chapter_7_R_Code.R | no_license | SurveyDataAnalysis/supplemental | R | false | false | 5,772 | r | # Load packages required for later code
library(foreign)
library(data.table)
library("ggplot2")
# Read in RRS data for use in plots
rrs_database <- fread("https://raw.githubusercontent.com/SurveyDataAnalysis/supplemental/master/Leuven%20rumination%20data.csv", data.table = FALSE)
rrs_working_data <- rrs_databas... |
library(Seurat)
#Read in log-space expression matrix. Has been pre-computed and normalized (see manuscript for exact details)
#The data was run in three batches (zf1, zf2, zf3), which is denoted in the column name
zfish.data=read.table("/home/dilyana/Desktop/ucl-data-science/seurat_files/seurat_files/zdata.matrix.txt... | /seurat.R | no_license | asazonov/dssc-c1 | R | false | false | 4,647 | r | library(Seurat)
#Read in log-space expression matrix. Has been pre-computed and normalized (see manuscript for exact details)
#The data was run in three batches (zf1, zf2, zf3), which is denoted in the column name
zfish.data=read.table("/home/dilyana/Desktop/ucl-data-science/seurat_files/seurat_files/zdata.matrix.txt... |
drumkitUI <- function(id,
width = "400px",
height = "400px") {
ns <- NS(id)
dumkit_id = ns("drumkit")
shiny::tagList(
htmltools::htmlTemplate("drumkit.svg",
id = glue::glue('id = "{drumkit_id}"'),
widt... | /drumkit/app.R | no_license | holmesjoli/rconf | R | false | false | 563 | r | drumkitUI <- function(id,
width = "400px",
height = "400px") {
ns <- NS(id)
dumkit_id = ns("drumkit")
shiny::tagList(
htmltools::htmlTemplate("drumkit.svg",
id = glue::glue('id = "{drumkit_id}"'),
widt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run.R
\docType{data}
\name{PAR_FILE_NAME}
\alias{PAR_FILE_NAME}
\title{File name of GAMS parameter file used for a \code{\link[=run]{run()}} and written to \code{re_dir}}
\format{
An object of class \code{character} of length 1.
}
\usage{
PAR... | /man/PAR_FILE_NAME.Rd | permissive | iiasa/testGAMS | R | false | true | 467 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run.R
\docType{data}
\name{PAR_FILE_NAME}
\alias{PAR_FILE_NAME}
\title{File name of GAMS parameter file used for a \code{\link[=run]{run()}} and written to \code{re_dir}}
\format{
An object of class \code{character} of length 1.
}
\usage{
PAR... |
library(testthat)
library(mda)
test_check("mda")
| /tests/testthat.R | no_license | cran/mda | R | false | false | 50 | r | library(testthat)
library(mda)
test_check("mda")
|
# Load relevant packages
library(foreach)
library(doParallel)
library(network)
library(ggnetwork)
library(tidyverse)
country <- "sim"
# Load input data
load(paste0("data_prepared", "/", "cils_prepared_", country, ".RData"))
path_to_minimization <- paste0("optimization_results", "/", "all_minimal_groups_", country, ... | /02_02_network_graphs.R | no_license | DavidKretschmer/covid-cohorting-code | R | false | false | 10,233 | r |
# Load relevant packages
library(foreach)
library(doParallel)
library(network)
library(ggnetwork)
library(tidyverse)
country <- "sim"
# Load input data
load(paste0("data_prepared", "/", "cils_prepared_", country, ".RData"))
path_to_minimization <- paste0("optimization_results", "/", "all_minimal_groups_", country, ... |
#!/usr/bin/env Rscript
options(stringAsfactors = FALSE, useFancyQuotes = FALSE)
# This script ouput metabolite abundance to Workflow4Metabolomics format. It can also do imputation, normalization etc
# Taking the command line arguments
args <- commandArgs(trailingOnly = TRUE)
if(length(args)==0)stop("No file has been s... | /bin/prepareOutput.r | permissive | nf-core/metaboigniter | R | false | false | 14,731 | r | #!/usr/bin/env Rscript
options(stringAsfactors = FALSE, useFancyQuotes = FALSE)
# This script ouput metabolite abundance to Workflow4Metabolomics format. It can also do imputation, normalization etc
# Taking the command line arguments
args <- commandArgs(trailingOnly = TRUE)
if(length(args)==0)stop("No file has been s... |
### This analysis uses the original clustering from 10X K=9 at
### /mnt/oncogxA/Projects/CPTRES/RNAExpression/10x/aggregates/10x_5_15/outs/analysis/clustering/kmeans_9_clusters
library(Seurat)
library(dplyr)
library(stringr)
library(liger)
library(GSA)
scdata <- Read10X(data.dir="full_28k/raw28k/")
sc <- CreateSeurat... | /analysis5.R | permissive | alex-wenzel/cptres-r | R | false | false | 3,720 | r | ### This analysis uses the original clustering from 10X K=9 at
### /mnt/oncogxA/Projects/CPTRES/RNAExpression/10x/aggregates/10x_5_15/outs/analysis/clustering/kmeans_9_clusters
library(Seurat)
library(dplyr)
library(stringr)
library(liger)
library(GSA)
scdata <- Read10X(data.dir="full_28k/raw28k/")
sc <- CreateSeurat... |
\name{GetLag}
\alias{GetLag}
\title{Gets the number of lag, which was defined for FixLagSmoothing prosedure.}
\description{
The function returns the number of lag for FixLagSmoothing prosedure.
}
\usage{
GetLag(DBN)
}
\arguments{
\item{DBN}{DBN, which has been already created in the workspace. The action is ... | /SNP/pnl.snp/PNL/R/PNLRPackage/man/GetLag.Rd | no_license | kbavishi/MineBench | R | false | false | 371 | rd | \name{GetLag}
\alias{GetLag}
\title{Gets the number of lag, which was defined for FixLagSmoothing prosedure.}
\description{
The function returns the number of lag for FixLagSmoothing prosedure.
}
\usage{
GetLag(DBN)
}
\arguments{
\item{DBN}{DBN, which has been already created in the workspace. The action is ... |
server <- function(input, output) {
#.......
type <- table(food$Results)
TT <- data.frame(type)
colnames(TT) <- c("Types","Freq")
newfood = filter(food,food$`License #`!="0")
type2 = table(newfood$`License #`)
LL = data.frame(type2)
colnames(LL) <- c("License","Freq")
#.......
color <- colo... | /final/final/server.R | no_license | xinhexu3/Xinhe-Xu | R | false | false | 3,220 | r | server <- function(input, output) {
#.......
type <- table(food$Results)
TT <- data.frame(type)
colnames(TT) <- c("Types","Freq")
newfood = filter(food,food$`License #`!="0")
type2 = table(newfood$`License #`)
LL = data.frame(type2)
colnames(LL) <- c("License","Freq")
#.......
color <- colo... |
set.seed(1234)
m = 100000
n = 500
x = rbind(
matrix(rnorm(m/2*n), ncol=n),
matrix(rnorm(m/2*n, mean=10), ncol=n)
)
y = c(rep(1L, m/2), rep(2L, m/2))
perm = sample(m)
x = x[perm, ]
y = y[perm]
test = rbind(
matrix(rnorm(3*n), ncol=n),
matrix(rnorm(2*n, mean=10), ncol=n),
matrix(rnorm(15*n), ncol=n),
matrix... | /inst/benchmarks/knn.r | permissive | wrathematics/knn | R | false | false | 528 | r | set.seed(1234)
m = 100000
n = 500
x = rbind(
matrix(rnorm(m/2*n), ncol=n),
matrix(rnorm(m/2*n, mean=10), ncol=n)
)
y = c(rep(1L, m/2), rep(2L, m/2))
perm = sample(m)
x = x[perm, ]
y = y[perm]
test = rbind(
matrix(rnorm(3*n), ncol=n),
matrix(rnorm(2*n, mean=10), ncol=n),
matrix(rnorm(15*n), ncol=n),
matrix... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/endpoints.R
\name{delete_cache}
\alias{delete_cache}
\title{Delete Project Cache}
\usage{
delete_cache(project, user, ...)
}
\arguments{
\item{project}{A character string specifying the project name, or an object of class \dQuote{circ... | /man/delete_cache.Rd | no_license | isabella232/circleci | R | false | false | 909 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/endpoints.R
\name{delete_cache}
\alias{delete_cache}
\title{Delete Project Cache}
\usage{
delete_cache(project, user, ...)
}
\arguments{
\item{project}{A character string specifying the project name, or an object of class \dQuote{circ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modify_table_styling.R
\name{modify_table_styling}
\alias{modify_table_styling}
\title{Modify Table Styling}
\usage{
modify_table_styling(
x,
columns,
rows = NULL,
label = NULL,
spanning_header = NULL,
hide = NULL,
footnote = NU... | /man/modify_table_styling.Rd | permissive | CatherineShan/gtsummary | R | false | true | 4,215 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modify_table_styling.R
\name{modify_table_styling}
\alias{modify_table_styling}
\title{Modify Table Styling}
\usage{
modify_table_styling(
x,
columns,
rows = NULL,
label = NULL,
spanning_header = NULL,
hide = NULL,
footnote = NU... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search_text.R
\name{search_text}
\alias{search_text}
\title{Search for text in R files}
\usage{
search_text(string, dir = ".", extension = c("R", "Rmd"), pattern = NULL,
fixed = FALSE, ignore.case = TRUE, deep = FALSE)
}
\arguments{
\item{s... | /man/search_text.Rd | no_license | DagHjermann/rmann | R | false | true | 1,381 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search_text.R
\name{search_text}
\alias{search_text}
\title{Search for text in R files}
\usage{
search_text(string, dir = ".", extension = c("R", "Rmd"), pattern = NULL,
fixed = FALSE, ignore.case = TRUE, deep = FALSE)
}
\arguments{
\item{s... |
library(ggplot2)
library(maps)
library(rgdal)# R wrapper around GDAL/OGR
library(sp)
require("RPostgreSQL")
library(postGIStools)
library(plyr)
# library(dplyr)
library(viridis)
library(scales)
library(rjson)
# library(jsonlite)
require(RColorBrewer)
library(glue)
# library(ggpubr)
library(cowplot)
library(grid)
librar... | /projects/synthesis/extensification/schemas/seth/rcode/graphics_histogram_extensification_seth.R | no_license | mbougie/gibbs | R | false | false | 13,788 | r | library(ggplot2)
library(maps)
library(rgdal)# R wrapper around GDAL/OGR
library(sp)
require("RPostgreSQL")
library(postGIStools)
library(plyr)
# library(dplyr)
library(viridis)
library(scales)
library(rjson)
# library(jsonlite)
require(RColorBrewer)
library(glue)
# library(ggpubr)
library(cowplot)
library(grid)
librar... |
#######################################################
######### Homework: Visualizations Using ggplot ######
#######################################################
#Your homework script and outputs should be contained in a new R Project Folder (contains .Rproj file).
#We want outputs such as figures to be containe... | /4-assignment.R | no_license | cmgienger/4-Visualization | R | false | false | 1,979 | r | #######################################################
######### Homework: Visualizations Using ggplot ######
#######################################################
#Your homework script and outputs should be contained in a new R Project Folder (contains .Rproj file).
#We want outputs such as figures to be containe... |
#' Control whether standard output should be captured or not
#'
#' @usage fassignment \%stdout\% capture
#'
#' @inheritParams multiprocess
#'
#' @param fassignment The future assignment, e.g.
#' \code{x \%<-\% \{ expr \}}.
#'
#' @param capture If TRUE, the standard output will be captured, otherwise not.
#'
#' ... | /R/stdout_OP.R | no_license | rjcc/future | R | false | false | 703 | r | #' Control whether standard output should be captured or not
#'
#' @usage fassignment \%stdout\% capture
#'
#' @inheritParams multiprocess
#'
#' @param fassignment The future assignment, e.g.
#' \code{x \%<-\% \{ expr \}}.
#'
#' @param capture If TRUE, the standard output will be captured, otherwise not.
#'
#' ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.