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/deploy_app.R
\name{deploy_app}
\alias{deploy_app}
\title{Deploy Shiny application}
\usage{
deploy_app(
env = "production",
deployed_dir_name,
instance_name,
project_id,
project_zone,
gcloud = NULL,
app_dir = "shiny_app"
)
}
\arg... | /man/deploy_app.Rd | permissive | Tychobra/tychobratools | R | false | true | 1,426 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deploy_app.R
\name{deploy_app}
\alias{deploy_app}
\title{Deploy Shiny application}
\usage{
deploy_app(
env = "production",
deployed_dir_name,
instance_name,
project_id,
project_zone,
gcloud = NULL,
app_dir = "shiny_app"
)
}
\arg... |
# Salary and Income
df$AGE<-2010-df$BIRTHYR # other age varaible is cut in intervals for some reason
df<- df %>%
mutate(CARNEGIE = recode(CARNEGIE, `RU/VH: Research Universities (very high research activity)`="R1",
`RU/H: Research Universities (high research activity)`="R2", ... | /munge/03_Recode_HERI.R | no_license | chadgevans/Faculty_Classification | R | false | false | 9,146 | r | # Salary and Income
df$AGE<-2010-df$BIRTHYR # other age varaible is cut in intervals for some reason
df<- df %>%
mutate(CARNEGIE = recode(CARNEGIE, `RU/VH: Research Universities (very high research activity)`="R1",
`RU/H: Research Universities (high research activity)`="R2", ... |
options(warn=1)
library(optparse)
option_list <- list(
make_option("--patient", type="character", help="patient ID"),
make_option("--diagnosis", type="character", help="diagnosis coverage data file"),
make_option("--relapse", type="character", help="relapse coverage data file"),
make_option("--remission", type... | /cnv/cov-plot-exome.R | no_license | Gig77/ccri-hdall | R | false | false | 2,979 | r | options(warn=1)
library(optparse)
option_list <- list(
make_option("--patient", type="character", help="patient ID"),
make_option("--diagnosis", type="character", help="diagnosis coverage data file"),
make_option("--relapse", type="character", help="relapse coverage data file"),
make_option("--remission", type... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iSEE-main.R
\name{iSEE}
\alias{iSEE}
\title{iSEE: interactive SummarizedExperiment/SingleCellExperiment Explorer}
\usage{
iSEE(se, redDimArgs = NULL, colDataArgs = NULL, featAssayArgs = NULL,
rowStatArgs = NULL, rowDataArgs = NULL, sampAssa... | /man/iSEE.Rd | permissive | shenyang1981/iSEE | R | false | true | 8,607 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iSEE-main.R
\name{iSEE}
\alias{iSEE}
\title{iSEE: interactive SummarizedExperiment/SingleCellExperiment Explorer}
\usage{
iSEE(se, redDimArgs = NULL, colDataArgs = NULL, featAssayArgs = NULL,
rowStatArgs = NULL, rowDataArgs = NULL, sampAssa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract-tools.R
\name{extract_organism}
\alias{extract_organism}
\title{Extract organism}
\usage{
extract_organism(record)
}
\arguments{
\item{record}{GenBank record in text format, character}
}
\value{
character
}
\description{
Return organi... | /man/extract_organism.Rd | permissive | ropensci/restez | R | false | true | 2,514 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract-tools.R
\name{extract_organism}
\alias{extract_organism}
\title{Extract organism}
\usage{
extract_organism(record)
}
\arguments{
\item{record}{GenBank record in text format, character}
}
\value{
character
}
\description{
Return organi... |
################
require("mvtnorm")
binommh <- function(y,...) UseMethod("binommh")
binommh.default<-function(y,m,X,b=rep(0,dim(X)[2]),B=diag(rep(10000,dim(X)[2])),N=3000,flag=F,...){
########utility functions
yhat<-function(y,X,bta,W_n=1,mu_n){drop(X%*%bta+(y-mu_n)/W_n)}
btahat<-function(yhat_n,X,W_n=1){dr... | /bglm/R/bglm_v3.R | no_license | ingted/R-Examples | R | false | false | 6,106 | r | ################
require("mvtnorm")
binommh <- function(y,...) UseMethod("binommh")
binommh.default<-function(y,m,X,b=rep(0,dim(X)[2]),B=diag(rep(10000,dim(X)[2])),N=3000,flag=F,...){
########utility functions
yhat<-function(y,X,bta,W_n=1,mu_n){drop(X%*%bta+(y-mu_n)/W_n)}
btahat<-function(yhat_n,X,W_n=1){dr... |
data=iris
View(iris)
library(ggplot2)
a=ggplot(data,aes(Petal.Length,Petal.Width)) + geom_point(aes(col=Species))
library(plotly)
ggplotly(a) #To make it more interactive
b=plot_ly(iris,x = ~Sepal.Length,y = ~Sepal.Width,color = ~Species)
b
#Plotly website | /GGPLOTLY.R | no_license | sarthakverma11/R-shiny | R | false | false | 270 | r | data=iris
View(iris)
library(ggplot2)
a=ggplot(data,aes(Petal.Length,Petal.Width)) + geom_point(aes(col=Species))
library(plotly)
ggplotly(a) #To make it more interactive
b=plot_ly(iris,x = ~Sepal.Length,y = ~Sepal.Width,color = ~Species)
b
#Plotly website |
expand_helper <- function(x) {
if (is.na(x)) {
integer(0L)
} else {
as.integer(substring(x, seq(nchar(x)), seq(nchar(x))))
}
}
expand_digits <- function(v) {
base::Reduce(c, base::lapply(v, expand_helper))
}
mul_isin_f <- function(v) {
v * rev(rep(c(2L, 1L), length.out = length(v)))
}
isin_compute_... | /R/isin.R | permissive | philaris/figir | R | false | false | 1,518 | r | expand_helper <- function(x) {
if (is.na(x)) {
integer(0L)
} else {
as.integer(substring(x, seq(nchar(x)), seq(nchar(x))))
}
}
expand_digits <- function(v) {
base::Reduce(c, base::lapply(v, expand_helper))
}
mul_isin_f <- function(v) {
v * rev(rep(c(2L, 1L), length.out = length(v)))
}
isin_compute_... |
\name{r_from_tcmd}
\alias{r_from_tcmd}
\title{Internal anRpackage objects}
\description{Internal anRpackage objects.}
\details{These are not to be called by the user.}
\keyword{internal} | /man/r_from_tcmd.Rd | no_license | cran/RcmdrPlugin.MA | R | false | false | 191 | rd | \name{r_from_tcmd}
\alias{r_from_tcmd}
\title{Internal anRpackage objects}
\description{Internal anRpackage objects.}
\details{These are not to be called by the user.}
\keyword{internal} |
#' Upper Level Set Spatial Scan Test
#'
#' \code{uls.test} performs the Upper Level Set (ULS)
#' spatial scan test of Patil and Taillie (2004). The test
#' is performed using the spatial scan test based on a fixed
#' number of cases. The windows are based on the Upper
#' Level Sets proposed by Patil and Taillie... | /R/uls.test.R | no_license | cran/smerc | R | false | false | 4,919 | r | #' Upper Level Set Spatial Scan Test
#'
#' \code{uls.test} performs the Upper Level Set (ULS)
#' spatial scan test of Patil and Taillie (2004). The test
#' is performed using the spatial scan test based on a fixed
#' number of cases. The windows are based on the Upper
#' Level Sets proposed by Patil and Taillie... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coverage.R
\name{addin_extract_covr}
\alias{addin_extract_covr}
\title{Add-in for Extract & Coverage}
\usage{
addin_extract_covr()
}
\description{
Add-in for Extract & Coverage
}
| /man/addin_extract_covr.Rd | no_license | yanggenome/testextra | R | false | true | 257 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coverage.R
\name{addin_extract_covr}
\alias{addin_extract_covr}
\title{Add-in for Extract & Coverage}
\usage{
addin_extract_covr()
}
\description{
Add-in for Extract & Coverage
}
|
#' Separate a Column Pasted by paste2
#'
#' Separates a \code{\link[qdap]{paste2}} column into separate columns.
#'
#' @param column The pasted vector.
#' @param col.sep The column separator used in \code{paste2}.
#' @param name.sep Name separator used in the column (generally for internal use
#' with \code{\link[qd... | /R/colSplit.R | no_license | cran/qdap | R | false | false | 1,366 | r | #' Separate a Column Pasted by paste2
#'
#' Separates a \code{\link[qdap]{paste2}} column into separate columns.
#'
#' @param column The pasted vector.
#' @param col.sep The column separator used in \code{paste2}.
#' @param name.sep Name separator used in the column (generally for internal use
#' with \code{\link[qd... |
\name{LCHab2Lab}
\alias{LCHab2Lab}
\title{Convert LCHab coordinates to CIE Lab}
\description{\code{LCHab2Lab} Converts LCHab coordinates to CIE Lab.
}
\usage{LCHab2Lab(LCHabmatrix) }
\arguments{
\item{LCHabmatrix}{ LCHab coordinates}
}
\value{
CIE Lab coordinates
}
\source{
Logicol S.r.l., 2014
EasyRGB color search... | /man/LCHab2Lab.Rd | no_license | playwar/colorscience | R | false | false | 550 | rd | \name{LCHab2Lab}
\alias{LCHab2Lab}
\title{Convert LCHab coordinates to CIE Lab}
\description{\code{LCHab2Lab} Converts LCHab coordinates to CIE Lab.
}
\usage{LCHab2Lab(LCHabmatrix) }
\arguments{
\item{LCHabmatrix}{ LCHab coordinates}
}
\value{
CIE Lab coordinates
}
\source{
Logicol S.r.l., 2014
EasyRGB color search... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/softlayer-ranges.R
\name{softlayer_ranges}
\alias{softlayer_ranges}
\title{Softlayer ranges}
\usage{
softlayer_ranges(method = c("asn", "list"))
}
\arguments{
\item{method}{if \code{list}, this method will use the HTML published ranges; if
\c... | /man/softlayer_ranges.Rd | no_license | isabella232/cloudcidrs | R | false | true | 1,252 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/softlayer-ranges.R
\name{softlayer_ranges}
\alias{softlayer_ranges}
\title{Softlayer ranges}
\usage{
softlayer_ranges(method = c("asn", "list"))
}
\arguments{
\item{method}{if \code{list}, this method will use the HTML published ranges; if
\c... |
##
# Author: Autogenerated on 2013-11-27 18:13:59
# gitHash: c4ad841105ba82f4a3979e4cf1ae7e20a5905e59
# SEED: 4663640625336856642
##
source('./findNSourceUtils.R')
Log.info("======================== Begin Test ==========================... | /R/tests/testdir_autoGen/runit_complexFilterTest_failtoconverge_1000x501_148.R | permissive | hardikk/h2o | R | false | false | 3,538 | r | ##
# Author: Autogenerated on 2013-11-27 18:13:59
# gitHash: c4ad841105ba82f4a3979e4cf1ae7e20a5905e59
# SEED: 4663640625336856642
##
source('./findNSourceUtils.R')
Log.info("======================== Begin Test ==========================... |
library(timeR)
### Name: getTimer
### Title: Get the data frame in timer object
### Aliases: getTimer
### ** Examples
timer1 <- createTimer()
timer1$start("event1")
Sys.sleep(1)
timer1$stop("event1")
getTimer(timer1)
| /data/genthat_extracted_code/timeR/examples/getTimer.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 224 | r | library(timeR)
### Name: getTimer
### Title: Get the data frame in timer object
### Aliases: getTimer
### ** Examples
timer1 <- createTimer()
timer1$start("event1")
Sys.sleep(1)
timer1$stop("event1")
getTimer(timer1)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nabat_gql_queries.R
\name{get_presigned_data}
\alias{get_presigned_data}
\title{Get presigned data}
\usage{
get_presigned_data(
project_id,
token,
branch = "beta",
url = NULL,
aws_gql = NULL,
aws_alb = NULL,
docker = FALSE
)
}
\... | /man/get_presigned_data.Rd | permissive | tinazilla/nabatr-1 | R | false | true | 962 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nabat_gql_queries.R
\name{get_presigned_data}
\alias{get_presigned_data}
\title{Get presigned data}
\usage{
get_presigned_data(
project_id,
token,
branch = "beta",
url = NULL,
aws_gql = NULL,
aws_alb = NULL,
docker = FALSE
)
}
\... |
#' match two taxonomic lists
#'
#' match two taxonomic lists using canonical names
#'
#' @param master master taxonomic list
#' @param checklist match taxonomic list
#' @param masterfld field name for canonical name in master list
#' @param checklistfld field name for canonical name in match list
#' @family list funct... | /R/match_lists.R | no_license | SrishtiJ1305/taxotools | R | false | false | 2,849 | r | #' match two taxonomic lists
#'
#' match two taxonomic lists using canonical names
#'
#' @param master master taxonomic list
#' @param checklist match taxonomic list
#' @param masterfld field name for canonical name in master list
#' @param checklistfld field name for canonical name in match list
#' @family list funct... |
####################################################################################
###
### This script provides an overview of working with spatial data in R
### for the GLSC-LSC all hands meeting in Cleveland, OH
###
### Created 2020-02-18 by Daniel B. Fitzgerald
###################################################... | /spatial_data_tutorial.R | no_license | JVAdams/vizzy | R | false | false | 5,135 | r | ####################################################################################
###
### This script provides an overview of working with spatial data in R
### for the GLSC-LSC all hands meeting in Cleveland, OH
###
### Created 2020-02-18 by Daniel B. Fitzgerald
###################################################... |
library(data.table)
library(dplyr)
library(ggplot2)
library(magrittr)
library(maps)
library(zoo)
library(stats)
library(reshape2)
library(geosphere)
library(ROCR)
#library(grid)
#library(factoextra)
library(party)
library(partykit)
setwd(".")
traps <- unique(merged_agg_test$TrapFactor)
species <- unique(merged_agg_t... | /input/cTreeModel.R | no_license | sfines/west_nile | R | false | false | 1,014 | r | library(data.table)
library(dplyr)
library(ggplot2)
library(magrittr)
library(maps)
library(zoo)
library(stats)
library(reshape2)
library(geosphere)
library(ROCR)
#library(grid)
#library(factoextra)
library(party)
library(partykit)
setwd(".")
traps <- unique(merged_agg_test$TrapFactor)
species <- unique(merged_agg_t... |
library(randomForest)
library(randomForestCI)
library(Hmisc)
rm(list = ls())
n = 1000
p = 20
X = matrix(rnorm(n * p), n, p)
Y = factor(rbinom(n, 1, 0.5))
n.test = 1000
X.test = matrix(rnorm(n.test * p), n.test, p)
rf = randomForest(X, Y, keep.inbag = TRUE, ntree = 1000, replace = FALSE, sampsize = n/2)
ij = randomF... | /causalforest_paper_simu/non_honest_test.R | no_license | alejandroschuler/causal_effect_estimation | R | false | false | 546 | r | library(randomForest)
library(randomForestCI)
library(Hmisc)
rm(list = ls())
n = 1000
p = 20
X = matrix(rnorm(n * p), n, p)
Y = factor(rbinom(n, 1, 0.5))
n.test = 1000
X.test = matrix(rnorm(n.test * p), n.test, p)
rf = randomForest(X, Y, keep.inbag = TRUE, ntree = 1000, replace = FALSE, sampsize = n/2)
ij = randomF... |
#####################################################################
### Code to run models used in: ###
### Foster, Hill & Lyons, 2017, JRSS (Series C, Applied Stats) ###
### Written by N. Hill Nov 2015. ###
### Works with RCPmod version 2.142 ... | /SubAntFish.R | no_license | mitchest/rcp-survey-artifacts | R | false | false | 7,957 | r | #####################################################################
### Code to run models used in: ###
### Foster, Hill & Lyons, 2017, JRSS (Series C, Applied Stats) ###
### Written by N. Hill Nov 2015. ###
### Works with RCPmod version 2.142 ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statistics.plot.R
\name{add.boot.conf}
\alias{add.boot.conf}
\title{Add Bootstrapped Confidence Intervals}
\usage{
add.boot.conf(
model,
x = NULL,
col = "#55555540",
conf = c(0.025, 0.975),
border = FALSE,
trendline = FALSE,
n =... | /man/add.boot.conf.Rd | no_license | tbrycekelly/TheSource | R | false | true | 1,006 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statistics.plot.R
\name{add.boot.conf}
\alias{add.boot.conf}
\title{Add Bootstrapped Confidence Intervals}
\usage{
add.boot.conf(
model,
x = NULL,
col = "#55555540",
conf = c(0.025, 0.975),
border = FALSE,
trendline = FALSE,
n =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blbglm-logistic.R
\name{glm_each_boot}
\alias{glm_each_boot}
\title{Regression estimates for blbglm data set
Compute the regression estimates for blbglm data set}
\usage{
glm_each_boot(formula, data, n)
}
\arguments{
\item{formula}{a formula}... | /man/glm_each_boot.Rd | permissive | gilidror/blblm | R | false | true | 482 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blbglm-logistic.R
\name{glm_each_boot}
\alias{glm_each_boot}
\title{Regression estimates for blbglm data set
Compute the regression estimates for blbglm data set}
\usage{
glm_each_boot(formula, data, n)
}
\arguments{
\item{formula}{a formula}... |
library(evian)
### Name: evian_linear
### Title: Evidential analysis for quantitative outcome data using linear
### regression models
### Aliases: evian_linear
### ** Examples
data(eviandata_linear)
data(evianmap_linear)
## Don't show:
rst1=evian_linear(data=eviandata_linear, bim=evianmap_linear, xcols=10:ncol(... | /data/genthat_extracted_code/evian/examples/evian_linear.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,048 | r | library(evian)
### Name: evian_linear
### Title: Evidential analysis for quantitative outcome data using linear
### regression models
### Aliases: evian_linear
### ** Examples
data(eviandata_linear)
data(evianmap_linear)
## Don't show:
rst1=evian_linear(data=eviandata_linear, bim=evianmap_linear, xcols=10:ncol(... |
#covid.r
#-------
# Set things up
covid19.dir <- "~/Desktop/covid19/"
# Required packages
library(tidyverse)
library(lubridate)
get.data <- function(download=FALSE){
# Download the current data
if(download){
nytimes.state.cv <- download.file("https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-s... | /covid.r | no_license | sdiegel/covid19 | R | false | false | 7,365 | r | #covid.r
#-------
# Set things up
covid19.dir <- "~/Desktop/covid19/"
# Required packages
library(tidyverse)
library(lubridate)
get.data <- function(download=FALSE){
# Download the current data
if(download){
nytimes.state.cv <- download.file("https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-s... |
# Custom user Rprofile
# options(show.signif.stars=FALSE) # Don't show those silly significanct stars
## Credentials for connections. Not the most secure option but easiest.
## Simple way to storage username and password for different connections. Use Sys.getenv(USERNAME) function to get USERNAME.
# Sys.setenv(USERNA... | /.Rprofile.R | no_license | janikmiet/rprofile | R | false | false | 12,021 | r | # Custom user Rprofile
# options(show.signif.stars=FALSE) # Don't show those silly significanct stars
## Credentials for connections. Not the most secure option but easiest.
## Simple way to storage username and password for different connections. Use Sys.getenv(USERNAME) function to get USERNAME.
# Sys.setenv(USERNA... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this functionmakeCacheMatrix <- function(x = matrix()) {}
## Write a short comment describing this function cacheSolve <- function(x, ...) {
## Return a matrix that is the inverse of 'x'}
... | /cachematrix.R | no_license | Comu18/ProgrammingAssignment2 | R | false | false | 1,393 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this functionmakeCacheMatrix <- function(x = matrix()) {}
## Write a short comment describing this function cacheSolve <- function(x, ...) {
## Return a matrix that is the inverse of 'x'}
... |
#create html heat maps with leafletR
setwd("D:/CUNY Files/IS 608/All Final Project Files/create maps")
#the following libraries need to be added to shiny app for this source file to run
library(RColorBrewer)
library(leafletR)
#geojson file directory
leafdat<-"Manhattan2.geojson"
#import subdatM2 data file
data <- r... | /create maps/leafmapR_create_all.R | no_license | phoenixpei/Manhattan-Real-Estate-Project | R | false | false | 2,804 | r | #create html heat maps with leafletR
setwd("D:/CUNY Files/IS 608/All Final Project Files/create maps")
#the following libraries need to be added to shiny app for this source file to run
library(RColorBrewer)
library(leafletR)
#geojson file directory
leafdat<-"Manhattan2.geojson"
#import subdatM2 data file
data <- r... |
source ("./mlknn.R");
mlknn_stack_train <- function (X_train, Y_train, l0_k, l1_k, s0 = 1, s1 = 1, l0_dist = "euclidean", l1_dist = "euclidean")
{
retval <- list ();
mlknn_m <- mlknn_train (X = X_train, Y = Y_train, k = l0_k, s = 1, dist = l0_dist)
l1_target <- c ();
pred_mlknn_train <- ... | /src/mlknn_stack.R | no_license | BinDuan/stack_mlknn | R | false | false | 2,173 | r | source ("./mlknn.R");
mlknn_stack_train <- function (X_train, Y_train, l0_k, l1_k, s0 = 1, s1 = 1, l0_dist = "euclidean", l1_dist = "euclidean")
{
retval <- list ();
mlknn_m <- mlknn_train (X = X_train, Y = Y_train, k = l0_k, s = 1, dist = l0_dist)
l1_target <- c ();
pred_mlknn_train <- ... |
library(shiny)
library(shinydashboard)
library(DT)
library(shinythemes)
library(shinyWidgets)
require(ggplot2)
require(shiny)
library(plotly)
library(ggvis)
shinyUI(
dashboardPage(title = "Demo",skin="yellow",
dashboardHeader(title="My First Dashboard!",dropdownMenu(
ty... | /Exercise/app1.R | no_license | avijandiran/My-shiny-dashboards | R | false | false | 4,153 | r | library(shiny)
library(shinydashboard)
library(DT)
library(shinythemes)
library(shinyWidgets)
require(ggplot2)
require(shiny)
library(plotly)
library(ggvis)
shinyUI(
dashboardPage(title = "Demo",skin="yellow",
dashboardHeader(title="My First Dashboard!",dropdownMenu(
ty... |
###############################################################################
# Title: PSYC 7765 - Lesson 13
# Author: Jeffrey R. Spies (jspies@virginia.edu)
# History: date()
# Fri Nov 18 13:02:38 2011 - Created the file - JRS
###############################################################################
rm(list... | /Lesson13/Lesson13.R | no_license | JeffSpies/funstats2011 | R | false | false | 4,835 | r | ###############################################################################
# Title: PSYC 7765 - Lesson 13
# Author: Jeffrey R. Spies (jspies@virginia.edu)
# History: date()
# Fri Nov 18 13:02:38 2011 - Created the file - JRS
###############################################################################
rm(list... |
# Multispecies, spatially implicit IPM
# This version makes it possible to assume "no overlap"
# for intraspecific competition only or intra- and interspecific competition
#This version allows you to "grow" each species in isolation or in mixture to obtain
#the effect of interspecific competition on growth -- basicall... | /PopModels/idahoIPM/simulations/ipm_noOverlap_competitionEffects_PairWise.R | permissive | atredennick/Diversity_Stability | R | false | false | 13,453 | r | # Multispecies, spatially implicit IPM
# This version makes it possible to assume "no overlap"
# for intraspecific competition only or intra- and interspecific competition
#This version allows you to "grow" each species in isolation or in mixture to obtain
#the effect of interspecific competition on growth -- basicall... |
testlist <- list(x = c(1.29849269214681e+219, 1.3017676113098e+219, 1.80107573886382e-226, NaN, NaN, 6.91613364787677e-223, 1.29849269167491e+219, 1.80122446398248e-226, 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), y = numeric(0))
result <- do.call(netrankr:::checkPairs,testlist)
str(r... | /netrankr/inst/testfiles/checkPairs/libFuzzer_checkPairs/checkPairs_valgrind_files/1612746655-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 326 | r | testlist <- list(x = c(1.29849269214681e+219, 1.3017676113098e+219, 1.80107573886382e-226, NaN, NaN, 6.91613364787677e-223, 1.29849269167491e+219, 1.80122446398248e-226, 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), y = numeric(0))
result <- do.call(netrankr:::checkPairs,testlist)
str(r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Package.1_functions.R
\name{find.limits}
\alias{find.limits}
\title{Find scales for plots}
\usage{
find.limits(x,y)
}
\arguments{
\item{x}{Values on the x axis}
\item{y}{Values on the y axis}
}
\value{
4 numerics with max and min value for x... | /man/find.limits.Rd | no_license | sdechaumet/SDjoygret | R | false | true | 478 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Package.1_functions.R
\name{find.limits}
\alias{find.limits}
\title{Find scales for plots}
\usage{
find.limits(x,y)
}
\arguments{
\item{x}{Values on the x axis}
\item{y}{Values on the y axis}
}
\value{
4 numerics with max and min value for x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{macd_df}
\alias{macd_df}
\title{Table with one column indicator dataset}
\format{
A dataframe with one column
\describe{
\item{CADCHF}{Indicator values of the asset}
}
}
\usage{
macd_df
}
\description{
Table wi... | /man/macd_df.Rd | permissive | vzhomeexperiments/lazytrade | R | false | true | 373 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{macd_df}
\alias{macd_df}
\title{Table with one column indicator dataset}
\format{
A dataframe with one column
\describe{
\item{CADCHF}{Indicator values of the asset}
}
}
\usage{
macd_df
}
\description{
Table wi... |
## server.R
## Author: David Shumway
library(shiny)
library(DT)
library(leaflet)
library(RColorBrewer)
library(scales)
library(lattice)
shinyServer(function(input, output, session) { #, session
# about
#~ output$textAbout <- renderText({
#~ 'Initial template used: (https://shiny.rstudio.com/gallery/superz... | /projectx/server.R | no_license | davidshumway/cs424 | R | false | false | 7,878 | r | ## server.R
## Author: David Shumway
library(shiny)
library(DT)
library(leaflet)
library(RColorBrewer)
library(scales)
library(lattice)
shinyServer(function(input, output, session) { #, session
# about
#~ output$textAbout <- renderText({
#~ 'Initial template used: (https://shiny.rstudio.com/gallery/superz... |
library(DBI)
library(stringr)
sql <- readLines("database.sql")
stmt <- str_c(sql, collapse = "\n") |>
str_trim() |>
str_split(";")
conn <- dbConnect(RSQLite::SQLite(), "meudb/meu.db")
lapply(stmt[[1]], function(q) {
if (q != "")
dbExecute(conn, q)
})
dbGetQuery(conn, "select * from sqlite_master")
dbDi... | /create_database.R | no_license | wilsonfreitas/construindo-um-banco-de-dados-financeiro | R | false | false | 335 | r |
library(DBI)
library(stringr)
sql <- readLines("database.sql")
stmt <- str_c(sql, collapse = "\n") |>
str_trim() |>
str_split(";")
conn <- dbConnect(RSQLite::SQLite(), "meudb/meu.db")
lapply(stmt[[1]], function(q) {
if (q != "")
dbExecute(conn, q)
})
dbGetQuery(conn, "select * from sqlite_master")
dbDi... |
#Load xlsx
library(xlsx)
# Load the readxl package
library(readxl)
#Getting the right
getwd()
setwd('C:/Users/lahona/Downloads')
#To oberve the frequency great visualisation tool
library(funModeling)
library(tidyverse)
library(Hmisc)
# Read the sheets, one by one
LS <- read_excel('Lawsuits.xlsx', sheet = ... | /groupassignment (2).R | permissive | anuraglahon16/Case-Study-of-Insurance-Lawsuit | R | false | false | 26,339 | r | #Load xlsx
library(xlsx)
# Load the readxl package
library(readxl)
#Getting the right
getwd()
setwd('C:/Users/lahona/Downloads')
#To oberve the frequency great visualisation tool
library(funModeling)
library(tidyverse)
library(Hmisc)
# Read the sheets, one by one
LS <- read_excel('Lawsuits.xlsx', sheet = ... |
############################################################################################################################################################################
# Processing raw MIMS data to calculate concentrations & ratios
# Original code from Hilary Madinger and Bob Hall
# 16 July 2016
# Updated by L... | /R/mims_workflow_Nov21_2019.R | no_license | lukeloken/USBRDelta | R | false | false | 9,440 | r |
############################################################################################################################################################################
# Processing raw MIMS data to calculate concentrations & ratios
# Original code from Hilary Madinger and Bob Hall
# 16 July 2016
# Updated by L... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_SnpMatrix_from_vcf.R
\name{get_SnpMatrix_from_vcf}
\alias{get_SnpMatrix_from_vcf}
\title{Download 1000 Genomes vcf chunks and convert them to SnpMatrix objects}
\usage{
get_SnpMatrix_from_vcf(where, which = "CEU", vcf_file, panel_file)
}
... | /man/get_SnpMatrix_from_vcf.Rd | no_license | joe-nas/haploplotR | R | false | true | 766 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_SnpMatrix_from_vcf.R
\name{get_SnpMatrix_from_vcf}
\alias{get_SnpMatrix_from_vcf}
\title{Download 1000 Genomes vcf chunks and convert them to SnpMatrix objects}
\usage{
get_SnpMatrix_from_vcf(where, which = "CEU", vcf_file, panel_file)
}
... |
#' @include FLMatrix.R
NULL
#' An S4 class to represent LU Decomposition
#' @slot x object of class FLVector
#' @slot perm object of class FLVector
#' @slot Dim object of class FLVector
#' @slot lower object of class FLMatrix
#' @slot upper object of class FLMatrix
#' @slot data_perm object of class FLMatrix
#' @expor... | /R/FLLUDecomp.R | no_license | richa3522/AdapteR | R | false | false | 9,568 | r | #' @include FLMatrix.R
NULL
#' An S4 class to represent LU Decomposition
#' @slot x object of class FLVector
#' @slot perm object of class FLVector
#' @slot Dim object of class FLVector
#' @slot lower object of class FLMatrix
#' @slot upper object of class FLMatrix
#' @slot data_perm object of class FLMatrix
#' @expor... |
library(Julia)
### Name: JuliaIterate
### Title: JuliaIterate
### Aliases: JuliaIterate
### ** Examples
z<-0+0i
C <- 1-1.6180339887;# Golden Ratio
it<- JuliaIterate(z,C)
| /data/genthat_extracted_code/Julia/examples/JuliaIterate.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 184 | r | library(Julia)
### Name: JuliaIterate
### Title: JuliaIterate
### Aliases: JuliaIterate
### ** Examples
z<-0+0i
C <- 1-1.6180339887;# Golden Ratio
it<- JuliaIterate(z,C)
|
AccidentsByDistricts <- aggregate(infodata["סהכ תאונות דרכים"], by=list(infodata$מחוז), FUN=sum)
#Summing seekers by district.
colnames(AccidentsByDistricts) <- c("מחוז", "סהכ תאונות דרכים")
#Sorting by percentage
AccidentsByDistricts <- AccidentsByDistricts[order(AccidentsByDistricts["סהכ תאונות דרכים"], decreasin... | /AccidentByDistrict.R | no_license | daniel1kakon/Accidents | R | false | false | 2,225 | r | AccidentsByDistricts <- aggregate(infodata["סהכ תאונות דרכים"], by=list(infodata$מחוז), FUN=sum)
#Summing seekers by district.
colnames(AccidentsByDistricts) <- c("מחוז", "סהכ תאונות דרכים")
#Sorting by percentage
AccidentsByDistricts <- AccidentsByDistricts[order(AccidentsByDistricts["סהכ תאונות דרכים"], decreasin... |
#' Do the columns contain R Date objects?
#'
#' Set a verification step where a table column is expected to consist entirely
#' of R \code{Date} objects.
#' @inheritParams col_vals_gt
#' @param column the name of a single table column, multiple columns in the same
#' table, or, a helper function such as \code{\link{a... | /R/col_is_date.R | permissive | elong0527/pointblank | R | false | false | 3,699 | r | #' Do the columns contain R Date objects?
#'
#' Set a verification step where a table column is expected to consist entirely
#' of R \code{Date} objects.
#' @inheritParams col_vals_gt
#' @param column the name of a single table column, multiple columns in the same
#' table, or, a helper function such as \code{\link{a... |
library(ggplot2)
library(mapproj)
mrp.prediction <- readRDS("Data/mrp_pred.rds")
mrp.prediction.map <- map_data("state")
mrp.prediction.map$opinion <-
mrp.prediction$opinion[match(mrp.prediction.map$region, tolower(mrp.prediction$state.abb))]
ggplot(mrp.prediction.map, aes(long, lat)) +
geom_polygon(aes(group = ... | /5_map_plot.R | no_license | JohnPSpaw/IAT_MrP_Model | R | false | false | 731 | r | library(ggplot2)
library(mapproj)
mrp.prediction <- readRDS("Data/mrp_pred.rds")
mrp.prediction.map <- map_data("state")
mrp.prediction.map$opinion <-
mrp.prediction$opinion[match(mrp.prediction.map$region, tolower(mrp.prediction$state.abb))]
ggplot(mrp.prediction.map, aes(long, lat)) +
geom_polygon(aes(group = ... |
##set working directory
##change for each person!
setwd("C:/Users/Ronli/Documents/GitHub/scales_framework/src/dti")
setwd("/Users/dti/Dropbox/Research/simdata3/simdata3")
##read in simulation results
load("scale_cols.Rdata") #obj called out_cols
load("scale_rows.Rdata") #obj called out_rows
##reorder
out_cols_ord <-... | /src/dti/results.R | no_license | ben-domingue/scales_framework | R | false | false | 2,787 | r | ##set working directory
##change for each person!
setwd("C:/Users/Ronli/Documents/GitHub/scales_framework/src/dti")
setwd("/Users/dti/Dropbox/Research/simdata3/simdata3")
##read in simulation results
load("scale_cols.Rdata") #obj called out_cols
load("scale_rows.Rdata") #obj called out_rows
##reorder
out_cols_ord <-... |
##The goal of your project is to predict the manner in which
## they did the exercise. This is the "classe" variable in
##the training set.
##You may use any of the other variables
##to predict with. You should create a report describing
##how you built your model, how you used cross validation,
##what you think ... | /Learning.R | no_license | eeliuchang/PracticalMLProject | R | false | false | 1,024 | r | ##The goal of your project is to predict the manner in which
## they did the exercise. This is the "classe" variable in
##the training set.
##You may use any of the other variables
##to predict with. You should create a report describing
##how you built your model, how you used cross validation,
##what you think ... |
## Create a class "myDate" to coerce character string in the format DD-MM-YYYY into Date class upon import
setClass("myDate")
setAs("character","myDate", function(from) as.Date(from, format = "%d/%m/%Y"))
## Create a class "myTime" to coerce character string in the format HH:MM:SS into POSIXct class upon import
setCla... | /plot4.R | no_license | bepartridge/ExData_Plotting1 | R | false | false | 4,982 | r | ## Create a class "myDate" to coerce character string in the format DD-MM-YYYY into Date class upon import
setClass("myDate")
setAs("character","myDate", function(from) as.Date(from, format = "%d/%m/%Y"))
## Create a class "myTime" to coerce character string in the format HH:MM:SS into POSIXct class upon import
setCla... |
# Author: Robert J. Hijmans
# Date : March 2009
# Version 0.9
# Licence GPL v3
if (!isGeneric("freq")) {
setGeneric("freq", function(x, ...)
standardGeneric("freq"))
}
setMethod('freq', signature(x='RasterLayer'),
function(x, digits=0, value=NULL, useNA="ifany", progress='', ...) {
if (!is.... | /R/freq.R | no_license | kenahoo/raster | R | false | false | 3,427 | r | # Author: Robert J. Hijmans
# Date : March 2009
# Version 0.9
# Licence GPL v3
if (!isGeneric("freq")) {
setGeneric("freq", function(x, ...)
standardGeneric("freq"))
}
setMethod('freq', signature(x='RasterLayer'),
function(x, digits=0, value=NULL, useNA="ifany", progress='', ...) {
if (!is.... |
library(ggplot2)
df <- read.table('ames.csv', sep = ',')
ran <- sample(1 : nrow(df), .9 * nrow(df))
nor <- function(x){
return (x - min(x)) / (max(x) - min(x))
}
norm <- as.data.frame(lapply(df[, c(c(range(56)), c(range(58, 81)))], nor))
set.seed(123)
dat.d <- sample(1:n) | /in_class_knn.R | no_license | jschmidt345/Group_BLSS_SSC442 | R | false | false | 278 | r | library(ggplot2)
df <- read.table('ames.csv', sep = ',')
ran <- sample(1 : nrow(df), .9 * nrow(df))
nor <- function(x){
return (x - min(x)) / (max(x) - min(x))
}
norm <- as.data.frame(lapply(df[, c(c(range(56)), c(range(58, 81)))], nor))
set.seed(123)
dat.d <- sample(1:n) |
.makeSparse<-function(X) {
X<-as.matrix(X)
w<-cbind(c(row(X)),c(col(X)),c(X))
w<-w[abs(w[,3])>1e-16,,drop=FALSE]
Y<-sparseMatrix(w[,1],w[,2],x=w[,3],dims=dim(X))
}
##if A is a N x N matrix A[i,j]
## and R=c(A[1,1],A[1,2]...A[1,n],A[2,1]..A[2,n],, A[n,n]
## A[i,j]=R[r]
.ij2r<-function(i,j,N)
(i-1)*N+j
.ind... | /R/KR-utils.R | no_license | PhilipPallmann/pbkrtest | R | false | false | 1,632 | r | .makeSparse<-function(X) {
X<-as.matrix(X)
w<-cbind(c(row(X)),c(col(X)),c(X))
w<-w[abs(w[,3])>1e-16,,drop=FALSE]
Y<-sparseMatrix(w[,1],w[,2],x=w[,3],dims=dim(X))
}
##if A is a N x N matrix A[i,j]
## and R=c(A[1,1],A[1,2]...A[1,n],A[2,1]..A[2,n],, A[n,n]
## A[i,j]=R[r]
.ij2r<-function(i,j,N)
(i-1)*N+j
.ind... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glue_operations.R
\name{glue_list_schema_versions}
\alias{glue_list_schema_versions}
\title{Returns a list of schema versions that you have created, with minimal
information}
\usage{
glue_list_schema_versions(SchemaId, MaxResults, NextToken)
... | /paws/man/glue_list_schema_versions.Rd | permissive | sanchezvivi/paws | R | false | true | 1,455 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glue_operations.R
\name{glue_list_schema_versions}
\alias{glue_list_schema_versions}
\title{Returns a list of schema versions that you have created, with minimal
information}
\usage{
glue_list_schema_versions(SchemaId, MaxResults, NextToken)
... |
## Assignment 2 - cache and return of matrix input and its inverse
## creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
... | /cachematrix.R | no_license | KLGordon/ProgrammingAssignment2 | R | false | false | 895 | r | ## Assignment 2 - cache and return of matrix input and its inverse
## creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FSSgam.R
\docType{package}
\name{FSSgam-package}
\alias{FSSgam-package}
\alias{FSSgam}
\title{\tabular{ll}{
Package: \tab FSSgam\cr
Type: \tab Package\cr
Title: \tab FUll subsets multiple regression in R with gam(m4)\cr
Version: \tab 1.11\cr
... | /man/FSSgam-package.Rd | permissive | beckyfisher/FSSgam_package | R | false | true | 3,295 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FSSgam.R
\docType{package}
\name{FSSgam-package}
\alias{FSSgam-package}
\alias{FSSgam}
\title{\tabular{ll}{
Package: \tab FSSgam\cr
Type: \tab Package\cr
Title: \tab FUll subsets multiple regression in R with gam(m4)\cr
Version: \tab 1.11\cr
... |
---
title: "Statistical_analysis_prestudy"
author: "Marie Tzschaschel"
date: "09.07.2020"
output: pdf_document
---
```{r setup, include=FALSE}
install.packages("lme4")
library(lme4)
```
Goal of this analysis is to examine whether the similarity values of the similar dataset
(tuples containing two nouns t... | /Prestudy_dataanalysis.r | no_license | MarieTzschaschel/Pre-study | R | false | false | 4,439 | r | ---
title: "Statistical_analysis_prestudy"
author: "Marie Tzschaschel"
date: "09.07.2020"
output: pdf_document
---
```{r setup, include=FALSE}
install.packages("lme4")
library(lme4)
```
Goal of this analysis is to examine whether the similarity values of the similar dataset
(tuples containing two nouns t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{plotHeatmapSegment}
\alias{plotHeatmapSegment}
\title{Plot probability table as a heatmap.}
\usage{
plotHeatmapSegment(dataFrame, plot.log = FALSE, file = NULL,
aggProbs = FALSE, CNV = 3)
}
\arguments{
\item{dataFrame}{A \c... | /man/plotHeatmapSegment.Rd | no_license | maryamghr/MaRyam-1 | R | false | true | 774 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{plotHeatmapSegment}
\alias{plotHeatmapSegment}
\title{Plot probability table as a heatmap.}
\usage{
plotHeatmapSegment(dataFrame, plot.log = FALSE, file = NULL,
aggProbs = FALSE, CNV = 3)
}
\arguments{
\item{dataFrame}{A \c... |
# MODIS Data
#
library(MODISTools)
library(sp)
loc=rbind.data.frame(
list("UB Spine",43.000753, -78.788195))
colnames(loc)=c("loc","lat","long")
coordinates(loc)=cbind(loc$long,loc$lat)
## Available dates
modis_dates=GetDates(Product = "MOD11A2", Lat = loc$lat[1], Long = loc$long[1])
devtools::use_data(modis_dates... | /raw-data/modis.R | no_license | adammwilson/DataScienceData | R | false | false | 1,370 | r | # MODIS Data
#
library(MODISTools)
library(sp)
loc=rbind.data.frame(
list("UB Spine",43.000753, -78.788195))
colnames(loc)=c("loc","lat","long")
coordinates(loc)=cbind(loc$long,loc$lat)
## Available dates
modis_dates=GetDates(Product = "MOD11A2", Lat = loc$lat[1], Long = loc$long[1])
devtools::use_data(modis_dates... |
#Phaseolus case study
#Julian Ramirez-Villegas
#CIAT
#March 2012
stop("Warning: do not run the whole thing")
#basic stuff
src.dir <- "D:/_tools/gap-analysis-cwr/trunk/gap-analysis/lathyrus"
#crop details
crop_dir <- "D:/CIAT_work/Gap_analysis/ICARDA-collab/lathyrus"; setwd(crop_dir)
#here first run the o... | /gap-analysis/lathyrus/gap-lathyrus.R | no_license | CIAT-DAPA/cwr_gap-analysis-cwr | R | false | false | 16,970 | r | #Phaseolus case study
#Julian Ramirez-Villegas
#CIAT
#March 2012
stop("Warning: do not run the whole thing")
#basic stuff
src.dir <- "D:/_tools/gap-analysis-cwr/trunk/gap-analysis/lathyrus"
#crop details
crop_dir <- "D:/CIAT_work/Gap_analysis/ICARDA-collab/lathyrus"; setwd(crop_dir)
#here first run the o... |
context("Template brain data")
data(FCWB.demo)
test_that("origin returns correct result", {
origin <- origin(FCWB.demo)
origin.expected <- c(0, 0, 0)
expect_equal(origin, origin.expected)
})
test_that("dim returns correct result", {
dims <- dim(FCWB.demo)
dims.expected <- c(1769, 1026, 108)
expect_equal(... | /nat.templatebrains/tests/testthat/test-template-brain-data.r | no_license | ingted/R-Examples | R | false | false | 1,683 | r | context("Template brain data")
data(FCWB.demo)
test_that("origin returns correct result", {
origin <- origin(FCWB.demo)
origin.expected <- c(0, 0, 0)
expect_equal(origin, origin.expected)
})
test_that("dim returns correct result", {
dims <- dim(FCWB.demo)
dims.expected <- c(1769, 1026, 108)
expect_equal(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/usair.R
\docType{data}
\name{usair}
\alias{usair}
\title{US Air Pollution}
\format{A data frame with 7 columns and 41 rows. The columns are:
\itemize{
\item{SO2}{Sulphur dioxide content of air in micrograms per cubic meter.}
\item{negtemp}{Ne... | /man/usair.Rd | no_license | nemochina2008/brinla | R | false | true | 1,427 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/usair.R
\docType{data}
\name{usair}
\alias{usair}
\title{US Air Pollution}
\format{A data frame with 7 columns and 41 rows. The columns are:
\itemize{
\item{SO2}{Sulphur dioxide content of air in micrograms per cubic meter.}
\item{negtemp}{Ne... |
## this function was developped with Dean C. Adams, Professor at Iowa State.
## the purpose was to perform multivariate phylogenetic least squares analysis on size corrected morphometric measurements
#Burnaby's size-correction
#Find isometric size vector
f.iso = array(1,dim=ncol(data))/sqrt(ncol(data))
# calcu... | /Multivariate_PGLS.r | no_license | thomasblankers/statistics | R | false | false | 1,990 | r | ## this function was developped with Dean C. Adams, Professor at Iowa State.
## the purpose was to perform multivariate phylogenetic least squares analysis on size corrected morphometric measurements
#Burnaby's size-correction
#Find isometric size vector
f.iso = array(1,dim=ncol(data))/sqrt(ncol(data))
# calcu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Interface.R
\docType{methods}
\name{runRFclust}
\alias{runRFclust}
\alias{runRFclust,RFclust.SGE-method}
\title{description of function runRFclust}
\usage{
runRFclust(x, ntree = 500, nforest = 500, name = "RFrun", force = FALSE)
}
\arguments{... | /man/runRFclust-methods.Rd | permissive | stela2502/RFclust.SGE | R | false | true | 731 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Interface.R
\docType{methods}
\name{runRFclust}
\alias{runRFclust}
\alias{runRFclust,RFclust.SGE-method}
\title{description of function runRFclust}
\usage{
runRFclust(x, ntree = 500, nforest = 500, name = "RFrun", force = FALSE)
}
\arguments{... |
# download and load the data into R
download.file('https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip', 'power.zip')
unzip('power.zip')
power <- read.table('household_power_consumption.txt', sep =';', header=TRUE, stringsAsFactors=FALSE, dec='.')
# We will only be using data fro... | /plot2.R | no_license | matthew-kruse/ExData_Plotting1 | R | false | false | 748 | r | # download and load the data into R
download.file('https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip', 'power.zip')
unzip('power.zip')
power <- read.table('household_power_consumption.txt', sep =';', header=TRUE, stringsAsFactors=FALSE, dec='.')
# We will only be using data fro... |
plotqPCR <- function(data, panel, facet_by = NULL, normalizer, ref_group, levels, chip = FALSE,
pvalue = F, pvalues_y = NULL, remove_y = F, print.p = F, ...) {
data <- dplyr::filter(data, Figure == panel)
all_genes <- unique(data$Gene)
experimental_genes <- all_genes[-which(all_genes == norma... | /Scripts/plotqPCR.R | no_license | squatrim/marques2020 | R | false | false | 11,079 | r | plotqPCR <- function(data, panel, facet_by = NULL, normalizer, ref_group, levels, chip = FALSE,
pvalue = F, pvalues_y = NULL, remove_y = F, print.p = F, ...) {
data <- dplyr::filter(data, Figure == panel)
all_genes <- unique(data$Gene)
experimental_genes <- all_genes[-which(all_genes == norma... |
library(dplyr)
library(ggplot2)
# Reading datasets.
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# filtering the dataset for coal combustion-related sources from 1999 to 2008
CoalComp<-NEI[NEI$SCC %in% SCC[grep("Coal", SCC$EI.Sector),"SCC"],]
# Finding total PM2.5 emission f... | /exdata Assignment w4/plot4.R | no_license | yousefbasel/ExData_Plotting1 | R | false | false | 845 | r | library(dplyr)
library(ggplot2)
# Reading datasets.
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# filtering the dataset for coal combustion-related sources from 1999 to 2008
CoalComp<-NEI[NEI$SCC %in% SCC[grep("Coal", SCC$EI.Sector),"SCC"],]
# Finding total PM2.5 emission f... |
library(dplyr)
count(enem_pe, NO_MUNICIPIO_RESIDENCIA)
enem_pe %>% group_by(TP_SEXO) %>% summarise(avg = mean(nota_media))
enem_pe_GUS <- enem_2014 %>%
filter(NO_MUNICIPIO_RESIDENCIA == 'GARANHUNS') %>%
select(nota_media, renda_pc, TP_SEXO)
| /scripts/dplyr.R | no_license | fabiana-costa/etl_r_ppgcp | R | false | false | 250 | r | library(dplyr)
count(enem_pe, NO_MUNICIPIO_RESIDENCIA)
enem_pe %>% group_by(TP_SEXO) %>% summarise(avg = mean(nota_media))
enem_pe_GUS <- enem_2014 %>%
filter(NO_MUNICIPIO_RESIDENCIA == 'GARANHUNS') %>%
select(nota_media, renda_pc, TP_SEXO)
|
#' dann
#'
#' Run Discriminant Adaptive Nearest Neighbors
#'
#' @param x covariates matrix
#' @param testx test covariate matrix
#' @param y labels
#' @param k number of clusters
#' @param kmetric metric
#' @param epsilon epsilon
#' @param fullw Boolean
#' @param scalar Boolean
#' @param iter maximum number ... | /R/dann.R | permissive | soodoku/dann | R | false | false | 1,896 | r | #' dann
#'
#' Run Discriminant Adaptive Nearest Neighbors
#'
#' @param x covariates matrix
#' @param testx test covariate matrix
#' @param y labels
#' @param k number of clusters
#' @param kmetric metric
#' @param epsilon epsilon
#' @param fullw Boolean
#' @param scalar Boolean
#' @param iter maximum number ... |
library(shiny)
library(shinydashboard)
library(networkD3)
library(ggplot2)
library(dplyr)
my_color <- 'd3.scaleOrdinal() .domain(["_NULL", "_AUTO","_BOTTOM","_COLD","_NEW","_TOP","_LOST","_WARM","my_unique_group"]) .range(["aquamarine","darkorange","darkmagenta","blue","gold","yellow","green","red","grey"])'
... | /shiny.r | no_license | Charlesbdlt/project | R | false | false | 3,017 | r | library(shiny)
library(shinydashboard)
library(networkD3)
library(ggplot2)
library(dplyr)
my_color <- 'd3.scaleOrdinal() .domain(["_NULL", "_AUTO","_BOTTOM","_COLD","_NEW","_TOP","_LOST","_WARM","my_unique_group"]) .range(["aquamarine","darkorange","darkmagenta","blue","gold","yellow","green","red","grey"])'
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/weightedQ.R
\name{weightedQ}
\alias{weightedQ}
\title{make GMRF precision matrix with weights}
\usage{
weightedQ(weights, nn)
}
\arguments{
\item{weights}{weights}
\item{nn}{matrix with pair of neighbours per row.}
}
\value{
sparseMatrix of ... | /man/weightedQ.Rd | no_license | bioimaginggroup/BayGMRF | R | false | true | 470 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/weightedQ.R
\name{weightedQ}
\alias{weightedQ}
\title{make GMRF precision matrix with weights}
\usage{
weightedQ(weights, nn)
}
\arguments{
\item{weights}{weights}
\item{nn}{matrix with pair of neighbours per row.}
}
\value{
sparseMatrix of ... |
# R数据帧操作
### 在数据帧中加入行和列
### 创建矢量对象
city <- c("Tampa","Seattle","Hartford","Denver")
state <- c("FL","WA","CT","CO")
zipcode <- c(33602,98104,16161,80294)
### 组合三个矢量到一个数据帧
addresses <- cbind(city,state,zipcode)
print(addresses)
### 用同样的列结构创建一个数据帧
new.address <- data.frame(
city = c("Lowry","Charlotte"),
state = ... | /R-Program/RdataFrame.R | permissive | Johnwei386/Warehouse | R | false | false | 1,001 | r | # R数据帧操作
### 在数据帧中加入行和列
### 创建矢量对象
city <- c("Tampa","Seattle","Hartford","Denver")
state <- c("FL","WA","CT","CO")
zipcode <- c(33602,98104,16161,80294)
### 组合三个矢量到一个数据帧
addresses <- cbind(city,state,zipcode)
print(addresses)
### 用同样的列结构创建一个数据帧
new.address <- data.frame(
city = c("Lowry","Charlotte"),
state = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{predict.cmfrec}
\alias{predict.cmfrec}
\title{Predict entries in the factorized `X` matrix}
\usage{
\method{predict}{cmfrec}(object, user, item = NULL, nthreads = object$info$nthreads, ...)
}
\arguments{
\item{object}{A collec... | /man/predict.cmfrec.Rd | permissive | david-cortes/cmfrec | R | false | true | 2,689 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{predict.cmfrec}
\alias{predict.cmfrec}
\title{Predict entries in the factorized `X` matrix}
\usage{
\method{predict}{cmfrec}(object, user, item = NULL, nthreads = object$info$nthreads, ...)
}
\arguments{
\item{object}{A collec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrap.r
\name{kalman}
\alias{kalman}
\title{Run a Kalman filter}
\usage{
kalman(ssm, dt = NULL, id = 0, root = NULL, n_obs = NULL,
eps_abs_integ = NULL, eps_rel_integ = NULL, like_min = NULL,
freeze_forcing = NULL, interpolator = NULL, ver... | /man/kalman.Rd | no_license | kath-o-reilly/ssminr | R | false | true | 2,679 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrap.r
\name{kalman}
\alias{kalman}
\title{Run a Kalman filter}
\usage{
kalman(ssm, dt = NULL, id = 0, root = NULL, n_obs = NULL,
eps_abs_integ = NULL, eps_rel_integ = NULL, like_min = NULL,
freeze_forcing = NULL, interpolator = NULL, ver... |
#!/usr/bin/env Rscript
# Meeyoung Park, 04/13/2016
# Command: Rscript <filename> <outdir>
<<<<<<< HEAD
# Input: "_.csv"
=======
# Input: "_Final.csv"
>>>>>>> 6a9203dfe1d39e001ea338d2c1ec3d898b42a103
# Process: Grouping by strains
# Output: "groupedFC.csv"
#install.packages('plyr')
#install.packages('ggplot2')
#instal... | /Scripts/7_GroupStatistics.R | no_license | mpark-bioinfo/HF11 | R | false | false | 5,190 | r | #!/usr/bin/env Rscript
# Meeyoung Park, 04/13/2016
# Command: Rscript <filename> <outdir>
<<<<<<< HEAD
# Input: "_.csv"
=======
# Input: "_Final.csv"
>>>>>>> 6a9203dfe1d39e001ea338d2c1ec3d898b42a103
# Process: Grouping by strains
# Output: "groupedFC.csv"
#install.packages('plyr')
#install.packages('ggplot2')
#instal... |
library(dplyr)
library(tidyr)
library(readr)
a<-grep("^household.*[.txt]$",list.files(),value = TRUE)
electric_consumption<-read.table(a, header = TRUE, sep = ";", na.strings = c("NA","?"))
electric_consumption$Date<-as.Date(electric_consumption$Date, "%d/%m/%Y")
electric_consumption$Time<-strptime(paste(electric_consu... | /plot3.R | no_license | Antara-Sarkar114/ExData_Plotting1 | R | false | false | 1,006 | r | library(dplyr)
library(tidyr)
library(readr)
a<-grep("^household.*[.txt]$",list.files(),value = TRUE)
electric_consumption<-read.table(a, header = TRUE, sep = ";", na.strings = c("NA","?"))
electric_consumption$Date<-as.Date(electric_consumption$Date, "%d/%m/%Y")
electric_consumption$Time<-strptime(paste(electric_consu... |
#' Coal tits breeding survey data
#'
#'
#' The Swiss coal tit (\emph{Parus ater}) annual territory counts from
#' the Swiss breeding bird survey MHB from 1999 to 2007.
#'
#' The variables are as follows:
#' \itemize{
#' \item \code{site} the site code (factor with 235 levels).
#' \item \code{spec} the species (fact... | /R/data-tits.R | no_license | poissonconsulting/bauw | R | false | false | 972 | r | #' Coal tits breeding survey data
#'
#'
#' The Swiss coal tit (\emph{Parus ater}) annual territory counts from
#' the Swiss breeding bird survey MHB from 1999 to 2007.
#'
#' The variables are as follows:
#' \itemize{
#' \item \code{site} the site code (factor with 235 levels).
#' \item \code{spec} the species (fact... |
context("Common API")
opts <- options(keyring_warn_for_env_fallback = FALSE)
on.exit(options(opts), add = TRUE)
test_that("set, get, delete", {
skip_on_cran()
service <- random_service()
username <- random_username()
password <- random_password()
expect_silent(key_set_with_value(service, username, pas... | /tests/testthat/test-common.R | permissive | aecoleman/keyring | R | false | false | 1,647 | r |
context("Common API")
opts <- options(keyring_warn_for_env_fallback = FALSE)
on.exit(options(opts), add = TRUE)
test_that("set, get, delete", {
skip_on_cran()
service <- random_service()
username <- random_username()
password <- random_password()
expect_silent(key_set_with_value(service, username, pas... |
## vim: tw=120 shiftwidth=4 softtabstop=4 expandtab:
#' Class to Store adp (ADCP) Data
#'
#' This class stores data from acoustic Doppler profilers. Some manufacturers
#' call these ADCPs, while others call them ADPs; here the shorter form is
#' used by analogy to ADVs.
#'
#' @templateVar class adp
#'
#' @templateVar ... | /issuestests/oce/R/adp.R | no_license | akhikolla/RcppDeepStateTest | R | false | false | 210,382 | r | ## vim: tw=120 shiftwidth=4 softtabstop=4 expandtab:
#' Class to Store adp (ADCP) Data
#'
#' This class stores data from acoustic Doppler profilers. Some manufacturers
#' call these ADCPs, while others call them ADPs; here the shorter form is
#' used by analogy to ADVs.
#'
#' @templateVar class adp
#'
#' @templateVar ... |
#' @title Position Module
#'
#' @description Module function for establishing sexual role or position in each
#' act on the discordant edgelist.
#'
#' @inheritParams aging_msm
#'
#' @details
#' The sexual role within each act is determined by each nodes "role identity"
#' as exclusively receptive, exclusi... | /tempR/mod.position.R | no_license | dth2/EpiModelHIV_SHAMP | R | false | false | 2,491 | r |
#' @title Position Module
#'
#' @description Module function for establishing sexual role or position in each
#' act on the discordant edgelist.
#'
#' @inheritParams aging_msm
#'
#' @details
#' The sexual role within each act is determined by each nodes "role identity"
#' as exclusively receptive, exclusi... |
week1data<-read.csv("household_power_consumption.txt", sep=";",header=TRUE, na.strings="?", nrows=70000)
data<-subset(week1data, Date=="1/2/2007" | Date=="2/2/2007")
data$Date<-as.Date(data$Date, format = "%d/%m/%Y")
data$DateTime<- paste(data$Date, data$Time)
data$DateTime <- strptime(data$DateTime, format = "%Y-%m-%d... | /Plot2.R | no_license | gkhnusc/Coursera | R | false | false | 477 | r | week1data<-read.csv("household_power_consumption.txt", sep=";",header=TRUE, na.strings="?", nrows=70000)
data<-subset(week1data, Date=="1/2/2007" | Date=="2/2/2007")
data$Date<-as.Date(data$Date, format = "%d/%m/%Y")
data$DateTime<- paste(data$Date, data$Time)
data$DateTime <- strptime(data$DateTime, format = "%Y-%m-%d... |
#' @title Scatter Chart
#' @description Plots a Scatter Chart using Cartesian coordinates
#' to display values of a given dataset
#' @param dataset List of numeric vectors containing the datasets to be plotted
#' @param colors A list of plot colors preffred for each dataset... | /R/p3_scatter_chart.R | no_license | pantheracorp/PantheraWidgets | R | false | false | 4,639 | r | #' @title Scatter Chart
#' @description Plots a Scatter Chart using Cartesian coordinates
#' to display values of a given dataset
#' @param dataset List of numeric vectors containing the datasets to be plotted
#' @param colors A list of plot colors preffred for each dataset... |
## R code written by Elizabeth A. Bowman Oct. 27, 2016
## University of Arizona, School of Plant Sciences, eabowman@email.arizona.edu
## Analyses to evaluate whether the two fungal communities were sampled deeply enough.
#=========================================================================================
# Speci... | /script/Species_accumulation_curves_based_on_EMmorphotype_data.R | no_license | eabowman/Bowman_and_Arnold_fungal_elev_grad | R | false | false | 6,365 | r | ## R code written by Elizabeth A. Bowman Oct. 27, 2016
## University of Arizona, School of Plant Sciences, eabowman@email.arizona.edu
## Analyses to evaluate whether the two fungal communities were sampled deeply enough.
#=========================================================================================
# Speci... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 10078
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 10078
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#140.A#48.c#.w#3.s#3.asp/ctrl.e#1.a#3.E#140.A#48.c#.w#3.s#3.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 730 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 10078
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 10078
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... |
library("LOLA")
library("ggplot2")
library("dplyr")
options(warn = -1)
#######################################################################
########## Function to perform enrichment analyis using LOLA ##########
#######################################################################
enrich = function(assembly, typ... | /LOLA.R | permissive | MoezDawood/discreps | R | false | false | 8,799 | r | library("LOLA")
library("ggplot2")
library("dplyr")
options(warn = -1)
#######################################################################
########## Function to perform enrichment analyis using LOLA ##########
#######################################################################
enrich = function(assembly, typ... |
# xts = xts object
# m = multiple in units (mins, hours)
as.ohlc <- function(xts, m=1, on='mins') {
# get the prefix from column name like 'AAPL.ASK':
prefix <- colnames(xts)[1]
cols <- c(
paste(c(prefix, "Open"), collapse="."),
paste(c(prefix, "High"), collapse="."),
paste(c(... | /R-packages/hzc/R/utils.R | no_license | chungers/atp | R | false | false | 922 | r |
# xts = xts object
# m = multiple in units (mins, hours)
as.ohlc <- function(xts, m=1, on='mins') {
# get the prefix from column name like 'AAPL.ASK':
prefix <- colnames(xts)[1]
cols <- c(
paste(c(prefix, "Open"), collapse="."),
paste(c(prefix, "High"), collapse="."),
paste(c(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/by_samples.R
\name{get_clinical_by_sample}
\alias{get_clinical_by_sample}
\title{Get clinical data by attribute, study ID and sample ID}
\usage{
get_clinical_by_sample(
study_id = NULL,
sample_id = NULL,
sample_study_pairs = NULL,
cli... | /man/get_clinical_by_sample.Rd | permissive | karissawhiting/cbioportalR | R | false | true | 2,105 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/by_samples.R
\name{get_clinical_by_sample}
\alias{get_clinical_by_sample}
\title{Get clinical data by attribute, study ID and sample ID}
\usage{
get_clinical_by_sample(
study_id = NULL,
sample_id = NULL,
sample_study_pairs = NULL,
cli... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
test.glm.plug_values <- function() {
cars <- h2o.importFile(locate("smalldata/junit/cars_20mpg.csv"))
cars$name <- NULL
glm1 <- h2o.glm(training_frame = cars, y = "cylinders")
means <-... | /h2o-r/tests/testdir_algos/glm/runit_GLM_plug_values.R | permissive | h2oai/h2o-3 | R | false | false | 789 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
test.glm.plug_values <- function() {
cars <- h2o.importFile(locate("smalldata/junit/cars_20mpg.csv"))
cars$name <- NULL
glm1 <- h2o.glm(training_frame = cars, y = "cylinders")
means <-... |
library(deldir)
library(sf)
library(sp)
library(tidyverse)
#idea sameple pi in groups of 3 digits, each digit is an angle, sum is size (or 1st num is size)
piChar <- read.table("data/PI_10000.txt", stringsAsFactors=F, colClasses = c("character"))[1,1]
piVec <- as.numeric(strsplit(piChar, "")[[1]])
#######... | /triangles_test.R | no_license | will-r-chase/artinpi | R | false | false | 1,355 | r | library(deldir)
library(sf)
library(sp)
library(tidyverse)
#idea sameple pi in groups of 3 digits, each digit is an angle, sum is size (or 1st num is size)
piChar <- read.table("data/PI_10000.txt", stringsAsFactors=F, colClasses = c("character"))[1,1]
piVec <- as.numeric(strsplit(piChar, "")[[1]])
#######... |
############# R Functions for parsing NCCA ASCII header information ##############
# 3-10-2014 Raymond Nelson
#
#
# this script contains the following functions
#
# eventCSVNames()
# to make a character vector of the names of "*events.csv" files
#
# eventMatrix()
# to make a csv table of the stimlus events for all char... | /backup/eventParse.r | no_license | raymondnelson/NCCA_ASCII_Parse | R | false | false | 8,090 | r | ############# R Functions for parsing NCCA ASCII header information ##############
# 3-10-2014 Raymond Nelson
#
#
# this script contains the following functions
#
# eventCSVNames()
# to make a character vector of the names of "*events.csv" files
#
# eventMatrix()
# to make a csv table of the stimlus events for all char... |
## pre code {
## ----style, echo = FALSE, results = 'asis'-------------------------------
BiocStyle::markdown()
options(width=60, max.print=1000)
knitr::opts_chunk$set(
eval=as.logical(Sys.getenv("KNITR_EVAL", "TRUE")),
cache=as.logical(Sys.getenv("KNITR_CACHE", "TRUE")),
tidy.opts=list(width.cutoff=60), ... | /varseq/version-current/systemPipeVARseq.R | no_license | dcassol/systemPipeR_workflows | R | false | false | 16,098 | r | ## pre code {
## ----style, echo = FALSE, results = 'asis'-------------------------------
BiocStyle::markdown()
options(width=60, max.print=1000)
knitr::opts_chunk$set(
eval=as.logical(Sys.getenv("KNITR_EVAL", "TRUE")),
cache=as.logical(Sys.getenv("KNITR_CACHE", "TRUE")),
tidy.opts=list(width.cutoff=60), ... |
library(openxlsx)
library(tidyverse)
data_df <- read.xlsx("17-45/LifeExpectancyAtBirth.xlsx", sheet = 1)
total <- data_df %>%
filter(Gender == "Total") %>%
group_by(Country.Name) %>%
arrange(Country.Name, Year) %>%
mutate(prior.Year = lag(Year), prior.Life.Expectancy = lag(Life.Expectancy)) %>%
mut... | /17-45/makeovermondayW45.R | no_license | tbobin/MakeOverMonday | R | false | false | 2,250 | r |
library(openxlsx)
library(tidyverse)
data_df <- read.xlsx("17-45/LifeExpectancyAtBirth.xlsx", sheet = 1)
total <- data_df %>%
filter(Gender == "Total") %>%
group_by(Country.Name) %>%
arrange(Country.Name, Year) %>%
mutate(prior.Year = lag(Year), prior.Life.Expectancy = lag(Life.Expectancy)) %>%
mut... |
# 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 u... | /r/tests/testthat/test-python.R | permissive | abs-tudelft/arrow | R | false | false | 3,764 | 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 u... |
setwd("~/Desktop/git-space/ranalysis/corpus")
library(XML)
library(tidytext)
library(dplyr)
library(stringr)
library(glue)
library(tidyverse)
# stick together the path to the file & 1st file name
hmMarked <- glue("277-words.txt", sep = " ")
words <- data_frame(file = paste0("~/Desktop/git-space/ranalysis/corpus/",
... | /code/277-sentiment-analysis.R | no_license | melvillesmarks/ranalysis | R | false | false | 1,913 | r |
setwd("~/Desktop/git-space/ranalysis/corpus")
library(XML)
library(tidytext)
library(dplyr)
library(stringr)
library(glue)
library(tidyverse)
# stick together the path to the file & 1st file name
hmMarked <- glue("277-words.txt", sep = " ")
words <- data_frame(file = paste0("~/Desktop/git-space/ranalysis/corpus/",
... |
#' @importFrom assertthat assert_that
NULL | /R/imports.R | permissive | tzakharko/executr | R | false | false | 42 | r | #' @importFrom assertthat assert_that
NULL |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_home_away.R
\name{model_home_away}
\alias{model_home_away}
\title{Run Home Away model}
\usage{
model_home_away(data, variable)
}
\arguments{
\item{data}{The data frame on which the model is run.
It should come from \code{\link{format_da... | /man/model_home_away.Rd | no_license | gaelleVF/PPBstats-PPBmelange | R | false | true | 942 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_home_away.R
\name{model_home_away}
\alias{model_home_away}
\title{Run Home Away model}
\usage{
model_home_away(data, variable)
}
\arguments{
\item{data}{The data frame on which the model is run.
It should come from \code{\link{format_da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/directconnect_operations.R
\name{directconnect_confirm_transit_virtual_interface}
\alias{directconnect_confirm_transit_virtual_interface}
\title{Accepts ownership of a transit virtual interface created by another
Amazon Web Services account}
... | /cran/paws.networking/man/directconnect_confirm_transit_virtual_interface.Rd | permissive | paws-r/paws | R | false | true | 842 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/directconnect_operations.R
\name{directconnect_confirm_transit_virtual_interface}
\alias{directconnect_confirm_transit_virtual_interface}
\title{Accepts ownership of a transit virtual interface created by another
Amazon Web Services account}
... |
#' @title get_hipster
#' @description Plots an image of a hipster. What else?
#' @examples
#'# Get a hipster
#'get_hipster()
#' @author Mike McMahon, \email{Mike.McMahon@@dfo-mpo.gc.ca}
#' @export
get_hipster<-function(){
#each query gets 20 results - use the randomizer allow results from any of the first 50 pages of... | /R/get_hipster.R | permissive | Maritimes/hipsteR | R | false | false | 1,010 | r | #' @title get_hipster
#' @description Plots an image of a hipster. What else?
#' @examples
#'# Get a hipster
#'get_hipster()
#' @author Mike McMahon, \email{Mike.McMahon@@dfo-mpo.gc.ca}
#' @export
get_hipster<-function(){
#each query gets 20 results - use the randomizer allow results from any of the first 50 pages of... |
library(dplyr)
library(ggplot2)
library(tidyverse)
source('helper.R')
review = read.csv("employee_reviews.csv", stringsAsFactors = FALSE)
# seperate job.title column in to several column since there is many information contained in this column.
review1 = separate(review, job.title, c('employee.status', 'posit... | /app2/data_cleaning.r | no_license | Capstone-Projects-2020-Fall/jobscanner | R | false | false | 1,021 | r | library(dplyr)
library(ggplot2)
library(tidyverse)
source('helper.R')
review = read.csv("employee_reviews.csv", stringsAsFactors = FALSE)
# seperate job.title column in to several column since there is many information contained in this column.
review1 = separate(review, job.title, c('employee.status', 'posit... |
#' Get reference model structure
#'
#' Generic function that can be used to create and fetch the reference model structure
#' for all those objects that have this method. All these implementations are wrappers
#' to the \code{\link{init_refmodel}}-function so the returned object has the same type.
#'
#' @name get-ref... | /R/refmodel.R | no_license | yinsenm/projpred | R | false | false | 14,065 | r |
#' Get reference model structure
#'
#' Generic function that can be used to create and fetch the reference model structure
#' for all those objects that have this method. All these implementations are wrappers
#' to the \code{\link{init_refmodel}}-function so the returned object has the same type.
#'
#' @name get-ref... |
require(sqldf)
data <- read.csv.sql( file='./household_power_consumption.txt',
sep=";",
sql="select * from file where Date = '1/2/2007' or Date = '2/2/2007'",
header=TRUE)
data$Timestamp = strptime(paste(data$Date, data$Time), format = "%d/%m/%Y %H:%M:%S... | /ExploratoryDataAnalysis/project1/plot4.R | no_license | clauraliu/myrepo | R | false | false | 1,022 | r | require(sqldf)
data <- read.csv.sql( file='./household_power_consumption.txt',
sep=";",
sql="select * from file where Date = '1/2/2007' or Date = '2/2/2007'",
header=TRUE)
data$Timestamp = strptime(paste(data$Date, data$Time), format = "%d/%m/%Y %H:%M:%S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.