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 |
|---|---|---|---|---|---|---|---|---|---|
seed <- 632
log.wt <- -15.483005158357859
penalty <- 2.8115950178536287e-8
intervals.send <- c()
intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400)
dev.null <- 358759.0022669336
df.null <- 35567
dev.... | /analysis/boot/boot632.R | no_license | patperry/interaction-proc | R | false | false | 3,760 | r | seed <- 632
log.wt <- -15.483005158357859
penalty <- 2.8115950178536287e-8
intervals.send <- c()
intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400)
dev.null <- 358759.0022669336
df.null <- 35567
dev.... |
setwd("C:/workspace/kaggle_titanic")
train <- read.csv("C:/workspace/kaggle_titanic/train.csv")
test <- read.csv("C:/workspace/kaggle_titanic/test.csv")
# combi in feature.r
sample(1:10, replace=TRUE)
summary(combi$Age)
Agefit <- rpart(Age ~ Pclass + Sex + SibSp + Parch + Fare + Embarked + Title + FamilySize,
... | /random.forest.r | no_license | joeykblack/kaggle-titanic | R | false | false | 1,841 | r | setwd("C:/workspace/kaggle_titanic")
train <- read.csv("C:/workspace/kaggle_titanic/train.csv")
test <- read.csv("C:/workspace/kaggle_titanic/test.csv")
# combi in feature.r
sample(1:10, replace=TRUE)
summary(combi$Age)
Agefit <- rpart(Age ~ Pclass + Sex + SibSp + Parch + Fare + Embarked + Title + FamilySize,
... |
# SEEA AFF Guatemala
# Renato Vargas
# https://gt.linkedin.com/in/revargas
# SEEA AFF GT Github: https://github.com/renatovargas/seea-aff#
# ------------------------------------------------------------------
# TABLE 4.13 PHYSICAL FLOW ACCOUNT FOR ENERGY
# -------------------------------------------------------... | /scripts/4_13-physical_energy.R | no_license | renatovargas/seea-aff | R | false | false | 6,091 | r | # SEEA AFF Guatemala
# Renato Vargas
# https://gt.linkedin.com/in/revargas
# SEEA AFF GT Github: https://github.com/renatovargas/seea-aff#
# ------------------------------------------------------------------
# TABLE 4.13 PHYSICAL FLOW ACCOUNT FOR ENERGY
# -------------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/msmsRawExtensions.r
\name{findMsMsHR.ticms2}
\alias{findMsMsHR.ticms2}
\alias{findMsMsHR.ticMS2}
\title{Extract an MS/MS spectrum from MS2 TIC}
\usage{
findMsMsHR.ticms2(
msRaw,
mz,
limit.coarse,
limit.fine,
rtLimits = N... | /man/findMsMsHR.ticms2.Rd | no_license | MassBank/RMassBank | R | false | true | 2,125 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/msmsRawExtensions.r
\name{findMsMsHR.ticms2}
\alias{findMsMsHR.ticms2}
\alias{findMsMsHR.ticMS2}
\title{Extract an MS/MS spectrum from MS2 TIC}
\usage{
findMsMsHR.ticms2(
msRaw,
mz,
limit.coarse,
limit.fine,
rtLimits = N... |
## File Name: frm_descriptives_variables.R
## File Version: 0.16
frm_descriptives_variables <- function(dat, predictorMatrix,
freq_miss_values, dat0 )
{
vars <- colnames(predictorMatrix)
NV <- length(vars)
dfr <- data.frame("variable"=vars, M=NA, SD=NA )
for (vv in 1:NV){
# vv... | /R/frm_descriptives_variables.R | no_license | cran/mdmb | R | false | false | 817 | r | ## File Name: frm_descriptives_variables.R
## File Version: 0.16
frm_descriptives_variables <- function(dat, predictorMatrix,
freq_miss_values, dat0 )
{
vars <- colnames(predictorMatrix)
NV <- length(vars)
dfr <- data.frame("variable"=vars, M=NA, SD=NA )
for (vv in 1:NV){
# vv... |
#contrlgjasd | /cont.R | no_license | Veronica2218/Prueba | R | false | false | 12 | r | #contrlgjasd |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{NoPlanes}
\alias{NoPlanes}
\title{NoPlanes}
\usage{
NoPlanes(point = "", radius = 100)
}
\arguments{
\item{point}{A string containing the name of a city.}
\item{radius}{The number of kilometers which should b... | /man/NoPlanes.Rd | no_license | JVSeebass/adsb-R-project | R | false | true | 766 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{NoPlanes}
\alias{NoPlanes}
\title{NoPlanes}
\usage{
NoPlanes(point = "", radius = 100)
}
\arguments{
\item{point}{A string containing the name of a city.}
\item{radius}{The number of kilometers which should b... |
## Thank you for grading my assignment! And sorry for my bad English (it is not
## my mother tongue language).
# Overall description of what the following functions do:
# The following two functions are aimed to cache potentially time-consuming
# computations when calculating the inverse of a matrix. After the inverse... | /cachematrix.R | no_license | jmateu12/ProgrammingAssignment2 | R | false | false | 2,701 | r | ## Thank you for grading my assignment! And sorry for my bad English (it is not
## my mother tongue language).
# Overall description of what the following functions do:
# The following two functions are aimed to cache potentially time-consuming
# computations when calculating the inverse of a matrix. After the inverse... |
library(RForcecom)
context("Testing Utility Functions")
test_that("Checking login and logout", {
username <- Sys.getenv("RFORCECOM_EMAIL")
password <- Sys.getenv("RFORCECOM_PASSWORD")
session <- NULL
# test successful login
tryCatch(session <- rforcecom.login(username, password))
expect_true(length(ses... | /OldVersions/RForcecom-0.9/RForcecom/tests/testthat/test_utils.R | permissive | rrmn/RForcecom | R | false | false | 1,063 | r | library(RForcecom)
context("Testing Utility Functions")
test_that("Checking login and logout", {
username <- Sys.getenv("RFORCECOM_EMAIL")
password <- Sys.getenv("RFORCECOM_PASSWORD")
session <- NULL
# test successful login
tryCatch(session <- rforcecom.login(username, password))
expect_true(length(ses... |
library(testthat)
library(BiocNimfa)
test_check("BiocNimfa")
| /tests/testthat.R | no_license | nturaga/BiocNimfa | R | false | false | 62 | r | library(testthat)
library(BiocNimfa)
test_check("BiocNimfa")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_absolute_targets.R
\name{add_absolute_targets}
\alias{add_absolute_targets}
\alias{add_absolute_targets-method}
\alias{add_absolute_targets,ConservationProblem,numeric-method}
\alias{add_absolute_targets,ConservationProblem,matrix-method}... | /man/add_absolute_targets.Rd | no_license | bbest/prioritizr | R | false | true | 6,406 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_absolute_targets.R
\name{add_absolute_targets}
\alias{add_absolute_targets}
\alias{add_absolute_targets-method}
\alias{add_absolute_targets,ConservationProblem,numeric-method}
\alias{add_absolute_targets,ConservationProblem,matrix-method}... |
library(hBayesDM)
### Name: ug_delta
### Title: Norm-Training Ultimatum Game
### Aliases: ug_delta
### ** Examples
## Not run:
##D # Run the model and store results in "output"
##D output <- ug_delta("example", niter = 2000, nwarmup = 1000, nchain = 4, ncore = 4)
##D
##D # Visually check convergence of the sampli... | /data/genthat_extracted_code/hBayesDM/examples/ug_delta.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 718 | r | library(hBayesDM)
### Name: ug_delta
### Title: Norm-Training Ultimatum Game
### Aliases: ug_delta
### ** Examples
## Not run:
##D # Run the model and store results in "output"
##D output <- ug_delta("example", niter = 2000, nwarmup = 1000, nchain = 4, ncore = 4)
##D
##D # Visually check convergence of the sampli... |
#Morphological strategies of corals in the anthropocene: shape distribution analysis
rm(list = ls())
#Set up ====
#.....Libraries ====
library(tidyverse)
library(modelr)
library(broom)
library(ggmap)
library(maptools)
library(viridis)
library(grid)
library(gridExtra)
library(png)
library(ggrepel)
library(ggpubr)
#... | /4.ShapeDistributionAnalysis.r | no_license | Kylezx1/MorphoStratsHabitatBuildersAnthro | R | false | false | 13,729 | r | #Morphological strategies of corals in the anthropocene: shape distribution analysis
rm(list = ls())
#Set up ====
#.....Libraries ====
library(tidyverse)
library(modelr)
library(broom)
library(ggmap)
library(maptools)
library(viridis)
library(grid)
library(gridExtra)
library(png)
library(ggrepel)
library(ggpubr)
#... |
#
# Federal University of Campina Grande
# Distributed Systems Laboratory
#
# Author: Armstrong Mardilson da Silva Goes
# Contact: armstrongmsg@lsd.ufcg.edu.br
#
#
# This program generates a PNG image file which represents the
# cpu usage data stored in the given files whose names are passed
# as argument.
#
# Usage:... | /IntrusivenessMeter/graphics/scripts/R/plot_table_cpu.r | no_license | thiagomanel/intrusiveness-meter | R | false | false | 3,220 | r | #
# Federal University of Campina Grande
# Distributed Systems Laboratory
#
# Author: Armstrong Mardilson da Silva Goes
# Contact: armstrongmsg@lsd.ufcg.edu.br
#
#
# This program generates a PNG image file which represents the
# cpu usage data stored in the given files whose names are passed
# as argument.
#
# Usage:... |
"
Swirl Sample Code
"
p <- c("rafalib", "swirl", "curl", "crayon")
install.packages(p, dependencies=TRUE)
library("swirl")
swirl()
"
For loop example 1
"
arr = c(2.23, 3.45, 1.87, 2.11, 7.33, 18.34, 19.23)
l = length(arr)
sum = 0
for(i in 1:l){
sum = sum + arr[i]
}
print(sum)
print(l)
print(sum/l)
"
For loop ex... | /Week 1/activity_1.r | no_license | aldouswright/stats | R | false | false | 571 | r | "
Swirl Sample Code
"
p <- c("rafalib", "swirl", "curl", "crayon")
install.packages(p, dependencies=TRUE)
library("swirl")
swirl()
"
For loop example 1
"
arr = c(2.23, 3.45, 1.87, 2.11, 7.33, 18.34, 19.23)
l = length(arr)
sum = 0
for(i in 1:l){
sum = sum + arr[i]
}
print(sum)
print(l)
print(sum/l)
"
For loop ex... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{zrange}
\alias{zrange}
\title{Compute the xrange of the root}
\usage{
zrange(obj)
}
\arguments{
\item{obj}{of class root}
}
\value{
c(y1,y2) where y1 and y2 are the y limits of the root
}
\description{
Compute the xrange of the root
}
\examples{
data(lupin)
r <... | /r/RSML/man/zrange.Rd | no_license | VirtualPlants/RSML-conversion-tools | R | false | false | 367 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{zrange}
\alias{zrange}
\title{Compute the xrange of the root}
\usage{
zrange(obj)
}
\arguments{
\item{obj}{of class root}
}
\value{
c(y1,y2) where y1 and y2 are the y limits of the root
}
\description{
Compute the xrange of the root
}
\examples{
data(lupin)
r <... |
Plot1.R
#set working directory
setwd("C:/Users/carme/Documents")
#load library data.table
library(data.table)
DT<-fread("./household_power_consumption.txt", na.strings="?")
#set date as d:m:y
DT$strDate <- as.Date(DT$Date,"%d/%m/%Y")
#select data
DT.filter<-DT[DT$strDate=="2007-02-01" | DT$strDate=="2... | /Lab7.R | no_license | carmennlai/Lab-7 | R | false | false | 3,583 | r | Plot1.R
#set working directory
setwd("C:/Users/carme/Documents")
#load library data.table
library(data.table)
DT<-fread("./household_power_consumption.txt", na.strings="?")
#set date as d:m:y
DT$strDate <- as.Date(DT$Date,"%d/%m/%Y")
#select data
DT.filter<-DT[DT$strDate=="2007-02-01" | DT$strDate=="2... |
library(tidyverse)
library(mosaicData)
library(shiny)
df <- read.csv("ShinyPoliceAll.csv")
# Define UI for application that draws a scatterplot
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
selectInput("x", label = "X variable",
choices = names(df), selected = "Whi... | /appPolicingAllfacet.R | no_license | jawitmer/JuniorPracticum | R | false | false | 2,206 | r |
library(tidyverse)
library(mosaicData)
library(shiny)
df <- read.csv("ShinyPoliceAll.csv")
# Define UI for application that draws a scatterplot
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
selectInput("x", label = "X variable",
choices = names(df), selected = "Whi... |
\name{mgmsampler}
\alias{mgmsampler}
\title{
Sample from k-order Mixed Graphical Model
}
\description{
Generates samples from a k-order Mixed Graphical Model
}
\usage{
mgmsampler(factors, interactions, thresholds, sds, type,
level, N, nIter = 250, pbar = TRUE,
divWarning = 10^3, returnChains = F... | /man/mgmsampler.Rd | no_license | bshalchi/mgm | R | false | false | 9,610 | rd | \name{mgmsampler}
\alias{mgmsampler}
\title{
Sample from k-order Mixed Graphical Model
}
\description{
Generates samples from a k-order Mixed Graphical Model
}
\usage{
mgmsampler(factors, interactions, thresholds, sds, type,
level, N, nIter = 250, pbar = TRUE,
divWarning = 10^3, returnChains = F... |
# Radius
r <-2
#Function to compute the volume of a sphere with radius r
volume <- function(r, rho) {
3/4*pi*r^2
}
#Function to compute the volume of the sphere with radius r, r^2 and r^3
volume_vector <- function(r) {
r<-22
for (r in 2:4) {
volume(r)
}
}
#Run volume_vector(r) and print the volum... | /foo.R | no_license | jesslynhillary/ST2195_Assignment_4 | R | false | false | 382 | r | # Radius
r <-2
#Function to compute the volume of a sphere with radius r
volume <- function(r, rho) {
3/4*pi*r^2
}
#Function to compute the volume of the sphere with radius r, r^2 and r^3
volume_vector <- function(r) {
r<-22
for (r in 2:4) {
volume(r)
}
}
#Run volume_vector(r) and print the volum... |
rm(list=ls())
# eXtreme Gradient Boosting (XGB, xgboost)
library(caret)
library(pROC)
library(tictoc)
library(varhandle)
library(ggplot2)
d <- read.csv("C:/Users/Karol/R_Projects/WIZ/PROJECT/data.csv", header=TRUE, sep=",")
summary(d)
TRAIN_DATA_SIZE = 0.8
CONSTANT_SEED <- 11
# Preproccesing and splitting data
d$du... | /XGBoost.R | no_license | karolminuth/Spotify_analysis_prediction | R | false | false | 2,793 | r | rm(list=ls())
# eXtreme Gradient Boosting (XGB, xgboost)
library(caret)
library(pROC)
library(tictoc)
library(varhandle)
library(ggplot2)
d <- read.csv("C:/Users/Karol/R_Projects/WIZ/PROJECT/data.csv", header=TRUE, sep=",")
summary(d)
TRAIN_DATA_SIZE = 0.8
CONSTANT_SEED <- 11
# Preproccesing and splitting data
d$du... |
# Scatterplot of score vs. bty_avg
ggplot(evals, aes(x = bty_avg, y = score)) +
geom_point()
| /DCamp/Introduction to Data/CS_Scatter plot.R | no_license | shinichimatsuda/R_Training | R | false | false | 95 | r | # Scatterplot of score vs. bty_avg
ggplot(evals, aes(x = bty_avg, y = score)) +
geom_point()
|
\name{stmCorrViz-package}
\alias{stmCorrViz-package}
\docType{package}
\title{
Hierarchical Correlation View of STM Models
}
\description{
Generates an interactive visualization of topic correlations/hierarchy in a Structural Topic Model (STM) of Roberts, Stewart, and Tingley. The package performs a hierarchical clust... | /man/stmCorrViz-package.Rd | no_license | AntonioCoppola/stmCorrViz | R | false | false | 872 | rd | \name{stmCorrViz-package}
\alias{stmCorrViz-package}
\docType{package}
\title{
Hierarchical Correlation View of STM Models
}
\description{
Generates an interactive visualization of topic correlations/hierarchy in a Structural Topic Model (STM) of Roberts, Stewart, and Tingley. The package performs a hierarchical clust... |
##Preparation Stage
# 1. Loading required packages
library(dplyr)
# 2. Download the dataset
filename <- "Coursera_DS3_Final.zip"
# 2. Checking if archieve already exists.
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
downlo... | /PreparartionStage.R | no_license | vroom2417/ProgrammingAssignment3 | R | false | false | 1,214 | r | ##Preparation Stage
# 1. Loading required packages
library(dplyr)
# 2. Download the dataset
filename <- "Coursera_DS3_Final.zip"
# 2. Checking if archieve already exists.
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
downlo... |
#Taking everything but the last 2 and projecting them.
newlength = length(vdiff_excellent[-yearend]) - 2
vset_excellent = vdiff_excellent[-yearend][1:newlength]
vset_good = vdiff_good[-yearend][1:newlength]
vset_fair = vdiff_fair[-yearend][1:newlength]
vset_poor = vdiff_poor[-yearend][1:newlength]
vset_verypoor = vdif... | /r_files/Projections.R | no_license | themaninorange/cornyproject | R | false | false | 4,747 | r | #Taking everything but the last 2 and projecting them.
newlength = length(vdiff_excellent[-yearend]) - 2
vset_excellent = vdiff_excellent[-yearend][1:newlength]
vset_good = vdiff_good[-yearend][1:newlength]
vset_fair = vdiff_fair[-yearend][1:newlength]
vset_poor = vdiff_poor[-yearend][1:newlength]
vset_verypoor = vdif... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/types.R
\name{Comment}
\alias{Comment}
\title{A comment on an item, e.g on a Article, or SoftwareSourceCode.}
\usage{
Comment(
about,
alternateNames,
authors,
commentAspect,
comments,
content,
dateAccepted,
dateCreated,
date... | /man/Comment.Rd | no_license | cran/stencilaschema | R | false | true | 2,962 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/types.R
\name{Comment}
\alias{Comment}
\title{A comment on an item, e.g on a Article, or SoftwareSourceCode.}
\usage{
Comment(
about,
alternateNames,
authors,
commentAspect,
comments,
content,
dateAccepted,
dateCreated,
date... |
# reads in the data
data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", colClasses = "character")
# obtains only data from 2007-02-01 and 2007-02-02
data <- data[data$Date=="1/2/2007" | data$Date=="2/2/2007",]
# converts Date and Time variables to Date/Time classes for manipulation
data$DateTi... | /plot3.R | no_license | kohdewei/ExData_Plotting1 | R | false | false | 1,164 | r | # reads in the data
data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", colClasses = "character")
# obtains only data from 2007-02-01 and 2007-02-02
data <- data[data$Date=="1/2/2007" | data$Date=="2/2/2007",]
# converts Date and Time variables to Date/Time classes for manipulation
data$DateTi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{hermite_normalization_N}
\alias{hermite_normalization_N}
\title{Convenience function to output Hermite normalization factors}
\usage{
hermite_normalization_N(N)
}
\arguments{
\item{N}{An integer number.}
}
\value{
A numeric vect... | /man/hermite_normalization_N.Rd | permissive | zeta1999/hermiter | R | false | true | 610 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{hermite_normalization_N}
\alias{hermite_normalization_N}
\title{Convenience function to output Hermite normalization factors}
\usage{
hermite_normalization_N(N)
}
\arguments{
\item{N}{An integer number.}
}
\value{
A numeric vect... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myKnit.R
\name{myKnit}
\alias{myKnit}
\title{Custom `knit` button for RMarkdown to support colating multiple YAML header
files before prepending to RMarkdown document}
\usage{
myKnit(
inputFile,
encoding,
output_dir = output_dir,
yam... | /man/myKnit.Rd | permissive | rmsharp/rmsutilityr | R | false | true | 1,212 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myKnit.R
\name{myKnit}
\alias{myKnit}
\title{Custom `knit` button for RMarkdown to support colating multiple YAML header
files before prepending to RMarkdown document}
\usage{
myKnit(
inputFile,
encoding,
output_dir = output_dir,
yam... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/route53domains_operations.R
\name{route53domains_update_tags_for_domain}
\alias{route53domains_update_tags_for_domain}
\title{This operation adds or updates tags for a specified domain}
\usage{
route53domains_update_tags_for_domain(DomainName... | /paws/man/route53domains_update_tags_for_domain.Rd | permissive | johnnytommy/paws | R | false | true | 1,025 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/route53domains_operations.R
\name{route53domains_update_tags_for_domain}
\alias{route53domains_update_tags_for_domain}
\title{This operation adds or updates tags for a specified domain}
\usage{
route53domains_update_tags_for_domain(DomainName... |
###################################################
# stickerCube cubieCube
# is.stickerCube is.cubieCube
# as.stickerCube as.cubieCube
# print.stickerCube print.cubieCube
# randCube randMoves scramble
# rotate slice rotations plot.rotCubes ==.cube
# is.solved is.solvable parity (cyclengths) (psig... | /cubing/R/struct.R | permissive | ellisp97/rubikcube | R | false | false | 29,128 | r |
###################################################
# stickerCube cubieCube
# is.stickerCube is.cubieCube
# as.stickerCube as.cubieCube
# print.stickerCube print.cubieCube
# randCube randMoves scramble
# rotate slice rotations plot.rotCubes ==.cube
# is.solved is.solvable parity (cyclengths) (psig... |
list.of.packages <- c("data.table","reshape2","bsts","lubridate","dplyr","ggplot2","scales","zoo")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, require, character.only=T)
wd = "~/git/clean-ca... | /projection.R | no_license | akmiller01/clean-cars-act-2020-analysis | R | false | false | 5,656 | r | list.of.packages <- c("data.table","reshape2","bsts","lubridate","dplyr","ggplot2","scales","zoo")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, require, character.only=T)
wd = "~/git/clean-ca... |
###Aula 4 - banco de dados novos com distancias
#1. introdução
install.packages("tidyverse")
install.packages("corrplot")
install.packages("Hmisc")
library(tidyverse)
library(corrplot)
library(Hmisc)
BD_dist <- read.csv2("C:/Users/tvzgo/OneDrive/Área de Trabalho/programação/Aulas/MTI/dados/BD_20210814.csv", encodin... | /scripts/aula4_dist.R | no_license | tvzgomes/MTI | R | false | false | 2,856 | r | ###Aula 4 - banco de dados novos com distancias
#1. introdução
install.packages("tidyverse")
install.packages("corrplot")
install.packages("Hmisc")
library(tidyverse)
library(corrplot)
library(Hmisc)
BD_dist <- read.csv2("C:/Users/tvzgo/OneDrive/Área de Trabalho/programação/Aulas/MTI/dados/BD_20210814.csv", encodin... |
8.5:4.5
c(1,1:3,c(5,8),13)
vector("numeric",5)
vector("complex",5)
vector("logical",5)
vector("character",5)
vector("list",5)
numeric(5)
complex(5)
logical(5)
character(5)
seq.int(3,12)
seq.int(3,12,2)
seq.int(0.1,0.01,-0.01)
n = 0
1:n
seq_len(n)
pp <- c("Peter","Piper","picked","a","peck","of","picked... | /04课堂练习.r | no_license | 2001Liuruijie/R- | R | false | false | 3,230 | r | 8.5:4.5
c(1,1:3,c(5,8),13)
vector("numeric",5)
vector("complex",5)
vector("logical",5)
vector("character",5)
vector("list",5)
numeric(5)
complex(5)
logical(5)
character(5)
seq.int(3,12)
seq.int(3,12,2)
seq.int(0.1,0.01,-0.01)
n = 0
1:n
seq_len(n)
pp <- c("Peter","Piper","picked","a","peck","of","picked... |
#' Build pkgdown website
#'
#' @description
#' `build_site()` is a convenient wrapper around five functions:
#'
#' * [init_site()]
#' * [build_articles()]
#' * [build_home()]
#' * [build_reference()]
#' * [build_news()]
#'
#' See the documentation for the each function to learn how to control
#' that aspect of the site... | /R/build.r | permissive | dfalster/pkgdown | R | false | false | 6,239 | r | #' Build pkgdown website
#'
#' @description
#' `build_site()` is a convenient wrapper around five functions:
#'
#' * [init_site()]
#' * [build_articles()]
#' * [build_home()]
#' * [build_reference()]
#' * [build_news()]
#'
#' See the documentation for the each function to learn how to control
#' that aspect of the site... |
#############################################
#' Convert to plotly
#'
#' @param x An object of class \code{plotSmooth}.
#' @name ggplotly.plotSmooth
#' @importFrom plotly ggplotly
#' @rdname ggplotly.plotSmooth
#' @export ggplotly.plotSmooth
#'
ggplotly.plotSmooth <- function(p, ...){
ggplotly( p$ggObj )
} | /R/ggplotly.R | no_license | guhjy/mgcViz | R | false | false | 317 | r |
#############################################
#' Convert to plotly
#'
#' @param x An object of class \code{plotSmooth}.
#' @name ggplotly.plotSmooth
#' @importFrom plotly ggplotly
#' @rdname ggplotly.plotSmooth
#' @export ggplotly.plotSmooth
#'
ggplotly.plotSmooth <- function(p, ...){
ggplotly( p$ggObj )
} |
# F4SG 2021 Program (Day 2: Friday June 25)
library(htmltools)
#-------------------------------------------------------#
# Welcome Day 2
#-------------------------------------------------------#
Bahman = list(
author = "Bahman Rostami-Tabar, Cardiff University",
title = "Information from the Organisers",
abst... | /R/program-Day2.R | no_license | mdporter/F4SG | R | false | false | 9,749 | r | # F4SG 2021 Program (Day 2: Friday June 25)
library(htmltools)
#-------------------------------------------------------#
# Welcome Day 2
#-------------------------------------------------------#
Bahman = list(
author = "Bahman Rostami-Tabar, Cardiff University",
title = "Information from the Organisers",
abst... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818251920521e+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), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615778812-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 348 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818251920521e+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), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... |
context("test-diagnose_weights")
test_that("initial error handling", {
# Need a target variable
rd2 = respondent_data
expect_error(diagnose_weights(rd2))
# Given a target attribute that doesn't resolve, this should error.
attr(rd2, "target_symbol") = "invalid_symbol"
expect_error(diagnose_weights(rd2))
... | /tests/testthat/test-diagnose_weights.R | permissive | esmarkowski/autumn | R | false | false | 1,335 | r | context("test-diagnose_weights")
test_that("initial error handling", {
# Need a target variable
rd2 = respondent_data
expect_error(diagnose_weights(rd2))
# Given a target attribute that doesn't resolve, this should error.
attr(rd2, "target_symbol") = "invalid_symbol"
expect_error(diagnose_weights(rd2))
... |
#' Show / get all palettes of the tabplot package
#'
#' All color palettes are shown and/or returned that can be used for tableplots.
#'
#' Sequential palettes (for numeric variables): \code{"Blues"}, \code{"Greens"}, \code{"Greys"}, \code{"Oranges"}, and \code{"Purples"}
#' These palettes are taken from ColorBrew... | /pkg/R/tablePalettes.R | no_license | miquelet/tabplot | R | false | false | 3,515 | r | #' Show / get all palettes of the tabplot package
#'
#' All color palettes are shown and/or returned that can be used for tableplots.
#'
#' Sequential palettes (for numeric variables): \code{"Blues"}, \code{"Greens"}, \code{"Greys"}, \code{"Oranges"}, and \code{"Purples"}
#' These palettes are taken from ColorBrew... |
library(parallelMap)
parallelStartMulticore(10L,level="mlr.tuneParams")
library(mlr)
load(file="~/projects/ndethcmml/01_data/hog_16_0_mosaic_1_8.RData")
tasks = makeClassifTask(id = "hog_16_0_mosaic_1_8", data = hog_16_0_mosaic_1_8, target = "class")
tasks<-removeConstantFeatures(tasks)
tasks<-normalizeFeatures(ta... | /ndetchmml-dir/MachineLearning-mlr-R/HoG/HoG_16_0_mosaic_1_8_svm.R | permissive | miroslavradojevic/advantra | R | false | false | 978 | r | library(parallelMap)
parallelStartMulticore(10L,level="mlr.tuneParams")
library(mlr)
load(file="~/projects/ndethcmml/01_data/hog_16_0_mosaic_1_8.RData")
tasks = makeClassifTask(id = "hog_16_0_mosaic_1_8", data = hog_16_0_mosaic_1_8, target = "class")
tasks<-removeConstantFeatures(tasks)
tasks<-normalizeFeatures(ta... |
library(leaflet)
library(shiny)
library(shinydashboard)
library(ggplot2)
library(tidyverse)
library(rgdal)
library(png)
library(htmltools)
state_multiyr_ncaa <- read.csv("state_multiyr_ncaa.csv")
multiyr_ncaa <- read.csv("multiyr_ncaa.csv")
dashboardPage(skin="black",
dashboardHeader(title="APR Dashboar... | /ui.r | no_license | Yamase31/college-athletics | R | false | false | 7,194 | r | library(leaflet)
library(shiny)
library(shinydashboard)
library(ggplot2)
library(tidyverse)
library(rgdal)
library(png)
library(htmltools)
state_multiyr_ncaa <- read.csv("state_multiyr_ncaa.csv")
multiyr_ncaa <- read.csv("multiyr_ncaa.csv")
dashboardPage(skin="black",
dashboardHeader(title="APR Dashboar... |
# Read in the output file from the python function and add titles to the columns to make it more readable
data <- read.csv("output.csv", header = T)
names(data) <- c("BayID", "DateTime", "Occupancy")
# Order the file by bay location key
data <- data[order(data$BayID),]
# There are 1428 unique location bays in the f... | /R_glm_script.R | no_license | crevoisiersabine/Urban-Data-Hack-London-Hackathon | R | false | false | 1,390 | r | # Read in the output file from the python function and add titles to the columns to make it more readable
data <- read.csv("output.csv", header = T)
names(data) <- c("BayID", "DateTime", "Occupancy")
# Order the file by bay location key
data <- data[order(data$BayID),]
# There are 1428 unique location bays in the f... |
vtype <-function(data, qvalue=0.75, miss_values=NULL){
if(class(data)!='data.frame') stop('data must be a data.frame')
if(!is.numeric(qvalue)) stop('qvalue must be a numeric value from [0.1, 1.0]')
if(qvalue<0.1) warning('qvalue below 0.1 are not allowed, it was set to 0.1!')
if... | /R/vtype.R | no_license | cran/vtype | R | false | false | 797 | r |
vtype <-function(data, qvalue=0.75, miss_values=NULL){
if(class(data)!='data.frame') stop('data must be a data.frame')
if(!is.numeric(qvalue)) stop('qvalue must be a numeric value from [0.1, 1.0]')
if(qvalue<0.1) warning('qvalue below 0.1 are not allowed, it was set to 0.1!')
if... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/delta_prior.R
\name{delta_regional_posterior}
\alias{delta_regional_posterior}
\title{Approximate delta posterior based on regional testing data}
\usage{
delta_regional_posterior(test_df, I_quant, control, imperfect)
}
\arguments{
\item{test_... | /man/delta_regional_posterior.Rd | permissive | alan-turing-institute/prevdebiasr | R | false | true | 889 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/delta_prior.R
\name{delta_regional_posterior}
\alias{delta_regional_posterior}
\title{Approximate delta posterior based on regional testing data}
\usage{
delta_regional_posterior(test_df, I_quant, control, imperfect)
}
\arguments{
\item{test_... |
source("global/text_functions.R")
source("global/log_to_file.R")
source("config_file.R")
source("global/TextProcessingBackend.R")
source("global/TextObjectWrapper.R")
source("global/rbind_huge_sparse_Matrix.R")
source("global/functions_used_in_scripts.R")
source("global/utils.R")
error<-try(expr = {
library(Matrix)
... | /iLCM/collections/scripts/Classification_Script.R | permissive | ChristianKahmann/data_science_image | R | false | false | 37,497 | r | source("global/text_functions.R")
source("global/log_to_file.R")
source("config_file.R")
source("global/TextProcessingBackend.R")
source("global/TextObjectWrapper.R")
source("global/rbind_huge_sparse_Matrix.R")
source("global/functions_used_in_scripts.R")
source("global/utils.R")
error<-try(expr = {
library(Matrix)
... |
#' Add Priors to Model
#'
#' Adds prior specifications to a list of models, which was produced by
#' function \code{\link{gen_var}} or \code{\link{gen_vec}}.
#'
#' @param object a list, usually, the output of a call to \code{\link{gen_var}} or \code{\link{gen_vec}}.
#' @param coef a named list of prior specifications f... | /bvartools/R/add_priors.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 25,248 | r | #' Add Priors to Model
#'
#' Adds prior specifications to a list of models, which was produced by
#' function \code{\link{gen_var}} or \code{\link{gen_vec}}.
#'
#' @param object a list, usually, the output of a call to \code{\link{gen_var}} or \code{\link{gen_vec}}.
#' @param coef a named list of prior specifications f... |
# concatenate climate data from Ecuador field sites ---------------------------------------
# Huaquillas:
# 2000-01-01 - 2012-12-31 Temperature, rainfall (h0012 - CSV)
# 2013-03-20 - 2014-05-16 Temperature, humidity, rainfall (h14r)
# 2014-05-27 - 2015-05-26 Temperature, humidity, rainfall (h13r)
# 2016-01-01 - 2017-12... | /Codes/concat_and_gapfill_climate_data_from_Ecuador.R | no_license | jms5151/EVP | R | false | false | 14,650 | r | # concatenate climate data from Ecuador field sites ---------------------------------------
# Huaquillas:
# 2000-01-01 - 2012-12-31 Temperature, rainfall (h0012 - CSV)
# 2013-03-20 - 2014-05-16 Temperature, humidity, rainfall (h14r)
# 2014-05-27 - 2015-05-26 Temperature, humidity, rainfall (h13r)
# 2016-01-01 - 2017-12... |
# Parameter:
# ooi as refseq id
# script by Jens Georg
# dependency: CopraRNA_available_organisms.txt
# R --slave -f ../copraRNA2_position_script_for_evo_precalculated_alignments_w_ooi.R --args NC_000913
args <- commandArgs(trailingOnly = TRUE)
ooi2 <- args[1]
peakFind<-function(interaction_site_distr, thres=0.4)... | /coprarna_aux/copraRNA2_position_script_for_evo_precalculated_alignments_w_ooi.R | permissive | JensGeorg/CopraRNA | R | false | false | 20,365 | r | # Parameter:
# ooi as refseq id
# script by Jens Georg
# dependency: CopraRNA_available_organisms.txt
# R --slave -f ../copraRNA2_position_script_for_evo_precalculated_alignments_w_ooi.R --args NC_000913
args <- commandArgs(trailingOnly = TRUE)
ooi2 <- args[1]
peakFind<-function(interaction_site_distr, thres=0.4)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stripGlmLR.R
\name{stripGlmLR}
\alias{stripGlmLR}
\title{Trim fat glm models.}
\usage{
stripGlmLR(cm)
}
\arguments{
\item{cm}{GLM model.}
}
\value{
Trimmed GLM model.
}
\description{
Trim fat glm models.
}
| /MutSpot_Rpackage/man/stripGlmLR.Rd | no_license | skandlab/MutSpot | R | false | true | 284 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stripGlmLR.R
\name{stripGlmLR}
\alias{stripGlmLR}
\title{Trim fat glm models.}
\usage{
stripGlmLR(cm)
}
\arguments{
\item{cm}{GLM model.}
}
\value{
Trimmed GLM model.
}
\description{
Trim fat glm models.
}
|
source("BML.R")
source("getCarLocations.R")
source("moveCars.R")
g = createGrid(c(1000, 999), .35)
plot(g)
plot.BMLGrid(g)# same
g.out = runBML(g, 300)
# Run this for different densities of cars
rho = seq(.2, .7, length = 9)
M = 500
N = 499
end = lapply(rho, function(d) {
g = createGrid(c(M, N), d)
... | /BML/run.R | no_license | duncantl/RBenchmarkCode | R | false | false | 507 | r | source("BML.R")
source("getCarLocations.R")
source("moveCars.R")
g = createGrid(c(1000, 999), .35)
plot(g)
plot.BMLGrid(g)# same
g.out = runBML(g, 300)
# Run this for different densities of cars
rho = seq(.2, .7, length = 9)
M = 500
N = 499
end = lapply(rho, function(d) {
g = createGrid(c(M, N), d)
... |
#Sovereign Debt and Capital Controls
#By: Robert A. McDowall
#Empirical investigation of capital controls and default risk
###############################################################################
#Libraries
library(reshape)
library(dplyr)
library(plm)
library(pglm)
library(stargazer)
library(multiwayvcov)
librar... | /mcdowall_reg_analysis.R | no_license | ramcdowall/sovereign_default_capital_controls_data | R | false | false | 19,845 | r | #Sovereign Debt and Capital Controls
#By: Robert A. McDowall
#Empirical investigation of capital controls and default risk
###############################################################################
#Libraries
library(reshape)
library(dplyr)
library(plm)
library(pglm)
library(stargazer)
library(multiwayvcov)
librar... |
\name{simNmix}
\alias{simNmix}
\encoding{UTF-8}
\title{
Simulate data for binomial and multinomial mixture models
}
\description{
This very general function generates single-season count data under variants of the binomial N-mixture model of Royle (2004) and of the multinomial N-mixture model of Royle et al (200... | /man/simNmix.Rd | no_license | guillaumesouchay/AHMbook | R | false | false | 8,680 | rd | \name{simNmix}
\alias{simNmix}
\encoding{UTF-8}
\title{
Simulate data for binomial and multinomial mixture models
}
\description{
This very general function generates single-season count data under variants of the binomial N-mixture model of Royle (2004) and of the multinomial N-mixture model of Royle et al (200... |
# developments and offsets secured at yr 1 with low intensity
initialise_user_simulation_params <- function(simulation_params, simulated_time_steps, offset_probability_list, development_probability_list, site_characterstics){
simulation_params$uncoupled_offset_selection_type = 'pre_determined'
simulation_par... | /cumberland_params_scenario_3.R | no_license | isaacpeterson/Offsets_Sydney_Cumberland | R | false | false | 1,380 | r | # developments and offsets secured at yr 1 with low intensity
initialise_user_simulation_params <- function(simulation_params, simulated_time_steps, offset_probability_list, development_probability_list, site_characterstics){
simulation_params$uncoupled_offset_selection_type = 'pre_determined'
simulation_par... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maars-package.R
\docType{package}
\name{maars-package}
\alias{maars}
\alias{maars-package}
\title{maars: Tidy Inference Under Misspecified Statistical Models in R}
\description{
To learn more about maars, start with the vignettes:
\code{brows... | /man/maars-package.Rd | permissive | shamindras/maars | R | false | true | 872 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maars-package.R
\docType{package}
\name{maars-package}
\alias{maars}
\alias{maars-package}
\title{maars: Tidy Inference Under Misspecified Statistical Models in R}
\description{
To learn more about maars, start with the vignettes:
\code{brows... |
# packages
library(readtext)
library(stringr)
library(dplyr)
library(tidyr)
library(cluster)
library(xtable)
library(plyr)
library(car)
library(lattice)
# Read#所有txt讀進來
#poker<-readtext("D:/_PROJECT_/Data_Red/*.txt")
poker<-readtext("~/Desktop/POKER/*.txt")
poker
poker$text[1]
#分局#切割
#help('strsplit')
#strsplit(poker... | /期末報告/poker_屬性mac.R | no_license | tallya851109/CSX_RProject | R | false | false | 8,300 | r | # packages
library(readtext)
library(stringr)
library(dplyr)
library(tidyr)
library(cluster)
library(xtable)
library(plyr)
library(car)
library(lattice)
# Read#所有txt讀進來
#poker<-readtext("D:/_PROJECT_/Data_Red/*.txt")
poker<-readtext("~/Desktop/POKER/*.txt")
poker
poker$text[1]
#分局#切割
#help('strsplit')
#strsplit(poker... |
\name{bsub_cmd}
\alias{bsub_cmd}
\title{
Send shell commands
}
\description{
Send shell commands
}
\usage{
bsub_cmd(cmd,
name = NULL,
hour = 1,
memory = 1,
core = 1,
temp_dir = bsub_opt$temp_dir,
output_dir = bsub_opt$output_dir,
dependency = NULL,
enforce = bsub_opt$enforce,
local =... | /man/bsub_cmd.Rd | permissive | pythseq/bsub | R | false | false | 1,439 | rd | \name{bsub_cmd}
\alias{bsub_cmd}
\title{
Send shell commands
}
\description{
Send shell commands
}
\usage{
bsub_cmd(cmd,
name = NULL,
hour = 1,
memory = 1,
core = 1,
temp_dir = bsub_opt$temp_dir,
output_dir = bsub_opt$output_dir,
dependency = NULL,
enforce = bsub_opt$enforce,
local =... |
# Measures of center
library(ggplot2)
library(readr)
library(dplyr)
library(gapminder)
# Load dataset
gapminder <- gapminder::gapminder
# Filter 2007 observations
gap2007 <- filter(gapminder, year ==2007)
# Using gap2007, calculate the mean and median
# life expectancy for each continent.
# Don't worry about nami... | /04_exploratory_data_analysis/01_03_eda.R | no_license | sssilvar/r_programming | R | false | false | 1,234 | r | # Measures of center
library(ggplot2)
library(readr)
library(dplyr)
library(gapminder)
# Load dataset
gapminder <- gapminder::gapminder
# Filter 2007 observations
gap2007 <- filter(gapminder, year ==2007)
# Using gap2007, calculate the mean and median
# life expectancy for each continent.
# Don't worry about nami... |
#' Create Seurat App
#'
#' @param preset_project A preloaded project to start the app with
#' @param appTitle A title of the App
#' @param futureMb amount of Mb allocated to future package
#' @param preset_project
#' @param feature_types
#' @param organism_type
#' @loom_path
#'
#' @return
#' @export
#'
#' @examples
min... | /R/minimal_app.R | permissive | mitsingh/seuratTools | R | false | false | 16,960 | r | #' Create Seurat App
#'
#' @param preset_project A preloaded project to start the app with
#' @param appTitle A title of the App
#' @param futureMb amount of Mb allocated to future package
#' @param preset_project
#' @param feature_types
#' @param organism_type
#' @loom_path
#'
#' @return
#' @export
#'
#' @examples
min... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AnalysisOfTwoSamples.R
\name{rawConfInterval2}
\alias{rawConfInterval2}
\title{Two sample confidence interval for mean1 - mean2}
\usage{
rawConfInterval2(m, v, n, alpha = 0.05)
}
\arguments{
\item{m}{Vector of 2 means}
\item{v}{Vector of 2 v... | /man/rawConfInterval2.Rd | no_license | DanielEverland/smartstats | R | false | true | 600 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AnalysisOfTwoSamples.R
\name{rawConfInterval2}
\alias{rawConfInterval2}
\title{Two sample confidence interval for mean1 - mean2}
\usage{
rawConfInterval2(m, v, n, alpha = 0.05)
}
\arguments{
\item{m}{Vector of 2 means}
\item{v}{Vector of 2 v... |
findPhiMAP <- function(LDAobj)
{
D <- LDAobj$D
K <- LDAobj$K
W <- LDAobj$W
n <- LDAobj$n_wd
beta <- LDAobj$beta
posterior_density <- function(x)
{
psi <- matrix(x,nrow=K,ncol=W-1)
psi <- cbind(0,psi)
phi <- matrix(0, nrow = K, ncol = W)
for (z in 1:K) {
phi[z... | /R/findMAP.R | no_license | Planeshifter/myLDA | R | false | false | 1,018 | r | findPhiMAP <- function(LDAobj)
{
D <- LDAobj$D
K <- LDAobj$K
W <- LDAobj$W
n <- LDAobj$n_wd
beta <- LDAobj$beta
posterior_density <- function(x)
{
psi <- matrix(x,nrow=K,ncol=W-1)
psi <- cbind(0,psi)
phi <- matrix(0, nrow = K, ncol = W)
for (z in 1:K) {
phi[z... |
/Classification/Logistic Regression/logistic_regression.R | no_license | fabioismerim/ML_A_Z | R | false | false | 2,603 | r | ||
test_df_out <- read_delim("D:/Pacific cod/DataAnalysis/PCod-Compare-repo/analyses/environmental/test_df_out.txt", "\t", escape_double = FALSE, trim_ws = TRUE)
colnames(test_df_out) <- c("lat", "temp_125", "temp_125.5", "depth")
ggplot(test_df_out, aes(x=lat,y=temp_125)) +
geom_point(aes(col=depth), size = 3)
| /analyses/R/plot_temp_by_depth.R | no_license | mfisher5/PCod-Compare-repo | R | false | false | 314 | r | test_df_out <- read_delim("D:/Pacific cod/DataAnalysis/PCod-Compare-repo/analyses/environmental/test_df_out.txt", "\t", escape_double = FALSE, trim_ws = TRUE)
colnames(test_df_out) <- c("lat", "temp_125", "temp_125.5", "depth")
ggplot(test_df_out, aes(x=lat,y=temp_125)) +
geom_point(aes(col=depth), size = 3)
|
library(lubridate)
library(tidyverse)
read_ubc <- function(ubc_path) {
ecg_ubc <- read_lines(ubc_path)
ecg_head <- head(ecg_ubc, 2)
ecg_list <- tail(ecg_ubc, -2) %>%
str_split(" ") %>%
map(~ .x[.x != ""])
ecg_tbl <- tibble(timestamp = mdy_hms(paste(map_chr(ecg_list, 1),
... | /src/read_ubc.R | no_license | FlukeAndFeather/ecg | R | false | false | 2,258 | r | library(lubridate)
library(tidyverse)
read_ubc <- function(ubc_path) {
ecg_ubc <- read_lines(ubc_path)
ecg_head <- head(ecg_ubc, 2)
ecg_list <- tail(ecg_ubc, -2) %>%
str_split(" ") %>%
map(~ .x[.x != ""])
ecg_tbl <- tibble(timestamp = mdy_hms(paste(map_chr(ecg_list, 1),
... |
volball<-function(r,d){ return(r^d*pi^(d/2)/gamma(d/2+1)) }
| /R/volball.R | no_license | cran/denpro | R | false | false | 61 | r | volball<-function(r,d){ return(r^d*pi^(d/2)/gamma(d/2+1)) }
|
#' 29 3D landmarks from the skulls of 19 carnivoran specimens after Procrustes analysis
#'
#' A matrix containing the 29 3D landmarks collected from the skulls of 21 "Vulpes vulpes"
#' specimens after carrying out a Procrustes analysis (PA).
#' Please take a look at the description in morpho/data-raw/V.R to understand
... | /R/V.R | permissive | dosreislab/mcmc3r | R | false | false | 600 | r | #' 29 3D landmarks from the skulls of 19 carnivoran specimens after Procrustes analysis
#'
#' A matrix containing the 29 3D landmarks collected from the skulls of 21 "Vulpes vulpes"
#' specimens after carrying out a Procrustes analysis (PA).
#' Please take a look at the description in morpho/data-raw/V.R to understand
... |
library(MASS) # for "rnegbin"
library(rmutil) # for "rinvgauss"
library(VGAM)
#
library(proxfvis)
library(foreach)
library(doParallel)
#
# Calculate CI's for phi, based on 6 methods:
# Chisquare distribution, based on phihat2
# Gamma distribution, also based on phihat2
# Bootstrap, based on phihat1.
# ... | /testBoots.R | no_license | OldMortality/overdispersion | R | false | false | 6,398 | r | library(MASS) # for "rnegbin"
library(rmutil) # for "rinvgauss"
library(VGAM)
#
library(proxfvis)
library(foreach)
library(doParallel)
#
# Calculate CI's for phi, based on 6 methods:
# Chisquare distribution, based on phihat2
# Gamma distribution, also based on phihat2
# Bootstrap, based on phihat1.
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_pvolfiles.R
\name{download_pvolfiles}
\alias{download_pvolfiles}
\title{Download polar volume (\code{pvol}) files from the NEXRAD archive}
\usage{
download_pvolfiles(
date_min,
date_max,
radar,
directory = ".",
overwrite = ... | /man/download_pvolfiles.Rd | permissive | barthoekstra/bioRad | R | false | true | 1,356 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_pvolfiles.R
\name{download_pvolfiles}
\alias{download_pvolfiles}
\title{Download polar volume (\code{pvol}) files from the NEXRAD archive}
\usage{
download_pvolfiles(
date_min,
date_max,
radar,
directory = ".",
overwrite = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MCMCtobit.R
\name{MCMCtobit}
\alias{MCMCtobit}
\title{Markov Chain Monte Carlo for Gaussian Linear Regression with a Censored
Dependent Variable}
\usage{
MCMCtobit(
formula,
data = NULL,
below = 0,
above = Inf,
burnin = 1000,
mcmc... | /man/MCMCtobit.Rd | no_license | FARotiroti/MCMCpack | R | false | true | 6,773 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MCMCtobit.R
\name{MCMCtobit}
\alias{MCMCtobit}
\title{Markov Chain Monte Carlo for Gaussian Linear Regression with a Censored
Dependent Variable}
\usage{
MCMCtobit(
formula,
data = NULL,
below = 0,
above = Inf,
burnin = 1000,
mcmc... |
setwd("C:/Users/Main/Documents/Work/SML/Term 2")
load("ECG.Rdata")
# while (dev.cur()>1) dev.off() # Delete all plots quickly
#install.packages("schoolmath")
#library ("schoolmath")
### Training set initialisation
data_sep <- rep(1,nrow(X.train)) # The index of the data matrix where the new ECG sta... | /ECG/data/ECG_basic_process.R | no_license | zfoong/StatML_group_f | R | false | false | 2,712 | r | setwd("C:/Users/Main/Documents/Work/SML/Term 2")
load("ECG.Rdata")
# while (dev.cur()>1) dev.off() # Delete all plots quickly
#install.packages("schoolmath")
#library ("schoolmath")
### Training set initialisation
data_sep <- rep(1,nrow(X.train)) # The index of the data matrix where the new ECG sta... |
setwd("/Users/home/Downloads/BTech DS/NeuroHacking/Neurohacking_data-0.0/kirby21/visit_1/113")
mridir<-"/Users/home/Downloads/BTech DS/NeuroHacking/Neurohacking_data-0.0/kirby21/visit_1/113"
T1 <- readNIfTI(file.path(mridir, "/SUBJ0001-01-MPRAGE.nii.gz"))
T1 <- readNIfTI("/Users/home/Downloads/BTech DS/NeuroHacking/Neu... | /RScripts/Neuro3.R | no_license | 259mit/NeuroConductor | R | false | false | 1,089 | r | setwd("/Users/home/Downloads/BTech DS/NeuroHacking/Neurohacking_data-0.0/kirby21/visit_1/113")
mridir<-"/Users/home/Downloads/BTech DS/NeuroHacking/Neurohacking_data-0.0/kirby21/visit_1/113"
T1 <- readNIfTI(file.path(mridir, "/SUBJ0001-01-MPRAGE.nii.gz"))
T1 <- readNIfTI("/Users/home/Downloads/BTech DS/NeuroHacking/Neu... |
##########################################################################################################################################
#### ####
### ... | /Data/RA/E-GEOD-54629_processing.R | no_license | hamelpatel/AD_microarray_gene_expression_classifier | R | false | false | 51,293 | r |
##########################################################################################################################################
#### ####
### ... |
#Karl Kremling
#Record the top marker in a set window
#December 12 2015
gff_file=read.table("/home/kak268/work_data/maize_genome/Zea_mays_transcript_only.AGPv3.29.gff3", header=F, skip=6, sep="\t")
colnames(gff_file)=c("Chr", "Annot_source", "Feature_type", "Start", "End", "blankcol1", "Strand", "blankcol2", "Feature_... | /Record_top_hit.R | no_license | btmonier/pub_expn_rare_alleles | R | false | false | 2,518 | r | #Karl Kremling
#Record the top marker in a set window
#December 12 2015
gff_file=read.table("/home/kak268/work_data/maize_genome/Zea_mays_transcript_only.AGPv3.29.gff3", header=F, skip=6, sep="\t")
colnames(gff_file)=c("Chr", "Annot_source", "Feature_type", "Start", "End", "blankcol1", "Strand", "blankcol2", "Feature_... |
# extract voice bits from file
library(tidyverse)
library(tuneR)
library(av)
library(soundgen)
load("data/lr_fit.rdata")
radio_file <- "data/bk_2021_01_02.wav"
segment_size = 5 #seconds
duration <- av_media_info(radio_file)$duration
segment_indices <- seq.int(1,duration,by= 5)
segment_types <- tibble(location = seg... | /extract_voice.R | no_license | apsteinmetz/sound | R | false | false | 953 | r | # extract voice bits from file
library(tidyverse)
library(tuneR)
library(av)
library(soundgen)
load("data/lr_fit.rdata")
radio_file <- "data/bk_2021_01_02.wav"
segment_size = 5 #seconds
duration <- av_media_info(radio_file)$duration
segment_indices <- seq.int(1,duration,by= 5)
segment_types <- tibble(location = seg... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coef.R
\name{coef.test_mediation}
\alias{coef.test_mediation}
\alias{coef.boot_test_mediation}
\alias{coef.fit_mediation}
\title{Coefficients in (robust) mediation analysis}
\usage{
\method{coef}{test_mediation}(object, parm = NULL, .... | /man/coef.test_mediation.Rd | no_license | cran/robmed | R | false | true | 2,186 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coef.R
\name{coef.test_mediation}
\alias{coef.test_mediation}
\alias{coef.boot_test_mediation}
\alias{coef.fit_mediation}
\title{Coefficients in (robust) mediation analysis}
\usage{
\method{coef}{test_mediation}(object, parm = NULL, .... |
#1.a
mtcars
attach(mtcars)
#1.b
plot(mtcars$wt, mtcars$mpg, main=" MPG vs WEIGHT ", col="Red")
#1.c
cor(mtcars$mpg, mtcars$wt)
| /Lab 5/5.1.R | no_license | kripanjuleerabha/Data_Analytics_Lab | R | false | false | 134 | r | #1.a
mtcars
attach(mtcars)
#1.b
plot(mtcars$wt, mtcars$mpg, main=" MPG vs WEIGHT ", col="Red")
#1.c
cor(mtcars$mpg, mtcars$wt)
|
# Investigating relationship between price and clarity of diamond
mydata <- read.csv(file.choose())
install.packages
library(ggplot2)
# Filter dataset to show < 2.5 carats
ggplot(data=mydata[mydata$carat<2.5,],
aes(x=carat, y=price, color=clarity)) +
geom_point(alpha=0.1) +
geom_smooth() | /Mispriced_Diamonds.R | no_license | jijithekitty/Mispriced-Diamonds | R | false | false | 302 | r | # Investigating relationship between price and clarity of diamond
mydata <- read.csv(file.choose())
install.packages
library(ggplot2)
# Filter dataset to show < 2.5 carats
ggplot(data=mydata[mydata$carat<2.5,],
aes(x=carat, y=price, color=clarity)) +
geom_point(alpha=0.1) +
geom_smooth() |
# Reyes Galindo Verónica
# 12 Febrero 2019
### This script draw a plot with eigenvects values using SNPRelate
## Load packages
library(gdsfmt)
library(SNPRelate)
library(ggplot2)
#Load data file (".vcf")
vcf.fn <- "../data/88ind_maxmiss0.9_maf0.05.recode.vcf"
## Reformat to ".gds" file
snpgdsVCF2GDS(vcf.fn, "../ou... | /1.-GENOMICS/bin/Rstudio/6.1_PCA.R | no_license | Duhyadi/Abies_religiosa_vs_ozone | R | false | false | 4,889 | r | # Reyes Galindo Verónica
# 12 Febrero 2019
### This script draw a plot with eigenvects values using SNPRelate
## Load packages
library(gdsfmt)
library(SNPRelate)
library(ggplot2)
#Load data file (".vcf")
vcf.fn <- "../data/88ind_maxmiss0.9_maf0.05.recode.vcf"
## Reformat to ".gds" file
snpgdsVCF2GDS(vcf.fn, "../ou... |
#' Reliability acceptance test planning app
#'
#' @description Description
#'
#' @importFrom shinythemes shinytheme
#' @importFrom shinyAce aceEditor
#' @importFrom shiny fixedPanel uiOutput HTML htmlOutput sidebarLayout renderUI titlePanel
#' @importFrom shiny brushedPoints brushOpts br hr checkboxInput div
#' @import... | /in-work/app_functions/acceptance_testing_mtbf.R | no_license | whaleshark16/teachingApps | R | false | false | 2,201 | r | #' Reliability acceptance test planning app
#'
#' @description Description
#'
#' @importFrom shinythemes shinytheme
#' @importFrom shinyAce aceEditor
#' @importFrom shiny fixedPanel uiOutput HTML htmlOutput sidebarLayout renderUI titlePanel
#' @importFrom shiny brushedPoints brushOpts br hr checkboxInput div
#' @import... |
library(testthat)
library(vietnamcode)
test_check("vietnamcode")
| /data/genthat_extracted_code/vietnamcode/tests/testthat.R | no_license | surayaaramli/typeRrh | R | false | false | 70 | r | library(testthat)
library(vietnamcode)
test_check("vietnamcode")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{randomFilterResult-class}
\alias{randomFilterResult-class}
\alias{randomFilterResult}
\title{Class "randomFilterResult"}
\description{
Container to store the result of applying a \code{filter} on a
\code{flo... | /man/randomFilterResult-class.Rd | no_license | RGLab/flowCore | R | false | true | 1,197 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{randomFilterResult-class}
\alias{randomFilterResult-class}
\alias{randomFilterResult}
\title{Class "randomFilterResult"}
\description{
Container to store the result of applying a \code{filter} on a
\code{flo... |
library(readr)
library(openxlsx)
library(dplyr)
data <- read_csv("/Users/Brian/Google\ Drive/denison/classes-current/da-401/mlb-game-predictions/data-collection/2015_2018mlb.csv")
data$singles <- ifelse(data$hit==1, 1, 0)
data$doubles <- ifelse(data$hit==2, 1, 0)
data$triples <- ifelse(data$hit==3, 1, 0)
data$hrs <- ... | /data-collection/mlb-merging.R | permissive | briancropp/mlb-game-predictions | R | false | false | 360 | r | library(readr)
library(openxlsx)
library(dplyr)
data <- read_csv("/Users/Brian/Google\ Drive/denison/classes-current/da-401/mlb-game-predictions/data-collection/2015_2018mlb.csv")
data$singles <- ifelse(data$hit==1, 1, 0)
data$doubles <- ifelse(data$hit==2, 1, 0)
data$triples <- ifelse(data$hit==3, 1, 0)
data$hrs <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exported_utils.R
\name{between}
\alias{between}
\title{Convenience function for range subsets}
\description{
\code{between} is a thin wrapper for the between function of \link[data.table:between]{data.table::between}.
It is equivalent to x >=... | /man/between.Rd | permissive | bnicenboim/eeguana | R | false | true | 881 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exported_utils.R
\name{between}
\alias{between}
\title{Convenience function for range subsets}
\description{
\code{between} is a thin wrapper for the between function of \link[data.table:between]{data.table::between}.
It is equivalent to x >=... |
### discreteRoot.R ---
##----------------------------------------------------------------------
## Author: Brice Ozenne
## Created: nov 22 2017 (13:39)
## Version:
## Last-Updated: okt 15 2018 (21:57)
## By: Brice Ozenne
## Update #: 244
##--------------------------------------------------------------... | /R/discreteRoot.R | no_license | bozenne/butils | R | false | false | 12,247 | r | ### discreteRoot.R ---
##----------------------------------------------------------------------
## Author: Brice Ozenne
## Created: nov 22 2017 (13:39)
## Version:
## Last-Updated: okt 15 2018 (21:57)
## By: Brice Ozenne
## Update #: 244
##--------------------------------------------------------------... |
### The result printed to the console should be copied to the shell, preceded by "cat " and followed by
## "| awk '/Hugo/&&c++>0 {next} 1' | awk '/version/&&c++>0 {next} 1' > outfile". It segregates files into whether they come from a sample
## with mutated KMT2D or wildtype (or any other gene, depending on the gene_m... | /R/cat_maf.R | no_license | acavalla/kmt2d | R | false | false | 1,328 | r | ### The result printed to the console should be copied to the shell, preceded by "cat " and followed by
## "| awk '/Hugo/&&c++>0 {next} 1' | awk '/version/&&c++>0 {next} 1' > outfile". It segregates files into whether they come from a sample
## with mutated KMT2D or wildtype (or any other gene, depending on the gene_m... |
# prepares data of the International Civic and Citizenship Education Study
# with plausible values for use in Mplusautomation package
# please merge student questionnaire files with PVs and import as sav file first
# https://www.iea.nl/data-tools/repository/iccs
library(dplyr)
create_imputed_list <- function(country ... | /create_imputed_list.R | no_license | daenemarque/iccs_tools | R | false | false | 1,607 | r | # prepares data of the International Civic and Citizenship Education Study
# with plausible values for use in Mplusautomation package
# please merge student questionnaire files with PVs and import as sav file first
# https://www.iea.nl/data-tools/repository/iccs
library(dplyr)
create_imputed_list <- function(country ... |
# Разбейте множество объектов из набора данных pluton в пакете «cluster»
# на 3 кластера методом центров тяжести (kmeans). Сравните качество
# разбиения в зависимости от максимального числа итераций алгоритма.
library(cluster)
data("pluton")
# for(i in 2:10)
# {
# cl <- kmeans(pluton, 3, iter.max = i) ... | /lab4/task1.R | permissive | rch9/R-labs-spbstu | R | false | false | 959 | r | # Разбейте множество объектов из набора данных pluton в пакете «cluster»
# на 3 кластера методом центров тяжести (kmeans). Сравните качество
# разбиения в зависимости от максимального числа итераций алгоритма.
library(cluster)
data("pluton")
# for(i in 2:10)
# {
# cl <- kmeans(pluton, 3, iter.max = i) ... |
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Emporium 2014"),
fluidRow(
column(3,
selectInput("select", label = h3("Primera Categoria", style ="color:#297418;"),
choices = c(vec_aux1[(3:30)... | /ui.R | no_license | SupermercadoEmporium/Septiembre | R | false | false | 2,233 | r | library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Emporium 2014"),
fluidRow(
column(3,
selectInput("select", label = h3("Primera Categoria", style ="color:#297418;"),
choices = c(vec_aux1[(3:30)... |
#' Seabass bioenergetic individual model
#'
#' Solves the bioenergetic balance for Seabass
#'
#' @param userpath the path where forcing are located
#' @param forcings a list containing the time series in the odd positions and realted forcings in the even positions. Forcings returned are: Water temperature [Celsius... | /R/Bass_ind_main.R | no_license | cran/RAC | R | false | false | 1,900 | r | #' Seabass bioenergetic individual model
#'
#' Solves the bioenergetic balance for Seabass
#'
#' @param userpath the path where forcing are located
#' @param forcings a list containing the time series in the odd positions and realted forcings in the even positions. Forcings returned are: Water temperature [Celsius... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-description.R
\docType{data}
\name{data-mildew}
\alias{data-mildew}
\alias{mildew}
\title{Mildew fungus}
\format{The format is:
table [1:2, 1:2, 1:2, 1:2, 1:2, 1:2] 0 0 0 0 3 0 1 0 0 1 ...
- attr(*, "dimnames")=List of 6
..$ la10: chr... | /man/data-mildew.Rd | no_license | DataSciBurgoon/gRbase | R | false | true | 1,060 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-description.R
\docType{data}
\name{data-mildew}
\alias{data-mildew}
\alias{mildew}
\title{Mildew fungus}
\format{The format is:
table [1:2, 1:2, 1:2, 1:2, 1:2, 1:2] 0 0 0 0 3 0 1 0 0 1 ...
- attr(*, "dimnames")=List of 6
..$ la10: chr... |
library(doParallel)
library(foreach)
# Calculate the number of cores
getDoParWorkers()
detectCores()
cl=makeCluster(detectCores()-1)
registerDoParallel(cl) ... | /parametric_models/jplusone/n1000/delta_0.75/dr.R | no_license | lw499/Stochastic_treatment_paper | R | false | false | 7,466 | r | library(doParallel)
library(foreach)
# Calculate the number of cores
getDoParWorkers()
detectCores()
cl=makeCluster(detectCores()-1)
registerDoParallel(cl) ... |
testlist <- list(type = -822018048L, z = 4.39253128856292e-312)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609894919-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 117 | r | testlist <- list(type = -822018048L, z = 4.39253128856292e-312)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
# load variables ----------------------------------------------------------
library(tidycensus)
library(tidyverse)
library(stringr)
# getting reference labels ------------------------------------------------
label <- load_variables(year = 2017, dataset = "acs5", cache = TRUE) %>%
mutate(keep = str_detect(name, "B020... | /old files/aa_county_pull.R | no_license | SunnyYShao/census2020_planning | R | false | false | 3,101 | r | # load variables ----------------------------------------------------------
library(tidycensus)
library(tidyverse)
library(stringr)
# getting reference labels ------------------------------------------------
label <- load_variables(year = 2017, dataset = "acs5", cache = TRUE) %>%
mutate(keep = str_detect(name, "B020... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 2.53097601684221e+148, 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/1615776379-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 2.53097601684221e+148, 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_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{SalmonColor}
\alias{SalmonColor}
\title{Pacific Salmon Color}
\format{A data frame with 35 observations on the following 2 variables.
\describe{ \item{species}{a factor with levels \code{kokanee} and
\code{sock... | /man/SalmonColor.Rd | no_license | mdlama/abd | R | false | true | 942 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{SalmonColor}
\alias{SalmonColor}
\title{Pacific Salmon Color}
\format{A data frame with 35 observations on the following 2 variables.
\describe{ \item{species}{a factor with levels \code{kokanee} and
\code{sock... |
library(shiny)
#library(UsingR)
library(gplots)
library(stats)
shinyServer(function(input, output) {
#output$contents <- renderTable({
# input$file1 will be NULL initially. After the user selects and uploads a
# file, it will be a data frame with 'name', 'size', 'type', and 'datapath'
# columns. The 'datapa... | /server.R | no_license | mihaelas/Developing-Data-Products | R | false | false | 2,536 | r | library(shiny)
#library(UsingR)
library(gplots)
library(stats)
shinyServer(function(input, output) {
#output$contents <- renderTable({
# input$file1 will be NULL initially. After the user selects and uploads a
# file, it will be a data frame with 'name', 'size', 'type', and 'datapath'
# columns. The 'datapa... |
#' @title HIV Anti-Retroviral Treatment Module
#'
#' @description Module function for simulating HIV therapy after diagnosis,
#' including adherence and non-adherence to ART.
#'
#' @inheritParams aging_het
#'
#' @export
#'
tx_het <- function(dat, at) {
# Variables --------------------------------------... | /R/mod.tx.R | no_license | EpiModel/EpiModelHIVhet | R | false | false | 3,371 | r |
#' @title HIV Anti-Retroviral Treatment Module
#'
#' @description Module function for simulating HIV therapy after diagnosis,
#' including adherence and non-adherence to ART.
#'
#' @inheritParams aging_het
#'
#' @export
#'
tx_het <- function(dat, at) {
# Variables --------------------------------------... |
#' Predict method for boosting objects
#'
#' Predicted values based on boosting object.
#'
#' @param object A boosting object estimated using the ic.glmnet function.
#' @param newdata An optional data to look for the explanatory variables used to predict. If omitted, the fitted values are used.
#' @param ... Arguments ... | /funcoes/HDeconometrics/predict.boosting.R | no_license | eujobarbo/PrevisaoIPCA | R | false | false | 1,272 | r | #' Predict method for boosting objects
#'
#' Predicted values based on boosting object.
#'
#' @param object A boosting object estimated using the ic.glmnet function.
#' @param newdata An optional data to look for the explanatory variables used to predict. If omitted, the fitted values are used.
#' @param ... Arguments ... |
library(deamer)
### Name: laplace
### Title: Laplace distribution
### Aliases: rlaplace dlaplace
### ** Examples
set.seed(1234)
n=1000
x <- rchisq(n,3)
b=0.4
e <- rlaplace(n, 0, b)
y <- x + e #noisy observations with laplace noise
| /data/genthat_extracted_code/deamer/examples/laplace.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 241 | r | library(deamer)
### Name: laplace
### Title: Laplace distribution
### Aliases: rlaplace dlaplace
### ** Examples
set.seed(1234)
n=1000
x <- rchisq(n,3)
b=0.4
e <- rlaplace(n, 0, b)
y <- x + e #noisy observations with laplace noise
|
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{resources}
\alias{resources}
\title{Gets the resources from an object}
\usage{
resources(object, ...)
}
\arguments{
\item{object}{an object with resources}
\item{...}{optional additional arguments to methods}
}
\description{
Gets the resources from an object
}... | /man/resources.Rd | no_license | cran/BerlinData | R | false | false | 322 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{resources}
\alias{resources}
\title{Gets the resources from an object}
\usage{
resources(object, ...)
}
\arguments{
\item{object}{an object with resources}
\item{...}{optional additional arguments to methods}
}
\description{
Gets the resources from an object
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.