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 |
|---|---|---|---|---|---|---|---|---|---|
# ################################################################# #
#### Filtering Data ####
# ################################################################# #
# ----------------------------------------------------------------- #
#---- #1. 4 ways to select rows ... | /Week2/LectureCode/saturday/part1b_columnfiltering.R | no_license | Fosu-Tony/Data_Smart_Science | R | false | false | 1,795 | r |
# ################################################################# #
#### Filtering Data ####
# ################################################################# #
# ----------------------------------------------------------------- #
#---- #1. 4 ways to select rows ... |
testlist <- list(x = structure(c(2.31584307392677e+77, 6.55736417819481e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist)
str(result... | /multivariance/inst/testfiles/doubleCenterBiasCorrected/AFL_doubleCenterBiasCorrected/doubleCenterBiasCorrected_valgrind_files/1613140799-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 321 | r | testlist <- list(x = structure(c(2.31584307392677e+77, 6.55736417819481e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist)
str(result... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getEstimator.R
\name{getEstimator}
\alias{getEstimator}
\title{extract the posterior mean of the parameters}
\usage{
getEstimator(object, estimator = "gamma", Pmax = 0, beta.type = "marginal")
}
\arguments{
\item{object}{an object of class \c... | /BayesSUR/man/getEstimator.Rd | no_license | akhikolla/ClusterTests | R | false | true | 1,790 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getEstimator.R
\name{getEstimator}
\alias{getEstimator}
\title{extract the posterior mean of the parameters}
\usage{
getEstimator(object, estimator = "gamma", Pmax = 0, beta.type = "marginal")
}
\arguments{
\item{object}{an object of class \c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MapSchedule.R
\name{mapSchedule}
\alias{mapSchedule}
\title{Data Parallel Scheduler}
\usage{
mapSchedule(graph)
}
\arguments{
\item{graph}{\linkS4class{TaskGraph}}
}
\description{
DEPRECATED. Use scheduleDataParallel instead.
}
\details{
This... | /man/mapSchedule.Rd | no_license | jfontestad/makeParallel | R | false | true | 2,566 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MapSchedule.R
\name{mapSchedule}
\alias{mapSchedule}
\title{Data Parallel Scheduler}
\usage{
mapSchedule(graph)
}
\arguments{
\item{graph}{\linkS4class{TaskGraph}}
}
\description{
DEPRECATED. Use scheduleDataParallel instead.
}
\details{
This... |
###===============================###===============================###
### Guillaume Evin
### 19/05/2017, Grenoble
### IRSTEA
### guillaume.evin@irstea.fr
###
### Provide utilities for the estimation and simulation of the GWex
### multi-site temperature model.
###===============================###===========... | /R/GWexTemp_lib.r | no_license | guillaumeevin/GWEX | R | false | false | 20,909 | r | ###===============================###===============================###
### Guillaume Evin
### 19/05/2017, Grenoble
### IRSTEA
### guillaume.evin@irstea.fr
###
### Provide utilities for the estimation and simulation of the GWex
### multi-site temperature model.
###===============================###===========... |
# read_questionnaires.R
################# libraries #########################
# auxiliar library for "smartbind" method
library("gtools", lib.loc="~/R/x86_64-pc-linux-gnu-library/3.3")
################## functions ##########################
read_questionnaire <- function(route, className) {
# Reads pre ... | /src/read_questionnaires.R | no_license | crisal24/data-mining-gla | R | false | false | 4,554 | r | # read_questionnaires.R
################# libraries #########################
# auxiliar library for "smartbind" method
library("gtools", lib.loc="~/R/x86_64-pc-linux-gnu-library/3.3")
################## functions ##########################
read_questionnaire <- function(route, className) {
# Reads pre ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.globalaccelerator_operations.R
\name{create_listener}
\alias{create_listener}
\title{Create a listener to process inbound connections from clients to an accelerator}
\usage{
create_listener(AcceleratorArn, PortRanges, Protocol,
ClientA... | /service/paws.globalaccelerator/man/create_listener.Rd | permissive | CR-Mercado/paws | R | false | true | 2,598 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.globalaccelerator_operations.R
\name{create_listener}
\alias{create_listener}
\title{Create a listener to process inbound connections from clients to an accelerator}
\usage{
create_listener(AcceleratorArn, PortRanges, Protocol,
ClientA... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mods.R
\name{post_abstain_mod}
\alias{post_abstain_mod}
\title{Abstain a mod}
\usage{
post_abstain_mod(game_domain_name, mod_id, version)
}
\arguments{
\item{game_domain_name}{A character. Game domain to get the recent mod updates for.}
\ite... | /man/post_abstain_mod.Rd | permissive | KoderKow/nexusmodsr | R | false | true | 783 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mods.R
\name{post_abstain_mod}
\alias{post_abstain_mod}
\title{Abstain a mod}
\usage{
post_abstain_mod(game_domain_name, mod_id, version)
}
\arguments{
\item{game_domain_name}{A character. Game domain to get the recent mod updates for.}
\ite... |
# Written by: Kelvin Abrokwa-Johnson
# Admissions Rate Line Chart
setwd('/users/kelvinabrokwa/documents/repositories/wm-stats-blog/admissions/kelvin/final post') # Make sure to change this working directory to fit your computer
library(googleVis)
raw = read.csv('agg_data_4.csv', header=TRUE, check.names=FALSE)
ye... | /admissions/Kelvin/Final Post/adm_rate.R | no_license | kelvinabrokwa/wm-stats-blog | R | false | false | 1,519 | r | # Written by: Kelvin Abrokwa-Johnson
# Admissions Rate Line Chart
setwd('/users/kelvinabrokwa/documents/repositories/wm-stats-blog/admissions/kelvin/final post') # Make sure to change this working directory to fit your computer
library(googleVis)
raw = read.csv('agg_data_4.csv', header=TRUE, check.names=FALSE)
ye... |
select_state <- function(df){
state_df <- df %>%
filter(sch_id == 999) %>% # filter for state id number
select(-sch_name) %>% # this is redudndant - just reads "state total"
mutate(dist_name = "State") # make this label consistent
return(state_df)
}
select_dist <- function(df){
dist_df <- df %>%
... | /raw_data/select_level.R | no_license | Kaustuv2809/kysrc | R | false | false | 694 | r | select_state <- function(df){
state_df <- df %>%
filter(sch_id == 999) %>% # filter for state id number
select(-sch_name) %>% # this is redudndant - just reads "state total"
mutate(dist_name = "State") # make this label consistent
return(state_df)
}
select_dist <- function(df){
dist_df <- df %>%
... |
print ("This file created in R studio")
Print ("Now lives on GitHub") | /Testing.R | no_license | BhavarthShah/Test-Repository | R | false | false | 70 | r | print ("This file created in R studio")
Print ("Now lives on GitHub") |
\name{alpha}
\docType{data}
\alias{alpha}
\encoding{UTF-8}
\title{Genetic Components of Alcoholism}
\description{
Levels of expressed alpha synuclein mRNA in three groups of allele lengths of
NACP-REP1.
}
\usage{alpha}
\format{
A data frame with 97 observations on 2 variables.
\describe{
\item{\code{alength... | /man/alpha.Rd | no_license | cran/coin | R | false | false | 2,636 | rd | \name{alpha}
\docType{data}
\alias{alpha}
\encoding{UTF-8}
\title{Genetic Components of Alcoholism}
\description{
Levels of expressed alpha synuclein mRNA in three groups of allele lengths of
NACP-REP1.
}
\usage{alpha}
\format{
A data frame with 97 observations on 2 variables.
\describe{
\item{\code{alength... |
getTimeID = function(tt, n, isRandom){
ni = numeric(n)
tjID = ni
if(isRandom == 1){
for(i in 1:n){
ni[i] = sum(!is.na(tt[i,]))
if(ni[i] > 1)
tjID[i] = sample(1:ni[i],1) #find random index of random time point to be used in the CV prediction par
... | /R/getTimeID.R | no_license | cran/PACE | R | false | false | 533 | r | getTimeID = function(tt, n, isRandom){
ni = numeric(n)
tjID = ni
if(isRandom == 1){
for(i in 1:n){
ni[i] = sum(!is.na(tt[i,]))
if(ni[i] > 1)
tjID[i] = sample(1:ni[i],1) #find random index of random time point to be used in the CV prediction par
... |
#' Create a protocol template for the study
#'
#' @details
#' This function will create a template protocol
#'
#' @param outputLocation Directory location where you want the protocol written to
#' @export
createPlpProtocol <- function(outputLocation = getwd()){
predictionAnalysisListFile <- system.file("setti... | /AbxBetterChoice/ABCciprofloxacin/R/createPlpProtocol.R | no_license | ABMI/AbxBetterChoice | R | false | false | 52,104 | r | #' Create a protocol template for the study
#'
#' @details
#' This function will create a template protocol
#'
#' @param outputLocation Directory location where you want the protocol written to
#' @export
createPlpProtocol <- function(outputLocation = getwd()){
predictionAnalysisListFile <- system.file("setti... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats-lm-tidiers.R
\name{lm_tidiers}
\alias{lm_tidiers}
\alias{tidy.lm}
\alias{tidy.summary.lm}
\alias{augment.lm}
\alias{glance.lm}
\alias{glance.summary.lm}
\title{Tidying methods for a linear model}
\usage{
\method{tidy}{lm}(x, conf.int = ... | /man/lm_tidiers.Rd | no_license | Wandrys-dev/broom | R | false | true | 7,071 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats-lm-tidiers.R
\name{lm_tidiers}
\alias{lm_tidiers}
\alias{tidy.lm}
\alias{tidy.summary.lm}
\alias{augment.lm}
\alias{glance.lm}
\alias{glance.summary.lm}
\title{Tidying methods for a linear model}
\usage{
\method{tidy}{lm}(x, conf.int = ... |
## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(
cache = FALSE,
cache.lazy = FALSE,
tidy = TRUE
)
## ----Libraries, echo=TRUE, message=FALSE, warning=FALSE------------------
library(tidyverse)
library(ggplot2)
library(Matrix)
library(Rmisc)
library(ggforce)
libr... | /Analysis/test_dplyr.R | no_license | ghadaabdelhady/HumanPilot | R | false | false | 13,412 | r | ## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(
cache = FALSE,
cache.lazy = FALSE,
tidy = TRUE
)
## ----Libraries, echo=TRUE, message=FALSE, warning=FALSE------------------
library(tidyverse)
library(ggplot2)
library(Matrix)
library(Rmisc)
library(ggforce)
libr... |
/projeto_04-AnaliseDeRiscoDeCredito/AnaliseRiscoCredito.R | no_license | 3Thiago/DataScienceAcademy-FormacaoCientistaDeDados | R | false | false | 3,407 | r | ||
library(shiny)
library(shinyjs)
library(tm)
library(dplyr)
library(ggplot2)
library(R.utils)
library(stringr)
setwd("~/RProg/DSSCapstone")
ngrams <- readRDS('ngrams.RDA')
stopwordsProfane <- "2g1c, 2 girls 1 cup, acrotomophilia, alabama hot pocket, alaskan pipeline, anal, anilingus, anus, apeshit, arsehole, ass, assh... | /server.R | no_license | asadowns/DSSCapstone | R | false | false | 6,675 | r | library(shiny)
library(shinyjs)
library(tm)
library(dplyr)
library(ggplot2)
library(R.utils)
library(stringr)
setwd("~/RProg/DSSCapstone")
ngrams <- readRDS('ngrams.RDA')
stopwordsProfane <- "2g1c, 2 girls 1 cup, acrotomophilia, alabama hot pocket, alaskan pipeline, anal, anilingus, anus, apeshit, arsehole, ass, assh... |
library(tidyverse)
library(corrplot)
library(ggplot2)
vinos <- read.csv("Datasets/0-Descargados/winequality-red.csv")
v <- cor(vinos)
corrplot(v)
view(vinos)
##########################################################
#################### Regresion Lineal ####################
########################################... | /Proyecto/Codigo/5 - Modelados.R | no_license | Jireh01/AdminInfo | R | false | false | 8,309 | r | library(tidyverse)
library(corrplot)
library(ggplot2)
vinos <- read.csv("Datasets/0-Descargados/winequality-red.csv")
v <- cor(vinos)
corrplot(v)
view(vinos)
##########################################################
#################### Regresion Lineal ####################
########################################... |
# Do different relevant plots for temperature.
#
#
# Written by Adrian Dragulescu on 4-Jun-2004
plot.hist.temp <- function(save, options){
save$plots <- 1
setwd(save$dir$calib)
options$filename <- paste("parms.",options$airport.name,".Rdata",sep="")
load(options$filename)
#-----------------------------------------... | /R Extension/RMG/Models/Temperature/plot.hist.temp.R | no_license | uhasan1/QLExtension-backup | R | false | false | 7,093 | r | # Do different relevant plots for temperature.
#
#
# Written by Adrian Dragulescu on 4-Jun-2004
plot.hist.temp <- function(save, options){
save$plots <- 1
setwd(save$dir$calib)
options$filename <- paste("parms.",options$airport.name,".Rdata",sep="")
load(options$filename)
#-----------------------------------------... |
/R/splash.point.R | no_license | lhmet-forks/rsplash | R | false | false | 25,650 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_paths.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{edit_r_environ}
\title{Objects exported from other packages}
\keyword{internal}
\description{
These objects are imported from other packages. Follow the links
below to see... | /fuzzedpackages/m2r/man/reexports.Rd | no_license | akhikolla/testpackages | R | false | true | 414 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_paths.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{edit_r_environ}
\title{Objects exported from other packages}
\keyword{internal}
\description{
These objects are imported from other packages. Follow the links
below to see... |
#' Efficient parallel lapply using a SLURM cluster
#'
#' An easy-to-use form of lapply that emulates parallelization using a SLURM cluster.
#'
#' Mimics the functionality of lapply but implemented
#' in a way that iterations can be submmitted as one or more individual
#' jobs to a SLURM cluster.
#' Each job batch, err... | /R/superApply.R | no_license | nemobis/rSubmitter | R | false | false | 15,471 | r | #' Efficient parallel lapply using a SLURM cluster
#'
#' An easy-to-use form of lapply that emulates parallelization using a SLURM cluster.
#'
#' Mimics the functionality of lapply but implemented
#' in a way that iterations can be submmitted as one or more individual
#' jobs to a SLURM cluster.
#' Each job batch, err... |
#Interactions
library(lmtest)
testing
#Before lockdown
#sex:age
before.sexage.int <- glm(LGO_before ~ socialgrade + ethnicity
+ dogs + sex*age,
family = binomial, weights = weight, data=dta_label)
summary(before.sexage.int)
anova(lm.before.adj, before.sexage.int, te... | /Interactions (log reg models).R | no_license | hannahburnett/greenspace-covid_code | R | false | false | 19,971 | r |
#Interactions
library(lmtest)
testing
#Before lockdown
#sex:age
before.sexage.int <- glm(LGO_before ~ socialgrade + ethnicity
+ dogs + sex*age,
family = binomial, weights = weight, data=dta_label)
summary(before.sexage.int)
anova(lm.before.adj, before.sexage.int, te... |
#' Poisson regression via stan
#'
#' [rstanarm::stan_glm()] uses Bayesian estimation to fit a model for
#' count data.
#'
#' @includeRmd man/rmd/poisson_reg_stan.md details
#'
#' @name details_poisson_reg_stan
#' @keywords internal
NULL
# See inst/README-DOCS.md for a description of how these files are processed
| /R/poisson_reg_stan.R | permissive | tidymodels/parsnip | R | false | false | 315 | r | #' Poisson regression via stan
#'
#' [rstanarm::stan_glm()] uses Bayesian estimation to fit a model for
#' count data.
#'
#' @includeRmd man/rmd/poisson_reg_stan.md details
#'
#' @name details_poisson_reg_stan
#' @keywords internal
NULL
# See inst/README-DOCS.md for a description of how these files are processed
|
\name{schools}
\alias{schools}
\docType{data}
\title{
%% ~~ data name/kind ... ~~
Schools data set (NELS-88)
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
Data set used by Kreft and De Leeuw in their book \emph{Introducing Multilevel Modeling, Sage (1988)} to analyse the relationship bet... | /man/schools.Rd | no_license | gintian/CMatching | R | false | false | 5,350 | rd | \name{schools}
\alias{schools}
\docType{data}
\title{
%% ~~ data name/kind ... ~~
Schools data set (NELS-88)
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
Data set used by Kreft and De Leeuw in their book \emph{Introducing Multilevel Modeling, Sage (1988)} to analyse the relationship bet... |
###########################################################
## Additional utilities for SYSargs and SYSargs2 objects ##
###########################################################
######################################################
## Convenience write function for targetsout(args) ##
##############################... | /R/utilities.R | no_license | heyiamstella/systemPipeR | R | false | false | 43,788 | r | ###########################################################
## Additional utilities for SYSargs and SYSargs2 objects ##
###########################################################
######################################################
## Convenience write function for targetsout(args) ##
##############################... |
#Example : 2.2A Chapter : 2.2 page no : 50
#Pivots and Multipliers in converting matrix to upper traingular system
matrix(c(1,-1,0,-1,2,-1,0,-1,2),ncol=3)->A
A
print(paste("First pivot is",A[1,1]))
l21<-A[2,1]/A[1,1]
print(paste("Multiplier L21 to convert the second row first element to 0 is",l21))
A[... | /Introduction_To_Linear_Algebra_by_Gilbert_Strang/CH2/EX2.2.a/Ex2_2.2a.r | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 505 | r | #Example : 2.2A Chapter : 2.2 page no : 50
#Pivots and Multipliers in converting matrix to upper traingular system
matrix(c(1,-1,0,-1,2,-1,0,-1,2),ncol=3)->A
A
print(paste("First pivot is",A[1,1]))
l21<-A[2,1]/A[1,1]
print(paste("Multiplier L21 to convert the second row first element to 0 is",l21))
A[... |
#======================================
# word2vec로 연관 키워드 추출하기
#======================================
rm(list=ls())
#
# install.packages("devtools") #Rtools는 Windows에 깔때 별도로 깔아야 한다.
# install.packages("wordVectors")
# install.packages("tsne") #다차원 척도법(MDS) MAP을 그리기 위해 필요함
library(devtools)
install_github("bmsch... | /180607_텍스트마이닝/word2vec.R | no_license | chankoo/BOAZ-Sessions | R | false | false | 2,122 | r | #======================================
# word2vec로 연관 키워드 추출하기
#======================================
rm(list=ls())
#
# install.packages("devtools") #Rtools는 Windows에 깔때 별도로 깔아야 한다.
# install.packages("wordVectors")
# install.packages("tsne") #다차원 척도법(MDS) MAP을 그리기 위해 필요함
library(devtools)
install_github("bmsch... |
set.seed(42)
p21 <- CreateSeuratObject(counts = p21_counts, project = "p21", min.cells = 3, min.features = 200)
p10 <- CreateSeuratObject(counts = p10_counts, project = "p10", min.cells = 3, min.features = 200)
fivemonth <- CreateSeuratObject(counts = fivemonthcounts, project = "fivemonth", min.cells = 3, min.featur... | /scripts/integrations/ta integration.R | no_license | MillayLab/single-myonucleus | R | false | false | 2,100 | r | set.seed(42)
p21 <- CreateSeuratObject(counts = p21_counts, project = "p21", min.cells = 3, min.features = 200)
p10 <- CreateSeuratObject(counts = p10_counts, project = "p10", min.cells = 3, min.features = 200)
fivemonth <- CreateSeuratObject(counts = fivemonthcounts, project = "fivemonth", min.cells = 3, min.featur... |
Sys.setlocale("LC_TIME", "en_US.UTF-8")
data <- read.csv2("/Users/tiagoassano/Documents/household_power_consumption.txt", stringsAsFactors = FALSE)
data$Time <- strptime(data$Time, format = "%T")
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
data$Global_active_power <- as.numeric(data$Global_active_power)
data1... | /plot1.R | no_license | Tassano/ExData_Plotting1 | R | false | false | 553 | r | Sys.setlocale("LC_TIME", "en_US.UTF-8")
data <- read.csv2("/Users/tiagoassano/Documents/household_power_consumption.txt", stringsAsFactors = FALSE)
data$Time <- strptime(data$Time, format = "%T")
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
data$Global_active_power <- as.numeric(data$Global_active_power)
data1... |
# Code to add to the book
| /Todo.R | no_license | fowiny/dataExploration_R_training | R | false | false | 27 | r | # Code to add to the book
|
library (shiny)
require (shinydashboard)
library(dplyr)
library(ggplot2)
theme_set(theme_bw())
data<-read.csv("2018.csv", stringAsFactor = FALSE, header = TRUE)
year <- (2018)
#define ui
shinyUI(
dashboardPage(
skin = "blue",
dashboardHeader(title = "Who Is Happy??"),
dashboardSidebar(
sidebarM... | /ui.R | no_license | Afryna/lala | R | false | false | 4,075 | r | library (shiny)
require (shinydashboard)
library(dplyr)
library(ggplot2)
theme_set(theme_bw())
data<-read.csv("2018.csv", stringAsFactor = FALSE, header = TRUE)
year <- (2018)
#define ui
shinyUI(
dashboardPage(
skin = "blue",
dashboardHeader(title = "Who Is Happy??"),
dashboardSidebar(
sidebarM... |
context("metadata cache")
test_that("get_cache_files", {
dir.create(pri <- fs::path_norm(tempfile()))
on.exit(unlink(pri, recursive = TRUE), add = TRUE)
dir.create(rep <- fs::path_norm(tempfile()))
on.exit(unlink(rep, recursive = TRUE), add = TRUE)
cmc <- cranlike_metadata_cache$new(pri, rep, "source", bi... | /tests/testthat/test-metadata-cache.R | permissive | hongooi73/pkgcache | R | false | false | 21,262 | r |
context("metadata cache")
test_that("get_cache_files", {
dir.create(pri <- fs::path_norm(tempfile()))
on.exit(unlink(pri, recursive = TRUE), add = TRUE)
dir.create(rep <- fs::path_norm(tempfile()))
on.exit(unlink(rep, recursive = TRUE), add = TRUE)
cmc <- cranlike_metadata_cache$new(pri, rep, "source", bi... |
## Get bad probesets for Section 6 trimming, plus plots
bad_ps_fun<-function(
celA,celB,
frmaA,frmaB,
direct,
filename){
setwd(direct)
library(affy)
### REMOVE BATCHY PROVES!! ###
rma.bad.ps.1<-list()
rma.bad.ps.2<-list()
rma.bad.ps.3<-list()
rma.bad.ps.4<-list()
rma.bad.ps.5<-list()
... | /B_analysts_sources_github/hilaryparker/PracticalBatch/Section6_bad_ps.R | no_license | Irbis3/crantasticScrapper | R | false | false | 4,864 | r | ## Get bad probesets for Section 6 trimming, plus plots
bad_ps_fun<-function(
celA,celB,
frmaA,frmaB,
direct,
filename){
setwd(direct)
library(affy)
### REMOVE BATCHY PROVES!! ###
rma.bad.ps.1<-list()
rma.bad.ps.2<-list()
rma.bad.ps.3<-list()
rma.bad.ps.4<-list()
rma.bad.ps.5<-list()
... |
#!/usr/bin/env Rscript
## begin warning handler
withCallingHandlers({
library(methods) # Because Rscript does not always do this
options('useFancyQuotes' = FALSE)
suppressPackageStartupMessages(library("optparse"))
suppressPackageStartupMessages(library("RGalaxy"))
option_list <- list()
option_list$exon_anno <- ... | /tools/probam_suite/psm2sam/PSM2SAM.R | permissive | bernt-matthias/tools-galaxyp | R | false | false | 5,289 | r | #!/usr/bin/env Rscript
## begin warning handler
withCallingHandlers({
library(methods) # Because Rscript does not always do this
options('useFancyQuotes' = FALSE)
suppressPackageStartupMessages(library("optparse"))
suppressPackageStartupMessages(library("RGalaxy"))
option_list <- list()
option_list$exon_anno <- ... |
library(rcbalance)
library(rcbsubset)
if (requireNamespace("optmatch", quietly = TRUE)){
library(optmatch)
context('Precision for distances and penalties')
#skip_on_cran()
data(nuclearplants)
#reorder nuclearplants dataframe so treated units come first
nuclearplants <- nuclearplants[order(nuclearplants$pr, decreasi... | /tests/testthat/test-precision.R | no_license | cran/rcbsubset | R | false | false | 1,336 | r | library(rcbalance)
library(rcbsubset)
if (requireNamespace("optmatch", quietly = TRUE)){
library(optmatch)
context('Precision for distances and penalties')
#skip_on_cran()
data(nuclearplants)
#reorder nuclearplants dataframe so treated units come first
nuclearplants <- nuclearplants[order(nuclearplants$pr, decreasi... |
compareMAF_AB <- mafCompare(m1 = TCGAdataMAFA.plus.cn, m2 = TCGAdataMAFB.plus.cn,
m1Name = 'MUT', m2Name = 'WILD', minMut = 10, useCNV = T)#最小mut数默认为5的基因
forestPlot(mafCompareRes = compareMAF_AB, color = c('royalblue', 'maroon'), fdr = 0.3, geneFontSize = 0.8)
## 设置了fdr以后,设置P值就没用了
g... | /step08--比较野生和突变之间前几位突变——————.R | no_license | xjin15/KEAP1-NFE2L2-CUL3-analysis-code | R | false | false | 2,406 | r |
compareMAF_AB <- mafCompare(m1 = TCGAdataMAFA.plus.cn, m2 = TCGAdataMAFB.plus.cn,
m1Name = 'MUT', m2Name = 'WILD', minMut = 10, useCNV = T)#最小mut数默认为5的基因
forestPlot(mafCompareRes = compareMAF_AB, color = c('royalblue', 'maroon'), fdr = 0.3, geneFontSize = 0.8)
## 设置了fdr以后,设置P值就没用了
g... |
# Notes for 03-quality-control.R
# --------------------------------------
## Copy code from https://github.com/lcolladotor/osca_LIIGH_UNAM_2020/blob/master/03-quality-control.R
## ----all_code, cache=TRUE--------------------------------------------------------------------------------------------
## Data
library('scRNA... | /R/03-quality-control.R | no_license | lcolladotor/osca_playground_leo | R | false | false | 9,987 | r | # Notes for 03-quality-control.R
# --------------------------------------
## Copy code from https://github.com/lcolladotor/osca_LIIGH_UNAM_2020/blob/master/03-quality-control.R
## ----all_code, cache=TRUE--------------------------------------------------------------------------------------------
## Data
library('scRNA... |
#CBN Method-Urban.R
#
# Copyright © 2018:Arin Shahbazian
# Licence: GPL-3
#
rm(list=ls())
starttime <- proc.time()
cat("\n\n================ Prepare Data =====================================\n")
library(yaml)
Settings <- yaml.load_file("Settings.yaml")
library(readxl)
library(stringr)
library(data.table)
library(... | /R/Archive/Other Codes/CBN Urban-Sort only first stage.R | no_license | IPRCIRI/IRHEIS | R | false | false | 184,171 | r | #CBN Method-Urban.R
#
# Copyright © 2018:Arin Shahbazian
# Licence: GPL-3
#
rm(list=ls())
starttime <- proc.time()
cat("\n\n================ Prepare Data =====================================\n")
library(yaml)
Settings <- yaml.load_file("Settings.yaml")
library(readxl)
library(stringr)
library(data.table)
library(... |
rm(list=ls())
human.pin <- read.csv("../../human.pin.csv", header=T, stringsAsFactors = F)
geneA <- human.pin$geneA
geneB <- human.pin$geneB
#All genes appear in PIN
all.list <- unique(c(geneA, geneB))
#the Gene list
geneset <- read.csv("HALLMARK_XENOBIOTIC_METABOLISM.csv", header=T, stringsAsFactors = F)
gene.list ... | /Data/MSigDB.go.pathway/HALLMARK_XENOBIOTIC_METABOLISM/sub.network.R | no_license | haoboguo/NetBAS | R | false | false | 1,556 | r | rm(list=ls())
human.pin <- read.csv("../../human.pin.csv", header=T, stringsAsFactors = F)
geneA <- human.pin$geneA
geneB <- human.pin$geneB
#All genes appear in PIN
all.list <- unique(c(geneA, geneB))
#the Gene list
geneset <- read.csv("HALLMARK_XENOBIOTIC_METABOLISM.csv", header=T, stringsAsFactors = F)
gene.list ... |
## week12
## use creeplot to visualize the relative importance of principal components
pca <- princomp(data)
screeplot(pca)
## extract the result from a PCA
var <- get_pca_var(res.pca)
## variables for PCA var
var$coord ## coordinates of variables to create a scatter plot
var$cos2 ## represents the quality of repre... | /Code_Portfolio_Shipeng/week12/week12.r | no_license | 1210545510/ANLY506_Shipeng-Sun | R | false | false | 2,950 | r | ## week12
## use creeplot to visualize the relative importance of principal components
pca <- princomp(data)
screeplot(pca)
## extract the result from a PCA
var <- get_pca_var(res.pca)
## variables for PCA var
var$coord ## coordinates of variables to create a scatter plot
var$cos2 ## represents the quality of repre... |
##--------------------------------
# COVID Geographic Union
##--------------------------------
## Load Packages ----------------------------------------------------------------------------------
library(tidyverse)
library(lubridate)
## Load Data --------------------------------------------------------------... | /COVID Geographic Joining.R | permissive | keenanviney/Rural_Internet_Hackathon | R | false | false | 2,541 | r | ##--------------------------------
# COVID Geographic Union
##--------------------------------
## Load Packages ----------------------------------------------------------------------------------
library(tidyverse)
library(lubridate)
## Load Data --------------------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/power_plot.R
\name{month_plot}
\alias{month_plot}
\title{month_plot}
\usage{
month_plot(data, meter_name)
}
\arguments{
\item{data}{A dataframe which has peak power values of a virtual meter and the total 4 meters.}
\item{meter_name}{The nam... | /demand/man/month_plot.Rd | permissive | aidowu/demand_acep | R | false | true | 502 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/power_plot.R
\name{month_plot}
\alias{month_plot}
\title{month_plot}
\usage{
month_plot(data, meter_name)
}
\arguments{
\item{data}{A dataframe which has peak power values of a virtual meter and the total 4 meters.}
\item{meter_name}{The nam... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parseIdentifier.R
\name{parseIdentifier}
\alias{parseIdentifier}
\title{Parse Datetime from a Local Identifier}
\usage{
parseIdentifier(identifier)
}
\description{
Parse Datetime from a Local Identifier
}
| /man/parseIdentifier.Rd | no_license | meerapatelmd/HemOncExt | R | false | true | 283 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parseIdentifier.R
\name{parseIdentifier}
\alias{parseIdentifier}
\title{Parse Datetime from a Local Identifier}
\usage{
parseIdentifier(identifier)
}
\description{
Parse Datetime from a Local Identifier
}
|
# Copyright 2018 Observational Health Data Sciences and Informatics
#
# This file is part of PneumoniaRiskOfPPI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apac... | /PneumoniaRiskOfPPI/R/Main.R | permissive | NEONKID/StudyProtocolSandbox | R | false | false | 8,204 | r | # Copyright 2018 Observational Health Data Sciences and Informatics
#
# This file is part of PneumoniaRiskOfPPI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apac... |
x <- c(1,2,3,4,5)
summary(x)
x
var(x)
y <- c(1,2,3,4,30)
summary(y)
var(y)
library(psych)
install.packages("https://cran.r-project.org/src/contrib/Archive/psych/psych_1.8.10.tar.gz")
install.packages("psych", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
library(psych)
names(USJudgeRatings)
dim(USJudgeRatin... | /20190626-1.R | no_license | davidzhang725/R-Learning | R | false | false | 729 | r | x <- c(1,2,3,4,5)
summary(x)
x
var(x)
y <- c(1,2,3,4,30)
summary(y)
var(y)
library(psych)
install.packages("https://cran.r-project.org/src/contrib/Archive/psych/psych_1.8.10.tar.gz")
install.packages("psych", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
library(psych)
names(USJudgeRatings)
dim(USJudgeRatin... |
library(readxl)
library(dplyr)
library(tidyr)
library(stringr)
## Input
target<-c(...) ## TODO: input the list of gene target
vbc<-read_excel(".../VBC_hg38_top6_sgRNAs.xlsx",sheet = "Sheet1")
tkov3<-read_excel(".../TKOV3_guide_sequence.xlsx",sheet = "TKOv3-Human-Library")
geckov2a<-read.table(".../hGEC... | /sgRNA_info/sgRNA_integration.R | no_license | Shantang3/Combinatorial-CRISPR-Screen-Anaylysis-Pipeline | R | false | false | 2,714 | r | library(readxl)
library(dplyr)
library(tidyr)
library(stringr)
## Input
target<-c(...) ## TODO: input the list of gene target
vbc<-read_excel(".../VBC_hg38_top6_sgRNAs.xlsx",sheet = "Sheet1")
tkov3<-read_excel(".../TKOV3_guide_sequence.xlsx",sheet = "TKOv3-Human-Library")
geckov2a<-read.table(".../hGEC... |
### R code from vignette source 'modbin-foodstamp.Rnw'
###################################################
### code chunk number 1: modbin-foodstamp.Rnw:12-15 (eval = FALSE)
###################################################
## library(catdata)
## data(foodstamp)
## attach(foodstamp)
#####################... | /data/genthat_extracted_code/catdata/vignettes/modbin-foodstamp.R | no_license | surayaaramli/typeRrh | R | false | false | 763 | r | ### R code from vignette source 'modbin-foodstamp.Rnw'
###################################################
### code chunk number 1: modbin-foodstamp.Rnw:12-15 (eval = FALSE)
###################################################
## library(catdata)
## data(foodstamp)
## attach(foodstamp)
#####################... |
# Page Structure Module --------------------------------------------------------
# UI ---------------------------------------------------------------------------
#' pagestructureUI
#'
#' @rdname pagestructure
#'
#' @return Lits of tags
#'
#' @export
pagestructureUI <- function(id) {
ns <- NS(id)
tagList(
uiOu... | /BFE_RShiny/oasisui/R/pagestructure_module.R | permissive | smacintyreR/OasisUI | R | false | false | 2,203 | r | # Page Structure Module --------------------------------------------------------
# UI ---------------------------------------------------------------------------
#' pagestructureUI
#'
#' @rdname pagestructure
#'
#' @return Lits of tags
#'
#' @export
pagestructureUI <- function(id) {
ns <- NS(id)
tagList(
uiOu... |
## This function very closely models the example cache mean of vector
## functions used in assignment description
## This function creates a special "matrix" object
## that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
## function assumes that the matrix is a square invertible matrix
## use... | /cachematrix.R | no_license | rhavlir/ProgrammingAssignment2 | R | false | false | 1,438 | r | ## This function very closely models the example cache mean of vector
## functions used in assignment description
## This function creates a special "matrix" object
## that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
## function assumes that the matrix is a square invertible matrix
## use... |
## File Name: mlnormal_update_ml_derivative_V.R
## File Version: 0.21
##############################################
# derivatives of V
mlnormal_update_ml_derivative_V <- function( N, NT, G,
Z_index, Z_list, theta, REML, V1_list,
variance_shortcut, freq_id, do_compute ){
D1_V_list... | /LAM/R/mlnormal_update_ml_derivative_V.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 2,108 | r | ## File Name: mlnormal_update_ml_derivative_V.R
## File Version: 0.21
##############################################
# derivatives of V
mlnormal_update_ml_derivative_V <- function( N, NT, G,
Z_index, Z_list, theta, REML, V1_list,
variance_shortcut, freq_id, do_compute ){
D1_V_list... |
library(queueing)
### Name: L
### Title: Returns the mean number of customers in a queueing model (or
### network)
### Aliases: L
### Keywords: Queueing Models
### ** Examples
## create input parameters
i_mm1 <- NewInput.MM1(lambda=1/4, mu=1/3, n=0)
## Build the model
o_mm1 <- QueueingModel(i_mm1)
## Returns th... | /data/genthat_extracted_code/queueing/examples/L.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 336 | r | library(queueing)
### Name: L
### Title: Returns the mean number of customers in a queueing model (or
### network)
### Aliases: L
### Keywords: Queueing Models
### ** Examples
## create input parameters
i_mm1 <- NewInput.MM1(lambda=1/4, mu=1/3, n=0)
## Build the model
o_mm1 <- QueueingModel(i_mm1)
## Returns th... |
testlist <- list(n = 180667588L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) | /breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609962436-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 97 | r | testlist <- list(n = 180667588L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) |
#read data
power <-read.table("household_power_consumption.txt",header=TRUE, sep=";",na.strings="?",colClasses=c(rep('character',2),rep('numeric',7)))
power <- power[power$Date=='1/2/2007' | power$Date=='2/2/2007',]
#merge data
dateTime <- as.POSIXct(paste(power$Date, power$Time, sep = ";"), format = "%d/%m/%Y;%H:%M:%... | /plot4.R | no_license | onghf/Exploratory_Data_Analysis | R | false | false | 1,245 | r | #read data
power <-read.table("household_power_consumption.txt",header=TRUE, sep=";",na.strings="?",colClasses=c(rep('character',2),rep('numeric',7)))
power <- power[power$Date=='1/2/2007' | power$Date=='2/2/2007',]
#merge data
dateTime <- as.POSIXct(paste(power$Date, power$Time, sep = ";"), format = "%d/%m/%Y;%H:%M:%... |
library(randomForest)
### Name: randomForest
### Title: Classification and Regression with Random Forest
### Aliases: randomForest randomForest.formula randomForest.default
### print.randomForest
### Keywords: classif regression tree
### ** Examples
## Classification:
##data(iris)
set.seed(71)
iris.rf <- randomFo... | /data/genthat_extracted_code/randomForest/examples/randomForest.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,143 | r | library(randomForest)
### Name: randomForest
### Title: Classification and Regression with Random Forest
### Aliases: randomForest randomForest.formula randomForest.default
### print.randomForest
### Keywords: classif regression tree
### ** Examples
## Classification:
##data(iris)
set.seed(71)
iris.rf <- randomFo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.iot_operations.R
\name{start_thing_registration_task}
\alias{start_thing_registration_task}
\title{Creates a bulk thing provisioning task}
\usage{
start_thing_registration_task(templateBody, inputFileBucket, inputFileKey,
roleArn)
}
\a... | /service/paws.iot/man/start_thing_registration_task.Rd | permissive | CR-Mercado/paws | R | false | true | 1,000 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.iot_operations.R
\name{start_thing_registration_task}
\alias{start_thing_registration_task}
\title{Creates a bulk thing provisioning task}
\usage{
start_thing_registration_task(templateBody, inputFileBucket, inputFileKey,
roleArn)
}
\a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nest_fit.R
\name{funest_fit}
\alias{funest_fit}
\title{Fitting functional ensemble survival tree model}
\usage{
funest_fit(
long_train,
surv_train,
noftree = 500,
nofcov = 2,
split_rule = "maxstat",
tv_names,
fv_names,
nofp = ... | /man/funest_fit.Rd | no_license | cran/funest | R | false | true | 2,244 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nest_fit.R
\name{funest_fit}
\alias{funest_fit}
\title{Fitting functional ensemble survival tree model}
\usage{
funest_fit(
long_train,
surv_train,
noftree = 500,
nofcov = 2,
split_rule = "maxstat",
tv_names,
fv_names,
nofp = ... |
##' @include gtree.R
NULL
##' Toolkit constructor
##'
##' @inheritParams gWidgets2::gvarbrowser
##' @export
##' @rdname gWidgets2Qt-undocumented
##' @method .gvarbrowser guiWidgetsToolkitQt
##' @S3method .gvarbrowser guiWidgetsToolkitQt
.gvarbrowser.guiWidgetsToolkitQt <- function(toolkit,
... | /R/gvarbrowser.R | no_license | jverzani/gWidgets2Qt | R | false | false | 16,280 | r | ##' @include gtree.R
NULL
##' Toolkit constructor
##'
##' @inheritParams gWidgets2::gvarbrowser
##' @export
##' @rdname gWidgets2Qt-undocumented
##' @method .gvarbrowser guiWidgetsToolkitQt
##' @S3method .gvarbrowser guiWidgetsToolkitQt
.gvarbrowser.guiWidgetsToolkitQt <- function(toolkit,
... |
# Factors
# http://r4ds.had.co.nz/factors.html
# ----
library(tidyverse)
library(forcats)
# ----
# Creating Factors
# ----
x1 <- c("Dec", "Apr", "Jan", "Mar")
x2 <- c("Dec", "Apr", "Jam", "Mar")
#
month_levels <- c(
"Jan", "Feb", "Mar", "Apr",
"May", "Jun", "Jul", "Aug",
"Sep", "Oct", "Nov", "Dec"
... | /Ch15_Factors.R | no_license | bjarnih81/R-for-data-science | R | false | false | 5,311 | r | # Factors
# http://r4ds.had.co.nz/factors.html
# ----
library(tidyverse)
library(forcats)
# ----
# Creating Factors
# ----
x1 <- c("Dec", "Apr", "Jan", "Mar")
x2 <- c("Dec", "Apr", "Jam", "Mar")
#
month_levels <- c(
"Jan", "Feb", "Mar", "Apr",
"May", "Jun", "Jul", "Aug",
"Sep", "Oct", "Nov", "Dec"
... |
## These functions are used together to cache the inverse of a
# given invertible matrix. makeCacheMatrix takes a given matrix, stores it and
# includes a getter/setter for its inverse if it has already been calculated.
# cacheSolve will take a makeCacheMatrix object, return already calculated inverse if
# one exi... | /cachematrix.R | no_license | jlehn/ProgrammingAssignment2 | R | false | false | 1,921 | r | ## These functions are used together to cache the inverse of a
# given invertible matrix. makeCacheMatrix takes a given matrix, stores it and
# includes a getter/setter for its inverse if it has already been calculated.
# cacheSolve will take a makeCacheMatrix object, return already calculated inverse if
# one exi... |
# load data
house_p_consumption <- read.table("10.30_household_power_consumption.txt",
header = T,sep = ";",na.strings = "?", stringsAsFactors = F)
# clear date and time format
library(lubridate)
house_p_consumption$date_time <- dmy_hms(paste(house_p_consumption$Date, house_p_consumpt... | /10.30_plot.R | no_license | wscrdzg/ExData_Plotting1 | R | false | false | 2,931 | r | # load data
house_p_consumption <- read.table("10.30_household_power_consumption.txt",
header = T,sep = ";",na.strings = "?", stringsAsFactors = F)
# clear date and time format
library(lubridate)
house_p_consumption$date_time <- dmy_hms(paste(house_p_consumption$Date, house_p_consumpt... |
\name{from_WDI}
\alias{from_WDI}
\title{World Bank data}
\usage{
from_WDI(..., auxiliary.indicator = c(), country.name = NULL,
translation.table = NULL)
}
\arguments{
\item{...}{Arguments sent sent to \code{WDI} (primarily
of interest are \code{country}, defaulting to "all",
\code{start}, defaulting to 1961, \c... | /man/from_WDI.Rd | no_license | rossklin/timetablr | R | false | false | 836 | rd | \name{from_WDI}
\alias{from_WDI}
\title{World Bank data}
\usage{
from_WDI(..., auxiliary.indicator = c(), country.name = NULL,
translation.table = NULL)
}
\arguments{
\item{...}{Arguments sent sent to \code{WDI} (primarily
of interest are \code{country}, defaulting to "all",
\code{start}, defaulting to 1961, \c... |
context("syllabification")
test_that("Syllabification returns data frames", {
syls_df <- syllabify_test_dict %>%
mutate(syl_df = map(trans, ~try(syllabify(.x))),
class = map(syl_df, ~class(.x)[1]) %>% simplify())
for (i in seq_along(syls_df$syl_df)){
expect_is(syls_df$syl_df[[i]], "tbl_df")
}... | /tests/testthat/test-syllabification.R | permissive | JoFrhwld/syllabifyr | R | false | false | 1,497 | r | context("syllabification")
test_that("Syllabification returns data frames", {
syls_df <- syllabify_test_dict %>%
mutate(syl_df = map(trans, ~try(syllabify(.x))),
class = map(syl_df, ~class(.x)[1]) %>% simplify())
for (i in seq_along(syls_df$syl_df)){
expect_is(syls_df$syl_df[[i]], "tbl_df")
}... |
# inferCNV Code
# Author: Yue Pan
# Last edited: 04/18/19
########################################
# Notes:
# This will be a directly application of inferCNV in current package
########################################
library("devtools")
library(rjags)
library(infercnv)
library(data.table)
# install.packag... | /inferCNV.R | no_license | Yue221/785Project | R | false | false | 3,106 | r | # inferCNV Code
# Author: Yue Pan
# Last edited: 04/18/19
########################################
# Notes:
# This will be a directly application of inferCNV in current package
########################################
library("devtools")
library(rjags)
library(infercnv)
library(data.table)
# install.packag... |
# RDash rdash-angular2-alfa 47
## Responsive, bloat free, bootstrap powered admin style dashboard from Startangular.com.
rdash-angular-ts is an Angular 2.0 alfa-47 with typescript implementation of the RDash admin dashboard.
Innovating 1 year old project by Startangular.com! Add new module versions, typescript with t... | /readme.rd | permissive | beliyu/Whi03 | R | false | false | 700 | rd | # RDash rdash-angular2-alfa 47
## Responsive, bloat free, bootstrap powered admin style dashboard from Startangular.com.
rdash-angular-ts is an Angular 2.0 alfa-47 with typescript implementation of the RDash admin dashboard.
Innovating 1 year old project by Startangular.com! Add new module versions, typescript with t... |
library(readxl)
rent_data_1219 = read_xlsx("~/data/rent_data/new_rent_data.xlsx")
#modify the original data for predict(put rent data 3 month ahead), remove col not used for this model
getModelData = function(rent_data_1219){
rent_data_1219 = data.table(rent_data_1219)
rent_data_1219[,rent := c(finalprice[-1:-3],rep(NA... | /rental_model/Rfile/data_process3.R | no_license | yuanqingye/R_Projects | R | false | false | 5,299 | r | library(readxl)
rent_data_1219 = read_xlsx("~/data/rent_data/new_rent_data.xlsx")
#modify the original data for predict(put rent data 3 month ahead), remove col not used for this model
getModelData = function(rent_data_1219){
rent_data_1219 = data.table(rent_data_1219)
rent_data_1219[,rent := c(finalprice[-1:-3],rep(NA... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monty-hall-problem.R
\name{play_n_games}
\alias{play_n_games}
\title{Play n Number of Game}
\usage{
play_n_games(n = 100)
}
\arguments{
\item{Setting}{the n of the function.}
}
\value{
Table of numeric values indicating the percentage of time... | /man/play_n_games.Rd | no_license | JasonSills/montyhall | R | false | true | 849 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monty-hall-problem.R
\name{play_n_games}
\alias{play_n_games}
\title{Play n Number of Game}
\usage{
play_n_games(n = 100)
}
\arguments{
\item{Setting}{the n of the function.}
}
\value{
Table of numeric values indicating the percentage of time... |
# Load Data/Packages ------------------------------------------------------
library(tidyverse)
# You may need to change this to match your computer's directory structure
setwd("assets/Titanic/")
# Load test data
train <- readr::read_csv("train.csv") %>%
# Clean things up a little
dplyr::select(Survived, Sex)
... | /assets/PS/PS02_solutions.R | no_license | biancaglez/MATH218 | R | false | false | 4,227 | r | # Load Data/Packages ------------------------------------------------------
library(tidyverse)
# You may need to change this to match your computer's directory structure
setwd("assets/Titanic/")
# Load test data
train <- readr::read_csv("train.csv") %>%
# Clean things up a little
dplyr::select(Survived, Sex)
... |
#################################################
# Survival Models, T. Kleinow ###############
# Script to test submissions for project 1 ##
#################################################
# DO NOT INCLUDE THIS CODE INTO YOUR R-FILE #
#################################################
# remove all R obje... | /p_01/TestSubmissionProj1.R | no_license | amitkparekh/HW-F79SU | R | false | false | 753 | r | #################################################
# Survival Models, T. Kleinow ###############
# Script to test submissions for project 1 ##
#################################################
# DO NOT INCLUDE THIS CODE INTO YOUR R-FILE #
#################################################
# remove all R obje... |
## Reading, Tidying & Transforming Raw Team Data
## Load Relevant Packages
library(tidyverse)
## Reading In Data
team_stats_1 <- read_csv("data/raw/2018-19_nba_team_statistics_1.csv")
team_stats_2 <- read_csv("data/raw/2018-19_nba_team_statistics_2.csv")
team_payroll <- read_csv("data/raw/2019-20_nba_team-payro... | /cleaning.R/tidying_team-data.R | no_license | shaun-cameron/nba-data-analysis-project | R | false | false | 5,468 | r | ## Reading, Tidying & Transforming Raw Team Data
## Load Relevant Packages
library(tidyverse)
## Reading In Data
team_stats_1 <- read_csv("data/raw/2018-19_nba_team_statistics_1.csv")
team_stats_2 <- read_csv("data/raw/2018-19_nba_team_statistics_2.csv")
team_payroll <- read_csv("data/raw/2019-20_nba_team-payro... |
\name{src_mysql}
\alias{src_mysql}
\alias{tbl.src_mysql}
\title{Connect to mysql/mariadb.}
\usage{
src_mysql(dbname, host = NULL, port = 0L, user = "root",
password = "", ...)
\method{tbl}{src_mysql} (src, from, ...)
}
\arguments{
\item{dbname}{Database name}
\item{host,port}{Host name and port number of ... | /man/src_mysql.Rd | no_license | Funreason/dplyr | R | false | false | 6,010 | rd | \name{src_mysql}
\alias{src_mysql}
\alias{tbl.src_mysql}
\title{Connect to mysql/mariadb.}
\usage{
src_mysql(dbname, host = NULL, port = 0L, user = "root",
password = "", ...)
\method{tbl}{src_mysql} (src, from, ...)
}
\arguments{
\item{dbname}{Database name}
\item{host,port}{Host name and port number of ... |
## copied/edited from KMsurv
lifetab <-
function (tis, ninit, nlost, nevent)
{
Ypj <- c(ninit, ninit - cumsum(nlost + nevent)[-length(nevent)])
Yj <- Ypj - nlost/2
Sj <- cumprod(1 - nevent/Yj)
qj <- nevent/Yj
pj <- 1 - qj
n <- length(Yj)
Sj <- c(1, Sj[-n])
fmj <- c(diff(-1 * Sj), NA)/d... | /R/lifetab2.R | no_license | mclements/biostat3 | R | false | false | 4,730 | r | ## copied/edited from KMsurv
lifetab <-
function (tis, ninit, nlost, nevent)
{
Ypj <- c(ninit, ninit - cumsum(nlost + nevent)[-length(nevent)])
Yj <- Ypj - nlost/2
Sj <- cumprod(1 - nevent/Yj)
qj <- nevent/Yj
pj <- 1 - qj
n <- length(Yj)
Sj <- c(1, Sj[-n])
fmj <- c(diff(-1 * Sj), NA)/d... |
###Scrapping
linkPage= "https://en.wikipedia.org/wiki/2019%E2%80%9320_coronavirus_pandemic"
linkPath = '//*[@id="thetable"]'
#El id=thetable es el código particular de la tabla de datos en wikipedia
library(htmltab)
#Estamos creando un nuevo objeto con el nombre "coronavirus"
coronavirus = htmltab(doc = linkPage, whi... | /Githubpc.R | no_license | gaboreparaguay/Proyecto2020 | R | false | false | 887 | r | ###Scrapping
linkPage= "https://en.wikipedia.org/wiki/2019%E2%80%9320_coronavirus_pandemic"
linkPath = '//*[@id="thetable"]'
#El id=thetable es el código particular de la tabla de datos en wikipedia
library(htmltab)
#Estamos creando un nuevo objeto con el nombre "coronavirus"
coronavirus = htmltab(doc = linkPage, whi... |
# Pittard, Steve August 2014 - wsp@emory.edu
# Code to demonstrate the Normal distribution
# The formula for the Normal Probability Density Function is:
normpdf <- expression(paste(frac(1, sigma*sqrt(2*pi)), plain(e)^{frac(-(x-mu)^2, 2*sigma^2)}, sep=""))
par(mfrow=c(1,1))
plot(1:3,1:3,type="n",axes=F,ylab="",xlab="... | /YOUTUBE.DIR/Normal.R | no_license | steviep42/youtube | R | false | false | 7,732 | r | # Pittard, Steve August 2014 - wsp@emory.edu
# Code to demonstrate the Normal distribution
# The formula for the Normal Probability Density Function is:
normpdf <- expression(paste(frac(1, sigma*sqrt(2*pi)), plain(e)^{frac(-(x-mu)^2, 2*sigma^2)}, sep=""))
par(mfrow=c(1,1))
plot(1:3,1:3,type="n",axes=F,ylab="",xlab="... |
data("sf_bike_parking")
properties <- list(
filter = "spaces > 4",
visible = TRUE,
extruded = TRUE,
cellSize = 200,
elevationScale = 4,
getPosition = "@=[lng, lat]", #~lng + lat,
colorRange = RColorBrewer::brewer.pal(6, "YlOrRd"),
tooltip = "{{position.0}}, {{position.1}}<br/>Count: {{count}}"
)
deck ... | /inst/examples/deckgl-api-reference/grid-layer.R | permissive | crazycapivara/deckgl | R | false | false | 658 | r | data("sf_bike_parking")
properties <- list(
filter = "spaces > 4",
visible = TRUE,
extruded = TRUE,
cellSize = 200,
elevationScale = 4,
getPosition = "@=[lng, lat]", #~lng + lat,
colorRange = RColorBrewer::brewer.pal(6, "YlOrRd"),
tooltip = "{{position.0}}, {{position.1}}<br/>Count: {{count}}"
)
deck ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plug.R
\name{plug}
\alias{plug}
\title{Switch indeterminates in a polynomial}
\usage{
plug(p, indeterminate, value)
}
\arguments{
\item{p}{a polynomial}
\item{indeterminate}{the indeterminate in the polynomial to
switch}
\item{value}{the va... | /man/plug.Rd | no_license | GrantInnerst/mpoly | R | false | true | 668 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plug.R
\name{plug}
\alias{plug}
\title{Switch indeterminates in a polynomial}
\usage{
plug(p, indeterminate, value)
}
\arguments{
\item{p}{a polynomial}
\item{indeterminate}{the indeterminate in the polynomial to
switch}
\item{value}{the va... |
# loading required library
library(shiny)
library(shinydashboard)
library(ade4)
library(adegraphics)
library(magrittr)
library(dplyr)
library(ggplot2)
library(data.table)
library(DT)
library(plotly)
if (getOption("vizection.dataIs") == "genesAndLibs") {
genes <- get(getOption("vizection.genes"), .GlobalEnv)
libs ... | /inst/shiny/vizection/server.R | no_license | shamansim/Vizection | R | false | false | 43,513 | r | # loading required library
library(shiny)
library(shinydashboard)
library(ade4)
library(adegraphics)
library(magrittr)
library(dplyr)
library(ggplot2)
library(data.table)
library(DT)
library(plotly)
if (getOption("vizection.dataIs") == "genesAndLibs") {
genes <- get(getOption("vizection.genes"), .GlobalEnv)
libs ... |
### Simuationssoftware mit Einzelfällen
#
n = 8000 # nur Einzelfälle statt 80 Mio.
# stati = c("before", "infected new", "infected infectuous", "infected symptoms", "infected known", "recovered", "dead")
stati = factor(c("before", "new", "infectuous", "symptoms", "known", "recovered", "dead"))
shareDiscovered... | /simulation Einzelbürger.R | no_license | Data-Scientists-against-Disease/CaseNumbers | R | false | false | 3,262 | r | ### Simuationssoftware mit Einzelfällen
#
n = 8000 # nur Einzelfälle statt 80 Mio.
# stati = c("before", "infected new", "infected infectuous", "infected symptoms", "infected known", "recovered", "dead")
stati = factor(c("before", "new", "infectuous", "symptoms", "known", "recovered", "dead"))
shareDiscovered... |
#
# 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/
#
# Initial library/source files set-up
library(shiny)
source("analysis.R")
# Pages 1-7 instantiated and structured... | /p3_shinyapp/app.R | no_license | jovecalimlim/AE_TeamWellness | R | false | false | 10,511 | 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/
#
# Initial library/source files set-up
library(shiny)
source("analysis.R")
# Pages 1-7 instantiated and structured... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/renderer.R
\name{translator_html}
\alias{translator_html}
\alias{space_html}
\alias{newline_html}
\alias{renderer_html}
\title{html renderer using span tags and CSS}
\usage{
translator_html(x, size)
space_html()
newline_html()
renderer_htm... | /man/renderer_html.Rd | no_license | cran/highlight | R | false | true | 2,521 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/renderer.R
\name{translator_html}
\alias{translator_html}
\alias{space_html}
\alias{newline_html}
\alias{renderer_html}
\title{html renderer using span tags and CSS}
\usage{
translator_html(x, size)
space_html()
newline_html()
renderer_htm... |
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinythemes)
# Define UI for application that draws a hi... | /Baseball Win Percentage App/ui.R | no_license | mabdih/Coursera-Week-4-Shiny-Assignment | R | false | false | 866 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinythemes)
# Define UI for application that draws a hi... |
#ARDKernel
ARDKernel <- function(r,theta){
return(exp(-theta[[1]]*r/2))
}
| /PGPLVM/PGPLVM-Trad/Modules/ARDKernel.R | no_license | AsgerMorville/GPLVM | R | false | false | 82 | r | #ARDKernel
ARDKernel <- function(r,theta){
return(exp(-theta[[1]]*r/2))
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_csv_spark.R
\name{read_csv_spark}
\alias{read_csv_spark}
\title{wczytuje dane zapisane za pomocą sparklyr::spark_write_csv()}
\usage{
read_csv_spark(sciezka, typyKolumn = NULL)
}
\arguments{
\item{sciezka}{ścieżka do pliku/katalogu przec... | /man/read_csv_spark.Rd | no_license | zozlak/MLAKdane | R | false | true | 661 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_csv_spark.R
\name{read_csv_spark}
\alias{read_csv_spark}
\title{wczytuje dane zapisane za pomocą sparklyr::spark_write_csv()}
\usage{
read_csv_spark(sciezka, typyKolumn = NULL)
}
\arguments{
\item{sciezka}{ścieżka do pliku/katalogu przec... |
library(nlme)
library(geiger)
require(phytools)
# Read in the overlap data files (made by overlap_vs_distance.R)
phfiles<-as.character(list.files(path="../data/Corrected_Matrices/Plant_herbivore_matrices", full.names=TRUE, pattern="*.csv"))
ppfiles<-as.character(list.files(path="../data/Corrected_Matrices/Stouffer_Eco... | /code/chitest.R | no_license | cirtwill/Bipartite-essentials | R | false | false | 4,204 | r | library(nlme)
library(geiger)
require(phytools)
# Read in the overlap data files (made by overlap_vs_distance.R)
phfiles<-as.character(list.files(path="../data/Corrected_Matrices/Plant_herbivore_matrices", full.names=TRUE, pattern="*.csv"))
ppfiles<-as.character(list.files(path="../data/Corrected_Matrices/Stouffer_Eco... |
\name{linLogHist}
\alias{linLogHist}
\title{lin-log transition histogram}
\description{draw histograms that gradually transform from a linear to a logarithmic axis}
\usage{linLogHist(x, steps=100, breaks=20, col="blue", las=1,
xlab=deparse(substitute(x)), xlim=range(x, finite=TRUE), box=TRUE, parexpr, endexpr,
axisargs... | /man/linLogHist.Rd | no_license | costagc/berryFunctions | R | false | false | 3,185 | rd | \name{linLogHist}
\alias{linLogHist}
\title{lin-log transition histogram}
\description{draw histograms that gradually transform from a linear to a logarithmic axis}
\usage{linLogHist(x, steps=100, breaks=20, col="blue", las=1,
xlab=deparse(substitute(x)), xlim=range(x, finite=TRUE), box=TRUE, parexpr, endexpr,
axisargs... |
> find.b
function(time, fail, beta0 = 1)
{
# Find beta for grouped Crow-AMSAA
#
# requires function "gbeta.like" (Grouped Beta Likelihood)
#
ms.data <- data.frame(time, fail)
parameters(ms.data) <- list(beta = beta0)
print(ms.data)
ms.fit <- ms( ~ gbeta.like(time, fail, beta), data = ms.data) #
#sum... | /find-b.R | no_license | robertandrewstevens/R | R | false | false | 382 | r | > find.b
function(time, fail, beta0 = 1)
{
# Find beta for grouped Crow-AMSAA
#
# requires function "gbeta.like" (Grouped Beta Likelihood)
#
ms.data <- data.frame(time, fail)
parameters(ms.data) <- list(beta = beta0)
print(ms.data)
ms.fit <- ms( ~ gbeta.like(time, fail, beta), data = ms.data) #
#sum... |
txt <- "College"
my_function <- function() {
txt = "SSIM"
paste("saneeth is from", txt)
}
my_function()
txt | /Saneeth/global_varIable.R | no_license | tactlabs/r-samples | R | false | false | 114 | r | txt <- "College"
my_function <- function() {
txt = "SSIM"
paste("saneeth is from", txt)
}
my_function()
txt |
##########################
# CSEA for Maher tcf4 mice
library(pSI)
library(WriteXLS)
if(FALSE){
source("/users/ajaffe/Lieber/Projects/KeriM/csea_functions.R")
labs = read.delim('tables/CSEA_mouse_cell_types.csv',stringsAsFactors = F)
rownames(labs) = toupper(labs$Label); labs[,1] = NULL
mouse = lapply(mouse,fu... | /tcf4_mouse/csea_tcf4_mouse.R | no_license | LieberInstitute/PTHS_mouse | R | false | false | 1,214 | r | ##########################
# CSEA for Maher tcf4 mice
library(pSI)
library(WriteXLS)
if(FALSE){
source("/users/ajaffe/Lieber/Projects/KeriM/csea_functions.R")
labs = read.delim('tables/CSEA_mouse_cell_types.csv',stringsAsFactors = F)
rownames(labs) = toupper(labs$Label); labs[,1] = NULL
mouse = lapply(mouse,fu... |
###########################################################################/**
# @RdocClass AromaUnitFracBCnBinaryFile
#
# @title "The AromaUnitFracBCnBinaryFile class"
#
# \description{
# @classhierarchy
#
# An AromaUnitFracBCnBinaryFile is a @see "AromaUnitTabularBinaryFile".
# }
#
# @synopsis
#
# \arguments{
# ... | /R/AromaUnitFracBCnBinaryFile.R | no_license | HenrikBengtsson/aroma.core | R | false | false | 863 | r | ###########################################################################/**
# @RdocClass AromaUnitFracBCnBinaryFile
#
# @title "The AromaUnitFracBCnBinaryFile class"
#
# \description{
# @classhierarchy
#
# An AromaUnitFracBCnBinaryFile is a @see "AromaUnitTabularBinaryFile".
# }
#
# @synopsis
#
# \arguments{
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getGenomeAndMask.R
\name{getGenomeAndMask}
\alias{getGenomeAndMask}
\title{getGenomeAndMask}
\usage{
getGenomeAndMask(genome, mask=NULL)
}
\arguments{
\item{genome}{the genome object or genome identifier.}
\item{mask}{the mask of the genome ... | /man/getGenomeAndMask.Rd | no_license | bernatgel/regioneR | R | false | true | 1,590 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getGenomeAndMask.R
\name{getGenomeAndMask}
\alias{getGenomeAndMask}
\title{getGenomeAndMask}
\usage{
getGenomeAndMask(genome, mask=NULL)
}
\arguments{
\item{genome}{the genome object or genome identifier.}
\item{mask}{the mask of the genome ... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
bhnoneq_LL <- function(stpar, year, Lbar, ss, Linf, K, Lc, nbreaks) {
.Call('_DLMtool_bhnoneq_LL', PACKAGE = 'DLMtool', stpar, year, Lbar, ss, Linf, K, Lc, nbreaks)
}
#' Rcpp version of th... | /R/RcppExports.R | no_license | Lijiuqi/DLMtool | R | false | false | 12,016 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
bhnoneq_LL <- function(stpar, year, Lbar, ss, Linf, K, Lc, nbreaks) {
.Call('_DLMtool_bhnoneq_LL', PACKAGE = 'DLMtool', stpar, year, Lbar, ss, Linf, K, Lc, nbreaks)
}
#' Rcpp version of th... |
#' Return a vector of all subcatchments downstream of a specified catchment
#' @param hierarchy a dataframe containing catchment id and next downstream (nextds) id fields
#' @param catchname a dataframe containing catchment id for which a vector of downstream catchment
#' ids will be returned.
#' @return a vector of d... | /R/alldownstream.R | no_license | lhmet-forks/catchstats | R | false | false | 1,928 | r | #' Return a vector of all subcatchments downstream of a specified catchment
#' @param hierarchy a dataframe containing catchment id and next downstream (nextds) id fields
#' @param catchname a dataframe containing catchment id for which a vector of downstream catchment
#' ids will be returned.
#' @return a vector of d... |
testlist <- list(doy = 4.70274965399612e+162, latitude = c(-1.76507117752212e+170, -7.88781071482505e+93, 7.97122499511694e-290, 6.44409915094729e+257, -3.37449889583673e-234, 6.44409915093636e+257, 9.00974448185223e-313, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615831395-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 819 | r | testlist <- list(doy = 4.70274965399612e+162, latitude = c(-1.76507117752212e+170, -7.88781071482505e+93, 7.97122499511694e-290, 6.44409915094729e+257, -3.37449889583673e-234, 6.44409915093636e+257, 9.00974448185223e-313, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809... |
df1 <- read.csv("F:/Ivy-BigData/BigData-IVY-R/Packages/forestfires.csv")
summary(df1)
#Question1
transform(df1,X_square=X*X)
#Question2
mean_FMMC=mean(df1[,5])
sum_FMMC=sum(df1[,5])
median_FMMC=median(df1[,5])
sd_FMMC=sd(df1[,5])
mean_DMC=mean(df1[,6])
sum_DMC=sum(df1[,6])
median_DMC=median(df1[,6])... | /Assignment_2_solutions_final.R | no_license | hiraltaunk/R-Assignments | R | false | false | 2,298 | r | df1 <- read.csv("F:/Ivy-BigData/BigData-IVY-R/Packages/forestfires.csv")
summary(df1)
#Question1
transform(df1,X_square=X*X)
#Question2
mean_FMMC=mean(df1[,5])
sum_FMMC=sum(df1[,5])
median_FMMC=median(df1[,5])
sd_FMMC=sd(df1[,5])
mean_DMC=mean(df1[,6])
sum_DMC=sum(df1[,6])
median_DMC=median(df1[,6])... |
library(dplyr)
set.seed(10);
n_seed <- sample.int(n = 1000, size = size)
load(sprintf(PATTERN, n_seed[1]))
print(n_seed[1])
msm_mod.def <- msm_mod
msm_mod_4.def <- msm_mod_4
cox_mod.def <- cox_mod
cox_mod_4.def <- cox_mod_4
disc_mod.def <- disc_mod
disc_mod_4.def <- disc_mod_4
for (.seed in n_seed[2:size]){
print(... | /aux_unio.R | no_license | Blanch-Font/PhD | R | false | false | 1,182 | r | library(dplyr)
set.seed(10);
n_seed <- sample.int(n = 1000, size = size)
load(sprintf(PATTERN, n_seed[1]))
print(n_seed[1])
msm_mod.def <- msm_mod
msm_mod_4.def <- msm_mod_4
cox_mod.def <- cox_mod
cox_mod_4.def <- cox_mod_4
disc_mod.def <- disc_mod
disc_mod_4.def <- disc_mod_4
for (.seed in n_seed[2:size]){
print(... |
#Andrew Dhawan
#Sept 8 2016
#make_heatmap_upload.R
#This code enables the generation of a heatmap from
#values within an excel file, as defined by the example
#input file heatmap_example.xlsx
library(readxl)
data <- read_excel("heatmap_example.xlsx")
rowNames <- data$`Drug`
data$`Drug` <-NULL
ec50_matrix <- data.mat... | /make_heatmap_upload.R | permissive | andrewdhawan/alk-collateral-sensitivity | R | false | false | 608 | r | #Andrew Dhawan
#Sept 8 2016
#make_heatmap_upload.R
#This code enables the generation of a heatmap from
#values within an excel file, as defined by the example
#input file heatmap_example.xlsx
library(readxl)
data <- read_excel("heatmap_example.xlsx")
rowNames <- data$`Drug`
data$`Drug` <-NULL
ec50_matrix <- data.mat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/VisCms.R
\name{visGroup}
\alias{visGroup}
\title{visGroup}
\usage{
visGroup(sce, group, dim_red = "TSNE")
}
\arguments{
\item{sce}{A \code{SingleCellExperiment} object.}
\item{group}{Character. Name of group/batch variable.
Needs to be one o... | /man/visGroup.Rd | no_license | zhoux85/CellMixS | R | false | true | 1,213 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/VisCms.R
\name{visGroup}
\alias{visGroup}
\title{visGroup}
\usage{
visGroup(sce, group, dim_red = "TSNE")
}
\arguments{
\item{sce}{A \code{SingleCellExperiment} object.}
\item{group}{Character. Name of group/batch variable.
Needs to be one o... |
library(plotly)
data=read.csv("Resultados_filt.csv",header=FALSE)
mat_data=data.matrix(data[2:nrow(data),2:ncol(data)])
rownames(mat_data)<-data[2:nrow(data),1]
colnames(mat_data)<-data[1,2:ncol(data)]
mat_data<-mat_data[,order(as.double(colnames(mat_data)))]
ax<-list(title = "Log10 axis")
p<-plot_ly(x=log10(as.double(... | /Tarea8-TransicionFase/Grafica.R | no_license | Norberto89/AnalisisDise-oAlgoritmos | R | false | false | 535 | r | library(plotly)
data=read.csv("Resultados_filt.csv",header=FALSE)
mat_data=data.matrix(data[2:nrow(data),2:ncol(data)])
rownames(mat_data)<-data[2:nrow(data),1]
colnames(mat_data)<-data[1,2:ncol(data)]
mat_data<-mat_data[,order(as.double(colnames(mat_data)))]
ax<-list(title = "Log10 axis")
p<-plot_ly(x=log10(as.double(... |
/run_analysis.R | no_license | vkati06/Getting-and-Cleaning-Data | R | false | false | 2,563 | r |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.