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 |
|---|---|---|---|---|---|---|---|---|---|
library(dplyr)
setwd('D://Documents and Settings/mcooper/GitHub/vs-indicators-calc/Degradation/')
pg_conf <- read.csv('../rds_settings', stringsAsFactors=FALSE)
vs_db <- src_postgres(dbname='vitalsigns', host=pg_conf$host,
user=pg_conf$user, password=pg_conf$pass,
port=pg_... | /Degradation/Erosion_Control.R | no_license | austindrichards/vs-indicators-calc | R | false | false | 1,981 | r | library(dplyr)
setwd('D://Documents and Settings/mcooper/GitHub/vs-indicators-calc/Degradation/')
pg_conf <- read.csv('../rds_settings', stringsAsFactors=FALSE)
vs_db <- src_postgres(dbname='vitalsigns', host=pg_conf$host,
user=pg_conf$user, password=pg_conf$pass,
port=pg_... |
##
# Test: binop2 | opeartor
# Description: Check the '|' binop2 operator on frames
# Variations: e1 | e2
# e1 & e2 H2OParsedData
# e1 Numeric & e2 H2OParsedData
# e1 H2OParsedData & e2 Numeric
##
source('./findNSourceUtils.R')
setupRandomSeed(339601269)
doSelect<-
function() {
d <- select()
dd <- d... | /R/tests/testdir_munging/testdir_binop/runit_binop2_pipeFrame.R | permissive | jmcclell/h2o | R | false | false | 1,712 | r | ##
# Test: binop2 | opeartor
# Description: Check the '|' binop2 operator on frames
# Variations: e1 | e2
# e1 & e2 H2OParsedData
# e1 Numeric & e2 H2OParsedData
# e1 H2OParsedData & e2 Numeric
##
source('./findNSourceUtils.R')
setupRandomSeed(339601269)
doSelect<-
function() {
d <- select()
dd <- d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RCyjs-class.R
\docType{methods}
\name{setNodeShape,RCyjs-method}
\alias{setNodeShape,RCyjs-method}
\alias{setNodeShape}
\title{setNodeShape}
\usage{
\S4method{setNodeShape}{RCyjs}(obj, nodeIDs, newValues)
}
\arguments{
\item{obj}{an RCyjs ins... | /man/setNodeShape.Rd | permissive | fengweijp/RCyjs | R | false | true | 726 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RCyjs-class.R
\docType{methods}
\name{setNodeShape,RCyjs-method}
\alias{setNodeShape,RCyjs-method}
\alias{setNodeShape}
\title{setNodeShape}
\usage{
\S4method{setNodeShape}{RCyjs}(obj, nodeIDs, newValues)
}
\arguments{
\item{obj}{an RCyjs ins... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FitUtil.R
\name{writeToJSON}
\alias{writeToJSON}
\title{Write to JSON}
\usage{
writeToJSON(content, path, type, activity, start.date)
}
\arguments{
\item{content}{JSON content to be written to file}
\item{path}{Path to folder wher... | /man/writeToJSON.Rd | no_license | cran/fitcoach | R | false | true | 593 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FitUtil.R
\name{writeToJSON}
\alias{writeToJSON}
\title{Write to JSON}
\usage{
writeToJSON(content, path, type, activity, start.date)
}
\arguments{
\item{content}{JSON content to be written to file}
\item{path}{Path to folder wher... |
#'@useDynLib knapsack, .registration = TRUE
#'@importFrom Rcpp sourceCpp | /knapsack/R/lab6package.R | permissive | dvinodkumar1996/Assignment6 | R | false | false | 72 | r | #'@useDynLib knapsack, .registration = TRUE
#'@importFrom Rcpp sourceCpp |
###################################################
### How to Read this Book?
###################################################
R.version
###################################################
### Starting with R
###################################################
install.packages('DMwR')
installed.packages()
lib... | /Data mining with R/chapter1.R | no_license | maohuaxie/Data-analysis-project | R | false | false | 6,515 | r | ###################################################
### How to Read this Book?
###################################################
R.version
###################################################
### Starting with R
###################################################
install.packages('DMwR')
installed.packages()
lib... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{getWithDefault}
\alias{getWithDefault}
\title{Return x unless NULL, NA, length 0, ..., in which case we give default}
\usage{
getWithDefault(x, default)
}
\arguments{
\item{x}{value to return or its default}
\item{default}{default value}
}
\value{
x or default... | /man/getWithDefault.Rd | no_license | kghub/gWidgets2 | R | false | false | 411 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{getWithDefault}
\alias{getWithDefault}
\title{Return x unless NULL, NA, length 0, ..., in which case we give default}
\usage{
getWithDefault(x, default)
}
\arguments{
\item{x}{value to return or its default}
\item{default}{default value}
}
\value{
x or default... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_cutoff.R
\name{make.cutoff.plotly}
\alias{make.cutoff.plotly}
\title{Create plotly object for number of DE genes at different cutoff combinations}
\usage{
make.cutoff.plotly(df)
}
\arguments{
\item{df}{Summary statistics table f... | /man/make.cutoff.plotly.Rd | no_license | THERMOSTATS/RVA | R | false | true | 665 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_cutoff.R
\name{make.cutoff.plotly}
\alias{make.cutoff.plotly}
\title{Create plotly object for number of DE genes at different cutoff combinations}
\usage{
make.cutoff.plotly(df)
}
\arguments{
\item{df}{Summary statistics table f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generic.helper.fun.R
\name{pval}
\alias{pval}
\title{Calculate p values}
\usage{
pval(x)
}
\arguments{
\item{x}{The data.frame of quantiles}
}
\description{
\code{pval} calculates one-tailed p values from a data.frame that contains
quantil... | /man/pval.Rd | no_license | carlopacioni/HexSimR | R | false | true | 372 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generic.helper.fun.R
\name{pval}
\alias{pval}
\title{Calculate p values}
\usage{
pval(x)
}
\arguments{
\item{x}{The data.frame of quantiles}
}
\description{
\code{pval} calculates one-tailed p values from a data.frame that contains
quantil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_interface.R
\name{spark_write_json}
\alias{spark_write_json}
\title{Write a Spark DataFrame to a JSON file}
\usage{
spark_write_json(x, path, mode = NULL, options = list(),
partition_by = NULL, ...)
}
\arguments{
\item{x}{A Spark DataF... | /man/spark_write_json.Rd | permissive | shabbybanks/sparklyr | R | false | true | 1,873 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_interface.R
\name{spark_write_json}
\alias{spark_write_json}
\title{Write a Spark DataFrame to a JSON file}
\usage{
spark_write_json(x, path, mode = NULL, options = list(),
partition_by = NULL, ...)
}
\arguments{
\item{x}{A Spark DataF... |
library(shiny)
library(ggplot2)
datasets <- data(package = "ggplot2")$results[c(2, 4, 10), "Item"]
ui <- fluidPage(
selectInput("dataset", "Dataset", choices = datasets),
verbatimTextOutput("summary"),
plotOutput("plot")
)
server <- function(input, output, session) {
dataset <- reactive({
ge... | /basic_app_5/app.R | no_license | Vickusr/mastering_shiny | R | false | false | 592 | r | library(shiny)
library(ggplot2)
datasets <- data(package = "ggplot2")$results[c(2, 4, 10), "Item"]
ui <- fluidPage(
selectInput("dataset", "Dataset", choices = datasets),
verbatimTextOutput("summary"),
plotOutput("plot")
)
server <- function(input, output, session) {
dataset <- reactive({
ge... |
context("Entropy Calculation")
library("RcppTN")
test_that("Analytic \approx Simulation",
{
lows <- c(-1, 5, -100, 4, 4, -100, 7)
highs <- c(1, 100, 10, 7, 4.1, 100, 100)
T <- 100000
for(case in 1:length(lows)) {
out1 <- enttn(.mean = 0,
... | /fuzzedpackages/RcppTN/tests/testthat/test-Entropy.R | no_license | akhikolla/testpackages | R | false | false | 1,775 | r | context("Entropy Calculation")
library("RcppTN")
test_that("Analytic \approx Simulation",
{
lows <- c(-1, 5, -100, 4, 4, -100, 7)
highs <- c(1, 100, 10, 7, 4.1, 100, 100)
T <- 100000
for(case in 1:length(lows)) {
out1 <- enttn(.mean = 0,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/altools_time.R
\name{at_time_excel_number}
\alias{at_time_excel_number}
\title{Converts an excel numeric representation of a date to YY-mm-dd.}
\usage{
at_time_excel_number(date)
}
\arguments{
\item{date}{Date to convert from number to posix}... | /man/at_time_excel_number.Rd | no_license | NewGraphEnvironment/altools | R | false | true | 619 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/altools_time.R
\name{at_time_excel_number}
\alias{at_time_excel_number}
\title{Converts an excel numeric representation of a date to YY-mm-dd.}
\usage{
at_time_excel_number(date)
}
\arguments{
\item{date}{Date to convert from number to posix}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prl_fictitious.R
\name{prl_fictitious}
\alias{prl_fictitious}
\title{Probabilistic Reversal Learning Task}
\usage{
prl_fictitious(data = "choose", niter = 3000, nwarmup = 1000,
nchain = 4, ncore = 1, nthin = 1, inits = "random",
indPars =... | /man/prl_fictitious.Rd | no_license | bgoodri/hBayesDM | R | false | true | 7,596 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prl_fictitious.R
\name{prl_fictitious}
\alias{prl_fictitious}
\title{Probabilistic Reversal Learning Task}
\usage{
prl_fictitious(data = "choose", niter = 3000, nwarmup = 1000,
nchain = 4, ncore = 1, nthin = 1, inits = "random",
indPars =... |
#step 1 Merges the training and the test sets to create one data set.
#step 2 Extracts only the measurements on the mean and standard deviation for each measurement.
#step 3 Uses descriptive activity names to name the activities in the data set
#step 4 Appropriately labels the data set with descriptive variable na... | /run_analysis.R | no_license | PJgithub11/Getting-and-cleaning-data | R | false | false | 3,049 | r |
#step 1 Merges the training and the test sets to create one data set.
#step 2 Extracts only the measurements on the mean and standard deviation for each measurement.
#step 3 Uses descriptive activity names to name the activities in the data set
#step 4 Appropriately labels the data set with descriptive variable na... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/AmGraph.R
\docType{methods}
\name{setBalloonText}
\alias{setBalloonText}
\title{Setter}
\usage{
\S4method{setBalloonText}{AmGraph,character}(.Object, balloonText)
}
\description{
Setter
}
\examples{
library(pipeR)
amGraph() \%>>\% set... | /man/setBalloonText.Rd | no_license | myndworkz/rAmCharts | R | false | false | 350 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/AmGraph.R
\docType{methods}
\name{setBalloonText}
\alias{setBalloonText}
\title{Setter}
\usage{
\S4method{setBalloonText}{AmGraph,character}(.Object, balloonText)
}
\description{
Setter
}
\examples{
library(pipeR)
amGraph() \%>>\% set... |
#
# Copyright (C) 2017 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is dis... | /R/mlfuzzycmeans.R | no_license | vandenman/JASP-Machine-Learning | R | false | false | 18,527 | r | #
# Copyright (C) 2017 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is dis... |
#setup dir
setwd("~/Desktop/R/Tidy_Data")
#supress the scientitifc notation
options(scipen=100)
#Read in variable names & assign them as the column names
features=read.table('UCI HAR Dataset/features.txt', sep=" ")
#Read in data
X_train=read.table('UCI HAR Dataset/train/X_train.txt', header=FALSE, col.names=featur... | /run_Analysis.R | no_license | JUFAHUANG/Getting-and-Cleaning-Data-Project-2 | R | false | false | 2,210 | r | #setup dir
setwd("~/Desktop/R/Tidy_Data")
#supress the scientitifc notation
options(scipen=100)
#Read in variable names & assign them as the column names
features=read.table('UCI HAR Dataset/features.txt', sep=" ")
#Read in data
X_train=read.table('UCI HAR Dataset/train/X_train.txt', header=FALSE, col.names=featur... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class_methods.R
\name{tabr-c}
\alias{tabr-c}
\alias{c.noteworthy}
\alias{c.noteinfo}
\alias{c.music}
\alias{c.lyrics}
\alias{c.phrase}
\title{Concatenate for tabr classes}
\usage{
\method{c}{noteworthy}(...)
\method{c}{noteinfo}(...)
\metho... | /man/tabr-c.Rd | permissive | padilla410/tabr | R | false | true | 958 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class_methods.R
\name{tabr-c}
\alias{tabr-c}
\alias{c.noteworthy}
\alias{c.noteinfo}
\alias{c.music}
\alias{c.lyrics}
\alias{c.phrase}
\title{Concatenate for tabr classes}
\usage{
\method{c}{noteworthy}(...)
\method{c}{noteinfo}(...)
\metho... |
# grep(), returns index of matching entries
grep("pol", c("Äquator", "Nordpol", "Südpol")) # [1] 2 3
grep("Pol", c("Äquator", "Nordpol", "Südpol")) # integer(0)
# nchar(), length of string
nchar("Äquator") # [1] 7 , no NULL pointer
nchar(NA) # NA
# paste(), concatenates several strings
paste("Nord", "pol") # [1] "No... | /string.R | no_license | olk/examples_R | R | false | false | 1,801 | r | # grep(), returns index of matching entries
grep("pol", c("Äquator", "Nordpol", "Südpol")) # [1] 2 3
grep("Pol", c("Äquator", "Nordpol", "Südpol")) # integer(0)
# nchar(), length of string
nchar("Äquator") # [1] 7 , no NULL pointer
nchar(NA) # NA
# paste(), concatenates several strings
paste("Nord", "pol") # [1] "No... |
## Put comments here that give an overall description of what your
## functions do
## The following function produces a list of functions which could:
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the inverse of the matrix
## 4. get the inverse of the matrix
makeCacheMatrix <- function... | /cachematrix.R | no_license | Hsin-Rui/ProgrammingAssignment2 | R | false | false | 1,747 | r | ## Put comments here that give an overall description of what your
## functions do
## The following function produces a list of functions which could:
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the inverse of the matrix
## 4. get the inverse of the matrix
makeCacheMatrix <- function... |
#' UI for Trend Environment Analysis for HIDAP-AgroFIMS
#' Returns user friendly ui
#' @author Omar Benites
#' @param type type of UI element, deault is a tab in a shinydashboard
#' @param title diaply title name
#' @param name UI TabName
#' @export
#'
trend_hdagrofims_ui <- function(type = "tab", title = "Trend Analy... | /R/ui_trend_hdagrofims.R | permissive | AGROFIMS/aganalysis | R | false | false | 11,702 | r | #' UI for Trend Environment Analysis for HIDAP-AgroFIMS
#' Returns user friendly ui
#' @author Omar Benites
#' @param type type of UI element, deault is a tab in a shinydashboard
#' @param title diaply title name
#' @param name UI TabName
#' @export
#'
trend_hdagrofims_ui <- function(type = "tab", title = "Trend Analy... |
# ui.R
library(shiny)
shinyUI(fluidPage(
theme = "bootstrap.css",
titlePanel(h1("Word Search")),
hr(),
fluidRow(
column(6, offset=3,
tabsetPanel(type = "tabs",
tabPanel("Classic",
textInput("phrase", label = "", va... | /ui.R | no_license | tingneea/m10_final_project | R | false | false | 3,054 | r | # ui.R
library(shiny)
shinyUI(fluidPage(
theme = "bootstrap.css",
titlePanel(h1("Word Search")),
hr(),
fluidRow(
column(6, offset=3,
tabsetPanel(type = "tabs",
tabPanel("Classic",
textInput("phrase", label = "", va... |
#######
##script to save to Excel lots of CVS in a folder
#######
require(xlsx)
##Set working drectory
setwd("C:\Dropbox\data\AC\AC_SAM\data\m")
##Something like this to read all the cvs files
##Another example of use: list.files("C:/temp",full=TRUE)
csv_files = list.files(pattern="*.csv$") #List of the files
data <- ... | /r/arrangeTables/stackCVStoXLSX.R | no_license | Lorenagzp/Scripts | R | false | false | 851 | r | #######
##script to save to Excel lots of CVS in a folder
#######
require(xlsx)
##Set working drectory
setwd("C:\Dropbox\data\AC\AC_SAM\data\m")
##Something like this to read all the cvs files
##Another example of use: list.files("C:/temp",full=TRUE)
csv_files = list.files(pattern="*.csv$") #List of the files
data <- ... |
#setwd("~/Documents/2018FALL_Class/R/Math")
#A function to compare whether two matrices in r are identical.
compare_two_matrices <- function(x, y)
is.matrix(x) && is.matrix(y) && dim(x) == dim(y) && all(x == y)
# Solution to problem 3.
# To test whether the inverse traspositional matrix is identical
# to the transp... | /Math_hw4.R | no_license | Lynnbot/Course_Work_in_R | R | false | false | 603 | r | #setwd("~/Documents/2018FALL_Class/R/Math")
#A function to compare whether two matrices in r are identical.
compare_two_matrices <- function(x, y)
is.matrix(x) && is.matrix(y) && dim(x) == dim(y) && all(x == y)
# Solution to problem 3.
# To test whether the inverse traspositional matrix is identical
# to the transp... |
## AUTHOR: ROHAN MEHTA
## DATE: 05/29/2019
# Reading in only the dates 2007-02-01 and 2007-02-02 for plotting purposes
household_power_consumption <- read.table("household_power_consumption.txt", skip = 66637, nrow = 2880, sep = ";")
# Applying names to data table since we skipped first row while reading
name <- sapp... | /plot1.R | no_license | rmehta678/ExData_Plotting1 | R | false | false | 663 | r | ## AUTHOR: ROHAN MEHTA
## DATE: 05/29/2019
# Reading in only the dates 2007-02-01 and 2007-02-02 for plotting purposes
household_power_consumption <- read.table("household_power_consumption.txt", skip = 66637, nrow = 2880, sep = ";")
# Applying names to data table since we skipped first row while reading
name <- sapp... |
source("internal_scripts/sample_exclusions.R")
# Initial datasets
rnaseq_file <- "rnaseq_data"
clinical_file <- "clinical_data"
# Parameters
clust_type <- "p"
top_genes <- 300
remove_duplicated_samples = FALSE # FALSE because these are different rows in the clinical file (may be removed later)
remove_column_samples =... | /pre_clustering_dataset.R | permissive | BioSok/spectral_clustering_of_IPAH | R | false | false | 1,803 | r | source("internal_scripts/sample_exclusions.R")
# Initial datasets
rnaseq_file <- "rnaseq_data"
clinical_file <- "clinical_data"
# Parameters
clust_type <- "p"
top_genes <- 300
remove_duplicated_samples = FALSE # FALSE because these are different rows in the clinical file (may be removed later)
remove_column_samples =... |
## A pair of functions that cache the inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y
inv <<- NULL
}
get <- function() ... | /cachematrix.R | no_license | JBrandonWH1960/ProgrammingAssignment2 | R | false | false | 934 | r | ## A pair of functions that cache the inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y
inv <<- NULL
}
get <- function() ... |
# This is the server logic for a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyServer(function(input, output) {
output$myLogModelSummary <- renderPrint({
inFile <- input$datafile
kickers... | /A07_G42955089-Rshiny/Part C/server.R | no_license | zjiwei/DNSC6211_Programming_For_Analytics | R | false | false | 1,101 | r |
# This is the server logic for a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyServer(function(input, output) {
output$myLogModelSummary <- renderPrint({
inFile <- input$datafile
kickers... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility.R
\name{extract_data_output}
\alias{extract_data_output}
\title{Extract data output}
\usage{
extract_data_output(data_output, col_section_a, col_section_b)
}
\description{
Extract data output
}
\keyword{internal}
| /man/extract_data_output.Rd | permissive | houseofcommonslibrary/clmnis | R | false | true | 299 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility.R
\name{extract_data_output}
\alias{extract_data_output}
\title{Extract data output}
\usage{
extract_data_output(data_output, col_section_a, col_section_b)
}
\description{
Extract data output
}
\keyword{internal}
|
library(rolypoly)
### Name: make_results_df
### Title: Helper function to make a summary table of results from
### bootstrap data.
### Aliases: make_results_df
### ** Examples
## Not run: make_results_df(value_collection)
| /data/genthat_extracted_code/rolypoly/examples/make_results_df.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 231 | r | library(rolypoly)
### Name: make_results_df
### Title: Helper function to make a summary table of results from
### bootstrap data.
### Aliases: make_results_df
### ** Examples
## Not run: make_results_df(value_collection)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotCueWeights.R
\name{plotCueWeights}
\alias{plotCueWeights}
\title{Visualize the change of connection weights between a specific cue and all
outcomes.}
\usage{
plotCueWeights(
wmlist,
cue,
select.outcomes = NULL,
init.value = 0,
... | /man/plotCueWeights.Rd | no_license | cran/edl | R | false | true | 3,188 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotCueWeights.R
\name{plotCueWeights}
\alias{plotCueWeights}
\title{Visualize the change of connection weights between a specific cue and all
outcomes.}
\usage{
plotCueWeights(
wmlist,
cue,
select.outcomes = NULL,
init.value = 0,
... |
library(tidyverse)
library(reshape2)
library(vegan)
theme_set(theme_light())
setwd('~/Documents/git/PAPER_Shade_CurrOpinMicro/')
#-----------------------------------------------------------------------------------------
##Prioritizing core microbiome based on TIME
#Example - switchgrass dataset (Grady et al. (2019)... | /script/Core_prioritizing_script.R | permissive | alr26b/PAPER_Shade_CurrOpinMicro | R | false | false | 21,982 | r | library(tidyverse)
library(reshape2)
library(vegan)
theme_set(theme_light())
setwd('~/Documents/git/PAPER_Shade_CurrOpinMicro/')
#-----------------------------------------------------------------------------------------
##Prioritizing core microbiome based on TIME
#Example - switchgrass dataset (Grady et al. (2019)... |
#' Non-ASGS shapefiles
#' @description These are not the core Statistical Areas used by the ABS,
#' but the areas are provided for convenience. CED (Commonwealth Electoral Divisions),
#' LGA (Local Government Areas), POA (Postcodes).
#' @name non-ABS-shapefile
NULL
#' @rdname non-ABS-shapefile
"CED_2016"
#' @rdname... | /R/non-SAs.R | no_license | monikasarder/ASGS | R | false | false | 433 | r | #' Non-ASGS shapefiles
#' @description These are not the core Statistical Areas used by the ABS,
#' but the areas are provided for convenience. CED (Commonwealth Electoral Divisions),
#' LGA (Local Government Areas), POA (Postcodes).
#' @name non-ABS-shapefile
NULL
#' @rdname non-ABS-shapefile
"CED_2016"
#' @rdname... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/logit_funs.R
\name{logitnormal_imode}
\alias{logitnormal_imode}
\title{Get inverse logit-normal mode}
\usage{
logitnormal_imode(mu, sd)
}
\arguments{
\item{mu}{the value around which the mode should be centered (in logit space)}
\item{sd}{th... | /pttstability/man/logitnormal_imode.Rd | no_license | adamtclark/pts_r_package | R | false | true | 570 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/logit_funs.R
\name{logitnormal_imode}
\alias{logitnormal_imode}
\title{Get inverse logit-normal mode}
\usage{
logitnormal_imode(mu, sd)
}
\arguments{
\item{mu}{the value around which the mode should be centered (in logit space)}
\item{sd}{th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R
\docType{methods}
\name{diagnostic-generic}
\alias{diagnostic-generic}
\alias{diagnostic}
\title{null assumption diagnostic plots}
\usage{
diagnostic(obj, ...)
}
\description{
null assumption diagnostic plots
}
\keyword{internal... | /man/diagnostic-generic.Rd | no_license | pkimes/sigclust2 | R | false | true | 322 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R
\docType{methods}
\name{diagnostic-generic}
\alias{diagnostic-generic}
\alias{diagnostic}
\title{null assumption diagnostic plots}
\usage{
diagnostic(obj, ...)
}
\description{
null assumption diagnostic plots
}
\keyword{internal... |
library(partitionComparison)
### Name: wallaceII
### Title: Wallace II
### Aliases: wallaceII wallaceII,Partition,Partition-method
### wallaceII,PairCoefficients,missing-method
### ** Examples
isTRUE(all.equal(wallaceII(new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1,... | /data/genthat_extracted_code/partitionComparison/examples/wallaceII.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 337 | r | library(partitionComparison)
### Name: wallaceII
### Title: Wallace II
### Aliases: wallaceII wallaceII,Partition,Partition-method
### wallaceII,PairCoefficients,missing-method
### ** Examples
isTRUE(all.equal(wallaceII(new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1,... |
library(IMIFA)
### Name: Zsimilarity
### Title: Summarise MCMC samples of clustering labels with a similarity
### matrix and find the 'average' clustering
### Aliases: Zsimilarity
### Keywords: utility
### ** Examples
# Run a IMIFA model and extract the sampled cluster labels
# data(olive)
# sim <- mcmc_IMIFA(... | /data/genthat_extracted_code/IMIFA/examples/Zsimilarity.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 963 | r | library(IMIFA)
### Name: Zsimilarity
### Title: Summarise MCMC samples of clustering labels with a similarity
### matrix and find the 'average' clustering
### Aliases: Zsimilarity
### Keywords: utility
### ** Examples
# Run a IMIFA model and extract the sampled cluster labels
# data(olive)
# sim <- mcmc_IMIFA(... |
#install.packages("ISLR")
library(ISLR)
#install.packages("tidyverse")
library(tidyverse)
#install.packages("funModeling")
library(funModeling)
#install.packages("caret")
library(caret)
#install.packages("pROC")
library(pROC)
#install.packages("class")
library(class)#knn icin
#install.packages("e1071")
library(e1071)#k... | /XGBoost-Classification.R | no_license | alzey73/R-Programming-for-Data-Science | R | false | false | 4,149 | r | #install.packages("ISLR")
library(ISLR)
#install.packages("tidyverse")
library(tidyverse)
#install.packages("funModeling")
library(funModeling)
#install.packages("caret")
library(caret)
#install.packages("pROC")
library(pROC)
#install.packages("class")
library(class)#knn icin
#install.packages("e1071")
library(e1071)#k... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-aaa.r
\docType{methods}
\name{commandDoIt,plot_base-method}
\alias{commandDoIt,plot_base-method}
\title{An Wrapper Function for Command Execution}
\usage{
\S4method{commandDoIt}{plot_base}(command, log)
}
\arguments{
\item{comm... | /man/plot-plot_base-commandDoIt.Rd | no_license | ddsjoberg/RcmdrPlugin.KMggplot2 | R | false | true | 2,062 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-aaa.r
\docType{methods}
\name{commandDoIt,plot_base-method}
\alias{commandDoIt,plot_base-method}
\title{An Wrapper Function for Command Execution}
\usage{
\S4method{commandDoIt}{plot_base}(command, log)
}
\arguments{
\item{comm... |
load("data/exact.cost.RData")
load("data/signal.list.RData")
load("data/segmentation.list.RData")
load("data/annotation.sets.RData")
load("data/L.min.max.RData")
source("scripts/ireg.signals.R")
source("scripts/geom_tallrect.R")
source("scripts/breakpoint.colors.R")
source("scripts/signal.colors.R")
## calc anns.
ann.... | /figure-ireg-exact-kstar-cost-2.R | no_license | tdhock/breakpointError-orig | R | false | false | 4,793 | r | load("data/exact.cost.RData")
load("data/signal.list.RData")
load("data/segmentation.list.RData")
load("data/annotation.sets.RData")
load("data/L.min.max.RData")
source("scripts/ireg.signals.R")
source("scripts/geom_tallrect.R")
source("scripts/breakpoint.colors.R")
source("scripts/signal.colors.R")
## calc anns.
ann.... |
# server.R
function(input, output) {
# build data with 2 places
data=data.frame(x=inputstn$LONGITUDE, y=inputstn$LATITUDE, id=inputstn$ID)
# create a reactive value that will store the click position
data_of_click <- reactiveValues(clickedMarker=NULL)
# Leaflet map with 2 markers
outp... | /GIE/Shiny_GIS/map_plot/SIG/server.R | permissive | 65MO/Galaxy-E | R | false | false | 1,188 | r | # server.R
function(input, output) {
# build data with 2 places
data=data.frame(x=inputstn$LONGITUDE, y=inputstn$LATITUDE, id=inputstn$ID)
# create a reactive value that will store the click position
data_of_click <- reactiveValues(clickedMarker=NULL)
# Leaflet map with 2 markers
outp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bitwise.r
\name{win.ia}
\alias{win.ia}
\title{Calculate windows of the index of association for genlight objects.}
\usage{
win.ia(x, window = 100L, min.snps = 3L, threads = 1L, quiet = FALSE,
name_window = TRUE, chromosome_buffer = TRUE)
}
... | /man/win.ia.Rd | no_license | Neato-Nick/poppr | R | false | true | 3,934 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bitwise.r
\name{win.ia}
\alias{win.ia}
\title{Calculate windows of the index of association for genlight objects.}
\usage{
win.ia(x, window = 100L, min.snps = 3L, threads = 1L, quiet = FALSE,
name_window = TRUE, chromosome_buffer = TRUE)
}
... |
#' Get a function list
#'
#' This function helps the \code{\link{forestplot}}
#' to deal with multiple drawing functions for the
#' confidence intervals.
#'
#' @param fn The function list/matrix. If a list it
#' should be in the format [[row]][[col]], the function
#' tries to handle this but in cases where the column... | /R/private.R | no_license | vinhnguyendo/forestplot | R | false | false | 53,038 | r | #' Get a function list
#'
#' This function helps the \code{\link{forestplot}}
#' to deal with multiple drawing functions for the
#' confidence intervals.
#'
#' @param fn The function list/matrix. If a list it
#' should be in the format [[row]][[col]], the function
#' tries to handle this but in cases where the column... |
if (interactive()) savehistory();
library("aroma.affymetrix");
log <- Verbose(threshold=-10, timestamp=TRUE);
options(width=60);
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Settings
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
naVersion <- "26";
user <- "H... | /inst/buildScripts/chipTypes/Mapping10K_Xba142/na26/Mapping10K_Xba142,UGP,na26.R | no_license | HenrikBengtsson/aroma.affymetrix | R | false | false | 4,216 | r | if (interactive()) savehistory();
library("aroma.affymetrix");
log <- Verbose(threshold=-10, timestamp=TRUE);
options(width=60);
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Settings
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
naVersion <- "26";
user <- "H... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidy_sample_data.R
\name{as_labData}
\alias{as_labData}
\title{A phylosql Function}
\usage{
as_labData(labdata)
}
\arguments{
\item{labdata}{data to format}
}
\description{
formats lab to for sql upload
}
| /man/as_labData.Rd | no_license | metagen-Au/phylosql | R | false | true | 283 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidy_sample_data.R
\name{as_labData}
\alias{as_labData}
\title{A phylosql Function}
\usage{
as_labData(labdata)
}
\arguments{
\item{labdata}{data to format}
}
\description{
formats lab to for sql upload
}
|
re2p <- re2_regexp("hello world")
stopifnot(mode(re2p) == "externalptr")
## UTF-8 and matching interface
# By default, pattern and input text are interpreted as UTF-8.
# The Latin1 option causes them to be interpreted as Latin-1.
x <- "fa\xE7ile"
Encoding(x) <- "latin1"
re2_detect(x, re2_regexp("fa\xE7", encoding = "L... | /inst/examples/regexp.R | permissive | renowncoder/re2-4 | R | false | false | 825 | r | re2p <- re2_regexp("hello world")
stopifnot(mode(re2p) == "externalptr")
## UTF-8 and matching interface
# By default, pattern and input text are interpreted as UTF-8.
# The Latin1 option causes them to be interpreted as Latin-1.
x <- "fa\xE7ile"
Encoding(x) <- "latin1"
re2_detect(x, re2_regexp("fa\xE7", encoding = "L... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/posTokens.R
\name{posTokens}
\alias{posTokens}
\title{POS Tagger}
\usage{
posTokens(
texts,
ngrams = 1,
language = "english",
punct = FALSE,
stop.words = TRUE,
overlap = 1,
sparse = 0.99,
dependency = FALSE,
tag.sub = 0,
v... | /man/posTokens.Rd | no_license | myeomans/DTMtools | R | false | true | 1,366 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/posTokens.R
\name{posTokens}
\alias{posTokens}
\title{POS Tagger}
\usage{
posTokens(
texts,
ngrams = 1,
language = "english",
punct = FALSE,
stop.words = TRUE,
overlap = 1,
sparse = 0.99,
dependency = FALSE,
tag.sub = 0,
v... |
library( "xtable" )
library( "gplots" ) # for heatmap.2
library( "ggplot2" )
library( "forestplot" )
library( "reshape2" )
.owd <- getwd();
setwd( "~/src/from-git/hiv-founder-id/" );
source( "getFilteredResultsTables_safetosource.R" );
source( "evaluateTimings_safetosource.R" );
source( "evaluateIsMultiple_safetosourc... | /ReportTimingsAndMultiplicityResults_safetosource.R | permissive | pedlefsen/hiv-founder-id | R | false | false | 93,383 | r | library( "xtable" )
library( "gplots" ) # for heatmap.2
library( "ggplot2" )
library( "forestplot" )
library( "reshape2" )
.owd <- getwd();
setwd( "~/src/from-git/hiv-founder-id/" );
source( "getFilteredResultsTables_safetosource.R" );
source( "evaluateTimings_safetosource.R" );
source( "evaluateIsMultiple_safetosourc... |
# Simple Sentiment Analysis for Twitter
# Global parameters
setwd("~/Desktop/Text-Analysis/")
# Include necessary packages
library(twitteR)
library(purrr)
library(dplyr)
# Load data
load(url("http://varianceexplained.org/files/trump_tweets_df.rda"))
library(tidyr)
tweets <- trump_tweets_df %>%
select(id, s... | /RScripts/sentTrumpiOS.R | no_license | prudhv16/Text-Analysis | R | false | false | 4,263 | r |
# Simple Sentiment Analysis for Twitter
# Global parameters
setwd("~/Desktop/Text-Analysis/")
# Include necessary packages
library(twitteR)
library(purrr)
library(dplyr)
# Load data
load(url("http://varianceexplained.org/files/trump_tweets_df.rda"))
library(tidyr)
tweets <- trump_tweets_df %>%
select(id, s... |
# Pepperwood tree distribution GAM analysis - evaluation of model results
rm(list=ls())
library(tidyverse)
library(mgcv)
# load 10 m hyperspectral tree layer
hyp <- readRDS('big_data/pwd_hyp_topo.Rdata')
names(hyp)
dim(hyp)
# sum proportional occurrence for the woody plant columns
hyp$woodyt <- apply(hyp[,15:27],1,s... | /code/pwd-topo-gam-eval.R | no_license | matthewkling/topo-refugia | R | false | false | 9,668 | r | # Pepperwood tree distribution GAM analysis - evaluation of model results
rm(list=ls())
library(tidyverse)
library(mgcv)
# load 10 m hyperspectral tree layer
hyp <- readRDS('big_data/pwd_hyp_topo.Rdata')
names(hyp)
dim(hyp)
# sum proportional occurrence for the woody plant columns
hyp$woodyt <- apply(hyp[,15:27],1,s... |
#' @title Intersection of two curves
#'
#' @description Calculate where two lines or curves intersect. Curves are defined as data
#' frames with x and y columns providing cartesian coordinates for the lines.
#' This function works on both linear and nonlinear curves.
#'
#' @param curve1 Either a \code{data.frame} with ... | /R/intersect.R | permissive | fgvillarreal/econocharts | R | false | false | 3,357 | r | #' @title Intersection of two curves
#'
#' @description Calculate where two lines or curves intersect. Curves are defined as data
#' frames with x and y columns providing cartesian coordinates for the lines.
#' This function works on both linear and nonlinear curves.
#'
#' @param curve1 Either a \code{data.frame} with ... |
\name{extreme3PSP}
\docType{data}
\alias{extreme3PSP}
\title{A simulation phenotype data set with three subpopulations and extreme ancestral differences}
\description{
This is a simulation phenotype data set consisting of 1,000 cases and 1,000 controls.
The population substructure is S2 (three underlying discrete subp... | /man/extreme3PSP.Rd | no_license | statscueb/AssocTests.data | R | false | false | 607 | rd | \name{extreme3PSP}
\docType{data}
\alias{extreme3PSP}
\title{A simulation phenotype data set with three subpopulations and extreme ancestral differences}
\description{
This is a simulation phenotype data set consisting of 1,000 cases and 1,000 controls.
The population substructure is S2 (three underlying discrete subp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Image.R
\docType{methods}
\name{getChannelNames,Image-method}
\alias{getChannelNames,Image-method}
\title{Get the channel names of an Image}
\usage{
\S4method{getChannelNames}{Image}(image)
}
\arguments{
\item{image}{The image}
}
\value{
The ... | /man/getChannelNames-Image-method.Rd | no_license | jburel/rOMERO-gateway | R | false | true | 386 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Image.R
\docType{methods}
\name{getChannelNames,Image-method}
\alias{getChannelNames,Image-method}
\title{Get the channel names of an Image}
\usage{
\S4method{getChannelNames}{Image}(image)
}
\arguments{
\item{image}{The image}
}
\value{
The ... |
#' Delete Resources
#'
#' Delete resources via Trello API.
#'
#' See [Trello API reference](https://developer.atlassian.com/cloud/trello/rest)
#' for more info about DELETE requests.
#'
#' @param resource,id Resource name (eg. `"card"`) and id.
#' @param path Path (optional).
#' @param token An object of class `"Trello... | /R/delete_resource.R | no_license | jchrom/trelloR | R | false | false | 2,035 | r | #' Delete Resources
#'
#' Delete resources via Trello API.
#'
#' See [Trello API reference](https://developer.atlassian.com/cloud/trello/rest)
#' for more info about DELETE requests.
#'
#' @param resource,id Resource name (eg. `"card"`) and id.
#' @param path Path (optional).
#' @param token An object of class `"Trello... |
#' @title zsteps
#' @description Calculate Z steps for leadscrew systems.
#' @name zsteps
#' @param s The number of steps per revolution of your motor.
#' @param m Your driver's microstep setting.
#' @param t The pitch of your lead screw.
#' @examples
#' zsteps(200, 16, .8)
#' @export
zsteps <- function(s, m, t)
{
... | /R/zsteps.R | no_license | ryanscharf/printtools3d | R | false | false | 333 | r | #' @title zsteps
#' @description Calculate Z steps for leadscrew systems.
#' @name zsteps
#' @param s The number of steps per revolution of your motor.
#' @param m Your driver's microstep setting.
#' @param t The pitch of your lead screw.
#' @examples
#' zsteps(200, 16, .8)
#' @export
zsteps <- function(s, m, t)
{
... |
## ----defaults,results='hide',echo=FALSE----------------------------------
require(MASS,quietly=T,warn.conflicts=FALSE)
require(xtable,quietly=T,warn.conflicts=FALSE)
require(stringr,quietly=T,warn.conflicts=FALSE)
require(RSQLite,quietly=T,warn.conflicts=FALSE)
require(foreign,quietly=T,warn.conflicts=FALSE)
suppress... | /Supports/Diapos/13_Graphiques.R | no_license | pbessonneau/atelier_r | R | false | false | 4,147 | r | ## ----defaults,results='hide',echo=FALSE----------------------------------
require(MASS,quietly=T,warn.conflicts=FALSE)
require(xtable,quietly=T,warn.conflicts=FALSE)
require(stringr,quietly=T,warn.conflicts=FALSE)
require(RSQLite,quietly=T,warn.conflicts=FALSE)
require(foreign,quietly=T,warn.conflicts=FALSE)
suppress... |
# Mateusz Hurbol, Piotr Kotara, Piotr Matlag
# Zadanie 3
plot(boot::acme$acme ~ boot::acme$market, main="Scatter plot", xlab="market", ylab="acme")
library("car")
scatterplot(boot::acme$acme ~ boot::acme$market, main="Scatter plot", xlab="market", ylab="acme")
| /lab3/zad3.R | permissive | matlagp/statystyka | R | false | false | 263 | r | # Mateusz Hurbol, Piotr Kotara, Piotr Matlag
# Zadanie 3
plot(boot::acme$acme ~ boot::acme$market, main="Scatter plot", xlab="market", ylab="acme")
library("car")
scatterplot(boot::acme$acme ~ boot::acme$market, main="Scatter plot", xlab="market", ylab="acme")
|
## =========================================================================
##
## REFRESH STATE METRICS:
## AFFORDABILITY
##
## 2015 SAMPLE: exclude_from_analysis == FALSE
## 2016 SAMPLE: exclude_from_ia_analysis == FALSE
##
## hist: meeting affordability goal
## targets: # of districts getting a better deal, 2016
## ... | /Projects/smd_2016/metrics/code/functions/affordability.R | no_license | mtejas88/esh | R | false | false | 21,688 | r | ## =========================================================================
##
## REFRESH STATE METRICS:
## AFFORDABILITY
##
## 2015 SAMPLE: exclude_from_analysis == FALSE
## 2016 SAMPLE: exclude_from_ia_analysis == FALSE
##
## hist: meeting affordability goal
## targets: # of districts getting a better deal, 2016
## ... |
rm(list = ls())
load(file = "data/extreme_points_seven_node_graph.Rdata")
#------------------------------------------------------------------------------#
# do projection from seven nodes down to six nodes
# keep mobius with meanings
# 'class1', 'class2', 'class3', 'class4', ... "class11"
#----------------------------... | /nodesR/4e_seven_to_four_projection.R | no_license | placeboo/Extendability-for-Exchangeable-Distributions-over-Networks | R | false | false | 903 | r | rm(list = ls())
load(file = "data/extreme_points_seven_node_graph.Rdata")
#------------------------------------------------------------------------------#
# do projection from seven nodes down to six nodes
# keep mobius with meanings
# 'class1', 'class2', 'class3', 'class4', ... "class11"
#----------------------------... |
require("sqldf")
require("ggplot2")
setwd("~/Documents/Coursera/ExData_Plotting2")
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
## subset SCC to get only coal-related combustion sources
## based on discussions in the class forums on defining coal combustion sources
## looks ... | /Plot4.R | no_license | ericcds/ExData_Plotting2 | R | false | false | 968 | r | require("sqldf")
require("ggplot2")
setwd("~/Documents/Coursera/ExData_Plotting2")
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
## subset SCC to get only coal-related combustion sources
## based on discussions in the class forums on defining coal combustion sources
## looks ... |
#' @import Rcpp
NULL
loadModule("aGTBModule", TRUE) | /fuzzedpackages/agtboost/R/zzz.R | no_license | akhikolla/testpackages | R | false | false | 55 | r | #' @import Rcpp
NULL
loadModule("aGTBModule", TRUE) |
# For USF SAIL
# ~Mihir
library(data.table)
library(readr)
library(dplyr)
library(rio)
#Read in the csv file
# set the path of where the csv files are and end the file path with / character. In windows swap \ with /
setwd('C:\\Users\\ThinkPad\\SpyderProjects\\JsonStuff\\100K_March_URL_GONE')
#filenames
... | /R/annotation_prep_users.R | permissive | ergosumdre/covid19-random_scripts | R | false | false | 2,451 | r | # For USF SAIL
# ~Mihir
library(data.table)
library(readr)
library(dplyr)
library(rio)
#Read in the csv file
# set the path of where the csv files are and end the file path with / character. In windows swap \ with /
setwd('C:\\Users\\ThinkPad\\SpyderProjects\\JsonStuff\\100K_March_URL_GONE')
#filenames
... |
best <- function(state, outcome){
outcome.table <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
x <- is.element(state, outcome.table$State)
if (x == FALSE){
stop("invalid state")
return(FALSE)
}
outcome.filtered <- outcome.table[outcome.table$State == state, ]
if(outcom... | /week4/best.R | no_license | Paureel/rcourse | R | false | false | 2,799 | r | best <- function(state, outcome){
outcome.table <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
x <- is.element(state, outcome.table$State)
if (x == FALSE){
stop("invalid state")
return(FALSE)
}
outcome.filtered <- outcome.table[outcome.table$State == state, ]
if(outcom... |
/Analysis/Hospitals_twitter_analysis.R | no_license | DataLabUsal/HOSPITAL_SOCIAL_MEDIA | R | false | false | 6,484 | r | ||
transformPhi <- function(theta.ha, constraints) {
s <- dim(constraints)[1]
phi.ha.tran <- rep(NA,s)
for(i in 1:s) {
if(constraints[i,1] == 1)
phi.ha.tran[i] <- theta.ha[constraints[i,2]] else
phi.ha.tran[i] <-
theta.ha[con... | /R/transform.phi.R | permissive | cran/asypow | R | false | false | 406 | r | transformPhi <- function(theta.ha, constraints) {
s <- dim(constraints)[1]
phi.ha.tran <- rep(NA,s)
for(i in 1:s) {
if(constraints[i,1] == 1)
phi.ha.tran[i] <- theta.ha[constraints[i,2]] else
phi.ha.tran[i] <-
theta.ha[con... |
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(Inf, Inf, 2.08655633926036e-308, -1.31982191351977e-113, 2.79620616433656e-119, -6.80033518839696e+41, 6.41041751414923e-212, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, -1.418167979... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615830912-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 575 | r | testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(Inf, Inf, 2.08655633926036e-308, -1.31982191351977e-113, 2.79620616433656e-119, -6.80033518839696e+41, 6.41041751414923e-212, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, -1.418167979... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/location_extraction.R
\name{match_environnement}
\alias{match_environnement}
\title{extracts the roadnames or public transportation stations from the apartment descriptions}
\usage{
match_environnement(places, castorus)
}
\arguments{
\item{pl... | /man/match_environnement.Rd | no_license | paris-appartemnt-project/apartment_project | R | false | true | 588 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/location_extraction.R
\name{match_environnement}
\alias{match_environnement}
\title{extracts the roadnames or public transportation stations from the apartment descriptions}
\usage{
match_environnement(places, castorus)
}
\arguments{
\item{pl... |
library(TSclust)
library(readxl)
library(ggplot2)
library(ggmap)
library(maps)
library(mapdata)
library(matrixStats)
library(stats)
setwd("~/Desktop/MMA/MMA823 Analytics for Financial Markets/Team Project")
prices <- read.csv("nodal_prices.csv")
node_location <- read_excel("node_location.xlsx")
generators <- read_exce... | /Time Series Clustering for Wind Farms.R | no_license | Derek-Ly/R-Scripts | R | false | false | 7,305 | r | library(TSclust)
library(readxl)
library(ggplot2)
library(ggmap)
library(maps)
library(mapdata)
library(matrixStats)
library(stats)
setwd("~/Desktop/MMA/MMA823 Analytics for Financial Markets/Team Project")
prices <- read.csv("nodal_prices.csv")
node_location <- read_excel("node_location.xlsx")
generators <- read_exce... |
library(stringr)
library(xtable)
library(plyr)
library(ggplot2)
stringToDF <- function(x, ncol){
m <- matrix(unlist(str_split(x, "\t|\n")), ncol = ncol, byrow = TRUE)
df <- data.frame(m[-1, ], stringsAsFactors = FALSE)
names(df) <- m[1, ]
df
}
##print(xtable(stringToDF(x, 3)), include.rownames = FALSE)
strin... | /publications/radstack/src/druid_tables.R | permissive | apache/druid | R | false | false | 5,998 | r | library(stringr)
library(xtable)
library(plyr)
library(ggplot2)
stringToDF <- function(x, ncol){
m <- matrix(unlist(str_split(x, "\t|\n")), ncol = ncol, byrow = TRUE)
df <- data.frame(m[-1, ], stringsAsFactors = FALSE)
names(df) <- m[1, ]
df
}
##print(xtable(stringToDF(x, 3)), include.rownames = FALSE)
strin... |
library(dplyr)
library(tidytext)
library(wordcloud)
library(tidyr)
library(scales)
library(ggplot2)
library(igraph)
library(ggraph)
library(widyr)
#dataframe com texto e classe
load("data/df_tweets_10000_vazajato.Rdat")
texto_df <- dplyr::data_frame(classe = df_tweets$term,texto =df_tweets$text)
ana... | /R/rede_de_palavras.R | no_license | cndesantana/vazajato | R | false | false | 1,709 | r | library(dplyr)
library(tidytext)
library(wordcloud)
library(tidyr)
library(scales)
library(ggplot2)
library(igraph)
library(ggraph)
library(widyr)
#dataframe com texto e classe
load("data/df_tweets_10000_vazajato.Rdat")
texto_df <- dplyr::data_frame(classe = df_tweets$term,texto =df_tweets$text)
ana... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make_names.R
\name{make_names}
\alias{make_names}
\title{Create procedural names.}
\usage{
make_names(corpus, n, n_words, retry, sep = "_", case)
}
\arguments{
\item{corpus}{A vector of strings to build names from.}
\item{n}{The number of ra... | /man/make_names.Rd | permissive | mikemahoney218/proceduralnames | R | false | true | 917 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make_names.R
\name{make_names}
\alias{make_names}
\title{Create procedural names.}
\usage{
make_names(corpus, n, n_words, retry, sep = "_", case)
}
\arguments{
\item{corpus}{A vector of strings to build names from.}
\item{n}{The number of ra... |
data <- read.csv('~/GWU - Blackboard/DSIntro_W_20/Project__I/athlete_events.csv')
library(dplyr)
olympics_df <- data.frame(data)
olympics_mil <- olympics_df %>% filter(Year >= 2000)
for (col in colnames(olympics_mil)){
print(col)
print(sum(is.na(olympics_mil[as.character(col)])))
}
olympics_mil[which(is.na(olym... | /omar/project_I_R.R | no_license | IzzyIllari/DATS6101-Spring2020-IntroDataSci | R | false | false | 2,925 | r | data <- read.csv('~/GWU - Blackboard/DSIntro_W_20/Project__I/athlete_events.csv')
library(dplyr)
olympics_df <- data.frame(data)
olympics_mil <- olympics_df %>% filter(Year >= 2000)
for (col in colnames(olympics_mil)){
print(col)
print(sum(is.na(olympics_mil[as.character(col)])))
}
olympics_mil[which(is.na(olym... |
#' @title Get volumetrically averaged whole lake temperature
#'
#' @description Calculates volumetrically weighted average whole lake temperature using
#' the supplied water temperature timeseries.
#'
#' @param wtr a numeric vector of water temperature in degrees C.
#' @param depths a numeric vector corresponding to th... | /R/whole.lake.temperature.R | no_license | clairervh/GLEON | R | false | false | 839 | r | #' @title Get volumetrically averaged whole lake temperature
#'
#' @description Calculates volumetrically weighted average whole lake temperature using
#' the supplied water temperature timeseries.
#'
#' @param wtr a numeric vector of water temperature in degrees C.
#' @param depths a numeric vector corresponding to th... |
testlist <- list(x = structure(c(1.72922976044436e-322, 7.29099686519954e-304, 8.28891908358711e-317, 3.01363461116408e-92, 7.06772460416227e-304, 4.94065645841247e-324, 8.28689687289869e-317, 7.1825412374626e-304, 2.06132776154191e-306, 1.37437423389239e-309, 4.94065645841247e-324, 4.94065645841247e-324, 4.9406564... | /borrowr/inst/testfiles/matchesToCor/libFuzzer_matchesToCor/matchesToCor_valgrind_files/1609957753-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 742 | r | testlist <- list(x = structure(c(1.72922976044436e-322, 7.29099686519954e-304, 8.28891908358711e-317, 3.01363461116408e-92, 7.06772460416227e-304, 4.94065645841247e-324, 8.28689687289869e-317, 7.1825412374626e-304, 2.06132776154191e-306, 1.37437423389239e-309, 4.94065645841247e-324, 4.94065645841247e-324, 4.9406564... |
# TODO: Add comment
#
# Author: paul
###############################################################################
googleCustomSearchUtils = new.env()
googleCustomSearchUtils$apiURL <- "https://www.googleapis.com/customsearch/v1?"
googleCustomSearchUtils$.defaultFormat <- "HTML"
googleCustomSearchUtils$json... | /uk/ac/bolton/trailer-analytics/util/web/googleCustomSearchUtils.R | no_license | ps3com/data-analytics | R | false | false | 1,696 | r | # TODO: Add comment
#
# Author: paul
###############################################################################
googleCustomSearchUtils = new.env()
googleCustomSearchUtils$apiURL <- "https://www.googleapis.com/customsearch/v1?"
googleCustomSearchUtils$.defaultFormat <- "HTML"
googleCustomSearchUtils$json... |
library(cytof2)
library(rcommon)
set.seed(1)
args = commandArgs(trailingOnly=TRUE)
if (length(args) < 6) {
stop('usage: Rscript realDat_cb.R DATA_DIR MCMC_K OUTDIR B BURN THIN')
}
### GLOBAL VARS ###
DATA_DIR = args[1]
MCMC_K <- as.integer(args[2])
OUTDIR <- args[3]
B <- as.integer(args[4])
BURN <- as.integer(args[... | /cytof/src/model2/sims/realDat_cb.R | no_license | luiarthur/ucsc_litreview | R | false | false | 2,079 | r | library(cytof2)
library(rcommon)
set.seed(1)
args = commandArgs(trailingOnly=TRUE)
if (length(args) < 6) {
stop('usage: Rscript realDat_cb.R DATA_DIR MCMC_K OUTDIR B BURN THIN')
}
### GLOBAL VARS ###
DATA_DIR = args[1]
MCMC_K <- as.integer(args[2])
OUTDIR <- args[3]
B <- as.integer(args[4])
BURN <- as.integer(args[... |
##
BVTV=read.csv("D:/Desktop/Chapter7/2021_Jan_Quantitative New-3/9-Vessel/VVTV-1.csv")
##
par( mar=c(5, 5, 3, 0.5))
boxplot(BVTV[,1],BVTV[,2],BVTV[,3],BVTV[,4],BVTV[,5],BVTV[,6],BVTV[,7],BVTV[,8], ylab=expression(bold("VV/TV")), main="Vessel volume fractions", names=c("T1P","T1A","T1S","T1C","T2P","T2A","T2S","... | /Statistical analysis/1-VVTV-new-20210529-1.R | no_license | Hao123Xu/Documentation-PhD-thesis-HaoXu | R | false | false | 4,545 | r | ##
BVTV=read.csv("D:/Desktop/Chapter7/2021_Jan_Quantitative New-3/9-Vessel/VVTV-1.csv")
##
par( mar=c(5, 5, 3, 0.5))
boxplot(BVTV[,1],BVTV[,2],BVTV[,3],BVTV[,4],BVTV[,5],BVTV[,6],BVTV[,7],BVTV[,8], ylab=expression(bold("VV/TV")), main="Vessel volume fractions", names=c("T1P","T1A","T1S","T1C","T2P","T2A","T2S","... |
\name{Read.tri.nts}
\alias{Read.tri.nts}
\title{Read 'NTSYSpc' files}
\description{Read a lower triangular matrix}
\usage{Read.tri.nts(file, ...)}
\arguments{
\item{file}{File to read}
\item{...}{Arguments to 'scan()'}
}
\details{
Reads a lower triangular matrix which at least in my practice, typically come from 'N... | /man/Read.tri.nts.Rd | no_license | cran/shipunov | R | false | false | 1,544 | rd | \name{Read.tri.nts}
\alias{Read.tri.nts}
\title{Read 'NTSYSpc' files}
\description{Read a lower triangular matrix}
\usage{Read.tri.nts(file, ...)}
\arguments{
\item{file}{File to read}
\item{...}{Arguments to 'scan()'}
}
\details{
Reads a lower triangular matrix which at least in my practice, typically come from 'N... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/androidpublisher_objects.R
\name{Entitlement}
\alias{Entitlement}
\title{Entitlement Object}
\usage{
Entitlement(productId = NULL, productType = NULL, token = NULL)
}
\arguments{
\item{productId}{The SKU of the product}
\item{productType}{Th... | /googleandroidpublisherv2.auto/man/Entitlement.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 680 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/androidpublisher_objects.R
\name{Entitlement}
\alias{Entitlement}
\title{Entitlement Object}
\usage{
Entitlement(productId = NULL, productType = NULL, token = NULL)
}
\arguments{
\item{productId}{The SKU of the product}
\item{productType}{Th... |
\name{xmp12.16}
\alias{xmp12.16}
\docType{data}
\title{data from Example 12.16}
\description{
Correlation of concentrations of two pollutants
}
\format{
A data frame with 16 observations on the following 2 variables.
\describe{
\item{x}{a numeric vector of ozone concentrations (ppm)}
\item{y}{a numeric ve... | /man/xmp12.16.Rd | no_license | dmbates/Devore6 | R | false | false | 911 | rd | \name{xmp12.16}
\alias{xmp12.16}
\docType{data}
\title{data from Example 12.16}
\description{
Correlation of concentrations of two pollutants
}
\format{
A data frame with 16 observations on the following 2 variables.
\describe{
\item{x}{a numeric vector of ozone concentrations (ppm)}
\item{y}{a numeric ve... |
GetData <- function() {
# Gets the Electric power consumption dataset from the UC Irvine Machine
# Learning Repository.
#
# If the data file already exists, it does nothing.
#
# Returns:
# The path of the data file.
data.file.name <- "household_power_consumption.txt"
data.dir <- "data"
data.file.p... | /common.R | no_license | come-maiz/ExData_Plotting1 | R | false | false | 1,775 | r | GetData <- function() {
# Gets the Electric power consumption dataset from the UC Irvine Machine
# Learning Repository.
#
# If the data file already exists, it does nothing.
#
# Returns:
# The path of the data file.
data.file.name <- "household_power_consumption.txt"
data.dir <- "data"
data.file.p... |
# #d Video: Cómo generar matrices de confusión
cp <- read.csv("../data/tema3/college-perf.csv")
# #d Le damos un orden los factores de forma que los niveles de orden sean Low, el primero y High el úlitmo
# #d lo que hacemos es indicarle al dataframe es que Low está por debajo de Medium y éste de High
# #d Perf: perfo... | /scripts/tema3/01-confussion-matrices.R | permissive | diegogonda/r-course | R | false | false | 2,237 | r | # #d Video: Cómo generar matrices de confusión
cp <- read.csv("../data/tema3/college-perf.csv")
# #d Le damos un orden los factores de forma que los niveles de orden sean Low, el primero y High el úlitmo
# #d lo que hacemos es indicarle al dataframe es que Low está por debajo de Medium y éste de High
# #d Perf: perfo... |
library(ggmap)
library(keyring)
library(tidyverse)
register_google(key = keyring::key_get("MY_GOOGLE_API"))
geocode("New York City", source = "google") # Check if it works
fortune500 <- read_csv("fortune500.csv")[, -1]
head(fortune500)
fortune500$address <- paste(fortune500$streetadd,
fo... | /exercise_samples/05_maps/geocode_companies.R | no_license | yifeitung/data_viz_review | R | false | false | 897 | r | library(ggmap)
library(keyring)
library(tidyverse)
register_google(key = keyring::key_get("MY_GOOGLE_API"))
geocode("New York City", source = "google") # Check if it works
fortune500 <- read_csv("fortune500.csv")[, -1]
head(fortune500)
fortune500$address <- paste(fortune500$streetadd,
fo... |
library(data.table)
library(ggplot2)
dateFrom<-as.Date("2015-09-01")
dateTo<-as.Date("2015-11-17")
dates<-format(seq.Date(dateFrom, dateTo, by=1),"%Y/%m/%d")
urlstart<-"http://www.wunderground.com/history/airport/SBAF/"
urlend<-"/DailyHistory.html?req_city=Afonsos&req_statename=Brazil&reqdb.zip=&reqdb.magic=&reqd... | /getweather.R | no_license | qg0/rltrading | R | false | false | 791 | r | library(data.table)
library(ggplot2)
dateFrom<-as.Date("2015-09-01")
dateTo<-as.Date("2015-11-17")
dates<-format(seq.Date(dateFrom, dateTo, by=1),"%Y/%m/%d")
urlstart<-"http://www.wunderground.com/history/airport/SBAF/"
urlend<-"/DailyHistory.html?req_city=Afonsos&req_statename=Brazil&reqdb.zip=&reqdb.magic=&reqd... |
testlist <- list(x = c(-5.87747515654592e-39, -6.6724983911342e+306, 7.06416448598846e-304, 9.48928520649541e-310, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y = numeric(0))
resu... | /blorr/inst/testfiles/blr_pairs_cpp/libFuzzer_blr_pairs_cpp/blr_pairs_cpp_valgrind_files/1609955281-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 377 | r | testlist <- list(x = c(-5.87747515654592e-39, -6.6724983911342e+306, 7.06416448598846e-304, 9.48928520649541e-310, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y = numeric(0))
resu... |
#' The logistic distribution function
#'
#' @param x vector of quantiles.
#' @return cummulativ distribution function of x.
#' @importFrom stats plogis
logistic <- function(x) stats::plogis(x)
#' Negative log likelihood and negative gradient computation
#'
#' @description
#' computes the negative log likelihood
#' and... | /logitreg/R/loglik.R | permissive | fort-w2021/logitreg-ex-muskuloes | R | false | false | 2,350 | r | #' The logistic distribution function
#'
#' @param x vector of quantiles.
#' @return cummulativ distribution function of x.
#' @importFrom stats plogis
logistic <- function(x) stats::plogis(x)
#' Negative log likelihood and negative gradient computation
#'
#' @description
#' computes the negative log likelihood
#' and... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions_Cost_Complexity_Pruning.R
\name{get_node_leaves}
\alias{get_node_leaves}
\title{get_node_leaves}
\usage{
get_node_leaves(node, tree)
}
\arguments{
\item{node}{the number of the node in the tree \code{tree}}
\item{tree}{a tree. A da... | /man/get_node_leaves.Rd | no_license | dtrfgv/dtrfgv | R | false | true | 584 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions_Cost_Complexity_Pruning.R
\name{get_node_leaves}
\alias{get_node_leaves}
\title{get_node_leaves}
\usage{
get_node_leaves(node, tree)
}
\arguments{
\item{node}{the number of the node in the tree \code{tree}}
\item{tree}{a tree. A da... |
#' REDCap Survey Complete Tbl
#'
#' A dataset containing valid REDCap "Survey Complete" Values.
#'
#' @docType data
#'
#' @format A data frame with 2 rows and 2 variables:
#' \describe{
#' \item{redcap_survey_complete_names}{The human readable "Survey Complete" Responses}
#' \item{redcap_survey_complete_values}{RE... | /R/data_redcap_survey_complete_tbl.R | permissive | Mwilso4/ReviewR | R | false | false | 411 | r | #' REDCap Survey Complete Tbl
#'
#' A dataset containing valid REDCap "Survey Complete" Values.
#'
#' @docType data
#'
#' @format A data frame with 2 rows and 2 variables:
#' \describe{
#' \item{redcap_survey_complete_names}{The human readable "Survey Complete" Responses}
#' \item{redcap_survey_complete_values}{RE... |
## Text mining with the R package tm
## http://michael.hahsler.net/SMU/7337/install/tm.R
# install.packages("XML")
# install.packages("tm")
library(tm)
library(XML)
## get a sample (10 documents) of the Reuters dataset (comes with package tm)
reut21578 <- system.file("texts", "crude", package = "tm")
reuters <- Corpus... | /RTutorials/package_tm_example.R | no_license | way2joy/learnR | R | false | false | 2,383 | r | ## Text mining with the R package tm
## http://michael.hahsler.net/SMU/7337/install/tm.R
# install.packages("XML")
# install.packages("tm")
library(tm)
library(XML)
## get a sample (10 documents) of the Reuters dataset (comes with package tm)
reut21578 <- system.file("texts", "crude", package = "tm")
reuters <- Corpus... |
library("rvest")
#Enter the base URL
base_url <- "http://www.imdb.com/search/title?sort=num_votes,desc&start=1&title_type=feature&year=1950,2016&page="
#Create a list for storing movie links
Page<- list()
#Get number of v index pages URL
v<-1:100
#Loop to get all indexed page
for(i in v) {
#Get full ... | /Crawler.r | no_license | TonyZhangtong/IMDB-crawl | R | false | false | 922 | r | library("rvest")
#Enter the base URL
base_url <- "http://www.imdb.com/search/title?sort=num_votes,desc&start=1&title_type=feature&year=1950,2016&page="
#Create a list for storing movie links
Page<- list()
#Get number of v index pages URL
v<-1:100
#Loop to get all indexed page
for(i in v) {
#Get full ... |
library(ggplot2)
args = commandArgs(trailingOnly=TRUE)
folder <- dirname(args[1])
df <- read.table(args[1])
df[,3] <- 2*(df[,1]-df[,2])
names(df) <- c('global', 'multi', 'diff')
global.lnk <- as.numeric(args[2]) # -162576.606204
multi.lnk <- as.numeric(args[3]) # -149055.330013
print(df)
h <- ggplot(df, aes(x=diff)... | /other/lhtest.R | no_license | hahnlab/cafe_tutorial | R | false | false | 1,389 | r | library(ggplot2)
args = commandArgs(trailingOnly=TRUE)
folder <- dirname(args[1])
df <- read.table(args[1])
df[,3] <- 2*(df[,1]-df[,2])
names(df) <- c('global', 'multi', 'diff')
global.lnk <- as.numeric(args[2]) # -162576.606204
multi.lnk <- as.numeric(args[3]) # -149055.330013
print(df)
h <- ggplot(df, aes(x=diff)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GSEAweight1.R
\name{GSEAweight1Score}
\alias{GSEAweight1Score}
\title{GSEAweight1}
\usage{
GSEAweight1Score(refMatrix, queryUp, queryDown, permuteNum = 10000,
pAdjMethod = "BH", mcCore = 1)
}
\arguments{
\item{refMatrix}{A matrix}
\item{qu... | /man/GSEAweight1Score.Rd | no_license | saisaitian/RCSM | R | false | true | 1,125 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GSEAweight1.R
\name{GSEAweight1Score}
\alias{GSEAweight1Score}
\title{GSEAweight1}
\usage{
GSEAweight1Score(refMatrix, queryUp, queryDown, permuteNum = 10000,
pAdjMethod = "BH", mcCore = 1)
}
\arguments{
\item{refMatrix}{A matrix}
\item{qu... |
# Copyright 2014 Revolution Analytics
#
# 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
#
# Unless required by applicable law or agreed... | /pkg/tests/arrange-like.R | no_license | solkem/plyrmr | R | false | false | 3,717 | r | # Copyright 2014 Revolution Analytics
#
# 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
#
# Unless required by applicable law or agreed... |
library(dplyr)
library(friends)
library(tidyverse)
library(glue)
| /setup.R | no_license | joyyyyouo/friends-data-vis | R | false | false | 65 | r | library(dplyr)
library(friends)
library(tidyverse)
library(glue)
|
.First.lib <- function(lib, pkg) library.dynam("colSums", pkg, lib)
| /R/zzz.R | no_license | cran/colSums | R | false | false | 68 | r | .First.lib <- function(lib, pkg) library.dynam("colSums", pkg, lib)
|
## This first line will likely take a few seconds. Be patient!
if(!exists("NEI")){
NEI <- readRDS("./data/summarySCC_PM25.rds")
}
if(!exists("SCC")){
SCC <- readRDS("./data/Source_Classification_Code.rds")
}
library(ggplot2)
# Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) v... | /Plot3.R | no_license | wroth641/Exploratory_Data_Analysis_Coursera_Course_Project_2 | R | false | false | 1,041 | r | ## This first line will likely take a few seconds. Be patient!
if(!exists("NEI")){
NEI <- readRDS("./data/summarySCC_PM25.rds")
}
if(!exists("SCC")){
SCC <- readRDS("./data/Source_Classification_Code.rds")
}
library(ggplot2)
# Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) v... |
# Plots transparent elipses indicating individual phosphenes
# in each TMS session or average phosphene locations for all
# sessions or both
#
# GV 13/6/16
#
# Works by using a function that DHB wrote to compute finely
# sampled points in the shape of an elipse, the function
# (getellipse) takes 5 arguments (detailed ... | /gv_plot_phosphenes.R | no_license | gvilidaite/TMS_project_old | R | false | false | 5,438 | r | # Plots transparent elipses indicating individual phosphenes
# in each TMS session or average phosphene locations for all
# sessions or both
#
# GV 13/6/16
#
# Works by using a function that DHB wrote to compute finely
# sampled points in the shape of an elipse, the function
# (getellipse) takes 5 arguments (detailed ... |
context("bkpt-ymax")
library(elfgen)
test.watershed.df <- data.frame(
MAF = c(100, 200, 300, 400, 526, 600, 700, 800, 900, 1000),
NT.TOTAL.UNIQUE = c(10, 20, 30, 40, 50, 40, 30 , 20, 10, 10),
watershed.code = "testcode"
)
test_that("Function returns a dataframe", {
expect_equal(bkpt_ymax(test.watershed.df),5... | /tests/testthat/test-bkpt-ymax.R | permissive | HARPgroup/elfgen | R | false | false | 330 | r | context("bkpt-ymax")
library(elfgen)
test.watershed.df <- data.frame(
MAF = c(100, 200, 300, 400, 526, 600, 700, 800, 900, 1000),
NT.TOTAL.UNIQUE = c(10, 20, 30, 40, 50, 40, 30 , 20, 10, 10),
watershed.code = "testcode"
)
test_that("Function returns a dataframe", {
expect_equal(bkpt_ymax(test.watershed.df),5... |
testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170318e+295, 1.07912893557126e+305, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613107579-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 344 | r | testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170318e+295, 1.07912893557126e+305, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.