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 |
|---|---|---|---|---|---|---|---|---|---|
context("internals")
test_that("comparisons<REALSXP> works as expected (#275)", {
res <- test_comparisons()
expect_true(all(res))
})
| /tests/testthat/test-internals.r | no_license | garrettgman/dplyr | R | false | false | 138 | r | context("internals")
test_that("comparisons<REALSXP> works as expected (#275)", {
res <- test_comparisons()
expect_true(all(res))
})
|
df <- c(1, 3, 5, 10)
x <- seq(0, 20, by=0.01)
chi2.1 <- dchisq(x, df[1])
chi2.3 <- dchisq(x, df[2])
chi2.5 <- dchisq(x, df[3])
chi2.10 <- dchisq(x, df[4])
plot(x, type="n", xlim=c(0, 20), ylim=c(0, 0.3), main="", xlab="x", ylab="", axes=F)
axis(1)
axis(2)
lines(x, chi2.1, lty=1)
lines(x, chi2.3, lty=2)
lines(x, chi2.5... | /r_exam/제대로_알고_쓰는_R_통계_분석/sourcebook/source/Chapter04/source/04.chi2byk.R | no_license | mgh3326/GyeonggiBigDataSpecialist | R | false | false | 410 | r | df <- c(1, 3, 5, 10)
x <- seq(0, 20, by=0.01)
chi2.1 <- dchisq(x, df[1])
chi2.3 <- dchisq(x, df[2])
chi2.5 <- dchisq(x, df[3])
chi2.10 <- dchisq(x, df[4])
plot(x, type="n", xlim=c(0, 20), ylim=c(0, 0.3), main="", xlab="x", ylab="", axes=F)
axis(1)
axis(2)
lines(x, chi2.1, lty=1)
lines(x, chi2.3, lty=2)
lines(x, chi2.5... |
###################################################################
# Data analysis script for error consistency analysis
# -------------------------------------------------------
# Based on: R version 3.5.1
###################################################################
source("data-analysis-helper.R")
FIG... | /error-consistency/data-analysis/data-analysis.R | no_license | Sandy4321/cnn_txf_bias | R | false | false | 17,125 | r | ###################################################################
# Data analysis script for error consistency analysis
# -------------------------------------------------------
# Based on: R version 3.5.1
###################################################################
source("data-analysis-helper.R")
FIG... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SeasModdet.R
\name{SeasModdet}
\alias{SeasModdet}
\title{Generate an output matrix for one simulation}
\usage{
SeasModdet(pHSinit = 0.8, Kx = 100, betax = 0.02, wx = 0.8, hx = 1,
mx = 1, ax = 1, rx = 0.1, zx = 0.9, gx = 4, cx = 0.9, phix = ... | /man/SeasModdet.Rd | no_license | robchoudhury/seedHealth | R | false | true | 1,458 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SeasModdet.R
\name{SeasModdet}
\alias{SeasModdet}
\title{Generate an output matrix for one simulation}
\usage{
SeasModdet(pHSinit = 0.8, Kx = 100, betax = 0.02, wx = 0.8, hx = 1,
mx = 1, ax = 1, rx = 0.1, zx = 0.9, gx = 4, cx = 0.9, phix = ... |
#--- function: stat4
# OBJECTIVE: compute test statistic 4 (T_4 from manuscript) for a given dataset
# INPUTS: data : (data.frame) data frame with id, cluster, treatment, time, and outcome information. Of the form of genNet()[[2]]
# network : (array [n, n, tau+1]) network information; 1 for contact be... | /testStat4.R | no_license | shaina-alexandria/netrix | R | false | false | 732 | r | #--- function: stat4
# OBJECTIVE: compute test statistic 4 (T_4 from manuscript) for a given dataset
# INPUTS: data : (data.frame) data frame with id, cluster, treatment, time, and outcome information. Of the form of genNet()[[2]]
# network : (array [n, n, tau+1]) network information; 1 for contact be... |
#function.path = "function_code.R"
#source(file = function.path)
load("wk_wkd.RData")
#level set setting (weekend & weekdays)
#--------------------------------------
z <- obs.rank(2015, 71, "Weekend")
tag <- c("z1","z2")
rank.time.dt(data = z, tag = tag, time = "Weekend")
#single alpha = 0.05
#----------... | /wk_wkd.R | no_license | yliao2/caps-data-code | R | false | false | 17,276 | r | #function.path = "function_code.R"
#source(file = function.path)
load("wk_wkd.RData")
#level set setting (weekend & weekdays)
#--------------------------------------
z <- obs.rank(2015, 71, "Weekend")
tag <- c("z1","z2")
rank.time.dt(data = z, tag = tag, time = "Weekend")
#single alpha = 0.05
#----------... |
###############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | /strategy.R | no_license | BenderOlsson/RCode | R | false | false | 84,444 | r | ###############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... |
##############################################################
# Authors:
# Alfredo Sanchez-Tojar (@ASanchez_Tojar)
# Profile: https://goo.gl/PmpPEB
# Department of Evolutionary Biology, Bielefeld University (GER)
# Email: alfredo.tojar@gmail.com
# Script first created on the 2nd of July 2019
#####################... | /004_shared_control_implementation.R | permissive | weibokong27/meta-analysis_of_variance | R | false | false | 6,602 | r |
##############################################################
# Authors:
# Alfredo Sanchez-Tojar (@ASanchez_Tojar)
# Profile: https://goo.gl/PmpPEB
# Department of Evolutionary Biology, Bielefeld University (GER)
# Email: alfredo.tojar@gmail.com
# Script first created on the 2nd of July 2019
#####################... |
# Given a task id for a finished knife task and a dataset name,
# SET UP A DRAFT of the machete
# NOTE: it gets datasetname and runid from
# the entries "inputted" into the knife
# even though runid is actually allowed to be different from
# the one for the knife
# arguments:
# 0th is of course the ... | /api/draftMacheteGivenKnifeTask.R | no_license | ericff/auxiliary-code-sMACHETE | R | false | false | 5,731 | r | # Given a task id for a finished knife task and a dataset name,
# SET UP A DRAFT of the machete
# NOTE: it gets datasetname and runid from
# the entries "inputted" into the knife
# even though runid is actually allowed to be different from
# the one for the knife
# arguments:
# 0th is of course the ... |
library("scales")
show_col(tableau_color_pal('tableau20')(20))
show_col(tableau_color_pal('tableau10')(10))
show_col(tableau_color_pal('tableau10medium')(10))
show_col(tableau_color_pal('tableau10light')(10))
show_col(tableau_color_pal('colorblind10')(10))
show_col(tableau_color_pal('trafficlight')(10))
show_col(tabl... | /inst/examples/ex-tableau_color_pal.R | no_license | bobbbbbi/Data-Visualisation-with-ggplot2-ggthemes | R | false | false | 494 | r |
library("scales")
show_col(tableau_color_pal('tableau20')(20))
show_col(tableau_color_pal('tableau10')(10))
show_col(tableau_color_pal('tableau10medium')(10))
show_col(tableau_color_pal('tableau10light')(10))
show_col(tableau_color_pal('colorblind10')(10))
show_col(tableau_color_pal('trafficlight')(10))
show_col(tabl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datastore_objects.R
\name{KindExpression}
\alias{KindExpression}
\title{KindExpression Object}
\usage{
KindExpression(name = NULL)
}
\arguments{
\item{name}{The name of the kind}
}
\value{
KindExpression object
}
\description{
KindExpression ... | /googledatastorev1beta1.auto/man/KindExpression.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datastore_objects.R
\name{KindExpression}
\alias{KindExpression}
\title{KindExpression Object}
\usage{
KindExpression(name = NULL)
}
\arguments{
\item{name}{The name of the kind}
}
\value{
KindExpression object
}
\description{
KindExpression ... |
plot3 <- function() {
## Read data
df <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?",
colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"))
df$Date <- as.Date(df$Date, format="%d/%m/%Y")
## Subse... | /plot3.R | no_license | kimchitsigai/ExData_Plotting1 | R | false | false | 1,218 | r | plot3 <- function() {
## Read data
df <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?",
colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"))
df$Date <- as.Date(df$Date, format="%d/%m/%Y")
## Subse... |
gof.count.obs <- function(y, gof.breaks)
{
Ob <- table(cut(y, gof.breaks, include.lowest = TRUE, right = FALSE))
return(Ob)
}
# f is a density of the form f(x,i), for sample point x and the ith observation
# qq is the number of estimated parameters in f
gof.count <- function(y, f, gof.breaks, qq, max.y = 10000)
{
K... | /R/gof-count.R | no_license | andrewraim/OverdispersionModelsInR | R | false | false | 2,216 | r | gof.count.obs <- function(y, gof.breaks)
{
Ob <- table(cut(y, gof.breaks, include.lowest = TRUE, right = FALSE))
return(Ob)
}
# f is a density of the form f(x,i), for sample point x and the ith observation
# qq is the number of estimated parameters in f
gof.count <- function(y, f, gof.breaks, qq, max.y = 10000)
{
K... |
##'sparse negative binomial mixture model for clustering RNA-seq count data with fused lasso penalty
##' @title sparse negative binomial mixture model for clustering RNA-seq count data with fused lasso penalty.
##' @param data data matrix, where rows represent genes and columns represents samples.
##' @param phi disper... | /snbClust/R/snbClust.fusedlasso.R | no_license | YujiaLi1994/snbClust | R | false | false | 3,241 | r | ##'sparse negative binomial mixture model for clustering RNA-seq count data with fused lasso penalty
##' @title sparse negative binomial mixture model for clustering RNA-seq count data with fused lasso penalty.
##' @param data data matrix, where rows represent genes and columns represents samples.
##' @param phi disper... |
\name{RSS}
\alias{RSS}
\title{Residual sum-of-squares of a fitted model}
\description{
Calculates the residual sum-of-squares for objects of class \code{nls}, \code{lm}, \code{glm}, \code{drc} or any other models from which \code{\link{residuals}} can be extacted. From version 1.3-6, this function uses weights,... | /man/RSS.Rd | no_license | cran/qpcR | R | false | false | 729 | rd | \name{RSS}
\alias{RSS}
\title{Residual sum-of-squares of a fitted model}
\description{
Calculates the residual sum-of-squares for objects of class \code{nls}, \code{lm}, \code{glm}, \code{drc} or any other models from which \code{\link{residuals}} can be extacted. From version 1.3-6, this function uses weights,... |
#install needed packages
install.packages("randomForest")
#import needed libraries
library(rpart)
library(rpart.plot)
library(caret)
library(lattice)
library(ggplot2)
library(randomForest)
#import data
wine_raw <- read.csv('C:/Users/607791/Desktop/DS/winequality-red.csv')
wine_raw$quality<-as.factor(wine... | /Model/PHall_R_DecisionTrees.R | no_license | NerdParker/ML-Models-in-R | R | false | false | 1,512 | r | #install needed packages
install.packages("randomForest")
#import needed libraries
library(rpart)
library(rpart.plot)
library(caret)
library(lattice)
library(ggplot2)
library(randomForest)
#import data
wine_raw <- read.csv('C:/Users/607791/Desktop/DS/winequality-red.csv')
wine_raw$quality<-as.factor(wine... |
## Cache the inverse value of a matrix to avoid repeated calculating it (as it's an expensive operation)
## A wrapper around matrix which adds get, set, setinverse and getinverse methods
makeCacheMatrix <- function(x = matrix()) {
## inverse will store the inverse, it is set to NULL until it has been calculated
... | /cachematrix.R | no_license | ah500/ProgrammingAssignment2 | R | false | false | 1,255 | r | ## Cache the inverse value of a matrix to avoid repeated calculating it (as it's an expensive operation)
## A wrapper around matrix which adds get, set, setinverse and getinverse methods
makeCacheMatrix <- function(x = matrix()) {
## inverse will store the inverse, it is set to NULL until it has been calculated
... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/csv_create.R
\name{create_csv}
\alias{create_csv}
\title{Create Training Data CSV}
\usage{
create_csv(inPred, inClass, numSamps, fromVals, toVals)
}
\arguments{
\item{inClass}{Name and path for the input classified image (High res)}
... | /man/create_csv.Rd | no_license | Tomhigg/fracCover | R | false | false | 2,510 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/csv_create.R
\name{create_csv}
\alias{create_csv}
\title{Create Training Data CSV}
\usage{
create_csv(inPred, inClass, numSamps, fromVals, toVals)
}
\arguments{
\item{inClass}{Name and path for the input classified image (High res)}
... |
# Chapter 6, Q11
# p264
#library(ISLR)
library(MASS)
library(leaps)
## 11a ####
### best subset selection ####
set.seed(1)
n = nrow(Boston)
dim(Boston)[2]-1
train = sample(1:n, n*.7)
#test = (-train)
bss.model <- regsubsets(crim ~ ., data = Boston[train,], method = "exhaustive", nvmax = dim(Boston)[2]-1)
summary.fi... | /chapter06/06_11_melling.R | no_license | saadlaouadi/ISLR | R | false | false | 2,535 | r | # Chapter 6, Q11
# p264
#library(ISLR)
library(MASS)
library(leaps)
## 11a ####
### best subset selection ####
set.seed(1)
n = nrow(Boston)
dim(Boston)[2]-1
train = sample(1:n, n*.7)
#test = (-train)
bss.model <- regsubsets(crim ~ ., data = Boston[train,], method = "exhaustive", nvmax = dim(Boston)[2]-1)
summary.fi... |
#' Syntax highlight and link an HTML page
#'
#' @description
#' * Code blocks, identified by `<pre>` tags with class `sourceCode` and `r`,
#' processed with [highlight()].
#'
#' * Inline code, identified by `<code>` tags that contain only text
#' (and don't have a header tag (e.g. `<h1>`) or `<a>` as an ancestor)
#... | /R/downlit-html.R | permissive | TimTeaFan/downlit | R | false | false | 2,289 | r | #' Syntax highlight and link an HTML page
#'
#' @description
#' * Code blocks, identified by `<pre>` tags with class `sourceCode` and `r`,
#' processed with [highlight()].
#'
#' * Inline code, identified by `<code>` tags that contain only text
#' (and don't have a header tag (e.g. `<h1>`) or `<a>` as an ancestor)
#... |
source('./source/functions.R'); source('./source/graphics.R')
dta <- readRDS('./data/mstat_short_met1.Rds')
dta_sp <- readRDS('./data/spatial.Rds')
cz_sp <- dta_sp[LAT >= 48 & LAT <= 50 & LON >= 13 & LON <= 17, PT_ID]
sca_sp <- dta_sp[LAT >= 55 & LAT <= 65 & LON >= 5 & LON <= 30, PT_ID]
ger_sp <- dta_sp[LAT >= 47 & L... | /bin/2018/comparison_s.R | no_license | imarkonis/dr_chng | R | false | false | 9,267 | r | source('./source/functions.R'); source('./source/graphics.R')
dta <- readRDS('./data/mstat_short_met1.Rds')
dta_sp <- readRDS('./data/spatial.Rds')
cz_sp <- dta_sp[LAT >= 48 & LAT <= 50 & LON >= 13 & LON <= 17, PT_ID]
sca_sp <- dta_sp[LAT >= 55 & LAT <= 65 & LON >= 5 & LON <= 30, PT_ID]
ger_sp <- dta_sp[LAT >= 47 & L... |
library(dplyr)
library(writexl)
#library(plotrix)
library(ggplot2)
# Strategy for use of functions:
# Run bedtools closest on the input target regions bed file and the given gene feature bed file (bedtools_closest)
# Parse the bedtools closest output results to print stats on overlapping features and obta... | /functions.R | no_license | ba-davis/annotateRegions | R | false | false | 20,151 | r |
library(dplyr)
library(writexl)
#library(plotrix)
library(ggplot2)
# Strategy for use of functions:
# Run bedtools closest on the input target regions bed file and the given gene feature bed file (bedtools_closest)
# Parse the bedtools closest output results to print stats on overlapping features and obta... |
# get data
source("get_data.R")
## Open png device, create the plot and close the device.
png(filename = "plot3.png", width = 480, height = 480, units = "px")
cols = c("Sub_metering_1", "Sub_metering_2", "Sub_metering_3")
plot(data$DateTime, data$Sub_metering_1, type="l", xlab="", ylab="Energy sub metering")
lines(d... | /plot3.R | no_license | lr5369/ExData_Plotting1 | R | false | false | 524 | r | # get data
source("get_data.R")
## Open png device, create the plot and close the device.
png(filename = "plot3.png", width = 480, height = 480, units = "px")
cols = c("Sub_metering_1", "Sub_metering_2", "Sub_metering_3")
plot(data$DateTime, data$Sub_metering_1, type="l", xlab="", ylab="Energy sub metering")
lines(d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/umls_api_lookup_functions.R
\name{lookup_content_view_members}
\alias{lookup_content_view_members}
\title{Lookup Content Views}
\usage{
lookup_content_view_members(CUI, pageNumber = NULL, pageSize = NULL)
}
\arguments{
\item{pageNumber}{(opti... | /man/lookup_content_view_members.Rd | no_license | athan-dial/CallMeMaybe | R | false | true | 1,311 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/umls_api_lookup_functions.R
\name{lookup_content_view_members}
\alias{lookup_content_view_members}
\title{Lookup Content Views}
\usage{
lookup_content_view_members(CUI, pageNumber = NULL, pageSize = NULL)
}
\arguments{
\item{pageNumber}{(opti... |
\name{tilenames}
\alias{tilenames}
\alias{tilenames<-}
\alias{tilenames.tess}
\alias{tilenames<-.tess}
\alias{tilenames.lintess}
\alias{tilenames<-.lintess}
\title{Names of Tiles in a Tessellation}
\description{
Extract or Change the Names of the Tiles in a Tessellation.
}
\usage{
tilenames(x)
tilenames(x) <- value
... | /man/tilenames.Rd | no_license | rubak/spatstat | R | false | false | 1,293 | rd | \name{tilenames}
\alias{tilenames}
\alias{tilenames<-}
\alias{tilenames.tess}
\alias{tilenames<-.tess}
\alias{tilenames.lintess}
\alias{tilenames<-.lintess}
\title{Names of Tiles in a Tessellation}
\description{
Extract or Change the Names of the Tiles in a Tessellation.
}
\usage{
tilenames(x)
tilenames(x) <- value
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/context_methylation_functions.r
\name{GetQuasRprj}
\alias{GetQuasRprj}
\title{Get QuasRprj}
\usage{
GetQuasRprj(sampleSheet, genome)
}
\arguments{
\item{sampleSheet}{QuasR pointer file}
\item{genome}{BSgenome}
}
\value{
QuasR project object ... | /man/GetQuasRprj.Rd | no_license | Krebslabrep/SingleMoleculeFootprinting | R | false | true | 585 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/context_methylation_functions.r
\name{GetQuasRprj}
\alias{GetQuasRprj}
\title{Get QuasRprj}
\usage{
GetQuasRprj(sampleSheet, genome)
}
\arguments{
\item{sampleSheet}{QuasR pointer file}
\item{genome}{BSgenome}
}
\value{
QuasR project object ... |
testlist <- list(type = 0L, z = 1.9310161697784e-312)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609891652-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 107 | r | testlist <- list(type = 0L, z = 1.9310161697784e-312)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
testlist <- list(Rext = numeric(0), Rs = numeric(0), Z = numeric(0), alpha = numeric(0), atmp = numeric(0), relh = c(-1.84445564980858e-242, 5.97935653522269e-39, 1.0286791867366e-307, 5.93388628067419e+252, -6.10798253418121e-263, -3.96270958130688, 6.07090976184692e+178, 1.97234986880642e-128, -9.... | /meteor/inst/testfiles/E_Penman/AFL_E_Penman/E_Penman_valgrind_files/1615918465-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,280 | r | testlist <- list(Rext = numeric(0), Rs = numeric(0), Z = numeric(0), alpha = numeric(0), atmp = numeric(0), relh = c(-1.84445564980858e-242, 5.97935653522269e-39, 1.0286791867366e-307, 5.93388628067419e+252, -6.10798253418121e-263, -3.96270958130688, 6.07090976184692e+178, 1.97234986880642e-128, -9.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Account.R
\name{account_portfolio}
\alias{account_portfolio}
\title{Account Portfolio History}
\usage{
account_portfolio(
period = NULL,
timeframe = NULL,
date_end = NULL,
extended_hours = FALSE,
live = as.logical(Sys.getenv("APCA-L... | /man/account_portfolio.Rd | no_license | tanho63/AlpacaforR | R | false | true | 4,275 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Account.R
\name{account_portfolio}
\alias{account_portfolio}
\title{Account Portfolio History}
\usage{
account_portfolio(
period = NULL,
timeframe = NULL,
date_end = NULL,
extended_hours = FALSE,
live = as.logical(Sys.getenv("APCA-L... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_os.R
\name{get_os}
\alias{get_os}
\title{Get current operating system}
\usage{
get_os()
}
\value{
Name of current operating system.
}
\description{
Get current operating system
}
\examples{
get_os()
}
| /man/get_os.Rd | no_license | aedobbyn/dobtools | R | false | true | 284 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_os.R
\name{get_os}
\alias{get_os}
\title{Get current operating system}
\usage{
get_os()
}
\value{
Name of current operating system.
}
\description{
Get current operating system
}
\examples{
get_os()
}
|
\name{PredCRG}
\alias{PredCRG}
\title{
Prediction of circadian proteins using the proposed PredCRG model.
}
\description{
The user can predict the protein sequences as CRG (circadian protein) or non-CRG (non-circadian protein) with certain probability by supplying the test sequences.
}
\usage{
PredCRG(seq_data... | /man/PredCRG.Rd | no_license | cran/PredCRG | R | false | false | 1,301 | rd | \name{PredCRG}
\alias{PredCRG}
\title{
Prediction of circadian proteins using the proposed PredCRG model.
}
\description{
The user can predict the protein sequences as CRG (circadian protein) or non-CRG (non-circadian protein) with certain probability by supplying the test sequences.
}
\usage{
PredCRG(seq_data... |
vehdata <- read.table("C:\\Users\\Tom\\Dropbox\\852 Modern Applied Methods\\R\\vehicle3.txt",header=TRUE,sep=" ")
#head(vehdata)
#dim(vehdata)
# Create 3 sets again:
vehdata$class <- as.factor(vehdata$class)
set.seed(46685326)
perm <- sample(x=nrow(vehdata))
set1 <- vehdata[which(perm<=nrow(vehdata)/2),-20... | /sample/Sureindependencescreening.R | no_license | sfummlab/stat852 | R | false | false | 6,069 | r | vehdata <- read.table("C:\\Users\\Tom\\Dropbox\\852 Modern Applied Methods\\R\\vehicle3.txt",header=TRUE,sep=" ")
#head(vehdata)
#dim(vehdata)
# Create 3 sets again:
vehdata$class <- as.factor(vehdata$class)
set.seed(46685326)
perm <- sample(x=nrow(vehdata))
set1 <- vehdata[which(perm<=nrow(vehdata)/2),-20... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/confusion.matrix.f1.score.R,
% R/confusion.matrix.f1.score.simple.R
\name{confusion.matrix.f1.score}
\alias{confusion.matrix.f1.score}
\alias{confusion.matrix.f1.score.simple}
\title{Confusion Matrix Measures - F1 Score}
\usage{
confusion.m... | /man/confusion.matrix.f1.score.simple.Rd | permissive | burrm/lolcat | R | false | true | 862 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/confusion.matrix.f1.score.R,
% R/confusion.matrix.f1.score.simple.R
\name{confusion.matrix.f1.score}
\alias{confusion.matrix.f1.score}
\alias{confusion.matrix.f1.score.simple}
\title{Confusion Matrix Measures - F1 Score}
\usage{
confusion.m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/custom_tidiers.R
\name{custom_tidiers}
\alias{custom_tidiers}
\alias{tidy_standardize}
\alias{tidy_bootstrap}
\alias{tidy_robust}
\alias{pool_and_tidy_mice}
\alias{tidy_gam}
\alias{tidy_wald_test}
\title{Collection of custom tidiers}
\usage{
... | /man/custom_tidiers.Rd | permissive | ddsjoberg/gtsummary | R | false | true | 6,494 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/custom_tidiers.R
\name{custom_tidiers}
\alias{custom_tidiers}
\alias{tidy_standardize}
\alias{tidy_bootstrap}
\alias{tidy_robust}
\alias{pool_and_tidy_mice}
\alias{tidy_gam}
\alias{tidy_wald_test}
\title{Collection of custom tidiers}
\usage{
... |
#############################
# F'ST #
# genotypes/phenotypes #
# Author: David Field #
# Date: 1/2/2010 #
#############################
Fst<- function(inData,numLoci,ploidy,samples) {
cat("\n ********************************************** \n")
cat(" * ... | /metaPopSim_autoPoly/Fst.r | no_license | dfield007/AutoPoly | R | false | false | 9,556 | r | #############################
# F'ST #
# genotypes/phenotypes #
# Author: David Field #
# Date: 1/2/2010 #
#############################
Fst<- function(inData,numLoci,ploidy,samples) {
cat("\n ********************************************** \n")
cat(" * ... |
Problem13.26 <- data.frame(
"Part" = c(
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,... | /data/Problem13.26.R | no_license | ehassler/MontgomeryDAE | R | false | false | 1,053 | r | Problem13.26 <- data.frame(
"Part" = c(
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
1,
2,
3,
4,
5,... |
#Programa que almacena en un vector todos los numeros pares comprendidos entre dos enteros
print("Inserte el primer entero")
a<-scan(n=1)
print("Inserte el segundo entero que es mayor que el primero")
b<-scan(n=1)
c<-seq(a,b,by=1) #crea un vector con los valores desde el primer entero al segundo
for (i in 1:length(c)... | /pl3 g.R | no_license | b62ropaa/R | R | false | false | 617 | r | #Programa que almacena en un vector todos los numeros pares comprendidos entre dos enteros
print("Inserte el primer entero")
a<-scan(n=1)
print("Inserte el segundo entero que es mayor que el primero")
b<-scan(n=1)
c<-seq(a,b,by=1) #crea un vector con los valores desde el primer entero al segundo
for (i in 1:length(c)... |
context("iot1clickdevicesservice")
svc <- paws::iot1clickdevicesservice()
| /paws/tests/testthat/test_iot1clickdevicesservice.R | permissive | johnnytommy/paws | R | false | false | 77 | r | context("iot1clickdevicesservice")
svc <- paws::iot1clickdevicesservice()
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/operating_characteristics.R
\name{mtd_mse}
\alias{mtd_mse}
\title{Mean Square Error of the MTD estimates}
\usage{
mtd_mse(mtd_estimate, true_mtd)
}
\arguments{
\item{mtd_estimate}{a numerical vector of the MTD estimates.}
\item{tr... | /man/mtd_mse.Rd | no_license | cran/ewoc | R | false | true | 2,263 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/operating_characteristics.R
\name{mtd_mse}
\alias{mtd_mse}
\title{Mean Square Error of the MTD estimates}
\usage{
mtd_mse(mtd_estimate, true_mtd)
}
\arguments{
\item{mtd_estimate}{a numerical vector of the MTD estimates.}
\item{tr... |
source('C:/Users/zhuofu/RProject/predicateSwitching/GoodResult.R')
source('C:/Users/zhuofu/RProject/predicateSwitching/BadResult.R')
#======================================================================================================================
statements <- paste('S', 1 : 9, sep = '');
#-----------
nTests <- 8... | /predicateSwitching/RandomPredicateSwitch_loop .R | no_license | zhuofubai/NUMFL | R | false | false | 7,515 | r | source('C:/Users/zhuofu/RProject/predicateSwitching/GoodResult.R')
source('C:/Users/zhuofu/RProject/predicateSwitching/BadResult.R')
#======================================================================================================================
statements <- paste('S', 1 : 9, sep = '');
#-----------
nTests <- 8... |
# fortune500
# rank title name ticker url hq sector industry employees revenues revenues_change profits profits_change assets equity
# 1 Walmart Wal-Mart Stores, Inc. WMT http://www.walmart... | /(DataCamp) Exploratory Data Analysis in SQL.R | no_license | ankristov/R | R | false | false | 117,893 | r |
# fortune500
# rank title name ticker url hq sector industry employees revenues revenues_change profits profits_change assets equity
# 1 Walmart Wal-Mart Stores, Inc. WMT http://www.walmart... |
## EDA - Assignment 1
## Read, subset data and change DateTime format
data <- read.table("household_power_consumption.txt", header = T, sep = ";", na.strings = '?', colClasses=c("character", "character", "numeric","numeric", "numeric", "numeric","numeric", "numeric", "numeric"))
subsetdata <- data[data$Date == "1/... | /plot3.R | no_license | SerRahul/ExData_Plotting1 | R | false | false | 919 | r | ## EDA - Assignment 1
## Read, subset data and change DateTime format
data <- read.table("household_power_consumption.txt", header = T, sep = ";", na.strings = '?', colClasses=c("character", "character", "numeric","numeric", "numeric", "numeric","numeric", "numeric", "numeric"))
subsetdata <- data[data$Date == "1/... |
# Programming Assignment #2, R Programming,
# Course #2 of Johns Hopkins Data Science sequence on Coursera.
# Submitter: Jim Stearns
# Date: 22 June 2014
# Starts with template and function prototypes supplied by instructor.
# Please see git history.
# makeCacheMatrix: creates a special "matrix" object that can cac... | /cachematrix.R | no_license | JimStearns/ProgrammingAssignment2 | R | false | false | 1,438 | r | # Programming Assignment #2, R Programming,
# Course #2 of Johns Hopkins Data Science sequence on Coursera.
# Submitter: Jim Stearns
# Date: 22 June 2014
# Starts with template and function prototypes supplied by instructor.
# Please see git history.
# makeCacheMatrix: creates a special "matrix" object that can cac... |
#!/usr/bin/env Rscript
# Load packages
reticulate::use_python('/usr/bin/python3.7')
library(Seurat)
library(getopt)
library(future)
library(cowplot)
library(clustree)
library(gridExtra)
library(grid)
library(pheatmap)
library(RColorBrewer)
library(Antler)
library(ggbeeswarm)
library(tidyverse)
# set arguments for Rs... | /bin/R/seurat_full.R | permissive | alexthiery/10x_neural_tube | R | false | false | 41,556 | r | #!/usr/bin/env Rscript
# Load packages
reticulate::use_python('/usr/bin/python3.7')
library(Seurat)
library(getopt)
library(future)
library(cowplot)
library(clustree)
library(gridExtra)
library(grid)
library(pheatmap)
library(RColorBrewer)
library(Antler)
library(ggbeeswarm)
library(tidyverse)
# set arguments for Rs... |
library(purrr)
library(tidyverse)
library(zoo)
source("Rscripts/baseRscript.R")
filtered<-list()
fnames<-c("Ts", "Ts_NA", "Ts_zero")
for (i in 1:3){
filename<-fnames[i]
df<-read.csv(paste0("Output/Mut.freq.filtered/Summary_",filename,".Q35.csv"),stringsAsFactors = F)
df<-df[,-1]
filte... | /Rscripts/13.1.Fig.AcrossGenome_W.Test_MF.R | no_license | kahot/HCV_project | R | false | false | 12,840 | r | library(purrr)
library(tidyverse)
library(zoo)
source("Rscripts/baseRscript.R")
filtered<-list()
fnames<-c("Ts", "Ts_NA", "Ts_zero")
for (i in 1:3){
filename<-fnames[i]
df<-read.csv(paste0("Output/Mut.freq.filtered/Summary_",filename,".Q35.csv"),stringsAsFactors = F)
df<-df[,-1]
filte... |
#' @docType package
#'
#' @name icesTAF-package
#'
#' @aliases icesTAF
#'
#' @title Functions to Support the ICES Transparent Assessment Framework
#'
#' @description
#' Functions to support the ICES Transparent Assessment Framework, to organize
#' data, methods, and results used in ICES assessments.
#'
#' @details
#' \... | /R/icesTAF-package.R | no_license | alko989/icesTAF | R | false | false | 3,740 | r | #' @docType package
#'
#' @name icesTAF-package
#'
#' @aliases icesTAF
#'
#' @title Functions to Support the ICES Transparent Assessment Framework
#'
#' @description
#' Functions to support the ICES Transparent Assessment Framework, to organize
#' data, methods, and results used in ICES assessments.
#'
#' @details
#' \... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_deprecate_thing_type}
\alias{iot_deprecate_thing_type}
\title{Deprecates a thing type}
\usage{
iot_deprecate_thing_type(thingTypeName, undoDeprecate)
}
\arguments{
\item{thingTypeName}{[required] The name of the thi... | /paws/man/iot_deprecate_thing_type.Rd | permissive | johnnytommy/paws | R | false | true | 769 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_deprecate_thing_type}
\alias{iot_deprecate_thing_type}
\title{Deprecates a thing type}
\usage{
iot_deprecate_thing_type(thingTypeName, undoDeprecate)
}
\arguments{
\item{thingTypeName}{[required] The name of the thi... |
rm(list = ls())
load('all.RData')
start <- subset(all, start.swim==1)
end <- subset(all, end.swim==1)
end.long <- end$gps_lon
hist(end.long, main="Landing Longitudes", xlab = 'Longitude')
ks.test(end.long, "punif", 141.00, 156.46) # punif takes into account entire CDF, better than creating a dummy distribution to ... | /test_unif.R | no_license | anniekellner/ch1_landing | R | false | false | 344 | r | rm(list = ls())
load('all.RData')
start <- subset(all, start.swim==1)
end <- subset(all, end.swim==1)
end.long <- end$gps_lon
hist(end.long, main="Landing Longitudes", xlab = 'Longitude')
ks.test(end.long, "punif", 141.00, 156.46) # punif takes into account entire CDF, better than creating a dummy distribution to ... |
####### Life History ########
#### MPASHRINK Life history Parameters
###Lutjanus malabaricus from Blaber et al. 2005
lh<- NULL
lh$Nmsy<- -999
lh$MaxAge <- 34
lh$m <- rep(0.29,lh$MaxAge) # blaber et al estimate Z= .11 so i cut this in half for m???
lh$CarryingCapacity<- -999
###VonBert Growth Params
lh$Linf <... | /Inputs/OLD CRAP/KelpBassLifeHistory.R | no_license | cuchisavila/Dynamic-MPAs | R | false | false | 1,684 | r | ####### Life History ########
#### MPASHRINK Life history Parameters
###Lutjanus malabaricus from Blaber et al. 2005
lh<- NULL
lh$Nmsy<- -999
lh$MaxAge <- 34
lh$m <- rep(0.29,lh$MaxAge) # blaber et al estimate Z= .11 so i cut this in half for m???
lh$CarryingCapacity<- -999
###VonBert Growth Params
lh$Linf <... |
# 2013-12-01 new; need testing
.ascharRd <- function(rdo){
if(is.character(rdo)) # note: applying as.character.Rd, as below gives error in this case
res <- as.vector(rdo) # to drop attributes;
else{
class(rdo) <- "Rd"
res <- as.character(rdo)
... | /R/yytransient.R | no_license | GeoBosh/Rdpack | R | false | false | 4,274 | r | # 2013-12-01 new; need testing
.ascharRd <- function(rdo){
if(is.character(rdo)) # note: applying as.character.Rd, as below gives error in this case
res <- as.vector(rdo) # to drop attributes;
else{
class(rdo) <- "Rd"
res <- as.character(rdo)
... |
library(tidyverse)
library(lubridate)
source("helper_functions.R")
source("theme/theme_swd.R")
theme_set(theme_swd() + theme(
axis.line = element_line(color = GRAY9),
axis.title.x = element_blank(),
axis.title.y = element_blank(),
axis.ticks = element_line(color = GRAY9),
axis.text = element_text(color = GRA... | /FIG0414.R | no_license | jcalonsoc/storytelling-with-data-ggplot | R | false | false | 1,687 | r | library(tidyverse)
library(lubridate)
source("helper_functions.R")
source("theme/theme_swd.R")
theme_set(theme_swd() + theme(
axis.line = element_line(color = GRAY9),
axis.title.x = element_blank(),
axis.title.y = element_blank(),
axis.ticks = element_line(color = GRAY9),
axis.text = element_text(color = GRA... |
library(tidyverse)
library(ggplot2)
library(lme4)
library(car)
library(rsq)
library(emmeans)
#### Cleaning Data ####
# put into rda file once sure is completely clean
raw_wing_table <- read_csv("NEW_CD_DGRP_Subset_Data_2019_V2.csv")
str(raw_wing_table)
wing_table_clean <- raw_wing_table %>%
mutate(wing_size_mm ... | /Misc_work_files/ore,sde3,sd58d_boxplots.R | no_license | b-mcintyre/the_fly_guys | R | false | false | 1,077 | r | library(tidyverse)
library(ggplot2)
library(lme4)
library(car)
library(rsq)
library(emmeans)
#### Cleaning Data ####
# put into rda file once sure is completely clean
raw_wing_table <- read_csv("NEW_CD_DGRP_Subset_Data_2019_V2.csv")
str(raw_wing_table)
wing_table_clean <- raw_wing_table %>%
mutate(wing_size_mm ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MDS_GO_results_functions.R
\name{wrapper_ancestor_curation_plots}
\alias{wrapper_ancestor_curation_plots}
\title{Create ancestor query plots}
\usage{
wrapper_ancestor_curation_plots(
GO_df,
sem_data,
use_names = TRUE,
target_dir = "TS... | /man/wrapper_ancestor_curation_plots.Rd | permissive | Ylefol/TimeSeriesAnalysis | R | false | true | 3,344 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MDS_GO_results_functions.R
\name{wrapper_ancestor_curation_plots}
\alias{wrapper_ancestor_curation_plots}
\title{Create ancestor query plots}
\usage{
wrapper_ancestor_curation_plots(
GO_df,
sem_data,
use_names = TRUE,
target_dir = "TS... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NED_FUNCTIONS.R
\name{get_ned_tile}
\alias{get_ned_tile}
\title{Load and crop tile from the 1 (~30 meter) or 1/3 (~10 meter) arc-second National Elevation Dataset.}
\usage{
get_ned_tile(template = NULL, res = "1", tileNorthing, tileWesting)
}... | /man/get_ned_tile.Rd | permissive | cran/FedData | R | false | true | 1,218 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NED_FUNCTIONS.R
\name{get_ned_tile}
\alias{get_ned_tile}
\title{Load and crop tile from the 1 (~30 meter) or 1/3 (~10 meter) arc-second National Elevation Dataset.}
\usage{
get_ned_tile(template = NULL, res = "1", tileNorthing, tileWesting)
}... |
\name{Forward Backward Early Dropping selection for circular data using the SPML regression}
\alias{spml.fbed}
\title{
Forward Backward Early Dropping selection for circular data using the SPML regression
}
\description{
Forward Backward Early Dropping selection for circular data using the SPML regression.
}
... | /man/spml.fbed.Rd | no_license | cran/Directional | R | false | false | 3,993 | rd | \name{Forward Backward Early Dropping selection for circular data using the SPML regression}
\alias{spml.fbed}
\title{
Forward Backward Early Dropping selection for circular data using the SPML regression
}
\description{
Forward Backward Early Dropping selection for circular data using the SPML regression.
}
... |
context("Test pooling")
test_that("Pooling works as expected", {
pooled <- .survey_sample %>%
pool_surveys(last_date = max(tidyr::unnest(.survey_sample)$date))
expect_data_frame(pooled, nrow=7, ncol=8)
expect_equal(sum(pooled$percent), 100)
expect_equal(round(sum(pooled$votes)), 3055)
pool <- pooled %>... | /tests/testthat/test-pooling.R | permissive | romainfrancois/coalitions | R | false | false | 1,080 | r | context("Test pooling")
test_that("Pooling works as expected", {
pooled <- .survey_sample %>%
pool_surveys(last_date = max(tidyr::unnest(.survey_sample)$date))
expect_data_frame(pooled, nrow=7, ncol=8)
expect_equal(sum(pooled$percent), 100)
expect_equal(round(sum(pooled$votes)), 3055)
pool <- pooled %>... |
setwd("~/ApartmentPrice/Data Preprocessing_R")
#import
library(dplyr)
#데이터불러오기
depart=read.csv("../Data/preprocessingData/H_distance_department2.csv")
mart=read.csv("../Data/preprocessingData/H_distance_mart1.csv")
park=read.csv("../Data/preprocessingData/H_distance_park3.csv")
elhigh=read.csv("../Data/preprocessingD... | /Data_Preprocessing_R/K_20200425_sumVariable.R | no_license | h0n9670/ApartmentPrice | R | false | false | 3,347 | r | setwd("~/ApartmentPrice/Data Preprocessing_R")
#import
library(dplyr)
#데이터불러오기
depart=read.csv("../Data/preprocessingData/H_distance_department2.csv")
mart=read.csv("../Data/preprocessingData/H_distance_mart1.csv")
park=read.csv("../Data/preprocessingData/H_distance_park3.csv")
elhigh=read.csv("../Data/preprocessingD... |
#!/usr/bin/Rscript
args = commandArgs(trailingOnly = TRUE)
library(ggplot2)
library(ggfortify)
library(Rtsne)
library(ggforce)
setwd(getwd())
set.seed(42)
vec <- read.csv("laud/static/uploads/ML_sample_input.csv")
vec <- cbind(cure_status = "unkown", vec)
df <- read.csv("laud/dim_df.csv")
data <- rbind(vec, df)
dat... | /venv/laud/dim_red.R | no_license | karolinasenkow/laud_demo | R | false | false | 1,219 | r | #!/usr/bin/Rscript
args = commandArgs(trailingOnly = TRUE)
library(ggplot2)
library(ggfortify)
library(Rtsne)
library(ggforce)
setwd(getwd())
set.seed(42)
vec <- read.csv("laud/static/uploads/ML_sample_input.csv")
vec <- cbind(cure_status = "unkown", vec)
df <- read.csv("laud/dim_df.csv")
data <- rbind(vec, df)
dat... |
makeVector <- function(x = numeric()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setmean <- function(mean) m <<- mean
getmean <- function() m
list(set = set, get = get,
setmean = setmean,
getmean = getmean)
}
cachemean <- function(x, ...) {
m <- x$ge... | /cachematrix.R | no_license | jotool2/ProgrammingAssignment2 | R | false | false | 1,656 | r | makeVector <- function(x = numeric()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setmean <- function(mean) m <<- mean
getmean <- function() m
list(set = set, get = get,
setmean = setmean,
getmean = getmean)
}
cachemean <- function(x, ...) {
m <- x$ge... |
#Simple Linear Regression Section 2
dataset<-read.csv("Salary_Data.csv")
#y = a + bx, y is dependent, x is dependent
#data preprocessing
library(caTools)
set.seed(123)
split = sample.split(dataset$Salary, SplitRatio = 2/3)
training_set = subset(dataset, split = TRUE)
test_set = subset(dataset, split = FALSE... | /Simple_Linear_Regression.R | no_license | jamesaveryking/Udemy-Machine-Learning | R | false | false | 1,381 | r | #Simple Linear Regression Section 2
dataset<-read.csv("Salary_Data.csv")
#y = a + bx, y is dependent, x is dependent
#data preprocessing
library(caTools)
set.seed(123)
split = sample.split(dataset$Salary, SplitRatio = 2/3)
training_set = subset(dataset, split = TRUE)
test_set = subset(dataset, split = FALSE... |
#' @details
#' Signature Overrepresentation Analysis
#'
#' This package implements the pathway analysis method SIGORA. For an in depth
#' description of the method, please see our manuscript in PeerJ. In short: a
#' \emph{GPS} (gene pair signature) is a (weighted) pair of genes that \emph{as
#' a combination} oc... | /R/sigora-package.R | no_license | cran/sigora | R | false | false | 1,302 | r | #' @details
#' Signature Overrepresentation Analysis
#'
#' This package implements the pathway analysis method SIGORA. For an in depth
#' description of the method, please see our manuscript in PeerJ. In short: a
#' \emph{GPS} (gene pair signature) is a (weighted) pair of genes that \emph{as
#' a combination} oc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/align.R
\name{align_rows}
\alias{align_rows}
\title{Align Rows}
\usage{
align_rows(x, method = c("exact_match", "hclust", "fixed_width"), ...)
}
\arguments{
\item{x}{an object of class \code{'data.frame'}.}
\item{method}{a character string g... | /man/align_rows.Rd | no_license | ben-schwen/pdfmole | R | false | true | 996 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/align.R
\name{align_rows}
\alias{align_rows}
\title{Align Rows}
\usage{
align_rows(x, method = c("exact_match", "hclust", "fixed_width"), ...)
}
\arguments{
\item{x}{an object of class \code{'data.frame'}.}
\item{method}{a character string g... |
#' @include internal.R pproto.R ProjectModifier-proto.R
NULL
#' @export
if (!methods::isClass("Objective")) methods::setOldClass("Objective")
NULL
#' Objective prototype
#'
#' This prototype is used to represent an objective that can be added to a
#' [ProjectProblem-class] object. **This prototype
#' represents a rec... | /R/Objective-proto.R | no_license | prioritizr/oppr | R | false | false | 697 | r | #' @include internal.R pproto.R ProjectModifier-proto.R
NULL
#' @export
if (!methods::isClass("Objective")) methods::setOldClass("Objective")
NULL
#' Objective prototype
#'
#' This prototype is used to represent an objective that can be added to a
#' [ProjectProblem-class] object. **This prototype
#' represents a rec... |
# forms ez_PC
library(dplyr)
setwd("~/Desktop/2013/ez_PC")
temp = list.files(pattern="*.csv")
for (i in 1:length(temp)) assign(temp[i], read.csv(temp[i]))
print(temp)
db_ez = NULL
for (i in 1:length(temp)) {
print(temp[i])
newez <- select(read.csv(temp[i]),ein,NAME,CITY,STATE,ZIP,NteeCat12,SUBSECCD,FNDNCD,ORGCD,AFC... | /data/3. select_data/workinprogress/forms_ez.R | no_license | bopopescu/Nonprofit_Dashboard | R | false | false | 1,702 | r | # forms ez_PC
library(dplyr)
setwd("~/Desktop/2013/ez_PC")
temp = list.files(pattern="*.csv")
for (i in 1:length(temp)) assign(temp[i], read.csv(temp[i]))
print(temp)
db_ez = NULL
for (i in 1:length(temp)) {
print(temp[i])
newez <- select(read.csv(temp[i]),ein,NAME,CITY,STATE,ZIP,NteeCat12,SUBSECCD,FNDNCD,ORGCD,AFC... |
library(tidyverse)
library(openxlsx)
elegidos <- read.xlsx('data/candidatos/BASE-GENERAL-CUENTAS-CLARAS.xlsx')
elegidos <- elegidos %>% filter(Elegido == 'Si')
judiciales <- elegidos %>% filter(Tipo.Persona == 'Persona Jurídica')
#correr de clean.R hasta secop_temp
secop_temp$contrato <- 'Si'
judiciales$Identificac... | /clean/judiciales.R | no_license | datasketch/elecciones-contratos-2 | R | false | false | 926 | r | library(tidyverse)
library(openxlsx)
elegidos <- read.xlsx('data/candidatos/BASE-GENERAL-CUENTAS-CLARAS.xlsx')
elegidos <- elegidos %>% filter(Elegido == 'Si')
judiciales <- elegidos %>% filter(Tipo.Persona == 'Persona Jurídica')
#correr de clean.R hasta secop_temp
secop_temp$contrato <- 'Si'
judiciales$Identificac... |
#' @title indexToPosition
#' @description Given a long matrix index convert to row and column positions
#' @details Using \code{\link{which}} on a matrix returns a number that iterates down rows then across columns. This function returns the (row, column) position of that index.
#' @author Jared P. Lander
#' @alia... | /R/indices.r | no_license | cran/useful | R | false | false | 1,739 | r | #' @title indexToPosition
#' @description Given a long matrix index convert to row and column positions
#' @details Using \code{\link{which}} on a matrix returns a number that iterates down rows then across columns. This function returns the (row, column) position of that index.
#' @author Jared P. Lander
#' @alia... |
library(ukbtools)
### Name: ukb_icd_code_meaning
### Title: Retrieves description for a ICD code.
### Aliases: ukb_icd_code_meaning
### ** Examples
ukb_icd_code_meaning(icd.code = "I74", icd.version = 10)
| /data/genthat_extracted_code/ukbtools/examples/ukb_icd_code_meaning.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 213 | r | library(ukbtools)
### Name: ukb_icd_code_meaning
### Title: Retrieves description for a ICD code.
### Aliases: ukb_icd_code_meaning
### ** Examples
ukb_icd_code_meaning(icd.code = "I74", icd.version = 10)
|
#Author: Josh Roll Oregon Department of Transportation Research Unit
#Date: 4/24/2018
#Description: Process bike/ped and vehicle counts from the Unified Oregon Access Eco-Visio Platform
#Set up console conditions
#------------------------
#Characters as factors will create problem for API so turn this of... | /scripts/process_raw_counts_step_2.r | permissive | UrbanStudy/Counts-Processor-in-R | R | false | false | 13,269 | r | #Author: Josh Roll Oregon Department of Transportation Research Unit
#Date: 4/24/2018
#Description: Process bike/ped and vehicle counts from the Unified Oregon Access Eco-Visio Platform
#Set up console conditions
#------------------------
#Characters as factors will create problem for API so turn this of... |
data<-read.table("household_power_consumption.txt",sep=";",header=TRUE, stringsAsFactors=FALSE)
data$Date<-as.Date(data$Date,format="%d/%m/%Y")
data<-data[data$Global_active_power != '?',]
plot_data<-data[data$Date>="2007-02-01"&data$Date<="2007-02-02",]
plot_data$timestamp<-as.POSIXct(paste(plot_data$Date, plot_data$T... | /plot3.R | no_license | robk18/ExData_Plotting1 | R | false | false | 954 | r | data<-read.table("household_power_consumption.txt",sep=";",header=TRUE, stringsAsFactors=FALSE)
data$Date<-as.Date(data$Date,format="%d/%m/%Y")
data<-data[data$Global_active_power != '?',]
plot_data<-data[data$Date>="2007-02-01"&data$Date<="2007-02-02",]
plot_data$timestamp<-as.POSIXct(paste(plot_data$Date, plot_data$T... |
##### plotSomatic_hmap.R #####
# William Lee @ May 2020, updated October 2021
bdir = "~/Box/Huang_lab/manuscripts/YoungOnsetCancer/analysis/somatic_mutation"
setwd(bdir)
# source the files with plotting related functions
source("../global_aes_out.R")
### MAIN ###
### MC3 mutation call file (only include the likely ... | /analysis/somatic_mutation/plotSomatic_hmap.R | permissive | Huang-lab/YoungOnsetCancer | R | false | false | 23,217 | r | ##### plotSomatic_hmap.R #####
# William Lee @ May 2020, updated October 2021
bdir = "~/Box/Huang_lab/manuscripts/YoungOnsetCancer/analysis/somatic_mutation"
setwd(bdir)
# source the files with plotting related functions
source("../global_aes_out.R")
### MAIN ###
### MC3 mutation call file (only include the likely ... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.44927536425883e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615774797-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.44927536425883e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
#
# to be updated
#
packrat::set_opts(ignored.directories = c("sandbox"))
packrat::restore()
| /src/lib/restore_packrat.R | no_license | lachlandeer/snakemake-econ-r-learner | R | false | false | 94 | r | #
# to be updated
#
packrat::set_opts(ignored.directories = c("sandbox"))
packrat::restore()
|
#' @title ShapInterpretation
#'
#' @description Base interpereter to use the `SHAP` interpretation library
#'
#'
#' @param learn learner/model
#' @param test_data should be either a Pandas dataframe or a TabularDataLoader. If not, 100 random rows of
#' the training data will be used instead.
#' @param link link can ei... | /R/fastinference.R | permissive | han-tun/fastai | R | false | false | 7,762 | r |
#' @title ShapInterpretation
#'
#' @description Base interpereter to use the `SHAP` interpretation library
#'
#'
#' @param learn learner/model
#' @param test_data should be either a Pandas dataframe or a TabularDataLoader. If not, 100 random rows of
#' the training data will be used instead.
#' @param link link can ei... |
# image segmentation with random forest based on spectral signatures
# build image classification model. overlay object is named 'ov'
buildClassMod <- function(rawdir, image, groundTruth,
groundTruthValues,
overlayExists, spectrSigName,
mod... | /imgClass.R | no_license | markanNHNH/urbanAnnualRunoff | R | false | false | 5,546 | r | # image segmentation with random forest based on spectral signatures
# build image classification model. overlay object is named 'ov'
buildClassMod <- function(rawdir, image, groundTruth,
groundTruthValues,
overlayExists, spectrSigName,
mod... |
### Terrence D. Jorgensen
### Last updated: 30 October 2019
### new DIF-detection tools for measEq suite
findAnchors <- function(object, test = c("LRT","Wald","score"),
nAnchors = 2L, # or a proportion
method = "woods.2009", # or kopf's iterative routine(s)?
... | /FuturePlans/measEq.partial.R | no_license | simsem/semTools | R | false | false | 722 | r | ### Terrence D. Jorgensen
### Last updated: 30 October 2019
### new DIF-detection tools for measEq suite
findAnchors <- function(object, test = c("LRT","Wald","score"),
nAnchors = 2L, # or a proportion
method = "woods.2009", # or kopf's iterative routine(s)?
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scales.r
\encoding{UTF-8}
\name{scale_y_log}
\alias{scale_y_log}
\title{Log Scale}
\usage{
scale_y_log(vl, domain = NULL, range = NULL, clamp = NULL, nice = NULL,
zero = NULL)
}
\arguments{
\item{vl}{Vega-Lite object}
\item{domain}{Custom ... | /man/scale_y_log.Rd | no_license | cran/vegalite | R | false | true | 1,371 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scales.r
\encoding{UTF-8}
\name{scale_y_log}
\alias{scale_y_log}
\title{Log Scale}
\usage{
scale_y_log(vl, domain = NULL, range = NULL, clamp = NULL, nice = NULL,
zero = NULL)
}
\arguments{
\item{vl}{Vega-Lite object}
\item{domain}{Custom ... |
cloglog.sample.size <- function(p.alt, n = NULL, p = 0.5,
power = 0.80, alpha = 0.05,
alternative = c("two.sided", "greater", "less"),
exact.n = FALSE,
recompute.power = FALSE, phi = 1) {
co... | /R/cloglog.sample.size.R | no_license | cran/binom | R | false | false | 4,251 | r | cloglog.sample.size <- function(p.alt, n = NULL, p = 0.5,
power = 0.80, alpha = 0.05,
alternative = c("two.sided", "greater", "less"),
exact.n = FALSE,
recompute.power = FALSE, phi = 1) {
co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hxsurf.R
\name{plot3d.hxsurf}
\alias{plot3d.hxsurf}
\title{Plot amira surface objects in 3D using rgl}
\usage{
\method{plot3d}{hxsurf}(x, materials = NULL, col = NULL, ...)
}
\arguments{
\item{x}{An hxsurf surface object}
\item{materials}{Ch... | /man/plot3d.hxsurf.Rd | no_license | zhihaozheng/nat | R | false | true | 1,331 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hxsurf.R
\name{plot3d.hxsurf}
\alias{plot3d.hxsurf}
\title{Plot amira surface objects in 3D using rgl}
\usage{
\method{plot3d}{hxsurf}(x, materials = NULL, col = NULL, ...)
}
\arguments{
\item{x}{An hxsurf surface object}
\item{materials}{Ch... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slackr_save.R
\name{slackr_save}
\alias{slackr_save}
\title{Save R objects to an RData file on Slack}
\usage{
slackr_save(
...,
channels = Sys.getenv("SLACK_CHANNEL"),
file = "slackr",
token = Sys.getenv("SLACK_TOKEN"),
initial_comm... | /man/slackr_save.Rd | permissive | mrkaye97/slackr | R | false | true | 1,378 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slackr_save.R
\name{slackr_save}
\alias{slackr_save}
\title{Save R objects to an RData file on Slack}
\usage{
slackr_save(
...,
channels = Sys.getenv("SLACK_CHANNEL"),
file = "slackr",
token = Sys.getenv("SLACK_TOKEN"),
initial_comm... |
#! /usr/bin/Rscript
######################################################################
## This script creates the general dataset of presidencia
######################################################################
###################################
## Libraries
###################################
suppressPack... | /process.R | no_license | lromang/upload_adela | R | false | false | 8,797 | r | #! /usr/bin/Rscript
######################################################################
## This script creates the general dataset of presidencia
######################################################################
###################################
## Libraries
###################################
suppressPack... |
thickness <- read.csv("./datasets/icesat_icethk_ma07_filled_cleaned.csv", header=TRUE, stringsAsFactors=FALSE)
thickness$SSMI.x.location..km. <- as.numeric(gsub(",", "", thickness$SSMI.x.location..km.))
set.seed(76)
n <- 300
subset <- sample(1:nrow(thickness), n)
# http://cran.r-project.org/web/packages/gstat/vignett... | /testcode.R | no_license | rosenbl/Thesis | R | false | false | 363 | r | thickness <- read.csv("./datasets/icesat_icethk_ma07_filled_cleaned.csv", header=TRUE, stringsAsFactors=FALSE)
thickness$SSMI.x.location..km. <- as.numeric(gsub(",", "", thickness$SSMI.x.location..km.))
set.seed(76)
n <- 300
subset <- sample(1:nrow(thickness), n)
# http://cran.r-project.org/web/packages/gstat/vignett... |
library(xfun)
packages <- c("fastverse", "tidyverse", "openair", "ggtext", "scales", "paletteer", "here", "janitor", "glue")
pkg_attach2(packages)
source("../ODS/bcc_aq_data_envista.R")
source("../ODS/import ODS function.R")
source("../ODS/aurn_csv.R")
hourly_contin_bcc <- getAQDataDB(final_tbl = final_tbl, startDate... | /aq_stats_2021.R | no_license | stevecrawshaw/airquality | R | false | false | 1,758 | r | library(xfun)
packages <- c("fastverse", "tidyverse", "openair", "ggtext", "scales", "paletteer", "here", "janitor", "glue")
pkg_attach2(packages)
source("../ODS/bcc_aq_data_envista.R")
source("../ODS/import ODS function.R")
source("../ODS/aurn_csv.R")
hourly_contin_bcc <- getAQDataDB(final_tbl = final_tbl, startDate... |
cacheSolve <- function(x, ...) {
inv <- x$getinverse()
if(!is.null(inv)) {
message("getting cached data")
return(inv)
}
data <- x$get()
inv <- solve(data, ...)
x$setinverse(inv)
inv
} | /cachesolve.R | no_license | Divye1130/datasciencecoursera | R | false | false | 211 | r | cacheSolve <- function(x, ...) {
inv <- x$getinverse()
if(!is.null(inv)) {
message("getting cached data")
return(inv)
}
data <- x$get()
inv <- solve(data, ...)
x$setinverse(inv)
inv
} |
\name{lmIntXY}
\alias{lmIntXY}
\title{Confidence and prediction intervals for regression.}
\description{\code{\link{lmInt}} contructs confidence and prediction intervals for simple
linear regression. For a simple univariate linear model in the form
of \eqn{EY = beta_0 + beta_1 X} computed using 'lm(\code{y} ~ \code{x})... | /man/lmIntXY.Rd | no_license | tsieger/tsiMisc | R | false | false | 2,488 | rd | \name{lmIntXY}
\alias{lmIntXY}
\title{Confidence and prediction intervals for regression.}
\description{\code{\link{lmInt}} contructs confidence and prediction intervals for simple
linear regression. For a simple univariate linear model in the form
of \eqn{EY = beta_0 + beta_1 X} computed using 'lm(\code{y} ~ \code{x})... |
#' Context Triggered Piecewise Hash Computation Using 'ssdeep'
#'
#' The ssdeep project provides an open source library <https://github.com/ssdeep-project/ssdeep/>
#' context triggered piecewise hashing. Methods are provided to compute and compare
#' hashes from character/byte streams.
#'
#' @md
#' @name ssdeepr
#' @ke... | /R/ssdeepr-package.R | permissive | hrbrmstr/ssdeepr | R | false | false | 456 | r | #' Context Triggered Piecewise Hash Computation Using 'ssdeep'
#'
#' The ssdeep project provides an open source library <https://github.com/ssdeep-project/ssdeep/>
#' context triggered piecewise hashing. Methods are provided to compute and compare
#' hashes from character/byte streams.
#'
#' @md
#' @name ssdeepr
#' @ke... |
\name{qat_analyse_roc_rule_static_1d}
\alias{qat_analyse_roc_rule_static_1d}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Perform a static roc-rule-check}
\description{
This check tests data on whether the change between two consecutive data points exceeds a static threshold.
}
\usage{
qat_anal... | /man/qat_analyse_roc_rule_static_1d.Rd | no_license | cran/qat | R | false | false | 2,144 | rd | \name{qat_analyse_roc_rule_static_1d}
\alias{qat_analyse_roc_rule_static_1d}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Perform a static roc-rule-check}
\description{
This check tests data on whether the change between two consecutive data points exceeds a static threshold.
}
\usage{
qat_anal... |
## ----setup, include=FALSE------------------------------------------------
source("global_config.R")
## ----include=FALSE, eval=FALSE-------------------------------------------
## library(rvest)
## moose <- read_html("https://www.baseball-reference.com/players/split.fcgi?id=mussimi01&year=Career&t=p") %>%
## html_n... | /chapter_code/pitchcount.R | no_license | pontsuyu/ABDWR | R | false | false | 14,353 | r | ## ----setup, include=FALSE------------------------------------------------
source("global_config.R")
## ----include=FALSE, eval=FALSE-------------------------------------------
## library(rvest)
## moose <- read_html("https://www.baseball-reference.com/players/split.fcgi?id=mussimi01&year=Career&t=p") %>%
## html_n... |
library(rjson)
library(GEOquery)
library(httr)
# http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSM1715626&view=FULL&form=text
url <- "http://54.152.59.84:8093/query/service"
GET(url, query = list(statement="SELECT * FROM \`beer-sample\` LIMIT 4"))
cat(content(tt, "text"))
| /R/ETL.r | no_license | JovingeLabSoftware/LincServe | R | false | false | 286 | r | library(rjson)
library(GEOquery)
library(httr)
# http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSM1715626&view=FULL&form=text
url <- "http://54.152.59.84:8093/query/service"
GET(url, query = list(statement="SELECT * FROM \`beer-sample\` LIMIT 4"))
cat(content(tt, "text"))
|
context("read.elb")
public({
snake <- read_elb("2017/12/31/example.log")
test_that("read_elb also reads a log file", {
expect_identical(dim(snake), c(97L, 15L))
expect_identical(snake$backend_processing_time[1], 0.0181)
})
test_that("504s have NA response time", {
expect_identic... | /tests/testthat/test-read.R | no_license | nealrichardson/elbr | R | false | false | 1,857 | r | context("read.elb")
public({
snake <- read_elb("2017/12/31/example.log")
test_that("read_elb also reads a log file", {
expect_identical(dim(snake), c(97L, 15L))
expect_identical(snake$backend_processing_time[1], 0.0181)
})
test_that("504s have NA response time", {
expect_identic... |
## Put comments here that give an overall description of what your
## functions do
## "makeCacheMatrix" returns a list of functions.
## Furthermore, it is designed to store a matrix and cache the value of the inverse in order to
## avoid potentially time consuming computations for more complex datasets.
makeC... | /cachematrix.R | no_license | Daviel1/ProgrammingAssignment2 | R | false | false | 1,828 | r | ## Put comments here that give an overall description of what your
## functions do
## "makeCacheMatrix" returns a list of functions.
## Furthermore, it is designed to store a matrix and cache the value of the inverse in order to
## avoid potentially time consuming computations for more complex datasets.
makeC... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/readAnnotate.R
\docType{methods}
\name{getMembers}
\alias{getMembers}
\alias{getMembers,AnnotationByFeature-method}
\title{Get the membership slot of AnnotationByFeature}
\usage{
getMembers(x)
\S4method{getMembers}{AnnotationByFeatur... | /man/getMembers-methods.Rd | no_license | rtraborn/genomation | R | false | false | 661 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/readAnnotate.R
\docType{methods}
\name{getMembers}
\alias{getMembers}
\alias{getMembers,AnnotationByFeature-method}
\title{Get the membership slot of AnnotationByFeature}
\usage{
getMembers(x)
\S4method{getMembers}{AnnotationByFeatur... |
# These are some kable package wrapper functions for my preferred styling
#
options(kable_styling_bootstrap_options=c('striped', 'hover', 'condensed'),
kable_styling_full_width = FALSE,
kable_styling_position = 'left',
knitr.kable.NA = '')
kable_default <- function(df,
... | /KableHelperFunctions.R | no_license | JN-BlueWaters/R-CommonCode | R | false | false | 2,593 | r | # These are some kable package wrapper functions for my preferred styling
#
options(kable_styling_bootstrap_options=c('striped', 'hover', 'condensed'),
kable_styling_full_width = FALSE,
kable_styling_position = 'left',
knitr.kable.NA = '')
kable_default <- function(df,
... |
library(tidyverse)
message("Set locale: ", Sys.setlocale("LC_ALL", "English"), "\n")
zips <- as_tibble(read_csv2("../inst/extdata/zip_jutland.csv")) # , locale = locale(encoding = "ISO-8859-1")
# iconv(zips$Area, from = "UTF-8", to = "UTF-8")
# Encoding(zips$Area)
usethis::use_data(zips, overwrite = TRUE)
| /tfa-package/data-raw/zips.R | no_license | raquelsimoes/tfa | R | false | false | 309 | r | library(tidyverse)
message("Set locale: ", Sys.setlocale("LC_ALL", "English"), "\n")
zips <- as_tibble(read_csv2("../inst/extdata/zip_jutland.csv")) # , locale = locale(encoding = "ISO-8859-1")
# iconv(zips$Area, from = "UTF-8", to = "UTF-8")
# Encoding(zips$Area)
usethis::use_data(zips, overwrite = TRUE)
|
## Put comments here that give an overall description of what your
## functions do
## returns a list of functions to get/set an 'internal' matrix and get/set its inverse.
## (get, set, getinv, setinv).
## If the matrix is 'set' via this list's set function, the inverse matrix will be cleared.
makeCacheMatrix <- func... | /cachematrix.R | no_license | sabrams/ProgrammingAssignment2 | R | false | false | 1,133 | r | ## Put comments here that give an overall description of what your
## functions do
## returns a list of functions to get/set an 'internal' matrix and get/set its inverse.
## (get, set, getinv, setinv).
## If the matrix is 'set' via this list's set function, the inverse matrix will be cleared.
makeCacheMatrix <- func... |
# Compare LDA models
## @knitr color-distribution
library(dplyr)
library(ggplot2)
if(!exists("set_colors")){
legolda::load_csv(sample_data = FALSE)
legolda::create_tables(sample_data = FALSE)
}
lda_models <- readRDS(here::here("inst", "data", "lda_models_all.RDS"))
set_topics <- lda_models %>%
purrr::map(funct... | /code/compare-models.R | no_license | nateaff/legolda | R | false | false | 6,825 | r | # Compare LDA models
## @knitr color-distribution
library(dplyr)
library(ggplot2)
if(!exists("set_colors")){
legolda::load_csv(sample_data = FALSE)
legolda::create_tables(sample_data = FALSE)
}
lda_models <- readRDS(here::here("inst", "data", "lda_models_all.RDS"))
set_topics <- lda_models %>%
purrr::map(funct... |
# definir função para limpar strings coletadas
limparString <- function(x) {
# x = string coletado do olx
x %<>% str_replace_all("[\t]", "")
x %<>% str_replace_all("[\n]", "")
x %<>% str_replace_all("Apartamentos", "")
x %<>% str_replace_all("Anúncio Profissional", "")
x %<>% str_replace("-", "")
... | /src/funcoes_olx.R | no_license | eduardo-strube/olx_scraping | R | false | false | 3,202 | r |
# definir função para limpar strings coletadas
limparString <- function(x) {
# x = string coletado do olx
x %<>% str_replace_all("[\t]", "")
x %<>% str_replace_all("[\n]", "")
x %<>% str_replace_all("Apartamentos", "")
x %<>% str_replace_all("Anúncio Profissional", "")
x %<>% str_replace("-", "")
... |
\name{fit.ghypmv}
\alias{fit.ghypmv}
\alias{fit.hypmv}
\alias{fit.NIGmv}
\alias{fit.VGmv}
\alias{fit.tmv}
\alias{fit.gaussmv}
\title{Fitting generalized hyperbolic distributions to multivariate data}
% <---------------------------------------------------------------------->
\description{
Perform a maximu... | /man/fit.ghypmv.Rd | no_license | quantsulting/ghyp | R | false | false | 6,563 | rd | \name{fit.ghypmv}
\alias{fit.ghypmv}
\alias{fit.hypmv}
\alias{fit.NIGmv}
\alias{fit.VGmv}
\alias{fit.tmv}
\alias{fit.gaussmv}
\title{Fitting generalized hyperbolic distributions to multivariate data}
% <---------------------------------------------------------------------->
\description{
Perform a maximu... |
\name{decheck}
\alias{decheck}
\title{
Comparing two Excel files for double entry of plot data.
}
\description{
Comparing two Excel files for Double Entry of plot data.
}
\usage{
decheck(file1, file2)
}
\arguments{
\item{file1}{
The name of first Excel file to be compared in Character string.
}
\item{file2}{
The n... | /man/decheck.Rd | no_license | helixcn/TPK | R | false | false | 1,023 | rd | \name{decheck}
\alias{decheck}
\title{
Comparing two Excel files for double entry of plot data.
}
\description{
Comparing two Excel files for Double Entry of plot data.
}
\usage{
decheck(file1, file2)
}
\arguments{
\item{file1}{
The name of first Excel file to be compared in Character string.
}
\item{file2}{
The n... |
#' @title random variable generator
#'
#' @description generate your arbitrary random variable
#'
#' @param
#'
#' @return
#'
#' @examples
#'
#' @export
library(nanotime)
library(bit64)
library(ggplot2)
rgenerator<-function()
{
MMM = 0xffffda61
sss = 0xffffffff
#x=as.integer64(as.numeric((Sys.t... | /RandomVariable/R/project.R | no_license | emadsalehi/R-package | R | false | false | 4,123 | r | #' @title random variable generator
#'
#' @description generate your arbitrary random variable
#'
#' @param
#'
#' @return
#'
#' @examples
#'
#' @export
library(nanotime)
library(bit64)
library(ggplot2)
rgenerator<-function()
{
MMM = 0xffffda61
sss = 0xffffffff
#x=as.integer64(as.numeric((Sys.t... |
# How does vertebrate population change differ across biomes and taxa?
# How does rarity influence population change in UK vertebrates?
# Gergana Daskalova (gndaskalova@gmail.com)
# 19th Feb 2019
# Figures
# Start code with an empty working directory
packrat::init()
# Packages ----
library(readr)
library(data.tabl... | /code/06-figures.R | permissive | santosomichelle/PopChangeRarity | R | false | false | 179,351 | r | # How does vertebrate population change differ across biomes and taxa?
# How does rarity influence population change in UK vertebrates?
# Gergana Daskalova (gndaskalova@gmail.com)
# 19th Feb 2019
# Figures
# Start code with an empty working directory
packrat::init()
# Packages ----
library(readr)
library(data.tabl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.