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 |
|---|---|---|---|---|---|---|---|---|---|
require cgi/session
= class CGI::Session::PStore < Object
セッションの保存先として [[c:PStore]] を使用します。
== Class Methods
--- new(session, option = {}) -> CGI::Session::FileStore
自身を初期化します。
[[c:CGI::Session]] クラス内部で使用します。
ユーザが明示的に呼び出す必要はありません。
@param session [[c:CGI::Session]] のインスタンスを指定します。
@param option ハッシュを指定します。
以下の文字... | /refm/api/src/cgi/session/pstore.rd | no_license | foomin10/doctree | R | false | false | 1,408 | rd | require cgi/session
= class CGI::Session::PStore < Object
セッションの保存先として [[c:PStore]] を使用します。
== Class Methods
--- new(session, option = {}) -> CGI::Session::FileStore
自身を初期化します。
[[c:CGI::Session]] クラス内部で使用します。
ユーザが明示的に呼び出す必要はありません。
@param session [[c:CGI::Session]] のインスタンスを指定します。
@param option ハッシュを指定します。
以下の文字... |
##############################################################
#
# COLLEGE MAJORS AND EARNINGS
# This is the code used to generate data for FiveThirtyEight's
# story on earnings by college major.
# Analysis is based off the 2010-2012 American Community Survey
# microdata.
# Download data here: http://www.census.gov/ac... | /data-sources/data-master/college-majors/college-majors-rscript.R | permissive | vicb1/miscellaneous-notes | R | false | false | 9,386 | r | ##############################################################
#
# COLLEGE MAJORS AND EARNINGS
# This is the code used to generate data for FiveThirtyEight's
# story on earnings by college major.
# Analysis is based off the 2010-2012 American Community Survey
# microdata.
# Download data here: http://www.census.gov/ac... |
## The purpose of these functions is to cache the inverse of a square matrix. This will allow the inverse of the
## matrix to be 'saved' such that it can be called if it is required again rather than re-computing every time.
## For very large matricies this could save a significant amount of computation time.
## This... | /cachematrix.R | no_license | ifu97224/ProgrammingAssignment2 | R | false | false | 2,578 | r | ## The purpose of these functions is to cache the inverse of a square matrix. This will allow the inverse of the
## matrix to be 'saved' such that it can be called if it is required again rather than re-computing every time.
## For very large matricies this could save a significant amount of computation time.
## This... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/countPings.r
\name{countPings}
\alias{countPings}
\title{Count the number of VMS pings in a selection}
\usage{
countPings(formula, tacsat, grid = NULL, by = NULL)
}
\arguments{
\item{formula}{specify the elements you want to use as axis of th... | /vmstools/man/countPings.Rd | no_license | nielshintzen/vmstools | R | false | true | 1,690 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/countPings.r
\name{countPings}
\alias{countPings}
\title{Count the number of VMS pings in a selection}
\usage{
countPings(formula, tacsat, grid = NULL, by = NULL)
}
\arguments{
\item{formula}{specify the elements you want to use as axis of th... |
library(plyr)
library(doMC)
library(tidyverse)
library(synapser)
library(data.table)
library(magrittr)
library(pheatmap)
library(preprocessCore)
home_dir <- "/home/aelamb/repos/Tumor-Deconvolution-Challenge/"
tmp_dir <- "/home/aelamb/tmp/tumor_deconvolution/GSE62408/"
count_id <- "syn11915424"
genes_id <- ... | /analysis/GSE62408/create_plots.R | no_license | Sage-Bionetworks/Tumor-Deconvolution-Challenge | R | false | false | 4,504 | r | library(plyr)
library(doMC)
library(tidyverse)
library(synapser)
library(data.table)
library(magrittr)
library(pheatmap)
library(preprocessCore)
home_dir <- "/home/aelamb/repos/Tumor-Deconvolution-Challenge/"
tmp_dir <- "/home/aelamb/tmp/tumor_deconvolution/GSE62408/"
count_id <- "syn11915424"
genes_id <- ... |
# Program
# Download ITC Export Potential Map Data
# Install require packages
packages <- c("httr", "rvest", "tidyverse", "jsonlite", "foreach", "doParallel")
for (pkg in packages) {
if (!require(pkg, character.only = TRUE))
install.packages(pkg, character.only = TRUE)
}
### BEGIN the program ###
library(httr... | /script.R | no_license | chinhungtseng/itc_export_potential_map_crawler | R | false | false | 2,771 | r | # Program
# Download ITC Export Potential Map Data
# Install require packages
packages <- c("httr", "rvest", "tidyverse", "jsonlite", "foreach", "doParallel")
for (pkg in packages) {
if (!require(pkg, character.only = TRUE))
install.packages(pkg, character.only = TRUE)
}
### BEGIN the program ###
library(httr... |
context("canvasXpress customEvents")
test_that("Barplot customEvents", {
y <- read.table(system.file("extdata", "cX-generic-dat.txt.gz", package = "canvasXpress"), header = TRUE, sep = "\t", quote = "", row.names = 1, fill = TRUE, check.names = FALSE, stringsAsFactors = FALSE)
x <- read.table(system.file("ex... | /tests/testthat/test-other-custom-events.R | no_license | kar-agg-gen/canvasXpress | R | false | false | 1,690 | r | context("canvasXpress customEvents")
test_that("Barplot customEvents", {
y <- read.table(system.file("extdata", "cX-generic-dat.txt.gz", package = "canvasXpress"), header = TRUE, sep = "\t", quote = "", row.names = 1, fill = TRUE, check.names = FALSE, stringsAsFactors = FALSE)
x <- read.table(system.file("ex... |
describe("file_access", {
with_dir_tree(list("foo/bar" = "test"), {
it("errors on missing input", {
expect_error(file_access(NA), class = "invalid_argument")
})
it("checks for file existence", {
expect_equal(file_access("foo", "exists"), c(foo = TRUE))
})
it("checks for file read and ... | /tests/testthat/test-access.R | permissive | r-lib/fs | R | false | false | 3,152 | r |
describe("file_access", {
with_dir_tree(list("foo/bar" = "test"), {
it("errors on missing input", {
expect_error(file_access(NA), class = "invalid_argument")
})
it("checks for file existence", {
expect_equal(file_access("foo", "exists"), c(foo = TRUE))
})
it("checks for file read and ... |
# Clear all and libraries ####
# rm(list=ls())
# Clear plot
# dev.off(dev.list()["RStudioGD"])
# Clear console
# cat("\014")
library(quantmod)
library(lubridate)
library(RSNNS)
library(plotrix)
getSymbols(stock,src='google',to = '2017-06-11')
#plot(AZO) ####
# decomp <- decompose(AMZN.log, type = "multiplicative")... | /Price/something new . 3.0.R | no_license | rivasj5/Capstone | R | false | false | 4,340 | r | # Clear all and libraries ####
# rm(list=ls())
# Clear plot
# dev.off(dev.list()["RStudioGD"])
# Clear console
# cat("\014")
library(quantmod)
library(lubridate)
library(RSNNS)
library(plotrix)
getSymbols(stock,src='google',to = '2017-06-11')
#plot(AZO) ####
# decomp <- decompose(AMZN.log, type = "multiplicative")... |
## These functions enables 2 same matrix to be inversed only once
## by utilizing a cache.Whenever the same matrix inversion is repeated,
## the actual computation will only be done the first time. The repetition
## will only get the result straight from cache.
## This function is a list of cache operation
## set: st... | /cachematrix.R | no_license | johndhabifj/ProgrammingAssignment2 | R | false | false | 1,479 | r | ## These functions enables 2 same matrix to be inversed only once
## by utilizing a cache.Whenever the same matrix inversion is repeated,
## the actual computation will only be done the first time. The repetition
## will only get the result straight from cache.
## This function is a list of cache operation
## set: st... |
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(1.94274022929466e-318, 8.25906961352797e-317, NaN, NaN, NaN, -1.71824330156716e+306, 4.97342758566829e-316, NaN, -1.3029544663385e+304, NaN, NaN, NaN, NaN))
result <- do.call(meteor:::ET0_Makkink,testlist)
str(result) | /meteor/inst/testfiles/ET0_Makkink/libFuzzer_ET0_Makkink/ET0_Makkink_valgrind_files/1612737805-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 301 | r | testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(1.94274022929466e-318, 8.25906961352797e-317, NaN, NaN, NaN, -1.71824330156716e+306, 4.97342758566829e-316, NaN, -1.3029544663385e+304, NaN, NaN, NaN, NaN))
result <- do.call(meteor:::ET0_Makkink,testlist)
str(result) |
library(sorvi)
### Name: hetu
### Title: Extract information from Finnish personal identification numbers
### (hetu)
### Aliases: hetu
### ** Examples
hetu("111111-111C")
hetu("111111-111C")$date
hetu("111111-111C")$gender
# Same as previous, but using extract argument
hetu("111111-111C", extract="gender")
# Pro... | /data/genthat_extracted_code/sorvi/examples/hetu.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 512 | r | library(sorvi)
### Name: hetu
### Title: Extract information from Finnish personal identification numbers
### (hetu)
### Aliases: hetu
### ** Examples
hetu("111111-111C")
hetu("111111-111C")$date
hetu("111111-111C")$gender
# Same as previous, but using extract argument
hetu("111111-111C", extract="gender")
# Pro... |
#########################################
# #
# PRUEBAS REALIZADAS CON LOS ASES #
# #
#########################################
> CuantasNecesita(10)
He necesitado llamar a CuatroAses() 33 veces para extraer 4 ases en menos de 10 extracciones.
> CuantasNecesita(10)
He necesitado llamar a CuatroA... | /entrega_1/resultados/resultados_3.5.5.R | no_license | smnlpz/Estadistica-Computacional | R | false | false | 3,328 | r | #########################################
# #
# PRUEBAS REALIZADAS CON LOS ASES #
# #
#########################################
> CuantasNecesita(10)
He necesitado llamar a CuatroAses() 33 veces para extraer 4 ases en menos de 10 extracciones.
> CuantasNecesita(10)
He necesitado llamar a CuatroA... |
#' Summarize MCS results, compare with observed
#'
#' @param mcsres MC results, output from \code{\link{mcs_fun}}
#'
#' @export
mcs_sum_fun <- function(mcsres){
# get percentiles
persitsed <- mcsres %>%
group_by(contam) %>%
nest %>%
mutate(
percnt = purrr::map(data, function(x){
... | /R/mcs_sum_fun.R | permissive | SCCWRP/SQObioaccumulation | R | false | false | 880 | r | #' Summarize MCS results, compare with observed
#'
#' @param mcsres MC results, output from \code{\link{mcs_fun}}
#'
#' @export
mcs_sum_fun <- function(mcsres){
# get percentiles
persitsed <- mcsres %>%
group_by(contam) %>%
nest %>%
mutate(
percnt = purrr::map(data, function(x){
... |
dataFile <- file("./household_power_consumption.txt")
fileData <- grep("^[1,2]/2/2007", readLines(dataFile), value = TRUE) ##Retrieve data only from 1/2/2007 to 2/2/2007
plotData <- read.table(text = fileData, header = TRUE, sep = ";", na.strings = "?", col.names = c("Date", "Time", "Global_active_power", "Global_rea... | /plot1.R | no_license | maxed88/ExData_Plotting1 | R | false | false | 651 | r | dataFile <- file("./household_power_consumption.txt")
fileData <- grep("^[1,2]/2/2007", readLines(dataFile), value = TRUE) ##Retrieve data only from 1/2/2007 to 2/2/2007
plotData <- read.table(text = fileData, header = TRUE, sep = ";", na.strings = "?", col.names = c("Date", "Time", "Global_active_power", "Global_rea... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615767619-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,803 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
data <- read.table("household_power_consumption.txt",header = TRUE,sep = ";",na.strings="?")
d2d <- data[data$Date == "1/2/2007" | data$Date == "2/2/2007",] # Our two days extracted
d2d[2] <- as.POSIXct(strptime(paste(d2d$Date, d2d$Time), "%d/%m/%Y %H:%M:%S")) # Merge date and time in Time column in datetime format
d2... | /plot2.R | no_license | siggepigge/ExData_Plotting1 | R | false | false | 889 | r | data <- read.table("household_power_consumption.txt",header = TRUE,sep = ";",na.strings="?")
d2d <- data[data$Date == "1/2/2007" | data$Date == "2/2/2007",] # Our two days extracted
d2d[2] <- as.POSIXct(strptime(paste(d2d$Date, d2d$Time), "%d/%m/%Y %H:%M:%S")) # Merge date and time in Time column in datetime format
d2... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extrema_irr.r
\name{extrema.irr}
\alias{extrema.irr}
\title{extrema.irr}
\usage{
extrema.irr(data.set, gridded.data, neig = NULL, zcol = "z",
duplicate = "remove", nb.nn = 4, thresh.extrema = 1, verbose = FALSE)
}
\arguments{
\item{data.set... | /man/extrema.irr.Rd | no_license | pierreroudier/spemd | R | false | true | 884 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extrema_irr.r
\name{extrema.irr}
\alias{extrema.irr}
\title{extrema.irr}
\usage{
extrema.irr(data.set, gridded.data, neig = NULL, zcol = "z",
duplicate = "remove", nb.nn = 4, thresh.extrema = 1, verbose = FALSE)
}
\arguments{
\item{data.set... |
#reading data file
data_set <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
#subset data taken from 2 days 2/1/2007 & 2/2/2007
data_plot <- subset(data_set, Date %in% c("1... | /Plot1.R | no_license | CrystalKizer/ExploratoryDataAnalysis_1 | R | false | false | 723 | r |
#reading data file
data_set <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
#subset data taken from 2 days 2/1/2007 & 2/2/2007
data_plot <- subset(data_set, Date %in% c("1... |
## ----global_options, include=FALSE---------------------------------------
knitr::opts_chunk$set(fig.width=12, fig.height=8,
echo=FALSE, warning=FALSE, message=FALSE,comment = "")
## ----echo=FALSE----------------------------------------------------------
set.seed(51)
library(ggplot2)
lib... | /Bayesian Analysis/Bayesian Analysis.R | no_license | MichaelBelias/My-Complete-Book-In-R | R | false | false | 37,746 | r | ## ----global_options, include=FALSE---------------------------------------
knitr::opts_chunk$set(fig.width=12, fig.height=8,
echo=FALSE, warning=FALSE, message=FALSE,comment = "")
## ----echo=FALSE----------------------------------------------------------
set.seed(51)
library(ggplot2)
lib... |
#Test 1
x <- runif(10)
plot(x)
| /test1.R | no_license | Harriette/MLTest | R | false | false | 32 | r | #Test 1
x <- runif(10)
plot(x)
|
volumeUtil = function (serie, Pregularizacao, M) {
nS = length (serie)
if (M)
periodo = rep (c (31,28,31,30,31,30,31,31,30,31,30,31), (nS/12))
else
periodo = rep (365, nS)
periodo = periodo*24*60*60
# tempoAcumulado = sapply (1:nS, function (x) sum (periodo[1:x]))
volumePadronizado = (serie - ... | /interface/modelo/volumeUtil.R | no_license | leandrofturi/modeloPMIX | R | false | false | 1,268 | r | volumeUtil = function (serie, Pregularizacao, M) {
nS = length (serie)
if (M)
periodo = rep (c (31,28,31,30,31,30,31,31,30,31,30,31), (nS/12))
else
periodo = rep (365, nS)
periodo = periodo*24*60*60
# tempoAcumulado = sapply (1:nS, function (x) sum (periodo[1:x]))
volumePadronizado = (serie - ... |
library(gsw)
### Name: gsw_CT_from_enthalpy
### Title: Conservative Temperature from Enthalpy
### Aliases: gsw_CT_from_enthalpy
### ** Examples
SA <- c(34.7118, 34.8915, 35.0256, 34.8472, 34.7366, 34.7324)
h <- c(1.15103e5, 1.14014e5, 0.92180e5, 0.43255e5, 0.33087e5, 0.26970e5)
p <- c( 10, 50, 12... | /data/genthat_extracted_code/gsw/examples/gsw_CT_from_enthalpy.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 598 | r | library(gsw)
### Name: gsw_CT_from_enthalpy
### Title: Conservative Temperature from Enthalpy
### Aliases: gsw_CT_from_enthalpy
### ** Examples
SA <- c(34.7118, 34.8915, 35.0256, 34.8472, 34.7366, 34.7324)
h <- c(1.15103e5, 1.14014e5, 0.92180e5, 0.43255e5, 0.33087e5, 0.26970e5)
p <- c( 10, 50, 12... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/D1Node.R
\name{listObjects}
\alias{listObjects}
\title{Retrieve the list of objects that match the search parameters}
\usage{
listObjects(node, ...)
}
\arguments{
\item{node}{The Node instance from which the SystemMetadata will be dow... | /dataone/man/listObjects.Rd | permissive | KillEdision/rdataone | R | false | false | 462 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/D1Node.R
\name{listObjects}
\alias{listObjects}
\title{Retrieve the list of objects that match the search parameters}
\usage{
listObjects(node, ...)
}
\arguments{
\item{node}{The Node instance from which the SystemMetadata will be dow... |
atom.prob = runif(1,0,1)
adapt.counter = 0
#edit
react = function(incidence){
print(incidence)
print("has incided")
atom.state = sample(c(0,1), size=1, prob=c(1-atom.prob, atom.prob))
print(atom.state)
print("is the state")
if(incidence){
if(atom.state) {
print("it fits!")
adapt.counter <<- adapt.counter + 1
... | /atomic_underlearner.R | permissive | ramniearh/underlearner | R | false | false | 708 | r | atom.prob = runif(1,0,1)
adapt.counter = 0
#edit
react = function(incidence){
print(incidence)
print("has incided")
atom.state = sample(c(0,1), size=1, prob=c(1-atom.prob, atom.prob))
print(atom.state)
print("is the state")
if(incidence){
if(atom.state) {
print("it fits!")
adapt.counter <<- adapt.counter + 1
... |
library(chemspiderapi)
context("get_queryId_results")
test_that("get_queryId_results() fails if query ID is wrong", {
expect_error(
get_queryId_results(queryId = "A wrong query ID",
status = "Complete",
apikey = keyring::key_get("R Keyring Service", "ChemSpider AP... | /tests/testthat/test-get_queryId_results.R | permissive | mattoslmp/chemspiderapi | R | false | false | 1,639 | r | library(chemspiderapi)
context("get_queryId_results")
test_that("get_queryId_results() fails if query ID is wrong", {
expect_error(
get_queryId_results(queryId = "A wrong query ID",
status = "Complete",
apikey = keyring::key_get("R Keyring Service", "ChemSpider AP... |
if ( requireNamespace("tinytest", quietly=TRUE) ){
tinytest::test_package("dcmodifydt")
}
| /tests/tinytest.R | permissive | data-cleaning/dcmodifydt | R | false | false | 94 | r |
if ( requireNamespace("tinytest", quietly=TRUE) ){
tinytest::test_package("dcmodifydt")
}
|
object <- 'Hunter' | /Hunter.R | no_license | youngh1228/RWorkshop | R | false | false | 18 | r | object <- 'Hunter' |
library(data.table)
library(lubridate)
# set working directory
setwd("C:\\Users\\sloh8\\Desktop\\courseradatascience\\4.Exploratory_Data_Analysis\\ExData_Plotting1")
# open raw data and some processing
filename <- "./data/household_power_consumption.txt"
data <- read.table(filename, header=TRUE, sep=";",colClasses = ... | /plot2.R | no_license | shamming/ExData_Plotting1 | R | false | false | 946 | r | library(data.table)
library(lubridate)
# set working directory
setwd("C:\\Users\\sloh8\\Desktop\\courseradatascience\\4.Exploratory_Data_Analysis\\ExData_Plotting1")
# open raw data and some processing
filename <- "./data/household_power_consumption.txt"
data <- read.table(filename, header=TRUE, sep=";",colClasses = ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/datarox.R
\name{REseqs}
\alias{REseqs}
\title{Restriction enzyme table}
\format{\describe{
\item{Enzyme}{ Restriction enzyme.}
\item{Prototype}{ Prototype enzyme for the recognition sequence.}
\item{Organism}{ Organism in which enzyme... | /man/REseqs.Rd | no_license | alex-sbu/CPBias | R | false | false | 684 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/datarox.R
\name{REseqs}
\alias{REseqs}
\title{Restriction enzyme table}
\format{\describe{
\item{Enzyme}{ Restriction enzyme.}
\item{Prototype}{ Prototype enzyme for the recognition sequence.}
\item{Organism}{ Organism in which enzyme... |
# This checks that the spatial FDR is being properly controlled, in the opposite scenario of FDR_check.R.
# Namely, we set up a situation where the non-DA subpopulations are very tight and the DA subpopulation is relatively diffuse (but still small).
# This could theoretically trigger loss of control when measuring the... | /simulations/alt_FDR_check.R | no_license | MarioniLab/DAMethods2016 | R | false | false | 3,619 | r | # This checks that the spatial FDR is being properly controlled, in the opposite scenario of FDR_check.R.
# Namely, we set up a situation where the non-DA subpopulations are very tight and the DA subpopulation is relatively diffuse (but still small).
# This could theoretically trigger loss of control when measuring the... |
#' Compute Calibration Score
#'
#' @param exp_val Experimental value
#' @param ref_val Reference value
#' @param lb_val Lower bound value
#' @param ub_val Upper bound value
cal_score <- function(exp_val, ref_val, lb_val, ub_val)
{
if (exp_val < lb_val | exp_val > ub_val)
{
# Outside the interval
cal <- 0.... | /figures/data-support/r-scripts/cal_score.R | no_license | damar-wicaksono/wd41-thesis | R | false | false | 579 | r | #' Compute Calibration Score
#'
#' @param exp_val Experimental value
#' @param ref_val Reference value
#' @param lb_val Lower bound value
#' @param ub_val Upper bound value
cal_score <- function(exp_val, ref_val, lb_val, ub_val)
{
if (exp_val < lb_val | exp_val > ub_val)
{
# Outside the interval
cal <- 0.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spc.constant.calculation.B3.R
\name{spc.constant.calculation.B3}
\alias{spc.constant.calculation.B3}
\title{Control Chart Constant B3}
\usage{
spc.constant.calculation.B3(
sample.size,
n.sigma = 3,
negative.as.NA = T,
exact = T
)
}
\a... | /man/spc.constant.calculation.B3.Rd | permissive | burrm/lolcat | R | false | true | 777 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spc.constant.calculation.B3.R
\name{spc.constant.calculation.B3}
\alias{spc.constant.calculation.B3}
\title{Control Chart Constant B3}
\usage{
spc.constant.calculation.B3(
sample.size,
n.sigma = 3,
negative.as.NA = T,
exact = T
)
}
\a... |
context("mlsged")
## Data generation.
set.seed(313)
small_data <- fGarch::rsged(100, 2, 3, 4)
tiny_data <- fGarch::rsged(100, 2, 3, 4)
## Finds errors with na and data out of bounds.
expect_error(mlsged(c(tiny_data, NA)))
## Checks that na.rm works as intended.
expect_equal(
coef(mlsged(small_data)),
coef(mlsged... | /tests/testthat/test_mlsged.R | permissive | JonasMoss/univariateML | R | false | false | 1,120 | r | context("mlsged")
## Data generation.
set.seed(313)
small_data <- fGarch::rsged(100, 2, 3, 4)
tiny_data <- fGarch::rsged(100, 2, 3, 4)
## Finds errors with na and data out of bounds.
expect_error(mlsged(c(tiny_data, NA)))
## Checks that na.rm works as intended.
expect_equal(
coef(mlsged(small_data)),
coef(mlsged... |
library(tidyr)
library(dplyr)
library(lme4)
models = read.csv("results/models_vanillaLSTM_english.tsv", sep="\t")
models = c(
905843526,
655887140,
766978233,
502504068,
697117799,
860606598
)
data = data.frame()
for(model in models) {
data2 = read.csv(paste("output/Traxler2002_expt1_english_", model, sep=""), ... | /analyze_Traxler2002.R | no_license | m-hahn/recursive-prd | R | false | false | 3,107 | r |
library(tidyr)
library(dplyr)
library(lme4)
models = read.csv("results/models_vanillaLSTM_english.tsv", sep="\t")
models = c(
905843526,
655887140,
766978233,
502504068,
697117799,
860606598
)
data = data.frame()
for(model in models) {
data2 = read.csv(paste("output/Traxler2002_expt1_english_", model, sep=""), ... |
#' @title Give taxa summary at specified taxonomic level
#' @description Data frame with mean, max, median standard deviation of relative abundance.
#' @param x \code{\link{phyloseq-class}} object
#' @param level Taxonomic level for which summary is required
#' @return returns a data frame with relative abundance summa... | /inst/extras/taxa_summary.R | no_license | microsud/microbiomeutilities | R | false | false | 1,906 | r | #' @title Give taxa summary at specified taxonomic level
#' @description Data frame with mean, max, median standard deviation of relative abundance.
#' @param x \code{\link{phyloseq-class}} object
#' @param level Taxonomic level for which summary is required
#' @return returns a data frame with relative abundance summa... |
# In this example we read in a celsius value
celsiusInput <- readline("please enter a Celsius value:")
# We then convert the input to a numeric
celsiusNumeric <- as.numeric(celsiusInput)
# calculate the fahrenheit value
fahrResults <- ((9/5) * celsiusNumeric) + 32
# We format this back into a string up to 2 decimal po... | /BigData/03Lecture/helloworld.R | no_license | barrysheppard/DBSDataAnalysis | R | false | false | 540 | r |
# In this example we read in a celsius value
celsiusInput <- readline("please enter a Celsius value:")
# We then convert the input to a numeric
celsiusNumeric <- as.numeric(celsiusInput)
# calculate the fahrenheit value
fahrResults <- ((9/5) * celsiusNumeric) + 32
# We format this back into a string up to 2 decimal po... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/item_rename_files.R
\name{item_rename_files}
\alias{item_rename_files}
\title{Rename item attached files}
\usage{
item_rename_files(sb_id, names, new_names, ..., session = current_session())
}
\arguments{
\item{sb_id}{An \code{\link{sbitem}} ... | /man/item_rename_files.Rd | permissive | ldecicco-USGS/sbtools | R | false | true | 998 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/item_rename_files.R
\name{item_rename_files}
\alias{item_rename_files}
\title{Rename item attached files}
\usage{
item_rename_files(sb_id, names, new_names, ..., session = current_session())
}
\arguments{
\item{sb_id}{An \code{\link{sbitem}} ... |
#--------------------------------
# code from TeachingDemos package
#--------------------------------
### consider adding option to include errors Can implement by using
### options(error=newfunction) and newfunction would use the
### savehistory command to get the expression and geterrmessage to get
### the error mess... | /R2txt.R | no_license | margitgit/utility | R | false | false | 18,399 | r | #--------------------------------
# code from TeachingDemos package
#--------------------------------
### consider adding option to include errors Can implement by using
### options(error=newfunction) and newfunction would use the
### savehistory command to get the expression and geterrmessage to get
### the error mess... |
# setwd("C:/Users/Kate Newhart/Dropbox/Newhart ADPCA Paper/R")
library(xts)
library(mvMonitoringv2)
library(ADPCA)
stateVarsBR <- c("BIO_1\\CURRENT_PHASE",
"BIO_2\\CURRENT_PHASE",
"BIO_BLOWER_1\\RUNNING",
"BIO_BLOWER_2\\RUNNING")
stateVarsMT <- c("MBR_1\\CURRENT_MODE"... | /case_studies/train 3d/all.R | no_license | KNewhart/ADPCA_paper | R | false | false | 36,292 | r | # setwd("C:/Users/Kate Newhart/Dropbox/Newhart ADPCA Paper/R")
library(xts)
library(mvMonitoringv2)
library(ADPCA)
stateVarsBR <- c("BIO_1\\CURRENT_PHASE",
"BIO_2\\CURRENT_PHASE",
"BIO_BLOWER_1\\RUNNING",
"BIO_BLOWER_2\\RUNNING")
stateVarsMT <- c("MBR_1\\CURRENT_MODE"... |
func.var.jump<-function(data, sampleEndIndex, prdRange, col){
}
function | /code/R_Workspace/Jump_data_analysis.R | no_license | riz1903/TimeSeries-Prediction-Work | R | false | false | 77 | r | func.var.jump<-function(data, sampleEndIndex, prdRange, col){
}
function |
#!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
if (length(args)<6) {
stop("At least five argument must be supplied.\n", call.=FALSE)
}
genomeRef <- "/home/studerf/mnt/Zone2/rnalizer/references/annotation/GRCh37.gtf" # Where the reference genome are
bamfile <- "/home/studerf/mnt/Zone2/rnalizer/4alignem... | /rnalizer/4alignement/BamToCount.R | no_license | studyfranco/GNEA | R | false | false | 2,318 | r | #!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
if (length(args)<6) {
stop("At least five argument must be supplied.\n", call.=FALSE)
}
genomeRef <- "/home/studerf/mnt/Zone2/rnalizer/references/annotation/GRCh37.gtf" # Where the reference genome are
bamfile <- "/home/studerf/mnt/Zone2/rnalizer/4alignem... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y)
{
x<<-y
m <<- NULL
}
get <- function() x
setinv <- function(inverse) m <<- inverse
getinv ... | /cachematrix.R | no_license | JerMysGit/ProgrammingAssignment2 | R | false | false | 705 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y)
{
x<<-y
m <<- NULL
}
get <- function() x
setinv <- function(inverse) m <<- inverse
getinv ... |
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(268438272L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(dexterMST:::im_booklet_score,testlist)
str(result) | /dexterMST/inst/testfiles/im_booklet_score/AFL_im_booklet_score/im_booklet_score_valgrind_files/1615946014-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 256 | r | testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(268438272L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(dexterMST:::im_booklet_score,testlist)
str(result) |
#' alpha_estimate
#'
#' Build objects of class alpha_estimate from their components. \code{alpha_estimate()} is a constructor method
#'
#' @param estimate The estimate
#' @param error The standard error in the estimate
#' @param estimand What is the estimate trying to estimate? (richness, Shannon...)
#' @param name Th... | /R/class_alpha_estimate.R | no_license | bryandmartin/breakaway | R | false | false | 3,788 | r | #' alpha_estimate
#'
#' Build objects of class alpha_estimate from their components. \code{alpha_estimate()} is a constructor method
#'
#' @param estimate The estimate
#' @param error The standard error in the estimate
#' @param estimand What is the estimate trying to estimate? (richness, Shannon...)
#' @param name Th... |
# These routines use trapezoid rule to integrate X[t] to get Y[t]
#' Draw (X[t],Y[t]) jointly from BAP transition density.
#'
#' Integral Y[t] obtained via simple trapezoid rule.
#'
#' @param X0 Initial condition X=X0
#' @inheritParams .bapGenericDummyFunction
#' @param horizon time t
#' @param ticks=100 is approximat... | /R/baptrapezoid.R | no_license | michaelgordy/basicAffineProcess | R | false | false | 1,925 | r | # These routines use trapezoid rule to integrate X[t] to get Y[t]
#' Draw (X[t],Y[t]) jointly from BAP transition density.
#'
#' Integral Y[t] obtained via simple trapezoid rule.
#'
#' @param X0 Initial condition X=X0
#' @inheritParams .bapGenericDummyFunction
#' @param horizon time t
#' @param ticks=100 is approximat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fortify_pptx.R
\name{pptx_summary}
\alias{pptx_summary}
\title{get PowerPoint content in a tidy format}
\usage{
pptx_summary(x)
}
\arguments{
\item{x}{an rpptx object}
}
\description{
read content of a PowerPoint document and
return a tidy da... | /man/pptx_summary.Rd | no_license | Kill3rbee/officer | R | false | true | 524 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fortify_pptx.R
\name{pptx_summary}
\alias{pptx_summary}
\title{get PowerPoint content in a tidy format}
\usage{
pptx_summary(x)
}
\arguments{
\item{x}{an rpptx object}
}
\description{
read content of a PowerPoint document and
return a tidy da... |
library(tidyverse)
library(stringr)
library(RColorBrewer)
library(reshape2)
library(ISLR)
library(gplots)
library(pvclust)
stage_split1 <- function(x, y) {
splits <- str_split_fixed(x$y, " ", 2)
#x <- cbind.data.frame(splits, x)
#names(x)[names(x) == '2'] <- 'Stages'
#x <- subset(x, select=-c(1, y))
}
######
... | /Pancreas_PAAD_TCGA_Prov.R | no_license | zhangyupisa/work | R | false | false | 10,317 | r | library(tidyverse)
library(stringr)
library(RColorBrewer)
library(reshape2)
library(ISLR)
library(gplots)
library(pvclust)
stage_split1 <- function(x, y) {
splits <- str_split_fixed(x$y, " ", 2)
#x <- cbind.data.frame(splits, x)
#names(x)[names(x) == '2'] <- 'Stages'
#x <- subset(x, select=-c(1, y))
}
######
... |
library(tidyverse)
#question 5.a.1
n <- 15
x_avg <- 30
sd <- 5
se <- sd/sqrt(n)
t_a1 <- qt(0.025,n-1)
t_a2 <- qt(0.975,n-1)
ci_a1 <- (x_avg + (se*t_a1))
ci_a2 <- (x_avg + (se*t_a2))
#question 5.a.2
t_b1 <- qt(0.005,n-1)
t_b2 <- qt(0.995,n-1)
ci_b1 <- (x_avg + (se*t_b1))
ci_b2 <- (x_avg + (se*t_b2))
#quest... | /Semester 3/Data Analysis and Statistical Methods/Assignments/Assignment2/question5.R | no_license | fsimanjuntak/kuliah | R | false | false | 531 | r | library(tidyverse)
#question 5.a.1
n <- 15
x_avg <- 30
sd <- 5
se <- sd/sqrt(n)
t_a1 <- qt(0.025,n-1)
t_a2 <- qt(0.975,n-1)
ci_a1 <- (x_avg + (se*t_a1))
ci_a2 <- (x_avg + (se*t_a2))
#question 5.a.2
t_b1 <- qt(0.005,n-1)
t_b2 <- qt(0.995,n-1)
ci_b1 <- (x_avg + (se*t_b1))
ci_b2 <- (x_avg + (se*t_b2))
#quest... |
\name{plot.ITPlm}
\alias{plot.ITPlm}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plotting ITP results for functional-on-scalar linear model testing
}
\description{
\code{plot} method for class "\code{ITPlm}".
Plotting function creating a graphical output of the ITP for the test on a functiona... | /man/plot.ITPlm.Rd | no_license | cran/fdatest | R | false | false | 4,795 | rd | \name{plot.ITPlm}
\alias{plot.ITPlm}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plotting ITP results for functional-on-scalar linear model testing
}
\description{
\code{plot} method for class "\code{ITPlm}".
Plotting function creating a graphical output of the ITP for the test on a functiona... |
#############
# libraries #
#############
options(import.path="/homes/hannah/RPackagesDevel/plinkQC")
options(bitmapType = 'cairo', device = 'pdf')
optparse <- modules::import_package('optparse')
plinkqc <- modules::import_package('plinkQC')
################
### Analysis ###
################
## command line argume... | /digital-heart/genotypes/qualitycontrol/scripts/genotypeQC.R | no_license | ImperialCollegeLondon/fractalgenetics | R | false | false | 13,713 | r | #############
# libraries #
#############
options(import.path="/homes/hannah/RPackagesDevel/plinkQC")
options(bitmapType = 'cairo', device = 'pdf')
optparse <- modules::import_package('optparse')
plinkqc <- modules::import_package('plinkQC')
################
### Analysis ###
################
## command line argume... |
#Loading the dataset
df <- read.csv("C:/Users/sayal/Downloads/Final_Data.csv")
View(df)
names(df)
summary(df)
names(df)[1]= 'CanineGroup'
#Converting CanioneGroup to factor variable
df$CanineGroup <- as.factor(df$CanineGroup)
#Printing the levels of Canine Group
levels(df$CanineGroup)
#Changing Gender... | /dog_analysis.R | no_license | sayalischaudhari/Dog-Data-Analysis | R | false | false | 9,311 | r | #Loading the dataset
df <- read.csv("C:/Users/sayal/Downloads/Final_Data.csv")
View(df)
names(df)
summary(df)
names(df)[1]= 'CanineGroup'
#Converting CanioneGroup to factor variable
df$CanineGroup <- as.factor(df$CanineGroup)
#Printing the levels of Canine Group
levels(df$CanineGroup)
#Changing Gender... |
turk2_s1028 <- read.table("turk2_s1028.txt", header=T)
names(turk2_s1028) <- c("X1","X2","X3","C1","T1")
| /data/turk2_s1028.R | no_license | ewan/dlp | R | false | false | 105 | r | turk2_s1028 <- read.table("turk2_s1028.txt", header=T)
names(turk2_s1028) <- c("X1","X2","X3","C1","T1")
|
check.zero.order.homog <- function(S.fct, Z, tol = 1e-9) {
# This program checks whether S(.) is zero-order Z-homogeneous by checking whether
# S(Diag(Z%*%gamma)%*%x) = S(x). Here gamma and x are randomly generated.
Z <- as.matrix(Z)
nr <- nrow(Z)
nc <- ncol(Z)
x <- runif(nr, 1, 100)
gam <- runif(nc, 1, 1... | /R/check.zero.order.homog.R | no_license | cran/cta | R | false | false | 637 | r | check.zero.order.homog <- function(S.fct, Z, tol = 1e-9) {
# This program checks whether S(.) is zero-order Z-homogeneous by checking whether
# S(Diag(Z%*%gamma)%*%x) = S(x). Here gamma and x are randomly generated.
Z <- as.matrix(Z)
nr <- nrow(Z)
nc <- ncol(Z)
x <- runif(nr, 1, 100)
gam <- runif(nc, 1, 1... |
require(synapseClient)
require(predictiveModeling)
synapseLogin("in.sock.jang@sagebase.org","tjsDUD@")
source("~/COMPBIO/trunk/users/jang/drugResponse/Analysis/pathwayAnalysisFunctions.R")
################################################################## bs analysis
# MSigDB from synapse
mSigDB_annotations <- loadEnt... | /drugResponse_woCopy/CCLE/RunPathwayAnalysis_woBS.R | no_license | insockjang/DrugResponse | R | false | false | 1,754 | r | require(synapseClient)
require(predictiveModeling)
synapseLogin("in.sock.jang@sagebase.org","tjsDUD@")
source("~/COMPBIO/trunk/users/jang/drugResponse/Analysis/pathwayAnalysisFunctions.R")
################################################################## bs analysis
# MSigDB from synapse
mSigDB_annotations <- loadEnt... |
#' The gradient for the log posterior in the copula model
#'
#' This function usually does not need to modify. Note that this function does not give
#' the complete posteriors but its components, i.e. gradient for the likelihood function,
#' gradient for the prior, gradient for the linkage.
#' @param CplNM "character".... | /R/models__post__logDensGradHess.R | no_license | ayotoasset/cdcopula | R | false | false | 7,577 | r | #' The gradient for the log posterior in the copula model
#'
#' This function usually does not need to modify. Note that this function does not give
#' the complete posteriors but its components, i.e. gradient for the likelihood function,
#' gradient for the prior, gradient for the linkage.
#' @param CplNM "character".... |
# From Bradford 2002 - Broken-Stick HTT Model based on GR
# GRTPsi.BS.fun <- function(Temp, Psi, Tc, Tb, To, ThetaT){
# t2 <- ifelse(Temp < Tb, Tb, ifelse(Temp > To, To, Temp))
# t1 <- ifelse(Temp < To, To, Temp)
# psival <- ifelse(1 - (t1 - To)/(Tc - To) > 0, 1 - (t1 - To)/(Tc - To), 0)
# GR <- psival * (t2 - ... | /R/GRTPsi.BS.R | no_license | OnofriAndreaPG/drcSeedGerm | R | false | false | 4,296 | r | # From Bradford 2002 - Broken-Stick HTT Model based on GR
# GRTPsi.BS.fun <- function(Temp, Psi, Tc, Tb, To, ThetaT){
# t2 <- ifelse(Temp < Tb, Tb, ifelse(Temp > To, To, Temp))
# t1 <- ifelse(Temp < To, To, Temp)
# psival <- ifelse(1 - (t1 - To)/(Tc - To) > 0, 1 - (t1 - To)/(Tc - To), 0)
# GR <- psival * (t2 - ... |
# https://oeis.org/A001190/b001190.txt
nRootedShapes <- bit64::as.integer64(c(
'1',
'1',
'1',
'2',
'3',
'6',
'11',
'23',
'46',
'98',
'207',
'451',
'983',
'2179',
'4850',
'10905',
'24631',
'56011',
'127912',
'293547',
'676157',
'1563372',
'3626149',
'8436379',
'19680277',
'46026618',
'1078906... | /fuzzedpackages/TreeTools/data/nRootedShapes.R | no_license | akhikolla/testpackages | R | false | false | 859 | r | # https://oeis.org/A001190/b001190.txt
nRootedShapes <- bit64::as.integer64(c(
'1',
'1',
'1',
'2',
'3',
'6',
'11',
'23',
'46',
'98',
'207',
'451',
'983',
'2179',
'4850',
'10905',
'24631',
'56011',
'127912',
'293547',
'676157',
'1563372',
'3626149',
'8436379',
'19680277',
'46026618',
'1078906... |
#' Extract rows or columns from a matrix in order of interest
#'
#' @param expmat matrix with row and column names
#' @param reflist character vector of row or column names to be extracted
#' @param margin where to look for the reflist, by default rows
#' @return new matrix with rows or columns in order of the referenc... | /R/helper_functions.R | no_license | fossbert/binilib | R | false | false | 17,203 | r | #' Extract rows or columns from a matrix in order of interest
#'
#' @param expmat matrix with row and column names
#' @param reflist character vector of row or column names to be extracted
#' @param margin where to look for the reflist, by default rows
#' @return new matrix with rows or columns in order of the referenc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/methods-MixtureModel.R
\docType{methods}
\name{summarize}
\alias{summarize}
\alias{summarize,MixtureModel-method}
\alias{summarize,SingleBatchCopyNumber-method}
\alias{summarize,MultiBatchCopyNumber-method}
\alias{summarize,M... | /man/summarize-method.Rd | no_license | rscharpf/MixModelViz | R | false | true | 1,081 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/methods-MixtureModel.R
\docType{methods}
\name{summarize}
\alias{summarize}
\alias{summarize,MixtureModel-method}
\alias{summarize,SingleBatchCopyNumber-method}
\alias{summarize,MultiBatchCopyNumber-method}
\alias{summarize,M... |
/Data analysis Chapter 2 R Studio Exercise 2.R | no_license | TiniLorey/IODS-project | R | false | false | 5,190 | r | ||
#' @title Predictive density.
#' @description Method returning the predictive probability density.
#' @param object Model specification of class \code{MSGARCH_SPEC} created with \code{\link{CreateSpec}}
#' or fit object of type \code{MSGARCH_ML_FIT} created with \code{\link{FitML}} or \code{MSGARCH_MCMC_FIT}
#' created... | /Package/R/pred.R | no_license | NanaAkwasiAbayieBoateng/MSGARCH | R | false | false | 6,901 | r | #' @title Predictive density.
#' @description Method returning the predictive probability density.
#' @param object Model specification of class \code{MSGARCH_SPEC} created with \code{\link{CreateSpec}}
#' or fit object of type \code{MSGARCH_ML_FIT} created with \code{\link{FitML}} or \code{MSGARCH_MCMC_FIT}
#' created... |
#' @importFrom magrittr %>%
#' @export
magrittr::`%>%`
#' Get or set DATABOX_API_KEY value
#'
#' The API wrapper functions in this package all rely on a databox API
#' key residing in the environment variable \code{DATABOX_API_KEY}. The
#' easiest way to accomplish this is to set it in the `.Renviron` file in your
#'... | /R/api_key.r | no_license | hrbrmstr/databox | R | false | false | 1,187 | r | #' @importFrom magrittr %>%
#' @export
magrittr::`%>%`
#' Get or set DATABOX_API_KEY value
#'
#' The API wrapper functions in this package all rely on a databox API
#' key residing in the environment variable \code{DATABOX_API_KEY}. The
#' easiest way to accomplish this is to set it in the `.Renviron` file in your
#'... |
rm(list = ls())
library(ISLR)
library(tree)
fix(Carseats)
attach(Carseats)
dim(Carseats)
#[1] 400 11
names(Carseats)
#[1] "Sales" "CompPrice" "Income" "Advertising" "Population" "Price"
#[7] "ShelveLoc" "Age" "Education" "Urban" "US"
set.seed(2)
train = sample(400,300)
S... | /8.8CarseatsRegtree.R | no_license | Pratapdangeti/Machine_Learning-with_R | R | false | false | 1,732 | r |
rm(list = ls())
library(ISLR)
library(tree)
fix(Carseats)
attach(Carseats)
dim(Carseats)
#[1] 400 11
names(Carseats)
#[1] "Sales" "CompPrice" "Income" "Advertising" "Population" "Price"
#[7] "ShelveLoc" "Age" "Education" "Urban" "US"
set.seed(2)
train = sample(400,300)
S... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
% R/gen-namespace-examples.R
\name{torch_real}
\alias{torch_real}
\title{Real}
\arguments{
\item{input}{(Tensor) the input tensor.}
\item{out}{(Tensor, optional) the output tensor.}
}
\description{
Real
}
\section{rea... | /man/torch_real.Rd | permissive | qykong/torch | R | false | true | 683 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
% R/gen-namespace-examples.R
\name{torch_real}
\alias{torch_real}
\title{Real}
\arguments{
\item{input}{(Tensor) the input tensor.}
\item{out}{(Tensor, optional) the output tensor.}
}
\description{
Real
}
\section{rea... |
### STAT 5814 MIDTERM 2/PROBLEM 3
### AUTHOR: SAYANTAN MAJUMDAR
### EMAIL: smxnv@mst.edu
### SNO: 12566087
library(TSA)
library(snpar)
library(stats)
library(forecast)
library(tseries)
library(fUnitRoots)
data = read.table('Data/ExamData/petr.txt', header=T)
chemicals.data = ts(data$Chemicals, frequency=12, start=c(1... | /Codes/Midterm_2_P3.R | no_license | montimaj/Report_Midterm2_STAT5814 | R | false | false | 6,817 | r | ### STAT 5814 MIDTERM 2/PROBLEM 3
### AUTHOR: SAYANTAN MAJUMDAR
### EMAIL: smxnv@mst.edu
### SNO: 12566087
library(TSA)
library(snpar)
library(stats)
library(forecast)
library(tseries)
library(fUnitRoots)
data = read.table('Data/ExamData/petr.txt', header=T)
chemicals.data = ts(data$Chemicals, frequency=12, start=c(1... |
#' A Boxplot Function
#'
#' This function allows you to generate a basic boxplot without knowledge of ggplot or tidyverse
#' @param data,xvar,yvar
#' @export
#' @examples boxplot(avo, avo$region, avo$AveragePrice)
#' boxplot()
library(tidyverse)
library(ggplot2)
library(nlme)
boxplot <- function(data, xvar, yvar){
... | /Visualize/R/box.R | no_license | brandonnormand/Visualize | R | false | false | 389 | r | #' A Boxplot Function
#'
#' This function allows you to generate a basic boxplot without knowledge of ggplot or tidyverse
#' @param data,xvar,yvar
#' @export
#' @examples boxplot(avo, avo$region, avo$AveragePrice)
#' boxplot()
library(tidyverse)
library(ggplot2)
library(nlme)
boxplot <- function(data, xvar, yvar){
... |
### R code from vignette source 'modeling.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: modeling.Rnw:79-81
###################################################
library(actuar)
options(width = 60, digits = 4)
###################################################
##... | /inst/doc/modeling.R | no_license | LauraHuang100/actuar | R | false | false | 9,100 | r | ### R code from vignette source 'modeling.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: modeling.Rnw:79-81
###################################################
library(actuar)
options(width = 60, digits = 4)
###################################################
##... |
\name{const.var.list}
\alias{const.var.list}
\title{Computation of the list of variance vectors}
\description{
Computes the list of the variance vectors in terms of the scale of the wavelet decomposition.
}
\usage{
const.var.list(data.mat, names.data = 0, method = "modwt", wf = "la8",
n.levels = 4, b... | /man/const.var.list.Rd | no_license | cran/brainwaver | R | false | false | 4,043 | rd | \name{const.var.list}
\alias{const.var.list}
\title{Computation of the list of variance vectors}
\description{
Computes the list of the variance vectors in terms of the scale of the wavelet decomposition.
}
\usage{
const.var.list(data.mat, names.data = 0, method = "modwt", wf = "la8",
n.levels = 4, b... |
#use plink2 to calculate prs
#load LD_clump_file
#i is the ethnic
#l is the causal proportion
#m is the training sample size
#k is the p value thres
#j is the number of chromsome
args = commandArgs(trailingOnly = T)
i = as.numeric(args[[1]])
l = as.numeric(args[[2]])
i_rep = as.numeric(args[[3]])
j = as.numeric(args[[... | /code/LD_simulation_GA/test_mega/calculate_prs_mega.R | no_license | andrewhaoyu/multi_ethnic | R | false | false | 3,359 | r | #use plink2 to calculate prs
#load LD_clump_file
#i is the ethnic
#l is the causal proportion
#m is the training sample size
#k is the p value thres
#j is the number of chromsome
args = commandArgs(trailingOnly = T)
i = as.numeric(args[[1]])
l = as.numeric(args[[2]])
i_rep = as.numeric(args[[3]])
j = as.numeric(args[[... |
\name{NEWS}
\title{News for Package \pkg{BH}}
\newcommand{\boost}{\href{http://www.boost.org}{\pkg{Boost}}}
\newcommand{\boostPkg}{\href{http://www.boost.org/doc/libs/release/libs/#1}{\pkg{#1}}}
\newcommand{\boostPkgTwo}{\href{http://www.boost.org/doc/libs/release/libs/#1}{\pkg{#2}}}
\newcommand{\rfticket}{\href{https:... | /lib/site-library/BH/NEWS.Rd | no_license | ToyamaLab/NewSSQL | R | false | false | 8,008 | rd | \name{NEWS}
\title{News for Package \pkg{BH}}
\newcommand{\boost}{\href{http://www.boost.org}{\pkg{Boost}}}
\newcommand{\boostPkg}{\href{http://www.boost.org/doc/libs/release/libs/#1}{\pkg{#1}}}
\newcommand{\boostPkgTwo}{\href{http://www.boost.org/doc/libs/release/libs/#1}{\pkg{#2}}}
\newcommand{\rfticket}{\href{https:... |
testlist <- list(id = c(-16777216L, 661L, -1785359104L, 43357589L, -1785397248L, 1L, 2752512L, 2051080192L, 0L, -8716544L, 973144106L, 0L, 8750469L, -2054847109L, 1040121856L, 25L, 16777215L, -16716307L, 2054876653L, 252L, -16777216L, 16777215L, -256L, 65535L, -786433L, -16711680L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 79954... | /ggforce/inst/testfiles/enclose_points/libFuzzer_enclose_points/enclose_points_valgrind_files/1609955867-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 2,228 | r | testlist <- list(id = c(-16777216L, 661L, -1785359104L, 43357589L, -1785397248L, 1L, 2752512L, 2051080192L, 0L, -8716544L, 973144106L, 0L, 8750469L, -2054847109L, 1040121856L, 25L, 16777215L, -16716307L, 2054876653L, 252L, -16777216L, 16777215L, -256L, 65535L, -786433L, -16711680L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 79954... |
####
#The authors of this project are:
#Mani Bayani (NetID: mbayani2 - University ID: 658712716)
#Omar Kahwaji (NetID: kahwaji2 - University ID: 659375761)
#Negin Kashkooli (NetID: negink2 - University ID: 653412774)
####
library(dplyr)
library(ggplot2)
library(recommenderlab)
library(DT)
library(data.table)
library(r... | /functions/my-final.R | no_license | mbayani/A-Collaborative-Filtering-Recommender-System-App | R | false | false | 5,917 | r | ####
#The authors of this project are:
#Mani Bayani (NetID: mbayani2 - University ID: 658712716)
#Omar Kahwaji (NetID: kahwaji2 - University ID: 659375761)
#Negin Kashkooli (NetID: negink2 - University ID: 653412774)
####
library(dplyr)
library(ggplot2)
library(recommenderlab)
library(DT)
library(data.table)
library(r... |
##########################
## 1: Specifying ANOVAs ##
##########################
# Example using a purely within-subjects design
# (Maxwell & Delaney, 2004, Chapter 12, Table 12.5, p. 578):
data(md_12.1)
aov_ez("id", "rt", md_12.1, within = c("angle", "noise"),
anova_table=list(correction = "none", es = "non... | /examples/examples.aov_car.R | no_license | lnsongxf/afex | R | false | false | 8,842 | r |
##########################
## 1: Specifying ANOVAs ##
##########################
# Example using a purely within-subjects design
# (Maxwell & Delaney, 2004, Chapter 12, Table 12.5, p. 578):
data(md_12.1)
aov_ez("id", "rt", md_12.1, within = c("angle", "noise"),
anova_table=list(correction = "none", es = "non... |
# Fill in the blanks _____ with:
# . function
# . return
# . name_friend
# . congratulate_friend
_____ <- _____(_____) {
congratulations <- paste("Congrats", name_friend, "!")
_____(congratulations)
}
# This should return 'Congrats Bob !'
congratulate_friend("Bob")
| /.setup/template_question_1.R | no_license | ALanguillaume/writing-functions-perks | R | false | false | 275 | r |
# Fill in the blanks _____ with:
# . function
# . return
# . name_friend
# . congratulate_friend
_____ <- _____(_____) {
congratulations <- paste("Congrats", name_friend, "!")
_____(congratulations)
}
# This should return 'Congrats Bob !'
congratulate_friend("Bob")
|
# Exercise 2: More ggplot2 Grammar
# Install and load `ggplot2`
# install.packages("ggplot2") # if needed
# For this exercise you will again be working with the `diamonds` data set.
# Use `?diamonds` to review details about this data set
?diamonds
## Statistical Transformations
# Draw a bar chart of the diamonds ... | /exercise-2/exercise.R | permissive | Kidusyohanes/m14-ggplot2 | R | false | false | 3,329 | r | # Exercise 2: More ggplot2 Grammar
# Install and load `ggplot2`
# install.packages("ggplot2") # if needed
# For this exercise you will again be working with the `diamonds` data set.
# Use `?diamonds` to review details about this data set
?diamonds
## Statistical Transformations
# Draw a bar chart of the diamonds ... |
#' @description check_project role is to make sure the code wont do any harm to
#' any data alredy processed, it implment a protective approach by checking
#' that data is not alredy present in projected L2 structure for a specific
#' parameter. This function is to be extended for L3 processing level
#' to ensure uniqu... | /R/check_project.R | no_license | raphidoc/lighthouse | R | false | false | 1,137 | r | #' @description check_project role is to make sure the code wont do any harm to
#' any data alredy processed, it implment a protective approach by checking
#' that data is not alredy present in projected L2 structure for a specific
#' parameter. This function is to be extended for L3 processing level
#' to ensure uniqu... |
\name{LatticeDistribution}
\alias{LatticeDistribution}
\title{Class "LatticeDistribution"}
\description{The \code{LatticeDistribution}-class is the mother-class of the
classes \code{Binom}, \code{Dirac}, \code{Geom}, \code{Hyper}, \code{Nbinom} and
\code{Poisson}. It formalizes a distribution on a regular affine... | /man/LatticeDistribution.Rd | no_license | cran/distr | R | false | false | 7,424 | rd | \name{LatticeDistribution}
\alias{LatticeDistribution}
\title{Class "LatticeDistribution"}
\description{The \code{LatticeDistribution}-class is the mother-class of the
classes \code{Binom}, \code{Dirac}, \code{Geom}, \code{Hyper}, \code{Nbinom} and
\code{Poisson}. It formalizes a distribution on a regular affine... |
#grabbing and updated DC LEHD
if(!require(pacman)){install.packages("pacman"); library(pacman)}
p_load(here, RPostgreSQL, dplyr, sf, dbplyr, tigris, devtools)
options(tigris_class = "sf")
install_github("jamgreen/lehdr")
library(lehdr)
#query the corridors from bike_lanes
user <- "jamgreen"
host <- "pgsql102.rc.pdx... | /Code/8-30_grab_dc_lehd.R | no_license | shiweipsu/Street-Improvement-Impact | R | false | false | 1,370 | r | #grabbing and updated DC LEHD
if(!require(pacman)){install.packages("pacman"); library(pacman)}
p_load(here, RPostgreSQL, dplyr, sf, dbplyr, tigris, devtools)
options(tigris_class = "sf")
install_github("jamgreen/lehdr")
library(lehdr)
#query the corridors from bike_lanes
user <- "jamgreen"
host <- "pgsql102.rc.pdx... |
######################################################################################################################################
#
# Version 1.0
# figure_EGFR.R
#
# This for analysis of EGFR - protein-protein interaction set
#
####################################################################################... | /src/figure_EGFR.R | permissive | lionking0000/recYnH_docker | R | false | false | 48,855 | r | ######################################################################################################################################
#
# Version 1.0
# figure_EGFR.R
#
# This for analysis of EGFR - protein-protein interaction set
#
####################################################################################... |
## The working directory should be set in the unzipped folder
# Reading the data from the unzipped folder in R
X_train <- read.table("./train/X_train.txt")
X_test <- read.table("./test/X_test.txt")
y_train <- read.table("./train/y_train.txt")
y_test <- read.table("./test/y_test.txt")
subject_train <- read.table... | /run_analysis.R | no_license | TusharLP/Getting-and-Cleaning-Data-Final-Assignment | R | false | false | 4,071 | r | ## The working directory should be set in the unzipped folder
# Reading the data from the unzipped folder in R
X_train <- read.table("./train/X_train.txt")
X_test <- read.table("./test/X_test.txt")
y_train <- read.table("./train/y_train.txt")
y_test <- read.table("./test/y_test.txt")
subject_train <- read.table... |
\name{multicomp.reverse}
\alias{multicomp.reverse}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Force all comparisons in a "multicomp" object to have the same sign.}
\description{
Force all comparisons in a \code{"multicomp"} object
to have the same sign. If the contrast \code{"A-B"} has a... | /man/multicomp.reverse.Rd | no_license | PhDMeiwp/HH | R | false | false | 1,866 | rd | \name{multicomp.reverse}
\alias{multicomp.reverse}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Force all comparisons in a "multicomp" object to have the same sign.}
\description{
Force all comparisons in a \code{"multicomp"} object
to have the same sign. If the contrast \code{"A-B"} has a... |
# Ghana
geomGhana <- st_read("countries/data/orig_geom/geomGhana.geojson")
# These are marco regions because there are subdivisions, not sure if we'll find a better data set with micro regions. Load Ghana reflects this
geomGhana$macro_code = c("SV","BO", "AF", "BE", "AA", "OT", "WP", "WN", "UW", "UE", "EP", "CP", "AH... | /tools/processed/processGhana.R | permissive | sjbeckett/localcovid19now | R | false | false | 776 | r | # Ghana
geomGhana <- st_read("countries/data/orig_geom/geomGhana.geojson")
# These are marco regions because there are subdivisions, not sure if we'll find a better data set with micro regions. Load Ghana reflects this
geomGhana$macro_code = c("SV","BO", "AF", "BE", "AA", "OT", "WP", "WN", "UW", "UE", "EP", "CP", "AH... |
#################### FUNCTIONS for plotting megamate allele frequency data ################
#last edited 20160630 splitting G from smG functions
cumPosition<-function(myData,genomeIdx){
cumPos=with(myData, data.frame("Chr"=Chr,"Pos"=Pos,"Position"=rep(0,dim(myData)[1])))
levels(cumPos$Chr)<-c(levels(cumPos$Chr),l... | /MegaMatePlot.R | no_license | jsemple19/BSA_m201512and201602 | R | false | false | 22,150 | r | #################### FUNCTIONS for plotting megamate allele frequency data ################
#last edited 20160630 splitting G from smG functions
cumPosition<-function(myData,genomeIdx){
cumPos=with(myData, data.frame("Chr"=Chr,"Pos"=Pos,"Position"=rep(0,dim(myData)[1])))
levels(cumPos$Chr)<-c(levels(cumPos$Chr),l... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 14878
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 14878
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#14.asp/ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#14.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 732 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 14878
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 14878
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summaries.R
\name{bin_mode}
\alias{bin_mode}
\title{Mode of binomial random variable}
\usage{
bin_mode(trials, prob)
}
\arguments{
\item{trials}{number of I.I.D. Bernoulli trials}
\item{prob}{the shape parameter of each I.I.D. Bernoulli tria... | /workout03/binomial/man/bin_mode.Rd | no_license | stat133-sp19/hw-stat133-bveeramani | R | false | true | 544 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summaries.R
\name{bin_mode}
\alias{bin_mode}
\title{Mode of binomial random variable}
\usage{
bin_mode(trials, prob)
}
\arguments{
\item{trials}{number of I.I.D. Bernoulli trials}
\item{prob}{the shape parameter of each I.I.D. Bernoulli tria... |
#' Sort data frame by season
#'
#' Sort data frame by season, specifically by the season_open_date
#'
#' @param x data frame that at minimum contains a 'season_name' column
#' @param season.info season.info data frame
#' @param ... additional tidyselect arguments passed to arrange(), after desc(season_open_date)
#' @pa... | /R/arrange_season.R | no_license | jimsforks/amlrPinnipeds | R | false | false | 1,237 | r | #' Sort data frame by season
#'
#' Sort data frame by season, specifically by the season_open_date
#'
#' @param x data frame that at minimum contains a 'season_name' column
#' @param season.info season.info data frame
#' @param ... additional tidyselect arguments passed to arrange(), after desc(season_open_date)
#' @pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract.R
\name{extractIcon}
\alias{extractIcon}
\title{Extract icon from macro}
\usage{
extractIcon(yxmc, out)
}
\arguments{
\item{yxmc}{path to yxmc file}
\item{out}{icon file to write out to}
}
\description{
Extract icon from macro
}
| /man/extractIcon.Rd | permissive | KrishAK47/jeeves | R | false | true | 316 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract.R
\name{extractIcon}
\alias{extractIcon}
\title{Extract icon from macro}
\usage{
extractIcon(yxmc, out)
}
\arguments{
\item{yxmc}{path to yxmc file}
\item{out}{icon file to write out to}
}
\description{
Extract icon from macro
}
|
if(!"nData" %in% ls())
{
nData <- readRDS("summarySCC_PM25.rds")
}
if(!"sourceData" %in% ls())
{
sourceData <- readRDS("Source_Classification_Code.rds")
}
# Question 6
# Compare emissions from motor vehicle sources in Baltimore City with emissions from motor vehicle sources in Los Angeles County, California... | /plot6.R | no_license | omgitsdev/ExData_Plotting2 | R | false | false | 1,056 | r |
if(!"nData" %in% ls())
{
nData <- readRDS("summarySCC_PM25.rds")
}
if(!"sourceData" %in% ls())
{
sourceData <- readRDS("Source_Classification_Code.rds")
}
# Question 6
# Compare emissions from motor vehicle sources in Baltimore City with emissions from motor vehicle sources in Los Angeles County, California... |
n <- 5
filler <- matrix("-", nrow = n, ncol = n,
dimnames = list(NULL, paste0("V", seq_len(n))))
googlesheets::gs_auth(token = "shiny_app_token.rds")
sheet_key <- NA # string with google sheets key
ss <- googlesheets::gs_key(sheet_key) | /global.R | no_license | David-LiCause/RShiny-Travel-Photo-Journal | R | false | false | 261 | r |
n <- 5
filler <- matrix("-", nrow = n, ncol = n,
dimnames = list(NULL, paste0("V", seq_len(n))))
googlesheets::gs_auth(token = "shiny_app_token.rds")
sheet_key <- NA # string with google sheets key
ss <- googlesheets::gs_key(sheet_key) |
\name{NSBM.Gen}
\alias{NSBM.Gen}
\title{
Generates networks from nomination stochastic block model
}
\description{
Generates networks from nomination stochastic block model for community structure in edge nomination procedures, proposed in Li et. al. (2020)
}
\usage{
NSBM.Gen( n, K, avg.d,beta,theta.low=0.1,
theta.... | /man/NSBM.Gen.Rd | no_license | cran/randnet | R | false | false | 1,680 | rd | \name{NSBM.Gen}
\alias{NSBM.Gen}
\title{
Generates networks from nomination stochastic block model
}
\description{
Generates networks from nomination stochastic block model for community structure in edge nomination procedures, proposed in Li et. al. (2020)
}
\usage{
NSBM.Gen( n, K, avg.d,beta,theta.low=0.1,
theta.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectools.R
\name{replace_in_spec}
\alias{replace_in_spec}
\title{Razor-like template for diagram specification}
\usage{
replace_in_spec(spec)
}
\arguments{
\item{spec}{string spec to be parsed and evaluated}
}
\description{
Use Razor-like sy... | /man/replace_in_spec.Rd | permissive | carlosal1015/DiagrammeR | R | false | true | 870 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectools.R
\name{replace_in_spec}
\alias{replace_in_spec}
\title{Razor-like template for diagram specification}
\usage{
replace_in_spec(spec)
}
\arguments{
\item{spec}{string spec to be parsed and evaluated}
}
\description{
Use Razor-like sy... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rgl-3d.r
\name{rglDrawStandardAxes}
\alias{rglDrawStandardAxes}
\title{Draw standard axes in the origin in an rgl plot.}
\usage{
rglDrawStandardAxes(max.dim = 1, lwd = 1, a.cex = 1.1,
a.col = "black", a.radius = 0.05, labels = TRUE, spheres... | /man/rglDrawStandardAxes.Rd | no_license | artoo-git/OpenRepGrid | R | false | true | 811 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rgl-3d.r
\name{rglDrawStandardAxes}
\alias{rglDrawStandardAxes}
\title{Draw standard axes in the origin in an rgl plot.}
\usage{
rglDrawStandardAxes(max.dim = 1, lwd = 1, a.cex = 1.1,
a.col = "black", a.radius = 0.05, labels = TRUE, spheres... |
children <- function(node, G, topo) {
ch.ind <- unique(unlist(igraph::neighborhood(G, order = 1, nodes = node, mode = "out")))
ch <- igraph::V(G)[ch.ind]$name
ch <- ch %ts% topo
return(ch)
}
children_unsrt <- function(node, G) {
ch.ind <- unique(unlist(igraph::neighborhood(G, order = 1, nodes = node,... | /R/children.R | no_license | cran/causaleffect | R | false | false | 388 | r | children <- function(node, G, topo) {
ch.ind <- unique(unlist(igraph::neighborhood(G, order = 1, nodes = node, mode = "out")))
ch <- igraph::V(G)[ch.ind]$name
ch <- ch %ts% topo
return(ch)
}
children_unsrt <- function(node, G) {
ch.ind <- unique(unlist(igraph::neighborhood(G, order = 1, nodes = node,... |
# Tabla de probabilidad de la distribucion normal estandar
id <- 0:4
dn <- seq(0, .8, by =.2)
p = outer(id, dn, function(x,y) pnorm(x + y))
dimnames(p) = list(z = id, "Primer lugar decimal de z " = dn)
p = round(p, 5) | /P-Laboratorio/tabla-Z.R | no_license | EnriqueU/Curso-R | R | false | false | 218 | r | # Tabla de probabilidad de la distribucion normal estandar
id <- 0:4
dn <- seq(0, .8, by =.2)
p = outer(id, dn, function(x,y) pnorm(x + y))
dimnames(p) = list(z = id, "Primer lugar decimal de z " = dn)
p = round(p, 5) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{sports}
\alias{sports}
\title{Rank data: sports}
\format{
A list containing:
\describe{
\item{data}{a matrix containing 130 ranks of size 7 in ranking representation.
The ranking representation r=(... | /fuzzedpackages/Rankcluster/man/sports.Rd | no_license | akhikolla/testpackages | R | false | true | 1,475 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{sports}
\alias{sports}
\title{Rank data: sports}
\format{
A list containing:
\describe{
\item{data}{a matrix containing 130 ranks of size 7 in ranking representation.
The ranking representation r=(... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /mepstrends/hc_care/json/code/r/totPOP__insurance__adult_routine__.r | permissive | HHS-AHRQ/MEPS-summary-tables | R | false | false | 2,634 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
#' List B2 File Names.
#'
#' \code{b2ListFileNames} lists the names of all files in a bucket, starting at
#' a given name.
#'
#' This function lists the names of all files in a bucket, starting at a given
#' name, within a user's account on the Backblaze B2 cloud storage product.
#' There may be many file versions for ... | /R/b2ListFileNames.R | no_license | cran/backblazer | R | false | false | 3,687 | r | #' List B2 File Names.
#'
#' \code{b2ListFileNames} lists the names of all files in a bucket, starting at
#' a given name.
#'
#' This function lists the names of all files in a bucket, starting at a given
#' name, within a user's account on the Backblaze B2 cloud storage product.
#' There may be many file versions for ... |
###############################
## Prabhat Menon - PREDICT 413, Winter 2016
## Assignment 2: Further explore STL and TS patterns
### Problem 1 ###
# Load the package.
library(fBasics)
par(mfrow=c(1,1))
# User defined function based on Assignment 1 solution by Leslie Cervantes, TA
print.summary <- function(dat,vars) {... | /PrabhatMenon_Week02.R | no_license | prabhatmenon/predict | R | false | false | 3,420 | r | ###############################
## Prabhat Menon - PREDICT 413, Winter 2016
## Assignment 2: Further explore STL and TS patterns
### Problem 1 ###
# Load the package.
library(fBasics)
par(mfrow=c(1,1))
# User defined function based on Assignment 1 solution by Leslie Cervantes, TA
print.summary <- function(dat,vars) {... |
library(mice)
### Name: windspeed
### Title: Subset of Irish wind speed data
### Aliases: windspeed
### Keywords: datasets
### ** Examples
windspeed[1:3,]
| /data/genthat_extracted_code/mice/examples/windspeed.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 164 | r | library(mice)
### Name: windspeed
### Title: Subset of Irish wind speed data
### Aliases: windspeed
### Keywords: datasets
### ** Examples
windspeed[1:3,]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.