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(tidyverse)
library(grDevices)
library(lubridate)
library(ggplot2)
berry_weight_vs_time<- read.csv ("data/mcp_berry_phenolics.csv", header = TRUE)
se <- function(x) sqrt(var(x)/length(x))
berry_weight_vs_time_table<- berry_weight_vs_time %>%
select(Date_sampled, Block_id, Rep,Berry_weight, Skin_weight_aft... | /scripts/weight_berry_time.R | no_license | mgaleano-ucd/Heatwave_project_borden_hills | R | false | false | 5,111 | r | library(tidyverse)
library(grDevices)
library(lubridate)
library(ggplot2)
berry_weight_vs_time<- read.csv ("data/mcp_berry_phenolics.csv", header = TRUE)
se <- function(x) sqrt(var(x)/length(x))
berry_weight_vs_time_table<- berry_weight_vs_time %>%
select(Date_sampled, Block_id, Rep,Berry_weight, Skin_weight_aft... |
.libPaths('C:/Users/BrBl1834/R/win-library')
library(devtools)
install_github("genomicsclass/GSE5859Subset")
library(GSE5859Subset)
data(GSE5859Subset)
# 1
library(tidyverse)
sampleInfo$date <- as.Date(sampleInfo$date)
sampleInfo%>%filter(date==as.Date("2005-06-27", "%Y-%m-%d"))
# 2
geneAnnotation%>%group_by(CHR)%>%s... | /genomicsbook/10_batch_effects/hightroughput_exercise.R | no_license | brambloemen/HarvardX_GenomicsClass | R | false | false | 773 | r | .libPaths('C:/Users/BrBl1834/R/win-library')
library(devtools)
install_github("genomicsclass/GSE5859Subset")
library(GSE5859Subset)
data(GSE5859Subset)
# 1
library(tidyverse)
sampleInfo$date <- as.Date(sampleInfo$date)
sampleInfo%>%filter(date==as.Date("2005-06-27", "%Y-%m-%d"))
# 2
geneAnnotation%>%group_by(CHR)%>%s... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/binned_pca.R
\name{pcaPlot}
\alias{pcaPlot}
\title{PCA plot of ChIP and input samples}
\usage{
pcaPlot(normalizedCounts, condition = as.factor(colnames(counts)))
}
\arguments{
\item{normalizedCounts}{The normalized \code{data.frame} w... | /man/pcaPlot.Rd | no_license | ua0/encodeChIPqc | R | false | false | 1,130 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/binned_pca.R
\name{pcaPlot}
\alias{pcaPlot}
\title{PCA plot of ChIP and input samples}
\usage{
pcaPlot(normalizedCounts, condition = as.factor(colnames(counts)))
}
\arguments{
\item{normalizedCounts}{The normalized \code{data.frame} w... |
setwd("/path/to/working/directory")
getwd()
# install.packages("Rmisc")
# install.packages("stringr")
# install.packages("gridExtra")
# install.packages("ggpubr")
library(ggplot2)
library(stringr)
library(gridExtra)
library(ggpubr)
#-------------------
# data import
data = read.csv("morphotype_means.csv", head=TRUE... | /Morphotype_figures.R | no_license | mstudiva/Mcav-morphometrics | R | false | false | 11,566 | r | setwd("/path/to/working/directory")
getwd()
# install.packages("Rmisc")
# install.packages("stringr")
# install.packages("gridExtra")
# install.packages("ggpubr")
library(ggplot2)
library(stringr)
library(gridExtra)
library(ggpubr)
#-------------------
# data import
data = read.csv("morphotype_means.csv", head=TRUE... |
##
## Test previous errors on kselection
##
## Created by Daniel Rodriguez Perez on 10/10/2014.
##
## Copyright (c) 2014 Daniel Rodriguez Perez.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software F... | /tests/testthat/testPhamFix.R | no_license | drodriguezperez/kselection | R | false | false | 1,232 | r | ##
## Test previous errors on kselection
##
## Created by Daniel Rodriguez Perez on 10/10/2014.
##
## Copyright (c) 2014 Daniel Rodriguez Perez.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software F... |
rm(list=ls())
# You first want to merge all individual subject edat files into one using E-Merge
# Then read the data
raw.data <- read.delim("raw/TDS 071_096 merge.txt"
# ,skip = 1
,header = T
,na.strings = ""
,fileEncoding ... | /behavior/CleanData.R | no_license | tanyaberde/targetdetection | R | false | false | 2,717 | r |
rm(list=ls())
# You first want to merge all individual subject edat files into one using E-Merge
# Then read the data
raw.data <- read.delim("raw/TDS 071_096 merge.txt"
# ,skip = 1
,header = T
,na.strings = ""
,fileEncoding ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_data.R
\name{get_elbow_threshold}
\alias{get_elbow_threshold}
\title{Threshold data using the elbow method}
\usage{
get_elbow_threshold(xvals, yvals, upper_plateau = FALSE)
}
\arguments{
\item{xvals}{X values}
\item{yvals}{Y values}
\... | /man/get_elbow_threshold.Rd | no_license | ilia-kats/RiboSeqTools | R | false | true | 873 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_data.R
\name{get_elbow_threshold}
\alias{get_elbow_threshold}
\title{Threshold data using the elbow method}
\usage{
get_elbow_threshold(xvals, yvals, upper_plateau = FALSE)
}
\arguments{
\item{xvals}{X values}
\item{yvals}{Y values}
\... |
source('~/Clean_Multiomics/General/SampleEmbeddingCompact.R')
Raw=readRDS('~/Clean_Multiomics/Sajjad/AllX_Sajjad')
PointLab=readRDS('~/Clean_Multiomics/Sajjad/PointLab')
#lo=readRDS('~/Clean_Multiomics/Embeddings/Sajjad/DataEmbed/LargeVis')
#lo=t(lo)
#Raw=t(Raw)
#determine the indicators
#lo=largeVis(Raw)
#Raw=t(Ra... | /Sajjad/CreateEmbedding.R | no_license | abhijeetsingh1704/MOAB_private | R | false | false | 884 | r | source('~/Clean_Multiomics/General/SampleEmbeddingCompact.R')
Raw=readRDS('~/Clean_Multiomics/Sajjad/AllX_Sajjad')
PointLab=readRDS('~/Clean_Multiomics/Sajjad/PointLab')
#lo=readRDS('~/Clean_Multiomics/Embeddings/Sajjad/DataEmbed/LargeVis')
#lo=t(lo)
#Raw=t(Raw)
#determine the indicators
#lo=largeVis(Raw)
#Raw=t(Ra... |
source(cleaning.R)
#Checking number of non-contacts within a prior 1-hour window of stress survey
for (i in 1:nrow(stress)) {
sum=0
count = 0
endtime = as.numeric(stress$Time[i])
begintime = as.numeric(stress$Time[i]) - 3600
id = stress$ID[i]
for(j in 1:nrow(merged_steps_ascended)){
if(merged_steps_asc... | /steps_ascended_avg.R | no_license | mdavolio/case_study_3 | R | false | false | 1,965 | r | source(cleaning.R)
#Checking number of non-contacts within a prior 1-hour window of stress survey
for (i in 1:nrow(stress)) {
sum=0
count = 0
endtime = as.numeric(stress$Time[i])
begintime = as.numeric(stress$Time[i]) - 3600
id = stress$ID[i]
for(j in 1:nrow(merged_steps_ascended)){
if(merged_steps_asc... |
# Cleans up HCV Ordering Report.
rm(list =ls())
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
###############################################################################
#
# Edit these values each time
#
###############################################################################
file_loc <- "A:... | /IncentiveReferrals/main.R | no_license | benneaux/HARPTools | R | false | false | 1,010 | r | # Cleans up HCV Ordering Report.
rm(list =ls())
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
###############################################################################
#
# Edit these values each time
#
###############################################################################
file_loc <- "A:... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modified_update.R
\name{modified_update_summary_output}
\alias{modified_update_summary_output}
\title{Modified update summary output}
\usage{
modified_update_summary_output(con, res, path_meta)
}
\arguments{
\item{con}{Database connection}
\... | /man/modified_update_summary_output.Rd | permissive | vimc/jenner | R | false | true | 759 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modified_update.R
\name{modified_update_summary_output}
\alias{modified_update_summary_output}
\title{Modified update summary output}
\usage{
modified_update_summary_output(con, res, path_meta)
}
\arguments{
\item{con}{Database connection}
\... |
# Example 1
# U. S. Gasoline Market
#
# Read multi-line raw data, transform to matrix, and data.frame
data1<-scan("http://people.stern.nyu.edu/wgreene/Text/Edition7/TableF2-2.txt",skip=1)
data<-data.frame(matrix(data1,ncol=11,byrow=TRUE))
year<-data$X1
gasexp<-data$X2
pop<-data$X3
gasp<-data$X4
income<-data$X5
pnc<-da... | /econometrics/example1_2.R | no_license | gdcutting/workshop | R | false | false | 1,005 | r | # Example 1
# U. S. Gasoline Market
#
# Read multi-line raw data, transform to matrix, and data.frame
data1<-scan("http://people.stern.nyu.edu/wgreene/Text/Edition7/TableF2-2.txt",skip=1)
data<-data.frame(matrix(data1,ncol=11,byrow=TRUE))
year<-data$X1
gasexp<-data$X2
pop<-data$X3
gasp<-data$X4
income<-data$X5
pnc<-da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_subtitles.R
\name{read.subtitles}
\alias{read.subtitles}
\title{Read subtitles}
\usage{
read.subtitles(file, format = "auto", clean.tags = TRUE,
metadata = list(), frame.rate = NA, encoding = "UTF-8")
}
\arguments{
\item{file}{the name... | /man/read.subtitles.Rd | no_license | AJXander/subtools | R | false | true | 1,512 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_subtitles.R
\name{read.subtitles}
\alias{read.subtitles}
\title{Read subtitles}
\usage{
read.subtitles(file, format = "auto", clean.tags = TRUE,
metadata = list(), frame.rate = NA, encoding = "UTF-8")
}
\arguments{
\item{file}{the name... |
\encoding{latin1}
\name{buffer}
\alias{buffer}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Buffer parameters of the seawater carbonate system}
\description{Returns buffer parameters of the seawater carbonate system.}
\usage{
buffer(flag, var1, var2, S=35, T=25, P=0, Pt=0, Sit=0, k1k2="x",
kf... | /man/buffer.Rd | no_license | jamesorr/seacarb | R | false | false | 10,540 | rd | \encoding{latin1}
\name{buffer}
\alias{buffer}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Buffer parameters of the seawater carbonate system}
\description{Returns buffer parameters of the seawater carbonate system.}
\usage{
buffer(flag, var1, var2, S=35, T=25, P=0, Pt=0, Sit=0, k1k2="x",
kf... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read-fmld.R
\name{read.fmld}
\alias{read.fmld}
\title{Read in and modify FMLD files}
\usage{
read.fmld(fp, zp, grp_var_names, ce_dir)
}
\arguments{
\item{fp}{File to extract from zip file}
\item{zp}{Zip file path}
\item{grp_var_names}{Varia... | /man/read.fmld.Rd | no_license | awunderground/cepumd | R | false | true | 483 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read-fmld.R
\name{read.fmld}
\alias{read.fmld}
\title{Read in and modify FMLD files}
\usage{
read.fmld(fp, zp, grp_var_names, ce_dir)
}
\arguments{
\item{fp}{File to extract from zip file}
\item{zp}{Zip file path}
\item{grp_var_names}{Varia... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{targetSslProxies.insert}
\alias{targetSslProxies.insert}
\title{Creates a TargetSslProxy resource in the specified project using the data included in the request.}
\usage{
targetSslProxies.insert(TargetSslProxy, proj... | /googlecomputebeta.auto/man/targetSslProxies.insert.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 1,140 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{targetSslProxies.insert}
\alias{targetSslProxies.insert}
\title{Creates a TargetSslProxy resource in the specified project using the data included in the request.}
\usage{
targetSslProxies.insert(TargetSslProxy, proj... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphql2json.R
\name{graphql2json}
\alias{graphql}
\alias{graphql2json}
\title{Dump GraphQL to JSON}
\usage{
graphql2json(input)
}
\arguments{
\item{input}{a string with graphql syntax}
}
\description{
Parses GraphQL and exports the AST in JS... | /man/graphql.Rd | no_license | eddelbuettel/graphql | R | false | true | 406 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphql2json.R
\name{graphql2json}
\alias{graphql}
\alias{graphql2json}
\title{Dump GraphQL to JSON}
\usage{
graphql2json(input)
}
\arguments{
\item{input}{a string with graphql syntax}
}
\description{
Parses GraphQL and exports the AST in JS... |
#' Top 5 COUNTRY function
#'
#' @param a This should be a one of column which we want to know top 5.
#'
#' @return Returns a dataframe which includes top 5 countries in OECD and information which we want to know (a)
#' @export
#'
#' @examples
#' Top5(OECD$AREA)
Top5 <- function(a){
df1 <- data.frame(OECD$COUNTRY, a)
... | /R/Top5.R | no_license | Yoonhee-Lee/OECD | R | false | false | 361 | r | #' Top 5 COUNTRY function
#'
#' @param a This should be a one of column which we want to know top 5.
#'
#' @return Returns a dataframe which includes top 5 countries in OECD and information which we want to know (a)
#' @export
#'
#' @examples
#' Top5(OECD$AREA)
Top5 <- function(a){
df1 <- data.frame(OECD$COUNTRY, a)
... |
library(knitr)
opts_chunk$set(prompt=TRUE, tidy=FALSE, strip.white=FALSE, comment=NA, highlight=FALSE, message=FALSE, warning=FALSE, size='scriptsize', fig.width=4, fig.height=4)
options(width=60, dev='pdf')
options(digits=3)
thm <- knit_theme$get("acid")
knit_theme$set(thm)
library(xtable)
binbet_table <- data.frame(w... | /investment_strategies.R | no_license | fdoperezi/lecture_slides | R | false | false | 6,763 | r | library(knitr)
opts_chunk$set(prompt=TRUE, tidy=FALSE, strip.white=FALSE, comment=NA, highlight=FALSE, message=FALSE, warning=FALSE, size='scriptsize', fig.width=4, fig.height=4)
options(width=60, dev='pdf')
options(digits=3)
thm <- knit_theme$get("acid")
knit_theme$set(thm)
library(xtable)
binbet_table <- data.frame(w... |
#' Get the number of conecting edges between two groups
#'
#' It calculates the number of edges from group1 to group2
#' @param g The graph object
#' @param group1 The departure set of nodes
#' @param group2 The arrival set of nodes
#' @param mode The direction of the edges to be considered. If 'in', the edges consider... | /R/number_of_connecting_edges.R | no_license | arielolafsalgado/packexplorer | R | false | false | 977 | r | #' Get the number of conecting edges between two groups
#'
#' It calculates the number of edges from group1 to group2
#' @param g The graph object
#' @param group1 The departure set of nodes
#' @param group2 The arrival set of nodes
#' @param mode The direction of the edges to be considered. If 'in', the edges consider... |
require(shiny)
require(bartCause)
require(foreign)
require(readstata13)
require(openxlsx)
require(tidyverse)
require(shinyBS)
require(png)
require(shinythemes)
require(dbarts)
require(plotly)
require(DT)
########################################
csplotaxis <- c("Tree"= "tree", "PCA"= "pca", "Common Support Statistics"=... | /CausInferShiny.R | no_license | claudcomputing/CausalShiny | R | false | false | 25,492 | r | require(shiny)
require(bartCause)
require(foreign)
require(readstata13)
require(openxlsx)
require(tidyverse)
require(shinyBS)
require(png)
require(shinythemes)
require(dbarts)
require(plotly)
require(DT)
########################################
csplotaxis <- c("Tree"= "tree", "PCA"= "pca", "Common Support Statistics"=... |
test_that("earsC returns a sts object", {
#Sim data and convert to sts object
disProgObj <- sim.pointSource(p = 0.99, r = 0.5, length = 208, A = 1,
alpha = 1, beta = 0, phi = 0,
frequency = 1, state = NULL, K = 1.7)
stsObj = disProg2sts( disProg... | /pkg/tests/testthat/test-earsC.R | no_license | viciana/surveillance_r-forge | R | false | false | 2,489 | r | test_that("earsC returns a sts object", {
#Sim data and convert to sts object
disProgObj <- sim.pointSource(p = 0.99, r = 0.5, length = 208, A = 1,
alpha = 1, beta = 0, phi = 0,
frequency = 1, state = NULL, K = 1.7)
stsObj = disProg2sts( disProg... |
# Common data used in all tests
## dff => model.predictions
df = model_predictions_df %>% as.data.frame() # from R/sysdata.rda
dff = df[c(567, 736, 810, 1000, 1000, 567, 736, 736),]
rownames(dff) = c("test", "test2", "test3", "test4", "test5", "test6", "test7", "test8")
models_mcc = c(-0.04, -0.17, 0.15, -0.24, -0.02... | /tests/testthat/test-diff.R | no_license | cran/emba | R | false | false | 10,479 | r | # Common data used in all tests
## dff => model.predictions
df = model_predictions_df %>% as.data.frame() # from R/sysdata.rda
dff = df[c(567, 736, 810, 1000, 1000, 567, 736, 736),]
rownames(dff) = c("test", "test2", "test3", "test4", "test5", "test6", "test7", "test8")
models_mcc = c(-0.04, -0.17, 0.15, -0.24, -0.02... |
#' Using Venn Diagrams to Compare High-Importance Variables Across Cancer Types
#'
#' This function generates a Venn diagram using RNA-seq data from the The Cancer Genome Atlas (TCGA) database. Users specify which cancer types to include (varselectVenn currently supports 2- and 3-set Venn diagrams), as well as the tar... | /R/varselectVenn.R | no_license | jblam251/tcgaRNAML | R | false | false | 4,590 | r | #' Using Venn Diagrams to Compare High-Importance Variables Across Cancer Types
#'
#' This function generates a Venn diagram using RNA-seq data from the The Cancer Genome Atlas (TCGA) database. Users specify which cancer types to include (varselectVenn currently supports 2- and 3-set Venn diagrams), as well as the tar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MCMC.R
\name{MCMC.STmodel}
\alias{MCMC.STmodel}
\alias{MCMC}
\title{MCMC Inference of Parameters in the Spatio-Temporal Model}
\usage{
\method{MCMC}{STmodel}(object, x, x.fixed = NULL, type = "f", N = 1000,
Hessian.prop = NULL, Sigma.prop =... | /man/MCMC.STmodel.Rd | no_license | victoriaknutson/SpatioTemporal | R | false | true | 4,762 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MCMC.R
\name{MCMC.STmodel}
\alias{MCMC.STmodel}
\alias{MCMC}
\title{MCMC Inference of Parameters in the Spatio-Temporal Model}
\usage{
\method{MCMC}{STmodel}(object, x, x.fixed = NULL, type = "f", N = 1000,
Hessian.prop = NULL, Sigma.prop =... |
library(Power2Stage)
### Name: power.tsd.in
### Title: Power calculation of adaptive 2-stage BE studies with 2x2
### crossover design, based on the Inverse Normal method
### Aliases: power.2stage.in power.tsd.in
### ** Examples
# 12 subjects in stage 1, CV of 20%, no futility rule, otherwise all defaults
# except... | /data/genthat_extracted_code/Power2Stage/examples/power.tsd.in.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,085 | r | library(Power2Stage)
### Name: power.tsd.in
### Title: Power calculation of adaptive 2-stage BE studies with 2x2
### crossover design, based on the Inverse Normal method
### Aliases: power.2stage.in power.tsd.in
### ** Examples
# 12 subjects in stage 1, CV of 20%, no futility rule, otherwise all defaults
# except... |
### --- this script is for new functions in the PRoXe app --- ###
# source of oncoprint functions, which I revised minorly: https://gist.github.com/armish/564a65ab874a770e2c26
# This oncoprint function sorts the matrix for better visualization of mutual exclusivity across genes
memoSort <- function(M) {
geneOrder <... | /functions.R | no_license | VeritasJoker/proxe | R | false | false | 8,640 | r | ### --- this script is for new functions in the PRoXe app --- ###
# source of oncoprint functions, which I revised minorly: https://gist.github.com/armish/564a65ab874a770e2c26
# This oncoprint function sorts the matrix for better visualization of mutual exclusivity across genes
memoSort <- function(M) {
geneOrder <... |
#--------------------------------------------------------------------
# svarmod.sb.R (npsp package)
#--------------------------------------------------------------------
# kappasb(x, dk)
# disc.sb(nx, dk, rmax)
# fitsvar.sb.iso(esv, dk, nx, rmax, min.contrib, method, iter, tol)
#
# (c) R. Fernandez-Cas... | /R/svarmod.sb.R | no_license | zhenxie23/npsp | R | false | false | 16,738 | r | #--------------------------------------------------------------------
# svarmod.sb.R (npsp package)
#--------------------------------------------------------------------
# kappasb(x, dk)
# disc.sb(nx, dk, rmax)
# fitsvar.sb.iso(esv, dk, nx, rmax, min.contrib, method, iter, tol)
#
# (c) R. Fernandez-Cas... |
# R code to create plot1, as part of the first Project of the coursera course
# Exploratory Data Analysis
# IMPORTANT!!!
# ASSUMPTION: a file named household_power_consumption.txt IN THE WORKING DIR
# Set column names
colnames <- c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_int... | /plot1.R | no_license | agampu/ExData_Plotting1 | R | false | false | 909 | r | # R code to create plot1, as part of the first Project of the coursera course
# Exploratory Data Analysis
# IMPORTANT!!!
# ASSUMPTION: a file named household_power_consumption.txt IN THE WORKING DIR
# Set column names
colnames <- c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_int... |
context("add_cplex_solver")
test_that("binary decisions", {
skip_on_cran()
skip_if_not_installed("cplexAPI")
# make data
data(sim_pu_raster, sim_features)
p1 <- problem(sim_pu_raster, sim_features) %>%
add_min_set_objective() %>%
add_relative_targets(0.1) %>%
add_binary_decisions() %>... | /tests/testthat/test_add_cplex_solver.R | no_license | BrandonEdwards/prioritizr | R | false | false | 5,841 | r | context("add_cplex_solver")
test_that("binary decisions", {
skip_on_cran()
skip_if_not_installed("cplexAPI")
# make data
data(sim_pu_raster, sim_features)
p1 <- problem(sim_pu_raster, sim_features) %>%
add_min_set_objective() %>%
add_relative_targets(0.1) %>%
add_binary_decisions() %>... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maize.data_MetaModelling.r
\docType{data}
\name{maize.data_MetaModelling}
\alias{maize.data_MetaModelling}
\title{dataset of simulation for maize final biomass}
\format{a \code{RangedData} instance, 1 row per simulation. Site, Year, T1,... | /man/maize.data_MetaModelling.Rd | no_license | gcostaneto/ZeBook | R | false | true | 1,167 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maize.data_MetaModelling.r
\docType{data}
\name{maize.data_MetaModelling}
\alias{maize.data_MetaModelling}
\title{dataset of simulation for maize final biomass}
\format{a \code{RangedData} instance, 1 row per simulation. Site, Year, T1,... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 3.24292071903086e-309, 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), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615784250-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 329 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 3.24292071903086e-309, 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), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... |
# server.R
shinyServer(function(input, output) {
data <- reactive({
validate(
need(input$help == FALSE, "This application generates a scatter plot between automobile weight on the horizontal axis and miles per gallon on the vertical axis. Check best fit to add a line of best fit. Check labeling to add la... | /server.R | no_license | goras0/Coursera_Data_Products | R | false | false | 765 | r | # server.R
shinyServer(function(input, output) {
data <- reactive({
validate(
need(input$help == FALSE, "This application generates a scatter plot between automobile weight on the horizontal axis and miles per gallon on the vertical axis. Check best fit to add a line of best fit. Check labeling to add la... |
#Do not forget to set the working directory to the folder where you saved this file. Use setwd() for that
library(data.table)
# set the local LC_Time to us so that the name of the day appear in english
Sys.setlocale("LC_TIME", "en_US.UTF-8")
#Load the data
data <- read.table("household_power_consumption.txt", sep=";"... | /plot2.R | no_license | remilo/ExData_Plotting1 | R | false | false | 940 | r | #Do not forget to set the working directory to the folder where you saved this file. Use setwd() for that
library(data.table)
# set the local LC_Time to us so that the name of the day appear in english
Sys.setlocale("LC_TIME", "en_US.UTF-8")
#Load the data
data <- read.table("household_power_consumption.txt", sep=";"... |
library(raybonsai)
library(rayrender)
library(rayshader)
library(readr)
library(dplyr)
library(purrr)
library(scico)
forest_area <- read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-04-06/forest_area.csv")
birth_year_forest_area <- forest_area %>%
filter(year == 1991) %>%... | /07-physical/physical.R | no_license | sharlagelfand/30DayChartChallenge | R | false | false | 1,897 | r | library(raybonsai)
library(rayrender)
library(rayshader)
library(readr)
library(dplyr)
library(purrr)
library(scico)
forest_area <- read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-04-06/forest_area.csv")
birth_year_forest_area <- forest_area %>%
filter(year == 1991) %>%... |
library(packS4)
### Name: ClassV-class
### Title: Class "ClassV"
### Aliases: ClassV ClassV-class
### Keywords: documentation
### ** Examples
showClass("ClassV")
new("ClassV",v1=1,v2=2)
| /data/genthat_extracted_code/packS4/examples/ClassV-class.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 193 | r | library(packS4)
### Name: ClassV-class
### Title: Class "ClassV"
### Aliases: ClassV ClassV-class
### Keywords: documentation
### ** Examples
showClass("ClassV")
new("ClassV",v1=1,v2=2)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/newton.R
\name{newton}
\alias{newton}
\title{Newton's method}
\usage{
newton(f, fp, x, tol = 0.001, m = 100)
}
\arguments{
\item{f}{function to integrate}
\item{fp}{function representing the derivative of \code{f}}
\item{x}{an initial estim... | /man/newton.Rd | no_license | helixcn/cmna | R | false | true | 1,065 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/newton.R
\name{newton}
\alias{newton}
\title{Newton's method}
\usage{
newton(f, fp, x, tol = 0.001, m = 100)
}
\arguments{
\item{f}{function to integrate}
\item{fp}{function representing the derivative of \code{f}}
\item{x}{an initial estim... |
########## STATS 454 - ASSIGNMENT 2 ##########
### Authors: Steve Hof and Stephen Scinocca
###
### Purpose: Using the HIV data from Assignment 1, implement 8 classification
### algorithms to classify to judge whether the drug in question is
### is resistent to the mutation. To choose the best al... | /a2-proper.R | no_license | steve-hof/HIV_Resistance | R | false | false | 6,879 | r | ########## STATS 454 - ASSIGNMENT 2 ##########
### Authors: Steve Hof and Stephen Scinocca
###
### Purpose: Using the HIV data from Assignment 1, implement 8 classification
### algorithms to classify to judge whether the drug in question is
### is resistent to the mutation. To choose the best al... |
# talk palette for rotation
clr_cc <- "gold"
# hex"#FFD700"
clr_rot <- "green4"
# hex "#008B00"
clr_div <- "darkorchid4"
# hex "#68228B" | /05_talk-figs/talk-palette.R | no_license | vanichols/ghproj_ccgap | R | false | false | 143 | r | # talk palette for rotation
clr_cc <- "gold"
# hex"#FFD700"
clr_rot <- "green4"
# hex "#008B00"
clr_div <- "darkorchid4"
# hex "#68228B" |
#' Title: Rap Songs
#' Purpose: Rate of speech for hip/hop; Build a plot of the rate of change for lyrics
#' Author: Ted Kwartler
#' License: GPL>=3
#' Date: Dec 28 2020
#'
# Set wd
setwd("~/Documents/GitHub//Harvard_NLP_Student/lessons/D_Associations_WordClouds/data")
# Options
options(stringsAsFactors = F, scipen =... | /lessons/D_Associations_WordClouds/scripts/G_RapSongs.R | no_license | hewness/Harvard_NLP_Student | R | false | false | 4,347 | r | #' Title: Rap Songs
#' Purpose: Rate of speech for hip/hop; Build a plot of the rate of change for lyrics
#' Author: Ted Kwartler
#' License: GPL>=3
#' Date: Dec 28 2020
#'
# Set wd
setwd("~/Documents/GitHub//Harvard_NLP_Student/lessons/D_Associations_WordClouds/data")
# Options
options(stringsAsFactors = F, scipen =... |
#
# This test file has been generated by kwb.test::create_test_files()
#
test_that(".printWtaqConfSolution() works", {
expect_error(kwb.wtaq:::.printWtaqConfSolution())
})
| /tests/testthat/test-function-.printWtaqConfSolution.R | permissive | KWB-R/kwb.wtaq | R | false | false | 177 | r | #
# This test file has been generated by kwb.test::create_test_files()
#
test_that(".printWtaqConfSolution() works", {
expect_error(kwb.wtaq:::.printWtaqConfSolution())
})
|
stopifnot(require("testthat"),
require("glmmTMB"))
data(Salamanders, package = "glmmTMB")
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
m1 <- glmmTMB(count~ mined, family=poisson, data=Salamanders,
start=list(beta=c(0,2)),
map=list(beta=factor(c(1,NA))))
m2 <- glmmTMB(count~ ... | /glmmTMB/tests/testthat/test-mapopt.R | no_license | glmmTMB/glmmTMB | R | false | false | 3,325 | r | stopifnot(require("testthat"),
require("glmmTMB"))
data(Salamanders, package = "glmmTMB")
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
m1 <- glmmTMB(count~ mined, family=poisson, data=Salamanders,
start=list(beta=c(0,2)),
map=list(beta=factor(c(1,NA))))
m2 <- glmmTMB(count~ ... |
#load library
library(haven)
library(lubridate)
##分组回归
library(lme4)
library(dplyr)
df.raw<-read_sas("data/stockreturn.sas7bdat")
df<-df.raw
df$DATE<-as.Date(df$DATE, origin="1960-01-01")
df$YEAR<-year(df$DATE)
df$MONTH<-month(df$DATE)#duplicate month problem
head(df)
df2<-subset(df,YEAR>1926 & YEAR<1929,select =... | /DataAnalysis-master/12_20 course.R | no_license | heyouxin/R-Codes | R | false | false | 630 | r | #load library
library(haven)
library(lubridate)
##分组回归
library(lme4)
library(dplyr)
df.raw<-read_sas("data/stockreturn.sas7bdat")
df<-df.raw
df$DATE<-as.Date(df$DATE, origin="1960-01-01")
df$YEAR<-year(df$DATE)
df$MONTH<-month(df$DATE)#duplicate month problem
head(df)
df2<-subset(df,YEAR>1926 & YEAR<1929,select =... |
simDegroot = function(g, rounds, TRUTH=0, return.distribution=F) {
g$deg.cent = centralization.degree(g, loops=F)$centralization
GAME_LENGTH=rounds
output = data.frame()
V(g)$new_guess=NA
for(i in 0:GAME_LENGTH) {
output_row = data.frame(
N=vcount(g),
deg.cent=g$deg.cent,
truth=TRUTH,
... | /DeGroot_Function.R | no_license | vhrtanek/degroot-simulation | R | false | false | 891 | r | simDegroot = function(g, rounds, TRUTH=0, return.distribution=F) {
g$deg.cent = centralization.degree(g, loops=F)$centralization
GAME_LENGTH=rounds
output = data.frame()
V(g)$new_guess=NA
for(i in 0:GAME_LENGTH) {
output_row = data.frame(
N=vcount(g),
deg.cent=g$deg.cent,
truth=TRUTH,
... |
### NFL Big Data Bowl 2020-21
# Robert Bernhardt, Andrew Rogan, Daniel Weiss
# October 2020
## Main R-Runner File
MainDir = getwd()
## Production Options (ProdOpts)
ScriptName = paste(MainDir , "/prod_opts.r" , sep = "")
source(ScriptName)
## Import Data
ScriptName = paste(MainDir , "/Cleaning/import_data.r"... | /main.r | no_license | rbernhardt12/Big-Data-Bowl-20-Public | R | false | false | 754 | r | ### NFL Big Data Bowl 2020-21
# Robert Bernhardt, Andrew Rogan, Daniel Weiss
# October 2020
## Main R-Runner File
MainDir = getwd()
## Production Options (ProdOpts)
ScriptName = paste(MainDir , "/prod_opts.r" , sep = "")
source(ScriptName)
## Import Data
ScriptName = paste(MainDir , "/Cleaning/import_data.r"... |
datapath <- Sys.getenv("MGMTPLANE_DATA")
codepath <- Sys.getenv("MGMTPLANE_CODE")
datafile <- "all_metrics_1m_nomissing_filtered.csv"
source(paste(codepath,'analyze/read_metrics.R',sep="/"))
source(paste(codepath,'analyze/width_bins.R',sep="/"))
x <- binned$NumRoles
y <- metrics$NumModels
y <- y[which(x < 7)]
x <- x[w... | /plots/numroles_nummodels_boxplot.R | no_license | agember/mpa | R | false | false | 769 | r | datapath <- Sys.getenv("MGMTPLANE_DATA")
codepath <- Sys.getenv("MGMTPLANE_CODE")
datafile <- "all_metrics_1m_nomissing_filtered.csv"
source(paste(codepath,'analyze/read_metrics.R',sep="/"))
source(paste(codepath,'analyze/width_bins.R',sep="/"))
x <- binned$NumRoles
y <- metrics$NumModels
y <- y[which(x < 7)]
x <- x[w... |
\name{authenticate}
\alias{authenticate}
\title{authenticate}
\description{Authenticate with GSCF}
\usage{authenticate(user, pass, shared.key)}
\arguments{
\item{user}{The username}
\item{pass}{The password}
\item{shared.key}{The shared key (can be found at your profile page in the GSCF web interface)}
}... | /man/authenticate.Rd | no_license | parthasen/GSCF-RClient | R | false | false | 385 | rd | \name{authenticate}
\alias{authenticate}
\title{authenticate}
\description{Authenticate with GSCF}
\usage{authenticate(user, pass, shared.key)}
\arguments{
\item{user}{The username}
\item{pass}{The password}
\item{shared.key}{The shared key (can be found at your profile page in the GSCF web interface)}
}... |
#' @export
bro_gg_barscatter <- function(df, x, y, title = NULL, bar_color = "#EA883D") {
df %>%
ggplot(aes({{x}}, {{y}})) +
stat_summary(fun.y = mean, geom = "bar", width = 0.4, fill = bar_color) +
stat_summary(fun.data = mean_se, geom = "errorbar", width = 0.2) +
geom_point(position = position_jitt... | /R/plotting.R | permissive | jbengler/bro | R | false | false | 2,347 | r |
#' @export
bro_gg_barscatter <- function(df, x, y, title = NULL, bar_color = "#EA883D") {
df %>%
ggplot(aes({{x}}, {{y}})) +
stat_summary(fun.y = mean, geom = "bar", width = 0.4, fill = bar_color) +
stat_summary(fun.data = mean_se, geom = "errorbar", width = 0.2) +
geom_point(position = position_jitt... |
#####Creating Plots using R Base Plotting system
energy_data <- read.delim("C://Users//ssakub//Desktop//Reference_material//R//Data-Science-Specialisation-using-R//Assignments//Exploratory_Data_Analysis//household_power_consumption.txt", sep=';', header =TRUE)
# SUbset the dataset to keep the required data for da... | /plot3.R | no_license | sivarohith77/datasciencecoursera | R | false | false | 1,548 | r | #####Creating Plots using R Base Plotting system
energy_data <- read.delim("C://Users//ssakub//Desktop//Reference_material//R//Data-Science-Specialisation-using-R//Assignments//Exploratory_Data_Analysis//household_power_consumption.txt", sep=';', header =TRUE)
# SUbset the dataset to keep the required data for da... |
wdPageBreak <-
function (wdapp = .R2wd)
{
wdapp[["Selection"]]$InsertBreak(7)
}
| /R2wd/R/wdPageBreak.R | no_license | ingted/R-Examples | R | false | false | 91 | r | wdPageBreak <-
function (wdapp = .R2wd)
{
wdapp[["Selection"]]$InsertBreak(7)
}
|
library(purrr)
library(eurostat)
library(dplyr)
library(ggplot2)
library(stringr)
# Data from Eurostat
current_pop <- get_eurostat("demo_r_pjangrp3", time_format = "raw", stringsAsFactors = FALSE) %>%
filter(time == 2015,
nchar(geo) == 4,
sex == "T",
age == "TOTAL") %>%
select(-unit) %... | /SGH/Spatial Econometrics/1 lesson/Example.R | no_license | Valkoiset/myrepo | R | false | false | 1,808 | r | library(purrr)
library(eurostat)
library(dplyr)
library(ggplot2)
library(stringr)
# Data from Eurostat
current_pop <- get_eurostat("demo_r_pjangrp3", time_format = "raw", stringsAsFactors = FALSE) %>%
filter(time == 2015,
nchar(geo) == 4,
sex == "T",
age == "TOTAL") %>%
select(-unit) %... |
#' Generate a coherent list of model specs
#'
#' Generates an internally consistent list of model specifications that may be
#' passed to \code{metab_bayes}, \code{metab_mle}, etc. via the \code{specs}
#' argument. This help file gives the definitive list of all possible model
#' specs, but only a subset of these are r... | /R/specs.R | permissive | lsdeel/streamMetabolizer | R | false | false | 37,097 | r | #' Generate a coherent list of model specs
#'
#' Generates an internally consistent list of model specifications that may be
#' passed to \code{metab_bayes}, \code{metab_mle}, etc. via the \code{specs}
#' argument. This help file gives the definitive list of all possible model
#' specs, but only a subset of these are r... |
#' @include parse.R
#' @include sugar.R
#' @include rule.R
NULL
#### EXPRESSIONSET OBJECT -----------------------------------------------------
#' Superclass for storing a set of rich expressions.
#'
#' @section Details:
#' This class is aimed at developers of this package or packages depending on
#' it, not at use... | /pkg/R/expressionset.R | no_license | lxhui/validate | R | false | false | 22,793 | r | #' @include parse.R
#' @include sugar.R
#' @include rule.R
NULL
#### EXPRESSIONSET OBJECT -----------------------------------------------------
#' Superclass for storing a set of rich expressions.
#'
#' @section Details:
#' This class is aimed at developers of this package or packages depending on
#' it, not at use... |
#' Evaluate f with x and y, badly
#'
#' @param x first input
#' @param y second input
#' @param f function to be evaluated using inputs x and y
#'
#' @export
butcher <- function(x, y, f) {
env <- new.env() # create a new environment
environment(f) <- env
f(x,y)
}
#' Evaluate f with x and y
#'
#' @param x firs... | /R/operate.R | permissive | djnavarro/ohno | R | false | false | 467 | r |
#' Evaluate f with x and y, badly
#'
#' @param x first input
#' @param y second input
#' @param f function to be evaluated using inputs x and y
#'
#' @export
butcher <- function(x, y, f) {
env <- new.env() # create a new environment
environment(f) <- env
f(x,y)
}
#' Evaluate f with x and y
#'
#' @param x firs... |
FancyRF_plot=function(modelpath){
setwd(modelpath)
train=read.csv("training.csv")
train=select(train, -Contract.Number)
test=read.csv("testing.csv")
test=select(test, -Contract.Number)
#train$code=ifelse(train$code =="MG",1,0)
#test$code=ifelse(test$code =="MG",1,0)
ds=splitmix(train)
var... | /R/FancyRF_plot.R | no_license | AVJdataminer/Squeaky | R | false | false | 6,861 | r | FancyRF_plot=function(modelpath){
setwd(modelpath)
train=read.csv("training.csv")
train=select(train, -Contract.Number)
test=read.csv("testing.csv")
test=select(test, -Contract.Number)
#train$code=ifelse(train$code =="MG",1,0)
#test$code=ifelse(test$code =="MG",1,0)
ds=splitmix(train)
var... |
## your gonna need to download and change the path to the latestcdc.csv file
latestcdc <- read_csv("Desktop/UNC/Sophomore/Fall/datachallenge/latestcdc.csv")
all <- as.data.frame(latestcdc)
all = all[-1,]
all = all[,-(1:2)]
view(all)
matt = matrix(ncol = ncol(all), nrow = nrow(all))
a = data.frame(matt)
for (i in 1:nro... | /submission/rcode/cleaning_and_modeling.R | permissive | ZachChaloupecky/CarolinaDataChallenge | R | false | false | 9,415 | r | ## your gonna need to download and change the path to the latestcdc.csv file
latestcdc <- read_csv("Desktop/UNC/Sophomore/Fall/datachallenge/latestcdc.csv")
all <- as.data.frame(latestcdc)
all = all[-1,]
all = all[,-(1:2)]
view(all)
matt = matrix(ncol = ncol(all), nrow = nrow(all))
a = data.frame(matt)
for (i in 1:nro... |
# Import packages
library(shiny)
# Define UI for our application
shinyUI(navbarPage(
# Application title
title="European Union States",
# Application id
id = "mynav",
# Tab layout for different components
tabPanel("Introduction",
# Introduction to the applicat... | /European-Union-States/ui.R | no_license | prafful-agrawal/Developing-Data-Products-Project | R | false | false | 1,589 | r | # Import packages
library(shiny)
# Define UI for our application
shinyUI(navbarPage(
# Application title
title="European Union States",
# Application id
id = "mynav",
# Tab layout for different components
tabPanel("Introduction",
# Introduction to the applicat... |
setwd("~/repos/github/population-linkage/src/main/scripts/R")
source("FunctionBank.R")
#conditionLoadIntoGlobal( "~/repos/github/population-linkage/src/main/resources/UmeaThresholdBirthSiblingLinkage.csv", "mydata" )
conditionLoadIntoGlobal( "~/repos/github/population-linkage/src/main/resources/UmeaBirthSiblingPRFByTh... | /src/main/scripts/R/plotAllConvergence.R | no_license | MengsiLu/population-linkage-master | R | false | false | 1,611 | r | setwd("~/repos/github/population-linkage/src/main/scripts/R")
source("FunctionBank.R")
#conditionLoadIntoGlobal( "~/repos/github/population-linkage/src/main/resources/UmeaThresholdBirthSiblingLinkage.csv", "mydata" )
conditionLoadIntoGlobal( "~/repos/github/population-linkage/src/main/resources/UmeaBirthSiblingPRFByTh... |
require(RSQLite)
require(dplyr)
library(cRegulome)
library(reshape2)
db <- dbConnect(SQLite(), '../cregart/cRegulome.db')
mirna <- c("hsa-miR-18b*", "hsa-miR-409-3p", "hsa-let-7g", "hsa-miR-30c", "hsa-miR-30a", "hsa-miR-150", "hsa-miR-1237",
"hsa-miR-200a", "hsa-let-7f", "hsa-miR-92b", "hsa-miR-497", "hsa-m... | /inst/extdata/make_testset.R | no_license | cran/cRegulome | R | false | false | 2,751 | r | require(RSQLite)
require(dplyr)
library(cRegulome)
library(reshape2)
db <- dbConnect(SQLite(), '../cregart/cRegulome.db')
mirna <- c("hsa-miR-18b*", "hsa-miR-409-3p", "hsa-let-7g", "hsa-miR-30c", "hsa-miR-30a", "hsa-miR-150", "hsa-miR-1237",
"hsa-miR-200a", "hsa-let-7f", "hsa-miR-92b", "hsa-miR-497", "hsa-m... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{nsample}
\alias{nsample}
\title{Generate normally distributed random inputs.}
\usage{
nsample(mean, sd, nsamples, problem)
}
\arguments{
\item{mean}{scalar or vector specifying the mean value for each decision
variable}
\item{sd}{scalar or vector sp... | /sup/OpenMORDM Supplemental Material Rev2/OpenMORDM/man/nsample.Rd | no_license | pedroliman/ie-mordm | R | false | false | 547 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{nsample}
\alias{nsample}
\title{Generate normally distributed random inputs.}
\usage{
nsample(mean, sd, nsamples, problem)
}
\arguments{
\item{mean}{scalar or vector specifying the mean value for each decision
variable}
\item{sd}{scalar or vector sp... |
library(shiny)
library(kernlab) # Support Vector Machines
library(pROC)
shinyServer(function(input, output) {
library(MASS)
library(kernlab)
Normalization <- function(xl) {
n <- dim(xl)[2] - 1
for(i in 1:n) {
xl[,i] <- (xl[,i]-mean(xl[,i]))/sd(xl[,i])
}
... | /linear/linear/server.R | no_license | Mikel4u4u/machine-learning | R | false | false | 4,987 | r | library(shiny)
library(kernlab) # Support Vector Machines
library(pROC)
shinyServer(function(input, output) {
library(MASS)
library(kernlab)
Normalization <- function(xl) {
n <- dim(xl)[2] - 1
for(i in 1:n) {
xl[,i] <- (xl[,i]-mean(xl[,i]))/sd(xl[,i])
}
... |
#PROYECTO
####### working directory
####### "/home/jcr/Documentos/coursera"
library(DBI)
library(sqldf)
Data_Medicion1<-read.table("./X_train.txt",header = FALSE)
head(Data_Medicion1)
Data_Medicion2<-read.table("./X_test.txt",header = FALSE)
head(Data_Medicion2)
# tabla con las variables de los sub grupos
sub_gr... | /run_analysis.R | no_license | CARLOSJUANR/datasciencecoursera | R | false | false | 2,402 | r | #PROYECTO
####### working directory
####### "/home/jcr/Documentos/coursera"
library(DBI)
library(sqldf)
Data_Medicion1<-read.table("./X_train.txt",header = FALSE)
head(Data_Medicion1)
Data_Medicion2<-read.table("./X_test.txt",header = FALSE)
head(Data_Medicion2)
# tabla con las variables de los sub grupos
sub_gr... |
#This script generates the single tails for model inputs
library(plyr)
for(i in 1:10){
#keep steady state in there?
tp40m_ <- read.table(paste0("single_tag_files/background_subtracted_single_tag_files/bootstrap/tp40m_bs_minus_miR-155_v7_BOOTSTRAP_HYBRID20190731_",i,".txt"))
tp1hr_ <- read.table(paste0("single_tag_f... | /KinetTlnAnalysis/BootstrapScripts/bootstrap_st_data_files_single_gene_HYBRID.R | no_license | timeisen/DynamicsOfCytoplasmicMrnaMetabolism | R | false | false | 2,698 | r | #This script generates the single tails for model inputs
library(plyr)
for(i in 1:10){
#keep steady state in there?
tp40m_ <- read.table(paste0("single_tag_files/background_subtracted_single_tag_files/bootstrap/tp40m_bs_minus_miR-155_v7_BOOTSTRAP_HYBRID20190731_",i,".txt"))
tp1hr_ <- read.table(paste0("single_tag_f... |
print("##################")
print("Chapter 8 models - ROBUSTNESS")
print("##################")
summary(cityweek.data.diffusion$report_ratio_ag_l_centered)
Sys.time()
ptm <- proc.time() # Start the clock
ch8.cityweek.bare <- brm(protests ~ log(numactivepc_l+1) + lastprotestelsewhere_lnumactivepc_max + log(timesince... | /analysis/ch8_brms_robustness.R | no_license | espengroed/WR_internet_protest_book | R | false | false | 5,035 | r | print("##################")
print("Chapter 8 models - ROBUSTNESS")
print("##################")
summary(cityweek.data.diffusion$report_ratio_ag_l_centered)
Sys.time()
ptm <- proc.time() # Start the clock
ch8.cityweek.bare <- brm(protests ~ log(numactivepc_l+1) + lastprotestelsewhere_lnumactivepc_max + log(timesince... |
x<-seq(0.0,0.1699,0.0001)
ytop<-dnorm(0.12,0.08,0.02)
MyDF<-data.frame(x=x,y=dnorm(x,0.08,0.02))
shade1 <- rbind(c(0.12,0), subset(MyDF, x > 0.12), c(MyDF[nrow(MyDF), "X"], 0))
shade2 <- rbind(c(0.12,0),subset(MyDF, x >= 0.12))
library(ggplot2)
p <- qplot(x=MyDF$x, y=MyDF$y, geom="line")
p + geom_segment(aes(x=0.12... | /Univariate/week_5_chi_and_t_test/ggplot_shaded.r | no_license | mivalek/UoE | R | false | false | 434 | r | x<-seq(0.0,0.1699,0.0001)
ytop<-dnorm(0.12,0.08,0.02)
MyDF<-data.frame(x=x,y=dnorm(x,0.08,0.02))
shade1 <- rbind(c(0.12,0), subset(MyDF, x > 0.12), c(MyDF[nrow(MyDF), "X"], 0))
shade2 <- rbind(c(0.12,0),subset(MyDF, x >= 0.12))
library(ggplot2)
p <- qplot(x=MyDF$x, y=MyDF$y, geom="line")
p + geom_segment(aes(x=0.12... |
ddir <- "/Users/gelkouh/Google Drive (UChicago)/EIA Cohort (Shared Folder)/data"
# Change this file path to reflect the file path to where the `data` folder for this project is stored on your machine
# You can download the `data` folder here: https://drive.google.com/drive/folders/1kZHpzNzSht9ov1M0jJPrRLT_KGFKH7Es?usp=... | /data.R | no_license | gelkouh/eia-oeconomica | R | false | false | 327 | r | ddir <- "/Users/gelkouh/Google Drive (UChicago)/EIA Cohort (Shared Folder)/data"
# Change this file path to reflect the file path to where the `data` folder for this project is stored on your machine
# You can download the `data` folder here: https://drive.google.com/drive/folders/1kZHpzNzSht9ov1M0jJPrRLT_KGFKH7Es?usp=... |
#' Clean a project
#'
#' Clean up a project and its associated \R libraries.
#'
#' # Actions
#'
#' The following clean actions are available:
#'
#' \describe{
#'
#' \item{`package.locks`}{
#'
#' During package installation, \R will create package locks in the
#' library path, typically named `00LOCK-<package>`. On... | /R/clean.R | permissive | rstudio/renv | R | false | false | 8,949 | r |
#' Clean a project
#'
#' Clean up a project and its associated \R libraries.
#'
#' # Actions
#'
#' The following clean actions are available:
#'
#' \describe{
#'
#' \item{`package.locks`}{
#'
#' During package installation, \R will create package locks in the
#' library path, typically named `00LOCK-<package>`. On... |
for(i in 25:1) {
cat(i^2, "\n")
} | /Assignment 03A.R | no_license | Rebeccas1016/BIS-044-shaoyiping | R | false | false | 35 | r | for(i in 25:1) {
cat(i^2, "\n")
} |
install.packages("randomForest")
install.packages("pmml")
install.packages("XML")
install.packages("rpart")
install.packages("rattle")
install.packages("ggplot2")
setClass('myDate')
setAs("character","myDate", function(from) as.Date(from, format="%m/%d/%Y") )
mydata <- read.delim("c:\\users\\addoyle1\\Desktop\\Hospit... | /src/main/resources/hospitalData.R | no_license | myp3tr0ck/Seasonality | R | false | false | 4,531 | r | install.packages("randomForest")
install.packages("pmml")
install.packages("XML")
install.packages("rpart")
install.packages("rattle")
install.packages("ggplot2")
setClass('myDate')
setAs("character","myDate", function(from) as.Date(from, format="%m/%d/%Y") )
mydata <- read.delim("c:\\users\\addoyle1\\Desktop\\Hospit... |
library(testthat)
library(Team5)
test_check("Team5")
| /tests/testthat.R | no_license | xinzhang-nac/STAT585_LAB3 | R | false | false | 54 | r | library(testthat)
library(Team5)
test_check("Team5")
|
#' Cards, blocks of content
#'
#' Create blocks of content with `card`. `deck` is used to group and add padding
#' is placed around any number of cards. Additionally, grouping cards with
#' `deck` has the benefit of aligning the footer of each card.
#'
#' @param ... For **card**, character strings, tag elements, or lis... | /R/card.R | permissive | rpodcast/yonder | R | false | false | 6,438 | r | #' Cards, blocks of content
#'
#' Create blocks of content with `card`. `deck` is used to group and add padding
#' is placed around any number of cards. Additionally, grouping cards with
#' `deck` has the benefit of aligning the footer of each card.
#'
#' @param ... For **card**, character strings, tag elements, or lis... |
source("/Users/bowmanr/Projects/Imm_profile/Scripts/DCQ/Immune_cell_abundance_functions.r")
setwd("/Users/bowmanr/Projects/BLZ945/Analysis/12.1.12")
load("./exprs.list.RData",verbose=TRUE)
load("./clinical.list.RData",verbose=TRUE)
setwd("/Volumes/MacintoshHD3/data/TCGA_Assembler/Data")
x="GBM"
i=1
folder <- "elastic_... | /Scripts/Misc/Temp1\.r | no_license | bowmanr/immunological-profiling | R | false | false | 3,882 | r | source("/Users/bowmanr/Projects/Imm_profile/Scripts/DCQ/Immune_cell_abundance_functions.r")
setwd("/Users/bowmanr/Projects/BLZ945/Analysis/12.1.12")
load("./exprs.list.RData",verbose=TRUE)
load("./clinical.list.RData",verbose=TRUE)
setwd("/Volumes/MacintoshHD3/data/TCGA_Assembler/Data")
x="GBM"
i=1
folder <- "elastic_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/period.R
\name{get_year}
\alias{get_year}
\title{This function returns the year of a \code{\link{period}}}
\usage{
get_year(x)
}
\arguments{
\item{x}{a \code{\link{period}}}
}
\value{
the year
}
\description{
This function returns the year of... | /pkg/man/get_year.Rd | no_license | timemod/regts | R | false | true | 426 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/period.R
\name{get_year}
\alias{get_year}
\title{This function returns the year of a \code{\link{period}}}
\usage{
get_year(x)
}
\arguments{
\item{x}{a \code{\link{period}}}
}
\value{
the year
}
\description{
This function returns the year of... |
library(testthat)
library(badgeR)
test_check("badgeR")
| /tests/testthat.R | no_license | villegar/badgeR-1 | R | false | false | 56 | r | library(testthat)
library(badgeR)
test_check("badgeR")
|
setwd("C:/Users/sametyazak/Desktop/ynwa/bau/2017 - Thesis/code/r/")
library("ggplot2")
#completeData = read.csv(file="..\\..\\data\\workspace\\real_full_standard.csv", header=TRUE, sep=",")
blockData$calculated_anomaly = 0
corrList = data.frame(matrix(ncol = 4, nrow = 0))
colnames(corrList) <- c("counter", "startIndex... | /code/r/frequency_2.R | no_license | yazaksamet/masterthesis | R | false | false | 1,907 | r | setwd("C:/Users/sametyazak/Desktop/ynwa/bau/2017 - Thesis/code/r/")
library("ggplot2")
#completeData = read.csv(file="..\\..\\data\\workspace\\real_full_standard.csv", header=TRUE, sep=",")
blockData$calculated_anomaly = 0
corrList = data.frame(matrix(ncol = 4, nrow = 0))
colnames(corrList) <- c("counter", "startIndex... |
summary.BootDisMANOVA <- function(object, Latex = FALSE, ...){
cat(" ###### Bootstrap Distance Based MANOVA Analysis #######\n\n")
cat("Call\n")
print(object$call)
cat("________________________________________________\n\n")
cat("Contrast Matrix\n")
print(object$C)
cat("____________________________________... | /R/summary.BootDisMANOVA.R | no_license | cran/PERMANOVA | R | false | false | 1,142 | r | summary.BootDisMANOVA <- function(object, Latex = FALSE, ...){
cat(" ###### Bootstrap Distance Based MANOVA Analysis #######\n\n")
cat("Call\n")
print(object$call)
cat("________________________________________________\n\n")
cat("Contrast Matrix\n")
print(object$C)
cat("____________________________________... |
#################################################################
### description:
###
### Compute the log-censored likelihood of multivariate normal
### (additive error) or log-normal (multiplicative error)
### for a given row of data
### Author: Vahid Nassiri <vahid.nassiri@openanalytics.eu>
### maintainer: Vahid Nas... | /R/computeLogLikforEachRow.R | no_license | cran/BLOQ | R | false | false | 2,519 | r | #################################################################
### description:
###
### Compute the log-censored likelihood of multivariate normal
### (additive error) or log-normal (multiplicative error)
### for a given row of data
### Author: Vahid Nassiri <vahid.nassiri@openanalytics.eu>
### maintainer: Vahid Nas... |
#!/usr/bin/env Rscript
args <- commandArgs(TRUE)
summary_dir <- as.character(args[1])
file_type <- as.character(args[2])
header <- as.logical(args[3])
out <- args[4]
message("Output file: ", out, "\n")
create_consolidated_miso_summary <- function(summary_dir, file_type = "miso_summary", header = ... | /createConsolidatedMISOSummaries_foreach.R | no_license | adamstruck/dmseq | R | false | false | 6,823 | r | #!/usr/bin/env Rscript
args <- commandArgs(TRUE)
summary_dir <- as.character(args[1])
file_type <- as.character(args[2])
header <- as.logical(args[3])
out <- args[4]
message("Output file: ", out, "\n")
create_consolidated_miso_summary <- function(summary_dir, file_type = "miso_summary", header = ... |
# This code is programmed in R v2.15.2.with iGraph v0.7.0 and netrw v0.2.6
# Homework 2 Question 3
# clearing workspace
closeAllConnections()
rm(list=ls())
# Load libraries
library("igraph")
library("netrw")
############################### Part a ###############################
# generate graph from 1a
num_nodes <-... | /Q3.R | no_license | steven0leung/EE232E-HW2 | R | false | false | 2,231 | r | # This code is programmed in R v2.15.2.with iGraph v0.7.0 and netrw v0.2.6
# Homework 2 Question 3
# clearing workspace
closeAllConnections()
rm(list=ls())
# Load libraries
library("igraph")
library("netrw")
############################### Part a ###############################
# generate graph from 1a
num_nodes <-... |
# file downloaded, unzipped
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
"household_power_consumption.zip")
unzip("household_power_consumption.zip")
unlink("household_power_consumption.zip")
file_desc = "household_power_consumption.txt"
# table ... | /plot1.R | no_license | choseee/ExData_Plotting1 | R | false | false | 906 | r | # file downloaded, unzipped
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
"household_power_consumption.zip")
unzip("household_power_consumption.zip")
unlink("household_power_consumption.zip")
file_desc = "household_power_consumption.txt"
# table ... |
###########################################################################
###########################################################################
### ###
### EucFACE carbon budget code repository ###
### ... | /run.R | no_license | mingkaijiang/EucFACE_carbon_budget_paper | R | false | false | 34,212 | r | ###########################################################################
###########################################################################
### ###
### EucFACE carbon budget code repository ###
### ... |
% Auto-generated: do not edit by hand
\name{htmlH1}
\alias{htmlH1}
\title{H1 component}
\description{
H1 is a wrapper for the <h1> HTML5 element. For detailed attribute info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1
}
\usage{
htmlH1(children=NULL, id=NULL, n_clicks=NULL, n_clicks_timestamp=N... | /man/htmlH1.Rd | permissive | o3cloud/dash-html-components | R | false | false | 3,296 | rd | % Auto-generated: do not edit by hand
\name{htmlH1}
\alias{htmlH1}
\title{H1 component}
\description{
H1 is a wrapper for the <h1> HTML5 element. For detailed attribute info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1
}
\usage{
htmlH1(children=NULL, id=NULL, n_clicks=NULL, n_clicks_timestamp=N... |
library(dplyr)
##--------------------------------------
## Functions
##--------------------------------------
##--------------------------------------
## Dependencies:
## a. dplyr: df manipulation
##--------------------------------------
##--------------------------------------
## Name: split_df
## Input:
## 1) df-->... | /Misc/R_KNN/knn_algorithm_functions_BASIC.R | no_license | jamesijw23/ml_algorithms | R | false | false | 6,903 | r | library(dplyr)
##--------------------------------------
## Functions
##--------------------------------------
##--------------------------------------
## Dependencies:
## a. dplyr: df manipulation
##--------------------------------------
##--------------------------------------
## Name: split_df
## Input:
## 1) df-->... |
#required libraries
library("arm")
#import and filtering
data <- read.table("exercise2.1.dat", header=TRUE)
test.set <- data[is.na(data$y),]
data <- data[!is.na(data$y),]
#linear regression
fit <- lm(y ~ x1 + x2, data)
display(fit)
#plot
fit.sim <- sim(fit)
plot(data$x1, data$y, xlab="x1", ylab="y")
for(i in 1:lengt... | /Gabi/3/ejercicio3.1.R | no_license | iair-embon/Curso_Regresion | R | false | false | 1,008 | r | #required libraries
library("arm")
#import and filtering
data <- read.table("exercise2.1.dat", header=TRUE)
test.set <- data[is.na(data$y),]
data <- data[!is.na(data$y),]
#linear regression
fit <- lm(y ~ x1 + x2, data)
display(fit)
#plot
fit.sim <- sim(fit)
plot(data$x1, data$y, xlab="x1", ylab="y")
for(i in 1:lengt... |
library(ggplot2)
library(dplyr)
library(ggimage)
library(gganimate)
#tworzenie ramki danych, choinka jest narysowana dzieki funkcji 1/x
bot <- seq(from = -3, to = 3, by = 0.01)
mid <- seq(from = -2, to = 2, by = 0.01)
up <- seq(from = -1, to = 1, by = 0.01)
pal <- c('#00BC59', '#00BE6C', '#00BF7D')
fbot ... | /homeworks/homework_9/olender_przemyslaw/choinka.R | no_license | iketutg/2021Z-DataVisualizationTechniques | R | false | false | 2,529 | r | library(ggplot2)
library(dplyr)
library(ggimage)
library(gganimate)
#tworzenie ramki danych, choinka jest narysowana dzieki funkcji 1/x
bot <- seq(from = -3, to = 3, by = 0.01)
mid <- seq(from = -2, to = 2, by = 0.01)
up <- seq(from = -1, to = 1, by = 0.01)
pal <- c('#00BC59', '#00BE6C', '#00BF7D')
fbot ... |
##################################################
## Model Comparison ##
## By Kate Mills & Nandi Vijayakumar ##
##################################################
## Load required packages
packages <- c("lme4", "nlme", "ggplot2", "dplyr", "tidyr", "knitr",
"par... | /Model_Comparison/Model_Comparison.R | no_license | raschroeder/structural-workshop | R | false | false | 5,600 | r | ##################################################
## Model Comparison ##
## By Kate Mills & Nandi Vijayakumar ##
##################################################
## Load required packages
packages <- c("lme4", "nlme", "ggplot2", "dplyr", "tidyr", "knitr",
"par... |
T = 1000
theta = 0
norm1 = matrix(rnorm(3*T,mean=0,sd=1), 1, T)
norm2 = matrix(rnorm(3*T,mean=1,sd=2), 1, T)
norm3 = matrix(rnorm(3*T,mean=2,sd=sqrt(2)), 1, T)
norm = rbind(norm1,norm2,norm3)
h = norm[1,]
for (i in 1:T){
h[i] = (norm[1,i] + norm[2,i] + norm[3,i])/3
theta <- theta + h[i]
}
theta = theta/T
print(th... | /monte_carlo_frame_work.R | no_license | desidisivaprakash/large-scale-numerical-simulations | R | false | false | 324 | r | T = 1000
theta = 0
norm1 = matrix(rnorm(3*T,mean=0,sd=1), 1, T)
norm2 = matrix(rnorm(3*T,mean=1,sd=2), 1, T)
norm3 = matrix(rnorm(3*T,mean=2,sd=sqrt(2)), 1, T)
norm = rbind(norm1,norm2,norm3)
h = norm[1,]
for (i in 1:T){
h[i] = (norm[1,i] + norm[2,i] + norm[3,i])/3
theta <- theta + h[i]
}
theta = theta/T
print(th... |
\name{vismodel}
\alias{vismodel}
\title{Visual Models}
\usage{
vismodel(rspecdata, qcatch = c("Qi", "fi"), visual = c("avg.uv", "avg.v",
"bt", "star", "pfowl"), achromatic = c("bt.dc", "ch.dc", "st.dc", "ml",
"none"), illum = c("ideal", "bluesky", "D65", "forestshade"),
vonkries = FALSE, scale = 1, bkg = "ideal",... | /man/vismodel.Rd | no_license | biocrazy/pavo | R | false | false | 4,507 | rd | \name{vismodel}
\alias{vismodel}
\title{Visual Models}
\usage{
vismodel(rspecdata, qcatch = c("Qi", "fi"), visual = c("avg.uv", "avg.v",
"bt", "star", "pfowl"), achromatic = c("bt.dc", "ch.dc", "st.dc", "ml",
"none"), illum = c("ideal", "bluesky", "D65", "forestshade"),
vonkries = FALSE, scale = 1, bkg = "ideal",... |
# Exercise 4: external data sets: Gates Foundation Educational Grants
# Use the `read.csv()` functoin to read the data from the `data/gates_money.csv`
# file into a variable called `grants` using the `read.csv()`
# Be sure to set your working directory in RStudio, and do NOT treat strings as
# factors!
grants <- read... | /chapter-10-exercises/exercise-4/exercise.R | permissive | steele38/book-exercises | R | false | false | 1,342 | r | # Exercise 4: external data sets: Gates Foundation Educational Grants
# Use the `read.csv()` functoin to read the data from the `data/gates_money.csv`
# file into a variable called `grants` using the `read.csv()`
# Be sure to set your working directory in RStudio, and do NOT treat strings as
# factors!
grants <- read... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/author_df.R
\name{author_df}
\alias{author_df}
\alias{author_df_orig}
\alias{author_list}
\alias{author_data}
\title{Search Author Content on SCOPUS}
\usage{
author_df(
au_id = NULL,
last_name = NULL,
first_name = NULL,
api_key = NULL... | /man/author_df.Rd | no_license | muschellij2/rscopus | R | false | true | 2,329 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/author_df.R
\name{author_df}
\alias{author_df}
\alias{author_df_orig}
\alias{author_list}
\alias{author_data}
\title{Search Author Content on SCOPUS}
\usage{
author_df(
au_id = NULL,
last_name = NULL,
first_name = NULL,
api_key = NULL... |
source('/NFSShare/neil/Pathogen/Codechunk/tool.R')
#HDfas_path<-'/NFSShare/neil/Pathogen/Simulate_data/House_keeping.fasta'
output_path_header<-'./Blast_result/'
if (!file.exists(output_path_header)){
dir.create(output_path_header)
}
file_all<-list.files('./',recursive=T)
file_blastresult<-grep('nr_result.out$',fil... | /Code/Pathofinder/blast_cat_RSEM_ref.R | no_license | neil2003tw/Research_Pathofinder | R | false | false | 862 | r | source('/NFSShare/neil/Pathogen/Codechunk/tool.R')
#HDfas_path<-'/NFSShare/neil/Pathogen/Simulate_data/House_keeping.fasta'
output_path_header<-'./Blast_result/'
if (!file.exists(output_path_header)){
dir.create(output_path_header)
}
file_all<-list.files('./',recursive=T)
file_blastresult<-grep('nr_result.out$',fil... |
png("plot1.png", 480, 480)
data<-read.table("household_power_consumption.txt", sep=";",header=TRUE, na.strings="?")
data1<-subset(data, Date=="1/2/2007" | Date=="2/2/2007") ##subset data to only see two dates
histogram<-hist(data1$Global_active_power, xlab="Global Active Power (kilowatts)", main="Global Active Power", ... | /plot1.R | no_license | radmilam/ExData_Plotting1 | R | false | false | 341 | r | png("plot1.png", 480, 480)
data<-read.table("household_power_consumption.txt", sep=";",header=TRUE, na.strings="?")
data1<-subset(data, Date=="1/2/2007" | Date=="2/2/2007") ##subset data to only see two dates
histogram<-hist(data1$Global_active_power, xlab="Global Active Power (kilowatts)", main="Global Active Power", ... |
# debugging data
library(hashTagR)
library(data.table)
library(readr)
hashtags <- c("birdoftheyear", "boty") # a list of the hashtags to search for - see ?search_tweets
searchString <- hashTagR::createSearchFromTags(hashtags)
path <- "~/Data/twitter/boty2018/"
iPath <- path.expand(paste0(path, "raw/"))
timeZone <- "Pa... | /examples/checkData.R | no_license | dataknut/hashTagR | R | false | false | 1,416 | r | # debugging data
library(hashTagR)
library(data.table)
library(readr)
hashtags <- c("birdoftheyear", "boty") # a list of the hashtags to search for - see ?search_tweets
searchString <- hashTagR::createSearchFromTags(hashtags)
path <- "~/Data/twitter/boty2018/"
iPath <- path.expand(paste0(path, "raw/"))
timeZone <- "Pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/csm_utilities.R
\name{xname}
\alias{xname}
\title{X file unique identifiers}
\usage{
xname(wth, n)
}
\arguments{
\item{wth}{vector of weather file name (e.g. ZASP7932.WTH)}
\item{n}{length of vector}
}
\description{
X file unique identifiers... | /man/xname.Rd | no_license | ldemaz/rcropmod | R | false | true | 404 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/csm_utilities.R
\name{xname}
\alias{xname}
\title{X file unique identifiers}
\usage{
xname(wth, n)
}
\arguments{
\item{wth}{vector of weather file name (e.g. ZASP7932.WTH)}
\item{n}{length of vector}
}
\description{
X file unique identifiers... |
#' Conducting Gaussian Process Regression
#'
#' Conduct gaussian process regression based on the estimated ensemble kernel
#' matrix.
#'
#' After obtaining the ensemble kernel matrix, we can calculate the outpur of
#' gaussian process regression, the solution is given by
#' \deqn{\hat{\beta}=[1^T(K+\lambda I)^{-1}1]^{-... | /KMR0926/KMR0924_e-10/code/source/estimation.R | no_license | IrisTeng/CVEK-boot | R | false | false | 6,843 | r | #' Conducting Gaussian Process Regression
#'
#' Conduct gaussian process regression based on the estimated ensemble kernel
#' matrix.
#'
#' After obtaining the ensemble kernel matrix, we can calculate the outpur of
#' gaussian process regression, the solution is given by
#' \deqn{\hat{\beta}=[1^T(K+\lambda I)^{-1}1]^{-... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' AWS Mobile
#'
#' @description
#' AWS Mobile Service provides mobile app and website developers with
#' capabilities required to configure AWS resources and bootstrap their
#' developer... | /cran/paws.mobile/R/mobile_service.R | permissive | ryanb8/paws | R | false | false | 2,808 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' AWS Mobile
#'
#' @description
#' AWS Mobile Service provides mobile app and website developers with
#' capabilities required to configure AWS resources and bootstrap their
#' developer... |
#These functions were (loosely) based on similar functions created for the DEXSeq package.
#
# Note that DEXSeq is licensed under the GPL v3. Therefore this
# code packaged together is licensed under the GPL v3, as noted in the LICENSE file.
# Some code snippets are "united states government work" and thus cannot be
... | /shareMisc.Rutil/JunctionSeq/plotting.helpers.R | permissive | hartleys/REBC_SCNA_utils | R | false | false | 79,740 | r | #These functions were (loosely) based on similar functions created for the DEXSeq package.
#
# Note that DEXSeq is licensed under the GPL v3. Therefore this
# code packaged together is licensed under the GPL v3, as noted in the LICENSE file.
# Some code snippets are "united states government work" and thus cannot be
... |
VerifAcc <- function(x, y)
{
# countting the number of matched alignments
N <- length(x)
match <- 0
i <- 1
while (i <= N) {
x.aln <- paste(x[[i]][1, ], x[[i+1]][1, ], collapse = "")
y.aln <- paste(y[[i]][1, ], y[[i+1]][1, ], collapse = "")
i <- i+2
if (x.aln == y.aln) {
match <- match+... | /R/execution/verif_lib/VerifAcc.R | no_license | k198581/src | R | false | false | 452 | r | VerifAcc <- function(x, y)
{
# countting the number of matched alignments
N <- length(x)
match <- 0
i <- 1
while (i <= N) {
x.aln <- paste(x[[i]][1, ], x[[i+1]][1, ], collapse = "")
y.aln <- paste(y[[i]][1, ], y[[i+1]][1, ], collapse = "")
i <- i+2
if (x.aln == y.aln) {
match <- match+... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/branch.R
\name{branch}
\alias{branch}
\title{Detection of branch points in a skeletonized image}
\usage{
branch(x)
}
\arguments{
\item{x}{skeletonized image}
}
\description{
Detection of branch points in a skeletonized image
}
\examples{
bran... | /man/branch.Rd | permissive | tkatsuki/dipr | R | false | true | 328 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/branch.R
\name{branch}
\alias{branch}
\title{Detection of branch points in a skeletonized image}
\usage{
branch(x)
}
\arguments{
\item{x}{skeletonized image}
}
\description{
Detection of branch points in a skeletonized image
}
\examples{
bran... |
### but you have to use #'
internal.frechet.coerce2matrix <- function(A)
{
### various ways of extracting a matrix of coordinates
if (startsWith(class(A), "Spatial"))
{
M = coordinates(A);
}else{
tryCatch(
expr={M = as.matrix(A)},
error=function(e){
... | /r-package/frechet/R/api.R | permissive | mwernerds/frechetrange | R | false | false | 1,177 | r | ### but you have to use #'
internal.frechet.coerce2matrix <- function(A)
{
### various ways of extracting a matrix of coordinates
if (startsWith(class(A), "Spatial"))
{
M = coordinates(A);
}else{
tryCatch(
expr={M = as.matrix(A)},
error=function(e){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.