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 |
|---|---|---|---|---|---|---|---|---|---|
indsp_func <- function(bats, dfvec = 6, q = 1) {
# All rows with NA's (missing values) must be removed from the data before applying this function.
if (length(bats$count[is.na(bats$count)]) > 0) {
stop("no missing data allowed")
}
# fit the GAM using MGCV - get rid of any roosts that were only surveyed for... | /01_Simulation/Functions/gam_fct.R | no_license | LeaDambly/bat_observer | R | false | false | 1,988 | r | indsp_func <- function(bats, dfvec = 6, q = 1) {
# All rows with NA's (missing values) must be removed from the data before applying this function.
if (length(bats$count[is.na(bats$count)]) > 0) {
stop("no missing data allowed")
}
# fit the GAM using MGCV - get rid of any roosts that were only surveyed for... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maps.R
\name{.add.standard.tiles}
\alias{.add.standard.tiles}
\title{Add standard tile sources and selector to map.}
\usage{
.add.standard.tiles(map)
}
\arguments{
\item{map}{A HTML widget object from \code{\link[leaflet]{leaflet}} function.}... | /man/dot-add.standard.tiles.Rd | permissive | Sithara26/strafica | R | false | true | 386 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maps.R
\name{.add.standard.tiles}
\alias{.add.standard.tiles}
\title{Add standard tile sources and selector to map.}
\usage{
.add.standard.tiles(map)
}
\arguments{
\item{map}{A HTML widget object from \code{\link[leaflet]{leaflet}} function.}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Generics.R, R/SpectrumMethods.R
\name{property<-}
\alias{property<-}
\alias{property<-,RmbSpectrum2,character,logical,character-method}
\alias{property<-,RmbSpectrum2,character,missing,character-method}
\alias{property<-,RmbSpectrum2,characte... | /man/property-set.Rd | no_license | MassBank/RMassBank | R | false | true | 1,979 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Generics.R, R/SpectrumMethods.R
\name{property<-}
\alias{property<-}
\alias{property<-,RmbSpectrum2,character,logical,character-method}
\alias{property<-,RmbSpectrum2,character,missing,character-method}
\alias{property<-,RmbSpectrum2,characte... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/keyboard_measurements.R
\name{keyboard_measurements}
\alias{keyboard_measurements}
\title{Keyboard Measurements}
\usage{
keyboard_measurements(name = "default")
}
\arguments{
\item{name}{Measurement options name.}
}
\description{
Measurement ... | /man/keyboard_measurements.Rd | permissive | mine-cetinkaya-rundel/ggkeyboard | R | false | true | 692 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/keyboard_measurements.R
\name{keyboard_measurements}
\alias{keyboard_measurements}
\title{Keyboard Measurements}
\usage{
keyboard_measurements(name = "default")
}
\arguments{
\item{name}{Measurement options name.}
}
\description{
Measurement ... |
normLabelRuns <- function(data){
dat <- dplyr::mutate(data,
n = Ring %% 4,
LogTransformed = log(NetShift))
datScaled <- dplyr::group_by(dat, Target)
datScaled <- dplyr::mutate(datScaled,
NormLog = scal... | /R/normLabelRuns.R | no_license | panlun/biosensor | R | false | false | 1,105 | r | normLabelRuns <- function(data){
dat <- dplyr::mutate(data,
n = Ring %% 4,
LogTransformed = log(NetShift))
datScaled <- dplyr::group_by(dat, Target)
datScaled <- dplyr::mutate(datScaled,
NormLog = scal... |
# Filename: filter.r
# Title: Gene selection (filter) methods.
#
# Author: Christoph Bernau
# Email: <bernau@ibe.med.uni-muenchen.de>
# Date of creation: 28.8.2012
#
# Brief description:
# Returns an object of class 'GeneSel'.
#
# Further comments and notes:
# Are usually not called directly by the user,... | /Code/surv/filter.R | no_license | mywanuo/PLPPS-pipeline | R | false | false | 3,723 | r | # Filename: filter.r
# Title: Gene selection (filter) methods.
#
# Author: Christoph Bernau
# Email: <bernau@ibe.med.uni-muenchen.de>
# Date of creation: 28.8.2012
#
# Brief description:
# Returns an object of class 'GeneSel'.
#
# Further comments and notes:
# Are usually not called directly by the user,... |
test_that("renv_path_absolute() reports common absolute paths", {
abs <- c(
"/path/to/file",
"~/path/to/file",
"C:/path/to/file",
"C:\\path\\to\\file",
"\\\\server\\path\\to\\file"
)
rel <- c(
"path/to/file",
"./path/to/file",
"../path/to/file",
"::/weird/path"
)
for (p... | /tests/testthat/test-path.R | permissive | rstudio/renv | R | false | false | 734 | r |
test_that("renv_path_absolute() reports common absolute paths", {
abs <- c(
"/path/to/file",
"~/path/to/file",
"C:/path/to/file",
"C:\\path\\to\\file",
"\\\\server\\path\\to\\file"
)
rel <- c(
"path/to/file",
"./path/to/file",
"../path/to/file",
"::/weird/path"
)
for (p... |
#Title: derivs_V2_MMYMODEL.R
#Author: Rose Abramoff, but go on and add your name here once you make your changes :)
#Date: Sep 11, 2021
#This function contains the system of equations for Millennial V2, as described in Abramoff et al. (2021).
#The equation numbers correspond to those in Abramoff et al. (2021), where t... | /R/models/derivs_V2_MYMODEL.R | permissive | rabramoff/Millennial | R | false | false | 3,948 | r | #Title: derivs_V2_MMYMODEL.R
#Author: Rose Abramoff, but go on and add your name here once you make your changes :)
#Date: Sep 11, 2021
#This function contains the system of equations for Millennial V2, as described in Abramoff et al. (2021).
#The equation numbers correspond to those in Abramoff et al. (2021), where t... |
#' Ted Kwartler
#' twitter: @tkwartler
#' ODSC Workshop: Intro to Text Mining using R
#' 5-4-17
#' 5.0 Simple Wordcloud
#Set the working directory
setwd('C:/Users/gmudumbai/Desktop/ODSC/text_analytics/ODSC_Workshop/2017 East/data')
#libraries
library(tm)
library(wordcloud)
library(RColorBrewer)
#options, functions
o... | /2017 East/5_Simple_Wordcloud.R | no_license | gmudumbai/ODSC_Workshop | R | false | false | 1,971 | r | #' Ted Kwartler
#' twitter: @tkwartler
#' ODSC Workshop: Intro to Text Mining using R
#' 5-4-17
#' 5.0 Simple Wordcloud
#Set the working directory
setwd('C:/Users/gmudumbai/Desktop/ODSC/text_analytics/ODSC_Workshop/2017 East/data')
#libraries
library(tm)
library(wordcloud)
library(RColorBrewer)
#options, functions
o... |
#### code R for the project
##reading features
features=read.table("C:/Users/hp/Desktop/features.txt", quote="\"", comment.char="")
##reading activities data
activities <- read.table("C:/Users/hp/Desktop/activity_labels.txt", quote="\"", comment.char="")
#reading train data
##Xtrain
train <- read.table("C:/Users/h... | /run_analysis.R | no_license | syliaa/final-project | R | false | false | 2,087 | r | #### code R for the project
##reading features
features=read.table("C:/Users/hp/Desktop/features.txt", quote="\"", comment.char="")
##reading activities data
activities <- read.table("C:/Users/hp/Desktop/activity_labels.txt", quote="\"", comment.char="")
#reading train data
##Xtrain
train <- read.table("C:/Users/h... |
# Read in data
NEI <- readRDS("summarySCC_PM25.rds")
SCC<- readRDS("Source_Classification_Code.rds")
# Subset data into only Maryland
data_maryland <- NEI[NEI$fips == "24510", ]
#Aggregate sum of emissions by year
sum_emissions <- aggregate(Emissions~year + type, data_maryland, sum)
# Load ggplot2 library
... | /Exploratory_Analysis/Course_Project2/plot3.R | no_license | zachary-s-cacciatore/Data_Science_John_Hopkins | R | false | false | 541 | r | # Read in data
NEI <- readRDS("summarySCC_PM25.rds")
SCC<- readRDS("Source_Classification_Code.rds")
# Subset data into only Maryland
data_maryland <- NEI[NEI$fips == "24510", ]
#Aggregate sum of emissions by year
sum_emissions <- aggregate(Emissions~year + type, data_maryland, sum)
# Load ggplot2 library
... |
#' Modify the demography in a state object.
#'
#' A \code{demography_dynamics} object is used to modify life-stage transition
#' matrices - for example, adding stochasticity.
#'
#' A \code{demography_dynamics} object is a sub-component of a \link[steps]{dynamics}
#' object and is executed in each timestep of a simula... | /R/demography_dynamics-class.R | no_license | wkmor1/steps | R | false | false | 4,793 | r | #' Modify the demography in a state object.
#'
#' A \code{demography_dynamics} object is used to modify life-stage transition
#' matrices - for example, adding stochasticity.
#'
#' A \code{demography_dynamics} object is a sub-component of a \link[steps]{dynamics}
#' object and is executed in each timestep of a simula... |
require(plyr)
require(plotrix)
require(calibrate)
require(vegan)
require(car)
SEV106 <- read.csv("workflows-and-analysis/SEV_grasshopper/SEV106_raw.csv", header = TRUE, strip.white = TRUE)
### removing rows were SPECIES = NONE
SEV106 <- SEV106[-which(SEV106$SPECIES == "NONE"),]
### creating year column from date va... | /workflows-and-analysis/SEV_grasshopper/SEV106.R | permissive | NCEAS/commdyn | R | false | false | 9,506 | r | require(plyr)
require(plotrix)
require(calibrate)
require(vegan)
require(car)
SEV106 <- read.csv("workflows-and-analysis/SEV_grasshopper/SEV106_raw.csv", header = TRUE, strip.white = TRUE)
### removing rows were SPECIES = NONE
SEV106 <- SEV106[-which(SEV106$SPECIES == "NONE"),]
### creating year column from date va... |
# Libraries needed
require(ggplot2)
require(grid)
require(tidyr)
require(magrittr)
require(knitr)
require(extrafont)
# Read data from CSV
setwd('C:/Users/Cameron/Udacity/P1 - Stroop')
stroop <- read.csv("stroopdata.csv")
# Add subject ID and difference
stroop$Subject <- 1:nrow(stroop)
stroop$Difference <- stroop$Inco... | /P1 - Stroop/stroopLoad.R | no_license | camroberts/udacity | R | false | false | 507 | r | # Libraries needed
require(ggplot2)
require(grid)
require(tidyr)
require(magrittr)
require(knitr)
require(extrafont)
# Read data from CSV
setwd('C:/Users/Cameron/Udacity/P1 - Stroop')
stroop <- read.csv("stroopdata.csv")
# Add subject ID and difference
stroop$Subject <- 1:nrow(stroop)
stroop$Difference <- stroop$Inco... |
# Creacion de pdf de las presentaciones
library(here)
pdf <- list.files(here("presentaciones"), pattern = "rmd$")
pdf
## Version 1
for(i in pdf){
pagedown::chrome_print(here("presentaciones", i))
}
## Version 2
for(i in pdf){
if(i != "gracias.rmd") {
pagedown::chrome_print(here("presentaciones", i))
}
}
pd... | /presentaciones/pdf.r | no_license | Tjhonk/r-curso | R | false | false | 451 | r | # Creacion de pdf de las presentaciones
library(here)
pdf <- list.files(here("presentaciones"), pattern = "rmd$")
pdf
## Version 1
for(i in pdf){
pagedown::chrome_print(here("presentaciones", i))
}
## Version 2
for(i in pdf){
if(i != "gracias.rmd") {
pagedown::chrome_print(here("presentaciones", i))
}
}
pd... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{query_property}
\alias{query_property}
\title{Get list of available properties}
\usage{
query_property(db)
}
\arguments{
\item{db}{PLEXOS database object}
}
\description{
Produce a list of available properties, their units and t... | /man/query_property.Rd | no_license | binhepu/rplexos | R | false | true | 931 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{query_property}
\alias{query_property}
\title{Get list of available properties}
\usage{
query_property(db)
}
\arguments{
\item{db}{PLEXOS database object}
}
\description{
Produce a list of available properties, their units and t... |
#' @name CalDF
#' @aliases CalDF
#' @title DF calibration estimator
#'
#' @description Produces estimates for population totals and means using the DF calibration estimator from survey data obtained
#' from a dual frame sampling design. Confidence intervals are also computed, if required.
#'
#' @usage CalDF(y... | /Frames2/R/CalDF.R | no_license | ingted/R-Examples | R | false | false | 32,511 | r | #' @name CalDF
#' @aliases CalDF
#' @title DF calibration estimator
#'
#' @description Produces estimates for population totals and means using the DF calibration estimator from survey data obtained
#' from a dual frame sampling design. Confidence intervals are also computed, if required.
#'
#' @usage CalDF(y... |
#' player_stats
#'
#' Query the top 100 player's stats (sorted by total points)
#' from the player's summary report endpoint on the NHL.com API.
#'
#' The stats are queried on an aggregated game-by-game basis
#' for a range of dates. If no date is specified the function will
#' return the player's stats for the current... | /R/player_stats.R | permissive | UBC-MDS/rpuck | R | false | false | 3,861 | r | #' player_stats
#'
#' Query the top 100 player's stats (sorted by total points)
#' from the player's summary report endpoint on the NHL.com API.
#'
#' The stats are queried on an aggregated game-by-game basis
#' for a range of dates. If no date is specified the function will
#' return the player's stats for the current... |
## These two functions in combination are able to reduce time-consuming
## computations, related to calculating the inverse of a matrix.
## They prevent R from computing the inverse a second time, if the inverse has
## already been computed before.
## This can be especially useful in loops.
## The value of the inverse ... | /cachematrix.R | no_license | davidnarloch/ProgrammingAssignment2 | R | false | false | 1,536 | r | ## These two functions in combination are able to reduce time-consuming
## computations, related to calculating the inverse of a matrix.
## They prevent R from computing the inverse a second time, if the inverse has
## already been computed before.
## This can be especially useful in loops.
## The value of the inverse ... |
library(readxl) #Para leer los archivos de excel
library(psych) #Para calcular las estadísticas por grupo
library(ggplot2) #Para graficar
library(nortest) #Para hacer las pruebas de hipótesis de normalidad
library(lawstat) #Prueba de Levene
library(reshape) #Manejo de datos
library(foreign)
library(dply... | /TP4 Anova.R | no_license | pmtempone/AID | R | false | false | 9,997 | r | library(readxl) #Para leer los archivos de excel
library(psych) #Para calcular las estadísticas por grupo
library(ggplot2) #Para graficar
library(nortest) #Para hacer las pruebas de hipótesis de normalidad
library(lawstat) #Prueba de Levene
library(reshape) #Manejo de datos
library(foreign)
library(dply... |
install.packages("caret", repos='http://cran.us.r-project.org')
install.packages("ggplot2", repos='http://cran.us.r-project.org') | /src/main/resources/install.R | no_license | ccruz09/aws_usda_data_viz | R | false | false | 129 | r | install.packages("caret", repos='http://cran.us.r-project.org')
install.packages("ggplot2", repos='http://cran.us.r-project.org') |
rm(list=ls()) # removes all objects from the current workspace (R memory)
graphics.off()
x=c(1.62,1.87,2.12,2.37,2.62,2.87,3.12) # datos
fx=c(3.9612,4.1186,4.0617,3.8176,3.4211,2.9134,2.3404) # imagenes de los datos
###### Comprobar que el h es igual para todas ####
distancia=c()
for(k in 1:(length(x)-1)){
... | /Derivatives/DerivadasCodigo.R | no_license | BowixKamaze/MetodosNumericos | R | false | false | 4,407 | r | rm(list=ls()) # removes all objects from the current workspace (R memory)
graphics.off()
x=c(1.62,1.87,2.12,2.37,2.62,2.87,3.12) # datos
fx=c(3.9612,4.1186,4.0617,3.8176,3.4211,2.9134,2.3404) # imagenes de los datos
###### Comprobar que el h es igual para todas ####
distancia=c()
for(k in 1:(length(x)-1)){
... |
library("ggplot2")
library("Cairo")
# matrix of mutation rate, DNA methylation age, mutation counts and methylation level required
# equation for outputting linear model equation
equation <- function(x){
lm_coef <- list(a = round(coef(x)[1],digits = 2), b = round(coef(x)[2],digits = 2), r2 = round(summary(x)$r.squa... | /lm_plot_corr_plot.r | no_license | declan93/MSc-project | R | false | false | 4,683 | r | library("ggplot2")
library("Cairo")
# matrix of mutation rate, DNA methylation age, mutation counts and methylation level required
# equation for outputting linear model equation
equation <- function(x){
lm_coef <- list(a = round(coef(x)[1],digits = 2), b = round(coef(x)[2],digits = 2), r2 = round(summary(x)$r.squa... |
% Generated by roxygen2 (4.1.0.9001): do not edit by hand
% Please edit documentation in R/plotIPA.R
\name{plotIPA}
\alias{plotIPA}
\title{Plot result of ipa}
\usage{
plotIPA(x, cutoff = 10)
}
\arguments{
\item{x}{A dataframe output generated by the ipa function}
\item{cutoff}{The number of pathways to plot. Defaults ... | /man/plotIPA.Rd | no_license | rramaker/IntegratedPathTools | R | false | false | 647 | rd | % Generated by roxygen2 (4.1.0.9001): do not edit by hand
% Please edit documentation in R/plotIPA.R
\name{plotIPA}
\alias{plotIPA}
\title{Plot result of ipa}
\usage{
plotIPA(x, cutoff = 10)
}
\arguments{
\item{x}{A dataframe output generated by the ipa function}
\item{cutoff}{The number of pathways to plot. Defaults ... |
library(tidyverse) # data manipulation
library(tm) # text mining
library(wordcloud) # word cloud generator
library(wordcloud2) # word cloud generator
library(tidytext) # text mining for word processing and sentiment analysis
library(RWeka) # data mining tasks
library(knitr)
library(ggplot2)
#Loading the files which ha... | /Mood Detection/MoodDetection.R | no_license | keshvi-srivastava/star-wars-dialogue-generation | R | false | false | 5,570 | r | library(tidyverse) # data manipulation
library(tm) # text mining
library(wordcloud) # word cloud generator
library(wordcloud2) # word cloud generator
library(tidytext) # text mining for word processing and sentiment analysis
library(RWeka) # data mining tasks
library(knitr)
library(ggplot2)
#Loading the files which ha... |
# Function's we'll use
# Make a single U submatrix from a pi (transfer probs) vector
pi2u <- function(pivec,
from ="H",
to = "H",
start_age = 50,
interval = 2) {
out <- cbind(rbind(0, diag(pivec)), 0)
n <- length(pivec)
# ... | /Functions.R | no_license | timriffe/PHDS_HLE_2020 | R | false | false | 1,093 | r | # Function's we'll use
# Make a single U submatrix from a pi (transfer probs) vector
pi2u <- function(pivec,
from ="H",
to = "H",
start_age = 50,
interval = 2) {
out <- cbind(rbind(0, diag(pivec)), 0)
n <- length(pivec)
# ... |
source("./SIRDapp/SIRDfuns.R")
require(minpack.lm)
library(reshape2)
data.confirmed <- read.csv('../data/time_series_19-covid-Confirmed.csv',header=TRUE)
data.deceased <- read.csv('../data/time_series_19-covid-Deaths.csv',header=TRUE)
data.recovered <- read.csv('../data/time_series_19-covid-Recovered.csv',header=T... | /code/fit.R | no_license | deanbot1/SIRDmodel | R | false | false | 954 | r | source("./SIRDapp/SIRDfuns.R")
require(minpack.lm)
library(reshape2)
data.confirmed <- read.csv('../data/time_series_19-covid-Confirmed.csv',header=TRUE)
data.deceased <- read.csv('../data/time_series_19-covid-Deaths.csv',header=TRUE)
data.recovered <- read.csv('../data/time_series_19-covid-Recovered.csv',header=T... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/keydur.R
\name{wg}
\alias{wg}
\title{wg helper function}
\usage{
wg(keyrates, tt)
}
\arguments{
\item{keyrates}{vector of keyrates}
\item{tt}{time of cash flow to attribute to keyrates}
}
\value{
a list of weights with length of keyrates, su... | /man/wg.Rd | no_license | wkapga/keyrateduration | R | false | true | 406 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/keydur.R
\name{wg}
\alias{wg}
\title{wg helper function}
\usage{
wg(keyrates, tt)
}
\arguments{
\item{keyrates}{vector of keyrates}
\item{tt}{time of cash flow to attribute to keyrates}
}
\value{
a list of weights with length of keyrates, su... |
library(nycflights13)
library(tidyverse)
# comparison approximation
sqrt(2)^2 == 2
near(sqrt(2)^2, 2)
# dplyr filter
filter(flights, month==1, day==1)
jan1 <- filter(flights, month==1, day==1)
(dec25 <- filter(flights, month==12, day==25))
filter(flights, month==11 | month==12)
nov_dec <- filter(flights, month %in% ... | /data_transformation.R | no_license | olini/r_for_data_science_book | R | false | false | 10,022 | r | library(nycflights13)
library(tidyverse)
# comparison approximation
sqrt(2)^2 == 2
near(sqrt(2)^2, 2)
# dplyr filter
filter(flights, month==1, day==1)
jan1 <- filter(flights, month==1, day==1)
(dec25 <- filter(flights, month==12, day==25))
filter(flights, month==11 | month==12)
nov_dec <- filter(flights, month %in% ... |
##################################################################################
#
# Description: This script reads in the input data and prepares it for data cleaning.
#
# Input: output/input.feather
# Output: output/
#
##################################################################################
# Load libra... | /analysis/preprocess/preprocess_data.R | permissive | opensafely/post-covid-pre-vaccinated-cardiovascular | R | false | false | 4,399 | r | ##################################################################################
#
# Description: This script reads in the input data and prepares it for data cleaning.
#
# Input: output/input.feather
# Output: output/
#
##################################################################################
# Load libra... |
# load data
source('reading_Data.R')
# open device
png(filename='plot2.png',width=480,height=480,units='px')
# plot data
plot(my_df_PC$DateTime,my_df_PC$GlobalActivePower,ylab='Global Active Power (kilowatts)', xlab='', type='l')
# close device
x<-dev.off() | /plot2.R | no_license | luqmanabbas/ExData_Plotting1 | R | false | false | 260 | r | # load data
source('reading_Data.R')
# open device
png(filename='plot2.png',width=480,height=480,units='px')
# plot data
plot(my_df_PC$DateTime,my_df_PC$GlobalActivePower,ylab='Global Active Power (kilowatts)', xlab='', type='l')
# close device
x<-dev.off() |
resampling.cv <-
function(A,size,npoints) {
nc.A<-ncol(A)
orden<-1:nc.A
y<-trunc(seq(2,(nc.A-1),length=npoints))
marker<- unique(y)
nmarca<-length(marker)
CV<-rep(0,nmarca)
# Control del tiempo inicio y final
inicio<-Sys.time()
i<-0
# Proceso de re-muestreo
for (k in marker) {
cv.m <- 0
for (m in 1:size) ... | /R/resampling.cv.R | no_license | cran/agricolae | R | false | false | 731 | r | resampling.cv <-
function(A,size,npoints) {
nc.A<-ncol(A)
orden<-1:nc.A
y<-trunc(seq(2,(nc.A-1),length=npoints))
marker<- unique(y)
nmarca<-length(marker)
CV<-rep(0,nmarca)
# Control del tiempo inicio y final
inicio<-Sys.time()
i<-0
# Proceso de re-muestreo
for (k in marker) {
cv.m <- 0
for (m in 1:size) ... |
### sparkTable summary
setGeneric("summaryST", function(.Object, outputType="html", filename=NULL, graphNames="out",
hist=TRUE,boxplot=TRUE,min=TRUE,quantile=TRUE,median=TRUE,
mean=TRUE,max=TRUE,changeOrder=NULL,addFun=NULL,digits=2,scaleHistByCol=FALSE,scaleBoxByCol=FALSE
) { standardGeneric("summa... | /R/exports.r | no_license | trinker/sparkTable | R | false | false | 15,103 | r | ### sparkTable summary
setGeneric("summaryST", function(.Object, outputType="html", filename=NULL, graphNames="out",
hist=TRUE,boxplot=TRUE,min=TRUE,quantile=TRUE,median=TRUE,
mean=TRUE,max=TRUE,changeOrder=NULL,addFun=NULL,digits=2,scaleHistByCol=FALSE,scaleBoxByCol=FALSE
) { standardGeneric("summa... |
###################################################
### code chunk number 38: basic-window-label
###################################################
window <- gtkWindow(show = FALSE)
window$setTitle("Hello World")
label <- gtkLabel("Hello World")
window$add(label)
window$show()
#####################################... | /ProgGUIinR/inst/Examples/ch-RGtk2/ex-RGtk2-window-delete-event.R | no_license | ingted/R-Examples | R | false | false | 798 | r |
###################################################
### code chunk number 38: basic-window-label
###################################################
window <- gtkWindow(show = FALSE)
window$setTitle("Hello World")
label <- gtkLabel("Hello World")
window$add(label)
window$show()
#####################################... |
\name{MatrixFactorization-class}
\alias{MatrixFactorization-class}
\alias{CholeskyFactorization-class}
\docType{class}
\title{Class "MatrixFactorization" of Matrix Factorizations}
%
\alias{dim,MatrixFactorization-method}
\alias{expand,MatrixFactorization-method}
\alias{show,MatrixFactorization-method}
\alias{solve,Matr... | /branches/Matrix-pre-R-2.15/man/MatrixFactorization-class.Rd | no_license | LTLA/Matrix | R | false | false | 2,121 | rd | \name{MatrixFactorization-class}
\alias{MatrixFactorization-class}
\alias{CholeskyFactorization-class}
\docType{class}
\title{Class "MatrixFactorization" of Matrix Factorizations}
%
\alias{dim,MatrixFactorization-method}
\alias{expand,MatrixFactorization-method}
\alias{show,MatrixFactorization-method}
\alias{solve,Matr... |
##
## Find out more about building applications with Shiny here:
##
## http://shiny.rstudio.com/
library(shiny)
## Define server logic required to draw a histogram
## simple example of a histogram from the old faithful dataset
shinyServer(function(input, output) {
output$distPlot <- renderPlot({
## ge... | /server.R | no_license | cmjt/cooler-niwa-shiny-style | R | false | false | 608 | r | ##
## Find out more about building applications with Shiny here:
##
## http://shiny.rstudio.com/
library(shiny)
## Define server logic required to draw a histogram
## simple example of a histogram from the old faithful dataset
shinyServer(function(input, output) {
output$distPlot <- renderPlot({
## ge... |
#-----------------------------------One-Step TMLE for ATT parameter ----------------------------------------
# TODO: document arguments.
one_step_att <- function(Y, A, Q,
g1W,
depsilon,
max_iter,
gbounds,
... | /archive/one_step_att.R | permissive | ck37/acic-tmle-2018 | R | false | false | 2,063 | r | #-----------------------------------One-Step TMLE for ATT parameter ----------------------------------------
# TODO: document arguments.
one_step_att <- function(Y, A, Q,
g1W,
depsilon,
max_iter,
gbounds,
... |
##' Chi-square tests of independence for each pair of genes
##'
##' Conduct a chi-square tests of independence for each pair of genes.
##' The binary (expressed/not) values are used to build the contingency tables.
##' The chi-square test statistics for each pair of genes is returned, with zeroes placed along the main ... | /R/pairwisestat.R | no_license | amcdavid/SingleCellAnalysis | R | false | false | 8,081 | r | ##' Chi-square tests of independence for each pair of genes
##'
##' Conduct a chi-square tests of independence for each pair of genes.
##' The binary (expressed/not) values are used to build the contingency tables.
##' The chi-square test statistics for each pair of genes is returned, with zeroes placed along the main ... |
library(FLCore)
library(ggplotFL)
library(FLash)
library(FLBRP)
library(mpb)
dirDat="/home/laurence/Desktop/sea++/xval/manuscripts/peerReview/albn-mse/data"
##Data sets
# The design grid for all interactions to set up FLBRP
# FLBRPs and FLStocks based on design
load(file.path(dirDat,"om2040.RData"))
load(file.path(di... | /manuscripts/peerReview/albn-mse/R/setUp.R | no_license | laurieKell/xval | R | false | false | 1,162 | r | library(FLCore)
library(ggplotFL)
library(FLash)
library(FLBRP)
library(mpb)
dirDat="/home/laurence/Desktop/sea++/xval/manuscripts/peerReview/albn-mse/data"
##Data sets
# The design grid for all interactions to set up FLBRP
# FLBRPs and FLStocks based on design
load(file.path(dirDat,"om2040.RData"))
load(file.path(di... |
preparedata<-function (dataset) {
# prop_byte_read prop_ops_read prop_byte_write prop_ops_write
list(dataset$V1/dataset$V2, dataset$V3/dataset$V4, dataset$V5/dataset$V6, dataset$V7/dataset$V8)
}
Args <- commandArgs();
numfiles=Args[4]
outputname <- Args[4 + as.numeric(numfiles) + 1]
files<-list()
datalist<-list(... | /sim_analysis/boxplot_many.r | no_license | carlasouza/ManelSim | R | false | false | 701 | r | preparedata<-function (dataset) {
# prop_byte_read prop_ops_read prop_byte_write prop_ops_write
list(dataset$V1/dataset$V2, dataset$V3/dataset$V4, dataset$V5/dataset$V6, dataset$V7/dataset$V8)
}
Args <- commandArgs();
numfiles=Args[4]
outputname <- Args[4 + as.numeric(numfiles) + 1]
files<-list()
datalist<-list(... |
# Exercise 4: practicing with dplyr
# Install the `nycflights13` package. Load (`library()`) the package.
# You'll also need to load `dplyr`
install.packages("nycflights13")
library("nycflights13")
# The data frame `flights` should now be accessible to you.
# Use functions to inspect it: how many rows and columns does... | /exercise-4/exercise.R | permissive | varunp27/ch10-dplyr | R | false | false | 2,467 | r | # Exercise 4: practicing with dplyr
# Install the `nycflights13` package. Load (`library()`) the package.
# You'll also need to load `dplyr`
install.packages("nycflights13")
library("nycflights13")
# The data frame `flights` should now be accessible to you.
# Use functions to inspect it: how many rows and columns does... |
# data.conditional_expectation.source.r
# data.conditional_distribution.source.r
# data.joint_distribution.source.r
# cf) https://github.com/mkim0710/tidystat/blob/master/R/function.weighted_join_FIPS_HANES.source.r
#@ public_v2_112917.levels123 ======
public_v2_112917.levels123 %>%
group_by(RACE, isCollege_... | /Rdev/40_visualize_explore_bivariate_stratified/data.conditional_expectation.source.r | no_license | mkim0710/tidystat | R | false | false | 19,992 | r | # data.conditional_expectation.source.r
# data.conditional_distribution.source.r
# data.joint_distribution.source.r
# cf) https://github.com/mkim0710/tidystat/blob/master/R/function.weighted_join_FIPS_HANES.source.r
#@ public_v2_112917.levels123 ======
public_v2_112917.levels123 %>%
group_by(RACE, isCollege_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/1c_kusko_input_prep.R
\name{kusko_prep}
\alias{kusko_prep}
\title{Prepare the Kuskokwim Substock Data for this analysis}
\usage{
kusko_prep(S_dat, H_dat, age_dat, v = NULL, ESSmax = NULL)
}
\arguments{
\item{S_dat}{the contents of the data fi... | /man/kusko_prep.Rd | no_license | bstaton1/FitSR | R | false | true | 1,290 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/1c_kusko_input_prep.R
\name{kusko_prep}
\alias{kusko_prep}
\title{Prepare the Kuskokwim Substock Data for this analysis}
\usage{
kusko_prep(S_dat, H_dat, age_dat, v = NULL, ESSmax = NULL)
}
\arguments{
\item{S_dat}{the contents of the data fi... |
#' Merge oracle and ascii data for vi_(a, ..i)
#'
#'
#' @description This function is to merge oracle and ascii data before the VRI compiler
#'
#' @param oracleSourcePath character, Specifies the path that stores data from oracle data base.
#' In VRI compiler, this should be the saveP... | /R/mergeOAData.R | permissive | bcgov/FAIBCompiler | R | false | false | 13,455 | r | #' Merge oracle and ascii data for vi_(a, ..i)
#'
#'
#' @description This function is to merge oracle and ascii data before the VRI compiler
#'
#' @param oracleSourcePath character, Specifies the path that stores data from oracle data base.
#' In VRI compiler, this should be the saveP... |
#Exploracion (Consultas exploratorias y diagramas )
#Obtenemos el data frame ya preprocesado
df <- read.csv("Codigo/Datos Fuente/DatosPreprocesadosFinal.csv")
df$FECHA.ENVIO <- as.Date(df$FECHA.ENVIO) #Convertimos el dato fecha
#df$DEPARTAMENTO <- as.factor(df$DEPARTAMENTO)
#df$PROVINCIA <- as.factor(df$PROVIN... | /Codigo/Script exploracion datos.R | no_license | rchavez2407/Trabajo-Final-Admin-Info | R | false | false | 7,818 | r | #Exploracion (Consultas exploratorias y diagramas )
#Obtenemos el data frame ya preprocesado
df <- read.csv("Codigo/Datos Fuente/DatosPreprocesadosFinal.csv")
df$FECHA.ENVIO <- as.Date(df$FECHA.ENVIO) #Convertimos el dato fecha
#df$DEPARTAMENTO <- as.factor(df$DEPARTAMENTO)
#df$PROVINCIA <- as.factor(df$PROVIN... |
#preliminaries ####
#load plyr library for creating group counts, check 2013 against fsis summary page
library(plyr)
library(reshape2)
library(doBy)
library(ggplot2)
library(ggthemes)
# Multiple plot function
#
# ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects)
# - cols: N... | /analysis_postreview.r | no_license | mstasiewicz/food-safety | R | false | false | 25,144 | r | #preliminaries ####
#load plyr library for creating group counts, check 2013 against fsis summary page
library(plyr)
library(reshape2)
library(doBy)
library(ggplot2)
library(ggthemes)
# Multiple plot function
#
# ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects)
# - cols: N... |
corr <- function(directory, threshold = 0) {
if(grep("specdata", directory) == 1) {
directory <- ("./specdata/")
}
complete_table <- complete("specdata", 1:332)
nobs <- complete_table$nobs
ids <- complete_table$id[nobs > threshold]
id_len <- length(ids)
... | /r-programming/week-2/corr.R | no_license | ocama/data-science | R | false | false | 783 | r | corr <- function(directory, threshold = 0) {
if(grep("specdata", directory) == 1) {
directory <- ("./specdata/")
}
complete_table <- complete("specdata", 1:332)
nobs <- complete_table$nobs
ids <- complete_table$id[nobs > threshold]
id_len <- length(ids)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{sim_plot}
\alias{sim_plot}
\title{sim_plot: visualize type S/M errors}
\usage{
sim_plot(A, s, alpha = 0.05, df = Inf, n.sims = 5000, gg = TRUE)
}
\arguments{
\item{A}{a numeric, an estimate of the true effect si... | /man/sim_plot.Rd | no_license | cran/retrodesign | R | false | true | 980 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{sim_plot}
\alias{sim_plot}
\title{sim_plot: visualize type S/M errors}
\usage{
sim_plot(A, s, alpha = 0.05, df = Inf, n.sims = 5000, gg = TRUE)
}
\arguments{
\item{A}{a numeric, an estimate of the true effect si... |
/data/Newspapers/2001.04.17.editorial.37796.0597.r | no_license | narcis96/decrypting-alpha | R | false | false | 3,782 | r | ||
#' @name getMinimumWinningCoalitions
#' @title getMinimumWinningCoalitions
#' @description The function getMinimumWinningCoalitions identifies all minimal winning coalitions.
#' These coalitions are characterized by the circumstance that
#' if any player break aways from them, then the coalition
#' generates no v... | /CoopGame/R/getMinimumWinningCoalitions.R | no_license | anwanjohannes/CoopGame | R | false | false | 2,308 | r | #' @name getMinimumWinningCoalitions
#' @title getMinimumWinningCoalitions
#' @description The function getMinimumWinningCoalitions identifies all minimal winning coalitions.
#' These coalitions are characterized by the circumstance that
#' if any player break aways from them, then the coalition
#' generates no v... |
## THe codes below are to find inverse of a matrix as per the assignment.
## "makeCacheMatrix" and "cacheSolve" cache the inverse of a given matrix
## this fucntion makes a "matrix" object that cache the inverse of the input matirx
## input of this function should be a invertible square matrix
makeCacheMatrix <- func... | /cachematrix.R | no_license | dev207/ProgrammingAssignment2 | R | false | false | 1,077 | r | ## THe codes below are to find inverse of a matrix as per the assignment.
## "makeCacheMatrix" and "cacheSolve" cache the inverse of a given matrix
## this fucntion makes a "matrix" object that cache the inverse of the input matirx
## input of this function should be a invertible square matrix
makeCacheMatrix <- func... |
## A pair of functions that cache the inverse of a matrix
## Creates a special matrix object that can cache its inverse
makeCacheMatrix <- function( m = matrix() ) {
## Initialize the inverse property
i <- NULL
## Method to set the matrix
set <- function( matrix ) {
m <<- matrix
... | /cachematrix.R | no_license | Gordhan-Bagri/ProgrammingAssignment2 | R | false | false | 1,536 | r | ## A pair of functions that cache the inverse of a matrix
## Creates a special matrix object that can cache its inverse
makeCacheMatrix <- function( m = matrix() ) {
## Initialize the inverse property
i <- NULL
## Method to set the matrix
set <- function( matrix ) {
m <<- matrix
... |
% (C) 2015 Christian Margreitter
% last update: 2017-02-21
\name{load_ramachandran}
\alias{load_ramachandran}
\title{Load dihedral information (Ramachandran plot input)}
\description{
Loads a textfile with dihedral angles, which are to be stored in a matrix. By default, the first column is phi and the second psi. Angle... | /MDplot/man/load_ramchandran.Rd | no_license | yongwangCPH/MDplot | R | false | false | 1,607 | rd | % (C) 2015 Christian Margreitter
% last update: 2017-02-21
\name{load_ramachandran}
\alias{load_ramachandran}
\title{Load dihedral information (Ramachandran plot input)}
\description{
Loads a textfile with dihedral angles, which are to be stored in a matrix. By default, the first column is phi and the second psi. Angle... |
library(netdiffuseR)
### Name: rgraph_er
### Title: Erdos-Renyi model
### Aliases: rgraph_er bernoulli
### Keywords: distribution
### ** Examples
## Not run:
##D # Setting the seed
##D set.seed(123)
##D
##D # Generating an directed graph
##D rgraph_er(undirected=FALSE)
##D
##D # Comparing P(tie)
##D x <- rgraph_... | /data/genthat_extracted_code/netdiffuseR/examples/rgraph_er.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 432 | r | library(netdiffuseR)
### Name: rgraph_er
### Title: Erdos-Renyi model
### Aliases: rgraph_er bernoulli
### Keywords: distribution
### ** Examples
## Not run:
##D # Setting the seed
##D set.seed(123)
##D
##D # Generating an directed graph
##D rgraph_er(undirected=FALSE)
##D
##D # Comparing P(tie)
##D x <- rgraph_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HypoTest.R
\name{hypothesis}
\alias{hypothesis}
\title{Hypothesis Testing Automation}
\usage{
hypothesis(data, target)
}
\description{
Hypothesis Testing Automation
}
| /man/hypothesis.Rd | no_license | akcterp/Hypothesis_Testing | R | false | true | 256 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HypoTest.R
\name{hypothesis}
\alias{hypothesis}
\title{Hypothesis Testing Automation}
\usage{
hypothesis(data, target)
}
\description{
Hypothesis Testing Automation
}
|
###
### An Example Script for Coarsened Exact Matching
###
## load the Lalonde data
data(lalonde)
## coarsened exact matching with automatic coarsening
m.out <- matchit(treat ~ age + educ + black + hispan + married + nodegree
+ re74 + re75, data = lalonde, method = "cem")
user.prompt()
## print a s... | /fuzzedpackages/MatchIt/demo/cem.R | no_license | akhikolla/testpackages | R | false | false | 1,343 | r | ###
### An Example Script for Coarsened Exact Matching
###
## load the Lalonde data
data(lalonde)
## coarsened exact matching with automatic coarsening
m.out <- matchit(treat ~ age + educ + black + hispan + married + nodegree
+ re74 + re75, data = lalonde, method = "cem")
user.prompt()
## print a s... |
library(chron)
library(data.table)
hpc = fread("household_power_consumption.txt")
hpc$Date = as.Date(hpc$Date, format = "%d/%m/%Y")
subsetDates = subset(hpc, Date == as.Date("2007-02-01") | Date == as.Date("2007-02-02"))
subsetDates$Global_active_power = as.numeric(subsetDates$Global_active_power)
subsetDates$Time = ... | /plot2.R | no_license | stvauyeung/ExData_Plotting1 | R | false | false | 676 | r | library(chron)
library(data.table)
hpc = fread("household_power_consumption.txt")
hpc$Date = as.Date(hpc$Date, format = "%d/%m/%Y")
subsetDates = subset(hpc, Date == as.Date("2007-02-01") | Date == as.Date("2007-02-02"))
subsetDates$Global_active_power = as.numeric(subsetDates$Global_active_power)
subsetDates$Time = ... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{print.lexical_classification_preprocessed}
\alias{print.lexical_classification_preprocessed}
\title{Prints a lexical_classification_preprocessed Object}
\usage{
\method{print}{lexical_classification_preprocessed}(x, ...)
}
\arguments{
\item{x}{The lexical_class... | /man/print.lexical_classification_preprocessed.Rd | no_license | joffrevillanueva/qdap | R | false | false | 448 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{print.lexical_classification_preprocessed}
\alias{print.lexical_classification_preprocessed}
\title{Prints a lexical_classification_preprocessed Object}
\usage{
\method{print}{lexical_classification_preprocessed}(x, ...)
}
\arguments{
\item{x}{The lexical_class... |
# filter to just voters who responded in all years (2016, 2017,2018)
vote <- vote[!is.na(vote$weight_panel),] # remove anyone who doesn't have a weight for 2018
vote <- vote[!is.na(vote$weight_2017),] # remove anyone who doesn't have a weight for 2017
vote <- vote[!is.na(vote$weight_2016),] # remove anyone who doesn't ... | /filter.R | no_license | wmerrow/trump-voters | R | false | false | 645 | r | # filter to just voters who responded in all years (2016, 2017,2018)
vote <- vote[!is.na(vote$weight_panel),] # remove anyone who doesn't have a weight for 2018
vote <- vote[!is.na(vote$weight_2017),] # remove anyone who doesn't have a weight for 2017
vote <- vote[!is.na(vote$weight_2016),] # remove anyone who doesn't ... |
#'@title Generate stratified sample of site pairs across regions
# @description Set targets for the number of pairs formed within and between regions
#'@param sites (data.frame, filepath) Table / .CSV fp containing site coordinates (long, lat) and a region identifier.
#'@param target_pairs (int, optional). Number of ... | /R/sitepair_sample_regions.R | no_license | cwarecsiro/gdmDev | R | false | false | 19,072 | r | #'@title Generate stratified sample of site pairs across regions
# @description Set targets for the number of pairs formed within and between regions
#'@param sites (data.frame, filepath) Table / .CSV fp containing site coordinates (long, lat) and a region identifier.
#'@param target_pairs (int, optional). Number of ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/train.R
\name{train.neuralnet}
\alias{train.neuralnet}
\title{train.neuralnet}
\usage{
train.neuralnet(
formula,
data,
hidden = 1,
threshold = 0.01,
stepmax = 1e+05,
rep = 1,
startweights = NULL,
learningrate.limit = NULL,
l... | /man/train.neuralnet.Rd | no_license | PROMiDAT/traineR | R | false | true | 4,209 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/train.R
\name{train.neuralnet}
\alias{train.neuralnet}
\title{train.neuralnet}
\usage{
train.neuralnet(
formula,
data,
hidden = 1,
threshold = 0.01,
stepmax = 1e+05,
rep = 1,
startweights = NULL,
learningrate.limit = NULL,
l... |
get.ssurgo.data <- function(lat,lon,variables=''){
require(soilDB)
if(identical(variables,'')) variables <- c('compname','comppct_r')
query<- paste("SELECT ",paste(variables,collapse=','),
"FROM mapunit",
"INNER JOIN component ON mapunit.mukey = component.mukey",
... | /R/get_ssurgo.R | no_license | sethgis/dssatR | R | false | false | 764 | r | get.ssurgo.data <- function(lat,lon,variables=''){
require(soilDB)
if(identical(variables,'')) variables <- c('compname','comppct_r')
query<- paste("SELECT ",paste(variables,collapse=','),
"FROM mapunit",
"INNER JOIN component ON mapunit.mukey = component.mukey",
... |
### Regression and Causal Inference
# When can regression be used to make causal claims rather than predictive ones?
# Causal vs. predictive inference
# The Fundamental Problem
# Assumptions: overlap
# Assumptions: balance
# Assumptions: ignorability
# Matching: an example
# Causal vs. predi... | /causal_inference.R | no_license | dwallc/POLI5003 | R | false | false | 7,316 | r | ### Regression and Causal Inference
# When can regression be used to make causal claims rather than predictive ones?
# Causal vs. predictive inference
# The Fundamental Problem
# Assumptions: overlap
# Assumptions: balance
# Assumptions: ignorability
# Matching: an example
# Causal vs. predi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jetpack.R
\name{jetpack.remove}
\alias{jetpack.remove}
\title{Remove a package}
\usage{
jetpack.remove(packages, remotes = c())
}
\arguments{
\item{packages}{Packages to remove}
\item{remotes}{Remotes to remove}
}
\description{
Remove a pack... | /man/jetpack.remove.Rd | no_license | josesaribeiro/jetpack | R | false | true | 326 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jetpack.R
\name{jetpack.remove}
\alias{jetpack.remove}
\title{Remove a package}
\usage{
jetpack.remove(packages, remotes = c())
}
\arguments{
\item{packages}{Packages to remove}
\item{remotes}{Remotes to remove}
}
\description{
Remove a pack... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tabixToGr.R
\name{tabixRetrieve}
\alias{tabixRetrieve}
\title{Read from tabix-indexed bed file to list objects}
\usage{
tabixRetrieve(
paths,
chr,
start = 1,
end = 2^28,
sample_names = NULL,
is.epibed = FALSE,
BPPARAM = SerialPa... | /man/tabixRetrieve.Rd | no_license | trichelab/biscuiteer | R | false | true | 800 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tabixToGr.R
\name{tabixRetrieve}
\alias{tabixRetrieve}
\title{Read from tabix-indexed bed file to list objects}
\usage{
tabixRetrieve(
paths,
chr,
start = 1,
end = 2^28,
sample_names = NULL,
is.epibed = FALSE,
BPPARAM = SerialPa... |
## Predictors are compositional data
alfaknnreg.tune <- function(y, x, a = seq(-1, 1, by = 0.1), k = 2:10, nfolds = 10,
apostasi = "euclidean", method = "average", folds = NULL, seed = NULL, graph = FALSE) {
if ( min(x) == 0 ) a <- a[a>0] ## checks for any zeros in the data
n <- dim(x)[1] ## sample size
... | /R/alfaknnreg.tune.R | no_license | cran/Compositional | R | false | false | 1,394 | r | ## Predictors are compositional data
alfaknnreg.tune <- function(y, x, a = seq(-1, 1, by = 0.1), k = 2:10, nfolds = 10,
apostasi = "euclidean", method = "average", folds = NULL, seed = NULL, graph = FALSE) {
if ( min(x) == 0 ) a <- a[a>0] ## checks for any zeros in the data
n <- dim(x)[1] ## sample size
... |
library(dplyr)
library(latticeExtra)
path <- "/media/tims_ex/kilimanjaro_ta200_interp"
setwd(path)
fls_rslts <- list.files("results_server", pattern = glob2rx("ki_*.csv"),
full.names = TRUE, recursive = TRUE)
indx_krig <- grep(glob2rx("*krig*"), fls_rslts)
fls_rslts_krig <- fls_rslts[indx_kri... | /src_old/densityplots.R | no_license | environmentalinformatics-marburg/appelhans-SPASTA-D-14-00065 | R | false | false | 2,881 | r | library(dplyr)
library(latticeExtra)
path <- "/media/tims_ex/kilimanjaro_ta200_interp"
setwd(path)
fls_rslts <- list.files("results_server", pattern = glob2rx("ki_*.csv"),
full.names = TRUE, recursive = TRUE)
indx_krig <- grep(glob2rx("*krig*"), fls_rslts)
fls_rslts_krig <- fls_rslts[indx_kri... |
#' Recode variables
#'
#' @importFrom stringr str_trim
#' @param x numeric or character vector with values to recode.
#' @param ... recode pairs in the format \code{"from" = "to"}, e.g.
#' \code{"female" = "f"}.
#' @param default numeric or character. All entries in \code{x} not covered by
#' \code{...} get recoded... | /R/recode.R | no_license | dgromer/psymisc | R | false | false | 2,997 | r | #' Recode variables
#'
#' @importFrom stringr str_trim
#' @param x numeric or character vector with values to recode.
#' @param ... recode pairs in the format \code{"from" = "to"}, e.g.
#' \code{"female" = "f"}.
#' @param default numeric or character. All entries in \code{x} not covered by
#' \code{...} get recoded... |
# @file AttritionDiagram.R
#
# Copyright 2022 Observational Health Data Sciences and Informatics
#
# This file is part of CohortMethod
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | /R/AttritionDiagram.R | permissive | MimiYuchenGuo/CohortMethod | R | false | false | 9,082 | r | # @file AttritionDiagram.R
#
# Copyright 2022 Observational Health Data Sciences and Informatics
#
# This file is part of CohortMethod
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... |
# Setup
################################################################################
# Clear workspace
rm(list = ls())
# Turn off sci notation
options(scipen=999)
# Packages
library(plyr)
library(dplyr)
library(tidyr)
library(reshape2)
library(RColorBrewer)
# Plotting functions
###############################... | /code/old_code/mscom_v2_box_constraints_auto_OJ_mods.R | no_license | MS-COM/mscom | R | false | false | 10,527 | r |
# Setup
################################################################################
# Clear workspace
rm(list = ls())
# Turn off sci notation
options(scipen=999)
# Packages
library(plyr)
library(dplyr)
library(tidyr)
library(reshape2)
library(RColorBrewer)
# Plotting functions
###############################... |
#include <string.h>
#include <PropertyList.h>
#include <qfile.h>
#include <qfs.h>
#include <Array.h>
#include "impulse_menu.h"
#include "libfrikbot.h"
#include "editor.h"
#include "waypoint.h"
@interface TeleportMenu: ImpulseValueMenu
@end
@interface NoclipFlag: Object <FlagMenuItem>
@end
@interface GodmodeFlag: Ob... | /fbxa/editor.r | no_license | quakeforge/game-source | R | false | false | 24,555 | r | #include <string.h>
#include <PropertyList.h>
#include <qfile.h>
#include <qfs.h>
#include <Array.h>
#include "impulse_menu.h"
#include "libfrikbot.h"
#include "editor.h"
#include "waypoint.h"
@interface TeleportMenu: ImpulseValueMenu
@end
@interface NoclipFlag: Object <FlagMenuItem>
@end
@interface GodmodeFlag: Ob... |
sink(file = "sink/sink_02_sem.txt", type = c("output"))
library(lavaan)
#library(qgraph)
library(sem)
#library(semPlot)
#library(semTools)
#library(psych)
#library(ggplot2)
#library(ISLR)
##2nd Order MODEL Two Latents
aesismodel_1 <- '
EIS =~ EIS_1 + EIS_2 + EIS_3 + EIS_4 + EIS_5 + EIS_6 + EIS_7 + EIS_8 + EIS_9 + EIS... | /Script/AESIS/Largent.R | no_license | setite/beer-recommendations | R | false | false | 6,517 | r | sink(file = "sink/sink_02_sem.txt", type = c("output"))
library(lavaan)
#library(qgraph)
library(sem)
#library(semPlot)
#library(semTools)
#library(psych)
#library(ggplot2)
#library(ISLR)
##2nd Order MODEL Two Latents
aesismodel_1 <- '
EIS =~ EIS_1 + EIS_2 + EIS_3 + EIS_4 + EIS_5 + EIS_6 + EIS_7 + EIS_8 + EIS_9 + EIS... |
df <- read.csv(file="http://prod.publicdata.landregistry.gov.uk.s3-website-eu-west-1.amazonaws.com/pp-2018.csv", header=FALSE, sep=",")
library(data.table)
setnames(df,
old = c('V1','V2','V3','V4','V5','V6','V7','V8','V9','V10','V11','V12','V13','V14','V15','V16'),
new = c('ID','PRICE','DATE','POS... | /CA3 script.R | no_license | L00131687/CA3 | R | false | false | 5,791 | r | df <- read.csv(file="http://prod.publicdata.landregistry.gov.uk.s3-website-eu-west-1.amazonaws.com/pp-2018.csv", header=FALSE, sep=",")
library(data.table)
setnames(df,
old = c('V1','V2','V3','V4','V5','V6','V7','V8','V9','V10','V11','V12','V13','V14','V15','V16'),
new = c('ID','PRICE','DATE','POS... |
library(swirl)
### Name: install_course
### Title: Install a course from The swirl Course Network or install a
### course from a local .swc file.
### Aliases: install_course
### ** Examples
## Not run:
##D
##D # Install the latest version of Team swirl's R Programming course.
##D install_course("R Programming")... | /data/genthat_extracted_code/swirl/examples/install_course.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 595 | r | library(swirl)
### Name: install_course
### Title: Install a course from The swirl Course Network or install a
### course from a local .swc file.
### Aliases: install_course
### ** Examples
## Not run:
##D
##D # Install the latest version of Team swirl's R Programming course.
##D install_course("R Programming")... |
# try out miRNA target prediction
library(miRNAtap)
library(topGO)
library(org.Hs.eg.db)
library(readr)
# tutorial from miRNAtap manual
mir <- "miR-128-3p"
predictions <- getPredictedTargets(mir, species = "hsa", method = "geom", min_src = 2)
rankedGenes <- predictions[,'rank_product']
selection <- function(x) TRUE... | /doc/target_prediction/target_prediction.R | no_license | mikelaff/mirna-eqtl-manuscript | R | false | false | 2,797 | r | # try out miRNA target prediction
library(miRNAtap)
library(topGO)
library(org.Hs.eg.db)
library(readr)
# tutorial from miRNAtap manual
mir <- "miR-128-3p"
predictions <- getPredictedTargets(mir, species = "hsa", method = "geom", min_src = 2)
rankedGenes <- predictions[,'rank_product']
selection <- function(x) TRUE... |
testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398... | /myTAI/inst/testfiles/cpp_omitMatrix/AFL_cpp_omitMatrix/cpp_omitMatrix_valgrind_files/1615845763-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,089 | r | testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398... |
################################################################################
# "Working with dynamic models for agriculture"
# R script for practical work
# Daniel Wallach (INRA), David Makowski (INRA), James W. Jones (U.of Florida),
# Francois Brun (ACTA)
# version : 2012-04-23
# Model described in the book,... | /R/verhulst.model.r | no_license | gcostaneto/ZeBook | R | false | false | 2,290 | r | ################################################################################
# "Working with dynamic models for agriculture"
# R script for practical work
# Daniel Wallach (INRA), David Makowski (INRA), James W. Jones (U.of Florida),
# Francois Brun (ACTA)
# version : 2012-04-23
# Model described in the book,... |
#' This function runs the simulation and plots the figure for case I.
#'
#' @param beta The value of beta, which is between 0 and 1. In the paper, beta is chosen as 0.3 and 0.4 respectively.
... | /R/caseI.R | no_license | zhaozhg81/CLAT | R | false | false | 12,260 | r | #' This function runs the simulation and plots the figure for case I.
#'
#' @param beta The value of beta, which is between 0 and 1. In the paper, beta is chosen as 0.3 and 0.4 respectively.
... |
library(RnBeads)
#String operations
library(stringr)
#Plotting
library(ggplot2)
library(extrafont)
library(Cairo)
library(heatmap.plus)
library(gplots) #for heatmap.2
library(RColorBrewer)
#Reading and writing tables
library(readr)
library(openxlsx)
#For DE analysis
#library(Biobase)
#library(marray)
#library(limma)... | /baseline_methylation/methylation_baseline.R | no_license | coppolalab/Burke_Pipeline | R | false | false | 9,936 | r | library(RnBeads)
#String operations
library(stringr)
#Plotting
library(ggplot2)
library(extrafont)
library(Cairo)
library(heatmap.plus)
library(gplots) #for heatmap.2
library(RColorBrewer)
#Reading and writing tables
library(readr)
library(openxlsx)
#For DE analysis
#library(Biobase)
#library(marray)
#library(limma)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{df2list}
\alias{df2list}
\title{Convert a data.frame to a named list}
\usage{
df2list(x)
}
\arguments{
\item{x}{a data.frame}
}
\value{
a list.
}
\description{
Convert a data.frame to a named list
}
\details{
Each element of the ... | /man/df2list.Rd | permissive | alaindanet/indirect_facilitation_model | R | false | true | 401 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{df2list}
\alias{df2list}
\title{Convert a data.frame to a named list}
\usage{
df2list(x)
}
\arguments{
\item{x}{a data.frame}
}
\value{
a list.
}
\description{
Convert a data.frame to a named list
}
\details{
Each element of the ... |
## AMZ Demand Forecast Summary Report
library(xlsx)
library(openxlsx)
options(scipen = 999)
## Read and prepare AMZ Price Data
setwd("C:/Users/Elvis Ma/Desktop/Weekly Work/Actual Sales")
Date = "testing"
Col1 = 56 # Half June of 2019
Col2 = 57
File_Name <- paste('ZINUSCOM_', Date, sep = "")
ZINUS_S... | /Forecast Accuracy/6. Forecast Summary_Zinus.R | no_license | elvisma/Zinus-SCM-related | R | false | false | 13,267 | r | ## AMZ Demand Forecast Summary Report
library(xlsx)
library(openxlsx)
options(scipen = 999)
## Read and prepare AMZ Price Data
setwd("C:/Users/Elvis Ma/Desktop/Weekly Work/Actual Sales")
Date = "testing"
Col1 = 56 # Half June of 2019
Col2 = 57
File_Name <- paste('ZINUSCOM_', Date, sep = "")
ZINUS_S... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/center.R
\name{step_center}
\alias{step_center}
\alias{tidy.step_center}
\title{Centering numeric data}
\usage{
step_center(
recipe,
...,
role = NA,
trained = FALSE,
means = NULL,
na_rm = TRUE,
skip = FALSE,
id = rand_id("cent... | /man/step_center.Rd | permissive | labouz/recipes | R | false | true | 3,077 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/center.R
\name{step_center}
\alias{step_center}
\alias{tidy.step_center}
\title{Centering numeric data}
\usage{
step_center(
recipe,
...,
role = NA,
trained = FALSE,
means = NULL,
na_rm = TRUE,
skip = FALSE,
id = rand_id("cent... |
library(DynNom)
### Name: DynNom.Glm
### Title: Dynamic Nomograms for Generalized Linear Models from the 'rms'
### package
### Aliases: DynNom.Glm
### Keywords: dynamic nomograms generalized linear models individual
### prediction shiny
### ** Examples
## Not run:
##D # example 1 - a generalized linear model
#... | /data/genthat_extracted_code/DynNom/examples/DynNom.rms.Glm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,376 | r | library(DynNom)
### Name: DynNom.Glm
### Title: Dynamic Nomograms for Generalized Linear Models from the 'rms'
### package
### Aliases: DynNom.Glm
### Keywords: dynamic nomograms generalized linear models individual
### prediction shiny
### ** Examples
## Not run:
##D # example 1 - a generalized linear model
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/indexByRow.R
\name{indexByRow}
\alias{indexByRow}
\title{Translates matrix indices by rows into indices by columns}
\usage{
indexByRow(dim, idxs = NULL, ...)
}
\arguments{
\item{dim}{A \code{\link[base]{numeric}} \code{\link[base]{vector}} of... | /man/indexByRow.Rd | no_license | const-ae/matrixStats | R | false | true | 1,362 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/indexByRow.R
\name{indexByRow}
\alias{indexByRow}
\title{Translates matrix indices by rows into indices by columns}
\usage{
indexByRow(dim, idxs = NULL, ...)
}
\arguments{
\item{dim}{A \code{\link[base]{numeric}} \code{\link[base]{vector}} of... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 4.48502250775333e-296, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615777933-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 348 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 4.48502250775333e-296, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... |
\name{print.gbifdens}
\alias{print.gbifdens}
\title{Print summary of gbifdens class}
\usage{
\method{print}{gbifdens} (x, ...)
}
\arguments{
\item{x}{an object of class gbifdens}
\item{...}{further arguments passed to or from other
methods.}
}
\description{
Print summary of gbifdens class
}
| /man/print.gbifdens-deprecated.Rd | permissive | imclab/rgbif | R | false | false | 304 | rd | \name{print.gbifdens}
\alias{print.gbifdens}
\title{Print summary of gbifdens class}
\usage{
\method{print}{gbifdens} (x, ...)
}
\arguments{
\item{x}{an object of class gbifdens}
\item{...}{further arguments passed to or from other
methods.}
}
\description{
Print summary of gbifdens class
}
|
try <- read.csv(file="seaflow_21min.csv", head=TRUE, sep=",")
try | /assignment5/read.r | no_license | jwnx/datasci_course_materials | R | false | false | 65 | r | try <- read.csv(file="seaflow_21min.csv", head=TRUE, sep=",")
try |
library(ape)
testtree <- read.tree("4558_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="4558_0_unrooted.txt") | /codeml_files/newick_trees_processed/4558_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("4558_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="4558_0_unrooted.txt") |
###### -- ExtractBy -----------------------------------------------------------
# author: nicholas cooley
# email: npc19@pitt.edu / npcooley@gmail.com
# extract stringsets from an assembly based on the gene calls
# OR
# extract stringsets from a series of assemblies based on a pairsummaries object
# OR
# extract string... | /R/ExtractBy.R | no_license | npcooley/SynExtend | R | false | false | 15,984 | r | ###### -- ExtractBy -----------------------------------------------------------
# author: nicholas cooley
# email: npc19@pitt.edu / npcooley@gmail.com
# extract stringsets from an assembly based on the gene calls
# OR
# extract stringsets from a series of assemblies based on a pairsummaries object
# OR
# extract string... |
##Exploratory Data Analysis course project 1 - Part 4
## Date: 2014-05-11
#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#* Read and prepare data
#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
eldata <- "Expdata/household_power_consumption.txt"
eltab <- read.tabl... | /Plot4.R | no_license | asheshwor/ExData_Plotting1 | R | false | false | 2,148 | r | ##Exploratory Data Analysis course project 1 - Part 4
## Date: 2014-05-11
#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#* Read and prepare data
#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
eldata <- "Expdata/household_power_consumption.txt"
eltab <- read.tabl... |
##' @include AllClasses.R
##' @include AllGenerics.R
setMethod('fit', signature=c(object='BayesGLMlike', response='missing'), function(object, response, silent=TRUE, ...){
prefit <- .fit(object)
if(!prefit){
if(!silent) warning('No positive observations')
return(object)
}
fitArgsC <- ob... | /R/lmWrapper-bayesglm.R | no_license | QinLab/MAST | R | false | false | 1,864 | r | ##' @include AllClasses.R
##' @include AllGenerics.R
setMethod('fit', signature=c(object='BayesGLMlike', response='missing'), function(object, response, silent=TRUE, ...){
prefit <- .fit(object)
if(!prefit){
if(!silent) warning('No positive observations')
return(object)
}
fitArgsC <- ob... |
print("Welcome to Ultimate Reversi!")
print("2019-07-21 Version")
print("By Jack Davis, www.stats-et-al.com")
print("")
print("Have your plot window available for clicking...")
print("and type play.game() to start!")
print("Then, click on any of the red circles to place a stone.")
### Initialize a board
### While th... | /riddler/reversi/part1/Reversi_Functions.r | permissive | rgc-retired/math_puzzles | R | false | false | 12,269 | r |
print("Welcome to Ultimate Reversi!")
print("2019-07-21 Version")
print("By Jack Davis, www.stats-et-al.com")
print("")
print("Have your plot window available for clicking...")
print("and type play.game() to start!")
print("Then, click on any of the red circles to place a stone.")
### Initialize a board
### While th... |
# Import packages
#' @useDynLib LFUtility, .registration = TRUE
#' @import data.table
#' @import magrittr
#' @import assertthat
#' @import formattable
#' @importMethodsFrom lubridate %m+% %m-%
#' @importFrom Rcpp evalCpp
## @import secret
## @import openxlsx
## @import jsonlite
NULL
| /R/import.R | no_license | nicholaelaw/LFUtility | R | false | false | 284 | r | # Import packages
#' @useDynLib LFUtility, .registration = TRUE
#' @import data.table
#' @import magrittr
#' @import assertthat
#' @import formattable
#' @importMethodsFrom lubridate %m+% %m-%
#' @importFrom Rcpp evalCpp
## @import secret
## @import openxlsx
## @import jsonlite
NULL
|
#' azureActiveContext object.
#'
#' Functions for creating and displaying information about azureActiveContext objects.
#'
#' @param x Object to create, test or print
#' @param object Object to create, test or print
#' @param ... Ignored
#'
#' @seealso \code{\link{createAzureContext}}
#' @export
#' @rdname Internal
as.... | /R/methods.R | no_license | radovankavicky/AzureSMR | R | false | false | 928 | r | #' azureActiveContext object.
#'
#' Functions for creating and displaying information about azureActiveContext objects.
#'
#' @param x Object to create, test or print
#' @param object Object to create, test or print
#' @param ... Ignored
#'
#' @seealso \code{\link{createAzureContext}}
#' @export
#' @rdname Internal
as.... |
# This function takes a character vector for dates and a character vector for time
# it paste date and time together to use strptime with the proper format
# it outputs a POSIXct
combineDT <- function(d,t) {
if (length(d)!=length(t)) {
stop("different lengths in vector")
}
mydstring=paste(d,t)
# reads onl... | /plot1.R | no_license | clollett/ExData_Plotting1 | R | false | false | 2,315 | r |
# This function takes a character vector for dates and a character vector for time
# it paste date and time together to use strptime with the proper format
# it outputs a POSIXct
combineDT <- function(d,t) {
if (length(d)!=length(t)) {
stop("different lengths in vector")
}
mydstring=paste(d,t)
# reads onl... |
clusters <- function(c)
{
UseMethod("clusters")
}
clusters.partition <- function(c)
{
print(table(c$clustering))
}
clusters.clustering <- function(c)
{
print(table(c$clustering))
}
members <- function (clustering,which=NULL)
{
clust <- clustering$clustering
if (!is.null(which)) {
cat(pas... | /R/clustering.R | no_license | cran/optpart | R | false | false | 539 | r | clusters <- function(c)
{
UseMethod("clusters")
}
clusters.partition <- function(c)
{
print(table(c$clustering))
}
clusters.clustering <- function(c)
{
print(table(c$clustering))
}
members <- function (clustering,which=NULL)
{
clust <- clustering$clustering
if (!is.null(which)) {
cat(pas... |
## -------------------------- ##
## An R Function that Shades ##
## under a normal density. ##
## ##
## This is a convenience ##
## function for polygon() ##
## -------------------------- ##
shadenorm = function(below=NULL, above=NULL, pcts = c(0.025,0.975), mu=0, sig=1, numpts ... | /shadenorm.R | no_license | wallyt/inferential-project | R | false | false | 2,081 | r | ## -------------------------- ##
## An R Function that Shades ##
## under a normal density. ##
## ##
## This is a convenience ##
## function for polygon() ##
## -------------------------- ##
shadenorm = function(below=NULL, above=NULL, pcts = c(0.025,0.975), mu=0, sig=1, numpts ... |
####################################################################
## Project: RM Thesis - Final Project
## Script purpose: General software dependencies and packages for scripts
## Date: 24-1-2019
## Author: Bram Timmers
####################################################################
setwd("C:/Users/Bram/Docum... | /dependencies.R | no_license | Bramtimm/Thesis-project | R | false | false | 1,129 | r | ####################################################################
## Project: RM Thesis - Final Project
## Script purpose: General software dependencies and packages for scripts
## Date: 24-1-2019
## Author: Bram Timmers
####################################################################
setwd("C:/Users/Bram/Docum... |
distances = c(11, 12, 13, 14, 15, 16, 17, 180, 7, 11)
sum(distances)
median(distances)
mean(distances) # average
min(distances)
max(distances)
var(distances) # variance
st(distances) # standard deviation
| /r/examples/vectors/statistics.R | no_license | szabgab/slides | R | false | false | 214 | r | distances = c(11, 12, 13, 14, 15, 16, 17, 180, 7, 11)
sum(distances)
median(distances)
mean(distances) # average
min(distances)
max(distances)
var(distances) # variance
st(distances) # standard deviation
|
#' BuildMST
#'
#' Build Minimal Spanning Tree
#'
#' Add minimal spanning tree description to the FlowSOM object
#'
#' @param fsom FlowSOM object, as generated by \code{\link{BuildSOM}}
#' @param silent If \code{TRUE}, no progress updates will be printed
#' @param tSNE If \code{TRUE}, an alternative tSNE layout i... | /R/3_buildMST.R | no_license | davnovak/FlowSOM | R | false | false | 15,968 | r | #' BuildMST
#'
#' Build Minimal Spanning Tree
#'
#' Add minimal spanning tree description to the FlowSOM object
#'
#' @param fsom FlowSOM object, as generated by \code{\link{BuildSOM}}
#' @param silent If \code{TRUE}, no progress updates will be printed
#' @param tSNE If \code{TRUE}, an alternative tSNE layout i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.