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 |
|---|---|---|---|---|---|---|---|---|---|
## The following exemplifies caching by assigning via the <<- operator. Below are two functions, makeCacheMatrix() and cacheSolve() that are used to store a matrix, cache its inverse, and retrieve the inverse appropriately.
## The function makeCacheMatrix() creates a special "matrix", which is really a list containing... | /cachematrix.R | no_license | jonjeng/ProgrammingAssignment2 | R | false | false | 2,074 | r | ## The following exemplifies caching by assigning via the <<- operator. Below are two functions, makeCacheMatrix() and cacheSolve() that are used to store a matrix, cache its inverse, and retrieve the inverse appropriately.
## The function makeCacheMatrix() creates a special "matrix", which is really a list containing... |
require(data.table)
require(caret)
setwd("~/Code/ffc-R/code")
# import data
d <- fread("../data/background.csv")
# d <- fread("background.csv")
setkeyv(d, "challengeID")
ids <- d$challengeID
# remove IDs
noIds <- c("mothid4", "fathid4", "fathid3", "mothid3", "fathid2", "mothid2", "fathid1")
d[, (noIds):=NULL]
# re... | /code/impute.R | no_license | maltemoeser/ffc-R | R | false | false | 3,156 | r | require(data.table)
require(caret)
setwd("~/Code/ffc-R/code")
# import data
d <- fread("../data/background.csv")
# d <- fread("background.csv")
setkeyv(d, "challengeID")
ids <- d$challengeID
# remove IDs
noIds <- c("mothid4", "fathid4", "fathid3", "mothid3", "fathid2", "mothid2", "fathid1")
d[, (noIds):=NULL]
# re... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/google_map_layers.R
\name{add_heatmap}
\alias{add_heatmap}
\title{Add heatmap}
\usage{
add_heatmap(map, data = get_map_data(map), lat = NULL, lon = NULL,
weight = NULL, option_gradient = NULL, option_dissipating = FALSE,
option_radius = 0... | /man/add_heatmap.Rd | no_license | ManuelDeFrancisco/googleway | R | false | true | 2,556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/google_map_layers.R
\name{add_heatmap}
\alias{add_heatmap}
\title{Add heatmap}
\usage{
add_heatmap(map, data = get_map_data(map), lat = NULL, lon = NULL,
weight = NULL, option_gradient = NULL, option_dissipating = FALSE,
option_radius = 0... |
#' Locate a file installed with this library
#'
#' @param f The name of a file installed with this library.
#'
#' @return The reconstructed full file path of said file.
#'
#' @export
slfile <- function(f) {
ret <- system.file("extdata", f, package = "sciliantifig")
if (!file.exists(ret)) {
warning("Cannot locat... | /R/utils.R | permissive | DongshengBai/sciliantifig | R | false | false | 4,806 | r | #' Locate a file installed with this library
#'
#' @param f The name of a file installed with this library.
#'
#' @return The reconstructed full file path of said file.
#'
#' @export
slfile <- function(f) {
ret <- system.file("extdata", f, package = "sciliantifig")
if (!file.exists(ret)) {
warning("Cannot locat... |
# Show ice coverage around Elephant Island
library(chron)
library(grid)
load('Elephant.comparisons.icec.Rdata')
pdf(file="Elephant_ice.pdf",
width=10*sqrt(2),height=10,family='Helvetica',
paper='special',pointsize=18,bg='white')
# Enter the ice
id<-chron(dates=c("1916/04/01","1916/11/01"),
times=c... | /voyages/endurance_1914-6/scripts/Elephant_island_ice_plot.R | no_license | alxbutterworth/Expeditions | R | false | false | 1,581 | r | # Show ice coverage around Elephant Island
library(chron)
library(grid)
load('Elephant.comparisons.icec.Rdata')
pdf(file="Elephant_ice.pdf",
width=10*sqrt(2),height=10,family='Helvetica',
paper='special',pointsize=18,bg='white')
# Enter the ice
id<-chron(dates=c("1916/04/01","1916/11/01"),
times=c... |
start_time <- Sys.time() # for timing the script
if(!exists("region")) region <- "cambridgeshire" # create LA name if none exists, then set-up data repo
if(!file.exists(pct_data)) stop(paste("The pct-data repository cannot be found. Please clone https://github.com/npct/pct-data in", dirname(getwd())))
if(!file.exis... | /warwickshire/build_region.R | no_license | Robinlovelace/pct-data | R | false | false | 6,808 | r | start_time <- Sys.time() # for timing the script
if(!exists("region")) region <- "cambridgeshire" # create LA name if none exists, then set-up data repo
if(!file.exists(pct_data)) stop(paste("The pct-data repository cannot be found. Please clone https://github.com/npct/pct-data in", dirname(getwd())))
if(!file.exis... |
#Shiny App
#ui File
library(shiny)
library(dplyr)
library(plotly)
library(shinythemes)
source("Data_Manipulation.R")
professions = get.filtered.data(c("Professional")) %>% unique()
degrees = get.filtered.data(c("FormalEducation")) %>% unique()
majors = get.filtered.data(c("MajorUndergrad")) %>% unique()
sizes = get.fi... | /ui.R | no_license | kelhoo/i-need-healing-stack-overflow | R | false | false | 2,538 | r | #Shiny App
#ui File
library(shiny)
library(dplyr)
library(plotly)
library(shinythemes)
source("Data_Manipulation.R")
professions = get.filtered.data(c("Professional")) %>% unique()
degrees = get.filtered.data(c("FormalEducation")) %>% unique()
majors = get.filtered.data(c("MajorUndergrad")) %>% unique()
sizes = get.fi... |
source('load_wrangle_data.R')
# Distance between two hour distributions
hourdist <- function(A, B) sum(pmin( (A-B)%%24, (B-A)%%24 ) )
# Manually calculate density from the vector of hours
calc_weight <- function(x) { # a vector of hours
tab <- table(factor(x, levels=as.character(0:23)),
useNA="if... | /crappy_testing/test_fits.R | no_license | maryglover/anttime | R | false | false | 4,687 | r | source('load_wrangle_data.R')
# Distance between two hour distributions
hourdist <- function(A, B) sum(pmin( (A-B)%%24, (B-A)%%24 ) )
# Manually calculate density from the vector of hours
calc_weight <- function(x) { # a vector of hours
tab <- table(factor(x, levels=as.character(0:23)),
useNA="if... |
####### bayesian tutorial - BUGS ###########
setwd("C:/Users/n9232371/OneDrive/shared files/Statslearningcourse/OpenBUGS")
# the following indiciates that a random variable y fits a binomial distribution with probability of success p and size N
#y is the number of smokers
y~ dbin(p,N)
#problem question... ... | /Statslearningcourse/OpenBUGS/survey.R | no_license | amycook/cheatsheet | R | false | false | 1,893 | r | ####### bayesian tutorial - BUGS ###########
setwd("C:/Users/n9232371/OneDrive/shared files/Statslearningcourse/OpenBUGS")
# the following indiciates that a random variable y fits a binomial distribution with probability of success p and size N
#y is the number of smokers
y~ dbin(p,N)
#problem question... ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runModule.run.write.configs.R
\name{runModule.run.write.configs}
\alias{runModule.run.write.configs}
\title{Generate model-specific run configuration files for one or more PEcAn runs}
\usage{
runModule.run.write.configs(settings, overwrite = ... | /base/workflow/man/runModule.run.write.configs.Rd | permissive | PecanProject/pecan | R | false | true | 611 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runModule.run.write.configs.R
\name{runModule.run.write.configs}
\alias{runModule.run.write.configs}
\title{Generate model-specific run configuration files for one or more PEcAn runs}
\usage{
runModule.run.write.configs(settings, overwrite = ... |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810576853402e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613102760-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 343 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810576853402e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mops-package.r
\docType{package}
\name{mops-package}
\alias{mops-package}
\title{mops: Matrix Operations}
\description{
Optimized matrix operations, such as row/col sums.
}
\author{
Drew Schmidt
}
\keyword{package}
| /man/mops-package.Rd | permissive | wrathematics/mops | R | false | true | 294 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mops-package.r
\docType{package}
\name{mops-package}
\alias{mops-package}
\title{mops: Matrix Operations}
\description{
Optimized matrix operations, such as row/col sums.
}
\author{
Drew Schmidt
}
\keyword{package}
|
#' Matrix containing data calculated for each growth band.
#'
#' A dataset containing specific parameters calculated for all digitized growth
#' increments from the Crassostre gigas #1 oyster used as an example in de Winter
#' (2017) sorted per increment.
#'
#' @docType data
#'
#' @usage data(incr_matrix1)
#'
#' @forma... | /R/incr_matrix1.R | no_license | nielsjdewinter/ShellTrace | R | false | false | 856 | r | #' Matrix containing data calculated for each growth band.
#'
#' A dataset containing specific parameters calculated for all digitized growth
#' increments from the Crassostre gigas #1 oyster used as an example in de Winter
#' (2017) sorted per increment.
#'
#' @docType data
#'
#' @usage data(incr_matrix1)
#'
#' @forma... |
#formats and combines phenotype (of a single trait)
#and genotype datasets of multiple
#populations
options(echo = FALSE)
library(stats)
library(stringr)
library(randomForest)
library(plyr)
library(lme4)
allArgs <- commandArgs()
inFile <- grep("input_files",
allArgs,
ignore.case = TRU... | /R/combine_populations.r | no_license | pvnsprasad/sgn | R | false | false | 9,441 | r | #formats and combines phenotype (of a single trait)
#and genotype datasets of multiple
#populations
options(echo = FALSE)
library(stats)
library(stringr)
library(randomForest)
library(plyr)
library(lme4)
allArgs <- commandArgs()
inFile <- grep("input_files",
allArgs,
ignore.case = TRU... |
# #create a function to draw path from two-dimensional gibbs sample
# #takes x0, a vector of length 2 containing the starting point,
# #x, an nx2 matrix containing the posterior simulations,
# #add, whether this path should be added to a current plot
# #..., additional parameter to pass to the plotting functions
#
# pl... | /R/bayesdists.R | no_license | jfrench/bayesutils | R | false | false | 1,798 | r | # #create a function to draw path from two-dimensional gibbs sample
# #takes x0, a vector of length 2 containing the starting point,
# #x, an nx2 matrix containing the posterior simulations,
# #add, whether this path should be added to a current plot
# #..., additional parameter to pass to the plotting functions
#
# pl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hw04pyanzhang7559resub-package.R
\docType{package}
\name{hw04pyanzhang7559resub-package}
\alias{hw04pyanzhang7559resub}
\alias{hw04pyanzhang7559resub-package}
\title{hw04pyanzhang7559resub: This is for homework 4 builing a package}
\descripti... | /man/hw04pyanzhang7559resub-package.Rd | permissive | yanzhang7559/hw04pyanzhang7559resub | R | false | true | 811 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hw04pyanzhang7559resub-package.R
\docType{package}
\name{hw04pyanzhang7559resub-package}
\alias{hw04pyanzhang7559resub}
\alias{hw04pyanzhang7559resub-package}
\title{hw04pyanzhang7559resub: This is for homework 4 builing a package}
\descripti... |
# Data_iso1.R 12.10.2018
#
# Kootaan G1_1_data2.Rmd - tiedostosta laajemman datana koodilohkot; poistetaan
# pitkät dokumentoinnit (7.6.2019), ja datatiedostojen nimiin etuliite test.
# Aja paketit-R !
# luetaan alkuperäinen data R- dataksi (df/tibble).
testISSP2012.data <- read_spss("data/ZA5900_v4-0-0.sav")
#str(te... | /Data_iso1.R | no_license | hirjus/Galku | R | false | false | 14,093 | r | # Data_iso1.R 12.10.2018
#
# Kootaan G1_1_data2.Rmd - tiedostosta laajemman datana koodilohkot; poistetaan
# pitkät dokumentoinnit (7.6.2019), ja datatiedostojen nimiin etuliite test.
# Aja paketit-R !
# luetaan alkuperäinen data R- dataksi (df/tibble).
testISSP2012.data <- read_spss("data/ZA5900_v4-0-0.sav")
#str(te... |
context("metrics() and metric_set()")
library(testthat)
library(yardstick)
library(dplyr)
set.seed(1311)
three_class <- data.frame(obs = iris$Species,
pred = sample(iris$Species, replace = TRUE))
probs <- matrix(runif(150 * 3), nrow = 150)
probs <- t(apply(probs, 1, function(x) x/sum(x)))
co... | /tests/testthat/test_metrics.R | no_license | alexhallam/yardstick | R | false | false | 3,303 | r | context("metrics() and metric_set()")
library(testthat)
library(yardstick)
library(dplyr)
set.seed(1311)
three_class <- data.frame(obs = iris$Species,
pred = sample(iris$Species, replace = TRUE))
probs <- matrix(runif(150 * 3), nrow = 150)
probs <- t(apply(probs, 1, function(x) x/sum(x)))
co... |
library(readr)
library(dplyr)
library(lubridate)
library(raster)
library(rgdal)
# install.packages("NISTunits", dependencies = TRUE)
library(NISTunits)
setwd("C:/Users/aaldababseh/R_Codes_PostPorcessing")
source("extract_pnt_raster.R")
# read all AWS NCMS data
# setwd("Z:/_SHARED_FOLDERS/Air Quality... | /Time_series_Temp_Year_hr_comparison.R | no_license | karafede/amal_scripts | R | false | false | 11,332 | r |
library(readr)
library(dplyr)
library(lubridate)
library(raster)
library(rgdal)
# install.packages("NISTunits", dependencies = TRUE)
library(NISTunits)
setwd("C:/Users/aaldababseh/R_Codes_PostPorcessing")
source("extract_pnt_raster.R")
# read all AWS NCMS data
# setwd("Z:/_SHARED_FOLDERS/Air Quality... |
mRNA.F <- function(Feat, SQuali, SQualiN){
Item <- c("/allele=", "/artificial_location=", "/citation=", "/db_xref=", "/experiment=", "/function=", "/gene=", "/gene_synonym=", "/inference=", "/locus_tag=", "/map=", "/note=", "/old_locus_tag=", "/operon=", "/product=", "/pseudogene=", "/standard_name=")
ItemN <- c(... | /R/mRNA.F.R | no_license | Largon-Denayah/read.gb-2.0.1 | R | false | false | 1,994 | r | mRNA.F <- function(Feat, SQuali, SQualiN){
Item <- c("/allele=", "/artificial_location=", "/citation=", "/db_xref=", "/experiment=", "/function=", "/gene=", "/gene_synonym=", "/inference=", "/locus_tag=", "/map=", "/note=", "/old_locus_tag=", "/operon=", "/product=", "/pseudogene=", "/standard_name=")
ItemN <- c(... |
#calculates intersection between two intervals
intersection=function(a1,a2,b1,b2){
max(0, min(a2,b2)-max(a1,b1))
}
#
#percentiles should contain 0 and 1 as specific points.
#values are the quantiles - the value at the percentiles.
#length of values should be the same as length of percentiles
percentile_to_fixed=fu... | /Resources/Factor_frequencies_data/standard_transformations.R | no_license | chrand90/DeathCauses | R | false | false | 692 | r | #calculates intersection between two intervals
intersection=function(a1,a2,b1,b2){
max(0, min(a2,b2)-max(a1,b1))
}
#
#percentiles should contain 0 and 1 as specific points.
#values are the quantiles - the value at the percentiles.
#length of values should be the same as length of percentiles
percentile_to_fixed=fu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prediction.R
\name{predict.LSBP_Gibbs}
\alias{predict.LSBP_Gibbs}
\title{Predict method for the LSBP}
\usage{
\method{predict}{LSBP_Gibbs}(object, type = "mean", newdata = NULL,
threshold = NULL, ...)
}
\arguments{
\item{object}{An object o... | /man/predict.LSBP_Gibbs.Rd | permissive | blindedmanuscript/LSBP | R | false | true | 1,588 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prediction.R
\name{predict.LSBP_Gibbs}
\alias{predict.LSBP_Gibbs}
\title{Predict method for the LSBP}
\usage{
\method{predict}{LSBP_Gibbs}(object, type = "mean", newdata = NULL,
threshold = NULL, ...)
}
\arguments{
\item{object}{An object o... |
## Cache inverse of matrix
## Create a matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y
inv <<- NULL
}
get <- function() x
setinverse <- function( inver ){
inv <<- inver
}
getinverse <- function() inv
list(set = set, get = get,
setinverse... | /cachematrix.R | no_license | nupursaxena/ProgrammingAssignment2 | R | false | false | 610 | r | ## Cache inverse of matrix
## Create a matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y
inv <<- NULL
}
get <- function() x
setinverse <- function( inver ){
inv <<- inver
}
getinverse <- function() inv
list(set = set, get = get,
setinverse... |
########################################################################################################
# __ __ ___________ ___ _________ __ ________ ____ ___ ______________ _ __ #
# / / / / / / _/ ___// | / ____/ | / / / _/ __ )/ __ \/ |/_ __/ _/ __ \/ | / / #
# ... | /autoGLM_examplesV1.r | no_license | BPJandree/AutoGLM | R | false | false | 24,504 | r | ########################################################################################################
# __ __ ___________ ___ _________ __ ________ ____ ___ ______________ _ __ #
# / / / / / / _/ ___// | / ____/ | / / / _/ __ )/ __ \/ |/_ __/ _/ __ \/ | / / #
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssoadmin_operations.R
\name{ssoadmin_list_accounts_for_provisioned_permission_set}
\alias{ssoadmin_list_accounts_for_provisioned_permission_set}
\title{Lists all the AWS accounts where the specified permission set is
provisioned}
\usage{
ssoa... | /cran/paws.security.identity/man/ssoadmin_list_accounts_for_provisioned_permission_set.Rd | permissive | paws-r/paws | R | false | true | 1,419 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssoadmin_operations.R
\name{ssoadmin_list_accounts_for_provisioned_permission_set}
\alias{ssoadmin_list_accounts_for_provisioned_permission_set}
\title{Lists all the AWS accounts where the specified permission set is
provisioned}
\usage{
ssoa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Partitions.R
\name{GetDatetimePartition}
\alias{GetDatetimePartition}
\title{Retrieve the DatetimePartitioning from a project}
\usage{
GetDatetimePartition(project)
}
\arguments{
\item{project}{character. Either (1) a character string giving ... | /man/GetDatetimePartition.Rd | no_license | bgreenwell/datarobot | R | false | true | 725 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Partitions.R
\name{GetDatetimePartition}
\alias{GetDatetimePartition}
\title{Retrieve the DatetimePartitioning from a project}
\usage{
GetDatetimePartition(project)
}
\arguments{
\item{project}{character. Either (1) a character string giving ... |
# Replace negative values with NA as these are assumed to be missing
library(lubridate)
replaceMissingCodes <- function(pheno)
{
phenoReplaced <- pheno
uniqVar <- unique(na.omit(phenoReplaced))
# Variable values <0 are `missing' codes
for (u in uniqVar) {
if (u < 0) {
idxU <- which... | /WAS/replaceMissingandNaN.r | permissive | GRSN-NN/PHESANT | R | false | false | 1,169 | r | # Replace negative values with NA as these are assumed to be missing
library(lubridate)
replaceMissingCodes <- function(pheno)
{
phenoReplaced <- pheno
uniqVar <- unique(na.omit(phenoReplaced))
# Variable values <0 are `missing' codes
for (u in uniqVar) {
if (u < 0) {
idxU <- which... |
\name{update.kppm}
\alias{update.kppm}
\title{Update a Fitted Cluster Point Process Model}
\description{
\code{update} method for class \code{"kppm"}.
}
\usage{
\method{update}{kppm}(object, \dots, evaluate=TRUE,
envir=environment(terms(object)))
}
\arguments{
\item{object}{
Fitted clust... | /man/update.kppm.Rd | no_license | spatstat/spatstat.core | R | false | false | 2,518 | rd | \name{update.kppm}
\alias{update.kppm}
\title{Update a Fitted Cluster Point Process Model}
\description{
\code{update} method for class \code{"kppm"}.
}
\usage{
\method{update}{kppm}(object, \dots, evaluate=TRUE,
envir=environment(terms(object)))
}
\arguments{
\item{object}{
Fitted clust... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sts_operations.R
\name{sts_decode_authorization_message}
\alias{sts_decode_authorization_message}
\title{Decodes additional information about the authorization status of a
request from an encoded message returned in response to an AWS request... | /cran/paws.security.identity/man/sts_decode_authorization_message.Rd | permissive | johnnytommy/paws | R | false | true | 2,348 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sts_operations.R
\name{sts_decode_authorization_message}
\alias{sts_decode_authorization_message}
\title{Decodes additional information about the authorization status of a
request from an encoded message returned in response to an AWS request... |
#' AIDS data-set - baseline.
#'
#' A dataset containing data for 467 patients
#'
#' @format A data frame with 467 rows and 9 variables:
#' \describe{
#' \item{patient}{id}
#' \item{Time}{survival time}
#' \item{death}{died? 1 = yes}
#' \item{CD4}{biomarker}
#' \item{obstime}{follow-up time}
#' \item{drug}{d... | /R/aids.id.R | no_license | ozgurasarstat/robjm | R | false | false | 446 | r | #' AIDS data-set - baseline.
#'
#' A dataset containing data for 467 patients
#'
#' @format A data frame with 467 rows and 9 variables:
#' \describe{
#' \item{patient}{id}
#' \item{Time}{survival time}
#' \item{death}{died? 1 = yes}
#' \item{CD4}{biomarker}
#' \item{obstime}{follow-up time}
#' \item{drug}{d... |
require(plyr)
require(reshape2)
require(stringr)
options('scipen' = 100)
criteria <- read.csv('//deqlab1/wqm/TOXICS_2012/Data/Criteria_benchmarks_etc/Criteria.csv', stringsAsFactors = FALSE)
#alternative location as of 11/17/2014 if you don't have access to deq servers
#criteria <- read.csv('TMP-RCode/criteria_2014111... | /TMP-RCode/criteria.R | no_license | petertbryant/ToxicsRedo | R | false | false | 6,573 | r | require(plyr)
require(reshape2)
require(stringr)
options('scipen' = 100)
criteria <- read.csv('//deqlab1/wqm/TOXICS_2012/Data/Criteria_benchmarks_etc/Criteria.csv', stringsAsFactors = FALSE)
#alternative location as of 11/17/2014 if you don't have access to deq servers
#criteria <- read.csv('TMP-RCode/criteria_2014111... |
\dontrun{
repo_path <- tempdir()
createRepoFolders(repo_path)
install_mran(repo=repo_path, pkg="plyr", snapshotdate="2014-08-01")
dir(instPath)
unlink(instPath, recursive = TRUE)
}
| /inst/examples/example_install_mran.R | no_license | revodavid/checkpoint | R | false | false | 200 | r | \dontrun{
repo_path <- tempdir()
createRepoFolders(repo_path)
install_mran(repo=repo_path, pkg="plyr", snapshotdate="2014-08-01")
dir(instPath)
unlink(instPath, recursive = TRUE)
}
|
#' Binary Infix Concatenation
#'
#' \describe{
#' \item{\code{\%c\%}:}{binary infix operator for strings.}
#' \item{\code{\% c \%}:}{like \code{\%c\%} but with a space between its
#' inputs.}
#' \item{\code{\%,\%}, \code{\%or\%}, \code{\%and\%}:}{infix versions of
#' \code{\link{cc}}, \code{\link{cc_or}}, \code{\... | /R/infix.r | no_license | franz-maikaefer/concatenate | R | false | false | 881 | r | #' Binary Infix Concatenation
#'
#' \describe{
#' \item{\code{\%c\%}:}{binary infix operator for strings.}
#' \item{\code{\% c \%}:}{like \code{\%c\%} but with a space between its
#' inputs.}
#' \item{\code{\%,\%}, \code{\%or\%}, \code{\%and\%}:}{infix versions of
#' \code{\link{cc}}, \code{\link{cc_or}}, \code{\... |
#' ---
#' title: "R Code for Chapter 3 of Introduction to Data Mining: Explorating Data"
#' author: "Michael Hahsler"
#' output:
#' html_document:
#' toc: true
#' ---
#' This code covers chapter 3 of _"Introduction to Data Mining"_
#' by Pang-Ning Tan, Michael Steinbach and Vipin Kumar.
#'
#' ){disease_info=read.table("/lustre/scratch115/teams/anderson/ukbiobank/ibs/data/ukb7725.tab",sep="\t",head=T)}
if(!exists("disease_info")){disease_info=read.table("/lustre/scratch115/teams/anderson/ukbiobank/ibs/data/phenotypes_for_genotyped_samples_only.txt",s... | /get_disease_status_UKBB.R | no_license | moutsian/lm12_Scripts | R | false | false | 5,554 | r |
printtopdf=T;
MIN_COUNTS=3
#if(!exists("disease_info")){disease_info=read.table("/lustre/scratch115/teams/anderson/ukbiobank/ibs/data/ukb7725.tab",sep="\t",head=T)}
if(!exists("disease_info")){disease_info=read.table("/lustre/scratch115/teams/anderson/ukbiobank/ibs/data/phenotypes_for_genotyped_samples_only.txt",s... |
context("Model Registry")
get_mock_client <- function() {
client <- new_mlflow_client_impl(
get_host_creds = function() {
new_mlflow_host_creds(host = "localhost")
}
)
return(client)
}
test_that("mlflow can register a model", {
with_mock(.env = "mlflow",
mlflow_rest = function(...) ... | /mlflow/R/mlflow/tests/testthat/test-model-registry.R | permissive | mlflow/mlflow | R | false | false | 11,935 | r | context("Model Registry")
get_mock_client <- function() {
client <- new_mlflow_client_impl(
get_host_creds = function() {
new_mlflow_host_creds(host = "localhost")
}
)
return(client)
}
test_that("mlflow can register a model", {
with_mock(.env = "mlflow",
mlflow_rest = function(...) ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SmoothingIndex.R
\name{SmoothingIndex}
\alias{SmoothingIndex}
\title{calculate Normalized Getmansky Smoothing Index}
\usage{
SmoothingIndex(R, neg.thetas = FALSE, MAorder = 2, verbose = FALSE,
...)
}
\arguments{
\item{R}{an xts, vector, mat... | /man/SmoothingIndex.Rd | no_license | JustinMShea/PerformanceAnalytics | R | false | true | 4,813 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SmoothingIndex.R
\name{SmoothingIndex}
\alias{SmoothingIndex}
\title{calculate Normalized Getmansky Smoothing Index}
\usage{
SmoothingIndex(R, neg.thetas = FALSE, MAorder = 2, verbose = FALSE,
...)
}
\arguments{
\item{R}{an xts, vector, mat... |
# Exercise 5 Chapter 8 Page no.: 138
# Determinant of matrix
# Include "Matrix" and "matlib" library
A <- matrix(c(1,2,-3,4,-4,2,1,3,3,0,-2,0,1,0,2,-5), nrow = 4, ncol = 4 , byrow = TRUE)
det(A)
| /Akhil/R Codes/Basics of Linear Algebra- T S Blyth and Robertson/Chapter 8/EXR_8_5R.R | no_license | sahridhaya/BitPlease | R | false | false | 206 | r | # Exercise 5 Chapter 8 Page no.: 138
# Determinant of matrix
# Include "Matrix" and "matlib" library
A <- matrix(c(1,2,-3,4,-4,2,1,3,3,0,-2,0,1,0,2,-5), nrow = 4, ncol = 4 , byrow = TRUE)
det(A)
|
\name{ BRCA }
\alias{ BRCA }
\docType{data}
\title{ Breast invasive carcinoma }
\description{
A document describing the TCGA cancer code
}
\details{
\preformatted{
> experiments( BRCA )
ExperimentList class object of length 14:
[1] BRCA_CNASeq-20160128: RaggedExperiment with 5298 rows and 38 columns
[2] BRCA_CNASN... | /man/BRCA.Rd | no_license | ChengYunazhi/curatedTCGAData | R | false | false | 5,655 | rd | \name{ BRCA }
\alias{ BRCA }
\docType{data}
\title{ Breast invasive carcinoma }
\description{
A document describing the TCGA cancer code
}
\details{
\preformatted{
> experiments( BRCA )
ExperimentList class object of length 14:
[1] BRCA_CNASeq-20160128: RaggedExperiment with 5298 rows and 38 columns
[2] BRCA_CNASN... |
## The following functions could be used to cache the inverse of a matrix with some benefits in performance.
##1. The makeCacheMatrix function returns a list of functions to perform: ##
# set/get the value of matrix
# set/get the value of inverse of matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- N... | /cachematrix.R | no_license | romkhot/ProgrammingAssignment2 | R | false | false | 1,812 | r | ## The following functions could be used to cache the inverse of a matrix with some benefits in performance.
##1. The makeCacheMatrix function returns a list of functions to perform: ##
# set/get the value of matrix
# set/get the value of inverse of matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- N... |
source("utils.R")
theme_set(theme_minimal())
library(tidyverse)
library(tidymodels)
library(skimr)
library(DataExplorer)
data_folder <- "data"
plots_folder <- "plots"
models_folder <- "models"
housing <- read_csv(file.path(data_folder, "austinHousingData.csv")) %>%
janitor::clean_names("small_camel") %>%
mut... | /austin_housing/austin_housing.R | no_license | nschampions2004/kaggle | R | false | false | 3,072 | r | source("utils.R")
theme_set(theme_minimal())
library(tidyverse)
library(tidymodels)
library(skimr)
library(DataExplorer)
data_folder <- "data"
plots_folder <- "plots"
models_folder <- "models"
housing <- read_csv(file.path(data_folder, "austinHousingData.csv")) %>%
janitor::clean_names("small_camel") %>%
mut... |
library(scbursts)
### Name: segment.create
### Title: Create a "segment" object
### Aliases: segment.create
### ** Examples
# It's more likely that you created states or dwells with some function
states <- c(0, 1, 0, 1, 0, 1, 0, 1, 0, 1)
dwells <- c(0.1, 1.1, 0.5, 0.2, 1.0, 1.... | /data/genthat_extracted_code/scbursts/examples/segment.create.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 463 | r | library(scbursts)
### Name: segment.create
### Title: Create a "segment" object
### Aliases: segment.create
### ** Examples
# It's more likely that you created states or dwells with some function
states <- c(0, 1, 0, 1, 0, 1, 0, 1, 0, 1)
dwells <- c(0.1, 1.1, 0.5, 0.2, 1.0, 1.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/basic_checks.R
\name{numeric_check}
\alias{numeric_check}
\title{Check whether all values are numeric.}
\usage{
numeric_check(x)
}
\arguments{
\item{x}{the data that enters the function (the column specified in
\code{\link{col_check... | /man/numeric_check.Rd | no_license | cran/inspectr | R | false | true | 391 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/basic_checks.R
\name{numeric_check}
\alias{numeric_check}
\title{Check whether all values are numeric.}
\usage{
numeric_check(x)
}
\arguments{
\item{x}{the data that enters the function (the column specified in
\code{\link{col_check... |
## Functions to calculate summary stats
qoi <- function(xx, tt, ww = NULL, s.weights, subclass = NULL, mm = NULL, s.d.denom = "treated", standardize = FALSE,
compute.pair.dist = TRUE) {
un <- is.null(ww)
bin.var <- all(xx == 0 | xx == 1)
xsum <- rep(NA_real_, 7)
if (standardize)
names(xsum... | /fuzzedpackages/MatchIt/R/match.qoi.R | no_license | akhikolla/testpackages | R | false | false | 7,617 | r | ## Functions to calculate summary stats
qoi <- function(xx, tt, ww = NULL, s.weights, subclass = NULL, mm = NULL, s.d.denom = "treated", standardize = FALSE,
compute.pair.dist = TRUE) {
un <- is.null(ww)
bin.var <- all(xx == 0 | xx == 1)
xsum <- rep(NA_real_, 7)
if (standardize)
names(xsum... |
#!/opt/common/CentOS_6-dev/R/R-3.1.3/bin/Rscript
### modified version of doFacets.R
###
### runs FACETS twice with two sets of input parameters
### dipLogR from the first iteration is used for the second
### output files for both iterations are retained
library(facets)
library(Cairo)
getSDIR <- function(){
args=... | /bin/doFacets.R | no_license | alexpenson/FACETS.app | R | false | false | 7,518 | r | #!/opt/common/CentOS_6-dev/R/R-3.1.3/bin/Rscript
### modified version of doFacets.R
###
### runs FACETS twice with two sets of input parameters
### dipLogR from the first iteration is used for the second
### output files for both iterations are retained
library(facets)
library(Cairo)
getSDIR <- function(){
args=... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/features.R
\name{quantile}
\alias{quantile}
\title{Quantile}
\usage{
quantile(x, q)
}
\arguments{
\item{x}{the time series to calculate the feature of
(type: numeric vector)}
\item{q}{the quantile to calculate
(type: float)}
}
\value{
the ... | /man/quantile.Rd | no_license | mitchelloharawild/feasts.tsfresh | R | false | true | 476 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/features.R
\name{quantile}
\alias{quantile}
\title{Quantile}
\usage{
quantile(x, q)
}
\arguments{
\item{x}{the time series to calculate the feature of
(type: numeric vector)}
\item{q}{the quantile to calculate
(type: float)}
}
\value{
the ... |
source('startup.R')
ww <- 6
hh <- 4
CH.long <- melt(df, id.vars=names(df)[1:10],
variable.name='periodo', value.name='recapturas')
CH.long$periodo <- as.numeric(gsub("X", "", x=CH.long$periodo))
CH.long$numero <- CH.long$Tag_num
CH.long$genero <- CH.long$Sex
CH.long2 <- droplevels(subset(CH.long, !is.... | /make_plots.R | no_license | colemonnahan/jfmortalidad | R | false | false | 2,998 | r | source('startup.R')
ww <- 6
hh <- 4
CH.long <- melt(df, id.vars=names(df)[1:10],
variable.name='periodo', value.name='recapturas')
CH.long$periodo <- as.numeric(gsub("X", "", x=CH.long$periodo))
CH.long$numero <- CH.long$Tag_num
CH.long$genero <- CH.long$Sex
CH.long2 <- droplevels(subset(CH.long, !is.... |
###############################################################################
# Part A: Network Construction
#Clean environment
rm(list = ls())
#Load required packages
library(Matrix)
library(igraph)
library(tidyverse)
#Create sample convenience function
sample1 = function(x){
sample(c(0, 1), size = 1, replace ... | /Old/va_sim_0.1_VCD_1cpw.R | no_license | gd32/vaccine_allocation | R | false | false | 16,906 | r | ###############################################################################
# Part A: Network Construction
#Clean environment
rm(list = ls())
#Load required packages
library(Matrix)
library(igraph)
library(tidyverse)
#Create sample convenience function
sample1 = function(x){
sample(c(0, 1), size = 1, replace ... |
#https://rstudio.github.io/renv/articles/local-sources.html
#Fortunately, because MRAN snapshotted CRAN on this date, we can retrieve that binary. For example, on macOS with R 3.6:
renv::install("stringi@1.4.5")
#<project>/renv/local/<package>/<package>_<version>.tar.gz
renv::install("<package>@<version>") | /124_renv/renv/admin.R | no_license | DannyJRa/DannyJRa.github.io | R | false | false | 313 | r |
#https://rstudio.github.io/renv/articles/local-sources.html
#Fortunately, because MRAN snapshotted CRAN on this date, we can retrieve that binary. For example, on macOS with R 3.6:
renv::install("stringi@1.4.5")
#<project>/renv/local/<package>/<package>_<version>.tar.gz
renv::install("<package>@<version>") |
# Load Libs
library(klaR)
# Build (Hardcode variables)
naive <- NaiveBayes(DISC9 ~ DISC6 + DISC7 + DISC8 + DISC10 + DISC11 + DISC12 + DISC13 + DISC14 + DISC15
+ DISC0a + DISC16a + DISC16b + DISC16c + DISC16d + DISC16e + DISC16f + DISC16g + DISC16h + DISC16i + DISC16j
+ DISC16k ... | /r-project/bayes/03-building-naive.R | no_license | drferreira/survey-quality-prediction | R | false | false | 529 | r | # Load Libs
library(klaR)
# Build (Hardcode variables)
naive <- NaiveBayes(DISC9 ~ DISC6 + DISC7 + DISC8 + DISC10 + DISC11 + DISC12 + DISC13 + DISC14 + DISC15
+ DISC0a + DISC16a + DISC16b + DISC16c + DISC16d + DISC16e + DISC16f + DISC16g + DISC16h + DISC16i + DISC16j
+ DISC16k ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glcm-package.R
\docType{data}
\name{L5TSR_1986}
\alias{L5TSR_1986}
\title{Landsat 5 Surface Reflectance Image from February 6, 1986 (path 15, row 53)}
\description{
Portion of Landsat 5 Surface Reflectance image from the Landsat Climate Data ... | /fuzzedpackages/glcm/man/L5TSR_1986.Rd | no_license | akhikolla/testpackages | R | false | true | 390 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glcm-package.R
\docType{data}
\name{L5TSR_1986}
\alias{L5TSR_1986}
\title{Landsat 5 Surface Reflectance Image from February 6, 1986 (path 15, row 53)}
\description{
Portion of Landsat 5 Surface Reflectance image from the Landsat Climate Data ... |
library(optpart)
### Name: clique.test
### Title: Clique Test
### Aliases: clique.test
### Keywords: hplot multivariate
### ** Examples
data(shoshveg)
data(shoshsite)
dis.bc <- dsvdis(shoshveg,'bray')
## Not run: cli.60 <- clique(dis.bc,0.60) # will run for several minutes
## Not run: print... | /data/genthat_extracted_code/optpart/examples/clique.test.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 359 | r | library(optpart)
### Name: clique.test
### Title: Clique Test
### Aliases: clique.test
### Keywords: hplot multivariate
### ** Examples
data(shoshveg)
data(shoshsite)
dis.bc <- dsvdis(shoshveg,'bray')
## Not run: cli.60 <- clique(dis.bc,0.60) # will run for several minutes
## Not run: print... |
The two following functions are able to compute the inverse of a matrix assuming that the matrix is always invertible.
For time-consuming reasons, the computed inverse matrix is stored and it is recalled if the same inversion is required.
The makeCacheMatrix function creates a matrix object and is able to cache its i... | /cachematrix.R | no_license | MariaChiaraI/ProgrammingAssignment2 | R | false | false | 1,084 | r |
The two following functions are able to compute the inverse of a matrix assuming that the matrix is always invertible.
For time-consuming reasons, the computed inverse matrix is stored and it is recalled if the same inversion is required.
The makeCacheMatrix function creates a matrix object and is able to cache its i... |
library(nnet)
data <- read.csv("alligator.csv")
data$food <- relevel(data$food, "fish")
# 1
#
# 2
fit <- multinom(food ~ lake + size + sex, data, weights = count)
summary(fit)
output <- summary(fit)
z <- output$coefficients/output$standard.errors
p <- (1 - pnorm(abs(z), 0, 1))*2
resbird <-cbind(output$coefficient... | /Assignment2/Ass2-Code-Mark.R | no_license | japolak/ETH-AGLM | R | false | false | 1,263 | r | library(nnet)
data <- read.csv("alligator.csv")
data$food <- relevel(data$food, "fish")
# 1
#
# 2
fit <- multinom(food ~ lake + size + sex, data, weights = count)
summary(fit)
output <- summary(fit)
z <- output$coefficients/output$standard.errors
p <- (1 - pnorm(abs(z), 0, 1))*2
resbird <-cbind(output$coefficient... |
testlist <- list(NP = 1827680409L, NZ = 467495432L, W = structure(c(-1.64581369299083e+174, 449058805123160512, NaN, 6.53679281395345e-70, 2.42643425911725e+241, 1.65686753146763e+24, 1.0757509500453e-123, 5.34064462502098e-62, 68.0063469492098, 7.41991899180824e-298, 6.88707582869861e+148, Inf, 6.23171423301887e-1... | /issuestests/bmotif/inst/testfiles/np_m7_nw/np_m7_nw_output/log_23d61a41ba6238524b5d9f475daa4c7604c1f03a/np_m7_nw-test.R | permissive | akhikolla/RcppDeepStateTest | R | false | false | 653 | r | testlist <- list(NP = 1827680409L, NZ = 467495432L, W = structure(c(-1.64581369299083e+174, 449058805123160512, NaN, 6.53679281395345e-70, 2.42643425911725e+241, 1.65686753146763e+24, 1.0757509500453e-123, 5.34064462502098e-62, 68.0063469492098, 7.41991899180824e-298, 6.88707582869861e+148, Inf, 6.23171423301887e-1... |
#' merTools: Provides methods for extracting and exploring results from merMod
#' objects in the lme4 package.
#'
#' The merTools package contains convenience tools for extracting useful
#' information from and exploring the implications of merMod objects created by
#' the lme4 package. These convenience function... | /R/merTools-package.r | no_license | scoultersdcoe/merTools | R | false | false | 3,045 | r | #' merTools: Provides methods for extracting and exploring results from merMod
#' objects in the lme4 package.
#'
#' The merTools package contains convenience tools for extracting useful
#' information from and exploring the implications of merMod objects created by
#' the lme4 package. These convenience function... |
# Clear workspace
# ------------------------------------------------------------------------------
rm(list = ls())
# Load libraries
# ------------------------------------------------------------------------------
library(tidyverse)
library(ggplot2)
library(forcats)
library(caret)
library(caretEnsemble)
# Load data
# ... | /R/04_glm_death_prediction.R | no_license | rforbiodatascience/2020_group08 | R | false | false | 4,264 | r | # Clear workspace
# ------------------------------------------------------------------------------
rm(list = ls())
# Load libraries
# ------------------------------------------------------------------------------
library(tidyverse)
library(ggplot2)
library(forcats)
library(caret)
library(caretEnsemble)
# Load data
# ... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 3.07026340270534e+145, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615827241-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 361 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 3.07026340270534e+145, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
# ---------------- mpesa file----------
##' @name mpesa_file
##'
##' @title Imports and formats MPESA file.
##'
##' @description This function loads and formats the raw pdf statement int your work space.Its important to note that this function is built over pdftools package.The function thus adds more functionality to ... | /R/mpesa_file.R | permissive | GeorgeOduor/mpesaR | R | false | false | 13,755 | r | # ---------------- mpesa file----------
##' @name mpesa_file
##'
##' @title Imports and formats MPESA file.
##'
##' @description This function loads and formats the raw pdf statement int your work space.Its important to note that this function is built over pdftools package.The function thus adds more functionality to ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/descriptive_functions.R
\name{vertex.mobility}
\alias{vertex.mobility}
\title{Vertex mobility}
\usage{
vertex.mobility(segments)
}
\description{
Vertex mobility
}
| /man/vertex.mobility.Rd | no_license | antongrau/MONECA | R | false | true | 241 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/descriptive_functions.R
\name{vertex.mobility}
\alias{vertex.mobility}
\title{Vertex mobility}
\usage{
vertex.mobility(segments)
}
\description{
Vertex mobility
}
|
require(lubridate)
#' PU_LTN_BDT
#'
#' Function which generates the PU of a LTN using the Black-Derman Toy Model
#'
#' @param .dataEval - Data as which the price is to be calculated
#' @param .maturity - Maturity
#' @param .nstates - Number of time periods in the lattice
#' @param .beta - Vector of Beta coefficients ... | /R/PU_LTN_BDT.R | no_license | claudiolucinda/FixedIncomeBR | R | false | false | 1,176 | r | require(lubridate)
#' PU_LTN_BDT
#'
#' Function which generates the PU of a LTN using the Black-Derman Toy Model
#'
#' @param .dataEval - Data as which the price is to be calculated
#' @param .maturity - Maturity
#' @param .nstates - Number of time periods in the lattice
#' @param .beta - Vector of Beta coefficients ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/na.count.R
\name{na.count}
\alias{na.count}
\title{Count NAs}
\usage{
na.count(x)
}
\arguments{
\item{x}{a vector, data.frame, or matrix.}
}
\description{
Counts NAs in an object.
}
\examples{
x <- sample(c(1:10, NA), 30, replace = TRUE)
na.c... | /man/na.count.Rd | no_license | cran/swfscMisc | R | false | true | 536 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/na.count.R
\name{na.count}
\alias{na.count}
\title{Count NAs}
\usage{
na.count(x)
}
\arguments{
\item{x}{a vector, data.frame, or matrix.}
}
\description{
Counts NAs in an object.
}
\examples{
x <- sample(c(1:10, NA), 30, replace = TRUE)
na.c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate_engine.R
\name{ParseTemplate}
\alias{ParseTemplate}
\title{ParseTemplate}
\usage{
ParseTemplate()
}
\value{
This function outputs an example input to the SSMet routine.
}
\description{
ParseTemplate
}
\examples{
SSMet(ParseTemplate()... | /man/ParseTemplate.Rd | no_license | InfProbSciX/PeRLib | R | false | true | 324 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate_engine.R
\name{ParseTemplate}
\alias{ParseTemplate}
\title{ParseTemplate}
\usage{
ParseTemplate()
}
\value{
This function outputs an example input to the SSMet routine.
}
\description{
ParseTemplate
}
\examples{
SSMet(ParseTemplate()... |
# 1. Keep only relevant variables
geodfcomprwg<-geodfcomprwg[,
c("lat",
"lon",
"ele",
"distdiff",
"date",
"datetime",
... | /Code/Old versions/7_Reducing_File_Size.R | no_license | tmckendrick1/Longwayup | R | false | false | 4,268 | r | # 1. Keep only relevant variables
geodfcomprwg<-geodfcomprwg[,
c("lat",
"lon",
"ele",
"distdiff",
"date",
"datetime",
... |
library(data.table)
bigramsToSuggest = 10
trigramsToSuggest = 10
fourgramsToSuggest = 10
loadDatabase <- function(ngramPath = "../results/tables")
{
tableWord <- fread(sprintf("%s/tableWord.csv", ngramPath))
setkey(tableWord, word)
tableBigram <- fread(sprintf("%s/tableBigram.csv", ngramPath))
setkey(... | /02eda/predictWord.R | no_license | ivanlis/course10work | R | false | false | 3,191 | r | library(data.table)
bigramsToSuggest = 10
trigramsToSuggest = 10
fourgramsToSuggest = 10
loadDatabase <- function(ngramPath = "../results/tables")
{
tableWord <- fread(sprintf("%s/tableWord.csv", ngramPath))
setkey(tableWord, word)
tableBigram <- fread(sprintf("%s/tableBigram.csv", ngramPath))
setkey(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myelo-package.R
\docType{data}
\name{hahnelFigS5}
\alias{hahnelFigS5}
\title{TFR (post-stopping TKI) Data in Figure S5 of Hahnel et al}
\format{
Months is time from Dx, Prct is BCR-ABL1 percentage, Pt is patient ID, and UL is 1 if
Prct is th... | /myelo/man/hahnelFigS5.Rd | no_license | radivot/myelo | R | false | true | 896 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myelo-package.R
\docType{data}
\name{hahnelFigS5}
\alias{hahnelFigS5}
\title{TFR (post-stopping TKI) Data in Figure S5 of Hahnel et al}
\format{
Months is time from Dx, Prct is BCR-ABL1 percentage, Pt is patient ID, and UL is 1 if
Prct is th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/intersectPSets.R
\name{intersectPSet}
\alias{intersectPSet}
\title{Intersects objects of the PharmacoSet class, subsetting them to the common
drugs and/or cell lines as selected by the user.}
\usage{
intersectPSet(
pSets,
intersectOn = c(... | /man/intersectPSet.Rd | no_license | FuChunjin/PharmacoGx | R | false | true | 1,958 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/intersectPSets.R
\name{intersectPSet}
\alias{intersectPSet}
\title{Intersects objects of the PharmacoSet class, subsetting them to the common
drugs and/or cell lines as selected by the user.}
\usage{
intersectPSet(
pSets,
intersectOn = c(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/find.R
\name{find_exports_without_examples}
\alias{find_exports_without_examples}
\title{Get exports which don't have any examples}
\usage{
find_exports_without_examples(path = ".")
}
\arguments{
\item{path}{Path to package}
}
\value{
Logical... | /man/find_exports_without_examples.Rd | no_license | cran/docreview | R | false | true | 451 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/find.R
\name{find_exports_without_examples}
\alias{find_exports_without_examples}
\title{Get exports which don't have any examples}
\usage{
find_exports_without_examples(path = ".")
}
\arguments{
\item{path}{Path to package}
}
\value{
Logical... |
if(!require("BiocManager")) {
install.packages("BiocManager")
#library(BiocManager)
}
if(!require("EnvStats")){
install.packages("EnvStats")
#library(EnvStats)
}
if(!require("ggplot2")){
install.packages("ggplot2")
#library(ggplot2)
}
if(!require("rtracklayer")){
BiocManager::install("rtracklayer")
#... | /epidecodeR.R | no_license | kandarpRJ/epidecodeR-shiny | R | false | false | 14,449 | r | if(!require("BiocManager")) {
install.packages("BiocManager")
#library(BiocManager)
}
if(!require("EnvStats")){
install.packages("EnvStats")
#library(EnvStats)
}
if(!require("ggplot2")){
install.packages("ggplot2")
#library(ggplot2)
}
if(!require("rtracklayer")){
BiocManager::install("rtracklayer")
#... |
# main regression
all_use_n <- reactive({
k <- model()
m <- k$model
mf <- model.frame(m)
nf <- mf[[1]]
nam <- names(mf)
mtrix <- model.matrix(m)[, -1]
d <- as.data.frame(cbind(nf, mtrix))
colnames(d)[1] <- nam[1]
f <- paste0(nam[1], " ~ .")
n <- lm(f, data = d)
n
})
# all subset
d_allsub <- eventReactive(in... | /logic/logic_mselection.R | no_license | aravindhebbali/exploriment | R | false | false | 6,222 | r | # main regression
all_use_n <- reactive({
k <- model()
m <- k$model
mf <- model.frame(m)
nf <- mf[[1]]
nam <- names(mf)
mtrix <- model.matrix(m)[, -1]
d <- as.data.frame(cbind(nf, mtrix))
colnames(d)[1] <- nam[1]
f <- paste0(nam[1], " ~ .")
n <- lm(f, data = d)
n
})
# all subset
d_allsub <- eventReactive(in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ArcSliceFunctions.R
\name{num.arcsAStri}
\alias{num.arcsAStri}
\title{Number of arcs of Arc Slice Proximity Catch Digraphs (AS-PCDs)
and quantities related to the triangle - one triangle case}
\usage{
num.arcsAStri(Xp, tri, M = "CC")
}
\argum... | /man/num.arcsAStri.Rd | no_license | elvanceyhan/pcds | R | false | true | 2,839 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ArcSliceFunctions.R
\name{num.arcsAStri}
\alias{num.arcsAStri}
\title{Number of arcs of Arc Slice Proximity Catch Digraphs (AS-PCDs)
and quantities related to the triangle - one triangle case}
\usage{
num.arcsAStri(Xp, tri, M = "CC")
}
\argum... |
coverage.raw <-function(X, vec, tau, weights=1, plot.type="p", print=FALSE, label=NULL,...){
X<- as.matrix(X)
p <- dim(vec)[1]
n <- dim(X)[1]
d <- dim(X)[2]
if (n %% length(weights) !=0){
stop("The length of the vector of weights is not a multiple of the sample size.")
... | /R/coverage.r | no_license | cran/LPCM | R | false | false | 11,312 | r |
coverage.raw <-function(X, vec, tau, weights=1, plot.type="p", print=FALSE, label=NULL,...){
X<- as.matrix(X)
p <- dim(vec)[1]
n <- dim(X)[1]
d <- dim(X)[2]
if (n %% length(weights) !=0){
stop("The length of the vector of weights is not a multiple of the sample size.")
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/subsetRows.R
\name{subsetRows}
\alias{subsetRows}
\alias{topvar}
\alias{topvar2}
\alias{topvar3}
\alias{subset_nonzero}
\alias{subset_nonzero2}
\alias{subset_rowname}
\title{Subset rows from a dataframe by various criteria}
\usage{
topvar(df,... | /man/subsetRows.Rd | no_license | brightchan/cjbmisc | R | false | true | 1,405 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/subsetRows.R
\name{subsetRows}
\alias{subsetRows}
\alias{topvar}
\alias{topvar2}
\alias{topvar3}
\alias{subset_nonzero}
\alias{subset_nonzero2}
\alias{subset_rowname}
\title{Subset rows from a dataframe by various criteria}
\usage{
topvar(df,... |
#####Evaluation####
library(MASS)#multivariate normal
#Coefficients for linear model Y =b1*X+b2*T+b3*X*T+eps
b1=1
b2=1
b3=1.3
sig=1#variance of eps
#Sample size
Nsample=300
#Number of simulations
nsim=2
#Thresholds
thresh=qnorm(c(0.5,0.4,0.3,0.25,0.2,0.15,0.1,0.07,0.05,0.04,0.025,0.02))
npol=length(thresh)
#Stora... | /scenario1_3.4_4.3.R | no_license | FelBalazard/Pol | R | false | false | 7,299 | r | #####Evaluation####
library(MASS)#multivariate normal
#Coefficients for linear model Y =b1*X+b2*T+b3*X*T+eps
b1=1
b2=1
b3=1.3
sig=1#variance of eps
#Sample size
Nsample=300
#Number of simulations
nsim=2
#Thresholds
thresh=qnorm(c(0.5,0.4,0.3,0.25,0.2,0.15,0.1,0.07,0.05,0.04,0.025,0.02))
npol=length(thresh)
#Stora... |
library(wqs)
### Name: wqs.est
### Title: Weighted Quantile Sum Regression
### Aliases: wqs.est
### Keywords: ~kwd1 ~kwd2
### ** Examples
data(WQSdata)
y.train <- WQSdata[,'y']
x.train <- WQSdata[,-10]
output <- wqs.est(y.train, x.train, B = 10)
| /data/genthat_extracted_code/wqs/examples/wqs.est.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 253 | r | library(wqs)
### Name: wqs.est
### Title: Weighted Quantile Sum Regression
### Aliases: wqs.est
### Keywords: ~kwd1 ~kwd2
### ** Examples
data(WQSdata)
y.train <- WQSdata[,'y']
x.train <- WQSdata[,-10]
output <- wqs.est(y.train, x.train, B = 10)
|
library(deSolve)
age_population_cannibalizm <- function(t, JA, P) {
# extract vector content
J <- JA[1]
A <- JA[2]
# calculate the growth rates:
#dndt <- P$r0 * n - P$a * n * p
#dJdt <- P$b * A - P$g * J - P$mu_j * (1 + P$k * J * A) * J
dJdt <- P$b * A - P$g * J - P$mu_j * J - P$k * J * A
dAdt <- P... | /modelling/exam/q3_f_cannibalizm.R | no_license | sergiigladchuk/courses | R | false | false | 1,390 | r | library(deSolve)
age_population_cannibalizm <- function(t, JA, P) {
# extract vector content
J <- JA[1]
A <- JA[2]
# calculate the growth rates:
#dndt <- P$r0 * n - P$a * n * p
#dJdt <- P$b * A - P$g * J - P$mu_j * (1 + P$k * J * A) * J
dJdt <- P$b * A - P$g * J - P$mu_j * J - P$k * J * A
dAdt <- P... |
vcrossv.da <-
function(x,f,fold,nsimulat,funct)
{
library(MASS)
{
ns<-nrow(x)/nsimulat
leave.out<-matrix(ncol=fold,nrow=floor(ns/fold))
leave.out[,]<-sample(ns,length(leave.out))
leave.out1<-as.list(c(1:nrow(leave.out)))
for(i in 1:nrow(leave.out)){
leave.out1[[i]]<-matrix(ncol=2,nrow=ncol(leave.out))
for(j i... | /paleoMAS/R/vcrossv.da.R | no_license | ingted/R-Examples | R | false | false | 2,441 | r | vcrossv.da <-
function(x,f,fold,nsimulat,funct)
{
library(MASS)
{
ns<-nrow(x)/nsimulat
leave.out<-matrix(ncol=fold,nrow=floor(ns/fold))
leave.out[,]<-sample(ns,length(leave.out))
leave.out1<-as.list(c(1:nrow(leave.out)))
for(i in 1:nrow(leave.out)){
leave.out1[[i]]<-matrix(ncol=2,nrow=ncol(leave.out))
for(j i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genomedistances.R
\name{geneWeights}
\alias{geneWeights}
\title{Gene cluster weighting}
\usage{
geneWeights(pan.matrix, type = c("shell", "cloud"))
}
\arguments{
\item{pan.matrix}{A \code{Panmat} object, see \code{\link{panMatrix}} f... | /man/geneWeights.Rd | no_license | rajaldebnath/micropan | R | false | true | 2,240 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genomedistances.R
\name{geneWeights}
\alias{geneWeights}
\title{Gene cluster weighting}
\usage{
geneWeights(pan.matrix, type = c("shell", "cloud"))
}
\arguments{
\item{pan.matrix}{A \code{Panmat} object, see \code{\link{panMatrix}} f... |
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#+++ R script with functions for data input and output
#+++ Dependencies: DataFunctions.R
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++... | /R/FileHandling.R | no_license | cwrlx/REddyProc | R | false | false | 19,562 | r | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#+++ R script with functions for data input and output
#+++ Dependencies: DataFunctions.R
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++... |
library(tseries)
library(forecast)
normalizeQuant <- function (actual, pred, quant){
sumQuant = 0
for (i in 1:length(actual)){
if (pred[i] > actual[i]){
multiple = -(1-quant)
}
else{
multiple = quant
}
QuantRes= 2*(pred[i]-actual[i])*multiple
sumQuant = sumQuant + ... | /elect_fc.R | no_license | KeloeZ/electricity_forecast | R | false | false | 9,084 | r | library(tseries)
library(forecast)
normalizeQuant <- function (actual, pred, quant){
sumQuant = 0
for (i in 1:length(actual)){
if (pred[i] > actual[i]){
multiple = -(1-quant)
}
else{
multiple = quant
}
QuantRes= 2*(pred[i]-actual[i])*multiple
sumQuant = sumQuant + ... |
\name{occuRN}
\alias{occuRN}
\title{Fit the occupancy model of Royle and Nichols (2003)}
\usage{occuRN(formula, data, K=25, starts, method="BFGS", se=TRUE, ...)}
\arguments{
\item{formula}{double right-hand side formula describing covariates of
detection and occupancy in that order.}
\item{data}{Obj... | /man/occuRN.Rd | no_license | fukayak/unmarked | R | false | false | 2,264 | rd | \name{occuRN}
\alias{occuRN}
\title{Fit the occupancy model of Royle and Nichols (2003)}
\usage{occuRN(formula, data, K=25, starts, method="BFGS", se=TRUE, ...)}
\arguments{
\item{formula}{double right-hand side formula describing covariates of
detection and occupancy in that order.}
\item{data}{Obj... |
bddmodelo<-read.csv("C:/Users/laulus/Documents/Mirror/THESE/BDD/BDD-THESE-TRAVAIL.csv",sep=";")
setwd(dir = "C:/Users/laulus/Documents/Mirror/THESE/MODELE-COMPLET/modelker/data")
# We want to select ony fish that have been read
# the problem is that radius were not measured the same according to the period
# so we ca... | /data/base-export-donnees.R | no_license | Laulus/modelker | R | false | false | 6,029 | r | bddmodelo<-read.csv("C:/Users/laulus/Documents/Mirror/THESE/BDD/BDD-THESE-TRAVAIL.csv",sep=";")
setwd(dir = "C:/Users/laulus/Documents/Mirror/THESE/MODELE-COMPLET/modelker/data")
# We want to select ony fish that have been read
# the problem is that radius were not measured the same according to the period
# so we ca... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/UTR.R
\name{parserreadfiles}
\alias{parserreadfiles}
\title{parserreadfiles}
\usage{
parserreadfiles(input.file.dir, input.file.type, sample.group = NULL,
filter.sample = NULL)
}
\arguments{
\item{output.file.dir}{}
}
\description{
parserre... | /man/parserreadfiles.Rd | no_license | SCCC-BBC/DoGs | R | false | true | 551 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/UTR.R
\name{parserreadfiles}
\alias{parserreadfiles}
\title{parserreadfiles}
\usage{
parserreadfiles(input.file.dir, input.file.type, sample.group = NULL,
filter.sample = NULL)
}
\arguments{
\item{output.file.dir}{}
}
\description{
parserre... |
#' Inactive Players List
#'
#' A dataframe with a list of players currently inactive and not available via the OWL API.
#' The OWL simply deletes players when they leave the league, so players such as xQc cannot be retrieved from the API.
#' This incomplete list has values for these players available.
#'
#' @f... | /R/data.R | permissive | hanjimin06/owlstats | R | false | false | 912 | r | #' Inactive Players List
#'
#' A dataframe with a list of players currently inactive and not available via the OWL API.
#' The OWL simply deletes players when they leave the league, so players such as xQc cannot be retrieved from the API.
#' This incomplete list has values for these players available.
#'
#' @f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Proteomics.R
\name{.plot_boxgraph_protein_CPTAC}
\alias{.plot_boxgraph_protein_CPTAC}
\title{Comparison of protein and phosphorylation levels among different
stages of LUAD}
\usage{
.plot_boxgraph_protein_CPTAC(protein_list)
}
\arguments{
\it... | /man/dot-plot_boxgraph_protein_CPTAC.Rd | permissive | a3609640/eIF4F.analysis | R | false | true | 1,845 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Proteomics.R
\name{.plot_boxgraph_protein_CPTAC}
\alias{.plot_boxgraph_protein_CPTAC}
\title{Comparison of protein and phosphorylation levels among different
stages of LUAD}
\usage{
.plot_boxgraph_protein_CPTAC(protein_list)
}
\arguments{
\it... |
#read file
temp<-read.table('household_power_consumption.txt',header = TRUE,sep = ';')
#subset data
data<-temp[temp$Date%in%c('1/2/2007','2/2/2007'),]
GlobalActivePower<-as.numeric(paste(data$Global_active_power))
#Plot1
hist(GlobalActivePower,col = 'red',xlab = 'Global Active Power (kilowatts)',ylab = 'Frequency',... | /plot1.R | no_license | kiddma1989/Project-1 | R | false | false | 419 | r | #read file
temp<-read.table('household_power_consumption.txt',header = TRUE,sep = ';')
#subset data
data<-temp[temp$Date%in%c('1/2/2007','2/2/2007'),]
GlobalActivePower<-as.numeric(paste(data$Global_active_power))
#Plot1
hist(GlobalActivePower,col = 'red',xlab = 'Global Active Power (kilowatts)',ylab = 'Frequency',... |
# from https://stats.stackexchange.com/questions/259208/how-to-perform-isometric-log-ratio-transformation/270203#270203
ilr <- function(x, p=0) {
y <- log(x)
if (p != 0) y <- (exp(p * y) - 1) / p # Box-Cox transformation
y <- y - rowMeans(y, na.rm=TRUE) # Recentered values
k <- dim(y)[2]
H <... | /ilr.R | no_license | IvanSilbern/UsefulFunctionsR | R | false | false | 658 | r | # from https://stats.stackexchange.com/questions/259208/how-to-perform-isometric-log-ratio-transformation/270203#270203
ilr <- function(x, p=0) {
y <- log(x)
if (p != 0) y <- (exp(p * y) - 1) / p # Box-Cox transformation
y <- y - rowMeans(y, na.rm=TRUE) # Recentered values
k <- dim(y)[2]
H <... |
#' @include aaa.R
#' @include filechoose.R
#' @include dirchoose.R
#'
NULL
#' @rdname shinyFiles-observers
#'
#' @examples
#' \dontrun{
#' # File selections
#' ui <- shinyUI(bootstrapPage(
#' shinySaveButton('save', 'Save', 'Save as...')
#' ))
#' server <- shinyServer(function(input, output) {
#' shinyFileSave(inp... | /R/filesave.R | no_license | sonjapins/shinyFiles | R | false | false | 5,642 | r | #' @include aaa.R
#' @include filechoose.R
#' @include dirchoose.R
#'
NULL
#' @rdname shinyFiles-observers
#'
#' @examples
#' \dontrun{
#' # File selections
#' ui <- shinyUI(bootstrapPage(
#' shinySaveButton('save', 'Save', 'Save as...')
#' ))
#' server <- shinyServer(function(input, output) {
#' shinyFileSave(inp... |
install.packages("ggplot2")
library(ggplot2)
install.packages("ggthemes")
library(ggthemes)
speed <- read_csv("Maryland_Broadband_Speed_Test__County_Upload.csv")
head(speed)
speed_mbps <- round(speed$Ave_Upload/1000,2)
ggplot(data = speed, aes(x=C0_NAME, y=Ave_Upload)) +
geom_bar(stat="identity") +
coord_flip... | /broadband_chart.R | no_license | mk11s/md_broadbandspeed | R | false | false | 1,014 | r | install.packages("ggplot2")
library(ggplot2)
install.packages("ggthemes")
library(ggthemes)
speed <- read_csv("Maryland_Broadband_Speed_Test__County_Upload.csv")
head(speed)
speed_mbps <- round(speed$Ave_Upload/1000,2)
ggplot(data = speed, aes(x=C0_NAME, y=Ave_Upload)) +
geom_bar(stat="identity") +
coord_flip... |
power = -3
numnodes = 1000
g<-barabasi.game(numnodes, power, directed = FALSE)
plot(degree.distribution(g))
num_walker <- 1
nei_deg <- c(0)
for (i in 1:100) {
rw <- netrw(g, num_walker, start.node = sample(0:(vcount(g) - 1) + as.integer((sessionInfo())$otherPkgs$igraph$Version >= "0.6"), num_walker, ... | /Graph/HW2/P2_e.R | no_license | vishalbelsare/Graphs_NetworkFlowAndPatternRecognition | R | false | false | 857 | r | power = -3
numnodes = 1000
g<-barabasi.game(numnodes, power, directed = FALSE)
plot(degree.distribution(g))
num_walker <- 1
nei_deg <- c(0)
for (i in 1:100) {
rw <- netrw(g, num_walker, start.node = sample(0:(vcount(g) - 1) + as.integer((sessionInfo())$otherPkgs$igraph$Version >= "0.6"), num_walker, ... |
library(data.table)
indir = "~/git/US-covid19-data-scraping" # path directory to the repository
set.seed(3312122)
run_index = round(runif(1,0, 10000))
run_tag = paste0("201023o_", run_index)
lastDate = "2020-10-29"
path.to.demographics.data = file.path(indir, "data_visualization", "data", "us_population_withnyc.rds"... | /data_visualization/scripts_v120/make_summary_predict_deaths_reporting_age_strata.R | permissive | isabella232/US-covid19-agespecific-mortality-data | R | false | false | 5,591 | r | library(data.table)
indir = "~/git/US-covid19-data-scraping" # path directory to the repository
set.seed(3312122)
run_index = round(runif(1,0, 10000))
run_tag = paste0("201023o_", run_index)
lastDate = "2020-10-29"
path.to.demographics.data = file.path(indir, "data_visualization", "data", "us_population_withnyc.rds"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.support_operations.R
\name{refresh_trusted_advisor_check}
\alias{refresh_trusted_advisor_check}
\title{Requests a refresh of the Trusted Advisor check that has the specified check ID}
\usage{
refresh_trusted_advisor_check(checkId)
}
\arg... | /service/paws.support/man/refresh_trusted_advisor_check.Rd | permissive | CR-Mercado/paws | R | false | true | 1,448 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.support_operations.R
\name{refresh_trusted_advisor_check}
\alias{refresh_trusted_advisor_check}
\title{Requests a refresh of the Trusted Advisor check that has the specified check ID}
\usage{
refresh_trusted_advisor_check(checkId)
}
\arg... |
############
GuestTeam = '義大'
Date = '0423'
strTime <- '2016-04-23 17:00:00'
############
files <- list.files(paste0("Livestream/2016",Date,"/"))
totalViews <- read.csv(paste0("Livestream/2016",Date,"/",files[1]),header=T)
totalViews <- totalViews[-61,]
for(f in files[-1]){
tmp <- read.csv(paste0("Livestream/2016"... | /src/r/BtvPlot.R | no_license | lawrencesiao/bi_view | R | false | false | 3,070 | r | ############
GuestTeam = '義大'
Date = '0423'
strTime <- '2016-04-23 17:00:00'
############
files <- list.files(paste0("Livestream/2016",Date,"/"))
totalViews <- read.csv(paste0("Livestream/2016",Date,"/",files[1]),header=T)
totalViews <- totalViews[-61,]
for(f in files[-1]){
tmp <- read.csv(paste0("Livestream/2016"... |
install.packages("rtweet")
library (rtweet)
install.packages("wordcloud")
library(wordcloud)
install.packages("RColorBrewer")
library(RColorBrewer)
twitter_token <- create_token(
app = "ulima69devapp",
consumer_key = Sys.getenv("TWITTER_KEY"),
consumer_secret = Sys.getenv("TWITTER_SECRET"),
access_token =... | /Wordcloud-rtweet.R | no_license | walves69/estudor | R | false | false | 2,000 | r | install.packages("rtweet")
library (rtweet)
install.packages("wordcloud")
library(wordcloud)
install.packages("RColorBrewer")
library(RColorBrewer)
twitter_token <- create_token(
app = "ulima69devapp",
consumer_key = Sys.getenv("TWITTER_KEY"),
consumer_secret = Sys.getenv("TWITTER_SECRET"),
access_token =... |
\name{findScore}
\alias{findScore}
\title{determines the illumina scoring system of the fastq}
\usage{
findScore(fastq, nlines = 10000)
}
\arguments{
\item{fastq}{full path to fastq file}
\item{nlines}{the number of lines to look at to determine
the scoring method}
}
\description{
This function reads in the firs... | /man/findScore.Rd | no_license | rohithSrivas/mango | R | false | false | 402 | rd | \name{findScore}
\alias{findScore}
\title{determines the illumina scoring system of the fastq}
\usage{
findScore(fastq, nlines = 10000)
}
\arguments{
\item{fastq}{full path to fastq file}
\item{nlines}{the number of lines to look at to determine
the scoring method}
}
\description{
This function reads in the firs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ml_functions.R
\name{projects.jobs.setIamPolicy}
\alias{projects.jobs.setIamPolicy}
\title{Sets the access control policy on the specified resource. Replaces any existing policy. Can return \code{NOT_FOUND}, \code{INVALID_ARGUMENT}, and \code... | /googlemlv1.auto/man/projects.jobs.setIamPolicy.Rd | no_license | justinjm/autoGoogleAPI | R | false | true | 1,331 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ml_functions.R
\name{projects.jobs.setIamPolicy}
\alias{projects.jobs.setIamPolicy}
\title{Sets the access control policy on the specified resource. Replaces any existing policy. Can return \code{NOT_FOUND}, \code{INVALID_ARGUMENT}, and \code... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Formatting.R
\name{toSparsePython}
\alias{toSparsePython}
\title{Convert the plpData in COO format into a sparse python matrix}
\usage{
toSparsePython(plpData, population, map = NULL)
}
\arguments{
\item{plpData}{An object of type \code{plpDa... | /man/toSparsePython.Rd | permissive | vivzhu/PatientLevelPrediction | R | false | true | 1,372 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Formatting.R
\name{toSparsePython}
\alias{toSparsePython}
\title{Convert the plpData in COO format into a sparse python matrix}
\usage{
toSparsePython(plpData, population, map = NULL)
}
\arguments{
\item{plpData}{An object of type \code{plpDa... |
\name{altnamesfun}
\alias{altnamesfun}
\title{
To Get Alternative names of Genes
}
\description{
This function is used to retrieve the Alternative names of genes from UniProt using HGNC gene symbol.
}
\usage{
altnamesfun(m)
}
\arguments{
\item{m}{
is the HGNC gene symbol.
}
}
\value{
It returns a list of alternative... | /man/altnamesfun.Rd | no_license | chaoneng/pubmed.mineR | R | false | false | 710 | rd | \name{altnamesfun}
\alias{altnamesfun}
\title{
To Get Alternative names of Genes
}
\description{
This function is used to retrieve the Alternative names of genes from UniProt using HGNC gene symbol.
}
\usage{
altnamesfun(m)
}
\arguments{
\item{m}{
is the HGNC gene symbol.
}
}
\value{
It returns a list of alternative... |
source("load_data.R")
df <- load_and_clean_data()
png(filename="plot1.png")
hist(df$Global_active_power, main="Global Active Power", xlab="Global Active Power (kilowatts)", col="red")
dev.off() | /plot1.R | no_license | lunas/ExData_Plotting1 | R | false | false | 195 | r |
source("load_data.R")
df <- load_and_clean_data()
png(filename="plot1.png")
hist(df$Global_active_power, main="Global Active Power", xlab="Global Active Power (kilowatts)", col="red")
dev.off() |
power=read.table("household_power_consumption.txt", sep=";", na.strings="?", header=TRUE)
trimmed_power=power[grepl("^(1|2)\\/2\\/2007",power$Date),]
trimmed_power$Date <- as.Date(trimmed_power$Date , "%d/%m/%Y")
trimmed_power$DateTime <- strptime(paste(trimmed_power$Date, trimmed_power$Time, sep=" "), "%Y-%m-%d %H:%M:... | /plot4.R | no_license | micdobbs/ExData_Plotting1 | R | false | false | 1,168 | r | power=read.table("household_power_consumption.txt", sep=";", na.strings="?", header=TRUE)
trimmed_power=power[grepl("^(1|2)\\/2\\/2007",power$Date),]
trimmed_power$Date <- as.Date(trimmed_power$Date , "%d/%m/%Y")
trimmed_power$DateTime <- strptime(paste(trimmed_power$Date, trimmed_power$Time, sep=" "), "%Y-%m-%d %H:%M:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.