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 |
|---|---|---|---|---|---|---|---|---|---|
install.packages("devtools")
library(devtools)
install.packages("keras")
library(keras)
install.packages("jpeg")
library(jpeg)
source("http://bioconductor.org/biocLite.R")
biocLite()
biocLite("EBImage")
library(EBImage)
setwd("C:\\Users\\Admin\\Documents\\chest-xray-pneumonia\\chest_xray\\chest_xray\\test\\NORMAL")
N... | /pnueamiakeras.R | no_license | XanderWonder/R-stuff | R | false | false | 3,337 | r | install.packages("devtools")
library(devtools)
install.packages("keras")
library(keras)
install.packages("jpeg")
library(jpeg)
source("http://bioconductor.org/biocLite.R")
biocLite()
biocLite("EBImage")
library(EBImage)
setwd("C:\\Users\\Admin\\Documents\\chest-xray-pneumonia\\chest_xray\\chest_xray\\test\\NORMAL")
N... |
#' @name redcap_write_oneshot
#' @export redcap_write_oneshot
#' @title Write/Import records to a REDCap project.
#'
#' @description This function uses REDCap's API to select and return data.
#'
#' @param ds The [base::data.frame()] to be imported into the REDCap project. Required.
#' @param redcap_uri The URI (unifor... | /R/redcap-write-oneshot.R | no_license | hatemhosny/REDCapR | R | false | false | 8,378 | r | #' @name redcap_write_oneshot
#' @export redcap_write_oneshot
#' @title Write/Import records to a REDCap project.
#'
#' @description This function uses REDCap's API to select and return data.
#'
#' @param ds The [base::data.frame()] to be imported into the REDCap project. Required.
#' @param redcap_uri The URI (unifor... |
test_that("DataNormal works", {
Subject <-c( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 )
SYZ <-c( 0 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1 , 0 , 1 )
YFYL <-c( 0.25 , 0.75 , 0.5 , 0.75 , 0.75 , 0.5 , 1 , 1 , 0.25 , 0.5 , 0.25 ,... | /tests/testthat/test-DataNormal.R | permissive | zhengyu888/AHPtopsis | R | false | false | 4,433 | r | test_that("DataNormal works", {
Subject <-c( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 )
SYZ <-c( 0 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1 , 0 , 1 )
YFYL <-c( 0.25 , 0.75 , 0.5 , 0.75 , 0.75 , 0.5 , 1 , 1 , 0.25 , 0.5 , 0.25 ,... |
= class Cairo::PathLineTo
== Object Hierarchy
* Object
* ((<Cairo::PathData>))
* Cairo::PathLineTo
== Class Methods
--- Cairo::PathLineTo.new
* Returns: self: ((*FIXME*))
== See Also
== ChangeLog
| /en/cairo-path-line-to.rd | no_license | rcairo/doc | R | false | false | 216 | rd | = class Cairo::PathLineTo
== Object Hierarchy
* Object
* ((<Cairo::PathData>))
* Cairo::PathLineTo
== Class Methods
--- Cairo::PathLineTo.new
* Returns: self: ((*FIXME*))
== See Also
== ChangeLog
|
install.packages("tidyverse")
library(tidyverse)
ENSCINP = read.delim("ENSCINP to T.txt", header = T)
KH = read.delim("KH-ENS-conversion2013.txt", header = T)
Names = read.delim("KH2013-UniqueNAME.txt", header = T)
probe = read.delim("probeset-KH.txt", header = T)
probes = read.delim("probes_to_kh.txt", header = F)
Mo... | /annotations2.R | no_license | bvitrinel/CionaAnnotations | R | false | false | 2,574 | r | install.packages("tidyverse")
library(tidyverse)
ENSCINP = read.delim("ENSCINP to T.txt", header = T)
KH = read.delim("KH-ENS-conversion2013.txt", header = T)
Names = read.delim("KH2013-UniqueNAME.txt", header = T)
probe = read.delim("probeset-KH.txt", header = T)
probes = read.delim("probes_to_kh.txt", header = F)
Mo... |
context("dvariable")
test_that("creates correct class of dvariable", {
vlogical <- dvariable(c(FALSE,TRUE,FALSE))
vinteger <- dvariable(1:10)
vnumeric <- dvariable(1:10 + 0.1)
vfactor <- dvariable(factor(1:10))
vdate <- dvariable(as.Date("2000-01-01") + 1:10)
vposixt <- dvariable(as.POSIXct("2000-01-01", t... | /inst/tests/test-dvariable.r | no_license | cran/datalist | R | false | false | 1,073 | r | context("dvariable")
test_that("creates correct class of dvariable", {
vlogical <- dvariable(c(FALSE,TRUE,FALSE))
vinteger <- dvariable(1:10)
vnumeric <- dvariable(1:10 + 0.1)
vfactor <- dvariable(factor(1:10))
vdate <- dvariable(as.Date("2000-01-01") + 1:10)
vposixt <- dvariable(as.POSIXct("2000-01-01", t... |
#' Load quotes from a csv file
#'
#' Load quotes stored in a csv file into a data frame. The csv file must have a specific format:
#' the first three values in each row should be the datetime-stamp, the bid price, and the ask price,
#' respectively.
#'
#' @param csv_file_path Full path to a csv file containing the cu... | /R/load_from_csv.R | no_license | jdmogollonp/triarb | R | false | false | 1,477 | r | #' Load quotes from a csv file
#'
#' Load quotes stored in a csv file into a data frame. The csv file must have a specific format:
#' the first three values in each row should be the datetime-stamp, the bid price, and the ask price,
#' respectively.
#'
#' @param csv_file_path Full path to a csv file containing the cu... |
##########################################
# Create a bicolor meta-population matrix
##########################################
require(ggplot2)
require(cowplot)
#Set working directory inside the github repository 'TTT_Offset...' folder
#setwd("TTT_Offset_Vulnerability_GF_Sims")
#Get an initial gradient of orange to ... | /GF_figures/Combined_visual.R | no_license | TestTheTests/TTT_Offset_Vulnerability_GF_Sims | R | false | false | 4,427 | r | ##########################################
# Create a bicolor meta-population matrix
##########################################
require(ggplot2)
require(cowplot)
#Set working directory inside the github repository 'TTT_Offset...' folder
#setwd("TTT_Offset_Vulnerability_GF_Sims")
#Get an initial gradient of orange to ... |
library(tsdo);
library(tsda);
#library(kmgr);
wikiTableSort <- function(sortable=TRUE) {
if (sortable == TRUE){
res <- " sortable"
}else{
res<-""
}
return(res);
}
write.wikiTable <- function(df=iris,sortable=TRUE,file='./wikiTable.txt') {
#获取类别
suffix <- wikiTableSort(sortable);
wiki_class <... | /global.R | no_license | takewiki/wikitableconvertor | R | false | false | 4,875 | r | library(tsdo);
library(tsda);
#library(kmgr);
wikiTableSort <- function(sortable=TRUE) {
if (sortable == TRUE){
res <- " sortable"
}else{
res<-""
}
return(res);
}
write.wikiTable <- function(df=iris,sortable=TRUE,file='./wikiTable.txt') {
#获取类别
suffix <- wikiTableSort(sortable);
wiki_class <... |
#' Check if object is of class bison
#' @param x input
#' @export
is.bison <- function(x) inherits(x, "bison")
#' Check if object is of class bison_solr
#' @param x input
#' @export
is.bison_solr <- function(x) inherits(x, "bison_solr")
bison_blanktheme <- function(){
theme(axis.line=element_blank(),
axis.t... | /rbison/R/zzz.R | no_license | ingted/R-Examples | R | false | false | 5,288 | r | #' Check if object is of class bison
#' @param x input
#' @export
is.bison <- function(x) inherits(x, "bison")
#' Check if object is of class bison_solr
#' @param x input
#' @export
is.bison_solr <- function(x) inherits(x, "bison_solr")
bison_blanktheme <- function(){
theme(axis.line=element_blank(),
axis.t... |
library(tidyverse)
library(rvest)
library(magick)
library(cowplot)
df_injuries <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-09-10/tx_injuries.csv",
na = c("n/a", "NA", "N/A"))
body_list <- read_html("https://www.enchantedlearni... | /R/2019037-injuries.R | no_license | chuckleong21/TidyTuesday | R | false | false | 7,262 | r | library(tidyverse)
library(rvest)
library(magick)
library(cowplot)
df_injuries <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-09-10/tx_injuries.csv",
na = c("n/a", "NA", "N/A"))
body_list <- read_html("https://www.enchantedlearni... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/members.R
\name{members}
\alias{members}
\alias{hansard_members}
\alias{commons_members}
\alias{hansard_commons_members}
\alias{lords_members}
\alias{hansard_lords_members}
\title{Members of both houses}
\usage{
members(ID = NULL, extra_args ... | /man/members.Rd | permissive | basilesimon/hansard | R | false | true | 2,675 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/members.R
\name{members}
\alias{members}
\alias{hansard_members}
\alias{commons_members}
\alias{hansard_commons_members}
\alias{lords_members}
\alias{hansard_lords_members}
\title{Members of both houses}
\usage{
members(ID = NULL, extra_args ... |
.Random.seed <-
c(403L, 10L, -396641909L, -1073118871L, 1570450232L, 246715878L,
-8834687L, -3005165L, 534061762L, -2043433612L, 1974521207L,
1361163885L, 1708611844L, -288150486L, -1402838635L, -1511057873L,
357888822L, 1944800096L, 1064219043L, -1284328767L, -1602016592L,
-2013084210L, 1859762489L, -253201077L, 9... | /R/AlFaGuPackage-internal.R | permissive | aleka769/Laboration3 | R | false | false | 8,259 | r | .Random.seed <-
c(403L, 10L, -396641909L, -1073118871L, 1570450232L, 246715878L,
-8834687L, -3005165L, 534061762L, -2043433612L, 1974521207L,
1361163885L, 1708611844L, -288150486L, -1402838635L, -1511057873L,
357888822L, 1944800096L, 1064219043L, -1284328767L, -1602016592L,
-2013084210L, 1859762489L, -253201077L, 9... |
#' \tabular{ll}{
#' Package: \tab epower\cr
#' Type: \tab Package\cr
#' Title: \tab Power analysis for beyond BACI sampling designs\cr
#' Version: \tab 1.3\cr
#' Date: \tab 2018-10-30\cr
#' Author: \tab BMT, AIMS and QUT (Rebecca Fisher, Glenn Shiell, Rohan Sadler, James McGree)\cr
#' Maintainer: \tab Rebecca Fisher\... | /R/Toolbox_run.r | no_license | bmtglobal/epower | R | false | false | 90,108 | r |
#' \tabular{ll}{
#' Package: \tab epower\cr
#' Type: \tab Package\cr
#' Title: \tab Power analysis for beyond BACI sampling designs\cr
#' Version: \tab 1.3\cr
#' Date: \tab 2018-10-30\cr
#' Author: \tab BMT, AIMS and QUT (Rebecca Fisher, Glenn Shiell, Rohan Sadler, James McGree)\cr
#' Maintainer: \tab Rebecca Fisher\... |
/Apu-script.R | no_license | karinhel/IODS-project | R | false | false | 2,419 | r | ||
library(shiny)
Sys.setenv(RSTUDIO_PANDOC='/usr/lib/rstudio/bin/pandoc')
shinyApp(
ui = fluidPage(
sliderInput("slider", "Slider", 1, 100, 50),
downloadButton("report", "Generate report"),
plotOutput('plot')
),
server = function(input, output) {
output$report <- downloadHandler(
# For PDF ... | /scripts/reports.R | no_license | potentpwnables/misec_talk_aug2018 | R | false | false | 1,295 | r | library(shiny)
Sys.setenv(RSTUDIO_PANDOC='/usr/lib/rstudio/bin/pandoc')
shinyApp(
ui = fluidPage(
sliderInput("slider", "Slider", 1, 100, 50),
downloadButton("report", "Generate report"),
plotOutput('plot')
),
server = function(input, output) {
output$report <- downloadHandler(
# For PDF ... |
# add HuDiNet values to dataset to get RR comorbidity plots | /kathleen_scripts/rr_comorb.r | no_license | beaunorgeot/DiseaseDiseaseBMI206 | R | false | false | 59 | r | # add HuDiNet values to dataset to get RR comorbidity plots |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{h2o.year}
\alias{h2o.year}
\alias{year}
\alias{year.H2OFrame}
\title{Convert Milliseconds to Years in H2O Datasets}
\usage{
h2o.year(x)
year(x)
\method{year}{H2OFrame}(x)
}
\arguments{
\item{x}{An H2OFrame object.}
}
\value{
An H2OFrame object containing the ... | /h2o_3.10.4.4/h2o/man/h2o.year.Rd | no_license | JoeyChiese/gitKraken_test | R | false | false | 593 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{h2o.year}
\alias{h2o.year}
\alias{year}
\alias{year.H2OFrame}
\title{Convert Milliseconds to Years in H2O Datasets}
\usage{
h2o.year(x)
year(x)
\method{year}{H2OFrame}(x)
}
\arguments{
\item{x}{An H2OFrame object.}
}
\value{
An H2OFrame object containing the ... |
#Plot1
#Data Download
remote_file <- function(fileURL, remote_data) {
if(!file.exists(remote_data)) {
download.file(fileURL, destfile=remote_data, method="curl")
}
remote_data
}
remote_data <- remote_file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "household_powe... | /plot1.R | no_license | ovejanu/ExData_Plotting1 | R | false | false | 1,037 | r | #Plot1
#Data Download
remote_file <- function(fileURL, remote_data) {
if(!file.exists(remote_data)) {
download.file(fileURL, destfile=remote_data, method="curl")
}
remote_data
}
remote_data <- remote_file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "household_powe... |
\name{summary.venn}
\alias{summary.venn}
\docType{package}
\title{Summarize Venn Ojbect}
\description{
This function outputs summary statistics of a venn object.
}
\usage{
\method{summary}{venn}(object,...)
}
\arguments{
\item{object}{a \code{venn} object.}
\item{...}{additional arguments (not implemen... | /man/summary.venn.Rd | no_license | cran/PowerVenn | R | false | false | 1,237 | rd | \name{summary.venn}
\alias{summary.venn}
\docType{package}
\title{Summarize Venn Ojbect}
\description{
This function outputs summary statistics of a venn object.
}
\usage{
\method{summary}{venn}(object,...)
}
\arguments{
\item{object}{a \code{venn} object.}
\item{...}{additional arguments (not implemen... |
#!/usr/bin/env Rscript
# Code to generate a list of files in the StreetEvents directory
# and post to PostgreSQL.
# Set up stuff ----
library(dplyr, warn.conflicts = FALSE)
library(DBI)
getSHA1 <- function(file_name) {
library("digest")
digest(file=file_name, algo="sha1")
}
# Get a list of files ----
street... | /create_call_files.R | no_license | iangow/se_core | R | false | false | 4,315 | r | #!/usr/bin/env Rscript
# Code to generate a list of files in the StreetEvents directory
# and post to PostgreSQL.
# Set up stuff ----
library(dplyr, warn.conflicts = FALSE)
library(DBI)
getSHA1 <- function(file_name) {
library("digest")
digest(file=file_name, algo="sha1")
}
# Get a list of files ----
street... |
library("testthat")
context("ExampleRcppStringi")
test_that("test_dup", {
expect_equal(test_dup("abc", 1:10), stringi::stri_dup("abc", 1:10))
})
test_that("test_paste", {
expect_equal(test_paste(LETTERS),
stringi::stri_flatten(
stringi::stri_paste(LETTERS, 1:length(LETTERS)),... | /tests/testthat/test-calls.R | no_license | gagolews/ExampleRcppStringi | R | false | false | 331 | r | library("testthat")
context("ExampleRcppStringi")
test_that("test_dup", {
expect_equal(test_dup("abc", 1:10), stringi::stri_dup("abc", 1:10))
})
test_that("test_paste", {
expect_equal(test_paste(LETTERS),
stringi::stri_flatten(
stringi::stri_paste(LETTERS, 1:length(LETTERS)),... |
library(tidyverse)
library(ggsankey)
library(ggflags)
library(patchwork)
library(wesanderson)
# Read in data
records <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-05-25/records.csv')
drivers <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience... | /2021/2021-week21/mario.R | permissive | FBaudron/tidytuesday | R | false | false | 4,922 | r | library(tidyverse)
library(ggsankey)
library(ggflags)
library(patchwork)
library(wesanderson)
# Read in data
records <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-05-25/records.csv')
drivers <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/servicemanagement_objects.R
\name{SetIamPolicyRequest}
\alias{SetIamPolicyRequest}
\title{SetIamPolicyRequest Object}
\usage{
SetIamPolicyRequest(updateMask = NULL, policy = NULL)
}
\arguments{
\item{updateMask}{OPTIONAL: A FieldMask specifyi... | /googleservicemanagementv1.auto/man/SetIamPolicyRequest.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 729 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/servicemanagement_objects.R
\name{SetIamPolicyRequest}
\alias{SetIamPolicyRequest}
\title{SetIamPolicyRequest Object}
\usage{
SetIamPolicyRequest(updateMask = NULL, policy = NULL)
}
\arguments{
\item{updateMask}{OPTIONAL: A FieldMask specifyi... |
lava <- tibble::tibble(
sample_id = c(
937,
976,
925,
974,
924,
950,
891,
928,
929,
290,
927,
921,
968,
977,
953,
952,
923,
289,
285,
922,
280,
926,
932,
279,
892,
949,
216,
282,
896,
276,
284,
... | /data-raw/lava.R | no_license | emrstats/composr | R | false | false | 5,315 | r | lava <- tibble::tibble(
sample_id = c(
937,
976,
925,
974,
924,
950,
891,
928,
929,
290,
927,
921,
968,
977,
953,
952,
923,
289,
285,
922,
280,
926,
932,
279,
892,
949,
216,
282,
896,
276,
284,
... |
##' \code{DSPRperm} performs a permutation test for a DSPR dataset.
##'
##' The permutation test can take a very long time to run (over 24
##' hrs).
##'
##' @title DSPR permutation test
##'
##' @aliases DSPRperm print.pt
##'
##' @param model an object of class formula: a symbolic description of
##' the null m... | /R/DSPRperm.R | no_license | egking/DSPRqtl | R | false | false | 13,597 | r | ##' \code{DSPRperm} performs a permutation test for a DSPR dataset.
##'
##' The permutation test can take a very long time to run (over 24
##' hrs).
##'
##' @title DSPR permutation test
##'
##' @aliases DSPRperm print.pt
##'
##' @param model an object of class formula: a symbolic description of
##' the null m... |
library(RGA)
library(xlsx)
client.id = '543269518849-dcdk7eio32jm2i4hf241mpbdepmifj00.apps.googleusercontent.com'
client.secret = '9wSw6gyDVXtcgqEe0XazoBWG'
ga_token<-authorize(client.id, client.secret, cache = getOption("rga.cache"))
accs<-list_profiles(account.id = "~all", webproperty.id = "~all",
... | /adwords_pivot.R | no_license | thomasantonakis/cdgr_adwords | R | false | false | 1,589 | r | library(RGA)
library(xlsx)
client.id = '543269518849-dcdk7eio32jm2i4hf241mpbdepmifj00.apps.googleusercontent.com'
client.secret = '9wSw6gyDVXtcgqEe0XazoBWG'
ga_token<-authorize(client.id, client.secret, cache = getOption("rga.cache"))
accs<-list_profiles(account.id = "~all", webproperty.id = "~all",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AzureContextObject.R
\name{createAzureContext}
\alias{createAzureContext}
\title{Create an Azure Context.}
\usage{
createAzureContext(tenantID, clientID, authKey, configFile)
}
\arguments{
\item{tenantID}{The tenant ID provided during creatio... | /man/createAzureContext.Rd | no_license | inchiosa/AzureSMR | R | false | true | 1,528 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AzureContextObject.R
\name{createAzureContext}
\alias{createAzureContext}
\title{Create an Azure Context.}
\usage{
createAzureContext(tenantID, clientID, authKey, configFile)
}
\arguments{
\item{tenantID}{The tenant ID provided during creatio... |
library(dplyr)
library(ggplot2)
library(reshape2)
###################### PART 1 ######################
# Read the input and parse it
instructions = readLines("Input8_1.txt")
instructions_df = data_frame(
function_apply = if_else(grepl("rect", instructions), "rect",
if_else(grepl("row", in... | /Day8/Day8.R | no_license | RossiLorenzo/advent_code_2016 | R | false | false | 1,789 | r | library(dplyr)
library(ggplot2)
library(reshape2)
###################### PART 1 ######################
# Read the input and parse it
instructions = readLines("Input8_1.txt")
instructions_df = data_frame(
function_apply = if_else(grepl("rect", instructions), "rect",
if_else(grepl("row", in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_objects.R
\name{VideoOffset}
\alias{VideoOffset}
\title{VideoOffset Object}
\usage{
VideoOffset(offsetPercentage = NULL, offsetSeconds = NULL)
}
\arguments{
\item{offsetPercentage}{Duration, as a percentage of video duration}
\i... | /googledfareportingv27.auto/man/VideoOffset.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 520 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_objects.R
\name{VideoOffset}
\alias{VideoOffset}
\title{VideoOffset Object}
\usage{
VideoOffset(offsetPercentage = NULL, offsetSeconds = NULL)
}
\arguments{
\item{offsetPercentage}{Duration, as a percentage of video duration}
\i... |
if(!require(tidyverse)){
install.packages("tidyverse")
library(tidyverse)
}
if(!require(knitr)){
install.packages("knitr")
library(knitr)
}
movereports <- function(){
moveRnwtexlog <- list.files(pattern="*.Rnw|*.tex|*.log")
filesstrings::file.move(moveRnwtexlog, "pdfs/latexcode")
movepdf <- list.fi... | /coverletter/coverletter.R | no_license | srhoads/coverletter | R | false | false | 4,659 | r |
if(!require(tidyverse)){
install.packages("tidyverse")
library(tidyverse)
}
if(!require(knitr)){
install.packages("knitr")
library(knitr)
}
movereports <- function(){
moveRnwtexlog <- list.files(pattern="*.Rnw|*.tex|*.log")
filesstrings::file.move(moveRnwtexlog, "pdfs/latexcode")
movepdf <- list.fi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getdata.R
\name{getdata}
\alias{getdata}
\title{Get xcmsset object in one step with optimized methods.}
\usage{
getdata(path, index = F, BPPARAM = BiocParallel::SnowParam(),
pmethod = "hplcorbitrap", minfrac = 0.67, ...)
}
\arguments{
\item... | /man/getdata.Rd | no_license | AspirinCode/enviGCMS | R | false | true | 1,570 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getdata.R
\name{getdata}
\alias{getdata}
\title{Get xcmsset object in one step with optimized methods.}
\usage{
getdata(path, index = F, BPPARAM = BiocParallel::SnowParam(),
pmethod = "hplcorbitrap", minfrac = 0.67, ...)
}
\arguments{
\item... |
library(rgdal)
base_dir <- '/home/userz/projects/wb_vfm_work'
carbon_zones_path <- paste(base_dir, '/carbon_data/wb_pc1_carbon_with_zones_and_extract_fill_type.geojson', sep="")
carbon_zones <- readOGR(carbon_zones_path, "OGRGeoJSON")
# format data types as needed
to_numeric <- "carbon_extract"
for (cname in co... | /scripts/wb_pc1_model_04/carbon_val.R | no_license | DanRunfola/WBVFMNCC | R | false | false | 7,570 | r |
library(rgdal)
base_dir <- '/home/userz/projects/wb_vfm_work'
carbon_zones_path <- paste(base_dir, '/carbon_data/wb_pc1_carbon_with_zones_and_extract_fill_type.geojson', sep="")
carbon_zones <- readOGR(carbon_zones_path, "OGRGeoJSON")
# format data types as needed
to_numeric <- "carbon_extract"
for (cname in co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calcMSEDS.R
\name{calcMSEDS}
\alias{calcMSEDS}
\title{Calculate mean-squared errors (MSE)}
\usage{
calcMSEDS(ws, x, y, average)
}
\arguments{
\item{ws}{The list of coefficient vectors for all servers}
\item{x}{The design matrix on a target s... | /man/calcMSEDS.Rd | no_license | YouchengZHANG/dsMTLBase | R | false | true | 906 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calcMSEDS.R
\name{calcMSEDS}
\alias{calcMSEDS}
\title{Calculate mean-squared errors (MSE)}
\usage{
calcMSEDS(ws, x, y, average)
}
\arguments{
\item{ws}{The list of coefficient vectors for all servers}
\item{x}{The design matrix on a target s... |
library(ggplot2)
library(rstan)
library(plyr)
source('generate_scr_data.R')
source('scr_model.R')
set.seed(3)
# Generate Fake Data
cfg = list(plotData = T,
nsub = 20,
nonsets = 15,
ntime = 300)
data.onset = NULL
data.sim = NULL
for(sub in 1:cfg$nsub){
# This data.frame defines when t... | /code/R/fit_simulated_data_model2_beta.R | no_license | selimonat/BayesianSCR | R | false | false | 3,543 | r | library(ggplot2)
library(rstan)
library(plyr)
source('generate_scr_data.R')
source('scr_model.R')
set.seed(3)
# Generate Fake Data
cfg = list(plotData = T,
nsub = 20,
nonsets = 15,
ntime = 300)
data.onset = NULL
data.sim = NULL
for(sub in 1:cfg$nsub){
# This data.frame defines when t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rdecorana.R
\name{rdecorana}
\alias{rdecorana}
\alias{scores.rdecorana}
\title{Decorana: R implementation}
\usage{
rdecorana(
x,
iweigh = 0,
iresc = 4,
ira = 0,
mk = 26,
short = 0,
before = NULL,
after = NULL
)
\method{scores... | /man/rdecorana.Rd | no_license | jarioksa/natto | R | false | true | 4,941 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rdecorana.R
\name{rdecorana}
\alias{rdecorana}
\alias{scores.rdecorana}
\title{Decorana: R implementation}
\usage{
rdecorana(
x,
iweigh = 0,
iresc = 4,
ira = 0,
mk = 26,
short = 0,
before = NULL,
after = NULL
)
\method{scores... |
plot2 <- function(subSetData)
{
png(file="plot2.png",width=480,height=480)
plot(subSetData$Time,
subSetData$Global_active_power,
type="l",
xlab="",
ylab="Global Active Power (kilowatts)")
dev.off()
} | /plot2.r | no_license | DeonJacobs/ExData_Plotting1 | R | false | false | 241 | r | plot2 <- function(subSetData)
{
png(file="plot2.png",width=480,height=480)
plot(subSetData$Time,
subSetData$Global_active_power,
type="l",
xlab="",
ylab="Global Active Power (kilowatts)")
dev.off()
} |
# History Jan 09 2018 Add option ambig.by.AF
options.default <- function(){
opt.default <- list(out.dir = getwd(),
id.str = "PID",
method = 3,
nperm = 1E5,
snp.miss.rate = .05,
maf = .05,
... | /R/options.default.R | no_license | cran/ARTP2 | R | false | false | 1,944 | r | # History Jan 09 2018 Add option ambig.by.AF
options.default <- function(){
opt.default <- list(out.dir = getwd(),
id.str = "PID",
method = 3,
nperm = 1E5,
snp.miss.rate = .05,
maf = .05,
... |
#### see how well Good's u performs in simulations ####
moar_sizes <- lseq(from = 1, to = 10000, length.out = 40) %>% round() %>% unique()
moar_nreps <- 500
tim <- list()
for (k in 1:nrow(pools)) {
distr <- setNames(underlying[[k]], paste("sp", 1:length(underlying[[k]]), sep = "_"))
distr <- distr/sum(distr)
tim[[k]... | /subscripts/11.5 Simulations 4 - Testing Good's u in simulations.R | no_license | aazaff/SSDCs | R | false | false | 4,489 | r | #### see how well Good's u performs in simulations ####
moar_sizes <- lseq(from = 1, to = 10000, length.out = 40) %>% round() %>% unique()
moar_nreps <- 500
tim <- list()
for (k in 1:nrow(pools)) {
distr <- setNames(underlying[[k]], paste("sp", 1:length(underlying[[k]]), sep = "_"))
distr <- distr/sum(distr)
tim[[k]... |
## makeCacheMatrix(x = matrix())
## Creates a special matrix in R that can cache it's own inverse
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinv <- function(inverse) inv <<- inverse
getinv <- functio... | /cachematrix.R | no_license | secastro/ProgrammingAssignment2 | R | false | false | 813 | r | ## makeCacheMatrix(x = matrix())
## Creates a special matrix in R that can cache it's own inverse
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinv <- function(inverse) inv <<- inverse
getinv <- functio... |
library(tidyverse)
#Q1
ggplot(data = diamonds) +
geom_histogram(mapping = aes(x = price), binwidth = 100)
#Q2 Which of the 4Cs (carat, cut, clarity, color) is most important for predicting the price of a diamond?
# Carat is the clear winner. While there are a number of ways to visualize
# covariation between th... | /submissions/03-r4ds-exploratory-data-analysis-xy2th.R | no_license | GCOM7140/r4ds-exercises | R | false | false | 1,826 | r |
library(tidyverse)
#Q1
ggplot(data = diamonds) +
geom_histogram(mapping = aes(x = price), binwidth = 100)
#Q2 Which of the 4Cs (carat, cut, clarity, color) is most important for predicting the price of a diamond?
# Carat is the clear winner. While there are a number of ways to visualize
# covariation between th... |
library(ggplot2)
library(RColorBrewer)
library(reshape2)
library(gridExtra)
library(data.table)
measurements = read.csv("~/git/paper-tecs-2021-rt-queries-modelgen/tables/heatmap-data.csv", header=T)
# Create a new scale for each query (column)
measurements<-data.table(measurements)
measurements[,value_norm:=exectime... | /tecs/plot_heatmap.r | no_license | imbur/paper-utility-scripts | R | false | false | 1,652 | r | library(ggplot2)
library(RColorBrewer)
library(reshape2)
library(gridExtra)
library(data.table)
measurements = read.csv("~/git/paper-tecs-2021-rt-queries-modelgen/tables/heatmap-data.csv", header=T)
# Create a new scale for each query (column)
measurements<-data.table(measurements)
measurements[,value_norm:=exectime... |
\name{Hurlbert}
\alias{Hurlbert}
\alias{bcHurlbert}
\alias{Hurlbert.ProbaVector}
\alias{Hurlbert.AbdVector}
\alias{Hurlbert.integer}
\alias{Hurlbert.numeric}
\alias{HurlbertD}
\alias{bcHurlbertD}
\alias{HurlbertD.ProbaVector}
\alias{HurlbertD.AbdVector}
\alias{HurlbertD.integer}
\alias{HurlbertD.numeric}
\... | /man/Hurlbert.Rd | no_license | thalesshannonwatson/entropart | R | false | false | 4,278 | rd | \name{Hurlbert}
\alias{Hurlbert}
\alias{bcHurlbert}
\alias{Hurlbert.ProbaVector}
\alias{Hurlbert.AbdVector}
\alias{Hurlbert.integer}
\alias{Hurlbert.numeric}
\alias{HurlbertD}
\alias{bcHurlbertD}
\alias{HurlbertD.ProbaVector}
\alias{HurlbertD.AbdVector}
\alias{HurlbertD.integer}
\alias{HurlbertD.numeric}
\... |
#--- Merge output files in RESULTS dir ---#
library(igraph)
#---Script requires two inputs
# args[1] == The network file under study
# 1 == PPI_Presynaptic_Published
# 2 == PPI_PSP_clean_Published
# 3 == PPI_PSP_reduced
# args[2] == The number of iterations per job
args <- commandArgs(TRUE);
ss ... | /MScProject/Code_07_06_2018/DiseasePairs/RANDOM/EDDIE/SCRIPTS/merge.r | no_license | vardaansharma/MScProject | R | false | false | 7,609 | r | #--- Merge output files in RESULTS dir ---#
library(igraph)
#---Script requires two inputs
# args[1] == The network file under study
# 1 == PPI_Presynaptic_Published
# 2 == PPI_PSP_clean_Published
# 3 == PPI_PSP_reduced
# args[2] == The number of iterations per job
args <- commandArgs(TRUE);
ss ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rcript.R
\name{toBinary}
\alias{toBinary}
\title{toBinary}
\usage{
toBinary(x)
}
\arguments{
\item{x}{A posit8, quire8, posit16, quire16, posit32, quire32, posit_2 or quire_2 object.}
}
\value{
posit8, quire8, posit16, quire16, posit32, quire... | /man/toBinary.Rd | no_license | HPCC-UNUM/SoftPosit | R | false | true | 493 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rcript.R
\name{toBinary}
\alias{toBinary}
\title{toBinary}
\usage{
toBinary(x)
}
\arguments{
\item{x}{A posit8, quire8, posit16, quire16, posit32, quire32, posit_2 or quire_2 object.}
}
\value{
posit8, quire8, posit16, quire16, posit32, quire... |
# section 5 ==================================================================================
# make plot basic =====================
#plot(salmonRaw$length, salmonRaw$weight,
# xlim = c(0, 150),
# ylim = c(0, 20))
### base plot
plot(salmonTidy$length, salmonTidy$weight)
### inches to cm correction
salmo... | /5.exercices.corrections/0.previous.courses/2017.11/5.Graphics.R | no_license | GuillaumeBal/r.training | R | false | false | 2,872 | r | # section 5 ==================================================================================
# make plot basic =====================
#plot(salmonRaw$length, salmonRaw$weight,
# xlim = c(0, 150),
# ylim = c(0, 20))
### base plot
plot(salmonTidy$length, salmonTidy$weight)
### inches to cm correction
salmo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exdqlmMCMC.R
\name{exdqlmMCMC}
\alias{exdqlmMCMC}
\title{exDQLM - MCMC algorithm}
\usage{
exdqlmMCMC(
y,
p0,
model,
df,
dim.df,
fix.gamma = FALSE,
gam.init = NA,
fix.sigma = FALSE,
sig.init = NA,
dqlm.ind = FALSE,
Sig.mh... | /man/exdqlmMCMC.Rd | no_license | luiarthur/exdqlm | R | false | true | 4,596 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exdqlmMCMC.R
\name{exdqlmMCMC}
\alias{exdqlmMCMC}
\title{exDQLM - MCMC algorithm}
\usage{
exdqlmMCMC(
y,
p0,
model,
df,
dim.df,
fix.gamma = FALSE,
gam.init = NA,
fix.sigma = FALSE,
sig.init = NA,
dqlm.ind = FALSE,
Sig.mh... |
# Michael Dann
# mhdann@gmail.com
#
# Graphs of the taxi data
#
#
setwd("D:/data/taxi/nyctaxi")
library(ggplot2)
library(data.table)
| /nycGraphs.R | no_license | mhdann/nyctaxi | R | false | false | 135 | r | # Michael Dann
# mhdann@gmail.com
#
# Graphs of the taxi data
#
#
setwd("D:/data/taxi/nyctaxi")
library(ggplot2)
library(data.table)
|
#' Proportion of variables containing missings or complete values
#'
#' Calculate the proportion of variables that contain a single missing or
#' complete values.
#'
#' @param data a dataframe
#'
#' @return numeric the proportion of variables that contain missing or complete
#' data
#'
#' @seealso [miss_case_pct]... | /R/miss-complete-x-pct-prop.R | no_license | halzahrani/naniar | R | false | false | 4,195 | r | #' Proportion of variables containing missings or complete values
#'
#' Calculate the proportion of variables that contain a single missing or
#' complete values.
#'
#' @param data a dataframe
#'
#' @return numeric the proportion of variables that contain missing or complete
#' data
#'
#' @seealso [miss_case_pct]... |
context("dose_response_function")
test_that("Evaluate the linear dose response function", {
x = seq(0, 1, 0.1)
coef = c(0.2, 1.2)
input = rep(0, length(x))
output = rep(0, length(x))
for (i in 1:length(x)) {
input[i] = coef[1] + coef[2] * x[i]
output[i] = TestDoseResponseFunction(x[i], 1, coef)
}
expe... | /fuzzedpackages/MCPModPack/tests/testthat/test-dose_response_function.r | no_license | akhikolla/testpackages | R | false | false | 2,184 | r | context("dose_response_function")
test_that("Evaluate the linear dose response function", {
x = seq(0, 1, 0.1)
coef = c(0.2, 1.2)
input = rep(0, length(x))
output = rep(0, length(x))
for (i in 1:length(x)) {
input[i] = coef[1] + coef[2] * x[i]
output[i] = TestDoseResponseFunction(x[i], 1, coef)
}
expe... |
# Dmitrof
#All my best files
| /README.RD | no_license | DmitrofNET/Dmitrof | R | false | false | 29 | rd | # Dmitrof
#All my best files
|
## These two functions were created to avoid repeating
## computation if they were done before. They check whether
## it is the case or not. If it is, they display the cached result
## and if it is not, they perform the computation.
## In our case it concerns inverting matrices.
## This function returns a list of th... | /cachematrix.R | no_license | L-Po/ProgrammingAssignment2 | R | false | false | 1,441 | r | ## These two functions were created to avoid repeating
## computation if they were done before. They check whether
## it is the case or not. If it is, they display the cached result
## and if it is not, they perform the computation.
## In our case it concerns inverting matrices.
## This function returns a list of th... |
\name{stamford.df}
\alias{stamford.df}
\docType{data}
\title{
Maximum Daily Ozone Concertrations
}
\description{
Daily maximum ozone concertrations at Stamford, Connecticut and Yonkers, New York, during the period 1 May 1974 to 30 September 1974.
}
\usage{data(stamford.df)}
\format{
A data frame with 136 o... | /man/stamford.df.Rd | no_license | cran/R330 | R | false | false | 919 | rd | \name{stamford.df}
\alias{stamford.df}
\docType{data}
\title{
Maximum Daily Ozone Concertrations
}
\description{
Daily maximum ozone concertrations at Stamford, Connecticut and Yonkers, New York, during the period 1 May 1974 to 30 September 1974.
}
\usage{data(stamford.df)}
\format{
A data frame with 136 o... |
#' @title Put Greeks
#' @description Calculate the Specified Option Greek of a Contract
#' @param s Spot Price of Underlying Asset
#' @param k Exercise Price of Contract
#' @param t Time to Expiration
#' @param sd Volatality
#' @param r Risk free rate of return
#' @param greek Character String of the greek to be... | /R/put_greek.R | no_license | cran/roptions | R | false | false | 1,907 | r | #' @title Put Greeks
#' @description Calculate the Specified Option Greek of a Contract
#' @param s Spot Price of Underlying Asset
#' @param k Exercise Price of Contract
#' @param t Time to Expiration
#' @param sd Volatality
#' @param r Risk free rate of return
#' @param greek Character String of the greek to be... |
library(dplyr)
library(car)
library(ggplot2)
library(car)
library(GGally)
library(stargazer)
library(hnp)
setwd("~/Documents/maestria-pucp/2019-2/modelos-lineales-2/clase-7/")
datos_preg4 <- readxl::read_excel("pregunta4_diana_v2.xlsx")
dim(datos_preg4)
head(datos_preg4)
glimpse(datos_preg4)
summary(datos_preg4)
no... | /2019-2/modelos-lineales-2/clase-7/preg4_data_diana.r | no_license | jamanrique/maestria-pucp | R | false | false | 2,089 | r | library(dplyr)
library(car)
library(ggplot2)
library(car)
library(GGally)
library(stargazer)
library(hnp)
setwd("~/Documents/maestria-pucp/2019-2/modelos-lineales-2/clase-7/")
datos_preg4 <- readxl::read_excel("pregunta4_diana_v2.xlsx")
dim(datos_preg4)
head(datos_preg4)
glimpse(datos_preg4)
summary(datos_preg4)
no... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ash.R
\name{ash}
\alias{ash}
\title{Main Adaptive Shrinkage function}
\usage{
ash(betahat, sebetahat, mixcompdist = c("uniform", "halfuniform", "normal",
"+uniform", "-uniform", "halfnormal"), df = NULL, ...)
}
\arguments{
\item{betahat}{a ... | /man/ash.Rd | no_license | alenzhao/ashr | R | false | true | 3,549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ash.R
\name{ash}
\alias{ash}
\title{Main Adaptive Shrinkage function}
\usage{
ash(betahat, sebetahat, mixcompdist = c("uniform", "halfuniform", "normal",
"+uniform", "-uniform", "halfnormal"), df = NULL, ...)
}
\arguments{
\item{betahat}{a ... |
# Decision Trees : - regression tree
#install and load this library
library(ISLR)
data(Carseats)
?Carseats
data = Carseats
head(data)
#Libraries for Decision Tree
library(rpart)
library(rpart.plot)
#Model
tree1 = rpart(Sales ~ . , data=data, method='anova' )
tree1
rpart.plot(tree1, cex=.8)
#this is large tree, so pr... | /3b1.R | no_license | indira94/cbap | R | false | false | 1,325 | r | # Decision Trees : - regression tree
#install and load this library
library(ISLR)
data(Carseats)
?Carseats
data = Carseats
head(data)
#Libraries for Decision Tree
library(rpart)
library(rpart.plot)
#Model
tree1 = rpart(Sales ~ . , data=data, method='anova' )
tree1
rpart.plot(tree1, cex=.8)
#this is large tree, so pr... |
makeVector <- function(x = numeric()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
set <- function() x
get <- x
setmean <- function(mean) m <<- mean
getmean <- function() m
list(set = set, get = get,
setmean = setmean,
getmean = getmean)
}
cachemean <- function(x, ...) {
... | /cachemean.R | no_license | dcoop689/datasciencecoursera | R | false | false | 473 | r | makeVector <- function(x = numeric()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
set <- function() x
get <- x
setmean <- function(mean) m <<- mean
getmean <- function() m
list(set = set, get = get,
setmean = setmean,
getmean = getmean)
}
cachemean <- function(x, ...) {
... |
\name{interactive2D}
\alias{interactive2D}
\title{A GUI for classification in two dimensions using smoothed log-concave}
\description{
Uses \code{\link[tkrplot:TkRplot]{tkrplot}} to create a GUI for two-class classification
in two dimensions using the smoothed log-concave maximum likelihood estimates
}
\usage{
... | /man/interactive2D.Rd | no_license | cran/LogConcDEAD | R | false | false | 2,072 | rd | \name{interactive2D}
\alias{interactive2D}
\title{A GUI for classification in two dimensions using smoothed log-concave}
\description{
Uses \code{\link[tkrplot:TkRplot]{tkrplot}} to create a GUI for two-class classification
in two dimensions using the smoothed log-concave maximum likelihood estimates
}
\usage{
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_382}
\alias{movie_382}
\title{Jackie Brown}
\format{
igraph object
}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0119396
}
\usa... | /man/movie_382.Rd | permissive | schochastics/networkdata | R | false | true | 1,007 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_382}
\alias{movie_382}
\title{Jackie Brown}
\format{
igraph object
}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0119396
}
\usa... |
library(shiny)
library(plotly)
library(rjson)
suppressPackageStartupMessages(library(shinyjs))
library(shinyAce)
library(shinyBS)
library(shinydashboard)
library(shinythemes)
source(file.path("ui", "helpers.R"))
header <- dashboardHeader(
title = "pcadapt"
)
body <- dashboardBody(
tagList(
... | /inst/shiny-examples/app-pcadapt/ui.R | no_license | cran/pcadapt | R | false | false | 1,798 | r | library(shiny)
library(plotly)
library(rjson)
suppressPackageStartupMessages(library(shinyjs))
library(shinyAce)
library(shinyBS)
library(shinydashboard)
library(shinythemes)
source(file.path("ui", "helpers.R"))
header <- dashboardHeader(
title = "pcadapt"
)
body <- dashboardBody(
tagList(
... |
#' Get the standard error of the mean
#'
#' The standard deviation divided by the square root of n
#'
#' @param x Numeric vector
#' @return Numeric, standard error of the mean
sem<-function(x){sd(x,na.rm=T)/sqrt(length(x))}
#' Get the mode of a distribution
#'
#' This get you the value with the highest frequency i... | /R/Math.R | no_license | kevin-allen/relectro | R | false | false | 8,662 | r | #' Get the standard error of the mean
#'
#' The standard deviation divided by the square root of n
#'
#' @param x Numeric vector
#' @return Numeric, standard error of the mean
sem<-function(x){sd(x,na.rm=T)/sqrt(length(x))}
#' Get the mode of a distribution
#'
#' This get you the value with the highest frequency i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/casecohort_secondary.R
\docType{data}
\name{casecohort_data_secondary}
\alias{casecohort_data_secondary}
\title{Data example for the secondary analysis in case-cohort design}
\format{A data frame with 1000 rows and 15 columns: \describe{
\i... | /man/casecohort_data_secondary.Rd | no_license | Yinghao-Pan/ODS | R | false | true | 1,386 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/casecohort_secondary.R
\docType{data}
\name{casecohort_data_secondary}
\alias{casecohort_data_secondary}
\title{Data example for the secondary analysis in case-cohort design}
\format{A data frame with 1000 rows and 15 columns: \describe{
\i... |
## This routine sets up the callback code for user-written split
## routines in rpart
##
rpartcallback <- function(mlist, nobs, init)
{
if (length(mlist) < 3L)
stop("User written methods must have 3 functions")
if (!is.function(mlist$init))
stop("User written method does not contain an 'init' f... | /R/rpartcallback.R | no_license | bethatkinson/rpart | R | false | false | 5,028 | r | ## This routine sets up the callback code for user-written split
## routines in rpart
##
rpartcallback <- function(mlist, nobs, init)
{
if (length(mlist) < 3L)
stop("User written methods must have 3 functions")
if (!is.function(mlist$init))
stop("User written method does not contain an 'init' f... |
# useful functions
#' hh
#' shorter for the here::here function
#' see here::here for more info
#' @param path path to file
#' @param ...
#'
#' @return path to file
#' @export
hh <- function(path, ...){
here::here(path, ...)
} # eo of hh
#' look_cor
#' This function orders the species according to their individ... | /R/functions.R | permissive | JulietteLgls/aesthcorareef | R | false | false | 8,780 | r | # useful functions
#' hh
#' shorter for the here::here function
#' see here::here for more info
#' @param path path to file
#' @param ...
#'
#' @return path to file
#' @export
hh <- function(path, ...){
here::here(path, ...)
} # eo of hh
#' look_cor
#' This function orders the species according to their individ... |
#Code to process YSI profiles from fixed sites
library(readxl)
library(plyr)
library(viridis)
library(lubridate)
library(ggplot2)
library(gridExtra)
source('R/read_excel_allsheets.R')
source('R/g_legend.R')
# Project folder where outputs are stored
dropbox_dir<-'C:/Dropbox/USBR Delta Project'
#Where data come fro... | /R/CompileVerticalProfiles_NutrientExperiment.R | no_license | lukeloken/USBRDelta | R | false | false | 5,972 | r |
#Code to process YSI profiles from fixed sites
library(readxl)
library(plyr)
library(viridis)
library(lubridate)
library(ggplot2)
library(gridExtra)
source('R/read_excel_allsheets.R')
source('R/g_legend.R')
# Project folder where outputs are stored
dropbox_dir<-'C:/Dropbox/USBR Delta Project'
#Where data come fro... |
# Obtain numbers for manuscript
# ------------------------------------------------------------------------------
# * Determine comparative concentrations in tissues at 24 hours
# * Determine time above IC90 in AM and lung tissue for each regimen
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... | /manuscript/15_TimeAboveEC90/01_command.R | no_license | jhhughes256/azithro_pk | R | false | false | 3,068 | r | # Obtain numbers for manuscript
# ------------------------------------------------------------------------------
# * Determine comparative concentrations in tissues at 24 hours
# * Determine time above IC90 in AM and lung tissue for each regimen
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... |
hcvc.fun.default <-
function(Vec,bw=NULL,type_data,ker,a0=0,a1=1,...)
{
if(is.null(bw)) {
bw=seq((max(Vec)-min(Vec))/200,(max(Vec)-min(Vec))/2, length.out=100)
}
result1<-0
result2<-0
x=seq(min(Vec),max(Vec),length.out=100)
n1 <- length(x)
n2 <- length(Vec)
m1=matrix(0,n1,length(Vec))
m2=matr... | /R/hcvc.fun.default.R | no_license | cran/Ake | R | false | false | 877 | r | hcvc.fun.default <-
function(Vec,bw=NULL,type_data,ker,a0=0,a1=1,...)
{
if(is.null(bw)) {
bw=seq((max(Vec)-min(Vec))/200,(max(Vec)-min(Vec))/2, length.out=100)
}
result1<-0
result2<-0
x=seq(min(Vec),max(Vec),length.out=100)
n1 <- length(x)
n2 <- length(Vec)
m1=matrix(0,n1,length(Vec))
m2=matr... |
################################################################################
# WHAT YOU NEED TO KNOW BEFORE EXECUTING THIS SCRIPT
################################################################################
# DESCRIPTION: The script 'plot2.R', constructs and saves a bar-chart
# of the 'Total Emi... | /plot2.R | no_license | jzstats/Exploratory-Data-Analysis-Assingment | R | false | false | 6,652 | r | ################################################################################
# WHAT YOU NEED TO KNOW BEFORE EXECUTING THIS SCRIPT
################################################################################
# DESCRIPTION: The script 'plot2.R', constructs and saves a bar-chart
# of the 'Total Emi... |
context("Ensuring that the `fmt_currency()` function works as expected")
test_that("the `fmt_currency()` function works correctly", {
# Create an input data frame four columns: two
# character-based and two that are numeric
data_tbl <-
data.frame(
char_1 = c("saturday", "sunday", "monday", "tuesday",
... | /tests/testthat/test-fmt_currency.R | permissive | erinsteiner-NOAA/gt | R | false | false | 16,162 | r | context("Ensuring that the `fmt_currency()` function works as expected")
test_that("the `fmt_currency()` function works correctly", {
# Create an input data frame four columns: two
# character-based and two that are numeric
data_tbl <-
data.frame(
char_1 = c("saturday", "sunday", "monday", "tuesday",
... |
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/autonomic_ganglia.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="mse",alpha=0.35,family="gaussian",standardize=TRUE)
sink('./Model/EN/ReliefF/autonomic_ganglia/auto... | /Model/EN/ReliefF/autonomic_ganglia/autonomic_ganglia_045.R | no_license | leon1003/QSMART | R | false | false | 385 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/autonomic_ganglia.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="mse",alpha=0.35,family="gaussian",standardize=TRUE)
sink('./Model/EN/ReliefF/autonomic_ganglia/auto... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hamcrest.R
\name{testHamcrest}
\alias{testHamcrest}
\title{A testing suite for hamcrest tests}
\usage{
testHamcrest(note, ...)
}
\arguments{
\item{note}{an explanatory text for the tests.}
\item{...}{hamcrest assertions.}
}
\description{
The... | /man/testHamcrest.Rd | permissive | bedatadriven/hamcrest | R | false | true | 474 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hamcrest.R
\name{testHamcrest}
\alias{testHamcrest}
\title{A testing suite for hamcrest tests}
\usage{
testHamcrest(note, ...)
}
\arguments{
\item{note}{an explanatory text for the tests.}
\item{...}{hamcrest assertions.}
}
\description{
The... |
#' Generating Equivalent Models
#'
#' Returns a set of complete partially directed acyclic graphs (CPDAGs) given an
#' input DAG. CPDAGs are Markov equivalent to the input graph. See
#' [dagitty::equivalentDAGs()] for details.
#' `node_equivalent_dags()` returns a set of DAGs, while
#' `node_equivalent_class()` tags re... | /R/equivalence.R | permissive | gerasy1987/ggdag | R | false | false | 5,808 | r | #' Generating Equivalent Models
#'
#' Returns a set of complete partially directed acyclic graphs (CPDAGs) given an
#' input DAG. CPDAGs are Markov equivalent to the input graph. See
#' [dagitty::equivalentDAGs()] for details.
#' `node_equivalent_dags()` returns a set of DAGs, while
#' `node_equivalent_class()` tags re... |
\name{orangeJuice}
\alias{orangeJuice}
\docType{data}
\title{Store-level Panel Data on Orange Juice Sales}
\description{
yx, weekly sales of refrigerated orange juice at 83 stores. \cr
storedemo, contains demographic information on those stores. \cr
}
\usage{data(orangeJuice)}
\format{
This R object is a... | /pkgs/bayesm/man/orangeJuice.Rd | no_license | vaguiar/EDAV_Project_2017 | R | false | false | 6,719 | rd | \name{orangeJuice}
\alias{orangeJuice}
\docType{data}
\title{Store-level Panel Data on Orange Juice Sales}
\description{
yx, weekly sales of refrigerated orange juice at 83 stores. \cr
storedemo, contains demographic information on those stores. \cr
}
\usage{data(orangeJuice)}
\format{
This R object is a... |
#Assignment8.2
install.packages("Rcmdr")
library("Rcmdr")
install.packages("RcmdrPlugin.IPSUR")
library("RcmdrPlugin.IPSUR")
data("RcmdrTestDrive")
RcmdrTestDrive
str(RcmdrTestDrive)
#a. Compute the measures of central tendency for salary and reduction which
#variable has highest center?
library(psych... | /Assignment8.2.r | no_license | VereDias/Assignment8.2 | R | false | false | 589 | r | #Assignment8.2
install.packages("Rcmdr")
library("Rcmdr")
install.packages("RcmdrPlugin.IPSUR")
library("RcmdrPlugin.IPSUR")
data("RcmdrTestDrive")
RcmdrTestDrive
str(RcmdrTestDrive)
#a. Compute the measures of central tendency for salary and reduction which
#variable has highest center?
library(psych... |
rm(list=ls())
library(data.table)
library(ggplot2)
library(lubridate)
library(zipcode)
library(dplyr)
library(stringr)
library(sqldf)
library(car)
library(magrittr)
library(caTools)
require(Matrix)
require(data.table)
if (!require(vcd)) {
install.packages('vcd') #Available in Cran. Used for its datase... | /R/DataCleaningUtilities/Final Script.R | no_license | rohitmuthmare/UsedCarPricing | R | false | false | 21,496 | r | rm(list=ls())
library(data.table)
library(ggplot2)
library(lubridate)
library(zipcode)
library(dplyr)
library(stringr)
library(sqldf)
library(car)
library(magrittr)
library(caTools)
require(Matrix)
require(data.table)
if (!require(vcd)) {
install.packages('vcd') #Available in Cran. Used for its datase... |
\name{StandardizeXX}
\alias{StandardizeXX}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Standardize the coefficients }
\description{
Standardizes a covariate or response data item
}
\usage{
StandardizeXX(XX)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{XX}{ ... | /TwoLassoCpp/man/StandardizeXX.Rd | no_license | lenarcica/SimulationStackForBayesSpike | R | false | false | 1,314 | rd | \name{StandardizeXX}
\alias{StandardizeXX}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Standardize the coefficients }
\description{
Standardizes a covariate or response data item
}
\usage{
StandardizeXX(XX)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{XX}{ ... |
# Author: Shubham Agrawal
# Created on 25th May, 2014
require(data.table)
genTidyData <- function(datafile='tidyData.txt', sep=' ') {
# Read Training Data
train_X <- read.table('train/X_train.txt')
train_y <- read.table('train/y_train.txt', col.names=c('ActivityID'))
train_subjects <- read.table('trai... | /run_analysis.R | no_license | shubs307/GetCleanDataCourseProject | R | false | false | 2,687 | r | # Author: Shubham Agrawal
# Created on 25th May, 2014
require(data.table)
genTidyData <- function(datafile='tidyData.txt', sep=' ') {
# Read Training Data
train_X <- read.table('train/X_train.txt')
train_y <- read.table('train/y_train.txt', col.names=c('ActivityID'))
train_subjects <- read.table('trai... |
################################################################################
# Authors:
# Alfredo Sanchez-Tojar (alfredo.tojar@gmail.com)
# Affiliation: Dept. Evolutionary Biology, Bielefeld University, Germany
# Profile: https://scholar.google.de/citations?user=Sh-Rjq8AAAAJ&hl=de
# Script first created on th... | /009_appendix_S3.R | permissive | ASanchez-Tojar/animal_personality_terminology | R | false | false | 16,573 | r | ################################################################################
# Authors:
# Alfredo Sanchez-Tojar (alfredo.tojar@gmail.com)
# Affiliation: Dept. Evolutionary Biology, Bielefeld University, Germany
# Profile: https://scholar.google.de/citations?user=Sh-Rjq8AAAAJ&hl=de
# Script first created on th... |
library(circlize)
### Name: circos.genomicAxis
### Title: Add genomic axes
### Aliases: circos.genomicAxis
### ** Examples
circos.initializeWithIdeogram(plotType = NULL)
circos.track(ylim = c(0, 1), panel.fun = function(x, y) circos.genomicAxis())
circos.clear()
| /data/genthat_extracted_code/circlize/examples/circos.genomicAxis.rd.R | no_license | surayaaramli/typeRrh | R | false | false | 270 | r | library(circlize)
### Name: circos.genomicAxis
### Title: Add genomic axes
### Aliases: circos.genomicAxis
### ** Examples
circos.initializeWithIdeogram(plotType = NULL)
circos.track(ylim = c(0, 1), panel.fun = function(x, y) circos.genomicAxis())
circos.clear()
|
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/central_nervous_system.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.95,family="gaussian",standardize=TRUE)
sink('./central_nervous_... | /Model/EN/AvgRank/central_nervous_system/central_nervous_system_095.R | no_license | esbgkannan/QSMART | R | false | false | 378 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/central_nervous_system.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.95,family="gaussian",standardize=TRUE)
sink('./central_nervous_... |
print.monet <- function(x, ...){
cat("\n Entropy based monitoring network\n\n")
cat(paste("method: ", x$method,"\n\n"))
cat(paste("determinant of selected cov. matrix: ", x$det,"\n"))
if(!is.null(x$iter))
cat(paste("no. of iterations: ", x$iter,"\n"))
if(!is.null(x$maxcount))
cat(paste("max. used hea... | /R/monet.R | permissive | cran/edesign | R | false | false | 1,071 | r | print.monet <- function(x, ...){
cat("\n Entropy based monitoring network\n\n")
cat(paste("method: ", x$method,"\n\n"))
cat(paste("determinant of selected cov. matrix: ", x$det,"\n"))
if(!is.null(x$iter))
cat(paste("no. of iterations: ", x$iter,"\n"))
if(!is.null(x$maxcount))
cat(paste("max. used hea... |
# Load data
data <- read.csv("../Data/household_power_consumption.txt", sep = ";")
# Select entries for 1st and 2nd of Feb
data <- data[data$Date == "1/2/2007" | data$Date == "2/2/2007", ]
# Extract xs
datetime <- paste(data$Date, data$Time)
hours <- strptime(datetime, "%d/%m/%Y %H:%M:%S")
# Extract ys
es1 <- as.numeri... | /plot3.R | no_license | adamjankaczmarek/ExData_Plotting1 | R | false | false | 784 | r | # Load data
data <- read.csv("../Data/household_power_consumption.txt", sep = ";")
# Select entries for 1st and 2nd of Feb
data <- data[data$Date == "1/2/2007" | data$Date == "2/2/2007", ]
# Extract xs
datetime <- paste(data$Date, data$Time)
hours <- strptime(datetime, "%d/%m/%Y %H:%M:%S")
# Extract ys
es1 <- as.numeri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HausmanTest.R
\name{HausmanTest}
\alias{HausmanTest}
\title{Hausmann Test for identification}
\usage{
HausmanTest(y, x, z)
}
\arguments{
\item{y}{series name}
\item{x}{series name,}
\item{z}{series name}
}
\description{
This function allows... | /man/HausmanTest.Rd | no_license | econwithR/EwR | R | false | true | 481 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HausmanTest.R
\name{HausmanTest}
\alias{HausmanTest}
\title{Hausmann Test for identification}
\usage{
HausmanTest(y, x, z)
}
\arguments{
\item{y}{series name}
\item{x}{series name,}
\item{z}{series name}
}
\description{
This function allows... |
#################################### CALIBRAION ####################################
data_extraction_multiexperiment("Calibration_4")
fitCal4 <- stan(file="Model3.stan", data = data_multi, iter = 3000, warmup = 1000, chains = 4, control = list(adapt_delta = 0.95, stepsize_jitter = 0.5, max_treedepth = 13))
fitCal4.ds... | /Models_Final/multiRun.R | no_license | csynbiosys/BayGame | R | false | false | 6,971 | r |
#################################### CALIBRAION ####################################
data_extraction_multiexperiment("Calibration_4")
fitCal4 <- stan(file="Model3.stan", data = data_multi, iter = 3000, warmup = 1000, chains = 4, control = list(adapt_delta = 0.95, stepsize_jitter = 0.5, max_treedepth = 13))
fitCal4.ds... |
##' @rdname show-methods
##' @importFrom ape print.phylo
##' @exportMethod show
setMethod("show", signature(object = "beast"),
function(object) {
cat("'beast' S4 object that stored information of\n\t",
paste0("'", object@file, "'.\n\n"))
cat("...@ tree: ")
... | /R/method-show.R | no_license | caseywdunn/treeio | R | false | false | 7,365 | r | ##' @rdname show-methods
##' @importFrom ape print.phylo
##' @exportMethod show
setMethod("show", signature(object = "beast"),
function(object) {
cat("'beast' S4 object that stored information of\n\t",
paste0("'", object@file, "'.\n\n"))
cat("...@ tree: ")
... |
options( show.error.messages=F, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } )
## open MadPro library
suppressPackageStartupMessages(library(MadPro,quietly=TRUE,warn.conflicts=FALSE,verbose=FALSE))
| /testBoxplot.R | no_license | edzzy/galaxyTools | R | false | false | 241 | r | options( show.error.messages=F, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } )
## open MadPro library
suppressPackageStartupMessages(library(MadPro,quietly=TRUE,warn.conflicts=FALSE,verbose=FALSE))
|
library(SampleSizeProportions)
### Name: propdiff.modwoc
### Title: Bayesian sample size determination for the difference between
### two binomial proportions using the Modified Worst Outcome Criterion
### Aliases: propdiff.modwoc
### Keywords: design
### ** Examples
propdiff.modwoc(len=0.05, c1=3, d1=11, c2=11, d... | /data/genthat_extracted_code/SampleSizeProportions/examples/propdiff.modwoc.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 346 | r | library(SampleSizeProportions)
### Name: propdiff.modwoc
### Title: Bayesian sample size determination for the difference between
### two binomial proportions using the Modified Worst Outcome Criterion
### Aliases: propdiff.modwoc
### Keywords: design
### ** Examples
propdiff.modwoc(len=0.05, c1=3, d1=11, c2=11, d... |
# Workflow
library(tidyverse)
library(letsR)
# Get a clean dataset to work with first
data <- ecdc_2019_accepted %>% as.data.frame() %>% filter(!is.na(longitude))
data_clean <- data %>%
mutate(pa = case_when(
statusterm == "Absent" ~ "Absent",
statusterm == "Anticipated Absent" ~ "Absent",
statuste... | /src/data/TroubleWithQuosures&Functions.R | permissive | dansmi-hub/mosquito-jsdm | R | false | false | 1,817 | r | # Workflow
library(tidyverse)
library(letsR)
# Get a clean dataset to work with first
data <- ecdc_2019_accepted %>% as.data.frame() %>% filter(!is.na(longitude))
data_clean <- data %>%
mutate(pa = case_when(
statusterm == "Absent" ~ "Absent",
statusterm == "Anticipated Absent" ~ "Absent",
statuste... |
print(.libPaths())
.libPaths("/mnt/home/rjparker/Rlib")
print(.libPaths())
setwd("/mnt/home/rjparker/git/ns_cov")
which_exp <- 1
which_part <- 6
source("R/sim_study.R")
| /beo/sim1/sim1_6.R | no_license | ryanjparker/ns_cov | R | false | false | 170 | r | print(.libPaths())
.libPaths("/mnt/home/rjparker/Rlib")
print(.libPaths())
setwd("/mnt/home/rjparker/git/ns_cov")
which_exp <- 1
which_part <- 6
source("R/sim_study.R")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nanoSingleMolecule.R
\name{mergeCGandGCmat}
\alias{mergeCGandGCmat}
\title{Merge CG and GC methylation matrices}
\usage{
mergeCGandGCmat(tsvCG, tsvGC, genome)
}
\arguments{
\item{genome}{A BSgenome, DNAstring or path to fasta file for the gen... | /man/mergeCGandGCmat.Rd | no_license | CellFateNucOrg/nanodsmf | R | false | true | 746 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nanoSingleMolecule.R
\name{mergeCGandGCmat}
\alias{mergeCGandGCmat}
\title{Merge CG and GC methylation matrices}
\usage{
mergeCGandGCmat(tsvCG, tsvGC, genome)
}
\arguments{
\item{genome}{A BSgenome, DNAstring or path to fasta file for the gen... |
# Function Info -----------------------------------------------------------
# Name: tpick.R (Time step picking function)
# Author(s): Jon Wilkey
# Contact: jon.wilkey@gmail.com
# Inputs ------------------------------------------------------------------
# p - logical value indicating whether or not to choose t... | /Functions/tpick.R | permissive | jonwilkey/uinta_basin_oil_and_gas_emissions | R | false | false | 1,156 | r | # Function Info -----------------------------------------------------------
# Name: tpick.R (Time step picking function)
# Author(s): Jon Wilkey
# Contact: jon.wilkey@gmail.com
# Inputs ------------------------------------------------------------------
# p - logical value indicating whether or not to choose t... |
library(lubridate)
library(dplyr)
library(data.table)
library(tidyverse)
library(scales)
library(plyr)
# get current year
rm(list = ls())
data_path <- "/yogyaapp/data/sales/"
###############33 change ever year #####################
# cur_year <- as.numeric(format(Sys.Date(), "%y"))
# prev_year <- as.numeric(format(S... | /agregate_monthly.R | no_license | dadinjaenudin/Spark_R | R | false | false | 3,422 | r | library(lubridate)
library(dplyr)
library(data.table)
library(tidyverse)
library(scales)
library(plyr)
# get current year
rm(list = ls())
data_path <- "/yogyaapp/data/sales/"
###############33 change ever year #####################
# cur_year <- as.numeric(format(Sys.Date(), "%y"))
# prev_year <- as.numeric(format(S... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse-body.R
\name{parser_form}
\alias{parser_form}
\alias{parser_json}
\alias{parser_text}
\alias{parser_yaml}
\alias{parser_csv}
\alias{parser_tsv}
\alias{parser_read_file}
\alias{parser_rds}
\alias{parser_feather}
\alias{parser_octet}
\ali... | /man/parsers.Rd | no_license | bveres/plumber | R | false | true | 3,576 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse-body.R
\name{parser_form}
\alias{parser_form}
\alias{parser_json}
\alias{parser_text}
\alias{parser_yaml}
\alias{parser_csv}
\alias{parser_tsv}
\alias{parser_read_file}
\alias{parser_rds}
\alias{parser_feather}
\alias{parser_octet}
\ali... |
#rm(list=ls())
#source("/home/el/lavori/Rdevel/influence.SEM/test.funzioni.R")
#data(PDII,package="influence.SEM")
#model <- "
# F1 =~ x1+x2+x3
# F2 =~ y1+y2+y3+y4
# F3 =~ y5+y6+y7+y8
#"
#fit0 <- sem(model, data=PDII)
#index <- "cfi"
fitinfluence <- function (index, model, data, ...)
{
fit0 <- sem(model, data, .... | /R/fitinfluence.R | no_license | cran/influence.SEM | R | false | false | 1,903 | r | #rm(list=ls())
#source("/home/el/lavori/Rdevel/influence.SEM/test.funzioni.R")
#data(PDII,package="influence.SEM")
#model <- "
# F1 =~ x1+x2+x3
# F2 =~ y1+y2+y3+y4
# F3 =~ y5+y6+y7+y8
#"
#fit0 <- sem(model, data=PDII)
#index <- "cfi"
fitinfluence <- function (index, model, data, ...)
{
fit0 <- sem(model, data, .... |
## This functions allows you to compute the inverse of a square matrix
## and cache the result - therefore we do not need calculate
## the same costly computation repeatedly.
## This function creates object that can cache inverse of matrix.
makeCacheMatrix <- function(x = matrix()) {
mInv <- NULL ## assign N... | /cachematrix.R | no_license | tomasbednarik/ProgrammingAssignment2 | R | false | false | 1,624 | r | ## This functions allows you to compute the inverse of a square matrix
## and cache the result - therefore we do not need calculate
## the same costly computation repeatedly.
## This function creates object that can cache inverse of matrix.
makeCacheMatrix <- function(x = matrix()) {
mInv <- NULL ## assign N... |
# graph <- igraph::graph_from_isomorphism_class(3,number = 7,directed = T)
# idx <- 1
# r <- tao <- lambda.RNA <- lambda.protein <- 1
# b.values <- runif(8)
# c.values <- b.values/b.values
grn_diff_eq_clos <-
function(
graph,idx,
b.values = NULL, c.values=NULL,
tao = NULL, r = NULL,
lambda.RNA = N... | /diff_eq_model/functions_to_sim.R | no_license | azuur/genomics_thesis_proj | R | false | false | 7,973 | r | # graph <- igraph::graph_from_isomorphism_class(3,number = 7,directed = T)
# idx <- 1
# r <- tao <- lambda.RNA <- lambda.protein <- 1
# b.values <- runif(8)
# c.values <- b.values/b.values
grn_diff_eq_clos <-
function(
graph,idx,
b.values = NULL, c.values=NULL,
tao = NULL, r = NULL,
lambda.RNA = N... |
# setwd('C:/Users/danny/repos/covid19_update/')
source('load_data.R')
dir.create('data')
save(
covid_global, covid_us,
file = 'data/covid_ts.RData'
)
save(
today_global, today_states, today_counties,
file = 'data/covid_today.RData'
)
save(
geo_countries, geo_states, geo_counties,
file = 'data/geojson.RData... | /render_site.R | no_license | danhan52/covid19_update | R | false | false | 444 | r | # setwd('C:/Users/danny/repos/covid19_update/')
source('load_data.R')
dir.create('data')
save(
covid_global, covid_us,
file = 'data/covid_ts.RData'
)
save(
today_global, today_states, today_counties,
file = 'data/covid_today.RData'
)
save(
geo_countries, geo_states, geo_counties,
file = 'data/geojson.RData... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/devicefarm_operations.R
\name{devicefarm_list_tests}
\alias{devicefarm_list_tests}
\title{Gets information about tests in a given test suite}
\usage{
devicefarm_list_tests(arn, nextToken)
}
\arguments{
\item{arn}{[required] The test suite's A... | /cran/paws.mobile/man/devicefarm_list_tests.Rd | permissive | paws-r/paws | R | false | true | 2,270 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/devicefarm_operations.R
\name{devicefarm_list_tests}
\alias{devicefarm_list_tests}
\title{Gets information about tests in a given test suite}
\usage{
devicefarm_list_tests(arn, nextToken)
}
\arguments{
\item{arn}{[required] The test suite's A... |
\name{stable_pdf}
\alias{stable_pdf}
\title{Compute values of a (normalized) stable density}
\usage{
stable_pdf(x, a, b)
}
\arguments{
\item{x}{values at which to evaluate the density}
\item{a}{alpha value. Either a scalar or vector of length equal to \code{x} if different values for each observations are assu... | /man/stable_pdf.Rd | no_license | cran/stabreg | R | false | false | 645 | rd |
\name{stable_pdf}
\alias{stable_pdf}
\title{Compute values of a (normalized) stable density}
\usage{
stable_pdf(x, a, b)
}
\arguments{
\item{x}{values at which to evaluate the density}
\item{a}{alpha value. Either a scalar or vector of length equal to \code{x} if different values for each observations are assu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.