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 |
|---|---|---|---|---|---|---|---|---|---|
#' Output a \pkg{gt} object as RTF
#'
#' Get the RTF content from a `gt_tbl` object as as a single-element character
#' vector. This object can be used with `writeLines()` to generate a valid .rtf
#' file that can be opened by RTF readers.
#'
#' @param data a table object that is created using the `gt()` function.
#' @... | /R/as_rtf.R | permissive | gracelawley/gt | R | false | false | 12,784 | r | #' Output a \pkg{gt} object as RTF
#'
#' Get the RTF content from a `gt_tbl` object as as a single-element character
#' vector. This object can be used with `writeLines()` to generate a valid .rtf
#' file that can be opened by RTF readers.
#'
#' @param data a table object that is created using the `gt()` function.
#' @... |
#
# 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(textreadr)
library(tidytext)
library(tidyr)
library(janeaustenr)
library(dplyr)
lib... | /server.R | no_license | Tripathiji/text_mining | R | false | false | 4,348 | 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(textreadr)
library(tidytext)
library(tidyr)
library(janeaustenr)
library(dplyr)
lib... |
# CONSTANTS
# ANNOTATION_DATA_DIR
readInKnownImprintedClusters<-function()
{
inFile = "__ANNOTATION_DATA_DIR__/known_imprinted_clusters_hg19.txt"
tbl=read.table(inFile,
sep="\t",header= TRUE)
return (tbl)
}
readInKnownAMRs<-function()
{
inFile = "__ANNOTATION_DATA_DIR__/known_amrs_hg19.txt"
tbl=read.table(inF... | /temp/iBS.R/Imprinting/ReadKnownImprinting.R | no_license | ecto/BDT | R | false | false | 559 | r | # CONSTANTS
# ANNOTATION_DATA_DIR
readInKnownImprintedClusters<-function()
{
inFile = "__ANNOTATION_DATA_DIR__/known_imprinted_clusters_hg19.txt"
tbl=read.table(inFile,
sep="\t",header= TRUE)
return (tbl)
}
readInKnownAMRs<-function()
{
inFile = "__ANNOTATION_DATA_DIR__/known_amrs_hg19.txt"
tbl=read.table(inF... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coclust.r
\name{mcell_coclust_filt_by_k_deg}
\alias{mcell_coclust_filt_by_k_deg}
\title{Return a filter (boolean vector) selecting only coclust edges that are nearly as frequent as a user defined K-nn parameter}
\usage{
mcell_coclust_filt_by_... | /man/mcell_coclust_filt_by_k_deg.Rd | permissive | tanaylab/metacell | R | false | true | 805 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coclust.r
\name{mcell_coclust_filt_by_k_deg}
\alias{mcell_coclust_filt_by_k_deg}
\title{Return a filter (boolean vector) selecting only coclust edges that are nearly as frequent as a user defined K-nn parameter}
\usage{
mcell_coclust_filt_by_... |
app <- shiny::shinyApp(ui = ui, server = server)
runApp(app) | /R/app.R | no_license | ABMI/RCDMViewer | R | false | false | 60 | r | app <- shiny::shinyApp(ui = ui, server = server)
runApp(app) |
library(randomForest)
library(caret)
house.df <- read.csv("HousingData.csv")
# Assign column names to housing.df
#names(housing.df) <- names2
summary(house.df)
housing.df <- house.df
#Replace the missing values (NA's) from the variables with their respective median values
housing.df$CRIM[which(is.na(hou... | /Code.R | no_license | GauravGupta0216/Boston_Housing_Dataset | R | false | false | 3,047 | r | library(randomForest)
library(caret)
house.df <- read.csv("HousingData.csv")
# Assign column names to housing.df
#names(housing.df) <- names2
summary(house.df)
housing.df <- house.df
#Replace the missing values (NA's) from the variables with their respective median values
housing.df$CRIM[which(is.na(hou... |
testlist <- list(data = structure(c(1.03351553436608e+34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(7L, 5L)), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610555970-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 258 | r | testlist <- list(data = structure(c(1.03351553436608e+34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(7L, 5L)), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) |
library(shiny)
myStyle <- 'width: 800px; height: 500px; font-family: monospace; font-size:20px; word-wrap: normal; white-space: pre;'
consoleStyle <- 'background: black; display: none; color: white; height: 1005px; font-family: monospace; font-size:20px; word-wrap: normal; white-space: pre; padding-left:12px;'
`%+%` <... | /inst/sketch_editor/ui.R | permissive | kcf-jackson/sketch | R | false | false | 2,157 | r | library(shiny)
myStyle <- 'width: 800px; height: 500px; font-family: monospace; font-size:20px; word-wrap: normal; white-space: pre;'
consoleStyle <- 'background: black; display: none; color: white; height: 1005px; font-family: monospace; font-size:20px; word-wrap: normal; white-space: pre; padding-left:12px;'
`%+%` <... |
library(shiny)
# example from http://shiny.rstudio.com/gallery/kmeans-example.html
palette(c("#E41A1C", "#377EB8", "#4DAF4A", "#984EA3",
"#FF7F00", "#FFFF33", "#A65628", "#F781BF", "#999999"))
# Define server logic required to generate and plot a random distribution
shinyServer(function(input, output, session) {
... | /test/shiny/server.R | permissive | plotly/heroku-buildpack-r | R | false | false | 743 | r | library(shiny)
# example from http://shiny.rstudio.com/gallery/kmeans-example.html
palette(c("#E41A1C", "#377EB8", "#4DAF4A", "#984EA3",
"#FF7F00", "#FFFF33", "#A65628", "#F781BF", "#999999"))
# Define server logic required to generate and plot a random distribution
shinyServer(function(input, output, session) {
... |
## read file info
data <- read.table("household_power_consumption.txt", sep = ";", na.strings = "?", header = TRUE)
df <- subset(data, Date == "1/2/2007" | Date == "2/2/2007") ## selects only data from Feb 1, 2007 to Feb,2,2007
df <- transform(df, Date = as.Date(Date, format = "%d/%m/%Y")) ## transforms Date field to... | /plot1.R | no_license | anapulido/ExData_Plotting1 | R | false | false | 640 | r | ## read file info
data <- read.table("household_power_consumption.txt", sep = ";", na.strings = "?", header = TRUE)
df <- subset(data, Date == "1/2/2007" | Date == "2/2/2007") ## selects only data from Feb 1, 2007 to Feb,2,2007
df <- transform(df, Date = as.Date(Date, format = "%d/%m/%Y")) ## transforms Date field to... |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://www.rstudio.com/shiny/
#
text<-div(HTML("Welcome to my course project.<br><br>",
"This application aims to predict the value of a house from the inputted d... | /UI.R | no_license | luisotavio88/Data-Products---Project | R | false | false | 1,906 | r |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://www.rstudio.com/shiny/
#
text<-div(HTML("Welcome to my course project.<br><br>",
"This application aims to predict the value of a house from the inputted d... |
\name{ex12.03}
\alias{ex12.03}
\docType{data}
\title{data from exercise 12.3}
\description{
The \code{ex12.03} data frame has 20 rows and 2 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{x}{
a numeric vector
}
\item{y}{
a numeric vector
}
}
}
\so... | /man/ex12.03.Rd | no_license | dmbates/Devore6 | R | false | false | 481 | rd | \name{ex12.03}
\alias{ex12.03}
\docType{data}
\title{data from exercise 12.3}
\description{
The \code{ex12.03} data frame has 20 rows and 2 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{x}{
a numeric vector
}
\item{y}{
a numeric vector
}
}
}
\so... |
library("dplyr")
get_summary_info <- function(arrests_df) {
return(c(
#Mean Home Score
arrests_df %>% summarize(mean_home_score = mean(home_score)) %>% pull(mean_home_score),
#Mean Away Score
arrests_df %>% summarize(mean_away_score = mean(away_score)) %>% pull(mean_away_score),
#Mean difference ... | /scripts/summary.R | permissive | Ryan2k/NFL-Statistics-Project-in-R | R | false | false | 655 | r | library("dplyr")
get_summary_info <- function(arrests_df) {
return(c(
#Mean Home Score
arrests_df %>% summarize(mean_home_score = mean(home_score)) %>% pull(mean_home_score),
#Mean Away Score
arrests_df %>% summarize(mean_away_score = mean(away_score)) %>% pull(mean_away_score),
#Mean difference ... |
#' NWOS Response Rate
#'
#' This function calculates response rates for the NWOS.
#' @usage nwos_response_rate(stratum, point.count, response)
#' @param stratum vector indicating inclusion (1) and exclusion (0) in the stratum of interest.
#' @param point.count vector of the number of sample points associated with each ... | /R/nwos_response_rate.R | no_license | bbutler01/nwos | R | false | false | 1,517 | r | #' NWOS Response Rate
#'
#' This function calculates response rates for the NWOS.
#' @usage nwos_response_rate(stratum, point.count, response)
#' @param stratum vector indicating inclusion (1) and exclusion (0) in the stratum of interest.
#' @param point.count vector of the number of sample points associated with each ... |
=begin
=アカウントの作成
==アカウントの作成
アカウントの作成方法は、POP3アカウントの((<アカウントの作成|URL:CreatePop3Account.html>))とほぼ同じです。
[アカウントの作成]ダイアログでは、[クラス]に「news」を選択し、[受信プロトコル]と[送信プロトコル]に「NNTP」を選択します。
((<[アカウントの作成]ダイアログ|"IMG:images/TutorialNntpCreateAccountDialog.png">))
==アカウントの設定
まずは、[一般]タブです。
((<[一般]タブ|"IMG:images/TutorialNntpG... | /docs/CreateNntpAccount.rd | permissive | snakamura/q3 | R | false | false | 2,632 | rd | =begin
=アカウントの作成
==アカウントの作成
アカウントの作成方法は、POP3アカウントの((<アカウントの作成|URL:CreatePop3Account.html>))とほぼ同じです。
[アカウントの作成]ダイアログでは、[クラス]に「news」を選択し、[受信プロトコル]と[送信プロトコル]に「NNTP」を選択します。
((<[アカウントの作成]ダイアログ|"IMG:images/TutorialNntpCreateAccountDialog.png">))
==アカウントの設定
まずは、[一般]タブです。
((<[一般]タブ|"IMG:images/TutorialNntpG... |
# UI ----------------------------------------------------------------------
ui <- fluidPage(
navbarPage("Autotuner",
tabPanel("Load Data",
loadDataUI("load")
),
tabPanel("Find Peaks",
signalProcessingUI("signal")
... | /..Rcheck/Autotuner/application/app.R | permissive | bouranij/Autotuner | R | false | false | 1,248 | r | # UI ----------------------------------------------------------------------
ui <- fluidPage(
navbarPage("Autotuner",
tabPanel("Load Data",
loadDataUI("load")
),
tabPanel("Find Peaks",
signalProcessingUI("signal")
... |
my_dfm %>%
dfm_trim(min_termfreq = 10, verbose = FALSE) %>%
textplot_wordcloud(my_dfm, min_count = 20,
color = c('black', 'pink', 'green', 'purple', 'orange', 'blue'))
kwic(my_corpus, "romans", window = 8)
kwic(my_corpus, "rome", window = 8)
classics_words %>% count(word) %>%
ggplot(ae... | /final_pieces.R | no_license | kstinso/cli02_final | R | false | false | 1,373 | r |
my_dfm %>%
dfm_trim(min_termfreq = 10, verbose = FALSE) %>%
textplot_wordcloud(my_dfm, min_count = 20,
color = c('black', 'pink', 'green', 'purple', 'orange', 'blue'))
kwic(my_corpus, "romans", window = 8)
kwic(my_corpus, "rome", window = 8)
classics_words %>% count(word) %>%
ggplot(ae... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mutational_burden.R
\name{generate_report_data_tmb}
\alias{generate_report_data_tmb}
\title{Function that tiered variant sets for SNVs/InDels}
\usage{
generate_report_data_tmb(sample_calls, pcgr_data, sample_name, pcgr_config)
}
\arguments{
\... | /pcgrr/man/generate_report_data_tmb.Rd | permissive | sigven/pcgr | R | false | true | 679 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mutational_burden.R
\name{generate_report_data_tmb}
\alias{generate_report_data_tmb}
\title{Function that tiered variant sets for SNVs/InDels}
\usage{
generate_report_data_tmb(sample_calls, pcgr_data, sample_name, pcgr_config)
}
\arguments{
\... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
######GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####
######G... | /AguaLibre/app.R | no_license | MickeyGitHub/Semester-Project | R | false | false | 15,267 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
######GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####GLOBAL####
######G... |
frow_c <- fluidRow(
box(
title = "Purchase amount by Males and Females"
,status = "primary"
,solidHeader = TRUE,background = 'purple'
,collapsible = TRUE
,plotOutput("pie_1")
),
box(
title = "Purchase amount by Age intervals"
,status = "primary"
,solidHeader = TRUE,bac... | /Demographic Insights.R | no_license | Harshit1694/Black-Friday-Sales-Shinydashboard | R | false | false | 5,405 | r | frow_c <- fluidRow(
box(
title = "Purchase amount by Males and Females"
,status = "primary"
,solidHeader = TRUE,background = 'purple'
,collapsible = TRUE
,plotOutput("pie_1")
),
box(
title = "Purchase amount by Age intervals"
,status = "primary"
,solidHeader = TRUE,bac... |
Renv = new.env(parent = globalenv())
Renv$var1 = 1:4
Renv$var2 = c(1:3, 100, 1000)
FLenv = as.FL(Renv)
test_that("Check for weighted mean function",{
result = eval_expect_equal({
test1 = median(var1)
test2 = median(var2)
},Renv,FLenv)
##print(re... | /tests/testsuite/test_median.R | no_license | gkappler/AdapteR | R | false | false | 334 | r | Renv = new.env(parent = globalenv())
Renv$var1 = 1:4
Renv$var2 = c(1:3, 100, 1000)
FLenv = as.FL(Renv)
test_that("Check for weighted mean function",{
result = eval_expect_equal({
test1 = median(var1)
test2 = median(var2)
},Renv,FLenv)
##print(re... |
###################################
## Trendy Results: GO Enrichment ##
###################################
WorkDir <- "~/Documents/"
###############
## Libraries ##
###############
suppressMessages(library(topGO))
suppressMessages(library(org.Hs.eg.db))
##########
## Data ##
##########
setwd(WorkDir)
load("Preproc... | /Trendy/goEnrichment.R | permissive | JBrownBiostat/ChimericDevelopment | R | false | false | 4,938 | r | ###################################
## Trendy Results: GO Enrichment ##
###################################
WorkDir <- "~/Documents/"
###############
## Libraries ##
###############
suppressMessages(library(topGO))
suppressMessages(library(org.Hs.eg.db))
##########
## Data ##
##########
setwd(WorkDir)
load("Preproc... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/mergeTypes.R
\name{mergeTypes}
\alias{mergeTypes}
\title{Merge Typed Region Tables}
\usage{
mergeTypes(master)
}
\arguments{
\item{master}{An unsorted dataframe of CDS and UTR elements before merging}
}
\value{
master A sorted datafra... | /man/mergeTypes.Rd | permissive | hjanime/GenVisR | R | false | false | 422 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/mergeTypes.R
\name{mergeTypes}
\alias{mergeTypes}
\title{Merge Typed Region Tables}
\usage{
mergeTypes(master)
}
\arguments{
\item{master}{An unsorted dataframe of CDS and UTR elements before merging}
}
\value{
master A sorted datafra... |
#visulize STPs
# fix Cannot triangulate polygon
#' @title STP_plot
#' @description This function visualizes STPs in 3D. It can be used to plot multiple \link{STP_Track}s in interactive 3D plot.
#' @param STP_track A \link{STP_Track} .
#' @param time_interval the time interval in minutes.Determines the amount of PPAs th... | /R/STP_plot.R | permissive | markvregel/STPtrajectories | R | false | false | 9,512 | r | #visulize STPs
# fix Cannot triangulate polygon
#' @title STP_plot
#' @description This function visualizes STPs in 3D. It can be used to plot multiple \link{STP_Track}s in interactive 3D plot.
#' @param STP_track A \link{STP_Track} .
#' @param time_interval the time interval in minutes.Determines the amount of PPAs th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fsd.plot.covariance.R
\name{fsd.plot.covariance}
\alias{fsd.plot.covariance}
\title{Plot the autocovariance operator of functional spatial data}
\usage{
fsd.plot.covariance(
X,
basisobj = NULL,
q = 0,
gridsize = NULL,
set.dims = NUL... | /man/fsd.plot.covariance.Rd | no_license | kuenzer/fsd | R | false | true | 1,401 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fsd.plot.covariance.R
\name{fsd.plot.covariance}
\alias{fsd.plot.covariance}
\title{Plot the autocovariance operator of functional spatial data}
\usage{
fsd.plot.covariance(
X,
basisobj = NULL,
q = 0,
gridsize = NULL,
set.dims = NUL... |
# Read in the Household Power Consumption data from file
hpc <- read.table(file = "household_power_consumption.txt", sep = ";", header = 1, stringsAsFactors = FALSE)
# Format Date column as date and subset for specific dates
hpc$Date <- as.Date(hpc$Date , "%d/%m/%Y")
hpc <- subset(hpc, Date == "2007-02-01" | Date == "... | /plot4.R | no_license | ap84gray/ExData_Plotting1 | R | false | false | 1,390 | r | # Read in the Household Power Consumption data from file
hpc <- read.table(file = "household_power_consumption.txt", sep = ";", header = 1, stringsAsFactors = FALSE)
# Format Date column as date and subset for specific dates
hpc$Date <- as.Date(hpc$Date , "%d/%m/%Y")
hpc <- subset(hpc, Date == "2007-02-01" | Date == "... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quantiles.R
\name{quant}
\alias{quant}
\alias{quant.evmm}
\title{Estimated Quantiles}
\usage{
quant(x, ...)
\method{quant}{evmm}(x, values = NULL, cred = 0.95, ...)
}
\arguments{
\item{x}{the output of a model estimated with \code{extrememix... | /man/quant.Rd | no_license | manueleleonelli/extrememix | R | false | true | 1,750 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quantiles.R
\name{quant}
\alias{quant}
\alias{quant.evmm}
\title{Estimated Quantiles}
\usage{
quant(x, ...)
\method{quant}{evmm}(x, values = NULL, cred = 0.95, ...)
}
\arguments{
\item{x}{the output of a model estimated with \code{extrememix... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pubmed_table.R
\name{pubmed_table}
\alias{pubmed_table}
\title{Parse article metadata}
\usage{
pubmed_table(nodes, etal = FALSE, iso = FALSE)
}
\arguments{
\item{nodes}{article node set}
\item{etal}{shorten author string, default false}
\it... | /man/pubmed_table.Rd | no_license | cstubben/tidypubmed | R | false | true | 496 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pubmed_table.R
\name{pubmed_table}
\alias{pubmed_table}
\title{Parse article metadata}
\usage{
pubmed_table(nodes, etal = FALSE, iso = FALSE)
}
\arguments{
\item{nodes}{article node set}
\item{etal}{shorten author string, default false}
\it... |
#################################
#################################
##### #####
##### A.I. Sports #####
##### #####
##### NHL: Blog #####
##### #####
#################################
#################################
##... | /NHL Blog.R | permissive | papagorgio23/NHL-Playoffs | R | false | false | 13,188 | r |
#################################
#################################
##### #####
##### A.I. Sports #####
##### #####
##### NHL: Blog #####
##### #####
#################################
#################################
##... |
#Start----
{
library(readr)
setwd(home)
ParityData <- read_csv("ParityData.csv")
names(ParityData)
ParityData<-ParityData[,c(1,2,5)]
#Loop start----
for (lse in 1:7) { # 7 scoring events
print(c("Locomotion Scoring Event",lse))
setwd(home)
setwd(as.character(Meta$Folder[[lse]]))
setwd('./24Hour... | /2 Data loading and aggregation.R | no_license | nialloleary/Behavior-Lameness-Article | R | false | false | 4,641 | r | #Start----
{
library(readr)
setwd(home)
ParityData <- read_csv("ParityData.csv")
names(ParityData)
ParityData<-ParityData[,c(1,2,5)]
#Loop start----
for (lse in 1:7) { # 7 scoring events
print(c("Locomotion Scoring Event",lse))
setwd(home)
setwd(as.character(Meta$Folder[[lse]]))
setwd('./24Hour... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/remove_nonstandard_vcf_cols.R
\name{remove_nonstandard_vcf_cols}
\alias{remove_nonstandard_vcf_cols}
\title{Remove non-standard VCF columns}
\usage{
remove_nonstandard_vcf_cols(sample_id, sumstats_file, keep_extra_cols = FALSE)
}
\arguments{
... | /man/remove_nonstandard_vcf_cols.Rd | no_license | daklab/MungeSumstats | R | false | true | 501 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/remove_nonstandard_vcf_cols.R
\name{remove_nonstandard_vcf_cols}
\alias{remove_nonstandard_vcf_cols}
\title{Remove non-standard VCF columns}
\usage{
remove_nonstandard_vcf_cols(sample_id, sumstats_file, keep_extra_cols = FALSE)
}
\arguments{
... |
\name{rewritetuple}
\alias{rewritetuple}
\title{Rewrite result from SeqFeatRs assoctuple}
\description{Function to reqrite output from SeqFeatRs assoctuple into an usable form for SeqFeatRs tartan.}
\usage{rewritetuple(path_to_file_assoctuple_csv_result = NULL, save_name_csv,
first_position, second_position, value_p... | /man/rewritetuple.Rd | no_license | cran/SeqFeatR | R | false | false | 1,489 | rd | \name{rewritetuple}
\alias{rewritetuple}
\title{Rewrite result from SeqFeatRs assoctuple}
\description{Function to reqrite output from SeqFeatRs assoctuple into an usable form for SeqFeatRs tartan.}
\usage{rewritetuple(path_to_file_assoctuple_csv_result = NULL, save_name_csv,
first_position, second_position, value_p... |
########################
###
### Leonard Mada
### [the one and only]
###
### Polynomial Systems: S4
### Diff Hetero-Symmetric
###
### draft v.0.1b-special
### Hetero-Symmetric: Diff-Ht
# x1*x2 - x2*x3 + x3*x4 - x4*x1 = R2
####################
### Helper Functions
source("Polynomials.Helper.R")
... | /Math/Poly.System.S4.HtDiff.R | no_license | discoleo/R | R | false | false | 4,272 | r | ########################
###
### Leonard Mada
### [the one and only]
###
### Polynomial Systems: S4
### Diff Hetero-Symmetric
###
### draft v.0.1b-special
### Hetero-Symmetric: Diff-Ht
# x1*x2 - x2*x3 + x3*x4 - x4*x1 = R2
####################
### Helper Functions
source("Polynomials.Helper.R")
... |
library(data.table)
library(TTR)
hist <- unique(database)
hist <- database[,.(Ticker, Date, PX_LAST)]
setkey(hist, Ticker, Date)
hist[,PX_LAST:= ROC(PX_LAST), by= Ticker]
hist[is.na(PX_LAST), PX_LAST:=0]
h2 <- dcast(hist, Date ~Ticker)
library(fAssets)
hclust <- assetsSelect(h2[,2:50], "hclust")
plot(hclust)
... | /R/Source/test.R | no_license | aagret/DharmaResearchSelection | R | false | false | 855 | r |
library(data.table)
library(TTR)
hist <- unique(database)
hist <- database[,.(Ticker, Date, PX_LAST)]
setkey(hist, Ticker, Date)
hist[,PX_LAST:= ROC(PX_LAST), by= Ticker]
hist[is.na(PX_LAST), PX_LAST:=0]
h2 <- dcast(hist, Date ~Ticker)
library(fAssets)
hclust <- assetsSelect(h2[,2:50], "hclust")
plot(hclust)
... |
library(XML)
library(httr)
library(rvest)
library(magrittr)
library(data.table)
library(RPostgreSQL)
setwd("~/Dropbox/practice/crawler/RoadConstructionTPC")
res = GET("http://data.taipei/opendata/datalist/apiAccess?scope=resourceAquire&rid=201d8ae8-dffc-4d17-ae1f-e58d8a95b162")
df = res %>% content(.,as="text", enco... | /main.R | no_license | MiaoChien/RoadConstructionTPC | R | false | false | 868 | r | library(XML)
library(httr)
library(rvest)
library(magrittr)
library(data.table)
library(RPostgreSQL)
setwd("~/Dropbox/practice/crawler/RoadConstructionTPC")
res = GET("http://data.taipei/opendata/datalist/apiAccess?scope=resourceAquire&rid=201d8ae8-dffc-4d17-ae1f-e58d8a95b162")
df = res %>% content(.,as="text", enco... |
/DJ-HIGH/2.R | no_license | walden101/djclass2015 | R | false | false | 2,251 | r | ||
\name{predict.multistep}
\alias{predict.multistep}
\alias{*.multistep}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Multidimensional step function evaluation}
\description{
Evaluates a \code{multistep} type function at a given value
}
\usage{
\method{predict}{multistep}(object, newx, \dots)
\... | /man/predict.multistep.Rd | no_license | yiqiao-yin/liso | R | false | false | 1,557 | rd | \name{predict.multistep}
\alias{predict.multistep}
\alias{*.multistep}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Multidimensional step function evaluation}
\description{
Evaluates a \code{multistep} type function at a given value
}
\usage{
\method{predict}{multistep}(object, newx, \dots)
\... |
library(skynet)
context("Test Convert Raw")
test_that("Convert Raw", {
temp <- tempdir()
convertRaw(skynet_example("Origin_and_Destination_Survey_DB1BCoupon_2001_1.csv"),
skynet_example("Origin_and_Destination_Survey_DB1BTicket_2001_1.csv"),
path = temp)
expect_true(file.exists(tempdir... | /tests/testthat/test_convertRaw.R | permissive | guoyu07/skynet-4 | R | false | false | 328 | r | library(skynet)
context("Test Convert Raw")
test_that("Convert Raw", {
temp <- tempdir()
convertRaw(skynet_example("Origin_and_Destination_Survey_DB1BCoupon_2001_1.csv"),
skynet_example("Origin_and_Destination_Survey_DB1BTicket_2001_1.csv"),
path = temp)
expect_true(file.exists(tempdir... |
date()
data(armd, package = "nlmeU")
library(nlme)
lm3.form <- formula(visual ~ visual0 + time + treat.f)
fm16.5ml <- lme(lm3.form, random = list(subject = pdDiag(~time)) ,
weights = varPower(form = ~ time), data = armd,
method="ML")
detach(package:nlme)
library(nlmeU)
simY <- simulateY(... | /tests/simY.R | no_license | cran/nlmeU | R | false | false | 423 | r | date()
data(armd, package = "nlmeU")
library(nlme)
lm3.form <- formula(visual ~ visual0 + time + treat.f)
fm16.5ml <- lme(lm3.form, random = list(subject = pdDiag(~time)) ,
weights = varPower(form = ~ time), data = armd,
method="ML")
detach(package:nlme)
library(nlmeU)
simY <- simulateY(... |
`maf` <- function(x) {
# compute the minor allele frequency for a vector or for each row of a matrix.
if(is.vector(x)) {
p <- (x[1]+0.5*x[2])/sum(x)
y <- min(p,1-p)
} else
if(is.matrix(x)) {
p <- (x[,1]+0.5*x[,2])/apply(x,1,sum)
y <- pmin(p,1-p)
}
return(y)
}
| /HardyWeinberg/R/maf.R | no_license | akhikolla/InformationHouse | R | false | false | 298 | r | `maf` <- function(x) {
# compute the minor allele frequency for a vector or for each row of a matrix.
if(is.vector(x)) {
p <- (x[1]+0.5*x[2])/sum(x)
y <- min(p,1-p)
} else
if(is.matrix(x)) {
p <- (x[,1]+0.5*x[,2])/apply(x,1,sum)
y <- pmin(p,1-p)
}
return(y)
}
|
#' @title Add Publication Date
#' @description Adds publication date according to EML standards.
#' @param parent_element A list representing the EML project or dataset.
#' @param date The publication date. If left null, it will be assigned the current
#' date. This can be overriden by putting in a specific date.
#'... | /R/publication-date-element.R | permissive | ErinCain/EDIutils | R | false | false | 790 | r | #' @title Add Publication Date
#' @description Adds publication date according to EML standards.
#' @param parent_element A list representing the EML project or dataset.
#' @param date The publication date. If left null, it will be assigned the current
#' date. This can be overriden by putting in a specific date.
#'... |
#' Posts status update to user's Twitter account
#'
#' @param status Character, tweet status. Must be 140 characters or less.
#' @param media File path to image or video media to be included in tweet.
#' @param token OAuth token. By default \code{token = NULL} fetches a
#' non-exhausted token from an environment vari... | /R/post.R | no_license | schnee/rtweet | R | false | false | 22,242 | r | #' Posts status update to user's Twitter account
#'
#' @param status Character, tweet status. Must be 140 characters or less.
#' @param media File path to image or video media to be included in tweet.
#' @param token OAuth token. By default \code{token = NULL} fetches a
#' non-exhausted token from an environment vari... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HolisticsR.R
\docType{package}
\name{Holistics-package}
\alias{Holistics}
\alias{Holistics-package}
\title{Holistics-R: R package to interact with Holistics API}
\description{
This package aims to help users integrate Holistics reports into t... | /man/Holistics-package.Rd | permissive | holistics/holistics-r | R | false | true | 464 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HolisticsR.R
\docType{package}
\name{Holistics-package}
\alias{Holistics}
\alias{Holistics-package}
\title{Holistics-R: R package to interact with Holistics API}
\description{
This package aims to help users integrate Holistics reports into t... |
#' Launch Shiny App for CellTyPETool
#'
#' A function that launches the Shiny app for CellTyPETool
#' The purpose of this app is
#'
#' @return No return value but open up a Shiny page.
#'
#' @examples
#' \dontrun{
#'
#' CellTyPETool::runCellTyPETool()
#' }
#'
#' @references
#' Grolemund, G. (2015). Learn Shiny - Video ... | /R/runCellTyPETool.R | permissive | meconsens/CellTyPETool | R | false | false | 616 | r | #' Launch Shiny App for CellTyPETool
#'
#' A function that launches the Shiny app for CellTyPETool
#' The purpose of this app is
#'
#' @return No return value but open up a Shiny page.
#'
#' @examples
#' \dontrun{
#'
#' CellTyPETool::runCellTyPETool()
#' }
#'
#' @references
#' Grolemund, G. (2015). Learn Shiny - Video ... |
# Graph of a more than 50,000 classified data
mydataset <- read.csv(file.choose())
ggplot(data = mydataset[mydataset$carat<2.5,], aes(x=carat, y=price, colour=clarity)) +
geom_point(alpha=0.1) +
geom_smooth()
| /Mispriced-Diamonds.R | no_license | shahriya07/Mispriced-Diamonds | R | false | false | 217 | r | # Graph of a more than 50,000 classified data
mydataset <- read.csv(file.choose())
ggplot(data = mydataset[mydataset$carat<2.5,], aes(x=carat, y=price, colour=clarity)) +
geom_point(alpha=0.1) +
geom_smooth()
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genome_plotter.R
\name{genome.plotter.region}
\alias{genome.plotter.region}
\title{Plot user-specified windows of haplotype-based and snp-based genome scans}
\usage{
genome.plotter.region(
haplotype.association = NULL,
snp.association = N... | /man/genome.plotter.region.Rd | no_license | gkeele/miqtl | R | false | true | 3,835 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genome_plotter.R
\name{genome.plotter.region}
\alias{genome.plotter.region}
\title{Plot user-specified windows of haplotype-based and snp-based genome scans}
\usage{
genome.plotter.region(
haplotype.association = NULL,
snp.association = N... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_type_helpers.R
\name{list_non_parents}
\alias{list_non_parents}
\title{Returns a list with the nodes that are not directly pointing into a node}
\usage{
list_non_parents(model, node)
}
\arguments{
\item{model}{A \code{causal_model}. A mod... | /man/list_non_parents.Rd | no_license | yadmasu1/CausalQueries | R | false | true | 624 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_type_helpers.R
\name{list_non_parents}
\alias{list_non_parents}
\title{Returns a list with the nodes that are not directly pointing into a node}
\usage{
list_non_parents(model, node)
}
\arguments{
\item{model}{A \code{causal_model}. A mod... |
#'A MIGSA results object obtained from breast cancer data.
#'
#'A MIGSA results object obtained using the datasets:
#'\itemize{
#'\item mainz (microarray).
#'\item nki (microarray).
#'\item tcga (microarray).
#'\item tcga (RNAseq).
#'\item transbig (microarray).
#'\item unt (microarray).
#'\item upp (microarray).
#'\it... | /R/data-bcMigsaResAsList.R | no_license | jcrodriguez1989/MIGSAdata | R | false | false | 1,134 | r | #'A MIGSA results object obtained from breast cancer data.
#'
#'A MIGSA results object obtained using the datasets:
#'\itemize{
#'\item mainz (microarray).
#'\item nki (microarray).
#'\item tcga (microarray).
#'\item tcga (RNAseq).
#'\item transbig (microarray).
#'\item unt (microarray).
#'\item upp (microarray).
#'\it... |
library(MASS)
source("casm_helper.R")
source("ising_helpers.R")
require(Rcpp)
library(reshape2)
library(tidyverse)
library(ggplot2)
library(rstan)
library(stats)
library(parallel)
library(gtools)
library(GGally)
path = "/home/bbales2/casm/invent"
ecis = getECIs(path)
nonZero = c(3, 4, 5, 6, 7, 14, 15, 16, 17, 18)
ke... | /casm_invent_hessian.R | no_license | bbbales2/ising | R | false | false | 5,100 | r | library(MASS)
source("casm_helper.R")
source("ising_helpers.R")
require(Rcpp)
library(reshape2)
library(tidyverse)
library(ggplot2)
library(rstan)
library(stats)
library(parallel)
library(gtools)
library(GGally)
path = "/home/bbales2/casm/invent"
ecis = getECIs(path)
nonZero = c(3, 4, 5, 6, 7, 14, 15, 16, 17, 18)
ke... |
### Build the best lesion model possible
### Try XG-Boost, RF, Logit (GLM), C5.0, SVM
### Find the best based on Jenna Wiens suggestions on test and training
## Marc Sze
#Load needed libraries
source('code/functions.R')
loadLibs(c("dplyr", "caret","scales", "doMC"))
load("exploratory/srn_RF_model_setup.RDa... | /code/srn/srn_run_59_RF.R | permissive | SchlossLab/Sze_FollowUps_Microbiome_2017 | R | false | false | 1,758 | r | ### Build the best lesion model possible
### Try XG-Boost, RF, Logit (GLM), C5.0, SVM
### Find the best based on Jenna Wiens suggestions on test and training
## Marc Sze
#Load needed libraries
source('code/functions.R')
loadLibs(c("dplyr", "caret","scales", "doMC"))
load("exploratory/srn_RF_model_setup.RDa... |
airvars <- downloadTOA5(c("FACE","airvars"), maxnfiles=200)
library(plantecophys)
airvars <- within(airvars, {
Tair <- (AirTC_1_Avg + AirTC_2_Avg)/2
RH <- (RH_1_Avg + RH_2_Avg)/2
VPD <- RHtoVPD(RH,Tair)
Date <- as.Date(DateTime)
})
clim <- summarize(group_by(airvars, Date),
Tmax = ma... | /clean Scripts/climateplot.R | no_license | npp97-field/EucPVE | R | false | false | 2,136 | r |
airvars <- downloadTOA5(c("FACE","airvars"), maxnfiles=200)
library(plantecophys)
airvars <- within(airvars, {
Tair <- (AirTC_1_Avg + AirTC_2_Avg)/2
RH <- (RH_1_Avg + RH_2_Avg)/2
VPD <- RHtoVPD(RH,Tair)
Date <- as.Date(DateTime)
})
clim <- summarize(group_by(airvars, Date),
Tmax = ma... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convert.R
\name{array_reorder}
\alias{array_reorder}
\title{Reorder an array}
\usage{
array_reorder(x, dims, reorder_dim, new_order, item_size)
}
\arguments{
\item{x}{The array; doesn't have to have a dim attribute; is just assumed to be a ve... | /man/array_reorder.Rd | permissive | hhoeflin/hdf5r | R | false | true | 870 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convert.R
\name{array_reorder}
\alias{array_reorder}
\title{Reorder an array}
\usage{
array_reorder(x, dims, reorder_dim, new_order, item_size)
}
\arguments{
\item{x}{The array; doesn't have to have a dim attribute; is just assumed to be a ve... |
\name{simNHPc}
\alias{simNHPc}
\alias{buscar}
\title{Generating points in a Poisson process}
\description{This function generates the occurrence points
in a homogenous or nonhomogeneous Poisson process (NHPP) with a given intensity \eqn{\lambda(t)},
in a continuous period of time (0, T).
It calls... | /man/simNHPc.Rd | no_license | cran/IndTestPP | R | false | false | 2,976 | rd | \name{simNHPc}
\alias{simNHPc}
\alias{buscar}
\title{Generating points in a Poisson process}
\description{This function generates the occurrence points
in a homogenous or nonhomogeneous Poisson process (NHPP) with a given intensity \eqn{\lambda(t)},
in a continuous period of time (0, T).
It calls... |
testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = c(-15663175L, -2500135L, -640034343L, -642205512L, -1195853640L, -1195853640L, -1195853824L, 4351L, 637534208L, 0L, 218159615L, -16777216L, 0L, 2162688L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... | /dexterMST/inst/testfiles/mutate_booklet_score/libFuzzer_mutate_booklet_score/mutate_booklet_score_valgrind_files/1612726540-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 1,115 | r | testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = c(-15663175L, -2500135L, -640034343L, -642205512L, -1195853640L, -1195853640L, -1195853824L, 4351L, 637534208L, 0L, 218159615L, -16777216L, 0L, 2162688L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... |
#read in all data
fulldata <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
#change date to the same format as in assignment statement
fulldata$Date <- as.Date(as.character(fulldata$Date), format = "%d/%m/%Y")
#turn on .png graphic device
png(filename = "plot1.png")
#subset data to... | /plot1.R | no_license | acpk93/dscoursera | R | false | false | 824 | r | #read in all data
fulldata <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
#change date to the same format as in assignment statement
fulldata$Date <- as.Date(as.character(fulldata$Date), format = "%d/%m/%Y")
#turn on .png graphic device
png(filename = "plot1.png")
#subset data to... |
/HomeWork1/NFL/NFL.R | no_license | double-flower/Data_Mining | R | false | false | 6,299 | r | ||
## ----, setup, include=FALSE, echo=FALSE----------------------------------
library(intergraph)
library(knitr)
opts_knit$set( upload.fun = image_uri )
opts_chunk$set( highlight=TRUE )
options(markdown.HTML.options= unique(c(getOption("markdown.HTML.options"), "toc")))
set.seed(123)
## ----,packages--------------------... | /intergraph/inst/doc/howto.R | no_license | ingted/R-Examples | R | false | false | 3,432 | r | ## ----, setup, include=FALSE, echo=FALSE----------------------------------
library(intergraph)
library(knitr)
opts_knit$set( upload.fun = image_uri )
opts_chunk$set( highlight=TRUE )
options(markdown.HTML.options= unique(c(getOption("markdown.HTML.options"), "toc")))
set.seed(123)
## ----,packages--------------------... |
# Carregando os pacotes ---------------------------------------------------
library(raster)
library(dismo)
# Carregando as variaveis abioticas do presente
lista_presente <- list.files("dados/abioticos/selecionados/futuro/", pattern = "tif$", full.names = TRUE)
lista_presente
# Importando as variaveis abioticas do pr... | /scripts/06_modelagem_futuro.R | no_license | diogosbr/UEFS_PPG_Bot | R | false | false | 3,409 | r | # Carregando os pacotes ---------------------------------------------------
library(raster)
library(dismo)
# Carregando as variaveis abioticas do presente
lista_presente <- list.files("dados/abioticos/selecionados/futuro/", pattern = "tif$", full.names = TRUE)
lista_presente
# Importando as variaveis abioticas do pr... |
#'Make heatmap of top variable genes and return clusters
#'@param sco input variable gene matrix
#'@export makeheatmap
makeheatmap <- function(sco){
sco@heatmap <- list(heatmap=pheatmap(sco@data[sco@var.genes,],scale="row")) #this is another comments
sco
}
| /R/makeheatmap.R | no_license | MarcIsak/MyFirstPackage | R | false | false | 261 | r | #'Make heatmap of top variable genes and return clusters
#'@param sco input variable gene matrix
#'@export makeheatmap
makeheatmap <- function(sco){
sco@heatmap <- list(heatmap=pheatmap(sco@data[sco@var.genes,],scale="row")) #this is another comments
sco
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.servicecatalog_operations.R
\name{search_products}
\alias{search_products}
\title{Gets information about the products to which the caller has access}
\usage{
search_products(AcceptLanguage = NULL, Filters = NULL,
PageSize = NULL, SortB... | /service/paws.servicecatalog/man/search_products.Rd | permissive | CR-Mercado/paws | R | false | true | 1,390 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.servicecatalog_operations.R
\name{search_products}
\alias{search_products}
\title{Gets information about the products to which the caller has access}
\usage{
search_products(AcceptLanguage = NULL, Filters = NULL,
PageSize = NULL, SortB... |
#' Generate Matrix (movie) code rain in the RStudio viewer
#'
#' If you want to make it rain Matrix code, make_it_rain()
#'
#' @examples
#'
#' # it's pretty easy to make it rain in the RStudio viewer
#' make_it_rain()
#'
#' @export
make_it_rain <- function() {
tempDir <- tempfile()
dir.create(tempDir)
htmlFile <... | /R/make_it_rain.R | permissive | peterbarwis/makeitrain | R | false | false | 2,492 | r | #' Generate Matrix (movie) code rain in the RStudio viewer
#'
#' If you want to make it rain Matrix code, make_it_rain()
#'
#' @examples
#'
#' # it's pretty easy to make it rain in the RStudio viewer
#' make_it_rain()
#'
#' @export
make_it_rain <- function() {
tempDir <- tempfile()
dir.create(tempDir)
htmlFile <... |
#source("code/server/test_map_data_server.R", local = TRUE)
###set parameters(setView, zoom, etc) across all metric base maps
###function called in test_map_data_server
map_output_func <-function(gage_station_name,gage_station_id){
leaflet(options = leafletOptions(zoomControl = FALSE)) %>%
addTiles() %>%
set... | /code/functions/map_func.R | no_license | ShyGuyPy/DIME_CEDR_pull | R | false | false | 3,077 | r | #source("code/server/test_map_data_server.R", local = TRUE)
###set parameters(setView, zoom, etc) across all metric base maps
###function called in test_map_data_server
map_output_func <-function(gage_station_name,gage_station_id){
leaflet(options = leafletOptions(zoomControl = FALSE)) %>%
addTiles() %>%
set... |
#Chapter 1: Simple Density-Independent Growth
#1.1 Geometric growth
#(a)
t <- 1996:2005
N <- c(150, 100, 125, 200, 225, 150, 100, 175, 100, 150)
plot(t, N, type="l")
#(b)
R <- N[2 : (length(N))] / N[1 : (length(N) - 1)]
plot(t[2 : length(t)], R, type="l", xlim=c(1996, 2005))
#(c)
(lamA <- mean(R)) #1.088
(lamB <- pr... | /RLearning/PrimerEcology/Ch 1 Exercises.R | no_license | damiansp/R | R | false | false | 1,913 | r | #Chapter 1: Simple Density-Independent Growth
#1.1 Geometric growth
#(a)
t <- 1996:2005
N <- c(150, 100, 125, 200, 225, 150, 100, 175, 100, 150)
plot(t, N, type="l")
#(b)
R <- N[2 : (length(N))] / N[1 : (length(N) - 1)]
plot(t[2 : length(t)], R, type="l", xlim=c(1996, 2005))
#(c)
(lamA <- mean(R)) #1.088
(lamB <- pr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smooth-pi-spectrum.R
\name{smooth_pi_spectrum}
\alias{smooth_pi_spectrum}
\alias{smooth_pi_spectrum.default}
\alias{smooth_pi_spectrum.sparse_pi_spectrum}
\title{Smooth pitch spectrum}
\usage{
smooth_pi_spectrum(x, sigma = 6.83, ...)
\method... | /man/smooth_pi_spectrum.Rd | permissive | pmcharrison/hrep | R | false | true | 2,291 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smooth-pi-spectrum.R
\name{smooth_pi_spectrum}
\alias{smooth_pi_spectrum}
\alias{smooth_pi_spectrum.default}
\alias{smooth_pi_spectrum.sparse_pi_spectrum}
\title{Smooth pitch spectrum}
\usage{
smooth_pi_spectrum(x, sigma = 6.83, ...)
\method... |
library(AppliedPredictiveModeling)
library(caret)
library(klaR)
library(MASS)
library(pROC)
library(randomForest)
set.seed(975)
simulatedTrain <- quadBoundaryFunc(500)
simulatedTest <- quadBoundaryFunc(1000)
head(simulatedTrain)
rfModel <- randomForest(class ~ X1 + X2,
data = simulatedTrain,
... | /Chapter 11.R | no_license | marioem/Appled-Predictive-Modelling | R | false | false | 3,813 | r | library(AppliedPredictiveModeling)
library(caret)
library(klaR)
library(MASS)
library(pROC)
library(randomForest)
set.seed(975)
simulatedTrain <- quadBoundaryFunc(500)
simulatedTest <- quadBoundaryFunc(1000)
head(simulatedTrain)
rfModel <- randomForest(class ~ X1 + X2,
data = simulatedTrain,
... |
##Case: Credit Card default data
#We'd like to predict customers that are likely to default
#
#Possible X variables:
# - Annual Income
# - Monthly credit card balance:
# - 0 (nothing owed)
# - positive (something owed)
# - negative (payment made over what is owed)
#
#Y variable (default) is categorical: Yes or No... | /Session 4/Session 4 - Logistic Regression.R | no_license | hcaw/Big-Data-Analytics-Using-R | R | false | false | 4,534 | r | ##Case: Credit Card default data
#We'd like to predict customers that are likely to default
#
#Possible X variables:
# - Annual Income
# - Monthly credit card balance:
# - 0 (nothing owed)
# - positive (something owed)
# - negative (payment made over what is owed)
#
#Y variable (default) is categorical: Yes or No... |
\name{ltm}
\alias{ltm}
\title{ Latent Trait Model - Latent Variable Model for Binary Data}
\description{
Fit a latent trait model under the Item Response Theory (IRT) approach.
}
\usage{
ltm(formula, constraint = NULL, IRT.param, start.val,
na.action = NULL, control = list())
}
\arguments{
\item{formula}{ a tw... | /man/ltm.Rd | no_license | gscriver/ltm | R | false | false | 10,918 | rd | \name{ltm}
\alias{ltm}
\title{ Latent Trait Model - Latent Variable Model for Binary Data}
\description{
Fit a latent trait model under the Item Response Theory (IRT) approach.
}
\usage{
ltm(formula, constraint = NULL, IRT.param, start.val,
na.action = NULL, control = list())
}
\arguments{
\item{formula}{ a tw... |
library(glmnet)
mydata = read.table("./TrainingSet/Correlation/oesophagus.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.7,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/oesophagus/oesophagus... | /Model/EN/Correlation/oesophagus/oesophagus_076.R | no_license | leon1003/QSMART | R | false | false | 372 | r | library(glmnet)
mydata = read.table("./TrainingSet/Correlation/oesophagus.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.7,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/oesophagus/oesophagus... |
\name{par2lmom}
\alias{par2lmom}
\title{Convert the Parameters of a Distribution to the L-moments}
\description{
This function acts as a frontend or dispatcher to the distribution-specific L-moments of the parameter values. This function dispatches to \code{lmomCCC} where CCC represents the three character (minimum) di... | /man/par2lmom.Rd | no_license | wasquith/lmomco | R | false | false | 1,376 | rd | \name{par2lmom}
\alias{par2lmom}
\title{Convert the Parameters of a Distribution to the L-moments}
\description{
This function acts as a frontend or dispatcher to the distribution-specific L-moments of the parameter values. This function dispatches to \code{lmomCCC} where CCC represents the three character (minimum) di... |
#Official
#Tamarix ------
library(dismo)
Species <- gbif("Tamarix")
SPUSA <- Species[Species$country=='United States',]
write.csv(SPUSA, file="Tamarix.csv")
read.csv("Tamarixspp.csv")-> cidata;
attach(cidata);
str(cidata)
require(raster)
require(rgdal)
#Rubus armeniacus --------------------
library(dismo)
Species <-... | /Official.R | no_license | maccwinter/InvasionBio | R | false | false | 10,948 | r | #Official
#Tamarix ------
library(dismo)
Species <- gbif("Tamarix")
SPUSA <- Species[Species$country=='United States',]
write.csv(SPUSA, file="Tamarix.csv")
read.csv("Tamarixspp.csv")-> cidata;
attach(cidata);
str(cidata)
require(raster)
require(rgdal)
#Rubus armeniacus --------------------
library(dismo)
Species <-... |
#' Query by Committee (committee pruning function)
#'
#' @param X the full data matrix, n x d, including all unlabeled data
#' @param y a factor vector with 2 levels and NAs for unlabeled data
#' @param index is the classification of X[index,] which was queried
#' @param committee_pred is the list of committee predicti... | /thesisAL/R/qbc_prune.R | permissive | amytian789/thesis-al | R | false | false | 1,472 | r | #' Query by Committee (committee pruning function)
#'
#' @param X the full data matrix, n x d, including all unlabeled data
#' @param y a factor vector with 2 levels and NAs for unlabeled data
#' @param index is the classification of X[index,] which was queried
#' @param committee_pred is the list of committee predicti... |
#Part a
#input necessary libraries
library(caret)
#read csv
data = read.csv("pima_indians_diabetes.txt", header = FALSE, sep = ",")
y = data[,9]
X = data[,-9]
numTrials = 10
trainScores = array(dim = numTrials)
testScores = array(dim = numTrials)
for (i in 1:numTrials) {
#divide into 80-20 train-test split.
trai... | /hw1/hw1_a.R | no_license | rhiga2/AppliedML | R | false | false | 2,165 | r | #Part a
#input necessary libraries
library(caret)
#read csv
data = read.csv("pima_indians_diabetes.txt", header = FALSE, sep = ",")
y = data[,9]
X = data[,-9]
numTrials = 10
trainScores = array(dim = numTrials)
testScores = array(dim = numTrials)
for (i in 1:numTrials) {
#divide into 80-20 train-test split.
trai... |
# script to plot outputs of a single simOutbreak replicate
# load libraries
library(igraph)
pdf('output/outbreak.pdf',width=6.5,height=8.5)
layout(matrix(1:6,3,2,byrow=T))
# incident infections
eval(parse(text=paste("
barplot(
numInfected,las=1,space=0,
xlab='Days since first recruit on base',
ylab='Daily num... | /analysis/scripts/vizOutbreak.R | no_license | confunguido/prioritizing_interventions_basic_training | R | false | false | 2,259 | r | # script to plot outputs of a single simOutbreak replicate
# load libraries
library(igraph)
pdf('output/outbreak.pdf',width=6.5,height=8.5)
layout(matrix(1:6,3,2,byrow=T))
# incident infections
eval(parse(text=paste("
barplot(
numInfected,las=1,space=0,
xlab='Days since first recruit on base',
ylab='Daily num... |
#!/usr/bin/env Rscript
# CHAP - The Channel Annotation Package
#
# Copyright (c) 2016 - 201 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and
# Stephen J. Tucker
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), ... | /scripts/heuristic/heuristic_prediction.R | permissive | channotation/chap | R | false | false | 7,783 | r | #!/usr/bin/env Rscript
# CHAP - The Channel Annotation Package
#
# Copyright (c) 2016 - 201 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and
# Stephen J. Tucker
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), ... |
#############
# Purpose #
#############
# Read in one analysis file and convert it to many parallel files for HPC
##############
# #
# Notes #
# #
##############
#########################
# #
# Outstanding actions #
# #
######################... | /5800__HPC_scripts.R | no_license | Mark-McCann/Net4Health | R | false | false | 1,559 | r | #############
# Purpose #
#############
# Read in one analysis file and convert it to many parallel files for HPC
##############
# #
# Notes #
# #
##############
#########################
# #
# Outstanding actions #
# #
######################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/firevat_report.R
\name{PrepareGeneticAlgorithmParametersTable}
\alias{PrepareGeneticAlgorithmParametersTable}
\title{PrepareGeneticAlgorithmParametersTable}
\usage{
PrepareGeneticAlgorithmParametersTable(data)
}
\arguments{
\item{data}{A list... | /man/PrepareGeneticAlgorithmParametersTable.Rd | permissive | cgab-ncc/FIREVAT | R | false | true | 458 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/firevat_report.R
\name{PrepareGeneticAlgorithmParametersTable}
\alias{PrepareGeneticAlgorithmParametersTable}
\title{PrepareGeneticAlgorithmParametersTable}
\usage{
PrepareGeneticAlgorithmParametersTable(data)
}
\arguments{
\item{data}{A list... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sec_2.R
\name{parse_for_tables}
\alias{parse_for_tables}
\title{Parse an EDGAR data frame for underlying tables}
\usage{
parse_for_tables(
all_data,
table_name_initial = "All Filings",
parse_all_filings = TRUE,
parse_complete_text_fil... | /man/parse_for_tables.Rd | permissive | CerebralMastication/fundManageR | R | false | true | 677 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sec_2.R
\name{parse_for_tables}
\alias{parse_for_tables}
\title{Parse an EDGAR data frame for underlying tables}
\usage{
parse_for_tables(
all_data,
table_name_initial = "All Filings",
parse_all_filings = TRUE,
parse_complete_text_fil... |
# loading_data_into_FLR.R - How to load data from outside R into FLR objects
# loading_data_into_FLR.R
# Copyright 2013 JRC FISHREG. Distributed under the GPL 2 or later
# Maintainer: JRC FISHREG
# $Id: $
# Created: 14/03/2013
# Modified:
#---------------------------------------------------------------
# Basics
#----... | /Sessions/02 FLObjects, loading data and EDA/02.01 Loading data into FLR/loading_data_into_FLR.R | no_license | chatoosio/stock_assessment_summer_school_Module2 | R | false | false | 5,752 | r | # loading_data_into_FLR.R - How to load data from outside R into FLR objects
# loading_data_into_FLR.R
# Copyright 2013 JRC FISHREG. Distributed under the GPL 2 or later
# Maintainer: JRC FISHREG
# $Id: $
# Created: 14/03/2013
# Modified:
#---------------------------------------------------------------
# Basics
#----... |
##################################################################
##################################################################
# Gov 2000/E-2000 Section 3
# 9-19-13
# Soledad Artiz Prillaman
##################################################################
#######################################################... | /Section3.R | no_license | ziwenzu-zz/Gov-2000-Teaching-Materials | R | false | false | 7,176 | r | ##################################################################
##################################################################
# Gov 2000/E-2000 Section 3
# 9-19-13
# Soledad Artiz Prillaman
##################################################################
#######################################################... |
#! /usr/bin/Rscript
# read data
data <- read.table('D:/cs532/a4/q3/linkedin_count', sep=",")
x <- seq(1, length(data$V1))
y <- data$V1
# get notable values
idx <- grep("Naina Sai Tipparti", data$V2)
med_val <- median(data$V1)
med_idx <- which(abs(y - med_val) == min(abs(y - med_val)))
mean_val <- mean(data$V1)
mean_i... | /assignments/assignment4/q3/plot_linkedin.R | no_license | tipparti/cs532-s16 | R | false | false | 1,066 | r | #! /usr/bin/Rscript
# read data
data <- read.table('D:/cs532/a4/q3/linkedin_count', sep=",")
x <- seq(1, length(data$V1))
y <- data$V1
# get notable values
idx <- grep("Naina Sai Tipparti", data$V2)
med_val <- median(data$V1)
med_idx <- which(abs(y - med_val) == min(abs(y - med_val)))
mean_val <- mean(data$V1)
mean_i... |
# Loading Libraries -------------------------------------------------------
# library(tidyverse)
# library(tidytuesdayR)
# library(readr)
# library(urbnmapr)
# library(plotly)
# windowsFonts(`Roboto Condensed` = windowsFont("Roboto Condensed"))
# # Loading Data ----------------------------------------------------------... | /Public_Spending_On_Children/Plot_Function.R | no_license | jakepscott/TidyTuesday2020-9-14 | R | false | false | 2,491 | r | # Loading Libraries -------------------------------------------------------
# library(tidyverse)
# library(tidytuesdayR)
# library(readr)
# library(urbnmapr)
# library(plotly)
# windowsFonts(`Roboto Condensed` = windowsFont("Roboto Condensed"))
# # Loading Data ----------------------------------------------------------... |
listed_expiries_3m<-list(
quote(month %in% c("March","June","September","December")),
quote(wday=="Friday"),
quote(wday_count==3)
)
listed_expiries_6m_a<-list(
quote(month %in% c("June","December")),
quote(wday=="Friday"),
quote(wday_count==3)
)
listed_expiries_6m_b<-list(
... | /test/test_rle.R | no_license | satrapade/multiasset | R | false | false | 822 | r |
listed_expiries_3m<-list(
quote(month %in% c("March","June","September","December")),
quote(wday=="Friday"),
quote(wday_count==3)
)
listed_expiries_6m_a<-list(
quote(month %in% c("June","December")),
quote(wday=="Friday"),
quote(wday_count==3)
)
listed_expiries_6m_b<-list(
... |
#' @title Rescale the gene/isoform expression matrix
#' @usage Rescale(Data)
#' @param Data input gene-by-sample matrix or isoform-by-sample matrix
#' @note The output will be a gene-by-sample or isoform-by-sample matrix.
#' For each gene/isoform, the expressions will be scaled to mean 0 var 1
#' @examples Rescale(mat... | /package/WaveCrest/R/Rescale.R | permissive | lengning/WaveCrest | R | false | false | 539 | r | #' @title Rescale the gene/isoform expression matrix
#' @usage Rescale(Data)
#' @param Data input gene-by-sample matrix or isoform-by-sample matrix
#' @note The output will be a gene-by-sample or isoform-by-sample matrix.
#' For each gene/isoform, the expressions will be scaled to mean 0 var 1
#' @examples Rescale(mat... |
# ggplot learning script
#Bearded-guy
#Feb 22, 2015
install.packages("ggplot2", dependencies = TRUE)
install.packages("plyr")
install.packages("ggthemes")
install.packages("reshape2")
#ggplot2 is very good for data analysis.
head(iris)
#grammar
#must have a data fram. I.e. no vectors or matrixs.
#plyr
iris[1:2,]
#res... | /GGplot.R | no_license | Bearded-guy/Iplant_repo | R | false | false | 1,511 | r | # ggplot learning script
#Bearded-guy
#Feb 22, 2015
install.packages("ggplot2", dependencies = TRUE)
install.packages("plyr")
install.packages("ggthemes")
install.packages("reshape2")
#ggplot2 is very good for data analysis.
head(iris)
#grammar
#must have a data fram. I.e. no vectors or matrixs.
#plyr
iris[1:2,]
#res... |
shinyUI(fluidPage(
titlePanel("Prediction of stopping distance of an old car"),
sidebarLayout(
sidebarPanel(
textInput('speed', label=h4("The car's speed"),value="19.5"),
selectInput("speed.units", label = h4("units of speed"),
... | /ui.R | no_license | fduzhin/shiny-app-stopping-distance | R | false | false | 4,840 | r | shinyUI(fluidPage(
titlePanel("Prediction of stopping distance of an old car"),
sidebarLayout(
sidebarPanel(
textInput('speed', label=h4("The car's speed"),value="19.5"),
selectInput("speed.units", label = h4("units of speed"),
... |
#########
# Rafael Aparecido Martins Frade - Central European University
# Replication code for paper:
# Does payroll tax relief increase employment level? Evidence from Brazil - 2020
# This script cleans the data
#########
setwd('/home/rafael/arquivos/mestrado/2_term/metrics_II/paper/dataset/non-cleaned')
require... | /frade2020_tax_cleaning.r | permissive | rfrade/frade2020taxRelief | R | false | false | 1,642 | r | #########
# Rafael Aparecido Martins Frade - Central European University
# Replication code for paper:
# Does payroll tax relief increase employment level? Evidence from Brazil - 2020
# This script cleans the data
#########
setwd('/home/rafael/arquivos/mestrado/2_term/metrics_II/paper/dataset/non-cleaned')
require... |
binarySearch <- function(arr, item)
{
pos <- -1
mid <- 0
l <- 1
u <- length(arr)
while(l<=u)
{
mid <- as.integer((l+u)/2)
if(arr[mid]==item)
{
pos <- mid
break
}
else if(arr[mid]>item)
{
u <- mid-1
}
else
{
l <- mid+1
}... | /Data Science Using R/q9.R | no_license | roksankit24/ScriptDump-1 | R | false | false | 513 | r | binarySearch <- function(arr, item)
{
pos <- -1
mid <- 0
l <- 1
u <- length(arr)
while(l<=u)
{
mid <- as.integer((l+u)/2)
if(arr[mid]==item)
{
pos <- mid
break
}
else if(arr[mid]>item)
{
u <- mid-1
}
else
{
l <- mid+1
}... |
library(e1071);
library(ROCR);
options(width=1000);
binsmatrix<-as.matrix(read.table("../params_stats/results/breaks5bins.txt",row.names=1));
midsmatrix<-as.matrix(read.table("../params_stats/results/medians5bins.txt",row.names=1));
show(binsmatrix);
nbrsize<-1;
#for(nbrsize in seq(0,3))
{
##Position of ... | /svm-model/bins/train-svm-steps.R | no_license | prashi23/Genomics-Data-Analysis | R | false | false | 4,706 | r | library(e1071);
library(ROCR);
options(width=1000);
binsmatrix<-as.matrix(read.table("../params_stats/results/breaks5bins.txt",row.names=1));
midsmatrix<-as.matrix(read.table("../params_stats/results/medians5bins.txt",row.names=1));
show(binsmatrix);
nbrsize<-1;
#for(nbrsize in seq(0,3))
{
##Position of ... |
mycontrast<-function(data, var, contrast){
tmp<-data[,var] # temporary variable
tmp2<-data.frame(iv = tmp, index = 1:length(tmp))
# data frame that stores the original variable with an index
tmp3<-tmp2[order(tmp2$iv), ]
# order the levels of the variable in increasing order or by alphabetic order
# according ... | /mycontrast.R | no_license | remi-lafitte/gut | R | false | false | 1,533 | r |
mycontrast<-function(data, var, contrast){
tmp<-data[,var] # temporary variable
tmp2<-data.frame(iv = tmp, index = 1:length(tmp))
# data frame that stores the original variable with an index
tmp3<-tmp2[order(tmp2$iv), ]
# order the levels of the variable in increasing order or by alphabetic order
# according ... |
setwd("~/Documents")
## Download the data
if (!file.exists("household_power_consumption.zip")){
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, "household_power_consumption.zip", method = "curl")
unzip("household_power_consumption.zi... | /plot4.R | no_license | zlu00/ExData_Plotting1 | R | false | false | 1,587 | r | setwd("~/Documents")
## Download the data
if (!file.exists("household_power_consumption.zip")){
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, "household_power_consumption.zip", method = "curl")
unzip("household_power_consumption.zi... |
## Put comments here that give an overall description of what your
## functions do
## This function creates a special matrix object that
## can cache it's own inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
## resets the stored inverse to null, sets matrix w/
## provided value
set <- function(y)... | /cachematrix.R | no_license | chan1/ProgrammingAssignment2 | R | false | false | 1,001 | r | ## Put comments here that give an overall description of what your
## functions do
## This function creates a special matrix object that
## can cache it's own inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
## resets the stored inverse to null, sets matrix w/
## provided value
set <- function(y)... |
### This function generates a pdf file with a report
### describing the variables.
#' scaleDiagnosisToPDF
#'
#' \code{\link{scaleDiagnosis}} provides a number of diagnostics for a scale
#' (an aggregative measure consisting of several items), and
#' scaleDiagnosisToPDF takes the resulting object and generates a PDF ... | /R/scaleDiagnosisToPDF.R | no_license | Matherion/userfriendlyscience | R | false | false | 7,288 | r | ### This function generates a pdf file with a report
### describing the variables.
#' scaleDiagnosisToPDF
#'
#' \code{\link{scaleDiagnosis}} provides a number of diagnostics for a scale
#' (an aggregative measure consisting of several items), and
#' scaleDiagnosisToPDF takes the resulting object and generates a PDF ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timeseriessummary-data.R
\name{parseTSSRatingCurves}
\alias{parseTSSRatingCurves}
\title{Parse TSS Rating Curves}
\usage{
parseTSSRatingCurves(reportData, timezone)
}
\arguments{
\item{reportData}{the full report JSON object}
\item{timezone}... | /man/parseTSSRatingCurves.Rd | permissive | USGS-R/repgen | R | false | true | 451 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timeseriessummary-data.R
\name{parseTSSRatingCurves}
\alias{parseTSSRatingCurves}
\title{Parse TSS Rating Curves}
\usage{
parseTSSRatingCurves(reportData, timezone)
}
\arguments{
\item{reportData}{the full report JSON object}
\item{timezone}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reportPolicyCosts.R
\name{reportPolicyCosts}
\alias{reportPolicyCosts}
\title{Read in GDX and calculate policy costs, used in convGDX2MIF.R for the
reporting}
\usage{
reportPolicyCosts(gdx, gdx_ref, regionSubsetList = NULL)
}
\arguments{
\ite... | /man/reportPolicyCosts.Rd | no_license | pik-piam/remind | R | false | true | 791 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reportPolicyCosts.R
\name{reportPolicyCosts}
\alias{reportPolicyCosts}
\title{Read in GDX and calculate policy costs, used in convGDX2MIF.R for the
reporting}
\usage{
reportPolicyCosts(gdx, gdx_ref, regionSubsetList = NULL)
}
\arguments{
\ite... |
setMethod("blocks", signature(x="SpatRaster"),
function(x, n=4) {
opt <- spatOptions("", FALSE, ncopies=n)
b <- x@ptr$getBlockSizeR(n, opt$memfrac)
b$row <- b$row + 1
b
}
)
setMethod("writeStart", signature(x="SpatRaster", filename="character"),
function(x, filename="", overwrite=FALSE, n=4,... | /R/write.R | no_license | cran/terra | R | false | false | 5,025 | r |
setMethod("blocks", signature(x="SpatRaster"),
function(x, n=4) {
opt <- spatOptions("", FALSE, ncopies=n)
b <- x@ptr$getBlockSizeR(n, opt$memfrac)
b$row <- b$row + 1
b
}
)
setMethod("writeStart", signature(x="SpatRaster", filename="character"),
function(x, filename="", overwrite=FALSE, n=4,... |
library(forecast)
rates <- read.csv("eurofxref-hist.csv", header = T)
rates[1:2,]
str(rates$Date)
start <- as.Date("2009-01-02")
rates$Date <- as.Date(rates$Date,"%Y-%m-%d")
str(rates$Date)
range(rates$Date)
rates <- rates[order(rates$Date), ]
plot(rates$Date, rates$HKD, type = "l")
head(rates$Date,20)
y... | /currency_forecasting_working_model_1.R | no_license | inso2501/trading | R | false | false | 3,146 | r | library(forecast)
rates <- read.csv("eurofxref-hist.csv", header = T)
rates[1:2,]
str(rates$Date)
start <- as.Date("2009-01-02")
rates$Date <- as.Date(rates$Date,"%Y-%m-%d")
str(rates$Date)
range(rates$Date)
rates <- rates[order(rates$Date), ]
plot(rates$Date, rates$HKD, type = "l")
head(rates$Date,20)
y... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gg_tennis.R
\name{gg_fulltenniscourt}
\alias{gg_fulltenniscourt}
\title{This function draws a full tennis court.}
\usage{
gg_fulltenniscourt(
fill_colour = "#3C638E",
outer_fill = "#ad5049",
line_colour = "white"
)
}
\value{
A ggplot of... | /man/gg_fulltenniscourt.Rd | no_license | petertea96/grandslamR | R | false | true | 463 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gg_tennis.R
\name{gg_fulltenniscourt}
\alias{gg_fulltenniscourt}
\title{This function draws a full tennis court.}
\usage{
gg_fulltenniscourt(
fill_colour = "#3C638E",
outer_fill = "#ad5049",
line_colour = "white"
)
}
\value{
A ggplot of... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggrisktable.R
\name{ggrisktable}
\alias{ggrisktable}
\title{Number at Risk Table}
\usage{
ggrisktable(fit, data = NULL, type = c("absolute", "percentage", "abs_pct",
"nrisk_cumcensor", "nrisk_cumevents"), color = "black", palette = NULL,
... | /man/ggrisktable.Rd | no_license | AlKavaev/survminer | R | false | true | 4,184 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggrisktable.R
\name{ggrisktable}
\alias{ggrisktable}
\title{Number at Risk Table}
\usage{
ggrisktable(fit, data = NULL, type = c("absolute", "percentage", "abs_pct",
"nrisk_cumcensor", "nrisk_cumevents"), color = "black", palette = NULL,
... |
\name{meanvarFMD}
\alias{meanvarFMD}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Mean and variance for folded multivariate distributions
}
\description{
It computes the mean vector and variance-covariance matrix for the folded \code{p}-variate Normal, Skew-normal (SN), Extended Skew-no... | /MomTrunc/man/meanvarFMD.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 3,923 | rd | \name{meanvarFMD}
\alias{meanvarFMD}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Mean and variance for folded multivariate distributions
}
\description{
It computes the mean vector and variance-covariance matrix for the folded \code{p}-variate Normal, Skew-normal (SN), Extended Skew-no... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.697279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615831113-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,048 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.697279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.