content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library("gplots")
####################################################################
#Load data
####################################################################
node = commandArgs(trailingOnly = TRUE)[1]
out_folder = commandArgs(trailingOnly = TRUE)[2]
dataset_list =commandArgs(trailingOnly = TRUE)[3]
testFile =... | /Node_interpretation/make_heatmaps_same_colorkey.R | permissive | JustinRunyon/JustinRunyon | R | false | false | 3,607 | r | library("gplots")
####################################################################
#Load data
####################################################################
node = commandArgs(trailingOnly = TRUE)[1]
out_folder = commandArgs(trailingOnly = TRUE)[2]
dataset_list =commandArgs(trailingOnly = TRUE)[3]
testFile =... |
# tests for feature pre-processing functions.
# library(scater); library(testthat); source("setup-sce.R"); source("test-feat-proc.R")
context("test feature pre-processing functions")
set.seed(10001)
test_that("we can summarise counts at feature set level", {
ids <- sample(nrow(sce)/2, nrow(sce), replace=TRUE)
... | /tests/testthat/test-feat-proc.R | no_license | mimi3421/scater | R | false | false | 4,428 | r | # tests for feature pre-processing functions.
# library(scater); library(testthat); source("setup-sce.R"); source("test-feat-proc.R")
context("test feature pre-processing functions")
set.seed(10001)
test_that("we can summarise counts at feature set level", {
ids <- sample(nrow(sce)/2, nrow(sce), replace=TRUE)
... |
/prediction mdel/9/coxTest.survStat.R | no_license | suer12/FIO-FAM-lncRNA | R | false | false | 1,269 | r | ||
library(twitteR)
library(ROAuth)
library(httpuv)
library(base64enc)
# authentication
user <- OAuthFactory$new(consumerKey="_______________________________________________",#fill ur's consumer API key
consumerSecret="____________________________________________",#fill ur's consumer API sec... | /Text Mining/twitter text mining.R | no_license | Mohitchoudhary2109/Data-science-Assignment | R | false | false | 4,135 | r | library(twitteR)
library(ROAuth)
library(httpuv)
library(base64enc)
# authentication
user <- OAuthFactory$new(consumerKey="_______________________________________________",#fill ur's consumer API key
consumerSecret="____________________________________________",#fill ur's consumer API sec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slide.R
\name{slide}
\alias{slide}
\title{Single Cell Linkage by Distance Estimation is SLIDE}
\usage{
slide(infected, uninfected, cutoff = 1.2)
}
\arguments{
\item{infected}{A dataframe of protein expression levels in an infected su... | /man/slide.Rd | no_license | cran/SLIDE | R | false | true | 1,635 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slide.R
\name{slide}
\alias{slide}
\title{Single Cell Linkage by Distance Estimation is SLIDE}
\usage{
slide(infected, uninfected, cutoff = 1.2)
}
\arguments{
\item{infected}{A dataframe of protein expression levels in an infected su... |
library(mlbench)
library(caret)
library(dplyr)
#Binary Classification
#Predict whether a tissue sample is malignant or benign given properties
#about the tissue sample.
data(BreastCancer)
set.seed(99)
index<-createDataPartition(BreastCancer$Class,p=0.8,list=FALSE)
train<-BreastCancer[index,]
test<-BreastCance... | /CS9.R | no_license | som21-star/Binary-Classification-on-Breast-Cancer-Dataset | R | false | false | 3,592 | r | library(mlbench)
library(caret)
library(dplyr)
#Binary Classification
#Predict whether a tissue sample is malignant or benign given properties
#about the tissue sample.
data(BreastCancer)
set.seed(99)
index<-createDataPartition(BreastCancer$Class,p=0.8,list=FALSE)
train<-BreastCancer[index,]
test<-BreastCance... |
######
######
###### Refitting Functions
######
######
refitFunction <- function(hl, hldata, fitMethod="Nelder-Mead", fitModel="NS", max_do=500, refit_choice="Graph"){
NS_Refit <- function(var){
Refitting_Predic... | /server_refit.R | no_license | ed-lau/proturnyze | R | false | false | 20,746 | r | ######
######
###### Refitting Functions
######
######
refitFunction <- function(hl, hldata, fitMethod="Nelder-Mead", fitModel="NS", max_do=500, refit_choice="Graph"){
NS_Refit <- function(var){
Refitting_Predic... |
\name{GSReg-package}
\alias{GSReg-package}
\alias{GSReg}
\docType{package}
\title{A package for Gene Set Analysis based on the variability of gene expression in different phenotypes.}
\description{
The GSReg package applies the analysis of variety among phenotypes for each gene set from gene expression as... | /man/GSReg-package.Rd | no_license | FertigLab/GSReg | R | false | false | 1,599 | rd | \name{GSReg-package}
\alias{GSReg-package}
\alias{GSReg}
\docType{package}
\title{A package for Gene Set Analysis based on the variability of gene expression in different phenotypes.}
\description{
The GSReg package applies the analysis of variety among phenotypes for each gene set from gene expression as... |
library(RTCGA)
createTCGA(description = system.file("DESCRIPTION", package = "RTCGA.clinical.20160128"), clean = TRUE) | /inst/scripts/make-data.R | no_license | RTCGA/RTCGA.clinical.20160128 | R | false | false | 124 | r | library(RTCGA)
createTCGA(description = system.file("DESCRIPTION", package = "RTCGA.clinical.20160128"), clean = TRUE) |
library(tidyverse)
plot_results = function(data, stat = 'bias') {
# set the levels to be equivalent regardless of model
data = data %>%
filter(term != 'Intercept') %>%
mutate(term = factor(term, levels = c('x1', 'x_win', 'x2', 'c1', 'c2')))
data %>%
mutate(
n_grps = factor(n_grps, la... | /code/mixed_models/plot_results_basic.R | no_license | m-clark/m-clark.github.io | R | false | false | 2,026 | r |
library(tidyverse)
plot_results = function(data, stat = 'bias') {
# set the levels to be equivalent regardless of model
data = data %>%
filter(term != 'Intercept') %>%
mutate(term = factor(term, levels = c('x1', 'x_win', 'x2', 'c1', 'c2')))
data %>%
mutate(
n_grps = factor(n_grps, la... |
# Script for functions calculating the rate of increase up to order n
# Function calculating the rate of increase in order 1
diff.1 = function(x, t)
{
# x is an element of a list containing the samples
x = unlist(x)
l = length(x)
res = (x[2:l] - x[1:(l-1)])/t[1:(l-1)]
return(res)
}
# R... | /Code/derivees.R | no_license | Pierre-Michel/gammaMetric | R | false | false | 1,598 | r | # Script for functions calculating the rate of increase up to order n
# Function calculating the rate of increase in order 1
diff.1 = function(x, t)
{
# x is an element of a list containing the samples
x = unlist(x)
l = length(x)
res = (x[2:l] - x[1:(l-1)])/t[1:(l-1)]
return(res)
}
# R... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parcels.R
\name{parcels}
\alias{parcels}
\title{Retrieves the set of parcels from Retsly's datasets.}
\usage{
parcels(opts = retsly_query(), dataset = "pub")
}
\arguments{
\item{opts}{Request query parameters, see \code{retsly_query}.}
\item... | /man/parcels.Rd | no_license | ALShum/Retsly | R | false | true | 593 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parcels.R
\name{parcels}
\alias{parcels}
\title{Retrieves the set of parcels from Retsly's datasets.}
\usage{
parcels(opts = retsly_query(), dataset = "pub")
}
\arguments{
\item{opts}{Request query parameters, see \code{retsly_query}.}
\item... |
################################################################################
path="LncEvoDevo/"
pathCoverage=paste(path,"results/RNA_degradation/",sep="")
pathEnsembl=paste(path,"data/ensembl_annotations/",sep="")
################################################################################
for(sp in c("Mouse... | /RNA_degradation/plot.coverage.variation.R | no_license | anecsulea/LncEvoDevo | R | false | false | 2,842 | r | ################################################################################
path="LncEvoDevo/"
pathCoverage=paste(path,"results/RNA_degradation/",sep="")
pathEnsembl=paste(path,"data/ensembl_annotations/",sep="")
################################################################################
for(sp in c("Mouse... |
#30506
filterTaps <- c(0.002385,
0.011910,
0.026352,
0.039825,
0.045351,
0.039825,
0.026352,
0.011910,
0.002385)
filterTaps2 <- filterTaps / sum(filterTaps)
freqz(filterTaps)
freqz(filterTaps2)
getNumSamples <- 1000
reader <- rnorm(getNumSamples,0,1)
writeback <- 0*reader
delayLine <- 0*filterTaps
result <- 0; #... | /R/Q30506/Q30506.R | permissive | kootsoop/DSP.SE | R | false | false | 800 | r | #30506
filterTaps <- c(0.002385,
0.011910,
0.026352,
0.039825,
0.045351,
0.039825,
0.026352,
0.011910,
0.002385)
filterTaps2 <- filterTaps / sum(filterTaps)
freqz(filterTaps)
freqz(filterTaps2)
getNumSamples <- 1000
reader <- rnorm(getNumSamples,0,1)
writeback <- 0*reader
delayLine <- 0*filterTaps
result <- 0; #... |
library(caret)
source('~/RWorkspace/PB/profilePlot.R')
## Read the data, removes outliers and unwanted variables
data <- read.csv("original.csv",sep=";",na.strings="ND", dec=",",row.names=1)
data <- subset(data, DIBUJO_SIEMBRA_PLATANO!="EN_BARRERA")
data <- subset(data, d.interno!="LENTO A MUY LENTO")
data$ANALISIS_Q... | /unconditionalImportance.R | no_license | Challensois/CIAT | R | false | false | 3,346 | r | library(caret)
source('~/RWorkspace/PB/profilePlot.R')
## Read the data, removes outliers and unwanted variables
data <- read.csv("original.csv",sep=";",na.strings="ND", dec=",",row.names=1)
data <- subset(data, DIBUJO_SIEMBRA_PLATANO!="EN_BARRERA")
data <- subset(data, d.interno!="LENTO A MUY LENTO")
data$ANALISIS_Q... |
#' Find location of particular citation in text
#'
#' This is a handy function to find out where a citation is
#' located in a manuscript.
#' @param full_text This is an array of text that is usually grabbed
#' from \code{grab_text()} function.
#' @param key The sequence you are searching for in the \code{full_text... | /R/citation_location.R | no_license | dyerlab/footprints | R | false | false | 1,340 | r | #' Find location of particular citation in text
#'
#' This is a handy function to find out where a citation is
#' located in a manuscript.
#' @param full_text This is an array of text that is usually grabbed
#' from \code{grab_text()} function.
#' @param key The sequence you are searching for in the \code{full_text... |
##' Gene Set Enrichment Analysis of MeSH
##'
##'
##' @title gseMeSH
##' @param geneList order ranked geneList
##' @param MeSHDb MeSHDb
##' @param database one of 'gendoo', 'gene2pubmed' or 'RBBH'
##' @param category one of "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L","M", "N", "V", "Z"
##' @param exponent... | /R/gseMeSH.R | no_license | huerqiang/meshes | R | false | false | 2,991 | r | ##' Gene Set Enrichment Analysis of MeSH
##'
##'
##' @title gseMeSH
##' @param geneList order ranked geneList
##' @param MeSHDb MeSHDb
##' @param database one of 'gendoo', 'gene2pubmed' or 'RBBH'
##' @param category one of "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L","M", "N", "V", "Z"
##' @param exponent... |
#' Query available dataset on the Episteme API
#'
#' @description Queries the Episteme API regarding available datasets and returns them in an organised list.
#'
#' @return A full listing of datasets with description by Country, Content and Release, to allow for filtering.
#' @export
dataset_list <- function() {
da... | /R/listing.R | no_license | dncnbrn/EmsiR | R | false | false | 4,616 | r | #' Query available dataset on the Episteme API
#'
#' @description Queries the Episteme API regarding available datasets and returns them in an organised list.
#'
#' @return A full listing of datasets with description by Country, Content and Release, to allow for filtering.
#' @export
dataset_list <- function() {
da... |
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)
app <- Dash$new()
app$layout(
htmlDiv(
list(
dccInput(id = 'input-1', type = 'text', value = 'Montreal'),
dccInput(id = 'input-2', type = 'text', value = 'Canada'),
htmlDiv(id = 'output_keywords')
)
)
)
app$callback(... | /dash_docs/chapters/basic_callbacks/examples/basic-input.R | permissive | plotly/dash-docs | R | false | false | 654 | r | library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)
app <- Dash$new()
app$layout(
htmlDiv(
list(
dccInput(id = 'input-1', type = 'text', value = 'Montreal'),
dccInput(id = 'input-2', type = 'text', value = 'Canada'),
htmlDiv(id = 'output_keywords')
)
)
)
app$callback(... |
library(IHSEP)
### Name: h.fn.exp
### Title: Mean Intensity of the Self-Exciting Point Process With an
### Exponential Excitation Function 'h.fn.exp' calculates the mean
### intensity function h(t) which solves the integral equation
### h(t)=nu(t)+\int_0^t g(t-s)h(s)ds, t>=q 0 , where the excitation
### funct... | /data/genthat_extracted_code/IHSEP/examples/h.fn.exp.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 638 | r | library(IHSEP)
### Name: h.fn.exp
### Title: Mean Intensity of the Self-Exciting Point Process With an
### Exponential Excitation Function 'h.fn.exp' calculates the mean
### intensity function h(t) which solves the integral equation
### h(t)=nu(t)+\int_0^t g(t-s)h(s)ds, t>=q 0 , where the excitation
### funct... |
\name{get_cloudmademap}
\alias{get_cloudmademap}
\title{Get a CloudMade map}
\usage{
get_cloudmademap(bbox = c(left = -95.80204, bottom = 29.38048, right = -94.92313, top = 30.14344),
zoom = 10, api_key, maptype = 1, highres = TRUE,
crop = TRUE, messaging = FALSE, urlonly = FALSE,
filename = "ggmapTemp", ... | /man/get_cloudmademap.Rd | no_license | jiho/ggmap | R | false | false | 2,398 | rd | \name{get_cloudmademap}
\alias{get_cloudmademap}
\title{Get a CloudMade map}
\usage{
get_cloudmademap(bbox = c(left = -95.80204, bottom = 29.38048, right = -94.92313, top = 30.14344),
zoom = 10, api_key, maptype = 1, highres = TRUE,
crop = TRUE, messaging = FALSE, urlonly = FALSE,
filename = "ggmapTemp", ... |
#' @docType import
#' @name reexports
#' @aliases reexports as_d3_data
#' @title Objects exported from other packages
#' @keywords internal
#' @description These objects are imported from other packages.
#' Follow the links below to see their documentation.
#' \itemize{
#' \item r2d3 \code{\link[r2d3]{as_d... | /R/reexports.R | no_license | cran/DTAT | R | false | false | 392 | r | #' @docType import
#' @name reexports
#' @aliases reexports as_d3_data
#' @title Objects exported from other packages
#' @keywords internal
#' @description These objects are imported from other packages.
#' Follow the links below to see their documentation.
#' \itemize{
#' \item r2d3 \code{\link[r2d3]{as_d... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{GetMetrics}
\alias{GetMetrics}
\title{Get Available Metrics within a Report Suite}
\usage{
GetMetrics(reportsuite.ids, metrics = c(), elements = c(),
date.granularity = "")
}
\arguments{
\item{reportsuite.ids}{Single report suite id, or character vector of re... | /man/GetMetrics.Rd | no_license | miguelbravo/RSiteCatalyst | R | false | false | 1,184 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{GetMetrics}
\alias{GetMetrics}
\title{Get Available Metrics within a Report Suite}
\usage{
GetMetrics(reportsuite.ids, metrics = c(), elements = c(),
date.granularity = "")
}
\arguments{
\item{reportsuite.ids}{Single report suite id, or character vector of re... |
#=========================================================================
#==================== adequando os dados ============================
#=========================================================================
#====================== amostra 2014 ==============================
library(tidyverse)
am... | /adequando_dados.R | no_license | wellingtonf-souza/dash_enem | R | false | false | 73,316 | r | #=========================================================================
#==================== adequando os dados ============================
#=========================================================================
#====================== amostra 2014 ==============================
library(tidyverse)
am... |
library("knitr")
library("rgl")
#knit("butocarboxim.Rmd")
#markdownToHTML('butocarboxim.md', 'butocarboxim.html', options=c("use_xhml"))
#system("pandoc -s butocarboxim.html -o butocarboxim.pdf")
knit2html('butocarboxim.Rmd')
| /FDA_Pesticide_Glossary/butocarboxim.R | permissive | andrewdefries/andrewdefries.github.io | R | false | false | 228 | r | library("knitr")
library("rgl")
#knit("butocarboxim.Rmd")
#markdownToHTML('butocarboxim.md', 'butocarboxim.html', options=c("use_xhml"))
#system("pandoc -s butocarboxim.html -o butocarboxim.pdf")
knit2html('butocarboxim.Rmd')
|
rm(list = ls())
set.seed(2)
n <- 20000
d <- 20
ndr <- n / d
X <- matrix(rnorm(n*d), nrow = n)
beta <- rnorm(d)
locs <- as.vector(X %*% beta)
probs <- 1/(1 + exp(-locs))
u <- runif(n)
y <- as.numeric(u < probs)
# --------------------------------------------------------------------------------- #
# BLB parameters
# subs... | /blb_log_reg_slim.R | no_license | jakeknigge/bag-of-little-boots | R | false | false | 1,513 | r | rm(list = ls())
set.seed(2)
n <- 20000
d <- 20
ndr <- n / d
X <- matrix(rnorm(n*d), nrow = n)
beta <- rnorm(d)
locs <- as.vector(X %*% beta)
probs <- 1/(1 + exp(-locs))
u <- runif(n)
y <- as.numeric(u < probs)
# --------------------------------------------------------------------------------- #
# BLB parameters
# subs... |
### Coursera Exploratory data analysis course project 1
### Reconstruct plots using "Individual household electric power consumption Data Set"
### Plot 1: Histogram of Global active power in kilowatts between 1st and 2nd February 2007
# Download, extract and read in data
fileUrl <- "https://d396qusza40orc.cloudfron... | /plot1.R | no_license | ceagithub/ExData_Plotting1 | R | false | false | 1,300 | r | ### Coursera Exploratory data analysis course project 1
### Reconstruct plots using "Individual household electric power consumption Data Set"
### Plot 1: Histogram of Global active power in kilowatts between 1st and 2nd February 2007
# Download, extract and read in data
fileUrl <- "https://d396qusza40orc.cloudfron... |
library(gridExtra)
library(plyr)
library(Amelia)
getwd()
path="/Users/ctrabuco/Desktop/us_census_full/code"
setwd(path)
# Input data files are available in the "../input/" directory.
cat("reading the train and test data\n")
train <- read.csv("../input/census_income_learn.csv",head=FALSE, na.strings=c("?"," ?"))
t... | /code/census_1.R | no_license | crt004/us_census_analysis | R | false | false | 9,070 | r |
library(gridExtra)
library(plyr)
library(Amelia)
getwd()
path="/Users/ctrabuco/Desktop/us_census_full/code"
setwd(path)
# Input data files are available in the "../input/" directory.
cat("reading the train and test data\n")
train <- read.csv("../input/census_income_learn.csv",head=FALSE, na.strings=c("?"," ?"))
t... |
library(Dowd)
### Name: GumbelVaR
### Title: Gumbel VaR
### Aliases: GumbelVaR
### ** Examples
# Gumbel VaR
GumbelVaR(0, 1.2, 100, c(.9,.88, .85, .8), 280)
| /data/genthat_extracted_code/Dowd/examples/GumbelVaR.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 166 | r | library(Dowd)
### Name: GumbelVaR
### Title: Gumbel VaR
### Aliases: GumbelVaR
### ** Examples
# Gumbel VaR
GumbelVaR(0, 1.2, 100, c(.9,.88, .85, .8), 280)
|
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
data("mtcars")
modelFit <- lm(mpg ~ wt, data = mtcars)
# Define server logic required t... | /shiny_app/server.R | no_license | slice-coursera/data_products | R | false | false | 766 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
data("mtcars")
modelFit <- lm(mpg ~ wt, data = mtcars)
# Define server logic required t... |
library(riverdist)
### Name: trimriver
### Title: Trim a River Network Object to Specified Segments
### Aliases: trimriver
### ** Examples
data(Kenai1)
plot(x=Kenai1)
Kenai1.trim <- trimriver(trim=c(46,32,115,174,169,114,124,142,80), rivers=Kenai1)
plot(x=Kenai1.trim)
Kenai1.trim.2 <- trimriver(trimto=c(20,57,11... | /data/genthat_extracted_code/riverdist/examples/trimriver.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 384 | r | library(riverdist)
### Name: trimriver
### Title: Trim a River Network Object to Specified Segments
### Aliases: trimriver
### ** Examples
data(Kenai1)
plot(x=Kenai1)
Kenai1.trim <- trimriver(trim=c(46,32,115,174,169,114,124,142,80), rivers=Kenai1)
plot(x=Kenai1.trim)
Kenai1.trim.2 <- trimriver(trimto=c(20,57,11... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/panel.depth_function.R
\name{panel.depth_function}
\alias{panel.depth_function}
\alias{prepanel.depth_function}
\title{Lattice Panel Function for Soil Profiles}
\usage{
panel.depth_function(
x,
y,
id,
upper = NA,
lower = NA,
subsc... | /man/panel.depth_function.Rd | no_license | Memo1986/aqp | R | false | true | 6,382 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/panel.depth_function.R
\name{panel.depth_function}
\alias{panel.depth_function}
\alias{prepanel.depth_function}
\title{Lattice Panel Function for Soil Profiles}
\usage{
panel.depth_function(
x,
y,
id,
upper = NA,
lower = NA,
subsc... |
#' Append a command to the Log tab dealing with namespaces
#'
#' Time-stamp: <2015-11-15 10:03:29 gjw>
#'
#' @param comment A message to include as a comment.
#' @param ... The command(s) to report in the log.
#' @param include.libs Include any required library() calls.
#'
#' Report a command to the rattl... | /rattle/R/appendLibLog.R | no_license | ingted/R-Examples | R | false | false | 2,293 | r | #' Append a command to the Log tab dealing with namespaces
#'
#' Time-stamp: <2015-11-15 10:03:29 gjw>
#'
#' @param comment A message to include as a comment.
#' @param ... The command(s) to report in the log.
#' @param include.libs Include any required library() calls.
#'
#' Report a command to the rattl... |
# Script to analyze goal scoring patterns
# Clear workspace and setwd
rm(list=ls())
setwd("C:/Users/Tom/Documents/Sta dat Tom/Thesis/R/Scraper")
# Name of the loaded file
resultsFile <- "internationalResultsEuropePG.RData"
# Load required libraries
library(maps)
#####################################################... | /R code/National analysis/Scraper/goalPatterns.R | no_license | ttvand/Master-thesis-Statistics-UEFA2016 | R | false | false | 2,147 | r | # Script to analyze goal scoring patterns
# Clear workspace and setwd
rm(list=ls())
setwd("C:/Users/Tom/Documents/Sta dat Tom/Thesis/R/Scraper")
# Name of the loaded file
resultsFile <- "internationalResultsEuropePG.RData"
# Load required libraries
library(maps)
#####################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/meta.R
\name{laf_open}
\alias{laf_open}
\title{Create a connection to a file using a data model.}
\usage{
laf_open(model, ...)
}
\arguments{
\item{model}{a {data model}, such as one returned by \link{read_dm} or
\link{detect_dm_csv}.}
\item{... | /man/laf_open.Rd | no_license | wibeasley/LaF | R | false | true | 2,152 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/meta.R
\name{laf_open}
\alias{laf_open}
\title{Create a connection to a file using a data model.}
\usage{
laf_open(model, ...)
}
\arguments{
\item{model}{a {data model}, such as one returned by \link{read_dm} or
\link{detect_dm_csv}.}
\item{... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
load_block_file <- function(block_file) {
.Call(`_MR_LDP_load_block_file`, block_file)
}
test_blocks <- function(bp, chr, block_file) {
.Call(`_MR_LDP_test_blocks`, bp, chr, block_file... | /R/RcppExports.R | no_license | QingCheng0218/MR.LDP | R | false | false | 10,833 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
load_block_file <- function(block_file) {
.Call(`_MR_LDP_load_block_file`, block_file)
}
test_blocks <- function(bp, chr, block_file) {
.Call(`_MR_LDP_test_blocks`, bp, chr, block_file... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset.R
\name{Dataset}
\alias{Dataset}
\alias{FileSystemDataset}
\alias{UnionDataset}
\alias{DatasetFactory}
\alias{FileSystemDatasetFactory}
\title{Multi-file datasets}
\description{
Arrow Datasets allow you to query against data that has ... | /r/man/Dataset.Rd | permissive | signavio/arrow | R | false | true | 2,790 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset.R
\name{Dataset}
\alias{Dataset}
\alias{FileSystemDataset}
\alias{UnionDataset}
\alias{DatasetFactory}
\alias{FileSystemDatasetFactory}
\title{Multi-file datasets}
\description{
Arrow Datasets allow you to query against data that has ... |
################Gissete################333
getwd()
setwd("/home/timedreamer/Dropbox/Course/STA5635/BInaryClassificationDatasets/Gisette/")
gisette_tr <- read.delim("gisette_train.data",sep=" ",header=F)
gisette_tr$V5001 <- NULL
tr_result <- read.delim("gisette_train.labels",header=F)
gisette_tr <- cbind(gisette... | /ML_randomeForest.R | no_license | timedreamer/MachineLearningHomework | R | false | false | 13,575 | r | ################Gissete################333
getwd()
setwd("/home/timedreamer/Dropbox/Course/STA5635/BInaryClassificationDatasets/Gisette/")
gisette_tr <- read.delim("gisette_train.data",sep=" ",header=F)
gisette_tr$V5001 <- NULL
tr_result <- read.delim("gisette_train.labels",header=F)
gisette_tr <- cbind(gisette... |
## Matrix inversion is usually a costly computation and there may be some benefit to caching the inverse
## of a matrix rather than compute it repeatedly. This program will create a pair of functions that
## cache the inverse of a matrix.
## NOTE: Computing the inverse of a square matrix can be done with the solve f... | /cachematrix.R | no_license | TallDavid/ProgrammingAssignment2 | R | false | false | 2,099 | r | ## Matrix inversion is usually a costly computation and there may be some benefit to caching the inverse
## of a matrix rather than compute it repeatedly. This program will create a pair of functions that
## cache the inverse of a matrix.
## NOTE: Computing the inverse of a square matrix can be done with the solve f... |
#Download and Read the file#
temp<-tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp)
datafile<-unzip(temp)
#Read file,file in table has 9 variables
data<-read.table(datafile,sep =";")
#Ajust time format in order to pick data based on time
time<-as.Dat... | /plot4.R | no_license | Danlu0217/ExData_Plotting1 | R | false | false | 1,745 | r | #Download and Read the file#
temp<-tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp)
datafile<-unzip(temp)
#Read file,file in table has 9 variables
data<-read.table(datafile,sep =";")
#Ajust time format in order to pick data based on time
time<-as.Dat... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1433
c
c Performing A1-Autarky iteration.
c Running Lingeling ...
c
c Remaining clauses count after A-Reduction: 1433
c
c Input Parameter (command line, fil... | /code/dcnf-ankit-optimized/Results/DQBF-TRACK-2018/E1+A1/Experiments/tentrup17_ltl2dba_C2_environment_16/tentrup17_ltl2dba_C2_environment_16.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 717 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1433
c
c Performing A1-Autarky iteration.
c Running Lingeling ...
c
c Remaining clauses count after A-Reduction: 1433
c
c Input Parameter (command line, fil... |
#' Get site information
#'
## Copyright(c) 2017-2020 R. Mark Sharp
## This file is part of nprcgenekeepr
#' @return{A list of site specific information used by the application.}
#'
#' Currently this returns the following character strings in a named list.
#' \enumerate{
#' \item{center}{One of "SNPRC" or "ONPRC"}
#' ... | /R/getSiteInfo.R | permissive | jhagberg/nprcgenekeepr | R | false | false | 3,270 | r | #' Get site information
#'
## Copyright(c) 2017-2020 R. Mark Sharp
## This file is part of nprcgenekeepr
#' @return{A list of site specific information used by the application.}
#'
#' Currently this returns the following character strings in a named list.
#' \enumerate{
#' \item{center}{One of "SNPRC" or "ONPRC"}
#' ... |
#' @rdname textmodel_fitted-class
#' @export
setClass("textmodel_wordfish_fitted",
slots = c(priors = "numeric",
tol = "numeric",
dir = "numeric",
theta = "numeric",
beta = "numeric",
psi = "numeric",
... | /R/textmodel-wordfish.R | no_license | guanlongtianzi/quanteda | R | false | false | 10,979 | r | #' @rdname textmodel_fitted-class
#' @export
setClass("textmodel_wordfish_fitted",
slots = c(priors = "numeric",
tol = "numeric",
dir = "numeric",
theta = "numeric",
beta = "numeric",
psi = "numeric",
... |
# import map --------------------------------------------------------------
lapply(
c(
"rgdal",
"tidyverse",
"RColorBrewer",
"scales",
"here",
"broom",
"dplyr"
),
require, character.only = T
)
# prep map
map_br <- readOGR(
here("data/maps/"),
"municipio"
)
map_br@data <- map_br@d... | /scripts/funs.R | no_license | galileukim/representation_failure | R | false | false | 4,409 | r | # import map --------------------------------------------------------------
lapply(
c(
"rgdal",
"tidyverse",
"RColorBrewer",
"scales",
"here",
"broom",
"dplyr"
),
require, character.only = T
)
# prep map
map_br <- readOGR(
here("data/maps/"),
"municipio"
)
map_br@data <- map_br@d... |
# Overview of keyword extraction techniques
# http://www.bnosac.be/index.php/blog/77-an-overview-of-keyword-extraction-techniques
library(udpipe)
library(textrank)
## First step: Take the Spanish udpipe model and annotate the text. Note: this takes about 3 minutes
data(brussels_reviews)
comments <- subset(brussels_re... | /overview-keyword-extraction.R | no_license | sainathadapa/nlp-tutorials-notes | R | false | false | 7,112 | r | # Overview of keyword extraction techniques
# http://www.bnosac.be/index.php/blog/77-an-overview-of-keyword-extraction-techniques
library(udpipe)
library(textrank)
## First step: Take the Spanish udpipe model and annotate the text. Note: this takes about 3 minutes
data(brussels_reviews)
comments <- subset(brussels_re... |
# Load Libraries ----------------------------------------------------------
library(tidyquant)
library(tidyverse)
library(timetk)
library(xgboost)
library(ggplot2)
library(parsnip)
library(yardstick)
library(fpp3)
library(ggforce)
# Import Data -----------------------------------------------------------... | /Buoy_ML_Temporal_Features.R | no_license | camiel1/Masters_Capstone | R | false | false | 8,059 | r |
# Load Libraries ----------------------------------------------------------
library(tidyquant)
library(tidyverse)
library(timetk)
library(xgboost)
library(ggplot2)
library(parsnip)
library(yardstick)
library(fpp3)
library(ggforce)
# Import Data -----------------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mirtsvd.R
\name{mirtsvd}
\alias{mirtsvd}
\title{Item Factor Analysis by Singular Value Decomposition}
\usage{
mirtsvd(data, K, link = "logit", epsilon = 1e-04, rotation_fn = NULL, ...)
}
\arguments{
\item{data}{the data matrix. Entries are ei... | /man/mirtsvd.Rd | no_license | cran/mirtsvd | R | false | true | 1,449 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mirtsvd.R
\name{mirtsvd}
\alias{mirtsvd}
\title{Item Factor Analysis by Singular Value Decomposition}
\usage{
mirtsvd(data, K, link = "logit", epsilon = 1e-04, rotation_fn = NULL, ...)
}
\arguments{
\item{data}{the data matrix. Entries are ei... |
# Artificial Intelligence & Machine Learning Notebook
# from Machine Learning with R - Brent Lantz
# Black Box Methods, NN and SVM
# Part 1: Neural Networks ------------------------------
concrete<-read.csv("C:/Users/jomyers/Desktop/Machine Learning with R Walkthrough/concrete.csv", stringsAsFactors = FALSE)
s... | /Machine Learning with R Walkthrough/Chapter 7. Black Box Methods.R | no_license | jtmyers586/Machine-Learning | R | false | false | 4,040 | r | # Artificial Intelligence & Machine Learning Notebook
# from Machine Learning with R - Brent Lantz
# Black Box Methods, NN and SVM
# Part 1: Neural Networks ------------------------------
concrete<-read.csv("C:/Users/jomyers/Desktop/Machine Learning with R Walkthrough/concrete.csv", stringsAsFactors = FALSE)
s... |
##OROV SimPlots##
##B Gutierrez##
##January 2019##
#Set working directory and load ggplot2 library
setwd("/Users/user/Documents/DPhil_Research/OROV_America/OROV_Recombination")
getwd()
library('adegenet')
library('ape')
library('spider')
library('ggplot2')
#Import sequences and transform to DNAbin object
L1.seqs <- f... | /OROV_SimPlots.R | no_license | BernardoGG/OROV_America | R | false | false | 16,974 | r | ##OROV SimPlots##
##B Gutierrez##
##January 2019##
#Set working directory and load ggplot2 library
setwd("/Users/user/Documents/DPhil_Research/OROV_America/OROV_Recombination")
getwd()
library('adegenet')
library('ape')
library('spider')
library('ggplot2')
#Import sequences and transform to DNAbin object
L1.seqs <- f... |
readFunction <-function(){
# Get all Feburary 2007 Data index
ind<-grep("/2/2007", readLines("household_power_consumption.txt"));
# Get all Feburary 2007 Data
D_tem1 <- read.table("household_power_consumption.txt", skip = ind[1],nrows=tail(ind,1),header = TRUE, sep = ";")
# Get column names and assign t... | /readFunction.R | no_license | BenjaminGuan/ExData_Plotting1 | R | false | false | 757 | r | readFunction <-function(){
# Get all Feburary 2007 Data index
ind<-grep("/2/2007", readLines("household_power_consumption.txt"));
# Get all Feburary 2007 Data
D_tem1 <- read.table("household_power_consumption.txt", skip = ind[1],nrows=tail(ind,1),header = TRUE, sep = ";")
# Get column names and assign t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cognitoidentityprovider_operations.R
\name{cognitoidentityprovider_create_user_pool_client}
\alias{cognitoidentityprovider_create_user_pool_client}
\title{Creates the user pool client}
\usage{
cognitoidentityprovider_create_user_pool_client(U... | /paws/man/cognitoidentityprovider_create_user_pool_client.Rd | permissive | jcheng5/paws | R | false | true | 8,001 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cognitoidentityprovider_operations.R
\name{cognitoidentityprovider_create_user_pool_client}
\alias{cognitoidentityprovider_create_user_pool_client}
\title{Creates the user pool client}
\usage{
cognitoidentityprovider_create_user_pool_client(U... |
library(dplyr)
library(plotly)
library(ggplot2)
library(reshape2)
d <- mtcars
names(d) <- sapply(names(d), toupper)
wts <- c(
mpg = 50,
hp = 50,
gear = 50
)
wts <- wts / sum(wts)
scale <- function(x) (x - min(x)) / (max(x) - min(x))
d.score <- d %>%
add_rownames(var='Vehicle.Make') %>%
select(Vehicle.Ma... | /demonstrative/R/prioritization/test.R | no_license | eric-czech/portfolio | R | false | false | 1,205 | r |
library(dplyr)
library(plotly)
library(ggplot2)
library(reshape2)
d <- mtcars
names(d) <- sapply(names(d), toupper)
wts <- c(
mpg = 50,
hp = 50,
gear = 50
)
wts <- wts / sum(wts)
scale <- function(x) (x - min(x)) / (max(x) - min(x))
d.score <- d %>%
add_rownames(var='Vehicle.Make') %>%
select(Vehicle.Ma... |
dat <- list(
"N" = 27,
"x" =
c(1, 1.5, 1.5, 1.5, 2.5, 4, 5, 5, 7, 8, 8.5, 9, 9.5, 9.5, 10,
12, 12, 13, 13, 14.5, 15.5, 15.5, 16.5, 17, 22.5, 29, 31.5),
"Y" =
c(1.8, 1.85, 1.87, 1.77, 2.02, 2.27, 2.15, 2.26, 2.47, 2.19,
2.26, 2.4, 2.39, 2.41, 2.5, 2.32, 2.32, 2.43, 2.47, 2.56, 2.65,
... | /arxiv/nonlinear_growth.R | no_license | Rjacobucci/stan_examples2 | R | false | false | 2,134 | r |
dat <- list(
"N" = 27,
"x" =
c(1, 1.5, 1.5, 1.5, 2.5, 4, 5, 5, 7, 8, 8.5, 9, 9.5, 9.5, 10,
12, 12, 13, 13, 14.5, 15.5, 15.5, 16.5, 17, 22.5, 29, 31.5),
"Y" =
c(1.8, 1.85, 1.87, 1.77, 2.02, 2.27, 2.15, 2.26, 2.47, 2.19,
2.26, 2.4, 2.39, 2.41, 2.5, 2.32, 2.32, 2.43, 2.47, 2.56, 2.65,
... |
% Generated by roxygen2 (4.1.1.9000): do not edit by hand
% Please edit documentation in R/install.R
\name{up_folder}
\alias{up_folder}
\title{Performs "up-level" on a folder string}
\usage{
up_folder(FOLDER, n = -1, ...)
}
\arguments{
\item{FOLDER}{a character vector of folders}
\item{n}{passed to n in function \link... | /man/up_folder.Rd | no_license | absolutoslo/installr | R | false | false | 609 | rd | % Generated by roxygen2 (4.1.1.9000): do not edit by hand
% Please edit documentation in R/install.R
\name{up_folder}
\alias{up_folder}
\title{Performs "up-level" on a folder string}
\usage{
up_folder(FOLDER, n = -1, ...)
}
\arguments{
\item{FOLDER}{a character vector of folders}
\item{n}{passed to n in function \link... |
#' Integrals of Squared Brownian Bridge
#'
#' Generate a dataset of independent simulated values of \eqn{\int_0^1{B^2(t)}dt}, where \eqn{B} is a standard Brownian bridge on [0,1].
#'
#' @param NUM Number of simulated values generated in the dataset.
#' @return A vector with length equals to NUM.
#' @importFrom e1071 rw... | /R/dataset_bb.R | no_license | cran/STFTS | R | false | false | 525 | r | #' Integrals of Squared Brownian Bridge
#'
#' Generate a dataset of independent simulated values of \eqn{\int_0^1{B^2(t)}dt}, where \eqn{B} is a standard Brownian bridge on [0,1].
#'
#' @param NUM Number of simulated values generated in the dataset.
#' @return A vector with length equals to NUM.
#' @importFrom e1071 rw... |
#if conditional
#print nos divisible by 3 or 5
n<-20
for(i in 1:n){
if(i%%3==0|i%%5==0)
print(i)
}
#print nos divisible by 3 and 5
n<-20
for(i in 1:n){
if(i%%3==0&i%%5==0)
print(i)
}
#nos not divisible by 3
n<-20
for(i in 1:n){
if(i%%3!=0)
print(i)
}
# reward system for exam res... | /basic programming 4 2.R | no_license | Dianah-Okia/LOOPS | R | false | false | 1,606 | r | #if conditional
#print nos divisible by 3 or 5
n<-20
for(i in 1:n){
if(i%%3==0|i%%5==0)
print(i)
}
#print nos divisible by 3 and 5
n<-20
for(i in 1:n){
if(i%%3==0&i%%5==0)
print(i)
}
#nos not divisible by 3
n<-20
for(i in 1:n){
if(i%%3!=0)
print(i)
}
# reward system for exam res... |
baseN <-
126
distN <-
124
baseK <-
c(21, 17, 84, 4)
distK <-
c(6, 9, 109, 0)
| /source/2015_negativeevidence/jags_model/data/jagsData2.R | no_license | djnavarro/manuscripts | R | false | false | 77 | r | baseN <-
126
distN <-
124
baseK <-
c(21, 17, 84, 4)
distK <-
c(6, 9, 109, 0)
|
## This function will store the matrix and its inverse
## in a cache. You can set the matrix and its inverse
## and get the matrix and its inverse using the relevant
# set and get commands
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- functio... | /2_RProgramming/ProgrammingAssignmentLexicalScoping/cachematrix.R | no_license | mdylan2/datasciencecoursera | R | false | false | 918 | r | ## This function will store the matrix and its inverse
## in a cache. You can set the matrix and its inverse
## and get the matrix and its inverse using the relevant
# set and get commands
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- functio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fn_Meff.R
\name{Meff}
\alias{Meff}
\title{Estimation of closed-form-expression metabolome-wide significance level (MWSL) and corresponding effective number of tests (ENT)}
\usage{
Meff(
features,
n.permutation = NULL,
method = "ecorr",
... | /MWSL/man/Meff.Rd | permissive | AlinaPeluso/PhenoMeNal | R | false | true | 2,262 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fn_Meff.R
\name{Meff}
\alias{Meff}
\title{Estimation of closed-form-expression metabolome-wide significance level (MWSL) and corresponding effective number of tests (ENT)}
\usage{
Meff(
features,
n.permutation = NULL,
method = "ecorr",
... |
\name{qzswitch}
\alias{qzswitch}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Interchanges adjacent eigenvalues in a qz decomposition }
\description{
The qz decomposition is in the form Q, A, B, Z, with A and B triangular
and Q and Z Hermitian (complex orthonormal). qzswitch preserves this
str... | /Sims_svn/gensys/trunk/man/qzswitch.Rd | no_license | Allisterh/VAR_Sims_rfvar | R | false | false | 4,237 | rd | \name{qzswitch}
\alias{qzswitch}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Interchanges adjacent eigenvalues in a qz decomposition }
\description{
The qz decomposition is in the form Q, A, B, Z, with A and B triangular
and Q and Z Hermitian (complex orthonormal). qzswitch preserves this
str... |
# Use RCurl to upload an RData file containing specific R objects
#
# Author: Stephen R. Haptonstahl (srh@haptonstahl.org)
# Source: https://github.com/shaptonstahl/R
#
# Call with:
# source("http://www.haptonstahl.org/R/postObjects/postObjects.R")
postObjects <- function(filename, save.to.URL, post.params=list(), .... | /postObjects/postObjects.R | no_license | shaptonstahl/R | R | false | false | 1,667 | r | # Use RCurl to upload an RData file containing specific R objects
#
# Author: Stephen R. Haptonstahl (srh@haptonstahl.org)
# Source: https://github.com/shaptonstahl/R
#
# Call with:
# source("http://www.haptonstahl.org/R/postObjects/postObjects.R")
postObjects <- function(filename, save.to.URL, post.params=list(), .... |
# TINST490A Healthcare Informatics II
# Data Analysis and Visualization
# 8/2/2013
# Si-Chi Chin
# Import data hepatitis.csv
# You would want to change the path of the file
data <- read.csv("~/Dropbox/UW-Tacoma/TINST490A_su13/Lecture_slides/Data_Visualization/hepatitis.csv")
# Draw a scatterplot with variables relat... | /R_script080213.R | no_license | sichichin/ihme_sample | R | false | false | 1,369 | r | # TINST490A Healthcare Informatics II
# Data Analysis and Visualization
# 8/2/2013
# Si-Chi Chin
# Import data hepatitis.csv
# You would want to change the path of the file
data <- read.csv("~/Dropbox/UW-Tacoma/TINST490A_su13/Lecture_slides/Data_Visualization/hepatitis.csv")
# Draw a scatterplot with variables relat... |
library("swirl")
swirl()
gruppiv
1
10
swirl()
gruppiv
1
head(flags)
dim(flags)
class(flags)
cls_list <- lapply(flags, class)
cls_list
class(cls_list)
as.character(cls_list)
sapply(cls_list, class)
cls_vect <- sapply(flags, class)
class(cls_vect)
sum(flags$orange)
flag_colors <- flags[, 11:17]
head(flag_colors)
lapply(... | /swirl_10_11.R | no_license | gruppiv/RStudio_xuxatop | R | false | false | 1,117 | r | library("swirl")
swirl()
gruppiv
1
10
swirl()
gruppiv
1
head(flags)
dim(flags)
class(flags)
cls_list <- lapply(flags, class)
cls_list
class(cls_list)
as.character(cls_list)
sapply(cls_list, class)
cls_vect <- sapply(flags, class)
class(cls_vect)
sum(flags$orange)
flag_colors <- flags[, 11:17]
head(flag_colors)
lapply(... |
library(h2o)
h2o.init(nthreads = -1) # This means nthreads = num available cores
# Map 1-based optional input ports to variables
train <- maml.mapInputPort(1) # class: data.frame
y <- "C785"
x <- setdiff(names(train), y)
train[,y] <- as.factor(train[,y])
# Train a Deep Learning model and validate on a test set
mode... | /Final_Project/Handwritten_Digit_Recognition/H2OHandwritingRecognition/Azure_h2oModel.R | no_license | PrajaktaPa/ADS | R | false | false | 978 | r | library(h2o)
h2o.init(nthreads = -1) # This means nthreads = num available cores
# Map 1-based optional input ports to variables
train <- maml.mapInputPort(1) # class: data.frame
y <- "C785"
x <- setdiff(names(train), y)
train[,y] <- as.factor(train[,y])
# Train a Deep Learning model and validate on a test set
mode... |
## load data.table package
library(data.table)
library(dplyr)
## Set Working directory
setwd("/home/gr8-balls-of-fire/datasciencecoursera/Exploratory Data Analysis/Week 1/Project - 1")
## set the URL string
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
## download th... | /Project - 1/preparingData.R | no_license | gr8-balls-of-fire/ExData_Plotting1 | R | false | false | 910 | r | ## load data.table package
library(data.table)
library(dplyr)
## Set Working directory
setwd("/home/gr8-balls-of-fire/datasciencecoursera/Exploratory Data Analysis/Week 1/Project - 1")
## set the URL string
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
## download th... |
\name{kendall}
\alias{kendall}
\title{Kendall's coefficient of concordance W}
\description{
Computes Kendall's coefficient of concordance as an index of interrater reliability of ordinal data. The coefficient could be corrected for ties within raters.
}
\usage{
kendall(ratings, correct = FALSE)
}
\arguments{
... | /man/kendall.Rd | no_license | cran/irr | R | false | false | 1,728 | rd | \name{kendall}
\alias{kendall}
\title{Kendall's coefficient of concordance W}
\description{
Computes Kendall's coefficient of concordance as an index of interrater reliability of ordinal data. The coefficient could be corrected for ties within raters.
}
\usage{
kendall(ratings, correct = FALSE)
}
\arguments{
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataHandle.R
\name{assetMuSd}
\alias{assetMuSd}
\title{Calculate Portfolio Asset Mean and Standard Deviation}
\usage{
assetMuSd(logL)
}
\arguments{
\item{logL}{List of time series returns for each asset}
}
\value{
Mean and SD for each asset i... | /man/assetMuSd.Rd | no_license | mnquants/DataHandler | R | false | true | 399 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataHandle.R
\name{assetMuSd}
\alias{assetMuSd}
\title{Calculate Portfolio Asset Mean and Standard Deviation}
\usage{
assetMuSd(logL)
}
\arguments{
\item{logL}{List of time series returns for each asset}
}
\value{
Mean and SD for each asset i... |
loadPkg(c('ROCR', 'caTools','RColorBrewer'))
# Roc curve, depends ROCR
roc = function(prediction, actual){
pred = prediction(prediction, actual)
perf = performance(pred,"tpr","fpr")
rocData = data.frame(attributes(perf)$x.values[[1]], attributes(perf)$y.values[[1]])
names(rocData) = c('FPR', 'T... | /code/helpers/binPerfHelpers.R | no_license | s7minhas/netModels | R | false | false | 4,442 | r | loadPkg(c('ROCR', 'caTools','RColorBrewer'))
# Roc curve, depends ROCR
roc = function(prediction, actual){
pred = prediction(prediction, actual)
perf = performance(pred,"tpr","fpr")
rocData = data.frame(attributes(perf)$x.values[[1]], attributes(perf)$y.values[[1]])
names(rocData) = c('FPR', 'T... |
load("df_points_per_edge.Rda")
# Number of Edges: 2819
P = ecdf(df_points_per_edge$points)
plot(P, xlab = "Points", main = "ECDF - Points Per Edge (Porto)", log = "x", xlim = c(1, max(df_points_per_edge$points)), col = "green")
boxplot(df_points_per_edge$points, ylab = "Points", main = "Points per Edge")
boxplot(df... | /scripts/points_per_edge/points_per_edge.R | no_license | mfvfontes/thesis | R | false | false | 456 | r | load("df_points_per_edge.Rda")
# Number of Edges: 2819
P = ecdf(df_points_per_edge$points)
plot(P, xlab = "Points", main = "ECDF - Points Per Edge (Porto)", log = "x", xlim = c(1, max(df_points_per_edge$points)), col = "green")
boxplot(df_points_per_edge$points, ylab = "Points", main = "Points per Edge")
boxplot(df... |
#####
### THIS CODE WILL CREATE ONE WHITENOISE SERIES OF LENGTH 1000. THE OUTPUT OF THIS CODE IS ALREADY PROVIDED AS "whitenoise_compiled.RData"
#####
#####
### Requires Input!
#####
#####
### Setup
#####
library(ggplot2)
library(hht)
set.seed(64)
#####
### Create white noise dataseries
#####
### This code creates ... | /MakeWhiteNoise.R | permissive | chamberlinc/SignificanceCodeToShare | R | false | false | 3,105 | r | #####
### THIS CODE WILL CREATE ONE WHITENOISE SERIES OF LENGTH 1000. THE OUTPUT OF THIS CODE IS ALREADY PROVIDED AS "whitenoise_compiled.RData"
#####
#####
### Requires Input!
#####
#####
### Setup
#####
library(ggplot2)
library(hht)
set.seed(64)
#####
### Create white noise dataseries
#####
### This code creates ... |
seed <- 374
log.wt <- -14.10238868556627
penalty <- 2.8115950178536287e-8
intervals.send <- c()
intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400)
dev.null <- 358759.0022669336
df.null <- 35567
dev.r... | /analysis/boot/boot374.R | no_license | patperry/interaction-proc | R | false | false | 3,765 | r | seed <- 374
log.wt <- -14.10238868556627
penalty <- 2.8115950178536287e-8
intervals.send <- c()
intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400)
dev.null <- 358759.0022669336
df.null <- 35567
dev.r... |
# Get working directory
session_info = sessionInfo()
platform = session_info$platform
directory = "af-werx"
if(length(grep("linux|apple", platform)) > 0){
Sys.getenv("USER")
dir = paste0("~/Desktop/", directory)
}else{
username = Sys.getenv("USERNAME")
dir=paste0("C:/Users/", username, "/Desktop/", directory)... | /shiny/day-1/5-slider range/ui.R | no_license | jamesK1000011/Data-Science | R | false | false | 858 | r | # Get working directory
session_info = sessionInfo()
platform = session_info$platform
directory = "af-werx"
if(length(grep("linux|apple", platform)) > 0){
Sys.getenv("USER")
dir = paste0("~/Desktop/", directory)
}else{
username = Sys.getenv("USERNAME")
dir=paste0("C:/Users/", username, "/Desktop/", directory)... |
ln_fsgt <- function(y, mu, sigma, lambda, q, p) {
num <- abs(y - mu)^p
den <- q*sigma^p * (lambda*sign(y-mu) + 1)^p
log(p) - log(2*sigma) - (1/p)*log(q) - lbeta(1/p, q) - (1/p + q)*log(num/den + 1)
}
# Make sure log density matches R implementation
ln_fsgt(1, mu = 0.23, sigma = 0.5, lambda = -0.1, p = 2, q = ... | /sgt_score.R | no_license | pourzanj/homebuying | R | false | false | 1,579 | r | ln_fsgt <- function(y, mu, sigma, lambda, q, p) {
num <- abs(y - mu)^p
den <- q*sigma^p * (lambda*sign(y-mu) + 1)^p
log(p) - log(2*sigma) - (1/p)*log(q) - lbeta(1/p, q) - (1/p + q)*log(num/den + 1)
}
# Make sure log density matches R implementation
ln_fsgt(1, mu = 0.23, sigma = 0.5, lambda = -0.1, p = 2, q = ... |
#' GetPairs
#'
#' Form all pairs of rows in \code{X} and compute Mahalanobis distances based on \code{v}.
#'
#' To help with computational constraints, you have the option to not form pairs between all rows of \code{X} but instead of specify a certain number (\code{numForTransitionStart}) to randomly be selected as r... | /_site/R/pairs.R | permissive | dchudz/predcomps | R | false | false | 4,735 | r | #' GetPairs
#'
#' Form all pairs of rows in \code{X} and compute Mahalanobis distances based on \code{v}.
#'
#' To help with computational constraints, you have the option to not form pairs between all rows of \code{X} but instead of specify a certain number (\code{numForTransitionStart}) to randomly be selected as r... |
library(ggplot2)
library(ggpubr)
#install.packages("svglite")
library(svglite)
# Read data
cm <- read.csv("Data/amb_cam.csv",sep=";")
head(cm)
###### Indice año i con R año i+2
HCI.lag <- numeric()
SOI.lag <- numeric()
Hake.lag <- numeric()
SSBn.lag <- numeric()
SSBs.lag <- numeric()
Rn <- numeric()
Rs <- numeric()
Ha... | /Analysis/glm_recruitment_models.R | no_license | LuisACubillos/shrimpms2020 | R | false | false | 3,275 | r | library(ggplot2)
library(ggpubr)
#install.packages("svglite")
library(svglite)
# Read data
cm <- read.csv("Data/amb_cam.csv",sep=";")
head(cm)
###### Indice año i con R año i+2
HCI.lag <- numeric()
SOI.lag <- numeric()
Hake.lag <- numeric()
SSBn.lag <- numeric()
SSBs.lag <- numeric()
Rn <- numeric()
Rs <- numeric()
Ha... |
# image raster avec legende manuelle
plot(cond2, axes=F, box=F, legend=FALSE, col=green.colors(500))
r.range <- c(0, 10)
plot(cond2, legend.only=TRUE, col=green.colors(500),
legend.width=1.0, legend.shrink=0.5,
axis.args=list(at=seq(0, 1.2, 0.2),
labels=c(seq(0, 1, 0.2), 10),
... | /Raster_image&legendeManuelle.r | no_license | PinaudDavid/cebcscripts | R | false | false | 728 | r | # image raster avec legende manuelle
plot(cond2, axes=F, box=F, legend=FALSE, col=green.colors(500))
r.range <- c(0, 10)
plot(cond2, legend.only=TRUE, col=green.colors(500),
legend.width=1.0, legend.shrink=0.5,
axis.args=list(at=seq(0, 1.2, 0.2),
labels=c(seq(0, 1, 0.2), 10),
... |
### downloading data
URL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(URL, "./household_power_consumption.zip")
### unzipping data
unzip("./household_power_consumption.zip")
### reading data into table
hpc <- read.table("./household_power_consumption.txt"... | /plot1.R | no_license | ianang/ExData_Plotting1 | R | false | false | 2,034 | r | ### downloading data
URL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(URL, "./household_power_consumption.zip")
### unzipping data
unzip("./household_power_consumption.zip")
### reading data into table
hpc <- read.table("./household_power_consumption.txt"... |
## 결측값 처리하기
df <- data.frame(Pclass = c(1,2,3,NA,1),
Embarked = c("C", "S", "Q", NA, NA),
Fare = c(NA, 150,200,300,100))
df
## char에는 <> 안에, 숫자는 그냥 NA로 표기
# 결측치 확인하기 - is.na(dataset)
is.na(df)
# 결측치 갯수 확인 - table(is.na(datset))
## Pclass 결측치
table(is.na(df$Pclass))
## Embarked 결측치
t... | /2019_08_28_혼자 복습/outlier.R | no_license | sungminhong90/BigDataClassReview_R | R | false | false | 2,585 | r | ## 결측값 처리하기
df <- data.frame(Pclass = c(1,2,3,NA,1),
Embarked = c("C", "S", "Q", NA, NA),
Fare = c(NA, 150,200,300,100))
df
## char에는 <> 안에, 숫자는 그냥 NA로 표기
# 결측치 확인하기 - is.na(dataset)
is.na(df)
# 결측치 갯수 확인 - table(is.na(datset))
## Pclass 결측치
table(is.na(df$Pclass))
## Embarked 결측치
t... |
#' Intro tab UI
#'
#' @import shiny
#' @import shinydashboard
#'
#' @export
intro_ui <- function(id) {
ns <- NS(id)
tagList(
fluidRow(
h2("Demonstrating Intermediate R Shiny",
class = "page-title"),
column(
width = 6,
box(
width = NULL,
h3("Intro"),
... | /R/mod_01_intro.R | no_license | maskegger/cbShinyDemo | R | false | false | 2,274 | r | #' Intro tab UI
#'
#' @import shiny
#' @import shinydashboard
#'
#' @export
intro_ui <- function(id) {
ns <- NS(id)
tagList(
fluidRow(
h2("Demonstrating Intermediate R Shiny",
class = "page-title"),
column(
width = 6,
box(
width = NULL,
h3("Intro"),
... |
library(fuzzyreg)
### Name: plr
### Title: Fuzzy Linear Regression Using the Possibilistic Linear
### Regression Method
### Aliases: plr
### Keywords: fuzzy
### ** Examples
data(fuzzydat)
fuzzylm(y ~ x, fuzzydat$tan, "plr", , , "yl", "yr")
| /data/genthat_extracted_code/fuzzyreg/examples/plr.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 249 | r | library(fuzzyreg)
### Name: plr
### Title: Fuzzy Linear Regression Using the Possibilistic Linear
### Regression Method
### Aliases: plr
### Keywords: fuzzy
### ** Examples
data(fuzzydat)
fuzzylm(y ~ x, fuzzydat$tan, "plr", , , "yl", "yr")
|
startTime <- Sys.time()
cat(paste0("> Rscript aucFCC_vs_aucCoexprDist.R\n"))
suppressPackageStartupMessages(library(foreach, warn.conflicts = FALSE, quietly = TRUE, verbose = FALSE))
suppressPackageStartupMessages(library(doMC, warn.conflicts = FALSE, quietly = TRUE, verbose = FALSE))
suppressPackageStartupMessages(l... | /aucFCC_vs_aucCoexprDist.R | no_license | marzuf/TAD_DE_pipeline_v2_coreg | R | false | false | 13,316 | r |
startTime <- Sys.time()
cat(paste0("> Rscript aucFCC_vs_aucCoexprDist.R\n"))
suppressPackageStartupMessages(library(foreach, warn.conflicts = FALSE, quietly = TRUE, verbose = FALSE))
suppressPackageStartupMessages(library(doMC, warn.conflicts = FALSE, quietly = TRUE, verbose = FALSE))
suppressPackageStartupMessages(l... |
print(paste("Kans op X>=55 =", 1-pbinom(54, size = 100, 0.5)))
print(paste("Kans op X>=65 =", 1-pbinom(64, size = 100, 0.5)))
k <- 0
a <- 0
b <- 0
while (a+b < 0.10){
arr <- pbinom(c(k,20-k-1), size=20, prob = 1/2)
a <- arr[1]
b <- 1-arr[2]
k <- k + 1
}
k <- k - 1
k <- k - 1
arr <- pbinom(c(k,20-k-1), size=20... | /6-10/opgave8_1.R | no_license | wildered/R_code | R | false | false | 617 | r | print(paste("Kans op X>=55 =", 1-pbinom(54, size = 100, 0.5)))
print(paste("Kans op X>=65 =", 1-pbinom(64, size = 100, 0.5)))
k <- 0
a <- 0
b <- 0
while (a+b < 0.10){
arr <- pbinom(c(k,20-k-1), size=20, prob = 1/2)
a <- arr[1]
b <- 1-arr[2]
k <- k + 1
}
k <- k - 1
k <- k - 1
arr <- pbinom(c(k,20-k-1), size=20... |
library(ape)
testtree <- read.tree("4046_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="4046_0_unrooted.txt") | /codeml_files/newick_trees_processed/4046_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("4046_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="4046_0_unrooted.txt") |
## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
## ----import-------------------------------------------------------------------
set.seed(42)
library(magrittr)
library(hidgenclassifier)
data("impact")
## ---- view_data--------------------------------... | /vignettes/impact_anlaysis.R | no_license | c7rishi/hidgenclassifier | R | false | false | 3,456 | r | ## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
## ----import-------------------------------------------------------------------
set.seed(42)
library(magrittr)
library(hidgenclassifier)
data("impact")
## ---- view_data--------------------------------... |
#'
#' Overview:
#' ---------
#'
#' R operators mixed with H2OFrame objects.
#'
#' Operating on an object of type H2OFrame triggers the rollup of the
#' expression _to be executed_ : the expression itself is not evaluated. Instead,
#' an AST is built up from the R expression using R's built-in parser (which handles
#' o... | /h2o-r/h2o-package/R/ops.R | permissive | ahmed26/h2o-dev | R | false | false | 5,058 | r | #'
#' Overview:
#' ---------
#'
#' R operators mixed with H2OFrame objects.
#'
#' Operating on an object of type H2OFrame triggers the rollup of the
#' expression _to be executed_ : the expression itself is not evaluated. Instead,
#' an AST is built up from the R expression using R's built-in parser (which handles
#' o... |
#' @title Create coordinate object
#' @param x as one or a list of numeric vectors of finite length
#' @param y as one or a list of numeric vectors of finite length
#' @return coordinate object containing `$x` and `$y` of class `coords`.
#' @export
coords <- # create and check object
function(x, y)
{
if (!is.n... | /coordinates/R/coords.R | no_license | STAT545-UBC-hw-2018-19/hw07-slumnitz | R | false | false | 690 | r | #' @title Create coordinate object
#' @param x as one or a list of numeric vectors of finite length
#' @param y as one or a list of numeric vectors of finite length
#' @return coordinate object containing `$x` and `$y` of class `coords`.
#' @export
coords <- # create and check object
function(x, y)
{
if (!is.n... |
library(shiny)
library(dplyr)
library(tidyr)
library(ggplot2)
function(input, output, session) {
source("data.R")
#---------------------------------------------------------------------------------
# Code for the sidebar GEI
# -- Contaminante from GEIs
contaminante_GEI_reactive <- reactive({
filter(gei_fin, C... | /server.R | permissive | jonerenteria/emisiones | R | false | false | 17,163 | r | library(shiny)
library(dplyr)
library(tidyr)
library(ggplot2)
function(input, output, session) {
source("data.R")
#---------------------------------------------------------------------------------
# Code for the sidebar GEI
# -- Contaminante from GEIs
contaminante_GEI_reactive <- reactive({
filter(gei_fin, C... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/popeProjection-main.R
\name{autoProjectorPlot}
\alias{autoProjectorPlot}
\title{Title}
\usage{
autoProjectorPlot(allData, rangeDate, nStairs, addBiomassBar = TRUE,
absolute = FALSE, outputDir = "./", outputPattern = "Fig_",
width = 1200, ... | /man/autoProjectorPlot.Rd | no_license | PelagicosImarpe/popeProjection | R | false | true | 453 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/popeProjection-main.R
\name{autoProjectorPlot}
\alias{autoProjectorPlot}
\title{Title}
\usage{
autoProjectorPlot(allData, rangeDate, nStairs, addBiomassBar = TRUE,
absolute = FALSE, outputDir = "./", outputPattern = "Fig_",
width = 1200, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ols-information-criteria.R
\name{ols_mallows_cp}
\alias{ols_mallows_cp}
\title{Mallow's Cp}
\usage{
ols_mallows_cp(model, fullmodel)
}
\arguments{
\item{model}{An object of class \code{lm}.}
\item{fullmodel}{An object of class \code{lm}.}
}
... | /man/ols_mallows_cp.Rd | no_license | AminHP/olsrr | R | false | true | 1,313 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ols-information-criteria.R
\name{ols_mallows_cp}
\alias{ols_mallows_cp}
\title{Mallow's Cp}
\usage{
ols_mallows_cp(model, fullmodel)
}
\arguments{
\item{model}{An object of class \code{lm}.}
\item{fullmodel}{An object of class \code{lm}.}
}
... |
#!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
if (length(args)<3) {
stop("3 arguments needed. Usage: Rscript analysis.R PATH/TO/best-known.txt PATH/TO/maxtimes.txt PATH/TO/RESULTS/DIRECTORY", call.=FALSE)
}
results.folder <- args[3]
solutionquality <- function(df, best) 100 * (df - best) / best
ca... | /SCP/analysis_ex2.R | permissive | arnomoonens/set-covering-problem | R | false | false | 3,773 | r | #!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
if (length(args)<3) {
stop("3 arguments needed. Usage: Rscript analysis.R PATH/TO/best-known.txt PATH/TO/maxtimes.txt PATH/TO/RESULTS/DIRECTORY", call.=FALSE)
}
results.folder <- args[3]
solutionquality <- function(df, best) 100 * (df - best) / best
ca... |
# Getting started
new_int <- 4 # 'new_int' is a name we made up - variables can be called whatever is easy for you to remember
new_int
cos(new_int) # Finds the cosine of the value stored in new_int
cos(4)
# Functions
new_fun <- function(x) { # Creates a function called new_fun that takes one argument, "x"
my_int <... | /R/workshop.R | no_license | jladams/QSS_30.07 | R | false | false | 4,584 | r |
# Getting started
new_int <- 4 # 'new_int' is a name we made up - variables can be called whatever is easy for you to remember
new_int
cos(new_int) # Finds the cosine of the value stored in new_int
cos(4)
# Functions
new_fun <- function(x) { # Creates a function called new_fun that takes one argument, "x"
my_int <... |
/Lab6_BaseGraph__ZhongyuanZhang.R | no_license | Noah0811/R-Practice-Weekly | R | false | false | 3,086 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/robubu-package.R
\docType{package}
\name{robubu-package}
\alias{robubu-package}
\title{the rolling burning bus - awesome gis tools fyi}
\description{
the rolling burning bus - whatever, it runs fine for now
}
\details{
The package provides so... | /man/robubu-package.Rd | no_license | gisma/robubu | R | false | true | 605 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/robubu-package.R
\docType{package}
\name{robubu-package}
\alias{robubu-package}
\title{the rolling burning bus - awesome gis tools fyi}
\description{
the rolling burning bus - whatever, it runs fine for now
}
\details{
The package provides so... |
power.data=read.table("household_power_consumption.txt",sep=";",header=TRUE)
#Formatting Date and taking interval from 2007-02-01 to 2007-02-02
power.data$Date=as.Date(power.data$Date,format="%d/%m/%Y")
part=subset(power.data, Date==as.Date("2007-02-01")|Date==as.Date("2007-02-02"))
temp=paste(as.character(sub$Date),as... | /Plot1.R | no_license | joetal/ExData_Plotting1 | R | false | false | 652 | r | power.data=read.table("household_power_consumption.txt",sep=";",header=TRUE)
#Formatting Date and taking interval from 2007-02-01 to 2007-02-02
power.data$Date=as.Date(power.data$Date,format="%d/%m/%Y")
part=subset(power.data, Date==as.Date("2007-02-01")|Date==as.Date("2007-02-02"))
temp=paste(as.character(sub$Date),as... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neo4jService.R
\name{getNodeAndEdgeTables,neo4jService-method}
\alias{getNodeAndEdgeTables,neo4jService-method}
\title{return a list of two data.frames, nodes and edges, suitable for rendering in RCyjs}
\usage{
\S4method{getNodeAndEdgeTables}... | /man/getNodeAndEdgeTables.Rd | permissive | PriceLab/neo4jService | R | false | true | 571 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neo4jService.R
\name{getNodeAndEdgeTables,neo4jService-method}
\alias{getNodeAndEdgeTables,neo4jService-method}
\title{return a list of two data.frames, nodes and edges, suitable for rendering in RCyjs}
\usage{
\S4method{getNodeAndEdgeTables}... |
#!/usr/bin/env Rscript
library(knitr)
rmdfile <- commandArgs(trailingOnly = TRUE)[1]
opts <- commandArgs(trailingOnly = TRUE)[-1]
# Set working directory to directory where file was called
opts_knit$set(root.dir = getwd())
stitch_rhtml(rmdfile)
#stitch_rmd(rmdfile)
| /stitch_file.r | no_license | surh/rsutiles | R | false | false | 268 | r | #!/usr/bin/env Rscript
library(knitr)
rmdfile <- commandArgs(trailingOnly = TRUE)[1]
opts <- commandArgs(trailingOnly = TRUE)[-1]
# Set working directory to directory where file was called
opts_knit$set(root.dir = getwd())
stitch_rhtml(rmdfile)
#stitch_rmd(rmdfile)
|
library(foreign)
library(plyr)
library(sandwich)
library(lmtest)
library(multiwayvcov)
library(stargazer)
##HEAD
afro5 <- read.spss("~/Google Drive/GOV_2001_REPLICATION/02_Analysis/Final_Paper/Afrobarometer/merged_r5_data_0.sav", to.data.frame = TRUE)
afro4 <- read.spss("~/Google Drive/GOV_2001_REPLICATION/02_Analysis... | /02_Analysis/Final_Paper/Afrobarometer/barometer_analysis.R | permissive | shommazumder/GOV_2001_REPLICATION | R | false | false | 10,931 | r | library(foreign)
library(plyr)
library(sandwich)
library(lmtest)
library(multiwayvcov)
library(stargazer)
##HEAD
afro5 <- read.spss("~/Google Drive/GOV_2001_REPLICATION/02_Analysis/Final_Paper/Afrobarometer/merged_r5_data_0.sav", to.data.frame = TRUE)
afro4 <- read.spss("~/Google Drive/GOV_2001_REPLICATION/02_Analysis... |
"summary.predcoca" <- function(object, axes = c(1:min(6, object$n.axes)),
display = c("species", "sites"), ...)
{
cocaScores <- scores(object, choices = axes, display = display)
retval <- list(cocaScores = cocaScores, call = object$call,
lambda = object$lambda, namY = object$nam.da... | /cocorresp/R/summary.predcoca.R | no_license | ingted/R-Examples | R | false | false | 599 | r | "summary.predcoca" <- function(object, axes = c(1:min(6, object$n.axes)),
display = c("species", "sites"), ...)
{
cocaScores <- scores(object, choices = axes, display = display)
retval <- list(cocaScores = cocaScores, call = object$call,
lambda = object$lambda, namY = object$nam.da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/patch_identity.R
\name{sample_patch_identity}
\alias{sample_patch_identity}
\title{'Sample' an identity patch}
\usage{
sample_patch_identity(...)
}
\arguments{
\item{...}{Arguments are ignored.}
}
\description{
A trivial helper function (sinc... | /man/sample_patch_identity.Rd | permissive | tpetricek/datadiff | R | false | true | 459 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/patch_identity.R
\name{sample_patch_identity}
\alias{sample_patch_identity}
\title{'Sample' an identity patch}
\usage{
sample_patch_identity(...)
}
\arguments{
\item{...}{Arguments are ignored.}
}
\description{
A trivial helper function (sinc... |
##FileViews <- function(path=character(), pedigree=list(),
## cnvar=character(), bafvar=character(),
## fid=character(),
## importfun=function(){},
## annot_pkg=character()){
## new("FileViews", path=path, pedigree=pedigree, cnvar=cnva... | /R/methods-FileViews.R | no_license | rscharpf/MinimumDistance-release | R | false | false | 3,975 | r | ##FileViews <- function(path=character(), pedigree=list(),
## cnvar=character(), bafvar=character(),
## fid=character(),
## importfun=function(){},
## annot_pkg=character()){
## new("FileViews", path=path, pedigree=pedigree, cnvar=cnva... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.