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 |
|---|---|---|---|---|---|---|---|---|---|
# Script to pull in Secchi data from multiple reservoirs and years ####
#install.packages('pacman') ## Run this line if you don't have "pacman" package installed
pacman::p_load(tidyverse, lubridate) ## Use pacman package to install/load other packages
#### Secchi depths ####
# read in new data file
raw_secchi <- re... | /Data/DataAlreadyUploadedToEDI/EDIProductionFiles/MakeEMLYSI_PAR_secchi/2021/Secchi_aggregation.R | no_license | CareyLabVT/Reservoirs | R | false | false | 4,438 | r | # Script to pull in Secchi data from multiple reservoirs and years ####
#install.packages('pacman') ## Run this line if you don't have "pacman" package installed
pacman::p_load(tidyverse, lubridate) ## Use pacman package to install/load other packages
#### Secchi depths ####
# read in new data file
raw_secchi <- re... |
options(digits.secs=3)
library(rjson)
library(jsonlite)
library(httr)
library(zoo)
library(reshape2)
# #Define an enum of date formats
# available_timestamp_formats <- list(OPENTSDBREADABLE = 1,
# NUMERIC = 2,
# POSIXCT = 3)
# default connecti... | /XY Plot (ggplot) opentsdb (via R)/OpenTsdbLibV2.R | no_license | KeplerManu/InternshipFiles | R | false | false | 37,926 | r | options(digits.secs=3)
library(rjson)
library(jsonlite)
library(httr)
library(zoo)
library(reshape2)
# #Define an enum of date formats
# available_timestamp_formats <- list(OPENTSDBREADABLE = 1,
# NUMERIC = 2,
# POSIXCT = 3)
# default connecti... |
#' @title Log-transform and normalize data by sequencing depth
#' @param raw.data raw gene expression matrix
#' @param scale.factor scaling factor for normalization
#' @return log-normalized gene expression matrix
#' @export
#'
logNormalize <- function(raw.data, scale.factor = 10000) {
# Compute sequencing depth v... | /R/logNormalize.R | permissive | bubibyte/DUBStepR | R | false | false | 812 | r | #' @title Log-transform and normalize data by sequencing depth
#' @param raw.data raw gene expression matrix
#' @param scale.factor scaling factor for normalization
#' @return log-normalized gene expression matrix
#' @export
#'
logNormalize <- function(raw.data, scale.factor = 10000) {
# Compute sequencing depth v... |
### Miscellaneous functions
# Create a x-value for x-axis plot if the user do not specify one
create_x <- function(plotdata) {
x <- tibble(seq(1:dim(plotdata)[1]))
x <- x %>%
rename(time = "seq(1:dim(plotdata)[1])")
return(x)
}
# Create columns names for plotdata tibble based on treatment labels
create_labe... | /misc.R | no_license | JorgeDelro/FIT_OX | R | false | false | 2,743 | r | ### Miscellaneous functions
# Create a x-value for x-axis plot if the user do not specify one
create_x <- function(plotdata) {
x <- tibble(seq(1:dim(plotdata)[1]))
x <- x %>%
rename(time = "seq(1:dim(plotdata)[1])")
return(x)
}
# Create columns names for plotdata tibble based on treatment labels
create_labe... |
cellimage_network_ui <- function(id){
ns <- shiny::NS(id)
shiny::tagList(
iatlas.modules::plotBox(
width = 6,
cyjShiny::cyjShinyOutput(ns("network"), height = 600) %>%
shinycssloaders::withSpinner(.)
)
)
}
| /R/cellimage_network_ui.R | permissive | CRI-iAtlas/iatlas-app | R | false | false | 241 | r | cellimage_network_ui <- function(id){
ns <- shiny::NS(id)
shiny::tagList(
iatlas.modules::plotBox(
width = 6,
cyjShiny::cyjShinyOutput(ns("network"), height = 600) %>%
shinycssloaders::withSpinner(.)
)
)
}
|
# R script to create the BBMO sample attributes file
bbmo_meta <- read.table("bbmo_meta_v3.txt", header = TRUE)
library(dplyr)
a <- bbmo_meta %>%
select(Samples, Day_length, Temperature, Salinity, season)
b <- a %>%
mutate(Temp_range = ifelse(Temperature <= 17.5, "T<=17.5",
ifelse(... | /Scripts/SampleAttributes.R | no_license | SergioRLL/FDP | R | false | false | 851 | r | # R script to create the BBMO sample attributes file
bbmo_meta <- read.table("bbmo_meta_v3.txt", header = TRUE)
library(dplyr)
a <- bbmo_meta %>%
select(Samples, Day_length, Temperature, Salinity, season)
b <- a %>%
mutate(Temp_range = ifelse(Temperature <= 17.5, "T<=17.5",
ifelse(... |
####################################################################################
# Script-file: studio9.solns.R
# Project: FIT2086 - Studio 9
#
# Purpose: Solutions for questions in Studio 9
####################################################################################
# ---------------... | /Week 9/Studio 9/studio9solns.R | no_license | theRealAndyYang/FIT2086-Modelling-for-Data-Analysis | R | false | false | 13,803 | r | ####################################################################################
# Script-file: studio9.solns.R
# Project: FIT2086 - Studio 9
#
# Purpose: Solutions for questions in Studio 9
####################################################################################
# ---------------... |
options(encoding="utf-8")
library("RSQLite")
library(quantmod)
library(xts)
sqlite <- dbDriver("SQLite")
con <- dbConnect(sqlite,"/home/young/work/a_market/db/test_database.sqlite3")
yahoo_dates <- dbGetQuery(con,'select * from yahoo_dates WHERE company_id = 1341')
yahoo_dates <- data.frame(Date=as.Date(yahoo_dates$d... | /R_lang/get_database.r | no_license | wmy367/a_market | R | false | false | 624 | r | options(encoding="utf-8")
library("RSQLite")
library(quantmod)
library(xts)
sqlite <- dbDriver("SQLite")
con <- dbConnect(sqlite,"/home/young/work/a_market/db/test_database.sqlite3")
yahoo_dates <- dbGetQuery(con,'select * from yahoo_dates WHERE company_id = 1341')
yahoo_dates <- data.frame(Date=as.Date(yahoo_dates$d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dimensionality_reduction.R
\name{spearman_rho_mds}
\alias{spearman_rho_mds}
\title{Multidimensional scaling on Spearman rho correlation distance}
\usage{
spearman_rho_mds(X, k = 2)
}
\arguments{
\item{X}{the input matrix, where each column is... | /man/spearman_rho_mds.Rd | permissive | YutongWangUMich/corgi | R | false | true | 629 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dimensionality_reduction.R
\name{spearman_rho_mds}
\alias{spearman_rho_mds}
\title{Multidimensional scaling on Spearman rho correlation distance}
\usage{
spearman_rho_mds(X, k = 2)
}
\arguments{
\item{X}{the input matrix, where each column is... |
#----------------------------------------------------------
# BASIC EXAMPLE
#----------------------------------------------------------
# box cox transformation: BoxCox.lambda() function will chooses a lamda
# Having chosen a transformation, we need to forecast the transformed data.
# then, we need to reverse the tr... | /TimeSeries/Transformations/BoxCox_Example.R | no_license | yangboyubyron/DS_Recipes | R | false | false | 1,718 | r |
#----------------------------------------------------------
# BASIC EXAMPLE
#----------------------------------------------------------
# box cox transformation: BoxCox.lambda() function will chooses a lamda
# Having chosen a transformation, we need to forecast the transformed data.
# then, we need to reverse the tr... |
###############################
# class for single heatmap
#
# the layout of the heatmap is 7 x 9
# == title
# Class for a single heatmap
#
# == details
# The components for a single heamtap are placed into a 9 x 7 layout:
#
# +------+ (1)
# +------+ (2)
# +------+ (3)
# +------+... | /R/Heatmap-class.R | no_license | kassambara/ComplexHeatmap | R | false | false | 58,083 | r |
###############################
# class for single heatmap
#
# the layout of the heatmap is 7 x 9
# == title
# Class for a single heatmap
#
# == details
# The components for a single heamtap are placed into a 9 x 7 layout:
#
# +------+ (1)
# +------+ (2)
# +------+ (3)
# +------+... |
library(dplyr)
# load the dataset.
df = read.csv("./household_power_consumption.txt", sep=";", na.strings="?",
colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"))
# convert Date column to date datatype
df$Date <- as.Date(df$Date , "%d/%m/... | /Plot2.R | no_license | ManuelHaas/ExData_Plotting1 | R | false | false | 804 | r | library(dplyr)
# load the dataset.
df = read.csv("./household_power_consumption.txt", sep=";", na.strings="?",
colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"))
# convert Date column to date datatype
df$Date <- as.Date(df$Date , "%d/%m/... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/taxodecider.R
\name{taxodecider}
\alias{taxodecider}
\title{Selecting the correct taxonomy}
\usage{
taxodecider(metabarlist, best.db, sim.scores, lineage, threshold)
}
\arguments{
\item{metabarlist}{a \code{metabarlist} object}
\item{best.db... | /man/taxodecider.Rd | no_license | metabaRfactory/metabaR | R | false | true | 2,666 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/taxodecider.R
\name{taxodecider}
\alias{taxodecider}
\title{Selecting the correct taxonomy}
\usage{
taxodecider(metabarlist, best.db, sim.scores, lineage, threshold)
}
\arguments{
\item{metabarlist}{a \code{metabarlist} object}
\item{best.db... |
## 1. Install packages
install.packages("dplyr")
install.packages("tidyr")
install.packages("tidyverse")
## 2. Load libraries
library(dplyr)
library(tidyr)
library(tidyverse)
## 3. Set Working Directory
setwd("/Users/ussadethlo/Desktop/DSTR/EDA_Project_2/EDA_Project_2")
## 4. Download and Extract file
zip_file <... | /plot6.R | no_license | sdethloff/EDA_Project_2 | R | false | false | 1,524 | r | ## 1. Install packages
install.packages("dplyr")
install.packages("tidyr")
install.packages("tidyverse")
## 2. Load libraries
library(dplyr)
library(tidyr)
library(tidyverse)
## 3. Set Working Directory
setwd("/Users/ussadethlo/Desktop/DSTR/EDA_Project_2/EDA_Project_2")
## 4. Download and Extract file
zip_file <... |
\name{gr2.bin}
\alias{gr2.bin}
\docType{data}
\title{
%% ~~ data name/kind ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
}
\usage{data(gr2.bin)}
\format{
The format is:
Formal class 'SimpleRleList' [package "IRanges"] with 4 slots
..@ elementType : chr "Rle"
..@ elementMe... | /man/gr2.bin.Rd | no_license | dritoshi/qbee | R | false | false | 7,011 | rd | \name{gr2.bin}
\alias{gr2.bin}
\docType{data}
\title{
%% ~~ data name/kind ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
}
\usage{data(gr2.bin)}
\format{
The format is:
Formal class 'SimpleRleList' [package "IRanges"] with 4 slots
..@ elementType : chr "Rle"
..@ elementMe... |
library(ffstream)
### Name: detectFFFMean
### Title: Detect a change/changes in a vector using FFF method
### Aliases: detectFFFMean
### ** Examples
# create a stream with three changepoints
set.seed(8)
x <- rnorm(400, 5, 1) + rep(c(0:3), each=100) # mean is 5 and s.d. is 1
# multiple changepoints
list_fff <- dete... | /data/genthat_extracted_code/ffstream/examples/detectFFFMean.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 737 | r | library(ffstream)
### Name: detectFFFMean
### Title: Detect a change/changes in a vector using FFF method
### Aliases: detectFFFMean
### ** Examples
# create a stream with three changepoints
set.seed(8)
x <- rnorm(400, 5, 1) + rep(c(0:3), each=100) # mean is 5 and s.d. is 1
# multiple changepoints
list_fff <- dete... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rule.R, R/expressionset.R
\name{variables}
\alias{variables}
\alias{variables,rule-method}
\alias{variables,list-method}
\alias{variables,data.frame-method}
\alias{variables,environment-method}
\alias{variables,expressionset-method}
\title{Ge... | /man/variables.Rd | no_license | cran/validate | R | false | true | 2,620 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rule.R, R/expressionset.R
\name{variables}
\alias{variables}
\alias{variables,rule-method}
\alias{variables,list-method}
\alias{variables,data.frame-method}
\alias{variables,environment-method}
\alias{variables,expressionset-method}
\title{Ge... |
#' @title Title
#'
#' @description Description
#'
#' @param x A number.
#' @param y A number.
#' @return return value here.
#' @details
#' Additional details here
#' @examples
#' example function call here
#' @export
treatment_dropout <- function(dat, at)
{
# Description:
# People on treatment have a small per day... | /R/treatment_dropout.R | no_license | EvoNetHIV/Test_and_Treat | R | false | false | 1,650 | r | #' @title Title
#'
#' @description Description
#'
#' @param x A number.
#' @param y A number.
#' @return return value here.
#' @details
#' Additional details here
#' @examples
#' example function call here
#' @export
treatment_dropout <- function(dat, at)
{
# Description:
# People on treatment have a small per day... |
library(spotifyr)
Sys.setenv(SPOTIFY_CLIENT_ID = 'c38e0bb028ff450ab8f452671c484d97')
Sys.setenv(SPOTIFY_CLIENT_SECRET = 'a522513473a04a9ba5cd7d45bf87f0b2')
access_token <- get_spotify_access_token()
library(tidyverse)
beatles <- get_artist_audio_features('the beatles', access_token = get_spotify_access_token())
The B... | /spotify_notebooks/Rscript.R | no_license | userqin/GalvanizeCapstone | R | false | false | 3,504 | r | library(spotifyr)
Sys.setenv(SPOTIFY_CLIENT_ID = 'c38e0bb028ff450ab8f452671c484d97')
Sys.setenv(SPOTIFY_CLIENT_SECRET = 'a522513473a04a9ba5cd7d45bf87f0b2')
access_token <- get_spotify_access_token()
library(tidyverse)
beatles <- get_artist_audio_features('the beatles', access_token = get_spotify_access_token())
The B... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CalculateVehicleOperatingCost.R
\docType{data}
\name{CalculateVehicleOperatingCostSpecifications}
\alias{CalculateVehicleOperatingCostSpecifications}
\title{Specifications list for CalculateVehicleOperatingCost module}
\format{A list containi... | /sources/modules/VETravelPerformance/man/CalculateVehicleOperatingCostSpecifications.Rd | permissive | rickdonnelly/VisionEval-Dev | R | false | true | 883 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CalculateVehicleOperatingCost.R
\docType{data}
\name{CalculateVehicleOperatingCostSpecifications}
\alias{CalculateVehicleOperatingCostSpecifications}
\title{Specifications list for CalculateVehicleOperatingCost module}
\format{A list containi... |
9fc9b0eb5cbd7c43ebc9754d4403df26 query42_query50_1344.qdimacs 5021 40211 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query42_query50_1344/query42_query50_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 72 | r | 9fc9b0eb5cbd7c43ebc9754d4403df26 query42_query50_1344.qdimacs 5021 40211 |
# Check if this section was selected to run in the input file
if(price.duration.curve) {
# If there is a problem with the query return an error, else create the plots.
if ( typeof(interval.region.price)=='character' ) {
print('ERROR: interval_region_price function not returning correct results.')
} else {
... | /source_scripts/p_price_duration_curve.R | no_license | rubythonode/MAGMA | R | false | false | 765 | r | # Check if this section was selected to run in the input file
if(price.duration.curve) {
# If there is a problem with the query return an error, else create the plots.
if ( typeof(interval.region.price)=='character' ) {
print('ERROR: interval_region_price function not returning correct results.')
} else {
... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
invsample <- NULL
set <- function(x) {
Sample <<- x
invsample <<- NULL
}
get <- function() sample
setInverse <- function(inve... | /cachematrix.R | no_license | varatha123/ProgrammingAssignment2 | R | false | false | 843 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
invsample <- NULL
set <- function(x) {
Sample <<- x
invsample <<- NULL
}
get <- function() sample
setInverse <- function(inve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{stocksCRSP}
\alias{stocksCRSP}
\title{CRSP stocks data}
\source{
TBA
}
\usage{
data("stocksCRSP")
}
\description{
stocksCRSP
}
| /man/stocksCRSP.Rd | no_license | gentlerainsky/FactorAnalytics | R | false | true | 237 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{stocksCRSP}
\alias{stocksCRSP}
\title{CRSP stocks data}
\source{
TBA
}
\usage{
data("stocksCRSP")
}
\description{
stocksCRSP
}
|
#'
#'@title Get a TCSAM2015 std object by reading a .std file
#'
#'@description Function to get a TCSAM2015 std object by reading a .std file
#'
#'@param stdFile - std file from a TCSAM2015 model run. can be NULL.
#'
#'@return std model object (a list). The returned object will be a list of class 'tcsam2015.std'.
#'
#'... | /R/getStd.R | permissive | wStockhausen/rTCSAM2015 | R | false | false | 630 | r | #'
#'@title Get a TCSAM2015 std object by reading a .std file
#'
#'@description Function to get a TCSAM2015 std object by reading a .std file
#'
#'@param stdFile - std file from a TCSAM2015 model run. can be NULL.
#'
#'@return std model object (a list). The returned object will be a list of class 'tcsam2015.std'.
#'
#'... |
learningCurve<-function(X, y, Xval, yval,lambda){
# Number of training examples
m <-dim(X)[1]
d = 100 # record the training error every 100 examples
# return these values correctly
numRecords = m/100
error_train <-numeric(numRecords)
error_val <-numeric(numRecords)
n <- dim(X)[2]
i <- 1000 # train... | /learningCurve.R | no_license | LukeLiush/filetypeDetection | R | false | false | 900 | r | learningCurve<-function(X, y, Xval, yval,lambda){
# Number of training examples
m <-dim(X)[1]
d = 100 # record the training error every 100 examples
# return these values correctly
numRecords = m/100
error_train <-numeric(numRecords)
error_val <-numeric(numRecords)
n <- dim(X)[2]
i <- 1000 # train... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregate_funs.R
\name{sp_aggregate}
\alias{sp_aggregate}
\title{Aggregate SpatialPolygonsDataFrame to new geometry.}
\usage{
sp_aggregate(zones, aggzones, cols = FALSE, FUN = sum,
prop_by_area = ifelse(identical(FUN, mean) == FALSE, TRUE, ... | /man/sp_aggregate.Rd | permissive | Anyaoha/stplanr | R | false | true | 1,806 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregate_funs.R
\name{sp_aggregate}
\alias{sp_aggregate}
\title{Aggregate SpatialPolygonsDataFrame to new geometry.}
\usage{
sp_aggregate(zones, aggzones, cols = FALSE, FUN = sum,
prop_by_area = ifelse(identical(FUN, mean) == FALSE, TRUE, ... |
#MBatch Copyright ? 2011, 2012, 2013, 2014, 2015, 2016, 2017 University of Texas MD Anderson Cancer Center
#
#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 Foundation, either version 2 of the License, or (at yo... | /package/tests/EB_withNonParametricPriors.R | no_license | MD-Anderson-Bioinformatics/MBatch | R | false | false | 2,488 | r | #MBatch Copyright ? 2011, 2012, 2013, 2014, 2015, 2016, 2017 University of Texas MD Anderson Cancer Center
#
#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 Foundation, either version 2 of the License, or (at yo... |
#' Fetch pubmed ids matching specially formatted citation strings
#'
#'@param bdata character, containing citation data.
#' Each citation must be represented in a pipe-delimited format
#' journal_title|year|volume|first_page|author_name|your_key|
#' The final field "your_key" is arbitrary, and can used as you see
#' ... | /R/entrez_citmatch.r | no_license | dwinter/rentrez | R | false | false | 1,811 | r | #' Fetch pubmed ids matching specially formatted citation strings
#'
#'@param bdata character, containing citation data.
#' Each citation must be represented in a pipe-delimited format
#' journal_title|year|volume|first_page|author_name|your_key|
#' The final field "your_key" is arbitrary, and can used as you see
#' ... |
library(Rdimtools)
### Name: do.extlpp
### Title: Extended Locality Preserving Projection
### Aliases: do.extlpp
### ** Examples
## Not run:
##D ## generate data
##D X <- aux.gensamples(n=123)
##D
##D ## run Extended LPP with different neighborhood graph
##D out1 <- do.extlpp(X, numk=5)
##D out2 <- do.extlpp(X, n... | /data/genthat_extracted_code/Rdimtools/examples/linear_EXTLPP.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 591 | r | library(Rdimtools)
### Name: do.extlpp
### Title: Extended Locality Preserving Projection
### Aliases: do.extlpp
### ** Examples
## Not run:
##D ## generate data
##D X <- aux.gensamples(n=123)
##D
##D ## run Extended LPP with different neighborhood graph
##D out1 <- do.extlpp(X, numk=5)
##D out2 <- do.extlpp(X, n... |
library("testthat")
source("R/lib.R")
test_that("generate_xyn_patterns", {
patterns <- generate_xyn_patterns(c("A", "B"), c("D", "E"), 1:3)
expect_equal(sort(patterns), sort(c("AD1", "AD2", "AD3",
"AE1", "AE2", "AE3",
"BD1", "BD2", "BD3",
... | /tests/testthat.R | permissive | Thyra/biopeter | R | false | false | 843 | r | library("testthat")
source("R/lib.R")
test_that("generate_xyn_patterns", {
patterns <- generate_xyn_patterns(c("A", "B"), c("D", "E"), 1:3)
expect_equal(sort(patterns), sort(c("AD1", "AD2", "AD3",
"AE1", "AE2", "AE3",
"BD1", "BD2", "BD3",
... |
###############################################################################
#
# webvis: An R package to create web visualizations.
# author: Shane Conway <shane.conway@gmail.com>
#
# This is released under a BSD license.
#
# Documentation was created using roxygen:
# roxygenize('webvis', roxygen.dir='webvis... | /webvis/R/util.R | no_license | ingted/R-Examples | R | false | false | 3,653 | r | ###############################################################################
#
# webvis: An R package to create web visualizations.
# author: Shane Conway <shane.conway@gmail.com>
#
# This is released under a BSD license.
#
# Documentation was created using roxygen:
# roxygenize('webvis', roxygen.dir='webvis... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/index.R
\name{extract_dta_files}
\alias{extract_dta_files}
\title{Extract .dta files from DHS .zip files and insert data on
extracted .dta files into the appropriate file_index elements.
Files are copied to the output path all lower-case as i... | /man/extract_dta_files.Rd | no_license | sakrejda/pdhs | R | false | true | 886 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/index.R
\name{extract_dta_files}
\alias{extract_dta_files}
\title{Extract .dta files from DHS .zip files and insert data on
extracted .dta files into the appropriate file_index elements.
Files are copied to the output path all lower-case as i... |
\name{create.pathway.node.attributes}
\alias{create.pathway.node.attributes}
\title{create.pathway.node.attributes}
\usage{
create.pathway.node.attributes(classTable, graph, DB,
filename1, filename2 = NULL, organismId = NULL)
}
\arguments{
\item{classTable}{classification table created by
export.class.table f... | /man/create.pathway.node.attributes.Rd | no_license | rsilvabioinfo/ProbMetab | R | false | false | 1,357 | rd | \name{create.pathway.node.attributes}
\alias{create.pathway.node.attributes}
\title{create.pathway.node.attributes}
\usage{
create.pathway.node.attributes(classTable, graph, DB,
filename1, filename2 = NULL, organismId = NULL)
}
\arguments{
\item{classTable}{classification table created by
export.class.table f... |
# devtools::test(".", "satellite")
context("satellite")
test_that("satellite works as expected for Landsat 7 files", {
path <- system.file("extdata",
package = "satellite")
files <- list.files(path,
pattern = glob2rx("LE7*.TIF"),
full.names = TR... | /tests/testthat/test-satellite.R | no_license | cha63506/satellite-15 | R | false | false | 2,479 | r | # devtools::test(".", "satellite")
context("satellite")
test_that("satellite works as expected for Landsat 7 files", {
path <- system.file("extdata",
package = "satellite")
files <- list.files(path,
pattern = glob2rx("LE7*.TIF"),
full.names = TR... |
\name{Cell Type Stats}
\alias{row_mean_aggregate}
\alias{row_var_aggregate}
\alias{col_mean_aggregate}
\alias{col_var_aggregate}
\title{Row/Column Means/Variances by Factor}
\description{
Efficiently calculates the row means or row variances or column means or columns variances of a matrix split by a factor.
}
\usage{... | /man/row_mean_aggregate.Rd | no_license | tallulandrews/TreeOfCells | R | false | false | 1,308 | rd | \name{Cell Type Stats}
\alias{row_mean_aggregate}
\alias{row_var_aggregate}
\alias{col_mean_aggregate}
\alias{col_var_aggregate}
\title{Row/Column Means/Variances by Factor}
\description{
Efficiently calculates the row means or row variances or column means or columns variances of a matrix split by a factor.
}
\usage{... |
dice1 <- sample(1:6, 1000, replace=TRUE)
dice2 <- sample(1:6, 1000, replace=TRUE)
dice3 <- sample(1:6, 1000, replace=TRUE)
dice4 <- sample(1:6, 1000, replace=TRUE)
dice5 <- sample(1:6, 1000, replace=TRUE)
dice6 <- sample(1:6, 1000, replace=TRUE)
chisq.test(dice1, dice2)
chisq.test(dice1, dice3)
chisq.test(dice1, dice4... | /10주차/10주차/2.R | no_license | juyeon0625/Bigdata | R | false | false | 374 | r | dice1 <- sample(1:6, 1000, replace=TRUE)
dice2 <- sample(1:6, 1000, replace=TRUE)
dice3 <- sample(1:6, 1000, replace=TRUE)
dice4 <- sample(1:6, 1000, replace=TRUE)
dice5 <- sample(1:6, 1000, replace=TRUE)
dice6 <- sample(1:6, 1000, replace=TRUE)
chisq.test(dice1, dice2)
chisq.test(dice1, dice3)
chisq.test(dice1, dice4... |
#'@title Define a Feature
#'
#'
#'@description
#'\code{define_feat} displays the description of the Spotify parameter the user wishes to see.
#'
#'
#'@details
#'This function contains the descriptions of all parameters as they are written in the
#'Spotify API within a dataframe. The user can see the description of a pa... | /R/define_feat.R | no_license | brodriguez97/spotiverseR | R | false | false | 944 | r | #'@title Define a Feature
#'
#'
#'@description
#'\code{define_feat} displays the description of the Spotify parameter the user wishes to see.
#'
#'
#'@details
#'This function contains the descriptions of all parameters as they are written in the
#'Spotify API within a dataframe. The user can see the description of a pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pca_plot.R
\name{pca_plot}
\alias{pca_plot}
\title{PCA Plot}
\usage{
pca_plot(
data,
xComponent = "PC1",
yComponent = "PC2",
legendPos = "right",
soft = "PLINK",
colPalette = "Accent",
title = NULL
)
}
\arguments{
\item{data}{PL... | /man/pca_plot.Rd | permissive | LindoNkambule/gwaRs | R | false | true | 1,482 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pca_plot.R
\name{pca_plot}
\alias{pca_plot}
\title{PCA Plot}
\usage{
pca_plot(
data,
xComponent = "PC1",
yComponent = "PC2",
legendPos = "right",
soft = "PLINK",
colPalette = "Accent",
title = NULL
)
}
\arguments{
\item{data}{PL... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.rds_operations.R
\name{describe_source_regions}
\alias{describe_source_regions}
\title{Returns a list of the source AWS Regions where the current AWS Region can create a Read Replica or copy a DB snapshot from}
\usage{
describe_source_re... | /service/paws.rds/man/describe_source_regions.Rd | permissive | CR-Mercado/paws | R | false | true | 1,589 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.rds_operations.R
\name{describe_source_regions}
\alias{describe_source_regions}
\title{Returns a list of the source AWS Regions where the current AWS Region can create a Read Replica or copy a DB snapshot from}
\usage{
describe_source_re... |
library(sqldf)
library(lubridate)
## Select data from 01/02/2007 to 02/02/2007
target_data <- read.csv.sql('household_power_consumption.txt', sql = "select * from file where Date in ('1/2/2007', '2/2/2007')", header = TRUE, sep = ";")
## Convert the Date and Time variables to Date/Time. Using lubridate library to
##... | /plot4.R | no_license | ghilbrae/ExData_Plotting1 | R | false | false | 1,982 | r | library(sqldf)
library(lubridate)
## Select data from 01/02/2007 to 02/02/2007
target_data <- read.csv.sql('household_power_consumption.txt', sql = "select * from file where Date in ('1/2/2007', '2/2/2007')", header = TRUE, sep = ";")
## Convert the Date and Time variables to Date/Time. Using lubridate library to
##... |
# Assess performance
assessPerf <- function(myModel){
# myModel - H2o model
perf <- h2o.performance(model = model.nb, newdata = new.hex)
h2o.confusionMatrix(perf)
plot(perf, type = "roc", col = "blue", typ = "b")
perf@metrics$AUC
}
# Generate submission file
genSubmission <- function(myModel){
# myModel - ... | /R/functions.R | permissive | kproductivity/santander-customer-satisfaction | R | false | false | 708 | r | # Assess performance
assessPerf <- function(myModel){
# myModel - H2o model
perf <- h2o.performance(model = model.nb, newdata = new.hex)
h2o.confusionMatrix(perf)
plot(perf, type = "roc", col = "blue", typ = "b")
perf@metrics$AUC
}
# Generate submission file
genSubmission <- function(myModel){
# myModel - ... |
mkdir <- function(fold){
if(!dir.exists(fold)){
dir.create(fold)
}
}
for(s in c("R")){
for(t in c("S10", "S20")){#, "S30","S50", "S60", "S40", "S10", "S20"
setwd(paste0("D:\\Fangsa\\causal_compare\\Data\\TS_", s, "_", t))
mkdir("MDSINE")
for(i in seq(100)){
aa <- read.table(paste... | /code/2_data_transfer/2mdsine.R | no_license | Fangsa/CausalDiscovery | R | false | false | 1,085 | r | mkdir <- function(fold){
if(!dir.exists(fold)){
dir.create(fold)
}
}
for(s in c("R")){
for(t in c("S10", "S20")){#, "S30","S50", "S60", "S40", "S10", "S20"
setwd(paste0("D:\\Fangsa\\causal_compare\\Data\\TS_", s, "_", t))
mkdir("MDSINE")
for(i in seq(100)){
aa <- read.table(paste... |
## The following Rscript reads data for currency chests and extracts
## cleaned pin codes for all currecy chests under jurisdiction of 18
## regional offices.
###################
## Files sourced ##
###################
source("clean_address_pincode.R")
###############
## Read data ##
###############
base_data <- read... | /SRC/R/read_currency_chest_data.R | no_license | sargamjain13/fintech | R | false | false | 1,298 | r | ## The following Rscript reads data for currency chests and extracts
## cleaned pin codes for all currecy chests under jurisdiction of 18
## regional offices.
###################
## Files sourced ##
###################
source("clean_address_pincode.R")
###############
## Read data ##
###############
base_data <- read... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count_w_connected_cmpts.R
\name{count_w_connected_cmpts}
\alias{count_w_connected_cmpts}
\title{Get the number of weakly-connected components}
\usage{
count_w_connected_cmpts(graph)
}
\arguments{
\item{graph}{A graph object of class \code{dgr... | /man/count_w_connected_cmpts.Rd | permissive | rich-iannone/DiagrammeR | R | false | true | 715 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count_w_connected_cmpts.R
\name{count_w_connected_cmpts}
\alias{count_w_connected_cmpts}
\title{Get the number of weakly-connected components}
\usage{
count_w_connected_cmpts(graph)
}
\arguments{
\item{graph}{A graph object of class \code{dgr... |
#' @rdname susie_plots
#'
#' @title SuSiE Plots.
#'
#' @description \code{susie_plot} produces a per-variable summary of
#' the SuSiE credible sets. \code{susie_plot_iteration} produces a
#' diagnostic plot for the susie model fitting. For
#' \code{susie_plot_iteration}, several plots will be created if
#' \co... | /R/susie_plots.R | no_license | yzhao2020/susieR | R | false | false | 9,411 | r | #' @rdname susie_plots
#'
#' @title SuSiE Plots.
#'
#' @description \code{susie_plot} produces a per-variable summary of
#' the SuSiE credible sets. \code{susie_plot_iteration} produces a
#' diagnostic plot for the susie model fitting. For
#' \code{susie_plot_iteration}, several plots will be created if
#' \co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dplyr_verbs.R
\name{dplyr-surveydata}
\alias{dplyr-surveydata}
\alias{mutate.surveydata}
\alias{as_tibble.surveydata}
\alias{as.tbl.surveydata}
\alias{select.surveydata}
\alias{filter}
\alias{arrange.surveydata}
\alias{summarise.surveydata}
\... | /man/dplyr-surveydata.Rd | no_license | cran/surveydata | R | false | true | 1,375 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dplyr_verbs.R
\name{dplyr-surveydata}
\alias{dplyr-surveydata}
\alias{mutate.surveydata}
\alias{as_tibble.surveydata}
\alias{as.tbl.surveydata}
\alias{select.surveydata}
\alias{filter}
\alias{arrange.surveydata}
\alias{summarise.surveydata}
\... |
data = read.csv("inputdata/Iterations Sharing Monitor.csv", sep = excelSep)
colnames(data) = gsub("\\.", "", colnames(data))
sink("outputTex/Samples.tex", append = TRUE)
cat(paste("\\newcommand\\analyzedPlatforms{",sum(data$Numberofnewplatforms), "}", sep = ""))
cat(paste("\\newcommand\\deadPlatforms{",sum(data$Number... | /source/SamplesTex.R | no_license | P2PSCC/ShareEco | R | false | false | 551 | r | data = read.csv("inputdata/Iterations Sharing Monitor.csv", sep = excelSep)
colnames(data) = gsub("\\.", "", colnames(data))
sink("outputTex/Samples.tex", append = TRUE)
cat(paste("\\newcommand\\analyzedPlatforms{",sum(data$Numberofnewplatforms), "}", sep = ""))
cat(paste("\\newcommand\\deadPlatforms{",sum(data$Number... |
#!/usr/bin/env Rscript
library('gage')
library('limma')
library('pathview')
library('optparse')
print("Starting gene set enrichment")
option_list = list(
make_option(c("-o", "--outdir"),
type="character",
default=NULL,
help="Directory containing MQ proteogenomics pipeline output files",
m... | /bin/R/gage.R | permissive | tamlynkg/proteomics-pipelines | R | false | false | 12,965 | r | #!/usr/bin/env Rscript
library('gage')
library('limma')
library('pathview')
library('optparse')
print("Starting gene set enrichment")
option_list = list(
make_option(c("-o", "--outdir"),
type="character",
default=NULL,
help="Directory containing MQ proteogenomics pipeline output files",
m... |
# clean up workspace
rm(list=ls())
# close all figure windows created with x11()
graphics.off()
# LOAD PACKAGES ----
library(tidyverse)
# LOAD DATA ----
# code for countries ----
code <- read_csv("D:/global_inequality/data/cnt-code.csv")
# human rights (table 2) ----
hum_right <- read_csv("D:/global_inequalit... | /script/00-import-and-clean-data.R | no_license | andrepvieira/global_inequality | R | false | false | 11,421 | r | # clean up workspace
rm(list=ls())
# close all figure windows created with x11()
graphics.off()
# LOAD PACKAGES ----
library(tidyverse)
# LOAD DATA ----
# code for countries ----
code <- read_csv("D:/global_inequality/data/cnt-code.csv")
# human rights (table 2) ----
hum_right <- read_csv("D:/global_inequalit... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{proj4comp}
\alias{proj4comp}
\title{Performs a rough comparison of two proj4strings to see if they match}
\usage{
proj4comp(x, y)
}
\arguments{
\item{x}{a proj4string to compare with \code{y}}
\item{y}{a proj4string to compare with \code{x}}
}
\value{
TRUE or ... | /man/proj4comp.Rd | no_license | mauricioromero86/teamlucc | R | false | false | 614 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{proj4comp}
\alias{proj4comp}
\title{Performs a rough comparison of two proj4strings to see if they match}
\usage{
proj4comp(x, y)
}
\arguments{
\item{x}{a proj4string to compare with \code{y}}
\item{y}{a proj4string to compare with \code{x}}
}
\value{
TRUE or ... |
# Convert data frame to SpatialLinesDataFrame
#
#
# @aliases sfill
# @export
# @param data A SpatialGridDataFrame or SpatialPixelDataFrame
# @param where Spatial*DataFrame of locations for which to fill in values from \code{data}. If NULL, use \code{data} to determine the locations.
# @return Spatial object
sfill <- f... | /R/bru.spatial.R | no_license | martinju/inlabru | R | false | false | 6,992 | r | # Convert data frame to SpatialLinesDataFrame
#
#
# @aliases sfill
# @export
# @param data A SpatialGridDataFrame or SpatialPixelDataFrame
# @param where Spatial*DataFrame of locations for which to fill in values from \code{data}. If NULL, use \code{data} to determine the locations.
# @return Spatial object
sfill <- f... |
result <- read.table("C:\\Users\\User1\\CLionProjects\\DP\\Data\\Results\\fcs_unlabeled_32dim_to_cluster_output_1000_1.txt", header = F)
resultIndexes <- result[,length(result)]
#need to know where original labels are
originalIndexes <- fcs_labeled_32dim@exprs[,40]
originalNAs <- which(originalIndexes %in% NaN)
res... | /RPackage/processResultIndexes.R | no_license | petervasek/DPDensityBased | R | false | false | 851 | r | result <- read.table("C:\\Users\\User1\\CLionProjects\\DP\\Data\\Results\\fcs_unlabeled_32dim_to_cluster_output_1000_1.txt", header = F)
resultIndexes <- result[,length(result)]
#need to know where original labels are
originalIndexes <- fcs_labeled_32dim@exprs[,40]
originalNAs <- which(originalIndexes %in% NaN)
res... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parClass.R, R/plots.R
\name{plotPars.parframe}
\alias{plotPars.parframe}
\alias{plotPars}
\title{Plot parameter values for a fitlist}
\usage{
\method{plotPars}{parframe}(x, tol = 1, ...)
plotPars(x, ...)
}
\arguments{
\item{x}{parameter fram... | /man/plotPars.Rd | no_license | cran/dMod | R | false | true | 558 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parClass.R, R/plots.R
\name{plotPars.parframe}
\alias{plotPars.parframe}
\alias{plotPars}
\title{Plot parameter values for a fitlist}
\usage{
\method{plotPars}{parframe}(x, tol = 1, ...)
plotPars(x, ...)
}
\arguments{
\item{x}{parameter fram... |
install.packages("ISLR") # installing the ISLR package
library(ISLR)
data(Auto)
head(Auto)
names(Auto)
summary(Auto)
summary(Auto$mpg)
fivenum(Auto$mpg)
boxplot(Auto$mpg)
hist(Auto$mpg)
summary(Auto$horsepower)
summary(Auto$weight)
fivenum(Auto$weight)
boxplot(Auto$weight)
mean(Auto$weight)
median((Auto$... | /Lab0/islrLibrary.R | no_license | molly34762/DataAnalytics2021_MeixinLiang | R | false | false | 332 | r | install.packages("ISLR") # installing the ISLR package
library(ISLR)
data(Auto)
head(Auto)
names(Auto)
summary(Auto)
summary(Auto$mpg)
fivenum(Auto$mpg)
boxplot(Auto$mpg)
hist(Auto$mpg)
summary(Auto$horsepower)
summary(Auto$weight)
fivenum(Auto$weight)
boxplot(Auto$weight)
mean(Auto$weight)
median((Auto$... |
complete <- function(directory, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'id' is an integer vector indicating the monitor ID numbers
## to be used
## Return a data frame of the form:
## id nobs... | /coursera/compdata-004/week2_complete.R | no_license | wz125/course | R | false | false | 966 | r | complete <- function(directory, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'id' is an integer vector indicating the monitor ID numbers
## to be used
## Return a data frame of the form:
## id nobs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{h2o.mojo_predict_csv}
\alias{h2o.mojo_predict_csv}
\title{H2O Prediction from R without having H2O running}
\usage{
h2o.mojo_predict_csv(
input_csv_path,
mojo_zip_path,
output_csv_path = NULL,
genmodel_jar_path = NULL,... | /man/h2o.mojo_predict_csv.Rd | no_license | cran/h2o | R | false | true | 1,639 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{h2o.mojo_predict_csv}
\alias{h2o.mojo_predict_csv}
\title{H2O Prediction from R without having H2O running}
\usage{
h2o.mojo_predict_csv(
input_csv_path,
mojo_zip_path,
output_csv_path = NULL,
genmodel_jar_path = NULL,... |
library(ggvis)
library(lpSolve)
library(lpSolveAPI)
library(shiny)
library(dplyr)
usda <- read.csv("./data/usda.csv")
nutrients <- read.csv("./data/nutrientByDemoT.csv")
usdaTable <- read.csv("./data/usdaTable.csv")
function(input, output, session) {
# feed in user input to create model
x <- reactive({
... | /SHINY/visSNAP/server.R | no_license | kskand/Machine-Learning-Algroithm-Tutorial | R | false | false | 30,423 | r | library(ggvis)
library(lpSolve)
library(lpSolveAPI)
library(shiny)
library(dplyr)
usda <- read.csv("./data/usda.csv")
nutrients <- read.csv("./data/nutrientByDemoT.csv")
usdaTable <- read.csv("./data/usdaTable.csv")
function(input, output, session) {
# feed in user input to create model
x <- reactive({
... |
\name{plot.thres2}
\alias{plot.thres2}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Threshold and density plot (two-state setting)
}
\description{
This function provides a graph including the sample densities (diseased and non-diseased populations), the threshold and its confidence inte... | /man/plot-thres2.Rd | no_license | cran/ThresholdROC | R | false | false | 4,469 | rd | \name{plot.thres2}
\alias{plot.thres2}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Threshold and density plot (two-state setting)
}
\description{
This function provides a graph including the sample densities (diseased and non-diseased populations), the threshold and its confidence inte... |
# ui.R
shinyUI(fluidPage(
mainPanel(
# Add a selectInput (with a proper id) that allows you to select a variable to map
selectInput(inputId = "parameters", label = "parameters", choices = list(Population = "population", Votes = "votes", Ratio = "ratio")),
# Use plotlyOutput to show your map
plotlyOutp... | /exercise-3/ui.R | permissive | Jasonyou1995/m14-shiny | R | false | false | 337 | r | # ui.R
shinyUI(fluidPage(
mainPanel(
# Add a selectInput (with a proper id) that allows you to select a variable to map
selectInput(inputId = "parameters", label = "parameters", choices = list(Population = "population", Votes = "votes", Ratio = "ratio")),
# Use plotlyOutput to show your map
plotlyOutp... |
#' @title
#' Experimental data on nitrogen effect in species fertilizing
#' @description
#' In this data, each observation is a tree.
#' @usage
#' data(exfm18)
#'
#' @format
#' A data frame with 877 observations and 6 variables:
#' \describe{
#' \item{Plot}{plot number}
#' \item{Species}{species scie... | /R/exfm18.R | permissive | cran/forestmangr | R | false | false | 639 | r | #' @title
#' Experimental data on nitrogen effect in species fertilizing
#' @description
#' In this data, each observation is a tree.
#' @usage
#' data(exfm18)
#'
#' @format
#' A data frame with 877 observations and 6 variables:
#' \describe{
#' \item{Plot}{plot number}
#' \item{Species}{species scie... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cov_par.R
\name{cov_par}
\alias{cov_par}
\alias{cov_par.SVC_mle}
\alias{cov_par.SVC_selection}
\title{Extact Covariance Parameters}
\usage{
cov_par(...)
\method{cov_par}{SVC_mle}(object, ...)
\method{cov_par}{SVC_selection}(object, ...)
}
\... | /R-pkg/man/cov_par.Rd | no_license | jakobdambon/varycoef | R | false | true | 898 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cov_par.R
\name{cov_par}
\alias{cov_par}
\alias{cov_par.SVC_mle}
\alias{cov_par.SVC_selection}
\title{Extact Covariance Parameters}
\usage{
cov_par(...)
\method{cov_par}{SVC_mle}(object, ...)
\method{cov_par}{SVC_selection}(object, ...)
}
\... |
## setwd("/Users/rogerfischer/datamap/geoid/US/example/primary_iowa_2016")
## getwd()
## ATTENTION THIS IS A SIMULATION!!! THIS IS FAKE DATA
## ===================================================
## How to merge external fake result data (FAKE_EXT) with the geoid reference data (REF)
## =============================... | /US/example/primary_iowa_2016/merge_ref_and_fake_ext.R | no_license | datamapio/geoid | R | false | false | 2,302 | r | ## setwd("/Users/rogerfischer/datamap/geoid/US/example/primary_iowa_2016")
## getwd()
## ATTENTION THIS IS A SIMULATION!!! THIS IS FAKE DATA
## ===================================================
## How to merge external fake result data (FAKE_EXT) with the geoid reference data (REF)
## =============================... |
#' Convert a Jupyter/IPython notebook to an R Markdown document
#'
#' Read a Jupyter/IPython notebook file (\file{.ipynb}) via
#' \code{jsonlite::fromJSON()}, convert its code cells to R Markdown code
#' chunks, preserve Markdown cells, and write out the results to an Rmd file.
#'
#' This simple converter may have some... | /convert/jupyter.R | permissive | cramjaco/Nyvac_096_Microbiome | R | false | false | 5,653 | r | #' Convert a Jupyter/IPython notebook to an R Markdown document
#'
#' Read a Jupyter/IPython notebook file (\file{.ipynb}) via
#' \code{jsonlite::fromJSON()}, convert its code cells to R Markdown code
#' chunks, preserve Markdown cells, and write out the results to an Rmd file.
#'
#' This simple converter may have some... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{FractionCountsInRegion}
\alias{FractionCountsInRegion}
\title{FractionCountsInRegion}
\usage{
FractionCountsInRegion(object, assay, regions, sep = c("-", "-"), ...)
}
\arguments{
\item{object}{A Seurat object}
\item{assay}{... | /man/FractionCountsInRegion.Rd | permissive | becavin-lab/signac | R | false | true | 685 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{FractionCountsInRegion}
\alias{FractionCountsInRegion}
\title{FractionCountsInRegion}
\usage{
FractionCountsInRegion(object, assay, regions, sep = c("-", "-"), ...)
}
\arguments{
\item{object}{A Seurat object}
\item{assay}{... |
library(mlbench)
data(Glass)
Glass<-Glass[!duplicated(Glass),]
x<-as.data.frame(Glass)
Q1<-quantile(x$RI,0.25)
Q2<-quantile(x$RI,0.75)
y<-IQR(x$RI)
high1<-Q2+(1.5*y)
low1<-Q1-(1.5*y)
Q1<-quantile(x$Na,0.25)
Q2<-quantile(x$Na,0.75)
y<-IQR(x$Na)
high2<-Q2+(1.5*y)
low2<-Q1-(1.5*y)
Q1<-quantile(x$Mg,0.25)
Q2<-quantile(x... | /B170594CS_GARAPATI_Project1/Q3.R | no_license | TarunGarapati/R-Programming | R | false | false | 2,040 | r | library(mlbench)
data(Glass)
Glass<-Glass[!duplicated(Glass),]
x<-as.data.frame(Glass)
Q1<-quantile(x$RI,0.25)
Q2<-quantile(x$RI,0.75)
y<-IQR(x$RI)
high1<-Q2+(1.5*y)
low1<-Q1-(1.5*y)
Q1<-quantile(x$Na,0.25)
Q2<-quantile(x$Na,0.75)
y<-IQR(x$Na)
high2<-Q2+(1.5*y)
low2<-Q1-(1.5*y)
Q1<-quantile(x$Mg,0.25)
Q2<-quantile(x... |
########## R-function: tps.cov ##########
# Evaluates the thin plate spline
# covariance function for two dimensional
# smoothing/kriging.
# Last changed: 25 OCT 2005
tps.cov <- function(r,m=2,d=1)
{
r <- as.matrix(r)
num.row <- nrow(r)
num.col <- ncol(r)
r <- as.vector(r)
nzi <- (1:length... | /R/tps.cov.r | no_license | cran/SemiPar | R | false | false | 642 | r | ########## R-function: tps.cov ##########
# Evaluates the thin plate spline
# covariance function for two dimensional
# smoothing/kriging.
# Last changed: 25 OCT 2005
tps.cov <- function(r,m=2,d=1)
{
r <- as.matrix(r)
num.row <- nrow(r)
num.col <- ncol(r)
r <- as.vector(r)
nzi <- (1:length... |
x <- c(10,20,30,40)
# Create a vector of labels
mylabel <- c("Apples", "Bananas", "Cherries", "Dates")
pie(x, label = mylabel, main = "Fruits") | /deeksha/pie_lable.r | no_license | tactlabs/r-samples | R | false | false | 145 | r |
x <- c(10,20,30,40)
# Create a vector of labels
mylabel <- c("Apples", "Bananas", "Cherries", "Dates")
pie(x, label = mylabel, main = "Fruits") |
#this script is for sourcing the allometry plots into master
source("functions and packages/startscripts.R")
height <- read.csv("calculated data/height.csv")
diam <- read.csv("calculated data/diameter.csv")
leafno <- read.csv("calculated data/leaf_number.csv")
#height treatment means----------------------------------... | /master_scripts/allometryplotting.R | no_license | npp97-field/EucPVE | R | false | false | 3,906 | r | #this script is for sourcing the allometry plots into master
source("functions and packages/startscripts.R")
height <- read.csv("calculated data/height.csv")
diam <- read.csv("calculated data/diameter.csv")
leafno <- read.csv("calculated data/leaf_number.csv")
#height treatment means----------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/youtube_objects.R
\name{SponsorSnippet}
\alias{SponsorSnippet}
\title{SponsorSnippet Object}
\usage{
SponsorSnippet(channelId = NULL, sponsorDetails = NULL,
sponsorSince = NULL)
}
\arguments{
\item{channelId}{The id of the channel being spo... | /googleyoutubev3.auto/man/SponsorSnippet.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 616 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/youtube_objects.R
\name{SponsorSnippet}
\alias{SponsorSnippet}
\title{SponsorSnippet Object}
\usage{
SponsorSnippet(channelId = NULL, sponsorDetails = NULL,
sponsorSince = NULL)
}
\arguments{
\item{channelId}{The id of the channel being spo... |
# This is hardly graphics-system-neutral
# e.g., it uses the grid notion of what constitutes a viewport
# But anyway ...
#################
# General Device Stuff
#################
setClass("graphicsDevice",
representation(name="character",
width="numeric",
heig... | /packages/gridsvg_0.7-0r3/R/dev.R | no_license | sjp/honours-report | R | false | false | 1,719 | r | # This is hardly graphics-system-neutral
# e.g., it uses the grid notion of what constitutes a viewport
# But anyway ...
#################
# General Device Stuff
#################
setClass("graphicsDevice",
representation(name="character",
width="numeric",
heig... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nll_nb.R
\name{nll_nb}
\alias{nll_nb}
\title{NLL NB for a single data point}
\usage{
nll_nb(dataPoint, pars, xIndices, yIndex)
}
\arguments{
\item{dataPoint}{A single data point in the given data set.}
\item{pars}{A list of MLE of NB paramet... | /man/nll_nb.Rd | no_license | kelvinyangli/mbmml | R | false | true | 730 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nll_nb.R
\name{nll_nb}
\alias{nll_nb}
\title{NLL NB for a single data point}
\usage{
nll_nb(dataPoint, pars, xIndices, yIndex)
}
\arguments{
\item{dataPoint}{A single data point in the given data set.}
\item{pars}{A list of MLE of NB paramet... |
.e <- new.env()
.run <- function() {
c = rediscc::redis.connect("hdp", 6379, reconnect=TRUE)
h = system("hostname", intern=TRUE)
id = paste(h, Sys.getpid(), sep='-')
rediscc::redis.push(c, "yarn", id)
cat("Listenting on queue", id, "\n")
repeat {
a <- rediscc::redis.pop(c, id, 5)
if (isTRUE(a == "q... | /R/do.R | no_license | s-u/yaRn | R | false | false | 1,312 | r | .e <- new.env()
.run <- function() {
c = rediscc::redis.connect("hdp", 6379, reconnect=TRUE)
h = system("hostname", intern=TRUE)
id = paste(h, Sys.getpid(), sep='-')
rediscc::redis.push(c, "yarn", id)
cat("Listenting on queue", id, "\n")
repeat {
a <- rediscc::redis.pop(c, id, 5)
if (isTRUE(a == "q... |
\name{knneighborDistances}
\alias{knneighborDistances}
\title{ return the k indices and the k distances of the k nearest neighbors for all points k number of nearest neigbors to find Distances(1:n,1:n) matrix of distances betwenn the 1:n poits or Distances(1:n2,1) == squareform(Distances(1:n,1:... | /DbtTools/Projections/man/knneighborDistances.Rd | no_license | markus-flicke/KD_Projekt_1 | R | false | false | 1,202 | rd | \name{knneighborDistances}
\alias{knneighborDistances}
\title{ return the k indices and the k distances of the k nearest neighbors for all points k number of nearest neigbors to find Distances(1:n,1:n) matrix of distances betwenn the 1:n poits or Distances(1:n2,1) == squareform(Distances(1:n,1:... |
# R script to make a tab separated list of clones to be used in the paper
# by cleaning up an export from FileMaker
# 350 male brains that Nick used for analysis in the paper
massecfg=list(brains=
c("SAEM8", "SAGM18", "SAGO2", "SAGS12", "SAHS13", "SAHS9", "SAJR8",
"SAJT12", "SAJV37", "SAKO6", "SABB5", "SAEG17", "SAJV... | /data/SelectClones.R | no_license | jefferislab/FruCloneClustering | R | false | false | 5,278 | r | # R script to make a tab separated list of clones to be used in the paper
# by cleaning up an export from FileMaker
# 350 male brains that Nick used for analysis in the paper
massecfg=list(brains=
c("SAEM8", "SAGM18", "SAGO2", "SAGS12", "SAHS13", "SAHS9", "SAJR8",
"SAJT12", "SAJV37", "SAKO6", "SABB5", "SAEG17", "SAJV... |
complete <- function(directory, id=1:332){
datafiles <- list.files(directory, full.names = TRUE)
dataframe <- data.frame()
for (i in id) {
data <- read.csv(datafiles[i])
nobs <- sum(complete.cases(data))
dataframe_i <- data.frame(i, nobs)
dataframe <- rbind(dataframe, dataframe_i)
}... | /complete.R | no_license | sufia77/data-science | R | false | false | 375 | r | complete <- function(directory, id=1:332){
datafiles <- list.files(directory, full.names = TRUE)
dataframe <- data.frame()
for (i in id) {
data <- read.csv(datafiles[i])
nobs <- sum(complete.cases(data))
dataframe_i <- data.frame(i, nobs)
dataframe <- rbind(dataframe, dataframe_i)
}... |
################### ASSIGNMENT 5 ###################
# Concours
#
# @Authors Maxime Dimidschstein and Doriane Olewicki
# @Date 9 Mai 2018
####################################################
#library('mRMRe')
library('rpart')
library('e1071')
##### Auxiliary Functions #####
BCR <- function(pred, real, true_val = "Me... | /Older Projects/machine-learning/A5_Dimidschstein_Olewicki/assignment5.R | no_license | olewicki/shareWithUbisoft | R | false | false | 11,745 | r | ################### ASSIGNMENT 5 ###################
# Concours
#
# @Authors Maxime Dimidschstein and Doriane Olewicki
# @Date 9 Mai 2018
####################################################
#library('mRMRe')
library('rpart')
library('e1071')
##### Auxiliary Functions #####
BCR <- function(pred, real, true_val = "Me... |
library(rmarkdown)
files <- list.files(pattern="\\.R$", full.names=TRUE)
files <- files[!(files %in% c("Exercise_2_EC.html"))]
opt <- list(css = "../common/styles.css")
for(f in files) {
try(
rmarkdown::render(
input=f,
output_dir= "docs",
output_format="html_document",
output_options ... | /DAY_2_B_APPLICATION/docs/render.R | no_license | datascienceymw/sim-midd-acop10 | R | false | false | 383 | r | library(rmarkdown)
files <- list.files(pattern="\\.R$", full.names=TRUE)
files <- files[!(files %in% c("Exercise_2_EC.html"))]
opt <- list(css = "../common/styles.css")
for(f in files) {
try(
rmarkdown::render(
input=f,
output_dir= "docs",
output_format="html_document",
output_options ... |
# suppress all messages
zz <- file('messages.Rout', open = 'wt')
sink(zz, type = 'message')
# if the file does not exist, then run the script
if(!file.exists('data_ita/population_2020_ita.csv')){
source(file = 'scripts_R/ita_get_population.R')
print('Population data fetched')
}
# update doses data
source(file =... | /get_data_ita.R | permissive | orizzontipolitici/covid19-vaccine-data | R | false | false | 578 | r | # suppress all messages
zz <- file('messages.Rout', open = 'wt')
sink(zz, type = 'message')
# if the file does not exist, then run the script
if(!file.exists('data_ita/population_2020_ita.csv')){
source(file = 'scripts_R/ita_get_population.R')
print('Population data fetched')
}
# update doses data
source(file =... |
library(randomForest)
library(lattice)
library(ggplot2)
library(caret)
library(e1071)
setwd("C:\\Users\\user\\Desktop\\data analytics\\decision tree")
#setwd("D:\\Learning centre\\Coaching\\iitkgp\\DecisionTree\\New folder")
## Read data
termCrosssell<-read.csv(file="bank-full.csv",header = T)
## Explore data frame... | /decision tree/01_RF.R | no_license | Supriyo-ux/DataScience-Analytics-R-Python | R | false | false | 2,719 | r | library(randomForest)
library(lattice)
library(ggplot2)
library(caret)
library(e1071)
setwd("C:\\Users\\user\\Desktop\\data analytics\\decision tree")
#setwd("D:\\Learning centre\\Coaching\\iitkgp\\DecisionTree\\New folder")
## Read data
termCrosssell<-read.csv(file="bank-full.csv",header = T)
## Explore data frame... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataInCode.R
\name{fromClipboard.as_num_vec}
\alias{fromClipboard.as_num_vec}
\title{fromClipboard.as_num_vec}
\usage{
fromClipboard.as_num_vec(sep = "\\t", header = F)
}
\arguments{
\item{sep}{PARAM_DESCRIPTION, Default: ' '}
\item{header}{... | /man/fromClipboard.as_num_vec.Rd | permissive | vertesy/DataInCode | R | false | true | 521 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataInCode.R
\name{fromClipboard.as_num_vec}
\alias{fromClipboard.as_num_vec}
\title{fromClipboard.as_num_vec}
\usage{
fromClipboard.as_num_vec(sep = "\\t", header = F)
}
\arguments{
\item{sep}{PARAM_DESCRIPTION, Default: ' '}
\item{header}{... |
CaCc_Temp_Jm <- "model {
for (i in 1:N)
{
An[i] ~ dnorm( mu.A[i] , tau )
mu.A[i] <- min(Ac[i], Aj[i])
### Temp Depedencies on Pars (Arrhenius Temp Functions)###
# Arrhenius Temp function
# ( Ee (Tobs - 298))
## Y = f(Y25, Ee, Tobs) = Y25 * exp (... | /CaCc_Temp_Jm_model_H.R | no_license | zhujiedong/Bayes_Farquhar_Models_2_level_Hierarchy | R | false | false | 4,414 | r | CaCc_Temp_Jm <- "model {
for (i in 1:N)
{
An[i] ~ dnorm( mu.A[i] , tau )
mu.A[i] <- min(Ac[i], Aj[i])
### Temp Depedencies on Pars (Arrhenius Temp Functions)###
# Arrhenius Temp function
# ( Ee (Tobs - 298))
## Y = f(Y25, Ee, Tobs) = Y25 * exp (... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make_name_surname.R
\name{make_name_surname}
\alias{make_name_surname}
\title{Put author names in "Name Surname" format}
\usage{
make_name_surname(x)
}
\arguments{
\item{x}{string containing author name, either in "Surname, Name" or "Name Sur... | /man/make_name_surname.Rd | no_license | fcampelo/ChocoLattes | R | false | true | 459 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make_name_surname.R
\name{make_name_surname}
\alias{make_name_surname}
\title{Put author names in "Name Surname" format}
\usage{
make_name_surname(x)
}
\arguments{
\item{x}{string containing author name, either in "Surname, Name" or "Name Sur... |
# Login page module
# UI generating function of login-page: Renders a login screen with three reactive inputs:
# 1) user_name, 2) passwd and 3) login. login is the id of actionButton
loginpage_ui <- function(id){
ns <- NS(id)
#reactive inputs: user_name, passwd, login
div(id = "loginpage", style = "width: 500... | /emtest/modules/login-page.R | no_license | AndersT123/shiny-server | R | false | false | 3,046 | r | # Login page module
# UI generating function of login-page: Renders a login screen with three reactive inputs:
# 1) user_name, 2) passwd and 3) login. login is the id of actionButton
loginpage_ui <- function(id){
ns <- NS(id)
#reactive inputs: user_name, passwd, login
div(id = "loginpage", style = "width: 500... |
#' @include platformMappings.R
NULL
## platform mappings are to created during
## build time:
##
## FLcreatePlatformsMapping()
## storedProcMappingsFL <- getOption("storedProcMappingsFL")
## dump("storedProcMappingsFL",file="AdapteR/R/platformMappings.R")
## MatrixUDTMappingsFL <- getOption("MatrixUDTMappingsFL")
## du... | /R/platforms.R | no_license | mohakuma/AdapteR | R | false | false | 24,954 | r | #' @include platformMappings.R
NULL
## platform mappings are to created during
## build time:
##
## FLcreatePlatformsMapping()
## storedProcMappingsFL <- getOption("storedProcMappingsFL")
## dump("storedProcMappingsFL",file="AdapteR/R/platformMappings.R")
## MatrixUDTMappingsFL <- getOption("MatrixUDTMappingsFL")
## du... |
context("collect")
test_that("collect returns...", {
skip_on_cran()
dir <- tempdir()
res <- ft_get('10.1371/journal.pone.0086169', from='plos', cache=TRUE, backend="rcache", path=dir)
aa <- res %>% collect()
bb <- res %>% collect() %>% text()
# correct classes
expect_is(res, "ft_data")
expect_is(aa, ... | /inst/ignore/test-collect.R | permissive | behrica/fulltext | R | false | false | 885 | r | context("collect")
test_that("collect returns...", {
skip_on_cran()
dir <- tempdir()
res <- ft_get('10.1371/journal.pone.0086169', from='plos', cache=TRUE, backend="rcache", path=dir)
aa <- res %>% collect()
bb <- res %>% collect() %>% text()
# correct classes
expect_is(res, "ft_data")
expect_is(aa, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rstudio-addin.R
\name{rs_tar_add_fn}
\alias{rs_tar_add_fn}
\title{rs_tar_add_fn}
\usage{
rs_tar_add_fn(context = rstudioapi::getActiveDocumentContext())
}
\arguments{
\item{context}{from the rstudioapi}
}
\value{
nothing.
}
\description{
Gene... | /man/rs_tar_add_fn.Rd | permissive | toddgrabowsky/tarflow | R | false | true | 406 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rstudio-addin.R
\name{rs_tar_add_fn}
\alias{rs_tar_add_fn}
\title{rs_tar_add_fn}
\usage{
rs_tar_add_fn(context = rstudioapi::getActiveDocumentContext())
}
\arguments{
\item{context}{from the rstudioapi}
}
\value{
nothing.
}
\description{
Gene... |
#!/applications/R/R-3.4.0/bin/Rscript
#############################################################################
# Sum all per base coverage values in each of 10 chromosome arm regions and #
# in each of 5 pericentromeric regions in wt and mutant #
###############################################... | /coverage/common_input_MYC_Rep2/log2ChIPinput/genomeProfiles/log2_ChIPinput_averageCov_each_arm_each_peri_commandArgs_v310718.R | no_license | ajtock/REC8_pooled | R | false | false | 3,460 | r | #!/applications/R/R-3.4.0/bin/Rscript
#############################################################################
# Sum all per base coverage values in each of 10 chromosome arm regions and #
# in each of 5 pericentromeric regions in wt and mutant #
###############################################... |
reticulate::use_python("venv/bin/python")
reticulate::source_python("main.py")
| /.Rprofile | no_license | ramusz1/BestSubsetSelection | R | false | false | 79 | rprofile | reticulate::use_python("venv/bin/python")
reticulate::source_python("main.py")
|
SEMUPDATE <-
function(agentID){
semUpdateAge=world$semUpdateAge; deathAge=world$deathAge; nNouns=world$nNouns; nVerbs=world$nVerbs; local=world$local
agent=population[[agentID]]
if(agent$semupdate==0){
if(agent$age>semUpdateAge*deathAge){
agent=VERBDESEMANTICIZATION(agent)
agent=NOUNDESEMANTICIZATION(agent)
... | /subroutines/SEMUPDATE.R | no_license | samlestrade/MoLE | R | false | false | 1,283 | r | SEMUPDATE <-
function(agentID){
semUpdateAge=world$semUpdateAge; deathAge=world$deathAge; nNouns=world$nNouns; nVerbs=world$nVerbs; local=world$local
agent=population[[agentID]]
if(agent$semupdate==0){
if(agent$age>semUpdateAge*deathAge){
agent=VERBDESEMANTICIZATION(agent)
agent=NOUNDESEMANTICIZATION(agent)
... |
Home / CRAN / darch / R/minimize.R
R/minimize.R
In darch: Package for Deep Architectures and Restricted Boltzmann Machines
Defines functions minimize
Documented in minimize
# Copyright (C) 2013-2016 Martin Drees
# Copyright (C) 2015-2016 Johannes Rueckert
#
# This file is part of darch.
#
# darch is free software: you ... | /functions/darch_minimize.R | permissive | steepale/20200915_metabolomics-pass1a | R | false | false | 14,609 | r | Home / CRAN / darch / R/minimize.R
R/minimize.R
In darch: Package for Deep Architectures and Restricted Boltzmann Machines
Defines functions minimize
Documented in minimize
# Copyright (C) 2013-2016 Martin Drees
# Copyright (C) 2015-2016 Johannes Rueckert
#
# This file is part of darch.
#
# darch is free software: you ... |
#load library
library(class) #Has the knn function
#loading data
data("iris")
View(iris)
#Set the seed for reproducibility
set.seed(4948493)
#Sample the Iris data set (70% train, 30% test)
ir_sample <- sample(1:nrow(iris),size=nrow(iris)*.7)
ir_train <- iris[ir_sample,] #Select the 70% of rows
ir_test <- iris[-ir_sa... | /knn-exercise/exercise.R | no_license | brookssm/mini-demos | R | false | false | 1,333 | r | #load library
library(class) #Has the knn function
#loading data
data("iris")
View(iris)
#Set the seed for reproducibility
set.seed(4948493)
#Sample the Iris data set (70% train, 30% test)
ir_sample <- sample(1:nrow(iris),size=nrow(iris)*.7)
ir_train <- iris[ir_sample,] #Select the 70% of rows
ir_test <- iris[-ir_sa... |
data = read.csv('C:/Users/25001/Desktop/R_DATA/玩家购物数据.csv', header = TRUE, fileEncoding = 'utf-8')
# 利用cast对数据进行重组
library(reshape)
data_matrix = cast(data, player_id~product_name, value='qty')
# 查看前3行5列数据
data_matrix[1:3,1:5]
# 进行替换将NA替换成0,其他数字为1
data_matrix_new = apply(data_matrix[,-1],2, function(x) {ifelse(is.na(x... | /R_DATA/code/用户购买物品关联分析.r | no_license | ziningxinyi/R_game | R | false | false | 1,902 | r | data = read.csv('C:/Users/25001/Desktop/R_DATA/玩家购物数据.csv', header = TRUE, fileEncoding = 'utf-8')
# 利用cast对数据进行重组
library(reshape)
data_matrix = cast(data, player_id~product_name, value='qty')
# 查看前3行5列数据
data_matrix[1:3,1:5]
# 进行替换将NA替换成0,其他数字为1
data_matrix_new = apply(data_matrix[,-1],2, function(x) {ifelse(is.na(x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zonal_stats_ISEA3HEXAGON_grid.R
\name{zonal_stats_ISEA3HEXAGON_grid}
\alias{zonal_stats_ISEA3HEXAGON_grid}
\title{Get zonal stats binned in a hexagon grid}
\usage{
zonal_stats_ISEA3HEXAGON_grid(fun, polygon_object, raster_object,
grid_res =... | /man/zonal_stats_ISEA3HEXAGON_grid.Rd | permissive | Vizzuality/vspt | R | false | true | 2,391 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zonal_stats_ISEA3HEXAGON_grid.R
\name{zonal_stats_ISEA3HEXAGON_grid}
\alias{zonal_stats_ISEA3HEXAGON_grid}
\title{Get zonal stats binned in a hexagon grid}
\usage{
zonal_stats_ISEA3HEXAGON_grid(fun, polygon_object, raster_object,
grid_res =... |
library(VoxR)
### Name: axis.angle
### Title: Computing angle of points with an axis
### Aliases: axis.angle
### Keywords: 3d points cloud 3d angle
### ** Examples
data(treecloud_vox)
###################
#- using projection
#- computing angles
dist <- axis.angle(treecloud_vox,axis="X",projected=TRUE,plan="xy")
tr... | /data/genthat_extracted_code/VoxR/examples/axis.angle.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,148 | r | library(VoxR)
### Name: axis.angle
### Title: Computing angle of points with an axis
### Aliases: axis.angle
### Keywords: 3d points cloud 3d angle
### ** Examples
data(treecloud_vox)
###################
#- using projection
#- computing angles
dist <- axis.angle(treecloud_vox,axis="X",projected=TRUE,plan="xy")
tr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FB.R
\name{compute.fb}
\alias{compute.fb}
\title{Fractional Bias (FB)}
\usage{
compute.fb(Y, X, verbose = F)
}
\arguments{
\item{Y}{vector of imputed values}
\item{X}{vector of true values}
\item{verbose}{if TRUE, print advice about the qua... | /man/compute.fb.Rd | no_license | cran/FSMUMI | R | false | true | 1,463 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FB.R
\name{compute.fb}
\alias{compute.fb}
\title{Fractional Bias (FB)}
\usage{
compute.fb(Y, X, verbose = F)
}
\arguments{
\item{Y}{vector of imputed values}
\item{X}{vector of true values}
\item{verbose}{if TRUE, print advice about the qua... |
#' Plots the SNP data of chromosome Y for an individual
#'
#' This function draws the LRR and BAF data of chromosome Y for an individual analyzed with madloy or checkBdev
#'
#' @param x A MADloy object from the \code{MADloy} functions.
#' @param sample The identifier of a sample in the MADloy object.
#' @param rsCol ... | /R/plotIndSNP.R | no_license | isglobal-brge/MADloy | R | false | false | 7,346 | r | #' Plots the SNP data of chromosome Y for an individual
#'
#' This function draws the LRR and BAF data of chromosome Y for an individual analyzed with madloy or checkBdev
#'
#' @param x A MADloy object from the \code{MADloy} functions.
#' @param sample The identifier of a sample in the MADloy object.
#' @param rsCol ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{uniReg}
\alias{uniReg}
\title{uniReg}
\usage{
uniReg(
outcome,
dataset,
regression.type = "lm",
padj.method = "fdr",
covars = "none"
)
}
\arguments{
\item{outcome}{string with name of class column or outcome vector.}
... | /man/uniReg.Rd | permissive | insilico/npdr | R | false | true | 930 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{uniReg}
\alias{uniReg}
\title{uniReg}
\usage{
uniReg(
outcome,
dataset,
regression.type = "lm",
padj.method = "fdr",
covars = "none"
)
}
\arguments{
\item{outcome}{string with name of class column or outcome vector.}
... |
## Expression profile of T-ALL human samples extracted from GEO ##
source("https://bioconductor.org/biocLite.R")
biocLite("affy")
biocLite("factoextra")
library(biomaRt)
library(Biobase)
library(affy)
library(ggrepel)
library(dplyr)
library(data.table)
library(factoextra)
# Import datasets:
setwd("/Volumes/grcmc/YG... | /Stat_FG.R | no_license | yguillen/bigaslab | R | false | false | 5,087 | r | ## Expression profile of T-ALL human samples extracted from GEO ##
source("https://bioconductor.org/biocLite.R")
biocLite("affy")
biocLite("factoextra")
library(biomaRt)
library(Biobase)
library(affy)
library(ggrepel)
library(dplyr)
library(data.table)
library(factoextra)
# Import datasets:
setwd("/Volumes/grcmc/YG... |
library(XML)
### Q4
url_link <- "http://biostat.jhsph.edu/~jleek/contact.html"
html <- htmlTreeParse(url_link,useInternalNodes = TRUE)
connection <- url("http://biostat.jhsph.edu/~jleek/contact.html")
htmlcode <- readLines(connection)
htmlcode1 <- htmlcode[c(10,20,30,100)]
lapply(htmlcode1,nchar)
### Q5
con1 <- url(... | /Quiz2/Question4-5.R | no_license | atan87/GettingAndCleaningData | R | false | false | 482 | r | library(XML)
### Q4
url_link <- "http://biostat.jhsph.edu/~jleek/contact.html"
html <- htmlTreeParse(url_link,useInternalNodes = TRUE)
connection <- url("http://biostat.jhsph.edu/~jleek/contact.html")
htmlcode <- readLines(connection)
htmlcode1 <- htmlcode[c(10,20,30,100)]
lapply(htmlcode1,nchar)
### Q5
con1 <- url(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.