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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ISODigitalTransferOptions.R
\docType{class}
\name{ISODigitalTransferOptions}
\alias{ISODigitalTransferOptions}
\title{ISODigitalTransferOptions}
\format{\code{\link{R6Class}} object.}
\usage{
ISODigitalTransferOptions
}
\value{
Object... | /man/ISODigitalTransferOptions.Rd | no_license | sebkopf/geometa | R | false | false | 1,532 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ISODigitalTransferOptions.R
\docType{class}
\name{ISODigitalTransferOptions}
\alias{ISODigitalTransferOptions}
\title{ISODigitalTransferOptions}
\format{\code{\link{R6Class}} object.}
\usage{
ISODigitalTransferOptions
}
\value{
Object... |
shinyUI(bootstrapPage(
plotOutput(outputId = "full_image", height = "500px"),
sliderInput(inputId = "iterations_count",
label = "Количество итераций:",
min = 1, max = 10, value = 1, step = 1),
actionButton(inputId = "my_button", label = "Click me"),
selectInput(inputId = "n_br... | /UI.R | permissive | pasvistelik/r-combine-cutted-pictures | R | false | false | 1,282 | r | shinyUI(bootstrapPage(
plotOutput(outputId = "full_image", height = "500px"),
sliderInput(inputId = "iterations_count",
label = "Количество итераций:",
min = 1, max = 10, value = 1, step = 1),
actionButton(inputId = "my_button", label = "Click me"),
selectInput(inputId = "n_br... |
wide.form <- function(group.by,
spread.by,
values,
fill = 0 ,
prop = FALSE,
prune = TRUE){
sum.mat <- tapply(values,
list(group.by, spread.by),
sum)
sum.mat[is.... | /functions/wide.form.R | no_license | jack-w-hill/mangrove-hydro-edaphics | R | false | false | 528 | r | wide.form <- function(group.by,
spread.by,
values,
fill = 0 ,
prop = FALSE,
prune = TRUE){
sum.mat <- tapply(values,
list(group.by, spread.by),
sum)
sum.mat[is.... |
#' Check matches of reported project (PROJ) codes in SMHIs codelist
#' @param data for tibble be be checked
#' @return unmatched codes with true or false results
#' @export
check_code_proj <- function(data) {
toMatch <- unique(data$sample_project_name_sv)
shark_codes <- read_delim(system.file("extdata"... | /R/check_codes.R | permissive | sharksmhi/SHARK4R | R | false | false | 948 | r | #' Check matches of reported project (PROJ) codes in SMHIs codelist
#' @param data for tibble be be checked
#' @return unmatched codes with true or false results
#' @export
check_code_proj <- function(data) {
toMatch <- unique(data$sample_project_name_sv)
shark_codes <- read_delim(system.file("extdata"... |
## Predicting with Regression Multiple Covariates
library(ISLR); library(ggplot2); library(caret);
data(Wage); Wage <- subset(Wage, select =- c(logwage)) # remove column logwage which we will predict
summary(Wage)
# getting training/test sets
inTrain <- createDataPartition(y=Wage$wage, p=0.7, list=FALSE)
training <-... | /weekly-practices/week2_part7_multivariate_regression.r | no_license | branjbar/practical-ML-R | R | false | false | 1,682 | r | ## Predicting with Regression Multiple Covariates
library(ISLR); library(ggplot2); library(caret);
data(Wage); Wage <- subset(Wage, select =- c(logwage)) # remove column logwage which we will predict
summary(Wage)
# getting training/test sets
inTrain <- createDataPartition(y=Wage$wage, p=0.7, list=FALSE)
training <-... |
#Attempting to split UK map into 1km x 1km squares on a raster
library(ggplot2)
library(raster)
library(sp)
#My usual map
#Using cleann
gg1 <- ggplot() +
geom_polygon(data = uk, aes(x = long, y = lat, group = group), fill = "white", color = "black") +
#Add in counties if needed
geom_polygon(data = gadm, a... | /maps/Rasters.R | permissive | EllenJCoombs/cetacean-strandings-project | R | false | false | 5,764 | r |
#Attempting to split UK map into 1km x 1km squares on a raster
library(ggplot2)
library(raster)
library(sp)
#My usual map
#Using cleann
gg1 <- ggplot() +
geom_polygon(data = uk, aes(x = long, y = lat, group = group), fill = "white", color = "black") +
#Add in counties if needed
geom_polygon(data = gadm, a... |
# Download
if(!file.exists("./data")){dir.create("./Data")}
fileUrl<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if(!file.exists("./data/exdata_data_household_power_consumption.zip"))
{download.file(fileUrl, "./Data/exdata_data_household_power_consumption.zip", mode=... | /Plot1.R | no_license | monicatgs/ExData_Plotting1 | R | false | false | 1,315 | r |
# Download
if(!file.exists("./data")){dir.create("./Data")}
fileUrl<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if(!file.exists("./data/exdata_data_household_power_consumption.zip"))
{download.file(fileUrl, "./Data/exdata_data_household_power_consumption.zip", mode=... |
#Postgres
setwd("C:/R")
library("RJDBC")
library("readxl")
library("arules")
library("stringr")
library("reshape2")
library("tidyr")
library("dplyr")
library("mclust")
library(arulesViz)
library(igraph)
library("data.table")
library("reshape2")
options("scipen"=999, "digits"=19)
rs <- read.table(file =... | /Market Basket Analysis.R | no_license | Architsi/Ecommerce | R | false | false | 3,709 | r | #Postgres
setwd("C:/R")
library("RJDBC")
library("readxl")
library("arules")
library("stringr")
library("reshape2")
library("tidyr")
library("dplyr")
library("mclust")
library(arulesViz)
library(igraph)
library("data.table")
library("reshape2")
options("scipen"=999, "digits"=19)
rs <- read.table(file =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/amaretto_htmlreport.R
\name{readGMT}
\alias{readGMT}
\title{readGMT}
\usage{
readGMT(filename)
}
\arguments{
\item{filename}{}
}
\description{
readGMT
}
\keyword{internal}
| /man/readGMT.Rd | permissive | liefeld/AMARETTO | R | false | true | 250 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/amaretto_htmlreport.R
\name{readGMT}
\alias{readGMT}
\title{readGMT}
\usage{
readGMT(filename)
}
\arguments{
\item{filename}{}
}
\description{
readGMT
}
\keyword{internal}
|
##Shape=vector point
##Rinde=field Shape
##output_plots_to_html
##showplots
##inliers=output vector
library(sp)
library(spdep)
crs_imagen<-st_crs(Shape)
filtro1 <- as_Spatial(Shape)
cord <- filtro1@coords
gri <- dnearneigh(cord,0,30)
lw <- nb2listw(gri, style = "W",zero.policy=TRUE)
par(mfrow=c(1,1))
ML <- localm... | /Ambientacion multivariado_inliers.rsx | no_license | francofrolla/ambientes_qgis | R | false | false | 1,469 | rsx | ##Shape=vector point
##Rinde=field Shape
##output_plots_to_html
##showplots
##inliers=output vector
library(sp)
library(spdep)
crs_imagen<-st_crs(Shape)
filtro1 <- as_Spatial(Shape)
cord <- filtro1@coords
gri <- dnearneigh(cord,0,30)
lw <- nb2listw(gri, style = "W",zero.policy=TRUE)
par(mfrow=c(1,1))
ML <- localm... |
# Matthew Smith, 12/2/18
# In this file, we create all the necessary functions to implement a sparse.matrix class
#' Construct a sparse.matrix Object
#'
#' @description This functions creates an instance of the sparse.matrix object from scratch as a data.frame. By default, the dimensions will be the largest coordinat... | /R/sparse.matrix_class.R | no_license | r-medicine/bis557 | R | false | false | 8,344 | r | # Matthew Smith, 12/2/18
# In this file, we create all the necessary functions to implement a sparse.matrix class
#' Construct a sparse.matrix Object
#'
#' @description This functions creates an instance of the sparse.matrix object from scratch as a data.frame. By default, the dimensions will be the largest coordinat... |
#' Compute similarity of matrices
#'
#' @param expr_mat single-cell expression matrix
#' @param ref_mat reference expression matrix
#' @param cluster_ids vector of cluster ids for each cell
#' @param compute_method method(s) for computing similarity scores
#' @param per_cell run per cell?
#' @param rm0 consider 0 as mi... | /R/compute_similarity.R | permissive | standardgalactic/clustifyr | R | false | false | 10,108 | r | #' Compute similarity of matrices
#'
#' @param expr_mat single-cell expression matrix
#' @param ref_mat reference expression matrix
#' @param cluster_ids vector of cluster ids for each cell
#' @param compute_method method(s) for computing similarity scores
#' @param per_cell run per cell?
#' @param rm0 consider 0 as mi... |
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Data tablas Conversion ----
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Data tablas Conversion ----
# XX... | /04_Abril/2 Consulta_CM_Droguerias/Consulta.R | no_license | edgaruio/A-Requerimiento-2020 | R | false | false | 1,087 | r | # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Data tablas Conversion ----
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Data tablas Conversion ----
# XX... |
#I use page “contacts” for example.
library("RGA")
rga_auth <- authorize(client.id = "your Client ID", client.secret = "your client secret")
#1 Downloading pageviews metric for page or section of your web-site.
content_data <- get_ga(profileId = "ga:View ID",
start.date = "yyyy-mm-dd",
... | /content.R | no_license | AlinaGay/Download-data-from-GA-by-R | R | false | false | 6,925 | r | #I use page “contacts” for example.
library("RGA")
rga_auth <- authorize(client.id = "your Client ID", client.secret = "your client secret")
#1 Downloading pageviews metric for page or section of your web-site.
content_data <- get_ga(profileId = "ga:View ID",
start.date = "yyyy-mm-dd",
... |
library(shiny)
library(twitteR)
library(wordcloud2)
library(tidyverse)
library(stringr)
library(tm)
library(qdap)
library(ggmap) | /Untitled.R | no_license | ravichikkam/Twitter_query_shiny | R | false | false | 128 | r | library(shiny)
library(twitteR)
library(wordcloud2)
library(tidyverse)
library(stringr)
library(tm)
library(qdap)
library(ggmap) |
#!/usr/bin/Rscript
library("jsonlite")
print("CARGANDO")
json_data = fromJSON("/tmp/metal_db.json")
paises = as.data.frame(table(json_data$pais))
paises_ord = paises[order(paises$Freq),]
#print(tail(paises_ord, n = 10L))
f = function(cada) {
p= cada[1]
f= cada[2]
cat(p, '=', f, '\n')
data_pais = ... | /main.R | no_license | alvarezgarcia/metal-archives-stats | R | false | false | 667 | r | #!/usr/bin/Rscript
library("jsonlite")
print("CARGANDO")
json_data = fromJSON("/tmp/metal_db.json")
paises = as.data.frame(table(json_data$pais))
paises_ord = paises[order(paises$Freq),]
#print(tail(paises_ord, n = 10L))
f = function(cada) {
p= cada[1]
f= cada[2]
cat(p, '=', f, '\n')
data_pais = ... |
## An implementation of
## "A Resampling Approach for Correcting Systematic Spatiotemporal Biases for Multiple Variables in a Changing Climate"
## by Mehrotra and Sharma (2019), Water Resources Research, 55(1), pp.754-770, doi: 10.1029/2018WR023270
## Refered to as 3DBC (3-dimensional bias-correction), as it keeps inte... | /CNRM_ALADIN/HIST/3DBC_sfcWind_CNRM_ALADIN_APP_template.R | no_license | doblerone/3DBC | R | false | false | 4,558 | r | ## An implementation of
## "A Resampling Approach for Correcting Systematic Spatiotemporal Biases for Multiple Variables in a Changing Climate"
## by Mehrotra and Sharma (2019), Water Resources Research, 55(1), pp.754-770, doi: 10.1029/2018WR023270
## Refered to as 3DBC (3-dimensional bias-correction), as it keeps inte... |
\name{OraResult-class}
\docType{class}
\alias{OraResult-class}
\title{Class OraResult}
\description{
An Oracle query results class. This class encapsulates the result of
a SQL statement.
}
\section{Generators}{
The main generator is \code{\link[DBI]{dbSendQuery}}.
}
\section{Extends}{
Class \code{"DBIResult"}, ... | /man/OraResult-class.Rd | no_license | cran/ROracle | R | false | false | 1,630 | rd | \name{OraResult-class}
\docType{class}
\alias{OraResult-class}
\title{Class OraResult}
\description{
An Oracle query results class. This class encapsulates the result of
a SQL statement.
}
\section{Generators}{
The main generator is \code{\link[DBI]{dbSendQuery}}.
}
\section{Extends}{
Class \code{"DBIResult"}, ... |
context("get.summary")
# set up input of function get.summary
adj_matrix <- matrix(c(0, 1, 1, 0,
0, 0, 1, 0,
0, 0, 0, 1,
0, 0, 0, 0), byrow = TRUE, ncol = 4)
dataSize <- 50
lambda <- 3.5
time <- 1
# test get.summary
test_that("input adjacency matrix... | /fuzzedpackages/discretecdAlgorithm/tests/testthat/test-get_summary.R | no_license | akhikolla/testpackages | R | false | false | 2,413 | r | context("get.summary")
# set up input of function get.summary
adj_matrix <- matrix(c(0, 1, 1, 0,
0, 0, 1, 0,
0, 0, 0, 1,
0, 0, 0, 0), byrow = TRUE, ncol = 4)
dataSize <- 50
lambda <- 3.5
time <- 1
# test get.summary
test_that("input adjacency matrix... |
library(mosaic)
library(lme4)
library(tidyverse)
library(lattice)
library(MASS)
library(MCMCpack)
cheese = read.csv("/Users/zhendongwang/Desktop/R/cheese.csv")
## Linear regression
hlm3 = lmer(log(vol) ~ (1 + log(price) + disp + log(price):disp | store), data=cheese)
# Prior hyper-parameter for mu
nu = colMeans(coef(... | /Exercise-4-cheese.R | no_license | ShuyingWang/SDS383D | R | false | false | 3,563 | r | library(mosaic)
library(lme4)
library(tidyverse)
library(lattice)
library(MASS)
library(MCMCpack)
cheese = read.csv("/Users/zhendongwang/Desktop/R/cheese.csv")
## Linear regression
hlm3 = lmer(log(vol) ~ (1 + log(price) + disp + log(price):disp | store), data=cheese)
# Prior hyper-parameter for mu
nu = colMeans(coef(... |
library(evd)
library(Matrix)
library(tidyverse)
library(knitr)
library(INLA)
library(mapdata)
library(data.table)
library(rgdal)
# A few helper functions
source("helperFun.R")
#### Get the data ready
# Read in the data
# Get catchment descriptors and flow data
load("catchmentDesc.RData") # catchmentDesc
load("flowDa... | /fitModel.R | no_license | ridivinra/GEV_LGM | R | false | false | 23,560 | r | library(evd)
library(Matrix)
library(tidyverse)
library(knitr)
library(INLA)
library(mapdata)
library(data.table)
library(rgdal)
# A few helper functions
source("helperFun.R")
#### Get the data ready
# Read in the data
# Get catchment descriptors and flow data
load("catchmentDesc.RData") # catchmentDesc
load("flowDa... |
## Reading the Training data into R
zs_train <- read.csv(".../Zsassociates_Ideatory/TrainingData.csv",header = T, stringsAsFactors = F)
## Removing the observations where the target variable is missing
zs_train <- subset(zs_train, Labels != "NA")
## Summarizing missing data for all variables
propmiss <- function(d... | /zshack.R | no_license | Debd8/ZS-Customer-Modeling-Challenge-2015 | R | false | false | 4,561 | r | ## Reading the Training data into R
zs_train <- read.csv(".../Zsassociates_Ideatory/TrainingData.csv",header = T, stringsAsFactors = F)
## Removing the observations where the target variable is missing
zs_train <- subset(zs_train, Labels != "NA")
## Summarizing missing data for all variables
propmiss <- function(d... |
# Check out this presentation for more documentation
# https://www.slideshare.net/RsquaredIn/rmysql-tutorial-for-beginners
#library needed to connect to MySQL
library(RMySQL)
library(ggplot2)
#RStudio function that prompts for password. Security is always important.
psswd <- .rs.askForPassword("Database Password:")
... | /RMySQL Example.R | no_license | raikon123/MySQL_Class | R | false | false | 2,058 | r | # Check out this presentation for more documentation
# https://www.slideshare.net/RsquaredIn/rmysql-tutorial-for-beginners
#library needed to connect to MySQL
library(RMySQL)
library(ggplot2)
#RStudio function that prompts for password. Security is always important.
psswd <- .rs.askForPassword("Database Password:")
... |
## generate heatmap for Markov jumps
library(ggplot2)
library(dplyr)
library(tidytree)
library(reshape2)
library(tidyr)
library(lubridate)
library(ggpubr)
df<-read.table("seg1/jumpTimes.txt", header = TRUE, sep = "\t" )
state<-n_distinct(df$state)
df$from_to = paste(df$from,"_",df$to)
df <- df %>% mutate(time = 2018.1... | /Analytical_Scripts/Markov_jumpshp.R | no_license | JianiC/ATL-flyway | R | false | false | 4,722 | r | ## generate heatmap for Markov jumps
library(ggplot2)
library(dplyr)
library(tidytree)
library(reshape2)
library(tidyr)
library(lubridate)
library(ggpubr)
df<-read.table("seg1/jumpTimes.txt", header = TRUE, sep = "\t" )
state<-n_distinct(df$state)
df$from_to = paste(df$from,"_",df$to)
df <- df %>% mutate(time = 2018.1... |
source("ITC_data_process.R")
# Se crea el directorio de salida
dir.create("output", showWarnings=F)
ITC.porindividuo <- data.frame(
ID = ITC$ID,
sexo = ITC$sexo,
NS = rowSums(ITC[paste0("R",c(1,29,52,70,99,114,144,167,191,211,238,13,35,61,82,108,130,148,187,203,237,19,41,66,109,139,155,174,192,219,34,53,79,91,110,141,1... | /ITC_por_individuo (1).R | no_license | azaleara/ITC | R | false | false | 1,347 | r | source("ITC_data_process.R")
# Se crea el directorio de salida
dir.create("output", showWarnings=F)
ITC.porindividuo <- data.frame(
ID = ITC$ID,
sexo = ITC$sexo,
NS = rowSums(ITC[paste0("R",c(1,29,52,70,99,114,144,167,191,211,238,13,35,61,82,108,130,148,187,203,237,19,41,66,109,139,155,174,192,219,34,53,79,91,110,141,1... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotter.R
\name{plotter}
\alias{plotter}
\title{A plotter for decition tree models}
\usage{
plotter(node, varz = c("name", "cost", "qol"), edgelabel = TRUE)
}
\arguments{
\item{node}{}
\item{varz}{}
\item{edgelabel}{}
}
\value{
\code{Diagra... | /man/plotter.Rd | permissive | Diarmuid78/HEdtree | R | false | true | 682 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotter.R
\name{plotter}
\alias{plotter}
\title{A plotter for decition tree models}
\usage{
plotter(node, varz = c("name", "cost", "qol"), edgelabel = TRUE)
}
\arguments{
\item{node}{}
\item{varz}{}
\item{edgelabel}{}
}
\value{
\code{Diagra... |
\name{msTreeKruskal}
\alias{msTreeKruskal}
\title{Minimum cost spanning tree with Kruskal's algorithm}
\usage{
msTreeKruskal(nodes, arcs)
}
\arguments{
\item{nodes}{vector containing the nodes of the graph,
identified by a number that goes from \eqn{1} to the
order of the graph.}
\item{arcs}{matrix with the li... | /man/msTreeKruskal.Rd | no_license | cran/optrees | R | false | false | 1,509 | rd | \name{msTreeKruskal}
\alias{msTreeKruskal}
\title{Minimum cost spanning tree with Kruskal's algorithm}
\usage{
msTreeKruskal(nodes, arcs)
}
\arguments{
\item{nodes}{vector containing the nodes of the graph,
identified by a number that goes from \eqn{1} to the
order of the graph.}
\item{arcs}{matrix with the li... |
"
@author: Zsofia Koma, UvA
Aim: just fast export
input:
output:
Fuctions:
Example:
"
# Import required libraries
library("lidR")
library("rlas")
#Import
full_path="D:/Koma/Paper1_ReedStructure/TestWorkflow/justfortest/"
filename="tile_00015.laz"
setwd(full_path)
start_time <- Sys.time()
las = readLAS(filenam... | /R_process/justfastexport.R | no_license | komazsofi/myPhD_escience_analysis | R | false | false | 523 | r | "
@author: Zsofia Koma, UvA
Aim: just fast export
input:
output:
Fuctions:
Example:
"
# Import required libraries
library("lidR")
library("rlas")
#Import
full_path="D:/Koma/Paper1_ReedStructure/TestWorkflow/justfortest/"
filename="tile_00015.laz"
setwd(full_path)
start_time <- Sys.time()
las = readLAS(filenam... |
###########################################################
##### cross-validation for log penalized regression ######
###########################################################
## just an R loop that calls gamlr
cv.gamlr <- function(x, y, nfold=5, foldid=NULL, verb=FALSE, cl=NULL, ...){
full <- gamlr(x,y, ...)... | /R/cv.gamlr.R | no_license | Sandy4321/gamlr | R | false | false | 4,869 | r | ###########################################################
##### cross-validation for log penalized regression ######
###########################################################
## just an R loop that calls gamlr
cv.gamlr <- function(x, y, nfold=5, foldid=NULL, verb=FALSE, cl=NULL, ...){
full <- gamlr(x,y, ...)... |
# Suppress R CMD check note
#' @import data.table
#' @import tidytable
#' @import stringr
NULL
| /R/traumaR_package.R | permissive | mjkarlsen/traumaR | R | false | false | 95 | r | # Suppress R CMD check note
#' @import data.table
#' @import tidytable
#' @import stringr
NULL
|
library(DrugClust)
### Name: Enrichment_Proteins
### Title: Enrichment_Proteins
### Aliases: Enrichment_Proteins
### ** Examples
#feature is the feature matrix
# pamx is the result of the PAM function
# and pamx$clustering gives the list assigning each element to a certain cluster
#all_pathways<-Enrichment_Proteins... | /data/genthat_extracted_code/DrugClust/examples/Enrichment_Proteins.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 352 | r | library(DrugClust)
### Name: Enrichment_Proteins
### Title: Enrichment_Proteins
### Aliases: Enrichment_Proteins
### ** Examples
#feature is the feature matrix
# pamx is the result of the PAM function
# and pamx$clustering gives the list assigning each element to a certain cluster
#all_pathways<-Enrichment_Proteins... |
library(here)
library(RColorBrewer)
library(VennDiagram)
library(ggplot2)
source(here("../src/ggplot_format.R"))
#Import metadata
meta_all <- read.csv(here("../doc/Amplicon/meta_NEW.csv"), row.names = 1)
#Clean a bit
meta_all$Treatment <- factor(meta_all$Treatment, levels = c("ctrl",
... | /analysis/Figure2a.R | permissive | andnischneider/its_workflow | R | false | false | 4,197 | r | library(here)
library(RColorBrewer)
library(VennDiagram)
library(ggplot2)
source(here("../src/ggplot_format.R"))
#Import metadata
meta_all <- read.csv(here("../doc/Amplicon/meta_NEW.csv"), row.names = 1)
#Clean a bit
meta_all$Treatment <- factor(meta_all$Treatment, levels = c("ctrl",
... |
library(micEconCES)
### Name: summary.cesEst
### Title: Summarize Estimation of a CES Function
### Aliases: summary.cesEst print.summary.cesEst
### Keywords: models
### ** Examples
data( germanFarms, package = "micEcon" )
# output quantity:
germanFarms$qOutput <- germanFarms$vOutput / germanFarms$pOutput
... | /data/genthat_extracted_code/micEconCES/examples/summary.cesEst.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 589 | r | library(micEconCES)
### Name: summary.cesEst
### Title: Summarize Estimation of a CES Function
### Aliases: summary.cesEst print.summary.cesEst
### Keywords: models
### ** Examples
data( germanFarms, package = "micEcon" )
# output quantity:
germanFarms$qOutput <- germanFarms$vOutput / germanFarms$pOutput
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tfsR-package.r
\docType{package}
\name{tfsR}
\alias{tfsR}
\alias{tfsR-package}
\title{tfsR
If you have/want to work with R using git repositories in TFS (either on-premises or via Visual Studio Online), this
package saves you having to have ... | /man/tfsR.Rd | no_license | lockedata/tfsR | R | false | true | 923 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tfsR-package.r
\docType{package}
\name{tfsR}
\alias{tfsR}
\alias{tfsR-package}
\title{tfsR
If you have/want to work with R using git repositories in TFS (either on-premises or via Visual Studio Online), this
package saves you having to have ... |
## EI: CV Super Learner
library(SuperLearner)
library(parallel)
library(doMC)
options(mc.cores=80)
# full simulated data set
load("/data/markscan_authorized_users/bergquist/EI/df_sim_full.Rdata")
data <- df_sim
# if downloading data from github, will be in csv form
# check the data
summary(data)
## took this out bec... | /unprofitability_CV_sim.R | no_license | mandixbw/unprofits | R | false | false | 4,783 | r | ## EI: CV Super Learner
library(SuperLearner)
library(parallel)
library(doMC)
options(mc.cores=80)
# full simulated data set
load("/data/markscan_authorized_users/bergquist/EI/df_sim_full.Rdata")
data <- df_sim
# if downloading data from github, will be in csv form
# check the data
summary(data)
## took this out bec... |
library(R2jags)
load("NBA2009.RData")
rm(list = (ls()[ls() != "final"]))
final = final[final$team == unique(final$team)[1] , ]
players = final[ , grepl("Player",names(final))]
players = players[ , names( apply(players,2,sum) != 0 )[apply(players,2,sum) != 0] ]
lineup = final[ , grepl("lineup",names(final))]
line... | /RCODE/logistic.R | no_license | jamesyh/chemistry | R | false | false | 3,070 | r | library(R2jags)
load("NBA2009.RData")
rm(list = (ls()[ls() != "final"]))
final = final[final$team == unique(final$team)[1] , ]
players = final[ , grepl("Player",names(final))]
players = players[ , names( apply(players,2,sum) != 0 )[apply(players,2,sum) != 0] ]
lineup = final[ , grepl("lineup",names(final))]
line... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hiReadsProcessor.R
\name{pairwiseAlignSeqs}
\alias{pairwiseAlignSeqs}
\title{Align a short pattern to variable length target sequences.}
\usage{
pairwiseAlignSeqs(
subjectSeqs = NULL,
patternSeq = NULL,
side = "left",
qualityThreshold... | /man/pairwiseAlignSeqs.Rd | no_license | malnirav/hiReadsProcessor | R | false | true | 4,414 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hiReadsProcessor.R
\name{pairwiseAlignSeqs}
\alias{pairwiseAlignSeqs}
\title{Align a short pattern to variable length target sequences.}
\usage{
pairwiseAlignSeqs(
subjectSeqs = NULL,
patternSeq = NULL,
side = "left",
qualityThreshold... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ggplot2.r
\docType{data}
\name{luv_colours}
\alias{luv_colours}
\title{\code{colors()} in Luv space.}
\format{A data frame with 657 observations and 4 variables:
\itemize{
\item{L,u,v}{Position in Luv colour space}
\item{col}{Colour n... | /man/luv_colours.Rd | no_license | bbolker/ggplot2 | R | false | false | 456 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ggplot2.r
\docType{data}
\name{luv_colours}
\alias{luv_colours}
\title{\code{colors()} in Luv space.}
\format{A data frame with 657 observations and 4 variables:
\itemize{
\item{L,u,v}{Position in Luv colour space}
\item{col}{Colour n... |
#Library
library(caret)
library(rpart.plot) #visualizing
library(plyr)
library(dplyr)
library(vtreat)
library(e1071)
library(rbokeh)
library(MLmetrics)
#Set wd
setwd("/Users/jlee/Documents/GitHub/HarvardSpringStudent2019/cases/National City Bank")
options(scipen=999)
#Read in the csv files
#dataDictionary <- read.csv... | /Harvard CSCI E-96/Case 2 (Modeling)/Case Study 2.R | no_license | jlee1991/R-Practice | R | false | false | 9,010 | r | #Library
library(caret)
library(rpart.plot) #visualizing
library(plyr)
library(dplyr)
library(vtreat)
library(e1071)
library(rbokeh)
library(MLmetrics)
#Set wd
setwd("/Users/jlee/Documents/GitHub/HarvardSpringStudent2019/cases/National City Bank")
options(scipen=999)
#Read in the csv files
#dataDictionary <- read.csv... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "analcatdata_supreme")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeRegrTask(id = "task", data = dataset$data, target = "Log_exposure")
lrn =... | /models/openml_analcatdata_supreme/regression_Log_exposure/51b8e2f48c66ac820cada52aa54d1483/code.R | no_license | lukaszbrzozowski/CaseStudies2019S | R | false | false | 681 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "analcatdata_supreme")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeRegrTask(id = "task", data = dataset$data, target = "Log_exposure")
lrn =... |
\name{bear.JAGS}
\alias{bear.JAGS}
\title{
analysis of the Ft. Drum black bear data using JAGS
}
\description{
Function to analyze of the Ft. Drum black bear data with a range of possible covariate models using JAGS
}
\usage{
bear.JAGS(model=c('SCR0', 'SCR0exp', 'SCRt','SCRB','SCRb', 'SCRsex', 'SCRh'), n.chains, n.adap... | /Rpackage/scrbook/man/bear.JAGS.rd | no_license | jaroyle/scrbook | R | false | false | 2,397 | rd | \name{bear.JAGS}
\alias{bear.JAGS}
\title{
analysis of the Ft. Drum black bear data using JAGS
}
\description{
Function to analyze of the Ft. Drum black bear data with a range of possible covariate models using JAGS
}
\usage{
bear.JAGS(model=c('SCR0', 'SCR0exp', 'SCRt','SCRB','SCRb', 'SCRsex', 'SCRh'), n.chains, n.adap... |
# Load tidyverse package
ibrary(tidyverse)
#Download files from website
download.file("http://fmichonneau.github.io/2017-11-03-gwu/gapminder.csv",
"data/gapminder.csv")
gapminder <- read_csv("data/gapminder.csv")
#Calculate the average life expectancy by continent
# (save in a variable called life_exp_cont... | /Script.R | no_license | jessica-o/gwu-gapminder | R | false | false | 824 | r | # Load tidyverse package
ibrary(tidyverse)
#Download files from website
download.file("http://fmichonneau.github.io/2017-11-03-gwu/gapminder.csv",
"data/gapminder.csv")
gapminder <- read_csv("data/gapminder.csv")
#Calculate the average life expectancy by continent
# (save in a variable called life_exp_cont... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general.R
\name{distance_to_earth}
\alias{distance_to_earth}
\title{Distance to Earth with planetary aberration correction (effect of light-time and Earth's motion)}
\usage{
distance_to_earth(jd, celestial_body)
}
\arguments{
\item{jd}{Julian... | /man/distance_to_earth.Rd | no_license | Susarro/arqastwb | R | false | true | 643 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general.R
\name{distance_to_earth}
\alias{distance_to_earth}
\title{Distance to Earth with planetary aberration correction (effect of light-time and Earth's motion)}
\usage{
distance_to_earth(jd, celestial_body)
}
\arguments{
\item{jd}{Julian... |
source("global.R")
for (nm in list.files("modules", pattern = "[.][Rr]$", recursive = TRUE))
{
source(file.path("modules", nm))
}
# ---------------------------------------------------------------------- #
shinyUI(
ui = bs4DashPage(
old_school = FALSE,
sidebar_collapsed = FALSE,
... | /ui.R | permissive | linusmcm/in_track | R | false | false | 2,260 | r | source("global.R")
for (nm in list.files("modules", pattern = "[.][Rr]$", recursive = TRUE))
{
source(file.path("modules", nm))
}
# ---------------------------------------------------------------------- #
shinyUI(
ui = bs4DashPage(
old_school = FALSE,
sidebar_collapsed = FALSE,
... |
## This is original code. Please refer to the README.md for the description
test_x <- read.table("test/X_test.txt")
train_x <- read.table("train/X_train.txt")
test_sub <- read.table("test/subject_test.txt")
train_sub <- read.table("train/subject_train.txt")
test_y <- read.table("test/y_test.txt")
train_y <- read.table... | /run_analysis.R | no_license | tgaurav10/tidy_data_set | R | false | false | 1,092 | r | ## This is original code. Please refer to the README.md for the description
test_x <- read.table("test/X_test.txt")
train_x <- read.table("train/X_train.txt")
test_sub <- read.table("test/subject_test.txt")
train_sub <- read.table("train/subject_train.txt")
test_y <- read.table("test/y_test.txt")
train_y <- read.table... |
#'@title Gets all supported conferences (current and historical)
#'
#'@description Gets all supported conferences (current and historical)
#'
#'@examples
#'
#'@export
get_conferences <- function(){
rawConferences <- get_CFB_json_from_url('conferences')
conferences <- data.frame(ConferenceId = rawConferences$id,
... | /R/get_conferences.R | no_license | zmalosh/CollegeFootballDataR | R | false | false | 533 | r | #'@title Gets all supported conferences (current and historical)
#'
#'@description Gets all supported conferences (current and historical)
#'
#'@examples
#'
#'@export
get_conferences <- function(){
rawConferences <- get_CFB_json_from_url('conferences')
conferences <- data.frame(ConferenceId = rawConferences$id,
... |
add_three,-function(a,b,c){
return(a+b+c)
} | /add_three.R | no_license | gsingsing/chem160module10 | R | false | false | 44 | r | add_three,-function(a,b,c){
return(a+b+c)
} |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/expected_points_build.R
\name{expected_points_build}
\alias{expected_points_build}
\title{Builds an Expected Points Model}
\usage{
expected_points_build(plays, drives)
}
\arguments{
\item{plays}{the "play.csv" data frame for the years... | /man/expected_points_build.Rd | permissive | mattmills49/MELLS | R | false | false | 1,105 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/expected_points_build.R
\name{expected_points_build}
\alias{expected_points_build}
\title{Builds an Expected Points Model}
\usage{
expected_points_build(plays, drives)
}
\arguments{
\item{plays}{the "play.csv" data frame for the years... |
## ----header,echo=FALSE,results='hide'------------------------------------
library("knitr")
opts_chunk$set(fig.width = 5.25, fig.height = 3.75, cache=FALSE)
## ----dsamp---------------------------------------------------------------
library("ggplot2")
library("ggthemes")
p <- ggplot(mtcars, aes(x = wt, y = mpg)) +
... | /ggthemes/inst/doc/ggthemes.R | no_license | ingted/R-Examples | R | false | false | 5,912 | r | ## ----header,echo=FALSE,results='hide'------------------------------------
library("knitr")
opts_chunk$set(fig.width = 5.25, fig.height = 3.75, cache=FALSE)
## ----dsamp---------------------------------------------------------------
library("ggplot2")
library("ggthemes")
p <- ggplot(mtcars, aes(x = wt, y = mpg)) +
... |
#' Total pathway probability sample
#'
#' @param osNode Decision tree object.
#' @param pathString Route from root to leaf. Node names separated by /.
#' @param N.mc Number of samples.
#'
#' @return Vector of probabilities.
#' @export
#'
#' @examples
#'
total_pathway_prob_sample <- function(osNode,
... | /R/total_pathway_prob_sample.R | no_license | n8thangreen/LTBIhospitalScreenACE | R | false | false | 893 | r |
#' Total pathway probability sample
#'
#' @param osNode Decision tree object.
#' @param pathString Route from root to leaf. Node names separated by /.
#' @param N.mc Number of samples.
#'
#' @return Vector of probabilities.
#' @export
#'
#' @examples
#'
total_pathway_prob_sample <- function(osNode,
... |
suppressPackageStartupMessages(library(Seurat))
suppressPackageStartupMessages(library(stringr))
suppressPackageStartupMessages(library(argparse))
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(reshape2))
print("*** Configure Parameters ***")
parser <- ArgumentParser(description=... | /FindMarkers.R | no_license | RyanYip-Kat/CovID2019 | R | false | false | 1,257 | r | suppressPackageStartupMessages(library(Seurat))
suppressPackageStartupMessages(library(stringr))
suppressPackageStartupMessages(library(argparse))
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(reshape2))
print("*** Configure Parameters ***")
parser <- ArgumentParser(description=... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods-Trajectory.R
\name{createTrajectoryMetaData}
\alias{createTrajectoryMetaData}
\title{Generate meta-data associated with this trajectory}
\usage{
createTrajectoryMetaData(trajectory)
}
\arguments{
\item{trajectory}{Trajectory on which ... | /man/createTrajectoryMetaData.Rd | permissive | YosefLab/VISION | R | false | true | 501 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods-Trajectory.R
\name{createTrajectoryMetaData}
\alias{createTrajectoryMetaData}
\title{Generate meta-data associated with this trajectory}
\usage{
createTrajectoryMetaData(trajectory)
}
\arguments{
\item{trajectory}{Trajectory on which ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/dAktorzyGwiazdy.R
\name{dAktorzyGwiazdy}
\alias{dAktorzyGwiazdy}
\title{Liczenie odleglosci dla aktorow bedacych gwiazdami}
\usage{
dAktorzyGwiazdy(IDFilm1, IDFilm2, sciezkaDoBazy)
}
\arguments{
\item{IDFilm1}{- id pierwszego filmu}
... | /WyszynskaRudasIMDB/man/dAktorzyGwiazdy.Rd | no_license | Wyszynskak/Projekty | R | false | false | 987 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/dAktorzyGwiazdy.R
\name{dAktorzyGwiazdy}
\alias{dAktorzyGwiazdy}
\title{Liczenie odleglosci dla aktorow bedacych gwiazdami}
\usage{
dAktorzyGwiazdy(IDFilm1, IDFilm2, sciezkaDoBazy)
}
\arguments{
\item{IDFilm1}{- id pierwszego filmu}
... |
## Copyright 2013 Data Tactics Corporation
##
## 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 License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law ... | /package/R/zzz.R | permissive | DataTacticsCorp/raccumulo | R | false | false | 668 | r | ## Copyright 2013 Data Tactics Corporation
##
## 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 License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law ... |
## makeCacheMatrix: This function creates a special "matrix" object
## that can cache its inverse.
# * setMatrix set the value of a matrix
# * getMatrix get the value of a matrix
# * cacheInverse get the cahced value (inverse of the matrix)
# * getInverse get the cahced value (inverse of the matrix)
... | /makecachematrix.R | no_license | antoniom72/Programming-Assignment-2-Lexical-Scoping | R | false | false | 1,254 | r | ## makeCacheMatrix: This function creates a special "matrix" object
## that can cache its inverse.
# * setMatrix set the value of a matrix
# * getMatrix get the value of a matrix
# * cacheInverse get the cahced value (inverse of the matrix)
# * getInverse get the cahced value (inverse of the matrix)
... |
#!/usr/bin/env Rscript
# Crear un data frame que contenga nombre edad y sexo
nombre<-c("Melani","Adrian","Raymundo")
edad<-c(22,21,21)
sexo<-c("F","M","M")
dataframePersona<-data.frame(nombre,edad,sexo)
print(dataframePersona)
| /ejemplos/dataframes.r | no_license | AdrianPardo99/r-course-1 | R | false | false | 230 | r | #!/usr/bin/env Rscript
# Crear un data frame que contenga nombre edad y sexo
nombre<-c("Melani","Adrian","Raymundo")
edad<-c(22,21,21)
sexo<-c("F","M","M")
dataframePersona<-data.frame(nombre,edad,sexo)
print(dataframePersona)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RN_search_beta_by_E.R
\name{RN_search_beta_by_E}
\alias{RN_search_beta_by_E}
\title{Search for beta}
\usage{
RN_search_beta_by_E(
E_max,
min_half_life_seconds = NULL,
max_half_life_seconds = NULL
)
}
\arguments{
\item{E_max... | /man/RN_search_beta_by_E.Rd | no_license | cran/radsafer | R | false | true | 1,488 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RN_search_beta_by_E.R
\name{RN_search_beta_by_E}
\alias{RN_search_beta_by_E}
\title{Search for beta}
\usage{
RN_search_beta_by_E(
E_max,
min_half_life_seconds = NULL,
max_half_life_seconds = NULL
)
}
\arguments{
\item{E_max... |
# 2018_technical_activity-data-calcs.R
# Calculation of activity data projections for the 2018 Technical Reconsideration Proposal RIA
######
# Activity data projections datasets include the following information:
# mp -- the model plant type being tracked
# attrs -- attributes on mp
# location -- state or region wher... | /scripts/2018_technical_activity-data-calcs.R | permissive | USEPA/ONG-NSPS-OOOOa-Technical-Reconsideration-Analysis | R | false | false | 6,870 | r | # 2018_technical_activity-data-calcs.R
# Calculation of activity data projections for the 2018 Technical Reconsideration Proposal RIA
######
# Activity data projections datasets include the following information:
# mp -- the model plant type being tracked
# attrs -- attributes on mp
# location -- state or region wher... |
#' Mandelbrot convergence counts
#'
#' @param xlim,ylim The complex plane for which convergence counts
#' should be calculated.
#' @param resolution Number of bins along the real axis. The number
#' of bins along the imaginary axis will be such
#' that the aspect ... | /demo/mandelbrot.R | no_license | githubfun/future | R | false | false | 4,784 | r | #' Mandelbrot convergence counts
#'
#' @param xlim,ylim The complex plane for which convergence counts
#' should be calculated.
#' @param resolution Number of bins along the real axis. The number
#' of bins along the imaginary axis will be such
#' that the aspect ... |
data<-read.table('household_power_consumption.txt',sep=';',header=T)
date <- as.Date(data$Date,format='%d/%m/%Y')
num <- as.character(date)
num <- as.numeric(strftime(strptime(num,'%Y-%m-%d'),'%Y%m%d'))
startDate <- as.numeric(strftime(strptime('2007-02-01','%Y-%m-%d'),'%Y%m%d'))
endDate <- as.numeric(strftime(strptime... | /plot2.r | no_license | adamkcarter/ExData_Plotting1 | R | false | false | 902 | r | data<-read.table('household_power_consumption.txt',sep=';',header=T)
date <- as.Date(data$Date,format='%d/%m/%Y')
num <- as.character(date)
num <- as.numeric(strftime(strptime(num,'%Y-%m-%d'),'%Y%m%d'))
startDate <- as.numeric(strftime(strptime('2007-02-01','%Y-%m-%d'),'%Y%m%d'))
endDate <- as.numeric(strftime(strptime... |
# The experiment is to execute Bayesian Variable Selection for linear regression models using Gibbs sampling
# on the Ozone35 data set referenced in "Casella, G. and Moreno, E. (2006)<DOI:10.1198/016214505000000646> Objective Bayesian variable selection. Journal of the American Statistical Association, 101(473).
# http... | /MATH Paper GiibsVS Ozone35 Dataset.R | no_license | arjuna12009/Variable-selection-via-Gibbs-sampling | R | false | false | 7,460 | r | # The experiment is to execute Bayesian Variable Selection for linear regression models using Gibbs sampling
# on the Ozone35 data set referenced in "Casella, G. and Moreno, E. (2006)<DOI:10.1198/016214505000000646> Objective Bayesian variable selection. Journal of the American Statistical Association, 101(473).
# http... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/haematopoietic.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.3,family="gaussian",standardize=TRUE)
sink('./haematopoietic_043.txt... | /Model/EN/Classifier/haematopoietic/haematopoietic_043.R | no_license | esbgkannan/QSMART | R | false | false | 364 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/haematopoietic.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.3,family="gaussian",standardize=TRUE)
sink('./haematopoietic_043.txt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cMSY_funs.R
\name{plotcMSY6}
\alias{plotcMSY6}
\title{plotcMSY6 plots out a summary of the Catch-MSY results in 6 graphs}
\usage{
plotcMSY6(cMSY, catch, label = NA)
}
\arguments{
\item{cMSY}{the list from running summcMSY on the outp... | /man/plotcMSY6.Rd | no_license | haddonm/datalowSA | R | false | true | 1,197 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cMSY_funs.R
\name{plotcMSY6}
\alias{plotcMSY6}
\title{plotcMSY6 plots out a summary of the Catch-MSY results in 6 graphs}
\usage{
plotcMSY6(cMSY, catch, label = NA)
}
\arguments{
\item{cMSY}{the list from running summcMSY on the outp... |
#' Find triples with dependent edges for RFCI
dep.triple <- function (suffStat, indepTest, alpha, sepset, apag, unshTripl,
unshVect, trueVstruct, verbose = FALSE)
{
p <- nrow(apag)
for (k in seq_len(ncol(unshTripl))) {
if (trueVstruct[k]) {
x <- unshTripl[1, k]
y <- unshTripl[2, ... | /R/dep_triple.R | no_license | ericstrobl/F2CI | R | false | false | 5,303 | r | #' Find triples with dependent edges for RFCI
dep.triple <- function (suffStat, indepTest, alpha, sepset, apag, unshTripl,
unshVect, trueVstruct, verbose = FALSE)
{
p <- nrow(apag)
for (k in seq_len(ncol(unshTripl))) {
if (trueVstruct[k]) {
x <- unshTripl[1, k]
y <- unshTripl[2, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guardduty_operations.R
\name{guardduty_disassociate_from_master_account}
\alias{guardduty_disassociate_from_master_account}
\title{Disassociates the current GuardDuty member account from its
administrator account}
\usage{
guardduty_disassocia... | /cran/paws.security.identity/man/guardduty_disassociate_from_master_account.Rd | permissive | TWarczak/paws | R | false | true | 716 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guardduty_operations.R
\name{guardduty_disassociate_from_master_account}
\alias{guardduty_disassociate_from_master_account}
\title{Disassociates the current GuardDuty member account from its
administrator account}
\usage{
guardduty_disassocia... |
library(data.table)
library(FeatureHashing)
library(xgboost)
library(dplyr)
library(Matrix)
train=fread('redhat_data_new/act_train.csv') %>% as.data.frame()
test=fread('redhat_data_new/act_test.csv') %>% as.data.frame()
#people data frame
people=fread('redhat_data_new/people.csv') %>% as.data.frame()
people$char_1<-... | /raddar-xgboost.R | permissive | kmkping/redhad_business_data | R | false | false | 4,975 | r | library(data.table)
library(FeatureHashing)
library(xgboost)
library(dplyr)
library(Matrix)
train=fread('redhat_data_new/act_train.csv') %>% as.data.frame()
test=fread('redhat_data_new/act_test.csv') %>% as.data.frame()
#people data frame
people=fread('redhat_data_new/people.csv') %>% as.data.frame()
people$char_1<-... |
# Changes in the experience of child death throughout the Demographic
# Transition (horizontal axis, proxied by life expectancy) in different
# regions of the world. (A-F) Association between the fraction of a
# woman's offspring expected to live longer than her and the cohort
# life expectancy for the woman's cohor... | /R/D_Supplementary/7 - FigS4.R | permissive | timriffe/code_review_MPIDR | R | false | false | 3,572 | r |
# Changes in the experience of child death throughout the Demographic
# Transition (horizontal axis, proxied by life expectancy) in different
# regions of the world. (A-F) Association between the fraction of a
# woman's offspring expected to live longer than her and the cohort
# life expectancy for the woman's cohor... |
library("MASS")
mp <- polr(Sat ~ Infl, weights = Freq, data = housing)
library("mlt")
s <- as.basis(~ Infl, data = housing, remove_intercept = TRUE)
r <- as.basis(housing$Sat)
#r <- as.basis(~ Sat, data = housing, remove_intercept = TRUE,
# contrasts.arg = list(Sat = function(n)
# con... | /mlt/tests/polr-Ex.R | no_license | ingted/R-Examples | R | false | false | 583 | r |
library("MASS")
mp <- polr(Sat ~ Infl, weights = Freq, data = housing)
library("mlt")
s <- as.basis(~ Infl, data = housing, remove_intercept = TRUE)
r <- as.basis(housing$Sat)
#r <- as.basis(~ Sat, data = housing, remove_intercept = TRUE,
# contrasts.arg = list(Sat = function(n)
# con... |
# Random Forest Classification
# Importing the dataset
dataset = read.csv('Social_Network_Ads.csv')
dataset = dataset[3:5]
# Encoding the target feature as factor
dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1))
# Splitting the dataset into the Training set and Test set
# install.packages('c... | /Part 3 - Classification/Section 18 - Random Forest Classification/my_random_forest_classification.R | no_license | AfzalivE/ML-A-to-Z | R | false | false | 2,439 | r | # Random Forest Classification
# Importing the dataset
dataset = read.csv('Social_Network_Ads.csv')
dataset = dataset[3:5]
# Encoding the target feature as factor
dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1))
# Splitting the dataset into the Training set and Test set
# install.packages('c... |
hingeError = function(W,X,Y) {
misclassf = 0
totalError = 0
for(i in 1:nrow(X)) {
tmp = Y[i]*(W %*% X[i,])
if(tmp <= 0)
misclassf = misclassf + 1
totalError = totalError - tmp
}
c(misclassf,totalError/nrow(X))
}
stochastic_gradient = function(W,X,Y) {
delta = rep(0,ncol(X))
i = sampl... | /2016/10-Classification models/perceptron model/perceptron-stochasticGD.R | no_license | rajesh2win/datascience | R | false | false | 2,290 | r | hingeError = function(W,X,Y) {
misclassf = 0
totalError = 0
for(i in 1:nrow(X)) {
tmp = Y[i]*(W %*% X[i,])
if(tmp <= 0)
misclassf = misclassf + 1
totalError = totalError - tmp
}
c(misclassf,totalError/nrow(X))
}
stochastic_gradient = function(W,X,Y) {
delta = rep(0,ncol(X))
i = sampl... |
library(shiny)
library(shinythemes)
library(markdown)
library(dplyr)
library(tm)
library(NLP)
shinyUI(
navbarPage("Next Word Predict",
theme = shinytheme("spacelab"),
tabPanel("Home",
fluidPage(
titlePanel("Home"),
... | /ui.R | no_license | Moveke/Word-Prediction-App | R | false | false | 2,660 | r | library(shiny)
library(shinythemes)
library(markdown)
library(dplyr)
library(tm)
library(NLP)
shinyUI(
navbarPage("Next Word Predict",
theme = shinytheme("spacelab"),
tabPanel("Home",
fluidPage(
titlePanel("Home"),
... |
\name{plot.envelope}
\alias{plot.envelope}
\title{Plot a Simulation Envelope}
\description{
Plot method for the class \code{"envelope"}.
}
\usage{
\method{plot}{envelope}(x, \dots, main)
}
\arguments{
\item{x}{
An object of class \code{"envelope"}, containing the variables to be plotted
or variables from w... | /man/plot.envelope.Rd | no_license | cuulee/spatstat | R | false | false | 1,618 | rd | \name{plot.envelope}
\alias{plot.envelope}
\title{Plot a Simulation Envelope}
\description{
Plot method for the class \code{"envelope"}.
}
\usage{
\method{plot}{envelope}(x, \dots, main)
}
\arguments{
\item{x}{
An object of class \code{"envelope"}, containing the variables to be plotted
or variables from w... |
create_game_status_from_simple <- function(simple_gs, track_id, STG_TRACK, STG_TRACK_PIECE) {
new_track <- create_track_table(track_id, STG_TRACK_PIECE, STG_TRACK)
#set positions
new_track[, CYCLER_ID := as.integer(CYCLER_ID)]
sscols_simple <- simple_gs[, .(CYCLER_NEW = CYCLER_ID, SQUARE_ID)]
join_simple <- sscols_... | /scripts/solution/create_game_status_from_simple.R | no_license | Laurigit/flAImme_client | R | false | false | 604 | r | create_game_status_from_simple <- function(simple_gs, track_id, STG_TRACK, STG_TRACK_PIECE) {
new_track <- create_track_table(track_id, STG_TRACK_PIECE, STG_TRACK)
#set positions
new_track[, CYCLER_ID := as.integer(CYCLER_ID)]
sscols_simple <- simple_gs[, .(CYCLER_NEW = CYCLER_ID, SQUARE_ID)]
join_simple <- sscols_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/avg_oc_wr_ne.r
\name{avg_oc_wr_ne}
\alias{avg_oc_wr_ne}
\title{Single Arm Average Operating Characteristics}
\usage{
avg_oc_wr_ne(
N_e,
true_RR_c = NULL,
delta,
delta_power,
confidence,
e_a = 0.5,
e_b = 0.5,
h_a = 0.5,
h_b =... | /man/avg_oc_wr_ne.Rd | no_license | cran/earlygating | R | false | true | 4,371 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/avg_oc_wr_ne.r
\name{avg_oc_wr_ne}
\alias{avg_oc_wr_ne}
\title{Single Arm Average Operating Characteristics}
\usage{
avg_oc_wr_ne(
N_e,
true_RR_c = NULL,
delta,
delta_power,
confidence,
e_a = 0.5,
e_b = 0.5,
h_a = 0.5,
h_b =... |
library(rpart)
pima_data <- read.table("DataSet.csv", header=TRUE, sep=",")
summary(pima_data)
summary(pima_data$Result)
sort(pima_data$BP)
pima_data$Result <- factor(pima_data$Result)
summary(pima_data$Result)
#Pregnancy
hist(pima_data$Pregnant,plot = TRUE, right = FALSE, labels = FALSE, main = "Pima Histo_Preg"... | /Classification Problem/Data Analysis/DataAnalysis.R | no_license | iamtusharbhatia/Machine-Learning | R | false | false | 2,079 | r | library(rpart)
pima_data <- read.table("DataSet.csv", header=TRUE, sep=",")
summary(pima_data)
summary(pima_data$Result)
sort(pima_data$BP)
pima_data$Result <- factor(pima_data$Result)
summary(pima_data$Result)
#Pregnancy
hist(pima_data$Pregnant,plot = TRUE, right = FALSE, labels = FALSE, main = "Pima Histo_Preg"... |
# library(faoebx5)
# library(data.table)
get_hs_masterfile <- function(local = T){
if (local == T) {
hs_masterfile <- readRDS("data/hs_masterfile.rds")
return(hs_masterfile)
}
SetEBXCredentials(username = "Fishery-SOAP", password = 'W8EqZpDM4YBMKsrq')
##-- ISS... | /shinyFisheriesTrade_prod/functions/get_hs_masterfile.R | permissive | SWS-Methodology/faoFisheriesTrade | R | false | false | 3,812 | r | # library(faoebx5)
# library(data.table)
get_hs_masterfile <- function(local = T){
if (local == T) {
hs_masterfile <- readRDS("data/hs_masterfile.rds")
return(hs_masterfile)
}
SetEBXCredentials(username = "Fishery-SOAP", password = 'W8EqZpDM4YBMKsrq')
##-- ISS... |
#require("RPostgreSQL")
library(MASS)
library(leaps)
library(gvlma)
library(car)
library(ggplot2)
library(gclus)
################################################
################## LOAD DATA ###################
################################################
# Set working directory to the path containing Fall 2017 da... | /docs/GPRO/Linear_models_for_paper.R | no_license | bclavio/stats-on-grades | R | false | false | 27,579 | r | #require("RPostgreSQL")
library(MASS)
library(leaps)
library(gvlma)
library(car)
library(ggplot2)
library(gclus)
################################################
################## LOAD DATA ###################
################################################
# Set working directory to the path containing Fall 2017 da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search_shards.R
\name{search_shards}
\alias{search_shards}
\title{Search shards.}
\usage{
search_shards(index = NULL, raw = FALSE, routing = NULL,
preference = NULL, local = NULL, ...)
}
\arguments{
\item{index}{One or more indeces}
\item{... | /man/search_shards.Rd | permissive | dpmccabe/elastic | R | false | true | 1,418 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search_shards.R
\name{search_shards}
\alias{search_shards}
\title{Search shards.}
\usage{
search_shards(index = NULL, raw = FALSE, routing = NULL,
preference = NULL, local = NULL, ...)
}
\arguments{
\item{index}{One or more indeces}
\item{... |
id <- 1
lat <- 0
long <- 0
time <- 0
currentpos <- 0
mincurr <- sample(1:40,1)
minnext <- 0
maxcurr <- sample(40:80,1)
maxnext <- 0
#df[i,1] <- id
#df[i,2] <- lat
#df[i,3] <- long
#df[i,4] <- time
#df[i,6] <- mincurr
#df[i,7] <- minnext
#df[i,8] <- maxcurr
#df[i,9] <- maxnext
#df[i,10] <- min
#df[i,11] <- max
df <- dat... | /scripts/WeekendGenerateUpdated.R | no_license | damiandiaz212/JPM-ChaseCode4Good | R | false | false | 4,919 | r | id <- 1
lat <- 0
long <- 0
time <- 0
currentpos <- 0
mincurr <- sample(1:40,1)
minnext <- 0
maxcurr <- sample(40:80,1)
maxnext <- 0
#df[i,1] <- id
#df[i,2] <- lat
#df[i,3] <- long
#df[i,4] <- time
#df[i,6] <- mincurr
#df[i,7] <- minnext
#df[i,8] <- maxcurr
#df[i,9] <- maxnext
#df[i,10] <- min
#df[i,11] <- max
df <- dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gaterSVM.R
\name{gaterSVM}
\alias{gaterSVM}
\title{Mixture SVMs with gater function}
\usage{
gaterSVM(
x,
y,
m,
c = 1,
max.iter,
hidden = 5,
learningrate = 0.01,
threshold = 0.01,
stepmax = 100,
seed = NULL,
valid.x = NU... | /man/gaterSVM.Rd | no_license | hetong007/SwarmSVM | R | false | true | 2,826 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gaterSVM.R
\name{gaterSVM}
\alias{gaterSVM}
\title{Mixture SVMs with gater function}
\usage{
gaterSVM(
x,
y,
m,
c = 1,
max.iter,
hidden = 5,
learningrate = 0.01,
threshold = 0.01,
stepmax = 100,
seed = NULL,
valid.x = NU... |
rm(list = ls(all=T))
graphics.off()
library(here)
library(data.table)
library(tidyverse)
library(xlsx)
library(tdr) #tdStats
library(Metrics)
library(ggthemes)
library(extrafont)
library(likert)
setwd(paste0(here(),"/Data/Ishii/"))
wd = read.xlsx("Fluxomics.xlsx", 1)
conditions = colnames(wd)[-c(1,2)]
c... | /Plotting/Ishii/RelaxedvStringent.R | permissive | CABSEL/DeltaFBA | R | false | false | 5,576 | r | rm(list = ls(all=T))
graphics.off()
library(here)
library(data.table)
library(tidyverse)
library(xlsx)
library(tdr) #tdStats
library(Metrics)
library(ggthemes)
library(extrafont)
library(likert)
setwd(paste0(here(),"/Data/Ishii/"))
wd = read.xlsx("Fluxomics.xlsx", 1)
conditions = colnames(wd)[-c(1,2)]
c... |
# covariates #
#look ok
# gene counts #
path <- "/Users/bheavner/Desktop/AMP-AD_MayoPilot_UFL-Mayo-ISB_IlluminaHiSeq2000_dIPFC_Rush-Broad-SS_gene_id_counts.txt"
newpath <- "/Users/bheavner/Desktop/AMP-AD_MayoPilot_UFL-Mayo-ISB_IlluminaHiSeq2000_dIPFC_Rush-Broad-SS_GeneCounts.txt"
geneCounts <- read.table(path, heade... | /may_2015_release/Rush-Broad_SS_work/checkingFormatting.R | no_license | bheavner/amp_working | R | false | false | 1,915 | r | # covariates #
#look ok
# gene counts #
path <- "/Users/bheavner/Desktop/AMP-AD_MayoPilot_UFL-Mayo-ISB_IlluminaHiSeq2000_dIPFC_Rush-Broad-SS_gene_id_counts.txt"
newpath <- "/Users/bheavner/Desktop/AMP-AD_MayoPilot_UFL-Mayo-ISB_IlluminaHiSeq2000_dIPFC_Rush-Broad-SS_GeneCounts.txt"
geneCounts <- read.table(path, heade... |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108211e+146, 1.03590399489545e-304, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613116243-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 251 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108211e+146, 1.03590399489545e-304, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
# example data frame
set.seed(33)
expr <- data.frame(EnsemblID=c("A", "B", "B", "C", "C", "C", "A", "B", "A", "C", "D"),
sample1=rnorm(11),
sample2=rnorm(11),
sample3=rnorm(11))
probes2genes <- function(expr) {
expr2 <- aggregate(expr[,-1], by=list(Gene=as.fa... | /aracne/scripts/probes2genes.R | no_license | antass/REAGENT | R | false | false | 1,606 | r | # example data frame
set.seed(33)
expr <- data.frame(EnsemblID=c("A", "B", "B", "C", "C", "C", "A", "B", "A", "C", "D"),
sample1=rnorm(11),
sample2=rnorm(11),
sample3=rnorm(11))
probes2genes <- function(expr) {
expr2 <- aggregate(expr[,-1], by=list(Gene=as.fa... |
#' @export
#' @title Unpacks a Site Tool
#'
#' @description
#' Processes a submitted Site Tool (in .xlsx format) by identifying integrity
#' issues, checking data against DATIM validations, and extracting data.
#'
#' @param d Datapackr object as passed from unPackTool.
#'
#' @return d
#'
unPackSiteTool <- function(... | /R/unPackSiteTool.R | no_license | AdeBaddest/datapackr | R | false | false | 1,436 | r | #' @export
#' @title Unpacks a Site Tool
#'
#' @description
#' Processes a submitted Site Tool (in .xlsx format) by identifying integrity
#' issues, checking data against DATIM validations, and extracting data.
#'
#' @param d Datapackr object as passed from unPackTool.
#'
#' @return d
#'
unPackSiteTool <- function(... |
library(sensitivity)
library(tidyverse)
library(dplyr)
library(foreach)
library(doParallel)
source(here::here("R", "MPA_model.R"))
source(here::here("R", "sensitivity.R"))
MPA.mat <- read.csv(here::here("inputs", "MPA.matrix.csv"))
mrate <- read.csv(here::here("raw_data", "mrate.csv"))
price <- read.csv(here::here("ra... | /scripts/Sensitivity.R | no_license | sjcruz/delayed_management | R | false | false | 4,027 | r | library(sensitivity)
library(tidyverse)
library(dplyr)
library(foreach)
library(doParallel)
source(here::here("R", "MPA_model.R"))
source(here::here("R", "sensitivity.R"))
MPA.mat <- read.csv(here::here("inputs", "MPA.matrix.csv"))
mrate <- read.csv(here::here("raw_data", "mrate.csv"))
price <- read.csv(here::here("ra... |
## extract.autopls.R Functions to extract values from an autopls object
predicted <- function (object)
{
## valid object?
if (class (object) != 'autopls') stop ('needs object of class autopls')
## Get nlv
lv <- get.lv (object)
## Get Yval
Yval <- object$validation$pred [,,lv]
return (Yval)
... | /autopls/R/extract.autopls.R | no_license | ingted/R-Examples | R | false | false | 2,568 | r | ## extract.autopls.R Functions to extract values from an autopls object
predicted <- function (object)
{
## valid object?
if (class (object) != 'autopls') stop ('needs object of class autopls')
## Get nlv
lv <- get.lv (object)
## Get Yval
Yval <- object$validation$pred [,,lv]
return (Yval)
... |
#' Class \code{"vineCopula"}
#'
#' A class representing vine copulas in a object oriented implementations. Many
#' functions go back to the package \code{\link{VineCopula-package}}
#'
#'
#' @name vineCopula-class
#' @aliases vineCopula-class fitCopula,vineCopula-method
#' @docType class
#' @section Objects fro... | /R/vineCopulas.R | no_license | digideskio/VineCopula | R | false | false | 6,057 | r | #' Class \code{"vineCopula"}
#'
#' A class representing vine copulas in a object oriented implementations. Many
#' functions go back to the package \code{\link{VineCopula-package}}
#'
#'
#' @name vineCopula-class
#' @aliases vineCopula-class fitCopula,vineCopula-method
#' @docType class
#' @section Objects fro... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{nytcovstate}
\alias{nytcovstate}
\title{NYT COVID-19 data for the US states, current as of Friday, December 4, 2020}
\format{
A tibble with 15,194 rows and 5 columns
\describe{
\item{date}{Date in YYYY-MM-DD forma... | /man/nytcovstate.Rd | permissive | Jupikajej/covdata | R | false | true | 2,157 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{nytcovstate}
\alias{nytcovstate}
\title{NYT COVID-19 data for the US states, current as of Friday, December 4, 2020}
\format{
A tibble with 15,194 rows and 5 columns
\describe{
\item{date}{Date in YYYY-MM-DD forma... |
library(mongolite)
library(jsonlite)
m <- mongo("users", url = "mongodb://127.0.0.1:27017/mydb")
result <- m$find('{}')
toJSON(result)
| /example/getData.R | permissive | apaichon/rxcute | R | false | false | 135 | r | library(mongolite)
library(jsonlite)
m <- mongo("users", url = "mongodb://127.0.0.1:27017/mydb")
result <- m$find('{}')
toJSON(result)
|
y <- c(0.00844905448652788,-0.00504879865436605,0.00384615268860546,0.0214293914558992,0.0232839389540449,0.0299121323429455,0.037929328538964,0.0212773984472849,0.0270006018185058,0.0140346711715057,0.0112575217306222,0.0109290705321903,0.00885396831725505,0.00349666585229444,0.00236272591159805,0.000973236086552198,0... | /data.R/fig07_01.data.R | permissive | enguang2/stan-statespace | R | false | false | 6,170 | r | y <- c(0.00844905448652788,-0.00504879865436605,0.00384615268860546,0.0214293914558992,0.0232839389540449,0.0299121323429455,0.037929328538964,0.0212773984472849,0.0270006018185058,0.0140346711715057,0.0112575217306222,0.0109290705321903,0.00885396831725505,0.00349666585229444,0.00236272591159805,0.000973236086552198,0... |
# Coursera: Practical Machine learning
# Script from course commented by Alexander Buschle
rm(list = ls())
# Week 2 - Lecture 8 - Prediction with Regression ####
# Example: Old faithful eruptions ####
library(caret)
data(faithful)
set.seed(333)
inTrain <- createDataPartition(y = faithful$waiting, p = 0.5, list = ... | /R_Practical_Machine_Learning_Coursera/2nd_Week/Week_2_lecture_8_Predicting_with_Regression.R | no_license | DrBuschle/Machine_Learning | R | false | false | 4,777 | r | # Coursera: Practical Machine learning
# Script from course commented by Alexander Buschle
rm(list = ls())
# Week 2 - Lecture 8 - Prediction with Regression ####
# Example: Old faithful eruptions ####
library(caret)
data(faithful)
set.seed(333)
inTrain <- createDataPartition(y = faithful$waiting, p = 0.5, list = ... |
#' Create bed file of CpG or GpC motifs
#'
#' @param genomeFile String with path to fasta file with genome sequence
#' @param CGorGC String with motif to be found (either "CG" or "GC")
#' @return A bed file with locations of the C in all occurrences of this motif on both strands will be written to
#' the same director... | /R/bam2methMats.R | no_license | jsemple19/methMatrix | R | false | false | 33,404 | r |
#' Create bed file of CpG or GpC motifs
#'
#' @param genomeFile String with path to fasta file with genome sequence
#' @param CGorGC String with motif to be found (either "CG" or "GC")
#' @return A bed file with locations of the C in all occurrences of this motif on both strands will be written to
#' the same director... |
\docType{data}
\name{koçlar}
\alias{koçlar}
\title{Takım koçları tablosu}
\format{3.504 satır ve 10 sütundan oluşan bir data.frame
\describe{
\item{oyuncu}{Özgün oyuncu kodu}
\item{yıl}{Yıl}
\item{takım}{Takım kodu (faktör)}
\item{lig}{Lig kodu (faktör) (AA, AL, FL, NL, PL, UA)}
\item{koçluk_sırası}{Koçluk sıralamasınd... | /man/koclar.rd | permissive | botan/veriler | R | false | false | 1,074 | rd | \docType{data}
\name{koçlar}
\alias{koçlar}
\title{Takım koçları tablosu}
\format{3.504 satır ve 10 sütundan oluşan bir data.frame
\describe{
\item{oyuncu}{Özgün oyuncu kodu}
\item{yıl}{Yıl}
\item{takım}{Takım kodu (faktör)}
\item{lig}{Lig kodu (faktör) (AA, AL, FL, NL, PL, UA)}
\item{koçluk_sırası}{Koçluk sıralamasınd... |
#### Intro to R: working with dataframes ####
#### Before class ####
# share url to hackmd
# share Dropbox script to this week's content
#### Objectives ####
# review previous week's material
# Today:
# importing data into R
# working with data frames
# subsetting data frames
# manipulating factors
#### Reading i... | /week2.R | permissive | kmussar/R_intro | R | false | false | 5,594 | r | #### Intro to R: working with dataframes ####
#### Before class ####
# share url to hackmd
# share Dropbox script to this week's content
#### Objectives ####
# review previous week's material
# Today:
# importing data into R
# working with data frames
# subsetting data frames
# manipulating factors
#### Reading i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cache_rds.R
\name{write_cache}
\alias{write_cache}
\title{Write objects to the website template cache folder}
\usage{
write_cache(object, cache_folder = "_cache", ...)
}
\arguments{
\item{object}{object to save.}
\item{cache_folder}{defaults... | /man/write_cache.Rd | no_license | koncina/bs2site | R | false | true | 619 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cache_rds.R
\name{write_cache}
\alias{write_cache}
\title{Write objects to the website template cache folder}
\usage{
write_cache(object, cache_folder = "_cache", ...)
}
\arguments{
\item{object}{object to save.}
\item{cache_folder}{defaults... |
source('install_and_load_required_packages.R')
source('load_pm25_emissions_data.R')
MakePlot3 <- function() {
file.name <- 'plot3.png'
if (file.exists(file.name)) {
file.remove(file.name)
}
baltimore.city.fips <- '24510'
baltimore.city.emissions.by.year <- summary.scc.pm25.data %>%
filter(fips == ... | /course_project_2/plot3.R | no_license | marcusmonteiro/exploratory_data_analysis | R | false | false | 869 | r | source('install_and_load_required_packages.R')
source('load_pm25_emissions_data.R')
MakePlot3 <- function() {
file.name <- 'plot3.png'
if (file.exists(file.name)) {
file.remove(file.name)
}
baltimore.city.fips <- '24510'
baltimore.city.emissions.by.year <- summary.scc.pm25.data %>%
filter(fips == ... |
library(shiny)
library(tidyverse)
library(here)
library(lubridate)
# Load data ----
load(file = "rows.Rdata")
match_details <- read_delim("group_matches.txt",
delim = "\t",
locale = locale("fi"))
scorers_results <- read_delim("scorers_results.txt",
... | /app.R | no_license | pitkakirahvi/euro2021_results | R | false | false | 10,418 | r | library(shiny)
library(tidyverse)
library(here)
library(lubridate)
# Load data ----
load(file = "rows.Rdata")
match_details <- read_delim("group_matches.txt",
delim = "\t",
locale = locale("fi"))
scorers_results <- read_delim("scorers_results.txt",
... |
var.strata <- function(strata, y = NULL, rh = strata$args$rh, rh.postcorr = FALSE,
model=c("none", "loglinear", "linear", "random"), model.control = list())
{
### Fonction externe : voir fiche d'aide pour la documentation
# Validation des arguments et initialisation de variables ... | /stratification/R/var.strata.R | no_license | ingted/R-Examples | R | false | false | 7,231 | r | var.strata <- function(strata, y = NULL, rh = strata$args$rh, rh.postcorr = FALSE,
model=c("none", "loglinear", "linear", "random"), model.control = list())
{
### Fonction externe : voir fiche d'aide pour la documentation
# Validation des arguments et initialisation de variables ... |
# (c) 2013-2016 Oasis LMF Ltd. Software provided for early adopter evaluation only.
# define user Admin
# Server side script for accessing the Company User List for Flamingo in association with OASIS LMF
############################################## Global Variables #####################################
UserID <- -... | /BFE_RShiny/defineUserAdmin_server.R | no_license | kulprasanna/oasislmf | R | false | false | 15,610 | r | # (c) 2013-2016 Oasis LMF Ltd. Software provided for early adopter evaluation only.
# define user Admin
# Server side script for accessing the Company User List for Flamingo in association with OASIS LMF
############################################## Global Variables #####################################
UserID <- -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.