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/MultiBin.R
\name{pMultiBin}
\alias{pMultiBin}
\title{Multiplicative Binomial Distribution}
\usage{
pMultiBin(x,n,p,theta)
}
\arguments{
\item{x}{vector of binomial random variables.}
\item{n}{single value for no of binomial trials.}
\item{... | /man/pMultiBin.Rd | no_license | cran/fitODBOD | R | false | true | 3,010 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MultiBin.R
\name{pMultiBin}
\alias{pMultiBin}
\title{Multiplicative Binomial Distribution}
\usage{
pMultiBin(x,n,p,theta)
}
\arguments{
\item{x}{vector of binomial random variables.}
\item{n}{single value for no of binomial trials.}
\item{... |
#' plot the origin point in 3-dimensional space
#'
#' @param xlim
#' @param ylim
#' @param zlim
#'
plot_origin <- function(xlim, ylim, zlim){
# plot the origin point
plot3d(
x = 0, y = 0, z = 0,
xlim = xlim, ylim = ylim, zlim = zlim,
size = 5, col = "grey",
xlab = "t", ylab = "x", zlab = "f(x)"
... | /functions.R | no_license | shawenyao/Visualization-of-Stochastic-Processes | R | false | false | 13,543 | r | #' plot the origin point in 3-dimensional space
#'
#' @param xlim
#' @param ylim
#' @param zlim
#'
plot_origin <- function(xlim, ylim, zlim){
# plot the origin point
plot3d(
x = 0, y = 0, z = 0,
xlim = xlim, ylim = ylim, zlim = zlim,
size = 5, col = "grey",
xlab = "t", ylab = "x", zlab = "f(x)"
... |
library('ProjectTemplate')
setwd('~/Documents/snotel-regression_project')
load.project(list(cache_loading=T))
fn.tmin='data/topowx-stationdata/raw/topowx_final_stn_obs_tmin.nc'
fn.tmax='data/topowx-stationdata/raw/topowx_final_stn_obs_tmax.nc'
# fn=fn.tmin
# tvar='tmin'
twx.t=function(fn,tvar){
#open netcdf file... | /munge/topowx_temps.R | no_license | dschneiderch/snotel-regression | R | false | false | 3,295 | r | library('ProjectTemplate')
setwd('~/Documents/snotel-regression_project')
load.project(list(cache_loading=T))
fn.tmin='data/topowx-stationdata/raw/topowx_final_stn_obs_tmin.nc'
fn.tmax='data/topowx-stationdata/raw/topowx_final_stn_obs_tmax.nc'
# fn=fn.tmin
# tvar='tmin'
twx.t=function(fn,tvar){
#open netcdf file... |
##============================ Some supporting functions for functions for users ===========================##
## Check primary variables
checkPrimaryVar <- function(VAR, nameVAR)
{
# Check whether VAR is a vector
if(!is.vector(VAR))
{
if(is.matrix(VAR) && any(dim(VAR)==1))
{
VAR <- as.vector(VAR)... | /R/help.R | no_license | dongjt0727/CPBayes | R | false | false | 6,428 | r | ##============================ Some supporting functions for functions for users ===========================##
## Check primary variables
checkPrimaryVar <- function(VAR, nameVAR)
{
# Check whether VAR is a vector
if(!is.vector(VAR))
{
if(is.matrix(VAR) && any(dim(VAR)==1))
{
VAR <- as.vector(VAR)... |
#' Inferring trajectories with Control: shuffle
#'
#' This control method will return the milestone network of the provided
#' gold standard, but will shuffle the cell positions randomly.
#'
#' @param dummy_param This parameter does not do anything.
ti_shuffle <- dynwrap::create_ti_method_r(
id = "shuffle",
# desc... | /inst/tests/testthat/helper-ti_shuffle.R | no_license | dweemx/dynwrap | R | false | false | 1,805 | r | #' Inferring trajectories with Control: shuffle
#'
#' This control method will return the milestone network of the provided
#' gold standard, but will shuffle the cell positions randomly.
#'
#' @param dummy_param This parameter does not do anything.
ti_shuffle <- dynwrap::create_ti_method_r(
id = "shuffle",
# desc... |
:start #{START}#
:class W aeiouõäöüy
:class E aeu
:class I aei
:class U iuü
:class Y aiõ
:class X eouäöü
:class A aeiou
:class O õäöü
:class C bcdfghjklmnpqrsšzžtvwx
:class Q kptfš
:class G gbd
:class K kpt
:class Z gbdlmnrvshjzž
:class H lmnrvshjzž
:class V lmnrvwž
:class M lmnrv
:class L lmnr
:class N lnr
:class R nr... | /eki.r | no_license | jjpp/reeglitega-keel | R | false | false | 5,903 | r | :start #{START}#
:class W aeiouõäöüy
:class E aeu
:class I aei
:class U iuü
:class Y aiõ
:class X eouäöü
:class A aeiou
:class O õäöü
:class C bcdfghjklmnpqrsšzžtvwx
:class Q kptfš
:class G gbd
:class K kpt
:class Z gbdlmnrvshjzž
:class H lmnrvshjzž
:class V lmnrvwž
:class M lmnrv
:class L lmnr
:class N lnr
:class R nr... |
#' Plot Latent Position
#'
#' Plot latent position (with the effect of covariates).
#'
#' @import ggplot2
#'
#' @param Xhat Estimated latent position. Should be a `n` by `d` matrix where `n` is the number of nodes and `d` is the embeded dimension.
#' @param blocks Block label of each nodes. Should be a `n`-vector where... | /R/plotLatentPosition.R | permissive | meleangelo/grdpg | R | false | false | 3,944 | r | #' Plot Latent Position
#'
#' Plot latent position (with the effect of covariates).
#'
#' @import ggplot2
#'
#' @param Xhat Estimated latent position. Should be a `n` by `d` matrix where `n` is the number of nodes and `d` is the embeded dimension.
#' @param blocks Block label of each nodes. Should be a `n`-vector where... |
library(shiny)
library(data.table)
# Define server logic required to make a prediction
shinyServer(function(input, output) {
# Load the prediction function
source('nextWordsApp.R')
# Load the prediction table
nGramAll <- fread('predictionTableFull.csv')
# Predict next word
observe({ #need this for re... | /Data Science Johns Hopkins University/Course10_Capstone/server.R | no_license | kartikeyhadiya-clg/CourseraAssignments | R | false | false | 611 | r | library(shiny)
library(data.table)
# Define server logic required to make a prediction
shinyServer(function(input, output) {
# Load the prediction function
source('nextWordsApp.R')
# Load the prediction table
nGramAll <- fread('predictionTableFull.csv')
# Predict next word
observe({ #need this for re... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discover.R
\name{bnjr_discover}
\alias{bnjr_discover}
\alias{bjr_discover}
\alias{mdns_discover}
\title{Browse available services}
\usage{
bnjr_discover(scan_time = 10L)
bjr_discover(scan_time = 10L)
mdns_discover(scan_time = 10L)
}
\argume... | /man/bnjr_discover.Rd | permissive | hrbrmstr/bonjour | R | false | true | 512 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discover.R
\name{bnjr_discover}
\alias{bnjr_discover}
\alias{bjr_discover}
\alias{mdns_discover}
\title{Browse available services}
\usage{
bnjr_discover(scan_time = 10L)
bjr_discover(scan_time = 10L)
mdns_discover(scan_time = 10L)
}
\argume... |
# Wilson Funkhouser DS710 Assignment 1
# 1.0 Open R. The first line of text in the console window tells you
# which version of R you are running (this should be version 3.1.2).
# Copy this line of text into a document,
# to verify that you’ve installed the correct version.
# ~/workspace/school/d710/assignments/ds71... | /funkhouserw_assignment1.r | no_license | funkhouserw/ds710fall2016assignment1 | R | false | false | 2,049 | r | # Wilson Funkhouser DS710 Assignment 1
# 1.0 Open R. The first line of text in the console window tells you
# which version of R you are running (this should be version 3.1.2).
# Copy this line of text into a document,
# to verify that you’ve installed the correct version.
# ~/workspace/school/d710/assignments/ds71... |
# Generate 10 random numbers
x <- rnorm(1:10)
# Save the numbers to a file, named after the current time
save(x, file = paste0("data-raw/data_", make.names(Sys.time()), ".Rda"))
| /R/number_generator.R | permissive | durandsinclair/github.actions.tutorial | R | false | false | 180 | r |
# Generate 10 random numbers
x <- rnorm(1:10)
# Save the numbers to a file, named after the current time
save(x, file = paste0("data-raw/data_", make.names(Sys.time()), ".Rda"))
|
# Method for accessing the R-squares for the submodels of a path model fitted by 'sempls'
rSquared <- function(object, ...){
UseMethod("rSquared")
}
rSquared.sempls <- function(object, na.rm=FALSE, ...){
#Y_hat <- object$factor_scores %*% object$path_coefficients
Y_hat <- predict(object, what="LVs", scale="scale... | /semPLS/R/rSquared.R | no_license | ingted/R-Examples | R | false | false | 796 | r | # Method for accessing the R-squares for the submodels of a path model fitted by 'sempls'
rSquared <- function(object, ...){
UseMethod("rSquared")
}
rSquared.sempls <- function(object, na.rm=FALSE, ...){
#Y_hat <- object$factor_scores %*% object$path_coefficients
Y_hat <- predict(object, what="LVs", scale="scale... |
#' Make a plot of all tracks
#'
#' @param input either a data frame of TrackMate data or list of TrackMate data frame and calibration data frame
#' @param summary boolean to specify if plot is of one dataset or several related datasets
#' @param xstr string to label x-axis
#' @param ystr string to label y-axis
#' @para... | /R/tm_plots.R | permissive | quantixed/TrackMateR | R | false | false | 21,039 | r | #' Make a plot of all tracks
#'
#' @param input either a data frame of TrackMate data or list of TrackMate data frame and calibration data frame
#' @param summary boolean to specify if plot is of one dataset or several related datasets
#' @param xstr string to label x-axis
#' @param ystr string to label y-axis
#' @para... |
testlist <- list(scale = 0, shape = 2.90442179073689e-315)
result <- do.call(bama:::rand_igamma,testlist)
str(result) | /bama/inst/testfiles/rand_igamma/AFL_rand_igamma/rand_igamma_valgrind_files/1615926158-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 117 | r | testlist <- list(scale = 0, shape = 2.90442179073689e-315)
result <- do.call(bama:::rand_igamma,testlist)
str(result) |
# Yige Wu @ WashU 2018 Apr
## check regulated pairs with mutational impact from kinases
# source ------------------------------------------------------------------
source('/Users/yigewu/Box Sync/cptac2p_analysis/phospho_network/phospho_network_plotting.R')
source('/Users/yigewu/Box Sync/cptac2p_analysis/phospho_networ... | /phospho_network/genoalt/figures/check_regression_genoalt_overlap.R | no_license | ding-lab/phospho-signaling | R | false | false | 16,413 | r | # Yige Wu @ WashU 2018 Apr
## check regulated pairs with mutational impact from kinases
# source ------------------------------------------------------------------
source('/Users/yigewu/Box Sync/cptac2p_analysis/phospho_network/phospho_network_plotting.R')
source('/Users/yigewu/Box Sync/cptac2p_analysis/phospho_networ... |
#Loading the data file
housePower <- read.table("household_power_consumption.txt",sep=";",header=TRUE,na.strings="?")
#Getting the data for the dates of interest
houseP <- subset(housePower,Date %in% c("1/2/2007","2/2/2007"))
#Freeing up memory
rm(housePower)
#Converting Date and Time to a new column as POSIXct... | /plot3.R | no_license | esazjue/ExData_Plotting1 | R | false | false | 1,400 | r | #Loading the data file
housePower <- read.table("household_power_consumption.txt",sep=";",header=TRUE,na.strings="?")
#Getting the data for the dates of interest
houseP <- subset(housePower,Date %in% c("1/2/2007","2/2/2007"))
#Freeing up memory
rm(housePower)
#Converting Date and Time to a new column as POSIXct... |
\name{plot.scores}
\alias{plot.scores}
%- 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{
plot.scores(results, ...)
}
%- maybe also 'usage' for other objects documented here.
... | /TODO/man/plot.scores.Rd | no_license | davclark/Reasoning | R | false | false | 1,657 | rd | \name{plot.scores}
\alias{plot.scores}
%- 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{
plot.scores(results, ...)
}
%- maybe also 'usage' for other objects documented here.
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sjTabFA.R
\name{sjt.fa}
\alias{sjt.fa}
\title{Summary of factor analysis as HTML table}
\usage{
sjt.fa(data, rotation = c("promax", "varimax"), method = c("ml", "minres",
"wls", "gls", "pa", "minchi", "minrank"), nmbr.fctr = NULL,
fctr.lo... | /man/sjt.fa.Rd | no_license | stefanfritsch/sjPlot | R | false | true | 5,884 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sjTabFA.R
\name{sjt.fa}
\alias{sjt.fa}
\title{Summary of factor analysis as HTML table}
\usage{
sjt.fa(data, rotation = c("promax", "varimax"), method = c("ml", "minres",
"wls", "gls", "pa", "minchi", "minrank"), nmbr.fctr = NULL,
fctr.lo... |
# Extract the firm's information from the Axesor webpage.
empresa<-function(http){
pg<-read_html(http)
nodes <- html_node(pg,css=".section-content")
tabla <- html_table(html_children(nodes))[[1]]
Nombre <- ifelse(length(which(tabla[,1]=="Nombre:"))==0,NA,tabla[which(tabla[,1]=="Nombre:"),2])
if(is.na... | /R/empresa.R | no_license | amvallone/DataSpa | R | false | false | 4,228 | r |
# Extract the firm's information from the Axesor webpage.
empresa<-function(http){
pg<-read_html(http)
nodes <- html_node(pg,css=".section-content")
tabla <- html_table(html_children(nodes))[[1]]
Nombre <- ifelse(length(which(tabla[,1]=="Nombre:"))==0,NA,tabla[which(tabla[,1]=="Nombre:"),2])
if(is.na... |
#' Extract station-to-station distance matrix
#'
#' @param bikedb A string containing the path to the SQLite3 database.
#' If no directory specified, it is presumed to be in \code{tempdir()}.
#' @param city City for which tripmat is to be aggregated
#' @param expand Distances are calculated by routing through the OpenS... | /R/distmat.R | no_license | ssh352/bikedata | R | false | false | 5,603 | r | #' Extract station-to-station distance matrix
#'
#' @param bikedb A string containing the path to the SQLite3 database.
#' If no directory specified, it is presumed to be in \code{tempdir()}.
#' @param city City for which tripmat is to be aggregated
#' @param expand Distances are calculated by routing through the OpenS... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = 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), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.969708095490... | /meteor/inst/testfiles/ET0_PenmanMonteith/AFL_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1615839852-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 835 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = 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), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.969708095490... |
print.mMRF <- function(output_list) {
print(list("adj" = output_list$adj, "wadj" = output_list$wadj))
}
| /R/print.mMRF.R | no_license | jmbh/mMRF | R | false | false | 108 | r |
print.mMRF <- function(output_list) {
print(list("adj" = output_list$adj, "wadj" = output_list$wadj))
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adv2-data.R
\docType{data}
\name{adv2}
\alias{adv2}
\title{Dominance sequence from Albers and de Vries (2001)}
\format{
Fictional example of an interaction sequence, with 33 interactions between 7 individuals.
}
\usage{
data(adv2)
}
\descript... | /man/adv2.Rd | no_license | gobbios/EloRating | R | false | true | 556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adv2-data.R
\docType{data}
\name{adv2}
\alias{adv2}
\title{Dominance sequence from Albers and de Vries (2001)}
\format{
Fictional example of an interaction sequence, with 33 interactions between 7 individuals.
}
\usage{
data(adv2)
}
\descript... |
#' get table summarizing the posterior distributions for the model parameters
#'
#' @param runObject an object returned by runJAGSmodel.
#' @return a table summarizing the model parameter posterior distributions.
#' @examples
#' x <- getPosteriorSummary(runObject)
#' @export
getPosteriorSummary <- function(runObject){
... | /R/getPosteriorSummary.R | no_license | MartinLiermann/coastalCohoSS | R | false | false | 361 | r | #' get table summarizing the posterior distributions for the model parameters
#'
#' @param runObject an object returned by runJAGSmodel.
#' @return a table summarizing the model parameter posterior distributions.
#' @examples
#' x <- getPosteriorSummary(runObject)
#' @export
getPosteriorSummary <- function(runObject){
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_aggregates.R
\name{get_aggregates}
\alias{get_aggregates}
\title{Get all aggregates}
\usage{
get_aggregates(
sort = c("id", "-id", "name", "-name"),
lang = c("pl", "en"),
...
)
}
\arguments{
\item{sort}{A type of sortin... | /man/get_aggregates.Rd | no_license | statisticspoland/R_Package_to_API_BDL | R | false | true | 949 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_aggregates.R
\name{get_aggregates}
\alias{get_aggregates}
\title{Get all aggregates}
\usage{
get_aggregates(
sort = c("id", "-id", "name", "-name"),
lang = c("pl", "en"),
...
)
}
\arguments{
\item{sort}{A type of sortin... |
library(data.table)
library(ggplot2)
library(sf)
library(mapview)
colset_4 <- c("#D35C37", "#BF9A77", "#D6C6B9", "#97B8C2")
stations_info <- readRDS('./data/stations_info_final.rds')
runoff_info <- readRDS('./data/runoff_values_edited.rds')
#getting the stations
five_stations <- stations_info[ID %in% c(6742900, 6340... | /code/03_representing_stations.R | no_license | veravavan/eda_rivers_project | R | false | false | 3,408 | r | library(data.table)
library(ggplot2)
library(sf)
library(mapview)
colset_4 <- c("#D35C37", "#BF9A77", "#D6C6B9", "#97B8C2")
stations_info <- readRDS('./data/stations_info_final.rds')
runoff_info <- readRDS('./data/runoff_values_edited.rds')
#getting the stations
five_stations <- stations_info[ID %in% c(6742900, 6340... |
# driving time to company
library(RCurl)
library(RJSONIO)
library(XML)
library(jsonlite)
library(zipcode)
library(dplyr)
install.packages('tigris')
library(tigris)
library(sp)
# test
get_dur <- function(orig, dest) {
key <- "AIzaSyCBM982RgKbEl0tzBy-EokBap1X9D5AgJE"
format <- "xml"
api <- "https://... | /Driving_Map.R | no_license | yuqinouou/ggmap | R | false | false | 3,068 | r | # driving time to company
library(RCurl)
library(RJSONIO)
library(XML)
library(jsonlite)
library(zipcode)
library(dplyr)
install.packages('tigris')
library(tigris)
library(sp)
# test
get_dur <- function(orig, dest) {
key <- "AIzaSyCBM982RgKbEl0tzBy-EokBap1X9D5AgJE"
format <- "xml"
api <- "https://... |
PhenoGu <-
function(
##title<<
## Method 'Deriv' to calculate phenology metrics
##description<<
## This function implements the derivative method for phenology. This is rather an internal function; please use the function \code{\link{Phenology}} to apply this method.
x,
fit, ... | /R/PhenoGu.R | no_license | cran/phenopix | R | false | false | 5,572 | r | PhenoGu <-
function(
##title<<
## Method 'Deriv' to calculate phenology metrics
##description<<
## This function implements the derivative method for phenology. This is rather an internal function; please use the function \code{\link{Phenology}} to apply this method.
x,
fit, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/windows.R
\name{windowsService}
\alias{windowsService}
\title{Create windowService to fix different Windows problems}
\usage{
windowsService()
}
\value{
}
\description{
Create windowService to fix different Windows problems
}
\examples{
ws <... | /man/windowsService.Rd | permissive | tpemartin/econDS | R | false | true | 374 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/windows.R
\name{windowsService}
\alias{windowsService}
\title{Create windowService to fix different Windows problems}
\usage{
windowsService()
}
\value{
}
\description{
Create windowService to fix different Windows problems
}
\examples{
ws <... |
require(testthat)
require(MSstatsQC)
test_that("camelCaseSplit splits the camel Case correctly",{
expect_equal(camelCaseSplit("HelloWorld"),"Hello world")
}
)
test_that("punc_remove removes all punctuations from a string",{
expect_equal(punc_remove("Best_RT"),"Best RT")
}
)
test_that("clearString changes all upp... | /tests/testthat/test-data-process.R | no_license | eralpdogu/MSstatsQC | R | false | false | 895 | r | require(testthat)
require(MSstatsQC)
test_that("camelCaseSplit splits the camel Case correctly",{
expect_equal(camelCaseSplit("HelloWorld"),"Hello world")
}
)
test_that("punc_remove removes all punctuations from a string",{
expect_equal(punc_remove("Best_RT"),"Best RT")
}
)
test_that("clearString changes all upp... |
## ---------------------------------------------------------------------------------
## Exploratory Data Analysis
## Week 4 Project
## Cara Hubbell
## January 2016
## ---------------------------------------------------------------------------------
##
## This script creates Plot1. Note that you must have the data files... | /plot1.R | no_license | carahubbell/ExploratoryDataAnalysisFinalProject | R | false | false | 1,241 | r | ## ---------------------------------------------------------------------------------
## Exploratory Data Analysis
## Week 4 Project
## Cara Hubbell
## January 2016
## ---------------------------------------------------------------------------------
##
## This script creates Plot1. Note that you must have the data files... |
source("ngdualforward.R")
pcountOpen_ngdual <- function(lambdaformula, gammaformula, omegaformula, pformula,
data, mixture=c("P", "NB", "ZIP"), K, dynamics=c("constant", "autoreg",
"notrend", "trend", "ricker", "gompertz"),
fix=c("none", "gamma", "omega"),
starts, method="BFGS", se=TRUE, immigration=FA... | /archive/ngdual/R/pcountOpen_ngdual.R | no_license | kwinner/latentcountmodels | R | false | false | 10,697 | r | source("ngdualforward.R")
pcountOpen_ngdual <- function(lambdaformula, gammaformula, omegaformula, pformula,
data, mixture=c("P", "NB", "ZIP"), K, dynamics=c("constant", "autoreg",
"notrend", "trend", "ricker", "gompertz"),
fix=c("none", "gamma", "omega"),
starts, method="BFGS", se=TRUE, immigration=FA... |
\name{as.mixstock.data}
\alias{as.mixstock.data}
\alias{mixstock.data}
\alias{plot.mixstock.data}
\alias{print.mixstock.data}
\title{class for marker data from sources and mixed stocks}
\description{
This class provides a standard structure for information
on markers (e.g. mitochondrial DNA samples) from a variety ... | /man/as.mixstock.data.Rd | no_license | bbolker/mixstock | R | false | false | 2,815 | rd | \name{as.mixstock.data}
\alias{as.mixstock.data}
\alias{mixstock.data}
\alias{plot.mixstock.data}
\alias{print.mixstock.data}
\title{class for marker data from sources and mixed stocks}
\description{
This class provides a standard structure for information
on markers (e.g. mitochondrial DNA samples) from a variety ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/top100commonWords.R
\docType{data}
\name{top100commonWords}
\alias{top100commonWords}
\title{The vector of 100 most common words in English.}
\format{
a character vector with 100 elements.
}
\usage{
data(top100commonWords)
}
\description{
The... | /man/top100commonWords.Rd | no_license | BetaAndBit/BetaBitRgame | R | false | true | 485 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/top100commonWords.R
\docType{data}
\name{top100commonWords}
\alias{top100commonWords}
\title{The vector of 100 most common words in English.}
\format{
a character vector with 100 elements.
}
\usage{
data(top100commonWords)
}
\description{
The... |
binom<-function(n,x,p0){
estimacion<-x/n
estad<-2*(x*log(estimacion/p0)+(n-x)*log((1-estimacion)/(1-p0)))
p.val<-pchisq(estad,1,lower.tail=F)
list(estimacion=estimacion,estadistica=estad,p.val=p.val)
}
binom(30,7,0.5) | /Z Old Tex Files/program R/Hipotesis/binomial una muestra.r | no_license | cualquiercosa327/2ed-team | R | false | false | 227 | r |
binom<-function(n,x,p0){
estimacion<-x/n
estad<-2*(x*log(estimacion/p0)+(n-x)*log((1-estimacion)/(1-p0)))
p.val<-pchisq(estad,1,lower.tail=F)
list(estimacion=estimacion,estadistica=estad,p.val=p.val)
}
binom(30,7,0.5) |
## t tests
## One sample t-test ##
# E.g A farmer has 10 hedgerows
# There has been a mean of 2 birds recorded per hedge.
# The landowner sows wild bird cover to encourage bird populations
# The number of birds are resurveyed
# Is the new count of birds per hedge different?
birds <- c(4, 2, 5, 4, 6, 3, 1, 4, 3, 5)
... | /Session 4 ANOVAs, t-tests, correlations and regressions/Session4.R | no_license | arcaravaggi/RClinicQUB | R | false | false | 1,360 | r | ## t tests
## One sample t-test ##
# E.g A farmer has 10 hedgerows
# There has been a mean of 2 birds recorded per hedge.
# The landowner sows wild bird cover to encourage bird populations
# The number of birds are resurveyed
# Is the new count of birds per hedge different?
birds <- c(4, 2, 5, 4, 6, 3, 1, 4, 3, 5)
... |
### likes of post_root get all the likes of nested replies.
## get_likes, get_reply_names, get_replies_and_type are the functions for get_one_page
get_likes <- function(posts, post_action, post_count) {
if (post_action & post_count) {
likes <- rvest::html_node(posts, ".post__actions") %>%
rvest::html_node(... | /R/hidden_functions.R | no_license | cran/healthforum | R | false | false | 15,396 | r |
### likes of post_root get all the likes of nested replies.
## get_likes, get_reply_names, get_replies_and_type are the functions for get_one_page
get_likes <- function(posts, post_action, post_count) {
if (post_action & post_count) {
likes <- rvest::html_node(posts, ".post__actions") %>%
rvest::html_node(... |
#!/usr/local/bin/Rscript
setwd("/Users/ehnertpp/newspaper-scraping-germany")
source("./R-Code/functions.R")
agentur <- "jungefreiheit"
input <- paste0("./data/newspaper_articles_germany/", agentur, "/indices" )
output <- paste0("./data/newspaper_articles_germany/", agentur, "/articles" )
# source functions and list of... | /R-Code/scraper_jungefreiheit.R | no_license | gesiscss/media-monitoring-mass-media-scraper | R | false | false | 577 | r | #!/usr/local/bin/Rscript
setwd("/Users/ehnertpp/newspaper-scraping-germany")
source("./R-Code/functions.R")
agentur <- "jungefreiheit"
input <- paste0("./data/newspaper_articles_germany/", agentur, "/indices" )
output <- paste0("./data/newspaper_articles_germany/", agentur, "/articles" )
# source functions and list of... |
\name{alldist}
\alias{alldist}
\alias{allvc}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ NPML estimation or Gaussian quadrature for overdispersed GLM's and variance component models}
\description{ Fits a random effect model using Gaussian quadrature (Hinde, 1982) or nonparametric maximum lik... | /man/alldist.Rd | no_license | cran/npmlreg | R | false | false | 18,362 | rd | \name{alldist}
\alias{alldist}
\alias{allvc}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ NPML estimation or Gaussian quadrature for overdispersed GLM's and variance component models}
\description{ Fits a random effect model using Gaussian quadrature (Hinde, 1982) or nonparametric maximum lik... |
##################################################################################
## CACHING THE INVERSE OF A MATRIX ##
##################################################################################
## Functions to cache the inverse of a matrix instead of computing it... | /cachematrix.R | no_license | DMini/ProgrammingAssignment2 | R | false | false | 1,930 | r |
##################################################################################
## CACHING THE INVERSE OF A MATRIX ##
##################################################################################
## Functions to cache the inverse of a matrix instead of computing it... |
library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/stomach.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.65,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/stomach/stomach_072.txt',append... | /Model/EN/AvgRank/stomach/stomach_072.R | no_license | leon1003/QSMART | R | false | false | 356 | r | library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/stomach.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.65,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/stomach/stomach_072.txt',append... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{activity.df}
\alias{activity.df}
\title{Energy requirements for different activities}
\format{
A data.frame with 24 rows and 3 columns:
\describe{
\item{subject}{a subject ID.}
\item{activity}{running, walking, rid... | /man/activity.df.Rd | no_license | jmcurran/jaggR | R | false | true | 1,049 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{activity.df}
\alias{activity.df}
\title{Energy requirements for different activities}
\format{
A data.frame with 24 rows and 3 columns:
\describe{
\item{subject}{a subject ID.}
\item{activity}{running, walking, rid... |
n <- 10^5
x <- runif(n, -1, 1)
y <- runif(n, -1, 1)
in_circle <- sum(x^2+y^2 <1)
pi_approx = 4 * (in_circle / n)
# Sa se reprezinte grafic punctele care pica pe cerc, respectiv in afara cercului, dar in patrat
arch <- function(x) {
sqrt(1 - x^2)
}
plot(0, 0)
xy = data.frame(x, y)
points(xy[which(xy$x ^2 +xy$y ... | /Anul III/Sem 2/Tehnici de Simulare/Laborator/lab_3_05_03_2021.R | no_license | andreim9816/Facultate | R | false | false | 616 | r | n <- 10^5
x <- runif(n, -1, 1)
y <- runif(n, -1, 1)
in_circle <- sum(x^2+y^2 <1)
pi_approx = 4 * (in_circle / n)
# Sa se reprezinte grafic punctele care pica pe cerc, respectiv in afara cercului, dar in patrat
arch <- function(x) {
sqrt(1 - x^2)
}
plot(0, 0)
xy = data.frame(x, y)
points(xy[which(xy$x ^2 +xy$y ... |
library(dplyr)
library(tidyr)
setwd("R:\\AMVALCU\\cleaningdata\\UCI HAR Dataset")
#1.a. read features, activities names from the main files
activity <-read.table("activity_labels.txt")
names(activity)<-c("ID_Activity","Activity")
features <-read.table("features.txt", header=FALSE)
names(features)<-c("ID_fe... | /run_analysis.R | no_license | Adriana2015/cleaningdata | R | false | false | 2,291 | r |
library(dplyr)
library(tidyr)
setwd("R:\\AMVALCU\\cleaningdata\\UCI HAR Dataset")
#1.a. read features, activities names from the main files
activity <-read.table("activity_labels.txt")
names(activity)<-c("ID_Activity","Activity")
features <-read.table("features.txt", header=FALSE)
names(features)<-c("ID_fe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/processWeather.R
\name{Replace_Blank_w_Okay_Function}
\alias{Replace_Blank_w_Okay_Function}
\title{Replace blank values (quality is okay) with "Okay"}
\usage{
Replace_Blank_w_Okay_Function(x)
}
\arguments{
\item{x}{Dataset}
}
\description{
Re... | /man/Replace_Blank_w_Okay_Function.Rd | no_license | ksauby/dataproc | R | false | true | 371 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/processWeather.R
\name{Replace_Blank_w_Okay_Function}
\alias{Replace_Blank_w_Okay_Function}
\title{Replace blank values (quality is okay) with "Okay"}
\usage{
Replace_Blank_w_Okay_Function(x)
}
\arguments{
\item{x}{Dataset}
}
\description{
Re... |
library(RBesT)
### Name: forest_plot
### Title: Forest Plot
### Aliases: forest_plot
### ** Examples
# we consider the example AS MAP analysis
example(AS)
# default forest plot for a gMAP analysis
forest_plot(map_AS)
# standard forest plot (only stratified estimate and Mean)
forest_plot(map_AS, est=c("Mean"), mod... | /data/genthat_extracted_code/RBesT/examples/forest_plot.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 892 | r | library(RBesT)
### Name: forest_plot
### Title: Forest Plot
### Aliases: forest_plot
### ** Examples
# we consider the example AS MAP analysis
example(AS)
# default forest plot for a gMAP analysis
forest_plot(map_AS)
# standard forest plot (only stratified estimate and Mean)
forest_plot(map_AS, est=c("Mean"), mod... |
## File Name: draw.pv.ctt.R
## File Version: 3.236
draw.pv.ctt <- function( y, dat.scale=NULL, x=NULL, samp.pars=TRUE, alpha=NULL,
sig.e=NULL, var.e=NULL, true.var=NULL )
{
# calculate Cronbach's Alpha if alpha==NULL
if ( ! is.null(var.e) ){
sig.e <- sqrt( var.e )
}
... | /R/draw.pv.ctt.R | no_license | cran/miceadds | R | false | false | 3,305 | r | ## File Name: draw.pv.ctt.R
## File Version: 3.236
draw.pv.ctt <- function( y, dat.scale=NULL, x=NULL, samp.pars=TRUE, alpha=NULL,
sig.e=NULL, var.e=NULL, true.var=NULL )
{
# calculate Cronbach's Alpha if alpha==NULL
if ( ! is.null(var.e) ){
sig.e <- sqrt( var.e )
}
... |
setwd("/gscratch/csde/kpeebles")
# Load list of particles
load(file = paste0(getwd(), "/particles.RDATA"))
# Source functions
source(paste0(getwd(), "/set-up.R"))
# Run set of simulations
lapply(X = particles[i_start:i_end],
FUN = function(x) { run_sim(lambda = as.numeric(x[, "lambda"]),
... | /abc/hyak/template-script.R | no_license | laura-matrajt/aspire | R | false | false | 1,063 | r |
setwd("/gscratch/csde/kpeebles")
# Load list of particles
load(file = paste0(getwd(), "/particles.RDATA"))
# Source functions
source(paste0(getwd(), "/set-up.R"))
# Run set of simulations
lapply(X = particles[i_start:i_end],
FUN = function(x) { run_sim(lambda = as.numeric(x[, "lambda"]),
... |
\name{FIRSTSPEAKER}
\alias{FIRSTSPEAKER}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Create founding agent
}
\description{
Creates first agent of a lineage which only consists of a conventional symbolic lexicon (and the infrastructure to count word uses).
}
\usage{
FIRSTSPEAKER()
}
%- maybe ... | /man/FIRSTSPEAKER.Rd | no_license | cran/MoLE | R | false | false | 1,547 | rd | \name{FIRSTSPEAKER}
\alias{FIRSTSPEAKER}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Create founding agent
}
\description{
Creates first agent of a lineage which only consists of a conventional symbolic lexicon (and the infrastructure to count word uses).
}
\usage{
FIRSTSPEAKER()
}
%- maybe ... |
source("load_utilities.R")
#RE1###############################################
# Light -> configuration: re1, output: re----
l.cre1.re<- getErrorGraphByExpAndPpi(light.results.object.re1config,ylimits = c(0,500))
print(l.cre1.re)
ggsave("light_cre1_re.eps",plot=l.cre1.re,path=paths.studies.re1config.incremental,device... | /studies/incremental_study.R | no_license | DrRoad/IoT_Smart_Agent | R | false | false | 4,304 | r | source("load_utilities.R")
#RE1###############################################
# Light -> configuration: re1, output: re----
l.cre1.re<- getErrorGraphByExpAndPpi(light.results.object.re1config,ylimits = c(0,500))
print(l.cre1.re)
ggsave("light_cre1_re.eps",plot=l.cre1.re,path=paths.studies.re1config.incremental,device... |
# Access modes when opening a FITS file:
#
# #define READONLY 0
# #define READWRITE 1
#
# BITPIX data type code values for FITS images:
#
# #define BYTE_IMG 8 /* 8-bit unsigned integers */
# #define SHORT_IMG 16 /* 16-bit signed integers */
# #define LONG_IMG 32 /* 32-bit signe... | /R/Rfits_header.R | no_license | asgr/Rfits | R | false | false | 30,554 | r | # Access modes when opening a FITS file:
#
# #define READONLY 0
# #define READWRITE 1
#
# BITPIX data type code values for FITS images:
#
# #define BYTE_IMG 8 /* 8-bit unsigned integers */
# #define SHORT_IMG 16 /* 16-bit signed integers */
# #define LONG_IMG 32 /* 32-bit signe... |
# @author Scott Dobbins
# @version 0.9.8.3
# @date 2017-08-24 22:30
debug_message("downsampling")
downsampled <- FALSE
if (nrow(WW1_unique) > downsample_size) {
downsampled <- TRUE
WW1_original <- copy(WW1_unique)
WW1_unique <- sample_n(WW1_unique, downsample_size, replace = FALSE)
}
if (nrow(WW2_unique) > dow... | /Project1-ExploreVis/ScottDobbins/downsampler.R | no_license | liyuhaojohn/bootcamp009_project | R | false | false | 845 | r | # @author Scott Dobbins
# @version 0.9.8.3
# @date 2017-08-24 22:30
debug_message("downsampling")
downsampled <- FALSE
if (nrow(WW1_unique) > downsample_size) {
downsampled <- TRUE
WW1_original <- copy(WW1_unique)
WW1_unique <- sample_n(WW1_unique, downsample_size, replace = FALSE)
}
if (nrow(WW2_unique) > dow... |
#' @title Get Details of an '.xml' within 'DataMashup'
#' @description The details of an '.xml' within 'DataMashup' are retrieved.
#' @author Don Diproto
#' @param input_file_pbix Path of the input '.pbix'.
#' @return A list containing [[1]] the length of each '.xml', [[2]] the first
#' 400 bytes of each '.xml' co... | /R/f_get_dama_xml_details.R | no_license | cran/pbixr | R | false | false | 3,326 | r | #' @title Get Details of an '.xml' within 'DataMashup'
#' @description The details of an '.xml' within 'DataMashup' are retrieved.
#' @author Don Diproto
#' @param input_file_pbix Path of the input '.pbix'.
#' @return A list containing [[1]] the length of each '.xml', [[2]] the first
#' 400 bytes of each '.xml' co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/9-control.R
\name{itrCtrlPanel}
\alias{itrCtrlPanel}
\title{Manage \code{cvKfold} or \code{workflow} Arguments}
\usage{
itrCtrlPanel(ITR, ...)
}
\arguments{
\item{ITR}{A character string, the \code{itr} to call.}
\item{...}{Additi... | /man/itrCtrlPanel.Rd | no_license | SkadiEye/ITRlearn | R | false | true | 604 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/9-control.R
\name{itrCtrlPanel}
\alias{itrCtrlPanel}
\title{Manage \code{cvKfold} or \code{workflow} Arguments}
\usage{
itrCtrlPanel(ITR, ...)
}
\arguments{
\item{ITR}{A character string, the \code{itr} to call.}
\item{...}{Additi... |
suppressPackageStartupMessages(library("optparse"))
option_list <- list(
make_option(c("-p", "--pred_dir"), type="character", default="~/master_thesis_code/pvcnn/data/terrain/h5_nosplit/",
help="Directory where predictions are located in subfolders [default %default]",
dest = "pred_dir"... | /pred_plots.R | no_license | liuxinren456852/master_thesis_code | R | false | false | 5,243 | r | suppressPackageStartupMessages(library("optparse"))
option_list <- list(
make_option(c("-p", "--pred_dir"), type="character", default="~/master_thesis_code/pvcnn/data/terrain/h5_nosplit/",
help="Directory where predictions are located in subfolders [default %default]",
dest = "pred_dir"... |
# Created by Easton White
# Last edited 24-March-2020
# Johns Hopkins CSSE group https://github.com/CSSEGISandData/COVID-19 recently changed how they formatted data starting on March 24th. This code manually pulls data from daily updates to compile raw data. The .Rmd file includes code to subset this for only US sta... | /CompileTimeSeries.R | permissive | eastonwhite/COVID19_US_States | R | false | false | 1,343 | r |
# Created by Easton White
# Last edited 24-March-2020
# Johns Hopkins CSSE group https://github.com/CSSEGISandData/COVID-19 recently changed how they formatted data starting on March 24th. This code manually pulls data from daily updates to compile raw data. The .Rmd file includes code to subset this for only US sta... |
# Set Global Echo = On
# Load data
if (!file.exists("activity.csv") )
{
dlurl <- 'http://d396qusza40orc.cloudfront.net/repdata%2Fdata%2Factivity.zip'
download.file(dlurl,destfile='repdata%2Fdata%2Factivity.zip',mode='wb')
unzip('repdata%2Fdata%2Factivity.zip')
}
# Read data
data <- read.csv("acti... | /peer_project_!.R | no_license | elydina/-Reproducible-Research | R | false | false | 3,086 | r | # Set Global Echo = On
# Load data
if (!file.exists("activity.csv") )
{
dlurl <- 'http://d396qusza40orc.cloudfront.net/repdata%2Fdata%2Factivity.zip'
download.file(dlurl,destfile='repdata%2Fdata%2Factivity.zip',mode='wb')
unzip('repdata%2Fdata%2Factivity.zip')
}
# Read data
data <- read.csv("acti... |
data_conf <- fread('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv')
data_deaths <- fread('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_co... | /map_data.R | no_license | giannismpartsiokas/R_COVID-19 | R | false | false | 2,871 | r | data_conf <- fread('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv')
data_deaths <- fread('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_co... |
library(data.table)
#----download data file if not present-------------
if(!file.exists("household_power_consumption.txt")) {
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, destfile = "d.zip")
unzip("d.zip")
file.remove("d.zip")
}
#----read d... | /plot4.R | no_license | EkaterinaK/ExData_Plotting1 | R | false | false | 1,628 | r | library(data.table)
#----download data file if not present-------------
if(!file.exists("household_power_consumption.txt")) {
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, destfile = "d.zip")
unzip("d.zip")
file.remove("d.zip")
}
#----read d... |
#' Modify the link to highlight the genes in the pathways
#'
#' Currently, we only have wikipathway and kegg pathways that need to modify the link
#'
#' @keywords internal
linkModification <- function(enrichMethod, enrichPathwayLink, geneList, interestingGeneMap) {
if (grepl("www.kegg.jp", enrichPathwayLink, f... | /WebGestaltR/R/linkModification.R | no_license | akhikolla/InformationHouse | R | false | false | 2,046 | r | #' Modify the link to highlight the genes in the pathways
#'
#' Currently, we only have wikipathway and kegg pathways that need to modify the link
#'
#' @keywords internal
linkModification <- function(enrichMethod, enrichPathwayLink, geneList, interestingGeneMap) {
if (grepl("www.kegg.jp", enrichPathwayLink, f... |
#!/usr/bin/env Rscript
suppressPackageStartupMessages(library("argparse"))
parser <- ArgumentParser()
parser$add_argument("-v", "--verbose", action="store_true", default=TRUE,
help="Print extra output [default]")
parser$add_argument("-q", "--quietly", action="store_false",
des... | /correct_irt.R | no_license | alzel/proteomics_tools | R | false | false | 3,093 | r | #!/usr/bin/env Rscript
suppressPackageStartupMessages(library("argparse"))
parser <- ArgumentParser()
parser$add_argument("-v", "--verbose", action="store_true", default=TRUE,
help="Print extra output [default]")
parser$add_argument("-q", "--quietly", action="store_false",
des... |
library(dplyr)
library(lubridate)
library(ggplot2)
library(naniar)
library(imputeTS)
#-- Diagnosing tabular data ----
dataset_url <- 'http://bit.ly/titanic-dataset-csv'
tbl <- readr::read_csv(dataset_url)
tbl
# Plot of missing values in the entire dataset
vis_miss(tbl) +
theme(
plot.title = element_te... | /Chapter12/R/03-diagnose-missing-values-in-r.R | permissive | parth-github/Extending-Power-BI-with-Python-and-R | R | false | false | 1,388 | r |
library(dplyr)
library(lubridate)
library(ggplot2)
library(naniar)
library(imputeTS)
#-- Diagnosing tabular data ----
dataset_url <- 'http://bit.ly/titanic-dataset-csv'
tbl <- readr::read_csv(dataset_url)
tbl
# Plot of missing values in the entire dataset
vis_miss(tbl) +
theme(
plot.title = element_te... |
################################################################################
## Simulate power for AD phenotype score versus case-control association test ##
## *Simulation for determining Type I Error rate ###############################
#############################################################################... | /statistical_power_simulation_Type_I_Error.R | no_license | YannLeGuen/AD-age_score | R | false | false | 15,388 | r | ################################################################################
## Simulate power for AD phenotype score versus case-control association test ##
## *Simulation for determining Type I Error rate ###############################
#############################################################################... |
#' Get authentication
#'
#' Instructions here: https://survey.qualtrics.com/WRAPI/ControlPanel/docs.php#authentication_2.3
#'
#' @param creds_yaml The .yaml file that contains the user's credentials
#' @import yaml
#' @export
creds_from_file <- function(creds_yaml = "credentials.yaml") {
return(yaml.load_file(creds... | /R/auth.R | no_license | dcosme/qualtrics | R | false | false | 5,842 | r | #' Get authentication
#'
#' Instructions here: https://survey.qualtrics.com/WRAPI/ControlPanel/docs.php#authentication_2.3
#'
#' @param creds_yaml The .yaml file that contains the user's credentials
#' @import yaml
#' @export
creds_from_file <- function(creds_yaml = "credentials.yaml") {
return(yaml.load_file(creds... |
library(ggvis)
library(dplyr)
library(RSQLite)
library(dbplyr)
library(ggplot2)
library(tidyverse)
server = function(input, output) {
# Fetch our tutorial app from where it's published as a separate shiny app
output$tutorial <- renderUI({
tags$iframe(
src="https://ug-formal-models-2019.shiny... | /app/server.R | no_license | csaund/formal-models | R | false | false | 3,389 | r | library(ggvis)
library(dplyr)
library(RSQLite)
library(dbplyr)
library(ggplot2)
library(tidyverse)
server = function(input, output) {
# Fetch our tutorial app from where it's published as a separate shiny app
output$tutorial <- renderUI({
tags$iframe(
src="https://ug-formal-models-2019.shiny... |
# -------------------------------------------------------------------------------------------------------------------------
# read the temperature and precipitation data from the HadSM3 runs
# -------------------------------------------------------------------------------------------------------------------------
#load... | /emulator_20_icevolar/xaem_aism_jun.R | no_license | jvbreeda/CLISEMv1.0 | R | false | false | 11,163 | r | # -------------------------------------------------------------------------------------------------------------------------
# read the temperature and precipitation data from the HadSM3 runs
# -------------------------------------------------------------------------------------------------------------------------
#load... |
library(loo)
context("loo_model_weights")
# generate fake data
set.seed(123)
y<-rnorm(50,0,1)
sd_sim1<- abs(rnorm(500,1.5, 0.1))
sd_sim2<- abs(rnorm(500,1.2, 0.1))
sd_sim3<- abs(rnorm(500,1, 0.05))
log_lik1 <- log_lik2 <- log_lik3 <- matrix(NA, 500, 50)
for(s in 1:500) {
log_lik1[s,] <- dnorm(y,-1,sd_sim1[s], log=T... | /data/genthat_extracted_code/loo/tests/test_model_weighting.R | no_license | surayaaramli/typeRrh | R | false | false | 3,129 | r | library(loo)
context("loo_model_weights")
# generate fake data
set.seed(123)
y<-rnorm(50,0,1)
sd_sim1<- abs(rnorm(500,1.5, 0.1))
sd_sim2<- abs(rnorm(500,1.2, 0.1))
sd_sim3<- abs(rnorm(500,1, 0.05))
log_lik1 <- log_lik2 <- log_lik3 <- matrix(NA, 500, 50)
for(s in 1:500) {
log_lik1[s,] <- dnorm(y,-1,sd_sim1[s], log=T... |
# EDA
loan_train %>%
select(hi_int_prncp_pd, acc_now_delinq, acc_open_past_24mths, annual_inc,
avg_cur_bal, bc_util) %>%
cor() %>%
corrplot()
# based on the corrplot, hi_int_prncp_pd doesn't have high correlation with other variables.
loan_train %>%
select(hi_int_prncp_pd, delinq_2yrs, delinq_amnt,... | /EDA.R | no_license | lilyyan2023/STAT301-3Classification | R | false | false | 2,015 | r | # EDA
loan_train %>%
select(hi_int_prncp_pd, acc_now_delinq, acc_open_past_24mths, annual_inc,
avg_cur_bal, bc_util) %>%
cor() %>%
corrplot()
# based on the corrplot, hi_int_prncp_pd doesn't have high correlation with other variables.
loan_train %>%
select(hi_int_prncp_pd, delinq_2yrs, delinq_amnt,... |
cohort_to_length <- function(cohort,lower,upper,delta=0.5,delta.c=0.1,FUN=ddnorm1,
trunc=0.05) {
# Return a vector with length distribution of a 'cohort' (N,L,S)
# 'lower' and 'upper' are the (class mark) limits of integration
# 'delta' is the length of the class interval (as measured by fishery)
# '... | /R/cohort_to_length.R | no_license | PabloMBooster/fenix | R | false | false | 1,171 | r | cohort_to_length <- function(cohort,lower,upper,delta=0.5,delta.c=0.1,FUN=ddnorm1,
trunc=0.05) {
# Return a vector with length distribution of a 'cohort' (N,L,S)
# 'lower' and 'upper' are the (class mark) limits of integration
# 'delta' is the length of the class interval (as measured by fishery)
# '... |
#' module_aglu_LB124.LC_R_UnMgd_Yh_GLU
#'
#' Adjust land cover data for unmanaged land types (shrub, grass, unmgd pasture, unmgd forest) in L120.LC_bm2_R_LT_Yh_GLU to deduct
#' the extra cropland needs described in L122.LC_bm2_R_ExtraCropLand_Yh_GLU proportionally according to the relative share of each unmanaged
#' la... | /R/zchunk_LB124.LC_R_UnMgd_Yh_GLU.R | no_license | shaohuizhang/gcamdata | R | false | false | 12,303 | r | #' module_aglu_LB124.LC_R_UnMgd_Yh_GLU
#'
#' Adjust land cover data for unmanaged land types (shrub, grass, unmgd pasture, unmgd forest) in L120.LC_bm2_R_LT_Yh_GLU to deduct
#' the extra cropland needs described in L122.LC_bm2_R_ExtraCropLand_Yh_GLU proportionally according to the relative share of each unmanaged
#' la... |
source("loadData.R")
plot3 <- function(){
par(mfrow = c(1,1))
plot(df$datetime, df$Sub_metering_1, type="l", col="black", xlab = "", ylab="Energy sub metering")
lines(df$datetime, df$Sub_metering_2, col="red")
lines(df$datetime, df$Sub_metering_3, col="blue")
legend("topright",
legend=c("Sub_meteri... | /plot3.R | no_license | ytonmars/ExData_Plotting1 | R | false | false | 503 | r | source("loadData.R")
plot3 <- function(){
par(mfrow = c(1,1))
plot(df$datetime, df$Sub_metering_1, type="l", col="black", xlab = "", ylab="Energy sub metering")
lines(df$datetime, df$Sub_metering_2, col="red")
lines(df$datetime, df$Sub_metering_3, col="blue")
legend("topright",
legend=c("Sub_meteri... |
library("plyr")
library("stringr")
getMapping <- function(species, mapping){
file = paste0("reference/",species,"_cdna_96.fa")
ll = readLines(file)
ll = ll[grep("^>", ll)]
gsym = str_extract(ll, "gene_symbol:.+?\\s|gene_symbol:.+?$")
gsym = gsub("gene_symbol:|\\s", "", gsym)
gene = s... | /scripts/buildMapping.r | no_license | MaayanLab/alignmentbenchmark | R | false | false | 719 | r | library("plyr")
library("stringr")
getMapping <- function(species, mapping){
file = paste0("reference/",species,"_cdna_96.fa")
ll = readLines(file)
ll = ll[grep("^>", ll)]
gsym = str_extract(ll, "gene_symbol:.+?\\s|gene_symbol:.+?$")
gsym = gsub("gene_symbol:|\\s", "", gsym)
gene = s... |
library(RColorBrewer)
load("/Users/m/tmp/data/_AGG11_170901/AGG11_mapped/monocle_filtered_data_hpc/monocle_raw_norm.Robj")
monocle_genes <- read.csv("/Users/m/tmp/data/_AGG11_170901/AGG11_mapped/monocle_filtered_data_hpc/monocle_fData.csv", row.names = 1)
genes <- c("Dppa3","Nanog","Sox17","Thy1","Sall4")
genes <- c(... | /Monocle_S4_marker_on_cell_trajectory.R | no_license | liuyifang/CSC2018 | R | false | false | 2,046 | r | library(RColorBrewer)
load("/Users/m/tmp/data/_AGG11_170901/AGG11_mapped/monocle_filtered_data_hpc/monocle_raw_norm.Robj")
monocle_genes <- read.csv("/Users/m/tmp/data/_AGG11_170901/AGG11_mapped/monocle_filtered_data_hpc/monocle_fData.csv", row.names = 1)
genes <- c("Dppa3","Nanog","Sox17","Thy1","Sall4")
genes <- c(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/standardize.R
\name{standardize_indirect_z}
\alias{standardize_indirect_z}
\title{Re-weight population to group z's target}
\usage{
standardize_indirect_z(
focal_z,
X,
Z,
lambda = 0,
lowlim = 0,
uplim = 1,
scale_sample_size = F,... | /man/standardize_indirect_z.Rd | no_license | ebenmichael/balancer | R | false | true | 1,230 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/standardize.R
\name{standardize_indirect_z}
\alias{standardize_indirect_z}
\title{Re-weight population to group z's target}
\usage{
standardize_indirect_z(
focal_z,
X,
Z,
lambda = 0,
lowlim = 0,
uplim = 1,
scale_sample_size = F,... |
\name{Gompertz}
\alias{Gompertz}
\alias{dgompertz}
\alias{pgompertz}
\alias{qgompertz}
\alias{hgompertz}
\alias{Hgompertz}
\alias{rgompertz}
\title{The Gompertz distribution}
\description{
Density, distribution function, hazards, quantile function and random
generation for the Gompertz distribution with unrestricte... | /man/Gompertz.Rd | no_license | Rumenick/flexsurv-dev | R | false | false | 3,261 | rd | \name{Gompertz}
\alias{Gompertz}
\alias{dgompertz}
\alias{pgompertz}
\alias{qgompertz}
\alias{hgompertz}
\alias{Hgompertz}
\alias{rgompertz}
\title{The Gompertz distribution}
\description{
Density, distribution function, hazards, quantile function and random
generation for the Gompertz distribution with unrestricte... |
library(readr)
programadoras<-read_csv("programadorasnew.csv")
## nombres de las variables
names(programadoras)
## que contiene el dataset
head(programadoras)
## tamaño del dataset
dim(programadoras)
## cantidad de unidades académicas por anio
table(programadoras$anio)
-------------------------------------------------... | /graficos_ggplot2.R | no_license | data-datum/genero | R | false | false | 3,449 | r | library(readr)
programadoras<-read_csv("programadorasnew.csv")
## nombres de las variables
names(programadoras)
## que contiene el dataset
head(programadoras)
## tamaño del dataset
dim(programadoras)
## cantidad de unidades académicas por anio
table(programadoras$anio)
-------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isotopeAssignmentModel.R
\name{.assignmentMaker}
\alias{.assignmentMaker}
\title{Make probability-of-origin surfaces}
\usage{
.assignmentMaker(.ID, .isotopeValue, .SD_indv, precip_raster, precip_SD_raster)
}
\arguments{
\item{.ID}{ID value or... | /man/dot-assignmentMaker.Rd | no_license | cjcampbell/isocat | R | false | true | 811 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isotopeAssignmentModel.R
\name{.assignmentMaker}
\alias{.assignmentMaker}
\title{Make probability-of-origin surfaces}
\usage{
.assignmentMaker(.ID, .isotopeValue, .SD_indv, precip_raster, precip_SD_raster)
}
\arguments{
\item{.ID}{ID value or... |
/comparisonInitiall_UpdatedResultsIMPACTV2.R | no_license | caosmax/AFrica_LAC | R | false | false | 21,185 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/answer.R
\name{answer}
\alias{answer}
\title{Generate Random Vector of Answers (Yes/No)}
\usage{
answer(n, x = c("No", "Yes"), prob = NULL, name = "Answer")
}
\arguments{
\item{n}{The number elements to generate. This can be globally set wit... | /man/answer.Rd | no_license | cran/wakefield | R | false | true | 2,145 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/answer.R
\name{answer}
\alias{answer}
\title{Generate Random Vector of Answers (Yes/No)}
\usage{
answer(n, x = c("No", "Yes"), prob = NULL, name = "Answer")
}
\arguments{
\item{n}{The number elements to generate. This can be globally set wit... |
# rebate analysis
rm(list=ls())
#load the files and save as list
library(openxlsx)
setwd("~/Dropbox/Candidacy_exam/rebate_analysis/seearpfinalrebatereports")
myFilenames <- list.files(pattern=".*xlsx")
dataList<-list()
names<-list()
dimension<-data.frame(matrix(nrow = length(myFilenames),ncol = 2))
colnames(dimen... | /rebateanalysis.R | no_license | axs5498/Rebate-Analysis | R | false | false | 1,758 | r | # rebate analysis
rm(list=ls())
#load the files and save as list
library(openxlsx)
setwd("~/Dropbox/Candidacy_exam/rebate_analysis/seearpfinalrebatereports")
myFilenames <- list.files(pattern=".*xlsx")
dataList<-list()
names<-list()
dimension<-data.frame(matrix(nrow = length(myFilenames),ncol = 2))
colnames(dimen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bgm-user-collection.R
\name{bgm_user_collection}
\alias{bgm_user_collection}
\title{Get user's collection}
\usage{
bgm_user_collection(
username,
cat = c("watching", "all_watching"),
ids = NULL,
responseGroup = c("medium", "small"),
... | /man/bgm_user_collection.Rd | permissive | swsoyee/bangumir | R | false | true | 989 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bgm-user-collection.R
\name{bgm_user_collection}
\alias{bgm_user_collection}
\title{Get user's collection}
\usage{
bgm_user_collection(
username,
cat = c("watching", "all_watching"),
ids = NULL,
responseGroup = c("medium", "small"),
... |
source('scripts/partials/base.R')
source('scripts/partials/display-settings.R')
source('scripts/partials/measles.R')
suppressPackageStartupMessages(library(BayesSpec))
library(dplyr, warn.conflicts = FALSE)
library(futile.logger)
library(lubridate, warn.conflicts = FALSE)
parser$add_argument('--tvsm')
parser$add_argum... | /scripts/measles-tvs.R | no_license | mbertolacci/adaptspecx | R | false | false | 4,006 | r | source('scripts/partials/base.R')
source('scripts/partials/display-settings.R')
source('scripts/partials/measles.R')
suppressPackageStartupMessages(library(BayesSpec))
library(dplyr, warn.conflicts = FALSE)
library(futile.logger)
library(lubridate, warn.conflicts = FALSE)
parser$add_argument('--tvsm')
parser$add_argum... |
#######################################################
# Filename: affyNorm.R
# Created: David Lauenstein
# Change history:
# 26.04.2018 / David Lauenstein
#######################################################
# Retrieval and normalization of Affymetrix datasets (GEO) using robust multi-array average (RMA)
#########... | /microarray-processing/affyNorm.R | no_license | biosyshack/bioinformatic-tools | R | false | false | 1,320 | r | #######################################################
# Filename: affyNorm.R
# Created: David Lauenstein
# Change history:
# 26.04.2018 / David Lauenstein
#######################################################
# Retrieval and normalization of Affymetrix datasets (GEO) using robust multi-array average (RMA)
#########... |
rm(list=ls())
## Sacado de http://stackoverflow.com/questions/21937640/handling-java-lang-outofmemoryerror-when-writing-to-excel-from-r
jgc <- function()
{
.jcall("java/lang/System", method = "gc")
}
options(java.parameters = "-Xmx8000m")
jgc()
require(gdata)
require(jsonlite)
require(Hmisc)
require(Gmisc)
require... | /ScriptsR/GeneracionReportes/inscritosFormatoSUB.R | no_license | brolin/dataPotata | R | false | false | 43,468 | r | rm(list=ls())
## Sacado de http://stackoverflow.com/questions/21937640/handling-java-lang-outofmemoryerror-when-writing-to-excel-from-r
jgc <- function()
{
.jcall("java/lang/System", method = "gc")
}
options(java.parameters = "-Xmx8000m")
jgc()
require(gdata)
require(jsonlite)
require(Hmisc)
require(Gmisc)
require... |
/Project1-PropertyPricePrediction/Property Price Prediction.R | permissive | imkushwaha/Data_Science_Project_Portfolio | R | false | false | 17,188 | r | ||
#
require("RPostgreSQL")
require(forecast)
require("tsoutliers")
require(ggplot2)
require("tsintermittent")
library("doParallel")
library("foreach")
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, dbname = "Atotech",
host = "axialyzeproduction.c5drkcatbgmm.eu-central-1.rds.amazonaws.com", port = 8... | /R/bw revenue_volume/run revenue_global.R | no_license | Magi1414/aXialyzefcstcontrol | R | false | false | 2,494 | r | #
require("RPostgreSQL")
require(forecast)
require("tsoutliers")
require(ggplot2)
require("tsintermittent")
library("doParallel")
library("foreach")
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, dbname = "Atotech",
host = "axialyzeproduction.c5drkcatbgmm.eu-central-1.rds.amazonaws.com", port = 8... |
\name{mzFilter-methods}
\docType{methods}
\alias{mzFilter}
\alias{mzFilter-methods}
\alias{mzFilter,MSImagingExperiment-method}
\alias{peakFilter}
\alias{peakFilter-methods}
\alias{peakFilter,MSImageSet-method}
\alias{peakFilter,MSImagingExperiment-method}
\alias{peakFilter.freq}
\title{Filter the features of an im... | /man/mzFilter-methods.Rd | no_license | EmilySekera/Cardinal | R | false | false | 3,890 | rd | \name{mzFilter-methods}
\docType{methods}
\alias{mzFilter}
\alias{mzFilter-methods}
\alias{mzFilter,MSImagingExperiment-method}
\alias{peakFilter}
\alias{peakFilter-methods}
\alias{peakFilter,MSImageSet-method}
\alias{peakFilter,MSImagingExperiment-method}
\alias{peakFilter.freq}
\title{Filter the features of an im... |
# Plotting networks in R
# An example how to use R and rgexf package to create a .gexf file for network visualization in Gephi
############################################################################################
# Clear workspace
# rm(list = ls())
# Load libraries
library("igraph")
library("plyr")
# Read ... | /gexf_subRel_dynamic.R | no_license | toosuto-r/redditComments | R | false | false | 7,974 | r |
# Plotting networks in R
# An example how to use R and rgexf package to create a .gexf file for network visualization in Gephi
############################################################################################
# Clear workspace
# rm(list = ls())
# Load libraries
library("igraph")
library("plyr")
# Read ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.data.R
\name{read.data}
\alias{read.data}
\title{Read in Common Data File Extensions}
\usage{
read.data(file = file.choose(), header = TRUE, sep = ",", ...)
}
\arguments{
\item{file}{Character.
A path to the file to load.
Defa... | /man/read.data.Rd | no_license | cran/SemNetCleaner | R | false | true | 3,041 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.data.R
\name{read.data}
\alias{read.data}
\title{Read in Common Data File Extensions}
\usage{
read.data(file = file.choose(), header = TRUE, sep = ",", ...)
}
\arguments{
\item{file}{Character.
A path to the file to load.
Defa... |
library(drake)
library(raster)
library(tmap)
library(ggplot2)
library(magrittr, include.only = "%>%")
ncfiles <- list.files("data/madingley", "*.nc$", full.names = TRUE)
nc_id <- regmatches(ncfiles, regexpr("([[:digit:]])(?=.nc)", ncfiles,
perl = TRUE))
outfiles <- sprintf("data... | /drake-plan.R | no_license | ashiklom/biodiversity-proof-of-concept | R | false | false | 10,934 | r | library(drake)
library(raster)
library(tmap)
library(ggplot2)
library(magrittr, include.only = "%>%")
ncfiles <- list.files("data/madingley", "*.nc$", full.names = TRUE)
nc_id <- regmatches(ncfiles, regexpr("([[:digit:]])(?=.nc)", ncfiles,
perl = TRUE))
outfiles <- sprintf("data... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getParameter.r
\name{getParameter}
\alias{getParameter}
\title{Get Kit Parameters}
\usage{
getParameter(
kit = NULL,
what = NA,
method = NA,
show.messages = FALSE,
.kit.param = NULL,
debug = FALSE
)
}
\arguments{
\item{kit}{string... | /man/getParameter.Rd | no_license | OskarHansson/pcrsim | R | false | true | 1,568 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getParameter.r
\name{getParameter}
\alias{getParameter}
\title{Get Kit Parameters}
\usage{
getParameter(
kit = NULL,
what = NA,
method = NA,
show.messages = FALSE,
.kit.param = NULL,
debug = FALSE
)
}
\arguments{
\item{kit}{string... |
load.packages <- function()
{
library(lme4)
library(ez)
library(nortest)
library(plyr)
}
analyse <- function(dat, analysis)
# Given analysis id, do a specific analysis/order:
{
test <- F; if (test) analysis <- analyses[1,]
outliers <- function(dat, analysis, norm=T)
{
outliers.sub... | /V2/analyse.r | no_license | drtrev/sigeng | R | false | false | 12,588 | r | load.packages <- function()
{
library(lme4)
library(ez)
library(nortest)
library(plyr)
}
analyse <- function(dat, analysis)
# Given analysis id, do a specific analysis/order:
{
test <- F; if (test) analysis <- analyses[1,]
outliers <- function(dat, analysis, norm=T)
{
outliers.sub... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{hasConvergedParameter}
\alias{hasConvergedParameter}
\title{For internal use}
\usage{
hasConvergedParameter(new, old, epsilon)
}
\description{
For internal use
}
| /man/hasConvergedParameter.Rd | no_license | aciobanusebi/s2fa | R | false | true | 269 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{hasConvergedParameter}
\alias{hasConvergedParameter}
\title{For internal use}
\usage{
hasConvergedParameter(new, old, epsilon)
}
\description{
For internal use
}
|
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
test.ops<- function(conn) {
# should support:
# ^ or ** exponentiation
# x %% y modulus (x mod y) 5%%2 is 1
# x %/% y integer division 5%/%2 is 2
hex <- as.h2o(conn, iris)
hex ** 2
hex %% 3
hex %/% 3.... | /h2o-r/tests/testdir_jira/runit_pub_534_mod_integer_division_alternate_exp.R | permissive | mrgloom/h2o-3 | R | false | false | 376 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
test.ops<- function(conn) {
# should support:
# ^ or ** exponentiation
# x %% y modulus (x mod y) 5%%2 is 1
# x %/% y integer division 5%/%2 is 2
hex <- as.h2o(conn, iris)
hex ** 2
hex %% 3
hex %/% 3.... |
data <- read.csv("household_power_consumption.txt",
sep=";",
colClasses=c(rep("character",2),rep("numeric",7)),
na.strings="?")
# subset data for desired date
subData <- data[data$Date %in% c("1/2/2007","2/2/2007"), ]
png("plot1.png", width=480, height=480)
hist(subDa... | /plot1.R | no_license | hliuleo/ExData_Plotting1 | R | false | false | 448 | r | data <- read.csv("household_power_consumption.txt",
sep=";",
colClasses=c(rep("character",2),rep("numeric",7)),
na.strings="?")
# subset data for desired date
subData <- data[data$Date %in% c("1/2/2007","2/2/2007"), ]
png("plot1.png", width=480, height=480)
hist(subDa... |
set.seed(1)
data <- dyntoy::generate_dataset(
id = "specific_example/urd",
num_cells = 300,
num_features = 40,
model = "bifurcating"
)
params <- list(
max_iter = 3
)
| /example.R | no_license | cemmeydan/ti_urd | R | false | false | 176 | r | set.seed(1)
data <- dyntoy::generate_dataset(
id = "specific_example/urd",
num_cells = 300,
num_features = 40,
model = "bifurcating"
)
params <- list(
max_iter = 3
)
|
library("knitr")
library("rgl")
#knit("N-isopropyl-3-(3,5-d.Rmd")
#markdownToHTML('N-isopropyl-3-(3,5-d.md', 'N-isopropyl-3-(3,5-d.html', options=c("use_xhml"))
#system("pandoc -s N-isopropyl-3-(3,5-d.html -o N-isopropyl-3-(3,5-d.pdf")
knit2html('N-isopropyl-3-(3,5-d.Rmd')
| /FDA_Pesticide_Glossary/N-isopropyl-3-(3,5-d.R | permissive | andrewdefries/andrewdefries.github.io | R | false | false | 276 | r | library("knitr")
library("rgl")
#knit("N-isopropyl-3-(3,5-d.Rmd")
#markdownToHTML('N-isopropyl-3-(3,5-d.md', 'N-isopropyl-3-(3,5-d.html', options=c("use_xhml"))
#system("pandoc -s N-isopropyl-3-(3,5-d.html -o N-isopropyl-3-(3,5-d.pdf")
knit2html('N-isopropyl-3-(3,5-d.Rmd')
|
library(shiny)
library(waiter)
ui <- fluidPage(
title = "waitress",
br(),
use_waitress(),
fluidRow(
column(3, h2(code("waitress"), "themes")),
column(
3, actionButton("render", "Render plots", class = "btn-primary")
),
column(
3, actionButton("fullpage", "Render page", class = "btn-primary")
)
)... | /inst/waitress/app.R | permissive | gadenbuie/waiter | R | false | false | 1,656 | r |
library(shiny)
library(waiter)
ui <- fluidPage(
title = "waitress",
br(),
use_waitress(),
fluidRow(
column(3, h2(code("waitress"), "themes")),
column(
3, actionButton("render", "Render plots", class = "btn-primary")
),
column(
3, actionButton("fullpage", "Render page", class = "btn-primary")
)
)... |
process.Ed0.BioShade <- function(cops.raw, cops.dd, cops.black) {
mymessage(paste("Processing Ed0 for BioShade", " ..."), head = "+")
Ed0.raw <- cops.raw$Ed0
Ed0 <- Ed0.raw
waves <- as.numeric(cops.raw$Ed0.waves)
Time.raw <- (as.numeric(cops.dd$dates) + (as.numeric(cops.raw$Others$Millisecond)/1000)) - as.nume... | /R/process.Ed0.BioShade.R | no_license | belasi01/Cops | R | false | false | 3,824 | r | process.Ed0.BioShade <- function(cops.raw, cops.dd, cops.black) {
mymessage(paste("Processing Ed0 for BioShade", " ..."), head = "+")
Ed0.raw <- cops.raw$Ed0
Ed0 <- Ed0.raw
waves <- as.numeric(cops.raw$Ed0.waves)
Time.raw <- (as.numeric(cops.dd$dates) + (as.numeric(cops.raw$Others$Millisecond)/1000)) - as.nume... |
/uploads/answers.r | no_license | Sulymern59/CMM007_coursework--Project-Ethics-Approval | R | false | false | 2,457 | r |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.