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
context("tidy capture") test_that("explicit dots make a list of formulas", { fs <- quos(x = 1 + 2, y = 2 + 3) f1 <- as_quosure(~ 1 + 2) f2 <- as_quosure(~ 2 + 3) expect_identical(fs$x, f1) expect_identical(fs$y, f2) }) test_that("quos() produces correct formulas", { fn <- function(x = a + b, ...) { l...
/packrat/lib/x86_64-w64-mingw32/3.4.3/rlang/tests/testthat/test-tidy-capture.R
permissive
UBC-MDS/Karl
R
false
false
6,027
r
context("tidy capture") test_that("explicit dots make a list of formulas", { fs <- quos(x = 1 + 2, y = 2 + 3) f1 <- as_quosure(~ 1 + 2) f2 <- as_quosure(~ 2 + 3) expect_identical(fs$x, f1) expect_identical(fs$y, f2) }) test_that("quos() produces correct formulas", { fn <- function(x = a + b, ...) { l...
/Transformation_Analysis_by_Sample.R
no_license
lpf19901112/Microbe-metabolite-co-ssembly
R
false
false
6,733
r
# List packages -------------------------------------------------------------- #' List Packages Used in File(s) #' #' These functions search for patterns, such as `library(pkg)`, `require(pkg)`, #' `pkg::function()`, or `data(package = "pkg")` and return package names from #' these expressions. #' #' @param path Path ...
/R/packages--find.R
permissive
jimsforks/bio
R
false
false
2,655
r
# List packages -------------------------------------------------------------- #' List Packages Used in File(s) #' #' These functions search for patterns, such as `library(pkg)`, `require(pkg)`, #' `pkg::function()`, or `data(package = "pkg")` and return package names from #' these expressions. #' #' @param path Path ...
## The purpose of this function is to understand "<<-" operator and ## use cache results if exists otherwise calcute and cache the result. ## Below two functions are used to create a special object that stores ## a matrix and caches it's inverse. ## makeCacheMatrix: This function creates a special "matrix", ## whic...
/cachematrix.R
no_license
snkandula/ProgrammingAssignment2
R
false
false
1,409
r
## The purpose of this function is to understand "<<-" operator and ## use cache results if exists otherwise calcute and cache the result. ## Below two functions are used to create a special object that stores ## a matrix and caches it's inverse. ## makeCacheMatrix: This function creates a special "matrix", ## whic...
library(testthat) library(ntbgraphics) test_check("ntbgraphics")
/tests/testthat.R
no_license
volkmannp/ntbgraphics
R
false
false
66
r
library(testthat) library(ntbgraphics) test_check("ntbgraphics")
library("ggplot2") language.province <- read.csv("place-language.csv") language.top25 <- as.data.frame(summary(language.province$language, max=25)) language.top25.df <- data.frame(language=row.names(language.top25), devs=language.top25$"summary(language.province$language, max = 25)") l...
/data/plot-languages.R
permissive
JJ/quienes-somos.github.io
R
false
false
1,429
r
library("ggplot2") language.province <- read.csv("place-language.csv") language.top25 <- as.data.frame(summary(language.province$language, max=25)) language.top25.df <- data.frame(language=row.names(language.top25), devs=language.top25$"summary(language.province$language, max = 25)") l...
#' Do k-means clustering on data matrix, genes in rownames, samples in columnnames #' Input: Numeric only data matrix with gene names in rownames #' Output: prints clustered heatmap #' #' #' @param data_matrix matrix or dataframe to cluster, numeric only #' @param k_clusters cluster number, default = 5 #' @param cols...
/R/do_kmeans_clustering.R
no_license
KSheu/ksheu.library1
R
false
false
1,887
r
#' Do k-means clustering on data matrix, genes in rownames, samples in columnnames #' Input: Numeric only data matrix with gene names in rownames #' Output: prints clustered heatmap #' #' #' @param data_matrix matrix or dataframe to cluster, numeric only #' @param k_clusters cluster number, default = 5 #' @param cols...
require(dplyr) require(reshape) require(ggplot2) db <- read.csv("C://Data/PhD/Processed_data/Dungbeetles/db_spXsite.csv",row.names=1) head(db) rowSums(db) Habitat <- c(rep("1.Banana",3),rep("2.Agroforestry",3),rep("3.Dist.Secondary",3),rep("4. Cleared regen.",3),rep("5.Mixed",3),rep("6. Min Dist.",3)) db.a <- as.data...
/db_abundances.r
no_license
laurajallen/dungbeetlesmanu
R
false
false
2,041
r
require(dplyr) require(reshape) require(ggplot2) db <- read.csv("C://Data/PhD/Processed_data/Dungbeetles/db_spXsite.csv",row.names=1) head(db) rowSums(db) Habitat <- c(rep("1.Banana",3),rep("2.Agroforestry",3),rep("3.Dist.Secondary",3),rep("4. Cleared regen.",3),rep("5.Mixed",3),rep("6. Min Dist.",3)) db.a <- as.data...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/breast.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.25,family="gaussian",standardize=FALSE) sink('./breast_038.txt',append=TRUE) prin...
/Model/EN/Lasso/breast/breast_038.R
no_license
esbgkannan/QSMART
R
false
false
345
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/breast.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.25,family="gaussian",standardize=FALSE) sink('./breast_038.txt',append=TRUE) prin...
#' Remove files #' #' \code{wflow_remove} removes files. If the file to be removed is an R Markdown #' file, the corresponding HTML and other related files are also removed. If the #' workflowr project uses Git, \code{wflow_remove} commits the changes. #' #' @param files character. Files to be removed. Supports file #'...
/R/wflow_remove.R
permissive
lazappi/workflowr
R
false
false
7,663
r
#' Remove files #' #' \code{wflow_remove} removes files. If the file to be removed is an R Markdown #' file, the corresponding HTML and other related files are also removed. If the #' workflowr project uses Git, \code{wflow_remove} commits the changes. #' #' @param files character. Files to be removed. Supports file #'...
library(dplyr) library(tidyr) library(ggplot2) library(scales) library(gridExtra) set.seed(7) df <- data.frame( id = 1:10, from = as.Date(Sys.Date()) + sample(1:20, 10, TRUE)) %>% mutate( to = from + sample(3:10, 10, TRUE)) res <- df %>% rowwise %>% mutate(day.gap = list(0:(to - from))) %>% ...
/201810/1.flatrate/flatrate_answer.R
permissive
loveactualry/weekly_R_quiz
R
false
false
1,556
r
library(dplyr) library(tidyr) library(ggplot2) library(scales) library(gridExtra) set.seed(7) df <- data.frame( id = 1:10, from = as.Date(Sys.Date()) + sample(1:20, 10, TRUE)) %>% mutate( to = from + sample(3:10, 10, TRUE)) res <- df %>% rowwise %>% mutate(day.gap = list(0:(to - from))) %>% ...
attach(ProjectData) ###Changing the NA values to 0 for the principal component analysis ProjectData[is.na(ProjectData)]<-0 ###Principal Component Analysis in R ProjectData.pca<-princomp(ProjectData) ###Combining the 16 components used in the NorStOP data for a factor analysis X<-cbind(Head,Spine,Neck,Chest,Abdome...
/Factor Analysis Coding.R
no_license
Liam-Wilkinson/Statistics-in-R
R
false
false
1,348
r
attach(ProjectData) ###Changing the NA values to 0 for the principal component analysis ProjectData[is.na(ProjectData)]<-0 ###Principal Component Analysis in R ProjectData.pca<-princomp(ProjectData) ###Combining the 16 components used in the NorStOP data for a factor analysis X<-cbind(Head,Spine,Neck,Chest,Abdome...
# nolint start proj <- "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs" hr_path <- system.file("extdata/03_sub.gpkg", package = "mainstems") hr_catchment <- sf::read_sf(hr_path, "NHDPlusCatchment") hr_catchment <- sf::st_transform(hr_catchmen...
/mainstems/inst/extdata/nhdplushr_data.R
permissive
jsta/HU12_NHD
R
false
false
582
r
# nolint start proj <- "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs" hr_path <- system.file("extdata/03_sub.gpkg", package = "mainstems") hr_catchment <- sf::read_sf(hr_path, "NHDPlusCatchment") hr_catchment <- sf::st_transform(hr_catchmen...
library(neuroim2) library(dplyr) library(purrr) path <- "/Users/bbuchsbaum/Dropbox/code/group_cluster/" fnames <- paste0(c("sub-2005", "sub-2002", "sub-2003", "sub-2004"), "_all_iresp.nii.gz") mask <- read_vol(paste0(path, "gray_mask_small.nii")) initclus <- tesselate(mask, 300) initmeans <- lapply(fnames, function(...
/testdata/test_group_cluster.R
no_license
bbuchsbaum/neurocluster
R
false
false
474
r
library(neuroim2) library(dplyr) library(purrr) path <- "/Users/bbuchsbaum/Dropbox/code/group_cluster/" fnames <- paste0(c("sub-2005", "sub-2002", "sub-2003", "sub-2004"), "_all_iresp.nii.gz") mask <- read_vol(paste0(path, "gray_mask_small.nii")) initclus <- tesselate(mask, 300) initmeans <- lapply(fnames, function(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geneExpressionPreProcessing.R \name{imputeYchrom.useAllTimepoints} \alias{imputeYchrom.useAllTimepoints} \title{Impute presence of y chromosome based on expression of Y chromosome-related genes and flag for QC if values do not match} \usage{ ...
/man/imputeYchrom.useAllTimepoints.Rd
no_license
RGLab/ImmuneSignatures2
R
false
true
536
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geneExpressionPreProcessing.R \name{imputeYchrom.useAllTimepoints} \alias{imputeYchrom.useAllTimepoints} \title{Impute presence of y chromosome based on expression of Y chromosome-related genes and flag for QC if values do not match} \usage{ ...
#---------------------------------------------------------------------------- # rTorch.examples # # Package logger setup #---------------------------------------------------------------------------- .logger_name <- "rTorch.examples" .pkg_logger <- logging::getLogger(.logger_name) .pkg_logger$setLevel("FINEST") pkg_lo...
/packages/rTorch.examples/R/package_logger.R
no_license
f0nzie/rTorch-examples-rsuite
R
false
false
1,313
r
#---------------------------------------------------------------------------- # rTorch.examples # # Package logger setup #---------------------------------------------------------------------------- .logger_name <- "rTorch.examples" .pkg_logger <- logging::getLogger(.logger_name) .pkg_logger$setLevel("FINEST") pkg_lo...
testlist <- list(ExpressionSet = structure(c(3.10503529562433e+231, 8428453327.94702, 1.52478221747831e+245, 6.36967296041789e+178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), Phylostratum = numeric(0)) result <- do.call(myTAI:::cpp_TAI,testlist) s...
/myTAI/inst/testfiles/cpp_TAI/AFL_cpp_TAI/cpp_TAI_valgrind_files/1615763211-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
330
r
testlist <- list(ExpressionSet = structure(c(3.10503529562433e+231, 8428453327.94702, 1.52478221747831e+245, 6.36967296041789e+178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), Phylostratum = numeric(0)) result <- do.call(myTAI:::cpp_TAI,testlist) s...
#--- # longTermWeather <- do.call(rbind,hist_wdata) %>% # filter(station == 'GHCND:USW00093814', # datatype == 'TMAX') %>% # mutate(min = (1.8*(value/10))+32) %>% # select(date, min) # This scrapes the names of all the files on the FTP site # Arranges them by date # Then selects the most recent file for...
/Data/WxRisk_forecast_pull.R
no_license
jpn5089/Wx_Charts
R
false
false
2,783
r
#--- # longTermWeather <- do.call(rbind,hist_wdata) %>% # filter(station == 'GHCND:USW00093814', # datatype == 'TMAX') %>% # mutate(min = (1.8*(value/10))+32) %>% # select(date, min) # This scrapes the names of all the files on the FTP site # Arranges them by date # Then selects the most recent file for...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gendr.R \name{gendr} \alias{gendr} \alias{gendr_warning} \title{Do not assign gender to someone} \usage{ gendr(names = NULL, locations = NULL, languages = NULL, years = NULL, methods = "standard") gendr_warning() } \arguments{ \item{names}...
/man/gendr.Rd
permissive
chuckleong21/gendrendr
R
false
true
2,091
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gendr.R \name{gendr} \alias{gendr} \alias{gendr_warning} \title{Do not assign gender to someone} \usage{ gendr(names = NULL, locations = NULL, languages = NULL, years = NULL, methods = "standard") gendr_warning() } \arguments{ \item{names}...
library(shiny) shinyServer(function(input, output) { output$scatter <- renderPlot({ x <- rnorm(input$num) y <- rnorm(input$num) return (scatter(x,y)) }) })
/exercise-2/server.R
no_license
heygina/lecture-14-exercises
R
false
false
173
r
library(shiny) shinyServer(function(input, output) { output$scatter <- renderPlot({ x <- rnorm(input$num) y <- rnorm(input$num) return (scatter(x,y)) }) })
## # Test if h2o.rm removes objects from the client ## test <- function() { iris_hex = as.h2o(iris) model = h2o.glm(1:4,5,training=iris_hex) h2o.rm(iris_hex) expect_false(exists('iris_hex')) h2o.rm(model) expect_false(exists('model')) iris_hex = as.h2o(iris) model = h2o.glm(1:4,5,training=i...
/h2o-r/tests/testdir_misc/runit_remove.R
permissive
sudarshan4455/h2o-3
R
false
false
559
r
## # Test if h2o.rm removes objects from the client ## test <- function() { iris_hex = as.h2o(iris) model = h2o.glm(1:4,5,training=iris_hex) h2o.rm(iris_hex) expect_false(exists('iris_hex')) h2o.rm(model) expect_false(exists('model')) iris_hex = as.h2o(iris) model = h2o.glm(1:4,5,training=i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/languages.R \name{HPT_languages} \alias{HPT_languages} \title{HPT languages} \usage{ HPT_languages() } \description{ Lists the languages available for HPT implementations. }
/man/HPT_languages.Rd
permissive
klausfrieler/HPT
R
false
true
252
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/languages.R \name{HPT_languages} \alias{HPT_languages} \title{HPT languages} \usage{ HPT_languages() } \description{ Lists the languages available for HPT implementations. }
require(RCurl) library(stringr) library(tm) library(ggmap) library(dplyr) library(plyr) library(tm) library(wordcloud) library(SnowballC) temp <- list.files(path ="C:\\Users\\suramrit\\Documents\\R\\Primary Data",pattern="*.json",full.names=TRUE) primary_data<- data.frame() candidates <- c("donald trump|trump|donald",...
/prob5/suramrit_prob_5_datacollection.R
no_license
suramrit/Twitter-Analysis-using-R
R
false
false
5,215
r
require(RCurl) library(stringr) library(tm) library(ggmap) library(dplyr) library(plyr) library(tm) library(wordcloud) library(SnowballC) temp <- list.files(path ="C:\\Users\\suramrit\\Documents\\R\\Primary Data",pattern="*.json",full.names=TRUE) primary_data<- data.frame() candidates <- c("donald trump|trump|donald",...
## Put comments here that give an overall description of what your ## functions do ## creates a cache of a given matrix's inverse makeCacheMatrix <- function(x = matrix()) { #1. gets the matrix #2. sets the matrix #3. sets the inverse of the matrix by solve and caches it #4. gets the cached inverse cache...
/cachematrix.R
no_license
SpataC/ProgrammingAssignment2
R
false
false
911
r
## Put comments here that give an overall description of what your ## functions do ## creates a cache of a given matrix's inverse makeCacheMatrix <- function(x = matrix()) { #1. gets the matrix #2. sets the matrix #3. sets the inverse of the matrix by solve and caches it #4. gets the cached inverse cache...
make_df_colnames <- function(tbl){ rm_txt <- c("DEFENSIVE PLAYERS ", "PLAYERS ", "KICKERS ", "[[:cntrl:]]", "Sort", "First:", "Last:", "^Projected ", "\\sWeek [0-9]+", "\\sWild Card", "\\sDivisional", "\\sConference", "\\sSuper Bowl", "[^[:alnum:]]$") rm_pattern <- paste(r...
/R/helper_funcs.R
no_license
GiulSposito/ffanalytics_2018
R
false
false
3,760
r
make_df_colnames <- function(tbl){ rm_txt <- c("DEFENSIVE PLAYERS ", "PLAYERS ", "KICKERS ", "[[:cntrl:]]", "Sort", "First:", "Last:", "^Projected ", "\\sWeek [0-9]+", "\\sWild Card", "\\sDivisional", "\\sConference", "\\sSuper Bowl", "[^[:alnum:]]$") rm_pattern <- paste(r...
library(mvtnorm) library(tidyverse) library(reshape2) library(matrixcalc) library(gRbase) library(mixAK) library(xtable) source("~/Dropbox/Documents/BGSE/Thesis/GM/Simulations/Test_Code/Gibbs_Truncation.R") source("~/Dropbox/Documents/BGSE/Thesis/GM/Simulations/Test_Code/MH.R") source("~/Dropbox/Documents/BGSE/Thesis/...
/Run_Code.R
no_license
chpmoreno/TestingGaussianMTP2
R
false
false
7,011
r
library(mvtnorm) library(tidyverse) library(reshape2) library(matrixcalc) library(gRbase) library(mixAK) library(xtable) source("~/Dropbox/Documents/BGSE/Thesis/GM/Simulations/Test_Code/Gibbs_Truncation.R") source("~/Dropbox/Documents/BGSE/Thesis/GM/Simulations/Test_Code/MH.R") source("~/Dropbox/Documents/BGSE/Thesis/...
m <- matrix(c(11,12,13,14), nrow = 2, ncol = 2, byrow = TRUE) # matris oluşturma m1 <- matix(c(12,22,34,45,56,57,68), nrow = 2, ncol = 4, byrow = TRUE) m1[1,1] # 1. satır 1. sütundaki elemanı seçiyoruz m1[c(1,2),c(1,2)] # 1. ve 2. satır ile 1. ve 2. sütunları seçiyoruz m1[1:2,2:4] # 1. ve 2. satır ile 2. 3. v...
/2-Veri-Tipleri-ve-Değişkenler/matrisler.R
no_license
S-Oktay-Bicici/R-PROGRAMMING
R
false
false
847
r
m <- matrix(c(11,12,13,14), nrow = 2, ncol = 2, byrow = TRUE) # matris oluşturma m1 <- matix(c(12,22,34,45,56,57,68), nrow = 2, ncol = 4, byrow = TRUE) m1[1,1] # 1. satır 1. sütundaki elemanı seçiyoruz m1[c(1,2),c(1,2)] # 1. ve 2. satır ile 1. ve 2. sütunları seçiyoruz m1[1:2,2:4] # 1. ve 2. satır ile 2. 3. v...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{meadows} \alias{meadows} \title{Data set from Grace & Jutila (1999)} \format{ A \code{data.frame} with 354 observations of 4 variables. \describe{ \item{grazed}{Whether meadows were exposed to grazing: 0 =...
/man/meadows.Rd
no_license
cran/piecewiseSEM
R
false
true
575
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{meadows} \alias{meadows} \title{Data set from Grace & Jutila (1999)} \format{ A \code{data.frame} with 354 observations of 4 variables. \describe{ \item{grazed}{Whether meadows were exposed to grazing: 0 =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{robust_loss_binary_classification} \alias{robust_loss_binary_classification} \title{Robustness loss binary classification} \usage{ robust_loss_binary_classification(probs_positive, y) } \arguments{ \item{probs_positive}{are the ...
/Filips ML package/Filips.ML.package/man/robust_loss_binary_classification.Rd
no_license
Filco306/ML-Implementations
R
false
true
916
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{robust_loss_binary_classification} \alias{robust_loss_binary_classification} \title{Robustness loss binary classification} \usage{ robust_loss_binary_classification(probs_positive, y) } \arguments{ \item{probs_positive}{are the ...
library(shiny) library(shinydashboard) library(shinythemes) library(markdown) library(tm) library(caret) source("www/Introduccion.R") source("www/Recoleccion.R") source("www/datos/Modelos/Kmeans.R", local = T) run_CART <- function() { print("Resultados de la matriz de confusion CART") source("www/d...
/Codigo/Comunicacion/M1-ProyectoFinal/app_dashboard.R
no_license
RQuilcatP10/M1-ProyectoFinal
R
false
false
7,473
r
library(shiny) library(shinydashboard) library(shinythemes) library(markdown) library(tm) library(caret) source("www/Introduccion.R") source("www/Recoleccion.R") source("www/datos/Modelos/Kmeans.R", local = T) run_CART <- function() { print("Resultados de la matriz de confusion CART") source("www/d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysing.R \name{convertSlopeToHL} \alias{convertSlopeToHL} \title{Convert slope result to HL results} \usage{ convertSlopeToHL(result) } \arguments{ \item{result}{named list of data.frame. Each element of the list correspond to the slope re...
/man/convertSlopeToHL.Rd
no_license
dlefaudeux-ucla/ActDAnalyser
R
false
true
1,447
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysing.R \name{convertSlopeToHL} \alias{convertSlopeToHL} \title{Convert slope result to HL results} \usage{ convertSlopeToHL(result) } \arguments{ \item{result}{named list of data.frame. Each element of the list correspond to the slope re...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RFMModel2.R \name{calculaterfm} \alias{calculaterfm} \title{calculateRFM} \usage{ calculaterfm(x, re, fr, mo) } \arguments{ \item{re}{- Weight of recency} \item{fr}{- Weight of frequency} \item{mo}{- Weight of monetary} \item{data}{- A dat...
/man/calculaterfm.Rd
no_license
JustierNo1/RFMPackage
R
false
true
930
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RFMModel2.R \name{calculaterfm} \alias{calculaterfm} \title{calculateRFM} \usage{ calculaterfm(x, re, fr, mo) } \arguments{ \item{re}{- Weight of recency} \item{fr}{- Weight of frequency} \item{mo}{- Weight of monetary} \item{data}{- A dat...
#' @rdname filterStream #' @export #' #' @title #' Connect to Twitter Streaming API and return public statuses that #' match one or more filter predicates. #' #' @description #' \code{filterStream} opens a connection to Twitter's Streaming API #' that will return public statuses that match one or more filter predicat...
/data/r/6b1f02b3a8535c8927c613f844d67396_filterStream.R
permissive
maxim5/code-inspector
R
false
false
10,434
r
#' @rdname filterStream #' @export #' #' @title #' Connect to Twitter Streaming API and return public statuses that #' match one or more filter predicates. #' #' @description #' \code{filterStream} opens a connection to Twitter's Streaming API #' that will return public statuses that match one or more filter predicat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/budgets_service.R \name{budgets} \alias{budgets} \title{AWS Budgets} \usage{ budgets() } \description{ The AWS Budgets API enables you to use AWS Budgets to plan your service usage, service costs, and instance reservations. The API reference ...
/paws/man/budgets.Rd
permissive
peoplecure/paws
R
false
true
3,486
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/budgets_service.R \name{budgets} \alias{budgets} \title{AWS Budgets} \usage{ budgets() } \description{ The AWS Budgets API enables you to use AWS Budgets to plan your service usage, service costs, and instance reservations. The API reference ...
# ##First read in the arguments listed at the command line # args=(commandArgs(TRUE)) # # ##args is now a list of character vectors # ## First check to see if arguments are passed. # ## Then cycle through each element of the list and evaluate the expressions. # if(length(args)==0){ # print("No arguments suppli...
/application/monk.R
no_license
placeboo/Extendability-for-Exchangeable-Distributions-over-Networks
R
false
false
9,728
r
# ##First read in the arguments listed at the command line # args=(commandArgs(TRUE)) # # ##args is now a list of character vectors # ## First check to see if arguments are passed. # ## Then cycle through each element of the list and evaluate the expressions. # if(length(args)==0){ # print("No arguments suppli...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/along_track_distance.R \name{along_track_distance} \alias{along_track_distance} \title{Compute the along-track distance from a great circle arc} \usage{ along_track_distance(b, a1, a2) } \arguments{ \item{b}{the geographical coordinates (WGS8...
/man/along_track_distance.Rd
permissive
euctrl-pru/nvctr
R
false
true
1,502
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/along_track_distance.R \name{along_track_distance} \alias{along_track_distance} \title{Compute the along-track distance from a great circle arc} \usage{ along_track_distance(b, a1, a2) } \arguments{ \item{b}{the geographical coordinates (WGS8...
rsu.sep.rsvarse <- function(N = NA, pstar, se.u) { if (!(is.na(N)) & N < length(se.u)) return("Error: N cannot be less than the number of unit sensitivity values") if (is.na(N)) { sep <- 1 - prod(1 - se.u * pstar) } else { if (pstar < 1 & pstar > 0) pstar <- ceiling(N * pstar) sep <- 1 - (1 - mean(se....
/epiR/R/rsu.sep.rsvarse.R
no_license
albrizre/spatstat.revdep
R
false
false
368
r
rsu.sep.rsvarse <- function(N = NA, pstar, se.u) { if (!(is.na(N)) & N < length(se.u)) return("Error: N cannot be less than the number of unit sensitivity values") if (is.na(N)) { sep <- 1 - prod(1 - se.u * pstar) } else { if (pstar < 1 & pstar > 0) pstar <- ceiling(N * pstar) sep <- 1 - (1 - mean(se....
% Generated by roxygen2 (4.0.2): do not edit by hand \name{plot.flesch_kincaid} \alias{plot.flesch_kincaid} \title{Plots a flesch_kincaid Object} \usage{ \method{plot}{flesch_kincaid}(x, ...) } \arguments{ \item{x}{The readability_score object.} \item{\ldots}{ignored} } \description{ Plots a flesch_kincaid object. }
/man/plot.flesch_kincaid.Rd
no_license
joffrevillanueva/qdap
R
false
false
320
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{plot.flesch_kincaid} \alias{plot.flesch_kincaid} \title{Plots a flesch_kincaid Object} \usage{ \method{plot}{flesch_kincaid}(x, ...) } \arguments{ \item{x}{The readability_score object.} \item{\ldots}{ignored} } \description{ Plots a flesch_kincaid object. }
##There are two funtions here: makeCacheMatrix() and cacheSolve() ##It takes a matrix,computes the Inverse of the matrix and stores the result in cache. ##The result is fetched from cache if the same matrix is passed. ## This function takes a matrix to form a special vector and ##contains a list of four functions to ...
/cachematrix.R
no_license
unniks2/ProgrammingAssignment2
R
false
false
1,286
r
##There are two funtions here: makeCacheMatrix() and cacheSolve() ##It takes a matrix,computes the Inverse of the matrix and stores the result in cache. ##The result is fetched from cache if the same matrix is passed. ## This function takes a matrix to form a special vector and ##contains a list of four functions to ...
rm(list = ls()) # Remove all setwd("D:/Copy/GVC/ICIO/Rcode") # Working Directory excel <- "D:/Copy/GVC/ICIO/Excel/" # Excel Raw data Directory rdata <- "D:/Copy/GVC/ICIO/Rdata/" # RData Saving Directory library(openxlsx) library(matlab) library(stringr) library(foreign) ### I...
/ICIO_iid3d_matrix_2011_PT_adjusted.R
no_license
Sunghoon-Chung/ICIO-R
R
false
false
7,147
r
rm(list = ls()) # Remove all setwd("D:/Copy/GVC/ICIO/Rcode") # Working Directory excel <- "D:/Copy/GVC/ICIO/Excel/" # Excel Raw data Directory rdata <- "D:/Copy/GVC/ICIO/Rdata/" # RData Saving Directory library(openxlsx) library(matlab) library(stringr) library(foreign) ### I...
## Functions that create a special object of a matrix and cache's its inverse. ## Function that returns a list of functions to set and get the values of a matrix and its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<...
/cachematrix.R
no_license
KanduriC/ProgrammingAssignment2
R
false
false
914
r
## Functions that create a special object of a matrix and cache's its inverse. ## Function that returns a list of functions to set and get the values of a matrix and its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<...
# set working directory to same folder that this R script is saved in wd = dirname(rstudioapi::getActiveDocumentContext()$path) setwd(wd) # load packages and functions library(MRAtools) library(leaflet) library(htmlwidgets) source("20170116 quick map functions.R") # read in data from clipboard ...
/20170118 R quick map.R
no_license
DanielGardiner/QuickMap
R
false
false
4,510
r
# set working directory to same folder that this R script is saved in wd = dirname(rstudioapi::getActiveDocumentContext()$path) setwd(wd) # load packages and functions library(MRAtools) library(leaflet) library(htmlwidgets) source("20170116 quick map functions.R") # read in data from clipboard ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gen_edr10.R \name{gen_edr10} \alias{gen_edr10} \title{Genertae edr10_act from ED50 (acute data) and regression coefficients} \usage{ gen_edr10(PAC_gen, acute_df) } \arguments{ \item{acute_df}{A dataframe containing the ED50} \item{paracACT}{...
/man/gen_edr10.Rd
no_license
cdv04/ACTR
R
false
true
845
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gen_edr10.R \name{gen_edr10} \alias{gen_edr10} \title{Genertae edr10_act from ED50 (acute data) and regression coefficients} \usage{ gen_edr10(PAC_gen, acute_df) } \arguments{ \item{acute_df}{A dataframe containing the ED50} \item{paracACT}{...
library(beautier) ### Name: init_jc69_site_model ### Title: Initializes a JC69 site model ### Aliases: init_jc69_site_model ### ** Examples hky_site_model <- create_hky_site_model() testit::assert(!beautier:::is_init_hky_site_model(hky_site_model)) hky_site_model <- beautier:::init_hky_site_model(hky_site_mod...
/data/genthat_extracted_code/beautier/examples/init_jc69_site_model.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
395
r
library(beautier) ### Name: init_jc69_site_model ### Title: Initializes a JC69 site model ### Aliases: init_jc69_site_model ### ** Examples hky_site_model <- create_hky_site_model() testit::assert(!beautier:::is_init_hky_site_model(hky_site_model)) hky_site_model <- beautier:::init_hky_site_model(hky_site_mod...
library(clusterCVR) # clusterCVR MLE regular_optim <- function(y = canada_mlogit_y, zeta = canada_mlogit_w, m = canada_mlogit_m) { optim(par = c(1, 1, 1), fn = ll_vclogit_R, y_j = y, zeta_k = zeta, m_j = m, method = 'BFGS', control = list(fnscale = -1)) } # regular_opt...
/tests-analysis/test_vclogit.R
no_license
kuriwaki/clusterCVR
R
false
false
1,989
r
library(clusterCVR) # clusterCVR MLE regular_optim <- function(y = canada_mlogit_y, zeta = canada_mlogit_w, m = canada_mlogit_m) { optim(par = c(1, 1, 1), fn = ll_vclogit_R, y_j = y, zeta_k = zeta, m_j = m, method = 'BFGS', control = list(fnscale = -1)) } # regular_opt...
#' Prints Local Fit / Wangkardu Summary #' #' @param x a local fit explainer produced with the 'local_fit' function #' @param ... other arguments that will be passed to 'head' function #' #' @export #' #' @examples #' library("DALEX") #' \dontrun{ #' library("randomForest") #' apartments_rf_model <- randomForest(m2.pr...
/R/print_coral_plots.R
no_license
kmichael08/ceterisParibus
R
false
false
854
r
#' Prints Local Fit / Wangkardu Summary #' #' @param x a local fit explainer produced with the 'local_fit' function #' @param ... other arguments that will be passed to 'head' function #' #' @export #' #' @examples #' library("DALEX") #' \dontrun{ #' library("randomForest") #' apartments_rf_model <- randomForest(m2.pr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotPrincipalCoordinates.R \name{plotPrincipalCoordinates} \alias{plotPrincipalCoordinates} \title{Plot principal coordinates of ftmsData samples} \usage{ plotPrincipalCoordinates(pcoaMat, x = 1, y = 2, ftmsObj = NA, title = NA, xlabel = sp...
/man/plotPrincipalCoordinates.Rd
permissive
EMSL-Computing/ftmsRanalysis
R
false
true
1,552
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotPrincipalCoordinates.R \name{plotPrincipalCoordinates} \alias{plotPrincipalCoordinates} \title{Plot principal coordinates of ftmsData samples} \usage{ plotPrincipalCoordinates(pcoaMat, x = 1, y = 2, ftmsObj = NA, title = NA, xlabel = sp...
if(!require(dplyr)){install.packages("dplyr"); library(dplyr)} if(!require(xlsx)){install.packages("xlsx"); library(xlsx)} if(!require(randomForest)){install.packages("randomForest"); library(randomForest)} if(!require(plyr)){install.packages("plyr"); library(plyr)} # 기초데이터 탐색 ---- setwd('D:/samsung_ai/test/') dat <- ...
/eda & simple modeling/env_01.R
no_license
hyeonho1028/Samsung-Data-Challenge
R
false
false
15,055
r
if(!require(dplyr)){install.packages("dplyr"); library(dplyr)} if(!require(xlsx)){install.packages("xlsx"); library(xlsx)} if(!require(randomForest)){install.packages("randomForest"); library(randomForest)} if(!require(plyr)){install.packages("plyr"); library(plyr)} # 기초데이터 탐색 ---- setwd('D:/samsung_ai/test/') dat <- ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fct_descriptions.R \name{jitter_text} \alias{jitter_text} \title{jitter desc} \usage{ jitter_text() } \description{ jitter desc }
/man/jitter_text.Rd
permissive
sjspielman/types.of.plots
R
false
true
208
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fct_descriptions.R \name{jitter_text} \alias{jitter_text} \title{jitter desc} \usage{ jitter_text() } \description{ jitter desc }
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(ggplot2) library(shiny) #install.packages("shinydashboard") library(shin...
/new_app.R
no_license
lyssalai/MA415-Project2
R
false
false
3,702
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(ggplot2) library(shiny) #install.packages("shinydashboard") library(shin...
test_that("Only accepts ts", { expect_error(bflSmooth(1:10, 4)) }) test_that("Only accepts integer frequencies", { expect_error(bflSmooth(ts(1:10,freq=0.5), 1)) }) test_that("Only accepts strictly positive high frequencies", { expect_error(bflSmooth(ts(1:10,freq=1), 0)) }) test_that("Only accepts frequencies that...
/tests/testthat/test-bflSmooth.R
permissive
InseeFr/disaggR
R
false
false
7,878
r
test_that("Only accepts ts", { expect_error(bflSmooth(1:10, 4)) }) test_that("Only accepts integer frequencies", { expect_error(bflSmooth(ts(1:10,freq=0.5), 1)) }) test_that("Only accepts strictly positive high frequencies", { expect_error(bflSmooth(ts(1:10,freq=1), 0)) }) test_that("Only accepts frequencies that...
#' @title Retrieve values at LOD in a data frame. #' @param data the data to apply LOD split on. #' @param except the index or names of the columns that won't be modified. #' @param value.only if \code{value.only} is true, only the numeric data frame is returned. #' Otherwise a list with the numeric data and the in...
/R/lodsplit.R
no_license
kuremon/easyxlsx
R
false
false
3,133
r
#' @title Retrieve values at LOD in a data frame. #' @param data the data to apply LOD split on. #' @param except the index or names of the columns that won't be modified. #' @param value.only if \code{value.only} is true, only the numeric data frame is returned. #' Otherwise a list with the numeric data and the in...
#TD7 #1) ligue1 = read.csv("C:/Users/Damien/Downloads/ligue1_17_18.csv", row.names=1, sep=";") #2) View(ligue1[1:2]) str(ligue1) #3) pointscards = ligue1[c(1,10)] #4) set.seed(706974) km=kmeans(pointscards,2,iter.max = 20) km2=kmeans(pointscards,3,iter.max = 20) km3=kmeans(pointscards,4,iter.max = 2...
/Machine Learning (R)/TD7 machine learning.R
no_license
DamienALOUGES/Cours
R
false
false
1,233
r
#TD7 #1) ligue1 = read.csv("C:/Users/Damien/Downloads/ligue1_17_18.csv", row.names=1, sep=";") #2) View(ligue1[1:2]) str(ligue1) #3) pointscards = ligue1[c(1,10)] #4) set.seed(706974) km=kmeans(pointscards,2,iter.max = 20) km2=kmeans(pointscards,3,iter.max = 20) km3=kmeans(pointscards,4,iter.max = 2...
\name{msearch} \alias{msearch} \title{msearch.R Search Method (Public Method)} \usage{ msearch(query, page = NA, numItems = 1000L, key = getOption("MendeleyKey", stop("need an API key for Mendeley")), curl = getCurlHandle(), ...) } \arguments{ \item{query}{any search query. Can use the options: authors,...
/man/msearch.Rd
no_license
cran/RMendeley
R
false
false
1,341
rd
\name{msearch} \alias{msearch} \title{msearch.R Search Method (Public Method)} \usage{ msearch(query, page = NA, numItems = 1000L, key = getOption("MendeleyKey", stop("need an API key for Mendeley")), curl = getCurlHandle(), ...) } \arguments{ \item{query}{any search query. Can use the options: authors,...
trendtest <- function(y,extract=c("FALSE","TRUE"),type=c("aicc","cs"),mta=c(FALSE,TRUE)){ # Test for trend # # Inputs: # y Time series (must be ts class) # extract Extract trend using CMA. Test is un on CMA. # type Type of trend test. "aicc" uses AICc of ETS models. "cs" use...
/R/trendtest.R
no_license
edergsc/TStools
R
false
false
1,945
r
trendtest <- function(y,extract=c("FALSE","TRUE"),type=c("aicc","cs"),mta=c(FALSE,TRUE)){ # Test for trend # # Inputs: # y Time series (must be ts class) # extract Extract trend using CMA. Test is un on CMA. # type Type of trend test. "aicc" uses AICc of ETS models. "cs" use...
# You can pass functions as arguments to other functions just like you can pass # data to functions. Let's say you define the following functions: # # add_two_numbers <- function(num1, num2){ # num1 + num2 # } # # multiply_two_numbers <- function(num1, num2){ # num1 * num2 # } # # some_function <- functio...
/rprog/week2/evaluate.R
no_license
theoneandoney/datasciencecoursera
R
false
false
1,306
r
# You can pass functions as arguments to other functions just like you can pass # data to functions. Let's say you define the following functions: # # add_two_numbers <- function(num1, num2){ # num1 + num2 # } # # multiply_two_numbers <- function(num1, num2){ # num1 * num2 # } # # some_function <- functio...
/TrabalhoFinal_MateusAmaral.R
no_license
gitmateusamaral/VideoGame_Graphs
R
false
false
6,783
r
setwd("/Users/karen/Coursera/Data") library(lubridate) data <- read.table("household_power_consumption.txt",header=TRUE, sep=";", nrows = 2075270,na.strings="?") x <-paste(data$Date, data$Time) data$DateTime<-strptime(x,"%d/%m/%Y %H:%M:%S") data<-data[year(data$DateTime)==2007 & month(data$DateTime)==2 & (day(data$Date...
/plot2.R
no_license
karencode/ExData_Plotting1
R
false
false
586
r
setwd("/Users/karen/Coursera/Data") library(lubridate) data <- read.table("household_power_consumption.txt",header=TRUE, sep=";", nrows = 2075270,na.strings="?") x <-paste(data$Date, data$Time) data$DateTime<-strptime(x,"%d/%m/%Y %H:%M:%S") data<-data[year(data$DateTime)==2007 & month(data$DateTime)==2 & (day(data$Date...
# Viewing as time series quality vs. dates of production # setwd("~/PhD/2020 mar paper") #### install various packages #### #install.packages("descr") library(descr) #install.packages("ggplot2") library(ggplot2) #install.packages("scales") library(scales) #install.packages("glmnet") library(glmnet) #instal...
/chapter_4/qual_vs_dates_01.R
no_license
athang/source_code
R
false
false
19,146
r
# Viewing as time series quality vs. dates of production # setwd("~/PhD/2020 mar paper") #### install various packages #### #install.packages("descr") library(descr) #install.packages("ggplot2") library(ggplot2) #install.packages("scales") library(scales) #install.packages("glmnet") library(glmnet) #instal...
Championshipe_search<- function(gender, yr, tourney){ yr_<- as.numeric(yr) if(gender == "1"){file_name_tmp<- "atp"} else{file_name_tmp<- "wta"} data_tmp1<- read.csv(paste("data/",file_name_tmp, "_matches_", yr, ".csv", sep="")) data_simplified<- data_tmp1[,c("tourney_name","tourney_date","winner_name","w...
/functions/Championship_Search.R
no_license
lunching/ATP_WTA_Stats
R
false
false
1,141
r
Championshipe_search<- function(gender, yr, tourney){ yr_<- as.numeric(yr) if(gender == "1"){file_name_tmp<- "atp"} else{file_name_tmp<- "wta"} data_tmp1<- read.csv(paste("data/",file_name_tmp, "_matches_", yr, ".csv", sep="")) data_simplified<- data_tmp1[,c("tourney_name","tourney_date","winner_name","w...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/statmap.R \name{coef.statMap} \alias{coef.statMap} \title{Gets a 4D niftiImage of the statistical image from a statMap object} \usage{ \method{coef}{statMap}(object, ...) } \arguments{ \item{object}{the statMap object to extract a coefficient...
/man/coef.statMap.Rd
no_license
simonvandekar/pbj
R
false
true
520
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/statmap.R \name{coef.statMap} \alias{coef.statMap} \title{Gets a 4D niftiImage of the statistical image from a statMap object} \usage{ \method{coef}{statMap}(object, ...) } \arguments{ \item{object}{the statMap object to extract a coefficient...
#' `tm10x` SCE objects created from The Tabula Muris Consortium. #' #' SCE objects created from The Tabula Muris Consortium. https://doi.org/10.1038/s41586-018-0590-4 #' that profiled every cell-type in the mouse using high-coverage FACS-sorted cells + Smartseq2 in the original publication #' #' @docType data #' #' @u...
/R/tm10x.R
permissive
thjimmylee/scfind
R
false
false
796
r
#' `tm10x` SCE objects created from The Tabula Muris Consortium. #' #' SCE objects created from The Tabula Muris Consortium. https://doi.org/10.1038/s41586-018-0590-4 #' that profiled every cell-type in the mouse using high-coverage FACS-sorted cells + Smartseq2 in the original publication #' #' @docType data #' #' @u...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbplyHelper.R \name{coefficientAdj} \alias{coefficientAdj} \title{adjust the baseline coefficients of a SGoly filter for specifc derivative order and sample size (WIP)} \usage{ coefficientAdj(sgolayTable, sampleSizeVar, derivative, supportRan...
/man/coefficientAdj.Rd
permissive
terminological/tidy-info-stats
R
false
true
738
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbplyHelper.R \name{coefficientAdj} \alias{coefficientAdj} \title{adjust the baseline coefficients of a SGoly filter for specifc derivative order and sample size (WIP)} \usage{ coefficientAdj(sgolayTable, sampleSizeVar, derivative, supportRan...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/variant.R \name{get_variant_renderings} \alias{get_variant_renderings} \alias{variant_render} \title{Render a Variant} \usage{ get_variant_renderings(variant) variant_render(variant) } \arguments{ \item{variant}{An R6 Variant object. As retu...
/man/render.Rd
permissive
rstudio/connectapi
R
false
true
843
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/variant.R \name{get_variant_renderings} \alias{get_variant_renderings} \alias{variant_render} \title{Render a Variant} \usage{ get_variant_renderings(variant) variant_render(variant) } \arguments{ \item{variant}{An R6 Variant object. As retu...
## ## See CodeBook.md and README.md for further information ## ## File download url https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip ## Date file downloaded "2019-06-26 17:41:32 AEST" ## ## R version 3.6.0 (2019-04-26). ## Platform: x86_64-w64-mingw32/x64 (64-bit)(Windows 10 x64 (b...
/Getting-and-Cleaning-Data-Course-Project/run_analysis.R
no_license
DarrelSchwarz/Coursera-Datascience
R
false
false
4,275
r
## ## See CodeBook.md and README.md for further information ## ## File download url https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip ## Date file downloaded "2019-06-26 17:41:32 AEST" ## ## R version 3.6.0 (2019-04-26). ## Platform: x86_64-w64-mingw32/x64 (64-bit)(Windows 10 x64 (b...
library("sas7bdat") library(ggplot2) library(knitr) library(car) # companion for applied regression library(Hmisc) #read the data into R from working directory week2 = read.sas7bdat('data\\credit_card_week_2.sas7bdat') #data from PREDICT411 week2 homework # you could also save the data from the excel file as a csv an...
/R-qr.R
no_license
alathrop/R-Quick-Reference
R
false
false
2,176
r
library("sas7bdat") library(ggplot2) library(knitr) library(car) # companion for applied regression library(Hmisc) #read the data into R from working directory week2 = read.sas7bdat('data\\credit_card_week_2.sas7bdat') #data from PREDICT411 week2 homework # you could also save the data from the excel file as a csv an...
#setwd("~/Plocha/egu_poster") #setwd("~/Plocha/egu2") # Rankhistograms verifrank<-function (forecasts, observations, plotname) { rank <- apply(cbind(observations, forecasts), 1, function(x) rank(x, ties = "random")[1]) k <- ncol(forecasts) his...
/rscripts/verifrankhist.R
no_license
MartinVocko/drought_uncertainty
R
false
false
3,613
r
#setwd("~/Plocha/egu_poster") #setwd("~/Plocha/egu2") # Rankhistograms verifrank<-function (forecasts, observations, plotname) { rank <- apply(cbind(observations, forecasts), 1, function(x) rank(x, ties = "random")[1]) k <- ncol(forecasts) his...
httr::GET("https://opendata.ecdc.europa.eu/covid19/casedistribution/csv", httr::authenticate(":", ":", type="ntlm"), httr::write_disk(tf <- tempfile(fileext = ".csv"))) data <- readr::read_csv(tf) data <- data[order(as.Date(data$dateRep, format="%d/%m/%Y")),] data <- data[order(data$countriesAndTerritories),] data <- d...
/10月24号为止的r code/计算各种各样国家和income level的test 总数.R
no_license
qidiwang1/Rstudio
R
false
false
11,524
r
httr::GET("https://opendata.ecdc.europa.eu/covid19/casedistribution/csv", httr::authenticate(":", ":", type="ntlm"), httr::write_disk(tf <- tempfile(fileext = ".csv"))) data <- readr::read_csv(tf) data <- data[order(as.Date(data$dateRep, format="%d/%m/%Y")),] data <- data[order(data$countriesAndTerritories),] data <- d...
library("plotrix") library("ape") #tree = read.tree(file="3K_coreSNP-v2.1.binary.tab.landrace.nj.tree") #tree$edge.length[tree$edge.length<0]<-0 sorted_strains <- read.table("core_v0.7.pruneddata3.8.Q.sorted.txt", sep="\t") sorted_list <- as.vector(sorted_strains$V1) x = read.table(file="rice_line_ALL_3000.anno.landra...
/analysis/Introgression/ADMIXTURE/3K_coreSNP-v2.1.binary.tab.landrace.nj.landrace.tree_mPing_Ping_Pong.ADMIXTRUE.R
no_license
JinfengChen/Rice_pop
R
false
false
6,219
r
library("plotrix") library("ape") #tree = read.tree(file="3K_coreSNP-v2.1.binary.tab.landrace.nj.tree") #tree$edge.length[tree$edge.length<0]<-0 sorted_strains <- read.table("core_v0.7.pruneddata3.8.Q.sorted.txt", sep="\t") sorted_list <- as.vector(sorted_strains$V1) x = read.table(file="rice_line_ALL_3000.anno.landra...
# coursera exercise 6 # Load ggplot2 library library(ggplot2) # Loading the data set in the current directory # Loading the data set datasets - loading from the current directory NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") NEI$year <- factor(NEI$year, levels=c('1...
/plot6.R
no_license
LTogliaUCV/Project-2
R
false
false
1,773
r
# coursera exercise 6 # Load ggplot2 library library(ggplot2) # Loading the data set in the current directory # Loading the data set datasets - loading from the current directory NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") NEI$year <- factor(NEI$year, levels=c('1...
tar_test("fst format", { skip_if_not_installed("fst") envir <- new.env(parent = baseenv()) envir$f <- function() { data.frame(x = 1, y = 2) } x <- target_init( name = "abc", expr = quote(f()), format = "fst" ) builder_update_build(x, envir = envir) builder_update_paths(x, path_store_defa...
/tests/testthat/test-class_fst.R
permissive
mattwarkentin/targets
R
false
false
2,311
r
tar_test("fst format", { skip_if_not_installed("fst") envir <- new.env(parent = baseenv()) envir$f <- function() { data.frame(x = 1, y = 2) } x <- target_init( name = "abc", expr = quote(f()), format = "fst" ) builder_update_build(x, envir = envir) builder_update_paths(x, path_store_defa...
########### context("Pair Datasets") ########### test_that("Links79Pair", { expectedColumnCount <- 5 actualColumnCount <- ncol(Links79Pair) expect_equal(actualColumnCount, expectedColumnCount, info="The number of columns should be correct.") expectedRowCount <- 42773 #42714 #11075 actualRowCount <- nrow(Li...
/data/genthat_extracted_code/NlsyLinks/tests/test-datasets.R
no_license
surayaaramli/typeRrh
R
false
false
835
r
########### context("Pair Datasets") ########### test_that("Links79Pair", { expectedColumnCount <- 5 actualColumnCount <- ncol(Links79Pair) expect_equal(actualColumnCount, expectedColumnCount, info="The number of columns should be correct.") expectedRowCount <- 42773 #42714 #11075 actualRowCount <- nrow(Li...
#' @importFrom clusterProfiler enricher NULL # Performs Over Representation Analysis for a list of genes and a GMT # # @keywords internal # # @param topgenes a vector of genes # @param gmt.list a gmt from prepare.gmt function # @param allgenes a vector containing all genes to be considered as universe # # @return a da...
/R/enrichment.R
no_license
AndiPauli/fcoex
R
false
false
1,334
r
#' @importFrom clusterProfiler enricher NULL # Performs Over Representation Analysis for a list of genes and a GMT # # @keywords internal # # @param topgenes a vector of genes # @param gmt.list a gmt from prepare.gmt function # @param allgenes a vector containing all genes to be considered as universe # # @return a da...
#!usr/bin/env Rscript library(methods) library(Matrix) library(MASS) #library(Rcpp) library(lme4) # Read in your data as an R dataframe basedir <- c("/seastor/helenhelen/ISR_2015") resultdir <- paste(basedir,"/me/tmap/results/ln",sep="/") setwd(resultdir) r.itemInfo <- matrix(data=NA, nr=2, nc=4) ## read data #get data...
/ROI_based/me/ln/itemInfo_pPHG_RANG.R
no_license
QQXiao/ISR_2015
R
false
false
1,626
r
#!usr/bin/env Rscript library(methods) library(Matrix) library(MASS) #library(Rcpp) library(lme4) # Read in your data as an R dataframe basedir <- c("/seastor/helenhelen/ISR_2015") resultdir <- paste(basedir,"/me/tmap/results/ln",sep="/") setwd(resultdir) r.itemInfo <- matrix(data=NA, nr=2, nc=4) ## read data #get data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lowLevelClasses.R \docType{class} \name{Concept-class} \alias{Concept-class} \title{An S4 class for a Concepet} \description{ A concept class contains all the information about the concept from the OMOP voabulary } \section{Slots}{ \describe...
/man/Concept-class.Rd
permissive
gowthamrao/Capr
R
false
true
999
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lowLevelClasses.R \docType{class} \name{Concept-class} \alias{Concept-class} \title{An S4 class for a Concepet} \description{ A concept class contains all the information about the concept from the OMOP voabulary } \section{Slots}{ \describe...
library(readr) library(dplyr) library(data.tree) #### ENTROPY FUNCTION ##### entropy <- function(vector){ h <- 0 vector <- factor(vector) total_obs <- length(vector) for(i in levels(vector)){ # class sum is the number of occurences for class i class_sum <- (sum(vector == i)) # probability of the ...
/ID3.R
no_license
rodolfoocampo/ID3
R
false
false
3,125
r
library(readr) library(dplyr) library(data.tree) #### ENTROPY FUNCTION ##### entropy <- function(vector){ h <- 0 vector <- factor(vector) total_obs <- length(vector) for(i in levels(vector)){ # class sum is the number of occurences for class i class_sum <- (sum(vector == i)) # probability of the ...
getwd() setwd("C://Users//Owner//DataJazz//ExData_Plotting1//figure") data<-read.table("household_power_consumption.txt",strip.white=TRUE,stringsAsFactors=FALSE,skip=1,sep=";",col.names=c("Date","Time","GlobalActivePower", "GlobalReactivePower","Voltage","Glob...
/figure/plot1.R
no_license
DataRSLI/ExData_Plotting1
R
false
false
699
r
getwd() setwd("C://Users//Owner//DataJazz//ExData_Plotting1//figure") data<-read.table("household_power_consumption.txt",strip.white=TRUE,stringsAsFactors=FALSE,skip=1,sep=";",col.names=c("Date","Time","GlobalActivePower", "GlobalReactivePower","Voltage","Glob...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/database.DBconfig.R \name{remove_attributeDefinition} \alias{remove_attributeDefinition} \title{Remove attribute definitions from emuDB} \usage{ remove_attributeDefinition(dbName, levelName, attributeDefinitionName, dbUUID = NULL) } \argume...
/man/remove_attributeDefinition.Rd
no_license
anindo78/emuR
R
false
true
656
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/database.DBconfig.R \name{remove_attributeDefinition} \alias{remove_attributeDefinition} \title{Remove attribute definitions from emuDB} \usage{ remove_attributeDefinition(dbName, levelName, attributeDefinitionName, dbUUID = NULL) } \argume...
permute <- function(components) { ncol <- length(components) ncomponents <- c(sapply(components, length), 1) total.rows <- prod(ncomponents) perms <- list() for (i1 in ncol:1) { p <- prod(ncomponents[(i1+1):length(ncomponents)]) pp1 <- prod(ncomponents[i1:length(components)]) ...
/R/permute.R
no_license
ataudt/methimpute
R
false
false
489
r
permute <- function(components) { ncol <- length(components) ncomponents <- c(sapply(components, length), 1) total.rows <- prod(ncomponents) perms <- list() for (i1 in ncol:1) { p <- prod(ncomponents[(i1+1):length(ncomponents)]) pp1 <- prod(ncomponents[i1:length(components)]) ...
#################Validation################################# validation = function(model, dades){ s=frequency(get(model$series)) resid=model$residuals par(mfrow=c(2,2),mar=c(3,3,3,3)) #Residuals plot plot(resid,main="Residuals") abline(h=0) abline(h=c(-3*sd(resid),3*sd(resid)),lty=3,col=4) #Square Root ...
/validation.r
no_license
Huguet57/series-ad
R
false
false
2,654
r
#################Validation################################# validation = function(model, dades){ s=frequency(get(model$series)) resid=model$residuals par(mfrow=c(2,2),mar=c(3,3,3,3)) #Residuals plot plot(resid,main="Residuals") abline(h=0) abline(h=c(-3*sd(resid),3*sd(resid)),lty=3,col=4) #Square Root ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spirograph.R \name{image_scale} \alias{image_scale} \title{Scale image} \usage{ image_scale(input, scale = 1, openfile = TRUE, output = input) } \arguments{ \item{input}{File name of .svg file to input} \item{scale}{Ratio by which to scale t...
/man/image_scale.Rd
permissive
wlandau-lilly/spiro
R
false
true
759
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spirograph.R \name{image_scale} \alias{image_scale} \title{Scale image} \usage{ image_scale(input, scale = 1, openfile = TRUE, output = input) } \arguments{ \item{input}{File name of .svg file to input} \item{scale}{Ratio by which to scale t...
library(RColorBrewer) library(rgeos) library(rgdal) library(maptools) library(scales) library(dplyr) library(ggmap) library(dplyr) library(Cairo) library(RColorBrewer) aaaa<-sample(0:1,100,T,c(.8,.2)) bbbb<-sample(0:1,100,T,c(.8,.2)) aaaa<-data.frame(aaaa,ifelse( aaaa == 1, T,F),ifelse( bbbb == 1, T,F) ) sum(apply...
/map.R
no_license
mleibert/651project
R
false
false
3,461
r
library(RColorBrewer) library(rgeos) library(rgdal) library(maptools) library(scales) library(dplyr) library(ggmap) library(dplyr) library(Cairo) library(RColorBrewer) aaaa<-sample(0:1,100,T,c(.8,.2)) bbbb<-sample(0:1,100,T,c(.8,.2)) aaaa<-data.frame(aaaa,ifelse( aaaa == 1, T,F),ifelse( bbbb == 1, T,F) ) sum(apply...
setwd( "C:/Users/jrfried/Documents/2016_Spatio-temporal_models/Week 2 -- mixed-effects/Lecture 2" ) Use_REML = F ###################### # Simulate data ###################### # Simulate predictors Factor = rep( 1:10, each=10) Z = rnorm( length(unique(Factor)), mean=0, sd=1) X0 = 0 # Simulate response ...
/Week 2 -- mixed-effects/Lecture 2/linear_mixed_model.R
no_license
Joe-Friedman/2016_Spatio-temporal_models
R
false
false
2,253
r
setwd( "C:/Users/jrfried/Documents/2016_Spatio-temporal_models/Week 2 -- mixed-effects/Lecture 2" ) Use_REML = F ###################### # Simulate data ###################### # Simulate predictors Factor = rep( 1:10, each=10) Z = rnorm( length(unique(Factor)), mean=0, sd=1) X0 = 0 # Simulate response ...
## The data linked to from the course website represent data collected from the accelerometers from the Samsung Galaxy S smartphone. A full description is ## available at the site where the data was obtained: ## http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones ## Here are the data ...
/run_analysis.R
no_license
WayneVest/GettingAndCleaningData
R
false
false
9,193
r
## The data linked to from the course website represent data collected from the accelerometers from the Samsung Galaxy S smartphone. A full description is ## available at the site where the data was obtained: ## http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones ## Here are the data ...
rm(list=ls()) library(FLCore) #library(FLFleet) #library(FLAssess) #library(FLSAM) library(MASS) #library(msm) for (opt in 4:16) { cat("Management opt",opt,"\n") # permanent changes? perm<-T if (perm)cat("!!! scenario with permanent changes") # numer of years for the projections prlength <- 40 # reduce the numbe...
/Sensitivity recruitment/03.2_run sim batch3.2.r
no_license
brune001/WKMACLTMP2014
R
false
false
1,891
r
rm(list=ls()) library(FLCore) #library(FLFleet) #library(FLAssess) #library(FLSAM) library(MASS) #library(msm) for (opt in 4:16) { cat("Management opt",opt,"\n") # permanent changes? perm<-T if (perm)cat("!!! scenario with permanent changes") # numer of years for the projections prlength <- 40 # reduce the numbe...
#' @title Biometrical data of 1 volunteer. #' #' A dataset containing the biometric data of x young adolescent volunteers #' recorded in a social class-room situation. #' #' @format A list with 3 data frames containing "acceleration data" #' with acceleration data for x, y, z, accelaration speed per time, #' "skin-cond...
/R/dataset.R
permissive
uashogeschoolutrecht/edartefacts
R
false
false
1,961
r
#' @title Biometrical data of 1 volunteer. #' #' A dataset containing the biometric data of x young adolescent volunteers #' recorded in a social class-room situation. #' #' @format A list with 3 data frames containing "acceleration data" #' with acceleration data for x, y, z, accelaration speed per time, #' "skin-cond...
##%######################################################%## # # #### Stage 2: scanning the F1 bams #### # # ##%######################################################%## # this stage...
/02-retreive_F1_bases.R
no_license
jeanlain/ZWAvulgare
R
false
false
3,937
r
##%######################################################%## # # #### Stage 2: scanning the F1 bams #### # # ##%######################################################%## # this stage...
#------------------------------------------------------------------------------- # Copyright (c) 2012 University of Illinois, NCSA. # All rights reserved. This program and the accompanying materials # are made available under the terms of the # University of Illinois/NCSA Open Source License # which accompanies this d...
/modules/uncertainty/R/plots.R
permissive
davidjpmoore/pecan
R
false
false
12,306
r
#------------------------------------------------------------------------------- # Copyright (c) 2012 University of Illinois, NCSA. # All rights reserved. This program and the accompanying materials # are made available under the terms of the # University of Illinois/NCSA Open Source License # which accompanies this d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/molecularSigs.R \name{miniReg} \alias{miniReg} \title{miniReg Runs lasso regression on a single feature from tabular data} \usage{ miniReg(tab, mol.feature, enet.alpha = c(1)) } \arguments{ \item{tab}{with column names `AML sample`,meanVal,Ge...
/man/miniReg.Rd
no_license
CamiloPosso/amlresistancenetworks
R
false
true
623
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/molecularSigs.R \name{miniReg} \alias{miniReg} \title{miniReg Runs lasso regression on a single feature from tabular data} \usage{ miniReg(tab, mol.feature, enet.alpha = c(1)) } \arguments{ \item{tab}{with column names `AML sample`,meanVal,Ge...
#' @rdname chart.RollingRegression #' @export chart.RollingQuantileRegression <- function (Ra, Rb, width = 12, Rf = 0, attribute = c("Beta", "Alpha", "R-Squared"), main=NULL, na.pad = TRUE, ...) { # @author Peter Carl, Brian Peterson # Check to see if the required libraries are loaded if(!requireNamespace("qua...
/R/chart.RollingQuantileRegression.R
no_license
sometxdude/PerformanceAnalytics
R
false
false
3,553
r
#' @rdname chart.RollingRegression #' @export chart.RollingQuantileRegression <- function (Ra, Rb, width = 12, Rf = 0, attribute = c("Beta", "Alpha", "R-Squared"), main=NULL, na.pad = TRUE, ...) { # @author Peter Carl, Brian Peterson # Check to see if the required libraries are loaded if(!requireNamespace("qua...
pref.ind <- function(x, y) { 1 + (x <= y) }
/BIOSurvey2/BIOSurvey2/R/pref.ind.R
no_license
risdell/VA_Oyster_Survey
R
false
false
45
r
pref.ind <- function(x, y) { 1 + (x <= y) }
#' #' #' #+ include = FALSE rm(list = ls()) setwd("O:/_other/projects/nba/") #' #' #' # Packages. ---- library("dplyr") library("stringr") library("readr") library("lubridate") #' #' #' # Parameters. ---- filename_import_base <- "game_results" filename_import_suffix <- "-cleaned" filename_import_ext <- ".csv" dir_imp...
/R/old/game_results-03_prepare_v03.R
no_license
tonyelhabr/nba
R
false
false
12,636
r
#' #' #' #+ include = FALSE rm(list = ls()) setwd("O:/_other/projects/nba/") #' #' #' # Packages. ---- library("dplyr") library("stringr") library("readr") library("lubridate") #' #' #' # Parameters. ---- filename_import_base <- "game_results" filename_import_suffix <- "-cleaned" filename_import_ext <- ".csv" dir_imp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metaX.R \docType{methods} \name{group.max<-} \alias{group.max<-} \title{group.max} \usage{ group.max(para) <- value } \arguments{ \item{para}{An object of metaXpara} \item{value}{value} } \value{ An object of metaXpara } \description{ group....
/man/group.max.Rd
no_license
wenbostar/metaX
R
false
true
450
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metaX.R \docType{methods} \name{group.max<-} \alias{group.max<-} \title{group.max} \usage{ group.max(para) <- value } \arguments{ \item{para}{An object of metaXpara} \item{value}{value} } \value{ An object of metaXpara } \description{ group....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/api.R \name{simulations_completed_info} \alias{simulations_completed_info} \title{Fetch information about the number of allocated containers, number of completed etc.} \usage{ simulations_completed_info() } \value{ list containing three eleme...
/man/simulations_completed_info.Rd
permissive
JasperHG90/sleepsimRapiClient
R
false
true
695
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/api.R \name{simulations_completed_info} \alias{simulations_completed_info} \title{Fetch information about the number of allocated containers, number of completed etc.} \usage{ simulations_completed_info() } \value{ list containing three eleme...
\name{genomic_corr_reldist} \alias{genomic_corr_reldist} \title{ Relative distance between two sets of genomic regions } \description{ Relative distance between two sets of genomic regions } \usage{ genomic_corr_reldist(gr1, gr2) } \arguments{ \item{gr1}{genomic region 1, a \code{\link[GenomicRanges]{GRanges}} objec...
/man/genomic_corr_reldist.rd
no_license
jokergoo/epik
R
false
false
1,461
rd
\name{genomic_corr_reldist} \alias{genomic_corr_reldist} \title{ Relative distance between two sets of genomic regions } \description{ Relative distance between two sets of genomic regions } \usage{ genomic_corr_reldist(gr1, gr2) } \arguments{ \item{gr1}{genomic region 1, a \code{\link[GenomicRanges]{GRanges}} objec...
library(shinydashboard) # 加载script文件夹内所有R脚本 lapply(list.files("script/", pattern = "[.][rR]$", recursive = TRUE, full.names = TRUE), source) function(input, output, session) { observeEvent(input$submit, { output$text <- renderText({ paste("file size is:", input$parse_gff_file['size'],"<br>add 3utr is:", i...
/oserver.R
no_license
zhangyumin/APAFlow
R
false
false
537
r
library(shinydashboard) # 加载script文件夹内所有R脚本 lapply(list.files("script/", pattern = "[.][rR]$", recursive = TRUE, full.names = TRUE), source) function(input, output, session) { observeEvent(input$submit, { output$text <- renderText({ paste("file size is:", input$parse_gff_file['size'],"<br>add 3utr is:", i...
#!/usr/bin/env Rscript # This file is for venn analysis of SNP lists ## Command Arg Parameters ## # CMD command1: Rscript venn.r data/seedSNP_1817.bed data/snp_484_roadmap_dist.bed data/snp_364_encode_dist.bed data/snp_94_regulome2b.bed # CMD command2: Rscript venn.r data/seedSNP_1817.bed data/snp_140_roadmap_encode.b...
/src/venn.r
no_license
kisudsoe/SNP_prioritization_T1D
R
false
false
4,344
r
#!/usr/bin/env Rscript # This file is for venn analysis of SNP lists ## Command Arg Parameters ## # CMD command1: Rscript venn.r data/seedSNP_1817.bed data/snp_484_roadmap_dist.bed data/snp_364_encode_dist.bed data/snp_94_regulome2b.bed # CMD command2: Rscript venn.r data/seedSNP_1817.bed data/snp_140_roadmap_encode.b...
\name{dridgeline} \alias{dridgeline} %- Also NEED an `\alias' for EACH other topic documented here. \title{Density along the ridgeline} \description{ Computes the density of a two-component Gaussian mixture along the ridgeline (Ray and Lindsay, 2005), along which all its density extrema are located. } \usage{ d...
/JCGS-R2/main_code/lib/fpc/man/dridgeline.Rd
no_license
patperry/cvclust
R
false
false
1,448
rd
\name{dridgeline} \alias{dridgeline} %- Also NEED an `\alias' for EACH other topic documented here. \title{Density along the ridgeline} \description{ Computes the density of a two-component Gaussian mixture along the ridgeline (Ray and Lindsay, 2005), along which all its density extrema are located. } \usage{ d...
library(shiny) shinyUI(pageWithSidebar( headerPanel("Example"), sidebarPanel( sliderInput('mu','Guess at the mean',value = 70,min = 62,max=80,step = 0.5) ), mainPanel( plotOutput('newHist') ) ))
/ui.R
no_license
djdhiraj/Shiny_R
R
false
false
214
r
library(shiny) shinyUI(pageWithSidebar( headerPanel("Example"), sidebarPanel( sliderInput('mu','Guess at the mean',value = 70,min = 62,max=80,step = 0.5) ), mainPanel( plotOutput('newHist') ) ))
# ___________ Script Setup _____________ # rm(list=ls()) setwd("~/Desktop/TSA/assignment2") library(expm) library(timeSeries) library(tseries) library(forecast) # _________ Question 2.2: Univeristy Activity _______________ # # Variable Setup t <- (51:60) mu <- 1000 Y1 <- c(989,724,1013,1280,1092,811,952,1277,1...
/ARMA_Seasonal_Processes/codeTSA2.R
no_license
RamiroCope/TimeSeriesModelling
R
false
false
4,344
r
# ___________ Script Setup _____________ # rm(list=ls()) setwd("~/Desktop/TSA/assignment2") library(expm) library(timeSeries) library(tseries) library(forecast) # _________ Question 2.2: Univeristy Activity _______________ # # Variable Setup t <- (51:60) mu <- 1000 Y1 <- c(989,724,1013,1280,1092,811,952,1277,1...