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 |
|---|---|---|---|---|---|---|---|---|---|
muscle <- read.table("CH01PR27.txt");
names(muscle) <- c("mass", "age");
x = muscle$age - mean(muscle$age);
xsq = x^2;
model <- lm(muscle$mass~x+xsq);
xp <- seq(-20,20,0.1);
y <- 82.935749 - 1.183958*xp + 0.014840*xp^2;
plot(x, muscle$mass);
lines(xp, y, col="red"); | /HW7/8.4.R | no_license | yaocheng32/data-analysis-201 | R | false | false | 267 | r | muscle <- read.table("CH01PR27.txt");
names(muscle) <- c("mass", "age");
x = muscle$age - mean(muscle$age);
xsq = x^2;
model <- lm(muscle$mass~x+xsq);
xp <- seq(-20,20,0.1);
y <- 82.935749 - 1.183958*xp + 0.014840*xp^2;
plot(x, muscle$mass);
lines(xp, y, col="red"); |
## Data Preparation for Big Data Assignment ####
## 2020-04-06
library(ncdf4)
library(raster)
library(rgdal)
library(ggplot2)
library(tidyverse)
library(sf)
# Read in GBIF observation data for Tree Sparrow (Passer montanus)
pm <- read.csv("passer-montanus.csv")
# create loop that makes a new object for each year ... | /data-preparation.R | no_license | FlorenceGalliers/big-data | R | false | false | 26,108 | r | ## Data Preparation for Big Data Assignment ####
## 2020-04-06
library(ncdf4)
library(raster)
library(rgdal)
library(ggplot2)
library(tidyverse)
library(sf)
# Read in GBIF observation data for Tree Sparrow (Passer montanus)
pm <- read.csv("passer-montanus.csv")
# create loop that makes a new object for each year ... |
library(shiny)
library(ggplot2)
casualities <- read.csv("casualities.csv",sep=",",header = TRUE)
cost <- read.csv("cost.csv",sep=",",header = TRUE)
# Define server logic required to summarize and view the selected
# dataset
shinyServer(function(input, output) {
output$scatter <- renderPlot({
ggplot(cost[1:20... | /server.R | no_license | ASaifM/course-project-3-shiny | R | false | false | 4,513 | r | library(shiny)
library(ggplot2)
casualities <- read.csv("casualities.csv",sep=",",header = TRUE)
cost <- read.csv("cost.csv",sep=",",header = TRUE)
# Define server logic required to summarize and view the selected
# dataset
shinyServer(function(input, output) {
output$scatter <- renderPlot({
ggplot(cost[1:20... |
examples.offline.html = function() {
setwd("D:/libraries/armd/examples")
outdir = paste0(getwd(),"/figures")
name = "offline_test"
rmd.file = paste0(name,".rmd")
#am.file = paste0(name,".am")
#html.file = paste0(name,".html")
#am = fetch.am(rmd.file = rmd.file)
am= parse.armd(file=rmd.file)
#str(a... | /R/offline_html.r | no_license | skranz/armd | R | false | false | 9,696 | r | examples.offline.html = function() {
setwd("D:/libraries/armd/examples")
outdir = paste0(getwd(),"/figures")
name = "offline_test"
rmd.file = paste0(name,".rmd")
#am.file = paste0(name,".am")
#html.file = paste0(name,".html")
#am = fetch.am(rmd.file = rmd.file)
am= parse.armd(file=rmd.file)
#str(a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Classes.R
\docType{class}
\name{BASiCS_D_Data-class}
\alias{BASiCS_D_Data,BASiCS_D_Data-class}
\alias{BASiCS_D_Data-class}
\title{The BASiCS_D_Data class}
\description{
Container of expression counts from single-cell
sequencing experiments i... | /man/BASiCS_D_Data-class.Rd | no_license | kevinrue/BASiCS | R | false | true | 2,149 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Classes.R
\docType{class}
\name{BASiCS_D_Data-class}
\alias{BASiCS_D_Data,BASiCS_D_Data-class}
\alias{BASiCS_D_Data-class}
\title{The BASiCS_D_Data class}
\description{
Container of expression counts from single-cell
sequencing experiments i... |
\name{bestCriterion}
\alias{bestCriterion}
\title{Best clustering index}
\description{
\code{bestCriterion} returns the best index value according to a specified criterion.
}
\usage{
bestCriterion(x, crit)
}
\arguments{
\item{x}{\code{[matrix]} : a numeric vector of quality index values.}
\item{crit}{\code... | /man/bestCriterion.Rd | no_license | rave-ieeg/clusterCrit | R | false | false | 2,174 | rd | \name{bestCriterion}
\alias{bestCriterion}
\title{Best clustering index}
\description{
\code{bestCriterion} returns the best index value according to a specified criterion.
}
\usage{
bestCriterion(x, crit)
}
\arguments{
\item{x}{\code{[matrix]} : a numeric vector of quality index values.}
\item{crit}{\code... |
library(tidyverse)
imdb <- read.csv("movie_metadata.csv")
glimpse(imdb)
imdb %>%
group_by(title_year) %>%
filter(!is.na(num_critic_for_reviews)) %>%
summarise(nreview=n()) %>%
ggplot(aes(title_year, nreview)) + geom_line()
imdb %>%
group_by(title_year) %>%
filter(!is.na(num_critic_for_reviews)) %>... | /chapter4exercise.R | no_license | harryyang1982/learningDataScience | R | false | false | 738 | r | library(tidyverse)
imdb <- read.csv("movie_metadata.csv")
glimpse(imdb)
imdb %>%
group_by(title_year) %>%
filter(!is.na(num_critic_for_reviews)) %>%
summarise(nreview=n()) %>%
ggplot(aes(title_year, nreview)) + geom_line()
imdb %>%
group_by(title_year) %>%
filter(!is.na(num_critic_for_reviews)) %>... |
#####################################
# frost data include 2358 locations in it.
# we need to pick up the selected limited locations
# to plot. There are 19 models in the frost data, however, there are 6
# in the bloom data
# Do we want to be consistent and have only 6 models
# for both bloom and frost? or keep 19 mo... | /chilling/04_make_figures/frost_bloom/cloudy_time_series/cloudy_plot_frost_and_bloom_TS_no_obs.R | permissive | HNoorazar/Ag | R | false | false | 13,929 | r | #####################################
# frost data include 2358 locations in it.
# we need to pick up the selected limited locations
# to plot. There are 19 models in the frost data, however, there are 6
# in the bloom data
# Do we want to be consistent and have only 6 models
# for both bloom and frost? or keep 19 mo... |
###########################################################################
# LaplacesDemon.RAM #
# #
# The purpose of the LaplacesDemon.RAM function is to estimate the RAM #
# required to up... | /R/LaplacesDemon.RAM.R | permissive | aavogt/LaplacesDemon | R | false | false | 2,849 | r | ###########################################################################
# LaplacesDemon.RAM #
# #
# The purpose of the LaplacesDemon.RAM function is to estimate the RAM #
# required to up... |
## Daylength code
## Simon Dedman 24/4/2018
## Fetches timezone for single or vector of lat/long combinations
## Then uses timezone, latlongs & date to calculate day length
## Timetine fetch uses package lutz, sunrise & sunset times uses package suncalc
daylength <- function(
date = NULL, # Date. Single or multiple ... | /daylength.R | no_license | jfroeschke/daylength | R | false | false | 1,157 | r | ## Daylength code
## Simon Dedman 24/4/2018
## Fetches timezone for single or vector of lat/long combinations
## Then uses timezone, latlongs & date to calculate day length
## Timetine fetch uses package lutz, sunrise & sunset times uses package suncalc
daylength <- function(
date = NULL, # Date. Single or multiple ... |
library(fda.usc)
### Name: cond.quantile
### Title: Conditional quantile
### Aliases: cond.quantile
### Keywords: distribution
### ** Examples
n= 100
t= seq(0,1,len=101)
beta = t*sin(2*pi*t)^2
x = matrix(NA, ncol=101, nrow=n)
y=numeric(n)
x0<-rproc2fdata(n,seq(0,1,len=101),sigma="wiener")
x1<-rproc2fdata(n,seq(0,1... | /data/genthat_extracted_code/fda.usc/examples/cond.quantile.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 873 | r | library(fda.usc)
### Name: cond.quantile
### Title: Conditional quantile
### Aliases: cond.quantile
### Keywords: distribution
### ** Examples
n= 100
t= seq(0,1,len=101)
beta = t*sin(2*pi*t)^2
x = matrix(NA, ncol=101, nrow=n)
y=numeric(n)
x0<-rproc2fdata(n,seq(0,1,len=101),sigma="wiener")
x1<-rproc2fdata(n,seq(0,1... |
# Xavier X. Sala-I-Martin: I Just Ran Two Million Regression (AER, 1997)
# Growth Convergence of 72 countries with 41 variables
# Using stepwise regressions
# setwd("C:/Course16/WISE2016/R")
growth <- read.csv("C:/Course16/WISE2016/data/FLS-data.csv")
summary(growth)
# check for multicolinearity
X <- as.matrix(growth[... | /R/big data/case4/case4_1.R | no_license | hunterlinsq/R-in-SOE | R | false | false | 1,115 | r | # Xavier X. Sala-I-Martin: I Just Ran Two Million Regression (AER, 1997)
# Growth Convergence of 72 countries with 41 variables
# Using stepwise regressions
# setwd("C:/Course16/WISE2016/R")
growth <- read.csv("C:/Course16/WISE2016/data/FLS-data.csv")
summary(growth)
# check for multicolinearity
X <- as.matrix(growth[... |
#!/bin/R
system2("curl", paste(
"https://jmlab-gitlab.cruk.cam.ac.uk/Jonny/BarcodeSwapping2017Data/raw/master/bcswap_data.tar.gz",
" > bcswap_data.tar.gz"))
system2("tar", "-xzf bcswap_data.tar.gz")
target <- file.path("DropletTestFiles", "bach-mammary-swapping", "1.0.0")
dir.create(target, recursive=TRUE)
sys... | /inst/scripts/1.0.0/make-bach-mammary-swapping.R | no_license | jonathangriffiths/DropletTestFiles | R | false | false | 2,104 | r | #!/bin/R
system2("curl", paste(
"https://jmlab-gitlab.cruk.cam.ac.uk/Jonny/BarcodeSwapping2017Data/raw/master/bcswap_data.tar.gz",
" > bcswap_data.tar.gz"))
system2("tar", "-xzf bcswap_data.tar.gz")
target <- file.path("DropletTestFiles", "bach-mammary-swapping", "1.0.0")
dir.create(target, recursive=TRUE)
sys... |
#`
#` Data Export
#`
#` Export data to local disk or HDFS.
#` Save models to local disk or HDFS.
#' Export an H2O Data Frame (H2OFrame) to a File or to a collection of Files.
#'
#' Exports an H2OFrame (which can be either VA or FV) to a file.
#' This file may be on the H2O instace's local filesystem, or to HDFS (prefa... | /h2o-r/h2o-package/R/export.R | permissive | msrimat/h2o-3 | R | false | false | 6,082 | r | #`
#` Data Export
#`
#` Export data to local disk or HDFS.
#` Save models to local disk or HDFS.
#' Export an H2O Data Frame (H2OFrame) to a File or to a collection of Files.
#'
#' Exports an H2OFrame (which can be either VA or FV) to a file.
#' This file may be on the H2O instace's local filesystem, or to HDFS (prefa... |
temp = nw%>%timestep()
nw = temp[[1]]
obsgen(sys)
repos = sapply(termlist, report)
addcol(sys, repos, "report")
output = analysis(supervisor)
sys = penalize(sys, guilty)
termlist = update_term()
memo[[i]] = list(
nw = nw,
newlink = temp[[2]],
delink = temp[[3]],
sys = copy(sys),
repos = repos,
... | /cycle.R | no_license | yojire/CSCS-530-Project | R | false | false | 451 | r | temp = nw%>%timestep()
nw = temp[[1]]
obsgen(sys)
repos = sapply(termlist, report)
addcol(sys, repos, "report")
output = analysis(supervisor)
sys = penalize(sys, guilty)
termlist = update_term()
memo[[i]] = list(
nw = nw,
newlink = temp[[2]],
delink = temp[[3]],
sys = copy(sys),
repos = repos,
... |
closeAllConnections()
rm(list=ls())
gc()
library(ggplot2)
library(knitr)
library(dplyr)
library(magrittr)
library(evd)
require(tsoutliers)
# set.seed(19888)
set.seed(1988)
#set.seed(1)
N_ = 10
# supply_seed = c(500, 490, 505, 520, 202, 301, 380, 450, 500, 510)
#random_gumble = rgumbel(100, loc = 10, scale = 10)
random... | /Code/TS1_HHI_0.5.R | no_license | jzt5132/procurement | R | false | false | 12,234 | r | closeAllConnections()
rm(list=ls())
gc()
library(ggplot2)
library(knitr)
library(dplyr)
library(magrittr)
library(evd)
require(tsoutliers)
# set.seed(19888)
set.seed(1988)
#set.seed(1)
N_ = 10
# supply_seed = c(500, 490, 505, 520, 202, 301, 380, 450, 500, 510)
#random_gumble = rgumbel(100, loc = 10, scale = 10)
random... |
### June 2, 2014 ## getting ssh anomalies for all stations using DT_MSLA (monthly mean sea level anomolies)
library(maps)
library(spam)
library(fields)
library(chron)
library(ncdf)
SSH_10_12 = open.ncdf("dt_global_allsat_msla_h_y2012_m10.nc")
lats = get.var.ncdf(SSH_10_12, "lat")
## the latsU correspond to the sla l... | /SLA Scripts/October 2012_SLA.R | no_license | eherdter/r-work | R | false | false | 4,593 | r | ### June 2, 2014 ## getting ssh anomalies for all stations using DT_MSLA (monthly mean sea level anomolies)
library(maps)
library(spam)
library(fields)
library(chron)
library(ncdf)
SSH_10_12 = open.ncdf("dt_global_allsat_msla_h_y2012_m10.nc")
lats = get.var.ncdf(SSH_10_12, "lat")
## the latsU correspond to the sla l... |
# Page no 112
answer <- 1 - ppois(5,2)
round(answer, digits = 3) | /Chapter 4/Ex4_4_5.R | no_license | SaksheePhade/R-Programming | R | false | false | 68 | r | # Page no 112
answer <- 1 - ppois(5,2)
round(answer, digits = 3) |
##trap data analysis
#bring in order data sets from github
pitfall_order <- read.csv("https://raw.githubusercontent.com/katiemmanning/trapping_calibration/main/Data/Insect%20ID%202020_pitfall_order.csv",na.strings = NULL)
ramp_order <- read.csv("https://raw.githubusercontent.com/katiemmanning/trapping_calibration/ma... | /calibration study analysis code.R | no_license | katiemmanning/trapping_calibration | R | false | false | 80,485 | r | ##trap data analysis
#bring in order data sets from github
pitfall_order <- read.csv("https://raw.githubusercontent.com/katiemmanning/trapping_calibration/main/Data/Insect%20ID%202020_pitfall_order.csv",na.strings = NULL)
ramp_order <- read.csv("https://raw.githubusercontent.com/katiemmanning/trapping_calibration/ma... |
create.design <- function(m, formula, nonpen = ~ 1, data,
weights, subset, na.action, contrasts, env)
{
## Purpose:
## ----------------------------------------------------------------------
## Arguments:
## ----------------------------------------------------------------------
## Au... | /R/helpers.R | no_license | cran/MRFA | R | false | false | 9,806 | r | create.design <- function(m, formula, nonpen = ~ 1, data,
weights, subset, na.action, contrasts, env)
{
## Purpose:
## ----------------------------------------------------------------------
## Arguments:
## ----------------------------------------------------------------------
## Au... |
testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398... | /myTAI/inst/testfiles/cpp_omitMatrix/AFL_cpp_omitMatrix/cpp_omitMatrix_valgrind_files/1615845051-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,090 | r | testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398... |
#===============================================================================
# 03-models.R
# Purpose: To replicate Figure 4 and model coefficients in Table 4 in Supporting
# Information D, showing the relationship between a relevant set of
# covariates and the probability of a bill to be enacted ... | /code/03-models.R | no_license | CasAndreu/hitchhiker_bills | R | false | false | 19,410 | r | #===============================================================================
# 03-models.R
# Purpose: To replicate Figure 4 and model coefficients in Table 4 in Supporting
# Information D, showing the relationship between a relevant set of
# covariates and the probability of a bill to be enacted ... |
# Hello, world! This is an example function named 'hello' which prints 'Hello, world!'.
# You can learn more about package authoring with RStudio at: http://r-pkgs.had.co.nz/ Some
# useful keyboard shortcuts for package authoring: Build and Reload Package: 'Cmd + Shift +
# B' Check Package: 'Cmd + Shift + E' Test P... | /R/hello.R | no_license | felixcuneo/FuncMeth | R | false | false | 406 | r | # Hello, world! This is an example function named 'hello' which prints 'Hello, world!'.
# You can learn more about package authoring with RStudio at: http://r-pkgs.had.co.nz/ Some
# useful keyboard shortcuts for package authoring: Build and Reload Package: 'Cmd + Shift +
# B' Check Package: 'Cmd + Shift + E' Test P... |
#This codue uses R version 3.3.3
library("oce")
library("lattice")
library("dplyr")
library("data.table")
#### SUMMARIZE SEABIRD CTD DATA ####
{
files <- list.files(path="D:/NEG 2017/Leg 1/CTD/Dat", full.names = TRUE, pattern= "*.cnv") # load files from CTD folder
CTD.cnv <- lapply(files, function(i){ctdTrim... | /CTD_summary.R | no_license | jchawarski/arctic-oceanography | R | false | false | 2,955 | r | #This codue uses R version 3.3.3
library("oce")
library("lattice")
library("dplyr")
library("data.table")
#### SUMMARIZE SEABIRD CTD DATA ####
{
files <- list.files(path="D:/NEG 2017/Leg 1/CTD/Dat", full.names = TRUE, pattern= "*.cnv") # load files from CTD folder
CTD.cnv <- lapply(files, function(i){ctdTrim... |
#' Schur polynomial - C++ implementation
#'
#' Returns the Schur polynomial.
#'
#' @param n number of variables, a positive integer
#' @param lambda an integer partition, given as a vector of decreasing
#' integers
#'
#' @return A \code{qspray} multivariate polynomial.
#'
#' @export
#' @importFrom qspray qsprayMaker
... | /R/CPP.R | no_license | stla/jackR | R | false | false | 6,555 | r | #' Schur polynomial - C++ implementation
#'
#' Returns the Schur polynomial.
#'
#' @param n number of variables, a positive integer
#' @param lambda an integer partition, given as a vector of decreasing
#' integers
#'
#' @return A \code{qspray} multivariate polynomial.
#'
#' @export
#' @importFrom qspray qsprayMaker
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guiToolkit.R, R/BasicInterface.R,
% R/command-stack.R, R/ws-model.R, R/icons.R
\docType{class}
\name{guiWidgetsToolkit-class}
\alias{guiWidgetsToolkit-class}
\alias{Observer-class}
\alias{Observer}
\alias{Handler-class}
\alias{Handler}
\ali... | /man/S4-classes.Rd | no_license | cran/gWidgets2 | R | false | true | 3,412 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guiToolkit.R, R/BasicInterface.R,
% R/command-stack.R, R/ws-model.R, R/icons.R
\docType{class}
\name{guiWidgetsToolkit-class}
\alias{guiWidgetsToolkit-class}
\alias{Observer-class}
\alias{Observer}
\alias{Handler-class}
\alias{Handler}
\ali... |
loadFaculty = function(loc = "../ScrapeDavis/")
{
# rda files:
depts = list.files(loc, pattern = "\\.rda", full.names = TRUE)
depts = depts[!grepl("urls", depts)]
fac = lapply(depts, function(x) get(load(x)))
# Add rds files:
rdsDepts = list.files(loc, pattern = "\\.rds", full.names = TRUE)
fac = c(fac... | /search/loadFaculty.R | no_license | dsidavis/ResearchProfiles | R | false | false | 484 | r | loadFaculty = function(loc = "../ScrapeDavis/")
{
# rda files:
depts = list.files(loc, pattern = "\\.rda", full.names = TRUE)
depts = depts[!grepl("urls", depts)]
fac = lapply(depts, function(x) get(load(x)))
# Add rds files:
rdsDepts = list.files(loc, pattern = "\\.rds", full.names = TRUE)
fac = c(fac... |
all.tests.pass <- TRUE
all.tests.error.count <- 0
test <- function(expr, out="", val=eval.parent(parse(text=expr), 1), tol=1e-4) {
# expr is a string representing an R expression, and
# out is the output that is expected. Prints and evaluates
# expr. If out is given and it matches the output of
# eva... | /tests/tests.R | no_license | matthewclegg/partialAR | R | false | false | 55,819 | r | all.tests.pass <- TRUE
all.tests.error.count <- 0
test <- function(expr, out="", val=eval.parent(parse(text=expr), 1), tol=1e-4) {
# expr is a string representing an R expression, and
# out is the output that is expected. Prints and evaluates
# expr. If out is given and it matches the output of
# eva... |
#(size ab.three way mixed cx(bina). model 7 c)
size_ab.three_way_mixed_cxbina.model_7_c <- function(alpha, beta, delta, c, n, cases)
{
#assumption is: a>=2, b>=2, c>=2, n is fixed to 2
#Note smaller b will result in larger a because both a and b are factors of lambda
#Lambda is fixed for given precision
... | /R/size_ab.three_way_mixed_cxbina.model_7_c.R | no_license | cran/OPDOE | R | false | false | 1,261 | r | #(size ab.three way mixed cx(bina). model 7 c)
size_ab.three_way_mixed_cxbina.model_7_c <- function(alpha, beta, delta, c, n, cases)
{
#assumption is: a>=2, b>=2, c>=2, n is fixed to 2
#Note smaller b will result in larger a because both a and b are factors of lambda
#Lambda is fixed for given precision
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Database.cal.R
\docType{data}
\name{Database.cal}
\alias{Database.cal}
\title{Calibrated Dataframe}
\format{
An object of class dataframe
}
\usage{
data(Database.cal)
}
\description{
A dataframe of the example data provided with the package. ... | /man/Database.cal.Rd | permissive | liamlachs/SizeExtractR | R | false | true | 454 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Database.cal.R
\docType{data}
\name{Database.cal}
\alias{Database.cal}
\title{Calibrated Dataframe}
\format{
An object of class dataframe
}
\usage{
data(Database.cal)
}
\description{
A dataframe of the example data provided with the package. ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_summarize_years}
\alias{fars_summarize_years}
\title{Create summary of number of obserwations}
\usage{
fars_summarize_years(years)
}
\arguments{
\item{years}{An integer vector specifying years of interest}
}
\value... | /man/fars_summarize_years.Rd | no_license | xzguqgsntdzq/fars | R | false | true | 707 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_summarize_years}
\alias{fars_summarize_years}
\title{Create summary of number of obserwations}
\usage{
fars_summarize_years(years)
}
\arguments{
\item{years}{An integer vector specifying years of interest}
}
\value... |
#############################
# Reading original data set
#############################
data<-read.table("data/household_power_consumption.txt", sep=";", header=T, na.strings="?")
#############################
# Subsetting
#############################
data1 <- data[(as.character(data$Date) =="1/2/2007") | (as.chara... | /plot3.R | no_license | apprnt/ExData_Plotting1 | R | false | false | 1,027 | r | #############################
# Reading original data set
#############################
data<-read.table("data/household_power_consumption.txt", sep=";", header=T, na.strings="?")
#############################
# Subsetting
#############################
data1 <- data[(as.character(data$Date) =="1/2/2007") | (as.chara... |
library(lubridate)
library(stringr)
library(jsonlite)
# Input Format: data.frame
#
# Output Format:
# {"index":{}}
# {"is_inactive": "0", "created": "2017-01-01 12:30:00", "tenant_id": "1", "book_key": "970851715", "created_by_user": "449", "published_book_build_id": "NULL", "published": "2017-01-01 12:30:00", "publi... | /R-Utils/bulk-load-json-convertor.R | no_license | Larry-Hignight/Elastic-Stack-Exemplar | R | false | false | 1,465 | r | library(lubridate)
library(stringr)
library(jsonlite)
# Input Format: data.frame
#
# Output Format:
# {"index":{}}
# {"is_inactive": "0", "created": "2017-01-01 12:30:00", "tenant_id": "1", "book_key": "970851715", "created_by_user": "449", "published_book_build_id": "NULL", "published": "2017-01-01 12:30:00", "publi... |
normality <- function(data, subject, analyte, decimal){
if(nrow(data) > 0){
library(nortest)
resultStep1 = NULL
resultStep2 = NULL
analyteValue = data$value
loganalytevalue = log(analyteValue)
logdata = data
logdata$value = loganalytevalue
replicate = as.... | /normality.R | no_license | selcukorkmaz/BioVar | R | false | false | 16,906 | r |
normality <- function(data, subject, analyte, decimal){
if(nrow(data) > 0){
library(nortest)
resultStep1 = NULL
resultStep2 = NULL
analyteValue = data$value
loganalytevalue = log(analyteValue)
logdata = data
logdata$value = loganalytevalue
replicate = as.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/settings.R
\name{read_settings}
\alias{read_settings}
\title{Read lintr settings}
\usage{
read_settings(filename)
}
\arguments{
\item{filename}{source file to be linted}
}
\description{
Lintr searches for settings for a given file in the foll... | /man/read_settings.Rd | permissive | jrnold/lintr | R | false | true | 724 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/settings.R
\name{read_settings}
\alias{read_settings}
\title{Read lintr settings}
\usage{
read_settings(filename)
}
\arguments{
\item{filename}{source file to be linted}
}
\description{
Lintr searches for settings for a given file in the foll... |
#!/usr/bin/env Rscript
library(docopt)
library(ggplot2)
library(gridExtra)
doc="Usage: preview.R MUT_TAB OUTPUT_FILE
Plot the mutation probabilities specified in the given MUT_TAB
"
#f="data/gen/mut-param/GS136.tab"
main <- function(argv){
args=docopt(doc=doc, args=argv)
t <- read.table(args[['MUT_TAB']],... | /scripts/src/plot_mutation_probabilities.R | permissive | mlell/tapas | R | false | false | 1,817 | r | #!/usr/bin/env Rscript
library(docopt)
library(ggplot2)
library(gridExtra)
doc="Usage: preview.R MUT_TAB OUTPUT_FILE
Plot the mutation probabilities specified in the given MUT_TAB
"
#f="data/gen/mut-param/GS136.tab"
main <- function(argv){
args=docopt(doc=doc, args=argv)
t <- read.table(args[['MUT_TAB']],... |
# rm(list = ls()) # Clear workspace
# install.packages("rJava")
# Diego: IF YOU HAVE WINDOWS, UNCOMMENT THE NEXT LINE. For Windows users, JAVA_HOME have to be set with the next command.
# Sys.setenv(JAVA_HOME='C:/Program Files/Java/jre1.8.0_151')
library(xlsx)
setwd("../Datos")
# Load Workspace including Dataset
#load... | /Entrega1/Scripts/OpenData.R | no_license | ribes96/Grau-MD | R | false | false | 6,638 | r | # rm(list = ls()) # Clear workspace
# install.packages("rJava")
# Diego: IF YOU HAVE WINDOWS, UNCOMMENT THE NEXT LINE. For Windows users, JAVA_HOME have to be set with the next command.
# Sys.setenv(JAVA_HOME='C:/Program Files/Java/jre1.8.0_151')
library(xlsx)
setwd("../Datos")
# Load Workspace including Dataset
#load... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/proj.R
\name{Proj}
\alias{Proj}
\title{Projection of Vector y on columns of X}
\usage{
Proj(y, X, list = FALSE)
}
\arguments{
\item{y}{a vector, treated as a one-column matrix}
\item{X}{a vector or matrix. Number of rows of \code{y} and \co... | /man/Proj.Rd | no_license | iMarcello/matlib | R | false | true | 1,534 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/proj.R
\name{Proj}
\alias{Proj}
\title{Projection of Vector y on columns of X}
\usage{
Proj(y, X, list = FALSE)
}
\arguments{
\item{y}{a vector, treated as a one-column matrix}
\item{X}{a vector or matrix. Number of rows of \code{y} and \co... |
# Cross-Scale Interactions Module ####
# This module was initially developed by Carey, C.C. and K.J. Farrell. 13 Aug. 2017.
# Macrosystems EDDIE: Cross-Scale Interactions. Macrosystems EDDIE Module 2, Version 1.
# module2.macrosystemseddie.org
# Module development was supported by NSF EF 1702506.
# R code for stu... | /CrossScale Interactions/CSI_R_Script.R | no_license | CareyLabVT/MacrosystemsEDDIE | R | false | false | 19,706 | r | # Cross-Scale Interactions Module ####
# This module was initially developed by Carey, C.C. and K.J. Farrell. 13 Aug. 2017.
# Macrosystems EDDIE: Cross-Scale Interactions. Macrosystems EDDIE Module 2, Version 1.
# module2.macrosystemseddie.org
# Module development was supported by NSF EF 1702506.
# R code for stu... |
div(
div(id = "welcome-text",
h3("Credit Card Data Visualization"),
),
sidebarPanel(
fluidRow(style = "padding-left: 15px;",
radioButtons("rb_dataset", label = "",
choices = c("Data correlation", "Dataset spread"))
),
actionButton("btn_go1", "Submit", class = "btn-primary"... | /ui/page1.R | no_license | ageekwall/Rprojects | R | false | false | 367 | r | div(
div(id = "welcome-text",
h3("Credit Card Data Visualization"),
),
sidebarPanel(
fluidRow(style = "padding-left: 15px;",
radioButtons("rb_dataset", label = "",
choices = c("Data correlation", "Dataset spread"))
),
actionButton("btn_go1", "Submit", class = "btn-primary"... |
## This R script is composed of two functions to cache previous results of a
## computationaly intensive operation, calculation of inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
# setter of the cached v... | /cachematrix.R | no_license | jfaleiro/vectorizedsamples | R | false | false | 1,444 | r | ## This R script is composed of two functions to cache previous results of a
## computationaly intensive operation, calculation of inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
# setter of the cached v... |
# test data (True gaussian mixture)
library(pldensity)
library(plotly)
library(mvtnorm)
# set.seed(110104)
nclust <- 4
d <- 2
mu <- list(c(.75, .5), c(.5, .75), c(.25, .5), c(.75, .3))
S <- list(matrix(.1^2 * c(1, .5, .5, 1), 2, 2), .05^2 * diag(2),
matrix(.1^2 * c(1, -.5, -.5, 1), 2, 2), .075^2 * diag(2))
n... | /test_scripts/test.R | permissive | BigDataStats/pldensity | R | false | false | 7,550 | r | # test data (True gaussian mixture)
library(pldensity)
library(plotly)
library(mvtnorm)
# set.seed(110104)
nclust <- 4
d <- 2
mu <- list(c(.75, .5), c(.5, .75), c(.25, .5), c(.75, .3))
S <- list(matrix(.1^2 * c(1, .5, .5, 1), 2, 2), .05^2 * diag(2),
matrix(.1^2 * c(1, -.5, -.5, 1), 2, 2), .075^2 * diag(2))
n... |
library('testthat')
# Load the functions
source('cachematrix.R')
# Run the tests
test_dir('tests', reporter = 'Summary') | /run_tests.R | no_license | maxsoloviov/ProgrammingAssignment2 | R | false | false | 122 | r | library('testthat')
# Load the functions
source('cachematrix.R')
# Run the tests
test_dir('tests', reporter = 'Summary') |
## All data files were put into a single folder, and the working
## directory was set to that folder.
run_analysis <- function() {
## Step 1: Read each file in as a data table, and add column names.
subject_test <- read.table("subject_test.txt")
colnames(subject_test) <- "subject"
subject_train <- read.table("subjec... | /run_analysis.R | no_license | easterwoods/Getting-Cleaning-Data-Project | R | false | false | 1,943 | r | ## All data files were put into a single folder, and the working
## directory was set to that folder.
run_analysis <- function() {
## Step 1: Read each file in as a data table, and add column names.
subject_test <- read.table("subject_test.txt")
colnames(subject_test) <- "subject"
subject_train <- read.table("subjec... |
# plot3.R
library(dplyr)
library(ggplot2)
NEI <- readRDS("data/exdata_data_NEI_data/summarySCC_PM25.rds")
SCC <- readRDS("data/exdata_data_NEI_data/Source_Classification_Code.rds")
# filtering data to baltimore city
baltimore <- NEI |>
filter(fips == '24510')
# aggregate by year and type of emmission
baltimore_b... | /plot3.R | no_license | positronn/coursera-eda-project2 | R | false | false | 770 | r | # plot3.R
library(dplyr)
library(ggplot2)
NEI <- readRDS("data/exdata_data_NEI_data/summarySCC_PM25.rds")
SCC <- readRDS("data/exdata_data_NEI_data/Source_Classification_Code.rds")
# filtering data to baltimore city
baltimore <- NEI |>
filter(fips == '24510')
# aggregate by year and type of emmission
baltimore_b... |
#' @title Read the raw tri-axial accelerometry data csv file by ActiGraph GT3X+.
#'
#' @description
#' \code{ReadGT3XPlus} reads the accelerometry data collected by ActiGraph GT3XPlus
#' in csv files generated by ActiLife software. It automatically parses the header
#' of the csv file to acquire the setting of the devi... | /R/ReadGT3XPlus.r | no_license | JieXue328/ActivityIndex | R | false | false | 6,257 | r | #' @title Read the raw tri-axial accelerometry data csv file by ActiGraph GT3X+.
#'
#' @description
#' \code{ReadGT3XPlus} reads the accelerometry data collected by ActiGraph GT3XPlus
#' in csv files generated by ActiLife software. It automatically parses the header
#' of the csv file to acquire the setting of the devi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim_find_cov_from_mgr.R
\name{sim_find_cov_from_mgr}
\alias{sim_find_cov_from_mgr}
\title{This function computes the coverage given the desired missing genotype rate}
\usage{
sim_find_cov_from_mgr(missing_genotype_rate)
}
\arguments{
\item{mi... | /man/sim_find_cov_from_mgr.Rd | no_license | mccoy-lab/rhapsodi | R | false | true | 759 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim_find_cov_from_mgr.R
\name{sim_find_cov_from_mgr}
\alias{sim_find_cov_from_mgr}
\title{This function computes the coverage given the desired missing genotype rate}
\usage{
sim_find_cov_from_mgr(missing_genotype_rate)
}
\arguments{
\item{mi... |
# Using information gain
# purity threshod set at 95%
# no other pruning.
E <- -70/210*log2(70/210) * 3
e1 <- -(68/69)*log2(68/69)-(1/69)*log2(1/69)
e2 <- -(55/57)*log2(55/57)-(2/57)*log2(2/57)
e3 <- 0
e4 <- -(20/21)*log2(20/21)-(1/21)*log2(1/21)
e5 <- 0
e6 <- 0
e7 <- 0
W.E <- (69*e1 + 57*e2 + 21*e4)/210
(69*e1 + 57*... | /Classification.R | no_license | Franzhang/Biostatistics-HW | R | false | false | 6,104 | r | # Using information gain
# purity threshod set at 95%
# no other pruning.
E <- -70/210*log2(70/210) * 3
e1 <- -(68/69)*log2(68/69)-(1/69)*log2(1/69)
e2 <- -(55/57)*log2(55/57)-(2/57)*log2(2/57)
e3 <- 0
e4 <- -(20/21)*log2(20/21)-(1/21)*log2(1/21)
e5 <- 0
e6 <- 0
e7 <- 0
W.E <- (69*e1 + 57*e2 + 21*e4)/210
(69*e1 + 57*... |
load_data <- function() {
# Input data file name
file_name <- "household_power_consumption.txt"
# Class of each column in the data set
col_classes <- c("character", "character", rep("numeric", 7))
# Read in the data from the file
dfrm <- read.table(file_name, sep=";", header=TRUE, colClasses=col_class... | /load_data.R | no_license | extremenelson/ExData_Plotting1 | R | false | false | 690 | r | load_data <- function() {
# Input data file name
file_name <- "household_power_consumption.txt"
# Class of each column in the data set
col_classes <- c("character", "character", rep("numeric", 7))
# Read in the data from the file
dfrm <- read.table(file_name, sep=";", header=TRUE, colClasses=col_class... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ImportMethods.R
\name{import.bedScore}
\alias{import.bedScore}
\title{import.bedScore}
\usage{
import.bedScore(filepath)
}
\arguments{
\item{filepath}{The path to the BED file.}
}
\value{
A GRanges object where each line represents one nucleo... | /man/import.bedScore.Rd | no_license | ComputationalRegulatoryGenomicsICL/CAGEr | R | false | true | 826 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ImportMethods.R
\name{import.bedScore}
\alias{import.bedScore}
\title{import.bedScore}
\usage{
import.bedScore(filepath)
}
\arguments{
\item{filepath}{The path to the BED file.}
}
\value{
A GRanges object where each line represents one nucleo... |
#' Execute all test_that tests in a package
#'
#' @param pkg package description, can be path or package name. See
#' \code{\link{as.package}} for more information
#' @inheritParams testthat::test_dir
#' @export
test <- function(pkg = NULL, filter = NULL) {
pkg <- as.package(pkg)
load_all(pkg)
message("Testing... | /devtoolsVersion/devtools 7/R/test.r | no_license | connectthefuture/devtools-R-Forge | R | false | false | 496 | r | #' Execute all test_that tests in a package
#'
#' @param pkg package description, can be path or package name. See
#' \code{\link{as.package}} for more information
#' @inheritParams testthat::test_dir
#' @export
test <- function(pkg = NULL, filter = NULL) {
pkg <- as.package(pkg)
load_all(pkg)
message("Testing... |
postscript("IGD+.Boxplot.eps", horizontal=FALSE, onefile=FALSE, height=8, width=12, pointsize=10)
resultDirectory<-"../data"
qIndicator <- function(indicator, problem)
{
fileMOCell<-paste(resultDirectory, "MOCell", sep="/")
fileMOCell<-paste(fileMOCell, problem, sep="/")
fileMOCell<-paste(fileMOCell, indicator, sep="/"... | /jMetal/experiments/VehicleStudy_tiempo_costo/R/IGD+.Boxplot.R | permissive | BernardoPulido/MasterProject-jMetal | R | false | false | 1,110 | r | postscript("IGD+.Boxplot.eps", horizontal=FALSE, onefile=FALSE, height=8, width=12, pointsize=10)
resultDirectory<-"../data"
qIndicator <- function(indicator, problem)
{
fileMOCell<-paste(resultDirectory, "MOCell", sep="/")
fileMOCell<-paste(fileMOCell, problem, sep="/")
fileMOCell<-paste(fileMOCell, indicator, sep="/"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_causal_types.R
\name{get_causal_types}
\alias{get_causal_types}
\title{Get causal types}
\usage{
get_causal_types(model)
}
\arguments{
\item{model}{A \code{causal_model}. A model object generated by \code{\link{make_model}}.}
}
\value{
A ... | /man/get_causal_types.Rd | no_license | yadmasu1/CausalQueries | R | false | true | 547 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_causal_types.R
\name{get_causal_types}
\alias{get_causal_types}
\title{Get causal types}
\usage{
get_causal_types(model)
}
\arguments{
\item{model}{A \code{causal_model}. A model object generated by \code{\link{make_model}}.}
}
\value{
A ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pmml.R
\name{parsePMML}
\alias{parsePMML}
\title{PMML parser}
\usage{
parsePMML(fileName)
}
\arguments{
\item{fileName}{xml file name}
}
\value{
list model
}
\description{
The parser parses the proposed PMML for the outlier detection model an... | /fpmoutliers/man/parsePMML.Rd | permissive | ThiinhUET/Fault-Detection-IoT | R | false | true | 439 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pmml.R
\name{parsePMML}
\alias{parsePMML}
\title{PMML parser}
\usage{
parsePMML(fileName)
}
\arguments{
\item{fileName}{xml file name}
}
\value{
list model
}
\description{
The parser parses the proposed PMML for the outlier detection model an... |
h_irf <- function (x, impulse, response, y.names, n.ahead, ortho, cumulative) {
if (inherits(x, "varest") || inherits(x, "vec2var")) {
if (ortho) {
irf <- Psi(x, nstep = n.ahead)
}
else {
irf <- Phi(x, nstep = n.ahead)
}
}
else if (inherits(x, "svarest") || inherits(x, "svecest")) {
... | /R/h_irf.R | no_license | Allisterh/VARshrink | R | false | false | 932 | r | h_irf <- function (x, impulse, response, y.names, n.ahead, ortho, cumulative) {
if (inherits(x, "varest") || inherits(x, "vec2var")) {
if (ortho) {
irf <- Psi(x, nstep = n.ahead)
}
else {
irf <- Phi(x, nstep = n.ahead)
}
}
else if (inherits(x, "svarest") || inherits(x, "svecest")) {
... |
library(PedCNV)
### Name: ClusProc
### Title: CNV clustering Procedure
### Aliases: ClusProc
### ** Examples
# Fit the data under the given clustering numbers
clus.fit <- ClusProc(signal=signal,N=2:6,varSelection='PC.9')
| /data/genthat_extracted_code/PedCNV/examples/ClusProc.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 228 | r | library(PedCNV)
### Name: ClusProc
### Title: CNV clustering Procedure
### Aliases: ClusProc
### ** Examples
# Fit the data under the given clustering numbers
clus.fit <- ClusProc(signal=signal,N=2:6,varSelection='PC.9')
|
setwd("/Users/janehuston/Documents/CivicHack")
counties<- read.csv("WNV_cases_temp.csv")
names(counties)<- c("year", "county", "temp", "wnv")
counties$county<- tolower(counties$county)
#merge and sort data
counties_map<- map_data('county', 'California')
climate_map<- merge(counties_map, counties, by.x="subregion", by.... | /helpers.R | permissive | jehuston/civichack | R | false | false | 800 | r | setwd("/Users/janehuston/Documents/CivicHack")
counties<- read.csv("WNV_cases_temp.csv")
names(counties)<- c("year", "county", "temp", "wnv")
counties$county<- tolower(counties$county)
#merge and sort data
counties_map<- map_data('county', 'California')
climate_map<- merge(counties_map, counties, by.x="subregion", by.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssmincidents_operations.R
\name{ssmincidents_put_resource_policy}
\alias{ssmincidents_put_resource_policy}
\title{Adds a resource policy to the specified response plan}
\usage{
ssmincidents_put_resource_policy(policy, resourceArn)
}
\argument... | /cran/paws.management/man/ssmincidents_put_resource_policy.Rd | permissive | paws-r/paws | R | false | true | 1,006 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssmincidents_operations.R
\name{ssmincidents_put_resource_policy}
\alias{ssmincidents_put_resource_policy}
\title{Adds a resource policy to the specified response plan}
\usage{
ssmincidents_put_resource_policy(policy, resourceArn)
}
\argument... |
# load data set
power <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?")
# Convert the Date variable and get susbset of data from the dates 2007-02-01 and 2007-02-02
power$Date <- as.Date(power$Date, "%d/%m/%Y")
power_sub <- power[power$Date %in% c(a... | /plot3.R | no_license | prsalm/ExData_Plotting1 | R | false | false | 1,142 | r |
# load data set
power <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?")
# Convert the Date variable and get susbset of data from the dates 2007-02-01 and 2007-02-02
power$Date <- as.Date(power$Date, "%d/%m/%Y")
power_sub <- power[power$Date %in% c(a... |
# program to check the predicting value of enterotyping by a specific amplicon compared to others for number of
# enterotypes (e.g. 2 to 5)
# INPUT:
# table sample-enterotype for v12, v34 and v56 amplicons
# OUTPUT:
# p-value of each amplicon to determine enterotypes for the other amplicons
getPredValue <- function(f... | /WhichAmpliconPredictsOthersBetter.R | no_license | Lev-genetik/CEDAR_mt | R | false | false | 7,400 | r | # program to check the predicting value of enterotyping by a specific amplicon compared to others for number of
# enterotypes (e.g. 2 to 5)
# INPUT:
# table sample-enterotype for v12, v34 and v56 amplicons
# OUTPUT:
# p-value of each amplicon to determine enterotypes for the other amplicons
getPredValue <- function(f... |
## occupancy graphics
library(tidyverse)
library(cowplot)
install.packages("extrafont")
library(extrafont)
font_import()
loadfonts(device="win") #Register fonts for Windows bitmap output
fonts()
#Brown Trout Detection Probability
effort.preds <- read.csv("Data/Thesis/BRT_p_effort_preds.csv", header = T)
brt.... | /graphics/Thesis/Occu_Graphics_04_16_2020.R | no_license | EEOB590A-Fall-2019/BKelly_Fishes | R | false | false | 14,116 | r | ## occupancy graphics
library(tidyverse)
library(cowplot)
install.packages("extrafont")
library(extrafont)
font_import()
loadfonts(device="win") #Register fonts for Windows bitmap output
fonts()
#Brown Trout Detection Probability
effort.preds <- read.csv("Data/Thesis/BRT_p_effort_preds.csv", header = T)
brt.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sample-trajectories.R
\name{rTrajWn2D}
\alias{rTrajWn2D}
\title{Simulation of trajectories for the WN diffusion in 2D}
\usage{
rTrajWn2D(x0, alpha, mu, sigma, rho = 0, N = 100, delta = 0.01,
NFine = ceiling(N * delta/deltaFine), deltaFine =... | /sdetorus/man/rTrajWn2D.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 1,789 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sample-trajectories.R
\name{rTrajWn2D}
\alias{rTrajWn2D}
\title{Simulation of trajectories for the WN diffusion in 2D}
\usage{
rTrajWn2D(x0, alpha, mu, sigma, rho = 0, N = 100, delta = 0.01,
NFine = ceiling(N * delta/deltaFine), deltaFine =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getStandings.R
\name{getStandings}
\alias{getStandings}
\title{Fetch Standings}
\usage{
getStandings(season, stage.no = NA)
}
\arguments{
\item{season}{SeasonID, usually the year of a given season, i.e. "2019".}
\item{stage.no}{The number of... | /man/getStandings.Rd | permissive | hanjimin06/owlstats | R | false | true | 773 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getStandings.R
\name{getStandings}
\alias{getStandings}
\title{Fetch Standings}
\usage{
getStandings(season, stage.no = NA)
}
\arguments{
\item{season}{SeasonID, usually the year of a given season, i.e. "2019".}
\item{stage.no}{The number of... |
## DONE vapour rasterio creator
## DONE vapour rasterio to sf-rasterio
## DONE sf-rasterio to vapour rasterio
## DONE geotransform creator
## DONE world file creator
## DONE world file to geotransform
## DONE geotransform to world file
## DONE (vapour) get gdal geotransform
## DONE gen gdal geotransform
## DONE gen ext... | /R/grids.R | no_license | hypertidy/affinity | R | false | false | 9,642 | r | ## DONE vapour rasterio creator
## DONE vapour rasterio to sf-rasterio
## DONE sf-rasterio to vapour rasterio
## DONE geotransform creator
## DONE world file creator
## DONE world file to geotransform
## DONE geotransform to world file
## DONE (vapour) get gdal geotransform
## DONE gen gdal geotransform
## DONE gen ext... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_put_alarm}
\alias{lightsail_put_alarm}
\title{Creates or updates an alarm, and associates it with the specified metric}
\usage{
lightsail_put_alarm(
alarmName,
metricName,
monitoredResourceName,
... | /cran/paws.compute/man/lightsail_put_alarm.Rd | permissive | paws-r/paws | R | false | true | 6,144 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_put_alarm}
\alias{lightsail_put_alarm}
\title{Creates or updates an alarm, and associates it with the specified metric}
\usage{
lightsail_put_alarm(
alarmName,
metricName,
monitoredResourceName,
... |
# for the deployment of the shinyApp
packages <- c("shiny", "shinydashboard", "shinyjs", "shinyWidgets", "shinycssloaders",
"rAmCharts", "pipeR", "DT", "lubridate", "dplyr", "rjson", "dbplyr",
"RMySQL", "leaflet", "rgdal", "rgeos")
if (length(setdiff(packages, rownames(installed.packages()))) > 0) {
in... | /ShinyApp_Image/test_IC/app/dpp.R | permissive | jackylbk/EDSS_dep_framework | R | false | false | 466 | r | # for the deployment of the shinyApp
packages <- c("shiny", "shinydashboard", "shinyjs", "shinyWidgets", "shinycssloaders",
"rAmCharts", "pipeR", "DT", "lubridate", "dplyr", "rjson", "dbplyr",
"RMySQL", "leaflet", "rgdal", "rgeos")
if (length(setdiff(packages, rownames(installed.packages()))) > 0) {
in... |
#' Uninstall a local development package.
#'
#' Uses `remove.package` to uninstall the package.
#' To uninstall a package from a non-default library,
#' use [withr::with_libpaths()].
#'
#' @inheritParams install
#' @param unload if `TRUE` (the default), will automatically unload the
#' package prior to uninstalling.
... | /R/uninstall.R | no_license | insightdataintel/devtools | R | false | false | 830 | r | #' Uninstall a local development package.
#'
#' Uses `remove.package` to uninstall the package.
#' To uninstall a package from a non-default library,
#' use [withr::with_libpaths()].
#'
#' @inheritParams install
#' @param unload if `TRUE` (the default), will automatically unload the
#' package prior to uninstalling.
... |
test_that("inputs are concatenated, interpolated variables recycled", {
expect_equal(glue("test", "a", "string", "{1:2}"), c("testastring1", "testastring2"))
})
test_that("glue errors if the expression fails", {
expect_error(glue("{NoTfOuNd}"), "object .* not found")
})
test_that("glue errors if invalid format", {... | /tests/testthat/test-glue.R | permissive | shrektan/glue | R | false | false | 13,531 | r | test_that("inputs are concatenated, interpolated variables recycled", {
expect_equal(glue("test", "a", "string", "{1:2}"), c("testastring1", "testastring2"))
})
test_that("glue errors if the expression fails", {
expect_error(glue("{NoTfOuNd}"), "object .* not found")
})
test_that("glue errors if invalid format", {... |
# 1. Creating Data for NLP
#library(stringi) # finds summary information for text files
require(tm) # Text mining
require(RWeka) # tokenizer - create unigrams, bigrams, trigrams
#library(NLP); library(openNLP) #automatically installed with tm?
#library(rJava)
#library(RWekajars)
#library(SnowballC) # Stemming... | /CreatingNGramsRdata.R | no_license | dennisliu19/NLP-Summer | R | false | false | 5,397 | r | # 1. Creating Data for NLP
#library(stringi) # finds summary information for text files
require(tm) # Text mining
require(RWeka) # tokenizer - create unigrams, bigrams, trigrams
#library(NLP); library(openNLP) #automatically installed with tm?
#library(rJava)
#library(RWekajars)
#library(SnowballC) # Stemming... |
\name{WarblerG}
\docType{data}
\alias{WarblerG}
\title{Seychelles Warbler Genotypes}
\description{Genetype data collected by David Richardson from Cousin Island in 1999.
}
\usage{WarblerG}
\format{a data frame with 307 rows and 29 columns. The first column are the unique idenitifiers for each bird, and the following ... | /man/WarblerG.Rd | no_license | rjlarosa/MasterBayes-1 | R | false | false | 577 | rd | \name{WarblerG}
\docType{data}
\alias{WarblerG}
\title{Seychelles Warbler Genotypes}
\description{Genetype data collected by David Richardson from Cousin Island in 1999.
}
\usage{WarblerG}
\format{a data frame with 307 rows and 29 columns. The first column are the unique idenitifiers for each bird, and the following ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarise.R
\name{summarise}
\alias{summarise}
\alias{summarize}
\title{Reduce multiple values down to a single value}
\usage{
summarise(.data, ..., .groups = NULL)
summarize(.data, ..., .groups = NULL)
}
\arguments{
\item{.data}{A \code{dat... | /man/summarise.Rd | permissive | federman/poorman | R | false | true | 2,377 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarise.R
\name{summarise}
\alias{summarise}
\alias{summarize}
\title{Reduce multiple values down to a single value}
\usage{
summarise(.data, ..., .groups = NULL)
summarize(.data, ..., .groups = NULL)
}
\arguments{
\item{.data}{A \code{dat... |
#necessary packages
deps = c("car","mirt","likert","dplyr","forcats","dotwhisker","tidyr","tidyverse", "rfigshare");
for (dep in deps){
if (dep %in% installed.packages()[,"Package"] == FALSE){
install.packages(as.character(dep), quiet=TRUE);
}
library(dep, verbose=FALSE, character.only=TRUE)
}
#setting up ... | /IRT_analysis.R | no_license | aivelo/genesurvey | R | false | false | 8,730 | r | #necessary packages
deps = c("car","mirt","likert","dplyr","forcats","dotwhisker","tidyr","tidyverse", "rfigshare");
for (dep in deps){
if (dep %in% installed.packages()[,"Package"] == FALSE){
install.packages(as.character(dep), quiet=TRUE);
}
library(dep, verbose=FALSE, character.only=TRUE)
}
#setting up ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_483}
\alias{movie_483}
\title{Mission: Impossible}
\format{
igraph object
}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0117060... | /man/movie_483.Rd | permissive | schochastics/networkdata | R | false | true | 1,021 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_483}
\alias{movie_483}
\title{Mission: Impossible}
\format{
igraph object
}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0117060... |
#' Load weight file
#'
#' @param weight \code{character} path
#' @param areaConf \code{data.table} area conf
#'
#' @return weight \code{data.table} weight file
#'
#' @noRd
.getWeight <- function(weight, areaConf){
weight <- data.table::fread(weight, sep = "\t", dec = ".")
names(weight) <- gsub(" ", "", names(weight... | /R/initFlowBasedFunctions.R | no_license | rte-antares-rpackage/fbAntares | R | false | false | 3,630 | r | #' Load weight file
#'
#' @param weight \code{character} path
#' @param areaConf \code{data.table} area conf
#'
#' @return weight \code{data.table} weight file
#'
#' @noRd
.getWeight <- function(weight, areaConf){
weight <- data.table::fread(weight, sep = "\t", dec = ".")
names(weight) <- gsub(" ", "", names(weight... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clusternor.R
\name{Kmeans}
\alias{Kmeans}
\title{Perform k-means clustering on a data matrix.}
\usage{
Kmeans(
data,
centers,
nrow = -1,
ncol = -1,
iter.max = .Machine$integer.max,
nthread = -1,
init = c("kmeanspp", "random", "f... | /fuzzedpackages/clusternor/man/Kmeans.Rd | no_license | akhikolla/testpackages | R | false | true | 1,855 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clusternor.R
\name{Kmeans}
\alias{Kmeans}
\title{Perform k-means clustering on a data matrix.}
\usage{
Kmeans(
data,
centers,
nrow = -1,
ncol = -1,
iter.max = .Machine$integer.max,
nthread = -1,
init = c("kmeanspp", "random", "f... |
# load all of the data
allData <- read.csv("household_power_consumption.txt",sep = ";",stringsAsFactors = FALSE)
# make the Date field a Date type
allData$Date <- as.Date(allData$Date,"%d/%m/%Y")
# get the data from Feb 1, 2007- Feb 2, 2007
allData <- subset(allData, (allData$Date > as.Date("2007-01-31") & allData$Da... | /plot2.R | no_license | todrews/ExData_Plotting1 | R | false | false | 854 | r | # load all of the data
allData <- read.csv("household_power_consumption.txt",sep = ";",stringsAsFactors = FALSE)
# make the Date field a Date type
allData$Date <- as.Date(allData$Date,"%d/%m/%Y")
# get the data from Feb 1, 2007- Feb 2, 2007
allData <- subset(allData, (allData$Date > as.Date("2007-01-31") & allData$Da... |
## This script performs a simple transform of data in a wide format to a long format,
## plus some cleanup for initial Exploratory Data Analysis (EDA)
## The data is in a spreadsheet generated with LibreOffice Calc (ODS format)
## Author: Aditya T. Wresniyandaka
library(readODS)
library(dplyr)
library(tidyr)
... | /Timesheet.r | no_license | adityatw/misc | R | false | false | 1,342 | r |
## This script performs a simple transform of data in a wide format to a long format,
## plus some cleanup for initial Exploratory Data Analysis (EDA)
## The data is in a spreadsheet generated with LibreOffice Calc (ODS format)
## Author: Aditya T. Wresniyandaka
library(readODS)
library(dplyr)
library(tidyr)
... |
## R-10일차(2018.1.9)
# 10-1. melt
# 10-2. dcast
# 10-3. grep
# 10-4. stringr()
# -4-1. str_detect()
# -4-2. str_count()
# -4-3. str_c()
# -4-4. str_dup()
# -4-5. str_length()
# -4-6. str_locate()
# -4-7. str_replace()
# -4-8. str_split()
# -4-9. str_sub()
# -4-10. str_trim... | /R_Code/[2018.01.09]R-10일차.R | no_license | Trigger21/R | R | false | false | 11,797 | r | ## R-10일차(2018.1.9)
# 10-1. melt
# 10-2. dcast
# 10-3. grep
# 10-4. stringr()
# -4-1. str_detect()
# -4-2. str_count()
# -4-3. str_c()
# -4-4. str_dup()
# -4-5. str_length()
# -4-6. str_locate()
# -4-7. str_replace()
# -4-8. str_split()
# -4-9. str_sub()
# -4-10. str_trim... |
\name{as.data.frame}
\alias{as.data.frame}
\alias{as.data.frame,Raster-method}
\alias{as.data.frame,SpatialPolygons-method}
\alias{as.data.frame,SpatialLines-method}
\title{Get a data.frame with raster cell values, or coerce SpatialPolygons, Lines, or Points to a data.frame}
\description{
\code{as.matr... | /man/as.data.frame.Rd | no_license | cran/raster | R | false | false | 2,733 | rd | \name{as.data.frame}
\alias{as.data.frame}
\alias{as.data.frame,Raster-method}
\alias{as.data.frame,SpatialPolygons-method}
\alias{as.data.frame,SpatialLines-method}
\title{Get a data.frame with raster cell values, or coerce SpatialPolygons, Lines, or Points to a data.frame}
\description{
\code{as.matr... |
#*****************************************
#
# (C) Copyright IBM Corp. 2017
# Author: Bradley J Eck
#
#
#****************************************/
context("ENclose")
test_that("func exists",{
expect_true( is.loaded("enClose"))
})
test_that("func works",{
ENopen("Net1.inp","n1.rpt","")
ENclose()
expect... | /tests/testthat/test_ENclose.r | no_license | petacoder75/epanet2toolkit | R | false | false | 767 | r | #*****************************************
#
# (C) Copyright IBM Corp. 2017
# Author: Bradley J Eck
#
#
#****************************************/
context("ENclose")
test_that("func exists",{
expect_true( is.loaded("enClose"))
})
test_that("func works",{
ENopen("Net1.inp","n1.rpt","")
ENclose()
expect... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/microstrategy.R
\docType{methods}
\name{update_dataset}
\alias{update_dataset}
\alias{update_dataset,connection-method}
\title{Update a previously created dataset}
\usage{
update_dataset(connection, data_frame, dataset_id, table_id, table_nam... | /man/update_dataset.Rd | permissive | saikat1506/mstrio | R | false | true | 3,797 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/microstrategy.R
\docType{methods}
\name{update_dataset}
\alias{update_dataset}
\alias{update_dataset,connection-method}
\title{Update a previously created dataset}
\usage{
update_dataset(connection, data_frame, dataset_id, table_id, table_nam... |
library(ggplot2)
library(ggExtra)
library(reshape2)
library(dplyr)
setwd("/Users/Jake")
params <- c("Norm","alpha","tau","etas","kpi")
design_m <- read.table("~/Dropbox/Research/JETSCAPE/training_data/main/design.dat")
design_v <- read.table("~/Dropbox/Research/JETSCAPE/training_data/validation/design.dat")
colnames(... | /cleaner_jonah.R | no_license | jake-coleman32/research_code | R | false | false | 13,205 | r | library(ggplot2)
library(ggExtra)
library(reshape2)
library(dplyr)
setwd("/Users/Jake")
params <- c("Norm","alpha","tau","etas","kpi")
design_m <- read.table("~/Dropbox/Research/JETSCAPE/training_data/main/design.dat")
design_v <- read.table("~/Dropbox/Research/JETSCAPE/training_data/validation/design.dat")
colnames(... |
# Plot1.R
# Grab the header
dataheader <- read.table("../Data/household_power_consumption.txt",sep=";", header = TRUE,nrow = 1)
# Pull only the 2/1/2007 and 2/2/2007 data
data <- read.table("../Data/household_power_consumption.txt",sep=";", skip = 66637, header = FALSE,nrow=2880)
# Put the header on the data
colname... | /plot4.R | no_license | smazraq/ExData_Plotting1 | R | false | false | 1,304 | r | # Plot1.R
# Grab the header
dataheader <- read.table("../Data/household_power_consumption.txt",sep=";", header = TRUE,nrow = 1)
# Pull only the 2/1/2007 and 2/2/2007 data
data <- read.table("../Data/household_power_consumption.txt",sep=";", skip = 66637, header = FALSE,nrow=2880)
# Put the header on the data
colname... |
---
output:
html_notebook: default
html_document: default
---
# K-Means clustering
### Problem Statement:-
- Analyze the information given in the ‘Insurance Policy dataset’ to create clusters of persons falling in the same type
### Data Understanding and Preparation
```{r}
#Reading the dataset
library(read... | /Model for Insurance_Data/Module 13_Insurance_R_Notebook.R | no_license | upendradama/K-Means-Clustering | R | false | false | 2,742 | r | ---
output:
html_notebook: default
html_document: default
---
# K-Means clustering
### Problem Statement:-
- Analyze the information given in the ‘Insurance Policy dataset’ to create clusters of persons falling in the same type
### Data Understanding and Preparation
```{r}
#Reading the dataset
library(read... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GO.info.r
\name{GO.info}
\alias{GO.info}
\title{retrieves information for one or more GO terms}
\usage{
GO.info(go = c("GO:0006996", "GO:0006997"), terms = c("Term", "Ontology"))
}
\arguments{
\item{go}{a vector or one or more go terms for wh... | /GoViewer/man/GO.info.Rd | no_license | aidanmacnamara/epiView | R | false | true | 888 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GO.info.r
\name{GO.info}
\alias{GO.info}
\title{retrieves information for one or more GO terms}
\usage{
GO.info(go = c("GO:0006996", "GO:0006997"), terms = c("Term", "Ontology"))
}
\arguments{
\item{go}{a vector or one or more go terms for wh... |
#' Create vectors of XPtr objects
#'
#' @param x A bare `list()` of external pointers
#' @param class A character vector subclass
#' @param ... Unused
#'
#' @return An object of class s2_xptr
#' @noRd
#'
new_s2_xptr <- function(x = list(), class = character()) {
if (!is.list(x) || is.object(x)) {
stop("x must be... | /s2/R/s2-xptr.R | no_license | akhikolla/InformationHouse | R | false | false | 1,772 | r |
#' Create vectors of XPtr objects
#'
#' @param x A bare `list()` of external pointers
#' @param class A character vector subclass
#' @param ... Unused
#'
#' @return An object of class s2_xptr
#' @noRd
#'
new_s2_xptr <- function(x = list(), class = character()) {
if (!is.list(x) || is.object(x)) {
stop("x must be... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/wp_extract_data.R
\name{wp_extract_data}
\alias{wp_extract_data}
\title{Helper function for wp_trend}
\usage{
wp_extract_data(wp_json)
}
\arguments{
\item{wp_json}{The results from server request in JSON format}
}
\description{
The fu... | /man/wp_extract_data.Rd | no_license | reisfe/wikipediatrend | R | false | false | 416 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/wp_extract_data.R
\name{wp_extract_data}
\alias{wp_extract_data}
\title{Helper function for wp_trend}
\usage{
wp_extract_data(wp_json)
}
\arguments{
\item{wp_json}{The results from server request in JSON format}
}
\description{
The fu... |
url = "https://willard.lacoe.edu/lcap2017/plan_status.pl"
tmp = postForm(url, year = 2017, style = "post")
doc2 = htmlParse(tmp)
a = getNodeSet(doc2, "//a")
links = sapply(a, xmlGetAttr, "href")
names(links) = sapply(a, xmlValue)
b = links[ grep("^view", links) ]
urls = getRelativeURL(b, url)
mapply(function(u, to) tr... | /LAcounty.R | no_license | duncantl/LCAP | R | false | false | 423 | r | url = "https://willard.lacoe.edu/lcap2017/plan_status.pl"
tmp = postForm(url, year = 2017, style = "post")
doc2 = htmlParse(tmp)
a = getNodeSet(doc2, "//a")
links = sapply(a, xmlGetAttr, "href")
names(links) = sapply(a, xmlValue)
b = links[ grep("^view", links) ]
urls = getRelativeURL(b, url)
mapply(function(u, to) tr... |
library(ggplot2)
if (Sys.getenv("JAVA_HOME")!="")
Sys.setenv(JAVA_HOME="")
library(rJava)
Sys.setenv(JAVA_HOME="C:\\Program Files\\Java\\jdk1.6.0_24")
library(xlsx)
library(XML)
library(jsonlite)
library(data.table)
onMac = F;
if(Sys.getenv("HOME") == "/Users/praveen") {
dataLoc = "/Users/praveen/Desktop/DataScie... | /dataCode.r | no_license | pennyscalper/GetAndCleanData | R | false | false | 16,079 | r | library(ggplot2)
if (Sys.getenv("JAVA_HOME")!="")
Sys.setenv(JAVA_HOME="")
library(rJava)
Sys.setenv(JAVA_HOME="C:\\Program Files\\Java\\jdk1.6.0_24")
library(xlsx)
library(XML)
library(jsonlite)
library(data.table)
onMac = F;
if(Sys.getenv("HOME") == "/Users/praveen") {
dataLoc = "/Users/praveen/Desktop/DataScie... |
% Check from R:
% news(db = tools:::.build_news_db_from_package_NEWS_Rd("~/R/Pkgs/Matrix/inst/NEWS.Rd"))
\name{NEWS}
\title{News for \R Package \pkg{Matrix}}% MM: look into ../svn-log-from.all
\encoding{UTF-8}
%% NB: The date (yyyy-mm-dd) is the "Packaged:" date in ../DESCRIPTION
%%_NOT YET__FIXME_ : needs *MORE THAN... | /Matrix/NEWS.Rd | permissive | solgenomics/R_libs | R | false | false | 43,448 | rd | % Check from R:
% news(db = tools:::.build_news_db_from_package_NEWS_Rd("~/R/Pkgs/Matrix/inst/NEWS.Rd"))
\name{NEWS}
\title{News for \R Package \pkg{Matrix}}% MM: look into ../svn-log-from.all
\encoding{UTF-8}
%% NB: The date (yyyy-mm-dd) is the "Packaged:" date in ../DESCRIPTION
%%_NOT YET__FIXME_ : needs *MORE THAN... |
/Logistic Regression/Unit3_Framingham.R | no_license | namansnegi/Analytics_Edge | R | false | false | 1,261 | r | ||
% Generated by roxygen2 (4.1.1.9000): do not edit by hand
% Please edit documentation in R/writeDictionary.R
\name{writeDictionary}
\alias{writeDictionary}
\title{Write Dictionary From Data.Frame To File}
\usage{
writeDictionary(mydic, exec = FALSE, outfilename = "")
}
\arguments{
\item{mydic}{A data.frame containg "ke... | /man/writeDictionary.Rd | no_license | ecology-rocks/grammaR | R | false | false | 859 | rd | % Generated by roxygen2 (4.1.1.9000): do not edit by hand
% Please edit documentation in R/writeDictionary.R
\name{writeDictionary}
\alias{writeDictionary}
\title{Write Dictionary From Data.Frame To File}
\usage{
writeDictionary(mydic, exec = FALSE, outfilename = "")
}
\arguments{
\item{mydic}{A data.frame containg "ke... |
library(shiny)
library(readxl)
library(DT)
dt <- read.csv("LoL-Champions.csv")
shinyUI(fluidPage(
titlePanel("League Of Legends Champions"),
tabsetPanel(
tabPanel("Análsis Campeones",
h1("Clases De Campeones"),
plotOutput("cdc"),
... | /LolChampions/ui.R | no_license | diegoralon/SegunaParteEntrega2-DP | R | false | false | 3,683 | r |
library(shiny)
library(readxl)
library(DT)
dt <- read.csv("LoL-Champions.csv")
shinyUI(fluidPage(
titlePanel("League Of Legends Champions"),
tabsetPanel(
tabPanel("Análsis Campeones",
h1("Clases De Campeones"),
plotOutput("cdc"),
... |
library(usmap)
library(ggplot2)
library(dplyr)
library(glmnet)
cfb[is.na(cfb)] <- 0
View(cfb)
cfb$time <- substr(cfb$DateTime, start= 12, stop = 20)
cfb$time <- strtoi(gsub("[^0-9.]", "", cfb$time))
state_attendance <- cfb %>% group_by(State)
state_summary <- state_attendance %>% summarise(
attend = sum(Attendan... | /Project.R | no_license | jocelynewalker/MIS381_Data_Analytics_Programming | R | false | false | 3,604 | r | library(usmap)
library(ggplot2)
library(dplyr)
library(glmnet)
cfb[is.na(cfb)] <- 0
View(cfb)
cfb$time <- substr(cfb$DateTime, start= 12, stop = 20)
cfb$time <- strtoi(gsub("[^0-9.]", "", cfb$time))
state_attendance <- cfb %>% group_by(State)
state_summary <- state_attendance %>% summarise(
attend = sum(Attendan... |
context("SpecificEndpoinValidation")
#see Roxygen commens on specificEndpointRules function
#for more details
#endPoint is a vector of endPoint names which have timeCol name_TIME
#and censorCol name_CENS
simpleSurvivalDataCreation <- function(data, endPoint){
data$subject <- 1:nrow(data)
data$arm <- c("A", rep("... | /tests/testthat/test-specificEndpointValidation.R | no_license | scientific-computing-solutions/sibyl | R | false | false | 7,281 | r | context("SpecificEndpoinValidation")
#see Roxygen commens on specificEndpointRules function
#for more details
#endPoint is a vector of endPoint names which have timeCol name_TIME
#and censorCol name_CENS
simpleSurvivalDataCreation <- function(data, endPoint){
data$subject <- 1:nrow(data)
data$arm <- c("A", rep("... |
#' Predict method for Tenv object.
#'
#' Predict response for the object returned from \code{\link{TRR.fit}} and \code{\link{TPR.fit}} functions.
#'
#' @param object An object of class \code{"Tenv"}, as the ones returned from \code{\link{TPR.fit}} or \code{\link{TRR.fit}}.
#' @param newdata The data to be used for pred... | /R/predict.Tenv.R | no_license | jingzzeng/TRES | R | false | false | 1,936 | r | #' Predict method for Tenv object.
#'
#' Predict response for the object returned from \code{\link{TRR.fit}} and \code{\link{TPR.fit}} functions.
#'
#' @param object An object of class \code{"Tenv"}, as the ones returned from \code{\link{TPR.fit}} or \code{\link{TRR.fit}}.
#' @param newdata The data to be used for pred... |
# =======================================================================
# Group Name: AmaIA
# Students: Lander San Millan, Amaia Acha
# =======================================================================
# Clear environment
rm(list=ls())
# Set working directory
setwd(dirname(rstudioapi::getActiveDocumentContext(... | /search-template-p2/main/main-knapsack.R | no_license | landersanmi/Proyecto2_Sis_Inteligentes | R | false | false | 6,992 | r | # =======================================================================
# Group Name: AmaIA
# Students: Lander San Millan, Amaia Acha
# =======================================================================
# Clear environment
rm(list=ls())
# Set working directory
setwd(dirname(rstudioapi::getActiveDocumentContext(... |
# =====================================================================================================================
# DESCRIPTIVE STATISTICS EXERCISES
# =====================================================================================================================
# Mean, Standard Deviation and Variance ----... | /lectures/Descriptive Statistics _ Tutorial.R | no_license | aminondo/iX-rModules | R | false | false | 3,149 | r | # =====================================================================================================================
# DESCRIPTIVE STATISTICS EXERCISES
# =====================================================================================================================
# Mean, Standard Deviation and Variance ----... |
library(shiny)
library(dplyr)
require(ggplot2)
#ui
ui <- fluidPage(
titlePanel("Enfeksiyon Gününden İtibaren Günlere Göre Sempton Görülme Oranları"),
sidebarLayout(
sidebarPanel(
checkboxGroupInput("checkGroup", label = h3("Sempton"),
choices = list("Ateş" = 1, "Kuru Öksürük" = 2, "Boğaz Ağrısı" ... | /app.R | no_license | bagsho/crowd_symp | R | false | false | 3,020 | r | library(shiny)
library(dplyr)
require(ggplot2)
#ui
ui <- fluidPage(
titlePanel("Enfeksiyon Gününden İtibaren Günlere Göre Sempton Görülme Oranları"),
sidebarLayout(
sidebarPanel(
checkboxGroupInput("checkGroup", label = h3("Sempton"),
choices = list("Ateş" = 1, "Kuru Öksürük" = 2, "Boğaz Ağrısı" ... |
################################################################################
#
# TABLE 3
#
# This script can be run via an action in project.yaml using one argument:
# - 'data_label' /in {day0, day2, day4, day4, day5} --> day
#
# This script can be run via an action in project.yaml
# It combines tables to Table 3/ ... | /analysis/output_wrangling/table3.R | permissive | opensafely/mab-av-non-users | R | false | false | 9,025 | r | ################################################################################
#
# TABLE 3
#
# This script can be run via an action in project.yaml using one argument:
# - 'data_label' /in {day0, day2, day4, day4, day5} --> day
#
# This script can be run via an action in project.yaml
# It combines tables to Table 3/ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.