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 |
|---|---|---|---|---|---|---|---|---|---|
setwd("C:/Users/Payal Soneja/Documents/GitHub/Air-Polluton-and-Sentiment")
### Extracting twitter sentiments to match with pollution data##
install.packages("rtweet")
install.packages("twitteR")
install.packages("SnowballC")
install.packages("tm")
install.packages("syuzhet")
install.packages("sentimentr")
# loading... | /twitter_pollution.R | no_license | payalsoneja/Air-Pollution-and-Sentiment | R | false | false | 3,119 | r |
setwd("C:/Users/Payal Soneja/Documents/GitHub/Air-Polluton-and-Sentiment")
### Extracting twitter sentiments to match with pollution data##
install.packages("rtweet")
install.packages("twitteR")
install.packages("SnowballC")
install.packages("tm")
install.packages("syuzhet")
install.packages("sentimentr")
# loading... |
\name{existsCellStyle-methods}
\docType{methods}
\alias{existsCellStyle}
\alias{existsCellStyle-methods}
\alias{existsCellStyle,workbook-method}
\title{Retrieving named cell styles}
\description{
Checks whether a named cell style exists in a \code{\linkS4class{workbook}}.
}
\usage{
\S4method{existsCellStyle}{workbook}(... | /man/existsCellStyle-methods.Rd | no_license | HouYonghui/xlconnect | R | false | false | 1,280 | rd | \name{existsCellStyle-methods}
\docType{methods}
\alias{existsCellStyle}
\alias{existsCellStyle-methods}
\alias{existsCellStyle,workbook-method}
\title{Retrieving named cell styles}
\description{
Checks whether a named cell style exists in a \code{\linkS4class{workbook}}.
}
\usage{
\S4method{existsCellStyle}{workbook}(... |
library(tidyverse)
library(forcats)
library(magrittr)
library(scales)
library(ggmap) # geocode function
mydata = read_csv("r4ds_regsitrations_google_drive.csv")
locations = mydata %>%
select(location) %>%
separate(location,
into = c("first", "second"),
sep = " and ", ... | /1_read_and_geocode.R | no_license | bobuva/r4ds_locations | R | false | false | 711 | r | library(tidyverse)
library(forcats)
library(magrittr)
library(scales)
library(ggmap) # geocode function
mydata = read_csv("r4ds_regsitrations_google_drive.csv")
locations = mydata %>%
select(location) %>%
separate(location,
into = c("first", "second"),
sep = " and ", ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util-export.R
\name{cleanFeatureDF}
\alias{cleanFeatureDF}
\title{Clean up feature data in preparation for saving}
\usage{
cleanFeatureDF(features)
}
\arguments{
\item{features}{The data frame of feature to be cleaned up}
}
\value{
A copy of ... | /man/cleanFeatureDF.Rd | permissive | josiahjohnston/visdom | R | false | true | 513 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util-export.R
\name{cleanFeatureDF}
\alias{cleanFeatureDF}
\title{Clean up feature data in preparation for saving}
\usage{
cleanFeatureDF(features)
}
\arguments{
\item{features}{The data frame of feature to be cleaned up}
}
\value{
A copy of ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny-rect.R
\name{lcarsRect}
\alias{lcarsRect}
\alias{lcarsPill}
\alias{lcarsLeftPill}
\alias{lcarsRightPill}
\title{LCARS rectangle element}
\usage{
lcarsRect(
text = "",
round = c("none", "both", "left", "right"),
decorate = c("none"... | /man/lcarsRect.Rd | permissive | cran/lcars | R | false | true | 2,490 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny-rect.R
\name{lcarsRect}
\alias{lcarsRect}
\alias{lcarsPill}
\alias{lcarsLeftPill}
\alias{lcarsRightPill}
\title{LCARS rectangle element}
\usage{
lcarsRect(
text = "",
round = c("none", "both", "left", "right"),
decorate = c("none"... |
test_that("Test Platform Info", {
skip_on_cran()
expect_equal(get_platform_info(), .Platform)
}
)
| /tests/testthat/test-platform_info.R | no_license | csgillespie/benchmarkme | R | false | false | 104 | r | test_that("Test Platform Info", {
skip_on_cran()
expect_equal(get_platform_info(), .Platform)
}
)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pull.R
\name{pull}
\alias{pull}
\title{Pull out a single variable}
\usage{
pull(.df, var = -1, name = NULL)
}
\arguments{
\item{.df}{A data.frame or data.table}
\item{var}{The column to pull from the data.table as:
\itemize{
\item a variable... | /man/pull.Rd | permissive | markfairbanks/tidytable | R | false | true | 798 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pull.R
\name{pull}
\alias{pull}
\title{Pull out a single variable}
\usage{
pull(.df, var = -1, name = NULL)
}
\arguments{
\item{.df}{A data.frame or data.table}
\item{var}{The column to pull from the data.table as:
\itemize{
\item a variable... |
library(shiny)
final_tip_perc <- function(percent, other){
if( percent > 0){
percent
}else{
other / 100
}
}
tip_calc <- function(amount, percent, people){
round((amount * (1 + percent)) / people, digits = 2)
}
shinyServer(
function(input, output) {
#Converting inputs i... | /server.R | no_license | Jerryaki/JH_DS_Module9 | R | false | false | 849 | r | library(shiny)
final_tip_perc <- function(percent, other){
if( percent > 0){
percent
}else{
other / 100
}
}
tip_calc <- function(amount, percent, people){
round((amount * (1 + percent)) / people, digits = 2)
}
shinyServer(
function(input, output) {
#Converting inputs i... |
rm(list=ls())
setwd(dir="/Users/halfdan/Dropbox/Waseda/Research/MarketSimulation/dataAnalysis/Rscripts/")
logDir = "/Users/halfdan/Dropbox/Waseda/Research/MarketSimulation/logs/"
loadFiles = function(logDir){
files = list()
files[['stock0transactions']] = read.csv(file=paste0(logDir, "columnLog_transactionBased_... | /dataAnalysis/Rscripts/stepFunctionExperiment.r | no_license | halfdanrump/MarketSimulation | R | false | false | 4,048 | r | rm(list=ls())
setwd(dir="/Users/halfdan/Dropbox/Waseda/Research/MarketSimulation/dataAnalysis/Rscripts/")
logDir = "/Users/halfdan/Dropbox/Waseda/Research/MarketSimulation/logs/"
loadFiles = function(logDir){
files = list()
files[['stock0transactions']] = read.csv(file=paste0(logDir, "columnLog_transactionBased_... |
#' @title freqImport
#' @author Oyvind Bleka
#' @description FreqImport is a function to import allele frequencies directly from file(s) supporting text format, xml. It also supports an URL path reading XML format (as for the STRidER webpage).
#' @details
#' The function reads XML as input, directly from an URL or loca... | /euroformix_2.0.3/R/freqImport.R | no_license | oyvble/euroformixArchive | R | false | false | 2,828 | r | #' @title freqImport
#' @author Oyvind Bleka
#' @description FreqImport is a function to import allele frequencies directly from file(s) supporting text format, xml. It also supports an URL path reading XML format (as for the STRidER webpage).
#' @details
#' The function reads XML as input, directly from an URL or loca... |
project.raw <- read.csv("Book .csv", header=TRUE)
dataset <- ts(project.raw, start=c(1970,1), frequency=12)
y <- dataset[,"y"]
nopi <- dataset[,"nopi"]
inter <- dataset[,"inter"]
dataset
library(vars)
library(tstools)
rfvar <- lapply(1:12, function(h) {
k <- 15
rhs <- lags(dataset, h:(h+k-1), type="bylag")
coef... | /Time Series Econometrics/Local Projections.R | no_license | naafeysardar/sardar | R | false | false | 599 | r | project.raw <- read.csv("Book .csv", header=TRUE)
dataset <- ts(project.raw, start=c(1970,1), frequency=12)
y <- dataset[,"y"]
nopi <- dataset[,"nopi"]
inter <- dataset[,"inter"]
dataset
library(vars)
library(tstools)
rfvar <- lapply(1:12, function(h) {
k <- 15
rhs <- lags(dataset, h:(h+k-1), type="bylag")
coef... |
# ggdesplot.R
# Currently the "outline" and "text" do not have guides.
# Perhaps this can be used for multiple scales:
# https://github.com/eliocamp/ggnewscale
if(0){
# multiple legends
# https://stackoverflow.com/questions/18394391/r-custom-legend-for-multiple-layer-ggplot#18395012
# perfect e... | /R/ggdesplot.R | no_license | cran/desplot | R | false | false | 19,732 | r | # ggdesplot.R
# Currently the "outline" and "text" do not have guides.
# Perhaps this can be used for multiple scales:
# https://github.com/eliocamp/ggnewscale
if(0){
# multiple legends
# https://stackoverflow.com/questions/18394391/r-custom-legend-for-multiple-layer-ggplot#18395012
# perfect e... |
library(gdata)
library(readxl)
library(XLConnect)
###### The readxl package ######
### List the sheets of an Excel file ###
excel_sheets("latitude.xlsx")
### Import an Excel sheet ###
# Read the first sheet of latitude.xlsx: latitude_1
latitude_1 <- read_excel("latitude.xlsx", sheet = 1)
# Read the second sheet of ... | /DataCamp/Importing-Data-Into-R/Importing data from Excel.R | no_license | r-repos-org/R-2 | R | false | false | 3,407 | r | library(gdata)
library(readxl)
library(XLConnect)
###### The readxl package ######
### List the sheets of an Excel file ###
excel_sheets("latitude.xlsx")
### Import an Excel sheet ###
# Read the first sheet of latitude.xlsx: latitude_1
latitude_1 <- read_excel("latitude.xlsx", sheet = 1)
# Read the second sheet of ... |
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## any later version.
##
## This program is distributed in the hope that it will be useful,
... | /tweets-fetch.R | no_license | lulitw/twitter-r-utils | R | false | false | 1,946 | r | ## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## any later version.
##
## This program is distributed in the hope that it will be useful,
... |
test_that("conflict_scout prints usefully", {
expect_snapshot({
conflict_scout("dplyr")
conflict_scout(c("rlang", "pkgload"))
})
})
test_that("primitive functions are never supersets", {
pkgload::load_all(test_path("primitive"), quiet = TRUE)
on.exit(pkgload::unload("primitive"))
expect_false(is_sup... | /tests/testthat/test-find.R | no_license | cran/conflicted | R | false | false | 2,038 | r | test_that("conflict_scout prints usefully", {
expect_snapshot({
conflict_scout("dplyr")
conflict_scout(c("rlang", "pkgload"))
})
})
test_that("primitive functions are never supersets", {
pkgload::load_all(test_path("primitive"), quiet = TRUE)
on.exit(pkgload::unload("primitive"))
expect_false(is_sup... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataSetList.R
\name{get_runtimes}
\alias{get_runtimes}
\title{Get all runtime values present in a DataSetList}
\usage{
get_runtimes(dsList)
}
\arguments{
\item{dsList}{The DataSetLsit}
}
\value{
A list matrices of all runtime valu... | /man/get_runtimes.Rd | permissive | IOHprofiler/IOHanalyzer | R | false | true | 459 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataSetList.R
\name{get_runtimes}
\alias{get_runtimes}
\title{Get all runtime values present in a DataSetList}
\usage{
get_runtimes(dsList)
}
\arguments{
\item{dsList}{The DataSetLsit}
}
\value{
A list matrices of all runtime valu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/alpexfix.R
\name{print.metaan.arf}
\alias{print.metaan.arf}
\title{Pooled excess risk estimate using the alternative fixed effect model meta-analysis}
\usage{
\method{print}{metaan.arf}(x, ...)
}
\arguments{
\item{x}{Object of class metaan.ar... | /Metaan/man/metaan.arf.Rd | no_license | Package-Metaan-Rep/Package_Metaan | R | false | true | 498 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/alpexfix.R
\name{print.metaan.arf}
\alias{print.metaan.arf}
\title{Pooled excess risk estimate using the alternative fixed effect model meta-analysis}
\usage{
\method{print}{metaan.arf}(x, ...)
}
\arguments{
\item{x}{Object of class metaan.ar... |
#Read in files
library(stringr)
library(dplyr)
library(tidyverse)
library(readr)
con <- file("..\\..\\Data\\Coursera-SwiftKey\\final\\en_US\\en_US.twitter.txt", "r")
readLines(con, 1) ## Read the first line of text
readLines(con, 1) ## Read the next line of text
readLines(con, 5) ## Read in the next 5 lines of text cl... | /ReadData.R | no_license | nattsp/CapStonePlay | R | false | false | 5,371 | r | #Read in files
library(stringr)
library(dplyr)
library(tidyverse)
library(readr)
con <- file("..\\..\\Data\\Coursera-SwiftKey\\final\\en_US\\en_US.twitter.txt", "r")
readLines(con, 1) ## Read the first line of text
readLines(con, 1) ## Read the next line of text
readLines(con, 5) ## Read in the next 5 lines of text cl... |
###
### BANKIA - BLACK CARDS
###
########
# USEFUL STUFF
#
# ?bind_rows
# ?read_excel
# ?list.files
# ?filter_all
# ?filter
# ?is.na
# https://regex101.com
# library(stringi) --> remove weird characters as "ñ", "'", etc.
# Bichear openRefine, que es muy util para limpiar datos: http://openrefine.org
########
# INS... | /kschool/week9/ILoveTarjetasBlack/01_Black_Cards.R | no_license | msanzsanz/KSchool_dataScienceMaster | R | false | false | 6,024 | r | ###
### BANKIA - BLACK CARDS
###
########
# USEFUL STUFF
#
# ?bind_rows
# ?read_excel
# ?list.files
# ?filter_all
# ?filter
# ?is.na
# https://regex101.com
# library(stringi) --> remove weird characters as "ñ", "'", etc.
# Bichear openRefine, que es muy util para limpiar datos: http://openrefine.org
########
# INS... |
\name{phylomorphospace}
\alias{phylomorphospace}
\alias{project.phylomorphospace}
\title{Creates phylomorphospace plot}
\usage{
phylomorphospace(tree, X, A=NULL, label=c("radial","horizontal","off"),
control=list(), ...)
project.phylomorphospace(tree, X, nsteps=200, sleep=0,
direction=c("to","from","bot... | /man/phylomorphospace.Rd | no_license | cran/phytools | R | false | false | 4,370 | rd | \name{phylomorphospace}
\alias{phylomorphospace}
\alias{project.phylomorphospace}
\title{Creates phylomorphospace plot}
\usage{
phylomorphospace(tree, X, A=NULL, label=c("radial","horizontal","off"),
control=list(), ...)
project.phylomorphospace(tree, X, nsteps=200, sleep=0,
direction=c("to","from","bot... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/credential_main.R
\name{credentialing}
\alias{credentialing}
\title{#' Credentialing main function}
\usage{
credentialing(peaktable1, peaktable2, ppm, rtwin, rtcom, ratio1 = 1/1,
ratio2 = 1/2, ratio_tol = 0.1, ratios_tol = 0.1, cd = 13.0033... | /man/credentialing.Rd | no_license | pattilabwu/Credential3.1 | R | false | true | 1,847 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/credential_main.R
\name{credentialing}
\alias{credentialing}
\title{#' Credentialing main function}
\usage{
credentialing(peaktable1, peaktable2, ppm, rtwin, rtcom, ratio1 = 1/1,
ratio2 = 1/2, ratio_tol = 0.1, ratios_tol = 0.1, cd = 13.0033... |
#####################################################################################################
#
# Title : GooglyPlusPLus - An interactive app to analyze T20 and ODI matches
# Designed and developed by: Tinniam V Ganesh
# Date : 28 Jun 2020
# File: T20Mutlities.R
# More details: https://gigadom.in/
#
#########... | /T20Mutilities.R | no_license | tvganesh/googlyPlusPlus | R | false | false | 9,217 | r | #####################################################################################################
#
# Title : GooglyPlusPLus - An interactive app to analyze T20 and ODI matches
# Designed and developed by: Tinniam V Ganesh
# Date : 28 Jun 2020
# File: T20Mutlities.R
# More details: https://gigadom.in/
#
#########... |
#' Definition of Format of Disease Model File
#'
#' Definition of Format of Disease Model File.
#' Essentially a list of parameters, whether they are required or optional, and what values they can take.
#'
#' @format A data frame with 4 variables:
#' \describe{
#' \item{category}{XXXX}
#' \item{parameter}{parameter... | /R/data.R | no_license | DesmondCampbell/diseaseRiskPredictor | R | false | false | 1,637 | r | #' Definition of Format of Disease Model File
#'
#' Definition of Format of Disease Model File.
#' Essentially a list of parameters, whether they are required or optional, and what values they can take.
#'
#' @format A data frame with 4 variables:
#' \describe{
#' \item{category}{XXXX}
#' \item{parameter}{parameter... |
# Script to separately load all the data to be used for different scenario analyses
# QDR / FWE / 07 May 2019
# Modified 29 May 2019: Use new routine for modifying intermediate and final demand values for scenarios.
# Modified 11 Jun 2019: Change crosswalk table and FAO percentage table to updated version.
# Step 0: ... | /fiftypercentMS/load_scenario_data.r | no_license | qdread/fwe | R | false | false | 5,812 | r | # Script to separately load all the data to be used for different scenario analyses
# QDR / FWE / 07 May 2019
# Modified 29 May 2019: Use new routine for modifying intermediate and final demand values for scenarios.
# Modified 11 Jun 2019: Change crosswalk table and FAO percentage table to updated version.
# Step 0: ... |
library(rpart)
library(randomForest)
library(kernlab)
library(nnet)
prepareData <- function() {
x<-cbind(rnorm(10,mean=2,sd=1),rnorm(10,mean=2,sd=1))
x<-rbind(x,cbind(rnorm(10,mean=2,sd=1),rnorm(10,mean=-2,sd=1)))
y<-cbind(rnorm(10,mean=-1,sd=1),rnorm(10,mean=0,sd=1))
y<-rbind(y,cbind(rnorm(10,mean=0,sd=1),rn... | /BoundaryDemo.R | no_license | akinori-ito/BoundaryDemo | R | false | false | 1,801 | r | library(rpart)
library(randomForest)
library(kernlab)
library(nnet)
prepareData <- function() {
x<-cbind(rnorm(10,mean=2,sd=1),rnorm(10,mean=2,sd=1))
x<-rbind(x,cbind(rnorm(10,mean=2,sd=1),rnorm(10,mean=-2,sd=1)))
y<-cbind(rnorm(10,mean=-1,sd=1),rnorm(10,mean=0,sd=1))
y<-rbind(y,cbind(rnorm(10,mean=0,sd=1),rn... |
#
#get the tid from the external id;
#
getTidFromExtId = function(ids,na.rm=F){
stop("this function is currently only supported in the windows OS")
} | /R/unix/unix.R | no_license | MattNapsAlot/traitQC | R | false | false | 155 | r | #
#get the tid from the external id;
#
getTidFromExtId = function(ids,na.rm=F){
stop("this function is currently only supported in the windows OS")
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/repeatsOCBA.R
\name{repeatsOCBA}
\alias{repeatsOCBA}
\title{Optimal Computing Budget Allocation}
\usage{
repeatsOCBA(x, y, budget, verbosity = 0)
}
\arguments{
\item{x}{matrix of samples. Identical rows indicate repeated evaluations.
Any sam... | /man/repeatsOCBA.Rd | no_license | cran/SPOT | R | false | true | 1,151 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/repeatsOCBA.R
\name{repeatsOCBA}
\alias{repeatsOCBA}
\title{Optimal Computing Budget Allocation}
\usage{
repeatsOCBA(x, y, budget, verbosity = 0)
}
\arguments{
\item{x}{matrix of samples. Identical rows indicate repeated evaluations.
Any sam... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/acceldown.R
\name{acceldown}
\alias{acceldown}
\title{The \code{acceldown} function estimates the relative locations of a vehicle downstream of a bottleneck.}
\usage{
acceldown(tstart, tend, umn, usd, xstart, delt)
}
\arguments{
\item{tstart... | /man/acceldown.Rd | permissive | PJOssenbruggen/Basic | R | false | true | 851 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/acceldown.R
\name{acceldown}
\alias{acceldown}
\title{The \code{acceldown} function estimates the relative locations of a vehicle downstream of a bottleneck.}
\usage{
acceldown(tstart, tend, umn, usd, xstart, delt)
}
\arguments{
\item{tstart... |
calculateOnBalanceVolumeTrend <- function(dataset = dataset,days = 12,limit = 100){
if(nrow(dataset) > limit)
dataset <- dataset[c(1:(limit+days)),];
resultset <- data.frame(matrix(ncol = 3, nrow = 0));
colnames(resultset) <- c("security","date","obv_trend");
obv <- dataset[(nrow(dataset)-days),]$No.o... | /algorithm/indicators/volume/OnBalanceVolume.R | no_license | vm-natarajan/r-experiement | R | false | false | 1,651 | r | calculateOnBalanceVolumeTrend <- function(dataset = dataset,days = 12,limit = 100){
if(nrow(dataset) > limit)
dataset <- dataset[c(1:(limit+days)),];
resultset <- data.frame(matrix(ncol = 3, nrow = 0));
colnames(resultset) <- c("security","date","obv_trend");
obv <- dataset[(nrow(dataset)-days),]$No.o... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{plot.polarity_score}
\alias{plot.polarity_score}
\title{Plots a polarity_score Object}
\usage{
\method{plot}{polarity_score}(x, error.bar.height = 0.35,
error.bar.size = 0.5, error.bar.alpha = 0.3, ...)
}
\arguments{
\item{x}{The polarity_score object.}
\ite... | /man/plot.polarity_score.Rd | no_license | joffrevillanueva/qdap | R | false | false | 571 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{plot.polarity_score}
\alias{plot.polarity_score}
\title{Plots a polarity_score Object}
\usage{
\method{plot}{polarity_score}(x, error.bar.height = 0.35,
error.bar.size = 0.5, error.bar.alpha = 0.3, ...)
}
\arguments{
\item{x}{The polarity_score object.}
\ite... |
\docType{class}
\name{mongo.code}
\alias{mongo.code}
\title{The mongo.code class}
\description{
Objects of class "mongo.code" are used to represent
javascript code values in BSON documents.
}
\details{
mongo.code objects' value is a string representing the
value of the code.
mongo.code objects have "mongo.co... | /man/mongo.code.Rd | no_license | dtenenba/rmongodb | R | false | false | 1,363 | rd | \docType{class}
\name{mongo.code}
\alias{mongo.code}
\title{The mongo.code class}
\description{
Objects of class "mongo.code" are used to represent
javascript code values in BSON documents.
}
\details{
mongo.code objects' value is a string representing the
value of the code.
mongo.code objects have "mongo.co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Start_Trading.R
\name{Start_Trading}
\alias{Start_Trading}
\title{Start_Trading}
\usage{
Start_Trading(
consumer_key,
consumer_secret,
access_token,
access_secret,
path_decision,
ntweets,
terms_list,
time_tweet,
time_zone,
... | /man/Start_Trading.Rd | no_license | sboriss/TwitterAutomatedTrading | R | false | true | 5,447 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Start_Trading.R
\name{Start_Trading}
\alias{Start_Trading}
\title{Start_Trading}
\usage{
Start_Trading(
consumer_key,
consumer_secret,
access_token,
access_secret,
path_decision,
ntweets,
terms_list,
time_tweet,
time_zone,
... |
library(readr)
conditional_scores <- read_delim("C:/Users/matej/Downloads/elife-31035-supp4-v2/conditional_scores.tsv","\t",escape_double = FALSE)
a<-colnames(conditional_scores)
Targets <- read_csv("~/PhenotypeFiles/R functions/Targets.txt", col_names = FALSE)
b<-Targets[,1]
c<-setdiff(a,b)
cs1<-conditional_scores[ ,-... | /R codes/phenotypeWorkflow.R | no_license | matmih/NeighbourhoodFunctionalProfile | R | false | false | 8,435 | r | library(readr)
conditional_scores <- read_delim("C:/Users/matej/Downloads/elife-31035-supp4-v2/conditional_scores.tsv","\t",escape_double = FALSE)
a<-colnames(conditional_scores)
Targets <- read_csv("~/PhenotypeFiles/R functions/Targets.txt", col_names = FALSE)
b<-Targets[,1]
c<-setdiff(a,b)
cs1<-conditional_scores[ ,-... |
#!/usr/bin/env
args <- commandArgs(trailingOnly = TRUE)
if (length(args) == 0) {
stop("Please provide the Samples directory path", call.=FALSE)
}
library(azuremlsdk)
subscription_id <- Sys.getenv("TEST_SUBSCRIPTION_ID", unset = NA)
resource_group <- Sys.getenv("TEST_RESOURCE_GROUP")
workspace_name <- Sys.getenv("TE... | /.azure-pipelines/scripts/validate_samples.R | permissive | omartin2010/azureml-sdk-for-r | R | false | false | 1,337 | r | #!/usr/bin/env
args <- commandArgs(trailingOnly = TRUE)
if (length(args) == 0) {
stop("Please provide the Samples directory path", call.=FALSE)
}
library(azuremlsdk)
subscription_id <- Sys.getenv("TEST_SUBSCRIPTION_ID", unset = NA)
resource_group <- Sys.getenv("TEST_RESOURCE_GROUP")
workspace_name <- Sys.getenv("TE... |
read_utf8hex<-function(dataframe_w_text, ascii_TRUE = TRUE){
#Converts utf8hex into "*description of utf8hex* " style
#needs data.frame with a text column and information (TRUE, FALSE) if text has been transformed to ascii already
#needs packages stringr, dplyr
#transformation to ascii if it has not happened... | /read_utf8hex.R | no_license | PostdOK/preprocessing_emojis | R | false | false | 3,446 | r | read_utf8hex<-function(dataframe_w_text, ascii_TRUE = TRUE){
#Converts utf8hex into "*description of utf8hex* " style
#needs data.frame with a text column and information (TRUE, FALSE) if text has been transformed to ascii already
#needs packages stringr, dplyr
#transformation to ascii if it has not happened... |
' mcgranahan_method_segregation.R
Segregates mutations into clonal vs. non-clonal based on the analysis performed in
McGranahan et al. (2015): http://stm.sciencemag.org/content/7/283/283ra54.full
Usage: mcgranahan_method_segregation.R -i INPUT -m METADATA -s SAMPLEPREFIX -o OUTPUT [ -c CORES ]
Options:
-i INPUT ... | /msig-timing/mcgranahan_method_segregation.R | no_license | eyzhao/bio-pipelines | R | false | false | 4,907 | r | ' mcgranahan_method_segregation.R
Segregates mutations into clonal vs. non-clonal based on the analysis performed in
McGranahan et al. (2015): http://stm.sciencemag.org/content/7/283/283ra54.full
Usage: mcgranahan_method_segregation.R -i INPUT -m METADATA -s SAMPLEPREFIX -o OUTPUT [ -c CORES ]
Options:
-i INPUT ... |
### packages
library(dplyr)
library(ggplot2)
### load data
load("C:\\Users\\Felix Timmermans\\Desktop\\pingpong\\data\\datasets\\tccmaldegem_ledenresultaten\\extra_tccmaldegem_ledenresultaten.RData")
### prepare data
## remove matches without ELO or leeftijdscategorie
ELO_na <- which(is.na(results$ELO))
leeftijd... | /analysis/scripts/analysis_evolution_rating.R | no_license | IsaacVerm/pingpong | R | false | false | 2,096 | r | ### packages
library(dplyr)
library(ggplot2)
### load data
load("C:\\Users\\Felix Timmermans\\Desktop\\pingpong\\data\\datasets\\tccmaldegem_ledenresultaten\\extra_tccmaldegem_ledenresultaten.RData")
### prepare data
## remove matches without ELO or leeftijdscategorie
ELO_na <- which(is.na(results$ELO))
leeftijd... |
#exercice 1
#V1<-c(1:100)
#V1
#class(V1)
#mode(V1)
#V2<-V1
#V2
#length(V2)
#sample(V2,10)
#V2[sample(V2,10)]<- NA
#V2
#ecercice 1
#V1<-rnorm(100)
#V2<-V1
#V2
#indice <- sample(1:100,10)
#v2[indice] = NA
#v2
#exercice2
ladata <- c(1,12,14,3,96,36,48,55,111)
ladata
summary(ladata,probs=seq(0,1,0.1))
quantile(ladata)
qu... | /exo1.R | no_license | ulookme/exo_pragrammationR | R | false | false | 808 | r | #exercice 1
#V1<-c(1:100)
#V1
#class(V1)
#mode(V1)
#V2<-V1
#V2
#length(V2)
#sample(V2,10)
#V2[sample(V2,10)]<- NA
#V2
#ecercice 1
#V1<-rnorm(100)
#V2<-V1
#V2
#indice <- sample(1:100,10)
#v2[indice] = NA
#v2
#exercice2
ladata <- c(1,12,14,3,96,36,48,55,111)
ladata
summary(ladata,probs=seq(0,1,0.1))
quantile(ladata)
qu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allClasses.R
\docType{methods}
\name{WithVisValue-class}
\alias{WithVisValue-class}
\alias{PlotList-class}
\alias{WithVisPlusGraphics-class}
\alias{CachingEngine-class}
\alias{cacheClass}
\alias{CodeCacheSet-class}
\alias{codeCacheSet}
\alias... | /man/objclasses.Rd | no_license | gmbecker/RCacheSuite | R | false | true | 511 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allClasses.R
\docType{methods}
\name{WithVisValue-class}
\alias{WithVisValue-class}
\alias{PlotList-class}
\alias{WithVisPlusGraphics-class}
\alias{CachingEngine-class}
\alias{cacheClass}
\alias{CodeCacheSet-class}
\alias{codeCacheSet}
\alias... |
#' create a dominance matrix
#'
#' create a dominance matrix from the underlying observed sequence
#'
#' @param eloobject output from \code{\link{elo.seq}}
#' @param daterange character of length 2, date range to which the matrix should correspond (default from beginning to end of sequence)
#' @param drawmethod charact... | /R/creatematrix.R | no_license | cran/EloRating | R | false | false | 6,189 | r | #' create a dominance matrix
#'
#' create a dominance matrix from the underlying observed sequence
#'
#' @param eloobject output from \code{\link{elo.seq}}
#' @param daterange character of length 2, date range to which the matrix should correspond (default from beginning to end of sequence)
#' @param drawmethod charact... |
# Load required packages and data -----------------------------------------
library(shiny)
library(quantmod)
library(stringr)
all_returns <- readRDS("./data/all_returns.rds")
# all_returns <- readRDS("all_returns.rds")
Tix <- colnames(all_returns)
# Define ui logic --------------------------------------------------... | /app.R | no_license | Aldridgexia/ShinyStocks | R | false | false | 2,473 | r |
# Load required packages and data -----------------------------------------
library(shiny)
library(quantmod)
library(stringr)
all_returns <- readRDS("./data/all_returns.rds")
# all_returns <- readRDS("all_returns.rds")
Tix <- colnames(all_returns)
# Define ui logic --------------------------------------------------... |
source("../R/genome.ids.in.cooked.df.R")
test_that("A set of genome ids can be extracted from rownames correctly..",{
#get some sample data
test.bh.data <- read.bhs(bh.folder = "../inst/extradata", ext = ".short") %>%
data.frame %>%
normalize.scores %>%
sign.bh.table
expect_equal(test.bh.data... | /test/test.genome.ids.in.coocked.df.R | no_license | axrt/gbra | R | false | false | 364 | r | source("../R/genome.ids.in.cooked.df.R")
test_that("A set of genome ids can be extracted from rownames correctly..",{
#get some sample data
test.bh.data <- read.bhs(bh.folder = "../inst/extradata", ext = ".short") %>%
data.frame %>%
normalize.scores %>%
sign.bh.table
expect_equal(test.bh.data... |
Thu Aug 22 15:10:24 2002
nc.r
2km
qjhart
raster
generated by r.mapcalc
| /gdb/cimis/2km/hist/nc.r | permissive | CSTARS/spatial-cimis | R | false | false | 73 | r | Thu Aug 22 15:10:24 2002
nc.r
2km
qjhart
raster
generated by r.mapcalc
|
library(dplyr) ; library(mgcv) ; library(gtools)
`%not in%` <- function (x, table) is.na(match(x, table, nomatch=NA_integer_))
### Charge data
chlist<-readRDS(paste0(GBrow, "1.Tables/Chlist.Script.05.rds"))
obs<-readRDS(paste0(GBrow, "1.Tables/Obs.Script.05.rds"))
obs$scientific_name<-sub(" ", ".", obs$scie... | /HFI.06.Taxonomy.changes.R | no_license | victorcazalis/sensitivity_paper | R | false | false | 12,980 | r | library(dplyr) ; library(mgcv) ; library(gtools)
`%not in%` <- function (x, table) is.na(match(x, table, nomatch=NA_integer_))
### Charge data
chlist<-readRDS(paste0(GBrow, "1.Tables/Chlist.Script.05.rds"))
obs<-readRDS(paste0(GBrow, "1.Tables/Obs.Script.05.rds"))
obs$scientific_name<-sub(" ", ".", obs$scie... |
/cascadeKM/R/cascadeKM.R | no_license | philippec/fonctions_R_git | R | false | false | 2,410 | r | ||
#' Delete one of the global graph attributes stored within a graph object
#'
#' Delete one of the global attributes stored within a graph object of class
#' \code{dgr_graph}).
#' @inheritParams render_graph
#' @param attr the name of the attribute to delete for the \code{type} of global
#' attribute specified.
#' @... | /R/delete_global_graph_attrs.R | permissive | jmcastagnetto/DiagrammeR | R | false | false | 4,818 | r | #' Delete one of the global graph attributes stored within a graph object
#'
#' Delete one of the global attributes stored within a graph object of class
#' \code{dgr_graph}).
#' @inheritParams render_graph
#' @param attr the name of the attribute to delete for the \code{type} of global
#' attribute specified.
#' @... |
#'@name rcost
#'@title Calculate the least cost path from point to point using a given friction matrix
#'@description
#' http://moc.environmentalinformatics-marburg.de/doku.php?id=courses:msc:advanced-gis:description
#'
#'@usage rcost(pointList,costraster)
#'@author Chris Reudenbach
#'
#'
#'@param pointList containing ... | /R/rCost.R | no_license | gisma/robubu | R | false | false | 2,498 | r | #'@name rcost
#'@title Calculate the least cost path from point to point using a given friction matrix
#'@description
#' http://moc.environmentalinformatics-marburg.de/doku.php?id=courses:msc:advanced-gis:description
#'
#'@usage rcost(pointList,costraster)
#'@author Chris Reudenbach
#'
#'
#'@param pointList containing ... |
testlist <- list(type = 3082752L, z = 1.31421461793772e-321)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609890347-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 114 | r | testlist <- list(type = 3082752L, z = 1.31421461793772e-321)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
# == title
# Empty Annotation
#
# == param
# -which Whether it is a column annotation or a row annotation?
# -border Whether draw borders of the annotation region?
# -zoom If it is true and when the heatmap is split, the empty annotation slices will have
# equal height or width, and you can see the correspondanc... | /R/AnnotationFunction-function.R | permissive | jh2663/ComplexHeatmap | R | false | false | 125,833 | r |
# == title
# Empty Annotation
#
# == param
# -which Whether it is a column annotation or a row annotation?
# -border Whether draw borders of the annotation region?
# -zoom If it is true and when the heatmap is split, the empty annotation slices will have
# equal height or width, and you can see the correspondanc... |
#' Function for plotting trade balance of one country staking multiple partners at one bar
#'
#' This funciton takes filtered to one reporter CT data and plots a trade balance out of it.
#'
#' @param xVarName,yVarName names of x and y axeses
#' @param exp,imp names of variables and categories for exporn and import
#' @... | /R/plot_tb.R | no_license | EBukin/tradeAnalysis-pack | R | false | false | 17,672 | r | #' Function for plotting trade balance of one country staking multiple partners at one bar
#'
#' This funciton takes filtered to one reporter CT data and plots a trade balance out of it.
#'
#' @param xVarName,yVarName names of x and y axeses
#' @param exp,imp names of variables and categories for exporn and import
#' @... |
plot.clusmca<-function(x, dims = c(1,2), what = c(TRUE,TRUE), cludesc = FALSE, topstdres = 20, attlabs = NULL, binary = FALSE, subplot = FALSE, ...){
act = NULL
attnam = NULL
d1 = NULL
d2 = NULL
gr = NULL
out=list()
if (dim(data.frame(x$attcoord))[2] == 1) {
stop('There is only one dimension. A 2D ... | /R/plot.clusmca.R | no_license | amarkos/clustrd | R | false | false | 6,866 | r | plot.clusmca<-function(x, dims = c(1,2), what = c(TRUE,TRUE), cludesc = FALSE, topstdres = 20, attlabs = NULL, binary = FALSE, subplot = FALSE, ...){
act = NULL
attnam = NULL
d1 = NULL
d2 = NULL
gr = NULL
out=list()
if (dim(data.frame(x$attcoord))[2] == 1) {
stop('There is only one dimension. A 2D ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_freesurfer.R
\name{find_hemi_fromfile}
\alias{find_hemi_fromfile}
\title{helper function to easily grab hemisphere information from file path}
\usage{
find_hemi_fromfile(path)
}
\arguments{
\item{path}{file path}
}
\description{
helper f... | /man/find_hemi_fromfile.Rd | permissive | neuroconductor/ggseg | R | false | true | 383 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_freesurfer.R
\name{find_hemi_fromfile}
\alias{find_hemi_fromfile}
\title{helper function to easily grab hemisphere information from file path}
\usage{
find_hemi_fromfile(path)
}
\arguments{
\item{path}{file path}
}
\description{
helper f... |
## The makeCacheMatrix function creates a special "matrix" object that can cache its inverse
## but it does not compute it. Rather the cacheSolve function calculates the inverse of the
## special "matrix" returned by makeCacheMatrix. After calculating the inverse once, the inverse
## is cached and easily retrievable. ... | /cachematrix.R | no_license | huntertw/ProgrammingAssignment2 | R | false | false | 1,363 | r | ## The makeCacheMatrix function creates a special "matrix" object that can cache its inverse
## but it does not compute it. Rather the cacheSolve function calculates the inverse of the
## special "matrix" returned by makeCacheMatrix. After calculating the inverse once, the inverse
## is cached and easily retrievable. ... |
#I am pretty sure that diffpolyapois.nll is the code that was the best fit in the 2009 paper
#It is clear there were much lower levels of dispersal in our work. Is this just a species thing?
# Prepare data for analysis
dispersal48 = subset(dispersal,dispersal$dTime==48)
dispersal24 = subset(dispersal,dispersal$dTime... | /scripts/model_fitting/my_code.R | no_license | eastonwhite/species-management-variability | R | false | false | 5,359 | r |
#I am pretty sure that diffpolyapois.nll is the code that was the best fit in the 2009 paper
#It is clear there were much lower levels of dispersal in our work. Is this just a species thing?
# Prepare data for analysis
dispersal48 = subset(dispersal,dispersal$dTime==48)
dispersal24 = subset(dispersal,dispersal$dTime... |
# 要点
# rOpenSci软件包:各种数据API接口
# https://ropensci.org/packages/
# 主要包:
# curl
# jsonlite:解析JSON格式
# xml2:解析XML格式
# httr:较api更加灵活
# 主要函数:
# edit_r_environ():保存密码信息
# Sys.getenv:获取系统环境变量,获取密码信息
# glue:格式化并插入一个字符串,{}进行插入!可用于print呀哈哈
# curl:创建Curl连接接口
# readLines:从连接读取文本行
# fromJSON:将JSON转换为R对象
# read_xml:Read HTML or... | /Chapter 40 DIY web data.R | no_license | yuan1615/STAT545 | R | false | false | 4,234 | r | # 要点
# rOpenSci软件包:各种数据API接口
# https://ropensci.org/packages/
# 主要包:
# curl
# jsonlite:解析JSON格式
# xml2:解析XML格式
# httr:较api更加灵活
# 主要函数:
# edit_r_environ():保存密码信息
# Sys.getenv:获取系统环境变量,获取密码信息
# glue:格式化并插入一个字符串,{}进行插入!可用于print呀哈哈
# curl:创建Curl连接接口
# readLines:从连接读取文本行
# fromJSON:将JSON转换为R对象
# read_xml:Read HTML or... |
library(spdep)
library(maps)
library(maptools)
library(classInt)
library(RColorBrewer)
library(geoR)
library(spBayes)
columbus.poly <- readShapePoly(system.file("etc/shapes/columbus.shp", package="spdep")[1])
coords <- as.matrix(cbind(columbus.poly$X,columbus.poly$Y))
HOVAL <- columbus.poly$HOVAL
bins =... | /test2/test2.R | no_license | ainilaha/GeoSpatial-Statistics | R | false | false | 995 | r | library(spdep)
library(maps)
library(maptools)
library(classInt)
library(RColorBrewer)
library(geoR)
library(spBayes)
columbus.poly <- readShapePoly(system.file("etc/shapes/columbus.shp", package="spdep")[1])
coords <- as.matrix(cbind(columbus.poly$X,columbus.poly$Y))
HOVAL <- columbus.poly$HOVAL
bins =... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.09756868641053e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.2955... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615833211-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,049 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.09756868641053e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.2955... |
print.summary.translogRayEst <- function( x, ... ) {
cat( "Estimated Translog ray function with ",
length( x$yNames ), " dependent variables,\n",
length( x$xNames ), " independent variables, and ",
x$nObs, " observations.\n", sep = "" )
printCoefmat( x$coefTable )
cat( "R-squared:", x$r2, "... | /pkg/micEconDist/R/print.summary.translogRayEst.R | no_license | scfmolina/micecon | R | false | false | 383 | r | print.summary.translogRayEst <- function( x, ... ) {
cat( "Estimated Translog ray function with ",
length( x$yNames ), " dependent variables,\n",
length( x$xNames ), " independent variables, and ",
x$nObs, " observations.\n", sep = "" )
printCoefmat( x$coefTable )
cat( "R-squared:", x$r2, "... |
testlist <- list(doy = c(1.61619219867111e+226, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), latitude = numeric(0), temp = c(-6.16249584696239e+100, 2.61788686270017e+185 ))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615837670-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 230 | r | testlist <- list(doy = c(1.61619219867111e+226, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), latitude = numeric(0), temp = c(-6.16249584696239e+100, 2.61788686270017e+185 ))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) |
library(inTrees)
library(stringr)
identifyT2wrule<- function(RulesIx, colN, fnames)
{
# colN = colnames(X)
RulesIxcond = presentRules(RulesIx, colnames(X))$condition
rules = c()
nameRules = c()
for(ixr in RulesIxcond){
# print(ixr)
C = unlist(strsplit(ixr, split = " & "))
lnameRu... | /functionsRules.R | no_license | cgallego/revision2-finalTreebased-boosting | R | false | false | 53,755 | r | library(inTrees)
library(stringr)
identifyT2wrule<- function(RulesIx, colN, fnames)
{
# colN = colnames(X)
RulesIxcond = presentRules(RulesIx, colnames(X))$condition
rules = c()
nameRules = c()
for(ixr in RulesIxcond){
# print(ixr)
C = unlist(strsplit(ixr, split = " & "))
lnameRu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crimes.R
\docType{data}
\name{crimes}
\alias{crimes}
\title{Buenos Aires crimes data}
\format{
data frame with 100 rows y 9 columns:
\describe{
\item{id:}{id}
\item{fecha:}{date}
\item{franja_horaria:}{hour from 0 to 23}
\item{tipo_delito:}{c... | /man/crimes.Rd | permissive | dedenistiawan/sknifedatar | R | false | true | 820 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crimes.R
\docType{data}
\name{crimes}
\alias{crimes}
\title{Buenos Aires crimes data}
\format{
data frame with 100 rows y 9 columns:
\describe{
\item{id:}{id}
\item{fecha:}{date}
\item{franja_horaria:}{hour from 0 to 23}
\item{tipo_delito:}{c... |
############################################
## ShuaiQi's Project
## Inverse Gamma
## Date 03-29-2016
## Aim: Try All Genes
## @ authors: SQ
## Data source: /dscrhome/gd44/SQProject/RStan/2016/exon_level_process_v2.txt
## Models: Bayesian Stan
## Parameters:
## Outputs:
## Data source and copyright?
## Read in... | /OriginalScripts/0329_inverse_gamma_005005.R | no_license | breezedu/InverseGamma | R | false | false | 4,477 | r | ############################################
## ShuaiQi's Project
## Inverse Gamma
## Date 03-29-2016
## Aim: Try All Genes
## @ authors: SQ
## Data source: /dscrhome/gd44/SQProject/RStan/2016/exon_level_process_v2.txt
## Models: Bayesian Stan
## Parameters:
## Outputs:
## Data source and copyright?
## Read in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app.R
\name{dnmetaApp}
\alias{dnmetaApp}
\title{support search of hotspot/peak data from ENCODE}
\usage{
dnmetaApp()
}
\value{
data.frame of metadat about selections
}
\description{
support search of hotspot/peak data from ENCODE
}
\examples{... | /man/dnmetaApp.Rd | no_license | vjcitn/TxRegInfraObsolete | R | false | true | 496 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app.R
\name{dnmetaApp}
\alias{dnmetaApp}
\title{support search of hotspot/peak data from ENCODE}
\usage{
dnmetaApp()
}
\value{
data.frame of metadat about selections
}
\description{
support search of hotspot/peak data from ENCODE
}
\examples{... |
# Plot3.R
# Richard Casto
# 2015-10-11
#setwd("D:/Coursera/Data Science Specalization/Exploratory Data Analysis/Programming Assignment 1")
# Create Data directory if it doesn't exist
if(!file.exists("./Data")) {
dir.create("./Data")
}
# download file
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%... | /Plot3.R | no_license | RichardCasto/ExData_Plotting1 | R | false | false | 1,816 | r | # Plot3.R
# Richard Casto
# 2015-10-11
#setwd("D:/Coursera/Data Science Specalization/Exploratory Data Analysis/Programming Assignment 1")
# Create Data directory if it doesn't exist
if(!file.exists("./Data")) {
dir.create("./Data")
}
# download file
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%... |
#Data Import
dataset <- read.csv('global_product_sales.csv')
df <- ts(matrix(dataset$quantity, nrow = 60, ncol = nrow(dataset)),
start = c(2014, 1), frequency = 12)
#Creating bottom level names for matrix column names
library(dplyr)
ids <- strsplit(dataset$id, split = "-")
for (i in 1:nrow(dataset)) {
... | /time_series_app/app.R | permissive | Sp-X/r_shiny_apps | R | false | false | 2,708 | r | #Data Import
dataset <- read.csv('global_product_sales.csv')
df <- ts(matrix(dataset$quantity, nrow = 60, ncol = nrow(dataset)),
start = c(2014, 1), frequency = 12)
#Creating bottom level names for matrix column names
library(dplyr)
ids <- strsplit(dataset$id, split = "-")
for (i in 1:nrow(dataset)) {
... |
write_league_history <- function(league_ids, filename = "data-raw/master.csv"){
history <- tibble::tibble()
for(leage_id in league_ids){
history <- dplyr::bind_rows(history, get_league_history(leage_id))
}
readr::write_csv(x = history, path = filename)
}
| /R/write_league_history.R | no_license | tjconstant/ffs.query | R | false | false | 271 | r | write_league_history <- function(league_ids, filename = "data-raw/master.csv"){
history <- tibble::tibble()
for(leage_id in league_ids){
history <- dplyr::bind_rows(history, get_league_history(leage_id))
}
readr::write_csv(x = history, path = filename)
}
|
#' @include reexports.R
#' @include generics.R
#' @importFrom Rcpp evalCpp
#' @importFrom Matrix colSums rowSums colMeans rowMeans
#' @importFrom methods setClass setOldClass setClassUnion slot
#' slot<- setMethod new signature slotNames is setAs setValidity .hasSlot
#' @importClassesFrom Matrix dgCMatrix
#' @useDynLib... | /R/objects.R | permissive | satijalab/seurat | R | false | false | 90,798 | r | #' @include reexports.R
#' @include generics.R
#' @importFrom Rcpp evalCpp
#' @importFrom Matrix colSums rowSums colMeans rowMeans
#' @importFrom methods setClass setOldClass setClassUnion slot
#' slot<- setMethod new signature slotNames is setAs setValidity .hasSlot
#' @importClassesFrom Matrix dgCMatrix
#' @useDynLib... |
p1 <- InputParam(id = "vcf", type = "File", prefix = "I=", separate = FALSE)
p2 <- InputParam(id = "ovcf", type = "string", prefix = "O=", separate = FALSE)
p3 <- InputParam(id = "NewName", type = "string", prefix = "NEW_SAMPLE_NAME=", separate = FALSE)
o1 <- OutputParam(id = "oVcf", type = "File", glob = "$(inputs.ov... | /Rcwl/tl_RenameSampleInVcf.R | no_license | hubentu/RcwlRecipes | R | false | false | 748 | r |
p1 <- InputParam(id = "vcf", type = "File", prefix = "I=", separate = FALSE)
p2 <- InputParam(id = "ovcf", type = "string", prefix = "O=", separate = FALSE)
p3 <- InputParam(id = "NewName", type = "string", prefix = "NEW_SAMPLE_NAME=", separate = FALSE)
o1 <- OutputParam(id = "oVcf", type = "File", glob = "$(inputs.ov... |
# Week 1 of Exploratory Data Analysis R Program Course
setwd("R:\\Earthquake\\Hazard\\Users\\MTorpey\\Coursera_DataScienceCertification\\ExploratoryDataAnalysisWithR\\Week1\\ExData_Plotting1")
data<-read.delim(file="..\\household_power_consumption.txt",sep=";",header=TRUE,stringsAsFactors = FALSE)
datasub<-subset(dat... | /plot2.R | no_license | meganzimmerman/ExData_Plotting1 | R | false | false | 650 | r | # Week 1 of Exploratory Data Analysis R Program Course
setwd("R:\\Earthquake\\Hazard\\Users\\MTorpey\\Coursera_DataScienceCertification\\ExploratoryDataAnalysisWithR\\Week1\\ExData_Plotting1")
data<-read.delim(file="..\\household_power_consumption.txt",sep=";",header=TRUE,stringsAsFactors = FALSE)
datasub<-subset(dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/path.R
\name{path}
\alias{path}
\title{Create a JSON path with a minimum of typing}
\usage{
path(...)
}
\arguments{
\item{...}{a sequence of quoted or unquoted character strings specifying
JSON object names}
}
\value{
a \code{path} object
}
\... | /man/path.Rd | permissive | colearendt/tidyjson | R | false | true | 398 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/path.R
\name{path}
\alias{path}
\title{Create a JSON path with a minimum of typing}
\usage{
path(...)
}
\arguments{
\item{...}{a sequence of quoted or unquoted character strings specifying
JSON object names}
}
\value{
a \code{path} object
}
\... |
# convert list (indexes as [[row]][[column]] to a data frame
list2df <-
function(listresult)
{
if(is.null(listresult)) return(listresult)
do.call("rbind_expand", listresult)
}
| /R/list2df.R | permissive | kbroman/GNapi | R | false | false | 190 | r | # convert list (indexes as [[row]][[column]] to a data frame
list2df <-
function(listresult)
{
if(is.null(listresult)) return(listresult)
do.call("rbind_expand", listresult)
}
|
# -------------------------------------------------------------------------
resp =
respiration %>%
mutate(R13C = ((D13C_VPDB_CO2/1000) + 1) * R13C_VPDB,
F13C = R13C/(1+R13C),
R13C = round(R13C, 4),
F13C = round(F13C, 4),
C13_umol = F13C * umol_CO2C,
C12_umol = umol... | /code/Untitled.R | no_license | kaizadp/destabilization_som | R | false | false | 12,822 | r |
# -------------------------------------------------------------------------
resp =
respiration %>%
mutate(R13C = ((D13C_VPDB_CO2/1000) + 1) * R13C_VPDB,
F13C = R13C/(1+R13C),
R13C = round(R13C, 4),
F13C = round(F13C, 4),
C13_umol = F13C * umol_CO2C,
C12_umol = umol... |
## Air Pollution Monitoring dataset. Week 2 Coursera RProgramming Assignment
## setwd("C:/Users/Office/Documents/RCourse/Week2/rprog_data_specdata/")
setwd("M:/Documents/RCourse/Week2/rprog_data_specdata/")
## The data is provided in a zip file, which contains 332 comma-separated-value (CSV) files containing pollu... | /pollutantmeanFunction-AssignmentWeek2.R | no_license | rozenv1/RProgramming-Coursera_Week2 | R | false | false | 2,969 | r | ## Air Pollution Monitoring dataset. Week 2 Coursera RProgramming Assignment
## setwd("C:/Users/Office/Documents/RCourse/Week2/rprog_data_specdata/")
setwd("M:/Documents/RCourse/Week2/rprog_data_specdata/")
## The data is provided in a zip file, which contains 332 comma-separated-value (CSV) files containing pollu... |
/*
File: FileTypesAndCreators.r
Contains: Symbolic constants for FileTypes and signatures of popular documents.
Version: Technology: Macintosh Easy Open 1.1
Release: Universal Interfaces 3.4
Copyright: © 1992-2001 by Apple Computer, Inc., all rights reserved.
... | /3.4/Universal/Interfaces/RIncludes/FileTypesAndCreators.r | no_license | elliotnunn/UniversalInterfaces | R | false | false | 23,064 | r | /*
File: FileTypesAndCreators.r
Contains: Symbolic constants for FileTypes and signatures of popular documents.
Version: Technology: Macintosh Easy Open 1.1
Release: Universal Interfaces 3.4
Copyright: © 1992-2001 by Apple Computer, Inc., all rights reserved.
... |
library(ggplot2)
library(statsExpressions)
library(patchwork)
library(circlize)
library(pbapply)
SERGIO <- read.csv('SERGIO/simulationOutput.csv', header = FALSE)
rownames(SERGIO) <- paste0('G', seq_len(nrow(SERGIO)))
colnames(SERGIO) <- paste0('C', seq_len(ncol(SERGIO)))
countMatrix <- SERGIO
set.seed(1)
sccNet <- ... | /simulation data/different try/network_try.R | no_license | guanxunli/knock_out_test | R | false | false | 7,379 | r | library(ggplot2)
library(statsExpressions)
library(patchwork)
library(circlize)
library(pbapply)
SERGIO <- read.csv('SERGIO/simulationOutput.csv', header = FALSE)
rownames(SERGIO) <- paste0('G', seq_len(nrow(SERGIO)))
colnames(SERGIO) <- paste0('C', seq_len(ncol(SERGIO)))
countMatrix <- SERGIO
set.seed(1)
sccNet <- ... |
wb2=filter(ai.2,state=="West Bengal")
wb3=filter(ai.3,state=="West Bengal")
wb2=wb2%>%select(-1,-3,-7,-8,-(10:15),-17,-20)%>%rename_all(tolower)
wb3=wb3%>%select(-1,-3,-7,-8,-(10:15),-20,-(24:32))%>%rename_all(tolower)
wb3=rename(wb3,relationtohead=relation)
save(ai.2,ai.3,wb2,wb3, file="C:/R/projectWB/wb.RDat... | /finaltidy.R | no_license | bajajtushar/West-bengal-census | R | false | false | 474 | r | wb2=filter(ai.2,state=="West Bengal")
wb3=filter(ai.3,state=="West Bengal")
wb2=wb2%>%select(-1,-3,-7,-8,-(10:15),-17,-20)%>%rename_all(tolower)
wb3=wb3%>%select(-1,-3,-7,-8,-(10:15),-20,-(24:32))%>%rename_all(tolower)
wb3=rename(wb3,relationtohead=relation)
save(ai.2,ai.3,wb2,wb3, file="C:/R/projectWB/wb.RDat... |
path_output <- Sys.getenv("path_output")
path_input <- Sys.getenv("path_input")
setwd(path_input)
print(getwd())
#
# #set working directory
# setwd(paste0(Sys.getenv("HOME"), "/v4_MDG/GP"))
#
# #get z drive path
# load("../zdrive_path.RData")
library(TMB)
library(INLA)
tryCatch(dyn.unload(dynlib("gp_rff_t")),
... | /GP/gp_rff_t.R | no_license | rarambepola/google_cloud_stuff | R | false | false | 5,864 | r | path_output <- Sys.getenv("path_output")
path_input <- Sys.getenv("path_input")
setwd(path_input)
print(getwd())
#
# #set working directory
# setwd(paste0(Sys.getenv("HOME"), "/v4_MDG/GP"))
#
# #get z drive path
# load("../zdrive_path.RData")
library(TMB)
library(INLA)
tryCatch(dyn.unload(dynlib("gp_rff_t")),
... |
build_survival_df <- function(df, group_column, time_column, filter_df = TRUE) {
if (time_column == "OS_time") {
time_status <- "OS"
if(filter_df == TRUE){
df <- df %>%
dplyr::distinct() %>%
dplyr::filter(feature_name %in% c("OS", "OS_time")) %>%
dplyr::select(sample_name, group... | /R/ici_clinical_outcomes_functions.R | permissive | CRI-iAtlas/iatlas-app | R | false | false | 1,568 | r | build_survival_df <- function(df, group_column, time_column, filter_df = TRUE) {
if (time_column == "OS_time") {
time_status <- "OS"
if(filter_df == TRUE){
df <- df %>%
dplyr::distinct() %>%
dplyr::filter(feature_name %in% c("OS", "OS_time")) %>%
dplyr::select(sample_name, group... |
if (require("IWTomics",character.only = TRUE,quietly = FALSE)) {
args=commandArgs(TRUE)
# get args names and values
args_values=strsplit(args,'=')
args_names=unlist(lapply(args_values,function(arg) arg[1]))
names(args_values)=args_names
args_values=lapply(args_values,function(arg) arg[2])
# rea... | /tools/iwtomics/loadandplot.R | permissive | galaxyproject/tools-iuc | R | false | false | 7,283 | r | if (require("IWTomics",character.only = TRUE,quietly = FALSE)) {
args=commandArgs(TRUE)
# get args names and values
args_values=strsplit(args,'=')
args_names=unlist(lapply(args_values,function(arg) arg[1]))
names(args_values)=args_names
args_values=lapply(args_values,function(arg) arg[2])
# rea... |
library(dplyr)
loadData <- function() {
read.table('data.txt', sep=';', header=TRUE) %>%
mutate(Date = as.Date(Date, '%d/%m/%Y')) %>%
mutate(Time = as.POSIXct(strptime(paste(Date, ' ', Time), '%Y-%m-%d %H:%M:%S'))) %>%
filter(Time >= strftime('2007-02-01 00:00:00'), Time < strftime('2007-02-03 00:00:00')... | /loaddata.R | no_license | vivianlotus/ExData_Plotting1 | R | false | false | 339 | r | library(dplyr)
loadData <- function() {
read.table('data.txt', sep=';', header=TRUE) %>%
mutate(Date = as.Date(Date, '%d/%m/%Y')) %>%
mutate(Time = as.POSIXct(strptime(paste(Date, ' ', Time), '%Y-%m-%d %H:%M:%S'))) %>%
filter(Time >= strftime('2007-02-01 00:00:00'), Time < strftime('2007-02-03 00:00:00')... |
library(europepmc)
library(dplyr)
library(magrittr)
library(tidyr)
##Search for project
my_project <- readline(prompt="Enter project or tool name to search: ")
##Check number of hits
approx_num_records <- europepmc::epmc_hits(query=my_project)
num_records_found <-europepmc::epmc_search(query=my_project, limit=1)
thr... | /keyword_publications/PubStats.R | no_license | wikipathways/project-stats | R | false | false | 1,278 | r | library(europepmc)
library(dplyr)
library(magrittr)
library(tidyr)
##Search for project
my_project <- readline(prompt="Enter project or tool name to search: ")
##Check number of hits
approx_num_records <- europepmc::epmc_hits(query=my_project)
num_records_found <-europepmc::epmc_search(query=my_project, limit=1)
thr... |
print.NSM3Ch5p <-
function(x,...){
if(!is.null(x$ties)&&x$ties){cat("Ties are present, so p-values are based on conditional null distribution. \n")}
cat(paste0("Number of X values: ", x$m, " Number of Y values: ", x$n, "\n"))
cat(paste0(x$stat.name, " Statistic: ", round(x$obs.stat,4) , "\n"))
cat(paste0(x$method,... | /R/print.NSM3Ch5p.R | no_license | cran/NSM3 | R | false | false | 790 | r | print.NSM3Ch5p <-
function(x,...){
if(!is.null(x$ties)&&x$ties){cat("Ties are present, so p-values are based on conditional null distribution. \n")}
cat(paste0("Number of X values: ", x$m, " Number of Y values: ", x$n, "\n"))
cat(paste0(x$stat.name, " Statistic: ", round(x$obs.stat,4) , "\n"))
cat(paste0(x$method,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_447}
\alias{movie_447}
\title{Love & Basketball}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0199725
}
\... | /man/movie_447.Rd | permissive | physthoth/networkdata | R | false | true | 661 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_447}
\alias{movie_447}
\title{Love & Basketball}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0199725
}
\... |
# ---------------------------------------------------------Header---------------------------------------------------------------
# Name: Maaz Siddiqui
# Year: Summer 2020
# Assignment: Data Project #6
# Description: Dataset was obtained from problem 42 in Section 10.3 (Supplementary Exercises) from Probability and... | /analysis.R | no_license | mbhsiddiqui/Data-Project-2 | R | false | false | 3,081 | r | # ---------------------------------------------------------Header---------------------------------------------------------------
# Name: Maaz Siddiqui
# Year: Summer 2020
# Assignment: Data Project #6
# Description: Dataset was obtained from problem 42 in Section 10.3 (Supplementary Exercises) from Probability and... |
config_VCFSTORAGE = "data/vcf/"
config_COVERAGESTORAGE = "data/coveragefile/"
config_DBBACKUPSTORAGE = "data/backupdb/"
config_MAXBACKUPFILES = 10
config_BACKUPLOG = "backup.log"
| /config.R | no_license | joelgsponer/ngs-dashboard | R | false | false | 179 | r | config_VCFSTORAGE = "data/vcf/"
config_COVERAGESTORAGE = "data/coveragefile/"
config_DBBACKUPSTORAGE = "data/backupdb/"
config_MAXBACKUPFILES = 10
config_BACKUPLOG = "backup.log"
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotMarkerDensity.R
\name{plotMarkerDensity}
\alias{plotMarkerDensity}
\title{Plot the marker density along the chromosomes.}
\usage{
plotMarkerDensity(genos = "genotypes")
}
\arguments{
\item{genos}{The output of readABHgenotypes}
}
\value{
... | /man/plotMarkerDensity.Rd | no_license | quanrd/ABHgenotypeR | R | false | true | 622 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotMarkerDensity.R
\name{plotMarkerDensity}
\alias{plotMarkerDensity}
\title{Plot the marker density along the chromosomes.}
\usage{
plotMarkerDensity(genos = "genotypes")
}
\arguments{
\item{genos}{The output of readABHgenotypes}
}
\value{
... |
\name{cleanChars}
\alias{cleanChars}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Clean all characters that are not Latin or Arabic
}
\description{
Cleans any characters in string that are not in either the Latin unicode range
or in the Arabic alphabet
}
\usage{
cleanChars(texts)
}
%- maybe al... | /man/cleanChars.Rd | no_license | cran/arabicStemR | R | false | false | 931 | rd | \name{cleanChars}
\alias{cleanChars}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Clean all characters that are not Latin or Arabic
}
\description{
Cleans any characters in string that are not in either the Latin unicode range
or in the Arabic alphabet
}
\usage{
cleanChars(texts)
}
%- maybe al... |
fact2num <-
structure(function(x)
{
### Purpose:- Converts a factor into a numeric (avoiding characters)
### ----------------------------------------------------------------------
### Modified from:-
### ----------------------------------------------------------------------
### Arguments:-
### -----------------------... | /.tmp/hrapgc.fact2num.R | no_license | Tuxkid/Gems | R | false | false | 575 | r | fact2num <-
structure(function(x)
{
### Purpose:- Converts a factor into a numeric (avoiding characters)
### ----------------------------------------------------------------------
### Modified from:-
### ----------------------------------------------------------------------
### Arguments:-
### -----------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rrepast-aoe.R
\name{AoE.Morris}
\alias{AoE.Morris}
\title{AoE.Morris}
\usage{
AoE.Morris(k = c(), p = 5, r = 4)
}
\arguments{
\item{k}{The factors for morris screening.}
\item{p}{The number of levels for the model's factors.}
\... | /man/AoE.Morris.Rd | no_license | cran/rrepast | R | false | true | 889 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rrepast-aoe.R
\name{AoE.Morris}
\alias{AoE.Morris}
\title{AoE.Morris}
\usage{
AoE.Morris(k = c(), p = 5, r = 4)
}
\arguments{
\item{k}{The factors for morris screening.}
\item{p}{The number of levels for the model's factors.}
\... |
# ------------------------------------------------------------------------------
# Libraries
library(dplyr)
library(readr)
library(stringr)
library(caret)
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
#... | /Caret/Script/Script_rf.R | no_license | bemayer/DigitRecognizer | R | false | false | 2,717 | r | # ------------------------------------------------------------------------------
# Libraries
library(dplyr)
library(readr)
library(stringr)
library(caret)
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
#... |
# Uncomment section if data is not already loaded.
# This project uses an unnecessarily large dataset to practice very simple concepts.
# library(data.table)
# df = fread(
# 'household_power_consumption.txt',
# na.strings = '?',
# sep = ";",
# header = FALSE,
# col.names = unlist(fread('hous... | /plot2.R | no_license | hougrammer/ExData_Plotting1 | R | false | false | 740 | r | # Uncomment section if data is not already loaded.
# This project uses an unnecessarily large dataset to practice very simple concepts.
# library(data.table)
# df = fread(
# 'household_power_consumption.txt',
# na.strings = '?',
# sep = ";",
# header = FALSE,
# col.names = unlist(fread('hous... |
# 8-Queen Problem using a Genetic Algorithm ---------------------------------------------------------
# Recursive Adam & Eve model
# Author: Alejandro Jiménez Rico <aljrico@gmail.com>
# Load functions
source("genetic_functions.R")
# Magnitude of the Problem
nproblem <- 10
# Probability of mutation
pmut <- 0.3
# See... | /_posts/rmarkdown/data/ga-delivery-aljrico/kill-allbut2.R | permissive | aljrico/blog | R | false | false | 1,274 | r | # 8-Queen Problem using a Genetic Algorithm ---------------------------------------------------------
# Recursive Adam & Eve model
# Author: Alejandro Jiménez Rico <aljrico@gmail.com>
# Load functions
source("genetic_functions.R")
# Magnitude of the Problem
nproblem <- 10
# Probability of mutation
pmut <- 0.3
# See... |
if(!require(shinydashboard)) { install.packages("shinydashboard"); require(shinydashboard)}
if(!require(dygraphs)) { install.packages("dygraphs"); require(dygraphs)}
if(!require(devtools)) { install.packages("devtools"); require(devtools)}
if(!require(MASS)) { install.packages("MASS"); require(MASS)}
if(!require(gg... | /ui.R | no_license | willianspalaor/analytics-project | R | false | false | 3,912 | r | if(!require(shinydashboard)) { install.packages("shinydashboard"); require(shinydashboard)}
if(!require(dygraphs)) { install.packages("dygraphs"); require(dygraphs)}
if(!require(devtools)) { install.packages("devtools"); require(devtools)}
if(!require(MASS)) { install.packages("MASS"); require(MASS)}
if(!require(gg... |
# read PM25 file
NEI <- readRDS("./summarySCC_PM25.rds")
SCC <- readRDS("./Source_Classification_Code.rds")
# calculating each year's emission
dat1 <- sum(NEI[NEI$year == "1999",]$Emissions, na.rm = TRUE)
dat2 <- sum(NEI[NEI$year == "2002",]$Emissions, na.rm = TRUE)
dat3 <- sum(NEI[NEI$year == "2005",]$Emissions, na.r... | /plot1.R | no_license | guesschess/ExData_Plotting2 | R | false | false | 831 | r | # read PM25 file
NEI <- readRDS("./summarySCC_PM25.rds")
SCC <- readRDS("./Source_Classification_Code.rds")
# calculating each year's emission
dat1 <- sum(NEI[NEI$year == "1999",]$Emissions, na.rm = TRUE)
dat2 <- sum(NEI[NEI$year == "2002",]$Emissions, na.rm = TRUE)
dat3 <- sum(NEI[NEI$year == "2005",]$Emissions, na.r... |
# EXAMPLES OF THREE-DIMENSIONAL PLOTS
# USING PLOTLY ----
# Limitations:
# - Need to figure out how to better plot surfaces with shading -- see below
#
install.packages("plotly")
library(plotly); library(ggplot2)
data <- read.csv('C:/Users/rshojin/Desktop/006_scripts/github/RLearners/R/datVis_examples/hdi.csv',
... | /R/3D_plots.R | no_license | DEQrshojin/RLearners | R | false | false | 1,730 | r | # EXAMPLES OF THREE-DIMENSIONAL PLOTS
# USING PLOTLY ----
# Limitations:
# - Need to figure out how to better plot surfaces with shading -- see below
#
install.packages("plotly")
library(plotly); library(ggplot2)
data <- read.csv('C:/Users/rshojin/Desktop/006_scripts/github/RLearners/R/datVis_examples/hdi.csv',
... |
library("stream")
library("testthat")
setwd(tempdir())
### read and reload write some DSCs (see if Cpp serialization works)
set.seed(0)
stream <- DSD_Gaussians(k = 3, noise = 0.05)
######################################################################
context("DSC_BIRCH")
# create clusterer with r = 0.05
BIRCH <- DS... | /tests/testthat/test-DSC_BIRCH.R | no_license | mhahsler/stream | R | false | false | 620 | r | library("stream")
library("testthat")
setwd(tempdir())
### read and reload write some DSCs (see if Cpp serialization works)
set.seed(0)
stream <- DSD_Gaussians(k = 3, noise = 0.05)
######################################################################
context("DSC_BIRCH")
# create clusterer with r = 0.05
BIRCH <- DS... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{simpleRmsAnova}
\alias{print.simpleRmsAnova}
\alias{simpleRmsAnova}
\title{A simpler latex output of the latex.anova.rms}
\usage{
simpleRmsAnova(anova_output, subregexps = NA, digits = 4,
pval_threshold = 10^-4, rowlabel = "Variable", ...)
\method{print}{sim... | /man/SimpleRmsAnova.Rd | no_license | landroni/Greg | R | false | false | 3,328 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{simpleRmsAnova}
\alias{print.simpleRmsAnova}
\alias{simpleRmsAnova}
\title{A simpler latex output of the latex.anova.rms}
\usage{
simpleRmsAnova(anova_output, subregexps = NA, digits = 4,
pval_threshold = 10^-4, rowlabel = "Variable", ...)
\method{print}{sim... |
##This functions are going to cache the
## inverse of a matrix
## makeCacheMatrix:
## 1. resetting the value m
## 2. a function set (set the value of the matrix)
## 3. a function get (get the value of the matrix)
## 4. a function setting the value of the inverse
## 5. a function getting the value of the inverse
## 6... | /cachematrix.R | no_license | mmihaela/ProgrammingAssignment2 | R | false | false | 1,077 | r | ##This functions are going to cache the
## inverse of a matrix
## makeCacheMatrix:
## 1. resetting the value m
## 2. a function set (set the value of the matrix)
## 3. a function get (get the value of the matrix)
## 4. a function setting the value of the inverse
## 5. a function getting the value of the inverse
## 6... |
makeCacheMatrix <- function(x = numeric()) {
# holds the cached value or NULL if nothing is cached
# initially nothing is cached so set it to NULL
cache <- NULL
# store a matrix
setMatrix <- function(newValue) {
x <<- newValue
# ... | /cachematrix.R | no_license | Tsreevathsa/ProgrammingAssignment2-1 | R | false | false | 1,544 | r |
makeCacheMatrix <- function(x = numeric()) {
# holds the cached value or NULL if nothing is cached
# initially nothing is cached so set it to NULL
cache <- NULL
# store a matrix
setMatrix <- function(newValue) {
x <<- newValue
# ... |
wdiag <- function(mat,w){
if (nrow(mat)!=ncol(mat)) stop("matrix is not square")
n <- nrow(mat)
if (w>n) stop("specified diagonal is too big")
ans <- numeric()
for (i in 1:(n-w+1)){
ans <- c(ans,mat[i,i+w-1])
}
if (w>1){
for (i in (n-w+2):n){
ans <- c(ans,mat[i,1+i-(n-w+2)])
}
}
... | /R/getDiags.R | no_license | WilCrofter/crust | R | false | false | 333 | r | wdiag <- function(mat,w){
if (nrow(mat)!=ncol(mat)) stop("matrix is not square")
n <- nrow(mat)
if (w>n) stop("specified diagonal is too big")
ans <- numeric()
for (i in 1:(n-w+1)){
ans <- c(ans,mat[i,i+w-1])
}
if (w>1){
for (i in (n-w+2):n){
ans <- c(ans,mat[i,1+i-(n-w+2)])
}
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.