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 |
|---|---|---|---|---|---|---|---|---|---|
#' @describeIn imExposomeSet Method to obtain samples' names
setMethod(
f = "exposureNames",
signature = "imExposomeSet",
definition = function(object) {
colnames(extract(object, rid = 1))
}
)
| /R/imExposomeSet-exposureNames.R | permissive | isglobal-brge/rexposome | R | false | false | 225 | r | #' @describeIn imExposomeSet Method to obtain samples' names
setMethod(
f = "exposureNames",
signature = "imExposomeSet",
definition = function(object) {
colnames(extract(object, rid = 1))
}
)
|
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12828509437981e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615768649-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12828509437981e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
# Read the csv file.
data <- read.csv(file = "input.csv")
# Display contents.
data
# Write data to file.
write.csv(data, "output.csv") | /DM/R/1/1.r | no_license | Aakifha01/7thSemIse | R | false | false | 136 | r | # Read the csv file.
data <- read.csv(file = "input.csv")
# Display contents.
data
# Write data to file.
write.csv(data, "output.csv") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/segmenTools.R
\name{lg2r}
\alias{lg2r}
\title{log2 ratio normalization}
\usage{
lg2r(x, na.rm = TRUE)
}
\arguments{
\item{x}{data to be transformed}
\item{na.rm}{remove NA values for mean calculation}
}
\value{
log2(x/apply(x,1,mean))
}
\des... | /man/lg2r.Rd | no_license | raim/segmenTools | R | false | true | 357 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/segmenTools.R
\name{lg2r}
\alias{lg2r}
\title{log2 ratio normalization}
\usage{
lg2r(x, na.rm = TRUE)
}
\arguments{
\item{x}{data to be transformed}
\item{na.rm}{remove NA values for mean calculation}
}
\value{
log2(x/apply(x,1,mean))
}
\des... |
#' @title ROC statistics
#' @author Jacques van Helden (\email{Jacques.van-Helden@@univ-amu.fr})
#' @description Compute the statistics required to draw a ROC curve,
#' + some additional validation statistics
#' @details
#' First version: 2015-04
#' Last modification: 2015-04
#' @param neg.scores vector of scores obta... | /R/ROCstatistics.R | no_license | jvanheld/stats4bioinfo | R | false | false | 3,602 | r | #' @title ROC statistics
#' @author Jacques van Helden (\email{Jacques.van-Helden@@univ-amu.fr})
#' @description Compute the statistics required to draw a ROC curve,
#' + some additional validation statistics
#' @details
#' First version: 2015-04
#' Last modification: 2015-04
#' @param neg.scores vector of scores obta... |
Rclusterpp.setThreads <- function(threads=1) {
threads <- ifelse(is.null(threads), .Call("rclusterpp_get_num_procs", PACKAGE="Rclusterpp"), threads)
invisible(.Call("rclusterpp_set_num_threads", threads=as.integer(threads), NAOK=FALSE, PACKAGE="Rclusterpp"))
}
Rclusterpp.linkageKinds <- function() {
.Call("linkag... | /Current-stuff/R/Rclusterpp/R/Rclusterpp.hclust.R | permissive | tonyc2700/phd | R | false | false | 2,179 | r | Rclusterpp.setThreads <- function(threads=1) {
threads <- ifelse(is.null(threads), .Call("rclusterpp_get_num_procs", PACKAGE="Rclusterpp"), threads)
invisible(.Call("rclusterpp_set_num_threads", threads=as.integer(threads), NAOK=FALSE, PACKAGE="Rclusterpp"))
}
Rclusterpp.linkageKinds <- function() {
.Call("linkag... |
#' Developing descriptive graphs on youtube videos
#'
#' for the given video id a graph on likes, dislikes, comments, shares and views on
#' youtube and facebook
#'
#' @param vid a character scalar that contains the vedio id
#' @return a json value
#' @export
#' @import RMySQL
#' @import rjson
getgraph<-function(vid)... | /R/hello.R | no_license | sum344/videoGraph | R | false | false | 605 | r | #' Developing descriptive graphs on youtube videos
#'
#' for the given video id a graph on likes, dislikes, comments, shares and views on
#' youtube and facebook
#'
#' @param vid a character scalar that contains the vedio id
#' @return a json value
#' @export
#' @import RMySQL
#' @import rjson
getgraph<-function(vid)... |
###########################################
## Scaling Factor helper functions
##
###########################################
get_alpha_parms <- function(tx_data, curr_date, reporting_rate){
tx_data <- tx_data %>% filter( notification_date <= curr_date) %>%
group_by(county, month) %>%
summarize(imports = n(... | /R/scaling_analysis_fxns.R | no_license | sjfox/zikaEstimatoR | R | false | false | 4,334 | r | ###########################################
## Scaling Factor helper functions
##
###########################################
get_alpha_parms <- function(tx_data, curr_date, reporting_rate){
tx_data <- tx_data %>% filter( notification_date <= curr_date) %>%
group_by(county, month) %>%
summarize(imports = n(... |
#' Integrating a function
#'
#' Finds sum of trapezoids or area under parabolas under a curve.
#'
#' @param x A numeric object
#' @param y A numeric object with the same dimensionality as \code{x}.
#' @param rule A character string equal to either "Trap" or "Simpson"
#'
#' @return An object of class Squares containing
... | /integrateIt/R/integrateIt.R | no_license | tylerwbrandt/PS5 | R | false | false | 3,038 | r | #' Integrating a function
#'
#' Finds sum of trapezoids or area under parabolas under a curve.
#'
#' @param x A numeric object
#' @param y A numeric object with the same dimensionality as \code{x}.
#' @param rule A character string equal to either "Trap" or "Simpson"
#'
#' @return An object of class Squares containing
... |
#
# vim:set ff=unix expandtab ts=2 sw=2:
RespirationCoefficients=function #helper function to compute respiration coefficients
###This function computes the respiration coefficients as function of time for all pools
### according to the given matrix A
(A ##<< A matrix valued function representing the model.
){
nr=n... | /pkg/R/3_RespirationCoefficients.R | no_license | Dong-po/SoilR-exp | R | false | false | 665 | r | #
# vim:set ff=unix expandtab ts=2 sw=2:
RespirationCoefficients=function #helper function to compute respiration coefficients
###This function computes the respiration coefficients as function of time for all pools
### according to the given matrix A
(A ##<< A matrix valued function representing the model.
){
nr=n... |
#Correct 1st column-------------------------------------------------------------------------------------------------
library (raster)
path<- "/data/project/organisms/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/ByDate"
#Get h09v04 tiles:
h09v04_infiles <- list.files(path=path, pattern="*.h09v04.005.Cl... | /climate/research/oregon/modis-lst/h09v04Tiles_BadPixelCorrection.r | no_license | nemochina2008/environmental-layers | R | false | false | 1,817 | r | #Correct 1st column-------------------------------------------------------------------------------------------------
library (raster)
path<- "/data/project/organisms/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/ByDate"
#Get h09v04 tiles:
h09v04_infiles <- list.files(path=path, pattern="*.h09v04.005.Cl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Barplot.R
\name{Barplot}
\alias{Barplot}
\title{Titer bar plots.}
\usage{
Barplot(
dat_list,
subjectCol = "SubjectID",
cols = 1,
groupVar = NULL,
colors = c("#A6CEE3", "#1F78B4", "#B2DF8A", "#33A02C", "#FB9A99", "#E31A1C",
"#FDB... | /man/Barplot.Rd | no_license | stefanavey/titer | R | false | true | 1,388 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Barplot.R
\name{Barplot}
\alias{Barplot}
\title{Titer bar plots.}
\usage{
Barplot(
dat_list,
subjectCol = "SubjectID",
cols = 1,
groupVar = NULL,
colors = c("#A6CEE3", "#1F78B4", "#B2DF8A", "#33A02C", "#FB9A99", "#E31A1C",
"#FDB... |
## clear old varialbes
rm(list = ls())
source("bruteforce_exp_ESSVM.R")
library("R.matlab")
## Author: Lili Sun
## last updated: 2016-1-27
## Add checkpoints
## Add adaptive result dir
data = read.table("../data/TF99.txt")
alpha = seq(from = 0.1, to = 0.9, by = 0.1)
leak = seq(from = 0.1, to = 0.9, by = 0.1)
ac = matr... | /code/run_bf_ESSVM_TF99.R | no_license | dylansun/ES2VM | R | false | false | 2,040 | r | ## clear old varialbes
rm(list = ls())
source("bruteforce_exp_ESSVM.R")
library("R.matlab")
## Author: Lili Sun
## last updated: 2016-1-27
## Add checkpoints
## Add adaptive result dir
data = read.table("../data/TF99.txt")
alpha = seq(from = 0.1, to = 0.9, by = 0.1)
leak = seq(from = 0.1, to = 0.9, by = 0.1)
ac = matr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get.R
\name{get_dist}
\alias{get_dist}
\title{Get a Literature Distribution}
\usage{
get_dist(data, disease, source, max_value = 15)
}
\arguments{
\item{data}{A \code{data.table} in the format of \code{generation_times}.}
\item{disease}{A ch... | /man/get_dist.Rd | permissive | medewitt/EpiNow2 | R | false | true | 1,010 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get.R
\name{get_dist}
\alias{get_dist}
\title{Get a Literature Distribution}
\usage{
get_dist(data, disease, source, max_value = 15)
}
\arguments{
\item{data}{A \code{data.table} in the format of \code{generation_times}.}
\item{disease}{A ch... |
apply(combn(unique(df$.id), 2), 2, function(v){
df1 = df[df$.id == v[1],]
df2 = df[df$.id == v[2],]
Reduce('c', llply(results, function(d) laply(d$hp, function(dd) ClassProp(dd$hp_clust, dd$g)) ))
})
library(MixSim)
library(reshape)
library(plyr)
library(dplyr)
library(ggplot2)
v = combn(unique(df$.id), 2)[,1]
o... | /combining_mixtures/R/comparing_methods_plots.R | no_license | mcomas/mixtures | R | false | false | 1,470 | r | apply(combn(unique(df$.id), 2), 2, function(v){
df1 = df[df$.id == v[1],]
df2 = df[df$.id == v[2],]
Reduce('c', llply(results, function(d) laply(d$hp, function(dd) ClassProp(dd$hp_clust, dd$g)) ))
})
library(MixSim)
library(reshape)
library(plyr)
library(dplyr)
library(ggplot2)
v = combn(unique(df$.id), 2)[,1]
o... |
/run_analysis.R | no_license | pgarcia2014/Getting_and_Cleaning_Data | R | false | false | 5,004 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transform.R
\name{transform_price}
\alias{transform_price}
\title{Transform to price distribution from tick data / order book data}
\usage{
transform_price(dt, vol_acc)
}
\arguments{
\item{dt}{tick data or order book data}
\item{vol_acc}{whe... | /man/transform_price.Rd | permissive | hotfull/tswbench | R | false | true | 632 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transform.R
\name{transform_price}
\alias{transform_price}
\title{Transform to price distribution from tick data / order book data}
\usage{
transform_price(dt, vol_acc)
}
\arguments{
\item{dt}{tick data or order book data}
\item{vol_acc}{whe... |
#-------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under... | /src/test/scripts/functions/aggregate/SumSq.R | permissive | apache/systemds | R | false | false | 1,127 | r | #-------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under... |
write.csv(titanic3, "titanic_original.csv")
titanic_original
titanic_original$embarked %>% replace_na("S") -> testdf
view(testdf)
df <- titanic_original
df$age[is.na(df$age)] <- mean(df$age, na.rm=TRUE)
df$boat <- replace_na("None")
df <- df %>% mutate(has_cabin_number = if_else(cabin=="",0,1,))
... | /titaniccode.R | no_license | Micah-Airy/Springboard-projects | R | false | false | 452 | r | write.csv(titanic3, "titanic_original.csv")
titanic_original
titanic_original$embarked %>% replace_na("S") -> testdf
view(testdf)
df <- titanic_original
df$age[is.na(df$age)] <- mean(df$age, na.rm=TRUE)
df$boat <- replace_na("None")
df <- df %>% mutate(has_cabin_number = if_else(cabin=="",0,1,))
... |
testlist <- list(x = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.0251917053116e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist)
str(result) | /multivariance/inst/testfiles/doubleCenterBiasCorrected/AFL_doubleCenterBiasCorrected/doubleCenterBiasCorrected_valgrind_files/1613139983-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 320 | r | testlist <- list(x = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.0251917053116e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist)
str(result) |
print.altf2 <- function(x, ...)
{
cat("Forecast quality measures: ")
cat("\n")
print(x$summary,quote=FALSE)
cat("\n")
}
| /fuzzedpackages/fDMA/R/print.altf2.R | no_license | akhikolla/testpackages | R | false | false | 145 | r |
print.altf2 <- function(x, ...)
{
cat("Forecast quality measures: ")
cat("\n")
print(x$summary,quote=FALSE)
cat("\n")
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/function-plot.R
\name{funplot}
\alias{funplot}
\title{Initialise}
\usage{
funplot(width = NULL, height = NULL, elementId = NULL)
}
\arguments{
\item{width, height}{Must be a valid CSS unit (like \code{'100\%'},
\code{'400px'}, \code{'auto'}) ... | /man/funplot.Rd | no_license | JohnCoene/funplot | R | false | true | 536 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/function-plot.R
\name{funplot}
\alias{funplot}
\title{Initialise}
\usage{
funplot(width = NULL, height = NULL, elementId = NULL)
}
\arguments{
\item{width, height}{Must be a valid CSS unit (like \code{'100\%'},
\code{'400px'}, \code{'auto'}) ... |
#' Visualise type guess in a data.frame
#'
#' `vis_guess` visualises the class of every single individual cell in a
#' dataframe and displays it as ggplot object, similar to `vis_dat`. Cells
#' are coloured according to what class they are and whether the values are
#' missing. `vis_guess` estimates the class of ... | /R/vis-guess.R | no_license | praveennvr/visdat | R | false | false | 3,682 | r | #' Visualise type guess in a data.frame
#'
#' `vis_guess` visualises the class of every single individual cell in a
#' dataframe and displays it as ggplot object, similar to `vis_dat`. Cells
#' are coloured according to what class they are and whether the values are
#' missing. `vis_guess` estimates the class of ... |
\name{ragsAreaInter}
\alias{ragsAreaInter}
\title{
Alternating Gibbs Sampler for Area-Interaction Process
}
\description{
Generate a realisation of the area-interaction process
using the alternating Gibbs sampler.
Applies only when the interaction parameter \eqn{eta} is greater than 1.
}
\usage{
ragsAreaInter... | /man/ragsAreaInter.Rd | no_license | rubak/spatstat | R | false | false | 2,986 | rd | \name{ragsAreaInter}
\alias{ragsAreaInter}
\title{
Alternating Gibbs Sampler for Area-Interaction Process
}
\description{
Generate a realisation of the area-interaction process
using the alternating Gibbs sampler.
Applies only when the interaction parameter \eqn{eta} is greater than 1.
}
\usage{
ragsAreaInter... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/city_hist.R
\name{city_hist}
\alias{city_hist}
\title{City Histogram length of segments module}
\usage{
city_hist(input, output, session, which_id = 1, city_data = NULL)
}
\arguments{
\item{input}{shiny input object}
\item{output}{shiny outp... | /man/city_hist.Rd | no_license | zappingseb/stravachaser | R | false | true | 709 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/city_hist.R
\name{city_hist}
\alias{city_hist}
\title{City Histogram length of segments module}
\usage{
city_hist(input, output, session, which_id = 1, city_data = NULL)
}
\arguments{
\item{input}{shiny input object}
\item{output}{shiny outp... |
library(readr);
library(dplyr);
library(ggplot2);
library(reshape2);
readthecsv <- function(filename) {
df <- read_csv(filename, col_names = FALSE, col_types = cols(X501 = col_skip()));
colnames(df) <- seq(1,500);
df <- t(apply(df, 1, cumsum))
melt(df, value.name='reward') %>% rename(run=Var1, episode=Var2) %>... | /eigen_options/plot_4.R | permissive | timguoqk/simple_rl | R | false | false | 767 | r | library(readr);
library(dplyr);
library(ggplot2);
library(reshape2);
readthecsv <- function(filename) {
df <- read_csv(filename, col_names = FALSE, col_types = cols(X501 = col_skip()));
colnames(df) <- seq(1,500);
df <- t(apply(df, 1, cumsum))
melt(df, value.name='reward') %>% rename(run=Var1, episode=Var2) %>... |
library(httr)
library(magrittr)
url = "http://mops.twse.com.tw/mops/web/ajax_t51sb01"
postData = "encodeURIComponent=1&step=1&firstin=1&TYPEK=sii&code="
res = POST(url, body = postData)
res
res %>%
content(as = "text")
url = "http://mops.twse.com.tw/mops/web/ajax_t51sb01"
postData = list(encodeURIComponent=1,ste... | /R/Lecture2WhereAreTheData/Example5_httpPOST_mops.R | no_license | platoyowl/crawler101-yotta | R | false | false | 442 | r | library(httr)
library(magrittr)
url = "http://mops.twse.com.tw/mops/web/ajax_t51sb01"
postData = "encodeURIComponent=1&step=1&firstin=1&TYPEK=sii&code="
res = POST(url, body = postData)
res
res %>%
content(as = "text")
url = "http://mops.twse.com.tw/mops/web/ajax_t51sb01"
postData = list(encodeURIComponent=1,ste... |
#' Internal snap to correct bin
#'
#' Internal helper function to return
#' the starts & ends of ranges snapped
#' to the correct `binSize`.
#'
#' @param start Integer < `end`
#' @param end Integer > `start`
#' @param binSize Integer for size of bins.
#' @importFrom data.table data.table `:=`
#'
#' @returns List of sna... | /R/methods-snapToBins.R | no_license | EricSDavis/mariner | R | false | false | 5,426 | r | #' Internal snap to correct bin
#'
#' Internal helper function to return
#' the starts & ends of ranges snapped
#' to the correct `binSize`.
#'
#' @param start Integer < `end`
#' @param end Integer > `start`
#' @param binSize Integer for size of bins.
#' @importFrom data.table data.table `:=`
#'
#' @returns List of sna... |
context("All Learners on all tasks")
r = startOmlTuneServer()
expect_true(r)
task_id = 3
learners = c("classif.kknn", "classif.glmnet", "classif.rpart", "classif.svm", "classif.xgboost", "classif.ranger")
learner = learners[1]
for (learner in learners) {
test_that(learner, {
of = makeOmlBenchFunction(learner, ... | /omlTuneBenchR/tests/testthat/test_allSupportedLearners.R | permissive | jakob-r/lookup-server | R | false | false | 933 | r | context("All Learners on all tasks")
r = startOmlTuneServer()
expect_true(r)
task_id = 3
learners = c("classif.kknn", "classif.glmnet", "classif.rpart", "classif.svm", "classif.xgboost", "classif.ranger")
learner = learners[1]
for (learner in learners) {
test_that(learner, {
of = makeOmlBenchFunction(learner, ... |
##' An S4 Class that stores a fitted coarse data object
##'
##'
##' @description This is the output from \code{dic.fit()}, which contains the important bits of information about the model fit and key options used.
##'
##'
##' @section Slots:
##' \describe{
##' \item{\code{ests}:}{Matrix of class \code{"numeric"}. T... | /R/S4stuff.R | no_license | cran/coarseDataTools | R | false | false | 6,426 | r | ##' An S4 Class that stores a fitted coarse data object
##'
##'
##' @description This is the output from \code{dic.fit()}, which contains the important bits of information about the model fit and key options used.
##'
##'
##' @section Slots:
##' \describe{
##' \item{\code{ests}:}{Matrix of class \code{"numeric"}. T... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/selac.R
\name{SelacOptimize}
\alias{SelacOptimize}
\alias{selac}
\title{Efficient optimization of the SELAC model}
\usage{
SelacOptimize(codon.data.path, n.partitions = NULL, phy,
data.type = "codon", codon.model = "selac",
edge.length = ... | /man/SelacOptimize.Rd | no_license | bomeara/selac | R | false | true | 6,032 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/selac.R
\name{SelacOptimize}
\alias{SelacOptimize}
\alias{selac}
\title{Efficient optimization of the SELAC model}
\usage{
SelacOptimize(codon.data.path, n.partitions = NULL, phy,
data.type = "codon", codon.model = "selac",
edge.length = ... |
library(musicNMR)
### Name: AU
### Title: Collection of Free Induction Decay of Urine Spectra of the Donor
### AU
### Aliases: AU
### Keywords: datasets
### ** Examples
data(AU)
plotFID(AU$sample1B)
plotFID(AU$sample1A,ADD=TRUE,col=2)
| /data/genthat_extracted_code/musicNMR/examples/AU.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 244 | r | library(musicNMR)
### Name: AU
### Title: Collection of Free Induction Decay of Urine Spectra of the Donor
### AU
### Aliases: AU
### Keywords: datasets
### ** Examples
data(AU)
plotFID(AU$sample1B)
plotFID(AU$sample1A,ADD=TRUE,col=2)
|
\name{grep.VIgraph}
\alias{grep}
\alias{grep.default}
\alias{grep.VIgraph}
\alias{gsub}
\alias{gsub.default}
\alias{gsub.VIgraph}
\title{
String manipulation of the output produced by VI.ggplot
}
\description{
Allows the output from VI.ggplot to be searched and replaced
based on a search pattern.
}
\usage{
\method{... | /man/grep.VIgraph.Rd | no_license | ajrgodfrey/BrailleR | R | false | false | 1,457 | rd | \name{grep.VIgraph}
\alias{grep}
\alias{grep.default}
\alias{grep.VIgraph}
\alias{gsub}
\alias{gsub.default}
\alias{gsub.VIgraph}
\title{
String manipulation of the output produced by VI.ggplot
}
\description{
Allows the output from VI.ggplot to be searched and replaced
based on a search pattern.
}
\usage{
\method{... |
library(pblm)
source("add_fun.R")
# n: vector of sample sizes
# m: number of replicates in all the simulations
# ncat1: vector containing the number of levels for the first response
# ncat2: vector containing the number of levels for the second response
# lam: vector of penalty parameters
# param: vector of... | /supplementary material/LR_P simulations/sim1_ncat7/sim_n1000_ncat7_ncov2dic.R | no_license | MarcoEnea/pblm | R | false | false | 6,517 | r | library(pblm)
source("add_fun.R")
# n: vector of sample sizes
# m: number of replicates in all the simulations
# ncat1: vector containing the number of levels for the first response
# ncat2: vector containing the number of levels for the second response
# lam: vector of penalty parameters
# param: vector of... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SummarizeResultsOneExtrAttrSubdir.R
\name{SummarizeSigOneExtrAttrSubdir}
\alias{SummarizeSigOneExtrAttrSubdir}
\title{Assess/evaluate results from packages which can do
BOTH extraction and attribution,
excluding SigProfiler-Python and Signatu... | /man/SummarizeSigOneExtrAttrSubdir.Rd | no_license | WuyangFF95/SynSigEval | R | false | true | 1,676 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SummarizeResultsOneExtrAttrSubdir.R
\name{SummarizeSigOneExtrAttrSubdir}
\alias{SummarizeSigOneExtrAttrSubdir}
\title{Assess/evaluate results from packages which can do
BOTH extraction and attribution,
excluding SigProfiler-Python and Signatu... |
#This Script will make the ggplot wrapper
# rm(list=ls()) # ML: It seems very dangerous to me to source files with this command.
# We want to build this data.frame once, not on each call to gg.wrapper.
water.consum.data <- function (select.variables = NULL,
long,
... | /shinyApp/plot.R | no_license | txzhou/stat242project | R | false | false | 2,824 | r | #This Script will make the ggplot wrapper
# rm(list=ls()) # ML: It seems very dangerous to me to source files with this command.
# We want to build this data.frame once, not on each call to gg.wrapper.
water.consum.data <- function (select.variables = NULL,
long,
... |
#TRWAJĄCE ZADANIA maj 2016
https://www.kaggle.com/c/shelter-animal-outcomes/data
https://www.kaggle.com/annavictoria/speed-dating-experiment
https://www.kaggle.com/mylesoneill/game-of-thrones
https://www.kaggle.com/c/titanic
#ZAKOŃCZONE DO PRZEANALIZOWANIA I ZAPROPONOWANIA PODOBNEGO rozwiązania i porównania metod
#może... | /skrypty/00kaggle_propozycje.R | no_license | pwasiewi/eusi | R | false | false | 4,728 | r | #TRWAJĄCE ZADANIA maj 2016
https://www.kaggle.com/c/shelter-animal-outcomes/data
https://www.kaggle.com/annavictoria/speed-dating-experiment
https://www.kaggle.com/mylesoneill/game-of-thrones
https://www.kaggle.com/c/titanic
#ZAKOŃCZONE DO PRZEANALIZOWANIA I ZAPROPONOWANIA PODOBNEGO rozwiązania i porównania metod
#może... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 9358
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 9358
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#130.A#48.c#.w#3.s#51.asp/ctrl.e#1.a#3.E#130.A#48.c#.w#3.s#51.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 726 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 9358
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 9358
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.... |
# Download the zip file
url <- "http://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(url,destfile="Dataset.zip")
# Unzip the file
unzip(zipfile="Dataset.zip",exdir=".")
| /get_data.R | no_license | dslearner84/get-and-clean-data | R | false | false | 218 | r | # Download the zip file
url <- "http://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(url,destfile="Dataset.zip")
# Unzip the file
unzip(zipfile="Dataset.zip",exdir=".")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pandleau.R
\docType{data}
\name{pandleau}
\alias{pandleau}
\title{global reference to pandleau (will be initialized in .onLoad)}
\format{An object of class \code{python.builtin.module} (inherits from \code{python.builtin.object}) of length 2.... | /man/pandleau.Rd | permissive | KakasA09/RTableau | R | false | true | 438 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pandleau.R
\docType{data}
\name{pandleau}
\alias{pandleau}
\title{global reference to pandleau (will be initialized in .onLoad)}
\format{An object of class \code{python.builtin.module} (inherits from \code{python.builtin.object}) of length 2.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GetMarketingChannelRules.R
\name{GetMarketingChannelRules}
\alias{GetMarketingChannelRules}
\title{Get Marketing Channel Rules for a Report Suite(s)}
\usage{
GetMarketingChannelRules(reportsuite.ids)
}
\arguments{
\item{reportsuite.ids}{Repor... | /man/GetMarketingChannelRules.Rd | no_license | dieguico/RSiteCatalyst | R | false | true | 710 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GetMarketingChannelRules.R
\name{GetMarketingChannelRules}
\alias{GetMarketingChannelRules}
\title{Get Marketing Channel Rules for a Report Suite(s)}
\usage{
GetMarketingChannelRules(reportsuite.ids)
}
\arguments{
\item{reportsuite.ids}{Repor... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.R
\name{nik_to_all}
\alias{nik_to_all}
\alias{nik_to_all}
\alias{nik_to_gender}
\alias{nik_to_bd}
\alias{nik_to_city}
\alias{nik_to_prov}
\title{Parse gender, birthdate, geolevel (city/regency/province) from NIK}
\usage{
nik_to_all(nik, ... | /man/nik_to_all.Rd | no_license | munjazi/nusantr | R | false | true | 2,044 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.R
\name{nik_to_all}
\alias{nik_to_all}
\alias{nik_to_all}
\alias{nik_to_gender}
\alias{nik_to_bd}
\alias{nik_to_city}
\alias{nik_to_prov}
\title{Parse gender, birthdate, geolevel (city/regency/province) from NIK}
\usage{
nik_to_all(nik, ... |
## Functions makeCacheMatrix and cacheSolve are designed to compute
## inverse of a matrix efficiently. Specifically, after the inverse
## matrix is computed, the result is cached. Next time the inverse
## of the matrix is requested, the cached result will be used
## instead of recomputing the inverse matrix.
## mak... | /cachematrix.R | no_license | amgutin/ProgrammingAssignment2 | R | false | false | 1,448 | r | ## Functions makeCacheMatrix and cacheSolve are designed to compute
## inverse of a matrix efficiently. Specifically, after the inverse
## matrix is computed, the result is cached. Next time the inverse
## of the matrix is requested, the cached result will be used
## instead of recomputing the inverse matrix.
## mak... |
# plot1.R - Histogram of Global Active Power
source ("fetchData.R")
dataFile.local<-"household_power_consumption.txt"
# download data from the URL provided to local folder
if (!file.exists (dataFile.local))
fetchData();
# Read data, convert dates and subset on two days in February 2007
# data <- readData(dataFil... | /plot1.R | no_license | agarwals/ExData_Plotting1 | R | false | false | 630 | r | # plot1.R - Histogram of Global Active Power
source ("fetchData.R")
dataFile.local<-"household_power_consumption.txt"
# download data from the URL provided to local folder
if (!file.exists (dataFile.local))
fetchData();
# Read data, convert dates and subset on two days in February 2007
# data <- readData(dataFil... |
library(tidyverse)
library(ggplot2)
rm(list=ls())
graphics.off()
setwd("/home/nesbit/Desktop/Data_RVK/Code")
read.csv("../Data/Kapetanakou_et_al_2019/Fig_1_10C.csv")
format_data <- function(df,temp,time_units,popBio_unts,species,medium,rep,header){
#get number of datasets
n_data <- ncol(df)/2
data_list <- list()... | /MilesNesbit/Code/Processing/Kapetanakou_processed.R | no_license | zongyi2020/CMEEProject | R | false | false | 3,856 | r | library(tidyverse)
library(ggplot2)
rm(list=ls())
graphics.off()
setwd("/home/nesbit/Desktop/Data_RVK/Code")
read.csv("../Data/Kapetanakou_et_al_2019/Fig_1_10C.csv")
format_data <- function(df,temp,time_units,popBio_unts,species,medium,rep,header){
#get number of datasets
n_data <- ncol(df)/2
data_list <- list()... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252729458e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615771231-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252729458e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
\name{simulateSparseDataSet}
\alias{simulateSparseDataSet}
\title{
Simulates a SparseDataSet
}
\description{
Given a number of features n, and the number of samples per condition,
this returns a SparseDataSet object with random data. The samples in
each condition follow a negative binomial distribution.
The means for... | /man/simulateSparseDataSet.Rd | no_license | thgngu/SparseData | R | false | false | 1,106 | rd | \name{simulateSparseDataSet}
\alias{simulateSparseDataSet}
\title{
Simulates a SparseDataSet
}
\description{
Given a number of features n, and the number of samples per condition,
this returns a SparseDataSet object with random data. The samples in
each condition follow a negative binomial distribution.
The means for... |
rm(list=ls())
#library(latex2exp)
#library(ggplot2)
d1 <- read.csv("1-NLStoSLSloss.csv")
d2 <- read.csv("2-NLStoSLSloss.csv")
d3 <- read.csv("3-NLStoSLSloss.csv")
#d1=d10[1:49,]
#d2=d20[1:49,]
pars <- c('alpha','beta','gamma','delta','epsilon','omega')
lin_pars <- c('alpha','beta','gamma','delta')
nlin_pars <- setdif... | /Final Code First Submission/LV_n200SNR10/compLoss-mse-final.R | no_license | haroldship/complexity-2019-code | R | false | false | 2,279 | r | rm(list=ls())
#library(latex2exp)
#library(ggplot2)
d1 <- read.csv("1-NLStoSLSloss.csv")
d2 <- read.csv("2-NLStoSLSloss.csv")
d3 <- read.csv("3-NLStoSLSloss.csv")
#d1=d10[1:49,]
#d2=d20[1:49,]
pars <- c('alpha','beta','gamma','delta','epsilon','omega')
lin_pars <- c('alpha','beta','gamma','delta')
nlin_pars <- setdif... |
emoji_df = read.csv('/Users/hsnu130427/Twitter/Code/emoji_df.csv',header = TRUE)
tsne_T = read.csv('/Users/hsnu130427/Twitter/Code/tsne_T.csv',header = TRUE)
new_trans_df = read.csv('/Users/hsnu130427/Twitter/Code/new_trans_df.csv',header = TRUE)
View(tsne_T)
View(new_trans_df)
name <- sapply(colnames(emoji_df), FUN ... | /Code/Visualization.R | no_license | yusagi0603/Applying-TensorFlow-to-predict-emojis-in-Tweets | R | false | false | 2,487 | r | emoji_df = read.csv('/Users/hsnu130427/Twitter/Code/emoji_df.csv',header = TRUE)
tsne_T = read.csv('/Users/hsnu130427/Twitter/Code/tsne_T.csv',header = TRUE)
new_trans_df = read.csv('/Users/hsnu130427/Twitter/Code/new_trans_df.csv',header = TRUE)
View(tsne_T)
View(new_trans_df)
name <- sapply(colnames(emoji_df), FUN ... |
#' Identify all the subcatchments upstream of a list of specified catchments
#'
#' @param hierarchy a dataframe containing catchment id and next downstream (nextds) id fields
#' @param catchnames a vector of catchment ids for which a a list of upstream catchment
#' ids will be returned.
#' @return a list of upstream ca... | /R/list_all_upstream.R | no_license | lhmet-forks/catchstats | R | false | false | 1,184 | r | #' Identify all the subcatchments upstream of a list of specified catchments
#'
#' @param hierarchy a dataframe containing catchment id and next downstream (nextds) id fields
#' @param catchnames a vector of catchment ids for which a a list of upstream catchment
#' ids will be returned.
#' @return a list of upstream ca... |
### Hyperparameter Selection - Coarse Search
### Author: William Morgan
## Purpose:
# Take results of first round of cross-validation to determine if a finer grid
# should be used or a new grid altogether. If it appears that a model is performing
# best at the boundary of a particular hyperparameter, we'll have eviden... | /Code/OLD/(2A) Parameter Selection - Coarse.R | no_license | willsmorgan/Predicting-Course-Modality-Choice | R | false | false | 2,445 | r | ### Hyperparameter Selection - Coarse Search
### Author: William Morgan
## Purpose:
# Take results of first round of cross-validation to determine if a finer grid
# should be used or a new grid altogether. If it appears that a model is performing
# best at the boundary of a particular hyperparameter, we'll have eviden... |
# analysis starter:####
# load required packages:
source("./starters/pkg_loader.R")
# load required functions:
source("./functions/predict.model.avg.R")
source("./functions/se.R")
morph.levels <- c(
"disc",
"y-type",
"T-type",
"Y-type",
"four-winged",
"Calligonum leucocladum",
"Calligonum alaschanicum",... | /starters/analysis_starter.R | no_license | jinleizhu/Zhu_et_al_2019_tradeoff_PlantEcol | R | false | false | 720 | r | # analysis starter:####
# load required packages:
source("./starters/pkg_loader.R")
# load required functions:
source("./functions/predict.model.avg.R")
source("./functions/se.R")
morph.levels <- c(
"disc",
"y-type",
"T-type",
"Y-type",
"four-winged",
"Calligonum leucocladum",
"Calligonum alaschanicum",... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biomod2_classes_5.R
\docType{class}
\name{biomod2_ensemble_model}
\alias{biomod2_ensemble_model}
\alias{biomod2_ensemble_model-class}
\alias{EMmean_biomod2_model-class}
\alias{EMmedian_biomod2_model-class}
\alias{EMcv_biomod2_model-class}
\al... | /man/biomod2_ensemble_model.Rd | no_license | biomodhub/biomod2 | R | false | true | 3,329 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biomod2_classes_5.R
\docType{class}
\name{biomod2_ensemble_model}
\alias{biomod2_ensemble_model}
\alias{biomod2_ensemble_model-class}
\alias{EMmean_biomod2_model-class}
\alias{EMmedian_biomod2_model-class}
\alias{EMcv_biomod2_model-class}
\al... |
library(dplyr)
library(tidyr)
library(tibble)
# attach data frame from 'mtcars' dataset to global environment
mtcars <- datasets::mtcars
# convert the rownames to an actual column. We suggest to never use row names, just
# use a regular column.
mtcars <- rownames_to_column(mtcars, var = 'model')
# Converting Weight... | /02_auditable/data_prep/data_prep.R | no_license | jlrdandrea/shiny_crud | R | false | false | 651 | r | library(dplyr)
library(tidyr)
library(tibble)
# attach data frame from 'mtcars' dataset to global environment
mtcars <- datasets::mtcars
# convert the rownames to an actual column. We suggest to never use row names, just
# use a regular column.
mtcars <- rownames_to_column(mtcars, var = 'model')
# Converting Weight... |
/R-Codes/R18_Statistical_Analysis_Professor.R | no_license | EduardoMaths/ModelosBayesianosEvaluacionDocente | R | false | false | 5,804 | r | ||
setwd("C:/R/explory data analysis/week1")
i <- 1
while(i <= 200000){
r <- read.table("household_power_consumption.txt",nrows=1,sep=";",
skip=i)
r1 <- strptime(r[,1],"%d/%m/%Y")
if(r1>"2007-02-02"){
j <- i
break
}
i <- i+100... | /plot2.R | no_license | papadalin/ExData_Plotting1 | R | false | false | 1,004 | r | setwd("C:/R/explory data analysis/week1")
i <- 1
while(i <= 200000){
r <- read.table("household_power_consumption.txt",nrows=1,sep=";",
skip=i)
r1 <- strptime(r[,1],"%d/%m/%Y")
if(r1>"2007-02-02"){
j <- i
break
}
i <- i+100... |
library(RJDemetra)
### Name: count
### Title: Count the number of objects inside a workspace or
### multiprocessing
### Aliases: count
### ** Examples
wk <- new_workspace()
mp <- new_multiprocessing(wk, "sa1")
count(wk) # 1 multiprocessing inside the workspace wk
count(mp) # 0 sa_item inside the multiprocessing m... | /data/genthat_extracted_code/RJDemetra/examples/count.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 327 | r | library(RJDemetra)
### Name: count
### Title: Count the number of objects inside a workspace or
### multiprocessing
### Aliases: count
### ** Examples
wk <- new_workspace()
mp <- new_multiprocessing(wk, "sa1")
count(wk) # 1 multiprocessing inside the workspace wk
count(mp) # 0 sa_item inside the multiprocessing m... |
#' ---
#' title: Btrecase on psoriasis data
#' author: Elena
#' output:
#' pdf_document:
#' toc: true
#'
#' ---
## Report built by rule Btrecase_analysis from
## /home/ev250/Bayesian_inf/trecase/Scripts/stan_eff/real_data/psoriasis/run_Btrecase/Snakefile
## Load R packages and functions:
library(data.... | /run_Btrecase/Scripts/assoc.R | no_license | evigorito/psoriasis | R | false | false | 2,771 | r | #' ---
#' title: Btrecase on psoriasis data
#' author: Elena
#' output:
#' pdf_document:
#' toc: true
#'
#' ---
## Report built by rule Btrecase_analysis from
## /home/ev250/Bayesian_inf/trecase/Scripts/stan_eff/real_data/psoriasis/run_Btrecase/Snakefile
## Load R packages and functions:
library(data.... |
`PLOT.SEISN` <-
function(GH, tim=1, dt=1, sel=c(1:4), WIN=c(1,0), labs=c("CE1"), notes="CE1.V", subnotes=NA, tags="CE1.V",
sfact=1, LOG="", COL='red', add=1, pts=FALSE, YAX=1, TIT=NULL, SHIFT=NULL , COLLAPSE=FALSE,
rm.mean=TRUE, UNITS="volts", MARK=TRUE, xtickfactor = 1, vertline=NA )
{
... | /R/PLOT.SEISN.R | no_license | cran/RSEIS | R | false | false | 11,855 | r | `PLOT.SEISN` <-
function(GH, tim=1, dt=1, sel=c(1:4), WIN=c(1,0), labs=c("CE1"), notes="CE1.V", subnotes=NA, tags="CE1.V",
sfact=1, LOG="", COL='red', add=1, pts=FALSE, YAX=1, TIT=NULL, SHIFT=NULL , COLLAPSE=FALSE,
rm.mean=TRUE, UNITS="volts", MARK=TRUE, xtickfactor = 1, vertline=NA )
{
... |
\name{varcount}
\alias{varcount}
\title{
Predicted Variance of the Number of Points
}
\description{
Given a fitted point process model, calculate the predicted variance
of the number of points in a nominated set \code{B}.
}
\usage{
varcount(model, B=Window(model), \dots, dimyx = NULL)
}
\arguments{
\item{model... | /man/varcount.Rd | no_license | spatstat/spatstat.core | R | false | false | 3,560 | rd | \name{varcount}
\alias{varcount}
\title{
Predicted Variance of the Number of Points
}
\description{
Given a fitted point process model, calculate the predicted variance
of the number of points in a nominated set \code{B}.
}
\usage{
varcount(model, B=Window(model), \dots, dimyx = NULL)
}
\arguments{
\item{model... |
# --- introduction to qplot
?qplot
install.packages('ggplot2')
library(ggplot2)
?qplot
qplot(data=stats, x = Internet.users)
qplot(data=stats,x=Income.Group,y=Birth.rate)
qplot(data=stats,x=Income.Group,y=Birth.rate,size =I(10))
qplot(data=stats,x=Income.Group,y=Birth.rate,size =I(10),color =I('blue'))
qplot(data=stats... | /visualizing with qplot.R | no_license | k112b/Basics | R | false | false | 772 | r | # --- introduction to qplot
?qplot
install.packages('ggplot2')
library(ggplot2)
?qplot
qplot(data=stats, x = Internet.users)
qplot(data=stats,x=Income.Group,y=Birth.rate)
qplot(data=stats,x=Income.Group,y=Birth.rate,size =I(10))
qplot(data=stats,x=Income.Group,y=Birth.rate,size =I(10),color =I('blue'))
qplot(data=stats... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lagged_df.R
\name{create_lagged_df}
\alias{create_lagged_df}
\title{Create model training and forecasting datasets with lagged, grouped, dynamic, and static features}
\usage{
create_lagged_df(data, type = c("train", "forecast"), outcome_col =... | /man/create_lagged_df.Rd | no_license | fdrennan/forecastML | R | false | true | 9,235 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lagged_df.R
\name{create_lagged_df}
\alias{create_lagged_df}
\title{Create model training and forecasting datasets with lagged, grouped, dynamic, and static features}
\usage{
create_lagged_df(data, type = c("train", "forecast"), outcome_col =... |
\name{lastchangecpts<-}
\alias{lastchangecpts<-}
\title{
Generic Function - lastchangecpts<-
}
\description{
Generic function
}
\usage{
lastchangecpts(object)<-value
}
\arguments{
\item{object}{
Depending on the class of \code{object} depends on the method used (and if one exists)
}
\item{value}{
Replacement valu... | /man/lastchangecpts-.Rd | no_license | rkillick/changepoint.online | R | false | false | 684 | rd | \name{lastchangecpts<-}
\alias{lastchangecpts<-}
\title{
Generic Function - lastchangecpts<-
}
\description{
Generic function
}
\usage{
lastchangecpts(object)<-value
}
\arguments{
\item{object}{
Depending on the class of \code{object} depends on the method used (and if one exists)
}
\item{value}{
Replacement valu... |
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(solve) m <<- solve
getinverse <- function() m
list(set = set, get = get,
... | /cachematrix.R | no_license | adrollz/ProgrammingAssignment2 | R | false | false | 870 | r | ## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(solve) m <<- solve
getinverse <- function() m
list(set = set, get = get,
... |
context("Shape builders")
test_that("Structure", {
foo <- Structure(a = 1, b = 2)
expect_equal(tag_get(foo, "type"), "structure")
expect_equivalent(foo, list(a = 1, b = 2))
expect_error(Structure(1, 2, 3))
})
test_that("List", {
foo <- List()
expect_equal(tag_get(foo, "type"), "list")
ba... | /data/genthat_extracted_code/paws.common/tests/test_populateutil.R | no_license | surayaaramli/typeRrh | R | false | false | 968 | r | context("Shape builders")
test_that("Structure", {
foo <- Structure(a = 1, b = 2)
expect_equal(tag_get(foo, "type"), "structure")
expect_equivalent(foo, list(a = 1, b = 2))
expect_error(Structure(1, 2, 3))
})
test_that("List", {
foo <- List()
expect_equal(tag_get(foo, "type"), "list")
ba... |
costFunction <- function(hypothesis,paramChar)
{
## Parser afin de déterminer le nombre de paramètres dans notre hypothèse.
## Sera utilisé lorsque l'hypothèse sera déterminé à l'aide d'un réseau de
## neurones.
## @hypothese : String, cost function à minimiser
## @paramChar : Char, charactère ... | /Olivier/Autre/Paramétrisation automatique/costFunction.R | no_license | OlivierTurcotte/r-projects | R | false | false | 1,742 | r |
costFunction <- function(hypothesis,paramChar)
{
## Parser afin de déterminer le nombre de paramètres dans notre hypothèse.
## Sera utilisé lorsque l'hypothèse sera déterminé à l'aide d'un réseau de
## neurones.
## @hypothese : String, cost function à minimiser
## @paramChar : Char, charactère ... |
library(rtesourodescomplicado)
context("Testes do Metodo getTitulosPublicos")
test_that("Testando a recuperacao de Dados de Precos com o Metodo getTitulosPublicos", {
#se nao carregou os dados ainda, deve carregar
if (!file.exists('data/precotaxatesourodireto.csv')) {
updateData()
}
expect_equal(ncol(get... | /tests/testthat/testgetTitulosPublicos.R | no_license | lojadedados/rtesourodescomplicado | R | false | false | 346 | r | library(rtesourodescomplicado)
context("Testes do Metodo getTitulosPublicos")
test_that("Testando a recuperacao de Dados de Precos com o Metodo getTitulosPublicos", {
#se nao carregou os dados ainda, deve carregar
if (!file.exists('data/precotaxatesourodireto.csv')) {
updateData()
}
expect_equal(ncol(get... |
# Author: Aaron Zhu
# starting point is final selected FE model (defXtype on d07 and d08)
# apply posterior simulation on homoscedastic model - we dont need gibbs sampler for this task
# exam systematic conspiracy effect and cus impact with competitive residual
# for cus impact with competitive residual,
### 5... | /03_bayesian_simulation_gibbs_sampling/01_baye_sim_impact.R | no_license | aaronzhuclover/Miscellaneous-DS-Projects | R | false | false | 5,232 | r | # Author: Aaron Zhu
# starting point is final selected FE model (defXtype on d07 and d08)
# apply posterior simulation on homoscedastic model - we dont need gibbs sampler for this task
# exam systematic conspiracy effect and cus impact with competitive residual
# for cus impact with competitive residual,
### 5... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timevis-package.R, R/timevis.R
\docType{package}
\name{timevis}
\alias{timevis}
\alias{timevis-package}
\title{Create a timeline visualization}
\usage{
timevis(data, groups, showZoom = TRUE, zoomFactor = 0.5, fit = TRUE,
options, width = NU... | /man/timevis.Rd | permissive | wulixin/timevis | R | false | true | 14,522 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timevis-package.R, R/timevis.R
\docType{package}
\name{timevis}
\alias{timevis}
\alias{timevis-package}
\title{Create a timeline visualization}
\usage{
timevis(data, groups, showZoom = TRUE, zoomFactor = 0.5, fit = TRUE,
options, width = NU... |
plotFits <- function(plotEst=c("ML","MAP","MCMC"), ccc=FALSE) {
# plot relationship between recovered and true values.
# optionally return concordance correlation coefficient stats, and
# print the mean estimates.
#
plotEst <- toupper(plotEst)
stopifnot(plotEst %in% c("ML", "MAP", "MCMC"))
if (ccc) {require(epiR)}
... | /Rcode/plotFits.R | no_license | smfleming/estRLParam | R | false | false | 4,010 | r | plotFits <- function(plotEst=c("ML","MAP","MCMC"), ccc=FALSE) {
# plot relationship between recovered and true values.
# optionally return concordance correlation coefficient stats, and
# print the mean estimates.
#
plotEst <- toupper(plotEst)
stopifnot(plotEst %in% c("ML", "MAP", "MCMC"))
if (ccc) {require(epiR)}
... |
bayesx_logfile <- function(x, model = 1L)
{
x <- get.model(x, model)
bayesx.log <- NULL
if(inherits(x, "bayesx")) {
bayesx.log <- x[[model]]$bayesx.run$log
if(length(bayesx.log) < 2L || inherits(bayesx.log, "integer")) {
if(!is.null(x[[model]]$logfile))
bayesx.log <- x[[model]]$logfile
}... | /R/bayesx_logfile.R | no_license | cran/R2BayesX | R | false | false | 569 | r | bayesx_logfile <- function(x, model = 1L)
{
x <- get.model(x, model)
bayesx.log <- NULL
if(inherits(x, "bayesx")) {
bayesx.log <- x[[model]]$bayesx.run$log
if(length(bayesx.log) < 2L || inherits(bayesx.log, "integer")) {
if(!is.null(x[[model]]$logfile))
bayesx.log <- x[[model]]$logfile
}... |
library("testthat")
library("testthatsomemore")
library("activesession")
test_check("activesession")
| /tests/test-all.R | permissive | robertzk/activesession | R | false | false | 101 | r | library("testthat")
library("testthatsomemore")
library("activesession")
test_check("activesession")
|
getwd()
setwd("C:/Users/falk/Google Drive/PhD/PhD Projects/Blue Steel/Paper#2/RandomForest")
install.packages(c("xgboost","randomForest","doSNOW","devtools"))
install.packages('caret',dependencies = T)
library(xgboost)
library(randomForest)
devtools::install_github('topepo/caret/pkg/caret')
library(caret)
#Enab... | /ML_RF_Analysis_Kevin.R | no_license | mighster/Random_Forest | R | false | false | 6,647 | r | getwd()
setwd("C:/Users/falk/Google Drive/PhD/PhD Projects/Blue Steel/Paper#2/RandomForest")
install.packages(c("xgboost","randomForest","doSNOW","devtools"))
install.packages('caret',dependencies = T)
library(xgboost)
library(randomForest)
devtools::install_github('topepo/caret/pkg/caret')
library(caret)
#Enab... |
# The function reads the outcome-of-care-measures.csv file and returns a 2-column data frame
# containing the hospital in each state that has the ranking specified in num.
rankall <- function(outcome, num = "best") {
## Read outcome data
data_read <- read.csv("outcome-of-care-measures.csv", colClasses = "character"... | /assignments_functions/rankall.R | no_license | martiquevedo/Coursera-Data_Science_Specialization | R | false | false | 2,192 | r | # The function reads the outcome-of-care-measures.csv file and returns a 2-column data frame
# containing the hospital in each state that has the ranking specified in num.
rankall <- function(outcome, num = "best") {
## Read outcome data
data_read <- read.csv("outcome-of-care-measures.csv", colClasses = "character"... |
rf.ds.name <- "covtype"
rf.seed <- 1235098019
rf.train.dsf <- "/home/bench/prg/h2o-bench/datasets/covtype/R/train.csv"
rf.test.dsf <- "/home/bench/prg/h2o-bench/datasets/covtype/R/test.csv"
rf.pred.class.idx <- 55
rf.ntrees <- XXXTREEXXX
rf.r.mtry <- 7
rf.sampling.ratio <- XXXSAMPLEXXX
rf.c... | /bin/R/covtype-runner.r | no_license | karim2000/h2o-rf1-bench | R | false | false | 4,858 | r | rf.ds.name <- "covtype"
rf.seed <- 1235098019
rf.train.dsf <- "/home/bench/prg/h2o-bench/datasets/covtype/R/train.csv"
rf.test.dsf <- "/home/bench/prg/h2o-bench/datasets/covtype/R/test.csv"
rf.pred.class.idx <- 55
rf.ntrees <- XXXTREEXXX
rf.r.mtry <- 7
rf.sampling.ratio <- XXXSAMPLEXXX
rf.c... |
library(readr)
###pm2.5 data of 2018
pm_dir= "C:/Users/zy125/Box Sync/Postdoc/BABIES/beijing_data/pm"
temp<-data.frame()
years<-c("2018","2019","2020")
pm2.5<-list()
pm10<-list()
so2<-list()
no2<-list()
ozone<-list()
co<-list()
sta_names<-c("dongsi","tiantan","guanyuan","wanshouxigong","aotizhongxin","nongzhangu... | /data_input.R | no_license | zhenchun/babies_beijing_air | R | false | false | 3,865 | r |
library(readr)
###pm2.5 data of 2018
pm_dir= "C:/Users/zy125/Box Sync/Postdoc/BABIES/beijing_data/pm"
temp<-data.frame()
years<-c("2018","2019","2020")
pm2.5<-list()
pm10<-list()
so2<-list()
no2<-list()
ozone<-list()
co<-list()
sta_names<-c("dongsi","tiantan","guanyuan","wanshouxigong","aotizhongxin","nongzhangu... |
## The two functions are used to create a special "matrix" object and cache
## the inverse of a square matrix, which is assumed to be always invertible.
## If the inverse of the matrix has already been computed, the functions return
## the inverse of the non modified matrix from the cache.
## Otherwise, the functio... | /cachematrix.R | no_license | mzeugenia/ProgrammingAssignment2 | R | false | false | 1,849 | r | ## The two functions are used to create a special "matrix" object and cache
## the inverse of a square matrix, which is assumed to be always invertible.
## If the inverse of the matrix has already been computed, the functions return
## the inverse of the non modified matrix from the cache.
## Otherwise, the functio... |
source('vbgpspectral.R')
# Test example
set.seed(1)
n<-1000
x<-0.1+0.8*runif(n)
#Z<-cbind(rep(1,times=n),runif(n))
#y<-sin(x*pi)+Z%*%c(1,1)+0.1*rnorm(n)
Z<-rep(1,times=n)
y<-sin(x*pi)+Z+0.1*rnorm(n)
T<-30
tol<-0.0001
# Set up prior parameters
rsig.0<-0.01
ssig.0<-0.01
rtau.0<-0.01
stau.0<-0.01
w... | /cosine/demo/vbgpspectral_demo.R | no_license | jourdy345/VB | R | false | false | 1,063 | r | source('vbgpspectral.R')
# Test example
set.seed(1)
n<-1000
x<-0.1+0.8*runif(n)
#Z<-cbind(rep(1,times=n),runif(n))
#y<-sin(x*pi)+Z%*%c(1,1)+0.1*rnorm(n)
Z<-rep(1,times=n)
y<-sin(x*pi)+Z+0.1*rnorm(n)
T<-30
tol<-0.0001
# Set up prior parameters
rsig.0<-0.01
ssig.0<-0.01
rtau.0<-0.01
stau.0<-0.01
w... |
flierresponse = read.csv("D:/CMS 3rd Sem/ML/FlierResponse.csv", header = T, sep = ",")
flierresponse
str(flierresponse)
flierresponse$Response = as.factor(flierresponse$Response)
summary(flierresponse)
str(flierresponse)
framingham = read.csv("D:/CMS 3rd Sem/ML/framingham.csv")
str(framingham)
framingham$educ... | /LogisticsRegression.R | no_license | sangita-d22/Module-1 | R | false | false | 2,336 | r | flierresponse = read.csv("D:/CMS 3rd Sem/ML/FlierResponse.csv", header = T, sep = ",")
flierresponse
str(flierresponse)
flierresponse$Response = as.factor(flierresponse$Response)
summary(flierresponse)
str(flierresponse)
framingham = read.csv("D:/CMS 3rd Sem/ML/framingham.csv")
str(framingham)
framingham$educ... |
library(MSEtool)
### Name: swordfish
### Title: North Atlantic Swordfish dataset
### Aliases: swordfish
### Keywords: datasets
### ** Examples
data(swordfish)
| /data/genthat_extracted_code/MSEtool/examples/swordfish.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 167 | r | library(MSEtool)
### Name: swordfish
### Title: North Atlantic Swordfish dataset
### Aliases: swordfish
### Keywords: datasets
### ** Examples
data(swordfish)
|
library(pracma)
### Name: strfind
### Title: Find Substrings
### Aliases: strfind strfindi findstr
### Keywords: string
### ** Examples
S <- c("", "ab", "aba", "aba aba", "abababa")
s <- "aba"
strfind(S, s)
strfindi(toupper(S), s)
strfind(S, s, overlap = FALSE)
| /data/genthat_extracted_code/pracma/examples/strfind.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 269 | r | library(pracma)
### Name: strfind
### Title: Find Substrings
### Aliases: strfind strfindi findstr
### Keywords: string
### ** Examples
S <- c("", "ab", "aba", "aba aba", "abababa")
s <- "aba"
strfind(S, s)
strfindi(toupper(S), s)
strfind(S, s, overlap = FALSE)
|
####################################################################
##FUNCIÓ PER BACKWARD STEPWISE
####################################################################
backward_stepwise <- function(model_fun, data, vars1, vars2, vars3 = NULL, vars4 = NULL,
vars5 = NULL, method = "AIC", treshold... | /Codi_definitiu/backward_stepwise.R | no_license | arturxe2/TFG-Artur-Xarles | R | false | false | 7,860 | r | ####################################################################
##FUNCIÓ PER BACKWARD STEPWISE
####################################################################
backward_stepwise <- function(model_fun, data, vars1, vars2, vars3 = NULL, vars4 = NULL,
vars5 = NULL, method = "AIC", treshold... |
#predict
HoursStudied <- c(8,11,3,6,14,9,2,0,7,13,10,4,9,10)
#response
ExamMark <- c(82,94,70,75,98,80,68,53,76,87,89,83,72,85.3494)
#Linear model
relation = lm(ExamMark~HoursStudied)
summary(relation)
#Assigning x value to our model
result = data.frame(HoursStudied = 10)
final = predict(relation,result)
final
#Visuali... | /DAY - 8/Class/LinearRegression.R | no_license | klmsathish/R_Programming | R | false | false | 501 | r | #predict
HoursStudied <- c(8,11,3,6,14,9,2,0,7,13,10,4,9,10)
#response
ExamMark <- c(82,94,70,75,98,80,68,53,76,87,89,83,72,85.3494)
#Linear model
relation = lm(ExamMark~HoursStudied)
summary(relation)
#Assigning x value to our model
result = data.frame(HoursStudied = 10)
final = predict(relation,result)
final
#Visuali... |
##### Pg676#13.12
per.c14.low <- c(23.37,25.13,23.78,27.74,25.3,25.21,22.12,20.96,23.11,22.57,24.59,23.7)
per.c14.med <- c(20.39,20.87,20.78,20.19,20.01,20.23,20.73,19.53,18.87,18.17,23.34,22.45)
per.c14.high <- c(18.87,19.69,19.29,18.1,18.42,19.33,17.26,18.09,18.69,18.82,18.72,18.75)
ace.con <- factor(c(rep('low',len... | /Homework 12/Solution/HW10-R-ajmn100.R | permissive | jonathannjeunje/Applied_Statistical_Methods_With_R | R | false | false | 610 | r | ##### Pg676#13.12
per.c14.low <- c(23.37,25.13,23.78,27.74,25.3,25.21,22.12,20.96,23.11,22.57,24.59,23.7)
per.c14.med <- c(20.39,20.87,20.78,20.19,20.01,20.23,20.73,19.53,18.87,18.17,23.34,22.45)
per.c14.high <- c(18.87,19.69,19.29,18.1,18.42,19.33,17.26,18.09,18.69,18.82,18.72,18.75)
ace.con <- factor(c(rep('low',len... |
ADE <- function(z, time, C0, dispersion, velocity) {
nt <- as.integer(length(time))
nz <- as.integer(length(z))
conc <- .Fortran('ade', as.double(C0), as.double(dispersion),
as.double(velocity), as.double(time), nt,
as.double(z), nz, conc=double(nt * nz),
P... | /R/analytic.R | no_license | cran/SoPhy | R | false | false | 376 | r | ADE <- function(z, time, C0, dispersion, velocity) {
nt <- as.integer(length(time))
nz <- as.integer(length(z))
conc <- .Fortran('ade', as.double(C0), as.double(dispersion),
as.double(velocity), as.double(time), nt,
as.double(z), nz, conc=double(nt * nz),
P... |
# Данные из работы
# Secher et al. (1987), European Journal of Obstetrics, Gynecology, and Reproductive Biology, 24: 1–11.
#
# Данные представлены в пакете {ISwR}
# На УЗИ у плода измеряли межтеменной и абдоминальный диаметр.
# Вопрос:
# Можно ли предсказать вес новорожденного по данным УЗИ?
#
#
#
#
# Задание:
# ... | /3.2_lm_exerc_2.R | no_license | varmara/glmintro | R | false | false | 3,471 | r | # Данные из работы
# Secher et al. (1987), European Journal of Obstetrics, Gynecology, and Reproductive Biology, 24: 1–11.
#
# Данные представлены в пакете {ISwR}
# На УЗИ у плода измеряли межтеменной и абдоминальный диаметр.
# Вопрос:
# Можно ли предсказать вес новорожденного по данным УЗИ?
#
#
#
#
# Задание:
# ... |
library("dplyr")
library("data.table")
library("tidyr")
library(scales) #coloring
library(ggplot2)
# The script checks if the by_state1.txt file with preprocessed data is already present
# If not the script will check if the raw data if present from which the by_state1.txt
# file willbe generated ina deterministic wa... | /data_ver4.R | no_license | michaaz/data_incubator | R | false | false | 9,108 | r | library("dplyr")
library("data.table")
library("tidyr")
library(scales) #coloring
library(ggplot2)
# The script checks if the by_state1.txt file with preprocessed data is already present
# If not the script will check if the raw data if present from which the by_state1.txt
# file willbe generated ina deterministic wa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exasol.R
\docType{package}
\name{exasol-package}
\alias{exasol}
\alias{exasol-package}
\title{R Interface & SDK for the EXASOL Database}
\description{
The EXASOL R Package offers interface functionality such as connecting to, querying
and wri... | /man/exasol-package.Rd | no_license | marcelboldt/r-exasol | R | false | true | 4,569 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exasol.R
\docType{package}
\name{exasol-package}
\alias{exasol}
\alias{exasol-package}
\title{R Interface & SDK for the EXASOL Database}
\description{
The EXASOL R Package offers interface functionality such as connecting to, querying
and wri... |
library(GenomicRanges)
library(AnnotationDbi)
library(GenomicFeatures)
library(GOstats)
library(org.Hs.eg.db)
library(KEGG.db)
myGOanno <- function (query, background, annotation, cutoff, prefix='GO', outfile) {
directions = c('over', 'under')
ontologies = c('BP', 'MF', 'CC')
for(d in directions) {
for(o in ... | /Rscripts/10KB_go.R | no_license | sachingadakh/pyR | R | false | false | 4,641 | r | library(GenomicRanges)
library(AnnotationDbi)
library(GenomicFeatures)
library(GOstats)
library(org.Hs.eg.db)
library(KEGG.db)
myGOanno <- function (query, background, annotation, cutoff, prefix='GO', outfile) {
directions = c('over', 'under')
ontologies = c('BP', 'MF', 'CC')
for(d in directions) {
for(o in ... |
setwd("D:/Rt/Gab/")
require(wnl)
dPK32 = read.csv("PK32.csv", skip=1)
colnames(dPK32) = c("TIME", "DV") ; dPK32
require(deSolve)
InfHist = cbind(TIME=c(0, 30.1, 125.2, 154.3, 260.1, 290.1),
RATE=c(1131.8/30.1, 0, 1884.4/(154.3-125.2), 0, 6300/30, 0)) ; InfHist
nBolu... | /R-old/PK32.R | no_license | pipetcpt/study-pkpd | R | false | false | 3,174 | r | setwd("D:/Rt/Gab/")
require(wnl)
dPK32 = read.csv("PK32.csv", skip=1)
colnames(dPK32) = c("TIME", "DV") ; dPK32
require(deSolve)
InfHist = cbind(TIME=c(0, 30.1, 125.2, 154.3, 260.1, 290.1),
RATE=c(1131.8/30.1, 0, 1884.4/(154.3-125.2), 0, 6300/30, 0)) ; InfHist
nBolu... |
library(testthat)
library(egssGF)
test_check("egssGF")
| /tests/testthat.R | no_license | statistikat/egssGF | R | false | false | 56 | r | library(testthat)
library(egssGF)
test_check("egssGF")
|
library(tidyverse)
library(lubridate)
library(nycflights13)
today()
now()
ymd(20170131 - 1)
flights %>%
select(year, month, day, hour, minute) %>%
mutate(departure = make_datetime(year, month, day, hour, minute))
ymd(c("2010-10-10", "bananas"))
# Use the appropriate lubridate function to parse each of the fo... | /R/ch16.R | no_license | armenic/r4ds | R | false | false | 523 | r | library(tidyverse)
library(lubridate)
library(nycflights13)
today()
now()
ymd(20170131 - 1)
flights %>%
select(year, month, day, hour, minute) %>%
mutate(departure = make_datetime(year, month, day, hour, minute))
ymd(c("2010-10-10", "bananas"))
# Use the appropriate lubridate function to parse each of the fo... |
\name{knearestneighbors}
\alias{knearestneighbors}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
knearestneighbors(k, pts_input)
}
%- maybe also 'usage' for other objects... | /knearestneighbors.Rd | no_license | gullahoo/quant | R | false | false | 1,578 | rd | \name{knearestneighbors}
\alias{knearestneighbors}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
knearestneighbors(k, pts_input)
}
%- maybe also 'usage' for other objects... |
# load libraries
packageStartupMessage("* Loading packages in ./setup.R")
library(tidyverse)
library(tidybayes)
library(tidybayes.rethinking)
# set defaults
| /setup.R | no_license | davidtedfordholt/rethinking | R | false | false | 160 | r | # load libraries
packageStartupMessage("* Loading packages in ./setup.R")
library(tidyverse)
library(tidybayes)
library(tidybayes.rethinking)
# set defaults
|
#' Permutation tests using GENECOUNTING
#'
#' @param y A column of 0/1 indicating cases and controls.
#' @param cc analysis indicator, 0 = marker-marker, 1 = case-control.
#' @param g the multilocus genotype data.
#' @param handle.miss a flag with value 1 indicating missing data are allowed.
#' @param miss.val missing ... | /gap/R/gcp.R | no_license | jinghuazhao/R | R | false | false | 5,419 | r | #' Permutation tests using GENECOUNTING
#'
#' @param y A column of 0/1 indicating cases and controls.
#' @param cc analysis indicator, 0 = marker-marker, 1 = case-control.
#' @param g the multilocus genotype data.
#' @param handle.miss a flag with value 1 indicating missing data are allowed.
#' @param miss.val missing ... |
read.ld.score <- function(filename, id, chr, pos) {
if(missing(id) & (missing(chr) | missing(pos)))
D <- .Call("read_ld_score_all", PACKAGE = "gaston.utils", filename)
else if(missing(id) & !missing(chr) & !missing(pos))
D <- .Call("read_ld_score_filt_chr_pos", PACKAGE = "gaston.utils", filename, chr, pos)... | /R/read_ld_score.r | no_license | genostats/gaston.utils | R | false | false | 582 | r | read.ld.score <- function(filename, id, chr, pos) {
if(missing(id) & (missing(chr) | missing(pos)))
D <- .Call("read_ld_score_all", PACKAGE = "gaston.utils", filename)
else if(missing(id) & !missing(chr) & !missing(pos))
D <- .Call("read_ld_score_filt_chr_pos", PACKAGE = "gaston.utils", filename, chr, pos)... |
setwd("D:/workspace/R_date/part4")
var1=1:5
plot(var1)
var1=5:1
plot(var1)
var2=c(2,2,2)
plot(var2)
x=1:3
y=4:2
plot(x,y)
plot(x,y,xlim=c(0,5),ylim=c(0,5))
plot(x,y,xlim=c(0,5),ylim=c(0,5),
xlab = "x축값", ylab = "y축값", mian = "Plot test")
v1= c(100,130,120,160,150)
plot(v1,type='o',col='red',ylim=c(50,200),axes=F... | /part3/R 러닝/그래프.R | no_license | wisdom009/R | R | false | false | 3,547 | r | setwd("D:/workspace/R_date/part4")
var1=1:5
plot(var1)
var1=5:1
plot(var1)
var2=c(2,2,2)
plot(var2)
x=1:3
y=4:2
plot(x,y)
plot(x,y,xlim=c(0,5),ylim=c(0,5))
plot(x,y,xlim=c(0,5),ylim=c(0,5),
xlab = "x축값", ylab = "y축값", mian = "Plot test")
v1= c(100,130,120,160,150)
plot(v1,type='o',col='red',ylim=c(50,200),axes=F... |
setwd(path.expand("~/dnn/r_scripts"))
require(Rdnn)
source('ucr_ts.R')
source('interpolate_ts.R')
source("env.R")
ts_dir = path.expand('~/dnn/datasets/ucr')
ts_dir = pj(DATASETS_PLACE, "ucr")
sample_size = 1000
data = synth # synthetic control
#data = starlight_curves
normalize = function(x, min_val, max_val) {
... | /r_package/r_scripts/interpolate_ucr_data.R | permissive | chenbk85/dnn-4 | R | false | false | 1,673 | r |
setwd(path.expand("~/dnn/r_scripts"))
require(Rdnn)
source('ucr_ts.R')
source('interpolate_ts.R')
source("env.R")
ts_dir = path.expand('~/dnn/datasets/ucr')
ts_dir = pj(DATASETS_PLACE, "ucr")
sample_size = 1000
data = synth # synthetic control
#data = starlight_curves
normalize = function(x, min_val, max_val) {
... |
## pair of functions - makeCacheMatric and cacheSolve - used together create a matrix
# and make its inverse available in cache
##---------------------------------------------------------------
## creates and returns list of functions used by cacheSolve to set or get the invereted matrix in cache
makeCacheMatrix <- fu... | /cachematrix.R | no_license | mbotchk/ProgrammingAssignment2 | R | false | false | 1,268 | r | ## pair of functions - makeCacheMatric and cacheSolve - used together create a matrix
# and make its inverse available in cache
##---------------------------------------------------------------
## creates and returns list of functions used by cacheSolve to set or get the invereted matrix in cache
makeCacheMatrix <- fu... |
#############################################################################
##
## Copyright 2016 Novartis Institutes for BioMedical Research Inc.
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the Licen... | /tests/testthat/test-h5a.R | permissive | Novartis/hdf5r | R | false | false | 7,711 | r | #############################################################################
##
## Copyright 2016 Novartis Institutes for BioMedical Research Inc.
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the Licen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.