content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/import.sirius.R
\name{import.sirius}
\alias{import.sirius}
\title{import.sirius}
\usage{
import.sirius(ramclustObj = NULL, ms.dir = NULL, ion.mode = NULL)
}
\arguments{
\item{ramclustObj}{R object - the ramclustR object which was used to writ... | /man/import.sirius.Rd | no_license | cran/RAMClustR | R | false | true | 1,556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/import.sirius.R
\name{import.sirius}
\alias{import.sirius}
\title{import.sirius}
\usage{
import.sirius(ramclustObj = NULL, ms.dir = NULL, ion.mode = NULL)
}
\arguments{
\item{ramclustObj}{R object - the ramclustR object which was used to writ... |
install.packages("needs")
library(needs)
needs(tidyverse, magrittr, sf, scales, viridis, gstat)
# Load the data we’ll be using:
# Polygon boundaries for Californian counties...
load("boundaries.Rdata")
# ... and ozone readings from air quality monitoring stations in California
load("points.Rdata")
# Have a quick glim... | /Geospatial interpolation/geospatial_interpolation.R | no_license | johnburnmurdoch/R_resources | R | false | false | 18,952 | r | install.packages("needs")
library(needs)
needs(tidyverse, magrittr, sf, scales, viridis, gstat)
# Load the data we’ll be using:
# Polygon boundaries for Californian counties...
load("boundaries.Rdata")
# ... and ozone readings from air quality monitoring stations in California
load("points.Rdata")
# Have a quick glim... |
library(devtools)
library(usethis)
library(desc)
# Remove default DESC
unlink("DESCRIPTION")
# Create and clean desc
my_desc <- description$new("!new")
# Set your package name
my_desc$set("Package", "georefar")
#Set your name
my_desc$set("Authors@R", "person('Patricio', 'Del Boca', email='about@me.com', role = c('cr... | /data-raw/devstuffs.R | permissive | pdelboca/georefar | R | false | false | 1,259 | r | library(devtools)
library(usethis)
library(desc)
# Remove default DESC
unlink("DESCRIPTION")
# Create and clean desc
my_desc <- description$new("!new")
# Set your package name
my_desc$set("Package", "georefar")
#Set your name
my_desc$set("Authors@R", "person('Patricio', 'Del Boca', email='about@me.com', role = c('cr... |
# Load all your packages before calling make().
library(drake)
library(tibble)
library(daymetr)
library(purrr)
library(dplyr)
library(lubridate)
library(ggplot2)
library(rmarkdown)
| /presentations/2021-MAR-02_Hurley_drake-works/R/packages.R | permissive | AEMuelbert/GEES-coding-group | R | false | false | 192 | r | # Load all your packages before calling make().
library(drake)
library(tibble)
library(daymetr)
library(purrr)
library(dplyr)
library(lubridate)
library(ggplot2)
library(rmarkdown)
|
## makeCacheMatrix creates a matrix that can be cached and a list of functions to change, store and get its value or the value of inverse matrix
## cacheSolve returns the inverse matrix value if it has already been computed or computes a value of the inverse matrix, stores it and retuns it
## makeCacheMatrix is a fun... | /cachematrix.R | no_license | DaryaRamanava/ProgrammingAssignment2 | R | false | false | 1,466 | r | ## makeCacheMatrix creates a matrix that can be cached and a list of functions to change, store and get its value or the value of inverse matrix
## cacheSolve returns the inverse matrix value if it has already been computed or computes a value of the inverse matrix, stores it and retuns it
## makeCacheMatrix is a fun... |
#--------------------------------
# Draw line for e
#--------------------------------
x=1:10000
y=(1+1/x)^x
function.table=data.frame(x,y)
function.table
plot(x,y,type="l")
| /e.R | no_license | AndyTian-Devops/RLearning | R | false | false | 173 | r | #--------------------------------
# Draw line for e
#--------------------------------
x=1:10000
y=(1+1/x)^x
function.table=data.frame(x,y)
function.table
plot(x,y,type="l")
|
function (xs, ys)
{
e <- get("data.env", .GlobalEnv)
e[["getLengths"]][[length(e[["getLengths"]]) + 1]] <- list(xs = xs,
ys = ys)
.Call("_mousetrap_getLengths", xs, ys)
}
| /valgrind_test_dir/getLengths-test.R | no_license | akhikolla/RcppDeepStateTest | R | false | false | 193 | r | function (xs, ys)
{
e <- get("data.env", .GlobalEnv)
e[["getLengths"]][[length(e[["getLengths"]]) + 1]] <- list(xs = xs,
ys = ys)
.Call("_mousetrap_getLengths", xs, ys)
}
|
#this will help wheather or not we can extract dat from html or not
library(robotstxt)
#extract the data from webpage
library(rvest)
library(selectr)
#it use to download the html to xml document
library(xml2)
#rest are use to reshapping the data
library(dplyr)
library(stringr)
library(forcats)
librar... | /Web_Scrapper.R | no_license | RohitPhadke/Web-Scraping-using-R | R | false | false | 6,799 | r | #this will help wheather or not we can extract dat from html or not
library(robotstxt)
#extract the data from webpage
library(rvest)
library(selectr)
#it use to download the html to xml document
library(xml2)
#rest are use to reshapping the data
library(dplyr)
library(stringr)
library(forcats)
librar... |
#context("GP functions")
# We check the functions pgp, qgp and rgp.
# Set a tolerance for the comparison of the simulated values
my_tol <- 1e-5
# 1. Check that calling qgp with probabilities p and then calling pgp with
# the results gets us back to the initial probabilities.
pqgp_test_fn <- function(x, p) {
lo... | /tests/testthat/test-gp.R | no_license | paulnorthrop/revdbayes | R | false | false | 1,896 | r | #context("GP functions")
# We check the functions pgp, qgp and rgp.
# Set a tolerance for the comparison of the simulated values
my_tol <- 1e-5
# 1. Check that calling qgp with probabilities p and then calling pgp with
# the results gets us back to the initial probabilities.
pqgp_test_fn <- function(x, p) {
lo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generated_client.R
\name{results_post}
\alias{results_post}
\title{Create a report}
\usage{
results_post(script_id = NULL, name = NULL, code_body = NULL,
app_state = NULL, provide_api_key = NULL, template_id = NULL,
hidden = NULL)
}
\argu... | /man/results_post.Rd | permissive | wlattner/civis-r | R | false | true | 3,535 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generated_client.R
\name{results_post}
\alias{results_post}
\title{Create a report}
\usage{
results_post(script_id = NULL, name = NULL, code_body = NULL,
app_state = NULL, provide_api_key = NULL, template_id = NULL,
hidden = NULL)
}
\argu... |
#this initial code is an experiment
#in using R's tools for converting binary
#observations into distance measures
#the data table used in ppt slides...
v1 <- c(0, 0, 0)
v2 <- c(0, 0, 1)
v3 <- c(1, 0, 1)
t1 <- data.frame(v1, v2, v3); t1
#using the distance function in R-base
dist(t1, method="binary") #appe... | /RLearning/IanClass/dist & clust examples.R | no_license | damiansp/R | R | false | false | 4,495 | r | #this initial code is an experiment
#in using R's tools for converting binary
#observations into distance measures
#the data table used in ppt slides...
v1 <- c(0, 0, 0)
v2 <- c(0, 0, 1)
v3 <- c(1, 0, 1)
t1 <- data.frame(v1, v2, v3); t1
#using the distance function in R-base
dist(t1, method="binary") #appe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Neoantimon.R
\docType{data}
\name{sample_rna_exp}
\alias{sample_rna_exp}
\title{A Format / Sample file for RNA Expression Information}
\format{A data frame with 22 rows and 3 variables}
\usage{
data(sample_rna_exp)
}
\description{
A dataset c... | /man/sample_rna_exp.Rd | no_license | sophiazmm/Neoantimon | R | false | true | 403 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Neoantimon.R
\docType{data}
\name{sample_rna_exp}
\alias{sample_rna_exp}
\title{A Format / Sample file for RNA Expression Information}
\format{A data frame with 22 rows and 3 variables}
\usage{
data(sample_rna_exp)
}
\description{
A dataset c... |
############
# packages #
############
library( tidyverse )
library( knitr )
library( here )
library( GenomicRanges )
library( GenomicFeatures )
library( multidplyr )
###################
# setup multiplyr #
###################
r_cpus <- read_csv( here::here( 'changeable_parameters', 'num_r_cpus.txt' ), col_names = 'cp... | /mdplyr_casx_analysis.R | permissive | RobersonLab/2019CasXModelOrgCatalog | R | false | false | 10,057 | r | ############
# packages #
############
library( tidyverse )
library( knitr )
library( here )
library( GenomicRanges )
library( GenomicFeatures )
library( multidplyr )
###################
# setup multiplyr #
###################
r_cpus <- read_csv( here::here( 'changeable_parameters', 'num_r_cpus.txt' ), col_names = 'cp... |
\name{gofExp.test}
\alias{gofExp.test}
\encoding{UTF-8}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Goodness-of-fit test for exponential distribution}
\description{
Bartlett's goodness-of-fit test for exponential distribution
}
\usage{
gofExp.test(x)
}
%- maybe also 'usage' for other obje... | /man/gofExp.test.Rd | no_license | cran/Renext | R | false | false | 1,484 | rd | \name{gofExp.test}
\alias{gofExp.test}
\encoding{UTF-8}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Goodness-of-fit test for exponential distribution}
\description{
Bartlett's goodness-of-fit test for exponential distribution
}
\usage{
gofExp.test(x)
}
%- maybe also 'usage' for other obje... |
#-------------------------------------------------------------------------------
# Environment Set-up
#-------------------------------------------------------------------------------
rm(list=ls(all=TRUE))
gc()
options(scipen=999)
# Link DropBox
# library(RStudioAMI)
# linkDropbox()
# install.packages(c("xgboost", "dat... | /Model/xgboost_cv/xgboost_cv_3.R | no_license | vikasnitk85/RossmannStoreSales | R | false | false | 5,362 | r | #-------------------------------------------------------------------------------
# Environment Set-up
#-------------------------------------------------------------------------------
rm(list=ls(all=TRUE))
gc()
options(scipen=999)
# Link DropBox
# library(RStudioAMI)
# linkDropbox()
# install.packages(c("xgboost", "dat... |
#' Google Apps Script Execution API Objects
#' Executes Google Apps Script projects.
#'
#' Auto-generated code by googleAuthR::gar_create_api_objects
#' at 2017-03-05 20:11:39
#' filename: /Users/mark/dev/R/autoGoogleAPI/googlescriptv1.auto/R/script_objects.R
#' api_json: api_json
#'
#' Objects for use by the funct... | /B_analysts_sources_github/MarkEdmondson1234/autoGoogleAPI/script_objects.R | no_license | Irbis3/crantasticScrapper | R | false | false | 7,388 | r | #' Google Apps Script Execution API Objects
#' Executes Google Apps Script projects.
#'
#' Auto-generated code by googleAuthR::gar_create_api_objects
#' at 2017-03-05 20:11:39
#' filename: /Users/mark/dev/R/autoGoogleAPI/googlescriptv1.auto/R/script_objects.R
#' api_json: api_json
#'
#' Objects for use by the funct... |
## Name: Elizabeth Lee
## Date: 9/2/15
## Function: explore epidemic threshold and epidemic period distributions to think of ways to filter out noise (that doesn't appear to be a flu epidemic)
## Results:
### disease burden metrics:
## Filenames: sprintf('dbMetrics_periodicReg_%sanalyzeDB.csv', code)
## Data Source:... | /programs/explore_epidemicPeriodDefinition_IR.R | no_license | Qasim-1develop/flu-SDI-dzBurden-drivers | R | false | false | 4,030 | r | ## Name: Elizabeth Lee
## Date: 9/2/15
## Function: explore epidemic threshold and epidemic period distributions to think of ways to filter out noise (that doesn't appear to be a flu epidemic)
## Results:
### disease burden metrics:
## Filenames: sprintf('dbMetrics_periodicReg_%sanalyzeDB.csv', code)
## Data Source:... |
module_table_output_UI <- function(id, label="") {
ns <- NS(id)
# https://groups.google.com/forum/#!topic/shiny-discuss/vgeURRSDScA
# div(style="display:inline-block",submitButton("Analysis"), style="float:right"),
# div(style="display:inline-block",downloadButton('downloadData', 'Download Data'), style="... | /module/module_table_output.R | no_license | fyang72/handbook | R | false | false | 4,023 | r |
module_table_output_UI <- function(id, label="") {
ns <- NS(id)
# https://groups.google.com/forum/#!topic/shiny-discuss/vgeURRSDScA
# div(style="display:inline-block",submitButton("Analysis"), style="float:right"),
# div(style="display:inline-block",downloadButton('downloadData', 'Download Data'), style="... |
#Movie Rating Analysis: Has Fandango Changed Their Rating System After Hickey's Analysis?
library(readr)
library(tidyr)
library(tidyverse)
library(dbplyr)
library(dplyr)
library(stringr)
library(ggplot2)
fandango <- read.csv("~/Google Drive/Work/R programming/Guided Projects/Fandango Reanalysis/Movie_ratings_2016_17-... | /Reanalysis.R | no_license | neremita/Fandango-Reanalysis | R | false | false | 2,996 | r | #Movie Rating Analysis: Has Fandango Changed Their Rating System After Hickey's Analysis?
library(readr)
library(tidyr)
library(tidyverse)
library(dbplyr)
library(dplyr)
library(stringr)
library(ggplot2)
fandango <- read.csv("~/Google Drive/Work/R programming/Guided Projects/Fandango Reanalysis/Movie_ratings_2016_17-... |
#' Class tskrrImpute
#'
#' The class \code{tskrrImpute} is a virtual class that represents a
#' \code{\link[xnet:tskrr-class]{tskrr}} model with imputed values in
#' the label matrix Y. Apart from the model, it contains the
#' following extra information on the imputed values.
#'
#' @slot imputeid a vector with integer... | /R/Class_tskrrImpute.R | no_license | vishalbelsare/xnet | R | false | false | 1,791 | r | #' Class tskrrImpute
#'
#' The class \code{tskrrImpute} is a virtual class that represents a
#' \code{\link[xnet:tskrr-class]{tskrr}} model with imputed values in
#' the label matrix Y. Apart from the model, it contains the
#' following extra information on the imputed values.
#'
#' @slot imputeid a vector with integer... |
# ==========
# = Set WD =
# ==========
if(Sys.info()[["user"]]%in%c("ryanb","Battrd")){
setwd("/Users/Battrd/Documents/School&Work/WiscResearch/AncientIce") # for ryan
}
# ==================
# = Load Libraries =
# ==================
library(fields)
library(reshape2)
# ================
# = Load Results =
# =======... | /R/Figures/plot.bpLikes.R | no_license | lawinslow/AncientIce | R | false | false | 3,827 | r |
# ==========
# = Set WD =
# ==========
if(Sys.info()[["user"]]%in%c("ryanb","Battrd")){
setwd("/Users/Battrd/Documents/School&Work/WiscResearch/AncientIce") # for ryan
}
# ==================
# = Load Libraries =
# ==================
library(fields)
library(reshape2)
# ================
# = Load Results =
# =======... |
library(sqldf)
library(GSVA)
library(gplots)
library(ggplot2)
setwd('~/Documents/public-datasets/RNA-seq/anoop2014_singleCellGBM/')
db <- dbConnect(SQLite(), dbname='~/Documents/public-datasets/cancerBrowser/deDupAgilent/coexpression.sqlite')
subsetSamples <- function (dataFrame, sampleNameStub) {
# The dataframe... | /PhD/140922_singleCellGBM.R | no_license | dvbrown/Rscripts | R | false | false | 6,310 | r | library(sqldf)
library(GSVA)
library(gplots)
library(ggplot2)
setwd('~/Documents/public-datasets/RNA-seq/anoop2014_singleCellGBM/')
db <- dbConnect(SQLite(), dbname='~/Documents/public-datasets/cancerBrowser/deDupAgilent/coexpression.sqlite')
subsetSamples <- function (dataFrame, sampleNameStub) {
# The dataframe... |
# Various R packages that are requried
library(readr)
library(dplyr)
library(tidyr)
library(bindrcpp)
library(data.table)
library(stringr)
library(ranger)
library(lubridate)
library(parallel)
library(doParallel)
library(batch)
# Load the metadata into an R object that is called "data"
data <- read_csv(".... | /Random Forest Pipeline/New_pipeline/scripts/msdss/msdss_ratios_forest_results.R | no_license | ibishof/Proteomic_pipeline | R | false | false | 4,469 | r | # Various R packages that are requried
library(readr)
library(dplyr)
library(tidyr)
library(bindrcpp)
library(data.table)
library(stringr)
library(ranger)
library(lubridate)
library(parallel)
library(doParallel)
library(batch)
# Load the metadata into an R object that is called "data"
data <- read_csv(".... |
\alias{gtkWidgetSetNoShowAll}
\name{gtkWidgetSetNoShowAll}
\title{gtkWidgetSetNoShowAll}
\description{Sets the "no\_show\_all" property, which determines whether calls to
\code{\link{gtkWidgetShowAll}} and \code{\link{gtkWidgetHideAll}} will affect this widget. }
\usage{gtkWidgetSetNoShowAll(object, no.show.all)}
\arg... | /man/gtkWidgetSetNoShowAll.Rd | no_license | cran/RGtk2.10 | R | false | false | 716 | rd | \alias{gtkWidgetSetNoShowAll}
\name{gtkWidgetSetNoShowAll}
\title{gtkWidgetSetNoShowAll}
\description{Sets the "no\_show\_all" property, which determines whether calls to
\code{\link{gtkWidgetShowAll}} and \code{\link{gtkWidgetHideAll}} will affect this widget. }
\usage{gtkWidgetSetNoShowAll(object, no.show.all)}
\arg... |
d=read.delim("http://www.public.iastate.edu/~dnett/S511/SeedlingDryWeight2.txt")
d
plot(d[,2],d[,4]+rnorm(56,0,.2),
xlab="Tray",ylab="Seedling Dry Weight",
col=2*(1+(d[,1]=="B")),pch="-",cex=2)
legend("topright",c("Genotype A","Genotype B"),fill=c(2,4),border=c(2,4))
Tray=as.factor(d$Tray)
Geno=as.factor(d$... | /Code/pvz_bootstrap.R | no_license | eglekaleckaite/magistro-darbas | R | false | false | 6,860 | r | d=read.delim("http://www.public.iastate.edu/~dnett/S511/SeedlingDryWeight2.txt")
d
plot(d[,2],d[,4]+rnorm(56,0,.2),
xlab="Tray",ylab="Seedling Dry Weight",
col=2*(1+(d[,1]=="B")),pch="-",cex=2)
legend("topright",c("Genotype A","Genotype B"),fill=c(2,4),border=c(2,4))
Tray=as.factor(d$Tray)
Geno=as.factor(d$... |
library("RMySQL")
ucscDb <- dbConnect(MySQL(), user ="genome", host = "genome-mysql.cse.ucsc.edu")
result <- dbGetQuery(ucscDb, "show databases;"); dbDisconnect(ucscDb);
## connect to local mysql
on <- dbConnect(MySQL(),user="root",password="********",dbname="try",host="localhost")
dbListTables(con) # to see what a... | /DB_connect.R | no_license | shirshendu-nandy/DataScience-R | R | false | false | 862 | r | library("RMySQL")
ucscDb <- dbConnect(MySQL(), user ="genome", host = "genome-mysql.cse.ucsc.edu")
result <- dbGetQuery(ucscDb, "show databases;"); dbDisconnect(ucscDb);
## connect to local mysql
on <- dbConnect(MySQL(),user="root",password="********",dbname="try",host="localhost")
dbListTables(con) # to see what a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rabbitpackage.R
\name{read_fas}
\alias{read_fas}
\title{Read fasta file}
\usage{
read_fas(accn)
}
\arguments{
\item{accn}{}
}
\value{
a dataframe
}
\description{
Read fasta file
}
\examples{
x<-read_fas("AB115403")
}
| /rabbitpackage/man/read_fas.Rd | no_license | PPeachi/rpackage | R | false | true | 295 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rabbitpackage.R
\name{read_fas}
\alias{read_fas}
\title{Read fasta file}
\usage{
read_fas(accn)
}
\arguments{
\item{accn}{}
}
\value{
a dataframe
}
\description{
Read fasta file
}
\examples{
x<-read_fas("AB115403")
}
|
testlist <- list(n = -167051264L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) | /breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609962647-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 98 | r | testlist <- list(n = -167051264L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) |
cv.test = function(x, y, chisq) {
CV = sqrt(chisq / (length(x) * (min(length(unique(x)), length(unique(y))) - 1)))
print.noquote("Cramér V / Phi:")
return(as.numeric(CV))
}
rmsea.test = function(chisq, df, n) {
rmsea = sqrt((chisq-df)/(df*(n-1)))
return(as.numeric(rmsea))
} | /Assignment1/helper.r | no_license | macco3k/BN-2017 | R | false | false | 292 | r | cv.test = function(x, y, chisq) {
CV = sqrt(chisq / (length(x) * (min(length(unique(x)), length(unique(y))) - 1)))
print.noquote("Cramér V / Phi:")
return(as.numeric(CV))
}
rmsea.test = function(chisq, df, n) {
rmsea = sqrt((chisq-df)/(df*(n-1)))
return(as.numeric(rmsea))
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_data.R
\name{check_default_data_path}
\alias{check_default_data_path}
\alias{get_default_data_path}
\alias{use_default_data_path}
\title{Manage the default path for downloading Portal Data into}
\usage{
check_default_data_path(ENV_VA... | /man/use_default_data_path.Rd | permissive | ethanwhite/portalr | R | false | true | 1,451 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_data.R
\name{check_default_data_path}
\alias{check_default_data_path}
\alias{get_default_data_path}
\alias{use_default_data_path}
\title{Manage the default path for downloading Portal Data into}
\usage{
check_default_data_path(ENV_VA... |
# This function takes a data set as input and returns a png file in which is shown
# the trend of the following variables over 2-days period determined by
# the "Date" variable, each in a different panel:
# "Global_active_power" variable
# "Voltage" variable
# "Sub_metering_x" variables, where x=1,2,3
# "Global_react... | /plot4.R | no_license | chiara87todaro/ExData_Plotting1 | R | false | false | 1,858 | r | # This function takes a data set as input and returns a png file in which is shown
# the trend of the following variables over 2-days period determined by
# the "Date" variable, each in a different panel:
# "Global_active_power" variable
# "Voltage" variable
# "Sub_metering_x" variables, where x=1,2,3
# "Global_react... |
### Kyle Wilson and Senan Hogan-Hennessy, Fall 2017
### This file is an interactive introduction to R, with a focus towards its use for data analysis and economics
### First half of the file was completed by Kyle Wilson, the second half and edits since by Senan Hogan-Hennessy
2+2
2*3
# COMMENTS
# ----
# O... | /R Workshop.R | no_license | shoganhennessy/R_intro | R | false | false | 9,706 | r | ### Kyle Wilson and Senan Hogan-Hennessy, Fall 2017
### This file is an interactive introduction to R, with a focus towards its use for data analysis and economics
### First half of the file was completed by Kyle Wilson, the second half and edits since by Senan Hogan-Hennessy
2+2
2*3
# COMMENTS
# ----
# O... |
library(RecordLinkage)
### Name: classifyUnsup
### Title: Unsupervised Classification
### Aliases: classifyUnsup
### Keywords: classif
### ** Examples
# Classification with bclust
data(RLdata500)
rpairs=compare.dedup(RLdata500, identity=identity.RLdata500,
blockfld=list(1,3,5,6,7))
result=classi... | /data/genthat_extracted_code/RecordLinkage/examples/classifyUnsup.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 391 | r | library(RecordLinkage)
### Name: classifyUnsup
### Title: Unsupervised Classification
### Aliases: classifyUnsup
### Keywords: classif
### ** Examples
# Classification with bclust
data(RLdata500)
rpairs=compare.dedup(RLdata500, identity=identity.RLdata500,
blockfld=list(1,3,5,6,7))
result=classi... |
# Create a variable `lyric` that contains the text "I like to eat apples and bananas"
lyric <- "I like to eat apples and bananas"
# Use the `substr()` function to extract the 1st through 13th letters from the `lyric`
# Use `?substr` to see more about this function
# Store the result in a variable called `intro`
intro ... | /exercise-4/exercise.R | permissive | lyoujl/module6-functions | R | false | false | 1,259 | r | # Create a variable `lyric` that contains the text "I like to eat apples and bananas"
lyric <- "I like to eat apples and bananas"
# Use the `substr()` function to extract the 1st through 13th letters from the `lyric`
# Use `?substr` to see more about this function
# Store the result in a variable called `intro`
intro ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gsw.R
\name{gsw_alpha_wrt_t_exact}
\alias{gsw_alpha_wrt_t_exact}
\title{Thermal expansion coefficient with respect to in-situ temperature}
\usage{
gsw_alpha_wrt_t_exact(SA, t, p)
}
\arguments{
\item{SA}{Absolute Salinity [ g/kg ]}
\item{t}{i... | /man/gsw_alpha_wrt_t_exact.Rd | no_license | cran/gsw | R | false | true | 2,956 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gsw.R
\name{gsw_alpha_wrt_t_exact}
\alias{gsw_alpha_wrt_t_exact}
\title{Thermal expansion coefficient with respect to in-situ temperature}
\usage{
gsw_alpha_wrt_t_exact(SA, t, p)
}
\arguments{
\item{SA}{Absolute Salinity [ g/kg ]}
\item{t}{i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Gapfilling.R
\name{find_ind_and_qc}
\alias{find_ind_and_qc}
\title{Find index for a variable and its QC flag}
\usage{
find_ind_and_qc(inds, var, qc_name = NA)
}
\arguments{
\item{inds}{indices}
\item{var}{variables}
\item{qc_name}{qc names}... | /man/find_ind_and_qc.Rd | no_license | aukkola/FluxnetLSM | R | false | true | 426 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Gapfilling.R
\name{find_ind_and_qc}
\alias{find_ind_and_qc}
\title{Find index for a variable and its QC flag}
\usage{
find_ind_and_qc(inds, var, qc_name = NA)
}
\arguments{
\item{inds}{indices}
\item{var}{variables}
\item{qc_name}{qc names}... |
library(data.table)
library(ggplot2)
library(shiny)
library(rsconnect)
shinyServer(function(input, output) {
output$TotalPremium <- renderText({paste(" Total Expected Premiums: "," $",prettyNum(input$TotalDrivers*input$PolicyValue,big.mark=","))})#total Premium calculations
o... | /server.R | no_license | talmormeir/Developing_products | R | false | false | 6,202 | r | library(data.table)
library(ggplot2)
library(shiny)
library(rsconnect)
shinyServer(function(input, output) {
output$TotalPremium <- renderText({paste(" Total Expected Premiums: "," $",prettyNum(input$TotalDrivers*input$PolicyValue,big.mark=","))})#total Premium calculations
o... |
#######################################
########## TANZANIA 2008-09 ###########
#######################################
# Tom
#dataPath <- "C:/Users/Tomas/Documents/LEI/data/TZA/TZA2008/Data"
# Michiel
# dataPath <- ""
# Anne
dataPath <- dataPath <- "D:/UserData/verbe038/TZA/2008/Data"
# Vincent
# dataPath <- ""
l... | /Scripts/August scripts/TZA_2008_AV.R | no_license | vincentlinderhof/NutritionTZA | R | false | false | 22,665 | r | #######################################
########## TANZANIA 2008-09 ###########
#######################################
# Tom
#dataPath <- "C:/Users/Tomas/Documents/LEI/data/TZA/TZA2008/Data"
# Michiel
# dataPath <- ""
# Anne
dataPath <- dataPath <- "D:/UserData/verbe038/TZA/2008/Data"
# Vincent
# dataPath <- ""
l... |
library(EBImage)
library(CRImage)
require(plyr)
require(foreach)
require(doSNOW)
ncluster <-4
setMKLthreads(n=2)
cl <- makeCluster(ncluster)
registerDoSNOW(cl)
FILES<-dir(path = 'Images/Sample_19_Nat_5_10/',full.names = T)[1:6]
areas<-foreach(filei=FILES,.packages = 'EBImage') %dopar% {
img<-readImage(filei)
... | /Sample_19_Nat_5_10.R | no_license | mariofajardo/ASWAT | R | false | false | 3,548 | r | library(EBImage)
library(CRImage)
require(plyr)
require(foreach)
require(doSNOW)
ncluster <-4
setMKLthreads(n=2)
cl <- makeCluster(ncluster)
registerDoSNOW(cl)
FILES<-dir(path = 'Images/Sample_19_Nat_5_10/',full.names = T)[1:6]
areas<-foreach(filei=FILES,.packages = 'EBImage') %dopar% {
img<-readImage(filei)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imports.R
\docType{package}
\name{plotly-package}
\alias{plotly}
\alias{plotly-package}
\title{plotly: Create Interactive Web Graphics via 'plotly.js'}
\description{
Easily translate 'ggplot2' graphs to an interactive web-based version and/or... | /man/plotly-package.Rd | no_license | MitchellAkeba/plotly | R | false | true | 1,181 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imports.R
\docType{package}
\name{plotly-package}
\alias{plotly}
\alias{plotly-package}
\title{plotly: Create Interactive Web Graphics via 'plotly.js'}
\description{
Easily translate 'ggplot2' graphs to an interactive web-based version and/or... |
#' clean data function
#'
#' This function takes in data and clean
#' @param data data input
#' @export
# function with clean data
clean_data <- function(data = my_data) {
# Wrangle data
# ------------------------------------------------------------------------------
my_data_clean <- data %>%
# Remove "...17... | /R/clean_data.R | no_license | rforbiodatascience/barcc | R | false | false | 1,191 | r | #' clean data function
#'
#' This function takes in data and clean
#' @param data data input
#' @export
# function with clean data
clean_data <- function(data = my_data) {
# Wrangle data
# ------------------------------------------------------------------------------
my_data_clean <- data %>%
# Remove "...17... |
# .onLoad <- function(libname, pkgname) {
# require("methods", character=TRUE, quietly=TRUE)
# loadRcppModules()
# }
| /R/zzz.R | no_license | bgctw/twRCourses | R | false | false | 127 | r |
# .onLoad <- function(libname, pkgname) {
# require("methods", character=TRUE, quietly=TRUE)
# loadRcppModules()
# }
|
##' @include gcomponent.R
NULL
##' A panel to hold other JavaScript things
##'
##' This produces a widget holding a "div" tag that other JavaScript
##' libraries can use to place their content. There are a few
##' reference class methods that make this possible. The
##' \code{div_id} method returns the DOM id of the... | /R/gpanel.R | no_license | jverzani/gWidgetsWWW2.rapache | R | false | false | 4,860 | r | ##' @include gcomponent.R
NULL
##' A panel to hold other JavaScript things
##'
##' This produces a widget holding a "div" tag that other JavaScript
##' libraries can use to place their content. There are a few
##' reference class methods that make this possible. The
##' \code{div_id} method returns the DOM id of the... |
##Notes are paraphrased from Programming Assignment 2 exampl of Caching the Mean of a Vector. See
##https://class.coursera.org/rprog-006/human_grading/view/courses/972578/assessments/3/submissions
##makeCacheMatrix function creates a special "matrix" object that can cache its inverse.
##cacheSolve function computes th... | /cachematrix.R | no_license | mmpeces/ProgrammingAssignment2 | R | false | false | 1,805 | r | ##Notes are paraphrased from Programming Assignment 2 exampl of Caching the Mean of a Vector. See
##https://class.coursera.org/rprog-006/human_grading/view/courses/972578/assessments/3/submissions
##makeCacheMatrix function creates a special "matrix" object that can cache its inverse.
##cacheSolve function computes th... |
library(tidyverse)
library(ldshrink)
library(glue)
inputf <- snakemake@input[["inputf"]]
output_file <-snakemake@output[["outf_tf"]]
chunks <- as.integer(snakemake@params[["chunks"]])
stopifnot(length(chunks)==length(output_file),all(!is.na(chunks)))
#chunksize <- as.integer(... | /code/scripts/merge_split.R | no_license | CreRecombinase/PolygenicRSS | R | false | false | 2,319 | r |
library(tidyverse)
library(ldshrink)
library(glue)
inputf <- snakemake@input[["inputf"]]
output_file <-snakemake@output[["outf_tf"]]
chunks <- as.integer(snakemake@params[["chunks"]])
stopifnot(length(chunks)==length(output_file),all(!is.na(chunks)))
#chunksize <- as.integer(... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615837062-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,048 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
## read full dataset
data_pc <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data_pc$Date <- as.Date(data_pc$Date, format="%d/%m/%Y")
## subset the data
data <- subset(data_pc, subset=(Date >= "2007-02-0... | /plot1.R | no_license | mrvaughn/ExData_Plotting1 | R | false | false | 691 | r | ## read full dataset
data_pc <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data_pc$Date <- as.Date(data_pc$Date, format="%d/%m/%Y")
## subset the data
data <- subset(data_pc, subset=(Date >= "2007-02-0... |
#取得即時報價,詳細在技巧51
source("function.R")
#設定初始的資料格式
Qty <- matrix(, nrow = 0, ncol = 2)
while(TRUE){
#取得成交資訊
Mdata<-GetMatchData(DataPath,Date)
MatchAmount <- as.numeric(Mdata[[1]][4])
#設置方便進行判斷的時間格式
HMTime <- as.numeric(paste0(substr(Mdata[[1]][1],1,2),substr(Mdata[[1]][1],4,5)))
#若為初始值,即更新最新一筆資訊
if(nrow(Qty)=... | /交易實務案例/53.R | no_license | jtlai0921/Strategy_Sample_R | R | false | false | 769 | r | #取得即時報價,詳細在技巧51
source("function.R")
#設定初始的資料格式
Qty <- matrix(, nrow = 0, ncol = 2)
while(TRUE){
#取得成交資訊
Mdata<-GetMatchData(DataPath,Date)
MatchAmount <- as.numeric(Mdata[[1]][4])
#設置方便進行判斷的時間格式
HMTime <- as.numeric(paste0(substr(Mdata[[1]][1],1,2),substr(Mdata[[1]][1],4,5)))
#若為初始值,即更新最新一筆資訊
if(nrow(Qty)=... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/solver.R
\name{initRhoiPALM}
\alias{initRhoiPALM}
\title{initRhoiPALM}
\usage{
initRhoiPALM(Xs, Ys, Bs, Fs, Sk, sigma2, Wl, Wf, lambda, n, p)
}
\arguments{
\item{Xs}{eQTL matrices}
\item{Ys}{Gene expression matrices}
\item{Bs}{initialized G... | /man/initRhoiPALM.Rd | no_license | Ivis4ml/fssemR | R | false | true | 710 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/solver.R
\name{initRhoiPALM}
\alias{initRhoiPALM}
\title{initRhoiPALM}
\usage{
initRhoiPALM(Xs, Ys, Bs, Fs, Sk, sigma2, Wl, Wf, lambda, n, p)
}
\arguments{
\item{Xs}{eQTL matrices}
\item{Ys}{Gene expression matrices}
\item{Bs}{initialized G... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/max_MO2.R
\encoding{UTF-8}
\name{max_MO2}
\alias{max_MO2}
\title{Maximum MO2 supported by flow rate}
\usage{
max_MO2(flow_rate, min_pO2 = 90, pO2_in = 100, temp = 25, sal = 35,
atm_pres = 1013.25)
}
\arguments{
\item{flow_rate}{water flow r... | /respirometry_0.4.0/respirometry.Rcheck/00_pkg_src/respirometry/man/max_MO2.Rd | no_license | matthewabirk/respirometry | R | false | true | 1,962 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/max_MO2.R
\encoding{UTF-8}
\name{max_MO2}
\alias{max_MO2}
\title{Maximum MO2 supported by flow rate}
\usage{
max_MO2(flow_rate, min_pO2 = 90, pO2_in = 100, temp = 25, sal = 35,
atm_pres = 1013.25)
}
\arguments{
\item{flow_rate}{water flow r... |
testlist <- list(ExpressionSet = structure(c(3.10503529562433e+231, 1.23181983389617e+58, 5.00686373006785e+244, 6.36967296041789e+178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), Phylostratum = numeric(0))
result <- do.call(myTAI:::cpp_TAI,testlis... | /myTAI/inst/testfiles/cpp_TAI/AFL_cpp_TAI/cpp_TAI_valgrind_files/1615763424-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 334 | r | testlist <- list(ExpressionSet = structure(c(3.10503529562433e+231, 1.23181983389617e+58, 5.00686373006785e+244, 6.36967296041789e+178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), Phylostratum = numeric(0))
result <- do.call(myTAI:::cpp_TAI,testlis... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/copperr_opps.R
\name{cppr_updateOppStage}
\alias{cppr_updateOppStage}
\title{cppr_updateOppStage
Update the 'Stage' field of an Opportuntiy record}
\usage{
cppr_updateOppStage(id, stage_id)
}
\arguments{
\item{id}{numeric - Copper Id for the ... | /man/cppr_updateOppStage.Rd | no_license | fatkahawai/copperr | R | false | true | 1,505 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/copperr_opps.R
\name{cppr_updateOppStage}
\alias{cppr_updateOppStage}
\title{cppr_updateOppStage
Update the 'Stage' field of an Opportuntiy record}
\usage{
cppr_updateOppStage(id, stage_id)
}
\arguments{
\item{id}{numeric - Copper Id for the ... |
#############################################################################
## Sequential & parallel backward greedy search
#############################################################################
clvarselgrfwd <- function(X, G = 1:9,
emModels1 = c("E","V"),
... | /R/clvarselgrfwd.R | no_license | kfolw/clustvarsel | R | false | false | 18,606 | r | #############################################################################
## Sequential & parallel backward greedy search
#############################################################################
clvarselgrfwd <- function(X, G = 1:9,
emModels1 = c("E","V"),
... |
plot4 <- function(){
#pre-process of data
raw_data <- read.csv2("household_power_consumption.txt",na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F)
raw_data[,1] <- as.Date(raw_data[,1], format="%d/%m/%Y")
extracted_data <- subset(raw_data, subset=(raw_data[,1] >= "2007-02-01" & raw_data[,1]... | /plot4.R | no_license | steven157/ExData_Plotting1 | R | false | false | 1,293 | r | plot4 <- function(){
#pre-process of data
raw_data <- read.csv2("household_power_consumption.txt",na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F)
raw_data[,1] <- as.Date(raw_data[,1], format="%d/%m/%Y")
extracted_data <- subset(raw_data, subset=(raw_data[,1] >= "2007-02-01" & raw_data[,1]... |
## this function plots the second graph in the project and saves it to plot2.png
## dataDestination : give the destination of the dataset
library(data.table)
plot2 <- function(dataDestination){
# read the Data
colnames <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity"... | /plot2.R | no_license | stouhbi/ExData_Plotting1 | R | false | false | 1,042 | r | ## this function plots the second graph in the project and saves it to plot2.png
## dataDestination : give the destination of the dataset
library(data.table)
plot2 <- function(dataDestination){
# read the Data
colnames <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity"... |
## Modif
X_adult_Im<<-list()
for (i in 1:6) {
X_adult_Im[[i]]<-ppp(Fixations_coordx_adult_Im[[i]], Fixations_coordy_adult_Im[[i]], c(0,1024), c(0,768), unitname=c("pixels"))
}
### PPM
# Pour toutes les images, tous les groupes
ppmCarteSail_3m_Im <- list()
ppmCarteSail_6m_Im <- list()
ppmCarteSail_9m_Im <- list()
ppm... | /Stage-BabyLab/Codes/hyperframe.R | no_license | Twan76/R | R | false | false | 1,304,526 | r | ## Modif
X_adult_Im<<-list()
for (i in 1:6) {
X_adult_Im[[i]]<-ppp(Fixations_coordx_adult_Im[[i]], Fixations_coordy_adult_Im[[i]], c(0,1024), c(0,768), unitname=c("pixels"))
}
### PPM
# Pour toutes les images, tous les groupes
ppmCarteSail_3m_Im <- list()
ppmCarteSail_6m_Im <- list()
ppmCarteSail_9m_Im <- list()
ppm... |
equi.gene.norm <-
function (data.y, data.x, pi.start = 0.1, lambda.start = 0.9,
tolerance = 0.001, maxIter = 10, lemma.outdir = tempdir(),
lemma.tol = 1e-06, lemma.maxIts = 50000, lemma.plots = FALSE)
{
S <<- dim(data.y)[[1]]
n <<- dim(data.y)[[2]]
P <<- dim(data.y)[[3]]
data.y <- app... | /R/equi.gene.norm.R | no_license | cran/EquiNorm | R | false | false | 731 | r | equi.gene.norm <-
function (data.y, data.x, pi.start = 0.1, lambda.start = 0.9,
tolerance = 0.001, maxIter = 10, lemma.outdir = tempdir(),
lemma.tol = 1e-06, lemma.maxIts = 50000, lemma.plots = FALSE)
{
S <<- dim(data.y)[[1]]
n <<- dim(data.y)[[2]]
P <<- dim(data.y)[[3]]
data.y <- app... |
setwd("Z:/Documents/sdata_backup/Shen/iv.ABCD/release2.0.1/FamilialRisk_PGRS_MDD")
# Dot plot ----------------------------------------------------------------
library(dplyr)
library(ggplot2)
library(magrittr)
library(ggpubr)
library(cowplot)
# Settings
load('result/i.Main_result/famRisk_noSocialCov.RData')
targetd... | /script/Tables_figures/archiv/Figures_IMbulk_famRisk.R | permissive | yunyu118/ABCD_MDD_brain | R | false | false | 6,706 | r |
setwd("Z:/Documents/sdata_backup/Shen/iv.ABCD/release2.0.1/FamilialRisk_PGRS_MDD")
# Dot plot ----------------------------------------------------------------
library(dplyr)
library(ggplot2)
library(magrittr)
library(ggpubr)
library(cowplot)
# Settings
load('result/i.Main_result/famRisk_noSocialCov.RData')
targetd... |
test() {
*rc = msiget_current_stacktrace( *stktrace )
if (*rc == 0) {
writeLine("stdout", "----- Stacktrace OUTPUT from Microservice (BEGIN) ----- ")
writeLine("stdout", *stktrace )
writeLine("stdout", "----- Stacktrace OUTPUT from Microservice ( END ) ----- ")
}
else {
w... | /src/try_get_current_stacktrace.r | no_license | d-w-moore/msvc_get_current_stacktrace | R | false | false | 439 | r | test() {
*rc = msiget_current_stacktrace( *stktrace )
if (*rc == 0) {
writeLine("stdout", "----- Stacktrace OUTPUT from Microservice (BEGIN) ----- ")
writeLine("stdout", *stktrace )
writeLine("stdout", "----- Stacktrace OUTPUT from Microservice ( END ) ----- ")
}
else {
w... |
library(ggplot2)
# c=1
setwd("/Users/xinhuang/Documents/1st Year PhD/Zarlab/New MsCAVIAR simulation/c=1")
caviar_ASN_c1 <- read.table("R_caviar_ASN_config_size.txt", header = F)
caviar_EURO1_c1 <- read.table("R_caviar_EURO1_config_size.txt", header = F)
caviar_EURO2_c1 <- read.table("R_caviar_EURO2_config_size.txt", h... | /simulation_scripts/plot_setSize_together.R | no_license | nlapier2/mscaviar_replication | R | false | false | 3,784 | r | library(ggplot2)
# c=1
setwd("/Users/xinhuang/Documents/1st Year PhD/Zarlab/New MsCAVIAR simulation/c=1")
caviar_ASN_c1 <- read.table("R_caviar_ASN_config_size.txt", header = F)
caviar_EURO1_c1 <- read.table("R_caviar_EURO1_config_size.txt", header = F)
caviar_EURO2_c1 <- read.table("R_caviar_EURO2_config_size.txt", h... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/configureApp.R
\name{unsetProperty}
\alias{unsetProperty}
\title{Unset Application property}
\usage{
unsetProperty(
propertyName,
appPath = getwd(),
appName = NULL,
account = NULL,
force = FALSE
)
}
\arguments{
\item{propertyName}{N... | /man/unsetProperty.Rd | no_license | btongson/rsconnect | R | false | true | 937 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/configureApp.R
\name{unsetProperty}
\alias{unsetProperty}
\title{Unset Application property}
\usage{
unsetProperty(
propertyName,
appPath = getwd(),
appName = NULL,
account = NULL,
force = FALSE
)
}
\arguments{
\item{propertyName}{N... |
##' Simulation model 1
##'
##' Similar to the the RSSVD simulation model in Chen, Chan, Stenseth (2012),
##' JRSSB.
##'
##' @param n,p,q model dimensions
##' @param nrank model rank
##' @param s2n signal to noise ratio
##' @param sigma error variance. If specfied, then s2n has no effect
##' @param rho_X correlation par... | /R/sim.R | no_license | cran/rrpack | R | false | false | 15,399 | r | ##' Simulation model 1
##'
##' Similar to the the RSSVD simulation model in Chen, Chan, Stenseth (2012),
##' JRSSB.
##'
##' @param n,p,q model dimensions
##' @param nrank model rank
##' @param s2n signal to noise ratio
##' @param sigma error variance. If specfied, then s2n has no effect
##' @param rho_X correlation par... |
require(quantmod)
require(mxnet)
setwd('~/Documents/deeplearning.mxnet/LSTnet-predict/src/')
source("./lstnet_train.R")
data.preparation <- function(data,
seq.len,
horizon = 3,
splits = 0.8,
batch.si... | /LSTnet-predict/src/stock_algorithm.R | no_license | diyang/deeplearning.mxnet | R | false | false | 6,105 | r | require(quantmod)
require(mxnet)
setwd('~/Documents/deeplearning.mxnet/LSTnet-predict/src/')
source("./lstnet_train.R")
data.preparation <- function(data,
seq.len,
horizon = 3,
splits = 0.8,
batch.si... |
## Load your packages, e.g. library(targets).
source("./packages.R")
## Load your R files
lapply(list.files("./R", full.names = TRUE), source)
## tar_plan supports drake-style targets and also tar_target()
tar_plan(
# The url resource data
tar_target(Resource_Data_Url,
"https://raw.githubusercontent.com/matc... | /_targets.R | no_license | jhgille2/AstroneerData | R | false | false | 1,417 | r | ## Load your packages, e.g. library(targets).
source("./packages.R")
## Load your R files
lapply(list.files("./R", full.names = TRUE), source)
## tar_plan supports drake-style targets and also tar_target()
tar_plan(
# The url resource data
tar_target(Resource_Data_Url,
"https://raw.githubusercontent.com/matc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zchunk_L223.electricity_USA.R
\name{module_gcamusa_L223.electricity_USA}
\alias{module_gcamusa_L223.electricity_USA}
\title{module_gcam.usa_L223.electricity_USA}
\usage{
module_gcamusa_L223.electricity_USA(command, ...)
}
\arguments{
\item{co... | /man/module_gcamusa_L223.electricity_USA.Rd | permissive | dbwebhead/gcamdata | R | false | true | 2,438 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zchunk_L223.electricity_USA.R
\name{module_gcamusa_L223.electricity_USA}
\alias{module_gcamusa_L223.electricity_USA}
\title{module_gcam.usa_L223.electricity_USA}
\usage{
module_gcamusa_L223.electricity_USA(command, ...)
}
\arguments{
\item{co... |
\name{current.other}
\alias{current.other}
\docType{data}
\title{current.other dataset
}
\description{
An R object of class "list" containing Cumulative Incidence Function estimates for other cause (not lung cancer) mortality, for current smokers by age (5-years age group), gender ("male" or "female") and smoking... | /man/current.other.Rd | no_license | Qingys/MILC_backup | R | false | false | 1,191 | rd | \name{current.other}
\alias{current.other}
\docType{data}
\title{current.other dataset
}
\description{
An R object of class "list" containing Cumulative Incidence Function estimates for other cause (not lung cancer) mortality, for current smokers by age (5-years age group), gender ("male" or "female") and smoking... |
library(dplyr)
library(magrittr)
## get critical value for stratified_fisher_exact_test
## alpha: threshold of p-value, default 0.05
SFET_c_alpha <- function(strata, treatment, nsubjects, nresponders,
case, data = NULL, side = c("up"), alpha = .05){
nstrata <- strata %>% unique() %>% leng... | /SFET/R/SFET_calpha.R | no_license | KenLi93/Stratified-Fisher-Exact-Test | R | false | false | 3,791 | r |
library(dplyr)
library(magrittr)
## get critical value for stratified_fisher_exact_test
## alpha: threshold of p-value, default 0.05
SFET_c_alpha <- function(strata, treatment, nsubjects, nresponders,
case, data = NULL, side = c("up"), alpha = .05){
nstrata <- strata %>% unique() %>% leng... |
library(rfigshare)
### Name: fs_delete
### Title: Delete article (private or drafts only) or attached file
### Aliases: fs_delete
### ** Examples
## Not run:
##D fs_delete(123)
##D
##D ## Delete all attachments in the second-most-recent entry in my library
##D my_lib <- fs_browse(mine=TRUE)
##D article_id <- my_l... | /data/genthat_extracted_code/rfigshare/examples/fs_delete.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 473 | r | library(rfigshare)
### Name: fs_delete
### Title: Delete article (private or drafts only) or attached file
### Aliases: fs_delete
### ** Examples
## Not run:
##D fs_delete(123)
##D
##D ## Delete all attachments in the second-most-recent entry in my library
##D my_lib <- fs_browse(mine=TRUE)
##D article_id <- my_l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dyadic_trade-data.R
\docType{data}
\name{dyadic_trade}
\alias{dyadic_trade}
\title{Dyadic Trade Data}
\format{A data frame with 540,507 rows and 9 variables:
\describe{
\item{ccode1}{Correlates of War Country Code for State A}
\item{ccode... | /man/dyadic_trade.Rd | no_license | abarylsky/dyadr | R | false | true | 1,228 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dyadic_trade-data.R
\docType{data}
\name{dyadic_trade}
\alias{dyadic_trade}
\title{Dyadic Trade Data}
\format{A data frame with 540,507 rows and 9 variables:
\describe{
\item{ccode1}{Correlates of War Country Code for State A}
\item{ccode... |
# A simple R script to illustrate R input-output.
# Run line by line and check inputs outputs to understand what is happening
MyData <- read.csv("../data/trees.csv", header = TRUE) # import with headers
write.csv(MyData, "../results/MyData.csv") #write it out as a new file
write.table(MyData[1,], file = "../res... | /content/code/basic_io.R | permissive | joseph-palmer/TheMulQuaBio | R | false | false | 536 | r | # A simple R script to illustrate R input-output.
# Run line by line and check inputs outputs to understand what is happening
MyData <- read.csv("../data/trees.csv", header = TRUE) # import with headers
write.csv(MyData, "../results/MyData.csv") #write it out as a new file
write.table(MyData[1,], file = "../res... |
## Not a great name, but this section will create the code that *will*
## be compiled (i.e., the C sources). The name can get picked up
## later.
generate_c_compiled <- function(eqs, dat, rewrite) {
core <- list(get_internal = generate_c_compiled_get_internal(dat),
finalise = generate_c_compiled_final... | /R/generate_c_compiled.R | no_license | GoldyS/odin | R | false | false | 27,058 | r | ## Not a great name, but this section will create the code that *will*
## be compiled (i.e., the C sources). The name can get picked up
## later.
generate_c_compiled <- function(eqs, dat, rewrite) {
core <- list(get_internal = generate_c_compiled_get_internal(dat),
finalise = generate_c_compiled_final... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is_taxon_attribute.R
\name{is_taxon_attribute}
\alias{is_taxon_attribute}
\alias{is_taxonlevel}
\alias{is_taxontype}
\alias{is_status}
\title{Test of een taxon een bepaald attribuut heeft.}
\usage{
is_taxonlevel(taxa, taxonlevel = NULL)
is_t... | /man/is_taxon_attribute.Rd | permissive | RedTent/twn | R | false | true | 1,391 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is_taxon_attribute.R
\name{is_taxon_attribute}
\alias{is_taxon_attribute}
\alias{is_taxonlevel}
\alias{is_taxontype}
\alias{is_status}
\title{Test of een taxon een bepaald attribuut heeft.}
\usage{
is_taxonlevel(taxa, taxonlevel = NULL)
is_t... |
getBestFit <- function(df,CondCodeName,CutOff,slope1,int1,brk,slope2){
# --------------------------------------------
# Input:
# df : the complete tests data frame
# CondCodeName : test condition of interest
# GroupName : group of interest
#
# Optional inputs for broken lines fit.
# nls()... | /functions/getBestFit.R | no_license | ShiranKoifman/oxforddown | R | false | false | 15,002 | r | getBestFit <- function(df,CondCodeName,CutOff,slope1,int1,brk,slope2){
# --------------------------------------------
# Input:
# df : the complete tests data frame
# CondCodeName : test condition of interest
# GroupName : group of interest
#
# Optional inputs for broken lines fit.
# nls()... |
myspline <- function( inputtime, inputdata, cop ) {
# This function splines a time series
# 20.7.2000 JF
# Weight is included in the error delta_y (see Enting 1983 JGR for details)
# Data must be in a text file with 3 columns: x y delta_y
# No header in the file!
# num_p: number of data points
# x_d: x-value... | /R/myspline.R | no_license | stineb/multiGHG | R | false | false | 1,905 | r | myspline <- function( inputtime, inputdata, cop ) {
# This function splines a time series
# 20.7.2000 JF
# Weight is included in the error delta_y (see Enting 1983 JGR for details)
# Data must be in a text file with 3 columns: x y delta_y
# No header in the file!
# num_p: number of data points
# x_d: x-value... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{read_matlab}
\alias{read_matlab}
\title{Read a matlab file and return the first element or the specified element}
\usage{
read_matlab(filename, elem = 1)
}
\arguments{
\item{filename}{the fully qualified file path}
\item{elem}{cha... | /man/read_matlab.Rd | permissive | BigelowLab/sinkrtools | R | false | true | 541 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{read_matlab}
\alias{read_matlab}
\title{Read a matlab file and return the first element or the specified element}
\usage{
read_matlab(filename, elem = 1)
}
\arguments{
\item{filename}{the fully qualified file path}
\item{elem}{cha... |
library(vip)
### Name: vi_permute
### Title: Permutation-Based Variable Importance
### Aliases: vi_permute vi_permute.default
### ** Examples
## Not run:
##D # Load required packages
##D library(ggplot2) # for ggtitle() function
##D library(mlbench) # for ML benchmark data sets
##D library(nnet) # for fittin... | /data/genthat_extracted_code/vip/examples/vi_permute.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,642 | r | library(vip)
### Name: vi_permute
### Title: Permutation-Based Variable Importance
### Aliases: vi_permute vi_permute.default
### ** Examples
## Not run:
##D # Load required packages
##D library(ggplot2) # for ggtitle() function
##D library(mlbench) # for ML benchmark data sets
##D library(nnet) # for fittin... |
library(dplyr)
library(tidyr)
library(readxl)
library(stringr)
library(purrr)
Sys.setlocale('LC_ALL','English')
input <- "E:/PD - NBA Results.xlsx"
team_list <- read_excel(input,'Team List') %>% select(c('Team','Conference'))
final <- input %>% excel_sheets() %>% .[grepl('Results$',.)] %>%
map_df(~ read_excel(path... | /2020/2020W03/preppindataw03.R | no_license | ArseneXie/Preppindata | R | false | false | 2,554 | r | library(dplyr)
library(tidyr)
library(readxl)
library(stringr)
library(purrr)
Sys.setlocale('LC_ALL','English')
input <- "E:/PD - NBA Results.xlsx"
team_list <- read_excel(input,'Team List') %>% select(c('Team','Conference'))
final <- input %>% excel_sheets() %>% .[grepl('Results$',.)] %>%
map_df(~ read_excel(path... |
#### Installing and opening packages ####
#install.packages("rgdal")
#install.packages("maptools")
#install.packages("ggmap")
#install.packages
#install.packages("psych")
#install.packages("GISTools")
#install.packages("tripack")
#install.packages("spam")
#install.packages("spdep")
#install.packages("stargazer")
libra... | /Calculating_SAI.R | no_license | cwonderly19/Health_Disparities | R | false | false | 9,605 | r | #### Installing and opening packages ####
#install.packages("rgdal")
#install.packages("maptools")
#install.packages("ggmap")
#install.packages
#install.packages("psych")
#install.packages("GISTools")
#install.packages("tripack")
#install.packages("spam")
#install.packages("spdep")
#install.packages("stargazer")
libra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Design.R
\name{alignedToInferentials}
\alias{alignedToInferentials}
\title{Align to Inferentials}
\usage{
alignedToInferentials(alignedcovs)
}
\arguments{
\item{alignedcovs}{An AlignedCovs object}
}
\value{
list
}
\description{
Align to Infer... | /man/alignedToInferentials.Rd | no_license | benbhansen-stats/RItools | R | false | true | 331 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Design.R
\name{alignedToInferentials}
\alias{alignedToInferentials}
\title{Align to Inferentials}
\usage{
alignedToInferentials(alignedcovs)
}
\arguments{
\item{alignedcovs}{An AlignedCovs object}
}
\value{
list
}
\description{
Align to Infer... |
#------------------------------------------------------------------------------#
# Predictor measurement heterogeneity empirical
# K Luijken
#
# Helper functions to aggregate information from bootstrap repetitions to
# summary measures
#------------------------------------------------------------------------------#
... | /rcode/visualisation/helper/process_analysis_results.R | permissive | minghao2016/Prediction_Measurement_Heterogeneity_Examples | R | false | false | 6,038 | r | #------------------------------------------------------------------------------#
# Predictor measurement heterogeneity empirical
# K Luijken
#
# Helper functions to aggregate information from bootstrap repetitions to
# summary measures
#------------------------------------------------------------------------------#
... |
SmoothWin = function(t ,
x ,
y ,
m ,
l = Smo... | /R/main.R | no_license | Hamedhm/SmoothWin-1 | R | false | false | 5,815 | r | SmoothWin = function(t ,
x ,
y ,
m ,
l = Smo... |
###updated 8.7.19
library(raster)
library(rgdal)
library(ggplot2)
library(maptools)
library(maps)
data(wrld_simpl)
library(gridExtra)
library(plyr)
library(dismo)
library(viridis)
library(RColorBrewer)
data(wrld_simpl)
library(rgeos)
sorg <- raster('/Users/emilywork/Desktop/ENM/distModel7.30/preds.sorg.tif', header=T)... | /Fig2/lgs1_WRS.R | no_license | em-bellis/Sorghum-LGS1 | R | false | false | 3,541 | r | ###updated 8.7.19
library(raster)
library(rgdal)
library(ggplot2)
library(maptools)
library(maps)
data(wrld_simpl)
library(gridExtra)
library(plyr)
library(dismo)
library(viridis)
library(RColorBrewer)
data(wrld_simpl)
library(rgeos)
sorg <- raster('/Users/emilywork/Desktop/ENM/distModel7.30/preds.sorg.tif', header=T)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/InterVA4_1.7-package.R
\docType{package}
\name{InterVA4-package}
\alias{InterVA4-package}
\alias{InterVA4}
\title{Perform InterVA4 algorithm and provide graphical summarization of COD
distribution.}
\description{
Computes individual cause of ... | /man/InterVA4-package.Rd | no_license | verbal-autopsy-software/InterVA4 | R | false | true | 1,034 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/InterVA4_1.7-package.R
\docType{package}
\name{InterVA4-package}
\alias{InterVA4-package}
\alias{InterVA4}
\title{Perform InterVA4 algorithm and provide graphical summarization of COD
distribution.}
\description{
Computes individual cause of ... |
correlation <- function(data,path=NULL,method='pearson',outputpath){
network <- cor(data,method='pearson')
save(network,file=paste0(outputpath,'result_correlation.rda'))
} | /R/correlation.R | no_license | liuyushi/metanetwork-1 | R | false | false | 175 | r | correlation <- function(data,path=NULL,method='pearson',outputpath){
network <- cor(data,method='pearson')
save(network,file=paste0(outputpath,'result_correlation.rda'))
} |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /_check/test_code/care/r_codes/pctPOP_insurance_diab_foot_2007.R | permissive | HHS-AHRQ/MEPS-summary-tables | R | false | false | 3,048 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
library(readr)
lab<-read.csv(file.choose())
stacked_data=stack(lab)
summary(stacked_data)
library(nortest)
ad.test(stacked_data$values)
#p value is slightly greater than 0.05 hence it follows normal distribution.
Anovaresults<-aov(values ~ ind, data = stacked_data)
summary(Anovaresults)
#here p value is less... | /hypothesis r/labtest.R | no_license | sravankumarreddy9/Datascience-assignments | R | false | false | 494 | r | library(readr)
lab<-read.csv(file.choose())
stacked_data=stack(lab)
summary(stacked_data)
library(nortest)
ad.test(stacked_data$values)
#p value is slightly greater than 0.05 hence it follows normal distribution.
Anovaresults<-aov(values ~ ind, data = stacked_data)
summary(Anovaresults)
#here p value is less... |
Scripts = read_csv("C:/Users/masha/OneDrive - Victoria University/R ladies/the-simpsons-by-the-data/simpsons_script_lines.csv")
Characters = read_csv("C:/Users/masha/OneDrive - Victoria University/R ladies/the-simpsons-by-the-data/simpsons_characters.csv")
Scripts$character_id = as.integer(Scripts$character_id)
... | /simpson pre.R | no_license | R-forks-to-learn/2018-04-17_Text_Aanalysis_in_R | R | false | false | 3,902 | r | Scripts = read_csv("C:/Users/masha/OneDrive - Victoria University/R ladies/the-simpsons-by-the-data/simpsons_script_lines.csv")
Characters = read_csv("C:/Users/masha/OneDrive - Victoria University/R ladies/the-simpsons-by-the-data/simpsons_characters.csv")
Scripts$character_id = as.integer(Scripts$character_id)
... |
##########################################################
# #
# BA Econonomics: #
# "The political economy of appliance replacement #
# programs for low-income households: #
# An empirical stud... | /BA-Economics/Analysis.R | no_license | hieronymusBusch/BA-Economics | R | false | false | 9,012 | r | ##########################################################
# #
# BA Econonomics: #
# "The political economy of appliance replacement #
# programs for low-income households: #
# An empirical stud... |
#Viola-Jones Face Recognition - Classifier Cascade
#Inputs: class.list (Strong Classifier List), feattbl (Feature Table), haar.mat (Haar Assignments), scale (scan size)
#Data Files: portrait.jpg (Test Image)
#Functions: feat.val1, feat.val2, feat.val3, feat.val4
classcascade <- function(class.list,feattbl,haar.mat,sca... | /FaceRecognition/R_scripts/5_ClassifierCascade.R | no_license | bcnotario/ML_Projects | R | false | false | 2,238 | r | #Viola-Jones Face Recognition - Classifier Cascade
#Inputs: class.list (Strong Classifier List), feattbl (Feature Table), haar.mat (Haar Assignments), scale (scan size)
#Data Files: portrait.jpg (Test Image)
#Functions: feat.val1, feat.val2, feat.val3, feat.val4
classcascade <- function(class.list,feattbl,haar.mat,sca... |
lakeStations <- read_csv('processedStationData/final2020data/lakeStations2020_BRRO_citmonNonAgency.csv')
lake_filter <- filter(lakeStations, SIGLAKENAME == 'Leesville Reservoir')
conventionals_Lake <- filter(conventionals, FDT_STA_ID %in% unique(lake_filter$FDT_STA_ID)) %>%
left_join(dplyr::select(lakeStations, F... | /app2020/LakeAssessmentApp_v2/buildAppModules/buildEColiModule.R | no_license | EmmaVJones/LakesAssessment2020 | R | false | false | 26,570 | r | lakeStations <- read_csv('processedStationData/final2020data/lakeStations2020_BRRO_citmonNonAgency.csv')
lake_filter <- filter(lakeStations, SIGLAKENAME == 'Leesville Reservoir')
conventionals_Lake <- filter(conventionals, FDT_STA_ID %in% unique(lake_filter$FDT_STA_ID)) %>%
left_join(dplyr::select(lakeStations, F... |
\name{burt}
\alias{burt}
\title{Burt table}
\description{Computes a Burt table from a data frame composed of categorical variables.}
\usage{burt(data)}
\arguments{
\item{data}{data frame with n rows (individuals) and p columns (categorical variables)}
}
\details{
A Burt table is a symmetric table that is used i... | /man/burt.Rd | no_license | nicolas-robette/GDAtools | R | false | false | 1,124 | rd | \name{burt}
\alias{burt}
\title{Burt table}
\description{Computes a Burt table from a data frame composed of categorical variables.}
\usage{burt(data)}
\arguments{
\item{data}{data frame with n rows (individuals) and p columns (categorical variables)}
}
\details{
A Burt table is a symmetric table that is used i... |
# HW 2
# Graphics Skills
# Due Thursday February 12th by midnight
# This .R file should contain your code and answers to questions
# The goals of this assignment are to:
# 1. Become familiar with the variety of plotting functions available in R,
# 2. Learn which types of plots are appropriate for which types of data... | /hw2/hw2.r | no_license | gkaifei/stat133 | R | false | false | 20,258 | r | # HW 2
# Graphics Skills
# Due Thursday February 12th by midnight
# This .R file should contain your code and answers to questions
# The goals of this assignment are to:
# 1. Become familiar with the variety of plotting functions available in R,
# 2. Learn which types of plots are appropriate for which types of data... |
# Joy Kumagai
# Date: March 2021
# Calculating Habitat Protection Indexes Script
# Marine Habitat Protection Indicator
##### Load Packages ######
library(tidyverse)
library(sf)
library(raster)
##### Load Data ######
eez_land <- read_sf("Data_original/eez_land/EEZ_Land_v3_202030.shp") %>% # necessary to join data
... | /Scripts/08_IndexesCalculations.R | no_license | Fabbiologia/Marine_Habitat_protection | R | false | false | 4,416 | r | # Joy Kumagai
# Date: March 2021
# Calculating Habitat Protection Indexes Script
# Marine Habitat Protection Indicator
##### Load Packages ######
library(tidyverse)
library(sf)
library(raster)
##### Load Data ######
eez_land <- read_sf("Data_original/eez_land/EEZ_Land_v3_202030.shp") %>% # necessary to join data
... |
#this also must be saved
ab<-78
ab
wiss<-99
wiss
nat<-102
nat
| /TextFile2.R | no_license | Wissamkahi/SecondRSandbox | R | false | false | 63 | r | #this also must be saved
ab<-78
ab
wiss<-99
wiss
nat<-102
nat
|
aa <- dev.list()
if (length(aa) != 0) {
dev.off(dev.list()["RStudioGD"])
}
old_path <- getwd()
lesson_dir <- file.path(path.package("swirl"), "Courses",
"Introducao_a_Estatistica_para_Linguistas", "Estatistica_Descritiva_de_Variaveis_Numericas_Graficos")
setwd(lesson_dir)
#data_path <- fil... | /Estatistica_Descritiva_de_Variaveis_Numericas_Graficos/mostrar-imagem-bp1.R | permissive | oushiro/Introducao_a_Estatistica_para_Linguistas | R | false | false | 482 | r | aa <- dev.list()
if (length(aa) != 0) {
dev.off(dev.list()["RStudioGD"])
}
old_path <- getwd()
lesson_dir <- file.path(path.package("swirl"), "Courses",
"Introducao_a_Estatistica_para_Linguistas", "Estatistica_Descritiva_de_Variaveis_Numericas_Graficos")
setwd(lesson_dir)
#data_path <- fil... |
# Prepare data structure for TMB population model:
data <- list()
data$years <- 1973:2016
data$n_year <- length(data$years) # Number of years in analysis.
# Fishery total landings in MT by year (1973-2016):
data$C <- c(2300,1920,2010,2407,1235,1121,1585,1976,1941,2305,1799,149,1180,2044,
18... | /WFL Data Inputs.R | no_license | rollandn/NAFO-4T-WinterFlounder-SCA-2016 | R | false | false | 32,586 | r | # Prepare data structure for TMB population model:
data <- list()
data$years <- 1973:2016
data$n_year <- length(data$years) # Number of years in analysis.
# Fishery total landings in MT by year (1973-2016):
data$C <- c(2300,1920,2010,2407,1235,1121,1585,1976,1941,2305,1799,149,1180,2044,
18... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.cbenefit.R
\name{print.cbenefit}
\alias{print.cbenefit}
\title{Print cbenefit objects}
\usage{
\method{print}{cbenefit}(x, ...)
}
\arguments{
\item{x}{An object of class cbenefit}
\item{...}{Does nothing at this point}
}
\value{
Nothin... | /man/print.cbenefit.Rd | no_license | tbalan/cbenefit | R | false | true | 549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.cbenefit.R
\name{print.cbenefit}
\alias{print.cbenefit}
\title{Print cbenefit objects}
\usage{
\method{print}{cbenefit}(x, ...)
}
\arguments{
\item{x}{An object of class cbenefit}
\item{...}{Does nothing at this point}
}
\value{
Nothin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GenerateExternalQuestion.R
\name{GenerateExternalQuestion}
\alias{GenerateExternalQuestion}
\title{Generate ExternalQuestion}
\usage{
GenerateExternalQuestion(url, frame.height = 400)
}
\arguments{
\item{url}{A character string containing the... | /man/GenerateExternalQuestion.Rd | no_license | cloudyr/pyMTurkR | R | false | true | 2,042 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GenerateExternalQuestion.R
\name{GenerateExternalQuestion}
\alias{GenerateExternalQuestion}
\title{Generate ExternalQuestion}
\usage{
GenerateExternalQuestion(url, frame.height = 400)
}
\arguments{
\item{url}{A character string containing the... |
# install.packages("Hmisc")
library(Hmisc)
library(reshape)
library(plyr)
whole_data = read.csv('/home/ndssl/Desktop/Technet_final_database.csv', header=T)
#rename contacts and responses for whole data (not site specific)
#done in python:
chief = whole_data[5:11]
farmer = whole_data[12:18]
neighbor = whole_data[19:2... | /newtechnet.R | no_license | jlgunter/ebola | R | false | false | 64,547 | r | # install.packages("Hmisc")
library(Hmisc)
library(reshape)
library(plyr)
whole_data = read.csv('/home/ndssl/Desktop/Technet_final_database.csv', header=T)
#rename contacts and responses for whole data (not site specific)
#done in python:
chief = whole_data[5:11]
farmer = whole_data[12:18]
neighbor = whole_data[19:2... |
library(ggplot2)
# carga de dados e eliminacao de outliers
load("data//20140917_imoveis_filtrados.Rda")
data <- imoveis_filtrados
sapply(data, summary)
data <- subset(data, data$area > 10)
data <- subset(data, data$suites < 11)
data <- subset(data, data$area < 300)
data$bairro <- factor(data$bairro)
# plot dos dados... | /scripts/analise_imoveis_filtrados.R | permissive | nitanilla/predictRealEstatePrice | R | false | false | 1,081 | r | library(ggplot2)
# carga de dados e eliminacao de outliers
load("data//20140917_imoveis_filtrados.Rda")
data <- imoveis_filtrados
sapply(data, summary)
data <- subset(data, data$area > 10)
data <- subset(data, data$suites < 11)
data <- subset(data, data$area < 300)
data$bairro <- factor(data$bairro)
# plot dos dados... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.