content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library(shiny)
# Feedback
ui <- fluidPage(
shinyFeedback::useShinyFeedback(),
numericInput("n", "n", value = 11),
textOutput("half"),
numericInput("n3", "n", value = 10),
textOutput("third")
)
server <- function(input, output, session) {
half <- reactive({
even <- input$n %% 2 == 0
... | /examples/08-user_feedback_feedback_app/app.R | no_license | maskegger/bookclub-mshiny | R | false | false | 977 | r | library(shiny)
# Feedback
ui <- fluidPage(
shinyFeedback::useShinyFeedback(),
numericInput("n", "n", value = 11),
textOutput("half"),
numericInput("n3", "n", value = 10),
textOutput("third")
)
server <- function(input, output, session) {
half <- reactive({
even <- input$n %% 2 == 0
... |
library(WhopGenome)
### Name: vcf_getfieldnames
### Title: Return a vector with the field names used in the VCF file.
### Aliases: vcf_getfieldnames
### ** Examples
vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") )
vcf_getfieldnames( vcffile )
| /data/genthat_extracted_code/WhopGenome/examples/vcf_getfieldnames.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 286 | r | library(WhopGenome)
### Name: vcf_getfieldnames
### Title: Return a vector with the field names used in the VCF file.
### Aliases: vcf_getfieldnames
### ** Examples
vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") )
vcf_getfieldnames( vcffile )
|
#' @title MCAR_0.2
#'
#' @description Summarized simulation results for coefficient of treatment using method A-D under MCAR with 0.2 missing rate.
#'
#' @format The following four methods are evaluated based on the mean bias, mean error, relative bias, coverage, mean square error, standard deviation.
#' \describe{
#' ... | /MIsimulation/R/MCAR_0.2.R | no_license | sheep720/MIsimulation | R | false | false | 577 | r | #' @title MCAR_0.2
#'
#' @description Summarized simulation results for coefficient of treatment using method A-D under MCAR with 0.2 missing rate.
#'
#' @format The following four methods are evaluated based on the mean bias, mean error, relative bias, coverage, mean square error, standard deviation.
#' \describe{
#' ... |
#!/usr/bin/env r
suppressMessages(require(Rcpp))
set.seed(42)
n <- 200
a <- rnorm(n)
b <- rnorm(n)
## load shared libraries with wrapper code
dyn.load("convolve2_c.so")
dyn.load("convolve3_cpp.so")
dyn.load("convolve4_cpp.so")
dyn.load("convolve5_cpp.so")
dyn.load("convolve7_c.so")
dyn.load("convolve8_cpp.so")
dyn.l... | /R-Portable/library/Rcpp/examples/ConvolveBenchmarks/exampleRCode.r | permissive | ksasso/Electron_ShinyApp_Deployment | R | false | false | 3,588 | r | #!/usr/bin/env r
suppressMessages(require(Rcpp))
set.seed(42)
n <- 200
a <- rnorm(n)
b <- rnorm(n)
## load shared libraries with wrapper code
dyn.load("convolve2_c.so")
dyn.load("convolve3_cpp.so")
dyn.load("convolve4_cpp.so")
dyn.load("convolve5_cpp.so")
dyn.load("convolve7_c.so")
dyn.load("convolve8_cpp.so")
dyn.l... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/append_values.r
\name{my_unlist}
\alias{my_unlist}
\title{Unlists while preserving NULLs and only unlisting lists with one value}
\usage{
my_unlist(l)
}
\arguments{
\item{l}{a list that we want to unlist}
}
\description{
Unlists while... | /man/my_unlist.Rd | permissive | abresler/tidyjson | R | false | false | 381 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/append_values.r
\name{my_unlist}
\alias{my_unlist}
\title{Unlists while preserving NULLs and only unlisting lists with one value}
\usage{
my_unlist(l)
}
\arguments{
\item{l}{a list that we want to unlist}
}
\description{
Unlists while... |
# demo/bench/methods.R
#
# Depends:
# library("bcv")
# library("devtools")
# library("cluster")
# library("e1071")
# library("mclust")
# library("MASS")
# library("nnet")
# load_all("../../lib/fpc")
# load_all("../../lib/NbClust")
# source("../../lib/NbClust.R")
# source("../../code/classify.R")
#... | /demo/bench/methods.R | no_license | patperry/cvclust | R | false | false | 3,677 | r | # demo/bench/methods.R
#
# Depends:
# library("bcv")
# library("devtools")
# library("cluster")
# library("e1071")
# library("mclust")
# library("MASS")
# library("nnet")
# load_all("../../lib/fpc")
# load_all("../../lib/NbClust")
# source("../../lib/NbClust.R")
# source("../../code/classify.R")
#... |
library(tidyverse)
library(tidymodels)
sisters_select <- read_csv("data/sisters.csv") %>%
select(-sister)
# Split off the testing set
set.seed(123)
sisters_split <- initial_split(sisters_select, strata = age)
sisters_other <- training(sisters_split)
sisters_test <- testing(sisters_split)
# Create the validation ... | /exercises/solution_04_07.R | permissive | snowdj/supervised-ML-case-studies-course | R | false | false | 423 | r | library(tidyverse)
library(tidymodels)
sisters_select <- read_csv("data/sisters.csv") %>%
select(-sister)
# Split off the testing set
set.seed(123)
sisters_split <- initial_split(sisters_select, strata = age)
sisters_other <- training(sisters_split)
sisters_test <- testing(sisters_split)
# Create the validation ... |
#' @title AMARETTO_HTMLCharacterisation
#'
#' @param AMARETTOresults
#' @param annotation
#' @param report_address
#' @param survivalanalysis
#' @param phenotypeanalysis
#' @param idpatients
#' @param idvitalstatus
#' @param iddaystodeath
#' @param idfollowupdays
#' @param daystoyears
#' @param rightcensored
#' @param ... | /R/amaretto_htmlphenotypes.R | permissive | renesugar/ImagingAMARETTO | R | false | false | 6,464 | r | #' @title AMARETTO_HTMLCharacterisation
#'
#' @param AMARETTOresults
#' @param annotation
#' @param report_address
#' @param survivalanalysis
#' @param phenotypeanalysis
#' @param idpatients
#' @param idvitalstatus
#' @param iddaystodeath
#' @param idfollowupdays
#' @param daystoyears
#' @param rightcensored
#' @param ... |
# Demonstrate grid approximation of the posterior for a
# globe tossing problem with 6 water observations out of
# 9 globe tosses
#==========================================================
# 1) Define the grid to be used to compute the posterior
# 20 grid points, bounded by 0 and 1 (p_grid)
p_grid <- seq(0, 1,... | /lecture_code/lecture_week_06.R | no_license | ger2128/stats_eco_evo_2021 | R | false | false | 1,720 | r |
# Demonstrate grid approximation of the posterior for a
# globe tossing problem with 6 water observations out of
# 9 globe tosses
#==========================================================
# 1) Define the grid to be used to compute the posterior
# 20 grid points, bounded by 0 and 1 (p_grid)
p_grid <- seq(0, 1,... |
plot2 <- function(file){
file <- "household_power_consumption.txt"
# Reading file into a variable for further subsetting in the next step
temp_data <- read.table(file, sep=";", header=TRUE, colClasses=rep("character",9))
# Subsetting data to the required dates (comparing them as characters)
data <- subset(te... | /plot2.R | no_license | kandsar/Exploratory_Data_Analysis | R | false | false | 845 | r | plot2 <- function(file){
file <- "household_power_consumption.txt"
# Reading file into a variable for further subsetting in the next step
temp_data <- read.table(file, sep=";", header=TRUE, colClasses=rep("character",9))
# Subsetting data to the required dates (comparing them as characters)
data <- subset(te... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hexjsonwidget.R
\name{hexjsonfromdataframe}
\alias{hexjsonfromdataframe}
\title{Create a hexjson file from a dataframe}
\usage{
hexjsonfromdataframe(df, layout = "odd-r", keyid = "id", q = "q",
r = "r")
}
\arguments{
\item{df}{Dataframe to ... | /man/hexjsonfromdataframe.Rd | no_license | psychemedia/htmlwidget-hexjson | R | false | true | 858 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hexjsonwidget.R
\name{hexjsonfromdataframe}
\alias{hexjsonfromdataframe}
\title{Create a hexjson file from a dataframe}
\usage{
hexjsonfromdataframe(df, layout = "odd-r", keyid = "id", q = "q",
r = "r")
}
\arguments{
\item{df}{Dataframe to ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/npn_allobssp.R
\name{npn_allobssp}
\alias{npn_allobssp}
\title{Get all observations for a particular species or set of species}
\usage{
npn_allobssp(speciesid, startdate = NULL, enddate = NULL, ...)
}
\arguments{
\item{speciesid}{species id n... | /man/npn_allobssp.Rd | permissive | PhenologyOfPlace/rnpn | R | false | true | 1,255 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/npn_allobssp.R
\name{npn_allobssp}
\alias{npn_allobssp}
\title{Get all observations for a particular species or set of species}
\usage{
npn_allobssp(speciesid, startdate = NULL, enddate = NULL, ...)
}
\arguments{
\item{speciesid}{species id n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/frame.R
\name{z.values.get}
\alias{z.values.get}
\title{get value labels, wrapper of \code{\link[sjmisc]{get_labels}}}
\usage{
z.values.get(x, include.values = NULL, attr.only = T,
include.non.labelled = F, ...)
}
\value{
returns a list $va... | /man/z.values.get.Rd | permissive | hmorzaria/zmisc | R | false | true | 1,819 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/frame.R
\name{z.values.get}
\alias{z.values.get}
\title{get value labels, wrapper of \code{\link[sjmisc]{get_labels}}}
\usage{
z.values.get(x, include.values = NULL, attr.only = T,
include.non.labelled = F, ...)
}
\value{
returns a list $va... |
# Download gdal-2.2.0 from rwinlib
VERSION <- commandArgs(TRUE)
if(!file.exists(sprintf("../windows/gdal2-%s/include/gdal/gdal.h", VERSION))){
if(getRversion() < "3.3.0") setInternet2()
download.file(sprintf("https://github.com/rwinlib/gdal2/archive/v%s.zip", VERSION), "lib.zip", quiet = TRUE)
dir.create("../wind... | /fuzzedpackages/uFTIR/tools/winlibs.R | no_license | akhikolla/testpackages | R | false | false | 411 | r | # Download gdal-2.2.0 from rwinlib
VERSION <- commandArgs(TRUE)
if(!file.exists(sprintf("../windows/gdal2-%s/include/gdal/gdal.h", VERSION))){
if(getRversion() < "3.3.0") setInternet2()
download.file(sprintf("https://github.com/rwinlib/gdal2/archive/v%s.zip", VERSION), "lib.zip", quiet = TRUE)
dir.create("../wind... |
# Exercise 7: interactive applications
# Load libraries so they are available
library("shiny")
# Use source() to execute the `app_ui.R` and `app_server.R` files. These will
# define the UI value and server function respectively.
source("app_ui.R")
source("app_server.R")
# You will need to fill in the `app_ui.R` file... | /chapter-19-exercises/exercise-7/app.R | permissive | sumeetwaraich/book-exercises | R | false | false | 484 | r | # Exercise 7: interactive applications
# Load libraries so they are available
library("shiny")
# Use source() to execute the `app_ui.R` and `app_server.R` files. These will
# define the UI value and server function respectively.
source("app_ui.R")
source("app_server.R")
# You will need to fill in the `app_ui.R` file... |
set.seed( 20 )
library(mvtnorm)
library(fields)
library(Rcpp)
library(mclust)
library(kernlab)
library(ConsensusClusterPlus)
simu=function(s){
prob_glcm<-function(c,s=s,mc=30000){
mu<-c(2+c,14-c)
sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2)
elip<-rmvnorm(mc,mu,sigma)
# par(xaxs='i',yaxs='i')
... | /s=12/simu_20.R | no_license | mguindanigroup/Radiomics-Hierarchical-Rounded-Gaussian-Spatial-Dirichlet-Process | R | false | false | 9,293 | r | set.seed( 20 )
library(mvtnorm)
library(fields)
library(Rcpp)
library(mclust)
library(kernlab)
library(ConsensusClusterPlus)
simu=function(s){
prob_glcm<-function(c,s=s,mc=30000){
mu<-c(2+c,14-c)
sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2)
elip<-rmvnorm(mc,mu,sigma)
# par(xaxs='i',yaxs='i')
... |
source("m70final.R")
library(ggcorrplot)
X = parse.data("all_stocks_5yr.csv")
stocks = t(X[,1])
X = as.matrix(X[2:length(X)])
R = cor(t(X))
iR = iiR = solve(R)
n = dim(R)[1]
for(i in 1:n) {
for(j in 1:n) {
iR[i,j] = -iiR[i,j]/sqrt(iiR[i,i]*iiR[j,j])
}
}
rownames(R) = colnames(R) = rownames(iR) = colnames(iR)... | /corrplot.R | no_license | joegyorda/M70Final | R | false | false | 798 | r | source("m70final.R")
library(ggcorrplot)
X = parse.data("all_stocks_5yr.csv")
stocks = t(X[,1])
X = as.matrix(X[2:length(X)])
R = cor(t(X))
iR = iiR = solve(R)
n = dim(R)[1]
for(i in 1:n) {
for(j in 1:n) {
iR[i,j] = -iiR[i,j]/sqrt(iiR[i,i]*iiR[j,j])
}
}
rownames(R) = colnames(R) = rownames(iR) = colnames(iR)... |
# This script is used for standardizing New York Street tree data
# By: Lindsay Darling
#TODO Remove dead trees and stumps?
# started on: Oct 15, 2020
# load useful libraries
library(tidyverse)
library(magrittr)
library(sf)
# read in the i-Tree data
NYStreetTree <- st_read(file.path('RawTreeData',
... | /NYStreetTree.R | no_license | ChicagoRTI/CompRedlining | R | false | false | 1,809 | r | # This script is used for standardizing New York Street tree data
# By: Lindsay Darling
#TODO Remove dead trees and stumps?
# started on: Oct 15, 2020
# load useful libraries
library(tidyverse)
library(magrittr)
library(sf)
# read in the i-Tree data
NYStreetTree <- st_read(file.path('RawTreeData',
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prices.R
\docType{data}
\name{prices}
\alias{prices}
\title{Sample data for fisheries_summary function}
\format{A data frame with two columns:
\itemize{
\item fish: name of fish species
\item price: going price of the species}}
\usage{
prices... | /man/prices.Rd | no_license | klarrieu/ESM262PackageAssignment | R | false | true | 413 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prices.R
\docType{data}
\name{prices}
\alias{prices}
\title{Sample data for fisheries_summary function}
\format{A data frame with two columns:
\itemize{
\item fish: name of fish species
\item price: going price of the species}}
\usage{
prices... |
\name{EWHP}
\alias{EWHP}
\docType{data}
\title{House price data set (DataFrame) in England and Wales}
\description{
A house price data set for England and Wales from 2001 with 9 hedonic (explanatory) variables.
}
\usage{data(EWHP)}
\format{
A data frame with 519 observations on the following 12 variables.
\describe{
... | /man/EWHP.Rd | no_license | GWmodel-Lab/GWmodel3 | R | false | false | 1,838 | rd | \name{EWHP}
\alias{EWHP}
\docType{data}
\title{House price data set (DataFrame) in England and Wales}
\description{
A house price data set for England and Wales from 2001 with 9 hedonic (explanatory) variables.
}
\usage{data(EWHP)}
\format{
A data frame with 519 observations on the following 12 variables.
\describe{
... |
if (require("shiny")) {
data(World)
world_vars <- setdiff(names(World), c("iso_a3", "name", "sovereignt", "geometry"))
ui <- fluidPage(
tmapOutput("map"),
selectInput("var", "Variable", world_vars)
)
server <- function(input, output, session) {
output... | /09_developing_data_products/week4/trash.R | no_license | Cardosaum/data_science_specialization_jhu | R | false | false | 767 | r | if (require("shiny")) {
data(World)
world_vars <- setdiff(names(World), c("iso_a3", "name", "sovereignt", "geometry"))
ui <- fluidPage(
tmapOutput("map"),
selectInput("var", "Variable", world_vars)
)
server <- function(input, output, session) {
output... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
% R/gen-namespace-examples.R, R/gen-namespace.R
\name{torch_cumprod}
\alias{torch_cumprod}
\title{Cumprod}
\usage{
torch_cumprod(self, dim, dtype = NULL)
}
\arguments{
\item{self}{(Tensor) the input tensor.}
\item{dim... | /man/torch_cumprod.Rd | permissive | mlverse/torch | R | false | true | 1,084 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
% R/gen-namespace-examples.R, R/gen-namespace.R
\name{torch_cumprod}
\alias{torch_cumprod}
\title{Cumprod}
\usage{
torch_cumprod(self, dim, dtype = NULL)
}
\arguments{
\item{self}{(Tensor) the input tensor.}
\item{dim... |
#' Retrieve synonyms from various sources given input taxonomic
#' names or identifiers
#'
#' @param x Vector of taxa names (character) or IDs (character or numeric) to
#' query.
#' @param db character; database to query. either `itis`, `tropicos`, `col`,
#' `nbn`, `worms`. Note that each taxonomic data source has thei... | /R/synonyms.R | permissive | muschellij2/taxize | R | false | false | 11,406 | r | #' Retrieve synonyms from various sources given input taxonomic
#' names or identifiers
#'
#' @param x Vector of taxa names (character) or IDs (character or numeric) to
#' query.
#' @param db character; database to query. either `itis`, `tropicos`, `col`,
#' `nbn`, `worms`. Note that each taxonomic data source has thei... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_processing.R
\name{process_elevation}
\alias{process_elevation}
\title{Export modeled elevation data from existing animal data file}
\usage{
process_elevation(elev, zoom = 11, get_slope = TRUE,
get_aspect = TRUE, in_path, out_path)
}
\... | /man/process_elevation.Rd | no_license | IotGod/animaltracker | R | false | true | 1,225 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_processing.R
\name{process_elevation}
\alias{process_elevation}
\title{Export modeled elevation data from existing animal data file}
\usage{
process_elevation(elev, zoom = 11, get_slope = TRUE,
get_aspect = TRUE, in_path, out_path)
}
\... |
#' @method summary entbal_cont
#' @export
summary.entbal_cont <- function(object,
show_unweighted = TRUE,
show_higherorder = TRUE,
show_parameters = FALSE,
n_digits = 3){
if(is.null(ncol(o... | /R/entbal_cont_summary.R | no_license | bvegetabile/entbal | R | false | false | 3,244 | r |
#' @method summary entbal_cont
#' @export
summary.entbal_cont <- function(object,
show_unweighted = TRUE,
show_higherorder = TRUE,
show_parameters = FALSE,
n_digits = 3){
if(is.null(ncol(o... |
#' Apply transforms to points.
#'
#' Apply a transform list to map a pointset from one domain to another. In
#' registration, one computes mappings between pairs of domains.
#' These transforms are often a sequence of increasingly complex maps, e.g.
#' from translation, to rigid, to affine to deformation. The list of ... | /R/antsApplyTransformsToPoints.R | permissive | alainlompo/ANTsR | R | false | false | 4,837 | r | #' Apply transforms to points.
#'
#' Apply a transform list to map a pointset from one domain to another. In
#' registration, one computes mappings between pairs of domains.
#' These transforms are often a sequence of increasingly complex maps, e.g.
#' from translation, to rigid, to affine to deformation. The list of ... |
testlist <- list(genotype = c(-471604253L, NA, -471604253L, -471604253L, -471604253L, -471604253L, -471604253L))
result <- do.call(detectRUNS:::genoConvertCpp,testlist)
str(result) | /detectRUNS/inst/testfiles/genoConvertCpp/libFuzzer_genoConvertCpp/genoConvertCpp_valgrind_files/1609875479-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 181 | r | testlist <- list(genotype = c(-471604253L, NA, -471604253L, -471604253L, -471604253L, -471604253L, -471604253L))
result <- do.call(detectRUNS:::genoConvertCpp,testlist)
str(result) |
# Shuffles and splits the dataset into a training and testset.
# In the dataset we have cellnames, spiketimes and awake_angle.
train_test_split = function(data){
# Create a vector of timestamps
timespan = length(data$awake_angle)
time_seq = seq(1,timespan)
# Shuffle the timesequence
# shuf... | /util/problem5.R | no_license | ramunter/NEVR3004 | R | false | false | 6,808 | r | # Shuffles and splits the dataset into a training and testset.
# In the dataset we have cellnames, spiketimes and awake_angle.
train_test_split = function(data){
# Create a vector of timestamps
timespan = length(data$awake_angle)
time_seq = seq(1,timespan)
# Shuffle the timesequence
# shuf... |
module2json <- function(module_text){
library(roxygen2, quietly=TRUE)
library(jsonlite, quietly=TRUE)
x <- roxygen2:::parse_text(module_text)[[2]]
if(is.null(x)){
x <- list()
}
if(length(x) == 1){
x <- list(x)
}
y <- sapply(x, function(o){
o$object = NULL
o$srcref = NULL
if(!i... | /R/module2json.R | permissive | Vizzuality/zoon | R | false | false | 649 | r | module2json <- function(module_text){
library(roxygen2, quietly=TRUE)
library(jsonlite, quietly=TRUE)
x <- roxygen2:::parse_text(module_text)[[2]]
if(is.null(x)){
x <- list()
}
if(length(x) == 1){
x <- list(x)
}
y <- sapply(x, function(o){
o$object = NULL
o$srcref = NULL
if(!i... |
library(xts)
library(plm)
data <- readRDS("./panel.rds")
dataP <- pdata.frame(data, index = c("IDRSSD", "quarter"), drop.index=TRUE, row.names=TRUE)
testFEmodel <- plm(loans_cap ~ retained_earnings + tier_1_cap + total_noninterest_income, data = dataP, model = "within", effect = "twoways")
summary(testFEmodel)
##... | /1_querying_data_and_analysis/analyses/panel_data_analysis/old/panel_alive_2017/test_panel_data_frame.R | no_license | Matt-Brigida/FFIEC_Call_Reports | R | false | false | 364 | r | library(xts)
library(plm)
data <- readRDS("./panel.rds")
dataP <- pdata.frame(data, index = c("IDRSSD", "quarter"), drop.index=TRUE, row.names=TRUE)
testFEmodel <- plm(loans_cap ~ retained_earnings + tier_1_cap + total_noninterest_income, data = dataP, model = "within", effect = "twoways")
summary(testFEmodel)
##... |
r=359.75
https://sandbox.dams.library.ucdavis.edu/fcrepo/rest/collection/sherry-lehmann/catalogs/d7rp5q/media/images/d7rp5q-001/svc:tesseract/full/full/359.75/default.jpg Accept:application/hocr+xml
| /ark_87287/d7rp5q/d7rp5q-001/rotated.r | permissive | ucd-library/wine-price-extraction | R | false | false | 199 | r | r=359.75
https://sandbox.dams.library.ucdavis.edu/fcrepo/rest/collection/sherry-lehmann/catalogs/d7rp5q/media/images/d7rp5q-001/svc:tesseract/full/full/359.75/default.jpg Accept:application/hocr+xml
|
\name{optiscale-package}
\alias{optiscale-package}
\alias{optiscale}
\docType{package}
\title{Optimal Scaling of a Data Vector}
\description{
This package provides tools to perform an optimal scaling analysis
on a data vector.
The main result of the optimal scaling is a vector of scores which
are a ... | /man/optiscale-package.Rd | no_license | cran/optiscale | R | false | false | 1,762 | rd | \name{optiscale-package}
\alias{optiscale-package}
\alias{optiscale}
\docType{package}
\title{Optimal Scaling of a Data Vector}
\description{
This package provides tools to perform an optimal scaling analysis
on a data vector.
The main result of the optimal scaling is a vector of scores which
are a ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/init.R
\name{cnlp_init_corenlp}
\alias{cnlp_init_corenlp}
\title{Interface for initializing the coreNLP backend}
\usage{
cnlp_init_corenlp(lang = NULL, models_dir = NULL)
}
\arguments{
\item{lang}{string giving the language name for the coren... | /man/cnlp_init_corenlp.Rd | no_license | takewiki/cleanNLP | R | false | true | 786 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/init.R
\name{cnlp_init_corenlp}
\alias{cnlp_init_corenlp}
\title{Interface for initializing the coreNLP backend}
\usage{
cnlp_init_corenlp(lang = NULL, models_dir = NULL)
}
\arguments{
\item{lang}{string giving the language name for the coren... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/emuR-dataDocs.R
\docType{data}
\name{vowlax}
\alias{vowlax}
\title{Segment list of four lax vowels, read speech, one male and one female
speaker of Standard North German from database kielread.}
\format{segmentlist}
\description{
An EMU datas... | /man/vowlax.Rd | no_license | fsuettmann/emuR | R | false | true | 344 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/emuR-dataDocs.R
\docType{data}
\name{vowlax}
\alias{vowlax}
\title{Segment list of four lax vowels, read speech, one male and one female
speaker of Standard North German from database kielread.}
\format{segmentlist}
\description{
An EMU datas... |
#k.hbcdist.R
# Weighted Average Logsum
mf.hcls <- HBC.lsLowWeight*mf.hclsl + HBC.lsMidWeight*mf.hclsm + HBC.lsHighWeight*mf.hclsh
east2westhill<-as.matrix(array(0,c(numzones,numzones)))
east2westhill[ensemble.gw==2,ensemble.gw==1]<-1
westhill2east<-as.matrix(array(0,c(numzones,numzones)))
westhill2east[ense... | /kate_programs_v2.0/k.hbcdist.R | no_license | tkangk/tdm | R | false | false | 6,742 | r | #k.hbcdist.R
# Weighted Average Logsum
mf.hcls <- HBC.lsLowWeight*mf.hclsl + HBC.lsMidWeight*mf.hclsm + HBC.lsHighWeight*mf.hclsh
east2westhill<-as.matrix(array(0,c(numzones,numzones)))
east2westhill[ensemble.gw==2,ensemble.gw==1]<-1
westhill2east<-as.matrix(array(0,c(numzones,numzones)))
westhill2east[ense... |
#Conversion DateTime
d<- as.Date(subsettd$Date, "%d/%m/%Y")
date_heure <- strptime(paste(d, subsettd$Time),"%Y-%m-%d %H:%M:%S")
# Plot on jpeg device
png("plot4.png", width = 480, height = 480)
par(mfrow= c(2,2))
# 1er Graph
plot(date_heure, subsettd$Global_active_power,xlab = "", ylab="Global_active_power", type="l... | /plot4.r | no_license | herve78150/ExData_Plotting1 | R | false | false | 901 | r | #Conversion DateTime
d<- as.Date(subsettd$Date, "%d/%m/%Y")
date_heure <- strptime(paste(d, subsettd$Time),"%Y-%m-%d %H:%M:%S")
# Plot on jpeg device
png("plot4.png", width = 480, height = 480)
par(mfrow= c(2,2))
# 1er Graph
plot(date_heure, subsettd$Global_active_power,xlab = "", ylab="Global_active_power", type="l... |
# Calculate partial procruses analysis for functional beta diversity -----------
# Authors(s): Nicholas Sookhan, Garland Xie
# Institutional affiliation: University of Toronto
# libraries --------------------------------------------------------------------
library(vegan) # for conducting partial procrustes analysi... | /src/procrustes_func.R | no_license | garlandxie/env_filt_bees | R | false | false | 13,626 | r | # Calculate partial procruses analysis for functional beta diversity -----------
# Authors(s): Nicholas Sookhan, Garland Xie
# Institutional affiliation: University of Toronto
# libraries --------------------------------------------------------------------
library(vegan) # for conducting partial procrustes analysi... |
library(ggplot2)
library(data.table)
library(reshape2)
library(RColorBrewer)
setwd("C:/Users/jmaburto/Documents/GitHub/Lifespan-inequality-Denmark")
#2 Cancer, amenable to smoking
#3 Cancer, not amenable to smoking
#5 Cardiovascular & Diabetes mellitus (move to 5)
#6 Respiratory, infectious
#7 Respiratory, non-in... | /R/7_Decomp_Figures.R | permissive | jmaburto/Lifespan-inequality-Denmark | R | false | false | 10,765 | r | library(ggplot2)
library(data.table)
library(reshape2)
library(RColorBrewer)
setwd("C:/Users/jmaburto/Documents/GitHub/Lifespan-inequality-Denmark")
#2 Cancer, amenable to smoking
#3 Cancer, not amenable to smoking
#5 Cardiovascular & Diabetes mellitus (move to 5)
#6 Respiratory, infectious
#7 Respiratory, non-in... |
library(astsa)
### Name: sarima
### Title: Fit ARIMA Models
### Aliases: sarima
### Keywords: ts
### ** Examples
sarima(log(AirPassengers),0,1,1,0,1,1,12)
(dog <- sarima(log(AirPassengers),0,1,1,0,1,1,12))
summary(dog$fit) # fit has all the returned arima() values
plot(resid(dog$fit)) # plot the innovations (resi... | /data/genthat_extracted_code/astsa/examples/sarima.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 415 | r | library(astsa)
### Name: sarima
### Title: Fit ARIMA Models
### Aliases: sarima
### Keywords: ts
### ** Examples
sarima(log(AirPassengers),0,1,1,0,1,1,12)
(dog <- sarima(log(AirPassengers),0,1,1,0,1,1,12))
summary(dog$fit) # fit has all the returned arima() values
plot(resid(dog$fit)) # plot the innovations (resi... |
library(swirl)
swirl()
kingcalyb123
1
2
1
2
getwd()
ls()
x <- 9
ls()
dir()
?list.files
args(list.files)
old.dir <- getwd()
testdir <- getwd()
dir.create("testdir")
setwd("testdir")
file.create("mytest.R")\
list.files()
file.exists("mytest.R")
file.info("mytest.R")
file.rename("mytest.R", "mytest2.R")
file.copy("mytest2... | /Task_01/Task_01c.R | no_license | kingcalyb123/Tasks | R | false | false | 3,036 | r | library(swirl)
swirl()
kingcalyb123
1
2
1
2
getwd()
ls()
x <- 9
ls()
dir()
?list.files
args(list.files)
old.dir <- getwd()
testdir <- getwd()
dir.create("testdir")
setwd("testdir")
file.create("mytest.R")\
list.files()
file.exists("mytest.R")
file.info("mytest.R")
file.rename("mytest.R", "mytest2.R")
file.copy("mytest2... |
#### SPLIT UP THE CODE FOR TIME BASIS AND QUANTILE BASIS: IT REDUCES CONFUSION AND IT ALSO CREATES MORE FUNCTIONS AND "FELESH"!!
cfc.tbasis <- function(p1, p2, unity.tol = 1e-6,
diff.tol = 1e-2, diff.tol.policy = c("mean","all"),
check = TRUE) {
# checks for p1,p2: 1) same dimensions, 2) between 0.0 and 1.0... | /fuzzedpackages/CFC/R/cfc_legacy.R | no_license | akhikolla/testpackages | R | false | false | 8,841 | r | #### SPLIT UP THE CODE FOR TIME BASIS AND QUANTILE BASIS: IT REDUCES CONFUSION AND IT ALSO CREATES MORE FUNCTIONS AND "FELESH"!!
cfc.tbasis <- function(p1, p2, unity.tol = 1e-6,
diff.tol = 1e-2, diff.tol.policy = c("mean","all"),
check = TRUE) {
# checks for p1,p2: 1) same dimensions, 2) between 0.0 and 1.0... |
#Replication Study 48
#Study_48_Protocol_2_Figure
#R Version 3.3.2
#Required Packages
library(httr) #version 1.2.1
library(rjson) #version 0.2.15
library(Rmisc) #version 1.5
library(ggplot2) #version 2.2.1
library(cowplot) #version 0.7.0
#source("~/credentials.R") #for private use during generation
#Downloads R scrip... | /elife-30274/sources/Study_48_Figure_1B.R | permissive | stencila/examples | R | false | false | 4,286 | r | #Replication Study 48
#Study_48_Protocol_2_Figure
#R Version 3.3.2
#Required Packages
library(httr) #version 1.2.1
library(rjson) #version 0.2.15
library(Rmisc) #version 1.5
library(ggplot2) #version 2.2.1
library(cowplot) #version 0.7.0
#source("~/credentials.R") #for private use during generation
#Downloads R scrip... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{valid_year_month}
\alias{valid_year_month}
\title{Ensure that years and months are within a certain time span}
\usage{
valid_year_month(years, months, begin = "1970-01-01", end = Sys.Date())
}
\arguments{
\item{years}{a numeric ... | /man/valid_year_month.Rd | no_license | edgar-cornejo/etl | R | false | true | 1,788 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{valid_year_month}
\alias{valid_year_month}
\title{Ensure that years and months are within a certain time span}
\usage{
valid_year_month(years, months, begin = "1970-01-01", end = Sys.Date())
}
\arguments{
\item{years}{a numeric ... |
library(caret)
library(plyr)
require(neuralnet)
#Import data
cardata <- readRDS(file = "data/cardata.Rds")
#https://medium.com/@tyagi.sudarshini/how-to-shuffle-a-dataframe-in-r-by-rows-e7971cd7949e
# randomize data
set.seed(500) #sets seed to 500 for recreation
rows <- sample(nrow(cardata))
r_cardata <- cardata[row... | /project1/R/onehot.r | no_license | skarning/machine-learning-projects | R | false | false | 2,807 | r | library(caret)
library(plyr)
require(neuralnet)
#Import data
cardata <- readRDS(file = "data/cardata.Rds")
#https://medium.com/@tyagi.sudarshini/how-to-shuffle-a-dataframe-in-r-by-rows-e7971cd7949e
# randomize data
set.seed(500) #sets seed to 500 for recreation
rows <- sample(nrow(cardata))
r_cardata <- cardata[row... |
require(devtools)
require(pipeR)
load_all()
## -------------------------------------------------------------------------- ##
## SUMMARY OF CRISIS EVENTS
## -------------------------------------------------------------------------- ##
crisis <- loadCrisisDB()
out <-
tabulateCrises(
crisisDT = crisis,
... | /scripts/exec.tables.R | no_license | Karagul/SovereignCrisis | R | false | false | 3,993 | r | require(devtools)
require(pipeR)
load_all()
## -------------------------------------------------------------------------- ##
## SUMMARY OF CRISIS EVENTS
## -------------------------------------------------------------------------- ##
crisis <- loadCrisisDB()
out <-
tabulateCrises(
crisisDT = crisis,
... |
# Building a very simple classifier, based solely on historical proportions.
library(data.table)
games <- read.csv("wog_games.csv", stringsAsFactors = FALSE)
games <- as.data.table(games)
# Make a table of likelihoods, not conditional on anything.
HeroLikelihood <- games[, .N, by = hero]
HeroLikelihood[, proporti... | /Hearthstone Analysis 1.R | no_license | MichaelGarrison89/Hearthstone-Project | R | false | false | 949 | r |
# Building a very simple classifier, based solely on historical proportions.
library(data.table)
games <- read.csv("wog_games.csv", stringsAsFactors = FALSE)
games <- as.data.table(games)
# Make a table of likelihoods, not conditional on anything.
HeroLikelihood <- games[, .N, by = hero]
HeroLikelihood[, proporti... |
##reading files
testx<- read.table("C:/Users/Yulia/Desktop/fernstudium/datascientist/R/assigmnets/UCI HAR Dataset/test/X_test.txt")
testy<- read.table("C:/Users/Yulia/Desktop/fernstudium/datascientist/R/assigmnets/UCI HAR Dataset/test/y_test.txt")
subject_test<-read.table("C:/Users/Yulia/Desktop/fernstudium/datasc... | /run_analysis.R | no_license | julira/Getting-and-cleaning-data-Assigment-3 | R | false | false | 3,881 | r | ##reading files
testx<- read.table("C:/Users/Yulia/Desktop/fernstudium/datascientist/R/assigmnets/UCI HAR Dataset/test/X_test.txt")
testy<- read.table("C:/Users/Yulia/Desktop/fernstudium/datascientist/R/assigmnets/UCI HAR Dataset/test/y_test.txt")
subject_test<-read.table("C:/Users/Yulia/Desktop/fernstudium/datasc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/primitive.R
\name{prim}
\alias{prim}
\title{Primitive object}
\usage{
prim(nm)
}
\arguments{
\item{nm}{The name of an exported primitive as a string or symbol.}
}
\description{
This just grabs a primitive object (type BUILTINSXP or SPECIALSXP... | /man/prim.Rd | no_license | lionelhenry/robin | R | false | true | 351 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/primitive.R
\name{prim}
\alias{prim}
\title{Primitive object}
\usage{
prim(nm)
}
\arguments{
\item{nm}{The name of an exported primitive as a string or symbol.}
}
\description{
This just grabs a primitive object (type BUILTINSXP or SPECIALSXP... |
clinical_outcomes_survival_server <- function(id, cohort_obj) {
shiny::moduleServer(
id,
function(input, output, session) {
ns <- session$ns
output$time_feature_selection_ui <- shiny::renderUI({
shiny::selectInput(
inputId = ns("time_feature_choice"),
label = "Select ... | /R/clinical_outcomes_survival_server.R | permissive | CRI-iAtlas/iatlas-app | R | false | false | 2,201 | r | clinical_outcomes_survival_server <- function(id, cohort_obj) {
shiny::moduleServer(
id,
function(input, output, session) {
ns <- session$ns
output$time_feature_selection_ui <- shiny::renderUI({
shiny::selectInput(
inputId = ns("time_feature_choice"),
label = "Select ... |
suppressMessages(suppressWarnings(
expr=source('setup.R', echo = F)
))
suppressMessages(suppressWarnings(
expr=source('missingValues.R', echo = F)
))
ssq_diff <- t3.diff.ssq.no.na %>% select(record_id,redcap_event_name,starts_with("ssq_"))
colnames(ssq_diff) <- c(colnames(ssq_diff[,1:2]), paste0(colnames(ssq_diff[... | /MSc/everythingPca.R | no_license | gerardloquet/BEAR_publications | R | false | false | 2,226 | r | suppressMessages(suppressWarnings(
expr=source('setup.R', echo = F)
))
suppressMessages(suppressWarnings(
expr=source('missingValues.R', echo = F)
))
ssq_diff <- t3.diff.ssq.no.na %>% select(record_id,redcap_event_name,starts_with("ssq_"))
colnames(ssq_diff) <- c(colnames(ssq_diff[,1:2]), paste0(colnames(ssq_diff[... |
# 10/29/2016. Author: Manu Garcia-Quismondo
#if (interactive()) {
# shinyApp(ui, server)
#}
library(shiny)
library(shinyjs)
source("AppRoutes.R")
setwd(source.route)
# source("AppRoutes.R")
# source("createHistogramTable.R")
setwd(source.route)
source("loadTables.R")
setwd(source.route)
source("checkOrProcessTable.... | /src/app.R | no_license | manugarciaquismondo/biomarkerviewer | R | false | false | 487 | r | # 10/29/2016. Author: Manu Garcia-Quismondo
#if (interactive()) {
# shinyApp(ui, server)
#}
library(shiny)
library(shinyjs)
source("AppRoutes.R")
setwd(source.route)
# source("AppRoutes.R")
# source("createHistogramTable.R")
setwd(source.route)
source("loadTables.R")
setwd(source.route)
source("checkOrProcessTable.... |
set.seed(123)
data(mtcars)
model <-
stats::lm(
formula = wt ~ am * cyl * vs,
data = mtcars
)
test_that("model_parameters-rank_deficiency", {
expect_message(model_parameters(model))
params <- suppressMessages(model_parameters(model))
expect_equal(params$Parameter, c("(Intercept)", "am", "cy... | /tests/testthat/test-rank_deficienty.R | no_license | cran/parameters | R | false | false | 486 | r | set.seed(123)
data(mtcars)
model <-
stats::lm(
formula = wt ~ am * cyl * vs,
data = mtcars
)
test_that("model_parameters-rank_deficiency", {
expect_message(model_parameters(model))
params <- suppressMessages(model_parameters(model))
expect_equal(params$Parameter, c("(Intercept)", "am", "cy... |
#실험할것입니다.
#패키지 설치
install.packages(c('shiny','magritt','stringr','ggplot2'))
getwd()
##패키지 실행
library(shiny)
library(magrittr)
library(stringr)
library(ggplot2)
###본코드
##데이터 불러오기
ticker<-read.csv('./data/KOR_ticker.csv',encoding = "euc-kr" ,row.names = 1)
ticker$종목코드=str_pad(ticker$종목코드,6,side=c("left"),pad='0')
ind<-t... | /shiny.R | no_license | kiki3700/ShinyIndustryAnalysis | R | false | false | 22,756 | r | #실험할것입니다.
#패키지 설치
install.packages(c('shiny','magritt','stringr','ggplot2'))
getwd()
##패키지 실행
library(shiny)
library(magrittr)
library(stringr)
library(ggplot2)
###본코드
##데이터 불러오기
ticker<-read.csv('./data/KOR_ticker.csv',encoding = "euc-kr" ,row.names = 1)
ticker$종목코드=str_pad(ticker$종목코드,6,side=c("left"),pad='0')
ind<-t... |
emails = read.csv("./Data/emails.csv", stringsAsFactors = F)
source('TermDocumentMatrix.R')
EmailsDF = TextDataFrame(TermMatrix(emails$text))
EmailsDF$Spam = as.factor(emails$spam)
#Split the data
set.seed(123)
Spl = caTools::sample.split(EmailsDF$Spam, SplitRatio = 0.7)
source('TrainTestDataset.R')
trai... | /ROC-AllModels.R | no_license | smotrova/R-Flexdashboard-TextAnalytics | R | false | false | 2,839 | r | emails = read.csv("./Data/emails.csv", stringsAsFactors = F)
source('TermDocumentMatrix.R')
EmailsDF = TextDataFrame(TermMatrix(emails$text))
EmailsDF$Spam = as.factor(emails$spam)
#Split the data
set.seed(123)
Spl = caTools::sample.split(EmailsDF$Spam, SplitRatio = 0.7)
source('TrainTestDataset.R')
trai... |
Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jdk1.8.0_91\\jre')
library(stringr)
library(data.table)
library(openNLP)
library(NLP)
sent_token_annotator <- Maxent_Sent_Token_Annotator()
word_token_annotator <- Maxent_Word_Token_Annotator()
pos_tag_annotator <- Maxent_POS_Tag_Annotator()
unigram_dt <- readR... | /helpers.R | no_license | Abhishek2017/Next-Word-Prediction | R | false | false | 5,523 | r | Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jdk1.8.0_91\\jre')
library(stringr)
library(data.table)
library(openNLP)
library(NLP)
sent_token_annotator <- Maxent_Sent_Token_Annotator()
word_token_annotator <- Maxent_Word_Token_Annotator()
pos_tag_annotator <- Maxent_POS_Tag_Annotator()
unigram_dt <- readR... |
library(leaflet)
library(purrr)
library(dplyr)
library(glue)
library(sf)
acs_poverty_county_sp <- st_read(here::here("data", "original", "acs_poverty_county.geojson"))
# -------------------------------------------------------------------------------------------------
# check ranges for three variables of interest
# ... | /src/Mapping/acs_poverty_mapping.R | no_license | DSPG-Young-Scholars-Program/dspg20halifax | R | false | false | 5,350 | r | library(leaflet)
library(purrr)
library(dplyr)
library(glue)
library(sf)
acs_poverty_county_sp <- st_read(here::here("data", "original", "acs_poverty_county.geojson"))
# -------------------------------------------------------------------------------------------------
# check ranges for three variables of interest
# ... |
library(readr)
bptms_Labour_force_by_marital_status_state <- read_csv("C:/Users/MOE/Downloads/bptms-Labour_force_by_marital_status_state.csv")
View(bptms_Labour_force_by_marital_status_state)
| /gettingdata.R | no_license | fuadkpm1980/GettingData-1 | R | false | false | 192 | r | library(readr)
bptms_Labour_force_by_marital_status_state <- read_csv("C:/Users/MOE/Downloads/bptms-Labour_force_by_marital_status_state.csv")
View(bptms_Labour_force_by_marital_status_state)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ensembling.R
\name{ensemble}
\alias{ensemble}
\alias{ensemble_forecasts}
\title{Combine (Ensemble) Casts}
\usage{
ensemble_forecasts(
main = ".",
method = "unwtavg",
forecasts_groups = NULL,
forecasts_ids = NULL,
forecast_table = NU... | /man/ensemble.Rd | permissive | weecology/portalcasting | R | false | true | 3,200 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ensembling.R
\name{ensemble}
\alias{ensemble}
\alias{ensemble_forecasts}
\title{Combine (Ensemble) Casts}
\usage{
ensemble_forecasts(
main = ".",
method = "unwtavg",
forecasts_groups = NULL,
forecasts_ids = NULL,
forecast_table = NU... |
setwd("~/Documents/git/DL")
# 1
# minst0_test <- read.table(file = "./minst0_test.dat")
# minst0_train <- read.table(file = "./minst0_train.dat")
# minst9_test <- read.table(file = "./minst9_test.dat")
# minst9_train <- read.table(file = "./minst9_train.dat")
# save(list = c("minst0_test", "minst0_train", "minst9_test... | /hw3draft.R | permissive | lilian743/DL | R | false | false | 14,415 | r | setwd("~/Documents/git/DL")
# 1
# minst0_test <- read.table(file = "./minst0_test.dat")
# minst0_train <- read.table(file = "./minst0_train.dat")
# minst9_test <- read.table(file = "./minst9_test.dat")
# minst9_train <- read.table(file = "./minst9_train.dat")
# save(list = c("minst0_test", "minst0_train", "minst9_test... |
## You must check the 'check' parameter
mainAgeing = function(file = 'http://ves-ebi-d0:8090/mi/impc/dev/solr/experiment/select?q=*%3A*&fq=procedure_stable_id%3AIMPC_ECG_002&rows=590000&wt=csv&indent=true' ,
sep = ',' ,
na.strings = 'NA' ... | /Late adults stats pipeline/DRrequiredAgeing/DRrequiredAgeingPackage/R/main.R | permissive | xhyuo/impc_stats_pipeline | R | false | false | 44,714 | r | ## You must check the 'check' parameter
mainAgeing = function(file = 'http://ves-ebi-d0:8090/mi/impc/dev/solr/experiment/select?q=*%3A*&fq=procedure_stable_id%3AIMPC_ECG_002&rows=590000&wt=csv&indent=true' ,
sep = ',' ,
na.strings = 'NA' ... |
library(synapser)
library(tidyverse)
library(magrittr)
library(wrapr)
library(data.table)
synLogin()
source("../../../utils.R")
REQ_COLS <- c("HLA_ALLELE", "ALT_EPI_SEQ", "VAR_ID")
REQ_RANKED_COLS <- c(REQ_COLS, "RANK")
OPT_COLS <- c(
"SCORE",
"REF_EPI_SEQ",
"PEP_LEN",
"HLA_ALLELE_MUT",
"HLA_AL... | /upload_data/Submissions/roundx/make_roundx_prediction_files.R | no_license | Sage-Bionetworks/Tesla-Bigquery-ETL | R | false | false | 6,753 | r | library(synapser)
library(tidyverse)
library(magrittr)
library(wrapr)
library(data.table)
synLogin()
source("../../../utils.R")
REQ_COLS <- c("HLA_ALLELE", "ALT_EPI_SEQ", "VAR_ID")
REQ_RANKED_COLS <- c(REQ_COLS, "RANK")
OPT_COLS <- c(
"SCORE",
"REF_EPI_SEQ",
"PEP_LEN",
"HLA_ALLELE_MUT",
"HLA_AL... |
#' Package: siteFreqBounds
#'
#' A collection of functions plotting model-independent bounds on summary statistics of the site frequency
#' spectrum. See examples
#' for functions \code{\link{f.min}} and \code{\link{f.max}}.
#' @seealso \code{\link{f.min}}
#' @seealso \code{\link{f.max}}
#' @seealso \code{\link{f.thet... | /siteFreqBounds/R/siteFreqBounds.R | no_license | RayneHernandez/ARY | R | false | false | 1,315 | r | #' Package: siteFreqBounds
#'
#' A collection of functions plotting model-independent bounds on summary statistics of the site frequency
#' spectrum. See examples
#' for functions \code{\link{f.min}} and \code{\link{f.max}}.
#' @seealso \code{\link{f.min}}
#' @seealso \code{\link{f.max}}
#' @seealso \code{\link{f.thet... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gadgetlikelihood.R
\name{gadgetlikelihood}
\alias{gadgetlikelihood}
\title{Create a gadgetlikelihood object}
\usage{
gadgetlikelihood(file_name, path, missingOkay = FALSE)
}
\arguments{
\item{file_name}{The name of the likelihood file}
\item... | /man/gadgetlikelihood.Rd | no_license | sCervino/rgadget | R | false | true | 779 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gadgetlikelihood.R
\name{gadgetlikelihood}
\alias{gadgetlikelihood}
\title{Create a gadgetlikelihood object}
\usage{
gadgetlikelihood(file_name, path, missingOkay = FALSE)
}
\arguments{
\item{file_name}{The name of the likelihood file}
\item... |
# Assignment: ASSIGNMENT 3
# Name: Shekhar, Manish
# Date: 2021-03-28
## Load the ggplot2 package
library(ggplot2)
theme_set(theme_minimal())
## Set the working directory to the root of your DSC 520 directory
# setwd("/home/jdoe/Workspaces/dsc520")
# This step was not needed as copied heights.csv to my working direct... | /assignment_03_Shekhar_Manish.R | no_license | datatodecision/stats_for_data_science | R | false | false | 2,688 | r | # Assignment: ASSIGNMENT 3
# Name: Shekhar, Manish
# Date: 2021-03-28
## Load the ggplot2 package
library(ggplot2)
theme_set(theme_minimal())
## Set the working directory to the root of your DSC 520 directory
# setwd("/home/jdoe/Workspaces/dsc520")
# This step was not needed as copied heights.csv to my working direct... |
#Load data
plastics <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-01-26/plastics.csv')
#Load libraries
library(tidyr)
library(dplyr)
library(plyr)
library(readr)
library(plotrix)
library(ggplot2)
library(forcats)
plastics$year<-as.character(plastics$year)#chan... | /20210126/tidyscript_20210126.R | no_license | jsglanz/TidyTuesdayCSUN | R | false | false | 5,947 | r | #Load data
plastics <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-01-26/plastics.csv')
#Load libraries
library(tidyr)
library(dplyr)
library(plyr)
library(readr)
library(plotrix)
library(ggplot2)
library(forcats)
plastics$year<-as.character(plastics$year)#chan... |
FSTAT = function(dat, LV, ALV=NULL, covariate=NULL) {
# Calculate F-statistics and parametric significance
m = dim(dat)[1]
n = dim(dat)[2]
if(is.null(ALV)) {
if(is.null(covariate)) {
model.alt = model.matrix(seq(n) ~ LV)
model.null = model.matrix(seq(n) ~ 1)
}
if(!is.null(covariate)) {
model.a... | /jackstraw/R/generic.R | no_license | ingted/R-Examples | R | false | false | 2,051 | r | FSTAT = function(dat, LV, ALV=NULL, covariate=NULL) {
# Calculate F-statistics and parametric significance
m = dim(dat)[1]
n = dim(dat)[2]
if(is.null(ALV)) {
if(is.null(covariate)) {
model.alt = model.matrix(seq(n) ~ LV)
model.null = model.matrix(seq(n) ~ 1)
}
if(!is.null(covariate)) {
model.a... |
trainData <- read.csv("C:\\REGIS\\practium1\\data\\train.csv",header = TRUE , stringsAsFactors = FALSE)
testData <- read.csv("C:\\REGIS\\practium1\\data\\test.csv",header = TRUE , stringsAsFactors = FALSE)
head(trainData$SalePrice)
train_index <- 1460
str(trainData)
str(testData)
testData$SalePrice <- 0
# ... | /clean_data.R | no_license | minhthien/Practicum1-house_price-regression | R | false | false | 4,510 | r | trainData <- read.csv("C:\\REGIS\\practium1\\data\\train.csv",header = TRUE , stringsAsFactors = FALSE)
testData <- read.csv("C:\\REGIS\\practium1\\data\\test.csv",header = TRUE , stringsAsFactors = FALSE)
head(trainData$SalePrice)
train_index <- 1460
str(trainData)
str(testData)
testData$SalePrice <- 0
# ... |
testlist <- list(a = -235802142L, b = 41L, x = -488377871L)
result <- do.call(grattan:::anyOutside,testlist)
str(result) | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610128507-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 120 | r | testlist <- list(a = -235802142L, b = 41L, x = -488377871L)
result <- do.call(grattan:::anyOutside,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/its.root.R
\docType{data}
\name{its.root}
\alias{its.root}
\title{An Experiment Level phyloseq Object}
\format{
A phyloseq object with otu_table, sample_data and tax_table. The sample_data variables are:
\describe{
\item{P}{Phosporous level... | /man/its.root.Rd | no_license | jfq3/QsRutils | R | false | true | 555 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/its.root.R
\docType{data}
\name{its.root}
\alias{its.root}
\title{An Experiment Level phyloseq Object}
\format{
A phyloseq object with otu_table, sample_data and tax_table. The sample_data variables are:
\describe{
\item{P}{Phosporous level... |
# b)
pol_div <- function(p, q){
# temporary array for xor'ing
tmp <- p[1:length(q)]
result <- c()
i <- length(q)
while(i <= length(p)) {
result <- c(result, tmp[1])
i <- i + 1
if(tmp[1] == 1){
tmp2 <- xor(tmp, q)
} else {
tmp2 <- xor(tmp, rep(0, length(q)))
}
... | /uebung4/uebung4-3.r | no_license | reitermarkus/rnit | R | false | false | 1,405 | r | # b)
pol_div <- function(p, q){
# temporary array for xor'ing
tmp <- p[1:length(q)]
result <- c()
i <- length(q)
while(i <= length(p)) {
result <- c(result, tmp[1])
i <- i + 1
if(tmp[1] == 1){
tmp2 <- xor(tmp, q)
} else {
tmp2 <- xor(tmp, rep(0, length(q)))
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cancensus.R
\name{search_census_regions}
\alias{search_census_regions}
\title{Query the CensusMapper API for regions with names matching a searchterm.}
\usage{
search_census_regions(searchterm, dataset, level = NA, ...)
}
\arguments{
\item{se... | /man/search_census_regions.Rd | permissive | sasha-ruby/cancensus | R | false | true | 1,250 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cancensus.R
\name{search_census_regions}
\alias{search_census_regions}
\title{Query the CensusMapper API for regions with names matching a searchterm.}
\usage{
search_census_regions(searchterm, dataset, level = NA, ...)
}
\arguments{
\item{se... |
# beeswarm.R
#
# Aron Charles Eklund
#
# A part of the "beeswarm" R package
#
beeswarm <- function (x, ...)
UseMethod("beeswarm")
## here x should be a list or data.frame or numeric
beeswarm.default <- function(x,
method = c("swarm", "center", "hex", "square"),
vertical = TRUE, horizontal = !vertical,... | /beeswarm/R/beeswarm.R | no_license | ingted/R-Examples | R | false | false | 14,796 | r | # beeswarm.R
#
# Aron Charles Eklund
#
# A part of the "beeswarm" R package
#
beeswarm <- function (x, ...)
UseMethod("beeswarm")
## here x should be a list or data.frame or numeric
beeswarm.default <- function(x,
method = c("swarm", "center", "hex", "square"),
vertical = TRUE, horizontal = !vertical,... |
### Basic Models ###
library(data.table)
library(MatrixModels)
library(e1071)
library(FNN)
library(glmnet)
library(ranger)
library(xgboost)
# error measure
mse = function(ydash, y) {
mse = mean((y - ydash)^2)
return(mse)
}
# load and combine dataset
train = fread("BlogFeedback-Train.csv")
test = fread("BlogFeed... | /6.Code/2.Baseline-Model.R | no_license | rajbharat/Ensemble-Predict-No-Of-Comments-On-BlogPost | R | false | false | 1,783 | r | ### Basic Models ###
library(data.table)
library(MatrixModels)
library(e1071)
library(FNN)
library(glmnet)
library(ranger)
library(xgboost)
# error measure
mse = function(ydash, y) {
mse = mean((y - ydash)^2)
return(mse)
}
# load and combine dataset
train = fread("BlogFeedback-Train.csv")
test = fread("BlogFeed... |
library(data.table)
library(R.utils)
# Do not output scientific notation
options(scipen=999)
# initial garbage collection
gc()
# Set command line arguments
args <- commandArgs(TRUE)
CGmap <- args[1]
outFile <- args[2]
aggregateStrandsCG <- function(CGmap){
# Create the temp directory for uncompres... | /analysis_scripts/aggregateStrandsFromCGMap.R | no_license | SamBuckberry/Neural_rosette_methylomes | R | false | false | 1,877 | r | library(data.table)
library(R.utils)
# Do not output scientific notation
options(scipen=999)
# initial garbage collection
gc()
# Set command line arguments
args <- commandArgs(TRUE)
CGmap <- args[1]
outFile <- args[2]
aggregateStrandsCG <- function(CGmap){
# Create the temp directory for uncompres... |
set.seed(0102)
options(htmlwidgets.TOJSON_ARGS = list(pretty = TRUE))
Sys.setenv(R_KNITR_OPTIONS = 'knitr.chunk.tidy = FALSE')
##knitr::opts_chunk$set(out.width = '100%')
library(leaflet)
f = rmarkdown::render(commandArgs(TRUE))
print(f)
## combine with the headers and footers
header <- readLines("_includes/before_body... | /R/compile.R | no_license | richardbeare/MelbourneSTEMIAccess | R | false | false | 436 | r | set.seed(0102)
options(htmlwidgets.TOJSON_ARGS = list(pretty = TRUE))
Sys.setenv(R_KNITR_OPTIONS = 'knitr.chunk.tidy = FALSE')
##knitr::opts_chunk$set(out.width = '100%')
library(leaflet)
f = rmarkdown::render(commandArgs(TRUE))
print(f)
## combine with the headers and footers
header <- readLines("_includes/before_body... |
## Exploratory Data Analysis - Course Project 1
## Plot 3
## Libraries:
library(sqldf)
## Download the data set:
## download.file("https://d396qusza40orc.cloudfront.net/exdata/data/household_power_consumption.zip", "household_power_consumption.zip")
## Load data into data frame:
top = read.csv("household_power_consu... | /plot3.R | no_license | jerosmith/ExData_Plotting1 | R | false | false | 1,250 | r | ## Exploratory Data Analysis - Course Project 1
## Plot 3
## Libraries:
library(sqldf)
## Download the data set:
## download.file("https://d396qusza40orc.cloudfront.net/exdata/data/household_power_consumption.zip", "household_power_consumption.zip")
## Load data into data frame:
top = read.csv("household_power_consu... |
#################################################################################
# File Name: Robustness_years.R
# Project: EU ETS effectiveness paper
# Purpose: Creates gsynth estimates and 95% CIs for different years of treatment assignment
# Data input: ../Data/ETS_analysis.RData
# Output File:
# Aut... | /seminars/03 - match-n-synth/BayerAklin2020/Analysis/SI6_Robustness_years.R | no_license | l5d1l5/CausalInference | R | false | false | 3,227 | r |
#################################################################################
# File Name: Robustness_years.R
# Project: EU ETS effectiveness paper
# Purpose: Creates gsynth estimates and 95% CIs for different years of treatment assignment
# Data input: ../Data/ETS_analysis.RData
# Output File:
# Aut... |
# Packages and functions --------------------------------------------------
# library(data.table)
library(tidyverse)
library(geosphere)
# library(igraph)
library(lubridate)
library(ggmap)
# Get data ----------------------------------------------------------------
#' The source of data: http://opendata.pra... | /main.R | no_license | matuladominik/PublicTransportArrival | R | false | false | 10,317 | r | # Packages and functions --------------------------------------------------
# library(data.table)
library(tidyverse)
library(geosphere)
# library(igraph)
library(lubridate)
library(ggmap)
# Get data ----------------------------------------------------------------
#' The source of data: http://opendata.pra... |
trim <-
function(x) {
sub(" *([^ ]+) *", "\\1", x)
}
#===================================================================================================
trimLR <-
function(x) {
sub("^[[:space:]]*(.*?)[[:space:]]*$", "\\1", x, perl=TRUE)
}
#=====================================================================... | /aTools/R/wgs.R | no_license | wanggangsheng/SWATopt | R | false | false | 33,513 | r | trim <-
function(x) {
sub(" *([^ ]+) *", "\\1", x)
}
#===================================================================================================
trimLR <-
function(x) {
sub("^[[:space:]]*(.*?)[[:space:]]*$", "\\1", x, perl=TRUE)
}
#=====================================================================... |
f174dc23e22f6d29a2893047e36a2e70 dungeon_i25-m12-u3-v0.pddl_planlen=7.qdimacs 5559 47453 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i25-m12-u3-v0.pddl_planlen=7/dungeon_i25-m12-u3-v0.pddl_planlen=7.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 88 | r | f174dc23e22f6d29a2893047e36a2e70 dungeon_i25-m12-u3-v0.pddl_planlen=7.qdimacs 5559 47453 |
##---------------------------helper functions--------------------------------------##
## install (if needed) and require packages
require_libraries<-function(package_list,verb=T){
for (lib in package_list) {
chk_install<-!(lib %in% installed.packages()[,"Package"])
if(chk_install){
install.packages(lib)... | /R/util.R | permissive | kumc-bmi/AKI_CDM | R | false | false | 47,384 | r | ##---------------------------helper functions--------------------------------------##
## install (if needed) and require packages
require_libraries<-function(package_list,verb=T){
for (lib in package_list) {
chk_install<-!(lib %in% installed.packages()[,"Package"])
if(chk_install){
install.packages(lib)... |
structure(list(url = "https://storage.googleapis.com/twttr-user-compliance/1460716596591312898/submission/1400164763938787342_1460716596591312898?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=complianceapi-public-svc-acct%40twttr-compliance-public-prod.iam.gserviceaccount.com%2F20211116%2Fauto%2Fstorage%2Fgoog4_r... | /tests/testthat/storage.googleapis.com/twttr-user-compliance/1460716596591312898/submission/1400164763938787342_1460716596591312898-b681c2-PUT.R | permissive | cjbarrie/academictwitteR | R | false | false | 3,417 | r | structure(list(url = "https://storage.googleapis.com/twttr-user-compliance/1460716596591312898/submission/1400164763938787342_1460716596591312898?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=complianceapi-public-svc-acct%40twttr-compliance-public-prod.iam.gserviceaccount.com%2F20211116%2Fauto%2Fstorage%2Fgoog4_r... |
context("Utility Functions")
library(ffcAPIClient)
## Commented out because I can't figure out how to get it to compare by matched columns and rows, and allow for some floating point variation
#test_that("Online Flow Metrics and Offline Are Comparable", {
# metrics_offline <- get_predicted_flow_metrics_offline(806098... | /ffcAPIClient/tests/testthat/test-utils.R | no_license | Yesicaleo/ffc_api_client | R | false | false | 1,095 | r | context("Utility Functions")
library(ffcAPIClient)
## Commented out because I can't figure out how to get it to compare by matched columns and rows, and allow for some floating point variation
#test_that("Online Flow Metrics and Offline Are Comparable", {
# metrics_offline <- get_predicted_flow_metrics_offline(806098... |
## makeCachematrix creates a special matrix object that can cache its inverse, the function contains 4 functions
##set, get setinverse, getinverse
##set the value of the matrix (overwrites value given with makeCacheMatrix)
##get the value of the matrix
##setinverse -> set the inverse matrix value (not the outcome of th... | /cachematrix.R | no_license | Test1two3/ProgrammingAssignment2 | R | false | false | 1,405 | r | ## makeCachematrix creates a special matrix object that can cache its inverse, the function contains 4 functions
##set, get setinverse, getinverse
##set the value of the matrix (overwrites value given with makeCacheMatrix)
##get the value of the matrix
##setinverse -> set the inverse matrix value (not the outcome of th... |
###########################################################################
####################### Analysis (1) BE CR ################################
###########################################################################
filename = "D:\\Results_paper\\BE CR\\"
setwd("H:\\My documents\\Visual Studio 2010\\Pro... | /R_Code/Draw_PAR.R | no_license | Elansary-Mahmoud/pigendeff | R | false | false | 9,601 | r | ###########################################################################
####################### Analysis (1) BE CR ################################
###########################################################################
filename = "D:\\Results_paper\\BE CR\\"
setwd("H:\\My documents\\Visual Studio 2010\\Pro... |
#' 01310 Gas Bubbles (Severity)
#'
#' A table containing the USGS Gas Bubbles (Severity) parameter codes.
#'
#' @format A data frame with 5 rows and 3 variables:
#' \describe{
#' \item{Parameter Code}{USGS Parameter Code}
#' \item{Fixed Value}{Fixed Value}
#' \item{Fixed Text}{Fixed Text}
#' }
#'
#'
#' @references
#' T... | /R/pmcode_01310.R | permissive | cran/ie2miscdata | R | false | false | 546 | r | #' 01310 Gas Bubbles (Severity)
#'
#' A table containing the USGS Gas Bubbles (Severity) parameter codes.
#'
#' @format A data frame with 5 rows and 3 variables:
#' \describe{
#' \item{Parameter Code}{USGS Parameter Code}
#' \item{Fixed Value}{Fixed Value}
#' \item{Fixed Text}{Fixed Text}
#' }
#'
#'
#' @references
#' T... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DicomRDS.R
\docType{data}
\name{DicomRDS}
\alias{DicomRDS}
\title{DicomRDS Class}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
DicomRDS$new(data)
}
\arguments{
\item{data}{Data frame imported from DICOM RDS file}
... | /man/DicomRDS.Rd | no_license | Ji-Eon/Radiology-CDM | R | false | true | 1,463 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DicomRDS.R
\docType{data}
\name{DicomRDS}
\alias{DicomRDS}
\title{DicomRDS Class}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
DicomRDS$new(data)
}
\arguments{
\item{data}{Data frame imported from DICOM RDS file}
... |
#!/usr/bin/env Rscript
#
# @license Apache-2.0
#
# Copyright (c) 2018 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | /lib/node_modules/@stdlib/random/base/gumbel/benchmark/r/benchmark.R | permissive | doc22940/stdlib | R | false | false | 2,921 | r | #!/usr/bin/env Rscript
#
# @license Apache-2.0
#
# Copyright (c) 2018 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... |
## Put comments here that give an overall description of what your
## functions do
## Create a list of functions tied to a specific matrix for use in future functions.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL #creates inverse object, sets it to NULL
set <- function(y){
x <... | /cachematrix.R | no_license | novajess/ProgrammingAssignment2 | R | false | false | 1,486 | r | ## Put comments here that give an overall description of what your
## functions do
## Create a list of functions tied to a specific matrix for use in future functions.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL #creates inverse object, sets it to NULL
set <- function(y){
x <... |
###############################################################################
# Package documentation
###############################################################################
#' @title ggRandomForests: Visually Exploring Random Forests
#'
#' @description \code{ggRandomForests} is a utility package for \code{r... | /Methodology/Survival Model Research/ggRandomForests/ggRandomForests-master/R/help.R | no_license | ryerex/Research_and_Methods | R | false | false | 4,812 | r | ###############################################################################
# Package documentation
###############################################################################
#' @title ggRandomForests: Visually Exploring Random Forests
#'
#' @description \code{ggRandomForests} is a utility package for \code{r... |
# 데이터 분석가 _ james \
# \
# 스크립트 실행(Run a script) \
## : Windows : 'Ctrl + Enter' \
## : MAC : 'Command + Enter'\
#---------------------------------
#1. 상관관계분석(Correlation) :연속형 데이터로 진행한다. 범주형으로는 X
height<-c(164,175,166,185)
weight<-c(62,70,64,86)
cor(height,weight)
r... | /나노_8day.R | no_license | julesdata/R_basic | R | false | false | 8,821 | r | # 데이터 분석가 _ james \
# \
# 스크립트 실행(Run a script) \
## : Windows : 'Ctrl + Enter' \
## : MAC : 'Command + Enter'\
#---------------------------------
#1. 상관관계분석(Correlation) :연속형 데이터로 진행한다. 범주형으로는 X
height<-c(164,175,166,185)
weight<-c(62,70,64,86)
cor(height,weight)
r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrap.R
\name{create_temp_table}
\alias{create_temp_table}
\title{Create a temporary table}
\usage{
create_temp_table(sql, table_name)
}
\arguments{
\item{table_name}{The name of the temp table you wish to create}
\item{sql:}{The SQL table yo... | /man/create_temp_table.Rd | permissive | moj-analytical-services/dbtools | R | false | true | 599 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrap.R
\name{create_temp_table}
\alias{create_temp_table}
\title{Create a temporary table}
\usage{
create_temp_table(sql, table_name)
}
\arguments{
\item{table_name}{The name of the temp table you wish to create}
\item{sql:}{The SQL table yo... |
MRT_1F <-c(517.1468515630205, 85.13094142168089, 30.333207896694553, 12.694776264558937, 3.3041601673945418, 1.1823111717498882, 1.1892293502386786)
MRT_3F <-c(156.68929936163462, 11.540837783562276, 0.4512835621696538, 0.4509797929766453, 0.4502068233039181, 0.4496185276300172, 0.4543157082191288)
MRT_5F <-c(83.9031... | /exercio12.R | no_license | Tiagoblima/r-course-ufrpe | R | false | false | 4,471 | r | MRT_1F <-c(517.1468515630205, 85.13094142168089, 30.333207896694553, 12.694776264558937, 3.3041601673945418, 1.1823111717498882, 1.1892293502386786)
MRT_3F <-c(156.68929936163462, 11.540837783562276, 0.4512835621696538, 0.4509797929766453, 0.4502068233039181, 0.4496185276300172, 0.4543157082191288)
MRT_5F <-c(83.9031... |
rnorm(1)
rnorm(2)
rnorm(3)
rnorm(4)
| /Rcode.R | no_license | Ysluib/gitlearning | R | false | false | 36 | r | rnorm(1)
rnorm(2)
rnorm(3)
rnorm(4)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{allstations}
\alias{allstations}
\title{A tibble of all Canadian Stations stations and their names.}
\format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 7791 rows and 3 colum... | /man/allstations.Rd | permissive | lawinslow/tidyhydat | R | false | true | 490 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{allstations}
\alias{allstations}
\title{A tibble of all Canadian Stations stations and their names.}
\format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 7791 rows and 3 colum... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{add_guide_legend}
\alias{add_guide_legend}
\title{Defunct function for adding a legend}
\usage{
add_guide_legend(...)
}
\arguments{
\item{...}{Other arguments.}
}
\description{
This function has been replaced with \code{\link{add_legend}}.
}
| /man/add_guide_legend.Rd | no_license | rlzijdeman/ggvis | R | false | false | 302 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{add_guide_legend}
\alias{add_guide_legend}
\title{Defunct function for adding a legend}
\usage{
add_guide_legend(...)
}
\arguments{
\item{...}{Other arguments.}
}
\description{
This function has been replaced with \code{\link{add_legend}}.
}
|
## PROJECT 1 : MODULE 1 ##
## SCRIPT FOR DATA MINING ##
library(twitteR)
library(df2json)
#library(rjson)
library(jsonlite)
CONSUMER_KEY <- "***********************"
CONSUMER_SECRET <- "*******************************************"
ACCESS_TOKEN <- "*******************************************"
ACCESS_TOKEN_SECRET <- "... | /UB DIC Projects/Project1_R Data Analytics/Tweet Collection and Import/CollectP1athigale.R | no_license | aniket898/UBProjects | R | false | false | 741 | r | ## PROJECT 1 : MODULE 1 ##
## SCRIPT FOR DATA MINING ##
library(twitteR)
library(df2json)
#library(rjson)
library(jsonlite)
CONSUMER_KEY <- "***********************"
CONSUMER_SECRET <- "*******************************************"
ACCESS_TOKEN <- "*******************************************"
ACCESS_TOKEN_SECRET <- "... |
#Title: worm species densities in deep-sea
#Purpose:
#Name: Ville Lehtonen
#R-version: 3.6
setwd('/home/villelehtonen/Desktop/statw-r')
Nemaspec <- read.csv("data/nemaspec.csv", header=TRUE, row.names = 1)
head(Nemaspec)
#1
dens <- Nemaspec$M160b
#2
dens <- dens[dens != 0] #remove zeros
#3
N <- sum(dens)
#4
p <- dens... | /Chapter4.R | no_license | violehtone/Statistics-with-r | R | false | false | 583 | r | #Title: worm species densities in deep-sea
#Purpose:
#Name: Ville Lehtonen
#R-version: 3.6
setwd('/home/villelehtonen/Desktop/statw-r')
Nemaspec <- read.csv("data/nemaspec.csv", header=TRUE, row.names = 1)
head(Nemaspec)
#1
dens <- Nemaspec$M160b
#2
dens <- dens[dens != 0] #remove zeros
#3
N <- sum(dens)
#4
p <- dens... |
#
# 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/
#
source('getData.R')
library(kableExtra)
library(shiny)
# Define server logic required to draw a histogra... | /VolForecaster/server.R | no_license | cobleg/VolForecaster | R | false | false | 4,337 | 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/
#
source('getData.R')
library(kableExtra)
library(shiny)
# Define server logic required to draw a histogra... |
# Log-likelihood function:
test_that("loglik_function remains stable", {
## vector-based:
### Test with 'shock':
x <- shock$distance
status <- shock$status
### log-location scale distributions (two-parametric):
dists <- c("weibull", "lognormal", "loglogistic")
logL <- lapply(
dists,
loglik_funct... | /tests/testthat/test-likelihood_functions.R | no_license | Tim-TU/weibulltools | R | false | false | 1,651 | r | # Log-likelihood function:
test_that("loglik_function remains stable", {
## vector-based:
### Test with 'shock':
x <- shock$distance
status <- shock$status
### log-location scale distributions (two-parametric):
dists <- c("weibull", "lognormal", "loglogistic")
logL <- lapply(
dists,
loglik_funct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.