content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
install.packages("shiny")
install.packages("ggplot2")
install.packages("rsconnect")
z <- sample(c(1, 2, 3), 50, replace = T)
x <- sapply(ifelse(z == 1, 5, ifelse(z == 2, 7, 2)), function(X){rnorm(mean = X, n = 1)})
y <- 2 * (x - 4) + rnorm(0, 0.3, n = length(x)) -> w
w <- (x - 4)^2 * 0.6 + rnorm(0, 0.1, n = length(x))... | /setup.R | no_license | isabelxiao/introshinyworkshop | R | false | false | 388 | r | install.packages("shiny")
install.packages("ggplot2")
install.packages("rsconnect")
z <- sample(c(1, 2, 3), 50, replace = T)
x <- sapply(ifelse(z == 1, 5, ifelse(z == 2, 7, 2)), function(X){rnorm(mean = X, n = 1)})
y <- 2 * (x - 4) + rnorm(0, 0.3, n = length(x)) -> w
w <- (x - 4)^2 * 0.6 + rnorm(0, 0.1, n = length(x))... |
#' Translating ICES file format to "vanilla" ASAP input file
#'
#' @param user.wd xxx
#' @param user.od xxx
#' @param model.id = model.id
#' model.id = ''
#' @param ices.id because sometimes there is no stock id at the beginning of the file names
#'
ICES2ASAP <- function(user.wd,user.od,model.id,ices.id){
cn <- rea... | /R/ICES2ASAP.R | no_license | kellijohnson-NOAA/saconvert | R | false | false | 7,462 | r | #' Translating ICES file format to "vanilla" ASAP input file
#'
#' @param user.wd xxx
#' @param user.od xxx
#' @param model.id = model.id
#' model.id = ''
#' @param ices.id because sometimes there is no stock id at the beginning of the file names
#'
ICES2ASAP <- function(user.wd,user.od,model.id,ices.id){
cn <- rea... |
#' Generate project infrastructure
#'
#' @description
#' Create the renv project infrastructure. This will:
#'
#' - Create a project library, `renv/library`.
#'
#' - Install renv into the project library.
#'
#' - Update the project `.Rprofile` to call `source("renv/activate.R")` so
#' that renv is automatically loade... | /R/scaffold.R | permissive | rstudio/renv | R | false | false | 2,221 | r | #' Generate project infrastructure
#'
#' @description
#' Create the renv project infrastructure. This will:
#'
#' - Create a project library, `renv/library`.
#'
#' - Install renv into the project library.
#'
#' - Update the project `.Rprofile` to call `source("renv/activate.R")` so
#' that renv is automatically loade... |
# Inner function:
replicator_inner_multicore <- function(x,input,expr,packages = c("psychonetrics","magrittr")){
lapply(packages, library, character.only=TRUE)
suppressWarnings(eval(expr))
}
replicator_inner_singlecore <- function(x,input,expr){
suppressWarnings(eval(expr))
}
# Function to replicate a call:
repl... | /R/g_simulations_replicator.R | no_license | SachaEpskamp/psychonetrics | R | false | false | 2,459 | r | # Inner function:
replicator_inner_multicore <- function(x,input,expr,packages = c("psychonetrics","magrittr")){
lapply(packages, library, character.only=TRUE)
suppressWarnings(eval(expr))
}
replicator_inner_singlecore <- function(x,input,expr){
suppressWarnings(eval(expr))
}
# Function to replicate a call:
repl... |
#' Add a link on a compositional plot
#'@param DIplot A list with ggplot object where the links are to be added,
#'and data frames with coordinates (obtained by setting plot(..., returnCoords = TRUE))
#'@param links A matrix containing either feature names (two column matrix)
#'or approximate coordinates (four column m... | /R/addLink.R | no_license | CenterForStatistics-UGent/combi | R | false | false | 8,691 | r | #' Add a link on a compositional plot
#'@param DIplot A list with ggplot object where the links are to be added,
#'and data frames with coordinates (obtained by setting plot(..., returnCoords = TRUE))
#'@param links A matrix containing either feature names (two column matrix)
#'or approximate coordinates (four column m... |
# Flag to disable hotpatching from old tidyselect versions
peek_vars <- tidyselect::peek_vars
# Alias required for help links in downstream packages
#' @aliases select_helpers
#' @importFrom tidyselect contains
#' @export
tidyselect::contains
#' @importFrom tidyselect ends_with
#' @export
tidyselect::ends_with
#' @i... | /R/reexport-tidyselect.R | permissive | davan690/dplyr | R | false | false | 3,376 | r |
# Flag to disable hotpatching from old tidyselect versions
peek_vars <- tidyselect::peek_vars
# Alias required for help links in downstream packages
#' @aliases select_helpers
#' @importFrom tidyselect contains
#' @export
tidyselect::contains
#' @importFrom tidyselect ends_with
#' @export
tidyselect::ends_with
#' @i... |
# read the txt file into R using the read.table function
raw = read.table("household_power_consumption.txt",colClasses = "character", header = T, sep = ";")
# select the data for the project
selectdate = raw[raw$Date=="1/2/2007" | raw$Date=="2/2/2007",]
# create the png file plot4
png(width = 480, height = 480, file = ... | /plot4.R | no_license | road-to-rio/ExData_Plotting1 | R | false | false | 1,434 | r | # read the txt file into R using the read.table function
raw = read.table("household_power_consumption.txt",colClasses = "character", header = T, sep = ";")
# select the data for the project
selectdate = raw[raw$Date=="1/2/2007" | raw$Date=="2/2/2007",]
# create the png file plot4
png(width = 480, height = 480, file = ... |
library(rdfp)
### Name: dfp_createAdRules
### Title: AdRuleService
### Aliases: dfp_createAdRules
### ** Examples
## Not run:
##D res <- dfp_createAdRules(request_data)
## End(Not run)
| /data/genthat_extracted_code/rdfp/examples/dfp_createAdRules.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 194 | r | library(rdfp)
### Name: dfp_createAdRules
### Title: AdRuleService
### Aliases: dfp_createAdRules
### ** Examples
## Not run:
##D res <- dfp_createAdRules(request_data)
## End(Not run)
|
require(plyr)
require(RMySQL)
require(pracma)
#This is a simple script demonstrating that R can be used to connect to a database.
con<-dbConnect(RMySQL::MySQL(), dbname = '', username = '', password = '')
dbListTables(con)
dc<-(df<-dbGetQuery(con, 'select * from wm_dcs'))
st<-(df<-dbGetQuery(con, 'select * from wm_st... | /RDatabaseConnectionExample.R | no_license | YWaller/Sample | R | false | false | 934 | r | require(plyr)
require(RMySQL)
require(pracma)
#This is a simple script demonstrating that R can be used to connect to a database.
con<-dbConnect(RMySQL::MySQL(), dbname = '', username = '', password = '')
dbListTables(con)
dc<-(df<-dbGetQuery(con, 'select * from wm_dcs'))
st<-(df<-dbGetQuery(con, 'select * from wm_st... |
require(raster)
require(rgdal)
require(gdalUtils)
require(rgeos)
require(spatialEco)
library(landsat)
# tile_name <- 'h23v14'
# H <- as.numeric(substring(tile_name,2,3))
# V <- as.numeric(substring(tile_name,5,6))
#
# setwd(paste('/projectnb/modislc/projects/landsat_sentinel/ARD/',tile_name,'/',sep=''))
#
# ## GENER... | /terrain_calc.R | no_license | emelaas/landsat_ARD | R | false | false | 1,444 | r | require(raster)
require(rgdal)
require(gdalUtils)
require(rgeos)
require(spatialEco)
library(landsat)
# tile_name <- 'h23v14'
# H <- as.numeric(substring(tile_name,2,3))
# V <- as.numeric(substring(tile_name,5,6))
#
# setwd(paste('/projectnb/modislc/projects/landsat_sentinel/ARD/',tile_name,'/',sep=''))
#
# ## GENER... |
\name{RTextureMetrics-package}
\alias{RTextureMetrics-package}
\alias{RTextureMetrics}
\docType{package}
\title{
Calculation of texture metrics for Grey Level Co-occurrence matrices
}
\description{
This package contains several functions for calculation of important texture metrics for Grey Level Co-occurrenc... | /man/RTextureMetrics-package.Rd | no_license | cran/RTextureMetrics | R | false | false | 1,596 | rd | \name{RTextureMetrics-package}
\alias{RTextureMetrics-package}
\alias{RTextureMetrics}
\docType{package}
\title{
Calculation of texture metrics for Grey Level Co-occurrence matrices
}
\description{
This package contains several functions for calculation of important texture metrics for Grey Level Co-occurrenc... |
require(data.table)
require("sfsmisc")
#Read "dengueCases2013_2014.csv"
dengue2013_2014 = fread("/media/suchira/0A9E051F0A9E051F/CSE 2012/Semester 07-08/FYP/Denguenator/Dengunator 2.0/Data/Dengue/dengueCases2013_2014.csv", data.table = F, header = T, col.names = c("id", "MOH_name", c(1:104), "Total"))
#Read "dengueCa... | /scripts/readData.R | no_license | SuchiraD/NewMathFramework | R | false | false | 10,961 | r | require(data.table)
require("sfsmisc")
#Read "dengueCases2013_2014.csv"
dengue2013_2014 = fread("/media/suchira/0A9E051F0A9E051F/CSE 2012/Semester 07-08/FYP/Denguenator/Dengunator 2.0/Data/Dengue/dengueCases2013_2014.csv", data.table = F, header = T, col.names = c("id", "MOH_name", c(1:104), "Total"))
#Read "dengueCa... |
" Andrew Cochran
ISTA 320 Final
5/4/2021 "
library(knitr)
library(tidyverse)
library(dplyr)
opts_chunk$set(echo = TRUE)
# Dataset Description:
"The data was retrieved from kaggle.com and it was data based on student performance from two schools. The link to the dataset is here https://www.kaggle.com/larsen09... | /final_viz.R | no_license | andrewcochran3/320_final_andrew_cochran | R | false | false | 2,988 | r | " Andrew Cochran
ISTA 320 Final
5/4/2021 "
library(knitr)
library(tidyverse)
library(dplyr)
opts_chunk$set(echo = TRUE)
# Dataset Description:
"The data was retrieved from kaggle.com and it was data based on student performance from two schools. The link to the dataset is here https://www.kaggle.com/larsen09... |
#IRR (Internal Rate of Return)
#The discount rate that makes NPV value zero.
#You can't use IRR function, if there is a cash outflow in the future.
#IRR can be used only when the all cash outflows take place at time 0.
#Please make sure that cash flow(cf) should take a form of vector
#cf=c(50,50,50)
#<Example>
#f.irr(u... | /irr.R | no_license | Claudio911015/FinanceInR1 | R | false | false | 599 | r | #IRR (Internal Rate of Return)
#The discount rate that makes NPV value zero.
#You can't use IRR function, if there is a cash outflow in the future.
#IRR can be used only when the all cash outflows take place at time 0.
#Please make sure that cash flow(cf) should take a form of vector
#cf=c(50,50,50)
#<Example>
#f.irr(u... |
#' Demographic data on study participants.
#'
#' Demographic data on study participants, such as population, age, and education.
#'
#' @format A data frame with 102 rows and 7 variables:
#' \describe{
#' \item{\code{ID}}{double. Participant ID.}
#' \item{\code{Population}}{character. Villager or Jenu Kuruba.}
#' ... | /R/mysore2015.R | no_license | grasshoppermouse/placekmysore2015publicdata | R | false | false | 11,496 | r |
#' Demographic data on study participants.
#'
#' Demographic data on study participants, such as population, age, and education.
#'
#' @format A data frame with 102 rows and 7 variables:
#' \describe{
#' \item{\code{ID}}{double. Participant ID.}
#' \item{\code{Population}}{character. Villager or Jenu Kuruba.}
#' ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/twoarmDesign.R
\name{twoarmDesign}
\alias{twoarmDesign}
\title{Find two-arm trial designs that use stochastic curtailment}
\usage{
twoarmDesign(
nmin.arm,
nmax.arm,
block.size,
minstop = NULL,
pc,
pt,
alpha,
power,
maxthetaF... | /man/twoarmDesign.Rd | no_license | martinlaw/curtailment | R | false | true | 3,003 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/twoarmDesign.R
\name{twoarmDesign}
\alias{twoarmDesign}
\title{Find two-arm trial designs that use stochastic curtailment}
\usage{
twoarmDesign(
nmin.arm,
nmax.arm,
block.size,
minstop = NULL,
pc,
pt,
alpha,
power,
maxthetaF... |
remove(list = ls())
options(stringsAsFactors = FALSE)
options(scipen = 999)
setwd("/Users/francisco06121988/Desktop/coursera_files/deep_learning_with_r/")
library(keras);library(tidyverse)
# Word-level one-hot encoding ---------------------------------------------
samples <- c("The cat sat on the mat.", "The dog ate ... | /deep_learning_with_r/chapter_6.R | no_license | ssh352/coursera_files | R | false | false | 18,840 | r | remove(list = ls())
options(stringsAsFactors = FALSE)
options(scipen = 999)
setwd("/Users/francisco06121988/Desktop/coursera_files/deep_learning_with_r/")
library(keras);library(tidyverse)
# Word-level one-hot encoding ---------------------------------------------
samples <- c("The cat sat on the mat.", "The dog ate ... |
library(ape)
testtree <- read.tree("95_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="95_0_unrooted.txt") | /codeml_files/newick_trees_processed/95_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 131 | r | library(ape)
testtree <- read.tree("95_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="95_0_unrooted.txt") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/YMD.internal.r
\name{YMD.internal}
\alias{YMD.internal}
\title{Add calendar year, month, and day of year columns}
\usage{
YMD.internal(TS)
}
\arguments{
\item{TS}{Output from \code{\link{create.ts}} function.}
}
\value{
Returns a ... | /man/YMD.internal.Rd | no_license | Kaye-HQ/FlowScreen | R | false | true | 482 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/YMD.internal.r
\name{YMD.internal}
\alias{YMD.internal}
\title{Add calendar year, month, and day of year columns}
\usage{
YMD.internal(TS)
}
\arguments{
\item{TS}{Output from \code{\link{create.ts}} function.}
}
\value{
Returns a ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/row-col-fns.R
\name{where}
\alias{where}
\title{Return array indices where expression is true}
\usage{
where(expr)
}
\arguments{
\item{expr}{An R expression}
}
\value{
A matrix of row and column indices of cells where \code{expr} is \code{TRU... | /man/where.Rd | no_license | md0u80c9/huxtable | R | false | true | 535 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/row-col-fns.R
\name{where}
\alias{where}
\title{Return array indices where expression is true}
\usage{
where(expr)
}
\arguments{
\item{expr}{An R expression}
}
\value{
A matrix of row and column indices of cells where \code{expr} is \code{TRU... |
ccc <- read.csv("train.csv", header = T)
cccc <- subset(ccc,select=c(2,3,5,6,7,8,10,12))
cccc$Age[is.na(cccc$Age)] <- mean(cccc$Age,na.rm=T)
is.factor(cccc$Sex)
is.factor(cccc$Embarked)
contrasts(cccc$Sex) # to see how the variables have been dummyfied by R and how to interpret them in a model. E.g., you can see that ... | /Logistic_regression.R | no_license | danula/stats | R | false | false | 1,339 | r | ccc <- read.csv("train.csv", header = T)
cccc <- subset(ccc,select=c(2,3,5,6,7,8,10,12))
cccc$Age[is.na(cccc$Age)] <- mean(cccc$Age,na.rm=T)
is.factor(cccc$Sex)
is.factor(cccc$Embarked)
contrasts(cccc$Sex) # to see how the variables have been dummyfied by R and how to interpret them in a model. E.g., you can see that ... |
library(DMwR)
rm(list=ls(all=TRUE))
getwd()
setwd("/Users/samyam/Documents/Samya/Insofe/insofe/CSE7302c_ProblemDescription_and_Dataset")
set.seed(4103)
######### EDA ##########
healthCaseData = read.csv("Dataset.csv", header = T, sep = ",")
dim(healthCaseData)
head(healthCaseData)
names(healthCaseData)
str(healthC... | /CSE7302c_ProblemDescription_and_Dataset/Solution_v6_NO_PCA_GLMNET.R | no_license | pranakum/insofe-1 | R | false | false | 11,210 | r | library(DMwR)
rm(list=ls(all=TRUE))
getwd()
setwd("/Users/samyam/Documents/Samya/Insofe/insofe/CSE7302c_ProblemDescription_and_Dataset")
set.seed(4103)
######### EDA ##########
healthCaseData = read.csv("Dataset.csv", header = T, sep = ",")
dim(healthCaseData)
head(healthCaseData)
names(healthCaseData)
str(healthC... |
# Trabajo práctico 1
Espacio_verde <- read.csv ("Data/espacio-verde-publico.csv", stringsAsFactors = TRUE)
#Fuente: Buenos Aires Data
library(tidyverse)
library(readr)
summary(Espacio_verde)
class (Espacio_verde)
mean(Espacio_verde$SUP_TOTAL)
# El promedio de superficie de los espacios públicos de la ciudad es de ... | /TP1.R | no_license | fsiverino/TPIAU | R | false | false | 5,855 | r | # Trabajo práctico 1
Espacio_verde <- read.csv ("Data/espacio-verde-publico.csv", stringsAsFactors = TRUE)
#Fuente: Buenos Aires Data
library(tidyverse)
library(readr)
summary(Espacio_verde)
class (Espacio_verde)
mean(Espacio_verde$SUP_TOTAL)
# El promedio de superficie de los espacios públicos de la ciudad es de ... |
# Jo COLINA & Paul GOUJON
# UTC - SY19 - TP4
# Phoneme data analysis
# dataloading file
# clear workspace
rm(list=ls())
# get data and cleaned data
raw_data = read.csv("./data/phoneme.data", header=T)
X = raw_data[,2:257]
SX = scale(X)
z = raw_data[,258:259]
| /phoneme/data_loading.R | permissive | goujonpa/SY19_TP4 | R | false | false | 263 | r | # Jo COLINA & Paul GOUJON
# UTC - SY19 - TP4
# Phoneme data analysis
# dataloading file
# clear workspace
rm(list=ls())
# get data and cleaned data
raw_data = read.csv("./data/phoneme.data", header=T)
X = raw_data[,2:257]
SX = scale(X)
z = raw_data[,258:259]
|
library(foreign)
require(plyr)
require(AER)
source('datanormalizer.R')
source('../panelfunc.R')
load_sa_data_file_list <- function(){
s = data.frame(year=NULL,filename=NULL,type=NULL,ohs_filename=NULL,ohs_type=NULL)
s = rbind(s,data.frame(year=1990,
filename="1990/SPSS/IES 1990 hhroster_... | /consumption/sa/analyze_sa.r | no_license | anuragr81/research | R | false | false | 23,590 | r | library(foreign)
require(plyr)
require(AER)
source('datanormalizer.R')
source('../panelfunc.R')
load_sa_data_file_list <- function(){
s = data.frame(year=NULL,filename=NULL,type=NULL,ohs_filename=NULL,ohs_type=NULL)
s = rbind(s,data.frame(year=1990,
filename="1990/SPSS/IES 1990 hhroster_... |
library(dplyr)
library(glmnet)
library(ggplot2)
library(glmnet)
library(MASS)
library(class)
# Cost Matrix
costFalsePositive <- 5
costFalseNegative <- 1
costTrueNegative <- 0
costTruePositive <- 0
germanCreditNumeric.df <- read.csv("germanNumeric.csv", header = T) # read the numeric data
germanCredit.df <- read.csv("... | /german/germanCredit.R | no_license | elijahverdoorn/MATH384 | R | false | false | 13,041 | r | library(dplyr)
library(glmnet)
library(ggplot2)
library(glmnet)
library(MASS)
library(class)
# Cost Matrix
costFalsePositive <- 5
costFalseNegative <- 1
costTrueNegative <- 0
costTruePositive <- 0
germanCreditNumeric.df <- read.csv("germanNumeric.csv", header = T) # read the numeric data
germanCredit.df <- read.csv("... |
## test code for plots
library(tidyverse)
library(knitr)
library(ggplot2)
library(dplyr)
mungbeans_df<-read.csv("mungbean.csv")
length_df<-mungbeans_df %>%
select(temp, duration, length) %>%
pivot_wider(names_from=temp, values_from=length)
scaled_df <- length_df %>% mutate_at(c("Ambient", "25", "30"), ~(scale(.... | /plots.R | no_license | japandan/mungbean | R | false | false | 1,080 | r | ## test code for plots
library(tidyverse)
library(knitr)
library(ggplot2)
library(dplyr)
mungbeans_df<-read.csv("mungbean.csv")
length_df<-mungbeans_df %>%
select(temp, duration, length) %>%
pivot_wider(names_from=temp, values_from=length)
scaled_df <- length_df %>% mutate_at(c("Ambient", "25", "30"), ~(scale(.... |
.libPaths(new = ".lib")
options(repos = c(CRAN = "http://cran.csie.ntu.edu.tw"), Ncpus = 4L)
| /.Rprofile | no_license | wush978/KaggleQuora | R | false | false | 94 | rprofile | .libPaths(new = ".lib")
options(repos = c(CRAN = "http://cran.csie.ntu.edu.tw"), Ncpus = 4L)
|
library(quantmod)
shinyServer(function(input, output) {
output$plot1 <- renderPlot({
getSymbols("IBM", from=Sys.Date()-input$n, to=Sys.Date(), auto.assign=TRUE)
IBM.returns <- diff(log(IBM$IBM.Adjusted))
chartSeries(IBM.returns , theme="white", type="candlesticks",
TA=c(addVo(),addBBands())... | /server.r | no_license | rcmantovani/IBM_returns | R | false | false | 332 | r | library(quantmod)
shinyServer(function(input, output) {
output$plot1 <- renderPlot({
getSymbols("IBM", from=Sys.Date()-input$n, to=Sys.Date(), auto.assign=TRUE)
IBM.returns <- diff(log(IBM$IBM.Adjusted))
chartSeries(IBM.returns , theme="white", type="candlesticks",
TA=c(addVo(),addBBands())... |
context("Events related tests")
context("Creating hypnograms")
# test_that("Plotting a hypnogram", {
# events <- read_events_noxturnal("data/noxturnal_events_example_unicode.csv")
# hypnogram <- hypnogram(events)
# hypnogram <- plot_hypnogram(events)
# expect_equal(class(hypnogram)[1], "gg")
# expect_equal(... | /tests/testthat/test_events.R | permissive | boupetch/rsleep | R | false | false | 3,351 | r | context("Events related tests")
context("Creating hypnograms")
# test_that("Plotting a hypnogram", {
# events <- read_events_noxturnal("data/noxturnal_events_example_unicode.csv")
# hypnogram <- hypnogram(events)
# hypnogram <- plot_hypnogram(events)
# expect_equal(class(hypnogram)[1], "gg")
# expect_equal(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{okay_series_input}
\alias{okay_series_input}
\title{Checks series ID inputs.}
\usage{
okay_series_input(inputs, valid_inputs)
}
\arguments{
\item{inputs}{Character vector. List of inputs to series ID string.}
\item{valid_inputs... | /man/okay_series_input.Rd | no_license | davidsovich/blsr | R | false | true | 534 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{okay_series_input}
\alias{okay_series_input}
\title{Checks series ID inputs.}
\usage{
okay_series_input(inputs, valid_inputs)
}
\arguments{
\item{inputs}{Character vector. List of inputs to series ID string.}
\item{valid_inputs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidytools.R
\name{AutoOrderColumns}
\alias{AutoOrderColumns}
\title{Automatically order the columns by correspondence analysis of the table}
\usage{
AutoOrderColumns(x)
}
\arguments{
\item{x}{Input matrix}
}
\description{
Columns of the table... | /man/AutoOrderColumns.Rd | no_license | Displayr/flipTables | R | false | true | 436 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidytools.R
\name{AutoOrderColumns}
\alias{AutoOrderColumns}
\title{Automatically order the columns by correspondence analysis of the table}
\usage{
AutoOrderColumns(x)
}
\arguments{
\item{x}{Input matrix}
}
\description{
Columns of the table... |
#
# EDIT THESE DATA
#
json_file <- "C:\\Your\\File\\Path\\data--doaj.json"
fileToSave <- "C:\\Your\\File\\Path\\all-journals-doaj.csv"
#
# EXECUTABLE CODE STARTS HERE
#
json_data <- rjson::fromJSON(file = json_file)
doaj_publishers <- list()
for (i in 1:length(json_data)) {
doaj_publishers[i] <- as.matrix(json_da... | /Script/Analysis_01_DOAJ.R | no_license | andreaspacher/academic-publishers | R | false | false | 516 | r | #
# EDIT THESE DATA
#
json_file <- "C:\\Your\\File\\Path\\data--doaj.json"
fileToSave <- "C:\\Your\\File\\Path\\all-journals-doaj.csv"
#
# EXECUTABLE CODE STARTS HERE
#
json_data <- rjson::fromJSON(file = json_file)
doaj_publishers <- list()
for (i in 1:length(json_data)) {
doaj_publishers[i] <- as.matrix(json_da... |
#' Translate census geography to CMHC region parameters suitable for API call
#' @param GeoUID census region id
#' @keywords internal
#' @noRd
#' @return a list with geographies suitable for API calls
cmhc_region_params_from_census <- function(GeoUID){
cmhc_geography_type_list=list(C=1,PR=2,CMA=3, CSD=4, CT=7, ZONE=5... | /R/cmhc_geography.R | permissive | mountainMath/cmhc | R | false | false | 9,149 | r | #' Translate census geography to CMHC region parameters suitable for API call
#' @param GeoUID census region id
#' @keywords internal
#' @noRd
#' @return a list with geographies suitable for API calls
cmhc_region_params_from_census <- function(GeoUID){
cmhc_geography_type_list=list(C=1,PR=2,CMA=3, CSD=4, CT=7, ZONE=5... |
help(apply)
#Factor
f ← factor(c(“Python”, “Python”,”Erlang”,”Java”,”Python”,”Java”))
f
levels(f)
v←1:4
#help(“LETTERS”)
names(v)← LETTERS[1:4]
class(v)
ff← factor(LETTERS[1:4], level= rev(LETTERS[1:4]))
ff
class(ff)
as.numeric(ff)
# Data frame
help(“data.frame”)
df← data.frame(a=1:4,b=LETTERS[1:4])
df
df[1,2]
df... | /clase.R | no_license | RommellFlores/Curso-R | R | false | false | 1,013 | r | help(apply)
#Factor
f ← factor(c(“Python”, “Python”,”Erlang”,”Java”,”Python”,”Java”))
f
levels(f)
v←1:4
#help(“LETTERS”)
names(v)← LETTERS[1:4]
class(v)
ff← factor(LETTERS[1:4], level= rev(LETTERS[1:4]))
ff
class(ff)
as.numeric(ff)
# Data frame
help(“data.frame”)
df← data.frame(a=1:4,b=LETTERS[1:4])
df
df[1,2]
df... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc_helper.R
\name{clean_rmd_dir}
\alias{clean_rmd_dir}
\title{Clean RMarkdown Directory}
\usage{
clean_rmd_dir(ps_rmd_dir)
}
\arguments{
\item{ps_rmd_dir}{RMarkdown source directory}
}
\description{
RMarkdown docments are often placed in se... | /man/clean_rmd_dir.Rd | permissive | charlotte-ngs/rmdhelp | R | false | true | 674 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc_helper.R
\name{clean_rmd_dir}
\alias{clean_rmd_dir}
\title{Clean RMarkdown Directory}
\usage{
clean_rmd_dir(ps_rmd_dir)
}
\arguments{
\item{ps_rmd_dir}{RMarkdown source directory}
}
\description{
RMarkdown docments are often placed in se... |
runApp() # run Shiny app - from Shiny dir or set path as parameter
| /R/Scripts/Shiny/schiny_scripts.R | no_license | tdworowy/Data_science_notes | R | false | false | 71 | r | runApp() # run Shiny app - from Shiny dir or set path as parameter
|
setwd("C:\\Users\\Lohit\\OneDrive\\Documents\\Data Sciences\\Cousera\\ExData_Plotting1")
gc()
master_data_set <- read.table("C:\\Users\\Lohit\\Downloads\\household_power_consumption.txt", stringsAsFactors = FALSE, na.strings = "?",
header = TRUE, sep = ";", colClasses = c("character"... | /plot1.R | no_license | Lohit-Vankina/ExData_Plotting1 | R | false | false | 950 | r | setwd("C:\\Users\\Lohit\\OneDrive\\Documents\\Data Sciences\\Cousera\\ExData_Plotting1")
gc()
master_data_set <- read.table("C:\\Users\\Lohit\\Downloads\\household_power_consumption.txt", stringsAsFactors = FALSE, na.strings = "?",
header = TRUE, sep = ";", colClasses = c("character"... |
library(heuristica)
library(caret)
library(randomForest)
library(e1071)
library(RWeka)
library(C50)
library(class)
#### utilities
## factored fields prediction
prediction <- function (algo, modelDS, testDf, col) {
predictField <- predict(modelDS,testDf[,-col])
table(predicted = predictField, actual = testDf[,col]... | /DataModeling.R | no_license | BhavanaMeena/AdTracking-and-Fraud-Detection | R | false | false | 2,166 | r | library(heuristica)
library(caret)
library(randomForest)
library(e1071)
library(RWeka)
library(C50)
library(class)
#### utilities
## factored fields prediction
prediction <- function (algo, modelDS, testDf, col) {
predictField <- predict(modelDS,testDf[,-col])
table(predicted = predictField, actual = testDf[,col]... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/baixar_noticias_g1.R
\name{baixar_noticias_g1}
\alias{baixar_noticias_g1}
\title{Baixar notícias do g1 a partir das urls obtidas pela função baixar_url_g1}
\usage{
baixar_noticias_g1(urls, diretorio = ".")
}
\arguments{
\item{urls}{Vetor de ... | /man/baixar_noticias_g1.Rd | permissive | jjesusfilho/g1 | R | false | true | 553 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/baixar_noticias_g1.R
\name{baixar_noticias_g1}
\alias{baixar_noticias_g1}
\title{Baixar notícias do g1 a partir das urls obtidas pela função baixar_url_g1}
\usage{
baixar_noticias_g1(urls, diretorio = ".")
}
\arguments{
\item{urls}{Vetor de ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mvpa_result.R
\name{classification_result}
\alias{classification_result}
\alias{binary_classification_result}
\alias{multiway_classification_result}
\alias{regression_result}
\title{create a \code{classification_result} instance}
\usage{
clas... | /man/classification_result.Rd | no_license | DiegoAngls/rMVPA | R | false | true | 1,029 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mvpa_result.R
\name{classification_result}
\alias{classification_result}
\alias{binary_classification_result}
\alias{multiway_classification_result}
\alias{regression_result}
\title{create a \code{classification_result} instance}
\usage{
clas... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bio5.R
\name{bio5}
\alias{bio5}
\title{bio5: Calculate maximum temperature of the year.}
\usage{
bio5(temps, tme, percentile = 0.99)
}
\arguments{
\item{temps}{a vector of temperatures, normally for one year (see details).}
\item{tme}{a \cod... | /man/bio5.Rd | no_license | everydayduffy/climvars | R | false | true | 1,143 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bio5.R
\name{bio5}
\alias{bio5}
\title{bio5: Calculate maximum temperature of the year.}
\usage{
bio5(temps, tme, percentile = 0.99)
}
\arguments{
\item{temps}{a vector of temperatures, normally for one year (see details).}
\item{tme}{a \cod... |
#Clear the environment
rm(list=ls(all=TRUE))
setwd("D:/INSOFE/CSE7305c/CUTe 3")
#Read the input data that is given
company_data<-read.csv("train.csv",header = T)
#Read the test data that is given
test_data<-read.csv("test.csv",header=T)
#Use head() and tail() functions to get a feel of the data
... | /Project6.R | no_license | iamSarang/Projects | R | false | false | 4,887 | r | #Clear the environment
rm(list=ls(all=TRUE))
setwd("D:/INSOFE/CSE7305c/CUTe 3")
#Read the input data that is given
company_data<-read.csv("train.csv",header = T)
#Read the test data that is given
test_data<-read.csv("test.csv",header=T)
#Use head() and tail() functions to get a feel of the data
... |
\name{rp.logistic}
\alias{rp.logistic}
\title{Interactive display of logistic regression with a single covariate}
\description{
The function \code{rp.logistic} plots a binary or binomial response variable
against a single covariates and creates a panel which controls the position of
a logistic curve an... | /man/rp.logistic.Rd | no_license | cran/rpanel | R | false | false | 2,595 | rd | \name{rp.logistic}
\alias{rp.logistic}
\title{Interactive display of logistic regression with a single covariate}
\description{
The function \code{rp.logistic} plots a binary or binomial response variable
against a single covariates and creates a panel which controls the position of
a logistic curve an... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 26093
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 26093
c
c Input Parameter (command line, file):
c input filename QBFLIB/Diptarama-Jordan-Shinohara/Generalized-Tic-Tac-Toe/gtt... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Diptarama-Jordan-Shinohara/Generalized-Tic-Tac-Toe/gttt_2_1_00101120_4x4_w/gttt_2_1_00101120_4x4_w.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 717 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 26093
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 26093
c
c Input Parameter (command line, file):
c input filename QBFLIB/Diptarama-Jordan-Shinohara/Generalized-Tic-Tac-Toe/gtt... |
# ------------------- authorization subroutines --------------------------
# Check query execution
#
# query_out output after a query
#
check_authorization <- function(query_out){
if(rawToChar(query_out$content) == "Unauthorized"){
message("Please reset API authorization key")
return(FALSE)
} else return(T... | /cmap4r/R/misc.R | no_license | simonscmap/cmap4r | R | false | false | 10,613 | r | # ------------------- authorization subroutines --------------------------
# Check query execution
#
# query_out output after a query
#
check_authorization <- function(query_out){
if(rawToChar(query_out$content) == "Unauthorized"){
message("Please reset API authorization key")
return(FALSE)
} else return(T... |
#Store locale settings
old_locale<-Sys.getlocale(category = "LC_TIME")
#Change locale to english
Sys.setlocale("LC_TIME","English")
#read data from file
ds<-read.table("household_power_consumption.txt",sep = ";", header = TRUE,na.strings = "?",stringsAsFactors = FALSE)
#Conver datetime operations
dates<-ds$Date
time... | /plot2.R | no_license | lopezgaa/ExData_Plotting1 | R | false | false | 899 | r | #Store locale settings
old_locale<-Sys.getlocale(category = "LC_TIME")
#Change locale to english
Sys.setlocale("LC_TIME","English")
#read data from file
ds<-read.table("household_power_consumption.txt",sep = ";", header = TRUE,na.strings = "?",stringsAsFactors = FALSE)
#Conver datetime operations
dates<-ds$Date
time... |
# running analysis on wearable computer data
library(dplyr)
# set working directory
setwd("~/Desktop/getting_and_cleaning_data/")
curr <- getwd()
print(curr)
# get specific values from the given features on all axis
# item:3 getting only mean and standard deviation for each measurement
getDataFeatures <- function(li... | /run_analysis.R | no_license | mens-rea/cleaning_data_set_project | R | false | false | 3,907 | r | # running analysis on wearable computer data
library(dplyr)
# set working directory
setwd("~/Desktop/getting_and_cleaning_data/")
curr <- getwd()
print(curr)
# get specific values from the given features on all axis
# item:3 getting only mean and standard deviation for each measurement
getDataFeatures <- function(li... |
library(grid)
library(methods)
library(Rcpp)
dyn.load(paste("tinyspliner", .Platform$dynlib.ext, sep=""))
source("tinyspline.R")
cacheMetaData(1)
points <- c(
0.3, 0.1, 0,
0.1, 0.4, 0,
0.3, 0.6, 0,
0.6, 0.5, 0,
0.9, 0.9, 0)
spline <- BSpline_interpolateCubicNatural(points, 3)
dim <- BSpline_dimension_get(spli... | /examples/r/interpolation.R | permissive | msteinbeck/tinyspline | R | false | false | 599 | r | library(grid)
library(methods)
library(Rcpp)
dyn.load(paste("tinyspliner", .Platform$dynlib.ext, sep=""))
source("tinyspline.R")
cacheMetaData(1)
points <- c(
0.3, 0.1, 0,
0.1, 0.4, 0,
0.3, 0.6, 0,
0.6, 0.5, 0,
0.9, 0.9, 0)
spline <- BSpline_interpolateCubicNatural(points, 3)
dim <- BSpline_dimension_get(spli... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_genome.r
\name{bound_intervals}
\alias{bound_intervals}
\title{Select intervals bounded by a genome.}
\usage{
bound_intervals(x, genome, trim = FALSE)
}
\arguments{
\item{x}{\link{ivl_df}}
\item{genome}{\link{genome_df}}
\item{trim}{ad... | /fuzzedpackages/valr/man/bound_intervals.Rd | no_license | akhikolla/testpackages | R | false | true | 1,031 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_genome.r
\name{bound_intervals}
\alias{bound_intervals}
\title{Select intervals bounded by a genome.}
\usage{
bound_intervals(x, genome, trim = FALSE)
}
\arguments{
\item{x}{\link{ivl_df}}
\item{genome}{\link{genome_df}}
\item{trim}{ad... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config merge_config
NULL
#' AWS Directory Service
#'
#' @description
#' Directory Service
#'
#' Directory Service is a web service that makes it easy for you to setup
#' and run directories in the A... | /paws/R/directoryservice_service.R | permissive | paws-r/paws | R | false | false | 16,326 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config merge_config
NULL
#' AWS Directory Service
#'
#' @description
#' Directory Service
#'
#' Directory Service is a web service that makes it easy for you to setup
#' and run directories in the A... |
#' @importFrom stats density dnorm lm na.omit quantile
#' @importFrom utils download.file read.csv write.csv
#' @importFrom dplyr %>% coalesce filter first full_join group_by group_map
#' group_modify left_join mutate rename select summarize ungroup
#' @importFrom memoise has_cache
#' @importFrom rstan sampling
#' @i... | /R/DataDocumentation.R | permissive | TotalVerb/STAT440Project | R | false | false | 1,953 | r | #' @importFrom stats density dnorm lm na.omit quantile
#' @importFrom utils download.file read.csv write.csv
#' @importFrom dplyr %>% coalesce filter first full_join group_by group_map
#' group_modify left_join mutate rename select summarize ungroup
#' @importFrom memoise has_cache
#' @importFrom rstan sampling
#' @i... |
#######################################
# Movement function #
# cells surrounded by lots of biomass #
# get colonized #
# #
# INPUTS: #
# x1... LIST[[i]]$SAV or LIST[[i]]$FP #
# #... | /FUNCTIONS29/MOVE29.R | no_license | mccannecology/model | R | false | false | 3,256 | r | #######################################
# Movement function #
# cells surrounded by lots of biomass #
# get colonized #
# #
# INPUTS: #
# x1... LIST[[i]]$SAV or LIST[[i]]$FP #
# #... |
library(rankdist)
context("RankHash")
rank = sample(1:52,52)
rankmat = replicate(10,sample(1:52,52), simplify = "array")
test_that("Rank Hash",{
expect_equal(HashtoRank(RanktoHash(rank)),rank)
expect_equal(HashtoRank(RanktoHash(HashtoRank(RanktoHash(rank)))),rank)
expect_equal(HashtoRank(RanktoHa... | /rankdist/tests/testthat/test_rankhash.R | no_license | akhikolla/InformationHouse | R | false | false | 428 | r | library(rankdist)
context("RankHash")
rank = sample(1:52,52)
rankmat = replicate(10,sample(1:52,52), simplify = "array")
test_that("Rank Hash",{
expect_equal(HashtoRank(RanktoHash(rank)),rank)
expect_equal(HashtoRank(RanktoHash(HashtoRank(RanktoHash(rank)))),rank)
expect_equal(HashtoRank(RanktoHa... |
### SET ROOT DIRECTORY
### SET ROOT DIRECTORY
library(foreach)
library(doParallel)
library(dplyr)
library(survival)
load("R_out_C6/generate_model_agetime_male.RData")
load("R_out_C6/simulation_functions_agetime_models_male.RData")
load("R_out_C6/generate_risk_range_for_each_age_agetime_male.RData")
load("R_out_C6/st... | /Chapter 6/code/3 run simulation/p6 runsim_male_RR065_discadj_no1pres.R | no_license | alexpate30/AlexPate-PhD | R | false | false | 5,093 | r | ### SET ROOT DIRECTORY
### SET ROOT DIRECTORY
library(foreach)
library(doParallel)
library(dplyr)
library(survival)
load("R_out_C6/generate_model_agetime_male.RData")
load("R_out_C6/simulation_functions_agetime_models_male.RData")
load("R_out_C6/generate_risk_range_for_each_age_agetime_male.RData")
load("R_out_C6/st... |
#################################################################################
##
## R package rmgarch by Alexios Galanos Copyright (C) 2008-2022.
## This file is part of the R package rmgarch.
##
## The R package rmgarch is free software: you can redistribute it and/or modify
## it under the terms of the GN... | /R/copula-likelihoods.R | no_license | cran/rmgarch | R | false | false | 30,020 | r | #################################################################################
##
## R package rmgarch by Alexios Galanos Copyright (C) 2008-2022.
## This file is part of the R package rmgarch.
##
## The R package rmgarch is free software: you can redistribute it and/or modify
## it under the terms of the GN... |
# FizzBuzz in R
div_3_num <- 3
div_5_num <- 5
div_3_word <- "Fizz"
div_5_word <- "Buzz"
start_point <- 1
end_point <- 100
for (i in start_point:end_point) {
answer <- ""
answer <- paste(answer, ifelse(i %% div_3_num == 0, div_3_word, ""), sep = "")
answer <- paste(answer, ifelse(i %% div_5_num ... | /FizzBuzz/FizzBuzz.R | no_license | Si-ja/Random-Projects | R | false | false | 421 | r | # FizzBuzz in R
div_3_num <- 3
div_5_num <- 5
div_3_word <- "Fizz"
div_5_word <- "Buzz"
start_point <- 1
end_point <- 100
for (i in start_point:end_point) {
answer <- ""
answer <- paste(answer, ifelse(i %% div_3_num == 0, div_3_word, ""), sep = "")
answer <- paste(answer, ifelse(i %% div_5_num ... |
metadata_check <- function(my_data_file=NA, my_PCoA=NA, my_metadata="", debug=TRUE, output_filename="metadata_check.error_log.txt"){
######################
######## SUB(1): USAGE
######################
func_usage <- function() {
writeLines("
You supplied no arguments
DES... | /metadata_check.8-14-14.r | permissive | DrOppenheimer/matR-apps | R | false | false | 10,340 | r | metadata_check <- function(my_data_file=NA, my_PCoA=NA, my_metadata="", debug=TRUE, output_filename="metadata_check.error_log.txt"){
######################
######## SUB(1): USAGE
######################
func_usage <- function() {
writeLines("
You supplied no arguments
DES... |
########### Linearized Saddle-Node (LSN) Model ##################
#' Linearized Saddle Node model
#'
#' Estimate the mean and variance of the linearized saddle
#' node process (in which the spring constant changes over time)
#' @param Xo initial condition
#' @param to initial time
#' @param t1 final time
#' @param pa... | /mews/R/LSN.R | no_license | mebrooks/mews | R | false | false | 2,107 | r |
########### Linearized Saddle-Node (LSN) Model ##################
#' Linearized Saddle Node model
#'
#' Estimate the mean and variance of the linearized saddle
#' node process (in which the spring constant changes over time)
#' @param Xo initial condition
#' @param to initial time
#' @param t1 final time
#' @param pa... |
#' Get information about a site
#'
#' @md
#' @references <https://developer.wordpress.com/docs/api/1.2/get/sites/$site/>
#' @param site site id or domain
#' @note I've only had this work successfully with my blog by using the site id.
#' @export
#' @examples \dontrun{
#' wp_auth()
#' me <- wp_about_me()
#' wp_site_info... | /R/site-info.R | no_license | firebitsbr/pressur | R | false | false | 559 | r | #' Get information about a site
#'
#' @md
#' @references <https://developer.wordpress.com/docs/api/1.2/get/sites/$site/>
#' @param site site id or domain
#' @note I've only had this work successfully with my blog by using the site id.
#' @export
#' @examples \dontrun{
#' wp_auth()
#' me <- wp_about_me()
#' wp_site_info... |
library(dataRetrieval)
### Name: readNGWMNlevels
### Title: Retrieve groundwater levels from the National Ground Water
### Monitoring Network <URL: http://cida.usgs.gov/ngwmn/>.
### Aliases: readNGWMNlevels
### ** Examples
## Not run:
##D #one site
##D site <- "USGS.430427089284901"
##D oneSite <- readNGWMNlevel... | /data/genthat_extracted_code/dataRetrieval/examples/readNGWMNlevels.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 788 | r | library(dataRetrieval)
### Name: readNGWMNlevels
### Title: Retrieve groundwater levels from the National Ground Water
### Monitoring Network <URL: http://cida.usgs.gov/ngwmn/>.
### Aliases: readNGWMNlevels
### ** Examples
## Not run:
##D #one site
##D site <- "USGS.430427089284901"
##D oneSite <- readNGWMNlevel... |
library(shiny)
library(future)
library(promises)
library(magrittr)
plan(multisession)
ui <- fluidPage(
p("This app tests that ", tags$code("invalidateLater()"), " calls are held until async operations are complete."),
tags$ol(
tags$li("You should see the number below increasing by 1, every 2 seconds."),
ta... | /apps/121-async-timer/app.R | permissive | rstudio/shinycoreci-apps | R | false | false | 3,025 | r | library(shiny)
library(future)
library(promises)
library(magrittr)
plan(multisession)
ui <- fluidPage(
p("This app tests that ", tags$code("invalidateLater()"), " calls are held until async operations are complete."),
tags$ol(
tags$li("You should see the number below increasing by 1, every 2 seconds."),
ta... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_arguments.R
\name{clean_run}
\alias{clean_run}
\title{Clean averaged simulation runs}
\usage{
clean_run(x)
}
\arguments{
\item{run}{a tibble or a data.frame}
}
\value{
a tibble or a data.frame
}
\description{
Suppress simulation runs an... | /man/clean_run.Rd | permissive | alaindanet/indirect_facilitation_model | R | false | true | 345 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_arguments.R
\name{clean_run}
\alias{clean_run}
\title{Clean averaged simulation runs}
\usage{
clean_run(x)
}
\arguments{
\item{run}{a tibble or a data.frame}
}
\value{
a tibble or a data.frame
}
\description{
Suppress simulation runs an... |
#' @title Generate networks characterising habitat physical configurations
#' @description Generate undirected networks (weighted or unweighted, connected or disconnected) characterising the physical attributes and spatial organizations (or distributions) of habitat components (i.e. habitat configurations).
#'
#' @para... | /R/ahn_gen.R | no_license | ecopeng/AnimalHabitatNetwork | R | false | false | 5,296 | r | #' @title Generate networks characterising habitat physical configurations
#' @description Generate undirected networks (weighted or unweighted, connected or disconnected) characterising the physical attributes and spatial organizations (or distributions) of habitat components (i.e. habitat configurations).
#'
#' @para... |
library(kutils)
### Name: initProject
### Title: Create project directories, initialize a git repo, create
### README.md ChangeLog, and R template file in R directory
### Aliases: initProject
### ** Examples
projdir1 <- file.path(tempdir(), "test1")
dir.create(projdir1, recursive = TRUE)
initProject(dir = projdir... | /data/genthat_extracted_code/kutils/examples/initProject.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 903 | r | library(kutils)
### Name: initProject
### Title: Create project directories, initialize a git repo, create
### README.md ChangeLog, and R template file in R directory
### Aliases: initProject
### ** Examples
projdir1 <- file.path(tempdir(), "test1")
dir.create(projdir1, recursive = TRUE)
initProject(dir = projdir... |
/R_skripty/sambar_shlukova_analyza.R | no_license | jakubhenzl/SOC-Jakub-Henzl | R | false | false | 2,980 | r | ||
library(prioritylasso)
### Name: cvm_prioritylasso
### Title: prioritylasso with several block specifications
### Aliases: cvm_prioritylasso
### ** Examples
cvm_prioritylasso(X = matrix(rnorm(50*500),50,500), Y = rnorm(50), family = "gaussian",
type.measure = "mse", lambda.type = "lambda.min", nfo... | /data/genthat_extracted_code/prioritylasso/examples/cvm_prioritylasso.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 933 | r | library(prioritylasso)
### Name: cvm_prioritylasso
### Title: prioritylasso with several block specifications
### Aliases: cvm_prioritylasso
### ** Examples
cvm_prioritylasso(X = matrix(rnorm(50*500),50,500), Y = rnorm(50), family = "gaussian",
type.measure = "mse", lambda.type = "lambda.min", nfo... |
##++++++++++++##
#### Helper ####
##++++++++++++##
# js <- '
# $(document).on("shiny:value", function(e){
# if(e.name === "graph"){
# setTimeout(function(){
# $("#graph").prev().children()[1].style.display = "none";
# }, 0);
# }
# });
# '
##+++++++++++++++##
#### UI module ####
##+++++++++++++++##
c... | /R/pca.R | no_license | kota-tagami/J-Onet_EDA | R | false | false | 10,349 | r | ##++++++++++++##
#### Helper ####
##++++++++++++##
# js <- '
# $(document).on("shiny:value", function(e){
# if(e.name === "graph"){
# setTimeout(function(){
# $("#graph").prev().children()[1].style.display = "none";
# }, 0);
# }
# });
# '
##+++++++++++++++##
#### UI module ####
##+++++++++++++++##
c... |
testlist <- list(n = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(gdalcubes:... | /gdalcubes/inst/testfiles/libgdalcubes_set_threads/libFuzzer_libgdalcubes_set_threads/libgdalcubes_set_threads_valgrind_files/1609874360-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 368 | r | testlist <- list(n = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(gdalcubes:... |
tabPanel(
"Changelog",
includeMarkdown("../changelog/changelog.md")
) | /R/ui/changelog.R | no_license | gaelcge/SCAP | R | false | false | 73 | r | tabPanel(
"Changelog",
includeMarkdown("../changelog/changelog.md")
) |
source(here::here("./scripts/r/00_helpers.R"))
# Setup to load data -----------------------------------------------------------
# Store all folders in 'data' directory
# Use regex to exclude anything that is not
# a folder (excludes p01 and p02 because they
# didn't complete the task, and 'tidy' because
# that is... | /scripts/r/01b_combine_carrier_data.R | no_license | jvcasillas/glide_affiliation | R | false | false | 1,421 | r | source(here::here("./scripts/r/00_helpers.R"))
# Setup to load data -----------------------------------------------------------
# Store all folders in 'data' directory
# Use regex to exclude anything that is not
# a folder (excludes p01 and p02 because they
# didn't complete the task, and 'tidy' because
# that is... |
library(lme4)
library(MASS)
library(AER)
#compare Light Dark
control_Light_Dark<-read.table("Light_Dark_final_dataset_selected.txt",header=TRUE)
control_Light_Dark$Group<-factor(control_Light_Dark$Group)
dataset_full_Light<-read.table("Light_final_dataset_full.txt",header=TRUE)
dataset_full_Light$Group<-factor(datas... | /code_zebrafish/final_analysis/effect_sizes_comparing_controls_B1.R | no_license | jernejaMislej/all_code | R | false | false | 52,784 | r | library(lme4)
library(MASS)
library(AER)
#compare Light Dark
control_Light_Dark<-read.table("Light_Dark_final_dataset_selected.txt",header=TRUE)
control_Light_Dark$Group<-factor(control_Light_Dark$Group)
dataset_full_Light<-read.table("Light_final_dataset_full.txt",header=TRUE)
dataset_full_Light$Group<-factor(datas... |
test_that("Works with string", {
expect_equal(LOWER("HELLO"), "hello")
})
test_that("Works with vector", {
expect_equal(LOWER(c("hello", "HI", "hey")), c("hello", "hi", "hey"))
})
test_that("Works with number", {
expect_equal(LOWER(c(1, "HI", "hey")), c("1", "hi", "hey"))
})
| /tests/testthat/test-LOWER.R | no_license | njbultman/xlsxFunctions | R | false | false | 284 | r | test_that("Works with string", {
expect_equal(LOWER("HELLO"), "hello")
})
test_that("Works with vector", {
expect_equal(LOWER(c("hello", "HI", "hey")), c("hello", "hi", "hey"))
})
test_that("Works with number", {
expect_equal(LOWER(c(1, "HI", "hey")), c("1", "hi", "hey"))
})
|
###################################
## general degree of freedom and GCV
###################################
GDF.Step23 <- function(seed,data,lambda1,lambda2,tau,mumethods, methods,sigma,algorithm,epsilon)
{
set.seed(seed) ## Set the random seed for this simulation
# peturbation of data
deltaB = matrix(rno... | /prclust/R/GCVOrignial.R | no_license | akhikolla/updatedatatype-list4 | R | false | false | 3,912 | r | ###################################
## general degree of freedom and GCV
###################################
GDF.Step23 <- function(seed,data,lambda1,lambda2,tau,mumethods, methods,sigma,algorithm,epsilon)
{
set.seed(seed) ## Set the random seed for this simulation
# peturbation of data
deltaB = matrix(rno... |
library(reshape2)
library(ggplot2)
assessmentMethods <- data.frame(
Paper = c("Wilson, Raj, Smaragdis, Divakaran",
"Schmidt, Olsson",
"Raj, Singh, Smaragdis",
"Raj, Smaragdis",
"Raj, Singh, Virtanen",
"Mohammadiha, Leijon",
"Févotte",
... | /Code/R/assessmentMethods.R | no_license | ashgillman/Speech-in-Babble | R | false | false | 2,723 | r | library(reshape2)
library(ggplot2)
assessmentMethods <- data.frame(
Paper = c("Wilson, Raj, Smaragdis, Divakaran",
"Schmidt, Olsson",
"Raj, Singh, Smaragdis",
"Raj, Smaragdis",
"Raj, Singh, Virtanen",
"Mohammadiha, Leijon",
"Févotte",
... |
=begin
=[フォルダの作成]ダイアログ
作成するフォルダの名前やタイプを指定するためのダイアログです。
((<[フォルダの作成]ダイアログ|"IMG:images/CreateFolderDialog.png">))
+[名前]
作成するフォルダの名前を指定します。
IMAP4アカウントでフォルダを作成する場合、一部のIMAP4サーバはメールを入れるためのフォルダと子フォルダを入れるためのフォルダが排他である場合があります(UW-IMAPサーバなど)。この場合に、子フォルダを入れるためのフォルダを作成するためには、フォルダ名の最後に「/」(実際には各フォルダのセパレータ文字列)を追加します。例え... | /docs/CreateFolderDialog.rd | permissive | snakamura/q3 | R | false | false | 1,206 | rd | =begin
=[フォルダの作成]ダイアログ
作成するフォルダの名前やタイプを指定するためのダイアログです。
((<[フォルダの作成]ダイアログ|"IMG:images/CreateFolderDialog.png">))
+[名前]
作成するフォルダの名前を指定します。
IMAP4アカウントでフォルダを作成する場合、一部のIMAP4サーバはメールを入れるためのフォルダと子フォルダを入れるためのフォルダが排他である場合があります(UW-IMAPサーバなど)。この場合に、子フォルダを入れるためのフォルダを作成するためには、フォルダ名の最後に「/」(実際には各フォルダのセパレータ文字列)を追加します。例え... |
##--------------------------------------------
# Sleuth - RNA-seq Virus Zika
# Washington Candeia de Araujo
# Instituto de Medicina Tropical - IMD - UFRN
# Script lrt
# https://rawgit.com/pachterlab/sleuth/master/inst/doc/intro.html
# Data: 30/08/2018
##--------------------------------------------
library("sleuth")
li... | /sleuth/lrt/sleuth-lrt-met2.R | no_license | washingtoncandeia/kallisto_sleuth | R | false | false | 2,866 | r | ##--------------------------------------------
# Sleuth - RNA-seq Virus Zika
# Washington Candeia de Araujo
# Instituto de Medicina Tropical - IMD - UFRN
# Script lrt
# https://rawgit.com/pachterlab/sleuth/master/inst/doc/intro.html
# Data: 30/08/2018
##--------------------------------------------
library("sleuth")
li... |
write_mplus<-function(varnames,usevar,myModel,filename,sigpsx_list)
{
if(file.exists("bayeslasso_cfa.inp"))
{
file.remove("bayeslasso_cfa.inp")
}
SIGPSX=sigpsx_list$SIGPSX
sigpsxname<-rownames(SIGPSX)
## The variable name part is split into multiple lines in order to be smaller than the 90 characters const... | /R/write_mplus.r | no_license | ChrisT448/blcfa | R | false | false | 3,643 | r |
write_mplus<-function(varnames,usevar,myModel,filename,sigpsx_list)
{
if(file.exists("bayeslasso_cfa.inp"))
{
file.remove("bayeslasso_cfa.inp")
}
SIGPSX=sigpsx_list$SIGPSX
sigpsxname<-rownames(SIGPSX)
## The variable name part is split into multiple lines in order to be smaller than the 90 characters const... |
# General utilities to calculate PxQ PnL
# For examples, see NEPOOL/PnL/investigate_changes_pnl.R
#
# calc_pnl_pq workhorse
# .get_deltas_zone from secdb
# .marks_spread split the fix price into spreads/hub
# .marks_spread_PWX
# .marks_spread_PWY
# .positions_spread s... | /R Extension/RMG/Energy/Trading/Congestion/lib.pnl.R | no_license | uhasan1/QLExtension-backup | R | false | false | 13,365 | r | # General utilities to calculate PxQ PnL
# For examples, see NEPOOL/PnL/investigate_changes_pnl.R
#
# calc_pnl_pq workhorse
# .get_deltas_zone from secdb
# .marks_spread split the fix price into spreads/hub
# .marks_spread_PWX
# .marks_spread_PWY
# .positions_spread s... |
#' gauchodown: A package for creating undergraduate, Masters, and PhD theses
#'using R Markdown
#' @docType package
#' @name gauchodown
NULL
| /R/gauchodown.R | permissive | DanOvando/gauchodown | R | false | false | 141 | r | #' gauchodown: A package for creating undergraduate, Masters, and PhD theses
#'using R Markdown
#' @docType package
#' @name gauchodown
NULL
|
testlist <- list(hi = 0, lo = 1.3547280008967e-320, mu = 0, sig = 0)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) | /gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610046794-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 125 | r | testlist <- list(hi = 0, lo = 1.3547280008967e-320, mu = 0, sig = 0)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) |
source("common.R")
load_raw <- function(raw_data_dir, n_max) {
d <- load_single_file(
raw_data_dir,
"Vehicle_and_Pedestrian_Stop_Data_2010_to_Present.csv",
n_max = n_max
)
d$data <- make_ergonomic_colnames(d$data)
bundle_raw(d$data, d$loading_problems)
}
clean <- function(d, helpers) {
tr_race... | /lib/states/ca/los_angeles.R | no_license | stanford-policylab/opp | R | false | false | 1,948 | r | source("common.R")
load_raw <- function(raw_data_dir, n_max) {
d <- load_single_file(
raw_data_dir,
"Vehicle_and_Pedestrian_Stop_Data_2010_to_Present.csv",
n_max = n_max
)
d$data <- make_ergonomic_colnames(d$data)
bundle_raw(d$data, d$loading_problems)
}
clean <- function(d, helpers) {
tr_race... |
## ------------------------------------------------------------------------
# load packages and parse data
library(tidyverse)
library(scales)
library(RColorBrewer)
library(forcats)
library(ggmap)
bridges_raw <- read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2018-11-27/baltimore_bri... | /cache/Eeysirhc|tidytuesday|20181127-baltimore_bridges__baltimore_bridges.R | permissive | a-rosenberg/github-content-scraper | R | false | false | 3,624 | r | ## ------------------------------------------------------------------------
# load packages and parse data
library(tidyverse)
library(scales)
library(RColorBrewer)
library(forcats)
library(ggmap)
bridges_raw <- read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2018-11-27/baltimore_bri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_for_RGWAS.R
\name{calcGRM}
\alias{calcGRM}
\title{Function to calculate genomic relationship matrix (GRM)}
\usage{
calcGRM(
genoMat,
methodGRM = "addNOIA",
kernel.h = "tuned",
returnWMat = FALSE,
probaa = NULL,
probAa = ... | /man/calcGRM.Rd | permissive | KosukeHamazaki/RAINBOW | R | false | true | 1,796 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_for_RGWAS.R
\name{calcGRM}
\alias{calcGRM}
\title{Function to calculate genomic relationship matrix (GRM)}
\usage{
calcGRM(
genoMat,
methodGRM = "addNOIA",
kernel.h = "tuned",
returnWMat = FALSE,
probaa = NULL,
probAa = ... |
#Loading required packages
library("rpart")
library("e1071")
library("kknn")
library("nnet")
library("mlr")
library("glmnet")
#Importing the data
set.seed(100)
income <- read.table("https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data")
names(income) <- c("age","workclass","fnlwg... | /ProblemSets/PS10/PS10_Tayebi.R | permissive | amirtayebi/DScourseS19 | R | false | false | 8,437 | r | #Loading required packages
library("rpart")
library("e1071")
library("kknn")
library("nnet")
library("mlr")
library("glmnet")
#Importing the data
set.seed(100)
income <- read.table("https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data")
names(income) <- c("age","workclass","fnlwg... |
testlist <- list(Beta = 0, CVLinf = 4.04581779412142e-307, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.97941197... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615829694-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 484 | r | testlist <- list(Beta = 0, CVLinf = 4.04581779412142e-307, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.97941197... |
best <- function(state, outcome) {
## Check that "outcome" is valid using a "named vector" for each data possible data colum
outcomes <- c("heart attack"=11, "heart failure"=17, "pneumonia"=23)
## if !(Valid Outcome) then stop("invalid outcome")
if (is.na(outcomes[outcome])) { stop("invalid outcome") }... | /ProgAssignment3-data/HosptalWork.R | no_license | ferrillgunnel/datasciencecoursera | R | false | false | 5,442 | r | best <- function(state, outcome) {
## Check that "outcome" is valid using a "named vector" for each data possible data colum
outcomes <- c("heart attack"=11, "heart failure"=17, "pneumonia"=23)
## if !(Valid Outcome) then stop("invalid outcome")
if (is.na(outcomes[outcome])) { stop("invalid outcome") }... |
#' @keywords internal
#' @importFrom utils packageVersion
#' @importFrom stats runif
#' @export
.onAttach = function(libname, pkgname) {
if ((runif (1) < 0.25) & interactive()) { # activate occasionally and only if not run as Rscript
ver = as.character(packageVersion("climate"))
packageStartupMessage(paste0(... | /R/onAttach.R | permissive | bczernecki/climate | R | false | false | 789 | r | #' @keywords internal
#' @importFrom utils packageVersion
#' @importFrom stats runif
#' @export
.onAttach = function(libname, pkgname) {
if ((runif (1) < 0.25) & interactive()) { # activate occasionally and only if not run as Rscript
ver = as.character(packageVersion("climate"))
packageStartupMessage(paste0(... |
prep_legend_fun <- function(percentiles_str, sites_color_palette,
x_pos = c('left', 'right'), y_pos = c('bottom','top'),
legend_cfg){
x_pos <- match.arg(x_pos)
y_pos <- match.arg(y_pos)
col_fun <- colorRamp(sites_color_palette$with_percentile)
percentile... | /6_visualize/src/prep_legend_fun.R | no_license | ldecicco-USGS/gage-conditions-gif | R | false | false | 2,498 | r |
prep_legend_fun <- function(percentiles_str, sites_color_palette,
x_pos = c('left', 'right'), y_pos = c('bottom','top'),
legend_cfg){
x_pos <- match.arg(x_pos)
y_pos <- match.arg(y_pos)
col_fun <- colorRamp(sites_color_palette$with_percentile)
percentile... |
pollutantmean <- function(directory = "~/r", pollutant = "sulfate", id = 1:332) {
folderlocation <- dir()
generaldf <- do.call(rbind, lapply(folderlocation, read.csv))
snidf <- generaldf[, 2:4]
sidf <- generaldf[, c(2, 4)]
nidf <- generaldf[, 3:4]
nidsort <- nidf[is... | /first function.R | no_license | Diogenes2/AirPolution | R | false | false | 3,160 | r | pollutantmean <- function(directory = "~/r", pollutant = "sulfate", id = 1:332) {
folderlocation <- dir()
generaldf <- do.call(rbind, lapply(folderlocation, read.csv))
snidf <- generaldf[, 2:4]
sidf <- generaldf[, c(2, 4)]
nidf <- generaldf[, 3:4]
nidsort <- nidf[is... |
# MSigDb library
# Script to run enricher( ) on Categories H, C2, C5
library(msigdbr)
library(magrittr)
library(dplyr)
library(clusterProfiler)
library(ggplot2)
library(tidyr)
library(tidytext)
# 1. Load and prepare data set
data_file <- readRDS("~/data14Features.rds")
colnames(rowData(data_file))
analysis_data <- m... | /annotation_DBs/MSigDb_5_contrast_def.R | no_license | MuffiMash16/rep_bioinfo | R | false | false | 2,006 | r | # MSigDb library
# Script to run enricher( ) on Categories H, C2, C5
library(msigdbr)
library(magrittr)
library(dplyr)
library(clusterProfiler)
library(ggplot2)
library(tidyr)
library(tidytext)
# 1. Load and prepare data set
data_file <- readRDS("~/data14Features.rds")
colnames(rowData(data_file))
analysis_data <- m... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/driver.R
\name{Postgres}
\alias{Postgres}
\title{Postgres driver}
\usage{
Postgres()
}
\description{
This driver never needs to be unloaded and hence \code{dbUnload()} is a
null-op.
}
\examples{
library(DBI)
RPostgres::Postgres()
}
| /man/Postgres.Rd | no_license | robertzk/RPostgres | R | false | false | 319 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/driver.R
\name{Postgres}
\alias{Postgres}
\title{Postgres driver}
\usage{
Postgres()
}
\description{
This driver never needs to be unloaded and hence \code{dbUnload()} is a
null-op.
}
\examples{
library(DBI)
RPostgres::Postgres()
}
|
##########################################################################################################################
# HarvardX PH125.9x Data Science Capstone Movielens Project
#
# Student: Praveen Vos (Praveenvos@icloud.com) www.Praveenvos.com (LinkedIn) https://Praveenvos.wordpress.com (Blog)
#
################... | /MovieLens.R | no_license | praveen556/MovieLens | R | false | false | 30,508 | r | ##########################################################################################################################
# HarvardX PH125.9x Data Science Capstone Movielens Project
#
# Student: Praveen Vos (Praveenvos@icloud.com) www.Praveenvos.com (LinkedIn) https://Praveenvos.wordpress.com (Blog)
#
################... |
\name{rrfc6}
\alias{rrfc6}
\title{Roughenen Random Forests - C6 (RRFC6)}
\usage{
rrfc6(dat, yvar = ncol(dat), tr, te, mispct, number.trees)
}
\arguments{
\item{dat}{A data frame containing both training and testing datasets}
\item{yvar}{The column number of the binary outcome variable, a factor variable. The ... | /man/rrfc6.Rd | no_license | cran/roughrf | R | false | false | 2,586 | rd | \name{rrfc6}
\alias{rrfc6}
\title{Roughenen Random Forests - C6 (RRFC6)}
\usage{
rrfc6(dat, yvar = ncol(dat), tr, te, mispct, number.trees)
}
\arguments{
\item{dat}{A data frame containing both training and testing datasets}
\item{yvar}{The column number of the binary outcome variable, a factor variable. The ... |
#Lesson Catalog
library(shiny)
library(RCurl)
library(data.table)
library(magrittr)
library(DT)
module_table <- fread("module_table.csv")
createLink <- function(url,text) {
sprintf(paste0('<a href="../../', URLdecode(url),'" target="_blank">', substr(text, 1, 75) ,'</a>'))
}
module_table[,Link := apply(module_tabl... | /catalog/app.R | no_license | arcus/ALEx-Lessons | R | false | false | 1,825 | r | #Lesson Catalog
library(shiny)
library(RCurl)
library(data.table)
library(magrittr)
library(DT)
module_table <- fread("module_table.csv")
createLink <- function(url,text) {
sprintf(paste0('<a href="../../', URLdecode(url),'" target="_blank">', substr(text, 1, 75) ,'</a>'))
}
module_table[,Link := apply(module_tabl... |
#can we predict the type of load conditions that will be for a given hour in NYC, given only air temp, prices and congestion?
rm(list=ls())
#install and load any required packages
if (!require("pacman")) install.packages("pacman")
p_load(caret,tidyverse,readr, tidyquant)
# Load data
data <- read_csv("fina... | /load predictor.R | no_license | paddleguy/EDX | R | false | false | 2,934 | r |
#can we predict the type of load conditions that will be for a given hour in NYC, given only air temp, prices and congestion?
rm(list=ls())
#install and load any required packages
if (!require("pacman")) install.packages("pacman")
p_load(caret,tidyverse,readr, tidyquant)
# Load data
data <- read_csv("fina... |
library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'fm'
scenario <- 1
param <- 1
anal_type <- "sing"
ss <- ss.bounds%>%
dplyr::filter(method == "fm", scenario.id == scenario)
do_val <- 0.15
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detectCo... | /sim_pgms/fm/do15/2xcontH0_sc1_do15_sing.R | no_license | yuliasidi/nibinom_apply | R | false | false | 2,229 | r | library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'fm'
scenario <- 1
param <- 1
anal_type <- "sing"
ss <- ss.bounds%>%
dplyr::filter(method == "fm", scenario.id == scenario)
do_val <- 0.15
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detectCo... |
makeCacheMatrix <- function(x = numeric()) {
cache <- NULL
setMatrix <- function(newValue) {
x <<- newValue
cache <<- NULL
}
getMatrix <- function() {
x
}
cacheInverse <- function(solve) {
cache <<- solve
}
getInverse <- function() {
cache
}
list(setMatrix = s... | /assignment2.R | no_license | anilsengun/R_Programming_Assignment2 | R | false | false | 645 | r | makeCacheMatrix <- function(x = numeric()) {
cache <- NULL
setMatrix <- function(newValue) {
x <<- newValue
cache <<- NULL
}
getMatrix <- function() {
x
}
cacheInverse <- function(solve) {
cache <<- solve
}
getInverse <- function() {
cache
}
list(setMatrix = s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quicksight_operations.R
\name{quicksight_describe_dashboard_snapshot_job_result}
\alias{quicksight_describe_dashboard_snapshot_job_result}
\title{Describes the result of an existing snapshot job that has finished
running}
\usage{
quicksight_d... | /cran/paws.analytics/man/quicksight_describe_dashboard_snapshot_job_result.Rd | permissive | paws-r/paws | R | false | true | 1,087 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quicksight_operations.R
\name{quicksight_describe_dashboard_snapshot_job_result}
\alias{quicksight_describe_dashboard_snapshot_job_result}
\title{Describes the result of an existing snapshot job that has finished
running}
\usage{
quicksight_d... |
\name{smaa-package}
\alias{smaa-package}
\docType{package}
\title{SMAA: Stochastic Multi-criteria Acceptability Analysis}
\description{
This R package implements the Stochastic Multi-criteria Acceptability Analysis (SMAA) family of
methods for stochastic Multiple Criteria Decision Analysis (MCDA). In SMAA methods, un... | /smaa/man/smaa-package.Rd | no_license | gertvv/rsmaa | R | false | false | 2,193 | rd | \name{smaa-package}
\alias{smaa-package}
\docType{package}
\title{SMAA: Stochastic Multi-criteria Acceptability Analysis}
\description{
This R package implements the Stochastic Multi-criteria Acceptability Analysis (SMAA) family of
methods for stochastic Multiple Criteria Decision Analysis (MCDA). In SMAA methods, un... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.