content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library(dismo)
load_dataset <- function(filepath) {
return(read.csv(filepath,
header=TRUE));
}
k_fold_indices <- function(dataset, k_folds, stratified) {
if(stratified) {
return(kfold(dataset, k = k_folds, by = dataset$class));
}
else {
return(kfold(dataset, k = k_folds));
}
}
cou... | /C4_5/c45lib.R | no_license | lukaszsus/c4.5 | R | false | false | 4,219 | r | library(dismo)
load_dataset <- function(filepath) {
return(read.csv(filepath,
header=TRUE));
}
k_fold_indices <- function(dataset, k_folds, stratified) {
if(stratified) {
return(kfold(dataset, k = k_folds, by = dataset$class));
}
else {
return(kfold(dataset, k = k_folds));
}
}
cou... |
loadingsplot <- function(object, ncomp = object$ncomp, conf = .95, verbose = FALSE) {
if (object$method == "PCA") {
if(length(ncomp) == 1) {
ncomp <- ncomp
Stack <- data.frame(object$loadings[, ncomp])
names(Stack) <- ncomp
df <- reshape(Stack, idvar = "variable", varying = list(1),
... | /R/loadingsplot.R | no_license | cran/mvdalab | R | false | false | 4,883 | r | loadingsplot <- function(object, ncomp = object$ncomp, conf = .95, verbose = FALSE) {
if (object$method == "PCA") {
if(length(ncomp) == 1) {
ncomp <- ncomp
Stack <- data.frame(object$loadings[, ncomp])
names(Stack) <- ncomp
df <- reshape(Stack, idvar = "variable", varying = list(1),
... |
rankall <- function(outcome, num = "best") {
## Read outcome data
## define all the "Not Available" string as NA
outcomefile <- read.csv("111.csv",colClasses = "character",na.strings="Not Available")
## check that state and outcome are valid
outcomelist <- c("heart attack","heart failure","pneumonia")
m<... | /Coursera../HW3../rankallbetter.R | no_license | yukiecho/R-Prog-Practice | R | false | false | 1,511 | r | rankall <- function(outcome, num = "best") {
## Read outcome data
## define all the "Not Available" string as NA
outcomefile <- read.csv("111.csv",colClasses = "character",na.strings="Not Available")
## check that state and outcome are valid
outcomelist <- c("heart attack","heart failure","pneumonia")
m<... |
# this function takes a dataset an returns the detreneded data set.
detrend_linear_data <- function(dat){
# get linear predictions
fitted_values <- lm(data = sub_data, value ~ year)$fitted.values
sub_data$value <- fitted_values[1] + (sub_data$value - fitted_values)
return(sub_data)
}
# this function takes an ... | /functions.R | no_license | databrew/drf_tool_1_alt | R | false | false | 56,887 | r |
# this function takes a dataset an returns the detreneded data set.
detrend_linear_data <- function(dat){
# get linear predictions
fitted_values <- lm(data = sub_data, value ~ year)$fitted.values
sub_data$value <- fitted_values[1] + (sub_data$value - fitted_values)
return(sub_data)
}
# this function takes an ... |
function(input, output, session) {
session$sendCustomMessage(type="readCookie",
message=list(name='org.sagebionetworks.security.user.login.token'))
foo <- observeEvent(input$cookie, {
synLogin(sessionToken=input$cookie)
withProgress(message = 'Loading data...... | /ShinyApps/portal_dashboard/server.R | no_license | avanlinden/syndccutils | R | false | false | 11,596 | r | function(input, output, session) {
session$sendCustomMessage(type="readCookie",
message=list(name='org.sagebionetworks.security.user.login.token'))
foo <- observeEvent(input$cookie, {
synLogin(sessionToken=input$cookie)
withProgress(message = 'Loading data...... |
#' sspf function
#'
#' This function splits the independent variable and computes the weighted Gini index by selecting the lowest one
#'
#' @param y Factor vector
#'
#' @param x vector: it can be numeric, a character or a factor
#'
#' @return data.frame
#'
#' @examples
#' sspf(iris$Species,iris$Sepal.Width)
#'
#' @expo... | /R/sspf.R | no_license | rubio-e/treeClass | R | false | false | 3,915 | r | #' sspf function
#'
#' This function splits the independent variable and computes the weighted Gini index by selecting the lowest one
#'
#' @param y Factor vector
#'
#' @param x vector: it can be numeric, a character or a factor
#'
#' @return data.frame
#'
#' @examples
#' sspf(iris$Species,iris$Sepal.Width)
#'
#' @expo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_class.R
\name{predict.mult_stage_survfit}
\alias{predict.mult_stage_survfit}
\alias{fitted.mult_stage_survfit}
\title{Predict and fitted method for mult_stage_survfit}
\usage{
\method{predict}{mult_stage_survfit}(
object,
newdata = ... | /man/predict.mult_stage_survfit.Rd | no_license | QIU-Hongxiang-David/SDRsurv | R | false | true | 1,617 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_class.R
\name{predict.mult_stage_survfit}
\alias{predict.mult_stage_survfit}
\alias{fitted.mult_stage_survfit}
\title{Predict and fitted method for mult_stage_survfit}
\usage{
\method{predict}{mult_stage_survfit}(
object,
newdata = ... |
#' @import ggplot2
NULL
| /R/packages.R | no_license | gmega/playaxr | R | false | false | 24 | r | #' @import ggplot2
NULL
|
\name{ccgammaplot}
\alias{ccgammaplot}
\title{Function which plots the correlation among observed and generated variables}
\usage{
ccgammaplot(x, y, use = "everything", corx = NULL,
return.value = c("nooccurence", "occurence", "continuity_ratio",
"nooccurence_gcorrelation", "nooccurence_correlation"), lag = 0,
to... | /man/ccgammaplot.Rd | no_license | ecor/RMAWGENplotAlpha | R | false | false | 1,507 | rd | \name{ccgammaplot}
\alias{ccgammaplot}
\title{Function which plots the correlation among observed and generated variables}
\usage{
ccgammaplot(x, y, use = "everything", corx = NULL,
return.value = c("nooccurence", "occurence", "continuity_ratio",
"nooccurence_gcorrelation", "nooccurence_correlation"), lag = 0,
to... |
library(cnbdistr)
### Name: dcnb
### Title: PMF of Conditional Negative Binomial
### Aliases: dcnb
### ** Examples
dcnb(980, 2000, 120, 90, 0.994)
dcnb(0:7, 7, 2, 0.4, 0.6)
| /data/genthat_extracted_code/cnbdistr/examples/dcnb.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 181 | r | library(cnbdistr)
### Name: dcnb
### Title: PMF of Conditional Negative Binomial
### Aliases: dcnb
### ** Examples
dcnb(980, 2000, 120, 90, 0.994)
dcnb(0:7, 7, 2, 0.4, 0.6)
|
library(ggmap)
args <- commandArgs(TRUE)
## Default setting when no arguments passed
if(length(args) < 1) {
args <- c("--help")
}
if("--help" %in% args) {
cat("
Arguments:
what to grep for also what to name the file
--help - print this text
Example:
Rscript plot1-day-... | /1920x1080-plot1-day-ig-van-2015-pointsize1.0.alpha0.4.R | permissive | rtanglao/ig-ggmap | R | false | false | 2,198 | r | library(ggmap)
args <- commandArgs(TRUE)
## Default setting when no arguments passed
if(length(args) < 1) {
args <- c("--help")
}
if("--help" %in% args) {
cat("
Arguments:
what to grep for also what to name the file
--help - print this text
Example:
Rscript plot1-day-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extractValues.R
\name{extractTopo}
\alias{extractTopo}
\title{Extract values from raster (DEM)}
\usage{
extractTopo(ls_dem, dt_ref, col_names = c("elevation", "slope"))
}
\arguments{
\item{ls_dem}{a file name of DEM with 2 bands (elevation an... | /man/extractTopo.Rd | permissive | Emmanuel461/ddl8s1ts | R | false | true | 798 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extractValues.R
\name{extractTopo}
\alias{extractTopo}
\title{Extract values from raster (DEM)}
\usage{
extractTopo(ls_dem, dt_ref, col_names = c("elevation", "slope"))
}
\arguments{
\item{ls_dem}{a file name of DEM with 2 bands (elevation an... |
source("/home/lagee/Documents/ghProjects/cqmaTools/R/util.R")
#-------------------------------------
# set up
# ATENCAO --->> NAO ESQUECER DE MODIFICAR A MASSA MOLAR DO GAS NA LINHA 200
#-------------------------------------
setwd("/home/lagee/Documents/ghProjects/cqmaTools")
library(devtools)
devtools::load_all()
... | /inst/extdata/flux.R | permissive | albhasan/cqmaTools | R | false | false | 10,256 | r | source("/home/lagee/Documents/ghProjects/cqmaTools/R/util.R")
#-------------------------------------
# set up
# ATENCAO --->> NAO ESQUECER DE MODIFICAR A MASSA MOLAR DO GAS NA LINHA 200
#-------------------------------------
setwd("/home/lagee/Documents/ghProjects/cqmaTools")
library(devtools)
devtools::load_all()
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ws.R
\name{donothing}
\alias{donothing}
\title{Titles}
\usage{
donothing(x)
}
\arguments{
\item{x}{s}
}
\value{
s
}
\description{
Titles
}
| /man/donothing.Rd | no_license | alexis2113/HandyR | R | false | true | 217 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ws.R
\name{donothing}
\alias{donothing}
\title{Titles}
\usage{
donothing(x)
}
\arguments{
\item{x}{s}
}
\value{
s
}
\description{
Titles
}
|
#' Sum Normalization
#'
#' This function normalizes the columns of the gene expression matrix, so that each column sums to one. In other words all
#' the genes in each samples sums to one
#'
#' @param sparse_mat Takes in a sparse gene expression matrix
#' @keywords normalization
#' @return Returns a sparse matrix
#... | /R/sum_norm.R | no_license | fparyani/DeepDeconv | R | false | false | 528 | r |
#' Sum Normalization
#'
#' This function normalizes the columns of the gene expression matrix, so that each column sums to one. In other words all
#' the genes in each samples sums to one
#'
#' @param sparse_mat Takes in a sparse gene expression matrix
#' @keywords normalization
#' @return Returns a sparse matrix
#... |
library(Compounding)
### Name: pgfIyule
### Title: Function pgfIyule
### Aliases: pgfIyule
### ** Examples
params<-.3
pgfIyule(.9,params)
## The function is currently defined as
pgfIyule <- function(s,params) {
xval<-length(s)
for (i in 1:length(s)) {
func<-function(x) pgfyule(x,params)-s[i]
... | /data/genthat_extracted_code/Compounding/examples/pgfIyule.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 389 | r | library(Compounding)
### Name: pgfIyule
### Title: Function pgfIyule
### Aliases: pgfIyule
### ** Examples
params<-.3
pgfIyule(.9,params)
## The function is currently defined as
pgfIyule <- function(s,params) {
xval<-length(s)
for (i in 1:length(s)) {
func<-function(x) pgfyule(x,params)-s[i]
... |
library(MASS)
library(dplyr)
library(tidyverse)
library(ggplot2)
library(Rcpp)
library(readxl)
library(stringr)
library(gcookbook)
setwd("/f/mulinlab/huan/figure/script/")
dit <-"/f/mulinlab/huan/All_result_ICGC/gene_network_merge_repurposing_model/new_civic_as_positive_model_V2/gene_network_merge_data/huan_data/outpu... | /Huan_link_all_script/figure/script/distribution_of_drug_repurposing_prediction_value.R | no_license | Lhhuan/drug_repurposing | R | false | false | 2,653 | r | library(MASS)
library(dplyr)
library(tidyverse)
library(ggplot2)
library(Rcpp)
library(readxl)
library(stringr)
library(gcookbook)
setwd("/f/mulinlab/huan/figure/script/")
dit <-"/f/mulinlab/huan/All_result_ICGC/gene_network_merge_repurposing_model/new_civic_as_positive_model_V2/gene_network_merge_data/huan_data/outpu... |
# TODO: Create github repo for this, README, and associated files
# TODO:
# Comment out lower plot code
# Remove Sample Y from Sample Y selection, same for other selections.
# No selection crashes app (!!!)
# Labelling is backwards (X and Y)
#
library(shiny)
library(tidyverse)
library(patchwork)
library(ggrepel)
lib... | /evome_app.R | no_license | shahlab/evome-app | R | false | false | 25,009 | r | # TODO: Create github repo for this, README, and associated files
# TODO:
# Comment out lower plot code
# Remove Sample Y from Sample Y selection, same for other selections.
# No selection crashes app (!!!)
# Labelling is backwards (X and Y)
#
library(shiny)
library(tidyverse)
library(patchwork)
library(ggrepel)
lib... |
## GOAL ##
## we will be creating multiple vectors which we will then tie together to become a dataframe
################## numeric vector ########################
?vector
## create a numeric vector
gpa = c(1.81, 3.91, 3.45, 3.65)
## R is a non-zero based language
gpa[1]
## use semi-colon to get a series of ... | /Vectors_to_DF.R | no_license | brentmayberry/R_Foundations | R | false | false | 2,752 | r |
## GOAL ##
## we will be creating multiple vectors which we will then tie together to become a dataframe
################## numeric vector ########################
?vector
## create a numeric vector
gpa = c(1.81, 3.91, 3.45, 3.65)
## R is a non-zero based language
gpa[1]
## use semi-colon to get a series of ... |
library(RODBC)
library(nnet)
library(neuralnet)
scaleTANH <- function(x) {
x <- sweep(x, 2, apply(x, 2, min))
x <- sweep(x, 2, apply(x, 2, max), "/")
2*x - 1
}
scaleLOGICAL <- function(x) {
x <- sweep(x, 2, apply(x, 2, min))
x <- sweep(x, 2, apply(x, 2, max), "/")
}
normalize <- function(x... | /R/Testing/ModelTesting.r | no_license | rink72/Doggies | R | false | false | 2,121 | r | library(RODBC)
library(nnet)
library(neuralnet)
scaleTANH <- function(x) {
x <- sweep(x, 2, apply(x, 2, min))
x <- sweep(x, 2, apply(x, 2, max), "/")
2*x - 1
}
scaleLOGICAL <- function(x) {
x <- sweep(x, 2, apply(x, 2, min))
x <- sweep(x, 2, apply(x, 2, max), "/")
}
normalize <- function(x... |
library(rWidgets)
dfNodes = data.frame(
name = tolower(letters[1:6]),
tooltip = paste0("Tooltip ",toupper(letters[1:6])),
level = c(0,1,1,1,2,2),
color = rep(rgb(0.2,0.8,0.3),6),
value = rep(0.5,6)
)
dfLinks = data.frame(
tooltip = c("1 -> 2", "1 -> 3", "1 -> 4", "2 -> 5", "2 -> 6", "3 -> 5", "3 -> 6", ... | /inst/examples/example_d3graphsankey.R | no_license | rocalabern/rWidgets | R | false | false | 503 | r | library(rWidgets)
dfNodes = data.frame(
name = tolower(letters[1:6]),
tooltip = paste0("Tooltip ",toupper(letters[1:6])),
level = c(0,1,1,1,2,2),
color = rep(rgb(0.2,0.8,0.3),6),
value = rep(0.5,6)
)
dfLinks = data.frame(
tooltip = c("1 -> 2", "1 -> 3", "1 -> 4", "2 -> 5", "2 -> 6", "3 -> 5", "3 -> 6", ... |
create_expected_decomposed_path <- function(dirname, filename, extension, row.names)
{
structure(
data.frame(
dirname = dirname,
filename = filename,
extension = extension,
row.names = row.names,
stringsAsFactors = FALSE
),
class = c("decompose... | /data/genthat_extracted_code/pathological/tests/test_decompose_path.R | no_license | surayaaramli/typeRrh | R | false | false | 16,375 | r | create_expected_decomposed_path <- function(dirname, filename, extension, row.names)
{
structure(
data.frame(
dirname = dirname,
filename = filename,
extension = extension,
row.names = row.names,
stringsAsFactors = FALSE
),
class = c("decompose... |
\name{getParamNames.Covariance}
\alias{Covariance$paramNames}
\alias{getParamNames}
\alias{getParamNames.Covariance}
\title{ID-decorated names of Covariance parameters}
\arguments{
\item{...}{Not used.}
}
\value{
Parameter names in the form "id.basename", where basename
is the "undecorated" parameter name.
}
\des... | /man/getParamNames.Covariance.Rd | no_license | chiphogg/gppois | R | false | false | 847 | rd | \name{getParamNames.Covariance}
\alias{Covariance$paramNames}
\alias{getParamNames}
\alias{getParamNames.Covariance}
\title{ID-decorated names of Covariance parameters}
\arguments{
\item{...}{Not used.}
}
\value{
Parameter names in the form "id.basename", where basename
is the "undecorated" parameter name.
}
\des... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/athena_operations.R
\name{athena_list_named_queries}
\alias{athena_list_named_queries}
\title{Provides a list of available query IDs only for queries saved in the
specified workgroup}
\usage{
athena_list_named_queries(NextToken, MaxResults, W... | /cran/paws.analytics/man/athena_list_named_queries.Rd | permissive | jcheng5/paws | R | false | true | 1,463 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/athena_operations.R
\name{athena_list_named_queries}
\alias{athena_list_named_queries}
\title{Provides a list of available query IDs only for queries saved in the
specified workgroup}
\usage{
athena_list_named_queries(NextToken, MaxResults, W... |
#' Create a GUIDE batch input file
#'
#' This function generates a GUIDE batch input file
#' @param i_singleTree
#' @param i_treeType
#' @param i_treeOptions
#' @param i_fpath
#' @param i_fname
#' @param VERBOSE=FALSE
#' @keywords GUIDE, input, batch file
#' @export
#'
write_batch_file <- function(i_singleTree, i_tree... | /R/write_batch_file.R | no_license | jhilaire/guidr | R | false | false | 31,375 | r | #' Create a GUIDE batch input file
#'
#' This function generates a GUIDE batch input file
#' @param i_singleTree
#' @param i_treeType
#' @param i_treeOptions
#' @param i_fpath
#' @param i_fname
#' @param VERBOSE=FALSE
#' @keywords GUIDE, input, batch file
#' @export
#'
write_batch_file <- function(i_singleTree, i_tree... |
####################################################################
# Author: Jafta Stomp
# Date: 12-03-2018
# Description:
# This script finds differentially expressed genes using DESeq2
# And uses these results to make a venn diagram
# only looks at control vs all other stages per region
#####################... | /Code/venn_DEA.R | no_license | jsstomp/EAE-Astrocyte | R | false | false | 5,481 | r | ####################################################################
# Author: Jafta Stomp
# Date: 12-03-2018
# Description:
# This script finds differentially expressed genes using DESeq2
# And uses these results to make a venn diagram
# only looks at control vs all other stages per region
#####################... |
library(cleandata)
### Name: encode_binary
### Title: Encode Binary Data Into 0 and 1
### Aliases: encode_binary
### Keywords: manip
### ** Examples
# refer to vignettes if you want to use log files
message('refer to vignettes if you want to use log files')
# building a data frame
A <- as.factor(c('x', 'y', 'x'))
... | /data/genthat_extracted_code/cleandata/examples/encode_binary.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 461 | r | library(cleandata)
### Name: encode_binary
### Title: Encode Binary Data Into 0 and 1
### Aliases: encode_binary
### Keywords: manip
### ** Examples
# refer to vignettes if you want to use log files
message('refer to vignettes if you want to use log files')
# building a data frame
A <- as.factor(c('x', 'y', 'x'))
... |
WCE <- function(matrix, num_cat) {
#Function computes the normalized within-cluster entropy
dim <- dim(matrix)
#number of variables
m <- dim[3]
#number of clusters
k <- dim[2]
#number of elements
n <- sum(matrix[,,1])
var <- vector(mode="numeric", length=k)
for (g in 1:k) {
entropy_norm <- ve... | /nomclust/R/WCE.R | no_license | ingted/R-Examples | R | false | false | 786 | r | WCE <- function(matrix, num_cat) {
#Function computes the normalized within-cluster entropy
dim <- dim(matrix)
#number of variables
m <- dim[3]
#number of clusters
k <- dim[2]
#number of elements
n <- sum(matrix[,,1])
var <- vector(mode="numeric", length=k)
for (g in 1:k) {
entropy_norm <- ve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/upsert.R
\name{sf_upsert_bulk_v2}
\alias{sf_upsert_bulk_v2}
\title{Upsert Records using Bulk 2.0 API}
\usage{
sf_upsert_bulk_v2(
input_data,
object_name,
external_id_fieldname,
guess_types = TRUE,
control,
...,
verbose = FALSE
)... | /man/sf_upsert_bulk_v2.Rd | permissive | StevenMMortimer/salesforcer | R | false | true | 472 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/upsert.R
\name{sf_upsert_bulk_v2}
\alias{sf_upsert_bulk_v2}
\title{Upsert Records using Bulk 2.0 API}
\usage{
sf_upsert_bulk_v2(
input_data,
object_name,
external_id_fieldname,
guess_types = TRUE,
control,
...,
verbose = FALSE
)... |
post_samples <- function(samples, auth_token = NA, version = NA) {
check_internet()
if (missing(auth_token)) auth_token <- witai_auth()
if (is.na(version)) version <- gsub('[[:punct:]]', '', Sys.Date())
res <- httr::POST(
url = 'https://api.wit.ai/',
path = 'samples',
httr::add_headers(... | /R/wit_samples.R | permissive | bspalat/witair | R | false | false | 1,049 | r | post_samples <- function(samples, auth_token = NA, version = NA) {
check_internet()
if (missing(auth_token)) auth_token <- witai_auth()
if (is.na(version)) version <- gsub('[[:punct:]]', '', Sys.Date())
res <- httr::POST(
url = 'https://api.wit.ai/',
path = 'samples',
httr::add_headers(... |
enve.recplot <- structure(function(
### Produces recruitment plots provided that BlastTab.catsbj.pl has
### been previously executed. Requires the gplots library.
prefix,
### Path to the prefix of the BlastTab.catsbj.pl output files. At
### least the files .rec and .lim must exist with this prefix.
# Id. hist.
... | /enveomics.R/R/recplot.R | permissive | minjaekim45/enveomics | R | false | false | 13,756 | r | enve.recplot <- structure(function(
### Produces recruitment plots provided that BlastTab.catsbj.pl has
### been previously executed. Requires the gplots library.
prefix,
### Path to the prefix of the BlastTab.catsbj.pl output files. At
### least the files .rec and .lim must exist with this prefix.
# Id. hist.
... |
setwd("C:/Users/user/Documents/work")
file <- "household_power_consumption.txt"
cp1_data <- read.table(file, header = FALSE, sep = ";", skip = 1, colClasses = c(rep("character",2), rep("numeric", 7)), na.strings = "?")
cnames <- readLines(file, 1)
cnames <- strsplit(cnames, ";", fixed = TRUE)
names(cp1_data) <- cnames... | /plot3.R | no_license | coolsowmiya/course_project1 | R | false | false | 1,106 | r |
setwd("C:/Users/user/Documents/work")
file <- "household_power_consumption.txt"
cp1_data <- read.table(file, header = FALSE, sep = ";", skip = 1, colClasses = c(rep("character",2), rep("numeric", 7)), na.strings = "?")
cnames <- readLines(file, 1)
cnames <- strsplit(cnames, ";", fixed = TRUE)
names(cp1_data) <- cnames... |
rankhospital <- function(state, outcome, num = "best") {
# Read the outcome data
outcome_data <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
outcome <- tolower(outcome)
# Checking that state and outcome are valid
x = state %in% outcome_data$State
outcomes <- c("heart at... | /projects/rankhospital.R | no_license | rbr7/R_Programming_coursera | R | false | false | 1,942 | r | rankhospital <- function(state, outcome, num = "best") {
# Read the outcome data
outcome_data <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
outcome <- tolower(outcome)
# Checking that state and outcome are valid
x = state %in% outcome_data$State
outcomes <- c("heart at... |
# # Basics
# install.packages(c("tidyverse", "lubridate"))
# Shiny
install.packages("shiny")
# external packages
install.packages("remotes")
remotes::install_github("martscht/PCArt") | /install.R | no_license | dfv-ms/PCArt-shiny | R | false | false | 184 | r | # # Basics
# install.packages(c("tidyverse", "lubridate"))
# Shiny
install.packages("shiny")
# external packages
install.packages("remotes")
remotes::install_github("martscht/PCArt") |
select <-
function(fila, vardep, ...) {
if(length(which(fila==max(fila)))>1)
{predclass <-names(summary(vardep)[which(fila==max(fila))])[
order(summary(vardep)[which(fila==max(fila))],decreasing=TRUE)[1]]
}
else{predclass<- as.character(levels(vardep)[(order(fila,decreasing=TRUE)[1])])... | /R/select.R | no_license | assumednormal/adabag | R | false | false | 370 | r | select <-
function(fila, vardep, ...) {
if(length(which(fila==max(fila)))>1)
{predclass <-names(summary(vardep)[which(fila==max(fila))])[
order(summary(vardep)[which(fila==max(fila))],decreasing=TRUE)[1]]
}
else{predclass<- as.character(levels(vardep)[(order(fila,decreasing=TRUE)[1])])... |
#' Die historischen Daten einlesen
#'
#' @param pfad Der Pfad zur Datei inkl. Dateiname und Endung
#' @return Eine Liste mit den Tabellen (eine pro Jahr) als tibble
#'
daten_einlesen <- function(pfad) {
sheets <- as.character(CONF$sheets$daten)
range <- CONF$daten_range
map(sheets, .sheet_einlesen, pfa... | /R/daten_einlesen.R | no_license | tinu-schneider/Demo_Bookdown | R | false | false | 1,187 | r |
#' Die historischen Daten einlesen
#'
#' @param pfad Der Pfad zur Datei inkl. Dateiname und Endung
#' @return Eine Liste mit den Tabellen (eine pro Jahr) als tibble
#'
daten_einlesen <- function(pfad) {
sheets <- as.character(CONF$sheets$daten)
range <- CONF$daten_range
map(sheets, .sheet_einlesen, pfa... |
\name{rank.nodes}
\alias{rank.nodes}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Node ranks (internal use only) }
\description{
The function returns the rank of each node in the tree.
}
\usage{
rank.nodes(treenode, inode, ntaxa, start, rank)
}
\arguments{
\item{treenode}{ tree... | /man/rank.nodes.Rd | no_license | bomeara/phybase | R | false | false | 792 | rd | \name{rank.nodes}
\alias{rank.nodes}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Node ranks (internal use only) }
\description{
The function returns the rank of each node in the tree.
}
\usage{
rank.nodes(treenode, inode, ntaxa, start, rank)
}
\arguments{
\item{treenode}{ tree... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/op_lists.R
\name{op_lists}
\alias{op_lists}
\title{Optimos Prime calculates optima and tolerance for a matrix of species and environmental factors}
\usage{
op_lists(environmental_df, species_df, listOnly = 0)
}
\arguments{
\item{envi... | /man/op_lists.Rd | no_license | limnolab/Optimos-Prime | R | false | true | 1,786 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/op_lists.R
\name{op_lists}
\alias{op_lists}
\title{Optimos Prime calculates optima and tolerance for a matrix of species and environmental factors}
\usage{
op_lists(environmental_df, species_df, listOnly = 0)
}
\arguments{
\item{envi... |
#'@title Plot Image Grid
#'
#'@description Displays the image in the current device.
#'
#'@param input_list List of array (or matrix) image inputs.
#'@param dim Default `c(1,1)`. Width by height of output grid.
#'@export
#'@examples
#'if(rayimage:::run_documentation()){
#'#Plot the dragon array
#'plot_image_grid(list(d... | /R/plot_image_grid.R | no_license | cran/rayimage | R | false | false | 1,800 | r | #'@title Plot Image Grid
#'
#'@description Displays the image in the current device.
#'
#'@param input_list List of array (or matrix) image inputs.
#'@param dim Default `c(1,1)`. Width by height of output grid.
#'@export
#'@examples
#'if(rayimage:::run_documentation()){
#'#Plot the dragon array
#'plot_image_grid(list(d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysis_methods.R
\name{identify_transition}
\alias{identify_transition}
\title{Identify abrupt transitions}
\usage{
identify_transition(data, threshold = 0.001)
}
\arguments{
\item{threshold}{numeric}
\item{v}{a vector}
}
\value{
factor
}
... | /man/identify_transition.Rd | permissive | alaindanet/indirect_facilitation_model | R | false | true | 487 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysis_methods.R
\name{identify_transition}
\alias{identify_transition}
\title{Identify abrupt transitions}
\usage{
identify_transition(data, threshold = 0.001)
}
\arguments{
\item{threshold}{numeric}
\item{v}{a vector}
}
\value{
factor
}
... |
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/central_nervous_system.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.25,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/central_nervous_... | /Model/EN/ReliefF/central_nervous_system/central_nervous_system_038.R | no_license | leon1003/QSMART | R | false | false | 401 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/central_nervous_system.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.25,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/central_nervous_... |
print("Checking if a package exists before installing it")
pkgs <- c("curl", "devtools", "Rcpp11", "reticulate", "remotes", "data.table", "ggplot2", "lubridate", "tidyverse", "DBI", "RODBC", "RJDBC",
"bupaR", "edeaR", "eventdataR", "processmapR", "processmonitR", "xesreadR", "petrinetR", "here")
mirror <- ... | /install-packages.R | permissive | carvalhomb/DSBox | R | false | false | 1,239 | r | print("Checking if a package exists before installing it")
pkgs <- c("curl", "devtools", "Rcpp11", "reticulate", "remotes", "data.table", "ggplot2", "lubridate", "tidyverse", "DBI", "RODBC", "RJDBC",
"bupaR", "edeaR", "eventdataR", "processmapR", "processmonitR", "xesreadR", "petrinetR", "here")
mirror <- ... |
pollutantmean <- function(directory, pollutant, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'pollutant' is a character vector of length 1 indicating
## the name of the pollutant for which we will calculate the
... | /Assignments/Assignment1/pollutantmean.R | no_license | kboulas/RProgramming | R | false | false | 1,270 | r | pollutantmean <- function(directory, pollutant, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'pollutant' is a character vector of length 1 indicating
## the name of the pollutant for which we will calculate the
... |
"fun.plot.many.gld" <-
function(fit.obj,data,xlab="x",ylab="Density",main="",legd="",param.vec){
check.vec<-dimnames(fit.obj)[[2]]
if(length(intersect(check.vec,c("RMFMKL","RPRS")))!=0){
param.vec<-dimnames(fit.obj)[[2]]
param.vec[param.vec=="RPRS"]<-"rs"
param.vec[param.vec!="rs"]<-"fmkl"
no.comp<-ncol(fit.... | /R/fun.plot.many.gld.R | no_license | cran/GLDEX | R | false | false | 1,913 | r | "fun.plot.many.gld" <-
function(fit.obj,data,xlab="x",ylab="Density",main="",legd="",param.vec){
check.vec<-dimnames(fit.obj)[[2]]
if(length(intersect(check.vec,c("RMFMKL","RPRS")))!=0){
param.vec<-dimnames(fit.obj)[[2]]
param.vec[param.vec=="RPRS"]<-"rs"
param.vec[param.vec!="rs"]<-"fmkl"
no.comp<-ncol(fit.... |
library(bvarsv)
### Name: bvarsv-package
### Title: Bayesian Analysis of a Vector Autoregressive Model with
### Stochastic Volatility and Time-Varying Parameters
### Aliases: bvarsv-package bvarsv
### Keywords: package
### ** Examples
## Not run:
##D
##D # Load US macro data
##D data(usmacro)
##D
##D # Estimat... | /data/genthat_extracted_code/bvarsv/examples/bvarsv-package.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 464 | r | library(bvarsv)
### Name: bvarsv-package
### Title: Bayesian Analysis of a Vector Autoregressive Model with
### Stochastic Volatility and Time-Varying Parameters
### Aliases: bvarsv-package bvarsv
### Keywords: package
### ** Examples
## Not run:
##D
##D # Load US macro data
##D data(usmacro)
##D
##D # Estimat... |
### Characterize a given set of exons wrt how many guides they have per gene, of what quality, etc.
library(data.table)
library(ggplot2)
library(gridExtra)
### Get the input for guides vs mm10 and hg19
setwd("/Users/zamparol/projects/crisprML/data")
guide_features_mm10 = data.table(fread("guides/missing_exons_run/raw... | /src/filter_guides_missing_exons.R | permissive | lzamparo/crisprML | R | false | false | 10,406 | r | ### Characterize a given set of exons wrt how many guides they have per gene, of what quality, etc.
library(data.table)
library(ggplot2)
library(gridExtra)
### Get the input for guides vs mm10 and hg19
setwd("/Users/zamparol/projects/crisprML/data")
guide_features_mm10 = data.table(fread("guides/missing_exons_run/raw... |
library(CopulaDTA)
### Name: print.cdtafit
### Title: Print a summary of the fitted model.
### Aliases: print.cdtafit
### ** Examples
data(telomerase)
model1 <- cdtamodel(copula = 'fgm')
model2 <- cdtamodel(copula = 'fgm',
modelargs=list(param=2,
prior.lse='normal',
... | /data/genthat_extracted_code/CopulaDTA/examples/print.cdtafit.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 915 | r | library(CopulaDTA)
### Name: print.cdtafit
### Title: Print a summary of the fitted model.
### Aliases: print.cdtafit
### ** Examples
data(telomerase)
model1 <- cdtamodel(copula = 'fgm')
model2 <- cdtamodel(copula = 'fgm',
modelargs=list(param=2,
prior.lse='normal',
... |
data <- read.csv("Desktop/stats100c/hw9.csv", header = TRUE)
attach(data)
y <- data$Y
x1 <- data$X1
x2 <- data$X2
x3 <- data$X3
x4 <- data$X4
#b 1
#Full regression:
ones <- rep(1, nrow(data))
X <- as.matrix(cbind(ones,x1, x2, x3, x4))
beta_hat <- solve(t(X) %*% X) %*% t(X) %*% y
#Partial regression of y on x1,x2,x3,x... | /stats100c/hw11.R | no_license | Enmin/Coursework | R | false | false | 792 | r | data <- read.csv("Desktop/stats100c/hw9.csv", header = TRUE)
attach(data)
y <- data$Y
x1 <- data$X1
x2 <- data$X2
x3 <- data$X3
x4 <- data$X4
#b 1
#Full regression:
ones <- rep(1, nrow(data))
X <- as.matrix(cbind(ones,x1, x2, x3, x4))
beta_hat <- solve(t(X) %*% X) %*% t(X) %*% y
#Partial regression of y on x1,x2,x3,x... |
###### MONTHLY REQUIREMENT BY STATES ########
setwd("/Users/elliotcohen/Dropbox/data/Electricity/CEA/Rcommands")
library(xlsx)
library(plyr)
library(ggplot2)
library(scales)
## Import data...
## Inter-state energy exchnages for NR states
IEX=read.xlsx(file="/Users/elliotcohen/Dropbox/data/Electricity/CEA/WorkingDoc... | /r/archive/IEX.R | no_license | denistanwh/Energy | R | false | false | 9,032 | r | ###### MONTHLY REQUIREMENT BY STATES ########
setwd("/Users/elliotcohen/Dropbox/data/Electricity/CEA/Rcommands")
library(xlsx)
library(plyr)
library(ggplot2)
library(scales)
## Import data...
## Inter-state energy exchnages for NR states
IEX=read.xlsx(file="/Users/elliotcohen/Dropbox/data/Electricity/CEA/WorkingDoc... |
## Put comments here that give an overall description of what your
## functions do.
## Functions in this file has the feature to create a cacheable matrix class to
##store inverse-matrix in cache storage (environment). CacheSolve function can
##generate inverse matrix if not found in cache and store it before returni... | /cachematrix.R | no_license | srimals/ProgrammingAssignment2 | R | false | false | 2,608 | r | ## Put comments here that give an overall description of what your
## functions do.
## Functions in this file has the feature to create a cacheable matrix class to
##store inverse-matrix in cache storage (environment). CacheSolve function can
##generate inverse matrix if not found in cache and store it before returni... |
# this script is for calculating CN in samples and plotting.
library(tidyverse)
path_to_depth_df <- "/groups/wyattgrp/users/amunzur/mt-ctDNA/WGS/metrics/read_depth/read_depth_realigned_median/mito_filtered_realigned.csv"
path_to_depth_df_mito_mean <- "/groups/wyattgrp/users/amunzur/mt-ctDNA/WGS/metrics/read_depth... | /WGS/scripts/CN_calling/CN_compute.R | no_license | amunzur/mt-ctDNA_analysis | R | false | false | 9,160 | r | # this script is for calculating CN in samples and plotting.
library(tidyverse)
path_to_depth_df <- "/groups/wyattgrp/users/amunzur/mt-ctDNA/WGS/metrics/read_depth/read_depth_realigned_median/mito_filtered_realigned.csv"
path_to_depth_df_mito_mean <- "/groups/wyattgrp/users/amunzur/mt-ctDNA/WGS/metrics/read_depth... |
exonInterestTreatment <-
function (exonInterest, spSite, pE, pI) {
# Function: modify the coordinates of the GRanges according to the padding and the splice site
# OUT: GRanges
# pI will always be used as pI-1 because 3'SS and 5'SS on the intro, excluded of the exon
pI = pI - 1
# Subset of line with strand ==... | /RBPSpliceMap/R/exonInterestTreatment.R | no_license | LaureLC/R_package_RBPSpliceMap | R | false | false | 1,817 | r | exonInterestTreatment <-
function (exonInterest, spSite, pE, pI) {
# Function: modify the coordinates of the GRanges according to the padding and the splice site
# OUT: GRanges
# pI will always be used as pI-1 because 3'SS and 5'SS on the intro, excluded of the exon
pI = pI - 1
# Subset of line with strand ==... |
cat("Thanks to the demo(graphics) that comes with R.\n")
cat("They say that pie charts are inferior to bar charts, because people are better at distinguishing differences in length than in area.")
pie.sales <- c(0.12, 0.3, 0.26, 0.16, 0.04, 0.12)
names(pie.sales) <- c("Blueberry", "Cherry", "Apple", "Boston Cream", "Ot... | /piechart.r | no_license | hubbard/web-r | R | false | false | 565 | r | cat("Thanks to the demo(graphics) that comes with R.\n")
cat("They say that pie charts are inferior to bar charts, because people are better at distinguishing differences in length than in area.")
pie.sales <- c(0.12, 0.3, 0.26, 0.16, 0.04, 0.12)
names(pie.sales) <- c("Blueberry", "Cherry", "Apple", "Boston Cream", "Ot... |
tags$div(
sidebarPanel(
#file input
fileInput("raw","UPLOAD DATA",accept=c('*','*')),
tags$h5("Upload compressed file(gz,zip), also less than 15MB"),
tags$a(href="GSE117988_raw.expMatrix_PBMC.csv.gz" ,download="GSE117988_raw.expMatrix_PBMC.csv.gz",
tags$h5('Sample1:Homo sapiens') ),
tags$a(href="GSM... | /scsweb/tabs/ui/upload.R | no_license | sleepingforest2/SCSweb | R | false | false | 648 | r | tags$div(
sidebarPanel(
#file input
fileInput("raw","UPLOAD DATA",accept=c('*','*')),
tags$h5("Upload compressed file(gz,zip), also less than 15MB"),
tags$a(href="GSE117988_raw.expMatrix_PBMC.csv.gz" ,download="GSE117988_raw.expMatrix_PBMC.csv.gz",
tags$h5('Sample1:Homo sapiens') ),
tags$a(href="GSM... |
\name{maleptsd}
\alias{maleptsd}
\docType{data}
\title{Male PTSD symptoms after childbirth}
\description{
These data come from ongoing research by Susan Ayers and colleagues on
psychological well-being after
childbirth (\url{http://www.birthtraumaassociation.org.uk/index.htm}). These
data were used to i... | /man/maleptsd.Rd | no_license | cran/mrt | R | false | false | 1,222 | rd | \name{maleptsd}
\alias{maleptsd}
\docType{data}
\title{Male PTSD symptoms after childbirth}
\description{
These data come from ongoing research by Susan Ayers and colleagues on
psychological well-being after
childbirth (\url{http://www.birthtraumaassociation.org.uk/index.htm}). These
data were used to i... |
#' Read in an mdb file.
#'
#' A shortened, simplified version of Hmisc::mdb.get
#'
#' Still uses mdbtools internally (so that needs to be installed). On Ubuntu, use sudo apt get install mdbtools.
#'
#' The process is to use mdbtools to convert the mdb table into a csv file, then use readr::read_csv to read the csv fil... | /R/mdb-get.R | no_license | rdisalv2/dismisc | R | false | false | 2,252 | r |
#' Read in an mdb file.
#'
#' A shortened, simplified version of Hmisc::mdb.get
#'
#' Still uses mdbtools internally (so that needs to be installed). On Ubuntu, use sudo apt get install mdbtools.
#'
#' The process is to use mdbtools to convert the mdb table into a csv file, then use readr::read_csv to read the csv fil... |
#' Install and uninstall support for .Renviron.d and .Rprofile.d startup
#' directories
#'
#' Install and uninstall support for \file{.Renviron.d} and \file{.Rprofile.d}
#' startup directories by appending / removing one line of code to the
#' \file{~/.Rprofile} file.
#'
#' @param path The path where to create / update... | /R/install.R | no_license | applied-statistic-using-r/startup | R | false | false | 3,438 | r | #' Install and uninstall support for .Renviron.d and .Rprofile.d startup
#' directories
#'
#' Install and uninstall support for \file{.Renviron.d} and \file{.Rprofile.d}
#' startup directories by appending / removing one line of code to the
#' \file{~/.Rprofile} file.
#'
#' @param path The path where to create / update... |
###############################################################################
# R Lab from Chapter 5 - Resampling Methods
###############################################################################
library(ISLR)
###############################################################################
# 5.3.1 The Validatio... | /islr/ch5.R | no_license | samstearns/experiments | R | false | false | 5,173 | r | ###############################################################################
# R Lab from Chapter 5 - Resampling Methods
###############################################################################
library(ISLR)
###############################################################################
# 5.3.1 The Validatio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{bieri1_83}
\alias{bieri1_83}
\title{Bieri equation 1 of development rate as a function of temperature.}
\format{
A list of eight elements describing the equation.
\describe{
\item{eq}{The equation (formula object... | /man/bieri1_83.Rd | no_license | frareb/devRate | R | false | true | 1,472 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{bieri1_83}
\alias{bieri1_83}
\title{Bieri equation 1 of development rate as a function of temperature.}
\format{
A list of eight elements describing the equation.
\describe{
\item{eq}{The equation (formula object... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/relSim-package.R
\docType{package}
\name{relSim}
\alias{relSim}
\title{Relative Simulator}
\description{
relSim
}
\details{
A set of tools to explore the behaviour statistics used for forensic DNA interpretation when close relatives are invol... | /man/relSim.Rd | no_license | cran/relSim | R | false | true | 438 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/relSim-package.R
\docType{package}
\name{relSim}
\alias{relSim}
\title{Relative Simulator}
\description{
relSim
}
\details{
A set of tools to explore the behaviour statistics used for forensic DNA interpretation when close relatives are invol... |
# Get the library necessary for tidy data
library(reshape2)
# Download and unzip data files
zip.name = "getdata.zip"
zip.url = "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
if (!file.exists(zip.name)){
download.file(zip.url, zip.name, method = "curl")
}
if (!file... | /run_analysis.R | no_license | schen91020/datasciencecoursera | R | false | false | 2,018 | r | # Get the library necessary for tidy data
library(reshape2)
# Download and unzip data files
zip.name = "getdata.zip"
zip.url = "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
if (!file.exists(zip.name)){
download.file(zip.url, zip.name, method = "curl")
}
if (!file... |
context("read_capitals")
# skip tests because they take too much time
skip_if(Sys.getenv("TEST_ONE") != "")
testthat::skip_on_cran()
# Reading the data -----------------------
test_that("read_capitals", {
# check sf output
expect_true(is( read_capitals(), "sf"))
# check df output
expect_true(is( read_capit... | /r-package/tests/testthat/test-read_capitals.R | no_license | ipeaGIT/geobr | R | false | false | 560 | r | context("read_capitals")
# skip tests because they take too much time
skip_if(Sys.getenv("TEST_ONE") != "")
testthat::skip_on_cran()
# Reading the data -----------------------
test_that("read_capitals", {
# check sf output
expect_true(is( read_capitals(), "sf"))
# check df output
expect_true(is( read_capit... |
library(ggplot2)
library(ggsci)
library(mlr)
library(data.table)
library(cpi)
seed <- 100
# Convert 2-level factor to binary
task <- createDummyFeatures(bh.task, method = "reference", cols = "chas")
# Linear model
set.seed(seed)
cpi_lm_log <- cpi(task = task, learner = makeLearner("regr.lm"),
resa... | /4.2_Real_Data/4.2.1_Boston_Housing/boston_housing.R | no_license | dswatson/cpi_paper | R | false | false | 1,780 | r | library(ggplot2)
library(ggsci)
library(mlr)
library(data.table)
library(cpi)
seed <- 100
# Convert 2-level factor to binary
task <- createDummyFeatures(bh.task, method = "reference", cols = "chas")
# Linear model
set.seed(seed)
cpi_lm_log <- cpi(task = task, learner = makeLearner("regr.lm"),
resa... |
#Get dataset
dataFile <- "O:/DATA/Data Science Course/household_power_consumption.txt"
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
#SubSet dataset
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
#Convert the Date and Time variables to Date/Time classes
datetime <... | /plot4.R | no_license | KSullivan09/Exploratory-Data-Analysis-Course-Project-1 | R | false | false | 1,570 | r | #Get dataset
dataFile <- "O:/DATA/Data Science Course/household_power_consumption.txt"
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
#SubSet dataset
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
#Convert the Date and Time variables to Date/Time classes
datetime <... |
#' Stata color palettes (discrete)
#'
#' Stata color palettes. See Stata documentation for a description of
#' the schemes, \url{http://www.stata.com/help.cgi?schemes}.
#'
#' @param scheme \code{character}. One of \code{"s2color"},
#' \code{"s1rcolor"}, \code{"s1color"}, or \code{"mono"}.
#'
#' @export
#' @family stata... | /R/stata.R | no_license | liuxiaodong20090512/ggthemes | R | false | false | 13,906 | r | #' Stata color palettes (discrete)
#'
#' Stata color palettes. See Stata documentation for a description of
#' the schemes, \url{http://www.stata.com/help.cgi?schemes}.
#'
#' @param scheme \code{character}. One of \code{"s2color"},
#' \code{"s1rcolor"}, \code{"s1color"}, or \code{"mono"}.
#'
#' @export
#' @family stata... |
rm(list = ls())
source('BQRboot.R')
set.seed(1)
n <- 200
## sim - m1
x1 <- runif(n, max = 4)
e1 <- rnorm(n)
y1 <- 1 + x1*b1 + e1
X <- cbind(1,x1)
## sim m2
x1 <- runif(n, max = 4)
e1 <- rt(n, df = 3)
y1 <- 1 + x1*b1 + e1
X <- cbind(1,x1)
## m3
rMN3 <- function(n){
posneg <- rbinom(n,1,0.5)
(1-posne... | /R/simulation-cross.R | no_license | liuminzhao/qr-draft | R | false | false | 1,427 | r | rm(list = ls())
source('BQRboot.R')
set.seed(1)
n <- 200
## sim - m1
x1 <- runif(n, max = 4)
e1 <- rnorm(n)
y1 <- 1 + x1*b1 + e1
X <- cbind(1,x1)
## sim m2
x1 <- runif(n, max = 4)
e1 <- rt(n, df = 3)
y1 <- 1 + x1*b1 + e1
X <- cbind(1,x1)
## m3
rMN3 <- function(n){
posneg <- rbinom(n,1,0.5)
(1-posne... |
# NamSor API v2
#
# NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many mo... | /R/batch_personal_name_gendered_out.R | no_license | namsor/namsor-r-sdk2 | R | false | false | 2,791 | r | # NamSor API v2
#
# NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many mo... |
#' Register available parallelization levels in a client package.
#'
#' Call this in your\code{\link{.onLoad}} in your \dQuote{zzz.R}.
#'
#' @param package [\code{character(1)}]\cr
#' Name of your package.
#' @param levels [\code{character(1)}]\cr
#' Availabe levels that are used in the \code{\link{parallelMap}} op... | /R/parallelRegisterLevels.R | no_license | narayana1208/parallelMap | R | false | false | 1,087 | r | #' Register available parallelization levels in a client package.
#'
#' Call this in your\code{\link{.onLoad}} in your \dQuote{zzz.R}.
#'
#' @param package [\code{character(1)}]\cr
#' Name of your package.
#' @param levels [\code{character(1)}]\cr
#' Availabe levels that are used in the \code{\link{parallelMap}} op... |
favstats(~ unrestricted, data = Med.null)
prop(~ (unrestricted >= 12.05), data = Med.null)
| /inst/snippets/Exploration6.2.16c.R | no_license | rpruim/ISIwithR | R | false | false | 92 | r | favstats(~ unrestricted, data = Med.null)
prop(~ (unrestricted >= 12.05), data = Med.null)
|
test_add_to_desc <- function(str, msg = "Adding 'httptest' to Suggests") {
f <- tempfile()
cat(str, file = f)
expect_message(add_httptest_to_desc(f), msg)
setNames(read.dcf(f, keep.white = "Suggests")[, "Suggests"], NULL)
}
test_that("add to desc adds Suggests if not present", {
expect_identical(test_add_to_... | /tests/testthat/test-use-httptest.R | no_license | cran/httptest | R | false | false | 3,319 | r | test_add_to_desc <- function(str, msg = "Adding 'httptest' to Suggests") {
f <- tempfile()
cat(str, file = f)
expect_message(add_httptest_to_desc(f), msg)
setNames(read.dcf(f, keep.white = "Suggests")[, "Suggests"], NULL)
}
test_that("add to desc adds Suggests if not present", {
expect_identical(test_add_to_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/die.R
\name{die}
\alias{die}
\alias{is.die}
\title{die}
\usage{
die(sides = 1:6, prob = rep(1/6, 6))
is.die(x)
}
\arguments{
\item{sides}{vector of die sides}
\item{prob}{vector of side probabilities}
\item{x}{an R object}
}
\value{
an obj... | /dieroll/man/die.Rd | no_license | Carolfu2008/hw05 | R | false | true | 563 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/die.R
\name{die}
\alias{die}
\alias{is.die}
\title{die}
\usage{
die(sides = 1:6, prob = rep(1/6, 6))
is.die(x)
}
\arguments{
\item{sides}{vector of die sides}
\item{prob}{vector of side probabilities}
\item{x}{an R object}
}
\value{
an obj... |
#Pergene ranking comparing with 2:11 genes
source("ranking_FUNCTIONS_TPM.R")
rm(RS, tpm_counts_nomask, tpm_counts) #Remove unnecessary objects
#Load in functions for multiple query of genes
source("mulq_genes_FUNCTIONS.R")
#How many want to flip by:
s <- seq(1, ncol(pergene$reclassified), 20)
library(foreach)
libra... | /Multiple query/pergene_2to11_close.R | no_license | oknox/Research-project | R | false | false | 2,316 | r | #Pergene ranking comparing with 2:11 genes
source("ranking_FUNCTIONS_TPM.R")
rm(RS, tpm_counts_nomask, tpm_counts) #Remove unnecessary objects
#Load in functions for multiple query of genes
source("mulq_genes_FUNCTIONS.R")
#How many want to flip by:
s <- seq(1, ncol(pergene$reclassified), 20)
library(foreach)
libra... |
# Intro to R workshop
# Spring 2019
# Jennifer Huck
# UVA Library
# This R Script will introduce you to scripts, installing and loading pacakages,
# using tidyverse, keeping R up to date, viewing and changing your working
# directory, importing data, evaulating data, and graphing Albemarle County real
# estate data. ... | /R/Intro_to_R_spring_2019.R | no_license | uvastatlab/phdplus2020 | R | false | false | 14,768 | r | # Intro to R workshop
# Spring 2019
# Jennifer Huck
# UVA Library
# This R Script will introduce you to scripts, installing and loading pacakages,
# using tidyverse, keeping R up to date, viewing and changing your working
# directory, importing data, evaulating data, and graphing Albemarle County real
# estate data. ... |
library(testthat)
#
# if(!require(BigStuff, lib.loc = "C:/Users/fritsch.STATUP/Documents/R/win-library/3.2"))
# install.packages("BigStuff",
# repos="file:Z:/Rpackages",
# lib = "C:/Users/fritsch.STATUP/Documents/R/win-library/3.2")
library(BigStuff)
test_check("BigStuff")
| /tests/testthat.R | no_license | stefanfritsch/BigStuff | R | false | false | 316 | r | library(testthat)
#
# if(!require(BigStuff, lib.loc = "C:/Users/fritsch.STATUP/Documents/R/win-library/3.2"))
# install.packages("BigStuff",
# repos="file:Z:/Rpackages",
# lib = "C:/Users/fritsch.STATUP/Documents/R/win-library/3.2")
library(BigStuff)
test_check("BigStuff")
|
create.modMatrix <- function(RAM, output=c("A", "S"), mod) {
output <- match.arg(output)
switch(output,
A = { out <- RAM$A
out[grep("\\*", out)] <- paste0("0*data.", mod)},
S = { out <- RAM$S
out[grep("\\*", out)] <- paste0("0*data.", mod)
Diag(out) <- "0"})
out
}
| /R/create.modMatrix.R | no_license | mikewlcheung/metasem | R | false | false | 320 | r | create.modMatrix <- function(RAM, output=c("A", "S"), mod) {
output <- match.arg(output)
switch(output,
A = { out <- RAM$A
out[grep("\\*", out)] <- paste0("0*data.", mod)},
S = { out <- RAM$S
out[grep("\\*", out)] <- paste0("0*data.", mod)
Diag(out) <- "0"})
out
}
|
dataFile <- "household_power_consumption.txt"
housePower <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
housePowerSubset <- housePower[housePower$Date %in% c("1/2/2007","2/2/2007") ,]
myDate <- as.Date(housePowerSubset$Date,"%d/%m/%Y")
myDateTime <- as.POSIXlt(x = paste(myDate," ",... | /plot3.R | no_license | engmti85/ExData_Plotting1 | R | false | false | 839 | r | dataFile <- "household_power_consumption.txt"
housePower <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
housePowerSubset <- housePower[housePower$Date %in% c("1/2/2007","2/2/2007") ,]
myDate <- as.Date(housePowerSubset$Date,"%d/%m/%Y")
myDateTime <- as.POSIXlt(x = paste(myDate," ",... |
\name{timeModels}
\alias{timeModels}
\title{models for estimating prediction time in intamap package}
\description{
This is a standard model for estimating the prediction time within the
\code{\link{intamap-package}}. It was created by the function
\code{\link{generateTimeModels}}, on a 64 bits Linux server running
\... | /intamap/man/timeModels.Rd | no_license | jskoien/jskoien | R | false | false | 1,309 | rd | \name{timeModels}
\alias{timeModels}
\title{models for estimating prediction time in intamap package}
\description{
This is a standard model for estimating the prediction time within the
\code{\link{intamap-package}}. It was created by the function
\code{\link{generateTimeModels}}, on a 64 bits Linux server running
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comparing-models.R
\name{plotAVEs}
\alias{plotAVEs}
\title{Distribution of inner AVE}
\usage{
plotAVEs(model, loo)
}
\arguments{
\item{model}{Original sgcca object}
\item{loo}{A list with using the same model but using a leave-one-out
strate... | /man/plotAVEs.Rd | permissive | llrs/integration-helper | R | false | true | 458 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comparing-models.R
\name{plotAVEs}
\alias{plotAVEs}
\title{Distribution of inner AVE}
\usage{
plotAVEs(model, loo)
}
\arguments{
\item{model}{Original sgcca object}
\item{loo}{A list with using the same model but using a leave-one-out
strate... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/t21.R
\name{doe}
\alias{doe}
\title{Compute the DoE (Degrees of Extremeness) of an observation}
\usage{
doe(y, y_pred, ref_lower, ref_upper)
}
\arguments{
\item{y}{The observed value}
\item{y_pred}{This is the model based expected value}
\i... | /man/doe.Rd | no_license | ldmtam/trisomy21risk | R | false | true | 1,005 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/t21.R
\name{doe}
\alias{doe}
\title{Compute the DoE (Degrees of Extremeness) of an observation}
\usage{
doe(y, y_pred, ref_lower, ref_upper)
}
\arguments{
\item{y}{The observed value}
\item{y_pred}{This is the model based expected value}
\i... |
text1 <- paste0("<p><strong>Diagnose:</strong> atopische Dermatitis</p>",
ifelse(input$asthma=="ja",
"<p>allergisches Asthma</p>",""),
"<p><strong>Zusammenfassende Beurteilung:</strong></p>",
ifelse(input$bekannt=="ja",
"<p>Di... | /templates/AD_Dupi_reduktion.R | no_license | wolass/derminator | R | false | false | 1,989 | r | text1 <- paste0("<p><strong>Diagnose:</strong> atopische Dermatitis</p>",
ifelse(input$asthma=="ja",
"<p>allergisches Asthma</p>",""),
"<p><strong>Zusammenfassende Beurteilung:</strong></p>",
ifelse(input$bekannt=="ja",
"<p>Di... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eQTpLot.R
\name{eQTpLot}
\alias{eQTpLot}
\title{An eQTpLot function}
\usage{
eQTpLot(
GWAS.df,
eQTL.df,
Genes.df,
LD.df = TRUE,
gene,
trait,
sigpvalue_GWAS = 5e-08,
sigpvalue_eQTL = 0.05,
tissue = "all",
range = 200,
NES... | /man/eQTpLot.Rd | no_license | jtnedoctor/eQTpLot | R | false | true | 9,763 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eQTpLot.R
\name{eQTpLot}
\alias{eQTpLot}
\title{An eQTpLot function}
\usage{
eQTpLot(
GWAS.df,
eQTL.df,
Genes.df,
LD.df = TRUE,
gene,
trait,
sigpvalue_GWAS = 5e-08,
sigpvalue_eQTL = 0.05,
tissue = "all",
range = 200,
NES... |
library("data.table")
raw_data_path = "~/Desktop/STAT380/ML_model/project/volume/data/raw/"
interim_data_path ="~/Desktop/STAT380/ML_model/project/volume/data/interim/"
DT_train = fread(file.path(raw_data_path,"Stat_380_train.csv"))
DT_test = fread(file.path(raw_data_path,"Stat_380_test.csv"))
set.seed(460)
train = DT_... | /ML_model/project/src/features/build_features.r | no_license | zhixuanyang/STAT380 | R | false | false | 919 | r | library("data.table")
raw_data_path = "~/Desktop/STAT380/ML_model/project/volume/data/raw/"
interim_data_path ="~/Desktop/STAT380/ML_model/project/volume/data/interim/"
DT_train = fread(file.path(raw_data_path,"Stat_380_train.csv"))
DT_test = fread(file.path(raw_data_path,"Stat_380_test.csv"))
set.seed(460)
train = DT_... |
# Disable sass cache
local_disable_cache()
test_that("writing to file works", {
file_name <- tempfile(fileext = ".css")
sass(
sass_file("test-nesting-input.scss"),
output = file_name
)
on.exit(unlink(file_name))
output <- paste0(readLines(file_name), collapse = "\n")
expected <- paste0(readLines("t... | /tests/testthat/test-output.R | permissive | rstudio/sass | R | false | false | 606 | r | # Disable sass cache
local_disable_cache()
test_that("writing to file works", {
file_name <- tempfile(fileext = ".css")
sass(
sass_file("test-nesting-input.scss"),
output = file_name
)
on.exit(unlink(file_name))
output <- paste0(readLines(file_name), collapse = "\n")
expected <- paste0(readLines("t... |
options(stringsAsFactors = FALSE)
options(digits = 20)
#libs = c('tidyr','hash','SDMTools','dplyr')
len = length
uni = unique
sorted = sort
cd = setwd
endsWith = function(x, suffix) {
if (!is.character(x) || !is.character(suffix))
stop("non-character object(s)")
n = nchar(x)
suppressWarnings(substr(x, n - ... | /imports.R | no_license | brandonlind/r_imports | R | false | false | 2,697 | r | options(stringsAsFactors = FALSE)
options(digits = 20)
#libs = c('tidyr','hash','SDMTools','dplyr')
len = length
uni = unique
sorted = sort
cd = setwd
endsWith = function(x, suffix) {
if (!is.character(x) || !is.character(suffix))
stop("non-character object(s)")
n = nchar(x)
suppressWarnings(substr(x, n - ... |
#!/home/statsadmin/R/bin/Rscript
source('Step_0_init.R')
args <- commandArgs()
idx <- as.numeric(args[length(args)])
.libPaths('ysidi/lib')
################################
### BEST CASE SCENARIO ####
################################
dt.miss <- readRDS(file = sprintf('dtwaldxp80mar605_%d.rds',idx))
best.anal ... | /Step3_3_best_miss/wald/step_3_3_type_waldxp80_missing_mar6_percent_05.R | no_license | yuliasidi/Binomial_PE_Progs | R | false | false | 478 | r | #!/home/statsadmin/R/bin/Rscript
source('Step_0_init.R')
args <- commandArgs()
idx <- as.numeric(args[length(args)])
.libPaths('ysidi/lib')
################################
### BEST CASE SCENARIO ####
################################
dt.miss <- readRDS(file = sprintf('dtwaldxp80mar605_%d.rds',idx))
best.anal ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/libelle.R
\name{lib_mention_bac}
\alias{lib_mention_bac}
\title{Renvoie le libelle a partir du code de mention au Bac}
\usage{
lib_mention_bac(code_mention_bac)
}
\arguments{
\item{code_mention_bac}{Un vecteur de code de mention au Bac.}
}
\v... | /man/lib_mention_bac.Rd | permissive | ove-ut3/apogee | R | false | true | 617 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/libelle.R
\name{lib_mention_bac}
\alias{lib_mention_bac}
\title{Renvoie le libelle a partir du code de mention au Bac}
\usage{
lib_mention_bac(code_mention_bac)
}
\arguments{
\item{code_mention_bac}{Un vecteur de code de mention au Bac.}
}
\v... |
#' @title Import list of data frames
#' @description Use \code{\link{import}} to import a list of data frames from a vector of file names or from a multi-object file (Excel workbook, .Rdata file, zip directory, or HTML file)
#' @param file A character string containing a single file name for a multi-object file (e.g., ... | /R/import_list.R | no_license | simplefood/rio | R | false | false | 6,092 | r | #' @title Import list of data frames
#' @description Use \code{\link{import}} to import a list of data frames from a vector of file names or from a multi-object file (Excel workbook, .Rdata file, zip directory, or HTML file)
#' @param file A character string containing a single file name for a multi-object file (e.g., ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/addins.R
\name{styler_addins}
\alias{styler_addins}
\title{Stylers for RStudio Addins}
\description{
Helper functions for styling via RStudio Addins.
}
\section{Addins}{
\itemize{
\item Set style: Select the style transformers to use. For fl... | /man/styler_addins.Rd | permissive | lorenzwalthert/styler | R | false | true | 2,523 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/addins.R
\name{styler_addins}
\alias{styler_addins}
\title{Stylers for RStudio Addins}
\description{
Helper functions for styling via RStudio Addins.
}
\section{Addins}{
\itemize{
\item Set style: Select the style transformers to use. For fl... |
#' @title Pools Estimates by Rubin's Rules
#'
#' @rdname pool
#'
#' @aliases pool
#'
#' @param object An object of the \code{mimira} class (produced by a previous call to \code{with()}).
#' @param dfcom A positive number representing the degrees of freedom in the data analysis. The default is \code{NULL}, which means t... | /R/pool.R | no_license | FarhadPishgar/MatchThem | R | false | false | 5,263 | r | #' @title Pools Estimates by Rubin's Rules
#'
#' @rdname pool
#'
#' @aliases pool
#'
#' @param object An object of the \code{mimira} class (produced by a previous call to \code{with()}).
#' @param dfcom A positive number representing the degrees of freedom in the data analysis. The default is \code{NULL}, which means t... |
library(dplyr)
### Loading Training dataset ###
train <- read.csv("train.csv", stringsAsFactors = FALSE)
dim(train)
str(train)
summary(train)
### Loading Test Dataset ###
test <- read.csv("test.csv", stringsAsFactors = FALSE) ... | /proposalAnalysis.R | no_license | KartSINGH/ProposalPrediction | R | false | false | 16,568 | r | library(dplyr)
### Loading Training dataset ###
train <- read.csv("train.csv", stringsAsFactors = FALSE)
dim(train)
str(train)
summary(train)
### Loading Test Dataset ###
test <- read.csv("test.csv", stringsAsFactors = FALSE) ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/netfacs_extract.R
\name{netfacs.extract}
\alias{netfacs.extract}
\title{Extract results of 'netfacs' function for specific combination sizes
For the selected combination size, the function returns all combinations that had significantly highe... | /man/netfacs.extract.Rd | permissive | gobbios/NetFACS | R | false | true | 2,058 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/netfacs_extract.R
\name{netfacs.extract}
\alias{netfacs.extract}
\title{Extract results of 'netfacs' function for specific combination sizes
For the selected combination size, the function returns all combinations that had significantly highe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sheets_objects.R
\name{BasicFilter}
\alias{BasicFilter}
\title{BasicFilter Object}
\usage{
BasicFilter(BasicFilter.criteria = NULL, criteria = NULL, range = NULL,
sortSpecs = NULL)
}
\arguments{
\item{BasicFilter.criteria}{The \link{BasicFi... | /googlesheetsv4.auto/man/BasicFilter.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 785 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sheets_objects.R
\name{BasicFilter}
\alias{BasicFilter}
\title{BasicFilter Object}
\usage{
BasicFilter(BasicFilter.criteria = NULL, criteria = NULL, range = NULL,
sortSpecs = NULL)
}
\arguments{
\item{BasicFilter.criteria}{The \link{BasicFi... |
to_decimal_degrees <- function(degs, mins, secs, sgn) {
# nolint start
sgn * ((((secs / 60) + mins) / 60) + degs)
# nolint end
}
#' Convert Degree Minute Seconds (DMS) format to Decimal Degrees (DD)
#'
#' @param value a string representation of an angle (i.e. longitude) in
#' Degree Minute Second (... | /R/utils-conversions.R | no_license | euctrl-pru/trrrj | R | false | false | 5,693 | r | to_decimal_degrees <- function(degs, mins, secs, sgn) {
# nolint start
sgn * ((((secs / 60) + mins) / 60) + degs)
# nolint end
}
#' Convert Degree Minute Seconds (DMS) format to Decimal Degrees (DD)
#'
#' @param value a string representation of an angle (i.e. longitude) in
#' Degree Minute Second (... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fsets.R
\name{plot.fsets}
\alias{plot.fsets}
\title{Plot membership degrees stored in the instance of the S3 class
\code{\link[=fsets]{fsets()}} as a line diagram.}
\usage{
\method{plot}{fsets}(x, ...)
}
\arguments{
\item{x}{An instance of cl... | /man/plot.fsets.Rd | no_license | beerda/lfl | R | false | true | 1,464 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fsets.R
\name{plot.fsets}
\alias{plot.fsets}
\title{Plot membership degrees stored in the instance of the S3 class
\code{\link[=fsets]{fsets()}} as a line diagram.}
\usage{
\method{plot}{fsets}(x, ...)
}
\arguments{
\item{x}{An instance of cl... |
# GCDProject
### 1- Merges the training and the test sets to create one data set
# Change working directory
setwd('~/Documents/GetingandCleaningDataProject/UCI HAR Dataset/')
# Create All directory and subdirectory
dir.create(paste0(getwd(), '/', 'all'))
dir.create(paste0(getwd(), '/', 'all/Inertial Signals'))
# L... | /run_analysis.R | no_license | MoHelmy/Coursera-GCD_project | R | false | false | 3,136 | r | # GCDProject
### 1- Merges the training and the test sets to create one data set
# Change working directory
setwd('~/Documents/GetingandCleaningDataProject/UCI HAR Dataset/')
# Create All directory and subdirectory
dir.create(paste0(getwd(), '/', 'all'))
dir.create(paste0(getwd(), '/', 'all/Inertial Signals'))
# L... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aaa_generics.R, R/SaemixObject.R
\docType{methods}
\name{psi-methods}
\alias{psi-methods}
\alias{phi-methods}
\alias{eta-methods}
\alias{phi,SaemixObject-method}
\alias{eta,SaemixObject-method}
\alias{psi,SaemixObject-method}
\alias{psi}
\ali... | /man/psi-methods.Rd | no_license | wendylin23/saemix | R | false | true | 4,223 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aaa_generics.R, R/SaemixObject.R
\docType{methods}
\name{psi-methods}
\alias{psi-methods}
\alias{phi-methods}
\alias{eta-methods}
\alias{phi,SaemixObject-method}
\alias{eta,SaemixObject-method}
\alias{psi,SaemixObject-method}
\alias{psi}
\ali... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{sncp_bdmcmc_cont_no_noise}
\alias{sncp_bdmcmc_cont_no_noise}
\title{Bayesian SNCP fit using BD-MCMC}
\usage{
sncp_bdmcmc_cont_no_noise(
obs_points,
mean_mu_alpha,
sd_log_alpha,
sd_prop_alpha,
n_it,
window_hw,
... | /man/sncp_bdmcmc_cont_no_noise.Rd | no_license | stop-pre16/sncp | R | false | true | 2,775 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{sncp_bdmcmc_cont_no_noise}
\alias{sncp_bdmcmc_cont_no_noise}
\title{Bayesian SNCP fit using BD-MCMC}
\usage{
sncp_bdmcmc_cont_no_noise(
obs_points,
mean_mu_alpha,
sd_log_alpha,
sd_prop_alpha,
n_it,
window_hw,
... |
#Postwork4
library(dplyr)
library(ggplot2)
library(readr)
library(boot)
soccer<-as.data.frame(read.csv("/Users/manuelgarcia/Desktop/Datascience/SP1720.csv",sep=","))
soccer<-select(soccer,Date,HomeTeam,AwayTeam,FTHG,FTAG,FTR)
df.soccer<-as.data.frame(soccer)
df.home<-select(df.soccer,FTHG)
df.visit<-select(df.soccer,F... | /Modulo 2/Sesión 4/Postwork/Postwork4.R | no_license | Morales1408/BEDU---Ciencia-de-datos | R | false | false | 1,170 | r | #Postwork4
library(dplyr)
library(ggplot2)
library(readr)
library(boot)
soccer<-as.data.frame(read.csv("/Users/manuelgarcia/Desktop/Datascience/SP1720.csv",sep=","))
soccer<-select(soccer,Date,HomeTeam,AwayTeam,FTHG,FTAG,FTR)
df.soccer<-as.data.frame(soccer)
df.home<-select(df.soccer,FTHG)
df.visit<-select(df.soccer,F... |
## ==============================================================================
## Read data: Stock indices
## ==============================================================================
#' Read Stock Index data from
#' http://www.economicswebinstitute.org/ecdata.htm
#' http://www.economicswebinstitute.org/data/s... | /experiments/read_data.R | permissive | bwrc/semigeom-r | R | false | false | 13,450 | r | ## ==============================================================================
## Read data: Stock indices
## ==============================================================================
#' Read Stock Index data from
#' http://www.economicswebinstitute.org/ecdata.htm
#' http://www.economicswebinstitute.org/data/s... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
clfft_test <- function(ptrA_) {
invisible(.Call('gpuRclfft_clfft_test', PACKAGE = 'gpuRclfft', ptrA_))
}
| /R/RcppExports.R | no_license | gpuRcore/gpuRclfft | R | false | false | 237 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
clfft_test <- function(ptrA_) {
invisible(.Call('gpuRclfft_clfft_test', PACKAGE = 'gpuRclfft', ptrA_))
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.