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 |
|---|---|---|---|---|---|---|---|---|---|
# Name : Manan Bhatt
# CS 513 B - Knowledge Discovery And Data Mining
# Mid Term Examination
# CWID : 104530306
rm(list=ls())
ChooseFile <- file.choose()
COVID19 <- read.csv(ChooseFile,header = TRUE, na.strings='?')
View(COVID19)
## Question 1.1: Summary of the Data
summary(COVID19)
## Question 1.2: Identify Miss... | /Mid Term/HW_Midterm_Exam_stevens_Q2.R | no_license | Manan31/CS-513-Knowledge-Discovery-and-Data-Mining-Stevens | R | false | false | 981 | r | # Name : Manan Bhatt
# CS 513 B - Knowledge Discovery And Data Mining
# Mid Term Examination
# CWID : 104530306
rm(list=ls())
ChooseFile <- file.choose()
COVID19 <- read.csv(ChooseFile,header = TRUE, na.strings='?')
View(COVID19)
## Question 1.1: Summary of the Data
summary(COVID19)
## Question 1.2: Identify Miss... |
#Preliminary TRY trait analysis
require(parallel)
require(geiger)
require(mvMORPH)
#Trim TRY (will get more later once taxon merge is complete)
data <- read.table("clean-ish-try.txt", header=TRUE)
data[data==-9999] <- NA
t <- sapply(data, function(x) sum(!is.na(x)))
data <- data[,t > 1000]
data$species <- as.character... | /multivariate.R | no_license | willpearse/sTEP_evol | R | false | false | 1,616 | r | #Preliminary TRY trait analysis
require(parallel)
require(geiger)
require(mvMORPH)
#Trim TRY (will get more later once taxon merge is complete)
data <- read.table("clean-ish-try.txt", header=TRUE)
data[data==-9999] <- NA
t <- sapply(data, function(x) sum(!is.na(x)))
data <- data[,t > 1000]
data$species <- as.character... |
bc9f3288f3bf3e37cb38858bdc0523e9 gttt_1_1_00011011_4x4_torus_w.qdimacs 6308 14617 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Diptarama-Jordan-Shinohara/Generalized-Tic-Tac-Toe/gttt_1_1_00011011_4x4_torus_w/gttt_1_1_00011011_4x4_torus_w.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 81 | r | bc9f3288f3bf3e37cb38858bdc0523e9 gttt_1_1_00011011_4x4_torus_w.qdimacs 6308 14617 |
################################################################################
## Source: Coursera
## Specialization: Data Science
## Course: 4 Exploratory Data Analysis
## Week: Week 4
## Project: Project 2
## File: plot3.R
## Date: 2016-02-06
#########################################################################... | /04-exploratory-data-analysis/projects/project-02/code/plot3.R | no_license | Pratiksapkota169/coursera-data-science-specialization | R | false | false | 1,707 | r | ################################################################################
## Source: Coursera
## Specialization: Data Science
## Course: 4 Exploratory Data Analysis
## Week: Week 4
## Project: Project 2
## File: plot3.R
## Date: 2016-02-06
#########################################################################... |
## ---- include = FALSE---------------------------------------------------------
library(knitr)
library(igraph)
library(dplyr)
library(kableExtra)
knitr::opts_chunk$set(
collapse = TRUE,
comment = ">",
fig.pos = 'H'
)
# ibahernando.path <- paste0(getwd(),"/img/ibahernando_256colours.png")
# brozas.path... | /inst/doc/index.R | no_license | cran/iconr | R | false | false | 15,488 | r | ## ---- include = FALSE---------------------------------------------------------
library(knitr)
library(igraph)
library(dplyr)
library(kableExtra)
knitr::opts_chunk$set(
collapse = TRUE,
comment = ">",
fig.pos = 'H'
)
# ibahernando.path <- paste0(getwd(),"/img/ibahernando_256colours.png")
# brozas.path... |
#Script to play with
#Mirae Guenther
#November 5, 2018
#mapping stream locations
#Packages: ggmap, ggplot2
#clear R's brain
rm(list=ls())
#where is R looking
getwd()
#tell R where to look
setwd("/Users/mguenther5/Desktop/R data")
#confirm it's looking there
getwd()
#New attempt from online resource
... | /Meeting_script.R | no_license | rtesting4lab/Go_Vote | R | false | false | 752 | r | #Script to play with
#Mirae Guenther
#November 5, 2018
#mapping stream locations
#Packages: ggmap, ggplot2
#clear R's brain
rm(list=ls())
#where is R looking
getwd()
#tell R where to look
setwd("/Users/mguenther5/Desktop/R data")
#confirm it's looking there
getwd()
#New attempt from online resource
... |
require(rmarkdown)
render(file.path(getwd(), "Volcanic50.Rmd"), output_format="html_document")
file.rename(file.path(getwd(), "Volcanic50.md"), file.path(getwd(), "README.md"))
| /Volcanic50/make.r | no_license | benjamin-chan/RaceReports | R | false | false | 177 | r | require(rmarkdown)
render(file.path(getwd(), "Volcanic50.Rmd"), output_format="html_document")
file.rename(file.path(getwd(), "Volcanic50.md"), file.path(getwd(), "README.md"))
|
\name{cgd}
\docType{data}
\alias{cgd}
\alias{cgd.raw}
\title{Chronic Granulotomous Disease data}
\description{Data are from a placebo controlled trial of gamma
interferon in chronic granulotomous disease (CGD).
Contains the data on time to serious infections observed through
end of study for each patient.
}
\us... | /survival/man/cgd.Rd | no_license | fuentesdt/viewsurvivalsource | R | false | false | 1,584 | rd | \name{cgd}
\docType{data}
\alias{cgd}
\alias{cgd.raw}
\title{Chronic Granulotomous Disease data}
\description{Data are from a placebo controlled trial of gamma
interferon in chronic granulotomous disease (CGD).
Contains the data on time to serious infections observed through
end of study for each patient.
}
\us... |
library(bigmatch)
### Name: nfmatch
### Title: Minimum-distance near-fine matching.
### Aliases: nfmatch
### ** Examples
# To run this example, you must load the optmatch package.
# Caliper of .3 on the propensity score, near fine balance of
# education, a robust Mahalanobis distrance for X.
data(nh0506)
attach(nh... | /data/genthat_extracted_code/bigmatch/examples/nfmatch.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,054 | r | library(bigmatch)
### Name: nfmatch
### Title: Minimum-distance near-fine matching.
### Aliases: nfmatch
### ** Examples
# To run this example, you must load the optmatch package.
# Caliper of .3 on the propensity score, near fine balance of
# education, a robust Mahalanobis distrance for X.
data(nh0506)
attach(nh... |
###
### AllGenerics.R
###
if (!isGeneric("dpimom")) {
setGeneric("dpimom",
function(x,
tau=1,
phi=1,
logscale=FALSE) standardGeneric("dpimom"))
}
if (!isGeneric("dpmom")) {
setGeneric("dpmom",
function(x,
... | /R/AllGenerics.R | no_license | szcf-weiya/mombf | R | false | false | 1,468 | r | ###
### AllGenerics.R
###
if (!isGeneric("dpimom")) {
setGeneric("dpimom",
function(x,
tau=1,
phi=1,
logscale=FALSE) standardGeneric("dpimom"))
}
if (!isGeneric("dpmom")) {
setGeneric("dpmom",
function(x,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jaccard.R
\name{jaccard}
\alias{jaccard}
\title{Calculate the Jaccard index between all columns in a matrix}
\usage{
jaccard(mat)
}
\arguments{
\item{mat}{a matrix of data, with samples in rows and features in columns}
}
\value{
the Jaccard i... | /man/jaccard.Rd | permissive | jordansquair/dismay | R | false | true | 958 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jaccard.R
\name{jaccard}
\alias{jaccard}
\title{Calculate the Jaccard index between all columns in a matrix}
\usage{
jaccard(mat)
}
\arguments{
\item{mat}{a matrix of data, with samples in rows and features in columns}
}
\value{
the Jaccard i... |
plot2 <- function(){
# hold originally directory location
old.dir <- getwd()
# if the file does not exist then download it
if(!file.exists("./exdata-data-household_power_consumption.zip")){
download.file("https://d396qusza40orc.cloudfront.net/exda... | /plot2.R | no_license | navarq/ExData_Plotting1 | R | false | false | 1,805 | r | plot2 <- function(){
# hold originally directory location
old.dir <- getwd()
# if the file does not exist then download it
if(!file.exists("./exdata-data-household_power_consumption.zip")){
download.file("https://d396qusza40orc.cloudfront.net/exda... |
ConstructContrasts <- function(Factors, MaxOrderIter=2){
Classes=sapply(Factors,class)
Factors=Factors[,Classes=="factor"]
nf=dim(Factors)[2] # Number of factors
if (MaxOrderIter>nf) {
print(paste("The maximum order of the iterations has been set to", nf))
MaxOrderIter=nf}
nlev=rep(0, nf) #Number o... | /R/ConstructContrasts.R | no_license | laura20vg/permanova | R | false | false | 1,735 | r | ConstructContrasts <- function(Factors, MaxOrderIter=2){
Classes=sapply(Factors,class)
Factors=Factors[,Classes=="factor"]
nf=dim(Factors)[2] # Number of factors
if (MaxOrderIter>nf) {
print(paste("The maximum order of the iterations has been set to", nf))
MaxOrderIter=nf}
nlev=rep(0, nf) #Number o... |
##########################################################################################
# Designed and developed by Tinniam V Ganesh
# Date : 1 Jul 2015
# Function: relativeBowlingER
# This function computes and plots the relative bowling Economy Rate of the bowlers
#
################################################... | /SPL/cricketr-master/cricketr-master/R/relativeBowlingER.R | no_license | revanth465/CricketStats | R | false | false | 1,987 | r | ##########################################################################################
# Designed and developed by Tinniam V Ganesh
# Date : 1 Jul 2015
# Function: relativeBowlingER
# This function computes and plots the relative bowling Economy Rate of the bowlers
#
################################################... |
# create megamuga fasta file
library(qtl2)
mm <- read_csv("../../Sequences/mm_seq.csv", rownames_included=FALSE)
cat(paste0(">", mm$marker, "\n", mm$probe_seq, "\n", collapse=""),
file="megamuga.fa")
| /Blast/R/create_mm_fasta.R | permissive | kbroman/MUGAarrays | R | false | false | 207 | r | # create megamuga fasta file
library(qtl2)
mm <- read_csv("../../Sequences/mm_seq.csv", rownames_included=FALSE)
cat(paste0(">", mm$marker, "\n", mm$probe_seq, "\n", collapse=""),
file="megamuga.fa")
|
# library(data.table)
# library(Publish)
# library(caret)
# library(sigmoid)
# library(rpart)
rm(list=ls())
graphics.off()
##########################################################################################################
# Parameters
#########################################################################... | /data/datagen/warfarin/2-split_warfarin.R | no_license | nathanaj99/prescriptive-trees | R | false | false | 4,945 | r | # library(data.table)
# library(Publish)
# library(caret)
# library(sigmoid)
# library(rpart)
rm(list=ls())
graphics.off()
##########################################################################################################
# Parameters
#########################################################################... |
#importujemy pobraną tablicę wielowymiarową z naszymi produktami, zmieniamy znak separujący i wprowadzamy polskie znaki:
ceny <- read.table("CENY_2917_CTAB_20200123153137.csv", sep=";",dec=",",fileEncoding = "UTF-8")
#pozbywamy się niepotrzebnej kolumny
ceny <- ceny[,-1]
#TABELE Z CENAMI RYZU W POSZCZEGOLNYCH LATA... | /projektr.R | no_license | brzezinskamonika/R-projekt | R | false | false | 3,225 | r | #importujemy pobraną tablicę wielowymiarową z naszymi produktami, zmieniamy znak separujący i wprowadzamy polskie znaki:
ceny <- read.table("CENY_2917_CTAB_20200123153137.csv", sep=";",dec=",",fileEncoding = "UTF-8")
#pozbywamy się niepotrzebnej kolumny
ceny <- ceny[,-1]
#TABELE Z CENAMI RYZU W POSZCZEGOLNYCH LATA... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/represearch.R
\name{parse_currency}
\alias{parse_currency}
\title{parse_currency}
\usage{
parse_currency(amount, currency)
}
\arguments{
\item{amount}{amount}
\item{currency}{currency}
}
\description{
This function will parse a currency amou... | /man/parse_currency.Rd | no_license | philipphoman/represearch | R | false | true | 361 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/represearch.R
\name{parse_currency}
\alias{parse_currency}
\title{parse_currency}
\usage{
parse_currency(amount, currency)
}
\arguments{
\item{amount}{amount}
\item{currency}{currency}
}
\description{
This function will parse a currency amou... |
# clean everything done before
rm(list=ls())
# use more memory
memory.limit(9999999999)
# load packages
library(data.table)
library(tidyverse)
library(bit64)
# read data
getwd()
wd1 <- "D:/SIH CSV"
setwd(wd1)
SIH2010 <- as.data.frame(fread("./SIH2010.csv",
select = c("CEP","MUNIC_RES","NASC","SEXO... | /ICSAP 02.R | no_license | azous-nomar85/ICSAP | R | false | false | 32,317 | r |
# clean everything done before
rm(list=ls())
# use more memory
memory.limit(9999999999)
# load packages
library(data.table)
library(tidyverse)
library(bit64)
# read data
getwd()
wd1 <- "D:/SIH CSV"
setwd(wd1)
SIH2010 <- as.data.frame(fread("./SIH2010.csv",
select = c("CEP","MUNIC_RES","NASC","SEXO... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/progenyarray-methods.R
\docType{methods}
\name{progenyGenotypes,ProgenyArray-method}
\alias{progenyGenotypes,ProgenyArray-method}
\title{Accessor for progeny genotypes}
\usage{
\S4method{progenyGenotypes}{ProgenyArray}(x, seqname = NU... | /man/progenyGenotypes-ProgenyArray-method.Rd | no_license | kate-crosby/ProgenyArray | R | false | false | 420 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/progenyarray-methods.R
\docType{methods}
\name{progenyGenotypes,ProgenyArray-method}
\alias{progenyGenotypes,ProgenyArray-method}
\title{Accessor for progeny genotypes}
\usage{
\S4method{progenyGenotypes}{ProgenyArray}(x, seqname = NU... |
data <- read.csv("result.csv", header = TRUE, sep = ";")
anova_fun <- function(analysis, type){
#anova
#h0: they are equal, h1: they are not (p<0.05)
anova <- aov(analysis)
file_name <- " anova sumary.txt"
file_name <- paste(type, file_name)
s<-summary(anova)
capture.output(s, file = file_name)
... | /analyse.R | no_license | tatianass/Projeto-Metodologia-Cientifica | R | false | false | 2,420 | r | data <- read.csv("result.csv", header = TRUE, sep = ";")
anova_fun <- function(analysis, type){
#anova
#h0: they are equal, h1: they are not (p<0.05)
anova <- aov(analysis)
file_name <- " anova sumary.txt"
file_name <- paste(type, file_name)
s<-summary(anova)
capture.output(s, file = file_name)
... |
ssa.adaptivetau <-
function(init.values, transitions, rateFunc, params, tf,
jacobianFunc = NULL, maxTauFunc = NULL,
deterministic = NULL, halting = NULL,
relratechange=rep(1, length(init.values)),
tl.params = NULL) {
return(.Call('simAdaptiveTau', PACKAGE='adaptivetau',
... | /R/ssa.adaptivetau.R | no_license | cran/adaptivetau | R | false | false | 2,325 | r | ssa.adaptivetau <-
function(init.values, transitions, rateFunc, params, tf,
jacobianFunc = NULL, maxTauFunc = NULL,
deterministic = NULL, halting = NULL,
relratechange=rep(1, length(init.values)),
tl.params = NULL) {
return(.Call('simAdaptiveTau', PACKAGE='adaptivetau',
... |
#####################################################################################################################
########################################## CLASS DEFINITIONS AND VALIDITY CHECKS ####################################
##################################################################################... | /fuzzedpackages/synlik/R/Class_definitions.R | no_license | akhikolla/testpackages | R | false | false | 11,728 | r | #####################################################################################################################
########################################## CLASS DEFINITIONS AND VALIDITY CHECKS ####################################
##################################################################################... |
## Capstone: Coursera Data Science
## Kristen Dardia
# SHINY SERVER
library(shiny); library(stringr); library(tm)
# Loading n-gram frequencies words matrix frequencies
bg <- readRDS("bigram.RData"); tg <- readRDS("trigram.RData"); qd <- readRDS("quadgram.RData")
names(bg)[names(bg) == 'word1'] <- 'w1'; nam... | /server.R | no_license | ChaChaWoo/Capstone | R | false | false | 3,841 | r | ## Capstone: Coursera Data Science
## Kristen Dardia
# SHINY SERVER
library(shiny); library(stringr); library(tm)
# Loading n-gram frequencies words matrix frequencies
bg <- readRDS("bigram.RData"); tg <- readRDS("trigram.RData"); qd <- readRDS("quadgram.RData")
names(bg)[names(bg) == 'word1'] <- 'w1'; nam... |
##' Setting scales for \code{sonify} objects
##'
##' \code{sonscaling()} is invoked in the call to \code{sonify} or
##' added onto it in order to specify precisely how the data
##' parameters are mapped onto sonic parameters. It is most easy to
##' use via the \code{scale_} convenience functions, such as
##' \code{\li... | /R/sonscaling.R | no_license | cran/playitbyr | R | false | false | 2,086 | r | ##' Setting scales for \code{sonify} objects
##'
##' \code{sonscaling()} is invoked in the call to \code{sonify} or
##' added onto it in order to specify precisely how the data
##' parameters are mapped onto sonic parameters. It is most easy to
##' use via the \code{scale_} convenience functions, such as
##' \code{\li... |
#Canopy imagery analysis in R
rm(list=ls())
setwd("/Users/zach/Dropbox (ZachTeam)/Bioverse_Labs/Projects/Canopy_analysis")
#load packages
library(itcSegment)
library(raster)
library(sp)
library(rgdal)
library(tiff)
library(raster)
library(ggplot2)
library(gridGraphics)
library(magick)
library(gridExtra)
library(rgeo... | /Tree_of_Heaven_detection/tree_canopy_analysis.R | permissive | zachladin/Spotted_Lanternfly | R | false | false | 1,179 | r | #Canopy imagery analysis in R
rm(list=ls())
setwd("/Users/zach/Dropbox (ZachTeam)/Bioverse_Labs/Projects/Canopy_analysis")
#load packages
library(itcSegment)
library(raster)
library(sp)
library(rgdal)
library(tiff)
library(raster)
library(ggplot2)
library(gridGraphics)
library(magick)
library(gridExtra)
library(rgeo... |
library(DALEX)
library(caret)
data("apartments")
data("apartmentsTest")
set.seed(123)
regr_rf <- train(m2.price~., data = apartments, method = "rf", ntree = 100)
regr_gbm <- train(m2.price~., data = apartments, method = "gbm")
regr_nn <- train(m2.price~., data = apartments, method = "nnet",
linout ... | /Scripts/dalex_imlplots.R | no_license | rajkorde/RTestCode | R | false | false | 4,770 | r | library(DALEX)
library(caret)
data("apartments")
data("apartmentsTest")
set.seed(123)
regr_rf <- train(m2.price~., data = apartments, method = "rf", ntree = 100)
regr_gbm <- train(m2.price~., data = apartments, method = "gbm")
regr_nn <- train(m2.price~., data = apartments, method = "nnet",
linout ... |
library(shiny)
library(raincpc)
library(SDMTools)
library(raster)
library(ggplot2)
library(rnoaa)
library('plyr')
# Data pre-processing ----
# Tweak the "am" variable to have nicer factor labels -- since this
# doesn't rely on any user inputs, we can do this once at startup
# and then use the value throughout the life... | /R/R Basics for weather data/3 basic shiny.R | no_license | sandlim/WGeeks | R | false | false | 5,050 | r | library(shiny)
library(raincpc)
library(SDMTools)
library(raster)
library(ggplot2)
library(rnoaa)
library('plyr')
# Data pre-processing ----
# Tweak the "am" variable to have nicer factor labels -- since this
# doesn't rely on any user inputs, we can do this once at startup
# and then use the value throughout the life... |
library(raster)
### Name: flip
### Title: Flip
### Aliases: flip flip,RasterLayer-method flip,RasterStackBrick-method
### Keywords: spatial
### ** Examples
r <- raster(nrow=18, ncol=36)
m <- matrix(1:ncell(r), nrow=18)
r[] <- as.vector(t(m))
rx <- flip(r, direction='x')
r[] <- as.vector(m)
ry <- flip(r, direction='... | /data/genthat_extracted_code/raster/examples/flip.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 327 | r | library(raster)
### Name: flip
### Title: Flip
### Aliases: flip flip,RasterLayer-method flip,RasterStackBrick-method
### Keywords: spatial
### ** Examples
r <- raster(nrow=18, ncol=36)
m <- matrix(1:ncell(r), nrow=18)
r[] <- as.vector(t(m))
rx <- flip(r, direction='x')
r[] <- as.vector(m)
ry <- flip(r, direction='... |
`%notin%` <- function(x, table) {
# Same as !(x %in% table)
match(x, table, nomatch = 0L) == 0L
}
force_double <- function(v) {
suppressWarnings(as.double(v))
}
# Distance over a great circle. Reasonable approximation.
haversine_distance <- function(lat1, lon1, lat2, lon2) {
# to radians
lat1 <- lat1 * pi ... | /R/internal_functions.R | no_license | rosseji/bomrang | R | false | false | 8,973 | r |
`%notin%` <- function(x, table) {
# Same as !(x %in% table)
match(x, table, nomatch = 0L) == 0L
}
force_double <- function(v) {
suppressWarnings(as.double(v))
}
# Distance over a great circle. Reasonable approximation.
haversine_distance <- function(lat1, lon1, lat2, lon2) {
# to radians
lat1 <- lat1 * pi ... |
as_CellData <- function(x, .na = NULL) {
UseMethod("as_CellData")
}
#' @export
as_CellData.default <- function(x, .na = NULL) {
stop_glue(
"Don't know how to make an instance of {bt('CellData')} from something of ",
"class {class_collapse(x)}."
)
}
# I want to centralize what value we send for NA, even ... | /R/schema_CellData.R | permissive | MarkEdmondson1234/googlesheets4 | R | false | false | 2,635 | r | as_CellData <- function(x, .na = NULL) {
UseMethod("as_CellData")
}
#' @export
as_CellData.default <- function(x, .na = NULL) {
stop_glue(
"Don't know how to make an instance of {bt('CellData')} from something of ",
"class {class_collapse(x)}."
)
}
# I want to centralize what value we send for NA, even ... |
## This line of code will install the library reshape2 if not
## installed on your computer:
if(!require(reshape2)){install.packages("reshape2")}
library(reshape2) ### calling the library reshape2
## set your working directory or the folder where you have the file:
setwd("C:/Users/Christian/Dropbox/")
... | /reshape.R | no_license | cdramirezcamba/Tableu-example | R | false | false | 636 | r | ## This line of code will install the library reshape2 if not
## installed on your computer:
if(!require(reshape2)){install.packages("reshape2")}
library(reshape2) ### calling the library reshape2
## set your working directory or the folder where you have the file:
setwd("C:/Users/Christian/Dropbox/")
... |
#!/usr/bin/env Rscript --vanilla
suppressPackageStartupMessages(library("roxygen2"))
suppressPackageStartupMessages(library("optparse"))
# specify our desired options in a list
# by default OptionParser will add an help option equivalent to
# make_option(c("-h", "--help"), action="store_true", default=FALSE,
# help="... | /mosaicApps/mosaicManipOriginal/bin/roxy | no_license | dtkaplan/MOSAIC-Summer-2015 | R | false | false | 1,436 | #!/usr/bin/env Rscript --vanilla
suppressPackageStartupMessages(library("roxygen2"))
suppressPackageStartupMessages(library("optparse"))
# specify our desired options in a list
# by default OptionParser will add an help option equivalent to
# make_option(c("-h", "--help"), action="store_true", default=FALSE,
# help="... | |
library(ggplot2)
library(grid)
######## my path is relative to the project folder (hwq_chuw) ,and system is Mac OS #######
## Please open the project file ##
## read data ----
inputPath <- "data/pokemon.csv"
pData <- read.csv(inputPath)
## initiate output file
outputPath <- "output/output.pdf"
pdf(outputPath)
## co... | /hw1_chuw/R/boxplot.R | no_license | chuwu1995/R_analytic | R | false | false | 1,947 | r | library(ggplot2)
library(grid)
######## my path is relative to the project folder (hwq_chuw) ,and system is Mac OS #######
## Please open the project file ##
## read data ----
inputPath <- "data/pokemon.csv"
pData <- read.csv(inputPath)
## initiate output file
outputPath <- "output/output.pdf"
pdf(outputPath)
## co... |
#' Select top n rows (by value).
#'
#' This is a convenient wrapper that uses \code{\link{filter}} and
#' \code{\link{min_rank}} to select the top n entries in each group, ordered
#' by \code{wt}.
#'
#' @param x a \code{\link{tbl}} to filter
#' @param n number of rows to return. If \code{x} is grouped, this is
#' the... | /R/top-n.R | no_license | mattwg/dplyr | R | false | false | 1,225 | r | #' Select top n rows (by value).
#'
#' This is a convenient wrapper that uses \code{\link{filter}} and
#' \code{\link{min_rank}} to select the top n entries in each group, ordered
#' by \code{wt}.
#'
#' @param x a \code{\link{tbl}} to filter
#' @param n number of rows to return. If \code{x} is grouped, this is
#' the... |
# "`-''-/").___..--''"`-._
# (`6_ 6 ) `-. ( ).`-.__.`) WE ARE ...
# (_Y_.)' ._ ) `._ `. ``-..-' PENN STATE!
# _ ..`--'_..-_/ /--'_.' ,'
# (il),-'' (li),' ((!.-'
#
# Author: Benjamin Tate <bgt5073@psu.edu>
# Weiming Hu <weiming@psu.edu>
#
# Geoinformatics and Earth Obs... | /data-process/app-data/app.R | permissive | Weiming-Hu/OperationalAnEn | R | false | false | 6,078 | r | # "`-''-/").___..--''"`-._
# (`6_ 6 ) `-. ( ).`-.__.`) WE ARE ...
# (_Y_.)' ._ ) `._ `. ``-..-' PENN STATE!
# _ ..`--'_..-_/ /--'_.' ,'
# (il),-'' (li),' ((!.-'
#
# Author: Benjamin Tate <bgt5073@psu.edu>
# Weiming Hu <weiming@psu.edu>
#
# Geoinformatics and Earth Obs... |
# auxiliary function to predict based on the estimated coefficients
predict_func <- function(Phi, w){
return(Phi%*%w)
}
# auxiliary function to calculate a cost function
error_func <- function (Phi, w, label){
#Error Function. MSE
return(mean((predict_func(Phi, w) - label)^2))
}
bgd <- function(train.data,tra... | /Linear Regression/Linear_Regression_Batch_Gradient_Descent.R | no_license | ksashok/Machine-Learning-Algorithms | R | false | false | 2,151 | r | # auxiliary function to predict based on the estimated coefficients
predict_func <- function(Phi, w){
return(Phi%*%w)
}
# auxiliary function to calculate a cost function
error_func <- function (Phi, w, label){
#Error Function. MSE
return(mean((predict_func(Phi, w) - label)^2))
}
bgd <- function(train.data,tra... |
# CHAPTER 5
# Intermediate Statistics and Probability
#############################
# Stock price distributions #
#############################
# Extract prices and compute statistics
prices <- SPY$SPY.Adjusted
mean_prices <- round(mean(prices), 2)
sd_prices <- round(sd(prices), 2)
# Plot the histogram along with a l... | /Chapter_05/code.R | permissive | anselmoaraujo/rfortraders | R | false | false | 9,125 | r | # CHAPTER 5
# Intermediate Statistics and Probability
#############################
# Stock price distributions #
#############################
# Extract prices and compute statistics
prices <- SPY$SPY.Adjusted
mean_prices <- round(mean(prices), 2)
sd_prices <- round(sd(prices), 2)
# Plot the histogram along with a l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/undim.R
\name{undim}
\alias{undim}
\alias{undim.default}
\title{Removes the dimension of an object}
\usage{
undim(x, ...)
}
\arguments{
\item{x}{An object with or without dimensions}
\item{...}{Not used.}
}
\value{
The object with the dimens... | /man/undim.Rd | no_license | EdwardBetts/listenv | R | false | true | 646 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/undim.R
\name{undim}
\alias{undim}
\alias{undim.default}
\title{Removes the dimension of an object}
\usage{
undim(x, ...)
}
\arguments{
\item{x}{An object with or without dimensions}
\item{...}{Not used.}
}
\value{
The object with the dimens... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{plot.cumulative_animated_lexical_classification}
\alias{plot.cumulative_animated_lexical_classification}
\title{Plots a cumulative_animated_lexical_classification Object}
\usage{
\method{plot}{cumulative_animated_lexical_classification}(x, ...)
}
\arguments{
\i... | /man/plot.cumulative_animated_lexical_classification.Rd | no_license | joffrevillanueva/qdap | R | false | false | 485 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{plot.cumulative_animated_lexical_classification}
\alias{plot.cumulative_animated_lexical_classification}
\title{Plots a cumulative_animated_lexical_classification Object}
\usage{
\method{plot}{cumulative_animated_lexical_classification}(x, ...)
}
\arguments{
\i... |
envOne <- new.env()
typeof(envOne)
ls()
ls(envOne)
assign("bubba",12,envir=envOne)
ls()
ls(envOne)
envOne$bubba
get("bubba",envOne)
bubba
| /book/packt/R.Object-oriented.Programming/6682OS_07_Codes/OLD/chapter_7_ex20.R | no_license | xenron/sandbox-da-r | R | false | false | 152 | r | envOne <- new.env()
typeof(envOne)
ls()
ls(envOne)
assign("bubba",12,envir=envOne)
ls()
ls(envOne)
envOne$bubba
get("bubba",envOne)
bubba
|
library(forecast)
library(itsmr)
library(tseries)
# for making data readable in R
#write.table(data_excess_cc,file="data_excess_cc.csv",sep = ",",col.names=TRUE)
table<-read.csv("data.csv",header=TRUE,sep=",")
head(table)
# for stationarity
KPassValue = kpss.test(table$avgloss) # if p-value is smaller than 0.05(stand... | /arar.r | no_license | vishvnath-github/gitRepo | R | false | false | 709 | r | library(forecast)
library(itsmr)
library(tseries)
# for making data readable in R
#write.table(data_excess_cc,file="data_excess_cc.csv",sep = ",",col.names=TRUE)
table<-read.csv("data.csv",header=TRUE,sep=",")
head(table)
# for stationarity
KPassValue = kpss.test(table$avgloss) # if p-value is smaller than 0.05(stand... |
setClass ("LocalFilePreparedTablePatientHistoryProvider",
contains="PatientHistoryProvider"
)
#----------------------------------------------------------------------------------------------------
LocalFilePreparedTablePatientHistoryProvider <- function(path)
{
tokens <<- strsplit(path, "://")[[1... | /hbolouri/oncoDev/Oncoscape/R/LocalFilePreparedTableHistoryProvider.R | permissive | oncoscape/webapp-R-package | R | false | false | 4,272 | r | setClass ("LocalFilePreparedTablePatientHistoryProvider",
contains="PatientHistoryProvider"
)
#----------------------------------------------------------------------------------------------------
LocalFilePreparedTablePatientHistoryProvider <- function(path)
{
tokens <<- strsplit(path, "://")[[1... |
rm(list=ls())
library(cl)
library(oce)
library(fields)
library(xtable)
source('filterAndSpectrumParameters.R')
plot <- FALSE
mround <- function(x,base){
base*round(x/base)
}
cohci <- function(x, ci=0.95, ci.lty=3, ci.col='blue'){
nser <- NCOL(x$spec)
gg <- 2/x$df
se <- sqrt(gg/2)
z <- -qnorm... | /src/002_coherency.R | no_license | dfo-mar-odis/Publication-FlemishCap-2018 | R | false | false | 6,901 | r | rm(list=ls())
library(cl)
library(oce)
library(fields)
library(xtable)
source('filterAndSpectrumParameters.R')
plot <- FALSE
mround <- function(x,base){
base*round(x/base)
}
cohci <- function(x, ci=0.95, ci.lty=3, ci.col='blue'){
nser <- NCOL(x$spec)
gg <- 2/x$df
se <- sqrt(gg/2)
z <- -qnorm... |
#' Iterative robust model-based imputation (IRMI)
#'
#' In each step of the iteration, one variable is used as a response variable
#' and the remaining variables serve as the regressors.
#'
#' The method works sequentially and iterative. The method can deal with a
#' mixture of continuous, semi-continuous, ordi... | /R/irmi.R | no_license | ashimb9/VIM | R | false | false | 34,489 | r | #' Iterative robust model-based imputation (IRMI)
#'
#' In each step of the iteration, one variable is used as a response variable
#' and the remaining variables serve as the regressors.
#'
#' The method works sequentially and iterative. The method can deal with a
#' mixture of continuous, semi-continuous, ordi... |
# 셀레니움 문법 정리
install.packages("RSelenium")
library(RSelenium)
# 드라이버 정보 전달해서 open
# 드라이버 객체 생성 :
remDr <- remoteDriver(remoteServerAddr='localhost', port =4445L, browserName='chrome')
remDr$open() # 브라우저 열기
remDr$getStatus() # 브라우저(서버) 상태 확인
#--페이지 요청
remDr$navigate("http://www.google.com/ncr")
# 현재 페이지 url
rem... | /210317 Selenium.R | no_license | yschoi9930/RStudy | R | false | false | 1,917 | r | # 셀레니움 문법 정리
install.packages("RSelenium")
library(RSelenium)
# 드라이버 정보 전달해서 open
# 드라이버 객체 생성 :
remDr <- remoteDriver(remoteServerAddr='localhost', port =4445L, browserName='chrome')
remDr$open() # 브라우저 열기
remDr$getStatus() # 브라우저(서버) 상태 확인
#--페이지 요청
remDr$navigate("http://www.google.com/ncr")
# 현재 페이지 url
rem... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{pricing}
\alias{pricing}
\title{AWS Price List Service}
\usage{
pricing(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.}
}
\description{
AWS Price List Service API (AWS... | /cran/paws/man/pricing.Rd | permissive | sanchezvivi/paws | R | false | true | 2,511 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.R
\name{pricing}
\alias{pricing}
\title{AWS Price List Service}
\usage{
pricing(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.}
}
\description{
AWS Price List Service API (AWS... |
spotRate <- read.csv('spotRate.csv')
show(spotRate)
#for calculating forward rate, we will use the calculated spot rate before
#and using the formula for the 1- year forward rate1-2 F12= (R2 * T2 - R1 * T1) / T2 - T1
spotRate_y1 <- spotRate$X1Y
spotRate_y2 <- spotRate$X2Y
spotRate_y3 <- spotRate$X3Y
spotRate_y4 <- spot... | /forwardCal.R | no_license | zyws11/apm466 | R | false | false | 902 | r | spotRate <- read.csv('spotRate.csv')
show(spotRate)
#for calculating forward rate, we will use the calculated spot rate before
#and using the formula for the 1- year forward rate1-2 F12= (R2 * T2 - R1 * T1) / T2 - T1
spotRate_y1 <- spotRate$X1Y
spotRate_y2 <- spotRate$X2Y
spotRate_y3 <- spotRate$X3Y
spotRate_y4 <- spot... |
test_that("area_square calculates the area of a given square correctly"){
#expected outputs
expect_identical(area.my_square(my_square(3)), 9)
expect_identical(area.my_square(my_square(10)), 100)
expect_identical(area.my_square(my_square(7)), 49)
#unusual inputs
expect_identical(are... | /tests/testthat/tests_area_squared.R | no_license | psarana/area_square | R | false | false | 719 | r | test_that("area_square calculates the area of a given square correctly"){
#expected outputs
expect_identical(area.my_square(my_square(3)), 9)
expect_identical(area.my_square(my_square(10)), 100)
expect_identical(area.my_square(my_square(7)), 49)
#unusual inputs
expect_identical(are... |
NEI <- readRDS("exdata%2Fdata%2FNEI_data/summarySCC_PM25.rds")
baltimore=NEI[NEI$fips=="24510",]
baltimoreSum=tapply(baltimore$Emissions,baltimore$year,sum)
png("plot2.png")
barplot(baltimoreSum,xlab = "years", ylab = "Total Emmissions",main="Emission in Boltimore")
dev.off() | /ExploratoryDataAnalysis/Project/plot2.R | no_license | AbdelrahmanElsehaily/Data-Science-Specialization-Coursera | R | false | false | 276 | r | NEI <- readRDS("exdata%2Fdata%2FNEI_data/summarySCC_PM25.rds")
baltimore=NEI[NEI$fips=="24510",]
baltimoreSum=tapply(baltimore$Emissions,baltimore$year,sum)
png("plot2.png")
barplot(baltimoreSum,xlab = "years", ylab = "Total Emmissions",main="Emission in Boltimore")
dev.off() |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yandextexttranslater.R
\name{yandex_translate}
\alias{yandex_translate}
\title{Translates text to the specified language}
\usage{
yandex_translate(yandex_api_key, text = "", lang = "")
}
\arguments{
\item{yandex_api_key}{yandex API key}
\ite... | /man/yandex_translate.Rd | permissive | kpolimis/yandextexttranslater | R | false | true | 1,066 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yandextexttranslater.R
\name{yandex_translate}
\alias{yandex_translate}
\title{Translates text to the specified language}
\usage{
yandex_translate(yandex_api_key, text = "", lang = "")
}
\arguments{
\item{yandex_api_key}{yandex API key}
\ite... |
testlist <- list(a = 0L, b = 0L, x = c(-66561L, -10872294L, 1593777664L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(grattan:... | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610130048-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 354 | r | testlist <- list(a = 0L, b = 0L, x = c(-66561L, -10872294L, 1593777664L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(grattan:... |
asfdjngasd
faslkfjnas
fdasfgasfg
asdf
sadf
sadf
sad
f
sad
fas
df
asd
f
sadf
sa
df
sd | /fasfd.R | no_license | ksimpkinson/test2 | R | false | false | 84 | r | asfdjngasd
faslkfjnas
fdasfgasfg
asdf
sadf
sadf
sad
f
sad
fas
df
asd
f
sadf
sa
df
sd |
libraryCheck <- function(libraryList = NULL) {
if (length(libraryList) > 0) {
for (libraryName in libraryList) {
if (library(libraryName, logical.return = TRUE, character.only = TRUE)) {
# print('ok')
} else {
errorText <- paste('library', libraryName, 'not found')
print(errorText)
ret... | /trfzp/functions.r | no_license | gogbajbobo/R_project | R | false | false | 406 | r | libraryCheck <- function(libraryList = NULL) {
if (length(libraryList) > 0) {
for (libraryName in libraryList) {
if (library(libraryName, logical.return = TRUE, character.only = TRUE)) {
# print('ok')
} else {
errorText <- paste('library', libraryName, 'not found')
print(errorText)
ret... |
library(stringr)
testData <<-data.frame(firm=rep(LETTERS[1:10],each=500),
date=as.Date("2012-01-01")+1:500,
y1=sample(1:100,50),y2=sample(1:100,50),y3=sample(1:100,50),x1=sample(1:2))
testData$X<-NULL
testData$date<-as.Date(testData$date)
testData$date <- format(testData$d... | /global.R | no_license | tswenzel/CourserashinyApp | R | false | false | 1,605 | r | library(stringr)
testData <<-data.frame(firm=rep(LETTERS[1:10],each=500),
date=as.Date("2012-01-01")+1:500,
y1=sample(1:100,50),y2=sample(1:100,50),y3=sample(1:100,50),x1=sample(1:2))
testData$X<-NULL
testData$date<-as.Date(testData$date)
testData$date <- format(testData$d... |
# ---
# 02.2 - Regressões: Paper 21/09/2020 (1a Versão do Paper)
# Regressões para diferntes modelos
# Atitudes Populistas e Voto em Bolsonaro em 2018 (2020)
# ---
# Eduardo Ryô Tamaki
# Mestrando em Ciência Política da UFMG
# e-mail: eduardo.rtamaki@gmail.com
# ---
# 22/09/2020
# ---
## PREAMBULO -------------------... | /Scripts/Brazil/02.2 - Regressoes _ 1a Versao Paper 21.09.R | no_license | Ttytamaki/Populist_Attitudes | R | false | false | 27,463 | r | # ---
# 02.2 - Regressões: Paper 21/09/2020 (1a Versão do Paper)
# Regressões para diferntes modelos
# Atitudes Populistas e Voto em Bolsonaro em 2018 (2020)
# ---
# Eduardo Ryô Tamaki
# Mestrando em Ciência Política da UFMG
# e-mail: eduardo.rtamaki@gmail.com
# ---
# 22/09/2020
# ---
## PREAMBULO -------------------... |
#LEARNING NON_NEGATIVE MATRIX FACTORIZATION
#08/26/13
X<-matrix(1:12, 3, 4)
X
library(NMFN)
Z.MM=nnmf(X, 10,method=multiplicative update) #K is the number of factors/components in W and H matrices
Z.MM
Z.MM$W %*% Z.MM$H
library(NMF)
data(esGolub)
esGolub
esGolub<-esGolub[1:200,]
esGolub$Sample<-NULL
RES<-nmf(esGolu... | /BACKUP.SCRIPTS/R_SCRIPTS/NMF.R | no_license | LOBUTO/CANCER.GENOMICS | R | false | false | 337 | r | #LEARNING NON_NEGATIVE MATRIX FACTORIZATION
#08/26/13
X<-matrix(1:12, 3, 4)
X
library(NMFN)
Z.MM=nnmf(X, 10,method=multiplicative update) #K is the number of factors/components in W and H matrices
Z.MM
Z.MM$W %*% Z.MM$H
library(NMF)
data(esGolub)
esGolub
esGolub<-esGolub[1:200,]
esGolub$Sample<-NULL
RES<-nmf(esGolu... |
library(shiny)
library(readr)
library(dplyr)
files <- paste0("data/C", 2011:2018, "_A.csv")
dat <- do.call(plyr::rbind.fill, lapply(files, read_csv))
cip <- read_csv("data/CIPCode2020.csv")
institutions <- read_csv("data/hd2018.csv")
d <- left_join(dat, cip, by=c("CIPCODE"="CIPCode"))
d <- left_join(d, institution... | /prep_data.R | no_license | ddimmery/PhD_diversity | R | false | false | 1,904 | r | library(shiny)
library(readr)
library(dplyr)
files <- paste0("data/C", 2011:2018, "_A.csv")
dat <- do.call(plyr::rbind.fill, lapply(files, read_csv))
cip <- read_csv("data/CIPCode2020.csv")
institutions <- read_csv("data/hd2018.csv")
d <- left_join(dat, cip, by=c("CIPCODE"="CIPCode"))
d <- left_join(d, institution... |
\name{cuGraphicsResourceSetMapFlags}
\alias{cuGraphicsResourceSetMapFlags}
\title{Set usage flags for mapping a graphics resource}
\description{ Set \code{flags} for mapping the graphics resource \code{resource}.}
\usage{cuGraphicsResourceSetMapFlags(resource, flags)}
\arguments{
\item{resource}{Registered resource t... | /man/cuGraphicsResourceSetMapFlags.Rd | no_license | xfbingshan/RCUDA | R | false | false | 544 | rd | \name{cuGraphicsResourceSetMapFlags}
\alias{cuGraphicsResourceSetMapFlags}
\title{Set usage flags for mapping a graphics resource}
\description{ Set \code{flags} for mapping the graphics resource \code{resource}.}
\usage{cuGraphicsResourceSetMapFlags(resource, flags)}
\arguments{
\item{resource}{Registered resource t... |
library(DT)
library(shiny)
dat <- na_replace_this_df(cdd)
rowCallback <- c(
"function(row, data, displayNum, displayIndex){",
paste0(" var indices = [",paste0(seq(nrow(dat))-1, collapse = ", "),"];"),
" if(indices.indexOf(displayIndex) > -1){",
" $(row).find('td:empty').addClass('notselectable');",
" ... | /00_nightly_only/dev/shiny_dt_experiments.R | permissive | bedantaguru/tidycells_nightly | R | false | false | 2,094 | r | library(DT)
library(shiny)
dat <- na_replace_this_df(cdd)
rowCallback <- c(
"function(row, data, displayNum, displayIndex){",
paste0(" var indices = [",paste0(seq(nrow(dat))-1, collapse = ", "),"];"),
" if(indices.indexOf(displayIndex) > -1){",
" $(row).find('td:empty').addClass('notselectable');",
" ... |
#' Construct copy-number single sample plot
#'
#' Given a data frame construct a plot to display raw copy number calls for a
#' single sample.
#' @name cnView
#' @param x Object of class data frame with rows representing copy number calls
#' from a single sample. The data frame must contain columns with the following
#... | /R/cnView.R | permissive | griffithlab/GenVisR | R | false | false | 6,770 | r | #' Construct copy-number single sample plot
#'
#' Given a data frame construct a plot to display raw copy number calls for a
#' single sample.
#' @name cnView
#' @param x Object of class data frame with rows representing copy number calls
#' from a single sample. The data frame must contain columns with the following
#... |
\name{assortment.continuous}
\alias{assortment.continuous}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Assortment on continuous vertex values
}
\description{
Calculates the assortativity coefficient for weighted and unweighted graphs with numerical vertex values
}
\usage{
assortment.continuou... | /man/assortment.continuous.Rd | no_license | cjw326/assortnet | R | false | false | 2,554 | rd | \name{assortment.continuous}
\alias{assortment.continuous}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Assortment on continuous vertex values
}
\description{
Calculates the assortativity coefficient for weighted and unweighted graphs with numerical vertex values
}
\usage{
assortment.continuou... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{druid.query.segmentMetadata}
\alias{druid.query.segmentMetadata}
\title{Query segment metadata}
\usage{
druid.query.segmentMetadata(url = druid.url(), dataSource, intervals,
verbose = F, ...)
}
\arguments{
\item{url}{URL to co... | /man/druid.query.segmentMetadata.Rd | permissive | JesseKolb/RDruid | R | false | true | 565 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{druid.query.segmentMetadata}
\alias{druid.query.segmentMetadata}
\title{Query segment metadata}
\usage{
druid.query.segmentMetadata(url = druid.url(), dataSource, intervals,
verbose = F, ...)
}
\arguments{
\item{url}{URL to co... |
# Loading provided datasets from local machine
NEI <- readRDS("C:/Users/lsharifi/Desktop/Rot2/coursera/A4-courseProject/summarySCC_PM25.rds")
SCC <- readRDS("C:/Users/lsharifi/Desktop/Rot2/coursera/A4-courseProject/Source_Classification_Code.rds")
baltimore <- NEI[NEI$fips=="24510",]
TotalPMBaltimore <- aggregate(Em... | /Plot2.R | no_license | layaSharifi/Exploratory-Data-Analysis-CourseProject | R | false | false | 726 | r | # Loading provided datasets from local machine
NEI <- readRDS("C:/Users/lsharifi/Desktop/Rot2/coursera/A4-courseProject/summarySCC_PM25.rds")
SCC <- readRDS("C:/Users/lsharifi/Desktop/Rot2/coursera/A4-courseProject/Source_Classification_Code.rds")
baltimore <- NEI[NEI$fips=="24510",]
TotalPMBaltimore <- aggregate(Em... |
options <- commandArgs(trailingOnly = T)
#universal
directory_name <- options[1]
threads <- as.numeric(options[2])
library_location <- options[3]
if(library_location == ""){
library_location <- .libPaths()
}
ref_fasta <- options[4]
ref_genes <- options[5]
print(ref_fasta)
print(ref_genes)
#Compo... | /metapop/metapop_r/MetaPop_Microdiversity_Visualizations.R | permissive | metaGmetapop/metapop | R | false | false | 34,107 | r | options <- commandArgs(trailingOnly = T)
#universal
directory_name <- options[1]
threads <- as.numeric(options[2])
library_location <- options[3]
if(library_location == ""){
library_location <- .libPaths()
}
ref_fasta <- options[4]
ref_genes <- options[5]
print(ref_fasta)
print(ref_genes)
#Compo... |
library(sdmvspecies)
### Name: pickMedian
### Title: pickMedian
### Aliases: pickMedian
### ** Examples
# load the sdmvspecies library
library("sdmvspecies")
library("raster")
# find package's location
package.dir <- system.file(package="sdmvspecies")
# let see where is our sdmvspecies is installed in
package.dir
#... | /data/genthat_extracted_code/sdmvspecies/examples/pickMedian.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 685 | r | library(sdmvspecies)
### Name: pickMedian
### Title: pickMedian
### Aliases: pickMedian
### ** Examples
# load the sdmvspecies library
library("sdmvspecies")
library("raster")
# find package's location
package.dir <- system.file(package="sdmvspecies")
# let see where is our sdmvspecies is installed in
package.dir
#... |
# STEP - 1 START #
install.packages("titanic")
install.packages("rpart.plot")
install.packages("randomForest")
install.packages("DAAG")
library(titanic)
library(rpart.plot)
library(gmodels)
library(Hmisc)
library(pROC)
library(ResourceSelection)
library(car)
library(caret)
library(dplyr)
library(InformationValue)
libr... | /Assignment 2 - K Fold.R | no_license | monicachandil/AMMA2017-18 | R | false | false | 6,067 | r | # STEP - 1 START #
install.packages("titanic")
install.packages("rpart.plot")
install.packages("randomForest")
install.packages("DAAG")
library(titanic)
library(rpart.plot)
library(gmodels)
library(Hmisc)
library(pROC)
library(ResourceSelection)
library(car)
library(caret)
library(dplyr)
library(InformationValue)
libr... |
get_ndx_scores <-
function(weights, geno, names) {
scored = as.vector(weights != 0)
geno2 = subset(geno, scored == TRUE)
col = match(geno2,names)
u = as.vector(na.omit(unique(col)))
return (sort(u))
}
| /R/get_ndx_scores.R | no_license | cran/SpATS | R | false | false | 219 | r | get_ndx_scores <-
function(weights, geno, names) {
scored = as.vector(weights != 0)
geno2 = subset(geno, scored == TRUE)
col = match(geno2,names)
u = as.vector(na.omit(unique(col)))
return (sort(u))
}
|
\name{Utils-class}
\Rdversion{1.1}
\docType{class}
\alias{Utils-class}
\alias{Utils}
\title{Class \code{Utils}}
\description{
A convenience object for working with various aspects of web requests and responses.
}
\seealso{
\code{\link{Multipart}}.
}
\examples{
Utils$bytesize('foo')
Utils$escape('foo bar')
Utils$unesca... | /Rook/man/Utils-class.Rd | no_license | cadar/rRack | R | false | false | 2,625 | rd | \name{Utils-class}
\Rdversion{1.1}
\docType{class}
\alias{Utils-class}
\alias{Utils}
\title{Class \code{Utils}}
\description{
A convenience object for working with various aspects of web requests and responses.
}
\seealso{
\code{\link{Multipart}}.
}
\examples{
Utils$bytesize('foo')
Utils$escape('foo bar')
Utils$unesca... |
#'Lineup proportion
#'
#'Computes the proportion of mock witnesses identifying a particular lineup member
#'@param lineup_table A table of lineup choices
#'@param target_pos A scalar, representing target position in lineup. Must be declared by user
#'@return Returns a proportion indicating the frequency with which a li... | /R/lineup_prop_tab.R | no_license | tmnaylor/r4lineups | R | false | false | 859 | r | #'Lineup proportion
#'
#'Computes the proportion of mock witnesses identifying a particular lineup member
#'@param lineup_table A table of lineup choices
#'@param target_pos A scalar, representing target position in lineup. Must be declared by user
#'@return Returns a proportion indicating the frequency with which a li... |
library(DESeq2)
library(ggplot2)
#count matrix input
cts <- read.csv("RawCounts.csv", sep = ",")
coldata <- read.csv("Infected_Uninfected.csv", sep = ",", row.names = 1)
head(cts,2)
coldata
#making sure they are in order
all(rownames(coldata) %in% colnames(cts))
all(rownames(coldata) == colnames(cts))
cts <- cts[, ro... | /DESeq2 attempt1.R | no_license | leekun4/CMSE890 | R | false | false | 3,886 | r | library(DESeq2)
library(ggplot2)
#count matrix input
cts <- read.csv("RawCounts.csv", sep = ",")
coldata <- read.csv("Infected_Uninfected.csv", sep = ",", row.names = 1)
head(cts,2)
coldata
#making sure they are in order
all(rownames(coldata) %in% colnames(cts))
all(rownames(coldata) == colnames(cts))
cts <- cts[, ro... |
# define "tolower error handling" function
tryTolower = function(x) {
# create missing value
y = NA
# tryCatch error
try_error = tryCatch(tolower(x), error=function(e) e)
# if not an error
if (!inherits(try_error, "error"))
y = tolower(x)
# result
return(y)
}
## Retirado de http://stackoverflow.co... | /R/utils.R | no_license | fernandosjp/hudar | R | false | false | 3,399 | r | # define "tolower error handling" function
tryTolower = function(x) {
# create missing value
y = NA
# tryCatch error
try_error = tryCatch(tolower(x), error=function(e) e)
# if not an error
if (!inherits(try_error, "error"))
y = tolower(x)
# result
return(y)
}
## Retirado de http://stackoverflow.co... |
# File:
# This file creates a data set. It is intended to be sourced
# by the RMarkdown file 'Sourcing Files.Rmd'.
Mother <- c(0,0,0,1,1,NA)
Father <- c(0,1,1,0,0,1)
df <- data.frame(Mother, Father)
df
str(df) #both Mother and Father columns are numeric | /Sourcing_Files/File to be sourced.R | no_license | BarryDeCicco/EDA_Descriptives_Tables | R | false | false | 255 | r | # File:
# This file creates a data set. It is intended to be sourced
# by the RMarkdown file 'Sourcing Files.Rmd'.
Mother <- c(0,0,0,1,1,NA)
Father <- c(0,1,1,0,0,1)
df <- data.frame(Mother, Father)
df
str(df) #both Mother and Father columns are numeric |
##### Import results from Experiment Factory's
##### bis-bas-survey and save as csv file
# load libraries
library(jsonlite)
library(stringr)
library(tidyverse)
# get IDs
id_list <- list.dirs(
path = "data/expfactory",
full.names = FALSE) %>%
str_subset("_finished") %>%
str_remove_all("_finished")
# create e... | /R/bis11_survey.R | no_license | mrweiler/dos08 | R | false | false | 1,538 | r | ##### Import results from Experiment Factory's
##### bis-bas-survey and save as csv file
# load libraries
library(jsonlite)
library(stringr)
library(tidyverse)
# get IDs
id_list <- list.dirs(
path = "data/expfactory",
full.names = FALSE) %>%
str_subset("_finished") %>%
str_remove_all("_finished")
# create e... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defaultRegressionFunctions.R
\name{gwasLMEHFuncsf}
\alias{gwasLMEHFuncsf}
\title{run a LMEH for a GWAS in Parallel}
\usage{
gwasLMEHFuncsf(i, g, pgx, Model, interactionTerm, genderVar, dbPath, dbTable,
overwriteEntry = FALSE, tempFil... | /axioPackages/AxioGWAS/man/gwasLMEHFuncSF.Rd | no_license | jjsayleraxio/Axio_rstudio | R | false | true | 1,345 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defaultRegressionFunctions.R
\name{gwasLMEHFuncsf}
\alias{gwasLMEHFuncsf}
\title{run a LMEH for a GWAS in Parallel}
\usage{
gwasLMEHFuncsf(i, g, pgx, Model, interactionTerm, genderVar, dbPath, dbTable,
overwriteEntry = FALSE, tempFil... |
library(data.table)
MAX_VAL <- 1e6
MAX_OBS <- 1e8
create_prior_dist <- function(dist_name
, expected_rate
, upper_bound_rate
, expected_mean
, upper_bound_mean
, expect... | /inst/abayes/server_funs.R | permissive | sambrilleman/abayes | R | false | false | 7,716 | r | library(data.table)
MAX_VAL <- 1e6
MAX_OBS <- 1e8
create_prior_dist <- function(dist_name
, expected_rate
, upper_bound_rate
, expected_mean
, upper_bound_mean
, expect... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
source("fnc_Process.R")
# Define UI for application that draws a histogram
ui <- fluidPage(
... | /codes/pw_query_shiny/old/app.R | permissive | ytk77/simple_keyserver | R | false | false | 1,171 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
source("fnc_Process.R")
# Define UI for application that draws a histogram
ui <- fluidPage(
... |
setGeneric("UDStack", function(x,...){standardGeneric("UDStack")})
setMethod("UDStack",
signature="RasterStack",
definition=function(x,method="unknown",...){
new(".UDStack",x, method=method)
})
setMethod("UDStack",
signature="RasterBrick",
definition=funct... | /R/UDStack.R | no_license | guzhongru/move | R | false | false | 712 | r | setGeneric("UDStack", function(x,...){standardGeneric("UDStack")})
setMethod("UDStack",
signature="RasterStack",
definition=function(x,method="unknown",...){
new(".UDStack",x, method=method)
})
setMethod("UDStack",
signature="RasterBrick",
definition=funct... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getEntries.R
\name{getEntries}
\alias{getEntries}
\title{Scrapes a page of entries}
\usage{
getEntries(returns)
}
\arguments{
\item{returns}{a list returned by getPages}
}
\value{
returns a list of scraped entries from one page in a raw
ch... | /man/getEntries.Rd | no_license | ekmaus19/absentfan | R | false | true | 642 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getEntries.R
\name{getEntries}
\alias{getEntries}
\title{Scrapes a page of entries}
\usage{
getEntries(returns)
}
\arguments{
\item{returns}{a list returned by getPages}
}
\value{
returns a list of scraped entries from one page in a raw
ch... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ml_estimates.R
\name{ml_binom}
\alias{ml_binom}
\alias{ml_multinom}
\title{Maximum-likelihood Estimate}
\usage{
ml_binom(k, n, A, b, map, strategy, n.fit = 3, start, progress = FALSE,
...)
ml_multinom(k, options, A, b, V, n.fit =... | /multinomineq/man/ml_binom.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 5,385 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ml_estimates.R
\name{ml_binom}
\alias{ml_binom}
\alias{ml_multinom}
\title{Maximum-likelihood Estimate}
\usage{
ml_binom(k, n, A, b, map, strategy, n.fit = 3, start, progress = FALSE,
...)
ml_multinom(k, options, A, b, V, n.fit =... |
library(foreach)
library(data.table)
ncores <- parallel::detectCores(logical = T)
data.table::setDTthreads(ncores)
source(here::here("analysis","Utils.R"))
###########################################################
dt.tv <- data.table::setDT(arrow::read_feather(here::here("output","cohort_long.feather")))
procedure... | /analysis/Table_postopcovid_adjusted_sub.R | permissive | opensafely/PostOpCovid | R | false | false | 16,179 | r | library(foreach)
library(data.table)
ncores <- parallel::detectCores(logical = T)
data.table::setDTthreads(ncores)
source(here::here("analysis","Utils.R"))
###########################################################
dt.tv <- data.table::setDT(arrow::read_feather(here::here("output","cohort_long.feather")))
procedure... |
### plot temperature data from Panama and Bermuda
## created by Nyssa Silbiger
## edited on 11/30/2018
#############
library(tidyverse)
library(lubridate)
library(sf)
library(gridExtra)
library(grid)
# Panama temperature
PData<-read.csv('Data/TemperatureData/PanamaTemperature.csv')
# remove the missing data
PData<-P... | /Scripts/TemperatureScript.R | no_license | njsilbiger/Comparative_thermal_tolerance_of_Ofranski | R | false | false | 3,606 | r | ### plot temperature data from Panama and Bermuda
## created by Nyssa Silbiger
## edited on 11/30/2018
#############
library(tidyverse)
library(lubridate)
library(sf)
library(gridExtra)
library(grid)
# Panama temperature
PData<-read.csv('Data/TemperatureData/PanamaTemperature.csv')
# remove the missing data
PData<-P... |
.email_to <- new.env(parent = emptyenv())
#' @export
#' @rdname errors
on_error_email_to <- function(recipient) {
.email_to$email <- recipient
invisible(recipient)
}
#' @export
#' @rdname errors
email_to <- function() {
.email_to$email
}
#' @export
#' @rdname errors
gmail_id <- function() {
Sys.getenv("GMAIL... | /R/error_email.R | permissive | SERTwitter/ser | R | false | false | 1,651 | r | .email_to <- new.env(parent = emptyenv())
#' @export
#' @rdname errors
on_error_email_to <- function(recipient) {
.email_to$email <- recipient
invisible(recipient)
}
#' @export
#' @rdname errors
email_to <- function() {
.email_to$email
}
#' @export
#' @rdname errors
gmail_id <- function() {
Sys.getenv("GMAIL... |
#Read Data
x<-read.table('household_power_consumption.txt',header=TRUE,sep=';',na.strings='?')
x<-x[x$Date=='1/2/2007' | x$Date=='2/2/2007',]
x$Date_time <-strptime(paste(x$Date , x$Time) , "%d/%m/%Y %H:%M:%S")
#plot Req graph
png(filename='plot2.png', units='px', height=480,width=480)
plot(x$Date_time,x$Gl... | /plot2.R | no_license | ahmedshawky1/ExData_Plotting1 | R | false | false | 411 | r |
#Read Data
x<-read.table('household_power_consumption.txt',header=TRUE,sep=';',na.strings='?')
x<-x[x$Date=='1/2/2007' | x$Date=='2/2/2007',]
x$Date_time <-strptime(paste(x$Date , x$Time) , "%d/%m/%Y %H:%M:%S")
#plot Req graph
png(filename='plot2.png', units='px', height=480,width=480)
plot(x$Date_time,x$Gl... |
library(groupedstats)
### Name: grouped_robustslr
### Title: Function to run robust simple linear regression (slr) on
### multiple variables across multiple grouping variables.
### Aliases: grouped_robustslr
### ** Examples
# in case of just one grouping variable
groupedstats::grouped_robustslr(
data = iris,
... | /data/genthat_extracted_code/groupedstats/examples/grouped_robustslr.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 438 | r | library(groupedstats)
### Name: grouped_robustslr
### Title: Function to run robust simple linear regression (slr) on
### multiple variables across multiple grouping variables.
### Aliases: grouped_robustslr
### ** Examples
# in case of just one grouping variable
groupedstats::grouped_robustslr(
data = iris,
... |
if(!require(dplyr)) {install.packages("dplyr"); library(dplyr)}
if(!require(tm)) {install.packages("tm"); library(tm)}
source("read-in-data.R")
#look at ballot designations
#figure out the most successful full designations
designation_winners <- count(filter(all_data, Won), Ballot.Designation)
designation_losers <-... | /explore-ballot-designation.R | no_license | ccowens/Recent-School-Board-Elections-in-WCCUSD | R | false | false | 1,813 | r | if(!require(dplyr)) {install.packages("dplyr"); library(dplyr)}
if(!require(tm)) {install.packages("tm"); library(tm)}
source("read-in-data.R")
#look at ballot designations
#figure out the most successful full designations
designation_winners <- count(filter(all_data, Won), Ballot.Designation)
designation_losers <-... |
# Script used to add observed catch and observed biomass to species params
# data frame `nsParams`
library(mizerHowTo)
time_averaged_catches <- readr::read_csv("data-raw/time-averaged-catches.csv")
time_averaged_SSB <- readr::read_csv("data-raw/time-averaged-SSB.csv")
library(dplyr)
nsParams <- nsParams %>%
left_joi... | /data-raw/add_observations.R | no_license | abesolberg/mizerHowTo | R | false | false | 579 | r | # Script used to add observed catch and observed biomass to species params
# data frame `nsParams`
library(mizerHowTo)
time_averaged_catches <- readr::read_csv("data-raw/time-averaged-catches.csv")
time_averaged_SSB <- readr::read_csv("data-raw/time-averaged-SSB.csv")
library(dplyr)
nsParams <- nsParams %>%
left_joi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sc_de_cluster.R
\name{sc_de_cluster}
\alias{sc_de_cluster}
\title{Find differentially expressed genes across clusters}
\usage{
sc_de_cluster(
sce_list,
cluster_resolution,
main_result_path,
supplemental_result_path,
cache_path,
re... | /man/sc_de_cluster.Rd | no_license | keshav-motwani/tregPaper | R | false | true | 902 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sc_de_cluster.R
\name{sc_de_cluster}
\alias{sc_de_cluster}
\title{Find differentially expressed genes across clusters}
\usage{
sc_de_cluster(
sce_list,
cluster_resolution,
main_result_path,
supplemental_result_path,
cache_path,
re... |
# Multivariate analysis against the target variable
# Will be using Density Graphs to do this analysis for cont, variable as it is lucid and easily comprehendable
# will use histograms to do analysis for categorical var.
################### A) Employee Background #####################
#Age
master %>%
g... | /4_Bivariate Analysis.R | no_license | siddata01/HR-Analytics-Employee-Attrition- | R | false | false | 12,338 | r | # Multivariate analysis against the target variable
# Will be using Density Graphs to do this analysis for cont, variable as it is lucid and easily comprehendable
# will use histograms to do analysis for categorical var.
################### A) Employee Background #####################
#Age
master %>%
g... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualizeResults.R
\name{plotRt}
\alias{plotRt}
\title{Creates a plot of the effective reproductive number}
\usage{
plotRt(
rData,
includeRtAvg = FALSE,
includeRtCI = FALSE,
includeRtAvgCI = FALSE
)
}
\arguments{
\item{r... | /man/plotRt.Rd | no_license | cran/nbTransmission | R | false | true | 3,001 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualizeResults.R
\name{plotRt}
\alias{plotRt}
\title{Creates a plot of the effective reproductive number}
\usage{
plotRt(
rData,
includeRtAvg = FALSE,
includeRtCI = FALSE,
includeRtAvgCI = FALSE
)
}
\arguments{
\item{r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/games_objects.R
\name{InstanceAndroidDetails}
\alias{InstanceAndroidDetails}
\title{InstanceAndroidDetails Object}
\usage{
InstanceAndroidDetails(enablePiracyCheck = NULL, packageName = NULL,
preferred = NULL)
}
\arguments{
\item{enablePira... | /googlegamesv1.auto/man/InstanceAndroidDetails.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 780 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/games_objects.R
\name{InstanceAndroidDetails}
\alias{InstanceAndroidDetails}
\title{InstanceAndroidDetails Object}
\usage{
InstanceAndroidDetails(enablePiracyCheck = NULL, packageName = NULL,
preferred = NULL)
}
\arguments{
\item{enablePira... |
## Script to average and aggregate all CMIP5 model projections
## Relies on data downloaded from the CMIP5 website:
## http://cmip-pcmdi.llnl.gov/cmip5/
## Authors: Andrew Tredennick and Peter Adler
## Email: atredenn@gmail.com
## Date created: 10-10-2013
### Clean the workspace and set working di... | /scripts/climate_formatting/Climate_Proj_Calcs_CMIP5.R | no_license | georgewoolsey/Tredennick_sageAbundance | R | false | false | 4,217 | r | ## Script to average and aggregate all CMIP5 model projections
## Relies on data downloaded from the CMIP5 website:
## http://cmip-pcmdi.llnl.gov/cmip5/
## Authors: Andrew Tredennick and Peter Adler
## Email: atredenn@gmail.com
## Date created: 10-10-2013
### Clean the workspace and set working di... |
#' two_factor_search
#'
#' Takes test group and control group (as 4 column data.frame) with
#' exactly two categorical variables and one continuous variable for each
#' obsevation. Performs 1-1 matching on both factors and a continuous value.
#' Begins with first test, removing selected controls as it travels do... | /R/two_factor_search.R | no_license | njjms/matchr | R | false | false | 5,088 | r | #' two_factor_search
#'
#' Takes test group and control group (as 4 column data.frame) with
#' exactly two categorical variables and one continuous variable for each
#' obsevation. Performs 1-1 matching on both factors and a continuous value.
#' Begins with first test, removing selected controls as it travels do... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/augbin_2t_1a_fit.R
\name{predict.augbin_2t_1a_fit}
\alias{predict.augbin_2t_1a_fit}
\title{Predict probability of success for given tumour size measurements.}
\usage{
\method{predict}{augbin_2t_1a_fit}(
object,
y1_lower = -Inf,
y1_upper... | /man/predict.augbin_2t_1a_fit.Rd | no_license | brockk/trialr | R | false | true | 1,727 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/augbin_2t_1a_fit.R
\name{predict.augbin_2t_1a_fit}
\alias{predict.augbin_2t_1a_fit}
\title{Predict probability of success for given tumour size measurements.}
\usage{
\method{predict}{augbin_2t_1a_fit}(
object,
y1_lower = -Inf,
y1_upper... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metaX.R
\docType{methods}
\name{plotPCA}
\alias{plotPCA}
\title{Performa PCA analysis and plot PCA figure}
\usage{
plotPCA(para, pcaMethod = "svdImpute", valueID = "valueNorm",
label = "order", rmQC = TRUE, batch = FALSE, scale = "none",
... | /R/metax/man/plotPCA.Rd | no_license | gigascience/cuddel-gsk-dataset | R | false | true | 1,581 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metaX.R
\docType{methods}
\name{plotPCA}
\alias{plotPCA}
\title{Performa PCA analysis and plot PCA figure}
\usage{
plotPCA(para, pcaMethod = "svdImpute", valueID = "valueNorm",
label = "order", rmQC = TRUE, batch = FALSE, scale = "none",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wiod.R
\docType{data}
\name{industries}
\alias{industries}
\title{WIOD industries}
\description{
the names of the industries
}
| /man/industries.Rd | no_license | desval/wiod | R | false | true | 206 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wiod.R
\docType{data}
\name{industries}
\alias{industries}
\title{WIOD industries}
\description{
the names of the industries
}
|
library (dplyr)
metadata <- readxl::read_excel("data-raw/metadata.xlsx",
sheet = "all") %>%
dplyr::arrange( numeric_label ) %>%
dplyr::select ( -digit_1, -digit_2 )
metadata_uk_2010 <- readxl::read_excel(path = file.path('data-raw', 'metadata_uk_2010.xlsx')) %>%
dplyr::mutate ( u... | /data-raw/create_metadata.R | permissive | vero1166/iotables | R | false | false | 1,109 | r |
library (dplyr)
metadata <- readxl::read_excel("data-raw/metadata.xlsx",
sheet = "all") %>%
dplyr::arrange( numeric_label ) %>%
dplyr::select ( -digit_1, -digit_2 )
metadata_uk_2010 <- readxl::read_excel(path = file.path('data-raw', 'metadata_uk_2010.xlsx')) %>%
dplyr::mutate ( u... |
#Backbone extraction
#Not finished
backboneNetwork<-function(g,alpha,evalFunc){
#Returns a backbone network based on LANS.
#g is a weighted perhaps directed graph
#alpha is the significance level for links
#First, convert graph to adjancy matrix
A<-get.adjacency(g,attr="weight")
A<-as.matrix(A)
#Now, conver... | /old/IBSE_definitions/analyses/R_scripts/backboneExtraction.r | no_license | jbruun/reviewECIBSE | R | false | false | 2,387 | r | #Backbone extraction
#Not finished
backboneNetwork<-function(g,alpha,evalFunc){
#Returns a backbone network based on LANS.
#g is a weighted perhaps directed graph
#alpha is the significance level for links
#First, convert graph to adjancy matrix
A<-get.adjacency(g,attr="weight")
A<-as.matrix(A)
#Now, conver... |
\name{snqProfitEla}
\alias{snqProfitEla}
\title{Price Elasticities of SNQ Profit function}
\description{
Calculates the Price Elasticities of a Symmetric Normalized Quadratic (SNQ)
profit function.
}
\usage{ snqProfitEla( beta, prices, quant, weights,
scalingFactors = rep( 1, length( weights ) ),
coefVco... | /branches/translogIsoquant/man/snqProfitEla.Rd | no_license | scfmolina/micecon | R | false | false | 2,674 | rd | \name{snqProfitEla}
\alias{snqProfitEla}
\title{Price Elasticities of SNQ Profit function}
\description{
Calculates the Price Elasticities of a Symmetric Normalized Quadratic (SNQ)
profit function.
}
\usage{ snqProfitEla( beta, prices, quant, weights,
scalingFactors = rep( 1, length( weights ) ),
coefVco... |
VI.hist =
function(...) {
args = list(...)
VI(hist(...))
if (!is.null(args$xlab)) {
cat(paste("N.B. The default text for the x axis has been replaced by: ",
args$xlab, "\n", sep = ""))
cat("\n")
}
if (!is.null(args$ylab)) {
cat(past... | /R/NonMethodFunctions.R | no_license | cran/BrailleR | R | false | false | 468 | r |
VI.hist =
function(...) {
args = list(...)
VI(hist(...))
if (!is.null(args$xlab)) {
cat(paste("N.B. The default text for the x axis has been replaced by: ",
args$xlab, "\n", sep = ""))
cat("\n")
}
if (!is.null(args$ylab)) {
cat(past... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.