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
# 1. Load data frame data_summary <- readRDS("../summarySCC_PM25.rds") data_source <- readRDS("../Source_Classification_Code.rds") # 2. Question: Compare emissions from motor vehicle sources in Baltimore City # with emissions from motor vehicle sources in Los Angeles County, California # (fips == "06037"). Which city ...
/plot6.R
no_license
Andygrammer/Coursera-Exploratory-Data-Analysis-FinalProject
R
false
false
1,187
r
# 1. Load data frame data_summary <- readRDS("../summarySCC_PM25.rds") data_source <- readRDS("../Source_Classification_Code.rds") # 2. Question: Compare emissions from motor vehicle sources in Baltimore City # with emissions from motor vehicle sources in Los Angeles County, California # (fips == "06037"). Which city ...
# > file written: Sat, 08 Dec 2018 11:17:17 +0100 # in this file, settings that are specific for a run on a dataset # gives path to output folder pipOutFold <- "OUTPUT_FOLDER/TCGAluad_wt_mutKRAS" # full path (starting with /mnt/...) # following format expected for the input # colnames =...
/INPUT_FILES/ENCSR444WCZ_A549_RANDOMMIDPOSSTRICT_40kb/run_settings_TCGAluad_wt_mutKRAS.R
no_license
marzuf/v2_Yuanlong_Cancer_HiC_data_TAD_DA_PIPELINE_INPUT_FILES
R
false
false
4,333
r
# > file written: Sat, 08 Dec 2018 11:17:17 +0100 # in this file, settings that are specific for a run on a dataset # gives path to output folder pipOutFold <- "OUTPUT_FOLDER/TCGAluad_wt_mutKRAS" # full path (starting with /mnt/...) # following format expected for the input # colnames =...
as.extentPolygon <- function(ext, prj, ID=NULL, plot=FALSE) # converts a raster extent object to a SpatialPolygons object (sp) { ext <- extent(ext) # in case a vector is supplied instead coords <- matrix(ncol=2, nrow=5) coords[1,] <- c(xmin(ext), ymin(ext)) # bottom-left coords[2,] <- c(xmin(ext), ymax(ext))...
/as.extentPolygon.R
permissive
gcsadovy/bfast
R
false
false
787
r
as.extentPolygon <- function(ext, prj, ID=NULL, plot=FALSE) # converts a raster extent object to a SpatialPolygons object (sp) { ext <- extent(ext) # in case a vector is supplied instead coords <- matrix(ncol=2, nrow=5) coords[1,] <- c(xmin(ext), ymin(ext)) # bottom-left coords[2,] <- c(xmin(ext), ymax(ext))...
library(dplyr) library(tibble) n_months = 12 months = formatC(1:n_months,width=2,format="d",flag="0") file_month_names = vector("list", n_months) for(k in 1:n_months) { infile <- paste("Data/Challenge\ Data/SET3/SET3_M",months[k],".CSV", sep = "") # infile <- paste("Data/Challenge Data/SET3/SET3_M",months[k],".CSV...
/sleeping_time.R
no_license
MaxPaurat/Malaria-and-Mobile-Phone-Data
R
false
false
6,345
r
library(dplyr) library(tibble) n_months = 12 months = formatC(1:n_months,width=2,format="d",flag="0") file_month_names = vector("list", n_months) for(k in 1:n_months) { infile <- paste("Data/Challenge\ Data/SET3/SET3_M",months[k],".CSV", sep = "") # infile <- paste("Data/Challenge Data/SET3/SET3_M",months[k],".CSV...
# Launch the ShinyApp (Do not remove this comment) # To deploy, run: rsconnect::deployApp() # Or use the blue button on top of this file pkgload::load_all(export_all = FALSE,helpers = FALSE,attach_testthat = FALSE) options( "golem.app.prod" = TRUE) whoapp::run_app() # add parameters here (if any) # Launch the ShinyApp...
/app.R
permissive
databrew/whoapp
R
false
false
897
r
# Launch the ShinyApp (Do not remove this comment) # To deploy, run: rsconnect::deployApp() # Or use the blue button on top of this file pkgload::load_all(export_all = FALSE,helpers = FALSE,attach_testthat = FALSE) options( "golem.app.prod" = TRUE) whoapp::run_app() # add parameters here (if any) # Launch the ShinyApp...
# load libraries library(tidyverse) gapminder <- read.csv("data/gapminder_data.csv") head(gapminder) # select examples gapminder_select <- select(gapminder, country, year, lifeExp, pop) head(gapminder_select) select(gapminder, country, year, lifeExp, pop) # pipes gapminder_select <- gapminder %>% select(., countr...
/script.R
no_license
UBC-R-Study-group/introRworkshop_Sept19
R
false
false
3,361
r
# load libraries library(tidyverse) gapminder <- read.csv("data/gapminder_data.csv") head(gapminder) # select examples gapminder_select <- select(gapminder, country, year, lifeExp, pop) head(gapminder_select) select(gapminder, country, year, lifeExp, pop) # pipes gapminder_select <- gapminder %>% select(., countr...
\alias{gtkPaperSizeGetWidth} \name{gtkPaperSizeGetWidth} \title{gtkPaperSizeGetWidth} \description{Gets the paper width of the \code{\link{GtkPaperSize}}, in units of \code{unit}.} \usage{gtkPaperSizeGetWidth(object, unit)} \arguments{ \item{\verb{object}}{a \code{\link{GtkPaperSize}} object} \item{\verb{unit}}{the un...
/RGtk2/man/gtkPaperSizeGetWidth.Rd
no_license
lawremi/RGtk2
R
false
false
473
rd
\alias{gtkPaperSizeGetWidth} \name{gtkPaperSizeGetWidth} \title{gtkPaperSizeGetWidth} \description{Gets the paper width of the \code{\link{GtkPaperSize}}, in units of \code{unit}.} \usage{gtkPaperSizeGetWidth(object, unit)} \arguments{ \item{\verb{object}}{a \code{\link{GtkPaperSize}} object} \item{\verb{unit}}{the un...
#################################################################################################################################### ### Filename: f2.R ### Description: Function for calculating the test statistic for one whole- and one subplot factor ### ### ### ########################################...
/R/f2.R
no_license
happma/HRM
R
false
false
4,693
r
#################################################################################################################################### ### Filename: f2.R ### Description: Function for calculating the test statistic for one whole- and one subplot factor ### ### ### ########################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{vswitch} \alias{vswitch} \title{A vectorized version of switch} \usage{ vswitch(EXPR, ...) } \arguments{ \item{EXPR}{As in \code{switch}, an expression which evaluated to a number or character string. However, in \code{vswitch}, ...
/man/vswitch.Rd
no_license
milanaorlova723/brocks
R
false
true
826
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{vswitch} \alias{vswitch} \title{A vectorized version of switch} \usage{ vswitch(EXPR, ...) } \arguments{ \item{EXPR}{As in \code{switch}, an expression which evaluated to a number or character string. However, in \code{vswitch}, ...
#' XIBD Locus Proportion Plot #' #' Plot the proportion of pairs IBD for each SNP across the genome. #' Annotation genes can be added to the plot and specific genes on interest can be highlighted. #' #' @param locus.proportions a data frame containing the proportion of pairs IBD at each SNP. #' See \code{value} descrip...
/step3_xIBD/XIBD/R/plot_locus_proportions.R
no_license
RJHFMSTR/PofO_inference
R
false
false
12,061
r
#' XIBD Locus Proportion Plot #' #' Plot the proportion of pairs IBD for each SNP across the genome. #' Annotation genes can be added to the plot and specific genes on interest can be highlighted. #' #' @param locus.proportions a data frame containing the proportion of pairs IBD at each SNP. #' See \code{value} descrip...
\name{CFA} \alias{CFA} \title{Rcmdr Confirmatory Factor Analysis Dialog} \description{ The CFA dialog is used to create and fit a confirmatory factor analysis model via the \code{\link[sem:specifyModel]{cfa}} and \code{\link[sem]{sem}} functions in the \pkg{sem} package. } \details{ Select two or more var...
/man/CFA.Rd
no_license
cran/Rcmdr
R
false
false
1,330
rd
\name{CFA} \alias{CFA} \title{Rcmdr Confirmatory Factor Analysis Dialog} \description{ The CFA dialog is used to create and fit a confirmatory factor analysis model via the \code{\link[sem:specifyModel]{cfa}} and \code{\link[sem]{sem}} functions in the \pkg{sem} package. } \details{ Select two or more var...
rm(list=ls()) library(sp) library(ncf) library(gstat) library(devtools) library(rpart) library(rpart.plot) library(Rcpp) library(classInt) library(RColorBrewer) library(methods) library(partykit) library(logging) basicConfig() path_base = "/sciclone/home00/geogdan/SimTests/" Sys.setenv("PKG_CXXFLAGS"="-fopenmp") Sys....
/demo/pySims.R
no_license
zjnsteven/SimTests
R
false
false
23,942
r
rm(list=ls()) library(sp) library(ncf) library(gstat) library(devtools) library(rpart) library(rpart.plot) library(Rcpp) library(classInt) library(RColorBrewer) library(methods) library(partykit) library(logging) basicConfig() path_base = "/sciclone/home00/geogdan/SimTests/" Sys.setenv("PKG_CXXFLAGS"="-fopenmp") Sys....
cnt <- c(69,68,70,71,73,71,74,69,70,73,69,70) height <- c(172,165,175,168,173,174,177,170,168,170,171,173) library(GGally) plot(cnt~height) cor.test(cnt, height, alternative = "two.sided") #상관계수의 값 # cor # 0.5264152 # 0을 포함한 신뢰구간 # -0.06804286 0.84502567 # 모집단의 상관계수는 유의하지않다. ##### # 상관분석가설·검정 # h0: = 0 # h1: !=...
/day8/example1.R
no_license
jee0nnii/DataITGirlsR
R
false
false
475
r
cnt <- c(69,68,70,71,73,71,74,69,70,73,69,70) height <- c(172,165,175,168,173,174,177,170,168,170,171,173) library(GGally) plot(cnt~height) cor.test(cnt, height, alternative = "two.sided") #상관계수의 값 # cor # 0.5264152 # 0을 포함한 신뢰구간 # -0.06804286 0.84502567 # 모집단의 상관계수는 유의하지않다. ##### # 상관분석가설·검정 # h0: = 0 # h1: !=...
prj.name <- "lsr" prj.import.state <- "done" prj.data.directory <- c("data") prj.graph.directory <- c("graph") prj.graphic.directory <- c("graphic") prj.library.directory <- c("library") prj.archive.directory <- c("archive") prj.r.directory <- c("r") pth.music.rdata <- sprintf("../%s/music.Rdata", prj.data.directory) ...
/leisure/config.lsr.R
no_license
jlopezsi/cmc
R
false
false
397
r
prj.name <- "lsr" prj.import.state <- "done" prj.data.directory <- c("data") prj.graph.directory <- c("graph") prj.graphic.directory <- c("graphic") prj.library.directory <- c("library") prj.archive.directory <- c("archive") prj.r.directory <- c("r") pth.music.rdata <- sprintf("../%s/music.Rdata", prj.data.directory) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/palette_dist.R \name{palette_dist} \alias{palette_dist} \title{Distance Between Colors} \usage{ palette_dist(x, cvd = NULL, severity = 1, metric = 2000) } \arguments{ \item{x}{A vector of hexadecimal color descriptions} \item{cvd}{A type of ...
/man/palette_dist.Rd
permissive
Nowosad/colorblindcheck
R
false
true
1,349
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/palette_dist.R \name{palette_dist} \alias{palette_dist} \title{Distance Between Colors} \usage{ palette_dist(x, cvd = NULL, severity = 1, metric = 2000) } \arguments{ \item{x}{A vector of hexadecimal color descriptions} \item{cvd}{A type of ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qPCR2fdata.R \name{qPCR2fdata} \alias{qPCR2fdata} \title{A helper function to convert amplification curve data to the fdata format.} \usage{ qPCR2fdata(data, preprocess = FALSE) } \arguments{ \item{data}{is a data set containing the amplifica...
/man/qPCR2fdata.Rd
permissive
anspiess/PCRedux
R
false
true
2,534
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qPCR2fdata.R \name{qPCR2fdata} \alias{qPCR2fdata} \title{A helper function to convert amplification curve data to the fdata format.} \usage{ qPCR2fdata(data, preprocess = FALSE) } \arguments{ \item{data}{is a data set containing the amplifica...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generics.R \name{method} \alias{method} \title{The biclustering algorithm used} \usage{ method(bcs) } \arguments{ \item{bcs}{A \code{\link{BiclusterStrategy-class}} object} } \value{ character string } \description{ Returns the name of the bi...
/man/method.Rd
no_license
jonalim/mfBiclust
R
false
true
507
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generics.R \name{method} \alias{method} \title{The biclustering algorithm used} \usage{ method(bcs) } \arguments{ \item{bcs}{A \code{\link{BiclusterStrategy-class}} object} } \value{ character string } \description{ Returns the name of the bi...
\name{MCholV} \alias{MCholV} \title{Multivariate Cholesky Volatility Model } \description{Use Cholesky decomposition to obtain multivariate volatility models } \usage{ MCholV(rtn, size = 36, lambda = 0.96, p = 0) } \arguments{ \item{rtn}{A T-by-k data matrix of a k-dimensional asset return series. } \item{size}{The...
/fuzzedpackages/MTS/man/MCholV.Rd
no_license
akhikolla/testpackages
R
false
false
1,168
rd
\name{MCholV} \alias{MCholV} \title{Multivariate Cholesky Volatility Model } \description{Use Cholesky decomposition to obtain multivariate volatility models } \usage{ MCholV(rtn, size = 36, lambda = 0.96, p = 0) } \arguments{ \item{rtn}{A T-by-k data matrix of a k-dimensional asset return series. } \item{size}{The...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/example3.R \docType{data} \name{example3.rat} \alias{example3.rat} \title{Example 3 of rating data with more assessors than assessed} \format{This dataframe has 7 rated persons, who are assessed by 10 raters. \describe{ \item{schoolid}...
/man/example3.rat.Rd
no_license
cran/SSrat
R
false
true
2,180
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/example3.R \docType{data} \name{example3.rat} \alias{example3.rat} \title{Example 3 of rating data with more assessors than assessed} \format{This dataframe has 7 rated persons, who are assessed by 10 raters. \describe{ \item{schoolid}...
#' @importFrom pins pin NULL
/R/aaa.R
permissive
datasketch/dspins
R
false
false
30
r
#' @importFrom pins pin NULL
library(frair) ### Name: bythotrephes ### Title: Bythotrephes Functional Response Data ### Aliases: bythotrephes ### Keywords: datasets ### ** Examples data(bythotrephes) str(bythotrephes) with(bythotrephes, plot(density, eaten, type='n', xlab='Density', ylab='No. Prey Eaten')) with(bythotrephes[bythotrephes$...
/data/genthat_extracted_code/frair/examples/bythotrephes.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
731
r
library(frair) ### Name: bythotrephes ### Title: Bythotrephes Functional Response Data ### Aliases: bythotrephes ### Keywords: datasets ### ** Examples data(bythotrephes) str(bythotrephes) with(bythotrephes, plot(density, eaten, type='n', xlab='Density', ylab='No. Prey Eaten')) with(bythotrephes[bythotrephes$...
args=(commandArgs(TRUE)) testFile = commandArgs()[7] basedir= commandArgs()[8] dir.create(basedir) library(devtools) install_github("wevanjohnson/ASSIGN") library(ASSIGN) library(foreach) library(sva) library(data.table) library(doParallel) library(doMC) registerDoMC(8) #library(BatchQC) #cl<-makeCluster(2) #register...
/Rmarkdowns_scripts/ASSIGN_run_full_version.R
permissive
mumtahena/bild_signatures
R
false
false
7,090
r
args=(commandArgs(TRUE)) testFile = commandArgs()[7] basedir= commandArgs()[8] dir.create(basedir) library(devtools) install_github("wevanjohnson/ASSIGN") library(ASSIGN) library(foreach) library(sva) library(data.table) library(doParallel) library(doMC) registerDoMC(8) #library(BatchQC) #cl<-makeCluster(2) #register...
#' This Script rprocesses UNSD census data #' #' #' #' @param work_directory inside the DATA repo, default is 'REP_UNSD/CENSUS' #' @param check for automation, return a warning file at the root, default is TRUE #' @return csv files compare with ilostat database ilo::init_ilo() ## parameters work_directory = "REP_EU...
/inst/doc/do/REP_EUROSTAT.SES_ANNUAL_functions.r
permissive
dbescond/iloData
R
false
false
57,424
r
#' This Script rprocesses UNSD census data #' #' #' #' @param work_directory inside the DATA repo, default is 'REP_UNSD/CENSUS' #' @param check for automation, return a warning file at the root, default is TRUE #' @return csv files compare with ilostat database ilo::init_ilo() ## parameters work_directory = "REP_EU...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/ztable.R \name{caption2minipage} \alias{caption2minipage} \title{Convert long caption to minipage} \usage{ caption2minipage(z, caption) } \arguments{ \item{z}{An object of ztable} \item{caption}{A character vector to convert} } \desc...
/man/caption2minipage.Rd
no_license
sjewo/ztable
R
false
false
365
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/ztable.R \name{caption2minipage} \alias{caption2minipage} \title{Convert long caption to minipage} \usage{ caption2minipage(z, caption) } \arguments{ \item{z}{An object of ztable} \item{caption}{A character vector to convert} } \desc...
dir.create(file.path(getwd(), "Plot", "3dLabPlots"), showWarnings = FALSE) plotDir <- file.path(getwd(), "Plot", "3dLabPlots") source("R/seuratNorm.r") comps <- 5 source("R/CalcTSNE_PCASpace.r") resolDec <- 75 source("R/FetchTSNEClustersPCASpace.r") MIGN <- SubsetData(ipmc, ident.use = c(15:35), do.center = TRU...
/PCA_3dim_lab.r
no_license
SevaVigg/FishNano
R
false
false
1,651
r
dir.create(file.path(getwd(), "Plot", "3dLabPlots"), showWarnings = FALSE) plotDir <- file.path(getwd(), "Plot", "3dLabPlots") source("R/seuratNorm.r") comps <- 5 source("R/CalcTSNE_PCASpace.r") resolDec <- 75 source("R/FetchTSNEClustersPCASpace.r") MIGN <- SubsetData(ipmc, ident.use = c(15:35), do.center = TRU...
\name{ladderplot} \Rdversion{1.1} \alias{ladderplot} \alias{ladderplot.default} \title{ Ladder Plot } \description{ Makes a ladder plot, similar to \link[MASS]{parcoord} but with more flexibility and graphical options. } \usage{ ladderplot(x, ...) \method{ladderplot}{default}(x, scale=FALSE, col=1, pch=19,...
/man/ladderplot.Rd
no_license
cran/plotrix
R
false
false
2,356
rd
\name{ladderplot} \Rdversion{1.1} \alias{ladderplot} \alias{ladderplot.default} \title{ Ladder Plot } \description{ Makes a ladder plot, similar to \link[MASS]{parcoord} but with more flexibility and graphical options. } \usage{ ladderplot(x, ...) \method{ladderplot}{default}(x, scale=FALSE, col=1, pch=19,...
# Simulations to check theoretical formulas to compute variance etc. for Atkinson index and haves.fraction. # Run from R with source("atkinson-variance.R", print.eval=TRUE) . options may be commented out if other # values are preferred; these were chosen for good display of the results from the simulate function. lib...
/spark-inequality-impact/src/test/R/atkinson-variance.R
permissive
shr264/spark-inequality-impact
R
false
false
22,212
r
# Simulations to check theoretical formulas to compute variance etc. for Atkinson index and haves.fraction. # Run from R with source("atkinson-variance.R", print.eval=TRUE) . options may be commented out if other # values are preferred; these were chosen for good display of the results from the simulate function. lib...
## Put comments here that give an overall description of what your ## functions do ## The first function caches the matrix to which the function gehts applied. Furthermore it defines the functions which are later used in the cache Solve function ## The second function checks if the inverse of the matrix has already b...
/cachematrix.R
no_license
Pyr0clastic/ProgrammingAssignment2
R
false
false
1,543
r
## Put comments here that give an overall description of what your ## functions do ## The first function caches the matrix to which the function gehts applied. Furthermore it defines the functions which are later used in the cache Solve function ## The second function checks if the inverse of the matrix has already b...
library(lattice) # not all test environments have Hadoop installed TEST_HDFS <- Sys.getenv("DATADR_TEST_HDFS") if(TEST_HDFS == "") TEST_HDFS <- FALSE context("Simple display") vdbPath <- file.path(tempdir(), "vdb") # divide the ddf by the variable "site" bySite <- datadr::divide(barley, by = "site") # simple dot...
/tests/testthat/test-1-simple-display.R
permissive
hafen/trelliscope
R
false
false
1,751
r
library(lattice) # not all test environments have Hadoop installed TEST_HDFS <- Sys.getenv("DATADR_TEST_HDFS") if(TEST_HDFS == "") TEST_HDFS <- FALSE context("Simple display") vdbPath <- file.path(tempdir(), "vdb") # divide the ddf by the variable "site" bySite <- datadr::divide(barley, by = "site") # simple dot...
##clean workspace rm(list = ls()) ##loading needed library : string library("stringr") #################################################################### ############ QUESTION 1 ########################################## # Merges the training and the test sets to create one data set # #######################...
/run_analysis.R
no_license
kboulite/PeerAssessmentsGCD
R
false
false
5,912
r
##clean workspace rm(list = ls()) ##loading needed library : string library("stringr") #################################################################### ############ QUESTION 1 ########################################## # Merges the training and the test sets to create one data set # #######################...
context("balancedSampling") test_that("try.counterbalanced.sample.index.matrix", { data <- data.frame( A=rep(LETTERS[1:4], times=2), B=rep(letters[1:2], each=4) ) maxtry <- 50; success <- FALSE; ntry <- 0; while(!success) { res <- try.counterbalanced.sample.index.matrix(data, c("A", "B"), c(4, ...
/tests/testthat/test-balancedSampling.R
permissive
sylvainloiseau/balancedSampling
R
false
false
1,514
r
context("balancedSampling") test_that("try.counterbalanced.sample.index.matrix", { data <- data.frame( A=rep(LETTERS[1:4], times=2), B=rep(letters[1:2], each=4) ) maxtry <- 50; success <- FALSE; ntry <- 0; while(!success) { res <- try.counterbalanced.sample.index.matrix(data, c("A", "B"), c(4, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/intervals.r \name{interval} \alias{interval} \alias{\%--\%} \alias{is.interval} \alias{int_start} \alias{int_start<-} \alias{int_end} \alias{int_end<-} \alias{int_length} \alias{int_flip} \alias{int_shift} \alias{int_overlaps} \alias{int_stan...
/man/interval.Rd
no_license
moslehi/lubridate
R
false
true
6,228
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/intervals.r \name{interval} \alias{interval} \alias{\%--\%} \alias{is.interval} \alias{int_start} \alias{int_start<-} \alias{int_end} \alias{int_end<-} \alias{int_length} \alias{int_flip} \alias{int_shift} \alias{int_overlaps} \alias{int_stan...
## makeCacheMatrix creates a special "matrix", ## which is really a list containing a function to: ## 1. set the value of the matrix ## 2. get the value of the matrix ## 3. set the value of the inverse ## 4. get the value of the inverse makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) ...
/cachematrix.R
no_license
vevagm/ProgrammingAssignment2
R
false
false
1,263
r
## makeCacheMatrix creates a special "matrix", ## which is really a list containing a function to: ## 1. set the value of the matrix ## 2. get the value of the matrix ## 3. set the value of the inverse ## 4. get the value of the inverse makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) ...
#Stats Modeling 2 #Exercise 02 - Gibbs Sampler for Bayesian Linear Model #Housekeeping rm(list=ls()) #Full hierarchical model: # (y | B,w,L) ~ N(XB,(wL)^{-1}) # L = diag(l1,...,ln) #Lambda_i values. # li ~ iid Gamma(h/2,h/2) # (B|w) ~ N(m,(wK)^{-1}) # w ~ Gamma(d/2,eta/2) #Conditional posteriors: # p(B|y,w,L) ~ N(m_...
/Exercise-02/SDS383D_Ex02_Gibbs Sampler Bayesian Regression.R
no_license
anhnguyendepocen/statsmod
R
false
false
6,056
r
#Stats Modeling 2 #Exercise 02 - Gibbs Sampler for Bayesian Linear Model #Housekeeping rm(list=ls()) #Full hierarchical model: # (y | B,w,L) ~ N(XB,(wL)^{-1}) # L = diag(l1,...,ln) #Lambda_i values. # li ~ iid Gamma(h/2,h/2) # (B|w) ~ N(m,(wK)^{-1}) # w ~ Gamma(d/2,eta/2) #Conditional posteriors: # p(B|y,w,L) ~ N(m_...
# example spreadsheets library(broman) # bad spreadsheet pdf("../Figs/bad_spreadsheet.pdf", height=5, width=10) mat <- rbind(c("1MIN", rep("", 6)), c("", "", "Normal", "", "", "Mutant", ""), c("B6", 146.6, 138.6, 155.6, 166.0, 179.3, 186.9), c("BTBR", 245.7, 240.0, 243.1, 17...
/R/spreadsheets.R
permissive
kbroman/Talk_RRBoston2019
R
false
false
2,102
r
# example spreadsheets library(broman) # bad spreadsheet pdf("../Figs/bad_spreadsheet.pdf", height=5, width=10) mat <- rbind(c("1MIN", rep("", 6)), c("", "", "Normal", "", "", "Mutant", ""), c("B6", 146.6, 138.6, 155.6, 166.0, 179.3, 186.9), c("BTBR", 245.7, 240.0, 243.1, 17...
# Import the necessary library library('Bolstad') # Store the observation (data) in y y = c(3,4,3,0,1) # (b) # Use posgamp command to find posterior for the given prior distribution result = poisgamp(y, 1/2, 0) plot(result$mu, result$posterior, type='l', main = 'Posterior Distribution', xlab = 'mu', yl...
/10_2_b.R
permissive
ENaveen98/Applied-Statistics
R
false
false
1,361
r
# Import the necessary library library('Bolstad') # Store the observation (data) in y y = c(3,4,3,0,1) # (b) # Use posgamp command to find posterior for the given prior distribution result = poisgamp(y, 1/2, 0) plot(result$mu, result$posterior, type='l', main = 'Posterior Distribution', xlab = 'mu', yl...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/syllable_sum.R \name{plot.combo_syllable_sum} \alias{plot.combo_syllable_sum} \title{Plots a combo_syllable_sum Object} \usage{ \method{plot}{combo_syllable_sum}(x, ...) } \arguments{ \item{x}{The combo_syllable_sum object.} \item{\l...
/man/plot.combo_syllable_sum.Rd
no_license
Maddocent/qdap
R
false
false
389
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/syllable_sum.R \name{plot.combo_syllable_sum} \alias{plot.combo_syllable_sum} \title{Plots a combo_syllable_sum Object} \usage{ \method{plot}{combo_syllable_sum}(x, ...) } \arguments{ \item{x}{The combo_syllable_sum object.} \item{\l...
## Data set downloaded from the UC Irvine Machine Learning Repository ##https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip power_consumption <<- read.table("household_power_consumption.txt", sep=";", header=TRUE) p_c_df <<- data.frame(p_c, stringsAsFactors=FALSE) newDates <<- p_c_df$...
/plot2.R
no_license
IFF999/ExData_Plotting1
R
false
false
1,152
r
## Data set downloaded from the UC Irvine Machine Learning Repository ##https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip power_consumption <<- read.table("household_power_consumption.txt", sep=";", header=TRUE) p_c_df <<- data.frame(p_c, stringsAsFactors=FALSE) newDates <<- p_c_df$...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{tsfeats} \alias{tsfeats} \title{Extract time series features from intervals} \usage{ tsfeats(tslen, tsmat, tsints) } \arguments{ \item{tslen}{length of each time series} \item{tsmat}{a matrix of time series data} \item{t...
/man/tsfeats.Rd
permissive
FlukeAndFeather/tsrf
R
false
true
421
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{tsfeats} \alias{tsfeats} \title{Extract time series features from intervals} \usage{ tsfeats(tslen, tsmat, tsints) } \arguments{ \item{tslen}{length of each time series} \item{tsmat}{a matrix of time series data} \item{t...
library(tidyverse) library(ggplot2) # library(plotly) ################################# # sumstat_path = "/gpfs/hpc/projects/eQTLCatalogue/qtlmap/eQTL_Catalogue_r3/pipeline_out/sumstats/" # suffix = ".permuted.txt.gz" # files <- list.files(sumstat_path, pattern=suffix) # # datasets = lapply(files, function(file){ #...
/manuscript/figures/naive_sample_sizes/quantification_methods_sample_size.R
no_license
eQTL-Catalogue/eQTL-Catalogue-resources
R
false
false
3,014
r
library(tidyverse) library(ggplot2) # library(plotly) ################################# # sumstat_path = "/gpfs/hpc/projects/eQTLCatalogue/qtlmap/eQTL_Catalogue_r3/pipeline_out/sumstats/" # suffix = ".permuted.txt.gz" # files <- list.files(sumstat_path, pattern=suffix) # # datasets = lapply(files, function(file){ #...
#3 - Numa pesquisa realizada com 100 famílias, levantaram-se as seguintes informações: #Faça um programa em R para calcular e gerar os gráficos para: #1. A mediana do número de filhos; e #2. A moda do número de filhos # Clean up the area rm(list = ls()) # library(readxl) dados <- read_excel("dados/exercicio3.xlsx") V...
/codigo/exercicio3.R
no_license
winea/TrabalhoEstatisticaWinea
R
false
false
1,120
r
#3 - Numa pesquisa realizada com 100 famílias, levantaram-se as seguintes informações: #Faça um programa em R para calcular e gerar os gráficos para: #1. A mediana do número de filhos; e #2. A moda do número de filhos # Clean up the area rm(list = ls()) # library(readxl) dados <- read_excel("dados/exercicio3.xlsx") V...
library(NHPoisson) ### Name: graphresU.fun ### Title: Validation analysis of PP uniform (generalized) residuals ### Aliases: graphresU.fun ### ** Examples #Since only one graphical device is opened and the argument histWgraph #is TRUE by default, the resulting residual plots (three pages with the #considered ...
/data/genthat_extracted_code/NHPoisson/examples/graphresU.fun.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
631
r
library(NHPoisson) ### Name: graphresU.fun ### Title: Validation analysis of PP uniform (generalized) residuals ### Aliases: graphresU.fun ### ** Examples #Since only one graphical device is opened and the argument histWgraph #is TRUE by default, the resulting residual plots (three pages with the #considered ...
library(shiny) library(shinydashboard) library(shinycssloaders) # Define UI for application that draws a histogram dashboardPage( dashboardHeader(title = "Revenue Forecasting", disable = TRUE), dashboardSidebar( tags$style(HTML(".main-sidebar li a { font-size: 20px; }")), menuItem("Revenue...
/ui.R
no_license
darklongnightt/R-Revenue-Forecast
R
false
false
1,364
r
library(shiny) library(shinydashboard) library(shinycssloaders) # Define UI for application that draws a histogram dashboardPage( dashboardHeader(title = "Revenue Forecasting", disable = TRUE), dashboardSidebar( tags$style(HTML(".main-sidebar li a { font-size: 20px; }")), menuItem("Revenue...
library(dplyr, lubridate) download.file( "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "power.zip") unzip("power.zip") file.remove("power.zip") power <- read.csv2("household_power_consumption.txt", header = TRUE, dec = ".", na.strings = ...
/plot4.R
no_license
njcaminiti/Plots
R
false
false
1,399
r
library(dplyr, lubridate) download.file( "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "power.zip") unzip("power.zip") file.remove("power.zip") power <- read.csv2("household_power_consumption.txt", header = TRUE, dec = ".", na.strings = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CNode.R \docType{methods} \name{echoCredentials} \alias{echoCredentials} \alias{echoCredentials,CNode-method} \title{Echo the credentials used to make the call.} \usage{ echoCredentials(x, ...) \S4method{echoCredentials}{CNode}(x) } \argumen...
/man/echoCredentials.Rd
permissive
AnneMTreasure/rdataone
R
false
true
815
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CNode.R \docType{methods} \name{echoCredentials} \alias{echoCredentials} \alias{echoCredentials,CNode-method} \title{Echo the credentials used to make the call.} \usage{ echoCredentials(x, ...) \S4method{echoCredentials}{CNode}(x) } \argumen...
# plot the predicted vs held out tree ring increments: validation.cores # has the index for the plots cores.valid <- read.csv("INV_FIA_DATA/data/validation_cores_SDI_plot.csv") # read in the RWL files rwls <- readRDS(gzcon(url("https://de.cyverse.org/dl/d/0A6040DD-4CC0-4F4C-9351-CF922985B1EE/validation.rwl.year.df.r...
/modules/data.land/R/validate_held_out_cores.R
permissive
Kah5/pecan
R
false
false
7,324
r
# plot the predicted vs held out tree ring increments: validation.cores # has the index for the plots cores.valid <- read.csv("INV_FIA_DATA/data/validation_cores_SDI_plot.csv") # read in the RWL files rwls <- readRDS(gzcon(url("https://de.cyverse.org/dl/d/0A6040DD-4CC0-4F4C-9351-CF922985B1EE/validation.rwl.year.df.r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGeneric.R, R/dfOps.R \docType{methods} \name{head} \alias{head} \alias{head,block-method} \alias{head,Basis-method} \title{Return head object data frame} \usage{ head(x, ...) \S4method{head}{block}(x, ...) \S4method{head}{Basis}(x, ...) ...
/man/head.Rd
permissive
andrewzm/MVST
R
false
true
662
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGeneric.R, R/dfOps.R \docType{methods} \name{head} \alias{head} \alias{head,block-method} \alias{head,Basis-method} \title{Return head object data frame} \usage{ head(x, ...) \S4method{head}{block}(x, ...) \S4method{head}{Basis}(x, ...) ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/alerts.R \name{alerts} \alias{alerts} \title{Weather Alerts for United States and Europe} \usage{ alerts(location, key = get_api_key(), raw = FALSE, raw_JSON = FALSE, message = TRUE) } \arguments{ \item{location}{location set by set...
/man/alerts.Rd
no_license
CatherineCao2016/rwunderground
R
false
false
887
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/alerts.R \name{alerts} \alias{alerts} \title{Weather Alerts for United States and Europe} \usage{ alerts(location, key = get_api_key(), raw = FALSE, raw_JSON = FALSE, message = TRUE) } \arguments{ \item{location}{location set by set...
context("get_setc_data - normal") test_that("Basic functionality", { expect_equal( nrow(get_setc_data( report_file = "../data/BrianKrauth-ECON381D100-Spring2017.pdf", quietly = TRUE)$comments), 6) }) test_that("Fails cleanly", { expect_error( get_setc_data(), regexp = "Either report_f...
/tests/testthat/test-get_setc_data.R
permissive
bvkrauth/setc
R
false
false
785
r
context("get_setc_data - normal") test_that("Basic functionality", { expect_equal( nrow(get_setc_data( report_file = "../data/BrianKrauth-ECON381D100-Spring2017.pdf", quietly = TRUE)$comments), 6) }) test_that("Fails cleanly", { expect_error( get_setc_data(), regexp = "Either report_f...
odir = getwd() ################################################################################################### #This program is designed to create stacked area time series figures of Chinook-model derived #stock composition of actual landed catch; the R code is fairly straightforward; however, the #prep of modelou...
/4 Stock Compoistion/StackedAreaFigures.R
permissive
CTC-PSC/CalibAssessment
R
false
false
4,445
r
odir = getwd() ################################################################################################### #This program is designed to create stacked area time series figures of Chinook-model derived #stock composition of actual landed catch; the R code is fairly straightforward; however, the #prep of modelou...
# Random Forest Classification # Importing the dataset dataset = read.csv('Social_Network_Ads.csv') dataset = dataset[3:5] # Encoding the target feature as factor dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1)) # Splitting the dataset into the Training set and Test set # install.packages('caTools') l...
/Machine Learning A-Z/Part 3 - Classification/Section 20 - Random Forest Classification/Random_Forest_Classification/random_forest_classification.R
no_license
tanvi1gupta/Udemy_Machine_Learning
R
false
false
2,465
r
# Random Forest Classification # Importing the dataset dataset = read.csv('Social_Network_Ads.csv') dataset = dataset[3:5] # Encoding the target feature as factor dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1)) # Splitting the dataset into the Training set and Test set # install.packages('caTools') l...
plot6 <- function(){ #load data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") #6. Compare emissions from motor vehicle sources in Baltimore City with #emissions from motor vehicle sources in Los Angeles County, #Californ...
/Exploratory Data Analysis/Project 2/Plot6.R
no_license
desareca/Especializacion-Data-Science_JHU
R
false
false
1,431
r
plot6 <- function(){ #load data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") #6. Compare emissions from motor vehicle sources in Baltimore City with #emissions from motor vehicle sources in Los Angeles County, #Californ...
library(ISLR) library(leaps) ## Best Subset Selection ## fix(Hitters) names(Hitters) # [1] "AtBat" "Hits" "HmRun" "Runs" "RBI" "Walks" "Years" "CAtBat" # [9] "CHits" "CHmRun" "CRuns" "CRBI" "CWalks" "League" "Division" "PutOuts" # [17] "Assists" "Errors" ...
/Chapter6/Chapter6_Lab.R
no_license
jhan0317/Solutions_to_Introduction_to_Statistical_Learning
R
false
false
10,549
r
library(ISLR) library(leaps) ## Best Subset Selection ## fix(Hitters) names(Hitters) # [1] "AtBat" "Hits" "HmRun" "Runs" "RBI" "Walks" "Years" "CAtBat" # [9] "CHits" "CHmRun" "CRuns" "CRBI" "CWalks" "League" "Division" "PutOuts" # [17] "Assists" "Errors" ...
#Author: Christopher Zarzar #Created: 19-Sep-2016 #NOTES: This script was createdto test # whether the atmosphere plays a # statistically significant role on the # imagery collected by the UAS. # This is part of the North Farm experiment # started April 2016 #EDITED ON 10-18-2016 CZ: Discovered that I had r...
/z_NorthFarmExperimentAllV4.R
no_license
ChrisZarzar/phd_research
R
false
false
13,507
r
#Author: Christopher Zarzar #Created: 19-Sep-2016 #NOTES: This script was createdto test # whether the atmosphere plays a # statistically significant role on the # imagery collected by the UAS. # This is part of the North Farm experiment # started April 2016 #EDITED ON 10-18-2016 CZ: Discovered that I had r...
collector <- function(init = character(0)) { res <- init list(add = function(x, ...) res <<- c(res, sprintf(x, ...)), length = function(x) length(res), # used only in debugging below get = function() res) } vcapply <- function(X, FUN, ...) { vapply(X, FUN, character(1), ...) } is_windows <- functi...
/R/util.R
no_license
richfitz/rcmdshlib
R
false
false
1,291
r
collector <- function(init = character(0)) { res <- init list(add = function(x, ...) res <<- c(res, sprintf(x, ...)), length = function(x) length(res), # used only in debugging below get = function() res) } vcapply <- function(X, FUN, ...) { vapply(X, FUN, character(1), ...) } is_windows <- functi...
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) source("input.R") options(shiny.maxRequestSize=30*1024^2) shinyUI( navbarPage("Microarray database", tabPanel("Home"), nav...
/ui.R
no_license
iskrypn/marraydb
R
false
false
2,753
r
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) source("input.R") options(shiny.maxRequestSize=30*1024^2) shinyUI( navbarPage("Microarray database", tabPanel("Home"), nav...
# normalize peak significance scores and select reproducible peak(score per million value >=5) # method: each(pvalue)/(sum(pvalue)/1000000) args=commandArgs(T) data<-read.table(args[2]) #head(data) data$V6<-data$V5/(sum(data$V5)/1000000) data_normalized5<-data[data$V6>=5,] data_normalized_reproducible<-data_normalized5...
/Rcode/Peakcalling/normalized_filter5.R
no_license
QianlJun/R
R
false
false
674
r
# normalize peak significance scores and select reproducible peak(score per million value >=5) # method: each(pvalue)/(sum(pvalue)/1000000) args=commandArgs(T) data<-read.table(args[2]) #head(data) data$V6<-data$V5/(sum(data$V5)/1000000) data_normalized5<-data[data$V6>=5,] data_normalized_reproducible<-data_normalized5...
\name{ETCiwd} \alias{ETCiwd} \title{Hello, World!} \usage{ ETCiwd() } \description{ Prints 'Hello, world!'. } \examples{ hello() }
/man/ETCiwd.Rd
no_license
frajaroco/PI
R
false
false
131
rd
\name{ETCiwd} \alias{ETCiwd} \title{Hello, World!} \usage{ ETCiwd() } \description{ Prints 'Hello, world!'. } \examples{ hello() }
rates <- read.csv("../data/rates.csv", header=TRUE, row.names=1) rates dim(rates) typeof(rates) class(rates) --- rate_matrix <- as.matrix(rates) typeof(rate_matrix) class(rate_matrix) dim(rate_matrix) colnames(rate_matrix) rownames(rate_matrix) --- rate_matrix rate_matrix["BTC","EUR"] --- ## Retur...
/sessions/w2/exercises/code/matrices.R
no_license
kasykale/RProgrammingWorkshop
R
false
false
469
r
rates <- read.csv("../data/rates.csv", header=TRUE, row.names=1) rates dim(rates) typeof(rates) class(rates) --- rate_matrix <- as.matrix(rates) typeof(rate_matrix) class(rate_matrix) dim(rate_matrix) colnames(rate_matrix) rownames(rate_matrix) --- rate_matrix rate_matrix["BTC","EUR"] --- ## Retur...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_cleaning.R \name{clean_nir} \alias{clean_nir} \title{Clean NIR data and put into tidy format. This requires that JA's input identifiers as unique and standardized. Format: First three letters of the project name, followed by an undersco...
/man/clean_nir.Rd
no_license
AGRBDCenter/aghelpr2
R
false
true
1,400
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_cleaning.R \name{clean_nir} \alias{clean_nir} \title{Clean NIR data and put into tidy format. This requires that JA's input identifiers as unique and standardized. Format: First three letters of the project name, followed by an undersco...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{bqrDPMMNA} \alias{bqrDPMMNA} \title{BQR based on DPM of Mixure of Normal Distributions (what is 'A'?)} \usage{ bqrDPMMNA(Xr, Yr, tau, nsim, initCoef, burn = 5000L, plotDensity = FALSE, nF = 10L, aD = 100, bD = 100, maxSi...
/man/bqrDPMMNA.Rd
no_license
liqun730/bqrDPM
R
false
true
1,111
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{bqrDPMMNA} \alias{bqrDPMMNA} \title{BQR based on DPM of Mixure of Normal Distributions (what is 'A'?)} \usage{ bqrDPMMNA(Xr, Yr, tau, nsim, initCoef, burn = 5000L, plotDensity = FALSE, nF = 10L, aD = 100, bD = 100, maxSi...
library(AmpliconDuo) ### Name: plotORdensity ### Title: Probability Density Plot Of Odds Ratios ### Aliases: plotORdensity ### Keywords: hplot ### ** Examples ## loads example data of ampliconduo data frames data(amplicons) ## plot odds ratio density for amplicon frequencies in ampliconduo data frames plotORdensit...
/data/genthat_extracted_code/AmpliconDuo/examples/plotORdensity.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
562
r
library(AmpliconDuo) ### Name: plotORdensity ### Title: Probability Density Plot Of Odds Ratios ### Aliases: plotORdensity ### Keywords: hplot ### ** Examples ## loads example data of ampliconduo data frames data(amplicons) ## plot odds ratio density for amplicon frequencies in ampliconduo data frames plotORdensit...
% Auto-generated: do not edit by hand \name{dccRangeSlider} \alias{dccRangeSlider} \title{RangeSlider component} \description{ A double slider with two handles. Used for specifying a range of numerical values. } \usage{ dccRangeSlider(dccRangeSlider(id=NULL, marks=NULL, value=NULL, allowCross=NULL, className=NULL, ...
/man/dccRangeSlider.Rd
permissive
emGiin/dash-core-components
R
false
false
2,911
rd
% Auto-generated: do not edit by hand \name{dccRangeSlider} \alias{dccRangeSlider} \title{RangeSlider component} \description{ A double slider with two handles. Used for specifying a range of numerical values. } \usage{ dccRangeSlider(dccRangeSlider(id=NULL, marks=NULL, value=NULL, allowCross=NULL, className=NULL, ...
contentTypeSerializer <- function(type){ if (missing(type)){ stop("You must provide the custom content type to the contentTypeSerializer") } function(val, req, res, errorHandler){ tryCatch({ res$setHeader("Content-Type", type) res$body <- val return(res$toResponse()) }, error=functi...
/R/serializer-content-type.R
no_license
MarkEdmondson1234/plumber
R
false
false
436
r
contentTypeSerializer <- function(type){ if (missing(type)){ stop("You must provide the custom content type to the contentTypeSerializer") } function(val, req, res, errorHandler){ tryCatch({ res$setHeader("Content-Type", type) res$body <- val return(res$toResponse()) }, error=functi...
##### gene_list_annotation.R ##### # quick script to generate arabidopsis gene annotations (including gene descriptions) from ENSEMBL TAIR10.39 annotation and annotate gene lists # code for parsing gff files from https://support.bioconductor.org/p/24657/ # need to run manually - can alter script depending on what you ...
/gene_list_annotation.R
no_license
BethanyStone/scripts
R
false
false
4,186
r
##### gene_list_annotation.R ##### # quick script to generate arabidopsis gene annotations (including gene descriptions) from ENSEMBL TAIR10.39 annotation and annotate gene lists # code for parsing gff files from https://support.bioconductor.org/p/24657/ # need to run manually - can alter script depending on what you ...
## Merge NDA18 2.0 data into a single spreadsheet # Starting from the official download package "ABCDstudyNDA" (Study 634) the R-code below will merge the data tables into a single large spreadsheet. Please notice, that this might not be the most efficient way to handle the data. In general we would suggest to use a d...
/notebooks/general/merge_data.R
no_license
abcdworkshop/analysis-nda
R
false
false
9,847
r
## Merge NDA18 2.0 data into a single spreadsheet # Starting from the official download package "ABCDstudyNDA" (Study 634) the R-code below will merge the data tables into a single large spreadsheet. Please notice, that this might not be the most efficient way to handle the data. In general we would suggest to use a d...
#==============================================================================# # # # Nimble models for day sea ice advance # # ...
/05_script/models/1_sea_ice/1.3_Nimble_day_sea_ice_advance.R
no_license
SCubaynes/polar_bears_litter_size_environment
R
false
false
5,541
r
#==============================================================================# # # # Nimble models for day sea ice advance # # ...
r <- getOption("repos") r["CRAN"] <- "http://cran.ms.unimelb.edu.au/" options(repos=r) # print warnings immediately options(warn=1) # print out list of installed packages write.table(installed.packages()[,c("Package", "Version", "Priority")], row.names=FALSE) #script to run to develop distribution models...
/2045 RCP45 projection .R
no_license
jh367d/Guthega-Skink_climate_change_model
R
false
false
77,563
r
r <- getOption("repos") r["CRAN"] <- "http://cran.ms.unimelb.edu.au/" options(repos=r) # print warnings immediately options(warn=1) # print out list of installed packages write.table(installed.packages()[,c("Package", "Version", "Priority")], row.names=FALSE) #script to run to develop distribution models...
# Security Module securitymodule_UI <- function(id) { ns <- NS(id) tagList( p("This is the list of security authorization types reported by the CapabilityStatement / Conformance Resources from the endpoints."), fluidRow( column(width = 6, tableOutput(ns("endpoint_summary_table")) ...
/shinydashboard/lantern/modules/securitymodule.R
permissive
onc-healthit/lantern-back-end
R
false
false
3,929
r
# Security Module securitymodule_UI <- function(id) { ns <- NS(id) tagList( p("This is the list of security authorization types reported by the CapabilityStatement / Conformance Resources from the endpoints."), fluidRow( column(width = 6, tableOutput(ns("endpoint_summary_table")) ...
library(itsmr) ### Name: itsmr-package ### Title: Time Series Analysis Using the Innovations Algorithm ### Aliases: itsmr-package itsmr ### Keywords: package ### ** Examples plotc(wine) ## Define a suitable data model M = c("log","season",12,"trend",1) ## Obtain residuals and check for stationarity e = Resid(wine...
/data/genthat_extracted_code/itsmr/examples/itsmr-package.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
511
r
library(itsmr) ### Name: itsmr-package ### Title: Time Series Analysis Using the Innovations Algorithm ### Aliases: itsmr-package itsmr ### Keywords: package ### ** Examples plotc(wine) ## Define a suitable data model M = c("log","season",12,"trend",1) ## Obtain residuals and check for stationarity e = Resid(wine...
\name{cor.plot} \Rdversion{1.1} \alias{cor.plot} \alias{corPlot} \alias{cor.plot.upperLowerCi} \alias{corPlotUpperLowerCi} \title{Create an image plot for a correlation or factor matrix} \description{Correlation matrices may be shown graphically by using the image function to emphasize structure. This is a particular...
/man/cor.plot.Rd
no_license
Redhat44/psych
R
false
false
9,909
rd
\name{cor.plot} \Rdversion{1.1} \alias{cor.plot} \alias{corPlot} \alias{cor.plot.upperLowerCi} \alias{corPlotUpperLowerCi} \title{Create an image plot for a correlation or factor matrix} \description{Correlation matrices may be shown graphically by using the image function to emphasize structure. This is a particular...
# Treatment rule(s) alwaysTreated0 <- function(L0){ 1 } # Functions to be used later logit <- function(x){ log(x/(1-x)) } expit<-function(x){ result<-exp(x)/(1+exp(x)) result[is.nan(result)]<-1 result } g_to_g_delta<-function(delta, g){ (g<delta)*delta+(g>=delta)*g } loss <- function(coefficients, outco...
/C-TMLE_truncation-multi_orders-mpi.R
no_license
aurelienbibaut/c-tmle_truncation
R
false
false
9,095
r
# Treatment rule(s) alwaysTreated0 <- function(L0){ 1 } # Functions to be used later logit <- function(x){ log(x/(1-x)) } expit<-function(x){ result<-exp(x)/(1+exp(x)) result[is.nan(result)]<-1 result } g_to_g_delta<-function(delta, g){ (g<delta)*delta+(g>=delta)*g } loss <- function(coefficients, outco...
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) library(shinyjs) library(shinydashboard) library(DT) library(dygraphs) library(shinyBS) # read external js fileName <- "shinyjsSeg.js...
/ui.R
no_license
parastelios/ShinyDashboard
R
false
false
18,050
r
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) library(shinyjs) library(shinydashboard) library(DT) library(dygraphs) library(shinyBS) # read external js fileName <- "shinyjsSeg.js...
#################################################################################################### ## Author: Thomas de Graaff ## What: Make figures of GWR of Total Sector ## Edited: 10-12-2014 #################################################################################################### l...
/Scripts/GwrSTotFigures.R
no_license
markthissen/PaperPiRS
R
false
false
7,305
r
#################################################################################################### ## Author: Thomas de Graaff ## What: Make figures of GWR of Total Sector ## Edited: 10-12-2014 #################################################################################################### l...
############################################################################### # Load Systematic Investor Toolbox (SIT) # http://systematicinvestor.wordpress.com/systematic-investor-toolbox/ ############################################################################### setInternet2(TRUE) con = gzcon(url('http://www.s...
/Code/Min investment and number of assets cardinality constraint.R
no_license
97joseph/Financial_Economics
R
false
false
4,572
r
############################################################################### # Load Systematic Investor Toolbox (SIT) # http://systematicinvestor.wordpress.com/systematic-investor-toolbox/ ############################################################################### setInternet2(TRUE) con = gzcon(url('http://www.s...
#################################### # # Alexander Lachmann 7/6/2015 # DeMAND reimagined # # original algorithm: Jung Hoon # # Collection of rewritten DeMAND functions. # Functionality unchanged from original. # ############################################ ############################################## ...
/DeMANDfast/demandfunctions.r
no_license
accumb3ns/DeMAND-algorithm
R
false
false
4,556
r
#################################### # # Alexander Lachmann 7/6/2015 # DeMAND reimagined # # original algorithm: Jung Hoon # # Collection of rewritten DeMAND functions. # Functionality unchanged from original. # ############################################ ############################################## ...
library(matrixTests) source("utils/capture.r") #--- x argument errors --------------------------------------------------------- # cannot be missing err <- 'argument "x" is missing, with no default' res <- capture(row_t_onesample()) stopifnot(all.equal(res$error, err)) # cannot be NULL err <- '"x" must be a numeric m...
/tests/t_onesample_errors.r
no_license
cran/matrixTests
R
false
false
5,081
r
library(matrixTests) source("utils/capture.r") #--- x argument errors --------------------------------------------------------- # cannot be missing err <- 'argument "x" is missing, with no default' res <- capture(row_t_onesample()) stopifnot(all.equal(res$error, err)) # cannot be NULL err <- '"x" must be a numeric m...
## Plot showing the location of a few genomes on chromosomes library(httr) library(jsonlite) library(ggplot2) library(ggrepel) library(magrittr) library(purrr) ## Get an endpoint from the Ensembl REST api and return parsed JSON get_from_rest_api <- function(endpoint_string, server = "h...
/gene_position_plot.R
no_license
mrtnj/rstuff
R
false
false
2,813
r
## Plot showing the location of a few genomes on chromosomes library(httr) library(jsonlite) library(ggplot2) library(ggrepel) library(magrittr) library(purrr) ## Get an endpoint from the Ensembl REST api and return parsed JSON get_from_rest_api <- function(endpoint_string, server = "h...
# Termination conditions. # Used to evantually stop mbo optimization process # Each stopping condition is a simple function which expects an opt.state # and returns a list with the following three components # * term: logical indicating whether the stopping condition is met. # * message: String indicating the reason f...
/R/term_conds.R
no_license
hildafab/mlrMBO-MtLSMAC
R
false
false
3,653
r
# Termination conditions. # Used to evantually stop mbo optimization process # Each stopping condition is a simple function which expects an opt.state # and returns a list with the following three components # * term: logical indicating whether the stopping condition is met. # * message: String indicating the reason f...
#01 library(readxl) middle_mid_exam <- read_excel("../HelloR/Data/middle_mid_exam.xlsx") middle_mid_exam #02 library(reshape2) math_select <- middle_mid_exam %>% select(CLASS, ID, MATHEMATICS) MATHEMATICS <- dcast(math_select, ID~CLASS) MATHEMATICS eng_select <- middle_mid_exam %>% select(CLASS, ID, ENGLISH) ENGLISH ...
/R/ch08/.Rproj.user/73899875/sources/per/t/DBE1A13A-contents
no_license
SaebomBang/TIL
R
false
false
845
#01 library(readxl) middle_mid_exam <- read_excel("../HelloR/Data/middle_mid_exam.xlsx") middle_mid_exam #02 library(reshape2) math_select <- middle_mid_exam %>% select(CLASS, ID, MATHEMATICS) MATHEMATICS <- dcast(math_select, ID~CLASS) MATHEMATICS eng_select <- middle_mid_exam %>% select(CLASS, ID, ENGLISH) ENGLISH ...
#'ss_add_phino #' #'A function that adds Phi_NO and NO_qL to a dataset #'@param df A tibble with NPQt, qL data. #'@param fm darkadapted fm data #'@param fo darkadapted fo data #'@name ss_add_phinpq #'@export ss_add_phinpq <- function(df,fm,fo){ npqtdat <- df[,which(grepl(colnames(df),pattern = "NPQt"))[1]] qlda...
/R/ss_add_phinpq.R
permissive
poales/sharkeySpec
R
false
false
663
r
#'ss_add_phino #' #'A function that adds Phi_NO and NO_qL to a dataset #'@param df A tibble with NPQt, qL data. #'@param fm darkadapted fm data #'@param fo darkadapted fo data #'@name ss_add_phinpq #'@export ss_add_phinpq <- function(df,fm,fo){ npqtdat <- df[,which(grepl(colnames(df),pattern = "NPQt"))[1]] qlda...
# This script contains examples for reading .gctx files into R. # In order for the script to work properly, make sure that the R working # directory is the directory containing the script. # source the io script source("cmap/io.R") # read the gctx file ds <- parse.gctx("../data/modzs_n272x978.gctx") # inspect the m...
/l1ktools/R/example_methods.R
permissive
IUIDSL/kgap_lincs-idg
R
false
false
861
r
# This script contains examples for reading .gctx files into R. # In order for the script to work properly, make sure that the R working # directory is the directory containing the script. # source the io script source("cmap/io.R") # read the gctx file ds <- parse.gctx("../data/modzs_n272x978.gctx") # inspect the m...
mx.mediaSsaDia=matrix(data=mediaSsa, nrow=20, ncol = 30) mx.mediaSsaLac=t(mx.mediaSsaDia) df.mediaSsaDia=as.data.frame((mx.mediaSsaDia)) df.mediaSsaLac=as.data.frame(mx.mediaSsaLac) names(df.mediaSsaDia)=paste('Dia', 1:ncol(df.mediaSsaDia), sep='') names(df.mediaSsaLac)=paste('Lac',1:ncol(df.mediaSsaLac), sep='') ...
/100 a 4300/CORRELAX.R
no_license
matheusthiago/experimentos
R
false
false
6,489
r
mx.mediaSsaDia=matrix(data=mediaSsa, nrow=20, ncol = 30) mx.mediaSsaLac=t(mx.mediaSsaDia) df.mediaSsaDia=as.data.frame((mx.mediaSsaDia)) df.mediaSsaLac=as.data.frame(mx.mediaSsaLac) names(df.mediaSsaDia)=paste('Dia', 1:ncol(df.mediaSsaDia), sep='') names(df.mediaSsaLac)=paste('Lac',1:ncol(df.mediaSsaLac), sep='') ...
library(shiny) library(ggplot2) library(shinythemes) library(tidyverse) water <- read_csv("../app/data/tidy_water.csv", col_types = cols(region = col_factor())) map_water <- read_csv("../app/data/map_water.csv", col_types = cols(epa_region = col_factor())) quasi.water2 <- glm(num_violations ~ num_facilities + num_site...
/app/app.R
permissive
lw9153a/data-science-project
R
false
false
8,493
r
library(shiny) library(ggplot2) library(shinythemes) library(tidyverse) water <- read_csv("../app/data/tidy_water.csv", col_types = cols(region = col_factor())) map_water <- read_csv("../app/data/map_water.csv", col_types = cols(epa_region = col_factor())) quasi.water2 <- glm(num_violations ~ num_facilities + num_site...
# assume that data has been unzipped into directory # read data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # find SCC codes corresponding to coal combustion-related sources by scanning for "Coal" reqSCC <- with(SCC, SCC[grep("Coal", SCC.Level.Three)]) # subset data to only...
/plot4.R
no_license
angteewee/ExData_plotting2
R
false
false
750
r
# assume that data has been unzipped into directory # read data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # find SCC codes corresponding to coal combustion-related sources by scanning for "Coal" reqSCC <- with(SCC, SCC[grep("Coal", SCC.Level.Three)]) # subset data to only...
# File: pizza_restaurants_analysis.R # Course: Data Analysis 1: Data Exploration # Group: C # Date: 2020-10-21 # INSTALL AND LOAD PACKAGES ################################ # CLEAR THE ENVIRONMENT rm(list=ls()) # INSTALL pacman if needed if (!require("pacman")) install.packages("pacman") # USE pacman TO LOAD ...
/pizza_restaurants_analysis.R
no_license
bazzim/DA1_Task_2
R
false
false
9,037
r
# File: pizza_restaurants_analysis.R # Course: Data Analysis 1: Data Exploration # Group: C # Date: 2020-10-21 # INSTALL AND LOAD PACKAGES ################################ # CLEAR THE ENVIRONMENT rm(list=ls()) # INSTALL pacman if needed if (!require("pacman")) install.packages("pacman") # USE pacman TO LOAD ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.greengrass_operations.R \name{get_bulk_deployment_status} \alias{get_bulk_deployment_status} \title{Returns the status of a bulk deployment} \usage{ get_bulk_deployment_status(BulkDeploymentId) } \arguments{ \item{BulkDeploymentId}{[requ...
/service/paws.greengrass/man/get_bulk_deployment_status.Rd
permissive
CR-Mercado/paws
R
false
true
527
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.greengrass_operations.R \name{get_bulk_deployment_status} \alias{get_bulk_deployment_status} \title{Returns the status of a bulk deployment} \usage{ get_bulk_deployment_status(BulkDeploymentId) } \arguments{ \item{BulkDeploymentId}{[requ...
library(reshape2) library(ggplot2) data <- diamonds[1:7] data.melt <- melt(data,id=c('cut','color','clarity')) diam.sum <- dcast(data.melt,cut+clarity~variable, subset= .(variable %in% c('price','carat')),mean) diam.sum$average <- diam.sum$price/diam.sum$carat p <- ggplot(diam.sum,aes(cut,average,fill=clarity)) p + ge...
/reshape2.R
no_license
Honglongwu/r_code
R
false
false
344
r
library(reshape2) library(ggplot2) data <- diamonds[1:7] data.melt <- melt(data,id=c('cut','color','clarity')) diam.sum <- dcast(data.melt,cut+clarity~variable, subset= .(variable %in% c('price','carat')),mean) diam.sum$average <- diam.sum$price/diam.sum$carat p <- ggplot(diam.sum,aes(cut,average,fill=clarity)) p + ge...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geojson_list.R \name{geojson_list} \alias{geojson_list} \title{Convert many input types with spatial data to geojson specified as a list} \usage{ geojson_list( input, lat = NULL, lon = NULL, group = NULL, geometry = "point", type ...
/man/geojson_list.Rd
permissive
navido89/geojsonio
R
false
true
9,198
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geojson_list.R \name{geojson_list} \alias{geojson_list} \title{Convert many input types with spatial data to geojson specified as a list} \usage{ geojson_list( input, lat = NULL, lon = NULL, group = NULL, geometry = "point", type ...
# returns the length of a phylogeny in branch-length units require(ape) treeLength<-function(tree){ nTips<-length(tree$tip.label) node1.root<-nTips+1 edgelength.max<-max(tree$edge.length) maxedge<-tree$edge[which(tree$edge.length==edgelength.max),] if (maxedge[2]>node1.root){ out<-edgelength.max } ...
/R/treeLength.R
no_license
meredithcmiles/merptools
R
false
false
453
r
# returns the length of a phylogeny in branch-length units require(ape) treeLength<-function(tree){ nTips<-length(tree$tip.label) node1.root<-nTips+1 edgelength.max<-max(tree$edge.length) maxedge<-tree$edge[which(tree$edge.length==edgelength.max),] if (maxedge[2]>node1.root){ out<-edgelength.max } ...
# Jake Yeung # Date of Creation: 2022-05-04 # File: ~/projects/scchic/scripts/revision_scripts/revisions_from_istbea/29-pseudotime_cubic_spline_downstream.R # rm(list=ls()) library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) library(mgcv) library(gratia) library(scchicFuncs) library(to...
/scripts/revision_scripts/revisions_from_istbea/29-pseudotime_cubic_spline_downstream.R
no_license
jakeyeung/sortchicAllScripts
R
false
false
8,567
r
# Jake Yeung # Date of Creation: 2022-05-04 # File: ~/projects/scchic/scripts/revision_scripts/revisions_from_istbea/29-pseudotime_cubic_spline_downstream.R # rm(list=ls()) library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) library(mgcv) library(gratia) library(scchicFuncs) library(to...
library(GenKern) ### Name: nearest ### Title: Index of a vector nearest in value to a supplied value ### Aliases: nearest ### Keywords: arith ### ** Examples # make up a vector x <- c(1,2,2,2,2,2,3,4,5,6,7,8,9,10) # conventional useage - xval within range should return 9 nearest(x, 4.7) # xval - outside the range o...
/data/genthat_extracted_code/GenKern/examples/nearest.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
546
r
library(GenKern) ### Name: nearest ### Title: Index of a vector nearest in value to a supplied value ### Aliases: nearest ### Keywords: arith ### ** Examples # make up a vector x <- c(1,2,2,2,2,2,3,4,5,6,7,8,9,10) # conventional useage - xval within range should return 9 nearest(x, 4.7) # xval - outside the range o...
data <- read.csv(file="/Soccer Simulation/Soccer Teams Rating - Data.csv", header = TRUE) head(data) #Game 1 #Probability of scoring n amount of goals n <- 0:6 #Arsenal Lambda = 1.355611 Arsenal <-dpois(n, lambda = 1.355700)*100 #Sheffield_Utd Lambda = 1.013155 Sheffield_Utd <-dpois(n, lambda = 1.013155)*100 Game_1 <-...
/Poisson Distribution .R
no_license
NahomKun/soccer-games-score-prob-
R
false
false
3,340
r
data <- read.csv(file="/Soccer Simulation/Soccer Teams Rating - Data.csv", header = TRUE) head(data) #Game 1 #Probability of scoring n amount of goals n <- 0:6 #Arsenal Lambda = 1.355611 Arsenal <-dpois(n, lambda = 1.355700)*100 #Sheffield_Utd Lambda = 1.013155 Sheffield_Utd <-dpois(n, lambda = 1.013155)*100 Game_1 <-...
\name{tree.length.to.root} \alias{tree.length.to.root} \title{Returns the length from the tree root to the given node. The input node can either be input as a node index or a node label.} \usage{ tree.length.to.root(phylo, node) } \arguments{ \item{phylo}{input phylo object} \item{node}{integer or character. Wh...
/man/tree.length.to.root.Rd
no_license
gjuggler/ggphylo
R
false
false
624
rd
\name{tree.length.to.root} \alias{tree.length.to.root} \title{Returns the length from the tree root to the given node. The input node can either be input as a node index or a node label.} \usage{ tree.length.to.root(phylo, node) } \arguments{ \item{phylo}{input phylo object} \item{node}{integer or character. Wh...
testlist <- list(A = structure(c(2.08854340254584e-236, 1.89131277973112e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(9L, 7L)), left = 0L, right = 0L, x = numeric...
/mgss/inst/testfiles/MVP_normalfactor_rcpp/AFL_MVP_normalfactor_rcpp/MVP_normalfactor_rcpp_valgrind_files/1615949466-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
393
r
testlist <- list(A = structure(c(2.08854340254584e-236, 1.89131277973112e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(9L, 7L)), left = 0L, right = 0L, x = numeric...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 5.50621485517843e+303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_row...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613119285-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
343
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 5.50621485517843e+303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_row...
## function to get geol for x y coordinates in lamber93 read_brgm_dep <- function(d, path){ print(d) name <- sub('.shp', '', grep('s_fgeol_L93.shp', list.files(file.path(path, d)), ignore.case = TRUE, value = TRUE)) test <- readOGR(fi...
/R/geol.R
no_license
MarcFuhr/AlpineForestData
R
false
false
2,553
r
## function to get geol for x y coordinates in lamber93 read_brgm_dep <- function(d, path){ print(d) name <- sub('.shp', '', grep('s_fgeol_L93.shp', list.files(file.path(path, d)), ignore.case = TRUE, value = TRUE)) test <- readOGR(fi...
# plot3.R # # Read data file, note the text file needs to be placed above the current directory # fulldata <- read.csv("../household_power_consumption.txt", header=TRUE, dec = ".", sep=";", na.strings = "?", stringsAsFactors = FALSE) pdata <- fulldata[fulldata$Date %in% c("1/2/2007","2/2/2007"), ] rm(fulldata) # Conve...
/plot3.R
no_license
PeterShenWFB/ExData_Plotting1
R
false
false
884
r
# plot3.R # # Read data file, note the text file needs to be placed above the current directory # fulldata <- read.csv("../household_power_consumption.txt", header=TRUE, dec = ".", sep=";", na.strings = "?", stringsAsFactors = FALSE) pdata <- fulldata[fulldata$Date %in% c("1/2/2007","2/2/2007"), ] rm(fulldata) # Conve...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xkcdline.R \name{xkcdline} \alias{xkcdline} \title{Draw lines or circunferences} \usage{ xkcdline(mapping, data, typexkcdline = "segment", mask = TRUE, ...) } \arguments{ \item{mapping}{Mapping between variables and aesthetics generated by \c...
/man/xkcdline.Rd
no_license
cran/xkcd
R
false
true
1,914
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xkcdline.R \name{xkcdline} \alias{xkcdline} \title{Draw lines or circunferences} \usage{ xkcdline(mapping, data, typexkcdline = "segment", mask = TRUE, ...) } \arguments{ \item{mapping}{Mapping between variables and aesthetics generated by \c...
library(spatstat) ### Name: rDiggleGratton ### Title: Perfect Simulation of the Diggle-Gratton Process ### Aliases: rDiggleGratton ### Keywords: spatial datagen ### ** Examples X <- rDiggleGratton(50, 0.02, 0.07)
/data/genthat_extracted_code/spatstat/examples/rDiggleGratton.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
223
r
library(spatstat) ### Name: rDiggleGratton ### Title: Perfect Simulation of the Diggle-Gratton Process ### Aliases: rDiggleGratton ### Keywords: spatial datagen ### ** Examples X <- rDiggleGratton(50, 0.02, 0.07)