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 |
|---|---|---|---|---|---|---|---|---|---|
require(PMCMRplus)
options("width"=10000)
ARRAY <- c(0.056894,0.063017,0.063898,0.061365,0.061986,0.056605,0.056272,0.059908,0.058445,0.059153,0.049363,0.068349,0.039008,0.059362,0.065055,0.052571,0.058453,0.063936,0.05362,0.052429,0.027581,0.021072,0.046447,0.011447,0.043751,0.04014,0.046531,0.024586,0.046271,0.016294... | /MaFMethodology/R/hhco/HV/5/kruskalscript.R | no_license | fritsche/hhcopreliminaryresults | R | false | false | 600 | r | require(PMCMRplus)
options("width"=10000)
ARRAY <- c(0.056894,0.063017,0.063898,0.061365,0.061986,0.056605,0.056272,0.059908,0.058445,0.059153,0.049363,0.068349,0.039008,0.059362,0.065055,0.052571,0.058453,0.063936,0.05362,0.052429,0.027581,0.021072,0.046447,0.011447,0.043751,0.04014,0.046531,0.024586,0.046271,0.016294... |
atp_tournaments <- function(challenger = FALSE){
if(challenger){
tournaments <- readLines("http://www.atpworldtour.com/en/atp-challenger-tour/calendar")
tourneys <- grep("tourney-title", tournaments)
}
else{
tournaments <- readLines("http://www.atpworldtour.com/en/tournaments")
tourneys <- grep("tourney-ti... | /R/atp_tournaments.R | no_license | dytlove/deuce | R | false | false | 2,832 | r | atp_tournaments <- function(challenger = FALSE){
if(challenger){
tournaments <- readLines("http://www.atpworldtour.com/en/atp-challenger-tour/calendar")
tourneys <- grep("tourney-title", tournaments)
}
else{
tournaments <- readLines("http://www.atpworldtour.com/en/tournaments")
tourneys <- grep("tourney-ti... |
info( logger, "CARTOLA_DADOS::obtem dados das partidas atuais" )
dados_partidas <- fromJSON(
paste(
readLines( "https://api.cartolafc.globo.com/partidas" ),
collapse = "" )
)
info( logger, "CARTOLA_DADOS::obtem dados das partidas anteriores" )
rodada_anterior <- dados_partidas$rodada - 1
dados_partid... | /dados/atual/munge/02-CarregarDadosPartidas.R | no_license | betoms10/projeto_cartola | R | false | false | 491 | r | info( logger, "CARTOLA_DADOS::obtem dados das partidas atuais" )
dados_partidas <- fromJSON(
paste(
readLines( "https://api.cartolafc.globo.com/partidas" ),
collapse = "" )
)
info( logger, "CARTOLA_DADOS::obtem dados das partidas anteriores" )
rodada_anterior <- dados_partidas$rodada - 1
dados_partid... |
# MNIST Lexicographic
library(vegan)
library(parallel)
load("data/mnist/train.RDa")
y <- train$y[1:5000]
x <- train$x[1:5000,]
N <- 5000
A <- matrix(rep(0,N*N), ncol = N)
cutoff <- 30
lex_dist <- function(i,j){
if(y[i] == y[j]){
return(min(2*cutoff,norm(matrix(x[i,], ncol = 28) - matrix(x[j,], ncol = 28))))
... | /create_mnist_lex.R | no_license | JorgensenMart/ISOGP | R | false | false | 815 | r | # MNIST Lexicographic
library(vegan)
library(parallel)
load("data/mnist/train.RDa")
y <- train$y[1:5000]
x <- train$x[1:5000,]
N <- 5000
A <- matrix(rep(0,N*N), ncol = N)
cutoff <- 30
lex_dist <- function(i,j){
if(y[i] == y[j]){
return(min(2*cutoff,norm(matrix(x[i,], ncol = 28) - matrix(x[j,], ncol = 28))))
... |
#-------------------------------------------------------------------------------#
# Package: Network-Based Genome-Wide Association Studies #
# Author: Pariya Behrouzi #
# Emails: <pariya.Behrouzi@gmail.com> ... | /R/initialize.R | no_license | cran/netgwas | R | false | false | 1,783 | r | #-------------------------------------------------------------------------------#
# Package: Network-Based Genome-Wide Association Studies #
# Author: Pariya Behrouzi #
# Emails: <pariya.Behrouzi@gmail.com> ... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inv<-NULL
set<-function(y)#Initialize x and inverse variable in cache
{
x<<-y
inv<<-NULL
}
get<-function() x #Retrieve x m... | /cachematrix.R | no_license | MSamranB/Programming-Assignment-2 | R | false | false | 1,081 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inv<-NULL
set<-function(y)#Initialize x and inverse variable in cache
{
x<<-y
inv<<-NULL
}
get<-function() x #Retrieve x m... |
#===============================================================================
# 2019-11-03 -- 30 days maps
# Analyze twitter users participating
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
library(rtweet)
library(httr)
library(tidyver... | /day0-twitter-users.R | permissive | ikashnitsky/maps-challenge | R | false | false | 2,575 | r | #===============================================================================
# 2019-11-03 -- 30 days maps
# Analyze twitter users participating
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
library(rtweet)
library(httr)
library(tidyver... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forward.R
\name{forward}
\alias{forward}
\alias{forward.PHMM}
\alias{forward.HMM}
\title{The forward algorithm.}
\usage{
forward(x, y, ...)
\method{forward}{PHMM}(
x,
y,
qe = NULL,
logspace = "autodetect",
odds = TRUE,
windowspac... | /man/forward.Rd | no_license | cran/aphid | R | false | true | 5,174 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forward.R
\name{forward}
\alias{forward}
\alias{forward.PHMM}
\alias{forward.HMM}
\title{The forward algorithm.}
\usage{
forward(x, y, ...)
\method{forward}{PHMM}(
x,
y,
qe = NULL,
logspace = "autodetect",
odds = TRUE,
windowspac... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_manip_db.R
\name{query_taxa}
\alias{query_taxa}
\title{List, extract taxa}
\usage{
query_taxa(
class = NULL,
family = NULL,
genus = NULL,
order = NULL,
species = NULL,
only_genus = FALSE,
only_family = FALSE,
only_cl... | /man/query_taxa.Rd | no_license | gdauby/bdd_plots_central_africa | R | false | true | 1,131 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_manip_db.R
\name{query_taxa}
\alias{query_taxa}
\title{List, extract taxa}
\usage{
query_taxa(
class = NULL,
family = NULL,
genus = NULL,
order = NULL,
species = NULL,
only_genus = FALSE,
only_family = FALSE,
only_cl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_MON.R
\name{identify_PopID_MON}
\alias{identify_PopID_MON}
\title{Translate plots into corresponding study populations.}
\usage{
identify_PopID_MON(variable)
}
\arguments{
\item{variable}{Plot name.}
}
\value{
Three letter PopID or 'av... | /man/identify_PopID_MON.Rd | no_license | SPI-Birds/pipelines | R | false | true | 534 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_MON.R
\name{identify_PopID_MON}
\alias{identify_PopID_MON}
\title{Translate plots into corresponding study populations.}
\usage{
identify_PopID_MON(variable)
}
\arguments{
\item{variable}{Plot name.}
}
\value{
Three letter PopID or 'av... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{cps_controls}
\alias{cps_controls}
\title{Dehejia, Rajeev H. and Sadek Wahba (2002) "Propensity Score-Matching Methods for Nonexperimental Causal Studies" Review of Economics and Statistics 84(1) February, 151-161.... | /man/cps_controls.Rd | no_license | mpaulacaldas/mixtape | R | false | true | 560 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{cps_controls}
\alias{cps_controls}
\title{Dehejia, Rajeev H. and Sadek Wahba (2002) "Propensity Score-Matching Methods for Nonexperimental Causal Studies" Review of Economics and Statistics 84(1) February, 151-161.... |
####################################################
##
## Competition Network Analysis Tutorial
##
## Part 4. Compute Period Networks and Covarites Lists
##
####################################################
##===============================
## If the required libraries are not installed on your computer, run:
## >... | /R/amj_run_TERGM_tutorial_4.R | no_license | sdownin/compnet-awareness-tutorial | R | false | false | 8,290 | r | ####################################################
##
## Competition Network Analysis Tutorial
##
## Part 4. Compute Period Networks and Covarites Lists
##
####################################################
##===============================
## If the required libraries are not installed on your computer, run:
## >... |
\alias{GtkEntryBuffer}
\alias{gtkEntryBuffer}
\name{GtkEntryBuffer}
\title{GtkEntryBuffer}
\description{Text buffer for GtkEntry}
\section{Methods and Functions}{
\code{\link{gtkEntryBufferNew}(initial.chars = NULL, n.initial.chars = -1)}\cr
\code{\link{gtkEntryBufferGetText}(object)}\cr
\code{\link{gtkEntryBufferSetTe... | /man/GtkEntryBuffer.Rd | no_license | cran/RGtk2 | R | false | false | 2,975 | rd | \alias{GtkEntryBuffer}
\alias{gtkEntryBuffer}
\name{GtkEntryBuffer}
\title{GtkEntryBuffer}
\description{Text buffer for GtkEntry}
\section{Methods and Functions}{
\code{\link{gtkEntryBufferNew}(initial.chars = NULL, n.initial.chars = -1)}\cr
\code{\link{gtkEntryBufferGetText}(object)}\cr
\code{\link{gtkEntryBufferSetTe... |
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 2.7852... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615829998-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 486 | r | testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 2.7852... |
#read the data
read.csv('supermarket.csv', header=TRUE) -> my_table
my_table$Count <-1
#Summarise data by unique Baskets (Key = Basket + Date)
Product_count <- aggregate(list(Items = my_table$Count,Total = my_table$Total),
by=list(Basket = my_table$Basket, Date = my_table$Date, Checkout =... | /supermarket_transactions.r | no_license | byron-alb/supermarket-transactions | R | false | false | 3,155 | r |
#read the data
read.csv('supermarket.csv', header=TRUE) -> my_table
my_table$Count <-1
#Summarise data by unique Baskets (Key = Basket + Date)
Product_count <- aggregate(list(Items = my_table$Count,Total = my_table$Total),
by=list(Basket = my_table$Basket, Date = my_table$Date, Checkout =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitting_functions.R
\docType{package}
\name{edstan-package}
\alias{edstan}
\alias{edstan-package}
\title{Stan for item response theory}
\description{
\pkg{edstan} attempts to make easy the fitting of standard item response
theory models using... | /man/edstan-package.Rd | no_license | nguyen-thien/edstan | R | false | true | 1,172 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitting_functions.R
\docType{package}
\name{edstan-package}
\alias{edstan}
\alias{edstan-package}
\title{Stan for item response theory}
\description{
\pkg{edstan} attempts to make easy the fitting of standard item response
theory models using... |
"nlsResiduals" <- function(nls){
if (!inherits(nls, "nls"))
stop("Use only with 'nls' objects")
#which = 1 residuals
resi1 <- cbind(fitted(nls), residuals(nls))
colnames(resi1) <- c("Fitted values", "Residuals")
#which = 2 residuals
ecartres <- summary(nls)$sigma
nresiduals <- (residuals(nls)... | /lib/nlsResiduals.r | no_license | marlesson/regressa_concreto | R | false | false | 5,799 | r |
"nlsResiduals" <- function(nls){
if (!inherits(nls, "nls"))
stop("Use only with 'nls' objects")
#which = 1 residuals
resi1 <- cbind(fitted(nls), residuals(nls))
colnames(resi1) <- c("Fitted values", "Residuals")
#which = 2 residuals
ecartres <- summary(nls)$sigma
nresiduals <- (residuals(nls)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gdm.plot.uncertainty.R
\name{plotUncertainty}
\alias{plotUncertainty}
\title{Plot I-splines With Error Bands Using Bootstrapping.}
\usage{
plotUncertainty(spTable, sampleSites, bsIters, geo=FALSE,
splines=NULL, knots=NULL, splineCol="blue", e... | /man/plotUncertainty.Rd | no_license | cran/gdm | R | false | true | 3,633 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gdm.plot.uncertainty.R
\name{plotUncertainty}
\alias{plotUncertainty}
\title{Plot I-splines With Error Bands Using Bootstrapping.}
\usage{
plotUncertainty(spTable, sampleSites, bsIters, geo=FALSE,
splines=NULL, knots=NULL, splineCol="blue", e... |
## #####################################################
## Function to match data dependent of the class of data
## #####################################################
ps.match <- function(object,
object.control = NULL,
matched.by = NULL,
... | /R/ps.match.R | no_license | cran/nonrandom | R | false | false | 1,088 | r | ## #####################################################
## Function to match data dependent of the class of data
## #####################################################
ps.match <- function(object,
object.control = NULL,
matched.by = NULL,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/signs.R
\name{signs}
\alias{signs}
\title{Add proper minus signs}
\usage{
signs(
x,
...,
format = getOption("signs.format", scales::number),
add_plusses = getOption("signs.add.plusses", FALSE),
trim_leading_zeros = getOption("signs.... | /man/signs.Rd | no_license | BenjaminWolfe/signs | R | false | true | 2,312 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/signs.R
\name{signs}
\alias{signs}
\title{Add proper minus signs}
\usage{
signs(
x,
...,
format = getOption("signs.format", scales::number),
add_plusses = getOption("signs.add.plusses", FALSE),
trim_leading_zeros = getOption("signs.... |
library(polymapR)
### Name: check_map
### Title: Check the quality of a linkage map using heatplots
### Aliases: check_map
### ** Examples
## Not run:
##D data("maplist_P1","all_linkages_list_P1")
##D check_map(linkage_list = all_linkages_list_P1, maplist = maplist_P1)
## End(Not run)
| /data/genthat_extracted_code/polymapR/examples/check_map.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 294 | r | library(polymapR)
### Name: check_map
### Title: Check the quality of a linkage map using heatplots
### Aliases: check_map
### ** Examples
## Not run:
##D data("maplist_P1","all_linkages_list_P1")
##D check_map(linkage_list = all_linkages_list_P1, maplist = maplist_P1)
## End(Not run)
|
# A reusable module for displaying data with
# a horizontal bar chart and a data table in a tab box
barTableUI <- function(id, header, titleInfo) {
# Required for all modules
# Must set the local namespace for this function
# Example: if id = 'reporter', then the barchart module will be called
# 'repo... | /apps/barTableUtil.R | no_license | uwban/cvapps | R | false | false | 1,659 | r | # A reusable module for displaying data with
# a horizontal bar chart and a data table in a tab box
barTableUI <- function(id, header, titleInfo) {
# Required for all modules
# Must set the local namespace for this function
# Example: if id = 'reporter', then the barchart module will be called
# 'repo... |
\name{print.mdsdd}
\alias{print.mdsdd}
%\alias{print}
\title{
Printing results of a multidimensional scaling analysis of discrete distributions
}
\description{
Applies to an object of class \code{"mdsdd"}. Prints the numeric results returned by the \code{\link{mdsdd}} function.
}
\usage{
\method{print}{mdsdd}(x... | /man/print.mdsdd.Rd | no_license | cran/dad | R | false | false | 1,706 | rd | \name{print.mdsdd}
\alias{print.mdsdd}
%\alias{print}
\title{
Printing results of a multidimensional scaling analysis of discrete distributions
}
\description{
Applies to an object of class \code{"mdsdd"}. Prints the numeric results returned by the \code{\link{mdsdd}} function.
}
\usage{
\method{print}{mdsdd}(x... |
test_BatchtoolsParam_constructor <- function() {
param <- BatchtoolsParam()
checkTrue(validObject(param))
checkTrue(is(param$registry, "NULLRegistry"))
isWindows <- .Platform$OS.type == "windows"
cluster <- if (isWindows) "socket" else "multicore"
nworkers <- if (isWindows) snowWorkers() else ... | /cardinal/packrat/lib/x86_64-apple-darwin15.6.0/3.5.1/BiocParallel/unitTests/test_BatchtoolsParam.R | no_license | codyheiser/fuzzy-lasagna | R | false | false | 13,306 | r | test_BatchtoolsParam_constructor <- function() {
param <- BatchtoolsParam()
checkTrue(validObject(param))
checkTrue(is(param$registry, "NULLRegistry"))
isWindows <- .Platform$OS.type == "windows"
cluster <- if (isWindows) "socket" else "multicore"
nworkers <- if (isWindows) snowWorkers() else ... |
library(ape)
testtree <- read.tree("2908_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="2908_0_unrooted.txt") | /codeml_files/newick_trees_processed/2908_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("2908_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="2908_0_unrooted.txt") |
#' A function rather aimed at developers
#' @noRd
imputeNAs = function(dataIn, byrow = TRUE, imputeValue = c("median","mean")){ ### I usually put feature in the row, and sample in the column
imputeValue = imputeValue[1]
if(byrow){
dataIn = t(apply(dataIn, 1, function(xx){
if(imputeValue == "mean"){
... | /R/imputeNAs.R | no_license | ajiangsfu/PRPS | R | false | false | 757 | r | #' A function rather aimed at developers
#' @noRd
imputeNAs = function(dataIn, byrow = TRUE, imputeValue = c("median","mean")){ ### I usually put feature in the row, and sample in the column
imputeValue = imputeValue[1]
if(byrow){
dataIn = t(apply(dataIn, 1, function(xx){
if(imputeValue == "mean"){
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FLGAM.R
\docType{class}
\name{FLGAM-class}
\alias{FLGAM-class}
\title{An S4 class to represent output from gam on in-database objects}
\description{
An S4 class to represent output from gam on in-database objects
}
\section{Slots}{
\describe... | /man/FLGAM-class.Rd | no_license | phani-srikar/AdapteR | R | false | true | 506 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FLGAM.R
\docType{class}
\name{FLGAM-class}
\alias{FLGAM-class}
\title{An S4 class to represent output from gam on in-database objects}
\description{
An S4 class to represent output from gam on in-database objects
}
\section{Slots}{
\describe... |
\name{updatePath}
\alias{updatePath}
\title{
Update Path Slot in SpatialStreamNetwork Object }
\description{
Updates the path slot in an existing SpatialStreamNetwork object based on a
user-defined filepath. }
\usage{ updatePath(ssn, filepath) }
\arguments{
\item{ssn}{
a \code{\link[=SpatialStreamNetwork-... | /man/updatePath.Rd | no_license | jayverhoef/SSN | R | false | false | 1,959 | rd | \name{updatePath}
\alias{updatePath}
\title{
Update Path Slot in SpatialStreamNetwork Object }
\description{
Updates the path slot in an existing SpatialStreamNetwork object based on a
user-defined filepath. }
\usage{ updatePath(ssn, filepath) }
\arguments{
\item{ssn}{
a \code{\link[=SpatialStreamNetwork-... |
pkg.env <- new.env()
pkg.env$gconfig <- list('wps.url'='https://cida.usgs.gov/gdp/process/WebProcessingService',
'sleep.time' = 5,
'wait' = FALSE,
'email' = as.character(NA),
'algorithm' = list('Area Grid Statistics (weight... | /R/01-webdata-obj.R | permissive | ldecicco-USGS/geoknife | R | false | false | 7,056 | r | pkg.env <- new.env()
pkg.env$gconfig <- list('wps.url'='https://cida.usgs.gov/gdp/process/WebProcessingService',
'sleep.time' = 5,
'wait' = FALSE,
'email' = as.character(NA),
'algorithm' = list('Area Grid Statistics (weight... |
## list of 4 functions to
## initialize a matrix (setting it's inverse memory space to null),
## retrieve a matrix
## initialize, retreive the inverse of the matrix
##
## Matrix and InverseMatrix are set in general environment
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<... | /cachematrix.R | no_license | elizart/ProgrammingAssignment2 | R | false | false | 883 | r | ## list of 4 functions to
## initialize a matrix (setting it's inverse memory space to null),
## retrieve a matrix
## initialize, retreive the inverse of the matrix
##
## Matrix and InverseMatrix are set in general environment
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tracking-rest.R
\name{mlflow_create_experiment}
\alias{mlflow_create_experiment}
\title{Create Experiment}
\usage{
mlflow_create_experiment(name, activate = TRUE)
}
\arguments{
\item{name}{The name of the experiment to create.}
\item{activat... | /R/mlflow/man/mlflow_create_experiment.Rd | permissive | rstudio/mlflow-original | R | false | true | 726 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tracking-rest.R
\name{mlflow_create_experiment}
\alias{mlflow_create_experiment}
\title{Create Experiment}
\usage{
mlflow_create_experiment(name, activate = TRUE)
}
\arguments{
\item{name}{The name of the experiment to create.}
\item{activat... |
#Shefali Emmanuel
# HW 8 Monty Hall Problem
# October 6, 2019
# Referenced the following sources
# https://stackoverflow.com/questions/9390965/select-random-element-in-a-list-of-r
# http://www.bodowinter.com/tutorial/bw_doodling_monty_hall.pdf
# https://www.inferentialthinking.com/chapters/09/4/Monty_Hall_Problem.html... | /HW8MontyHallProblem.R | no_license | shefaliemmanuel/DATA101IntroductionToDataScience | R | false | false | 1,848 | r | #Shefali Emmanuel
# HW 8 Monty Hall Problem
# October 6, 2019
# Referenced the following sources
# https://stackoverflow.com/questions/9390965/select-random-element-in-a-list-of-r
# http://www.bodowinter.com/tutorial/bw_doodling_monty_hall.pdf
# https://www.inferentialthinking.com/chapters/09/4/Monty_Hall_Problem.html... |
library(tseries)
library(forecast)
#'cow.dat'data
data<-read.table('cow.dat')
cow<-as.ts(data)
autoplot(cow)
par(mfrow=c(1,2))
acf(cow,main='cow')
pacf(cow)
adf.test(cow)
cow1<-diff(cow)
acf(cow1,main='cow1')
pacf(cow1)
adf.test(cow1)
auto.arima(cow,d=0,approximation=F,max.p=5, max.q=5)
auto.arima(cow,d=... | /main.r | permissive | eluah/Time-Series-Analysis-Lab | R | false | false | 1,308 | r | library(tseries)
library(forecast)
#'cow.dat'data
data<-read.table('cow.dat')
cow<-as.ts(data)
autoplot(cow)
par(mfrow=c(1,2))
acf(cow,main='cow')
pacf(cow)
adf.test(cow)
cow1<-diff(cow)
acf(cow1,main='cow1')
pacf(cow1)
adf.test(cow1)
auto.arima(cow,d=0,approximation=F,max.p=5, max.q=5)
auto.arima(cow,d=... |
svg.lines <- function(x, y=NULL, col="black", z.index=0, layer="",
label="", lwd=1, opacity=1, file=NULL){
# If file is null, set current connection
if(is.null(file)){
# Give error if svg.new has not been called
if(is.null(getOption("svg_glo_con"))) stop("svg.new has not been called yet.")
# Get current co... | /R/svg.lines.R | no_license | kashenfelter/svgViewR | R | false | false | 538 | r | svg.lines <- function(x, y=NULL, col="black", z.index=0, layer="",
label="", lwd=1, opacity=1, file=NULL){
# If file is null, set current connection
if(is.null(file)){
# Give error if svg.new has not been called
if(is.null(getOption("svg_glo_con"))) stop("svg.new has not been called yet.")
# Get current co... |
## Data preparation
### Download the data file
url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
fname = "power_data.zip"
download.file(url,fname)
### Unzip the file
data_file = "household_power_consumption.txt"
unzip(fname, data_file)
### Read the data
Sys.setlocale("LC_TI... | /plot3.R | no_license | wafaaininaa/Exploratory_Data_Analysis_Assignment_1 | R | false | false | 1,193 | r | ## Data preparation
### Download the data file
url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
fname = "power_data.zip"
download.file(url,fname)
### Unzip the file
data_file = "household_power_consumption.txt"
unzip(fname, data_file)
### Read the data
Sys.setlocale("LC_TI... |
data <- read.table("data//household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses=c("character", "character", "numeric"))
TwoDaydata<-data[data$Date == "1/2/2007" | data$Date == "2/2/2007",]
TwoDaydata$DateTime <- strptime(paste(TwoDaydata$Date, TwoDaydata$Time), "%d/%m/%Y %H:%M:%S")
png(f... | /plot2.R | no_license | aniruddhadas/ExData_Plotting1 | R | false | false | 500 | r | data <- read.table("data//household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses=c("character", "character", "numeric"))
TwoDaydata<-data[data$Date == "1/2/2007" | data$Date == "2/2/2007",]
TwoDaydata$DateTime <- strptime(paste(TwoDaydata$Date, TwoDaydata$Time), "%d/%m/%Y %H:%M:%S")
png(f... |
# ---------------------------- Deep Learning - Neural Network ---------------- #
#' Build a Deep Learning Neural Network
#'
#' Performs Deep Learning neural networks on an H2O H2OFrame
#'
#' @param x A vector containing the \code{character} names of the predictors in the model.
#' @param y The name of the response vari... | /h2o-r/h2o-package/R/deeplearning.R | permissive | gitoer/h2o-3 | R | false | false | 23,697 | r | # ---------------------------- Deep Learning - Neural Network ---------------- #
#' Build a Deep Learning Neural Network
#'
#' Performs Deep Learning neural networks on an H2O H2OFrame
#'
#' @param x A vector containing the \code{character} names of the predictors in the model.
#' @param y The name of the response vari... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/youtube_objects.R
\name{VideoLocalization}
\alias{VideoLocalization}
\title{VideoLocalization Object}
\usage{
VideoLocalization(description = NULL, title = NULL)
}
\arguments{
\item{description}{Localized version of the video's description}
... | /googleyoutubev3.auto/man/VideoLocalization.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 592 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/youtube_objects.R
\name{VideoLocalization}
\alias{VideoLocalization}
\title{VideoLocalization Object}
\usage{
VideoLocalization(description = NULL, title = NULL)
}
\arguments{
\item{description}{Localized version of the video's description}
... |
## code to prepare `DATASET` dataset goes here
# load raw data
rawdata_path <- system.file("extdata", "rawdata.csv", package = "CSPandCFP")
rawdata <- data.table::fread(rawdata_path)
# explore data
# str(all_data, list.len" = "200)
# head(all_data)
# summary(all_data)
# categorize sectors
rawdata[, Sector := .(dpl... | /data-raw/DATASET.R | permissive | locco-el/CFP-CSP-Africa-data | R | false | false | 6,546 | r | ## code to prepare `DATASET` dataset goes here
# load raw data
rawdata_path <- system.file("extdata", "rawdata.csv", package = "CSPandCFP")
rawdata <- data.table::fread(rawdata_path)
# explore data
# str(all_data, list.len" = "200)
# head(all_data)
# summary(all_data)
# categorize sectors
rawdata[, Sector := .(dpl... |
%% File Name: skillspace.hierarchy.Rd
%% File Version: 0.24
\name{skillspace.hierarchy}
\alias{skillspace.hierarchy}
\alias{skillspace.full}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Creation of a Hierarchical Skill Space
}
\description{
The function \code{skillspace.hierarchy... | /CDM/man/skillspace.hierarchy.Rd | no_license | akhikolla/InformationHouse | R | false | false | 5,659 | rd | %% File Name: skillspace.hierarchy.Rd
%% File Version: 0.24
\name{skillspace.hierarchy}
\alias{skillspace.hierarchy}
\alias{skillspace.full}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Creation of a Hierarchical Skill Space
}
\description{
The function \code{skillspace.hierarchy... |
#QBiC Tuebingen - Damien Dos Santos Luis
#15/08/11
#Script for ChIPseq analysis
#This script takes MACS peak calling output files, creates plots for datavis and prepare a df used in chip_seq.py to clean the data and index them in MongoDB
library("ChIPseeker", lib.loc="~/R/x86_64-redhat-linux-gnu-library/3.2")
library(... | /chip_seq.R | no_license | damdsl/qdataminer | R | false | false | 3,162 | r | #QBiC Tuebingen - Damien Dos Santos Luis
#15/08/11
#Script for ChIPseq analysis
#This script takes MACS peak calling output files, creates plots for datavis and prepare a df used in chip_seq.py to clean the data and index them in MongoDB
library("ChIPseeker", lib.loc="~/R/x86_64-redhat-linux-gnu-library/3.2")
library(... |
########## Random Forest ##########
RunModel_RandomForest=function(trainData,targetVarName, treeSize)
{
#install.packages('randomForest')
library(randomForest)
model = randomForest(trainData[,targetVarName] ~ .,
data = trainData ,
method='class',
... | /AllModels.R | no_license | MeowCatkr/CC | R | false | false | 1,232 | r | ########## Random Forest ##########
RunModel_RandomForest=function(trainData,targetVarName, treeSize)
{
#install.packages('randomForest')
library(randomForest)
model = randomForest(trainData[,targetVarName] ~ .,
data = trainData ,
method='class',
... |
library(tidyverse)
murders <- read.csv("data/murders.csv")
murders <- murders %>% mutate(region = factor(region), rate = total / population * 10^5)
save(murders, file = "rda/murders.rda") | /wrangle-data.R | no_license | amtv-ndhlovu/murders | R | false | false | 187 | r | library(tidyverse)
murders <- read.csv("data/murders.csv")
murders <- murders %>% mutate(region = factor(region), rate = total / population * 10^5)
save(murders, file = "rda/murders.rda") |
#' @name UniversalSet
#' @title Mathematical Universal Set
#' @description The `UniversalSet` is defined as the [Set] containing all possible elements.
#'
#' @details
#' The Universal set is the default universe to all sets, and is the largest possible set.
#' The Universal set contains every single possible element. W... | /R/Set_UniversalSet.R | permissive | xoopR/set6 | R | false | false | 6,988 | r | #' @name UniversalSet
#' @title Mathematical Universal Set
#' @description The `UniversalSet` is defined as the [Set] containing all possible elements.
#'
#' @details
#' The Universal set is the default universe to all sets, and is the largest possible set.
#' The Universal set contains every single possible element. W... |
library("ggplot2")
t0 <- read.csv("https://raw.githubusercontent.com/climdata/glaser2010/master/csv/ti_1500_2xxx_monthly.csv", sep=",", na = "NA")
t1 <- t0[,c("year","month","ti")]
p0 <- read.csv("https://raw.githubusercontent.com/climdata/glaser2019/master/csv/pi_1500_2xxx_monthly.csv", sep=",", na = "NA")
spifull <-... | /source/pts.r | permissive | climdata/playground | R | false | false | 1,319 | r | library("ggplot2")
t0 <- read.csv("https://raw.githubusercontent.com/climdata/glaser2010/master/csv/ti_1500_2xxx_monthly.csv", sep=",", na = "NA")
t1 <- t0[,c("year","month","ti")]
p0 <- read.csv("https://raw.githubusercontent.com/climdata/glaser2019/master/csv/pi_1500_2xxx_monthly.csv", sep=",", na = "NA")
spifull <-... |
library(testthat)
library(noaaErddap)
test_check("noaaErddap")
| /tests/testthat.R | no_license | dbarneche/noaaErddap | R | false | false | 64 | r | library(testthat)
library(noaaErddap)
test_check("noaaErddap")
|
# @file Power.R
#
# Copyright 2022 Observational Health Data Sciences and Informatics
#
# This file is part of CohortMethod
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.... | /R/Power.R | permissive | MimiYuchenGuo/CohortMethod | R | false | false | 8,409 | r | # @file Power.R
#
# Copyright 2022 Observational Health Data Sciences and Informatics
#
# This file is part of CohortMethod
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 8307
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8307
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query03_query10_1344/query03_query10_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 711 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 8307
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8307
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... |
setwd('/Users/hannah/Dropbox/Westneat_Lab/RFishBase/')
# uncomment if rfishbase is not installed:
# install.packages("rfishbase",
# repos = c("http://packages.ropensci.org", "http://cran.rstudio.com"),
# type="source")
# dependencies
library('rfishbase')
# set fish families
# famili... | /Code/fishbase_search function.R | no_license | hiweller/rfishbase | R | false | false | 2,037 | r | setwd('/Users/hannah/Dropbox/Westneat_Lab/RFishBase/')
# uncomment if rfishbase is not installed:
# install.packages("rfishbase",
# repos = c("http://packages.ropensci.org", "http://cran.rstudio.com"),
# type="source")
# dependencies
library('rfishbase')
# set fish families
# famili... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ml_feature_chisq_selector.R
\name{ft_chisq_selector}
\alias{ft_chisq_selector}
\title{Feature Transformation -- ChiSqSelector (Estimator)}
\usage{
ft_chisq_selector(x, features_col = "features", output_col = NULL,
label_col = "label", selec... | /man/ft_chisq_selector.Rd | permissive | awblocker/sparklyr | R | false | true | 5,197 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ml_feature_chisq_selector.R
\name{ft_chisq_selector}
\alias{ft_chisq_selector}
\title{Feature Transformation -- ChiSqSelector (Estimator)}
\usage{
ft_chisq_selector(x, features_col = "features", output_col = NULL,
label_col = "label", selec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NVT-init.R
\name{NVTpearson}
\alias{NVTpearson}
\title{Calculate the pearson correclation of the housekeeping genes of an initialized and normalized NVTobject}
\usage{
NVTpearson(NVTdataobj)
}
\arguments{
\item{NVTdataobj}{A previously initia... | /man/NVTpearson.Rd | permissive | Edert/NVT | R | false | true | 882 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NVT-init.R
\name{NVTpearson}
\alias{NVTpearson}
\title{Calculate the pearson correclation of the housekeeping genes of an initialized and normalized NVTobject}
\usage{
NVTpearson(NVTdataobj)
}
\arguments{
\item{NVTdataobj}{A previously initia... |
cat("Cleaning up the environment...", "\n")
rm(list = ls())
cat("\n")
args = commandArgs(trailingOnly = TRUE)
args_full = commandArgs(trailingOnly = FALSE)
argc = length(args)
argc_full = length(args_full)
if(argc != 1L) {
if(argc_full > 0L) {
write(
paste(c(
... | /eval_src/ga_1_mob_300_4_mob_a_quota.R | no_license | bfrggit/R-p2_betty | R | false | false | 1,439 | r | cat("Cleaning up the environment...", "\n")
rm(list = ls())
cat("\n")
args = commandArgs(trailingOnly = TRUE)
args_full = commandArgs(trailingOnly = FALSE)
argc = length(args)
argc_full = length(args_full)
if(argc != 1L) {
if(argc_full > 0L) {
write(
paste(c(
... |
require(XML)
# Function to read the ELAN video coding annotations into a data frame
# Assumes layers: Comments, Recording markers, Activity, Social plane, Experimental part
readAnnotationsFile <- function(file){
# Parse the XML
rawXML <- xmlParse(file)
parsedXML <- xmlToList(rawXML)
# Extract... | /src/data/readAnnotationsFile.R | no_license | lprisan/paper-JCAL-multimodal-teaching-analytics | R | false | false | 5,049 | r | require(XML)
# Function to read the ELAN video coding annotations into a data frame
# Assumes layers: Comments, Recording markers, Activity, Social plane, Experimental part
readAnnotationsFile <- function(file){
# Parse the XML
rawXML <- xmlParse(file)
parsedXML <- xmlToList(rawXML)
# Extract... |
/CodeSource.R | no_license | Brunoson/monteCarloSequentielle | R | false | false | 11,627 | r | ||
mapperVertices <- function(m, pt_labels) {
# Hovering over vertices gives the point labels:
# convert the list of vectors of point indices to a list of vectors of labels
labels_in_vertex <- lapply( m$points_in_vertex, FUN=function(v){ pt_labels[v] } )
nodename <- sapply( sapply(labels_in_vertex, as.character... | /Mapper/z Paul Pearson functions.R | permissive | lancelotdacosta/CMP_project | R | false | false | 1,398 | r | mapperVertices <- function(m, pt_labels) {
# Hovering over vertices gives the point labels:
# convert the list of vectors of point indices to a list of vectors of labels
labels_in_vertex <- lapply( m$points_in_vertex, FUN=function(v){ pt_labels[v] } )
nodename <- sapply( sapply(labels_in_vertex, as.character... |
## Put comments here that give an overall description of what your
## functions do
## This function creates a special "matrix" object that can cache its inverse.
makeCache <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inver... | /cachematrix.R | no_license | kushank1207/ProgrammingAssignment2 | R | false | false | 755 | r | ## Put comments here that give an overall description of what your
## functions do
## This function creates a special "matrix" object that can cache its inverse.
makeCache <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inver... |
#!/usr/bin/env R
dd <- read.table("summary.tsv", header=T)
#attach(dd)
# only consider operon leading gene, put to operon level
dd <- dd[dd$is_leading_gene == 1, ]
#orth.range=seq(0, 220, by=10)
small.range = c(0, 2, 5, 10)
orth.range=seq(20, 220, by=10)
orth.range= c(small.range, orth.range)
orth.factor = cut(dd$o... | /results/2013-12-23/count_tfbs.r | no_license | Chuan-Zh/footprint | R | false | false | 758 | r | #!/usr/bin/env R
dd <- read.table("summary.tsv", header=T)
#attach(dd)
# only consider operon leading gene, put to operon level
dd <- dd[dd$is_leading_gene == 1, ]
#orth.range=seq(0, 220, by=10)
small.range = c(0, 2, 5, 10)
orth.range=seq(20, 220, by=10)
orth.range= c(small.range, orth.range)
orth.factor = cut(dd$o... |
# Ejemplo 2
dbinom(2,size=5,prob=0.33)
# Ejemplo 3
# a) Se resuelve con dbinom
# b)
pbinom(10, size = 20, prob = 0.25)
# Ejemplo 8
# 3 llamadas
# 1,5 llamadas por minuto
dpois(3, lambda = 1.5)
# Ejemplo 9
# Valor exacto con dist Binomial
dbinom(3, size = 100, prob = 0.01)
# Valor aproximado mediante Poisson
dpois... | /nivelacion/R_clases/_temp/scripts/Ejemplos.R | no_license | jprocha84/Maestria_Estadistica_2019 | R | false | false | 699 | r | # Ejemplo 2
dbinom(2,size=5,prob=0.33)
# Ejemplo 3
# a) Se resuelve con dbinom
# b)
pbinom(10, size = 20, prob = 0.25)
# Ejemplo 8
# 3 llamadas
# 1,5 llamadas por minuto
dpois(3, lambda = 1.5)
# Ejemplo 9
# Valor exacto con dist Binomial
dbinom(3, size = 100, prob = 0.01)
# Valor aproximado mediante Poisson
dpois... |
stations.fac <- cut(quakes$stations,breaks=c(0,50,100,150))
stations.fac[1:5]
#Using base R graphics
boxplot(quakes$mag~stations.fac,xlab="# stations detected",ylab="Magnitude",col="gray")
#Using ggplot2 functionality
qplot(stations.fac,quakes$mag,geom="boxplot",xlab="# stations detected",ylab="Magnitude")
| /chapter_14/different_box_whisker_plots.R | no_license | schackartk/Book-of-R | R | false | false | 310 | r | stations.fac <- cut(quakes$stations,breaks=c(0,50,100,150))
stations.fac[1:5]
#Using base R graphics
boxplot(quakes$mag~stations.fac,xlab="# stations detected",ylab="Magnitude",col="gray")
#Using ggplot2 functionality
qplot(stations.fac,quakes$mag,geom="boxplot",xlab="# stations detected",ylab="Magnitude")
|
# Clear the enviroment to ensure that no left overs from previous executes pollute this run.
rm(list=ls())
## Configuration
data_root = "./data"
uri_source = "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
zip_file = paste0(data_root, "/dataset.zip")
content_root = paste... | /run_analysis.R | no_license | mlk/r-programming-assignment | R | false | false | 2,468 | r | # Clear the enviroment to ensure that no left overs from previous executes pollute this run.
rm(list=ls())
## Configuration
data_root = "./data"
uri_source = "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
zip_file = paste0(data_root, "/dataset.zip")
content_root = paste... |
# setup ----
options(width = 50)
options(error = rlang::entrace)
source("R/knitr-error-wrap.R")
dat <- read.csv("R/fruit.csv", strip.white = TRUE)
source("R/fruit_avg.R")
# first look at dat and fruit_avg(); see error ----
# series of 3 code slides
# in Keynote, position based on "black" (error) example
dat
fruit_a... | /R/fruit_avg_demo_code.R | permissive | snowdj/debugging | R | false | false | 1,557 | r | # setup ----
options(width = 50)
options(error = rlang::entrace)
source("R/knitr-error-wrap.R")
dat <- read.csv("R/fruit.csv", strip.white = TRUE)
source("R/fruit_avg.R")
# first look at dat and fruit_avg(); see error ----
# series of 3 code slides
# in Keynote, position based on "black" (error) example
dat
fruit_a... |
#!usr/bin/env Rscript
library(methods)
library(Matrix)
library(MASS)
#library(Rcpp)
library(lme4)
# Read in your data as an R dataframe
basedir <- c("/seastor/helenhelen/ISR_2015")
resultdir <- paste(basedir,"/me/tmap/results/ERS",sep="/")
setwd(resultdir)
r.itemInfo <- matrix(data=NA, nr=2, nc=4)
## read data
#get dat... | /ROI_based/me/ERS/itemInfo_RIFG_ERC.R | no_license | QQXiao/ISR_2015 | R | false | false | 1,625 | r | #!usr/bin/env Rscript
library(methods)
library(Matrix)
library(MASS)
#library(Rcpp)
library(lme4)
# Read in your data as an R dataframe
basedir <- c("/seastor/helenhelen/ISR_2015")
resultdir <- paste(basedir,"/me/tmap/results/ERS",sep="/")
setwd(resultdir)
r.itemInfo <- matrix(data=NA, nr=2, nc=4)
## read data
#get dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-croatia_employment_aggregation.R
\docType{data}
\name{croatia_employment_aggregation}
\alias{croatia_employment_aggregation}
\title{Aggregation table for Croatian employment statistics}
\format{
A data frame with 105 rows (includi... | /man/croatia_employment_aggregation.Rd | permissive | cran/iotables | R | false | true | 945 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-croatia_employment_aggregation.R
\docType{data}
\name{croatia_employment_aggregation}
\alias{croatia_employment_aggregation}
\title{Aggregation table for Croatian employment statistics}
\format{
A data frame with 105 rows (includi... |
\name{rTSCov}
\Rdversion{1.1}
\alias{rTSCov}
\title{ Two time scale covariance estimation }
\description{
Function returns the two time scale covariance matrix proposed in Zhang et al (2005) and Zhang (2010).
By the use of two time scales, this covariance estimate
is robust to microstructure noise and non-synchronic... | /man/rTSCov.rd | no_license | ssh352/highfrequency | R | false | false | 5,159 | rd | \name{rTSCov}
\Rdversion{1.1}
\alias{rTSCov}
\title{ Two time scale covariance estimation }
\description{
Function returns the two time scale covariance matrix proposed in Zhang et al (2005) and Zhang (2010).
By the use of two time scales, this covariance estimate
is robust to microstructure noise and non-synchronic... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rename.duplicates.R
\name{rename.duplicates}
\alias{rename.duplicates}
\title{Renumbers the object IDs for the duplicate observations generated when
bootstrapping}
\usage{
rename.duplicates(ddf.dat, double.observer = FALSE)
}
\arguments{
\ite... | /DSsim/man/rename.duplicates.Rd | no_license | dill/DSsim | R | false | true | 1,023 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rename.duplicates.R
\name{rename.duplicates}
\alias{rename.duplicates}
\title{Renumbers the object IDs for the duplicate observations generated when
bootstrapping}
\usage{
rename.duplicates(ddf.dat, double.observer = FALSE)
}
\arguments{
\ite... |
library(rgeos)
library(sp)
library(rgdal)
library(leaflet)
library(htmlwidgets)
library(shiny)
library(ggplot2)
library(dplyr)
library(data.table)
taxi2016count_byhour_id<-fread("~/Desktop/GR5243 Applied Data Science/Project 2/Spring2019-Proj2-grp11/output/PickUp2016_Clean.csv")
taxi2015count_byhour_id<-fread("~/Deskt... | /lib/map 2/test_map.R | no_license | xinyihutay/Spring2019-Proj2-grp11 | R | false | false | 853 | r | library(rgeos)
library(sp)
library(rgdal)
library(leaflet)
library(htmlwidgets)
library(shiny)
library(ggplot2)
library(dplyr)
library(data.table)
taxi2016count_byhour_id<-fread("~/Desktop/GR5243 Applied Data Science/Project 2/Spring2019-Proj2-grp11/output/PickUp2016_Clean.csv")
taxi2015count_byhour_id<-fread("~/Deskt... |
##' This function creates a list of default values of all necessary
##' switches for gadget.simulation and gadget.skeleton functions. The
##' user can then change the values of the switches and use the
##' changed list as input to those functions. Here the default values for
##' consumption (predation and fleet operat... | /R/gadgetoptions.R | no_license | bthe/gadgetsim | R | false | false | 21,488 | r | ##' This function creates a list of default values of all necessary
##' switches for gadget.simulation and gadget.skeleton functions. The
##' user can then change the values of the switches and use the
##' changed list as input to those functions. Here the default values for
##' consumption (predation and fleet operat... |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | /r/src/R/ai/h2o/sparkling/ml/models/H2OBinaryModel.R | permissive | h2oai/sparkling-water | R | false | false | 1,319 | r | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... |
constants.alpha_col = 'read-tv Filtered'
rtv.et = expr_text
| /R/constants.R | permissive | JDMusc/READ-TV | R | false | false | 61 | r | constants.alpha_col = 'read-tv Filtered'
rtv.et = expr_text
|
library(dplyr)
source("fun.R")
inp <- file("Input.txt") %>%
readLines() %>%
strsplit(",") %>%
`[[`(1) %>%
as.numeric()
# part 1
run_program1(x = inp, input = 1)
# part 2
t1 <- c(3, 9, 8, 9, 10, 9, 4, 9, 99, -1, 8)
t2 <- c(3, 9, 7, 9, 10, 9, 4, 9, 99, -1, 8)
t5 <- c(3, 12, 6, 12, 15, 1, 13, 14, 13, 4, 13,... | /Day05/day05.R | no_license | Darius-Jaraminas/advent_of_code_2019 | R | false | false | 937 | r | library(dplyr)
source("fun.R")
inp <- file("Input.txt") %>%
readLines() %>%
strsplit(",") %>%
`[[`(1) %>%
as.numeric()
# part 1
run_program1(x = inp, input = 1)
# part 2
t1 <- c(3, 9, 8, 9, 10, 9, 4, 9, 99, -1, 8)
t2 <- c(3, 9, 7, 9, 10, 9, 4, 9, 99, -1, 8)
t5 <- c(3, 12, 6, 12, 15, 1, 13, 14, 13, 4, 13,... |
\name{kcirt.fitEE}
\alias{kcirt.fitEE}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Least Squares k-Cube Thurstonian IRT Fitting
}
\description{
k-Cube Thurstonian IRT Fitting using a least-squares expectation-expectation algorithm.
}
\usage{
kcirt.fitEE(model, mxHatLambda, maxIter = 40, lambd... | /man/kcirt.fitEE.Rd | no_license | cran/kcirt | R | false | false | 2,550 | rd | \name{kcirt.fitEE}
\alias{kcirt.fitEE}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Least Squares k-Cube Thurstonian IRT Fitting
}
\description{
k-Cube Thurstonian IRT Fitting using a least-squares expectation-expectation algorithm.
}
\usage{
kcirt.fitEE(model, mxHatLambda, maxIter = 40, lambd... |
#############################################
#############################################
### ###
### TEMPLATE FOR SDM WORKFLOW ###
### ###
### This script file is a template for ###
### the species distribution modelling ##... | /scripts/workflows_spartan/Mixophyes_iteratus_workflow.R | no_license | Doi90/bushfireSOS_workflow | R | false | false | 8,823 | r | #############################################
#############################################
### ###
### TEMPLATE FOR SDM WORKFLOW ###
### ###
### This script file is a template for ###
### the species distribution modelling ##... |
#
# Make rasters in the multidomain directory. Run as:
# Rscript create_tarred_rasters_from_tarred_multidomain.R string_matching_tarred_multidomain_dirs MYCHUNK NCHUNKS
#
input_args = commandArgs(trailingOnly=TRUE)
if(length(input_args) != 3){
msg = paste0(
'The code is called with 3 input arguments, li... | /misc/SW_WA_2021_2024/Greater_Perth/swals/create_tarred_rasters_from_tarred_multidomains.R | permissive | GeoscienceAustralia/ptha | R | false | false | 10,276 | r | #
# Make rasters in the multidomain directory. Run as:
# Rscript create_tarred_rasters_from_tarred_multidomain.R string_matching_tarred_multidomain_dirs MYCHUNK NCHUNKS
#
input_args = commandArgs(trailingOnly=TRUE)
if(length(input_args) != 3){
msg = paste0(
'The code is called with 3 input arguments, li... |
###################################################
### chunk number 1: setup
###################################################
options(prompt = "R> ", continue = "+ ", width = 64,
digits = 4, show.signif.stars = FALSE, useFancyQuotes = FALSE)
options(SweaveHooks = list(onefig = function() {par(mfrow = c(1,1))}... | /tests/Ch-Validation.R | no_license | tpemartin/AER | R | false | false | 11,244 | r | ###################################################
### chunk number 1: setup
###################################################
options(prompt = "R> ", continue = "+ ", width = 64,
digits = 4, show.signif.stars = FALSE, useFancyQuotes = FALSE)
options(SweaveHooks = list(onefig = function() {par(mfrow = c(1,1))}... |
### inc
#library(solarius)
library(devtools)
load_all(".")
library(gait1)
### par
cores <- 64
#pdir <- "/home/datasets/GAIT1/GWAS/SFBR"
#pdir <- "/home/andrey/Datasets/GAIT1/SFBR/subset"
pdir <- "/home/datasets/GAIT1/GWAS/SFBR/"
phefile <- file.path(pdir, "gait1.phe")
pedfile <- file.path(pdir, "gait1.ped")
#gdir1... | /projects/01-gait1/R/04-F11.R | no_license | ugcd/solarius | R | false | false | 2,062 | r | ### inc
#library(solarius)
library(devtools)
load_all(".")
library(gait1)
### par
cores <- 64
#pdir <- "/home/datasets/GAIT1/GWAS/SFBR"
#pdir <- "/home/andrey/Datasets/GAIT1/SFBR/subset"
pdir <- "/home/datasets/GAIT1/GWAS/SFBR/"
phefile <- file.path(pdir, "gait1.phe")
pedfile <- file.path(pdir, "gait1.ped")
#gdir1... |
context("Mid-circles")
test_that("midCircles function", {
# two congruent circles which do not intersect each other
circ1 <- Circle$new(center = c(1,2), radius = 3)
circ2 <- Circle$new(center = c(14,15), radius = 3)
mc <- midCircles(circ1, circ2)
expect_is(mc, "Line")
R <- Reflection$new(mc)
expect_true(... | /tests/testthat/test-midcircles.R | no_license | stla/PlaneGeometry | R | false | false | 2,939 | r | context("Mid-circles")
test_that("midCircles function", {
# two congruent circles which do not intersect each other
circ1 <- Circle$new(center = c(1,2), radius = 3)
circ2 <- Circle$new(center = c(14,15), radius = 3)
mc <- midCircles(circ1, circ2)
expect_is(mc, "Line")
R <- Reflection$new(mc)
expect_true(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parallel.R
\docType{methods}
\name{getDoParHosts,ANY-method}
\alias{getDoParHosts,ANY-method}
\title{Default method that tries to heuristaically infer the number of hosts and in last
resort temporarly register the backend and performs a fore... | /man/getDoParHosts-ANY-method.Rd | no_license | pooranis/NMF | R | false | true | 639 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parallel.R
\docType{methods}
\name{getDoParHosts,ANY-method}
\alias{getDoParHosts,ANY-method}
\title{Default method that tries to heuristaically infer the number of hosts and in last
resort temporarly register the backend and performs a fore... |
##################################################
## Informative Presence: Preliminary Simulation ##
##################################################
## ****; Aug 13, 2020
library(ggplot2)
library(tidyverse)
library(patchwork)
library(ggpattern)
library(wesanderson)
library(MASS)
setwd("~/Dropbox/ASD & EMRs/Code/Pl... | /main_sim.R | no_license | glenmcgee/IPbias | R | false | false | 61,996 | r | ##################################################
## Informative Presence: Preliminary Simulation ##
##################################################
## ****; Aug 13, 2020
library(ggplot2)
library(tidyverse)
library(patchwork)
library(ggpattern)
library(wesanderson)
library(MASS)
setwd("~/Dropbox/ASD & EMRs/Code/Pl... |
/AppWarrior/Source/Libs/QuickTime/RIncludes/Windows.r | no_license | NebuHiiEjamu/Openline | R | false | false | 588 | r | ||
library(shiny)
shinyUI(
pageWithSidebar(
headerPanel("Fractional Excretion of Sodium (FENa)"),
sidebarPanel(
numericInput('Serumsodium','Na mEq/L', 140, min=110, max=160
, step=1),
numericInput('SerumCreatinine','Cr mg/dL', 1, min=0.1, max=13
, step=0.1),
numericInput('Urinesod... | /ui.R | permissive | mmohamadalahmad/FeNa | R | false | false | 926 | r | library(shiny)
shinyUI(
pageWithSidebar(
headerPanel("Fractional Excretion of Sodium (FENa)"),
sidebarPanel(
numericInput('Serumsodium','Na mEq/L', 140, min=110, max=160
, step=1),
numericInput('SerumCreatinine','Cr mg/dL', 1, min=0.1, max=13
, step=0.1),
numericInput('Urinesod... |
if(!require(plyr)) {install.packages('plyr'); library(plyr)}
if(!require(dplyr)) {install.packages('dplyr'); library(dplyr)}
if(!require(magrittr)) {install.packages('magrittr'); library(magrittr)}
if(!require(lme4)) {install.packages('lme4'); library(lme4)}
if(!require(ggplot2)) {install.packages('ggplot2'); library(g... | /R/Limpeza/1ReadDadosGenero.R | no_license | VareciaRubra/MScMadagascar | R | false | false | 3,100 | r | if(!require(plyr)) {install.packages('plyr'); library(plyr)}
if(!require(dplyr)) {install.packages('dplyr'); library(dplyr)}
if(!require(magrittr)) {install.packages('magrittr'); library(magrittr)}
if(!require(lme4)) {install.packages('lme4'); library(lme4)}
if(!require(ggplot2)) {install.packages('ggplot2'); library(g... |
# title: pop.make.r
# purpose: datasets of population denominators for CBD project (state, county, tract, mssa)
# notes:
# acs package: acs::read.acs can read downloaded files from AFF, csv/zip/etc. in case Census API down.
# it is not used herein because of CBD project design preference for simple data objects.
... | /myUpstream/lifeTables/pop.make.r | no_license | aculich/CACommunityBurden | R | false | false | 15,576 | r | # title: pop.make.r
# purpose: datasets of population denominators for CBD project (state, county, tract, mssa)
# notes:
# acs package: acs::read.acs can read downloaded files from AFF, csv/zip/etc. in case Census API down.
# it is not used herein because of CBD project design preference for simple data objects.
... |
#' Internal function to convert the z_bars to pop-specific Fst's
#'
#' Blah, blah
#' @param SI the list that gets output by srs_identity.
#' @param FET the fst_edges_tibble. A tibble with columns parent daughter parent_idx and daughter_idx.
#' each daughter appears once. The idxs must be the indexes of the columns in... | /R/fst_ize_zbars.R | permissive | md-rodriguez/srsStuff | R | false | false | 815 | r | #' Internal function to convert the z_bars to pop-specific Fst's
#'
#' Blah, blah
#' @param SI the list that gets output by srs_identity.
#' @param FET the fst_edges_tibble. A tibble with columns parent daughter parent_idx and daughter_idx.
#' each daughter appears once. The idxs must be the indexes of the columns in... |
#' Add bbc theme to ggplot chart
#'
#' This function allows you to add the bbc theme to your ggplotgraphics.
#' @keywords bbc_style
#' @export
#' @examples
#' line <- ggplot(line_df, aes(x = year, y = lifeExp)) +
#' geom_line(colour = "#007f7f", size = 1) +
#' geom_hline(yintercept = 0, size = 1, colour="#333333") +
#'... | /wifi/R/BBC_style.R | no_license | Taros007/ubiqum_projects | R | false | false | 6,414 | r | #' Add bbc theme to ggplot chart
#'
#' This function allows you to add the bbc theme to your ggplotgraphics.
#' @keywords bbc_style
#' @export
#' @examples
#' line <- ggplot(line_df, aes(x = year, y = lifeExp)) +
#' geom_line(colour = "#007f7f", size = 1) +
#' geom_hline(yintercept = 0, size = 1, colour="#333333") +
#'... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_peak_group.R
\name{createTables}
\alias{createTables}
\title{Create tables for hit lists}
\usage{
createTables()
}
\description{
Create tables for hit lists
}
| /man/createTables.Rd | permissive | scottwalmsley/wSIMCity | R | false | true | 242 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_peak_group.R
\name{createTables}
\alias{createTables}
\title{Create tables for hit lists}
\usage{
createTables()
}
\description{
Create tables for hit lists
}
|
# Plots distribution of estimated parameters
setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) # change this to the folder where this script is lying; works only in RStudio
source("fig_setup.R")
library(patchwork)
# 0. Reads in data with parameter estimates
dt <- fread("../../../data/processed/similarity_mai... | /analyses/code/sim/fig_fitted_parameters.R | no_license | FlorianSeitz/DISC-R | R | false | false | 9,866 | r | # Plots distribution of estimated parameters
setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) # change this to the folder where this script is lying; works only in RStudio
source("fig_setup.R")
library(patchwork)
# 0. Reads in data with parameter estimates
dt <- fread("../../../data/processed/similarity_mai... |
#Analysis Walmart Store Sales
#Date Created: 30/5/2021
#Author: Sukanto Mukherjee
getwd()
setwd('/users/sukanto/WD/Walmart_StoreSale_Analysis/Walmart_StoreSales_Analysis')
#install.packages("fpp2")
#install.packages('knitr')
#install.packages('rmarkdown')
#Installing and loading packages
my_packages <- c("ggplot2","l... | /Walmart_Sales.R | no_license | sukanto-m/Walmart_StoreSales_Analysis | R | false | false | 6,597 | r | #Analysis Walmart Store Sales
#Date Created: 30/5/2021
#Author: Sukanto Mukherjee
getwd()
setwd('/users/sukanto/WD/Walmart_StoreSale_Analysis/Walmart_StoreSales_Analysis')
#install.packages("fpp2")
#install.packages('knitr')
#install.packages('rmarkdown')
#Installing and loading packages
my_packages <- c("ggplot2","l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gener}
\alias{gener}
\title{Tableau de généralités}
\format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 1 rows and 12 columns.}
\usage{
gener
}
\description{
Un dataset conte... | /man/gener.Rd | permissive | BenjaminLouis/cochon | R | false | true | 368 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gener}
\alias{gener}
\title{Tableau de généralités}
\format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 1 rows and 12 columns.}
\usage{
gener
}
\description{
Un dataset conte... |
#################################################################################
#
# Anaerobic Microbial Communities in a Stratified Sulfidic Lake
#
# Rojas et al 2021.Organic electron donors and terminal electron
# acceptors structure anaerobic microbial communi... | /scripts/06_alphadiv_enrichments.R | no_license | rojascon/FGL_2021_FrontiersinMicrobiology | R | false | false | 4,702 | r | #################################################################################
#
# Anaerobic Microbial Communities in a Stratified Sulfidic Lake
#
# Rojas et al 2021.Organic electron donors and terminal electron
# acceptors structure anaerobic microbial communi... |
\name{simc.model}
\title{Define a set of linear models}
\alias{simCity.model}
\concept{ simCity model }
\description{
Specify a data generating model for simCity simulations
}
\usage{
simc.model(file="",exdist=NULL,excov=NULL)
\cr
simc.model(file="",exdist=NULL,excov=NULL)
x~1;edist=rnorm(0,1)
y~x;edist=r... | /man/simc.model.Rd | permissive | guhjy/RsimCity | R | false | false | 9,611 | rd | \name{simc.model}
\title{Define a set of linear models}
\alias{simCity.model}
\concept{ simCity model }
\description{
Specify a data generating model for simCity simulations
}
\usage{
simc.model(file="",exdist=NULL,excov=NULL)
\cr
simc.model(file="",exdist=NULL,excov=NULL)
x~1;edist=rnorm(0,1)
y~x;edist=r... |
library(shinyWidgets)
### Name: progressSweetAlert
### Title: Progress bar in a sweet alert
### Aliases: progressSweetAlert
### ** Examples
## Not run:
##D
##D if (interactive()) {
##D
##D library("shiny")
##D library("shinyWidgets")
##D
##D
##D ui <- fluidPage(
##D tags$h1("Progress bar in Sweet Alert"),
##... | /data/genthat_extracted_code/shinyWidgets/examples/progressSweetAlert.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,209 | r | library(shinyWidgets)
### Name: progressSweetAlert
### Title: Progress bar in a sweet alert
### Aliases: progressSweetAlert
### ** Examples
## Not run:
##D
##D if (interactive()) {
##D
##D library("shiny")
##D library("shinyWidgets")
##D
##D
##D ui <- fluidPage(
##D tags$h1("Progress bar in Sweet Alert"),
##... |
#' Creates an input geometry (IGM) file from a raster
#'
#' @param x Raster* The raster containing the geographic information to be used as the basis for the IGM.
#' @author Jonathan A. Greenberg
#' @seealso \code{\link[raster]{xyFromCell}}, \code{\link[raster]{cellFromRow}}
#'
#' @details This function produces a tw... | /spatial.tools/R/raster_to_IGM.R | no_license | ingted/R-Examples | R | false | false | 1,148 | r | #' Creates an input geometry (IGM) file from a raster
#'
#' @param x Raster* The raster containing the geographic information to be used as the basis for the IGM.
#' @author Jonathan A. Greenberg
#' @seealso \code{\link[raster]{xyFromCell}}, \code{\link[raster]{cellFromRow}}
#'
#' @details This function produces a tw... |
#' @title Describe an AOI
#' @description Describe a spatial (sf/sp/raster) object in terms of a
#' reproducible AOI (e.g. \code{\link{aoi_get}}) parameters.
#' @param AOI a spatial object (\code{raster}, \code{sf}, \code{sp}).
#' @return a data.frame of AOI descriptors
#' @export
#' @examples
#' {
#' f... | /R/aoi_describe.R | permissive | mikejohnson51/AOI | R | false | false | 1,648 | r | #' @title Describe an AOI
#' @description Describe a spatial (sf/sp/raster) object in terms of a
#' reproducible AOI (e.g. \code{\link{aoi_get}}) parameters.
#' @param AOI a spatial object (\code{raster}, \code{sf}, \code{sp}).
#' @return a data.frame of AOI descriptors
#' @export
#' @examples
#' {
#' f... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3022
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3022
c
c Input Parameter (command line, file):
c input filename QBFLIB/Rintanen/Sorting_networks/sortnetsort7.AE.stepl.004.qdim... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Rintanen/Sorting_networks/sortnetsort7.AE.stepl.004/sortnetsort7.AE.stepl.004.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 664 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3022
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3022
c
c Input Parameter (command line, file):
c input filename QBFLIB/Rintanen/Sorting_networks/sortnetsort7.AE.stepl.004.qdim... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inertCoord.R
\name{inertCoordSysVarOut}
\alias{inertCoordSysVarOut}
\title{Compares variants of the inertia-coordination model for predicting the system variable from the dynamic parameters.}
\usage{
inertCoordSysVarOut(basedata, sysVarType, ... | /man/inertCoordSysVarOut.Rd | no_license | ebmtnprof/qid | R | false | true | 1,991 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inertCoord.R
\name{inertCoordSysVarOut}
\alias{inertCoordSysVarOut}
\title{Compares variants of the inertia-coordination model for predicting the system variable from the dynamic parameters.}
\usage{
inertCoordSysVarOut(basedata, sysVarType, ... |
MarginalRegr = function(Y,X,Gamma,G){
# INPUTS:
# Y = nxq matrix of observations
# X = mx(p+1) full matrix of predictors
# Gamma = (p+1) 0/1 vector of chosen predictors
# G = qxq adj matrix of underlying DAG
# OUTPUTS:
## preliminaries
q = dim(Y)[2] # num of ve... | /MarginalRegr.R | no_license | stefanopel/OBFBF | R | false | false | 2,277 | r | MarginalRegr = function(Y,X,Gamma,G){
# INPUTS:
# Y = nxq matrix of observations
# X = mx(p+1) full matrix of predictors
# Gamma = (p+1) 0/1 vector of chosen predictors
# G = qxq adj matrix of underlying DAG
# OUTPUTS:
## preliminaries
q = dim(Y)[2] # num of ve... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
##set Null to matrix
##set the value of the matrix
##get the value of the matrix
##set the inverse of the matrix
##get the inverse of the matrix
makeCacheMatrix <- function(x = matrix())... | /cachematrix.R | no_license | hank222/ProgrammingAssignment2 | R | false | false | 1,160 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
##set Null to matrix
##set the value of the matrix
##get the value of the matrix
##set the inverse of the matrix
##get the inverse of the matrix
makeCacheMatrix <- function(x = matrix())... |
\name{ch01data}
\docType{data}
\alias{ch01data}
\alias{Table1.2}
\alias{d.ibmvwewsp6203}
\alias{d.intc7303}
\alias{d.3m6203}
\alias{d.msft8603}
\alias{d.c8603}
\alias{m.ibmvwewsp2603}
\alias{m.intc7303}
\alias{m.3m4603}
\alias{m.msft8603}
\alias{m.c8603}
\alias{m.gs10}
\alias{m.gs1}
\alias{d.fxjp00}
\a... | /man/ch01data.Rd | no_license | RahmanMahmudurTokyo/FinTS | R | false | false | 4,076 | rd | \name{ch01data}
\docType{data}
\alias{ch01data}
\alias{Table1.2}
\alias{d.ibmvwewsp6203}
\alias{d.intc7303}
\alias{d.3m6203}
\alias{d.msft8603}
\alias{d.c8603}
\alias{m.ibmvwewsp2603}
\alias{m.intc7303}
\alias{m.3m4603}
\alias{m.msft8603}
\alias{m.c8603}
\alias{m.gs10}
\alias{m.gs1}
\alias{d.fxjp00}
\a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GameLinesLines.r
\name{GameLinesLines}
\alias{GameLinesLines}
\title{GameLinesLines Class}
\description{
GameLinesLines Class
GameLinesLines Class
}
\section{Public fields}{
\if{html}{\out{<div class="r6-fields">}}
\describe{
\item{\code{pro... | /man/GameLinesLines.Rd | no_license | saiemgilani/cfbd-api-R | R | false | true | 2,862 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GameLinesLines.r
\name{GameLinesLines}
\alias{GameLinesLines}
\title{GameLinesLines Class}
\description{
GameLinesLines Class
GameLinesLines Class
}
\section{Public fields}{
\if{html}{\out{<div class="r6-fields">}}
\describe{
\item{\code{pro... |
library(reshape2)
File <- "dataset.zip"
## Downloading, unzipping the dataset
if (!file.exists(File)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip "
download.file(fileURL, File, method="curl")
}
if (!file.exists("UCI HAR Dataset")) {
unzip(File)
}
# Lo... | /run_analysis.R | no_license | Giribushan/Getting-and-Cleaning-Data | R | false | false | 2,029 | r | library(reshape2)
File <- "dataset.zip"
## Downloading, unzipping the dataset
if (!file.exists(File)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip "
download.file(fileURL, File, method="curl")
}
if (!file.exists("UCI HAR Dataset")) {
unzip(File)
}
# Lo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.