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
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/external.R, R/paths.R \name{packrat-external} \alias{packrat-external} \alias{with_extlib} \alias{extlib} \alias{user_lib} \alias{packrat_lib} \title{Managing External Libraries} \usage{ with_extlib(packages = NULL, expr, envir = parent.frame...
/packrat/src/packrat/packrat/man/packrat-external.Rd
permissive
rachjone/iapsr
R
false
true
1,514
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/external.R, R/paths.R \name{packrat-external} \alias{packrat-external} \alias{with_extlib} \alias{extlib} \alias{user_lib} \alias{packrat_lib} \title{Managing External Libraries} \usage{ with_extlib(packages = NULL, expr, envir = parent.frame...
.check <- function(x, sign='none',inf.rm=TRUE){ stopifnot(is.numeric(x)) sign <- match.arg(tolower(sign),c('nn','np','none')) size <- length(x) x.na <- is.na(x) n.na <- sum(x.na) if(any(x.na)){ x <- x[!x.na] warning(paste(n.na, "'NA' value(s) removed")) } x.finite <- is.f...
/bda/R/zzz.R
no_license
ingted/R-Examples
R
false
false
962
r
.check <- function(x, sign='none',inf.rm=TRUE){ stopifnot(is.numeric(x)) sign <- match.arg(tolower(sign),c('nn','np','none')) size <- length(x) x.na <- is.na(x) n.na <- sum(x.na) if(any(x.na)){ x <- x[!x.na] warning(paste(n.na, "'NA' value(s) removed")) } x.finite <- is.f...
\docType{package} \name{crochet-package} \alias{crochet-package} \title{\packageTitle{crochet}} \description{\packageDescription{crochet}} \section{Important Functions}{ \describe{ \item{\code{extract}:}{ Create an implementation of \code{[} for custom matrix-like types. } \item{...
/man/crochet-package.Rd
no_license
agrueneberg/crochet
R
false
false
1,396
rd
\docType{package} \name{crochet-package} \alias{crochet-package} \title{\packageTitle{crochet}} \description{\packageDescription{crochet}} \section{Important Functions}{ \describe{ \item{\code{extract}:}{ Create an implementation of \code{[} for custom matrix-like types. } \item{...
df <- read.table("household_power_consumption.txt", skip = 66637, nrow = 2880, sep = ";") name <- sapply(read.table("household_power_consumption.txt", nrow = 1, sep = ";"), as.character) names(df) <- name df$DateTime <- strptime(paste(df$Date, df$Time), format="%d/%m/%Y %H:%M:%S") for( i in 3:9 ){ df[[i]] <- sap...
/plot4.R
no_license
schak2801/ExData_Plotting1
R
false
false
2,234
r
df <- read.table("household_power_consumption.txt", skip = 66637, nrow = 2880, sep = ";") name <- sapply(read.table("household_power_consumption.txt", nrow = 1, sep = ";"), as.character) names(df) <- name df$DateTime <- strptime(paste(df$Date, df$Time), format="%d/%m/%Y %H:%M:%S") for( i in 3:9 ){ df[[i]] <- sap...
#download the data if(!file.exists("./data")){dir.create("./data")} fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl,destfile="./data/Dataset.zip",method="curl") #Extracting the data unzip(zipfile="./data/Dataset.zip",exdir="./data") #Get the na...
/run_analysis.R
no_license
VictorHugoRodMo/Data-Cleaning-Project
R
false
false
2,911
r
#download the data if(!file.exists("./data")){dir.create("./data")} fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl,destfile="./data/Dataset.zip",method="curl") #Extracting the data unzip(zipfile="./data/Dataset.zip",exdir="./data") #Get the na...
library(ggplot2) ## 1.2 Inverse CDF Method U <- runif(10000, min=0, max=1) X <- qexp(U, rate=1/2) par(mfrow=c(1, 2)) hist(U) hist(X) ## 1.3 Accept/Reject Algorithm ### 1.3.1 MCMC algorithm df <- function(x) { return(0.7*dnorm(x, mean=2, sd=1) + 0.3*dnorm(x, mean=5, sd=1)) } x <- seq(-3, 12, length=200) densit...
/R scripts/ch1 - MCMC.R
permissive
erickpeirson/statistical-computing
R
false
false
1,684
r
library(ggplot2) ## 1.2 Inverse CDF Method U <- runif(10000, min=0, max=1) X <- qexp(U, rate=1/2) par(mfrow=c(1, 2)) hist(U) hist(X) ## 1.3 Accept/Reject Algorithm ### 1.3.1 MCMC algorithm df <- function(x) { return(0.7*dnorm(x, mean=2, sd=1) + 0.3*dnorm(x, mean=5, sd=1)) } x <- seq(-3, 12, length=200) densit...
library(data.table) library(spdep) library(sf) rm(list = ls()) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # Prep the adjacency matrix and data #### #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# mydata <- fread('Z:/AMR/Pathogens/typhi_paratyphi/model_prep/admin1_ST_CAR/MDR_Typhi.csv') all_covs <- fread('Z:/AMR/Covariates/mo...
/INLA-CAR/admin1/03_prep_adj_matrix.R
no_license
The-Oxford-GBD-group/typhi_paratyphi_modelling_code
R
false
false
3,154
r
library(data.table) library(spdep) library(sf) rm(list = ls()) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # Prep the adjacency matrix and data #### #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# mydata <- fread('Z:/AMR/Pathogens/typhi_paratyphi/model_prep/admin1_ST_CAR/MDR_Typhi.csv') all_covs <- fread('Z:/AMR/Covariates/mo...
context("project method") params <- newMultispeciesParams(NS_species_params_gears, inter) # time dimension ---- test_that("time dimension is dealt with properly", { # Effort is a single numeric t_max <- 5 t_save <- 1 dt <- 0.1 sim <- project(params,t_max = t_max, t_save = t_save, dt = dt, effort ...
/tests/testthat/test-project.R
no_license
patricksykes/mizer
R
false
false
9,724
r
context("project method") params <- newMultispeciesParams(NS_species_params_gears, inter) # time dimension ---- test_that("time dimension is dealt with properly", { # Effort is a single numeric t_max <- 5 t_save <- 1 dt <- 0.1 sim <- project(params,t_max = t_max, t_save = t_save, dt = dt, effort ...
#edge--d diff gene between wt_PR8 dNS1/sictrl_PR8 dNS1 library(edgeR) library(splines) rm(list=ls()) path="D:/ivan/ivan2_RNASeq/DiffGenes/TR_C_INF_SiUBE2IAffectdgenes/" counts=read.table(paste(path,"RPKM1.txt",sep=""), header = TRUE, sep = "", quote = "\t",numerals = c("allow.loss"),row.names=1,stringsAsFactors = ...
/RWAR.R
no_license
bioWzz/Inspect
R
false
false
10,754
r
#edge--d diff gene between wt_PR8 dNS1/sictrl_PR8 dNS1 library(edgeR) library(splines) rm(list=ls()) path="D:/ivan/ivan2_RNASeq/DiffGenes/TR_C_INF_SiUBE2IAffectdgenes/" counts=read.table(paste(path,"RPKM1.txt",sep=""), header = TRUE, sep = "", quote = "\t",numerals = c("allow.loss"),row.names=1,stringsAsFactors = ...
library(deSolve) log.growth.theta <- function(t, y, p) { N <- y[1] with(as.list(p), { dN.dt <- r * N * (1 - (N / K)^theta) return(list(dN.dt)) }) } ## specify parameter values and initial conditions for tomatoes p <- c('r' = 0.2, 'K' = 1.05, 'theta' = 1.05) y0 <- c('N' = 0.01) t <- 0:100 sim <- ode(y = ...
/Exam 1/Exam1.r
no_license
TayDowney/Pop_ecologyHW
R
false
false
1,830
r
library(deSolve) log.growth.theta <- function(t, y, p) { N <- y[1] with(as.list(p), { dN.dt <- r * N * (1 - (N / K)^theta) return(list(dN.dt)) }) } ## specify parameter values and initial conditions for tomatoes p <- c('r' = 0.2, 'K' = 1.05, 'theta' = 1.05) y0 <- c('N' = 0.01) t <- 0:100 sim <- ode(y = ...
## Getting full dataset data_full <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y") ## Subsetting the data data <- subset(data_full, subset=(Date...
/plot2.R
no_license
elvic0607/ExploratoryDataAnalysisProject1
R
false
false
663
r
## Getting full dataset data_full <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y") ## Subsetting the data data <- subset(data_full, subset=(Date...
library(ISLR) linearMod <- lm(mpg~horsepower, data=Auto) print(linearMod) print(summary(linearMod)) predict(linearMod,data.frame(horsepower=c(98)),interval="prediction") plot(Auto$horsepower,Auto$mpg) abline(linearMod,lwd=5,col="blue") par(mfrow = c(2,2)) plot(linearMod) #TASK 2 rm(list=ls()) attach(Auto) mpg01 <-...
/Introduction to Data Science/Intro_to_DataScience.R
permissive
syedwaleedhyder/Freelance_Projects
R
false
false
1,322
r
library(ISLR) linearMod <- lm(mpg~horsepower, data=Auto) print(linearMod) print(summary(linearMod)) predict(linearMod,data.frame(horsepower=c(98)),interval="prediction") plot(Auto$horsepower,Auto$mpg) abline(linearMod,lwd=5,col="blue") par(mfrow = c(2,2)) plot(linearMod) #TASK 2 rm(list=ls()) attach(Auto) mpg01 <-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auxil.R \name{adegenetWeb} \alias{adegenetWeb} \alias{adegenetTutorial} \alias{adegenetIssues} \title{Functions to access online resources for adegenet} \usage{ adegenetWeb() adegenetTutorial(which = c("basics", "spca", "dapc", "genomics", ...
/man/web.Rd
no_license
Ram-Nagar/adegenet
R
false
true
1,410
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auxil.R \name{adegenetWeb} \alias{adegenetWeb} \alias{adegenetTutorial} \alias{adegenetIssues} \title{Functions to access online resources for adegenet} \usage{ adegenetWeb() adegenetTutorial(which = c("basics", "spca", "dapc", "genomics", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tbergm.R \docType{class} \name{tbergm-class} \alias{tbergm-class} \alias{show,tbergm-method} \alias{nobs,tbergm-method} \alias{timesteps.tbergm} \alias{summary,tbergm-method} \title{An S4 class to represent a fitted TERGM using Bayesian estim...
/man/tbergm-class.Rd
no_license
leifeld/btergm
R
false
true
2,678
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tbergm.R \docType{class} \name{tbergm-class} \alias{tbergm-class} \alias{show,tbergm-method} \alias{nobs,tbergm-method} \alias{timesteps.tbergm} \alias{summary,tbergm-method} \title{An S4 class to represent a fitted TERGM using Bayesian estim...
library(ggplot2) head(iris) iris <- iris # Con estilo de ejemplo: ---- p <- ggplot(iris_data, aes(x = Petal.Length)) p <- p + geom_line(aes(y = Petal.Width)) p p <- p + geom_line(aes(y = Sepal.Width)) p # Tweaking para dos ejes: p <- ggplot(iris_data, aes(x = Petal.Length)) p <- p + geom_line(aes(y = Petal.Width, co...
/dos_ejes_y_ggplot.R
no_license
ronnyhdez/gaveta_r
R
false
false
967
r
library(ggplot2) head(iris) iris <- iris # Con estilo de ejemplo: ---- p <- ggplot(iris_data, aes(x = Petal.Length)) p <- p + geom_line(aes(y = Petal.Width)) p p <- p + geom_line(aes(y = Sepal.Width)) p # Tweaking para dos ejes: p <- ggplot(iris_data, aes(x = Petal.Length)) p <- p + geom_line(aes(y = Petal.Width, co...
library('ProjectTemplate') load.project() # query list object colnames for GF to find out "async" experiments asnc <- lapply(lapply(datalist.orig, function(x) lapply(x, function(y) sum(!"GF" %in% names(y)))), function(z) sum(unlist(z))) datalist.asnc <- datalist.orig[asnc > 0] # load data from list and subtract basel...
/src/glowingstuff_2.R
no_license
tpall/CellGlo
R
false
false
3,185
r
library('ProjectTemplate') load.project() # query list object colnames for GF to find out "async" experiments asnc <- lapply(lapply(datalist.orig, function(x) lapply(x, function(y) sum(!"GF" %in% names(y)))), function(z) sum(unlist(z))) datalist.asnc <- datalist.orig[asnc > 0] # load data from list and subtract basel...
expandREData = function(data, resp_form = NULL, fixed_form = NULL, rand_forms = NULL, cenTol = 0.001){ resp_mat = model.matrix(resp_form, data) isCen = (resp_mat[,2] - resp_mat[,1]) > cenTol fixed_mat = NULL ra...
/icenME/R/initializers.R
no_license
pistacliffcho/icenME_devel
R
false
false
3,514
r
expandREData = function(data, resp_form = NULL, fixed_form = NULL, rand_forms = NULL, cenTol = 0.001){ resp_mat = model.matrix(resp_form, data) isCen = (resp_mat[,2] - resp_mat[,1]) > cenTol fixed_mat = NULL ra...
\name{baseline} \alias{baseline} \title{ Align BLI traces with baseline step } \description{ Align BLI traces with the baseline step right before the association step. The start and end times of baseline are input arguments. } \usage{ baseline(obj, tStart, tEnd) } \arguments{ \item{obj}{ \code{obj} of "Bli" class }...
/man/baseline.Rd
no_license
cran/smoke
R
false
false
1,101
rd
\name{baseline} \alias{baseline} \title{ Align BLI traces with baseline step } \description{ Align BLI traces with the baseline step right before the association step. The start and end times of baseline are input arguments. } \usage{ baseline(obj, tStart, tEnd) } \arguments{ \item{obj}{ \code{obj} of "Bli" class }...
###to get reference of thaliana #first run prepmfa.sh library(seqinr) is.even <- function(x) x %% 2 == 0 #pari is.odd <- function(x) x %% 2 != 0 #dispari ########################################3 ###input setwd("/home/marco/Araly1_Genome/A_lyrata_Vs_TAIR10/") #chr=c("ChrC", "ChrM") #name_output="All_Plastid" chr=c(...
/ref_thaliana.R
no_license
fraca/PWGS2
R
false
false
4,994
r
###to get reference of thaliana #first run prepmfa.sh library(seqinr) is.even <- function(x) x %% 2 == 0 #pari is.odd <- function(x) x %% 2 != 0 #dispari ########################################3 ###input setwd("/home/marco/Araly1_Genome/A_lyrata_Vs_TAIR10/") #chr=c("ChrC", "ChrM") #name_output="All_Plastid" chr=c(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeMakefiles.R \name{makeMakeShellRule} \alias{makeMakeShellRule} \title{Create text for a make rule that calls a shell command} \usage{ makeMakeShellRule(target, depends = c(), cmd) } \arguments{ \item{target}{character: the target name} \...
/man/makeMakeShellRule.Rd
permissive
lawinslow/vizlab
R
false
true
515
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeMakefiles.R \name{makeMakeShellRule} \alias{makeMakeShellRule} \title{Create text for a make rule that calls a shell command} \usage{ makeMakeShellRule(target, depends = c(), cmd) } \arguments{ \item{target}{character: the target name} \...
library(pdftools) library(stringr) library(plotly) # Get current time for later use currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone()) attributes(currenttime)$tzone <- "Asia/Hong_Kong" currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="") # download latest data file download.fi...
/2020-11-09/analysis.R
no_license
tszhim-tsui/2020-hk-covid19
R
false
false
27,307
r
library(pdftools) library(stringr) library(plotly) # Get current time for later use currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone()) attributes(currenttime)$tzone <- "Asia/Hong_Kong" currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="") # download latest data file download.fi...
"violin" <- function(x,data=NULL,var=NULL,grp=NULL,grp.name=NULL, xlab=NULL, ylab=NULL,main="Density plot",vertical=TRUE, dots=FALSE, rain=FALSE,jitter=.05, alpha=1,errors=FALSE,eyes=TRUE,adjust=1,restrict=TRUE,xlim=NULL,add=FALSE,col=NULL,pch=20,scale=NULL, ...) { violinBy(x=x,data=data,var=var,grp=grp,grp.name=g...
/R/densityBy.r
no_license
cran/psych
R
false
false
13,076
r
"violin" <- function(x,data=NULL,var=NULL,grp=NULL,grp.name=NULL, xlab=NULL, ylab=NULL,main="Density plot",vertical=TRUE, dots=FALSE, rain=FALSE,jitter=.05, alpha=1,errors=FALSE,eyes=TRUE,adjust=1,restrict=TRUE,xlim=NULL,add=FALSE,col=NULL,pch=20,scale=NULL, ...) { violinBy(x=x,data=data,var=var,grp=grp,grp.name=g...
library(shiny) library(dplyr) library(tidyr) library(stringr) library(highcharter) #setwd('/home/hs2865/src/f16-GS/capstone_app') #setwd('/Users/manuelrueda/Dropbox/Documents/python/f16-GS/capstone_app') ## Read data. #companies <- read.csv('cik_new.csv', header=FALSE, sep='|', stringsAsFactors = FALSE) companies <- ...
/capstone_app/server.R
no_license
masta-g3/f16-GS-local
R
false
false
14,471
r
library(shiny) library(dplyr) library(tidyr) library(stringr) library(highcharter) #setwd('/home/hs2865/src/f16-GS/capstone_app') #setwd('/Users/manuelrueda/Dropbox/Documents/python/f16-GS/capstone_app') ## Read data. #companies <- read.csv('cik_new.csv', header=FALSE, sep='|', stringsAsFactors = FALSE) companies <- ...
#' Inspect objects #' #' Print a short summary of the contents of an object. Most useful as a way to #' get a quick overview of the variables in data frame. #' #' @param object a data frame or a vector #' @param max.level an integer giving the depth to which lists should be expanded #' @param digits and integer givi...
/R/inspect.R
no_license
kenjimyzk/mosaic
R
false
false
3,463
r
#' Inspect objects #' #' Print a short summary of the contents of an object. Most useful as a way to #' get a quick overview of the variables in data frame. #' #' @param object a data frame or a vector #' @param max.level an integer giving the depth to which lists should be expanded #' @param digits and integer givi...
library("QFFX") testFXForward <- function() { #check for bad inputs usdchf <- FXCurr$setByCross("usd/chf") shouldBomb(FXForward("usdchf","mid")) shouldBomb(FXForward(usdchf,"bidmidask")) #check for good inputs usdjpy <- FXForward(FXCurr$setByCross("usd/jpy"),"bid") checkEquals(usdj...
/R/src/QFFX/tests/testFXForward.R
no_license
rsheftel/ratel
R
false
false
478
r
library("QFFX") testFXForward <- function() { #check for bad inputs usdchf <- FXCurr$setByCross("usd/chf") shouldBomb(FXForward("usdchf","mid")) shouldBomb(FXForward(usdchf,"bidmidask")) #check for good inputs usdjpy <- FXForward(FXCurr$setByCross("usd/jpy"),"bid") checkEquals(usdj...
context("test-parser-missing-sas") test_that("Right number of missing values", { expect_equal(nrow(sac_parsed_sas$missing), 261) expect_equal(nrow(sex_offender_parsed_sas$missing), 18) expect_true(is.null(ucr1960_parsed_sas$missing)) expect_equal(nrow(weimar_parsed_sas$missing), 19) expect_true(is.n...
/tests/testthat/test-parser-missing-sas.R
no_license
cran/asciiSetupReader
R
false
false
26,250
r
context("test-parser-missing-sas") test_that("Right number of missing values", { expect_equal(nrow(sac_parsed_sas$missing), 261) expect_equal(nrow(sex_offender_parsed_sas$missing), 18) expect_true(is.null(ucr1960_parsed_sas$missing)) expect_equal(nrow(weimar_parsed_sas$missing), 19) expect_true(is.n...
# loading libraries ------------------------------------------------------- suppressMessages(c(library(tidyverse), library(doParallel), library(tidytext), library(stringr), library(caret))) registerDoParallel(makeCluster(4)) #################...
/05_script_capstone_project.R
no_license
larui529/datascience_capstone
R
false
false
4,622
r
# loading libraries ------------------------------------------------------- suppressMessages(c(library(tidyverse), library(doParallel), library(tidytext), library(stringr), library(caret))) registerDoParallel(makeCluster(4)) #################...
# Do this for multiple folders. So i am going to select.list ll the folders #in my current directory that hass all my experiments listed. #first select the folder that contains ALL experiments main.dir<-"E:/Data/Mario/" exp.dir<-select.list(list.dirs(), multiple=T) #name the experiments you will assess today....
/extras/Cell Profiler Import/170209.chinu.data.full.cp.import.r
permissive
leeleavitt/procPharm
R
false
false
7,049
r
# Do this for multiple folders. So i am going to select.list ll the folders #in my current directory that hass all my experiments listed. #first select the folder that contains ALL experiments main.dir<-"E:/Data/Mario/" exp.dir<-select.list(list.dirs(), multiple=T) #name the experiments you will assess today....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as.seqData.R \name{as.seqData} \alias{as.seqData} \title{Convert Data to Appropriate pmartRseq Class} \usage{ as.seqData(e_data, f_data, e_meta = NULL, edata_cname, fdata_cname, data_type, taxa_cname = NULL, ...) } \arguments{ \item{e_data}...
/man/as.seqData.Rd
permissive
pmartR/pmartRseq
R
false
true
5,697
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as.seqData.R \name{as.seqData} \alias{as.seqData} \title{Convert Data to Appropriate pmartRseq Class} \usage{ as.seqData(e_data, f_data, e_meta = NULL, edata_cname, fdata_cname, data_type, taxa_cname = NULL, ...) } \arguments{ \item{e_data}...
# Dogon wordlist manipulation # Steven Moran <steven.moran@uzh.ch> library(dplyr) setwd("~/Dropbox/Github/dogon") db <- read.table("English.tsv", sep="\t", header=T, stringsAsFactors=F, fileEncoding="UTF-8", quote="", comment.char="") lj <- read.table("Leipzig-Jakarta.tsv", sep="\t", header=T, stringsAsFactors=F, fi...
/working/legacy/merge-lists.R
no_license
LinguList/dogon
R
false
false
1,764
r
# Dogon wordlist manipulation # Steven Moran <steven.moran@uzh.ch> library(dplyr) setwd("~/Dropbox/Github/dogon") db <- read.table("English.tsv", sep="\t", header=T, stringsAsFactors=F, fileEncoding="UTF-8", quote="", comment.char="") lj <- read.table("Leipzig-Jakarta.tsv", sep="\t", header=T, stringsAsFactors=F, fi...
# Data import for EHA ### #remove(list = ls()) library(igraph); library(magrittr); library(dplyr); require(RCurl); library(readr) library(ggregplot); library(ggplot2); library(RColorBrewer) AssocsBase <- read_csv("https://raw.githubusercontent.com/ecohealthalliance/HP3/master/data/associations.csv") %>% data.frame()...
/R/0a_Sharing Network Data Import.R
no_license
yashasdevasurmutt/ViralSharingPhylogeography
R
false
false
2,826
r
# Data import for EHA ### #remove(list = ls()) library(igraph); library(magrittr); library(dplyr); require(RCurl); library(readr) library(ggregplot); library(ggplot2); library(RColorBrewer) AssocsBase <- read_csv("https://raw.githubusercontent.com/ecohealthalliance/HP3/master/data/associations.csv") %>% data.frame()...
data=read.csv('household_power_consumption.txt',sep=';',dec='.',na.strings = c("?",""),header=T) data$Date=as.Date(data$Date , format='%d/%m/%Y') head(data) data_crop=subset(data,Date>="2007-02-01" & Date<="2007-02-02") data_crop$timetemp <- paste(data_crop$Date, data_crop$Time) data_crop$Time <- strptime(data_crop$tim...
/plot3.R
no_license
michelangelo1990/ExData_Plotting1
R
false
false
760
r
data=read.csv('household_power_consumption.txt',sep=';',dec='.',na.strings = c("?",""),header=T) data$Date=as.Date(data$Date , format='%d/%m/%Y') head(data) data_crop=subset(data,Date>="2007-02-01" & Date<="2007-02-02") data_crop$timetemp <- paste(data_crop$Date, data_crop$Time) data_crop$Time <- strptime(data_crop$tim...
library(lme4) library(nlme) library(ggplot2) library('dplyr') library(ggpubr) library('sjPlot') library('sjmisc') library('caret') setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) df <- read.csv('table_episodic_jour.csv') df$richness <- df$no_subreddits #log(df$no_subreddits)+1 df$evenness <- df$pielou_eve...
/addiction_id_dev_single_models.R
no_license
Identity-lab/Rcode_addiction
R
false
false
8,495
r
library(lme4) library(nlme) library(ggplot2) library('dplyr') library(ggpubr) library('sjPlot') library('sjmisc') library('caret') setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) df <- read.csv('table_episodic_jour.csv') df$richness <- df$no_subreddits #log(df$no_subreddits)+1 df$evenness <- df$pielou_eve...
library(ggplot2) plotTimeDensity <- function(partName) { tData <- data.frame(read.table(paste("data/", partName, ".dat", sep=""), header=TRUE)) p <- ggplot(tData, aes(x=Time)) + #geom_histogram(binwidth=100) + geom_freqpoly(binwidth=100) + theme_bw() ggsave(paste("plots/", partName, ".eps", sep="")) }...
/TwitterEval/src/main/R/plotGymnastics.R
no_license
ww880412/Meandering
R
false
false
684
r
library(ggplot2) plotTimeDensity <- function(partName) { tData <- data.frame(read.table(paste("data/", partName, ".dat", sep=""), header=TRUE)) p <- ggplot(tData, aes(x=Time)) + #geom_histogram(binwidth=100) + geom_freqpoly(binwidth=100) + theme_bw() ggsave(paste("plots/", partName, ".eps", sep="")) }...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1316 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1316 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query02_query03_1344/query02_query03_1344.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
707
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1316 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1316 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
/Regression/Plot Regressions.R
no_license
storopoli/R_Scripts
R
false
false
4,287
r
library(testthat) library(hearrthstone) test_check("hearrthstone")
/tests/testthat.R
permissive
kabhatia7/hearrthstone
R
false
false
68
r
library(testthat) library(hearrthstone) test_check("hearrthstone")
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should be us...
/dev/02_dev.R
permissive
brentscott93/quickform
R
false
false
2,041
r
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should be us...
library(Dowd) ### Name: AdjustedNormalVaRHotspots ### Title: Hotspots for VaR adjusted by Cornish-Fisher correction ### Aliases: AdjustedNormalVaRHotspots ### ** Examples # Hotspots for ES for randomly generated portfolio vc.matrix <- matrix(rnorm(16),4,4) mu <- rnorm(4) skew <- .5 kurtosis <- 1.2 po...
/data/genthat_extracted_code/Dowd/examples/AdjustedNormalVaRHotspots.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
451
r
library(Dowd) ### Name: AdjustedNormalVaRHotspots ### Title: Hotspots for VaR adjusted by Cornish-Fisher correction ### Aliases: AdjustedNormalVaRHotspots ### ** Examples # Hotspots for ES for randomly generated portfolio vc.matrix <- matrix(rnorm(16),4,4) mu <- rnorm(4) skew <- .5 kurtosis <- 1.2 po...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ReadTntTree.R \name{ReadTntTree} \alias{ReadTntTree} \alias{TntText2Tree} \alias{TNTText2Tree} \title{Parse TNT Tree} \usage{ ReadTntTree(filepath, relativePath = NULL, keepEnd = 1L, tipLabels = NULL) TntText2Tree(treeText) TNTT...
/man/ReadTntTree.Rd
no_license
cran/TreeTools
R
false
true
4,849
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ReadTntTree.R \name{ReadTntTree} \alias{ReadTntTree} \alias{TntText2Tree} \alias{TNTText2Tree} \title{Parse TNT Tree} \usage{ ReadTntTree(filepath, relativePath = NULL, keepEnd = 1L, tipLabels = NULL) TntText2Tree(treeText) TNTT...
/plugins/MacAU/LeadAmp/LeadAmp.r
permissive
airwindows/airwindows
R
false
false
3,216
r
library("lubridate") #unzip and read in data unzip("exdata_data_household_power_consumption.zip") powerdata_all <- read.table("household_power_consumption.txt",skip = 1,sep = ";",col.names = c('Date','Time','Global_active_power','Global_reactive_power','Voltage','Global-intensity','Sub_metering_1','Sub_metering_2','Sub...
/plot4.R
no_license
smcdow2/ExData_Plotting1
R
false
false
1,797
r
library("lubridate") #unzip and read in data unzip("exdata_data_household_power_consumption.zip") powerdata_all <- read.table("household_power_consumption.txt",skip = 1,sep = ";",col.names = c('Date','Time','Global_active_power','Global_reactive_power','Voltage','Global-intensity','Sub_metering_1','Sub_metering_2','Sub...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/st_estimators.R \name{stEstDRWLS} \alias{stEstDRWLS} \title{doubly-robust weighted least squares estimator} \usage{ stEstDRWLS(data, ...) } \description{ doubly-robust weighted least squares estimator }
/man/stEstDRWLS.Rd
no_license
olssol/stresstest
R
false
true
283
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/st_estimators.R \name{stEstDRWLS} \alias{stEstDRWLS} \title{doubly-robust weighted least squares estimator} \usage{ stEstDRWLS(data, ...) } \description{ doubly-robust weighted least squares estimator }
################################################################################################################################ ################################################################################################################################ ################### STUART MORRISON - 42657927 - CODE FOR BE...
/PortfolioReturns.R
no_license
stuart-morrison/CorrelationPlusContagion
R
false
false
19,033
r
################################################################################################################################ ################################################################################################################################ ################### STUART MORRISON - 42657927 - CODE FOR BE...
make_grid <- function(x, y = NULL, min = 0, max = 1023) { if (is.null(y)) { if (is.null(dim(x)) || dim(x)[2] < 2) { stop("If y is not supplied x needs to be a matrix of at least two columns") } if (dim(x)[2] > 2) { warning("x has more than 2 dimensions. Using the first and second col...
/code/functions/make_grid.R
no_license
kevinbrosnan/gating
R
false
false
642
r
make_grid <- function(x, y = NULL, min = 0, max = 1023) { if (is.null(y)) { if (is.null(dim(x)) || dim(x)[2] < 2) { stop("If y is not supplied x needs to be a matrix of at least two columns") } if (dim(x)[2] > 2) { warning("x has more than 2 dimensions. Using the first and second col...
library(googlesheets) library(ggplot2) #ui ui <- fluidPage( tabsetPanel( #data entry tab tabPanel("Enter data", #select which entry this comes from radioButtons("compared_by", "Which entry are you from?", c("entry_1", "entry_2", "entry_3") ...
/ida_plate_6.R
no_license
ofchurches/ida_plate
R
false
false
2,428
r
library(googlesheets) library(ggplot2) #ui ui <- fluidPage( tabsetPanel( #data entry tab tabPanel("Enter data", #select which entry this comes from radioButtons("compared_by", "Which entry are you from?", c("entry_1", "entry_2", "entry_3") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/attendance.R \name{getAttendance} \alias{getAttendance} \title{Get Attendance Records} \usage{ getAttendance(season = NULL) } \arguments{ \item{season}{Optional, to filter attendance to a given season. Format: 20172018} } \value{ season atten...
/man/getAttendance.Rd
permissive
pbulsink/nhlRapi
R
false
true
615
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/attendance.R \name{getAttendance} \alias{getAttendance} \title{Get Attendance Records} \usage{ getAttendance(season = NULL) } \arguments{ \item{season}{Optional, to filter attendance to a given season. Format: 20172018} } \value{ season atten...
# devtools::install_github("leoluyi/PTTr") library(PTTr) library(data.table) library(DBI) library(RSQLite) library(parsedate) # Crawl data -------------------------------------------------------------- res <- get_all_posts("Gossiping", max_post = 2000) res[, post_time := post_time %>% parsedate::format_iso_8601()] ...
/R/ptt_crawler.R
no_license
leoluyi/2018-05-12_text_mining_and_viz
R
false
false
529
r
# devtools::install_github("leoluyi/PTTr") library(PTTr) library(data.table) library(DBI) library(RSQLite) library(parsedate) # Crawl data -------------------------------------------------------------- res <- get_all_posts("Gossiping", max_post = 2000) res[, post_time := post_time %>% parsedate::format_iso_8601()] ...
data <- read.csv("/Users/Nic/Downloads/coindesk-bpi-USD-close_data-2017-06-01_2017-06-21.csv") data_train <- data[1:300,2] data_test <- data[301:501,2] acc = 0 normalize <- function(x) { return ((x - min(x)) / (max(x) - min(x))) } data_train <- normalize(data_train) data_test <- normalize(data_test) w <- runif(10...
/Binary Single Perceptron.R
no_license
NFrisiani/Bachelor-Thesis
R
false
false
1,210
r
data <- read.csv("/Users/Nic/Downloads/coindesk-bpi-USD-close_data-2017-06-01_2017-06-21.csv") data_train <- data[1:300,2] data_test <- data[301:501,2] acc = 0 normalize <- function(x) { return ((x - min(x)) / (max(x) - min(x))) } data_train <- normalize(data_train) data_test <- normalize(data_test) w <- runif(10...
### LIVE-CODING SESSION ######################## # From the workshop on ggplot on the 7th of February 2020 #-- Libraries ------------------------ library(tidyverse) library(normentR) #-- Load data ------------------------ # Loaded in via File > Import Dataset > From Text (readr) #-- Create plots ------------------...
/20_02_07_ggplot_workshop/WorkshopScript.R
no_license
norment/events
R
false
false
1,664
r
### LIVE-CODING SESSION ######################## # From the workshop on ggplot on the 7th of February 2020 #-- Libraries ------------------------ library(tidyverse) library(normentR) #-- Load data ------------------------ # Loaded in via File > Import Dataset > From Text (readr) #-- Create plots ------------------...
createTests <- function() { # declareTestGroup("Condition Era") # createConditionEraTests() # declareTestGroup("Condition Occurrence") # createConditionOccurrenceTests() # declareTestGroup("Death") createDeathTests() # declareTestGroup("Device Exposure") # createDeviceExposureTests() # declareTestGrou...
/docs/Optum Clinformatics/Test Cases/R/OptumExtendedSesDodSesUnitTests.R
permissive
bubdm/ETL-LambdaBuilder
R
false
false
1,020
r
createTests <- function() { # declareTestGroup("Condition Era") # createConditionEraTests() # declareTestGroup("Condition Occurrence") # createConditionOccurrenceTests() # declareTestGroup("Death") createDeathTests() # declareTestGroup("Device Exposure") # createDeviceExposureTests() # declareTestGrou...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fsx_operations.R \name{fsx_delete_volume} \alias{fsx_delete_volume} \title{Deletes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume} \usage{ fsx_delete_volume( ClientRequestToken = NULL, VolumeId, OntapConfiguration = NUL...
/cran/paws.storage/man/fsx_delete_volume.Rd
permissive
paws-r/paws
R
false
true
1,018
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fsx_operations.R \name{fsx_delete_volume} \alias{fsx_delete_volume} \title{Deletes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume} \usage{ fsx_delete_volume( ClientRequestToken = NULL, VolumeId, OntapConfiguration = NUL...
library(testthat) library(GeoOrigins) test_check("GeoOrigins")
/tests/testthat.R
no_license
ArdernHB/GeoOrigins
R
false
false
64
r
library(testthat) library(GeoOrigins) test_check("GeoOrigins")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/99_Getters.R \name{GetPenaltyScoringMatrix} \alias{GetPenaltyScoringMatrix} \title{Get \code{Benchmark} penalty scoring matrix} \usage{ GetPenaltyScoringMatrix(benchmark) } \arguments{ \item{benchmark}{object of type \code{Benchmark} that use...
/man/GetPenaltyScoringMatrix.Rd
permissive
davnovak/SingleBench
R
false
true
636
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/99_Getters.R \name{GetPenaltyScoringMatrix} \alias{GetPenaltyScoringMatrix} \title{Get \code{Benchmark} penalty scoring matrix} \usage{ GetPenaltyScoringMatrix(benchmark) } \arguments{ \item{benchmark}{object of type \code{Benchmark} that use...
library(bc3net) ### Name: makenull ### Title: Generate a mutual information null distribution from a gene ### expression matrix ### Aliases: makenull ### Keywords: internal ### ** Examples data(expmat) null=makenull(expmat, nullit=5)
/data/genthat_extracted_code/bc3net/examples/makenull.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
245
r
library(bc3net) ### Name: makenull ### Title: Generate a mutual information null distribution from a gene ### expression matrix ### Aliases: makenull ### Keywords: internal ### ** Examples data(expmat) null=makenull(expmat, nullit=5)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{opls_for_projection} \alias{opls_for_projection} \title{orthogonal scores algorithn of partial leat squares (opls) projection} \usage{ opls_for_projection(X, Y, ncomp, scale, maxiter, tol, ...
/man/opls_for_projection.Rd
no_license
philipp-baumann/resemble
R
false
true
2,967
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{opls_for_projection} \alias{opls_for_projection} \title{orthogonal scores algorithn of partial leat squares (opls) projection} \usage{ opls_for_projection(X, Y, ncomp, scale, maxiter, tol, ...
rankall <- function(outcome, num = "best") { ## Read outcome data ## Check that state and outcome are valid ## For each state, find the hospital of the given rank ## Return a data frame with the hospital names and the ## (abbreviated) state name outcomeDfr <- read.csv("outcome-of-care-measures.c...
/rankall.R
no_license
yoge5h/HospitalScripts
R
false
false
2,519
r
rankall <- function(outcome, num = "best") { ## Read outcome data ## Check that state and outcome are valid ## For each state, find the hospital of the given rank ## Return a data frame with the hospital names and the ## (abbreviated) state name outcomeDfr <- read.csv("outcome-of-care-measures.c...
library(ggplot2) ########################################### ## Doing these plots for a single group ########################################### ## Read in your data model.res <- read.csv("/Users/Ian/Google.Drive/ANU Herp Work/Adaptive Radiation/Body Size Model LOOP/Pygopodoidea.Model.Comparison.csv") ## Plot the ti...
/Histogram and Density Distribution PLOT.R
no_license
IanGBrennan/Convenient_Scripts
R
false
false
1,770
r
library(ggplot2) ########################################### ## Doing these plots for a single group ########################################### ## Read in your data model.res <- read.csv("/Users/Ian/Google.Drive/ANU Herp Work/Adaptive Radiation/Body Size Model LOOP/Pygopodoidea.Model.Comparison.csv") ## Plot the ti...
/draft/from_Sturgen_folder/21_Chk_June21_2013Data.R
no_license
YulongXieGitHub/YulongR_Code
R
false
false
171,329
r
#' @title generateMultipleListings #' @description Generate an entire resume section #' @details Using a list of lists to describe jobs generate text for each job subsection #' @author Jared P. Lander #' @export generateMultipleListings #' @rdname generateMultipleListings #' @importFrom dplyr "%>%" filter_ #' @s...
/resumer/R/SectionCreation.r
no_license
ingted/R-Examples
R
false
false
2,709
r
#' @title generateMultipleListings #' @description Generate an entire resume section #' @details Using a list of lists to describe jobs generate text for each job subsection #' @author Jared P. Lander #' @export generateMultipleListings #' @rdname generateMultipleListings #' @importFrom dplyr "%>%" filter_ #' @s...
pd=data.frame("name"=c("A","A","B","B"), "month"=c("jan","feb","jan","feb"), "Bs"=c(141.2,139.3,135.2,160.1), "Bp"=c(90,78,80,81)) ## Subset of data based on comditions pd2=subset(pd,name=="A" & Bs>100) print(pd2) df[[2]][2]="R" ##editing df by direct index ## edit df by edit c...
/w103.R
no_license
slashharsh/R
R
false
false
340
r
pd=data.frame("name"=c("A","A","B","B"), "month"=c("jan","feb","jan","feb"), "Bs"=c(141.2,139.3,135.2,160.1), "Bp"=c(90,78,80,81)) ## Subset of data based on comditions pd2=subset(pd,name=="A" & Bs>100) print(pd2) df[[2]][2]="R" ##editing df by direct index ## edit df by edit c...
myDataFile <- "household_power_consumption.txt" data <- read.table(myDataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") myPlot2 <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #Plot2 datetime <- strptime(paste(myPlot2$Date, myPlot2$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActivePower <- as.nu...
/Plot2.R
no_license
Ronnz98/ExData_Plotting1
R
false
false
510
r
myDataFile <- "household_power_consumption.txt" data <- read.table(myDataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") myPlot2 <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #Plot2 datetime <- strptime(paste(myPlot2$Date, myPlot2$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActivePower <- as.nu...
# Exercise 2: a basic Shiny app # Load the `shiny` package library("shiny") # Define a new `ui` variable. This variable should be assigned a `fluidPage()` layout # The `fluidPage()` layout should be passed the following: my_ui <- fluidPage( titlePanel(title = "Cost Calculator", windowTitle = "title"), numericInp...
/chapter-19-exercises/exercise-2/app.R
permissive
mmj99/book-exercises
R
false
false
1,644
r
# Exercise 2: a basic Shiny app # Load the `shiny` package library("shiny") # Define a new `ui` variable. This variable should be assigned a `fluidPage()` layout # The `fluidPage()` layout should be passed the following: my_ui <- fluidPage( titlePanel(title = "Cost Calculator", windowTitle = "title"), numericInp...
getOptionList2 <- function() { list( make_option("--quit-with-status", action="store_true", help="enable exit code option when performing check") ) } getArgParser2 <- function() { option_list <- getOptionList2() OptionParser(usage = "R CMD BiocCheckGitClone [options] package", ...
/R/BiocCheckGitClone.R
no_license
llrs/BiocCheck
R
false
false
3,067
r
getOptionList2 <- function() { list( make_option("--quit-with-status", action="store_true", help="enable exit code option when performing check") ) } getArgParser2 <- function() { option_list <- getOptionList2() OptionParser(usage = "R CMD BiocCheckGitClone [options] package", ...
#*********************************************************************************** # Operációkutatás szoftveres példatár # # II. Szimplex feladatok # # 11. feladat - Rendőrőrs. # #*********************************************************************************** library(lpSolveAPI) #6 darab döntési változó van. l...
/src/assets/sources/files/kodok/r/2 fejezet feladatai/II_11.R
no_license
james9711/Operaciokutatas_peldatar
R
false
false
1,600
r
#*********************************************************************************** # Operációkutatás szoftveres példatár # # II. Szimplex feladatok # # 11. feladat - Rendőrőrs. # #*********************************************************************************** library(lpSolveAPI) #6 darab döntési változó van. l...
library(reshape) source("10code.R") #### 1) Original file: NUM.xlsx; #### Categories: Total GDP, GDP measured at PPP, number of HH, population; gdp <- read.csv("../../data/csv_format/NUM.csv") gdp <- gdp[-1, ] ## Unnecessary columns; gdp <- gdp[which(!colnames(gdp) %in% c("Industry", "Edition", "C...
/trajectories/R/code/01readNUM.R
no_license
Wirgis/P4
R
false
false
3,360
r
library(reshape) source("10code.R") #### 1) Original file: NUM.xlsx; #### Categories: Total GDP, GDP measured at PPP, number of HH, population; gdp <- read.csv("../../data/csv_format/NUM.csv") gdp <- gdp[-1, ] ## Unnecessary columns; gdp <- gdp[which(!colnames(gdp) %in% c("Industry", "Edition", "C...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/landmarkTransform.R \name{landmarkTransform} \alias{landmarkTransform} \title{Create an itk transform from landmarks (rigid, similarity and affine)} \usage{ landmarkTransform(lmFix, lmMoving, type = c("rigid", "similarity", "affine"), IJK2R...
/man/landmarkTransform.Rd
no_license
zarquon42b/RANTs
R
false
true
1,058
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/landmarkTransform.R \name{landmarkTransform} \alias{landmarkTransform} \title{Create an itk transform from landmarks (rigid, similarity and affine)} \usage{ landmarkTransform(lmFix, lmMoving, type = c("rigid", "similarity", "affine"), IJK2R...
features <- read.table("./features.txt", na.strings=c("")) testSubject <- read.table("./test/subject_test.txt", na.strings=c("")) testActivity <- read.table("./test/y_test.txt", na.strings=c("")) testX <- read.table("./test/X_test.txt", na.strings=c("")) names(testX) <- features$V2 testData <- data.frame("Subject"=tes...
/run_analysis.R
no_license
smiarnau/CourseProject
R
false
false
1,415
r
features <- read.table("./features.txt", na.strings=c("")) testSubject <- read.table("./test/subject_test.txt", na.strings=c("")) testActivity <- read.table("./test/y_test.txt", na.strings=c("")) testX <- read.table("./test/X_test.txt", na.strings=c("")) names(testX) <- features$V2 testData <- data.frame("Subject"=tes...
plotlyVonMisesDistribution <- function(plotrange, input, distType, probrange, session) { updateSliderInput(session, "plotrange", label = NULL, value = NULL, min = -pi, max = pi, step = NULL, timeFormat = NULL, timezone = NULL) xseq <- seq(min(-pi, as.numeric(plotrange[1])), max(as.numeric(plotra...
/plotlyFunctions/VonMises.R
no_license
SOCR/ProbDistCalc_RShiny
R
false
false
2,264
r
plotlyVonMisesDistribution <- function(plotrange, input, distType, probrange, session) { updateSliderInput(session, "plotrange", label = NULL, value = NULL, min = -pi, max = pi, step = NULL, timeFormat = NULL, timezone = NULL) xseq <- seq(min(-pi, as.numeric(plotrange[1])), max(as.numeric(plotra...
getwd() setwd("C:/Users/graci/OneDrive/Data_Science_Specialisation/Programming_Assignment1") getwd() #Assignment1 Data Science Sepcialisation, R Programming 27-02-18 - Graciela Carrillo #Write a function named 'pollutantmean' that calculates the mean of a pollutant (sulfate or nitrate) #across a specified list ...
/Programming_Assignment1/polluntantmean.R
no_license
gracecarrillo/datasciencecoursera
R
false
false
1,470
r
getwd() setwd("C:/Users/graci/OneDrive/Data_Science_Specialisation/Programming_Assignment1") getwd() #Assignment1 Data Science Sepcialisation, R Programming 27-02-18 - Graciela Carrillo #Write a function named 'pollutantmean' that calculates the mean of a pollutant (sulfate or nitrate) #across a specified list ...
library(TexExamRandomizer) ### Name: WhichAnswerOriginal ### Title: WhichAnswerOriginal ### Aliases: WhichAnswerOriginal ### ** Examples asheet_file <- system.file( "extdata", "ExampleTables", "ExampleAnswerSheet.csv", package = "TexExamRandomizer") responses_file <- system...
/data/genthat_extracted_code/TexExamRandomizer/examples/WhichAnswerOriginal.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,744
r
library(TexExamRandomizer) ### Name: WhichAnswerOriginal ### Title: WhichAnswerOriginal ### Aliases: WhichAnswerOriginal ### ** Examples asheet_file <- system.file( "extdata", "ExampleTables", "ExampleAnswerSheet.csv", package = "TexExamRandomizer") responses_file <- system...
library(readr) library(dplyr) # Read in data # positional data about the RV Kahuna # kahuna <- read_csv('../../../presentations/2018/2018-12-03_DUML-RepResearch/data/2018-11-26_2017-Cape-Hatteras-BRS-kahuna-CEE.csv') kahuna <- read_csv('data/2018-11-26_2017-Cape-Hatteras-BRS-kahuna-CEE.csv') kStart <- kahuna %>% f...
/src/readData.R
no_license
skpoulin12/myrepo
R
false
false
728
r
library(readr) library(dplyr) # Read in data # positional data about the RV Kahuna # kahuna <- read_csv('../../../presentations/2018/2018-12-03_DUML-RepResearch/data/2018-11-26_2017-Cape-Hatteras-BRS-kahuna-CEE.csv') kahuna <- read_csv('data/2018-11-26_2017-Cape-Hatteras-BRS-kahuna-CEE.csv') kStart <- kahuna %>% f...
## Purpose: Purpose of makeCacheMatrix function is to take matrix as an object and cache that matrix ## for future recall. makeCacheMatrix contains four helper functions, desecription is given below. ## set: takes an object and set the value of the passed object to the parent object. ## get: returns the object stored ...
/cachematrix.R
no_license
tchopra/ProgrammingAssignment2
R
false
false
2,945
r
## Purpose: Purpose of makeCacheMatrix function is to take matrix as an object and cache that matrix ## for future recall. makeCacheMatrix contains four helper functions, desecription is given below. ## set: takes an object and set the value of the passed object to the parent object. ## get: returns the object stored ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/m2LL.FPBK.nodet.R \name{m2LL.FPBK.nodet} \alias{m2LL.FPBK.nodet} \title{Covariance Parameter Estimation Function.} \usage{ m2LL.FPBK.nodet(theta, zcol, XDesign, xcoord, ycoord, CorModel, estmethod) } \arguments{ \item{theta}{is the parameter ...
/man/m2LL.FPBK.nodet.Rd
no_license
ADF-G-Wildlife-Conservation-Region-III/sptotal
R
false
true
1,255
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/m2LL.FPBK.nodet.R \name{m2LL.FPBK.nodet} \alias{m2LL.FPBK.nodet} \title{Covariance Parameter Estimation Function.} \usage{ m2LL.FPBK.nodet(theta, zcol, XDesign, xcoord, ycoord, CorModel, estmethod) } \arguments{ \item{theta}{is the parameter ...
#---------------------------------------------------------------------------------- # Classes that control modelling of the multivariate joint probability model P(sA|sW). #---------------------------------------------------------------------------------- #' @importFrom assertthat assert_that NULL ## -----------------...
/R/ModelGeneric.R
permissive
osofr/stremr
R
false
false
12,247
r
#---------------------------------------------------------------------------------- # Classes that control modelling of the multivariate joint probability model P(sA|sW). #---------------------------------------------------------------------------------- #' @importFrom assertthat assert_that NULL ## -----------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/repReturn.R \name{repReturn} \alias{repReturn} \title{Portfolio return decomposition report} \usage{ repReturn(ffmObj, weights = NULL, isPlot = TRUE, isPrint = TRUE, layout = NULL, scaleType = "free", stripLeft = TRUE, stripText.cex = 1, ...
/man/repReturn.Rd
no_license
AvinashAcharya/factorAnalytics
R
false
true
3,931
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/repReturn.R \name{repReturn} \alias{repReturn} \title{Portfolio return decomposition report} \usage{ repReturn(ffmObj, weights = NULL, isPlot = TRUE, isPrint = TRUE, layout = NULL, scaleType = "free", stripLeft = TRUE, stripText.cex = 1, ...
## The functions defined below creates a matrix, cache of the inverse of the matrix in order ## to avoid repeated solving for inverse of a matrix which is a time consuming operation ## function to create a matrix and a list of functions related to this matrix ## 1)set()-sets the matrix in the parent matrix ## 2)get...
/cachematrix.R
no_license
Munnu90/My-first-rep
R
false
false
1,224
r
## The functions defined below creates a matrix, cache of the inverse of the matrix in order ## to avoid repeated solving for inverse of a matrix which is a time consuming operation ## function to create a matrix and a list of functions related to this matrix ## 1)set()-sets the matrix in the parent matrix ## 2)get...
rm(list=ls());gc() # install.packages("dtplyr") # install.packages("Matrix") # install.packages("data.table") # install.packages("caret") # install.packages("glmnet") # install.packages("Metrics") # install.packages("bit64") library(dtplyr); library(Matrix); library(data.table) library(caret); library(glmnet); library...
/matias/cv5_shityGlmnet_1hot_d1-d31.R
no_license
chechir/talking_data
R
false
false
14,549
r
rm(list=ls());gc() # install.packages("dtplyr") # install.packages("Matrix") # install.packages("data.table") # install.packages("caret") # install.packages("glmnet") # install.packages("Metrics") # install.packages("bit64") library(dtplyr); library(Matrix); library(data.table) library(caret); library(glmnet); library...
`plot.dlmap` <- function(x, chr, max.dist, qcol="light blue", mcol="red", pcol="purple", marker.names=FALSE, ...) { require(wgaim) dots <- list(...) if (missing(x)) stop("x is a required argument") if (attr(x$input, "type")=="other") { cat("Cannot plot the detected QTL for an...
/dlmap/R/plot.dlmap.R
no_license
ingted/R-Examples
R
false
false
4,712
r
`plot.dlmap` <- function(x, chr, max.dist, qcol="light blue", mcol="red", pcol="purple", marker.names=FALSE, ...) { require(wgaim) dots <- list(...) if (missing(x)) stop("x is a required argument") if (attr(x$input, "type")=="other") { cat("Cannot plot the detected QTL for an...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean_anzsco.R \name{clean_anzsco} \alias{clean_anzsco} \title{Convert ANZSCO names and abbreviations into the consistent format used by the Australian Bureau of Statistics.} \usage{ clean_anzsco( x, fuzzy_match = FALSE, max_dist = 0.4,...
/man/clean_anzsco.Rd
no_license
Onyinye91-ctrl/strayr
R
false
true
1,799
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean_anzsco.R \name{clean_anzsco} \alias{clean_anzsco} \title{Convert ANZSCO names and abbreviations into the consistent format used by the Australian Bureau of Statistics.} \usage{ clean_anzsco( x, fuzzy_match = FALSE, max_dist = 0.4,...
## Programming Assignment 2 ## Plot 6 # How have emissions from motor vehicle sources changed from 1999–2008 in # Baltimore City? library(data.table) library(ggplot2) setwd('./data') if (!file.exists('emissions.RData')) { # Unzip and load data from zip file if (!file.exists('summarySCC_PM25.rds')) unzip(zipf...
/plot6.R
no_license
pyropenguin/ExData_Assignment2
R
false
false
2,924
r
## Programming Assignment 2 ## Plot 6 # How have emissions from motor vehicle sources changed from 1999–2008 in # Baltimore City? library(data.table) library(ggplot2) setwd('./data') if (!file.exists('emissions.RData')) { # Unzip and load data from zip file if (!file.exists('summarySCC_PM25.rds')) unzip(zipf...
complete <- function(directory, id) { nobs <- numeric() for (key in id) { id_new <- sprintf("%03d", key) a <- read.csv(paste(directory, '/' , id_new, '.csv', sep='')) b <- sum((!is.na(a$sulfate)) & (!is.na(a$nitrate))) ...
/complete.R
no_license
wanglinank/Particulate-matter-analysis
R
false
false
447
r
complete <- function(directory, id) { nobs <- numeric() for (key in id) { id_new <- sprintf("%03d", key) a <- read.csv(paste(directory, '/' , id_new, '.csv', sep='')) b <- sum((!is.na(a$sulfate)) & (!is.na(a$nitrate))) ...
context("Param") roc <- rd_roclet() test_that("@param documents arguments", { out <- roc_proc_text(roc, " #' @param a an incipit letter #' @param z a terminal letter a <- function(a=1, z=2) {}")[[1]] args <- get_tag(out, "arguments")$values expect_equivalent(args["a"], "an incipit letter") expec...
/inst/tests/test-param.R
no_license
rbarraud/roxygen
R
false
false
2,129
r
context("Param") roc <- rd_roclet() test_that("@param documents arguments", { out <- roc_proc_text(roc, " #' @param a an incipit letter #' @param z a terminal letter a <- function(a=1, z=2) {}")[[1]] args <- get_tag(out, "arguments")$values expect_equivalent(args["a"], "an incipit letter") expec...
# ***** LIBRERIAS ***** # Instalamos las librerias que no tenemos y necesitamos if(!require("ape")) install.packages("ape") if(!require("BBmisc")) install.packages("BBmisc") if(!require("cluster")) install.packages("cluster") if(!require("corrplot")) install.packages("corrplot") if(!require("factoextra")) insta...
/TFM 1. librerias.R
no_license
JuanferMG/TFM
R
false
false
2,239
r
# ***** LIBRERIAS ***** # Instalamos las librerias que no tenemos y necesitamos if(!require("ape")) install.packages("ape") if(!require("BBmisc")) install.packages("BBmisc") if(!require("cluster")) install.packages("cluster") if(!require("corrplot")) install.packages("corrplot") if(!require("factoextra")) insta...
#' Rmarkdown Format #' #' @description If the export format of the Rmarkdown document exist, #' #' @importFrom rmarkdown metadata #' #' @export rmd_format <- function(){ rmd_output_metadata <- metadata$output return(names(rmd_output_metadata)) } #' Load a LaTeX package #' #' @description Load a LaTeX package usin...
/R/util.R
no_license
Inferrator/kableExtra
R
false
false
4,517
r
#' Rmarkdown Format #' #' @description If the export format of the Rmarkdown document exist, #' #' @importFrom rmarkdown metadata #' #' @export rmd_format <- function(){ rmd_output_metadata <- metadata$output return(names(rmd_output_metadata)) } #' Load a LaTeX package #' #' @description Load a LaTeX package usin...
#' helpers.R #' #' Various helper functions for things like testing the package. #' Create a test metadata object. #' #' @param mn (MNode) The Member Node. #' @param data_pids (character) Optional. PIDs for data objects the metadata documents. #' @return pid (character) PID of published metadata document. #' @export ...
/R/helpers.R
permissive
areevesman/arcticdatautils
R
false
false
9,151
r
#' helpers.R #' #' Various helper functions for things like testing the package. #' Create a test metadata object. #' #' @param mn (MNode) The Member Node. #' @param data_pids (character) Optional. PIDs for data objects the metadata documents. #' @return pid (character) PID of published metadata document. #' @export ...
## File Name: cdm_pem_inits.R ## File Version: 0.05 cdm_pem_inits <- function( parmlist ) { pem_parameter_index <- cdm_pem_create_parameter_index( parmlist=parmlist ) pem_parameter_sequence <- list() #--- output res <- list(pem_parameter_index=pem_parameter_index, pem_parameter...
/CDM/R/cdm_pem_inits.R
no_license
akhikolla/InformationHouse
R
false
false
376
r
## File Name: cdm_pem_inits.R ## File Version: 0.05 cdm_pem_inits <- function( parmlist ) { pem_parameter_index <- cdm_pem_create_parameter_index( parmlist=parmlist ) pem_parameter_sequence <- list() #--- output res <- list(pem_parameter_index=pem_parameter_index, pem_parameter...
## R-Script - merging biomass maps using the land cover data ## author: Fabian Fassnacht ## mail: fabianewaldfassnacht@gmail.com ## Manuscript: Using Multi-Sensor Data to Derive a Landscape-Level Biomass Map Covering Multiple Vegetation Types ## last changes: 05.04.2020 ## # load package require(raster) # jump to f...
/6_merge_biomass_land_use.R
no_license
fabianfassnacht/cauquenes
R
false
false
2,806
r
## R-Script - merging biomass maps using the land cover data ## author: Fabian Fassnacht ## mail: fabianewaldfassnacht@gmail.com ## Manuscript: Using Multi-Sensor Data to Derive a Landscape-Level Biomass Map Covering Multiple Vegetation Types ## last changes: 05.04.2020 ## # load package require(raster) # jump to f...
[ { "title": "‘Tis the Season for September Bearishness?", "href": "https://www.klittlepage.com/2013/08/22/tis-the-season-for-september-bearishness/" }, { "title": "Lyric Analytics", "href": "http://www.moreorlessnumbers.com/2013/12/music-analytics.html" }, { "title": "R tops 2015 KDnugget...
/json/318.r
no_license
rweekly/rweekly.org
R
false
false
7,987
r
[ { "title": "‘Tis the Season for September Bearishness?", "href": "https://www.klittlepage.com/2013/08/22/tis-the-season-for-september-bearishness/" }, { "title": "Lyric Analytics", "href": "http://www.moreorlessnumbers.com/2013/12/music-analytics.html" }, { "title": "R tops 2015 KDnugget...
library(spatstat) rThinning <- 0.5 intensity <- function(x, y, m) { return(40 * y) } unitSquare <- owin(xrange = c(0, 10), yrange = c(0, 10)) points <- rMaternII(kappa = intensity, r = rThinning, win = unitSquare, stationary=TRUE, nsim=1, drop=TRUE) sprintf("> 5: %d", subset(points, y > 5)$n...
/pp/testMatern2.R
no_license
rbehravesh/mec-generator
R
false
false
399
r
library(spatstat) rThinning <- 0.5 intensity <- function(x, y, m) { return(40 * y) } unitSquare <- owin(xrange = c(0, 10), yrange = c(0, 10)) points <- rMaternII(kappa = intensity, r = rThinning, win = unitSquare, stationary=TRUE, nsim=1, drop=TRUE) sprintf("> 5: %d", subset(points, y > 5)$n...
library(bbw) ### Name: recode ### Title: Recode ### Aliases: recode ### ** Examples # Recode values from 1 to 9 to varios specifications var <- sample(x = 1:9, size = 100, replace = TRUE) # Recode single values recode(var = var, recodes = "9=NA") # Recode set of values recode(var = var, recodes = "c(1,2,5)=1") #...
/data/genthat_extracted_code/bbw/examples/recode.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
470
r
library(bbw) ### Name: recode ### Title: Recode ### Aliases: recode ### ** Examples # Recode values from 1 to 9 to varios specifications var <- sample(x = 1:9, size = 100, replace = TRUE) # Recode single values recode(var = var, recodes = "9=NA") # Recode set of values recode(var = var, recodes = "c(1,2,5)=1") #...
library(glmnet) mydata = read.table("./TrainingSet/RF/lymphoid.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="mae",alpha=0.8,family="gaussian",standardize=FALSE) sink('./Model/EN/Classifier/lymphoid/lymphoid_084.txt',append...
/Model/EN/Classifier/lymphoid/lymphoid_084.R
no_license
leon1003/QSMART
R
false
false
356
r
library(glmnet) mydata = read.table("./TrainingSet/RF/lymphoid.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="mae",alpha=0.8,family="gaussian",standardize=FALSE) sink('./Model/EN/Classifier/lymphoid/lymphoid_084.txt',append...
# (c) 2019 Brian Romanchuk source('startup.R') u3 <- pfetch('F@UNRATE') u6 <- pfetch('F@U6RATE') ser <- u3 ser2 <- u6 recession <- pfetch('F@USREC') pp <- ShadeBars2(ser, ser2, recession, c('Headline (U-3)', 'U-6'), '%', main='U.S.: Unemployment And Underemployment Rates', startdate = '1980...
/legacy/R/c20200621_us_u3_u6.R
permissive
brianr747/platform
R
false
false
538
r
# (c) 2019 Brian Romanchuk source('startup.R') u3 <- pfetch('F@UNRATE') u6 <- pfetch('F@U6RATE') ser <- u3 ser2 <- u6 recession <- pfetch('F@USREC') pp <- ShadeBars2(ser, ser2, recession, c('Headline (U-3)', 'U-6'), '%', main='U.S.: Unemployment And Underemployment Rates', startdate = '1980...
plot2 <- function() { # Read full data fulldat <- read.table( "./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?" ) # Subset to relevant days dat <- subset(fulldat...
/plot2.R
no_license
jsnmssck/ExData_Plotting1
R
false
false
1,314
r
plot2 <- function() { # Read full data fulldat <- read.table( "./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?" ) # Subset to relevant days dat <- subset(fulldat...
fitTRN <- function( expr , physnet , lambda = 0.1 , cores = NULL , alpha = 1 ) { require(glmnet) require(foreach) require(doParallel) registerDoParallel( cores = cores ); cat("doParallel initialized with ", getDoParWorkers(), " cores ", date(), "\n") #remove columns of the TFBS (TFs) for which we do not have express...
/R/fitTRN.R
no_license
PriceLab/TReNA-original
R
false
false
6,462
r
fitTRN <- function( expr , physnet , lambda = 0.1 , cores = NULL , alpha = 1 ) { require(glmnet) require(foreach) require(doParallel) registerDoParallel( cores = cores ); cat("doParallel initialized with ", getDoParWorkers(), " cores ", date(), "\n") #remove columns of the TFBS (TFs) for which we do not have express...
suppressMessages({ library(readxl) library(data.table) library(DT) library(faosws) library(faoswsFlag) library(faoswsProcessing) library(faoswsUtil) library(faoswsImputation) library(ggplot2) library(rhandsontable) library(shiny) library(shinyWidgets) library(openxlsx) }) #-- Token QA ---- ...
/Side_Codes-Output/convertquestionnaires.R
no_license
SWS-Methodology/faoswsProducerPrices
R
false
false
1,493
r
suppressMessages({ library(readxl) library(data.table) library(DT) library(faosws) library(faoswsFlag) library(faoswsProcessing) library(faoswsUtil) library(faoswsImputation) library(ggplot2) library(rhandsontable) library(shiny) library(shinyWidgets) library(openxlsx) }) #-- Token QA ---- ...
d <- readLines("data/aoc_06") |> paste(collapse = "\n") |> strsplit("\n\n") |> unlist() |> # vector of groups strsplit("\n") |> lapply(strsplit, "") # list of character vectors per group yes <- function(x, fun) sum(lengths(lapply(x, fun))) c(part1 = yes(d, \(x) unique(unlist(x))), part2 = yes(d, \(x) Redu...
/aoc_06.R
no_license
alex-raw/adventofcode_2020
R
false
false
339
r
d <- readLines("data/aoc_06") |> paste(collapse = "\n") |> strsplit("\n\n") |> unlist() |> # vector of groups strsplit("\n") |> lapply(strsplit, "") # list of character vectors per group yes <- function(x, fun) sum(lengths(lapply(x, fun))) c(part1 = yes(d, \(x) unique(unlist(x))), part2 = yes(d, \(x) Redu...
# Each line of code has an associated description # Stat / Large # Create a stat card displaying a primary value, an auxiliary value, and a caption. # ui_large_stat_card library(h2owave) # Combining 5 different crypto currency symbols into a vector. crypto_name <- c("ETH","BTC","ZCH","LTC") # Sample a single crypto c...
/r/R/examples/stat_large.R
permissive
ShehanIshanka/wave
R
false
false
4,059
r
# Each line of code has an associated description # Stat / Large # Create a stat card displaying a primary value, an auxiliary value, and a caption. # ui_large_stat_card library(h2owave) # Combining 5 different crypto currency symbols into a vector. crypto_name <- c("ETH","BTC","ZCH","LTC") # Sample a single crypto c...
test_that("lr_lambda", { m <- nn_linear(10, 10) o <- optim_sgd(params = m$parameters, lr = 1) scheduler <- lr_lambda(optimizer = o, lr_lambda = function(x) x) expect_equal(o$param_groups[[1]]$lr, 0) scheduler$step() expect_equal(o$param_groups[[1]]$lr, 1) scheduler$step() expect_equal(o$param_groups[[1...
/tests/testthat/test-optim-lr_scheduler.R
permissive
mlverse/torch
R
false
false
3,589
r
test_that("lr_lambda", { m <- nn_linear(10, 10) o <- optim_sgd(params = m$parameters, lr = 1) scheduler <- lr_lambda(optimizer = o, lr_lambda = function(x) x) expect_equal(o$param_groups[[1]]$lr, 0) scheduler$step() expect_equal(o$param_groups[[1]]$lr, 1) scheduler$step() expect_equal(o$param_groups[[1...
## Put comments here that give an overall description of what your #Assignment: Caching the Inverse of a Matrix #Matrix inversion is usually a costly computation and there may be some benefit #to caching the inverse of a matrix rather than computing it repeatedly #This assignment is to write a pair of functions that c...
/cachematrix.R
no_license
yogesh-dhar/ProgrammingAssignment2
R
false
false
1,508
r
## Put comments here that give an overall description of what your #Assignment: Caching the Inverse of a Matrix #Matrix inversion is usually a costly computation and there may be some benefit #to caching the inverse of a matrix rather than computing it repeatedly #This assignment is to write a pair of functions that c...