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 |
|---|---|---|---|---|---|---|---|---|---|
testlist <- list(x = c(7.14875553606867e-304, NaN, 1.25986739689518e-321, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... | /diceR/inst/testfiles/indicator_matrix/libFuzzer_indicator_matrix/indicator_matrix_valgrind_files/1609959775-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 432 | r | testlist <- list(x = c(7.14875553606867e-304, NaN, 1.25986739689518e-321, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... |
library(sm)
vioplot <- function(x, ..., range=1.5, h=NULL, ylim=NULL, names=NULL, horizontal=FALSE,
col="magenta", border="black", lty=1, lwd=1, rectCol="black",
colMed="white", pchMed=19, at, add=FALSE, wex=1, drawRect=TRUE)
{
# process multiple datas
datas <- list(x, ...)... | /R/vioplot.R | permissive | nanakiksc/vioplot | R | false | false | 4,252 | r | library(sm)
vioplot <- function(x, ..., range=1.5, h=NULL, ylim=NULL, names=NULL, horizontal=FALSE,
col="magenta", border="black", lty=1, lwd=1, rectCol="black",
colMed="white", pchMed=19, at, add=FALSE, wex=1, drawRect=TRUE)
{
# process multiple datas
datas <- list(x, ...)... |
# render the Rmd notebooks in the Rmd folder to the docs folder
# the docs folder pushes to gh-pages
# https://ssj-delta-cu.github.io/ssj-graphs-r/notebook-name.html
f <- 'figs/Rmd/sims.Rmd'
rmd_files <- list.files('figs/Rmd', pattern=".Rmd", full.names = T)
for(f in rmd_files){
rmarkdown::render(f, 'html... | /figs/Rmd/reder2ghpages.R | no_license | ssj-delta-cu/ssj-graphs-r | R | false | false | 359 | r | # render the Rmd notebooks in the Rmd folder to the docs folder
# the docs folder pushes to gh-pages
# https://ssj-delta-cu.github.io/ssj-graphs-r/notebook-name.html
f <- 'figs/Rmd/sims.Rmd'
rmd_files <- list.files('figs/Rmd', pattern=".Rmd", full.names = T)
for(f in rmd_files){
rmarkdown::render(f, 'html... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binary_auc.R
\name{auc}
\alias{auc}
\title{Area Under the ROC Curve}
\usage{
auc(truth, prob, positive, na_value = NaN, ...)
}
\arguments{
\item{truth}{(\code{factor()})\cr
True (observed) labels.
Must have the exactly same two levels and the... | /man/auc.Rd | no_license | cran/mlr3measures | R | false | true | 2,243 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binary_auc.R
\name{auc}
\alias{auc}
\title{Area Under the ROC Curve}
\usage{
auc(truth, prob, positive, na_value = NaN, ...)
}
\arguments{
\item{truth}{(\code{factor()})\cr
True (observed) labels.
Must have the exactly same two levels and the... |
#' @importFrom utils tail
rename_function <- function(text){
fulltext <- paste(text, collapse = "")
new_names <- names_est <- text
#if(grepl("[\\(\\)]", fulltext)){
# text <- gsub("\\(", "___O___", text)
# text <- gsub("\\)", "___C___", text)
#}
text[text == "(Intercept)"] <- "Intercept"
if(grepl(":",... | /R/get_estimates.R | no_license | xingu123/bain | R | false | false | 9,361 | r | #' @importFrom utils tail
rename_function <- function(text){
fulltext <- paste(text, collapse = "")
new_names <- names_est <- text
#if(grepl("[\\(\\)]", fulltext)){
# text <- gsub("\\(", "___O___", text)
# text <- gsub("\\)", "___C___", text)
#}
text[text == "(Intercept)"] <- "Intercept"
if(grepl(":",... |
library(igraph)
library(infection.graph)
library(animation)
n <- 1000
ed <- n * 4
prob.infect <- .1
gmma <- 14
covid_di <- default_infect(init_num = 3, rate = prob.infect)
covid_dr <- default_recover(max_recovery_time = 20)
covid_model <- infection_model(components = list(covid_di, covid_dr))
flu_di <- default_infec... | /Code/20200527_Graph_COP.R | no_license | PlusOneData/NetworkInfection | R | false | false | 2,743 | r | library(igraph)
library(infection.graph)
library(animation)
n <- 1000
ed <- n * 4
prob.infect <- .1
gmma <- 14
covid_di <- default_infect(init_num = 3, rate = prob.infect)
covid_dr <- default_recover(max_recovery_time = 20)
covid_model <- infection_model(components = list(covid_di, covid_dr))
flu_di <- default_infec... |
#' Remove cattle from a station via the DataMuster website app
#'
#' This function removes individual or groups of cattle from a station. It searches based on a list of RFID values. It is recommended that you use the propsearch function to find a list of cattle RFID numbers for a particular property. If you need assist... | /R/appremovecattle.R | no_license | vijaydairyf/DMMongoDB | R | false | false | 3,010 | r | #' Remove cattle from a station via the DataMuster website app
#'
#' This function removes individual or groups of cattle from a station. It searches based on a list of RFID values. It is recommended that you use the propsearch function to find a list of cattle RFID numbers for a particular property. If you need assist... |
testlist <- list(Beta = 0, CVLinf = -1.37672152469215e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615827829-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 487 | r | testlist <- list(Beta = 0, CVLinf = -1.37672152469215e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... |
library(shiny)
library(ggplot2)
library(dplyr)
library(CalledStrike)
ui <- fluidPage(
fluidRow(
h2(id="big-heading", " Pitch Value Across Counts"),
tags$style(HTML("#big-heading{color: blue;}")),
column(4, wellPanel(
fileInput("file1", "Read in Statcast CSV File",
accept = ".csv"),
... | /inst/shiny-examples/PitchValue2/app.R | no_license | bayesball/CalledStrike | R | false | false | 2,677 | r | library(shiny)
library(ggplot2)
library(dplyr)
library(CalledStrike)
ui <- fluidPage(
fluidRow(
h2(id="big-heading", " Pitch Value Across Counts"),
tags$style(HTML("#big-heading{color: blue;}")),
column(4, wellPanel(
fileInput("file1", "Read in Statcast CSV File",
accept = ".csv"),
... |
a <- read.csv("household_power_consumption.txt",sep=";")
a$Date <- as.Date(a$Date,format="%d/%m/%Y")
b <- subset(a, Date == "2007-02-01" | Date == "2007-02-02")
b[,3] <- as.numeric(as.character(b[,3]))
b[,4] <- as.numeric(as.character(b[,4]))
b[,5] <- as.numeric(as.character(b[,5]))
b[,7] <- as.numeric(as.character(b[,... | /plot4.R | no_license | jasonshu000/ExData_Plotting1 | R | false | false | 1,091 | r | a <- read.csv("household_power_consumption.txt",sep=";")
a$Date <- as.Date(a$Date,format="%d/%m/%Y")
b <- subset(a, Date == "2007-02-01" | Date == "2007-02-02")
b[,3] <- as.numeric(as.character(b[,3]))
b[,4] <- as.numeric(as.character(b[,4]))
b[,5] <- as.numeric(as.character(b[,5]))
b[,7] <- as.numeric(as.character(b[,... |
#####################################################################################################
# cell_types refers to all the different cluster and subclusters associated with different experiments
#
# There are three parts:
# 1. The dynamic UI elements for the user to choose
# 2. Filtering on the user selecti... | /cell_types.R | no_license | onionpork/dropviz | R | false | false | 17,564 | r | #####################################################################################################
# cell_types refers to all the different cluster and subclusters associated with different experiments
#
# There are three parts:
# 1. The dynamic UI elements for the user to choose
# 2. Filtering on the user selecti... |
##DeltaQ is a function in Louvain ALgorithm
##DeltaQ is the gain in modularity
##Value of DeltaQ is obtained by moving an isolated node into a community
#Requirement:
#g is a graph and MUST be weighted.
#If E(g3)$weight is NULL, so we affect 1 to edges of graph => so E(g3)$weight = 1
#INPUT:
#community is a vect... | /codes/deltaQ.r | no_license | arinik9/graph_theory | R | false | false | 1,999 | r | ##DeltaQ is a function in Louvain ALgorithm
##DeltaQ is the gain in modularity
##Value of DeltaQ is obtained by moving an isolated node into a community
#Requirement:
#g is a graph and MUST be weighted.
#If E(g3)$weight is NULL, so we affect 1 to edges of graph => so E(g3)$weight = 1
#INPUT:
#community is a vect... |
library(sdalr)
library(data.table)
library(magrittr)
library(dplyr)
library(DBI)
# Connect to database
con <- con_db(dbname = "burning_glass", host = "127.0.0.1", port = 5433, user = "dnair1", pass = "dnair1")
querymain <- "SELECT * FROM \"ads_main_q12016\" LIMIT 10"
query_ex_main <- "SELECT * FROM \"ads_main_q12016\... | /src/bgExplore/X_pull_BGT_example.R | no_license | uva-bi-sdad/stem_edu | R | false | false | 3,109 | r | library(sdalr)
library(data.table)
library(magrittr)
library(dplyr)
library(DBI)
# Connect to database
con <- con_db(dbname = "burning_glass", host = "127.0.0.1", port = 5433, user = "dnair1", pass = "dnair1")
querymain <- "SELECT * FROM \"ads_main_q12016\" LIMIT 10"
query_ex_main <- "SELECT * FROM \"ads_main_q12016\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mxnet_generated.R
\name{mx.nd.khatri.rao}
\alias{mx.nd.khatri.rao}
\title{Computes the Khatri-Rao product of the input matrices.}
\arguments{
\item{args}{NDArray-or-Symbol[]
Positional input matrices}
}
\value{
out The result mx.ndarray
}
\de... | /Rsite/source/Rd-man-files/mx.nd.khatri.rao.Rd | no_license | mli/new-docs | R | false | true | 1,189 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mxnet_generated.R
\name{mx.nd.khatri.rao}
\alias{mx.nd.khatri.rao}
\title{Computes the Khatri-Rao product of the input matrices.}
\arguments{
\item{args}{NDArray-or-Symbol[]
Positional input matrices}
}
\value{
out The result mx.ndarray
}
\de... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mw_mod.R
\name{calcPars}
\alias{calcPars}
\title{Store scaled and calculate unscaled parameters for models.}
\usage{
calcPars(mdl, scaled, vars)
}
\arguments{
\item{mdl}{Model}
\item{scaled}{List of scaled variables (output of `scale` comman... | /man/calcPars.Rd | no_license | mdlama/milkweed | R | false | true | 502 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mw_mod.R
\name{calcPars}
\alias{calcPars}
\title{Store scaled and calculate unscaled parameters for models.}
\usage{
calcPars(mdl, scaled, vars)
}
\arguments{
\item{mdl}{Model}
\item{scaled}{List of scaled variables (output of `scale` comman... |
require("tmca.classify")
# For parallelization: register backends
# if(.Platform$OS.type == "unix") {
# require(doMC)
# registerDoMC(8)
# } else {
# require(doParallel)
# workers <- makeCluster(4, type="SOCK")
# registerDoParallel(workers)
# }
# Manifesto data example
# ----------------------
initial_traini... | /R_tmca_package-master/tmca.classify/demo/active_learning_manifestos.R | permissive | ChristianKahmann/data_science_image | R | false | false | 1,799 | r | require("tmca.classify")
# For parallelization: register backends
# if(.Platform$OS.type == "unix") {
# require(doMC)
# registerDoMC(8)
# } else {
# require(doParallel)
# workers <- makeCluster(4, type="SOCK")
# registerDoParallel(workers)
# }
# Manifesto data example
# ----------------------
initial_traini... |
############
#Incomplete version
#Rozpracovana verze
###########
library(GenomicRanges)
library(ggplot2)
library(biomaRt)
library(Gviz)
library(Biostrings)
library(gridGraphics)
library(gridExtra)
plot_track = function(x){
plotTracks(x)
gt = grid.grab()
return(gt)
}
parse_exons = function(grange){
exons =... | /PBI/task1/script.R | no_license | kontura/Bioinformatics-school-projects | R | false | false | 4,258 | r | ############
#Incomplete version
#Rozpracovana verze
###########
library(GenomicRanges)
library(ggplot2)
library(biomaRt)
library(Gviz)
library(Biostrings)
library(gridGraphics)
library(gridExtra)
plot_track = function(x){
plotTracks(x)
gt = grid.grab()
return(gt)
}
parse_exons = function(grange){
exons =... |
source("load_data.R")
# Function to plot a histogram of global active power values.
plot1 <- function() {
if (!exists("power_consumption")) {
power_consumption <<- load_data()
}
png("plot1.png", width=480, height=480, units="px")
hist(
power_consumption$Global_active_powe... | /plot1.R | no_license | 4026/ExData_Plotting1 | R | false | false | 451 | r | source("load_data.R")
# Function to plot a histogram of global active power values.
plot1 <- function() {
if (!exists("power_consumption")) {
power_consumption <<- load_data()
}
png("plot1.png", width=480, height=480, units="px")
hist(
power_consumption$Global_active_powe... |
# reading and loading the relevant files from the UHCI HAR Dataset
xTrain <- read.table('./train/X_train.txt') # read the observations file of training set
yTrain <- read.table('./train/Y_train.txt') # read the activity ID file of training set
xTrainSubject <- read.table('./train/subject_train.txt') # read the subject... | /run_analysis.R | no_license | bpr1989/Getting-and-Cleaning-Data-Course-Project | R | false | false | 2,469 | r | # reading and loading the relevant files from the UHCI HAR Dataset
xTrain <- read.table('./train/X_train.txt') # read the observations file of training set
yTrain <- read.table('./train/Y_train.txt') # read the activity ID file of training set
xTrainSubject <- read.table('./train/subject_train.txt') # read the subject... |
# -------------------------------------
#' preparation file for third wave (2012)
#' of Tanzania data. The output of the file
#' is a collection of databases that will be
#' combined in to form a complete cross
#' section for 2012.
#'
#' Each section can be run seperately
#' provided that that all the packages
#' an... | /data_cleaning/TZA12_prep.R | no_license | tom13878/TZAYG | R | false | false | 12,495 | r | # -------------------------------------
#' preparation file for third wave (2012)
#' of Tanzania data. The output of the file
#' is a collection of databases that will be
#' combined in to form a complete cross
#' section for 2012.
#'
#' Each section can be run seperately
#' provided that that all the packages
#' an... |
setwd("DIRECTORY_OF_DATA")
rm(list=ls())
#pull in GSS data set and turn it into a useable object
#GSS is a data set of 2538 individuals and their responses to questions
data <- read.csv("GSS2014_final.csv",header=TRUE,sep=",")
#add value labels into each variable
data$race <- factor(data$race, levels = c(1,2,3), lab... | /hw/hw2/hw1.R | no_license | burrelvannjr/gradstats_csuf | R | false | false | 1,107 | r | setwd("DIRECTORY_OF_DATA")
rm(list=ls())
#pull in GSS data set and turn it into a useable object
#GSS is a data set of 2538 individuals and their responses to questions
data <- read.csv("GSS2014_final.csv",header=TRUE,sep=",")
#add value labels into each variable
data$race <- factor(data$race, levels = c(1,2,3), lab... |
library(readxl)
library(dplyr)
data = read_excel('data.xlsx') %>% mutate(Date = as.Date(Date))
data2 = data %>% filter(Date >= as.Date('2016-03-01') & Date < as.Date('2018-11-26'))
library(corrplot)
corrplot(cor(data2[,-1]), method ='number')
library(ggplot2)
ggplot(tibble(Date=rep(data2$Date,5),
... | /Job finding/Дрессировщик нейронок/task2.R | no_license | PasaOpasen/Courses_since_2019 | R | false | false | 3,009 | r |
library(readxl)
library(dplyr)
data = read_excel('data.xlsx') %>% mutate(Date = as.Date(Date))
data2 = data %>% filter(Date >= as.Date('2016-03-01') & Date < as.Date('2018-11-26'))
library(corrplot)
corrplot(cor(data2[,-1]), method ='number')
library(ggplot2)
ggplot(tibble(Date=rep(data2$Date,5),
... |
# Project name : SPOJ: AE00 - Rectangles
# Author : Wojciech Raszka
# Date created :
# Description :
# Status : Accepted (???)
# Tags : R
# Comment :
f <- file('stdin', open='r')
N = as.integer(readLines(f, n=1))
no_of_rectangles = N
root_of_N = as.integer(sqrt(N))
i = 2
while (i <= root_... | /SPOJ/AE00_Rectangles/Rectangles.R | no_license | GitPistachio/Competitive-programming | R | false | false | 462 | r | # Project name : SPOJ: AE00 - Rectangles
# Author : Wojciech Raszka
# Date created :
# Description :
# Status : Accepted (???)
# Tags : R
# Comment :
f <- file('stdin', open='r')
N = as.integer(readLines(f, n=1))
no_of_rectangles = N
root_of_N = as.integer(sqrt(N))
i = 2
while (i <= root_... |
#' plot the different statistic indicators of rolling window analysis for series
#'
sliding_window <- function(series,
win.rate=0.5,
detrending = c('no','gaussian','linear','quadratic','first-diff'),
band.rate = 0.1){
detr... | /an_common.R | no_license | Stanley666/early_warning_detection | R | false | false | 11,617 | r |
#' plot the different statistic indicators of rolling window analysis for series
#'
sliding_window <- function(series,
win.rate=0.5,
detrending = c('no','gaussian','linear','quadratic','first-diff'),
band.rate = 0.1){
detr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/title.R
\name{title_get_cell_styles_table}
\alias{title_get_cell_styles_table}
\title{Create table with columns |row|col|style name| that contains the styles names}
\usage{
title_get_cell_styles_table(tab)
}
\arguments{
\item{tab}{The core ta... | /man/title_get_cell_styles_table.Rd | no_license | harryprince/xltabr | R | false | true | 426 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/title.R
\name{title_get_cell_styles_table}
\alias{title_get_cell_styles_table}
\title{Create table with columns |row|col|style name| that contains the styles names}
\usage{
title_get_cell_styles_table(tab)
}
\arguments{
\item{tab}{The core ta... |
\name{calc_sdd}
\alias{calc_sdd}
\title{Calculate the Standard Distance Deviation (Standard Distance)}
\description{This function computes the Standard Distance Deviation (SDD) or Standard Distance from a set of points.}
\usage{calc_sdd(id=1, filename="SDD_Output.txt", centre.xy=NULL, calccentre=TRUE,
weighted=FALSE, ... | /man/calc_sdd.Rd | no_license | cran/aspace | R | false | false | 2,806 | rd | \name{calc_sdd}
\alias{calc_sdd}
\title{Calculate the Standard Distance Deviation (Standard Distance)}
\description{This function computes the Standard Distance Deviation (SDD) or Standard Distance from a set of points.}
\usage{calc_sdd(id=1, filename="SDD_Output.txt", centre.xy=NULL, calccentre=TRUE,
weighted=FALSE, ... |
################################################################################
### Part of the surveillance package, http://surveillance.r-forge.r-project.org
### Free software under the terms of the GNU General Public License, version 2,
### a copy of which is available at http://www.r-project.org/Licenses/.
###
###... | /R/twinstim_methods.R | no_license | jthetzel/surveillance | R | false | false | 32,212 | r | ################################################################################
### Part of the surveillance package, http://surveillance.r-forge.r-project.org
### Free software under the terms of the GNU General Public License, version 2,
### a copy of which is available at http://www.r-project.org/Licenses/.
###
###... |
if(!file.exists('Coursera-SwiftKey.zip')){
download.file('https://d396qusza40orc.cloudfront.net/dsscapstone/dataset/Coursera-SwiftKey.zip', 'Coursera-SwiftKey.zip')}
unzip('Coursera-SwiftKey.zip', overwrite = FALSE)
list_of_packages <- c("tm", "filehash", "openNLP", "readr", "SnowballC", "R.utils","tidyverse","tid... | /first_steps.R | no_license | CesarTC14/CapstoneProject | R | false | false | 6,316 | r | if(!file.exists('Coursera-SwiftKey.zip')){
download.file('https://d396qusza40orc.cloudfront.net/dsscapstone/dataset/Coursera-SwiftKey.zip', 'Coursera-SwiftKey.zip')}
unzip('Coursera-SwiftKey.zip', overwrite = FALSE)
list_of_packages <- c("tm", "filehash", "openNLP", "readr", "SnowballC", "R.utils","tidyverse","tid... |
#01
cnt<-0
sum<-0
for (i in 1:100) {
if (i %% 3 == 0) {
sum = sum + i
cnt = cnt + 1
}
}
cnt
sum
#02
result=0
for (i in 102:199) {
if ((i%%3) == 0 & (i%%4) == 0) {
result = result + 1
}
}
result
inf <- matrix(1:result, nrow = 1, ncol = result)
cnt<-1
for (i in 102:199) {
if (... | /if_loop_func/if_loop_func_which_test.R | no_license | dnsdudrla97/R_Project | R | false | false | 2,480 | r | #01
cnt<-0
sum<-0
for (i in 1:100) {
if (i %% 3 == 0) {
sum = sum + i
cnt = cnt + 1
}
}
cnt
sum
#02
result=0
for (i in 102:199) {
if ((i%%3) == 0 & (i%%4) == 0) {
result = result + 1
}
}
result
inf <- matrix(1:result, nrow = 1, ncol = result)
cnt<-1
for (i in 102:199) {
if (... |
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615853304-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 660 | r | testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... |
/refm/api/src/rdoc/context.rd | no_license | wanabe/rubydoc | R | false | false | 160 | rd | ||
#!/usr/bin/env Rscript
# Usage: ./deploy [app]
# Running ./deploy without any arguments will print instructions.
#
# Note the shiny-dev-center repository must be under the same directory of
# this shiny-examples repository. Please ask garrett@rstudio.com if you want
# the credentials for the account `gallery` on Shiny... | /deploy | permissive | pcmbb/shiny-examples | R | false | false | 4,958 | #!/usr/bin/env Rscript
# Usage: ./deploy [app]
# Running ./deploy without any arguments will print instructions.
#
# Note the shiny-dev-center repository must be under the same directory of
# this shiny-examples repository. Please ask garrett@rstudio.com if you want
# the credentials for the account `gallery` on Shiny... | |
#' Resulting dataset after function expectedPromptIndex has been executed on the raw ESM dataset.
#'
#' \strong{Note}: The dataset \code{expectedDf} is the result of the function \code{\link{expectedPromptIndex}}, when the raw ESM dataset \code{madeShift$esDf} is one of the function arguments. \code{madeShift$esDf} is ... | /R/expectedDf.R | no_license | mmiche/esmprep | R | false | false | 479 | r | #' Resulting dataset after function expectedPromptIndex has been executed on the raw ESM dataset.
#'
#' \strong{Note}: The dataset \code{expectedDf} is the result of the function \code{\link{expectedPromptIndex}}, when the raw ESM dataset \code{madeShift$esDf} is one of the function arguments. \code{madeShift$esDf} is ... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{usa1990}
\alias{usa1990}
\title{USA population by state in 1990.}
\format{A named vector of numbers}
\source{
\url{http://www.maa.org/publications/periodicals/convergence/apportioning-representatives-in-the... | /man/usa1990.Rd | no_license | jalapic/apportR | R | false | false | 447 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{usa1990}
\alias{usa1990}
\title{USA population by state in 1990.}
\format{A named vector of numbers}
\source{
\url{http://www.maa.org/publications/periodicals/convergence/apportioning-representatives-in-the... |
#' Get sources for an AphiaID
#'
#' @export
#' @param id (numeric/integer) an AphiaID. For `wm_sources` it's required
#' and must be `length(id) == 1`, for `wm_sources_` it's optional and
#' can be `length(id) >= 1`
#' @param name (character) one or more taxonomic names. optional
#' @template curl
#' @template ... | /R/wm_sources.R | permissive | cran/worrms | R | false | false | 999 | r | #' Get sources for an AphiaID
#'
#' @export
#' @param id (numeric/integer) an AphiaID. For `wm_sources` it's required
#' and must be `length(id) == 1`, for `wm_sources_` it's optional and
#' can be `length(id) >= 1`
#' @param name (character) one or more taxonomic names. optional
#' @template curl
#' @template ... |
# Introduction to R; Software Carpentry Workshop
# 14Apr16
detach()
#-------------------------
# LOADING DATA
# Set working directory
setwd("~/Desktop/software-carpentry-2016/data-files/r-lesson/data")
list.files()
# Print out one of the csv files in the "data" folder
read.csv("inflammation-01.csv", header = FALSE)
... | /data-files/r-lesson/scripts/Introduction to R_Workshop20160414.R | no_license | julietmwong/software-carpentry-2016 | R | false | false | 9,397 | r | # Introduction to R; Software Carpentry Workshop
# 14Apr16
detach()
#-------------------------
# LOADING DATA
# Set working directory
setwd("~/Desktop/software-carpentry-2016/data-files/r-lesson/data")
list.files()
# Print out one of the csv files in the "data" folder
read.csv("inflammation-01.csv", header = FALSE)
... |
# Topo figure S6
####################################################################################
####################################################################################
# Figure S6a
Top2_34 = hwglabr2::import_bedGraph("Top2-wildtype-34C-493-533-Reps-SK1Yue-PM_B3W3_MACS2_FE.bdg.gz")
top2_1 = hwglabr2:... | /Topo figure S6.R | permissive | hochwagenlab/topos_in_meiosis | R | false | false | 4,658 | r | # Topo figure S6
####################################################################################
####################################################################################
# Figure S6a
Top2_34 = hwglabr2::import_bedGraph("Top2-wildtype-34C-493-533-Reps-SK1Yue-PM_B3W3_MACS2_FE.bdg.gz")
top2_1 = hwglabr2:... |
#' @include Tier-class.R IntervalTier-class.R PointTier-class.R TextGrid-class.R
NULL
#' Coerce to a data.frame.
#'
#' Coerce an \code{IntervalTier}, \code{PointTier}, or \code{TextGrid} object
#' to a \code{data.frame}.
#'
#' \code{IntervalTier}s and \code{PointTier}s are coerced by passing them to
#' \code{findInte... | /R/as.data.frame.R | no_license | dejavu2010/textgRid | R | false | false | 3,301 | r | #' @include Tier-class.R IntervalTier-class.R PointTier-class.R TextGrid-class.R
NULL
#' Coerce to a data.frame.
#'
#' Coerce an \code{IntervalTier}, \code{PointTier}, or \code{TextGrid} object
#' to a \code{data.frame}.
#'
#' \code{IntervalTier}s and \code{PointTier}s are coerced by passing them to
#' \code{findInte... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include opsworks_service.R
NULL
#' Assign a registered instance to a layer
#'
#' @description
#' Assign a registered instance to a layer.
#'
#' - You can assign registered... | /paws/R/opsworks_operations.R | permissive | paws-r/paws | R | false | false | 223,904 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include opsworks_service.R
NULL
#' Assign a registered instance to a layer
#'
#' @description
#' Assign a registered instance to a layer.
#'
#' - You can assign registered... |
### Coursera R Programming: Simulation and Profiling
## Week 4: Simulation
#exploring the sample function
?sample
sample(1:6, 4, replace = TRUE)
sample(1:20, 10)
# exploring the LETTERS dataset using sample
LETTERS
sample(LETTERS)
sample()
# futher exploration of sample
flips <- sample(c(0,1), 100, replace = TRUE,... | /Swirl/simulation, graphics, data/week4 - Simulation.R | no_license | JoeWadford/Data-Science-Coursera | R | false | false | 719 | r | ### Coursera R Programming: Simulation and Profiling
## Week 4: Simulation
#exploring the sample function
?sample
sample(1:6, 4, replace = TRUE)
sample(1:20, 10)
# exploring the LETTERS dataset using sample
LETTERS
sample(LETTERS)
sample()
# futher exploration of sample
flips <- sample(c(0,1), 100, replace = TRUE,... |
rm(list = ls())
library(monocle3)
library(tidyverse)
library(imputeTS)
library(Seurat)
library(RColorBrewer)
library(Matrix)
library(cowplot)
library(future)
require(scales)
library(ggthemes)
library(sctransform)
library(patchwork)
library(harmony)
values <- c(brewer.pal(9,"Set1"),
brewer.p... | /sc_RNA_数据导入.R | no_license | Jasoncbh/scRNA | R | false | false | 15,433 | r | rm(list = ls())
library(monocle3)
library(tidyverse)
library(imputeTS)
library(Seurat)
library(RColorBrewer)
library(Matrix)
library(cowplot)
library(future)
require(scales)
library(ggthemes)
library(sctransform)
library(patchwork)
library(harmony)
values <- c(brewer.pal(9,"Set1"),
brewer.p... |
library(PathoStat)
# Load PathoStat R data
pstat <- loadPstat(indir=system.file("data", package = "PathoStat"),
infileName="pstat_data.rda")
# Run PathoStat
runPathoStat(pstat)
| /pathostat_demo.R | no_license | gwcbi/PathoScope_M3_demo | R | false | false | 199 | r | library(PathoStat)
# Load PathoStat R data
pstat <- loadPstat(indir=system.file("data", package = "PathoStat"),
infileName="pstat_data.rda")
# Run PathoStat
runPathoStat(pstat)
|
##### Project code: Net-Zero Toolkit for modelling the financial impacts of low-carbon transition scenarios
##### Date of last edit: 19/02/2019
##### Code author: Shyamal Patel
##### Description: This script reads in TIAM carbon price data from Excel and cleans it for use in later calculations and ... | /Data_cleaning/1_Scenarios/Carbon_prices.R | no_license | Allisterh/Climate_change_financial-IPR | R | false | false | 12,990 | r | ##### Project code: Net-Zero Toolkit for modelling the financial impacts of low-carbon transition scenarios
##### Date of last edit: 19/02/2019
##### Code author: Shyamal Patel
##### Description: This script reads in TIAM carbon price data from Excel and cleans it for use in later calculations and ... |
#' Convenience utility to convert daily to monthly data.
#'
#' Given data, an accompanying NetCDF coordinate variable, and the origin
#' (units) for the coordinate variable, this function will return monthly
#' resolution data.
#'
#' This is a convenience function to help use daily data with theBioClim
#' utility.
#'... | /R/daily2monthly.R | no_license | jjvanderwal/climates | R | false | false | 1,308 | r | #' Convenience utility to convert daily to monthly data.
#'
#' Given data, an accompanying NetCDF coordinate variable, and the origin
#' (units) for the coordinate variable, this function will return monthly
#' resolution data.
#'
#' This is a convenience function to help use daily data with theBioClim
#' utility.
#'... |
context("ml feature quantile discretizer")
skip_databricks_connect()
test_that("ft_quantile_discretizer() default params", {
test_requires_latest_spark()
sc <- testthat_spark_connection()
test_default_args(sc, ft_quantile_discretizer)
})
test_that("ft_quantile_discretizer() param setting", {
test_requires_lat... | /tests/testthat/test-ml-feature-quantile-discretizer.R | permissive | tnixon/sparklyr | R | false | false | 1,791 | r | context("ml feature quantile discretizer")
skip_databricks_connect()
test_that("ft_quantile_discretizer() default params", {
test_requires_latest_spark()
sc <- testthat_spark_connection()
test_default_args(sc, ft_quantile_discretizer)
})
test_that("ft_quantile_discretizer() param setting", {
test_requires_lat... |
library(diffIRT)
### Name: coef
### Title: Return estimated parameters
### Aliases: coef.diffIRT
### Keywords: models multivariate
### ** Examples
## Not run:
##D # simulate data accroding to D-diffusion IRT model
##D data=simdiff(N=100,nit=10,model="D")
##D
##D # fit the D-diffusion IRT model
##D res... | /data/genthat_extracted_code/diffIRT/examples/coef.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 422 | r | library(diffIRT)
### Name: coef
### Title: Return estimated parameters
### Aliases: coef.diffIRT
### Keywords: models multivariate
### ** Examples
## Not run:
##D # simulate data accroding to D-diffusion IRT model
##D data=simdiff(N=100,nit=10,model="D")
##D
##D # fit the D-diffusion IRT model
##D res... |
setClass('YourClass', slots = c(f = 'numeric'))
setClass('Banana', contains = 'YourClass')
f5 <- new('YourClass', f = 5)
f6 <- new('YourClass', f = 6)
f5@f
| /testData/rename/renameS4Class.after.R | permissive | JetBrains/Rplugin | R | false | false | 157 | r | setClass('YourClass', slots = c(f = 'numeric'))
setClass('Banana', contains = 'YourClass')
f5 <- new('YourClass', f = 5)
f6 <- new('YourClass', f = 6)
f5@f
|
\name{localKinhom}
\alias{localKinhom}
\alias{localLinhom}
\title{Inhomogeneous Neighbourhood Density Function}
\description{
Computes spatially-weighted versions of the
the local \eqn{K}-function or \eqn{L}-function.
}
\usage{
localKinhom(X, lambda, ...,
correction = "Ripley", verbose = TRUE, rvalu... | /man/localKinhom.Rd | no_license | cuulee/spatstat | R | false | false | 5,055 | rd | \name{localKinhom}
\alias{localKinhom}
\alias{localLinhom}
\title{Inhomogeneous Neighbourhood Density Function}
\description{
Computes spatially-weighted versions of the
the local \eqn{K}-function or \eqn{L}-function.
}
\usage{
localKinhom(X, lambda, ...,
correction = "Ripley", verbose = TRUE, rvalu... |
#' Several Simulated Datasets Illustrating Correlation Coefficients
#'
#' @format A data frame with 12800 rows and 3 columns.
#'
#' \tabular{lll}{
#' name \tab type \tab description \cr
#' \code{dataset} \tab \code{"integer"} \tab Dataset identifier \cr
#' \code{x} \tab \code{"numeric"} \tab x coordinate \cr
#' \code... | /R/covariances.R | permissive | jrnold/datums | R | false | false | 672 | r | #' Several Simulated Datasets Illustrating Correlation Coefficients
#'
#' @format A data frame with 12800 rows and 3 columns.
#'
#' \tabular{lll}{
#' name \tab type \tab description \cr
#' \code{dataset} \tab \code{"integer"} \tab Dataset identifier \cr
#' \code{x} \tab \code{"numeric"} \tab x coordinate \cr
#' \code... |
\name{MergeRareHaplotypes}
\alias{MergeRareHaplotypes}
\alias{MergeRareHaplotypes.RADdata}
\title{
Consolidate Reads from Rare Alleles
}
\description{
\code{MergeRareHaplotypes} searches for rare alleles in a
\code{"\link{RADdata}"} object, and merges them into the most similar allele
at the same locus based on nucleot... | /man/MergeRareHaplotypes.Rd | no_license | lvclark/polyRAD | R | false | false | 2,066 | rd | \name{MergeRareHaplotypes}
\alias{MergeRareHaplotypes}
\alias{MergeRareHaplotypes.RADdata}
\title{
Consolidate Reads from Rare Alleles
}
\description{
\code{MergeRareHaplotypes} searches for rare alleles in a
\code{"\link{RADdata}"} object, and merges them into the most similar allele
at the same locus based on nucleot... |
#' Fish entrainment at Fremont Weir
#'
#' Draw random number of fish entrained at Fremont Weir based on model day and abundance at Fremont Weir
#'
#' @md
#'
#' @param model_day Day that cohort reaches Fremont Weir
#' @param abundance Abundance of cohort at Fremont Weir
#' @param sim_type Simulatio... | /R/entrainment.R | no_license | mespe/YoloBypassSBM | R | false | false | 902 | r | #' Fish entrainment at Fremont Weir
#'
#' Draw random number of fish entrained at Fremont Weir based on model day and abundance at Fremont Weir
#'
#' @md
#'
#' @param model_day Day that cohort reaches Fremont Weir
#' @param abundance Abundance of cohort at Fremont Weir
#' @param sim_type Simulatio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/msqrob-utils.R
\name{makeContrast}
\alias{makeContrast}
\title{Make contrast matrix}
\usage{
makeContrast(contrasts, parameterNames)
}
\arguments{
\item{contrasts}{character vector specifying contrasts, i.e. the linear combination of the mode... | /man/makeContrast.Rd | no_license | statOmics/msqrob2 | R | false | true | 1,570 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/msqrob-utils.R
\name{makeContrast}
\alias{makeContrast}
\title{Make contrast matrix}
\usage{
makeContrast(contrasts, parameterNames)
}
\arguments{
\item{contrasts}{character vector specifying contrasts, i.e. the linear combination of the mode... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m4_hosp.R
\name{m4_poe_detail}
\alias{m4_poe_detail}
\title{Access supplementary information for orders made by providers in the hospital}
\usage{
m4_poe_detail(con, cohort = NULL, ...)
}
\arguments{
\item{con}{A \code{\link[bigrquery:bigquer... | /man/m4_poe_detail.Rd | permissive | hdshea/MIMIC4db | R | false | true | 1,660 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m4_hosp.R
\name{m4_poe_detail}
\alias{m4_poe_detail}
\title{Access supplementary information for orders made by providers in the hospital}
\usage{
m4_poe_detail(con, cohort = NULL, ...)
}
\arguments{
\item{con}{A \code{\link[bigrquery:bigquer... |
### --- project script --- ###
# --- set up data
label <- read.csv("activity_labels.txt", sep="", col.names=c("id","lb"),header=FALSE)
clabel <- read.table("features.txt", sep="", col.names=c("ccod","clb"), header=FALSE)
testx <- read.csv("./test/X_test.txt",sep="", header=FALSE)
testy <- read.csv("./test/y_tes... | /run_analysis.R | no_license | alencaru/cleanig-data-project | R | false | false | 2,932 | r | ### --- project script --- ###
# --- set up data
label <- read.csv("activity_labels.txt", sep="", col.names=c("id","lb"),header=FALSE)
clabel <- read.table("features.txt", sep="", col.names=c("ccod","clb"), header=FALSE)
testx <- read.csv("./test/X_test.txt",sep="", header=FALSE)
testy <- read.csv("./test/y_tes... |
# Define phase
library("SixSigma")
library("stringr")
fc <- file("define_processmap0_inoutsteps.txt")
raw0 <- strsplit(readLines(fc), ",")
inputs <- sapply(raw0[[1]], str_trim)
outputs <- sapply(raw0[[2]], str_trim)
steps <- sapply(raw0[[3]], str_trim)
# get io
ioraw <- read.csv("define_processmap0_ste... | /define_processmap0.R | no_license | noypi/sixsigma-r | R | false | false | 1,091 | r | # Define phase
library("SixSigma")
library("stringr")
fc <- file("define_processmap0_inoutsteps.txt")
raw0 <- strsplit(readLines(fc), ",")
inputs <- sapply(raw0[[1]], str_trim)
outputs <- sapply(raw0[[2]], str_trim)
steps <- sapply(raw0[[3]], str_trim)
# get io
ioraw <- read.csv("define_processmap0_ste... |
#' select all
#'
#' Wrapper funtion to \code{\link[AnnotationDbi]{select}}
#'
#' @param org_pkg An AnnotationHub OrgDb object
#' @param genelist A vector with list of input genes
#' @param gtf_type Input gene type
#'
#' @return A dataframe with selected IDs
#'
#' @import AnnotationDbi
#' @import reshape2
#' @impor... | /R/convert_ids.R | permissive | Yixf-Self/sig-bio-shiny | R | false | false | 3,450 | r | #' select all
#'
#' Wrapper funtion to \code{\link[AnnotationDbi]{select}}
#'
#' @param org_pkg An AnnotationHub OrgDb object
#' @param genelist A vector with list of input genes
#' @param gtf_type Input gene type
#'
#' @return A dataframe with selected IDs
#'
#' @import AnnotationDbi
#' @import reshape2
#' @impor... |
rm(list=ls())
require(knitr)
# ---- folders ----
script.folder <- "~/Documents/workflows/Brain_size_evolution/"
report.folder <- "~/Google Drive/Brain evolution/outputs/reports/"
# ---- extract-scripts-from-Rmd ----
purl(input = paste(script.folder, "match_workflow.Rmd", sep = ""))
# ---- render-Rmd ----
rmarkdow... | /render.R | permissive | DanteJimenez/Brain_size_evolution | R | false | false | 822 | r | rm(list=ls())
require(knitr)
# ---- folders ----
script.folder <- "~/Documents/workflows/Brain_size_evolution/"
report.folder <- "~/Google Drive/Brain evolution/outputs/reports/"
# ---- extract-scripts-from-Rmd ----
purl(input = paste(script.folder, "match_workflow.Rmd", sep = ""))
# ---- render-Rmd ----
rmarkdow... |
#install and load packages.
install.packages("shiny")
install.packages("shinyalert")
install.packages("DT")
install.packages("visNetwork")
install.packages("data.table")
install.packages("bslib")
install.packages("tidyverse")
install.packages("ggplot")
install.packages("shinycssloaders")
install.packages("... | /app.R | no_license | AragusSM/Shiny-DEPMAP | R | false | false | 40,007 | r | #install and load packages.
install.packages("shiny")
install.packages("shinyalert")
install.packages("DT")
install.packages("visNetwork")
install.packages("data.table")
install.packages("bslib")
install.packages("tidyverse")
install.packages("ggplot")
install.packages("shinycssloaders")
install.packages("... |
\name{seaspred}
\alias{seaspred}
\description{Calculate Box-Jenkins Forecasts}
\title{Calculate Box-Jenkins Forecasts}
\usage{seaspred(x,ords,coeffs,lags,rvar,tf,tl,hl,conf)}
\arguments{
\item{x}{Array of length $n$ containing the data.}
\item{ords}{An array of length 8 containing the full and subset AR orders,
fol... | /man/seaspred.Rd | no_license | cran/timeslab | R | false | false | 2,219 | rd |
\name{seaspred}
\alias{seaspred}
\description{Calculate Box-Jenkins Forecasts}
\title{Calculate Box-Jenkins Forecasts}
\usage{seaspred(x,ords,coeffs,lags,rvar,tf,tl,hl,conf)}
\arguments{
\item{x}{Array of length $n$ containing the data.}
\item{ords}{An array of length 8 containing the full and subset AR orders,
fol... |
## Creates a matrix and calculates or retrieves the inverse
## Creates the matrix which can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(inverse) i <<- inverse
getinverse <- function... | /cachematrix.R | no_license | 6A25Y/ProgrammingAssignment2 | R | false | false | 640 | r | ## Creates a matrix and calculates or retrieves the inverse
## Creates the matrix which can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(inverse) i <<- inverse
getinverse <- function... |
# Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of metforminDM
#
# 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/... | /metforminDM/R/CreateAllCohorts.R | permissive | rlawodud3920/CDM-Rpackage-2020 | R | false | false | 6,028 | r | # Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of metforminDM
#
# 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/... |
#!/usr/bin/env Rscript
usage = "\
Rscript run-fastMeanFilter.r [OPTIONS] MATRIX-1
"
sessionInfo()
suppressPackageStartupMessages(library(optparse))
option_list <- list(
make_option(c("-p","--prep"),default="none", help="matrix preprocessing (none or log2)"),
make_option(c("-s","--smoothing"),default="0,1,2,3,4,5",... | /code/code.hicseq-standard/run-fastMeanFilter.r | no_license | NYU-BFX/hic-bench | R | false | false | 1,669 | r | #!/usr/bin/env Rscript
usage = "\
Rscript run-fastMeanFilter.r [OPTIONS] MATRIX-1
"
sessionInfo()
suppressPackageStartupMessages(library(optparse))
option_list <- list(
make_option(c("-p","--prep"),default="none", help="matrix preprocessing (none or log2)"),
make_option(c("-s","--smoothing"),default="0,1,2,3,4,5",... |
library(robustvarComp)
load("test-dataset.Rdata")
do.test <- TRUE
if (do.test & Sys.info()['sysname']=="Linux") {
if (!file.exists('Init-savedvalues.R')) {
set.seed(2345)
Init <- robustvarComp:::varComprob.initial(y=y, x=x, V=V, control=test.init.control)
Init$call <- NULL
dput(Init, file='Init-savedvalues... | /tests/varComprob.initial.R | no_license | cran/robustvarComp | R | false | false | 573 | r | library(robustvarComp)
load("test-dataset.Rdata")
do.test <- TRUE
if (do.test & Sys.info()['sysname']=="Linux") {
if (!file.exists('Init-savedvalues.R')) {
set.seed(2345)
Init <- robustvarComp:::varComprob.initial(y=y, x=x, V=V, control=test.init.control)
Init$call <- NULL
dput(Init, file='Init-savedvalues... |
2 + 2 # control + enter or control + R
# works as calculator
1:50 # print numbers 1 to 50 to the console
50:1 # print numbers 50 to 1 in reverse order to console
print ("Hello World!")
# ctrl + L is going to clear the console
x <- 1:5 # assigning numbers 1 to 5 to the object x
x
y <- c(3, 5, 8, 1, ... | /R+code+1.R | no_license | durgesh0072/Basic-R-Programming | R | false | false | 6,157 | r | 2 + 2 # control + enter or control + R
# works as calculator
1:50 # print numbers 1 to 50 to the console
50:1 # print numbers 50 to 1 in reverse order to console
print ("Hello World!")
# ctrl + L is going to clear the console
x <- 1:5 # assigning numbers 1 to 5 to the object x
x
y <- c(3, 5, 8, 1, ... |
library(quantmod)
library(data.table)
library(parallel)
library(foreach)
library(doParallel)
library(dplyr)
library(pryr)
library(smooth)
rm(list=ls(all.names = T))
# https://www.nseindia.com/products/content/equities/equities/eq_security.htm
# https://www.nseindia.com/corporates/content/securities_in... | /archives/g01.R | no_license | ajithomasv/stockanalysis | R | false | false | 6,157 | r |
library(quantmod)
library(data.table)
library(parallel)
library(foreach)
library(doParallel)
library(dplyr)
library(pryr)
library(smooth)
rm(list=ls(all.names = T))
# https://www.nseindia.com/products/content/equities/equities/eq_security.htm
# https://www.nseindia.com/corporates/content/securities_in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coef_var.R
\name{coef_var}
\alias{coef_var}
\title{Coefficient of variation}
\usage{
coef_var(x)
}
\arguments{
\item{x}{A numeric vector}
}
\value{
The coefficient of variation for the given vector
}
\description{
Calculates the coefficient o... | /man/coef_var.Rd | no_license | riverarh/GMisc | R | false | true | 488 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coef_var.R
\name{coef_var}
\alias{coef_var}
\title{Coefficient of variation}
\usage{
coef_var(x)
}
\arguments{
\item{x}{A numeric vector}
}
\value{
The coefficient of variation for the given vector
}
\description{
Calculates the coefficient o... |
library(gplots)
library(viridis)
data <- read.csv("F:/Thesis/Leukemia/UpDown_Leukemia.csv", row.names=1)
names_up <- vector('character')
relativec_up <- vector('numeric')
names_down <- vector('character')
relativec_down <- vector('numeric')
data_ = as.matrix(data)
for (i in 1:nrow(data)){
vec1 = as... | /InfluentialGeneIdentificationforCancerClassification/Leukemia/UpDown.R | no_license | UtshaDas/Influential-Gene-Identification-for-Cancer-Classification | R | false | false | 1,867 | r | library(gplots)
library(viridis)
data <- read.csv("F:/Thesis/Leukemia/UpDown_Leukemia.csv", row.names=1)
names_up <- vector('character')
relativec_up <- vector('numeric')
names_down <- vector('character')
relativec_down <- vector('numeric')
data_ = as.matrix(data)
for (i in 1:nrow(data)){
vec1 = as... |
process_execution_data <- function(files) {
names(files) <- NULL
dates <- vector()
class(dates) <- "POSIXct"
for (file in files) {
date <- as.POSIXct(sub(".*(\\d{2}-\\d{2}-\\d{2}_\\d{4}-\\d{2}-\\d{2})_.*$", "\\1", file), format = "%H-%M-%S_%F")
dates <- c(dates, date)
}
commits <... | /execution.R | no_license | reactorlabs/rjit_benchmarks | R | false | false | 6,149 | r | process_execution_data <- function(files) {
names(files) <- NULL
dates <- vector()
class(dates) <- "POSIXct"
for (file in files) {
date <- as.POSIXct(sub(".*(\\d{2}-\\d{2}-\\d{2}_\\d{4}-\\d{2}-\\d{2})_.*$", "\\1", file), format = "%H-%M-%S_%F")
dates <- c(dates, date)
}
commits <... |
#' Str_detect with NA handling
#'
#' @param string Input vector. Either a character vector, or something coercible to one.
#' @param pattern Pattern to look for. See \code{\link[stringr]{str_detect}} .
#' @param default a default value to be used if string is NA
#'
#' @return a logical vector, assuming default is set ... | /R/str_detect2.R | no_license | crazybilly/muadc | R | false | false | 576 | r | #' Str_detect with NA handling
#'
#' @param string Input vector. Either a character vector, or something coercible to one.
#' @param pattern Pattern to look for. See \code{\link[stringr]{str_detect}} .
#' @param default a default value to be used if string is NA
#'
#' @return a logical vector, assuming default is set ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny_modules_timeSeries.R
\name{rAmCharts-shinymodules-ts}
\alias{rAmCharts-shinymodules-ts}
\alias{rAmChartsTimeSeriesUI}
\alias{rAmChartsTimeSeriesServer}
\title{Shiny module to render large time-series data with live server-client aggrega... | /man/rAmCharts-shinymodules-ts.Rd | no_license | Djaiff/rAmCharts | R | false | true | 7,333 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny_modules_timeSeries.R
\name{rAmCharts-shinymodules-ts}
\alias{rAmCharts-shinymodules-ts}
\alias{rAmChartsTimeSeriesUI}
\alias{rAmChartsTimeSeriesServer}
\title{Shiny module to render large time-series data with live server-client aggrega... |
chart30 <-
function(x,y=30){
require(PerformanceAnalytics)
N<-length(x)
charts.PerformanceSummary(x[(N-y):N,],methods="ModifiedVaR",colorset="dodgerblue3")
}
| /R/chart30.R | no_license | CanoBerlanga/DisplayFINANCE | R | false | false | 158 | r | chart30 <-
function(x,y=30){
require(PerformanceAnalytics)
N<-length(x)
charts.PerformanceSummary(x[(N-y):N,],methods="ModifiedVaR",colorset="dodgerblue3")
}
|
get.gibbs.idx <- function(chain.length, burn.in, thinning){
all.idx <- 1: chain.length
burned.idx <- all.idx[-(1: burn.in)]
thinned.idx <- burned.idx[seq(1,length(burned.idx), by= thinning)]
thinned.idx
}
merge.gibbs.res <-function(gibbs.theta, gibbs.Znkg, gibbs.Zkg, type.to.subtype.mapping){
print("merge su... | /TED/R/runTed.R | no_license | Danko-Lab/TED | R | false | false | 12,710 | r | get.gibbs.idx <- function(chain.length, burn.in, thinning){
all.idx <- 1: chain.length
burned.idx <- all.idx[-(1: burn.in)]
thinned.idx <- burned.idx[seq(1,length(burned.idx), by= thinning)]
thinned.idx
}
merge.gibbs.res <-function(gibbs.theta, gibbs.Znkg, gibbs.Zkg, type.to.subtype.mapping){
print("merge su... |
library(readxl)
library(tidyverse)
library(tidytext)
library(rvest)
x1 <- read_excel("pubs/pubs2014.xls")
x2 <- read_excel("pubs/pubs2015.xls")
x3 <- read_excel("pubs/pubs2016.xls")
x4 <- read_excel("pubs/pubs2017.xls")
x <- rbind.data.frame(x1,x2,x3,x4)
rm(x1,x2,x3,x4)
# a few authors had stars in front of them, re... | /biblio_makedata.R | no_license | iandurbach/biblio | R | false | false | 2,962 | r | library(readxl)
library(tidyverse)
library(tidytext)
library(rvest)
x1 <- read_excel("pubs/pubs2014.xls")
x2 <- read_excel("pubs/pubs2015.xls")
x3 <- read_excel("pubs/pubs2016.xls")
x4 <- read_excel("pubs/pubs2017.xls")
x <- rbind.data.frame(x1,x2,x3,x4)
rm(x1,x2,x3,x4)
# a few authors had stars in front of them, re... |
panelInput <- function(id, label="Revisit design") {
# A module UI function for numeric input related to panel design.
ns <- NS(id) # a namespace function using the provided id
style <-
'display:inline-block; vertical-align:center; width:20%;'
tagList(
tags$div(style=style,
numericInput(ns... | /rd-emulator/modules/panel.R | no_license | eborgman/sevilleta-workshop-tester | R | false | false | 1,640 | r | panelInput <- function(id, label="Revisit design") {
# A module UI function for numeric input related to panel design.
ns <- NS(id) # a namespace function using the provided id
style <-
'display:inline-block; vertical-align:center; width:20%;'
tagList(
tags$div(style=style,
numericInput(ns... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/DataDocumentation.R
\docType{data}
\name{CWBZim}
\alias{CWBZim}
\title{Presence/absence of the coffee white stem borer in Zimbabwe 2003}
\format{data.frame with five columns, longitude, latitude, value (1 for
presence), type (prese... | /man/CWBZim.Rd | permissive | Tangaroaluka/zoon | R | false | false | 1,487 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/DataDocumentation.R
\docType{data}
\name{CWBZim}
\alias{CWBZim}
\title{Presence/absence of the coffee white stem borer in Zimbabwe 2003}
\format{data.frame with five columns, longitude, latitude, value (1 for
presence), type (prese... |
\name{HIV}
\alias{HIV}
\docType{data}
\title{ Epidemiological capture-recapture Data on HIV}
\description{
Epidemiological capture-recapture data on HIV from four reporting centers in Rome, Italy.
}
\usage{HIV}
\format{
15 by 5 numeric matrix, with the following columns:
\describe{
\item{\code{c1}, \... | /man/HIV.Rd | no_license | cran/Rcapture | R | false | false | 1,893 | rd | \name{HIV}
\alias{HIV}
\docType{data}
\title{ Epidemiological capture-recapture Data on HIV}
\description{
Epidemiological capture-recapture data on HIV from four reporting centers in Rome, Italy.
}
\usage{HIV}
\format{
15 by 5 numeric matrix, with the following columns:
\describe{
\item{\code{c1}, \... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/thyroid.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="mae",alpha=0.95,family="gaussian",standardize=TRUE)
sink('./thyroid_095.txt',append=TRUE... | /Model/EN/Classifier/thyroid/thyroid_095.R | no_license | esbgkannan/QSMART | R | false | false | 351 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/thyroid.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="mae",alpha=0.95,family="gaussian",standardize=TRUE)
sink('./thyroid_095.txt',append=TRUE... |
setwd("C:/Users/martisl/OneDrive - NIWA/NIWA Research Project/R_files")
# rm(list = ls()) #will clear all objects includes hidden objects.
# gc() #free up memrory and report the memory usage.
# load("results\\chl.stack.list.Rda")
# library(ncdf4) # package for netcdf manipulation
library(raster) # package for ra... | /2.0 trendsPlots.R | no_license | lindamartis/Temp1 | R | false | false | 3,894 | r | setwd("C:/Users/martisl/OneDrive - NIWA/NIWA Research Project/R_files")
# rm(list = ls()) #will clear all objects includes hidden objects.
# gc() #free up memrory and report the memory usage.
# load("results\\chl.stack.list.Rda")
# library(ncdf4) # package for netcdf manipulation
library(raster) # package for ra... |
## Put comments here that give an overall description of what your
## functions do
## This functions makes Cache of matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m <<- NULL
}
get <- function() x
setmatrix <- function(solve) m <<- solve
getmatrix <- fun... | /cachematrix.R | no_license | prashantkumarsahu/ProgrammingAssignment2 | R | false | false | 761 | r | ## Put comments here that give an overall description of what your
## functions do
## This functions makes Cache of matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m <<- NULL
}
get <- function() x
setmatrix <- function(solve) m <<- solve
getmatrix <- fun... |
source("\\\\helix.klient.uib.no\\biohome\\aey022\\rdata\\Mabira vegetation survey data\\matrix veg load data.r")
# 'keep2' is a grid of true/false values that selects those columns of 'trueherbs' that have at least one ocurrence in them (!is.na means 'is not na'), and those transects which have some data for trueherbs... | /Mabira vegetation survey data/Herb composition analyses.r | no_license | amyeycott/Matrix | R | false | false | 7,821 | r | source("\\\\helix.klient.uib.no\\biohome\\aey022\\rdata\\Mabira vegetation survey data\\matrix veg load data.r")
# 'keep2' is a grid of true/false values that selects those columns of 'trueherbs' that have at least one ocurrence in them (!is.na means 'is not na'), and those transects which have some data for trueherbs... |
#' Download a table of contents of eurostat datasets.
#'
#' @description Download table of contents (TOC) of eurostat datasets.
#' Note that the values in column 'code' should be used
#' to download a selected dataset.
#'
#' @return A data.frame with eight columns
#' \item{title}{The name of dat... | /R/get_eurostat_toc.R | no_license | gancedo/eurostat | R | false | false | 1,328 | r | #' Download a table of contents of eurostat datasets.
#'
#' @description Download table of contents (TOC) of eurostat datasets.
#' Note that the values in column 'code' should be used
#' to download a selected dataset.
#'
#' @return A data.frame with eight columns
#' \item{title}{The name of dat... |
library(gdata)
library(ggplot2)
library(dplyr)
library(tidyr)
library(tidyverse)
#Question1 Create the interactive visualization
crime<-read.csv("crime incident report.csv")
data<-crime %>% group_by(DISTRICT, MONTH, .drop = FALSE) %>% count(name = "RECORDS") %>% drop_na()
data<- data[-c(1,2,3,4,5,6,7,8,9,10,11,12),]
... | /Homework5.R | no_license | ZiliHuang1/Data-Visualization | R | false | false | 1,728 | r | library(gdata)
library(ggplot2)
library(dplyr)
library(tidyr)
library(tidyverse)
#Question1 Create the interactive visualization
crime<-read.csv("crime incident report.csv")
data<-crime %>% group_by(DISTRICT, MONTH, .drop = FALSE) %>% count(name = "RECORDS") %>% drop_na()
data<- data[-c(1,2,3,4,5,6,7,8,9,10,11,12),]
... |
library(dplyr)
library(readr)
library(readxl)
library(tidyr)
library(purrr)
# A script for importing and tidying all data ----------------------------------------------------------------
# ** Data outside Europe -------------------------------------------------------------------------------------
GDP_NZ <- read_xls... | /R/Synth_data.R | permissive | andrewbaxter439/teen-preg-project | R | false | false | 7,736 | r | library(dplyr)
library(readr)
library(readxl)
library(tidyr)
library(purrr)
# A script for importing and tidying all data ----------------------------------------------------------------
# ** Data outside Europe -------------------------------------------------------------------------------------
GDP_NZ <- read_xls... |
cohFam_Years <- read.csv(file="cohFam_Years.csv",head=TRUE,sep=";")
cohFam_yearsProg <- glm(cohFam ~ yearsProg, data=cohFam_Years, family=binomial())
summary(cohFam_yearsProg)
cohFam_yearsProgLargeProj <- glm(cohFam ~ yearsProgLargeProj, data=cohFam_Years, family=binomial())
summary(cohFam_yearsProgLargeProj)
cohFam_... | /phd_empirical_studies/cohesion_devOpinion/r_workingDir/LogisticReg_R_script.r | no_license | bcdasilv/R_Python_ForDataScience | R | false | false | 477 | r | cohFam_Years <- read.csv(file="cohFam_Years.csv",head=TRUE,sep=";")
cohFam_yearsProg <- glm(cohFam ~ yearsProg, data=cohFam_Years, family=binomial())
summary(cohFam_yearsProg)
cohFam_yearsProgLargeProj <- glm(cohFam ~ yearsProgLargeProj, data=cohFam_Years, family=binomial())
summary(cohFam_yearsProgLargeProj)
cohFam_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.databasemigrationservice_operations.R
\name{describe_event_categories}
\alias{describe_event_categories}
\title{Lists categories for all event source types, or, if specified, for a specified source type}
\usage{
describe_event_categories... | /service/paws.databasemigrationservice/man/describe_event_categories.Rd | permissive | CR-Mercado/paws | R | false | true | 1,094 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.databasemigrationservice_operations.R
\name{describe_event_categories}
\alias{describe_event_categories}
\title{Lists categories for all event source types, or, if specified, for a specified source type}
\usage{
describe_event_categories... |
#' Distance matrix averaged across group scores
#'
#' The \code{dist_sc_group} function computes a distance matrix for each group of
#' scoring criteria and then averages the pair-wise distances across groups.
#' This allows the computation of a more weighted distance measure and a
#' closer clustering of indicators th... | /R/dist_sc_group.R | no_license | saskiaotto/INDperform | R | false | false | 2,735 | r | #' Distance matrix averaged across group scores
#'
#' The \code{dist_sc_group} function computes a distance matrix for each group of
#' scoring criteria and then averages the pair-wise distances across groups.
#' This allows the computation of a more weighted distance measure and a
#' closer clustering of indicators th... |
misc.prefs <- list(basic.theme)
source(paste0(scripts, "_TEMP-editedGGPIRATE.R"))
col.agen <- list(
scale_fill_manual(labels=agdlabels, values=agdcolors),
scale_color_manual(labels=agdlabels, values=agdcolors))
col.agen.bu <- list(
scale_fill_manual(labels=agdlabels, values=agdcolors.bu.gsc),
... | /Paper/JournalManuscript/subscripts/FIG-effectillustration.R | no_license | marisacasillas/NorthAmericanChildren-ADSvsCDS | R | false | false | 23,522 | r | misc.prefs <- list(basic.theme)
source(paste0(scripts, "_TEMP-editedGGPIRATE.R"))
col.agen <- list(
scale_fill_manual(labels=agdlabels, values=agdcolors),
scale_color_manual(labels=agdlabels, values=agdcolors))
col.agen.bu <- list(
scale_fill_manual(labels=agdlabels, values=agdcolors.bu.gsc),
... |
source("downloadArchive.R")
# Load the NEI & SCC data frames.
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Subset NEI data by Baltimore's fip.
baltimoreNEI <- NEI[NEI$fips=="24510",]
# Aggregate using sum the Baltimore emissions data by year
aggTotalsBaltimore <- aggregate... | /plot2.R | no_license | uditta/course-project_2 | R | false | false | 629 | r | source("downloadArchive.R")
# Load the NEI & SCC data frames.
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Subset NEI data by Baltimore's fip.
baltimoreNEI <- NEI[NEI$fips=="24510",]
# Aggregate using sum the Baltimore emissions data by year
aggTotalsBaltimore <- aggregate... |
# Jake Yeung
# Date of Creation: 2019-04-03
# File: ~/projects/scchic/scripts/scripts_analysis/build95_primetime/variance_over_pseudotime_plots.R
# Plot the outputs
rm(list=ls())
tstart <- Sys.time()
library(dplyr)
library(ggplot2)
library(tidyr)
library(JFuncs)
source("scripts/Rfunctions/Aux.R")
source("scripts/R... | /scripts/scripts_analysis/build95_primetime_from_server/variance_over_pseudotime_plots_parallel_for_server.OneMark.R | no_license | jakeyeung/scChIC-analysis | R | false | false | 1,965 | r | # Jake Yeung
# Date of Creation: 2019-04-03
# File: ~/projects/scchic/scripts/scripts_analysis/build95_primetime/variance_over_pseudotime_plots.R
# Plot the outputs
rm(list=ls())
tstart <- Sys.time()
library(dplyr)
library(ggplot2)
library(tidyr)
library(JFuncs)
source("scripts/Rfunctions/Aux.R")
source("scripts/R... |
ggplot(sensitivity,
aes(x = factor, y = npv, col = metric)
) +
geom_line() +
scale_x_continuous(labels = scales::percent) +
scale_y_continuous(labels = scales::dollar) +
labs(
title = "Sensivity Analysis",
x = "Factor on Original Assumption",
y = "Projected NPV",
col = "Metric"
)... | /financial-analytics/ch4/solution-03b.R | permissive | cassiopagnoncelli/datacamp-courses | R | false | false | 321 | r | ggplot(sensitivity,
aes(x = factor, y = npv, col = metric)
) +
geom_line() +
scale_x_continuous(labels = scales::percent) +
scale_y_continuous(labels = scales::dollar) +
labs(
title = "Sensivity Analysis",
x = "Factor on Original Assumption",
y = "Projected NPV",
col = "Metric"
)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get-conv-mgnbiot.R
\name{get_conv_mgnbiot}
\alias{get_conv_mgnbiot}
\title{Extract conversion factor used to transform data from nitrogen in mg to
biomass in tonnes.}
\usage{
get_conv_mgnbiot(prm_biol)
}
\arguments{
\item{prm_biol}{Character ... | /man/get_conv_mgnbiot.Rd | no_license | jporobicg/atlantistools | R | false | true | 914 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get-conv-mgnbiot.R
\name{get_conv_mgnbiot}
\alias{get_conv_mgnbiot}
\title{Extract conversion factor used to transform data from nitrogen in mg to
biomass in tonnes.}
\usage{
get_conv_mgnbiot(prm_biol)
}
\arguments{
\item{prm_biol}{Character ... |
library(dslabs)
library(caret)
mnist <- read_mnist()
data <- mnist$train$images
dataindex <- mnist$train$labels
sample_4 <- matrix(as.numeric(data[4,]), nrow = 28, byrow = TRUE)
image(sample_4, col = grey.colors(255))
sample_700 <- matrix(as.numeric(data[700,]), nrow = 28, byrow = TRUE)
image(sample_700, col = grey.col... | /scripts.R | no_license | Wenlong-Y/mnist_deeplearning | R | false | false | 10,704 | r | library(dslabs)
library(caret)
mnist <- read_mnist()
data <- mnist$train$images
dataindex <- mnist$train$labels
sample_4 <- matrix(as.numeric(data[4,]), nrow = 28, byrow = TRUE)
image(sample_4, col = grey.colors(255))
sample_700 <- matrix(as.numeric(data[700,]), nrow = 28, byrow = TRUE)
image(sample_700, col = grey.col... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gg-plots.R
\name{ggally_cor}
\alias{ggally_cor}
\title{Correlation from the Scatter Plot}
\usage{
ggally_cor(data, mapping, alignPercent = 0.6, method = "pearson",
use = "complete.obs", corAlignPercent = NULL, corMethod = NULL,
corUse = N... | /man/ggally_cor.Rd | no_license | sjewo/ggally | R | false | true | 1,500 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gg-plots.R
\name{ggally_cor}
\alias{ggally_cor}
\title{Correlation from the Scatter Plot}
\usage{
ggally_cor(data, mapping, alignPercent = 0.6, method = "pearson",
use = "complete.obs", corAlignPercent = NULL, corMethod = NULL,
corUse = N... |
library(worrms)
### Name: wm_records_common
### Title: Get records by vernacular name, optional fuzzy matching
### Aliases: wm_records_common wm_records_common_
### ** Examples
## Not run:
##D wm_records_common(name = 'dolphin')
##D wm_records_common(name = 'clam')
##D
##D wm_records_common_(name = c('dolphin', '... | /data/genthat_extracted_code/worrms/examples/wm_records_common.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 469 | r | library(worrms)
### Name: wm_records_common
### Title: Get records by vernacular name, optional fuzzy matching
### Aliases: wm_records_common wm_records_common_
### ** Examples
## Not run:
##D wm_records_common(name = 'dolphin')
##D wm_records_common(name = 'clam')
##D
##D wm_records_common_(name = c('dolphin', '... |
/EasyQC/R/fnEasyPLOT13.r | no_license | barbarathorslund/warfarin | R | false | false | 3,562 | r | ||
#
# url <- 'https://raw.githubusercontent.com/plotly/datasets/master/2011_february_aa_flight_paths.csv'
# flights <- read.csv(url)
# flights$id <- seq_len(nrow(flights))
# flights$stroke <- sample(1:3, size = nrow(flights), replace = T)
# flights$info <- paste0("<b>",flights$airport1, " - ", flights$airport2, "</b>")
#... | /R/scratch.R | no_license | kimnewzealand/mapdeck | R | false | false | 4,950 | r | #
# url <- 'https://raw.githubusercontent.com/plotly/datasets/master/2011_february_aa_flight_paths.csv'
# flights <- read.csv(url)
# flights$id <- seq_len(nrow(flights))
# flights$stroke <- sample(1:3, size = nrow(flights), replace = T)
# flights$info <- paste0("<b>",flights$airport1, " - ", flights$airport2, "</b>")
#... |
treePValues <- function(tree, abundances, environments){
igraphTree <- graph.edgelist(tree)
treePValues <- vector(length = length(V(igraphTree)))
names(treePValues) <- V(igraphTree)$name
head(treePValues)
for(vertex in V(igraphTree)){
## first, aggregate data descending ##
## from... | /R/treePValues.R | no_license | nignatiadis/structSSI | R | false | false | 1,608 | r | treePValues <- function(tree, abundances, environments){
igraphTree <- graph.edgelist(tree)
treePValues <- vector(length = length(V(igraphTree)))
names(treePValues) <- V(igraphTree)$name
head(treePValues)
for(vertex in V(igraphTree)){
## first, aggregate data descending ##
## from... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{cabat_dict}
\alias{cabat_dict}
\title{CA-BAT dictionary}
\description{
The default internationalisation dictionary used by the CA-BAT.
}
| /man/cabat_dict.Rd | permissive | pmcharrison/cabat | R | false | true | 243 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{cabat_dict}
\alias{cabat_dict}
\title{CA-BAT dictionary}
\description{
The default internationalisation dictionary used by the CA-BAT.
}
|
library(ggplot2)
library(scales)
# Echo 1ms
df <- read.csv("../throughput-echo-1-1ms.csv", header = FALSE)
colnames(df) <- c("App", "Transport", "Concurrency", "Channels", "Monotonic", "Parallelism", "Affinity", "Size", "Num", "Latency", "Time")
df <- transform(df, Time = as.numeric(Time) / 1000)
df1 <- sub... | /Rscripts/throughput-echo-1ms.R | no_license | cmeiklejohn/partisan-usenix-atc-2019 | R | false | false | 3,734 | r | library(ggplot2)
library(scales)
# Echo 1ms
df <- read.csv("../throughput-echo-1-1ms.csv", header = FALSE)
colnames(df) <- c("App", "Transport", "Concurrency", "Channels", "Monotonic", "Parallelism", "Affinity", "Size", "Num", "Latency", "Time")
df <- transform(df, Time = as.numeric(Time) / 1000)
df1 <- sub... |
#This code is used for the course project of Getting and Cleaning Data in Coursera
library(plyr)
#read the data sets
features<-read.table("features.txt")
activityLabels<-read.table("activity_labels.txt")
trainingSet<-read.table("./train/X_train.txt")
trainingLabels<-read.table("./train/y_train.txt")
traini... | /run_analysis.R | no_license | Huaihanchen/Course-Project-of-Getting-and-Cleaning-Data | R | false | false | 2,482 | r | #This code is used for the course project of Getting and Cleaning Data in Coursera
library(plyr)
#read the data sets
features<-read.table("features.txt")
activityLabels<-read.table("activity_labels.txt")
trainingSet<-read.table("./train/X_train.txt")
trainingLabels<-read.table("./train/y_train.txt")
traini... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.