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 |
|---|---|---|---|---|---|---|---|---|---|
\name{move}
\alias{move}
%\alias{move,character,ANY,ANY,ANY,ANY,ANY-method}
%\alias{move,character,ANY,ANY,ANY,ANY-method}
\alias{move,character,missing,missing,missing,missing-method}
\alias{move,connection,missing,missing,missing,missing-method}
\alias{move,numeric,numeric,POSIXct,data.frame,character-method}
\alias... | /move/man/move.Rd | no_license | JohnPalmer/gMove | R | false | false | 4,838 | rd | \name{move}
\alias{move}
%\alias{move,character,ANY,ANY,ANY,ANY,ANY-method}
%\alias{move,character,ANY,ANY,ANY,ANY-method}
\alias{move,character,missing,missing,missing,missing-method}
\alias{move,connection,missing,missing,missing,missing-method}
\alias{move,numeric,numeric,POSIXct,data.frame,character-method}
\alias... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datadoc.R
\docType{data}
\name{Innsjo}
\alias{Innsjo}
\title{Innsjo}
\format{
\if{html}{\out{<div class="sourceCode">}}\preformatted{Simple feature collection with 3713 features and 2 fields
Geometry type: POLYGON
Dimension: XY
Bounding b... | /man/Innsjo.Rd | permissive | hmalmedal/N1000 | R | false | true | 1,807 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datadoc.R
\docType{data}
\name{Innsjo}
\alias{Innsjo}
\title{Innsjo}
\format{
\if{html}{\out{<div class="sourceCode">}}\preformatted{Simple feature collection with 3713 features and 2 fields
Geometry type: POLYGON
Dimension: XY
Bounding b... |
library(GEOmap)
### Name: rectPERIM
### Title: Extract a rectangular perimeter
### Aliases: rectPERIM
### Keywords: misc
### ** Examples
fx =rnorm(20)
fy = rnorm(20)
plot(fx, fy, xlim=c(-4, 4), ylim=c(-4,4))
rp = rectPERIM(fx, fy)
polygon(rp)
text(rp, labels=1:4, pos=c(1,1,3,3), font=2, cex=2)
fx2 =rnorm(20,... | /data/genthat_extracted_code/GEOmap/examples/rectPERIM.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 637 | r | library(GEOmap)
### Name: rectPERIM
### Title: Extract a rectangular perimeter
### Aliases: rectPERIM
### Keywords: misc
### ** Examples
fx =rnorm(20)
fy = rnorm(20)
plot(fx, fy, xlim=c(-4, 4), ylim=c(-4,4))
rp = rectPERIM(fx, fy)
polygon(rp)
text(rp, labels=1:4, pos=c(1,1,3,3), font=2, cex=2)
fx2 =rnorm(20,... |
# --------------------------------------------------------------------------------
# atlas_cnv.R v0. called by main atlas_cnv.pl v0, Sep 11, 2018. Ted Chiang
# Copyright 2016-2018, Baylor College of Medicine Human Genome Sequencing Center.
# All rights reserved.
# -------------------------------------------------------... | /atlas_cnv.R | permissive | limingxiang/Atlas-CNV | R | false | false | 27,559 | r | # --------------------------------------------------------------------------------
# atlas_cnv.R v0. called by main atlas_cnv.pl v0, Sep 11, 2018. Ted Chiang
# Copyright 2016-2018, Baylor College of Medicine Human Genome Sequencing Center.
# All rights reserved.
# -------------------------------------------------------... |
install.packages("elastic")
elastic::connect(es_base = "http://localhost", es_port = 19300);
#读取数据
a0705 <- elastic::Search(index = "sevenga.ironcommander", type = "登陆游戏",
body = '{"query":{"range":{"doc_timestamp":{"from":"2015-07-05T00:00:00Z","to":"2015-07-05T23:59:59Z"}}}}', size = 99999999)$... | /R_elastic.R | no_license | GithubRan/gameUserAnalysis | R | false | false | 2,694 | r | install.packages("elastic")
elastic::connect(es_base = "http://localhost", es_port = 19300);
#读取数据
a0705 <- elastic::Search(index = "sevenga.ironcommander", type = "登陆游戏",
body = '{"query":{"range":{"doc_timestamp":{"from":"2015-07-05T00:00:00Z","to":"2015-07-05T23:59:59Z"}}}}', size = 99999999)$... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module5_mst_sim.R
\name{mst_sim}
\alias{mst_sim}
\alias{print.mst_sim}
\alias{plot.mst_sim}
\title{Simulation of Multistage Testing}
\usage{
mst_sim(x, true, rdp = NULL, ...)
\method{print}{mst_sim}(x, ...)
\method{plot}{mst_sim}(x, ...)
}
... | /man/mst_sim.Rd | no_license | zjiang4/xxIRT | R | false | true | 1,355 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module5_mst_sim.R
\name{mst_sim}
\alias{mst_sim}
\alias{print.mst_sim}
\alias{plot.mst_sim}
\title{Simulation of Multistage Testing}
\usage{
mst_sim(x, true, rdp = NULL, ...)
\method{print}{mst_sim}(x, ...)
\method{plot}{mst_sim}(x, ...)
}
... |
/run_analysis.r | no_license | neenujoseaug/Peer-graded-Assignment-Getting-and-Cleaning-Data | R | false | false | 3,159 | r | ||
data("PreSex", package="vcd")
structable(Gender+PremaritalSex+ExtramaritalSex ~ MaritalStatus, PreSex)
#structable(MaritalStatus ~ Gender+PremaritalSex+ExtramaritalSex, PreSex)
## Mosaic display for Gender and Premarital Sexual Experience
## (Gender Pre)
PreSex <- aperm(PreSex, 4:1) # order variables G, P, E, M
mo... | /ch05/R/presex.R | no_license | friendly/VCDR | R | false | false | 2,156 | r | data("PreSex", package="vcd")
structable(Gender+PremaritalSex+ExtramaritalSex ~ MaritalStatus, PreSex)
#structable(MaritalStatus ~ Gender+PremaritalSex+ExtramaritalSex, PreSex)
## Mosaic display for Gender and Premarital Sexual Experience
## (Gender Pre)
PreSex <- aperm(PreSex, 4:1) # order variables G, P, E, M
mo... |
# Make - multi class -----------------------------------------------------------
#' Create a `class_pred` vector from class probabilities
#'
#' These functions can be used to convert class probability estimates to
#' `class_pred` objects with an optional equivocal zone.
#'
#' @param ... Numeric vectors corresponding ... | /R/make_class_pred.R | permissive | otavioacm/probably | R | false | false | 7,930 | r | # Make - multi class -----------------------------------------------------------
#' Create a `class_pred` vector from class probabilities
#'
#' These functions can be used to convert class probability estimates to
#' `class_pred` objects with an optional equivocal zone.
#'
#' @param ... Numeric vectors corresponding ... |
#' @name loadWorkbook
#' @title Load an exisiting .xlsx file
#' @author Alexander Walker
#' @param file A path to an existing .xlsx or .xlsm file
#' @param xlsxFile alias for file
#' @description loadWorkbook returns a workbook object conserving styles and
#' formatting of the original .xlsx file.
#' @return Wor... | /R/loadWorkbook.R | no_license | tkunstek/openxlsx | R | false | false | 39,410 | r |
#' @name loadWorkbook
#' @title Load an exisiting .xlsx file
#' @author Alexander Walker
#' @param file A path to an existing .xlsx or .xlsm file
#' @param xlsxFile alias for file
#' @description loadWorkbook returns a workbook object conserving styles and
#' formatting of the original .xlsx file.
#' @return Wor... |
library(shiny)
library(ggplot2)
function(input, output) {
dataset <- reactive({
airquality[sample(nrow(airquality), input$sampleSize),]
})
output$plot <- renderPlot({
p <- ggplot(dataset(), aes_string(x=input$x, y=input$y)) + geom_point()
if (input$color != 'None')
p <- p + ... | /server.R | no_license | alizeefrd/R_TP1_FERRANDIS_GUILLOT_PRAT | R | false | false | 615 | r | library(shiny)
library(ggplot2)
function(input, output) {
dataset <- reactive({
airquality[sample(nrow(airquality), input$sampleSize),]
})
output$plot <- renderPlot({
p <- ggplot(dataset(), aes_string(x=input$x, y=input$y)) + geom_point()
if (input$color != 'None')
p <- p + ... |
modelInfo <- list(label = "Robust Regularized Linear Discriminant Analysis",
library = "rrlda",
loop = NULL,
type = c('Classification'),
parameters = data.frame(parameter = c('lambda', 'hp', 'penalty'),
cla... | /models/files/rrlda.R | no_license | bleutner/caret | R | false | false | 1,645 | r | modelInfo <- list(label = "Robust Regularized Linear Discriminant Analysis",
library = "rrlda",
loop = NULL,
type = c('Classification'),
parameters = data.frame(parameter = c('lambda', 'hp', 'penalty'),
cla... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ti_stemnet.R
\name{ti_stemnet}
\alias{ti_stemnet}
\title{Inferring a trajectory inference using STEMNET}
\usage{
ti_stemnet(alpha = 0.1, lambda_auto = TRUE, lambda = 0.1,
force = FALSE, run_environment = NULL)
}
\arguments{
\item{alpha}{num... | /man/ti_stemnet.Rd | no_license | herrinca/dynmethods | R | false | true | 1,679 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ti_stemnet.R
\name{ti_stemnet}
\alias{ti_stemnet}
\title{Inferring a trajectory inference using STEMNET}
\usage{
ti_stemnet(alpha = 0.1, lambda_auto = TRUE, lambda = 0.1,
force = FALSE, run_environment = NULL)
}
\arguments{
\item{alpha}{num... |
library(leaflet)
s <- as.data.frame(point.sp@coords)[1:25,]
data(quakes)
# Show first 20 rows from the `quakes` dataset
leaflet(data = s) %>% addTiles() %>%
addMarkers(~x, ~y)
library(shiny)
ui <- fluidPage(
leafletOutput("mymap"),
p()
)
server <- function(input, output, session) {
output$mymap <- renderLeaf... | /leaflet.R | no_license | arielfuentes/wrangling-spatial-data | R | false | false | 650 | r | library(leaflet)
s <- as.data.frame(point.sp@coords)[1:25,]
data(quakes)
# Show first 20 rows from the `quakes` dataset
leaflet(data = s) %>% addTiles() %>%
addMarkers(~x, ~y)
library(shiny)
ui <- fluidPage(
leafletOutput("mymap"),
p()
)
server <- function(input, output, session) {
output$mymap <- renderLeaf... |
## plot1.r
# read in the data
pds <- read.table("household_power_consumption.txt",header=TRUE,sep=";", na="?")
# subset the data for the dates we are interested in
subpds <- pds[which(pds$Date == "1/2/2007" | pds$Date == "2/2/2007"),]
# make numeric variables to be plotted
subpds$Global_active_power <- as.numeric(su... | /plot1.R | no_license | mbayekebe/ExData_Plotting1 | R | false | false | 536 | r | ## plot1.r
# read in the data
pds <- read.table("household_power_consumption.txt",header=TRUE,sep=";", na="?")
# subset the data for the dates we are interested in
subpds <- pds[which(pds$Date == "1/2/2007" | pds$Date == "2/2/2007"),]
# make numeric variables to be plotted
subpds$Global_active_power <- as.numeric(su... |
# Read entire dataset
data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?")
# Subset days 2/1/07 and 2/2/07
data$Date <- as.character(data$Date)
data$Date <- as.Date(data$Date, format="%d/%m/%Y")
data$Time <- as.character(data$Time)
subset <- data[data$Date >= "2007-02-01" & data$... | /plot4.R | no_license | sthomason/ExData_Plotting1 | R | false | false | 1,290 | r | # Read entire dataset
data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?")
# Subset days 2/1/07 and 2/2/07
data$Date <- as.character(data$Date)
data$Date <- as.Date(data$Date, format="%d/%m/%Y")
data$Time <- as.character(data$Time)
subset <- data[data$Date >= "2007-02-01" & data$... |
\name{twelve}
\docType{data}
\alias{twelve}
\title{Ishihara plate number 1}
\description{
Ishihara plate number 1, with the numeral \code{'12'} designed to be visible by all
persons.
}
\usage{data(twelve)}
\format{
An array of 380-by-380-by-3 representing a RGB image.
}
\keyword{datasets}
| /man/twelve.Rd | no_license | cran/SpatialPack | R | false | false | 297 | rd | \name{twelve}
\docType{data}
\alias{twelve}
\title{Ishihara plate number 1}
\description{
Ishihara plate number 1, with the numeral \code{'12'} designed to be visible by all
persons.
}
\usage{data(twelve)}
\format{
An array of 380-by-380-by-3 representing a RGB image.
}
\keyword{datasets}
|
##set date and time
pow<-read.table("household_power_consumption.txt",header=TRUE,nrows=1,sep=";")
pow1<- names(pow)
firstDateTime<- strptime("2006-12-16 17:24:00", "%Y-%m-%d %H:%M:%S")
beginDateTime<- strptime("2007-02-01 00:01:00", "%Y-%m-%d %H:%M:%S")
##calculate number of rows needed
boof<- beginDateTime - firs... | /plot3.R | no_license | fdoughan/ExploratoryData-Project1 | R | false | false | 1,198 | r | ##set date and time
pow<-read.table("household_power_consumption.txt",header=TRUE,nrows=1,sep=";")
pow1<- names(pow)
firstDateTime<- strptime("2006-12-16 17:24:00", "%Y-%m-%d %H:%M:%S")
beginDateTime<- strptime("2007-02-01 00:01:00", "%Y-%m-%d %H:%M:%S")
##calculate number of rows needed
boof<- beginDateTime - firs... |
context("boxCox() and boxCox2() functions unit testing")
# expect_success
test_that("Should work when numeric values satisfying: (1) x+y > 0 ; (2) lambda == 0.", {
num_x <- 77
num_y <- -3
num_sum <- num_x + num_y
expect_success(expect_identical(boxCox2(num_x,num_y),log(num_x+num_y) ))
expect_succe... | /tests/testthat/test_boxCox_and_boxCox2.R | no_license | dorawyy/powers | R | false | false | 788 | r | context("boxCox() and boxCox2() functions unit testing")
# expect_success
test_that("Should work when numeric values satisfying: (1) x+y > 0 ; (2) lambda == 0.", {
num_x <- 77
num_y <- -3
num_sum <- num_x + num_y
expect_success(expect_identical(boxCox2(num_x,num_y),log(num_x+num_y) ))
expect_succe... |
library(caret)
library(sp)
library(rgdal)
library(randomForest)
library(e1071)
library(raster)
library(parallel)
library(doParallel)
library(RStoolbox)
library(raster)
# Check extents of '2017-05-10' and '2017-05-14'!!
# dateVec <- c('2017-08-19', '2017-09-09')
# dateVec <- c('2017-05-02', '2017-05-05', '2017-05-06'... | /Quantify_ponding_distributions/Classification.R | no_license | rfpaul/Flooding_Laszlo | R | false | false | 3,629 | r | library(caret)
library(sp)
library(rgdal)
library(randomForest)
library(e1071)
library(raster)
library(parallel)
library(doParallel)
library(RStoolbox)
library(raster)
# Check extents of '2017-05-10' and '2017-05-14'!!
# dateVec <- c('2017-08-19', '2017-09-09')
# dateVec <- c('2017-05-02', '2017-05-05', '2017-05-06'... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{golfballs}
\alias{golfballs}
\title{Golf ball numbers}
\format{
The format is: num [1:4] 137 138 107 104
}
\source{
Data collected by Allan Rossman in Carlisle, PA.
}
\description{
Allan Rossman used to live on... | /man/golfballs.Rd | no_license | rpruim/fastR2 | R | false | true | 725 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{golfballs}
\alias{golfballs}
\title{Golf ball numbers}
\format{
The format is: num [1:4] 137 138 107 104
}
\source{
Data collected by Allan Rossman in Carlisle, PA.
}
\description{
Allan Rossman used to live on... |
#Working, and saves gif file to location. Need to search up locatino in finder with Cmd+Shift+G
setwd("/Users/manojarachige/Documents/Coding/BmedScDOC1/BMedScDOC2021/R_BMedScDOC")
library(rgl)
library(misc3d)
library(MNITemplate)
library(aal)
library(neurobase)
library(magick)
library(dplyr)
img = aal_image()
templat... | /Visualisation/brain_gif_v3.R | no_license | GNtem2/BMedScDOC_Scripts | R | false | false | 1,704 | r | #Working, and saves gif file to location. Need to search up locatino in finder with Cmd+Shift+G
setwd("/Users/manojarachige/Documents/Coding/BmedScDOC1/BMedScDOC2021/R_BMedScDOC")
library(rgl)
library(misc3d)
library(MNITemplate)
library(aal)
library(neurobase)
library(magick)
library(dplyr)
img = aal_image()
templat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/montyhall.R
\name{select_door}
\alias{select_door}
\title{Select Door Function.}
\usage{
select_door()
}
\arguments{
\item{No}{arguments are used by the function.}
}
\value{
The function returns a length one character vector which is a number... | /man/select_door.Rd | no_license | RTrehern-ASU/montyhall | R | false | true | 893 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/montyhall.R
\name{select_door}
\alias{select_door}
\title{Select Door Function.}
\usage{
select_door()
}
\arguments{
\item{No}{arguments are used by the function.}
}
\value{
The function returns a length one character vector which is a number... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3_operations.R
\name{s3_list_multipart_uploads}
\alias{s3_list_multipart_uploads}
\title{This action lists in-progress multipart uploads}
\usage{
s3_list_multipart_uploads(
Bucket,
Delimiter = NULL,
EncodingType = NULL,
KeyMarker = N... | /man/s3_list_multipart_uploads.Rd | no_license | cran/paws.storage | R | false | true | 4,085 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3_operations.R
\name{s3_list_multipart_uploads}
\alias{s3_list_multipart_uploads}
\title{This action lists in-progress multipart uploads}
\usage{
s3_list_multipart_uploads(
Bucket,
Delimiter = NULL,
EncodingType = NULL,
KeyMarker = N... |
install.packages("Boruta")
library(Boruta)
setwd('/Users/hinagandhi/Desktop')
#testdata <- subset(testdata, select=c(2:15,17))
Boston<-read.csv("dataset_new.csv")
Boston <- subset(Boston, select=c(1:16,18))
#View(Boston)
set.seed(123)
boruta.train <- Boruta(recession~., data = Boston, doTrace = 2)
print(boruta.train... | /Economic Analysis/R scripts/parameter_selection_recession.R | no_license | hinagandhi/Datascience-Projects | R | false | false | 675 | r | install.packages("Boruta")
library(Boruta)
setwd('/Users/hinagandhi/Desktop')
#testdata <- subset(testdata, select=c(2:15,17))
Boston<-read.csv("dataset_new.csv")
Boston <- subset(Boston, select=c(1:16,18))
#View(Boston)
set.seed(123)
boruta.train <- Boruta(recession~., data = Boston, doTrace = 2)
print(boruta.train... |
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1814565844L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... | /dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615939083-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 826 | r | testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1814565844L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... |
#'This function will look for any requests with "NA" as first problem type
#'and will create a spreadsheet with the ticket number and the assignee.
#'The function should exclude the merged ticket, which have a specific tag.
NANA <- function(day, nana_qu){
## Libraries
require(httr)
require(stringr)
require(mag... | /fd_nana.R | no_license | andpiccioni/freshdesk | R | false | false | 4,352 | r | #'This function will look for any requests with "NA" as first problem type
#'and will create a spreadsheet with the ticket number and the assignee.
#'The function should exclude the merged ticket, which have a specific tag.
NANA <- function(day, nana_qu){
## Libraries
require(httr)
require(stringr)
require(mag... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spanner_objects.R
\name{PlanNode.executionStats}
\alias{PlanNode.executionStats}
\title{PlanNode.executionStats Object}
\usage{
PlanNode.executionStats()
}
\value{
PlanNode.executionStats object
}
\description{
PlanNode.executionStats Object
... | /googlespannerv1.auto/man/PlanNode.executionStats.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 731 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spanner_objects.R
\name{PlanNode.executionStats}
\alias{PlanNode.executionStats}
\title{PlanNode.executionStats Object}
\usage{
PlanNode.executionStats()
}
\value{
PlanNode.executionStats object
}
\description{
PlanNode.executionStats Object
... |
# Issue with where to write objects... can't use tempdir() across sessions
context("Test serialization with cereal package")
old_serialize_option <- get_nOption("serialize")
set_nOption("serialize", TRUE)
test_that("Basic serialization works",
{
nc1 <- nClass(
classname = "nc1",
... | /nCompiler/tests/testthat/test-serialization.R | permissive | nimble-dev/nCompiler | R | false | false | 10,329 | r | # Issue with where to write objects... can't use tempdir() across sessions
context("Test serialization with cereal package")
old_serialize_option <- get_nOption("serialize")
set_nOption("serialize", TRUE)
test_that("Basic serialization works",
{
nc1 <- nClass(
classname = "nc1",
... |
library(Rcmdr)
library(dplyr)
#Read data on flowering stages and temperatures
data17_stages<-read.table("data/clean/cerastium_2017_stages.csv",header=T,sep="\t",dec=",")
head(data17_stages)
str(data17_stages)
data17_stages$temp<-as.numeric(sub(",", ".", as.character(data17_stages$temp), fixed = TRUE))
with(data17_sta... | /code/7_data_prep_2017.R | no_license | aliciavaldes1501/cerastium | R | false | false | 6,527 | r | library(Rcmdr)
library(dplyr)
#Read data on flowering stages and temperatures
data17_stages<-read.table("data/clean/cerastium_2017_stages.csv",header=T,sep="\t",dec=",")
head(data17_stages)
str(data17_stages)
data17_stages$temp<-as.numeric(sub(",", ".", as.character(data17_stages$temp), fixed = TRUE))
with(data17_sta... |
# Make_chrtM8() monthly hours worked by industry charts function
# June 6, 2021
pkgs <- c("tidyverse","scales","tibble","stringr","rlang","lubridate")
inst <- lapply(pkgs,library,character.only=TRUE)
source("Common_stuff.R")
Make_chrtM8 <- function(MYtitl,geo,type,month1,month2,altTitl,interv) {
prov <- case_when(... | /Make_chrtM8.R | no_license | PhilSmith26/LFStables | R | false | false | 4,796 | r | # Make_chrtM8() monthly hours worked by industry charts function
# June 6, 2021
pkgs <- c("tidyverse","scales","tibble","stringr","rlang","lubridate")
inst <- lapply(pkgs,library,character.only=TRUE)
source("Common_stuff.R")
Make_chrtM8 <- function(MYtitl,geo,type,month1,month2,altTitl,interv) {
prov <- case_when(... |
context("taskscheduler-examples")
test_that("taskscheduleR examples can be scheduled as expected", {
skip_on_cran()
myscript <- system.file("extdata", "helloworld.R", package = "taskscheduleR")
## run script once within 62 seconds
expect_warning(taskscheduler_create(taskname = "myfancyscript", rscr... | /tests/testthat/test-taskscheduler_create.R | no_license | cran/taskscheduleR | R | false | false | 779 | r | context("taskscheduler-examples")
test_that("taskscheduleR examples can be scheduled as expected", {
skip_on_cran()
myscript <- system.file("extdata", "helloworld.R", package = "taskscheduleR")
## run script once within 62 seconds
expect_warning(taskscheduler_create(taskname = "myfancyscript", rscr... |
# Figure 5 top words
library(readr)
library(tidytext)
library(dplyr)
library(tidyr)
library(ggplot2)
library(stringr)
library(forcats)
library(hrbrthemes)
library(here)
library(patchwork)
library(extrafont)
# read data
absdata <- read_csv(here("data","abstracts.csv"))
# stopwords
stopWords <- data_frame(word=read_line... | /R/05_titles-text-mining.R | permissive | luisDVA/iccb_metrics | R | false | false | 10,417 | r | # Figure 5 top words
library(readr)
library(tidytext)
library(dplyr)
library(tidyr)
library(ggplot2)
library(stringr)
library(forcats)
library(hrbrthemes)
library(here)
library(patchwork)
library(extrafont)
# read data
absdata <- read_csv(here("data","abstracts.csv"))
# stopwords
stopWords <- data_frame(word=read_line... |
## This script needs to be run with the "UCI HAR Dataset" directory
## contained in the working directory
#
## Input all the data
#
setwd("UCI HAR Dataset/test/")
#
xtest <- read.csv("X_test.txt", sep="", header=F)
ytest <- read.csv("y_test.txt", sep="", header=F)[,1]
subjecttest <- read.csv("subje... | /run_analysis.R | no_license | SamPlayle/AccelerometerProject | R | false | false | 5,881 | r | ## This script needs to be run with the "UCI HAR Dataset" directory
## contained in the working directory
#
## Input all the data
#
setwd("UCI HAR Dataset/test/")
#
xtest <- read.csv("X_test.txt", sep="", header=F)
ytest <- read.csv("y_test.txt", sep="", header=F)[,1]
subjecttest <- read.csv("subje... |
complete <- function(directory, id = 1:332) {
nobsNum <- numeric(0)
for (cid in id) {
fileStr <- paste(directory, "/", sprintf("%03d", as.numeric(cid)), ".csv", sep = "")
cDfr <- read.csv(fileStr)
nobsNum <- c(nobsNum, nrow(na.omit(cDfr)))
}
# --- Assert return value ... | /complete.R | no_license | meleswujira/Coursera | R | false | false | 398 | r | complete <- function(directory, id = 1:332) {
nobsNum <- numeric(0)
for (cid in id) {
fileStr <- paste(directory, "/", sprintf("%03d", as.numeric(cid)), ".csv", sep = "")
cDfr <- read.csv(fileStr)
nobsNum <- c(nobsNum, nrow(na.omit(cDfr)))
}
# --- Assert return value ... |
rm(list=ls())
library(readr)
library(dplyr)
library(ggplot2)
library(lubridate)
fname = "yemen_dat.csv"
df = read_csv(fname)
df = df %>% select(-date_variable, adm2pcod, longitude, latitude)
df = df %>%
mutate(year = year(date_value))
min_year = min(df$year)
df = df %>%
mutate(diff_year = year - min_year,
... | /summarize_data.R | no_license | scottyaz/epi_click | R | false | false | 2,338 | r | rm(list=ls())
library(readr)
library(dplyr)
library(ggplot2)
library(lubridate)
fname = "yemen_dat.csv"
df = read_csv(fname)
df = df %>% select(-date_variable, adm2pcod, longitude, latitude)
df = df %>%
mutate(year = year(date_value))
min_year = min(df$year)
df = df %>%
mutate(diff_year = year - min_year,
... |
#' Result of feature selection.
#'
#' Container for results of feature selection.
#' Contains the obtained features, their performance values
#' and the optimization path which lead there. \cr
#' You can visualize it using [analyzeFeatSelResult].
#'
#' Object members:
#' \describe{
#' \item{learner ([Learner])}{Learne... | /R/FeatSelResult.R | no_license | cauldnz/mlr | R | false | false | 1,958 | r | #' Result of feature selection.
#'
#' Container for results of feature selection.
#' Contains the obtained features, their performance values
#' and the optimization path which lead there. \cr
#' You can visualize it using [analyzeFeatSelResult].
#'
#' Object members:
#' \describe{
#' \item{learner ([Learner])}{Learne... |
#####plot scatter pie plot function####
#####Jan 28,2019####
##load packages##
library(dplyr)
library(ggplot2)
library(ggrepel)
library(scatterpie)
library(reshape2)
library(tidyr)
#test if pieplotfunctionOne.R works##
##produce y##
source("pieplotfunctionOne.R")
pie5<-pieplotfunction('ucsf_su2c_common.txt')
exon5<-p... | /pieplotfunction_useOnetest_Jan282019.R | no_license | ynren1020/R | R | false | false | 1,459 | r | #####plot scatter pie plot function####
#####Jan 28,2019####
##load packages##
library(dplyr)
library(ggplot2)
library(ggrepel)
library(scatterpie)
library(reshape2)
library(tidyr)
#test if pieplotfunctionOne.R works##
##produce y##
source("pieplotfunctionOne.R")
pie5<-pieplotfunction('ucsf_su2c_common.txt')
exon5<-p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/regression.R
\name{.solveWtExp}
\alias{.solveWtExp}
\title{Correlation between weighted predictor composite and criterion.}
\usage{
.solveWtExp(wt, rxx, rxy_list)
}
\arguments{
\item{wt}{A vector of predictor weights, or a matrix of ... | /man/internal.solveWtExp.Rd | no_license | cran/iopsych | R | false | true | 1,162 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/regression.R
\name{.solveWtExp}
\alias{.solveWtExp}
\title{Correlation between weighted predictor composite and criterion.}
\usage{
.solveWtExp(wt, rxx, rxy_list)
}
\arguments{
\item{wt}{A vector of predictor weights, or a matrix of ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fugu.R
\name{curryRight}
\alias{curryRight}
\title{Currying on the right.}
\usage{
curryRight(f)
}
\arguments{
\item{f}{a function}
\item{...}{arguments list to apply on the left}
}
\value{
g st. curryRight(f)(a,b,c)(q,r,s) == f(q,r,s,a,b,c)... | /man/curryRight.Rd | no_license | VincentToups/fugu | R | false | true | 410 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fugu.R
\name{curryRight}
\alias{curryRight}
\title{Currying on the right.}
\usage{
curryRight(f)
}
\arguments{
\item{f}{a function}
\item{...}{arguments list to apply on the left}
}
\value{
g st. curryRight(f)(a,b,c)(q,r,s) == f(q,r,s,a,b,c)... |
#' Print for a 'wbs' object
#'
#' @param x an object of class 'wbs'
#' @param ... further arguments passed to \code{print} method
#' @return NULL
#' @method print wbs
#' @export
#' @seealso \code{\link{wbs}}
print.wbs <- function(x,...){
cat("Algorithm: ")
if(x$integrated) cat("Wild Binary Segmentation integreated... | /R/print.R | no_license | cran/wbs | R | false | false | 898 | r | #' Print for a 'wbs' object
#'
#' @param x an object of class 'wbs'
#' @param ... further arguments passed to \code{print} method
#' @return NULL
#' @method print wbs
#' @export
#' @seealso \code{\link{wbs}}
print.wbs <- function(x,...){
cat("Algorithm: ")
if(x$integrated) cat("Wild Binary Segmentation integreated... |
# this does not handle LCOV_EXCL_START ect.
parse_gcov <- function(file, source_file) {
if (!file.exists(file)) {
return(NULL)
}
lines <- readLines(file)
re <- rex::rex(any_spaces,
capture(name = "coverage", some_of(digit, "-", "#", "=")),
":", any_spaces,
capture(name = "line", digits),
"... | /R/compiled.R | no_license | brodieG/covr | R | false | false | 2,973 | r | # this does not handle LCOV_EXCL_START ect.
parse_gcov <- function(file, source_file) {
if (!file.exists(file)) {
return(NULL)
}
lines <- readLines(file)
re <- rex::rex(any_spaces,
capture(name = "coverage", some_of(digit, "-", "#", "=")),
":", any_spaces,
capture(name = "line", digits),
"... |
##### CorrMC1 #####
CorrMC1= function(
title = "CorrMC1", # Question-bank title that will be easily viewable in e-learning
n = 200, # Number of questions to generate
type = "MC", # The question type, one of many possible types on e-learning
answers = 4, # Number of answers per MC question
points.per.q = 4, # Number of ... | /CorrMC1.R | no_license | joseph950521/Stat1600-QGen | R | false | false | 6,181 | r | ##### CorrMC1 #####
CorrMC1= function(
title = "CorrMC1", # Question-bank title that will be easily viewable in e-learning
n = 200, # Number of questions to generate
type = "MC", # The question type, one of many possible types on e-learning
answers = 4, # Number of answers per MC question
points.per.q = 4, # Number of ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tls.R
\name{tls}
\alias{tls}
\title{Fitting error-in-variables models via total least squares.}
\usage{
tls(formula, data, method = c("normal", "bootstrap"), conf.level = 0.95,
...)
}
\arguments{
\item{formula}{an object of class "formula" ... | /man/tls.Rd | no_license | cran/tls | R | false | true | 2,027 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tls.R
\name{tls}
\alias{tls}
\title{Fitting error-in-variables models via total least squares.}
\usage{
tls(formula, data, method = c("normal", "bootstrap"), conf.level = 0.95,
...)
}
\arguments{
\item{formula}{an object of class "formula" ... |
##################
## Factor Names ##
##################
#' @title factorNames: set and retrieve factor names
#' @description
#' @name factorNames
#' @rdname factorNames
#' @export
setGeneric("factorNames", function(object) {standardGeneric("factorNames")})
#' @name factorNames
#' @rdname factorNames
#' @aliases fac... | /MOFAtools/R/AllGenerics.R | no_license | vibbits/MOFA | R | false | false | 4,359 | r |
##################
## Factor Names ##
##################
#' @title factorNames: set and retrieve factor names
#' @description
#' @name factorNames
#' @rdname factorNames
#' @export
setGeneric("factorNames", function(object) {standardGeneric("factorNames")})
#' @name factorNames
#' @rdname factorNames
#' @aliases fac... |
#####################################################################################################
#
# This code is used to combine all the data
#
#
#####################################################################################################
##setwd("/exports/csce/eddie/inf/groups/mamode_prendergast/Scrip... | /old/Prepared_data_6/Ensembl_Distance2Gene_full_combine_data_array_40.R | permissive | HIM003/edinburgh-university-dissertation | R | false | false | 6,120 | r | #####################################################################################################
#
# This code is used to combine all the data
#
#
#####################################################################################################
##setwd("/exports/csce/eddie/inf/groups/mamode_prendergast/Scrip... |
library(factoextra)
library(plotly)
library(dplyr)
library(arules)
library(spatstat)
#######
dfdrugs <- read.csv("dfdrugs.csv", header = T)
dfdrugs2 <- read.csv("dfdrugs2.csv", header = T)
dfall <- read.csv("dfall.csv", header = T)
dfdays <- read.csv("days.csv", header = T)
dfdaysdec <- dfdays[order(dfdays$x, decr... | /week3/2/cluster.R | no_license | MarvinChung/107-2_NTU_CS-X_Data_Science_Programming | R | false | false | 3,805 | r | library(factoextra)
library(plotly)
library(dplyr)
library(arules)
library(spatstat)
#######
dfdrugs <- read.csv("dfdrugs.csv", header = T)
dfdrugs2 <- read.csv("dfdrugs2.csv", header = T)
dfall <- read.csv("dfall.csv", header = T)
dfdays <- read.csv("days.csv", header = T)
dfdaysdec <- dfdays[order(dfdays$x, decr... |
#' @name VSN
#' @title Variance Stabilizing Normalization
#' @description
#' Variance Stabilizing Normalization (VSN) is based on a generalized logarithm
#' transformation and aims at stabilizing variance inside microarray data.
#'
#' @keywords Normalization
#'
#' @section Introduction:
#' Usage of VSN was suggested... | /R/nrm_variance-stabilizing.R | no_license | rmylonas/Prots4Prots | R | false | false | 7,862 | r | #' @name VSN
#' @title Variance Stabilizing Normalization
#' @description
#' Variance Stabilizing Normalization (VSN) is based on a generalized logarithm
#' transformation and aims at stabilizing variance inside microarray data.
#'
#' @keywords Normalization
#'
#' @section Introduction:
#' Usage of VSN was suggested... |
#problem 13
#given a list of 100 numbers, find the first ten digits of the sum
mylist <- scan("p-013d.txt", what=" ")
#MAIN
print(mylist[1])
mymatr <- matrix(, nrow = 100, ncol = 50)
for (row in 1:100){
trow <- strsplit(mylist[row], "")
for (col in 1:50){
mymatr[row,col] <- as.numeric(trow[[1]][col])
}
}
tsu... | /r-lang/p-013.r | no_license | SplendidStrontium/project-euler | R | false | false | 604 | r | #problem 13
#given a list of 100 numbers, find the first ten digits of the sum
mylist <- scan("p-013d.txt", what=" ")
#MAIN
print(mylist[1])
mymatr <- matrix(, nrow = 100, ncol = 50)
for (row in 1:100){
trow <- strsplit(mylist[row], "")
for (col in 1:50){
mymatr[row,col] <- as.numeric(trow[[1]][col])
}
}
tsu... |
# Request: the most recent housing status and housing status update date
# for all clients who were active as of 5-15-2017. It is safe to assume
# that a client is still active if s/he does not have a subsequent inactive
# program status update.
# Installing some of the packages that we might or might not need.
# I... | /raw_code.R | no_license | nvoevodin/da_test | R | false | false | 6,811 | r | # Request: the most recent housing status and housing status update date
# for all clients who were active as of 5-15-2017. It is safe to assume
# that a client is still active if s/he does not have a subsequent inactive
# program status update.
# Installing some of the packages that we might or might not need.
# I... |
#' Add Springer Books to Calibre
#'
#' @author Ivan Jacob Agaloos Pesigan
#' @inheritParams lib_remove_doi_http
#' @param dir Character string.
#' Directory where Springer Books are located.
#' @param calibre_dir Character string.
#' Directory where Calibre's Library Database is located.
#' @importFrom jeksterslabR... | /R/lib_springer_calibredb_add.R | permissive | jeksterslabds/jeksterslabRlib | R | false | false | 5,117 | r | #' Add Springer Books to Calibre
#'
#' @author Ivan Jacob Agaloos Pesigan
#' @inheritParams lib_remove_doi_http
#' @param dir Character string.
#' Directory where Springer Books are located.
#' @param calibre_dir Character string.
#' Directory where Calibre's Library Database is located.
#' @importFrom jeksterslabR... |
# if (!require(stringdist)) install.packages("stringdist")
# if (!require(PASWR)) install.packages("PASWR")
# if (!require(DescTools)) install.packages("DescTools")
# if (!require(RecordLinkage)) install.packages("RecordLinkage")
# library("RecordLinkage")
# library(DescTools)
# library (MASS)
# library(dplyr)
# librar... | /Rcode/sampling_1000_June_July.R | no_license | jocelynjyl/housing | R | false | false | 1,578 | r | # if (!require(stringdist)) install.packages("stringdist")
# if (!require(PASWR)) install.packages("PASWR")
# if (!require(DescTools)) install.packages("DescTools")
# if (!require(RecordLinkage)) install.packages("RecordLinkage")
# library("RecordLinkage")
# library(DescTools)
# library (MASS)
# library(dplyr)
# librar... |
# read in data
data <- read.csv("C:/Users/Kevin/Desktop/Assignments/Graduate/EE239AS/P1/network_backup_dataset.csv")
data2 <- read.csv("C:/Users/Kevin/Desktop/Assignments/Graduate/EE239AS/P1/network_backup_dataset.csv")
data3 <- read.csv("C:/Users/Kevin/Desktop/Assignments/Graduate/EE239AS/P1/network_backup_dataset.... | /BigDataNetworking/P1/proj1-1.R | no_license | kvwwang/UCLA | R | false | false | 11,079 | r | # read in data
data <- read.csv("C:/Users/Kevin/Desktop/Assignments/Graduate/EE239AS/P1/network_backup_dataset.csv")
data2 <- read.csv("C:/Users/Kevin/Desktop/Assignments/Graduate/EE239AS/P1/network_backup_dataset.csv")
data3 <- read.csv("C:/Users/Kevin/Desktop/Assignments/Graduate/EE239AS/P1/network_backup_dataset.... |
############################################
### Common database functions
############################################
sqlQuote = function(x) {
sprintf("'%s'", x)
}
dbGetConnection = function(drv, reg, ...) {
# method dispatch to support different DBMS
UseMethod("dbGetConnection")
}
dbGetConnection.SQLiteDrive... | /BatchJobs/R/database.R | no_license | ingted/R-Examples | R | false | false | 18,605 | r | ############################################
### Common database functions
############################################
sqlQuote = function(x) {
sprintf("'%s'", x)
}
dbGetConnection = function(drv, reg, ...) {
# method dispatch to support different DBMS
UseMethod("dbGetConnection")
}
dbGetConnection.SQLiteDrive... |
rm(list=ls())
library(ggplot2)
library(ggthemes)
library(estCI)
#############################################
### The data used by Rosenbaum (2001)
#############################################
data(tunca.and.egeli.1996)
y = tunca.and.egeli.1996$y
tr= tunca.and.egeli.1996$tr
results = aveCI(y,tr, print=TRUE)
lengt... | /Rosenbaum2001.R | no_license | yotamshemtov/Data_Replication | R | false | false | 1,870 | r |
rm(list=ls())
library(ggplot2)
library(ggthemes)
library(estCI)
#############################################
### The data used by Rosenbaum (2001)
#############################################
data(tunca.and.egeli.1996)
y = tunca.and.egeli.1996$y
tr= tunca.and.egeli.1996$tr
results = aveCI(y,tr, print=TRUE)
lengt... |
normalise <- function(X, choice = 1) {
n <- switch(choice,
"1" = rescaling(X),
"2" = mean_norm(X),
"3" = std_dev(X))
return(n)
}
| /normalisation.R | no_license | msk4862/machine-learning-algos | R | false | false | 168 | r | normalise <- function(X, choice = 1) {
n <- switch(choice,
"1" = rescaling(X),
"2" = mean_norm(X),
"3" = std_dev(X))
return(n)
}
|
NormalInverseGaussian <- R6Class("NormalInverseGaussian",
inherit = ContinuousDistribution,
public = list(
names = c("mu", "alpha", "beta", "delta"),
mu = NA,
alpha = NA,
beta = NA,
delta = NA,
gamma = NA,
initialize = function(u, a, b, d) {
se... | /test/ref/continuous/normalinversegaussian.R | permissive | JuliaStats/Distributions.jl | R | false | false | 1,249 | r | NormalInverseGaussian <- R6Class("NormalInverseGaussian",
inherit = ContinuousDistribution,
public = list(
names = c("mu", "alpha", "beta", "delta"),
mu = NA,
alpha = NA,
beta = NA,
delta = NA,
gamma = NA,
initialize = function(u, a, b, d) {
se... |
library(devtools)
install_github('ollyburren/cupcake')
library(cupcake)
library(ggplot2)
## import GWAS data for basis
## support files
support.dir<-'/scratch/ob219/as_basis/support_tab'
# reference allele frequencies
ref_af_file<-file.path(support.dir,'as_basis_snps.tab')
ld_file<-file.path(support.dir,'all.1cM.tab')
... | /R/analysis/jia_plot.R | no_license | ollyburren/as_basis | R | false | false | 3,403 | r | library(devtools)
install_github('ollyburren/cupcake')
library(cupcake)
library(ggplot2)
## import GWAS data for basis
## support files
support.dir<-'/scratch/ob219/as_basis/support_tab'
# reference allele frequencies
ref_af_file<-file.path(support.dir,'as_basis_snps.tab')
ld_file<-file.path(support.dir,'all.1cM.tab')
... |
### QC_Seq_Depth Analysis
rm(list = ls())
source("src/load_packages.R")
source("src/load_phyloseq_obj.R")
source("src/miscellaneous_funcs.R")
source("src/metadata_prep_funcs.R")
source("src/alpha_diversity.R")
source("src/beta_diversity.R")
base::load("files/Phyloseq_objects_Woltka.RData")
base::load("files/Phyloseq_o... | /src/community_composition_overview.R | permissive | jboktor/SCFA_wmgx | R | false | false | 3,946 | r | ### QC_Seq_Depth Analysis
rm(list = ls())
source("src/load_packages.R")
source("src/load_phyloseq_obj.R")
source("src/miscellaneous_funcs.R")
source("src/metadata_prep_funcs.R")
source("src/alpha_diversity.R")
source("src/beta_diversity.R")
base::load("files/Phyloseq_objects_Woltka.RData")
base::load("files/Phyloseq_o... |
ReadDisk = function(aeidir, disknames, n, maxTlength, c.ind) {
disk = array(data = NA, dim = c( n, maxTlength, length(c.ind)+1),
dimnames = list(NULL,NULL,c(c.ind,'r')) )
for (i in 1:length(disknames)) {
Tlength = length(readLines( paste(aeidir,disknames[i],'.aei',sep='') ) )-4
objdata = read.table(
paste(aeidir,... | /Analysis/ReadDiskFns.R | no_license | RJWorth/AlphaCen | R | false | false | 1,807 | r | ReadDisk = function(aeidir, disknames, n, maxTlength, c.ind) {
disk = array(data = NA, dim = c( n, maxTlength, length(c.ind)+1),
dimnames = list(NULL,NULL,c(c.ind,'r')) )
for (i in 1:length(disknames)) {
Tlength = length(readLines( paste(aeidir,disknames[i],'.aei',sep='') ) )-4
objdata = read.table(
paste(aeidir,... |
\name{quadline}
\alias{quadline}
\title{Quadratic Overlay}
\description{
Overlays a quadratic curve to a fitted quadratic model.
}
\usage{
quadline(lm.obj, ...)
}
\arguments{
\item{lm.obj}{A \code{lm} object (a quadratic fit) }
\item{...}{Other arguments to the \code{lines} function; e.g. \code{col}}
... | /man/quadline.Rd | no_license | cran/MPV | R | false | false | 589 | rd | \name{quadline}
\alias{quadline}
\title{Quadratic Overlay}
\description{
Overlays a quadratic curve to a fitted quadratic model.
}
\usage{
quadline(lm.obj, ...)
}
\arguments{
\item{lm.obj}{A \code{lm} object (a quadratic fit) }
\item{...}{Other arguments to the \code{lines} function; e.g. \code{col}}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ch11-fn.R
\name{ttest.plot}
\alias{ttest.plot}
\title{Plot the PDF of Test Statistic with the T-distribution}
\usage{
ttest.plot(md, deg, prng = c(-4, 4), side = "two", dig = 4, mt,
pvout = TRUE)
}
\arguments{
\item{md}{T-test statistic for... | /man/ttest.plot.Rd | no_license | zlfn/Rstat-1 | R | false | true | 762 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ch11-fn.R
\name{ttest.plot}
\alias{ttest.plot}
\title{Plot the PDF of Test Statistic with the T-distribution}
\usage{
ttest.plot(md, deg, prng = c(-4, 4), side = "two", dig = 4, mt,
pvout = TRUE)
}
\arguments{
\item{md}{T-test statistic for... |
# Code écrit par Giovanni Zanitti (giovanni.zanitti@gmail.com)
# Dernière MAJ 04/08/16
# Ce fichier contient l'import des données pour le tableau de bord ainsi que quelques manipulations sur celles-ci
# Il est appelé par les fichiers server.R et UI.R et est donc indispensable au bon fonctionnement du tableau de bord
... | /Application/Analyse.R | no_license | GiovanniZanitti/Stage_TB | R | false | false | 7,906 | r | # Code écrit par Giovanni Zanitti (giovanni.zanitti@gmail.com)
# Dernière MAJ 04/08/16
# Ce fichier contient l'import des données pour le tableau de bord ainsi que quelques manipulations sur celles-ci
# Il est appelé par les fichiers server.R et UI.R et est donc indispensable au bon fonctionnement du tableau de bord
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/p_value.R
\name{get_pvalue}
\alias{get_pvalue}
\alias{p_value}
\title{Compute p-value}
\usage{
p_value(x, obs_stat, direction)
get_pvalue(x, obs_stat, direction)
}
\arguments{
\item{x}{Data frame of calculated statistics or containing attrib... | /man/get_pvalue.Rd | no_license | jimtyhurst/infer | R | false | true | 1,249 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/p_value.R
\name{get_pvalue}
\alias{get_pvalue}
\alias{p_value}
\title{Compute p-value}
\usage{
p_value(x, obs_stat, direction)
get_pvalue(x, obs_stat, direction)
}
\arguments{
\item{x}{Data frame of calculated statistics or containing attrib... |
#' @name filter
#' @rdname dplyr_single
#' @importFrom dplyr filter
#' @export
NULL
#' Return documents with matching conditions
#'
#' Use `filter()` to select documents where conditions evaluated on document
#' variables are true. Documents where the condition evaluates to `NA` are
#' dropped. A tidy replacement for ... | /R/filter.R | no_license | quanteda/quanteda.tidy | R | false | false | 3,065 | r | #' @name filter
#' @rdname dplyr_single
#' @importFrom dplyr filter
#' @export
NULL
#' Return documents with matching conditions
#'
#' Use `filter()` to select documents where conditions evaluated on document
#' variables are true. Documents where the condition evaluates to `NA` are
#' dropped. A tidy replacement for ... |
library(shiny)
# Define UI for app that draws a histogram ----
ui <- fluidPage(
# App title ----
titlePanel("Hello Shiny By Sasan!!"),
# Sidebar layout with input and output definitions ----
sidebarLayout(
# Sidebar panel for inputs ----
sidebarPanel(
# Input: Slider for the numb... | /rShinyApp.R | no_license | sgnajar/R-Shiny | R | false | false | 1,482 | r | library(shiny)
# Define UI for app that draws a histogram ----
ui <- fluidPage(
# App title ----
titlePanel("Hello Shiny By Sasan!!"),
# Sidebar layout with input and output definitions ----
sidebarLayout(
# Sidebar panel for inputs ----
sidebarPanel(
# Input: Slider for the numb... |
#!/usr/bin/env Rscript
source("~/CMWT/common.R")
"Usage:\nevt.R [-f <file> -s <sheet>]\n\nOptions:\n -f Start time\n -s End time [default: 1]\n\n]" -> doc
opts <- docopt(doc)
input_dates <- Sys.Date() - 1
if (lubridate::wday(input_dates) == 1) {
input_dates <- as.Date((input_dates - 2):input_dates, "1970-01-01... | /evt.R | no_license | RomanKyrychenko/CMWT | R | false | false | 1,689 | r | #!/usr/bin/env Rscript
source("~/CMWT/common.R")
"Usage:\nevt.R [-f <file> -s <sheet>]\n\nOptions:\n -f Start time\n -s End time [default: 1]\n\n]" -> doc
opts <- docopt(doc)
input_dates <- Sys.Date() - 1
if (lubridate::wday(input_dates) == 1) {
input_dates <- as.Date((input_dates - 2):input_dates, "1970-01-01... |
#' @title Hannan-Quinn Information Criterion
#'
#' @description Calculates Hannan-Quinn Information Criterion (HQIC) for "lm" and "glm" objects.
#'
#' @param model a "lm" or "glm" object
#'
#' @details
#' HQIC (Hannan and Quinn, 1979) is calculated as
#'
#' \deqn{-2LL(theta) + 2klog(log(n))}
#'
#' @return H... | /R/HQIC.R | no_license | cran/ICglm | R | false | false | 1,153 | r | #' @title Hannan-Quinn Information Criterion
#'
#' @description Calculates Hannan-Quinn Information Criterion (HQIC) for "lm" and "glm" objects.
#'
#' @param model a "lm" or "glm" object
#'
#' @details
#' HQIC (Hannan and Quinn, 1979) is calculated as
#'
#' \deqn{-2LL(theta) + 2klog(log(n))}
#'
#' @return H... |
#' BoskR - Assess Adequacy of Diversification Models Using Tree Shapes
#' @details \packageIndices{BoskR}
#' @references In prep.
#' @keywords package
#' @seealso \code{\link{CombineTrees}}, \code{\link{GetMetricTreeSets}}, \code{\link{GetTreeMetrics}}, \code{\link{GetTreeParams}}, \code{\link{PvalMetrics}}, \code{\lin... | /R/BoskR.R | no_license | oschwery/BoskR | R | false | false | 492 | r | #' BoskR - Assess Adequacy of Diversification Models Using Tree Shapes
#' @details \packageIndices{BoskR}
#' @references In prep.
#' @keywords package
#' @seealso \code{\link{CombineTrees}}, \code{\link{GetMetricTreeSets}}, \code{\link{GetTreeMetrics}}, \code{\link{GetTreeParams}}, \code{\link{PvalMetrics}}, \code{\lin... |
load("RDATA/forRevision/Sim_SS3_HCA-reads.RData")
ss3.umi <- read.table("DATA/Smartseq3/HCA.UMIcounts.PBMC.txt", header=TRUE)
ss3.umi <- ss3.umi[,colnames(ss3.data)]
countsSim <- simdata@assays@data$umi_counts
compareData <- ss3.umi
library(yarrr)
pdf("simMatching_SeqDepth_SS3-HCA-umi.pdf", height=4, width=8, useDi... | /AdditionalAnalysis/SIM_Matching_SS3_HCA-UMI.R | no_license | rhondabacher/scEqualization-Paper | R | false | false | 5,255 | r | load("RDATA/forRevision/Sim_SS3_HCA-reads.RData")
ss3.umi <- read.table("DATA/Smartseq3/HCA.UMIcounts.PBMC.txt", header=TRUE)
ss3.umi <- ss3.umi[,colnames(ss3.data)]
countsSim <- simdata@assays@data$umi_counts
compareData <- ss3.umi
library(yarrr)
pdf("simMatching_SeqDepth_SS3-HCA-umi.pdf", height=4, width=8, useDi... |
\name{grad}
\Rdversion{1.1}
\alias{grad}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{gradient function (internal function)
%% ~~function to do ... ~~
}
\description{
Numerical gradient for a function at a given value (internal).
}
\usage{
grad(func, x, ...)
}
%- maybe also 'usage' for oth... | /man/grad.Rd | no_license | guhjy/rstpm2 | R | false | false | 1,246 | rd | \name{grad}
\Rdversion{1.1}
\alias{grad}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{gradient function (internal function)
%% ~~function to do ... ~~
}
\description{
Numerical gradient for a function at a given value (internal).
}
\usage{
grad(func, x, ...)
}
%- maybe also 'usage' for oth... |
rm(list=ls(all=TRUE))
library('ggplot2')
library('scales')
library('grDevices')
plotlist = c(1,2,4,5,6)
for (i in c(1:5))
{
j = plotlist[i]
fname = paste("allresults_",j,".RData",sep="")
load(fname)
newfname = paste("newallresults_",j,".RData",sep="")
load(newfname)
fullhseq = hseq
fullhseq = fullhseq[... | /DTQpaper/convergence/plotter.R | no_license | hbhat4000/sdeinference | R | false | false | 2,655 | r | rm(list=ls(all=TRUE))
library('ggplot2')
library('scales')
library('grDevices')
plotlist = c(1,2,4,5,6)
for (i in c(1:5))
{
j = plotlist[i]
fname = paste("allresults_",j,".RData",sep="")
load(fname)
newfname = paste("newallresults_",j,".RData",sep="")
load(newfname)
fullhseq = hseq
fullhseq = fullhseq[... |
\name{ggflow_plot}
\alias{ggflow_plot}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
2D scatter plots of a flowFrame object with ggplot2
}
\description{
this function will read a flowFrame object from flowCore and plot a 2-D scatter plot of values for single cell data.
}
\usage{
ggflow_plot(f... | /man/ggflow_plot.Rd | no_license | nbafrank/ggflow | R | false | false | 2,007 | rd | \name{ggflow_plot}
\alias{ggflow_plot}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
2D scatter plots of a flowFrame object with ggplot2
}
\description{
this function will read a flowFrame object from flowCore and plot a 2-D scatter plot of values for single cell data.
}
\usage{
ggflow_plot(f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/irced.r
\name{bot_connect}
\alias{bot_connect}
\title{Make bot connection}
\usage{
bot_connect(irc_obj, handler)
}
\arguments{
\item{irc_obj}{irc object}
\item{handler}{bot handler R function}
}
\description{
Make bot connection
}
| /man/bot_connect.Rd | no_license | hrbrmstr/irced | R | false | true | 311 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/irced.r
\name{bot_connect}
\alias{bot_connect}
\title{Make bot connection}
\usage{
bot_connect(irc_obj, handler)
}
\arguments{
\item{irc_obj}{irc object}
\item{handler}{bot handler R function}
}
\description{
Make bot connection
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survFitTT.survDataCstExp.R
\name{survFitTT.survDataCstExp}
\alias{survFitTT.survDataCstExp}
\title{Fits a Bayesian concentration-response model for target-time survival analysis}
\usage{
\method{survFitTT}{survDataCstExp}(
data,
target.ti... | /man/survFitTT.survDataCstExp.Rd | no_license | cran/morse | R | false | true | 3,061 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survFitTT.survDataCstExp.R
\name{survFitTT.survDataCstExp}
\alias{survFitTT.survDataCstExp}
\title{Fits a Bayesian concentration-response model for target-time survival analysis}
\usage{
\method{survFitTT}{survDataCstExp}(
data,
target.ti... |
L <- 5 # number of knots to use for the basis functions
cvs <- seq_len(5) # cross-validation sets
process <- "ebf" # ebf: empirical basis functions, gsk: gaussian kernels
margin <- "gsk" # ebf: empirical basis functions, gsk: gaussian kernels
times <- c("current", "future")
for (cv in cvs)... | /markdown/precip-rev/fit-ebf-5.R | permissive | sammorris81/extreme-decomp | R | false | false | 597 | r | L <- 5 # number of knots to use for the basis functions
cvs <- seq_len(5) # cross-validation sets
process <- "ebf" # ebf: empirical basis functions, gsk: gaussian kernels
margin <- "gsk" # ebf: empirical basis functions, gsk: gaussian kernels
times <- c("current", "future")
for (cv in cvs)... |
#' An R alternative to the lodash \code{get} in JavaScript
#'
#' This is a handy function for retrieving items deep in a nested structure
#' without causing error if not found
#'
#' @param sourceList The \code{list()}/\code{c()} that is to be searched for the element
#' @param path A string that can be separated by [... | /R/retrieve_and_has.R | no_license | arcresu/Gmisc | R | false | false | 2,420 | r | #' An R alternative to the lodash \code{get} in JavaScript
#'
#' This is a handy function for retrieving items deep in a nested structure
#' without causing error if not found
#'
#' @param sourceList The \code{list()}/\code{c()} that is to be searched for the element
#' @param path A string that can be separated by [... |
##############################################
# WASH Benefits Kenya
# Primary outcome analysis
# Table with diarrhea results
# by Jade Benjamin-Chung (jadebc@berkeley.edu)
##############################################
rm(list=ls())
load("~/Dropbox/WBK-primary-analysis/results/jade/diar_prev.RData")
load("~/Dropbo... | /table-diarrhea_Lancet_update.R | no_license | amertens/Wash-Benefits-Kenya | R | false | false | 2,559 | r | ##############################################
# WASH Benefits Kenya
# Primary outcome analysis
# Table with diarrhea results
# by Jade Benjamin-Chung (jadebc@berkeley.edu)
##############################################
rm(list=ls())
load("~/Dropbox/WBK-primary-analysis/results/jade/diar_prev.RData")
load("~/Dropbo... |
# 06/07/2021 merging dwi, flair, bravo from csr, k, sp, r01 =========
scsvroot = 'H:/adluru/StrokeAndDiffusionProject/uwstrokeproject/shapiro/csvs/'
c('csr', 'sp', 'k', 'r01') %>% map(function(s) map(c('_dwi_adc.csv', '_dwi_b0.csv', '_flair.csv', '_bravo.csv'), ~paste0(s, .x)) %>% map(~read.csv(paste0(scsvroot, .x))) %... | /shapiro/groundwork.R | no_license | nadluru/uwstrokeproject | R | false | false | 431 | r | # 06/07/2021 merging dwi, flair, bravo from csr, k, sp, r01 =========
scsvroot = 'H:/adluru/StrokeAndDiffusionProject/uwstrokeproject/shapiro/csvs/'
c('csr', 'sp', 'k', 'r01') %>% map(function(s) map(c('_dwi_adc.csv', '_dwi_b0.csv', '_flair.csv', '_bravo.csv'), ~paste0(s, .x)) %>% map(~read.csv(paste0(scsvroot, .x))) %... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.35202681265618e+77, 9.53818252170339e+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)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615777069-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.35202681265618e+77, 9.53818252170339e+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)))
result <- do.call(CNull:::communities_individual_... |
rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
out <- read.csv("outcome-of-care-measures.csv", colClasses="character")
states <- out$State
hospNames <- out$Hospital.Name
## Check that state and outcome are valid
if (!(state %in% states)) {
stop("invalid sta... | /R/coursera/rankhospital.R | no_license | mishagam/progs | R | false | false | 1,196 | r | rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
out <- read.csv("outcome-of-care-measures.csv", colClasses="character")
states <- out$State
hospNames <- out$Hospital.Name
## Check that state and outcome are valid
if (!(state %in% states)) {
stop("invalid sta... |
#' Determine all n-tuples using the elements of a set.
#'
#' Determine all n-tuples using the elements of a set. This is really just a
#' simple wrapper for expand.grid, so it is not optimized.
#'
#' @param set a set
#' @param n length of each tuple
#' @param repeats if set contains duplicates, should the result?
#' @... | /R/tuples.R | no_license | dkahle/mpoly | R | false | false | 1,703 | r | #' Determine all n-tuples using the elements of a set.
#'
#' Determine all n-tuples using the elements of a set. This is really just a
#' simple wrapper for expand.grid, so it is not optimized.
#'
#' @param set a set
#' @param n length of each tuple
#' @param repeats if set contains duplicates, should the result?
#' @... |
# Exercise 2: More ggplot2 Grammar
# Install and load `ggplot2`
# install.packages("ggplot2") # if needed
library("ggplot2")
# For this exercise you will again be working with the `diamonds` data set.
# Use `?diamonds` to review details about this data set
?diamonds
## Statistical Transformations
# Draw a bar char... | /exercise-2/exercise.R | permissive | AnnieeeeC/m14-ggplot2 | R | false | false | 4,072 | r | # Exercise 2: More ggplot2 Grammar
# Install and load `ggplot2`
# install.packages("ggplot2") # if needed
library("ggplot2")
# For this exercise you will again be working with the `diamonds` data set.
# Use `?diamonds` to review details about this data set
?diamonds
## Statistical Transformations
# Draw a bar char... |
library(MeTo)
### Name: Rn
### Title: Net radiation (Rn)
### Aliases: Rn
### ** Examples
# --------------------------------------------
# Daily period
# --------------------------------------------
Rn(x = 105, n = 8.5, elev = 2, actVP = 2.85, Tmax = 34.8,
Tmin = 25.6, lat.deg = 13.73)
Rn(x = 135, elev = 1, Rs... | /data/genthat_extracted_code/MeTo/examples/Rn.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 864 | r | library(MeTo)
### Name: Rn
### Title: Net radiation (Rn)
### Aliases: Rn
### ** Examples
# --------------------------------------------
# Daily period
# --------------------------------------------
Rn(x = 105, n = 8.5, elev = 2, actVP = 2.85, Tmax = 34.8,
Tmin = 25.6, lat.deg = 13.73)
Rn(x = 135, elev = 1, Rs... |
#' @import methods
NULL
rex::register_shortcuts("covr")
#' calculate the coverage on an environment after evaluating some expressions.
#'
#' This function uses non_standard evaluation so is best used in interactive
#' sessions.
#' @param env the environment to take function definitions from
#' @param ... one or more e... | /R/covr.R | no_license | brodieG/covr | R | false | false | 10,842 | r | #' @import methods
NULL
rex::register_shortcuts("covr")
#' calculate the coverage on an environment after evaluating some expressions.
#'
#' This function uses non_standard evaluation so is best used in interactive
#' sessions.
#' @param env the environment to take function definitions from
#' @param ... one or more e... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gmail_objects.R
\name{ListFiltersResponse}
\alias{ListFiltersResponse}
\title{ListFiltersResponse Object}
\usage{
ListFiltersResponse(filter = NULL)
}
\arguments{
\item{filter}{List of a user's filters}
}
\value{
ListFiltersResponse object
}
... | /googlegmailv1.auto/man/ListFiltersResponse.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 480 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gmail_objects.R
\name{ListFiltersResponse}
\alias{ListFiltersResponse}
\title{ListFiltersResponse Object}
\usage{
ListFiltersResponse(filter = NULL)
}
\arguments{
\item{filter}{List of a user's filters}
}
\value{
ListFiltersResponse object
}
... |
#StackOverflow Developer Talent Map for Canadian Cities and Provinces
##Script for static preprocessing
library(rnaturalearth)
library(leaflet)
library(tidyverse)
library(sf)
library(tools)
setwd("~/GitHub/developer-talent-map")
#Provinces===========================
#Download and subset map from www.naturalearthdat... | /1 - Load and Tidy.R | permissive | thedaisTMU/developer-talent-map | R | false | false | 3,472 | r | #StackOverflow Developer Talent Map for Canadian Cities and Provinces
##Script for static preprocessing
library(rnaturalearth)
library(leaflet)
library(tidyverse)
library(sf)
library(tools)
setwd("~/GitHub/developer-talent-map")
#Provinces===========================
#Download and subset map from www.naturalearthdat... |
# Server logic
server <- function(input, output) {
dataInput <- reactive({
getSymbols(input$symb, src = "yahoo",
from = input$dates[1],
to = input$dates[2],
auto.assign = FALSE)
})
stockName <- reactive ({
getSymbols(input$symb, src = "yahoo",
... | /stocks/server.R | no_license | nickjkomarov/shiny-server | R | false | false | 653 | r |
# Server logic
server <- function(input, output) {
dataInput <- reactive({
getSymbols(input$symb, src = "yahoo",
from = input$dates[1],
to = input$dates[2],
auto.assign = FALSE)
})
stockName <- reactive ({
getSymbols(input$symb, src = "yahoo",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/alink.R
\name{alink}
\alias{alink}
\title{Return a Link To Download an Artifact Stored on Remote Repository}
\usage{
alink(md5hash, repo = aoptions("repo"), user = aoptions("user"),
subdir = aoptions("subdir"), branch = "master",
repoType... | /man/alink.Rd | no_license | PredictiveEcology/archivist | R | false | true | 4,095 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/alink.R
\name{alink}
\alias{alink}
\title{Return a Link To Download an Artifact Stored on Remote Repository}
\usage{
alink(md5hash, repo = aoptions("repo"), user = aoptions("user"),
subdir = aoptions("subdir"), branch = "master",
repoType... |
# Model selection script for SBMs.
library(igraph)
library(sbmlogit)
library(sbmlhelpers)
library(RMTstat)
# simulate data from a K = 4 SBM with following connectivity matrix
n <- 200
p <- 0.75
q <- 0.05
K = 4
P <- matrix(c(p,q,q,q,
q,p,q,q,
q,q,p,q,
q,q,q,p),
nro... | /Code/model_selection/model_selection.R | no_license | carter-allen/Research | R | false | false | 2,056 | r | # Model selection script for SBMs.
library(igraph)
library(sbmlogit)
library(sbmlhelpers)
library(RMTstat)
# simulate data from a K = 4 SBM with following connectivity matrix
n <- 200
p <- 0.75
q <- 0.05
K = 4
P <- matrix(c(p,q,q,q,
q,p,q,q,
q,q,p,q,
q,q,q,p),
nro... |
#' Aggregates over a discrete field
#'
#' @description
#'
#' Uses very generic dplyr code to aggregate data. Because of this approach,
#' the calculations automatically run inside the database if `data` has
#' a database or sparklyr connection. The `class()` of such tables
#' in R are: tbl_sql, tbl_dbi, tbl_sql
#' ... | /R/discrete.R | no_license | overmar/dbplot | R | false | false | 3,397 | r | #' Aggregates over a discrete field
#'
#' @description
#'
#' Uses very generic dplyr code to aggregate data. Because of this approach,
#' the calculations automatically run inside the database if `data` has
#' a database or sparklyr connection. The `class()` of such tables
#' in R are: tbl_sql, tbl_dbi, tbl_sql
#' ... |
#' Online Retail Data Set
#'
#' This Online Retail dataset contains all the transactions occurring for a
#' UK-based and registered, non-store online retail between 01/12/2010 and 09/12/2011.
#' The company mainly sells unique all-occasion gift-ware. Many customers of the
#' company are wholesalers.
#'
#' @docType data... | /R/data.R | no_license | allanvc/onlineretail | R | false | false | 2,105 | r | #' Online Retail Data Set
#'
#' This Online Retail dataset contains all the transactions occurring for a
#' UK-based and registered, non-store online retail between 01/12/2010 and 09/12/2011.
#' The company mainly sells unique all-occasion gift-ware. Many customers of the
#' company are wholesalers.
#'
#' @docType data... |
#' @name runDirinputExample
#'
#' @title Runs a demo app with the code
#'
#' @details
#' Runs a demo app with the code. See the code in the example_application folder for
#' how this is accomplished.
#'
#' @export
runDirinputExample <- function() {
appDir <- system.file("example_application", package = "shinyDire... | /R/runExample.R | permissive | wleepang/shiny-directory-input | R | false | false | 514 | r | #' @name runDirinputExample
#'
#' @title Runs a demo app with the code
#'
#' @details
#' Runs a demo app with the code. See the code in the example_application folder for
#' how this is accomplished.
#'
#' @export
runDirinputExample <- function() {
appDir <- system.file("example_application", package = "shinyDire... |
analisis_tendencia<-function(datos){
readline("recordar que laa 1er columna debe contener los tiempos y la 2da los datos")
serie<-data.frame(datos[which(!is.na(datos[,2])),1],datos[which(!is.na(datos[,2])),2])
serie[,1]<-seq(1:length(serie[,1])) #IMPORTANTE XQ SINO AFECTA EL LM
ajuste1<-lm(serie[,2]~se... | /P3/funcion_analisis_tendencia.R | no_license | LucianoAndrian/Estadistica2_2019 | R | false | false | 762 | r | analisis_tendencia<-function(datos){
readline("recordar que laa 1er columna debe contener los tiempos y la 2da los datos")
serie<-data.frame(datos[which(!is.na(datos[,2])),1],datos[which(!is.na(datos[,2])),2])
serie[,1]<-seq(1:length(serie[,1])) #IMPORTANTE XQ SINO AFECTA EL LM
ajuste1<-lm(serie[,2]~se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/primary_api.R
\name{trading_md}
\alias{trading_md}
\title{Primary API Market Data Real Time}
\usage{
trading_md(market_id = "ROFX", symbol, entries = c("BI", "OF", "LA",
"OP", "CL", "SE", "OI"), depth = 1L)
}
\arguments{
\item{market_id}{St... | /man/trading_md.Rd | permissive | hsfoggia/rRofex | R | false | true | 988 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/primary_api.R
\name{trading_md}
\alias{trading_md}
\title{Primary API Market Data Real Time}
\usage{
trading_md(market_id = "ROFX", symbol, entries = c("BI", "OF", "LA",
"OP", "CL", "SE", "OI"), depth = 1L)
}
\arguments{
\item{market_id}{St... |
##' @name metric_RMSE
##' @title Root Mean Square Error
##' @export
##' @param dat dataframe
##'
##' @author Betsy Cowdery
metric_RMSE <- function(dat, ...) {
PEcAn.utils::logger.info("Metric: Root Mean Square Error")
return(sqrt(mean((dat$model - dat$obvs) ^ 2,na.rm=TRUE)))
} # metric_RMSE
| /modules/benchmark/R/metric_RMSE.R | permissive | Kah5/pecan | R | false | false | 298 | r | ##' @name metric_RMSE
##' @title Root Mean Square Error
##' @export
##' @param dat dataframe
##'
##' @author Betsy Cowdery
metric_RMSE <- function(dat, ...) {
PEcAn.utils::logger.info("Metric: Root Mean Square Error")
return(sqrt(mean((dat$model - dat$obvs) ^ 2,na.rm=TRUE)))
} # metric_RMSE
|
#' Removes duplicated rows in the matrices and rows with "NA" inside.
#' @description Takes list with matrices passed by "plot_hm"-function and removes duplicated rows and rows with "NA" inside. Called by "plot_hm"-function.
#' @param ugmat A list with matrices and additional information about the selected region. mat ... | /R/tidy_mat.R | no_license | ClaudiaRHD/chipAnalyseR | R | false | false | 935 | r | #' Removes duplicated rows in the matrices and rows with "NA" inside.
#' @description Takes list with matrices passed by "plot_hm"-function and removes duplicated rows and rows with "NA" inside. Called by "plot_hm"-function.
#' @param ugmat A list with matrices and additional information about the selected region. mat ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rewardestimation.R
\name{reward_estimator}
\alias{reward_estimator}
\title{Learner for conducting reward estimation with categorical treatments}
\usage{
reward_estimator(...)
}
\arguments{
\item{...}{Use keyword arguments to set parameters on... | /man/reward_estimator.Rd | no_license | cran/iai | R | false | true | 816 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rewardestimation.R
\name{reward_estimator}
\alias{reward_estimator}
\title{Learner for conducting reward estimation with categorical treatments}
\usage{
reward_estimator(...)
}
\arguments{
\item{...}{Use keyword arguments to set parameters on... |
# Documentation -----------------------------------------------------------
#' Pdqr methods for print function
#'
#' Pdqr-functions have their own methods for [print()] which displays function's
#' [metadata][meta_all()] in readable and concise form.
#'
#' @param x Pdqr-function to print.
#' @param ... Further argument... | /R/print.R | permissive | ismayc/pdqr | R | false | false | 4,691 | r | # Documentation -----------------------------------------------------------
#' Pdqr methods for print function
#'
#' Pdqr-functions have their own methods for [print()] which displays function's
#' [metadata][meta_all()] in readable and concise form.
#'
#' @param x Pdqr-function to print.
#' @param ... Further argument... |
\name{RM2006-package}
\alias{RM2006-package}
\docType{package}
\title{
\packageTitle{RM2006}
}
\description{
\packageDescription{RM2006}
}
\author{
\packageAuthor{RM2006}
Maintainer: \packageMaintainer{RM2006}
}
\references{
Zumbach, G. (2007) The Riskmetrics 2006 methodology. Available at SSRN: https://ssrn.com/abstr... | /man/RM2006-package.Rd | no_license | cran/RM2006 | R | false | false | 442 | rd | \name{RM2006-package}
\alias{RM2006-package}
\docType{package}
\title{
\packageTitle{RM2006}
}
\description{
\packageDescription{RM2006}
}
\author{
\packageAuthor{RM2006}
Maintainer: \packageMaintainer{RM2006}
}
\references{
Zumbach, G. (2007) The Riskmetrics 2006 methodology. Available at SSRN: https://ssrn.com/abstr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.