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 |
|---|---|---|---|---|---|---|---|---|---|
\name{predict.svmpath}
\alias{predict.svmpath}
\title{Make predictions from a "svmpath" object}
\description{
Provide a value for \code{lambda}, and produce the fitted lagrange \code{alpha}
values. Provide values for \code{x}, and get fitted function values or
class labels.
}
\usage{
\method{predict}{svmpath}(obj... | /man/predict.svmpath.Rd | no_license | cran/svmpath | R | false | false | 1,939 | rd | \name{predict.svmpath}
\alias{predict.svmpath}
\title{Make predictions from a "svmpath" object}
\description{
Provide a value for \code{lambda}, and produce the fitted lagrange \code{alpha}
values. Provide values for \code{x}, and get fitted function values or
class labels.
}
\usage{
\method{predict}{svmpath}(obj... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ChemicalCuration.R
\name{check_ded2}
\alias{check_ded2}
\title{Check if "deduct" can be subtracted from given molecular formula}
\usage{
check_ded2(formula, deduct)
}
\arguments{
\item{formula}{Molecular formula to check.}
\item{deduct}{Dedu... | /man/check_ded2.Rd | no_license | gjgetzinger/RChemMass | R | false | true | 1,052 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ChemicalCuration.R
\name{check_ded2}
\alias{check_ded2}
\title{Check if "deduct" can be subtracted from given molecular formula}
\usage{
check_ded2(formula, deduct)
}
\arguments{
\item{formula}{Molecular formula to check.}
\item{deduct}{Dedu... |
combineData <-
function(DFs) {
if(!is.list(DFs)) { stop("DFs must be a list") }
if(!all(vapply(DFs, is.data.frame, logical(1)))) {
stop("DFs must be a list of data frames")
}
## shared set of variable names
varNameL <- lapply(DFs, names) # list of variable names
varNames ... | /R/combineData.R | no_license | cran/shotGroups | R | false | false | 5,086 | r | combineData <-
function(DFs) {
if(!is.list(DFs)) { stop("DFs must be a list") }
if(!all(vapply(DFs, is.data.frame, logical(1)))) {
stop("DFs must be a list of data frames")
}
## shared set of variable names
varNameL <- lapply(DFs, names) # list of variable names
varNames ... |
fluidPage(
tags$head(tags$style(HTML("
.shiny-text-output {
background-color:#fff;
}
"))),
h1("Shiny", span("Widgets Gallery", style = "font-weight: 300"),
style = "
color: #fff; text-align: center;
background-image: url('texturebg.png');
padding: 20px"),
br(),
f... | /apps/081-widgets-gallery/ui.R | permissive | rstudio/shinycoreci-apps | R | false | false | 5,343 | r | fluidPage(
tags$head(tags$style(HTML("
.shiny-text-output {
background-color:#fff;
}
"))),
h1("Shiny", span("Widgets Gallery", style = "font-weight: 300"),
style = "
color: #fff; text-align: center;
background-image: url('texturebg.png');
padding: 20px"),
br(),
f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glue_operations.R
\name{glue_get_column_statistics_for_partition}
\alias{glue_get_column_statistics_for_partition}
\title{Retrieves partition statistics of columns}
\usage{
glue_get_column_statistics_for_partition(CatalogId, DatabaseName,
T... | /cran/paws.analytics/man/glue_get_column_statistics_for_partition.Rd | permissive | TWarczak/paws | R | false | true | 3,252 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glue_operations.R
\name{glue_get_column_statistics_for_partition}
\alias{glue_get_column_statistics_for_partition}
\title{Retrieves partition statistics of columns}
\usage{
glue_get_column_statistics_for_partition(CatalogId, DatabaseName,
T... |
\name{aliscore}
\alias{aliscore}
\title{Cleaning of Sequence Alignments}
\description{
This function provides a wrapper to \bold{Aliscore}, which can be used remove problematic regions of a sequence alignment.
}
\usage{
aliscore(x, path)
}
\arguments{
\item{x}{DNA sequences of class \code{DNAbin}.}
\item{path}{... | /man/aliscore.Rd | no_license | LunaSare/phyloch | R | false | false | 718 | rd | \name{aliscore}
\alias{aliscore}
\title{Cleaning of Sequence Alignments}
\description{
This function provides a wrapper to \bold{Aliscore}, which can be used remove problematic regions of a sequence alignment.
}
\usage{
aliscore(x, path)
}
\arguments{
\item{x}{DNA sequences of class \code{DNAbin}.}
\item{path}{... |
#' Resample a series of GIFTIs related to a CIFTI file
#'
#' Performs spatial resampling of various CIFTI file components on
#' the cortical surface. (The subcortical data is not resampled here.)
#' GIFTI surface geometry files can additionally be included: see
#' \code{surfL_original_fname} and \code{surfR_... | /R/resample_cifti_components.R | no_license | yoaman/r-cran-ciftiTools | R | false | false | 8,243 | r | #' Resample a series of GIFTIs related to a CIFTI file
#'
#' Performs spatial resampling of various CIFTI file components on
#' the cortical surface. (The subcortical data is not resampled here.)
#' GIFTI surface geometry files can additionally be included: see
#' \code{surfL_original_fname} and \code{surfR_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extractEdges.R
\name{extractEdges}
\alias{extractEdges}
\title{Gets network data from EEBO-TCP index}
\usage{
extractEdges(dnet)
}
\description{
A function that extracts edges from an index.
The edges are derived from the data included with
... | /man/extractEdges.Rd | no_license | michaelgavin/htn | R | false | true | 705 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extractEdges.R
\name{extractEdges}
\alias{extractEdges}
\title{Gets network data from EEBO-TCP index}
\usage{
extractEdges(dnet)
}
\description{
A function that extracts edges from an index.
The edges are derived from the data included with
... |
#! /usr/bin/Rscript
# Convert OTU counts (transformed or otherwise) into BLUPs
library(argparse)
library(lme4)
library(parallel)
options(stringsAsFactors=F)
parser=ArgumentParser()
parser$add_argument("-i", "--infile", help="Input file of traits from a text OTU table")
parser$add_argument("-o", "--outfile", help="Out... | /1a_BroadSenseHeritability.r | no_license | wallacelab/paper-maize-rhizosphere-2017 | R | false | false | 6,824 | r | #! /usr/bin/Rscript
# Convert OTU counts (transformed or otherwise) into BLUPs
library(argparse)
library(lme4)
library(parallel)
options(stringsAsFactors=F)
parser=ArgumentParser()
parser$add_argument("-i", "--infile", help="Input file of traits from a text OTU table")
parser$add_argument("-o", "--outfile", help="Out... |
rm(list = ls())
library(RMNCP)
library(MASS)
library(ks)
library(kdensity)
#RMNCP::MNWBS_full
#Lenght of time horizon
T= 300
#Location of change points
v = c(floor(T/3),2*floor(T/3))
p=20
#Matrix for data
y = matrix(0,T,p)
#Means of the data
mu0 = rep(0,p)
mu1 = rep(0,p)
mu1[1:floor(p/2)] = 1
#Covariance ... | /Demo.R | no_license | hernanmp/RMNCP | R | false | false | 974 | r | rm(list = ls())
library(RMNCP)
library(MASS)
library(ks)
library(kdensity)
#RMNCP::MNWBS_full
#Lenght of time horizon
T= 300
#Location of change points
v = c(floor(T/3),2*floor(T/3))
p=20
#Matrix for data
y = matrix(0,T,p)
#Means of the data
mu0 = rep(0,p)
mu1 = rep(0,p)
mu1[1:floor(p/2)] = 1
#Covariance ... |
#---- Employee Opinion -----
library(tidyverse)
#set working directory to raw-data
employees_opinion_ext <- read.csv("employees_opinion_ext.csv", sep = ";") %>% as_tibble()
employees_opinion_ext$industry <- as.factor(employees_opinion_ext$industry)
employees_opinion_ext$company <- as.factor(employees_opinion_ext$comp... | /raw-data/employees_opinion_ext.R | no_license | vicencfernandez/HRdatasets | R | false | false | 493 | r | #---- Employee Opinion -----
library(tidyverse)
#set working directory to raw-data
employees_opinion_ext <- read.csv("employees_opinion_ext.csv", sep = ";") %>% as_tibble()
employees_opinion_ext$industry <- as.factor(employees_opinion_ext$industry)
employees_opinion_ext$company <- as.factor(employees_opinion_ext$comp... |
\name{Ig_SE}
\alias{Ig_SE}
\docType{data}
\title{IGHV gene family usage in vaccine-challenged B-cell repertoires
(SummarizedExperiment object)}
\description{
A small example database subset from study evaluating vaccine-induced changes in
B-cell populations publicly provided by R-package alakazam (version 0.2.11). It... | /man/Ig_SE.Rd | permissive | snaketron/IgGeneUsage | R | false | false | 1,190 | rd | \name{Ig_SE}
\alias{Ig_SE}
\docType{data}
\title{IGHV gene family usage in vaccine-challenged B-cell repertoires
(SummarizedExperiment object)}
\description{
A small example database subset from study evaluating vaccine-induced changes in
B-cell populations publicly provided by R-package alakazam (version 0.2.11). It... |
TTWOPT <-
function (X, Ranks, W = NULL, eta = 1e-07, thr = 1e-10, num.iter = 100)
{
checkDense <- "Tensor" %in% is(X)
if (!checkDense) {
stop("Please specify X as Tensor (cf. rTensor)")
}
if (is.null(W)) {
W <- X
W@data[] <- 1
}
else {
checkW <- identical(dim(X),... | /R/TTWOPT.R | permissive | rikenbit/ttTensor | R | false | false | 2,719 | r | TTWOPT <-
function (X, Ranks, W = NULL, eta = 1e-07, thr = 1e-10, num.iter = 100)
{
checkDense <- "Tensor" %in% is(X)
if (!checkDense) {
stop("Please specify X as Tensor (cf. rTensor)")
}
if (is.null(W)) {
W <- X
W@data[] <- 1
}
else {
checkW <- identical(dim(X),... |
#' Real-time Rt Estimation, Forecasting and Reporting
#'
#' @description `r lifecycle::badge("maturing")`
#' This function wraps the functionality of `estimate_infections()` and `forecast_infections()` in order
#' to estimate Rt and cases by date of infection, forecast into these infections into the future. It also con... | /fuzzedpackages/EpiNow2/R/epinow.R | permissive | akhikolla/testpackages | R | false | false | 11,023 | r | #' Real-time Rt Estimation, Forecasting and Reporting
#'
#' @description `r lifecycle::badge("maturing")`
#' This function wraps the functionality of `estimate_infections()` and `forecast_infections()` in order
#' to estimate Rt and cases by date of infection, forecast into these infections into the future. It also con... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers.R
\name{warnb}
\alias{warnb}
\title{warnb}
\usage{
warnb()
}
\value{
If true, returns warning message, "Data spans more than one year.
Calculations performed on all data and single value returned".
}
\description{
Prints a warning me... | /man/warnb.Rd | no_license | everydayduffy/climvars | R | false | true | 391 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers.R
\name{warnb}
\alias{warnb}
\title{warnb}
\usage{
warnb()
}
\value{
If true, returns warning message, "Data spans more than one year.
Calculations performed on all data and single value returned".
}
\description{
Prints a warning me... |
x <- 0:2
sum((x - 1)^2 * dbinom(x, 2, 0.5)) # same as above
n <- 5; p <- 0.2; x <- 0:n
sum((x - n*p)^2 * dbinom(x, n, p)) # X ~ Binom(5, 0.2)
n <- 5; p <- 0.8; x <- 0:n
sum((x - n*p)^2 * dbinom(x, n, p)) # X ~ Binom(5, 0.8)
n <- 10; p <- 0.8; x <- 0:n
sum((x - n*p)^2 * dbinom(x, n, p)) # X ~ Binom(10, 0.8... | /inst/snippet/var01.R | no_license | rpruim/fastR2 | R | false | false | 411 | r | x <- 0:2
sum((x - 1)^2 * dbinom(x, 2, 0.5)) # same as above
n <- 5; p <- 0.2; x <- 0:n
sum((x - n*p)^2 * dbinom(x, n, p)) # X ~ Binom(5, 0.2)
n <- 5; p <- 0.8; x <- 0:n
sum((x - n*p)^2 * dbinom(x, n, p)) # X ~ Binom(5, 0.8)
n <- 10; p <- 0.8; x <- 0:n
sum((x - n*p)^2 * dbinom(x, n, p)) # X ~ Binom(10, 0.8... |
## ---- include = FALSE----------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup---------------------------------------------------------------
rm(list=ls())
# devtools::install_github("CSOgroup/DADo", subdir="DADo")
#
# if(!require(DADo))
# devt... | /DADo/vignettes/plotting.R | permissive | CSOgroup/DADo | R | false | false | 5,183 | r | ## ---- include = FALSE----------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup---------------------------------------------------------------
rm(list=ls())
# devtools::install_github("CSOgroup/DADo", subdir="DADo")
#
# if(!require(DADo))
# devt... |
########################################################################################################
## Info : Summary function for exploratory analysis
## Created on : 13.06.2013
## Created by : PVN
## Call : source("V:\\435_Modelle\\7_Operation\\ChangeRequests\\Documentation... | /Goodies/R/IAZISummary.r | no_license | Kuvelkar/TEST | R | false | false | 2,193 | r | ########################################################################################################
## Info : Summary function for exploratory analysis
## Created on : 13.06.2013
## Created by : PVN
## Call : source("V:\\435_Modelle\\7_Operation\\ChangeRequests\\Documentation... |
#!/usr/bin/Rscript
# Bhishan Poudel
# Jan 18, 2016
library(plotly)
set.seed(100)
d <- diamonds[sample(nrow(diamonds), 1000), ]
plot1 <- plot_ly(d, x = carat, y = price, text = paste("Clarity: ", clarity),
mode = "markers", color = carat, size = carat)
print(plot1)
| /R/rprograms/plotting/plotlyExamples/polarScatter1.r | permissive | bhishanpdl/Programming | R | false | false | 278 | r | #!/usr/bin/Rscript
# Bhishan Poudel
# Jan 18, 2016
library(plotly)
set.seed(100)
d <- diamonds[sample(nrow(diamonds), 1000), ]
plot1 <- plot_ly(d, x = carat, y = price, text = paste("Clarity: ", clarity),
mode = "markers", color = carat, size = carat)
print(plot1)
|
# Title: Spatial R
# Section: 31 Raster / Vector Integration: Extracting Raster Values using vector data
# Author: Colin Chisholm
# Date: Oct. 28, 2018
# Purposes: Extract Raster data
##### Libraries essential for spatial data ####
# #List of libraries (thx to Tristan Goodbody for providing me a number of these)
... | /31_Raster_Data_Extraction.R | no_license | ColinChisholm/SpatialR | R | false | false | 3,834 | r | # Title: Spatial R
# Section: 31 Raster / Vector Integration: Extracting Raster Values using vector data
# Author: Colin Chisholm
# Date: Oct. 28, 2018
# Purposes: Extract Raster data
##### Libraries essential for spatial data ####
# #List of libraries (thx to Tristan Goodbody for providing me a number of these)
... |
# Data prep for shiny app of modelled individual party vote in the
# New Zealand general election.
# Output is at https://ellisp.shinyapps.io/individual-vote-nzes/
# Overall strategy is to create a cut down version of the NZ Election Study data,
# fit a statistical model to it, and save it in a folder where a shiny a... | /_working/0097-predicting-vote.R | no_license | ellisp/blog-source | R | false | false | 16,387 | r | # Data prep for shiny app of modelled individual party vote in the
# New Zealand general election.
# Output is at https://ellisp.shinyapps.io/individual-vote-nzes/
# Overall strategy is to create a cut down version of the NZ Election Study data,
# fit a statistical model to it, and save it in a folder where a shiny a... |
# Automatic reports for MSE objects
#' Make standardized MSE MP performance report
#'
#' @param MSE An object of class MSE return from a function call MSE<-new('MSE',...)
#' @param dir A character string that is the directory where the report will be saved (default is current working directory)
#' @param Author A ch... | /R_package/ABTMSE/R/MSE_auto_report.R | no_license | pl202/abft-mse | R | false | false | 977 | r |
# Automatic reports for MSE objects
#' Make standardized MSE MP performance report
#'
#' @param MSE An object of class MSE return from a function call MSE<-new('MSE',...)
#' @param dir A character string that is the directory where the report will be saved (default is current working directory)
#' @param Author A ch... |
library(data.table)
diagF <- function(egresos, codDiag, comuna){
diag <- egresos$DIAG1
diag <- data.table(diag)
diagFrec <- diag[,.N,by=diag]
diagFrec <- diagFrec[order(diagFrec$N,decreasing=TRUE), ]
names(diagFrec)[names(diagFrec)=="diag"] <- "id10"
diagFrec <- merge(diagFrec, codDiag, by="id10")
... | /scripts/diagF.R | no_license | RaiBP/CC5206-Project | R | false | false | 546 | r | library(data.table)
diagF <- function(egresos, codDiag, comuna){
diag <- egresos$DIAG1
diag <- data.table(diag)
diagFrec <- diag[,.N,by=diag]
diagFrec <- diagFrec[order(diagFrec$N,decreasing=TRUE), ]
names(diagFrec)[names(diagFrec)=="diag"] <- "id10"
diagFrec <- merge(diagFrec, codDiag, by="id10")
... |
ref <- read.csv("C:/Users/User/Downloads/Data Science/Career/data/item_ref1.csv")
code<-item_ref1$TitleCode
long<-item_ref1$TitleLong
min<-item_ref1$SalaryMin
max<-item_ref1$SalaryMax
getwd()
setwd("C:/Users/User/Downloads/Data Science/Career/data")
save(code, long, min, max, file = "itemref1.rda")
rm(code,... | /career.R | no_license | NurAinSafirah/itjobfinder | R | false | false | 2,115 | r | ref <- read.csv("C:/Users/User/Downloads/Data Science/Career/data/item_ref1.csv")
code<-item_ref1$TitleCode
long<-item_ref1$TitleLong
min<-item_ref1$SalaryMin
max<-item_ref1$SalaryMax
getwd()
setwd("C:/Users/User/Downloads/Data Science/Career/data")
save(code, long, min, max, file = "itemref1.rda")
rm(code,... |
library(gnm)
### Name: profile.gnm
### Title: Profile Deviance for Parameters in a Generalized Nonlinear Model
### Aliases: profile.gnm plot.profile.gnm
### Keywords: models nonlinear
### ** Examples
set.seed(1)
### Example in which deviance is near quadratic
count <- with(voting, percentage/100 * total)
yvar <- c... | /data/genthat_extracted_code/gnm/examples/profile.gnm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 3,654 | r | library(gnm)
### Name: profile.gnm
### Title: Profile Deviance for Parameters in a Generalized Nonlinear Model
### Aliases: profile.gnm plot.profile.gnm
### Keywords: models nonlinear
### ** Examples
set.seed(1)
### Example in which deviance is near quadratic
count <- with(voting, percentage/100 * total)
yvar <- c... |
##find nearby route of fueling stations
library(RCurl)
library(RJSONIO)
library(leaflet)
library(googleway)
fuelstationicon<-icons("http://www.clker.com/cliparts/d/8/3/4/131550836610655076Gas%20Station%20Sign.svg.med.png",iconWidth = 18,iconHeight = 18)
key <- "AIzaSyCikL8oIlbvv77sFqclmjt4crRL_08zffk"
#function to ge... | /lib/longroute.R | no_license | yx2365/Spr2017-proj2-grp7 | R | false | false | 2,305 | r | ##find nearby route of fueling stations
library(RCurl)
library(RJSONIO)
library(leaflet)
library(googleway)
fuelstationicon<-icons("http://www.clker.com/cliparts/d/8/3/4/131550836610655076Gas%20Station%20Sign.svg.med.png",iconWidth = 18,iconHeight = 18)
key <- "AIzaSyCikL8oIlbvv77sFqclmjt4crRL_08zffk"
#function to ge... |
library(dplyr)
csv_url <- "https://s3-ap-northeast-1.amazonaws.com/r-essentials/chicago_bulls_1995_1996.csv"
chicago_bulls <- read.csv(csv_url)
trio <- chicago_bulls %>%
filter(Player == "Michael Jordan" | Player == "Scottie Pippen" | Player == "Dennis Rodman")
trio | /r-essentials-gists/ch1110.R | no_license | jtlai0921/AEL023000_- | R | false | false | 270 | r | library(dplyr)
csv_url <- "https://s3-ap-northeast-1.amazonaws.com/r-essentials/chicago_bulls_1995_1996.csv"
chicago_bulls <- read.csv(csv_url)
trio <- chicago_bulls %>%
filter(Player == "Michael Jordan" | Player == "Scottie Pippen" | Player == "Dennis Rodman")
trio |
# use lstat:black for interaction terms (all between)
# lstat*age interaction term as predictor
summary(lm(medv~lstat*age, data=Boston))
# Call:
# lm(formula = medv ~ lstat * age, data = Boston)
#
# Residuals:
# Min 1Q Median 3Q Max
# -15.806 -4.045 -1.333 2.085 27.552
#
# Coefficients:
# ... | /linear_regression/interation_terms.R | no_license | kayfay/R_programming | R | false | false | 861 | r | # use lstat:black for interaction terms (all between)
# lstat*age interaction term as predictor
summary(lm(medv~lstat*age, data=Boston))
# Call:
# lm(formula = medv ~ lstat * age, data = Boston)
#
# Residuals:
# Min 1Q Median 3Q Max
# -15.806 -4.045 -1.333 2.085 27.552
#
# Coefficients:
# ... |
#' @title create_spatialVector
#'
#' @description create_spatialVector generates a EML entity of type
#' spatialVector
#'
#' @details create_spatialVector creates a EML spatialVector object from a
#' spatial data object (shapefile, kml) that is read into the R environment.
#' The function reads the attributes and c... | /R/create_spatialVector.R | no_license | kzollove/capemlGIS | R | false | false | 10,592 | r | #' @title create_spatialVector
#'
#' @description create_spatialVector generates a EML entity of type
#' spatialVector
#'
#' @details create_spatialVector creates a EML spatialVector object from a
#' spatial data object (shapefile, kml) that is read into the R environment.
#' The function reads the attributes and c... |
FUNGI<- c("1M05", "1T38", "2T69")
FUNGI_C<- c(FUNGI, "C")
dataFull0<- read.csv("giaroots_results.csv", header=T)
dataFull<- dataFull0[,-19]
data<- dataFull[,c("Network.Surface.Area","Network.Volume")]
id<- sub("/Volumes/Elements/pictures/(.+_)bottom/(.+)/Img.+JPG", "\\1\\2", dataFull[,"source_id"], ignore.case=T)
id... | /giaroots.R | no_license | cocomushroom/Chlorophyll | R | false | false | 2,245 | r | FUNGI<- c("1M05", "1T38", "2T69")
FUNGI_C<- c(FUNGI, "C")
dataFull0<- read.csv("giaroots_results.csv", header=T)
dataFull<- dataFull0[,-19]
data<- dataFull[,c("Network.Surface.Area","Network.Volume")]
id<- sub("/Volumes/Elements/pictures/(.+_)bottom/(.+)/Img.+JPG", "\\1\\2", dataFull[,"source_id"], ignore.case=T)
id... |
# ---------------------------------
# Sourcing file to contain all our functions
# 21 Apr 2021
# LW
# -----------------------------------
#
# FUNCTION get_data
# description: read in .csv file
# inputs: .csv file
# outputs: data frame
###################################
get_data <- function(file_name=NULL) {
if(is... | /My_Functions.R | permissive | laney-williams/LaneyWbio381 | R | false | false | 2,254 | r | # ---------------------------------
# Sourcing file to contain all our functions
# 21 Apr 2021
# LW
# -----------------------------------
#
# FUNCTION get_data
# description: read in .csv file
# inputs: .csv file
# outputs: data frame
###################################
get_data <- function(file_name=NULL) {
if(is... |
## This table stores the ID, name, and class of each entity, which refers to an
## argument used in a relationship. In the given data, there exists entities
## with an ID and name that are missing class information. These are removed.
library(gtBase)
Create(Entities,
ID = Int,
Name = Int,
Clas... | /schemas/entities.create.R | no_license | tera-insights/gtLearning | R | false | false | 329 | r | ## This table stores the ID, name, and class of each entity, which refers to an
## argument used in a relationship. In the given data, there exists entities
## with an ID and name that are missing class information. These are removed.
library(gtBase)
Create(Entities,
ID = Int,
Name = Int,
Clas... |
#' Excel 97 ugly color palettes (discrete)
#'
#' The color palettes used in Microsoft Excel 97 (and up until Excel 2007).
#' Use this for that classic ugly look and feel. For ironic purposes only.
#' 3D bars and pies not included. Please never use this color palette.
#'
#' @param line If \code{TRUE}, use the palette fo... | /R/excel.R | no_license | cran/ggthemes | R | false | false | 6,007 | r | #' Excel 97 ugly color palettes (discrete)
#'
#' The color palettes used in Microsoft Excel 97 (and up until Excel 2007).
#' Use this for that classic ugly look and feel. For ironic purposes only.
#' 3D bars and pies not included. Please never use this color palette.
#'
#' @param line If \code{TRUE}, use the palette fo... |
computeHierarchicalClusteringFor <- function(selectedFeatureSubsets) {
getSelectedFeaturesForMethod <- function(methodName) {
lapply(selectedFeatureSubsets,
function(subsets) subsets[[methodName]])
}
featureSelectionMethodNames <- names(result$selectedFeaturesSubsets[[1]])
nMethods <- l... | /resultGenerators/featureSelectionResultsClustering.R | permissive | lacerdas/featureSelectionFramework | R | false | false | 1,849 | r |
computeHierarchicalClusteringFor <- function(selectedFeatureSubsets) {
getSelectedFeaturesForMethod <- function(methodName) {
lapply(selectedFeatureSubsets,
function(subsets) subsets[[methodName]])
}
featureSelectionMethodNames <- names(result$selectedFeaturesSubsets[[1]])
nMethods <- l... |
n <- 10000
X <- runif(n, -1, 1)
Y <- runif(n, -1, 1)
R2 <- X^{2} + Y^{2}
Rel <- (R2 < 1)
Rel2 <- sqrt(-2*log(R2[Rel])/R2[Rel])
X1 <- X[Rel]*Rel2
Y1 <- Y[Rel]*Rel2
plot(X1,Y1)
var(X1)
var(Y1)
hist(X1, prob=TRUE)
curve(dnorm, add=TRUE)
hist(Y1, prob=TRUE)
curve(dnorm, add=TRUE) | /seria1/1.4.1.R | no_license | matematyk/symulacje-stoch | R | false | false | 278 | r | n <- 10000
X <- runif(n, -1, 1)
Y <- runif(n, -1, 1)
R2 <- X^{2} + Y^{2}
Rel <- (R2 < 1)
Rel2 <- sqrt(-2*log(R2[Rel])/R2[Rel])
X1 <- X[Rel]*Rel2
Y1 <- Y[Rel]*Rel2
plot(X1,Y1)
var(X1)
var(Y1)
hist(X1, prob=TRUE)
curve(dnorm, add=TRUE)
hist(Y1, prob=TRUE)
curve(dnorm, add=TRUE) |
# # Getting and Cleaning Data Course Project
# 1 - Merges the training and the test sets to create one data set
x_train <- read.table("train/x_train.txt")
y_train <- read.table("train/y_train.txt")
subject_train <- read.table("train/subject_train.txt")
# files from "test" folder
# "test" variables
x_test <- read.tab... | /run_analysis.R | no_license | cristianocardoso/Getting-and-Cleaning-Data-Project | R | false | false | 1,631 | r | # # Getting and Cleaning Data Course Project
# 1 - Merges the training and the test sets to create one data set
x_train <- read.table("train/x_train.txt")
y_train <- read.table("train/y_train.txt")
subject_train <- read.table("train/subject_train.txt")
# files from "test" folder
# "test" variables
x_test <- read.tab... |
# separa en train+validation y test
# librerias y funciones ---------------------------------------------------
source("src/funciones.R")
source("src/load_librerias.R")
# base de words -----------------------------------------------------------
base_w <- readRDS(file="data/working/base_words.rds") %>%
dplyr::mutat... | /src/traintest_03.R | no_license | ftvalentini/dm-TwitterGender | R | false | false | 777 | r | # separa en train+validation y test
# librerias y funciones ---------------------------------------------------
source("src/funciones.R")
source("src/load_librerias.R")
# base de words -----------------------------------------------------------
base_w <- readRDS(file="data/working/base_words.rds") %>%
dplyr::mutat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/notion_search.R
\name{notion_search}
\alias{notion_search}
\title{Notion's Search API}
\usage{
notion_search(
query = NULL,
sort = NULL,
filter = NULL,
start_cursor = NULL,
page_size = NULL,
api_rate_limited = 1/3,
...
)
}
\argu... | /man/notion_search.Rd | no_license | Songyosr/Rnotion | R | false | true | 1,427 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/notion_search.R
\name{notion_search}
\alias{notion_search}
\title{Notion's Search API}
\usage{
notion_search(
query = NULL,
sort = NULL,
filter = NULL,
start_cursor = NULL,
page_size = NULL,
api_rate_limited = 1/3,
...
)
}
\argu... |
library(shiny)
library(ggplot2)
library(markdown)
shinyServer(function(input, output) {
# Creating description frame for mtcars variables
# which will be used to add proper labels in graphs
getDescription = reactive({
read.table(text = 'code,description
mpg,Miles/(US) gallon
cyl,Number of cylinders
disp,D... | /server.R | no_license | vrajs5/mtcars | R | false | false | 5,315 | r | library(shiny)
library(ggplot2)
library(markdown)
shinyServer(function(input, output) {
# Creating description frame for mtcars variables
# which will be used to add proper labels in graphs
getDescription = reactive({
read.table(text = 'code,description
mpg,Miles/(US) gallon
cyl,Number of cylinders
disp,D... |
testlist <- list(A = structure(c(0, 0, 0, 0, 0), .Dim = c(1L, 5L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613112649-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 171 | r | testlist <- list(A = structure(c(0, 0, 0, 0, 0), .Dim = c(1L, 5L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
\name{printIfNotNull}
\alias{printIfNotNull}
\title{
Provide basic summary of each object if that object is not NULL.
}
\description{
Provide basic summary of each object if that object is not NULL. This function is mainly used in the \code{summary} function from the \code{linkS4class{SimSet}} object.
}
\usage{
prin... | /simsem.Rcheck/00_pkg_src/simsem/man/printIfNotNull.Rd | no_license | sdrotar/simsem | R | false | false | 819 | rd | \name{printIfNotNull}
\alias{printIfNotNull}
\title{
Provide basic summary of each object if that object is not NULL.
}
\description{
Provide basic summary of each object if that object is not NULL. This function is mainly used in the \code{summary} function from the \code{linkS4class{SimSet}} object.
}
\usage{
prin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClassesCE.R
\docType{class}
\name{ClusterExperiment-class}
\alias{ClusterExperiment-class}
\alias{ClusterExperiment}
\alias{ClusterExperiment,matrixOrHDF5,ANY-method}
\alias{ClusterExperiment,SummarizedExperiment,ANY-method}
\alias{Cluster... | /man/ClusterExperiment-class.Rd | no_license | epurdom/clusterExperiment | R | false | true | 10,022 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClassesCE.R
\docType{class}
\name{ClusterExperiment-class}
\alias{ClusterExperiment-class}
\alias{ClusterExperiment}
\alias{ClusterExperiment,matrixOrHDF5,ANY-method}
\alias{ClusterExperiment,SummarizedExperiment,ANY-method}
\alias{Cluster... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/downscaleTrain.R
\name{downscaleTrain}
\alias{downscaleTrain}
\title{Calibration of downscaling methods}
\usage{
downscaleTrain(
obj,
method,
condition = NULL,
threshold = NULL,
model.verbose = TRUE,
predict = TRUE,
...
)
}
\arg... | /man/downscaleTrain.Rd | no_license | jgserra18/downscaleR | R | false | true | 9,051 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/downscaleTrain.R
\name{downscaleTrain}
\alias{downscaleTrain}
\title{Calibration of downscaling methods}
\usage{
downscaleTrain(
obj,
method,
condition = NULL,
threshold = NULL,
model.verbose = TRUE,
predict = TRUE,
...
)
}
\arg... |
#########################################################################
# File Name: ScoringMatrix.R
# Author: Ge Tan
# mail: gtan@me.com
# Created Time: Tue Jul 29 20:48:49 2014
#########################################################################
### ------------------------------------------------------------... | /R/ScoringMatrix.R | no_license | ge11232002/TKF | R | false | false | 4,469 | r | #########################################################################
# File Name: ScoringMatrix.R
# Author: Ge Tan
# mail: gtan@me.com
# Created Time: Tue Jul 29 20:48:49 2014
#########################################################################
### ------------------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GetCaptures.R
\name{GetCaptures}
\alias{GetCaptures}
\title{GetCaptures}
\usage{
GetCaptures(s, pat)
}
\arguments{
\item{s}{chr string}
\item{pat}{chr string containing a regular expression with at least 1 capture '(', ')'}
}
\value{
Num mat... | /man/GetCaptures.Rd | no_license | nishuai/shinyTools | R | false | true | 1,350 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GetCaptures.R
\name{GetCaptures}
\alias{GetCaptures}
\title{GetCaptures}
\usage{
GetCaptures(s, pat)
}
\arguments{
\item{s}{chr string}
\item{pat}{chr string containing a regular expression with at least 1 capture '(', ')'}
}
\value{
Num mat... |
#' Append plant species trait data to plant summary data
#'
#' Append plant species trait data to plant summary data
#' @param data Dataframe derived from summary.
#' @param trait_path Character. Path to plant species trait data
#' @importFrom dplyr
#' @export
append_plant_traits <- function(data, trait_path) {
tr... | /R/append_plant_traits.R | no_license | jscamac/Alpine_Elicitation_Project | R | false | false | 940 | r | #' Append plant species trait data to plant summary data
#'
#' Append plant species trait data to plant summary data
#' @param data Dataframe derived from summary.
#' @param trait_path Character. Path to plant species trait data
#' @importFrom dplyr
#' @export
append_plant_traits <- function(data, trait_path) {
tr... |
setwd("c:/Rdata")
getwd()
install.packages("animation")
library(animation)
ani.options(interval=1)
#i=0
while(1){
y=rnorm(80,mean=175,sd=2)
#shapiro.test(y)
hist(y,probability = T)
lines(density(y),col=2,type='h')
ani.pause()
}
exam <- read.csv("csv_exam.csv")
head(exam,1)
tail(exam,3)
str(exam)
length(exam)
dim(e... | /20200925a.R | no_license | oh3/wsu_R-Programing | R | false | false | 405 | r | setwd("c:/Rdata")
getwd()
install.packages("animation")
library(animation)
ani.options(interval=1)
#i=0
while(1){
y=rnorm(80,mean=175,sd=2)
#shapiro.test(y)
hist(y,probability = T)
lines(density(y),col=2,type='h')
ani.pause()
}
exam <- read.csv("csv_exam.csv")
head(exam,1)
tail(exam,3)
str(exam)
length(exam)
dim(e... |
##Checking integer values
for(i in 1:ncol(ltv))
{
if((i==1)|(i==2)|(i==5)|(i==6)|(i==7)|(i==8)|(i==9))
{
for(j in 1:nrow(ltv))
{
#print("h")
if(!(is.integer(ltv[j,i])))
{
print(ncol(ltv)[i])
}
}
if(!((ltv[j,7]==0|1)&(ltv[j,8]==0|1)&(ltv[j... | /Code/DataCleaningAndFeatureReduction.R | no_license | GSav90/LTV-Analysis-for-an-Ecommerce | R | false | false | 3,023 | r | ##Checking integer values
for(i in 1:ncol(ltv))
{
if((i==1)|(i==2)|(i==5)|(i==6)|(i==7)|(i==8)|(i==9))
{
for(j in 1:nrow(ltv))
{
#print("h")
if(!(is.integer(ltv[j,i])))
{
print(ncol(ltv)[i])
}
}
if(!((ltv[j,7]==0|1)&(ltv[j,8]==0|1)&(ltv[j... |
library(dplyr)
library(tidyverse)
library(ggplot2)
library(lubridate)
jhu <- X04_18_2020
jhu <- jhu %>%
select(-FIPS,-Admin2,-Combined_Key) %>%
rename(country = Country_Region)
jhu$country <- gsub("US", "United States of America", jhu$country)
jhu2 <- left_join(jhu, UN_regions) %>%
select(-UNm... | /JHU_covid_visuals/covid_jhu.R | no_license | rpandolph/Rstat_scripts | R | false | false | 7,234 | r | library(dplyr)
library(tidyverse)
library(ggplot2)
library(lubridate)
jhu <- X04_18_2020
jhu <- jhu %>%
select(-FIPS,-Admin2,-Combined_Key) %>%
rename(country = Country_Region)
jhu$country <- gsub("US", "United States of America", jhu$country)
jhu2 <- left_join(jhu, UN_regions) %>%
select(-UNm... |
## We start with assigning the file as object for convenience.
dataFile <- "C:/Users/Iso/Documents/household_power_consumption.txt"
## Now we read the file and set the perameters.
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subData <- data[data$Date %in% c("1/2/2007","2/2/2007"... | /plot4.R | no_license | MJodzi/Exploratory-Data-Analysis-Project-1 | R | false | false | 1,420 | r |
## We start with assigning the file as object for convenience.
dataFile <- "C:/Users/Iso/Documents/household_power_consumption.txt"
## Now we read the file and set the perameters.
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subData <- data[data$Date %in% c("1/2/2007","2/2/2007"... |
FUNA_caractereParaNumero <-
function(x) {
gsub("[.]", "", x) %>% gsub(pattern = " ", replacement = "") %>% gsub(pattern = " ", replacement = "") %>% gsub(pattern = " ", replacement = "") %>% gs... | /Funcoes_de_Formatacao_Estilo.R | no_license | hal-delaserna/Funcoes_de_Formatacao_Estilo | R | false | false | 4,890 | r |
FUNA_caractereParaNumero <-
function(x) {
gsub("[.]", "", x) %>% gsub(pattern = " ", replacement = "") %>% gsub(pattern = " ", replacement = "") %>% gsub(pattern = " ", replacement = "") %>% gs... |
#' plot_VK_flat
#'
#' This function makes a traditional van Krevelen diagram (H/c vs. O/C). This
#' plot shows the distribution of the assigned formulas as a function of
#' elemental ratios, but contains no information about the intensities of the
#' detected ions. The darker areas are where the highest number of formu... | /R/plot_VK_flat.R | no_license | robertyoung3/MSanalyzeNOM | R | false | false | 2,615 | r | #' plot_VK_flat
#'
#' This function makes a traditional van Krevelen diagram (H/c vs. O/C). This
#' plot shows the distribution of the assigned formulas as a function of
#' elemental ratios, but contains no information about the intensities of the
#' detected ions. The darker areas are where the highest number of formu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MultitypeSpatialOnlyPlusParameters.R
\name{lgcpSimMultitypeSpatialCovariates}
\alias{lgcpSimMultitypeSpatialCovariates}
\title{lgcpSimMultitypeSpatialCovariates function}
\usage{
lgcpSimMultitypeSpatialCovariates(
formulaList,
owin,
reg... | /man/lgcpSimMultitypeSpatialCovariates.Rd | no_license | cran/lgcp | R | false | true | 1,720 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MultitypeSpatialOnlyPlusParameters.R
\name{lgcpSimMultitypeSpatialCovariates}
\alias{lgcpSimMultitypeSpatialCovariates}
\title{lgcpSimMultitypeSpatialCovariates function}
\usage{
lgcpSimMultitypeSpatialCovariates(
formulaList,
owin,
reg... |
# Using data simulation to to look at effect size and sample size impacts on being able to
# detect an impact of covariate
# i.e., if the effect of the covariate is X in truth, how large of sample size do we need to be
# able to detect it? How does variance change this?
# Adapated from Kery and Schaub 2010.
#... | /Normal_Linear_Regression_intro.R | no_license | williash23/Intro-WinBUGS-Notes | R | false | false | 11,584 | r | # Using data simulation to to look at effect size and sample size impacts on being able to
# detect an impact of covariate
# i.e., if the effect of the covariate is X in truth, how large of sample size do we need to be
# able to detect it? How does variance change this?
# Adapated from Kery and Schaub 2010.
#... |
library(wordVectors)
out <- prep_word2vec(origin = "../Negro_Digest/ND_1961/", destination = "../Negro_Digest/ND_1961/pooled.txt", lowercase = T)
out <- prep_word2vec(origin = "../Negro_Digest/ND_1962/", destination = "../Negro_Digest/ND_1962/pooled.txt", lowercase = T)
out <- prep_word2vec(origin = "../Negro_Digest/N... | /codes/prep_w2vec.R | no_license | kkdey/Black_magazines | R | false | false | 5,143 | r |
library(wordVectors)
out <- prep_word2vec(origin = "../Negro_Digest/ND_1961/", destination = "../Negro_Digest/ND_1961/pooled.txt", lowercase = T)
out <- prep_word2vec(origin = "../Negro_Digest/ND_1962/", destination = "../Negro_Digest/ND_1962/pooled.txt", lowercase = T)
out <- prep_word2vec(origin = "../Negro_Digest/N... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glue_operations.R
\name{glue_stop_trigger}
\alias{glue_stop_trigger}
\title{Stops a specified trigger}
\usage{
glue_stop_trigger(Name)
}
\arguments{
\item{Name}{[required] The name of the trigger to stop.}
}
\description{
Stops a specified tr... | /cran/paws.analytics/man/glue_stop_trigger.Rd | permissive | johnnytommy/paws | R | false | true | 431 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glue_operations.R
\name{glue_stop_trigger}
\alias{glue_stop_trigger}
\title{Stops a specified trigger}
\usage{
glue_stop_trigger(Name)
}
\arguments{
\item{Name}{[required] The name of the trigger to stop.}
}
\description{
Stops a specified tr... |
#!/usr/bin/env Rscript
# Leemos todas las tablitas
datos1 <- read.csv('/home/jere/Dropbox/FACU 2017/ML/Pca 1/Ejercicio 8/xor.data.1',sep=',')
datos0 <- read.csv('/home/jere/Dropbox/FACU 2017/ML/Pca 1/Ejercicio 8/xor.data.0',sep=',')
minX <- min(datos1$X, datos0$X)
maxX <- max(datos1$X, datos0$X)
minY <- min(datos1$Y... | /Assignment_1/Ejercicio 8/plot.R | no_license | jere1882/Machine-Learning | R | false | false | 570 | r | #!/usr/bin/env Rscript
# Leemos todas las tablitas
datos1 <- read.csv('/home/jere/Dropbox/FACU 2017/ML/Pca 1/Ejercicio 8/xor.data.1',sep=',')
datos0 <- read.csv('/home/jere/Dropbox/FACU 2017/ML/Pca 1/Ejercicio 8/xor.data.0',sep=',')
minX <- min(datos1$X, datos0$X)
maxX <- max(datos1$X, datos0$X)
minY <- min(datos1$Y... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/catboost.R
\name{catboost.shrink}
\alias{catboost.shrink}
\title{Shrink the model}
\usage{
catboost.shrink(model, ntree_end, ntree_start = 0)
}
\arguments{
\item{model}{The model obtained as the result of training.}
\item{ntree_end}{Leave th... | /catboost/R-package/man/catboost.shrink.Rd | permissive | catboost/catboost | R | false | true | 739 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/catboost.R
\name{catboost.shrink}
\alias{catboost.shrink}
\title{Shrink the model}
\usage{
catboost.shrink(model, ntree_end, ntree_start = 0)
}
\arguments{
\item{model}{The model obtained as the result of training.}
\item{ntree_end}{Leave th... |
library(FRAPO)
### Name: DivMeasures
### Title: Diversification Measures
### Aliases: dr cr rhow
### Keywords: algebra
### ** Examples
data(MultiAsset)
Rets <- returnseries(MultiAsset, method = "discrete", trim = TRUE)
w <- Weights(PMD(Rets))
V <- cov(Rets)
DR <- dr(w, V)
CR <- cr(w, V)
RhoW <- rhow(w, V)
test <- 1... | /data/genthat_extracted_code/FRAPO/examples/DivRatios.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 374 | r | library(FRAPO)
### Name: DivMeasures
### Title: Diversification Measures
### Aliases: dr cr rhow
### Keywords: algebra
### ** Examples
data(MultiAsset)
Rets <- returnseries(MultiAsset, method = "discrete", trim = TRUE)
w <- Weights(PMD(Rets))
V <- cov(Rets)
DR <- dr(w, V)
CR <- cr(w, V)
RhoW <- rhow(w, V)
test <- 1... |
##02 - Reactives
##Here we'll learn how to connect server and ui together with the input and output objects
#
## loading code here
## anything you load here can be seen by both ui and server
library(shiny)
library(tidyverse)
library(fivethirtyeight)
##load the biopics data
data(biopics)
biopics <- biopics %>% filter(... | /02_reactives/app.R | permissive | cdmuhs/gradual_shiny | R | false | false | 2,044 | r | ##02 - Reactives
##Here we'll learn how to connect server and ui together with the input and output objects
#
## loading code here
## anything you load here can be seen by both ui and server
library(shiny)
library(tidyverse)
library(fivethirtyeight)
##load the biopics data
data(biopics)
biopics <- biopics %>% filter(... |
testlist <- list(data = structure(0, .Dim = c(1L, 1L)), x = structure(1.53063816728471e-18, .Dim = c(1L, 1L)))
result <- do.call(distr6:::C_EmpiricalMVCdf,testlist)
str(result) | /distr6/inst/testfiles/C_EmpiricalMVCdf/libFuzzer_C_EmpiricalMVCdf/C_EmpiricalMVCdf_valgrind_files/1610037023-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 177 | r | testlist <- list(data = structure(0, .Dim = c(1L, 1L)), x = structure(1.53063816728471e-18, .Dim = c(1L, 1L)))
result <- do.call(distr6:::C_EmpiricalMVCdf,testlist)
str(result) |
#' @title Convert ggplot object to a string call
#' @description Convert ggplot object to a string call
#' @param obj compiled ggplot object
#' @param file either a character string naming a file or a \link{connection}. " " indicates output to the console, Default: " "
#' @return character
#' @examples
#' pList$point... | /R/dput.ggedit.R | no_license | DataXujing/ggedit | R | false | false | 2,766 | r | #' @title Convert ggplot object to a string call
#' @description Convert ggplot object to a string call
#' @param obj compiled ggplot object
#' @param file either a character string naming a file or a \link{connection}. " " indicates output to the console, Default: " "
#' @return character
#' @examples
#' pList$point... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Movement_DSBW.R
\docType{class}
\name{DSBW-class}
\alias{DSBW-class}
\alias{DSBW}
\title{A Reference Class for fitting a Discrete time Step-length/Bearings model with Weibull distributed steps.}
\description{
The reference class implements a ... | /man/DSBW-class.Rd | no_license | fjaine/argosTrack | R | false | true | 2,400 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Movement_DSBW.R
\docType{class}
\name{DSBW-class}
\alias{DSBW-class}
\alias{DSBW}
\title{A Reference Class for fitting a Discrete time Step-length/Bearings model with Weibull distributed steps.}
\description{
The reference class implements a ... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{ip2long}
\alias{ip2long}
\title{Character (dotted-decimal) IPv4 Address Conversion to long integer}
\usage{
ip2long(ip)
}
\arguments{
\item{ip}{input character vector of IPv4 addresses (dotted-decimal)}
}
\value{
vector of equivalent long integer IP addresses
}... | /man/ip2long.Rd | no_license | math4youbyusgroupillinois/ipv4heatmap | R | false | false | 488 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{ip2long}
\alias{ip2long}
\title{Character (dotted-decimal) IPv4 Address Conversion to long integer}
\usage{
ip2long(ip)
}
\arguments{
\item{ip}{input character vector of IPv4 addresses (dotted-decimal)}
}
\value{
vector of equivalent long integer IP addresses
}... |
base <- merge(df_y,df_x, by = 'row.names')
base$return_lead1 <- lead(base$return1,1)
base$return_lead5 <- lead(base$return5,5)
base$move_lead1 <- lead(base$move,1)
base$move_lead5 <- lead(base$move5,5)
base$brl <- NULL
base$return1 <- NULL
base$return5 <- NULL
base$move <- NULL
base$move5 <- NULL
base$Row.names <- NUL... | /Analise Exploratoria.R | no_license | ASchwartzman/modeloBrl | R | false | false | 473 | r |
base <- merge(df_y,df_x, by = 'row.names')
base$return_lead1 <- lead(base$return1,1)
base$return_lead5 <- lead(base$return5,5)
base$move_lead1 <- lead(base$move,1)
base$move_lead5 <- lead(base$move5,5)
base$brl <- NULL
base$return1 <- NULL
base$return5 <- NULL
base$move <- NULL
base$move5 <- NULL
base$Row.names <- NUL... |
# ZADANIA LABOLATORYJNE
# Zad 1
l11 <- list("Jan", "Kowalski", 1997, FALSE, 172.5, "987 654 321")
str(l11) #struktura listy
l11[c(1)] #pierwszy element listy == l11[1]
l12 <- l11[c(1,2,6)]
str(l12)
l13 <- l11[-c(3,6)]
str(l13)
# Zad 2
wiek <- l11[[3]]
wiek <- 2020 - wiek
paste(l11[1], l11[2], "- lat", wiek)
# Za... | /studia/semestr_2/Programowanie_w_R/Lab_3.R | no_license | michi201/gitrepo | R | false | false | 1,407 | r | # ZADANIA LABOLATORYJNE
# Zad 1
l11 <- list("Jan", "Kowalski", 1997, FALSE, 172.5, "987 654 321")
str(l11) #struktura listy
l11[c(1)] #pierwszy element listy == l11[1]
l12 <- l11[c(1,2,6)]
str(l12)
l13 <- l11[-c(3,6)]
str(l13)
# Zad 2
wiek <- l11[[3]]
wiek <- 2020 - wiek
paste(l11[1], l11[2], "- lat", wiek)
# Za... |
library(Matrix)
library(irlba)
ndocs <- read.table("/home/srmq/Documents/Research/textmining/devel/data/20_newsgroups-noheaders-multilex-indices/words/df.txt", header=FALSE, nrows=1, colClasses=c("numeric"))
ndocs <- ndocs[1, 1]
wordListFile <- "/home/srmq/Documents/Research/textmining/devel/data/20_newsgroups-nohea... | /srmq-nlp/src/main/R/lsa_20newsgroups-MultilexWORDS-noStopWords-noRare5.R | no_license | srmq/nlp | R | false | false | 3,793 | r | library(Matrix)
library(irlba)
ndocs <- read.table("/home/srmq/Documents/Research/textmining/devel/data/20_newsgroups-noheaders-multilex-indices/words/df.txt", header=FALSE, nrows=1, colClasses=c("numeric"))
ndocs <- ndocs[1, 1]
wordListFile <- "/home/srmq/Documents/Research/textmining/devel/data/20_newsgroups-nohea... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variantkey.R
\name{FindVrChromposRange}
\alias{FindVrChromposRange}
\title{Search for the specified CHROM-POS range and returns the first occurrence of rsID in the VR file.}
\usage{
FindVrChromposRange(src, first, last, chrom, pos_min, pos_ma... | /r/variantkey/man/FindVrChromposRange.Rd | permissive | yzharold/variantkey | R | false | true | 914 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variantkey.R
\name{FindVrChromposRange}
\alias{FindVrChromposRange}
\title{Search for the specified CHROM-POS range and returns the first occurrence of rsID in the VR file.}
\usage{
FindVrChromposRange(src, first, last, chrom, pos_min, pos_ma... |
test_that("Test interest_volume() for wrong input errors", {
testthat::skip_if_offline()
testthat::skip_on_cran()
## Test for invalid date values and types in various combinations
expect_error(interest_volume(year = "Random String", month = 9))
expect_error(interest_volume(year = 2020, month = "March... | /tests/testthat/test_interest_volume.R | no_license | HaydenMacDonald/bnmr | R | false | false | 1,058 | r | test_that("Test interest_volume() for wrong input errors", {
testthat::skip_if_offline()
testthat::skip_on_cran()
## Test for invalid date values and types in various combinations
expect_error(interest_volume(year = "Random String", month = 9))
expect_error(interest_volume(year = 2020, month = "March... |
mtcars
hist(mtcars$mpg)
sum(mtcars$am == 1)
sum(mtcars$am == 0)
?plot
plot(mtcars$hp, mtcars$wt, main="Rathod", sub="Tushar", xlab = "weight", ylab = "HorsePower")
iris
c<-colnames(iris);c
list(c)[1]
class(colnames(iris))
colnames(iris)[1] <- 'tush'
iris.vrs <- suiris$Species=='versicolor'; iris.vrs
cols<- co... | /iris.R | no_license | tush99m/R-Code | R | false | false | 808 | r | mtcars
hist(mtcars$mpg)
sum(mtcars$am == 1)
sum(mtcars$am == 0)
?plot
plot(mtcars$hp, mtcars$wt, main="Rathod", sub="Tushar", xlab = "weight", ylab = "HorsePower")
iris
c<-colnames(iris);c
list(c)[1]
class(colnames(iris))
colnames(iris)[1] <- 'tush'
iris.vrs <- suiris$Species=='versicolor'; iris.vrs
cols<- co... |
# Numerically solve the FitzHugh Nagumo equations for various values of the parameter I
# Observe the bifucation structure described in the lecture.
# libraries
library(ggplot2)
# initial variables
I_list<- seq(0, 1, 0.01)
C1 <- 0.139
C2 <- 0.08
C3 <- 0.02
iterations_to_not_plot<- 300
iterations_to_plot<- 500
... | /Bifurcation_FitzHugh Nagumo_1a.R | no_license | KBostock/Code | R | false | false | 1,328 | r | # Numerically solve the FitzHugh Nagumo equations for various values of the parameter I
# Observe the bifucation structure described in the lecture.
# libraries
library(ggplot2)
# initial variables
I_list<- seq(0, 1, 0.01)
C1 <- 0.139
C2 <- 0.08
C3 <- 0.02
iterations_to_not_plot<- 300
iterations_to_plot<- 500
... |
#####
# Pulls rainfall events out of the raw data.
#
# Designed to be run AFTER Plot_byParam_ver9_[date].r, in the SAME workspace.
#
# Both sample events (duration from first aliquot to last aliquot) and storm events,
# which should be duration from beginning to end of rainfall
require(sqldf)
### convert from text... | /scripts/Load_byParam_sub1_lookup.R | permissive | ethankale/ecy-wa-s8d | R | false | false | 9,371 | r |
#####
# Pulls rainfall events out of the raw data.
#
# Designed to be run AFTER Plot_byParam_ver9_[date].r, in the SAME workspace.
#
# Both sample events (duration from first aliquot to last aliquot) and storm events,
# which should be duration from beginning to end of rainfall
require(sqldf)
### convert from text... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_objects.R
\name{Router}
\alias{Router}
\title{Router Object}
\usage{
Router(bgp = NULL, bgpPeers = NULL, creationTimestamp = NULL,
description = NULL, id = NULL, interfaces = NULL, name = NULL,
network = NULL, region = NULL, selfL... | /googlecomputev1.auto/man/Router.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 1,316 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_objects.R
\name{Router}
\alias{Router}
\title{Router Object}
\usage{
Router(bgp = NULL, bgpPeers = NULL, creationTimestamp = NULL,
description = NULL, id = NULL, interfaces = NULL, name = NULL,
network = NULL, region = NULL, selfL... |
###
### This is , part of the Nature Protocol:
### 'A computational framework for conducting a three-pronged association study
### to integrate high-throughput ‘-omics’ datasets for the identification of
### potential mechanistic links'.
### 26/7-2018
###
###
### Step 9 - Link MGS metagenomic entities to phenotype of... | /script/step9_associate.MGSs.with.phenotype.R | no_license | pipeuser/clinical-micro-meta-integration | R | false | false | 2,011 | r | ###
### This is , part of the Nature Protocol:
### 'A computational framework for conducting a three-pronged association study
### to integrate high-throughput ‘-omics’ datasets for the identification of
### potential mechanistic links'.
### 26/7-2018
###
###
### Step 9 - Link MGS metagenomic entities to phenotype of... |
library(dplyr)
# Loading the traininig data
XTrain <- read.table("X_train.txt")
YTrain <- read.table("Y_train.txt")
SubjTrain <- read.table("subject_train.txt")
# Loading the test data
XTest <- read.table("X_test.txt")
YTest <- read.table("Y_test.txt")
SubjTest <- read.table("subject_test.txt")
# Loading... | /run_analysis.R | no_license | KadirKcbs/Getting-and-Cleaning-Data-Week-4-Assignment | R | false | false | 1,628 | r | library(dplyr)
# Loading the traininig data
XTrain <- read.table("X_train.txt")
YTrain <- read.table("Y_train.txt")
SubjTrain <- read.table("subject_train.txt")
# Loading the test data
XTest <- read.table("X_test.txt")
YTest <- read.table("Y_test.txt")
SubjTest <- read.table("subject_test.txt")
# Loading... |
#script for extraction latitude and longitude for a list of locations
#note: input dataframe must have Cityname and CountryCode
library(RJSONIO)
get_lat.long=function(test)
{
nrow <- nrow(test)
counter <- 1
test$lon[counter] <- 0
test$lat[counter] <- 0
while (counter <= nrow){
CityName <- gsub(' ','%20',... | /get_lat.long.R | no_license | JuanMatiasBraccini/Git_other | R | false | false | 773 | r | #script for extraction latitude and longitude for a list of locations
#note: input dataframe must have Cityname and CountryCode
library(RJSONIO)
get_lat.long=function(test)
{
nrow <- nrow(test)
counter <- 1
test$lon[counter] <- 0
test$lat[counter] <- 0
while (counter <= nrow){
CityName <- gsub(' ','%20',... |
##Install latest versions of packages
#install.packages("/projectnb/dietzelab/kiwheel/NEFI_pheno/PhenologyBayesModeling",repo=NULL)
install.packages("/projectnb/dietzelab/kiwheel/NEFI_pheno/PhenoForecast",repo=NULL)
library("PhenoForecast")
library("PhenologyBayesModeling")
library("coda")
library("dplyr")
library("rj... | /mainPhenologyForecast.R | permissive | victorfeagins/NEFI_pheno | R | false | false | 4,822 | r | ##Install latest versions of packages
#install.packages("/projectnb/dietzelab/kiwheel/NEFI_pheno/PhenologyBayesModeling",repo=NULL)
install.packages("/projectnb/dietzelab/kiwheel/NEFI_pheno/PhenoForecast",repo=NULL)
library("PhenoForecast")
library("PhenologyBayesModeling")
library("coda")
library("dplyr")
library("rj... |
# CALLING LIBRARIES
library(missForest)
library(class)
library(MASS)
# GETTING DATA
DATA=iris
# DATA VIEWING
str(DATA)
summary(DATA)
ncol(DATA)
is.na(DATA)
(DATA[!complete.cases(DATA),])
# IMPUTING OUTLIERS AND FEEDING NAs TO THEM
OUTLIERS=NULL
for (i in 1:ncol(DATACLEANED))
{
if(class(DATACLEANED[,i])=='numeric'... | /src/PredictiveAnalysis/ExcutedFiles/KNN ON IRIS.R | no_license | ravireddy07/LPU-Material | R | false | false | 2,334 | r | # CALLING LIBRARIES
library(missForest)
library(class)
library(MASS)
# GETTING DATA
DATA=iris
# DATA VIEWING
str(DATA)
summary(DATA)
ncol(DATA)
is.na(DATA)
(DATA[!complete.cases(DATA),])
# IMPUTING OUTLIERS AND FEEDING NAs TO THEM
OUTLIERS=NULL
for (i in 1:ncol(DATACLEANED))
{
if(class(DATACLEANED[,i])=='numeric'... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zastosuj_codebook.R
\name{zastosuj_codebook}
\alias{zastosuj_codebook}
\title{Utworzenie ramki danych ze zmiennymi etykietowanymi z pliku CSV}
\usage{
zastosuj_codebook(
dane,
codebook,
encoding = "windows-1250",
etykietyBrakowDanych ... | /man/zastosuj_codebook.Rd | permissive | tzoltak/daneIBE | R | false | true | 1,451 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zastosuj_codebook.R
\name{zastosuj_codebook}
\alias{zastosuj_codebook}
\title{Utworzenie ramki danych ze zmiennymi etykietowanymi z pliku CSV}
\usage{
zastosuj_codebook(
dane,
codebook,
encoding = "windows-1250",
etykietyBrakowDanych ... |
library(RODBC)
library(mgcv)
library(fields)
source("R:\\SET\\PlantSci\\Staff\\Grant Williamson\\code\\space time met modelling\\elevation_functions.r")
biomass= odbcConnect("bio")
weather= odbcConnect("weather")
#pull in daily temp data for Jan 06 (only inside oz)
#Pull in list of dates.
dlist = seq(as.Date("1990... | /wind_interpolate.R | no_license | leixuezhang/nasa-ffdi | R | false | false | 2,779 | r |
library(RODBC)
library(mgcv)
library(fields)
source("R:\\SET\\PlantSci\\Staff\\Grant Williamson\\code\\space time met modelling\\elevation_functions.r")
biomass= odbcConnect("bio")
weather= odbcConnect("weather")
#pull in daily temp data for Jan 06 (only inside oz)
#Pull in list of dates.
dlist = seq(as.Date("1990... |
# Plot1.R - Script to genereate Global Active power chart
setwd( "./Coursera/data")
XPower <- read.table("household_power_consumption.txt", header = TRUE, sep =";",
quote="", na.string="?")
library(dplyr)
XPower <- mutate(XPower, FDate= as.Date(Date, format="%d/%m/%Y"))
XPower <- filter(XP... | /plot1.R | no_license | jaiku99/ExData_Plotting1 | R | false | false | 688 | r | # Plot1.R - Script to genereate Global Active power chart
setwd( "./Coursera/data")
XPower <- read.table("household_power_consumption.txt", header = TRUE, sep =";",
quote="", na.string="?")
library(dplyr)
XPower <- mutate(XPower, FDate= as.Date(Date, format="%d/%m/%Y"))
XPower <- filter(XP... |
testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912... | /dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609868012-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 831 | r | testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912... |
timestamp <- Sys.time()
library(caret)
library(plyr)
library(recipes)
library(dplyr)
model <- "rpart2"
#########################################################################
set.seed(2)
training <- twoClassSim(50, linearVars = 2)
testing <- twoClassSim(500, linearVars = 2)
trainX <- training[, -ncol(training)]
... | /RegressionTests/Code/rpart2.R | no_license | topepo/caret | R | false | false | 5,966 | r | timestamp <- Sys.time()
library(caret)
library(plyr)
library(recipes)
library(dplyr)
model <- "rpart2"
#########################################################################
set.seed(2)
training <- twoClassSim(50, linearVars = 2)
testing <- twoClassSim(500, linearVars = 2)
trainX <- training[, -ncol(training)]
... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/BRLasso.R
\name{BRLasso}
\alias{BRLasso}
\title{Bootstrap ranking LASSO model.}
\description{
This function performs a LASSO logistic regression model using a bootstrap ranking procedure,
namely the BRLasso logistic regression... | /man/BRLasso.Rd | no_license | cran/SparseLearner | R | false | false | 3,896 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/BRLasso.R
\name{BRLasso}
\alias{BRLasso}
\title{Bootstrap ranking LASSO model.}
\description{
This function performs a LASSO logistic regression model using a bootstrap ranking procedure,
namely the BRLasso logistic regression... |
svc <- paws::rds()
test_that("describe_account_attributes", {
expect_error(svc$describe_account_attributes(), NA)
})
test_that("describe_blue_green_deployments", {
expect_error(svc$describe_blue_green_deployments(), NA)
})
test_that("describe_certificates", {
expect_error(svc$describe_certificates(), NA)
})
t... | /cran/paws.database/tests/testthat/test_rds.R | permissive | paws-r/paws | R | false | false | 2,621 | r | svc <- paws::rds()
test_that("describe_account_attributes", {
expect_error(svc$describe_account_attributes(), NA)
})
test_that("describe_blue_green_deployments", {
expect_error(svc$describe_blue_green_deployments(), NA)
})
test_that("describe_certificates", {
expect_error(svc$describe_certificates(), NA)
})
t... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{sjp.grpfrq}
\alias{sjp.grpfrq}
\title{Plot grouped or stacked frequencies}
\usage{
sjp.grpfrq(varCount, varGroup, weightBy = NULL, weightByTitleString = NULL,
interactionVar = NULL, type = "bars", geom.size = 0.6,
geom.spacing = 0.4, geom.colors = "Paired",... | /man/sjp.grpfrq.Rd | no_license | wilpi/devel | R | false | false | 15,157 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{sjp.grpfrq}
\alias{sjp.grpfrq}
\title{Plot grouped or stacked frequencies}
\usage{
sjp.grpfrq(varCount, varGroup, weightBy = NULL, weightByTitleString = NULL,
interactionVar = NULL, type = "bars", geom.size = 0.6,
geom.spacing = 0.4, geom.colors = "Paired",... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
Kmatfunc <- function(Markers) {
.Call(`_GenomicMating_Kmatfunc`, Markers)
}
getstatsM1 <- function(Markers, K, markereffects, P) {
.Call(`_GenomicMating_getstatsM1`, Markers, K, marker... | /GenomicMating/R/RcppExports.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 647 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
Kmatfunc <- function(Markers) {
.Call(`_GenomicMating_Kmatfunc`, Markers)
}
getstatsM1 <- function(Markers, K, markereffects, P) {
.Call(`_GenomicMating_getstatsM1`, Markers, K, marker... |
#!/usr/bin/env Rscript
install.packages(c("AER", "assertthat", "backports", "base64enc", "BH", "bindr", "bindrcpp", "bit", "bit64", "bitops", "broom", "callr", "car", "caTools", "cellranger", "clipr", "colorspace", "crayon", "csvy", "curl", "data.table", "DBI", "dbplyr", "devtools", "dichromat", "digest", "doParallel",... | /R/install_packages.R | permissive | kylebarron/dotfiles | R | false | false | 1,587 | r | #!/usr/bin/env Rscript
install.packages(c("AER", "assertthat", "backports", "base64enc", "BH", "bindr", "bindrcpp", "bit", "bit64", "bitops", "broom", "callr", "car", "caTools", "cellranger", "clipr", "colorspace", "crayon", "csvy", "curl", "data.table", "DBI", "dbplyr", "devtools", "dichromat", "digest", "doParallel",... |
navlistPanel(widths = c(3,9),
tabPanel("Author Information",
wellPanel(
helpText("This software was developed by Felix Thoemmes,
Wang Liao, Ze Jin, Wenyu Zhang, and Irena Papst all at Cornell University.",
"We are happy to receive feedback! Please send it to"),
img(src='fjt_ema... | /inst/shinyrdd/ui_elements/page_about.R | no_license | kimberlywebb/rddapp | R | false | false | 684 | r | navlistPanel(widths = c(3,9),
tabPanel("Author Information",
wellPanel(
helpText("This software was developed by Felix Thoemmes,
Wang Liao, Ze Jin, Wenyu Zhang, and Irena Papst all at Cornell University.",
"We are happy to receive feedback! Please send it to"),
img(src='fjt_ema... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SCNA.R
\name{sort_T_b4_CL}
\alias{sort_T_b4_CL}
\title{Sort Tumor before Cell Line}
\usage{
sort_T_b4_CL(karyo_granges)
}
\arguments{
\item{karyo_granges}{}
}
\value{
}
\description{
Sort Tumor before Cell Line
}
| /man/sort_T_b4_CL.Rd | no_license | cobriniklab/stchlkExome | R | false | true | 292 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SCNA.R
\name{sort_T_b4_CL}
\alias{sort_T_b4_CL}
\title{Sort Tumor before Cell Line}
\usage{
sort_T_b4_CL(karyo_granges)
}
\arguments{
\item{karyo_granges}{}
}
\value{
}
\description{
Sort Tumor before Cell Line
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sipd.meteDist.R
\name{meteTheta}
\alias{meteTheta}
\title{Equation of the PMF for the METE Intra-specific metabolic rate distribution}
\usage{
meteTheta(e, n, la2)
}
\arguments{
\item{e}{Metabolic rate}
\item{n}{Number of individuals in spec... | /man/meteTheta.Rd | no_license | cmerow/meteR | R | false | true | 820 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sipd.meteDist.R
\name{meteTheta}
\alias{meteTheta}
\title{Equation of the PMF for the METE Intra-specific metabolic rate distribution}
\usage{
meteTheta(e, n, la2)
}
\arguments{
\item{e}{Metabolic rate}
\item{n}{Number of individuals in spec... |
str(Titanic)
df <- as.data.frame(Titanic)
head(df)
titanic.raw <- NULL
for(i in 1:4) {
titanic.raw <- cbind(titanic.raw, rep(as.character(df[,i]), df$Freq))
}
titanic.raw <- as.data.frame(titanic.raw)
names(titanic.raw) <- names(df)[1:4]
dim(titanic.raw)
summary(titanic.raw)
install.packages("arules")
library(arules)... | /Labs/lab8-titanic-example-2015.R | permissive | jputlock/CSCI-49XX-OpenSource | R | false | false | 906 | r | str(Titanic)
df <- as.data.frame(Titanic)
head(df)
titanic.raw <- NULL
for(i in 1:4) {
titanic.raw <- cbind(titanic.raw, rep(as.character(df[,i]), df$Freq))
}
titanic.raw <- as.data.frame(titanic.raw)
names(titanic.raw) <- names(df)[1:4]
dim(titanic.raw)
summary(titanic.raw)
install.packages("arules")
library(arules)... |
library(rsubgroup)
data("credit.data")
attach(credit.data)
result1 = DiscoverSubgroups(
credit.data, as.target("class", "good"), new("SDTaskConfig",
attributes=c("checking_status", "credit_amount", "employment", "purpose")))
result1 = ToDataFrame(result1)
result1
## p = accuracy, mide la frecuencia relativa de ... | /subgroup/subgroup_discovery.R | permissive | gonz4lex/data-science-projects | R | false | false | 1,145 | r | library(rsubgroup)
data("credit.data")
attach(credit.data)
result1 = DiscoverSubgroups(
credit.data, as.target("class", "good"), new("SDTaskConfig",
attributes=c("checking_status", "credit_amount", "employment", "purpose")))
result1 = ToDataFrame(result1)
result1
## p = accuracy, mide la frecuencia relativa de ... |
# conf_bands.R
#' SVM ROC confidence bands
#'
#' \code{conf_band} constructs bootstrap confidence bands for the SVM ROC curve from
#' an object of class \code{svmroc}.
#'
#' @param object An object of class \code{svmroc}.
#' @param num_boot Number of bootstrap replications. Defaults to 1000.
#' @param gamma Compleme... | /R/conf_bands.R | no_license | djluckett/svmroc | R | false | false | 8,631 | r | # conf_bands.R
#' SVM ROC confidence bands
#'
#' \code{conf_band} constructs bootstrap confidence bands for the SVM ROC curve from
#' an object of class \code{svmroc}.
#'
#' @param object An object of class \code{svmroc}.
#' @param num_boot Number of bootstrap replications. Defaults to 1000.
#' @param gamma Compleme... |
#' @name isBalancedGame
#' @title isBalancedGame for n Players
#' @description Checks if a game is balanced. \cr
#' A game is balanced if the core is a nonempty set. \cr
#' This routine uses the 'dual' characterization
#' of balancedness via the Bondareva-Shapley theorem
... | /CoopGame/R/GamePropertyBalancedness.R | no_license | anwanjohannes/CoopGame | R | false | false | 3,971 | r | #' @name isBalancedGame
#' @title isBalancedGame for n Players
#' @description Checks if a game is balanced. \cr
#' A game is balanced if the core is a nonempty set. \cr
#' This routine uses the 'dual' characterization
#' of balancedness via the Bondareva-Shapley theorem
... |
#!/usr/bin/env Rscript
library(reshape2)
library(ggplot2)
library(scales)
file_prefix <- 'chr6p21.1_hg18.lrr_baf'
data_file <- paste(file_prefix, '.txt', sep = '', collapse = '')
detail_plot_file <- paste(file_prefix, '.detail.png', sep = '', collapse = '')
summary_plot_file <- paste(file_prefix, '.summary.png', sep ... | /snparray/plotCopyNumber | no_license | shvenkat/genetics | R | false | false | 2,734 | #!/usr/bin/env Rscript
library(reshape2)
library(ggplot2)
library(scales)
file_prefix <- 'chr6p21.1_hg18.lrr_baf'
data_file <- paste(file_prefix, '.txt', sep = '', collapse = '')
detail_plot_file <- paste(file_prefix, '.detail.png', sep = '', collapse = '')
summary_plot_file <- paste(file_prefix, '.summary.png', sep ... | |
library(Morphometrics)
library(ggplot2)
library(reshape2)
library(EvomodR)
#main.data.div.sel = ReadPattern()
#save(main.data.div.sel, file="./rdatas/div.sel.Rdata")
#non.cor.corridor = ReadPattern("Corridor", sel.type = "corridor")
#save(non.cor.corridor, file='./rdatas/non.cor.corridor.Rdata')
non.cor.stabilizing = ... | /c-gsl/mod.indicator.r | no_license | diogro/evomod | R | false | false | 589 | r | library(Morphometrics)
library(ggplot2)
library(reshape2)
library(EvomodR)
#main.data.div.sel = ReadPattern()
#save(main.data.div.sel, file="./rdatas/div.sel.Rdata")
#non.cor.corridor = ReadPattern("Corridor", sel.type = "corridor")
#save(non.cor.corridor, file='./rdatas/non.cor.corridor.Rdata')
non.cor.stabilizing = ... |
library("nnet")
#This is the code for KNN algorithm
kNNclassify <- function (trainingdata, testdata, k, dist = "euclidean", p = 2, idx){
#trainingdata trainingdata
#testdata testdata
#k number of the nearest neighbors
... | /Part3/KNN.R | no_license | ArsMing276/Spam_Detection_Project | R | false | false | 8,372 | r | library("nnet")
#This is the code for KNN algorithm
kNNclassify <- function (trainingdata, testdata, k, dist = "euclidean", p = 2, idx){
#trainingdata trainingdata
#testdata testdata
#k number of the nearest neighbors
... |
# function performs least-squares phylogeny inference by nni
# written by Liam J. Revell 2011, 2013, 2015
optim.phylo.ls<-function(D,stree=NULL,set.neg.to.zero=TRUE,fixed=FALSE,tol=1e-10,collapse=TRUE){
# change D to a matrix (if actually an object of class "dist")
if(class(D)=="dist") D<-as.matrix(D)
# compute... | /R/optim.phylo.ls.R | no_license | bmpvieira-forks/phytools | R | false | false | 3,312 | r | # function performs least-squares phylogeny inference by nni
# written by Liam J. Revell 2011, 2013, 2015
optim.phylo.ls<-function(D,stree=NULL,set.neg.to.zero=TRUE,fixed=FALSE,tol=1e-10,collapse=TRUE){
# change D to a matrix (if actually an object of class "dist")
if(class(D)=="dist") D<-as.matrix(D)
# compute... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/image.R
\name{web_image}
\alias{web_image}
\title{Helper function for adding an image from the web}
\usage{
web_image(url, height = 30)
}
\arguments{
\item{url}{A url that resolves to an image file.}
\item{height}{The absolute height (px) of... | /man/web_image.Rd | permissive | jordanmllr5/gt | R | false | true | 3,288 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/image.R
\name{web_image}
\alias{web_image}
\title{Helper function for adding an image from the web}
\usage{
web_image(url, height = 30)
}
\arguments{
\item{url}{A url that resolves to an image file.}
\item{height}{The absolute height (px) of... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.