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 |
|---|---|---|---|---|---|---|---|---|---|
library(tidyLPA)
### Name: get_data
### Title: Get data from objects generated by tidyLPA
### Aliases: get_data get_data.tidyLPA get_data.tidyProfile
### ** Examples
## Not run:
##D if(interactive()){
##D results <- iris %>%
##D select(Sepal.Length, Sepal.Width, Petal.Length, Petal.Width) %>%
##D estimate_p... | /data/genthat_extracted_code/tidyLPA/examples/get_data.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 408 | r | library(tidyLPA)
### Name: get_data
### Title: Get data from objects generated by tidyLPA
### Aliases: get_data get_data.tidyLPA get_data.tidyProfile
### ** Examples
## Not run:
##D if(interactive()){
##D results <- iris %>%
##D select(Sepal.Length, Sepal.Width, Petal.Length, Petal.Width) %>%
##D estimate_p... |
# Project: CLIR
# Log messages and error utils
#
# Author: Renaud Gaujoux
# Created: Nov 21, 2013
###############################################################################
#' CLI Logging Features
#'
#' The function \code{cli_*} wrap calls to the corresponding
#' base functions, to allow automatic formating and... | /R/logging.R | no_license | renozao/CLIR | R | false | false | 2,440 | r | # Project: CLIR
# Log messages and error utils
#
# Author: Renaud Gaujoux
# Created: Nov 21, 2013
###############################################################################
#' CLI Logging Features
#'
#' The function \code{cli_*} wrap calls to the corresponding
#' base functions, to allow automatic formating and... |
/Calcul de métriques/Creation_table_metrics_PAs_v1.R | no_license | BGourdon/finalyear_project | R | false | false | 24,277 | r | ||
f <- read.csv("household_power_consumption.txt",header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
f$Date <- as.Date(f$Date, format="%d/%m/%Y")
## Subsetting the data
data <- subset(f, subset=(Date >= "2007-02-01" & Date <= "2007-02-0... | /plot2.R | no_license | mubin016/ExData_Plotting1 | R | false | false | 629 | r | f <- read.csv("household_power_consumption.txt",header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
f$Date <- as.Date(f$Date, format="%d/%m/%Y")
## Subsetting the data
data <- subset(f, subset=(Date >= "2007-02-01" & Date <= "2007-02-0... |
library(echarts4r)
### Name: e_format_axis
### Title: Formatters
### Aliases: e_format_axis e_format_x_axis e_format_y_axis
### ** Examples
# Y = %
df <- data.frame(
x = 1:10,
y = round(
runif(10, 1, 100), 2
)
)
df %>%
e_charts(x) %>%
e_line(y) %>%
e_format_y_axis(suffix = "%") %>%
e_format_x... | /data/genthat_extracted_code/echarts4r/examples/formatters.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 345 | r | library(echarts4r)
### Name: e_format_axis
### Title: Formatters
### Aliases: e_format_axis e_format_x_axis e_format_y_axis
### ** Examples
# Y = %
df <- data.frame(
x = 1:10,
y = round(
runif(10, 1, 100), 2
)
)
df %>%
e_charts(x) %>%
e_line(y) %>%
e_format_y_axis(suffix = "%") %>%
e_format_x... |
rsu.sspfree.rs <- function(N = NA, prior, p.intro, pstar, pfree, se.u) {
# Discounted prior:
adj.prior <- zdisc.prior(prior = prior, p.intro = p.intro)
# Population sensitivity required to achieve a given value for probability of disease freedom:
se.p <- zsep.pfree(prior = adj.prior, pfree = pfree)
n <... | /epiR/R/rsu.sspfree.rs.R | no_license | albrizre/spatstat.revdep | R | false | false | 450 | r | rsu.sspfree.rs <- function(N = NA, prior, p.intro, pstar, pfree, se.u) {
# Discounted prior:
adj.prior <- zdisc.prior(prior = prior, p.intro = p.intro)
# Population sensitivity required to achieve a given value for probability of disease freedom:
se.p <- zsep.pfree(prior = adj.prior, pfree = pfree)
n <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeTables.R
\name{makeComments}
\alias{makeComments}
\title{Make the COMMENTS table}
\usage{
makeComments(df, questions, updateID)
}
\arguments{
\item{df}{Raw survey data as a data frame.}
\item{questions}{The QUESTIONS portion of the datab... | /man/makeComments.Rd | permissive | kaijagahm/ygdpAddSurvey | R | false | true | 582 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeTables.R
\name{makeComments}
\alias{makeComments}
\title{Make the COMMENTS table}
\usage{
makeComments(df, questions, updateID)
}
\arguments{
\item{df}{Raw survey data as a data frame.}
\item{questions}{The QUESTIONS portion of the datab... |
source(file = "global.R")
ui <- bootstrapPage(
tags$style(type = "text/css", "html, body {width:100%; height:100%}
#controls {background-color:white;border-style:double;opacity:0.5;padding:0px 20px;width:25%;font-family:serif;font-style:italic;}
#controls:hover {opacity:1.0;}"... | /old/risk-1505.R | no_license | letsang/risk | R | false | false | 3,078 | r | source(file = "global.R")
ui <- bootstrapPage(
tags$style(type = "text/css", "html, body {width:100%; height:100%}
#controls {background-color:white;border-style:double;opacity:0.5;padding:0px 20px;width:25%;font-family:serif;font-style:italic;}
#controls:hover {opacity:1.0;}"... |
#install.packages("RCurl")
library(RCurl)
decode_short_url <- function(url, ...) {
# LOCAL FUNCTIONS #
decode <- function(u) {
Sys.sleep(0.5)
x <- try( getURL(u, header = TRUE, nobody = TRUE, followlocation = FALSE, cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")))
if(inherits(x, 'try-e... | /labeled_tweet/unshort urls.R | no_license | monchewharry/R_twitter_politics | R | false | false | 918 | r | #install.packages("RCurl")
library(RCurl)
decode_short_url <- function(url, ...) {
# LOCAL FUNCTIONS #
decode <- function(u) {
Sys.sleep(0.5)
x <- try( getURL(u, header = TRUE, nobody = TRUE, followlocation = FALSE, cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")))
if(inherits(x, 'try-e... |
testlist <- list(scale = 0, shape = 1.16372211846069e-315)
result <- do.call(bama:::rand_igamma,testlist)
str(result) | /bama/inst/testfiles/rand_igamma/AFL_rand_igamma/rand_igamma_valgrind_files/1615926438-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 117 | r | testlist <- list(scale = 0, shape = 1.16372211846069e-315)
result <- do.call(bama:::rand_igamma,testlist)
str(result) |
# functions for analysis
extract.vaf <- function(var.table, AD.col='gt_AD') {
var.table <- tidyr::separate(var.table, AD.col, c("AD_N", "AD_T"), sep=",")
var.table[, c("AD_N", "AD_T")] <- lapply(var.table[, c("AD_N", "AD_T")], as.numeric)
var.table$VAF_AD <- 100 * ( var.table$AD_T / (var.table$AD_N + var.table$... | /code/functions.r | no_license | LosicLab/gbm-case-study | R | false | false | 1,692 | r | # functions for analysis
extract.vaf <- function(var.table, AD.col='gt_AD') {
var.table <- tidyr::separate(var.table, AD.col, c("AD_N", "AD_T"), sep=",")
var.table[, c("AD_N", "AD_T")] <- lapply(var.table[, c("AD_N", "AD_T")], as.numeric)
var.table$VAF_AD <- 100 * ( var.table$AD_T / (var.table$AD_N + var.table$... |
#Econ 294
#Assignment 4
#0
print("First Name: Yuan")
print("Last Name: Wu")
print("Student ID: 1307193")
#1
library(foreign)
airports<-read.csv("https://github.com/EconomiCurtis/econ294_2015/raw/master/data/airports.csv", stringsAsFactors = F)
flights<-read.csv("https://github.com/EconomiCurtis/econ294_2015/raw/maste... | /YuanWuAssignment 4.R | no_license | ywu34/YuanWu294Assignment4 | R | false | false | 5,411 | r | #Econ 294
#Assignment 4
#0
print("First Name: Yuan")
print("Last Name: Wu")
print("Student ID: 1307193")
#1
library(foreign)
airports<-read.csv("https://github.com/EconomiCurtis/econ294_2015/raw/master/data/airports.csv", stringsAsFactors = F)
flights<-read.csv("https://github.com/EconomiCurtis/econ294_2015/raw/maste... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tagstack.R
\name{tagstack}
\alias{tagstack}
\title{constructor for tagstack}
\usage{
tagstack(data = list(), directory = character())
}
\arguments{
\item{data}{this should be a list of \code{\link[sattagutils]{sattag-class}}.}
}
\value{
a \co... | /man/tagstack.Rd | no_license | williamcioffi/sattagutils | R | false | true | 431 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tagstack.R
\name{tagstack}
\alias{tagstack}
\title{constructor for tagstack}
\usage{
tagstack(data = list(), directory = character())
}
\arguments{
\item{data}{this should be a list of \code{\link[sattagutils]{sattag-class}}.}
}
\value{
a \co... |
library(shiny)
library(functionplotR)
library(shinythemes)
ui <- fluidPage(
theme = shinytheme("united"),
headerPanel("Explore functions!"),
wellPanel(textInput(
inputId = "text1",
value = "x^2-3", # if changed to blank no function shows up
label ... | /Visualize-Functions/app.R | no_license | peyron/shiny-server-test | R | false | false | 996 | r | library(shiny)
library(functionplotR)
library(shinythemes)
ui <- fluidPage(
theme = shinytheme("united"),
headerPanel("Explore functions!"),
wellPanel(textInput(
inputId = "text1",
value = "x^2-3", # if changed to blank no function shows up
label ... |
BCfit <-
function(y, X, covlist, R, z, mu, updateR, iters, thin = 1, burn = 0, priW = c(nrow(z) + 2 * ncol(z), 2 * ncol(z)), updateMu = TRUE, verbose = 0) {
broken = which(diag(var(y)) == 0)
if (any(diag(var(y)) == 0)) {
stop("No variation in y for species", paste(broken, collapse = ", "),
"; co... | /R/BCfit.R | no_license | goldingn/BayesComm | R | false | false | 2,653 | r | BCfit <-
function(y, X, covlist, R, z, mu, updateR, iters, thin = 1, burn = 0, priW = c(nrow(z) + 2 * ncol(z), 2 * ncol(z)), updateMu = TRUE, verbose = 0) {
broken = which(diag(var(y)) == 0)
if (any(diag(var(y)) == 0)) {
stop("No variation in y for species", paste(broken, collapse = ", "),
"; co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/random_forest.R
\name{random_forest_train}
\alias{random_forest_train}
\title{Train a DAPM Random Forest Model}
\usage{
random_forest_train(df, transform.funcs = list(), impute.vals = list(),
params = list(num_trees = 500))
}
\arguments{
\i... | /Production/Model/APM/man/random_forest_train.Rd | permissive | ElderResearch/DAPM | R | false | true | 1,580 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/random_forest.R
\name{random_forest_train}
\alias{random_forest_train}
\title{Train a DAPM Random Forest Model}
\usage{
random_forest_train(df, transform.funcs = list(), impute.vals = list(),
params = list(num_trees = 500))
}
\arguments{
\i... |
if (! 'd' %in% ls()){
source('load_data.R')
d<-load_data()
}
png(filename='plot1.png')
hist(d[,'Global_active_power'],
xlab='Global Active Power (kilowatts)',
ylab='Frequency',
main='Global Active Power',
col='red')
dev.off() | /plot1.R | no_license | plexluthor81/ExData_Plotting1 | R | false | false | 250 | r | if (! 'd' %in% ls()){
source('load_data.R')
d<-load_data()
}
png(filename='plot1.png')
hist(d[,'Global_active_power'],
xlab='Global Active Power (kilowatts)',
ylab='Frequency',
main='Global Active Power',
col='red')
dev.off() |
dane<- read.csv2("metr.csv")
tau<-seq(0.1,1,0.01)
x <- dane$x
phi <- numeric(length(tau))
for (i in 1:length(phi)){
phi[i] <- sum(cos(2*pi*tau[i]*x))
}
q <- 1/tau[which.max(phi)]
q
| /ZalewskaAndzelika_pd2.R | no_license | zlotopolscylover/TimeSeries | R | false | false | 202 | r | dane<- read.csv2("metr.csv")
tau<-seq(0.1,1,0.01)
x <- dane$x
phi <- numeric(length(tau))
for (i in 1:length(phi)){
phi[i] <- sum(cos(2*pi*tau[i]*x))
}
q <- 1/tau[which.max(phi)]
q
|
#Set sleep data working directory
SleepDIR <- setwd("C:/Users/James/Documents/SMU/MSDS_6306_Doing_Data_Science/HW_Data/Unit3_File_Mgmt/")
#Read CSV file into R
SleepData <- read.csv("sleep_data_01.csv", header=TRUE, sep=",")
#get column Names
colnames(SleepData)
#create vectors
AgeVector <- as.vector(SleepData$Age)... | /Unit3_File_Mgmt/HW_3_Sleep_Code.R | no_license | jvasquezDC/SMU-MSDS6306-HW | R | false | false | 1,598 | r |
#Set sleep data working directory
SleepDIR <- setwd("C:/Users/James/Documents/SMU/MSDS_6306_Doing_Data_Science/HW_Data/Unit3_File_Mgmt/")
#Read CSV file into R
SleepData <- read.csv("sleep_data_01.csv", header=TRUE, sep=",")
#get column Names
colnames(SleepData)
#create vectors
AgeVector <- as.vector(SleepData$Age)... |
generate.siber.data <- function(n.groups = 3, n.communities = 2, n.obs = 30, mu.range = c(-1, 1, -1, 1) ){
# calculate the number of observations (rows) to be created
nn <- n.obs * n.groups * n.communities
# a vector of dummy NA entries to use to populate the dataframe
dummy <- rep(NA, nn)
# the datafr... | /R/generate.siber.data.R | no_license | ChrisHarrod/SIBER | R | false | false | 1,167 | r | generate.siber.data <- function(n.groups = 3, n.communities = 2, n.obs = 30, mu.range = c(-1, 1, -1, 1) ){
# calculate the number of observations (rows) to be created
nn <- n.obs * n.groups * n.communities
# a vector of dummy NA entries to use to populate the dataframe
dummy <- rep(NA, nn)
# the datafr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cpm.R
\name{isBadNum}
\alias{isBadNum}
\title{checks if a log-density evaluation is not a valid number}
\usage{
isBadNum(num)
}
\arguments{
\item{num}{evaluation of a log-density}
}
\value{
TRUE or FALSE
}
\description{
checks if a log-densit... | /man/isBadNum.Rd | permissive | tbrown122387/cpm | R | false | true | 384 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cpm.R
\name{isBadNum}
\alias{isBadNum}
\title{checks if a log-density evaluation is not a valid number}
\usage{
isBadNum(num)
}
\arguments{
\item{num}{evaluation of a log-density}
}
\value{
TRUE or FALSE
}
\description{
checks if a log-densit... |
## Binary reading of a matrix
library(pbdMPI, quiet=TRUE)
library(pbdDMAT, quiet=TRUE)
init.grid()
## set up start and length for reading a matrix of
## doubles split on columns
nrow <- 4
ncol <- 8
size <- 8 # bytes
my_ids <- get.jid(ncol, method="block")
my_start_col <- my_ids[1]
my_ncol <- length(my_ids) # c... | /common/scripts/input/3_readbinary_mat.r | permissive | wrathematics/Rpackagetalk | R | false | false | 1,043 | r | ## Binary reading of a matrix
library(pbdMPI, quiet=TRUE)
library(pbdDMAT, quiet=TRUE)
init.grid()
## set up start and length for reading a matrix of
## doubles split on columns
nrow <- 4
ncol <- 8
size <- 8 # bytes
my_ids <- get.jid(ncol, method="block")
my_start_col <- my_ids[1]
my_ncol <- length(my_ids) # c... |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | /examples/src/main/r/ml/kstest.R | permissive | bloomberg/apache-spark-on-k8s | R | false | false | 1,322 | r | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... |
# install / load required packages ----------------------------------------
# install aWhere R packages
#library(devtools)
#devtools::install_github("aWhereAPI/aWhere-R-Library")
#devtools::install_github("aWhereAPI/aWhere-R-Charts")
# load required packages
library(tidyverse)
library(data.table)
library(ggmap)
libr... | /2-histo_stats_maps.R | no_license | vscholl/hybridRice_package | R | false | false | 18,467 | r | # install / load required packages ----------------------------------------
# install aWhere R packages
#library(devtools)
#devtools::install_github("aWhereAPI/aWhere-R-Library")
#devtools::install_github("aWhereAPI/aWhere-R-Charts")
# load required packages
library(tidyverse)
library(data.table)
library(ggmap)
libr... |
library(quanteda)
library(magrittr)
library(caret)
library(quanteda.textmodels)
library(shinyWidgets)
library(DT)
library(e1071)
library(wordcloud)
library(RColorBrewer)
#library(lexicon)
hash_lemmas<-readRDS('hash_lemmas.rds')
shinyUI(fluidPage(
title = "Text Classification",
titlePanel(title=div(img(src="logo.png... | /ui.R | no_license | sudhir-voleti/text-classification-shinyapp | R | false | false | 8,496 | r | library(quanteda)
library(magrittr)
library(caret)
library(quanteda.textmodels)
library(shinyWidgets)
library(DT)
library(e1071)
library(wordcloud)
library(RColorBrewer)
#library(lexicon)
hash_lemmas<-readRDS('hash_lemmas.rds')
shinyUI(fluidPage(
title = "Text Classification",
titlePanel(title=div(img(src="logo.png... |
#############################################################################
# Copyright (c) 2012 Christophe Dutang
# ... | /GNE/R/solv-SE.R | no_license | ingted/R-Examples | R | false | false | 33,908 | r | #############################################################################
# Copyright (c) 2012 Christophe Dutang
# ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/confint.R
\name{confint,USL-method}
\alias{confint,USL-method}
\title{Confidence Intervals for USL model parameters}
\usage{
\S4method{confint}{USL}(object, parm, level = 0.95)
}
\arguments{
\item{object}{A USL object.}
\item{parm}{A specifi... | /man/confint-USL-method.Rd | no_license | smoeding/usl | R | false | true | 1,205 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/confint.R
\name{confint,USL-method}
\alias{confint,USL-method}
\title{Confidence Intervals for USL model parameters}
\usage{
\S4method{confint}{USL}(object, parm, level = 0.95)
}
\arguments{
\item{object}{A USL object.}
\item{parm}{A specifi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binary.R
\name{compute_binary_response}
\alias{compute_binary_response}
\title{Returns binary response estimates}
\usage{
compute_binary_response(response, weight, sample_size)
}
\arguments{
\item{response}{a vector of binary (0 or 1) respons... | /facebook/delphiFacebook/man/compute_binary_response.Rd | permissive | alexcoda/covidcast-indicators | R | false | true | 830 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binary.R
\name{compute_binary_response}
\alias{compute_binary_response}
\title{Returns binary response estimates}
\usage{
compute_binary_response(response, weight, sample_size)
}
\arguments{
\item{response}{a vector of binary (0 or 1) respons... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
#----------------------------------------------------------------------
# Used to test out customer dataset to make sure h2o model predict and pojo predict generate
# the same answers. However, customer d... | /h2o-r/tests/testdir_javapredict/runit_hexdev_692_NOPASS_dum.R | permissive | yyenigun/h2o-3 | R | false | false | 1,439 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
#----------------------------------------------------------------------
# Used to test out customer dataset to make sure h2o model predict and pojo predict generate
# the same answers. However, customer d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rcmd.R
\name{rcmd}
\alias{rcmd}
\alias{rcmd_safe}
\title{Run an \verb{R CMD} command}
\usage{
rcmd(
cmd,
cmdargs = character(),
libpath = .libPaths(),
repos = default_repos(),
stdout = NULL,
stderr = NULL,
poll_connection = TRUE... | /man/rcmd.Rd | permissive | r-lib/callr | R | false | true | 5,561 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rcmd.R
\name{rcmd}
\alias{rcmd}
\alias{rcmd_safe}
\title{Run an \verb{R CMD} command}
\usage{
rcmd(
cmd,
cmdargs = character(),
libpath = .libPaths(),
repos = default_repos(),
stdout = NULL,
stderr = NULL,
poll_connection = TRUE... |
#' Maximization step using coordinate descent optimization.
#'
#' @param p List of parameters.
#' @param item_data Matrix or data frame of item responses.
#' @param pred_data Matrix or data frame of DIF and/or impact predictors.
#' @param mean_predictors Possibly different matrix of predictors for the mean
#' impact eq... | /R/m_step_cd2.R | permissive | wbelzak/regDIF | R | false | false | 23,586 | r | #' Maximization step using coordinate descent optimization.
#'
#' @param p List of parameters.
#' @param item_data Matrix or data frame of item responses.
#' @param pred_data Matrix or data frame of DIF and/or impact predictors.
#' @param mean_predictors Possibly different matrix of predictors for the mean
#' impact eq... |
library(rsconnect)
rsconnect::deployApp('.')
y
| /HWL7_RShiny/shinyapp_conn.R | no_license | brisenodaniel/Data_Viz | R | false | false | 47 | r | library(rsconnect)
rsconnect::deployApp('.')
y
|
library("ggplot2")
library("gridExtra")
source("stansettings.R")
source("data_MBH.R")
names <- c("FUVcolor","NUVcolor","Logsigma","LogRe","LogLk",
"M","LogMassk")
errnames <- c("errFUVcolor","errNUVcolor","errLogsigma","errLogRe","errLogLk",
"errM","errLogMassk")
#JOINT FIT
par... | /IndividualJointPlots.R | no_license | r-buitrago/Bayesian-Data-Analysis-of-Black-Hole-Masses | R | false | false | 5,950 | r | library("ggplot2")
library("gridExtra")
source("stansettings.R")
source("data_MBH.R")
names <- c("FUVcolor","NUVcolor","Logsigma","LogRe","LogLk",
"M","LogMassk")
errnames <- c("errFUVcolor","errNUVcolor","errLogsigma","errLogRe","errLogLk",
"errM","errLogMassk")
#JOINT FIT
par... |
#' Generate simulated weather record.
#'
#' Generate time series of temperature measurements
#'
#' @param timebase A vector of dates / times in decimal julian day. Either this
#' or \code{years} must be supplied.
#' @param years A scalar, the number of years to model. Either this or
#' \code{timebase} must be suppl... | /analysis/TempcyclesAnalysis.R | no_license | lbuckley/ClimateBiology | R | false | false | 7,448 | r | #' Generate simulated weather record.
#'
#' Generate time series of temperature measurements
#'
#' @param timebase A vector of dates / times in decimal julian day. Either this
#' or \code{years} must be supplied.
#' @param years A scalar, the number of years to model. Either this or
#' \code{timebase} must be suppl... |
library(ape)
testtree <- read.tree("1341_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1341_1_unrooted.txt") | /codeml_files/newick_trees_processed/1341_1/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("1341_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1341_1_unrooted.txt") |
require(XML)
Cfile <- file("commands", "w")
cmd1 <- paste("cp config.xml config.old")
system(cmd1)
##output_file_prefix <- format(Sys.time(), "%Y%m%d%H%M")
output_file_prefix <- "bm1"
output_path = "out"
rep = 0
output_dir = "out"
cell_position_file = "cellPos.txt"
Nstep = 1600
dt = 0.01
eta = 20
two_population_mode... | /preprocess.r | permissive | hydrays/CellModel | R | false | false | 2,855 | r | require(XML)
Cfile <- file("commands", "w")
cmd1 <- paste("cp config.xml config.old")
system(cmd1)
##output_file_prefix <- format(Sys.time(), "%Y%m%d%H%M")
output_file_prefix <- "bm1"
output_path = "out"
rep = 0
output_dir = "out"
cell_position_file = "cellPos.txt"
Nstep = 1600
dt = 0.01
eta = 20
two_population_mode... |
library(datalimited2)
library(reshape2)
library(ggplot2)
source ("jacobian_prior_funcs.r")
stocklist <- c("Cod6a", "Cod7ek",
"CodFaroe", "CodNS",
"Had6b" , "Had7bk" , "HadNS" ,
"Ple7a", "Ple7hk" , "Sol7a",
"Sol7fg" , "Sol7hk" , "Sol2024",
"... | /Jacobian/jacobian_cmsy2_parallel.R | no_license | Hanqingpeng/DataLimited_CMSY_SPiCT | R | false | false | 7,056 | r | library(datalimited2)
library(reshape2)
library(ggplot2)
source ("jacobian_prior_funcs.r")
stocklist <- c("Cod6a", "Cod7ek",
"CodFaroe", "CodNS",
"Had6b" , "Had7bk" , "HadNS" ,
"Ple7a", "Ple7hk" , "Sol7a",
"Sol7fg" , "Sol7hk" , "Sol2024",
"... |
#' Perform Secure-by-default or Woefully Insecure 'DNS' Queries
#'
#' Methods are provided to query 'Domain Name System' ('DNS') stub
#' and recursive resolvers for all 'DNS' resource record types using 'UDP',
#' TCP', and/or 'TLS' transport layers. 'DNS' query support is provided
#' by the 'getdns' (<getdnsapi.net>) C... | /R/clandnstine-package.R | permissive | hrbrmstr/clandnstine | R | false | false | 726 | r | #' Perform Secure-by-default or Woefully Insecure 'DNS' Queries
#'
#' Methods are provided to query 'Domain Name System' ('DNS') stub
#' and recursive resolvers for all 'DNS' resource record types using 'UDP',
#' TCP', and/or 'TLS' transport layers. 'DNS' query support is provided
#' by the 'getdns' (<getdnsapi.net>) C... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% BufferedOutputStream.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{write... | /man/write.BufferedOutputStream.Rd | no_license | HenrikBengtsson/R.io | R | false | false | 922 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% BufferedOutputStream.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{write... |
#title:shot-data
#description:
#input:
#output:
library(ggplot2)
library(jpeg)
library(grid)
library(dplyr)
court_file <- "./images/nba-court.jpg"
court_image <- rasterGrob(
readJPEG(court_file),
width = unit(1, "npc"),
height = unit(1, "npc"))
thompson_shot_chart <- ggplot(data = thompson) +
annotation_c... | /workout01/code/make-shot-chart-script.R | no_license | stat133-sp19/hw-stat133-snowman36 | R | false | false | 2,844 | r | #title:shot-data
#description:
#input:
#output:
library(ggplot2)
library(jpeg)
library(grid)
library(dplyr)
court_file <- "./images/nba-court.jpg"
court_image <- rasterGrob(
readJPEG(court_file),
width = unit(1, "npc"),
height = unit(1, "npc"))
thompson_shot_chart <- ggplot(data = thompson) +
annotation_c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mutation_categories}
\alias{mutation_categories}
\title{trinucleotides mutation categories}
\format{
matrix of 96 trinucleotides mutation categories
}
\usage{
data(mutation_categories)
}
\value{
matrix of 96 trinuc... | /man/mutation_categories.Rd | permissive | danro9685/SparseSignatures | R | false | true | 405 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mutation_categories}
\alias{mutation_categories}
\title{trinucleotides mutation categories}
\format{
matrix of 96 trinucleotides mutation categories
}
\usage{
data(mutation_categories)
}
\value{
matrix of 96 trinuc... |
/Covid_Analysis/covid_analysis.R | no_license | DonG96-Vienna/Data_Analysis | R | false | false | 1,808 | r | ||
#####################################
## Functions for building networks
#####################################
build_network <- function(graph, build_fxn, thin = 10, n = 500, ...){
## Function for building networks
## Each iteration of building increases the graph size by 1
## Parameters
## graph must begi... | /R/build_network_fxns.R | no_license | sjfox/network_evolution | R | false | false | 2,503 | r | #####################################
## Functions for building networks
#####################################
build_network <- function(graph, build_fxn, thin = 10, n = 500, ...){
## Function for building networks
## Each iteration of building increases the graph size by 1
## Parameters
## graph must begi... |
testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... | /IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609874909-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 729 | r | testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... |
FILE_NAME <- "3150 DATASET.xlsx"
open_excel <- function() {
return (read_excel(file.choose(), skip=6))
}
main <- function() {
library("readxl")
people <- open_excel()
#seperate the male and female data
females <- people[which(people["Sex"] == 'F'),]
males <- people[which(people["Sex"]... | /displayDF.R | no_license | zepthro/english3150_dataset | R | false | false | 412 | r |
FILE_NAME <- "3150 DATASET.xlsx"
open_excel <- function() {
return (read_excel(file.choose(), skip=6))
}
main <- function() {
library("readxl")
people <- open_excel()
#seperate the male and female data
females <- people[which(people["Sex"] == 'F'),]
males <- people[which(people["Sex"]... |
## Wine ###PCA##
wine<-read.csv("C://Users//lenovo//Desktop//R studio//Data Science Assignments//PCA//wine.csv")
wine1<-scale(wine[,2:14])
PCA<-princomp(wine1)
summary(PCA)
PCA$scores
plot(PCA$scores,col='red',cex=0.2)
text(PCA$scores,labels = c(1:178),cex = 0.5) | /PCA.R | no_license | banthiyaprince/Data-Science | R | false | false | 270 | r | ## Wine ###PCA##
wine<-read.csv("C://Users//lenovo//Desktop//R studio//Data Science Assignments//PCA//wine.csv")
wine1<-scale(wine[,2:14])
PCA<-princomp(wine1)
summary(PCA)
PCA$scores
plot(PCA$scores,col='red',cex=0.2)
text(PCA$scores,labels = c(1:178),cex = 0.5) |
define_output_3d_viewer <- function(
outputId, title, surfaces = 'pial', multiple_subject = F,
message = 'Generate 3D Viewer ',
height = NULL, width = 12, order = 0, additional_ui = NULL,
hide_btn = FALSE, ...
){
# Generate reactives
output_call = paste0(outputId, '_widget')
output_btn = paste0(outputI... | /inst/tools/output_widgets.R | permissive | beauchamplab/ravebuiltins | R | false | false | 12,983 | r | define_output_3d_viewer <- function(
outputId, title, surfaces = 'pial', multiple_subject = F,
message = 'Generate 3D Viewer ',
height = NULL, width = 12, order = 0, additional_ui = NULL,
hide_btn = FALSE, ...
){
# Generate reactives
output_call = paste0(outputId, '_widget')
output_btn = paste0(outputI... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readgraduates.R
\name{readgraduates}
\alias{readgraduates}
\title{Read Graduates}
\usage{
readgraduates( year )
}
\arguments{
\item{year}{Sets the year of graduates to be scanned}
}
\value{
A list of names of graduates from \code{... | /man/readgraduates.Rd | no_license | chriswu1996/williamsgraduates | R | false | true | 408 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readgraduates.R
\name{readgraduates}
\alias{readgraduates}
\title{Read Graduates}
\usage{
readgraduates( year )
}
\arguments{
\item{year}{Sets the year of graduates to be scanned}
}
\value{
A list of names of graduates from \code{... |
library(DBI)
library(RMySQL)
library(jsonlite)
id = fromJSON("/home/wayne/R/common_code/keys.json")$id
pw = fromJSON("/home/wayne/R/common_code/keys.json")$pw
con <- dbConnect(MySQL(), user=(id), password=(pw),
dbname="buster", host="192.168.1.21") | /common_code/MySQL-buster-con.R | no_license | cetanhota/R-Code | R | false | false | 268 | r | library(DBI)
library(RMySQL)
library(jsonlite)
id = fromJSON("/home/wayne/R/common_code/keys.json")$id
pw = fromJSON("/home/wayne/R/common_code/keys.json")$pw
con <- dbConnect(MySQL(), user=(id), password=(pw),
dbname="buster", host="192.168.1.21") |
## Matrix inversion is usually a costly computation and there may be some benefit to caching
## the inverse of a matrix rather than computing it repeatedly. Specifically, the
## makeCacheMatrix and cacheSolve functions can be used to cache the inverse of any matrix.
## Underlying assumption: the matrix supplied is al... | /cachematrix.R | no_license | jmaeacielo/ProgrammingAssignment2 | R | false | false | 1,630 | r | ## Matrix inversion is usually a costly computation and there may be some benefit to caching
## the inverse of a matrix rather than computing it repeatedly. Specifically, the
## makeCacheMatrix and cacheSolve functions can be used to cache the inverse of any matrix.
## Underlying assumption: the matrix supplied is al... |
\documentclass[a4paper, 11pt]{report}
\usepackage[left=1.5cm,right=1.5cm,top=2cm,bottom=4.5cm,a4paper]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage{kotex}
\usepackage[hangul, nonfrench]{dhucs}
\usepackage{titlesec}
\renewcommand{\arra... | /prepCode.R | no_license | csbiy/AsanMedicalCenter | R | false | false | 13,244 | r |
\documentclass[a4paper, 11pt]{report}
\usepackage[left=1.5cm,right=1.5cm,top=2cm,bottom=4.5cm,a4paper]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage{kotex}
\usepackage[hangul, nonfrench]{dhucs}
\usepackage{titlesec}
\renewcommand{\arra... |
rankall <- function (outcome, num = "best") {
outcomeData <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
outcomes <- table(row.names = c("heart attack", "heart failure", "pneumonia"))
outcomes[1] <- 11; outcomes[2] <- 17; outcomes[3] <- 23
for (i in 1:3) {
outcomeData[, outcomes[i]... | /assign3/rankall.R | no_license | KalyanAkella/computing_data_analysis | R | false | false | 1,385 | r | rankall <- function (outcome, num = "best") {
outcomeData <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
outcomes <- table(row.names = c("heart attack", "heart failure", "pneumonia"))
outcomes[1] <- 11; outcomes[2] <- 17; outcomes[3] <- 23
for (i in 1:3) {
outcomeData[, outcomes[i]... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/abbrev.R
\name{abbrev}
\alias{abbrev}
\title{Create vector of Initials}
\usage{
abbrev(x, exceptions = NULL)
}
\arguments{
\item{x}{vector of strings to be abbreviated.}
\item{exceptions}{list with two names vectors: \code{old}, a v... | /man/abbrev.Rd | no_license | almartin82/MAP-visuals | R | false | false | 1,292 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/abbrev.R
\name{abbrev}
\alias{abbrev}
\title{Create vector of Initials}
\usage{
abbrev(x, exceptions = NULL)
}
\arguments{
\item{x}{vector of strings to be abbreviated.}
\item{exceptions}{list with two names vectors: \code{old}, a v... |
## Coursera EDA, Course Project 2
## Data reading parts are common to all plot*.R files
## BEFORE USING: setwd('/directory/containing/dataset')
## Expecting the files summarySCC_PM25.rds and Source_Classification_Code.rds
# Read main dataset
NEI <- readRDS ("summarySCC_PM25.rds")
# Turn factorable things into factors... | /plot6.R | no_license | daviesbj/airpol | R | false | false | 1,351 | r | ## Coursera EDA, Course Project 2
## Data reading parts are common to all plot*.R files
## BEFORE USING: setwd('/directory/containing/dataset')
## Expecting the files summarySCC_PM25.rds and Source_Classification_Code.rds
# Read main dataset
NEI <- readRDS ("summarySCC_PM25.rds")
# Turn factorable things into factors... |
\name{textile}
\alias{textile}
\docType{data}
\title{
Textile Data
}
\description{
Number of Cycles to Failure of Worsted Yarn
}
\usage{data(textile)}
\format{
A data frame with 27 observations on the following variable.
\describe{
\item{\code{textile}}{a numeric vector for the number of cycles}
... | /man/textile.Rd | no_license | cran/AID | R | false | false | 836 | rd | \name{textile}
\alias{textile}
\docType{data}
\title{
Textile Data
}
\description{
Number of Cycles to Failure of Worsted Yarn
}
\usage{data(textile)}
\format{
A data frame with 27 observations on the following variable.
\describe{
\item{\code{textile}}{a numeric vector for the number of cycles}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality.R
\name{hub_score}
\alias{hub.score}
\alias{hub_score}
\title{Kleinberg's hub centrality scores.}
\usage{
hub_score(graph, scale = TRUE, weights = NULL, options = arpack_defaults)
}
\arguments{
\item{graph}{The input graph.}
\item... | /man/hub_score.Rd | no_license | Ruchika8/Dgraph | R | false | true | 2,052 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality.R
\name{hub_score}
\alias{hub.score}
\alias{hub_score}
\title{Kleinberg's hub centrality scores.}
\usage{
hub_score(graph, scale = TRUE, weights = NULL, options = arpack_defaults)
}
\arguments{
\item{graph}{The input graph.}
\item... |
library(shiny)
library(plotly)
shinyUI(fluidPage(
# Application title
titlePanel("Climbing Stats"),
# Show Routes per Grade
mainPanel(
plotlyOutput("routesPlot"),
plotlyOutput("bouldersPlot"),
plotlyOutput("pitchesMonthYearPlot"),
plotlyOutput("pitchesYearPlot"),
flui... | /old/ui.R | no_license | stefaneng/climbingstats | R | false | false | 387 | r | library(shiny)
library(plotly)
shinyUI(fluidPage(
# Application title
titlePanel("Climbing Stats"),
# Show Routes per Grade
mainPanel(
plotlyOutput("routesPlot"),
plotlyOutput("bouldersPlot"),
plotlyOutput("pitchesMonthYearPlot"),
plotlyOutput("pitchesYearPlot"),
flui... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/separate_drgs.R
\name{separate_drgs}
\alias{separate_drgs}
\title{Convert MSDRGs into a "base DRG" and complication level}
\usage{
separate_drgs(drgs, remove_age = FALSE)
}
\arguments{
\item{drgs}{character vector of MSDRG descriptions, e.g. ... | /man/separate_drgs.Rd | permissive | g3rley/healthcareai-r | R | false | true | 1,174 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/separate_drgs.R
\name{separate_drgs}
\alias{separate_drgs}
\title{Convert MSDRGs into a "base DRG" and complication level}
\usage{
separate_drgs(drgs, remove_age = FALSE)
}
\arguments{
\item{drgs}{character vector of MSDRG descriptions, e.g. ... |
#################
#### Plot 3 ###
#################
# Check if project directory exists, create one in current working directory if not
if(!file.exists("Project 1")){
dir.create("./Project 1")
}
# Store file URL for data set
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_pow... | /plot3.R | no_license | Dmunslow/ExData_Plotting1 | R | false | false | 2,045 | r | #################
#### Plot 3 ###
#################
# Check if project directory exists, create one in current working directory if not
if(!file.exists("Project 1")){
dir.create("./Project 1")
}
# Store file URL for data set
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_pow... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_pvalue.R
\name{calc_pvalue}
\alias{calc_pvalue}
\title{Calculate a p-value from a permutation test}
\usage{
calc_pvalue(observed_lod, maxlods)
}
\arguments{
\item{observed_lod}{the test statistic, on the lod scale}
\item{maxlods}{a vect... | /man/calc_pvalue.Rd | permissive | fboehm/qtl2effects | R | false | true | 642 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_pvalue.R
\name{calc_pvalue}
\alias{calc_pvalue}
\title{Calculate a p-value from a permutation test}
\usage{
calc_pvalue(observed_lod, maxlods)
}
\arguments{
\item{observed_lod}{the test statistic, on the lod scale}
\item{maxlods}{a vect... |
context("aesthetics")
test_that("we stop when data does not contain interactive variables",{
## In interactive testing, foo will be found and copied to
## ggplot_build(gg)$data, but on R CMD check, animint2dir only has
## access to its environment, so it will not have access to foo
## defined in the global env... | /tests/testthat/test-aes.R | no_license | tokareff/animint | R | false | false | 911 | r | context("aesthetics")
test_that("we stop when data does not contain interactive variables",{
## In interactive testing, foo will be found and copied to
## ggplot_build(gg)$data, but on R CMD check, animint2dir only has
## access to its environment, so it will not have access to foo
## defined in the global env... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_bin.R
\name{checkAvailablePackages}
\alias{checkAvailablePackages}
\title{compare available packages in two directories}
\usage{
checkAvailablePackages(src, bin)
}
\arguments{
\item{src}{character path to source directory}
\item{bin}{c... | /man/checkAvailablePackages.Rd | permissive | jiwalker-usgs/grantools | R | false | true | 420 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_bin.R
\name{checkAvailablePackages}
\alias{checkAvailablePackages}
\title{compare available packages in two directories}
\usage{
checkAvailablePackages(src, bin)
}
\arguments{
\item{src}{character path to source directory}
\item{bin}{c... |
\name{cccma}
\alias{cccma}
\title{
Sample CanESM2 and CanRCM4 data
}
\description{
Sample CanESM2 (T63 grid) and CanRCM4 (0.22-deg grid) data
(122.5 deg W, 50 deg N).
\preformatted{pr: precipitation (mm day-1)
tas: average surface temperature (deg. C)
dtr: diurnal temperature range (deg. C)
sfcWind: surface wind speed... | /man/cccma.Rd | no_license | cran/MBC | R | false | false | 1,048 | rd | \name{cccma}
\alias{cccma}
\title{
Sample CanESM2 and CanRCM4 data
}
\description{
Sample CanESM2 (T63 grid) and CanRCM4 (0.22-deg grid) data
(122.5 deg W, 50 deg N).
\preformatted{pr: precipitation (mm day-1)
tas: average surface temperature (deg. C)
dtr: diurnal temperature range (deg. C)
sfcWind: surface wind speed... |
\name{SubLasso}
\alias{SubLasso}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Logistic model via Lasso penalty with a subset features
}
\description{
Fit a logistic model via Lasso penalty. A subset features can be fixed in the model.
}
\usage{
SubLasso(X, y, subset, nfold)
}
%- maybe also 'us... | /man/SubLasso.Rd | no_license | cran/SubLasso | R | false | false | 3,010 | rd | \name{SubLasso}
\alias{SubLasso}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Logistic model via Lasso penalty with a subset features
}
\description{
Fit a logistic model via Lasso penalty. A subset features can be fixed in the model.
}
\usage{
SubLasso(X, y, subset, nfold)
}
%- maybe also 'us... |
######################################
###########test Leucht################
######################################
#load old and new functions
#these are the 7 functions in sequentialnma2
#I load them with source because the old one is named sequentialnma as well
rm(list=ls())
source('C:/Users/nikolakopoulou/Desktop... | /test/testreal.R | no_license | tosku/sequentialnma2 | R | false | false | 7,706 | r | ######################################
###########test Leucht################
######################################
#load old and new functions
#these are the 7 functions in sequentialnma2
#I load them with source because the old one is named sequentialnma as well
rm(list=ls())
source('C:/Users/nikolakopoulou/Desktop... |
extract_ss_from_gr = function(tx){
## tx is granges object with blocks
myblocks = blocks(tx)
nexons = lengths(myblocks)
idx = cumsum(nexons)
allstarts = unlist(start(myblocks))
allends = unlist(end(myblocks))
myseqnames = rep(as.character(seqnames(tx)), nexons-1)
qei = GRanges( myseqn... | /sw/clustering_walking.R | no_license | czhu/FulQuant | R | false | false | 5,024 | r | extract_ss_from_gr = function(tx){
## tx is granges object with blocks
myblocks = blocks(tx)
nexons = lengths(myblocks)
idx = cumsum(nexons)
allstarts = unlist(start(myblocks))
allends = unlist(end(myblocks))
myseqnames = rep(as.character(seqnames(tx)), nexons-1)
qei = GRanges( myseqn... |
# Initialize libraries.
library(caret); library(randomForest)
# Getting the data
# Some of the data fields contain "#DIV/0!" or are blank (""). These fields will be filled with "NA".
train.path <- "https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv"
test.path <- "https://d396qusza40orc.cloudfront.n... | /8.Practical Machine Learning/End Assignment - v1.R | no_license | pieterov/DataScienceSpecialisation | R | false | false | 3,832 | r |
# Initialize libraries.
library(caret); library(randomForest)
# Getting the data
# Some of the data fields contain "#DIV/0!" or are blank (""). These fields will be filled with "NA".
train.path <- "https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv"
test.path <- "https://d396qusza40orc.cloudfront.n... |
install.packages("XLConnect") #installs package to read Excel spreadsheets
install.packages("tidyverse") #installs very powerful visualization package
library(readxl)
library(tidyverse)
age_labor_data <- read_excel("C:/Users/mazhi/Documents/R/cpsaat03.xlsx",
sheet = "ByAge") #puts data in Globa... | /DataExplore_lm.R | no_license | zhijunm/Applied_Regression | R | false | false | 2,206 | r | install.packages("XLConnect") #installs package to read Excel spreadsheets
install.packages("tidyverse") #installs very powerful visualization package
library(readxl)
library(tidyverse)
age_labor_data <- read_excel("C:/Users/mazhi/Documents/R/cpsaat03.xlsx",
sheet = "ByAge") #puts data in Globa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/4-model-selection.R
\name{stages_kmeans}
\alias{stages_kmeans}
\title{Learn a staged tree with k-means clustering}
\usage{
stages_kmeans(
object,
k = length(object$tree[[1]]),
algorithm = "Hartigan-Wong",
transform = sqrt,
ignore = ... | /man/stages_kmeans.Rd | permissive | FedericoCarli/stagedtrees | R | false | true | 1,807 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/4-model-selection.R
\name{stages_kmeans}
\alias{stages_kmeans}
\title{Learn a staged tree with k-means clustering}
\usage{
stages_kmeans(
object,
k = length(object$tree[[1]]),
algorithm = "Hartigan-Wong",
transform = sqrt,
ignore = ... |
rm(list=ls())
pacman::p_load(INSP, ggplot2, data.table, dplyr, INLA, rgeos, rgdal)
latlong <- gCentroid(mx.sp.df, byid=T)
mesh <- latlong %>% inla.mesh.create
spde <- inla.spde2.matern(mesh)
plot(mesh)
points(latlong@coords[,"x"], latlong@coords[,"y"], pch=20, col="red")
sigma0 <- .3 ## Standard deviation
range0 ... | /simulation/sim_spde.R | no_license | wangdafacai/MXU5MR | R | false | false | 1,285 | r | rm(list=ls())
pacman::p_load(INSP, ggplot2, data.table, dplyr, INLA, rgeos, rgdal)
latlong <- gCentroid(mx.sp.df, byid=T)
mesh <- latlong %>% inla.mesh.create
spde <- inla.spde2.matern(mesh)
plot(mesh)
points(latlong@coords[,"x"], latlong@coords[,"y"], pch=20, col="red")
sigma0 <- .3 ## Standard deviation
range0 ... |
# Set working directory
setwd('/Users/maggiesaavedra/GitHub/gplace_inR/')
# Load require packages
library(googleway)
library(data.table)
library(mongolite)
# Set googple places api keys
# key <- c('AIzaSyD6iU9O03sGdnSARGSlrLcLCncmRn3Ejes') # maggie
# key <- c('AIzaSyCaKsmC0yi880Xbxp6-Tc6fd9Df8u2fGaw') # gay marie
key... | /gplace_inR/init.R | no_license | ggsaavedra/google-places-in-R | R | false | false | 1,444 | r | # Set working directory
setwd('/Users/maggiesaavedra/GitHub/gplace_inR/')
# Load require packages
library(googleway)
library(data.table)
library(mongolite)
# Set googple places api keys
# key <- c('AIzaSyD6iU9O03sGdnSARGSlrLcLCncmRn3Ejes') # maggie
# key <- c('AIzaSyCaKsmC0yi880Xbxp6-Tc6fd9Df8u2fGaw') # gay marie
key... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/servicecatalog_operations.R
\name{servicecatalog_list_resources_for_tag_option}
\alias{servicecatalog_list_resources_for_tag_option}
\title{Lists the resources associated with the specified TagOption}
\usage{
servicecatalog_list_resources_for... | /cran/paws.management/man/servicecatalog_list_resources_for_tag_option.Rd | permissive | paws-r/paws | R | false | true | 973 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/servicecatalog_operations.R
\name{servicecatalog_list_resources_for_tag_option}
\alias{servicecatalog_list_resources_for_tag_option}
\title{Lists the resources associated with the specified TagOption}
\usage{
servicecatalog_list_resources_for... |
library(tidyverse)
library(reshape)
install.packages("reshape")
library(ggplot2)
housing = read.csv('C:/Users/andal/OneDrive/Documents/Code/GitHub/github.io/data-science/handson-ml/datasets/housing/housing.csv')
head(housing)
ggplot(data = melt(housing), mapping = aes(x = value)) +
geom_histogram(bins = 30) + facet... | /housingDrill.R | no_license | andalexis/data-science | R | false | false | 3,342 | r | library(tidyverse)
library(reshape)
install.packages("reshape")
library(ggplot2)
housing = read.csv('C:/Users/andal/OneDrive/Documents/Code/GitHub/github.io/data-science/handson-ml/datasets/housing/housing.csv')
head(housing)
ggplot(data = melt(housing), mapping = aes(x = value)) +
geom_histogram(bins = 30) + facet... |
\name{spectra}
\alias{spectra.Speclib}
\alias{spectra}
\alias{spectra<-}
\alias{spectra,Speclib-method}
\alias{spectra<-,Speclib,data.frame-method}
\alias{spectra<-,Speclib,matrix-method}
\alias{spectra<-,Speclib,numeric-method}
\alias{spectra<-,Speclib,RasterBrick-method}
\alias{[,.Spectra,ANY,ANY,ANY-method}
\alias{s... | /man/spectra.Rd | no_license | cran/hsdar | R | false | false | 2,429 | rd | \name{spectra}
\alias{spectra.Speclib}
\alias{spectra}
\alias{spectra<-}
\alias{spectra,Speclib-method}
\alias{spectra<-,Speclib,data.frame-method}
\alias{spectra<-,Speclib,matrix-method}
\alias{spectra<-,Speclib,numeric-method}
\alias{spectra<-,Speclib,RasterBrick-method}
\alias{[,.Spectra,ANY,ANY,ANY-method}
\alias{s... |
#===============================================================================
# Name : estadisticas_ichthyop
# Author : Jorge Flores
# Date :
# Version:
# Aim : make a lm and anova for ouputs of ichthyop simulations
# URL :
#===============================================================================... | /R/special_scripts/estadisticas_ichthyop.R | no_license | jfloresvaliente/ichthyop_analysis | R | false | false | 2,718 | r | #===============================================================================
# Name : estadisticas_ichthyop
# Author : Jorge Flores
# Date :
# Version:
# Aim : make a lm and anova for ouputs of ichthyop simulations
# URL :
#===============================================================================... |
##########################################################
# Reads hourly precipitation from KDVH and computes
# annual max 3h precipitation for GEV analysis
# AVD, MET, Jun-2014
##########################################################
#stations <- c(3030,3810,4781,12290,17870,18020,18320,18701,19490,19510,19710,203... | /Future/R/create_obs_pr3hr_OLD.R | no_license | anitavd/PhD | R | false | false | 5,156 | r | ##########################################################
# Reads hourly precipitation from KDVH and computes
# annual max 3h precipitation for GEV analysis
# AVD, MET, Jun-2014
##########################################################
#stations <- c(3030,3810,4781,12290,17870,18020,18320,18701,19490,19510,19710,203... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/occ_download_list.R
\name{occ_download_list}
\alias{occ_download_list}
\title{Lists the downloads created by a user.}
\usage{
occ_download_list(
user = NULL,
pwd = NULL,
limit = 20,
start = 0,
curlopts = list()
)
}
\ar... | /man/occ_download_list.Rd | no_license | cran/rgbif | R | false | true | 1,840 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/occ_download_list.R
\name{occ_download_list}
\alias{occ_download_list}
\title{Lists the downloads created by a user.}
\usage{
occ_download_list(
user = NULL,
pwd = NULL,
limit = 20,
start = 0,
curlopts = list()
)
}
\ar... |
# white clusters ----------------------------------------------------------
library(ISLR)
library(kernlab)
library(gridExtra)
library(ggdendro)
library(magrittr)
library(janitor)
library(skimr)
library(tidyverse)
library(parameters)
library(conflicted)
library(cluster)
library(splus2R)
library(fpc)
# managing confli... | /white clusters.R | no_license | mariaarias74/wine-final | R | false | false | 7,539 | r |
# white clusters ----------------------------------------------------------
library(ISLR)
library(kernlab)
library(gridExtra)
library(ggdendro)
library(magrittr)
library(janitor)
library(skimr)
library(tidyverse)
library(parameters)
library(conflicted)
library(cluster)
library(splus2R)
library(fpc)
# managing confli... |
\name{wavk.test}
\alias{wavk.test}
\title{WAVK trend test}
\description{
Non-parametric test to detect possibly non-monotonic parametric trend in a time series.
}
\usage{
wavk.test(x, factor.length=c("user.defined", "adaptive.selection"),
Window=round(0.1*length(x)), q=3/4, j=c(8:11), B=1000,
H0=c("no trend"... | /funtimes.Rcheck/00_pkg_src/funtimes/man/wavk.test.Rd | no_license | ESchaeffer13/funtimes | R | false | false | 5,859 | rd | \name{wavk.test}
\alias{wavk.test}
\title{WAVK trend test}
\description{
Non-parametric test to detect possibly non-monotonic parametric trend in a time series.
}
\usage{
wavk.test(x, factor.length=c("user.defined", "adaptive.selection"),
Window=round(0.1*length(x)), q=3/4, j=c(8:11), B=1000,
H0=c("no trend"... |
YATAProvider <- R6Class("YATAProvider",
public = list(
name = NULL
,prefix = NULL
,initialize = function(provider) {
self$name = provider
self$prefix = "POL"
}
)
)
| /YATACore/R/R6_YATAProvider.R | no_license | Grandez/YATA | R | false | false | 216 | r | YATAProvider <- R6Class("YATAProvider",
public = list(
name = NULL
,prefix = NULL
,initialize = function(provider) {
self$name = provider
self$prefix = "POL"
}
)
)
|
\name{forgnlit30}
\docType{data}
\alias{forgnlit30}
\title{Foreign-born literacy in 1930}
\description{
This data set contains, on a state level, the proportion of
white residents ten years and older who are foreign born, and
the proportion of those residents who are literate. Data come from
the 1930 censu... | /man/forgnlit30.Rd | no_license | guhjy/eco | R | false | false | 1,187 | rd | \name{forgnlit30}
\docType{data}
\alias{forgnlit30}
\title{Foreign-born literacy in 1930}
\description{
This data set contains, on a state level, the proportion of
white residents ten years and older who are foreign born, and
the proportion of those residents who are literate. Data come from
the 1930 censu... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{distn.stats}
\alias{distn.stats}
\title{Distribution Stats}
\usage{
distn.stats(distn, a, b)
}
\arguments{
\item{distn}{named distribution, one of "beta", "exp", "f", "gamma", "lnorm", "norm", "t",}
\item{a}{numeric; first parameter of \code{distn}}
\item{b}{... | /utils/man/distn.stats.Rd | permissive | gbromley/pecan | R | false | false | 610 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{distn.stats}
\alias{distn.stats}
\title{Distribution Stats}
\usage{
distn.stats(distn, a, b)
}
\arguments{
\item{distn}{named distribution, one of "beta", "exp", "f", "gamma", "lnorm", "norm", "t",}
\item{a}{numeric; first parameter of \code{distn}}
\item{b}{... |
PhenotypeCombinedBatch1and2.v2.0 <- read.delim("C:/Users/mwesigwa/OneDrive/VirusAnalysis_R/PhenotypeCombinedBatch1and2.v2.0.txt", row.names=1)
| /Phenotype.R | no_license | savannahmwesigwa/CAFGEN | R | false | false | 144 | r | PhenotypeCombinedBatch1and2.v2.0 <- read.delim("C:/Users/mwesigwa/OneDrive/VirusAnalysis_R/PhenotypeCombinedBatch1and2.v2.0.txt", row.names=1)
|
# NOTE: This code has been modified from AWS Stepfunctions Python:
# https://github.com/aws/aws-step-functions-data-science-sdk-python/blob/main/src/stepfunctions/template/utils.py
# Replace the parameters using $$.Execution.Input.
replace_parameters_with_context_object = function(step){
updated_parameters = list()
... | /R/template_utils.R | permissive | DyfanJones/aws-step-functions-data-science-sdk-r | R | false | false | 1,156 | r | # NOTE: This code has been modified from AWS Stepfunctions Python:
# https://github.com/aws/aws-step-functions-data-science-sdk-python/blob/main/src/stepfunctions/template/utils.py
# Replace the parameters using $$.Execution.Input.
replace_parameters_with_context_object = function(step){
updated_parameters = list()
... |
testlist <- list(type = 1L, z = -3.18273654278496e-294)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609890079-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 109 | r | testlist <- list(type = 1L, z = -3.18273654278496e-294)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataDocumentation.R
\docType{data}
\name{Sector_Make_2013_BeforeRedef}
\alias{Sector_Make_2013_BeforeRedef}
\title{Sector 2013 Make Before Redefinition (2012 schema)}
\format{A dataframe with 16 obs. and 18 variables}
\source{
\url{https://ap... | /man/Sector_Make_2013_BeforeRedef.Rd | permissive | ccourtUF/useeior | R | false | true | 465 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DataDocumentation.R
\docType{data}
\name{Sector_Make_2013_BeforeRedef}
\alias{Sector_Make_2013_BeforeRedef}
\title{Sector 2013 Make Before Redefinition (2012 schema)}
\format{A dataframe with 16 obs. and 18 variables}
\source{
\url{https://ap... |
#!/usr/bin/env Rscript
library(biomaRt)
library(data.table)
library(tidyverse)
library(GagnonMR)
library(gassocplot)
library(ggplotify)
library(cowplot)
library(ggrepel)
setwd("/mnt/sda/gagelo01/Projects/small_MR_exploration/FI_BMI")
gwasvcf::set_bcftools()
gwasvcf::set_plink()
ldref = "/home/couchr02/Mendel_Commun/Ch... | /2c_hyprcolocmap.R | no_license | gagelo01/FI_BMI | R | false | false | 14,353 | r | #!/usr/bin/env Rscript
library(biomaRt)
library(data.table)
library(tidyverse)
library(GagnonMR)
library(gassocplot)
library(ggplotify)
library(cowplot)
library(ggrepel)
setwd("/mnt/sda/gagelo01/Projects/small_MR_exploration/FI_BMI")
gwasvcf::set_bcftools()
gwasvcf::set_plink()
ldref = "/home/couchr02/Mendel_Commun/Ch... |
#' The knapsack problem: brute force algorithm.
#'
#' The knapsack problem is a discrete optimization problem where we have a knapsack that can take a
#' limited weight W and we want to fill this knapsack with a number of items i = 1,...,n, each with
#' a weight w(i) and a value v(i). The goal is to find the knapsack... | /Advanced Programming in R /Lab 6/knapsack/R/knapsack_brute_force.R | permissive | aydinardalan/MSc_Statistics-and-Machine-Learning | R | false | false | 3,276 | r | #' The knapsack problem: brute force algorithm.
#'
#' The knapsack problem is a discrete optimization problem where we have a knapsack that can take a
#' limited weight W and we want to fill this knapsack with a number of items i = 1,...,n, each with
#' a weight w(i) and a value v(i). The goal is to find the knapsack... |
context("Test `qq` and `qqcat`")
test_that("Simple test", {
a = 1
expect_that(qq("this is @{a}"),
equals("this is 1"))
expect_that(qqcat("this is @{a}"),
prints_text("this is 1"))
})
test_that("pass a list as an environment", {
l = list(a = "a")
expect_that(qq("this is @{a} in `l`... | /inst/tests/test_qq.R | no_license | akhtet/GetoptLong | R | false | false | 3,853 | r | context("Test `qq` and `qqcat`")
test_that("Simple test", {
a = 1
expect_that(qq("this is @{a}"),
equals("this is 1"))
expect_that(qqcat("this is @{a}"),
prints_text("this is 1"))
})
test_that("pass a list as an environment", {
l = list(a = "a")
expect_that(qq("this is @{a} in `l`... |
library(tidyverse)
library(ggplot2)
library(here)
library(lubridate)
library(parallel)
library(patchwork)
library(extrafont)
library(skimr)
library(beepr)
library(ggbump)
library(tidytext)
library(stringr)
library(ggrepel)
library(extrafont)
library(rayshader)
here()
usethis::edit_r_environ()
set.seed(1)
options(scip... | /TidyTuesday9-15-2021.R | no_license | jpohlkamphartt/TidyTuesday | R | false | false | 3,876 | r | library(tidyverse)
library(ggplot2)
library(here)
library(lubridate)
library(parallel)
library(patchwork)
library(extrafont)
library(skimr)
library(beepr)
library(ggbump)
library(tidytext)
library(stringr)
library(ggrepel)
library(extrafont)
library(rayshader)
here()
usethis::edit_r_environ()
set.seed(1)
options(scip... |
\name{RLab4-package}
\alias{RLab4-package}
\alias{RLab4}
\docType{package}
\title{
Linear regression and theme
}
\description{
Fitting linear models. Theme for LiU with ggplot2.
}
\details{
\tabular{ll}{
Package: \tab RLab4\cr
Type: \tab Package\cr
Version: \tab 1.0\cr
Date: \tab 2015-09-15\cr
License: \tab What licens... | /RLab4.Rcheck/00_pkg_src/RLab4/man/RLab4-package.Rd | no_license | Martina145/RLab4 | R | false | false | 492 | rd | \name{RLab4-package}
\alias{RLab4-package}
\alias{RLab4}
\docType{package}
\title{
Linear regression and theme
}
\description{
Fitting linear models. Theme for LiU with ggplot2.
}
\details{
\tabular{ll}{
Package: \tab RLab4\cr
Type: \tab Package\cr
Version: \tab 1.0\cr
Date: \tab 2015-09-15\cr
License: \tab What licens... |
#' Gives an html table of the first few lines of the data frame along with a description of the variables
#' and dimension of the data frame.
#'
#' @param data.frame a data frame
#' @param nlines How many rows of the data frame will be shown in the table (default 6)
#' @param dec.places How many decimal places should b... | /R/hearhead.R | no_license | benthegirl/BlindR | R | false | false | 1,837 | r | #' Gives an html table of the first few lines of the data frame along with a description of the variables
#' and dimension of the data frame.
#'
#' @param data.frame a data frame
#' @param nlines How many rows of the data frame will be shown in the table (default 6)
#' @param dec.places How many decimal places should b... |
# @knitr sidebar
column(6,
tags$head(
tags$link(rel="stylesheet", type="text/css", href="styles_black_lightblue.css")
),
conditionalPanel(condition="input.tsp!=='info'",
wellPanel(
fluidRow(
column(6,
textInput("useremail","Email results to:", value="paul.duffy@neptuneinc.org"),
bsTooltip("... | /run_alfresco/sidebar.R | no_license | dddyvonne/shiny-apps | R | false | false | 4,731 | r | # @knitr sidebar
column(6,
tags$head(
tags$link(rel="stylesheet", type="text/css", href="styles_black_lightblue.css")
),
conditionalPanel(condition="input.tsp!=='info'",
wellPanel(
fluidRow(
column(6,
textInput("useremail","Email results to:", value="paul.duffy@neptuneinc.org"),
bsTooltip("... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/p_base.R
\name{p_base}
\alias{p_base}
\title{Base Install Packages}
\usage{
p_base(base.only = TRUE, open = FALSE, basemarker = "***")
}
\arguments{
\item{base.only}{logical. If \code{TRUE} a character vector of only base
install ... | /man/p_base.Rd | no_license | cran/pacman | R | false | true | 904 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/p_base.R
\name{p_base}
\alias{p_base}
\title{Base Install Packages}
\usage{
p_base(base.only = TRUE, open = FALSE, basemarker = "***")
}
\arguments{
\item{base.only}{logical. If \code{TRUE} a character vector of only base
install ... |
"pwm.ub" <-
function(x,nmom=5,sort=TRUE) {
z <- pwm(x,nmom=nmom,sort=sort)
z$source <- "pwm.ub"
return(z)
}
| /R/pwm.ub.R | no_license | wasquith/lmomco | R | false | false | 114 | r | "pwm.ub" <-
function(x,nmom=5,sort=TRUE) {
z <- pwm(x,nmom=nmom,sort=sort)
z$source <- "pwm.ub"
return(z)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/files.R
\name{listFiles}
\alias{listFiles}
\title{List files}
\usage{
listFiles(path = "")
}
\arguments{
\item{path}{The path of directory.}
}
\value{
A list of available files and metadata, including path, type, size.
}
\description{
List fi... | /man/listFiles.Rd | permissive | smmtw/ROpenDataSMM | R | false | true | 395 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/files.R
\name{listFiles}
\alias{listFiles}
\title{List files}
\usage{
listFiles(path = "")
}
\arguments{
\item{path}{The path of directory.}
}
\value{
A list of available files and metadata, including path, type, size.
}
\description{
List fi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{TwoPointCrossOverOnDoublesUsingBytes}
\alias{TwoPointCrossOverOnDoublesUsingBytes}
\title{Two-point Crossover operation on the two vectors of doubles using their byte representations}
\usage{
TwoPointCrossOverOnDoublesUsin... | /man/TwoPointCrossOverOnDoublesUsingBytes.Rd | no_license | jbytecode/mcga | R | false | true | 1,316 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{TwoPointCrossOverOnDoublesUsingBytes}
\alias{TwoPointCrossOverOnDoublesUsingBytes}
\title{Two-point Crossover operation on the two vectors of doubles using their byte representations}
\usage{
TwoPointCrossOverOnDoublesUsin... |
# model_maineffects.R - DESC
# OM/model_maineffects.R
# Copyright Iago MOSQUEIRA (WMR), 2020
# Author: Iago MOSQUEIRA (WMR) <iago.mosqueira@wur.nl>
# Modified: Daniela Rosa (IPMA)
#
# Distributed under the terms of the EUPL-1.2
library(data.table)
library(icesTAF)
library(ss3om)
library(ioswomse)
library(doParallel)... | /OM/model_maineffects.R | no_license | iotcwpm/SWO | R | false | false | 5,548 | r | # model_maineffects.R - DESC
# OM/model_maineffects.R
# Copyright Iago MOSQUEIRA (WMR), 2020
# Author: Iago MOSQUEIRA (WMR) <iago.mosqueira@wur.nl>
# Modified: Daniela Rosa (IPMA)
#
# Distributed under the terms of the EUPL-1.2
library(data.table)
library(icesTAF)
library(ss3om)
library(ioswomse)
library(doParallel)... |
plot.timeline <- function(person = "", repo = "") {
localized.day <- function(day) {
localized <- day
month(localized) <- 1
day(localized) <- 1
year(localized) <- 2016
localized
}
person.filter <- ifelse(nchar(person), person, '.')
repo.filter <- ifelse(nchar(repo), repo, '.')
data %>%
... | /preboots/contributor-timeline.R | no_license | SivanMehta/shiny-docker-example | R | false | false | 860 | r | plot.timeline <- function(person = "", repo = "") {
localized.day <- function(day) {
localized <- day
month(localized) <- 1
day(localized) <- 1
year(localized) <- 2016
localized
}
person.filter <- ifelse(nchar(person), person, '.')
repo.filter <- ifelse(nchar(repo), repo, '.')
data %>%
... |
## Assignment: R codes to create plot4.png
## Included code to get data and unzip
## Uncomment the following code if you want to download and unzip (assumes Rstudio in MAC)
#dataset_url<- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
#download.file(dataset_url, "exdata-data.z... | /figure/plot4.R | no_license | marrycv/ExData_Plotting1 | R | false | false | 1,964 | r | ## Assignment: R codes to create plot4.png
## Included code to get data and unzip
## Uncomment the following code if you want to download and unzip (assumes Rstudio in MAC)
#dataset_url<- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
#download.file(dataset_url, "exdata-data.z... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.