content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library(numDeriv)
library(statmod)
N <- 10000
mu <- 1
lambda <- 1.5
t0 <- 0.4
parms <- c(mu, lambda, t0)
t <- rinvgauss(N, mu, lambda) + t0
loglik <- function(t, parms){
mu <- parms[1]
lambda <- parms[2]
t0 <- parms[3]
sum(log())
}
hess <- function(t, parms) hessian(func=fu... | /FIM_invgauss.R | no_license | JoonsukPark/examples | R | false | false | 1,278 | r | library(numDeriv)
library(statmod)
N <- 10000
mu <- 1
lambda <- 1.5
t0 <- 0.4
parms <- c(mu, lambda, t0)
t <- rinvgauss(N, mu, lambda) + t0
loglik <- function(t, parms){
mu <- parms[1]
lambda <- parms[2]
t0 <- parms[3]
sum(log())
}
hess <- function(t, parms) hessian(func=fu... |
## The overal function takes a value for matrix and stores inverse of that matrix in the cache
## this function takes in a matrix and stores the inverse in the cache
makeCacheMatrix <- function(x = matrix()) {
n <- NULL
set <- function(matrix){
x <<- matrix
n <<- NULL
}
get <- function() x
setinvers... | /cachematrix.R | no_license | lseino/ProgrammingAssignment2 | R | false | false | 792 | r | ## The overal function takes a value for matrix and stores inverse of that matrix in the cache
## this function takes in a matrix and stores the inverse in the cache
makeCacheMatrix <- function(x = matrix()) {
n <- NULL
set <- function(matrix){
x <<- matrix
n <<- NULL
}
get <- function() x
setinvers... |
e_quakes<-datasets::quakes
#perform everything + below
#skewness
#kurtosis
#var
#standard deviation
e_quakes
####Top 10 rows and last 10 rows
head(e_quakes,10)
tail(e_quakes,10)
######Columns
e_quakes[,c(1,2)]
df<-e_quakes[,-6]
summary(e_quakes[,1])
summary(e_quakes)
e_quakes$lat
#####... | /Exercise.R | no_license | ajawati/Data-Science_R | R | false | false | 1,893 | r | e_quakes<-datasets::quakes
#perform everything + below
#skewness
#kurtosis
#var
#standard deviation
e_quakes
####Top 10 rows and last 10 rows
head(e_quakes,10)
tail(e_quakes,10)
######Columns
e_quakes[,c(1,2)]
df<-e_quakes[,-6]
summary(e_quakes[,1])
summary(e_quakes)
e_quakes$lat
#####... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_firebrowse.R
\name{loadFirebrowseFolders}
\alias{loadFirebrowseFolders}
\alias{loadFirehoseFolders}
\title{Load Firebrowse folders}
\usage{
loadFirebrowseFolders(folder, exclude = "", progress = echoProgress)
loadFirehoseFolders(folder,... | /man/loadFirebrowseFolders.Rd | no_license | mgandal/psichomics | R | false | true | 902 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_firebrowse.R
\name{loadFirebrowseFolders}
\alias{loadFirebrowseFolders}
\alias{loadFirehoseFolders}
\title{Load Firebrowse folders}
\usage{
loadFirebrowseFolders(folder, exclude = "", progress = echoProgress)
loadFirehoseFolders(folder,... |
writeTpmap <- function(filename, bpmaplist, verbose = 0){
writeSequence <- function(seq){
if(length(setdiff(c("seqInfo", "pmx", "pmy", "probeseq", "startpos", "strand"),
names(seq))) != 0 ||
length(setdiff(c("groupname", "version", "name"),
name... | /R/writeTpmap.R | no_license | HenrikBengtsson/affxparser | R | false | false | 1,812 | r | writeTpmap <- function(filename, bpmaplist, verbose = 0){
writeSequence <- function(seq){
if(length(setdiff(c("seqInfo", "pmx", "pmy", "probeseq", "startpos", "strand"),
names(seq))) != 0 ||
length(setdiff(c("groupname", "version", "name"),
name... |
library(ggplot2)
MergedDataFor2013 <- merge.data.frame(FR2013,LE2013,by.x="Country.Code",by.y="Country")
head(MergedDataFor2013)
qplot(data=MergedDataFor2013, x=Fertility.Rate,y=Life2013,color=Region, shape=I(17), alpha=I(0.8),main="Fertility Rate vs Life Expectancy 2013") | /Plot of Fertility Rate and Life Expectancy 2013.R | no_license | AramidHaiju/R | R | false | false | 278 | r | library(ggplot2)
MergedDataFor2013 <- merge.data.frame(FR2013,LE2013,by.x="Country.Code",by.y="Country")
head(MergedDataFor2013)
qplot(data=MergedDataFor2013, x=Fertility.Rate,y=Life2013,color=Region, shape=I(17), alpha=I(0.8),main="Fertility Rate vs Life Expectancy 2013") |
## Assignment2 - Caching the inverse of a matrix
## [makeCacheMatrix] given a matrix, returns an "object" that keeps a cache of
## the inverse of that matrix.
## Avaliable methods:
## - get : return currently set matrix
## - set : sets a new matrix, deletes old cache
## - setinv : caches the given inverse
## - get... | /cachematrix.R | no_license | mvilab/ProgrammingAssignment2 | R | false | false | 1,149 | r | ## Assignment2 - Caching the inverse of a matrix
## [makeCacheMatrix] given a matrix, returns an "object" that keeps a cache of
## the inverse of that matrix.
## Avaliable methods:
## - get : return currently set matrix
## - set : sets a new matrix, deletes old cache
## - setinv : caches the given inverse
## - get... |
context("load export options testing")
# shorten table names
export_options_regular_short <- read_export_options(data_dir = system.file("extdata", "sT_exports", "BMD",
"s_export_CSV-xls_BMD_short_en_utf8.zip",
... | /tests/testthat/test-read_export_options.R | permissive | gillesdutilh/secuTrialR | R | false | false | 8,771 | r | context("load export options testing")
# shorten table names
export_options_regular_short <- read_export_options(data_dir = system.file("extdata", "sT_exports", "BMD",
"s_export_CSV-xls_BMD_short_en_utf8.zip",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_swne.R
\name{RunSWNE}
\alias{RunSWNE}
\alias{RunSWNE.seurat}
\alias{RunSWNE.matrix}
\title{Wrapper for the running SWNE analysis functions}
\usage{
\method{RunSWNE}{seurat}(object, dist.metric = "euclidean",
n.cores = 3, k, var.genes, l... | /man/RunSWNE.Rd | no_license | hlxie/swne | R | false | true | 1,664 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_swne.R
\name{RunSWNE}
\alias{RunSWNE}
\alias{RunSWNE.seurat}
\alias{RunSWNE.matrix}
\title{Wrapper for the running SWNE analysis functions}
\usage{
\method{RunSWNE}{seurat}(object, dist.metric = "euclidean",
n.cores = 3, k, var.genes, l... |
# Note: crude selection of first 50 etas used to test the extensibility of pretrained models on arbitrary nsam
# ideally, new data with nsam=n_genome should be generated and new models should be trained
library(mboost)
library(reshape2)
library(ggplot2)
source('../functions_boosting.R')
source('../functions_plot.R')
... | /src/two_genome_standardise_estimate.R | no_license | peerapongch/rhotheta | R | false | false | 2,621 | r | # Note: crude selection of first 50 etas used to test the extensibility of pretrained models on arbitrary nsam
# ideally, new data with nsam=n_genome should be generated and new models should be trained
library(mboost)
library(reshape2)
library(ggplot2)
source('../functions_boosting.R')
source('../functions_plot.R')
... |
full_routine <- function(x,
parms,
foi_data,
adm_covariates,
all_squares,
all_predictors){
j <- x$exp_id
var_to_fit <- x$var
number_of_predictors <- x$no_pred
parms$no_predicto... | /R/random_forest/full_routine.R | no_license | mrc-ide/DENV_risk_maps | R | false | false | 6,164 | r | full_routine <- function(x,
parms,
foi_data,
adm_covariates,
all_squares,
all_predictors){
j <- x$exp_id
var_to_fit <- x$var
number_of_predictors <- x$no_pred
parms$no_predicto... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DoOR.data-package.R
\docType{data}
\name{Or85c}
\alias{Or85c}
\title{Or85c}
\format{
'data.frame': 693 obs. of 8 variables:
$ Class : Factor w/ 17 levels "acid","acids",..: NA 13 5 5 5 5 5 5 5 5 ...
$ Name : Factor w/ 69... | /man/Or85c.Rd | no_license | ropensci/DoOR.data | R | false | true | 1,144 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DoOR.data-package.R
\docType{data}
\name{Or85c}
\alias{Or85c}
\title{Or85c}
\format{
'data.frame': 693 obs. of 8 variables:
$ Class : Factor w/ 17 levels "acid","acids",..: NA 13 5 5 5 5 5 5 5 5 ...
$ Name : Factor w/ 69... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NutsDual.R, R/hmc.R
\name{Leapfrog}
\alias{Leapfrog}
\alias{Leapfrog}
\title{Leapfrog}
\usage{
Leapfrog(theta, r, epsilon, L)
Leapfrog(theta, r, epsilon, L)
}
\arguments{
\item{theta}{starting position}
\item{r}{starting momentum}
\item{ep... | /man/Leapfrog.Rd | no_license | JingyueLu/NUTS | R | false | true | 1,280 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NutsDual.R, R/hmc.R
\name{Leapfrog}
\alias{Leapfrog}
\alias{Leapfrog}
\title{Leapfrog}
\usage{
Leapfrog(theta, r, epsilon, L)
Leapfrog(theta, r, epsilon, L)
}
\arguments{
\item{theta}{starting position}
\item{r}{starting momentum}
\item{ep... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BrainRegion3D.R
\docType{methods}
\name{[,ROIVolume,numeric,missing,ANY-method}
\alias{[,ROIVolume,logical,logical,ANY-method}
\alias{[,ROIVolume,logical,missing,ANY-method}
\alias{[,ROIVolume,missing,logical,ANY-method}
\alias{[,ROIVolume,mi... | /man/vol_subset-methods.Rd | no_license | muschellij2/neuroim | R | false | true | 999 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BrainRegion3D.R
\docType{methods}
\name{[,ROIVolume,numeric,missing,ANY-method}
\alias{[,ROIVolume,logical,logical,ANY-method}
\alias{[,ROIVolume,logical,missing,ANY-method}
\alias{[,ROIVolume,missing,logical,ANY-method}
\alias{[,ROIVolume,mi... |
# estimamos con abc
library(circular)
library(Rcpp)
library(tidyverse)
library(mvtnorm)
library(abc)
library(randomForest)
# ==============================================================
# FUNCIONES
# ==============================================================
source('SSM/funaux.R')
Rcpp::sourceCpp('SSM/cpp/abc_... | /SSM/nacho_estima.R | no_license | sofiar/SSM | R | false | false | 3,966 | r |
# estimamos con abc
library(circular)
library(Rcpp)
library(tidyverse)
library(mvtnorm)
library(abc)
library(randomForest)
# ==============================================================
# FUNCIONES
# ==============================================================
source('SSM/funaux.R')
Rcpp::sourceCpp('SSM/cpp/abc_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Laplace.R
\name{buildLaplace}
\alias{buildLaplace}
\alias{laplace}
\alias{Laplace}
\title{Laplace approximation}
\usage{
buildLaplace(
model,
paramNodes,
randomEffectsNodes,
calcNodes,
calcNodesOther,
control = list()
)
}
\argumen... | /packages/nimble/man/laplace.Rd | permissive | nimble-dev/nimble | R | false | true | 18,869 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Laplace.R
\name{buildLaplace}
\alias{buildLaplace}
\alias{laplace}
\alias{Laplace}
\title{Laplace approximation}
\usage{
buildLaplace(
model,
paramNodes,
randomEffectsNodes,
calcNodes,
calcNodesOther,
control = list()
)
}
\argumen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/beginr.R
\name{readdir}
\alias{readdir}
\title{Read multiple tables into a list.}
\usage{
readdir(mydir = getwd(), sep = c(","), output = c("list", "data.frame"), header = TRUE,
skip = 0)
}
\arguments{
\item{mydir}{the folder p... | /man/readdir.Rd | no_license | cran/beginr | R | false | true | 732 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/beginr.R
\name{readdir}
\alias{readdir}
\title{Read multiple tables into a list.}
\usage{
readdir(mydir = getwd(), sep = c(","), output = c("list", "data.frame"), header = TRUE,
skip = 0)
}
\arguments{
\item{mydir}{the folder p... |
library(BBmisc)
library(caret)
library(dummies)
#Import train data into a dataframe
setwd("~/Downloads/AV WNS HACKATHON")
orig_train_data <- read.csv('train_LZdllcl.csv', header = T,strip.white = T,stringsAsFactors = F)
#Check first few rows of the dataframe
head(orig_train_data)
#Check summary
summary(orig_train_da... | /others_solutions/pre-final/093r_409_573787_cf_Final_code_submission/01_Importing_and_Preprocessing_Final_Submission.R | no_license | DataScienceWorks/AV-WNS-2018-September-JobPromotionPrediction | R | false | false | 6,191 | r | library(BBmisc)
library(caret)
library(dummies)
#Import train data into a dataframe
setwd("~/Downloads/AV WNS HACKATHON")
orig_train_data <- read.csv('train_LZdllcl.csv', header = T,strip.white = T,stringsAsFactors = F)
#Check first few rows of the dataframe
head(orig_train_data)
#Check summary
summary(orig_train_da... |
library(glmnet)
mydata = read.table("./TrainingSet/RF/pleura.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.95,family="gaussian",standardize=FALSE)
sink('./Model/EN/Classifier/pleura/pleura_094.txt',append=TRUE... | /Model/EN/Classifier/pleura/pleura_094.R | no_license | leon1003/QSMART | R | false | false | 351 | r | library(glmnet)
mydata = read.table("./TrainingSet/RF/pleura.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.95,family="gaussian",standardize=FALSE)
sink('./Model/EN/Classifier/pleura/pleura_094.txt',append=TRUE... |
if ("SingleR" %in% installed.packages()) {
require(SingleR)
#' attach data on cell types using SingleR
#'
#' @details using the SingleR functionaly to attach that information to a scEx (SingleCellExperiment object)
#'
#'
#' @param scEx singleCellExperiment object
#' @param hpca.se e.g. HumanPrimaryCe... | /inst/app/applySimpleR.R | no_license | C3BI-pasteur-fr/UTechSCB-SCHNAPPs | R | false | false | 1,187 | r |
if ("SingleR" %in% installed.packages()) {
require(SingleR)
#' attach data on cell types using SingleR
#'
#' @details using the SingleR functionaly to attach that information to a scEx (SingleCellExperiment object)
#'
#'
#' @param scEx singleCellExperiment object
#' @param hpca.se e.g. HumanPrimaryCe... |
require(devtools)
install.packages("FinancialInstrument")
install.packages("PerformanceAnalytics")
install.packages("foreach")
install_github("braverock/blotter") # dependency
install_github("braverock/quantstrat") | /rprojectSPL/BackTest/Quantstrat/installQuantstrat00.R | permissive | UTexas80/gitSPL | R | false | false | 214 | r | require(devtools)
install.packages("FinancialInstrument")
install.packages("PerformanceAnalytics")
install.packages("foreach")
install_github("braverock/blotter") # dependency
install_github("braverock/quantstrat") |
### Missing States handling with the help of location
Dataset$StateCorrected = Dataset$State
Dataset[which(Dataset$StateCorrected == 'Chattisgarh'),'StateCorrected'] = 'Chhattisgarh'
Dataset[which(Dataset$StateCorrected == 'Orissa'),'StateCorrected'] = 'Odisha'
Dataset[which(Dataset$StateCorrected == 'W Bengal'),'State... | /Customer_Satisfaction_Capstone/Cluster_Analysis.R | no_license | raviyelugula/Projects | R | false | false | 7,427 | r | ### Missing States handling with the help of location
Dataset$StateCorrected = Dataset$State
Dataset[which(Dataset$StateCorrected == 'Chattisgarh'),'StateCorrected'] = 'Chhattisgarh'
Dataset[which(Dataset$StateCorrected == 'Orissa'),'StateCorrected'] = 'Odisha'
Dataset[which(Dataset$StateCorrected == 'W Bengal'),'State... |
# function that computes EYdopt - unadj, TMLE, IPTW, gcomp, CV-TMLE
#' @name EYdopt
#' @aliases EYdopt
#' @title Estimation of E[Ydopt]
#' @description Given a W, A, Y dataset, this function will compute the estimated ODTR using SuperLearner. If a Qbar function is provided that computes the true E[Y|A,W] (e.g., if sim... | /R/5valueodtr.R | no_license | lmmontoya/SL.ODTR | R | false | false | 33,931 | r | # function that computes EYdopt - unadj, TMLE, IPTW, gcomp, CV-TMLE
#' @name EYdopt
#' @aliases EYdopt
#' @title Estimation of E[Ydopt]
#' @description Given a W, A, Y dataset, this function will compute the estimated ODTR using SuperLearner. If a Qbar function is provided that computes the true E[Y|A,W] (e.g., if sim... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rsaddle.R
\name{rsaddle}
\alias{rsaddle}
\title{Simulate random variables from the Extended Empirical Saddlepoint density (ESS)}
\usage{
rsaddle(
n,
X,
decay,
ml = 2,
multicore = !is.null(cluster),
cluster = NULL,
ncores = detec... | /fuzzedpackages/esaddle/man/rsaddle.Rd | no_license | akhikolla/testpackages | R | false | true | 2,161 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rsaddle.R
\name{rsaddle}
\alias{rsaddle}
\title{Simulate random variables from the Extended Empirical Saddlepoint density (ESS)}
\usage{
rsaddle(
n,
X,
decay,
ml = 2,
multicore = !is.null(cluster),
cluster = NULL,
ncores = detec... |
# ======================================================================================================================
# ==== ABT MSE Diagnostics =============================================================================================
# ============================================================================... | /R_package/ABTMSE/inst/Diagnostics.R | no_license | pl202/abft-mse | R | false | false | 12,399 | r | # ======================================================================================================================
# ==== ABT MSE Diagnostics =============================================================================================
# ============================================================================... |
#Perform differential expression analysis of spf transcriptional data (Beisel and Storz 2011)
#Work directory should be the Miscellaneous_scripts folder - change accordingly
#Read table mapping E. coli genes and microarray probes
genes.probes.table<-read.table("../Miscellaneous_data/Spot 42_transcriptional_data/ecoli_... | /Miscellaneous_scripts/differential_expression_analysis_Spot42.R | no_license | marioluisao/sRNA_networks | R | false | false | 2,925 | r | #Perform differential expression analysis of spf transcriptional data (Beisel and Storz 2011)
#Work directory should be the Miscellaneous_scripts folder - change accordingly
#Read table mapping E. coli genes and microarray probes
genes.probes.table<-read.table("../Miscellaneous_data/Spot 42_transcriptional_data/ecoli_... |
setwd("C:/Users/kotha020/Dropbox/PostdocProjects/FreshLeafModels")
library(spectrolab)
library(ggplot2)
library(FNN)
library(lme4)
library(ggpubr)
#################################
## import TRY data
## TRY trait number reference
# SLA no petiole: 3115*
# LDMC: 47*
# Leaf N: 14*
# Leaf C: 13*
# Solubles: 85*
# Hemic... | /07 compare_trait_distributions.R | no_license | ShanKothari/CABO-trait-models | R | false | false | 34,153 | r | setwd("C:/Users/kotha020/Dropbox/PostdocProjects/FreshLeafModels")
library(spectrolab)
library(ggplot2)
library(FNN)
library(lme4)
library(ggpubr)
#################################
## import TRY data
## TRY trait number reference
# SLA no petiole: 3115*
# LDMC: 47*
# Leaf N: 14*
# Leaf C: 13*
# Solubles: 85*
# Hemic... |
\name{comparisonsTable}
\docType{methods}
\alias{comparisonsTable}
\title{
Create a Table of Comparisons amongst Groups
}
\description{
Create a table of comparisons based on a fit by the \pkg{cg}
package.
}
\usage{
comparisonsTable(fit, type = "pairwisereflect", alpha = 0.05, addpct = FALSE,
display... | /man/comparisonsTable.Rd | no_license | cran/cg | R | false | false | 5,054 | rd | \name{comparisonsTable}
\docType{methods}
\alias{comparisonsTable}
\title{
Create a Table of Comparisons amongst Groups
}
\description{
Create a table of comparisons based on a fit by the \pkg{cg}
package.
}
\usage{
comparisonsTable(fit, type = "pairwisereflect", alpha = 0.05, addpct = FALSE,
display... |
cat("\014"); rm(list=ls())
setwd(here::here())
library(readxl)
library(dplyr)
pth <- "data/raw_ageing/aaaOriginals/"
dfB <- read_excel(paste0(pth,"S_cantharus_data_Neves_etal.xlsx"),
sheet="Between readers") %>%
rename(tl=`TL (cm)`,sex=Sex,otoliths_R1=`Reader 1`,otoliths_R2=`Reader 2`) %>%
mutate... | /data/raw_ageing/aaaOriginals/S_cantharus_data_Neves_etal_MakeRawData.R | no_license | droglenc/AgePrecision | R | false | false | 771 | r | cat("\014"); rm(list=ls())
setwd(here::here())
library(readxl)
library(dplyr)
pth <- "data/raw_ageing/aaaOriginals/"
dfB <- read_excel(paste0(pth,"S_cantharus_data_Neves_etal.xlsx"),
sheet="Between readers") %>%
rename(tl=`TL (cm)`,sex=Sex,otoliths_R1=`Reader 1`,otoliths_R2=`Reader 2`) %>%
mutate... |
library(lattice)
both<-read.csv("Gitter_Random.csv",header=TRUE)
pdf("PDFFinal.pdf",height = 6, width=6)
densityplot(~resolution_time,data=both,groups = configuration,
plot.points = FALSE, ref = TRUE,
auto.key=list(space="top", columns=2),xlab = "Resolution Time in Hours",ylim=c(-0.00001,0.0006... | /Scripts_Graphs/PDFandCDF.R | no_license | Hareem-E-Sahar/gitter | R | false | false | 1,300 | r | library(lattice)
both<-read.csv("Gitter_Random.csv",header=TRUE)
pdf("PDFFinal.pdf",height = 6, width=6)
densityplot(~resolution_time,data=both,groups = configuration,
plot.points = FALSE, ref = TRUE,
auto.key=list(space="top", columns=2),xlab = "Resolution Time in Hours",ylim=c(-0.00001,0.0006... |
#SDC Example Circles
library(gridExtra)
c.df <- data.frame(c.rad=c(20,40,60,80,100,150,200,250,300,400,500,1000),
sdc=NA)
c.polys=c.rad=c.plots=list()
for(r in 1:nrow(c.df)){
c.rad[[r]] <- c.df[r,"c.rad"]
coords_sp <- SpatialPoints(data.frame(x=0,y=0),CRS("+proj=aea +lat_1=34 +lat_2=40.5 +lat_0=0... | /Code/MS2- Trends Code/3. SDC_Example_Circles.R | no_license | stevensjt/Mixed_Severity | R | false | false | 1,491 | r | #SDC Example Circles
library(gridExtra)
c.df <- data.frame(c.rad=c(20,40,60,80,100,150,200,250,300,400,500,1000),
sdc=NA)
c.polys=c.rad=c.plots=list()
for(r in 1:nrow(c.df)){
c.rad[[r]] <- c.df[r,"c.rad"]
coords_sp <- SpatialPoints(data.frame(x=0,y=0),CRS("+proj=aea +lat_1=34 +lat_2=40.5 +lat_0=0... |
## Soil color model fitting
# Ranger models of L a b for 2 depths
# Predictand: L
# Covariates: Environs
library(ranger);library(caret)
root<- "/datasets/work/af-tern-mal-deb/work/projects/ternlandscapes_2019/soilColour/data/processed_1/"
capture.root<- "/datasets/work/af-tern-mal-deb/work/projects/ternlandscapes_2019... | /Production/DSM/SoilColour/digitalsoilmapping/models/model_fitting/model_12/model_12_both.R | permissive | AusSoilsDSM/SLGA | R | false | false | 2,841 | r | ## Soil color model fitting
# Ranger models of L a b for 2 depths
# Predictand: L
# Covariates: Environs
library(ranger);library(caret)
root<- "/datasets/work/af-tern-mal-deb/work/projects/ternlandscapes_2019/soilColour/data/processed_1/"
capture.root<- "/datasets/work/af-tern-mal-deb/work/projects/ternlandscapes_2019... |
# This script prepares data for valuation
# 1. function for salary scale
# - add_salary_full
# 2. function for distribution of new entrants
# add_entrantsDist
# 3. function adjusting retirement rates for modeling
#*******************************************************************************
# ... | /model/valuation/model_val_prepDataFuns.R | no_license | yimengyin16/model_SJ | R | false | false | 20,442 | r | # This script prepares data for valuation
# 1. function for salary scale
# - add_salary_full
# 2. function for distribution of new entrants
# add_entrantsDist
# 3. function adjusting retirement rates for modeling
#*******************************************************************************
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expressionBased.R
\name{getmiRNACount}
\alias{getmiRNACount}
\title{Get TCGA miRNAseq expression of miRNA genes for the given cancer}
\usage{
getmiRNACount(mirnagene, cancer, databaseFile)
}
\arguments{
\item{mirnagene}{Data frame of the matu... | /man/getmiRNACount.Rd | no_license | guldenolgun/NoRCE | R | false | true | 620 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expressionBased.R
\name{getmiRNACount}
\alias{getmiRNACount}
\title{Get TCGA miRNAseq expression of miRNA genes for the given cancer}
\usage{
getmiRNACount(mirnagene, cancer, databaseFile)
}
\arguments{
\item{mirnagene}{Data frame of the matu... |
## Test posterior sampling functions
## load packages
library("testthat")
library("mgcv")
library("gratia")
test_that("smooth_samples works for a continuous by GAM", {
expect_silent(sm <- smooth_samples(su_m_cont_by, n = 5, n_vals = 100,
seed = 42))
expect_s3_class(sm, c... | /tests/testthat/test-posterior-samples.R | no_license | cran/gratia | R | false | false | 7,622 | r | ## Test posterior sampling functions
## load packages
library("testthat")
library("mgcv")
library("gratia")
test_that("smooth_samples works for a continuous by GAM", {
expect_silent(sm <- smooth_samples(su_m_cont_by, n = 5, n_vals = 100,
seed = 42))
expect_s3_class(sm, c... |
### Prokaryotes pipeline phyloseq ###
### Author: Bianca Trevizan Segovia ###
### Date created: November 18, 2019 ###
### Date modified: July 07, 2020 ###
### Date last modified: September 02, 2020 ###
### This code is now updated to remove the contaminants found in the 2016 dataset ###
### Data from 2015, 2017 and 20... | /Data/prokaryotes/tests/prokary_pipeline_COVERAGE_BASED_REMOVING_LOW_COUNT.R | no_license | mawhal/Calvert_O-Connor_eelgrass | R | false | false | 11,604 | r | ### Prokaryotes pipeline phyloseq ###
### Author: Bianca Trevizan Segovia ###
### Date created: November 18, 2019 ###
### Date modified: July 07, 2020 ###
### Date last modified: September 02, 2020 ###
### This code is now updated to remove the contaminants found in the 2016 dataset ###
### Data from 2015, 2017 and 20... |
#! /bin/env Rscript
library(Biostrings)
library(ggplot2)
library(tidyverse)
library(openxlsx)
library(venneuler)
library(getopt)
current_dir = "/home/jwen/projects/qi/elba/code_NC/"
setwd(current_dir)
data_dir = paste(current_dir, "data/",sep="")
res_dir = paste(current_dir, "res/",sep="")
peak_dir = paste(data_... | /scripts/chipseq_merge_peaksets.R | no_license | jiayuwen/ELBA | R | false | false | 18,904 | r | #! /bin/env Rscript
library(Biostrings)
library(ggplot2)
library(tidyverse)
library(openxlsx)
library(venneuler)
library(getopt)
current_dir = "/home/jwen/projects/qi/elba/code_NC/"
setwd(current_dir)
data_dir = paste(current_dir, "data/",sep="")
res_dir = paste(current_dir, "res/",sep="")
peak_dir = paste(data_... |
# Addressing reviewer comments
# Sept 2020
library(data.table)
library(dplyr)
library(Matrix)
library(DropletUtils)
library(scran)
library(biomaRt)
library(scater)
library(vegan)
library(PCAtools)
library(cowplot)
library(ggplot2)
library(ggtext)
library(grid)
library(gridExtra)
# get data from Izar et al. 2020 - d... | /scripts/06_revisions.R | no_license | vicDRC/BCCJJL01_ovarian | R | false | false | 3,200 | r | # Addressing reviewer comments
# Sept 2020
library(data.table)
library(dplyr)
library(Matrix)
library(DropletUtils)
library(scran)
library(biomaRt)
library(scater)
library(vegan)
library(PCAtools)
library(cowplot)
library(ggplot2)
library(ggtext)
library(grid)
library(gridExtra)
# get data from Izar et al. 2020 - d... |
# Robert Dinterman
print(paste0("Started 1-USDA_Evaluation_Stata_Export at ", Sys.time()))
library(dplyr)
# Create a directory for the data
localDir <- "1-Organization/USDA_Evaluation"
if (!file.exists(localDir)) dir.create(localDir)
load("1-Organization/USDA_Evaluation/Final.Rda")
data %>%
group_by(zip, year, S... | /1-Organization/1-USDA_Evaluation_Stata_Export.R | no_license | yalunsu/test-counties | R | false | false | 1,794 | r | # Robert Dinterman
print(paste0("Started 1-USDA_Evaluation_Stata_Export at ", Sys.time()))
library(dplyr)
# Create a directory for the data
localDir <- "1-Organization/USDA_Evaluation"
if (!file.exists(localDir)) dir.create(localDir)
load("1-Organization/USDA_Evaluation/Final.Rda")
data %>%
group_by(zip, year, S... |
\name{sumry_continous}
\alias{sumry_continous}
\title{Summary of continuous variable
}
\description{
Function gives detailed Summary of continuous variable
}
\usage{
sumry_continous(cont_var_test)
}
\arguments{
\item{cont_var_test}{
cont_var_test: a Dataset that has only continous(numeric) variable
}... | /man/sumry_continous.Rd | no_license | cran/RDIDQ | R | false | false | 848 | rd | \name{sumry_continous}
\alias{sumry_continous}
\title{Summary of continuous variable
}
\description{
Function gives detailed Summary of continuous variable
}
\usage{
sumry_continous(cont_var_test)
}
\arguments{
\item{cont_var_test}{
cont_var_test: a Dataset that has only continous(numeric) variable
}... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/createModels.R
\name{replaceBodyTags}
\alias{replaceBodyTags}
\title{Replace Body Tags}
\usage{
replaceBodyTags(bodySection, bodyTags, initCollection)
}
\arguments{
\item{bodySection}{}
\item{bodyTags}{}
\item{initColle... | /man/replaceBodyTags.Rd | no_license | clbustos/MplusAutomation | R | false | false | 497 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/createModels.R
\name{replaceBodyTags}
\alias{replaceBodyTags}
\title{Replace Body Tags}
\usage{
replaceBodyTags(bodySection, bodyTags, initCollection)
}
\arguments{
\item{bodySection}{}
\item{bodyTags}{}
\item{initColle... |
with(a33ec5d63787c4760a0876ec8277ff991, {ROOT <- 'C:/semoss/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/f6ba5938-ef1b-4430-b7b0-261d1cc8174d';rm(list=ls())}); | /f6ba5938-ef1b-4430-b7b0-261d1cc8174d/R/Temp/aK86ek3rf8wqw.R | no_license | ayanmanna8/test | R | false | false | 183 | r | with(a33ec5d63787c4760a0876ec8277ff991, {ROOT <- 'C:/semoss/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/f6ba5938-ef1b-4430-b7b0-261d1cc8174d';rm(list=ls())}); |
# TODO: Add comment
#
# Author: Giorgio Spedicato
###############################################################################
# need to set up Rcpp calls
#CLASSES DEFINITIONS
setClass("lifetable", #classe lifetable
representation(x="numeric",lx="numeric",name="character"),
prototype(x=c(0,1,2,3),
lx=c... | /R/0_lifetableAndActuarialtableClassesAndMethods.R | no_license | biblioactuary/lifecontingencies | R | false | false | 8,097 | r | # TODO: Add comment
#
# Author: Giorgio Spedicato
###############################################################################
# need to set up Rcpp calls
#CLASSES DEFINITIONS
setClass("lifetable", #classe lifetable
representation(x="numeric",lx="numeric",name="character"),
prototype(x=c(0,1,2,3),
lx=c... |
# Read in the data from flat file,
# filtered to only load the rows matching date condition.
# Prefiltering with shell pipe is much more space efficient
# than loading the whole file followed by subsetting the frame.
data <- read.delim(pipe("head -n1 household_power_consumption.txt;
grep '^[1-... | /plot4.R | no_license | Josholith/ExData_Plotting1 | R | false | false | 1,649 | r | # Read in the data from flat file,
# filtered to only load the rows matching date condition.
# Prefiltering with shell pipe is much more space efficient
# than loading the whole file followed by subsetting the frame.
data <- read.delim(pipe("head -n1 household_power_consumption.txt;
grep '^[1-... |
/Stepic_2_Week_3_Practice.R | no_license | SENSBoD/Stepic_Basics-of-statistics | R | false | false | 8,554 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/androidenterprise_functions.R
\name{collections.update}
\alias{collections.update}
\title{Updates a collection.}
\usage{
collections.update(Collection, enterpriseId, collectionId)
}
\arguments{
\item{Collection}{The \link{Collection} object t... | /googleandroidenterprisev1.auto/man/collections.update.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 1,091 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/androidenterprise_functions.R
\name{collections.update}
\alias{collections.update}
\title{Updates a collection.}
\usage{
collections.update(Collection, enterpriseId, collectionId)
}
\arguments{
\item{Collection}{The \link{Collection} object t... |
#Assignment 7.3
#1. Create a box and whisker plot by class using mtcars dataset.
#Solution:
boxplot(mpg~cyl, data=mtcars,main= toupper("Fuel Consumption"), font.main=3,col= topo.colors(3), xlab="Number of Cylinders",
ylab="Miles per Gallon")
#or
boxplot(mpg~cyl,data=mtcars, main="Car Milage Data",xla... | /assignment-7.3.r | no_license | jaswanthkotni/assignment-7 | R | false | false | 373 | r | #Assignment 7.3
#1. Create a box and whisker plot by class using mtcars dataset.
#Solution:
boxplot(mpg~cyl, data=mtcars,main= toupper("Fuel Consumption"), font.main=3,col= topo.colors(3), xlab="Number of Cylinders",
ylab="Miles per Gallon")
#or
boxplot(mpg~cyl,data=mtcars, main="Car Milage Data",xla... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sweave_report_pathway.R
\name{CreatePathAnalDoc}
\alias{CreatePathAnalDoc}
\title{Create report of analyses (Met Pathway)}
\usage{
CreatePathAnalDoc(mSetObj = NA)
}
\arguments{
\item{mSetObj}{Input the name of the created mSetObj (see InitDat... | /man/CreatePathAnalDoc.Rd | permissive | xia-lab/MetaboAnalystR | R | false | true | 534 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sweave_report_pathway.R
\name{CreatePathAnalDoc}
\alias{CreatePathAnalDoc}
\title{Create report of analyses (Met Pathway)}
\usage{
CreatePathAnalDoc(mSetObj = NA)
}
\arguments{
\item{mSetObj}{Input the name of the created mSetObj (see InitDat... |
# Loesche ALLES
rm( list = ls( ) )
#setwd( "Juliane/Desktop/pv0116_neu/" )
setwd( "~/LIFE/life-for-postgraduates/JulianeWilz/data/" )
library(readxl)
library( dplyr )
library( ggplot2 )
library( GGally )
library( Hmisc )
library(dplyr)
library( openxlsx )
#daten <- read_excel( "PV0116_Arbeitsversion.xlsx" )
daten <... | /JulianeWilz/r/NeueFilterung220517.R | no_license | TPeschel/life-for-postgraduates | R | false | false | 6,292 | r | # Loesche ALLES
rm( list = ls( ) )
#setwd( "Juliane/Desktop/pv0116_neu/" )
setwd( "~/LIFE/life-for-postgraduates/JulianeWilz/data/" )
library(readxl)
library( dplyr )
library( ggplot2 )
library( GGally )
library( Hmisc )
library(dplyr)
library( openxlsx )
#daten <- read_excel( "PV0116_Arbeitsversion.xlsx" )
daten <... |
source('general_script.R')
#Extracting data
subsetNEI <- NEI[NEI$fips=="24510", ]
aggregatedTotalByYearAndType <- aggregate(Emissions ~ year + type, subsetNEI, sum)
#Plotting
png("plot3.png", width=640, height=480)
g <- ggplot(aggregatedTotalByYearAndType, aes(year, Emissions, color = type))
g <- g +
geom_line() +... | /plot3.R | no_license | rlondt/ExploratoryDataAnalysisProject2 | R | false | false | 742 | r | source('general_script.R')
#Extracting data
subsetNEI <- NEI[NEI$fips=="24510", ]
aggregatedTotalByYearAndType <- aggregate(Emissions ~ year + type, subsetNEI, sum)
#Plotting
png("plot3.png", width=640, height=480)
g <- ggplot(aggregatedTotalByYearAndType, aes(year, Emissions, color = type))
g <- g +
geom_line() +... |
\name{setup_called}
\alias{setup_called}
\title{
Sets up Statcast data to obtain called pitches
}
\description{
Sets up Statcast data to obtain called pitches
}
\usage{
setup_called(sc)
}
\arguments{
\item{sc}{
Statcast data frame
}
}
\value{
Statcast data frame for only the called pitches with new var... | /man/setup_called.Rd | no_license | bayesball/CalledStrike | R | false | false | 372 | rd | \name{setup_called}
\alias{setup_called}
\title{
Sets up Statcast data to obtain called pitches
}
\description{
Sets up Statcast data to obtain called pitches
}
\usage{
setup_called(sc)
}
\arguments{
\item{sc}{
Statcast data frame
}
}
\value{
Statcast data frame for only the called pitches with new var... |
#firstly read data. data should be in the current working directory
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#subset for the Baltimore City
baltimoreData <- subset(NEI, fips == "24510")
#calculate sum
totalBaltimore <- tapply(baltimoreData$Emissions, baltimoreData$year, su... | /plot2.R | no_license | mikesn922/exdata-data-NEI_data | R | false | false | 506 | r | #firstly read data. data should be in the current working directory
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#subset for the Baltimore City
baltimoreData <- subset(NEI, fips == "24510")
#calculate sum
totalBaltimore <- tapply(baltimoreData$Emissions, baltimoreData$year, su... |
#Chapter - 1 : Introduction
x = rnorm(5)
x
x1 <- rnorm(5)
x1
# I prefer = instead of <-
# List 1.1
age <- c(1,3,5,2,11,9,3,9,12,3)
age
weight <- c(4.4,5.3,7.2,5.2,8.5,7.3,6.0,10.4,10.2,6.1)
weight
mean(weight)
#[1] 7.06
sd(weight)
#[1] 2.077498
cor(age,weight)
#[1] 0.9075655
plot(age,weight)
#q() # quit
demo(g... | /bkRiA/chap01.R | no_license | dupadhyaya/dspgmsc2017 | R | false | false | 2,761 | r | #Chapter - 1 : Introduction
x = rnorm(5)
x
x1 <- rnorm(5)
x1
# I prefer = instead of <-
# List 1.1
age <- c(1,3,5,2,11,9,3,9,12,3)
age
weight <- c(4.4,5.3,7.2,5.2,8.5,7.3,6.0,10.4,10.2,6.1)
weight
mean(weight)
#[1] 7.06
sd(weight)
#[1] 2.077498
cor(age,weight)
#[1] 0.9075655
plot(age,weight)
#q() # quit
demo(g... |
#### ---- SPARK FUND CASE STUDY ---- ####
# Loading datasets
companies <- read.delim("companies.txt", stringsAsFactors = FALSE)
rounds <- read.csv("rounds2.csv", stringsAsFactors = FALSE)
mapping <- read.csv("mapping.csv", stringsAsFactors = FALSE, check.names = F)
str(companies)
require(dplyr)
glimpse... | /spark fund.R | no_license | shantam-srivastava/Spark-fund-Case-study | R | false | false | 9,082 | r |
#### ---- SPARK FUND CASE STUDY ---- ####
# Loading datasets
companies <- read.delim("companies.txt", stringsAsFactors = FALSE)
rounds <- read.csv("rounds2.csv", stringsAsFactors = FALSE)
mapping <- read.csv("mapping.csv", stringsAsFactors = FALSE, check.names = F)
str(companies)
require(dplyr)
glimpse... |
# Libraries ----
library(shiny)
library(shinydashboard)
library(ggplot2)
library(tidytext) # for transforming text
library(dplyr) # for data wrangling
library(ggwordcloud) # to render wordclouds
# default text
demo_text <- ""
# . dashboardPage ----
ui <- dashboardPage(
dashboardHeader(title = "Congratulations!"),... | /congrats/app.R | no_license | IharValovich/shiny_apps | R | false | false | 2,976 | r | # Libraries ----
library(shiny)
library(shinydashboard)
library(ggplot2)
library(tidytext) # for transforming text
library(dplyr) # for data wrangling
library(ggwordcloud) # to render wordclouds
# default text
demo_text <- ""
# . dashboardPage ----
ui <- dashboardPage(
dashboardHeader(title = "Congratulations!"),... |
#This script creates a function to test ridge regression
rrfun <- function(ti, df){
#Remove all values that cannot be used to predict
df$Date <- NULL
df$Depth.mean <- NULL
df$Width.mean <- NULL
df$Vertical.mean <- NULL
df <- na.omit(df)
#Create train and validate sets
#train.index <- sample(nrow(df), nro... | /rrfun.R | no_license | justinlboyer/avalanche | R | false | false | 1,480 | r | #This script creates a function to test ridge regression
rrfun <- function(ti, df){
#Remove all values that cannot be used to predict
df$Date <- NULL
df$Depth.mean <- NULL
df$Width.mean <- NULL
df$Vertical.mean <- NULL
df <- na.omit(df)
#Create train and validate sets
#train.index <- sample(nrow(df), nro... |
## Summarizes data.
## Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95%).
## dataframe: a data frame.
## measurevar: the name of a column that contains the variable to be summariezed
## groupvars: a vector containing names of columns that contain grouping var... | /plf1/TACL-2015-Vector-submission/learningcurves.R | no_license | BYU-NLP-Lab/Experiments | R | false | false | 28,329 | r | ## Summarizes data.
## Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95%).
## dataframe: a data frame.
## measurevar: the name of a column that contains the variable to be summariezed
## groupvars: a vector containing names of columns that contain grouping var... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "fri_c3_1000_10")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = ma... | /models/openml_fri_c3_1000_10/classification_binaryClass/c2730ddcd6a3910626abc7206f7f8e33/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 691 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "fri_c3_1000_10")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = ma... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/H5constants.R
\name{h5types}
\alias{h5types}
\title{These are all types that are used in HDF5}
\description{
HDF5 provides many native datatypes. These are all stored in the \code{h5types}
environment. An overview of all available types can b... | /man/h5types.Rd | permissive | hhoeflin/hdf5r | R | false | true | 558 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/H5constants.R
\name{h5types}
\alias{h5types}
\title{These are all types that are used in HDF5}
\description{
HDF5 provides many native datatypes. These are all stored in the \code{h5types}
environment. An overview of all available types can b... |
#!/usr/bin/env Rscript
##
## Copyright (C) 2016 Ezequiel Miron <eze.miron@bioch.ox.ac.uk>
##
## 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 3 of the License, or
## (at ... | /3chan/ro_scripts/S-phase/summaryd2b.R | no_license | ezemiron/Chain | R | false | false | 7,490 | r | #!/usr/bin/env Rscript
##
## Copyright (C) 2016 Ezequiel Miron <eze.miron@bioch.ox.ac.uk>
##
## 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 3 of the License, or
## (at ... |
library(ggplot2)
library(data.table)
library(reshape2)
library(dplyr)
load("suicides.rdata")
suicides$age <- as.factor(suicides$age)
all_suicides <- copy(suicides)
suicides <- suicides %>%
group_by(year, age, sex) %>%
mutate(deaths = sum(deaths))
# Make a line plot of suicides by age
# (year on the x axis... | /ggplot/ggplot_exercise.r | no_license | hayleyyounghubby/intro_to_r | R | false | false | 855 | r | library(ggplot2)
library(data.table)
library(reshape2)
library(dplyr)
load("suicides.rdata")
suicides$age <- as.factor(suicides$age)
all_suicides <- copy(suicides)
suicides <- suicides %>%
group_by(year, age, sex) %>%
mutate(deaths = sum(deaths))
# Make a line plot of suicides by age
# (year on the x axis... |
# Definindo o diretório de trabalho
setwd('Z:/FCD/BigDataRAzure/Cap22/Projeto1')
getwd() | /fraud-detection.R | no_license | edipo89/fraud-detection | R | false | false | 89 | r | # Definindo o diretório de trabalho
setwd('Z:/FCD/BigDataRAzure/Cap22/Projeto1')
getwd() |
/NoteBook_R/Vedio_Note_炼数成金/day_01_综合型案例.R | no_license | moss1225/R_practice_program_1 | R | false | false | 1,478 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/noise_method.R
\docType{methods}
\name{noise}
\alias{noise}
\alias{noise,DocumentTermMatrix-method}
\alias{noise,TermDocumentMatrix-method}
\alias{noise,character-method}
\alias{noise,textstat-method}
\title{detect noise}
\usage{
noise(.Objec... | /man/noise.Rd | no_license | stefan-mueller/polmineR | R | false | true | 1,603 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/noise_method.R
\docType{methods}
\name{noise}
\alias{noise}
\alias{noise,DocumentTermMatrix-method}
\alias{noise,TermDocumentMatrix-method}
\alias{noise,character-method}
\alias{noise,textstat-method}
\title{detect noise}
\usage{
noise(.Objec... |
# Copyright (c) 2020 Université catholique de Louvain Center for Operations Research and Econometrics (CORE) http://www.uclouvain.be
# Written by Pr Bart Jourquin, bart.jourquin@uclouvain.be
#
# A few convenience functions used in more than one script in this project
#
# Test if all the estimators are of the expected... | /_Utils.R | permissive | jourquin/Box-Cox-Lambdas-Heuristic | R | false | false | 7,115 | r | # Copyright (c) 2020 Université catholique de Louvain Center for Operations Research and Econometrics (CORE) http://www.uclouvain.be
# Written by Pr Bart Jourquin, bart.jourquin@uclouvain.be
#
# A few convenience functions used in more than one script in this project
#
# Test if all the estimators are of the expected... |
# Loading A1-1_pages.csv
pages_dataset<-read.csv("~/Desktop/Brandless/brandless_take_home_exercise_data/A1-1_pages.csv",header =TRUE)
# Top 10 Visited pages
top_10_visited_pages<-sqldf("SELECT count(path) as Count,Path from pages_dataset group by 2 order by 1 desc limit 10")
# Re-Ordering
top_10_visited_pages$path<... | /A1- Raw Tracks and Pages Data .r | no_license | cdaniel7/R | R | false | false | 2,969 | r |
# Loading A1-1_pages.csv
pages_dataset<-read.csv("~/Desktop/Brandless/brandless_take_home_exercise_data/A1-1_pages.csv",header =TRUE)
# Top 10 Visited pages
top_10_visited_pages<-sqldf("SELECT count(path) as Count,Path from pages_dataset group by 2 order by 1 desc limit 10")
# Re-Ordering
top_10_visited_pages$path<... |
#' @title Run Fisher's Method to combine p values
#'
#' @description Fisher's Method combines p values from different statistical models.
FishersMethod <- function(GOde, GOdm) {
# GOdm$P.DM <- GOdm$P.DE
# GOdm$P.DE <- NULL
GO_Combined <- dplyr::left_join(GOdm, GOde, by = c("Term", "Ont", "N"))
CombinedPVals ... | /R/FishersMethod.R | no_license | UofABioinformaticsHub/InteGRAPE | R | false | false | 548 | r | #' @title Run Fisher's Method to combine p values
#'
#' @description Fisher's Method combines p values from different statistical models.
FishersMethod <- function(GOde, GOdm) {
# GOdm$P.DM <- GOdm$P.DE
# GOdm$P.DE <- NULL
GO_Combined <- dplyr::left_join(GOdm, GOde, by = c("Term", "Ont", "N"))
CombinedPVals ... |
library("plyr")
library("stringr")
setwd("~/OneDrive/alignmentbench/")
load("supportfiles/gene_mapping.rda")
getKallisto <- function(sra, mapping){
file = paste0("quant/kallisto/",sra,"/abundance.tsv")
input = read.table(file, sep="\t", stringsAsFactors=F, header=T)[,c(1,4)]
input[,1] = gsub("\\.[0-9]$","... | /scripts/read_quantification.r | no_license | lachmann12/alignmentbenchmark | R | false | false | 7,763 | r | library("plyr")
library("stringr")
setwd("~/OneDrive/alignmentbench/")
load("supportfiles/gene_mapping.rda")
getKallisto <- function(sra, mapping){
file = paste0("quant/kallisto/",sra,"/abundance.tsv")
input = read.table(file, sep="\t", stringsAsFactors=F, header=T)[,c(1,4)]
input[,1] = gsub("\\.[0-9]$","... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/zeroenv.R
\name{search_path_trim}
\alias{search_path_trim}
\title{Restore Search Path to Bare Bones R Default}
\usage{
search_path_trim(keep = c("package:unitizer", "tools:rstudio"))
}
\arguments{
\item{keep}{character names of packag... | /man/search_path_trim.Rd | no_license | loerasg/unitizer | R | false | false | 1,218 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/zeroenv.R
\name{search_path_trim}
\alias{search_path_trim}
\title{Restore Search Path to Bare Bones R Default}
\usage{
search_path_trim(keep = c("package:unitizer", "tools:rstudio"))
}
\arguments{
\item{keep}{character names of packag... |
#=====================================================================
# R_packages_UCL_5
#
# Install 5th batch of add on R packages for UCL R instllations.
#
# June 2016
# Latest update October 2017
mainLib <- Sys.getenv ("RLIB_MAIN");
dbLib <- Sys.getenv ("RLIB_DB");
repros <- Sys.getenv ("REPROS");
mainLib;
dbLib;... | /files/R_UCL/R_packages_UCL_5.R | permissive | gh3orghiu/rcps-buildscripts | R | false | false | 6,940 | r | #=====================================================================
# R_packages_UCL_5
#
# Install 5th batch of add on R packages for UCL R instllations.
#
# June 2016
# Latest update October 2017
mainLib <- Sys.getenv ("RLIB_MAIN");
dbLib <- Sys.getenv ("RLIB_DB");
repros <- Sys.getenv ("REPROS");
mainLib;
dbLib;... |
## Produce the fourth required plot for Exploratory Data Anaylsis, Project 1
## Load and clean the data
## Subset to use only dates 2007-02-01 and 2007-02-02.
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, "electricConsumption.zip")
data <- read.tabl... | /plot4.R | no_license | ngerew/ExData_Plotting1 | R | false | false | 1,499 | r | ## Produce the fourth required plot for Exploratory Data Anaylsis, Project 1
## Load and clean the data
## Subset to use only dates 2007-02-01 and 2007-02-02.
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, "electricConsumption.zip")
data <- read.tabl... |
var <- 1
str(var)#gets the type of var
attributes(var) # if var is a vector, show the attributes
attr(var, 'attributeName')#get a specific attribute list from a var
as.matrix(var) #if var is a vector, it transforms the vector values + attributes into a matrix | /cheatsheet.r | no_license | LaurensRietveld/RGraphAnalysis | R | false | false | 263 | r | var <- 1
str(var)#gets the type of var
attributes(var) # if var is a vector, show the attributes
attr(var, 'attributeName')#get a specific attribute list from a var
as.matrix(var) #if var is a vector, it transforms the vector values + attributes into a matrix |
DESyn<-function(data,group){
geneid<-data[,1]
obs<-as.matrix(data[,-1])
repli1<-sum(group==0)
repli2<-sum(group==1)
cc<-dim(obs)[1]
###################################LRT test######################################################################
lrt.pvalue<-c(NA)
for (i in 1:cc){
if (all(obs[i,]==0)) {loglik0.... | /DESyn.R | no_license | cmrf7/DESyn | R | false | false | 2,553 | r | DESyn<-function(data,group){
geneid<-data[,1]
obs<-as.matrix(data[,-1])
repli1<-sum(group==0)
repli2<-sum(group==1)
cc<-dim(obs)[1]
###################################LRT test######################################################################
lrt.pvalue<-c(NA)
for (i in 1:cc){
if (all(obs[i,]==0)) {loglik0.... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/SIBER.R
\docType{package}
\name{SIBER}
\alias{SIBER}
\alias{SIBER-package}
\title{SIBER: A package for fitting Bayesian Ellipses to Stable Isotope Data}
\description{
The SIBER package provides tools for fitting multivariate normal
di... | /man/SIBER.Rd | no_license | andrewcparnell/SIBER | R | false | false | 635 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/SIBER.R
\docType{package}
\name{SIBER}
\alias{SIBER}
\alias{SIBER-package}
\title{SIBER: A package for fitting Bayesian Ellipses to Stable Isotope Data}
\description{
The SIBER package provides tools for fitting multivariate normal
di... |
##----------------------------------------------------------------------------------##
##--- SIMPLE LINEAR REGRESSION MODEL building ------##
##----------------------------------------------------------------------------------##
##--- Step 1: Clear environment variables ------------------------------------------##
... | /Simple_linear_Regression.R | no_license | sumneema/ML | R | false | false | 4,393 | r |
##----------------------------------------------------------------------------------##
##--- SIMPLE LINEAR REGRESSION MODEL building ------##
##----------------------------------------------------------------------------------##
##--- Step 1: Clear environment variables ------------------------------------------##
... |
library(stringr)
library(rlang)
library(dplyr)
library(purrr)
function_list <- lsf.str("package:locatr")
fmt_functions <- function_list %>% .[str_detect(.,"^fmt_") & !str_detect(.,"single")] %>% sort()
tidyxl_df <-
locatr_example("worked-examples.xlsx") %>% xlsx_cells_fmt(sheets = "pivot-annotations")
fmt_functi... | /inst/extdata/data-raw/fmt_functions_test.R | permissive | jimsforks/locatr | R | false | false | 582 | r |
library(stringr)
library(rlang)
library(dplyr)
library(purrr)
function_list <- lsf.str("package:locatr")
fmt_functions <- function_list %>% .[str_detect(.,"^fmt_") & !str_detect(.,"single")] %>% sort()
tidyxl_df <-
locatr_example("worked-examples.xlsx") %>% xlsx_cells_fmt(sheets = "pivot-annotations")
fmt_functi... |
\encoding{UTF-8}
\name{bipartite-package}
\alias{bipartite-package}
\alias{bipartite}
\docType{package}
\title{
Analysis of bipartite ecological webs
}
\description{
Bipartite provides functions to visualise webs and calculate a series of indices commonly used to describe pattern in (ecological) networks, a.k.a. we... | /bipartite/man/bipartite-package.Rd | no_license | efcaguab/bipartite | R | false | false | 28,074 | rd | \encoding{UTF-8}
\name{bipartite-package}
\alias{bipartite-package}
\alias{bipartite}
\docType{package}
\title{
Analysis of bipartite ecological webs
}
\description{
Bipartite provides functions to visualise webs and calculate a series of indices commonly used to describe pattern in (ecological) networks, a.k.a. we... |
/01-Primer Semestre/Inferencia Estadística/Tareas/Tarea 2/Ejercicios en R/TAREA2 EJERCICIO5 Hairo Belmonte.R | no_license | nicoletron770/Maestria-Computo-Estadistico | R | false | false | 4,102 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spatial_enrichment.R
\name{createSpatialEnrich}
\alias{createSpatialEnrich}
\title{createSpatialEnrich}
\usage{
createSpatialEnrich(
gobject,
enrich_method = c("PAGE", "rank", "hypergeometric"),
sign_matrix,
expression_values = c("nor... | /doc/createSpatialEnrich.Rd | no_license | bernard2012/spatialgiotto_web | R | false | true | 1,808 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spatial_enrichment.R
\name{createSpatialEnrich}
\alias{createSpatialEnrich}
\title{createSpatialEnrich}
\usage{
createSpatialEnrich(
gobject,
enrich_method = c("PAGE", "rank", "hypergeometric"),
sign_matrix,
expression_values = c("nor... |
library(readxl)
library(writexl)
library(stringr)
library(httr)
library(rvest)
library(xml2)
# Remember to set work directory to read/write desired excel file if not using this cloud service
# check if the excel file is uploaded
filename = NULL
for(f in list.files(path = "/cloud/project")){
if(str_detect(f, "xls"... | /Santa Clara County Project/Santa Clara Upwork .R | no_license | gbajsingh/Upwork-jobs | R | false | false | 3,480 | r | library(readxl)
library(writexl)
library(stringr)
library(httr)
library(rvest)
library(xml2)
# Remember to set work directory to read/write desired excel file if not using this cloud service
# check if the excel file is uploaded
filename = NULL
for(f in list.files(path = "/cloud/project")){
if(str_detect(f, "xls"... |
# Load libraries ---------------------------------------------------------------
library(ggbeeswarm)
library(tidyverse)
library(lubridate)
library(statgl)
library(plotly)
# Import data ------------------------------------------------------------------
passwords_raw <-
readr::read_csv('https://raw.githubuserconten... | /wk03_passwords/passwords.R | no_license | reksiandari/tidytuesday | R | false | false | 3,051 | r | # Load libraries ---------------------------------------------------------------
library(ggbeeswarm)
library(tidyverse)
library(lubridate)
library(statgl)
library(plotly)
# Import data ------------------------------------------------------------------
passwords_raw <-
readr::read_csv('https://raw.githubuserconten... |
run_analysis <- function(x){
#Variables used in this function:
#features and features2 - list of feature labels for the tidy data set, and a vectorized version
#activities and activies2 - list of activity labesl for the tidy data, and a vectorized version
#subject_test, x_text, y_test - data tables from t... | /run_analysis.R | no_license | simonswes/GandCData_CourseProject | R | false | false | 3,654 | r | run_analysis <- function(x){
#Variables used in this function:
#features and features2 - list of feature labels for the tidy data set, and a vectorized version
#activities and activies2 - list of activity labesl for the tidy data, and a vectorized version
#subject_test, x_text, y_test - data tables from t... |
#' @export
initCams <- function(cameras) {
lapply(cameras, function(x) {
RCurl::getURL(paste0("http://", x, "/cam.cgi?mode=camcmd&value=recmode"))
})
NULL
}
#' @export
grabPictures <- function(cameras) {
lapply(cameras, function(x) {
RCurl::getURL(paste0("http://", x, "/cam.cgi?mode=camcmd&value=capt... | /R/camera.R | no_license | swarm-lab/observRlumix | R | false | false | 342 | r | #' @export
initCams <- function(cameras) {
lapply(cameras, function(x) {
RCurl::getURL(paste0("http://", x, "/cam.cgi?mode=camcmd&value=recmode"))
})
NULL
}
#' @export
grabPictures <- function(cameras) {
lapply(cameras, function(x) {
RCurl::getURL(paste0("http://", x, "/cam.cgi?mode=camcmd&value=capt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{check_depreciated_args}
\alias{check_depreciated_args}
\title{check depreciated arguments}
\usage{
check_depreciated_args(blacklist = NULL, ...)
}
\arguments{
\item{blacklist}{A character vector of variable names.}
\item{...}{A... | /man/check_depreciated_args.Rd | permissive | sailfish009/proteoQ | R | false | true | 400 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{check_depreciated_args}
\alias{check_depreciated_args}
\title{check depreciated arguments}
\usage{
check_depreciated_args(blacklist = NULL, ...)
}
\arguments{
\item{blacklist}{A character vector of variable names.}
\item{...}{A... |
x = "Foo"
y = "Bar"
# x + y
# Error in x + y : non-numeric argument to binary operator
# Execution halted
z = paste(x, y, sep="")
z # FooBar
length(z) # 1
# Join elements of a vector
fruits = c("Apple", "Banana")
q = paste(fruits, collapse ="-")
q # Apple-Banana
# join elements of a numeric vector
numbers ... | /r/examples/basics/concatenate_strings.R | no_license | szabgab/slides | R | false | false | 413 | r | x = "Foo"
y = "Bar"
# x + y
# Error in x + y : non-numeric argument to binary operator
# Execution halted
z = paste(x, y, sep="")
z # FooBar
length(z) # 1
# Join elements of a vector
fruits = c("Apple", "Banana")
q = paste(fruits, collapse ="-")
q # Apple-Banana
# join elements of a numeric vector
numbers ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in Rtmph3UnEb/file63ef10b78e6c
\name{nimbleFunction}
\alias{nimbleFunction}
\title{create a nimbleFunction}
\usage{
nimbleFunction(setup = NULL, run = function() { }, methods = list(),
globalSetup = NULL, contains = NULL, name = NA,
wh... | /packages/nimble/man/nimbleFunction.Rd | no_license | nxdao2000/nimble | R | false | false | 2,524 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in Rtmph3UnEb/file63ef10b78e6c
\name{nimbleFunction}
\alias{nimbleFunction}
\title{create a nimbleFunction}
\usage{
nimbleFunction(setup = NULL, run = function() { }, methods = list(),
globalSetup = NULL, contains = NULL, name = NA,
wh... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{end_year_population_totals_long}
\alias{end_year_population_totals_long}
\title{End-year stock population figures for forcibly displaced displaced and stateless persons - Long Format}
\format{
A data frame with 153... | /man/end_year_population_totals_long.Rd | no_license | Naskov/unhcrdatapackage | R | false | true | 1,112 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{end_year_population_totals_long}
\alias{end_year_population_totals_long}
\title{End-year stock population figures for forcibly displaced displaced and stateless persons - Long Format}
\format{
A data frame with 153... |
## Manoela 16 November 2020
## Script to arrange VIIRS data + land cover classes + Protected Areas + Land tenure + States and Municipalities + Precipitation + Immediate regions
## Data:
## VIIRS_LCC and Defo
## VIIRS LT
## VIIRS PA
## VIIRS States and Municipalities
## VIIRS immediate regions (24Sep)
## updating on ... | /1_AllDataManag_VIIRS_all_years_separately.R | no_license | ManoelaMachadoEco/EmergencyPoliciesFireAmazon | R | false | false | 11,201 | r | ## Manoela 16 November 2020
## Script to arrange VIIRS data + land cover classes + Protected Areas + Land tenure + States and Municipalities + Precipitation + Immediate regions
## Data:
## VIIRS_LCC and Defo
## VIIRS LT
## VIIRS PA
## VIIRS States and Municipalities
## VIIRS immediate regions (24Sep)
## updating on ... |
#' Data from Brennan
#'
#' A dataset containing 4 variables: Person, Item, Occasion, & Score
#'
#' @format A data frame with 80 rows and 4 variables:
#' \describe{
#' \item{Person}{Person ID}
#' \item{Item}{Item ID}
#' \item{Occasion}{Occasion ID}
#' \item{Score}{Given score}
#' }
"Brennan.3.1"
| /R/data.R | permissive | alanhuebner10/Gboot | R | false | false | 305 | r | #' Data from Brennan
#'
#' A dataset containing 4 variables: Person, Item, Occasion, & Score
#'
#' @format A data frame with 80 rows and 4 variables:
#' \describe{
#' \item{Person}{Person ID}
#' \item{Item}{Item ID}
#' \item{Occasion}{Occasion ID}
#' \item{Score}{Given score}
#' }
"Brennan.3.1"
|
# Single server -----------------------------------------------------------
T = 8
lambda = 12
mu = 1/5
sigma = 1/80
t = 0
na = 0
nd = 0
ss = 0
ta = rexp(1, rate = lambda)
td = Inf
n = 0
arrivals = numeric(2 * ceiling (T * lambda))
departures = numeric(2 * ceiling (T * lambda))
next_dep = function (){
max(0, rnorm(1,... | /Discrete Events Approach.R | no_license | mirsadeghi13/Simulation-98-2 | R | false | false | 3,211 | r |
# Single server -----------------------------------------------------------
T = 8
lambda = 12
mu = 1/5
sigma = 1/80
t = 0
na = 0
nd = 0
ss = 0
ta = rexp(1, rate = lambda)
td = Inf
n = 0
arrivals = numeric(2 * ceiling (T * lambda))
departures = numeric(2 * ceiling (T * lambda))
next_dep = function (){
max(0, rnorm(1,... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{h2o.scale}
\alias{h2o.scale}
\alias{scale.H2OFrame}
\title{Scaling and Centering of an H2OFrame}
\usage{
h2o.scale(x, center = TRUE, scale = TRUE)
\method{scale}{H2OFrame}(x, center = TRUE, scale = TRUE)
}
\arguments{
\item{x}{An H2OFrame object.}
\item{cente... | /h2o_3.10.4.4/h2o/man/h2o.scale.Rd | no_license | JoeyChiese/gitKraken_test | R | false | false | 899 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{h2o.scale}
\alias{h2o.scale}
\alias{scale.H2OFrame}
\title{Scaling and Centering of an H2OFrame}
\usage{
h2o.scale(x, center = TRUE, scale = TRUE)
\method{scale}{H2OFrame}(x, center = TRUE, scale = TRUE)
}
\arguments{
\item{x}{An H2OFrame object.}
\item{cente... |
# mimic relevant part of .Rmd state ---------------------------------------
cat("\n")
# code chunk --------------------------------------------------------------
wait <- function(seconds = 2) {Sys.sleep(seconds)}
send_cat_threat <- function() {
cat("Dead girls walking.\n"); wait()
cat("--A.\n")
}
send_cat_thre... | /_site/posts/2021-04-18_pretty-little-clis/source/cat-example.R | no_license | jake-wittman/distill-blog | R | false | false | 325 | r |
# mimic relevant part of .Rmd state ---------------------------------------
cat("\n")
# code chunk --------------------------------------------------------------
wait <- function(seconds = 2) {Sys.sleep(seconds)}
send_cat_threat <- function() {
cat("Dead girls walking.\n"); wait()
cat("--A.\n")
}
send_cat_thre... |
myfunction <- function(x){
x <- rnorm(100)
mean(x)
} | /R Programming/myfunction.R | no_license | studoma/datasciencecoursera | R | false | false | 56 | r | myfunction <- function(x){
x <- rnorm(100)
mean(x)
} |
# caluclate BLUPs on the rlog_clean data,
# may need further filtering on n% zero values, but can subset them from BLUP results
########################
align<-"hisat"
transf<-"rlog"
#########################
# reads_cutoff<-2 # 1 or 2 for 1M (2M) cutoff: reads per library
counts_1<-read.table(paste("/workdir/ml2498... | /GWAS_TWAS_gc_code/2.BLUP_combGeneExp.R | no_license | GoreLab/Maize_leaf_cuticle | R | false | false | 15,534 | r | # caluclate BLUPs on the rlog_clean data,
# may need further filtering on n% zero values, but can subset them from BLUP results
########################
align<-"hisat"
transf<-"rlog"
#########################
# reads_cutoff<-2 # 1 or 2 for 1M (2M) cutoff: reads per library
counts_1<-read.table(paste("/workdir/ml2498... |
library(shiny)
library(sf)
library(dplyr)
library(ggplot2)
library(rsconnect)
setwd("C:/Users/chris/Desktop/term project/R 프로젝트/Rshiny")
runApp("project_rshiny") | /R-project/Rshiny/project_rshiny/app.R | no_license | christy4526/KPC_ai_class | R | false | false | 179 | r | library(shiny)
library(sf)
library(dplyr)
library(ggplot2)
library(rsconnect)
setwd("C:/Users/chris/Desktop/term project/R 프로젝트/Rshiny")
runApp("project_rshiny") |
testit::test_pkg('pagedown', 'test-cran')
| /tests/test-cran.R | permissive | rstudio/pagedown | R | false | false | 42 | r | testit::test_pkg('pagedown', 'test-cran')
|
# titanic is avaliable in your workspace
# Check out the structure of titanic
str(titanic)
# Use ggplot() for the first instruction
#install.packages("ggplot2")
library(ggplot2)
ggplot(titanic,aes(x = factor(Pclass), fill = factor(Sex))) +
geom_bar(position = "dodge")
# Use ggplot() for the second instruction
ggp... | /Titanic.R | no_license | nouraAbuKhamiss/Foundations-of-Data-Science | R | false | false | 700 | r | # titanic is avaliable in your workspace
# Check out the structure of titanic
str(titanic)
# Use ggplot() for the first instruction
#install.packages("ggplot2")
library(ggplot2)
ggplot(titanic,aes(x = factor(Pclass), fill = factor(Sex))) +
geom_bar(position = "dodge")
# Use ggplot() for the second instruction
ggp... |
library(ggplot2)
library(reshape2)
library(dplyr) # required for arrange()
library(colorspace)
library(viridis)
library(maps) # for the state map data
library(mapproj)
murder_rates <- read.csv(file = 'MurderRate.csv')
murder_rates$state <- tolower(murder_rates$state)
states_map<-map_data("state") #extracts data from ... | /Homework/Color/USArrests.R | no_license | TobyJChappell/CS_710 | R | false | false | 1,165 | r | library(ggplot2)
library(reshape2)
library(dplyr) # required for arrange()
library(colorspace)
library(viridis)
library(maps) # for the state map data
library(mapproj)
murder_rates <- read.csv(file = 'MurderRate.csv')
murder_rates$state <- tolower(murder_rates$state)
states_map<-map_data("state") #extracts data from ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cvCovEst.R
\name{cvCovEst}
\alias{cvCovEst}
\title{Cross-Validated Covariance Matrix Estimator Selector}
\usage{
cvCovEst(
dat,
estimators = c(linearShrinkEst, thresholdingEst, sampleCovEst),
estimator_params = list(linearShrinkEst = li... | /man/cvCovEst.Rd | permissive | PaplomatasP/cvCovEst | R | false | true | 3,791 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cvCovEst.R
\name{cvCovEst}
\alias{cvCovEst}
\title{Cross-Validated Covariance Matrix Estimator Selector}
\usage{
cvCovEst(
dat,
estimators = c(linearShrinkEst, thresholdingEst, sampleCovEst),
estimator_params = list(linearShrinkEst = li... |
# EDA-CLU-Distribution_Based.R
#
# Purpose: A Bioinformatics Course:
# R code accompanying the EDA-CLU-Distribution Based unit.
#
# Version: 0.1
#
# Date: 2017 10 14
# Author: Marcus Chiam
#
# Versions:
# 0.1 Learning unit for the EDA-CLU-Distribution_Based section.
#
# TODO:
# 1. In... | /EDA-CLU-Distribution_Based.R | no_license | hyginn/BCB410-DataScience | R | false | false | 10,680 | r | # EDA-CLU-Distribution_Based.R
#
# Purpose: A Bioinformatics Course:
# R code accompanying the EDA-CLU-Distribution Based unit.
#
# Version: 0.1
#
# Date: 2017 10 14
# Author: Marcus Chiam
#
# Versions:
# 0.1 Learning unit for the EDA-CLU-Distribution_Based section.
#
# TODO:
# 1. In... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.