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 |
|---|---|---|---|---|---|---|---|---|---|
##best.R
##Author: Emilie H Wolf
##February 11, 2017
best <- function(state, outcome) {
## Read outcome data
df <- read.csv("outcome-of-care-measures.csv",
colClasses = "character", na.strings =
"Not Available")
## Slim down the csv object and fix class... | /best.R | no_license | emiliehwolf/prog3 | R | false | false | 1,448 | r | ##best.R
##Author: Emilie H Wolf
##February 11, 2017
best <- function(state, outcome) {
## Read outcome data
df <- read.csv("outcome-of-care-measures.csv",
colClasses = "character", na.strings =
"Not Available")
## Slim down the csv object and fix class... |
library(fs)
library(glue)
library(here)
library(rtweet)
library(tidyverse)
try_get_timeline <- possibly(get_timeline, otherwise = NULL)
get_mc_tweets <- function(reg = "(#*)[Mm]alort(\\s*)[Cc]ourt",
filter_to_reg = TRUE,
min_id = 0,
max_id ... | /import.R | no_license | aedobbyn/malort-court | R | false | false | 6,097 | r | library(fs)
library(glue)
library(here)
library(rtweet)
library(tidyverse)
try_get_timeline <- possibly(get_timeline, otherwise = NULL)
get_mc_tweets <- function(reg = "(#*)[Mm]alort(\\s*)[Cc]ourt",
filter_to_reg = TRUE,
min_id = 0,
max_id ... |
\name{getWeekCATicket}
\alias{getWeekCATicket}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Get last week angulars coefficients.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
getWeekCATicket(tickets)
}
%- maybe also 'usage' for other objects... | /man/getWeekCATicket.Rd | no_license | danielfhenrique789/profitmaximization | R | false | false | 1,385 | rd | \name{getWeekCATicket}
\alias{getWeekCATicket}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Get last week angulars coefficients.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
getWeekCATicket(tickets)
}
%- maybe also 'usage' for other objects... |
require(PMCMRplus)
options("width"=10000)
ARRAY <- c(0.006367921640857287,0.0059115514364996,0.012020234154773171,0.0062928091628034755,0.006194400166287273,0.0059099626716295805,0.005546740034282001,0.005709183307429824,0.01867996417925001,0.006095878889540182,0.006255804765985302,0.014087935084642546,0.00595251330484... | /MaFMethodology/R/base_full/IGD/10/kruskalscript.R | no_license | fritsche/hhcoanalysisresults | R | false | false | 1,093 | r | require(PMCMRplus)
options("width"=10000)
ARRAY <- c(0.006367921640857287,0.0059115514364996,0.012020234154773171,0.0062928091628034755,0.006194400166287273,0.0059099626716295805,0.005546740034282001,0.005709183307429824,0.01867996417925001,0.006095878889540182,0.006255804765985302,0.014087935084642546,0.00595251330484... |
# I will be using Random forest model for final submission.
# For variable selection and modelling work see file 'uModels.R'
# For EDA see file 'uEda.R'
# In this processed data has been used , Both train and test have been transfromed
# following same logic, see file 'uProc.R'
# Some facts about orignal data
# ... | /uFinal.R | no_license | Seeker875/ImbalClassificationMissingData | R | false | false | 3,418 | r |
# I will be using Random forest model for final submission.
# For variable selection and modelling work see file 'uModels.R'
# For EDA see file 'uEda.R'
# In this processed data has been used , Both train and test have been transfromed
# following same logic, see file 'uProc.R'
# Some facts about orignal data
# ... |
# Plot4.R
# jmendez
# project 1 Plot 4 exploratory data
setwd("/home/jmendez")
#
data=read.csv('household_power_consumption.txt',header=TRUE,sep=";",dec='.',na.strings='?')
# asecurying Date type
data[,1]=as.Date(data[,1],'%d/%m/%Y')
#
# extracting requiered data
data2=data[year(data[,1])==2007 & months(data[,1])=='F... | /plot4.R | no_license | jm3mendez/ExData_Plott1 | R | false | false | 1,513 | r | # Plot4.R
# jmendez
# project 1 Plot 4 exploratory data
setwd("/home/jmendez")
#
data=read.csv('household_power_consumption.txt',header=TRUE,sep=";",dec='.',na.strings='?')
# asecurying Date type
data[,1]=as.Date(data[,1],'%d/%m/%Y')
#
# extracting requiered data
data2=data[year(data[,1])==2007 & months(data[,1])=='F... |
context("Tests for DataPreprocessing.R")
#assign("Pathways_Example", c(1,2,3,4), envir = .GlobalEnv)
assign("Pathways_Example", c(1,2,3,4))
assign("CenterStandardize_Orig", matrix(c(1,2,0,1,0,0,2,1,1,1,2,1), ncol=3, byrow=FALSE))
assign("CenterStandardize_Mean", c(1.00,0.75,1.25))
assign("CenterStandardize_SD", c(0.81... | /MAPITR/tests/testthat/test-DataPreprocessing.R | permissive | akhikolla/TestedPackages-NoIssues | R | false | false | 1,892 | r | context("Tests for DataPreprocessing.R")
#assign("Pathways_Example", c(1,2,3,4), envir = .GlobalEnv)
assign("Pathways_Example", c(1,2,3,4))
assign("CenterStandardize_Orig", matrix(c(1,2,0,1,0,0,2,1,1,1,2,1), ncol=3, byrow=FALSE))
assign("CenterStandardize_Mean", c(1.00,0.75,1.25))
assign("CenterStandardize_SD", c(0.81... |
f <- function(x) exp(x)
P4 <- function(x) 1 + x + x^2/2 + x^3/6 + x^4/24
Tt4 <- function(x) x^4 - x^2 + 1/8
P3 <- function(x)P4(x) - 1/24*Tt4(x)
P2 <- function(x)P3(x) - 1/6*(x^3 - 3/4*x)
P1 <- function(x)P2(x) - 13/24*(x^2 - 1/2) ## coeffs of highest term
P0 <- function(x)P1(x) - 9/8*(x) ## coeffs of highest term
pa... | /books/ana/assets/3_approximation/successive_cheb_reduction.R | no_license | seanteachesmath/seanteachesmath.github.io | R | false | false | 832 | r | f <- function(x) exp(x)
P4 <- function(x) 1 + x + x^2/2 + x^3/6 + x^4/24
Tt4 <- function(x) x^4 - x^2 + 1/8
P3 <- function(x)P4(x) - 1/24*Tt4(x)
P2 <- function(x)P3(x) - 1/6*(x^3 - 3/4*x)
P1 <- function(x)P2(x) - 13/24*(x^2 - 1/2) ## coeffs of highest term
P0 <- function(x)P1(x) - 9/8*(x) ## coeffs of highest term
pa... |
calc.phases <- function(dataset, low=0.25, mid=0.50, high=0.75) {
require(dplyr)
dataset %>%
left_join(
dataset %>%
left_join(
dataset %>%
group_by(id) %>%
summarise(max_stringency_index = max(stringency_index)),
by="id"
) %>%
group_by(i... | /Michele/lib/phases.R | no_license | angeella/Statistical_Consulting | R | false | false | 721 | r |
calc.phases <- function(dataset, low=0.25, mid=0.50, high=0.75) {
require(dplyr)
dataset %>%
left_join(
dataset %>%
left_join(
dataset %>%
group_by(id) %>%
summarise(max_stringency_index = max(stringency_index)),
by="id"
) %>%
group_by(i... |
##### Linearlized Fst and env
####Multiple Mantel regression model to select the significnat factors
# envrionmental factors that infulence population structure (Fst)
multRegLinFst_env=function(g,env,ncode,nperm,sig){
read.genepop1 <- function(file, ncode, quiet = TRUE) {
adegenet::.readExt
... | /mutRegLinFst_env.R | no_license | xinghuq/SGDCs | R | false | false | 5,170 | r | ##### Linearlized Fst and env
####Multiple Mantel regression model to select the significnat factors
# envrionmental factors that infulence population structure (Fst)
multRegLinFst_env=function(g,env,ncode,nperm,sig){
read.genepop1 <- function(file, ncode, quiet = TRUE) {
adegenet::.readExt
... |
#folder names
fln <- c("netradZip","precipZip","relhumZip","shfZip","tempbioZip","tempsoilZip")
flnO <-c("net_rad","precip","rel_hum","shf","soil_temp","temp_bio","temp_soil")
#get file names
zipF <- list()
uzName <- list()
for(i in 1:length(fln)){
zipF[[i]] <- list.files(paste0("c:\\Users\\hkropp\\Google Drive\\ES... | /data_organize.r | no_license | kroppheather/neon_class | R | false | false | 713 | r |
#folder names
fln <- c("netradZip","precipZip","relhumZip","shfZip","tempbioZip","tempsoilZip")
flnO <-c("net_rad","precip","rel_hum","shf","soil_temp","temp_bio","temp_soil")
#get file names
zipF <- list()
uzName <- list()
for(i in 1:length(fln)){
zipF[[i]] <- list.files(paste0("c:\\Users\\hkropp\\Google Drive\\ES... |
# Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i... | /R/ApiResponseFilingNotesSearch.r | no_license | wangrenfeng0/r-sdk | R | false | false | 3,146 | r | # Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i... |
closeAllConnections()
rm(list=ls())
# library(Geodesy)
#
# setwd("C:/Users/Garrett/Desktop/Shiny/Date_Utility")
# source("jd2mjd.R")
# source("mjd2jd.R")
# source("jd2yr2.R")
# source("yr2jd.R")
# source("jd2doy.R")
# source("doy2jd.R")
# source("jd2dow.R")
# source("gps2jd.R")
# source("jd2cal.R")
# source("cal2jd... | /main.R | no_license | garrettseepersad/dateUtility | R | false | false | 1,102 | r | closeAllConnections()
rm(list=ls())
# library(Geodesy)
#
# setwd("C:/Users/Garrett/Desktop/Shiny/Date_Utility")
# source("jd2mjd.R")
# source("mjd2jd.R")
# source("jd2yr2.R")
# source("yr2jd.R")
# source("jd2doy.R")
# source("doy2jd.R")
# source("jd2dow.R")
# source("gps2jd.R")
# source("jd2cal.R")
# source("cal2jd... |
#' @title pcaCharts
#'
#' @description Visualizes the screeplot showing the optimal number of principal components
#'
#' @docType package
#'
#' @author Quang-Huy Nguyen
#'
#' @usage function(x,y)
#'
#' @param x %explained variance and cumulative %explained variance of real data.
#'
#' @param y average %explained varian... | /R/optimizeCOM.R | permissive | huynguyen250896/oCEM | R | false | false | 7,028 | r | #' @title pcaCharts
#'
#' @description Visualizes the screeplot showing the optimal number of principal components
#'
#' @docType package
#'
#' @author Quang-Huy Nguyen
#'
#' @usage function(x,y)
#'
#' @param x %explained variance and cumulative %explained variance of real data.
#'
#' @param y average %explained varian... |
# Stratification and Variance Explained
# Anscombe's Quarted/Stratification
# To help us understand when it is that correlation is meaningful as a summary
# statistic, we'll try to predict the son's height using the father's height.
# This will help motivate and define linear regression.
# We start by demonstr... | /HarvardX_PH125.7_LinearRegression/5.stratificationAndVarianceExplained.R | no_license | JayChart/HarvardX_DataScienceProfessional | R | false | false | 16,866 | r | # Stratification and Variance Explained
# Anscombe's Quarted/Stratification
# To help us understand when it is that correlation is meaningful as a summary
# statistic, we'll try to predict the son's height using the father's height.
# This will help motivate and define linear regression.
# We start by demonstr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nmHistogram.R
\name{nmHistogram}
\alias{nmHistogram}
\title{NONMEM data histogram}
\usage{
nmHistogram(obj, vars, bVars = NULL, iVar = "ID", refLine = "none",
type = "percent", addDensity = FALSE, titles = "", xLabs,
extraSubset, ... | /man/nmHistogram.Rd | no_license | akshilpatel/RNMGraphics | R | false | true | 3,315 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nmHistogram.R
\name{nmHistogram}
\alias{nmHistogram}
\title{NONMEM data histogram}
\usage{
nmHistogram(obj, vars, bVars = NULL, iVar = "ID", refLine = "none",
type = "percent", addDensity = FALSE, titles = "", xLabs,
extraSubset, ... |
/censoEscolar.R | no_license | earml/inep | R | false | false | 3,338 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flatxml.r
\docType{package}
\name{flatxml}
\alias{flatxml}
\title{flatXML: Tools for Working with XML Files as R Dataframes}
\description{
\code{flatxml} provides functions to easily deal with XML files. When parsing an XML document wi... | /man/flatxml.Rd | no_license | jsugarelli/flatxml | R | false | true | 4,459 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flatxml.r
\docType{package}
\name{flatxml}
\alias{flatxml}
\title{flatXML: Tools for Working with XML Files as R Dataframes}
\description{
\code{flatxml} provides functions to easily deal with XML files. When parsing an XML document wi... |
#' Modify a plotly object inside a shiny app
#'
#' @param outputId single-element character vector indicating the output ID
#' map to modify (if invoked from a Shiny module, the namespace will be added
#' automatically)
#' @param session the Shiny session object to which the map belongs; usually the
#' default va... | /output/sources/authors/2774/plotly/proxy.R | no_license | Irbis3/crantasticScrapper | R | false | false | 3,475 | r | #' Modify a plotly object inside a shiny app
#'
#' @param outputId single-element character vector indicating the output ID
#' map to modify (if invoked from a Shiny module, the namespace will be added
#' automatically)
#' @param session the Shiny session object to which the map belongs; usually the
#' default va... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{load_mallet_model_directory}
\alias{load_mallet_model_directory}
\title{Load a model with conventional filenames from a directory}
\usage{
load_mallet_model_directory(f, load_topic_words = FALSE,
load_sampling_state = FALSE, m... | /man/load_mallet_model_directory.Rd | permissive | guoqiding/dfrtopics | R | false | true | 961 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{load_mallet_model_directory}
\alias{load_mallet_model_directory}
\title{Load a model with conventional filenames from a directory}
\usage{
load_mallet_model_directory(f, load_topic_words = FALSE,
load_sampling_state = FALSE, m... |
# --------------------------------------------------------------------------------
# Programmer: Jason Thorpe
# Date Tuesday, March 05, 2013 8:31:54 AM
# Language: R (.r) Version 2.15.0
# Purpose: makes the serial value plots as in Mc
# Comments: Plot arguments are applied to individual points when
# ---... | /R/series-plot.r | no_license | jdthorpe/Rmisc | R | false | false | 9,943 | r | # --------------------------------------------------------------------------------
# Programmer: Jason Thorpe
# Date Tuesday, March 05, 2013 8:31:54 AM
# Language: R (.r) Version 2.15.0
# Purpose: makes the serial value plots as in Mc
# Comments: Plot arguments are applied to individual points when
# ---... |
numbers2words <- function(x){
## Function by John Fox found here:
## http://tolstoy.newcastle.edu.au/R/help/05/04/2715.html
## Tweaks by AJH to add commas and "and"
helper <- function(x){
digits <- rev(strsplit(as.character(x), "")[[1]])
... | /R/numbers2words.R | no_license | meerapatelmd/cartographR | R | false | false | 2,416 | r | numbers2words <- function(x){
## Function by John Fox found here:
## http://tolstoy.newcastle.edu.au/R/help/05/04/2715.html
## Tweaks by AJH to add commas and "and"
helper <- function(x){
digits <- rev(strsplit(as.character(x), "")[[1]])
... |
context("crossv_ts")
test_that("crossv_ts.data.frame works as expected", {
dat <- tibble(1:4)
expect_crossv_df(crossv_ts(dat), train = list(1L, 1:2, 1:3),
test = list(2L, 3L, 4L))
expect_crossv_df(crossv_ts(dat, horizon = 2L),
train = list(1L, 1:2), test = list(3L, 4L))
ex... | /tests/testthat/test-crossv_ts.R | no_license | jrnold/resamplr | R | false | false | 1,385 | r | context("crossv_ts")
test_that("crossv_ts.data.frame works as expected", {
dat <- tibble(1:4)
expect_crossv_df(crossv_ts(dat), train = list(1L, 1:2, 1:3),
test = list(2L, 3L, 4L))
expect_crossv_df(crossv_ts(dat, horizon = 2L),
train = list(1L, 1:2), test = list(3L, 4L))
ex... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{prepareData}
\alias{prepareData}
\title{prepareData}
\usage{
prepareData(.raw_data, .spec, .school, .counterfactual_mod)
}
\arguments{
\item{.raw_data}{.raw_data}
\item{.spec}{.spec}
\item{.school}{.school}
\item{.counterfactual_mod}{.counterfactual_mod}
}
\... | /SESHK2011/man/prepareData.Rd | no_license | ctszkin/SESHK2011 | R | false | false | 432 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{prepareData}
\alias{prepareData}
\title{prepareData}
\usage{
prepareData(.raw_data, .spec, .school, .counterfactual_mod)
}
\arguments{
\item{.raw_data}{.raw_data}
\item{.spec}{.spec}
\item{.school}{.school}
\item{.counterfactual_mod}{.counterfactual_mod}
}
\... |
****************************************
VPA-2BOX
SUMMARY STATISTICS AND DIAGNOSTIC OUTPUT
****************************************
BFT East 1968-2015 Continuity Run
17:20, 7 February 2018
===... | /inputs/vpa/ebft/sims/2014/MINUS0.R | no_license | laurieKell/xval | R | false | false | 51,450 | r | ****************************************
VPA-2BOX
SUMMARY STATISTICS AND DIAGNOSTIC OUTPUT
****************************************
BFT East 1968-2015 Continuity Run
17:20, 7 February 2018
===... |
powerConsumptionBaseFile <- "./data/household_power_consumption.txt"
data <- read.table(powerConsumptionBaseFile, header=TRUE, sep=";", dec=".", stringsAsFactors=FALSE)
powerConsumptionData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
globalActivePower <- as.numeric(powerConsumptionData$Global_active_power)
png("... | /plot1.R | no_license | firozmk/ExData_Plotting1 | R | false | false | 467 | r | powerConsumptionBaseFile <- "./data/household_power_consumption.txt"
data <- read.table(powerConsumptionBaseFile, header=TRUE, sep=";", dec=".", stringsAsFactors=FALSE)
powerConsumptionData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
globalActivePower <- as.numeric(powerConsumptionData$Global_active_power)
png("... |
setwd("C:/Users/usuario/Dropbox/Procesamiento de imagenes/KerEst/")
library(MASS)
library("stats4")
library("compiler")
library("cubature")
library("Conake")
library("caTools")
require(ggplot2)
### CARGO RUTINAS
source("Code/Rutinas/imagematrix.R")
source("Code/Rutinas/myread.ENVI.R")
source("Code/Rutinas/estima nu... | /Code/PaperTesis/BootTresMuestrasImagenESARUnPar_dlr_munich_GAred.R | no_license | jcass1961/KernelEstimationGit | R | false | false | 5,073 | r | setwd("C:/Users/usuario/Dropbox/Procesamiento de imagenes/KerEst/")
library(MASS)
library("stats4")
library("compiler")
library("cubature")
library("Conake")
library("caTools")
require(ggplot2)
### CARGO RUTINAS
source("Code/Rutinas/imagematrix.R")
source("Code/Rutinas/myread.ENVI.R")
source("Code/Rutinas/estima nu... |
library("ggplot2")
library(evd)
library(fitdistrplus)
suffix <- c("1")
for ( i in suffix ) {
data <- read.csv(paste0("data",i,".csv"))
# ggplot(data,aes(x=as.numeric(row.names(data)),y=participation)) +geom_point()+scale_y_log10()
this.fit <- fgev(data$participation)
# print(paste0("Fit ",i, " GEV "... | /data/plot-fit.R | no_license | jcromerohdz/evoDrawing | R | false | false | 678 | r | library("ggplot2")
library(evd)
library(fitdistrplus)
suffix <- c("1")
for ( i in suffix ) {
data <- read.csv(paste0("data",i,".csv"))
# ggplot(data,aes(x=as.numeric(row.names(data)),y=participation)) +geom_point()+scale_y_log10()
this.fit <- fgev(data$participation)
# print(paste0("Fit ",i, " GEV "... |
`%||%` <- function(x, y) if (is.null(x)) y else x
pkg_file <- function(...) {
system.file(..., package = "sprinkles", mustWork = TRUE)
}
glue_chr <- function(..., .envir = parent.frame(), collapse = "\n") {
paste(as.character(glue::glue(..., .envir = .envir)), collapse = collapse)
}
pkg_lock_deps <- function(dep... | /R/00-utils.R | permissive | gadenbuie/sprinkles | R | false | false | 677 | r | `%||%` <- function(x, y) if (is.null(x)) y else x
pkg_file <- function(...) {
system.file(..., package = "sprinkles", mustWork = TRUE)
}
glue_chr <- function(..., .envir = parent.frame(), collapse = "\n") {
paste(as.character(glue::glue(..., .envir = .envir)), collapse = collapse)
}
pkg_lock_deps <- function(dep... |
ZoneFun <- function(center=c(0,0), inner_radius=1,outer_radius=2, npoints=100, start=0, end=2)
{
tt_fwd <- seq(start*pi, end*pi, length.out=npoints)
tt_rev <- seq(end*pi,start*pi,length.out=npoints)
zone_fwd <- data.frame(x = center[1] + inner_radius * cos(tt_fwd),
y = center[2] + inner_radius * sin... | /geom_func.R | no_license | ngreen-gt/frcfieldgeom | R | false | false | 1,595 | r | ZoneFun <- function(center=c(0,0), inner_radius=1,outer_radius=2, npoints=100, start=0, end=2)
{
tt_fwd <- seq(start*pi, end*pi, length.out=npoints)
tt_rev <- seq(end*pi,start*pi,length.out=npoints)
zone_fwd <- data.frame(x = center[1] + inner_radius * cos(tt_fwd),
y = center[2] + inner_radius * sin... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/clip.R
\name{clip}
\alias{clip}
\title{Clip (limit) the values in a vector}
\usage{
clip(x, low, high)
}
\arguments{
\item{x}{A numeric vector}
\item{low}{The minimum value allowed}
\item{high}{The maximum value allowed}
}
\value{
A... | /man/clip.Rd | no_license | briandconnelly/bdcR | R | false | false | 608 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/clip.R
\name{clip}
\alias{clip}
\title{Clip (limit) the values in a vector}
\usage{
clip(x, low, high)
}
\arguments{
\item{x}{A numeric vector}
\item{low}{The minimum value allowed}
\item{high}{The maximum value allowed}
}
\value{
A... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qPCR.R
\docType{data}
\name{qPCR}
\alias{qPCR}
\title{qPCR Curve Analysis Methods}
\format{A data frame with 4 observations on the following 11 variables.
\describe{
\item{Cy0}{a numeric vector}
\item{LinRegPCR}{a numeric vector}
\i... | /man/qPCR.Rd | no_license | pociuteagne/PMCMRplus | R | false | true | 1,579 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qPCR.R
\docType{data}
\name{qPCR}
\alias{qPCR}
\title{qPCR Curve Analysis Methods}
\format{A data frame with 4 observations on the following 11 variables.
\describe{
\item{Cy0}{a numeric vector}
\item{LinRegPCR}{a numeric vector}
\i... |
library(dplyr)
library(magrittr)
library(ggplot2)
load("~/Documents/Egnyte/Private/nlangholz/mountain-bike-data-scraper/data/final-ews-data/ews-races-complete.Rdata")
series_list %<>% filter(mens_winner != 'cancelled')
mens_race_wins <- series_list %>% group_by(mens_winner) %>% summarise(race_wins = n()) %>% arrange... | /R/historical-summary.R | no_license | natelangholz/mountain-bike-data-scraper | R | false | false | 1,897 | r | library(dplyr)
library(magrittr)
library(ggplot2)
load("~/Documents/Egnyte/Private/nlangholz/mountain-bike-data-scraper/data/final-ews-data/ews-races-complete.Rdata")
series_list %<>% filter(mens_winner != 'cancelled')
mens_race_wins <- series_list %>% group_by(mens_winner) %>% summarise(race_wins = n()) %>% arrange... |
/9장 지도.R | no_license | joy3968/R_project | R | false | false | 2,732 | r | ||
library(mazeGen)
### Name: gridTenLeft
### Title: Grid Ten Left
### Aliases: gridTenLeft
### Keywords: datasets
### ** Examples
## Not run:
##D
##D # Returns a Grid with rank = 10
##D data(gridTenLeft)
##D coordinates <- gridTenLeft
##D
## End(Not run)
| /data/genthat_extracted_code/mazeGen/examples/gridTenLeft.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 264 | r | library(mazeGen)
### Name: gridTenLeft
### Title: Grid Ten Left
### Aliases: gridTenLeft
### Keywords: datasets
### ** Examples
## Not run:
##D
##D # Returns a Grid with rank = 10
##D data(gridTenLeft)
##D coordinates <- gridTenLeft
##D
## End(Not run)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lmer_multimember.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{fixef}
\alias{ranef}
\title{Objects exported from other packages}
\keyword{internal}
\description{
These objects are imported from other packages. Follow the links
... | /man/reexports.Rd | permissive | jvparidon/lmerMultiMember | R | false | true | 438 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lmer_multimember.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{fixef}
\alias{ranef}
\title{Objects exported from other packages}
\keyword{internal}
\description{
These objects are imported from other packages. Follow the links
... |
library(testthat)
context("modelSelection")
library(penaltyLearning)
data(oneSkip)
test_that("no error for odd model/loss values", {
loss.df <- data.frame(
complexity=0:10,
loss=c(10:6, 0, 5:1))
selection.df <- modelSelection(loss.df)
expect_equal(selection.df$complexity, c(5, 0))
})
test_that("output i... | /tests/testthat/test-modelSelection.R | no_license | tdhock/penaltyLearning | R | false | false | 7,242 | r | library(testthat)
context("modelSelection")
library(penaltyLearning)
data(oneSkip)
test_that("no error for odd model/loss values", {
loss.df <- data.frame(
complexity=0:10,
loss=c(10:6, 0, 5:1))
selection.df <- modelSelection(loss.df)
expect_equal(selection.df$complexity, c(5, 0))
})
test_that("output i... |
library(dplyr)
library(lubridate)
hpc <- tbl_df(read.csv2(file="household_power_consumption.txt"))
hpc[hpc=="?"]<-NA
hpc$Date <- as.Date(hpc$Date, format = "%d / %m / %Y")
hpc_subset <- subset(hpc, Date == "2007-02-01" | Date == "2007-02-02")
hpc_subset <- mutate(hpc_subset,DateTime=paste(hpc_subset$Date, hpc_subset$T... | /plot2.r | no_license | andrewlochion/ProgrammingAssignment4A | R | false | false | 1,346 | r | library(dplyr)
library(lubridate)
hpc <- tbl_df(read.csv2(file="household_power_consumption.txt"))
hpc[hpc=="?"]<-NA
hpc$Date <- as.Date(hpc$Date, format = "%d / %m / %Y")
hpc_subset <- subset(hpc, Date == "2007-02-01" | Date == "2007-02-02")
hpc_subset <- mutate(hpc_subset,DateTime=paste(hpc_subset$Date, hpc_subset$T... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/backup_operations.R
\name{backup_list_recovery_points_by_backup_vault}
\alias{backup_list_recovery_points_by_backup_vault}
\title{Returns detailed information about the recovery points stored in a
backup vault}
\usage{
backup_list_recovery_po... | /cran/paws.storage/man/backup_list_recovery_points_by_backup_vault.Rd | permissive | johnnytommy/paws | R | false | true | 2,078 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/backup_operations.R
\name{backup_list_recovery_points_by_backup_vault}
\alias{backup_list_recovery_points_by_backup_vault}
\title{Returns detailed information about the recovery points stored in a
backup vault}
\usage{
backup_list_recovery_po... |
#' @title Transform the vectorized version of Omega into the list version
#'
#' @param vecOmega vector, the vectorized version of Omega
#' @param dim integer, the dimension of the system
#' @param regs integer, the number of regimes
#'
#' @return the list Omegas by regime
vec_Omega_2_list_Omega <- function(vecOmega, d... | /R/vec_Omega_2_list_Omega.R | no_license | EmilNejst/rscivem | R | false | false | 463 | r | #' @title Transform the vectorized version of Omega into the list version
#'
#' @param vecOmega vector, the vectorized version of Omega
#' @param dim integer, the dimension of the system
#' @param regs integer, the number of regimes
#'
#' @return the list Omegas by regime
vec_Omega_2_list_Omega <- function(vecOmega, d... |
#' Taxonomy class
#'
#' Stores a taxonomy composed of [taxon()] objects organized in a tree
#' structure. This differs from the [hierarchies()] class in how the [taxon()]
#' objects are stored. Unlike [hierarchies()], each taxon is only stored once
#' and the relationships between taxa are stored in an [edge
#' list](h... | /R/old_taxa--taxonomy--class.R | permissive | grunwaldlab/metacoder | R | false | false | 55,837 | r | #' Taxonomy class
#'
#' Stores a taxonomy composed of [taxon()] objects organized in a tree
#' structure. This differs from the [hierarchies()] class in how the [taxon()]
#' objects are stored. Unlike [hierarchies()], each taxon is only stored once
#' and the relationships between taxa are stored in an [edge
#' list](h... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation.R
\name{SIM.FUN.TVC}
\alias{SIM.FUN.TVC}
\title{Generate simulation data to test time-dependent Cox model with adaptive lasso}
\usage{
SIM.FUN.TVC(p.ti = 50, p.tv = 50, n.subject = 1e+06, cor = 0.2,
beta0.ti = NULL, beta0.tv = NU... | /man/SIM.FUN.TVC.Rd | no_license | wujing121/dcalasso-1 | R | false | true | 1,436 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation.R
\name{SIM.FUN.TVC}
\alias{SIM.FUN.TVC}
\title{Generate simulation data to test time-dependent Cox model with adaptive lasso}
\usage{
SIM.FUN.TVC(p.ti = 50, p.tv = 50, n.subject = 1e+06, cor = 0.2,
beta0.ti = NULL, beta0.tv = NU... |
\name{sigma}
\alias{sigma}
\docType{data}
\title{
%% ~~ data name/kind ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
}
\usage{data("sigma")}
\format{
The format is:
List of 3
$ :'data.frame': 4 obs. of 4 variables:
..$ MAT.Sepal.Length: num [1:4] 0.775 0.013 1.338 0.563
..... | /man/sigma.Rd | no_license | SaraTouzani/EM | R | false | false | 1,392 | rd | \name{sigma}
\alias{sigma}
\docType{data}
\title{
%% ~~ data name/kind ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
}
\usage{data("sigma")}
\format{
The format is:
List of 3
$ :'data.frame': 4 obs. of 4 variables:
..$ MAT.Sepal.Length: num [1:4] 0.775 0.013 1.338 0.563
..... |
install.packages("ggplot2")
library("ggplot2")
library(RColorBrewer)
ProvincesPanel = c("EC"="#8DD3C7","FS"= "#FFFFB3","NC"="#D9D9D9","WC"="#FDB462","GP"="#Fb8072","KZN"="#80B1D3","NW"="#FCCDE5","MP"="#BEBADA","LP"="#B3De69")
provinces<-data.frame(province=c("EC","FS","WC","GP","NC","KZN","MP","NW","LP"), value=c... | /scripts/excessdeaths.R | permissive | kamegh/SARSCoV2_South_Africa_501Y_V2_B_1_351 | R | false | false | 2,260 | r | install.packages("ggplot2")
library("ggplot2")
library(RColorBrewer)
ProvincesPanel = c("EC"="#8DD3C7","FS"= "#FFFFB3","NC"="#D9D9D9","WC"="#FDB462","GP"="#Fb8072","KZN"="#80B1D3","NW"="#FCCDE5","MP"="#BEBADA","LP"="#B3De69")
provinces<-data.frame(province=c("EC","FS","WC","GP","NC","KZN","MP","NW","LP"), value=c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/docdb_operations.R
\name{docdb_modify_db_cluster_parameter_group}
\alias{docdb_modify_db_cluster_parameter_group}
\title{Modifies the parameters of a cluster parameter group}
\usage{
docdb_modify_db_cluster_parameter_group(DBClusterParameterG... | /cran/paws.database/man/docdb_modify_db_cluster_parameter_group.Rd | permissive | TWarczak/paws | R | false | true | 2,150 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/docdb_operations.R
\name{docdb_modify_db_cluster_parameter_group}
\alias{docdb_modify_db_cluster_parameter_group}
\title{Modifies the parameters of a cluster parameter group}
\usage{
docdb_modify_db_cluster_parameter_group(DBClusterParameterG... |
#' View highlighted terms in name results from GBIF.
#'
#' @export
#'
#' @param input Input output from occ_search
#' @param output Output folder path. If not given uses temporary folder.
#' @param browse (logical) Browse output (default: TRUE)
#'
#' @examples \dontrun{
#' gbif_names(name_lookup(query='snake', hl=TRUE)... | /R/gbif_names.R | permissive | poldham/rgbif | R | false | false | 3,099 | r | #' View highlighted terms in name results from GBIF.
#'
#' @export
#'
#' @param input Input output from occ_search
#' @param output Output folder path. If not given uses temporary folder.
#' @param browse (logical) Browse output (default: TRUE)
#'
#' @examples \dontrun{
#' gbif_names(name_lookup(query='snake', hl=TRUE)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/movav.R
\name{movav}
\alias{movav}
\title{Moving average}
\usage{
movav(X, w)
}
\arguments{
\item{X}{a numeric matrix or vector to process (optionally a data frame that can
be coerced to a numerical matrix).}
\item{w}{filter length.}
}
\valu... | /man/movav.Rd | no_license | minghao2016/prospectr | R | false | true | 1,226 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/movav.R
\name{movav}
\alias{movav}
\title{Moving average}
\usage{
movav(X, w)
}
\arguments{
\item{X}{a numeric matrix or vector to process (optionally a data frame that can
be coerced to a numerical matrix).}
\item{w}{filter length.}
}
\valu... |
#' Generate Alleloscope object for analysis
#'
#' @param alt_all A SNP by cell read count matrix/ spare matrix for the alternative alleles.
#' @param ref_all A SNP by cell read count matrix/ spare matrix for the reference alleles.
#' @param vcf_all A matrix/ data.frame of the vcf format for SNP information. (The length... | /R/Createobj.R | no_license | BIT-VS-IT/Alleloscope | R | false | false | 2,846 | r | #' Generate Alleloscope object for analysis
#'
#' @param alt_all A SNP by cell read count matrix/ spare matrix for the alternative alleles.
#' @param ref_all A SNP by cell read count matrix/ spare matrix for the reference alleles.
#' @param vcf_all A matrix/ data.frame of the vcf format for SNP information. (The length... |
library(ape)
testtree <- read.tree("3288_20.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3288_20_unrooted.txt") | /codeml_files/newick_trees_processed/3288_20/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("3288_20.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3288_20_unrooted.txt") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/source.R
\name{run_script}
\alias{run_script}
\title{Sources a script}
\usage{
run_script(path, ref = ref_get_or_fail("GITHUB_HEAD_REF"))
}
\arguments{
\item{path}{The script to run. It must fulfill the requirements of a
\link{touchstone_scri... | /man/run_script.Rd | permissive | krlmlr/touchstone | R | false | true | 2,790 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/source.R
\name{run_script}
\alias{run_script}
\title{Sources a script}
\usage{
run_script(path, ref = ref_get_or_fail("GITHUB_HEAD_REF"))
}
\arguments{
\item{path}{The script to run. It must fulfill the requirements of a
\link{touchstone_scri... |
ouSim.hansenSummary <- function(object, tree, treeNum = 1, rootState = NULL, ...) {
## runs ouSim.ouchtree for a hansenBatch or hansenSummary object, using the model-averaged sqrt.alpha, sigma.squared, and theta vector from one tree
analysis <- object
# if(class(analysis) == "hansenBatch") analysis <- summary(an... | /R/ouSim.hansenBatch.R | no_license | andrew-hipp/maticce | R | false | false | 2,196 | r | ouSim.hansenSummary <- function(object, tree, treeNum = 1, rootState = NULL, ...) {
## runs ouSim.ouchtree for a hansenBatch or hansenSummary object, using the model-averaged sqrt.alpha, sigma.squared, and theta vector from one tree
analysis <- object
# if(class(analysis) == "hansenBatch") analysis <- summary(an... |
startTime <- Sys.time()
SSHFS <- F
setDir <- ifelse(SSHFS, "/media/electron", "")
args <- commandArgs(trailingOnly = TRUE)
stopifnot(length(args) == 1)
settingF <- args[1]
stopifnot(file.exists(settingF))
pipScriptDir <- paste0(setDir, "/mnt/ed4/marie/scripts/TAD_DE_pipeline")
script0_name <- "0_prepGeneData"
scrip... | /NOT_USED_SCRIPTS/12b_plotSmilePlot_FCdown.R | no_license | marzuf/TAD_DE_pipeline_v2 | R | false | false | 13,215 | r | startTime <- Sys.time()
SSHFS <- F
setDir <- ifelse(SSHFS, "/media/electron", "")
args <- commandArgs(trailingOnly = TRUE)
stopifnot(length(args) == 1)
settingF <- args[1]
stopifnot(file.exists(settingF))
pipScriptDir <- paste0(setDir, "/mnt/ed4/marie/scripts/TAD_DE_pipeline")
script0_name <- "0_prepGeneData"
scrip... |
library(tidyverse)
library(raster)
library(sf)
library(ggpubr)
source("../analysis_scripts/file_paths.R")
source("../analysis_scripts/func.R")
source("../analysis_scripts/parameters.R")
source("./theme_func.R")
## -----------------------------------------------------------------------------
## FUNCTIONS:
## ----------... | /figure_scripts/fig_4_5.R | permissive | fdavenport/DBD2021 | R | false | false | 16,533 | r | library(tidyverse)
library(raster)
library(sf)
library(ggpubr)
source("../analysis_scripts/file_paths.R")
source("../analysis_scripts/func.R")
source("../analysis_scripts/parameters.R")
source("./theme_func.R")
## -----------------------------------------------------------------------------
## FUNCTIONS:
## ----------... |
# compute the det via cholesky decomposition
computeLogDet <- function(X){
eigen_value <- eigen(X, symmetric=TRUE, only.values=TRUE)$values
return(sum(log(eigen_value)))
}
# compute the log probability for every point
getLogProbPer <- function(x, m, z, init, piProb) {
B <- init[[1]]
B0 <- init[[3]... | /program/k-Lognormal-Dirichlet-Multinomial-lfbgs-proximal-QUIC-lambda-testZ-final.R | no_license | yyq410/mldm-time | R | false | false | 18,249 | r | # compute the det via cholesky decomposition
computeLogDet <- function(X){
eigen_value <- eigen(X, symmetric=TRUE, only.values=TRUE)$values
return(sum(log(eigen_value)))
}
# compute the log probability for every point
getLogProbPer <- function(x, m, z, init, piProb) {
B <- init[[1]]
B0 <- init[[3]... |
library(shiny)
library(shinyBS)
library(shinydashboard)
library(stm)
library(tidygraph)
library(ggraph)
library(stringr)
library(ggplot2)
library(ggrepel)
library(tibble)
library(dplyr)
library(readr)
ui <- dashboardPage(
header = dashboardHeader(title = 'stminsights'),
#### sidebar ####
sidebar = dashboard... | /inst/app/app.R | no_license | kashenfelter/stminsights | R | false | false | 43,479 | r | library(shiny)
library(shinyBS)
library(shinydashboard)
library(stm)
library(tidygraph)
library(ggraph)
library(stringr)
library(ggplot2)
library(ggrepel)
library(tibble)
library(dplyr)
library(readr)
ui <- dashboardPage(
header = dashboardHeader(title = 'stminsights'),
#### sidebar ####
sidebar = dashboard... |
# mail.R
# Pas d'argent 0.91
#
# This is a personal project to manage my home economy using Google Spreadsheets and R scripts.
#
# Mailing protocol to send information about the current account balance via mail.
# Modules.
source ("packages.R", encoding = "UTF-8")
source ("properties.R", encoding = "UTF-8")... | /mail.R | no_license | pcesarperez/pas-d-argent | R | false | false | 2,508 | r | # mail.R
# Pas d'argent 0.91
#
# This is a personal project to manage my home economy using Google Spreadsheets and R scripts.
#
# Mailing protocol to send information about the current account balance via mail.
# Modules.
source ("packages.R", encoding = "UTF-8")
source ("properties.R", encoding = "UTF-8")... |
library(Seurat)
library(dplyr)
library(plyr)
library(ggplot2)
library(data.table)
library(DoubletFinder)
library(parallel)
library(stringr)
library(ggsci)
#--------DoubletFinder---------------
sample_name.data <- Read10X(data.dir = "/filtered_feature_bc_matrix/")
sample_name <- CreateSeuratObject(cou... | /2-Doubletfinder_demo.R | no_license | Leowangsysu/Guo_lab | R | false | false | 3,201 | r | library(Seurat)
library(dplyr)
library(plyr)
library(ggplot2)
library(data.table)
library(DoubletFinder)
library(parallel)
library(stringr)
library(ggsci)
#--------DoubletFinder---------------
sample_name.data <- Read10X(data.dir = "/filtered_feature_bc_matrix/")
sample_name <- CreateSeuratObject(cou... |
## Script for Plot1
## in the working directory
> table1 <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
## subset data for the selested dates 2007-02-02 and 2007-02-02
> table_dates <- subset(table1,table1$Date %in% c("1/2/2007","2/2/2007"))
## code for plot1
> table_dates_active_power <-... | /plot1.R | no_license | Reynel6891/ExData_Plotting1 | R | false | false | 670 | r | ## Script for Plot1
## in the working directory
> table1 <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
## subset data for the selested dates 2007-02-02 and 2007-02-02
> table_dates <- subset(table1,table1$Date %in% c("1/2/2007","2/2/2007"))
## code for plot1
> table_dates_active_power <-... |
import_file <- "household_power_consumption.txt"
import_data <- read.table(import_file, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
needed_data <- import_data[import_data$Date %in% c("1/2/2007","2/2/2007") ,]
datetime <- strptime(paste(needed_data$Date, needed_data$Time, sep=" "), "%d/%m/%Y %H:%M:%S")... | /plot3.r | no_license | Amariz/ExData_Plotting1 | R | false | false | 853 | r | import_file <- "household_power_consumption.txt"
import_data <- read.table(import_file, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
needed_data <- import_data[import_data$Date %in% c("1/2/2007","2/2/2007") ,]
datetime <- strptime(paste(needed_data$Date, needed_data$Time, sep=" "), "%d/%m/%Y %H:%M:%S")... |
#
# 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/
#
source("shinyRCode.R")
library(shiny)
# Define UI for application that draws a histogram
... | /Output/capstoneApp/ui.R | no_license | ErhardMenker/dataScienceSpecCapstone | R | false | false | 822 | 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/
#
source("shinyRCode.R")
library(shiny)
# Define UI for application that draws a histogram
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.licensemanager_operations.R
\name{list_usage_for_license_configuration}
\alias{list_usage_for_license_configuration}
\title{Lists all license usage records for a license configuration, displaying license consumption details by resource a... | /service/paws.licensemanager/man/list_usage_for_license_configuration.Rd | permissive | CR-Mercado/paws | R | false | true | 1,392 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.licensemanager_operations.R
\name{list_usage_for_license_configuration}
\alias{list_usage_for_license_configuration}
\title{Lists all license usage records for a license configuration, displaying license consumption details by resource a... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
lv <- NULL
set <- function(y) {
x <<- y
lv <<- NULL
}
get <- function() x
set... | /cachematrix.R | no_license | amitabhchanda/ProgrammingAssignment2 | R | false | false | 876 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
lv <- NULL
set <- function(y) {
x <<- y
lv <<- NULL
}
get <- function() x
set... |
numPerPatch209500 <- c(2549,2451)
| /NatureEE-data-archive/Run203121/JAFSdata/JAFSnumPerPatch209500.R | no_license | flaxmans/NatureEE2017 | R | false | false | 34 | r | numPerPatch209500 <- c(2549,2451)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/splineFunctions.R
\name{cumulativeBspline.construct}
\alias{cumulativeBspline.construct}
\title{cumulativeBspline.construct function}
\usage{
cumulativeBspline.construct(x, basis)
}
\arguments{
\item{x}{a vector, the data}
\item{basis}{an ob... | /man/cumulativeBspline.construct.Rd | no_license | cran/spatsurv | R | false | true | 607 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/splineFunctions.R
\name{cumulativeBspline.construct}
\alias{cumulativeBspline.construct}
\title{cumulativeBspline.construct function}
\usage{
cumulativeBspline.construct(x, basis)
}
\arguments{
\item{x}{a vector, the data}
\item{basis}{an ob... |
\name{auteur}
\alias{auteur}
\alias{rjmcmc}
\docType{package}
\title{main: Bayesian Inference of Trait Evolutionary Process}
\description{
\pkg{auteur} (\bold{A}ccommodating \bold{U}ncertainty in \bold{T}rait \bold{E}volution \bold{U}sing \bold{R}) performs reversible-jump Markov chain Monte Carlo sampling to iden... | /in.progress/auteur/man/auteur-package.Rd | no_license | eastman/auteur | R | false | false | 659 | rd | \name{auteur}
\alias{auteur}
\alias{rjmcmc}
\docType{package}
\title{main: Bayesian Inference of Trait Evolutionary Process}
\description{
\pkg{auteur} (\bold{A}ccommodating \bold{U}ncertainty in \bold{T}rait \bold{E}volution \bold{U}sing \bold{R}) performs reversible-jump Markov chain Monte Carlo sampling to iden... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/patches-devtools.R
\name{get_remote_package_description}
\alias{get_remote_package_description}
\title{Fetch DESCRIPTION File from Remote}
\usage{
get_remote_package_description(remote, url, path, user = remote$auth_token,
password = NULL, ... | /man/get_remote_package_description.Rd | no_license | renozao/repotools | R | false | true | 708 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/patches-devtools.R
\name{get_remote_package_description}
\alias{get_remote_package_description}
\title{Fetch DESCRIPTION File from Remote}
\usage{
get_remote_package_description(remote, url, path, user = remote$auth_token,
password = NULL, ... |
# Calculo de OR del grafico principal agrupado en Genotipos
#N_sp_incluster_x (x) = Proporcion de "Sp_incluster" en relacion a "N_incluster"
#extranjeros_totaldecasos_x (y) = Proporcion de "No_sp" en relacion a "N"
library(tidyverse)
Genotipos_Españoles_N <- Genotipos_3_grupos_N %>%
filter(Genotipo %in% c(5,9,7,8,15... | /Frecuencias/Graficos/OR_Grafico_principal.R | no_license | TBmex/baps_1177_linnage4 | R | false | false | 1,757 | r | # Calculo de OR del grafico principal agrupado en Genotipos
#N_sp_incluster_x (x) = Proporcion de "Sp_incluster" en relacion a "N_incluster"
#extranjeros_totaldecasos_x (y) = Proporcion de "No_sp" en relacion a "N"
library(tidyverse)
Genotipos_Españoles_N <- Genotipos_3_grupos_N %>%
filter(Genotipo %in% c(5,9,7,8,15... |
## Desc
# Refactored version run file
## Setup
#rm(list = ls())
options(mc.cores = 6)
n_chains <- 6
n_cores <- 6
n_sampling <- 500
n_warmup <- 500
n_refresh <- n_sampling*0.1
## Libraries
{
library(tidyverse, quietly = TRUE)
library(rstan, quietly = TRUE)
library(stringr, quietly = TRUE)
library(lubridate, qu... | /scripts/model/final_2012.R | permissive | lnt28/us-potus-model | R | false | false | 35,439 | r | ## Desc
# Refactored version run file
## Setup
#rm(list = ls())
options(mc.cores = 6)
n_chains <- 6
n_cores <- 6
n_sampling <- 500
n_warmup <- 500
n_refresh <- n_sampling*0.1
## Libraries
{
library(tidyverse, quietly = TRUE)
library(rstan, quietly = TRUE)
library(stringr, quietly = TRUE)
library(lubridate, qu... |
getBenchmark <- function(){
#if the "UsingR" has not been installed on your system, install it.
data("fat", package = "UsingR")
#The dataset is described here: https://rdrr.io/cran/UsingR/man/fat.html.
#str(fat) #Uncomment/Run this command to check the structure of the dataset
#Fit a linear model. De... | /featureselect.R | no_license | julianhatwell/modopt | R | false | false | 2,203 | r | getBenchmark <- function(){
#if the "UsingR" has not been installed on your system, install it.
data("fat", package = "UsingR")
#The dataset is described here: https://rdrr.io/cran/UsingR/man/fat.html.
#str(fat) #Uncomment/Run this command to check the structure of the dataset
#Fit a linear model. De... |
# Ustawienie wielkosci marginesow dla wykresu
windows(5,5)
par(mar=c(4,4,1.5,0.2))
#Wykres rozrzutu przedstawiajacy zaleznosc kalorycznosci piwa od zawartosci alkoholu
plot(piwo$alkohol,piwo$kalorie,main="Wykres zaleznosci kalorycznosci piwa od zawartosci alkoholu",
col ="blue",pch=21,cex=1.5,xlab="Alkohol",... | /Zadanie8 - Regresja liniowa/regres_prosta_kod_w_R.R.txt | no_license | SebastianKrzosek/EksploracjaDanych | R | false | false | 4,779 | txt | # Ustawienie wielkosci marginesow dla wykresu
windows(5,5)
par(mar=c(4,4,1.5,0.2))
#Wykres rozrzutu przedstawiajacy zaleznosc kalorycznosci piwa od zawartosci alkoholu
plot(piwo$alkohol,piwo$kalorie,main="Wykres zaleznosci kalorycznosci piwa od zawartosci alkoholu",
col ="blue",pch=21,cex=1.5,xlab="Alkohol",... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Convert_LL_to_UTM_Fn.R
\name{Convert_LL_to_UTM_Fn}
\alias{Convert_LL_to_UTM_Fn}
\title{Convert from Lat-Long to UTM}
\usage{
Convert_LL_to_UTM_Fn(Lon, Lat, zone = NA, flip_around_dateline = FALSE)
}
\arguments{
\item{Lon}{vector of longitudes... | /man/Convert_LL_to_UTM_Fn.Rd | no_license | iantaylor-NOAA/geostatistical_delta-GLMM | R | false | true | 904 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Convert_LL_to_UTM_Fn.R
\name{Convert_LL_to_UTM_Fn}
\alias{Convert_LL_to_UTM_Fn}
\title{Convert from Lat-Long to UTM}
\usage{
Convert_LL_to_UTM_Fn(Lon, Lat, zone = NA, flip_around_dateline = FALSE)
}
\arguments{
\item{Lon}{vector of longitudes... |
library(LPM)
### Name: lpm
### Title: Linear Parametric Model
### Aliases: lpm
### ** Examples
##--- lpm(series.runoff,1,1,0,30,30,fractional=T,trasfo=T)
##-- Apply a FARMA(1,d,1) model to series.runoff after e preventive
## logarithmical trasformation and deseasonalization with smoothing 30.
| /data/genthat_extracted_code/LPM/examples/lpm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 311 | r | library(LPM)
### Name: lpm
### Title: Linear Parametric Model
### Aliases: lpm
### ** Examples
##--- lpm(series.runoff,1,1,0,30,30,fractional=T,trasfo=T)
##-- Apply a FARMA(1,d,1) model to series.runoff after e preventive
## logarithmical trasformation and deseasonalization with smoothing 30.
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/render_pmap.R
\name{render_pmap}
\alias{render_pmap}
\title{Render the process map}
\usage{
render_pmap(p, title = NULL)
}
\arguments{
\item{p}{the process map object created by \code{create_pmap_graph()} function}
\item{title}{The title of ... | /man/render_pmap.Rd | permissive | twang2218/pmap | R | false | true | 572 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/render_pmap.R
\name{render_pmap}
\alias{render_pmap}
\title{Render the process map}
\usage{
render_pmap(p, title = NULL)
}
\arguments{
\item{p}{the process map object created by \code{create_pmap_graph()} function}
\item{title}{The title of ... |
##' convert the knots matrix into the knots list
##'
##' @export
knots_mat2list <- function(knots.mat, splineArgs)
{
out <- list()
comp <- splineArgs$comp
knots.remain <- knots.mat
if("thinplate.s" %in% comp)
{
ks <- splineArgs$thinplate.s.dim[1]
m <- splineArgs$thinplate.s.dim[... | /R/knots_mat2list.R | no_license | kl-lab/fformpp | R | false | false | 1,019 | r | ##' convert the knots matrix into the knots list
##'
##' @export
knots_mat2list <- function(knots.mat, splineArgs)
{
out <- list()
comp <- splineArgs$comp
knots.remain <- knots.mat
if("thinplate.s" %in% comp)
{
ks <- splineArgs$thinplate.s.dim[1]
m <- splineArgs$thinplate.s.dim[... |
#Returns a matrix that has position of a nucleus for each frame
#nuc.num = the nucleus that you want to track from your start frame to your end frame
#range = the +/- that you want to track to find all the matches from frame 1 to frame 25 for that nucleus
#start.frame = frame you want to start with for all the comparis... | /nucleus.matrix.R | no_license | gbensen95/Independent-Study-Semester-1 | R | false | false | 2,891 | r | #Returns a matrix that has position of a nucleus for each frame
#nuc.num = the nucleus that you want to track from your start frame to your end frame
#range = the +/- that you want to track to find all the matches from frame 1 to frame 25 for that nucleus
#start.frame = frame you want to start with for all the comparis... |
library(igraph)
library(tidyverse)
library(ggraph)
library(plyr)
library(tidyr)
getEdgeListToy <- function(){
E <- matrix(c(0, 1, 0, 0, 0, 0,
0, 0, 1, 1, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 1,
0, 0, 1, 0, 0, 0,
0, 0,... | /DNA_Walker_Circuits/RCode/refineningRMSDDistance.R | no_license | yasodaj/AlternativeStructures | R | false | false | 3,204 | r | library(igraph)
library(tidyverse)
library(ggraph)
library(plyr)
library(tidyr)
getEdgeListToy <- function(){
E <- matrix(c(0, 1, 0, 0, 0, 0,
0, 0, 1, 1, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 1,
0, 0, 1, 0, 0, 0,
0, 0,... |
# Exercise 2: More ggplot2 Grammar
# Install and load `ggplot2`
# install.packages("ggplot2") # if needed
library(ggplot2)
# For this exercise you will again be working with the `diamonds` data set.
# Use `?diamonds` to review details about this data set
## Statistical Transformations
# Draw a bar chart of the diam... | /exercise-2/exercise.R | permissive | ksamu/module13-ggplot2 | R | false | false | 3,828 | r | # Exercise 2: More ggplot2 Grammar
# Install and load `ggplot2`
# install.packages("ggplot2") # if needed
library(ggplot2)
# For this exercise you will again be working with the `diamonds` data set.
# Use `?diamonds` to review details about this data set
## Statistical Transformations
# Draw a bar chart of the diam... |
\name{crosspoint}
\alias{crosspoint}
\title{Produce The Cross Time Point When Two Survival Curves Crossed Each Other}
\description{
A function used to produce the cross time points in two survival curves.
}
\usage{
crosspoint(time,status,group)
}
\arguments{
\item{time}{The follow up time for right censored d... | /man/crosspoint.Rd | no_license | cran/ComparisonSurv | R | false | false | 1,313 | rd | \name{crosspoint}
\alias{crosspoint}
\title{Produce The Cross Time Point When Two Survival Curves Crossed Each Other}
\description{
A function used to produce the cross time points in two survival curves.
}
\usage{
crosspoint(time,status,group)
}
\arguments{
\item{time}{The follow up time for right censored d... |
library(dplyr)
library(lme4)
# Import and filter data --------------------------------------------------
Data <- read.table("/cloud/project/Error_Disruption_2018.txt", header=TRUE, sep="\t")
Data <- filter(Data, Char_ID != 48 & Char_ID != 74) # Remove trials with 庸 and 崖 (unfamiliar to 50% of Hearing participants... | /Hearing_GD.R | permissive | pthierfelder/error_study_2018 | R | false | false | 1,595 | r | library(dplyr)
library(lme4)
# Import and filter data --------------------------------------------------
Data <- read.table("/cloud/project/Error_Disruption_2018.txt", header=TRUE, sep="\t")
Data <- filter(Data, Char_ID != 48 & Char_ID != 74) # Remove trials with 庸 and 崖 (unfamiliar to 50% of Hearing participants... |
get_address <- function(test){
}
| /R/get_address.R | permissive | mrchypark/cranmail | R | false | false | 34 | r | get_address <- function(test){
}
|
data = read.csv(file.choose(), header=T)
data = read.table(file.choose(), header=T, sep=',')
data = read.delim(file.choose(), header=T)
data = read.delim(file.choose(), header=T, sep='\t')
dim(data)
length(data)
head(data)
tail(data)
data[c(1,2,3),]
data[5:9,]
data[-(5:9),] // except
data[Gender=="male", ]
data[... | /data.R | no_license | lmontigny/R_programming | R | false | false | 685 | r | data = read.csv(file.choose(), header=T)
data = read.table(file.choose(), header=T, sep=',')
data = read.delim(file.choose(), header=T)
data = read.delim(file.choose(), header=T, sep='\t')
dim(data)
length(data)
head(data)
tail(data)
data[c(1,2,3),]
data[5:9,]
data[-(5:9),] // except
data[Gender=="male", ]
data[... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp524}
\alias{spp524}
\title{species function}
\usage{
spp524(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... | /man/spp524.Rd | permissive | Djeppschmidt/Model.Microbiome | R | false | true | 456 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp524}
\alias{spp524}
\title{species function}
\usage{
spp524(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... |
ausPath = system.file("extdata", "australia.csv", package="h2o")
australia.hex = h2o.importFile(path = ausPath)
australia.pca <- h2o.prcomp(training_frame = australia.hex, transform = "STANDARDIZE",k = 3)
australia.pca
| /h2o-docs/src/booklets/v2_2015/source/R_Vignette_code_examples/r_pca.R | permissive | h2oai/h2o-3 | R | false | false | 220 | r | ausPath = system.file("extdata", "australia.csv", package="h2o")
australia.hex = h2o.importFile(path = ausPath)
australia.pca <- h2o.prcomp(training_frame = australia.hex, transform = "STANDARDIZE",k = 3)
australia.pca
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trainer.R
\name{sag_fit}
\alias{sag_fit}
\title{Stochastic Average Gradient}
\usage{
sag_fit(X, y, lambda = 0, maxiter = NULL, w = NULL, alpha = NULL,
stepSizeType = 1, Li = NULL, Lmax = NULL, increasing = TRUE,
d = NULL, g = NULL, covere... | /man/sag_fit.Rd | no_license | IshmaelBelghazi/bigoptim | R | false | true | 1,849 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trainer.R
\name{sag_fit}
\alias{sag_fit}
\title{Stochastic Average Gradient}
\usage{
sag_fit(X, y, lambda = 0, maxiter = NULL, w = NULL, alpha = NULL,
stepSizeType = 1, Li = NULL, Lmax = NULL, increasing = TRUE,
d = NULL, g = NULL, covere... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{main_schema}
\alias{main_schema}
\title{main_schema}
\format{An object of class \code{list} of length 2.}
\usage{
main_schema
}
\value{
Returns a list which defines the schema for the Disagg tool
}
\description{
N... | /man/main_schema.Rd | permissive | tomzemp/data-pack-importer | R | false | true | 385 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{main_schema}
\alias{main_schema}
\title{main_schema}
\format{An object of class \code{list} of length 2.}
\usage{
main_schema
}
\value{
Returns a list which defines the schema for the Disagg tool
}
\description{
N... |
setwd("C:/Users/patri/Desktop/project1")
dat <- read.table("Household_power_consumption.txt",sep = ";",header = T,na.strings = "")
##subset data
dat <- dat[dat$Date %in% c("1/2/2007","2/2/2007"),]
time <- strptime((paste(dat$Date,dat$Time, sep = " ")),"%d/%m/%Y %H:%M:%S")
dat["setTime"]
dat$setTime <- time
... | /plot2.R | no_license | ptran021/ExData_Plotting1 | R | false | false | 447 | r | setwd("C:/Users/patri/Desktop/project1")
dat <- read.table("Household_power_consumption.txt",sep = ";",header = T,na.strings = "")
##subset data
dat <- dat[dat$Date %in% c("1/2/2007","2/2/2007"),]
time <- strptime((paste(dat$Date,dat$Time, sep = " ")),"%d/%m/%Y %H:%M:%S")
dat["setTime"]
dat$setTime <- time
... |
#' Space headway \code{h2} at time \code{t2}, the time the following vehicle driver sees the lead vehicle has decelerated.
#'
#' @format \code{h2} is the headway \code{hsafe(u2)} where \code{u2} is the lead vehicle speed at \code{t} = \code{t2}.
#' \describe{
#' \item{h2}{headway between lead and following vehicles, me... | /R/h2.R | permissive | PJOssenbruggen/Basic | R | false | false | 347 | r | #' Space headway \code{h2} at time \code{t2}, the time the following vehicle driver sees the lead vehicle has decelerated.
#'
#' @format \code{h2} is the headway \code{hsafe(u2)} where \code{u2} is the lead vehicle speed at \code{t} = \code{t2}.
#' \describe{
#' \item{h2}{headway between lead and following vehicles, me... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.bootSemNeT.R
\name{plot.bootSemNeT}
\alias{plot.bootSemNeT}
\title{Plot for \link[SemNeT]{bootSemNeT}}
\usage{
\method{plot}{bootSemNeT}(..., groups = NULL, measures = c("ASPL", "CC", "Q"))
}
\arguments{
\item{...}{Object(s) fro... | /man/plot.bootSemNeT.Rd | no_license | cran/SemNeT | R | false | true | 987 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.bootSemNeT.R
\name{plot.bootSemNeT}
\alias{plot.bootSemNeT}
\title{Plot for \link[SemNeT]{bootSemNeT}}
\usage{
\method{plot}{bootSemNeT}(..., groups = NULL, measures = c("ASPL", "CC", "Q"))
}
\arguments{
\item{...}{Object(s) fro... |
\name{VecRot}
\alias{VecRot}
\alias{VecShift}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Vector Rotation (Shift Elements)
%% ~~function to do ... ~~
}
\description{Shift the elements of a vector in circular mode to the right or to the left by \code{k} elements, such that the kth eleme... | /man/VecRot.Rd | no_license | arigalgos/DescTools | R | false | false | 1,624 | rd | \name{VecRot}
\alias{VecRot}
\alias{VecShift}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Vector Rotation (Shift Elements)
%% ~~function to do ... ~~
}
\description{Shift the elements of a vector in circular mode to the right or to the left by \code{k} elements, such that the kth eleme... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NewtonTriseccion.R
\name{newtonMejorado}
\alias{newtonMejorado}
\title{Busca una raiz con el metodo de newton mejorado}
\usage{
newtonMejorado(f, xi, tol, prec)
}
\arguments{
\item{f}{ecuacion no lineal}
\item{xi}{x inicial}
\i... | /Proyecto/raizENL/man/newtonMejorado.Rd | no_license | SebastianTrianaP/Analisis-Numerico-1826-Juan-Sebastian-Triana-Perez | R | false | true | 631 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NewtonTriseccion.R
\name{newtonMejorado}
\alias{newtonMejorado}
\title{Busca una raiz con el metodo de newton mejorado}
\usage{
newtonMejorado(f, xi, tol, prec)
}
\arguments{
\item{f}{ecuacion no lineal}
\item{xi}{x inicial}
\i... |
require(RODBC)
| /ODBC.R | no_license | fabian-gampfer/r-tutorial4 | R | false | false | 15 | r | require(RODBC)
|
#installing packages
install.packages("maps")
install.packages("mapdata")
installed.packages("dplr")
install.packages("sf")
install.packages("tmap")
install.packages("tmaptools")
install.packages("leaflet")
install.packages("raster")
install.packages("spData")
library(sf)
library(raster)
library(dplyr)
library(spData)
... | /Rpackage - evsc countries.R | no_license | sp5wd/projects | R | false | false | 31,183 | r | #installing packages
install.packages("maps")
install.packages("mapdata")
installed.packages("dplr")
install.packages("sf")
install.packages("tmap")
install.packages("tmaptools")
install.packages("leaflet")
install.packages("raster")
install.packages("spData")
library(sf)
library(raster)
library(dplyr)
library(spData)
... |
space_age <- function(seconds, planet) {
}
| /exercises/practice/space-age/space-age.R | permissive | exercism/r | R | false | false | 44 | r | space_age <- function(seconds, planet) {
}
|
\alias{gdkGetDisplay}
\name{gdkGetDisplay}
\title{gdkGetDisplay}
\description{Gets the name of the display, which usually comes from the \env{DISPLAY}
environment variable or the \option{--display} command line option.}
\usage{gdkGetDisplay()}
\value{[character] the name of the display.}
\author{Derived by RGtkGen from... | /RGtk2/man/gdkGetDisplay.Rd | no_license | lawremi/RGtk2 | R | false | false | 360 | rd | \alias{gdkGetDisplay}
\name{gdkGetDisplay}
\title{gdkGetDisplay}
\description{Gets the name of the display, which usually comes from the \env{DISPLAY}
environment variable or the \option{--display} command line option.}
\usage{gdkGetDisplay()}
\value{[character] the name of the display.}
\author{Derived by RGtkGen from... |
############################################################################################
# Title: Code for calculating the upper and lower bounds for Michael's behavioral data
# Author: Karthik G
# Date: 1/21/2020
#
#
# This script implements a bootstrap based approach for calculating confidence intervals of ... | /Aim3_ROI_Beh/R Code for Bootstrapping ROI-by-Beh.R | no_license | demidenm/MIDContrasts | R | false | false | 4,242 | r | ############################################################################################
# Title: Code for calculating the upper and lower bounds for Michael's behavioral data
# Author: Karthik G
# Date: 1/21/2020
#
#
# This script implements a bootstrap based approach for calculating confidence intervals of ... |
#!/usr/bin/env Rscript
## figure_individ_and_mean_fitted_models_by_group.R
## aggregates the data by group and cue type and plots model fits
library(dplyr)
library(ggplot2)
## When loading/saving, this script assumes the working directory is set to the
## root directory of the repo. Relative to this script's locatio... | /Analysis/Figures/2_figure_individ_and_mean_fitted_models_by_group.R | no_license | hercules261188/speech_contrasts_public | R | false | false | 7,242 | r | #!/usr/bin/env Rscript
## figure_individ_and_mean_fitted_models_by_group.R
## aggregates the data by group and cue type and plots model fits
library(dplyr)
library(ggplot2)
## When loading/saving, this script assumes the working directory is set to the
## root directory of the repo. Relative to this script's locatio... |
#! /usr/bin/env Rscript
library(tidyverse)
################################################################################
# Load sample data
################################################################################
#--- Cell type data (cancer vs. normal, tissue, etc.) is provided in table
# named metadata... | /analysis/01-load_sampledata.R | no_license | mlbendall/TelescopeEncode | R | false | false | 2,687 | r | #! /usr/bin/env Rscript
library(tidyverse)
################################################################################
# Load sample data
################################################################################
#--- Cell type data (cancer vs. normal, tissue, etc.) is provided in table
# named metadata... |
library("knitr")
opts_chunk$set(echo = TRUE, results = 'hold')
library("xtable")
library("ggplot2")
unzip("exdata_data_household_power_consumption.zip")
rawdata <- read.csv("household_power_consumption.txt", sep=";", header = TRUE, stringsAsFactors = FALSE, na.strings = "?")
dim(rawdata)
summary(rawdata)
rawdata$Dat... | /plot4.R | no_license | rodfarruguia/ExData_Plotting1 | R | false | false | 2,466 | r | library("knitr")
opts_chunk$set(echo = TRUE, results = 'hold')
library("xtable")
library("ggplot2")
unzip("exdata_data_household_power_consumption.zip")
rawdata <- read.csv("household_power_consumption.txt", sep=";", header = TRUE, stringsAsFactors = FALSE, na.strings = "?")
dim(rawdata)
summary(rawdata)
rawdata$Dat... |
modelInfo <- list(
label = "Cumulative Probability Model for Ordinal Data",
library = "VGAM",
loop = NULL,
type = "Classification",
parameters = data.frame(parameter = c("parallel", "link"),
class = c("logical", "character"),
label = c("Parallel Curves", "Li... | /data/caret_models/vglmCumulative.R | permissive | BTopcuoglu/code_review | R | false | false | 3,378 | r | modelInfo <- list(
label = "Cumulative Probability Model for Ordinal Data",
library = "VGAM",
loop = NULL,
type = "Classification",
parameters = data.frame(parameter = c("parallel", "link"),
class = c("logical", "character"),
label = c("Parallel Curves", "Li... |
vec1 <- 1:10
vec2 <- 11:20
vec3 <- 10:1
print(rbind(vec1, vec2, vec3))
| /04-matrix-table/31-rbind-vector.R | no_license | xmorgan/r-examples | R | false | false | 72 | r | vec1 <- 1:10
vec2 <- 11:20
vec3 <- 10:1
print(rbind(vec1, vec2, vec3))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.