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
library(wrapr) ### Name: lambda ### Title: Build an anonymous function. ### Aliases: lambda ### ** Examples #lambda-syntax: lambda(arg [, arg]*, body [, env=env]) # also works with lambda character as function name # print(intToUtf8(0x03BB)) # example: square numbers sapply(1:4, lambda(x, x^2)) # example more th...
/data/genthat_extracted_code/wrapr/examples/lambda.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
513
r
library(wrapr) ### Name: lambda ### Title: Build an anonymous function. ### Aliases: lambda ### ** Examples #lambda-syntax: lambda(arg [, arg]*, body [, env=env]) # also works with lambda character as function name # print(intToUtf8(0x03BB)) # example: square numbers sapply(1:4, lambda(x, x^2)) # example more th...
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you...
/src/test/scripts/functions/binary/matrix/MapMultChainWeights.R
permissive
stc-tester/incubator-systemml
R
false
false
1,250
r
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you...
#' List software creators #' #' @param json #' (list) Software metadata in JSON format #' #' @return #' (list) Software creators #' #' @examples #' \dontrun{ #' json <- get_json('http://imcr.ontosoft.org/repository/software') #' list_creators(json) #' } #' list_creators <- function(json){ return( lapply( ...
/R/plot_authors.R
permissive
IMCR-Hackathon/toolkit
R
false
false
453
r
#' List software creators #' #' @param json #' (list) Software metadata in JSON format #' #' @return #' (list) Software creators #' #' @examples #' \dontrun{ #' json <- get_json('http://imcr.ontosoft.org/repository/software') #' list_creators(json) #' } #' list_creators <- function(json){ return( lapply( ...
#duration for data from read.asset dur.f <- function(data) { #data length l.d <- dim(data)[1] #obcięte czasy temp1 <- data[2:l.d,1] temp0 <- data[1:(l.d - 1),1] #result as.numeric(difftime(temp1,temp0, units = 'secs')) } #creating the list of durations duration <- list() for (i in 1:8) duration[[i]...
/R code/92_tables.R
no_license
amachno/epps
R
false
false
773
r
#duration for data from read.asset dur.f <- function(data) { #data length l.d <- dim(data)[1] #obcięte czasy temp1 <- data[2:l.d,1] temp0 <- data[1:(l.d - 1),1] #result as.numeric(difftime(temp1,temp0, units = 'secs')) } #creating the list of durations duration <- list() for (i in 1:8) duration[[i]...
%% BEGIN doc for: lpx_set_prob_name \name{lpx_set_prob_name} \alias{lpx_set_prob_name} \title{ Low-level interface to the GLPK function } \description{ This function is a low-level interface to the GNU Linear Programming Kit (GLPK) function \code{lpx_set_prob_name}. The parameter names, associated type...
/man/lpx_set_prob_name.Rd
no_license
cran/glpk
R
false
false
1,461
rd
%% BEGIN doc for: lpx_set_prob_name \name{lpx_set_prob_name} \alias{lpx_set_prob_name} \title{ Low-level interface to the GLPK function } \description{ This function is a low-level interface to the GNU Linear Programming Kit (GLPK) function \code{lpx_set_prob_name}. The parameter names, associated type...
library("seqinr") library(reshape2) library(ggplot2) no.diff.list <- c("?", "-", "N", "n") get.diff <- function(p){ algn <- read.fasta(file = p) n <- names(algn) seq1 <- as.character(get(n[1], algn)) seq2 <- as.character(get(n[2], algn)) seq3 <- as.character(get(n[3], algn)) l1 <- sapply(c(1:l...
/scripts/compare_consensus.R
no_license
gkarthik/ivar-validation
R
false
false
1,975
r
library("seqinr") library(reshape2) library(ggplot2) no.diff.list <- c("?", "-", "N", "n") get.diff <- function(p){ algn <- read.fasta(file = p) n <- names(algn) seq1 <- as.character(get(n[1], algn)) seq2 <- as.character(get(n[2], algn)) seq3 <- as.character(get(n[3], algn)) l1 <- sapply(c(1:l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isNanScalarOrNull.R \name{isNanScalarOrNull} \alias{isNanScalarOrNull} \title{Wrapper for the checkarg function, using specific parameter settings.} \usage{ isNanScalarOrNull(argument, default = NULL, stopIfNot = FALSE, message = NUL...
/man/isNanScalarOrNull.Rd
no_license
cran/checkarg
R
false
true
1,972
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isNanScalarOrNull.R \name{isNanScalarOrNull} \alias{isNanScalarOrNull} \title{Wrapper for the checkarg function, using specific parameter settings.} \usage{ isNanScalarOrNull(argument, default = NULL, stopIfNot = FALSE, message = NUL...
testlist <- list(a = 0L, b = 0L, x = c(720693L, -1073741825L, 2815L, 901722879L, -212L, 1987517265L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610055856-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
313
r
testlist <- list(a = 0L, b = 0L, x = c(720693L, -1073741825L, 2815L, 901722879L, -212L, 1987517265L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
#' Plot mean Cropper values and pointer years #' #' @description The function creates a bar plot of mean Cropper values from a \code{list} of the type as produced by \code{\link{pointer.norm}} and highlights years identified as pointer years. #' #' @usage norm.plot(list.name, start.yr = NULL, end.yr = NULL, #' ...
/pointRes/R/norm.plot.R
no_license
ingted/R-Examples
R
false
false
7,137
r
#' Plot mean Cropper values and pointer years #' #' @description The function creates a bar plot of mean Cropper values from a \code{list} of the type as produced by \code{\link{pointer.norm}} and highlights years identified as pointer years. #' #' @usage norm.plot(list.name, start.yr = NULL, end.yr = NULL, #' ...
#### load package require(ggplot2) require(GGally) require(reshape2) require(lme4) require(compiler) require(parallel) require(boot) require(caret) require(ROCR) require(xlsx) require(data.table) modeldata=read.csv('G:/Kang Zhou/Desktop/Rail defect model/result/random forests/data 01mile model.csv') dat1...
/mixed effect for data 01 mile data.R
no_license
vincent-kangzhou/Defect-Detection
R
false
false
6,337
r
#### load package require(ggplot2) require(GGally) require(reshape2) require(lme4) require(compiler) require(parallel) require(boot) require(caret) require(ROCR) require(xlsx) require(data.table) modeldata=read.csv('G:/Kang Zhou/Desktop/Rail defect model/result/random forests/data 01mile model.csv') dat1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load-value.R \name{load_value} \alias{load_value} \title{Load table} \usage{ load_value(rowname, colname = "estimate", folders = get_folders(), name = "estimates", type = "results", digits = 6) } \arguments{ \item{rowname}{string of name of...
/man/load_value.Rd
no_license
poissonconsulting/poiscon
R
false
true
772
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load-value.R \name{load_value} \alias{load_value} \title{Load table} \usage{ load_value(rowname, colname = "estimate", folders = get_folders(), name = "estimates", type = "results", digits = 6) } \arguments{ \item{rowname}{string of name of...
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://d...
/R/VolumePriceTrendTechnicalValue.r
no_license
intrinio/r-sdk
R
false
false
3,679
r
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://d...
#' Relocate a column to a new position #' #' @description #' Move a column or columns to a new position #' #' @param .df A data.frame or data.table #' @param ... A selection of columns to move. `tidyselect` compatible. #' @param .before Column to move selection before #' @param .after Column to move selection after #' ...
/R/relocate.R
no_license
cran/tidytable
R
false
false
1,167
r
#' Relocate a column to a new position #' #' @description #' Move a column or columns to a new position #' #' @param .df A data.frame or data.table #' @param ... A selection of columns to move. `tidyselect` compatible. #' @param .before Column to move selection before #' @param .after Column to move selection after #' ...
#! /jgi/tools/bin/Rscript instructions <- " Creates a table with motif locations Parameters: reference_file: FASTA reference file motif_file: motifs.csv output file from MotifMaker outfile: name of output file Creates a table that looks like this: strand start motif onTarget seqid + ...
/annotate_motifs.R
no_license
mlbendall/motif-finding
R
false
false
1,358
r
#! /jgi/tools/bin/Rscript instructions <- " Creates a table with motif locations Parameters: reference_file: FASTA reference file motif_file: motifs.csv output file from MotifMaker outfile: name of output file Creates a table that looks like this: strand start motif onTarget seqid + ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bijectors.R \name{tfb_gumbel} \alias{tfb_gumbel} \title{Compute \code{Y = g(X) = exp(-exp(-(X - loc) / scale))}.} \usage{ tfb_gumbel(loc = 0, scale = 1, validate_args = FALSE, name = "gumbel") } \arguments{ \item{loc}{Float-like Tensor that...
/man/tfb_gumbel.Rd
permissive
kevinykuo/tfprobability-1
R
false
true
2,685
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bijectors.R \name{tfb_gumbel} \alias{tfb_gumbel} \title{Compute \code{Y = g(X) = exp(-exp(-(X - loc) / scale))}.} \usage{ tfb_gumbel(loc = 0, scale = 1, validate_args = FALSE, name = "gumbel") } \arguments{ \item{loc}{Float-like Tensor that...
library(gMCP) ### Name: bonferroni.test ### Title: Weighted Bonferroni-test ### Aliases: bonferroni.test ### ** Examples bonferroni.test(pvalues=c(0.1,0.2,0.05), weights=c(0.5,0.5,0)) bonferroni.test(pvalues=c(0.1,0.2,0.05), weights=c(0.5,0.5,0), adjPValues=FALSE)
/data/genthat_extracted_code/gMCP/examples/bonferroni.test.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
274
r
library(gMCP) ### Name: bonferroni.test ### Title: Weighted Bonferroni-test ### Aliases: bonferroni.test ### ** Examples bonferroni.test(pvalues=c(0.1,0.2,0.05), weights=c(0.5,0.5,0)) bonferroni.test(pvalues=c(0.1,0.2,0.05), weights=c(0.5,0.5,0), adjPValues=FALSE)
require(shiny) require(ggplot2) require(MASS) ui <- fluidPage( titlePanel("Boston"), sidebarLayout( sidebarPanel( h4("Feature Fit on 'medv'"), checkboxGroupInput(inputId = "features", "'lstat' fitted by default", ...
/ch03_Linear_Regression/shiny/boston_resid/App.R
no_license
GucciTheCarpenter/ISLR_labs
R
false
false
2,581
r
require(shiny) require(ggplot2) require(MASS) ui <- fluidPage( titlePanel("Boston"), sidebarLayout( sidebarPanel( h4("Feature Fit on 'medv'"), checkboxGroupInput(inputId = "features", "'lstat' fitted by default", ...
library(cmaes) library(quantmod) library(zoo) library(lubridate) library(dplyr) library(parallel) library(doParallel) #library(progress) #library(ggplot2) library(nloptr) #library(optimx) #library(latticeExtra) library(tseries) #get data filename <- "SP500.csv" folder <- "./data/SP500_WINDOWS/" filepath <- past...
/CINECA/fitting_2.R
no_license
sabato96/LPPLS-APPLIANCE
R
false
false
34,515
r
library(cmaes) library(quantmod) library(zoo) library(lubridate) library(dplyr) library(parallel) library(doParallel) #library(progress) #library(ggplot2) library(nloptr) #library(optimx) #library(latticeExtra) library(tseries) #get data filename <- "SP500.csv" folder <- "./data/SP500_WINDOWS/" filepath <- past...
VideoName<- readline("What data did you analyse?") fact.t1<- as.factor(t1$A) savefile <- sapply( levels(fact.t1) , function(x) write.table(t1[x==fact.t1,3:4], paste ("d:/Karen's/PhD/R program/Processed_data/trackdata/",VideoName,"/",x,".csv"), sep=";", row.names = F), simplify = TRUE, USE.NAMES = TRUE)
/scripts that do not actuially work/sub3.r
no_license
kaye11/Some-R-scripts
R
false
false
304
r
VideoName<- readline("What data did you analyse?") fact.t1<- as.factor(t1$A) savefile <- sapply( levels(fact.t1) , function(x) write.table(t1[x==fact.t1,3:4], paste ("d:/Karen's/PhD/R program/Processed_data/trackdata/",VideoName,"/",x,".csv"), sep=";", row.names = F), simplify = TRUE, USE.NAMES = TRUE)
library(tm) setwd("C:/Users/Quan Nguyen/OneDrive/Work/Self-Studies/DataScience-Coursera/DS_Specialization_JohnsHopkinsUni/TheDataScientistsToolbox/datasciencecoursera/DS_Capstone/App/") bigram <- readRDS(file="final_bigram.Rda") trigram <- readRDS(file="final_trigram.Rda") fourgram <- readRDS(file="final_fourgram.Rda"...
/Data_Science_Capstone_Project/Prediction.R
no_license
quannguyen201294/datasciencecoursera
R
false
false
2,292
r
library(tm) setwd("C:/Users/Quan Nguyen/OneDrive/Work/Self-Studies/DataScience-Coursera/DS_Specialization_JohnsHopkinsUni/TheDataScientistsToolbox/datasciencecoursera/DS_Capstone/App/") bigram <- readRDS(file="final_bigram.Rda") trigram <- readRDS(file="final_trigram.Rda") fourgram <- readRDS(file="final_fourgram.Rda"...
#' Assert that packages are loaded #' #' This function can be useful in writing package functions that use #' functions from packages that you "suggest". It asserts that these packages #' are available, and throws an informative error for those packages #' that are not. #' #' @param packages `character` vector of packa...
/R/utils-package.R
no_license
sa-lee/vegawidget
R
false
false
1,278
r
#' Assert that packages are loaded #' #' This function can be useful in writing package functions that use #' functions from packages that you "suggest". It asserts that these packages #' are available, and throws an informative error for those packages #' that are not. #' #' @param packages `character` vector of packa...
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(package = "qrcode") # Define server logic required to draw a histogram shinyServe...
/app/server.R
no_license
odeleongt/photo-qr-store
R
false
false
1,841
r
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(package = "qrcode") # Define server logic required to draw a histogram shinyServe...
# Dynamically exported, see zzz.R # taken from broom::: to make augment.eglm work has_rownames <- function(df) { if (tibble::is_tibble(df)) { return(FALSE) } any(rownames(df) != as.character(1:nrow(df))) }
/R/99-broom-has-rownames.R
permissive
nfultz/eflm
R
false
false
217
r
# Dynamically exported, see zzz.R # taken from broom::: to make augment.eglm work has_rownames <- function(df) { if (tibble::is_tibble(df)) { return(FALSE) } any(rownames(df) != as.character(1:nrow(df))) }
library("aroma.core"); verbose <- Arguments$getVerbose(-8, timestamp=TRUE); ar <- AromaRepository(verbose=TRUE); verbose && enter(verbose, "Downloading annotation data"); chipType <- "Mapping250K_Nsp"; verbose && cat(verbose, "Chip type: ", chipType); pathname <- downloadACS(ar, chipType, tags=".*"); verbo...
/aroma.affymetrix/inst/testScripts/complete/dataSets/GSE34754/01a.downloadAnnotationData.R
no_license
ingted/R-Examples
R
false
false
694
r
library("aroma.core"); verbose <- Arguments$getVerbose(-8, timestamp=TRUE); ar <- AromaRepository(verbose=TRUE); verbose && enter(verbose, "Downloading annotation data"); chipType <- "Mapping250K_Nsp"; verbose && cat(verbose, "Chip type: ", chipType); pathname <- downloadACS(ar, chipType, tags=".*"); verbo...
#!/share/apps/R-3.2.2_gcc/bin/Rscript library(chron) library(data.table) library(reshape2) library(dplyr) library(foreach) library(iterators) source_path = "/home/hnoorazar/cleaner_codes/core.R" source(source_path) raw_data_dir = "/data/hydro/users/Hossein/codling_moth_new/local/raw/" write_path = "/data/hydro/users/...
/codling_moth/code/drivers/local_future/LF_CM_45_S6.R
permissive
HNoorazar/Ag
R
false
false
3,270
r
#!/share/apps/R-3.2.2_gcc/bin/Rscript library(chron) library(data.table) library(reshape2) library(dplyr) library(foreach) library(iterators) source_path = "/home/hnoorazar/cleaner_codes/core.R" source(source_path) raw_data_dir = "/data/hydro/users/Hossein/codling_moth_new/local/raw/" write_path = "/data/hydro/users/...
loadSeuratObject = function(filename) { require(Seurat) sobj = readRDS(filename) return(sobj) } saveSeuratObject = function(sobj, path) { require(Seurat) saveRDS(sobj, file=path) } runSeurat = function(data, batch, hvg=2000) { require(Seurat) batch_list = SplitObject(data, split.by = batch) anchors = Fi...
/R/integration.R
permissive
DandanHan91054/scib
R
false
false
4,355
r
loadSeuratObject = function(filename) { require(Seurat) sobj = readRDS(filename) return(sobj) } saveSeuratObject = function(sobj, path) { require(Seurat) saveRDS(sobj, file=path) } runSeurat = function(data, batch, hvg=2000) { require(Seurat) batch_list = SplitObject(data, split.by = batch) anchors = Fi...
#' theme_publication for plots #' @param base_size size of font for plot default "15" #' @param base_family font to be used default "Helvetica" #' Publication quality images for summary plots theme_Publication <- function(base_size=15, base_family="Helvetica") { (theme_foundation(base_size=base_size, base_family=ba...
/R/theme_publication.R
permissive
jharenza/annoFuse
R
false
false
1,759
r
#' theme_publication for plots #' @param base_size size of font for plot default "15" #' @param base_family font to be used default "Helvetica" #' Publication quality images for summary plots theme_Publication <- function(base_size=15, base_family="Helvetica") { (theme_foundation(base_size=base_size, base_family=ba...
## ADD ISO BIO -- relatio id filtering "IPA.sampler.Add.Iso.Bio.relID" <- function(P, Add, Iso, Bio, Int, rel.id, no.its = 1100, burn = 100, delta.add = 0.5, delta.iso = 0.5, delta.bio = 1, allsamp = F, ratio.toll = 0.8, allsampcomp = NULL, v = TRUE, IT = 500) { counter <- 0 ind.rem <- lapp...
/R/IPA_sampler_ISO_ADD_BIO_relID.R
no_license
francescodc87/IPA
R
false
false
2,643
r
## ADD ISO BIO -- relatio id filtering "IPA.sampler.Add.Iso.Bio.relID" <- function(P, Add, Iso, Bio, Int, rel.id, no.its = 1100, burn = 100, delta.add = 0.5, delta.iso = 0.5, delta.bio = 1, allsamp = F, ratio.toll = 0.8, allsampcomp = NULL, v = TRUE, IT = 500) { counter <- 0 ind.rem <- lapp...
library(dplyr) library(MBQN) library(matrixTests) library(limma) library(qvalue) library(genefilter) library(samr) # BiocManager::install("ROTS") library(ROTS) library(parallel) library(DescTools) library(matrixcalc) library(psych) library(doParallel) library(stats) library(pcaMethods) library(foreach) library(rlist)...
/R/benchmark_analysis.R
permissive
kreutz-lab/dia-benchmarking
R
false
false
36,560
r
library(dplyr) library(MBQN) library(matrixTests) library(limma) library(qvalue) library(genefilter) library(samr) # BiocManager::install("ROTS") library(ROTS) library(parallel) library(DescTools) library(matrixcalc) library(psych) library(doParallel) library(stats) library(pcaMethods) library(foreach) library(rlist)...
## test Function FindCorValueByGenes x1 <- FindCorValueByGenes(inputCell, referencePanel) x$singleAbove0$`Fetal__Stomach_5_Pit Progenitor` x1$singleAbove0_df colSums(x1$singleAbove0_df) #### test Function CorValueByGenes_V3 inputCells = GSE97693_Tang_TPM_cells[,1:20] # drop very important referencePanel = referPanel_...
/Rs_corGene_analysis/Step3_verify_the_functions.R
no_license
haojiang9999/HCA_script
R
false
false
1,132
r
## test Function FindCorValueByGenes x1 <- FindCorValueByGenes(inputCell, referencePanel) x$singleAbove0$`Fetal__Stomach_5_Pit Progenitor` x1$singleAbove0_df colSums(x1$singleAbove0_df) #### test Function CorValueByGenes_V3 inputCells = GSE97693_Tang_TPM_cells[,1:20] # drop very important referencePanel = referPanel_...
layout(matrix(c(1,2,3,4), 2, 2, byrow = TRUE)) hist(data$child.no, breaks=7, main='Children Born to Beneficiaries', col = "lightgrey", ylim = c(0, 140), xlab = NULL, ylab = "No. of Beneficiaries") hist(data$child.before.cct, breaks=7, main='Children Born before CCT', col="li...
/scripts/multiplot.R
no_license
DevSolutionsLtd/cct
R
false
false
711
r
layout(matrix(c(1,2,3,4), 2, 2, byrow = TRUE)) hist(data$child.no, breaks=7, main='Children Born to Beneficiaries', col = "lightgrey", ylim = c(0, 140), xlab = NULL, ylab = "No. of Beneficiaries") hist(data$child.before.cct, breaks=7, main='Children Born before CCT', col="li...
#' turnOverSimple #' #' @param wts #' @param wtsInit #' @param digits #' #' @return #' @export #' #' @examples turnoverSimple = function(wts,wtsInit = NULL,digits = NULL) { if(is.null(wtsInit)) { n = length(wts) wtsInit = rep(1/n,n)} to = sum(abs(wts-wtsInit)) if(is.null(digits)) {list(turnover = to)} else...
/R/turnoverSimple.R
permissive
kecoli/PCRM
R
false
false
368
r
#' turnOverSimple #' #' @param wts #' @param wtsInit #' @param digits #' #' @return #' @export #' #' @examples turnoverSimple = function(wts,wtsInit = NULL,digits = NULL) { if(is.null(wtsInit)) { n = length(wts) wtsInit = rep(1/n,n)} to = sum(abs(wts-wtsInit)) if(is.null(digits)) {list(turnover = to)} else...
plot_prev2 <- function(fit, ..., ylim=NULL, xlim=c(1980, max(as.integer(dimnames(fit$prev)[[1]]))), col="blue", main="", ylab="prevalence"){ if(is.null(ylim)) ylim <- c(0, 1.1*max(fit$prev[,"upper"])) xx <- as.integer(dimnames(fit$prev)[[1]]) plot(xx, fit$prev[,"mean"], type="n", ylim=yl...
/R/plot2.R
no_license
mrc-ide/eppasm
R
false
false
9,515
r
plot_prev2 <- function(fit, ..., ylim=NULL, xlim=c(1980, max(as.integer(dimnames(fit$prev)[[1]]))), col="blue", main="", ylab="prevalence"){ if(is.null(ylim)) ylim <- c(0, 1.1*max(fit$prev[,"upper"])) xx <- as.integer(dimnames(fit$prev)[[1]]) plot(xx, fit$prev[,"mean"], type="n", ylim=yl...
structure(list(url = "https://play.dhis2.org/2.33.4/api/organisationUnitGroups.json?paging=false&filter=name:in:[District,CHC]&fields=id,name", status_code = 200L, headers = structure(list(server = "nginx/1.17.9", date = "Fri, 12 Jun 2020 14:42:18 GMT", `content-type` = "application/json;charset=UTF-8", ...
/tests/testthat/play.dhis2.org/2.33/api/organisationUnitGroups.json-918aba.R
permissive
pepfar-datim/datimutils
R
false
false
2,607
r
structure(list(url = "https://play.dhis2.org/2.33.4/api/organisationUnitGroups.json?paging=false&filter=name:in:[District,CHC]&fields=id,name", status_code = 200L, headers = structure(list(server = "nginx/1.17.9", date = "Fri, 12 Jun 2020 14:42:18 GMT", `content-type` = "application/json;charset=UTF-8", ...
#' A Place Holder for the hdf5r::H5File R6 Class #' #' @export H5File <- list( new = function(...) { print(sys.calls()) stop("You have installed a fake version of the 'hdf5r' package. This dummy version of that package was created in order to install Seurat (>= 2.3.2) on systems where 'hdf5r' fails to instal...
/R/H5File.R
no_license
Bionett/fake-hdf5r
R
false
false
417
r
#' A Place Holder for the hdf5r::H5File R6 Class #' #' @export H5File <- list( new = function(...) { print(sys.calls()) stop("You have installed a fake version of the 'hdf5r' package. This dummy version of that package was created in order to install Seurat (>= 2.3.2) on systems where 'hdf5r' fails to instal...
library("rpart") library("rpart.plot") #dados <- iris #modelo <- rpart(Species ~ ., data = dados) #colclasses ~ todas #res <- predict(teste, dados, type = "class") # efetua o teste cogu <- read.csv(file = "cogumelos.csv", header = TRUE, sep = ",") seq <- sample(1:nrow(cogu), as.integer(nrow(cogu)*0.3)) seq2 <- sampl...
/projetos_R/arvoreDecisao.r
no_license
fndcaique/inteligencia_artificial
R
false
false
554
r
library("rpart") library("rpart.plot") #dados <- iris #modelo <- rpart(Species ~ ., data = dados) #colclasses ~ todas #res <- predict(teste, dados, type = "class") # efetua o teste cogu <- read.csv(file = "cogumelos.csv", header = TRUE, sep = ",") seq <- sample(1:nrow(cogu), as.integer(nrow(cogu)*0.3)) seq2 <- sampl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pustejovsky.R \name{dicho.d.r} \alias{dicho.d.r} \title{cohen's d from dichotomizing/extreme group design to r} \usage{ dicho.d.r(d, p1, p2, n1, n2, dir) } \arguments{ \item{d}{cohen's d} \item{p1}{cutoff percentile for group 1 (sample-based...
/man/dicho.d.r.Rd
no_license
phoebehlam/michaela
R
false
true
1,120
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pustejovsky.R \name{dicho.d.r} \alias{dicho.d.r} \title{cohen's d from dichotomizing/extreme group design to r} \usage{ dicho.d.r(d, p1, p2, n1, n2, dir) } \arguments{ \item{d}{cohen's d} \item{p1}{cutoff percentile for group 1 (sample-based...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directors.R \name{guess_init_k} \alias{guess_init_k} \title{Guess initial \code{k} based on threshold and \code{p}} \usage{ guess_init_k(.partition_step) } \arguments{ \item{.partition_step}{a \code{partition_step} object} } \value{ an intege...
/man/guess_init_k.Rd
permissive
USCbiostats/partition
R
false
true
414
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directors.R \name{guess_init_k} \alias{guess_init_k} \title{Guess initial \code{k} based on threshold and \code{p}} \usage{ guess_init_k(.partition_step) } \arguments{ \item{.partition_step}{a \code{partition_step} object} } \value{ an intege...
library(shiny) BMI<-function(weight,height) {(weight*0.45)/((height*0.025)^2)} diagnostic_f<-function(weight,height){ BMI_value<-(weight*0.45)/((height*0.025)^2) ifelse(BMI_value<18.5,"underweight",ifelse(BMI_value<25,"normal weight",ifelse(BMI_value<30,"overweight","obesity"))) } shinyServer( function(input,...
/server.R
no_license
ambika03maruthi/DevelopingDataProducts
R
false
false
611
r
library(shiny) BMI<-function(weight,height) {(weight*0.45)/((height*0.025)^2)} diagnostic_f<-function(weight,height){ BMI_value<-(weight*0.45)/((height*0.025)^2) ifelse(BMI_value<18.5,"underweight",ifelse(BMI_value<25,"normal weight",ifelse(BMI_value<30,"overweight","obesity"))) } shinyServer( function(input,...
################################################### ### Stepwat: CSV reading and sorting ### ### Author: Trace E Martyn ### ### Date: 12.14.2015 ### ################################################### ################################################### ## Read...
/CSV.read_SORTING.STEPWAT.R
no_license
DrylandEcology/StepWat_R_Wrapper
R
false
false
11,172
r
################################################### ### Stepwat: CSV reading and sorting ### ### Author: Trace E Martyn ### ### Date: 12.14.2015 ### ################################################### ################################################### ## Read...
library(FreeSortR) ### Name: SortingPartition ### Title: Creates an object of class 'SortingPartition' ### Aliases: SortingPartition ### ** Examples data(AromaSort) Aroma<-SortingPartition(AromaSort) show(Aroma)
/data/genthat_extracted_code/FreeSortR/examples/SortingPartition.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
225
r
library(FreeSortR) ### Name: SortingPartition ### Title: Creates an object of class 'SortingPartition' ### Aliases: SortingPartition ### ** Examples data(AromaSort) Aroma<-SortingPartition(AromaSort) show(Aroma)
library(plyr) #Setting appropriate data path setwd("C:/Users/Cristina/Documents/DataScience/Module 3/UCI HAR Dataset") path<-getwd() #Reading Files #Activity Files ActTrain<-read.table(file.path(path,"train", "Y_train.txt"), header=FALSE) ActTest<-read.table(file.path(path,"test", "y_test.txt"), header=FALSE) ActNames...
/run_analysis.R
no_license
acgadala/GettingCleaningData
R
false
false
2,151
r
library(plyr) #Setting appropriate data path setwd("C:/Users/Cristina/Documents/DataScience/Module 3/UCI HAR Dataset") path<-getwd() #Reading Files #Activity Files ActTrain<-read.table(file.path(path,"train", "Y_train.txt"), header=FALSE) ActTest<-read.table(file.path(path,"test", "y_test.txt"), header=FALSE) ActNames...
###################################### # # # Visualizing host species phylogeny # # and creating distance matrix # # # ###################################### setwd("C:/Users/Brody/Desktop/Murre spp. Population Genomics and Conservatio...
/tree.R
no_license
KatherineDuchesneau/Endophyte_project
R
false
false
2,243
r
###################################### # # # Visualizing host species phylogeny # # and creating distance matrix # # # ###################################### setwd("C:/Users/Brody/Desktop/Murre spp. Population Genomics and Conservatio...
# Simulations to ask how many mosquitoes would need to be sampled # to allow a given difference in age structure between two populations # (e.g. pre- and post-intervention) to be detected, when age-class is # inferred by the the MIRS-CNN method. The effect of enriching the training # set of lab-reared mosquitoes usin...
/code/Power analyses/MIRS_AgeStructure_PowerSim_v05.R
permissive
SimonAB/DL-MIRS_Siria_et_al
R
false
false
14,437
r
# Simulations to ask how many mosquitoes would need to be sampled # to allow a given difference in age structure between two populations # (e.g. pre- and post-intervention) to be detected, when age-class is # inferred by the the MIRS-CNN method. The effect of enriching the training # set of lab-reared mosquitoes usin...
#' @export insert_query <- function(conn, ems_name, db_id, data_file=NULL) { obj <- list() class(obj) <- 'InsertQuery' # Instantiating other objects obj$connection <- conn obj$ems <- ems(conn) obj$ems_id <- get_id(obj$ems, ems_name) obj$db_id <- db_id # object data ...
/R/db_create.R
permissive
ge-flight-analytics/Rems
R
false
false
4,489
r
#' @export insert_query <- function(conn, ems_name, db_id, data_file=NULL) { obj <- list() class(obj) <- 'InsertQuery' # Instantiating other objects obj$connection <- conn obj$ems <- ems(conn) obj$ems_id <- get_id(obj$ems, ems_name) obj$db_id <- db_id # object data ...
####################################### # COVID-19 estimated infections # correcting for incomplete testing and # imperfect test accuracy # Plot of COVID-19 cumulative number of infections # distribution from simulation ####################################### rm(list=ls()) source(paste0(here::here(), "/0-config.R")) ...
/covid19-infections-NatureComms/3-figure-table-scripts/5-fig-density-state.R
no_license
meahmadi/covid-death-per-incidence
R
false
false
3,809
r
####################################### # COVID-19 estimated infections # correcting for incomplete testing and # imperfect test accuracy # Plot of COVID-19 cumulative number of infections # distribution from simulation ####################################### rm(list=ls()) source(paste0(here::here(), "/0-config.R")) ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/group_by_xdf.R \name{groups.RxFileData} \alias{groups.RxFileData} \alias{groups.grouped_tbl_xdf} \title{Get the groups for a file data source, or a tbl wrapping an Xdf file} \usage{ \method{groups}{RxFileData}(x) \method{groups}{grou...
/man/groups.Rd
no_license
esparza83/dplyrXdf
R
false
false
624
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/group_by_xdf.R \name{groups.RxFileData} \alias{groups.RxFileData} \alias{groups.grouped_tbl_xdf} \title{Get the groups for a file data source, or a tbl wrapping an Xdf file} \usage{ \method{groups}{RxFileData}(x) \method{groups}{grou...
rm(list=ls()) #################################################################################################### setwd("/gpfs/group/kzk10/default/private/hydrocalib/SGrove/famos/Official_Fast/") library(snow);library(Rmpi);library(doParallel);library(foreach) ens<-nprocs <-39 mp_type = "MPI" # PSOCK or MPI cl <- para...
/Official_Fast/run/precalibration/genInitialSamples.R
no_license
benee55/SharmaEtAl22
R
false
false
1,757
r
rm(list=ls()) #################################################################################################### setwd("/gpfs/group/kzk10/default/private/hydrocalib/SGrove/famos/Official_Fast/") library(snow);library(Rmpi);library(doParallel);library(foreach) ens<-nprocs <-39 mp_type = "MPI" # PSOCK or MPI cl <- para...
library(data.table) library(xgboost) #----------------------------------------------------------------# # Data loading #----------------------------------------------------------------# #Train - test data path.code = "C:/documents/xq.do/Desktop/Kaggle/Zillow_House_Price_Data/" train = setDT(...
/Code/7_Xgboost/7_XGB_with_zoning.R
no_license
metariat/Zillow_House_Price
R
false
false
3,412
r
library(data.table) library(xgboost) #----------------------------------------------------------------# # Data loading #----------------------------------------------------------------# #Train - test data path.code = "C:/documents/xq.do/Desktop/Kaggle/Zillow_House_Price_Data/" train = setDT(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hash_sentiment_jockers_rinker.R \docType{data} \name{hash_sentiment_jockers_rinker} \alias{hash_sentiment_jockers_rinker} \title{Combined Jockers & Rinker Polarity Lookup Table} \format{A data frame with 11,710 rows and 2 variables} \usage{ d...
/trinker-lexicon-4c5e22b/man/hash_sentiment_jockers_rinker.Rd
no_license
pratyushaj/abusive-language-online
R
false
true
978
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hash_sentiment_jockers_rinker.R \docType{data} \name{hash_sentiment_jockers_rinker} \alias{hash_sentiment_jockers_rinker} \title{Combined Jockers & Rinker Polarity Lookup Table} \format{A data frame with 11,710 rows and 2 variables} \usage{ d...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/csv.R \name{getenumlist} \alias{getenumlist} \title{return a list matching vcdb ordering and length with requested object} \usage{ getenumlist(veris, enum) } \arguments{ \item{veris}{a verisr object} \item{enum}{the field to count} }...
/man/getenumlist.Rd
no_license
sajidrahman/verisr
R
false
false
678
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/csv.R \name{getenumlist} \alias{getenumlist} \title{return a list matching vcdb ordering and length with requested object} \usage{ getenumlist(veris, enum) } \arguments{ \item{veris}{a verisr object} \item{enum}{the field to count} }...
library(rtracklayer) library(dplyr) ## Read the refGene table for hg19 ref <- read.table("raw_data/refGene.txt",header=F,stringsAsFactors=F) names(ref) <- c("bin","id","chr","strand","txn.start","txn.end","cds.start","cds.end", "n.exons","exon.starts","exon.ends","score","symbol","x","xx","exon.frame")...
/build_database.R
no_license
hypercompetent/quadrupexeR
R
false
false
2,413
r
library(rtracklayer) library(dplyr) ## Read the refGene table for hg19 ref <- read.table("raw_data/refGene.txt",header=F,stringsAsFactors=F) names(ref) <- c("bin","id","chr","strand","txn.start","txn.end","cds.start","cds.end", "n.exons","exon.starts","exon.ends","score","symbol","x","xx","exon.frame")...
##install.packages(c("plyr", "dplyr", "reshape2")) library(plyr) library(dplyr) library(reshape2) ##read meta data features <- read.table("data/features.txt") activityLabels <- read.table("data/activity_labels.txt") names(activityLabels) <- c("activity", "activitylong") ##read test data xtest <- read.table("data/test...
/run_analysis.R
no_license
rrj221/getting_cleaning_data_project
R
false
false
2,120
r
##install.packages(c("plyr", "dplyr", "reshape2")) library(plyr) library(dplyr) library(reshape2) ##read meta data features <- read.table("data/features.txt") activityLabels <- read.table("data/activity_labels.txt") names(activityLabels) <- c("activity", "activitylong") ##read test data xtest <- read.table("data/test...
assert_raw <- function(x, name = deparse(substitute(x))) { if (!is.raw(x)) { stop(sprintf("%s must be raw", name), call.=FALSE) } }
/R/util_assert.R
no_license
richfitz/crater
R
false
false
140
r
assert_raw <- function(x, name = deparse(substitute(x))) { if (!is.raw(x)) { stop(sprintf("%s must be raw", name), call.=FALSE) } }
#' X11 colors and hexadecimal color values #' #' Create a data frame containing information on X11 colors and their #' corresponding hexadecimal color values. #' @export x11_hex <- function() { x11_name <- c( 'aliceblue', 'antiquewhite', 'antiquewhite1', 'antiquewhite2', 'antiquewhite3', 'antiquewhite4', ...
/R/x11_hex.R
permissive
vnijs/DiagrammeR
R
false
false
16,730
r
#' X11 colors and hexadecimal color values #' #' Create a data frame containing information on X11 colors and their #' corresponding hexadecimal color values. #' @export x11_hex <- function() { x11_name <- c( 'aliceblue', 'antiquewhite', 'antiquewhite1', 'antiquewhite2', 'antiquewhite3', 'antiquewhite4', ...
## Hallmann 2017 setwd("~/Documents/Uni/Umwi/M.sc./Repro") load("full_basic") library(R2jags) library(RCurl) # used for loading data from github library(ggplot2) library(dplyr) library(tidyr) library(purrr) # ---- Load ---- # Read the data url_1 <- getURL("https://raw.githubusercontent.com/leonthoma/Repro/master/Ha...
/hallmann_repro_leon_final.R
no_license
leonthoma/Repro
R
false
false
13,604
r
## Hallmann 2017 setwd("~/Documents/Uni/Umwi/M.sc./Repro") load("full_basic") library(R2jags) library(RCurl) # used for loading data from github library(ggplot2) library(dplyr) library(tidyr) library(purrr) # ---- Load ---- # Read the data url_1 <- getURL("https://raw.githubusercontent.com/leonthoma/Repro/master/Ha...
library(testthat) library(FarsKarol) library(dplyr) library(readr) library(tidyr) library(magrittr) library(graphics) library(maps) test_check("FarsKarol") test_that("Make filename test1", { expect_equal(make_filename(2013), "accident_2013.csv.bz2") }) test_that("Make filename test2", { exp...
/tests/testthat.R
permissive
Karol-sandoval/FarsKarol
R
false
false
381
r
library(testthat) library(FarsKarol) library(dplyr) library(readr) library(tidyr) library(magrittr) library(graphics) library(maps) test_check("FarsKarol") test_that("Make filename test1", { expect_equal(make_filename(2013), "accident_2013.csv.bz2") }) test_that("Make filename test2", { exp...
# Created on # Course work: # @author: # Source: val1 = c(7, 9.5, 11,4, 8.5) val2 = c(23, 6, 7.8, 4, 12) val3 = c(4, 4.5, 6, 7.3, 3) jpeg(file = "sample_multiple_lines.jpg") plot(val1,type = 'o', col = "red", xlab = "month", ylab = "rainfall", main = "rainfall chart") lines(val2,type = 'o', col = "blue") lines(va...
/chaaya/multiple_line_graph.r
no_license
tactlabs/r-samples
R
false
false
350
r
# Created on # Course work: # @author: # Source: val1 = c(7, 9.5, 11,4, 8.5) val2 = c(23, 6, 7.8, 4, 12) val3 = c(4, 4.5, 6, 7.3, 3) jpeg(file = "sample_multiple_lines.jpg") plot(val1,type = 'o', col = "red", xlab = "month", ylab = "rainfall", main = "rainfall chart") lines(val2,type = 'o', col = "blue") lines(va...
## Tests for split select weights library(rangerts) context("ranger_splitweights") ## Tests test_that("split select weights work", { expect_silent(ranger(Species ~ ., iris, num.trees = 5, split.select.weights = c(0.1, 0.2, 0.3, 0.4))) expect_error(ranger(Species ~ ., iris, num.trees = 5, split.select.weights = c(...
/rangerts/tests/testthat/test_splitweights.R
no_license
BenjaminGoehry/BlocRF
R
false
false
1,136
r
## Tests for split select weights library(rangerts) context("ranger_splitweights") ## Tests test_that("split select weights work", { expect_silent(ranger(Species ~ ., iris, num.trees = 5, split.select.weights = c(0.1, 0.2, 0.3, 0.4))) expect_error(ranger(Species ~ ., iris, num.trees = 5, split.select.weights = c(...
#' Generate Operating Characteristics to Find the Optimal Biological Dose #' #' This function generates operating characteristics to find the optimal biological dose (OBD). #' #' @param toxicity.low The upper boundary for the low toxicity interval. #' @param toxicity.moderate The upper boundary for the moderate toxi...
/R/get.oc.obd.kb.R
no_license
hongyingsun1101/KEYBOARDR
R
false
false
12,623
r
#' Generate Operating Characteristics to Find the Optimal Biological Dose #' #' This function generates operating characteristics to find the optimal biological dose (OBD). #' #' @param toxicity.low The upper boundary for the low toxicity interval. #' @param toxicity.moderate The upper boundary for the moderate toxi...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/flashmatrix.R \name{fm.basic.op} \alias{fm.basic.op} \alias{fm.get.basic.op} \alias{fm.get.basic.uop} \alias{fm.init.basic.op} \title{The basic operators supported by FlashMatrix.} \usage{ fm.get.basic.op(name) fm.get.basic.uop(name)...
/Rpkg/man/fm.basic.op.Rd
permissive
zheng-da/FlashX
R
false
false
3,507
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/flashmatrix.R \name{fm.basic.op} \alias{fm.basic.op} \alias{fm.get.basic.op} \alias{fm.get.basic.uop} \alias{fm.init.basic.op} \title{The basic operators supported by FlashMatrix.} \usage{ fm.get.basic.op(name) fm.get.basic.uop(name)...
inputPath <- commandArgs()[5]; outputPath <- commandArgs()[6]; tmp <- scan(inputPath, sep="\t") num <- length(tmp) / 4 input <- matrix(tmp, 4, num) rate <- input[4,] rate <- rate / mean(rate, na.rm=TRUE) na_idx <- ( is.na(rate) ) rate[na_idx] <- 0 bins=c(1,2) pdf(file=outputPath, height=480/72, width=480/72) plot(r...
/toil_cnacs/data/cnacs/subscript_target/plotGC_wga.R
permissive
papaemmelab/toil_cnacs
R
false
false
719
r
inputPath <- commandArgs()[5]; outputPath <- commandArgs()[6]; tmp <- scan(inputPath, sep="\t") num <- length(tmp) / 4 input <- matrix(tmp, 4, num) rate <- input[4,] rate <- rate / mean(rate, na.rm=TRUE) na_idx <- ( is.na(rate) ) rate[na_idx] <- 0 bins=c(1,2) pdf(file=outputPath, height=480/72, width=480/72) plot(r...
# In R, a matrix is a vector that has two additional attributes: # * Number of rows # * Number of columns # # As with vectors, every element of a matrix must be of the same _mode_; # either purely numeric, or purely text, etc. # # Creating a matrix from a vector # =============== # # One way to create a matrix is to...
/Lectures/Lecture 6 - Matrices.R
no_license
senanarci/CMPE140
R
false
false
6,840
r
# In R, a matrix is a vector that has two additional attributes: # * Number of rows # * Number of columns # # As with vectors, every element of a matrix must be of the same _mode_; # either purely numeric, or purely text, etc. # # Creating a matrix from a vector # =============== # # One way to create a matrix is to...
testlist <- list(A = structure(c(2.02410200510026e-79, 0, 0, 0), .Dim = c(2L, 2L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613112779-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
187
r
testlist <- list(A = structure(c(2.02410200510026e-79, 0, 0, 0), .Dim = c(2L, 2L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "churn") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn = makeLearner("clas...
/models/openml_churn/classification_class/bc69e734f17db34a6aa14082d8fe8d9e/code.R
no_license
lukaszbrzozowski/CaseStudies2019S
R
false
false
718
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "churn") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn = makeLearner("clas...
### Practical 1 ### #install.packages("reshape") library(ggplot2) library(plyr) library(rms) library(MASS) library(reshape) library(lmtest) # You might need to set your working directory here smart <- readRDS(file= "SMARTs_P1.rds") class(smart) # This tells us the class/data type of the object smart (hop...
/Practical 1 rstudio.R
no_license
David-A-Jenkins/HDRUK-Turing-immersion-week
R
false
false
6,785
r
### Practical 1 ### #install.packages("reshape") library(ggplot2) library(plyr) library(rms) library(MASS) library(reshape) library(lmtest) # You might need to set your working directory here smart <- readRDS(file= "SMARTs_P1.rds") class(smart) # This tells us the class/data type of the object smart (hop...
############################################# # Bolinger Bands indicator and signal # calculating 3 bands(upper,lower,middle) # observing to which one price is the closest # and deviation from this band ############################################# BBands = function(dataset1,ten,period){ for(i in 1:nrow(dataset1)){ ...
/TestingAndOptimalization/indicators/BBands.R
no_license
LukasDombrovsky/StockPredict
R
false
false
1,569
r
############################################# # Bolinger Bands indicator and signal # calculating 3 bands(upper,lower,middle) # observing to which one price is the closest # and deviation from this band ############################################# BBands = function(dataset1,ten,period){ for(i in 1:nrow(dataset1)){ ...
library(shiny) library(shinydashboard) library(shinyWidgets) library(shinyFeedback) groups <- c( "Group 1" = "group1", "Group 2" = "group2", "Group 3" = "group3", "Group 4" = "group4", "Group 5" = "group5" ) agegroups <- c( "< 1 year old" = "g1", "1 - 5 years old" = "g2", "5 - 10 years old" = "g3", ...
/ui.R
permissive
GrzegorzMika/Bayesian-Stock-Management
R
false
false
5,561
r
library(shiny) library(shinydashboard) library(shinyWidgets) library(shinyFeedback) groups <- c( "Group 1" = "group1", "Group 2" = "group2", "Group 3" = "group3", "Group 4" = "group4", "Group 5" = "group5" ) agegroups <- c( "< 1 year old" = "g1", "1 - 5 years old" = "g2", "5 - 10 years old" = "g3", ...
### Quiz 2 setwd("C:/Users/jeffthatcher/Cloud Drive/RRepos/GetCleanData") ## Question 1 library(httr) require(httpuv) require(jsonlite) # 1. Find OAuth settings for github: # http://developer.github.com/v3/oauth/ oauth_endpoints("github") # 2. Register an application at https://github.com/settings/applications # ...
/Quiz_2.R
no_license
nasim751/GetAndCleanData
R
false
false
2,672
r
### Quiz 2 setwd("C:/Users/jeffthatcher/Cloud Drive/RRepos/GetCleanData") ## Question 1 library(httr) require(httpuv) require(jsonlite) # 1. Find OAuth settings for github: # http://developer.github.com/v3/oauth/ oauth_endpoints("github") # 2. Register an application at https://github.com/settings/applications # ...
#' Trabaja con data de los bancos de Peru. Creado por BEST #' #' @name SBSR #' @docType package NULL #' Base de datos para trabajar data de los indicadores financieros de los bancos locales. #' #' Base de datos para trabajar data de los indicadores financieros de los bancos locales. #' #' @docType data #' @keywords d...
/R/SBSR.R
permissive
cRistiancec/SBSR
R
false
false
473
r
#' Trabaja con data de los bancos de Peru. Creado por BEST #' #' @name SBSR #' @docType package NULL #' Base de datos para trabajar data de los indicadores financieros de los bancos locales. #' #' Base de datos para trabajar data de los indicadores financieros de los bancos locales. #' #' @docType data #' @keywords d...
#' Add Correlates of War direct contiguity information to a dyad-year or state-year data frame #' #' @description \code{add_contiguity()} allows you to add Correlates of War contiguity #' data to a dyad-year or state-year data frame. #' #' @return \code{add_contiguity()} takes a dyad-year data frame and adds informatio...
/R/add_contiguity.R
no_license
Louis8102/peacesciencer
R
false
false
4,620
r
#' Add Correlates of War direct contiguity information to a dyad-year or state-year data frame #' #' @description \code{add_contiguity()} allows you to add Correlates of War contiguity #' data to a dyad-year or state-year data frame. #' #' @return \code{add_contiguity()} takes a dyad-year data frame and adds informatio...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model2netcdf.JULES.R \name{model2netcdf.JULES} \alias{model2netcdf.JULES} \title{Code to convert JULES output into netCDF format} \usage{ model2netcdf.JULES(outdir) } \arguments{ \item{outdir}{Location of model output} } \description{ Convert...
/models/jules/man/model2netcdf.JULES.Rd
permissive
Viskari/pecan
R
false
true
386
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model2netcdf.JULES.R \name{model2netcdf.JULES} \alias{model2netcdf.JULES} \title{Code to convert JULES output into netCDF format} \usage{ model2netcdf.JULES(outdir) } \arguments{ \item{outdir}{Location of model output} } \description{ Convert...
# This is for Coursera - Week 3 - Course Project # Assignment to get and clean data collected on 30 subjects doing 6 different activities # Of those 30, 70% were selected for training (the "train" files) and 30% as test (the "test" files) # Refer to the README.txt for further explanation. # First part - Reading all fi...
/run_analysis.R
no_license
problemsny/Coursera-Week3-CourseProject
R
false
false
1,749
r
# This is for Coursera - Week 3 - Course Project # Assignment to get and clean data collected on 30 subjects doing 6 different activities # Of those 30, 70% were selected for training (the "train" files) and 30% as test (the "test" files) # Refer to the README.txt for further explanation. # First part - Reading all fi...
skip_on_cran() test_that("tbl_summary", { expect_error(tbl_summary(trial) %>% as_flex_table(), NA) expect_warning(tbl_summary(trial) %>% as_flex_table(), NA) expect_error( tbl_summary(trial[c("trt", "age")]) %>% modify_table_styling(columns = label, footnote = "test footnote", rows = variable == "age...
/tests/testthat/test-as_flex_table.R
permissive
mtysar/gtsummary
R
false
false
2,021
r
skip_on_cran() test_that("tbl_summary", { expect_error(tbl_summary(trial) %>% as_flex_table(), NA) expect_warning(tbl_summary(trial) %>% as_flex_table(), NA) expect_error( tbl_summary(trial[c("trt", "age")]) %>% modify_table_styling(columns = label, footnote = "test footnote", rows = variable == "age...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/formula.R \name{combine_terms} \alias{combine_terms} \title{Combine model term sub-matrices} \usage{ combine_terms(x) } \description{ Combine model term sub-matrices }
/man/combine_terms.Rd
no_license
sakrejda/hierarchy
R
false
true
246
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/formula.R \name{combine_terms} \alias{combine_terms} \title{Combine model term sub-matrices} \usage{ combine_terms(x) } \description{ Combine model term sub-matrices }
/Data_prep.R
no_license
KasperEinarson/Statistical-analysis-and-deep-learning-methods-for-pattern-exploration-in-pharmacokinetic-profiles
R
false
false
12,846
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/servicemanagement_objects.R \name{ConfigChange} \alias{ConfigChange} \title{ConfigChange Object} \usage{ ConfigChange(newValue = NULL, changeType = NULL, element = NULL, oldValue = NULL, advices = NULL) } \arguments{ \item{newValue}{Value o...
/googleservicemanagementv1.auto/man/ConfigChange.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,106
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/servicemanagement_objects.R \name{ConfigChange} \alias{ConfigChange} \title{ConfigChange Object} \usage{ ConfigChange(newValue = NULL, changeType = NULL, element = NULL, oldValue = NULL, advices = NULL) } \arguments{ \item{newValue}{Value o...
#' ############################################################################# #' #' Serial Tempering Diagnostics #' #' Note: First, load the RData generated by serial tempering runs #' #' See also: #' lda_fgs_st_hs_synth_h25.R --- uses a synthetic dataset #' lda_fgs_st_hs_synth_h22.R --- uses a synthetic da...
/demo/lda_fgs_st_hs_diagnostics.R
permissive
clintpgeorge/ldamcmc
R
false
false
2,490
r
#' ############################################################################# #' #' Serial Tempering Diagnostics #' #' Note: First, load the RData generated by serial tempering runs #' #' See also: #' lda_fgs_st_hs_synth_h25.R --- uses a synthetic dataset #' lda_fgs_st_hs_synth_h22.R --- uses a synthetic da...
######################################################################################### # Prepared for Gabor's Data Analysis # # Data Analysis for Business, Economics, and Policy # by Gabor Bekes and Gabor Kezdi # Cambridge University Press 2021 # # gabors-data-analysis.com # # License: Free to share, modify and us...
/ch18-case-shiller-la/ch18-ts-pred-homeprices.R
no_license
LIKE4986/da_case_studies
R
false
false
20,794
r
######################################################################################### # Prepared for Gabor's Data Analysis # # Data Analysis for Business, Economics, and Policy # by Gabor Bekes and Gabor Kezdi # Cambridge University Press 2021 # # gabors-data-analysis.com # # License: Free to share, modify and us...
\name{key_merge} \alias{key_merge} \title{Merge Demographic Information with Person/Text Transcript} \usage{ key_merge(transcript.df, key.df, common.column = NULL, defualt.arrange = TRUE) } \arguments{ \item{transcript.df}{The text/person transcript dataframe} \item{key.df}{The demographic dataframe.} \...
/man/key_merge.Rd
no_license
trinker/qdap2
R
false
false
1,067
rd
\name{key_merge} \alias{key_merge} \title{Merge Demographic Information with Person/Text Transcript} \usage{ key_merge(transcript.df, key.df, common.column = NULL, defualt.arrange = TRUE) } \arguments{ \item{transcript.df}{The text/person transcript dataframe} \item{key.df}{The demographic dataframe.} \...
# This function takes an input n, and simulates the first attempt to blow out n candles blow_n_candles_once = function(n) { # returns a random number between 1 and n inclusive return(sample(1:n, 1)) } # This function takes an input n and returns the number of attempts to blow out n candles # assuming that each blo...
/candles-ke.R
no_license
annieke/r-experiments
R
false
false
2,155
r
# This function takes an input n, and simulates the first attempt to blow out n candles blow_n_candles_once = function(n) { # returns a random number between 1 and n inclusive return(sample(1:n, 1)) } # This function takes an input n and returns the number of attempts to blow out n candles # assuming that each blo...
library(readr) library(countrycode) data_csv <- as.data.frame(read_csv("C:/Users/Maxime Lacroix/Downloads/data_csv.csv")) head(data_csv) data_csv$continent <- factor(countrycode(sourcevar = data_csv[, "Country Code"], origin = "iso3c", destinati...
/Présentation_1/code_base.R
no_license
maximeglacroix/consul_pres
R
false
false
721
r
library(readr) library(countrycode) data_csv <- as.data.frame(read_csv("C:/Users/Maxime Lacroix/Downloads/data_csv.csv")) head(data_csv) data_csv$continent <- factor(countrycode(sourcevar = data_csv[, "Country Code"], origin = "iso3c", destinati...
#' Validating new dataset #' #' @param dataset A expression dataset to validate. Genes in rows and samples in #' columns. Gene names should be in 'symbol' format. It can be ExpressionSet, #' SummarizedExperiment, RangedSummarizedExperiment, or matrix. #' @param avgLoading A matrix with genes by RAVs. #' @param method A...
/R/validate.R
no_license
neelsoumya/GenomicSuperSignature
R
false
false
6,941
r
#' Validating new dataset #' #' @param dataset A expression dataset to validate. Genes in rows and samples in #' columns. Gene names should be in 'symbol' format. It can be ExpressionSet, #' SummarizedExperiment, RangedSummarizedExperiment, or matrix. #' @param avgLoading A matrix with genes by RAVs. #' @param method A...
b1 = 0 b2 = -0.8 set.seed(002) ar2 = arima.sim(list(ar = c(b1, b2)), n = 1000, sd = 2) acorr = acf(ar2, type = 'correlation', lag.max = 24) acorr plot(acorr, xlab = 'Lag', ylab = 'ACF(CORR)', main = 'Autocorrelation of the AR(2)') points(0, 1) for (i in (1: 24)) { if (i %% 2 == 1) {points(i, 0)} els...
/100319TA/p44a.R
no_license
ding05/time_series
R
false
false
562
r
b1 = 0 b2 = -0.8 set.seed(002) ar2 = arima.sim(list(ar = c(b1, b2)), n = 1000, sd = 2) acorr = acf(ar2, type = 'correlation', lag.max = 24) acorr plot(acorr, xlab = 'Lag', ylab = 'ACF(CORR)', main = 'Autocorrelation of the AR(2)') points(0, 1) for (i in (1: 24)) { if (i %% 2 == 1) {points(i, 0)} els...
##path analysis prep## library(tidyr) library(data.table) library(dplyr) ##generate list of candidate genes genes = read.csv("Spartobacteria_Tau_Matrix.csv") genes = as.data.frame(t(genes)) genes = setDT(genes, keep.rownames = TRUE)[] genes = genes[,c(1)] colnames(genes)[1] <- "Gene" genes = head(genes,-1...
/PathMatrix_GenerateCode_Family_T.R
no_license
lfuess/MicrobiomeMS
R
false
false
4,830
r
##path analysis prep## library(tidyr) library(data.table) library(dplyr) ##generate list of candidate genes genes = read.csv("Spartobacteria_Tau_Matrix.csv") genes = as.data.frame(t(genes)) genes = setDT(genes, keep.rownames = TRUE)[] genes = genes[,c(1)] colnames(genes)[1] <- "Gene" genes = head(genes,-1...
getwd() options(scipen = 999) #Importing the Dataset bank_data<-read.csv("Train_nyOWmfK.csv") View(bank_data) dim(bank_data) str(bank_data) View(sapply(bank_data , class)) names(bank_data) #Data Cleaning.Removing business unnecessary variables bank_data$ID<-NULL bank_data$DOB<-NULL bank_data$Lead_Crea...
/R_CaseStudy_Logistic_Regression_BANK_MARKETING/R_CaseStudy2_Logistic_Regression_BANK_MARKETING.R
no_license
ShikhaSharma98/R
R
false
false
7,962
r
getwd() options(scipen = 999) #Importing the Dataset bank_data<-read.csv("Train_nyOWmfK.csv") View(bank_data) dim(bank_data) str(bank_data) View(sapply(bank_data , class)) names(bank_data) #Data Cleaning.Removing business unnecessary variables bank_data$ID<-NULL bank_data$DOB<-NULL bank_data$Lead_Crea...
x <- seq(0, 20, 1) y<- 'hello world' require(mosaic) y <- pnorm(x, mean=10, sd=1) plot(x, y, type='l') mydata <- do(10) * rflip(50) mydata tally(~heads, data=mydata) tally(~tails, data=mydata)
/Oct30-mg.r
no_license
murthygorty/DataScientists9
R
false
false
196
r
x <- seq(0, 20, 1) y<- 'hello world' require(mosaic) y <- pnorm(x, mean=10, sd=1) plot(x, y, type='l') mydata <- do(10) * rflip(50) mydata tally(~heads, data=mydata) tally(~tails, data=mydata)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MHPropWithKStepNewton.R \name{MHPropWithKStepNewton} \alias{MHPropWithKStepNewton} \title{Metropolis–Hastings algorithm with K-step Newton method for the spline model.} \usage{ MHPropWithKStepNewton( param.cur, gradhess.fun.name, logpos...
/man/MHPropWithKStepNewton.Rd
no_license
kl-lab/fformpp
R
false
true
554
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MHPropWithKStepNewton.R \name{MHPropWithKStepNewton} \alias{MHPropWithKStepNewton} \title{Metropolis–Hastings algorithm with K-step Newton method for the spline model.} \usage{ MHPropWithKStepNewton( param.cur, gradhess.fun.name, logpos...
\name{oFSkm} \alias{oFSkm} \title{Objective Function (sum of cosines)...} \usage{oFSkm(X, C, CIdx)} \description{Objective Function (sum of cosines)} \value{sum of cosine-similarities.} \arguments{\item{X}{data matrix (row-wise vectors in unit length).} \item{C}{concept vectors as matrix (row-wise in unit length).} \it...
/man/oFSkm.Rd
permissive
yangkuoone/mvc
R
false
false
583
rd
\name{oFSkm} \alias{oFSkm} \title{Objective Function (sum of cosines)...} \usage{oFSkm(X, C, CIdx)} \description{Objective Function (sum of cosines)} \value{sum of cosine-similarities.} \arguments{\item{X}{data matrix (row-wise vectors in unit length).} \item{C}{concept vectors as matrix (row-wise in unit length).} \it...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setup_vars.R \name{setup_vars} \alias{setup_vars} \title{Set Up dracarys Variables} \usage{ setup_vars(x) } \arguments{ \item{x}{Path to \code{replay.json} file.} } \value{ A list with several elements pointing to DRAGEN output file names. } ...
/man/setup_vars.Rd
permissive
umccr/old_dracarys
R
false
true
631
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setup_vars.R \name{setup_vars} \alias{setup_vars} \title{Set Up dracarys Variables} \usage{ setup_vars(x) } \arguments{ \item{x}{Path to \code{replay.json} file.} } \value{ A list with several elements pointing to DRAGEN output file names. } ...
error.bar <- function(x, y, upper, lower=upper, length=0.1,...){ if(length(x) != length(y) | length(y) !=length(lower) | length(lower) != length(upper)) stop("vectors must be same length") arrows(x,y+upper, x, y, angle=90, code=1, length=length, ...) #text(x, y+upper, paste("n=", )) } pdf("ping_number_...
/bin/Manuscript_Figures/Fig1_mPing/ping_number_clean_hom_high_narrow.R
no_license
wangpanqiao/Transposition
R
false
false
1,454
r
error.bar <- function(x, y, upper, lower=upper, length=0.1,...){ if(length(x) != length(y) | length(y) !=length(lower) | length(lower) != length(upper)) stop("vectors must be same length") arrows(x,y+upper, x, y, angle=90, code=1, length=length, ...) #text(x, y+upper, paste("n=", )) } pdf("ping_number_...
# Ryan Woodbury # Tidy Tuesday # February 23, 2021 library(tidyverse) library(lubridate) theme_set(theme_light()) ## Get the data tuesdata <- tidytuesdayR::tt_load(2021, week = 9) employed <- tuesdata$employed earn <- tuesdata$earn ## quick summary ### employed data skimr::skim(employed) glimpse(employed) ### ear...
/Woodbury_2021_02_23_TT.R
no_license
rywood89/Tidy_Tuesday
R
false
false
2,274
r
# Ryan Woodbury # Tidy Tuesday # February 23, 2021 library(tidyverse) library(lubridate) theme_set(theme_light()) ## Get the data tuesdata <- tidytuesdayR::tt_load(2021, week = 9) employed <- tuesdata$employed earn <- tuesdata$earn ## quick summary ### employed data skimr::skim(employed) glimpse(employed) ### ear...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/template_download.R \name{allen_gene_template_download} \alias{allen_gene_template_download} \title{Download ABI gene templates} \usage{ allen_gene_template_download( age_dataset = c("adult", "P56", "P28", "P14", "P4", "E18.5", "E16.5", "E1...
/man/allen_gene_template_download.Rd
no_license
DJFernandes/ABIgeneRMINC
R
false
true
1,325
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/template_download.R \name{allen_gene_template_download} \alias{allen_gene_template_download} \title{Download ABI gene templates} \usage{ allen_gene_template_download( age_dataset = c("adult", "P56", "P28", "P14", "P4", "E18.5", "E16.5", "E1...
#' NYC Education (2000) #' #' Block-level New York City information about education and demographic characteristics (2000). Geographic units: 2010 Census blocks. #' #' Sf object, Projection 2203. NAD83 / New York Long Island (ftUS) #' #' @format An sf data frame with 2,216 rows, 56 variables, and a geometry column: #' ...
/R/nyceducation.R
permissive
spatialanalysis/geodaData
R
false
false
3,949
r
#' NYC Education (2000) #' #' Block-level New York City information about education and demographic characteristics (2000). Geographic units: 2010 Census blocks. #' #' Sf object, Projection 2203. NAD83 / New York Long Island (ftUS) #' #' @format An sf data frame with 2,216 rows, 56 variables, and a geometry column: #' ...
citation(package = "base", lib.loc = NULL) citation(package = "irr", lib.loc = NULL) citation(package = "psych", lib.loc = NULL) citation(package = "GPArotation", lib.loc = NULL) citation(package = "yhat", lib.loc = NULL)
/citations.R
no_license
EricLeingang/Personal-Essay-Project
R
false
false
221
r
citation(package = "base", lib.loc = NULL) citation(package = "irr", lib.loc = NULL) citation(package = "psych", lib.loc = NULL) citation(package = "GPArotation", lib.loc = NULL) citation(package = "yhat", lib.loc = NULL)
gaussSamp <- function(mu=matrix(0,nrow=dim(Sigma)[1]), Sigma, numSamps) { ## GAUSSSAMP Sample from a Gaussian with a given covariance. ## FORMAT ## DESC samples a given number of samples from a Gaussian with a ## given covariance matrix. ## ARG MU: the mean vector of the Gaussian to sample from. ## ARG Sigma : the co...
/gptk/R/gaussSamp.R
no_license
ingted/R-Examples
R
false
false
830
r
gaussSamp <- function(mu=matrix(0,nrow=dim(Sigma)[1]), Sigma, numSamps) { ## GAUSSSAMP Sample from a Gaussian with a given covariance. ## FORMAT ## DESC samples a given number of samples from a Gaussian with a ## given covariance matrix. ## ARG MU: the mean vector of the Gaussian to sample from. ## ARG Sigma : the co...
1.tmp <- c(4,6,3) # Create the vector rep(tmp,10) #Repeat the vector 10 times paste("fn",1:30,sep="") # paste 1 st and 2 nd argument 2. a. x<-c("Control", "Control", "Control", "Ear Removal", "Ear Removal", "Ear Rem oval", "Ear Removal", "Fake Ear Removal", "Fake Ear Removal", "Fake Ear Remov al", "Fake Ear Removal") ...
/1.r
no_license
vishugummani/cn1
R
false
false
4,897
r
1.tmp <- c(4,6,3) # Create the vector rep(tmp,10) #Repeat the vector 10 times paste("fn",1:30,sep="") # paste 1 st and 2 nd argument 2. a. x<-c("Control", "Control", "Control", "Ear Removal", "Ear Removal", "Ear Rem oval", "Ear Removal", "Fake Ear Removal", "Fake Ear Removal", "Fake Ear Remov al", "Fake Ear Removal") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{need} \alias{need} \title{Check if a package is installed and stop if not} \usage{ need(package) } \arguments{ \item{package}{a package name as a character string.} } \description{ If the package is not installed then the functi...
/man/need.Rd
permissive
jedwards24/edwards
R
false
true
827
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{need} \alias{need} \title{Check if a package is installed and stop if not} \usage{ need(package) } \arguments{ \item{package}{a package name as a character string.} } \description{ If the package is not installed then the functi...
library(plyr) # To manipulate data library(ggplot2) # To have ggplot2 graphic interface library(lattice) # To have Lattice graphic interface library(sp) library(rgdal) # To load "shapefiles" into R and use in conversions of spatial formats library(rgeos) # To use in geometrical operatio...
/Project_1004/Map Visualization/prediction.R
no_license
kimiliu1992/1004_Project
R
false
false
2,171
r
library(plyr) # To manipulate data library(ggplot2) # To have ggplot2 graphic interface library(lattice) # To have Lattice graphic interface library(sp) library(rgdal) # To load "shapefiles" into R and use in conversions of spatial formats library(rgeos) # To use in geometrical operatio...
rm(list=ls()) Sys.setlocale("LC_TIME", "English") #read the txt file h <- read.csv("C:/Users/lvizzini/Desktop/Coursera/exdata_data_household_power_consumption/household_power_consumption.txt", sep=";",dec=".", na.strings="?",stringsAsFactors=FALSE) #trasforming character in time h$d_t<-strptime(paste(h$Date, h$Time, ...
/Plot4.R
no_license
lvizzini/Exploratory-Data-Analysis
R
false
false
1,236
r
rm(list=ls()) Sys.setlocale("LC_TIME", "English") #read the txt file h <- read.csv("C:/Users/lvizzini/Desktop/Coursera/exdata_data_household_power_consumption/household_power_consumption.txt", sep=";",dec=".", na.strings="?",stringsAsFactors=FALSE) #trasforming character in time h$d_t<-strptime(paste(h$Date, h$Time, ...