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 |
|---|---|---|---|---|---|---|---|---|---|
## Assuming the data has been extracted and we are in the test folder of the dataset
##Reading and creating test and train datasets
subject_test <- read.table("subject_test.txt")
X_test <- read.table("X_test.txt")
Y_test <- read.table("y_test.txt")
test_df <- cbind(subject_test,X_test,Y_test)
setwd("..") ## ... | /run_analysis.R | no_license | amrashraf220/week4 | R | false | false | 2,117 | r | ## Assuming the data has been extracted and we are in the test folder of the dataset
##Reading and creating test and train datasets
subject_test <- read.table("subject_test.txt")
X_test <- read.table("X_test.txt")
Y_test <- read.table("y_test.txt")
test_df <- cbind(subject_test,X_test,Y_test)
setwd("..") ## ... |
library(tidyr)
library(dplyr)
data = read.csv("collect12_NormJudg_Short_Cond_VN2_ZERO.py.tsv", sep="\t")
data2 = data %>% group_by(Script, ID, Noun, Region, Condition, predictability_weight, deletion_rate) %>% summarise(Surprisal=mean(Surprisal), ThatFraction=mean(ThatFraction), SurprisalReweighted=mean(SurprisalRewei... | /initial/lm/trainAttention/raw_output/collect_Short_Cond_W_VN2_ZERO.R | no_license | m-hahn/forgetting-model | R | false | false | 483 | r | library(tidyr)
library(dplyr)
data = read.csv("collect12_NormJudg_Short_Cond_VN2_ZERO.py.tsv", sep="\t")
data2 = data %>% group_by(Script, ID, Noun, Region, Condition, predictability_weight, deletion_rate) %>% summarise(Surprisal=mean(Surprisal), ThatFraction=mean(ThatFraction), SurprisalReweighted=mean(SurprisalRewei... |
cat('options()$warn is',getOption('warn'),'\n')
for (i in 1:100) warning("warning! you have been warned!")
cat('warnings:\n')
print(warnings())
| /test/callwarning.R | permissive | jeffreyhorner/rapache | R | false | false | 144 | r | cat('options()$warn is',getOption('warn'),'\n')
for (i in 1:100) warning("warning! you have been warned!")
cat('warnings:\n')
print(warnings())
|
##---------------- 設定環境 ----------------
#setwd(dir) #設定working directory的存放位置
# MAC : setwd("/Users/rladiestaipei/R_DragonBall/")
# Windows : setwd("C://Users/rladiestaipei/Desktop/R_DragonBall/")
#安裝套件(僅需執行一次)
#install.packages(c("tidyverse", "ploty", "zoo", "lubridate", "rmarkdown","data.table", "DT", "kableExtra... | /Day1_Data_Cleaning_and_Wrangling.R | no_license | bbnya/R_DragonBall-1 | R | false | false | 6,892 | r | ##---------------- 設定環境 ----------------
#setwd(dir) #設定working directory的存放位置
# MAC : setwd("/Users/rladiestaipei/R_DragonBall/")
# Windows : setwd("C://Users/rladiestaipei/Desktop/R_DragonBall/")
#安裝套件(僅需執行一次)
#install.packages(c("tidyverse", "ploty", "zoo", "lubridate", "rmarkdown","data.table", "DT", "kableExtra... |
#' Collapse vector to string
#'
#' Merges all the values and outputs a string
#' formatted as '1st element', '2nd element', ...
#'
#' @param x The vector to collapse
#' @param collapse The string that separates each element
#' @param quotation_mark The type of quote to use
#' @return A string with `', '` separation
#' ... | /R/vector2string.R | no_license | gforge/htmlTable | R | false | false | 1,193 | r | #' Collapse vector to string
#'
#' Merges all the values and outputs a string
#' formatted as '1st element', '2nd element', ...
#'
#' @param x The vector to collapse
#' @param collapse The string that separates each element
#' @param quotation_mark The type of quote to use
#' @return A string with `', '` separation
#' ... |
### This script tests for differences in subcortical volumes before and after
### a stay in Antarctica, using longitudinal combat to address site effects
###
### Ellyn Butler
### May 28, 2020 - July 17, 2020
### March 8, 2021: Switch small cortical regions to lobes for analysis purposes
library('miceadds') # v 3.10-28... | /scripts/analyses/old/subcorticalLongComBAT.R | no_license | PennBBL/NASA | R | false | false | 22,593 | r | ### This script tests for differences in subcortical volumes before and after
### a stay in Antarctica, using longitudinal combat to address site effects
###
### Ellyn Butler
### May 28, 2020 - July 17, 2020
### March 8, 2021: Switch small cortical regions to lobes for analysis purposes
library('miceadds') # v 3.10-28... |
/tests/teste7/2/plot.R | permissive | rdvila/TCC2 | R | false | false | 485 | r | ||
if (interactive()) savehistory();
library("aroma.affymetrix");
library("R.menu");
verbose <- Verbose(threshold=-10, timestamp=TRUE);
options(width=60);
chipType <- "CytoScanHD_Array";
nbrOfEnzymes <- 1;
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# User settings
# - - - - - - - - - - -... | /inst/buildScripts/chipTypes/CytoScanHD_Array/na32/CytoScanHD_Array,UFL.R | no_license | HenrikBengtsson/aroma.affymetrix | R | false | false | 4,776 | r | if (interactive()) savehistory();
library("aroma.affymetrix");
library("R.menu");
verbose <- Verbose(threshold=-10, timestamp=TRUE);
options(width=60);
chipType <- "CytoScanHD_Array";
nbrOfEnzymes <- 1;
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# User settings
# - - - - - - - - - - -... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{druid.query.metrics}
\alias{druid.query.metrics}
\title{Query data source metrics}
\usage{
druid.query.metrics(url = druid.url(), dataSource, interval = NULL)
}
\arguments{
\item{url}{URL to connect to druid, defaults to druid.u... | /man/druid.query.metrics.Rd | permissive | JesseKolb/RDruid | R | false | true | 526 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{druid.query.metrics}
\alias{druid.query.metrics}
\title{Query data source metrics}
\usage{
druid.query.metrics(url = druid.url(), dataSource, interval = NULL)
}
\arguments{
\item{url}{URL to connect to druid, defaults to druid.u... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/raw.R
\name{read_intensities}
\alias{read_intensities}
\title{Read multiple idat files.}
\usage{
read_intensities(files, dict = NULL, cnames = NULL, pos = NULL,
beads = FALSE, sd = FALSE)
}
\arguments{
\item{files}{A vector of filenames.
Tw... | /man/read_intensities.Rd | no_license | grafab/gsrc | R | false | true | 1,941 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/raw.R
\name{read_intensities}
\alias{read_intensities}
\title{Read multiple idat files.}
\usage{
read_intensities(files, dict = NULL, cnames = NULL, pos = NULL,
beads = FALSE, sd = FALSE)
}
\arguments{
\item{files}{A vector of filenames.
Tw... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pexeest.R
\name{pexeest}
\alias{pexeest}
\title{RPEXE estimate given change-points}
\usage{
pexeest(times, cens, tchange, tx)
}
\arguments{
\item{times}{All the event/censoring times used to fit the model}
\item{cens}{censoring status used t... | /man/pexeest.Rd | no_license | zhangyuwinnie/RPEXE.RPEXT | R | false | true | 955 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pexeest.R
\name{pexeest}
\alias{pexeest}
\title{RPEXE estimate given change-points}
\usage{
pexeest(times, cens, tchange, tx)
}
\arguments{
\item{times}{All the event/censoring times used to fit the model}
\item{cens}{censoring status used t... |
#!/applications/R/R-3.3.2/bin/Rscript
# Use permutation test function in regioneR to determine
# if peaks overlap features of interest more or less
# than expected by chance
# Usage on hydrogen node7:
# csmit -m 100G -c 32 "/applications/R/R-3.3.2/bin/Rscript permTest_peri_HTA6_overlapping_HTA7_peaks_vs_TEfams.R 1000... | /peaks/PeakRanger1.18/ranger/H2A_input_p0.05_q0.05/HTA6_ChIP_SRR5298545/peri/regioneR/noMinWidth_mergedOverlaps/permTest_peri_HTA6_overlapping_HTA7_peaks_vs_TEfams.R | no_license | ajtock/HTA6_HTA7_leaf_Lorkovic_Berger_2017_CurrBiol | R | false | false | 11,709 | r | #!/applications/R/R-3.3.2/bin/Rscript
# Use permutation test function in regioneR to determine
# if peaks overlap features of interest more or less
# than expected by chance
# Usage on hydrogen node7:
# csmit -m 100G -c 32 "/applications/R/R-3.3.2/bin/Rscript permTest_peri_HTA6_overlapping_HTA7_peaks_vs_TEfams.R 1000... |
library(ggplot2)
library(pastecs)
library(moments)
library(reshape2)
library(stringr)
library(entropy)
size.of.one.sample = 250;
parse.data <- function(data, os, browser) {
if (class(data)=="character") {
if (grepl("/", data)) {
# print("Has /")
new.name <- as.POSIXct((as.numeric(str_extract(data, "... | /code/common.R | no_license | muxamilian/troubleshooting | R | false | false | 2,537 | r | library(ggplot2)
library(pastecs)
library(moments)
library(reshape2)
library(stringr)
library(entropy)
size.of.one.sample = 250;
parse.data <- function(data, os, browser) {
if (class(data)=="character") {
if (grepl("/", data)) {
# print("Has /")
new.name <- as.POSIXct((as.numeric(str_extract(data, "... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/play.R
\name{play_bot_vs_bot}
\alias{play_bot_vs_bot}
\title{Simulate one play of the game}
\usage{
play_bot_vs_bot(game, bots, return.play.object = FALSE)
}
\arguments{
\item{game}{the game object}
\item{bots}{a list containing one bot per ... | /man/play_bot_vs_bot.Rd | no_license | skranz/gtreeWebPlay | R | false | true | 800 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/play.R
\name{play_bot_vs_bot}
\alias{play_bot_vs_bot}
\title{Simulate one play of the game}
\usage{
play_bot_vs_bot(game, bots, return.play.object = FALSE)
}
\arguments{
\item{game}{the game object}
\item{bots}{a list containing one bot per ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/streambugs_aux.r
\name{construct.statevariables}
\alias{construct.statevariables}
\title{Construct the streambugs ODE state variable names}
\usage{
construct.statevariables(
Reaches,
Habitats,
POM = NULL,
Algae = NULL,
Invertebrates... | /man/construct.statevariables.Rd | no_license | cran/streambugs | R | false | true | 1,449 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/streambugs_aux.r
\name{construct.statevariables}
\alias{construct.statevariables}
\title{Construct the streambugs ODE state variable names}
\usage{
construct.statevariables(
Reaches,
Habitats,
POM = NULL,
Algae = NULL,
Invertebrates... |
# routines for creating flow allocation matrices, classification rasters and hsu group
# summaries for the Dynamic TOPMODEL
# return a matrix of indexes of<- lls immediately downslope of the given cell in the first column
# and correspoinding flow proportion allocated according to weighted midpoint slope in teh seco... | /R/build_hru.r | no_license | cran/dynatopmodel | R | false | false | 34,043 | r | # routines for creating flow allocation matrices, classification rasters and hsu group
# summaries for the Dynamic TOPMODEL
# return a matrix of indexes of<- lls immediately downslope of the given cell in the first column
# and correspoinding flow proportion allocated according to weighted midpoint slope in teh seco... |
###Assignment 1C ----
#Tardigrada are water-dwelling micro-animals that live in a variety of different environments. Tardigrades have been found in areas such as mountain tops, volcanoes, the deep sea, tropical rainforests, and even the Antarctic.
#Since these species live in a variety of different environments, I a... | /Part C_V2.R | no_license | geoffstrong55/Assignment-3 | R | false | false | 13,702 | r | ###Assignment 1C ----
#Tardigrada are water-dwelling micro-animals that live in a variety of different environments. Tardigrades have been found in areas such as mountain tops, volcanoes, the deep sea, tropical rainforests, and even the Antarctic.
#Since these species live in a variety of different environments, I a... |
#' @importFrom parallel stopCluster
ClusterRegistry <- local({
last <- NULL
cluster <- NULL
function(action = c("get", "start", "stop"), workers = NULL, makeCluster = .makeCluster, ...) {
action <- match.arg(action, choices = c("get", "start", "stop"))
if (is.null(workers)) {
} else if (is.numeric(w... | /R/ClusterRegistry.R | no_license | MINATILO/FUTURE | R | false | false | 2,017 | r | #' @importFrom parallel stopCluster
ClusterRegistry <- local({
last <- NULL
cluster <- NULL
function(action = c("get", "start", "stop"), workers = NULL, makeCluster = .makeCluster, ...) {
action <- match.arg(action, choices = c("get", "start", "stop"))
if (is.null(workers)) {
} else if (is.numeric(w... |
#' ggradar
#' @author Ricardo Bion
#' @export ggradar
#'
#' @export
# most of the code is from http://rstudio-pubs-static.s3.amazonaws.com/5795_e6e6411731bb4f1b9cc7eb49499c2082.html
args <- commandArgs(trailingOnly=FALSE)
script.dir <- getSrcDirectory(function(x) {x})
sourced <- TRUE
if (length(script.dir) < 1) {
sou... | /R/ggradar.R | no_license | mneilly/ggradar | R | false | false | 14,764 | r | #' ggradar
#' @author Ricardo Bion
#' @export ggradar
#'
#' @export
# most of the code is from http://rstudio-pubs-static.s3.amazonaws.com/5795_e6e6411731bb4f1b9cc7eb49499c2082.html
args <- commandArgs(trailingOnly=FALSE)
script.dir <- getSrcDirectory(function(x) {x})
sourced <- TRUE
if (length(script.dir) < 1) {
sou... |
#Tanishi Gupta 19/888
#Using built-in data set mtcars, draw a bar chart from the object cyl.
data("mtcars")
head(mtcars)
View(mtcars)
barplot(mtcars$cyl)
#Add suitable labels to this bar chart.
barplot(mtcars$cyl,
xlab="count",
ylab="count",
col="blue",
ylim=c(0,10),
main="Bar Ch... | /Assign-15.R | no_license | johnytheunbravo/R-software | R | false | false | 334 | r | #Tanishi Gupta 19/888
#Using built-in data set mtcars, draw a bar chart from the object cyl.
data("mtcars")
head(mtcars)
View(mtcars)
barplot(mtcars$cyl)
#Add suitable labels to this bar chart.
barplot(mtcars$cyl,
xlab="count",
ylab="count",
col="blue",
ylim=c(0,10),
main="Bar Ch... |
# This function calculates heights of trees given distance of each tree
# from its base and angle to its top, using the trigonometric formula
#
# height = distance * tan(radians)
#
# ARGUMENTS
# degrees: The angle of elevation of tree
# distance: The distance from base of tree (e.g., meters)
#
# OUTPUT
# The heig... | /Week3/Code/TreeHeight.R | no_license | emersonff/CMEECourseWork | R | false | false | 1,434 | r | # This function calculates heights of trees given distance of each tree
# from its base and angle to its top, using the trigonometric formula
#
# height = distance * tan(radians)
#
# ARGUMENTS
# degrees: The angle of elevation of tree
# distance: The distance from base of tree (e.g., meters)
#
# OUTPUT
# The heig... |
#' @title printHands
#'
#' @description Produce a page of bridge hands as a PDF. Each page can hold up to 6 hands, and can show all seats or one of the seats can be selected
#' through the 'outputSeats' parameter.
#'
#' \itemize{
#' \item{"FULL" or "F"}{ - Show all seats.}
#' \item{"N" / "E" / "S" / "W"}{ -... | /R/printHands.R | no_license | CommoditiesAI/bridger | R | false | false | 16,359 | r | #' @title printHands
#'
#' @description Produce a page of bridge hands as a PDF. Each page can hold up to 6 hands, and can show all seats or one of the seats can be selected
#' through the 'outputSeats' parameter.
#'
#' \itemize{
#' \item{"FULL" or "F"}{ - Show all seats.}
#' \item{"N" / "E" / "S" / "W"}{ -... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BatchtoolsFuture-class.R
\name{print.BatchtoolsFuture}
\alias{print.BatchtoolsFuture}
\title{Prints a batchtools future}
\usage{
\method{print}{BatchtoolsFuture}(x, ...)
}
\arguments{
\item{x}{An BatchtoolsFuture object}
\item{\ldots}{Not us... | /man/print.BatchtoolsFuture.Rd | no_license | HenrikBengtsson/future.batchtools | R | false | true | 389 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BatchtoolsFuture-class.R
\name{print.BatchtoolsFuture}
\alias{print.BatchtoolsFuture}
\title{Prints a batchtools future}
\usage{
\method{print}{BatchtoolsFuture}(x, ...)
}
\arguments{
\item{x}{An BatchtoolsFuture object}
\item{\ldots}{Not us... |
\name{dune}
\alias{dune}
\alias{dune.env}
\docType{data}
\title{Vegetation and Environment in Dutch Dune Meadows. }
\usage{
data(dune)
data(dune.env)
}
\description{
The dune meadow vegetation data, \code{dune}, has cover class values
of 30 species on 20 sites. The corresponding environmental data frame
\code... | /man/dune.Rd | no_license | vanderleidebastiani/vegan | R | false | false | 1,793 | rd | \name{dune}
\alias{dune}
\alias{dune.env}
\docType{data}
\title{Vegetation and Environment in Dutch Dune Meadows. }
\usage{
data(dune)
data(dune.env)
}
\description{
The dune meadow vegetation data, \code{dune}, has cover class values
of 30 species on 20 sites. The corresponding environmental data frame
\code... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/strip_na_percent.R
\name{strip_na_percent}
\alias{strip_na_percent}
\title{Remove Rows of a Data Frame by Percent NA Values}
\usage{
strip_na_percent(.df, greater_than = 0.25)
}
\arguments{
\item{.df}{a data.frame object}
\item{greater_than}... | /man/strip_na_percent.Rd | no_license | cran/excelstrippr | R | false | true | 669 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/strip_na_percent.R
\name{strip_na_percent}
\alias{strip_na_percent}
\title{Remove Rows of a Data Frame by Percent NA Values}
\usage{
strip_na_percent(.df, greater_than = 0.25)
}
\arguments{
\item{.df}{a data.frame object}
\item{greater_than}... |
#
#
# Copyright (c) 2017, King Abdullah University of Science and Technology
# All rights reserved.
#
# ExaGeoStat-R is a software package provided by KAUST
#
#
#
# @file test2.R
# ExaGeoStat R wrapper test example
#
# @version 1.0.0
#
# @author Sameh Abdulah
# @date 2019-01-17
library("exageostat") ... | /tests/test3.R | permissive | SAbdulah/exageostatR-dev-1 | R | false | false | 1,521 | r | #
#
# Copyright (c) 2017, King Abdullah University of Science and Technology
# All rights reserved.
#
# ExaGeoStat-R is a software package provided by KAUST
#
#
#
# @file test2.R
# ExaGeoStat R wrapper test example
#
# @version 1.0.0
#
# @author Sameh Abdulah
# @date 2019-01-17
library("exageostat") ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/emd.R
\name{cost_matrix}
\alias{cost_matrix}
\title{Inter-bin cost matrix from bin centres}
\usage{
cost_matrix(bin_centres1, bin_centres2)
}
\arguments{
\item{bin_centres1}{Bin centres for histogram 1}
\item{bin_centres2}{Bin centres for hi... | /man/cost_matrix.Rd | permissive | alan-turing-institute/network-comparison | R | false | true | 489 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/emd.R
\name{cost_matrix}
\alias{cost_matrix}
\title{Inter-bin cost matrix from bin centres}
\usage{
cost_matrix(bin_centres1, bin_centres2)
}
\arguments{
\item{bin_centres1}{Bin centres for histogram 1}
\item{bin_centres2}{Bin centres for hi... |
## install packages
ipak <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(new.pkg, dependencies = TRUE)
sapply(pkg, require, character.only = TRUE)
}
packages <- c("RandomFields","raster","devtools","landscapetools","RColor... | /simulation.r | no_license | vp43/simulation | R | false | false | 12,498 | r | ## install packages
ipak <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(new.pkg, dependencies = TRUE)
sapply(pkg, require, character.only = TRUE)
}
packages <- c("RandomFields","raster","devtools","landscapetools","RColor... |
## ----warning=F-----------------------------------------------------------
library(ggplot2);library(knitr)
kable(head(mtcars))
## ------------------------------------------------------------------------
plot(y=mtcars$mpg,x=mtcars$wt)
## ------------------------------------------------------------------------
plot(mp... | /not_used/03_Plotting.R | no_license | mlammens/RDataScience | R | false | false | 7,507 | r | ## ----warning=F-----------------------------------------------------------
library(ggplot2);library(knitr)
kable(head(mtcars))
## ------------------------------------------------------------------------
plot(y=mtcars$mpg,x=mtcars$wt)
## ------------------------------------------------------------------------
plot(mp... |
source("src/global.R")
library(dplyr)
library(mrgsolve)
##' - Load the `meropenem` model from the model directory
##' - Simulate the following scenarios:
##' - 100 mg IV bolus q8h x 3
##' - 100 mg IV over 3 hours q8h x3
##' Look at the `CP` output
| /exercises/meropenem_pk.R | no_license | amitpatil21/page-2018-mrgsolve | R | false | false | 257 | r | source("src/global.R")
library(dplyr)
library(mrgsolve)
##' - Load the `meropenem` model from the model directory
##' - Simulate the following scenarios:
##' - 100 mg IV bolus q8h x 3
##' - 100 mg IV over 3 hours q8h x3
##' Look at the `CP` output
|
datareduction1 <-function (startdate, enddate){
mydata <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
mydata1 <- within(mydata, { timestamp=paste(mydata$Date, mydata$Time)})
date <- as.Date(mydata1$Date, "%d/%m/%Y")
startdate <- as.Date(startdate, "%Y-%m-%d")
enddate <- as.Date(end... | /figure/plot3.r | no_license | Xinran603/ExData_Plotting1 | R | false | false | 1,194 | r | datareduction1 <-function (startdate, enddate){
mydata <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
mydata1 <- within(mydata, { timestamp=paste(mydata$Date, mydata$Time)})
date <- as.Date(mydata1$Date, "%d/%m/%Y")
startdate <- as.Date(startdate, "%Y-%m-%d")
enddate <- as.Date(end... |
## This script is a part of the supporting source code for paper: ##
## Hu et. al. Computational identification of protein binding sites on ##
## RNA using high-throughput RNA structure-probing data ##
## It is free for non-commercial academic use. ... | /src/fit_pars_all.R | no_license | huxihao/ProbRNA | R | false | false | 21,962 | r | ## This script is a part of the supporting source code for paper: ##
## Hu et. al. Computational identification of protein binding sites on ##
## RNA using high-throughput RNA structure-probing data ##
## It is free for non-commercial academic use. ... |
library(testthat)
library(bracer)
test_check("bracer")
| /tests/testthat.R | permissive | trevorld/bracer | R | false | false | 56 | r | library(testthat)
library(bracer)
test_check("bracer")
|
/R-source/PlusRealis.R | no_license | mizma2k/FX-Git | R | false | false | 8,320 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeOperator.R
\name{getOperatorParameters}
\alias{getOperatorParameters}
\title{Get the operator's parameters.}
\usage{
getOperatorParameters(operator)
}
\arguments{
\item{operator}{[\code{ecr_operator}]\cr
Operator object.}
}
\value{
[\code... | /man/getOperatorParameters.Rd | no_license | jakobbossek/ecr | R | false | true | 443 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeOperator.R
\name{getOperatorParameters}
\alias{getOperatorParameters}
\title{Get the operator's parameters.}
\usage{
getOperatorParameters(operator)
}
\arguments{
\item{operator}{[\code{ecr_operator}]\cr
Operator object.}
}
\value{
[\code... |
## calculat the inverse of a matrix and saves it to a cache.
## The saved value is returned when next time recalled
## create a special 'matrix' object.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse ... | /cachematrix.R | no_license | jianbing-zhang/ProgrammingAssignment2 | R | false | false | 744 | r | ## calculat the inverse of a matrix and saves it to a cache.
## The saved value is returned when next time recalled
## create a special 'matrix' object.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse ... |
\name{sd.fts}
\alias{sd.fts}
\title{Standard deviation functions for functional time series}
\description{
Computes standard deviation of functional time series at each variable.
}
\usage{
\method{sd}{fts}(x, method = c("coordinate", "FM", "mode", "RP", "RPD", "radius"),
trim = 0.25, alpha, weight,...)
}
\arguments{
... | /man/sd.fts.Rd | no_license | yangxhcaf/ftsa | R | false | false | 3,838 | rd | \name{sd.fts}
\alias{sd.fts}
\title{Standard deviation functions for functional time series}
\description{
Computes standard deviation of functional time series at each variable.
}
\usage{
\method{sd}{fts}(x, method = c("coordinate", "FM", "mode", "RP", "RPD", "radius"),
trim = 0.25, alpha, weight,...)
}
\arguments{
... |
# somewhat hackish solution to:
# https://twitter.com/EamonCaddigan/status/646759751242620928
# based mostly on copy/pasting from ggplot2 geom_violin source:
# https://github.com/hadley/ggplot2/blob/master/R/geom-violin.r
# GeomFlatViolin函数的定义见https://github.com/EasyChart/Beautiful-Visualization-with-R
# https://gist.... | /R/sp_raincloud.R | permissive | Tong-Chen/YSX | R | false | false | 8,860 | r | # somewhat hackish solution to:
# https://twitter.com/EamonCaddigan/status/646759751242620928
# based mostly on copy/pasting from ggplot2 geom_violin source:
# https://github.com/hadley/ggplot2/blob/master/R/geom-violin.r
# GeomFlatViolin函数的定义见https://github.com/EasyChart/Beautiful-Visualization-with-R
# https://gist.... |
library(knitr)
require(ggplot2)
require(dplyr)
require(rvest)
require(gsubfn)
require(zoo)
library(scales)
library(mgcv)
# Uvozimo funkcije za delo z datotekami XML.
source("lib/xml.r", encoding = "UTF-8")
# Uvozimo funkcije za pobiranje in uvoz zemljevida.
source("lib/uvozi.zemljevid.r", encoding = "UTF-8")
| /lib/libraries.r | permissive | NadjaLegan/APPR-2015-16 | R | false | false | 313 | r | library(knitr)
require(ggplot2)
require(dplyr)
require(rvest)
require(gsubfn)
require(zoo)
library(scales)
library(mgcv)
# Uvozimo funkcije za delo z datotekami XML.
source("lib/xml.r", encoding = "UTF-8")
# Uvozimo funkcije za pobiranje in uvoz zemljevida.
source("lib/uvozi.zemljevid.r", encoding = "UTF-8")
|
#' Esporta un dataset in csv (standard italiano)
#'
#' Esportazione semplificata di un dataframe in formato csv,
#' con \code{\link[utils]{write.table}}, e
#' secondo lo standard italiano:
#' sep = ";",
#' dec = "," (separatore di decimali = virgola), NA = "" (celle vuote),
#' row.names = FALSE
#' (il dataframe... | /R/expdata.R | no_license | cran/LabRS | R | false | false | 888 | r | #' Esporta un dataset in csv (standard italiano)
#'
#' Esportazione semplificata di un dataframe in formato csv,
#' con \code{\link[utils]{write.table}}, e
#' secondo lo standard italiano:
#' sep = ";",
#' dec = "," (separatore di decimali = virgola), NA = "" (celle vuote),
#' row.names = FALSE
#' (il dataframe... |
/2. Programación y manipulación de datos en R/Ejercicio 5 sesion 2.R | no_license | sh4rkd/R---practica | R | false | false | 1,543 | r | ||
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/703-readMolFromSDF.R
\name{readMolFromSDF}
\alias{readMolFromSDF}
\title{Read Molecules from SDF Files and Return Parsed Java Molecular Object}
\usage{
readMolFromSDF(sdffile)
}
\arguments{
\item{sdffile}{Character vector, containing ... | /man/readMolFromSDF.Rd | no_license | jedison-github/BioMedR-generating-various-molecular-representations-for-chemicals-proteins-DNAs-RNAs-and-their-in | R | false | false | 1,157 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/703-readMolFromSDF.R
\name{readMolFromSDF}
\alias{readMolFromSDF}
\title{Read Molecules from SDF Files and Return Parsed Java Molecular Object}
\usage{
readMolFromSDF(sdffile)
}
\arguments{
\item{sdffile}{Character vector, containing ... |
#!/usr/bin/Rscript
args <- commandArgs(TRUE)
srcFile <- args[1]
outFile <- args[2]
library(data.table)
library(sqldf)
library(stringr)
data<-fread(srcFile, header=T, na.strings=c(".", "null"))
data$TYPE <- ifelse((nchar(data$MOTHER_GT)==3 & nchar(data$FATHER_GT)==3 & nchar(data$CHILD_GT)==3), "SNP", "INDEL")
#Origi... | /runFilt.r | no_license | NCI-CGR/ChernobylDNMCalling | R | false | false | 3,671 | r | #!/usr/bin/Rscript
args <- commandArgs(TRUE)
srcFile <- args[1]
outFile <- args[2]
library(data.table)
library(sqldf)
library(stringr)
data<-fread(srcFile, header=T, na.strings=c(".", "null"))
data$TYPE <- ifelse((nchar(data$MOTHER_GT)==3 & nchar(data$FATHER_GT)==3 & nchar(data$CHILD_GT)==3), "SNP", "INDEL")
#Origi... |
library("RTseries")
# -----------------------------------------------------------------------------------
# code for figure on page 9-20
show.true.acfpacf(model=list(ma=c(rep(0, 11), +0.9)),
nacf=38)
# -----------------------------------------------------------------------------------
# code for fig... | /inst/ModuleExamples/ModualExamples09/ACF_PACF_M9.R | no_license | wqmeeker/RTseries | R | false | false | 2,362 | r | library("RTseries")
# -----------------------------------------------------------------------------------
# code for figure on page 9-20
show.true.acfpacf(model=list(ma=c(rep(0, 11), +0.9)),
nacf=38)
# -----------------------------------------------------------------------------------
# code for fig... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CIMseqSwarm.R
\name{calculateEdgeStats}
\alias{calculateEdgeStats}
\title{calculateEdgeStats}
\usage{
calculateEdgeStats(
swarm,
singlets,
multiplets,
depleted = FALSE,
maxCellsPerMultiplet = Inf,
groups = NULL,
multiplet.factor... | /man/calculateEdgeStats.Rd | no_license | EngeLab/CIMseq | R | false | true | 821 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CIMseqSwarm.R
\name{calculateEdgeStats}
\alias{calculateEdgeStats}
\title{calculateEdgeStats}
\usage{
calculateEdgeStats(
swarm,
singlets,
multiplets,
depleted = FALSE,
maxCellsPerMultiplet = Inf,
groups = NULL,
multiplet.factor... |
install.packages("fitbitScraper")
library(fitbitScraper)
cookie <- login(email="ndonders93@gmail.com", password="Greet2606")
cookie2 <- login(email="greet_coppens93@gmail.com", password="Basket07")
dates <- seq(as.Date("2017-01-25"), as.Date("2017-02-13"), by="day")
## export from API
steps_day <- lapply(date... | /fitbit.R | no_license | NDon1093/ShinyFitbit | R | false | false | 4,801 | r | install.packages("fitbitScraper")
library(fitbitScraper)
cookie <- login(email="ndonders93@gmail.com", password="Greet2606")
cookie2 <- login(email="greet_coppens93@gmail.com", password="Basket07")
dates <- seq(as.Date("2017-01-25"), as.Date("2017-02-13"), by="day")
## export from API
steps_day <- lapply(date... |
output_dir <- "/users/ndyjack/Dist_Proj/tables/test_datasets/"
library(heatmap3)
library(Matrix)
n_clust <- 2 #number cluters
n_cellperclust <- 500 #cells per cluster
n_features <- 10000 #10000 features
feature_means <- c(1,20) #mean expression for two genes
cell_id <- as.vector(sapply(1:n_clust, function(i) rep(i,n_c... | /hashing_scripts/make_lsh_testdata.R | no_license | ntdyjack/Dist_Proj | R | false | false | 1,021 | r | output_dir <- "/users/ndyjack/Dist_Proj/tables/test_datasets/"
library(heatmap3)
library(Matrix)
n_clust <- 2 #number cluters
n_cellperclust <- 500 #cells per cluster
n_features <- 10000 #10000 features
feature_means <- c(1,20) #mean expression for two genes
cell_id <- as.vector(sapply(1:n_clust, function(i) rep(i,n_c... |
# Globals -----------------------------------------------------------------
control_cols <- c("..blank", "..page", "..row", "..page_by")
# Create Tables -----------------------------------------------------------
#' @details
#' Order of these operations is very important. Any change in the order
#' will requ... | /R/create_table_text.R | no_license | armenic/reporter | R | false | false | 16,946 | r |
# Globals -----------------------------------------------------------------
control_cols <- c("..blank", "..page", "..row", "..page_by")
# Create Tables -----------------------------------------------------------
#' @details
#' Order of these operations is very important. Any change in the order
#' will requ... |
remove(list=ls())
setwd("C:/Users/AlcineiAzevedo/Desktop/Alcinei/Simeali")
D=read.table("ex2.txt",head=TRUE)
rownames(D)=D[,1]
D=D[,-1]
library(MultivariateAnalysis)
ComponentesPrincipais(D)
?ComponentesPrincipais.Misto
data("Dados.Misto")
NomeTrat=paste("Trat",1:nrow(Dados.Misto),sep="_")
ComponentesPrin... | /Rotina ex2.R | no_license | AlcineiAzevedo/CursoSimeali2021 | R | false | false | 488 | r | remove(list=ls())
setwd("C:/Users/AlcineiAzevedo/Desktop/Alcinei/Simeali")
D=read.table("ex2.txt",head=TRUE)
rownames(D)=D[,1]
D=D[,-1]
library(MultivariateAnalysis)
ComponentesPrincipais(D)
?ComponentesPrincipais.Misto
data("Dados.Misto")
NomeTrat=paste("Trat",1:nrow(Dados.Misto),sep="_")
ComponentesPrin... |
library(marima)
### Name: season.lagging
### Title: season.lagging
### Aliases: season.lagging
### ** Examples
set.seed(4711)
# generate bivariate time series
y<-round(matrix(10*rnorm(36), nrow=2))
y
# define new lagged variables (y3 and y4) with seasonalities 6 and 12
lagging <- c(1, 3, (6-1), 2, 4, (12-1))
seas... | /data/genthat_extracted_code/marima/examples/season.lagging.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 347 | r | library(marima)
### Name: season.lagging
### Title: season.lagging
### Aliases: season.lagging
### ** Examples
set.seed(4711)
# generate bivariate time series
y<-round(matrix(10*rnorm(36), nrow=2))
y
# define new lagged variables (y3 and y4) with seasonalities 6 and 12
lagging <- c(1, 3, (6-1), 2, 4, (12-1))
seas... |
# Matrix inversion is usually a costly computation and there may be some benefit to caching the inverse of a matrix
# rather than compute it repeatedly. The following two functions are used to cache the inverse of a matrix.
# The first function makeCacheMatrix creates a special "matrix" object that can cache its inver... | /cachematrix.R | no_license | Cruochu/ProgrammingAssignment2 | R | false | false | 1,397 | r | # Matrix inversion is usually a costly computation and there may be some benefit to caching the inverse of a matrix
# rather than compute it repeatedly. The following two functions are used to cache the inverse of a matrix.
# The first function makeCacheMatrix creates a special "matrix" object that can cache its inver... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sarpoisson.R
\name{set_sarpoisson}
\alias{set_sarpoisson}
\title{Build a glm class object from an NLM poisson fit}
\usage{
set_sarpoisson(object, mf, mt)
}
\arguments{
\item{object}{An object containing the estimation results from an NLM
opti... | /man/set_sarpoisson.Rd | permissive | gregmacfarlane/sppois | R | false | true | 510 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sarpoisson.R
\name{set_sarpoisson}
\alias{set_sarpoisson}
\title{Build a glm class object from an NLM poisson fit}
\usage{
set_sarpoisson(object, mf, mt)
}
\arguments{
\item{object}{An object containing the estimation results from an NLM
opti... |
# For the example, using the output of mlr gstat KED from previous section
# loading the data
data(meuse)
data(meuse.grid)
# imputing values to missing data
meuse = impute(meuse, classes = list(numeric = imputeMean(), factor = imputeMode()),
dummy.classes = "integer")$data
meuse.grid = impute(meuse.grid, classes = list... | /spatialize.R | no_license | pokyah/defExHyd | R | false | false | 1,894 | r | # For the example, using the output of mlr gstat KED from previous section
# loading the data
data(meuse)
data(meuse.grid)
# imputing values to missing data
meuse = impute(meuse, classes = list(numeric = imputeMean(), factor = imputeMode()),
dummy.classes = "integer")$data
meuse.grid = impute(meuse.grid, classes = list... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/params.R, R/params_lm.R, R/params_mlogit.R,
% R/params_mlogit_list.R, R/params_surv.R, R/params_surv_list.R
\name{summary.params}
\alias{summary.params}
\alias{summary.params_lm}
\alias{summary.params_mlogit}
\alias{summary.params_mlogit_li... | /man/summary.params.Rd | no_license | jeff-m-sullivan/hesim | R | false | true | 3,486 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/params.R, R/params_lm.R, R/params_mlogit.R,
% R/params_mlogit_list.R, R/params_surv.R, R/params_surv_list.R
\name{summary.params}
\alias{summary.params}
\alias{summary.params_lm}
\alias{summary.params_mlogit}
\alias{summary.params_mlogit_li... |
#!/usr/bin/env Rscript
dir <- here::here("data/datasets/SRP100803")
jobDir <- glue::glue("{dir}/.job")
if (!dir.exists(jobDir)) dir.create(jobDir)
files <- list.files(here::here("data/datasets/SRP100803"), recursive = TRUE,
pattern = "sra", full.names = TRUE)
index <- "/oshlack_lab/shared/genomes/... | /code/salmon-quant-SRP100803.R | permissive | seba2550/methyl-geneset-testing | R | false | false | 1,502 | r | #!/usr/bin/env Rscript
dir <- here::here("data/datasets/SRP100803")
jobDir <- glue::glue("{dir}/.job")
if (!dir.exists(jobDir)) dir.create(jobDir)
files <- list.files(here::here("data/datasets/SRP100803"), recursive = TRUE,
pattern = "sra", full.names = TRUE)
index <- "/oshlack_lab/shared/genomes/... |
plot3.1 <- function() {
library(ggplot2)
summary.file <- "summarySCC_PM25.rds"
source.class.file <- "Source_Classification_Code.rds"
if (file.exists(summary.file) &
file.exists(source.class.file)) {
NEI <- readRDS(summary.file)
SCC <- readRDS(source.class.file)
}
else {
return
... | /plot31.R | no_license | ianfmc/ExploringDataProgrammingAssignment2 | R | false | false | 1,052 | r | plot3.1 <- function() {
library(ggplot2)
summary.file <- "summarySCC_PM25.rds"
source.class.file <- "Source_Classification_Code.rds"
if (file.exists(summary.file) &
file.exists(source.class.file)) {
NEI <- readRDS(summary.file)
SCC <- readRDS(source.class.file)
}
else {
return
... |
\name{walleye}
\alias{walleye}
\docType{data}
\title{Walleye length at age}
\description{
These data give length and age for over 3000 walleye (a type of fish) captured in Butternut
Lake, Wisconsin, in three periods with different management method in place.
}
\format{
A data frame with 3198 observations on ... | /man/walleye.Rd | no_license | nicholaskarlson/alr4 | R | false | false | 683 | rd | \name{walleye}
\alias{walleye}
\docType{data}
\title{Walleye length at age}
\description{
These data give length and age for over 3000 walleye (a type of fish) captured in Butternut
Lake, Wisconsin, in three periods with different management method in place.
}
\format{
A data frame with 3198 observations on ... |
##SQL30 바차트 : 구단승리순으로 순위매기기
db_win_count<-dbGetQuery(conn,
"SELECT
A.WINNER,
COUNT(A.WINNER) WINCOUNT
FROM(SELECT
K.SCHE_DATE 경기날짜,
CASE
WHEN K.HOME_SCORE > K.AWAY_SCORE THEN HT.TEAM_NAME
WHEN K.AWAY_SCORE > K.HOME_SCORE THEN AT.TEAM_NAME
... | /RProgect/rlang_08_chart.R | no_license | HYERI-HONG/BITCAMP_06_R | R | false | false | 5,989 | r | ##SQL30 바차트 : 구단승리순으로 순위매기기
db_win_count<-dbGetQuery(conn,
"SELECT
A.WINNER,
COUNT(A.WINNER) WINCOUNT
FROM(SELECT
K.SCHE_DATE 경기날짜,
CASE
WHEN K.HOME_SCORE > K.AWAY_SCORE THEN HT.TEAM_NAME
WHEN K.AWAY_SCORE > K.HOME_SCORE THEN AT.TEAM_NAME
... |
setwd("C:\\Users\\acer\\Desktop\\MABA\\Business Domain 2")
Tweets<-read.csv("Tag_En_tweet.csv")
library(lda)
library(LDAvis)
library(dplyr)
# read in some stopwords:
library(tm)
stop_words <- stopwords("SMART")
# pre-processing:
Tweets$tweet <- gsub("http.*","", Tweets$tweet)
Tweets$tweet <- gsub("https.*"... | /Topic_clustering.R | no_license | MarianneVitug09/Corona_Virus | R | false | false | 3,229 | r | setwd("C:\\Users\\acer\\Desktop\\MABA\\Business Domain 2")
Tweets<-read.csv("Tag_En_tweet.csv")
library(lda)
library(LDAvis)
library(dplyr)
# read in some stopwords:
library(tm)
stop_words <- stopwords("SMART")
# pre-processing:
Tweets$tweet <- gsub("http.*","", Tweets$tweet)
Tweets$tweet <- gsub("https.*"... |
#######################################################
# SETUP -- libraries/BioGeoBEARS updates
#######################################################
# Load the package (after installation, see above).
library(GenSA) # GenSA is better than optimx (although somewhat slower)
library(FD) # for FD::maxent() (m... | /inst/extdata/script/e_01_run_DEC_model.R | permissive | GabrielNakamura/Herodotools | R | false | false | 45,694 | r | #######################################################
# SETUP -- libraries/BioGeoBEARS updates
#######################################################
# Load the package (after installation, see above).
library(GenSA) # GenSA is better than optimx (although somewhat slower)
library(FD) # for FD::maxent() (m... |
#' getIndividualData.R
#'
#' tet a specified patient's demographic, PSA, biopsy, and treatment results to the console
#'
#'
#' @param idInput Integer of patient record to be displayed
#' @param patientDataframes Full
#' @export
getIndividualData<- function(idInput = 5, patientDataframes, bx_data) {
pt.data <- patient... | /R/getIndividualData.R | no_license | jbindman/prostate-project | R | false | false | 3,945 | r | #' getIndividualData.R
#'
#' tet a specified patient's demographic, PSA, biopsy, and treatment results to the console
#'
#'
#' @param idInput Integer of patient record to be displayed
#' @param patientDataframes Full
#' @export
getIndividualData<- function(idInput = 5, patientDataframes, bx_data) {
pt.data <- patient... |
library(nhsAEscraper)
context("Retrieve urls of A&E data files")
# These tests are dependent on a live internet connection
# TODO: Mock this out
test_that("getAEdata_urls_monthly returns character vector",{
urls_ae <- getAEdata_urls_monthly()
expect_is(urls_ae, "character")
})
test_that("getAEdata_urls_monthly ... | /tests/testthat/test_url_retrieval.R | permissive | HorridTom/nhsAEscraper | R | false | false | 1,655 | r | library(nhsAEscraper)
context("Retrieve urls of A&E data files")
# These tests are dependent on a live internet connection
# TODO: Mock this out
test_that("getAEdata_urls_monthly returns character vector",{
urls_ae <- getAEdata_urls_monthly()
expect_is(urls_ae, "character")
})
test_that("getAEdata_urls_monthly ... |
# MIT License
#
# Copyright (c) 2017-2022 TileDB Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modi... | /R/AllGenerics.R | permissive | TileDB-Inc/TileDB-R | R | false | false | 2,008 | r | # MIT License
#
# Copyright (c) 2017-2022 TileDB Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modi... |
#'@title Normality Tests and Plots
#'
#'@description Performs normality tests and creates related plots (histogram,
#' density, Q-Q). This is primarily a subfunction of \code{\link{t_neat}} and
#' \code{\link{anova_neat}}, but here it is available separately for other
#' potential purposes.
#'@param var1 Numeric vec... | /R/norm_tests.R | permissive | gasparl/neatstats | R | false | false | 11,884 | r | #'@title Normality Tests and Plots
#'
#'@description Performs normality tests and creates related plots (histogram,
#' density, Q-Q). This is primarily a subfunction of \code{\link{t_neat}} and
#' \code{\link{anova_neat}}, but here it is available separately for other
#' potential purposes.
#'@param var1 Numeric vec... |
#
# 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/
#
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
titlePanel("Price... | /app.R | no_license | Boite-a-Sable/Shiny_Application_and_Reproducible_Pitch | R | false | false | 3,548 | 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/
#
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
titlePanel("Price... |
if (!require("gplots")) {
install.packages("gplots", dependencies = TRUE)
library(gplots)
}
if (!require("RColorBrewer")) {
install.packages("RColorBrewer", dependencies = TRUE)
library(gplots)
}
### converting data
data(co2)
rowcolNames <- list(as.character(1959:1997), month.abb)
co2_data <- matrix(co2,
... | /book/packt/Instant.Heat.Maps.in.R.How-to/Code_Final/5644OS_05_01.r | no_license | xenron/sandbox-da-r | R | false | false | 1,821 | r | if (!require("gplots")) {
install.packages("gplots", dependencies = TRUE)
library(gplots)
}
if (!require("RColorBrewer")) {
install.packages("RColorBrewer", dependencies = TRUE)
library(gplots)
}
### converting data
data(co2)
rowcolNames <- list(as.character(1959:1997), month.abb)
co2_data <- matrix(co2,
... |
#' @docType package
#' @name exasol-package
#' @aliases exasol
#' @useDynLib exasol, .registration = TRUE, .fixes = "C_"
#' @exportPattern ^[[:alpha:]]+
#' @import RODBC
#'
#' @title EXASolution R Package
#'
#' @description The EXASolution R Package offers functionality to interact with
#' the EXASolution database ou... | /R/exasol.R | no_license | fxcebx/r-exasol | R | false | false | 4,107 | r | #' @docType package
#' @name exasol-package
#' @aliases exasol
#' @useDynLib exasol, .registration = TRUE, .fixes = "C_"
#' @exportPattern ^[[:alpha:]]+
#' @import RODBC
#'
#' @title EXASolution R Package
#'
#' @description The EXASolution R Package offers functionality to interact with
#' the EXASolution database ou... |
complete <- function(directory, id = 1:332) {
table.completion <- data.frame(foo=c(), bar=c())
for (i in id){
digadd <- substr("/00", 1, 3 - ((nchar(i)) - 1))
df <- read.csv(paste0(directory, digadd, i, ".csv"))
myRow = c(i, NROW(df[complete.cases(df),]))
table.completion <- rbind(table.... | /complete.R | no_license | MattPaul25/R_Programming | R | false | false | 442 | r | complete <- function(directory, id = 1:332) {
table.completion <- data.frame(foo=c(), bar=c())
for (i in id){
digadd <- substr("/00", 1, 3 - ((nchar(i)) - 1))
df <- read.csv(paste0(directory, digadd, i, ".csv"))
myRow = c(i, NROW(df[complete.cases(df),]))
table.completion <- rbind(table.... |
# HW 4
# Writing functions
# Due Thursday February 26th by midnight
# This .r file should contain your code
#### Function #1
# Implement the function "listLengths".
# Input variable:
# <data.list>: a list whose elements are vectors of varying length
# Output variable:
# <element.lengths>: a numeric vector whose en... | /hw4/hw4.r | no_license | yaleldy/stat133 | R | false | false | 5,990 | r | # HW 4
# Writing functions
# Due Thursday February 26th by midnight
# This .r file should contain your code
#### Function #1
# Implement the function "listLengths".
# Input variable:
# <data.list>: a list whose elements are vectors of varying length
# Output variable:
# <element.lengths>: a numeric vector whose en... |
library(ape)
testtree <- read.tree("2466_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="2466_1_unrooted.txt") | /codeml_files/newick_trees_processed/2466_1/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("2466_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="2466_1_unrooted.txt") |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615836522-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,048 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
get_links_df <- function(gid_joins) {
gids <- unlist(gid_joins) %>%
unique() %>%
sort()
ldf <- NULL
repeat({
l0 <- linked_to(gids[1], gid_joins)
ldf <- ldf %>% bind_rows(tibble(gid = l0, new_gid = min(l0)))
gids <- setdiff(gids, ldf$gid)
if (length(gids) == 0) break()
})
l... | /R/get_links_df.R | no_license | cran/tidycells | R | false | false | 852 | r |
get_links_df <- function(gid_joins) {
gids <- unlist(gid_joins) %>%
unique() %>%
sort()
ldf <- NULL
repeat({
l0 <- linked_to(gids[1], gid_joins)
ldf <- ldf %>% bind_rows(tibble(gid = l0, new_gid = min(l0)))
gids <- setdiff(gids, ldf$gid)
if (length(gids) == 0) break()
})
l... |
testlist <- list(testX = c(191493125665849920, 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, 0, 0, 0, 0, 0, 0), trainX ... | /dann/inst/testfiles/calc_distance_C/AFL_calc_distance_C/calc_distance_C_valgrind_files/1609867538-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 1,198 | r | testlist <- list(testX = c(191493125665849920, 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, 0, 0, 0, 0, 0, 0), trainX ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shower.R
\name{shower_presentation}
\alias{shower_presentation}
\title{R Markdown format for Shower presentations}
\usage{
shower_presentation(theme = c("ribbon", "material"), ratio = c("4x3",
"16x10"), katex = FALSE, incremental = FALSE, f... | /man/shower_presentation.Rd | permissive | juliasilge/rmdshower | R | false | true | 3,537 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shower.R
\name{shower_presentation}
\alias{shower_presentation}
\title{R Markdown format for Shower presentations}
\usage{
shower_presentation(theme = c("ribbon", "material"), ratio = c("4x3",
"16x10"), katex = FALSE, incremental = FALSE, f... |
library(tidyverse)
library(tm)
library(Matrix)
library(glmnet)
library(ROCR)
library(caret)
library(broom)
########################################
# LOAD AND PARSE ARTICLES
########################################
# read in the business and world articles from files
# combine them both into one data frame called art... | /week4/classify_nyt_articles.R | no_license | ateitelbaum/coursework | R | false | false | 2,853 | r | library(tidyverse)
library(tm)
library(Matrix)
library(glmnet)
library(ROCR)
library(caret)
library(broom)
########################################
# LOAD AND PARSE ARTICLES
########################################
# read in the business and world articles from files
# combine them both into one data frame called art... |
/FactoMineR/R/plot.MFA.R | no_license | ingted/R-Examples | R | false | false | 66,301 | r | ||
#'---
#' title: All paper figure (precRec)
#' author: Ines Scheller
#' wb:
#' input:
#' - allOut: '`sm expand("Output/html/PaperFigures/precRec/{dataset}/{delta}/precRec_{outlierType}_{psiType}.html", dataset=config["datasets"], psiType=config["psiTypes"], delta=config["inj_deltas"], outlierType=config["outlier_typ... | /Scripts/PaperFigures/all_precRecFigure.R | permissive | Guliba/FRASER-analysis | R | false | false | 1,336 | r | #'---
#' title: All paper figure (precRec)
#' author: Ines Scheller
#' wb:
#' input:
#' - allOut: '`sm expand("Output/html/PaperFigures/precRec/{dataset}/{delta}/precRec_{outlierType}_{psiType}.html", dataset=config["datasets"], psiType=config["psiTypes"], delta=config["inj_deltas"], outlierType=config["outlier_typ... |
#' Assess the estimations of the size factors
#'
#' Plots to assess the estimations of the size factors
#'
#' @param dds a \code{DESeqDataSet} object
#' @param outfile TRUE to export the figure in a png file
#' @param plots vector of plots to generate
#' @return Two files in the figures directory: diagSizeFactorsHist.p... | /R/diagSizeFactorsPlots.R | no_license | hackerzone85/SARTools | R | false | false | 1,941 | r | #' Assess the estimations of the size factors
#'
#' Plots to assess the estimations of the size factors
#'
#' @param dds a \code{DESeqDataSet} object
#' @param outfile TRUE to export the figure in a png file
#' @param plots vector of plots to generate
#' @return Two files in the figures directory: diagSizeFactorsHist.p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/symsolve.r
\name{sym.solve.eq}
\alias{sym.solve.eq}
\title{Try to solve an equation symbollically}
\usage{
sym.solve.eq(eq, var, simplify = TRUE)
}
\arguments{
\item{eq}{the equation as an quoted R call}
\item{var}{the variable to be solved ... | /man/sym.solve.eq.Rd | no_license | skranz/symbeqs | R | false | true | 579 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/symsolve.r
\name{sym.solve.eq}
\alias{sym.solve.eq}
\title{Try to solve an equation symbollically}
\usage{
sym.solve.eq(eq, var, simplify = TRUE)
}
\arguments{
\item{eq}{the equation as an quoted R call}
\item{var}{the variable to be solved ... |
char2fac=function(x){
if (is.character(x)){
x=as.factor(x)
return(x)
}
if (is.data.frame(x)){
for (i in 1:length(x)){
if (is.character(x[,i])){
x[,i]=as.factor(x[,i])
}
}
}
return(x)
}
| /unsorted_code/char2fac.R | permissive | giorgioarcara/R-code-Misc | R | false | false | 210 | r | char2fac=function(x){
if (is.character(x)){
x=as.factor(x)
return(x)
}
if (is.data.frame(x)){
for (i in 1:length(x)){
if (is.character(x[,i])){
x[,i]=as.factor(x[,i])
}
}
}
return(x)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plotScoresHistogram}
\alias{plotScoresHistogram}
\title{Plot the reference and pair histograms.}
\usage{
plotScoresHistogram(reference, results)
}
\arguments{
\item{reference}{A reference distribution generated by one of the ref... | /man/plotScoresHistogram.Rd | permissive | argymeg/breakclone | R | false | true | 477 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plotScoresHistogram}
\alias{plotScoresHistogram}
\title{Plot the reference and pair histograms.}
\usage{
plotScoresHistogram(reference, results)
}
\arguments{
\item{reference}{A reference distribution generated by one of the ref... |
#hoping this wouldn't break R attempt lol
source("inspack_map.R")
#toby's data
NA_abundancedata<- read.csv("D:/Postdoc/theoretical/NA simulation data/cocco_work4Karen/cocco_work4Karen_withrownames.txt", sep="")
#filter data out
NA_abundancedata <- NA_abundancedata %>% filter (!(waterdepth_m < 100)) %>% filte... | /Scripts/Apr 2020/NA mapping v3 Toby masking.R | no_license | kaye11/Postdoc-R | R | false | false | 14,924 | r | #hoping this wouldn't break R attempt lol
source("inspack_map.R")
#toby's data
NA_abundancedata<- read.csv("D:/Postdoc/theoretical/NA simulation data/cocco_work4Karen/cocco_work4Karen_withrownames.txt", sep="")
#filter data out
NA_abundancedata <- NA_abundancedata %>% filter (!(waterdepth_m < 100)) %>% filte... |
\name{check_keypts}
\alias{check_keypts}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Checks for generated samples at assessed time-points
%% ~~function to do ... ~~
}
\description{Takes the output of \code{simulate_at_elic_times} and creates a
number of summaries of the simulated samples: co... | /man/check_keypts.Rd | no_license | iandurbach/projections | R | false | false | 2,129 | rd | \name{check_keypts}
\alias{check_keypts}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Checks for generated samples at assessed time-points
%% ~~function to do ... ~~
}
\description{Takes the output of \code{simulate_at_elic_times} and creates a
number of summaries of the simulated samples: co... |
#####Term Document Matrix:
tdm <- TermDocumentMatrix(myCorpus, control = list(wordLengths = c(1, Inf)))
##Let's see what we have in the term document matrix:
tdm
idx <- which(dimnames(tdm)$Terms %in% c("r", "data", "mining"))
as.matrix(tdm[idx, 21:30])
# inspect frequent words
(freq.terms <- findFreqTerms(tdm, low... | /termDocumentMatrix.r | no_license | WajdiBenSaad/R_Twitter | R | false | false | 661 | r |
#####Term Document Matrix:
tdm <- TermDocumentMatrix(myCorpus, control = list(wordLengths = c(1, Inf)))
##Let's see what we have in the term document matrix:
tdm
idx <- which(dimnames(tdm)$Terms %in% c("r", "data", "mining"))
as.matrix(tdm[idx, 21:30])
# inspect frequent words
(freq.terms <- findFreqTerms(tdm, low... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{getEnviroClimateRange}
\alias{getEnviroClimateRange}
\title{get the Environment, Climate, and Range of a species.}
\usage{
getEnviroClimateRange(fish.data = NULL, path = NULL)
}
\arguments{
\item{fish.data}{the fishbase database fish.data or a subset,}
\item{p... | /man/getEnviroClimateRange.Rd | permissive | CottonRockwood/rfishbase | R | false | false | 736 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{getEnviroClimateRange}
\alias{getEnviroClimateRange}
\title{get the Environment, Climate, and Range of a species.}
\usage{
getEnviroClimateRange(fish.data = NULL, path = NULL)
}
\arguments{
\item{fish.data}{the fishbase database fish.data or a subset,}
\item{p... |
#Downloading data if not exists
if (!file.exists(file = "summarySCC_PM25.rds") ||
!file.exists(file = "Source_Classification_Code.rds")) {
download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip",
destfile = "data.zip")
unzip("data.zip")
}
#Reading data
NEI <- rea... | /plot5.R | no_license | dmarquinez/EDACourseProject2 | R | false | false | 1,340 | r | #Downloading data if not exists
if (!file.exists(file = "summarySCC_PM25.rds") ||
!file.exists(file = "Source_Classification_Code.rds")) {
download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip",
destfile = "data.zip")
unzip("data.zip")
}
#Reading data
NEI <- rea... |
rm(list=ls())
setwd("C:/rdata/Group_124/JuliaStar/Matmetod")
#установак пакетов
#install.packages('tidyverse', 'tidyr', 'string','dplyr','tibble','readr','ggplot2','ggplot2')
# включаем библиотеки
library("dplyr")
library("tidyverse")
library("tidyr")
library("stringr")
library("tibble")
library("readr")
library("ggpl... | /course_work2.R | no_license | JuliaStaroverova/Matmetod | R | false | false | 4,397 | r | rm(list=ls())
setwd("C:/rdata/Group_124/JuliaStar/Matmetod")
#установак пакетов
#install.packages('tidyverse', 'tidyr', 'string','dplyr','tibble','readr','ggplot2','ggplot2')
# включаем библиотеки
library("dplyr")
library("tidyverse")
library("tidyr")
library("stringr")
library("tibble")
library("readr")
library("ggpl... |
#' @include spark_data_build_types.R
spark_serialize_csv_file <- function(sc, df, columns, repartition) {
# generate a CSV file from the associated data frame
# note that these files need to live for the R session
# duration so we don't clean these up eagerly
# write file based on hash to avoid writing too ma... | /R/data_copy.R | permissive | samuelmacedo83/sparklyr | R | false | false | 7,048 | r | #' @include spark_data_build_types.R
spark_serialize_csv_file <- function(sc, df, columns, repartition) {
# generate a CSV file from the associated data frame
# note that these files need to live for the R session
# duration so we don't clean these up eagerly
# write file based on hash to avoid writing too ma... |
summary.stslist <- function(object,...) {
alphabet <- alphabet(object)
nbstates <- length(alphabet)
cpal <- cpal(object)
labels <- attr(object,"labels")
nr <- attr(object,"nr")
void <- attr(object,"void")
weights <- attr(object, "weights")
TraMineR.version <- attr(object, "Version")
nbseq <- seqdim(object)[... | /R/summary-stslist.R | no_license | MortenKrebs/TraMineR | R | false | false | 1,373 | r |
summary.stslist <- function(object,...) {
alphabet <- alphabet(object)
nbstates <- length(alphabet)
cpal <- cpal(object)
labels <- attr(object,"labels")
nr <- attr(object,"nr")
void <- attr(object,"void")
weights <- attr(object, "weights")
TraMineR.version <- attr(object, "Version")
nbseq <- seqdim(object)[... |
library(dplyr)
# Code for QC of CSV files generated from GIA Server
# QC of Nation-CL1 Rx Trends Tab at Nation and RM Level
dp <- "H:\\01. GIP BAI\\MBR\\Automation\\Automation"
dpv <- ""
dpv[1] <-
"H:\\01. GIP BAI\\MBR\\Automation\\Automation\\6.Nation_CL1_Rx_Trends"
dpv[2] <-
"H:\\01. GIP BAI\\MBR\\Auto... | /R-Codes/Automation_Rx_CL1_modified.r | no_license | namann1209/pehla_account | R | false | false | 2,395 | r | library(dplyr)
# Code for QC of CSV files generated from GIA Server
# QC of Nation-CL1 Rx Trends Tab at Nation and RM Level
dp <- "H:\\01. GIP BAI\\MBR\\Automation\\Automation"
dpv <- ""
dpv[1] <-
"H:\\01. GIP BAI\\MBR\\Automation\\Automation\\6.Nation_CL1_Rx_Trends"
dpv[2] <-
"H:\\01. GIP BAI\\MBR\\Auto... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colour-manip.r
\name{muted}
\alias{muted}
\title{Mute standard colour.}
\usage{
muted(colour, l = 30, c = 70)
}
\arguments{
\item{colour}{character vector of colours to modify}
\item{l}{new luminance}
\item{c}{new chroma}
}
\description{
Mu... | /man/muted.Rd | no_license | nemochina2008/scales | R | false | true | 439 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colour-manip.r
\name{muted}
\alias{muted}
\title{Mute standard colour.}
\usage{
muted(colour, l = 30, c = 70)
}
\arguments{
\item{colour}{character vector of colours to modify}
\item{l}{new luminance}
\item{c}{new chroma}
}
\description{
Mu... |
\name{roads}
\alias{roads}
\docType{data}
\title{
Global Network of Major Roads
}
\description{
A gazetteer of major global roads as \code{SpatialPolygonsDataFrame}.
}
\usage{data("roads")}
\source{
\url{http://www.naturalearthdata.com/downloads/10m-cultural-vectors/}
}
\examples{
data(roads)
}
\keyword{datasets}
| /man/roads.Rd | no_license | MirelaBe/sampbias | R | false | false | 317 | rd | \name{roads}
\alias{roads}
\docType{data}
\title{
Global Network of Major Roads
}
\description{
A gazetteer of major global roads as \code{SpatialPolygonsDataFrame}.
}
\usage{data("roads")}
\source{
\url{http://www.naturalearthdata.com/downloads/10m-cultural-vectors/}
}
\examples{
data(roads)
}
\keyword{datasets}
|
# call packages -----------------------------------------------------------
packages <- c("openxlsx",
"forecast",
"ggplot2")
if (!require(install.load)) {
install.packages("install.load")
}
install.load::install_load(packages)
# data steps ------------------------------------... | /Rogue Spring Chinook Forecast/Scripts/RogueChSForecast_cohRat.R | no_license | adstorch/RogueChSFore | R | false | false | 10,573 | r | # call packages -----------------------------------------------------------
packages <- c("openxlsx",
"forecast",
"ggplot2")
if (!require(install.load)) {
install.packages("install.load")
}
install.load::install_load(packages)
# data steps ------------------------------------... |
library(Rspotify)
library(tidyverse)
keys <- spotifyOAuth(Sys.getenv("spotify_app"), Sys.getenv("spotify_id"), Sys.getenv("spotify_secret"))
# lp_spotify <- searchArtist("LP", token = keys)
lp_post_2014 <- getArtist("0J7U24vlOOIeMpuaO6Q85A", token = keys)
lp_pre_2014 <- getArtist("0PzKCRBaQ5fCALoi4zSKQk", token = ke... | /data/00-get-data.R | no_license | aleruete/thisislp | R | false | false | 3,394 | r | library(Rspotify)
library(tidyverse)
keys <- spotifyOAuth(Sys.getenv("spotify_app"), Sys.getenv("spotify_id"), Sys.getenv("spotify_secret"))
# lp_spotify <- searchArtist("LP", token = keys)
lp_post_2014 <- getArtist("0J7U24vlOOIeMpuaO6Q85A", token = keys)
lp_pre_2014 <- getArtist("0PzKCRBaQ5fCALoi4zSKQk", token = ke... |
context("panel")
test_that(": robust lag specification", {
msg <- "lag value does not match"
expect_error(summary(radf_dta, sb1), msg)
expect_error(diagnostics(radf_dta, sb1), msg)
expect_error(datestamp(radf_dta, sb1), msg)
expect_error(autoplot(radf_dta, sb1), msg)
expect_error(summary(radf_dta... | /fuzzedpackages/exuber/tests/testthat/test-panel.R | no_license | akhikolla/testpackages | R | false | false | 387 | r | context("panel")
test_that(": robust lag specification", {
msg <- "lag value does not match"
expect_error(summary(radf_dta, sb1), msg)
expect_error(diagnostics(radf_dta, sb1), msg)
expect_error(datestamp(radf_dta, sb1), msg)
expect_error(autoplot(radf_dta, sb1), msg)
expect_error(summary(radf_dta... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/suso_api_user.R
\name{suso_getINT_info}
\alias{suso_getINT_info}
\title{Survey Solutions API call for info on interviewers}
\usage{
suso_getINT_info(url = suso_get_api_key("susoServer"),
usr = suso_get_api_key("susoUser"),
pass = suso_get... | /man/suso_getINT_info.Rd | no_license | mosesotieno/SurveySolutionsAPI | R | false | true | 575 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/suso_api_user.R
\name{suso_getINT_info}
\alias{suso_getINT_info}
\title{Survey Solutions API call for info on interviewers}
\usage{
suso_getINT_info(url = suso_get_api_key("susoServer"),
usr = suso_get_api_key("susoUser"),
pass = suso_get... |
\name{blockscal}
\alias{blockscal}
\encoding{latin1}
\title{Block autoscaling}
\description{
Function \code{blockscal} autoscales the blocks (i.e. sets of columns) of a reference (= training) matrix and eventually a new (= test) matrix, and concatenates the scaled blocks into two new output matrices.
Each block of... | /man/blockscal.Rd | no_license | mlesnoff/rnirs | R | false | false | 2,685 | rd | \name{blockscal}
\alias{blockscal}
\encoding{latin1}
\title{Block autoscaling}
\description{
Function \code{blockscal} autoscales the blocks (i.e. sets of columns) of a reference (= training) matrix and eventually a new (= test) matrix, and concatenates the scaled blocks into two new output matrices.
Each block of... |
library(psychotree)
### Name: SPISA
### Title: SPIEGEL Studentenpisa Data (Subsample)
### Aliases: SPISA
### Keywords: datasets
### ** Examples
## data
data("SPISA", package = "psychotree")
## summary of covariates
summary(SPISA[,-1])
## histogram of raw scores
hist(rowSums(SPISA$spisa), breaks = 0:45 + 0.5)
## ... | /data/genthat_extracted_code/psychotree/examples/SPISA.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 463 | r | library(psychotree)
### Name: SPISA
### Title: SPIEGEL Studentenpisa Data (Subsample)
### Aliases: SPISA
### Keywords: datasets
### ** Examples
## data
data("SPISA", package = "psychotree")
## summary of covariates
summary(SPISA[,-1])
## histogram of raw scores
hist(rowSums(SPISA$spisa), breaks = 0:45 + 0.5)
## ... |
#' Data from the periodic table of elements
#'
#' A dataset containing atomic numbers, chemical symbols, and
#' names of 118 elements.
#'
#' @format A data frame with 118 rows and 3 variables:
#' \describe{
#' \item{Z}{Atomic number}
#' \item{Symbol}{Chemical symbol}
#' \item{Name}{Name of element}
#' }
#' @sourc... | /R/data_elements.R | no_license | domjarkey/relatable | R | false | false | 387 | r | #' Data from the periodic table of elements
#'
#' A dataset containing atomic numbers, chemical symbols, and
#' names of 118 elements.
#'
#' @format A data frame with 118 rows and 3 variables:
#' \describe{
#' \item{Z}{Atomic number}
#' \item{Symbol}{Chemical symbol}
#' \item{Name}{Name of element}
#' }
#' @sourc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Kspp.R
\name{Kspp}
\alias{Kspp}
\title{K-function for spherical point pattern}
\usage{
Kspp(X, r = NULL, rmax = NULL, breaks = NULL, correction = NULL,
lambda = NULL, unnormalized = FALSE, angular_arg = FALSE)
}
\arguments{
\item{X}{Object ... | /man/Kspp.Rd | no_license | rubak/spatstatsphere | R | false | true | 1,935 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Kspp.R
\name{Kspp}
\alias{Kspp}
\title{K-function for spherical point pattern}
\usage{
Kspp(X, r = NULL, rmax = NULL, breaks = NULL, correction = NULL,
lambda = NULL, unnormalized = FALSE, angular_arg = FALSE)
}
\arguments{
\item{X}{Object ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.