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 |
|---|---|---|---|---|---|---|---|---|---|
## FST
{
bil50=data.table::fread("/Users/kprovost/Dropbox (AMNH)/Dissertation/CHAPTER2_GENOMES/SON_CHI_Amphispiza_bilineata_50_FST_slidingwindow.fst.FIXED.txt",data.table = F)
bil75=data.table::fread("/Users/kprovost/Dropbox (AMNH)/Dissertation/CHAPTER2_GENOMES/SON_CHI_Amphispiza_bilineata_75_FST_slidingwindow.fst.FI... | /MISSING/compare_missing_data_100-75-50.R | no_license | kaiyaprovost/whole_genome_pipeline | R | false | false | 19,146 | r |
## FST
{
bil50=data.table::fread("/Users/kprovost/Dropbox (AMNH)/Dissertation/CHAPTER2_GENOMES/SON_CHI_Amphispiza_bilineata_50_FST_slidingwindow.fst.FIXED.txt",data.table = F)
bil75=data.table::fread("/Users/kprovost/Dropbox (AMNH)/Dissertation/CHAPTER2_GENOMES/SON_CHI_Amphispiza_bilineata_75_FST_slidingwindow.fst.FI... |
#' Attach to an existing tmux pane.
#'
#' @param name Numeric or string indicating the name of the existing pane.
#'
#' @return A `tmuxr_pane`.
#'
#' @export
attach_pane <- function(name) {
structure(list(name = as.character(name)), class = "tmuxr_pane")
}
#' List panes.
#'
#' @param target Parent session or window... | /R/pane.R | permissive | jonocarroll/tmuxr | R | false | false | 3,485 | r | #' Attach to an existing tmux pane.
#'
#' @param name Numeric or string indicating the name of the existing pane.
#'
#' @return A `tmuxr_pane`.
#'
#' @export
attach_pane <- function(name) {
structure(list(name = as.character(name)), class = "tmuxr_pane")
}
#' List panes.
#'
#' @param target Parent session or window... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nba-package.R
\name{NBAapi-package}
\alias{NBAapi-package}
\alias{NBAapi}
\title{Accessing the NBA API}
\description{
The \pkg{NBAapi} package is designed to make accessing the NBA API
(\link{stat.com.nba}) easier. It provides functions to do... | /man/NBAapi-package.Rd | permissive | imadmali/NBAapi | R | false | true | 509 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nba-package.R
\name{NBAapi-package}
\alias{NBAapi-package}
\alias{NBAapi}
\title{Accessing the NBA API}
\description{
The \pkg{NBAapi} package is designed to make accessing the NBA API
(\link{stat.com.nba}) easier. It provides functions to do... |
library(riem)
library(dplyr)
library(measurements)
library(summarytools)
library(visdat)
library(lubridate)
library(beepr)
library(ggplot2)
riem_networks()
riem_stations(network = "CA_ON_ASOS") %>% View()
parry_sound_riem <- riem_measures(station = "CXPC", date_start = "2000-01-01", date_end = "2018-12-21")
beep(... | /content/post/weather_comparison/parry_sound_riem.R | no_license | sharleenw/my_blog | R | false | false | 945 | r | library(riem)
library(dplyr)
library(measurements)
library(summarytools)
library(visdat)
library(lubridate)
library(beepr)
library(ggplot2)
riem_networks()
riem_stations(network = "CA_ON_ASOS") %>% View()
parry_sound_riem <- riem_measures(station = "CXPC", date_start = "2000-01-01", date_end = "2018-12-21")
beep(... |
library("RSQLite")
library("tm")
this.dir <- dirname(parent.frame(2)$ofile)
setwd(this.dir)
con <- dbConnect(SQLite(), dbname = "dictionary.sqlite")
getLastWords <- function (sentence, n = 1) {
sentence <- stripWhitespace(sentence)
words <- strsplit(sentence, " ")
tail(words[[1]], n)
}
substrRight <- function... | /app/prediction.R | no_license | tyz910/dsscapstone | R | false | false | 1,506 | r | library("RSQLite")
library("tm")
this.dir <- dirname(parent.frame(2)$ofile)
setwd(this.dir)
con <- dbConnect(SQLite(), dbname = "dictionary.sqlite")
getLastWords <- function (sentence, n = 1) {
sentence <- stripWhitespace(sentence)
words <- strsplit(sentence, " ")
tail(words[[1]], n)
}
substrRight <- function... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gateway.r
\name{connect}
\alias{connect}
\title{Connect and authenticate to the websocket via a client}
\usage{
connect(client)
}
\arguments{
\item{client}{A Client class/object}
}
\description{
Connect and authenticate to the websocket via a... | /man/connect.Rd | no_license | TheOnlyArtz/Pirate | R | false | true | 408 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gateway.r
\name{connect}
\alias{connect}
\title{Connect and authenticate to the websocket via a client}
\usage{
connect(client)
}
\arguments{
\item{client}{A Client class/object}
}
\description{
Connect and authenticate to the websocket via a... |
# Load data, skipping to the relevant section & loading it by length
hpc <- read.table(file = "household_power_consumption.txt",
sep = ";",
skip = 66637,
nrows = 2880,
as.is = T)
# Rename variables for readability
names(hpc) <- c("Date", "Time",... | /plot3.R | no_license | krysta-chaunceyallen/ExData_Plotting1 | R | false | false | 1,150 | r | # Load data, skipping to the relevant section & loading it by length
hpc <- read.table(file = "household_power_consumption.txt",
sep = ";",
skip = 66637,
nrows = 2880,
as.is = T)
# Rename variables for readability
names(hpc) <- c("Date", "Time",... |
setwd("D:/Study/Data Science/The Analytics Edge-edX/Assignment 2")
getwd()
FluTrain = read.csv("FluTrain.csv")
str(FluTrain)
summary(FluTrain)
which.max(FluTrain$ILI
FluTrain$Week[303]
which.max(FluTrain$Queries)
hist(FluTrain$ILI,ylab = "Freq", main = "Histogram of ILI")
plot(FluTrain$Queries,FluTrain$ILI)
plot(FluTr... | /Assignment_2/Flu.R | no_license | abhishekporwal1991/AnalyticsEdge_Assignments | R | false | false | 2,060 | r | setwd("D:/Study/Data Science/The Analytics Edge-edX/Assignment 2")
getwd()
FluTrain = read.csv("FluTrain.csv")
str(FluTrain)
summary(FluTrain)
which.max(FluTrain$ILI
FluTrain$Week[303]
which.max(FluTrain$Queries)
hist(FluTrain$ILI,ylab = "Freq", main = "Histogram of ILI")
plot(FluTrain$Queries,FluTrain$ILI)
plot(FluTr... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\docType{data}
\name{ianarootzonetlds}
\alias{ianarootzonetlds}
\title{IANA Root Zone Database}
\format{A data frame with 679 rows and 3 variables}
\usage{
data(ianarootzonetlds)
}
\description{
IANA Root Zone Database
\itemize{
\item \code{Domain}. top level domai... | /man/ianarootzonetlds.Rd | no_license | yvesago/iptools | R | false | false | 759 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\docType{data}
\name{ianarootzonetlds}
\alias{ianarootzonetlds}
\title{IANA Root Zone Database}
\format{A data frame with 679 rows and 3 variables}
\usage{
data(ianarootzonetlds)
}
\description{
IANA Root Zone Database
\itemize{
\item \code{Domain}. top level domai... |
library(testthat)
library(shinycaas)
test_check("shinycaas")
| /tests/testthat.R | permissive | maxheld83/shinycaas | R | false | false | 62 | r | library(testthat)
library(shinycaas)
test_check("shinycaas")
|
context("Import Tests")
test_that("df2genind works with haploids", {
skip_on_cran()
x <- matrix(sample(20), nrow = 10, ncol = 2)
res <- df2genind(x, ploidy = 1)
expect_that(sum(res@loc.n.all), equals(20))
expect_that(nInd(res), equals(10))
expect_that(nLoc(res), equals(2))
resdf <- genind2df(res)
expec... | /adegenet/tests/testthat/test_import.R | no_license | ingted/R-Examples | R | false | false | 4,810 | r | context("Import Tests")
test_that("df2genind works with haploids", {
skip_on_cran()
x <- matrix(sample(20), nrow = 10, ncol = 2)
res <- df2genind(x, ploidy = 1)
expect_that(sum(res@loc.n.all), equals(20))
expect_that(nInd(res), equals(10))
expect_that(nLoc(res), equals(2))
resdf <- genind2df(res)
expec... |
#' AdSense Management API
#' Accesses AdSense publishers' inventory and generates performance reports.
#'
#' Auto-generated code by googleAuthR::gar_create_api_skeleton
#' at 2017-03-05 19:23:57
#' filename: /Users/mark/dev/R/autoGoogleAPI/googleadsensev14.auto/R/adsense_functions.R
#' api_json: api_json
#'
#' @deta... | /B_analysts_sources_github/MarkEdmondson1234/autoGoogleAPI/adsense_functions.R | no_license | Irbis3/crantasticScrapper | R | false | false | 22,771 | r | #' AdSense Management API
#' Accesses AdSense publishers' inventory and generates performance reports.
#'
#' Auto-generated code by googleAuthR::gar_create_api_skeleton
#' at 2017-03-05 19:23:57
#' filename: /Users/mark/dev/R/autoGoogleAPI/googleadsensev14.auto/R/adsense_functions.R
#' api_json: api_json
#'
#' @deta... |
# FlatField fitting to a histogram
# Must run Filter_Image_Processing_Script.R to get masterflats
xNumber <- 3352
yNumber <- 2532
colors <- list()
scienceFrameFilters <- list()
masterFlats <- list()
if (exists("masterGFlat")) {
masterFlats[[length(masterFlats) + 1]] <- masterGFlat
colors[[length(colors) + 1]] <- r... | /FlatField_fitting.R | no_license | drewScerbo/HWS-Perkin-DR | R | false | false | 5,860 | r | # FlatField fitting to a histogram
# Must run Filter_Image_Processing_Script.R to get masterflats
xNumber <- 3352
yNumber <- 2532
colors <- list()
scienceFrameFilters <- list()
masterFlats <- list()
if (exists("masterGFlat")) {
masterFlats[[length(masterFlats) + 1]] <- masterGFlat
colors[[length(colors) + 1]] <- r... |
is.sample.wge=function(data,lambda,offset)
{
#----------------------------------------------------------------------------------
# Function h.value.wge
#-----------------------------------------------------------------------------------
#-----------------------------------
# Instantaneous frequency
#------------... | /R/is.sample.wge.R | no_license | cran/tswge | R | false | false | 2,176 | r | is.sample.wge=function(data,lambda,offset)
{
#----------------------------------------------------------------------------------
# Function h.value.wge
#-----------------------------------------------------------------------------------
#-----------------------------------
# Instantaneous frequency
#------------... |
#Some defection
library(webshot)
library(htmlwidgets)
library(knitr)
library(tidyr)
library(dplyr)
library(readr)
library(ggplot2)
library(tibble)
library(stringr)
library(gridExtra)
library(scales)
library(lubridate)
library(ggrepel)
library(reshape2)
library(kableExtra)
library(tm)
library(wordcloud)
library(wordcl... | /project.R | no_license | Zhenmin-Li/inls641 | R | false | false | 6,695 | r | #Some defection
library(webshot)
library(htmlwidgets)
library(knitr)
library(tidyr)
library(dplyr)
library(readr)
library(ggplot2)
library(tibble)
library(stringr)
library(gridExtra)
library(scales)
library(lubridate)
library(ggrepel)
library(reshape2)
library(kableExtra)
library(tm)
library(wordcloud)
library(wordcl... |
##### Model Selection#####
#### Problem 3 #### same year prediction ####
##### read data #####
my.data=read.csv("data3.csv",header=T)
names(my.data)=c("year","XC1","XC2","XC3","XC4","XF1","XF2","XF3","XF4","XO1","XO2","XO3","XO4","XU1","XU2","XU3","XU4")
##### full model #####
fmodel=lm(XO3~XC1+XC2+XC3+XC4+XF1+XF2+X... | /Project2.R | no_license | lkterry0301/Regression | R | false | false | 8,760 | r | ##### Model Selection#####
#### Problem 3 #### same year prediction ####
##### read data #####
my.data=read.csv("data3.csv",header=T)
names(my.data)=c("year","XC1","XC2","XC3","XC4","XF1","XF2","XF3","XF4","XO1","XO2","XO3","XO4","XU1","XU2","XU3","XU4")
##### full model #####
fmodel=lm(XO3~XC1+XC2+XC3+XC4+XF1+XF2+X... |
library(forecast)
library(fpp)
library(smooth)
library(readxl)
Cocacola=read_excel(file.choose())
View(Cocacola)
plot(Cocacola$Sales,type="o")
Q1 <- ifelse(grepl("Q1",Cocacola$Quarter),'1','0')
Q2 <- ifelse(grepl("Q2",Cocacola$Quarter),'1','0')
Q3 <- ifelse(grepl("Q3",Cocacola$Quarter),'1','0')
Q4 <- if... | /CocaCola Sales Forecasting.R | permissive | NandaKishore1801/R-codes | R | false | false | 5,752 | r | library(forecast)
library(fpp)
library(smooth)
library(readxl)
Cocacola=read_excel(file.choose())
View(Cocacola)
plot(Cocacola$Sales,type="o")
Q1 <- ifelse(grepl("Q1",Cocacola$Quarter),'1','0')
Q2 <- ifelse(grepl("Q2",Cocacola$Quarter),'1','0')
Q3 <- ifelse(grepl("Q3",Cocacola$Quarter),'1','0')
Q4 <- if... |
if(Sys.info()["user"]=="dlandy"){
setwd("/Users/dlandy/programs/Pyam/pyam_0_1")
Windows <- FALSE
} else {
if(Sys.info()["sysname"]=="Windows"){
setwd("C:\\Users\\Gage\\Documents\\GitHub\\Pyam\\pyam_0_1")
Windows <- TRUE
}else{
setwd("/Users/gageholden/Desktop/Pyam/pyam_0_1")
Windows <- FALSE
... | /pyam_0_1/pyamR.R | no_license | gageholden/Pyam | R | false | false | 9,286 | r | if(Sys.info()["user"]=="dlandy"){
setwd("/Users/dlandy/programs/Pyam/pyam_0_1")
Windows <- FALSE
} else {
if(Sys.info()["sysname"]=="Windows"){
setwd("C:\\Users\\Gage\\Documents\\GitHub\\Pyam\\pyam_0_1")
Windows <- TRUE
}else{
setwd("/Users/gageholden/Desktop/Pyam/pyam_0_1")
Windows <- FALSE
... |
# orginially: https://stackoverflow.com/questions/4974531/writing-musical-notes-to-a-wav-file
# R code adapted from Jim Hester's
# https://github.com/jimhester/presentations/tree/master/2018_02_03-You-can-make-a-package-in-20-minutes#readme
rate = 44100
multiplier = 2 * pi / rate
bpm = 80
default_volume = 5
notes <-... | /2018-06-27_goodpractice/demo_pkg.R | no_license | hfrick/presentations | R | false | false | 1,897 | r | # orginially: https://stackoverflow.com/questions/4974531/writing-musical-notes-to-a-wav-file
# R code adapted from Jim Hester's
# https://github.com/jimhester/presentations/tree/master/2018_02_03-You-can-make-a-package-in-20-minutes#readme
rate = 44100
multiplier = 2 * pi / rate
bpm = 80
default_volume = 5
notes <-... |
## ------------------------------------------------------------------------
#' @title Create template of dates
#' @description Create template of dates to mark each period for both flow and weather data
#' @export
create.template.date<-function (start.year=1949, end.year=2010) {
# set up data frames for loading ... | /r/create_templates.R | permissive | anarosner/headwaters | R | false | false | 4,399 | r | ## ------------------------------------------------------------------------
#' @title Create template of dates
#' @description Create template of dates to mark each period for both flow and weather data
#' @export
create.template.date<-function (start.year=1949, end.year=2010) {
# set up data frames for loading ... |
library(tidyverse)
library(e1071)
setwd("C:/Users/DELL/Downloads")
health <- read.csv('Health_Dataset.csv',header=TRUE, sep=',')
health_df=data.frame(health)
health_df# task 1
underwt=health_df[health_df$BMI<18.5,]
underwt
underwt_num=nrow(underwt)
underwt_num #task 2
normal=(health_df[healt... | /Lab 3 - IE 6200 - Sec 07 - Omkar Kalange.R | no_license | komkar123/Probability-Statistics-Assignments | R | false | false | 2,800 | r | library(tidyverse)
library(e1071)
setwd("C:/Users/DELL/Downloads")
health <- read.csv('Health_Dataset.csv',header=TRUE, sep=',')
health_df=data.frame(health)
health_df# task 1
underwt=health_df[health_df$BMI<18.5,]
underwt
underwt_num=nrow(underwt)
underwt_num #task 2
normal=(health_df[healt... |
# ----------------------------------------------------------------------
# Information
# ----------------------------------------------------------------------
#
# Interpolating population data
#
# BGSE Data Science 2016/17
# 14D003/14D004 Computing Project
# Group 7
#
# -----------------------------------------------... | /analysis/preInterpolatePopulation.R | no_license | hphoellwirth/bgse_cp16_group7 | R | false | false | 6,396 | r | # ----------------------------------------------------------------------
# Information
# ----------------------------------------------------------------------
#
# Interpolating population data
#
# BGSE Data Science 2016/17
# 14D003/14D004 Computing Project
# Group 7
#
# -----------------------------------------------... |
# Example for running useeior, see https://github.com/USEPA/useeior for more information on the model
# Must install useeior first to run example. See Wiki @ https://github.com/USEPA/useeior/Wiki for install instructions
# Run ?functionname to see documentation and function input options for the functions in this examp... | /examples/USEEIO20.R | permissive | MoLi7/useeior | R | false | false | 970 | r | # Example for running useeior, see https://github.com/USEPA/useeior for more information on the model
# Must install useeior first to run example. See Wiki @ https://github.com/USEPA/useeior/Wiki for install instructions
# Run ?functionname to see documentation and function input options for the functions in this examp... |
#' Highest Posterior Density
#'
#' This function calculates HPD for each free parameter
#'
#'
#' @param particleDataFrame particleDataFrame output from doRun
#' @param percent Probability content of HPD
#' @param returnData Option to return data that falls within HPD interval
#' @return Returns a matrix with weighte... | /R/HPD.R | no_license | JakeJing/treevo | R | false | false | 1,591 | r | #' Highest Posterior Density
#'
#' This function calculates HPD for each free parameter
#'
#'
#' @param particleDataFrame particleDataFrame output from doRun
#' @param percent Probability content of HPD
#' @param returnData Option to return data that falls within HPD interval
#' @return Returns a matrix with weighte... |
## function to check analytical gradient fo GCV/UBRE...
check.analytical <- function(object,data, del=1e-6){
# require(mgcv)
G<-gam(object$formula,object$family,data,fit=FALSE)
n.terms <- length(G$smooth) # number of smooths in the model
n <- nrow(G$X)
intercept <- G$intercept ## TR... | /R/check.analytical.R | no_license | tjmahr/scam | R | false | false | 1,790 | r | ## function to check analytical gradient fo GCV/UBRE...
check.analytical <- function(object,data, del=1e-6){
# require(mgcv)
G<-gam(object$formula,object$family,data,fit=FALSE)
n.terms <- length(G$smooth) # number of smooths in the model
n <- nrow(G$X)
intercept <- G$intercept ## TR... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{pc50}
\alias{pc50}
\title{Runs the causal algorithm PC50 on a dataset}
\usage{
pc50(
df,
initialGraph = NULL,
alpha = 0.05,
threads = -1L,
fdr = FALSE,
rank = FALSE,
verbose = FALSE
)
}
\arguments{
\item{df}{... | /man/pc50.Rd | no_license | tyler-lovelace1/rCausalMGM | R | false | true | 1,168 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{pc50}
\alias{pc50}
\title{Runs the causal algorithm PC50 on a dataset}
\usage{
pc50(
df,
initialGraph = NULL,
alpha = 0.05,
threads = -1L,
fdr = FALSE,
rank = FALSE,
verbose = FALSE
)
}
\arguments{
\item{df}{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotfunc.R
\name{plot_qq2}
\alias{plot_qq2}
\title{plot functions in MEPHAS}
\usage{
plot_qq2(data2)
}
\arguments{
\item{data2}{input data frame}
}
\value{
2 qq plot in mephas
}
\description{
plot functions in MEPHAS
}
\examples{
# NOT Run
}... | /man/plot_qq2.Rd | permissive | mephas/mephas.tools | R | false | true | 321 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotfunc.R
\name{plot_qq2}
\alias{plot_qq2}
\title{plot functions in MEPHAS}
\usage{
plot_qq2(data2)
}
\arguments{
\item{data2}{input data frame}
}
\value{
2 qq plot in mephas
}
\description{
plot functions in MEPHAS
}
\examples{
# NOT Run
}... |
#### Code in this file came from initial stage of this project, so most of them was not used
#### but they can still be meaningful
#### This is my initial endeavour to extract feature through a loop, which later was not used
library(rhdf5)
library(pbapply)
dir.h5 <- './data/data/'
files.list <- as.matrix(list.file... | /lib/project_exploration.R | no_license | TZstatsADS/Fall2016-proj4-pf2317 | R | false | false | 2,568 | r | #### Code in this file came from initial stage of this project, so most of them was not used
#### but they can still be meaningful
#### This is my initial endeavour to extract feature through a loop, which later was not used
library(rhdf5)
library(pbapply)
dir.h5 <- './data/data/'
files.list <- as.matrix(list.file... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{write_f2}
\alias{write_f2}
\title{Write blocked f2 estimates to disk}
\usage{
write_f2(f2_arrs, outdir, overwrite = FALSE)
}
\arguments{
\item{f2_arrs}{3d arrays with blocked f2, allele frequency products, and counts for each popul... | /man/write_f2.Rd | no_license | razb/admixtools | R | false | true | 849 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{write_f2}
\alias{write_f2}
\title{Write blocked f2 estimates to disk}
\usage{
write_f2(f2_arrs, outdir, overwrite = FALSE)
}
\arguments{
\item{f2_arrs}{3d arrays with blocked f2, allele frequency products, and counts for each popul... |
#****************************************************************************************************
# libraries ####
#****************************************************************************************************
library("magrittr")
library("plyr") # needed for ldply; must be loaded BEFORE dpl... | /documentation/programs/create_documentation.r | no_license | donboyd5/DSRIP | R | false | false | 1,905 | r |
#****************************************************************************************************
# libraries ####
#****************************************************************************************************
library("magrittr")
library("plyr") # needed for ldply; must be loaded BEFORE dpl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/webdisr-package.R
\docType{package}
\name{webdisr-package}
\alias{webdisr}
\alias{webdisr-package}
\title{webdisr}
\description{
webdisr
}
\author{
Scott Chamberlain \email{myrmecocystus@gmail.com}
}
\keyword{package}
| /man/webdisr-package.Rd | no_license | sckott/webdisr | R | false | true | 297 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/webdisr-package.R
\docType{package}
\name{webdisr-package}
\alias{webdisr}
\alias{webdisr-package}
\title{webdisr}
\description{
webdisr
}
\author{
Scott Chamberlain \email{myrmecocystus@gmail.com}
}
\keyword{package}
|
setwd("/users/sharanjeetsingh/Desktop/Data Science")
data_full <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data1 <- subset(data_full, Date %in% c("1/2/2007","2/2/2007"))
data1$Date <- as.Date(data1$Date,... | /Plot2.R | no_license | sharanjeetsingh89/ExData_Plotting1 | R | false | false | 625 | r | setwd("/users/sharanjeetsingh/Desktop/Data Science")
data_full <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data1 <- subset(data_full, Date %in% c("1/2/2007","2/2/2007"))
data1$Date <- as.Date(data1$Date,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qtl_fastqtl.R
\name{fastqtlTabixFetchGenes}
\alias{fastqtlTabixFetchGenes}
\title{Fetch particular genes from tabix indexed FastQTL output file.}
\usage{
fastqtlTabixFetchGenes(phenotype_ranges, tabix_file)
}
\arguments{
\item{phenotype_range... | /seqUtils/man/fastqtlTabixFetchGenes.Rd | permissive | kauralasoo/macrophage-tuQTLs | R | false | true | 597 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qtl_fastqtl.R
\name{fastqtlTabixFetchGenes}
\alias{fastqtlTabixFetchGenes}
\title{Fetch particular genes from tabix indexed FastQTL output file.}
\usage{
fastqtlTabixFetchGenes(phenotype_ranges, tabix_file)
}
\arguments{
\item{phenotype_range... |
`barnardw.test` <-
function(n1,n2,n3,n4,dp=0.001) {
return(barnard.test(n1,n2,n3,n4,dp=dp,pooled=TRUE))
}
| /R/barnardw.test.R | no_license | kerguler/Barnard | R | false | false | 110 | r | `barnardw.test` <-
function(n1,n2,n3,n4,dp=0.001) {
return(barnard.test(n1,n2,n3,n4,dp=dp,pooled=TRUE))
}
|
#' Extract theta parameters from a merMod model
#' @description A convenience function that returns the theta parameters for a
#' \code{\link{merMod}} obejct.
#' @param merMod a valide merMod object
#'
#' @return a vector of the covrariance, theta, parameters from a \code{\link{merMod}}
#' @seealso merMod
#' @ex... | /merTools/R/subBoot.R | no_license | ingted/R-Examples | R | false | false | 2,447 | r | #' Extract theta parameters from a merMod model
#' @description A convenience function that returns the theta parameters for a
#' \code{\link{merMod}} obejct.
#' @param merMod a valide merMod object
#'
#' @return a vector of the covrariance, theta, parameters from a \code{\link{merMod}}
#' @seealso merMod
#' @ex... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variable_label.R
\docType{methods}
\name{variable_label,labelled-method}
\alias{variable_label,labelled-method}
\alias{variable_label,papaja_labelled-method}
\title{Extract label from a 'labelled' vector}
\usage{
\S4method{variable_label}{lab... | /man/variable_label-labelled.Rd | permissive | mariusbarth/annotate4 | R | false | true | 682 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variable_label.R
\docType{methods}
\name{variable_label,labelled-method}
\alias{variable_label,labelled-method}
\alias{variable_label,papaja_labelled-method}
\title{Extract label from a 'labelled' vector}
\usage{
\S4method{variable_label}{lab... |
results_generation <- function(compile = TRUE){
if(compile == TRUE){
# Compile and load the normal data
normal_data = aliviateR::load_mrdata(path = file.path('Data', 'normal_data'), pattern = '.RData')
# Compile and laod the linear models
lm_data = aliviateR::load_mrdata(path = file.path('Data', 'lm... | /R/results_generation.R | no_license | avalcarcel9/ProjectTemplate | R | false | false | 481 | r |
results_generation <- function(compile = TRUE){
if(compile == TRUE){
# Compile and load the normal data
normal_data = aliviateR::load_mrdata(path = file.path('Data', 'normal_data'), pattern = '.RData')
# Compile and laod the linear models
lm_data = aliviateR::load_mrdata(path = file.path('Data', 'lm... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 29091
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 29091
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/trafficlight-controller/tlc04-nonuniform-... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Miller-Marin/trafficlight-controller/tlc04-nonuniform-depth-30/tlc04-nonuniform-depth-30.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 694 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 29091
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 29091
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/trafficlight-controller/tlc04-nonuniform-... |
###
### This two functions calculates inverse matrix and cache it.
### If the same matrix is use, then the inverse its not re-calculate
### and the function return cached matrix.
###
## This function transforms a matrix into a data structure.
## This data structure is a list that contains a cached matrix
## and so... | /cachematrix.R | no_license | lapenido/ProgrammingAssignment2 | R | false | false | 1,395 | r | ###
### This two functions calculates inverse matrix and cache it.
### If the same matrix is use, then the inverse its not re-calculate
### and the function return cached matrix.
###
## This function transforms a matrix into a data structure.
## This data structure is a list that contains a cached matrix
## and so... |
library("dataRetrieval")
library("tidyverse")
library("Kendall")
library("EflowStats")
library("dplyr")
library("lubridate")
library("zoo")
library("xts")
library("boot")
library("xlsx")
library("trend")
library("smwrBase")
library("broom")
library("rkt")
library("zyp")
library("EGRET")
library("glue")
###############... | /Kirk Quantile-Kendall.R | no_license | vroland84/RESTORE-Trend-Analysis | R | false | false | 1,381 | r | library("dataRetrieval")
library("tidyverse")
library("Kendall")
library("EflowStats")
library("dplyr")
library("lubridate")
library("zoo")
library("xts")
library("boot")
library("xlsx")
library("trend")
library("smwrBase")
library("broom")
library("rkt")
library("zyp")
library("EGRET")
library("glue")
###############... |
merge_id_crosswalks <- function(
merged_ind,
lakes_sf_ind = '1_crosswalk_fetch/out/lakes_sf.rds.ind',
wqp_nhd_ind = '1_crosswalk_fetch/out/wqp_nhdLookup.rds.ind'
) {
lakes_sf <- readRDS(sc_retrieve(lakes_sf_ind))
wqp_nhd <- readRDS(sc_retrieve(wqp_nhd_ind))
# join such that we end up with all lakes listed... | /2_crosswalk_munge/src/merge_id_crosswalks.R | no_license | wdwatkins/lake-temperature-model-prep | R | false | false | 732 | r | merge_id_crosswalks <- function(
merged_ind,
lakes_sf_ind = '1_crosswalk_fetch/out/lakes_sf.rds.ind',
wqp_nhd_ind = '1_crosswalk_fetch/out/wqp_nhdLookup.rds.ind'
) {
lakes_sf <- readRDS(sc_retrieve(lakes_sf_ind))
wqp_nhd <- readRDS(sc_retrieve(wqp_nhd_ind))
# join such that we end up with all lakes listed... |
#' @title Spatial partial dependence plots
#'
#' @description
#'
#' Project partial dependence surfaces in the real, geography-having world: see the spatial signal of any given variable's contribution to the model predictions.
#'
#' @param model A dbarts model object
#' @param envs The rasterStack of environmental var... | /R/spartials.R | no_license | cjcarlson/embarcadero | R | false | false | 5,347 | r | #' @title Spatial partial dependence plots
#'
#' @description
#'
#' Project partial dependence surfaces in the real, geography-having world: see the spatial signal of any given variable's contribution to the model predictions.
#'
#' @param model A dbarts model object
#' @param envs The rasterStack of environmental var... |
# Big Data na Pratica 1 - Temperatura Media nas Cidades Brasileiras
# Dataset:
# Berkeley Earth
# http://berkeleyearth.org/data
# TemperaturasGlobais.csv ~ 78 MB (zip) ~ 496 MB (unzip)
# Instalando e Carregando Pacotes
install.packages("readr")
install.packages("data.table")
library(readr)
library(dplyr)
library(ggpl... | /RFundamentos/parte02/02 - Big Data na Prática.r | no_license | FernandoNesi/dataScience | R | false | false | 2,650 | r | # Big Data na Pratica 1 - Temperatura Media nas Cidades Brasileiras
# Dataset:
# Berkeley Earth
# http://berkeleyearth.org/data
# TemperaturasGlobais.csv ~ 78 MB (zip) ~ 496 MB (unzip)
# Instalando e Carregando Pacotes
install.packages("readr")
install.packages("data.table")
library(readr)
library(dplyr)
library(ggpl... |
# Performance Permutation
#' @import graphics
# declare global variables (i.e. the foreach iterators)
globalVariables(c('p', 'fold'))
#' @title Monte Carlo Permutation of Model Performance
#' @description Applies Monte Carlo permutations to user specified models.
#' The user can either use the results
#' from \code... | /R/perm.class.R | no_license | cdeterman/OmicsMarkeR | R | false | false | 9,153 | r | # Performance Permutation
#' @import graphics
# declare global variables (i.e. the foreach iterators)
globalVariables(c('p', 'fold'))
#' @title Monte Carlo Permutation of Model Performance
#' @description Applies Monte Carlo permutations to user specified models.
#' The user can either use the results
#' from \code... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 8226
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8225
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8225
c
c Input Parameter (command line, fil... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Sauer-Reimer/ISCAS89/s01423_PR_7_20/s01423_PR_7_20.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 718 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 8226
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8225
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 8225
c
c Input Parameter (command line, fil... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/oesophagus.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.6,family="gaussian",standardize=TRUE)
sink('./oesophagus_065.txt',append=TR... | /Model/EN/AvgRank/oesophagus/oesophagus_065.R | no_license | esbgkannan/QSMART | R | false | false | 353 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/oesophagus.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.6,family="gaussian",standardize=TRUE)
sink('./oesophagus_065.txt',append=TR... |
#-Get user profile from user name-
#username = 'asmita_poddar'
username = 'BarackObama'
user <- getUser(username)
#@statusesCount
user$id
tweets_raw <- userTimeline(username, n = 1000, includeRts = FALSE, excludeReplies = TRUE)
dfT = twListToDF(tweets_raw) | /user_profile.r | no_license | asmitapoddar/Twitter-Crawling-and-Visualization | R | false | false | 267 | r | #-Get user profile from user name-
#username = 'asmita_poddar'
username = 'BarackObama'
user <- getUser(username)
#@statusesCount
user$id
tweets_raw <- userTimeline(username, n = 1000, includeRts = FALSE, excludeReplies = TRUE)
dfT = twListToDF(tweets_raw) |
require(lubridate)
# Set working directory
# Read data locally
setwd("~/Dropbox/R/Learning/ExploratoryDataAnalysis/Project1")
ElecDataRaw = read.table("household_power_consumption.txt", header=T, sep=";", na.strings="?", colClasses=c( rep("character", 2), rep("numeric", 7)))
# Set Date variable to proper format
El... | /Plot3.R | no_license | manucito/ExData_Plotting1 | R | false | false | 1,088 | r | require(lubridate)
# Set working directory
# Read data locally
setwd("~/Dropbox/R/Learning/ExploratoryDataAnalysis/Project1")
ElecDataRaw = read.table("household_power_consumption.txt", header=T, sep=";", na.strings="?", colClasses=c( rep("character", 2), rep("numeric", 7)))
# Set Date variable to proper format
El... |
## rankall function takes two arguments: an outcome (outcome) and a hospital rank.
## It reads the outcome-of-care-measures.csv file and returns a data frame containing the names
## of the hospitals that are the best in their respective states for 30-day heart attack death rates.
## Hospitals that do not have data on ... | /rankall.R | no_license | danielzcoelho/coursera-johnHopkins-rProgramming-week2-3 | R | false | false | 2,972 | r | ## rankall function takes two arguments: an outcome (outcome) and a hospital rank.
## It reads the outcome-of-care-measures.csv file and returns a data frame containing the names
## of the hospitals that are the best in their respective states for 30-day heart attack death rates.
## Hospitals that do not have data on ... |
#' Create a schema for a JSON document or collection
#'
#' Returns a JSON document that captures the 'schema' of the collection of
#' document(s) passed in, as a JSON string. The schema collapses complex
#' JSON into a simple form using the following rules:
#'
#' \itemize{
#' \item string -> "string", e.g., "... | /R/json_schema.R | no_license | jimtyhurst/tidyjson | R | false | false | 5,163 | r | #' Create a schema for a JSON document or collection
#'
#' Returns a JSON document that captures the 'schema' of the collection of
#' document(s) passed in, as a JSON string. The schema collapses complex
#' JSON into a simple form using the following rules:
#'
#' \itemize{
#' \item string -> "string", e.g., "... |
########################################################################################################################
#Exemplo
#fator1<-c(rep(1,6),rep(2,6))
#fator2<-c(rep(1,3),rep(2,3),rep(1,3),rep(2,3))
#repet<-rep(1:3,4)
#resp<-c(10.0,10.8,9.8,10.3,11.3,10.3,9.7,10.1,10.2,9.4,11.6,9.1)
#respAd<-c(10.6,10.6,... | /R/fat2.ad.dic.r | no_license | josesaribeiro/ExpDes.pt | R | false | false | 16,052 | r | ########################################################################################################################
#Exemplo
#fator1<-c(rep(1,6),rep(2,6))
#fator2<-c(rep(1,3),rep(2,3),rep(1,3),rep(2,3))
#repet<-rep(1:3,4)
#resp<-c(10.0,10.8,9.8,10.3,11.3,10.3,9.7,10.1,10.2,9.4,11.6,9.1)
#respAd<-c(10.6,10.6,... |
library(shiny)
# use the below options code if you wish to increase the file input limit, in this example file input limit is increased from 5MB to 9MB
# options(shiny.maxRequestSize = 9*1024^2)
shinyServer(function(input,output){
# This reactive function will take the inputs from UI.R and use them for read... | /Server.R | no_license | MundyMSDS/DATA607 | R | false | false | 1,709 | r | library(shiny)
# use the below options code if you wish to increase the file input limit, in this example file input limit is increased from 5MB to 9MB
# options(shiny.maxRequestSize = 9*1024^2)
shinyServer(function(input,output){
# This reactive function will take the inputs from UI.R and use them for read... |
#' Generate a data frame containing all the democracy measures accessible from
#' this package
#'
#' This function automates the process of joinning together all the archived and
#' downloadable datasets in this package, producing a comprehensive data frame
#' with every democracy measure. It automatically converts eac... | /R/generate_democracy_scores_dataset.R | no_license | matthewstidham/democracyData | R | false | false | 47,751 | r | #' Generate a data frame containing all the democracy measures accessible from
#' this package
#'
#' This function automates the process of joinning together all the archived and
#' downloadable datasets in this package, producing a comprehensive data frame
#' with every democracy measure. It automatically converts eac... |
# Load ggplot2 library
require(ggplot2)
# Loading provided datasets - loading from local machine
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Coal combustion related sources
SCC.coal = SCC[grepl("coal", SCC$Short.Name, ignore.case=TRUE),]
# Merge two data sets
merge <- mer... | /plot4.R | no_license | joecabz/Exploratory-Data-Analysis-Project-2 | R | false | false | 1,118 | r | # Load ggplot2 library
require(ggplot2)
# Loading provided datasets - loading from local machine
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Coal combustion related sources
SCC.coal = SCC[grepl("coal", SCC$Short.Name, ignore.case=TRUE),]
# Merge two data sets
merge <- mer... |
\name{assortedmating}
\alias{assortedmating}
\title{ assortedmating - Calculates from SNP genotyped parents and children mendelian seggregation parameters and Outbreading coefficients }
\description{
Calculates from SNP genotyped parents and children mendelian seggregation parameters and Outbreading coefficients.
As ... | /programming/Rcode/Rexamples/MAN/assortedmating.Rd | permissive | DannyArends/Other | R | false | false | 3,186 | rd | \name{assortedmating}
\alias{assortedmating}
\title{ assortedmating - Calculates from SNP genotyped parents and children mendelian seggregation parameters and Outbreading coefficients }
\description{
Calculates from SNP genotyped parents and children mendelian seggregation parameters and Outbreading coefficients.
As ... |
# returns breaks for a histogram that define bins that grow exponentially
logbreaks <- function(data, pow=2) {
a = floor(min(data)**(1/pow))
b = ceiling(max(data)**(1/pow))
return((a:b)**pow)
}
# plots the histogram of the data as a scatterplot, using bins that grow
# exponentially
#
# the default is to use the ... | /src/rodrigo.R | no_license | rodrigorgs/swasr | R | false | false | 929 | r | # returns breaks for a histogram that define bins that grow exponentially
logbreaks <- function(data, pow=2) {
a = floor(min(data)**(1/pow))
b = ceiling(max(data)**(1/pow))
return((a:b)**pow)
}
# plots the histogram of the data as a scatterplot, using bins that grow
# exponentially
#
# the default is to use the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discovr_data.R
\docType{data}
\name{zibarras_2008}
\alias{zibarras_2008}
\title{Zibarras et al. (2008) data}
\format{
A tibble with 207 rows and 12 variables.
}
\source{
\href{https://www.discovr.rocks/csv/zibarras_2008.csv}{www.discovr.rocks... | /man/zibarras_2008.Rd | no_license | amthapar/discovr | R | false | true | 2,639 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discovr_data.R
\docType{data}
\name{zibarras_2008}
\alias{zibarras_2008}
\title{Zibarras et al. (2008) data}
\format{
A tibble with 207 rows and 12 variables.
}
\source{
\href{https://www.discovr.rocks/csv/zibarras_2008.csv}{www.discovr.rocks... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.em.glm.summary.R
\name{plot.em.glm.summary}
\alias{plot.em.glm.summary}
\title{Error bar plot of coefficients and errors to inspect class overlap.}
\usage{
\method{plot}{em.glm.summary}(x, ...)
}
\arguments{
\item{x}{An EM summary object... | /man/plot.em.glm.summary.Rd | no_license | Stat-Cook/emax.glm | R | false | true | 700 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.em.glm.summary.R
\name{plot.em.glm.summary}
\alias{plot.em.glm.summary}
\title{Error bar plot of coefficients and errors to inspect class overlap.}
\usage{
\method{plot}{em.glm.summary}(x, ...)
}
\arguments{
\item{x}{An EM summary object... |
rm(list = ls(envir = globalenv()))
# setwd("F:/Desktop/restopicer/restopicer-research/NetworkBasedTopicModel")
#####
# required library
#####
source(file = "code/utilities.R")
library(RMySQL)
##############
# demo data Fetching From MySQL DB
##############
conn <- dbConnect(MySQL(), dbname = "restopicer_resource_info")... | /restopicer-research/NetworkBasedTopicModel/code/demo/demoDataFetch.R | permissive | JoshuaZe/restopicer | R | false | false | 2,644 | r | rm(list = ls(envir = globalenv()))
# setwd("F:/Desktop/restopicer/restopicer-research/NetworkBasedTopicModel")
#####
# required library
#####
source(file = "code/utilities.R")
library(RMySQL)
##############
# demo data Fetching From MySQL DB
##############
conn <- dbConnect(MySQL(), dbname = "restopicer_resource_info")... |
setwd("D:/JMS/GWAS Results/MLM/Comp")
files <- list.files(pattern = "\\.GWAS.Results.csv$", recursive = TRUE)
data2=lapply(files, read.table, header=T, sep=",")
for (i in 1:length(data2)){
markers = dim(data2[[i]])
data2[[i]]<-cbind(data2[[i]],files[i],markers[1])
}
data_rbind <- do.call("rbind", data2)
... | /CompileSignificantSNPs.R | no_license | SoylabSingh/Soy-Meta-GWAS | R | false | false | 639 | r | setwd("D:/JMS/GWAS Results/MLM/Comp")
files <- list.files(pattern = "\\.GWAS.Results.csv$", recursive = TRUE)
data2=lapply(files, read.table, header=T, sep=",")
for (i in 1:length(data2)){
markers = dim(data2[[i]])
data2[[i]]<-cbind(data2[[i]],files[i],markers[1])
}
data_rbind <- do.call("rbind", data2)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.inspector_operations.R
\name{list_event_subscriptions}
\alias{list_event_subscriptions}
\title{Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template}
\usage{
list_event_subs... | /service/paws.inspector/man/list_event_subscriptions.Rd | permissive | CR-Mercado/paws | R | false | true | 1,668 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.inspector_operations.R
\name{list_event_subscriptions}
\alias{list_event_subscriptions}
\title{Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template}
\usage{
list_event_subs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cairo-svg-surface.R
\name{cairo_svg_version_to_string}
\alias{cairo_svg_version_to_string}
\title{cairo_svg_version_to_string}
\usage{
cairo_svg_version_to_string(version)
}
\arguments{
\item{version}{[\code{int}] a version id}
}
\value{
[\co... | /man/cairo_svg_version_to_string.Rd | permissive | coolbutuseless/cairocore | R | false | true | 992 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cairo-svg-surface.R
\name{cairo_svg_version_to_string}
\alias{cairo_svg_version_to_string}
\title{cairo_svg_version_to_string}
\usage{
cairo_svg_version_to_string(version)
}
\arguments{
\item{version}{[\code{int}] a version id}
}
\value{
[\co... |
#' Visualization app for the extended generalized gamma distribution
#'
#' @description Description
#'
#' @importFrom shinythemes shinytheme
#' @importFrom shinyAce aceEditor
#' @importFrom shiny fixedPanel uiOutput HTML htmlOutput sidebarLayout renderUI titlePanel
#' @importFrom shiny brushedPoints brushOpts br hr che... | /in-work/app_functions/distribution_egeng.R | no_license | whaleshark16/teachingApps | R | false | false | 2,231 | r | #' Visualization app for the extended generalized gamma distribution
#'
#' @description Description
#'
#' @importFrom shinythemes shinytheme
#' @importFrom shinyAce aceEditor
#' @importFrom shiny fixedPanel uiOutput HTML htmlOutput sidebarLayout renderUI titlePanel
#' @importFrom shiny brushedPoints brushOpts br hr che... |
library(e1071)
library(dplyr)
library(ggplot2)
library(psych)
library(caTools)
# overview of the data
health <- read.csv("D:\\Msc Data Analytics\\Data Mining And Machine Learning\\Final Dataset for Project\\train_2v.csv")
summary(health)
# we have three data types in the dataset: categorical, numerical, IDs... | /Healthcare Combined.R | no_license | AdityaDarak22/Machine-Learning-in-R | R | false | false | 1,113 | r | library(e1071)
library(dplyr)
library(ggplot2)
library(psych)
library(caTools)
# overview of the data
health <- read.csv("D:\\Msc Data Analytics\\Data Mining And Machine Learning\\Final Dataset for Project\\train_2v.csv")
summary(health)
# we have three data types in the dataset: categorical, numerical, IDs... |
########################
makeCacheMatrix <- function(x = numeric()) {
x_inv <- NULL
set <- function(y) {
x <<- y
x_inv <<- NULL
}
get <- function() x
setInverse <- function(inverseM) x_inv <<- inverseM
getInverse <- function() x_inv
list(set = set, get = get,
setInverse = setInverse,
... | /Assignment_2_upd.R | no_license | vassbar/R_programming | R | false | false | 1,107 | r |
########################
makeCacheMatrix <- function(x = numeric()) {
x_inv <- NULL
set <- function(y) {
x <<- y
x_inv <<- NULL
}
get <- function() x
setInverse <- function(inverseM) x_inv <<- inverseM
getInverse <- function() x_inv
list(set = set, get = get,
setInverse = setInverse,
... |
## The function creates one matrix object which is stored in the cache and then inverse that fuction.
makeCacheMatrix <- function(x = matrix()) {
flag <- NULL
set <- function(y) {
x <<- y
flag <<- NULL
}
get <- function() x
setinv <- function(inverse) flag <<- inverse
getinv <- function() flag
list(set=se... | /cachematrix.R | no_license | YIVV/ProgrammingAssignment2 | R | false | false | 797 | r |
## The function creates one matrix object which is stored in the cache and then inverse that fuction.
makeCacheMatrix <- function(x = matrix()) {
flag <- NULL
set <- function(y) {
x <<- y
flag <<- NULL
}
get <- function() x
setinv <- function(inverse) flag <<- inverse
getinv <- function() flag
list(set=se... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 82640
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 82632
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 82632
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Wintersteiger/LinearBitvectorRankingFunction/network_ndis_coisdn_TpiParam.c/network_ndis_coisdn_TpiParam.c.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 817 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 82640
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 82632
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 82632
c
c Input Parameter (command line, ... |
### TERN LANDSCAPES
# Soil pH (CaCl2)
# Author: Brendan Malone
# Email: brendan.malone@csiro.au
# created: 20.9.22
# modified: 20.9.22
# CODE PURPOSE
# # Depth 1 [0-5cm]
# Create a model data space object to use for assessing where model extrapolation is good and problematic
# fixed parameters
vart<- "ph_4b"
depth<... | /Production/DSM/pH/digital_soil_mapping/model_space/ph4b/geom_space_ph4b_d1.R | permissive | AusSoilsDSM/SLGA | R | false | false | 2,012 | r | ### TERN LANDSCAPES
# Soil pH (CaCl2)
# Author: Brendan Malone
# Email: brendan.malone@csiro.au
# created: 20.9.22
# modified: 20.9.22
# CODE PURPOSE
# # Depth 1 [0-5cm]
# Create a model data space object to use for assessing where model extrapolation is good and problematic
# fixed parameters
vart<- "ph_4b"
depth<... |
fly.info.movement.T = fly.info.end[((fly.info.end$Genotype == "WT") |
(fly.info.end$Genotype == "CS")) &
(fly.info.end$Category =="T"), ]
fly.info.movement.R = fly.info.end[((fly.info.end$Genotype == "WT") |
... | /lm_analysis.R | no_license | Ruichensun/fly_source | R | false | false | 888 | r | fly.info.movement.T = fly.info.end[((fly.info.end$Genotype == "WT") |
(fly.info.end$Genotype == "CS")) &
(fly.info.end$Category =="T"), ]
fly.info.movement.R = fly.info.end[((fly.info.end$Genotype == "WT") |
... |
###############################################################################################ll.
# Grid-Integrated Electric Mobility Model (GEM)
#
# This makes plots related to mobility.
#
# Argument: the results list containing GAMS outputs and the plotting directory
################################################... | /src/plots-mobility.R | permissive | LBNL-UCB-STI/gem | R | false | false | 74,355 | r | ###############################################################################################ll.
# Grid-Integrated Electric Mobility Model (GEM)
#
# This makes plots related to mobility.
#
# Argument: the results list containing GAMS outputs and the plotting directory
################################################... |
# Run from $GGOBI_HOME for the moment.
library(Rggobi)
# init.ggobi(c("Rggobi", "--plugin=plugins/GraphLayout/plugin.xml"))
g = ggobi("~/Projects/ggobi/ggobi/data/snetwork.xml", args = "--plugin=plugins/GraphLayout/plugin.xml",
"--plugin=plugins/GraphAction/plugin.xml")
info = getPluginInfo.ggobi()$Grap... | /test/next-version/plugin-radial.r | no_license | rcodo/rggobi | R | false | false | 854 | r | # Run from $GGOBI_HOME for the moment.
library(Rggobi)
# init.ggobi(c("Rggobi", "--plugin=plugins/GraphLayout/plugin.xml"))
g = ggobi("~/Projects/ggobi/ggobi/data/snetwork.xml", args = "--plugin=plugins/GraphLayout/plugin.xml",
"--plugin=plugins/GraphAction/plugin.xml")
info = getPluginInfo.ggobi()$Grap... |
9f23926e20a8e0301e5b9a880924c124 falsequ_query44_1344n.qdimacs 335 531 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/falsequ_query44_1344n/falsequ_query44_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 70 | r | 9f23926e20a8e0301e5b9a880924c124 falsequ_query44_1344n.qdimacs 335 531 |
# Set-up environment
rm(list = ls())
load("~/R.Config.Rdata")
setwd(paste0(master.location, "/TBI-LAB - Project - COAD SIDRA-LUMC/NGS_Data"))
source(paste0(toolbox.path, "/R scripts/ipak.function.R"))
required.packages = c("stringr", "ggplot2", "ggpubr")
ipak(required.packages)
# Load data
load("./Analysis/TCR/0_1_... | /TCR_ImmunoSEQ/019_Fig2b_MiXCR_TRB_clonality_by_ICRscore.R | no_license | Sidra-TBI-FCO/AC-ICAM-NM | R | false | false | 3,025 | r |
# Set-up environment
rm(list = ls())
load("~/R.Config.Rdata")
setwd(paste0(master.location, "/TBI-LAB - Project - COAD SIDRA-LUMC/NGS_Data"))
source(paste0(toolbox.path, "/R scripts/ipak.function.R"))
required.packages = c("stringr", "ggplot2", "ggpubr")
ipak(required.packages)
# Load data
load("./Analysis/TCR/0_1_... |
# Capítulo 1: Fundamentos y redes no dirigidas (undirected)
# Load igraph
library(igraph)
friends <- data.frame(name1 = c("Jessie", "Jessie", "Sidney", "Sidney",
"Karl", "Sidney", "Britt", "Shayne", "Sidney", "Sidney", "Jessie",
"Donnie", "Sidney"... | /Clase15/Redes/Introduccion a redes 2.r | no_license | josezea/DatosEstructurados | R | false | false | 40,722 | r | # Capítulo 1: Fundamentos y redes no dirigidas (undirected)
# Load igraph
library(igraph)
friends <- data.frame(name1 = c("Jessie", "Jessie", "Sidney", "Sidney",
"Karl", "Sidney", "Britt", "Shayne", "Sidney", "Sidney", "Jessie",
"Donnie", "Sidney"... |
Gil_Schmidt.Mean = function(ylimits = c(0,0.8), size = 30, step_size = 0.1){
data = c("sampson", "kapferer", "samplk", "faux.mesa.high")
lincol = c("#D7191C", "#FDAE61", "#ABD9E9", "#c351e2")
linewidth = 2
ydiffs = diff(ylimits)
yupper = ylimits[2]
ylower = ylimits[1]
plot.new()
... | /Gil_SchmidtMean.R | no_license | Shaun-Roberts/Honors-Dissertation-2017 | R | false | false | 3,765 | r | Gil_Schmidt.Mean = function(ylimits = c(0,0.8), size = 30, step_size = 0.1){
data = c("sampson", "kapferer", "samplk", "faux.mesa.high")
lincol = c("#D7191C", "#FDAE61", "#ABD9E9", "#c351e2")
linewidth = 2
ydiffs = diff(ylimits)
yupper = ylimits[2]
ylower = ylimits[1]
plot.new()
... |
# DATA 606 Chapter 3 Assignment - Distributions of Random Variables
# Student Name: Kalyan (Kalyanaraman Parthasarathy)
# Load the library
library('DATA606')
# Clear the console
cat("\014")
# QUESTION 3.2:
# Area under the curve, Part II. What percent of a standard normal distribution
# N(µ =0,? = 1)... | /DATA 606 Chapter 3 Assignment - Distributions of Random Variables.R | no_license | kalyanparthasarathy/DATA606 | R | false | false | 12,480 | r | # DATA 606 Chapter 3 Assignment - Distributions of Random Variables
# Student Name: Kalyan (Kalyanaraman Parthasarathy)
# Load the library
library('DATA606')
# Clear the console
cat("\014")
# QUESTION 3.2:
# Area under the curve, Part II. What percent of a standard normal distribution
# N(µ =0,? = 1)... |
/VERIFICACION_PAISES.R | no_license | linamaes/GEOGRAPHICAL_VERIFICATIONS | R | false | false | 4,887 | r | ||
###회귀분석
#데이터 기본 탐색
summary(train$SalePrice)
str(train)
colSums(is.na(train))
#평균값이(180900) 중앙값(163000)보다 크기 때문에 가격 분포는 오른쪽으로 꼬리가 긴(right-skewed) 분포다.
hist(train$SalePrice)
pairs(train)
#lm
house_model<-lm(SalePrice~.,data=train)
#Adjusted R-squared: 0.9193로 이 모델이 SalePrice를 약 91% 설명할 수 있다.
#p-value: < 2.2e-16로 통계적... | /house_lm.R | no_license | minah0301/House-Prices-Project | R | false | false | 558 | r | ###회귀분석
#데이터 기본 탐색
summary(train$SalePrice)
str(train)
colSums(is.na(train))
#평균값이(180900) 중앙값(163000)보다 크기 때문에 가격 분포는 오른쪽으로 꼬리가 긴(right-skewed) 분포다.
hist(train$SalePrice)
pairs(train)
#lm
house_model<-lm(SalePrice~.,data=train)
#Adjusted R-squared: 0.9193로 이 모델이 SalePrice를 약 91% 설명할 수 있다.
#p-value: < 2.2e-16로 통계적... |
rm(list=ls())
setwd('~/swath lib RT corr')
library(package= 'data.table')
data <- fread(input='Sergiev_ecoli_merged_lib_june_january_RT_june_no_mod_or_ccam.txt', sep='\t', header= T)
data[, clean_peptide_id:= paste0(uniprot_id, '_', stripped_sequence)]
setkey(data, clean_peptide_id)
uniq <- fread(input='Sergiev_ecol... | /swath_lib_RT_corr/lib_select_unique_tryptic.R | no_license | aurbn/swath | R | false | false | 959 | r | rm(list=ls())
setwd('~/swath lib RT corr')
library(package= 'data.table')
data <- fread(input='Sergiev_ecoli_merged_lib_june_january_RT_june_no_mod_or_ccam.txt', sep='\t', header= T)
data[, clean_peptide_id:= paste0(uniprot_id, '_', stripped_sequence)]
setkey(data, clean_peptide_id)
uniq <- fread(input='Sergiev_ecol... |
###############################################
# 02.03.2018
# Forage quality modelling with NueralNet
# JW
###############################################
# Loading required packages
rm(list=ls())
library(data.table)
library(dplyr)
library(hsdar)
library(ggplot2)
library(caret)
library(purrr)
library(readr)
library... | /scripts/nn_with_all.R | no_license | jmatics/fq_modelling_2018 | R | false | false | 5,219 | r | ###############################################
# 02.03.2018
# Forage quality modelling with NueralNet
# JW
###############################################
# Loading required packages
rm(list=ls())
library(data.table)
library(dplyr)
library(hsdar)
library(ggplot2)
library(caret)
library(purrr)
library(readr)
library... |
## BP_EMA data manipulation function (overlap)
## Script by : Xinrui Wu
# Main function: BPEMA_overlap
# Assist function: press_count_overlap
# Draw boxplot for the output data from BPEMA: plotBPEMA_overlap
press_count_overlap = function(bp, ema, id, k){
# Input:
# bp, ema: the cleaned Button Press data and EM... | /methods/dataManu_overlap.R | no_license | Xinrui-Wu/BP_EMA | R | false | false | 5,188 | r | ## BP_EMA data manipulation function (overlap)
## Script by : Xinrui Wu
# Main function: BPEMA_overlap
# Assist function: press_count_overlap
# Draw boxplot for the output data from BPEMA: plotBPEMA_overlap
press_count_overlap = function(bp, ema, id, k){
# Input:
# bp, ema: the cleaned Button Press data and EM... |
# R Script - dplyr predominant
# Author: leerssej
# Date; Sun Jun 25 15:35:42 2017
# Desc: Joining together all the files that were separated for entry into dbSchema
# Desc: Makes a debugged and fully foreign keyed and ref table loaded
# Desc: camelCase TSQL instance of the CEDS version 6 Database
# Desc:
library... | /1.TSQLCreateInsertSectionSplice.R | no_license | leerssej/aws_ceds_v6 | R | false | false | 1,373 | r | # R Script - dplyr predominant
# Author: leerssej
# Date; Sun Jun 25 15:35:42 2017
# Desc: Joining together all the files that were separated for entry into dbSchema
# Desc: Makes a debugged and fully foreign keyed and ref table loaded
# Desc: camelCase TSQL instance of the CEDS version 6 Database
# Desc:
library... |
source('lib.R')
###
NAME <- 'H3K4me3_MEL.ENCFF825RVT.mm10'
# NAME <- 'H3K4me3_MEL.ENCFF176QEY.mm10'
###
bed_df <- read.delim(paste0(DATA_DIR, NAME, '.bed'), as.is = TRUE, header = FALSE)
colnames(bed_df) <- c('chrom', 'start', 'end', 'name', 'score')
bed_df$len <- bed_df$end - bed_df$start
head(bed_df)
ggplot(bed... | /src/filter_peaks.R | no_license | dimarub2000/hse21_H3K4me3_ZDNA_mouse | R | false | false | 1,001 | r |
source('lib.R')
###
NAME <- 'H3K4me3_MEL.ENCFF825RVT.mm10'
# NAME <- 'H3K4me3_MEL.ENCFF176QEY.mm10'
###
bed_df <- read.delim(paste0(DATA_DIR, NAME, '.bed'), as.is = TRUE, header = FALSE)
colnames(bed_df) <- c('chrom', 'start', 'end', 'name', 'score')
bed_df$len <- bed_df$end - bed_df$start
head(bed_df)
ggplot(bed... |
library(tidyverse)
library(ggeffects)
library(patchwork)
library(easystats)
#read in data
a <- read_csv("data/decomp_with_covar.csv") %>%
filter(trt %in% c("T", "C") &
!is.na(termite_exposure) &
species != "Simarouba_amara")
#filter only termite records
mm<-a %>%
mutate(abs_lat = abs(lat)) %>... | /R/figure_S1.R | permissive | Zanne-Lab/global_termite_microbe_wd | R | false | false | 5,036 | r | library(tidyverse)
library(ggeffects)
library(patchwork)
library(easystats)
#read in data
a <- read_csv("data/decomp_with_covar.csv") %>%
filter(trt %in% c("T", "C") &
!is.na(termite_exposure) &
species != "Simarouba_amara")
#filter only termite records
mm<-a %>%
mutate(abs_lat = abs(lat)) %>... |
library(ggplot2)
library(reshape)
library(stringr)
library(readxl)
library(markdown)
in_shinyapps <- FALSE # fileEncoding="latin1" if TRUE
options(width = 200)
options(max.print = 2000)
#options(error=recover)
shinyServer(
function(input, output, session) {
rv <- reactiveValues()
rv$topic <- "" # ... | /server.R | no_license | rdavis27/bud1 | R | false | false | 49,162 | r | library(ggplot2)
library(reshape)
library(stringr)
library(readxl)
library(markdown)
in_shinyapps <- FALSE # fileEncoding="latin1" if TRUE
options(width = 200)
options(max.print = 2000)
#options(error=recover)
shinyServer(
function(input, output, session) {
rv <- reactiveValues()
rv$topic <- "" # ... |
library(tidyverse)
read_csv("data/GLB.Ts+dSST.csv", skip = 1, na = "***") %>%
select(Year,t_diff = `J-D`,) %>%
ggplot(aes(x=Year, y=t_diff)) +
geom_line(aes(color = "1"), size = 0.5, show.legend = FALSE)+
geom_point(fill= "white", aes(color = "1"), shape = 21, show.legend = TRUE)+
geom_smooth(se=FALSE, aes(... | /scripts/global_temp_plot.R | no_license | zabdi8/climate | R | false | false | 1,480 | r | library(tidyverse)
read_csv("data/GLB.Ts+dSST.csv", skip = 1, na = "***") %>%
select(Year,t_diff = `J-D`,) %>%
ggplot(aes(x=Year, y=t_diff)) +
geom_line(aes(color = "1"), size = 0.5, show.legend = FALSE)+
geom_point(fill= "white", aes(color = "1"), shape = 21, show.legend = TRUE)+
geom_smooth(se=FALSE, aes(... |
context("likelihood")
ofun = function(pars, data) {
mu = exp(-pars[1]*data[,1])
sigma = pars[2]
-sum(dnorm(x = data[,1], mean = mu, sd = sigma, log = TRUE))
}
data = cbind(1:10, exp(-0.3*(1:10)))
sol = c(163.87047288175, -322.54497855496)
test_that("Gradient of NLL works", {
expect_equal(sol, finite_grad(ofun... | /Packages/diff/tests/testthat/test-likelihood.R | no_license | AleMorales/DynamicPhotosynthesis | R | false | false | 1,167 | r | context("likelihood")
ofun = function(pars, data) {
mu = exp(-pars[1]*data[,1])
sigma = pars[2]
-sum(dnorm(x = data[,1], mean = mu, sd = sigma, log = TRUE))
}
data = cbind(1:10, exp(-0.3*(1:10)))
sol = c(163.87047288175, -322.54497855496)
test_that("Gradient of NLL works", {
expect_equal(sol, finite_grad(ofun... |
#' @importClassesFrom Matrix dgCMatrix dgeMatrix
#' @import methods
# depends on matrix
.onLoad <- function(libname, pkgname) {
library.dynam("xgboost", pkgname, libname)
}
.onUnload <- function(libpath) {
library.dynam.unload("xgboost", libpath)
}
# set information into dmatrix, this mutate dmatrix
xgb.setinfo <... | /R-package/R/utils.R | permissive | saurav111/xgboost | R | false | false | 11,814 | r | #' @importClassesFrom Matrix dgCMatrix dgeMatrix
#' @import methods
# depends on matrix
.onLoad <- function(libname, pkgname) {
library.dynam("xgboost", pkgname, libname)
}
.onUnload <- function(libpath) {
library.dynam.unload("xgboost", libpath)
}
# set information into dmatrix, this mutate dmatrix
xgb.setinfo <... |
# Imports
library(data.table)
library(matrixStats)
# Read data files
js_data <- read.csv(file = "data-generation/javascript-data.csv")
# Expected execution time function for sorting user list of n users
time_sort_func <- function(n, k1, c1) {
n * log2(n) * k1 + c1
}
# Expected execution time function for rendering u... | /analysis/analysis.R | no_license | Ackuq/quantitative-exercise | R | false | false | 4,474 | r | # Imports
library(data.table)
library(matrixStats)
# Read data files
js_data <- read.csv(file = "data-generation/javascript-data.csv")
# Expected execution time function for sorting user list of n users
time_sort_func <- function(n, k1, c1) {
n * log2(n) * k1 + c1
}
# Expected execution time function for rendering u... |
ZS_so <- file.path(paste("Common/ZS", .Platform$dynlib.ext, sep=""))
hyperGonN_so <- file.path(paste("Common/hyperGonN", .Platform$dynlib.ext, sep=""))
dyn.load(ZS_so)
dyn.load(hyperGonN_so)
LogBF_ZS_Laplace <- function(R2, n, p) {
M = length(R2)
res <- .C("R_LogBF_ZS_Laplace",
r2curr=R2, n=as.integer(n... | /Common/BAS_functions.R | no_license | certifiedwaif/test.blma | R | false | false | 892 | r | ZS_so <- file.path(paste("Common/ZS", .Platform$dynlib.ext, sep=""))
hyperGonN_so <- file.path(paste("Common/hyperGonN", .Platform$dynlib.ext, sep=""))
dyn.load(ZS_so)
dyn.load(hyperGonN_so)
LogBF_ZS_Laplace <- function(R2, n, p) {
M = length(R2)
res <- .C("R_LogBF_ZS_Laplace",
r2curr=R2, n=as.integer(n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{viewMap}
\alias{viewMap}
\title{Plot a representation of microreader "plate"}
\usage{
viewMap(
map,
nrow = 8,
ncol = 12,
color = "color",
text = "amount",
title = "plate layout",
add = FALSE
)
}
\arguments{
\item{ma... | /man/viewMap.Rd | permissive | raim/platexpress | R | false | true | 796 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{viewMap}
\alias{viewMap}
\title{Plot a representation of microreader "plate"}
\usage{
viewMap(
map,
nrow = 8,
ncol = 12,
color = "color",
text = "amount",
title = "plate layout",
add = FALSE
)
}
\arguments{
\item{ma... |
##' .. content for \description{} (no empty lines) ..
##'
##' .. content for \details{} ..
##'
##' @title
clean_cardia_abpm <- function() {
# This cannot be run unless you have access to the shared drive
# also, you must set the shared drive to Y or change line 15.
cardia_abpm <-
read_sas(
file.pa... | /R/clean_cardia_abpm.R | no_license | bcjaeger/number-and-timing-of-ABPM | R | false | false | 1,710 | r | ##' .. content for \description{} (no empty lines) ..
##'
##' .. content for \details{} ..
##'
##' @title
clean_cardia_abpm <- function() {
# This cannot be run unless you have access to the shared drive
# also, you must set the shared drive to Y or change line 15.
cardia_abpm <-
read_sas(
file.pa... |
/Linreg_MikeLvov.R | no_license | mikelvov/java-template1 | R | false | false | 7,545 | r | ||
library(glmnet)
mydata = read.table("./TrainingSet/LassoBIC/lymphoid.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.8,family="gaussian",standardize=FALSE)
sink('./Model/EN/Lasso/lymphoid/lymphoid_084.txt',appen... | /Model/EN/Lasso/lymphoid/lymphoid_084.R | no_license | leon1003/QSMART | R | false | false | 357 | r | library(glmnet)
mydata = read.table("./TrainingSet/LassoBIC/lymphoid.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.8,family="gaussian",standardize=FALSE)
sink('./Model/EN/Lasso/lymphoid/lymphoid_084.txt',appen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ttest.R
\name{t_decision}
\alias{t_decision}
\title{hypothesis function}
\usage{
t_decision(fit1)
}
\arguments{
\item{mydata}{...}
}
\value{
}
\description{
hypothesis function
}
| /man/t_decision.Rd | no_license | EthanTat/FinalPackage | R | false | true | 258 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ttest.R
\name{t_decision}
\alias{t_decision}
\title{hypothesis function}
\usage{
t_decision(fit1)
}
\arguments{
\item{mydata}{...}
}
\value{
}
\description{
hypothesis function
}
|
##############################################################################/
##############################################################################/
#GWAS analyses using GAPIT3
##############################################################################/
####################################################... | /RealTime_GWAS.R | permissive | bbarres/Realtime | R | false | false | 2,843 | r | ##############################################################################/
##############################################################################/
#GWAS analyses using GAPIT3
##############################################################################/
####################################################... |
## plot4.R
## R packages used during data processing.
library(dplyr)
## Zip files were downloaded and saved to EmissionsData folder.
## Working directory was set to EmissionsData folder.
setwd("./EmissionsData")
## Read in the summary data and source classification code.
a<-readRDS("summarySCC_PM25.rds")
SCC <- readR... | /plot4.R | no_license | mn500/ExploreData_Assignment2 | R | false | false | 1,528 | r | ## plot4.R
## R packages used during data processing.
library(dplyr)
## Zip files were downloaded and saved to EmissionsData folder.
## Working directory was set to EmissionsData folder.
setwd("./EmissionsData")
## Read in the summary data and source classification code.
a<-readRDS("summarySCC_PM25.rds")
SCC <- readR... |
suppressMessages(require(dplyr))
suppressWarnings(suppressMessages(require(GenomicRanges)))
suppressWarnings(suppressMessages(require(GenomicFeatures)))
suppressWarnings(suppressMessages(require(GenomicAlignments)))
suppressWarnings(suppressMessages(require(AnnotationDbi)))
# checkRsubreadVersion<- function(){
# if(... | /runfeatureCountFUN.R | no_license | JamesR-S/zUMIs-Nextflow-Pipeline | R | false | false | 18,410 | r | suppressMessages(require(dplyr))
suppressWarnings(suppressMessages(require(GenomicRanges)))
suppressWarnings(suppressMessages(require(GenomicFeatures)))
suppressWarnings(suppressMessages(require(GenomicAlignments)))
suppressWarnings(suppressMessages(require(AnnotationDbi)))
# checkRsubreadVersion<- function(){
# if(... |
#' read_boundary_fromfile UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_read_boundary_fromfile_ui <- function(id,
lblfile = h4("Boundary file:")) {
ns ... | /R/mod_read_boundary_fromfile.R | permissive | PPaccioretti/FastMapping | R | false | false | 1,729 | r | #' read_boundary_fromfile UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_read_boundary_fromfile_ui <- function(id,
lblfile = h4("Boundary file:")) {
ns ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Indometh.R
\docType{data}
\name{indometh}
\alias{indometh}
\title{Cohort Study of the Pharmacokinetics of Intravenous Indomethacin}
\format{
A data frame with 66 observations and 3 variables
\describe{
\item{Subject}{subject id number for eac... | /man/indometh.Rd | permissive | higgi13425/medicaldata | R | false | true | 3,342 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Indometh.R
\docType{data}
\name{indometh}
\alias{indometh}
\title{Cohort Study of the Pharmacokinetics of Intravenous Indomethacin}
\format{
A data frame with 66 observations and 3 variables
\describe{
\item{Subject}{subject id number for eac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.