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 |
|---|---|---|---|---|---|---|---|---|---|
## demo
rm(list = ls())
setwd("Your dir") ## change to the direcotry including all source codes and datasets
source("ppmiCFDTI.R")
dat <- c("hao", "kuang", "e")
numFolds <- 10 ## default 10
for (db in dat) {
## 1.1
## just pure similarity
if (FALSE) {
## PPMI
ppmiCFDTI(
db = db,... | /sim_Dice/demo_all.R | no_license | minghao2016/NBCF4DTIPred | R | false | false | 11,920 | r | ## demo
rm(list = ls())
setwd("Your dir") ## change to the direcotry including all source codes and datasets
source("ppmiCFDTI.R")
dat <- c("hao", "kuang", "e")
numFolds <- 10 ## default 10
for (db in dat) {
## 1.1
## just pure similarity
if (FALSE) {
## PPMI
ppmiCFDTI(
db = db,... |
source("~/tesis/all_function.R")
init_run()
set.seed(72)
if(!exists("compile")){
compile <- data.frame(ID=character(),
DateExecuted=character(),
Model=character(),
InOutSample=character(),
Location=character(),
... | /individual_model/standalone/MLP-MultiLayer-Individual.R | no_license | vcarlsberg/tesis | R | false | false | 3,456 | r | source("~/tesis/all_function.R")
init_run()
set.seed(72)
if(!exists("compile")){
compile <- data.frame(ID=character(),
DateExecuted=character(),
Model=character(),
InOutSample=character(),
Location=character(),
... |
# This script was adapted by Hana Hourston (IOS) from one written by Emily Chisholm (BIO)
# Inputs: a raw ADCP file (.000, .664, or .pd0) and a csv file containing metadata
# Corrects for magnetic declination
# Flags bad leading and trailing ensembles
# Creates a netCDF file
# WARNING: Use caution when working with A... | /sample_scripts/callR_fromPython/ADCP_process_L1_pycalled.R | no_license | hhourston/mooredDataProcessing_adcp | R | false | false | 8,043 | r | # This script was adapted by Hana Hourston (IOS) from one written by Emily Chisholm (BIO)
# Inputs: a raw ADCP file (.000, .664, or .pd0) and a csv file containing metadata
# Corrects for magnetic declination
# Flags bad leading and trailing ensembles
# Creates a netCDF file
# WARNING: Use caution when working with A... |
library(dplyr)
##### Download and unzip raw data and read tables
# please comment the following lines, if you do not want to download the raw data automatically
# download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", "getdata_projectfiles_UCI HAR Dataset.zip")
# unzip... | /run_analysis.R | no_license | huchzi/getting-and-cleaning-data | R | false | false | 2,241 | r | library(dplyr)
##### Download and unzip raw data and read tables
# please comment the following lines, if you do not want to download the raw data automatically
# download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", "getdata_projectfiles_UCI HAR Dataset.zip")
# unzip... |
library(doBy)
load('data/curf/1982.rda')
load('data/curf/1986.rda')
load('data/curf/1995.rda')
load('data/curf/1996.rda')
load('data/curf/1997.rda')
load('data/curf/1998.rda')
load('data/curf/2001.rda')
load('data/curf/2003.rda')
load('data/curf/2006.rda')
load('data/curf/2008.rda')
load('data/curf/2010.rda')
load('da... | /munge/20_appended_series.R | no_license | nsolcampbell/tasks | R | false | false | 4,900 | r | library(doBy)
load('data/curf/1982.rda')
load('data/curf/1986.rda')
load('data/curf/1995.rda')
load('data/curf/1996.rda')
load('data/curf/1997.rda')
load('data/curf/1998.rda')
load('data/curf/2001.rda')
load('data/curf/2003.rda')
load('data/curf/2006.rda')
load('data/curf/2008.rda')
load('data/curf/2010.rda')
load('da... |
###############################################################################
# #
# WIFI | TRAINING KNN FOR LATITUDE | VERSION 3.0 | by ELSE #
# #
... | /old scripts/2. Prediction LATITUDE by KNN (V5).R | no_license | elsemaja/WIFI-Fingerprinting | R | false | false | 4,732 | r | ###############################################################################
# #
# WIFI | TRAINING KNN FOR LATITUDE | VERSION 3.0 | by ELSE #
# #
... |
# test for skewness of distributions
library(tidyverse)
library(RSQLite)
library(cowplot)
get_data = function(filename){
comboDb = dbConnect(SQLite(), dbname = filename)
initExtension(comboDb)
vaccineDF = dbGetQuery(comboDb, 'SELECT * FROM pooled_results')
dbDisconnect(comboDb)
return(vaccineDF)
}
resultsD... | /figures/multimodal/test_skew.R | no_license | cobeylab/vaccine-manuscript | R | false | false | 4,562 | r | # test for skewness of distributions
library(tidyverse)
library(RSQLite)
library(cowplot)
get_data = function(filename){
comboDb = dbConnect(SQLite(), dbname = filename)
initExtension(comboDb)
vaccineDF = dbGetQuery(comboDb, 'SELECT * FROM pooled_results')
dbDisconnect(comboDb)
return(vaccineDF)
}
resultsD... |
\name{map.statistic}
\alias{map.statistic}
\title{Mapping of a spatial index
}
\description{
Mapping of a spatial index with circles whose sizes and colors vary with the values of the index
}
\usage{
map.statistic(coordinates, statistic, region, cex.circles = c(3, 0.2), legend,
main = NULL, add = FALSE)
}
\argument... | /man/map.statistic.Rd | no_license | cran/FeedbackTS | R | false | false | 3,137 | rd | \name{map.statistic}
\alias{map.statistic}
\title{Mapping of a spatial index
}
\description{
Mapping of a spatial index with circles whose sizes and colors vary with the values of the index
}
\usage{
map.statistic(coordinates, statistic, region, cex.circles = c(3, 0.2), legend,
main = NULL, add = FALSE)
}
\argument... |
## load rtweet package
library(rtweet)
library(dplyr)
library(ggplot2)
#More max display
options(max.print=1000000)
save_path = "C:/Users/chris/Desktop/NS-FinalProject/tweet_half_data_a/"
names = read.csv("C:/Users/chris/Desktop/NS-FinalProject/half_data_a_friends.csv", header = FALSE)
calls = 0
#F rtweet and their... | /Code/get_twitter_data/get_tweet_all.R | no_license | Christopher-P/PoliSent | R | false | false | 1,269 | r | ## load rtweet package
library(rtweet)
library(dplyr)
library(ggplot2)
#More max display
options(max.print=1000000)
save_path = "C:/Users/chris/Desktop/NS-FinalProject/tweet_half_data_a/"
names = read.csv("C:/Users/chris/Desktop/NS-FinalProject/half_data_a_friends.csv", header = FALSE)
calls = 0
#F rtweet and their... |
## makeCacheMatrix makes a matrix that stores functions that will be used by CacheSolve
##to use: x<-matrix(); makeCacheMatrix(x)
## 'x' can be a square or complex matrix
makeCacheMatrix <- function(x = matrix()) {
v <- NULL
set <- function(y) {
x <<- y
v <<- NULL
}
get <- function() x
setinverse <-... | /cachematrix.R | no_license | cjsmith315/ProgrammingAssignment2 | R | false | false | 861 | r |
## makeCacheMatrix makes a matrix that stores functions that will be used by CacheSolve
##to use: x<-matrix(); makeCacheMatrix(x)
## 'x' can be a square or complex matrix
makeCacheMatrix <- function(x = matrix()) {
v <- NULL
set <- function(y) {
x <<- y
v <<- NULL
}
get <- function() x
setinverse <-... |
library(readr)
library(robCompositions)
library(rrcov)?
library(compositions)
library(MASS)
library(HiDimDA)
######################
# Data Preprocessing #
######################
set.seed(123)
df <- read_csv("~/Statistik/coda/raw_data/Forensic_3D_All.csv")
# Mark NAs. Remove unknown Sex rows.
df[df == -9999] <- NA... | /code/skull_analysis_uncleaned_dataset.R | no_license | mpff/coda | R | false | false | 2,284 | r | library(readr)
library(robCompositions)
library(rrcov)?
library(compositions)
library(MASS)
library(HiDimDA)
######################
# Data Preprocessing #
######################
set.seed(123)
df <- read_csv("~/Statistik/coda/raw_data/Forensic_3D_All.csv")
# Mark NAs. Remove unknown Sex rows.
df[df == -9999] <- NA... |
library(dplyr)
library(ggplot2)
# helper function to get points on an ellipse -----------------------------
# Note: angles must be specified in units of pi.
get_ellipsePointsDat <- function(center_x, center_y, radius_x, radius_y,
angle_min, angle_max) {
ellipsis_dat <- data.frame(... | /man/figures/hex-sticker/individual_images/main_plot.R | permissive | bauer-alex/APCtools | R | false | false | 5,860 | r |
library(dplyr)
library(ggplot2)
# helper function to get points on an ellipse -----------------------------
# Note: angles must be specified in units of pi.
get_ellipsePointsDat <- function(center_x, center_y, radius_x, radius_y,
angle_min, angle_max) {
ellipsis_dat <- data.frame(... |
## build a basemap of the world; inspired by an R-bloggers post by Kristoffer Magnusson http://www.r-bloggers.com/working-with-shapefiles-projections-and-world-maps-in-ggplot/
### here are the URLs etc for the data required by the basemap.R script
cat(paste("You need to download from the following Natural Earth Data... | /worldMaps/rscripts/datainfo.R | permissive | milosobilic/mapMakeR | R | false | false | 917 | r | ## build a basemap of the world; inspired by an R-bloggers post by Kristoffer Magnusson http://www.r-bloggers.com/working-with-shapefiles-projections-and-world-maps-in-ggplot/
### here are the URLs etc for the data required by the basemap.R script
cat(paste("You need to download from the following Natural Earth Data... |
context("Test is_isomorphic")
test_that("Invalid graphs", {
g = list(list(edges = 1L,
weights = 1 ))
bad_g1 = list(list())
bad_g2 = list(list(edges = 1L))
bad_g3 = list(list(weights = 1))
expect_error(is_isomorphic(g,bad_g1))
expect_error(is_isomorphic(g,bad_g2))
expect_error(is_isomo... | /hw4/tests/test_is_isomorphic.R | no_license | ra125/STA-523 | R | false | false | 2,062 | r | context("Test is_isomorphic")
test_that("Invalid graphs", {
g = list(list(edges = 1L,
weights = 1 ))
bad_g1 = list(list())
bad_g2 = list(list(edges = 1L))
bad_g3 = list(list(weights = 1))
expect_error(is_isomorphic(g,bad_g1))
expect_error(is_isomorphic(g,bad_g2))
expect_error(is_isomo... |
#' Prepare quantile groups for each celltype based on specificity
#'
#' Quantile groups are stored in an extra matrix ('quantiles') in the returned CTD. This function also removes any genes
#' from the CTD data which are not 1:1 orthologs with the GWAS species.
#'
#' @param ctd Cell type data
#' @param specificity_spec... | /R/prepare.quantile.groups.r | no_license | xhyuo/MAGMA_Celltyping | R | false | false | 3,925 | r | #' Prepare quantile groups for each celltype based on specificity
#'
#' Quantile groups are stored in an extra matrix ('quantiles') in the returned CTD. This function also removes any genes
#' from the CTD data which are not 1:1 orthologs with the GWAS species.
#'
#' @param ctd Cell type data
#' @param specificity_spec... |
library(tidyverse)
library(rvest)
url <- "https://editorial.rottentomatoes.com/guide/the-200-best-movies-of-the-2010s/"
html_obj <- read_html(url)
html_obj %>%
html_nodes(".article_movie_title") %>%
html_nodes("a") %>%
html_text()
url <- "https://en.wikipedia.org/wiki/List_of_American_films_of_"
... | /scripts/scraping_films_actors_wikipedia_rvest.R | no_license | DSApps-2020/Class_Slides | R | false | false | 1,872 | r | library(tidyverse)
library(rvest)
url <- "https://editorial.rottentomatoes.com/guide/the-200-best-movies-of-the-2010s/"
html_obj <- read_html(url)
html_obj %>%
html_nodes(".article_movie_title") %>%
html_nodes("a") %>%
html_text()
url <- "https://en.wikipedia.org/wiki/List_of_American_films_of_"
... |
mkdirs <- function(fp) {
if(!file.exists(fp)) {
mkdirs(dirname(fp))
dir.create(fp)
}
}
make_xfile <- function(mgmt_df, dir_run, pixel){
require(tidyverse)
require(magrittr)
require(stringr)
## sowing window a data frame that contain both start and end julian day
## N_app amount of ... | /make_xfile.R | no_license | haachicanoy/workshop_urosario | R | false | false | 3,673 | r |
mkdirs <- function(fp) {
if(!file.exists(fp)) {
mkdirs(dirname(fp))
dir.create(fp)
}
}
make_xfile <- function(mgmt_df, dir_run, pixel){
require(tidyverse)
require(magrittr)
require(stringr)
## sowing window a data frame that contain both start and end julian day
## N_app amount of ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset.R
\name{purge_dataset_cache}
\alias{purge_dataset_cache}
\title{Delete cached data about TCGA datasets.}
\usage{
purge_dataset_cache()
}
\description{
Delete cached data about TCGA datasets.
}
| /man/purge_dataset_cache.Rd | no_license | davidecrs/omicsdata | R | false | true | 279 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset.R
\name{purge_dataset_cache}
\alias{purge_dataset_cache}
\title{Delete cached data about TCGA datasets.}
\usage{
purge_dataset_cache()
}
\description{
Delete cached data about TCGA datasets.
}
|
\name{predict.multinomClust}
\alias{predict.multinomClust}
\title{Prediction of probabilities for cluster membership}
\description{Either within data used for clustering, or on new data.}
\usage{
\method{predict}{multinomClust}(object, number.clusters = NULL,
new_Y_data = NULL, new_X_data = NULL, \dots)
}
\arguments{
... | /man/predict.multinomClust.Rd | no_license | bomarkussen/clusterMultinomial | R | false | false | 890 | rd | \name{predict.multinomClust}
\alias{predict.multinomClust}
\title{Prediction of probabilities for cluster membership}
\description{Either within data used for clustering, or on new data.}
\usage{
\method{predict}{multinomClust}(object, number.clusters = NULL,
new_Y_data = NULL, new_X_data = NULL, \dots)
}
\arguments{
... |
rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... | /Simulations/Scripts/R/Rare/Scenario 8a/CMPEn50KrareScen8aAB.R | no_license | yadevi/CausalMPE | R | false | false | 4,220 | r | rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... |
library(outbreaks)
| /tests/testthat/helper.R | no_license | dirkschumacher/epicontacts | R | false | false | 19 | r | library(outbreaks)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_305}
\alias{movie_305}
\title{The Godfather: Part II}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt007156... | /man/movie_305.Rd | permissive | kjhealy/networkdata | R | false | true | 1,025 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_305}
\alias{movie_305}
\title{The Godfather: Part II}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt007156... |
# Environment Prep and Data Loading
library(caret); library(rpart); library(rpart.plot); library(rattle); library(randomForest);
library(corrplot)
urlTrain <- "https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv"
urlTest <- "https://d396qusza40orc.cloudfront.net/predmachlearn/pml-testing.csv"
... | /pracMachLrn.R | no_license | timbowler/PracticalMachineLearning | R | false | false | 3,393 | r | # Environment Prep and Data Loading
library(caret); library(rpart); library(rpart.plot); library(rattle); library(randomForest);
library(corrplot)
urlTrain <- "https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv"
urlTest <- "https://d396qusza40orc.cloudfront.net/predmachlearn/pml-testing.csv"
... |
library(ggplot2)
library(Cairo)
source("vib_div_util.R")
fp = "../../"
out_fp = paste0(fp, "output/sensitivity_test", sep="")
plot_fp = paste0(fp, "code/plot/fig/", sep="")
plot_fn = paste0(plot_fp, "fig6_cold_root_sensitivity.pdf", sep="")
# collect all files
files = list.files(out_fp, full.names=T)
files = files[... | /code/plot/plot_fig6_fossil_sensitivity.R | permissive | mlandis/vib_div | R | false | false | 4,017 | r | library(ggplot2)
library(Cairo)
source("vib_div_util.R")
fp = "../../"
out_fp = paste0(fp, "output/sensitivity_test", sep="")
plot_fp = paste0(fp, "code/plot/fig/", sep="")
plot_fn = paste0(plot_fp, "fig6_cold_root_sensitivity.pdf", sep="")
# collect all files
files = list.files(out_fp, full.names=T)
files = files[... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/authenticate_v1_x.R
\name{authenticate_v1_x}
\alias{authenticate_v1_x}
\title{Authenticate against the MySportsFeeds API (v1.x)}
\usage{
authenticate_v1_x(apikey, password)
}
\arguments{
\item{apikey.}{Your MySportsFeeds API Key}
\item{passw... | /man/authenticate_v1_x.Rd | permissive | MySportsFeeds/mysportsfeeds-r | R | false | true | 531 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/authenticate_v1_x.R
\name{authenticate_v1_x}
\alias{authenticate_v1_x}
\title{Authenticate against the MySportsFeeds API (v1.x)}
\usage{
authenticate_v1_x(apikey, password)
}
\arguments{
\item{apikey.}{Your MySportsFeeds API Key}
\item{passw... |
rm(list=ls())
#setwd("/Users/selcukorkmaz/Dropbox/GSD/Studies/Web-Tools(Devel)/PDBTextMiner/")
library("caret")
library("XML")
library("NLP")
library("tm")
library("FeatureHashing")
library("openNLP")
library("numbers")
library("Rmpfr")
set.seed(1234)
positives=read.table("positives.txt",T, sep="\t", quote="")
dim(pos... | /HashingTrick(linux).r | no_license | selcukorkmaz/BAEP | R | false | false | 7,297 | r | rm(list=ls())
#setwd("/Users/selcukorkmaz/Dropbox/GSD/Studies/Web-Tools(Devel)/PDBTextMiner/")
library("caret")
library("XML")
library("NLP")
library("tm")
library("FeatureHashing")
library("openNLP")
library("numbers")
library("Rmpfr")
set.seed(1234)
positives=read.table("positives.txt",T, sep="\t", quote="")
dim(pos... |
#Licensed Materials - Property of IBM
#IBM SPSS Products: Statistics General
#(c) Copyright IBM Corp. 2014
#US Government Users Restricted Rights - Use, duplication or disclosure
#restricted by GSA ADP Schedule Contract with IBM Corp.
# Author: JKP, IBM SPSS
# Version = 1.0.2
# history
# 25-Sep-2013 - original versi... | /src/STATS_PROPOR_REGR.R | permissive | IBMPredictiveAnalytics/STATS_PROPOR_REGR | R | false | false | 19,576 | r | #Licensed Materials - Property of IBM
#IBM SPSS Products: Statistics General
#(c) Copyright IBM Corp. 2014
#US Government Users Restricted Rights - Use, duplication or disclosure
#restricted by GSA ADP Schedule Contract with IBM Corp.
# Author: JKP, IBM SPSS
# Version = 1.0.2
# history
# 25-Sep-2013 - original versi... |
library(tidyverse)
library(tidycensus)
library(sf)
library(here)
# sourceDir <- getSrcDirectory(function(dummy) {dummy})
# dummy <- function() {0}
# here()
# uncomment to avoid cache
options(tigris_use_cache = TRUE)
# Load API key for Census Bureau. Register here: https://api.census.gov/data/key_signup.html
api_key ... | /data/get_data.R | permissive | DataKind-DC/census2020 | R | false | false | 7,174 | r | library(tidyverse)
library(tidycensus)
library(sf)
library(here)
# sourceDir <- getSrcDirectory(function(dummy) {dummy})
# dummy <- function() {0}
# here()
# uncomment to avoid cache
options(tigris_use_cache = TRUE)
# Load API key for Census Bureau. Register here: https://api.census.gov/data/key_signup.html
api_key ... |
# Code to plot Protea data in structural trait PC space and color points based on physiological performance
# load libraries
library(ggplot2)
library(cowplot)
# load Protea_data if not loaded
load("Data/Protea_data.RData")
# Define Performance and Structural Traits, as in Protea_data dataframe
Performance_Traits <-... | /Code/pca-performance_plots.R | no_license | KristenNolting/trait-perf-paradox | R | false | false | 17,435 | r | # Code to plot Protea data in structural trait PC space and color points based on physiological performance
# load libraries
library(ggplot2)
library(cowplot)
# load Protea_data if not loaded
load("Data/Protea_data.RData")
# Define Performance and Structural Traits, as in Protea_data dataframe
Performance_Traits <-... |
#plot4.R
# Code to read the data is available in the "R" file (), so that the same
# subset data can be used for all Plots
# Plots the "Sub metering" on "Y-Axis" and plots three different sub-metering
png("plot4.png", width=480, height=480)
par(mfrow=c(2,2), mar=c(4,4,2,1), oma=c(0,0,2,0))
with(dataFeb, {
pl... | /plot4.R | no_license | SunderRaman/ExData_Plotting1 | R | false | false | 980 | r | #plot4.R
# Code to read the data is available in the "R" file (), so that the same
# subset data can be used for all Plots
# Plots the "Sub metering" on "Y-Axis" and plots three different sub-metering
png("plot4.png", width=480, height=480)
par(mfrow=c(2,2), mar=c(4,4,2,1), oma=c(0,0,2,0))
with(dataFeb, {
pl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crq.R
\name{crq}
\alias{crq}
\title{data.frame-first formula-second method for \code{\link[quantreg]{crq}}}
\usage{
crq(data, formula, ...)
}
\arguments{
\item{data}{Data frame containing the variables in the model}
\item{formula}{\code{\lin... | /man/crq.Rd | no_license | Lingtax/twidlr | R | false | true | 893 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crq.R
\name{crq}
\alias{crq}
\title{data.frame-first formula-second method for \code{\link[quantreg]{crq}}}
\usage{
crq(data, formula, ...)
}
\arguments{
\item{data}{Data frame containing the variables in the model}
\item{formula}{\code{\lin... |
###
# basic wrangling to clean-up species observation data
# note: this requires no georeferencing. it assumes that a statistically significant number of records exist for the species to be analyzed
library(tidyverse)
# list columns to select what to keep
colnames(sp)
# keep only species, longitude, and l... | /tutorial/02_species_data_clean.R | no_license | mormoops/ENMpipe | R | false | false | 5,118 | r | ###
# basic wrangling to clean-up species observation data
# note: this requires no georeferencing. it assumes that a statistically significant number of records exist for the species to be analyzed
library(tidyverse)
# list columns to select what to keep
colnames(sp)
# keep only species, longitude, and l... |
\name{createSOAPConverter}
\alias{createSOAPConverter}
\alias{createSOAPConverter,ANY-method}
\alias{createSOAPConverter,ArrayType-method}
\alias{createSOAPConverter,ClassDefinition-method}
\alias{createSOAPConverter,Element-method}
\alias{createSOAPConverter,RestrictedListType-method}
\alias{createSOAPConverter,Restri... | /man/createSOAPConverter.Rd | no_license | eblondel/XMLSchema | R | false | false | 1,364 | rd | \name{createSOAPConverter}
\alias{createSOAPConverter}
\alias{createSOAPConverter,ANY-method}
\alias{createSOAPConverter,ArrayType-method}
\alias{createSOAPConverter,ClassDefinition-method}
\alias{createSOAPConverter,Element-method}
\alias{createSOAPConverter,RestrictedListType-method}
\alias{createSOAPConverter,Restri... |
p <- ggplot(dt, aes(x=reorder(Ligand, Nuclei_PA_Gated_EdUPositiveProportionLogitRUV3LoessBacktransformed, FUN=median), y=Nuclei_PA_Gated_EdUPositiveProportionLogitRUV3LoessBacktransformed, fill=Ligand))+
geom_boxplot(outlier.colour = NA, alpha=.5)+
guides(fill=FALSE, colour=FALSE)+
xlab("Ligand")+ylab("Normaliz... | /MEP-LINCS_SynapseSnippets.R | permissive | MEP-LINCS/MEPDataExplorer | R | false | false | 1,423 | r |
p <- ggplot(dt, aes(x=reorder(Ligand, Nuclei_PA_Gated_EdUPositiveProportionLogitRUV3LoessBacktransformed, FUN=median), y=Nuclei_PA_Gated_EdUPositiveProportionLogitRUV3LoessBacktransformed, fill=Ligand))+
geom_boxplot(outlier.colour = NA, alpha=.5)+
guides(fill=FALSE, colour=FALSE)+
xlab("Ligand")+ylab("Normaliz... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocess.R
\name{dispersion_genes}
\alias{dispersion_genes}
\title{Top Dispersed Genes}
\usage{
dispersion_genes(normalized_data, ngenes_keep = 1000)
}
\arguments{
\item{normalized_data}{object returned by \code{normalize()} module.}
\item... | /man/dispersion_genes.Rd | no_license | mosaddek-hossain/dropClust | R | false | true | 707 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocess.R
\name{dispersion_genes}
\alias{dispersion_genes}
\title{Top Dispersed Genes}
\usage{
dispersion_genes(normalized_data, ngenes_keep = 1000)
}
\arguments{
\item{normalized_data}{object returned by \code{normalize()} module.}
\item... |
setwd("/home/pablo/Desktop/Facultad/5to\ año/Machine-Learning/Practica3/Ej3/dos_elipses/")
datos <- read.table("vals",sep = " ",header = FALSE)
cat(median(datos[,1]),median(datos[,2]))
| /Practica3/Ej4/dos_elipses/printMedian.R | no_license | palonso22/Machine-Learning | R | false | false | 186 | r | setwd("/home/pablo/Desktop/Facultad/5to\ año/Machine-Learning/Practica3/Ej3/dos_elipses/")
datos <- read.table("vals",sep = " ",header = FALSE)
cat(median(datos[,1]),median(datos[,2]))
|
function(){
tabPanel("Help",
fluidPage(
tags$style(HTML("
p{ text-align:center; }")),
fluidRow(h2("WQP Data Discovery Tool Help", style = "text-align:center")),
HTML("<h4 style = 'text-align:center'> This tool imports data from the <strong... | /external/Help.R | no_license | tetratech/DataDiscoveryTool | R | false | false | 11,543 | r | function(){
tabPanel("Help",
fluidPage(
tags$style(HTML("
p{ text-align:center; }")),
fluidRow(h2("WQP Data Discovery Tool Help", style = "text-align:center")),
HTML("<h4 style = 'text-align:center'> This tool imports data from the <strong... |
# Load and Install Needed packages
library(data.table)
library(dplyr)
library(plyr)
# Preliminary Work
# set up the link, file name, and directory of the project
link <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
projDir <- getwd()
archive <- "D:/DataScience/get... | /run_analysis.R | no_license | Bosch-uni/gettingAndCleaningDataProject | R | false | false | 3,616 | r | # Load and Install Needed packages
library(data.table)
library(dplyr)
library(plyr)
# Preliminary Work
# set up the link, file name, and directory of the project
link <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
projDir <- getwd()
archive <- "D:/DataScience/get... |
#!/usr/bin/Rscript
options(scipen=100)
startTime <- Sys.time()
################ USE THE FOLLOWING FILES FROM PREVIOUS STEPS
# - script11: emp_pval_combined.Rdata
################################################################################
################ OUTPUT
# - emp_pval_meanCorr.Rdata + plots
###########... | /20_getSignifCombined.R | no_license | marzuf/TAD_DE_pipeline_v2 | R | false | false | 5,584 | r | #!/usr/bin/Rscript
options(scipen=100)
startTime <- Sys.time()
################ USE THE FOLLOWING FILES FROM PREVIOUS STEPS
# - script11: emp_pval_combined.Rdata
################################################################################
################ OUTPUT
# - emp_pval_meanCorr.Rdata + plots
###########... |
# Comparing species
# Loading covariates and observations
source("R/loading_map_obs_covs.R")
# Model visualization functions
source("R/Model_visualization_functions.R")
# From "full_paralell_CV.R":
res_cv <- readRDS("R/output/cv_output_4modse0.RDS")
library(patchwork)
library(RColorBrewer)
#library(ggtheme)
# Fr... | /R/Visualizing_species_comparison.R | no_license | emmaSkarstein/Citizen_Science_Skarstein_master | R | false | false | 9,584 | r | # Comparing species
# Loading covariates and observations
source("R/loading_map_obs_covs.R")
# Model visualization functions
source("R/Model_visualization_functions.R")
# From "full_paralell_CV.R":
res_cv <- readRDS("R/output/cv_output_4modse0.RDS")
library(patchwork)
library(RColorBrewer)
#library(ggtheme)
# Fr... |
#' Function for preliminary analysis of neighboring genes from IMG
#'
#' This function uses IMG metadatasets for genes of interest and their genomic neighbors to do some QC and identify subfamilies of hypothetical proteins.
#' @param imgGenes What is the file with the metadata for your gene of interest? Filename as str... | /R/prepNeighbors.r | no_license | hawadem/prettyClusters | R | false | false | 8,933 | r | #' Function for preliminary analysis of neighboring genes from IMG
#'
#' This function uses IMG metadatasets for genes of interest and their genomic neighbors to do some QC and identify subfamilies of hypothetical proteins.
#' @param imgGenes What is the file with the metadata for your gene of interest? Filename as str... |
#' Object Pooling in R.
#'
#' Creates objects pools for various types of objects in R to
#' make it less computationally expensive to get a fetch and
#' release them.
#'
#' @name pool
#' @docType package
#' @import DBI
NULL
#' @import DBI
NULL
#' @import methods
NULL
#' @importFrom R6 R6Class
NULL
#' @importFrom la... | /R/utils.R | no_license | Tim113/pool | R | false | false | 336 | r | #' Object Pooling in R.
#'
#' Creates objects pools for various types of objects in R to
#' make it less computationally expensive to get a fetch and
#' release them.
#'
#' @name pool
#' @docType package
#' @import DBI
NULL
#' @import DBI
NULL
#' @import methods
NULL
#' @importFrom R6 R6Class
NULL
#' @importFrom la... |
library(bbemkr)
### Name: xm
### Title: Values of true regression function
### Aliases: xm
### Keywords: datasets
### ** Examples
data(xm)
| /data/genthat_extracted_code/bbemkr/examples/xm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 146 | r | library(bbemkr)
### Name: xm
### Title: Values of true regression function
### Aliases: xm
### Keywords: datasets
### ** Examples
data(xm)
|
# -----------------------------------------------------------------------------------
#' @title
#' Smooth and Plot One Dimensional Kolmogorov-Zurbenko Periodogram
#'
#' @description
#' \code{kz.smpg} is designed to smooth and plot 1D KZ periodogram easily.
#' It will calculate the raw periodogram, m... | /R/smpg.R | no_license | cran/kzfs | R | false | false | 5,949 | r | # -----------------------------------------------------------------------------------
#' @title
#' Smooth and Plot One Dimensional Kolmogorov-Zurbenko Periodogram
#'
#' @description
#' \code{kz.smpg} is designed to smooth and plot 1D KZ periodogram easily.
#' It will calculate the raw periodogram, m... |
library(dplyr)
library(hflights)
View(hflights)
############################################## data check, structure and summary of data ####
class(hflights)
names(hflights)
dim(hflights)
str(hflights)
summary(hflights)
psych::des... | /DS_R_Edureka.R | no_license | ruhulali/R_Codes | R | false | false | 5,398 | r | library(dplyr)
library(hflights)
View(hflights)
############################################## data check, structure and summary of data ####
class(hflights)
names(hflights)
dim(hflights)
str(hflights)
summary(hflights)
psych::des... |
library(brms)
library(dplyr)
library(readr)
Df <- read_csv("data/diagram.csv") %>%
select(-X1)
ggplot(Df,
aes(x = group, y = descript, col = group)
) + geom_boxplot()
M_null <- brm(descript ~ 1, Df, save_all_pars = T)
summary(M_null)
plot(M_null)
M <- brm(descript ~ group, Df, save_all_pars = T)
summary(... | /code/brms_demo.R | no_license | mark-andrews/psbayes | R | false | false | 2,342 | r | library(brms)
library(dplyr)
library(readr)
Df <- read_csv("data/diagram.csv") %>%
select(-X1)
ggplot(Df,
aes(x = group, y = descript, col = group)
) + geom_boxplot()
M_null <- brm(descript ~ 1, Df, save_all_pars = T)
summary(M_null)
plot(M_null)
M <- brm(descript ~ group, Df, save_all_pars = T)
summary(... |
\name{RCircos.Gene.Name.Plot}
\alias{RCircos.Gene.Name.Plot}
\title{
Draw Gene Names on a Data Track
}
\description{
Label gene names along chromosome ideogram or a data track. RCircos core components and graphic device must be initialized before drawing.
}
\usage{
RCircos.Gene.Name.Plot(gene.data=NULL, name.c... | /man/RCircos.Gene.Name.Plot.Rd | no_license | cran/RCircos | R | false | false | 2,059 | rd | \name{RCircos.Gene.Name.Plot}
\alias{RCircos.Gene.Name.Plot}
\title{
Draw Gene Names on a Data Track
}
\description{
Label gene names along chromosome ideogram or a data track. RCircos core components and graphic device must be initialized before drawing.
}
\usage{
RCircos.Gene.Name.Plot(gene.data=NULL, name.c... |
#' The MODISDOWNLOADER class
#'
#' Use this class for downloading MODIS tiles.
#'
#' You can specify MODIS's products, tiles, collections, satellites, and time interval.
#'
#'@section Slots:
#' \describe{
#' \item{\code{timeWindowStart}:}{Object of class \code{"character"}, it is the start date of the time interva... | /R/ModisDownloader.R | permissive | albhasan/blissR | R | false | false | 11,005 | r | #' The MODISDOWNLOADER class
#'
#' Use this class for downloading MODIS tiles.
#'
#' You can specify MODIS's products, tiles, collections, satellites, and time interval.
#'
#'@section Slots:
#' \describe{
#' \item{\code{timeWindowStart}:}{Object of class \code{"character"}, it is the start date of the time interva... |
#################################################################
########################
## Naive Byes with Bernoulli features
########################
require("e1071")
require(cvTools)
require(ROCR)
SPEC <- read.table("F:/SPEC.data",sep=",")# 23 columns
SPEC <- droplevels(SPEC)
y <- as.numeric(SPEC[,23]=='one')
... | /hanlu_feng_ass2/code/bayes.R | no_license | fhlkm/Machine-learning | R | false | false | 1,323 | r |
#################################################################
########################
## Naive Byes with Bernoulli features
########################
require("e1071")
require(cvTools)
require(ROCR)
SPEC <- read.table("F:/SPEC.data",sep=",")# 23 columns
SPEC <- droplevels(SPEC)
y <- as.numeric(SPEC[,23]=='one')
... |
library('preprocessCore')
library("SIMLR")
library("igraph")
library("ggplot2")
library("Rtsne")
library("ggpubr")
featureName <- "xCellGeneList"
#featureName <- "AntigenProcessing_KEGG.txt"
data.rsubread.correct <- read.table(file = 'data.subset',header = T, sep = '\t')
sampleName <- colnames(data.rsubread.correct)
... | /Sample_Mutation_Correction/Lable_Gene_Plot_Each_Cell_Type.R | permissive | JiFansen/TCGA_Project | R | false | false | 3,705 | r | library('preprocessCore')
library("SIMLR")
library("igraph")
library("ggplot2")
library("Rtsne")
library("ggpubr")
featureName <- "xCellGeneList"
#featureName <- "AntigenProcessing_KEGG.txt"
data.rsubread.correct <- read.table(file = 'data.subset',header = T, sep = '\t')
sampleName <- colnames(data.rsubread.correct)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/environmentName.R
\name{environmentName}
\alias{environmentName}
\title{fun_name}
\usage{
environmentName(params)
}
\arguments{
\item{param}{fun_name}
}
\description{
kolejna funkcja podmieniona
}
\keyword{Tutaj}
\keyword{Zaczynamy}
\keyword{... | /man/environmentName.Rd | no_license | granatb/RapeR | R | false | true | 413 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/environmentName.R
\name{environmentName}
\alias{environmentName}
\title{fun_name}
\usage{
environmentName(params)
}
\arguments{
\item{param}{fun_name}
}
\description{
kolejna funkcja podmieniona
}
\keyword{Tutaj}
\keyword{Zaczynamy}
\keyword{... |
#' Measure excess attenuation
#'
#' \code{excess_attenuation} measures excess attenuation in signals referenced in an extended selection table.
#' @usage excess_attenuation(X, parallel = 1, pb = TRUE, method = 1,
#' bp = NULL, hop.size = 1, wl = NULL, ovlp = 70)
#' @param X object of class 'selection_table', 'extende... | /R/excess_attenuation.R | no_license | gsvidaurre/baRulho | R | false | false | 9,221 | r | #' Measure excess attenuation
#'
#' \code{excess_attenuation} measures excess attenuation in signals referenced in an extended selection table.
#' @usage excess_attenuation(X, parallel = 1, pb = TRUE, method = 1,
#' bp = NULL, hop.size = 1, wl = NULL, ovlp = 70)
#' @param X object of class 'selection_table', 'extende... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/RMark-package.R
\docType{data}
\name{brownie}
\alias{brownie}
\title{San Luis Valley mallard data}
\format{A data frame with 108 observations on the following 5 variables.
\describe{ \item{ch}{a character vector containing the ... | /RMark/man/brownie.Rd | no_license | buddhidayananda/RMark | R | false | false | 3,898 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/RMark-package.R
\docType{data}
\name{brownie}
\alias{brownie}
\title{San Luis Valley mallard data}
\format{A data frame with 108 observations on the following 5 variables.
\describe{ \item{ch}{a character vector containing the ... |
\name{pca.fd}
\alias{pca.fd}
\title{
Functional Principal Components Analysis
}
\description{
Functional Principal components analysis aims to display types of
variation across a sample of functions. Principal components analysis
is an exploratory data analysis that tends to be an early part of many
projects... | /man/pca.fd.Rd | no_license | bonniewan/fda | R | false | false | 2,604 | rd | \name{pca.fd}
\alias{pca.fd}
\title{
Functional Principal Components Analysis
}
\description{
Functional Principal components analysis aims to display types of
variation across a sample of functions. Principal components analysis
is an exploratory data analysis that tends to be an early part of many
projects... |
library(checkarg)
### Name: isStrictlyNegativeIntegerOrNanOrInfVectorOrNull
### Title: Wrapper for the checkarg function, using specific parameter
### settings.
### Aliases: isStrictlyNegativeIntegerOrNanOrInfVectorOrNull
### ** Examples
isStrictlyNegativeIntegerOrNanOrInfVectorOrNull(-2)
# returns TRUE (argum... | /data/genthat_extracted_code/checkarg/examples/isStrictlyNegativeIntegerOrNanOrInfVectorOrNull.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,022 | r | library(checkarg)
### Name: isStrictlyNegativeIntegerOrNanOrInfVectorOrNull
### Title: Wrapper for the checkarg function, using specific parameter
### settings.
### Aliases: isStrictlyNegativeIntegerOrNanOrInfVectorOrNull
### ** Examples
isStrictlyNegativeIntegerOrNanOrInfVectorOrNull(-2)
# returns TRUE (argum... |
## Function makeCacheMatrix creates a vector which contains a function to perform the following:
## set the value of the vector
## get the value of the vector
## set the inverse of the matrix
## get the inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function... | /cachematrix.R | no_license | ungree/ProgrammingAssignment2 | R | false | false | 1,187 | r | ## Function makeCacheMatrix creates a vector which contains a function to perform the following:
## set the value of the vector
## get the value of the vector
## set the inverse of the matrix
## get the inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sep.panel.R
\name{sep.panel}
\alias{sep.panel}
\title{Transcript Categorization}
\usage{
sep.panel(data)
}
\arguments{
\item{data}{The Present absent tabel created by pres.abs.table() function}
}
\description{
This function assigns codes to t... | /stcr/man/sep.panel.Rd | no_license | hsmith9002/RLBTCP | R | false | true | 948 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sep.panel.R
\name{sep.panel}
\alias{sep.panel}
\title{Transcript Categorization}
\usage{
sep.panel(data)
}
\arguments{
\item{data}{The Present absent tabel created by pres.abs.table() function}
}
\description{
This function assigns codes to t... |
# Lattice绘图系统
# 绘图函数
# Lattice包
# xyplot(散点图)/bwplot/histogram/stripplot/dotplot/splom/levelplot/contourplot
# 格式:xyplot(y ~ x | f*g, data) # y因变量,x自变量,f*g分类变量
# panel函数,用于控制每个面板内的绘图
# grid包
# 实现了独立于base的绘图系统
# lattice包是基于grid创建的;很少直接从grid包调用函数
# Lattice与Base的重要区别
# Base绘图函数直接在图形设备上绘图
# Lattice绘图函数返回trellis... | /02-R_visulization/03-plotting/03-lattice_plotting_system.R | no_license | gcl-sg/rstudio-demo | R | false | false | 1,255 | r | # Lattice绘图系统
# 绘图函数
# Lattice包
# xyplot(散点图)/bwplot/histogram/stripplot/dotplot/splom/levelplot/contourplot
# 格式:xyplot(y ~ x | f*g, data) # y因变量,x自变量,f*g分类变量
# panel函数,用于控制每个面板内的绘图
# grid包
# 实现了独立于base的绘图系统
# lattice包是基于grid创建的;很少直接从grid包调用函数
# Lattice与Base的重要区别
# Base绘图函数直接在图形设备上绘图
# Lattice绘图函数返回trellis... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AnalyticsAccounts.R
\name{analytics.accounts}
\alias{analytics.accounts}
\title{analytics.accounts}
\usage{
analytics.accounts(accessToken)
}
\arguments{
\item{accessToken}{String OAuth token}
}
\description{
List accounts available to OAuth ... | /man/analytics.accounts.Rd | no_license | codymarquart/RAnalytics | R | false | true | 328 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AnalyticsAccounts.R
\name{analytics.accounts}
\alias{analytics.accounts}
\title{analytics.accounts}
\usage{
analytics.accounts(accessToken)
}
\arguments{
\item{accessToken}{String OAuth token}
}
\description{
List accounts available to OAuth ... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
eof <- function(Y, F, G_0, Sigma_G_inv, m_0, C_0, scale_W, params, proc_model, n_samples, verbose) {
.Call('_ideq_eof', PACKAGE = 'ideq', Y, F, G_0, Sigma_G_inv, m_0, C_0, scale_W, params, ... | /fuzzedpackages/ideq/R/RcppExports.R | no_license | akhikolla/testpackages | R | false | false | 637 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
eof <- function(Y, F, G_0, Sigma_G_inv, m_0, C_0, scale_W, params, proc_model, n_samples, verbose) {
.Call('_ideq_eof', PACKAGE = 'ideq', Y, F, G_0, Sigma_G_inv, m_0, C_0, scale_W, params, ... |
## -*- truncate-lines: t; -*-
## Copyright (C) 2008-19 Enrico Schumann
btest <- function(prices,
signal,
do.signal = TRUE,
do.rebalance = TRUE,
print.info = NULL,
b = 1L, ## burnin
fraction... | /R/btest.R | no_license | riverdarda/PMwR | R | false | false | 34,870 | r | ## -*- truncate-lines: t; -*-
## Copyright (C) 2008-19 Enrico Schumann
btest <- function(prices,
signal,
do.signal = TRUE,
do.rebalance = TRUE,
print.info = NULL,
b = 1L, ## burnin
fraction... |
#' Generalized Partial Credit Model
#' @description Routine functions for the GPCM
#' @name model_gpcm
NULL
#' @rdname model_gpcm
#' @param t ability parameters, 1d vector
#' @param a discrimination parameters, 1d vector
#' @param b item location parameters, 1d vector
#' @param d item category parameters, 2d vector
#'... | /R/module1_model_gpcm.R | no_license | zjiang4/xxIRT | R | false | false | 7,298 | r | #' Generalized Partial Credit Model
#' @description Routine functions for the GPCM
#' @name model_gpcm
NULL
#' @rdname model_gpcm
#' @param t ability parameters, 1d vector
#' @param a discrimination parameters, 1d vector
#' @param b item location parameters, 1d vector
#' @param d item category parameters, 2d vector
#'... |
require(testthat)
require(Cardinal)
context("MassDataFrame class")
test_that("MassDataFrame validity", {
expect_true(validObject(new("MassDataFrame")))
mz <- seq(from=100, to=150, by=1.5)
values <- seq_len(length(mz))
fdata <- MassDataFrame(mz=mz, values=values)
expect_true(validObject(fdata))
})
test_that(... | /tests/testthat/test2-MassDataFrame.R | no_license | DanGuo1223/Cardinal | R | false | false | 2,377 | r | require(testthat)
require(Cardinal)
context("MassDataFrame class")
test_that("MassDataFrame validity", {
expect_true(validObject(new("MassDataFrame")))
mz <- seq(from=100, to=150, by=1.5)
values <- seq_len(length(mz))
fdata <- MassDataFrame(mz=mz, values=values)
expect_true(validObject(fdata))
})
test_that(... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(maps)
library(ggplot2)
library(ggthemes)
library(tidyverse)
library(janitor)
... | /app.R | no_license | airaola1/Tidy-Tuesday | R | false | false | 3,993 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(maps)
library(ggplot2)
library(ggthemes)
library(tidyverse)
library(janitor)
... |
#' @importFrom Rcpp sourceCpp
NULL
#' Fill in missing values with previous or next value
#'
#' Fills missing values in selected columns using the next or previous entry.
#' This is useful in the common output format where values are not repeated,
#' and are only recorded when they change.
#'
#' Missing values are repl... | /R/fill.R | permissive | jenren/tidyr | R | false | false | 1,576 | r | #' @importFrom Rcpp sourceCpp
NULL
#' Fill in missing values with previous or next value
#'
#' Fills missing values in selected columns using the next or previous entry.
#' This is useful in the common output format where values are not repeated,
#' and are only recorded when they change.
#'
#' Missing values are repl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/individual_EI_function.R
\name{ei_ind}
\alias{ei_ind}
\title{Individual/Node level E-I Index}
\usage{
ei_ind(gs, attrname)
}
\arguments{
\item{gs}{igraph object}
\item{attrname}{Attribute name}
}
\value{
Group level results dataframe
}
\desc... | /man/ei_ind.Rd | no_license | MatthewSmith430/ITNr | R | false | true | 716 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/individual_EI_function.R
\name{ei_ind}
\alias{ei_ind}
\title{Individual/Node level E-I Index}
\usage{
ei_ind(gs, attrname)
}
\arguments{
\item{gs}{igraph object}
\item{attrname}{Attribute name}
}
\value{
Group level results dataframe
}
\desc... |
if (!require(shiny)) {install.packages('shiny')}
library(shiny)
if (!require(shinythemes)) {install.packages('shinythemes')}
library(shinythemes)
ui <- fluidPage(theme=shinytheme("flatly"),
titlePanel("Distribution of Cohen's d, p-values, and power curves for an independent two-tailed t-test"),
... | /Assignments/assignments_r_scripts/2.2_d_p_power_dist.R | no_license | clara1989/Coursera_StatsQ | R | false | false | 10,732 | r | if (!require(shiny)) {install.packages('shiny')}
library(shiny)
if (!require(shinythemes)) {install.packages('shinythemes')}
library(shinythemes)
ui <- fluidPage(theme=shinytheme("flatly"),
titlePanel("Distribution of Cohen's d, p-values, and power curves for an independent two-tailed t-test"),
... |
#' Install a remote package.
#'
#' This:
#' \enumerate{
#' \item downloads source bundle
#' \item decompresses & checks that it's a package
#' \item adds metadata to DESCRIPTION
#' \item calls install
#' }
#' @noRd
install_remote <- function(remote, ..., force = FALSE, quiet = FALSE) {
stopifnot(is.remote(rem... | /R/install-remote.R | no_license | bleutner/remotes | R | false | false | 6,049 | r | #' Install a remote package.
#'
#' This:
#' \enumerate{
#' \item downloads source bundle
#' \item decompresses & checks that it's a package
#' \item adds metadata to DESCRIPTION
#' \item calls install
#' }
#' @noRd
install_remote <- function(remote, ..., force = FALSE, quiet = FALSE) {
stopifnot(is.remote(rem... |
# REGLAS APRIORI
# Importar el dataset
#dataset <- read.csv('Market_Basket_Optimisation.csv', header = FALSE)
#dataset = dataset[, 2:3]
#install.packages('arules')
library(arules)
dataset <- read.transactions('Market_Basket_Optimisation.csv',
sep = ',',
rm.dupl... | /datasets/Part 5 - Association Rule Learning/Section 28 - Apriori/apriori_sbn.R | permissive | jsguerrero/machinelearning-az | R | false | false | 740 | r | # REGLAS APRIORI
# Importar el dataset
#dataset <- read.csv('Market_Basket_Optimisation.csv', header = FALSE)
#dataset = dataset[, 2:3]
#install.packages('arules')
library(arules)
dataset <- read.transactions('Market_Basket_Optimisation.csv',
sep = ',',
rm.dupl... |
plotGraph<-function(g, label=T)
{
#plot with edge labels - for weighted graphs
if(label==TRUE) plot(g, frame=T, edge.curved=T, edge.label=E(g)$weight,vertex.color="red", edge.width=1, edge.arrow.size=0.5, edge.color="black", vertex.label.color="white")
#plot with edge labels - for weighted graphs
else plo... | /plotGraph.R | no_license | purkayasthasoumik/shortestPathProblem | R | false | false | 721 | r | plotGraph<-function(g, label=T)
{
#plot with edge labels - for weighted graphs
if(label==TRUE) plot(g, frame=T, edge.curved=T, edge.label=E(g)$weight,vertex.color="red", edge.width=1, edge.arrow.size=0.5, edge.color="black", vertex.label.color="white")
#plot with edge labels - for weighted graphs
else plo... |
+### hw_1_question
########################################################### Task 1
# 查看內建資料集: 鳶尾花(iris)資料集
iris
# 使用dim(), 回傳iris的列數與欄數
dim(iris)
# 使用head() 回傳iris的前六列
head(iris)
# 使用tail() 回傳iris的後六列
tail(iris)
# 使用str()
str(iris)
# 使用summary() 查看iris敘述性統計、類別型資料概述。
summary(iris)
######... | /week_1/hw_1/hw_1_practice.r | no_license | fuweilin/politics-information | R | false | false | 1,846 | r | +### hw_1_question
########################################################### Task 1
# 查看內建資料集: 鳶尾花(iris)資料集
iris
# 使用dim(), 回傳iris的列數與欄數
dim(iris)
# 使用head() 回傳iris的前六列
head(iris)
# 使用tail() 回傳iris的後六列
tail(iris)
# 使用str()
str(iris)
# 使用summary() 查看iris敘述性統計、類別型資料概述。
summary(iris)
######... |
#load data
files<-list.files()
subjects_nr<-0
args <- commandArgs(trailingOnly = TRUE)
condition<-args[1]
cut_point<-42
if(condition == "DarkApoLow"){
cut_point<-47
} else if(condition == "DarkPTZ"){
cut_point<-44
} else if(condition == "DarkApoHigh"){
cut_point<-48
} else if(condition == "Dark"){
cut_point<-... | /code_zebrafish/final_datasets/generate_dataset_together_B2.R | no_license | jernejaMislej/all_code | R | false | false | 2,336 | r |
#load data
files<-list.files()
subjects_nr<-0
args <- commandArgs(trailingOnly = TRUE)
condition<-args[1]
cut_point<-42
if(condition == "DarkApoLow"){
cut_point<-47
} else if(condition == "DarkPTZ"){
cut_point<-44
} else if(condition == "DarkApoHigh"){
cut_point<-48
} else if(condition == "Dark"){
cut_point<-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/demo.sum.R
\docType{data}
\name{demo.sum}
\alias{demo.sum}
\title{demo.sum - Demo summary dataset with features/measurments (columns) x samples (rows)}
\format{
Demo summary dataset with features/measurments (columns) x samples (rows).
}
\sou... | /man/demo.sum.Rd | permissive | ImmuneDynamics/Spectre | R | false | true | 640 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/demo.sum.R
\docType{data}
\name{demo.sum}
\alias{demo.sum}
\title{demo.sum - Demo summary dataset with features/measurments (columns) x samples (rows)}
\format{
Demo summary dataset with features/measurments (columns) x samples (rows).
}
\sou... |
## 第16章 携帯電話のデータを集める
### 16.1 ページの探索
library(stringr)
library(XML)
library(RCurl)
# useragetがないとAmazonからRobot認定される
userAgent <- "eddie@r-datacollection.com"
#refに対するパラメータが変更されているため修正
#baseURL <- "https://www.amazon.com/s/ref=nb_sb_noss_2?url=node%3D2407749011&field-keywords="
baseURL <- "https://www.amazon... | /Chapter16.R | no_license | WAFdata-kudo/ADC | R | false | false | 18,910 | r | ## 第16章 携帯電話のデータを集める
### 16.1 ページの探索
library(stringr)
library(XML)
library(RCurl)
# useragetがないとAmazonからRobot認定される
userAgent <- "eddie@r-datacollection.com"
#refに対するパラメータが変更されているため修正
#baseURL <- "https://www.amazon.com/s/ref=nb_sb_noss_2?url=node%3D2407749011&field-keywords="
baseURL <- "https://www.amazon... |
\name{palm.cppm}
\alias{palm.cppm}
\alias{print.Palm}
\title{Non-parametric and Parametric Estimation for Palm Intensity}
\description{
Compute the non-parametric and the parametric Palm intensity function of the
Neyman-Scott cluster point process models and their extensions.
}
\usage{
palm.cppm(mple, pars... | /man/palm.cppm.Rd | no_license | cran/NScluster | R | false | false | 4,422 | rd | \name{palm.cppm}
\alias{palm.cppm}
\alias{print.Palm}
\title{Non-parametric and Parametric Estimation for Palm Intensity}
\description{
Compute the non-parametric and the parametric Palm intensity function of the
Neyman-Scott cluster point process models and their extensions.
}
\usage{
palm.cppm(mple, pars... |
testlist <- list(data = structure(c(4.94065645841247e-324, NaN, -Inf, 4.94065645841247e-324 ), .Dim = c(2L, 2L)), q = 1.42602581597035e-105)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610556551-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 210 | r | testlist <- list(data = structure(c(4.94065645841247e-324, NaN, -Inf, 4.94065645841247e-324 ), .Dim = c(2L, 2L)), q = 1.42602581597035e-105)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) |
### ---------------
### Creator: Yunze Liu (Reed Liu)
### Date: 2019-11-10
### Email: jieandze1314@gmail.com
### Title: Smartseq2-C1-小鼠性腺发育-R包准备工作(补充)
### ---------------
##############################
## install cran pkgs
##############################
if(length(getOption("CRAN"))==0) options(CRAN="https://mirrors.... | /2019-10-23-mouse_c1_downstream/step0-Rpkgs-prepare.R | no_license | daisyyr/scRNA-codes | R | false | false | 2,085 | r | ### ---------------
### Creator: Yunze Liu (Reed Liu)
### Date: 2019-11-10
### Email: jieandze1314@gmail.com
### Title: Smartseq2-C1-小鼠性腺发育-R包准备工作(补充)
### ---------------
##############################
## install cran pkgs
##############################
if(length(getOption("CRAN"))==0) options(CRAN="https://mirrors.... |
##' @export
##' @method ascii integer
ascii.integer <- function (x, include.rownames = FALSE, include.colnames = FALSE, rownames = NULL, colnames = NULL, format = "f", digits = 2, decimal.mark = ".", na.print = "", caption = NULL, caption.level = NULL, width = 0, frame = NULL, grid = NULL, valign = NULL, header = FALSE... | /R/asciiVector.r | no_license | oganm/ascii | R | false | false | 6,549 | r | ##' @export
##' @method ascii integer
ascii.integer <- function (x, include.rownames = FALSE, include.colnames = FALSE, rownames = NULL, colnames = NULL, format = "f", digits = 2, decimal.mark = ".", na.print = "", caption = NULL, caption.level = NULL, width = 0, frame = NULL, grid = NULL, valign = NULL, header = FALSE... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/base_extensions.R
\name{glance.qgcompfit}
\alias{glance.qgcompfit}
\title{Glance at a qgcompfit object}
\usage{
\method{glance}{qgcompfit}(x, ...)
}
\arguments{
\item{x}{a qgcompfit object}
\item{...}{Not used}
}
\description{
Glance accepts... | /man/glance.qgcompfit.Rd | no_license | alexpkeil1/qgcomp | R | false | true | 1,028 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/base_extensions.R
\name{glance.qgcompfit}
\alias{glance.qgcompfit}
\title{Glance at a qgcompfit object}
\usage{
\method{glance}{qgcompfit}(x, ...)
}
\arguments{
\item{x}{a qgcompfit object}
\item{...}{Not used}
}
\description{
Glance accepts... |
numPerPatch65184 <- c(2463,2537)
| /NatureEE-data-archive/Run203021/JAFSdata/JAFSnumPerPatch65184.R | no_license | flaxmans/NatureEE2017 | R | false | false | 33 | r | numPerPatch65184 <- c(2463,2537)
|
args=commandArgs(T);
if(args[1]=="germline"){
t=read.table("germline_results.cnv",stringsAsFactors=F)
}else{
t=read.table("results.cnv",stringsAsFactors=F)
}
s=read.table("germline_initial_SVs_changed_size1000",stringsAsFactors=F);
s[s[,3]=="X",3]=23;
s[s[,6]=="X",6]=23;
for(i in 1:nrow(s)){
cor=which(t[,1]... | /simulation/results.cnv.germ_initial_edit.R | no_license | wisekh6/InfoGenomeR_simulation | R | false | false | 1,371 | r | args=commandArgs(T);
if(args[1]=="germline"){
t=read.table("germline_results.cnv",stringsAsFactors=F)
}else{
t=read.table("results.cnv",stringsAsFactors=F)
}
s=read.table("germline_initial_SVs_changed_size1000",stringsAsFactors=F);
s[s[,3]=="X",3]=23;
s[s[,6]=="X",6]=23;
for(i in 1:nrow(s)){
cor=which(t[,1]... |
\name{texturemap}
\alias{texturemap}
\title{
Texture Map
}
\description{
Create a map that associates data values with graphical textures.
}
\usage{
texturemap(inputs, textures, ...)
}
\arguments{
\item{inputs}{
A vector containing all the data values
that will be mapped to textures.
}
\item{textures}... | /man/texturemap.Rd | no_license | cuulee/spatstat | R | false | false | 1,734 | rd | \name{texturemap}
\alias{texturemap}
\title{
Texture Map
}
\description{
Create a map that associates data values with graphical textures.
}
\usage{
texturemap(inputs, textures, ...)
}
\arguments{
\item{inputs}{
A vector containing all the data values
that will be mapped to textures.
}
\item{textures}... |
##
## stats.R
## Statistics functions
##
## Written by Marta R. Hidalgo, marta.hidalgo@outlook.es
##
## Code style by Hadley Wickham (http://r-pkgs.had.co.nz/style.html)
## https://www.bioconductor.org/developers/how-to/coding-style/
##
#' Normalize expression data from a SummarizedExperiment or matrix
#' to be used i... | /R/stats.R | no_license | mialaalv/hipathia | R | false | false | 22,309 | r | ##
## stats.R
## Statistics functions
##
## Written by Marta R. Hidalgo, marta.hidalgo@outlook.es
##
## Code style by Hadley Wickham (http://r-pkgs.had.co.nz/style.html)
## https://www.bioconductor.org/developers/how-to/coding-style/
##
#' Normalize expression data from a SummarizedExperiment or matrix
#' to be used i... |
source('/home/akulkarni/right-fit/spark_init.R')
ticket_details_path <- args[1]
order_details_path <- args[2]
product_details_path <- args[3]
ticket_products_path <- args[4]
catalog_simple_shoes_data_json_path <- args[5]
returns_shoes_data_json_path <- args[6]
hc <- sparkRHive.init(sc)
ticket.details <- lo... | /dataplatform-scripts/make_returns_shoes_data.R | no_license | kulashish/rightfit | R | false | false | 2,266 | r | source('/home/akulkarni/right-fit/spark_init.R')
ticket_details_path <- args[1]
order_details_path <- args[2]
product_details_path <- args[3]
ticket_products_path <- args[4]
catalog_simple_shoes_data_json_path <- args[5]
returns_shoes_data_json_path <- args[6]
hc <- sparkRHive.init(sc)
ticket.details <- lo... |
# read and process data
df <- read.table("household_power_consumption.txt",
sep = ";",
header = TRUE,
na.strings = "?",
)
df$Date <- as.Date(df$Date,format = "%d/%m/%Y")
df <- subset(df,
Date == "2007-02-01" |
Date == "2007-02-02")
df$Time <- ... | /plot2.R | no_license | YihaoYang/ExData_Plotting1 | R | false | false | 631 | r | # read and process data
df <- read.table("household_power_consumption.txt",
sep = ";",
header = TRUE,
na.strings = "?",
)
df$Date <- as.Date(df$Date,format = "%d/%m/%Y")
df <- subset(df,
Date == "2007-02-01" |
Date == "2007-02-02")
df$Time <- ... |
source("bond.R")
source("def.R")
source("liab.R")
source("cashFlow.R")
source("optimize.R")
N_SIM=5000
TF=36
df0 = getDefDat(type="read")
markDat = getBondDat(type="read")
l_df = runSimLiab(type="read")
# defTimes = runSimDef(df0,save=FALSE,N_SIM=N_SIM)
# simDef = runSimDef(df0,save=FALSE,N_SIM=N_SIM)
sim... | /main_optimize.R | no_license | ZimMicHuang/stochOptV2 | R | false | false | 525 | r | source("bond.R")
source("def.R")
source("liab.R")
source("cashFlow.R")
source("optimize.R")
N_SIM=5000
TF=36
df0 = getDefDat(type="read")
markDat = getBondDat(type="read")
l_df = runSimLiab(type="read")
# defTimes = runSimDef(df0,save=FALSE,N_SIM=N_SIM)
# simDef = runSimDef(df0,save=FALSE,N_SIM=N_SIM)
sim... |
# for recurring deposit at simple rate
# fv=(R+R*i*n) + (R+R*i*(n-1))+ (R+R*i*(n-2))+ .....+ (R+R*i*1)
# fv=n*R+ iR ( n+(n-1)+(n-2)+.....+1)
# fv=n*R+ iR * n(n+1)/2
# fv= R {n+i* n(n+1)/2}
library(FinCal)
library(openxlsx)
library(plyr)
library(dplyr)
options(scipen = 999)
# maturity of the product
tenure <- c(5, 10... | /Equivalent_Simple_Rate_with_Simulation.R | no_license | tanvird3/equivalent_simple_rate | R | false | false | 2,243 | r | # for recurring deposit at simple rate
# fv=(R+R*i*n) + (R+R*i*(n-1))+ (R+R*i*(n-2))+ .....+ (R+R*i*1)
# fv=n*R+ iR ( n+(n-1)+(n-2)+.....+1)
# fv=n*R+ iR * n(n+1)/2
# fv= R {n+i* n(n+1)/2}
library(FinCal)
library(openxlsx)
library(plyr)
library(dplyr)
options(scipen = 999)
# maturity of the product
tenure <- c(5, 10... |
#! /usr/bin/env Rscript
# Bhishan Poudel
# Jan 20, 2016
library(ggplot2)
library(reshape2)
# original data in a 'wide' format
x <- seq(-2, 2, 0.05)
y1 <- pnorm(x)
y2 <- pnorm(x, 1, 1)
df <- data.frame(x, y1, y2)
# melt the data to a long format
df2 <- melt(data = df, id.vars = "x")
# plot, using the aesthetics ar... | /R/rprograms/plotting/multiplePlotting/multiplot4.R | permissive | bhishanpdl/Programming | R | false | false | 412 | r | #! /usr/bin/env Rscript
# Bhishan Poudel
# Jan 20, 2016
library(ggplot2)
library(reshape2)
# original data in a 'wide' format
x <- seq(-2, 2, 0.05)
y1 <- pnorm(x)
y2 <- pnorm(x, 1, 1)
df <- data.frame(x, y1, y2)
# melt the data to a long format
df2 <- melt(data = df, id.vars = "x")
# plot, using the aesthetics ar... |
discounted.value <- function(x, t, delta)
{
return(x * delta ^ t)
}
invlogit <- function(z)
{
return(1 / (1 + exp(-z)))
}
logit.estimator <- function(choices)
{
wrapper <- function(x) {-log.likelihood(choices, x[1], x[2])}
optimization.results <- optim(c(1, 1), wrapper, method = 'L-BFGS-B', lower = c(0, 0... | /shared_code.R | no_license | johnmyleswhite/fastR | R | false | false | 606 | r | discounted.value <- function(x, t, delta)
{
return(x * delta ^ t)
}
invlogit <- function(z)
{
return(1 / (1 + exp(-z)))
}
logit.estimator <- function(choices)
{
wrapper <- function(x) {-log.likelihood(choices, x[1], x[2])}
optimization.results <- optim(c(1, 1), wrapper, method = 'L-BFGS-B', lower = c(0, 0... |
context("term")
test_that("term", {
x <- c("parm3[10]", "parm3[2]", "parm[2,2]", "parm[1,1]", "parm[2,1]", "parm[1,2]", "parm[10]", "parm3")
x2 <- as.term(x)
expect_is(x2, "term")
expect_true(is.term(x2))
x3 <- as.character(x2)
expect_identical(x, x3)
expect_identical(parameters(x2, terms = TRUE), c(rep... | /data/genthat_extracted_code/mcmcr/tests/test-term.R | no_license | surayaaramli/typeRrh | R | false | false | 1,243 | r | context("term")
test_that("term", {
x <- c("parm3[10]", "parm3[2]", "parm[2,2]", "parm[1,1]", "parm[2,1]", "parm[1,2]", "parm[10]", "parm3")
x2 <- as.term(x)
expect_is(x2, "term")
expect_true(is.term(x2))
x3 <- as.character(x2)
expect_identical(x, x3)
expect_identical(parameters(x2, terms = TRUE), c(rep... |
# parameter 'age' depends on time:
# simulating a cohort starting at 60 yo
define_parameters(
age_start = 60,
age = age_start + markov_cycle
)
# other uses of markov_cycle are possible
define_parameters(
top_time = ifelse(markov_cycle < 10, 1, 0)
)
# more elaborate: risk function
define_par... | /heemod/inst/examples/example_define_parameters.R | no_license | ingted/R-Examples | R | false | false | 925 | r |
# parameter 'age' depends on time:
# simulating a cohort starting at 60 yo
define_parameters(
age_start = 60,
age = age_start + markov_cycle
)
# other uses of markov_cycle are possible
define_parameters(
top_time = ifelse(markov_cycle < 10, 1, 0)
)
# more elaborate: risk function
define_par... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{releaseDataset}
\alias{releaseDataset}
\title{Release a dataset}
\usage{
releaseDataset(api, id, force = FALSE)
}
\arguments{
\item{api}{a \code{\link{mangalapi}} object}
\item{id}{the id of the dataset to release}
\item{force}{whether to force release even i... | /man/releaseDataset.Rd | no_license | mangal-interactions/rmangal-v1 | R | false | false | 453 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{releaseDataset}
\alias{releaseDataset}
\title{Release a dataset}
\usage{
releaseDataset(api, id, force = FALSE)
}
\arguments{
\item{api}{a \code{\link{mangalapi}} object}
\item{id}{the id of the dataset to release}
\item{force}{whether to force release even i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/appstream_operations.R
\name{appstream_associate_fleet}
\alias{appstream_associate_fleet}
\title{Associates the specified fleet with the specified stack}
\usage{
appstream_associate_fleet(FleetName, StackName)
}
\arguments{
\item{FleetName}{[... | /paws/man/appstream_associate_fleet.Rd | permissive | johnnytommy/paws | R | false | true | 616 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/appstream_operations.R
\name{appstream_associate_fleet}
\alias{appstream_associate_fleet}
\title{Associates the specified fleet with the specified stack}
\usage{
appstream_associate_fleet(FleetName, StackName)
}
\arguments{
\item{FleetName}{[... |
/discussion2.R | no_license | Jonathanjopk/R- | R | false | false | 2,112 | r | ||
ui <- fluidPage(
tags$head(
tags$style(HTML("hr {border-top: 1px solid #000000;}"))
),
#titlePanel("CATGIRL - a catch/effort allocation tool"),
titlePanel(title=div(img(height=120, width=1500, src="HeaderBar1.png")), windowTitle="Mmmmeeeeeoooowwwww"),
#titlePanel(title=div(img(height=150, width=100,... | /WHATapp/shiny/ui.R | no_license | tetemouton/WHATapp | R | false | false | 10,659 | r | ui <- fluidPage(
tags$head(
tags$style(HTML("hr {border-top: 1px solid #000000;}"))
),
#titlePanel("CATGIRL - a catch/effort allocation tool"),
titlePanel(title=div(img(height=120, width=1500, src="HeaderBar1.png")), windowTitle="Mmmmeeeeeoooowwwww"),
#titlePanel(title=div(img(height=150, width=100,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_wildfinder.R
\name{data_mammals}
\alias{data_mammals}
\title{Get mammals species data}
\usage{
data_mammals()
}
\value{
data.frame with info on mammals
}
\description{
Get mammals species data
}
| /man/data_mammals.Rd | permissive | GaelMariani/datatoolboxexos | R | false | true | 278 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_wildfinder.R
\name{data_mammals}
\alias{data_mammals}
\title{Get mammals species data}
\usage{
data_mammals()
}
\value{
data.frame with info on mammals
}
\description{
Get mammals species data
}
|
library(lme4ord)
library(multitable)
library(lme4)
library(ape)
nSites <- 10
nSpec <- 100
form <- y ~ x * z +
(z | sites) +
edge(1 | species, phy = phy) +
edge(0 + x | species, phy = phy)
dataList <- dims_to_vars(data.list(y = 1 * (matrix(rnorm(nSites * nSpec), nSites, nSpec) > 0),
... | /inst/misc/edgeModel/edgeModel.R | no_license | stevencarlislewalker/lme4ord | R | false | false | 1,028 | r | library(lme4ord)
library(multitable)
library(lme4)
library(ape)
nSites <- 10
nSpec <- 100
form <- y ~ x * z +
(z | sites) +
edge(1 | species, phy = phy) +
edge(0 + x | species, phy = phy)
dataList <- dims_to_vars(data.list(y = 1 * (matrix(rnorm(nSites * nSpec), nSites, nSpec) > 0),
... |
library('aws.s3')
Sys.setenv("AWS_ACCESS_KEY_ID" = "mykey",
"AWS_SECRET_ACCESS_KEY" = "mysecretkey",
"AWS_DEFAULT_REGION" = "ap-southeast-2",
"AWS_SESSION_TOKEN" = "mytoken")
# Get CSV and convert to Table
mlr_s3_readCSV <- function(s3_file_path){
read.csv(text = rawToChar(get_obje... | /R/s3/download_csv_s3.R | no_license | mitchelllisle/code_snippets | R | false | false | 352 | r | library('aws.s3')
Sys.setenv("AWS_ACCESS_KEY_ID" = "mykey",
"AWS_SECRET_ACCESS_KEY" = "mysecretkey",
"AWS_DEFAULT_REGION" = "ap-southeast-2",
"AWS_SESSION_TOKEN" = "mytoken")
# Get CSV and convert to Table
mlr_s3_readCSV <- function(s3_file_path){
read.csv(text = rawToChar(get_obje... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eseis-package.R
\docType{data}
\name{rockfall}
\alias{rockfall}
\alias{rockfall_z}
\alias{rockfall_t}
\alias{rockfall_eseis}
\title{Seismic trace of a rockfall event.}
\format{The format is: num [1:98400] 65158 65176 65206 65194 65155 ...}
\u... | /eseis/man/rockfall.Rd | no_license | akhikolla/InformationHouse | R | false | true | 1,299 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eseis-package.R
\docType{data}
\name{rockfall}
\alias{rockfall}
\alias{rockfall_z}
\alias{rockfall_t}
\alias{rockfall_eseis}
\title{Seismic trace of a rockfall event.}
\format{The format is: num [1:98400] 65158 65176 65206 65194 65155 ...}
\u... |
##########################################################################
#
# Soft-thresholding Beta Value Selection
#
# This script first formulates SVRs from LSVs of GTEx tissues
# and then evaluates scale-free fit of each tissue network after
# varying soft-thresholding values. Soft-thresholding used ... | /R_examples/gtex_regions_network_connectivity.R | no_license | eggerj/ExampleCode | R | false | false | 4,602 | r | ##########################################################################
#
# Soft-thresholding Beta Value Selection
#
# This script first formulates SVRs from LSVs of GTEx tissues
# and then evaluates scale-free fit of each tissue network after
# varying soft-thresholding values. Soft-thresholding used ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.