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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MGCSampleStat.R
\name{Thresholding}
\alias{Thresholding}
\title{An auxiliary function that finds a region of significance in the local correlation map by thresholding.}
\usage{
Thresholding(localCorr, m, n, sz)
}
\arguments{
\item{localCorr}{... | /man/Thresholding.Rd | permissive | ebridge2/mgc | R | false | true | 782 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MGCSampleStat.R
\name{Thresholding}
\alias{Thresholding}
\title{An auxiliary function that finds a region of significance in the local correlation map by thresholding.}
\usage{
Thresholding(localCorr, m, n, sz)
}
\arguments{
\item{localCorr}{... |
div.part <- function(otutable,qvalue,hierarchy,tree,type) {
#Quality-check and warnings
if(missing(otutable)) stop("OTU table is missing")
if(is.null(dim(otutable)) == TRUE) stop("The OTU table is not a matrix")
if(dim(otutable)[1] < 2) stop("The OTU table only less than 2 OTUs")
if(dim(otutable)[2] < 2) stop("The O... | /R/div.part.r | no_license | cylove1112/hilldiv | R | false | false | 7,754 | r | div.part <- function(otutable,qvalue,hierarchy,tree,type) {
#Quality-check and warnings
if(missing(otutable)) stop("OTU table is missing")
if(is.null(dim(otutable)) == TRUE) stop("The OTU table is not a matrix")
if(dim(otutable)[1] < 2) stop("The OTU table only less than 2 OTUs")
if(dim(otutable)[2] < 2) stop("The O... |
context("lawn_random")
## set of points
pt_a <- lawn_random(n = 2)
pt_b <- lawn_random(n = 10)
pt_d <- lawn_random(n = 1000)
## set of polygons
ply_a <- lawn_random('polygons', 2)
ply_b <- lawn_random('polygons', 10)
ply_d <- lawn_random('polygons', 1000)
# with options
# lawn_random(bbox = c(-70, 40, -60, 60))
# la... | /tests/testthat/test-random.R | permissive | jhollist/lawn | R | false | false | 1,363 | r | context("lawn_random")
## set of points
pt_a <- lawn_random(n = 2)
pt_b <- lawn_random(n = 10)
pt_d <- lawn_random(n = 1000)
## set of polygons
ply_a <- lawn_random('polygons', 2)
ply_b <- lawn_random('polygons', 10)
ply_d <- lawn_random('polygons', 1000)
# with options
# lawn_random(bbox = c(-70, 40, -60, 60))
# la... |
## This first line will likely take a few seconds. Be patient!
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
emissionsMD<-subset(NEI,fips=="24510")
x<-c("1999","2002","2005","2008")
png(filename="plot2.png",width=720,height=480)
totalEmissionsMD<-with(emissionsMD,tapply(Emissio... | /plot2.R | no_license | LloydNarciso/dataScienceCourse4Week4 | R | false | false | 628 | r | ## This first line will likely take a few seconds. Be patient!
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
emissionsMD<-subset(NEI,fips=="24510")
x<-c("1999","2002","2005","2008")
png(filename="plot2.png",width=720,height=480)
totalEmissionsMD<-with(emissionsMD,tapply(Emissio... |
{library(lme4)
library(lmerTest)
library(tidyverse)
library(emmeans)
library(ggsignif)
library(papaja)
library(readxl)}
### set contrasts ###
options(contrasts = c("contr.sum","contr.poly"))
### Checking matrix characteristics ###
### import z score updated function ###
source("~/Documents/Nick-Grad/Neta_Lab/depleti... | /Analysis_Depletion_2020.R | no_license | nharp189/EmotionalLoadsSelectivelyIncreaseNegativity | R | false | false | 10,243 | r | {library(lme4)
library(lmerTest)
library(tidyverse)
library(emmeans)
library(ggsignif)
library(papaja)
library(readxl)}
### set contrasts ###
options(contrasts = c("contr.sum","contr.poly"))
### Checking matrix characteristics ###
### import z score updated function ###
source("~/Documents/Nick-Grad/Neta_Lab/depleti... |
#' DataCite REST API: works
#'
#' @export
#' @param query (character) Query string, e.g., any part of a work
#' @param order (character) set the sort order to one of "asc" or "desc"
#' @param sort (character) sort results by a certain field, one of
#' "deposited", "published", "updated" or "score"
#' @param offset (num... | /R/dc_works.R | permissive | shivam11/rdatacite | R | false | false | 1,024 | r | #' DataCite REST API: works
#'
#' @export
#' @param query (character) Query string, e.g., any part of a work
#' @param order (character) set the sort order to one of "asc" or "desc"
#' @param sort (character) sort results by a certain field, one of
#' "deposited", "published", "updated" or "score"
#' @param offset (num... |
g.applymetrics = function(data, sf, ws3, metrics2do,
n = 4, lb = 0.2, hb = 15,
zc.lb = 0.25, zc.hb = 3, zc.sb = 0.01,
zc.order = 2,
actilife_LFE = FALSE){
epochsize = ws3 #epochsize in seconds
# data is a 3 colu... | /R/g.applymetrics.R | permissive | wadpac/GGIR | R | false | false | 16,202 | r | g.applymetrics = function(data, sf, ws3, metrics2do,
n = 4, lb = 0.2, hb = 15,
zc.lb = 0.25, zc.hb = 3, zc.sb = 0.01,
zc.order = 2,
actilife_LFE = FALSE){
epochsize = ws3 #epochsize in seconds
# data is a 3 colu... |
# download and unzip the file
fileUrl="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if (!file.exists("household_power_consumption.txt")) {
download.file(fileUrl, destfile="exdata_data_household_power_consumption.zip")
file<-unzip(zipfile="exdata_data_household_power_consum... | /plot4.R | no_license | Lucia1119/ExData_Plotting1 | R | false | false | 1,930 | r | # download and unzip the file
fileUrl="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if (!file.exists("household_power_consumption.txt")) {
download.file(fileUrl, destfile="exdata_data_household_power_consumption.zip")
file<-unzip(zipfile="exdata_data_household_power_consum... |
devtools::load_all()
update_edgelist()
graph <- build_graph()
get_local_graph(graph, "Felix Sater")
| /proto.R | no_license | schnee/tangler | R | false | false | 107 | r |
devtools::load_all()
update_edgelist()
graph <- build_graph()
get_local_graph(graph, "Felix Sater")
|
library(tidyverse)
library(depthTools)
depthAnalysis = R6::R6Class("depthAnalysis", public = list(
joinFolder = NULL,
initialize = function(){},
collectAllBettiFiles = function(ifolder,ofolder){
#ifolder: the parent folder of all tokens
dir.create(ofolder,showWarnings = FALSE)
self$joinFolde... | /ob_depth.R | no_license | yitao416/EthereumCurves | R | false | false | 1,845 | r |
library(tidyverse)
library(depthTools)
depthAnalysis = R6::R6Class("depthAnalysis", public = list(
joinFolder = NULL,
initialize = function(){},
collectAllBettiFiles = function(ifolder,ofolder){
#ifolder: the parent folder of all tokens
dir.create(ofolder,showWarnings = FALSE)
self$joinFolde... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/autoscaling_operations.R
\name{autoscaling_describe_scaling_process_types}
\alias{autoscaling_describe_scaling_process_types}
\title{Describes the scaling process types for use with the ResumeProcesses and
SuspendProcesses APIs}
\usage{
autos... | /cran/paws.management/man/autoscaling_describe_scaling_process_types.Rd | permissive | TWarczak/paws | R | false | true | 842 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/autoscaling_operations.R
\name{autoscaling_describe_scaling_process_types}
\alias{autoscaling_describe_scaling_process_types}
\title{Describes the scaling process types for use with the ResumeProcesses and
SuspendProcesses APIs}
\usage{
autos... |
# Analysis of the variables in the response.
library(ggplot2)
library(ggpubr)
library(remMap)
library(glmnet)
library(grid)
library(gridExtra)
library(gplots)
library(parallel)
rm(list = ls())
getplot = function(main, xlab, ylab, pred, truelabel){
setTitle = main
df <- data.frame(pred=as.vector(pred),true=truelab... | /mar_19th_remMap.R | no_license | chang-che/Work | R | false | false | 8,372 | r | # Analysis of the variables in the response.
library(ggplot2)
library(ggpubr)
library(remMap)
library(glmnet)
library(grid)
library(gridExtra)
library(gplots)
library(parallel)
rm(list = ls())
getplot = function(main, xlab, ylab, pred, truelabel){
setTitle = main
df <- data.frame(pred=as.vector(pred),true=truelab... |
\name{readMS}
\docType{methods}
\alias{readMS}
\title{Read output data from MS and MSMS}
\description{
This function reads data produced from the coalescent simulation programs \cr
MS (Hudson, 2002 ) and MSMS (Greg, 2010)
}
\usage{
readMS(file,big.data=FALSE)
}
\arguments{
\item{file}{the basepath of the MS... | /man/readMS.Rd | no_license | pievos101/PopGenome | R | false | false | 911 | rd | \name{readMS}
\docType{methods}
\alias{readMS}
\title{Read output data from MS and MSMS}
\description{
This function reads data produced from the coalescent simulation programs \cr
MS (Hudson, 2002 ) and MSMS (Greg, 2010)
}
\usage{
readMS(file,big.data=FALSE)
}
\arguments{
\item{file}{the basepath of the MS... |
#Webscraping - programatically extracting data from the HTML code of websites
con = url("http://scholar.google.com/citations?user=HI-I6C0AAAAJ&hl=en")
htmlCode = readLines(con)
close(con)
htmlCode
install.packages("XML")
library(XML)
url <- "http://scholar.google.com/citations?user=HI-I6C0AAAAJ&hl=en"
html <- htmlTreeP... | /Coursera/Getting and cleaning data/Week 2/Webscraping.R | no_license | aerodinamicc/r_projects | R | false | false | 1,302 | r | #Webscraping - programatically extracting data from the HTML code of websites
con = url("http://scholar.google.com/citations?user=HI-I6C0AAAAJ&hl=en")
htmlCode = readLines(con)
close(con)
htmlCode
install.packages("XML")
library(XML)
url <- "http://scholar.google.com/citations?user=HI-I6C0AAAAJ&hl=en"
html <- htmlTreeP... |
library(AMCP)
### Name: chapter_13_table_14
### Title: The data used in Chapter 13, Table 14
### Aliases: chapter_13_table_14 C13T14 Chapter_13_Table_14 c13t14
### Keywords: datasets
### ** Examples
# Load the data
data(chapter_13_table_14)
# Or, alternatively load the data as
data(C13T14)
# View the structure
st... | /data/genthat_extracted_code/AMCP/examples/chapter_13_table_14.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 347 | r | library(AMCP)
### Name: chapter_13_table_14
### Title: The data used in Chapter 13, Table 14
### Aliases: chapter_13_table_14 C13T14 Chapter_13_Table_14 c13t14
### Keywords: datasets
### ** Examples
# Load the data
data(chapter_13_table_14)
# Or, alternatively load the data as
data(C13T14)
# View the structure
st... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ccb.fpc.R
\name{ccb.fpc}
\alias{ccb.fpc}
\title{Corrected confidence bands using functional principal components}
\usage{
ccb.fpc(
Y,
argvals = NULL,
nbasis = 10,
pve = 0.99,
n.boot = 100,
simul = FALSE,
sim.alpha = 0.95
)
}
\ar... | /man/ccb.fpc.Rd | no_license | refunders/refund | R | false | true | 4,250 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ccb.fpc.R
\name{ccb.fpc}
\alias{ccb.fpc}
\title{Corrected confidence bands using functional principal components}
\usage{
ccb.fpc(
Y,
argvals = NULL,
nbasis = 10,
pve = 0.99,
n.boot = 100,
simul = FALSE,
sim.alpha = 0.95
)
}
\ar... |
\name{targetScan_v7_2_fly}
\alias{targetScan_v7_2_fly}
\docType{data}
\title{
targetScan_fly
}
\description{
targetScan_fly}
\usage{data("targetScan_v7_2_fly")}
\format{
A data frame with 32517 observations on the following 3 variables.
\describe{
\item{\code{miRNA}}{a character vector}
\item{\code{Gene.Sym... | /man/targetScan_v7_2_fly.Rd | no_license | KO-BMI/mirdata | R | false | false | 749 | rd | \name{targetScan_v7_2_fly}
\alias{targetScan_v7_2_fly}
\docType{data}
\title{
targetScan_fly
}
\description{
targetScan_fly}
\usage{data("targetScan_v7_2_fly")}
\format{
A data frame with 32517 observations on the following 3 variables.
\describe{
\item{\code{miRNA}}{a character vector}
\item{\code{Gene.Sym... |
demo.dag7 <-
function()
{ # re-creates DAG example 3 in Knueppel,
# DAG v0.11 documentation Oct 21, 2009;
dag<-dag.init(covs=c(1,1,1,1), cov.names=c("A","B","C","Z"),
arcs=c(1,0, 1,4, 2,4, 2,-1, 3,4, 3,-1, 4,0, 4,-1),
symbols=c("Exp.", "A", "B", "C", "Z", "Outc."));
dag$x<-c(0.000,... | /R/demo.dag7.R | no_license | cran/dagR | R | false | false | 429 | r | demo.dag7 <-
function()
{ # re-creates DAG example 3 in Knueppel,
# DAG v0.11 documentation Oct 21, 2009;
dag<-dag.init(covs=c(1,1,1,1), cov.names=c("A","B","C","Z"),
arcs=c(1,0, 1,4, 2,4, 2,-1, 3,4, 3,-1, 4,0, 4,-1),
symbols=c("Exp.", "A", "B", "C", "Z", "Outc."));
dag$x<-c(0.000,... |
library("plotly")
library("tidyr")
library("dplyr")
library("ggplot2")
library("maps")
library("Hmisc")
library("sp")
library("maptools")
library("reshape2")
source('test.R')
server <- function(input, output) {
# #reactive variable
# data1 <- reactive({
# sb <- read.csv('data/MERGED2015_16_PP.csv', string... | /server.R | no_license | thomasnguyen1519/info-201-final-project | R | false | false | 13,757 | r |
library("plotly")
library("tidyr")
library("dplyr")
library("ggplot2")
library("maps")
library("Hmisc")
library("sp")
library("maptools")
library("reshape2")
source('test.R')
server <- function(input, output) {
# #reactive variable
# data1 <- reactive({
# sb <- read.csv('data/MERGED2015_16_PP.csv', string... |
#' Making plot of maturity at age
#'
#' @param inifiles string or vector of string of filename(s) of ini file
#' @param modlab string or vector of string of model name(s) to be used in legend
#' @param verbose, make verbose?
#' @param xlab string text for x-axis label
#' @param plot logical print plot?
#'
#' @importFro... | /R/plot_maturity.function.gg.r | no_license | PacificCommunity/ofp-sam-r4mfcl | R | false | false | 2,830 | r | #' Making plot of maturity at age
#'
#' @param inifiles string or vector of string of filename(s) of ini file
#' @param modlab string or vector of string of model name(s) to be used in legend
#' @param verbose, make verbose?
#' @param xlab string text for x-axis label
#' @param plot logical print plot?
#'
#' @importFro... |
require rubygems
設定ファイルに書かれている gem コマンドのオプションを
オブジェクトに保存するためのライブラリです。
= class Gem::ConfigFile
設定ファイルに書かれている gem コマンドのオプションを
オブジェクトに保存するためのクラスです。
このクラスのインスタンスはハッシュのように振る舞います。
== Public Instance Methods
--- [](key) -> object
引数で与えられたキーに対応する設定情報を返します。
@param key 設定情報を取得するために使用するキーを指定します。
--- []=(key, value)
引数で与... | /target/rubydoc/refm/api/src/rubygems/config_file.rd | no_license | nacyot/omegat-rurima-ruby | R | false | false | 5,306 | rd | require rubygems
設定ファイルに書かれている gem コマンドのオプションを
オブジェクトに保存するためのライブラリです。
= class Gem::ConfigFile
設定ファイルに書かれている gem コマンドのオプションを
オブジェクトに保存するためのクラスです。
このクラスのインスタンスはハッシュのように振る舞います。
== Public Instance Methods
--- [](key) -> object
引数で与えられたキーに対応する設定情報を返します。
@param key 設定情報を取得するために使用するキーを指定します。
--- []=(key, value)
引数で与... |
#' Create an isolated Python virtual environment to be used in rgee
#' @param py_env The name of, or path to, a Python virtual environment.
#' @importFrom reticulate conda_create virtualenv_create
#' @return Character. The path of the virtual environment created.
#' @examples
#' \dontrun{
#' library(rgee)
#'
#' ## It i... | /R/ee_install.R | permissive | Ryan-Riggs/rgee | R | false | false | 13,572 | r | #' Create an isolated Python virtual environment to be used in rgee
#' @param py_env The name of, or path to, a Python virtual environment.
#' @importFrom reticulate conda_create virtualenv_create
#' @return Character. The path of the virtual environment created.
#' @examples
#' \dontrun{
#' library(rgee)
#'
#' ## It i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract.efficient.frontier.R
\name{meanvar.efficient.frontier}
\alias{meanvar.efficient.frontier}
\title{Generate the efficient frontier for a mean-variance portfolio}
\usage{
meanvar.efficient.frontier(portfolio, R, n.portfolios = 25,
risk... | /man/meanvar.efficient.frontier.Rd | no_license | cran/PortfolioAnalytics | R | false | true | 1,359 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract.efficient.frontier.R
\name{meanvar.efficient.frontier}
\alias{meanvar.efficient.frontier}
\title{Generate the efficient frontier for a mean-variance portfolio}
\usage{
meanvar.efficient.frontier(portfolio, R, n.portfolios = 25,
risk... |
############ Script to Analyze data from A1
library(data.table)
library(lubridate)
setwd('/Users/Diego/Desktop/Data/Nicaragua/implementation_nicaragua/DUMPS/DUMP1')
############ Reading the data in - simply change the file name to analyze another data
ambient <- read.csv('flxbxA1.8.03.2015.sqld_ambient_table.cs... | /house_data_dump_analysis/Data_Dump_Analysis_flxbx_A1.R | no_license | diegoleonbarido/flexbox-data-dump-analysis | R | false | false | 12,434 | r | ############ Script to Analyze data from A1
library(data.table)
library(lubridate)
setwd('/Users/Diego/Desktop/Data/Nicaragua/implementation_nicaragua/DUMPS/DUMP1')
############ Reading the data in - simply change the file name to analyze another data
ambient <- read.csv('flxbxA1.8.03.2015.sqld_ambient_table.cs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataproc_objects.R
\name{ClusterStatus}
\alias{ClusterStatus}
\title{ClusterStatus Object}
\usage{
ClusterStatus(detail = NULL, state = NULL, stateStartTime = NULL)
}
\arguments{
\item{detail}{Output-only Optional details of cluster's state}
... | /googledataprocv1.auto/man/ClusterStatus.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 629 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataproc_objects.R
\name{ClusterStatus}
\alias{ClusterStatus}
\title{ClusterStatus Object}
\usage{
ClusterStatus(detail = NULL, state = NULL, stateStartTime = NULL)
}
\arguments{
\item{detail}{Output-only Optional details of cluster's state}
... |
# setwd("~/OneDrive/Formation/Coursera/Data Science/04 - Exploratory Data Analysis/ExData_Plotting1")
# load data
file <- "./household_power_consumption.txt"
data <- read.table(file, sep=";", header=TRUE, na.strings="?")
data$Date <- as.Date(data$Date,format="%d/%m/%Y")
data <- subset(data, Date > as.Date("2007-01-31"... | /plot3.R | no_license | electromel/ExData_Plotting1 | R | false | false | 806 | r | # setwd("~/OneDrive/Formation/Coursera/Data Science/04 - Exploratory Data Analysis/ExData_Plotting1")
# load data
file <- "./household_power_consumption.txt"
data <- read.table(file, sep=";", header=TRUE, na.strings="?")
data$Date <- as.Date(data$Date,format="%d/%m/%Y")
data <- subset(data, Date > as.Date("2007-01-31"... |
library(shiny)
library(shinymeta)
library(plotly)
library(dplyr)
library(ggmosaic)
ui <- fluidPage(
titlePanel("Contingency table explorer"),
sidebarLayout(
sidebarPanel(
selectInput(
"data", "Choose a dataset",
c(
"Flying Etiquette" = "fly",
"Happiness" = "happy",
... | /inst/examples/contingency/app.R | no_license | rstudio/shinymeta | R | false | false | 6,169 | r | library(shiny)
library(shinymeta)
library(plotly)
library(dplyr)
library(ggmosaic)
ui <- fluidPage(
titlePanel("Contingency table explorer"),
sidebarLayout(
sidebarPanel(
selectInput(
"data", "Choose a dataset",
c(
"Flying Etiquette" = "fly",
"Happiness" = "happy",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rename-leverage.R
\name{vrename}
\alias{vrename}
\alias{vrename_with}
\title{Rename vector in tidyverse style}
\usage{
vrename(input, ..., safely = TRUE)
vrename_with(input, ...)
}
\arguments{
\item{...}{}
}
\value{
}
\description{
Rename v... | /man/vrename.Rd | no_license | hzongyao/confuns | R | false | true | 347 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rename-leverage.R
\name{vrename}
\alias{vrename}
\alias{vrename_with}
\title{Rename vector in tidyverse style}
\usage{
vrename(input, ..., safely = TRUE)
vrename_with(input, ...)
}
\arguments{
\item{...}{}
}
\value{
}
\description{
Rename v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wiot2011_data.R
\docType{data}
\name{wiot2011}
\alias{wiot2011}
\title{WIOD 2011 Data}
\usage{
wiot2011
}
\description{
WIOD 2011 dataset
}
\keyword{datasets}
| /man/wiot2011.Rd | no_license | MatthewSmith430/GVTr | R | false | true | 250 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wiot2011_data.R
\docType{data}
\name{wiot2011}
\alias{wiot2011}
\title{WIOD 2011 Data}
\usage{
wiot2011
}
\description{
WIOD 2011 dataset
}
\keyword{datasets}
|
# Code for session 4, 05.10.2018; Using functions in R.
rm(list = ls())
xPath <- "/Users/arng0001/Dropbox/Gwaith/Cyfrifiaduro/DropIn/Exercises/Session4/"
# setwd("C:/Users/arng0001/Dropbox/Gwaith/Cyfrifiaduro/DropIn/Exercises/Session4")
plotName <- "Plot1.txt"
myData <- read.table(paste(xPath, plotName, sep =... | /Session4/Functions1.R | no_license | apommerening/Scientific-Computing-Drop-In | R | false | false | 1,271 | r | # Code for session 4, 05.10.2018; Using functions in R.
rm(list = ls())
xPath <- "/Users/arng0001/Dropbox/Gwaith/Cyfrifiaduro/DropIn/Exercises/Session4/"
# setwd("C:/Users/arng0001/Dropbox/Gwaith/Cyfrifiaduro/DropIn/Exercises/Session4")
plotName <- "Plot1.txt"
myData <- read.table(paste(xPath, plotName, sep =... |
#set up directory
setwd("F:/Introduction to Data Science/Week5/Assessment/Kaggle_Higgs_Boson_Machine_Learning_Challenge")
getwd()
#load the trianing data
training <- read.csv("training.csv")
dim(training)
View(training)
names(training)
| /Week5/HiggsML.R | no_license | nasimulhasan/Data_Science | R | false | false | 237 | r | #set up directory
setwd("F:/Introduction to Data Science/Week5/Assessment/Kaggle_Higgs_Boson_Machine_Learning_Challenge")
getwd()
#load the trianing data
training <- read.csv("training.csv")
dim(training)
View(training)
names(training)
|
library(shiny)
library(shiny.semantic)
library(plotly)
ui <- shinyUI(semanticPage(
suppressDependencies("bootstrap"),
tabset(tabs =
list(
list(menu = "First Tab", content = "Text works well"),
list(menu = "Second Tab", content = plotOutput("plot1"), id = "second_tab"),
... | /examples/simple_tabset/app.R | permissive | Jamamel/shiny.semantic | R | false | false | 641 | r | library(shiny)
library(shiny.semantic)
library(plotly)
ui <- shinyUI(semanticPage(
suppressDependencies("bootstrap"),
tabset(tabs =
list(
list(menu = "First Tab", content = "Text works well"),
list(menu = "Second Tab", content = plotOutput("plot1"), id = "second_tab"),
... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "dresses-sales")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "Class")
lrn = makeLearn... | /models/openml_dresses-sales/classification_Class/950eef16c5cb40a7f6d7286380656c15/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 743 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "dresses-sales")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "Class")
lrn = makeLearn... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runBlockFinder.R
\name{runBlockFinder}
\alias{runBlockFinder}
\title{Run blockFinder}
\usage{
runBlockFinder(
set,
model,
coefficient = 2,
blockfinder_cutoff = 0.1,
num_permutations = 0,
resultSet = FALSE,
verbose = FALSE,
...... | /man/runBlockFinder.Rd | permissive | isglobal-brge/MEAL | R | false | true | 1,300 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runBlockFinder.R
\name{runBlockFinder}
\alias{runBlockFinder}
\title{Run blockFinder}
\usage{
runBlockFinder(
set,
model,
coefficient = 2,
blockfinder_cutoff = 0.1,
num_permutations = 0,
resultSet = FALSE,
verbose = FALSE,
...... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\docType{package}
\name{devtools}
\alias{devtools}
\alias{devtools-package}
\title{Package development tools for R.}
\description{
Package development tools for R.
}
\section{Package options}{
Devtools uses the following \code{\link{options}} to configure behaviour... | /devtoolsVersion/devtools 18/man/devtools.Rd | no_license | connectthefuture/devtools-R-Forge | R | false | false | 1,244 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\docType{package}
\name{devtools}
\alias{devtools}
\alias{devtools-package}
\title{Package development tools for R.}
\description{
Package development tools for R.
}
\section{Package options}{
Devtools uses the following \code{\link{options}} to configure behaviour... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normalize_data.R
\name{df_norm_0_1}
\alias{df_norm_0_1}
\title{df_norm_0_1(df, column = 1)}
\usage{
df_norm_0_1(df, column = 1)
}
\arguments{
\item{df}{data frame name}
\item{column}{column numeric specification which will be normalized}
}
\... | /man/df_norm_0_1.Rd | no_license | kjuraic/listdfutil | R | false | true | 522 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normalize_data.R
\name{df_norm_0_1}
\alias{df_norm_0_1}
\title{df_norm_0_1(df, column = 1)}
\usage{
df_norm_0_1(df, column = 1)
}
\arguments{
\item{df}{data frame name}
\item{column}{column numeric specification which will be normalized}
}
\... |
## to do: gelman.plot does not par mfrow
setMethod("densplot", "prev",
function(x, exclude_fixed = TRUE, ...) {
## check inputs
checkInput(exclude_fixed, "exclude_fixed", class = "logical")
## guess which function generated 'x'
multi <- is.null(x@par$SE)
## calculate number of plots
if (mul... | /R/plot-methods-coda.R | no_license | brechtdv/prevalence | R | false | false | 4,520 | r | ## to do: gelman.plot does not par mfrow
setMethod("densplot", "prev",
function(x, exclude_fixed = TRUE, ...) {
## check inputs
checkInput(exclude_fixed, "exclude_fixed", class = "logical")
## guess which function generated 'x'
multi <- is.null(x@par$SE)
## calculate number of plots
if (mul... |
shinyUI(pageWithSidebar(
headerPanel('Developing Data Products - Course Project'),
sidebarPanel(
h3('Instructions'),
p('Enter the State, and diseases type to find the best hospital (i.e. lowest) 30-day mortality for
the specific disease in that state.'),
h4('Please enter the 2-chara... | /ui.R | no_license | MaryamKabiri/Developing-Data-Product | R | false | false | 2,370 | r | shinyUI(pageWithSidebar(
headerPanel('Developing Data Products - Course Project'),
sidebarPanel(
h3('Instructions'),
p('Enter the State, and diseases type to find the best hospital (i.e. lowest) 30-day mortality for
the specific disease in that state.'),
h4('Please enter the 2-chara... |
shinyUI(pageWithSidebar(
headerPanel("Stocks"),
sidebarPanel(
wellPanel(
p(strong("Stocks")),
checkboxInput(inputId = "stock_aapl", label = "Apple (AAPL)", value = TRUE),
checkboxInput(inputId = "stock_msft", label = "Microsoft (MSFT)", value = TRUE),
che... | /Test/ui.R | no_license | jcizel/shiny-server-examples | R | false | false | 2,369 | r | shinyUI(pageWithSidebar(
headerPanel("Stocks"),
sidebarPanel(
wellPanel(
p(strong("Stocks")),
checkboxInput(inputId = "stock_aapl", label = "Apple (AAPL)", value = TRUE),
checkboxInput(inputId = "stock_msft", label = "Microsoft (MSFT)", value = TRUE),
che... |
\name{ivphiBB6}
\alias{ivphiBB6}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ ivphiBB6}
\description{
Inverse Laplace's transform (phiBB6's inverse)
}
\usage{
ivphiBB6(theta, delta, t)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{theta}{ real parameter (>=1)... | /man/ivphiBB6.Rd | no_license | cran/fgac | R | false | false | 919 | rd | \name{ivphiBB6}
\alias{ivphiBB6}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ ivphiBB6}
\description{
Inverse Laplace's transform (phiBB6's inverse)
}
\usage{
ivphiBB6(theta, delta, t)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{theta}{ real parameter (>=1)... |
function (x, type)
{
e <- get("data.env", .GlobalEnv)
e[["KK"]][[length(e[["KK"]]) + 1]] <- list(x = x, type = type)
.Call("_highfrequency_KK", x, type)
}
| /valgrind_test_dir/KK-test.R | no_license | akhikolla/RcppDeepStateTest | R | false | false | 168 | r | function (x, type)
{
e <- get("data.env", .GlobalEnv)
e[["KK"]][[length(e[["KK"]]) + 1]] <- list(x = x, type = type)
.Call("_highfrequency_KK", x, type)
}
|
##################################################################################
# Title: Purple Milky Way
# Copyright: Copyright (c) 2012, under the Simplified BSD License
# Author: Gaston Sanchez
# url: www.gastonsanchez.com/projects/rtist
###########################################################... | /B_analysts_sources_github/gastonstat/Rtist/purple_milkyway.r | no_license | Irbis3/crantasticScrapper | R | false | false | 1,434 | r | ##################################################################################
# Title: Purple Milky Way
# Copyright: Copyright (c) 2012, under the Simplified BSD License
# Author: Gaston Sanchez
# url: www.gastonsanchez.com/projects/rtist
###########################################################... |
################################################################################
#### R code to clean trawl survey Eastern Bering Sea
#### Public data Ocean Adapt
#### Contacts: Stan Kotwicki stan.kotwicki@noaa.gov Program Manager,
#### Groundfish Assessment Program, NOAA AFSC
#### Jim Thorson james... | /cleaning_codes/get_ebs.R | no_license | AquaAuma/FishGlob_data | R | false | false | 14,704 | r | ################################################################################
#### R code to clean trawl survey Eastern Bering Sea
#### Public data Ocean Adapt
#### Contacts: Stan Kotwicki stan.kotwicki@noaa.gov Program Manager,
#### Groundfish Assessment Program, NOAA AFSC
#### Jim Thorson james... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setInitParams.R
\name{setInitParams}
\alias{setInitParams}
\title{Initializing kernel parameters}
\usage{
setInitParams(model, grid_size = 5)
}
\arguments{
\item{model}{GP model.}
\item{grid_size}{Size of the grid over which the search for m... | /man/setInitParams.Rd | no_license | cran/GPrank | R | false | true | 1,065 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setInitParams.R
\name{setInitParams}
\alias{setInitParams}
\title{Initializing kernel parameters}
\usage{
setInitParams(model, grid_size = 5)
}
\arguments{
\item{model}{GP model.}
\item{grid_size}{Size of the grid over which the search for m... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/simSet.R
\name{print.svR_sets}
\alias{print.svR_sets}
\title{print method for detailed return of \link{simSets}}
\usage{
\method{print}{svR_sets}(x)
}
\description{
print method for detailed return of \link{simSets}
}
| /man/print.svR_sets.Rd | no_license | durtal/servevolleyR | R | false | false | 305 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/simSet.R
\name{print.svR_sets}
\alias{print.svR_sets}
\title{print method for detailed return of \link{simSets}}
\usage{
\method{print}{svR_sets}(x)
}
\description{
print method for detailed return of \link{simSets}
}
|
library(ape)
testtree <- read.tree("13486_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="13486_0_unrooted.txt") | /codeml_files/newick_trees_processed/13486_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("13486_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="13486_0_unrooted.txt") |
library(spgwr)
library(rgdal)
path <- "/gpfs/projects/gavingrp/dongmeic/beetle/shapefiles"
x <- readOGR(dsn=path, layer="mpb10km_data_gwr")
#gw_cov <- gw.cov(x, vars=2:5, adapt=0.2, cor=TRUE, var.term=TRUE, longlat=FALSE)
#writeOGR(gw_cov$SDF, dsn=path, layer="local_statistics", driver="ESRI Shapefile", overwrite_la... | /R/gw_cov.R | permissive | dongmeic/suppression | R | false | false | 808 | r | library(spgwr)
library(rgdal)
path <- "/gpfs/projects/gavingrp/dongmeic/beetle/shapefiles"
x <- readOGR(dsn=path, layer="mpb10km_data_gwr")
#gw_cov <- gw.cov(x, vars=2:5, adapt=0.2, cor=TRUE, var.term=TRUE, longlat=FALSE)
#writeOGR(gw_cov$SDF, dsn=path, layer="local_statistics", driver="ESRI Shapefile", overwrite_la... |
require(ape)
require(phangorn)
require(treespace)
#Maximum clade credibility tree obtained from the R package "treespace." Jombart et. al, 2018.
dengue_realtr <- DengueBEASTMCC
dengue_samples <- sort(dengue_realtr$tip.label)
#Import distance matrices from file
temp = read.csv("dengue_distances/mash_dengue.cs... | /publication_data/CompareDengue.R | no_license | alexsweeten/snacc | R | false | false | 4,839 | r | require(ape)
require(phangorn)
require(treespace)
#Maximum clade credibility tree obtained from the R package "treespace." Jombart et. al, 2018.
dengue_realtr <- DengueBEASTMCC
dengue_samples <- sort(dengue_realtr$tip.label)
#Import distance matrices from file
temp = read.csv("dengue_distances/mash_dengue.cs... |
ProcessVMSData <- function(vms.data,log.data){
##############################################################################
## Do initial processing, fill in some missing values,
##############################################################################
names(vms.data) <- tolower(names(vms.data))
... | /offshoreclams/src/_Rfunctions/ProcessVMSData.r | no_license | xuantruong982/ecomod | R | false | false | 3,701 | r |
ProcessVMSData <- function(vms.data,log.data){
##############################################################################
## Do initial processing, fill in some missing values,
##############################################################################
names(vms.data) <- tolower(names(vms.data))
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IPDFileCheck.R
\name{check_column_exists}
\alias{check_column_exists}
\title{Function to check the given column exists}
\usage{
check_column_exists(column_name, data)
}
\arguments{
\item{column_name}{a column name}
\item{data}{data frame}
}
... | /man/check_column_exists.Rd | no_license | cran/IPDFileCheck | R | false | true | 517 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IPDFileCheck.R
\name{check_column_exists}
\alias{check_column_exists}
\title{Function to check the given column exists}
\usage{
check_column_exists(column_name, data)
}
\arguments{
\item{column_name}{a column name}
\item{data}{data frame}
}
... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(tidyverse)
library(shiny)
library(here)
library(shinythemes)
# read in data
fishe <- read_csv(here::here(... | /testing/app.R | no_license | siyaqiu/shiny_app_gp | R | false | false | 2,139 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(tidyverse)
library(shiny)
library(here)
library(shinythemes)
# read in data
fishe <- read_csv(here::here(... |
library(proportion)
### Name: PlotcovpCAll
### Title: Graphs of Coverage Probability for 5 continuity corrected
### methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)
### Aliases: PlotcovpCAll
### ** Examples
## Not run:
##D n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97
##D PlotcovpCAll(n,alp,c,a,b,t1,t2)
... | /data/genthat_extracted_code/proportion/examples/PlotcovpCAll.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 339 | r | library(proportion)
### Name: PlotcovpCAll
### Title: Graphs of Coverage Probability for 5 continuity corrected
### methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)
### Aliases: PlotcovpCAll
### ** Examples
## Not run:
##D n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97
##D PlotcovpCAll(n,alp,c,a,b,t1,t2)
... |
##shorten file name
> dataFile <- "household_power_consumption.txt"
##create data frame from text file, text file does have a header, the ; is used to separate entires
> data <- read.table(dataFile, header=TRUE, sep=";", na.strings="?", stringsAsFactors=FALSE, dec=".")
##subset data to required dates
> subsetdata <... | /plot4.R | no_license | donhill1980/ExData_Plotting1 | R | false | false | 1,354 | r |
##shorten file name
> dataFile <- "household_power_consumption.txt"
##create data frame from text file, text file does have a header, the ; is used to separate entires
> data <- read.table(dataFile, header=TRUE, sep=";", na.strings="?", stringsAsFactors=FALSE, dec=".")
##subset data to required dates
> subsetdata <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale-continuous.R
\name{scale_continuous}
\alias{scale_x_continuous}
\alias{scale_y_continuous}
\alias{scale_x_log10}
\alias{scale_y_log10}
\alias{scale_x_reverse}
\alias{scale_y_reverse}
\alias{scale_x_sqrt}
\alias{scale_y_sqrt}
\title{Posi... | /man/scale_continuous.Rd | permissive | yutannihilation/ggplot2 | R | false | true | 7,747 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale-continuous.R
\name{scale_continuous}
\alias{scale_x_continuous}
\alias{scale_y_continuous}
\alias{scale_x_log10}
\alias{scale_y_log10}
\alias{scale_x_reverse}
\alias{scale_y_reverse}
\alias{scale_x_sqrt}
\alias{scale_y_sqrt}
\title{Posi... |
interactiveEPS = function (input="") {
listDataSets = function (envir = .GlobalEnv, ...){
Vars <- ls(envir = envir, all.names = TRUE)
if (length(Vars) == 0)
return(Vars)
out=names(which(sapply(Vars, function(.x) is.data.frame(get(.x, envir = envir))||is.matrix(get(.x, envir = envir)))))
... | /detrendeR/R/interactiveEPS.r | no_license | ingted/R-Examples | R | false | false | 7,215 | r | interactiveEPS = function (input="") {
listDataSets = function (envir = .GlobalEnv, ...){
Vars <- ls(envir = envir, all.names = TRUE)
if (length(Vars) == 0)
return(Vars)
out=names(which(sapply(Vars, function(.x) is.data.frame(get(.x, envir = envir))||is.matrix(get(.x, envir = envir)))))
... |
library(devtools)
install_github("genomicsclass/tissuesGeneExpression")
library(tissuesGeneExpression)
data(tissuesGeneExpression)
head(e)
head(tissue)
table(tissue)
d <- dist(t(e))
image(as.matrix(d))
as.matrix(d)[3, 45]
x <- e[,3]
y <- e[, 45]
sqrt(crossprod(x-y))
x<-e["210486_at",]
y<-e["200805_at"... | /harvardCourse4Start.R | no_license | karinafer/Harvard-R-Course | R | false | false | 423 | r | library(devtools)
install_github("genomicsclass/tissuesGeneExpression")
library(tissuesGeneExpression)
data(tissuesGeneExpression)
head(e)
head(tissue)
table(tissue)
d <- dist(t(e))
image(as.matrix(d))
as.matrix(d)[3, 45]
x <- e[,3]
y <- e[, 45]
sqrt(crossprod(x-y))
x<-e["210486_at",]
y<-e["200805_at"... |
\name{linksrm_convert}
\alias{linksrm_convert}
\title{
Parameter Conversion for Linked Stress Release Model
}
\description{
Converts parameter values between two different parameterisations (described in Details below) of the linked stress release model.
}
\usage{
linksrm_convert(params, abc=TRUE)
}
\arguments{
\item{p... | /man/linksrm_convert.Rd | no_license | cran/PtProcess | R | false | false | 2,618 | rd | \name{linksrm_convert}
\alias{linksrm_convert}
\title{
Parameter Conversion for Linked Stress Release Model
}
\description{
Converts parameter values between two different parameterisations (described in Details below) of the linked stress release model.
}
\usage{
linksrm_convert(params, abc=TRUE)
}
\arguments{
\item{p... |
# read the txt file into R using the read.table function
raw = read.table("household_power_consumption.txt",colClasses = "character", header = T, sep = ";")
# select the data for the project
selectdate = raw[raw$Date=="1/2/2007" | raw$Date=="2/2/2007",]
# create the png file plot2
png(width = 480, height = 480, file = ... | /plot2.R | no_license | road-to-rio/ExData_Plotting1 | R | false | false | 607 | r | # read the txt file into R using the read.table function
raw = read.table("household_power_consumption.txt",colClasses = "character", header = T, sep = ";")
# select the data for the project
selectdate = raw[raw$Date=="1/2/2007" | raw$Date=="2/2/2007",]
# create the png file plot2
png(width = 480, height = 480, file = ... |
# Explore possibility of correlations between rust severity and composition of foliar microbiome
library(tidyverse)
library(magrittr)
library(phyloseq)
library(foreach)
library(betareg)
library(vegan)
library(cowplot)
library(ggthemes)
library(ggtext)
source("code/Rfunctions.R")
source("code/colors.R")
### Rust data... | /code/rustCor.R | permissive | dleopold/Populus_priorityEffects | R | false | false | 3,852 | r | # Explore possibility of correlations between rust severity and composition of foliar microbiome
library(tidyverse)
library(magrittr)
library(phyloseq)
library(foreach)
library(betareg)
library(vegan)
library(cowplot)
library(ggthemes)
library(ggtext)
source("code/Rfunctions.R")
source("code/colors.R")
### Rust data... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/elagator_command_line.R
\name{remove_tools_command_line}
\alias{remove_tools_command_line}
\title{\code{remove_tools} remove tools from 'elagator/elastic_tool_wrappers_macros.xml'.}
\usage{
remove_tools_command_line(tools)
}
\arguments{
\item... | /man/remove_tools_command_line.Rd | permissive | MingChen0919/elagator | R | false | true | 461 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/elagator_command_line.R
\name{remove_tools_command_line}
\alias{remove_tools_command_line}
\title{\code{remove_tools} remove tools from 'elagator/elastic_tool_wrappers_macros.xml'.}
\usage{
remove_tools_command_line(tools)
}
\arguments{
\item... |
#' Exclusion Report
#'
#' Generates graphics for sequential exclusion criteria
#'
#' With input being a series of essentially binary variables with positive indicating that a subject is excluded for a specific reason, orders the reasons so that the first excludes the highest number of subjects, the second excludes the... | /R/exReport.r | no_license | FerrerasRP/greport | R | false | false | 24,362 | r | #' Exclusion Report
#'
#' Generates graphics for sequential exclusion criteria
#'
#' With input being a series of essentially binary variables with positive indicating that a subject is excluded for a specific reason, orders the reasons so that the first excludes the highest number of subjects, the second excludes the... |
#'
#' Liczenie odleglosci dla ogolnych ocen
#'
#' Funkcja \code{dOcenaIMDB} liczy odleglosc miedzyogolnymi ocenami dwoch filmow z bazy
#'
#' @param IDFilm1 - id pierwszego filmu
#' @param IDFilm2 - id drugiego filmu
#' @param sciezkaDoBazy - sciezka do bazy filmow
#'
#'@details Funkcja wyciaga ID dwoch filmow z bazy. J... | /WyszynskaRudasIMDB/R/dOcenaIMDB.R | no_license | Wyszynskak/Projekty | R | false | false | 1,466 | r | #'
#' Liczenie odleglosci dla ogolnych ocen
#'
#' Funkcja \code{dOcenaIMDB} liczy odleglosc miedzyogolnymi ocenami dwoch filmow z bazy
#'
#' @param IDFilm1 - id pierwszego filmu
#' @param IDFilm2 - id drugiego filmu
#' @param sciezkaDoBazy - sciezka do bazy filmow
#'
#'@details Funkcja wyciaga ID dwoch filmow z bazy. J... |
## First check whether it has the file in the current dir.
if (!"load_data.R" %in% list.files()) {
setwd("~/Desktop/Online Coursera/Coursera-Exploratory-Data-Analysis/ExData_Plotting1/")
}
source("load_data.R")
png(filename = "plot2.png",
width = 480, height = 480,
units = "px")
plot(DateTime, Global_ac... | /plot2.R | no_license | mayurumbarkar/ExData_Plotting1 | R | false | false | 423 | r | ## First check whether it has the file in the current dir.
if (!"load_data.R" %in% list.files()) {
setwd("~/Desktop/Online Coursera/Coursera-Exploratory-Data-Analysis/ExData_Plotting1/")
}
source("load_data.R")
png(filename = "plot2.png",
width = 480, height = 480,
units = "px")
plot(DateTime, Global_ac... |
#install the necessary packages
install.packages("NLP")
install.packages("tm")
install.packages("SnowballC")
library("NLP")
library("tm")
library("SnowballC")
df <-read.csv(file.choose(),header = TRUE,sep = ",")
mode(df)
lengths(df)
#build a corpus, and specify the source to be character vectors
myCorpus <- Corpus(V... | /Developing/LuLifei/3.Effy_Pre-processing.R | permissive | o0oBluePhoenixo0o/AbbVie2017 | R | false | false | 2,562 | r | #install the necessary packages
install.packages("NLP")
install.packages("tm")
install.packages("SnowballC")
library("NLP")
library("tm")
library("SnowballC")
df <-read.csv(file.choose(),header = TRUE,sep = ",")
mode(df)
lengths(df)
#build a corpus, and specify the source to be character vectors
myCorpus <- Corpus(V... |
#!/usr/bin/env Rscript
shiny::runApp(".", port = 8080)
| /run.R | permissive | mrc-ide/shiny90 | R | false | false | 55 | r | #!/usr/bin/env Rscript
shiny::runApp(".", port = 8080)
|
### R code from vignette source 'lat.Rnw'
# data: NY8_utm18 TCE NY_nb.gal NY8cities Sy_GeoDa1.GAL Sy_GeoDa4.GAL
###################################################
### code chunk number 8: lat.Rnw:179-187
###################################################
library(rgdal)
NY8 <- readOGR(".", "NY8_utm18")
TCE <- readOGR(... | /R/Ch09/lat_mod.R | no_license | robertandrewstevens/ASDAwR2 | R | false | false | 27,887 | r | ### R code from vignette source 'lat.Rnw'
# data: NY8_utm18 TCE NY_nb.gal NY8cities Sy_GeoDa1.GAL Sy_GeoDa4.GAL
###################################################
### code chunk number 8: lat.Rnw:179-187
###################################################
library(rgdal)
NY8 <- readOGR(".", "NY8_utm18")
TCE <- readOGR(... |
## TODO: [Documentation-AUTO] Check/fix Roxygen2 Documentation (EM_SBM_mf_chooser)
#' Fit SBM using mean field approx
#'
#' @param adjm [matrix-int] :: Input adjacency matrix
#' @param Nobs [int] :: Number of observations per dyad
#' @param nodeps [vec-double] :: Initial node probabilities
#' @param edgeps [matrix-do... | /netcompLib/R/fit_SBM_EMalgos.R | no_license | minghao2016/netcompLib | R | false | false | 13,171 | r |
## TODO: [Documentation-AUTO] Check/fix Roxygen2 Documentation (EM_SBM_mf_chooser)
#' Fit SBM using mean field approx
#'
#' @param adjm [matrix-int] :: Input adjacency matrix
#' @param Nobs [int] :: Number of observations per dyad
#' @param nodeps [vec-double] :: Initial node probabilities
#' @param edgeps [matrix-do... |
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("How much will a diamond cost?"),
sidebarPanel(
helpText("Find out the average price of a diamond
based on the size, cut and color you choose."),
numericInput('caratmin', ' Choose minimum size in carats [0-4]', 0, min = 0, max = 4, ste... | /ui.R | no_license | Hgjerning/diamond_app | R | false | false | 1,926 | r |
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("How much will a diamond cost?"),
sidebarPanel(
helpText("Find out the average price of a diamond
based on the size, cut and color you choose."),
numericInput('caratmin', ' Choose minimum size in carats [0-4]', 0, min = 0, max = 4, ste... |
############################### Scenario 4 ###############################
# psf(w)
psf <- function(w, pe=-1.58*10^-3, b=4.38)pe*w^(-b)
# xylem conductance function
kxf <- function(px, kxmax=5, c=2.64, d=3.54)kxmax*exp(-(-px/d)^c)
# gsmaxf(w)
gsmaxf <- Vectorize(function(w, a=1.6, nZ=0.5, p=43200, l=1.8e-5, LAI=1, h... | /Normal plants/S4/Functions.r | no_license | YaojieLu/ESS | R | false | false | 2,354 | r |
############################### Scenario 4 ###############################
# psf(w)
psf <- function(w, pe=-1.58*10^-3, b=4.38)pe*w^(-b)
# xylem conductance function
kxf <- function(px, kxmax=5, c=2.64, d=3.54)kxmax*exp(-(-px/d)^c)
# gsmaxf(w)
gsmaxf <- Vectorize(function(w, a=1.6, nZ=0.5, p=43200, l=1.8e-5, LAI=1, h... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reportAnnualAvFactor.R
\name{reportAnnualAvFactor}
\alias{reportAnnualAvFactor}
\title{Read in GDX and report the annual availability factor (for nonRES), used in convGDX2MIF.R for the reporting}
\usage{
reportAnnualAvFactor(gdx)
}
\arguments... | /man/reportAnnualAvFactor.Rd | no_license | pik-piam/limes | R | false | true | 752 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reportAnnualAvFactor.R
\name{reportAnnualAvFactor}
\alias{reportAnnualAvFactor}
\title{Read in GDX and report the annual availability factor (for nonRES), used in convGDX2MIF.R for the reporting}
\usage{
reportAnnualAvFactor(gdx)
}
\arguments... |
## Making summary tables with `dplyr`
`dplyr` is an R package which makes it very easy to look at summaries of data. Even though some people consider it more advanced, I think it's a good idea to introduce beginners to it from the start. We're going to try to do the same using this package.
We already loaded i... | /future.R | no_license | danielleturton/quantling | R | false | false | 7,007 | r |
## Making summary tables with `dplyr`
`dplyr` is an R package which makes it very easy to look at summaries of data. Even though some people consider it more advanced, I think it's a good idea to introduce beginners to it from the start. We're going to try to do the same using this package.
We already loaded i... |
\name{Density}
\alias{Density}
\alias{dn}
\title{Density Curves from Data plus Histogram}
\description{
Abbreviation: \code{dn}
Plots a normal density curve and/or a general density curve superimposed over a histogram, all estimated from the data. Also reports the Shapiro-Wilk normality test and summary statistics.
... | /man/Density.Rd | no_license | goliatl/lessR | R | false | false | 13,981 | rd | \name{Density}
\alias{Density}
\alias{dn}
\title{Density Curves from Data plus Histogram}
\description{
Abbreviation: \code{dn}
Plots a normal density curve and/or a general density curve superimposed over a histogram, all estimated from the data. Also reports the Shapiro-Wilk normality test and summary statistics.
... |
########################################################################################
#' Import transcript-level abundances and estimated counts for gene-level analysis packages
########################################################################################
#source("http://bioconductor.org/biocLite.R")
#bio... | /RNA_seq_gene-l_AMF_HOST_v11.R | no_license | ivandamg/Mycorrhizes_DualRNAseq | R | false | false | 283,854 | r | ########################################################################################
#' Import transcript-level abundances and estimated counts for gene-level analysis packages
########################################################################################
#source("http://bioconductor.org/biocLite.R")
#bio... |
#################
### Load data ###
#################
rm(list=setdiff(ls(),c('params','grp','goi','probe','injection.site')))
print(grp)
basedir <- params$basedir
setwd(basedir)
savedir <- paste(params$opdir,'nullmodels/euclidean/',paste0(injection.site,collapse='-'),'/',sep='')
dir.create(savedir,recursive=T)
source... | /code/nullmodels/plotCNDRspaceEuclideanfit.R | permissive | ejcorn/tau-spread | R | false | false | 7,351 | r | #################
### Load data ###
#################
rm(list=setdiff(ls(),c('params','grp','goi','probe','injection.site')))
print(grp)
basedir <- params$basedir
setwd(basedir)
savedir <- paste(params$opdir,'nullmodels/euclidean/',paste0(injection.site,collapse='-'),'/',sep='')
dir.create(savedir,recursive=T)
source... |
openObservation <- function(file, varname,...) {
obs_dir = data_dir.BenchmarkData
if (length(varname)==1 && varname == 'csv') {
dat = try(openCsvInputs(file = file, dir = obs_dir, ...), silent = TRUE)
} else {
dat = try(openRasterInputs(file = file, varname = varname,
... | /LGM_Benchmarking/src/openObservations.r | no_license | vedereka/PMIP4_Benchm_proj | R | false | false | 1,467 | r | openObservation <- function(file, varname,...) {
obs_dir = data_dir.BenchmarkData
if (length(varname)==1 && varname == 'csv') {
dat = try(openCsvInputs(file = file, dir = obs_dir, ...), silent = TRUE)
} else {
dat = try(openRasterInputs(file = file, varname = varname,
... |
### R code from vignette source 'flu.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: startup
###################################################
#system ("mkdir fig")
options(SweaveHooks=list(fig=function() {
par(mar = c (4.1, 4.1, 1, .6))
trellis.pars <- trel... | /data/genthat_extracted_code/hyperSpec/vignettes/flu.R | no_license | surayaaramli/typeRrh | R | false | false | 12,914 | r | ### R code from vignette source 'flu.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: startup
###################################################
#system ("mkdir fig")
options(SweaveHooks=list(fig=function() {
par(mar = c (4.1, 4.1, 1, .6))
trellis.pars <- trel... |
sigmoid <- function(z) {
#SIGMOID Compute sigmoid functoon
# J <- SIGMOID(z) computes the sigmoid of z.
# You need to return the following variables correctly
z <- as.matrix(z)
g <- matrix(0,dim(z)[1],dim(z)[2])
# ----------------------- YOUR CODE HERE -----------------------
# Instructions: Compu... | /Starter/mlclass-ex2/sigmoid.R | no_license | yc-ng/machine-learning-course | R | false | false | 510 | r | sigmoid <- function(z) {
#SIGMOID Compute sigmoid functoon
# J <- SIGMOID(z) computes the sigmoid of z.
# You need to return the following variables correctly
z <- as.matrix(z)
g <- matrix(0,dim(z)[1],dim(z)[2])
# ----------------------- YOUR CODE HERE -----------------------
# Instructions: Compu... |
#################################
load("F:/我的论文/第五篇/RData/da_all_m.RData")
load("F:/我的论文/第五篇/主代码/beta anomaly/monthly data in five years/RData/da_beta_5y.RData")
load("F:/我的论文/第五篇/RData/da_top_m.RData")
da_top_m[,high_individual:=ifelse(top<median(top),1,0),by=ym]
da_m <- merge(da_all_m[,.(ym,SecCode,ret_e,size)],da_... | /beta and top 10.R | no_license | jaynewton/paper_5 | R | false | false | 2,002 | r | #################################
load("F:/我的论文/第五篇/RData/da_all_m.RData")
load("F:/我的论文/第五篇/主代码/beta anomaly/monthly data in five years/RData/da_beta_5y.RData")
load("F:/我的论文/第五篇/RData/da_top_m.RData")
da_top_m[,high_individual:=ifelse(top<median(top),1,0),by=ym]
da_m <- merge(da_all_m[,.(ym,SecCode,ret_e,size)],da_... |
# TODO: generate synthetic data from the ODFP model
#
# Author: Jun Yu
# Version: Jan 18, 2012
###############################################################################
source("ODFP.R")
#
# generate synthetic data from ODFP model
#
# Args:
# nSites: number of sites
# visits: a vector recording nu... | /ODFP.synthData.R | no_license | yujunnokia/eBird.ODFP | R | false | false | 2,190 | r | # TODO: generate synthetic data from the ODFP model
#
# Author: Jun Yu
# Version: Jan 18, 2012
###############################################################################
source("ODFP.R")
#
# generate synthetic data from ODFP model
#
# Args:
# nSites: number of sites
# visits: a vector recording nu... |
idc <-
function(y, x, z, P, G, to) {
from <- NULL
G.xz <- unobserved.graph(G)
edges.to.x <- E(G.xz)[to(x)]
edges.from.z <- E(G.xz)[from(z)]
G.xz <- subgraph.edges(G.xz, E(G.xz)[setdiff(E(G.xz), union(edges.to.x, edges.from.z))], delete.vertices = FALSE)
A <- as.matrix(get.adjacency(G.xz))
for (nod... | /causaleffect/R/idc.R | no_license | ingted/R-Examples | R | false | false | 516 | r | idc <-
function(y, x, z, P, G, to) {
from <- NULL
G.xz <- unobserved.graph(G)
edges.to.x <- E(G.xz)[to(x)]
edges.from.z <- E(G.xz)[from(z)]
G.xz <- subgraph.edges(G.xz, E(G.xz)[setdiff(E(G.xz), union(edges.to.x, edges.from.z))], delete.vertices = FALSE)
A <- as.matrix(get.adjacency(G.xz))
for (nod... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{sju.aov1.levene}
\alias{sju.aov1.levene}
\title{Plot Levene-Test for One-Way-Anova}
\usage{
sju.aov1.levene(depVar, grpVar)
}
\arguments{
\item{depVar}{The dependent variable. Will be used with following formular:
\code{aov(depVar ~ grpVar)}}
\item{grpVar}{The... | /man/sju.aov1.levene.Rd | no_license | harshagn/devel | R | false | false | 855 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{sju.aov1.levene}
\alias{sju.aov1.levene}
\title{Plot Levene-Test for One-Way-Anova}
\usage{
sju.aov1.levene(depVar, grpVar)
}
\arguments{
\item{depVar}{The dependent variable. Will be used with following formular:
\code{aov(depVar ~ grpVar)}}
\item{grpVar}{The... |
context("mudata constructor")
pocmaj_data <- pocmajsum %>%
dplyr::select(core, depth, Ca, Ti, V) %>%
tidyr::gather(Ca, Ti, V, key = "param", value = "value") %>%
dplyr::select(location = core, param, depth, value)
test_that("mudata constructor creates a mudata object", {
md <- mudata(pocmaj_data)
expect_th... | /data/genthat_extracted_code/mudata2/tests/test_mudata.R | no_license | surayaaramli/typeRrh | R | false | false | 12,060 | r |
context("mudata constructor")
pocmaj_data <- pocmajsum %>%
dplyr::select(core, depth, Ca, Ti, V) %>%
tidyr::gather(Ca, Ti, V, key = "param", value = "value") %>%
dplyr::select(location = core, param, depth, value)
test_that("mudata constructor creates a mudata object", {
md <- mudata(pocmaj_data)
expect_th... |
tabPanel("Attribution",
tags$head(tags$style('table {font-size:13px;}')),
sidebarPanel(
style = "position:fixed; margin-top:80px; width:400px",
HTML("# Default Data<br>Rp : portfolio returns<br>wp : portfolio weights<br>Rb : benchmark returns<br>wb : benchmark weights"),
... | /output_attribution.R | no_license | weonjeungchang/DvorakQuanti | R | false | false | 6,082 | r | tabPanel("Attribution",
tags$head(tags$style('table {font-size:13px;}')),
sidebarPanel(
style = "position:fixed; margin-top:80px; width:400px",
HTML("# Default Data<br>Rp : portfolio returns<br>wp : portfolio weights<br>Rb : benchmark returns<br>wb : benchmark weights"),
... |
require(graphics)
with(cars, {
plot(speed, dist)
lines(supsmu(speed, dist))
lines(supsmu(speed, dist, bass = 7), lty = 2)
})
| /lab8/lab1_loess3.R | no_license | sirmammingtonham/DataAnalytics2021_Ethan_Joseph | R | false | false | 142 | r | require(graphics)
with(cars, {
plot(speed, dist)
lines(supsmu(speed, dist))
lines(supsmu(speed, dist, bass = 7), lty = 2)
})
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LCGT.R
\name{LCGT}
\alias{LCGT}
\title{Estimate a Latent Class Growth Tree model}
\usage{
LCGT(Dataset, LG, LGS = NULL, dependent = NULL, levelsDependent = 2,
independent = NULL, caseid = NULL, weight = "weight",
resultsName = "", maxClas... | /man/LCGT.Rd | no_license | MattisvdBergh/LCT | R | false | true | 3,143 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LCGT.R
\name{LCGT}
\alias{LCGT}
\title{Estimate a Latent Class Growth Tree model}
\usage{
LCGT(Dataset, LG, LGS = NULL, dependent = NULL, levelsDependent = 2,
independent = NULL, caseid = NULL, weight = "weight",
resultsName = "", maxClas... |
#args <- (commandArgs(trailingOnly = TRUE))
#for (i in 1:length(args)) {
# eval(parse(text = args[[i]]))
#}
#print(config_file)
#print(demethod)
## filt should be a string of the form type_value_nbr, where type is either TPM
## or count, and features will be filtered out unless they show at least a
## "type" of "val... | /code/run_diffexpression.R | no_license | jhsiao999/dsc_conquer_comparison | R | false | false | 2,191 | r | #args <- (commandArgs(trailingOnly = TRUE))
#for (i in 1:length(args)) {
# eval(parse(text = args[[i]]))
#}
#print(config_file)
#print(demethod)
## filt should be a string of the form type_value_nbr, where type is either TPM
## or count, and features will be filtered out unless they show at least a
## "type" of "val... |
# Load necessary packages
library(shiny)
library(shinydashboard)
library(markdown)
library(RCurl)
library(rvest)
library(data.table)
library(janitor)
library(strex)
# Source thresholds data
source("R/calculate_repayments.R")
source("R/get_thresholds_data.R")
# Load
thresholds_df <- get_thresholds_data()
# Prepare co... | /global.R | permissive | edbonneville/overseas-slc-thresholds | R | false | false | 572 | r | # Load necessary packages
library(shiny)
library(shinydashboard)
library(markdown)
library(RCurl)
library(rvest)
library(data.table)
library(janitor)
library(strex)
# Source thresholds data
source("R/calculate_repayments.R")
source("R/get_thresholds_data.R")
# Load
thresholds_df <- get_thresholds_data()
# Prepare co... |
testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615854798-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 681 | r | testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.... |
library(nycflights13); library(tidyverse)
flights
airlines; airports; planes; weather
x <- tribble(
~key, ~val_x,
1, "x1",
2, "x2",
3, "x3"
)
y <- tribble(
~key, ~val_y,
1, "y1",
2, "y2",
4, "y3"
)
inner_join(x, y, by = "key")
left_join(x, y, by = "key")
right_join(x, y, by = "key")
full_join(x, y,... | /전산통계와 실험/6. Relational Data.r | no_license | YeonghyeonKO/Practice | R | false | false | 1,586 | r | library(nycflights13); library(tidyverse)
flights
airlines; airports; planes; weather
x <- tribble(
~key, ~val_x,
1, "x1",
2, "x2",
3, "x3"
)
y <- tribble(
~key, ~val_y,
1, "y1",
2, "y2",
4, "y3"
)
inner_join(x, y, by = "key")
left_join(x, y, by = "key")
right_join(x, y, by = "key")
full_join(x, y,... |
# https://twitter.com/data_question
# In ggplot, each component (like: geom_line()) is an object.
# That means you can assign them to a variable (or create a function) and reuse them.
library(ggplot2)
points = geom_point(position="jitter",
color="steelblue",
size = 2)
ggplot(m... | /12282020.R | no_license | pritikadasgupta/datasciencequestionaday | R | false | false | 730 | r | # https://twitter.com/data_question
# In ggplot, each component (like: geom_line()) is an object.
# That means you can assign them to a variable (or create a function) and reuse them.
library(ggplot2)
points = geom_point(position="jitter",
color="steelblue",
size = 2)
ggplot(m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3control_operations.R
\name{s3control_put_public_access_block}
\alias{s3control_put_public_access_block}
\title{Put public access block}
\usage{
s3control_put_public_access_block(PublicAccessBlockConfiguration,
AccountId)
}
\arguments{
\it... | /cran/paws.storage/man/s3control_put_public_access_block.Rd | permissive | peoplecure/paws | R | false | true | 747 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3control_operations.R
\name{s3control_put_public_access_block}
\alias{s3control_put_public_access_block}
\title{Put public access block}
\usage{
s3control_put_public_access_block(PublicAccessBlockConfiguration,
AccountId)
}
\arguments{
\it... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DSC_Macro.R
\name{DSC_Macro}
\alias{DSC_Macro}
\alias{microToMacro}
\title{Abstract Class for Macro Clusterers (Offline Component)}
\usage{
DSC_Macro(...)
microToMacro(x, micro = NULL)
}
\arguments{
\item{...}{further arguments.}
\item{x}{a... | /man/DSC_Macro.Rd | no_license | mhahsler/stream | R | false | true | 2,212 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DSC_Macro.R
\name{DSC_Macro}
\alias{DSC_Macro}
\alias{microToMacro}
\title{Abstract Class for Macro Clusterers (Offline Component)}
\usage{
DSC_Macro(...)
microToMacro(x, micro = NULL)
}
\arguments{
\item{...}{further arguments.}
\item{x}{a... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{flatten.dendrogram}
\alias{flatten.dendrogram}
\title{Flatten the branches of a dendrogram's root}
\usage{
flatten.dendrogram(dend, FUN = max, new_height, ...)
}
\arguments{
\item{dend}{dendrogram object}
\item{FUN}{how to choose the new height of both branche... | /man/flatten.dendrogram.Rd | no_license | YTLogos/dendextend | R | false | false | 986 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{flatten.dendrogram}
\alias{flatten.dendrogram}
\title{Flatten the branches of a dendrogram's root}
\usage{
flatten.dendrogram(dend, FUN = max, new_height, ...)
}
\arguments{
\item{dend}{dendrogram object}
\item{FUN}{how to choose the new height of both branche... |
# BISC 577, Unit 3
# High-throughput in vivo
## Initialization
library(AnnotationHub)
library(rtracklayer)
library(DNAshapeR)
library(BSgenome.Hsapiens.UCSC.hg19)
library(BSgenome.Mmusculus.UCSC.mm10)
library(caret)
library(e1071)
library(ROCR)
## Get Chip-seq data, store in fasta
ah <- AnnotationHub()
ah
unique(ah$d... | /High throughput in vivo.R | no_license | JC-USC/BISC577HW2 | R | false | false | 713 | r | # BISC 577, Unit 3
# High-throughput in vivo
## Initialization
library(AnnotationHub)
library(rtracklayer)
library(DNAshapeR)
library(BSgenome.Hsapiens.UCSC.hg19)
library(BSgenome.Mmusculus.UCSC.mm10)
library(caret)
library(e1071)
library(ROCR)
## Get Chip-seq data, store in fasta
ah <- AnnotationHub()
ah
unique(ah$d... |
library(dplyr)
### Name: between
### Title: Do values in a numeric vector fall in specified range?
### Aliases: between
### ** Examples
between(1:12, 7, 9)
x <- rnorm(1e2)
x[between(x, -1, 1)]
| /data/genthat_extracted_code/dplyr/examples/between.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 201 | r | library(dplyr)
### Name: between
### Title: Do values in a numeric vector fall in specified range?
### Aliases: between
### ** Examples
between(1:12, 7, 9)
x <- rnorm(1e2)
x[between(x, -1, 1)]
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/removeSignalPeptides.R
\name{makeID}
\alias{makeID}
\title{make id for chain in format sp|P30443|1A01_HUMANs25}
\usage{
makeID(sequence, id, sp)
}
\arguments{
\item{sequence}{- aa sequence as string}
\item{id}{uniprot id id: sp|P3... | /man/makeID.Rd | no_license | cran/prozor | R | false | true | 976 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/removeSignalPeptides.R
\name{makeID}
\alias{makeID}
\title{make id for chain in format sp|P30443|1A01_HUMANs25}
\usage{
makeID(sequence, id, sp)
}
\arguments{
\item{sequence}{- aa sequence as string}
\item{id}{uniprot id id: sp|P3... |
#Note : not working at this moment
plot_return_vs_factor = function(data,returns,factor){
#data : data_ml
data %>%
ggplot(aes(x=!!factor,y=!!returns))
} | /Utils/plot_returns_vs_factor.R | no_license | SeyedShobeiri/Factor-Investing | R | false | false | 170 | r | #Note : not working at this moment
plot_return_vs_factor = function(data,returns,factor){
#data : data_ml
data %>%
ggplot(aes(x=!!factor,y=!!returns))
} |
rm(list=ls())
library(xlsx)
library(ggplot2)
library(tidyverse)
library(hrbrthemes)
library(viridis)
library(plotly)
library(d3heatmap)
library(heatmaply)
setwd("C:/Users/efthimiou/Google Drive/PROJECT/APPLIED PROJECTS/Martha/data/RESULTS/")
outcomes=list.files()
#outcomes[outcomes=="arrhythmia-heart .xlsx"]="ARRHYTMI... | /kilim/old codes/for heatplot 3.R | no_license | MikeJSeo/phd | R | false | false | 4,227 | r | rm(list=ls())
library(xlsx)
library(ggplot2)
library(tidyverse)
library(hrbrthemes)
library(viridis)
library(plotly)
library(d3heatmap)
library(heatmaply)
setwd("C:/Users/efthimiou/Google Drive/PROJECT/APPLIED PROJECTS/Martha/data/RESULTS/")
outcomes=list.files()
#outcomes[outcomes=="arrhythmia-heart .xlsx"]="ARRHYTMI... |
#Load libraries
library(data.table)
generatePlot2 <- function(){
#Load the Data
subSet <- fread ("./data/hhd.csv", na.strings="?", stringsAsFactors=FALSE, header=TRUE)
subSet$Global_active_power <- as.numeric(subSet$Global_active_power)
subSet$Global_reactive_power <- as.numeric(subSet$... | /plot2.R | no_license | mgamboam/ExData_Plotting1 | R | false | false | 830 | r | #Load libraries
library(data.table)
generatePlot2 <- function(){
#Load the Data
subSet <- fread ("./data/hhd.csv", na.strings="?", stringsAsFactors=FALSE, header=TRUE)
subSet$Global_active_power <- as.numeric(subSet$Global_active_power)
subSet$Global_reactive_power <- as.numeric(subSet$... |
# Reading, naming and subsetting power consumption data
power <- read.table("household_power_consumption.txt",skip=1,sep=";")
names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
subpower <- subset(power,power$D... | /plot3.R | no_license | KiranKumar23/ExData_Plotting1 | R | false | false | 1,404 | r | # Reading, naming and subsetting power consumption data
power <- read.table("household_power_consumption.txt",skip=1,sep=";")
names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
subpower <- subset(power,power$D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.