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 |
|---|---|---|---|---|---|---|---|---|---|
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
########################################################################
###### Data transformation and helper functions
######################... | /fb_robyn.func.R | no_license | yliu4061/MMM | R | false | false | 94,659 | r | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
########################################################################
###### Data transformation and helper functions
######################... |
rm(list=ls(all=TRUE))
setwd("/Users/Monica/Google Drive/ABM/project_3")
install.packages(c("sp", "MASS", "reshape2","geojsonio","rgdal","downloader","maptools","dplyr","broom","stplanr", "ggplot2", "leaflet"))
install.packages("stplanr", dependencies = TRUE)
library(sp)
library(MASS)
library(reshape2)
library(geojso... | /project_3/london.R | no_license | mlalicea/agent_based_modeling | R | false | false | 4,689 | r | rm(list=ls(all=TRUE))
setwd("/Users/Monica/Google Drive/ABM/project_3")
install.packages(c("sp", "MASS", "reshape2","geojsonio","rgdal","downloader","maptools","dplyr","broom","stplanr", "ggplot2", "leaflet"))
install.packages("stplanr", dependencies = TRUE)
library(sp)
library(MASS)
library(reshape2)
library(geojso... |
sampleSums <- replicate(2000,sum(runif(12,-0.5,0.5)))
myplot1<-qqmath(~sampleSums)
myplot2<-histogram(~sampleSums)
| /inst/snippet/unif12.R | no_license | cran/fastR | R | false | false | 115 | r | sampleSums <- replicate(2000,sum(runif(12,-0.5,0.5)))
myplot1<-qqmath(~sampleSums)
myplot2<-histogram(~sampleSums)
|
#!/usr/bin/Rscript
print(paste("Starting at", Sys.time()))
library(rjags)
library(plyr)
library(tm)
model.file = "lda_reg1.bugs"
source(file="../base/config.R")
source(file="../models_common/lda_single_params.R")
source(file="../models_common/lda_load_train_test.R")
source(file="../models_common/lda_tdm.R")
########... | /src/models/lda_jags1pred_notest.R | no_license | tkusmierczyk/multiple_regression_lda | R | false | false | 4,805 | r | #!/usr/bin/Rscript
print(paste("Starting at", Sys.time()))
library(rjags)
library(plyr)
library(tm)
model.file = "lda_reg1.bugs"
source(file="../base/config.R")
source(file="../models_common/lda_single_params.R")
source(file="../models_common/lda_load_train_test.R")
source(file="../models_common/lda_tdm.R")
########... |
# SEMELI FRANGOPOULOU - SNR 2020452
# PART 1: SPECTRAL ANALYSIS
#installing packages
library(dplyr)
library(readr)
install.packages("tidyverse")
library(tidyverse)
# Load AD and HC datasets with mean power per band
ad_mean <- read_csv("ad_mean.csv")
hc_mean <- read_csv("hc_mean.csv")
# AD band divisio... | /spectral_analysis.R | no_license | SemeliF/Bsc_Thesis | R | false | false | 1,452 | r | # SEMELI FRANGOPOULOU - SNR 2020452
# PART 1: SPECTRAL ANALYSIS
#installing packages
library(dplyr)
library(readr)
install.packages("tidyverse")
library(tidyverse)
# Load AD and HC datasets with mean power per band
ad_mean <- read_csv("ad_mean.csv")
hc_mean <- read_csv("hc_mean.csv")
# AD band divisio... |
source("../R/Api.R")
library(rjson)
library("optparse")
option_list = list( make_option(c("-k", "--key"), action="store", default=NA, type='character',
help="Rosette API key"), make_option(c("-u", "--url"), action="store", default=NA, type='character',
help="Rosette API url"))
opt_parser = ... | /examples/language.R | permissive | kbailey-basistech/R-Binding | R | false | false | 839 | r | source("../R/Api.R")
library(rjson)
library("optparse")
option_list = list( make_option(c("-k", "--key"), action="store", default=NA, type='character',
help="Rosette API key"), make_option(c("-u", "--url"), action="store", default=NA, type='character',
help="Rosette API url"))
opt_parser = ... |
#'Get language
#'
#'Detect language from a character string.
#'
#'Takes a character string, returns a data.frame with the available values.
#'@param query the character string you want to detect the language from.
#'@param api_key your API key.
#'@return Returns a data.frame with the detected languages, in descending o... | /R/get_lang.R | no_license | cran/languagelayeR | R | false | false | 1,710 | r | #'Get language
#'
#'Detect language from a character string.
#'
#'Takes a character string, returns a data.frame with the available values.
#'@param query the character string you want to detect the language from.
#'@param api_key your API key.
#'@return Returns a data.frame with the detected languages, in descending o... |
##' Computing the conflict table
##'
##' Computing the table of conflict for \eqn{nbexperts} masses and \eqn{natoms = round(\log2(lm))} classes.
##' This function gives the conflict focal set combinations for the \eqn{nbexperts} masses. The focal sets are labeled in natural order, e.g,
##' number 2 denotes \eqn{\ome... | /R/ConflictTable.R | no_license | kuangzhou/ibelief | R | false | false | 3,101 | r | ##' Computing the conflict table
##'
##' Computing the table of conflict for \eqn{nbexperts} masses and \eqn{natoms = round(\log2(lm))} classes.
##' This function gives the conflict focal set combinations for the \eqn{nbexperts} masses. The focal sets are labeled in natural order, e.g,
##' number 2 denotes \eqn{\ome... |
#' The dataset contains 1070777 rows and 6 columns. Each row represent a SNP. It contains the LD score which is calcluated based on 1000 Genome reference data set with LD-square threshold 0.1 and window size 2MB.
#'
#' @format A dataframe named "dataLD" with 1070777 rows and 6 columns ("SNPname" , "Nstar", "TaggingSNP... | /R/LDwindow2MB_cutoff0.1.R | no_license | GeneticResources/GENESIS_PRS | R | false | false | 452 | r | #' The dataset contains 1070777 rows and 6 columns. Each row represent a SNP. It contains the LD score which is calcluated based on 1000 Genome reference data set with LD-square threshold 0.1 and window size 2MB.
#'
#' @format A dataframe named "dataLD" with 1070777 rows and 6 columns ("SNPname" , "Nstar", "TaggingSNP... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/integrate.R
\name{integrate_semiparametric}
\alias{integrate_semiparametric}
\title{Semiparametric integration model using the location-scale model}
\usage{
integrate_semiparametric(formula.location, formula.scale, ...)
}
\arguments{
... | /man/integrate_semiparametric.Rd | no_license | cran/pseval | R | false | true | 966 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/integrate.R
\name{integrate_semiparametric}
\alias{integrate_semiparametric}
\title{Semiparametric integration model using the location-scale model}
\usage{
integrate_semiparametric(formula.location, formula.scale, ...)
}
\arguments{
... |
###
# Code for interpolating sA around Fernando de Noronha 500m Adri for conditional simulations
# Auteur : nicolas.bez@ird.fr & ju.salvetat@gmail.com adrien.brunel.pro@protonmail.com
# Date : 16/03/2021
###
root.dir = getwd()
###################################################
#XXX
################################... | /Adri/main.r | no_license | Juliesalvetat/github-test | R | false | false | 12,043 | r | ###
# Code for interpolating sA around Fernando de Noronha 500m Adri for conditional simulations
# Auteur : nicolas.bez@ird.fr & ju.salvetat@gmail.com adrien.brunel.pro@protonmail.com
# Date : 16/03/2021
###
root.dir = getwd()
###################################################
#XXX
################################... |
# Problem 88
# This was a super tough one. Confusing to think about.
# To recreate the mindset you were in when you did this, consider a few things:
# 1) If you take any composite, you can generate an integer set that sums and adds to it, just by filling in ones. Like 16, it splits into 8*2, but since 8+2==10, just ad... | /problem_88.R | no_license | nograpes/project_euler | R | false | false | 2,000 | r | # Problem 88
# This was a super tough one. Confusing to think about.
# To recreate the mindset you were in when you did this, consider a few things:
# 1) If you take any composite, you can generate an integer set that sums and adds to it, just by filling in ones. Like 16, it splits into 8*2, but since 8+2==10, just ad... |
a = import('./circular_a')
x = a$getx()
getx = function () x
| /tests/testthat/modules/circular_b.r | permissive | flying-sheep/modules | R | false | false | 63 | r | a = import('./circular_a')
x = a$getx()
getx = function () x
|
# Polar chart --------------------------
# example for SSCI using this code:
# https://medium.com/optima-blog/using-polar-coordinates-for-better-visualization-1d337b6c9dec
# Variables can be the following:
# - OA share is Open practices
# - Capacity building: funded pubs, number of collabs in first year
# - Sci... | /code/poster_figs.R | no_license | elrobin/tu-case-1 | R | false | false | 2,863 | r | # Polar chart --------------------------
# example for SSCI using this code:
# https://medium.com/optima-blog/using-polar-coordinates-for-better-visualization-1d337b6c9dec
# Variables can be the following:
# - OA share is Open practices
# - Capacity building: funded pubs, number of collabs in first year
# - Sci... |
library(shiny)
shinyUI(navbarPage("Statistical Tests",
#don't quite understand what the point of this is
#includeHTML("navbar.html"),
#changes the theme of the webpage
theme = shinythemes::shinytheme("cerulean"),
... | /M2S1/Stattests/ui.R | no_license | elma16/StudentShapers-RShiny | R | false | false | 12,809 | r |
library(shiny)
shinyUI(navbarPage("Statistical Tests",
#don't quite understand what the point of this is
#includeHTML("navbar.html"),
#changes the theme of the webpage
theme = shinythemes::shinytheme("cerulean"),
... |
# Read and convert .rds file
require(reshape)
require(purrr)
require(colorspace)
require(lattice)
library(readr)
require(ggplot2)
datadir = "/media2/CRP6/Cosmology/RDEAR_output/0042/AKDE/"
plotdir = "/media2/CRP6/Cosmology/RDEAR_output/0042/AKDE_png/"
outdir = "/media2/CRP6/Cosmology/RDEAR_output/0042/AKDE_csv/"
fna... | /DEAR/readwritersd.R | permissive | aimalz/recidivator | R | false | false | 1,345 | r | # Read and convert .rds file
require(reshape)
require(purrr)
require(colorspace)
require(lattice)
library(readr)
require(ggplot2)
datadir = "/media2/CRP6/Cosmology/RDEAR_output/0042/AKDE/"
plotdir = "/media2/CRP6/Cosmology/RDEAR_output/0042/AKDE_png/"
outdir = "/media2/CRP6/Cosmology/RDEAR_output/0042/AKDE_csv/"
fna... |
IsDateInvalid <- function (date, opt_warnings=TRUE) {
# d <- try( as.Date( date, format= "%d-%m-%Y %H:%M:%S" ) ) #original
d <- try(as.Date(date))
if( class(d) == "try-error" || is.na(d) ){
stop(paste("\n\nInvalid date supplied:", date))
return(1)
}
#If a date in the future is supplied, print an erro... | /R/validity_checks.R | no_license | ozagordi/weatherData | R | false | false | 3,798 | r | IsDateInvalid <- function (date, opt_warnings=TRUE) {
# d <- try( as.Date( date, format= "%d-%m-%Y %H:%M:%S" ) ) #original
d <- try(as.Date(date))
if( class(d) == "try-error" || is.na(d) ){
stop(paste("\n\nInvalid date supplied:", date))
return(1)
}
#If a date in the future is supplied, print an erro... |
###############################################################
###############################################################
###############################################################
# find all files
fileLocation <- './rawData/multiClassData/'
# Only load from microscope 3
files <- list.files(fileLocation, '[m... | /dataPrep/dataPrep.R | no_license | leeleavitt/cellTypePredictor | R | false | false | 3,307 | r | ###############################################################
###############################################################
###############################################################
# find all files
fileLocation <- './rawData/multiClassData/'
# Only load from microscope 3
files <- list.files(fileLocation, '[m... |
#
# Copyright 2007-2021 by the individuals mentioned in the source code history
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | /inst/models/passing/MultipleGroupWLS.R | no_license | OpenMx/OpenMx | R | false | false | 3,585 | r | #
# Copyright 2007-2021 by the individuals mentioned in the source code history
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... |
### creating a multivariate dataset
library(robustbase);
### parameters chosen by the user:
n=30;
PocetOut=3; #how many contaminated data points
nr=10;
beta=c(10,1,1,1);
### generate random datasets
outmat=outlimat=matrix(0, nrow=nr, ncol=5);
for (i in 1:nr)
{print(i);
pom=CreateB();
x=pom$x; y=pom$y;... | /SimulMultivar.R | permissive | jankalinaUI/Bootstrap-LWS | R | false | false | 563 | r | ### creating a multivariate dataset
library(robustbase);
### parameters chosen by the user:
n=30;
PocetOut=3; #how many contaminated data points
nr=10;
beta=c(10,1,1,1);
### generate random datasets
outmat=outlimat=matrix(0, nrow=nr, ncol=5);
for (i in 1:nr)
{print(i);
pom=CreateB();
x=pom$x; y=pom$y;... |
##Read in data##
data_LPS_celediet=read.csv("COX2_PartialKO_LPS_LPScelediet.csv")
data_LPS_acutecele=read.csv("COX2_PartialKO_LPS_acutecele.csv")
data_LPS_celediet$Celecoxib.LPS_trough[is.na(data_LPS_celediet$Celecoxib.LPS_trough)]=0
data_LPS_acutecele$Celecoxib.LPS_trough[is.na(data_LPS_acutecele$Celecoxib.LPS_t... | /PartialCOX2KO_Celecoxib_NLME.R | no_license | kntheken/r_scripts | R | false | false | 32,836 | r | ##Read in data##
data_LPS_celediet=read.csv("COX2_PartialKO_LPS_LPScelediet.csv")
data_LPS_acutecele=read.csv("COX2_PartialKO_LPS_acutecele.csv")
data_LPS_celediet$Celecoxib.LPS_trough[is.na(data_LPS_celediet$Celecoxib.LPS_trough)]=0
data_LPS_acutecele$Celecoxib.LPS_trough[is.na(data_LPS_acutecele$Celecoxib.LPS_t... |
plotUI <- function(id) {
ns <- NS(id)
plotlyOutput(ns('plot'))
}
plotServer <- function(input, output, session, userInputData, OutputData) {
output$plot <- renderPlotly({
df <- data.frame(
Month = 1:(userInputData$years.w*12),
Savings = OutputData()[[... | /R/Savings_Plot.R | no_license | yonidfriedman/RetirementCalculator | R | false | false | 790 | r | plotUI <- function(id) {
ns <- NS(id)
plotlyOutput(ns('plot'))
}
plotServer <- function(input, output, session, userInputData, OutputData) {
output$plot <- renderPlotly({
df <- data.frame(
Month = 1:(userInputData$years.w*12),
Savings = OutputData()[[... |
\name{compute_modularity}
\alias{compute_modularity}
\alias{modularity}
\concept{Modularity}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Function to compute citation graph modularity over a time window.
}
\description{
This function computes Newman's modularity of the citation graph restricte... | /man/compute_modularity.Rd | no_license | cran/Diderot | R | false | false | 3,038 | rd | \name{compute_modularity}
\alias{compute_modularity}
\alias{modularity}
\concept{Modularity}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Function to compute citation graph modularity over a time window.
}
\description{
This function computes Newman's modularity of the citation graph restricte... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.interface.default.r
\name{model.interface-class}
\alias{model.interface-class}
\alias{model.interface.default.class}
\title{(Internal) An interface for model.adapter and statistical/machine learning models.}
\description{
This class pro... | /man/model.interface-class.Rd | permissive | Marchen/model.adapter | R | false | true | 12,770 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.interface.default.r
\name{model.interface-class}
\alias{model.interface-class}
\alias{model.interface.default.class}
\title{(Internal) An interface for model.adapter and statistical/machine learning models.}
\description{
This class pro... |
# s.POLYMARS.R
# ::rtemis::
# 2016 E.D. Gennatas lambdamd.org
# method = "cv" fails to find nk and penalty
#' Multivariate adaptive polynomial spline regression (POLYMARS) [C, R]
#'
#' Trains a POLYMARS model using \code{polspline::polymars} and validates it
#'
#' @param x Numeric vector or matrix of features, i.e. in... | /R/s.POLYMARS.R | no_license | tlarzg/rtemis | R | false | false | 6,917 | r | # s.POLYMARS.R
# ::rtemis::
# 2016 E.D. Gennatas lambdamd.org
# method = "cv" fails to find nk and penalty
#' Multivariate adaptive polynomial spline regression (POLYMARS) [C, R]
#'
#' Trains a POLYMARS model using \code{polspline::polymars} and validates it
#'
#' @param x Numeric vector or matrix of features, i.e. in... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 13645
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 13644
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 13644
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Basler/terminator/stmt21_127_413/stmt21_127_413.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 720 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 13645
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 13644
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 13644
c
c Input Parameter (command line, ... |
require(Quandl)
symbolList <- c("AMZN","GOOG", "MSFT", "AAPL", "GLW", "HAL")
data <- data.frame("Date" = c(),
"Effective Tax Rate" = c(),
"Earnings Before Interest and Taxes" = c(),
"symbol" = c())
for(symbol in symbolList){
effectiveTaxRate = Quandl(paste0(... | /get_financial_data_small.R | no_license | micahstubbs/moebio-time-patterns | R | false | false | 759 | r | require(Quandl)
symbolList <- c("AMZN","GOOG", "MSFT", "AAPL", "GLW", "HAL")
data <- data.frame("Date" = c(),
"Effective Tax Rate" = c(),
"Earnings Before Interest and Taxes" = c(),
"symbol" = c())
for(symbol in symbolList){
effectiveTaxRate = Quandl(paste0(... |
data<- read.table("household_power_consumption.txt", sep=";", header=T, quote= "", strip.white=TRUE, stringsAsFactors = F, na.strings= "?")
data<- subset(data, (data$Date == "1/2/2007" | data$Date== "2/2/2007"))
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
data$DateTime <- as.POSIXct(paste(data$Date, dat... | /plot3.R | no_license | anushakoganti3/Exploratory-Data-Analysis-Course-Project-1 | R | false | false | 727 | r | data<- read.table("household_power_consumption.txt", sep=";", header=T, quote= "", strip.white=TRUE, stringsAsFactors = F, na.strings= "?")
data<- subset(data, (data$Date == "1/2/2007" | data$Date== "2/2/2007"))
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
data$DateTime <- as.POSIXct(paste(data$Date, dat... |
#Copyright (c) 2009-2022 Sebastien Bihorel
#All rights reserved.
#
#This file is part of scaRabee.
#
# scaRabee 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
# ... | /R/get.layout.R | no_license | cran/scaRabee | R | false | false | 1,368 | r |
#Copyright (c) 2009-2022 Sebastien Bihorel
#All rights reserved.
#
#This file is part of scaRabee.
#
# scaRabee 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
# ... |
## Internal support funtions used in remake creation.
.remake_initialize_packages <- function(obj) {
## NOTE: This one here is working entirely by reference, but still
## must return the object
if (!obj$store$packages_loaded) {
remake_print_message(obj, "READ", "", "# loading packages")
packages <- obj$st... | /R/remake_internals.R | no_license | tjmahr/remake | R | false | false | 8,257 | r | ## Internal support funtions used in remake creation.
.remake_initialize_packages <- function(obj) {
## NOTE: This one here is working entirely by reference, but still
## must return the object
if (!obj$store$packages_loaded) {
remake_print_message(obj, "READ", "", "# loading packages")
packages <- obj$st... |
#########################
# DONUT LAME PARAMETERS #
#########################
donut_bfgs_fine <- c(0.001946985000541688,
0.001741279133583491,
0.00027503901720266045,
0.0002396696285121969,
0.00017870057412349902,
... | /Rscripts/Donut_bfgs_lame.R | no_license | LuftDaniel/Master-Thesis | R | false | false | 4,377 | r |
#########################
# DONUT LAME PARAMETERS #
#########################
donut_bfgs_fine <- c(0.001946985000541688,
0.001741279133583491,
0.00027503901720266045,
0.0002396696285121969,
0.00017870057412349902,
... |
library(tidygraph)
library(ggraph)
library(tidyverse)
library(gtools)
library(hrbrthemes)
library(lubridate)
library(igraph)
library(RColorBrewer)
library(here)
# Reading-in and cleaning data
x <- read_csv(here("data/input/billboardHot100_1999-2019.csv"))
y <- x %>%
distinct(Artists, Name, .keep_all = TRUE) %>%
... | /scripts/graph.R | permissive | dovmar/Hot100CollabGraph | R | false | false | 2,715 | r | library(tidygraph)
library(ggraph)
library(tidyverse)
library(gtools)
library(hrbrthemes)
library(lubridate)
library(igraph)
library(RColorBrewer)
library(here)
# Reading-in and cleaning data
x <- read_csv(here("data/input/billboardHot100_1999-2019.csv"))
y <- x %>%
distinct(Artists, Name, .keep_all = TRUE) %>%
... |
# DIP rate paper functions and all required libraries
#
require(deSolve) # ODE solver usedfor generating outputs from 2-state model
# without partial equilibrium assumption
require(gplots) # needed for colors
require(grid)
require(drc) # for dose-response curves; version 2.5-12
library(car) # for linear ... | /code_for_figs/R/NatMethFxns.r | no_license | QuLab-VU/DIP_rate_NatMeth2016 | R | false | false | 20,710 | r | # DIP rate paper functions and all required libraries
#
require(deSolve) # ODE solver usedfor generating outputs from 2-state model
# without partial equilibrium assumption
require(gplots) # needed for colors
require(grid)
require(drc) # for dose-response curves; version 2.5-12
library(car) # for linear ... |
log_like_forces<-function(net, D, X, B, m=network.size(net), steps=1e3)
{
directed<-is.directed(net)
N<-network.size(net)
Y<-as.sociomatrix(net)
C_log_like_forces<- function(directed, N, D, steps, Y, X, B, m)
{
ans<-.C("log_like_forces", NAOK=TRUE, directed=as.integer(directed), N=as.integer(N),
... | /VBLPCM/R/log_like_forces.R | no_license | ingted/R-Examples | R | false | false | 1,194 | r | log_like_forces<-function(net, D, X, B, m=network.size(net), steps=1e3)
{
directed<-is.directed(net)
N<-network.size(net)
Y<-as.sociomatrix(net)
C_log_like_forces<- function(directed, N, D, steps, Y, X, B, m)
{
ans<-.C("log_like_forces", NAOK=TRUE, directed=as.integer(directed), N=as.integer(N),
... |
#Prediction and Ensemble with sdm package
#Models selected: GLM, GAM and MARS.
lst<-list.files("/predictors_geo",pattern="asc$",full.names=T)
preds<-stack(lst)
Pm<-shapefile("/sightings/Pm.shp")
Pm_sdmData<-sdmData(n~latitude+aspect+bathymetry+dcanyon+dcs+dcsh+dcr+dfan+dmtlow+dmtmhigh+dmtvlow+slope,
... | /code_analysis/prediction_and_ensemble.R | no_license | brunopclaro/SeafloorGeomorphic_modelling | R | false | false | 1,557 | r | #Prediction and Ensemble with sdm package
#Models selected: GLM, GAM and MARS.
lst<-list.files("/predictors_geo",pattern="asc$",full.names=T)
preds<-stack(lst)
Pm<-shapefile("/sightings/Pm.shp")
Pm_sdmData<-sdmData(n~latitude+aspect+bathymetry+dcanyon+dcs+dcsh+dcr+dfan+dmtlow+dmtmhigh+dmtvlow+slope,
... |
### ### ### ### ### ### ### ### ### ### ### ###
# PREPARING ELK DISTRIBUTION DATA #
# FOR ANALYSIS OF HUMAN INFLUENCE ON WOLF #
# DISTRIBUTIONS AND BEHAVIORS #
# ... | /dataPrepElkDistn.R | no_license | kristinjbarker/HumanInfluenceOnWolves | R | false | false | 5,731 | r | ### ### ### ### ### ### ### ### ### ### ### ###
# PREPARING ELK DISTRIBUTION DATA #
# FOR ANALYSIS OF HUMAN INFLUENCE ON WOLF #
# DISTRIBUTIONS AND BEHAVIORS #
# ... |
## only calculates the inverse once
## How does it work:
## M <- matrix(c(3,5,6,7),2,2)
## a <- makeCacheMatrix(M)
## cacheSolve(a)
## set() set x to be y and m to be NULL
## get() gets the x matrix
## getinverse() if the inverse has already been calculated it, then get the inverse directly, else it is NULL
## se... | /cachematrix.R | no_license | songzizhen/ProgrammingAssignment2 | R | false | false | 1,065 | r | ## only calculates the inverse once
## How does it work:
## M <- matrix(c(3,5,6,7),2,2)
## a <- makeCacheMatrix(M)
## cacheSolve(a)
## set() set x to be y and m to be NULL
## get() gets the x matrix
## getinverse() if the inverse has already been calculated it, then get the inverse directly, else it is NULL
## se... |
/Tutorial_2/Tutorial_2.R | no_license | sambittarai/Big-Data-and-Machine-Learning-in-Finance-and-Economics-ECON2333- | R | false | false | 3,849 | r | ||
############################################################################
####################### functions/import.data.R ############################
#
# Funções para importação dos dados. A definição de quais variáveis são
# categóricas ou numéricas é feita através de arquivos externos contendo os
# nomes das va... | /R/functions/import.data.R | no_license | andrebrujah/ElsaPredictiveModeling | R | false | false | 5,496 | r | ############################################################################
####################### functions/import.data.R ############################
#
# Funções para importação dos dados. A definição de quais variáveis são
# categóricas ou numéricas é feita através de arquivos externos contendo os
# nomes das va... |
library(pracma)
### Name: halley
### Title: Halley's Root Finding Mathod
### Aliases: halley
### Keywords: math
### ** Examples
halley(sin, 3.0) # 3.14159265358979 in the 3 iterations
halley(function(x) x*exp(x) - 1, 1.0)
# 0.567143290409784 Gauss' omega constant
# Legendre polynomia... | /data/genthat_extracted_code/pracma/examples/halley.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 447 | r | library(pracma)
### Name: halley
### Title: Halley's Root Finding Mathod
### Aliases: halley
### Keywords: math
### ** Examples
halley(sin, 3.0) # 3.14159265358979 in the 3 iterations
halley(function(x) x*exp(x) - 1, 1.0)
# 0.567143290409784 Gauss' omega constant
# Legendre polynomia... |
# PERFORMANCE ---------------------------------------------------------------------
# KS
metric_ks = function(obs, prob_pred) {
dat = data.frame(obs = as.factor(obs), pred = prob_pred)
dat_out = roc_curve(dat, obs, pred)
fpr = 1 - dat_out$specificity
tpr = dat_out$sensitivity
ks = max(tpr - fpr) * 100
retu... | /scripts/models_perf.r | no_license | sebastianguinazu/fontar_predict | R | false | false | 1,559 | r | # PERFORMANCE ---------------------------------------------------------------------
# KS
metric_ks = function(obs, prob_pred) {
dat = data.frame(obs = as.factor(obs), pred = prob_pred)
dat_out = roc_curve(dat, obs, pred)
fpr = 1 - dat_out$specificity
tpr = dat_out$sensitivity
ks = max(tpr - fpr) * 100
retu... |
#title: "Test speed-up and scale-up of R-Rerf Iteration 8"
#author: "James Browne"
#date: "May 16 2017"
library(ggplot2)
library(reshape)
library(scales)
library(plyr)
library(randomForest)
library(ranger)
library(xgboost)
library(rerf)
leg <- theme(legend.text = element_text(size = 12), legend.title=element_blank(),... | /exper/exp0046/exp0046.R | no_license | jbrowne6/exper | R | false | false | 5,422 | r | #title: "Test speed-up and scale-up of R-Rerf Iteration 8"
#author: "James Browne"
#date: "May 16 2017"
library(ggplot2)
library(reshape)
library(scales)
library(plyr)
library(randomForest)
library(ranger)
library(xgboost)
library(rerf)
leg <- theme(legend.text = element_text(size = 12), legend.title=element_blank(),... |
#############################Telecom Solution###################
################################################################
#Business Understanding
#Data Understanding
#Data Preparation & EDA
#Model Building
#Model Evaluation
################################################################
### Business Understa... | /Logistic Regression/Telecom Churn/Telecom_Churn.R | no_license | ramkrishnaa32/PGDDS-Projects | R | false | false | 16,689 | r | #############################Telecom Solution###################
################################################################
#Business Understanding
#Data Understanding
#Data Preparation & EDA
#Model Building
#Model Evaluation
################################################################
### Business Understa... |
#!/usr/bin/env Rscript
suppressWarnings(suppressPackageStartupMessages(library(edgeR, quietly=TRUE)))
suppressWarnings(suppressPackageStartupMessages(library(ggplot2, quietly=TRUE)))
mode = ifelse(length(commandArgs(trailingOnly=TRUE))==1, 'debug', 'batch')
if (mode=="debug") {
dir_work = '/Users/s229181/MSN/'
f... | /amalgkit/cstmm.r | permissive | kfuku52/amalgkit | R | false | false | 11,264 | r | #!/usr/bin/env Rscript
suppressWarnings(suppressPackageStartupMessages(library(edgeR, quietly=TRUE)))
suppressWarnings(suppressPackageStartupMessages(library(ggplot2, quietly=TRUE)))
mode = ifelse(length(commandArgs(trailingOnly=TRUE))==1, 'debug', 'batch')
if (mode=="debug") {
dir_work = '/Users/s229181/MSN/'
f... |
source("function.r")
##the founder's haplotypes
#import the haplotypes generated by cosi
haplotype <- read.table("out_100k_10k_1kb.hap-1", header=F)
colnames(haplotype) <- c("HAP", "CHROM", paste("SNP", 1:(ncol(haplotype)-2), sep=""))
snp <-read.table("out_100k_10k_1kb.pos-1", header=T)
#make allele 1 is the mino... | /2014-10-07 simulation for family data 1kb region more generations and children random risk haplotypes.r | no_license | gtlntw/p3_TRAP | R | false | false | 6,216 | r | source("function.r")
##the founder's haplotypes
#import the haplotypes generated by cosi
haplotype <- read.table("out_100k_10k_1kb.hap-1", header=F)
colnames(haplotype) <- c("HAP", "CHROM", paste("SNP", 1:(ncol(haplotype)-2), sep=""))
snp <-read.table("out_100k_10k_1kb.pos-1", header=T)
#make allele 1 is the mino... |
#######Text Mining################
######tidy the summary and text#######
library(stringr)
library(tidytext)
library(tidyverse)
#####tidy the summary and text#######
raw_data<-read_csv("derived_data/tidy_data.csv")
raw_data$summary<-raw_data$summary%>%
tolower() %>%
str_replace_all (",", " ") %>%
str_replace_al... | /tidy_text.R | no_license | Jessie1024/Amazon-food-review | R | false | false | 1,200 | r | #######Text Mining################
######tidy the summary and text#######
library(stringr)
library(tidytext)
library(tidyverse)
#####tidy the summary and text#######
raw_data<-read_csv("derived_data/tidy_data.csv")
raw_data$summary<-raw_data$summary%>%
tolower() %>%
str_replace_all (",", " ") %>%
str_replace_al... |
#Load Data
library('shrinkR')
library('data.table')
library('reshape2')
library('ggplot2')
library('ggrepel')
library('scales')
library('jsonlite')
library('pbapply')
library('stringi')
#Load data
suppressWarnings(ENET <- getLeaderboard('579a3e0ca4d22170960c78d2'))
suppressWarnings(VW <- getLeaderboard('579a29ef2a5958... | /data-science-scripts/zach/VW_vs_ENET.R | no_license | mcohenmcohen/DataRobot | R | false | false | 6,807 | r | #Load Data
library('shrinkR')
library('data.table')
library('reshape2')
library('ggplot2')
library('ggrepel')
library('scales')
library('jsonlite')
library('pbapply')
library('stringi')
#Load data
suppressWarnings(ENET <- getLeaderboard('579a3e0ca4d22170960c78d2'))
suppressWarnings(VW <- getLeaderboard('579a29ef2a5958... |
# Generate colour palette ------------------------------------------------------
# Helper function to generate a colour ramp that will be used to map colours to
# value bins of the species occurrence count raster.
get_colours <- function(type, key, colour_breaks = NULL, colour_nbreaks = NULL){
breaks <- colour_break... | /R/map_fetch.R | permissive | JanLauGe/rgbif | R | false | false | 19,206 | r |
# Generate colour palette ------------------------------------------------------
# Helper function to generate a colour ramp that will be used to map colours to
# value bins of the species occurrence count raster.
get_colours <- function(type, key, colour_breaks = NULL, colour_nbreaks = NULL){
breaks <- colour_break... |
#Kaggle Competition - Rossmann Store Sales
##Cross Validation of model
#Read input
dir = 'input/'
store = read.csv(paste0(dir,"store.csv"), na.strings = c("NA", ''))
train = read.csv(paste0(dir,"train.csv"))
#Merge datasets
train = merge(train, store)
#Data Cleanup
##Conversions to factors
processData = function(df... | /Store Sales/model_test.R | no_license | Anithaponnuru/Kaggle | R | false | false | 2,829 | r | #Kaggle Competition - Rossmann Store Sales
##Cross Validation of model
#Read input
dir = 'input/'
store = read.csv(paste0(dir,"store.csv"), na.strings = c("NA", ''))
train = read.csv(paste0(dir,"train.csv"))
#Merge datasets
train = merge(train, store)
#Data Cleanup
##Conversions to factors
processData = function(df... |
library(datasets)
# Use a fluid Bootstrap layout
fluidPage(theme="d3style.css",
# Give the page a title
titlePanel("Telephones by region"),
# Generate a row with a sidebar
sidebarLayout(
# Define the sidebar with one input
sidebarPanel(
selectInput("region", "Region:... | /RShiny_D3JS_GaugeChart/ui.R | no_license | nayankumar/Rshiny-D3JS | R | false | false | 671 | r | library(datasets)
# Use a fluid Bootstrap layout
fluidPage(theme="d3style.css",
# Give the page a title
titlePanel("Telephones by region"),
# Generate a row with a sidebar
sidebarLayout(
# Define the sidebar with one input
sidebarPanel(
selectInput("region", "Region:... |
#' Convert rpart to d3.js hierarchy
#'
#' This thing is not even close to being done.
#'
#' @param rpart_data \code{rpart} object to be converted
convert_rpart = function (rpart_data = NULL) {
rpk <- as.party(rpart_data)
data = rapply(rpk$node,unclass,how="replace")
#fill in information at the root level for no... | /R/converters.R | permissive | xtmwang/sankeytree | R | false | false | 2,408 | r | #' Convert rpart to d3.js hierarchy
#'
#' This thing is not even close to being done.
#'
#' @param rpart_data \code{rpart} object to be converted
convert_rpart = function (rpart_data = NULL) {
rpk <- as.party(rpart_data)
data = rapply(rpk$node,unclass,how="replace")
#fill in information at the root level for no... |
#' 'Build' (i.e., evaluate) a plotly object
#'
#' This generic function creates the list object sent to plotly.js
#' for rendering. Using this function can be useful for overriding defaults
#' provided by `ggplotly`/`plot_ly` or for debugging rendering
#' errors.
#'
#' @param p a ggplot object, or a plotly object, or a... | /R/plotly_build.R | permissive | nsm120/plotly | R | false | false | 33,224 | r | #' 'Build' (i.e., evaluate) a plotly object
#'
#' This generic function creates the list object sent to plotly.js
#' for rendering. Using this function can be useful for overriding defaults
#' provided by `ggplotly`/`plot_ly` or for debugging rendering
#' errors.
#'
#' @param p a ggplot object, or a plotly object, or a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Data_descriptions.R
\docType{data}
\name{Fteydea}
\alias{Fteydea}
\title{\emph{Fringilla teydea} song dataset}
\format{
A list of 4 objects:
\describe{
\item{Info}{Specimen information for \emph{F. teydea} dataset in the form of a data.fram... | /man/Fteydea.Rd | no_license | ArdernHB/GeoOrigins | R | false | true | 1,819 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Data_descriptions.R
\docType{data}
\name{Fteydea}
\alias{Fteydea}
\title{\emph{Fringilla teydea} song dataset}
\format{
A list of 4 objects:
\describe{
\item{Info}{Specimen information for \emph{F. teydea} dataset in the form of a data.fram... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prt_extend_path.R
\name{prt_extend_path}
\alias{prt_extend_path}
\title{Extend a path to include given start and end points}
\usage{
prt_extend_path(l_geom, start_pt, end_pt)
}
\arguments{
\item{l_geom}{geometry passed from inside prt_shortpa... | /man/prt_extend_path.Rd | no_license | jmlondon/pathroutr | R | false | true | 473 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prt_extend_path.R
\name{prt_extend_path}
\alias{prt_extend_path}
\title{Extend a path to include given start and end points}
\usage{
prt_extend_path(l_geom, start_pt, end_pt)
}
\arguments{
\item{l_geom}{geometry passed from inside prt_shortpa... |
##
## Expand out vector values into a multidimensional matrix
##
## April 2007
## d: a vector of matrix dimensions
## ds: an index of d, denoting which direction the vector lies
## inVec: vector values
## we must have length(inVec)==d[ds]
expandOut <- function( inVec, ds, d){
if ( length(inVec) != d[ds] ){
sto... | /R/utilitiesMultiMat.R | no_license | vthorsson/tfinf | R | false | false | 2,753 | r | ##
## Expand out vector values into a multidimensional matrix
##
## April 2007
## d: a vector of matrix dimensions
## ds: an index of d, denoting which direction the vector lies
## inVec: vector values
## we must have length(inVec)==d[ds]
expandOut <- function( inVec, ds, d){
if ( length(inVec) != d[ds] ){
sto... |
# Reference: https://github.com/trevorstephens/titanic/blob/master/Tutorial1.R
# Trevor Stephens
# Titanic: Getting Started With R - Part 1: Booting up in R
# Full guide available at http://trevorstephens.com/
# Set working directory and import datafiles
setwd("/Users/donghochoi/Documents/Work/TA/PS_16S/github/PSwith... | /titanic_example/code/Tutorial1.R | no_license | DonghoChoi/PSwithData_2016S | R | false | false | 850 | r | # Reference: https://github.com/trevorstephens/titanic/blob/master/Tutorial1.R
# Trevor Stephens
# Titanic: Getting Started With R - Part 1: Booting up in R
# Full guide available at http://trevorstephens.com/
# Set working directory and import datafiles
setwd("/Users/donghochoi/Documents/Work/TA/PS_16S/github/PSwith... |
## Read the household power consumption dataset
readData <- read.csv("household_power_consumption.txt", sep = ';', na.strings = "?")
readData$Date <- as.Date(readData$Date, format = "%d/%m/%Y")
## Subset the specified date range
subsetData <- subset(readData, subset = (Date >= "2007-02-01" & Date <= "2007-02-02"))
##... | /plot4.R | no_license | David-Robinson/ExData_Plotting1 | R | false | false | 1,478 | r | ## Read the household power consumption dataset
readData <- read.csv("household_power_consumption.txt", sep = ';', na.strings = "?")
readData$Date <- as.Date(readData$Date, format = "%d/%m/%Y")
## Subset the specified date range
subsetData <- subset(readData, subset = (Date >= "2007-02-01" & Date <= "2007-02-02"))
##... |
library(editrules)
FILE ="benchmip_mixed2.txt"
generate_E <- function(nvar=10){
s <- seq_len(nvar)
num_vars <- paste0("x", s)
edits <- "x1>=0"
if (nvar > 1){
edits <- c(edits,
paste0("if (", head(num_vars, -1)," >= 0)", tail(num_vars, -1), ">= 0"))
}
editset(edits)
}
error <- function(... | /pkg/inst/script/bench/benchmip_mixed2.R | no_license | data-cleaning/editrules | R | false | false | 2,061 | r | library(editrules)
FILE ="benchmip_mixed2.txt"
generate_E <- function(nvar=10){
s <- seq_len(nvar)
num_vars <- paste0("x", s)
edits <- "x1>=0"
if (nvar > 1){
edits <- c(edits,
paste0("if (", head(num_vars, -1)," >= 0)", tail(num_vars, -1), ">= 0"))
}
editset(edits)
}
error <- function(... |
#' @import methods
#' @import DBI
#' @import utils
#' @importFrom tibble data_frame
#' @importFrom stats as.formula coefficients gaussian predict quantile
NULL
| /R/imports.R | permissive | land23/sparklyr | R | false | false | 160 | r | #' @import methods
#' @import DBI
#' @import utils
#' @importFrom tibble data_frame
#' @importFrom stats as.formula coefficients gaussian predict quantile
NULL
|
# install.packages('devtools')
library(devtools)
#Warning message:
#Username parameter is deprecated. Please use ririzarr/rafalib
# (When I install the rafalib it show the warning message??????)
# install_github('rafalib','ririzarr')
library(rafalib)
| /lab/course1/install from github.R | no_license | chadchouGitHub/GenomeNote | R | false | false | 253 | r | # install.packages('devtools')
library(devtools)
#Warning message:
#Username parameter is deprecated. Please use ririzarr/rafalib
# (When I install the rafalib it show the warning message??????)
# install_github('rafalib','ririzarr')
library(rafalib)
|
#' @title Bag of Little Bootstrap Confidence Interval for Linear Regression Estimators
#' @description blb.ceof.ci is used to calculate the bag of little bootstrap confidence interval for the linear model
#' @param data a dataframe or tibble object
#' @param y the name of the response variable
#' @param x the name of ... | /R/blbLM.R | permissive | harubin/blbLM | R | false | false | 2,343 | r |
#' @title Bag of Little Bootstrap Confidence Interval for Linear Regression Estimators
#' @description blb.ceof.ci is used to calculate the bag of little bootstrap confidence interval for the linear model
#' @param data a dataframe or tibble object
#' @param y the name of the response variable
#' @param x the name of ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stream_network_analysis.R
\name{wbt_remove_short_streams}
\alias{wbt_remove_short_streams}
\title{Remove short streams}
\usage{
wbt_remove_short_streams(
d8_pntr,
streams,
output,
min_length,
esri_pntr = FALSE,
wd = NULL,
verbos... | /man/wbt_remove_short_streams.Rd | permissive | dondealban/whiteboxR | R | false | true | 1,035 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stream_network_analysis.R
\name{wbt_remove_short_streams}
\alias{wbt_remove_short_streams}
\title{Remove short streams}
\usage{
wbt_remove_short_streams(
d8_pntr,
streams,
output,
min_length,
esri_pntr = FALSE,
wd = NULL,
verbos... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m_std.data.R
\name{m_std.data}
\alias{m_std.data}
\title{A m_std.data Function}
\usage{
m_std.data(x, restore = NULL)
}
\arguments{
\item{x}{A numeric vector.}
}
\description{
This function allows you to multi paste vector.
}
\examples{
media... | /ExtraPackages/linus/stock.Analyze/man/m_std.data.Rd | no_license | linushsao/Analysis.of.trading.strategies | R | false | true | 361 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m_std.data.R
\name{m_std.data}
\alias{m_std.data}
\title{A m_std.data Function}
\usage{
m_std.data(x, restore = NULL)
}
\arguments{
\item{x}{A numeric vector.}
}
\description{
This function allows you to multi paste vector.
}
\examples{
media... |
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(plotly)
grade.data <- read.csv("full_data.csv")
grade.data <- grade... | /ui.R | no_license | quyuancatherine/Group-Project-EasyA | R | false | false | 5,567 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(plotly)
grade.data <- read.csv("full_data.csv")
grade.data <- grade... |
# (1) Si hubiéramos empezado a contar segundos a partir de las 12 campanadas que marcan el inicio de 2018,
# ¿a qué hora de qué día de qué año llegaríamos a los 250 millones de segundos?
# ¡Cuidado con los años bisiestos
# ("2018-01-01 00:00:00")
install.packages("parsedate", dep=TRUE)
library(parsedate)
dia = parse_is... | /ejercicios/Tarea1_Utilizando_R_como_calculadora.R | no_license | lauravara/r-basic | R | false | false | 1,265 | r | # (1) Si hubiéramos empezado a contar segundos a partir de las 12 campanadas que marcan el inicio de 2018,
# ¿a qué hora de qué día de qué año llegaríamos a los 250 millones de segundos?
# ¡Cuidado con los años bisiestos
# ("2018-01-01 00:00:00")
install.packages("parsedate", dep=TRUE)
library(parsedate)
dia = parse_is... |
/tp1/TP_1_Script_ParteB_B2_2021.R | no_license | tikz/biometria2 | R | false | false | 11,741 | r | ||
workspace_Init <- function() {
packages <- #need all of these installed including some from github
c('tidyverse',
'stringr',
'lubridate',
'ggplot2',
'jsonlite',
'ggridges',
'ggjoy',
'viridis',
'lazyeval')
lapply(packages, library, character.only = T)
} | /workspaceInit.R | no_license | kjhogan/NBADFS | R | false | false | 320 | r | workspace_Init <- function() {
packages <- #need all of these installed including some from github
c('tidyverse',
'stringr',
'lubridate',
'ggplot2',
'jsonlite',
'ggridges',
'ggjoy',
'viridis',
'lazyeval')
lapply(packages, library, character.only = T)
} |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# LOAD LIBRARIES
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# rpart, random forests
library(rpart)
library(rpart.plot)
library(randomForest)
# neural networks
library(keras... | /adp_AMES_dataset.R | no_license | FredericLoge/SmartQuestions | R | false | false | 24,344 | r |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# LOAD LIBRARIES
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# rpart, random forests
library(rpart)
library(rpart.plot)
library(randomForest)
# neural networks
library(keras... |
#@exportClass freqdom
#setClass("freqdom", representation(operators = "array", freq = "vector"))
#' Creates an object of class \code{freqdom}. This object corresponds to a functional with domain \eqn{[-\pi,\pi]} and some complex vector space as codomain.
#'
#' This class is used to describe a frequency domain functio... | /R/freqdom.R | no_license | kidzik/freqdom | R | false | false | 3,174 | r | #@exportClass freqdom
#setClass("freqdom", representation(operators = "array", freq = "vector"))
#' Creates an object of class \code{freqdom}. This object corresponds to a functional with domain \eqn{[-\pi,\pi]} and some complex vector space as codomain.
#'
#' This class is used to describe a frequency domain functio... |
# Load required libraries
library(devtools)
install_github("epiviz/metavizr")
library(metavizr)
library(metagenomeSeq)
library(etec16s)
# Start Metaviz App
app <- startMetaviz(verbose=TRUE)
# Load etec16s dataset and select only samples in first 11 days
data(etec16s)
etec16s <- etec16s[,-which(pData(etec16s)$Day>9)]... | /TimeSeries/etec16s.R | no_license | jmwagner/MetavizManuscriptScripts | R | false | false | 5,475 | r | # Load required libraries
library(devtools)
install_github("epiviz/metavizr")
library(metavizr)
library(metagenomeSeq)
library(etec16s)
# Start Metaviz App
app <- startMetaviz(verbose=TRUE)
# Load etec16s dataset and select only samples in first 11 days
data(etec16s)
etec16s <- etec16s[,-which(pData(etec16s)$Day>9)]... |
res1<-read.csv("F1_res.csv",header=T)
res2<-read.csv("F5_res.csv",header=T)
res3<-read.csv("F10_res.csv",header=T)
res4<-read.csv("F25_res.csv",header=T)
res5<-read.csv("F50_res.csv",header=T)
res6<-read.csv("F100_res.csv",header=T)
res<-rbind(res1,res2,res3,res4,res5,res6)
| /Code/Simulation_2B.R | no_license | WSpiller/GxE_Simulation | R | false | false | 276 | r | res1<-read.csv("F1_res.csv",header=T)
res2<-read.csv("F5_res.csv",header=T)
res3<-read.csv("F10_res.csv",header=T)
res4<-read.csv("F25_res.csv",header=T)
res5<-read.csv("F50_res.csv",header=T)
res6<-read.csv("F100_res.csv",header=T)
res<-rbind(res1,res2,res3,res4,res5,res6)
|
library(tidyverse)
library(Rfast)
library(epitools)
library(extraDistr)
library(foreach)
library(doParallel)
library(parallel)
library(stats4)
library(fAsianOptions)
library(maxLik)
library(matrixStats)
library(ramify)
library(purrr)
library(doSNOW)
library(latex2exp)
library(ggrepel)
library(data.table)
library(plotly... | /Part_A_Analysis_Richards_2008_plotting_binomial.R | no_license | LoganHowell/Honours | R | false | false | 7,561 | r | library(tidyverse)
library(Rfast)
library(epitools)
library(extraDistr)
library(foreach)
library(doParallel)
library(parallel)
library(stats4)
library(fAsianOptions)
library(maxLik)
library(matrixStats)
library(ramify)
library(purrr)
library(doSNOW)
library(latex2exp)
library(ggrepel)
library(data.table)
library(plotly... |
#' @param col.sample.rate The sampling rate of features to consider for splits at each tree node.
#' Defaults to 1/3 for regression and sqrt(k)/k for classification where k is number of features.
#' For Spark versions prior to 2.0.0, arbitrary sampling rates are not supported, so the input is
#' automatically mapped... | /man-roxygen/roxlate-ml-decision-trees-col-sample-rate.R | permissive | sparklyr/sparklyr | R | false | false | 362 | r | #' @param col.sample.rate The sampling rate of features to consider for splits at each tree node.
#' Defaults to 1/3 for regression and sqrt(k)/k for classification where k is number of features.
#' For Spark versions prior to 2.0.0, arbitrary sampling rates are not supported, so the input is
#' automatically mapped... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{facet_wrap_date_waiver}
\alias{facet_wrap_date_waiver}
\title{Date axis in selected panels of a facet wrap}
\usage{
facet_wrap_date_waiver(gplot, panel, date_0, format = "\%b \%d",
n_ticks_max = NULL)
}
\arguments{
\item{gplot}{a \code{ggplot} or \code{grob} ... | /man/facet_wrap_date_waiver.Rd | no_license | ntncmch/myRtoolbox | R | false | false | 931 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{facet_wrap_date_waiver}
\alias{facet_wrap_date_waiver}
\title{Date axis in selected panels of a facet wrap}
\usage{
facet_wrap_date_waiver(gplot, panel, date_0, format = "\%b \%d",
n_ticks_max = NULL)
}
\arguments{
\item{gplot}{a \code{ggplot} or \code{grob} ... |
#' Get text from a file and clean for searching
#'
#' @param file Path to the file to be read
#' @return A single-element text vector of clean text for searching
#' @export
get_text <- function(file) {
text <- readLines(con = file)
text <- clean_text(text)
return(text)
}
clean_text <- function(text) {
t1 <- ca... | /R/text.R | no_license | jacob-ogre/us.geonames | R | false | false | 706 | r | #' Get text from a file and clean for searching
#'
#' @param file Path to the file to be read
#' @return A single-element text vector of clean text for searching
#' @export
get_text <- function(file) {
text <- readLines(con = file)
text <- clean_text(text)
return(text)
}
clean_text <- function(text) {
t1 <- ca... |
#爬取蘋果日報新聞,該搜尋頁面屬於動態網頁,以POST的方式得到網頁資訊。
#以下爬取方式以丁守中為例,其他候選人的蘋果日報文本爬蟲方式相同。
#下載套件
library(rvest)
library(magrittr)
library(httr)
# #爬丁守中五月的新聞
# #測試:爬一頁的搜尋結果
# url <- "https://tw.appledaily.com/search"
# form <- list(searchType = "text",
# keyword = "丁守中",
# totalpage = "236",
# page... | /final_project/Appnews/applenews.R | no_license | Suuuuny/courseR | R | false | false | 6,682 | r | #爬取蘋果日報新聞,該搜尋頁面屬於動態網頁,以POST的方式得到網頁資訊。
#以下爬取方式以丁守中為例,其他候選人的蘋果日報文本爬蟲方式相同。
#下載套件
library(rvest)
library(magrittr)
library(httr)
# #爬丁守中五月的新聞
# #測試:爬一頁的搜尋結果
# url <- "https://tw.appledaily.com/search"
# form <- list(searchType = "text",
# keyword = "丁守中",
# totalpage = "236",
# page... |
#ssDNA analysis function #3
## Draw plots for to analyze signal across all chromosomes
## ssDNA_plots("wt","wtpeak","mutant","mutantpeak","mutantname")
## Input: output from microarray2_peakcall.R
#Example: ssDNA_plots("WT_avg.txt","WT_avg_peaks.bed","top1.txt","top1_avg_peaks.bed","top1D")
ssDNA_plots <- function(w... | /microarray3_plotting.R | permissive | Jonna-Heldrich/meiosis_scripts | R | false | false | 4,729 | r | #ssDNA analysis function #3
## Draw plots for to analyze signal across all chromosomes
## ssDNA_plots("wt","wtpeak","mutant","mutantpeak","mutantname")
## Input: output from microarray2_peakcall.R
#Example: ssDNA_plots("WT_avg.txt","WT_avg_peaks.bed","top1.txt","top1_avg_peaks.bed","top1D")
ssDNA_plots <- function(w... |
foo <- function
### This description
###
### should make it into the docs.
(x){
}
.result <-
list(foo=list(description="This description\n\nshould make it into the docs.",
definition="foo <- function\n### This description\n###\n### should make it into the docs.\n(x){\n}",
format="",
title="foo")... | /inst/testfiles/multi-paragraph-description.R | no_license | tdhock/inlinedocs | R | false | false | 322 | r | foo <- function
### This description
###
### should make it into the docs.
(x){
}
.result <-
list(foo=list(description="This description\n\nshould make it into the docs.",
definition="foo <- function\n### This description\n###\n### should make it into the docs.\n(x){\n}",
format="",
title="foo")... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sfg.R
\name{sfg_multipoint}
\alias{sfg_multipoint}
\title{sfg MULTIPOINT}
\usage{
sfg_multipoint(obj, x = NULL, y = NULL, z = NULL, m = NULL)
}
\arguments{
\item{obj}{matrix or data.frame}
\item{x}{x geometry column}
\item{y}{y geometry col... | /man/sfg_multipoint.Rd | no_license | nemochina2008/sfheaders | R | false | true | 1,300 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sfg.R
\name{sfg_multipoint}
\alias{sfg_multipoint}
\title{sfg MULTIPOINT}
\usage{
sfg_multipoint(obj, x = NULL, y = NULL, z = NULL, m = NULL)
}
\arguments{
\item{obj}{matrix or data.frame}
\item{x}{x geometry column}
\item{y}{y geometry col... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query-join.R, R/query-select.R,
% R/query-semi-join.R, R/query-set-op.R, R/sql-build.R
\name{join_query}
\alias{join_query}
\alias{select_query}
\alias{semi_join_query}
\alias{set_op_query}
\alias{sql_build}
\alias{sql_render}
\alias{sql_op... | /man/sql_build.Rd | permissive | troels/dbplyr | R | false | true | 2,285 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query-join.R, R/query-select.R,
% R/query-semi-join.R, R/query-set-op.R, R/sql-build.R
\name{join_query}
\alias{join_query}
\alias{select_query}
\alias{semi_join_query}
\alias{set_op_query}
\alias{sql_build}
\alias{sql_render}
\alias{sql_op... |
dat <- read.table("R/power/mydat.txt", head=TRUE,sep=";",colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","numeric"),na.strings="?")
febdat<-subset(dat,Date=='1/2/2007' | Date == '2/2/2007')
head(febdat)
hist(febdat$Global_active_power,col="red",xlab="Global Active Power (kilowatts... | /plot1.R | no_license | theSundayProgrammer/ExData_Plotting1 | R | false | false | 361 | r | dat <- read.table("R/power/mydat.txt", head=TRUE,sep=";",colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","numeric"),na.strings="?")
febdat<-subset(dat,Date=='1/2/2007' | Date == '2/2/2007')
head(febdat)
hist(febdat$Global_active_power,col="red",xlab="Global Active Power (kilowatts... |
# Create a separate R code file (plot1.R, plot2.R, etc.) that constructs the corresponding plot, i.e. code in plot1.R constructs the plot1.png plot.
# Your code file should include code for reading the data so that the plot can be fully reproduced.
# You should also include the code that creates the PNG file.
# Downl... | /plot2.R | no_license | sms1962/ExData_Plotting1 | R | false | false | 1,480 | r | # Create a separate R code file (plot1.R, plot2.R, etc.) that constructs the corresponding plot, i.e. code in plot1.R constructs the plot1.png plot.
# Your code file should include code for reading the data so that the plot can be fully reproduced.
# You should also include the code that creates the PNG file.
# Downl... |
#######################################################################
# arulesViz - Visualizing Association Rules and Frequent Itemsets
# Copyright (C) 2021 Michael Hahsler
#
# 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
#... | /R/visNetwork.R | no_license | mhahsler/arulesViz | R | false | false | 4,051 | r | #######################################################################
# arulesViz - Visualizing Association Rules and Frequent Itemsets
# Copyright (C) 2021 Michael Hahsler
#
# 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
#... |
#rm(list=ls()); setwd("~/Dropbox/cs/bigdata/datacamp/intro_ml"); source("iml_practice.R")
#rm(list=ls()); setwd("C:/Users/zimine/Dropbox/cs/bigdata/datacamp/intro_ml"); source("iml_practice.R")
##############################################################
# chap. Performance
#####################################... | /ai/datacamp/intro_ml/iml_practice.R | no_license | slzdevsnp/learn | R | false | false | 18,982 | r | #rm(list=ls()); setwd("~/Dropbox/cs/bigdata/datacamp/intro_ml"); source("iml_practice.R")
#rm(list=ls()); setwd("C:/Users/zimine/Dropbox/cs/bigdata/datacamp/intro_ml"); source("iml_practice.R")
##############################################################
# chap. Performance
#####################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hello.R
\name{KCSKNNShiny}
\alias{KCSKNNShiny}
\title{K-Nearest Neighbour Classifier}
\usage{
KCSKNNShiny()
}
\description{
This is a KNN Classifier. It predicts any attribute(categorical) given a set of numeric input predictor value... | /man/KCSKNNShiny.Rd | no_license | cran/KCSKNNShiny | R | false | true | 769 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hello.R
\name{KCSKNNShiny}
\alias{KCSKNNShiny}
\title{K-Nearest Neighbour Classifier}
\usage{
KCSKNNShiny()
}
\description{
This is a KNN Classifier. It predicts any attribute(categorical) given a set of numeric input predictor value... |
## Below are two functions that together compute the inverse
## of an invertible matrix.
## This function takes a matrix and returns a list of 4 functions
## that operate on the matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m <... | /Assignment2.R | no_license | subroto08820/R-Programming | R | false | false | 1,016 | r | ## Below are two functions that together compute the inverse
## of an invertible matrix.
## This function takes a matrix and returns a list of 4 functions
## that operate on the matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m <... |
dat <- read.csv("mice_pheno.csv")# entire population data
pop <- dat[dat$Sex=="F" & dat$Diet=="chow", 3]# only females on control diet and their bodyweight
mu <- mean(pop)# get the mean of the population
#[1] 23.89338
#but usually we do not have the population mean what we have is a sample
N<-30 # say size 30
y<- sampl... | /Inference-2 20150305.R | no_license | keyurd77/Edx | R | false | false | 4,419 | r | dat <- read.csv("mice_pheno.csv")# entire population data
pop <- dat[dat$Sex=="F" & dat$Diet=="chow", 3]# only females on control diet and their bodyweight
mu <- mean(pop)# get the mean of the population
#[1] 23.89338
#but usually we do not have the population mean what we have is a sample
N<-30 # say size 30
y<- sampl... |
#Calculate the likelihood ratio----
n<-280 #set total trials
x<-143 #set successes
H0 <- .5 #specify one hypothesis you want to compare with the likihood ratio
H1 <- 0.52 #specify another hypothesis you want to compare with the likihood ratio (you can use 1/20, or 0.05)
dbinom(x,n,H0)/dbinom(x,n,H1) #Returns the likeli... | /week2/CalculateLikelihoodRatio.R | no_license | FlorianWilhelm/statistical-inferences | R | false | false | 1,301 | r | #Calculate the likelihood ratio----
n<-280 #set total trials
x<-143 #set successes
H0 <- .5 #specify one hypothesis you want to compare with the likihood ratio
H1 <- 0.52 #specify another hypothesis you want to compare with the likihood ratio (you can use 1/20, or 0.05)
dbinom(x,n,H0)/dbinom(x,n,H1) #Returns the likeli... |
##############################################################################
## Function calls for different point estimators
##############################################################################
## is: with induced smoothing; X - \Phi() / \Phi()
## ns: solve non-smoothing equation directly; X - \phi() / \ph... | /R/aftsrr.R | no_license | stc04003/aftgee | R | false | false | 83,686 | r | ##############################################################################
## Function calls for different point estimators
##############################################################################
## is: with induced smoothing; X - \Phi() / \Phi()
## ns: solve non-smoothing equation directly; X - \phi() / \ph... |
###########
# MULTIPLE REGRESSION
library(fBasics)
SO2<-c(65,26,69,61,94,10,18,9,10,28,31,26,29,31,16,10,13,12,17,56,36,29,14,10,24,110,28,17,8,30,9,47,35,29,14,56,14,11,46,11,23)
hist(SO2)
normalTest(SO2,"da")
SO2<-log(SO2)
normalTest(SO2,"da")
AveTemp<-c(49.7,51.5,54.6,50.4,50,61.6,59.4,66.2,68.9,51,59.3,57.8,51.... | /Lecture_notes/Biometry_14_2017.R | no_license | mattjtuttle/biometry | R | false | false | 5,616 | r |
###########
# MULTIPLE REGRESSION
library(fBasics)
SO2<-c(65,26,69,61,94,10,18,9,10,28,31,26,29,31,16,10,13,12,17,56,36,29,14,10,24,110,28,17,8,30,9,47,35,29,14,56,14,11,46,11,23)
hist(SO2)
normalTest(SO2,"da")
SO2<-log(SO2)
normalTest(SO2,"da")
AveTemp<-c(49.7,51.5,54.6,50.4,50,61.6,59.4,66.2,68.9,51,59.3,57.8,51.... |
testlist <- list(iK = 185528075L)
result <- do.call(eDMA:::PowerSet,testlist)
str(result) | /eDMA/inst/testfiles/PowerSet/AFL_PowerSet/PowerSet_valgrind_files/1609869796-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 89 | r | testlist <- list(iK = 185528075L)
result <- do.call(eDMA:::PowerSet,testlist)
str(result) |
# Setting up and localising the names of regions and regional geocodes
# Utils -------------------------------------------------------------------
#' Helper to rename the region column in each dataset to the correct name for each country.
#' @description The package relies on column name 'region' during processing but... | /R/get_region_codes.R | permissive | FelipeJColon/covidregionaldata | R | false | false | 18,640 | r | # Setting up and localising the names of regions and regional geocodes
# Utils -------------------------------------------------------------------
#' Helper to rename the region column in each dataset to the correct name for each country.
#' @description The package relies on column name 'region' during processing but... |
# The spam filter that has been 'learned' for you
spam_classifier <- function(x){
prediction <- rep(NA, length(x)) # initialize prediction vector
prediction[x > 4] <- 1
prediction[x >= 3 & x <= 4] <- 0
prediction[x >= 2.2 & x < 3] <- 1
prediction[x >= 1.4 & x < 2.2] <- 0
prediction[x > 1.25 & x < 1.4] <- 1... | /spam_classifier.R | no_license | albertxavierlopez/R-scripts | R | false | false | 964 | r | # The spam filter that has been 'learned' for you
spam_classifier <- function(x){
prediction <- rep(NA, length(x)) # initialize prediction vector
prediction[x > 4] <- 1
prediction[x >= 3 & x <= 4] <- 0
prediction[x >= 2.2 & x < 3] <- 1
prediction[x >= 1.4 & x < 2.2] <- 0
prediction[x > 1.25 & x < 1.4] <- 1... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/potential_ews.R
\name{movpotential_ews}
\alias{movpotential_ews}
\title{Moving Average Potential}
\usage{
movpotential_ews(X, param = NULL, bw = "nrd", bw.adjust = 1,
detection.threshold = 0.1, std = 1, grid.size = 50, plot.cutoff =... | /earlywarnings/man/movpotential_ews.Rd | no_license | oupin123/earlywarnings-R | R | false | false | 2,296 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/potential_ews.R
\name{movpotential_ews}
\alias{movpotential_ews}
\title{Moving Average Potential}
\usage{
movpotential_ews(X, param = NULL, bw = "nrd", bw.adjust = 1,
detection.threshold = 0.1, std = 1, grid.size = 50, plot.cutoff =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kms.R
\name{kms}
\alias{kms}
\title{kms}
\usage{
kms(input_formula, data, keras_model_seq = NULL, layers = list(units =
c(128, NA), activation = c("relu", "softmax"), dropout = c(0.4, NA)),
pTraining = 0.8, seed = NULL, validation_split =... | /man/kms.Rd | no_license | rdrr1990/keras | R | false | true | 2,967 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kms.R
\name{kms}
\alias{kms}
\title{kms}
\usage{
kms(input_formula, data, keras_model_seq = NULL, layers = list(units =
c(128, NA), activation = c("relu", "softmax"), dropout = c(0.4, NA)),
pTraining = 0.8, seed = NULL, validation_split =... |
# 1 The Very Basics
100:130
length(100:130)
3%5 # error
die<-1:6
my_number<-1
my_number<-999
ls()
die<-1:6
die-1
die/2
die*die
die<-1:6
die+1:2
die+1:4
# inner multiplication with the %*%
die %*% die
# 1*1 + 2*2 + 3*3 + 4*4 + 5*5 + 6*6
# outer multiplication with the %o%
die %o% die
# Functions ... | /Hands-On Programming with R/1 The Very Basics.R | no_license | xiemeigongzi88/Basic_R | R | false | false | 1,268 | r | # 1 The Very Basics
100:130
length(100:130)
3%5 # error
die<-1:6
my_number<-1
my_number<-999
ls()
die<-1:6
die-1
die/2
die*die
die<-1:6
die+1:2
die+1:4
# inner multiplication with the %*%
die %*% die
# 1*1 + 2*2 + 3*3 + 4*4 + 5*5 + 6*6
# outer multiplication with the %o%
die %o% die
# Functions ... |
#' NW_hac_STATA
#' tbd
#'
#' @param vars tbd
#' @param lags tbd
#'
#' @return Sigma: tbd
#'
#' @export
#'
NW_hac_STATA <- function(vars, lags) {
Sigma0 = (1 / (dim(vars)[1])) * (t(vars) %*% vars)
Sigma = Sigma0
if (lags >= 1) {
for (n in 1:lags) {
Sigma = Sigma + (1 - n / (lags + 1)) * (Sigma_cov(vars,... | /R/NW_hac_STATA.R | no_license | martinbaumgaertner/varexternal | R | false | false | 583 | r | #' NW_hac_STATA
#' tbd
#'
#' @param vars tbd
#' @param lags tbd
#'
#' @return Sigma: tbd
#'
#' @export
#'
NW_hac_STATA <- function(vars, lags) {
Sigma0 = (1 / (dim(vars)[1])) * (t(vars) %*% vars)
Sigma = Sigma0
if (lags >= 1) {
for (n in 1:lags) {
Sigma = Sigma + (1 - n / (lags + 1)) * (Sigma_cov(vars,... |
#Creates SIExternOffsetByOneMonth plot
png("Plots/SIExternOffsetByOneMonth_plot.png")
plot(SIExternOffsetByOneMonth, main="SIExternOffsetByOneMonth")
dev.off() | /Plots/SIExternOffsetByOneMonth_plot.r | no_license | clairecDS/DoingDataScience_CaseStudy2 | R | false | false | 160 | r | #Creates SIExternOffsetByOneMonth plot
png("Plots/SIExternOffsetByOneMonth_plot.png")
plot(SIExternOffsetByOneMonth, main="SIExternOffsetByOneMonth")
dev.off() |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools.R
\name{plot_waterholes}
\alias{plot_waterholes}
\title{Plot waterholes with names labeled}
\usage{
plot_waterholes(x)
}
\arguments{
\item{x}{SpatialPointsDataFrame}
}
\description{
Plot waterholes with names labeled
}
| /man/plot_waterholes.Rd | no_license | rpatin/PatchExplo | R | false | true | 304 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools.R
\name{plot_waterholes}
\alias{plot_waterholes}
\title{Plot waterholes with names labeled}
\usage{
plot_waterholes(x)
}
\arguments{
\item{x}{SpatialPointsDataFrame}
}
\description{
Plot waterholes with names labeled
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/accidents-desc.R
\docType{data}
\name{AADR-accidents}
\alias{AADR-accidents}
\title{Number of deaths for accidents in the US from 1999-2013}
\format{Comma Separate Value file with 765 rows and 5 variables.}
\description{
A dataset containing ... | /man/AADR-accidents.Rd | no_license | mattphan/Age-Adjusted-Death-Rates | R | false | true | 744 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/accidents-desc.R
\docType{data}
\name{AADR-accidents}
\alias{AADR-accidents}
\title{Number of deaths for accidents in the US from 1999-2013}
\format{Comma Separate Value file with 765 rows and 5 variables.}
\description{
A dataset containing ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.