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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidyxl_fmts.R
\name{fmt_border_right_color_rgb}
\alias{fmt_border_right_color_rgb}
\title{Add formatting information from the fmt_border_right_color_rgb format object
This function uses the format object created by \code{xlsx_formats} along w... | /man/fmt_border_right_color_rgb.Rd | permissive | jimsforks/locatr | R | false | true | 722 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidyxl_fmts.R
\name{fmt_border_right_color_rgb}
\alias{fmt_border_right_color_rgb}
\title{Add formatting information from the fmt_border_right_color_rgb format object
This function uses the format object created by \code{xlsx_formats} along w... |
setwd('/homes/adesh/results/')
.libPaths('/share/code/geospatial/adesh/r_packages')
library(raster)
rm(list = ls())
piped_median <- brick('water/w_piped_median.tif')
piped_ci <- brick('water/w_piped_cirange.tif')
w_imp_median <- brick('water/w_imp_median.tif')
w_imp_ci <- brick('water/w_imp_cirange.tif')
w_imp_great... | /05_utilities/reclass_raster.R | no_license | manzorz/wash_mapping | R | false | false | 3,782 | r | setwd('/homes/adesh/results/')
.libPaths('/share/code/geospatial/adesh/r_packages')
library(raster)
rm(list = ls())
piped_median <- brick('water/w_piped_median.tif')
piped_ci <- brick('water/w_piped_cirange.tif')
w_imp_median <- brick('water/w_imp_median.tif')
w_imp_ci <- brick('water/w_imp_cirange.tif')
w_imp_great... |
#read ammonoid measurement data
ammon<-read.csv("http://files.figshare.com/1846468/ammon.csv")
#read time interval data
time_periods<-read.csv("http://paleobiodb.org/data1.1/intervals/list.txt?scale=1&min_ma=66&max_ma=425")
stages<-subset(time_periods,time_periods$level==5) #extracts stage level data
stages$interval_... | /shape_analysis.R | permissive | mclapham/ammonShape | R | false | false | 13,202 | r |
#read ammonoid measurement data
ammon<-read.csv("http://files.figshare.com/1846468/ammon.csv")
#read time interval data
time_periods<-read.csv("http://paleobiodb.org/data1.1/intervals/list.txt?scale=1&min_ma=66&max_ma=425")
stages<-subset(time_periods,time_periods$level==5) #extracts stage level data
stages$interval_... |
# Sitting Postural Sway
setwd("~/Desktop/NRL/APDM")
path <- "Sitting Postural Sway"
files <- list.files(path)
for (x in files){
id <- unlist(strsplit(x, "_"))[5]
filepath <- paste0(path,"/",x,"/Sway_trials.csv")
f <- read.csv(filepath, stringsAsFactors = F)
if (id == "GH1"){
df <- f[,12:44]
rownames(d... | /APDM/Sitting Postural Sway.R | no_license | irislxxy/NRL | R | false | false | 458 | r | # Sitting Postural Sway
setwd("~/Desktop/NRL/APDM")
path <- "Sitting Postural Sway"
files <- list.files(path)
for (x in files){
id <- unlist(strsplit(x, "_"))[5]
filepath <- paste0(path,"/",x,"/Sway_trials.csv")
f <- read.csv(filepath, stringsAsFactors = F)
if (id == "GH1"){
df <- f[,12:44]
rownames(d... |
#' Mark orders as shipped and add tracking info
#' @param orderid OrderId
#' @param carrient shipping carrier
#' @param tracking tracking number
#' @param ship_date date shipped
#' @param notify_customer should customer be notified? (logical/scalar)
#' @param notify_channel should channel be notified? (logical/scalar)... | /R/ss_mark_as_shipped.R | no_license | anthonypileggi/shipstationr | R | false | false | 1,408 | r |
#' Mark orders as shipped and add tracking info
#' @param orderid OrderId
#' @param carrient shipping carrier
#' @param tracking tracking number
#' @param ship_date date shipped
#' @param notify_customer should customer be notified? (logical/scalar)
#' @param notify_channel should channel be notified? (logical/scalar)... |
library(shiny)
shinyUI(pageWithSidebar(
##Application title
headerPanel(
HTML('<img src="banner.png"/>'),
windowTitle="My Title"
),
sidebarPanel(
p("Cette application permet de visualiser les resultats des enquetes menes par l ANSD."),
selectInput("dataset", "Choisir une enquete:",
... | /ui.R | no_license | dickoa/shinysurvey | R | false | false | 1,138 | r | library(shiny)
shinyUI(pageWithSidebar(
##Application title
headerPanel(
HTML('<img src="banner.png"/>'),
windowTitle="My Title"
),
sidebarPanel(
p("Cette application permet de visualiser les resultats des enquetes menes par l ANSD."),
selectInput("dataset", "Choisir une enquete:",
... |
##
## Hooke & Jeeves for initial phase of COBRA
## h o o k e j e e v e s . R Hooke-Jeeves Minimization Algorithm
##
initialHjkb <- function(par, fn, lower = -Inf, upper = Inf, control = list(), ...) {
if (!is.numeric(par))
stop("Argument 'par' must be a numeric vector.", call. = FALSE)
n <- len... | /R/initialHjkb.R | no_license | dmurdoch/SACOBRA | R | false | false | 7,995 | r | ##
## Hooke & Jeeves for initial phase of COBRA
## h o o k e j e e v e s . R Hooke-Jeeves Minimization Algorithm
##
initialHjkb <- function(par, fn, lower = -Inf, upper = Inf, control = list(), ...) {
if (!is.numeric(par))
stop("Argument 'par' must be a numeric vector.", call. = FALSE)
n <- len... |
# Datasets, scenarios, models, years, decades
currentYears <- reactive({ if(!is.null(input$yrs)) as.numeric(input$yrs[1]):as.numeric(input$yrs[2]) })
limitedYears <- reactive({
rng <- range(as.numeric(substr(Decades(),1,4))) + c(0,9)
yrs <- intersect(currentYears(), seq(rng[1], rng[2]))
yrs
})
currentUnit... | /cmip3_cmip5/external/appSourceFiles/reactives.R | no_license | ZoeDS/shiny-apps | R | false | false | 20,488 | r | # Datasets, scenarios, models, years, decades
currentYears <- reactive({ if(!is.null(input$yrs)) as.numeric(input$yrs[1]):as.numeric(input$yrs[2]) })
limitedYears <- reactive({
rng <- range(as.numeric(substr(Decades(),1,4))) + c(0,9)
yrs <- intersect(currentYears(), seq(rng[1], rng[2]))
yrs
})
currentUnit... |
#' Bayesian logistic regression with Stan
#'
#' @export
#' @param formula Formula.
#' @param data data.frame.
#' @param scale.X logical value indicating if predictors are scaled
#' @param sd_prior_b standard deviation for the prior for regression weights
#' @return An object of class `spolr` with the slots
#' `par` and... | /R/slogreg.R | no_license | gbiele/spolr | R | false | false | 2,279 | r | #' Bayesian logistic regression with Stan
#'
#' @export
#' @param formula Formula.
#' @param data data.frame.
#' @param scale.X logical value indicating if predictors are scaled
#' @param sd_prior_b standard deviation for the prior for regression weights
#' @return An object of class `spolr` with the slots
#' `par` and... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/accessors.R
\docType{methods}
\name{branch}
\alias{branch}
\alias{branch,PkgSource}
\alias{branch,PkgSource-method}
\alias{branch<-}
\alias{branch<-,PkgSource}
\alias{branch<-,PkgSource-method}
\title{Get or set the branch associated ... | /man/branch.Rd | permissive | arturochian/switchr | R | false | false | 593 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/accessors.R
\docType{methods}
\name{branch}
\alias{branch}
\alias{branch,PkgSource}
\alias{branch,PkgSource-method}
\alias{branch<-}
\alias{branch<-,PkgSource}
\alias{branch<-,PkgSource-method}
\title{Get or set the branch associated ... |
#' @keywords internal
"_PACKAGE"
# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
#' @importFrom tibble tibble
#' @importFrom tibble as_tibble
## usethis namespace: end
NULL
| /R/gdqdonations-package.R | permissive | jemus42/gdqdonations | R | false | false | 263 | r | #' @keywords internal
"_PACKAGE"
# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
#' @importFrom tibble tibble
#' @importFrom tibble as_tibble
## usethis namespace: end
NULL
|
library(shiny)
library(leaflet)
library(maptools)
library(spatialEco)
library(dplyr)
# setwd("~/Documents/Columbia/Exploratory Data Analysis and Visualization/HW3/Edav-P3-ggteam/ce2330/")
park = read.csv("park.csv", as.is = TRUE)
police = read.csv("police.csv", as.is = TRUE)
restaurant = read.csv("restaurant.csv", ... | /app.R | no_license | carlosespino11/nyc-features | R | false | false | 5,863 | r | library(shiny)
library(leaflet)
library(maptools)
library(spatialEco)
library(dplyr)
# setwd("~/Documents/Columbia/Exploratory Data Analysis and Visualization/HW3/Edav-P3-ggteam/ce2330/")
park = read.csv("park.csv", as.is = TRUE)
police = read.csv("police.csv", as.is = TRUE)
restaurant = read.csv("restaurant.csv", ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EvaluateCandidateListAgainstRawData.R
\name{EvaluateCandidateListAgainstRawData}
\alias{EvaluateCandidateListAgainstRawData}
\title{EvaluateCandidateListAgainstRawData.}
\usage{
EvaluateCandidateListAgainstRawData(
x = NULL,
tp = ... | /man/EvaluateCandidateListAgainstRawData.Rd | no_license | cran/HiResTEC | R | false | true | 2,587 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EvaluateCandidateListAgainstRawData.R
\name{EvaluateCandidateListAgainstRawData}
\alias{EvaluateCandidateListAgainstRawData}
\title{EvaluateCandidateListAgainstRawData.}
\usage{
EvaluateCandidateListAgainstRawData(
x = NULL,
tp = ... |
# Load complete file
raw <- read.delim('data/household_power_consumption.txt', sep = ';', na.strings = '?',
colClasses = c('character', 'character',
'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric'))
# Grab just the two dates we need (dates ... | /plot1.R | no_license | codemonkeyjim/ExData_Plotting1 | R | false | false | 698 | r | # Load complete file
raw <- read.delim('data/household_power_consumption.txt', sep = ';', na.strings = '?',
colClasses = c('character', 'character',
'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric'))
# Grab just the two dates we need (dates ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{police_stations}
\alias{police_stations}
\title{Chicago Police Station locations}
\format{A data frame with 23 rows and 2 variables:
\describe{
\item{lon}{longitude of a police station}
\item{lat}{latitude of a... | /man/police_stations.Rd | no_license | jakespiteri/chicagocrime | R | false | true | 600 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{police_stations}
\alias{police_stations}
\title{Chicago Police Station locations}
\format{A data frame with 23 rows and 2 variables:
\describe{
\item{lon}{longitude of a police station}
\item{lat}{latitude of a... |
if (getRversion() >= "2.15.1") utils::globalVariables(c('tkrp',
'shortput',
'shortcall',
'profit'))
reversestrangle <-
function(){
my.... | /GUIDE/R/reversestrangle.R | no_license | ingted/R-Examples | R | false | false | 2,194 | r | if (getRversion() >= "2.15.1") utils::globalVariables(c('tkrp',
'shortput',
'shortcall',
'profit'))
reversestrangle <-
function(){
my.... |
testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = c(767L, 0L, 4351L, -1179026247L, 16777216L, 285194681L, 2092498944L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), item_score = integer(0), person_id = integer(0))
result <- do.call(dexterMST:::mutate_booklet_score,testlist)
str(result) | /dexterMST/inst/testfiles/mutate_booklet_score/libFuzzer_mutate_booklet_score/mutate_booklet_score_valgrind_files/1612727359-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 308 | r | testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = c(767L, 0L, 4351L, -1179026247L, 16777216L, 285194681L, 2092498944L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), item_score = integer(0), person_id = integer(0))
result <- do.call(dexterMST:::mutate_booklet_score,testlist)
str(result) |
source('io/rnaseq.R')
source('plotting/venn.R')
source('differential_expression/edger_de.R')
source('io/output.R')
source('_settings.R')
source("utils.R")
fdr = 0.05
output.dir <- getOutputDir("replicates.de")
loaded.wtchg <- paired_gbm_nsc_data()
samples.rtki <- c(
'GBM018_P10',
'GBM018_P12',
'GBM019_P4',
... | /R/paired_samples/biological_replicate_de.R | no_license | gaberosser/qmul-bioinf | R | false | false | 8,190 | r |
source('io/rnaseq.R')
source('plotting/venn.R')
source('differential_expression/edger_de.R')
source('io/output.R')
source('_settings.R')
source("utils.R")
fdr = 0.05
output.dir <- getOutputDir("replicates.de")
loaded.wtchg <- paired_gbm_nsc_data()
samples.rtki <- c(
'GBM018_P10',
'GBM018_P12',
'GBM019_P4',
... |
/Week4Quiz-Jon-MedarbPC.R | no_license | JonJagd/getting-cleaning-data | R | false | false | 1,919 | r | ||
#' @title Cross-validation for sNBLDA_glm model
#'
#' @description Uses cross-validation to select the best tuning paramter
#'
#' @param dat Data matrix of N by P where N is the number of subjects and P is the number of features
#'
#' @param y class label (numeric)
#' @param nfold Number of folds to be considere... | /R/cross_val_N.R | no_license | jiieunshin/SnbClass | R | false | false | 2,325 | r | #' @title Cross-validation for sNBLDA_glm model
#'
#' @description Uses cross-validation to select the best tuning paramter
#'
#' @param dat Data matrix of N by P where N is the number of subjects and P is the number of features
#'
#' @param y class label (numeric)
#' @param nfold Number of folds to be considere... |
#this partial version will only load models that have already been run.
#Purposes:
#1) Take a look at what we can achieve by adding a reaction time to the model.
#We're adding multiplying inverse temperature by reaction time.
#The effect of this is that where rt=1 (the maximum RT), then inverse temperature is unchanged... | /du_model_rev6_6a-partial.R | permissive | bjsmith/reversallearning | R | false | false | 10,617 | r | #this partial version will only load models that have already been run.
#Purposes:
#1) Take a look at what we can achieve by adding a reaction time to the model.
#We're adding multiplying inverse temperature by reaction time.
#The effect of this is that where rt=1 (the maximum RT), then inverse temperature is unchanged... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
automl.preprocessing.suite <- function() {
import_dataset <- function() {
y <- "survived"
fr <- h2o.importFile(locate("smalldata/titanic/titanic_expanded.csv"))
splits <- h2o.splitFrame(f... | /h2o-r/tests/testdir_algos/automl/runit_automl_preprocessing.R | permissive | h2oai/h2o-3 | R | false | false | 1,192 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
automl.preprocessing.suite <- function() {
import_dataset <- function() {
y <- "survived"
fr <- h2o.importFile(locate("smalldata/titanic/titanic_expanded.csv"))
splits <- h2o.splitFrame(f... |
#' @title Filter Activity
#'
#' @description Filters the log based on activities
#'
#' @param activities \code{\link{character}} vector: Containing one or more activity identifiers.
#' @param reverse \code{\link{logical}} (default \code{FALSE}): Indicating whether the selection should be reversed.
#'
#' @return ... | /R/filter_activity.R | no_license | cran/edeaR | R | false | false | 3,058 | r | #' @title Filter Activity
#'
#' @description Filters the log based on activities
#'
#' @param activities \code{\link{character}} vector: Containing one or more activity identifiers.
#' @param reverse \code{\link{logical}} (default \code{FALSE}): Indicating whether the selection should be reversed.
#'
#' @return ... |
##############################################################################
##############################################################################
# Gams
##############################################################################
##########################################################################... | /r/wip_r/cloud (lattice).r | no_license | dkidney/how2 | R | false | false | 1,476 | r | ##############################################################################
##############################################################################
# Gams
##############################################################################
##########################################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GRAFitInitModelSetupConst.R
\name{GRAFitInitModelSetupConst}
\alias{GRAFitInitModelSetupConst}
\title{GRAFit: Setup the Data/Model}
\usage{
GRAFitInitModelSetupConst(
output_dir = NULL,
main_src = NULL,
nComp = 2,
ExpDisk = FALSE,
F... | /man/GRAFitInitModelSetupConst.Rd | no_license | HoseinHashemi/GRAFit | R | false | true | 3,993 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GRAFitInitModelSetupConst.R
\name{GRAFitInitModelSetupConst}
\alias{GRAFitInitModelSetupConst}
\title{GRAFit: Setup the Data/Model}
\usage{
GRAFitInitModelSetupConst(
output_dir = NULL,
main_src = NULL,
nComp = 2,
ExpDisk = FALSE,
F... |
#' S4 class to represent a Count data set.
#'
#' @slot npops The number of populations
#' @slot nsnp The number of SNPs
#' @slot refallele.count A matrix (nsnp rows and npops columns) with the allele counts for the reference allele
#' @slot total.count A matrix (nsnp rows and npops columns) with the total number of cou... | /R/is.countdata.R | no_license | cran/poolfstat | R | false | false | 1,682 | r | #' S4 class to represent a Count data set.
#'
#' @slot npops The number of populations
#' @slot nsnp The number of SNPs
#' @slot refallele.count A matrix (nsnp rows and npops columns) with the allele counts for the reference allele
#' @slot total.count A matrix (nsnp rows and npops columns) with the total number of cou... |
context("test-mgetarl")
test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
| /tests/testthat/test-mgetarl.R | no_license | cran/SNSchart | R | false | false | 94 | r | context("test-mgetarl")
test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search.conv.R
\name{search.conv}
\alias{search.conv}
\title{Searching for morphological convergence among species and clades}
\usage{
search.conv(RR=NULL,tree=NULL,y,nodes=NULL,state=NULL,aceV=NULL,
min.dim=NULL,max.dim=NULL,min.dist=NULL,d... | /man/search.conv.Rd | no_license | pasraia/RRphylo | R | false | true | 8,986 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search.conv.R
\name{search.conv}
\alias{search.conv}
\title{Searching for morphological convergence among species and clades}
\usage{
search.conv(RR=NULL,tree=NULL,y,nodes=NULL,state=NULL,aceV=NULL,
min.dim=NULL,max.dim=NULL,min.dist=NULL,d... |
#' Conditionally equidistant jittering
#'
#' Converts ordered variables to numeric and Adds deterministic uniform noise.
#' See *Details*.
#'
#' Jittering makes discrete variables continuous by adding noise. This simple
#' trick allows to consistently estimate densities with tools designed for the
#' continuous case (s... | /fuzzedpackages/kde1d/R/jitter.R | no_license | akhikolla/testpackages | R | false | false | 1,850 | r | #' Conditionally equidistant jittering
#'
#' Converts ordered variables to numeric and Adds deterministic uniform noise.
#' See *Details*.
#'
#' Jittering makes discrete variables continuous by adding noise. This simple
#' trick allows to consistently estimate densities with tools designed for the
#' continuous case (s... |
## CollectSequencingArtifactMetrics
p1 <- InputParam(id = "bam", type = "File", prefix = "-I")
p2 <- InputParam(id = "ref", type = "File", prefix = "-R")
p3 <- InputParam(id = "ext", type = "string", prefix = "--FILE_EXTENSION", default = ".txt")
p4 <- InputParam(id = "art", type = "string", prefix = "-O")
o1 <- Output... | /Rcwl/tl_ColSeqArtifact.R | no_license | truwl/roswellpark | R | false | false | 837 | r | ## CollectSequencingArtifactMetrics
p1 <- InputParam(id = "bam", type = "File", prefix = "-I")
p2 <- InputParam(id = "ref", type = "File", prefix = "-R")
p3 <- InputParam(id = "ext", type = "string", prefix = "--FILE_EXTENSION", default = ".txt")
p4 <- InputParam(id = "art", type = "string", prefix = "-O")
o1 <- Output... |
baseline_mean <-
analytic_long %>%
select(covs_fixed) %>%
summarise_all(mean, na.rm = T) %>%
pivot_longer(everything()) %>%
rename(mean = value)
baseline_sd <-
analytic_long %>%
select(covs_fixed) %>%
summarise_all(sd, na.rm = T) %>%
pivot_longer(everything()) %>%
rename(sd = value)
baseline_var... | /4_descriptive_analysis/0_baseline_summary.R | permissive | boyercb/ueda-replication | R | false | false | 2,289 | r | baseline_mean <-
analytic_long %>%
select(covs_fixed) %>%
summarise_all(mean, na.rm = T) %>%
pivot_longer(everything()) %>%
rename(mean = value)
baseline_sd <-
analytic_long %>%
select(covs_fixed) %>%
summarise_all(sd, na.rm = T) %>%
pivot_longer(everything()) %>%
rename(sd = value)
baseline_var... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dynamodb_operations.R
\name{dynamodb_disable_kinesis_streaming_destination}
\alias{dynamodb_disable_kinesis_streaming_destination}
\title{Stops replication from the DynamoDB table to the Kinesis data stream}
\usage{
dynamodb_disable_kinesis_s... | /cran/paws.database/man/dynamodb_disable_kinesis_streaming_destination.Rd | permissive | paws-r/paws | R | false | true | 780 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dynamodb_operations.R
\name{dynamodb_disable_kinesis_streaming_destination}
\alias{dynamodb_disable_kinesis_streaming_destination}
\title{Stops replication from the DynamoDB table to the Kinesis data stream}
\usage{
dynamodb_disable_kinesis_s... |
#' Create ggplot2 plots, but don't print to screen/page.
#'
#' This function aggregates graphing code; returns plots as a list.
#' @param metric income/consumption/NHC ;; weighted
#' @keywords plots, graphs
#' @export
#' @examples
#' createGraphs(1)
#' createGraphs(0)
createGraphs <- function(metric="income"){
if(met... | /R/createGraphs.R | no_license | waffle-iron/censusFunctions | R | false | false | 4,192 | r | #' Create ggplot2 plots, but don't print to screen/page.
#'
#' This function aggregates graphing code; returns plots as a list.
#' @param metric income/consumption/NHC ;; weighted
#' @keywords plots, graphs
#' @export
#' @examples
#' createGraphs(1)
#' createGraphs(0)
createGraphs <- function(metric="income"){
if(met... |
library(httr)
library(jsonlite)
# Find OAuth settings for github
oauth_endpoints("github")
# Store key and secret
myapp <- oauth_app("github",
key = "49b9b3c6e0adb457c0d5",
secret = "a93ec5df5e5e2377c29c011f7b0b89649efabfb9")
# Get OAuth credentials
github_token <- oauth2.0_token(oauth_endpoints("g... | /Quiz 2/Quiz 2 - Question 1.R | no_license | sservaes/Getting-and-Cleaning-Data | R | false | false | 639 | r | library(httr)
library(jsonlite)
# Find OAuth settings for github
oauth_endpoints("github")
# Store key and secret
myapp <- oauth_app("github",
key = "49b9b3c6e0adb457c0d5",
secret = "a93ec5df5e5e2377c29c011f7b0b89649efabfb9")
# Get OAuth credentials
github_token <- oauth2.0_token(oauth_endpoints("g... |
\name{synIsCertified}
\alias{synIsCertified}
\docType{methods}
\title{
synIsCertified
}
\description{
Determines whether a Synapse user is a certified user.
}
\usage{
synIsCertified(user)
}
\arguments{
\item{user}{}
}
\details{
% A detailed if possible precise description of the functionality provided, extending the ba... | /man/synIsCertified.Rd | permissive | jkiang13/synapser | R | false | false | 806 | rd | \name{synIsCertified}
\alias{synIsCertified}
\docType{methods}
\title{
synIsCertified
}
\description{
Determines whether a Synapse user is a certified user.
}
\usage{
synIsCertified(user)
}
\arguments{
\item{user}{}
}
\details{
% A detailed if possible precise description of the functionality provided, extending the ba... |
spacodi.tree.plot <-function(spacodi.object, phy, sig.plot=TRUE, cut.off=0.05, cols=list("white", "gray", "black"), main=TRUE, outfile=NULL, ...){
op=par(no.readonly=TRUE)
on.exit(par(op))
if(class(spacodi.object)=="list") base=as.data.frame(spacodi.object[[1]]) else base=as.data.frame(spacodi.object)
if(nrow(bas... | /checkpoints/archive/2010/04.2010/04.29.2010/spacodi/R/spacodi.tree.plot.R | no_license | eastman/spacodiR | R | false | false | 4,430 | r | spacodi.tree.plot <-function(spacodi.object, phy, sig.plot=TRUE, cut.off=0.05, cols=list("white", "gray", "black"), main=TRUE, outfile=NULL, ...){
op=par(no.readonly=TRUE)
on.exit(par(op))
if(class(spacodi.object)=="list") base=as.data.frame(spacodi.object[[1]]) else base=as.data.frame(spacodi.object)
if(nrow(bas... |
.linearize <- function(x, ref, internal=TRUE) {
ref <- as.integer(ref)
keep.a1 <- anchors(x, type="first", id=TRUE) %in% ref
keep.a2 <- anchors(x, type="second", id=TRUE) %in% ref
if (!internal) {
keep <- keep.a1 != keep.a2
} else {
keep <- keep.a1 | keep.a2
}
x <- x[ke... | /R/linearize.R | no_license | LTLA/InteractionSet | R | false | false | 2,017 | r | .linearize <- function(x, ref, internal=TRUE) {
ref <- as.integer(ref)
keep.a1 <- anchors(x, type="first", id=TRUE) %in% ref
keep.a2 <- anchors(x, type="second", id=TRUE) %in% ref
if (!internal) {
keep <- keep.a1 != keep.a2
} else {
keep <- keep.a1 | keep.a2
}
x <- x[ke... |
library(plyr)
path_Scripts = "C://Users//Konstantin//Desktop//On hand//europe finance//Version 4//"
path_BLData = "C://Users//Konstantin//Desktop//On hand//europe finance//Data From BL//"
file_name = paste(path_BLData, "EURUSD History_Sep_Oct.csv", sep = "")
fxspot = read.csv(file_name, header = TRUE)
fxspot... | /hourly_data.R | no_license | KZherdev/Trading-Strategy1-Options-EF | R | false | false | 937 | r | library(plyr)
path_Scripts = "C://Users//Konstantin//Desktop//On hand//europe finance//Version 4//"
path_BLData = "C://Users//Konstantin//Desktop//On hand//europe finance//Data From BL//"
file_name = paste(path_BLData, "EURUSD History_Sep_Oct.csv", sep = "")
fxspot = read.csv(file_name, header = TRUE)
fxspot... |
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/1615828454-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/data.R
\docType{data}
\name{shortlist}
\alias{shortlist}
\title{A list of pathways and genes that comprise these pathways from msigdb}
\format{
a list with 4 items
Short list of patient samples
}
\usage{
shortlist
}
\description{
A list of p... | /man/shortlist.Rd | permissive | sgosline/leapR | R | false | true | 400 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{shortlist}
\alias{shortlist}
\title{A list of pathways and genes that comprise these pathways from msigdb}
\format{
a list with 4 items
Short list of patient samples
}
\usage{
shortlist
}
\description{
A list of p... |
#' Load the example MALDI-MSI data.
#'
#' Loads a single mouse urinary bladder MALDI mass spectrometry imaging dataset
#' acquired in positive ionization mode using Thermo qExactive Orbitrap. The
#' dataset is available at
#' "https://raw.github.com/paoloinglese/SPUTNIKexamples/master/data/bladder_maldi_prepr_MALD... | /R/data_funcs.R | no_license | cran/SPUTNIK | R | false | false | 3,151 | r | #' Load the example MALDI-MSI data.
#'
#' Loads a single mouse urinary bladder MALDI mass spectrometry imaging dataset
#' acquired in positive ionization mode using Thermo qExactive Orbitrap. The
#' dataset is available at
#' "https://raw.github.com/paoloinglese/SPUTNIKexamples/master/data/bladder_maldi_prepr_MALD... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_search_diff.R
\name{find_pbm_diff}
\alias{find_pbm_diff}
\title{Perform all the process to detect risky observations}
\usage{
find_pbm_diff(
t_ind,
threshold,
max_agregate_size,
save_file = NULL,
simplify = TRUE,
verbose = TRU... | /fuzzedpackages/diffman/man/find_pbm_diff.Rd | no_license | akhikolla/testpackages | R | false | true | 2,849 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_search_diff.R
\name{find_pbm_diff}
\alias{find_pbm_diff}
\title{Perform all the process to detect risky observations}
\usage{
find_pbm_diff(
t_ind,
threshold,
max_agregate_size,
save_file = NULL,
simplify = TRUE,
verbose = TRU... |
###########################################################################/**
# @RdocClass QualityAssessmentSet
#
# @title "The QualityAssessmentSet class"
#
# \description{
# @classhierarchy
#
# }
#
# @synopsis
#
# \arguments{
# \item{...}{Arguments passed to constructor of @see "AffymetrixCelSet".}
# }
#
# \secti... | /R/QualityAssessmentSet.R | no_license | HenrikBengtsson/aroma.affymetrix | R | false | false | 584 | r | ###########################################################################/**
# @RdocClass QualityAssessmentSet
#
# @title "The QualityAssessmentSet class"
#
# \description{
# @classhierarchy
#
# }
#
# @synopsis
#
# \arguments{
# \item{...}{Arguments passed to constructor of @see "AffymetrixCelSet".}
# }
#
# \secti... |
#' Function to generate a request header for notion.so
#'
#' @param version Notion version used in a request
#'
#' @details The Notion API is versioned and named for the date the version
#' is released. The current latest version is 2021-05-13.
#' please check: \url{https://developers.notion.com/reference/versioning}
#... | /R/notion_header.R | no_license | Songyosr/Rnotion | R | false | false | 614 | r | #' Function to generate a request header for notion.so
#'
#' @param version Notion version used in a request
#'
#' @details The Notion API is versioned and named for the date the version
#' is released. The current latest version is 2021-05-13.
#' please check: \url{https://developers.notion.com/reference/versioning}
#... |
# This script illustrates how you can simulate a tree using MEA's tree
# simulator from a given starting seed.
# You should be able to repeat this analysis exactly, e.g., generate
# the exact same tree that we do, given a particular random seed.
# The script also illustrates how to output the tree
# and set up a BA... | /bamm_extinction/functions/R_simulate_tree_from_seed.R | no_license | JustinCally/SexualSelection_Speciation | R | false | false | 3,303 | r |
# This script illustrates how you can simulate a tree using MEA's tree
# simulator from a given starting seed.
# You should be able to repeat this analysis exactly, e.g., generate
# the exact same tree that we do, given a particular random seed.
# The script also illustrates how to output the tree
# and set up a BA... |
wtx = read.csv("WildProduction.csv")
tmp = read.csv("RMIS_adclip_database.csv")
tmp = tmp[tmp$last_release_date_year>=1970,]
tmp = tmp[tmp$last_release_date_year<=2015,]
#Smolt abundance
R_hroy = array(0,
dim=c(nAreas,nRun,nOrigin,nYear),
dimnames = list(areaNames,runNames,originNames... | /create_Rhroy.r | no_license | nemochina2008/COAST_WIDE | R | false | false | 1,548 | r | wtx = read.csv("WildProduction.csv")
tmp = read.csv("RMIS_adclip_database.csv")
tmp = tmp[tmp$last_release_date_year>=1970,]
tmp = tmp[tmp$last_release_date_year<=2015,]
#Smolt abundance
R_hroy = array(0,
dim=c(nAreas,nRun,nOrigin,nYear),
dimnames = list(areaNames,runNames,originNames... |
library(roahd)
### Name: generate_gauss_mfdata
### Title: Generation of gaussian multivariate functional data
### Aliases: generate_gauss_mfdata
### ** Examples
N = 30
P = 1e2
L = 3
time_grid = seq( 0, 1, length.out = P )
C1 = exp_cov_function( time_grid, alpha = 0.1, beta = 0.2 )
C2 = exp_cov_function( time_gri... | /data/genthat_extracted_code/roahd/examples/generate_gauss_mfdata.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,001 | r | library(roahd)
### Name: generate_gauss_mfdata
### Title: Generation of gaussian multivariate functional data
### Aliases: generate_gauss_mfdata
### ** Examples
N = 30
P = 1e2
L = 3
time_grid = seq( 0, 1, length.out = P )
C1 = exp_cov_function( time_grid, alpha = 0.1, beta = 0.2 )
C2 = exp_cov_function( time_gri... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(dplyr)
library(purrr)
library(rlang)
library(stringr)
# devtools::install_git... | /app.R | no_license | jienagu/D3_folded_charts | R | false | false | 6,758 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(dplyr)
library(purrr)
library(rlang)
library(stringr)
# devtools::install_git... |
rm(list=ls())
n = 100 #size of sample
b = 1000 #no. of bootstrap samples to generate
medians = mat.or.vec(b,1)
lqs = mat.or.vec(b,1)
uqs = mat.or.vec(b,1)
#Choose sample.csv
Data = read.csv(file.choose(),header=FALSE)
X = Data[,1]
rm(Data)
#generate 1000 bootstrap readings
for (i in 1:b) {
sampleboot = sample(X,n... | /Bootstrap.R | no_license | mfer0010/Computational-Statistics | R | false | false | 1,468 | r | rm(list=ls())
n = 100 #size of sample
b = 1000 #no. of bootstrap samples to generate
medians = mat.or.vec(b,1)
lqs = mat.or.vec(b,1)
uqs = mat.or.vec(b,1)
#Choose sample.csv
Data = read.csv(file.choose(),header=FALSE)
X = Data[,1]
rm(Data)
#generate 1000 bootstrap readings
for (i in 1:b) {
sampleboot = sample(X,n... |
##' get the gene symbols of probes for each GPL
##'
##' getIDs need the name of GPL, such as GPL570, and it will return a data.frame
##'
##' @param gpl the name of GPL, such as GPL570
##' @return a data.frame which contains the gene symbols of probes
##' @examples
##' getIDs('gpl570')
##' @export
getIDs <- function(gp... | /R/getIDs.R | no_license | LIN-yichu/idmap1 | R | false | false | 489 | r | ##' get the gene symbols of probes for each GPL
##'
##' getIDs need the name of GPL, such as GPL570, and it will return a data.frame
##'
##' @param gpl the name of GPL, such as GPL570
##' @return a data.frame which contains the gene symbols of probes
##' @examples
##' getIDs('gpl570')
##' @export
getIDs <- function(gp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/1_AllGenerics.R, R/DataGeNET_Psy-ngene.R
\docType{methods}
\name{ngene}
\alias{ngene}
\alias{ngene,DataGeNET.Psy-method}
\title{Getter from \code{DataGeNET.Psy}.}
\usage{
ngene(object)
\S4method{ngene}{DataGeNET.Psy}(object)
}
\arguments{
\i... | /man/ngene.Rd | permissive | aGutierrezSacristan/psygenet2r | R | false | true | 639 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/1_AllGenerics.R, R/DataGeNET_Psy-ngene.R
\docType{methods}
\name{ngene}
\alias{ngene}
\alias{ngene,DataGeNET.Psy-method}
\title{Getter from \code{DataGeNET.Psy}.}
\usage{
ngene(object)
\S4method{ngene}{DataGeNET.Psy}(object)
}
\arguments{
\i... |
#' Get a list of members who have left the Senate or House or have announced
#' plans to do so.
#'
#' @export
#' @template propubkey
#' @param memberid The member's unique ID number (alphanumeric). To find a
#' member's ID number, get the list of members for the appropriate House
#' or Senate. You can also use th... | /R/cg_membervotepositions.R | permissive | jpiaskowski/rtimes | R | false | false | 1,402 | r | #' Get a list of members who have left the Senate or House or have announced
#' plans to do so.
#'
#' @export
#' @template propubkey
#' @param memberid The member's unique ID number (alphanumeric). To find a
#' member's ID number, get the list of members for the appropriate House
#' or Senate. You can also use th... |
RPackages <- Sys.getenv("RPackages")
if(RPackages!=""){
pkgs <- strsplit(RPackages,",")[[1]]
pkgs <- sapply(pkgs,function(i) URLdecode(i))
message("Installing the package: ", paste0(pkgs, sep = ", "))
if (length(pkgs)!=0){
BiocManager::install(pkgs, update = FALSE, upgrade = "never")
... | /inst/worker_image/install-R-deps.R | no_license | cran/RedisBaseContainer | R | false | false | 324 | r | RPackages <- Sys.getenv("RPackages")
if(RPackages!=""){
pkgs <- strsplit(RPackages,",")[[1]]
pkgs <- sapply(pkgs,function(i) URLdecode(i))
message("Installing the package: ", paste0(pkgs, sep = ", "))
if (length(pkgs)!=0){
BiocManager::install(pkgs, update = FALSE, upgrade = "never")
... |
context("wflow_view")
# Setup ------------------------------------------------------------------------
# Setup workflowr project for testing
site_dir <- tempfile("test-wflow_view-")
suppressMessages(wflow_start(site_dir, change_wd = FALSE, user.name = "Test Name",
user.email = "test@email... | /tests/testthat/test-wflow_view.R | permissive | lazappi/workflowr | R | false | false | 8,418 | r | context("wflow_view")
# Setup ------------------------------------------------------------------------
# Setup workflowr project for testing
site_dir <- tempfile("test-wflow_view-")
suppressMessages(wflow_start(site_dir, change_wd = FALSE, user.name = "Test Name",
user.email = "test@email... |
compute.aucs <- function(dattable){
labs <- dattable[,ncol(dattable)]
aucvals <- rep(0,ncol(dattable)-1)
val=levels(labs)
#pos <- rep(val[2],ncol(dattable)-1)
pos<-factor(rep(val[2],ncol(dattable)-1),levels=val)
if(length(val)==2)
{
for (i in 1:(ncol(dattable)-1)){
pred <- predictio... | /fuzzedpackages/Biocomb/R/select.feature.info.R | no_license | akhikolla/testpackages | R | false | false | 12,550 | r | compute.aucs <- function(dattable){
labs <- dattable[,ncol(dattable)]
aucvals <- rep(0,ncol(dattable)-1)
val=levels(labs)
#pos <- rep(val[2],ncol(dattable)-1)
pos<-factor(rep(val[2],ncol(dattable)-1),levels=val)
if(length(val)==2)
{
for (i in 1:(ncol(dattable)-1)){
pred <- predictio... |
"bassAckward" <- function(r,nfactors=1,fm="minres",rotate="oblimin",scores="tenBerge",adjust=TRUE,plot=TRUE,cut=.3,use="pairwise", cor="cor",weight=NULL,correct=.5,...) {
cl <- match.call()
#find r if data matrix
if (!isCorrelation(r)) { matrix.input <- FALSE #return the correlation matrix in this case
... | /R/bassAckward.R | no_license | adamv227/psych | R | false | false | 5,145 | r | "bassAckward" <- function(r,nfactors=1,fm="minres",rotate="oblimin",scores="tenBerge",adjust=TRUE,plot=TRUE,cut=.3,use="pairwise", cor="cor",weight=NULL,correct=.5,...) {
cl <- match.call()
#find r if data matrix
if (!isCorrelation(r)) { matrix.input <- FALSE #return the correlation matrix in this case
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/additionalFunctions.R
\name{plotLipids}
\alias{plotLipids}
\title{Plot informative peaks for lipid annotation}
\usage{
plotLipids(msobject, span = 0.4, ppm = 10, verbose = TRUE)
}
\arguments{
\item{msobject}{annotated msobject.}
\... | /man/plotLipids.Rd | no_license | cran/LipidMS | R | false | true | 1,060 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/additionalFunctions.R
\name{plotLipids}
\alias{plotLipids}
\title{Plot informative peaks for lipid annotation}
\usage{
plotLipids(msobject, span = 0.4, ppm = 10, verbose = TRUE)
}
\arguments{
\item{msobject}{annotated msobject.}
\... |
makeVectorInputCode = function(args, fun) {
fun = checkboxInput
args = formals(fun)
ph = as.list(paste0("{{{",names(args),"}}}"))
names(ph) = names(args)
ph$value=!TRUE
str = as.character(do.call(fun, ph))
str = gsub("{{{","',",str,fixed=TRUE)
str = gsub("}}}",",'",str,fixed=TRUE)
#cat(str)
cod... | /R/widget_table.r | no_license | skranz/SeminarMatching | R | false | false | 2,018 | r |
makeVectorInputCode = function(args, fun) {
fun = checkboxInput
args = formals(fun)
ph = as.list(paste0("{{{",names(args),"}}}"))
names(ph) = names(args)
ph$value=!TRUE
str = as.character(do.call(fun, ph))
str = gsub("{{{","',",str,fixed=TRUE)
str = gsub("}}}",",'",str,fixed=TRUE)
#cat(str)
cod... |
diversity_plot <- function(d,response, explanatory1, explanatory2,
my_ylab="richness (sheldon)",
buffer=0.05){
for_ggplot <- data.frame("resp" = d[,response],
"exp1" = d[,explanatory1],
"exp2" = d[,explanatory2],
... | /R_functions/diversity_plot_best.R | no_license | Freevini/R_functions | R | false | false | 1,341 | r | diversity_plot <- function(d,response, explanatory1, explanatory2,
my_ylab="richness (sheldon)",
buffer=0.05){
for_ggplot <- data.frame("resp" = d[,response],
"exp1" = d[,explanatory1],
"exp2" = d[,explanatory2],
... |
%
% Copyright 2007-2018 by the individuals mentioned in the source code history
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
... | /man/imxWlsStandardErrors.Rd | no_license | Aeroglyphic/OpenMx | R | false | false | 2,413 | rd | %
% Copyright 2007-2018 by the individuals mentioned in the source code history
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
... |
plot_spatial_GO_term <- function(pathway_add, plot_tumor = T, plot_interface = F) {
# this assumes that the Seurat objects for ABC are already loaded, and the expression and pval matrices
if (length(pathway.add) == 1) {
pathway.add <- pathway_add
samples <- c("A1", "B1", "C1")
plots <- NULL
... | /R/plot_spatial_GO_term.R | permissive | mskwhitelab/mvhspatialplots | R | false | false | 5,888 | r | plot_spatial_GO_term <- function(pathway_add, plot_tumor = T, plot_interface = F) {
# this assumes that the Seurat objects for ABC are already loaded, and the expression and pval matrices
if (length(pathway.add) == 1) {
pathway.add <- pathway_add
samples <- c("A1", "B1", "C1")
plots <- NULL
... |
x_low <- seq(-4, qnorm(0.025), by = 0.01)
x_high <- seq(qnorm(0.975), 4, by = 0.01)
pdf(file = '~/Desktop/normal_with_two_tails.pdf', height = 5, width = 10)
source('http://ischool.berkeley.edu/~d.alex.hughes/code/pubPlot.R')
curve(
dnorm,
from = -4, to = 4,
ylab = NA, xlab = NA,
main = 'Normal Distributio... | /unit_06/figures/normal_plots.R | no_license | joseph-ritter/slides | R | false | false | 1,212 | r | x_low <- seq(-4, qnorm(0.025), by = 0.01)
x_high <- seq(qnorm(0.975), 4, by = 0.01)
pdf(file = '~/Desktop/normal_with_two_tails.pdf', height = 5, width = 10)
source('http://ischool.berkeley.edu/~d.alex.hughes/code/pubPlot.R')
curve(
dnorm,
from = -4, to = 4,
ylab = NA, xlab = NA,
main = 'Normal Distributio... |
#Getting and cleaning data course project
library(dplyr)
filename <- "Coursera_DS3_Final.zip"
# Checking if archive already exists.
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileURL, filename)
}
# Chec... | /run_analysis.R | no_license | Aishik251/GettingandCleaningData | R | false | false | 2,432 | r | #Getting and cleaning data course project
library(dplyr)
filename <- "Coursera_DS3_Final.zip"
# Checking if archive already exists.
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileURL, filename)
}
# Chec... |
# Loading R packages
library(reshape)
library(ggplot2)
library(phyloseq)
library(plyr)
library(dplyr)
library(plotly)
library(vegan)
---------------------------------
#Read in bacteria data phyloseq object
ps = readRDS(file = "ps.WB2016")
theme_set(theme_bw())
ps
#Remove mitochondria and chloroplast from ps; ensure t... | /WB2016_Dissimilarity_Publication.R | no_license | WhitmanLab/WoodBuffalo2016 | R | false | false | 20,135 | r | # Loading R packages
library(reshape)
library(ggplot2)
library(phyloseq)
library(plyr)
library(dplyr)
library(plotly)
library(vegan)
---------------------------------
#Read in bacteria data phyloseq object
ps = readRDS(file = "ps.WB2016")
theme_set(theme_bw())
ps
#Remove mitochondria and chloroplast from ps; ensure t... |
testthat::context('Simulation and image sequence')
testthat::test_that("Simulation and image sequence", {
traj <- trackdem::simulTrajec(nframes=30,nIndividuals=20,domain='square',
h=0.01,rho=0.9,staticNoise=TRUE,
movingNoise=TRUE,
sizes=stats::runif(20,0.... | /inst/tests/test_all.R | permissive | thanhkhiet84/trackdem | R | false | false | 10,950 | r |
testthat::context('Simulation and image sequence')
testthat::test_that("Simulation and image sequence", {
traj <- trackdem::simulTrajec(nframes=30,nIndividuals=20,domain='square',
h=0.01,rho=0.9,staticNoise=TRUE,
movingNoise=TRUE,
sizes=stats::runif(20,0.... |
#Graph 2
df <- data.frame(fromJSON(getURL(URLencode('129.152.144.84:5001/rest/native/?query="select * from titanic where sex is not null "'),httpheader=c(DB='jdbc:oracle:thin:@129.152.144.84:1521/PDBF15DV.usuniversi01134.oraclecloud.internal', USER='cs329e_in2422', PASS='orcl_in2422', MODE='native_mode', MODEL='model'... | /02 Visualizations/graph2.R | no_license | ibrahimnagib/Titanic-Analysis-Data-Visualization | R | false | false | 821 | r | #Graph 2
df <- data.frame(fromJSON(getURL(URLencode('129.152.144.84:5001/rest/native/?query="select * from titanic where sex is not null "'),httpheader=c(DB='jdbc:oracle:thin:@129.152.144.84:1521/PDBF15DV.usuniversi01134.oraclecloud.internal', USER='cs329e_in2422', PASS='orcl_in2422', MODE='native_mode', MODEL='model'... |
#' nomordR: Implementation of a Randomization Test for Sequences of Nominal Values
#'
#' The included \code{nomord_probe} function performs
#' a statistical analysis on an input vector (sequence) of nominal (categorical) values.
#' The vector positions and the corresponding nominal values define ordinal-nominal value p... | /R/nomordR.R | no_license | peterszabo77/nomordR | R | false | false | 5,116 | r | #' nomordR: Implementation of a Randomization Test for Sequences of Nominal Values
#'
#' The included \code{nomord_probe} function performs
#' a statistical analysis on an input vector (sequence) of nominal (categorical) values.
#' The vector positions and the corresponding nominal values define ordinal-nominal value p... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/cervix.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=1,family="gaussian",standardize=FALSE)
sink('./cervix_098.txt',append=TRUE)
print... | /Model/EN/AvgRank/cervix/cervix_098.R | no_license | esbgkannan/QSMART | R | false | false | 344 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/cervix.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=1,family="gaussian",standardize=FALSE)
sink('./cervix_098.txt',append=TRUE)
print... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/index_funcs.R
\name{deleteFreeTextIndex}
\alias{deleteFreeTextIndex}
\title{Delete a free-text index}
\usage{
deleteFreeTextIndex(repository, indexName)
}
\arguments{
\item{repository}{Object of type repository specifying server details and r... | /man/deleteFreeTextIndex.Rd | no_license | baasman/allegRo | R | false | true | 683 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/index_funcs.R
\name{deleteFreeTextIndex}
\alias{deleteFreeTextIndex}
\title{Delete a free-text index}
\usage{
deleteFreeTextIndex(repository, indexName)
}
\arguments{
\item{repository}{Object of type repository specifying server details and r... |
h2az = read.table(pipe("grep -v '#' h2azOnly_20bp_2kb_QNORM.rmat|grep -v 'genes'"),sep="\t")
ach2az = read.table(pipe("grep -v '#' ach2azOnly_20bp_2kb_CPM.rmat|grep -v 'genes'"),sep="\t")
#######################################################
h2az_DRB = h2az[,1:200]
h2az_ACTD = h2az[,201:400]
h... | /h2az/extract_data.R | no_license | rtmag/TBlab | R | false | false | 891 | r |
h2az = read.table(pipe("grep -v '#' h2azOnly_20bp_2kb_QNORM.rmat|grep -v 'genes'"),sep="\t")
ach2az = read.table(pipe("grep -v '#' ach2azOnly_20bp_2kb_CPM.rmat|grep -v 'genes'"),sep="\t")
#######################################################
h2az_DRB = h2az[,1:200]
h2az_ACTD = h2az[,201:400]
h... |
# Use the HMD United states mortality data base to plot record life expectancy by year
# data are available here: https://usa.mortality.org/
# download the lifetable zipped file
library(tidyverse)
library(ggrepel)
# get a list of states
states <- list.files("./lifetables/States")
# read in all the state life table... | /us_hmd_example/le_facet.R | no_license | mpejcinovska/states-mortality | R | false | false | 1,724 | r | # Use the HMD United states mortality data base to plot record life expectancy by year
# data are available here: https://usa.mortality.org/
# download the lifetable zipped file
library(tidyverse)
library(ggrepel)
# get a list of states
states <- list.files("./lifetables/States")
# read in all the state life table... |
require(xgboost)
require(methods)
library(data.table)
library(plyr)
library(Hmisc)
library(lattice)
require(gridExtra)
library(fastfurious)
library(parallel)
### FUNCS
getMetaData = function(ensembles_dir,report_fn=NULL,top_perc=NULL,dontTakeInReport=NULL) {
## ensembles_dir
stopifnot(! is.null(ensembles_dir... | /competitions/caterpillar-tube-pricing/Redo_Task_TunerEnsembler_1_v4.R | permissive | fxcebx/fast-furious | R | false | false | 49,333 | r | require(xgboost)
require(methods)
library(data.table)
library(plyr)
library(Hmisc)
library(lattice)
require(gridExtra)
library(fastfurious)
library(parallel)
### FUNCS
getMetaData = function(ensembles_dir,report_fn=NULL,top_perc=NULL,dontTakeInReport=NULL) {
## ensembles_dir
stopifnot(! is.null(ensembles_dir... |
source("../Funcs/urban_detect_correct.R")
source("../Funcs/eval_func.R")
source("./est_data_load.R")
library(doParallel)
registerDoParallel(cores = 50)
#FVEs <- c(46:99, 99.5, 99.9)
FVEs <- c(26:45)
## estimation using functional methods
if (FALSE) {
res <- readRDS("./Estimate_P2_All_FVEs.rds")
for (f in FVEs) {
cat... | /RealData/est_compare.R | no_license | chxyself25/Change-pointDetection | R | false | false | 2,502 | r | source("../Funcs/urban_detect_correct.R")
source("../Funcs/eval_func.R")
source("./est_data_load.R")
library(doParallel)
registerDoParallel(cores = 50)
#FVEs <- c(46:99, 99.5, 99.9)
FVEs <- c(26:45)
## estimation using functional methods
if (FALSE) {
res <- readRDS("./Estimate_P2_All_FVEs.rds")
for (f in FVEs) {
cat... |
context("wbt_sinh")
test_that("Returns the hyperbolic sine (sinh) of each values in a raster", {
skip_on_cran()
skip_if_not(check_whitebox_binary())
dem <- system.file("extdata", "DEM.tif", package = "whitebox")
ret <- wbt_sinh(input = dem, output = "output.tif")
expect_match(ret, "Elapsed Time")
})
| /tests/testthat/test-wbt_sinh.R | permissive | dondealban/whiteboxR | R | false | false | 314 | r | context("wbt_sinh")
test_that("Returns the hyperbolic sine (sinh) of each values in a raster", {
skip_on_cran()
skip_if_not(check_whitebox_binary())
dem <- system.file("extdata", "DEM.tif", package = "whitebox")
ret <- wbt_sinh(input = dem, output = "output.tif")
expect_match(ret, "Elapsed Time")
})
|
library(caret)
library(MASS)
head(cats)
#Q1 : scatterplot of heart weight vs. body weight
plot(cats$Bwt, cats$Hwt, xlab = 'Body weight', ylab = 'Heart weight', main = "Scatterplot of Cats Dataset")
# The plot does seem to increase linearly to me, so I do think it would be good
#Q2: Regress heart onto body weight
mo... | /ML_in_R/simple_lin_reg.R | no_license | skickham/MachineLearning_practice | R | false | false | 5,330 | r | library(caret)
library(MASS)
head(cats)
#Q1 : scatterplot of heart weight vs. body weight
plot(cats$Bwt, cats$Hwt, xlab = 'Body weight', ylab = 'Heart weight', main = "Scatterplot of Cats Dataset")
# The plot does seem to increase linearly to me, so I do think it would be good
#Q2: Regress heart onto body weight
mo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{neptune}
\alias{neptune}
\title{Amazon Neptune}
\usage{
neptune(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.}
}
\value{
A client for the service. You can call the se... | /cran/paws/man/neptune.Rd | permissive | williazo/paws | R | false | true | 11,219 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{neptune}
\alias{neptune}
\title{Amazon Neptune}
\usage{
neptune(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.}
}
\value{
A client for the service. You can call the se... |
###########################################
# Alana's modification of #
#"Foliar Rehydration Kinetics" script #
# #
# Fit nonlinear #
# models to foliar rehydration data #
# and calculate instantaneous resistance #
# ... | /scripts/paper 2/sese sigmoidal curves.R | no_license | alanaroseo/fogdata | R | false | false | 26,889 | r | ###########################################
# Alana's modification of #
#"Foliar Rehydration Kinetics" script #
# #
# Fit nonlinear #
# models to foliar rehydration data #
# and calculate instantaneous resistance #
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{combine_simVBIA}
\alias{combine_simVBIA}
\title{Combine simulation results}
\usage{
combine_simVBIA(...)
}
\arguments{
\item{...}{any number of simulation results from \code{simVBIA} with \code{fulldata} set to \code{TRUE}}
... | /man/combine_simVBIA.Rd | permissive | floatofmath/blindConfidence | R | false | true | 445 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{combine_simVBIA}
\alias{combine_simVBIA}
\title{Combine simulation results}
\usage{
combine_simVBIA(...)
}
\arguments{
\item{...}{any number of simulation results from \code{simVBIA} with \code{fulldata} set to \code{TRUE}}
... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{linear_stretch}
\alias{linear_stretch}
\title{Apply a linear stretch to an image}
\usage{
linear_stretch(x, pct = 2, max_val = 1)
}
\arguments{
\item{x}{image to stretch}
\item{pct}{percent stretch}
\item{max_val}{maximum value of final output (image will be ... | /man/linear_stretch.Rd | no_license | landsat/teamlucc | R | false | false | 634 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{linear_stretch}
\alias{linear_stretch}
\title{Apply a linear stretch to an image}
\usage{
linear_stretch(x, pct = 2, max_val = 1)
}
\arguments{
\item{x}{image to stretch}
\item{pct}{percent stretch}
\item{max_val}{maximum value of final output (image will be ... |
LineChart <-
function(x, data=d, filter=NULL,
n_cat=getOption("n_cat"), type=NULL,
line_color=getOption("pt_color"), area=NULL,
shape_pts=21, lab_cex=1.0, axis_cex=0.75,
axis_text_color=getOption("axis_x_text_color"),
rotate_x=0, rotate_y=0, offset=.5,
xy_tick... | /R/LineChart.R | no_license | jflournoy/lessR | R | false | false | 7,345 | r | LineChart <-
function(x, data=d, filter=NULL,
n_cat=getOption("n_cat"), type=NULL,
line_color=getOption("pt_color"), area=NULL,
shape_pts=21, lab_cex=1.0, axis_cex=0.75,
axis_text_color=getOption("axis_x_text_color"),
rotate_x=0, rotate_y=0, offset=.5,
xy_tick... |
library(ggplot2)
#For final results, see Final_Stuff file
#Code for plotting a basketball court. Call final result with halfP (long - do not open)
# Need a function to draw circle
circle_fun <- function(center=c(0,0), diameter=1, npoints=500, start=0, end=2){
tt <- seq(start*pi, end*pi, length.out=npoints)
da... | /Court1.R | no_license | matdac12/Senior-Synthesis | R | false | false | 18,340 | r | library(ggplot2)
#For final results, see Final_Stuff file
#Code for plotting a basketball court. Call final result with halfP (long - do not open)
# Need a function to draw circle
circle_fun <- function(center=c(0,0), diameter=1, npoints=500, start=0, end=2){
tt <- seq(start*pi, end*pi, length.out=npoints)
da... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 8348
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8336
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8336
c
c Input Parameter (command line, fil... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/MayerEichberger-Saffidine/PositionalGames_gttt/ttt_5x5-shape-4-GTTT-1-2-torus-0/ttt_5x5-shape-4-GTTT-1-2-torus-0.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 864 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 8348
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8336
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8336
c
c Input Parameter (command line, fil... |
library(shiny)
library(ggplot2)
shinyServer(function(input, output) {
which_dist <- reactive({
if (input$in_which_dist == "Lognormal") {
dist <- "Lognormal"
}
if (input$in_which_dist == "Gamma") {
dist <- "Gamma"
}
dist
})
lstParams <- reactive({
if (which_dist() == "Lognorm... | /server.R | no_license | PirateGrunt/momentus_app | R | false | false | 1,653 | r | library(shiny)
library(ggplot2)
shinyServer(function(input, output) {
which_dist <- reactive({
if (input$in_which_dist == "Lognormal") {
dist <- "Lognormal"
}
if (input$in_which_dist == "Gamma") {
dist <- "Gamma"
}
dist
})
lstParams <- reactive({
if (which_dist() == "Lognorm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/majutils.R
\name{list_to_df}
\alias{list_to_df}
\title{List to data frame (actually tibble). Uses length of
first vector to define number of rows. Uses the names
of the vectors as the column names of the data.frame.}
\usage{
list_to_d... | /man/list_to_df.Rd | no_license | t-student/majutils | R | false | true | 621 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/majutils.R
\name{list_to_df}
\alias{list_to_df}
\title{List to data frame (actually tibble). Uses length of
first vector to define number of rows. Uses the names
of the vectors as the column names of the data.frame.}
\usage{
list_to_d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper-functions.R
\name{check_unique_parent}
\alias{check_unique_parent}
\title{check if every node has a single parent (tree vs graph)}
\usage{
check_unique_parent(clusterdata)
}
\arguments{
\item{clusterdata}{Dataframe containing cluster i... | /man/check_unique_parent.Rd | no_license | kzintas/TreeSE | R | false | true | 507 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper-functions.R
\name{check_unique_parent}
\alias{check_unique_parent}
\title{check if every node has a single parent (tree vs graph)}
\usage{
check_unique_parent(clusterdata)
}
\arguments{
\item{clusterdata}{Dataframe containing cluster i... |
#Deprivation Divides - the places where some of Britain's most deprived neighbourhoods border some of the least deprived.
library(tidyverse)
library(rgdal)
library(spdplyr)
library(leaflet)
library(RColorBrewer)
#download IMD shapefile here: http://data-communities.opendata.arcgis.com/datasets/indices-of-multip... | /imd_divides.r | no_license | michaelgoodier/IMD-2019 | R | false | false | 3,176 | r | #Deprivation Divides - the places where some of Britain's most deprived neighbourhoods border some of the least deprived.
library(tidyverse)
library(rgdal)
library(spdplyr)
library(leaflet)
library(RColorBrewer)
#download IMD shapefile here: http://data-communities.opendata.arcgis.com/datasets/indices-of-multip... |
#Atlas_i3_SpeciesYearByGearMonth.R
#Tuna Atlas - IRD / MR EME
#
#This indicator build a graph of catches of a given species for a given year by gear type and by month. Provide comparaison with monthly mean of the 5 previous years. An associated RDF file is also produced.
################################################... | /R/Atlas_i3_SpeciesYearByGearMonth.R | no_license | juldebar/IRDTunaAtlas | R | false | false | 9,669 | r | #Atlas_i3_SpeciesYearByGearMonth.R
#Tuna Atlas - IRD / MR EME
#
#This indicator build a graph of catches of a given species for a given year by gear type and by month. Provide comparaison with monthly mean of the 5 previous years. An associated RDF file is also produced.
################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{createHeader}
\alias{createHeader}
\title{Makes header for R script}
\usage{
createHeader(
title = "MicrobiomeExplorer Report",
author = "",
date = "",
data.source = "",
output = getOption("me.reportformat"),
toc... | /man/createHeader.Rd | permissive | saracg-forks/microbiomeExplorer | R | false | true | 894 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{createHeader}
\alias{createHeader}
\title{Makes header for R script}
\usage{
createHeader(
title = "MicrobiomeExplorer Report",
author = "",
date = "",
data.source = "",
output = getOption("me.reportformat"),
toc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimators_forecastors.R
\name{tbats_estimator}
\alias{tbats_estimator}
\title{tbats estimator}
\usage{
tbats_estimator(train_sample, predicted, options, predictors = "")
}
\arguments{
\item{train_sample}{tsibble with train sample}
\item{pre... | /man/tbats_estimator.Rd | permissive | kassandra-ru/kassandr | R | false | true | 824 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimators_forecastors.R
\name{tbats_estimator}
\alias{tbats_estimator}
\title{tbats estimator}
\usage{
tbats_estimator(train_sample, predicted, options, predictors = "")
}
\arguments{
\item{train_sample}{tsibble with train sample}
\item{pre... |
library(tscount)
### Name: interv_detect.tsglm
### Title: Detecting an Intervention in Count Time Series Following
### Generalised Linear Models
### Aliases: interv_detect.tsglm interv_detect
### Keywords: Intervention detection
### ** Examples
###Campylobacter infections in Canada (see help("campy"))
#Searching ... | /data/genthat_extracted_code/tscount/examples/interv_detect.tsglm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,024 | r | library(tscount)
### Name: interv_detect.tsglm
### Title: Detecting an Intervention in Count Time Series Following
### Generalised Linear Models
### Aliases: interv_detect.tsglm interv_detect
### Keywords: Intervention detection
### ** Examples
###Campylobacter infections in Canada (see help("campy"))
#Searching ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/content_objects.R
\name{OrderLineItemReturnInfo}
\alias{OrderLineItemReturnInfo}
\title{OrderLineItemReturnInfo Object}
\usage{
OrderLineItemReturnInfo(daysToReturn = NULL, isReturnable = NULL,
policyUrl = NULL)
}
\arguments{
\item{daysToRe... | /googlecontentv2sandbox.auto/man/OrderLineItemReturnInfo.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 659 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/content_objects.R
\name{OrderLineItemReturnInfo}
\alias{OrderLineItemReturnInfo}
\title{OrderLineItemReturnInfo Object}
\usage{
OrderLineItemReturnInfo(daysToReturn = NULL, isReturnable = NULL,
policyUrl = NULL)
}
\arguments{
\item{daysToRe... |
#Script to read and plot stressor values
#reading in an excel file
dose<<-read_xlsx(file.name.2,sheet=scn.run[1])
dose
#Plot
#Select the stressors and HUCs to plot
# stressor.select<-unique(dose$Stressor)
# huc.select<-unique(dose$HUC_ID)
# dose.huc<-dose[dose$HUC_ID%in%huc.select&dose$Stressor%in%stressor.select,]
... | /Joe_stress.R | no_license | andrewpaul68/Shiny_Joe_Models | R | false | false | 353 | r | #Script to read and plot stressor values
#reading in an excel file
dose<<-read_xlsx(file.name.2,sheet=scn.run[1])
dose
#Plot
#Select the stressors and HUCs to plot
# stressor.select<-unique(dose$Stressor)
# huc.select<-unique(dose$HUC_ID)
# dose.huc<-dose[dose$HUC_ID%in%huc.select&dose$Stressor%in%stressor.select,]
... |
#setwd('~/wdl-fies');library(ProjectTemplate);load.project()
cty <- ne_countries(returnclass = 'sf') %>%
select(ISO3=iso_a3, region=region_wb) %>%
filter(region != 'Antarctica')
plt <- ggplot(cty) +
geom_sf(aes(fill=region)) +
coord_sf(crs='+proj=robin') +
theme_void() +
theme(legend.position = 'bottom... | /viz/map_regions.R | no_license | mcooper/wdl-fies | R | false | false | 920 | r | #setwd('~/wdl-fies');library(ProjectTemplate);load.project()
cty <- ne_countries(returnclass = 'sf') %>%
select(ISO3=iso_a3, region=region_wb) %>%
filter(region != 'Antarctica')
plt <- ggplot(cty) +
geom_sf(aes(fill=region)) +
coord_sf(crs='+proj=robin') +
theme_void() +
theme(legend.position = 'bottom... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GetComps.R
\name{GetComps}
\alias{GetComps}
\title{Get the results for comparable recent property sales for a given property}
\usage{
GetComps(zpid, count = 10, rentzestimate = FALSE, api_key,
raw = FALSE)
}
\arguments{
\item{zpid}{The Zill... | /man/GetComps.Rd | no_license | stharms/realEstAnalytics.r | R | false | true | 1,306 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GetComps.R
\name{GetComps}
\alias{GetComps}
\title{Get the results for comparable recent property sales for a given property}
\usage{
GetComps(zpid, count = 10, rentzestimate = FALSE, api_key,
raw = FALSE)
}
\arguments{
\item{zpid}{The Zill... |
####################################
# Download and import database
####################################
## Households with grants
households_with_grants_load_dataset <- function(year){
url <- paste0("https://users.dcc.uchile.cl/~mvargas/nesi/nesi_", year, "/households/nesi_households_with_grants_", year, "_R.zip")... | /nesi/labour_situation/1_functions/3_load_data.R | no_license | jnaudon/datachile-etl | R | false | false | 5,354 | r | ####################################
# Download and import database
####################################
## Households with grants
households_with_grants_load_dataset <- function(year){
url <- paste0("https://users.dcc.uchile.cl/~mvargas/nesi/nesi_", year, "/households/nesi_households_with_grants_", year, "_R.zip")... |
## Exercise 6.8.10
## Purva Redkar
## Summer 2018
# Wage data set contains a number of other features not exploredin this chapter, such as
# marital status (maritl), job class (jobclass),and others
# .Explore the relationships between some of these otherpredictors andwage,
# and use non-linear fitting techn... | /vi.r | no_license | PURVA-REDKAR/R--islr-exercises | R | false | false | 2,760 | r | ## Exercise 6.8.10
## Purva Redkar
## Summer 2018
# Wage data set contains a number of other features not exploredin this chapter, such as
# marital status (maritl), job class (jobclass),and others
# .Explore the relationships between some of these otherpredictors andwage,
# and use non-linear fitting techn... |
context("test_update_each_effect.R")
test_that("update_each_effect agrees with version 0.3", with(simulate(sparse=T), {
original.res = readRDS('vbupdate_original_res.rds')
original.res$Xr = as.vector(original.res$Xr)
scaledX = set_X_attributes(X)
scaledX.sparse = set_X_attributes(X.sparse)
dense.res = updat... | /tests/testthat/test_update_each_effect.R | permissive | unagpal/susieR | R | false | false | 513 | r | context("test_update_each_effect.R")
test_that("update_each_effect agrees with version 0.3", with(simulate(sparse=T), {
original.res = readRDS('vbupdate_original_res.rds')
original.res$Xr = as.vector(original.res$Xr)
scaledX = set_X_attributes(X)
scaledX.sparse = set_X_attributes(X.sparse)
dense.res = updat... |
flimSD <-
function(fbo, response, grouping=NULL) {
samples <- fbo$samples
bml <- lapply(samples, flimMean, response = response,
grouping = grouping)
bmm <- do.call("cbind", bml)
if(is.null(grouping)) {
bmmh <- bmm[, seq(1, dim(bmm)[2]-1, 2)]
stds <- apply(bmmh, 1, sd)
stds
} else {... | /FLIM/R/flimSD.R | no_license | ingted/R-Examples | R | false | false | 796 | r | flimSD <-
function(fbo, response, grouping=NULL) {
samples <- fbo$samples
bml <- lapply(samples, flimMean, response = response,
grouping = grouping)
bmm <- do.call("cbind", bml)
if(is.null(grouping)) {
bmmh <- bmm[, seq(1, dim(bmm)[2]-1, 2)]
stds <- apply(bmmh, 1, sd)
stds
} else {... |
library(ggplot2)
g=ggplot(data=mtcars2, aes(x=tran.type, y=mpg, fill=tran.type))+
# facet_wrap(~cyl)+
geom_boxplot() +
facet_grid(.~cyl, labeller=function(x){list(paste("Cylinders:",x$cyl))})+
# facet_grid(.~cyl, labeller = label_both)+
labs(title="Figure 1: Miles Per Gallon\nby Nu... | /mpgbycyl.R | no_license | kevinmcmanus/CarsProject2 | R | false | false | 527 | r | library(ggplot2)
g=ggplot(data=mtcars2, aes(x=tran.type, y=mpg, fill=tran.type))+
# facet_wrap(~cyl)+
geom_boxplot() +
facet_grid(.~cyl, labeller=function(x){list(paste("Cylinders:",x$cyl))})+
# facet_grid(.~cyl, labeller = label_both)+
labs(title="Figure 1: Miles Per Gallon\nby Nu... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/population_dynamics.R
\name{popchar}
\alias{popchar}
\title{popchar}
\usage{
popchar(species_list, fields = NULL, limit = 100, server = SERVER)
}
\arguments{
\item{species_list}{A vector of scientific names (each element as "genus spe... | /man/popchar.Rd | no_license | wsenanan/rfishbase | R | false | false | 1,485 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/population_dynamics.R
\name{popchar}
\alias{popchar}
\title{popchar}
\usage{
popchar(species_list, fields = NULL, limit = 100, server = SERVER)
}
\arguments{
\item{species_list}{A vector of scientific names (each element as "genus spe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.