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
# consultation_analyses.R # Analysis of the combined formal, informal consultation fulla. # Copyright (C) 2014 Jacob Malcom, jacob.w.malcom@gmail.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founfu...
/data_prep/R/sec7_prep_v1/consultation_analyses.R
no_license
jacob-ogre/section7_database
R
false
false
7,445
r
# consultation_analyses.R # Analysis of the combined formal, informal consultation fulla. # Copyright (C) 2014 Jacob Malcom, jacob.w.malcom@gmail.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founfu...
\donttest{ # Load data r.max<-seq(20,1000,20) r.min<-seq(0,980,20) r.mid<-(r.max+r.min)/2 sero.type.func<-function(a,b,tlimit=20){ if(a[5]==b[5]&(abs(a[3]-b[3])<=tlimit)){rc=1} else{rc=2} return(rc) } data(DengueSimRepresentative) sero.type.rep.func<-function(a,b,tlimit=20){ if(a[5]==1&b[5...
/R/examples/get_tau_GET.R
permissive
t-pollington/IDSpatialStats
R
false
false
943
r
\donttest{ # Load data r.max<-seq(20,1000,20) r.min<-seq(0,980,20) r.mid<-(r.max+r.min)/2 sero.type.func<-function(a,b,tlimit=20){ if(a[5]==b[5]&(abs(a[3]-b[3])<=tlimit)){rc=1} else{rc=2} return(rc) } data(DengueSimRepresentative) sero.type.rep.func<-function(a,b,tlimit=20){ if(a[5]==1&b[5...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/build_mmm.R \name{build_mmm} \alias{build_mmm} \title{Build a Mixture Markov Model} \usage{ build_mmm(observations, n_clusters, transition_probs, initial_probs, formula, data, coefficients, cluster_names = NULL, ...) } \arguments{ \item{obs...
/man/build_mmm.Rd
no_license
zhouyonglong/seqHMM
R
false
true
4,352
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/build_mmm.R \name{build_mmm} \alias{build_mmm} \title{Build a Mixture Markov Model} \usage{ build_mmm(observations, n_clusters, transition_probs, initial_probs, formula, data, coefficients, cluster_names = NULL, ...) } \arguments{ \item{obs...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/node_methods.R \name{AreNamesUnique} \alias{AreNamesUnique} \title{Test whether all node names are unique.} \usage{ AreNamesUnique(node) } \arguments{ \item{node}{The root \code{Node} of the \code{data.tree} structure to test} } \value{ \code...
/man/AreNamesUnique.Rd
no_license
brownag/data.tree
R
false
true
556
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/node_methods.R \name{AreNamesUnique} \alias{AreNamesUnique} \title{Test whether all node names are unique.} \usage{ AreNamesUnique(node) } \arguments{ \item{node}{The root \code{Node} of the \code{data.tree} structure to test} } \value{ \code...
library(tidyverse) library(ggsignif) library(RColorBrewer) library(car) library(agricolae) library(PMCMRplus) library(grid) norm_df <- read_csv("final_data.csv") norm_df$stage <- factor(norm_df$stage, levels = c("stage1-8_oocyte", "stage9-13_oocyte", "stage14_oocyte", "in_vivo_egg", "in_vitro_egg")) # Zn_conc unit: fm...
/XFM analysis.R
no_license
WolfnerLab/zinc_reproduction
R
false
false
25,255
r
library(tidyverse) library(ggsignif) library(RColorBrewer) library(car) library(agricolae) library(PMCMRplus) library(grid) norm_df <- read_csv("final_data.csv") norm_df$stage <- factor(norm_df$stage, levels = c("stage1-8_oocyte", "stage9-13_oocyte", "stage14_oocyte", "in_vivo_egg", "in_vitro_egg")) # Zn_conc unit: fm...
#' Extract parameters from a LDA_Gibbs topic model #' #' @param x a \code{LDA_Gibbs} topic model #' #' @description #' The functions extracts the \code{phi} and \code{theta} parameters from #' a \code{LDA_Gibbs} topic model. #' #' In addition, the functions can also be used to extract the log likelihood values #' per k...
/rpackage/R/extract_lda_gibbs.R
permissive
anhnguyendepocen/IntroML
R
false
false
768
r
#' Extract parameters from a LDA_Gibbs topic model #' #' @param x a \code{LDA_Gibbs} topic model #' #' @description #' The functions extracts the \code{phi} and \code{theta} parameters from #' a \code{LDA_Gibbs} topic model. #' #' In addition, the functions can also be used to extract the log likelihood values #' per k...
c317a7ad24b5681e18de870fe70fc951 aim-100-3_4-yes1-4-00.qdimacs 738 1657
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Letombe/Abduction/aim-100-3_4-yes1-4-00/aim-100-3_4-yes1-4-00.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
71
r
c317a7ad24b5681e18de870fe70fc951 aim-100-3_4-yes1-4-00.qdimacs 738 1657
## Updated in August 2020 to get data up through 2019 ## Script to make data used in our analysis, specifically ## ## 1. gs.rda ## 2. gs_players.rda ## 3. gs_pbp.rda ## 4. gs_partial.rda devtools::load_all("../") ## Load court sports functions library(deuce) library(dplyr) ## Load WTA and ATP matches from deuce pack...
/data-raw/make-gs-data_updated.R
no_license
pablo-vivas/courtsports
R
false
false
1,895
r
## Updated in August 2020 to get data up through 2019 ## Script to make data used in our analysis, specifically ## ## 1. gs.rda ## 2. gs_players.rda ## 3. gs_pbp.rda ## 4. gs_partial.rda devtools::load_all("../") ## Load court sports functions library(deuce) library(dplyr) ## Load WTA and ATP matches from deuce pack...
###################################### # # # Generating the Kinobead Call Set # # # ###################################### # pKD input matrix/ data frame require(tidyverse) require(readxl) paper_path = "Z:/users_files/Verena Burger/4_da...
/script_prepare_Kinobead_call_set.R
no_license
veren4/Kinase_residue_classification
R
false
false
993
r
###################################### # # # Generating the Kinobead Call Set # # # ###################################### # pKD input matrix/ data frame require(tidyverse) require(readxl) paper_path = "Z:/users_files/Verena Burger/4_da...
require(robCompositions) require(MASS) require(robustbase) crnorm <- function(n, mu, Sigma){ constSum(data.frame(exp(mvrnorm(n, mu, Sigma)))) } sigGen <- function(p, d){ x <- diag(p) x[upper.tri(x)] <- x[lower.tri(x)] <- d x } set.seed(1234) x <- crnorm(50, rep(10,10), Sigma=sigGen(10,0.9)) x <- x+rnorm(ncol(x...
/robCompositions/tests/rz.R
no_license
ingted/R-Examples
R
false
false
2,249
r
require(robCompositions) require(MASS) require(robustbase) crnorm <- function(n, mu, Sigma){ constSum(data.frame(exp(mvrnorm(n, mu, Sigma)))) } sigGen <- function(p, d){ x <- diag(p) x[upper.tri(x)] <- x[lower.tri(x)] <- d x } set.seed(1234) x <- crnorm(50, rep(10,10), Sigma=sigGen(10,0.9)) x <- x+rnorm(ncol(x...
# NHANESApp notes and utility code # Don't run this, just cut and paste # Seems important to test with local environment cleared. # App is at https://rseiter.shinyapps.io/NHANESApp/ # make sure install the shiny apps # Helpful library(shinyapps) accountInfo(accounts()) deployApp(appDir = "C:/Users/rseiter/Documents/Ed...
/NHANESApp_notes.R
no_license
norazizah/ReproducibleDataProject
R
false
false
5,126
r
# NHANESApp notes and utility code # Don't run this, just cut and paste # Seems important to test with local environment cleared. # App is at https://rseiter.shinyapps.io/NHANESApp/ # make sure install the shiny apps # Helpful library(shinyapps) accountInfo(accounts()) deployApp(appDir = "C:/Users/rseiter/Documents/Ed...
library(tidyverse) library(tictoc) publication_ids <- read_csv("./results/Charite_publication_ids.csv") email <- "nico.riedel@bihealth.de" OA_save_file <- "./results/Open_Access.csv" years <- publication_ids$e_pub_year %>% unique() %>% sort() write_lines("doi,color,year", OA_save_file) for(current_year...
/metrics/Open_Access/Open_Access.R
no_license
abannachbrown/dashboard
R
false
false
751
r
library(tidyverse) library(tictoc) publication_ids <- read_csv("./results/Charite_publication_ids.csv") email <- "nico.riedel@bihealth.de" OA_save_file <- "./results/Open_Access.csv" years <- publication_ids$e_pub_year %>% unique() %>% sort() write_lines("doi,color,year", OA_save_file) for(current_year...
data<- read.table("/users/nicolemurphy012/desktop/coursera/exploratory/household_power_consumption.txt",header=TRUE,sep=";",na.strings="?") datasubset<- rbind(data[data$Date=="1/2/2007",],data[data$Date=="2/2/2007",]) datasubset$Date <- as.Date(datasubset$Date,"%d/%m/%Y") datasubset<- cbind(datasubset,"DateTime"=as....
/plot1.R
no_license
nicolethorson/ExData_Plotting1
R
false
false
562
r
data<- read.table("/users/nicolemurphy012/desktop/coursera/exploratory/household_power_consumption.txt",header=TRUE,sep=";",na.strings="?") datasubset<- rbind(data[data$Date=="1/2/2007",],data[data$Date=="2/2/2007",]) datasubset$Date <- as.Date(datasubset$Date,"%d/%m/%Y") datasubset<- cbind(datasubset,"DateTime"=as....
################## 1b Analytical and numerical MLE ############### 1b #Analytical MLE data <- c(1.636, 0.374, 0.534, 3.015, 0.932, 0.179) mean(data) 1/mean(data) #Numerical MLE numMLE<-function(x) -sum(log(dexp(c(1.636, 0.374, 0.534, 3.015, 0.932, 0.179),x))) optim(1, numMLE) ######## 2b One-sided 90% lower confiden...
/5 R.R
no_license
choipat/BioStats
R
false
false
7,606
r
################## 1b Analytical and numerical MLE ############### 1b #Analytical MLE data <- c(1.636, 0.374, 0.534, 3.015, 0.932, 0.179) mean(data) 1/mean(data) #Numerical MLE numMLE<-function(x) -sum(log(dexp(c(1.636, 0.374, 0.534, 3.015, 0.932, 0.179),x))) optim(1, numMLE) ######## 2b One-sided 90% lower confiden...
#' My IP #' #' Obtain IP address according to ipconfig #' #' @return Character vector with IP address #' @export #' @examples #'#' my_ip() my_ip <- function(){ ip <- system(command = "ipconfig", intern = T) ip <- ip[grep("IPv4", ip)] first <- regexpr("IPv4", ip) ip <- substr(ip, first+4, nchar(ip) ) second <...
/R/functions.R
no_license
jean9208/Personal_Package
R
false
false
396
r
#' My IP #' #' Obtain IP address according to ipconfig #' #' @return Character vector with IP address #' @export #' @examples #'#' my_ip() my_ip <- function(){ ip <- system(command = "ipconfig", intern = T) ip <- ip[grep("IPv4", ip)] first <- regexpr("IPv4", ip) ip <- substr(ip, first+4, nchar(ip) ) second <...
#Specify the directory that holds the files that need to be reformatted FromDirectory <- "C:\\Users\\j.dixon\\Desktop\\9am wind\\raw" #specify the directory to write the formatted files to ToDirectory <- "C:\\Users\\j.dixon\\Desktop\\9am wind\\converted" #directory if non-existent data Fa...
/Scripts/R/ReformatterWind9am.R
no_license
Aqualinc/CTSE
R
false
false
1,452
r
#Specify the directory that holds the files that need to be reformatted FromDirectory <- "C:\\Users\\j.dixon\\Desktop\\9am wind\\raw" #specify the directory to write the formatted files to ToDirectory <- "C:\\Users\\j.dixon\\Desktop\\9am wind\\converted" #directory if non-existent data Fa...
# Description #### # Carlos Rodriguez, Ph.D., Mind Research Network # This script will load .csv files that contain the graph theory metrics # computed at various threshold levels # load measures of intelligence # Calculate the correlation between graph theory metrics and bx and # generate plots with asterisks d...
/psych_corrs_script.R
no_license
carlosivanr/graph_theory_metrics
R
false
false
9,297
r
# Description #### # Carlos Rodriguez, Ph.D., Mind Research Network # This script will load .csv files that contain the graph theory metrics # computed at various threshold levels # load measures of intelligence # Calculate the correlation between graph theory metrics and bx and # generate plots with asterisks d...
\name{heaviness_report} \alias{heaviness_report} \title{ HTML report for package dependency heaviness analysis } \description{ HTML report for package dependency heaviness analysis } \usage{ heaviness_report(pkg, file = NULL) } \arguments{ \item{pkg}{An object from \code{\link{pkgndep}}.} \item{file}{The path of t...
/man/heaviness_report.Rd
permissive
jokergoo/pkgndep
R
false
false
619
rd
\name{heaviness_report} \alias{heaviness_report} \title{ HTML report for package dependency heaviness analysis } \description{ HTML report for package dependency heaviness analysis } \usage{ heaviness_report(pkg, file = NULL) } \arguments{ \item{pkg}{An object from \code{\link{pkgndep}}.} \item{file}{The path of t...
## Functions to handle inverse matrix computation ## that uses a cached variable to avoid ## repeating costly computations ## Creates a special matrix object as ## a list of setter/getter functions makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL ...
/cachematrix.R
no_license
thomasthomasthomas/ProgrammingAssignment2
R
false
false
1,006
r
## Functions to handle inverse matrix computation ## that uses a cached variable to avoid ## repeating costly computations ## Creates a special matrix object as ## a list of setter/getter functions makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL ...
tag_history <- data.table(dbGetQuery(con, statement = "SELECT * FROM data_tagged_captures;")) setkey(tag_history,tag,fish_number,sample_name,section) dropThese <- vector(mode='numeric', length=0) couldNotFind <- list() fixErrors<-function(e,data){ fixThis<-e$fixThis e<-e[names(e)!="fixThis"] if(suppressWarning...
/makeDatabase/data_table_stage/fix_data_errors.R
no_license
Conte-Ecology/westBrookData
R
false
false
2,378
r
tag_history <- data.table(dbGetQuery(con, statement = "SELECT * FROM data_tagged_captures;")) setkey(tag_history,tag,fish_number,sample_name,section) dropThese <- vector(mode='numeric', length=0) couldNotFind <- list() fixErrors<-function(e,data){ fixThis<-e$fixThis e<-e[names(e)!="fixThis"] if(suppressWarning...
#This. This watches the watchmen. custodiet <- function(x, start, end, regex, name, ...){ #Construct initial data frame output.df <- as.data.frame(substring(x,start,end)) #Run the regex over the object to_return <- grepl(x = x, pattern = regex, ...) output.df$reg_results <- to_return #Randomly samp...
/Functions/custodiet.R
permissive
wikimedia-research/MobileMetrics
R
false
false
683
r
#This. This watches the watchmen. custodiet <- function(x, start, end, regex, name, ...){ #Construct initial data frame output.df <- as.data.frame(substring(x,start,end)) #Run the regex over the object to_return <- grepl(x = x, pattern = regex, ...) output.df$reg_results <- to_return #Randomly samp...
# set library paths: libpathKiri = "/net/pc132059/nobackup_1/users/whan/R/x86_64-redhat-linux-gnu-library/3.3" libpath = "/usr/people/bakker/R/x86_64-redhat-linux-gnu-library/3.4" #libpath = "/tmp/RtmpSDMBdh/downloaded_packages" .libPaths(c(.libPaths()))#, libpathKiri)) library(tidyverse) library(rasterVis) library(ggp...
/testing_script.R
no_license
kilianbakker/KNMI-internship
R
false
false
38,266
r
# set library paths: libpathKiri = "/net/pc132059/nobackup_1/users/whan/R/x86_64-redhat-linux-gnu-library/3.3" libpath = "/usr/people/bakker/R/x86_64-redhat-linux-gnu-library/3.4" #libpath = "/tmp/RtmpSDMBdh/downloaded_packages" .libPaths(c(.libPaths()))#, libpathKiri)) library(tidyverse) library(rasterVis) library(ggp...
## Load your packages, e.g. library(drake). source("./packages.R") ## Load your R files and subplans invisible(lapply(list.files("./R", full.names = TRUE, recursive = TRUE), source)) source('R/plan.R') make(the_plan, lock_envir = FALSE) # build graph components graph = vis_drake_graph(the_plan, targets_only = TRUE)...
/drake_graph.R
no_license
KCBierlich/Body_Condition_Analysis
R
false
false
464
r
## Load your packages, e.g. library(drake). source("./packages.R") ## Load your R files and subplans invisible(lapply(list.files("./R", full.names = TRUE, recursive = TRUE), source)) source('R/plan.R') make(the_plan, lock_envir = FALSE) # build graph components graph = vis_drake_graph(the_plan, targets_only = TRUE)...
library(tidyverse) AEGN_evaluation <- function (filelist) { questvec <- NULL #unlist(str_split(rawquest, ", ")) ratingvec <- c('', 'No', 'A little', 'Moderately', 'Significantly', 'Very significantly', 'Unsure') filelist <- list.files('./Inputs', pattern = "*.csv") filesnum <- length(filelist) #questvec <- ...
/main2.0.R
no_license
pbrehill/AEGNratings
R
false
false
1,713
r
library(tidyverse) AEGN_evaluation <- function (filelist) { questvec <- NULL #unlist(str_split(rawquest, ", ")) ratingvec <- c('', 'No', 'A little', 'Moderately', 'Significantly', 'Very significantly', 'Unsure') filelist <- list.files('./Inputs', pattern = "*.csv") filesnum <- length(filelist) #questvec <- ...
########################################## #### GAM MODELS FOR T1 Bifactor STUDY #### ########################################## #Load data data.NMF <- readRDS("/data/jux/BBL/projects/pncT1AcrossDisorder/subjectData/n1239_T1_subjData_NoPsychMeds.rds") #Load library library(mgcv) #Get NMF variable names nmfComponents...
/ravensNMF/noPsychMed/GamAnalyses_T1Bifactors_ravensNMF_withTBV_noPsychMed.R
no_license
PennBBL/pncT1Bifactors
R
false
false
6,523
r
########################################## #### GAM MODELS FOR T1 Bifactor STUDY #### ########################################## #Load data data.NMF <- readRDS("/data/jux/BBL/projects/pncT1AcrossDisorder/subjectData/n1239_T1_subjData_NoPsychMeds.rds") #Load library library(mgcv) #Get NMF variable names nmfComponents...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helpers.R \name{language} \alias{language} \alias{select_helpers} \title{Selection language} \description{ \subsection{Overview of selection features:}{ tidyselect implements a DSL for selecting variables. It provides helpers for selecting v...
/man/language.Rd
no_license
cran/tidyselect
R
false
true
7,695
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helpers.R \name{language} \alias{language} \alias{select_helpers} \title{Selection language} \description{ \subsection{Overview of selection features:}{ tidyselect implements a DSL for selecting variables. It provides helpers for selecting v...
/lab7_MFP.R
no_license
fareespatel/Applied-Data-Science-Labs
R
false
false
1,350
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 9453 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 9453 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/query06_reachqu_1344/query06_reachqu_1344.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
711
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 9453 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 9453 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/butterworth-filter.R \name{update_filter_params_from_vectorized_butterworth_filter} \alias{update_filter_params_from_vectorized_butterworth_filter} \title{Update the parameter list phi from a vector of parameters on estimation scale} \usage{ ...
/man/update_filter_params_from_vectorized_butterworth_filter.Rd
no_license
reichlab/kcde
R
false
true
640
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/butterworth-filter.R \name{update_filter_params_from_vectorized_butterworth_filter} \alias{update_filter_params_from_vectorized_butterworth_filter} \title{Update the parameter list phi from a vector of parameters on estimation scale} \usage{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/corPlot.R \name{corPlot} \alias{corPlot} \title{corrgram plot with conditioning} \usage{ corPlot( mydata, pollutants = NULL, type = "default", cluster = TRUE, dendrogram = FALSE, lower = FALSE, cols = "default", r.thresh = 0.8...
/man/corPlot.Rd
no_license
keyonghu/openair
R
false
true
6,244
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/corPlot.R \name{corPlot} \alias{corPlot} \title{corrgram plot with conditioning} \usage{ corPlot( mydata, pollutants = NULL, type = "default", cluster = TRUE, dendrogram = FALSE, lower = FALSE, cols = "default", r.thresh = 0.8...
#downloading sets (if not already downloaded) DATA_FILE <- "sets.zip" if (!file.exists(DATA_FILE)){ download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", DATA_FILE, method="curl") } #unpacking sets (if not already unpacked) DATA_FOLDER <- "UCI HAR Dataset" if (!dir...
/run_analysis.R
no_license
menny/data_cleaning_project
R
false
false
3,416
r
#downloading sets (if not already downloaded) DATA_FILE <- "sets.zip" if (!file.exists(DATA_FILE)){ download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", DATA_FILE, method="curl") } #unpacking sets (if not already unpacked) DATA_FOLDER <- "UCI HAR Dataset" if (!dir...
library(data.table) library(EnsDb.Hsapiens.v75) library(httr) library(jsonlite) library(foreach) library(doParallel) registerDoParallel(parallel::detectCores() - 1) # options # permissive max.gene.rank.min <- Inf min.gene.score <- -Inf sources.to.exclude <- c("OMIM", "Orphanet") ## strict #max.gene.rank.min <- 3 #min....
/01processSTOPGAP.R
no_license
enricoferrero/GCMap
R
false
false
1,990
r
library(data.table) library(EnsDb.Hsapiens.v75) library(httr) library(jsonlite) library(foreach) library(doParallel) registerDoParallel(parallel::detectCores() - 1) # options # permissive max.gene.rank.min <- Inf min.gene.score <- -Inf sources.to.exclude <- c("OMIM", "Orphanet") ## strict #max.gene.rank.min <- 3 #min....
library(cgAUC) ### Name: cgAUC-package ### Title: Calculate AUC when gold standard is continuous with large ### variables. ### Aliases: cgAUC-package ### Keywords: cgAUC ### ** Examples # n = 100; p = 5; # r.x = matrix(rnorm(n * p), , p) # raw data # r.z = r.x[ ,1] + rnorm(n) # gold standard # x = scale(r.x) # st...
/data/genthat_extracted_code/cgAUC/examples/cgAUC-package.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
611
r
library(cgAUC) ### Name: cgAUC-package ### Title: Calculate AUC when gold standard is continuous with large ### variables. ### Aliases: cgAUC-package ### Keywords: cgAUC ### ** Examples # n = 100; p = 5; # r.x = matrix(rnorm(n * p), , p) # raw data # r.z = r.x[ ,1] + rnorm(n) # gold standard # x = scale(r.x) # st...
# Script # ------------------------------------------------------------------------------------ # Task #1: Merges the training and the test sets to create one data set. # the data from test set. dataTest<-read.table("./UCI HAR Dataset/test/X_test.txt") # Load the date from the test set. testSubject<-read.tab...
/run_analysis.R
no_license
BoSab/Getting-and-Cleaning-Data
R
false
false
3,682
r
# Script # ------------------------------------------------------------------------------------ # Task #1: Merges the training and the test sets to create one data set. # the data from test set. dataTest<-read.table("./UCI HAR Dataset/test/X_test.txt") # Load the date from the test set. testSubject<-read.tab...
# plumber.R library(plyr) library(tm) library(wordcloud) library(pdftools) library(tidyverse) library(plumber) uniqueCSKeywords <- read.csv("https://raw.githubusercontent.com/jaydju/INA_2019/master/uniqueCSKeywords.csv") uniqueCSKeywords <- uniqueCSKeywords[,2] uniqueCSKeywords <- as.character(uniqueCSKeywords) uniqu...
/plumber.r
no_license
jaydju/INA_2019
R
false
false
3,224
r
# plumber.R library(plyr) library(tm) library(wordcloud) library(pdftools) library(tidyverse) library(plumber) uniqueCSKeywords <- read.csv("https://raw.githubusercontent.com/jaydju/INA_2019/master/uniqueCSKeywords.csv") uniqueCSKeywords <- uniqueCSKeywords[,2] uniqueCSKeywords <- as.character(uniqueCSKeywords) uniqu...
library(readxl) library(dplyr) library(data.table) library(raster) library(spdep) library(rgdal) # load data, create unique row ID spatial_econ <- read_excel("thesis_data1.xlsx") %>% arrange(Year, State) %>% mutate(unique = paste(State, Year, sep = ' '), Year = factor(Year), State = factor(State)...
/R_task_files/2018-1-26_spatial_econ_cooper/adjacent_states.R
no_license
jayleetx/mLab
R
false
false
2,723
r
library(readxl) library(dplyr) library(data.table) library(raster) library(spdep) library(rgdal) # load data, create unique row ID spatial_econ <- read_excel("thesis_data1.xlsx") %>% arrange(Year, State) %>% mutate(unique = paste(State, Year, sep = ' '), Year = factor(Year), State = factor(State)...
# The real deal app... here we come!!!! # library(tidyverse) # library(here) # library(ggrepel) # library(shiny) ## library(shinythemes) # library(fitdistrplus) # library(LaplacesDemon) # preload some data here! # source("kindisperse_functions.R") # run early setup functions # set environment for data storage app_e...
/R/app.R
permissive
moshejasper/kindisperse
R
false
false
77,365
r
# The real deal app... here we come!!!! # library(tidyverse) # library(here) # library(ggrepel) # library(shiny) ## library(shinythemes) # library(fitdistrplus) # library(LaplacesDemon) # preload some data here! # source("kindisperse_functions.R") # run early setup functions # set environment for data storage app_e...
# ------------------------------------------------------------------------ # # Title : Calendar examples : week view # By : Victor # Date : 2019-04-23 # # ------------------------------------------------------------------------ # Packages ---------------------------------------------------------------- libra...
/inst/calendar-examples/calendar-week.R
permissive
davan690/tuicalendr
R
false
false
1,443
r
# ------------------------------------------------------------------------ # # Title : Calendar examples : week view # By : Victor # Date : 2019-04-23 # # ------------------------------------------------------------------------ # Packages ---------------------------------------------------------------- libra...
# R script with performed analysis # libraries used library(data.table) library(dplyr) library(tidyr) # getting data path <- getwd() url_data <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(url_data, file.path(path, "data.zip")) unzip("data.zip") # loading ...
/run_analysis.R
no_license
Dacdalus/Getting-and-Cleaning-Data
R
false
false
2,060
r
# R script with performed analysis # libraries used library(data.table) library(dplyr) library(tidyr) # getting data path <- getwd() url_data <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(url_data, file.path(path, "data.zip")) unzip("data.zip") # loading ...
t.test(flips1, flips2, conf.level = .99)
/r/r_a_b_testing_in_r/code/tTest.R
no_license
frdanconia/datacamp
R
false
false
40
r
t.test(flips1, flips2, conf.level = .99)
#' Write Script for DVN #' #' This function creates a script (as a string) to compute a statistical model #' for use with the Dataverse. #' @param model a character-string specifying the model to compute #' @param outcome a character-vector specifying outcome variables #' @param explanatory a character-vector or list o...
/R/write.script.R
no_license
zeligdev/ZeligDVN
R
false
false
1,937
r
#' Write Script for DVN #' #' This function creates a script (as a string) to compute a statistical model #' for use with the Dataverse. #' @param model a character-string specifying the model to compute #' @param outcome a character-vector specifying outcome variables #' @param explanatory a character-vector or list o...
### MSMSOccbanna library(R2jags) ### 3-demensinal data #### rm(list=ls(all=TRUE)) list.filenames <- list.files(path = "data/All_widedata", pattern="*.csv") list.filenames <- paste(c("data/All_widedata/"), list.filenames, sep="") # create an empty list that will serve as a container to receive the incoming files spp.te...
/R/MCMC_IUCN_5_var.R
no_license
ccheng91/Multispp_Occ
R
false
false
26,273
r
### MSMSOccbanna library(R2jags) ### 3-demensinal data #### rm(list=ls(all=TRUE)) list.filenames <- list.files(path = "data/All_widedata", pattern="*.csv") list.filenames <- paste(c("data/All_widedata/"), list.filenames, sep="") # create an empty list that will serve as a container to receive the incoming files spp.te...
# simple_projections.R # # A small module for solving a distributionally robust optimization on # the chi-square divergence ball on the simplex. The bisection algorithm # takes a desired (relative) solution tolerance as a parameter, and is # extremely quick for reasonable values of n and tolerance. # # Given a n-dim...
/src/simple_projections.R
permissive
syadlowsky/robustopt
R
false
false
8,411
r
# simple_projections.R # # A small module for solving a distributionally robust optimization on # the chi-square divergence ball on the simplex. The bisection algorithm # takes a desired (relative) solution tolerance as a parameter, and is # extremely quick for reasonable values of n and tolerance. # # Given a n-dim...
#' Plot strand per base substitution type #' #' For each base substitution type and transcriptional strand the total number #' of mutations and the relative contribution within a group is returned. #' @param strand_bias_df data.frame, result from strand_bias function #' @param mode Either "absolute" for absolute number...
/R/plot_strand.R
permissive
Rashesh7/MutationalPatterns
R
false
false
2,853
r
#' Plot strand per base substitution type #' #' For each base substitution type and transcriptional strand the total number #' of mutations and the relative contribution within a group is returned. #' @param strand_bias_df data.frame, result from strand_bias function #' @param mode Either "absolute" for absolute number...
library(dplyr) library(readr) library(rvest) library(stringr) dir.create("data", showWarnings = FALSE) dir.create("html", showWarnings = FALSE) # ============================================================================== # DATA :: PARTICIPANTS # ====================================================================...
/B_analysts_sources_github/briatte/congres-afsp/01_data.r
no_license
Irbis3/crantasticScrapper
R
false
false
22,469
r
library(dplyr) library(readr) library(rvest) library(stringr) dir.create("data", showWarnings = FALSE) dir.create("html", showWarnings = FALSE) # ============================================================================== # DATA :: PARTICIPANTS # ====================================================================...
library(tidyverse) library(ggthemes) directory <- "/media/owens/Copper/wild_gwas_2018/petiolaris" pet29.30 <- read_tsv(paste(directory,"/Petiolaris.tranche90.snp.gwas.90.bi.pet29pet30.fst.txt",sep="")) pet29.30$comparison <- "pet29.30" pet29.31 <- read_tsv(paste(directory,"/Petiolaris.tranche90.snp.gwas.90.bi.pet29pe...
/Pet_30_investigation.R
no_license
hkchi/wild_gwas_2018
R
false
false
1,189
r
library(tidyverse) library(ggthemes) directory <- "/media/owens/Copper/wild_gwas_2018/petiolaris" pet29.30 <- read_tsv(paste(directory,"/Petiolaris.tranche90.snp.gwas.90.bi.pet29pet30.fst.txt",sep="")) pet29.30$comparison <- "pet29.30" pet29.31 <- read_tsv(paste(directory,"/Petiolaris.tranche90.snp.gwas.90.bi.pet29pe...
# AB=a[is.na(a$Profits)==F,] # # AB$WTF<- AB$Price*AB$BvBmsy*AB$FvFmsy*AB$MSY-AB$MarginalCost*(AB$FvFmsy*AB$g)^1.3 # # # quartz() # AB$CatchShareRam<- AB$CatchShare==1 & AB$Dbase=='RAM' # # ggplot(AB,aes(x=Profits,y=WTF,color=CatchShareRam))+geom_point(alpha=0.5) # # ggplot(AB,aes(x=Profits,fill=Policy))+geom_hist...
/Functions/ProfitPlot.R
no_license
kmillage/Global-Fishery-Potential
R
false
false
336
r
# AB=a[is.na(a$Profits)==F,] # # AB$WTF<- AB$Price*AB$BvBmsy*AB$FvFmsy*AB$MSY-AB$MarginalCost*(AB$FvFmsy*AB$g)^1.3 # # # quartz() # AB$CatchShareRam<- AB$CatchShare==1 & AB$Dbase=='RAM' # # ggplot(AB,aes(x=Profits,y=WTF,color=CatchShareRam))+geom_point(alpha=0.5) # # ggplot(AB,aes(x=Profits,fill=Policy))+geom_hist...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/droplasso.R \name{droplasso} \alias{droplasso} \title{Fit a droplasso model} \usage{ droplasso(x, y, family = c("gaussian", "binomial"), keep_prob = 0.5, nlambda = 10, lambda.min.ratio = ifelse(nobs < nvars, 0.01, 1e-04), lambda = NULL, i...
/man/droplasso.Rd
no_license
jpvert/droplasso
R
false
true
4,397
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/droplasso.R \name{droplasso} \alias{droplasso} \title{Fit a droplasso model} \usage{ droplasso(x, y, family = c("gaussian", "binomial"), keep_prob = 0.5, nlambda = 10, lambda.min.ratio = ifelse(nobs < nvars, 0.01, 1e-04), lambda = NULL, i...
CHAPTER 2 Data Structure Access The following functions allow one to create and manipu- late the various types of lisp data structures. Refer to 1.2 for details of the data structures known to FRANZ LISP. 2.1. Lists The following func...
/ucb/lisp/lisplib/manual/ch2.r
no_license
dank101/4.2BSD
R
false
false
62,495
r
CHAPTER 2 Data Structure Access The following functions allow one to create and manipu- late the various types of lisp data structures. Refer to 1.2 for details of the data structures known to FRANZ LISP. 2.1. Lists The following func...
# Read Data mydata <- read.table("household_power_consumption.txt", header=TRUE, sep=';',stringsAsFactors=FALSE) # Subsetting data x <- subset(mydata, Date == '1/2/2007' | Date == '2/2/2007') # preparing Data y<-cbind(DateTime=paste(x$Date, x$Time),x) y$DateTime<-strptime(y$DateTime, "%d/%m/%Y %H:%M:%S") y$Global_act...
/plot4.R
no_license
tdwis/ExData_Plotting1
R
false
false
1,196
r
# Read Data mydata <- read.table("household_power_consumption.txt", header=TRUE, sep=';',stringsAsFactors=FALSE) # Subsetting data x <- subset(mydata, Date == '1/2/2007' | Date == '2/2/2007') # preparing Data y<-cbind(DateTime=paste(x$Date, x$Time),x) y$DateTime<-strptime(y$DateTime, "%d/%m/%Y %H:%M:%S") y$Global_act...
# server.R library(dplyr) # Read in data source('./scripts/buildMap.R') df <- read.csv('./data/electoral_college.csv', stringsAsFactors = FALSE) state.codes <- read.csv('./data/state_codes.csv', stringsAsFactors = FALSE) # Join together state.codes and df joined.data <- left_join(df, state.codes, by="state") # Comp...
/exercise-3/server.R
permissive
feliciatd/m18-shiny
R
false
false
649
r
# server.R library(dplyr) # Read in data source('./scripts/buildMap.R') df <- read.csv('./data/electoral_college.csv', stringsAsFactors = FALSE) state.codes <- read.csv('./data/state_codes.csv', stringsAsFactors = FALSE) # Join together state.codes and df joined.data <- left_join(df, state.codes, by="state") # Comp...
testlist <- list(n = c(16777216L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(gdalcubes:::libgdalcubes_set_threads,testlist) str(result)
/gdalcubes/inst/testfiles/libgdalcubes_set_threads/libFuzzer_libgdalcubes_set_threads/libgdalcubes_set_threads_valgrind_files/1609874804-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
156
r
testlist <- list(n = c(16777216L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(gdalcubes:::libgdalcubes_set_threads,testlist) str(result)
#Get mutual information for the ternary data from ADA ##ssh peterwu19881230@ada.tamu.edu ##module load R/3.5.0-iomkl-2017b-recommended-mt ##getwd() ##save(Ternary_Data_324cutff,file="Ternary_Data_324cutff.RData") ##scp Ternary_Data_324cutff.RData peterwu19881230@ada.tamu.edu:/home/peterwu19881230/ ##scp Distances/mut...
/Distances/mutual_info_ADA/mutual_info_from_ADA.R
no_license
peterwu19881230/Microbial_phenotype_data_mining
R
false
false
2,409
r
#Get mutual information for the ternary data from ADA ##ssh peterwu19881230@ada.tamu.edu ##module load R/3.5.0-iomkl-2017b-recommended-mt ##getwd() ##save(Ternary_Data_324cutff,file="Ternary_Data_324cutff.RData") ##scp Ternary_Data_324cutff.RData peterwu19881230@ada.tamu.edu:/home/peterwu19881230/ ##scp Distances/mut...
\name{@ANNOBJPREFIX@CLUSTER} \alias{@ANNOBJPREFIX@CLUSTER} \title{MicroRNA IDs to Clusters} \description{ @ANNOBJPREFIX@CLUSTER is an R object that provides mappings between microRNA identifiers and other microRNA identifiers within a 10kb window ('genomic cluster'). } \details{ Each microRNA identifier maps...
/databases/mirbase/MIRBASE.DB/man/CLUSTER.Rd
no_license
ctoste/mirnaAnnotationTools
R
false
false
751
rd
\name{@ANNOBJPREFIX@CLUSTER} \alias{@ANNOBJPREFIX@CLUSTER} \title{MicroRNA IDs to Clusters} \description{ @ANNOBJPREFIX@CLUSTER is an R object that provides mappings between microRNA identifiers and other microRNA identifiers within a 10kb window ('genomic cluster'). } \details{ Each microRNA identifier maps...
library(rdpla) ### Name: dpla_cache ### Title: Caching ### Aliases: dpla_cache ### ** Examples ## Not run: ##D dpla_cache ##D ##D # list files in cache ##D dpla_cache$list() ##D ##D # delete certain database files ##D # dpla_cache$delete("file path") ##D # dpla_cache$list() ##D ##D # delete all files in cache #...
/data/genthat_extracted_code/rdpla/examples/dpla_cache.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
447
r
library(rdpla) ### Name: dpla_cache ### Title: Caching ### Aliases: dpla_cache ### ** Examples ## Not run: ##D dpla_cache ##D ##D # list files in cache ##D dpla_cache$list() ##D ##D # delete certain database files ##D # dpla_cache$delete("file path") ##D # dpla_cache$list() ##D ##D # delete all files in cache #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cluster.R \name{rect_hclust} \alias{rect_hclust} \title{Dendrogram with clusters shown by rectangles (like rect.hclust)} \usage{ rect_hclust(object, n_cluster) } \arguments{ \item{object}{cluster object from hclust} \item{n_cluster}{number o...
/man/rect_hclust.Rd
permissive
nxskok/seaiceR
R
false
true
584
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cluster.R \name{rect_hclust} \alias{rect_hclust} \title{Dendrogram with clusters shown by rectangles (like rect.hclust)} \usage{ rect_hclust(object, n_cluster) } \arguments{ \item{object}{cluster object from hclust} \item{n_cluster}{number o...
###### ### Create network from COW alliance data ##### ### Start with a single year # Load additional libraries library(cshapes) library(readstata13) # Load data alliance<-read.csv("alliance_v4.1_by_dyad_yearly.csv") head(alliance) mids<-read.dta13("dyadic mid 3.1_may 2018.dta") head(mids) # Pick year (1955) an...
/alliance_code.R
no_license
dkro23/alliance_network
R
false
false
2,426
r
###### ### Create network from COW alliance data ##### ### Start with a single year # Load additional libraries library(cshapes) library(readstata13) # Load data alliance<-read.csv("alliance_v4.1_by_dyad_yearly.csv") head(alliance) mids<-read.dta13("dyadic mid 3.1_may 2018.dta") head(mids) # Pick year (1955) an...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility.R \name{ml_input_checker} \alias{ml_input_checker} \title{Input Checker for ML functions} \usage{ ml_input_checker(x) } \arguments{ \item{x}{input to a \verb{ML***} function.} } \value{ \code{NULL} } \description{ Check...
/man/ml_input_checker.Rd
no_license
cran/univariateML
R
false
true
399
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility.R \name{ml_input_checker} \alias{ml_input_checker} \title{Input Checker for ML functions} \usage{ ml_input_checker(x) } \arguments{ \item{x}{input to a \verb{ML***} function.} } \value{ \code{NULL} } \description{ Check...
samiuddin<-function(trat, resp, t, r) { Trat<-factor(trat) #Samiuddin t=length(levels(Trat)) m<-matrix(0,t,1) somma<-matrix(0,t,1) a2<-matrix(0,t,1) rp<-0 for(i in 1:t) { dife<-0 soma<-0 for(j in 1:r[i]) { dife<-(resp[rp+j]-mean(resp[(rp+1):(rp+r[i])]))^2 soma<-so...
/R/samiuddin.r
no_license
josesaribeiro/ExpDes.pt
R
false
false
603
r
samiuddin<-function(trat, resp, t, r) { Trat<-factor(trat) #Samiuddin t=length(levels(Trat)) m<-matrix(0,t,1) somma<-matrix(0,t,1) a2<-matrix(0,t,1) rp<-0 for(i in 1:t) { dife<-0 soma<-0 for(j in 1:r[i]) { dife<-(resp[rp+j]-mean(resp[(rp+1):(rp+r[i])]))^2 soma<-so...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/headlines.R \docType{data} \name{processed_corpus} \alias{processed_corpus} \title{A syntactically parsed corpus of the English-language KCNA headlines} \format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) wi...
/man/processed_corpus.Rd
no_license
xmarquez/KCNA
R
false
true
2,547
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/headlines.R \docType{data} \name{processed_corpus} \alias{processed_corpus} \title{A syntactically parsed corpus of the English-language KCNA headlines} \format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) wi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{plot.scqe} \alias{plot.scqe} \title{Plot method for \code{scqe}} \usage{ \method{plot}{scqe}(x, xlab, ylab, ...) } \arguments{ \item{x}{an object of class \code{\link{scqe}}} \item{xlab}{Optional character label for x axis....
/man/plot.scqe.Rd
permissive
chadhazlett/scqe
R
false
true
1,027
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{plot.scqe} \alias{plot.scqe} \title{Plot method for \code{scqe}} \usage{ \method{plot}{scqe}(x, xlab, ylab, ...) } \arguments{ \item{x}{an object of class \code{\link{scqe}}} \item{xlab}{Optional character label for x axis....
library(rpart) library(caret) library(pmml) ls("package:pmml") ?pmml setwd("C:/Users/Algorithmica/Downloads") titanic_train = read.csv("train.csv", na.strings = c("NA","")) class(titanic_train) dim(titanic_train) str(titanic_train) #preparation of data titanic_train$Survived = as.factor(titanic_train$Survived) titan...
/2016-october/6.Model Deployment/model-export-pmml.R
no_license
rajesh2win/datascience
R
false
false
1,194
r
library(rpart) library(caret) library(pmml) ls("package:pmml") ?pmml setwd("C:/Users/Algorithmica/Downloads") titanic_train = read.csv("train.csv", na.strings = c("NA","")) class(titanic_train) dim(titanic_train) str(titanic_train) #preparation of data titanic_train$Survived = as.factor(titanic_train$Survived) titan...
library(readxl) library(tidyverse) data_boing_candy_2015 <- read_xlsx("raw_data/boing-boing-candy-2015.xlsx") data_boing_candy_2016 <- read_xlsx("raw_data/boing-boing-candy-2016.xlsx") data_boing_candy_2017 <- read_xlsx("raw_data/boing-boing-candy-2017.xlsx") view(data_boing_candy_2015) view(data_boing_candy_2016) ...
/task4/dirty_data_task4/data_cleaning_scripts/task4_data_cleaning.R
no_license
MonicaK19/dirty_data_codeclan_project_monica
R
false
false
12,520
r
library(readxl) library(tidyverse) data_boing_candy_2015 <- read_xlsx("raw_data/boing-boing-candy-2015.xlsx") data_boing_candy_2016 <- read_xlsx("raw_data/boing-boing-candy-2016.xlsx") data_boing_candy_2017 <- read_xlsx("raw_data/boing-boing-candy-2017.xlsx") view(data_boing_candy_2015) view(data_boing_candy_2016) ...
context("Testing Frequency Tables") if (R.version$major >= 3 & R.version$minor >= 6) { suppressWarnings(set.seed(120, sample.kind = "Rounding")) } else { set.seed(120) } dat <- ck_create_testdata() seed <- ck_create_seed_from_hash(dat) test_that("check seed from hash generation", { expect_equal(seed, 176985382...
/tests/testthat/test_countvars.R
no_license
GregorDeCillia/cellKey
R
false
false
5,111
r
context("Testing Frequency Tables") if (R.version$major >= 3 & R.version$minor >= 6) { suppressWarnings(set.seed(120, sample.kind = "Rounding")) } else { set.seed(120) } dat <- ck_create_testdata() seed <- ck_create_seed_from_hash(dat) test_that("check seed from hash generation", { expect_equal(seed, 176985382...
source(source('~/MachineLearning/Assign4/forest.R')) source(source('~/MachineLearning/Assign4/preserve.R')) time= data.frame(val_time, pol_time, x=c(1:991)) time_plot = ggplot(time, aes(x)) + geom_line(aes(y = val_time, colour = "Value Time")) + geom_line(aes(y = pol_time, colour = "Policy Time")) + labs(titl...
/Assign4/plots.R
no_license
bparli/MachineLearning
R
false
false
1,785
r
source(source('~/MachineLearning/Assign4/forest.R')) source(source('~/MachineLearning/Assign4/preserve.R')) time= data.frame(val_time, pol_time, x=c(1:991)) time_plot = ggplot(time, aes(x)) + geom_line(aes(y = val_time, colour = "Value Time")) + geom_line(aes(y = pol_time, colour = "Policy Time")) + labs(titl...
library(Momocs) ### Name: coo_calliper ### Title: Calculates the calliper length ### Aliases: coo_calliper ### ** Examples b <- bot[1] coo_calliper(b) p <- coo_calliper(b, arr.ind=TRUE) p p$length ids <- p$arr_ind[[1]] coo_plot(b) segments(b[ids[1], 1], b[ids[1], 2], b[ids[2], 1], b[ids[2], 2], lty=2) # on a Coo b...
/data/genthat_extracted_code/Momocs/examples/coo_calliper.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
454
r
library(Momocs) ### Name: coo_calliper ### Title: Calculates the calliper length ### Aliases: coo_calliper ### ** Examples b <- bot[1] coo_calliper(b) p <- coo_calliper(b, arr.ind=TRUE) p p$length ids <- p$arr_ind[[1]] coo_plot(b) segments(b[ids[1], 1], b[ids[1], 2], b[ids[2], 1], b[ids[2], 2], lty=2) # on a Coo b...
#Required packages library(rgdal) library(sp) library(raster) library(snow) library(spatial.tools) #Other useful spatial libraries ################################################################################################## ## Creates a Raster of Sask study area at 250m resolution (Sask pixel=1) and renames to ...
/old/BatchCrop_30mRes_v4.R
no_license
cboisvenue/RCodeSK
R
false
false
5,666
r
#Required packages library(rgdal) library(sp) library(raster) library(snow) library(spatial.tools) #Other useful spatial libraries ################################################################################################## ## Creates a Raster of Sask study area at 250m resolution (Sask pixel=1) and renames to ...
## ----------------------------------------------------------------------------- ## ## Prepare ## ## ----------------------------------------------------------------------------- ## library("opadar") library("dplyr") library("XML") datapath <- c("~/OPADA/data/SIIU/ficheros/", "~/OPADA/data/SIIU/ficheros-c...
/R/0-prepare-data-students-from-siiu.R
no_license
matejMartinc/upct-visualization
R
false
false
4,723
r
## ----------------------------------------------------------------------------- ## ## Prepare ## ## ----------------------------------------------------------------------------- ## library("opadar") library("dplyr") library("XML") datapath <- c("~/OPADA/data/SIIU/ficheros/", "~/OPADA/data/SIIU/ficheros-c...
## get some tweets x <- search_tweets("#afd", n = 1000, include_rts = F, lang = "de") ## import corpora pos <- read_delim("sentiment_corpus/SentiWS_v1.8c_Positive.txt", "\t", escape_double = FALSE, col_names = FALSE, col_types = cols(X3 = col_skip()), trim_ws = TRUE) %>% mutat...
/sentiment_analysis.R
permissive
MarauderPixie/Rtweet_exploration
R
false
false
701
r
## get some tweets x <- search_tweets("#afd", n = 1000, include_rts = F, lang = "de") ## import corpora pos <- read_delim("sentiment_corpus/SentiWS_v1.8c_Positive.txt", "\t", escape_double = FALSE, col_names = FALSE, col_types = cols(X3 = col_skip()), trim_ws = TRUE) %>% mutat...
# These functions needed for working with data form .nc files # ----------------------------------------------------------- # # ----------------------------------------------------------- # read_nc_file = function(file_path){ library(ncdf) nc <- open.ncdf(file_path) lon <- get.var.ncdf(nc,"longitude") nlon <...
/data.r
no_license
NikiforovHub/cyclones
R
false
false
2,798
r
# These functions needed for working with data form .nc files # ----------------------------------------------------------- # # ----------------------------------------------------------- # read_nc_file = function(file_path){ library(ncdf) nc <- open.ncdf(file_path) lon <- get.var.ncdf(nc,"longitude") nlon <...
#!/opt/conda/envs/R_env/bin/Rscript --vanilla # Sanja Priselac # 26/04/2021 ######################################################### library(dplyr) ######################################################### ########################################################################################################### tab...
/CancerData/workflow/scripts/results_analysis.R
no_license
sanjapriselac/InterdisciplinaryProject-LADC
R
false
false
4,376
r
#!/opt/conda/envs/R_env/bin/Rscript --vanilla # Sanja Priselac # 26/04/2021 ######################################################### library(dplyr) ######################################################### ########################################################################################################### tab...
test_that("strings used as inputs in shiny app are property split in a vector", { expect_equal( object = cass_split( string = "Dogs, cats, horses", squish = TRUE, to_lower = TRUE ), expected = c("dogs", "cats", "horses") ) }) test_that("vector of words is properly transformed into...
/tests/testthat/test-cass_utils.R
permissive
giocomai/castarter
R
false
false
502
r
test_that("strings used as inputs in shiny app are property split in a vector", { expect_equal( object = cass_split( string = "Dogs, cats, horses", squish = TRUE, to_lower = TRUE ), expected = c("dogs", "cats", "horses") ) }) test_that("vector of words is properly transformed into...
#Loading relevant libraries by looping through the list. libraries = c("tm","plyr","class","caret","wordcloud","Rgraphviz") lapply(libraries,require,character.only=TRUE) source("https://bioconductor.org/biocLite.R") biocLite("Rgraphviz") #Set options -- for keeping the text as it is options(stringsAsFactors =...
/RScript.R
no_license
rspratik/DocumentClassifierUsing_R
R
false
false
5,642
r
#Loading relevant libraries by looping through the list. libraries = c("tm","plyr","class","caret","wordcloud","Rgraphviz") lapply(libraries,require,character.only=TRUE) source("https://bioconductor.org/biocLite.R") biocLite("Rgraphviz") #Set options -- for keeping the text as it is options(stringsAsFactors =...
# Librerías ==== library(tidyverse) # Lectura y limpieza ==== lista_estados <- list.files(path = "data/raw/entidades", pattern = "ITER") frame_estatales <- purrr::map(lista_estados, ~ read_csv(glue::glue("data/raw/entidades/{.x}"), na = "*") %>% janitor::clean_names()...
/src/01-02-lectura_y_limpieza_estatal.R
no_license
haro-ca/censo2020
R
false
false
987
r
# Librerías ==== library(tidyverse) # Lectura y limpieza ==== lista_estados <- list.files(path = "data/raw/entidades", pattern = "ITER") frame_estatales <- purrr::map(lista_estados, ~ read_csv(glue::glue("data/raw/entidades/{.x}"), na = "*") %>% janitor::clean_names()...
#'using latent class linear mixed model (LCMM), create groups according to longitudinally measured data trajectories #'@import lcmm #'@import dplyr #'@param all_longitudinal_data_for_cluster result of getAllLongitudinal code #'@param measurementConceptId_Trajectory which measurement_concept_id do you want to ...
/R/LCMMclustering.r
no_license
ABMI/RTROD_WINGS
R
false
false
8,816
r
#'using latent class linear mixed model (LCMM), create groups according to longitudinally measured data trajectories #'@import lcmm #'@import dplyr #'@param all_longitudinal_data_for_cluster result of getAllLongitudinal code #'@param measurementConceptId_Trajectory which measurement_concept_id do you want to ...
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variables) required to compute the cor...
/corr.R
no_license
alvaroffn/data-science
R
false
false
865
r
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variables) required to compute the cor...
########################################################################################################### # Create an animated image of primary productivity in the Balearic Sea (project ReserveBenefit) # # Author : Clara Peron, clara.peron22@gmail.com # Date : 02-08-2017 # # R version 3.3.1 (2016-06-21) -- "Bug in Y...
/map_npp.R
no_license
cperon/ReserveBenefit
R
false
false
4,212
r
########################################################################################################### # Create an animated image of primary productivity in the Balearic Sea (project ReserveBenefit) # # Author : Clara Peron, clara.peron22@gmail.com # Date : 02-08-2017 # # R version 3.3.1 (2016-06-21) -- "Bug in Y...
myfunc <- function(num) { range <- 2*num-1 for(i in 1:num) { index <- (range - (2*i-1))/2 for(j in 1:range) { if(j > index && j <= (index + (2*i-1))) { ch <- i%%26 if(ch == 0) ch <- 26 cat(LETTERS[ch], sep = "") } else if(j...
/Team19_1.r
no_license
willwillhi1/R-language-HW
R
false
false
406
r
myfunc <- function(num) { range <- 2*num-1 for(i in 1:num) { index <- (range - (2*i-1))/2 for(j in 1:range) { if(j > index && j <= (index + (2*i-1))) { ch <- i%%26 if(ch == 0) ch <- 26 cat(LETTERS[ch], sep = "") } else if(j...
## /R/c3photo.R by Fernando Ezequiel Miguez Copyright (C) 2009-2010 ## ## This program is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by the Free ## Software Foundation; either version 2 or 3 of the License (at your option). ## ## This prog...
/R/c3photo.R
no_license
ajmann4/biocro
R
false
false
4,991
r
## /R/c3photo.R by Fernando Ezequiel Miguez Copyright (C) 2009-2010 ## ## This program is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by the Free ## Software Foundation; either version 2 or 3 of the License (at your option). ## ## This prog...
#################### #### TITLE: Develop optimal weighted resampling scheme for large N PIM #### Contents: #### #### Source Files: //Mastat/Thesis #### First Modified: 19/08/2017 #### Notes: ################# ## ########## ### Notes ########## ## # While we have non optimal resampling schemes in NonOptimalResa...
/1_Scripts/OptimalResamplingWeighted.R
permissive
HBossier/BigDataPIM
R
false
false
11,672
r
#################### #### TITLE: Develop optimal weighted resampling scheme for large N PIM #### Contents: #### #### Source Files: //Mastat/Thesis #### First Modified: 19/08/2017 #### Notes: ################# ## ########## ### Notes ########## ## # While we have non optimal resampling schemes in NonOptimalResa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_summarize_years} \alias{fars_summarize_years} \title{fars_summarize_years} \usage{ fars_summarize_years(years) } \arguments{ \item{years}{A list or vector of years to read} } \value{ A tibble whose rows are months....
/man/fars_summarize_years.Rd
no_license
woodsy-sounding-wilful-sapwood/fars
R
false
true
580
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_summarize_years} \alias{fars_summarize_years} \title{fars_summarize_years} \usage{ fars_summarize_years(years) } \arguments{ \item{years}{A list or vector of years to read} } \value{ A tibble whose rows are months....
## Dear grader. I've put the course's instructions in parentheses. It's very likely that ## you're alread familiar with them. ##( Put comments here that give an overall description of what your ## functions do) # The function makeCacheMatrix() and cacheSolve() are used to create, store, and find the inverse # of a ma...
/cachematrix.R
no_license
marzemien/ProgrammingAssignment2
R
false
false
2,277
r
## Dear grader. I've put the course's instructions in parentheses. It's very likely that ## you're alread familiar with them. ##( Put comments here that give an overall description of what your ## functions do) # The function makeCacheMatrix() and cacheSolve() are used to create, store, and find the inverse # of a ma...
by_pt_by_year<-function(ID,data){ temp<-lapply(unique(ID), function(x){ dat.temp <- subset(data, ID == x) # dat.temp <- subset(dat,dat$MRN==1509435) dat.temp<-dat.temp[order(dat.temp$Appt_Date),] dat.temp$row_tot<-nrow(dat.temp) #count of repeat visits per patient three_yn<-nrow(subse...
/Gerard Gonzalez/Year4 Code/01_functions.R
no_license
childhealthbiostatscore/BDC-Code
R
false
false
2,458
r
by_pt_by_year<-function(ID,data){ temp<-lapply(unique(ID), function(x){ dat.temp <- subset(data, ID == x) # dat.temp <- subset(dat,dat$MRN==1509435) dat.temp<-dat.temp[order(dat.temp$Appt_Date),] dat.temp$row_tot<-nrow(dat.temp) #count of repeat visits per patient three_yn<-nrow(subse...
#' normal_common #' #' Runs Asymmetric Gaussian MCMC with a common mean structure accross the groups #' #' @param y response variable which follows binomial dist #' @param x explanatory variable #' @param count n in binomial dist #' @param group groups of response #' @param priors list of priors #' @param niter number...
/R/normal_common.R
no_license
nulloa/functform
R
false
false
1,696
r
#' normal_common #' #' Runs Asymmetric Gaussian MCMC with a common mean structure accross the groups #' #' @param y response variable which follows binomial dist #' @param x explanatory variable #' @param count n in binomial dist #' @param group groups of response #' @param priors list of priors #' @param niter number...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/regain.R \name{regain} \alias{regain} \title{\code{getMainEffects}} \usage{ regain( dats, depVarName, indVarNames, reg.fam = "binomial", nCovs = 0, excludeMainEffects = F ) } \arguments{ \item{dats}{\code{labelledDataFrame.frame} ...
/man/regain.Rd
permissive
insilico/npdr
R
false
true
850
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/regain.R \name{regain} \alias{regain} \title{\code{getMainEffects}} \usage{ regain( dats, depVarName, indVarNames, reg.fam = "binomial", nCovs = 0, excludeMainEffects = F ) } \arguments{ \item{dats}{\code{labelledDataFrame.frame} ...
.onLoad <- function(lib, pkg) { # .First.lib <- function(lib, pkg) { #library.dynam("CORElearn", pkg, lib) initCore(16384) } .onUnload <- function(libpath) { #.Last.lib <- function(libpath) { destroyCore() #library.dynam.unload("CORElearn", libpath) } initCore <- function(maxModels=16384) { tmp <- .C(C_initCore...
/R/init.R
no_license
rmarko/CORElearn
R
false
false
437
r
.onLoad <- function(lib, pkg) { # .First.lib <- function(lib, pkg) { #library.dynam("CORElearn", pkg, lib) initCore(16384) } .onUnload <- function(libpath) { #.Last.lib <- function(libpath) { destroyCore() #library.dynam.unload("CORElearn", libpath) } initCore <- function(maxModels=16384) { tmp <- .C(C_initCore...
#install.packages("rjson", repos="http://cran.rstudio.com/") #install.packages("jsonlite", dependencies=TRUE, repos="http://cran.rstudio.com/") library(plyr) library(dplyr) library(rjson) library(jsonlite) #df = read.csv("./station_data/station_data.csv") #StationTable = data.frame(...
/RExtractor/extractor.r
no_license
PierreBinet/ProjetIntegrateur
R
false
false
3,468
r
#install.packages("rjson", repos="http://cran.rstudio.com/") #install.packages("jsonlite", dependencies=TRUE, repos="http://cran.rstudio.com/") library(plyr) library(dplyr) library(rjson) library(jsonlite) #df = read.csv("./station_data/station_data.csv") #StationTable = data.frame(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pg_cost_game.r \name{make.pg_cost.game} \alias{make.pg_cost.game} \title{Generate a (noisy) Prisoners' Dilemma game} \usage{ make.pg_cost.game(cost.min = 0.3, cost.max = 1.3, new.cost.prob = 0.5, digits = 0, delta = 0.95, ...) } \descriptio...
/man/make.pg_cost.game.Rd
no_license
skranz/StratTourn
R
false
true
368
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pg_cost_game.r \name{make.pg_cost.game} \alias{make.pg_cost.game} \title{Generate a (noisy) Prisoners' Dilemma game} \usage{ make.pg_cost.game(cost.min = 0.3, cost.max = 1.3, new.cost.prob = 0.5, digits = 0, delta = 0.95, ...) } \descriptio...
# Functions used in fit2df() ---- #' Extract model output to dataframe #' #' Internal function, not called directly. #' #' @param .data Model output. #' @param explanatory_name Name for this column in output. #' @param estimate_name Name for this column in output. #' @param estimate_suffix Appeneded to estimate name. ...
/R/finalfit_internal_functions.R
no_license
gridl/finalfit
R
false
false
27,086
r
# Functions used in fit2df() ---- #' Extract model output to dataframe #' #' Internal function, not called directly. #' #' @param .data Model output. #' @param explanatory_name Name for this column in output. #' @param estimate_name Name for this column in output. #' @param estimate_suffix Appeneded to estimate name. ...
activity$date <- as.Date(strptime(activity$date, format="%Y-%m-%d")) activity$datetype <- sapply(activity$date, function(x) { if (weekdays(x) == "S??bado" | weekdays(x) =="Domingo") {y <- "Weekend"} else {y <- "Weekday"} y }) activity_by_date <- aggregate(steps~interval + datetype, activity, mean, na.rm = TR...
/Panel plot comparing the average number of steps taken per 5-minute interval across weekdays and weekends.R
no_license
github12358/RepData_PeerAssessment1
R
false
false
581
r
activity$date <- as.Date(strptime(activity$date, format="%Y-%m-%d")) activity$datetype <- sapply(activity$date, function(x) { if (weekdays(x) == "S??bado" | weekdays(x) =="Domingo") {y <- "Weekend"} else {y <- "Weekday"} y }) activity_by_date <- aggregate(steps~interval + datetype, activity, mean, na.rm = TR...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exportToJson.R \name{exportDrugEraToJson} \alias{exportDrugEraToJson} \title{exportDrugEraToJson} \usage{ exportDrugEraToJson(connectionDetails, cdmDatabaseSchema, resultsDatabaseSchema, outputPath = getwd(), cdmVersion = "4", voc...
/man/exportDrugEraToJson.Rd
permissive
hajarhomayouni/Achilles
R
false
true
1,552
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exportToJson.R \name{exportDrugEraToJson} \alias{exportDrugEraToJson} \title{exportDrugEraToJson} \usage{ exportDrugEraToJson(connectionDetails, cdmDatabaseSchema, resultsDatabaseSchema, outputPath = getwd(), cdmVersion = "4", voc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get-colpal.R \name{get_colpal} \alias{get_colpal} \title{Create discrete color palette used in plots.} \usage{ get_colpal() } \value{ Vector of colors in hexadecimal code. } \description{ The colors are derived from http://colorbr...
/man/get_colpal.Rd
no_license
cran/atlantistools
R
false
true
632
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get-colpal.R \name{get_colpal} \alias{get_colpal} \title{Create discrete color palette used in plots.} \usage{ get_colpal() } \value{ Vector of colors in hexadecimal code. } \description{ The colors are derived from http://colorbr...
# Class 6: Mixed Effects Models # Turn this exercise sheet in by # 1) Going through the code below, filling in any sections that are missing # 2) If the code asks you to make a figure, be sure to save it by name from this script into your figures/ directory. #Name must start with 6_ so that we can find it. # 3) Answe...
/Scripts/6_MEmodels.R
permissive
aeda2021/fitz_kyra
R
false
false
12,855
r
# Class 6: Mixed Effects Models # Turn this exercise sheet in by # 1) Going through the code below, filling in any sections that are missing # 2) If the code asks you to make a figure, be sure to save it by name from this script into your figures/ directory. #Name must start with 6_ so that we can find it. # 3) Answe...
# replace blastp with diamond # ref: https://github.com/bbuchfink/diamond # install windows version: # https://github.com/bbuchfink/diamond/releases # add diamond.exe path to system env path ;"diamond.exe help" check if done library(data.table) library(seqinr) if (!dir.exists('Database')) { dir.create('D...
/20190430_DiamondPOCP_V2.R
no_license
redamancy-hub/POCP
R
false
false
3,946
r
# replace blastp with diamond # ref: https://github.com/bbuchfink/diamond # install windows version: # https://github.com/bbuchfink/diamond/releases # add diamond.exe path to system env path ;"diamond.exe help" check if done library(data.table) library(seqinr) if (!dir.exists('Database')) { dir.create('D...
\name{landmask} \docType{data} \alias{landmask} \alias{landmask20km} \title{Global coarse resolution land / soil mask maps} \description{Land mask showing the 1-degree cells (about 19 thousand in total) in the geographical coordinates, and the productive soils mask (areas with a positive Leaf Area Index at least once i...
/GSIF/man/landmask.Rd
no_license
albrizre/spatstat.revdep
R
false
false
3,748
rd
\name{landmask} \docType{data} \alias{landmask} \alias{landmask20km} \title{Global coarse resolution land / soil mask maps} \description{Land mask showing the 1-degree cells (about 19 thousand in total) in the geographical coordinates, and the productive soils mask (areas with a positive Leaf Area Index at least once i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_helper.r \name{lm.mse} \alias{lm.mse} \title{Calculate mse} \usage{ lm.mse(X, Y, mod = NULL, est.b = NULL, log.level = NULL) } \arguments{ \item{X}{covariates (n times p matrix, n: number of entries, p: number of covariates)} \item{Y}{re...
/man/lm.mse.Rd
no_license
christineyuen/CSUV
R
false
true
904
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_helper.r \name{lm.mse} \alias{lm.mse} \title{Calculate mse} \usage{ lm.mse(X, Y, mod = NULL, est.b = NULL, log.level = NULL) } \arguments{ \item{X}{covariates (n times p matrix, n: number of entries, p: number of covariates)} \item{Y}{re...
rpgms_path="~/projects/p1000/metrics/accVolume/rpgms/" source(paste(rpgms_path,"pixels.r",sep="")) source(paste(rpgms_path,"functions.r",sep="")) dat_path="/Users/bida/projects/p1000/paper/data0706/CROWDING/" dat_path2="/Users/bida/projects/p1000/metrics/accVolume/data/" ########### Random Radius Data ##############...
/metrics/accVolume/rpgms/vol2d.r
no_license
jpbida/FKS
R
false
false
2,029
r
rpgms_path="~/projects/p1000/metrics/accVolume/rpgms/" source(paste(rpgms_path,"pixels.r",sep="")) source(paste(rpgms_path,"functions.r",sep="")) dat_path="/Users/bida/projects/p1000/paper/data0706/CROWDING/" dat_path2="/Users/bida/projects/p1000/metrics/accVolume/data/" ########### Random Radius Data ##############...
library(Seurat) library(dplyr) library(Matrix) library(matrixStats) library(gplots) library(ggplot2) library(feather) library(viridis) #load data and format anno <- read_feather("~/NeMO_analysis_folder/Transcriptomics/cross_species_integration/additional_intermediate_files/3_species_anno.feather") sample.co...
/cross_species_integration/ED_Figure_2_c.R
no_license
AllenInstitute/BICCN_M1_Evo
R
false
false
7,814
r
library(Seurat) library(dplyr) library(Matrix) library(matrixStats) library(gplots) library(ggplot2) library(feather) library(viridis) #load data and format anno <- read_feather("~/NeMO_analysis_folder/Transcriptomics/cross_species_integration/additional_intermediate_files/3_species_anno.feather") sample.co...
ccf2 <- function (x, y, max.lag = NULL, main = NULL, ylab = "CCF", plot = TRUE, na.action = na.pass, type = c("correlation", "covariance"), ...) { par = graphics::par acf = stats::acf abline = graphics::abline frequency = stats::frequency ts.intersect = stats::ts.intersect as.ts = stats...
/R/ccf2.R
no_license
cran/astsa
R
false
false
1,833
r
ccf2 <- function (x, y, max.lag = NULL, main = NULL, ylab = "CCF", plot = TRUE, na.action = na.pass, type = c("correlation", "covariance"), ...) { par = graphics::par acf = stats::acf abline = graphics::abline frequency = stats::frequency ts.intersect = stats::ts.intersect as.ts = stats...
## pre load the file for loading dataset source("load_data.R") png(filename = "plot3.png", width = 480, height = 480, units = "px", bg = "transparent") plot(DateTime, Sub_metering_1, type = "l", col = "black", xlab = "", ylab = "Energy sub metering") lines(DateTime, Sub_metering_2, col = "red") l...
/Plot3.R
no_license
t-sharma/ExData_Plotting1
R
false
false
513
r
## pre load the file for loading dataset source("load_data.R") png(filename = "plot3.png", width = 480, height = 480, units = "px", bg = "transparent") plot(DateTime, Sub_metering_1, type = "l", col = "black", xlab = "", ylab = "Energy sub metering") lines(DateTime, Sub_metering_2, col = "red") l...