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 |
|---|---|---|---|---|---|---|---|---|---|
# makes x based on colnames of mat if available
# if not available, just uses 1 to number of columns
default_x <- function(mat){
if (is.null(colnames(mat))){
return(seq_len(ncol(mat)))
} else{
colnames(mat)
}
}
# makes y based on rownames of mat if available
# if not available, just uses 1 to number of ro... | /R/utils.R | no_license | caleblareau/iheatmapr | R | false | false | 8,274 | r | # makes x based on colnames of mat if available
# if not available, just uses 1 to number of columns
default_x <- function(mat){
if (is.null(colnames(mat))){
return(seq_len(ncol(mat)))
} else{
colnames(mat)
}
}
# makes y based on rownames of mat if available
# if not available, just uses 1 to number of ro... |
#' Scales a \code{Raster*} by a power of a given integer and rounds to nearest
#' integer
#'
#' Useful for scaling and (optionally) rounding a \code{RasterLayer} to integer
#' so that a layer can be saved as an integer datatype such as "INT1U",
#' "INT1S", "INT2" or "INT2S".
#'
#' This function will run in parallel ... | /R/scale_raster.R | no_license | mauricioromero86/teamlucc | R | false | false | 4,018 | r | #' Scales a \code{Raster*} by a power of a given integer and rounds to nearest
#' integer
#'
#' Useful for scaling and (optionally) rounding a \code{RasterLayer} to integer
#' so that a layer can be saved as an integer datatype such as "INT1U",
#' "INT1S", "INT2" or "INT2S".
#'
#' This function will run in parallel ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{c57_nos2KO_mouse_metadata}
\alias{c57_nos2KO_mouse_metadata}
\title{c57b6J nos2KO meta data}
\format{
A data frame with 29 rows and 4 variables:
}
\usage{
c57_nos2KO_mouse_metadata
}
\description{
A a meta data fil... | /man/c57_nos2KO_mouse_metadata.Rd | no_license | cran/omu | R | false | true | 384 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{c57_nos2KO_mouse_metadata}
\alias{c57_nos2KO_mouse_metadata}
\title{c57b6J nos2KO meta data}
\format{
A data frame with 29 rows and 4 variables:
}
\usage{
c57_nos2KO_mouse_metadata
}
\description{
A a meta data fil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.r
\docType{data}
\name{Affy1_Distance_Final}
\alias{Affy1_Distance_Final}
\title{Targets for the microRNA analyzed from Affy1 plaform using Distance.}
\format{A data frame with 53399 rows and 8 variables:
\describe{
\item{miRNA}{miRNA ... | /man/Affy1_Distance_Final.Rd | no_license | SurajitBhattacharya/IntramiRExploreR | R | false | true | 901 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.r
\docType{data}
\name{Affy1_Distance_Final}
\alias{Affy1_Distance_Final}
\title{Targets for the microRNA analyzed from Affy1 plaform using Distance.}
\format{A data frame with 53399 rows and 8 variables:
\describe{
\item{miRNA}{miRNA ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colour-manip.r
\name{col2hcl}
\alias{col2hcl}
\title{Modify standard R colour in hcl colour space.}
\usage{
col2hcl(colour, h, c, l, alpha = 1)
}
\arguments{
\item{colour}{character vector of colours to be modified}
\item{h}{new hue}
\item{... | /man/col2hcl.Rd | no_license | nemochina2008/scales | R | false | true | 536 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colour-manip.r
\name{col2hcl}
\alias{col2hcl}
\title{Modify standard R colour in hcl colour space.}
\usage{
col2hcl(colour, h, c, l, alpha = 1)
}
\arguments{
\item{colour}{character vector of colours to be modified}
\item{h}{new hue}
\item{... |
# 1.0 Load Packages -----------------------------------------------------------
library(tidyverse)
library(Seurat)
library(patchwork)
library(marsh.utils)
library(viridis)
library(liger)
library(beepr)
library(scCustomize)
# 2.0 Load Liger Subsetted Objects --------------------------------------------
micro_merged_lig... | /04_Post-Mortem (Nuclei; Human)/37_Threshold & Pull Top Loading LIGER Factor Genes.R | permissive | samuel-marsh/Marsh_et-al_2022_scRNAseq_Dissociation_Artifacts | R | false | false | 8,386 | r | # 1.0 Load Packages -----------------------------------------------------------
library(tidyverse)
library(Seurat)
library(patchwork)
library(marsh.utils)
library(viridis)
library(liger)
library(beepr)
library(scCustomize)
# 2.0 Load Liger Subsetted Objects --------------------------------------------
micro_merged_lig... |
\name{bubble}
\alias{bubble}
\title{
Create a bubble plot of spatial data
}
\description{
Create a bubble plot of spatial data, with options for bicolour
residual plots (xyplot wrapper)
}
\usage{
bubble(obj, zcol = 1, ..., fill = TRUE, maxsize = 3, do.sqrt = TRUE, pch,
col = c("#d01c8b", "#4dac26"), key.entries = qua... | /sp/man/bubble.Rd | no_license | radfordneal/R-package-mods | R | false | false | 2,736 | rd | \name{bubble}
\alias{bubble}
\title{
Create a bubble plot of spatial data
}
\description{
Create a bubble plot of spatial data, with options for bicolour
residual plots (xyplot wrapper)
}
\usage{
bubble(obj, zcol = 1, ..., fill = TRUE, maxsize = 3, do.sqrt = TRUE, pch,
col = c("#d01c8b", "#4dac26"), key.entries = qua... |
## Dale W.R. Rosenthal, 2018
## You are free to distribute and use this code so long as you attribute
## it to me or cite the text.
## The legal disclaimer in _A Quantitative Primer on Investments with R_
## applies to this code. Use or distribution without these comment lines
## is forbidden.
library(Quandl)
library... | /FIN500_jloss/HW3/loss2_ch15-exercises.r | no_license | chicago-joe/RScripts | R | false | false | 4,367 | r | ## Dale W.R. Rosenthal, 2018
## You are free to distribute and use this code so long as you attribute
## it to me or cite the text.
## The legal disclaimer in _A Quantitative Primer on Investments with R_
## applies to this code. Use or distribution without these comment lines
## is forbidden.
library(Quandl)
library... |
## Put comments here that give an overall description of what your
## functions do
## Getting and caching the matrix inverse
makeCacheMatrix<-function(x=matrix()){
inverseM<-NULL
set<-function(y){
x<<-y
inverseM<<-NULL
}
get<-function() x
setinverse<-function(inverse)
inverseM<<-inverse
getinv... | /cachematrix.R | no_license | susdow/ProgrammingAssignment2 | R | false | false | 661 | r | ## Put comments here that give an overall description of what your
## functions do
## Getting and caching the matrix inverse
makeCacheMatrix<-function(x=matrix()){
inverseM<-NULL
set<-function(y){
x<<-y
inverseM<<-NULL
}
get<-function() x
setinverse<-function(inverse)
inverseM<<-inverse
getinv... |
\docType{methods}
\name{update,CDS-method}
\alias{update,CDS-method}
\title{update spread or ptsUpfront or upfront based on a new CDS class object.}
\usage{
\S4method{update}{CDS}(object, upfront = NULL, isPriceClean = FALSE,
ptsUpfront = NULL, spread = NULL, ...)
}
\arguments{
\item{object}{is a \code{CDS} class o... | /pkg/man/update-CDS-method.Rd | no_license | bdivet/CDS | R | false | false | 982 | rd | \docType{methods}
\name{update,CDS-method}
\alias{update,CDS-method}
\title{update spread or ptsUpfront or upfront based on a new CDS class object.}
\usage{
\S4method{update}{CDS}(object, upfront = NULL, isPriceClean = FALSE,
ptsUpfront = NULL, spread = NULL, ...)
}
\arguments{
\item{object}{is a \code{CDS} class o... |
#Since the dataset is quite big, I would rather read the data from just between 2007-02-01 and 2007-02-02
#Firstly, read the header.
hpname <- read.table("household_power_consumption.txt",sep=";",nrows=1)
#Secondly, read the lines between 66637 to 69516, which are the data between 2007-02-01 and 2007-02-02.
#I know th... | /plot1.R | no_license | hezheng2005/ExData_Plotting1 | R | false | false | 884 | r | #Since the dataset is quite big, I would rather read the data from just between 2007-02-01 and 2007-02-02
#Firstly, read the header.
hpname <- read.table("household_power_consumption.txt",sep=";",nrows=1)
#Secondly, read the lines between 66637 to 69516, which are the data between 2007-02-01 and 2007-02-02.
#I know th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deg.module.R
\docType{methods}
\name{seed.module}
\alias{seed.module}
\title{Predict the DEGs modules shared by patients}
\usage{
seed.module(deg, res.deg = NULL, test.patients = NULL, min.genes = 100,
min.patients = 25, overlap = 0.85, mod... | /man/seed.module.Rd | no_license | menggf/DEComplexDisease | R | false | true | 4,975 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deg.module.R
\docType{methods}
\name{seed.module}
\alias{seed.module}
\title{Predict the DEGs modules shared by patients}
\usage{
seed.module(deg, res.deg = NULL, test.patients = NULL, min.genes = 100,
min.patients = 25, overlap = 0.85, mod... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getBeIdSymbols.R
\name{getBeIdSymbols}
\alias{getBeIdSymbols}
\title{Get symbols of Biological Entity identifiers}
\usage{
getBeIdSymbols(ids, limForCache = 4000, ...)
}
\arguments{
\item{ids}{list of identifiers}
\item{limForCache}{if there... | /man/getBeIdSymbols.Rd | no_license | sankleta/BED | R | false | true | 1,159 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getBeIdSymbols.R
\name{getBeIdSymbols}
\alias{getBeIdSymbols}
\title{Get symbols of Biological Entity identifiers}
\usage{
getBeIdSymbols(ids, limForCache = 4000, ...)
}
\arguments{
\item{ids}{list of identifiers}
\item{limForCache}{if there... |
datafile <- read.table("household_power_consumption.txt", header = TRUE, sep=";", stringsAsFactors=FALSE,dec=".")
subsetData <- datafile[datafile$Date %in% c("1/2/2007","2/2/2007"),]
datetime <- strptime(paste(subsetData$Date, subsetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalReactivePower <- as.numeric(subsetData$... | /plot4.r | no_license | bhart26/ExData_Plotting1 | R | false | false | 1,131 | r | datafile <- read.table("household_power_consumption.txt", header = TRUE, sep=";", stringsAsFactors=FALSE,dec=".")
subsetData <- datafile[datafile$Date %in% c("1/2/2007","2/2/2007"),]
datetime <- strptime(paste(subsetData$Date, subsetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalReactivePower <- as.numeric(subsetData$... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mySpline.R
\name{mySpline}
\alias{mySpline}
\title{Spline regression}
\usage{
mySpline(x, Y, lambda, p = 100)
}
\arguments{
\item{x}{n x 1 vector or matrix of explanatory variables}
\item{Y}{n x 1 response vector}
\item{lambda}{regularizati... | /LMjw/man/mySpline.Rd | no_license | Alice86/StatsProgramming | R | false | true | 725 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mySpline.R
\name{mySpline}
\alias{mySpline}
\title{Spline regression}
\usage{
mySpline(x, Y, lambda, p = 100)
}
\arguments{
\item{x}{n x 1 vector or matrix of explanatory variables}
\item{Y}{n x 1 response vector}
\item{lambda}{regularizati... |
######
#' Modification of filled.contour
#'
#' Modification of filled.contour from graphics package
#'
#' @inheritParams graphics::filled.contour
#' @param y numeric same as \code{x}
#' @param frame.plot logical for frame
#'
#' @details This function was taken from the filled.contour3 script at \url{http://wiki.cbr.was... | /R/filled_contour.R | no_license | fawda123/CTDplot | R | false | false | 3,805 | r | ######
#' Modification of filled.contour
#'
#' Modification of filled.contour from graphics package
#'
#' @inheritParams graphics::filled.contour
#' @param y numeric same as \code{x}
#' @param frame.plot logical for frame
#'
#' @details This function was taken from the filled.contour3 script at \url{http://wiki.cbr.was... |
#Gelman Chapter 3, Question 4
#Script by C.W.W. Counsell
#Written on 28 January 2016
#clear the workspace---------------------------------------
rm(list=ls())
#load necessary packages
library(foreign) #needed for data
setwd(file.path('C:/Users/Chelsie/Documents/RClass/Donahue')) #connect to correct working directo... | /Ch.3/chap3q4.cwc.R | no_license | donahuem/Gelman_Hill_readinggroup | R | false | false | 4,293 | r | #Gelman Chapter 3, Question 4
#Script by C.W.W. Counsell
#Written on 28 January 2016
#clear the workspace---------------------------------------
rm(list=ls())
#load necessary packages
library(foreign) #needed for data
setwd(file.path('C:/Users/Chelsie/Documents/RClass/Donahue')) #connect to correct working directo... |
library(xgboost)
library(Matrix)
set.seed(777)
train <- read.csv("../DataDir/sant-train.csv")
test <- read.csv("../DataDir/sant-test.csv")
##### Removing IDs
train$ID <- NULL
test.id <- test$ID
test$ID <- NULL
##### Extracting TARGET
train.y <- train$TARGET
train$TARGET <- NULL
##### 0 count per line
count0 <- fu... | /Kaggle-XGB-sharedtuning.R | no_license | ScientistJeff/kaggle-comp | R | false | false | 2,184 | r | library(xgboost)
library(Matrix)
set.seed(777)
train <- read.csv("../DataDir/sant-train.csv")
test <- read.csv("../DataDir/sant-test.csv")
##### Removing IDs
train$ID <- NULL
test.id <- test$ID
test$ID <- NULL
##### Extracting TARGET
train.y <- train$TARGET
train$TARGET <- NULL
##### 0 count per line
count0 <- fu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flamingoDB.R
\name{createProgOasis}
\alias{createProgOasis}
\title{Create Prog Oasis}
\usage{
createProgOasis(dbSettings, progId, modelId, transformId)
}
\arguments{
\item{dbSettings}{setting object as returned by e.g. \link{flamingoDB}}
\it... | /BFE_RShiny/flamingo/man/createProgOasis.Rd | permissive | miraisolutions/OasisUI | R | false | true | 465 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flamingoDB.R
\name{createProgOasis}
\alias{createProgOasis}
\title{Create Prog Oasis}
\usage{
createProgOasis(dbSettings, progId, modelId, transformId)
}
\arguments{
\item{dbSettings}{setting object as returned by e.g. \link{flamingoDB}}
\it... |
library(COMBIA)
### Name: createUniquePertbs
### Title: Function to make unique perturbations of the replicates these
### will be used incase if CV is greater than threshold.
### Aliases: createUniquePertbs
### ** Examples
rslt <- createUniquePertbs(5)
| /data/genthat_extracted_code/COMBIA/examples/createUniquePertbs.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 263 | r | library(COMBIA)
### Name: createUniquePertbs
### Title: Function to make unique perturbations of the replicates these
### will be used incase if CV is greater than threshold.
### Aliases: createUniquePertbs
### ** Examples
rslt <- createUniquePertbs(5)
|
# clear variables and close windows
rm(list = ls(all = TRUE))
graphics.off()
# settings
s.0 = 40 # current stock price
k = 39 # strike price
tau = 0.6 # time to maturity in years
r = 0.03 # annual interest rate
sigma = 0.2 # volatility
# function for simulating stock price by geometric brownian... | /SFEMCEuropConv/SFEMCEuropConv.R | no_license | SteRi83/SFE | R | false | false | 3,556 | r | # clear variables and close windows
rm(list = ls(all = TRUE))
graphics.off()
# settings
s.0 = 40 # current stock price
k = 39 # strike price
tau = 0.6 # time to maturity in years
r = 0.03 # annual interest rate
sigma = 0.2 # volatility
# function for simulating stock price by geometric brownian... |
##' 'msi' compares the microsatellite instability (MSI) between cancer cell lines with highest and lowest dependencies of a gene set (signature).
##'
##'
##' @title msi
##' @param signature.name Names of a signature (format: character)
##' @param signature Gene names of a signature (format: vector)
##' @param cutoff.fr... | /R/msi.R | no_license | Raquelqcm/deplink | R | false | false | 6,211 | r | ##' 'msi' compares the microsatellite instability (MSI) between cancer cell lines with highest and lowest dependencies of a gene set (signature).
##'
##'
##' @title msi
##' @param signature.name Names of a signature (format: character)
##' @param signature Gene names of a signature (format: vector)
##' @param cutoff.fr... |
test.rdocapply.golden <- function() {
irisPath <- locate("smalldata/extdata/iris.csv")
iris.hex <- h2o.uploadFile(path = irisPath, destination_frame = "iris.hex")
summary(apply(iris.hex, 1, sum))
}
doTest("R Doc Apply", test.rdocapply.golden)
| /h2o-r/tests/testdir_docexamples/runit_Rdoc_apply.R | permissive | StephRoark/h2o-3 | R | false | false | 250 | r |
test.rdocapply.golden <- function() {
irisPath <- locate("smalldata/extdata/iris.csv")
iris.hex <- h2o.uploadFile(path = irisPath, destination_frame = "iris.hex")
summary(apply(iris.hex, 1, sum))
}
doTest("R Doc Apply", test.rdocapply.golden)
|
#' @keywords internal
#' @import ggplot2
#' @importFrom methods is
"_PACKAGE"
# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
## usethis namespace: end
NULL
| /R/TargetDecoy-package.R | no_license | ElkeDebrie/TargetDecoy | R | false | false | 247 | r | #' @keywords internal
#' @import ggplot2
#' @importFrom methods is
"_PACKAGE"
# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
## usethis namespace: end
NULL
|
rawData <- read.csv(file.path(getwd(),"household_power_consumption.txt"),sep=";")
rawData$Date <- as.Date(rawData$Date,format="%d/%m/%Y")
startDate <- as.Date("2007-02-01")
endDate <- as.Date("2007-02-02")
proData <- subset(rawData,rawData$Date>=startDate & rawData$Date<=endDate)
plot(as.numeric(as.character(proData... | /plot2.R | no_license | ozguzMete/ExData_Plotting1 | R | false | false | 525 | r | rawData <- read.csv(file.path(getwd(),"household_power_consumption.txt"),sep=";")
rawData$Date <- as.Date(rawData$Date,format="%d/%m/%Y")
startDate <- as.Date("2007-02-01")
endDate <- as.Date("2007-02-02")
proData <- subset(rawData,rawData$Date>=startDate & rawData$Date<=endDate)
plot(as.numeric(as.character(proData... |
#' squares.
#'
#' @name squares
#' @docType package
NULL
| /R/squares-package.r | no_license | jghenry/square | R | false | false | 57 | r | #' squares.
#'
#' @name squares
#' @docType package
NULL
|
# data wrangling/plotting
library(tidyverse)
library(janitor)
# other plotting
library(cowplot)
library(ggtext)
library(ggbeeswarm)
library(ZamanianLabThemes)
# misc
library(conflicted)
library(here)
# conflict resolution
conflict_prefer("filter", "dplyr")
# import and fit data ------------------------------------... | /Fig6/code/secondary_screen_fecundity.R | permissive | zamanianlab/MultivariateScreening-ms | R | false | false | 5,751 | r | # data wrangling/plotting
library(tidyverse)
library(janitor)
# other plotting
library(cowplot)
library(ggtext)
library(ggbeeswarm)
library(ZamanianLabThemes)
# misc
library(conflicted)
library(here)
# conflict resolution
conflict_prefer("filter", "dplyr")
# import and fit data ------------------------------------... |
#' Generate SQL expression for window functions
#'
#' `win_over()` makes it easy to generate the window function specification.
#' `win_absent()`, `win_rank()`, `win_recycled()`, and `win_cumulative()`
#' provide helpers for constructing common types of window functions.
#' `win_current_group()` and `win_current_order(... | /R/translate-sql-window.r | no_license | garrettgman/dplyr | R | false | false | 6,626 | r | #' Generate SQL expression for window functions
#'
#' `win_over()` makes it easy to generate the window function specification.
#' `win_absent()`, `win_rank()`, `win_recycled()`, and `win_cumulative()`
#' provide helpers for constructing common types of window functions.
#' `win_current_group()` and `win_current_order(... |
library(stm)
library(stringr)
library(dplyr)
library(tidyr)
library(readr)
library(ggplot2)
require(cleanNLP)
require(udpipe)
require(stringi)
library(knitr)
library(GGally)
library(network)
library(sna)
library(wordcloud)
library(factoextra)
library(reshape2)
library(cowplot)
library(gganimate)
library(forcats)
libra... | /vss_analysis/topic_modeling_vss.R | no_license | isabelladestefano/formalizing_interdisciplinary_collaboration | R | false | false | 16,450 | r | library(stm)
library(stringr)
library(dplyr)
library(tidyr)
library(readr)
library(ggplot2)
require(cleanNLP)
require(udpipe)
require(stringi)
library(knitr)
library(GGally)
library(network)
library(sna)
library(wordcloud)
library(factoextra)
library(reshape2)
library(cowplot)
library(gganimate)
library(forcats)
libra... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
#
# The function makeCacheMatrix gets as single input parameter a matrix
# supposed to be a square matrix, and returns an R object (a list) with
# the capacity of caching the inver... | /cachematrix.R | no_license | miquel-corral/ProgrammingAssignment2 | R | false | false | 4,806 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
#
# The function makeCacheMatrix gets as single input parameter a matrix
# supposed to be a square matrix, and returns an R object (a list) with
# the capacity of caching the inver... |
##
# loading the libraries
library(biomaRt)
library(ensembldb)
library(EnsDb.Hsapiens.v86)
library(GenomicFeatures)
gene.file <- read.csv("HALLMARK_ESTROGEN_RESPONSE_EARLY.csv", header=T, stringsAsFactors=F)
genes <- gene.file$gene
ensembl.id <- genes(EnsDb.Hsapiens.v86,
filter=list(GeneNameFilter... | /Data/MSigDB/HALLMARK_ESTROGEN_RESPONSE_EARLY/ensembl.id.R | no_license | haoboguo/NetBAS | R | false | false | 560 | r | ##
# loading the libraries
library(biomaRt)
library(ensembldb)
library(EnsDb.Hsapiens.v86)
library(GenomicFeatures)
gene.file <- read.csv("HALLMARK_ESTROGEN_RESPONSE_EARLY.csv", header=T, stringsAsFactors=F)
genes <- gene.file$gene
ensembl.id <- genes(EnsDb.Hsapiens.v86,
filter=list(GeneNameFilter... |
library(ape)
testtree <- read.tree("10467_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10467_1_unrooted.txt") | /codeml_files/newick_trees_processed_and_cleaned/10467_1/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("10467_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10467_1_unrooted.txt") |
library(maps)
mn.map = map(database = "county", region = "minnesota")
mn.map = map("state", "minnesota")
test = map(database = "city", "london")
RgoogleMaps
library(maptools)
minnesota.shp = readShapePoly("minnesota.shp", proj4string=CRS("+proj=longlat"))
library(mapdata)
map("worldHires", "Canada", xlim = c(-141... | /src/Maps2.R | no_license | m-tyrrell/London_Air_Pollution | R | false | false | 775 | r | library(maps)
mn.map = map(database = "county", region = "minnesota")
mn.map = map("state", "minnesota")
test = map(database = "city", "london")
RgoogleMaps
library(maptools)
minnesota.shp = readShapePoly("minnesota.shp", proj4string=CRS("+proj=longlat"))
library(mapdata)
map("worldHires", "Canada", xlim = c(-141... |
################## SNAP DPSA Tradeoff Analayis Framework #######################
# This wrapper enables the use of the Master simulation framework developed by Cody to test a variety of management interventions.
#Version 1.0 will be for one species under multiple management options, with potential for life history unc... | /Peru/Lorna Drum/Tradeoff Analysis_Peru_Lorna.R | no_license | SNAPwg/SNAP | R | false | false | 9,119 | r | ################## SNAP DPSA Tradeoff Analayis Framework #######################
# This wrapper enables the use of the Master simulation framework developed by Cody to test a variety of management interventions.
#Version 1.0 will be for one species under multiple management options, with potential for life history unc... |
\name{anoletree}
\alias{anoletree}
\title{Phylogeny of Greater Antillean anole ecomorph species with mapped discrete character}
\description{
A phylogeny of Greater Antillean anole species with a mapped discrete character - 'ecomorph class.' Data and tree are from Mahler et al. (2010).
}
\usage{
data(anoletree)
}
\for... | /man/anoletree.Rd | no_license | balthasarbickel/phytools | R | false | false | 710 | rd | \name{anoletree}
\alias{anoletree}
\title{Phylogeny of Greater Antillean anole ecomorph species with mapped discrete character}
\description{
A phylogeny of Greater Antillean anole species with a mapped discrete character - 'ecomorph class.' Data and tree are from Mahler et al. (2010).
}
\usage{
data(anoletree)
}
\for... |
getRP <- function(genus, species, envi) {
require(rgdal)
require(raster)
require(dismo)
require(XML)
require(rJava)
require(rgeos)
# Loads occurence data from GBIF and turns it into spatial points.
# set.seed(1991)
pres.orig <- gbif(genus=genus, species=paste(species, '*', sep=""), ext=extent(envi)... | /potentialmodel.R | no_license | spacetimeecologist/RangeFilling | R | false | false | 13,271 | r | getRP <- function(genus, species, envi) {
require(rgdal)
require(raster)
require(dismo)
require(XML)
require(rJava)
require(rgeos)
# Loads occurence data from GBIF and turns it into spatial points.
# set.seed(1991)
pres.orig <- gbif(genus=genus, species=paste(species, '*', sep=""), ext=extent(envi)... |
library(iRF)
### Name: rfImpute
### Title: Missing Value Imputations by randomForest
### Aliases: rfImpute rfImpute.formula rfImpute.default
### Keywords: regression classif tree
### ** Examples
data(iris)
iris.na <- iris
set.seed(111)
## artificially drop some data values.
for (i in 1:4) iris.na[sample(150, sample... | /data/genthat_extracted_code/iRF/examples/rfImpute.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 480 | r | library(iRF)
### Name: rfImpute
### Title: Missing Value Imputations by randomForest
### Aliases: rfImpute rfImpute.formula rfImpute.default
### Keywords: regression classif tree
### ** Examples
data(iris)
iris.na <- iris
set.seed(111)
## artificially drop some data values.
for (i in 1:4) iris.na[sample(150, sample... |
## following two functions are used to cache the inverse of a matrix.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse) inv <<- inverse
getInverse <- function() inv
list(se... | /cachematrix.R | no_license | techphonic/ProgrammingAssignment2 | R | false | false | 600 | r | ## following two functions are used to cache the inverse of a matrix.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse) inv <<- inverse
getInverse <- function() inv
list(se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sitednds.R
\name{sitednds}
\alias{sitednds}
\title{sitednds}
\usage{
sitednds(dndsout, min_recurr = 2, gene_list = NULL, theta_option = "mle",
syn_drivers = "TP53:T125T")
}
\arguments{
\item{dndsout}{Output object from dndscv. To generate a... | /man/sitednds.Rd | no_license | wangdi2014/dndscv | R | false | true | 2,417 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sitednds.R
\name{sitednds}
\alias{sitednds}
\title{sitednds}
\usage{
sitednds(dndsout, min_recurr = 2, gene_list = NULL, theta_option = "mle",
syn_drivers = "TP53:T125T")
}
\arguments{
\item{dndsout}{Output object from dndscv. To generate a... |
set.seed(26) #to repreduce our result
# Load the library
library(strucchange) #library CUSUM and Chow test
library(lmtest) #library for homoscedasticity and autocorrelation test
# Import the dataset
data<read.table(file="SBData.csv",sep=",",row.names=1,header=TRUE) #load all of the data
attach(data) #direct integra... | /M2 203/Econometrics/Superbowl.R | no_license | johnsibony/University-Project | R | false | false | 5,787 | r | set.seed(26) #to repreduce our result
# Load the library
library(strucchange) #library CUSUM and Chow test
library(lmtest) #library for homoscedasticity and autocorrelation test
# Import the dataset
data<read.table(file="SBData.csv",sep=",",row.names=1,header=TRUE) #load all of the data
attach(data) #direct integra... |
# Exercício 12 ------------------------------------------------------------
# Questão 1
# Calcule a média das variáveis contidas em airquality por mês.
sapply(airquality[4,], mean)
# Questão 2
# Calcule a média das variáveis contidas em airquality por dia.
sapply(airquality[5,], mean)
# Questão 3
# Calcule a mé... | /intro_r/exercicio12.R | no_license | andretrigueiro/graduation | R | false | false | 877 | r |
# Exercício 12 ------------------------------------------------------------
# Questão 1
# Calcule a média das variáveis contidas em airquality por mês.
sapply(airquality[4,], mean)
# Questão 2
# Calcule a média das variáveis contidas em airquality por dia.
sapply(airquality[5,], mean)
# Questão 3
# Calcule a mé... |
library(shiny)
type <- function(d) {
paste(d,ifelse(d==0,"",ifelse(d==90,"right",ifelse(d==180,"straight",ifelse(d==360,"complete",ifelse(d<90,"acute",ifelse(d<180,"obtuse","reflex")))))))
}
plotAngles <- function(d,l) {
par(mar=c(0,0,0,0))
plot(0,0,type="p",xlim=c(-6,6),ylim=c(-6,6),asp=1,frame=FALSE)
abline... | /server.R | no_license | vycska/DDP-project | R | false | false | 1,061 | r | library(shiny)
type <- function(d) {
paste(d,ifelse(d==0,"",ifelse(d==90,"right",ifelse(d==180,"straight",ifelse(d==360,"complete",ifelse(d<90,"acute",ifelse(d<180,"obtuse","reflex")))))))
}
plotAngles <- function(d,l) {
par(mar=c(0,0,0,0))
plot(0,0,type="p",xlim=c(-6,6),ylim=c(-6,6),asp=1,frame=FALSE)
abline... |
### Simulate an ARMA(1,1) process with ar=0.6, ma=-0.4, and mean=100.
set.seed(15716)
data1=arima.sim(n=60,list(ar=0.6,ma=0.4))+100
### Set aside the last 10 values to compare forecasts with actual values.
data1.1st=window(data1,end=50)
data1.2nd=window(data1,start=51)
### Using the first 50 values of the series, fi... | /Time Series/Forecast VS Actual Value/Compare.r | no_license | chunhuayu/Statistical-Model-Using-R | R | false | false | 1,548 | r | ### Simulate an ARMA(1,1) process with ar=0.6, ma=-0.4, and mean=100.
set.seed(15716)
data1=arima.sim(n=60,list(ar=0.6,ma=0.4))+100
### Set aside the last 10 values to compare forecasts with actual values.
data1.1st=window(data1,end=50)
data1.2nd=window(data1,start=51)
### Using the first 50 values of the series, fi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/appbot_words.R
\name{appbot_words}
\alias{appbot_words}
\title{appbot_words}
\usage{
appbot_words(
app_id,
method,
start = NULL,
end = NULL,
country = NULL,
sentiments = NULL,
dlangs = NULL,
version = NULL,
topic = NULL
)
}
... | /man/appbot_words.Rd | permissive | neugelb/rappbot | R | false | true | 1,111 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/appbot_words.R
\name{appbot_words}
\alias{appbot_words}
\title{appbot_words}
\usage{
appbot_words(
app_id,
method,
start = NULL,
end = NULL,
country = NULL,
sentiments = NULL,
dlangs = NULL,
version = NULL,
topic = NULL
)
}
... |
rs_data_main <- function(site = NULL, get_tile_chm =T, getAOP = F){
library(tidyverse)
#years = data.frame(scanDate = 2018, siteID = "OSBS", stringsAsFactors = F)
years <- readr::read_csv("./out/TOS_outputs/field_date_collection.csv") %>%
dplyr::filter(siteID %in% site)
if(site %in% c("HARV", "DSNY"))years[... | /src/main_AOP.R | permissive | MarconiS/NEONderive | R | false | false | 2,914 | r | rs_data_main <- function(site = NULL, get_tile_chm =T, getAOP = F){
library(tidyverse)
#years = data.frame(scanDate = 2018, siteID = "OSBS", stringsAsFactors = F)
years <- readr::read_csv("./out/TOS_outputs/field_date_collection.csv") %>%
dplyr::filter(siteID %in% site)
if(site %in% c("HARV", "DSNY"))years[... |
####################################################################################
### the following code is from the mpspline function source code in the GSIF package
### taken out some of the checks and uses a data.frame input to fit in with IAK code.
### profiles with overlap are found and overlapping depth in... | /mpspline.source.R | no_license | hlydecker/iak3d | R | false | false | 17,493 | r | ####################################################################################
### the following code is from the mpspline function source code in the GSIF package
### taken out some of the checks and uses a data.frame input to fit in with IAK code.
### profiles with overlap are found and overlapping depth in... |
# Week 5 - Twitter
# VIDEO 5
# Read in the data
tweets = read.csv("Downloads/tweets.csv", stringsAsFactors=FALSE)
str(tweets)
# Create dependent variable
tweets$Negative = as.factor(tweets$Avg <= -1)
table(tweets$Negative)
# Install new packages
install.packages("tm")
library(tm)
inst... | /week5/w5_Twitter.R | no_license | 4DD8A19D69F5324F9D49D17EF78BBBCC/The_Anal_ytics_Edge | R | false | false | 2,632 | r | # Week 5 - Twitter
# VIDEO 5
# Read in the data
tweets = read.csv("Downloads/tweets.csv", stringsAsFactors=FALSE)
str(tweets)
# Create dependent variable
tweets$Negative = as.factor(tweets$Avg <= -1)
table(tweets$Negative)
# Install new packages
install.packages("tm")
library(tm)
inst... |
library(ape)
testtree <- read.tree("11139_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11139_0_unrooted.txt") | /codeml_files/newick_trees_processed_and_cleaned/11139_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("11139_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11139_0_unrooted.txt") |
\encoding{UTF-8}
\name{SpParamsMED}
\alias{SpParamsMED}
\docType{data}
\title{
Parameter values for Mediterranean species
}
\description{
A data set of parameter values for Mediterranean species, resulting from bibliographic search, fit to empirical data or expert-based guesses.
}
\usage{data("SpParamsMED")}
\format{
... | /man/SpParamsMED.Rd | no_license | AntoineCabon/medfate | R | false | false | 7,049 | rd | \encoding{UTF-8}
\name{SpParamsMED}
\alias{SpParamsMED}
\docType{data}
\title{
Parameter values for Mediterranean species
}
\description{
A data set of parameter values for Mediterranean species, resulting from bibliographic search, fit to empirical data or expert-based guesses.
}
\usage{data("SpParamsMED")}
\format{
... |
# Chapter 10 Lab 3: NCI60 Data Example
# The NCI60 data
library(ISLR)
nci.labs=NCI60$labs
nci.data=NCI60$data
dim(nci.data)
nci.labs[1:4]
table(nci.labs)
# PCA on the NCI60 Data
pr.out=prcomp(nci.data, scale=TRUE)
Cols=function(vec){
cols=rainbow(length(unique(vec)))
return(cols[as.numeric(as.factor(vec))])
}
p... | /ch10.r | no_license | codingfinance/ISLR | R | false | false | 1,577 | r | # Chapter 10 Lab 3: NCI60 Data Example
# The NCI60 data
library(ISLR)
nci.labs=NCI60$labs
nci.data=NCI60$data
dim(nci.data)
nci.labs[1:4]
table(nci.labs)
# PCA on the NCI60 Data
pr.out=prcomp(nci.data, scale=TRUE)
Cols=function(vec){
cols=rainbow(length(unique(vec)))
return(cols[as.numeric(as.factor(vec))])
}
p... |
##' QGIS Algorithm provided by QGIS (native c++) Project points (Cartesian) (native:projectpointcartesian)
##'
##' @title QGIS algorithm Project points (Cartesian)
##'
##' @param INPUT `source` - Input layer. Path to a vector layer.
##' @param BEARING `number` - Bearing (degrees from North). A numeric value.
##' @param... | /R/qgis_projectpointcartesian.R | permissive | VB6Hobbyst7/r_package_qgis | R | false | false | 1,488 | r | ##' QGIS Algorithm provided by QGIS (native c++) Project points (Cartesian) (native:projectpointcartesian)
##'
##' @title QGIS algorithm Project points (Cartesian)
##'
##' @param INPUT `source` - Input layer. Path to a vector layer.
##' @param BEARING `number` - Bearing (degrees from North). A numeric value.
##' @param... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rbin-quantile.R
\name{rbin_quantiles}
\alias{rbin_quantiles}
\alias{plot.rbin_quantiles}
\title{Quantile binning}
\usage{
rbin_quantiles(
data = NULL,
response = NULL,
predictor = NULL,
bins = 10,
include_na = TRUE
)
... | /man/rbin_quantiles.Rd | no_license | cran/rbin | R | false | true | 1,041 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rbin-quantile.R
\name{rbin_quantiles}
\alias{rbin_quantiles}
\alias{plot.rbin_quantiles}
\title{Quantile binning}
\usage{
rbin_quantiles(
data = NULL,
response = NULL,
predictor = NULL,
bins = 10,
include_na = TRUE
)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/callCNV.R
\name{callGainCNV}
\alias{callGainCNV}
\alias{callLossCNV}
\alias{callCNVGene}
\title{Call CNVs.}
\usage{
callGainCNV(file, gapwidth)
callLossCNV(file, gapwidth)
callCNVGene(file, gapwidth)
}
\arguments{
\item{file}{A character st... | /man/callGainCNV.Rd | no_license | sanadamakomi/kfltCNV | R | false | true | 1,993 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/callCNV.R
\name{callGainCNV}
\alias{callGainCNV}
\alias{callLossCNV}
\alias{callCNVGene}
\title{Call CNVs.}
\usage{
callGainCNV(file, gapwidth)
callLossCNV(file, gapwidth)
callCNVGene(file, gapwidth)
}
\arguments{
\item{file}{A character st... |
# Jennifer Flynn jaflynn@wustl.edu
# June 17, 2020
# Load the packages
library(bedr)
# Define functions
determine_dmr_overlap <- function(dmr_list, overlap_list)
{
# Determine valid regions
is.overlap_list.valid <- is.valid.region(overlap_list);
overlap_list <- overlap_list[is.overlap_list.valid]
# Inters... | /Figure_2/fig2_panelA_plot_percentages_of_DMR_groups_overlapping_promoters_and_enhancers.r | no_license | jaflynn5/EAC_GBM_comparative_epigenomics | R | false | false | 13,636 | r | # Jennifer Flynn jaflynn@wustl.edu
# June 17, 2020
# Load the packages
library(bedr)
# Define functions
determine_dmr_overlap <- function(dmr_list, overlap_list)
{
# Determine valid regions
is.overlap_list.valid <- is.valid.region(overlap_list);
overlap_list <- overlap_list[is.overlap_list.valid]
# Inters... |
test_that("expect_that returns the input value", {
res <- expect_true(TRUE)
expect_equal(res, TRUE)
})
| /tests/testthat/test-expect_that.R | permissive | r-lib/testthat | R | false | false | 107 | r | test_that("expect_that returns the input value", {
res <- expect_true(TRUE)
expect_equal(res, TRUE)
})
|
#' commons_oral_question_times
#'
#' Imports data on House of Commons oral question times
#' @param cOralTimeType Accepts the arguments 'all' and 'ID'
#' @param all Returns a data frame with all of the oral question times.
#' @param ID Requests a requestion time ID, and returns a data frame of that question time.
#' @... | /R/commons_oral_question_times.R | no_license | soedr/hansard | R | false | false | 3,313 | r |
#' commons_oral_question_times
#'
#' Imports data on House of Commons oral question times
#' @param cOralTimeType Accepts the arguments 'all' and 'ID'
#' @param all Returns a data frame with all of the oral question times.
#' @param ID Requests a requestion time ID, and returns a data frame of that question time.
#' @... |
# Write code here to load the data you downloaded in download_data.R
library(data.table)
adult <- data.table(readRDS("./Data/adult.rds"))
adult_test <- data.table(readRDS("./Data/adult.rds"))
# You might choose to do any resampling here to ensure it is consistent across
# models
set.seed(7482) # set seed for reprodu... | /03_load_data.R | no_license | huangjjv1/MISCADA_CoreIIA_Classification | R | false | false | 420 | r | # Write code here to load the data you downloaded in download_data.R
library(data.table)
adult <- data.table(readRDS("./Data/adult.rds"))
adult_test <- data.table(readRDS("./Data/adult.rds"))
# You might choose to do any resampling here to ensure it is consistent across
# models
set.seed(7482) # set seed for reprodu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{n_stations}
\alias{n_stations}
\title{Number of AHCCD stations}
\usage{
n_stations()
}
\value{
The number of stations as a length-1 integer
}
\description{
Returns the number of stations in the AHCCD with climate data
}
\author{... | /man/n_stations.Rd | permissive | gavinsimpson/canadian-climate-stripes | R | false | true | 340 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{n_stations}
\alias{n_stations}
\title{Number of AHCCD stations}
\usage{
n_stations()
}
\value{
The number of stations as a length-1 integer
}
\description{
Returns the number of stations in the AHCCD with climate data
}
\author{... |
# =============
# === Setup ===
# =============
# install packages from github
library(devtools)
install_github("azure/razurebatch")
install_github("azure/doazureparallel")
# import packages
library(doAzureParallel)
# create credentials config files
generateCredentialsConfig("credentials.json")
# set azure credenti... | /samples/plyr/plyr_example.R | permissive | dtenenba/doAzureParallel | R | false | false | 1,117 | r | # =============
# === Setup ===
# =============
# install packages from github
library(devtools)
install_github("azure/razurebatch")
install_github("azure/doazureparallel")
# import packages
library(doAzureParallel)
# create credentials config files
generateCredentialsConfig("credentials.json")
# set azure credenti... |
\name{university1992}
\alias{university1992}
\docType{data}
\title{Druzdzel and Glymour's University Data 1992}
\description{
Data from a study by the \emph{U.S. News and World Report} magazine with
the purpose of college ranking. Druzdzel and Glymour choose 8 variables
and after removing some universities give a corre... | /man/university1992.Rd | no_license | cran/SIN | R | false | false | 2,148 | rd | \name{university1992}
\alias{university1992}
\docType{data}
\title{Druzdzel and Glymour's University Data 1992}
\description{
Data from a study by the \emph{U.S. News and World Report} magazine with
the purpose of college ranking. Druzdzel and Glymour choose 8 variables
and after removing some universities give a corre... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/weights_hist.R
\name{weights_hist}
\alias{weights_hist}
\title{Histogram of weights}
\usage{
weights_hist(w, title = NULL)
}
\arguments{
\item{w}{vector of weights.}
\item{title}{character string. The title for the plot.}
}
\description{
His... | /man/weights_hist.Rd | no_license | jgabry/RHhelpers | R | false | true | 340 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/weights_hist.R
\name{weights_hist}
\alias{weights_hist}
\title{Histogram of weights}
\usage{
weights_hist(w, title = NULL)
}
\arguments{
\item{w}{vector of weights.}
\item{title}{character string. The title for the plot.}
}
\description{
His... |
29f1c9c262ce6d581e9ca9600fc99200 query05_query71_1344n.qdimacs 619 1757 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query05_query71_1344n/query05_query71_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 71 | r | 29f1c9c262ce6d581e9ca9600fc99200 query05_query71_1344n.qdimacs 619 1757 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/magma.tileplot.r
\name{magma.tileplot}
\alias{magma.tileplot}
\title{MAGMA tileplot}
\usage{
magma.tileplot(ctd, results, height = 13, width = 4, annotLevel = 1,
fileTag = "", output_path)
}
\arguments{
\item{ctd}{Cell type data strucutre c... | /man/magma.tileplot.Rd | no_license | kevmanderson/MAGMA_Celltyping_mod | R | false | true | 756 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/magma.tileplot.r
\name{magma.tileplot}
\alias{magma.tileplot}
\title{MAGMA tileplot}
\usage{
magma.tileplot(ctd, results, height = 13, width = 4, annotLevel = 1,
fileTag = "", output_path)
}
\arguments{
\item{ctd}{Cell type data strucutre c... |
## Put comments here that give an overall description of what your
## functions do
# The function, `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 valu... | /cachematrix.R | no_license | hussardbleu/ProgrammingAssignment2 | R | false | false | 1,315 | r | ## Put comments here that give an overall description of what your
## functions do
# The function, `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 valu... |
#
# title : plotEnsCODiscCentered.R
# purpose : R script to my own version of corner plot for the posterior
# : samples of model calibration using:
# : - CO output type
# : - Model discrepancy, variance
# : - Model discrepancy, mean (centered)
# author : WD4... | /figures/defense/r-scripts/plotEnsCODiscCentered.R | no_license | damar-wicaksono/wd41-thesis | R | false | false | 2,151 | r | #
# title : plotEnsCODiscCentered.R
# purpose : R script to my own version of corner plot for the posterior
# : samples of model calibration using:
# : - CO output type
# : - Model discrepancy, variance
# : - Model discrepancy, mean (centered)
# author : WD4... |
#' experimental_data_import
#'
#' Allows input of experimental info about a species
#' @param overall_info required table formatted data containing all the experimental info about a species. Defaults to NULL
#' @param get_only_annotated will get only the SNP's annotated to a gene if true, defaults to TRUE
#' @param ann... | /topCandidateTest/R/experimental_data_import.R | no_license | BrodyJackson/top_candidate | R | false | false | 1,650 | r | #' experimental_data_import
#'
#' Allows input of experimental info about a species
#' @param overall_info required table formatted data containing all the experimental info about a species. Defaults to NULL
#' @param get_only_annotated will get only the SNP's annotated to a gene if true, defaults to TRUE
#' @param ann... |
#' Identify Regions of Significant Differences
#'
#' \code{SigDiff} computes the significance of the pairwise differences
#' relative to the mean and variance of all differences between the two input
#' datasets. This is useful for identifying regions of significant difference
#' between two datasets (e.g., different ... | /R/SigDiff.R | no_license | jjvanderwal/SDMTools | R | false | false | 5,559 | r | #' Identify Regions of Significant Differences
#'
#' \code{SigDiff} computes the significance of the pairwise differences
#' relative to the mean and variance of all differences between the two input
#' datasets. This is useful for identifying regions of significant difference
#' between two datasets (e.g., different ... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{ex22.10}
\alias{ex22.10}
\title{Data from Exercise 22.10}
\format{\Sexpr[results=rd]{bps5data:::doc_data("ex22.10") }}
\source{
\url{ http://bcs.whfreeman.com/bps5e/content/cat_030/PC-Text.zip }
}
\usage{
d... | /man/ex22.10.Rd | no_license | jrnold/bps5data | R | false | false | 1,312 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{ex22.10}
\alias{ex22.10}
\title{Data from Exercise 22.10}
\format{\Sexpr[results=rd]{bps5data:::doc_data("ex22.10") }}
\source{
\url{ http://bcs.whfreeman.com/bps5e/content/cat_030/PC-Text.zip }
}
\usage{
d... |
library(dplyr)
##Read in features data and activity labels
features<-read.table("features.txt")
activity_labels<-read.table("activity_labels.txt")
##Read in test data
test_set<-read.table("X_test.txt")
test_labels<-read.table("y_test.txt")
test_subject<-read.table("subject_test.txt")
##Read in training ... | /run_analysis.R | no_license | nishibrown/Getting_and_Cleaning_Data | R | false | false | 4,619 | r | library(dplyr)
##Read in features data and activity labels
features<-read.table("features.txt")
activity_labels<-read.table("activity_labels.txt")
##Read in test data
test_set<-read.table("X_test.txt")
test_labels<-read.table("y_test.txt")
test_subject<-read.table("subject_test.txt")
##Read in training ... |
subplot <- function(X,Y,subtype,xlab,ylab){
subtypeName = c('P','N','C','M','U')
subtypeColor = c('red','orange','green','blue','grey')
plot(X,Y,cex=0.5,col='white',xlab=xlab,ylab=ylab)
f = lm(Y ~ X)
g_a = as.numeric(f$coefficient['X'])
g_t = cor.test(X,Y)
txt = sprintf('ALL r=%.2f, p=%.1E, a=%... | /NSL/JW/scatter_subtype_TGFb_VEGF.R | no_license | SMC1/JK1 | R | false | false | 3,768 | r | subplot <- function(X,Y,subtype,xlab,ylab){
subtypeName = c('P','N','C','M','U')
subtypeColor = c('red','orange','green','blue','grey')
plot(X,Y,cex=0.5,col='white',xlab=xlab,ylab=ylab)
f = lm(Y ~ X)
g_a = as.numeric(f$coefficient['X'])
g_t = cor.test(X,Y)
txt = sprintf('ALL r=%.2f, p=%.1E, a=%... |
### Exploratory Data Analysis - Project 1
# Plot 3
### Loading the data
# Setting the working directory
setwd("C:/Users/Aleksander/Desktop/Exploratory Data Analysis")
# calculating how much memory the dataset will require
round(2075259 * 9 *8 / 2^{20}/1024, 2) # 2,075,259 rows, 9 columns and 8 bytes for on... | /plot3_scrypt.R | no_license | Aleksander20032003/ExData_Plotting1 | R | false | false | 1,578 | r | ### Exploratory Data Analysis - Project 1
# Plot 3
### Loading the data
# Setting the working directory
setwd("C:/Users/Aleksander/Desktop/Exploratory Data Analysis")
# calculating how much memory the dataset will require
round(2075259 * 9 *8 / 2^{20}/1024, 2) # 2,075,259 rows, 9 columns and 8 bytes for on... |
## -- C-STAD: plotting results ------------ ##
## Date: 24/06/2019
## Author: Ugofilippo Basellini
## Comments:
## - FIGURE 7: Age-at-death distributions
##
## ------------------------------------------ ##
## cleaning the workspace
rm(list=ls(all=TRUE))
library(RColorBrewer)
library(fields)
library(colorspace)
... | /R/Figures/F8_ADD.R | no_license | ubasellini/C-STAD | R | false | false | 6,008 | r | ## -- C-STAD: plotting results ------------ ##
## Date: 24/06/2019
## Author: Ugofilippo Basellini
## Comments:
## - FIGURE 7: Age-at-death distributions
##
## ------------------------------------------ ##
## cleaning the workspace
rm(list=ls(all=TRUE))
library(RColorBrewer)
library(fields)
library(colorspace)
... |
library("data.table")
#setwd("~/Desktop/datasciencecoursera/4_Exploratory_Data_Analysis/project/data")
#Reads in data from file then subsets data for specified dates
powerDT <- data.table::fread(input = "household_power_consumption.txt"
, na.strings="?"
)
# Prevents Scientific Notation
p... | /plot4.R | no_license | kt1408/ExData_Plotting1 | R | false | false | 1,518 | r | library("data.table")
#setwd("~/Desktop/datasciencecoursera/4_Exploratory_Data_Analysis/project/data")
#Reads in data from file then subsets data for specified dates
powerDT <- data.table::fread(input = "household_power_consumption.txt"
, na.strings="?"
)
# Prevents Scientific Notation
p... |
# "genes" is a vector including name of all genes in the experiment
# "responses" is a matrix which combines all data sets sequentially (including expression profiles of all genes under different conditions)
# "regressors" is a matrix which combines all data sets sequentially (including expression profiles of regul... | /Mul-fLASSO.r | permissive | dcolinmorgan/R | R | false | false | 3,354 | r |
# "genes" is a vector including name of all genes in the experiment
# "responses" is a matrix which combines all data sets sequentially (including expression profiles of all genes under different conditions)
# "regressors" is a matrix which combines all data sets sequentially (including expression profiles of regul... |
getwd()
library(rvest)
library(httr)
site = 'http://unico2013.dothome.co.kr/crawling/post.php'
#URL을 그냥 읽는 것은 GET방식(디폴트)
#post방식이니까 POST 그냥 URL로 사이트 불러올 수 없다.
#메서드 형식을 POST로 요청한 폼 태그 이어야지 요청할 수 있다.
#encode는 form이라고 생각하면 된다. 웹 크롤링이니까 / 가끔 첨부파일 업로드형식일 때 multipart
#전달되는 쿼리의 제한도 없고, 숨길 수 있는 기능이 추가되었다_POST 방식
#
p.site ... | /R_training/MyCode/2주_Web Basic/day4/1-2 postcrawling.R | no_license | BaeYS-marketing/R | R | false | false | 861 | r | getwd()
library(rvest)
library(httr)
site = 'http://unico2013.dothome.co.kr/crawling/post.php'
#URL을 그냥 읽는 것은 GET방식(디폴트)
#post방식이니까 POST 그냥 URL로 사이트 불러올 수 없다.
#메서드 형식을 POST로 요청한 폼 태그 이어야지 요청할 수 있다.
#encode는 form이라고 생각하면 된다. 웹 크롤링이니까 / 가끔 첨부파일 업로드형식일 때 multipart
#전달되는 쿼리의 제한도 없고, 숨길 수 있는 기능이 추가되었다_POST 방식
#
p.site ... |
library(entropart)
### Name: PDFD
### Title: Phylogenetic Diversity / Functional Diversity of a Community
### Aliases: PDFD
### ** Examples
# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest
# and their taxonomy)
data(Paracou618)
# Ps is the vector of probabilities
Ps <- Par... | /data/genthat_extracted_code/entropart/examples/PDFD.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 426 | r | library(entropart)
### Name: PDFD
### Title: Phylogenetic Diversity / Functional Diversity of a Community
### Aliases: PDFD
### ** Examples
# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest
# and their taxonomy)
data(Paracou618)
# Ps is the vector of probabilities
Ps <- Par... |
## ----import-vector, warning=FALSE----------------------------------------
# load libraries required to work with spatial data
library(raster) # commands to view metadata from vector objects
library(rgdal) # library of common GIS functions
# Open shapefile
roads_HARV <- readOGR("NEON-DS-Site-Layout-Files/HARV","HARV... | /code/R/dc-spatio-temporal-intro/02-spatial-data-formats.R | no_license | statkclee/NEON-R-Spatio-Temporal-Data-and-Management-Intro | R | false | false | 2,139 | r | ## ----import-vector, warning=FALSE----------------------------------------
# load libraries required to work with spatial data
library(raster) # commands to view metadata from vector objects
library(rgdal) # library of common GIS functions
# Open shapefile
roads_HARV <- readOGR("NEON-DS-Site-Layout-Files/HARV","HARV... |
## Test case (runs Chad example)
require(raster)
source("helpers.R")
load("./data/chadExample_hydra.RData")
## Parameters
nyrs = 1 # of years to run the model after January 1937
startyear = 1 # year to start run (from January 1937)
converg = 1 # 0 if set convergence helper, 1 if not
laket = 0 # 0 if predict lakes, ... | /rhydra_bclake.R | no_license | simonbrewer/bclake | R | false | false | 953 | r | ## Test case (runs Chad example)
require(raster)
source("helpers.R")
load("./data/chadExample_hydra.RData")
## Parameters
nyrs = 1 # of years to run the model after January 1937
startyear = 1 # year to start run (from January 1937)
converg = 1 # 0 if set convergence helper, 1 if not
laket = 0 # 0 if predict lakes, ... |
## Forked Project of rdpeng
## For the purpose of completing Programming Assignment 2 - Peer Assessment
## ## ## ## ## ## ## ## ## ## ## ## ## ##
## Completed by: Mugammad Ameen Jakoet
## Date: 27 April 2014
## Place: Cape Town, South Africa.
## makeCacheMatrix
# This function serves to provide the user with the abil... | /cachematrix.R | no_license | the13thson/ProgrammingAssignment2 | R | false | false | 2,357 | r | ## Forked Project of rdpeng
## For the purpose of completing Programming Assignment 2 - Peer Assessment
## ## ## ## ## ## ## ## ## ## ## ## ## ##
## Completed by: Mugammad Ameen Jakoet
## Date: 27 April 2014
## Place: Cape Town, South Africa.
## makeCacheMatrix
# This function serves to provide the user with the abil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/technical.efficiency.change.R
\name{technical.efficiency.change}
\alias{technical.efficiency.change}
\title{Technical and efficiency change estimation}
\usage{
technical.efficiency.change(df, input.var.names, output.var.name,
firm.var.name,... | /man/technical.efficiency.change.Rd | no_license | tkmckenzie/snfa | R | false | true | 2,642 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/technical.efficiency.change.R
\name{technical.efficiency.change}
\alias{technical.efficiency.change}
\title{Technical and efficiency change estimation}
\usage{
technical.efficiency.change(df, input.var.names, output.var.name,
firm.var.name,... |
## define function to calculate summary statistics
## Summarizes data.
## Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95%).
## data: a data frame.
## measurevar: the name of a column that contains the variable to be summariezed
## groupvars: a vector contain... | /figures/summarySE.R | no_license | Otoliths/Magel_etal_2020_EcolApp | R | false | false | 2,030 | r | ## define function to calculate summary statistics
## Summarizes data.
## Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95%).
## data: a data frame.
## measurevar: the name of a column that contains the variable to be summariezed
## groupvars: a vector contain... |
# Copyright (c) 2014, 2015, 2018 the SAVI authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
#
##################
# BEGIN FUNCTION #
##################
fluidPage(
###########
# STYLING #
###########
#tags$head(HTML("<!-- Global site tag (gtag.js) - Google Analytics -... | /ui.R | permissive | Sheffield-Accelerated-VoI/SAVI | R | false | false | 43,273 | r | # Copyright (c) 2014, 2015, 2018 the SAVI authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
#
##################
# BEGIN FUNCTION #
##################
fluidPage(
###########
# STYLING #
###########
#tags$head(HTML("<!-- Global site tag (gtag.js) - Google Analytics -... |
#Installing required packages
install.packages("ggplot2") #installing the ggplot2 package
install.packages("tidyverse") #installing the tidyverse package
install.packages("countrycode")
#Uploading the installed packages
library(ggplot2)
library(tidyverse)
library(countrycode)
#Import kiva_loans, kiva_mpi_region_locat... | /content/teaching/datascience/Kiva Submission - Team B/Q3.R | permissive | haziqj/academic-kickstart | R | false | false | 3,994 | r | #Installing required packages
install.packages("ggplot2") #installing the ggplot2 package
install.packages("tidyverse") #installing the tidyverse package
install.packages("countrycode")
#Uploading the installed packages
library(ggplot2)
library(tidyverse)
library(countrycode)
#Import kiva_loans, kiva_mpi_region_locat... |
## A set of functions to perform tidy manipulations on data and retain information about them for the purposes of documentation
# This is a proof of concept
# requires the following packages
# install.packages("DiagrammeR")
# install.packages("DiagrammeRsvg")
# df = tibble(a=c(1,1,1,2,2,2), b=c(1,2,3,1,2,3), c=c(1,2,3... | /provenance.R | permissive | terminological/vui-202012-1 | R | false | false | 15,795 | r | ## A set of functions to perform tidy manipulations on data and retain information about them for the purposes of documentation
# This is a proof of concept
# requires the following packages
# install.packages("DiagrammeR")
# install.packages("DiagrammeRsvg")
# df = tibble(a=c(1,1,1,2,2,2), b=c(1,2,3,1,2,3), c=c(1,2,3... |
# DATA
#' Geodata of Swiss municipalities, districts, cantons and lakes (2016)
#'
#' A ggplot2-compatible data frame containing geodata of Swiss municipalities, districts,
#' cantons and lakes for 2016. The data is made publicly available by the Swiss
#' Federal Statistical Office. The administrative division... | /R/plots.R | no_license | cran/RSwissMaps | R | false | false | 65,755 | r | # DATA
#' Geodata of Swiss municipalities, districts, cantons and lakes (2016)
#'
#' A ggplot2-compatible data frame containing geodata of Swiss municipalities, districts,
#' cantons and lakes for 2016. The data is made publicly available by the Swiss
#' Federal Statistical Office. The administrative division... |
genotype_compare_h <-
function(gf1, gf2, maf_gf, threshold)
{
require(tidyverse)
require(cowplot)
gf1 = gf1 %>%
mutate(SNP = paste0(X1,X2)) %>%
select(-X1,-X2,-X3,-X4) %>%
select(SNP, everything())
rand_df = gf1 %>%
select(-SNP)
rand_df1 = rand_df[,sample(ncol(rand_df))]
names(rand_df1) <- paste0('X'... | /Scripts_MasterCopies/geno_compare_function_hist_only.R | no_license | John-Mola/SNPs_to_COLONY | R | false | false | 3,875 | r | genotype_compare_h <-
function(gf1, gf2, maf_gf, threshold)
{
require(tidyverse)
require(cowplot)
gf1 = gf1 %>%
mutate(SNP = paste0(X1,X2)) %>%
select(-X1,-X2,-X3,-X4) %>%
select(SNP, everything())
rand_df = gf1 %>%
select(-SNP)
rand_df1 = rand_df[,sample(ncol(rand_df))]
names(rand_df1) <- paste0('X'... |
library(testthat)
test_check('sbtools') | /tests/testthat.R | permissive | dblodgett-usgs/sbtools | R | false | false | 39 | r | library(testthat)
test_check('sbtools') |
test_that("Simple model runs with mcmcAveProb", {
data("jags_logit")
fit <- jags_logit
data("sim_data")
datjags <- as.list(sim_data)
### average value approach
xmat <- model.matrix(Y ~ X1 + X2, data = sim_data)
mcmc <- coda::as.mcmc(fit)
mcmc_mat <- as.matrix(mcmc)[, 1:ncol(xmat)]
X1_sim <- ... | /tests/testthat/test_mcmcAveProb.R | no_license | cran/BayesPostEst | R | false | false | 2,780 | r |
test_that("Simple model runs with mcmcAveProb", {
data("jags_logit")
fit <- jags_logit
data("sim_data")
datjags <- as.list(sim_data)
### average value approach
xmat <- model.matrix(Y ~ X1 + X2, data = sim_data)
mcmc <- coda::as.mcmc(fit)
mcmc_mat <- as.matrix(mcmc)[, 1:ncol(xmat)]
X1_sim <- ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/lazy.verbatim.end.R, R/lazy.verbatim.start.R
\name{lazy.verbatim.end}
\alias{lazy.verbatim.end}
\alias{lazy.verbatim.start}
\title{Verbatim Environments}
\usage{
lazy.verbatim.end()
lazy.verbatim.start()
}
\description{
T... | /man/lazy.verbatim.start.Rd | no_license | lixinyao/lazyWeave | R | false | false | 1,350 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/lazy.verbatim.end.R, R/lazy.verbatim.start.R
\name{lazy.verbatim.end}
\alias{lazy.verbatim.end}
\alias{lazy.verbatim.start}
\title{Verbatim Environments}
\usage{
lazy.verbatim.end()
lazy.verbatim.start()
}
\description{
T... |
.calibrar = function (par, fn, gr = NULL, ..., lower = -Inf, upper = Inf, active=NULL,
control = list(), hessian = FALSE, method = NULL, skeleton=NULL,
replicates=1) {
skeleton = skeleton
if(is.null(skeleton)) skeleton = as.relistable(par)
npar = length(pa... | /R/calibrar-optimWrapper.R | no_license | zanbi/calibrar | R | false | false | 17,374 | r | .calibrar = function (par, fn, gr = NULL, ..., lower = -Inf, upper = Inf, active=NULL,
control = list(), hessian = FALSE, method = NULL, skeleton=NULL,
replicates=1) {
skeleton = skeleton
if(is.null(skeleton)) skeleton = as.relistable(par)
npar = length(pa... |
# calcOBP
# calculate the OBP for a given dataset
# inputs
# data - data for all the pitches a batter has seen
# fields needed:
# pitch_result - see codebook
calcOBP <- function(data) {
# get atbats as the number of times the batter has seen 0 - 0 count
# this may not be the best way to do it
atbats <- dim(f... | /R/calc_adv_stats.R | no_license | CollinMurdock/softball-analysis-functions | R | false | false | 1,038 | r |
# calcOBP
# calculate the OBP for a given dataset
# inputs
# data - data for all the pitches a batter has seen
# fields needed:
# pitch_result - see codebook
calcOBP <- function(data) {
# get atbats as the number of times the batter has seen 0 - 0 count
# this may not be the best way to do it
atbats <- dim(f... |
source("presentation/firstAnal.R")
byTime <- testData[,.(round, group_num, cond, iscorrGr)] %>% unique() %>% spread(key = round, value = iscorrGr)
cummeans <- byTime[,-(1:2)] %>% apply(1, cummean) %>% t
averagecummeans <- cbind(unique(byTime[,cond]),
sapply(1:3, function(i) cummeans[byTime[,co... | /presentation/spageti1.R | no_license | itamarfaran/DissAndGroupAdapt | R | false | false | 1,595 | r | source("presentation/firstAnal.R")
byTime <- testData[,.(round, group_num, cond, iscorrGr)] %>% unique() %>% spread(key = round, value = iscorrGr)
cummeans <- byTime[,-(1:2)] %>% apply(1, cummean) %>% t
averagecummeans <- cbind(unique(byTime[,cond]),
sapply(1:3, function(i) cummeans[byTime[,co... |
## makeCacheMatrix creates a special "matrix", which is really a list containing a function to
## - set the value of the matrix
## - get the value of the matrix
## - set the value of the inverse
## - get the value of the inverse
makeCacheMatrix <- function(x = matrix()) {
I <- NULL
set <- function(y) {
... | /cachematrix.R | no_license | Raphaelxiv/DataScience | R | false | false | 1,191 | r | ## makeCacheMatrix creates a special "matrix", which is really a list containing a function to
## - set the value of the matrix
## - get the value of the matrix
## - set the value of the inverse
## - get the value of the inverse
makeCacheMatrix <- function(x = matrix()) {
I <- NULL
set <- function(y) {
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stat-bin.R
\docType{data}
\name{ratlas-ggproto}
\alias{ratlas-ggproto}
\alias{StatBin2}
\title{Base ggproto classes for ratlas}
\description{
Base ggproto classes for ratlas
}
\seealso{
\link{ggproto}
}
\keyword{datasets}
\keyword{internal}
| /man/ratlas-ggproto.Rd | no_license | atlas-aai/ratlas | R | false | true | 319 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stat-bin.R
\docType{data}
\name{ratlas-ggproto}
\alias{ratlas-ggproto}
\alias{StatBin2}
\title{Base ggproto classes for ratlas}
\description{
Base ggproto classes for ratlas
}
\seealso{
\link{ggproto}
}
\keyword{datasets}
\keyword{internal}
|
library(data.table)
library(dplyr)
library(ggplot2)
angle <- 13*pi/180
t <- 1:2000 * angle
x <- sin(t)
y <- cos(t)
df <- data_frame(t, x, y)
p <- ggplot(df, aes(x*t, y*t))
# spiral
# point shape = 1 "circle"
p + geom_point(size = 80, alpha = 0.1, shape = 1, color = "magenta4")+
theme(legend.position="none",
... | /spiral_golden_angle.R | no_license | oubielamir/Golden-Angle | R | false | false | 1,143 | r | library(data.table)
library(dplyr)
library(ggplot2)
angle <- 13*pi/180
t <- 1:2000 * angle
x <- sin(t)
y <- cos(t)
df <- data_frame(t, x, y)
p <- ggplot(df, aes(x*t, y*t))
# spiral
# point shape = 1 "circle"
p + geom_point(size = 80, alpha = 0.1, shape = 1, color = "magenta4")+
theme(legend.position="none",
... |
#!/usr/bin/env Rscript
suppressPackageStartupMessages(library("optparse"))
suppressPackageStartupMessages(library("pROC"))
option_list <- list(
make_option(c("-v", "--verbose"), action="store_true", default=TRUE,
help="Print extra output [default]"),
make_option(c("-i", "--ifile"), type="character"... | /src/roc.R | no_license | marlanbar/master-thesis | R | false | false | 4,259 | r | #!/usr/bin/env Rscript
suppressPackageStartupMessages(library("optparse"))
suppressPackageStartupMessages(library("pROC"))
option_list <- list(
make_option(c("-v", "--verbose"), action="store_true", default=TRUE,
help="Print extra output [default]"),
make_option(c("-i", "--ifile"), type="character"... |
## This project is a partial fulfillment of Getting and Cleaning Data course by John Hopkins University.
# Given Data: A link https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
# consists of
# 1. Training Data
# 2. Test Data
# 3. Features Data
# 4. Activity Label
# 5. Fe... | /Getting_Cleaning_data/run_analysis.R | no_license | socratesk/datasciencecoursera | R | false | false | 5,159 | r | ## This project is a partial fulfillment of Getting and Cleaning Data course by John Hopkins University.
# Given Data: A link https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
# consists of
# 1. Training Data
# 2. Test Data
# 3. Features Data
# 4. Activity Label
# 5. Fe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/muschelli_rmd.R
\name{use_muschelli_readme_rmd}
\alias{use_muschelli_readme_rmd}
\title{Muschelli README Rmd File}
\usage{
use_muschelli_readme_rmd(coverage_type = "codecov")
}
\arguments{
\item{coverage_type}{CI tool to use.
Currently suppor... | /man/use_muschelli_readme_rmd.Rd | no_license | muschellij2/muschflow | R | false | true | 416 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/muschelli_rmd.R
\name{use_muschelli_readme_rmd}
\alias{use_muschelli_readme_rmd}
\title{Muschelli README Rmd File}
\usage{
use_muschelli_readme_rmd(coverage_type = "codecov")
}
\arguments{
\item{coverage_type}{CI tool to use.
Currently suppor... |
library(DescTools)
### Name: Asp
### Title: Get Aspect Ratio of the Current Plot
### Aliases: Asp
### Keywords: aplot
### ** Examples
Asp()
| /data/genthat_extracted_code/DescTools/examples/Asp.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 147 | r | library(DescTools)
### Name: Asp
### Title: Get Aspect Ratio of the Current Plot
### Aliases: Asp
### Keywords: aplot
### ** Examples
Asp()
|
library(zoo)
library(lattice)
options(digits.secs = 3)
###Lê os dados a partir do CSV passado
triangleFunctionTestLinearR1 <- read.zoo("/mnt/dados/Meus Documentos/Estudo/Mestrado/Repositório/trunk/Material pesquisa/Leituras de sensores/Controle/Rotação dos motores/Identificação sistema/triangleFunctionTestLinearR1.csv... | /Leituras de sensores/Controle/Rotação dos motores/Identificação sistema/printGraphsRotorsTriangleFunctionTest.r | permissive | gildoferrucio/open-droid-drone | R | false | false | 6,348 | r | library(zoo)
library(lattice)
options(digits.secs = 3)
###Lê os dados a partir do CSV passado
triangleFunctionTestLinearR1 <- read.zoo("/mnt/dados/Meus Documentos/Estudo/Mestrado/Repositório/trunk/Material pesquisa/Leituras de sensores/Controle/Rotação dos motores/Identificação sistema/triangleFunctionTestLinearR1.csv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.