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/AllGenerics.R, R/remove.R
\name{remove_element}
\alias{remove_element}
\alias{remove_element,TidySet,characterORfactor-method}
\title{Remove elements}
\usage{
remove_element(object, elements, ...)
\S4method{remove_element}{TidySet,characterO... | /man/remove_element.Rd | permissive | ropensci/BaseSet | R | false | true | 2,295 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/remove.R
\name{remove_element}
\alias{remove_element}
\alias{remove_element,TidySet,characterORfactor-method}
\title{Remove elements}
\usage{
remove_element(object, elements, ...)
\S4method{remove_element}{TidySet,characterO... |
## load source data
summarySCC<-readRDS("c:\\users\\dwight\\documents\\r_workspace\\exploratory_data_analysis\\summarySCC_PM25.rds")
source_class<-readRDS("c:\\users\\dwight\\documents\\r_workspace\\exploratory_data_analysis\\Source_Classification_code.rds")
## Of the four types of sources indicated by the... | /plot3.R | no_license | davidford53/Exploratory_Data_Final_Project | R | false | false | 979 | r | ## load source data
summarySCC<-readRDS("c:\\users\\dwight\\documents\\r_workspace\\exploratory_data_analysis\\summarySCC_PM25.rds")
source_class<-readRDS("c:\\users\\dwight\\documents\\r_workspace\\exploratory_data_analysis\\Source_Classification_code.rds")
## Of the four types of sources indicated by the... |
\name{deepcopy}
\alias{deepcopy}
\title{Produces a physical copy of a ``big.matrix''}
\description{
This is needed to make a duplicate of a \code{big.matrix}, with the
new copy optionally filebacked.
}
\usage{
deepcopy(x, cols = NULL, rows = NULL, y = NULL, type = NULL,
separated = NULL, backingfile = NULL, backingp... | /man/deepcopy.Rd | no_license | fcastanedo/bigmemory-R | R | false | false | 2,225 | rd | \name{deepcopy}
\alias{deepcopy}
\title{Produces a physical copy of a ``big.matrix''}
\description{
This is needed to make a duplicate of a \code{big.matrix}, with the
new copy optionally filebacked.
}
\usage{
deepcopy(x, cols = NULL, rows = NULL, y = NULL, type = NULL,
separated = NULL, backingfile = NULL, backingp... |
repmat <-
function(X,m,n) {
mx = dim(X)[1]
nx = dim(X)[2]
matrix(t(matrix(X,mx,nx*n)),mx*m,nx*n,byrow=T)
}
| /R/repmat.R | no_license | cran/NHMSAR | R | false | false | 114 | r | repmat <-
function(X,m,n) {
mx = dim(X)[1]
nx = dim(X)[2]
matrix(t(matrix(X,mx,nx*n)),mx*m,nx*n,byrow=T)
}
|
# required packages
library(raster)
library(sf)
library(USAboundaries)
library(elevatr)
library(FedData)
library(dplyr)
library(censusapi)
library(spocc)
# You can get this with devtools::install_github("oharar/rBBS")
# library(rBBS)
if(!exists("censuskey")) {
warning("No US census bureau censuskey. If you don't ha... | /ExtractData.R | no_license | LeaDambly/IM_warbler | R | false | false | 6,479 | r | # required packages
library(raster)
library(sf)
library(USAboundaries)
library(elevatr)
library(FedData)
library(dplyr)
library(censusapi)
library(spocc)
# You can get this with devtools::install_github("oharar/rBBS")
# library(rBBS)
if(!exists("censuskey")) {
warning("No US census bureau censuskey. If you don't ha... |
library(dplyr)
library(data.table)
library(cowplot)
library(ggplot2)
library(Seurat)
library(SCENIC)
library(AUCell)
library(RcisTarget)
library(doMC)
library(R2HTML)
library(rbokeh)
options(width=200)
set.seed(123)
dir.create("int")
### ========================== STEP A: Extract metadata from trajectory
PTstroma <-... | /R/10__SCENIC__PT_Stroma_trajectory.R | permissive | ms-balzer/ZSF1_sGC | R | false | false | 3,647 | r | library(dplyr)
library(data.table)
library(cowplot)
library(ggplot2)
library(Seurat)
library(SCENIC)
library(AUCell)
library(RcisTarget)
library(doMC)
library(R2HTML)
library(rbokeh)
options(width=200)
set.seed(123)
dir.create("int")
### ========================== STEP A: Extract metadata from trajectory
PTstroma <-... |
\name{M.step}
\alias{M.step}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
M.step(T)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{T}{
%%... | /anRpackage/man/M.step.Rd | no_license | CaoCharles/SCSH | R | false | false | 1,499 | rd | \name{M.step}
\alias{M.step}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
M.step(T)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{T}{
%%... |
#' @rdname Internals
#' @title Internal functions not intended for general use. These functions may be changed or removed at any time without notice.
#' @name Internals
NULL
# Code is in other source code files, this is just a placeholder for roxygen | /R/Internals.R | no_license | xrobin/PanelomiX | R | false | false | 250 | r | #' @rdname Internals
#' @title Internal functions not intended for general use. These functions may be changed or removed at any time without notice.
#' @name Internals
NULL
# Code is in other source code files, this is just a placeholder for roxygen |
library(car)
library(MASS)
library(boot)
library(dplyr)
library(plyr)
library(gdata)
library(grid)
library(ggplot2)
library(multcompView)
load("c:/CloudStor/R_Stuff/Logistic/GWTHRESULTS_2016-11-10.RData")
#sources
source("C:/GitCode/r-AbSpatialAnalyses/GraphsUtils.r") # source of the TukeyHSD letters in ggplots
# fu... | /SAMTechReportFiguresV2.R | no_license | IMASau/AbResearch | R | false | false | 23,887 | r | library(car)
library(MASS)
library(boot)
library(dplyr)
library(plyr)
library(gdata)
library(grid)
library(ggplot2)
library(multcompView)
load("c:/CloudStor/R_Stuff/Logistic/GWTHRESULTS_2016-11-10.RData")
#sources
source("C:/GitCode/r-AbSpatialAnalyses/GraphsUtils.r") # source of the TukeyHSD letters in ggplots
# fu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\docType{class}
\name{H2OSegmentModelsFuture-class}
\alias{H2OSegmentModelsFuture-class}
\title{H2O Future Segment Models}
\description{
A class to contain the information for background segment models jobs.
}
\section{Slots}{
\des... | /man/H2OSegmentModelsFuture-class.Rd | no_license | cran/h2o | R | false | true | 591 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\docType{class}
\name{H2OSegmentModelsFuture-class}
\alias{H2OSegmentModelsFuture-class}
\title{H2O Future Segment Models}
\description{
A class to contain the information for background segment models jobs.
}
\section{Slots}{
\des... |
bruntVaisallaOmegaSquared <-
function( Ps , Ts, ws , consts=export_constants()){
# Check input parameters
if ((length(Ps)!=length(Ts))|(length(Ps)!=length(ws))|(length(Ts)<2)){
print("In bruntVaisallaOmegaSquared(), Ps, Ts and ws must be 1D arrays the same length")
return (NA)
}
# Get theta
thetas=... | /R/bruntVaisallaOmegaSquared.R | no_license | cran/aiRthermo | R | false | false | 1,098 | r | bruntVaisallaOmegaSquared <-
function( Ps , Ts, ws , consts=export_constants()){
# Check input parameters
if ((length(Ps)!=length(Ts))|(length(Ps)!=length(ws))|(length(Ts)<2)){
print("In bruntVaisallaOmegaSquared(), Ps, Ts and ws must be 1D arrays the same length")
return (NA)
}
# Get theta
thetas=... |
#Read in the data file and convert the first col to rownames
library(dplyr)
source("Rscripts/baseRscript.R")
########################################
plotter <- function(d){
par(mar = c(4.5, 4.5, 2, 2))
main.dat <- d
wheresthebreak <- 5
remap = 1
dataset <- main.dat[compl... | /Rscripts/13.5.ranking_Ordered_Filtered.R | no_license | kahot/HCV_project | R | false | false | 6,548 | r | #Read in the data file and convert the first col to rownames
library(dplyr)
source("Rscripts/baseRscript.R")
########################################
plotter <- function(d){
par(mar = c(4.5, 4.5, 2, 2))
main.dat <- d
wheresthebreak <- 5
remap = 1
dataset <- main.dat[compl... |
#' @title Methods for Cdfqr Objects
#' @aliases predict.cdfqr fitted.cdfqr
#' @description Methods for obtaining the fitted/predicted values for a fitted cdfqr object.
#' @param object A cdfqr model fit object
#' @param type A character that indicates whether the full model prediction/fitted values are needed, or v... | /R/qrFitted.R | no_license | Bhanditz/cdfquantreg | R | false | false | 5,470 | r | #' @title Methods for Cdfqr Objects
#' @aliases predict.cdfqr fitted.cdfqr
#' @description Methods for obtaining the fitted/predicted values for a fitted cdfqr object.
#' @param object A cdfqr model fit object
#' @param type A character that indicates whether the full model prediction/fitted values are needed, or v... |
##HALLMARKS PATHWAY SCORING
#loading libraries
library(singscore)
library(qusage)
library(ggplot2)
library(GSVA)
#loading all source files
source("/Users/michellemeier/Semesterproject/ARCHS4/singscore_function.R")
source("/Users/michellemeier/Semesterproject/ARCHS4/GSVA_function.R")
#not sure if i can just run this b... | /benchmarking_data_set/pi3k/hallmark_pathway_pi3k.R | no_license | michellemeier27/Semesterproject | R | false | false | 2,869 | r | ##HALLMARKS PATHWAY SCORING
#loading libraries
library(singscore)
library(qusage)
library(ggplot2)
library(GSVA)
#loading all source files
source("/Users/michellemeier/Semesterproject/ARCHS4/singscore_function.R")
source("/Users/michellemeier/Semesterproject/ARCHS4/GSVA_function.R")
#not sure if i can just run this b... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trackr.R
\name{p_ungroup}
\alias{p_ungroup}
\title{Remove a stratification from a data set}
\usage{
p_ungroup(x, ..., .messages = "total {.count} items", .headline = NULL)
}
\arguments{
\item{x}{- a dataframe which may be grouped (why not .da... | /man/p_ungroup.Rd | permissive | tjmckinley/trackr | R | false | true | 1,273 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trackr.R
\name{p_ungroup}
\alias{p_ungroup}
\title{Remove a stratification from a data set}
\usage{
p_ungroup(x, ..., .messages = "total {.count} items", .headline = NULL)
}
\arguments{
\item{x}{- a dataframe which may be grouped (why not .da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geographic_unique_stations.R
\name{geographic_unique_stations}
\alias{geographic_unique_stations}
\title{Return a vector of geographically unique NERR Stations}
\usage{
geographic_unique_stations(nerr_site_id)
}
\arguments{
\item{nerr_site_id... | /man/geographic_unique_stations.Rd | no_license | LimnoTech/SWMPrExtension | R | false | true | 952 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geographic_unique_stations.R
\name{geographic_unique_stations}
\alias{geographic_unique_stations}
\title{Return a vector of geographically unique NERR Stations}
\usage{
geographic_unique_stations(nerr_site_id)
}
\arguments{
\item{nerr_site_id... |
x <- 10
if (x > 20) {
print("x is greater then 20")
} else {
print("x is less then 20")
}
x <- 0
repeat {
if (x > 10) {
break
} else {
print(x);
x <- x + 1
}
}
x <- 0
while (x < 10) {
x <- x + 1
print(x);
}
for ( x in 1:10 ) print(x)
| /2.3.2.R | no_license | kazuph/DataAnalyticsForRandRuby | R | false | false | 286 | r | x <- 10
if (x > 20) {
print("x is greater then 20")
} else {
print("x is less then 20")
}
x <- 0
repeat {
if (x > 10) {
break
} else {
print(x);
x <- x + 1
}
}
x <- 0
while (x < 10) {
x <- x + 1
print(x);
}
for ( x in 1:10 ) print(x)
|
#' Server Launcher
#'
#' Launcher for the pbdCS server. The launcher should be executed
#' in batch using something like \code{mpirun}.
#'
#' @details
#' TODO
#'
#' @param port
#' The port (number) that will be used for communication between
#' the client and server. The port value for the client and server
#' mu... | /R/pbdserver.r | permissive | snoweye/pbdCS | R | false | false | 7,140 | r | #' Server Launcher
#'
#' Launcher for the pbdCS server. The launcher should be executed
#' in batch using something like \code{mpirun}.
#'
#' @details
#' TODO
#'
#' @param port
#' The port (number) that will be used for communication between
#' the client and server. The port value for the client and server
#' mu... |
\name{par.reg-package}
\alias{par.reg-package}
\alias{par.reg}
\docType{package}
\title{
Least-Square Parameter Regression
}
\description{
Package for performing a Least-Square fit for an user defined distribution of fatigue data.
}
\details{
\tabular{ll}{
Package: \tab par.reg\cr
Type: \tab Package\cr
Ve... | /par.reg/man/par.reg-package.Rd | no_license | maurermatthias/master | R | false | false | 2,689 | rd | \name{par.reg-package}
\alias{par.reg-package}
\alias{par.reg}
\docType{package}
\title{
Least-Square Parameter Regression
}
\description{
Package for performing a Least-Square fit for an user defined distribution of fatigue data.
}
\details{
\tabular{ll}{
Package: \tab par.reg\cr
Type: \tab Package\cr
Ve... |
#Zad 1.
proton(action = "login", login="johnins") #217 John Insecure johnins
#Zad 2.
for(i in 1:1000) proton(action = "login", login="johnins", password=top1000passwords[i])
#Zad 3.
#login slap
x <- logs[logs$login=="slap",]
library(plyr)
head(count(x$host), 1)
#194.29.... | /proton/gr1/AR_proton.R | no_license | lukaszbrzozowski/TechnikiWizualizacjiDanych2018 | R | false | false | 330 | r | #Zad 1.
proton(action = "login", login="johnins") #217 John Insecure johnins
#Zad 2.
for(i in 1:1000) proton(action = "login", login="johnins", password=top1000passwords[i])
#Zad 3.
#login slap
x <- logs[logs$login=="slap",]
library(plyr)
head(count(x$host), 1)
#194.29.... |
# -------------------------------------------------
# Introduction to Tidyverse - Data wrangling
# 07 set 2020
# VNTBJR
# ------------------------------------------------
#
# Load packages ------------------------------------------------
library(gapminder)
library(dplyr)
# Look at the gapminder dataset -------------... | /Introduction-to-the-Tidyverse/01-Data-wrangling.R | permissive | vntborgesjr/Data-Scientist-with-R | R | false | false | 2,670 | r | # -------------------------------------------------
# Introduction to Tidyverse - Data wrangling
# 07 set 2020
# VNTBJR
# ------------------------------------------------
#
# Load packages ------------------------------------------------
library(gapminder)
library(dplyr)
# Look at the gapminder dataset -------------... |
\name{multinet-package}
\alias{multinet-package}
\alias{multinet}
\docType{package}
\title{
Multilayer social network analysis and mining
}
\description{
This package defines a class to store multilayer networks and functions to pre-process, analyze and mine them.
With \emph{multilayer social network} we indicate a ne... | /fuzzedpackages/multinet/man/multinet-package.Rd | no_license | akhikolla/testpackages | R | false | false | 3,094 | rd | \name{multinet-package}
\alias{multinet-package}
\alias{multinet}
\docType{package}
\title{
Multilayer social network analysis and mining
}
\description{
This package defines a class to store multilayer networks and functions to pre-process, analyze and mine them.
With \emph{multilayer social network} we indicate a ne... |
library(shiny)
# Define UI for random distribution application
shinyUI(fluidPage(
# Application title
titlePanel("Equipercentile Linking Example"),
# Sidebar with controls to select the random distribution type
# and number of observations to generate. Note the use of the
# br() element ... | /ui.R | no_license | ed514/EquipercentileShiny | R | false | false | 2,300 | r | library(shiny)
# Define UI for random distribution application
shinyUI(fluidPage(
# Application title
titlePanel("Equipercentile Linking Example"),
# Sidebar with controls to select the random distribution type
# and number of observations to generate. Note the use of the
# br() element ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SGDCsc.R
\name{SC.SGDC}
\alias{SC.SGDC}
\title{Dr.s Sally Gall and Dan Cohan Shrub Cover}
\usage{
SC.SGDC(x, expert = 1)
}
\arguments{
\item{x}{Shrub cover measured as the average canopy cover of shrubs. The two experts differed in their ass... | /MBQhsi/man/SC.SGDC.Rd | no_license | rocrat/MBQ_Package | R | false | true | 613 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SGDCsc.R
\name{SC.SGDC}
\alias{SC.SGDC}
\title{Dr.s Sally Gall and Dan Cohan Shrub Cover}
\usage{
SC.SGDC(x, expert = 1)
}
\arguments{
\item{x}{Shrub cover measured as the average canopy cover of shrubs. The two experts differed in their ass... |
\name{Kryukov}
\docType{data}
\alias{Kryukov}
\title{Kryukov data set}
\description{
The data from \emph{Kryukov et al, 2009}, contain simulated site frequency spectrum data using European demographic models with purifying selection.
}
\usage{data(Kryukov) }
\format{
\code{Kryukov} is a dataframe with four colu... | /man/Kryukov.Rd | no_license | genostats/Ravages | R | false | false | 1,133 | rd | \name{Kryukov}
\docType{data}
\alias{Kryukov}
\title{Kryukov data set}
\description{
The data from \emph{Kryukov et al, 2009}, contain simulated site frequency spectrum data using European demographic models with purifying selection.
}
\usage{data(Kryukov) }
\format{
\code{Kryukov} is a dataframe with four colu... |
#'
#' Customized xtable
#'
#' The main customization pertains to alternating
#' row shading. This one will work only in LaTeX-type documents.
#' See \code{\link[xtable]{xtable}} for details.
#'
#' @param x typically a \code{data.frame}.
#' @return an object of class \code{"xtable"}
#' @importFrom xtable xtable print.... | /R/xtable2.R | no_license | vladpetyuk/vp.misc | R | false | false | 1,363 | r | #'
#' Customized xtable
#'
#' The main customization pertains to alternating
#' row shading. This one will work only in LaTeX-type documents.
#' See \code{\link[xtable]{xtable}} for details.
#'
#' @param x typically a \code{data.frame}.
#' @return an object of class \code{"xtable"}
#' @importFrom xtable xtable print.... |
library(tidyverse)
library(here)
library(jkmisc)
library(ggraph)
library(tidygraph)
library(glue)
library(ggtext)
library(magick)
ikea <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-11-03/ikea.csv')
lvl_one <- ikea %>%
group_by(category) %>%
summarize(pr... | /2020/week45/R/analysis.R | no_license | Gustavogaep/tidytuesdays-1 | R | false | false | 4,156 | r | library(tidyverse)
library(here)
library(jkmisc)
library(ggraph)
library(tidygraph)
library(glue)
library(ggtext)
library(magick)
ikea <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-11-03/ikea.csv')
lvl_one <- ikea %>%
group_by(category) %>%
summarize(pr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nhanes.R
\name{nhanesTranslate}
\alias{nhanesTranslate}
\title{Display code translation information for the specified table.}
\usage{
nhanesTranslate(nh_table, colnames = NULL, data = NULL, nchar = 32,
mincategories = 2, details = FALSE, dx... | /man/nhanesTranslate.Rd | no_license | RandomCriticalAnalysis/nhanes | R | false | true | 2,004 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nhanes.R
\name{nhanesTranslate}
\alias{nhanesTranslate}
\title{Display code translation information for the specified table.}
\usage{
nhanesTranslate(nh_table, colnames = NULL, data = NULL, nchar = 32,
mincategories = 2, details = FALSE, dx... |
\name{empCreditScoring}
\alias{empCreditScoring}
\title{empCreditScoring}
\description{
Estimates the EMP for credit risk scoring, considering constant ROI and a bimodal LGD function with point masses p0 and p1 for no loss and total loss, respectively.
}
\usage{
empCreditScoring(scores, classes, p0=0.55, p1=0.1, ROI=0.... | /man/empCreditScoring.Rd | no_license | cran/EMP | R | false | false | 2,186 | rd | \name{empCreditScoring}
\alias{empCreditScoring}
\title{empCreditScoring}
\description{
Estimates the EMP for credit risk scoring, considering constant ROI and a bimodal LGD function with point masses p0 and p1 for no loss and total loss, respectively.
}
\usage{
empCreditScoring(scores, classes, p0=0.55, p1=0.1, ROI=0.... |
gnsc.predict <-
function(x, x.class=NULL, all.mean, tilde.mu, row.struc, col.struc, inv.cov.mat, path.se.id){
x=as.matrix(x)
d=ncol(x)
class = unique(col.struc)
M = length(class)
path = unique(row.struc)
K = length(path)
n = length(col.struc)
clust.n = gnsc.restruc(col.struc)$path.n
e.class = rep(... | /smart/R/gnsc.predict.R | no_license | ingted/R-Examples | R | false | false | 939 | r | gnsc.predict <-
function(x, x.class=NULL, all.mean, tilde.mu, row.struc, col.struc, inv.cov.mat, path.se.id){
x=as.matrix(x)
d=ncol(x)
class = unique(col.struc)
M = length(class)
path = unique(row.struc)
K = length(path)
n = length(col.struc)
clust.n = gnsc.restruc(col.struc)$path.n
e.class = rep(... |
library(touchstone)
refs_install()
benchmark_run_ref(
expr1 = c("touchstone.test::wait_long_for_head(4)"),
n = 3
)
benchmark_run_ref(
expr2 = "Sys.sleep(1)",
n = 3
)
benchmarks_analyze()
bm_base <- benchmark_read("expr1", touchstone:::ref_get_or_fail("GITHUB_BASE_REF"))
bm_head <- benchmark_read("expr1", t... | /touchstone/script.R | no_license | assignUser/touchstone.test | R | false | false | 588 | r | library(touchstone)
refs_install()
benchmark_run_ref(
expr1 = c("touchstone.test::wait_long_for_head(4)"),
n = 3
)
benchmark_run_ref(
expr2 = "Sys.sleep(1)",
n = 3
)
benchmarks_analyze()
bm_base <- benchmark_read("expr1", touchstone:::ref_get_or_fail("GITHUB_BASE_REF"))
bm_head <- benchmark_read("expr1", t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\name{vec_data}
\alias{vec_data}
\title{Extract underlying data}
\usage{
vec_data(x)
}
\arguments{
\item{x}{A vector}
}
\value{
The data underlying \code{x}, free from any attributes except the names.
}
\description{
Extract the data u... | /man/vec_data.Rd | no_license | ijlyttle/vctrs | R | false | true | 709 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\name{vec_data}
\alias{vec_data}
\title{Extract underlying data}
\usage{
vec_data(x)
}
\arguments{
\item{x}{A vector}
}
\value{
The data underlying \code{x}, free from any attributes except the names.
}
\description{
Extract the data u... |
#!/usr/bin/env Rscript
library(ggplot2)
pdf(height=6, width=15)
mydata <- read.table("CESA.pep.hydro")
ggplot(mydata, aes(x=V2, y=V3)) +
annotate("rect", xmin=44, xmax=89, ymin=-5, ymax=5, alpha=.6, fill=rgb(102,194,165,maxColorValue=255)) +
annotate("rect", xmin=120, xmax=292, ymin=-5, ymax=5, alpha=.6, fil... | /02.ProtScale/draw_protscale.R | no_license | zengxiaofei/CESA | R | false | false | 2,172 | r | #!/usr/bin/env Rscript
library(ggplot2)
pdf(height=6, width=15)
mydata <- read.table("CESA.pep.hydro")
ggplot(mydata, aes(x=V2, y=V3)) +
annotate("rect", xmin=44, xmax=89, ymin=-5, ymax=5, alpha=.6, fill=rgb(102,194,165,maxColorValue=255)) +
annotate("rect", xmin=120, xmax=292, ymin=-5, ymax=5, alpha=.6, fil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blast_first.R
\name{blast_first}
\alias{blast_first}
\title{Setup function to get SMTP mail working effectively}
\usage{
blast_first()
}
\description{
Run this function first to obtain SMTP mailing functionality, which is
important for sendin... | /man/blast_first.Rd | permissive | COMODr/blastula | R | false | true | 335 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blast_first.R
\name{blast_first}
\alias{blast_first}
\title{Setup function to get SMTP mail working effectively}
\usage{
blast_first()
}
\description{
Run this function first to obtain SMTP mailing functionality, which is
important for sendin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ClearSkyQuantileRegression.R
\name{calc_ClearSky_QuantileRegression_MonthlyTimeWindow}
\alias{calc_ClearSky_QuantileRegression_MonthlyTimeWindow}
\title{Main function to estimate the clear-sky solar radiation based on (half-)hourly global rad... | /man/calc_ClearSky_QuantileRegression_MonthlyTimeWindow.Rd | no_license | laubblatt/cleaRskyQuantileRegression | R | false | true | 4,188 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ClearSkyQuantileRegression.R
\name{calc_ClearSky_QuantileRegression_MonthlyTimeWindow}
\alias{calc_ClearSky_QuantileRegression_MonthlyTimeWindow}
\title{Main function to estimate the clear-sky solar radiation based on (half-)hourly global rad... |
## Data download and unzip
# string variables for file download
fileName <- "UCIdata.zip"
url <- "http://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
dir <- "UCI HAR Dataset"
# File download verification. If file does not exist, download to working directory.
if(!file.exist... | /run_analysis.R | no_license | MartinMwiti/Getting-and-Cleaning-Data-Course-Project | R | false | false | 3,094 | r | ## Data download and unzip
# string variables for file download
fileName <- "UCIdata.zip"
url <- "http://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
dir <- "UCI HAR Dataset"
# File download verification. If file does not exist, download to working directory.
if(!file.exist... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/number_of_projects.R
\name{number_of_projects}
\alias{number_of_projects}
\alias{number_of_projects,ProjectProblem-method}
\alias{number_of_projects,OptimizationProblem-method}
\title{Number of projects}
\usage{
number_of_projects(x)
\S4meth... | /man/number_of_projects.Rd | no_license | prioritizr/oppr | R | false | true | 1,035 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/number_of_projects.R
\name{number_of_projects}
\alias{number_of_projects}
\alias{number_of_projects,ProjectProblem-method}
\alias{number_of_projects,OptimizationProblem-method}
\title{Number of projects}
\usage{
number_of_projects(x)
\S4meth... |
sim_dt <- function(seed,
n,
beta1, beta2, beta3, beta4,
alpha1, alpha2, alpha3, alpha4, alpha5, alpha6){
set.seed(seed)
p <- matrix(0, ncol = 6, nrow = n)
for(i in 1:n){
b_left = rbeta(1, beta1, beta2)
b_left_left = rbeta(1, alpha1, alpha2)
... | /numerical_examples/simulations/functions/compute_lgnml_approx.R | no_license | MaStatLab/DTMM_reproducible | R | false | false | 8,373 | r |
sim_dt <- function(seed,
n,
beta1, beta2, beta3, beta4,
alpha1, alpha2, alpha3, alpha4, alpha5, alpha6){
set.seed(seed)
p <- matrix(0, ncol = 6, nrow = n)
for(i in 1:n){
b_left = rbeta(1, beta1, beta2)
b_left_left = rbeta(1, alpha1, alpha2)
... |
# this script should customize a google map for the locations of where sponge samples were found
# Written by Abhi Mehrotra, June 15, 2021
# install (if necessary) and load needed packages. The following lines of code will check to see if a package is installed and
# if not it will install it before loading it load i... | /03_scripts/16_all_sites_google_map.R | no_license | skraftarcher/LA_FW_Sponges | R | false | false | 3,407 | r | # this script should customize a google map for the locations of where sponge samples were found
# Written by Abhi Mehrotra, June 15, 2021
# install (if necessary) and load needed packages. The following lines of code will check to see if a package is installed and
# if not it will install it before loading it load i... |
library(pdftools)
# myArgs <- commandArgs(trailingOnly = TRUE)
filenameBfr <- "D:/Projects/ReUsableCM/Input_pre/85304012_Pre_Modification.pdf"
filenameAfr <- "D:/Projects/ReUsableCM/Input_post/85304012_Post_Modification.pdf"
outputName <- "D:/Projects/ReUsableCM/PDFsExtracted/"
loan <- "85304012"
num <- "1"
outp... | /ReUsableCM/Scripts/pdfreader1.R | no_license | ManideepBangaru/PDFCompareNLP | R | false | false | 690 | r | library(pdftools)
# myArgs <- commandArgs(trailingOnly = TRUE)
filenameBfr <- "D:/Projects/ReUsableCM/Input_pre/85304012_Pre_Modification.pdf"
filenameAfr <- "D:/Projects/ReUsableCM/Input_post/85304012_Post_Modification.pdf"
outputName <- "D:/Projects/ReUsableCM/PDFsExtracted/"
loan <- "85304012"
num <- "1"
outp... |
#' @name mvCircularProbDist
#' @rdname mvCircularProbDist
#' @title Multivariate circular distribution
#'
#' @description Generic defnition for a multivariate ciruclar distribution
#'
#' @author Luis Rodriguez Lujan
#'
#' @keywords multivariate circular
#'
#' @export
NULL
# Class name
PROBDIST_CLASS <- "mvCircula... | /R/genProbDist.R | permissive | lrodriguezlujan/mvcircular | R | false | false | 10,327 | r | #' @name mvCircularProbDist
#' @rdname mvCircularProbDist
#' @title Multivariate circular distribution
#'
#' @description Generic defnition for a multivariate ciruclar distribution
#'
#' @author Luis Rodriguez Lujan
#'
#' @keywords multivariate circular
#'
#' @export
NULL
# Class name
PROBDIST_CLASS <- "mvCircula... |
#' <Add Title>
#'
#' <Add Description>
#'
#' @import htmlwidgets
#'
#' @export
FrissC3Charts <- function(message, width = NULL, height = NULL) {
# forward options using x
x = list(
message = message
)
# create widget
htmlwidgets::createWidget(
name = 'FrissC3Charts',
x,
width = width,
he... | /R/FrissC3Charts.R | no_license | ttraboue/FrissC3 | R | false | false | 17,598 | r | #' <Add Title>
#'
#' <Add Description>
#'
#' @import htmlwidgets
#'
#' @export
FrissC3Charts <- function(message, width = NULL, height = NULL) {
# forward options using x
x = list(
message = message
)
# create widget
htmlwidgets::createWidget(
name = 'FrissC3Charts',
x,
width = width,
he... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genome_data_handling.R
\name{get_cesa_bsg}
\alias{get_cesa_bsg}
\title{get_cesa_bsg}
\usage{
get_cesa_bsg(cesa)
}
\arguments{
\item{cesa}{CESAnalysis}
}
\description{
Loads the right BSgenome for a CESAnalysis
}
\keyword{internal}
| /man/get_cesa_bsg.Rd | no_license | Townsend-Lab-Yale/cancereffectsizeR | R | false | true | 309 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genome_data_handling.R
\name{get_cesa_bsg}
\alias{get_cesa_bsg}
\title{get_cesa_bsg}
\usage{
get_cesa_bsg(cesa)
}
\arguments{
\item{cesa}{CESAnalysis}
}
\description{
Loads the right BSgenome for a CESAnalysis
}
\keyword{internal}
|
#Call ancestry in all subjects, using R
#V4 - Mar 01, 2017 - New African-American cutoff
#V3 - Jun 17, 2016 - Export predpc file with header
#V2 - May 31, 2016 - Made plots and outputs pretty
#V1 - May 5 2016 - Initial release
#WR colorlist
colorlist <- rep(rgb(0,0,0,1), 8)
colorlist[1] <- rgb(242,24,3,255, max... | /ancestry_plots_v4_mar1_2017.R | no_license | nievergeltlab/ricopili | R | false | false | 7,366 | r | #Call ancestry in all subjects, using R
#V4 - Mar 01, 2017 - New African-American cutoff
#V3 - Jun 17, 2016 - Export predpc file with header
#V2 - May 31, 2016 - Made plots and outputs pretty
#V1 - May 5 2016 - Initial release
#WR colorlist
colorlist <- rep(rgb(0,0,0,1), 8)
colorlist[1] <- rgb(242,24,3,255, max... |
library(plyr)
library(dplyr)
library(ggplot2)
set.seed(2015)
n <- 250
test1 <- data_frame(x = 2*rnorm(n), y = rnorm(n)^2+1, cluster = 1)
test2 <- data_frame(x = 2*rnorm(n), y = rnorm(n)^2+5, cluster = 2)
c<-rbind(test1,test2)
ggplot(c, aes(x, y)) + geom_point()
####
library(broom)
plot_kmeans <- function(dat, k)... | /kmean_m-tests.R | no_license | dernapo/k-meansTest | R | false | false | 796 | r | library(plyr)
library(dplyr)
library(ggplot2)
set.seed(2015)
n <- 250
test1 <- data_frame(x = 2*rnorm(n), y = rnorm(n)^2+1, cluster = 1)
test2 <- data_frame(x = 2*rnorm(n), y = rnorm(n)^2+5, cluster = 2)
c<-rbind(test1,test2)
ggplot(c, aes(x, y)) + geom_point()
####
library(broom)
plot_kmeans <- function(dat, k)... |
# library(ggplot2)
# library(dplyr)
# library(stringi)
air_plots <- function(vector_with_countries, path_to_tsv) {
air_passengers <- read.csv(file = path_to_tsv, sep = '\t', header = TRUE)
rows <- rep(c("M,PAS,PAS_CRD,TOTAL,TOT,"), length(vector_with_countries))
countries <- paste0(rows, vector_with_countr... | /projects/project2/Krupinski_Kurek_Lis/POSTER/code/air_passengers.R | no_license | iketutg/2021Z-DataVisualizationTechniques | R | false | false | 1,634 | r | # library(ggplot2)
# library(dplyr)
# library(stringi)
air_plots <- function(vector_with_countries, path_to_tsv) {
air_passengers <- read.csv(file = path_to_tsv, sep = '\t', header = TRUE)
rows <- rep(c("M,PAS,PAS_CRD,TOTAL,TOT,"), length(vector_with_countries))
countries <- paste0(rows, vector_with_countr... |
# a) ----------------------------------------------------------------------
set.seed(2018)
m <- 5
rPP2 <- function(t, lam) {
Nt <- rpois(1, lam * t)
if(Nt > 0) {
Ui <- runif(Nt)
t * sort(Ui)
} else {
numeric()
}
}
N <- replicate(m, rPP2(10, 1))
# b) ---------------------------------------------... | /exercices/sol-121002.R | no_license | chblw/act-2001 | R | false | false | 786 | r |
# a) ----------------------------------------------------------------------
set.seed(2018)
m <- 5
rPP2 <- function(t, lam) {
Nt <- rpois(1, lam * t)
if(Nt > 0) {
Ui <- runif(Nt)
t * sort(Ui)
} else {
numeric()
}
}
N <- replicate(m, rPP2(10, 1))
# b) ---------------------------------------------... |
protein.info.graphlet35 = function(proteinfoldernm, func, type)
{
summarytable = read.table(file = paste(proteinfoldernm, '/ew', sep = ''), header = F)
Outputtable = summarytable[,-1]
return(Outputtable)
}
protein.info.graphletorbit = function(proteinfoldernm, func, type)
{
summarytable = read.table(f... | /scripts/CVM_calc_Utilities.R | no_license | hyguo2/wPSN_classification | R | false | false | 6,487 | r | protein.info.graphlet35 = function(proteinfoldernm, func, type)
{
summarytable = read.table(file = paste(proteinfoldernm, '/ew', sep = ''), header = F)
Outputtable = summarytable[,-1]
return(Outputtable)
}
protein.info.graphletorbit = function(proteinfoldernm, func, type)
{
summarytable = read.table(f... |
library(magrittr)
library(tibble)
library(igraph)
orbits_map <- scan("06_input.txt", what = character())
orbits_edges <- stringr::str_split(orbits_map, "\\)") %>%
purrr::map_dfr( ~ tibble( from = .x[2], to = .x[1]))
orbits_graph <- igraph::graph_from_data_frame(orbits_edges)
part1 <- igraph::distances(orbits_gr... | /06.R | no_license | adam-gruer/aoc2019 | R | false | false | 459 | r | library(magrittr)
library(tibble)
library(igraph)
orbits_map <- scan("06_input.txt", what = character())
orbits_edges <- stringr::str_split(orbits_map, "\\)") %>%
purrr::map_dfr( ~ tibble( from = .x[2], to = .x[1]))
orbits_graph <- igraph::graph_from_data_frame(orbits_edges)
part1 <- igraph::distances(orbits_gr... |
## faerbe die zahlen einer gegebenen quadratisch -symmetrischen matrix nach ihrem wertm im 2 colordesign
#' @title FUNCTION_TITLE
#' @description FUNCTION_DESCRIPTION
#' @param m_psy PARAM_DESCRIPTION
#' @param relaxissize PARAM_DESCRIPTION, Default: 2
#' @param rellabelsize PARAM_DESCRIPTION, Default: 15
#' @param tex... | /R/plotCorMatrix.R | no_license | holgerman/toolboxH | R | false | false | 1,526 | r | ## faerbe die zahlen einer gegebenen quadratisch -symmetrischen matrix nach ihrem wertm im 2 colordesign
#' @title FUNCTION_TITLE
#' @description FUNCTION_DESCRIPTION
#' @param m_psy PARAM_DESCRIPTION
#' @param relaxissize PARAM_DESCRIPTION, Default: 2
#' @param rellabelsize PARAM_DESCRIPTION, Default: 15
#' @param tex... |
#' @title R6 class representing a projection
#'
#' @description A projection on a line \code{D} parallel to another line
#' \code{Delta} is given by the line of projection (\code{D})
#' and the directrix line (\code{Delta}).
#'
#' @note For an orthogonal projection, you can use the \code{projection}
#' method of the \c... | /R/Projection.R | no_license | stla/PlaneGeometry | R | false | false | 4,206 | r | #' @title R6 class representing a projection
#'
#' @description A projection on a line \code{D} parallel to another line
#' \code{Delta} is given by the line of projection (\code{D})
#' and the directrix line (\code{Delta}).
#'
#' @note For an orthogonal projection, you can use the \code{projection}
#' method of the \c... |
#delete dataframes
ls()
rm(list = ls())
library(readr)
library(dplyr)
library(ggpubr)
years = 2000:2018
#import shit
folder <- "/Users/brian/Desktop/birdPy/c03_robin/"
file_list <- list.files(path=folder, pattern="*.csv")
for (i in 1:length(file_list)){
assign(paste('robin', substr(file_list[... | /r04_birdStat.R | no_license | atomicapple0/seminar-birdpy | R | false | false | 1,714 | r | #delete dataframes
ls()
rm(list = ls())
library(readr)
library(dplyr)
library(ggpubr)
years = 2000:2018
#import shit
folder <- "/Users/brian/Desktop/birdPy/c03_robin/"
file_list <- list.files(path=folder, pattern="*.csv")
for (i in 1:length(file_list)){
assign(paste('robin', substr(file_list[... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NGramLanguageModel.R
\name{nglm}
\alias{nglm}
\title{N-gram language model}
\usage{
nglm(model, output = NULL)
}
\description{
N-gram language model
}
\examples{
\dontrun{
# get working directory
# need to pass full path
wd <- getwd()
# Trai... | /man/nglm.Rd | no_license | news-r/decipher | R | false | true | 672 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NGramLanguageModel.R
\name{nglm}
\alias{nglm}
\title{N-gram language model}
\usage{
nglm(model, output = NULL)
}
\description{
N-gram language model
}
\examples{
\dontrun{
# get working directory
# need to pass full path
wd <- getwd()
# Trai... |
## Time Series ARIMA and MSARIMA Models in R: Box Jenkin's Methodology
rm(list=ls())
cat("\014")
install.packages("tseries")
install.packages("forecast")
install.packages("plm")
install.packages("Formula")
install.packages("tcltk")
install.packages("uroot")
install.packages("pdR")
install.packages("stats")
library(ts... | /PRA/Assignment/Old trial/PRA_reliance.R | no_license | souviksamanta95/R_Personal | R | false | false | 1,807 | r | ## Time Series ARIMA and MSARIMA Models in R: Box Jenkin's Methodology
rm(list=ls())
cat("\014")
install.packages("tseries")
install.packages("forecast")
install.packages("plm")
install.packages("Formula")
install.packages("tcltk")
install.packages("uroot")
install.packages("pdR")
install.packages("stats")
library(ts... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slides_objects.R
\name{TableCellLocation}
\alias{TableCellLocation}
\title{TableCellLocation Object}
\usage{
TableCellLocation(rowIndex = NULL, columnIndex = NULL)
}
\arguments{
\item{rowIndex}{The 0-based row index}
\item{columnIndex}{The 0... | /googleslidesv1.auto/man/TableCellLocation.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slides_objects.R
\name{TableCellLocation}
\alias{TableCellLocation}
\title{TableCellLocation Object}
\usage{
TableCellLocation(rowIndex = NULL, columnIndex = NULL)
}
\arguments{
\item{rowIndex}{The 0-based row index}
\item{columnIndex}{The 0... |
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
... | /Shiny Share Step 2 (data choice)/ui.R | no_license | iamdavecampbell/STAT5702-2021 | R | false | false | 1,617 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
... |
## ----setup, include = FALSE-----------------------------------------
library(mosaic)
require(grDevices)
require(datasets)
require(stats)
require(lattice)
require(grid)
require(mosaic)
require(mosaicData)
trellis.par.set(theme=col.mosaic(bw=FALSE))
trellis.par.set(fontsize=list(text=9))
options(keep.blank.line=F... | /inst/doc/Resampling.R | no_license | cran/mosaic | R | false | false | 11,161 | r | ## ----setup, include = FALSE-----------------------------------------
library(mosaic)
require(grDevices)
require(datasets)
require(stats)
require(lattice)
require(grid)
require(mosaic)
require(mosaicData)
trellis.par.set(theme=col.mosaic(bw=FALSE))
trellis.par.set(fontsize=list(text=9))
options(keep.blank.line=F... |
## MakeCacheMatrix and cacheSolve are functions
## to make special "matrix" that stores a matrix
## and cache's its inverse.
## makeCacheMatrix creates a special "matric"
## which is really a list conatining functions to:
## 1. set the values of the matrix
## 2. get the values of the matrix
## 3. set the values of t... | /cachematrix.R | no_license | Arlock/ProgrammingAssignment2 | R | false | false | 1,250 | r | ## MakeCacheMatrix and cacheSolve are functions
## to make special "matrix" that stores a matrix
## and cache's its inverse.
## makeCacheMatrix creates a special "matric"
## which is really a list conatining functions to:
## 1. set the values of the matrix
## 2. get the values of the matrix
## 3. set the values of t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.test.R
\name{test_returnValue_variable}
\alias{test_returnValue_variable}
\title{Tests a Standard R 'variable' ('RTestTest_vector_variable')}
\usage{
test_returnValue_variable(result, reference, xmlTestSpec,
add.desc = NULL)
}... | /man/test_returnValue_variable.Rd | no_license | cran/RTest | R | false | true | 1,715 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.test.R
\name{test_returnValue_variable}
\alias{test_returnValue_variable}
\title{Tests a Standard R 'variable' ('RTestTest_vector_variable')}
\usage{
test_returnValue_variable(result, reference, xmlTestSpec,
add.desc = NULL)
}... |
# Impute missing tissue data
rm(list=ls())
library(impute)
data_dir = "/Users/sk/DataProjects/cross-tissue"
# Loads expr_recast data frame with tissue-specific expression
load("/Users/sk/DataProjects/cross-tissue/STARNET/gene_exp_norm_reshape/expr_recast.RData")
# Get expression matrix from recasted data frame with... | /src/parse/impute.R | no_license | HaoKeLab/starnet | R | false | false | 964 | r | # Impute missing tissue data
rm(list=ls())
library(impute)
data_dir = "/Users/sk/DataProjects/cross-tissue"
# Loads expr_recast data frame with tissue-specific expression
load("/Users/sk/DataProjects/cross-tissue/STARNET/gene_exp_norm_reshape/expr_recast.RData")
# Get expression matrix from recasted data frame with... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tdar_login.R
\name{tdar_login}
\alias{tdar_login}
\title{Title}
\usage{
tdar_login(tdar_user, tdar_password)
}
\arguments{
\item{tdar_password}{}
}
\description{
Title
}
| /man/tdar_login.Rd | no_license | bocinsky/tdar | R | false | true | 248 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tdar_login.R
\name{tdar_login}
\alias{tdar_login}
\title{Title}
\usage{
tdar_login(tdar_user, tdar_password)
}
\arguments{
\item{tdar_password}{}
}
\description{
Title
}
|
# Model testing
# Import trees, remove duplicate tip
trees <- read.nexus ("data/Posterior_100_pruned.nex")
trees <- lapply(trees, FUN = drop.tip, "Acanthocybium_solandri_2")
#Import and prepare trait data for analysis
diet_colors <- c("fish" = "black", "jellyfish" = "dodgerblue", "zooplankton" = "green")
diet <- ... | /r-code/09b_testing_simmaps.R | no_license | kfeilich/pelagiaria | R | false | false | 2,625 | r | # Model testing
# Import trees, remove duplicate tip
trees <- read.nexus ("data/Posterior_100_pruned.nex")
trees <- lapply(trees, FUN = drop.tip, "Acanthocybium_solandri_2")
#Import and prepare trait data for analysis
diet_colors <- c("fish" = "black", "jellyfish" = "dodgerblue", "zooplankton" = "green")
diet <- ... |
library(ape)
testtree <- read.tree("5640_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="5640_1_unrooted.txt") | /codeml_files/newick_trees_processed/5640_1/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("5640_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="5640_1_unrooted.txt") |
library(readxl)
bank <- read_xls("E:/data science/assignments/Logistic Regression/bank-full.xls")
View(bank)
colnames(bank)
class(bank)
summary(bank)
str(bank)
dim(bank)
bank <- bank[,-9]
bank <- bank[,-15]
library(plyr)
bank$default <- as.numeric(revalue(bank$default,c("yes"=1, "no"=0)))
bank$housing <- as... | /Logistic Regression/bank.R | no_license | patelarti/R-Codes | R | false | false | 2,410 | r | library(readxl)
bank <- read_xls("E:/data science/assignments/Logistic Regression/bank-full.xls")
View(bank)
colnames(bank)
class(bank)
summary(bank)
str(bank)
dim(bank)
bank <- bank[,-9]
bank <- bank[,-15]
library(plyr)
bank$default <- as.numeric(revalue(bank$default,c("yes"=1, "no"=0)))
bank$housing <- as... |
library(tidyverse)
# 3.2.4
# 3.3.1
#1
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy), color = "blue")
#2
?mpg
#continuous - displ, year, cyl, city, hwy,
# remaining are categorical
#3
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy, color=cyl, size=cty)... | /Data Visualization with ggplot2.R | no_license | sanyalh/r4ds | R | false | false | 805 | r | library(tidyverse)
# 3.2.4
# 3.3.1
#1
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy), color = "blue")
#2
?mpg
#continuous - displ, year, cyl, city, hwy,
# remaining are categorical
#3
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy, color=cyl, size=cty)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/record-batch-reader.R
\docType{class}
\name{RecordBatchReader}
\alias{RecordBatchReader}
\alias{RecordBatchStreamReader}
\alias{RecordBatchFileReader}
\title{RecordBatchReader classes}
\description{
Apache Arrow defines two formats for \href{... | /r/man/RecordBatchReader.Rd | permissive | wuzixiao/arrow | R | false | true | 2,024 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/record-batch-reader.R
\docType{class}
\name{RecordBatchReader}
\alias{RecordBatchReader}
\alias{RecordBatchStreamReader}
\alias{RecordBatchFileReader}
\title{RecordBatchReader classes}
\description{
Apache Arrow defines two formats for \href{... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(dplyr)
library(shiny)
library(stats)
data("airquality")
shinyServer(function(input... | /KiskisDataProductsFinal/server.R | no_license | dlkiskis/DataProductsFinalProject | R | false | false | 2,317 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(dplyr)
library(shiny)
library(stats)
data("airquality")
shinyServer(function(input... |
inputFile <- 'BB_test.csv'
temporaryFile <- 'BB_test_2.csv'
con <- file(inputFile, open = "r")
con2 <- file(temporaryFile, open = "w")
head_con2 <- 'SMILES,B01,B02,B03,B04,B05,B06,B07,B08,B09,B10,B11,B12,B13,B14,B15,B16,B17,B18,B19,B20,B21,B22,B23,B24,B25,B26'
write(head_con2,file = con2)
while (length(oneLine <- ... | /042715_MachineLearning_dataset/042715_reformat.R | no_license | achiiin/Project-DFT | R | false | false | 886 | r |
inputFile <- 'BB_test.csv'
temporaryFile <- 'BB_test_2.csv'
con <- file(inputFile, open = "r")
con2 <- file(temporaryFile, open = "w")
head_con2 <- 'SMILES,B01,B02,B03,B04,B05,B06,B07,B08,B09,B10,B11,B12,B13,B14,B15,B16,B17,B18,B19,B20,B21,B22,B23,B24,B25,B26'
write(head_con2,file = con2)
while (length(oneLine <- ... |
#!/usr/bin/env Rscript
args <- commandArgs(TRUE)
if (length(args) < 2) {
print("",quote=F)
print("Usage: plot.pca.R [evec file] [pheno column to plot with]",quote=F)
print("",quote=F)
quit(save="no")
} else {
d <- args[1]
c <- args[2]
#phecol <- as.numeric(c)
outpng <- gsub(".eigenvec",".... | /popgenTB/plot.pca.R | no_license | SMAdadey/Basic_Commands | R | false | false | 1,583 | r | #!/usr/bin/env Rscript
args <- commandArgs(TRUE)
if (length(args) < 2) {
print("",quote=F)
print("Usage: plot.pca.R [evec file] [pheno column to plot with]",quote=F)
print("",quote=F)
quit(save="no")
} else {
d <- args[1]
c <- args[2]
#phecol <- as.numeric(c)
outpng <- gsub(".eigenvec",".... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/commons_internal.R
\docType{methods}
\name{getVarNameByPhvAcc}
\alias{getVarNameByPhvAcc}
\alias{getVarNameByPhvAcc,Commons,character-method}
\title{(internal) Get variable names given accessions}
\usage{
getVarNameByPhvAcc(object, ph... | /man/getVarNameByPhvAcc.Rd | no_license | jameslhao/dbgapr_dev | R | false | true | 2,475 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/commons_internal.R
\docType{methods}
\name{getVarNameByPhvAcc}
\alias{getVarNameByPhvAcc}
\alias{getVarNameByPhvAcc,Commons,character-method}
\title{(internal) Get variable names given accessions}
\usage{
getVarNameByPhvAcc(object, ph... |
# Setting the script directory as working directory
setwd(dirname(rstudioapi::getSourceEditorContext()$path))
# Reading the data from csv file
k401k <- read.csv("k401k.csv")
# i - Find the average participation rate and the average match rate in the sample of
# plans.
pratesAvg <- mean(k401k$prate)
matchAvg <- mean... | /Chapter 2 - Simple Regression/C1.R | permissive | AmirHKiani98/Wooldridge-Programming | R | false | false | 1,934 | r |
# Setting the script directory as working directory
setwd(dirname(rstudioapi::getSourceEditorContext()$path))
# Reading the data from csv file
k401k <- read.csv("k401k.csv")
# i - Find the average participation rate and the average match rate in the sample of
# plans.
pratesAvg <- mean(k401k$prate)
matchAvg <- mean... |
# rm(list = ls())
library(shiny)
library(shinyjs)
library(DT)
# library(DataQualityCheckEuracAlpEnv)
library(ggplot2)
library(plotly)
library(reshape2)
library(dplyr)
# ---- define a function to read data in the proper format ----
# it should be moved in a R package and imported from there!
read_TOA5 = function(PATH,... | /shinyApps/timeseriesviewer/app.R | no_license | sdellachiesa/timseriesviewer | R | false | false | 8,460 | r | # rm(list = ls())
library(shiny)
library(shinyjs)
library(DT)
# library(DataQualityCheckEuracAlpEnv)
library(ggplot2)
library(plotly)
library(reshape2)
library(dplyr)
# ---- define a function to read data in the proper format ----
# it should be moved in a R package and imported from there!
read_TOA5 = function(PATH,... |
### Miscellaneous utility functions
#' Precedent - takes a vector and returns the value of the vector that precedes each observation. For example, if a vector of trial types is c("congruent", "congruent", "incongruent", "congruent"), the function will provide the vector of trial types that *preceded* those in the ve... | /R/utilities.R | no_license | michaelpmcdonald/noggin | R | false | false | 720 | r | ### Miscellaneous utility functions
#' Precedent - takes a vector and returns the value of the vector that precedes each observation. For example, if a vector of trial types is c("congruent", "congruent", "incongruent", "congruent"), the function will provide the vector of trial types that *preceded* those in the ve... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615834817-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,048 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chi.R
\name{chi_age}
\alias{chi_age}
\title{Determine an age from Community Health Index (CHI) number}
\usage{
chi_age(.data, ref_date, cutoff_2000 = 20)
}
\arguments{
\item{.data}{Character. A vector of CHIs as characters/strings.}
\item{re... | /man/chi_age.Rd | no_license | SurgicalInformatics/chiTools | R | false | true | 1,006 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chi.R
\name{chi_age}
\alias{chi_age}
\title{Determine an age from Community Health Index (CHI) number}
\usage{
chi_age(.data, ref_date, cutoff_2000 = 20)
}
\arguments{
\item{.data}{Character. A vector of CHIs as characters/strings.}
\item{re... |
# Advent of code 2018 day 3
# https://adventofcode.com/2018/day/3
## @knitr day3part1
# Part 1
input <-
fread(here::here("input","day3.txt"), header = F, sep = " ") %>%
set_names(c("id","@","location","dimensions"))
cleaned <-
input %>%
select(-`@`) %>%
mutate(location =
sub("\\:","", locati... | /R/day3.R | no_license | TylerGrantSmith/AdventOfCode2018 | R | false | false | 805 | r | # Advent of code 2018 day 3
# https://adventofcode.com/2018/day/3
## @knitr day3part1
# Part 1
input <-
fread(here::here("input","day3.txt"), header = F, sep = " ") %>%
set_names(c("id","@","location","dimensions"))
cleaned <-
input %>%
select(-`@`) %>%
mutate(location =
sub("\\:","", locati... |
# 선형회귀분석
REx_LM <- function(dataset,dep_var,indep_cat_var=NULL,indep_numeric_var=NULL,vars=NULL,noint=FALSE,
Valid.method=c('Partition','Cross'),Part.method=c('all','percent','variable'),train.perc=70,Part.var=NULL, Cross.method=c('LOOCV','KFOLD'),k=10,Pred.var=NULL,
CI=TRUE,confint.level=0.95,VIF=FALSE,ANOVA=T... | /Rex/확인된오류/회귀분석/선형회귀분석/REx_LM.R | no_license | wonji/WJ_codes | R | false | false | 35,600 | r | # 선형회귀분석
REx_LM <- function(dataset,dep_var,indep_cat_var=NULL,indep_numeric_var=NULL,vars=NULL,noint=FALSE,
Valid.method=c('Partition','Cross'),Part.method=c('all','percent','variable'),train.perc=70,Part.var=NULL, Cross.method=c('LOOCV','KFOLD'),k=10,Pred.var=NULL,
CI=TRUE,confint.level=0.95,VIF=FALSE,ANOVA=T... |
#Inputs:
install.packages("R.matlab")
setwd("Y:\\Projects-Snap\\aaSTUDIES\\Breast Studies\\Auto Dense Study\\Reading List\\CaseControlAfter2009")
baseData <- read.csv("casecon2009.csv", header=TRUE)
baseData1 <- na.omit(baseData) #Clears any rows that have NA entries (Small number)
fullData <- baseData1
r <- dim(ba... | /maskingSXACalibAnalysis.R | no_license | hinto033/BMasking | R | false | false | 81,091 | r |
#Inputs:
install.packages("R.matlab")
setwd("Y:\\Projects-Snap\\aaSTUDIES\\Breast Studies\\Auto Dense Study\\Reading List\\CaseControlAfter2009")
baseData <- read.csv("casecon2009.csv", header=TRUE)
baseData1 <- na.omit(baseData) #Clears any rows that have NA entries (Small number)
fullData <- baseData1
r <- dim(ba... |
# xlsx <- "james-manual.xlsx"
#
# meta_tab <- openxlsx::read.xlsx(xlsx, sheet = "meta", colNames = F, rowNames = T) | /R/speed-test.R | permissive | data-science-made-easy/james | R | false | false | 115 | r | # xlsx <- "james-manual.xlsx"
#
# meta_tab <- openxlsx::read.xlsx(xlsx, sheet = "meta", colNames = F, rowNames = T) |
plotNAIS_hourlyBinned_norm=function(data,ions){
convertToLimit=function(x,i){#gets the limit value (i=0, lower..i=1, upper) for an
#interval created with the cut function.
if (i==0){#get lower limit
help=gsub('\\(','',x)
help=gsub(',.*',"",help)
} else if (i==1){#get upper limit
help=... | /Rproject/archive/R/function_plot_NAIS_hourlyBinned_NORMALIZED.R | no_license | daliagachc/GR_chc | R | false | false | 1,539 | r | plotNAIS_hourlyBinned_norm=function(data,ions){
convertToLimit=function(x,i){#gets the limit value (i=0, lower..i=1, upper) for an
#interval created with the cut function.
if (i==0){#get lower limit
help=gsub('\\(','',x)
help=gsub(',.*',"",help)
} else if (i==1){#get upper limit
help=... |
library(LakeEnsemblR)
library(lubridate)
library(plyr)
library(gotmtools)
library(ggplot2)
library(ggpubr)
library(dplyr)
library(rLakeAnalyzer)
library(reshape)
library(RColorBrewer)
library(scales)
setwd("~/Dropbox/sunapee_LER_projections/LER_projections/output/")
anomalies_master <- read.csv("../../anomaly_calcula... | /scripts/anomaly_calculations/plotting_model_gcm_uncertainty.R | no_license | jacob8776/sunapee_LER_projections | R | false | false | 7,474 | r | library(LakeEnsemblR)
library(lubridate)
library(plyr)
library(gotmtools)
library(ggplot2)
library(ggpubr)
library(dplyr)
library(rLakeAnalyzer)
library(reshape)
library(RColorBrewer)
library(scales)
setwd("~/Dropbox/sunapee_LER_projections/LER_projections/output/")
anomalies_master <- read.csv("../../anomaly_calcula... |
library(dslabs)
data(murders)
class(murders)
#1
str(murders)
#A. Variabel yang terdiri dari 51 negara
#> Salah, Hanya State
#B. Variabel yang berisi tingkat pembunuhan pada 50 negara bagian dan DC
#> Salah karena berisi dari 51 negara bagian
#C. Terdiri Nama negara bagian, singkatan negara bagian, wilayah ... | /Murders.R | no_license | uzanlatif/Murderer | R | false | false | 1,422 | r | library(dslabs)
data(murders)
class(murders)
#1
str(murders)
#A. Variabel yang terdiri dari 51 negara
#> Salah, Hanya State
#B. Variabel yang berisi tingkat pembunuhan pada 50 negara bagian dan DC
#> Salah karena berisi dari 51 negara bagian
#C. Terdiri Nama negara bagian, singkatan negara bagian, wilayah ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Heatmap-class.R
\docType{methods}
\name{image}
\alias{image}
\alias{image,Heatmap-method}
\alias{image<-}
\alias{image<-,Heatmap-method}
\title{Return or set the image in a Heatmap}
\usage{
\S4method{image}{Heatmap}(x)
image(x) <- value
\S4... | /man/image.Rd | no_license | mgperry/heatmaps | R | false | true | 605 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Heatmap-class.R
\docType{methods}
\name{image}
\alias{image}
\alias{image,Heatmap-method}
\alias{image<-}
\alias{image<-,Heatmap-method}
\title{Return or set the image in a Heatmap}
\usage{
\S4method{image}{Heatmap}(x)
image(x) <- value
\S4... |
#' Read fasta index
#'
#' Read seq_ids and lengths from a samtools/seqkit faidx file or from a fasta
#' directly (requires seqkit in path). Seqkit is preferred because it allows
#' reading the full header including seq description.
#'
#' Note, only .fai connections can be pipes, .fa have to be plain text files.
#'
#' @... | /R/read_fai.R | permissive | iimog/thacklr | R | false | false | 1,558 | r | #' Read fasta index
#'
#' Read seq_ids and lengths from a samtools/seqkit faidx file or from a fasta
#' directly (requires seqkit in path). Seqkit is preferred because it allows
#' reading the full header including seq description.
#'
#' Note, only .fai connections can be pipes, .fa have to be plain text files.
#'
#' @... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plotGOHeatmap}
\alias{plotGOHeatmap}
\title{Plot GO Heatmap}
\usage{
plotGOHeatmap(
df,
color.per.type = NULL,
row.order = NULL,
col.order = F,
legend.position = "right",
legend.justification = c(1, 1),
legend.titl... | /man/plotGOHeatmap.Rd | permissive | LuethyK/Epilepsy19 | R | false | true | 542 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plotGOHeatmap}
\alias{plotGOHeatmap}
\title{Plot GO Heatmap}
\usage{
plotGOHeatmap(
df,
color.per.type = NULL,
row.order = NULL,
col.order = F,
legend.position = "right",
legend.justification = c(1, 1),
legend.titl... |
## -----------------------------------------------------------------------------
## Fonction getQuantile
## -----------------------------------------------------------------------------
## Copyright (C) 2013
## Developpement : C. WALTER
## CEA
## ----------------------------------------------------------... | /mistral/R/getQuantile.R | no_license | ingted/R-Examples | R | false | false | 698 | r | ## -----------------------------------------------------------------------------
## Fonction getQuantile
## -----------------------------------------------------------------------------
## Copyright (C) 2013
## Developpement : C. WALTER
## CEA
## ----------------------------------------------------------... |
# helpful for data operations
library(tidyverse)
library(here)
# some custom functions
source(here::here("R","Functions.R"))
# Read in the data (Daniel Schneider gave these to me, haha)
TR <- readRDS(here::here("Data","TR_v06_collapsed.rds"))
# take a peek: we have many strata
head(TR)
# These are the things we can... | /R/MultistateHLE.R | no_license | timriffe/MSBLEND | R | false | false | 2,215 | r |
# helpful for data operations
library(tidyverse)
library(here)
# some custom functions
source(here::here("R","Functions.R"))
# Read in the data (Daniel Schneider gave these to me, haha)
TR <- readRDS(here::here("Data","TR_v06_collapsed.rds"))
# take a peek: we have many strata
head(TR)
# These are the things we can... |
mvglmer <- function (formulas, data, families, engine = c("JAGS", "STAN"),
overdispersion = FALSE, priors = NULL, control = NULL, ...) {
cl <- match.call()
engine <- match.arg(engine)
if (!is.list(families))
stop("'families' must be a list of family objects.")
# depending o... | /R/mv_glmer.R | no_license | maple8876/JMbayes | R | false | false | 18,471 | r | mvglmer <- function (formulas, data, families, engine = c("JAGS", "STAN"),
overdispersion = FALSE, priors = NULL, control = NULL, ...) {
cl <- match.call()
engine <- match.arg(engine)
if (!is.list(families))
stop("'families' must be a list of family objects.")
# depending o... |
library(mvtnorm)
solve_quadratic <- function(a, b, c) {
stopifnot(all(a != 0))
stopifnot(is.atomic(a) && is.atomic(b) && is.atomic(c))
stopifnot(is.numeric(a) && is.numeric(b) && is.numeric(c))
n <- length(a)
stopifnot(identical(n, length(b)))
stopifnot(identical(n, length(c)))
d <- b^2 - 4 * a * c
q <... | /sims/prelim/quadratics.R | no_license | fditraglia/binary-regressor | R | false | false | 4,619 | r | library(mvtnorm)
solve_quadratic <- function(a, b, c) {
stopifnot(all(a != 0))
stopifnot(is.atomic(a) && is.atomic(b) && is.atomic(c))
stopifnot(is.numeric(a) && is.numeric(b) && is.numeric(c))
n <- length(a)
stopifnot(identical(n, length(b)))
stopifnot(identical(n, length(c)))
d <- b^2 - 4 * a * c
q <... |
test.createCategorical.edgeCase <- function()
{
# check pathological breaks when using quantiles on highly "skewed" data.
strangeDf <- data.frame(X = c(1.78, -1.02, 0.74, 1.24, -0.74, 0.59, -0.32, 0.69, -0.14,1.40,
rep(0, 100)) )
newDf <- addDerivedCategorical(strangeDf, "X", newVar = "X.CUT", ... | /inst/unittests/runit.createCategorical.R | permissive | adamjdeacon/RNMImport | R | false | false | 7,819 | r |
test.createCategorical.edgeCase <- function()
{
# check pathological breaks when using quantiles on highly "skewed" data.
strangeDf <- data.frame(X = c(1.78, -1.02, 0.74, 1.24, -0.74, 0.59, -0.32, 0.69, -0.14,1.40,
rep(0, 100)) )
newDf <- addDerivedCategorical(strangeDf, "X", newVar = "X.CUT", ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/STE__Year_CountryOfBirth_Sex.R
\docType{data}
\name{STE__Year_CountryOfBirth_Sex}
\alias{STE__Year_CountryOfBirth_Sex}
\title{CountryOfBirth, Sex by STE, Year}
\format{1,998 observations and 5 variables.}
\usage{
STE__Year_CountryOfBirth_Sex
... | /man/STE__Year_CountryOfBirth_Sex.Rd | no_license | HughParsonage/Census2016.DataPack.TimeSeries | R | false | true | 407 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/STE__Year_CountryOfBirth_Sex.R
\docType{data}
\name{STE__Year_CountryOfBirth_Sex}
\alias{STE__Year_CountryOfBirth_Sex}
\title{CountryOfBirth, Sex by STE, Year}
\format{1,998 observations and 5 variables.}
\usage{
STE__Year_CountryOfBirth_Sex
... |
## The Plot1 is created from the data exists in “Individual household electric power consumption Data Set” available from the "UC Irvine Machine Learning Repository".
## Using histogram the "frequency" of "Global Active Power consumption (kilowatts)" was created for the dates February 1 and 2, 2007.
## getwd() gives t... | /Plot1.R | no_license | Mallie48/ExData_Plotting1 | R | false | false | 1,287 | r | ## The Plot1 is created from the data exists in “Individual household electric power consumption Data Set” available from the "UC Irvine Machine Learning Repository".
## Using histogram the "frequency" of "Global Active Power consumption (kilowatts)" was created for the dates February 1 and 2, 2007.
## getwd() gives t... |
testlist <- list(a = -63939L, b = 2080374784L, x = c(-1L, -16777216L, -1L, 441778175L, -14024705L, -16360934L, 452927231L, -1L, 1094795585L, 1094795585L, 1094795585L, 1094795585L, 1094795585L, 1090519040L, 0L, 0L, 0L, 0L, 0L, 7763574L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, -1L, 1987475062... | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610131902-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 638 | r | testlist <- list(a = -63939L, b = 2080374784L, x = c(-1L, -16777216L, -1L, 441778175L, -14024705L, -16360934L, 452927231L, -1L, 1094795585L, 1094795585L, 1094795585L, 1094795585L, 1094795585L, 1090519040L, 0L, 0L, 0L, 0L, 0L, 7763574L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, -1L, 1987475062... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/map.r
\name{map_one}
\alias{map_one}
\title{Apply function that preserves order of dimensions}
\usage{
map_one(X, along, FUN, pb, drop = TRUE, ...)
}
\arguments{
\item{X}{An n-dimensional array}
\item{along}{Along which axis to apply the fun... | /man/map_one.Rd | permissive | cran/narray | R | false | true | 668 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/map.r
\name{map_one}
\alias{map_one}
\title{Apply function that preserves order of dimensions}
\usage{
map_one(X, along, FUN, pb, drop = TRUE, ...)
}
\arguments{
\item{X}{An n-dimensional array}
\item{along}{Along which axis to apply the fun... |
testlist <- list(genotype = c(-1L, -1L, -1L, -1L, -1L, -15564415L, -1146495L, -2122219135L, 148165640L, -2122219135L, 8484823L, -724301644L, -2114781184L, 0L, 0L, 6280372L, -724105036L, -2130165504L, -203958316L, -1261119736L, -1266611969L, -167L, -203565100L, -1261119736L, -1266612159L, 8388608L, 0L, 0L, 0L, 0L, 0... | /detectRUNS/inst/testfiles/genoConvertCpp/libFuzzer_genoConvertCpp/genoConvertCpp_valgrind_files/1609875067-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 525 | r | testlist <- list(genotype = c(-1L, -1L, -1L, -1L, -1L, -15564415L, -1146495L, -2122219135L, 148165640L, -2122219135L, 8484823L, -724301644L, -2114781184L, 0L, 0L, 6280372L, -724105036L, -2130165504L, -203958316L, -1261119736L, -1266611969L, -167L, -203565100L, -1261119736L, -1266612159L, 8388608L, 0L, 0L, 0L, 0L, 0... |
library('rvest')
library('tidyr')
library('caret')
library('Matrix')
library('foreach')
library('glmnet')
library('pls')
library('psych')
#Create model form function
createModelFormula <- function(TARGET, XVARS, includeIntercept = TRUE){
if(includeIntercept){
modelForm <- as.formula(paste(TARGET, "~", paste(XVAR... | /Yuqing/Models.R | no_license | Qingzz7/18S571project | R | false | false | 11,290 | r | library('rvest')
library('tidyr')
library('caret')
library('Matrix')
library('foreach')
library('glmnet')
library('pls')
library('psych')
#Create model form function
createModelFormula <- function(TARGET, XVARS, includeIntercept = TRUE){
if(includeIntercept){
modelForm <- as.formula(paste(TARGET, "~", paste(XVAR... |
## Exploratory Data Analysis
## FIGURE 2
# Reading data
PowerData <- read.csv("household_power_consumption.txt",
header = TRUE, sep = ';',
na.strings = "?",
nrows = 2075259,
check.names = FALSE,
... | /Plot2.R | no_license | JoshuaLina/Exploratory-Data-Analysis-Project1 | R | false | false | 1,105 | r | ## Exploratory Data Analysis
## FIGURE 2
# Reading data
PowerData <- read.csv("household_power_consumption.txt",
header = TRUE, sep = ';',
na.strings = "?",
nrows = 2075259,
check.names = FALSE,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TVsMiss.R
\name{tvsmiss}
\alias{tvsmiss}
\title{fit and select variable(s) for data with missing value}
\usage{
tvsmiss(x, y, penalty = c("lasso", "MCP", "SCAD"), method = c("CV", "BIC",
"BIC1", "BIC2", "sBIC", "sBIC1", "sBIC2", "sVS", "sES... | /man/tvsmiss.Rd | no_license | Jiahua1982/TVsMiss | R | false | true | 2,854 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TVsMiss.R
\name{tvsmiss}
\alias{tvsmiss}
\title{fit and select variable(s) for data with missing value}
\usage{
tvsmiss(x, y, penalty = c("lasso", "MCP", "SCAD"), method = c("CV", "BIC",
"BIC1", "BIC2", "sBIC", "sBIC1", "sBIC2", "sVS", "sES... |
#load the library
library(SDMTools)
#define the groups
groups = c('amphibia','aves','mammalia','reptilia')
#cycle through the groups
for (group in groups) {
cat(group,'\n')
#define and set the working directory
work.dir = paste('/homes/31/jc165798/working/Wallace.Initiative/summaries/richness/',group,'... | /HPC.scripts/99.trial.richness.scripts.r | no_license | web1mhz/species-modeling | R | false | false | 3,177 | r | #load the library
library(SDMTools)
#define the groups
groups = c('amphibia','aves','mammalia','reptilia')
#cycle through the groups
for (group in groups) {
cat(group,'\n')
#define and set the working directory
work.dir = paste('/homes/31/jc165798/working/Wallace.Initiative/summaries/richness/',group,'... |
## Charles Doss
## function which computes confidence interval for mode based on
## the log-concave likelihood ratio.
#### Now use sysdata.rda
##data(TLLRdistn)
#### Now just list 'distr' in Imports in DESCRIPTION, and access via "::".
##library(distr)
## this is just in sysdata.rda now
##LCTLLRdistn <- distr::Discre... | /output/sources/authors/1584/logcondens.mode/LCLRCImode.R | no_license | Irbis3/crantasticScrapper | R | false | false | 4,576 | r | ## Charles Doss
## function which computes confidence interval for mode based on
## the log-concave likelihood ratio.
#### Now use sysdata.rda
##data(TLLRdistn)
#### Now just list 'distr' in Imports in DESCRIPTION, and access via "::".
##library(distr)
## this is just in sysdata.rda now
##LCTLLRdistn <- distr::Discre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.