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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ols-studentized-residual-chart.R
\name{ols_srsd_chart}
\alias{ols_srsd_chart}
\title{Standardized Residual Chart}
\usage{
ols_srsd_chart(model)
}
\arguments{
\item{model}{an object of class \code{lm}}
}
\description{
Chart for identifying out... | /man/ols_srsd_chart.Rd | no_license | sunilkumar87/olsrr | R | false | true | 530 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ols-studentized-residual-chart.R
\name{ols_srsd_chart}
\alias{ols_srsd_chart}
\title{Standardized Residual Chart}
\usage{
ols_srsd_chart(model)
}
\arguments{
\item{model}{an object of class \code{lm}}
}
\description{
Chart for identifying out... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load-fingerprints.R
\name{use_builtin_fingerprints}
\alias{use_builtin_fingerprints}
\title{Use built-in fingerprints}
\usage{
use_builtin_fingerprints()
}
\description{
Use a snapshot of the Recog repository was taken on 2018-08-17. There ma... | /man/use_builtin_fingerprints.Rd | permissive | firebitsbr/rrecog | R | false | true | 813 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load-fingerprints.R
\name{use_builtin_fingerprints}
\alias{use_builtin_fingerprints}
\title{Use built-in fingerprints}
\usage{
use_builtin_fingerprints()
}
\description{
Use a snapshot of the Recog repository was taken on 2018-08-17. There ma... |
#' Estimating Ensemble Kernel Matrices
#'
#' Give a list of estimated kernel matrices and their weights.
#'
#' There are three ensemble strategies available here:
#'
#' \bold{Empirical Risk Minimization (Stacking)}
#'
#' After obtaining the estimated errors \eqn{\{\hat{\epsilon}_d\}_{d=1}^D}, we
#' estimate the ens... | /R/ensemble.R | no_license | statmlhb/CVEK | R | false | false | 9,915 | r | #' Estimating Ensemble Kernel Matrices
#'
#' Give a list of estimated kernel matrices and their weights.
#'
#' There are three ensemble strategies available here:
#'
#' \bold{Empirical Risk Minimization (Stacking)}
#'
#' After obtaining the estimated errors \eqn{\{\hat{\epsilon}_d\}_{d=1}^D}, we
#' estimate the ens... |
###Adapted from www.molecularecologist.com/2016/02/quick-and-dirty-tree-building-in-r/
####Running phylogenies in R with the ape package.
##First open the libraries for ape, phangorn and seqinr
library(ape)
library(phangorn)
library(seqinr)
###set the working drive
setwd("Desktop/R stuff/TVR genomes")
### Next, imp... | /AA Phylogenetic tree building.r | no_license | AdrianAllen1977/R-code | R | false | false | 1,862 | r | ###Adapted from www.molecularecologist.com/2016/02/quick-and-dirty-tree-building-in-r/
####Running phylogenies in R with the ape package.
##First open the libraries for ape, phangorn and seqinr
library(ape)
library(phangorn)
library(seqinr)
###set the working drive
setwd("Desktop/R stuff/TVR genomes")
### Next, imp... |
#! /usr/bin/Rscript
# read data
data <- read.csv("us-counties.csv")
# examine data
dim(data)
summary(data)
# clean data
data <- data %>%
filter(is.na(fips) == F)
options(tigris_use_cache = T)
us <- counties(cb = TRUE, resolution = '5m',
class = 'sf',
year = 2019) %>%
... | /finalproject/cleandata.R | no_license | szhmel/info_gitdir | R | false | false | 683 | r | #! /usr/bin/Rscript
# read data
data <- read.csv("us-counties.csv")
# examine data
dim(data)
summary(data)
# clean data
data <- data %>%
filter(is.na(fips) == F)
options(tigris_use_cache = T)
us <- counties(cb = TRUE, resolution = '5m',
class = 'sf',
year = 2019) %>%
... |
old.dir <- getwd()
test.dir <- system.file("extdata", package = "fars")
setwd(test.dir)
test_that('fars_summarize_years function: read files in the working directory and summarize it', {
# Check for inheritance
expect_is(fars_summarize_years(2013), "tbl")
# Check for functionality
expect_equal(nrow(fars_summ... | /tests/testthat/test_fars_summarize.R | no_license | nobuhiro-kikuchi/fars | R | false | false | 737 | r | old.dir <- getwd()
test.dir <- system.file("extdata", package = "fars")
setwd(test.dir)
test_that('fars_summarize_years function: read files in the working directory and summarize it', {
# Check for inheritance
expect_is(fars_summarize_years(2013), "tbl")
# Check for functionality
expect_equal(nrow(fars_summ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deployment_requests.R
\name{deployment_version_requests_create}
\alias{deployment_version_requests_create}
\title{Create a direct deployment version request}
\usage{
deployment_version_requests_create(deployment.name, version, data,
timeout... | /man/deployment_version_requests_create.Rd | permissive | stjordanis/client-library-r | R | false | true | 2,954 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deployment_requests.R
\name{deployment_version_requests_create}
\alias{deployment_version_requests_create}
\title{Create a direct deployment version request}
\usage{
deployment_version_requests_create(deployment.name, version, data,
timeout... |
# Lab 1
# Rohan Aras
# 4/9/15
# Notes: Calculates the mean and variance of the temperature of various cities contained in pollution.csv. Also produces a histogram of the wind speeds in the same cities.
# import csv file
pollution <- read.csv("pollution.csv")
# grab temperature data
temperature <- pollution$TEMP
# ... | /lab1/rohan_aras_lab1.R | no_license | kpolimis/INFO370_lab | R | false | false | 541 | r | # Lab 1
# Rohan Aras
# 4/9/15
# Notes: Calculates the mean and variance of the temperature of various cities contained in pollution.csv. Also produces a histogram of the wind speeds in the same cities.
# import csv file
pollution <- read.csv("pollution.csv")
# grab temperature data
temperature <- pollution$TEMP
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/twoStepsBenchmark.R
\name{twoStepsBenchmark}
\alias{twoStepsBenchmark}
\alias{annualBenchmark}
\title{Regress and bends a time-serie with a lower frequency one}
\usage{
twoStepsBenchmark(hfserie,lfserie,include.differenciation=FALSE,include.r... | /man/twoStepsBenchmark.Rd | permissive | minghao2016/disaggR | R | false | true | 6,748 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/twoStepsBenchmark.R
\name{twoStepsBenchmark}
\alias{twoStepsBenchmark}
\alias{annualBenchmark}
\title{Regress and bends a time-serie with a lower frequency one}
\usage{
twoStepsBenchmark(hfserie,lfserie,include.differenciation=FALSE,include.r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distinctiveness.R
\name{distinctiveness_com}
\alias{distinctiveness_com}
\title{Functional Distinctiveness for a single community}
\usage{
distinctiveness_com(
com_df,
sp_col,
abund = NULL,
dist_matrix,
relative = FALSE
... | /man/distinctiveness_com.Rd | no_license | cran/funrar | R | false | true | 2,252 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distinctiveness.R
\name{distinctiveness_com}
\alias{distinctiveness_com}
\title{Functional Distinctiveness for a single community}
\usage{
distinctiveness_com(
com_df,
sp_col,
abund = NULL,
dist_matrix,
relative = FALSE
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R
\name{print.live_explainer}
\alias{print.live_explainer}
\title{Generic print function for live explainer}
\usage{
\method{print}{live_explainer}(x, ...)
}
\arguments{
\item{x}{Object created using fit_explanation function}
\item{... | /man/print.live_explainer.Rd | no_license | cran/live | R | false | true | 402 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R
\name{print.live_explainer}
\alias{print.live_explainer}
\title{Generic print function for live explainer}
\usage{
\method{print}{live_explainer}(x, ...)
}
\arguments{
\item{x}{Object created using fit_explanation function}
\item{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lab6.R
\name{myncurvelab6}
\alias{myncurvelab6}
\title{Continuous, Normal Distribution Area}
\usage{
myncurvelab6(mu, sigma, x)
}
\arguments{
\item{mu}{mean}
\item{sigma}{the standard deviation}
\item{x}{vector of interest}
}
\value{
graphi... | /man/myncurvelab6.Rd | no_license | fraclad/math4753 | R | false | true | 481 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lab6.R
\name{myncurvelab6}
\alias{myncurvelab6}
\title{Continuous, Normal Distribution Area}
\usage{
myncurvelab6(mu, sigma, x)
}
\arguments{
\item{mu}{mean}
\item{sigma}{the standard deviation}
\item{x}{vector of interest}
}
\value{
graphi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.ucm.R
\name{print.ucm}
\alias{print.ucm}
\title{Print ucm Object}
\usage{
\method{print}{ucm}(x, ...)
}
\arguments{
\item{x}{ucm object}
\item{...}{Ignored.}
}
\description{
Print ucm Object
}
| /man/print.ucm.Rd | no_license | MarcoVende/rucm | R | false | true | 278 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.ucm.R
\name{print.ucm}
\alias{print.ucm}
\title{Print ucm Object}
\usage{
\method{print}{ucm}(x, ...)
}
\arguments{
\item{x}{ucm object}
\item{...}{Ignored.}
}
\description{
Print ucm Object
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/call.R
\name{call_standardise}
\alias{call_standardise}
\title{Standardise a call}
\usage{
call_standardise(call, env = caller_env())
}
\arguments{
\item{call}{Can be a call or a quosure that wraps a call.}
\item{env}{The environment where t... | /man/call_standardise.Rd | no_license | COMODr/rlang | R | false | true | 873 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/call.R
\name{call_standardise}
\alias{call_standardise}
\title{Standardise a call}
\usage{
call_standardise(call, env = caller_env())
}
\arguments{
\item{call}{Can be a call or a quosure that wraps a call.}
\item{env}{The environment where t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gta plot saver.R
\name{gta_plot_saver}
\alias{gta_plot_saver}
\title{Save png and eps plots together more easily.}
\usage{
gta_plot_saver(
plot = NULL,
path = "/",
name = "plot",
width = 21,
height = NULL,
png = T,
eps = F,
pd... | /man/gta_plot_saver.Rd | no_license | global-trade-alert/gtalibrary | R | false | true | 1,247 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gta plot saver.R
\name{gta_plot_saver}
\alias{gta_plot_saver}
\title{Save png and eps plots together more easily.}
\usage{
gta_plot_saver(
plot = NULL,
path = "/",
name = "plot",
width = 21,
height = NULL,
png = T,
eps = F,
pd... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stations.R
\docType{data}
\name{stations}
\alias{stations}
\title{Pollution measuring stations in Mexico City}
\format{A data frame with 63 rows and 7 variables:
\describe{
\item{station_code}{abbreviation of the station}
\item{station_na... | /man/stations.Rd | permissive | bluejayblues/aire.zmvm | R | false | true | 1,105 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stations.R
\docType{data}
\name{stations}
\alias{stations}
\title{Pollution measuring stations in Mexico City}
\format{A data frame with 63 rows and 7 variables:
\describe{
\item{station_code}{abbreviation of the station}
\item{station_na... |
surface <- function(x1,x2){
x1off = 360
x1scale = 20
x1s = (x1 - x1off)/x1scale
x2off = 0
x2scale = 1
x2s = (x2 - x2off)/x2scale
z = 30*x1s + 16*x2s- 10*x1s^2 - 20*x2s^2 +16*x1s*x2s + 40.1
}
surface.linear <- function(x1,x2){
x1off = 395
x1scale = 5
x1s = (x1 - x1off)/... | /doe/factorial-two-level-surface-with-interaction.R | no_license | kgdunn/figures | R | false | false | 2,837 | r |
surface <- function(x1,x2){
x1off = 360
x1scale = 20
x1s = (x1 - x1off)/x1scale
x2off = 0
x2scale = 1
x2s = (x2 - x2off)/x2scale
z = 30*x1s + 16*x2s- 10*x1s^2 - 20*x2s^2 +16*x1s*x2s + 40.1
}
surface.linear <- function(x1,x2){
x1off = 395
x1scale = 5
x1s = (x1 - x1off)/... |
library(testthat)
library(scryr)
test_check("scryr")
| /tests/testthat.R | permissive | khailper/scryr | R | false | false | 54 | r | library(testthat)
library(scryr)
test_check("scryr")
|
####################
# ITEC 621 Scripts #
####################
# Search keys:
##### We are here
##### Pending
# Prepared by J. Alberto Espinosa
# Last updated on 6/15/2016
# This script was prepared for an American University class ITEC 621 Predictive Analytics. It's use is intended specifically for class work for ... | /Misc/R_Scripts/ITEC 621 R Scripts.R | no_license | jpsuen/ITEC621_Class_Files | R | false | false | 241,955 | r | ####################
# ITEC 621 Scripts #
####################
# Search keys:
##### We are here
##### Pending
# Prepared by J. Alberto Espinosa
# Last updated on 6/15/2016
# This script was prepared for an American University class ITEC 621 Predictive Analytics. It's use is intended specifically for class work for ... |
\name{states}
\alias{states}
\docType{data}
\title{
States
}
\description{
This dataset contains political and socio-demographic information for all fifty states from 2000-2015.
}
\usage{data("states")}
\format{
A data frame with 800 observations on the following 84 variables.
\describe{
\item{\code{icpsr}}{ICP... | /man/states.Rd | no_license | zbaumann/plsc404 | R | false | false | 7,630 | rd | \name{states}
\alias{states}
\docType{data}
\title{
States
}
\description{
This dataset contains political and socio-demographic information for all fifty states from 2000-2015.
}
\usage{data("states")}
\format{
A data frame with 800 observations on the following 84 variables.
\describe{
\item{\code{icpsr}}{ICP... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{taxi_tree}
\alias{taxi_tree}
\title{Hierarchical tree based on neighborhoods in NYC}
\format{
An object of class \code{list} of length 190.
}
\usage{
taxi_tree
}
\description{
A list of length-\code{190} that store... | /man/taxi_tree.Rd | no_license | jacobbien/hat | R | false | true | 721 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{taxi_tree}
\alias{taxi_tree}
\title{Hierarchical tree based on neighborhoods in NYC}
\format{
An object of class \code{list} of length 190.
}
\usage{
taxi_tree
}
\description{
A list of length-\code{190} that store... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compareResults.Fisheries.Catchability.R
\name{compareResults.Fisheries.Catchability}
\alias{compareResults.Fisheries.Catchability}
\title{Function to plot fishery catchabilities by year using ggplot2}
\usage{
compareResults.Fisheries.Catchabi... | /man/compareResults.Fisheries.Catchability.Rd | permissive | wStockhausen/rCompTCMs | R | false | true | 1,436 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compareResults.Fisheries.Catchability.R
\name{compareResults.Fisheries.Catchability}
\alias{compareResults.Fisheries.Catchability}
\title{Function to plot fishery catchabilities by year using ggplot2}
\usage{
compareResults.Fisheries.Catchabi... |
library(twitteR)
library(tm)
library(wordcloud)
library(RColorBrewer)
library(SnowballC)
library(syuzhet)
library(tidytext)
library(ggplot2)
library(forcats)
library(dplyr)
requestURL = "https://api.twitter.com/oauth/request_token"
accessURL = "https://api.twitter.com/oauth/access_token"
authURL = "https://api.twitter.... | /ProblemSets/PS5/PS5_Holt_API.R | permissive | richardnholt/DScourseS19 | R | false | false | 1,551 | r | library(twitteR)
library(tm)
library(wordcloud)
library(RColorBrewer)
library(SnowballC)
library(syuzhet)
library(tidytext)
library(ggplot2)
library(forcats)
library(dplyr)
requestURL = "https://api.twitter.com/oauth/request_token"
accessURL = "https://api.twitter.com/oauth/access_token"
authURL = "https://api.twitter.... |
# Part of the rstanarm package for estimating model parameters
# Copyright (C) 2015, 2016 Trustees of Columbia University
#
# 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... | /tests/testthat/test_plots.R | no_license | detcitty/rstanarm | R | false | false | 4,577 | r | # Part of the rstanarm package for estimating model parameters
# Copyright (C) 2015, 2016 Trustees of Columbia University
#
# 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... |
# Grupo Bimbo Inventory Demand
# Dataset: https://www.kaggle.com/c/grupo-bimbo-inventory-demand
# The goal in this project is to create a develop a model to
# accurately forecast inventory demand based on historical sales data
# loading necessary packages
library(data.table)
library(dplyr)
library(caret)
lib... | /BimboInventoryDemand.R | no_license | juyamauti/BimboInventoryDemand | R | false | false | 10,440 | r | # Grupo Bimbo Inventory Demand
# Dataset: https://www.kaggle.com/c/grupo-bimbo-inventory-demand
# The goal in this project is to create a develop a model to
# accurately forecast inventory demand based on historical sales data
# loading necessary packages
library(data.table)
library(dplyr)
library(caret)
lib... |
Bed_PeakPlot<-function (object, region, group.by = NULL,
color = "dimgrey")
{
if (!inherits(x = region, what = "GRanges")) {
region <- StringToGRanges(regions = region)
}
if(class(object) =="data.frame"){
colnames(object)[c(1,2,3)]<-c("chr","start","end")
peaks<-makeGRangesFromDa... | /scripts/plot_dependencies.R | no_license | aanderson54/scMultiomics_AD | R | false | false | 33,634 | r |
Bed_PeakPlot<-function (object, region, group.by = NULL,
color = "dimgrey")
{
if (!inherits(x = region, what = "GRanges")) {
region <- StringToGRanges(regions = region)
}
if(class(object) =="data.frame"){
colnames(object)[c(1,2,3)]<-c("chr","start","end")
peaks<-makeGRangesFromDa... |
context("solve policies")
test_that("newer version preferred", {
pkgs <- make_fake_resolution(
`aa` = list(version = "1-0-1", platform = "source", direct = TRUE),
`installed::/tmp/aa` = list(version = "1.2.0")
)$data
lp <- remotes_i_create_lp_problem(pkgs, policy = "upgrade")
sol <- remotes_i_solve_lp... | /tests/testthat/test-solve-policies.R | permissive | slopp/pkgdepends | R | false | false | 4,466 | r |
context("solve policies")
test_that("newer version preferred", {
pkgs <- make_fake_resolution(
`aa` = list(version = "1-0-1", platform = "source", direct = TRUE),
`installed::/tmp/aa` = list(version = "1.2.0")
)$data
lp <- remotes_i_create_lp_problem(pkgs, policy = "upgrade")
sol <- remotes_i_solve_lp... |
library(mau)
### Name: Eval.Utilities
### Title: Evaluate utilities
### Aliases: Eval.Utilities
### ** Examples
library( mau )
vignette( topic = 'Running_MAUT', package = 'mau' )
| /data/genthat_extracted_code/mau/examples/Eval.Utilities.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 187 | r | library(mau)
### Name: Eval.Utilities
### Title: Evaluate utilities
### Aliases: Eval.Utilities
### ** Examples
library( mau )
vignette( topic = 'Running_MAUT', package = 'mau' )
|
composite.age<-function(CONOP, agemodels, tie.points, age.span, pch, bg)
{
#agemodels is a list of published age models for each site: the numbering must follow that of sectfile
#tie.points is the result of function LOC.tiepoints
#pch & bg: graphic parameters, 1 shape and one color per site.
#age.span: age cons... | /R/composite.age.R | permissive | plannapus/CONOP9companion | R | false | false | 2,139 | r | composite.age<-function(CONOP, agemodels, tie.points, age.span, pch, bg)
{
#agemodels is a list of published age models for each site: the numbering must follow that of sectfile
#tie.points is the result of function LOC.tiepoints
#pch & bg: graphic parameters, 1 shape and one color per site.
#age.span: age cons... |
#' Perform differential binding analysis
#'
#' This function performs differetial analysis by fitting read
#' counts to a negative binomial generalized linear model.
#'
#' @param object a \code{TCA} object.
#'
#' @param categories character string indicating levels of which
#' factor (column in the \code{design... | /R/DBanalysis.R | no_license | MusculusMus/TCseq | R | false | false | 5,035 | r | #' Perform differential binding analysis
#'
#' This function performs differetial analysis by fitting read
#' counts to a negative binomial generalized linear model.
#'
#' @param object a \code{TCA} object.
#'
#' @param categories character string indicating levels of which
#' factor (column in the \code{design... |
library(pagedown)
library(tools)
input_dir <- c("./src", "./ejercicios")
output_dir <- "./pdf"
# 1. Take all .Rmd files from `input_dir`
# 2. Convert them to PDF using `chrome_print()`
# 3. Move them to `output_dir`
for (input in list.files(path = input_dir, pattern = ".Rmd", recursive = TRUE, full.names = TRUE)) {
... | /build_slides.R | no_license | albertotb/curso-uah-eadr | R | false | false | 815 | r | library(pagedown)
library(tools)
input_dir <- c("./src", "./ejercicios")
output_dir <- "./pdf"
# 1. Take all .Rmd files from `input_dir`
# 2. Convert them to PDF using `chrome_print()`
# 3. Move them to `output_dir`
for (input in list.files(path = input_dir, pattern = ".Rmd", recursive = TRUE, full.names = TRUE)) {
... |
library(phylosim)
### Name: UNREST
### Title: The UNREST class
### Aliases: UNREST
### ** Examples
p<-UNREST(rate.list=list(
"T->C"=1, "T->A"=2, "T->G"=3, "C->T"=4, "C->A"=1,
"C->G"=2, "A->T"=3, "A->C"=4, "A->G"=1, "G->T"=2,
"G->C"=3, "G->A"=4
))
# get a summary
summary(p)
# display a b... | /data/genthat_extracted_code/phylosim/examples/UNREST.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 818 | r | library(phylosim)
### Name: UNREST
### Title: The UNREST class
### Aliases: UNREST
### ** Examples
p<-UNREST(rate.list=list(
"T->C"=1, "T->A"=2, "T->G"=3, "C->T"=4, "C->A"=1,
"C->G"=2, "A->T"=3, "A->C"=4, "A->G"=1, "G->T"=2,
"G->C"=3, "G->A"=4
))
# get a summary
summary(p)
# display a b... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% FileInputStream.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{close.File... | /man/close.FileInputStream.Rd | no_license | HenrikBengtsson/R.io | R | false | false | 854 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% FileInputStream.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{close.File... |
#///////////////////////////////////////////////////////////////////////////////
# FUNCTION PlotPokemon
#///////////////////////////////////////////////////////////////////////////////
#
#////////
# DESCRIPTION:
# Graphique interactif permettant de visualiser les forces et faiblesses
# d'un pokemon.
#
#////////
# ARGS... | /scripts/tools/plotPokemon.R | no_license | wsallem/demoManipulateWidget | R | false | false | 1,570 | r | #///////////////////////////////////////////////////////////////////////////////
# FUNCTION PlotPokemon
#///////////////////////////////////////////////////////////////////////////////
#
#////////
# DESCRIPTION:
# Graphique interactif permettant de visualiser les forces et faiblesses
# d'un pokemon.
#
#////////
# ARGS... |
\name{get_unique_elements}
\alias{get_unique_elements}
\title{Return the levels of a factor, or the unique elements of a character vector}
\usage{
get_unique_elements(elements)
}
\arguments{
\item{elements}{values}
}
\description{
Return the levels of a factor, or the unique elements of a
character vector
}
| /man/get_unique_elements.Rd | no_license | charlesberthillon/clickme | R | false | false | 312 | rd | \name{get_unique_elements}
\alias{get_unique_elements}
\title{Return the levels of a factor, or the unique elements of a character vector}
\usage{
get_unique_elements(elements)
}
\arguments{
\item{elements}{values}
}
\description{
Return the levels of a factor, or the unique elements of a
character vector
}
|
bar_color <- function(ticker){
x <- as.data.frame(getSymbols(ticker,auto.assign=FALSE))
x$BarColor <- sapply(
as.numeric(sign(x[,1]-x[,4])+2),
function(j) switch(j,"Green","Doji","Red")
)
return(x)
}
| /hackscratch/bar_color_Joris_edited.r | no_license | githubfun/R | R | false | false | 238 | r | bar_color <- function(ticker){
x <- as.data.frame(getSymbols(ticker,auto.assign=FALSE))
x$BarColor <- sapply(
as.numeric(sign(x[,1]-x[,4])+2),
function(j) switch(j,"Green","Doji","Red")
)
return(x)
}
|
#' Convert TRY text file to SQLite database
#'
#' The TRY file is huge and unnecessarily long, which makes it difficult to
#' work with. The resulting SQLite database is much smaller on disk, and can be
#' read much faster thanks to lazy evaluation.
#'
#' The resulting TRY SQLite database contains the following table... | /base/db/R/try2sqlite.R | permissive | araiho/pecan | R | false | false | 3,768 | r | #' Convert TRY text file to SQLite database
#'
#' The TRY file is huge and unnecessarily long, which makes it difficult to
#' work with. The resulting SQLite database is much smaller on disk, and can be
#' read much faster thanks to lazy evaluation.
#'
#' The resulting TRY SQLite database contains the following table... |
# Script to simulate an "epidemic" of information spreading across the
# docnet network.
# Initialise variables and storage
sim_time = 500
num_init_infec = 20
infec_prone = matrix(0, 2, 242)
infec_prone[1, ] = c(1:242)
indexes = 242*sim_time - c(241:0)
# Finding random nodes with AdoptionDate <= 5
early_docs = V(tem... | /SimulateEpidemic.R | permissive | FistOfHit/DocNet | R | false | false | 1,203 | r | # Script to simulate an "epidemic" of information spreading across the
# docnet network.
# Initialise variables and storage
sim_time = 500
num_init_infec = 20
infec_prone = matrix(0, 2, 242)
infec_prone[1, ] = c(1:242)
indexes = 242*sim_time - c(241:0)
# Finding random nodes with AdoptionDate <= 5
early_docs = V(tem... |
library(leaflet)
# a manual legend
leaflet() %>% addTiles() %>% addLegend(
position = "bottomright",
colors = rgb(t(col2rgb(palette())) / 255),
labels = palette(), opacity = 1,
title = "An Obvious Legend"
)
# }
# NOT RUN {
# an automatic legend derived from the color palette
df <- local({
n <- 3... | /leaflet_circle_markers.R | permissive | fagnersutel/temp | R | false | false | 1,464 | r | library(leaflet)
# a manual legend
leaflet() %>% addTiles() %>% addLegend(
position = "bottomright",
colors = rgb(t(col2rgb(palette())) / 255),
labels = palette(), opacity = 1,
title = "An Obvious Legend"
)
# }
# NOT RUN {
# an automatic legend derived from the color palette
df <- local({
n <- 3... |
## makeCacheMatrix: creates a matrix object 'x' that can cache its inverse.
## It has four internal functions:
## set: to set the values of 'x'
## get: to get the values of 'x'
## set_inverse: to set the inverse of 'x'
## get_inverse: to get the inverse of 'x'
## Arguments:
## x -> a square invertible matrix
... | /cachematrix.R | no_license | laudobla/ProgrammingAssignment2 | R | false | false | 1,837 | r | ## makeCacheMatrix: creates a matrix object 'x' that can cache its inverse.
## It has four internal functions:
## set: to set the values of 'x'
## get: to get the values of 'x'
## set_inverse: to set the inverse of 'x'
## get_inverse: to get the inverse of 'x'
## Arguments:
## x -> a square invertible matrix
... |
options(shiny.maxRequestSize = 200*1024^2)
options(warn=-1)
library(circlize)
library(RColorBrewer)
library(GenomicRanges)
library(data.table)
library(grDevices)
source("plot.R")
print(sessionInfo())
shinyServer(function(input, output, session){
## *** Upload data ***
observe({
if(input$submit1>... | /server.R | no_license | htpmod/shinyCircos | R | false | false | 31,668 | r |
options(shiny.maxRequestSize = 200*1024^2)
options(warn=-1)
library(circlize)
library(RColorBrewer)
library(GenomicRanges)
library(data.table)
library(grDevices)
source("plot.R")
print(sessionInfo())
shinyServer(function(input, output, session){
## *** Upload data ***
observe({
if(input$submit1>... |
##=============================================================================
##
## Copyright (c) 2019 Marco Colombo
##
## 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 t... | /fuzzedpackages/hsstan/R/misc.R | no_license | akhikolla/testpackages | R | false | false | 17,230 | r | ##=============================================================================
##
## Copyright (c) 2019 Marco Colombo
##
## 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 t... |
######## Assessment of Realdata Clusters ##########
library(nloptr)
library(doMC)
registerDoMC(cores=40)
library(tools)
library(cluster)
library(clusterCrit)
library(reshape2)
library(factoextra)
library(dplyr)
library(ggpubr)
library(reportRx)
library(xtable)
V<-PD
n.obs <- sum(V$class==2)
n.otu <- dim(V)[2]-41
... | /cluster_PD.R | no_license | d9yang/Clustering | R | false | false | 6,009 | r |
######## Assessment of Realdata Clusters ##########
library(nloptr)
library(doMC)
registerDoMC(cores=40)
library(tools)
library(cluster)
library(clusterCrit)
library(reshape2)
library(factoextra)
library(dplyr)
library(ggpubr)
library(reportRx)
library(xtable)
V<-PD
n.obs <- sum(V$class==2)
n.otu <- dim(V)[2]-41
... |
## sets the matrix, make the inverse NULL
## get the matrix
## set the inverse of the matrix
## get the inverse of the matrix
## give all functionality as a list back as a result
makeCacheMatrix <- function(x = matrix()) {
inv = NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
set... | /cachematrix.R | no_license | msvdbroek/ProgrammingAssignment2 | R | false | false | 758 | r | ## sets the matrix, make the inverse NULL
## get the matrix
## set the inverse of the matrix
## get the inverse of the matrix
## give all functionality as a list back as a result
makeCacheMatrix <- function(x = matrix()) {
inv = NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
set... |
setwd("C:/Users/Pitas/Documents/R Working Directory/Getting and Cleaning Data/UCI HAR Dataset")
# reading
features <- read.table("features.txt")
al <- read.table("activity_labels.txt")
xtest <- read.table("./test/X_test.txt")
ytest <- read.table("./test/y_test.txt")
sbtest <- read.table("./test/subject_test.... | /run_analysis.R | no_license | Vageliskos/Getting-and-Cleaning-Data | R | false | false | 1,291 | r | setwd("C:/Users/Pitas/Documents/R Working Directory/Getting and Cleaning Data/UCI HAR Dataset")
# reading
features <- read.table("features.txt")
al <- read.table("activity_labels.txt")
xtest <- read.table("./test/X_test.txt")
ytest <- read.table("./test/y_test.txt")
sbtest <- read.table("./test/subject_test.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tcu_gestao-data.R
\docType{data}
\name{tcu_gestao}
\alias{tcu_gestao}
\title{Número de Alunos da Pós-Graduação da UFERSA (2013-2017) - TCU}
\format{Data frame com 9 linhas e 6 colunas.}
\usage{
data(tcu_gestao)
}
\description{
Indicadores de ... | /man/tcu_gestao.Rd | no_license | Kassio-Ferreira/dadosUfersa | R | false | true | 589 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tcu_gestao-data.R
\docType{data}
\name{tcu_gestao}
\alias{tcu_gestao}
\title{Número de Alunos da Pós-Graduação da UFERSA (2013-2017) - TCU}
\format{Data frame com 9 linhas e 6 colunas.}
\usage{
data(tcu_gestao)
}
\description{
Indicadores de ... |
library(seleniumPipes)
### Name: setWindowSize
### Title: Change the size of the current window.
### Aliases: setWindowSize
### ** Examples
## Not run:
##D remDr <- remoteDr()
##D remDr %>% getWindowHandle() # The current window handle
##D remDr %>% getWindowHandles() # All windows in the session
##D
##D ... | /data/genthat_extracted_code/seleniumPipes/examples/setWindowSize.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,532 | r | library(seleniumPipes)
### Name: setWindowSize
### Title: Change the size of the current window.
### Aliases: setWindowSize
### ** Examples
## Not run:
##D remDr <- remoteDr()
##D remDr %>% getWindowHandle() # The current window handle
##D remDr %>% getWindowHandles() # All windows in the session
##D
##D ... |
#' ISBN to Library of Congress Control Number (LCCN).
#'
#' @author Ivan Jacob Agaloos Pesigan
#' @inheritParams lib_remove_isbn_dashes
#' @inheritParams jeksterslabRutils::util_lapply
#' @importFrom jeksterslabRutils util_get_numbers
#' @importFrom curl curl
#' @examples
#' # Single ISBN
#' isbn <- "978-0-387-98141-3"... | /R/lib_isbn2lccn.R | permissive | jeksterslabds/jeksterslabRlib | R | false | false | 2,092 | r | #' ISBN to Library of Congress Control Number (LCCN).
#'
#' @author Ivan Jacob Agaloos Pesigan
#' @inheritParams lib_remove_isbn_dashes
#' @inheritParams jeksterslabRutils::util_lapply
#' @importFrom jeksterslabRutils util_get_numbers
#' @importFrom curl curl
#' @examples
#' # Single ISBN
#' isbn <- "978-0-387-98141-3"... |
# titanic is available in your workspace
# Check out the structure of titanic
str(titanic)
# Use ggplot() for the first instruction
ggplot( titanic, aes(x = factor(Pclass), fill = factor(Sex))) +
geom_bar(position = "dodge")
# Use ggplot() for the second instruction
ggplot( titanic, aes(x = factor(Pclass), ... | /Titanic.R | no_license | squirrelpatrick/hazelnut | R | false | false | 696 | r | # titanic is available in your workspace
# Check out the structure of titanic
str(titanic)
# Use ggplot() for the first instruction
ggplot( titanic, aes(x = factor(Pclass), fill = factor(Sex))) +
geom_bar(position = "dodge")
# Use ggplot() for the second instruction
ggplot( titanic, aes(x = factor(Pclass), ... |
library(rsvd)
### Name: plot.rpca
### Title: Screeplot
### Aliases: plot.rpca
### ** Examples
#
| /data/genthat_extracted_code/rsvd/examples/plot.rpca.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 104 | r | library(rsvd)
### Name: plot.rpca
### Title: Screeplot
### Aliases: plot.rpca
### ** Examples
#
|
library(tercen)
library(dplyr)
client = TercenClient$new()
# client = TercenClient$new('testuser','mm', serviceUri='http://127.0.0.1:4400')
task = client$taskService$get(tercen::parseCommandArgs()$taskId)
task
query = task$query
project = client$projectService$get(task$projectId)
# workflowId = '7152cd08a80e36aa... | /config/tercen-studio/examples/api/operators/mean_operator.R | no_license | tercen/tercen_studio | R | false | false | 1,286 | r | library(tercen)
library(dplyr)
client = TercenClient$new()
# client = TercenClient$new('testuser','mm', serviceUri='http://127.0.0.1:4400')
task = client$taskService$get(tercen::parseCommandArgs()$taskId)
task
query = task$query
project = client$projectService$get(task$projectId)
# workflowId = '7152cd08a80e36aa... |
data<- `Salary_Data.(1)`
plot(data)
ye<-data$YearsExperience
sal<-data$Salary
cor(data$YearsExperience, data$Salary)
plot(ye,sal,cex= 1, col= "Blue", main = "salary hike vs year of experience")
mod<-lm(sal~ye)
summary(mod)
abline(mod)
pred<- predict(mod, list(ye = c(7, 15,8,9 )))
pred
| /sal.R | no_license | Pawans29/Data-Science-with-R | R | false | false | 298 | r | data<- `Salary_Data.(1)`
plot(data)
ye<-data$YearsExperience
sal<-data$Salary
cor(data$YearsExperience, data$Salary)
plot(ye,sal,cex= 1, col= "Blue", main = "salary hike vs year of experience")
mod<-lm(sal~ye)
summary(mod)
abline(mod)
pred<- predict(mod, list(ye = c(7, 15,8,9 )))
pred
|
allele.imbalance<- function(rna, rna.err){
#Step1
# estimate sequencing error, dispersion DNA counts and dispersion RNA counts
# optimization function 1
mtmp <- function(par, rna.x, rna.n, rna.err, ge){
# define parameters
disp.rna <- par
# likelihood given genotype err (not ... | /scripts/allele_imbalance-rna.r | no_license | zrcjessica/as_analysis | R | false | false | 4,291 | r | allele.imbalance<- function(rna, rna.err){
#Step1
# estimate sequencing error, dispersion DNA counts and dispersion RNA counts
# optimization function 1
mtmp <- function(par, rna.x, rna.n, rna.err, ge){
# define parameters
disp.rna <- par
# likelihood given genotype err (not ... |
# Packages also contain data: ----------------
library(reshape)
data(package="reshape")
?french_fries
head(friench_fries)
str(french_fries)
?tips
head(tips)
str(tips)
# Melting data -------------------------------
# When melting need to indicate which variables are
# identifier and which variables are measured var... | /R_Programming/Basics/06-Reshape.r | no_license | Ripunjoy93/R_Programming_for_Analytics_and_Big_Data | R | false | false | 1,274 | r | # Packages also contain data: ----------------
library(reshape)
data(package="reshape")
?french_fries
head(friench_fries)
str(french_fries)
?tips
head(tips)
str(tips)
# Melting data -------------------------------
# When melting need to indicate which variables are
# identifier and which variables are measured var... |
markovChainStep <- function(initialState, tranMatrix, steps)
{
n <- steps
step <- initialState
for(i in 1:n)
{
step <- step %*% tranMatrix
}
return (step)
}
## Traveling Salesmen Problem (from Lecture Slides)
p <- matrix(c(0, 0.5, 0.5, 0.75, 0, 0.25, 0.75, 0.25, 0), nrow=3, byrow=TRUE)
p
markovChain... | /05-MarkovChainMC/Notes-MarkovChainMonteCarlo.R | permissive | dwdii/DATA604-SimulationModeling | R | false | false | 842 | r |
markovChainStep <- function(initialState, tranMatrix, steps)
{
n <- steps
step <- initialState
for(i in 1:n)
{
step <- step %*% tranMatrix
}
return (step)
}
## Traveling Salesmen Problem (from Lecture Slides)
p <- matrix(c(0, 0.5, 0.5, 0.75, 0, 0.25, 0.75, 0.25, 0), nrow=3, byrow=TRUE)
p
markovChain... |
#' Estimate Seroincidence
#'
#' Function to estimate seroincidences based on cross-section serology data and longitudinal
#' response model.
#'
#' @param data Data frame with cross-sectional serology data per antibody and age, and additional
#' columns to identify possible \code{strata}.
#' @param antibodies Characte... | /R/estimateSeroincidence.R | no_license | cran/seroincidence | R | false | false | 4,356 | r | #' Estimate Seroincidence
#'
#' Function to estimate seroincidences based on cross-section serology data and longitudinal
#' response model.
#'
#' @param data Data frame with cross-sectional serology data per antibody and age, and additional
#' columns to identify possible \code{strata}.
#' @param antibodies Characte... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## this function creates a special "matrix" object that can cache its inverse, using the double arrow assignment to manage variable at different levels
makeCacheMatrix <- function(x = ... | /cachematrix.R | no_license | pinguino1476/ProgrammingAssignment2 | R | false | false | 1,287 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## this function creates a special "matrix" object that can cache its inverse, using the double arrow assignment to manage variable at different levels
makeCacheMatrix <- function(x = ... |
library(catR)
getSessionId = function(session) {
id = 0
if(!is.null(session) && is.list(session)) {
id = session$id
} else {
id = paste0("i",concerto$session$id)
}
return(id)
}
getSafeItems = function(items, extraFields) {
safeItems = NULL
extraFields = fromJSON(extraFields)
for(i in 1:dim(it... | /src/Concerto/PanelBundle/Resources/starter_content/src/test/_assessment/nodes/next_item_selector_5/ports/code.r | permissive | campsych/concerto-platform | R | false | false | 8,127 | r | library(catR)
getSessionId = function(session) {
id = 0
if(!is.null(session) && is.list(session)) {
id = session$id
} else {
id = paste0("i",concerto$session$id)
}
return(id)
}
getSafeItems = function(items, extraFields) {
safeItems = NULL
extraFields = fromJSON(extraFields)
for(i in 1:dim(it... |
cat("\014") # Clear your console
rm(list = ls()) #clear your environment
########################## Load in header file ######################## #
setwd("~/git/of_dollars_and_data")
source(file.path(paste0(getwd(),"/header.R")))
########################## Load in Libraries ########################## #
library(ggplot... | /analysis/xxxx_yahoo_return_10yr.R | no_license | MVMLima/of-dollars-and-data | R | false | false | 3,089 | r | cat("\014") # Clear your console
rm(list = ls()) #clear your environment
########################## Load in header file ######################## #
setwd("~/git/of_dollars_and_data")
source(file.path(paste0(getwd(),"/header.R")))
########################## Load in Libraries ########################## #
library(ggplot... |
#' Moprpholgogical operators
#'
#' Perform a dilation
#'
#' @param r a raster object
#' @return returns an object of class raster. See \code{raster}
#' @author Hans Ole Ørka \email{hans.ole.orka@@gmail.com}
#' @seealso \link[raster]{focal}
#' @rdname morphology
dilation <- function(r){
require("raster")
r1 <-... | /R/morph_dilation.R | no_license | hansoleorka/myR | R | false | false | 381 | r | #' Moprpholgogical operators
#'
#' Perform a dilation
#'
#' @param r a raster object
#' @return returns an object of class raster. See \code{raster}
#' @author Hans Ole Ørka \email{hans.ole.orka@@gmail.com}
#' @seealso \link[raster]{focal}
#' @rdname morphology
dilation <- function(r){
require("raster")
r1 <-... |
####hw4
R = read.csv("GDP.csv")
date=as.Date(R$DATE,"%m/%d/%Y")
#time series !!
logGDP<-ts(log(R[,2]),start=c(1947,1),frequency=4,names="time series")
###
plot(logGDP,type="l")
plot(diff(logGDP),type="l",main="time series differentiated")
#looks stationary !
plot(diff(diff(logGDP)),type="l")
#ACF
acf(dif... | /financial engineering programmation/hw4.R | no_license | ancgate/financial-engineering-programmation | R | false | false | 815 | r | ####hw4
R = read.csv("GDP.csv")
date=as.Date(R$DATE,"%m/%d/%Y")
#time series !!
logGDP<-ts(log(R[,2]),start=c(1947,1),frequency=4,names="time series")
###
plot(logGDP,type="l")
plot(diff(logGDP),type="l",main="time series differentiated")
#looks stationary !
plot(diff(diff(logGDP)),type="l")
#ACF
acf(dif... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/amortization.R
\name{amort_table}
\alias{amort_table}
\title{amort_table}
\usage{
amort_table(principle, annual_interest, years)
}
\arguments{
\item{years}{}
}
\description{
amort_table
}
| /man/amort_table.Rd | permissive | murraycadzow/mortgageCalc | R | false | true | 266 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/amortization.R
\name{amort_table}
\alias{amort_table}
\title{amort_table}
\usage{
amort_table(principle, annual_interest, years)
}
\arguments{
\item{years}{}
}
\description{
amort_table
}
|
# Create a data frame from the main data set.
iris.data <- data.frame(iris$Sepal.Length, iris$Sepal.Width)
# Create a table with the needed variables.
iris.data.t <- data.frame(iris$Sepal.Length, iris$Sepal.Width)
print(iris.data.t)
# Perform the Chi-Square test.
print(chisq.test(iris.data.t))
mt.data<-tab... | /chitest.R | no_license | akshatshrivastava/Basic-R | R | false | false | 379 | r | # Create a data frame from the main data set.
iris.data <- data.frame(iris$Sepal.Length, iris$Sepal.Width)
# Create a table with the needed variables.
iris.data.t <- data.frame(iris$Sepal.Length, iris$Sepal.Width)
print(iris.data.t)
# Perform the Chi-Square test.
print(chisq.test(iris.data.t))
mt.data<-tab... |
library(readr)
HistoricalQuotes_Limpios <- read_csv("6 SEMESTRE/ESTADISTICA PARA LA CIENCIA DE LA COMPUTACION/R studio/HistoricalQuotes_Limpios.csv")
View(HistoricalQuotes_Limpios)
#REGRESION CON TODAS LAS VARIABLES
y=HistoricalQuotes_Limpios$Volume #variable dependiente
z=HistoricalQuotes_Limpios$Date
x1=Historical... | /Proyecto Estadistica/proyecto_Estadistica.R | no_license | JefryNavas/Proyecto-Rstudio | R | false | false | 3,272 | r | library(readr)
HistoricalQuotes_Limpios <- read_csv("6 SEMESTRE/ESTADISTICA PARA LA CIENCIA DE LA COMPUTACION/R studio/HistoricalQuotes_Limpios.csv")
View(HistoricalQuotes_Limpios)
#REGRESION CON TODAS LAS VARIABLES
y=HistoricalQuotes_Limpios$Volume #variable dependiente
z=HistoricalQuotes_Limpios$Date
x1=Historical... |
## topic models
library(tidyverse)
library(tidytext)
library(topicmodels)
# 1. Load in all the word tidy dfs ----------------------------------------
## NOTE TO SELF: make this a function?
word_df <- c()
for(i in 1:9){
load(paste0("./data/word_counts_", i, ".Rda"))
word_df <- rbind(word_df, all_word_counts_df)
}
... | /code/topic_models.R | no_license | lesliejroot/migration-news | R | false | false | 7,383 | r | ## topic models
library(tidyverse)
library(tidytext)
library(topicmodels)
# 1. Load in all the word tidy dfs ----------------------------------------
## NOTE TO SELF: make this a function?
word_df <- c()
for(i in 1:9){
load(paste0("./data/word_counts_", i, ".Rda"))
word_df <- rbind(word_df, all_word_counts_df)
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RMDupdaterAddin.R
\docType{package}
\name{RMDupdaterAddin-package}
\alias{RMDupdaterAddin}
\alias{RMDupdaterAddin-package}
\title{RMDupdaterAddin: What the Package Does (Title Case)}
\description{
More about what it does (maybe more than one ... | /man/RMDupdaterAddin-package.Rd | no_license | kittypr/RMDupdaterAddin | R | false | true | 500 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RMDupdaterAddin.R
\docType{package}
\name{RMDupdaterAddin-package}
\alias{RMDupdaterAddin}
\alias{RMDupdaterAddin-package}
\title{RMDupdaterAddin: What the Package Does (Title Case)}
\description{
More about what it does (maybe more than one ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpMethods.R
\name{extract.lgcpPredict}
\alias{extract.lgcpPredict}
\title{extract.lgcpPredict function}
\usage{
\method{extract}{lgcpPredict}(
obj,
x = NULL,
y = NULL,
t,
s = -1,
inWindow = NULL,
crop2parentwindow = TRUE,
..... | /lgcp/man/extract.lgcpPredict.Rd | no_license | albrizre/spatstat.revdep | R | false | true | 1,423 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpMethods.R
\name{extract.lgcpPredict}
\alias{extract.lgcpPredict}
\title{extract.lgcpPredict function}
\usage{
\method{extract}{lgcpPredict}(
obj,
x = NULL,
y = NULL,
t,
s = -1,
inWindow = NULL,
crop2parentwindow = TRUE,
..... |
#######################################################################
# BIFIE.by function
BIFIE.by <- function( BIFIEobj , vars , userfct , userparnames=NULL ,
group=NULL , group_values=NULL , se=TRUE , use_Rcpp = TRUE ){
#****
s1 <- Sys.time()
cl <- match.call()
bifieobj <- BIFIEobj
if (bifieobj$... | /BIFIEsurvey/R/BIFIE.by.R | no_license | ingted/R-Examples | R | false | false | 3,944 | r |
#######################################################################
# BIFIE.by function
BIFIE.by <- function( BIFIEobj , vars , userfct , userparnames=NULL ,
group=NULL , group_values=NULL , se=TRUE , use_Rcpp = TRUE ){
#****
s1 <- Sys.time()
cl <- match.call()
bifieobj <- BIFIEobj
if (bifieobj$... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/corpus-methods-quanteda.R
\name{metacorpus}
\alias{metacorpus}
\alias{metacorpus<-}
\title{get or set corpus metadata}
\usage{
metacorpus(x, field = NULL)
metacorpus(x, field) <- value
}
\arguments{
\item{x}{A quanteda corpus object}
\item{... | /man/metacorpus.Rd | no_license | plablo09/quanteda | R | false | true | 1,092 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/corpus-methods-quanteda.R
\name{metacorpus}
\alias{metacorpus}
\alias{metacorpus<-}
\title{get or set corpus metadata}
\usage{
metacorpus(x, field = NULL)
metacorpus(x, field) <- value
}
\arguments{
\item{x}{A quanteda corpus object}
\item{... |
#' Vegetation Strips Systematic Map dataset
#'
#' Example systematic map database
#'
#' @aliases vegetated_strips_dataset
#' @format A data.frame containing 1072 observations of 15 variables:
#' \describe{ \item{short_title}{ID for each study} \item{title}{Title of
#' published article} \item{year}{Year published} \ite... | /R/eviatlas_pilotdata.R | no_license | rmetaverse/eviatlas | R | false | false | 1,304 | r | #' Vegetation Strips Systematic Map dataset
#'
#' Example systematic map database
#'
#' @aliases vegetated_strips_dataset
#' @format A data.frame containing 1072 observations of 15 variables:
#' \describe{ \item{short_title}{ID for each study} \item{title}{Title of
#' published article} \item{year}{Year published} \ite... |
ici_build_deconvolution_features_to_samples_files <- function() {
synapse_store_feather_file(
synapse_feather_id_to_tbl("syn26030510"),
"ici_cibersort.feather",
"syn22125635"
)
synapse_store_feather_file(
synapse_feather_id_to_tbl("syn26030520"),
"ici_epic.feather",
"syn22125635"
)
... | /R/feather_file_creator-ici_build_deconvolution_features_to_samples_files.R | no_license | CRI-iAtlas/iatlas-feather-files | R | false | false | 449 | r | ici_build_deconvolution_features_to_samples_files <- function() {
synapse_store_feather_file(
synapse_feather_id_to_tbl("syn26030510"),
"ici_cibersort.feather",
"syn22125635"
)
synapse_store_feather_file(
synapse_feather_id_to_tbl("syn26030520"),
"ici_epic.feather",
"syn22125635"
)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Select.DNA.R
\name{Select.DNA}
\alias{Select.DNA}
\title{Extract all the sequences and metadata from the data table for a list of selected gene regions}
\usage{
Select.DNA(
input = NULL,
gene.list = NULL,
output = NULL,
timeout = 10,
... | /man/Select.DNA.Rd | no_license | dvdeme/regPhylo | R | false | true | 2,237 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Select.DNA.R
\name{Select.DNA}
\alias{Select.DNA}
\title{Extract all the sequences and metadata from the data table for a list of selected gene regions}
\usage{
Select.DNA(
input = NULL,
gene.list = NULL,
output = NULL,
timeout = 10,
... |
## first function is used to create an object in different environment
## second function is used to compute the inverse matrix
## creat a matrix
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- functi... | /cachematrix.R | no_license | liviachoc/ProgrammingAssignment2 | R | false | false | 832 | r | ## first function is used to create an object in different environment
## second function is used to compute the inverse matrix
## creat a matrix
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- functi... |
\name{print.yourprep}
\alias{print.yourprep}
\title{Print method for yourprep output}
\description{yourprep class print function}
\usage{\method{print}{yourprep}(x, ...)}
\arguments{
\item{x}{\code{\link{yourprep}} output object to be printed}
\item{...}{Arguments to be passed to or from other methods.}
}
\ref... | /man/print.yourprep.Rd | no_license | cran/YourCast | R | false | false | 459 | rd | \name{print.yourprep}
\alias{print.yourprep}
\title{Print method for yourprep output}
\description{yourprep class print function}
\usage{\method{print}{yourprep}(x, ...)}
\arguments{
\item{x}{\code{\link{yourprep}} output object to be printed}
\item{...}{Arguments to be passed to or from other methods.}
}
\ref... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glue_operations.R
\name{glue_update_dev_endpoint}
\alias{glue_update_dev_endpoint}
\title{Updates a specified development endpoint}
\usage{
glue_update_dev_endpoint(EndpointName, PublicKey, AddPublicKeys,
DeletePublicKeys, CustomLibraries, ... | /cran/paws.analytics/man/glue_update_dev_endpoint.Rd | permissive | johnnytommy/paws | R | false | true | 2,128 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glue_operations.R
\name{glue_update_dev_endpoint}
\alias{glue_update_dev_endpoint}
\title{Updates a specified development endpoint}
\usage{
glue_update_dev_endpoint(EndpointName, PublicKey, AddPublicKeys,
DeletePublicKeys, CustomLibraries, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_delete_provisioning_template}
\alias{iot_delete_provisioning_template}
\title{Deletes a fleet provisioning template}
\usage{
iot_delete_provisioning_template(templateName)
}
\arguments{
\item{templateName}{[required... | /cran/paws.internet.of.things/man/iot_delete_provisioning_template.Rd | permissive | johnnytommy/paws | R | false | true | 558 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_delete_provisioning_template}
\alias{iot_delete_provisioning_template}
\title{Deletes a fleet provisioning template}
\usage{
iot_delete_provisioning_template(templateName)
}
\arguments{
\item{templateName}{[required... |
#' Seat Distribution by D'Hondt
#'
#' Calculates number of seats for the respective parties according to the
#' method of d'Hondt.
#'
#' @param votes Number of votes per party.
#' @param parties Names of parties (must be same length as votes).
#' @param n_seats Number of seats in parliament. Defaults to 183 (seats in
#... | /R/DHondt.R | permissive | adibender/coalitions | R | false | false | 1,886 | r | #' Seat Distribution by D'Hondt
#'
#' Calculates number of seats for the respective parties according to the
#' method of d'Hondt.
#'
#' @param votes Number of votes per party.
#' @param parties Names of parties (must be same length as votes).
#' @param n_seats Number of seats in parliament. Defaults to 183 (seats in
#... |
library(testthat)
library(congestion18tynewear)
test_check("congestion18tynewear")
| /tests/testthat.R | permissive | ppintosilva/congestion18tynewear | R | false | false | 84 | r | library(testthat)
library(congestion18tynewear)
test_check("congestion18tynewear")
|
#' Computing, Fitting and Validating the PPS Distribution
#'
#' Statistical functions to describe a Pareto Positive Stable (PPS)
#' distribution and fit it to real data. Graphical and statistical tools to
#' validate the fits are included.
#'
#' The main function you're likely to need from \pkg{ParetoPosStable} ... | /ParetoPosStable/R/ParetoPosStable.R | no_license | ingted/R-Examples | R | false | false | 762 | r | #' Computing, Fitting and Validating the PPS Distribution
#'
#' Statistical functions to describe a Pareto Positive Stable (PPS)
#' distribution and fit it to real data. Graphical and statistical tools to
#' validate the fits are included.
#'
#' The main function you're likely to need from \pkg{ParetoPosStable} ... |
DigitsConnection <- R6Class("Digits Connection",
public = list(
host = 'localhost',
port = 5000L,
initialize = function(host, port) {
if (!missing(host)) self$host <- host
if (!missing(port)) self$port <- port
self$greet()
},
greet = function() {
message('Connected to digi... | /R/rdigits.R | no_license | reinholdsson/rdigits | R | false | false | 3,535 | r | DigitsConnection <- R6Class("Digits Connection",
public = list(
host = 'localhost',
port = 5000L,
initialize = function(host, port) {
if (!missing(host)) self$host <- host
if (!missing(port)) self$port <- port
self$greet()
},
greet = function() {
message('Connected to digi... |
master_plotting <- reactive({
return_list = calc$events()
if (identical(NA, return_list)) {return()}
event_locations = return_list[[1]]
event_details = return_list[[2]]
concurrent_events = return_list[[3]]
# Need local so that each item gets its own number. Without it, the value
# of i in the ren... | /support_functions/plotting/master_plotting.R | no_license | bagherilab/DUETT | R | false | false | 2,041 | r | master_plotting <- reactive({
return_list = calc$events()
if (identical(NA, return_list)) {return()}
event_locations = return_list[[1]]
event_details = return_list[[2]]
concurrent_events = return_list[[3]]
# Need local so that each item gets its own number. Without it, the value
# of i in the ren... |
#' @name find_percentage_genes
#' @aliases find_percentage_genes
#'
#' @title Calculates the fraction of counts from genes matching a pattern string
#'
#' @description Subsets gene names that match the pattern supplied. The percentage fraction of this gene group is then calculated.
#'
#' @param object IBRAP S4 class ... | /R/find_percentage_genes.R | no_license | jcogan1/IBRAP | R | false | false | 2,801 | r | #' @name find_percentage_genes
#' @aliases find_percentage_genes
#'
#' @title Calculates the fraction of counts from genes matching a pattern string
#'
#' @description Subsets gene names that match the pattern supplied. The percentage fraction of this gene group is then calculated.
#'
#' @param object IBRAP S4 class ... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% String.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{toLowerCase.String}... | /man/toLowerCase.String.Rd | no_license | HenrikBengtsson/R.lang | R | false | false | 1,037 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% String.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{toLowerCase.String}... |
# hexbin plots with skin data
skin <- read.table("Skin_NonSkin.txt")
colnames(skin) <- c("R","G","B","class")
str(skin)
table(skin$class)
attach(skin)
library(hexbin)
hexbinplot(R ~ G)
R1 <- R[class==1]; G1 <- G[class==1]
R2 <- R[class==2]; G2 <- G[class==2]
hexbinplot(G1 ~ R1, xlim=c(0,256), ylim=c(0,2... | /2st Semester/Statistical Methodology for Data Analysis/응용데이터분석/Applied Data Analysis Using R/Applied Data Analysis Using R/13_r colors and scatterplot/colors_hexbin.r | no_license | ehdrb5011992/Statistic | R | false | false | 721 | r | # hexbin plots with skin data
skin <- read.table("Skin_NonSkin.txt")
colnames(skin) <- c("R","G","B","class")
str(skin)
table(skin$class)
attach(skin)
library(hexbin)
hexbinplot(R ~ G)
R1 <- R[class==1]; G1 <- G[class==1]
R2 <- R[class==2]; G2 <- G[class==2]
hexbinplot(G1 ~ R1, xlim=c(0,256), ylim=c(0,2... |
#!/applications/R/R-3.5.0/bin/Rscript
# Plot heatmaps of features sorted by coverage levels between start and end sites
# Usage:
# /applications/R/R-3.5.0/bin/Rscript features_avgProfileRibbon_noCorr_incl_ranLoc.R Upregulated_TEs_kss 'Upregulated' 2000 2kb '2 kb' 20 20bp 'REC8_HA_Rep2,kss_REC8_HA_Rep1' 'wt REC8-HA,ks... | /fastq_pooled/DESeq2_TEs_analysis_01/FDR0.01/profiles_upReg/heatmaps_analysis_04_ChIPonly_TEfams/features_avgProfileRibbon_noCorr_incl_ranLoc.R | no_license | ajtock/170918_Chris_RNAseq_Col_kss | R | false | false | 24,896 | r | #!/applications/R/R-3.5.0/bin/Rscript
# Plot heatmaps of features sorted by coverage levels between start and end sites
# Usage:
# /applications/R/R-3.5.0/bin/Rscript features_avgProfileRibbon_noCorr_incl_ranLoc.R Upregulated_TEs_kss 'Upregulated' 2000 2kb '2 kb' 20 20bp 'REC8_HA_Rep2,kss_REC8_HA_Rep1' 'wt REC8-HA,ks... |
/*
MPWTypes.r -- Type Declarations for Rez and DeRez
Copyright Apple Computer, Inc. 1986-1989
All rights reserved.
August 15, 1986
*/
#ifndef __MPWTYPES.R__
#define __MPWTYPES.R__
/*
* Macintosh Programmer's Workshop
* DRVR resource type 'DRVR' (requires DRVRRuntime.o)
*/
# define mDownMask 2 /* Event... | /bin/MPW-3.2.3/Interfaces/RIncludes/MPWTypes.r | no_license | elliotnunn/supermario | R | false | false | 1,851 | r | /*
MPWTypes.r -- Type Declarations for Rez and DeRez
Copyright Apple Computer, Inc. 1986-1989
All rights reserved.
August 15, 1986
*/
#ifndef __MPWTYPES.R__
#define __MPWTYPES.R__
/*
* Macintosh Programmer's Workshop
* DRVR resource type 'DRVR' (requires DRVRRuntime.o)
*/
# define mDownMask 2 /* Event... |
# Lista de pessoas com ações desenvolvidas em Cuba
# Critérios: Não ser "Unidentified by CIEX", ter ano de ação conhecido, estar entre 1964 e 1979,
countries_df = read.csv("https://raw.githubusercontent.com/jdallapola/ciex/master/scripts/GeoMap%20Timeline/export_data_geomap_timeline.csv", encoding = "UTF-8")
nrow(co... | /scripts/cuban_mil_ties.R | no_license | jdallapola/ciex | R | false | false | 2,419 | r | # Lista de pessoas com ações desenvolvidas em Cuba
# Critérios: Não ser "Unidentified by CIEX", ter ano de ação conhecido, estar entre 1964 e 1979,
countries_df = read.csv("https://raw.githubusercontent.com/jdallapola/ciex/master/scripts/GeoMap%20Timeline/export_data_geomap_timeline.csv", encoding = "UTF-8")
nrow(co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/initialize.R
\name{iea_df}
\alias{iea_df}
\title{Load IEA data from an extended energy balances .csv file}
\usage{
iea_df(
.iea_file = NULL,
text = NULL,
expected_1st_line_start = ",,TIME",
expected_2nd_line_start = "COUNTRY,FLOW,PROD... | /man/iea_df.Rd | no_license | MatthewHeun/IEATools | R | false | true | 5,820 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/initialize.R
\name{iea_df}
\alias{iea_df}
\title{Load IEA data from an extended energy balances .csv file}
\usage{
iea_df(
.iea_file = NULL,
text = NULL,
expected_1st_line_start = ",,TIME",
expected_2nd_line_start = "COUNTRY,FLOW,PROD... |
#===============================================================
# adapt_model class
#===============================================================
#' adapt_model Objects for M-steps
#'
#'
#' \code{adapt_model} objects provide the functions and their arguments in computing the M-steps.
#' Each object can be passed t... | /R/adapt-model.R | permissive | ryurko/adaptMT | R | false | false | 13,416 | r | #===============================================================
# adapt_model class
#===============================================================
#' adapt_model Objects for M-steps
#'
#'
#' \code{adapt_model} objects provide the functions and their arguments in computing the M-steps.
#' Each object can be passed t... |
library(shiny)
library(shinydashboard)
ui<-dashboardPage(
dashboardHeader(title="Lending Club Data Dashboard", titleWidth = 350),
dashboardSidebar(
sidebarMenu(
dateRangeInput("date_range", start="2007-01-01", end="2016-01-01", format='yyyy-mm-dd', label='Issued Date'),
colu... | /ui.R | no_license | qizele/Lendingclub_bi | R | false | false | 3,178 | r | library(shiny)
library(shinydashboard)
ui<-dashboardPage(
dashboardHeader(title="Lending Club Data Dashboard", titleWidth = 350),
dashboardSidebar(
sidebarMenu(
dateRangeInput("date_range", start="2007-01-01", end="2016-01-01", format='yyyy-mm-dd', label='Issued Date'),
colu... |
library(psych)
library(dplyr)
#import behavioral data
setwd("/Users/josephkable/Desktop/Ursula/Kable Lab/CogTrain/")
prebeh <- read.csv("DMP_pretx_demo_tasks_withnewvars_12.15.15.csv", sep = ",", header = TRUE)
colnames(prebeh)
#filter out only n-back and cpt columns
vnb <- prebeh %>% select(contains("vnb"))
colnames(v... | /R_scripts/EFtasks_calculating_dprime.R | no_license | utooley/CogTrain | R | false | false | 2,710 | r | library(psych)
library(dplyr)
#import behavioral data
setwd("/Users/josephkable/Desktop/Ursula/Kable Lab/CogTrain/")
prebeh <- read.csv("DMP_pretx_demo_tasks_withnewvars_12.15.15.csv", sep = ",", header = TRUE)
colnames(prebeh)
#filter out only n-back and cpt columns
vnb <- prebeh %>% select(contains("vnb"))
colnames(v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/periodUtils.R
\name{getPeriodType}
\alias{getPeriodType}
\title{getPeriodType(iso)}
\usage{
getPeriodType(iso)
}
\arguments{
\item{iso}{String which identifies the period, such as 2016Q1 or 2016Q2}
}
\value{
Returns a a character of the perio... | /man/getPeriodType.Rd | permissive | gandiwan/datim-validation | R | false | true | 419 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/periodUtils.R
\name{getPeriodType}
\alias{getPeriodType}
\title{getPeriodType(iso)}
\usage{
getPeriodType(iso)
}
\arguments{
\item{iso}{String which identifies the period, such as 2016Q1 or 2016Q2}
}
\value{
Returns a a character of the perio... |
library(ggplot2)
#Menambahkan data csv dan dimasukan kevariable penduduk.dki
penduduk.dki <- read.csv("datakependudukandki-dqlab.csv", sep = ",")
#Melakukan agregasi
aggregate(x=list(JUMLAH=penduduk.dki$JUMLAH), FUN=sum, by=list(NAMA.KABUPATEN.KOTA=penduduk.dki$NAMA.KABUPATEN.KOTA, JENIS.KELAMIN=penduduk.dki$JENIS.KE... | /Data Visualization in Data Science using R/Fungsi Aggregate.R | no_license | rhedi/Data_Science | R | false | false | 328 | r | library(ggplot2)
#Menambahkan data csv dan dimasukan kevariable penduduk.dki
penduduk.dki <- read.csv("datakependudukandki-dqlab.csv", sep = ",")
#Melakukan agregasi
aggregate(x=list(JUMLAH=penduduk.dki$JUMLAH), FUN=sum, by=list(NAMA.KABUPATEN.KOTA=penduduk.dki$NAMA.KABUPATEN.KOTA, JENIS.KELAMIN=penduduk.dki$JENIS.KE... |
# Group differences connected by lines
library(ggplot2)
library(ggalt) # devtools::install_github("hrbrmstr/ggalt")
library(dplyr)
# from: https://plot.ly/r/dumbbell-plots/
URL <- "https://raw.githubusercontent.com/plotly/datasets/master/school_earnings.csv"
fil <- basename(URL)
if (!file.exists(fil)) download.file(UR... | /Visualization-Group-Means-Connected.R | no_license | AntonSobolev/Useful-Vignettes | R | false | false | 1,354 | r | # Group differences connected by lines
library(ggplot2)
library(ggalt) # devtools::install_github("hrbrmstr/ggalt")
library(dplyr)
# from: https://plot.ly/r/dumbbell-plots/
URL <- "https://raw.githubusercontent.com/plotly/datasets/master/school_earnings.csv"
fil <- basename(URL)
if (!file.exists(fil)) download.file(UR... |
library(ggplot2)
library(sandwich)
library(msm)
# Examples of Poisson regression
# Example 1. The number of persons killed by mule or horse kicks in the Prussian army per year.
# Ladislaus Bortkiewicz collected data from 20 volumes of Preussischen Statistik.
# These data were collected on 10 corps of the Prussian ar... | /poisson regression tutorial.R | no_license | rrevansUM/Melvins | R | false | false | 7,059 | r | library(ggplot2)
library(sandwich)
library(msm)
# Examples of Poisson regression
# Example 1. The number of persons killed by mule or horse kicks in the Prussian army per year.
# Ladislaus Bortkiewicz collected data from 20 volumes of Preussischen Statistik.
# These data were collected on 10 corps of the Prussian ar... |
# ------------------------------------------------------------------------
#
# Title : Download & include fonts in package
# By : Victor
# Date : 2019-11-07
#
# ------------------------------------------------------------------------
library(gfonts)
# Data for included fonts -----------------------------... | /data-raw/include-fonts.R | no_license | dreamRs/gfonts | R | false | false | 4,420 | r |
# ------------------------------------------------------------------------
#
# Title : Download & include fonts in package
# By : Victor
# Date : 2019-11-07
#
# ------------------------------------------------------------------------
library(gfonts)
# Data for included fonts -----------------------------... |
economic <- read_excel('/Users/qidiwang1/Desktop/gdp&mobility (5).xlsx',sheet = 'Sheet7')
merge <- read.csv('/Users/qidiwang1/Desktop/疫情数据库/merge.csv')
merge$iso3_name <- as.character(merge$alpha.3)
merge$index_dt <- as.numeric(as.character(as.Date(merge$Date),'%Y%m%d'))
economic$index_dt <- as.numeric(economic$index_d... | /10月24号为止的r code/每周热点分经济体经济活跃度.R | no_license | qidiwang1/Rstudio | R | false | false | 1,685 | r | economic <- read_excel('/Users/qidiwang1/Desktop/gdp&mobility (5).xlsx',sheet = 'Sheet7')
merge <- read.csv('/Users/qidiwang1/Desktop/疫情数据库/merge.csv')
merge$iso3_name <- as.character(merge$alpha.3)
merge$index_dt <- as.numeric(as.character(as.Date(merge$Date),'%Y%m%d'))
economic$index_dt <- as.numeric(economic$index_d... |
###############################################################################################
## ##
## ##
## Export... | /Pubmed.R | permissive | ElijT/Pubmed-analysis | R | false | false | 3,591 | r | ###############################################################################################
## ##
## ##
## Export... |
## Exploratory Data Analysis - Coursera/Johns Hopkins University
## https://class.coursera.org/exdata-013/human_grading/view/courses/973507/assessments/4/submissions
## file references assume that this file is in the working directory and the data is in a subdirectory called data
call_nei_scc_summary <- function() {
... | /plot_1.R | no_license | whanrott/ExData_Plotting2 | R | false | false | 1,511 | r | ## Exploratory Data Analysis - Coursera/Johns Hopkins University
## https://class.coursera.org/exdata-013/human_grading/view/courses/973507/assessments/4/submissions
## file references assume that this file is in the working directory and the data is in a subdirectory called data
call_nei_scc_summary <- function() {
... |
#' Select variables.
#'
#' These functions power \code{\link{select}()} and \code{\link{rename}()}.
#'
#' @param vars A character vector of existing column names.
#' @param ...,args Expressions to compute. \code{select_vars} and
#' \code{rename_vars}
#' @param include,exclude Character vector of column names to alway... | /R/select-vars.R | no_license | dgrtwo/dplyr | R | false | false | 4,527 | r | #' Select variables.
#'
#' These functions power \code{\link{select}()} and \code{\link{rename}()}.
#'
#' @param vars A character vector of existing column names.
#' @param ...,args Expressions to compute. \code{select_vars} and
#' \code{rename_vars}
#' @param include,exclude Character vector of column names to alway... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.