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 |
|---|---|---|---|---|---|---|---|---|---|
#' Create UK Biobank data schema database
#'
#' `ukbschemas_db()` generates an SQLite database containing the UK Biobank
#' data schemas from http://biobank.ctsu.ox.ac.uk/crystal/schema.cgi
#'
#' @param file The filename for the schema database. Defaults to `""`, which is
#' interpreted as `paste0("ukb-schemas-", d... | /R/ukbschemas-db.R | permissive | kenhanscombe/ukbschemas | R | false | false | 1,717 | r | #' Create UK Biobank data schema database
#'
#' `ukbschemas_db()` generates an SQLite database containing the UK Biobank
#' data schemas from http://biobank.ctsu.ox.ac.uk/crystal/schema.cgi
#'
#' @param file The filename for the schema database. Defaults to `""`, which is
#' interpreted as `paste0("ukb-schemas-", d... |
my_data <- read.table(file.choose(), header=T)
attach(my_data)
str(my_data)
model1=aov(value~month+home+brand,data = my_data)
summary(model1)
| /An_Introduction_To_Statistical_Methods_And_Data_Analysis_by_R_Lyman_Ott_And_Michael_Longnecker/CH15/EX15.5/Ex15_5.r | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 147 | r | my_data <- read.table(file.choose(), header=T)
attach(my_data)
str(my_data)
model1=aov(value~month+home+brand,data = my_data)
summary(model1)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inputs_module.R
\name{reactiveRangeOutput}
\alias{reactiveRangeOutput}
\title{'shiny' module UI output for the animaltracker app's coordinate range input.}
\usage{
reactiveRangeOutput(id)
}
\arguments{
\item{id}{chosen ID of UI output}
}
\val... | /man/reactiveRangeOutput.Rd | no_license | cran/animaltracker | R | false | true | 463 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inputs_module.R
\name{reactiveRangeOutput}
\alias{reactiveRangeOutput}
\title{'shiny' module UI output for the animaltracker app's coordinate range input.}
\usage{
reactiveRangeOutput(id)
}
\arguments{
\item{id}{chosen ID of UI output}
}
\val... |
library(readxl)
library(dplyr)
library(tidyr)
library(stringr)
library(ggplot2)
setwd('C:\\Users\\Caspar\\Dropbox\\Goldsmiths\\NSS')
fulldata<-read_excel('NSS_taught_all17_rankings.xlsx',sheet='Sheet1')
fulldata<-tbl_df(fulldata)
theme_set(theme_classic())
goldposition <- function(allQs, Q) {
thisQ<-dplyr::fi... | /NSSdensityplots.R | no_license | InfantLab/NSS_densityplots_R | R | false | false | 1,478 | r | library(readxl)
library(dplyr)
library(tidyr)
library(stringr)
library(ggplot2)
setwd('C:\\Users\\Caspar\\Dropbox\\Goldsmiths\\NSS')
fulldata<-read_excel('NSS_taught_all17_rankings.xlsx',sheet='Sheet1')
fulldata<-tbl_df(fulldata)
theme_set(theme_classic())
goldposition <- function(allQs, Q) {
thisQ<-dplyr::fi... |
#populate vector of tails
args<-commandArgs(trailingOnly=TRUE)
library(deSolve)
library(numDeriv)
library(tictoc)
# system("R CMD SHLIB /lab/solexa_bartel/teisen/Tail-seq/miR-155_final_analyses/KinetTlnAnalysis/Model/AnalyticalTailsPulseStLinked.c")
dyn.load("/lab/solexa_bartel/teisen/Tail-seq/miR-155_final_analyses/K... | /KinetTlnAnalysis/Model/UnLink/AnalyticalTailsPulseStLinked.R | no_license | timeisen/DynamicsOfCytoplasmicMrnaMetabolism | R | false | false | 5,295 | r | #populate vector of tails
args<-commandArgs(trailingOnly=TRUE)
library(deSolve)
library(numDeriv)
library(tictoc)
# system("R CMD SHLIB /lab/solexa_bartel/teisen/Tail-seq/miR-155_final_analyses/KinetTlnAnalysis/Model/AnalyticalTailsPulseStLinked.c")
dyn.load("/lab/solexa_bartel/teisen/Tail-seq/miR-155_final_analyses/K... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mlmm.R
\name{mlmm}
\alias{mlmm}
\title{The multilevel model to handle missing dependants: mlmm().}
\usage{
mlmm(formula_completed, formula_missing, formula_subject, pdata,
respond_dep_missing = TRUE, pidname, sidname, prec_prior = NULL,
... | /man/mlmm.Rd | no_license | buddalasunil999/mlmm | R | false | true | 5,172 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mlmm.R
\name{mlmm}
\alias{mlmm}
\title{The multilevel model to handle missing dependants: mlmm().}
\usage{
mlmm(formula_completed, formula_missing, formula_subject, pdata,
respond_dep_missing = TRUE, pidname, sidname, prec_prior = NULL,
... |
#' Simpson's Species Diversity Index
#'
#' Compute a species diversity index
#' @param species list of species (names, or code)
#' @return value of Species Diversity Index
#' @examples
#' compute_simpson_index(c(“butterfly","butterfly","mosquito","butterfly",
#’ ”ladybug","ladybug")))
#' @references
#' http://www.tiem.... | /wk07_program2/esm237examples/R/compute_simpson_index.R | no_license | ucsb-bren/ESM296-3W-2016 | R | false | false | 554 | r | #' Simpson's Species Diversity Index
#'
#' Compute a species diversity index
#' @param species list of species (names, or code)
#' @return value of Species Diversity Index
#' @examples
#' compute_simpson_index(c(“butterfly","butterfly","mosquito","butterfly",
#’ ”ladybug","ladybug")))
#' @references
#' http://www.tiem.... |
library(diversitree)
## set colors for the two characters
col.tree <- list(G=c("#86B8B1","#FA2A00"), K=c("#F2D694","#3D1C00"))
## ### Plot sex chromosomes on tree
## Fish data
fdat <- readRDS("output/data/fish.rds")
phy <- fdat$phy
dat <- as.data.frame(fdat$data)
## Get genera names
genus.fish <- sub("_.+$", "", ph... | /analysis/R/tree-figs.R | permissive | mwpennell/fuse | R | false | false | 561 | r | library(diversitree)
## set colors for the two characters
col.tree <- list(G=c("#86B8B1","#FA2A00"), K=c("#F2D694","#3D1C00"))
## ### Plot sex chromosomes on tree
## Fish data
fdat <- readRDS("output/data/fish.rds")
phy <- fdat$phy
dat <- as.data.frame(fdat$data)
## Get genera names
genus.fish <- sub("_.+$", "", ph... |
options(encoding = "UTF-8")
#setwd("casos-estad-sticos-1")
library(scales)
library(dplyr)
# load("data/modelo2.RData")
# load("data/modelo3.RData")
# load("data/modelo4.RData")
#* @apiTitle Servicio Perfiles
#* @apiDescription Genera una clasificación basada en el perfil del
#* cliente
#* @apiVersion 0.0.6
#... | /R/perfiles_api.R | no_license | monte777/casos-estad-sticos-1 | R | false | false | 12,152 | r | options(encoding = "UTF-8")
#setwd("casos-estad-sticos-1")
library(scales)
library(dplyr)
# load("data/modelo2.RData")
# load("data/modelo3.RData")
# load("data/modelo4.RData")
#* @apiTitle Servicio Perfiles
#* @apiDescription Genera una clasificación basada en el perfil del
#* cliente
#* @apiVersion 0.0.6
#... |
#' A function to plot a gains curve
#'
#' This function allows you to compare model performace by comparing the gains curves of models.
#' @param label.var (required)
#' @param score1, score 2, ... (at least 1 required)
#' @keywords gains, auc
#' @export
#' @examples
#' gainsplot(logit1$fitted.values, rf$fitted.values,... | /R/gainsplot.R | no_license | fzettelmeyer/mktg482 | R | false | false | 2,158 | r | #' A function to plot a gains curve
#'
#' This function allows you to compare model performace by comparing the gains curves of models.
#' @param label.var (required)
#' @param score1, score 2, ... (at least 1 required)
#' @keywords gains, auc
#' @export
#' @examples
#' gainsplot(logit1$fitted.values, rf$fitted.values,... |
library("seqinr")
setwd("D:\\python")
gctable <- read.fasta("rosalind_gc.fasta",seqtype = c("DNA"))
| /gcContent.R | no_license | jackyen2000/workstation | R | false | false | 102 | r |
library("seqinr")
setwd("D:\\python")
gctable <- read.fasta("rosalind_gc.fasta",seqtype = c("DNA"))
|
rm(list=ls())
## set environment ====
library(dplyr)
library(tidyr)
library(forcats)
# data ====
data <- read.table("analysis/006_colorectal_proteins/001_MR_results.txt", header = T, sep = "\t")
# make exposure_method id column
data$id <- paste0(data$exposure, "_", data$group, "_", data$method)
# make dataframe
data... | /scripts/008_colorectal_proteins/003_identify_associated_proteins.R | no_license | mattlee821/adiposity_proteins_colorectal_cancer | R | false | false | 42,034 | r | rm(list=ls())
## set environment ====
library(dplyr)
library(tidyr)
library(forcats)
# data ====
data <- read.table("analysis/006_colorectal_proteins/001_MR_results.txt", header = T, sep = "\t")
# make exposure_method id column
data$id <- paste0(data$exposure, "_", data$group, "_", data$method)
# make dataframe
data... |
library(pca3d)
library(corrplot)
library(qtlcharts)
games.mav <- read.csv("~/games mav.csv")
#NEED TO REMOVE OTHER VARIABLES THAT HIGHLY CORRELATE
games.mav <- games.mav[, !names(games.mav) %in% c("Rush.Att", "Rush.TD", "Pass.Att",
"Pass.Comp", "Pass.TD", "Kickoff.Ret... | /PCA.R | no_license | jmar257/cfb-analytics | R | false | false | 1,717 | r | library(pca3d)
library(corrplot)
library(qtlcharts)
games.mav <- read.csv("~/games mav.csv")
#NEED TO REMOVE OTHER VARIABLES THAT HIGHLY CORRELATE
games.mav <- games.mav[, !names(games.mav) %in% c("Rush.Att", "Rush.TD", "Pass.Att",
"Pass.Comp", "Pass.TD", "Kickoff.Ret... |
create_inflow_outflow_file <- function(full_time_local,
working_directory,
input_file_tz = 'EST5EDT',
start_forecast_step,
inflow_file1,
... | /Rscripts/fcre/create_inflow_outflow_file.R | permissive | FLARE-forecast/FLAREv1 | R | false | false | 11,226 | r | create_inflow_outflow_file <- function(full_time_local,
working_directory,
input_file_tz = 'EST5EDT',
start_forecast_step,
inflow_file1,
... |
/R1_2/test_1.R | no_license | MadMaxD/Introduction-to-R | R | false | false | 666 | r | ||
#' True dendrogram object
#'
#' A phylo object containing attributes of the comparator true dendrogram for the example data at
#' SNV position 975 kilo base pairs.
#'
#' @docType data
#'
#' @usage data(tdend)
#'
#'
#'
#' @format { A phylo object from the ape package containing four attributes:
#'
#' \desc... | /R/tdend_data.R | no_license | cran/perfectphyloR | R | false | false | 671 | r | #' True dendrogram object
#'
#' A phylo object containing attributes of the comparator true dendrogram for the example data at
#' SNV position 975 kilo base pairs.
#'
#' @docType data
#'
#' @usage data(tdend)
#'
#'
#'
#' @format { A phylo object from the ape package containing four attributes:
#'
#' \desc... |
#'
#' @title messageDS.o
#' @description This function allows for error messages arising from the
#' running of a server-side assign function to be returned to the client-side
#' @param message.obj is a character string, containing the name of the list containing the
#' message. See the header of the client-side funct... | /R/messageDS.o.R | no_license | patrickfischer1/dsBetaTest | R | false | false | 2,804 | r | #'
#' @title messageDS.o
#' @description This function allows for error messages arising from the
#' running of a server-side assign function to be returned to the client-side
#' @param message.obj is a character string, containing the name of the list containing the
#' message. See the header of the client-side funct... |
aoi <- getData('GADM',
path=gfcdwn_dir,
country= countrycode,
level=0)
print(countrycode)
aoi <- spTransform(aoi,CRS('+init=epsg:4326'))
(bb <- extent(aoi))
aoi_name <- paste0(aoi_dir,'GADM_',countrycode)
aoi_shp <- paste0(aoi_name,".shp")
aoi_field <- "i... | /scripts/b0_get_aoi.R | no_license | lecrabe/gfc_wrapper | R | false | false | 501 | r | aoi <- getData('GADM',
path=gfcdwn_dir,
country= countrycode,
level=0)
print(countrycode)
aoi <- spTransform(aoi,CRS('+init=epsg:4326'))
(bb <- extent(aoi))
aoi_name <- paste0(aoi_dir,'GADM_',countrycode)
aoi_shp <- paste0(aoi_name,".shp")
aoi_field <- "i... |
func_nuclear <- function(x_num) {
x = c(10,20,30,40)
y = c(300,250,200,150)
a = cov(x,y) / var(x)
y_mean= mean(y)
x_mean= mean(x)
b= y_mean - a*x_mean
y_hat = b +a*x_num
print(y_hat)
}
func_nuclear(35)
문제220. 탄닌 함유량과 애벌래의 성장간의 실홈표를 이용해서 탄닌 함유량이 9일때 성장률이 어떻게 되는지 알아내는 함수를 생성하시오 !
(데이터는 r... | /R 아이티윌 수업/회귀 분석 실습.R | no_license | SeWonKwon/ITWill_class | R | false | false | 3,763 | r |
func_nuclear <- function(x_num) {
x = c(10,20,30,40)
y = c(300,250,200,150)
a = cov(x,y) / var(x)
y_mean= mean(y)
x_mean= mean(x)
b= y_mean - a*x_mean
y_hat = b +a*x_num
print(y_hat)
}
func_nuclear(35)
문제220. 탄닌 함유량과 애벌래의 성장간의 실홈표를 이용해서 탄닌 함유량이 9일때 성장률이 어떻게 되는지 알아내는 함수를 생성하시오 !
(데이터는 r... |
#' Calculate the (truncated) higher-order SVD (HOSVD).
#'
#' Calculates the left singular vectors of each matrix unfolding of an array,
#' then calculates the core array. The resulting output is a Tucker
#' decomposition.
#'
#' If \code{r} is equal to the rank of \code{Y}, then \code{Y} is equal to
#' \code{atra... | /tensr/R/tensor_decompositions.R | no_license | ingted/R-Examples | R | false | false | 22,056 | r | #' Calculate the (truncated) higher-order SVD (HOSVD).
#'
#' Calculates the left singular vectors of each matrix unfolding of an array,
#' then calculates the core array. The resulting output is a Tucker
#' decomposition.
#'
#' If \code{r} is equal to the rank of \code{Y}, then \code{Y} is equal to
#' \code{atra... |
#' Correlation Plot of Catch at Age
#'
#' @param agedat data.frame having all age class data by species, GSA and year
#' @param species as MEDITS code
#' @param GSA
#' @export
corPlot = function(dat, species, GSA){
dat = subset(tcnage3, CODE==species & gsa == GSA)
if (nrow(dat)==0) stop(paste("There is no data for... | /R/corPlot.R | no_license | ferrettigs/rmedits | R | false | false | 704 | r | #' Correlation Plot of Catch at Age
#'
#' @param agedat data.frame having all age class data by species, GSA and year
#' @param species as MEDITS code
#' @param GSA
#' @export
corPlot = function(dat, species, GSA){
dat = subset(tcnage3, CODE==species & gsa == GSA)
if (nrow(dat)==0) stop(paste("There is no data for... |
\name{NISTinchOfWater39.2FtOpascal}
\alias{NISTinchOfWater39.2FtOpascal}
\title{Convert inch of water 12 to pascal }
\usage{NISTinchOfWater39.2FtOpascal(inchOfWater39.2F)}
\description{\code{NISTinchOfWater39.2FtOpascal} converts from inch of water (39.2 F) 12 to pascal (Pa) }
\arguments{
\item{inchOfWater39.2F}{inch... | /man/NISTinchOfWater39.2FtOpascal.Rd | no_license | cran/NISTunits | R | false | false | 841 | rd | \name{NISTinchOfWater39.2FtOpascal}
\alias{NISTinchOfWater39.2FtOpascal}
\title{Convert inch of water 12 to pascal }
\usage{NISTinchOfWater39.2FtOpascal(inchOfWater39.2F)}
\description{\code{NISTinchOfWater39.2FtOpascal} converts from inch of water (39.2 F) 12 to pascal (Pa) }
\arguments{
\item{inchOfWater39.2F}{inch... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SMC.r
\name{simPassiveSonar}
\alias{simPassiveSonar}
\title{Simulate A Sample Trajectory}
\usage{
simPassiveSonar(nn = 200, q, r, start, seed)
}
\arguments{
\item{nn}{sample size.}
\item{q}{contains the information about the covariance of th... | /man/simPassiveSonar.Rd | no_license | cran/NTS | R | false | true | 1,473 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SMC.r
\name{simPassiveSonar}
\alias{simPassiveSonar}
\title{Simulate A Sample Trajectory}
\usage{
simPassiveSonar(nn = 200, q, r, start, seed)
}
\arguments{
\item{nn}{sample size.}
\item{q}{contains the information about the covariance of th... |
# Making rarefaction curves for each site to show how sufficient sampling effort was
library(dplyr)
library(STRIPS2veg)
library(iNEXT)
library(ggplot2)
data("veg_mid")
# Start with 2018
veg_18 <- veg_mid %>%
filter(year == "2018") %>%
select(-year) %>%
# making dataframe into new format
tidyr::pivot_longer(c... | /data-raw/manuscript/rarefaction_curves.R | no_license | lydiaPenglish/STRIPS2vegAnalysis | R | false | false | 3,952 | r | # Making rarefaction curves for each site to show how sufficient sampling effort was
library(dplyr)
library(STRIPS2veg)
library(iNEXT)
library(ggplot2)
data("veg_mid")
# Start with 2018
veg_18 <- veg_mid %>%
filter(year == "2018") %>%
select(-year) %>%
# making dataframe into new format
tidyr::pivot_longer(c... |
linkModification <- function(enrichDatabase,enrichpathwaylink,genelist,interestingGeneMap){
#####Modify the link to highlight the genes in the pathways. Currently, we only have wikipathway and kegg pathways that need to modify the link########
if(enrichDatabase=="pathway_KEGG"){
link <- keggLinkModification(enrich... | /R/linkModification.R | no_license | inambioinfo/WebGestaltR | R | false | false | 1,182 | r | linkModification <- function(enrichDatabase,enrichpathwaylink,genelist,interestingGeneMap){
#####Modify the link to highlight the genes in the pathways. Currently, we only have wikipathway and kegg pathways that need to modify the link########
if(enrichDatabase=="pathway_KEGG"){
link <- keggLinkModification(enrich... |
if( exists("terrorismLoaded") ) {
dat <- origDat
} else {
terrorismLoaded <- TRUE
library(plyr)
library(ggplot2)
library(RColorBrewer)
# read the data
dat <- read.table("/Users/akshaykirane/Downloads/visualization/globalterrorismdb_clean.csv", header = TRUE, sep = ',')
plyrF... | /Visualizations.R | no_license | AkshayKirane/Analysis_on_Global_Terrorism_Data | R | false | false | 6,566 | r | if( exists("terrorismLoaded") ) {
dat <- origDat
} else {
terrorismLoaded <- TRUE
library(plyr)
library(ggplot2)
library(RColorBrewer)
# read the data
dat <- read.table("/Users/akshaykirane/Downloads/visualization/globalterrorismdb_clean.csv", header = TRUE, sep = ',')
plyrF... |
library(caret)
library(AppliedPredictiveModeling)
library(pls)
library(e1071)
library(lattice)
library(pls)
library(MASS)
library(lars)
library(elasticnet)
library(car)
library(glmnet)
library(plyr)
###read data
data<-read.csv("cal-housing (1).csv")
head(data)
data$ocean_proximity<-revalue(data$ocean_proximity, c("NEA... | /Unsupervised Learning.R | no_license | Alexamannn/Research-on-Testing-Supervised-and-Unsupervised-Learning-Techniques | R | false | false | 3,403 | r | library(caret)
library(AppliedPredictiveModeling)
library(pls)
library(e1071)
library(lattice)
library(pls)
library(MASS)
library(lars)
library(elasticnet)
library(car)
library(glmnet)
library(plyr)
###read data
data<-read.csv("cal-housing (1).csv")
head(data)
data$ocean_proximity<-revalue(data$ocean_proximity, c("NEA... |
library(BigginsTime)
context("Time")
test_that("midday", {
expect_equal(as.Time(1200), as.POSIXct(paste(date = Sys.Date(), format(strptime(1200, format = "%H%M"), format = "%H:%M") ), format = "%Y-%m-%d %H:%M"))
})
| /tests/testthat/test_time.R | no_license | sarotter/BigginsTime | R | false | false | 224 | r | library(BigginsTime)
context("Time")
test_that("midday", {
expect_equal(as.Time(1200), as.POSIXct(paste(date = Sys.Date(), format(strptime(1200, format = "%H%M"), format = "%H:%M") ), format = "%Y-%m-%d %H:%M"))
})
|
require(tidyverse)
require(readxl)
kantone = xml2::read_html('https://de.wikipedia.org/wiki/Kanton_(Schweiz)') %>%
rvest::html_node(xpath = '//*[@id="mw-content-text"]/div/table[1]') %>%
rvest::html_table()
k = str_replace(kantone$Kanton, 'Kanton ', '')
kantone$Kanton = str_sub(k, 1, (nchar(k) - 1) / 2)
names(k... | /_sessions/Intro2Stats/code/plots.R | permissive | michaelschulte/RBootcamp_FS2021 | R | false | false | 13,713 | r | require(tidyverse)
require(readxl)
kantone = xml2::read_html('https://de.wikipedia.org/wiki/Kanton_(Schweiz)') %>%
rvest::html_node(xpath = '//*[@id="mw-content-text"]/div/table[1]') %>%
rvest::html_table()
k = str_replace(kantone$Kanton, 'Kanton ', '')
kantone$Kanton = str_sub(k, 1, (nchar(k) - 1) / 2)
names(k... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/join_node_attrs.R
\name{join_node_attrs}
\alias{join_node_attrs}
\title{Join new node attribute values using a data frame}
\usage{
join_node_attrs(graph, df, by_graph = NULL, by_df = NULL)
}
\arguments{
\item{graph}{a graph object of class
\c... | /man/join_node_attrs.Rd | no_license | chengfeifan/DiagrammeR | R | false | true | 2,596 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/join_node_attrs.R
\name{join_node_attrs}
\alias{join_node_attrs}
\title{Join new node attribute values using a data frame}
\usage{
join_node_attrs(graph, df, by_graph = NULL, by_df = NULL)
}
\arguments{
\item{graph}{a graph object of class
\c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pairwise_stats.R
\name{pairwise_stats}
\alias{pairwise_stats}
\title{Calculate pairwise statistics between groups}
\usage{
pairwise_stats(
x,
group_cols,
var_cols,
fxn,
two_way = FALSE,
output_format = "v1",
...
)
}
\arguments{
... | /man/pairwise_stats.Rd | permissive | zcolburn/SimplifyStats | R | false | true | 1,450 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pairwise_stats.R
\name{pairwise_stats}
\alias{pairwise_stats}
\title{Calculate pairwise statistics between groups}
\usage{
pairwise_stats(
x,
group_cols,
var_cols,
fxn,
two_way = FALSE,
output_format = "v1",
...
)
}
\arguments{
... |
library(readr)
library(ggplot2)
library(gridExtra)
library(dplyr) # for `rename` & `select`
library(tidyr) # for `gather`
require(plotly)
packageVersion('plotly')
install.packages('Cairo')
library(Cairo)
#read data
visitors_hk <- read.csv("visitors_to_hk.csv",stringsAsFactors = F)
#draw multiple scatter plots
p <- ggp... | /proj3 draft.R | no_license | tinazhouwenxuan/overnight-visitors-to-hong-kong | R | false | false | 1,635 | r | library(readr)
library(ggplot2)
library(gridExtra)
library(dplyr) # for `rename` & `select`
library(tidyr) # for `gather`
require(plotly)
packageVersion('plotly')
install.packages('Cairo')
library(Cairo)
#read data
visitors_hk <- read.csv("visitors_to_hk.csv",stringsAsFactors = F)
#draw multiple scatter plots
p <- ggp... |
#' Parse raw data from solr_search, solr_facet, or solr_highlight.
#'
#' @param input Output from solr_facet
#' @param parsetype One of 'list' or 'df' (data.frame)
#' @param concat Character to conactenate strings by, e.g,. ',' (character).
#' Used in solr_parse.sr_search only.
#' @details This is the parser used inte... | /R/parsers.r | permissive | 1havran/solrium | R | false | false | 22,756 | r | #' Parse raw data from solr_search, solr_facet, or solr_highlight.
#'
#' @param input Output from solr_facet
#' @param parsetype One of 'list' or 'df' (data.frame)
#' @param concat Character to conactenate strings by, e.g,. ',' (character).
#' Used in solr_parse.sr_search only.
#' @details This is the parser used inte... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{degrees}
\alias{degrees}
\title{Title}
\usage{
degrees(x, N = T)
}
\arguments{
\item{N}{}
}
\description{
Title
}
| /man/degrees.Rd | no_license | msandifo/slab | R | false | true | 205 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{degrees}
\alias{degrees}
\title{Title}
\usage{
degrees(x, N = T)
}
\arguments{
\item{N}{}
}
\description{
Title
}
|
require(maps)
require(ggplot2)
load("../../../TheMulQuaBio/content/data/GPDDFiltered.RData")
map() + points(gpdd$long,gpdd$lat,col=2,pch=18)
map.axes()
map.scale()
# This data mostly comes from temperate regions,
# particularly Europe and North America and even
# more especially the data comes from points at
# a ... | /Week3/Code/GPDD_Data.R | no_license | TJCanterbury/CMEECourseWork | R | false | false | 438 | r | require(maps)
require(ggplot2)
load("../../../TheMulQuaBio/content/data/GPDDFiltered.RData")
map() + points(gpdd$long,gpdd$lat,col=2,pch=18)
map.axes()
map.scale()
# This data mostly comes from temperate regions,
# particularly Europe and North America and even
# more especially the data comes from points at
# a ... |
library(edfun)
### Name: edfun
### Title: Creating Empirical Distribution Functions
### Aliases: edfun
### ** Examples
set.seed(2016-08-18)
x <- rnorm(100)
x_funs <- edfun(x)
x_funs$qfun(0) # -2.6
# for extreme cases, we can add the support vector
x_funs <- edfun(x, support = c(-Inf, Inf))
x_funs$qfun(0) # -Inf
... | /data/genthat_extracted_code/edfun/examples/edfun.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 455 | r | library(edfun)
### Name: edfun
### Title: Creating Empirical Distribution Functions
### Aliases: edfun
### ** Examples
set.seed(2016-08-18)
x <- rnorm(100)
x_funs <- edfun(x)
x_funs$qfun(0) # -2.6
# for extreme cases, we can add the support vector
x_funs <- edfun(x, support = c(-Inf, Inf))
x_funs$qfun(0) # -Inf
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/addModels.R
\name{addModels}
\alias{addModels}
\title{addModels}
\usage{
addModels(screen, alternative, ROPE, c = 0)
}
\arguments{
\item{screen}{A data frame or data table containing screening data with
columns: Plate_ID, Row, Column, Compou... | /man/addModels.Rd | no_license | BenjaminChittick/BenCScore | R | false | true | 926 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/addModels.R
\name{addModels}
\alias{addModels}
\title{addModels}
\usage{
addModels(screen, alternative, ROPE, c = 0)
}
\arguments{
\item{screen}{A data frame or data table containing screening data with
columns: Plate_ID, Row, Column, Compou... |
# RawPop ------------------------------------------------------------------
#' @title Raw Population
#'
#' @description
#' The raw population class contains only genotype data.
#'
#' @param object a 'RawPop' object
#' @param x a 'RawPop' object
#' @param i index of individuals
#' @param ... additional 'R... | /fuzzedpackages/AlphaSimR/R/Class-Pop.R | no_license | akhikolla/testpackages | R | false | false | 17,942 | r | # RawPop ------------------------------------------------------------------
#' @title Raw Population
#'
#' @description
#' The raw population class contains only genotype data.
#'
#' @param object a 'RawPop' object
#' @param x a 'RawPop' object
#' @param i index of individuals
#' @param ... additional 'R... |
library(getopt)
# we read the options from the default: commandArgs(TRUE).
spec <- matrix(c(
"input_type", "t", 1, "character",
"outfile", "o", 1, "character",
"gtfFile", "x", 1, "character"),
byrow=TRUE, ncol=4)
opt <- getopt(spec)
suppressPackageStartupMessages({library("GenomicFeatures")})
txdb <- makeTxDb... | /data_manager/get_tx2gene_table.R | no_license | ieguinoa/data_manager_fetch_tx2gene | R | false | false | 615 | r | library(getopt)
# we read the options from the default: commandArgs(TRUE).
spec <- matrix(c(
"input_type", "t", 1, "character",
"outfile", "o", 1, "character",
"gtfFile", "x", 1, "character"),
byrow=TRUE, ncol=4)
opt <- getopt(spec)
suppressPackageStartupMessages({library("GenomicFeatures")})
txdb <- makeTxDb... |
# BFP web aplication with WPD and HMM
## Libraries required
library(seewave)
library(e1071)
library(wavethresh)
library(depmixS4)
library(shiny)
ui <- (fluidPage(
## MainPanel UI
## 1. App. title
titlePanel("WPD & CHMM Methods For Bearing Failure Prognostics"),
## 2. Sidebar
sideba... | /ui.R | no_license | CarloAndreRS/BFP | R | false | false | 6,299 | r | # BFP web aplication with WPD and HMM
## Libraries required
library(seewave)
library(e1071)
library(wavethresh)
library(depmixS4)
library(shiny)
ui <- (fluidPage(
## MainPanel UI
## 1. App. title
titlePanel("WPD & CHMM Methods For Bearing Failure Prognostics"),
## 2. Sidebar
sideba... |
library('MASS')
library(readr)
library(magic)
library(metafor)
get_cov <- function(mean_val, sd_val, n, rho = 0.5, n_MonteCarlo = 1e6, seed = 1234){
set.seed(seed)
nTime <- length(mean_val)
yi <- (mean_val[2:nTime] - mean_val[1:(nTime-1)]) / mean_val[1:(nTime-1)]
Sigma <- matrix(NA, nrow = nTime, ncol = ... | /foldchange_Analysis.R | no_license | stmcg/tmsr | R | false | false | 6,014 | r | library('MASS')
library(readr)
library(magic)
library(metafor)
get_cov <- function(mean_val, sd_val, n, rho = 0.5, n_MonteCarlo = 1e6, seed = 1234){
set.seed(seed)
nTime <- length(mean_val)
yi <- (mean_val[2:nTime] - mean_val[1:(nTime-1)]) / mean_val[1:(nTime-1)]
Sigma <- matrix(NA, nrow = nTime, ncol = ... |
## Exercise 3
# Author: Maggie Swift
# Created: 29 March 2020
# total dissolved nitrogen (TDN) and dissolved organic nitrogen (DON)
#-------------------------------------------------------------------------------
rm(list=ls())
setwd(dirname(rstudioapi::getSourceEditorContext()$path))
source('../clarkfunctions2020.R'... | /7_StateSpace/q3mes.R | no_license | shubhi124081/BIO665 | R | false | false | 5,537 | r | ## Exercise 3
# Author: Maggie Swift
# Created: 29 March 2020
# total dissolved nitrogen (TDN) and dissolved organic nitrogen (DON)
#-------------------------------------------------------------------------------
rm(list=ls())
setwd(dirname(rstudioapi::getSourceEditorContext()$path))
source('../clarkfunctions2020.R'... |
matrix(1:20, 4, 5)
x <- 1:4
y <- 5:8
cbind(x,y)
rbind(x,y) | /ex05.R | no_license | TROF-Bang/R_Study | R | false | false | 58 | r | matrix(1:20, 4, 5)
x <- 1:4
y <- 5:8
cbind(x,y)
rbind(x,y) |
# Import the training and testing sets
train_url <- "http://s3.amazonaws.com/assets.datacamp.com/course/Kaggle/train.csv"
test_url <- "http://s3.amazonaws.com/assets.datacamp.com/course/Kaggle/test.csv"
# Create the dataframes
train <- read.csv(train_url)
test <- read.csv(test_url)
# Investigate the data
## Two-way... | /titanic.R | no_license | finishim/Titanic | R | false | false | 1,700 | r | # Import the training and testing sets
train_url <- "http://s3.amazonaws.com/assets.datacamp.com/course/Kaggle/train.csv"
test_url <- "http://s3.amazonaws.com/assets.datacamp.com/course/Kaggle/test.csv"
# Create the dataframes
train <- read.csv(train_url)
test <- read.csv(test_url)
# Investigate the data
## Two-way... |
\name{fast_read}
\alias{fast_read}
\title{
Reading data from an input file
}
\description{
A highly efficient reading of a tab-separated text file for iq processing.
}
\usage{
fast_read(filename,
sample_id = "R.Condition",
primary_id = "PG.ProteinGroups",
secondary_id = c("EG.ModifiedSeque... | /man/fast_read.Rd | permissive | tvpham/iq | R | false | false | 3,105 | rd | \name{fast_read}
\alias{fast_read}
\title{
Reading data from an input file
}
\description{
A highly efficient reading of a tab-separated text file for iq processing.
}
\usage{
fast_read(filename,
sample_id = "R.Condition",
primary_id = "PG.ProteinGroups",
secondary_id = c("EG.ModifiedSeque... |
library(YRmisc)
### Name: pl.3smoothtxt
### Title: Scatter smooth plot with text overlay
### Aliases: pl.3smoothtxt
### ** Examples
pl.3smoothtxt(mtcars[,1], mtcars[,3], row.names(mtcars))
| /data/genthat_extracted_code/YRmisc/examples/pl.3smoothtxt.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 196 | r | library(YRmisc)
### Name: pl.3smoothtxt
### Title: Scatter smooth plot with text overlay
### Aliases: pl.3smoothtxt
### ** Examples
pl.3smoothtxt(mtcars[,1], mtcars[,3], row.names(mtcars))
|
# second create a handy function for constructing the line items
# because it's really compicated to get the format just right, so
# use thsi function to simply plug in the values you care about
DFP_constructLineItem <- function(startDate,
endDate,
deli... | /DFP_supportFunctions/DFP_constructLineItem.R | no_license | cabrossman/BannerOpportunityDashboard | R | false | false | 1,582 | r |
# second create a handy function for constructing the line items
# because it's really compicated to get the format just right, so
# use thsi function to simply plug in the values you care about
DFP_constructLineItem <- function(startDate,
endDate,
deli... |
library(nhlscrapr)
library(devtools)
library(zoo)
library(data.table)
source("./R_Code/PSO/utils.R")
build("~/Research Data/NHL/nhlscrapr/")
install("~/Research Data/NHL/nhlscrapr/")
#Process games in parallel!
library(doMC)
registerDoMC(2)
res <- foreach (kk=1:dim(game.table)[1]) %dopar%
{
message (paste(kk, game... | /R_Scripts/NHL/nhlscrapi.R | no_license | adityas16/FirstRepository | R | false | false | 7,604 | r | library(nhlscrapr)
library(devtools)
library(zoo)
library(data.table)
source("./R_Code/PSO/utils.R")
build("~/Research Data/NHL/nhlscrapr/")
install("~/Research Data/NHL/nhlscrapr/")
#Process games in parallel!
library(doMC)
registerDoMC(2)
res <- foreach (kk=1:dim(game.table)[1]) %dopar%
{
message (paste(kk, game... |
# Generates the website
rmarkdown::render_site("reports")
| /renderwebsite.R | no_license | digitalemuendigkeit/SEM2Agent | R | false | false | 60 | r | # Generates the website
rmarkdown::render_site("reports")
|
#
#
#
#
#
#
source("https://raw.githubusercontent.com/satrapade/latex_utils/master/latex_helpers_v2.R")
source("https://raw.githubusercontent.com/satrapade/utility/master/utility_functions.R")
source("https://raw.githubusercontent.com/satrapade/utility/master/nn_cast.R")
require(data.table)
require(scales)
require(Rcp... | /create_dof_report_data.R | no_license | satrapade/multiasset | R | false | false | 4,382 | r | #
#
#
#
#
#
source("https://raw.githubusercontent.com/satrapade/latex_utils/master/latex_helpers_v2.R")
source("https://raw.githubusercontent.com/satrapade/utility/master/utility_functions.R")
source("https://raw.githubusercontent.com/satrapade/utility/master/nn_cast.R")
require(data.table)
require(scales)
require(Rcp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/google_trends.R
\name{trendsRelated}
\alias{trendsRelated}
\title{Google Trends: Related Plot}
\usage{
trendsRelated(gtrend, top = NA, title = NA, note = NA, exclude = c())
}
\arguments{
\item{gtrend}{List. Result from gtrends(keyword, geo, t... | /man/trendsRelated.Rd | no_license | vahidnouri/lares | R | false | true | 1,738 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/google_trends.R
\name{trendsRelated}
\alias{trendsRelated}
\title{Google Trends: Related Plot}
\usage{
trendsRelated(gtrend, top = NA, title = NA, note = NA, exclude = c())
}
\arguments{
\item{gtrend}{List. Result from gtrends(keyword, geo, t... |
# This test is to check bernoulli gbm implementation,
# It creates a synthetic dataset, runs gbm grid in H2O and R and compares aucs
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../../h2o-runit.R')
test.GBM.bernoulli.SyntheticData <- function(conn) {
# Generate dataset
... | /h2o-r/tests/testdir_algos/gbm/runit_NOFEATURE_GBM_bernoulli_SyntheticData_medium.R | permissive | StephaneFeniar/h2o-dev | R | false | false | 3,739 | r | # This test is to check bernoulli gbm implementation,
# It creates a synthetic dataset, runs gbm grid in H2O and R and compares aucs
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../../h2o-runit.R')
test.GBM.bernoulli.SyntheticData <- function(conn) {
# Generate dataset
... |
#' Begriffix data in long format
#'
#' @usage data(begriffix)
#'
#' @format Dataset with 1304 rows and 5 variables:
#' \describe{
#' \item{y <int>}{Game score}
#' \item{id <chr>}{Player 1}
#' \item{id2 <chr>}{Player 2}
#' \item{j <int>}{Sequence for player 1}
#' \item{sp <int>}{Starting player}
#' }
#' @famil... | /R/begriffix.R | no_license | strategic-games/sg.data | R | false | false | 349 | r | #' Begriffix data in long format
#'
#' @usage data(begriffix)
#'
#' @format Dataset with 1304 rows and 5 variables:
#' \describe{
#' \item{y <int>}{Game score}
#' \item{id <chr>}{Player 1}
#' \item{id2 <chr>}{Player 2}
#' \item{j <int>}{Sequence for player 1}
#' \item{sp <int>}{Starting player}
#' }
#' @famil... |
source("common.R", local = TRUE)
shiny::shinyApp(ui, server(workers = 1L))
| /app.R | no_license | mrc-ide/shinyq | R | false | false | 75 | r | source("common.R", local = TRUE)
shiny::shinyApp(ui, server(workers = 1L))
|
require(magrittr)
require(ggplot2)
require(gganimate)
require(transformr)
bike_traffic <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-04-02/bike_traffic.csv")
# formatting time and date
bike_traffic %<>%
dplyr::mutate(date_time = lubridate::mdy_hms(d... | /cache/emily-ho|tidytuesday|seattlebike__seattlebike.r | permissive | a-rosenberg/github-content-scraper | R | false | false | 3,290 | r | require(magrittr)
require(ggplot2)
require(gganimate)
require(transformr)
bike_traffic <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-04-02/bike_traffic.csv")
# formatting time and date
bike_traffic %<>%
dplyr::mutate(date_time = lubridate::mdy_hms(d... |
library(adehabitatLT)
library("toolsForAtlas")
library(maptools)
library(rgdal)
library(tictoc)
library(stringr)
library(lubridate)
library(ggplot2)
library(dplyr)
final.res.df <-c()
# data <- removedups(data)
years.periods<-data.frame(start.date=c("2018-10-21","2018-12-05", "2019-10-21","2019-12-05"),
... | /Script/ltarj.R | no_license | IdanTalmon/HomeRangeWinter18-19Idividual | R | false | false | 2,325 | r | library(adehabitatLT)
library("toolsForAtlas")
library(maptools)
library(rgdal)
library(tictoc)
library(stringr)
library(lubridate)
library(ggplot2)
library(dplyr)
final.res.df <-c()
# data <- removedups(data)
years.periods<-data.frame(start.date=c("2018-10-21","2018-12-05", "2019-10-21","2019-12-05"),
... |
#' Summarise (for Time Series Data)
#'
#' @description
#' `summarise_by_time()` is a time-based variant of the popular `dplyr::summarise()` function
#' that uses `.date_var` to specify a date or date-time column and `.by` to group the
#' calculation by groups like "5 seconds", "week", or "3 months".
#'
#' `summarise_by... | /R/dplyr-summarise_by_time.R | no_license | josebrunods/timetk | R | false | false | 4,837 | r | #' Summarise (for Time Series Data)
#'
#' @description
#' `summarise_by_time()` is a time-based variant of the popular `dplyr::summarise()` function
#' that uses `.date_var` to specify a date or date-time column and `.by` to group the
#' calculation by groups like "5 seconds", "week", or "3 months".
#'
#' `summarise_by... |
newrptxtDir <- '/home/research/tds/motion_QC/G80/rp_art_txt/'
rptxtDir <- '/home/research/tds/motion_QC/G80/rp_txt/'
artifactDir <- '/home/research/tds/motion_QC/G80/manual_artifacts/'
library(dplyr)
library(stringr)
library(tidyr)
library(knitr)
artifacts <- data.frame(art_file=list.files(path=artifactDir, pattern='... | /fMRI/fx/motion/integrate_artifact_and_motion.r | no_license | dsnlab/TDS_scripts | R | false | false | 2,447 | r | newrptxtDir <- '/home/research/tds/motion_QC/G80/rp_art_txt/'
rptxtDir <- '/home/research/tds/motion_QC/G80/rp_txt/'
artifactDir <- '/home/research/tds/motion_QC/G80/manual_artifacts/'
library(dplyr)
library(stringr)
library(tidyr)
library(knitr)
artifacts <- data.frame(art_file=list.files(path=artifactDir, pattern='... |
library(tidyverse)
Sys.setlocale("LC_ALL","English")
par(mfrow=c(2,2))
data <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";")
data <- tbl_df(data)
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
#Filtered data based on dates "2007-02-01" and "2007-02-02"
data_filtered <- filter(data, (D... | /plot4.R | no_license | TK2008/ExData_Plotting1 | R | false | false | 1,909 | r | library(tidyverse)
Sys.setlocale("LC_ALL","English")
par(mfrow=c(2,2))
data <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";")
data <- tbl_df(data)
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
#Filtered data based on dates "2007-02-01" and "2007-02-02"
data_filtered <- filter(data, (D... |
library(data.table)
source('../competition_config.R')
setwd(path_working_directory)
labels <- fread(path_stage1_labels)
setnames(labels,'id','ct_scan_id')
nodfiles <- list.files(path_10_features_nodules,pattern='*.csv',full.names=T)
compute<-function(ln,prefix){
if(dim(ln)[1]>0){
# T... | /src/13_features_extraction_lungs_v5.R | no_license | spanishkagglers/sk-bowl17 | R | false | false | 5,462 | r | library(data.table)
source('../competition_config.R')
setwd(path_working_directory)
labels <- fread(path_stage1_labels)
setnames(labels,'id','ct_scan_id')
nodfiles <- list.files(path_10_features_nodules,pattern='*.csv',full.names=T)
compute<-function(ln,prefix){
if(dim(ln)[1]>0){
# T... |
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test UserDTO")
model.instance <- UserDTO$new()
test_that("userId", {
# tests for the property `userId` (integer)
# uncomment below to test the property
#expect_equal(model.instance$... | /libs/r/tests/testthat/test_user_dto.R | permissive | Scripta-Qumranica-Electronica/SQE_API_Connectors | R | false | false | 527 | r | # Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test UserDTO")
model.instance <- UserDTO$new()
test_that("userId", {
# tests for the property `userId` (integer)
# uncomment below to test the property
#expect_equal(model.instance$... |
#' Tables of Nace times Ceparema for given countries, years and variables
#'
#' This function creates Tables with the same built as the original EGSS-data tables from Excel. Further, the tables
#' consider, if a cell entry was reported by the member-country or if it was estimated with the gap-filling procedure.
#' Fina... | /R/tables1.R | no_license | statistikat/egssGF | R | false | false | 5,484 | r | #' Tables of Nace times Ceparema for given countries, years and variables
#'
#' This function creates Tables with the same built as the original EGSS-data tables from Excel. Further, the tables
#' consider, if a cell entry was reported by the member-country or if it was estimated with the gap-filling procedure.
#' Fina... |
#!/usr/bin/env RScript
## Script to generate UDS Enrollment plots by Total, Sex, and Race
## To use from *Nix terminal, run this script
## ./UDS_Enrolled_plots.R ./input_csv/[UMMAPMindsetRegistryFile].csv
# Get command line arguments
# args = commandArgs(trailingOnly=TRUE)
# Test if there is at least one argument: ... | /UDS_Enrolled_plots.R | no_license | MichiganADC/UDSEnrolledReport | R | false | false | 10,735 | r | #!/usr/bin/env RScript
## Script to generate UDS Enrollment plots by Total, Sex, and Race
## To use from *Nix terminal, run this script
## ./UDS_Enrolled_plots.R ./input_csv/[UMMAPMindsetRegistryFile].csv
# Get command line arguments
# args = commandArgs(trailingOnly=TRUE)
# Test if there is at least one argument: ... |
#' Channel Open
#'
#' Adds the channel back to the user’s list of channels.
#'
#' @param token The token to connect to the app.
#' @param roomid The channel’s id Required
#'
#' @export
#' @importFrom httr POST GET add_headers content stop_for_status
#' @importFrom jsonlite toJSON
channels_channel_open <- function(tok,
... | /R/channels_channel_open.R | no_license | ColinFay/rrocketchat | R | false | false | 768 | r | #' Channel Open
#'
#' Adds the channel back to the user’s list of channels.
#'
#' @param token The token to connect to the app.
#' @param roomid The channel’s id Required
#'
#' @export
#' @importFrom httr POST GET add_headers content stop_for_status
#' @importFrom jsonlite toJSON
channels_channel_open <- function(tok,
... |
test_that("chk_natomic", {
expect_error(chk_natomic(list()),
"^`list[(][)]` must be a numeric [(]integer or double[)] atomic [(]vector, matrix or array[)] object[.]",
class = "chk_error"
)
expect_error(chk_natomic(NULL),
"^`NULL` must be a numeric [(]integer or double[)] atomic [(]vector, matrix or ar... | /tests/testthat/test-chk-natomic.R | permissive | krlmlr/extras | R | false | false | 755 | r | test_that("chk_natomic", {
expect_error(chk_natomic(list()),
"^`list[(][)]` must be a numeric [(]integer or double[)] atomic [(]vector, matrix or array[)] object[.]",
class = "chk_error"
)
expect_error(chk_natomic(NULL),
"^`NULL` must be a numeric [(]integer or double[)] atomic [(]vector, matrix or ar... |
library(mlsjunkgen)
### Name: mlsjunkgenm
### Title: Generate a matrix of pseudo-random numbers using the MLS Junk
### Generator algorithm
### Aliases: mlsjunkgenm
### ** Examples
# Generate a 4x4 matrix of pseudo-random numbers with user-specified seeds
w <- 1
x <- 2
y <- 3
z <- 4
mlsjunkgenm(nrow = 4, ncol = ... | /data/genthat_extracted_code/mlsjunkgen/examples/mlsjunkgenm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,021 | r | library(mlsjunkgen)
### Name: mlsjunkgenm
### Title: Generate a matrix of pseudo-random numbers using the MLS Junk
### Generator algorithm
### Aliases: mlsjunkgenm
### ** Examples
# Generate a 4x4 matrix of pseudo-random numbers with user-specified seeds
w <- 1
x <- 2
y <- 3
z <- 4
mlsjunkgenm(nrow = 4, ncol = ... |
#' sensitivitySlot Generic
#'
#' @examples
#' data(CCLEsmall)
#' sensitivitySlot(CCLEsmall)
#'
#' @param object A \code{PharmacoSet} to extract the raw sensitivity data from
#'
#' @return A \code{list} of the sensitivity slot contents
#'
#' @describeIn PharmacoSet Retrieve the contents of the sensitivity slot
#'
#' @im... | /R/methods-sensitivitySlot.R | no_license | saisaitian/PharmacoGx | R | false | false | 1,347 | r | #' sensitivitySlot Generic
#'
#' @examples
#' data(CCLEsmall)
#' sensitivitySlot(CCLEsmall)
#'
#' @param object A \code{PharmacoSet} to extract the raw sensitivity data from
#'
#' @return A \code{list} of the sensitivity slot contents
#'
#' @describeIn PharmacoSet Retrieve the contents of the sensitivity slot
#'
#' @im... |
#' Cells data set
#'
#' @name cells
#' @docType data
#' @keywords datasets
#' @description Data set taken from \insertCite{2012_Crawley}{bellreg} and posteriorly analyzed by \insertCite{2020_Lemonte}{bellreg}. The data includes the count of infected blood cells per square millimetre on microscope slides prepared from n... | /fuzzedpackages/bellreg/R/data_doc.R | no_license | akhikolla/testpackages | R | false | false | 1,504 | r | #' Cells data set
#'
#' @name cells
#' @docType data
#' @keywords datasets
#' @description Data set taken from \insertCite{2012_Crawley}{bellreg} and posteriorly analyzed by \insertCite{2020_Lemonte}{bellreg}. The data includes the count of infected blood cells per square millimetre on microscope slides prepared from n... |
#!/sw/opt/R/3.0.2/bin/Rscript --vanilla
###############################################################################
# R code to perform edgeR-based differential gene expression analysis
#
# Run with: Rscript edgeR.R geneExprFile groupsFile outFile normalisation
#
# Author: Pieta Schofield
#########################... | /DE_tool_scripts/noiseq.R | permissive | bartongroup/profDGE48 | R | false | false | 2,188 | r | #!/sw/opt/R/3.0.2/bin/Rscript --vanilla
###############################################################################
# R code to perform edgeR-based differential gene expression analysis
#
# Run with: Rscript edgeR.R geneExprFile groupsFile outFile normalisation
#
# Author: Pieta Schofield
#########################... |
library(reshape2)
library(Hmisc)
library(stats)
library(gtools)
library(tidyverse)
# Cell frequencies
samples <- read.csv("Sheets/sample_full_integrated_pbmc_wo112.csv")
for(j in 2:ncol(samples)){
samples[31,j] <- print(sum(samples[1:30,j]))
}
samples_prop <- samples
for(j in 2:ncol(samples)){
for(i in 1:... | /A1/Correlation_plot.R | no_license | iyalue/MIS-C_scRNAseq | R | false | false | 2,519 | r | library(reshape2)
library(Hmisc)
library(stats)
library(gtools)
library(tidyverse)
# Cell frequencies
samples <- read.csv("Sheets/sample_full_integrated_pbmc_wo112.csv")
for(j in 2:ncol(samples)){
samples[31,j] <- print(sum(samples[1:30,j]))
}
samples_prop <- samples
for(j in 2:ncol(samples)){
for(i in 1:... |
library(viridis)
library(plotrix)
m <- read.table("matrizbien.txt")
m2 <- m[,-2]
mt <- t(m2)
colnames(mt) <- as.character(unlist(mt[1,]))
mt2 <- mt[-1, ]
mt3 <- mt2 [,-1869]
h <- mt3[,298:366]
m3 <- t(mt3)
wn <- as.numeric(rownames(m3))
wn2 <- matrix(, nrow=1868, ncol=1)
for (k in 1:1868){
wn2[k,1]<- NA
} ... | /.Rproj.user/55FEFCEB/sources/per/t/8093A3F3-contents | no_license | afbeltranr/trigo | R | false | false | 8,196 | library(viridis)
library(plotrix)
m <- read.table("matrizbien.txt")
m2 <- m[,-2]
mt <- t(m2)
colnames(mt) <- as.character(unlist(mt[1,]))
mt2 <- mt[-1, ]
mt3 <- mt2 [,-1869]
h <- mt3[,298:366]
m3 <- t(mt3)
wn <- as.numeric(rownames(m3))
wn2 <- matrix(, nrow=1868, ncol=1)
for (k in 1:1868){
wn2[k,1]<- NA
} ... | |
##############################################################################/
##############################################################################/
#the R code for the Figure 1 of Claire's paper
##############################################################################/
#################################... | /probit_claire_plot.R | no_license | bbarres/probit | R | false | false | 15,186 | r | ##############################################################################/
##############################################################################/
#the R code for the Figure 1 of Claire's paper
##############################################################################/
#################################... |
# My try for the matrix inversion task.
# First step, makeChacheMatrix function to
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the value of inverse of the matrix
# 4. get the value of inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(... | /cachematrix.R | no_license | StsTm/ProgrammingAssignment2 | R | false | false | 1,044 | r | # My try for the matrix inversion task.
# First step, makeChacheMatrix function to
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the value of inverse of the matrix
# 4. get the value of inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(... |
# Calculate the PnL effect due to ARRs change in marks
#
# "S:/All/Structured Risk/NEPOOL/Ancillary Services/",
# "ARR Valuation/Sent/"
#
require(CEGbase)
require(reshape)
require(zoo)
require(SecDb)
require(FTR)
require(PM) # PM/R/libMarkARRs.R
Sys.setenv(tz="")
source("H:/user/R/RMG/Energy/Trading/Cong... | /R Extension/RMG/Energy/Trading/Congestion/NEPOOL/Marks/calculate_ARR_pnl.R | no_license | uhasan1/QLExtension-backup | R | false | false | 1,646 | r | # Calculate the PnL effect due to ARRs change in marks
#
# "S:/All/Structured Risk/NEPOOL/Ancillary Services/",
# "ARR Valuation/Sent/"
#
require(CEGbase)
require(reshape)
require(zoo)
require(SecDb)
require(FTR)
require(PM) # PM/R/libMarkARRs.R
Sys.setenv(tz="")
source("H:/user/R/RMG/Energy/Trading/Cong... |
#' Get or Set Variable or Data Frame Labels
#'
#' Assign a label to a vector or data frame, or returns value previously stored
#' in the object's \code{label} attribute (or \code{NA} if none found).
#'
#' @aliases label label<-
#' @usage label(x, all = FALSE, fallback = FALSE, simplify = FALSE)
#' label(x) <- value
#... | /R/label.R | no_license | gourabchanda1990/summarytools | R | false | false | 4,063 | r | #' Get or Set Variable or Data Frame Labels
#'
#' Assign a label to a vector or data frame, or returns value previously stored
#' in the object's \code{label} attribute (or \code{NA} if none found).
#'
#' @aliases label label<-
#' @usage label(x, all = FALSE, fallback = FALSE, simplify = FALSE)
#' label(x) <- value
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mym2r.R
\name{write.r2mym}
\alias{write.r2mym}
\title{write.r2mym: your function to transform your R code into a MyM file that can be read by the TIMER model}
\usage{
write.r2mym(data, outputfile, value.var, MyM.vartype, MyM.varname,
time.d... | /man/write.r2mym.Rd | no_license | gdafn/mym2r | R | false | true | 1,974 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mym2r.R
\name{write.r2mym}
\alias{write.r2mym}
\title{write.r2mym: your function to transform your R code into a MyM file that can be read by the TIMER model}
\usage{
write.r2mym(data, outputfile, value.var, MyM.vartype, MyM.varname,
time.d... |
#' Simulate the longitudinal and survival datasets
#'
#' This function allows you to pass in subjects in training dataset
#' and testing dataset to create four separate datasets:
#' longitudinal training, longitudinal testing,
#' survival training, survival testing.
#'
#' @param n.train number of subjects in trainin... | /jm5/R/SimulateDataset.R | no_license | zouhaotian/735_g5 | R | false | false | 4,512 | r | #' Simulate the longitudinal and survival datasets
#'
#' This function allows you to pass in subjects in training dataset
#' and testing dataset to create four separate datasets:
#' longitudinal training, longitudinal testing,
#' survival training, survival testing.
#'
#' @param n.train number of subjects in trainin... |
#' count the number of nodes
#'
#' \code{countNode} calculates the number of nodes on a \code{phylo} tree.
#'
#' @param tree A phylo object
#'
#' @export
#' @return a numeric value
#' @author Ruizhu Huang
#'
#' @examples
#' library(ggtree)
#'
#' data(tinyTree)
#'
#' ggtree(tinyTree, branch.length = 'none') +
#' geom_te... | /R/tree_countNode.R | no_license | FelixErnst/TreeSummarizedExperiment | R | false | false | 744 | r | #' count the number of nodes
#'
#' \code{countNode} calculates the number of nodes on a \code{phylo} tree.
#'
#' @param tree A phylo object
#'
#' @export
#' @return a numeric value
#' @author Ruizhu Huang
#'
#' @examples
#' library(ggtree)
#'
#' data(tinyTree)
#'
#' ggtree(tinyTree, branch.length = 'none') +
#' geom_te... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cindex.R
\name{get_iddf}
\alias{get_iddf}
\title{Given data set in long format, returns data set of last observations for an}
\usage{
get_iddf(df, t, id.var = "CombinedID")
}
\description{
Given data set in long format, returns data set of la... | /elrapack/man/get_iddf.Rd | no_license | maj-biostat/elra-biostats | R | false | true | 345 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cindex.R
\name{get_iddf}
\alias{get_iddf}
\title{Given data set in long format, returns data set of last observations for an}
\usage{
get_iddf(df, t, id.var = "CombinedID")
}
\description{
Given data set in long format, returns data set of la... |
library(tidyverse)
source("functions/create_data.R")
source("functions/run_experiment.R")
source("functions/detections_summary.R")
set.seed(1)
n <- 10
p <- c(10, 30, 100, 300, 1e3, 3e3, 6e3)
sig_p <- 3
d <- 0.74
nsims <- 400
df_detections <- tibble(p = p,
result = vector(length ... | /simulations/p_n10_sigp3_d074.R | no_license | StevenWallaert/masterthesis | R | false | false | 968 | r | library(tidyverse)
source("functions/create_data.R")
source("functions/run_experiment.R")
source("functions/detections_summary.R")
set.seed(1)
n <- 10
p <- c(10, 30, 100, 300, 1e3, 3e3, 6e3)
sig_p <- 3
d <- 0.74
nsims <- 400
df_detections <- tibble(p = p,
result = vector(length ... |
\name{wilcox.paired.multcomp}
\alias{wilcox.paired.multcomp}
\title{
Non parametric pairwise comparisons for paired data
}
\description{
Performs non parametric pairwise comparisons of paired samples by Wilcoxon signed rank tests for paired data.
}
\usage{
wilcox.paired.multcomp(formula, data, p.method = "fdr"... | /man/wilcox.paired.multcomp.Rd | no_license | cran/RVAideMemoire | R | false | false | 1,453 | rd | \name{wilcox.paired.multcomp}
\alias{wilcox.paired.multcomp}
\title{
Non parametric pairwise comparisons for paired data
}
\description{
Performs non parametric pairwise comparisons of paired samples by Wilcoxon signed rank tests for paired data.
}
\usage{
wilcox.paired.multcomp(formula, data, p.method = "fdr"... |
library(tidyverse)
# Add Y tibble for general
y <- read_csv("QuotaLB2")
# ADD Z networth
z <- read_csv("nw.csv")
# SET DATE
date_today <- as.character(Sys.Date())
# date_today <- "2021-03-20"
for (i in seq_len(nrow(z))) {
if (sum(y$ID == z$userid[i]) > 0) {
nickname <- unique((y[y$ID == z$userid[i],... | /update.R | no_license | TylerXNguyen/quota | R | false | false | 722 | r | library(tidyverse)
# Add Y tibble for general
y <- read_csv("QuotaLB2")
# ADD Z networth
z <- read_csv("nw.csv")
# SET DATE
date_today <- as.character(Sys.Date())
# date_today <- "2021-03-20"
for (i in seq_len(nrow(z))) {
if (sum(y$ID == z$userid[i]) > 0) {
nickname <- unique((y[y$ID == z$userid[i],... |
on_gha <- function() identical(Sys.getenv("GITHUB_ACTIONS"), "true")
on_cran <- function() !identical(Sys.getenv("NOT_CRAN"), "true")
if (test_srcs$length() == 0) {
# test_register_src("df", dplyr::src_df(env = new.env(parent = emptyenv())))
test_register_con("sqlite", RSQLite::SQLite(), ":memory:")
if (identi... | /tests/testthat/helper-src.R | permissive | edgararuiz/dbplyr | R | false | false | 1,319 | r | on_gha <- function() identical(Sys.getenv("GITHUB_ACTIONS"), "true")
on_cran <- function() !identical(Sys.getenv("NOT_CRAN"), "true")
if (test_srcs$length() == 0) {
# test_register_src("df", dplyr::src_df(env = new.env(parent = emptyenv())))
test_register_con("sqlite", RSQLite::SQLite(), ":memory:")
if (identi... |
#' @export
#' @title Print Memory Usage
#' @description Prints out the size of each object currently in memory.
#' @return No return.
printMemoryUsage <- function() {
# Get names from the global environment
objectNames <- ls(globalenv())
# Create an object to store the sizes
objectSizes <- rep(0, length(ob... | /R/printMemoryUsage.R | no_license | MazamaScience/TBCellGrowth | R | false | false | 984 | r | #' @export
#' @title Print Memory Usage
#' @description Prints out the size of each object currently in memory.
#' @return No return.
printMemoryUsage <- function() {
# Get names from the global environment
objectNames <- ls(globalenv())
# Create an object to store the sizes
objectSizes <- rep(0, length(ob... |
readRRR <- function (file, widths, header = FALSE, sep = "\t", skip = 0,
row.names, col.names, n = -1, buffersize = 2000, ...) {
doone <- function(x) {
x <- substring(x, first, last)
x[!nzchar(x)] <- NA_character_
x
}
if (is.list(widths)) {
recordlength <- length(widths)
... | /R/readRRR.R | no_license | iagomosqueira/iwccla | R | false | false | 2,882 | r | readRRR <- function (file, widths, header = FALSE, sep = "\t", skip = 0,
row.names, col.names, n = -1, buffersize = 2000, ...) {
doone <- function(x) {
x <- substring(x, first, last)
x[!nzchar(x)] <- NA_character_
x
}
if (is.list(widths)) {
recordlength <- length(widths)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mapalign.R
\name{encode_seq}
\alias{encode_seq}
\title{Encode RNA sequence}
\usage{
encode_seq(seq)
}
\arguments{
\item{seq}{}
}
\value{
a list
}
\description{
Encode RNA sequence
}
| /man/encode_seq.Rd | no_license | tcgriffith/RNAmrf | R | false | true | 260 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mapalign.R
\name{encode_seq}
\alias{encode_seq}
\title{Encode RNA sequence}
\usage{
encode_seq(seq)
}
\arguments{
\item{seq}{}
}
\value{
a list
}
\description{
Encode RNA sequence
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dcp2cone.R
\name{Dcp2Cone.pnorm_canon}
\alias{Dcp2Cone.pnorm_canon}
\title{Dcp2Cone canonicalizer for the p norm atom}
\usage{
Dcp2Cone.pnorm_canon(expr, args)
}
\arguments{
\item{expr}{An \linkS4class{Expression} object}
\item{args}{A list ... | /CVXR/man/Dcp2Cone.pnorm_canon.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 620 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dcp2cone.R
\name{Dcp2Cone.pnorm_canon}
\alias{Dcp2Cone.pnorm_canon}
\title{Dcp2Cone canonicalizer for the p norm atom}
\usage{
Dcp2Cone.pnorm_canon(expr, args)
}
\arguments{
\item{expr}{An \linkS4class{Expression} object}
\item{args}{A list ... |
a <- "Hello"
b <- "World"
print(paste(a, b))
print(paste(a, b, sep="...", collapse = "_"))
print(format(pi, digits = 4))
print(format(pi, scientific = TRUE))
print(format(pi, nsmall=15))
strNum <- format(15)
cat(strNum, typeof(strNum))
print(format(13.7, width = 5))
print(format("Hello", width = 8, justify='... | /string.R | no_license | SATL/R_basic | R | false | false | 424 | r | a <- "Hello"
b <- "World"
print(paste(a, b))
print(paste(a, b, sep="...", collapse = "_"))
print(format(pi, digits = 4))
print(format(pi, scientific = TRUE))
print(format(pi, nsmall=15))
strNum <- format(15)
cat(strNum, typeof(strNum))
print(format(13.7, width = 5))
print(format("Hello", width = 8, justify='... |
test_that( "works as expected", {
x = c( 'TRUE', 'FALSE', '0', NA, 'not a boolean', 'NA' )
expect_equal( tobool( x, verbose = FALSE ), x )
expect_warning( asbool <- tobool( x, ifna = 'warning' ), 'NAs were created' )
expect_equal( asbool, c( TRUE, FALSE, FALSE, NA, NA, NA ) )
expect_error... | /tests/testthat/test_tobool.R | no_license | cran/easyr | R | false | false | 826 | r | test_that( "works as expected", {
x = c( 'TRUE', 'FALSE', '0', NA, 'not a boolean', 'NA' )
expect_equal( tobool( x, verbose = FALSE ), x )
expect_warning( asbool <- tobool( x, ifna = 'warning' ), 'NAs were created' )
expect_equal( asbool, c( TRUE, FALSE, FALSE, NA, NA, NA ) )
expect_error... |
complete <- function(directory, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'id' is an integer vector indicating the monitor ID numbers
## to be used
## Return a data frame of the form:
## id nobs... | /complete.R | no_license | igorekymailcom/R_PR_PA1 | R | false | false | 997 | r | complete <- function(directory, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'id' is an integer vector indicating the monitor ID numbers
## to be used
## Return a data frame of the form:
## id nobs... |
#############################################################################
# _ _____ ____ __ ____
# / | / / | / __ )____ _/ /_/ __ \
# / |/ / /| | / __ / __ `/ __/ /_/ /
# / /| / ___ |/ /_/ / /_/ / /_/ _, _/
# /_/ |_/_/ |_/_____/\__,_/\__/_/ |_|
#
# R Tools for accessing and manipulatin... | /R/summary_queries.R | permissive | ColinTalbert/NABatR | R | false | false | 4,122 | r | #############################################################################
# _ _____ ____ __ ____
# / | / / | / __ )____ _/ /_/ __ \
# / |/ / /| | / __ / __ `/ __/ /_/ /
# / /| / ___ |/ /_/ / /_/ / /_/ _, _/
# /_/ |_/_/ |_/_____/\__,_/\__/_/ |_|
#
# R Tools for accessing and manipulatin... |
power_consump0<-read.table("household_power_consumption.txt", header = TRUE, sep = ";", dec = ".", na.strings = "?",stringsAsFactors=FALSE)
#plot 1
png("plot1.png", height = 480, width = 480)
power_consump<-subset(power_consump0, Date %in% c("1/2/2007","2/2/2007"))
hist(power_consump$Global_active_power, xlim= c(0,6),... | /plot1.R | no_license | LiMAisae/ExploratoryDataAnalysisCourseProject1 | R | false | false | 411 | r | power_consump0<-read.table("household_power_consumption.txt", header = TRUE, sep = ";", dec = ".", na.strings = "?",stringsAsFactors=FALSE)
#plot 1
png("plot1.png", height = 480, width = 480)
power_consump<-subset(power_consump0, Date %in% c("1/2/2007","2/2/2007"))
hist(power_consump$Global_active_power, xlim= c(0,6),... |
# beta intercation test between intronic and exonic eQTLs
## calculate the beta interaction for my eQTLs
## the FUNCTION TO CALCULATE THE INTERACTION IS AT THE BOTTOM
## 27-1-14
load_all()
library(lme4)
load("data/general/overlappingGenes.rda")
## load the eQTLs
load("data/results/finaleQTLs/geneExonic.Ann.PUTM.r... | /betaInteraction.R | no_license | gughi/eQTLPipeline | R | false | false | 82,588 | r | # beta intercation test between intronic and exonic eQTLs
## calculate the beta interaction for my eQTLs
## the FUNCTION TO CALCULATE THE INTERACTION IS AT THE BOTTOM
## 27-1-14
load_all()
library(lme4)
load("data/general/overlappingGenes.rda")
## load the eQTLs
load("data/results/finaleQTLs/geneExonic.Ann.PUTM.r... |
library(rubias)
### Name: geno_logL_ssq
### Title: Calculate a matrix of sum-of-squares of genotype log-likelihoods
### for a genetic dataset
### Aliases: geno_logL_ssq
### Keywords: internal
### ** Examples
example(tcf2param_list)
ale_glL <- geno_logL(ale_par_list)
| /data/genthat_extracted_code/rubias/examples/geno_logL_ssq.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 276 | r | library(rubias)
### Name: geno_logL_ssq
### Title: Calculate a matrix of sum-of-squares of genotype log-likelihoods
### for a genetic dataset
### Aliases: geno_logL_ssq
### Keywords: internal
### ** Examples
example(tcf2param_list)
ale_glL <- geno_logL(ale_par_list)
|
#' DisplayTreatment
#'
#' \code{DisplayTreatment} visualizes the treatment distribution
#' across units and time in a panel dataset
#'
#' @param unit.id Name of the unit identifier variable as a character string
#' @param time.id Name of the time identifier variable as a character string
#' @param treatment Name of th... | /R/DisplayTreatment.R | no_license | cran/PanelMatch | R | false | false | 10,971 | r | #' DisplayTreatment
#'
#' \code{DisplayTreatment} visualizes the treatment distribution
#' across units and time in a panel dataset
#'
#' @param unit.id Name of the unit identifier variable as a character string
#' @param time.id Name of the time identifier variable as a character string
#' @param treatment Name of th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pd_compartment.r
\name{print.EffectsCompartment}
\alias{print.EffectsCompartment}
\title{Prints Effects compartment information}
\usage{
\method{print}{EffectsCompartment}(x, ...)
}
\arguments{
\item{obj}{Model compartment}
}
\description{
Pr... | /RsNlme/man/print.EffectsCompartment.Rd | no_license | phxnlmedev/rpackages | R | false | true | 418 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pd_compartment.r
\name{print.EffectsCompartment}
\alias{print.EffectsCompartment}
\title{Prints Effects compartment information}
\usage{
\method{print}{EffectsCompartment}(x, ...)
}
\arguments{
\item{obj}{Model compartment}
}
\description{
Pr... |
library(tidyverse)
install.packages()
library(jsonlite)
library(dplyr)
demo_tableJ <- fromJSON(txt='demo.json')
demo_table4 <- read.csv(file='demo.csv',check.names=F,stringsAsFactors = F)
demo_table <- demo_table %>% mutate(Mileage_per_Year=Total_Miles/(2020-Year),IsActive=TRUE) #add columns to original data frame
... | /module15_exercise.R | no_license | vd1310/MechaCar_Statistical_Analysis | R | false | false | 4,174 | r | library(tidyverse)
install.packages()
library(jsonlite)
library(dplyr)
demo_tableJ <- fromJSON(txt='demo.json')
demo_table4 <- read.csv(file='demo.csv',check.names=F,stringsAsFactors = F)
demo_table <- demo_table %>% mutate(Mileage_per_Year=Total_Miles/(2020-Year),IsActive=TRUE) #add columns to original data frame
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_functions.R
\name{get_store_capacities}
\alias{get_store_capacities}
\title{Returns the capacities of the facilities (number of people)}
\usage{
get_store_capacities()
}
\value{
the capacities of the facilities
}
\description{
Returns ... | /man/get_store_capacities.Rd | no_license | will-jac/GSC | R | false | true | 410 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_functions.R
\name{get_store_capacities}
\alias{get_store_capacities}
\title{Returns the capacities of the facilities (number of people)}
\usage{
get_store_capacities()
}
\value{
the capacities of the facilities
}
\description{
Returns ... |
source("helper.R")
library(e1071)
mushroom_modify<-read.csv("./mushroomsSize20.csv",sep=',',head=T,stringsAsFactors = F)
mush10percent<-sample(1:nrow(mushroom_modify),nrow(mushroom_modify)*0.10,replace=F)
m10p<-mushroom_modify[mush10percent,c(1:11)]
predictors<-mushroom_modify[mush10percent,-c(1)]
mush90TR<... | /NB.R | no_license | duzixsiansheng/CS-GY-6923HW01 | R | false | false | 2,501 | r | source("helper.R")
library(e1071)
mushroom_modify<-read.csv("./mushroomsSize20.csv",sep=',',head=T,stringsAsFactors = F)
mush10percent<-sample(1:nrow(mushroom_modify),nrow(mushroom_modify)*0.10,replace=F)
m10p<-mushroom_modify[mush10percent,c(1:11)]
predictors<-mushroom_modify[mush10percent,-c(1)]
mush90TR<... |
####################################################################################################
## Log-likelihood function for SM(S)N Nonlinear Mixed Effects Model ##
####################################################################################################
## last updated in 2020-07-26
## downloaded fro... | /loglik-NL.R | permissive | fernandalschumacher/skewnlmm | R | false | false | 8,957 | r | ####################################################################################################
## Log-likelihood function for SM(S)N Nonlinear Mixed Effects Model ##
####################################################################################################
## last updated in 2020-07-26
## downloaded fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.