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 |
|---|---|---|---|---|---|---|---|---|---|
# remove all the variables in the work space
rm(list= ls())
library(DT)
library(shiny)
#install.packages("readxl")
library(readxl)
#install.packages("dplyr")
library("dplyr")
#install.packages("openxlsx")
library("openxlsx")
#install.packages("reshape2")
library("reshape2")
#install.packages("tidyr")
library("tidyr")
... | /Neuer Ordner/Code5/app_4.R | no_license | decemberkms/Plotly-Dashboards-with-Dash | R | false | false | 8,339 | r | # remove all the variables in the work space
rm(list= ls())
library(DT)
library(shiny)
#install.packages("readxl")
library(readxl)
#install.packages("dplyr")
library("dplyr")
#install.packages("openxlsx")
library("openxlsx")
#install.packages("reshape2")
library("reshape2")
#install.packages("tidyr")
library("tidyr")
... |
##' @name predict_dlm_lnorm
##' @title predict_dlm_lnorm
##' @export
##' @author Mike Dietze and Andrew Tredennick
##' @description make predictions from fit dlm for new data
##' @param fit fit_dlm output list
##' @param newdata array of driver data organized with dimensions [ensemble,time,variable]
##' @param n.i... | /R/predict_dlm_lnorm.R | permissive | atredennick/ecoforecastR | R | false | false | 2,669 | r | ##' @name predict_dlm_lnorm
##' @title predict_dlm_lnorm
##' @export
##' @author Mike Dietze and Andrew Tredennick
##' @description make predictions from fit dlm for new data
##' @param fit fit_dlm output list
##' @param newdata array of driver data organized with dimensions [ensemble,time,variable]
##' @param n.i... |
# Copyright (c) 2014 Clear Channel Broadcasting, Inc.
# https://github.com/iheartradio/ShinyBuilder
# Licensed under the MIT License (MIT)
#' Update All Dashboards
#'
#' @param dashboards a vector of dashboard names. By default, all dashboards in the dashboards directory are updated
#' @export
#' @examples
#' \don... | /R/updateDashboards.R | permissive | sshivaji/ShinyBuilder | R | false | false | 1,766 | r | # Copyright (c) 2014 Clear Channel Broadcasting, Inc.
# https://github.com/iheartradio/ShinyBuilder
# Licensed under the MIT License (MIT)
#' Update All Dashboards
#'
#' @param dashboards a vector of dashboard names. By default, all dashboards in the dashboards directory are updated
#' @export
#' @examples
#' \don... |
context("test-rx_uppercase")
test_that("uppercase works", {
# expect match
expect_true(grepl(rx_uppercase(), "A"))
# dont expect match
expect_false(grepl(rx_uppercase(), "a"))
expect_false(grepl(rx_uppercase(), "!"))
# expect pipe functionality
expect_equal(rx() %>% rx_start_of_line() %>% rx_uppercase... | /tests/testthat/test-uppercase.R | permissive | FcoCarlosBarbosaMartins/RVerbalExpressions | R | false | false | 627 | r | context("test-rx_uppercase")
test_that("uppercase works", {
# expect match
expect_true(grepl(rx_uppercase(), "A"))
# dont expect match
expect_false(grepl(rx_uppercase(), "a"))
expect_false(grepl(rx_uppercase(), "!"))
# expect pipe functionality
expect_equal(rx() %>% rx_start_of_line() %>% rx_uppercase... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iam.R
\name{iam_get_user}
\alias{iam_get_user}
\title{Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN}
\usage{
iam_get_user(...)
}
\arguments{
\item{...}{optional extra argument... | /man/iam_get_user.Rd | no_license | cran/botor | R | false | true | 601 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iam.R
\name{iam_get_user}
\alias{iam_get_user}
\title{Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN}
\usage{
iam_get_user(...)
}
\arguments{
\item{...}{optional extra argument... |
library("DESeq2")
library("pheatmap")
library("RColorBrewer")
library("ggplot2")
library("genefilter")
workingDir = "/data/atimms/kim_rett_rnaseq_0119";
setwd(workingDir);
###all samples
##read in count and metadata
countData1 <- read.table('kim_rett_rnaseq_0119.star_fc.counts.txt', header=T, row.names=1)
colData1 <-... | /r_scripts/kim_rett_rnaseq_0220.R | no_license | atimms/ratchet_scripts | R | false | false | 6,414 | r | library("DESeq2")
library("pheatmap")
library("RColorBrewer")
library("ggplot2")
library("genefilter")
workingDir = "/data/atimms/kim_rett_rnaseq_0119";
setwd(workingDir);
###all samples
##read in count and metadata
countData1 <- read.table('kim_rett_rnaseq_0119.star_fc.counts.txt', header=T, row.names=1)
colData1 <-... |
changePropertyInput <- function(newInputs, groupVar, sequenceFileXML, sequenceXML, sequenceXMLpath, newSequenceFileXML,
newsequenceXMLpath) {
# Replaces the argument with newArg and saves file
require(xml2)
# seclude groups, properties and args
groupName <- unlist(newInputs['Gro... | /R/changePropInputs.R | no_license | kitbenjamin/daRtInput | R | false | false | 2,371 | r | changePropertyInput <- function(newInputs, groupVar, sequenceFileXML, sequenceXML, sequenceXMLpath, newSequenceFileXML,
newsequenceXMLpath) {
# Replaces the argument with newArg and saves file
require(xml2)
# seclude groups, properties and args
groupName <- unlist(newInputs['Gro... |
.lpp <- function(x, a, b, u, d, e) {
# the exponential term
f.exp <- exp((x + d * log(e) - u) / d)
# first part
f1 <- (b/u) * (1 + f.exp)^((-e - 1) / e)
# second part
f2 <- f.exp * (e + 1)^((e+1) / e)
# combine pieces
res <- a + f1 * f2
return(res)
}
#' @title Random Profile
#'
#' @description Gen... | /R/random_profile.R | no_license | ncss-tech/aqp | R | false | false | 8,493 | r |
.lpp <- function(x, a, b, u, d, e) {
# the exponential term
f.exp <- exp((x + d * log(e) - u) / d)
# first part
f1 <- (b/u) * (1 + f.exp)^((-e - 1) / e)
# second part
f2 <- f.exp * (e + 1)^((e+1) / e)
# combine pieces
res <- a + f1 * f2
return(res)
}
#' @title Random Profile
#'
#' @description Gen... |
#### Test 1 answers
## Question 1
# LifeCycleSavings built-in data
x <- LifeCycleSavings$dpi #a x is dpi data
x
median(x) #b median of x
IQR(x) #c Interquartile range
summary(x)[5]-summary(x)[2] #c another way. just ignore the name
quantile(x,.75)-quantile(x,.25) #c another way
(ex <-mean(x)) #d sample mean
(s <- sd(x... | /testanswers/quiz1answers.R | permissive | amirhmstu/math301 | R | false | false | 5,189 | r | #### Test 1 answers
## Question 1
# LifeCycleSavings built-in data
x <- LifeCycleSavings$dpi #a x is dpi data
x
median(x) #b median of x
IQR(x) #c Interquartile range
summary(x)[5]-summary(x)[2] #c another way. just ignore the name
quantile(x,.75)-quantile(x,.25) #c another way
(ex <-mean(x)) #d sample mean
(s <- sd(x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/textstat_dist.R, R/textstat_simil.R
\name{textstat_dist}
\alias{textstat_dist}
\alias{textstat_simil}
\title{Similarity and distance computation between documents or features}
\usage{
textstat_dist(x, selection = NULL, n = NULL, margin = c("d... | /man/textstat_simil.Rd | no_license | leeper/quanteda | R | false | true | 3,789 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/textstat_dist.R, R/textstat_simil.R
\name{textstat_dist}
\alias{textstat_dist}
\alias{textstat_simil}
\title{Similarity and distance computation between documents or features}
\usage{
textstat_dist(x, selection = NULL, n = NULL, margin = c("d... |
#' Class Auth
#'
#' Auth object
#'
#' Every object could be requested from this Auth object and any action
#' could start from this object using cascading style. Please check
#' \code{vignette("api")} for more information.
#'
#' @field from [character] Authentication method. Could be \code{"direct"}
#' (pass the creden... | /R/class-auth.R | permissive | gmdzy2010/sevenbridges-r | R | false | false | 53,022 | r | #' Class Auth
#'
#' Auth object
#'
#' Every object could be requested from this Auth object and any action
#' could start from this object using cascading style. Please check
#' \code{vignette("api")} for more information.
#'
#' @field from [character] Authentication method. Could be \code{"direct"}
#' (pass the creden... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GWexPrec_lib.r
\name{cor.emp.int}
\alias{cor.emp.int}
\title{cor.emp.int}
\usage{
cor.emp.int(zeta, nChainFit, Xt, parMargin, typeMargin)
}
\arguments{
\item{zeta}{correlation of Gaussian multivariates}
\item{nChainFit}{number of simulated v... | /man/cor.emp.int.Rd | no_license | guillaumeevin/GWEX | R | false | true | 738 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GWexPrec_lib.r
\name{cor.emp.int}
\alias{cor.emp.int}
\title{cor.emp.int}
\usage{
cor.emp.int(zeta, nChainFit, Xt, parMargin, typeMargin)
}
\arguments{
\item{zeta}{correlation of Gaussian multivariates}
\item{nChainFit}{number of simulated v... |
\name{blockvector}
\alias{as.blockvector}
\alias{as.bvector}
\alias{blockvector}
\alias{is.blockvector}
\alias{is.bvector}
\title{Block Vector}
\usage{
blockvector(data, parts = NULL, dims = NULL)
is.blockvector(x)
as.blockvector(x)
}
\arguments{
\item{data}{a vector}
\item{parts}{vector of partitions}
... | /man/blockvector.Rd | no_license | gastonstat/blockberry | R | false | false | 1,202 | rd | \name{blockvector}
\alias{as.blockvector}
\alias{as.bvector}
\alias{blockvector}
\alias{is.blockvector}
\alias{is.bvector}
\title{Block Vector}
\usage{
blockvector(data, parts = NULL, dims = NULL)
is.blockvector(x)
as.blockvector(x)
}
\arguments{
\item{data}{a vector}
\item{parts}{vector of partitions}
... |
library(roxygen2)
#' # draws result of the variance analysis
#' @param stock_bunch stacked or one matrix of multiple stock informations with only one single price information(not all OHLC)
#' @return histogram of varaince analysis
#' @export
#' @examples draw_var_explanation(stock_bunch)
#' @details this gives result ... | /R/draw_var_explanation.R | no_license | muiPomeranian/private_Rpackage | R | false | false | 555 | r | library(roxygen2)
#' # draws result of the variance analysis
#' @param stock_bunch stacked or one matrix of multiple stock informations with only one single price information(not all OHLC)
#' @return histogram of varaince analysis
#' @export
#' @examples draw_var_explanation(stock_bunch)
#' @details this gives result ... |
# Load jester dataset ratings
ratings = scan('data/ratings.txt',sep='\n')
png(filename="data/figs/ratings-density-plot")
plot(density(ratings),main="Jester Rating Distribution Density")
dev.off()
png(filename="data/figs/ratings-histogram")
hist(ratings,main="Jester Rating Distribution Histogram")
dev.off()
descdist(... | /exploration.R | no_license | macks22/recsys | R | false | false | 1,092 | r | # Load jester dataset ratings
ratings = scan('data/ratings.txt',sep='\n')
png(filename="data/figs/ratings-density-plot")
plot(density(ratings),main="Jester Rating Distribution Density")
dev.off()
png(filename="data/figs/ratings-histogram")
hist(ratings,main="Jester Rating Distribution Histogram")
dev.off()
descdist(... |
/DM_FactorsDecoupling.R | no_license | lxyandy66/YangtzeProject | R | false | false | 35,652 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataDocumentation.R
\docType{data}
\name{Detail_CommodityCodeName_2012}
\alias{Detail_CommodityCodeName_2012}
\title{Detail Commodity Code and Name (2012 schema)}
\format{
A dataframe with 405 obs. and 2 variables
}
\source{
\url{https://edap... | /man/Detail_CommodityCodeName_2012.Rd | permissive | USEPA/useeior | R | false | true | 502 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataDocumentation.R
\docType{data}
\name{Detail_CommodityCodeName_2012}
\alias{Detail_CommodityCodeName_2012}
\title{Detail Commodity Code and Name (2012 schema)}
\format{
A dataframe with 405 obs. and 2 variables
}
\source{
\url{https://edap... |
#' @name createNoise
#'
#' @aliases createZ
#'
#' @description Creating a normally distributed vector of \code{noise} given \code{sampleSize} (length), \code{mean} and \code{sd}.
#'
#' @param sampleSize time, a.k.a. \code{N} of the sample of \code{X}.
#' @param mean the mean.
#' @param sd standard deviation.
#'
#' @ret... | /SCB/R/createNoise.R | no_license | GlinKate/scb | R | false | false | 646 | r | #' @name createNoise
#'
#' @aliases createZ
#'
#' @description Creating a normally distributed vector of \code{noise} given \code{sampleSize} (length), \code{mean} and \code{sd}.
#'
#' @param sampleSize time, a.k.a. \code{N} of the sample of \code{X}.
#' @param mean the mean.
#' @param sd standard deviation.
#'
#' @ret... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sagemaker_operations.R
\name{sagemaker_list_data_quality_job_definitions}
\alias{sagemaker_list_data_quality_job_definitions}
\title{Lists the data quality job definitions in your account}
\usage{
sagemaker_list_data_quality_job_definitions(E... | /cran/paws.machine.learning/man/sagemaker_list_data_quality_job_definitions.Rd | permissive | sanchezvivi/paws | R | false | true | 1,974 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sagemaker_operations.R
\name{sagemaker_list_data_quality_job_definitions}
\alias{sagemaker_list_data_quality_job_definitions}
\title{Lists the data quality job definitions in your account}
\usage{
sagemaker_list_data_quality_job_definitions(E... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/player.R
\name{player}
\alias{player}
\title{Player data}
\description{
TODO shooting data
}
\keyword{internal}
| /man/player.Rd | permissive | stephematician/statsnbaR | R | false | true | 191 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/player.R
\name{player}
\alias{player}
\title{Player data}
\description{
TODO shooting data
}
\keyword{internal}
|
context("Printer works")
test_that("data printer works", {
X = as.matrix(1:10)
expect_silent({ data.source = InMemoryData$new(X, "x") })
expect_silent({ data.target = InMemoryData$new() })
expect_output({ test.source = show(data.source) })
expect_output({ test.target = show(data.target) })
expect_equal(... | /tests/testthat/test_printer.R | permissive | mllg/compboost | R | false | false | 9,825 | r | context("Printer works")
test_that("data printer works", {
X = as.matrix(1:10)
expect_silent({ data.source = InMemoryData$new(X, "x") })
expect_silent({ data.target = InMemoryData$new() })
expect_output({ test.source = show(data.source) })
expect_output({ test.target = show(data.target) })
expect_equal(... |
CAP<-function(x, transform=NULL) {
cap<-function(x) {
y = as.data.frame(x)
if(ncol(y)>1) {
for(i in (ncol(y)-1):1) {
y[,i] = y[,i]+y[,i+1]
}
}
return(y)
}
if(!inherits(x,"stratifiedvegdata")) stop("Input should be of class 'stratifiedvegdata'")
Y = lapply(x, FUN=cap)
if(!is... | /vegclust/R/CAP.R | no_license | ingted/R-Examples | R | false | false | 408 | r | CAP<-function(x, transform=NULL) {
cap<-function(x) {
y = as.data.frame(x)
if(ncol(y)>1) {
for(i in (ncol(y)-1):1) {
y[,i] = y[,i]+y[,i+1]
}
}
return(y)
}
if(!inherits(x,"stratifiedvegdata")) stop("Input should be of class 'stratifiedvegdata'")
Y = lapply(x, FUN=cap)
if(!is... |
#-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... | /models/biocro/R/model2netcdf.BIOCRO.R | permissive | jingxia/pecan | R | false | false | 2,557 | r | #-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... |
# required packages
library("GenomicFeatures")
library('Gviz')
library('TxDb.Hsapiens.UCSC.hg19.knownGene')
library('annmap')
library("biomaRt")
# get transcript data
annmapConnect(use.webservice = T, name = 'homo_sapiens.74') #hg19
# get BioMart hg19 build
ensembl54=useMart(biomart="ENSEMBL_MART_ENSEMBL", host="grch37... | /www/bam_testing.R | permissive | mikblack/WES_ShinyDiscover | R | false | false | 1,968 | r | # required packages
library("GenomicFeatures")
library('Gviz')
library('TxDb.Hsapiens.UCSC.hg19.knownGene')
library('annmap')
library("biomaRt")
# get transcript data
annmapConnect(use.webservice = T, name = 'homo_sapiens.74') #hg19
# get BioMart hg19 build
ensembl54=useMart(biomart="ENSEMBL_MART_ENSEMBL", host="grch37... |
# 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 u... | /r/R/filesystem.R | permissive | haaami01/arrow | R | false | false | 9,495 | 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 u... |
# Partition Functions
library(scales)
library(RColorBrewer)
col_list <- rev(brewer.pal(n = 5, name = "RdBu"))
sorted_equal <- function(v1, v2){
return(identical(sort(as.numeric(v1)), sort(as.numeric(v2))))
}
# A function to check whether x is inside vector v.
# we will use this with apply to check whether
index_i... | /one_partition/scripts/partition_functions.R | no_license | cecilia-balocchi/particle-optimization | R | false | false | 4,918 | r | # Partition Functions
library(scales)
library(RColorBrewer)
col_list <- rev(brewer.pal(n = 5, name = "RdBu"))
sorted_equal <- function(v1, v2){
return(identical(sort(as.numeric(v1)), sort(as.numeric(v2))))
}
# A function to check whether x is inside vector v.
# we will use this with apply to check whether
index_i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nemo_circle.R
\name{nemo_circle}
\alias{nemo_circle}
\title{Computes the largest empty circle which doesn't contain any points, inside a defined hull.}
\usage{
nemo_circle(points, hull, strict_inclusion, nmax_circles)
}
\arguments{
\item{poin... | /man/nemo_circle.Rd | permissive | mtmx/nemo | R | false | true | 948 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nemo_circle.R
\name{nemo_circle}
\alias{nemo_circle}
\title{Computes the largest empty circle which doesn't contain any points, inside a defined hull.}
\usage{
nemo_circle(points, hull, strict_inclusion, nmax_circles)
}
\arguments{
\item{poin... |
library(RCurl)
library(jsonlite)
#' get.scid.sid
#' @title Get the source compound ids from another source compound id
#' @description a list of all src_compound_ids from all sources which are
#' CURRENTLY assigned to the same structure as a currently assigned
#' query src_compound_id.
#' The output will include que... | /R/rUniChembl.r | no_license | woodhaha/rUniChEMBL | R | false | false | 18,742 | r | library(RCurl)
library(jsonlite)
#' get.scid.sid
#' @title Get the source compound ids from another source compound id
#' @description a list of all src_compound_ids from all sources which are
#' CURRENTLY assigned to the same structure as a currently assigned
#' query src_compound_id.
#' The output will include que... |
library(lubridate)
library(tidyverse)
library(zoo)
library(tidyr)
library(choroplethr)
library(choroplethrMaps)
library(gridExtra)
library(magrittr)
#THE INSTALL ZONE
#install.packages("jbmisc") # package installations are only needed the first time you use it
#Import Data
uspres_results = read.csv("... | /AnalyzingElectionDataInR/Worksheets/Chapter 3.R | no_license | BenChurchus/R-Learning | R | false | false | 3,481 | r | library(lubridate)
library(tidyverse)
library(zoo)
library(tidyr)
library(choroplethr)
library(choroplethrMaps)
library(gridExtra)
library(magrittr)
#THE INSTALL ZONE
#install.packages("jbmisc") # package installations are only needed the first time you use it
#Import Data
uspres_results = read.csv("... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mutationRatio.R
\name{readMPFile_localMutRate}
\alias{readMPFile_localMutRate}
\title{read the mutation position format file and extract the genomic position as a mutation feature}
\usage{
readMPFile_localMutRate(infile)
}
\arguments{
\item{i... | /man/readMPFile_localMutRate.Rd | no_license | kojimaryuta/pmsignature | R | false | true | 494 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mutationRatio.R
\name{readMPFile_localMutRate}
\alias{readMPFile_localMutRate}
\title{read the mutation position format file and extract the genomic position as a mutation feature}
\usage{
readMPFile_localMutRate(infile)
}
\arguments{
\item{i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rasterLocalSums.R
\name{rasterLocalSums}
\alias{rasterLocalSums}
\title{Local sums for an in memory raster image.}
\usage{
rasterLocalSums(r, W)
}
\arguments{
\item{r}{An in memory raster image.}
\item{W}{A matrix of weights. The sums will ... | /man/rasterLocalSums.Rd | no_license | cran/rasterKernelEstimates | R | false | true | 1,151 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rasterLocalSums.R
\name{rasterLocalSums}
\alias{rasterLocalSums}
\title{Local sums for an in memory raster image.}
\usage{
rasterLocalSums(r, W)
}
\arguments{
\item{r}{An in memory raster image.}
\item{W}{A matrix of weights. The sums will ... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 6.04642905895392e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615782537-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 329 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 6.04642905895392e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... |
library(dave)
### Name: pveg
### Title: Soppensee pollen data
### Aliases: pveg
### Keywords: datasets
### ** Examples
summary(pveg)
| /data/genthat_extracted_code/dave/examples/pveg.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 140 | r | library(dave)
### Name: pveg
### Title: Soppensee pollen data
### Aliases: pveg
### Keywords: datasets
### ** Examples
summary(pveg)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\encoding{UTF-8}
\name{poblacion}
\alias{poblacion}
\title{Datos de poblacion por seccion censal para las ciudades MEDEA3
(periodo 2006-2016)}
\format{Un objeto de clase \code{poblaciones_ine} donde las filas represent... | /man/poblacion.Rd | no_license | pcorpas/medear | R | false | true | 3,874 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\encoding{UTF-8}
\name{poblacion}
\alias{poblacion}
\title{Datos de poblacion por seccion censal para las ciudades MEDEA3
(periodo 2006-2016)}
\format{Un objeto de clase \code{poblaciones_ine} donde las filas represent... |
##reading data
data<-read.table("household_power_consumption.txt", sep = ";", header = TRUE,stringsAsFactors = FALSE,na.strings = "?")
data<-subset(data, data$Date=="1/2/2007"|data$Date=="2/2/2007")
##making plot
DT <- strptime(paste(data$Date, data$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
sub1<-as.numeric(data$Sub_meteri... | /plot3.R | no_license | David-Wang-NJU/ExData_Plotting1 | R | false | false | 702 | r | ##reading data
data<-read.table("household_power_consumption.txt", sep = ";", header = TRUE,stringsAsFactors = FALSE,na.strings = "?")
data<-subset(data, data$Date=="1/2/2007"|data$Date=="2/2/2007")
##making plot
DT <- strptime(paste(data$Date, data$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
sub1<-as.numeric(data$Sub_meteri... |
#' @export
startApplicationLocal <- function(...) {
#shiny::runApp("inst/app", ...)
shiny::runApp("inst/app")
}
| /R/startApplication.R | no_license | farrierworks/Availability-Report-R | R | false | false | 116 | r | #' @export
startApplicationLocal <- function(...) {
#shiny::runApp("inst/app", ...)
shiny::runApp("inst/app")
}
|
options(stringsAsFactors = F)
args = commandArgs(trailingOnly=TRUE)
f = '~/GoogleDrive/gastric_cancer_samples/Tables/DEP_blastp/table.DEP_blastp.N13T236.txt'
# f = args[1]
sample = strsplit(f, '.', fixed = T)[[1]][3]
## Load data
m = as.data.frame(read.delim(f))
## filter the ones which have overexpressed or underex... | /GO_analysis_EOGC.R | no_license | dahae-lee/gastric_cancer_samples | R | false | false | 1,080 | r | options(stringsAsFactors = F)
args = commandArgs(trailingOnly=TRUE)
f = '~/GoogleDrive/gastric_cancer_samples/Tables/DEP_blastp/table.DEP_blastp.N13T236.txt'
# f = args[1]
sample = strsplit(f, '.', fixed = T)[[1]][3]
## Load data
m = as.data.frame(read.delim(f))
## filter the ones which have overexpressed or underex... |
pkgs <- c(
"ensembldb",
"qvalue",
"plyranges",
"ComplexHeatmap",
"gtrellis"
)
BiocManager::install(pkgs, update=FALSE, ask=FALSE)
| /install_genome_pkgs.R | no_license | ccwang002/rocker-genome | R | false | false | 150 | r | pkgs <- c(
"ensembldb",
"qvalue",
"plyranges",
"ComplexHeatmap",
"gtrellis"
)
BiocManager::install(pkgs, update=FALSE, ask=FALSE)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rsquared.R
\name{rsquared.glmmPQL}
\alias{rsquared.glmmPQL}
\title{R^2 for glmmPQL objects}
\usage{
rsquared.glmmPQL(model, method = "trigamma")
}
\description{
R^2 for glmmPQL objects
}
\keyword{internal}
| /man/rsquared.glmmPQL.Rd | no_license | cran/piecewiseSEM | R | false | true | 296 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rsquared.R
\name{rsquared.glmmPQL}
\alias{rsquared.glmmPQL}
\title{R^2 for glmmPQL objects}
\usage{
rsquared.glmmPQL(model, method = "trigamma")
}
\description{
R^2 for glmmPQL objects
}
\keyword{internal}
|
#'Sort out sampling times, coalescent times and sampling lineages from a phylogenetic tree
#'
##' \code{att} sorts out sampling times, coalescent times and sampling lineages from a phylogenetic tree.
##'
##' @param phy A phylogenetic tree.
##' @param eps Difference parameter to separate coalescent and sampling eve... | /R/att.R | permissive | pboesu/GenieR | R | false | false | 2,360 | r | #'Sort out sampling times, coalescent times and sampling lineages from a phylogenetic tree
#'
##' \code{att} sorts out sampling times, coalescent times and sampling lineages from a phylogenetic tree.
##'
##' @param phy A phylogenetic tree.
##' @param eps Difference parameter to separate coalescent and sampling eve... |
# titanic is avaliable in your workspace
# 1 - Check the structure of titanic
str(titanic)
# 2 - Use ggplot() for the first instruction
ggplot(titanic, aes(x = Pclass, fill = Sex)) +
geom_bar(position = "dodge")
# 3 - Plot 2, add facet_grid() layer
ggplot(titanic, aes(x = Pclass, fill = Sex)) +
geom_bar(positio... | /titanicggPlotexercise.R | no_license | ramsubra1/Titanic | R | false | false | 681 | r | # titanic is avaliable in your workspace
# 1 - Check the structure of titanic
str(titanic)
# 2 - Use ggplot() for the first instruction
ggplot(titanic, aes(x = Pclass, fill = Sex)) +
geom_bar(position = "dodge")
# 3 - Plot 2, add facet_grid() layer
ggplot(titanic, aes(x = Pclass, fill = Sex)) +
geom_bar(positio... |
plot2 <- function() {
NEI <- readRDS("summarySCC_PM25.rds")
## Have total emissions from PM2.5 decreased in the
## Baltimore City, Maryland (fips == "24510") from 1999
## to 2008? Use the base plotting system to make a plot
## answering this question.
DF <- split(NEI, as.factor(NEI$fips))
EBY <- agg... | /ExploratoryAnalysisAssignment2/plot2.R | no_license | gyuen922/CourseProject2 | R | false | false | 531 | r | plot2 <- function() {
NEI <- readRDS("summarySCC_PM25.rds")
## Have total emissions from PM2.5 decreased in the
## Baltimore City, Maryland (fips == "24510") from 1999
## to 2008? Use the base plotting system to make a plot
## answering this question.
DF <- split(NEI, as.factor(NEI$fips))
EBY <- agg... |
if(interactive()){
library(setwidth)
options(vimcom.verbose = 0) # optional
library(vimcom)
}
| /.Rprofile | no_license | grgurev/dotfiles | R | false | false | 106 | rprofile | if(interactive()){
library(setwidth)
options(vimcom.verbose = 0) # optional
library(vimcom)
}
|
# -------------------------------------------
# common CpG between training and AML samples
# -------------------------------------------
d <- readRDS('/home-4/whou10@jhu.edu/scratch/Wenpin/metpred/data/tcga_450k/proc/hg38/combine/me.rds')
loc <- readRDS('/home-4/zji4@jhu.edu/scratch/metpred/data/tcga_450k/proc/hg38/lo... | /pred_dnam/code/06_tcga_all_training_pseudobulk.R | no_license | Winnie09/aml_feinberg | R | false | false | 4,549 | r | # -------------------------------------------
# common CpG between training and AML samples
# -------------------------------------------
d <- readRDS('/home-4/whou10@jhu.edu/scratch/Wenpin/metpred/data/tcga_450k/proc/hg38/combine/me.rds')
loc <- readRDS('/home-4/zji4@jhu.edu/scratch/metpred/data/tcga_450k/proc/hg38/lo... |
## The required data is "Electric Power Consumption". It can be downloaded from
## 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
## It is a zip file. It should be unzipped and saved in the working directory.
## Please save it as "household_power_consumption.txt".
library(data... | /plot1.R | no_license | skusum/ExData_Plotting1 | R | false | false | 1,453 | r | ## The required data is "Electric Power Consumption". It can be downloaded from
## 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
## It is a zip file. It should be unzipped and saved in the working directory.
## Please save it as "household_power_consumption.txt".
library(data... |
Substrate_preference<-function(data){
#Define the model
Substr_model<-function(time, state, pars){
with(as.list(c(state, pars)),{
#Fluorescent product/substrate
dPf<-Vmax*S/(Kmf*(1 + Porg/Kmorg) + S)#fluorescent product
dS<--Vmax*S/(Kmf*(1 + Porg/Kmorg) + S)
#Porg
... | /EE_data_analysis/Substrate_preference.R | no_license | petacapek/Enzyme_inhibition | R | false | false | 4,500 | r | Substrate_preference<-function(data){
#Define the model
Substr_model<-function(time, state, pars){
with(as.list(c(state, pars)),{
#Fluorescent product/substrate
dPf<-Vmax*S/(Kmf*(1 + Porg/Kmorg) + S)#fluorescent product
dS<--Vmax*S/(Kmf*(1 + Porg/Kmorg) + S)
#Porg
... |
eudatReplCheckIntegrity{
writeLine("stdout", "userNameClient: $userNameClient");
writeLine("stdout", "rodsZoneClient: $rodsZoneClient");
if (*home == '') {
*home="/$rodsZoneClient/home/$userNameClient";
}
msiDataObjCreate("*home/test_data.txt", "", *fd);
msiDataObjWrite(*fd, "Hello Worl... | /rules/eudatRepl_checkIntegrity.r | permissive | alexal14/B2SAFE-core | R | false | false | 2,616 | r | eudatReplCheckIntegrity{
writeLine("stdout", "userNameClient: $userNameClient");
writeLine("stdout", "rodsZoneClient: $rodsZoneClient");
if (*home == '') {
*home="/$rodsZoneClient/home/$userNameClient";
}
msiDataObjCreate("*home/test_data.txt", "", *fd);
msiDataObjWrite(*fd, "Hello Worl... |
#' Plots character changes on branches
#'
#' @description
#'
#' Plots character changes in boxes on branches.
#'
#' @param character_changes A matrix of character changes.
#' @param time_tree Tree on which character changes occur.
#' @param label_size The size of the text for the barnch labels. Default is 0.5.
#'
#' @d... | /R/plot_changes_on_tree.R | no_license | graemetlloyd/Claddis | R | false | false | 2,673 | r | #' Plots character changes on branches
#'
#' @description
#'
#' Plots character changes in boxes on branches.
#'
#' @param character_changes A matrix of character changes.
#' @param time_tree Tree on which character changes occur.
#' @param label_size The size of the text for the barnch labels. Default is 0.5.
#'
#' @d... |
# The top level script generateTestData.R defines:
# initial_wd <- getwd()
# simulateAndExportDatasetParamGUI
setwd(file.path(initial_wd, "simData03"))
show_plot = FALSE # if TRUE: show on screen, else: write to png
simFilename <- "simData03.ascii"
# global_sigma <- .001
# Experimental parameters
kinpar_sim <- c(0.025... | /paramGUI/simData03/simData03.R | permissive | s-weigand/pyglotaran-validation-data-paramGUI | R | false | false | 3,754 | r | # The top level script generateTestData.R defines:
# initial_wd <- getwd()
# simulateAndExportDatasetParamGUI
setwd(file.path(initial_wd, "simData03"))
show_plot = FALSE # if TRUE: show on screen, else: write to png
simFilename <- "simData03.ascii"
# global_sigma <- .001
# Experimental parameters
kinpar_sim <- c(0.025... |
# IMPORT DATA
movies <- read.csv("Section6-Homework-Data.csv")
str(movies)
# SUBSETTING DATA
m <- movies[, c(3, 6, 8, 18)]
colnames(m) <- c("Genre", "Studio", "BudgetMillions", "GrossPercentage")
genre_plot <- c("action", "adventure", "animation", "comedy", "drama")
studio_plot <- c("Buena Vista Studios", "F... | /Section 6 GGPlot2/section 6 - homework.R | no_license | tomytjandra/r-programming-a-to-z | R | false | false | 1,164 | r | # IMPORT DATA
movies <- read.csv("Section6-Homework-Data.csv")
str(movies)
# SUBSETTING DATA
m <- movies[, c(3, 6, 8, 18)]
colnames(m) <- c("Genre", "Studio", "BudgetMillions", "GrossPercentage")
genre_plot <- c("action", "adventure", "animation", "comedy", "drama")
studio_plot <- c("Buena Vista Studios", "F... |
library(testthat)
library(grieman)
test_check("grieman")
| /tests/testthat.R | no_license | grieman/grieman | R | false | false | 59 | r | library(testthat)
library(grieman)
test_check("grieman")
|
#' @title Metropolis-Hastings sampler for lasso estimator under the fixed active set.
#'
#' @description Metropolis-Hastings sampler for lasso estimator
#' under the fixed active set.
#'
#' @param X predictor matrix.
#' @param PE,sig2,lbd parameters of target distribution.
#' (point estimate of beta or \code{E(y)} depe... | /R/MHLS.R | no_license | cran/EAlasso | R | false | false | 27,264 | r | #' @title Metropolis-Hastings sampler for lasso estimator under the fixed active set.
#'
#' @description Metropolis-Hastings sampler for lasso estimator
#' under the fixed active set.
#'
#' @param X predictor matrix.
#' @param PE,sig2,lbd parameters of target distribution.
#' (point estimate of beta or \code{E(y)} depe... |
#
# File: qualityControl.R
# Created Date: Monday, September 28th 2020
# Author: Debora Antunes
# -----
# Last Modified: Wednesday, September 30th 2020, 10:52:14 am
# -----
#
# if (!requireNamespace("BiocManager", quietly = TRUE))
# install.packages("BiocManager")
# BiocManager::install("GWASTools")
# BiocManag... | /R/qualityControl.R | no_license | Daantunes/ComplexDiseases_Pipeline | R | false | false | 2,042 | r |
#
# File: qualityControl.R
# Created Date: Monday, September 28th 2020
# Author: Debora Antunes
# -----
# Last Modified: Wednesday, September 30th 2020, 10:52:14 am
# -----
#
# if (!requireNamespace("BiocManager", quietly = TRUE))
# install.packages("BiocManager")
# BiocManager::install("GWASTools")
# BiocManag... |
source("objective.R")
#the data
changeK = c(35,25); changeN = c(40,40)
sameK = c(5,15); sameN = c(40,40)
setSize = c(4,8)
#set up best-fitting parameters for slot model
startpars = c(3.5, 0.5)
out = optim(par = startpars, fn = slotObjective, changeN = changeN, sameN = sameN, changeK = changeK, sameK = sameK, setSize =... | /Classes/Day_06/slotResource/final/bic.R | no_license | danieljwilson/CMMC-2018 | R | false | false | 1,202 | r | source("objective.R")
#the data
changeK = c(35,25); changeN = c(40,40)
sameK = c(5,15); sameN = c(40,40)
setSize = c(4,8)
#set up best-fitting parameters for slot model
startpars = c(3.5, 0.5)
out = optim(par = startpars, fn = slotObjective, changeN = changeN, sameN = sameN, changeK = changeK, sameK = sameK, setSize =... |
require(tidyr)
require(dplyr)
require(ggplot2)
setwd("C:/DataViz/6. Final Project/DV_FinalProject/01 Data")
file_path <- "HallOfFame.csv"
df <- read.csv(file_path, stringsAsFactors = FALSE)
# Replace "." (i.e., period) with "_" in the column names.
names(df) <- gsub("\\.+", "_", names(df))
# summary(df) # Uncommen... | /DV_FinalProject/01 Data/HallOfFameETL.R | no_license | germanmtz93/DV_FinalProject | R | false | false | 2,604 | r | require(tidyr)
require(dplyr)
require(ggplot2)
setwd("C:/DataViz/6. Final Project/DV_FinalProject/01 Data")
file_path <- "HallOfFame.csv"
df <- read.csv(file_path, stringsAsFactors = FALSE)
# Replace "." (i.e., period) with "_" in the column names.
names(df) <- gsub("\\.+", "_", names(df))
# summary(df) # Uncommen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{servicecatalog}
\alias{servicecatalog}
\title{AWS Service Catalog}
\usage{
servicecatalog(
config = list(),
credentials = list(),
endpoint = NULL,
region = NULL
)
}
\arguments{
\item{config}{Optional configuration of cred... | /cran/paws/man/servicecatalog.Rd | permissive | paws-r/paws | R | false | true | 18,910 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{servicecatalog}
\alias{servicecatalog}
\title{AWS Service Catalog}
\usage{
servicecatalog(
config = list(),
credentials = list(),
endpoint = NULL,
region = NULL
)
}
\arguments{
\item{config}{Optional configuration of cred... |
SpaceFilling <-
function(asch){
fun1<-function() {
n<-readline("Number of lines of association schemes array :\n")
l<-readline("Number of columns of association schemes array :\n")
n<-as.integer(n);l<-as.integer(l)
return(c(n,l))}
fun2<-function() {
n<-readline("Number of lines of association schemes array ... | /RPPairwiseDesign/R/SpaceFilling.R | no_license | ingted/R-Examples | R | false | false | 5,999 | r | SpaceFilling <-
function(asch){
fun1<-function() {
n<-readline("Number of lines of association schemes array :\n")
l<-readline("Number of columns of association schemes array :\n")
n<-as.integer(n);l<-as.integer(l)
return(c(n,l))}
fun2<-function() {
n<-readline("Number of lines of association schemes array ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discretize_exprs_supervised.R
\name{discretize_exprs_supervised}
\alias{discretize_exprs_supervised}
\title{supervised_disc_df}
\usage{
discretize_exprs_supervised(expression_table, target, parallel = FALSE)
}
\arguments{
\item{expression_tab... | /man/discretize_exprs_supervised.Rd | no_license | AndiPauli/FCBF | R | false | true | 1,239 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discretize_exprs_supervised.R
\name{discretize_exprs_supervised}
\alias{discretize_exprs_supervised}
\title{supervised_disc_df}
\usage{
discretize_exprs_supervised(expression_table, target, parallel = FALSE)
}
\arguments{
\item{expression_tab... |
# Create S4 method 'recruit'
#B.PP.GenBms.FoodUpdate.01<-function(
if (!isGeneric("foodUpdate"))
setGeneric("foodUpdate", function(element, universe) standardGeneric("foodUpdate"))
setMethod("foodUpdate", signature(element="PPgenBMS", universe="Universe"),
function(
element,
universe # acce... | /2 Biota/1 Primary production/Food/B.PP.GenBms.FoodUpdate.01.R | no_license | AndrewJConstable/EPOCuniverse | R | false | false | 3,067 | r | # Create S4 method 'recruit'
#B.PP.GenBms.FoodUpdate.01<-function(
if (!isGeneric("foodUpdate"))
setGeneric("foodUpdate", function(element, universe) standardGeneric("foodUpdate"))
setMethod("foodUpdate", signature(element="PPgenBMS", universe="Universe"),
function(
element,
universe # acce... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/dimple.R
\name{renderdimple}
\alias{renderdimple}
\title{Widget render function for use in Shiny}
\usage{
renderdimple(expr, env = parent.frame(), quoted = FALSE)
}
\description{
Widget render function for use in Shiny
}
| /man/renderdimple.Rd | no_license | levmorgan/dimple | R | false | false | 308 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/dimple.R
\name{renderdimple}
\alias{renderdimple}
\title{Widget render function for use in Shiny}
\usage{
renderdimple(expr, env = parent.frame(), quoted = FALSE)
}
\description{
Widget render function for use in Shiny
}
|
run_analysis <- function () {
#Read training data
trainingset <- read.table("UCI HAR Dataset/train/X_train.txt")
traininglabels <- read.table("UCI HAR Dataset/train/y_train.txt")
trainingsubject <- read.table("UCI HAR Dataset/train/subject_train.txt")
#Read test data
testset <- read.table("UCI HAR Dat... | /run_analysis.R | no_license | mateomtb/getting-and-cleaning-data | R | false | false | 1,815 | r | run_analysis <- function () {
#Read training data
trainingset <- read.table("UCI HAR Dataset/train/X_train.txt")
traininglabels <- read.table("UCI HAR Dataset/train/y_train.txt")
trainingsubject <- read.table("UCI HAR Dataset/train/subject_train.txt")
#Read test data
testset <- read.table("UCI HAR Dat... |
#counting number of observations by trait.
#Using MCMCglmm to fit PGLS models.
#zero model selection performed, just straight up sending model structures based on apriori hypotheses.
rm(list=ls())
source('paths.r')
source('functions/pgls_glmm_no_selection.r')
source('functions/tic_toc.r')
library(data.table)
library(ph... | /figure_scripts/trait_N_table.r | no_license | colinaverill/myco_trait_analysis | R | false | false | 2,775 | r | #counting number of observations by trait.
#Using MCMCglmm to fit PGLS models.
#zero model selection performed, just straight up sending model structures based on apriori hypotheses.
rm(list=ls())
source('paths.r')
source('functions/pgls_glmm_no_selection.r')
source('functions/tic_toc.r')
library(data.table)
library(ph... |
.libPaths(new="~/R")
rm(list=ls())
setwd("~/hdi_path")
require(LOCOpath)
# source("~/hdi_path/bin/pathwise_power.R")
#######################################################################################################################################
# Set simulation parameters (to be done with command-line argu... | /slurm_cluster_code/power_simu_12.R | no_license | devcao/LOCOpath_repo | R | false | false | 2,365 | r | .libPaths(new="~/R")
rm(list=ls())
setwd("~/hdi_path")
require(LOCOpath)
# source("~/hdi_path/bin/pathwise_power.R")
#######################################################################################################################################
# Set simulation parameters (to be done with command-line argu... |
working.compvariogmodels1 <-
function(gammadat,models,range0)
{
## gammadat : x : distance, gamma empirical semivariance
## models: variogram models to fit
## range0 : first peak or range
## value : better fitting models weighted least square
## note to Dong July 29: add nugget effects
lsout <- vector('list',leng... | /R/working.compvariogmodels1.R | no_license | cran/ltsk | R | false | false | 1,219 | r | working.compvariogmodels1 <-
function(gammadat,models,range0)
{
## gammadat : x : distance, gamma empirical semivariance
## models: variogram models to fit
## range0 : first peak or range
## value : better fitting models weighted least square
## note to Dong July 29: add nugget effects
lsout <- vector('list',leng... |
rm(list = ls())
library(rmarkdown)
library(dplyr)
library(rgdal)
library(htmlwidgets)
library(tools)
library (leaflet)
library(shiny)
library(ggplot2)
library(webshot)
server<-shinyServer(function(input, output){
webshot::install_phantomjs()
#IMPORT DATA
output$text1<-renderText({ "research the 2016 election usi... | /server.r | no_license | jamesthesnake/Election2016Project | R | false | false | 14,738 | r | rm(list = ls())
library(rmarkdown)
library(dplyr)
library(rgdal)
library(htmlwidgets)
library(tools)
library (leaflet)
library(shiny)
library(ggplot2)
library(webshot)
server<-shinyServer(function(input, output){
webshot::install_phantomjs()
#IMPORT DATA
output$text1<-renderText({ "research the 2016 election usi... |
#!/usr/bin/env r
suppressMessages(library(docopt))
suppressMessages(library(devtools))
doc <- "Usage: installPackage.r [-p PATH]
Options:
-p --path PATH package path [default: .]
Example:
installPackage.r -p ./epivizFileServer
"
opt <- docopt(doc)
invisible(devtools::install(pkg=opt$path))
| /installPackage.r | no_license | epiviz/docker_rbase | R | false | false | 301 | r | #!/usr/bin/env r
suppressMessages(library(docopt))
suppressMessages(library(devtools))
doc <- "Usage: installPackage.r [-p PATH]
Options:
-p --path PATH package path [default: .]
Example:
installPackage.r -p ./epivizFileServer
"
opt <- docopt(doc)
invisible(devtools::install(pkg=opt$path))
|
require(caret)
require(caretEnsemble)
require(pROC)
require(doParallel)
require(kknn)
source("script/R/fun/summaryResult.R")
result.kknn.df <- readRDS("result/result.kknn.df.data")
#
# 前処理
#
source("./Data-pre-processing.R")
my_preProcess <- c("center", "scale")
data_preProcess <- "none"
data_preProcess <- "nzv"
d... | /caret_kknn.R | no_license | ryoogata/BankCustomersTargeting | R | false | false | 5,456 | r | require(caret)
require(caretEnsemble)
require(pROC)
require(doParallel)
require(kknn)
source("script/R/fun/summaryResult.R")
result.kknn.df <- readRDS("result/result.kknn.df.data")
#
# 前処理
#
source("./Data-pre-processing.R")
my_preProcess <- c("center", "scale")
data_preProcess <- "none"
data_preProcess <- "nzv"
d... |
# functions that allow to calculate emissions factors from EDGAR
# EF in EDGAR are in kton/TJ
# https://edgar.jrc.ec.europa.eu/overview.php?v=432_AP&SECURE=123
# Crippa, M., Guizzardi, D., Muntean, M., Schaaf, E., Dentener, F.,
# van Aardenne, J. A., Monni, S., Doering, U., Olivier, J. G. J.,
# Pagliari, V., and Jans... | /edgar_ef.R | permissive | esperluette/airpollutants_script_for_com | R | false | false | 5,836 | r | # functions that allow to calculate emissions factors from EDGAR
# EF in EDGAR are in kton/TJ
# https://edgar.jrc.ec.europa.eu/overview.php?v=432_AP&SECURE=123
# Crippa, M., Guizzardi, D., Muntean, M., Schaaf, E., Dentener, F.,
# van Aardenne, J. A., Monni, S., Doering, U., Olivier, J. G. J.,
# Pagliari, V., and Jans... |
##
# The five essential tasks to complete the Course Project are as follows.
#
# 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activities in the data set
# 4.... | /run_analysis.R | no_license | keithtan87/Coursera_Getting_And_Cleaning_Data | R | false | false | 2,702 | r | ##
# The five essential tasks to complete the Course Project are as follows.
#
# 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activities in the data set
# 4.... |
#----------------------------------------------------------------------------------------------#
# Revised from /proj/yunligrp/users/lagler/SIP/R/ATACseqPlot.R
# Figure 3a-b: SIPs and ATAC-seq Peak Regions
# requires SIP_*.txt, fraser.rda, and ATAC-seq peak files
# /proj/yunligrp/users/lagler/SIP/figures/ATACseqPlot.pn... | /revision/2_4.R | no_license | Jia21/SIP | R | false | false | 6,536 | r | #----------------------------------------------------------------------------------------------#
# Revised from /proj/yunligrp/users/lagler/SIP/R/ATACseqPlot.R
# Figure 3a-b: SIPs and ATAC-seq Peak Regions
# requires SIP_*.txt, fraser.rda, and ATAC-seq peak files
# /proj/yunligrp/users/lagler/SIP/figures/ATACseqPlot.pn... |
###
#
# Script to parametrise the RangeShiftR transfer sub-modue CorrRW (correlated random walk)
#
###
# 1.) define function to calculate distribution of settlement and death events per each step
pSteps <- function(pStepMort, pSettle, MaxSteps = 10){
step <- seq(MaxSteps)
sett <- rep(0, MaxSteps)
mort ... | /scripts/4_wildboar_CorrRW_distances.R | no_license | FelixNoessler/Individuals-based-modelling-with-RangeShiftR | R | false | false | 2,259 | r | ###
#
# Script to parametrise the RangeShiftR transfer sub-modue CorrRW (correlated random walk)
#
###
# 1.) define function to calculate distribution of settlement and death events per each step
pSteps <- function(pStepMort, pSettle, MaxSteps = 10){
step <- seq(MaxSteps)
sett <- rep(0, MaxSteps)
mort ... |
# Individual household electric power consumption Data Set
# https://archive.ics.uci.edu/ml/datasets/Individual+household+electric+power+consumption
# Download code:
if(!file.exists("./data")){
print("Directory not found. Creating Data Directory")
dir.create("./data")}
if(!file.exists("./data/HPC.tx... | /Plot1.R | no_license | Porphyrytic/ExData_Plotting1 | R | false | false | 1,330 | r | # Individual household electric power consumption Data Set
# https://archive.ics.uci.edu/ml/datasets/Individual+household+electric+power+consumption
# Download code:
if(!file.exists("./data")){
print("Directory not found. Creating Data Directory")
dir.create("./data")}
if(!file.exists("./data/HPC.tx... |
#Optimizacion Bayesiana de hiperparametros de ArbolesAzarosos
#funciona automaticamente con EXPERIMENTOS
#va generando incrementalmente salidas para kaggle
#limpio la memoria
rm( list=ls() ) #remove all objects
gc() #garbage collection
require("data.table")
require("rlist")
require("yaml")
require("rpa... | /src/arbolesazarosos/460_arboles_azarosos_BO.r | no_license | Chapamar/dm2021b | R | false | false | 10,202 | r | #Optimizacion Bayesiana de hiperparametros de ArbolesAzarosos
#funciona automaticamente con EXPERIMENTOS
#va generando incrementalmente salidas para kaggle
#limpio la memoria
rm( list=ls() ) #remove all objects
gc() #garbage collection
require("data.table")
require("rlist")
require("yaml")
require("rpa... |
source("scripts/functions/harmonic_mean.R")
vp_mut_matrix<- readRDS(file="data/vp_mut_matrix.rds")
muts<- readRDS("data/driver_muts13.rds")
driver_muts<- colnames(readRDS("data/mut_matrix.rds"))
source("scripts/functions/do_logreg.R")
# Load genotype data 1kg
pop_HLA<- read.table("downloads/1kg/1000_genomes_hla.tsv",s... | /scripts/manuscript_1kg.R | no_license | CCGGlab/mhc_driver | R | false | false | 8,643 | r | source("scripts/functions/harmonic_mean.R")
vp_mut_matrix<- readRDS(file="data/vp_mut_matrix.rds")
muts<- readRDS("data/driver_muts13.rds")
driver_muts<- colnames(readRDS("data/mut_matrix.rds"))
source("scripts/functions/do_logreg.R")
# Load genotype data 1kg
pop_HLA<- read.table("downloads/1kg/1000_genomes_hla.tsv",s... |
# Lab 2
# Created by Ye (Eric) Wang
# Modified largely from the code by Prof. Jerry Reiter
# on 09/01/2015
# 0. Optional Assignment of Lab 1
# 1. Install R Packages
#******************************************************
# Install from CRAN ("randomForest")
# or install from local files ("lrpd")
library("randomForest... | /Lab2_R_Script.R | no_license | ericyewang/Duke-STA-210 | R | false | false | 6,878 | r | # Lab 2
# Created by Ye (Eric) Wang
# Modified largely from the code by Prof. Jerry Reiter
# on 09/01/2015
# 0. Optional Assignment of Lab 1
# 1. Install R Packages
#******************************************************
# Install from CRAN ("randomForest")
# or install from local files ("lrpd")
library("randomForest... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gbmExtras.R
\name{relative.influence.noprint}
\alias{relative.influence.noprint}
\title{relative.influence.noprint
Get relative influence from gbm fit}
\usage{
relative.influence.noprint(object, n.trees, scale. = FALSE, sort. = FALSE)
}
\argu... | /man/relative.influence.noprint.Rd | no_license | kaixinhuaihuai/OncoCast | R | false | true | 615 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gbmExtras.R
\name{relative.influence.noprint}
\alias{relative.influence.noprint}
\title{relative.influence.noprint
Get relative influence from gbm fit}
\usage{
relative.influence.noprint(object, n.trees, scale. = FALSE, sort. = FALSE)
}
\argu... |
rand_str <- function(n = 16L, hex = TRUE) {
if (hex) {
paste(sample(as.raw(0:255), n, replace = TRUE), collapse = "")
} else {
rawToChar(sample(as.raw(32:126), n, replace = TRUE))
}
}
skip_long_test <- function() {
if (identical(Sys.getenv("STORR_RUN_LONG_TESTS"), "true")) {
return(invisible(TRUE))... | /tests/testthat/helper-storr.R | no_license | mpadge/storr | R | false | false | 619 | r | rand_str <- function(n = 16L, hex = TRUE) {
if (hex) {
paste(sample(as.raw(0:255), n, replace = TRUE), collapse = "")
} else {
rawToChar(sample(as.raw(32:126), n, replace = TRUE))
}
}
skip_long_test <- function() {
if (identical(Sys.getenv("STORR_RUN_LONG_TESTS"), "true")) {
return(invisible(TRUE))... |
#loading required libraries
library(caTools)
library(xgboost)
library(rpart)
library(randomForest)
library(dplyr)
#Loading the train and test set
train <- read.csv("C:/Users/Vinay/Downloads/Animal State Prediction - dataset/train.csv")
test <- read.csv("C:/Users/Vinay/Downloads/Animal State Prediction - datas... | /script1_RF.R | no_license | V-S-D/fff | R | false | false | 4,894 | r | #loading required libraries
library(caTools)
library(xgboost)
library(rpart)
library(randomForest)
library(dplyr)
#Loading the train and test set
train <- read.csv("C:/Users/Vinay/Downloads/Animal State Prediction - dataset/train.csv")
test <- read.csv("C:/Users/Vinay/Downloads/Animal State Prediction - datas... |
library(shiny)
library(shinydashboard)
library(googlesheets4)
# Load survey questions
source("questions.R")
sidebar <- dashboardSidebar(
hr(),
sidebarMenu(
id="tabs",
menuItem("About you", tabName = "About_you", icon = icon("id-card")),
menuItem("Questions", tabName = "Questions", icon = icon("images")... | /experiment/ui.R | permissive | numbats/summer-vis-inf | R | false | false | 2,225 | r | library(shiny)
library(shinydashboard)
library(googlesheets4)
# Load survey questions
source("questions.R")
sidebar <- dashboardSidebar(
hr(),
sidebarMenu(
id="tabs",
menuItem("About you", tabName = "About_you", icon = icon("id-card")),
menuItem("Questions", tabName = "Questions", icon = icon("images")... |
#Profile basic test
source("setup.R")
local({
if(!require(profvis,lib.loc = user_path)) {
install.packages("profvis",lib = user_path)
if(!require(profvis,lib.loc = user_path)) {
stop("Failed to install profiler")
}
}
library(htmlwidgets,lib.loc = user_path)
library(jsonlite,lib.loc = user_pa... | /R_profile_helper.R | no_license | GrahamDB/testing_selac | R | false | false | 58,407 | r | #Profile basic test
source("setup.R")
local({
if(!require(profvis,lib.loc = user_path)) {
install.packages("profvis",lib = user_path)
if(!require(profvis,lib.loc = user_path)) {
stop("Failed to install profiler")
}
}
library(htmlwidgets,lib.loc = user_path)
library(jsonlite,lib.loc = user_pa... |
# Plot temperature obs and reanalysis - along part of the voyage
library(grid)
library(chron)
o<-read.table('../Endurance.comparisons')
o2<-read.table('../Endurance.comparisons.ERA20C')
o3<-read.table('../Endurance.comparisons.354')
dates<-chron(dates=sprintf("%04d/%02d/%02d",o$V1,o$V2,o$V3),
times=sprin... | /voyages/endurance_1914-6/scripts/paper_figures/Endurance_temperatures_plot.R | no_license | alxbutterworth/Expeditions | R | false | false | 2,559 | r | # Plot temperature obs and reanalysis - along part of the voyage
library(grid)
library(chron)
o<-read.table('../Endurance.comparisons')
o2<-read.table('../Endurance.comparisons.ERA20C')
o3<-read.table('../Endurance.comparisons.354')
dates<-chron(dates=sprintf("%04d/%02d/%02d",o$V1,o$V2,o$V3),
times=sprin... |
testlist <- list(b = c(-1667457875L, -1667458046L, 67964173L, 67964173L, -1835887972L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613108506-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 155 | r | testlist <- list(b = c(-1667457875L, -1667458046L, 67964173L, 67964173L, -1835887972L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) |
context("helper_plot_latent works")
set.seed(2323)
options(warn=-1)
require(lavaan)
test_that("beta_to_flexplot works", {
expect_equal(beta_to_flexplot(small)[[1]], formula(z~f1 | f2))
expect_equal(beta_to_flexplot(small, return_dvs = T), 3)
expect_equal(beta_to_flexplot(small_fa), formula(f1~f2))
expect_equa... | /tests/testthat/test-helper_plot_latent.R | no_license | dustinfife/flexplavaan | R | false | false | 655 | r | context("helper_plot_latent works")
set.seed(2323)
options(warn=-1)
require(lavaan)
test_that("beta_to_flexplot works", {
expect_equal(beta_to_flexplot(small)[[1]], formula(z~f1 | f2))
expect_equal(beta_to_flexplot(small, return_dvs = T), 3)
expect_equal(beta_to_flexplot(small_fa), formula(f1~f2))
expect_equa... |
testlist <- list(doy = -1.72131968218895e+83, latitude = 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615828613-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 734 | r | testlist <- list(doy = -1.72131968218895e+83, latitude = 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/halfmatrix.R
\name{is.square}
\alias{is.square}
\title{Test If Something is Square}
\usage{
is.square(x, ...)
}
\arguments{
\item{x}{object}
\item{...}{passed arguments}
}
\description{
Tests if something is square. Generic, w... | /man/is.square.Rd | no_license | cran/nonmemica | R | false | true | 889 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/halfmatrix.R
\name{is.square}
\alias{is.square}
\title{Test If Something is Square}
\usage{
is.square(x, ...)
}
\arguments{
\item{x}{object}
\item{...}{passed arguments}
}
\description{
Tests if something is square. Generic, w... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exception.R
\name{assert}
\alias{assert}
\title{Assert}
\usage{
assert(condition, message = "assert error")
}
\arguments{
\item{condition}{Condition for assert.}
\item{message}{Exception message if the condition is not satisfied.}
}
\descrip... | /man/assert.Rd | permissive | hmito/hmRLib | R | false | true | 387 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exception.R
\name{assert}
\alias{assert}
\title{Assert}
\usage{
assert(condition, message = "assert error")
}
\arguments{
\item{condition}{Condition for assert.}
\item{message}{Exception message if the condition is not satisfied.}
}
\descrip... |
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
# Short Term Load Forecasting Competiion - Tao Hong's Energy Analytics Course
#
# Prepare and manage data sets used in forecasting
#
# Author: Jon T Farland <jonfarland@gmail.com>
#
# Copywright September 2015
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | /code/reference-code/01-manage-data.R | no_license | jfarland/prob-comp-2015 | R | false | false | 7,082 | r | #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
# Short Term Load Forecasting Competiion - Tao Hong's Energy Analytics Course
#
# Prepare and manage data sets used in forecasting
#
# Author: Jon T Farland <jonfarland@gmail.com>
#
# Copywright September 2015
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... |
require(gdata)
datesep <- function(datestring){
# takes an ostensibly-date string
# returns a list of parts as separated by hyphen, slash or period
dlist <- unlist(strsplit(datestring, '-'))
if (length(dlist)<3) dlist <- unlist(strsplit(datestring, '/'))
if (length(dlist)<3) dlist <- unlist(strsplit(datestri... | /individual/Rescate/x-canonical/src/canonicalization-functions.R | no_license | AndreStephens/UWCHR | R | false | false | 9,445 | r | require(gdata)
datesep <- function(datestring){
# takes an ostensibly-date string
# returns a list of parts as separated by hyphen, slash or period
dlist <- unlist(strsplit(datestring, '-'))
if (length(dlist)<3) dlist <- unlist(strsplit(datestring, '/'))
if (length(dlist)<3) dlist <- unlist(strsplit(datestri... |
library(logcondens)
### Name: isoMean
### Title: Pool-Adjacent Violaters Algorithm: Least Square Fit under
### Monotonicity Constraint
### Aliases: isoMean
### Keywords: htest nonparametric
### ** Examples
## simple regression model
n <- 50
x <- sort(runif(n, 0, 1))
y <- x ^ 2 + rnorm(n, 0, 0.2)
s <- seq(0, 1, by... | /data/genthat_extracted_code/logcondens/examples/isoMean.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 503 | r | library(logcondens)
### Name: isoMean
### Title: Pool-Adjacent Violaters Algorithm: Least Square Fit under
### Monotonicity Constraint
### Aliases: isoMean
### Keywords: htest nonparametric
### ** Examples
## simple regression model
n <- 50
x <- sort(runif(n, 0, 1))
y <- x ^ 2 + rnorm(n, 0, 0.2)
s <- seq(0, 1, by... |
require(keras)
setwd("/users/jelle/documents/github/LoreSeekerAI/models")
source("../Queries/read_ls_data.R")
setwd("/users/jelle/documents/github/helloworldcpp/data")
l1reglambda <- 0.00005
lambda <- 0.001
# layers:
# 60 -> 10 got about 0.774 in 1 run
# 60 -> 17 got about 0.78 in 1 run
# 60 -> 20 got about 0.78 in... | /Exploration/Keras.Rd | no_license | ArtOfBBQ/LoreSeekerAI | R | false | false | 2,537 | rd | require(keras)
setwd("/users/jelle/documents/github/LoreSeekerAI/models")
source("../Queries/read_ls_data.R")
setwd("/users/jelle/documents/github/helloworldcpp/data")
l1reglambda <- 0.00005
lambda <- 0.001
# layers:
# 60 -> 10 got about 0.774 in 1 run
# 60 -> 17 got about 0.78 in 1 run
# 60 -> 20 got about 0.78 in... |
\name{PolarConcentrationAndPhase}
\alias{PolarConcentrationAndPhase}
\alias{PolarConcentrationAndPhase.RasterBrick}
\alias{PolarConcentrationAndPhase.RasterStack}
\title{
Polar Concentration And Phase
}
\description{
Calculates the concentration and phase of a polar data
}
\usage{
PolarConcentrationAnd... | /benchmarkMetrics/man/PolarConcentrationAndPhase.Rd | no_license | douglask3/benchmarkmetrics | R | false | false | 6,367 | rd | \name{PolarConcentrationAndPhase}
\alias{PolarConcentrationAndPhase}
\alias{PolarConcentrationAndPhase.RasterBrick}
\alias{PolarConcentrationAndPhase.RasterStack}
\title{
Polar Concentration And Phase
}
\description{
Calculates the concentration and phase of a polar data
}
\usage{
PolarConcentrationAnd... |
source("RTwitterUtils.r")
args<-commandArgs(trailingOnly=TRUE)
RunTwitterSentiment<-function(searchterm, qty){
print(paste("Searching for: ",searchterm))
pos.words = LoadPosWordSet()
neg.words = LoadNegWordSet()
tweets<-TweetFrame(searchterm, qty)
db<-GetConnection()
by(tweets, 1:nrow(tweets), fun... | /RunTwitterSentiment.r | no_license | PereiraM/RPISentimentServer | R | false | false | 754 | r | source("RTwitterUtils.r")
args<-commandArgs(trailingOnly=TRUE)
RunTwitterSentiment<-function(searchterm, qty){
print(paste("Searching for: ",searchterm))
pos.words = LoadPosWordSet()
neg.words = LoadNegWordSet()
tweets<-TweetFrame(searchterm, qty)
db<-GetConnection()
by(tweets, 1:nrow(tweets), fun... |
if (nchar(Sys.getenv("SPARK_HOME"))<1) {
Sys.setenv(SPARK_HOME = "C:\\Spark\\spark-2.1")
}
#Sys.setenv(JAVA_HOME= "C:/Program Files/java/jre1.8.0_121/")
library(SparkR, lib.loc = c(file.path(Sys.getenv("SPARK_HOME"),"R", "lib")))
#sc <- sparkR.session(master = "local")
sc <- sparkR.session(master = "local[*]", s... | /spark r in R.R | no_license | avk1/VJ | R | false | false | 562 | r | if (nchar(Sys.getenv("SPARK_HOME"))<1) {
Sys.setenv(SPARK_HOME = "C:\\Spark\\spark-2.1")
}
#Sys.setenv(JAVA_HOME= "C:/Program Files/java/jre1.8.0_121/")
library(SparkR, lib.loc = c(file.path(Sys.getenv("SPARK_HOME"),"R", "lib")))
#sc <- sparkR.session(master = "local")
sc <- sparkR.session(master = "local[*]", s... |
qat_call_save_histogram_test <-
function(resultlist_part, element = -999, dim_mv=1, time = NULL, height = NULL, lat = NULL, lon = NULL, vec1 = NULL, vec2 = NULL, vec3 = NULL, vec4 = NULL, baseunit = NULL, savelist = list(), savelistcounter = 1) {
## functionality: calling function for qat_save_distribution_1d
## author... | /R/qat_call_save_histogram_test.R | no_license | cran/qat | R | false | false | 876 | r | qat_call_save_histogram_test <-
function(resultlist_part, element = -999, dim_mv=1, time = NULL, height = NULL, lat = NULL, lon = NULL, vec1 = NULL, vec2 = NULL, vec3 = NULL, vec4 = NULL, baseunit = NULL, savelist = list(), savelistcounter = 1) {
## functionality: calling function for qat_save_distribution_1d
## author... |
library(shiny)
library(HH)
shiny.CIplot(height = "auto")
| /inst/shiny/CIplot/app.R | no_license | cran/HH | R | false | false | 58 | r | library(shiny)
library(HH)
shiny.CIplot(height = "auto")
|
rm(list = ls())
setwd("/Users/dylandavis/Documents/Math 370/CDC_10_Years_of_Data")
library(plyr)
E = lapply(list.files(),function(x) read.csv(x,header = T))
e = E
w = list(
lapply(E,function(x) names(x)[grep("DRUGID", names(x))]),
lapply(E,function(x) names(x)[grep("CONTSUB", names(x))]),
lapply(1:10,function(... | /Optimized for Logistic Regression/Dylan_Davis_HW4.R | no_license | dd238/Data-Mgmt.-Analysis-with-R | R | false | false | 3,323 | r | rm(list = ls())
setwd("/Users/dylandavis/Documents/Math 370/CDC_10_Years_of_Data")
library(plyr)
E = lapply(list.files(),function(x) read.csv(x,header = T))
e = E
w = list(
lapply(E,function(x) names(x)[grep("DRUGID", names(x))]),
lapply(E,function(x) names(x)[grep("CONTSUB", names(x))]),
lapply(1:10,function(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{interviews}
\alias{interviews}
\title{Descriptions of Interviews with Patients}
\format{A character vector of legth 10 containing the terms separated by \code{", "}.}
\usage{
interviews
}
\description{
An artificia... | /man/interviews.Rd | permissive | karthik/memr | R | false | true | 1,044 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{interviews}
\alias{interviews}
\title{Descriptions of Interviews with Patients}
\format{A character vector of legth 10 containing the terms separated by \code{", "}.}
\usage{
interviews
}
\description{
An artificia... |
\name{cubinf}
\alias{cubinf}
\title{
Conditionally unbiased bounded influence estimates of discrete Generalized Linear Models
}
\description{
Conditionally unbiased bounded influence estimates as described in Kuensch et al.
(1989) in three special GLM cases: Bernoulli, Binomial, and Poisson distributed respon... | /man/cubinf.Rd | no_license | cran/robcbi | R | false | false | 5,203 | rd | \name{cubinf}
\alias{cubinf}
\title{
Conditionally unbiased bounded influence estimates of discrete Generalized Linear Models
}
\description{
Conditionally unbiased bounded influence estimates as described in Kuensch et al.
(1989) in three special GLM cases: Bernoulli, Binomial, and Poisson distributed respon... |
#' Display regression model results in table
#'
#' This function takes a regression model object and returns a formatted table
#' that is publication-ready. The function is highly customizable
#' allowing the user to obtain a bespoke summary table of the
#' regression model results. Review the
#' \href{https://www.dani... | /R/tbl_regression.R | permissive | ddsjoberg/gtsummary | R | false | false | 11,048 | r | #' Display regression model results in table
#'
#' This function takes a regression model object and returns a formatted table
#' that is publication-ready. The function is highly customizable
#' allowing the user to obtain a bespoke summary table of the
#' regression model results. Review the
#' \href{https://www.dani... |
library(rjson)
library(jsonlite)
my_path <- "C:\\Users\\Monica\\Data_Analytics\\DA_Assignment2.2"
j_files <- list.files(path = my_path, pattern = ".json$", include.dirs = FALSE, recursive = FALSE)
myJSON <- lapply(j_files, function(x) fromJSON(x))
d_data <- data.frame(unlist(myJSON))
print(d_data)
| /Assignment2.2_PS1.R | no_license | msam04/DA_Assignment2.2 | R | false | false | 300 | r | library(rjson)
library(jsonlite)
my_path <- "C:\\Users\\Monica\\Data_Analytics\\DA_Assignment2.2"
j_files <- list.files(path = my_path, pattern = ".json$", include.dirs = FALSE, recursive = FALSE)
myJSON <- lapply(j_files, function(x) fromJSON(x))
d_data <- data.frame(unlist(myJSON))
print(d_data)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.