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
#' Reimplementation of rapply that does not consider #' data.frames to be lists and visit them. #' #' The input tree should be constructed using only simple #' lists (i.e. `class` should be *exactly* `"list"`, not #' e.g. `c("list", "data.frame")`). #' #' The function does not keep branches that lead to branches #' of ...
/R/recursive_application.R
permissive
vittoriofortino84/amiss
R
false
false
3,858
r
#' Reimplementation of rapply that does not consider #' data.frames to be lists and visit them. #' #' The input tree should be constructed using only simple #' lists (i.e. `class` should be *exactly* `"list"`, not #' e.g. `c("list", "data.frame")`). #' #' The function does not keep branches that lead to branches #' of ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NNGP.R \name{dmnorm_nngp} \alias{dmnorm_nngp} \title{Function for the evaluating the NNGP approximate density.} \usage{ dmnorm_nngp(x, mean, AD, nID, N, k, log) } \arguments{ \item{x}{N-vector of data.} \item{mean}{N-vector with current valu...
/man/dmnorm_nngp.Rd
no_license
cran/BayesNSGP
R
false
true
932
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NNGP.R \name{dmnorm_nngp} \alias{dmnorm_nngp} \title{Function for the evaluating the NNGP approximate density.} \usage{ dmnorm_nngp(x, mean, AD, nID, N, k, log) } \arguments{ \item{x}{N-vector of data.} \item{mean}{N-vector with current valu...
library(tensorflow) # assume it's version 1.14, with eager not yet being the default tf$compat$v1$enable_v2_behavior() library(tfprobability) library(keras) library(dplyr) library(tidyr) library(ggplot2) # generate the data x_min <- -40 x_max <- 60 n <- 150 w0 <- 0.125 b0 <- 5 normalize <- function(x) (x - x_min) /...
/Heteroscedastic aleatoric uncertainty ANN/Variational layers example.R
no_license
charliekirkwood/demos
R
false
false
3,301
r
library(tensorflow) # assume it's version 1.14, with eager not yet being the default tf$compat$v1$enable_v2_behavior() library(tfprobability) library(keras) library(dplyr) library(tidyr) library(ggplot2) # generate the data x_min <- -40 x_max <- 60 n <- 150 w0 <- 0.125 b0 <- 5 normalize <- function(x) (x - x_min) /...
## ---- include = FALSE---------------------------------------------------- setwd("~/Dropbox/IVQR/IVQR/vignettes")
/vignettes/draft_vignette.R
no_license
JeC2017/IVQR
R
false
false
116
r
## ---- include = FALSE---------------------------------------------------- setwd("~/Dropbox/IVQR/IVQR/vignettes")
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/shinyHelper.R \name{kMajorityGUI} \alias{kMajorityGUI} \title{kMajorityGUI} \usage{ kMajorityGUI() } \description{ Runs the kMajority GUI built with Shiny Server. }
/man/kMajorityGUI.Rd
no_license
codeForReviewer/kMajorityRule
R
false
false
252
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/shinyHelper.R \name{kMajorityGUI} \alias{kMajorityGUI} \title{kMajorityGUI} \usage{ kMajorityGUI() } \description{ Runs the kMajority GUI built with Shiny Server. }
#' Compute the tracing score of a contact #' #' This function compute the tracing score of a contact, i.e. an individual who #' has had at least one recorded exposure to a case. For a contact, the tracing #' score is defined as the probability that this individual will show symptoms #' for the first time on day 't'. #'...
/R/contact_score.R
no_license
reconhub/tracer
R
false
false
4,121
r
#' Compute the tracing score of a contact #' #' This function compute the tracing score of a contact, i.e. an individual who #' has had at least one recorded exposure to a case. For a contact, the tracing #' score is defined as the probability that this individual will show symptoms #' for the first time on day 't'. #'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/transactions.R \name{getTransactions} \alias{getTransactions} \title{Retrieving transactions and including items in the feed} \usage{ getTransactions(mtoken = getMonzoToken(), accountId = NULL, since = NULL, before = NULL, parse = TRUE, exp...
/man/getTransactions.Rd
permissive
ryanbateman/monzor
R
false
true
880
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/transactions.R \name{getTransactions} \alias{getTransactions} \title{Retrieving transactions and including items in the feed} \usage{ getTransactions(mtoken = getMonzoToken(), accountId = NULL, since = NULL, before = NULL, parse = TRUE, exp...
# ---- roxygen documentation ---- # #' @title Player shooting analysis #' #' @description #' Calculate spatially adjusted player-based shooting statistics using spatially explicit model of NHL scoring probability. #' #' @details #' Will be expanded later on. #' #' @param model a dataframe, specifically, ouput from t...
/R/players.R
no_license
jedalong/nhlmodelr
R
false
false
2,357
r
# ---- roxygen documentation ---- # #' @title Player shooting analysis #' #' @description #' Calculate spatially adjusted player-based shooting statistics using spatially explicit model of NHL scoring probability. #' #' @details #' Will be expanded later on. #' #' @param model a dataframe, specifically, ouput from t...
options(na.action=na.exclude) # preserve missings options(contrasts=c('contr.treatment', 'contr.poly')) #ensure constrast type library(survival) aeq <- function(x,y, ...) all.equal(as.vector(x), as.vector(y), ...) fit1 <- survreg(Surv(futime, fustat) ~ age + ecog.ps, ovarian) fit4 <- survreg(Surv(log(futime), fustat)...
/R-Portable-Win/library/survival/tests/r_resid.R
permissive
rana2hin/electron-quick-start
R
false
false
3,959
r
options(na.action=na.exclude) # preserve missings options(contrasts=c('contr.treatment', 'contr.poly')) #ensure constrast type library(survival) aeq <- function(x,y, ...) all.equal(as.vector(x), as.vector(y), ...) fit1 <- survreg(Surv(futime, fustat) ~ age + ecog.ps, ovarian) fit4 <- survreg(Surv(log(futime), fustat)...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { s <- NULL set <- function(y) { x <<- y s <<- NULL } get <- function() x setInverse <- function(solve) s <<- solve getInve...
/cachematrix.R
no_license
yjpyun/ProgrammingAssignment2
R
false
false
736
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { s <- NULL set <- function(y) { x <<- y s <<- NULL } get <- function() x setInverse <- function(solve) s <<- solve getInve...
\name{mllRH} \alias{mllRH} \title{ Minus loglikelihood of a RHawkes model } \description{ Calculates the minus loglikelihood of a RHawkes model with given immigration hazard function \eqn{\mu}, offspring density function \eqn{h} and branching ratio \eqn{\eta} for event times \code{tms} on interval \eqn{[0,cens]}. } \...
/man/mllRH.Rd
no_license
cran/RHawkes
R
false
false
2,916
rd
\name{mllRH} \alias{mllRH} \title{ Minus loglikelihood of a RHawkes model } \description{ Calculates the minus loglikelihood of a RHawkes model with given immigration hazard function \eqn{\mu}, offspring density function \eqn{h} and branching ratio \eqn{\eta} for event times \code{tms} on interval \eqn{[0,cens]}. } \...
# Packages used : pracma # To install pracma,type following in command line while connected to internet # install.packages("pracma") # package can be included by command " library(pracma) " # for more information about pracma visit https://cran.r-project.org/web/packages/pracma/index.html # Example : 4.1B Ch...
/Introduction_To_Linear_Algebra_by_Gilbert_Strang/CH4/EX4.1.b/Ex4_4.1B.r
permissive
FOSSEE/R_TBC_Uploads
R
false
false
1,913
r
# Packages used : pracma # To install pracma,type following in command line while connected to internet # install.packages("pracma") # package can be included by command " library(pracma) " # for more information about pracma visit https://cran.r-project.org/web/packages/pracma/index.html # Example : 4.1B Ch...
#' @useDynLib rcppSkeleton #' @importFrom Rcpp sourceCpp NULL .onUnload <- function(Libpath=system.file(package = "rcppSkeleton")){ library.dynam.unload("rcppSkeleton", libpath = Libpath) }
/R/Package_Setup.R
no_license
dawidh15/rcppSkeleton
R
false
false
192
r
#' @useDynLib rcppSkeleton #' @importFrom Rcpp sourceCpp NULL .onUnload <- function(Libpath=system.file(package = "rcppSkeleton")){ library.dynam.unload("rcppSkeleton", libpath = Libpath) }
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/help.R \docType{package} \name{rplexos} \alias{rplexos} \alias{rplexos-package} \title{rplexos: Read and analyze PLEXOS solutions from R} \description{ Read and analyze PLEXOS solutions from R } \details{ The following is the typical ...
/man/rplexos.Rd
no_license
davpalch/rplexos
R
false
false
899
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/help.R \docType{package} \name{rplexos} \alias{rplexos} \alias{rplexos-package} \title{rplexos: Read and analyze PLEXOS solutions from R} \description{ Read and analyze PLEXOS solutions from R } \details{ The following is the typical ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/indeplasso.R \name{indeplasso} \alias{indeplasso} \title{Independent LASSO using summary statistics (a.k.a. soft-thresholding)} \usage{ indeplasso(coef, lambda = exp(seq(log(0.001), log(0.1), length.out = 20))) } \arguments{ \item{coef}{vecto...
/man/indeplasso.Rd
permissive
choishingwan/lassosum
R
false
true
800
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/indeplasso.R \name{indeplasso} \alias{indeplasso} \title{Independent LASSO using summary statistics (a.k.a. soft-thresholding)} \usage{ indeplasso(coef, lambda = exp(seq(log(0.001), log(0.1), length.out = 20))) } \arguments{ \item{coef}{vecto...
######### citn07 analysis: look at immune cell gene expressions vs. time and cohort, and perform differential expression analyses rm(list=ls()) library(ggplot2) library(pheatmap) source("source_volcplot.r") # coloring function fadecols = function(cols,fade=.5) { fcols = c() for(i in 1:length(cols)) { tmp = ...
/NanoString_cell_scores_and_differential_expression/cell_scores_and_differential_expression - old version.r
permissive
patrickjdanaher/CITN07-nCounter-data-code-results
R
false
false
21,315
r
######### citn07 analysis: look at immune cell gene expressions vs. time and cohort, and perform differential expression analyses rm(list=ls()) library(ggplot2) library(pheatmap) source("source_volcplot.r") # coloring function fadecols = function(cols,fade=.5) { fcols = c() for(i in 1:length(cols)) { tmp = ...
library("reshape2") library("gdxrrw") # Setup working environment setwd("/home/saintlyvi/ckan/FilesFromBryce") gams_lib_dir <- ("/home/saintlyvi/opt/gams/gams24.7_linux_x64_64_sfx") igdx(gams_lib_dir) gdxName <- "tra_results.gdx" # Obtain gdx file info info <- gdxInfo(gdxName, dump = FALSE, returnDF = TRUE) sets <- i...
/W_Gdxrrw.R
no_license
ERC-data/SATIM-analysis-tools
R
false
false
978
r
library("reshape2") library("gdxrrw") # Setup working environment setwd("/home/saintlyvi/ckan/FilesFromBryce") gams_lib_dir <- ("/home/saintlyvi/opt/gams/gams24.7_linux_x64_64_sfx") igdx(gams_lib_dir) gdxName <- "tra_results.gdx" # Obtain gdx file info info <- gdxInfo(gdxName, dump = FALSE, returnDF = TRUE) sets <- i...
library(ChainLadder) library(CARBayes) library(lawstat) I <- 21 data <- read.table("data2121.csv", sep = ",") data <- data[-1, ] data <- data[,-1] x1 <- NULL x2 <- NULL Y <- NULL for(i in 1:(I+1)){ for(j in 1:(I+1)){ if(j > I+2-i){ Y <- c(Y, NA) }else{ Y <- c(Y, data[i,j]) } x1 <- c(x1, i)...
/code/car/winbugs数据准备.R
permissive
gaolei786/gaolei786.github.com
R
false
false
1,156
r
library(ChainLadder) library(CARBayes) library(lawstat) I <- 21 data <- read.table("data2121.csv", sep = ",") data <- data[-1, ] data <- data[,-1] x1 <- NULL x2 <- NULL Y <- NULL for(i in 1:(I+1)){ for(j in 1:(I+1)){ if(j > I+2-i){ Y <- c(Y, NA) }else{ Y <- c(Y, data[i,j]) } x1 <- c(x1, i)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Correlation.R \name{cell_type_organiser} \alias{cell_type_organiser} \title{Low-level function to get cell_ctDist object for one sample} \usage{ cell_type_organiser( coldata_sce, cell_id_column = "rownames", cell_type_column = "cluster"...
/man/cell_type_organiser.Rd
no_license
AlexanderKononov/cytofBrowser
R
false
true
452
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Correlation.R \name{cell_type_organiser} \alias{cell_type_organiser} \title{Low-level function to get cell_ctDist object for one sample} \usage{ cell_type_organiser( coldata_sce, cell_id_column = "rownames", cell_type_column = "cluster"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean.R \name{clean_exclusion_size} \alias{clean_exclusion_size} \title{Function to exclude particles based on their size} \usage{ clean_exclusion_size(data, lower.size, upper.size, diam) } \arguments{ \item{data}{A data frame that will be ma...
/man/clean_exclusion_size.Rd
no_license
UweSchnepf/MPA
R
false
true
695
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean.R \name{clean_exclusion_size} \alias{clean_exclusion_size} \title{Function to exclude particles based on their size} \usage{ clean_exclusion_size(data, lower.size, upper.size, diam) } \arguments{ \item{data}{A data frame that will be ma...
############################################### ## Project 1 SDA - by Jef Masereel, r0631651 ## ############################################### ## NOTE ON CODE REFERENCES # some code was written by reference to the provided exercise solutions from earlier sessions. # besides this, some online sources such as Quick-R ...
/taak 1/code_main.R
no_license
JefMasereel/sda_projects
R
false
false
9,194
r
############################################### ## Project 1 SDA - by Jef Masereel, r0631651 ## ############################################### ## NOTE ON CODE REFERENCES # some code was written by reference to the provided exercise solutions from earlier sessions. # besides this, some online sources such as Quick-R ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/leverage.R \name{leverage2} \alias{leverage2} \alias{leverage2.lm} \alias{leverage2.gls} \alias{leverage2.lme} \alias{leverage2.lvmfit} \alias{leverage2.lm2} \alias{leverage2.gls2} \alias{leverage2.lme2} \alias{leverage2.lvmfit2} \title{Extra...
/fuzzedpackages/lavaSearch2/man/leverage2.Rd
no_license
akhikolla/testpackages
R
false
true
2,306
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/leverage.R \name{leverage2} \alias{leverage2} \alias{leverage2.lm} \alias{leverage2.gls} \alias{leverage2.lme} \alias{leverage2.lvmfit} \alias{leverage2.lm2} \alias{leverage2.gls2} \alias{leverage2.lme2} \alias{leverage2.lvmfit2} \title{Extra...
# ЧАСТЬ 1: делаем data.frame # шаг-1. вчитываем таблицу. делаем из нее датафрейм. MDepths <- read.csv("Depths.csv", header=TRUE, sep = ",") # шаг-2. чистим датафрейм от NA значений MDF <- na.omit(MDepths) row.has.na <- apply(MDF, 1, function(x){any(is.na(x))}) # проверяем, удалил ли все NA sum(row.has.na) # суммиру...
/Cluster_Dendrogramm.R
permissive
paulinelemenkova/R-5-Cluster-Analysis-Dendrogramms-
R
false
false
4,298
r
# ЧАСТЬ 1: делаем data.frame # шаг-1. вчитываем таблицу. делаем из нее датафрейм. MDepths <- read.csv("Depths.csv", header=TRUE, sep = ",") # шаг-2. чистим датафрейм от NA значений MDF <- na.omit(MDepths) row.has.na <- apply(MDF, 1, function(x){any(is.na(x))}) # проверяем, удалил ли все NA sum(row.has.na) # суммиру...
dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActivePower <- as....
/plot4.R
no_license
Rampim/ExploratoryDataAnalysis-Project1
R
false
false
1,279
r
dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActivePower <- as....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lagspec.R \name{polystep_gradient} \alias{polystep_gradient} \title{Gradient of step function specification for MIDAS weights} \usage{ polystep_gradient(p, d, m, a) } \arguments{ \item{p}{vector of parameters} \item{d}{number of coefficients...
/man/polystep_gradient.Rd
no_license
englianhu/midasr
R
false
true
580
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lagspec.R \name{polystep_gradient} \alias{polystep_gradient} \title{Gradient of step function specification for MIDAS weights} \usage{ polystep_gradient(p, d, m, a) } \arguments{ \item{p}{vector of parameters} \item{d}{number of coefficients...
# Data Preprocessing Template # Importing the dataset dataset = read.csv('50_Startups.csv') # Encoding categorical data dataset$State = factor(dataset$State, levels = levels((dataset$State)), labels = c(1:length(levels(dataset$State)))) # Splitting the dataset into ...
/Machine Learning A-Z Template Folder/Part 2 - Regression/Section 5 - Multiple Linear Regression/Multiple_Linear_Regression/Practice/multiple_linear_regression.R
no_license
ujjwal82/Udemy
R
false
false
1,395
r
# Data Preprocessing Template # Importing the dataset dataset = read.csv('50_Startups.csv') # Encoding categorical data dataset$State = factor(dataset$State, levels = levels((dataset$State)), labels = c(1:length(levels(dataset$State)))) # Splitting the dataset into ...
summary.fema <- function(x) { total.effect <- sum(x$rmat * x$dmat) range <- total.effect / sum(x$rmat) std.effect <- total.effect / sum(x$dmat) bdis <- apply(x$slopes, 1, function(z) sqrt(sum(z^2))) strength <- std.effect * mean(bdis) result <- list(coords = x$coords, slopes = x$slopes, rm...
/R/3-fema-summary.R
no_license
aslez/femaR
R
false
false
567
r
summary.fema <- function(x) { total.effect <- sum(x$rmat * x$dmat) range <- total.effect / sum(x$rmat) std.effect <- total.effect / sum(x$dmat) bdis <- apply(x$slopes, 1, function(z) sqrt(sum(z^2))) strength <- std.effect * mean(bdis) result <- list(coords = x$coords, slopes = x$slopes, rm...
\name{ex14.21} \alias{ex14.21} \docType{data} \title{data from exercise 14.21} \description{ The \code{ex14.21} data frame has 24 rows and 1 columns. } \format{ This data frame contains the following columns: \describe{ \item{C1}{ a numeric vector } } } \source{ Devore, J. L. (2003) \emph{Probab...
/man/ex14.21.Rd
no_license
dmbates/Devore6
R
false
false
440
rd
\name{ex14.21} \alias{ex14.21} \docType{data} \title{data from exercise 14.21} \description{ The \code{ex14.21} data frame has 24 rows and 1 columns. } \format{ This data frame contains the following columns: \describe{ \item{C1}{ a numeric vector } } } \source{ Devore, J. L. (2003) \emph{Probab...
setwd("~/dev/feg/day15") x <- seq(-5, 5, by=0.1) #X軸の設定(-5から5まで0.1刻み) p <- 1 / (1 + exp(-x)) #ロジスティック関数 plot(x, p) #図示 summary(p) #pの分布の確認 # Z = 0 + beta * X # alpha = 0 と固定してbetaを0,1,2のように変化させる plot(x, 1/(1 + exp(-(0 + 0 * x))), ylab="p", ylim=c(0,1), xlim=c(-5, 5), col='red') par...
/day15/script.R
no_license
ironpeace/StudyModeling
R
false
false
2,600
r
setwd("~/dev/feg/day15") x <- seq(-5, 5, by=0.1) #X軸の設定(-5から5まで0.1刻み) p <- 1 / (1 + exp(-x)) #ロジスティック関数 plot(x, p) #図示 summary(p) #pの分布の確認 # Z = 0 + beta * X # alpha = 0 と固定してbetaを0,1,2のように変化させる plot(x, 1/(1 + exp(-(0 + 0 * x))), ylab="p", ylim=c(0,1), xlim=c(-5, 5), col='red') par...
## File Name: personfit.R ## File Version: 1.29 #---------------------------------------------------------------------------------- # person fit with logistic regression pf.logist.regression <- function( data, itemdiff, perc=seq(5,100,5) ){ P <- nrow( data ) fits <- rep(0,P) convdis <- .display...
/R/personfit.R
no_license
cran/sirt
R
false
false
9,415
r
## File Name: personfit.R ## File Version: 1.29 #---------------------------------------------------------------------------------- # person fit with logistic regression pf.logist.regression <- function( data, itemdiff, perc=seq(5,100,5) ){ P <- nrow( data ) fits <- rep(0,P) convdis <- .display...
##Load data file and convert date and time to correct classes electric <- read.table("household_power_consumption.txt", sep = ";", na.strings = "?", header = TRUE) electric <- subset(electric, Date == "1/2/2007" | Date == "2/2/2007") ##Plot 1 - Histogram of Global Active Power png(file = "plot1.png") hist(electric$Glo...
/plot1.R
no_license
ecidonex/ExData_Plotting1
R
false
false
432
r
##Load data file and convert date and time to correct classes electric <- read.table("household_power_consumption.txt", sep = ";", na.strings = "?", header = TRUE) electric <- subset(electric, Date == "1/2/2007" | Date == "2/2/2007") ##Plot 1 - Histogram of Global Active Power png(file = "plot1.png") hist(electric$Glo...
data <- read.csv("E:/Nilam/2nd Term/Advanced Database Topics/Projects/Project 1/refugges/1/UNdata_Export_20180512_213810165.csv") retrival_data_Country <- subset(data, Country=="Canada" | Country=="United States") retrival_data <- subset(retrival_data_Country, Year > 1999) final_data <-aggregate(Total.refugees.and.peop...
/3_US_Canda_Year_bar.R
no_license
nilamsavani/Data-Analysis-Using-R
R
false
false
2,299
r
data <- read.csv("E:/Nilam/2nd Term/Advanced Database Topics/Projects/Project 1/refugges/1/UNdata_Export_20180512_213810165.csv") retrival_data_Country <- subset(data, Country=="Canada" | Country=="United States") retrival_data <- subset(retrival_data_Country, Year > 1999) final_data <-aggregate(Total.refugees.and.peop...
#' @title stability model fitting #' #' @param X data sampling time and sampled value as columns. If only #' one column is provided, assumes that the time is uniform #' @param model the model used #' @param p initial parameter guesses, if NULL, will guess from data #' @param ... additional parameters passed to the opti...
/earlywarnings/R/stability_model.R
no_license
cboettig/earlywarnings-R
R
false
false
2,642
r
#' @title stability model fitting #' #' @param X data sampling time and sampled value as columns. If only #' one column is provided, assumes that the time is uniform #' @param model the model used #' @param p initial parameter guesses, if NULL, will guess from data #' @param ... additional parameters passed to the opti...
normalize = function(x) { m <- ncol(x) for (i in 1:m) { x[, i] <- (x[, i] - mean(x[, i])) / sd(x[, i]) } return(x) } centerlize = function(x) { x <- x - mean(x) return(x) } fstep = function(x,y,k){ m <- ncol(x) n <- nrow(x) x <- normalize(x) y <- centerlize(y) beta = as.matrix(rep(0,m),nrow=...
/selected topics of statistics method/homework5/forward step.R
no_license
sjc1995/Learning
R
false
false
578
r
normalize = function(x) { m <- ncol(x) for (i in 1:m) { x[, i] <- (x[, i] - mean(x[, i])) / sd(x[, i]) } return(x) } centerlize = function(x) { x <- x - mean(x) return(x) } fstep = function(x,y,k){ m <- ncol(x) n <- nrow(x) x <- normalize(x) y <- centerlize(y) beta = as.matrix(rep(0,m),nrow=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.finite.R \name{is.finite} \alias{is.finite} \title{fun_name} \usage{ is.finite(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona } \keyword{DJ} \keyword{Werset} \keyword{Wez} \keyword{nie} \keyword{si...
/man/is.finite.Rd
no_license
granatb/RapeR
R
false
true
391
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.finite.R \name{is.finite} \alias{is.finite} \title{fun_name} \usage{ is.finite(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona } \keyword{DJ} \keyword{Werset} \keyword{Wez} \keyword{nie} \keyword{si...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/specieshindex.R \name{FetchGenusTAK} \alias{FetchGenusTAK} \title{FetchGenusTAK wrapper} \usage{ FetchGenusTAK(db, genus, synonyms, additionalkeywords, language = 0) } \arguments{ \item{db}{Literature database. Scopus ("scopus") or Web of Sci...
/man/FetchGenusTAK.Rd
permissive
DrMattG/specieshindex
R
false
true
978
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/specieshindex.R \name{FetchGenusTAK} \alias{FetchGenusTAK} \title{FetchGenusTAK wrapper} \usage{ FetchGenusTAK(db, genus, synonyms, additionalkeywords, language = 0) } \arguments{ \item{db}{Literature database. Scopus ("scopus") or Web of Sci...
MAIN_PATH <- paste0(getwd(), "/") theme_set(theme_bw()) ui <- fluidPage( tags$link(rel = "stylesheet", type = "text/css", href = "my.css"), # .selectize-input doesn't work tags$head( tags$style( "#country1 {border:2px solid #787878;} #country2 {border:2px solid #787878;} #country3 {borde...
/ui.R
permissive
MinhChauVanNguyen/Kaggle_Application
R
false
false
1,036
r
MAIN_PATH <- paste0(getwd(), "/") theme_set(theme_bw()) ui <- fluidPage( tags$link(rel = "stylesheet", type = "text/css", href = "my.css"), # .selectize-input doesn't work tags$head( tags$style( "#country1 {border:2px solid #787878;} #country2 {border:2px solid #787878;} #country3 {borde...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rules.R \name{add_irregular_rule} \alias{add_irregular_rule} \title{Add a custom rule for making "deregularizing" a word} \usage{ add_irregular_rule(irregular_word, regular_word) } \arguments{ \item{irregular_word}{the irregular form of the w...
/man/add_irregular_rule.Rd
permissive
hrbrmstr/pluralize
R
false
true
810
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rules.R \name{add_irregular_rule} \alias{add_irregular_rule} \title{Add a custom rule for making "deregularizing" a word} \usage{ add_irregular_rule(irregular_word, regular_word) } \arguments{ \item{irregular_word}{the irregular form of the w...
#=============================================================================== # source ('test.maxent.R') # To run the current version of the code: base.dir <- '/Users/bill/D/Projects_RMIT/AAA_PapersInProgress/G01\ -\ simulated\ ecology/MaxentTests/' setwd (base.dir) write.to.file ...
/R/test.maxent.R
no_license
langfob/rdv-framework-frozen-google-code-export-do-not-change
R
false
false
53,788
r
#=============================================================================== # source ('test.maxent.R') # To run the current version of the code: base.dir <- '/Users/bill/D/Projects_RMIT/AAA_PapersInProgress/G01\ -\ simulated\ ecology/MaxentTests/' setwd (base.dir) write.to.file ...
# mice is used to impute missing values in datasets # first remove all the rows with missing values in a column # with the left over data , see if there is a relation between the col and other columns # then come back to the original and try to impute the value based on the correlations library(mice) data = airqualit...
/mice.R
no_license
mahtuog/R
R
false
false
857
r
# mice is used to impute missing values in datasets # first remove all the rows with missing values in a column # with the left over data , see if there is a relation between the col and other columns # then come back to the original and try to impute the value based on the correlations library(mice) data = airqualit...
#' Download Oxford non-pharmaceutical interventions data #' #' Downloads non-pharmaceutical interventions (NPI) data related to Covid-19 #' from the Oxford Covid-19 Government Response Tracker. #' (\url{https://www.bsg.ox.ac.uk/research/research-projects/oxford-covid-19-government-response-tracker}). #' It currently on...
/R/download_oxford_npi_data.R
no_license
sydneycbd/tidycovid19
R
false
false
6,243
r
#' Download Oxford non-pharmaceutical interventions data #' #' Downloads non-pharmaceutical interventions (NPI) data related to Covid-19 #' from the Oxford Covid-19 Government Response Tracker. #' (\url{https://www.bsg.ox.ac.uk/research/research-projects/oxford-covid-19-government-response-tracker}). #' It currently on...
writeIndepsToFile <- function(n, tested_independences,write_function, write_data, indFilenameFullPath = "../tmp/pipeline.ind", debugOutput=TRUE) { # Write out independences. if (debugOutput) { debugIndName <- paste(indFilenameFullPath, ".debug.txt", sep="") debugInd <- fil...
/R/solvers/writeIndepsToFile.R
no_license
caus-am/dom_adapt
R
false
false
1,317
r
writeIndepsToFile <- function(n, tested_independences,write_function, write_data, indFilenameFullPath = "../tmp/pipeline.ind", debugOutput=TRUE) { # Write out independences. if (debugOutput) { debugIndName <- paste(indFilenameFullPath, ".debug.txt", sep="") debugInd <- fil...
/reports/XX_data_analysis_pa_extraction_scatterplots.R
no_license
CecSve/InsectMobile_LabMethods
R
false
false
8,046
r
\name{adc.reml.jack} \alias{adc.reml.jack} %- Also NEED an '\alias' for EACH other topic documented here. \title{ ADC model with REML analysis and jackknife resampling test } \description{ ADC model can be analyzed by REML approach for variance components, fixed effects, random effects and tested by a jackknife ...
/man/adc.reml.jack.Rd
no_license
cran/qgtools
R
false
false
3,228
rd
\name{adc.reml.jack} \alias{adc.reml.jack} %- Also NEED an '\alias' for EACH other topic documented here. \title{ ADC model with REML analysis and jackknife resampling test } \description{ ADC model can be analyzed by REML approach for variance components, fixed effects, random effects and tested by a jackknife ...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615837108-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,046
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
## Window function library(Lahman) batting <- select(tbl_df(Batting), playerID, yearID, teamID, AB:H) batting <- arrange(batting, playerID, yearID, teamID) players <- group_by(batting, playerID) # For each player, find the two years with most hits filter(players, H > 0, min_rank(desc(H)) <= 2) %>% arrange(playerID, de...
/myWindowsFuns.R
no_license
jingjin1018/R-tutorial
R
false
false
686
r
## Window function library(Lahman) batting <- select(tbl_df(Batting), playerID, yearID, teamID, AB:H) batting <- arrange(batting, playerID, yearID, teamID) players <- group_by(batting, playerID) # For each player, find the two years with most hits filter(players, H > 0, min_rank(desc(H)) <= 2) %>% arrange(playerID, de...
#' @importFrom IRanges IRanges .importToMongo = function(path, collectionName, fields, dbname = "db", type = "tsv", importCmd = "mongoimport", host = "127.0.0.1") { if (type != "tsv") stop("only handling tsv at this time") if (!verifyHasMongoCmd("mongoimport")) stop("need system command m...
/R/importBedToMongo.R
no_license
vjcitn/TxRegInfra2
R
false
false
2,816
r
#' @importFrom IRanges IRanges .importToMongo = function(path, collectionName, fields, dbname = "db", type = "tsv", importCmd = "mongoimport", host = "127.0.0.1") { if (type != "tsv") stop("only handling tsv at this time") if (!verifyHasMongoCmd("mongoimport")) stop("need system command m...
library(lexRankr) ### Name: sentenceTokenParse ### Title: Parse text into sentences and tokens ### Aliases: sentenceTokenParse ### ** Examples sentenceTokenParse(c("Bill is trying to earn a Ph.D.", "You have to have a 5.0 GPA."), docId=c("d1","d2"))
/data/genthat_extracted_code/lexRankr/examples/sentenceTokenParse.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
276
r
library(lexRankr) ### Name: sentenceTokenParse ### Title: Parse text into sentences and tokens ### Aliases: sentenceTokenParse ### ** Examples sentenceTokenParse(c("Bill is trying to earn a Ph.D.", "You have to have a 5.0 GPA."), docId=c("d1","d2"))
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 202027 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 166848 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 166848 c c Input Parameter (command lin...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Kronegger-Pfandler-Pichler/dungeon/dungeon_i15-m7-u4-v0.pddl_planlen=158/dungeon_i15-m7-u4-v0.pddl_planlen=158.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
203,656
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 202027 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 166848 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 166848 c c Input Parameter (command lin...
library(ggplot2) library(dplyr);library(survival);library(dglm); # Create a dataset similar to linear regression summary viz <- data.frame(mean = rnorm(3, mean = 15, sd = 3), var = rnorm(3, mean = 5, sd = .6), se_mean = rnorm(3, 1, .5), se_var = rnorm(3, .5, .2)) viz ggplot(data = viz, aes(x = mean...
/qPCR2vQTL/crossplot.R
no_license
MRCopeland74/stapleton_lab
R
false
false
486
r
library(ggplot2) library(dplyr);library(survival);library(dglm); # Create a dataset similar to linear regression summary viz <- data.frame(mean = rnorm(3, mean = 15, sd = 3), var = rnorm(3, mean = 5, sd = .6), se_mean = rnorm(3, 1, .5), se_var = rnorm(3, .5, .2)) viz ggplot(data = viz, aes(x = mean...
testlist <- list(b = c(2122252369L, 0L, 0L)) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
/mcga/inst/testfiles/ByteVectorToDoubles/libFuzzer_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1612761202-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
111
r
testlist <- list(b = c(2122252369L, 0L, 0L)) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
`hbrr.integrate3.rhoeq1` <- function(MU,V,A=c(1,1,1),...){ if (V[1,1]!=V[2,2] | V[2,2]!=V[3,3] | MU[1]!=MU[2] | MU[2]!=MU[3]){ stop("when rho=1, then must have V[1,1]=V[2,2]=V[3,3], and MU[1]=MU[2]=MU[3]") } hb.x<-function(x){ out<-(1/(1+10^(A[1]*x)))*(1/(1+10^(A[2]*x)))**(1/(1+10^(A[3...
/R/hbrr.integrate3.rhoeq1.R
no_license
cran/hbim
R
false
false
465
r
`hbrr.integrate3.rhoeq1` <- function(MU,V,A=c(1,1,1),...){ if (V[1,1]!=V[2,2] | V[2,2]!=V[3,3] | MU[1]!=MU[2] | MU[2]!=MU[3]){ stop("when rho=1, then must have V[1,1]=V[2,2]=V[3,3], and MU[1]=MU[2]=MU[3]") } hb.x<-function(x){ out<-(1/(1+10^(A[1]*x)))*(1/(1+10^(A[2]*x)))**(1/(1+10^(A[3...
\name{plotexpRMM} \alias{plotexpRMM} %- Also NEED an '\alias' for EACH other topic documented here. \title{Plot sequences from the EM algorithm for censored mixture of exponentials } \description{Function for plotting sequences of estimates along iterations, from an object returned by the \code{\link{expRMM_EM}}, an EM...
/man/plotexpRMM.Rd
no_license
cran/mixtools
R
false
false
2,489
rd
\name{plotexpRMM} \alias{plotexpRMM} %- Also NEED an '\alias' for EACH other topic documented here. \title{Plot sequences from the EM algorithm for censored mixture of exponentials } \description{Function for plotting sequences of estimates along iterations, from an object returned by the \code{\link{expRMM_EM}}, an EM...
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = c(179.213993135849, 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, 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), temp = c(-2.37643924721573e-212, 1.60286753547645e+159,...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615848347-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
825
r
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = c(179.213993135849, 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, 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), temp = c(-2.37643924721573e-212, 1.60286753547645e+159,...
#' @title A function to save a data frame or a matrix into an Excel file. Uses \code{\link[openxlsx]{openxlsx}} #' @description Given a `fileName`, create new (\code{wb <- openxlsx::createWorkbook(fileName)}) #' or load existing (\code{wb <- openxlsx::loadWorkbook(fileName)}) Excel file. Then, use `save_res` #' to save...
/R/save_res.R
permissive
mdozmorov/MDmisc
R
false
false
1,538
r
#' @title A function to save a data frame or a matrix into an Excel file. Uses \code{\link[openxlsx]{openxlsx}} #' @description Given a `fileName`, create new (\code{wb <- openxlsx::createWorkbook(fileName)}) #' or load existing (\code{wb <- openxlsx::loadWorkbook(fileName)}) Excel file. Then, use `save_res` #' to save...
####Partial dependence plots####### library(randomForest) library(MASS) library(ICEbox) library(caret) library(glmnet) library(knitr) fold<- readRDS("alt") #Decreasingthe amonunt of variables for faster calculation and easier to interpret graphs idx = createDataPartition(y = fold$order, p = 0.2, list = FALSE) fold ...
/PDP and ICEbox .R
no_license
coldbear/CLAVIS-project1
R
false
false
4,299
r
####Partial dependence plots####### library(randomForest) library(MASS) library(ICEbox) library(caret) library(glmnet) library(knitr) fold<- readRDS("alt") #Decreasingthe amonunt of variables for faster calculation and easier to interpret graphs idx = createDataPartition(y = fold$order, p = 0.2, list = FALSE) fold ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/getHyperPars.R \name{getHyperPars} \alias{getHyperPars} \title{Get current parameter settings for a learner.} \usage{ getHyperPars(learner, for.fun = c("train", "predict", "both")) } \arguments{ \item{learner}{[\code{\link{Learner}} |...
/man/getHyperPars.Rd
no_license
dickoa/mlr
R
false
false
1,272
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/getHyperPars.R \name{getHyperPars} \alias{getHyperPars} \title{Get current parameter settings for a learner.} \usage{ getHyperPars(learner, for.fun = c("train", "predict", "both")) } \arguments{ \item{learner}{[\code{\link{Learner}} |...
source("R/src/query.R") ask_query_titles("[[Leaf arrangement::alternate]]", "taxa_with_alternate_leaves.csv")
/R/demo_queries/morphology/taxa_by_leaf_arrangement.R
permissive
jocelynpender/fna-query
R
false
false
111
r
source("R/src/query.R") ask_query_titles("[[Leaf arrangement::alternate]]", "taxa_with_alternate_leaves.csv")
run_analysis <- function() { ##This program assumes to be in a folder in the same level as "test" and ##"train" folder and all other common files like "activity_labels.txt" ##and "features.txt" to run. If not we have to set the working directory ##appropriately through setwd() command a...
/run_analysis.R
no_license
sudiptamuk/GettingAndCleaningData
R
false
false
14,015
r
run_analysis <- function() { ##This program assumes to be in a folder in the same level as "test" and ##"train" folder and all other common files like "activity_labels.txt" ##and "features.txt" to run. If not we have to set the working directory ##appropriately through setwd() command a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataproc_functions.R \name{projects.jobs.list} \alias{projects.jobs.list} \title{Lists jobs in a project.} \usage{ projects.jobs.list(projectId, pageSize = NULL, pageToken = NULL, clusterName = NULL, jobStateMatcher = NULL) } \arguments{ \i...
/googledataprocv1beta1.auto/man/projects.jobs.list.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,313
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataproc_functions.R \name{projects.jobs.list} \alias{projects.jobs.list} \title{Lists jobs in a project.} \usage{ projects.jobs.list(projectId, pageSize = NULL, pageToken = NULL, clusterName = NULL, jobStateMatcher = NULL) } \arguments{ \i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/invsample.R \name{inv_sample} \alias{inv_sample} \title{inv_sample} \usage{ inv_sample(Finv, N = 1, F_distribution = NA) } \arguments{ \item{Finv}{inverse distribution function} \item{N}{number of samples} \item{F_distribution}{distribution...
/man/inv_sample.Rd
no_license
Hoejrup/ACM
R
false
true
865
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/invsample.R \name{inv_sample} \alias{inv_sample} \title{inv_sample} \usage{ inv_sample(Finv, N = 1, F_distribution = NA) } \arguments{ \item{Finv}{inverse distribution function} \item{N}{number of samples} \item{F_distribution}{distribution...
#!/usr/bin/env R ######### Functions ######### ## A function to take a sample of size n from a population "popn" ## and return its mean myexperiment <- function(popn,n){ pop_sample <- sample(popn, n, replace = FALSE) return(mean(pop_sample)) } ## Calculate means using a for loop without preallocation: loopy_samp...
/Week3/Code/sample.R
no_license
rte19/CMEECoursework
R
false
false
2,138
r
#!/usr/bin/env R ######### Functions ######### ## A function to take a sample of size n from a population "popn" ## and return its mean myexperiment <- function(popn,n){ pop_sample <- sample(popn, n, replace = FALSE) return(mean(pop_sample)) } ## Calculate means using a for loop without preallocation: loopy_samp...
# server.R library(RCurl) library(ggplot2) library(stringr) library(reshape2) library(magrittr) library(dplyr) library(scales) library(shiny) library(foreign) library(RColorBrewer) url <- "https://raw.githubusercontent.com/cmrivers/ebola/master/country_timeseries.csv" data <- getURL(url, ssl.verifypeer = FALSE) df <...
/data_products/shinyCountryTimeseries/server.R
permissive
chendaniely/ebola
R
false
false
3,140
r
# server.R library(RCurl) library(ggplot2) library(stringr) library(reshape2) library(magrittr) library(dplyr) library(scales) library(shiny) library(foreign) library(RColorBrewer) url <- "https://raw.githubusercontent.com/cmrivers/ebola/master/country_timeseries.csv" data <- getURL(url, ssl.verifypeer = FALSE) df <...
## I have written comments to give an overall description of what my two functions do # The first function, makeCacheMatrix() creates a special "matrix", which is really a list containing 4 functions: # (1) set the value of the matrix # (2) get the value of the matrix # (3) set the value of the inverse of the matrix #...
/cachematrix.R
no_license
Papazian/ProgrammingAssignment2
R
false
false
1,825
r
## I have written comments to give an overall description of what my two functions do # The first function, makeCacheMatrix() creates a special "matrix", which is really a list containing 4 functions: # (1) set the value of the matrix # (2) get the value of the matrix # (3) set the value of the inverse of the matrix #...
# R script to read SSH from Vassil's N. Atlantic model # Data is Fortran sequential mode, is real*4, runs from 1950 to 2000 and # is monthly means. Missing value = 1e-30 # Script assumes nAtlSSH.R is run first # SSH is in m so muliply by 1000 for mm library(fields) # Domain is Mercator projection: # xn=503 LINEAR ...
/nAtlMonthlySSH2.R
no_license
simonholgate/R-Scripts
R
false
false
11,099
r
# R script to read SSH from Vassil's N. Atlantic model # Data is Fortran sequential mode, is real*4, runs from 1950 to 2000 and # is monthly means. Missing value = 1e-30 # Script assumes nAtlSSH.R is run first # SSH is in m so muliply by 1000 for mm library(fields) # Domain is Mercator projection: # xn=503 LINEAR ...
covid19_ui <- function(id, config) { ns <- NS(id) dimensionId <- ns("dimension") tagList( fluidRow( column( width=12, align="left", p( id="toptext", strong("Informasjonen som finnes på denne siden er anonym, men er ment for kommuneleger fordi det krever kunnskap for ...
/ext/kht/covid19.R
no_license
bedavs/shiny
R
false
false
77,195
r
covid19_ui <- function(id, config) { ns <- NS(id) dimensionId <- ns("dimension") tagList( fluidRow( column( width=12, align="left", p( id="toptext", strong("Informasjonen som finnes på denne siden er anonym, men er ment for kommuneleger fordi det krever kunnskap for ...
library(shiny) shinyUI(fluidPage( # Title Panel titlePanel(title = h2("Iris Dataset", align="center")), sidebarLayout(position = "right", # Sidebar panel with displaying the data, selecting bins for histogram and color changing sidebarPanel( # Widget 1: Checkbox Group checkboxGroupInput("ir...
/ui.R
no_license
mltong/a8_shiny
R
false
false
1,548
r
library(shiny) shinyUI(fluidPage( # Title Panel titlePanel(title = h2("Iris Dataset", align="center")), sidebarLayout(position = "right", # Sidebar panel with displaying the data, selecting bins for histogram and color changing sidebarPanel( # Widget 1: Checkbox Group checkboxGroupInput("ir...
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
/myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615767195-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,803
r
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
drawTaqmanHeatMap <- function( seuratObj, clusterOrderedCells, heatMapHeight, heatMapWidth, showCellNames = FALSE){ #This snippet makes a heatmap for taqman data require( ComplexHeatmap) require( circlize) require( viridis) require( proxy) library( dendsort) source("R/setClusterColors.r") taqmanGenes <- c( "sox1...
/R/drawTaqmanHeatMap.r
permissive
SevaVigg/NanostringDanioNCCscAnalysis
R
false
false
1,805
r
drawTaqmanHeatMap <- function( seuratObj, clusterOrderedCells, heatMapHeight, heatMapWidth, showCellNames = FALSE){ #This snippet makes a heatmap for taqman data require( ComplexHeatmap) require( circlize) require( viridis) require( proxy) library( dendsort) source("R/setClusterColors.r") taqmanGenes <- c( "sox1...
library('e1071') data=read.table("china.data",sep=";") y=data[,9] x=data[c(1:8)] #svm.model <- svm(y) #svm.pred <- predict(svm.model,x) mixture.svm.test <- function(xs.train, ys.train, xs.test=xs.train, ys.test=ys.train, cost=1000, gamma=1E-4) { trainset <- as.data.frame(xs.train) trainset$Y <- ys.train svm.m...
/tools/r/test.svm.china.r
no_license
lysevi/concret
R
false
false
1,542
r
library('e1071') data=read.table("china.data",sep=";") y=data[,9] x=data[c(1:8)] #svm.model <- svm(y) #svm.pred <- predict(svm.model,x) mixture.svm.test <- function(xs.train, ys.train, xs.test=xs.train, ys.test=ys.train, cost=1000, gamma=1E-4) { trainset <- as.data.frame(xs.train) trainset$Y <- ys.train svm.m...
library(RGtk2) ## example showing how to add a toggle button on left of data display ## Define our data frame repos <- getOption("repos") repos["CRAN"] <- "http://streaming.stat.iastate.edu/CRAN" options(repos = repos) avail <- available.packages() installed <- installed.packages() tmp <- merge(avail, installed, by="...
/books/rgui/ch-RGtk2/ex-generic-df-toggle.R
no_license
lawremi/RGtk2
R
false
false
1,934
r
library(RGtk2) ## example showing how to add a toggle button on left of data display ## Define our data frame repos <- getOption("repos") repos["CRAN"] <- "http://streaming.stat.iastate.edu/CRAN" options(repos = repos) avail <- available.packages() installed <- installed.packages() tmp <- merge(avail, installed, by="...
infiles = c('RDP_family_AH_standarized.txt', 'RDP_genus_AH_standarized.txt', 'OTU_AH_standarized.txt', 'genes_CEFITH_standardized.txt') source(file.path('src', 'rf_permutation_test.R')) source(file.path('src', 'preprocess.R')) source(file.path('src', 'cross_validation.R')) mapping_maria = load_data_table(...
/driver_permutation.R
no_license
bhillmann/engraft
R
false
false
585
r
infiles = c('RDP_family_AH_standarized.txt', 'RDP_genus_AH_standarized.txt', 'OTU_AH_standarized.txt', 'genes_CEFITH_standardized.txt') source(file.path('src', 'rf_permutation_test.R')) source(file.path('src', 'preprocess.R')) source(file.path('src', 'cross_validation.R')) mapping_maria = load_data_table(...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170319e+295, 1.36047362703072e-309, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615784937-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
329
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170319e+295, 1.36047362703072e-309, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/languageEntropy.R \name{entropy} \alias{entropy} \title{Simple entropy function} \usage{ entropy(x, base = 2) } \arguments{ \item{x}{A vector of discrete probabilities} \item{base}{Base of the logarithm. Shannon Entropy uses base 2. Other co...
/man/entropy.Rd
permissive
dtitone-lab/languageEntropy
R
false
true
791
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/languageEntropy.R \name{entropy} \alias{entropy} \title{Simple entropy function} \usage{ entropy(x, base = 2) } \arguments{ \item{x}{A vector of discrete probabilities} \item{base}{Base of the logarithm. Shannon Entropy uses base 2. Other co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pricing_bond.R \name{positive_CF} \alias{positive_CF} \title{Bond Cashflow as of a certain date} \usage{ positive_CF(thebond, thedate, ex_day = NULL, year_days = 365) } \arguments{ \item{thebond}{a bond object} \item{thedate}{calculation dat...
/man/positive_CF.Rd
no_license
ormoses/israelcurves
R
false
true
622
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pricing_bond.R \name{positive_CF} \alias{positive_CF} \title{Bond Cashflow as of a certain date} \usage{ positive_CF(thebond, thedate, ex_day = NULL, year_days = 365) } \arguments{ \item{thebond}{a bond object} \item{thedate}{calculation dat...
#' #' weightedStats.R #' #' weighted versions of hist, var, median, quantile #' #' $Revision: 1.3 $ $Date: 2017/06/05 10:31:58 $ #' #' #' whist weighted histogram #' whist <- function(x, breaks, weights=NULL) { N <- length(breaks) if(length(x) == 0) h <- numeric(N+1) else { #...
/R/weightedStats.R
no_license
rubak/spatstat
R
false
false
2,556
r
#' #' weightedStats.R #' #' weighted versions of hist, var, median, quantile #' #' $Revision: 1.3 $ $Date: 2017/06/05 10:31:58 $ #' #' #' whist weighted histogram #' whist <- function(x, breaks, weights=NULL) { N <- length(breaks) if(length(x) == 0) h <- numeric(N+1) else { #...
\name{gcd.coef} \alias{gcd.coef} \title{Computes Yanai's GCD in the context of the variable-subset selection problem} \description{ Computes Yanai's Generalized Coefficient of Determination for the similarity of the subspaces spanned by a subset of variables and a subset of the full data set's Principal Components. ...
/man/gcd.Rd
no_license
cran/subselect
R
false
false
3,828
rd
\name{gcd.coef} \alias{gcd.coef} \title{Computes Yanai's GCD in the context of the variable-subset selection problem} \description{ Computes Yanai's Generalized Coefficient of Determination for the similarity of the subspaces spanned by a subset of variables and a subset of the full data set's Principal Components. ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/VisGraphAuto.R \name{linksForAll} \alias{linksForAll} \title{For a environnement, give all dependencies} \usage{ linksForAll(envir) } \arguments{ \item{envir}{: environment where the function should search dependencies.} } \value{ Dataframe w...
/man/linksForAll.Rd
no_license
Deepstatsanalysis/DependenciesGraphs
R
false
true
418
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/VisGraphAuto.R \name{linksForAll} \alias{linksForAll} \title{For a environnement, give all dependencies} \usage{ linksForAll(envir) } \arguments{ \item{envir}{: environment where the function should search dependencies.} } \value{ Dataframe w...
\name{partialDependenceBetweenPredictors} \alias{partialDependenceBetweenPredictors} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Partial Dependence between Predictors and effect over Response} \description{ Computes partial dependence between two predictors, and their effects on res...
/man/partialDependenceBetweenPredictors.Rd
no_license
cran/randomUniformForest
R
false
false
7,955
rd
\name{partialDependenceBetweenPredictors} \alias{partialDependenceBetweenPredictors} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Partial Dependence between Predictors and effect over Response} \description{ Computes partial dependence between two predictors, and their effects on res...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/conveniencefunctions.R \name{factorial} \alias{factorial} \title{Factorial} \usage{ factorial(x) } \arguments{ \item{x}{numeric vector} } \value{ numeric value of factorial } \description{ Function to calculate the factorial of a variable } \...
/man/factorial.Rd
permissive
libby-czarniak/QBS181_ConvenienceFunctions
R
false
true
346
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/conveniencefunctions.R \name{factorial} \alias{factorial} \title{Factorial} \usage{ factorial(x) } \arguments{ \item{x}{numeric vector} } \value{ numeric value of factorial } \description{ Function to calculate the factorial of a variable } \...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/normalize_quantile.R \name{normalize_quantile} \alias{normalize_quantile} \title{Quantile Normalization} \usage{ normalize_quantile(omicsData) } \arguments{ \item{omicsData}{an object of the class 'pepData', 'proData', 'metabData', 'lipidData...
/man/normalize_quantile.Rd
permissive
clabornd/pmartR
R
false
true
1,752
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/normalize_quantile.R \name{normalize_quantile} \alias{normalize_quantile} \title{Quantile Normalization} \usage{ normalize_quantile(omicsData) } \arguments{ \item{omicsData}{an object of the class 'pepData', 'proData', 'metabData', 'lipidData...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dimensionsOfDepression.R \name{print.dimDepression} \alias{print.dimDepression} \title{Change the print function for the data set: \code{dimDepression} #' Change the print function for the data set: \code{dimDepression}.} \usage{ \method{prin...
/man/print.dimDepression.Rd
no_license
HerveAbdi/data4PCCAR
R
false
true
628
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dimensionsOfDepression.R \name{print.dimDepression} \alias{print.dimDepression} \title{Change the print function for the data set: \code{dimDepression} #' Change the print function for the data set: \code{dimDepression}.} \usage{ \method{prin...
### Exercise 5 ### library(jsonlite) library(dplyr) library(httr) # Write a function that allows you to specify a movie, that does the following: GetReview <- function(movie) { # base base.uri <- 'https://api.nytimes.com/svc/movies/v2/reviews/search.json?' api.key <- '3e692bfb56664a00bf9d6c11cb4dc4a6' #...
/exercise-5/exercise.R
permissive
Kidusyohanes/m12-apis
R
false
false
1,839
r
### Exercise 5 ### library(jsonlite) library(dplyr) library(httr) # Write a function that allows you to specify a movie, that does the following: GetReview <- function(movie) { # base base.uri <- 'https://api.nytimes.com/svc/movies/v2/reviews/search.json?' api.key <- '3e692bfb56664a00bf9d6c11cb4dc4a6' #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circle.R \name{geom_circle} \alias{geom_circle} \alias{stat_circle} \title{Circles based on center and radius} \usage{ stat_circle(mapping = NULL, data = NULL, geom = "circle", position = "identity", n = 360, na.rm = FALSE, show.legend = NA...
/man/geom_circle.Rd
permissive
AlexPersa7/ggforce
R
false
true
4,440
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circle.R \name{geom_circle} \alias{geom_circle} \alias{stat_circle} \title{Circles based on center and radius} \usage{ stat_circle(mapping = NULL, data = NULL, geom = "circle", position = "identity", n = 360, na.rm = FALSE, show.legend = NA...
setwd("D:/Study/Data Science/The Analytics Edge-edX/Hands On/Unit4_Trees") getwd() # load the claim data Claims = read.csv("ClaimsData.csv") str(Claims) table(Claims$bucket2009)/nrow(Claims) library(caTools) set.seed(88) # Splitting the data spl = sample.split(Claims$bucket2009, SplitRatio = 0.6) ClaimsTrain = sub...
/Hands_On_exercises/Unit4_Trees/Healthbucket.R
no_license
abhishekporwal1991/AnalyticsEdge_Assignments
R
false
false
3,052
r
setwd("D:/Study/Data Science/The Analytics Edge-edX/Hands On/Unit4_Trees") getwd() # load the claim data Claims = read.csv("ClaimsData.csv") str(Claims) table(Claims$bucket2009)/nrow(Claims) library(caTools) set.seed(88) # Splitting the data spl = sample.split(Claims$bucket2009, SplitRatio = 0.6) ClaimsTrain = sub...
# Yige Wu @WashU Jun 2020 # set up libraries and output directory ----------------------------------- ## set working directory dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" setwd(dir_base) source("./ccRCC_snRNA_analysis/load_pkgs.R") source("./ccRCC_snRNA_analysis/functions.R") source("./ccRCC_snRNA_an...
/findmarkers/findmarkers_germline/volcanoplot_germline_vhl_vs_2rd_somatic_nonsense_tumorcells.R
no_license
ding-lab/ccRCC_snRNA_analysis
R
false
false
6,320
r
# Yige Wu @WashU Jun 2020 # set up libraries and output directory ----------------------------------- ## set working directory dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" setwd(dir_base) source("./ccRCC_snRNA_analysis/load_pkgs.R") source("./ccRCC_snRNA_analysis/functions.R") source("./ccRCC_snRNA_an...
## Prep draw data #' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param data_draws PARAM_DESCRIPTION #' @param metadata_list PARAM_DESCRIPTION #' @return OUTPUT_DESCRIPTION #' @details DETAILS #' @examples #' \dontrun{ #' if(interactive()){ #' #EXAMPLE1 #' } #' } #' @seealso #' \code{\link[reshape2...
/AFModel/R/prep_array_for_copula.R
permissive
sadatnfs/AFModel
R
false
false
720
r
## Prep draw data #' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param data_draws PARAM_DESCRIPTION #' @param metadata_list PARAM_DESCRIPTION #' @return OUTPUT_DESCRIPTION #' @details DETAILS #' @examples #' \dontrun{ #' if(interactive()){ #' #EXAMPLE1 #' } #' } #' @seealso #' \code{\link[reshape2...
context("sfg_polygon") test_that("sfg polygon", { expect_error( sfheaders:::rcpp_sfg_polygon( 1L:2L, NULL, NULL ), "sfheaders - expecting a matrix" ) expect_error( sfheaders:::rcpp_sfg_polygon( c(1.2,2), NULL, NULL ), "sfheaders - expecting a matrix" ) expect_error( sfheaders:::rcpp_sfg_polygon( 1L:2L, c(0L,1L...
/tests/testthat/test-sfg_polygon.R
no_license
mdsumner/sfheaders
R
false
false
5,737
r
context("sfg_polygon") test_that("sfg polygon", { expect_error( sfheaders:::rcpp_sfg_polygon( 1L:2L, NULL, NULL ), "sfheaders - expecting a matrix" ) expect_error( sfheaders:::rcpp_sfg_polygon( c(1.2,2), NULL, NULL ), "sfheaders - expecting a matrix" ) expect_error( sfheaders:::rcpp_sfg_polygon( 1L:2L, c(0L,1L...
# Link to Python environment================================ library(reticulate) use_python("C:/Users/amaxwel6/Anaconda3/envs/pytorchSB3/python.exe", required=TRUE) py_config()
/PyTorch_UNetPP_wvlcDL/prep_py_in_r.R
no_license
carlos-alberto-silva/wvview_geodl_examples
R
false
false
178
r
# Link to Python environment================================ library(reticulate) use_python("C:/Users/amaxwel6/Anaconda3/envs/pytorchSB3/python.exe", required=TRUE) py_config()
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gene_exam_db.R \docType{data} \name{gene_exam_db} \alias{gene_exam_db} \title{Data file for annoByGene vignette} \format{ Data table object } \usage{ data(gene_exam_db) } \description{ Data used in example code of \code{annoByGene} } \example...
/man/gene_exam_db.Rd
no_license
bioinfo16/RIPAT
R
false
true
364
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gene_exam_db.R \docType{data} \name{gene_exam_db} \alias{gene_exam_db} \title{Data file for annoByGene vignette} \format{ Data table object } \usage{ data(gene_exam_db) } \description{ Data used in example code of \code{annoByGene} } \example...
# библиотеки library(openxlsx) library(stringr) # указать правильное название файла и путь до него emails <- read.xlsx("input.xlsx", rowNames = FALSE) expression <- c("([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+.[a-zA-Z0-9_-]+)") #вместо "emails$string" указать нужную колонку таблицы emails$email <- str_match(emails$string, expr...
/email_extracter.R
no_license
uasmgt/further_drafting
R
false
false
448
r
# библиотеки library(openxlsx) library(stringr) # указать правильное название файла и путь до него emails <- read.xlsx("input.xlsx", rowNames = FALSE) expression <- c("([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+.[a-zA-Z0-9_-]+)") #вместо "emails$string" указать нужную колонку таблицы emails$email <- str_match(emails$string, expr...
## 1.makeCacheMatrix: This function creates a special "matrix" object that caches its inverse. ## 2.cacheSolve: This function computes the inverse of the special "matrix" returned by makeCacheMatrix. ## Write a short comment describing this function ## 1.makeCacheMatrix: This function creates a special "matrix" ...
/cachematrix.R
no_license
sgtwiltan/ProgrammingAssignment2
R
false
false
1,784
r
## 1.makeCacheMatrix: This function creates a special "matrix" object that caches its inverse. ## 2.cacheSolve: This function computes the inverse of the special "matrix" returned by makeCacheMatrix. ## Write a short comment describing this function ## 1.makeCacheMatrix: This function creates a special "matrix" ...
#' the labellers require(MCMCpack) create_oracle_with_hole <- function(data, center, radius, v_in=0.1, v_out=3) { classes <- levels(data[,1]) nclasses <- length(classes) function(x) { labels <- data[,1][apply(x, 1, function(z) which(apply(data[,-1], 1, function(v) all(v==z)) )[1])] is_out <-...
/examples/example2_combined/labellers.R
no_license
antiphon/active-learning
R
false
false
579
r
#' the labellers require(MCMCpack) create_oracle_with_hole <- function(data, center, radius, v_in=0.1, v_out=3) { classes <- levels(data[,1]) nclasses <- length(classes) function(x) { labels <- data[,1][apply(x, 1, function(z) which(apply(data[,-1], 1, function(v) all(v==z)) )[1])] is_out <-...
#' Maximum Likelihood for the Beta-binomial Distribution #' #' @param formula an object of class \code{formula}: a symbolic description of the model to be fitted to the abundance #' @param phi.formula an object of class \code{formula} without the response: a symbolic description of the model to be fitted to the dispers...
/R/bbdml.R
no_license
aa-m-sa/corncob
R
false
false
14,362
r
#' Maximum Likelihood for the Beta-binomial Distribution #' #' @param formula an object of class \code{formula}: a symbolic description of the model to be fitted to the abundance #' @param phi.formula an object of class \code{formula} without the response: a symbolic description of the model to be fitted to the dispers...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/addins.R \name{live_preview} \alias{live_preview} \alias{live_preview_stop} \title{Serve a Live Preview} \usage{ live_preview( path = getwd(), update_pattern = "[.](js|css|[Rr]?[Mm][Dd]|html?|s[ca]ss)$", ..., render_quietly = getOptio...
/man/live_preview.Rd
permissive
gadenbuie/js4shiny
R
false
true
4,277
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/addins.R \name{live_preview} \alias{live_preview} \alias{live_preview_stop} \title{Serve a Live Preview} \usage{ live_preview( path = getwd(), update_pattern = "[.](js|css|[Rr]?[Mm][Dd]|html?|s[ca]ss)$", ..., render_quietly = getOptio...
library(shiny) library(ggplot2) # Create a shiny server that creates a scatterplot. # It should take as an input the x_var, y_var, color, and size # Save the result of `renderPlot` to output$scatter shinyServer(function(input, output) { output$scatter <- renderPlot({ # Store x and y values to plot x <- mpg[...
/exercise-3/server.R
permissive
DDaiJ/ch16-shiny
R
false
false
733
r
library(shiny) library(ggplot2) # Create a shiny server that creates a scatterplot. # It should take as an input the x_var, y_var, color, and size # Save the result of `renderPlot` to output$scatter shinyServer(function(input, output) { output$scatter <- renderPlot({ # Store x and y values to plot x <- mpg[...
A = matrix(c(-200/3,-100/3,-100/3,-200/3),ncol = 2, byrow = F) A eigen(A) A = matrix(c(0.36,0.48,0,0.48,0.64,0,0,0,2),ncol = 3, byrow = F) A eigen(A) B = matrix(c('x1', 'x2','x3'),ncol = 1) B C = matrix(c(0,0,0)) C det(A)
/Eigen Values.R
no_license
mukulmunjal/R
R
false
false
242
r
A = matrix(c(-200/3,-100/3,-100/3,-200/3),ncol = 2, byrow = F) A eigen(A) A = matrix(c(0.36,0.48,0,0.48,0.64,0,0,0,2),ncol = 3, byrow = F) A eigen(A) B = matrix(c('x1', 'x2','x3'),ncol = 1) B C = matrix(c(0,0,0)) C det(A)
#' Generate Price Predictions on New BMW Data #' #' Generates price predictions on new BMW data using the final model. Note that the data frame #' must be passed through the auto_clean function prior to using the auto_predict function. #' #' @return Returns price predictions for new BMW data. #' @author Nick Bultman, ...
/R/auto_predict.R
permissive
njbultman/datacampBMWProd
R
false
false
1,318
r
#' Generate Price Predictions on New BMW Data #' #' Generates price predictions on new BMW data using the final model. Note that the data frame #' must be passed through the auto_clean function prior to using the auto_predict function. #' #' @return Returns price predictions for new BMW data. #' @author Nick Bultman, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_covid.R \name{plot_coronavirus} \alias{plot_coronavirus} \title{plot_coronavirus} \usage{ plot_coronavirus( coronavirus_br, xaxis = "date", yaxis = "cases", color = NULL, log_scale = FALSE, linear_smooth = FALSE, filter_var...
/man/plot_coronavirus.Rd
permissive
mralbu/coronavirusbrazil
R
false
true
909
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_covid.R \name{plot_coronavirus} \alias{plot_coronavirus} \title{plot_coronavirus} \usage{ plot_coronavirus( coronavirus_br, xaxis = "date", yaxis = "cases", color = NULL, log_scale = FALSE, linear_smooth = FALSE, filter_var...
library(RUnit) test.vector.immutable <- function() { original <- 1:4 copy <- original original[2] <- -99 checkEquals(c(1,-99,3,4),original) # copy is an isolated copy, NOT just copy the reference # changes on the original won't affect copy checkEquals(c(1,2,3,4),copy) # same for the reverse ...
/R/testr/runit_immutable.R
no_license
stasi009/TestDrivenLearn
R
false
false
861
r
library(RUnit) test.vector.immutable <- function() { original <- 1:4 copy <- original original[2] <- -99 checkEquals(c(1,-99,3,4),original) # copy is an isolated copy, NOT just copy the reference # changes on the original won't affect copy checkEquals(c(1,2,3,4),copy) # same for the reverse ...