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(data.table)
require(plyr)
features<-read.table("UCI HAR Dataset/features.txt")
activity_labels<-read.table("UCI HAR Dataset/activity_labels.txt")
names(activity_labels)<-c("activity","description")
test_data<-read.table("UCI HAR Dataset/test/X_test.txt",header=F)
train_data<-read.table("UCI HAR Dataset/train/X_... | /run_Analysis.R | no_license | gzaifa/datacleaning | R | false | false | 1,988 | r | require(data.table)
require(plyr)
features<-read.table("UCI HAR Dataset/features.txt")
activity_labels<-read.table("UCI HAR Dataset/activity_labels.txt")
names(activity_labels)<-c("activity","description")
test_data<-read.table("UCI HAR Dataset/test/X_test.txt",header=F)
train_data<-read.table("UCI HAR Dataset/train/X_... |
library(settings)
opt <- options_manager(foo=1,bar=2)
expect_error(opt("baz"),
pattern="baz",
info="Options that do not exist give an error.")
opt <- options_manager(foo=1,bar=NULL)
expect_null(opt("bar"),
info="Initially setting an option to NULL works (individual option output)... | /inst/tinytest/test_NULL.R | no_license | cran/settings | R | false | false | 803 | r | library(settings)
opt <- options_manager(foo=1,bar=2)
expect_error(opt("baz"),
pattern="baz",
info="Options that do not exist give an error.")
opt <- options_manager(foo=1,bar=NULL)
expect_null(opt("bar"),
info="Initially setting an option to NULL works (individual option output)... |
library(heplots)
### Name: SocGrades
### Title: Grades in a Sociology Course
### Aliases: SocGrades
### Keywords: datasets
### ** Examples
data(SocGrades)
# basic MLM
grades.mod <- lm(cbind(midterm1, midterm2, final, eval) ~
class + sex + gpa + boards + hssoc + pretest, data=SocGrades)
Anova(grades.mod, test="R... | /data/genthat_extracted_code/heplots/examples/SocGrades.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 968 | r | library(heplots)
### Name: SocGrades
### Title: Grades in a Sociology Course
### Aliases: SocGrades
### Keywords: datasets
### ** Examples
data(SocGrades)
# basic MLM
grades.mod <- lm(cbind(midterm1, midterm2, final, eval) ~
class + sex + gpa + boards + hssoc + pretest, data=SocGrades)
Anova(grades.mod, test="R... |
#' Plot Function
#'
#' This function plots a numeric function that takes a numeric input.
#' @param f a function
#' @param start value at which to begin plotting
#' @param end value at which to stop plotting
#' @param res resolution of the plot
#' @param ... additional arguments to be passed to \code{f}
#' @export
#' @... | /R/plot_fns.r | no_license | galangjs/galangjs | R | false | false | 972 | r | #' Plot Function
#'
#' This function plots a numeric function that takes a numeric input.
#' @param f a function
#' @param start value at which to begin plotting
#' @param end value at which to stop plotting
#' @param res resolution of the plot
#' @param ... additional arguments to be passed to \code{f}
#' @export
#' @... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustered.graphs.R
\name{clustered_graphs}
\alias{clustered_graphs}
\alias{clustered_graphs.list}
\alias{clustered_graphs.egor}
\alias{clustered_graphs.data.frame}
\title{Cluster ego-centered networks by a grouping factor}
\usage{
clustered_g... | /man/clustered_graphs.Rd | no_license | romainfrancois/egor | R | false | true | 2,238 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustered.graphs.R
\name{clustered_graphs}
\alias{clustered_graphs}
\alias{clustered_graphs.list}
\alias{clustered_graphs.egor}
\alias{clustered_graphs.data.frame}
\title{Cluster ego-centered networks by a grouping factor}
\usage{
clustered_g... |
# Accomplish the following three goals:
#
# 1. select() all columns that do NOT contain the word "total",
# since if we have the male and female data, we can always
# recreate the total count in a separate column, if we want it.
# Hint: Use the contains() function, which you'll
# find detailed in 'Special functio... | /4.4-Tidying_Data_with_tidyr/scripts/script8.R | no_license | mktopuz/AnalyticsProgramming2020 | R | false | false | 785 | r | # Accomplish the following three goals:
#
# 1. select() all columns that do NOT contain the word "total",
# since if we have the male and female data, we can always
# recreate the total count in a separate column, if we want it.
# Hint: Use the contains() function, which you'll
# find detailed in 'Special functio... |
# the read input code. note skip doesn't count header row, and inpput starts row AFTER it
DF1 <- read.table("household_power_consumption.txt", sep = ";",
quote="", header=TRUE, na.strings = "?",
skip= 66636, nrows= 2880, col.names=c("Date","Time","Global_active_power","Global_reac... | /ExData_Plotting1/plot2.R | no_license | tecso/ExData_Plotting1 | R | false | false | 1,207 | r |
# the read input code. note skip doesn't count header row, and inpput starts row AFTER it
DF1 <- read.table("household_power_consumption.txt", sep = ";",
quote="", header=TRUE, na.strings = "?",
skip= 66636, nrows= 2880, col.names=c("Date","Time","Global_active_power","Global_reac... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/agg_dev.R
\name{agg_tiff}
\alias{agg_tiff}
\title{Draw to a TIFF file}
\usage{
agg_tiff(
filename = "Rplot\%03d.tiff",
width = 480,
height = 480,
units = "px",
pointsize = 12,
background = "white",
res = 72,
scaling = 1,
com... | /man/agg_tiff.Rd | permissive | isabella232/ragg | R | false | true | 3,303 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/agg_dev.R
\name{agg_tiff}
\alias{agg_tiff}
\title{Draw to a TIFF file}
\usage{
agg_tiff(
filename = "Rplot\%03d.tiff",
width = 480,
height = 480,
units = "px",
pointsize = 12,
background = "white",
res = 72,
scaling = 1,
com... |
fa5b0028db4a425c088c5809baae7593 biu.mv.xl_ao.bb-b003-p020-IPF01-c05.blif-biu.inv.prop.bb-bmc.conf06.01X-QBF.BB1-01X.BB2-Zi.BB3-Zi.with-IOC.unfold-003.qdimacs 5360 9658 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Herbstritt/blackbox-01X-QBF/biu.mv.xl_ao.bb-b003-p020-IPF01-c05.blif-biu.inv.prop.bb-bmc.conf06.01X-QBF.BB1-01X.BB2-Zi.BB3-Zi.with-IOC.unfold-003/biu.mv.xl_ao.bb-b003-p020-IPF01-c05.blif-biu.inv.prop.bb-bmc.conf06.01X-QBF.BB1-01X.BB2-Zi.BB3-Zi.with-IOC.unfold-0... | no_license | arey0pushpa/dcnf-autarky | R | false | false | 168 | r | fa5b0028db4a425c088c5809baae7593 biu.mv.xl_ao.bb-b003-p020-IPF01-c05.blif-biu.inv.prop.bb-bmc.conf06.01X-QBF.BB1-01X.BB2-Zi.BB3-Zi.with-IOC.unfold-003.qdimacs 5360 9658 |
## ========================================
## Read a TDA output into a distance matrix
## ========================================
read.tda.mdist <- function(file) {
tmp <- read.table(file=file,header=FALSE)
Y <- nrow(tmp)
d <- 1+8*Y
n <- (1+sqrt(d))/2
cat(" [>] reading a",n,"x",n,"matrix\n")
m <- matrix(nrow=... | /R/read.tda.mdist.R | no_license | cran/TraMineR | R | false | false | 471 | r | ## ========================================
## Read a TDA output into a distance matrix
## ========================================
read.tda.mdist <- function(file) {
tmp <- read.table(file=file,header=FALSE)
Y <- nrow(tmp)
d <- 1+8*Y
n <- (1+sqrt(d))/2
cat(" [>] reading a",n,"x",n,"matrix\n")
m <- matrix(nrow=... |
#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!
#
# DO NOT CHANGE ANYTHING BENEATH HERE (unless you know what you are doing)!!!
#
# DO NOT RUN THIS FILE AS A STAND-ALONE SCRIPT. THIS IS CALLED WHEN THE
# LS_Open_Analsyis_Template.Rmd FILE IS RENDERED FROM LS_Open_Analysis.R.
#
# THIS ... | /LSuperior/Helpers/LS_Open_DataPrep.R | no_license | droglenc/WiDNR_Creel | R | false | false | 19,953 | r | #!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!#!-!
#
# DO NOT CHANGE ANYTHING BENEATH HERE (unless you know what you are doing)!!!
#
# DO NOT RUN THIS FILE AS A STAND-ALONE SCRIPT. THIS IS CALLED WHEN THE
# LS_Open_Analsyis_Template.Rmd FILE IS RENDERED FROM LS_Open_Analysis.R.
#
# THIS ... |
###########################################################################/**
# @RdocDefault removeDirectory
#
# @title "Removes a directory"
#
# \description{
# @get "title", and if requested, also its contents.
# }
#
# @synopsis
#
# \arguments{
# \item{path}{A @character string specifying the directory to be remo... | /R.utils/R/removeDirectory.R | no_license | ingted/R-Examples | R | false | false | 3,472 | r | ###########################################################################/**
# @RdocDefault removeDirectory
#
# @title "Removes a directory"
#
# \description{
# @get "title", and if requested, also its contents.
# }
#
# @synopsis
#
# \arguments{
# \item{path}{A @character string specifying the directory to be remo... |
#' @rdname e_bar
#' @export
e_bar_ <- function(e, serie, bind = NULL, name = NULL, legend = TRUE, y_index = 0, x_index = 0,
coord_system = "cartesian2d", ...) {
if(missing(e))
stop("must pass e", call. = FALSE)
if(missing(serie))
stop("must pass serie", call. = FALSE)
for(i in... | /R/add_.R | permissive | Alex33261/echarts4r | R | false | false | 52,934 | r | #' @rdname e_bar
#' @export
e_bar_ <- function(e, serie, bind = NULL, name = NULL, legend = TRUE, y_index = 0, x_index = 0,
coord_system = "cartesian2d", ...) {
if(missing(e))
stop("must pass e", call. = FALSE)
if(missing(serie))
stop("must pass serie", call. = FALSE)
for(i in... |
library(tidyverse)
library(rwebppl)
rm(list=ls())
set.seed(4)
hm_trials <- 2
simexp.df <- data.frame(probA=rbeta(hm_trials,1,1),
payoffA=rnorm(hm_trials,100,20),
probB=rbeta(hm_trials,1,1),
payoffB=rnorm(hm_trials,100,20),
... | /todo_cleansewithfire/sandpitzone/multiple_samples/run_seqsampler.R | no_license | stevenlangsford/contextprefs | R | false | false | 516 | r | library(tidyverse)
library(rwebppl)
rm(list=ls())
set.seed(4)
hm_trials <- 2
simexp.df <- data.frame(probA=rbeta(hm_trials,1,1),
payoffA=rnorm(hm_trials,100,20),
probB=rbeta(hm_trials,1,1),
payoffB=rnorm(hm_trials,100,20),
... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
lambertW0_C <- function(x) {
.Call(`_lamW_lambertW0_C`, x)
}
lambertWm1_C <- function(x) {
.Call(`_lamW_lambertWm1_C`, x)
}
# Register entry points for exported C++ functio... | /R/RcppExports.R | no_license | cran/lamW | R | false | false | 416 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
lambertW0_C <- function(x) {
.Call(`_lamW_lambertW0_C`, x)
}
lambertWm1_C <- function(x) {
.Call(`_lamW_lambertWm1_C`, x)
}
# Register entry points for exported C++ functio... |
#### Sampling Delta
# the effort induced by streets in terms of pseudo distance
# 1 step of metropolis in the gibbs sampler
# using a gaussian proposal and a gaussian prior for Delta
source("morans_functions.r")
# source("/home/cbarbu/Documents/outils/programmation/R/morans_functions.r")
# pseudo log likelihood for a... | /archive/DeltaSampling.r | no_license | JavierQC/spatcontrol | R | false | false | 5,170 | r | #### Sampling Delta
# the effort induced by streets in terms of pseudo distance
# 1 step of metropolis in the gibbs sampler
# using a gaussian proposal and a gaussian prior for Delta
source("morans_functions.r")
# source("/home/cbarbu/Documents/outils/programmation/R/morans_functions.r")
# pseudo log likelihood for a... |
####---------------------------
#### ggplot Version -----------
####---------------------------
## Import files, load plot and data packages, fire up the number machine.
# setwd("~/Dropbox/R/Perceptions of Probability")
setwd(choose.dir())
probly_url <- 'https://github.com/Leo-Lee15/perceptions/blob/master/probly.csv... | /percept.R | permissive | Leo-Lee15/perceptions | R | false | false | 6,840 | r | ####---------------------------
#### ggplot Version -----------
####---------------------------
## Import files, load plot and data packages, fire up the number machine.
# setwd("~/Dropbox/R/Perceptions of Probability")
setwd(choose.dir())
probly_url <- 'https://github.com/Leo-Lee15/perceptions/blob/master/probly.csv... |
#' print-float32
#'
#' Print methods for float vector/matrices.
#'
#' @param x,object
#' A float vector/matrix.
#' @param ...
#' Ignored.
#'
#' @examples
#' library(float)
#'
#' s = flrunif(10, 3)
#' print(s)
#' s
#'
#' @name print-float32
#' @rdname print-float32
NULL
print_float_vec = function(x)
{
n = NROW... | /R/print.r | permissive | cdeterman/float | R | false | false | 1,868 | r | #' print-float32
#'
#' Print methods for float vector/matrices.
#'
#' @param x,object
#' A float vector/matrix.
#' @param ...
#' Ignored.
#'
#' @examples
#' library(float)
#'
#' s = flrunif(10, 3)
#' print(s)
#' s
#'
#' @name print-float32
#' @rdname print-float32
NULL
print_float_vec = function(x)
{
n = NROW... |
#' @title Runs the rchic
#'
#' @description Runs the rchic GUI (see the following figure) to be able to select all the options and all the computation.
#'
#'
#' @details With this GUI, one can select the three main types of computation of rchic:
#' \itemize{
#' \item{the similarity tree}
#' \item{the hierarchy... | /R/rchic.R | no_license | pablogregori/Rchic | R | false | false | 6,421 | r | #' @title Runs the rchic
#'
#' @description Runs the rchic GUI (see the following figure) to be able to select all the options and all the computation.
#'
#'
#' @details With this GUI, one can select the three main types of computation of rchic:
#' \itemize{
#' \item{the similarity tree}
#' \item{the hierarchy... |
prep_boxes <- function(listin) {
outdf_home <- listin %>% map(function(x)
x$home = suppressWarnings(data.frame(
team = x[['meta']][1], x[['home']],
stringsAsFactors = FALSE
))) %>%
bind_rows(.id = 'gameid') %>% as_tibble() %>%
mutate(gameid = paste0((
listin[[1]]$meta['date'] %>% str... | /prep_boxes.R | no_license | stharms/college_basketball | R | false | false | 1,063 | r | prep_boxes <- function(listin) {
outdf_home <- listin %>% map(function(x)
x$home = suppressWarnings(data.frame(
team = x[['meta']][1], x[['home']],
stringsAsFactors = FALSE
))) %>%
bind_rows(.id = 'gameid') %>% as_tibble() %>%
mutate(gameid = paste0((
listin[[1]]$meta['date'] %>% str... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apsimx_soil_profile.R
\name{apsimx_soil_profile}
\alias{apsimx_soil_profile}
\alias{plot.soil_profile}
\title{Create APSIM-X Soil Profiles}
\usage{
apsimx_soil_profile(nlayers = 10, Depth = NULL, Thickness = NULL,
BD = NULL, AirDry = NULL, ... | /man/apsimx_soil_profile.Rd | no_license | ShiruiH/apsimx | R | false | true | 4,147 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apsimx_soil_profile.R
\name{apsimx_soil_profile}
\alias{apsimx_soil_profile}
\alias{plot.soil_profile}
\title{Create APSIM-X Soil Profiles}
\usage{
apsimx_soil_profile(nlayers = 10, Depth = NULL, Thickness = NULL,
BD = NULL, AirDry = NULL, ... |
Var_calculation<-function(d,p=0.05,nu=1000000,normal=TRUE,cf=FALSE)
{
library(moments)
library(fGarch)
mu<-mean(d)
sigma<-sd(d)
if (normal)
{
if (nu<1000000) nu=1000000
prob_inverse<-qnorm(p)
if (cf)
prob_inverse<-prob_inverse+(prob_inverse^2-1)*(skewness(d)/6)+
... | /VAR/Var_calculation.R | no_license | Aurilino/R | R | false | false | 575 | r | Var_calculation<-function(d,p=0.05,nu=1000000,normal=TRUE,cf=FALSE)
{
library(moments)
library(fGarch)
mu<-mean(d)
sigma<-sd(d)
if (normal)
{
if (nu<1000000) nu=1000000
prob_inverse<-qnorm(p)
if (cf)
prob_inverse<-prob_inverse+(prob_inverse^2-1)*(skewness(d)/6)+
... |
test <- function(nearest.mRNA_list, mRNP.rate){
#output = vector("list", length(nearest.mRNA_list) )
valency=1:4
if( isEmpty(nearest.mRNA_list) ){ 0 }
for (i in 1:length(nearest.mRNA_list)){
filter <- sample(0:1, 1, prob = c(1-mRNP.rate, mRNP.rate) )
if (filter == 1) {
valency.node = ... | /granule-functions/deleteme.R | no_license | apadr007/GranMod | R | false | false | 991 | r | test <- function(nearest.mRNA_list, mRNP.rate){
#output = vector("list", length(nearest.mRNA_list) )
valency=1:4
if( isEmpty(nearest.mRNA_list) ){ 0 }
for (i in 1:length(nearest.mRNA_list)){
filter <- sample(0:1, 1, prob = c(1-mRNP.rate, mRNP.rate) )
if (filter == 1) {
valency.node = ... |
source('lib/code.R')
args <- commandArgs(trailingOnly=TRUE)
set.seed(as.integer(args[2]))
thrombo <- readRDS('data/thrombo-problem.rds')
opts <- dget('run/thrombo-opts.R')
cuts <- get.cuts(thrombo$w.exact, opts$cuts, thrombo$meas, opts$planes, equal.w.prob=FALSE, sample.planes=sample.planes.unrestricted.shakeandbake... | /elicitation/run/thrombo-voluprob.R | no_license | tommite/pubs-code | R | false | false | 413 | r | source('lib/code.R')
args <- commandArgs(trailingOnly=TRUE)
set.seed(as.integer(args[2]))
thrombo <- readRDS('data/thrombo-problem.rds')
opts <- dget('run/thrombo-opts.R')
cuts <- get.cuts(thrombo$w.exact, opts$cuts, thrombo$meas, opts$planes, equal.w.prob=FALSE, sample.planes=sample.planes.unrestricted.shakeandbake... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_nifti.R
\name{write_nifti}
\alias{write_nifti}
\title{General NIfTI Writer}
\usage{
write_nifti(nim, filename, ...)
}
\arguments{
\item{nim}{Container for NIfTI Image}
\item{filename}{Filename of image to be written out}
\item{...}{ad... | /man/write_nifti.Rd | no_license | muschellij2/neurobase | R | false | true | 837 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_nifti.R
\name{write_nifti}
\alias{write_nifti}
\title{General NIfTI Writer}
\usage{
write_nifti(nim, filename, ...)
}
\arguments{
\item{nim}{Container for NIfTI Image}
\item{filename}{Filename of image to be written out}
\item{...}{ad... |
# Read in data
polling = read.csv("PollingData.csv")
str(polling)
table(polling$Year)
summary(polling)
# Install and load mice package
install.packages("mice")
library(mice)
# Multiple imputation
simple = polling[c("Rasmussen", "SurveyUSA", "PropR", "DiffCount")]
summary(simple)
set.seed(144)
imputed = complete(mice(... | /Prediction_of_US_Prez_Election.R | no_license | sujayyaji/Prediction-of-Winner-of-US-Presedential-Election | R | false | false | 1,519 | r | # Read in data
polling = read.csv("PollingData.csv")
str(polling)
table(polling$Year)
summary(polling)
# Install and load mice package
install.packages("mice")
library(mice)
# Multiple imputation
simple = polling[c("Rasmussen", "SurveyUSA", "PropR", "DiffCount")]
summary(simple)
set.seed(144)
imputed = complete(mice(... |
############################
# add in cost of THP and NTMP
############################
###
### THP
###
############################
library(tidyverse)
thp <- read_csv("input/CALFIRE_THPS.csv")
ntmp <- read_csv("input/CALFIRE_NTMPS.csv")
#### we need to rethink the weighted sum: this is waaaaaaay over estimati... | /pre_process/calc_plan_cost.R | no_license | kylemonper/EDF-forest-mgmt | R | false | false | 1,675 | r | ############################
# add in cost of THP and NTMP
############################
###
### THP
###
############################
library(tidyverse)
thp <- read_csv("input/CALFIRE_THPS.csv")
ntmp <- read_csv("input/CALFIRE_NTMPS.csv")
#### we need to rethink the weighted sum: this is waaaaaaay over estimati... |
includes <- seq(1, 486, 1)
| /2017-TAR/participant-runs/AMC/clef-finals/rf_selection.R | permissive | CLEF-TAR/tar | R | false | false | 27 | r | includes <- seq(1, 486, 1)
|
map = user_param ('mapkey', 'Map', 'point_map')
cuts=c(0,20,50,200,500,2000)
grys <- grey.colors(7, 0.90, 0.50, 2.2)
print(spplot(map[7:14], main = "precip", cuts=cuts, cex=.5, col.regions=grys),
split=c(1,1,2,1),more=T) | /online/precip_months.R | no_license | dotskapes/geolytic | R | false | false | 227 | r | map = user_param ('mapkey', 'Map', 'point_map')
cuts=c(0,20,50,200,500,2000)
grys <- grey.colors(7, 0.90, 0.50, 2.2)
print(spplot(map[7:14], main = "precip", cuts=cuts, cex=.5, col.regions=grys),
split=c(1,1,2,1),more=T) |
rm(list=ls())
library(rjags)
library(jagsUI)
library(dplyr)
# Run model 8.2 in MECAL dataset
# ---- I ignore counts in each observation (cluster size)
# ---- Data ----
setwd("C:/Users/ana.sanz/OneDrive/PhD/Second chapter/Data")
d <- read.csv("DataDS_ready.csv")
# Information: bins, years, sites
strip.width <- 20... | /Ch. 2-3/Ch. 3/Data/Species-specific/COGAR/8.3. D_COGAR200_x[dcat_area_integralBin]_sigma[obs(j,t)_covZone(j)]_lambda[alpha(j)_covZone(j)_covArea(j,t)].r | no_license | anasanz/MyScripts | R | false | false | 16,620 | r |
rm(list=ls())
library(rjags)
library(jagsUI)
library(dplyr)
# Run model 8.2 in MECAL dataset
# ---- I ignore counts in each observation (cluster size)
# ---- Data ----
setwd("C:/Users/ana.sanz/OneDrive/PhD/Second chapter/Data")
d <- read.csv("DataDS_ready.csv")
# Information: bins, years, sites
strip.width <- 20... |
# pdx.ql.rf2.final.R
library(caret)
library(randomForest)
library(stringi)
# this function performs Q-learning on PDX data
# need to supply to the function a cancer type, one of
# "BRCA", "CM", "CRC", "NSCLC", or "PDAC"
# and an outcome, one of "BAR" for best average response
# or "Surv" for survival
# g... | /PDX.Code/pdx.ql.rf2.final.R | no_license | jasa-acs/High-Dimensional-Precision-Medicine-From-Patient-Derived-Xenografts | R | false | false | 15,369 | r | # pdx.ql.rf2.final.R
library(caret)
library(randomForest)
library(stringi)
# this function performs Q-learning on PDX data
# need to supply to the function a cancer type, one of
# "BRCA", "CM", "CRC", "NSCLC", or "PDAC"
# and an outcome, one of "BAR" for best average response
# or "Surv" for survival
# g... |
testlist <- list(n = 1650614882L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) | /breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609962555-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 98 | r | testlist <- list(n = 1650614882L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) |
library(dplyr)
library(data.table)
library(glue)
ddf <- readRDS("/Volumes/GoogleDrive/My Drive/SCEPTIC_fMRI/dan_medusa/dan_parcels_clock_encode_medusa_fmri.rds")
analysis_dir <- "~/Data_Analysis/clock_analysis/fmri/keuka_brain_behavior_analyses/dan/medusa_final"
#analysis_dir <- "/proj/mnhallqlab/projects/clock_analy... | /fmri/keuka_brain_behavior_analyses/dan/medusa_final/parcel_medusa_behavior.R | no_license | UNCDEPENdLab/clock_analysis | R | false | false | 2,140 | r | library(dplyr)
library(data.table)
library(glue)
ddf <- readRDS("/Volumes/GoogleDrive/My Drive/SCEPTIC_fMRI/dan_medusa/dan_parcels_clock_encode_medusa_fmri.rds")
analysis_dir <- "~/Data_Analysis/clock_analysis/fmri/keuka_brain_behavior_analyses/dan/medusa_final"
#analysis_dir <- "/proj/mnhallqlab/projects/clock_analy... |
rm(list=ls())
library(gdata) # needed for drop_levels()
library(reshape) # reshape library inclues the cast() function used below
#LOAD LIBRARY FUNCTIONS ...
source("lib/fish_team_functions.R")
#source("lib/Islandwide Mean&Variance Functions.R")
# get strata and sectors data data - NB - the da... | /data_pre-processing/munge/03_gitFishREACleanData.R | no_license | adelheenan/reef-indicators-master | R | false | false | 8,797 | r | rm(list=ls())
library(gdata) # needed for drop_levels()
library(reshape) # reshape library inclues the cast() function used below
#LOAD LIBRARY FUNCTIONS ...
source("lib/fish_team_functions.R")
#source("lib/Islandwide Mean&Variance Functions.R")
# get strata and sectors data data - NB - the da... |
# normative group data to interpret score
# raw data "BIG5" downloaded from:
# https://openpsychometrics.org/_rawdata/
library(magrittr)
# correct response-columns' order
response_cols <- unlist(lapply(
1:10,
function(i) { paste(c("E", "A", "C", "N", "O"), i, sep = "") }
))
# keep only some columns
cols <- c(n... | /data-raw/norm.R | no_license | flujoo/personr | R | false | false | 595 | r | # normative group data to interpret score
# raw data "BIG5" downloaded from:
# https://openpsychometrics.org/_rawdata/
library(magrittr)
# correct response-columns' order
response_cols <- unlist(lapply(
1:10,
function(i) { paste(c("E", "A", "C", "N", "O"), i, sep = "") }
))
# keep only some columns
cols <- c(n... |
#' Prepares the dataset to perform ENM
#'
#' This function takes the occurrence points files and the predictor layers and
#' executes data cleaning, data partitioning, pseudo-absence point sampling and
#' variable selection according to their correlation. It saves the metadata and
#' sdmdata files into the hard disk.
#... | /R/setup_sdmdata.R | no_license | townpeterson/modleR | R | false | false | 17,395 | r | #' Prepares the dataset to perform ENM
#'
#' This function takes the occurrence points files and the predictor layers and
#' executes data cleaning, data partitioning, pseudo-absence point sampling and
#' variable selection according to their correlation. It saves the metadata and
#' sdmdata files into the hard disk.
#... |
### Getting & Cleaning Data Assignment - 02/19/2015
###run_analysis.R
### Merge Training and test Data set
### set working directory appropriately
#setwd("~/coursera/Getting and Cleaning Data/Assignment1/getting_and_cleaning_data_assign1")
#------------------------------------------------------------------------------... | /run_analysis.R | permissive | reddytkv/getting_and_cleaning_data_assign1 | R | false | false | 3,524 | r | ### Getting & Cleaning Data Assignment - 02/19/2015
###run_analysis.R
### Merge Training and test Data set
### set working directory appropriately
#setwd("~/coursera/Getting and Cleaning Data/Assignment1/getting_and_cleaning_data_assign1")
#------------------------------------------------------------------------------... |
testlist <- list(bytes1 = integer(0), pmutation = NaN)
result <- do.call(mcga:::ByteCodeMutation,testlist)
str(result) | /mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612887549-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 118 | r | testlist <- list(bytes1 = integer(0), pmutation = NaN)
result <- do.call(mcga:::ByteCodeMutation,testlist)
str(result) |
### plot2.R
###
## initializing
# setwd("c:/Users/tn93760/Desktop/Coursera/M4 Exploratory Data Analysis/")
library(readr)
library(dplyr)
library(lubridate)
### estimating the memory needed to load the file
### adapted with pride from http://stackoverflow.com/questions/25674221/predict-memory-usage-in-r
# top.size <- o... | /plot2.R | no_license | kvdgoten/ExData_Plotting1 | R | false | false | 2,226 | r | ### plot2.R
###
## initializing
# setwd("c:/Users/tn93760/Desktop/Coursera/M4 Exploratory Data Analysis/")
library(readr)
library(dplyr)
library(lubridate)
### estimating the memory needed to load the file
### adapted with pride from http://stackoverflow.com/questions/25674221/predict-memory-usage-in-r
# top.size <- o... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 17037
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 17036
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 17036
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Basler/terminator/stmt21_262_413/stmt21_262_413.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 720 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 17037
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 17036
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 17036
c
c Input Parameter (command line, ... |
### ============================================================================
# Biomet data gapfilling =======================================================
### ============================================================================
# Purpose:
# References:
# Franz, D., Koebsch, F., Larmanou, E., Augustin... | /processing/04_biomet_gapfill.R | no_license | gstewart12/delmarva-baywatch | R | false | false | 40,806 | r | ### ============================================================================
# Biomet data gapfilling =======================================================
### ============================================================================
# Purpose:
# References:
# Franz, D., Koebsch, F., Larmanou, E., Augustin... |
# server.R
library(babynames)
library(dplyr)
library(ggplot2)
shinyServer(function(input, output) {
names <- reactive({
filter(babynames, name == input$name)
})
output$trend <- renderPlot({
qplot(year, n, data = names(), geom ="line", color = sex) + theme_bw()
})
output$total <- renderText({... | /r-day/shiny/finished-apps/3-names-app-layout/server.R | no_license | CTVisMe/DataScienceRepo | R | false | false | 429 | r | # server.R
library(babynames)
library(dplyr)
library(ggplot2)
shinyServer(function(input, output) {
names <- reactive({
filter(babynames, name == input$name)
})
output$trend <- renderPlot({
qplot(year, n, data = names(), geom ="line", color = sex) + theme_bw()
})
output$total <- renderText({... |
library("ballgown")
args <- commandArgs(T)
sample_label <- args[1]
sample_path <- args[2]
file_mRNA_out <- args[3]
file_gene_out <- args[4]
sample_paths <- c(sample_path)
#sample_label <- "GSM1571988"
#sample_paths <- c("GSM1571988")
#file_mRNA_out <- "a.txt"
#file_gene_out <- "b.txt"
bg <- ballgown(sample_paths)... | /script/extract_rpkm_from_ballgown.R | no_license | WeipengMO/NGS_RNAseq_pipeline | R | false | false | 760 | r | library("ballgown")
args <- commandArgs(T)
sample_label <- args[1]
sample_path <- args[2]
file_mRNA_out <- args[3]
file_gene_out <- args[4]
sample_paths <- c(sample_path)
#sample_label <- "GSM1571988"
#sample_paths <- c("GSM1571988")
#file_mRNA_out <- "a.txt"
#file_gene_out <- "b.txt"
bg <- ballgown(sample_paths)... |
## Read the table into R
df1 <- read.table("./household_power_consumption.txt", header = T, sep = ";", stringsAsFactors = F, dec = ".")
## check data
names(df1)
head(date)
head(df1$Date)
str(df1)
##picking the relevent subset
df2 <- subset(df1, df1$Date == "1/2/2007"| df1$Date =="2/2/2007")
# checking
hea... | /expdatanly/plot3.R | no_license | sansourav/datasciencecoursera | R | false | false | 1,249 | r |
## Read the table into R
df1 <- read.table("./household_power_consumption.txt", header = T, sep = ";", stringsAsFactors = F, dec = ".")
## check data
names(df1)
head(date)
head(df1$Date)
str(df1)
##picking the relevent subset
df2 <- subset(df1, df1$Date == "1/2/2007"| df1$Date =="2/2/2007")
# checking
hea... |
#=========================
#SimulateUrbanMixMeasure.R
#=========================
#<doc>
#
## SimulateUrbanMixMeasure Module
#### February 6, 2019
#
#This module simulates an urban mixed-use measure based on the 2001 National Household Travel Survey measure of the tract level urban/rural indicator. This measure develop... | /sources/modules/VESimLandUse/R/SimulateUrbanMixMeasure.R | permissive | rickdonnelly/VisionEval-Dev | R | false | false | 16,767 | r | #=========================
#SimulateUrbanMixMeasure.R
#=========================
#<doc>
#
## SimulateUrbanMixMeasure Module
#### February 6, 2019
#
#This module simulates an urban mixed-use measure based on the 2001 National Household Travel Survey measure of the tract level urban/rural indicator. This measure develop... |
for (n in 1:25) {
if (n%%2==0) {
cat(n," is an even number\n") #We are testing for even or odd
} else {
cat(n, " is an odd number\n")
}
if (n%%10==0) {
cat(n," is a multiple of 10\n")
}
} | /modulus.R | no_license | cperez58/chem160module13 | R | false | false | 218 | r | for (n in 1:25) {
if (n%%2==0) {
cat(n," is an even number\n") #We are testing for even or odd
} else {
cat(n, " is an odd number\n")
}
if (n%%10==0) {
cat(n," is a multiple of 10\n")
}
} |
##########################
#### Cross Validation ####
##########################
library("plm")
library("boot")
library("gtools")
library("lme4")
## Read data frame with winterWheat as only depedent variable ##
Yield_Covariates <- read.csv( "/home/peichl/projects/crossvalid/Yield_SMI_Prec_Tavg_Pet_Dem_Por_Tmin_Tmax_n... | /cluster/crossvalidation/winterWheat/TempPrec_thirdrun/crossval2.R | no_license | MikyPiky/Project1 | R | false | false | 3,612 | r | ##########################
#### Cross Validation ####
##########################
library("plm")
library("boot")
library("gtools")
library("lme4")
## Read data frame with winterWheat as only depedent variable ##
Yield_Covariates <- read.csv( "/home/peichl/projects/crossvalid/Yield_SMI_Prec_Tavg_Pet_Dem_Por_Tmin_Tmax_n... |
shinyServer(function(input, output, session) {
outcome_hierarchy <- c("outcome_class", "outcome_subclass1", "outcome_subclass2","outcome_time","outcome_type")
output$outcome_tree <- renderTree({
df <- key[,outcome_hierarchy]
outcome_tree <- dfToTree(df, outcome_hierarchy)
#shiny tree mu... | /results_app/server.R | no_license | ammegandchips/EPoCH | R | false | false | 11,642 | r |
shinyServer(function(input, output, session) {
outcome_hierarchy <- c("outcome_class", "outcome_subclass1", "outcome_subclass2","outcome_time","outcome_type")
output$outcome_tree <- renderTree({
df <- key[,outcome_hierarchy]
outcome_tree <- dfToTree(df, outcome_hierarchy)
#shiny tree mu... |
context("Test action functions")
test_that("have_siblings is working as expected", {
tree <- GeneralTree$new(0, "parent1")
expect_identical(tree$have_siblings, FALSE)
tree$addNode(0, 1, "child.1")
tree$addNode(0, 2, "child.2")
tree$addNode(0, 3, "child.3")
expect_identical(tree$searchNode(2)$have_siblin... | /tests/testthat/test_ActionFunctions.R | permissive | abossenbroek/GeneralTree | R | false | false | 2,172 | r | context("Test action functions")
test_that("have_siblings is working as expected", {
tree <- GeneralTree$new(0, "parent1")
expect_identical(tree$have_siblings, FALSE)
tree$addNode(0, 1, "child.1")
tree$addNode(0, 2, "child.2")
tree$addNode(0, 3, "child.3")
expect_identical(tree$searchNode(2)$have_siblin... |
lhs.design <- function(nruns, nfactors, type="optimum", factor.names=NULL, seed=NULL, digits=NULL, nlevels=nruns,
default.levels = c(0,1), randomize = FALSE, ...){
creator <- sys.call()
if (!type %in% c("genetic","improved","maximin","optimum","random","dmax","faure","strauss","fact"))
st... | /R/lhs.design.R | no_license | cran/DoE.wrapper | R | false | false | 10,055 | r | lhs.design <- function(nruns, nfactors, type="optimum", factor.names=NULL, seed=NULL, digits=NULL, nlevels=nruns,
default.levels = c(0,1), randomize = FALSE, ...){
creator <- sys.call()
if (!type %in% c("genetic","improved","maximin","optimum","random","dmax","faure","strauss","fact"))
st... |
## Put comments here that give an overall description of what your
## functions do
## Caching the Inverse of a Matrix:
## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## Below are a pair of functions that are use... | /cachematrix.R | no_license | shuyizhang3/ProgrammingAssignment2 | R | false | false | 1,488 | r | ## Put comments here that give an overall description of what your
## functions do
## Caching the Inverse of a Matrix:
## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## Below are a pair of functions that are use... |
source('http://bioconductor.org/biocLite.R')
biocLite('EBImage')
| /image_analysis_trials.R | no_license | hiweller/Eartheaters | R | false | false | 65 | r | source('http://bioconductor.org/biocLite.R')
biocLite('EBImage')
|
# fix formatting of titles for bibtex
fix_title <- function(titlestring) {
# maintain capitalization of package name at the beginning
titlestring <- gsub("^ *title ?= ?\\{([a-zA-Z._]*):", "title = \\{\\{\\1\\}:", titlestring)
# always capitalize "R"
titlestring <- gsub(" R([^a-zA-Z0-9])", " \\{R\\}\\1", titlest... | /R/utils_citations.R | permissive | connorp/grateful | R | false | false | 2,053 | r | # fix formatting of titles for bibtex
fix_title <- function(titlestring) {
# maintain capitalization of package name at the beginning
titlestring <- gsub("^ *title ?= ?\\{([a-zA-Z._]*):", "title = \\{\\{\\1\\}:", titlestring)
# always capitalize "R"
titlestring <- gsub(" R([^a-zA-Z0-9])", " \\{R\\}\\1", titlest... |
BasePlot <- R6::R6Class(
"BasePlot",
inherit = ClosablePanel,
public = list(
initialize = function(...) {
# Mandatory
super$initialize(...)
# Ports definition starts here
self$definePort({
# At least one input
self$addInputPort(
name = "data",
desc... | /inst/shiny/examples/4_communication/module/BasePlot.R | permissive | Novartis/tidymodules | R | false | false | 2,544 | r |
BasePlot <- R6::R6Class(
"BasePlot",
inherit = ClosablePanel,
public = list(
initialize = function(...) {
# Mandatory
super$initialize(...)
# Ports definition starts here
self$definePort({
# At least one input
self$addInputPort(
name = "data",
desc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/enums.R
\docType{data}
\name{enums}
\alias{enums}
\alias{TimeUnit}
\alias{DateUnit}
\alias{Type}
\alias{StatusCode}
\alias{FileMode}
\alias{MessageType}
\alias{CompressionType}
\alias{FileType}
\alias{ParquetVersionType}
\title{Arrow enums}
\... | /r/man/enums.Rd | permissive | zeroviral/arrow | R | false | true | 1,293 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/enums.R
\docType{data}
\name{enums}
\alias{enums}
\alias{TimeUnit}
\alias{DateUnit}
\alias{Type}
\alias{StatusCode}
\alias{FileMode}
\alias{MessageType}
\alias{CompressionType}
\alias{FileType}
\alias{ParquetVersionType}
\title{Arrow enums}
\... |
# Page No. 75
value<-c(3,4,5)
frequency<-c(2,1,3)
suits<-data.frame(value,frequency)
View(suits)
print(mean((value*frequency))/2)
# The answer provided in the textbook is wrong | /Introductory_Statistics_by_Sheldon_M._Ross/CH3/EX3.3/Ex3_3.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 183 | r | # Page No. 75
value<-c(3,4,5)
frequency<-c(2,1,3)
suits<-data.frame(value,frequency)
View(suits)
print(mean((value*frequency))/2)
# The answer provided in the textbook is wrong |
install.packages("lpSolve")
library(lpSolve)
# Assume full-time work is 10 hr
# Each keg for Hopatronic -------> 5 hr
# Each keg for All American -----> 10 hr
# Each keg for Dantzig ----------> 20 hr
# Assume the working days for a month is 20
# For Hopatronic , Ecah month the labor produce 40 keg/month
# For All Ame... | /improvements to LP Brewery's manufacturing schedule.R | no_license | YasirAlhejaili/DS-CodingDojo-SDA | R | false | false | 1,063 | r | install.packages("lpSolve")
library(lpSolve)
# Assume full-time work is 10 hr
# Each keg for Hopatronic -------> 5 hr
# Each keg for All American -----> 10 hr
# Each keg for Dantzig ----------> 20 hr
# Assume the working days for a month is 20
# For Hopatronic , Ecah month the labor produce 40 keg/month
# For All Ame... |
#' Plot GTFS stops and trips
#'
#' @param x a gtfs_obj as read by read_gtfs()
#' @param ... further specifications
#' @return plot
#'
#' @examples \donttest{
#' local_gtfs_path <- system.file("extdata",
#' "google_transit_nyc_subway.zip",
#' package = "tidytra... | /R/plot.R | no_license | r-transit/tidytransit | R | false | false | 899 | r | #' Plot GTFS stops and trips
#'
#' @param x a gtfs_obj as read by read_gtfs()
#' @param ... further specifications
#' @return plot
#'
#' @examples \donttest{
#' local_gtfs_path <- system.file("extdata",
#' "google_transit_nyc_subway.zip",
#' package = "tidytra... |
#basic SIR model app
server <- function(input, output, session)
{
#load model from Rdata file, needs to be in same folder
currentdir = getwd()
rdatafile = list.files(path = currentdir, pattern = "\\.Rdata$")
load(rdatafile)
generate_shinyinput(model, output) #make the UI for the model
#... | /inst/shinyapps/IDDynamicsIntro/app.R | no_license | cgolden1993/DSAIDE | R | false | false | 5,184 | r | #basic SIR model app
server <- function(input, output, session)
{
#load model from Rdata file, needs to be in same folder
currentdir = getwd()
rdatafile = list.files(path = currentdir, pattern = "\\.Rdata$")
load(rdatafile)
generate_shinyinput(model, output) #make the UI for the model
#... |
# Using data from "get177StationsAnnual.R"
require(stats)
#
stns177Rates <- array(dim = c(56,177))
s177DecadeMidPoints <- array(dim = c(56,1))
for (i in 1:177){
for (j in 1948:1998) {
interval <- findInterval(j:(j+9),stns177AnnualYrs)
# We only want to calculate rates where the decade is 70% complete
if (len... | /global_tgs/decadal/long177Recs.R | no_license | simonholgate/R-Scripts | R | false | false | 625 | r | # Using data from "get177StationsAnnual.R"
require(stats)
#
stns177Rates <- array(dim = c(56,177))
s177DecadeMidPoints <- array(dim = c(56,1))
for (i in 1:177){
for (j in 1948:1998) {
interval <- findInterval(j:(j+9),stns177AnnualYrs)
# We only want to calculate rates where the decade is 70% complete
if (len... |
# aoi for Wandoo National Park
aoi_example <- find_tenure(like = "wandoo")[1] |>
DBCA_aoi(block = FALSE)
saveRDS(aoi_example, "./tests/testthat/fixtures/aoi_example.rds")
# fire history crs for make_wkt testing
fire_path <- "../corp_data/DBCA_Fire_History_DBCA_060.shp"
fname <- tools::file_path_sans_ext(basename(fir... | /tests/testthat/make_testing_data.R | permissive | dbca-wa/FireHistory | R | false | false | 879 | r | # aoi for Wandoo National Park
aoi_example <- find_tenure(like = "wandoo")[1] |>
DBCA_aoi(block = FALSE)
saveRDS(aoi_example, "./tests/testthat/fixtures/aoi_example.rds")
# fire history crs for make_wkt testing
fire_path <- "../corp_data/DBCA_Fire_History_DBCA_060.shp"
fname <- tools::file_path_sans_ext(basename(fir... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/coo-shapedescriptors.R
\name{coo_eccentricityboundingbox}
\alias{coo_eccentricityboundingbox}
\title{Calculates the eccentricity (bounding box) of a shape}
\source{
Rosin PL. 2005. Computing global shape measures.
Handbook of Pattern ... | /man/coo_eccentricityboundingbox.Rd | no_license | lrocax/Momocs | R | false | false | 727 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/coo-shapedescriptors.R
\name{coo_eccentricityboundingbox}
\alias{coo_eccentricityboundingbox}
\title{Calculates the eccentricity (bounding box) of a shape}
\source{
Rosin PL. 2005. Computing global shape measures.
Handbook of Pattern ... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 31226
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 31226
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/LTL2DBA/ltl2dba_U1-4_comp3_REAL.sat.qdimacs
c ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Tentrup/LTL2DBA/ltl2dba_U1-4_comp3_REAL.sat/ltl2dba_U1-4_comp3_REAL.sat.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 654 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 31226
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 31226
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/LTL2DBA/ltl2dba_U1-4_comp3_REAL.sat.qdimacs
c ... |
library(OpenMx)
### Name: mxPath
### Title: Create List of Paths
### Aliases: mxPath MxPath-class print,MxPath-method show,MxPath-method
### $,MxPath-method $<-,MxPath-method
### ** Examples
# A simple Example: 1 factor Confirmatory Factor Analysis
library(OpenMx)
data(demoOneFactor)
manifests <- names(demoOneF... | /data/genthat_extracted_code/OpenMx/examples/mxPath.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,495 | r | library(OpenMx)
### Name: mxPath
### Title: Create List of Paths
### Aliases: mxPath MxPath-class print,MxPath-method show,MxPath-method
### $,MxPath-method $<-,MxPath-method
### ** Examples
# A simple Example: 1 factor Confirmatory Factor Analysis
library(OpenMx)
data(demoOneFactor)
manifests <- names(demoOneF... |
library(shiny)
library(shinydashboard)
library(xlsx)
library(dplyr)
library(ggplot2)
library(reshape2)
library(plotly)
datos <- read.table("Dataset_Wefferent_Card_Analytics_Completo.txt",
header = TRUE,
sep="|",
dec = ",")
datos$IMPORTE <- a... | /App_definitiva.R | no_license | MarcosBarrera/Weff-App | R | false | false | 25,802 | r | library(shiny)
library(shinydashboard)
library(xlsx)
library(dplyr)
library(ggplot2)
library(reshape2)
library(plotly)
datos <- read.table("Dataset_Wefferent_Card_Analytics_Completo.txt",
header = TRUE,
sep="|",
dec = ",")
datos$IMPORTE <- a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/0_imports.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{contrast}
\title{Objects exported from other packages}
\keyword{internal}
\description{
These objects are imported from other packages. Follow the links
below to see their... | /man/reexports.Rd | no_license | cran/contrast | R | false | true | 394 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/0_imports.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{contrast}
\title{Objects exported from other packages}
\keyword{internal}
\description{
These objects are imported from other packages. Follow the links
below to see their... |
library(caret)
library(entropy)
setwd("C:/Users/Ashvin/B4TM/data/")
set.seed(0591)
#############
# load data #
#############
source("C:/Users/Ashvin/Dropbox/Bioinf_master/jaar_1/periode_5/B4TM/B4TM_process_data.R")
#############################
# feature selection methods #
#############################
calculate_en... | /B4TM_filter_feature_selection_prog.R | no_license | Tamarhuygen/CATS | R | false | false | 3,007 | r | library(caret)
library(entropy)
setwd("C:/Users/Ashvin/B4TM/data/")
set.seed(0591)
#############
# load data #
#############
source("C:/Users/Ashvin/Dropbox/Bioinf_master/jaar_1/periode_5/B4TM/B4TM_process_data.R")
#############################
# feature selection methods #
#############################
calculate_en... |
library(codebook)
### Name: ended
### Title: How many surveys were ended?
### Aliases: ended
### ** Examples
survey <- data.frame(ended = c("2016-05-28 10:11:00", NA, "2016-05-30 11:18:28"))
ended(survey = survey)
| /data/genthat_extracted_code/codebook/examples/ended.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 221 | r | library(codebook)
### Name: ended
### Title: How many surveys were ended?
### Aliases: ended
### ** Examples
survey <- data.frame(ended = c("2016-05-28 10:11:00", NA, "2016-05-30 11:18:28"))
ended(survey = survey)
|
# lets do the prediction for categorical outcome - Male or Female
library(dslabs)
library(dplyr)
library(caret)
library(tidyverse)
# There are other ways through which we can avoid this situation.
# Package for F1 score
#install.packages("MLmetrics")
library(MLmetrics)
data(heights)
y <- heights$height
set.seed(2)
tes... | /MLExerciseContinued.R | no_license | mk93230/dreamer | R | false | false | 5,892 | r | # lets do the prediction for categorical outcome - Male or Female
library(dslabs)
library(dplyr)
library(caret)
library(tidyverse)
# There are other ways through which we can avoid this situation.
# Package for F1 score
#install.packages("MLmetrics")
library(MLmetrics)
data(heights)
y <- heights$height
set.seed(2)
tes... |
plot.PDensity<- function(fish=merged.plaice,what.quarter="3",chrons1=chrons,bw=0.8)
{
#fish <- merged.plaice
#what.quarter <- "3"
#chrons1 <- chrons
hd<-tapply(chrons1$hauldur,list(chrons1$year,chrons1$quarter),sum,na.rm=T)/60 # Get the haul duration
what.quarter <- as.character(what.quarter)
fish.yr.l<-t... | /datras/R/plot.PDensity.r | no_license | bearedo/datras | R | false | false | 998 | r |
plot.PDensity<- function(fish=merged.plaice,what.quarter="3",chrons1=chrons,bw=0.8)
{
#fish <- merged.plaice
#what.quarter <- "3"
#chrons1 <- chrons
hd<-tapply(chrons1$hauldur,list(chrons1$year,chrons1$quarter),sum,na.rm=T)/60 # Get the haul duration
what.quarter <- as.character(what.quarter)
fish.yr.l<-t... |
##Download the data
if(!file.exists("./data.project")){dir.create("./data.project")}
fileUrl<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="C:/Users/Elisa/Documents/data science/data.project/UCI HAR Dataset.zip")
unzip(zipfile="C:/Users/Elisa/Do... | /run_analysis.R | no_license | Elisarh/getting-and-cleaning-data-project | R | false | false | 2,461 | r | ##Download the data
if(!file.exists("./data.project")){dir.create("./data.project")}
fileUrl<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="C:/Users/Elisa/Documents/data science/data.project/UCI HAR Dataset.zip")
unzip(zipfile="C:/Users/Elisa/Do... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_restart.SIPNET.R
\name{write_restart.SIPNET}
\alias{write_restart.SIPNET}
\title{write_restart.SIPNET}
\usage{
write_restart.SIPNET(outdir, runid, start.time, stop.time, settings, new.state,
RENAME = TRUE, new.params = FALSE, inputs)
... | /models/sipnet/man/write_restart.SIPNET.Rd | permissive | Kah5/pecan | R | false | true | 685 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_restart.SIPNET.R
\name{write_restart.SIPNET}
\alias{write_restart.SIPNET}
\title{write_restart.SIPNET}
\usage{
write_restart.SIPNET(outdir, runid, start.time, stop.time, settings, new.state,
RENAME = TRUE, new.params = FALSE, inputs)
... |
RElocateEQ<-function(lps, sta, vel, cont=TRUE,
sleep=0.5, mapfun=NULL, PLOT=TRUE, proj=NULL, xlim=NULL, ylim=NULL)
{
##################
############ given a set of pickfiles,
########### show relocations
if(missing(mapfun)) { mapfun=NULL }
##### whatmap = mapfun
if(!is.nu... | /R/RElocateEQ.R | no_license | cran/Rquake | R | false | false | 2,202 | r | RElocateEQ<-function(lps, sta, vel, cont=TRUE,
sleep=0.5, mapfun=NULL, PLOT=TRUE, proj=NULL, xlim=NULL, ylim=NULL)
{
##################
############ given a set of pickfiles,
########### show relocations
if(missing(mapfun)) { mapfun=NULL }
##### whatmap = mapfun
if(!is.nu... |
###################################################################################################
##title: exrna_atlas_metadata_formatting_functions.R
##associated_project: exrna_atlas
##associated_analysis: get_atlas_data_in_R
##started_date: June 20 2017
##started_by: Rocco... | /analysis/get_atlas_data_in_R/src/exrna_atlas_metadata_formatting_functions.R | no_license | RoccoDLucero/exrna_atlas | R | false | false | 7,588 | r |
###################################################################################################
##title: exrna_atlas_metadata_formatting_functions.R
##associated_project: exrna_atlas
##associated_analysis: get_atlas_data_in_R
##started_date: June 20 2017
##started_by: Rocco... |
require(ggplot2)
require(reshape2)
plotLogo <- function(filepath, alphabet = "AA") {
if (alphabet == "AA") {
cols <- c("A", "C", "D", "E", "F", "G", "H", "I", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "V", "W", "Y", "-")
} else {
cols <- c("A", "C", "G", "T")
}
distdf <- t(read.table(filepath))
... | /Shiny/plotLogo.R | no_license | laiso1983/ASR | R | false | false | 2,108 | r | require(ggplot2)
require(reshape2)
plotLogo <- function(filepath, alphabet = "AA") {
if (alphabet == "AA") {
cols <- c("A", "C", "D", "E", "F", "G", "H", "I", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "V", "W", "Y", "-")
} else {
cols <- c("A", "C", "G", "T")
}
distdf <- t(read.table(filepath))
... |
testlist <- list(A = structure(c(2.32784507357645e-308, 9.5381831177876e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613108446-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 343 | r | testlist <- list(A = structure(c(2.32784507357645e-308, 9.5381831177876e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... |
# Preparatory Steps
install.packages("dplyr")
library(dplyr)
letters %>% identity()
# Download and unzip the dataset:
filename <- "Coursera_cleaning_Final.zip"
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileURL, f... | /run_analysis.R | no_license | dora901213/coursera-getting-and-cleaning-data-project | R | false | false | 2,837 | r |
# Preparatory Steps
install.packages("dplyr")
library(dplyr)
letters %>% identity()
# Download and unzip the dataset:
filename <- "Coursera_cleaning_Final.zip"
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileURL, f... |
# Wally test Monday am
2*2
| /Mondaytest.R | no_license | RWFulweiler/GeosciFuturePaper | R | false | false | 27 | r | # Wally test Monday am
2*2
|
setwd("C:/Users/xinwang/Research/link_function/")
source("C:/Users/xinwang/Research/link_function/link_fun_code/lyxout.R")
row.name <- c('logit','probit','robit(1)','robit(2)','robit(0.6)','gev(1)','gev(0.5)',
'gev(-0.5)',"gev(-1)",'splogit(0.6)','splogit(1.5)')
weight.arg <- c("equal","both","left","ri... | /output_case2.R | no_license | wangx23/link_fun_code | R | false | false | 3,864 | r | setwd("C:/Users/xinwang/Research/link_function/")
source("C:/Users/xinwang/Research/link_function/link_fun_code/lyxout.R")
row.name <- c('logit','probit','robit(1)','robit(2)','robit(0.6)','gev(1)','gev(0.5)',
'gev(-0.5)',"gev(-1)",'splogit(0.6)','splogit(1.5)')
weight.arg <- c("equal","both","left","ri... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/NSCLC.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.03,family="gaussian",standardize=TRUE)
sink('./NSCLC_015.txt',append=TRUE)
print(g... | /Model/EN/Lasso/NSCLC/NSCLC_015.R | no_license | esbgkannan/QSMART | R | false | false | 342 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/NSCLC.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.03,family="gaussian",standardize=TRUE)
sink('./NSCLC_015.txt',append=TRUE)
print(g... |
install.packages("devtools")
install.packages("roxygen2")
library("devtools")
devtools::install_github("klutometis/roxygen")
library(roxygen2)
getwd()
dir ()
# create the skeleton of the package
create("kk")
setwd ("kk")
document()
setwd("..")
install("kk")
release ("kk")# for releasing the package to the CRAN | /R.R | no_license | MirelaGTulbure/Drought_CA | R | false | false | 316 | r | install.packages("devtools")
install.packages("roxygen2")
library("devtools")
devtools::install_github("klutometis/roxygen")
library(roxygen2)
getwd()
dir ()
# create the skeleton of the package
create("kk")
setwd ("kk")
document()
setwd("..")
install("kk")
release ("kk")# for releasing the package to the CRAN |
testlist <- list(b = c(50397186L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613102442-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 182 | r | testlist <- list(b = c(50397186L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) |
library(dplyr)
library(RSQLite)
library(RSQLite.extfuns)
elections_db <- src_sqlite("data/elections_db.sqlite3", create = T)
votes <- read.csv(file="data//election_results.csv")
copy_to(elections_db, votes, temporary = FALSE, indexes = list("year", c("ward", "area"), "candidate"))
turnout <- read.csv(file="data//turnou... | /util/convert_to_sqlite.R | no_license | Psepho/toronto_elections | R | false | false | 1,357 | r | library(dplyr)
library(RSQLite)
library(RSQLite.extfuns)
elections_db <- src_sqlite("data/elections_db.sqlite3", create = T)
votes <- read.csv(file="data//election_results.csv")
copy_to(elections_db, votes, temporary = FALSE, indexes = list("year", c("ward", "area"), "candidate"))
turnout <- read.csv(file="data//turnou... |
Physics.Scores=c(15,12,8,8,7,7,7,6,5,3)
History.Scores=c(10,25,17,11,13,17,20,13,9,15)
Scores=matrix(Physics.Scores)
Scores=cbind(Scores,History.Scores)
result=coef(lm(History.Scores~Physics.Scores))[2]
cat(sprintf("%.3f", result ))
| /MachineLearning/Medium/Single programs/CorrReg#1.R | no_license | pvdwijdeven/Hackerrank | R | false | false | 235 | r | Physics.Scores=c(15,12,8,8,7,7,7,6,5,3)
History.Scores=c(10,25,17,11,13,17,20,13,9,15)
Scores=matrix(Physics.Scores)
Scores=cbind(Scores,History.Scores)
result=coef(lm(History.Scores~Physics.Scores))[2]
cat(sprintf("%.3f", result ))
|
# Library
#########
library(quantmod)
library(stringr)
# Get Stock Daily
#################
getSymbols.google("IDX:ABBA", env=globalenv(),
from="2005-04-01")
getSymbols.google("IDX:BBKP", env=globalenv(),
from="2005-04-01")
getSymbols.google("IDX:BBRI", env=globalenv(),
... | /GoogleFinance/GoogleFinance.R | no_license | coro-binal/marketcap | R | false | false | 1,615 | r | # Library
#########
library(quantmod)
library(stringr)
# Get Stock Daily
#################
getSymbols.google("IDX:ABBA", env=globalenv(),
from="2005-04-01")
getSymbols.google("IDX:BBKP", env=globalenv(),
from="2005-04-01")
getSymbols.google("IDX:BBRI", env=globalenv(),
... |
library(tidyverse)
load("projects/murders/rda/murders.rda")
murders %>% mutate(abb = reorder(abb, rate)) %>% ggplot(aes(abb,rate)) +
geom_bar(width = 0.5, stat = "identity", color = "black") +
coord_flip()
getwd()
ggsave("projects/murders/figs/barplot.png") | /projects/murders/analysis.R | no_license | SLUIZST/STUDY | R | false | false | 265 | r | library(tidyverse)
load("projects/murders/rda/murders.rda")
murders %>% mutate(abb = reorder(abb, rate)) %>% ggplot(aes(abb,rate)) +
geom_bar(width = 0.5, stat = "identity", color = "black") +
coord_flip()
getwd()
ggsave("projects/murders/figs/barplot.png") |
library(ggplot2)
##############################
### local ps/ps regression ###
##
## Y is outcome
## X is treatment
## ps is propensity score
## prog is the prognostic score
## h.ps is bandwidth for propensity score
## h.prog is bandwidth for prognostic score
## estimand is either ATE or ATT
localPSreg <- function(Y... | /code/source/functions.r | no_license | mcefalu/localPS | R | false | false | 4,477 | r | library(ggplot2)
##############################
### local ps/ps regression ###
##
## Y is outcome
## X is treatment
## ps is propensity score
## prog is the prognostic score
## h.ps is bandwidth for propensity score
## h.prog is bandwidth for prognostic score
## estimand is either ATE or ATT
localPSreg <- function(Y... |
gx.plot2parts <-
function (xx1, xx2, x1lab = deparse(substitute(xx1)), x2lab = deparse(substitute(xx2)),
cex = 0.8, ifwarn = TRUE, ...)
{
# Function to support the investigation of 2 parts of a composition following
# the procedures outlined in Filzmoser et al. (2010). The stability measure
... | /R/gx.plot2parts.R | no_license | cran/rgr | R | false | false | 2,354 | r | gx.plot2parts <-
function (xx1, xx2, x1lab = deparse(substitute(xx1)), x2lab = deparse(substitute(xx2)),
cex = 0.8, ifwarn = TRUE, ...)
{
# Function to support the investigation of 2 parts of a composition following
# the procedures outlined in Filzmoser et al. (2010). The stability measure
... |
library(cheddar)
### Name: OrderCollection
### Title: Order a collection of communities
### Aliases: OrderCollection
### Keywords: utilities
### ** Examples
data(pHWebs)
CollectionCPS(pHWebs, c('pH', 'NumberOfNodes'))
# Order by name
pHWebs.name <- OrderCollection(pHWebs, 'title')
CollectionCPS(pHWebs.name, c('pH'... | /data/genthat_extracted_code/cheddar/examples/OrderCollection.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 660 | r | library(cheddar)
### Name: OrderCollection
### Title: Order a collection of communities
### Aliases: OrderCollection
### Keywords: utilities
### ** Examples
data(pHWebs)
CollectionCPS(pHWebs, c('pH', 'NumberOfNodes'))
# Order by name
pHWebs.name <- OrderCollection(pHWebs, 'title')
CollectionCPS(pHWebs.name, c('pH'... |
#rm(list=ls())
library(MASS)
library(ggplot2)
library(mlt)
library(basefun)
library(keras)
library(tensorflow)
library(tfprobability)
# source('~/Documents/workspace/dl_playr/mlt/bern_utils.R')
#source('https://raw.githubusercontent.com/tensorchiefs/dl_playr/master/mlt/bern_utils.R')
source('bern_utils.R')
source("mod... | /mlt/model_grid_UCI_concrete.R | no_license | tensorchiefs/dl_playr | R | false | false | 4,538 | r | #rm(list=ls())
library(MASS)
library(ggplot2)
library(mlt)
library(basefun)
library(keras)
library(tensorflow)
library(tfprobability)
# source('~/Documents/workspace/dl_playr/mlt/bern_utils.R')
#source('https://raw.githubusercontent.com/tensorchiefs/dl_playr/master/mlt/bern_utils.R')
source('bern_utils.R')
source("mod... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Class-SDMXCodelist.R, R/SDMXCodelist-methods.R
\docType{class}
\name{SDMXCodelist}
\alias{SDMXCodelist}
\alias{SDMXCodelist-class}
\alias{SDMXCodelist,SDMXCodelist-method}
\title{Class "SDMXCodelist"}
\usage{
SDMXCodelist(xmlObj, namespaces)
... | /man/SDMXCodelist.Rd | no_license | opensdmx/rsdmx | R | false | true | 1,985 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Class-SDMXCodelist.R, R/SDMXCodelist-methods.R
\docType{class}
\name{SDMXCodelist}
\alias{SDMXCodelist}
\alias{SDMXCodelist-class}
\alias{SDMXCodelist,SDMXCodelist-method}
\title{Class "SDMXCodelist"}
\usage{
SDMXCodelist(xmlObj, namespaces)
... |
library(phuse)
### Name: download_script
### Title: Download files defined in script metadata
### Aliases: download_script
### ** Examples
## Not run:
##D a <- "https://github.com/phuse-org/phuse-scripts/raw/master"
##D b <- "development/R/scripts"
##D c <- "Draw_Dist2_R.yml"
##D f1 <- paste(a,b,c, sep = '... | /data/genthat_extracted_code/phuse/examples/download_script.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 400 | r | library(phuse)
### Name: download_script
### Title: Download files defined in script metadata
### Aliases: download_script
### ** Examples
## Not run:
##D a <- "https://github.com/phuse-org/phuse-scripts/raw/master"
##D b <- "development/R/scripts"
##D c <- "Draw_Dist2_R.yml"
##D f1 <- paste(a,b,c, sep = '... |
library(faraway)
##---------------------------------------------------------------------##
##See Exercise 3 on page 30 of text
set.seed(13245)
x <- 1:20
y <- x+rnorm(20)
print(x)
print(y)
plot(x,y,type="p",xlab="x",ylab="rnorm(x)",ylim=c(0,25),xlim=c(0,20),main="Exercise 3 page 30 of text",sub=" ")
lwy <- loess(y ... | /comp_graph_in_applied_stat/lectures/january/Upload 31JAN2020/estim4.R | no_license | himesh257/classwork-research | R | false | false | 955 | r | library(faraway)
##---------------------------------------------------------------------##
##See Exercise 3 on page 30 of text
set.seed(13245)
x <- 1:20
y <- x+rnorm(20)
print(x)
print(y)
plot(x,y,type="p",xlab="x",ylab="rnorm(x)",ylim=c(0,25),xlim=c(0,20),main="Exercise 3 page 30 of text",sub=" ")
lwy <- loess(y ... |
#ERCOT Forecasting - Basic DLM Model Fit Test on Single Zone, one window.
#=======================================================================
#=== Read in load and dlm data =====================================
#=======================================================================
#Housekeeping
rm(list=ls(... | /R/Cache/Model_Fitting_Scenarios/3_With Daily Dummies (Time Invariant)/R Code/6_DLM model fit test 3_With Daily Dummies (Time Invariant).R | no_license | sglyon/ercot | R | false | false | 15,074 | r | #ERCOT Forecasting - Basic DLM Model Fit Test on Single Zone, one window.
#=======================================================================
#=== Read in load and dlm data =====================================
#=======================================================================
#Housekeeping
rm(list=ls(... |
#--------------------------------------------------------------------------
#Internal function. Compute requisite p-values in the z-score fit process.
#--------------------------------------------------------------------------
zscore.fit.pvalues <- function(
score.null.vec.standin,
... | /R/zscore.fit.pvalues.R | no_license | npetraco/svmSCORES | R | false | false | 3,703 | r | #--------------------------------------------------------------------------
#Internal function. Compute requisite p-values in the z-score fit process.
#--------------------------------------------------------------------------
zscore.fit.pvalues <- function(
score.null.vec.standin,
... |
#' Create a dataframe from JSON
#'
#' This function converts the JSON provided by the YouTube API to a dataframe. Utilized
#' by multiple other functions in the ytcol package.
#'
#' @param l Dataframe$items
#' @return A dataframe of the items
#' @export
dataframeFromJSON <- function(l) {
l1 <- lapply(l, function(x) ... | /R/ytUtility.R | no_license | Vintonm49/ytcol | R | false | false | 5,095 | r | #' Create a dataframe from JSON
#'
#' This function converts the JSON provided by the YouTube API to a dataframe. Utilized
#' by multiple other functions in the ytcol package.
#'
#' @param l Dataframe$items
#' @return A dataframe of the items
#' @export
dataframeFromJSON <- function(l) {
l1 <- lapply(l, function(x) ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/02buka_Func.R
\name{buKa_NameTransfer}
\alias{buKa_NameTransfer}
\title{针对补卡数据进行处理}
\usage{
buKa_NameTransfer(data)
}
\arguments{
\item{data}{deal_buKa得到的数据}
}
\value{
返回值
}
\description{
针对补卡数据进行处理
}
\examples{
buKa_NameTransfer();
}
| /man/buKa_NameTransfer.Rd | no_license | takewiki/nshr_pkg | R | false | true | 369 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/02buka_Func.R
\name{buKa_NameTransfer}
\alias{buKa_NameTransfer}
\title{针对补卡数据进行处理}
\usage{
buKa_NameTransfer(data)
}
\arguments{
\item{data}{deal_buKa得到的数据}
}
\value{
返回值
}
\description{
针对补卡数据进行处理
}
\examples{
buKa_NameTransfer();
}
|
testlist <- list(a = 0L, b = 0L, x = c(-1L, -1L, -8739L, -572662273L, 822804479L, -1L, -131L, 65535L, -9013642L, 693174272L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610054557-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 407 | r | testlist <- list(a = 0L, b = 0L, x = c(-1L, -1L, -8739L, -572662273L, 822804479L, -1L, -131L, 65535L, -9013642L, 693174272L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... |
## Put comments here that give an overall description of what your
## functions do
#This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
ins <- NULL
set <- function(y){
x <<- y
ins <<- NULL
}
get <- function()x
setInverse <- function(in... | /cachematrix.R | no_license | CanJia123/ProgrammingAssignment2 | R | false | false | 973 | r | ## Put comments here that give an overall description of what your
## functions do
#This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
ins <- NULL
set <- function(y){
x <<- y
ins <<- NULL
}
get <- function()x
setInverse <- function(in... |
\name{udgamma}
\alias{udgamma}
\title{UNU.RAN object for Gamma distribution}
\description{
Create UNU.RAN object for a Gamma distribution
with parameters \code{shape} and \code{scale}.
[Distribution] -- Gamma. %% Continuous
}
\usage{
udgamma(shape, scale=1, lb=0, ub=Inf)
}
\arguments{
\item{shape}{(stri... | /man/udgamma.Rd | no_license | cran/Runuran | R | false | false | 1,704 | rd | \name{udgamma}
\alias{udgamma}
\title{UNU.RAN object for Gamma distribution}
\description{
Create UNU.RAN object for a Gamma distribution
with parameters \code{shape} and \code{scale}.
[Distribution] -- Gamma. %% Continuous
}
\usage{
udgamma(shape, scale=1, lb=0, ub=Inf)
}
\arguments{
\item{shape}{(stri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.