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 |
|---|---|---|---|---|---|---|---|---|---|
context("Test matchGene for GmtList")
testGenes <- c("AKT1", "AKT2", "EGFR", "ERBB2", "TSC1", "TSC2", NA)
testCharQuery <- c("AKT1", "AKT2", "AKT3")
expCharQuery <- list(TempGeneSet=c(1L,2L))
test_that("matchGenes works for characters and characters", {
expect_equivalent(matchGenes(testCharQuery, testGen... | /tests/testthat/test-matchGene.R | no_license | planetMDX/BioQC | R | false | false | 5,337 | r | context("Test matchGene for GmtList")
testGenes <- c("AKT1", "AKT2", "EGFR", "ERBB2", "TSC1", "TSC2", NA)
testCharQuery <- c("AKT1", "AKT2", "AKT3")
expCharQuery <- list(TempGeneSet=c(1L,2L))
test_that("matchGenes works for characters and characters", {
expect_equivalent(matchGenes(testCharQuery, testGen... |
#### Read data on local #####
## Only local:
## sourced to get data
# wd should be
# [1] "J:/UEA/gitHRepos/HJA_analyses_Kelpie"
library(dplyr)
# library(here) # not on ADA
# library(glue) # replaced with paste for ADA
samtoolsfilter <- "F2308" # F2308 filter only
samtoolsqual <- "q48"
minimaprundate <- 20200929... | /Hmsc_CD/local/L1_read_data.r | permissive | dougwyu/HJA_analyses_Kelpie | R | false | false | 8,852 | r | #### Read data on local #####
## Only local:
## sourced to get data
# wd should be
# [1] "J:/UEA/gitHRepos/HJA_analyses_Kelpie"
library(dplyr)
# library(here) # not on ADA
# library(glue) # replaced with paste for ADA
samtoolsfilter <- "F2308" # F2308 filter only
samtoolsqual <- "q48"
minimaprundate <- 20200929... |
# mctoolsr
#################
# NORMALIZATION #
#################
#' @title Rarefy samples in a taxa table
#' @description Rarefying means to randomly select a specified number of
#' observations from each sample. This approach is used to normalize for
#' differences in the number of observations (i.e. sequencing ... | /R/normalization.R | no_license | padpadpadpad/mctoolsr | R | false | false | 4,271 | r | # mctoolsr
#################
# NORMALIZATION #
#################
#' @title Rarefy samples in a taxa table
#' @description Rarefying means to randomly select a specified number of
#' observations from each sample. This approach is used to normalize for
#' differences in the number of observations (i.e. sequencing ... |
#Testing AH with IUT
conAH=function(Z,ld,n){
pp=JointSum(Z,rep(1,length(Z)),N=n,XX=ld,YY0=diag(1),adj_Y=0)
bbb=pp$beta
ccc=pp$cov
q=length(bbb)
t0=t(bbb)%*%ginv(ccc)%*%bbb
ppp=c(pchisq(t0[1,1],df=q,lower.tail=FALSE))
for(j in 1:q){
bbb2=bbb[-j]
ccc2=ccc[-j,]
if(is.matrix(ccc2)==TRUE){
c... | /R/conAH.R | no_license | yangq001/AHIUT | R | false | false | 486 | r | #Testing AH with IUT
conAH=function(Z,ld,n){
pp=JointSum(Z,rep(1,length(Z)),N=n,XX=ld,YY0=diag(1),adj_Y=0)
bbb=pp$beta
ccc=pp$cov
q=length(bbb)
t0=t(bbb)%*%ginv(ccc)%*%bbb
ppp=c(pchisq(t0[1,1],df=q,lower.tail=FALSE))
for(j in 1:q){
bbb2=bbb[-j]
ccc2=ccc[-j,]
if(is.matrix(ccc2)==TRUE){
c... |
install.packages("spFSR")
| /Assignment_2.R | no_license | tim-kirkbride/MLProject | R | false | false | 27 | r | install.packages("spFSR")
|
version https://git-lfs.github.com/spec/v1
oid sha256:ed65ba2590c8f43d0def1dad8565ed47c608bdc6fb5c29bc1ec0b67596e6dbc5
size 8300
| /Ipopt-3.12.7/Ipopt/contrib/RInterface/R/get.option.types.R | no_license | MPC-implementation/Model_Predictive_Control_Acado | R | false | false | 129 | r | version https://git-lfs.github.com/spec/v1
oid sha256:ed65ba2590c8f43d0def1dad8565ed47c608bdc6fb5c29bc1ec0b67596e6dbc5
size 8300
|
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/central_nervous_system.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.02,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/central_nervous_... | /Model/EN/ReliefF/central_nervous_system/central_nervous_system_010.R | no_license | leon1003/QSMART | R | false | false | 401 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/central_nervous_system.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.02,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/central_nervous_... |
\name{is.rectangle}
\alias{is.rectangle}
\alias{is.polygonal}
\alias{is.mask}
\title{Determine Type of Window}
\description{
Determine whether a window is a
rectangle, a polygonal region, or a binary mask.
}
\usage{
is.rectangle(w)
is.polygonal(w)
is.mask(w)
}
\arguments{
\item{w}{
Window to be inspecte... | /man/is.rectangle.Rd | no_license | chenjiaxun9/spatstat | R | false | false | 933 | rd | \name{is.rectangle}
\alias{is.rectangle}
\alias{is.polygonal}
\alias{is.mask}
\title{Determine Type of Window}
\description{
Determine whether a window is a
rectangle, a polygonal region, or a binary mask.
}
\usage{
is.rectangle(w)
is.polygonal(w)
is.mask(w)
}
\arguments{
\item{w}{
Window to be inspecte... |
cTree <- function(formula, data, test, depth, minPoints = 1, costFnc = c("Entropy")){
library(assertthat)
library(dplyr)
# Checking inputs
assert_that(costFnc %in% c("Entropy", "Gini", "ME"))
assert_that(!is.null(dim(data)))
if(all.vars(formula)[2] != "."){
assert_that(mean(all.vars(formula) %in% colnam... | /PS5/cTree.R | no_license | AndreasGSE/AdvancedComputing | R | false | false | 6,611 | r | cTree <- function(formula, data, test, depth, minPoints = 1, costFnc = c("Entropy")){
library(assertthat)
library(dplyr)
# Checking inputs
assert_that(costFnc %in% c("Entropy", "Gini", "ME"))
assert_that(!is.null(dim(data)))
if(all.vars(formula)[2] != "."){
assert_that(mean(all.vars(formula) %in% colnam... |
# installing and loading the dplyr package
install.packages("dplyr")
library(dplyr)
# adding a column with mutate
library(dslabs)
data("murders")
# Use filter to create a new data frame no_south
no_south <- filter(murders, region !="South")
# Use nrow() to calculate the number of rows
nrow(no_south) | /Exercises/Basics-R/Filter-Condition-nrow.R | permissive | IbisMalko/R-Scripts | R | false | false | 302 | r | # installing and loading the dplyr package
install.packages("dplyr")
library(dplyr)
# adding a column with mutate
library(dslabs)
data("murders")
# Use filter to create a new data frame no_south
no_south <- filter(murders, region !="South")
# Use nrow() to calculate the number of rows
nrow(no_south) |
#' Generate the forensic parameters UI.
#' @export
#' @noRd
for_UI <- function(id) {
ns <- NS(id)
tabPanel(
"Forensic parameters",
h3("Forensic parameters"),
awesomeCheckbox(
ns('displayForensics'),
'Compute forensics statistics (H, GD, PIC, PD, PE & TPI)',
FALSE
),
condit... | /R/module_for_popgen.R | no_license | asitav-sen/straf | R | false | false | 18,422 | r | #' Generate the forensic parameters UI.
#' @export
#' @noRd
for_UI <- function(id) {
ns <- NS(id)
tabPanel(
"Forensic parameters",
h3("Forensic parameters"),
awesomeCheckbox(
ns('displayForensics'),
'Compute forensics statistics (H, GD, PIC, PD, PE & TPI)',
FALSE
),
condit... |
#' Fitting Linear Models
#'
#' This function fits a linear model in the form of the specified formula using the given data.
#'
#' @param formula A formula class object that specifies the structure of the model.
#' @param data A data frame that contains the variables of the model.
#'
#' @keywords inference prediction
#'... | /R/my_lm.R | no_license | thomson3uw/project3part1package | R | false | false | 2,131 | r | #' Fitting Linear Models
#'
#' This function fits a linear model in the form of the specified formula using the given data.
#'
#' @param formula A formula class object that specifies the structure of the model.
#' @param data A data frame that contains the variables of the model.
#'
#' @keywords inference prediction
#'... |
library(randomForest)
library(bst)
train = read.csv('/Users/fliptop/Downloads/train.csv', header=T, stringsAsFactor=T)
test = read.csv('/Users/fliptop/Downloads/test.csv', header=T, stringsAsFactor=T)
train$PassengerId = NULL
#Female = 1, Male = 0
train$Sex = gsub('female',1,train$Sex)
train$Sex = gsub('^male',0,tra... | /titanic_model.R | no_license | kliu92/Kevin_random_stuff | R | false | false | 3,311 | r | library(randomForest)
library(bst)
train = read.csv('/Users/fliptop/Downloads/train.csv', header=T, stringsAsFactor=T)
test = read.csv('/Users/fliptop/Downloads/test.csv', header=T, stringsAsFactor=T)
train$PassengerId = NULL
#Female = 1, Male = 0
train$Sex = gsub('female',1,train$Sex)
train$Sex = gsub('^male',0,tra... |
setwd("E:\\finder\\work\\K-NN")
wdbc<-read.table(file.choose(), sep=',')
view(wdbc)
head(wdbc)
wdbc<-wdbc[, -1]
data_norm<-function(x) {((x-min(x))/(max(x)-min(x)))}
wdbc_norm<-as.data.frame (lapply(wdbc[, -1], data_norm))
summary(wdbc[, 2:5])
summary(wdbc_norm[, 1:5])
wdbc_train<-wdbc_norm[1:450, ]
wdbc_test... | /knnCancerClasi.R | no_license | kumarabhishekisone/r-projects | R | false | false | 487 | r | setwd("E:\\finder\\work\\K-NN")
wdbc<-read.table(file.choose(), sep=',')
view(wdbc)
head(wdbc)
wdbc<-wdbc[, -1]
data_norm<-function(x) {((x-min(x))/(max(x)-min(x)))}
wdbc_norm<-as.data.frame (lapply(wdbc[, -1], data_norm))
summary(wdbc[, 2:5])
summary(wdbc_norm[, 1:5])
wdbc_train<-wdbc_norm[1:450, ]
wdbc_test... |
## costruct cook book
cookie2<-col.names
cookie2<-gsub("^t", "Time ", cookie2)
cookie2<-gsub("^f", "Frequency ", cookie2)
cookie2<-gsub("Acc", "Accelerometer ", cookie2)
cookie2<-gsub("Gyro", "Gyroscope ", cookie2)
cookie2<-gsub("[G,g]ravity","Gravity ",cookie2)
cookie2<-gsub("Mag", "Magnitude ", cookie2)
coo... | /Cook_subscript.R | no_license | Samariya57/Getting-and-Cleaning-Data-Course-Project | R | false | false | 792 | r | ## costruct cook book
cookie2<-col.names
cookie2<-gsub("^t", "Time ", cookie2)
cookie2<-gsub("^f", "Frequency ", cookie2)
cookie2<-gsub("Acc", "Accelerometer ", cookie2)
cookie2<-gsub("Gyro", "Gyroscope ", cookie2)
cookie2<-gsub("[G,g]ravity","Gravity ",cookie2)
cookie2<-gsub("Mag", "Magnitude ", cookie2)
coo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/enhanced-boxes.R
\name{socialBox}
\alias{socialBox}
\title{AdminLTE2 social box}
\usage{
socialBox(..., src = NULL, title = NULL, subtitle = NULL, width = 6,
height = NULL, collapsible = TRUE, closable = TRUE, comments = NULL,
footer = NU... | /man/socialBox.Rd | no_license | JuveCampos/shinydashboardPlus | R | false | true | 2,156 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/enhanced-boxes.R
\name{socialBox}
\alias{socialBox}
\title{AdminLTE2 social box}
\usage{
socialBox(..., src = NULL, title = NULL, subtitle = NULL, width = 6,
height = NULL, collapsible = TRUE, closable = TRUE, comments = NULL,
footer = NU... |
testlist <- list(X = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(2L, 5L)))
result <- do.call(hmlasso:::covC,testlist)
str(result) | /hmlasso/inst/testfiles/covC/libFuzzer_covC/covC_valgrind_files/1609896838-test.R | no_license | akhikolla/newtestfiles-2 | R | false | false | 138 | r | testlist <- list(X = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(2L, 5L)))
result <- do.call(hmlasso:::covC,testlist)
str(result) |
#### Event function ####
#' @include e_show.R analysis_helpers.R
NULL
#' Event Function class
#'
#' Event functions are general functions for representing environmental events. That is, their primary use is for reinforcement schedules.
#'
#' In the CAB package, objects from classes like \code{event} are called 'eleme... | /R/event.R | no_license | Don-Li/CAB_original | R | false | false | 5,600 | r | #### Event function ####
#' @include e_show.R analysis_helpers.R
NULL
#' Event Function class
#'
#' Event functions are general functions for representing environmental events. That is, their primary use is for reinforcement schedules.
#'
#' In the CAB package, objects from classes like \code{event} are called 'eleme... |
## Results do not match with R's lmer.
## Please have a look at the file with the same name in limitations folder
# rm(list = setdiff(ls(),"connection"))
## implement as.R for FLSimpleVector.
## using 1 Random Effects.
FLenv <- new.env(parent = globalenv())
fltbl <- FLTable(getTestTableName("tblMixedModel"), "ObsID"... | /tests/testthat/test_mixedmodel.R | no_license | phani-srikar/AdapteR | R | false | false | 841 | r | ## Results do not match with R's lmer.
## Please have a look at the file with the same name in limitations folder
# rm(list = setdiff(ls(),"connection"))
## implement as.R for FLSimpleVector.
## using 1 Random Effects.
FLenv <- new.env(parent = globalenv())
fltbl <- FLTable(getTestTableName("tblMixedModel"), "ObsID"... |
#load the dataset
electric <- read.table("household_power_consumption.txt",header=T,sep=";",colClasses=c("character","character","double","double","double","double","double","double","numeric"),na.strings="?")
electric$Time = paste(electric$Date, electric$Time)
electric$Time = as.POSIXlt(electric$Time,format="%d/%m/... | /plot4.R | no_license | arisbw/ExData_Plotting1 | R | false | false | 1,116 | r | #load the dataset
electric <- read.table("household_power_consumption.txt",header=T,sep=";",colClasses=c("character","character","double","double","double","double","double","double","numeric"),na.strings="?")
electric$Time = paste(electric$Date, electric$Time)
electric$Time = as.POSIXlt(electric$Time,format="%d/%m/... |
#########################
# NOTES
# this R script runs the EA simulations on the tardis cluster
# Tardis thereby runs many of this scrips in parallel and asigns a diferent 'clusterid' to each worker
# The simulation contains following steps:
# Load functions and packages
# Assign 'clusterid'
# Define important a... | /EA_simulations_cluster.R | permissive | alantump/socialDDM_Evolutionary_Algorithm | R | false | false | 4,787 | r |
#########################
# NOTES
# this R script runs the EA simulations on the tardis cluster
# Tardis thereby runs many of this scrips in parallel and asigns a diferent 'clusterid' to each worker
# The simulation contains following steps:
# Load functions and packages
# Assign 'clusterid'
# Define important a... |
# load("D:/STW PDAS/RDATA/pipe_direction_2.rdata")
# Packages ---------------------------------------------------------------------
library(sf)
library(tmap)
library(plyr)
library(dplyr)
library(magrittr)
library(data.table)
library(tibble)
# Parallelisation
library(parallel)
library(doParallel)
library(foreach)
l... | /pipe-depth-from-lidar-images/scripts/delete me when done.R | no_license | tayoso2/pdas_mapping | R | false | false | 3,823 | r |
# load("D:/STW PDAS/RDATA/pipe_direction_2.rdata")
# Packages ---------------------------------------------------------------------
library(sf)
library(tmap)
library(plyr)
library(dplyr)
library(magrittr)
library(data.table)
library(tibble)
# Parallelisation
library(parallel)
library(doParallel)
library(foreach)
l... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
##----------------------------------------------------------
## This function creates a special "matrix" object that can cache its invers... | /cachematrix.R | no_license | cscarvalho/ProgrammingAssignment2 | R | false | false | 1,500 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
##----------------------------------------------------------
## This function creates a special "matrix" object that can cache its invers... |
#' This function applies the integral operator with the kernel \code{ker} onto the function \code{f}. Can be useful for defining custom filter to be used for the filtered white noise simulation approach, see \code{\link{filter_simulate}}.
#'
#'
#' @title Apply the integral operator defined by its kernel
#' @param ker ... | /R/kernel_operator.R | no_license | tomasrubin/specsimfts | R | false | false | 1,830 | r | #' This function applies the integral operator with the kernel \code{ker} onto the function \code{f}. Can be useful for defining custom filter to be used for the filtered white noise simulation approach, see \code{\link{filter_simulate}}.
#'
#'
#' @title Apply the integral operator defined by its kernel
#' @param ker ... |
library(surveillance)
### Name: algo.rogerson
### Title: Modified CUSUM method as proposed by Rogerson and Yamada (2004)
### Aliases: algo.rogerson
### Keywords: classif
### ** Examples
# simulate data
set.seed(123)
data <- simHHH(control = list(coefs = list(alpha =-0.5, gamma = 0.4,
delta = 0.6)),le... | /data/genthat_extracted_code/surveillance/examples/algo.rogerson.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 646 | r | library(surveillance)
### Name: algo.rogerson
### Title: Modified CUSUM method as proposed by Rogerson and Yamada (2004)
### Aliases: algo.rogerson
### Keywords: classif
### ** Examples
# simulate data
set.seed(123)
data <- simHHH(control = list(coefs = list(alpha =-0.5, gamma = 0.4,
delta = 0.6)),le... |
5.5 + .
.
a<-function(x){x+.}
a(1)
a(.)
| /test/parser/nan.r | no_license | micha-p/roq | R | false | false | 41 | r | 5.5 + .
.
a<-function(x){x+.}
a(1)
a(.)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gimme.R
\name{gimmeSEM}
\alias{gimmeSEM}
\alias{gimme}
\title{Group iterative multiple model estimation.}
\usage{
gimmeSEM(data = "",
out = "",
sep = "",
header = ,
ar =... | /gimme/man/gimmeSEM.Rd | no_license | kaduffy/gimme-OLD | R | false | true | 12,079 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gimme.R
\name{gimmeSEM}
\alias{gimmeSEM}
\alias{gimme}
\title{Group iterative multiple model estimation.}
\usage{
gimmeSEM(data = "",
out = "",
sep = "",
header = ,
ar =... |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
require(shiny) # Shiny Framework
require(shinythings) # Password Input/Better Action buttons
require(ShinyHighCharts) # Javascript... | /ui.R | no_license | dcurrier/InCell | R | false | false | 21,012 | r |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
require(shiny) # Shiny Framework
require(shinythings) # Password Input/Better Action buttons
require(ShinyHighCharts) # Javascript... |
####TD2#####
Data <- read.csv("/home/manue/Documents/manue/Cours/cour ESIEA/4a/presidential_polls.csv", sep=',')
#/home/manue/Documents/manue/Cours/cour ESIEA/4a/td2/densityRawClinton.pdf
dataf <- as.data.frame(Data)
summary(dataf)
#Chargement des donn?es
#Les sondages de type ? polls-only ? vont pond?rer les r?su... | /TD2_4055_2017-correction.R | no_license | manuclaeys/esiea_estimation_2017 | R | false | false | 9,076 | r | ####TD2#####
Data <- read.csv("/home/manue/Documents/manue/Cours/cour ESIEA/4a/presidential_polls.csv", sep=',')
#/home/manue/Documents/manue/Cours/cour ESIEA/4a/td2/densityRawClinton.pdf
dataf <- as.data.frame(Data)
summary(dataf)
#Chargement des donn?es
#Les sondages de type ? polls-only ? vont pond?rer les r?su... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{removeHyperPars}
\alias{removeHyperPars}
\title{Remove hyperparameters settings of a learner.}
\usage{
removeHyperPars(learner, ids = character(0L))
}
\arguments{
\item{learner}{[\code{\link{Learner}} | \code{character(1)}]\cr
The learner.
If you pass a string ... | /man/removeHyperPars.Rd | no_license | Daron-Wan/mlr | R | false | false | 875 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{removeHyperPars}
\alias{removeHyperPars}
\title{Remove hyperparameters settings of a learner.}
\usage{
removeHyperPars(learner, ids = character(0L))
}
\arguments{
\item{learner}{[\code{\link{Learner}} | \code{character(1)}]\cr
The learner.
If you pass a string ... |
library(dplyr)
library(tm)
library(knitr)
library(RWeka)
library(caret)
preprocessed <-
read.csv(file = "C:/Users/Aldrin/Desktop/school_folders/CS191-ML/trec07p/preprocessed.csv", head =
TRUE, sep = ",")
preprocessedDF <- as.data.frame(preprocessed)
preprocessedReduced <-
read.csv(file = "C:/Users/Ald... | /Naive-Bayes/Exercise1/train.R | no_license | ACRacusa/CS191ML | R | false | false | 5,545 | r | library(dplyr)
library(tm)
library(knitr)
library(RWeka)
library(caret)
preprocessed <-
read.csv(file = "C:/Users/Aldrin/Desktop/school_folders/CS191-ML/trec07p/preprocessed.csv", head =
TRUE, sep = ",")
preprocessedDF <- as.data.frame(preprocessed)
preprocessedReduced <-
read.csv(file = "C:/Users/Ald... |
fluidPage(
# Application title
titlePanel("Word Cloud"),
sidebarLayout(
# Sidebar with a slider and selection inputs
sidebarPanel(
selectInput("selection",
"Choose your n-gram range:",
choices = grams),
selectInput("decade", "Choose your decade:", choice... | /scripts/Louis_app/ui.R | no_license | ijkaylin/Spotify-Analysis | R | false | false | 436 | r | fluidPage(
# Application title
titlePanel("Word Cloud"),
sidebarLayout(
# Sidebar with a slider and selection inputs
sidebarPanel(
selectInput("selection",
"Choose your n-gram range:",
choices = grams),
selectInput("decade", "Choose your decade:", choice... |
library(testthat)
library(dagitty)
test_check("dagitty")
| /r/tests/testthat.R | no_license | jtextor/dagitty | R | false | false | 58 | r | library(testthat)
library(dagitty)
test_check("dagitty")
|
testlist <- list(n = 168438016L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) | /breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609961624-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 97 | r | testlist <- list(n = 168438016L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) |
boot_autocov <-
function(series,replic=5000,plot=TRUE,alpha=0.05){
if (is.ts(series)==TRUE){
library(boot)
kas = tsboot(series,statistic,R=replic,sim="scramble")
quantiles = matrix(0,length(kas$t[1,]),3)
for (i in 2:length(kas$t[1,])){
cp = kas$t[,i]
quantiles[i,1]= quantile(cp,alpha)
... | /timesboot/R/boot_autocov.R | no_license | ingted/R-Examples | R | false | false | 998 | r | boot_autocov <-
function(series,replic=5000,plot=TRUE,alpha=0.05){
if (is.ts(series)==TRUE){
library(boot)
kas = tsboot(series,statistic,R=replic,sim="scramble")
quantiles = matrix(0,length(kas$t[1,]),3)
for (i in 2:length(kas$t[1,])){
cp = kas$t[,i]
quantiles[i,1]= quantile(cp,alpha)
... |
\name{simHDStr}
\alias{simHDStr}
\encoding{UTF-8}
\title{
Simulate HDS time-removal or double-observer data
}
\description{
A general function for simulating hierarchical distance sampling (HDS) data combined with a time-removal (with 3 removal periods) or double-observer protocol, either for a line or a point t... | /man/simHDStr.Rd | no_license | guillaumesouchay/AHMbook | R | false | false | 3,037 | rd | \name{simHDStr}
\alias{simHDStr}
\encoding{UTF-8}
\title{
Simulate HDS time-removal or double-observer data
}
\description{
A general function for simulating hierarchical distance sampling (HDS) data combined with a time-removal (with 3 removal periods) or double-observer protocol, either for a line or a point t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kantorovich_glpk.R
\name{kantorovich_glpk}
\alias{kantorovich_glpk}
\title{Computes Kantorovich distance with GLPK}
\usage{
kantorovich_glpk(
mu,
nu,
dist = NULL,
solution = FALSE,
stop_if_fail = TRUE,
...
)
}
\argu... | /man/kantorovich_glpk.Rd | no_license | cran/kantorovich | R | false | true | 1,122 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kantorovich_glpk.R
\name{kantorovich_glpk}
\alias{kantorovich_glpk}
\title{Computes Kantorovich distance with GLPK}
\usage{
kantorovich_glpk(
mu,
nu,
dist = NULL,
solution = FALSE,
stop_if_fail = TRUE,
...
)
}
\argu... |
get.adjustment.matrix <- function(original=NULL,target=NULL) {
return(
(target - original) %*% t(original) / sum(original^2)
);
}
| /projects/Investment/portfolio-rebalance/code/get-adjustment-matrix.R | no_license | paradisepilot/statistics | R | false | false | 136 | r | get.adjustment.matrix <- function(original=NULL,target=NULL) {
return(
(target - original) %*% t(original) / sum(original^2)
);
}
|
#' @title IsotopeFilter
#' @description a function can filter isotope.
#' @author Shine Shen
#' \email{qq951633542@@163.com}
#' @return All the results can be got form other functions and instruction.
#' @export
IsotopeFilter <- function() {
cat("Import data...\n")
data <- data.table::fread("data.csv")
data <- ... | /R/IsotopeFilter.R | no_license | shineshen007/shine | R | false | false | 691 | r | #' @title IsotopeFilter
#' @description a function can filter isotope.
#' @author Shine Shen
#' \email{qq951633542@@163.com}
#' @return All the results can be got form other functions and instruction.
#' @export
IsotopeFilter <- function() {
cat("Import data...\n")
data <- data.table::fread("data.csv")
data <- ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/filter_individual.R
\name{filter_individual}
\alias{filter_individual}
\title{Individual filter}
\usage{
filter_individual(data, is.vcf, population.map, pop.id.start, pop.id.end,
pop.levels, ind.threshold, threshold.fixed, filename)... | /man/filter_individual.Rd | no_license | eschang1/stackr | R | false | false | 1,247 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/filter_individual.R
\name{filter_individual}
\alias{filter_individual}
\title{Individual filter}
\usage{
filter_individual(data, is.vcf, population.map, pop.id.start, pop.id.end,
pop.levels, ind.threshold, threshold.fixed, filename)... |
# fit different random effect structures with scaled body size
# (had less convergence problems than with centered body size
# when trying to fit random effect structures)
library(mgcv)
# set computer-specific paths (note: 'path' points to the folder
# containing the data, and is used in 'data_prep.R')
# alt... | /joR/code/joR_modelFits_scale.R | no_license | bdsegal/FLS-bone-strength | R | false | false | 4,336 | r | # fit different random effect structures with scaled body size
# (had less convergence problems than with centered body size
# when trying to fit random effect structures)
library(mgcv)
# set computer-specific paths (note: 'path' points to the folder
# containing the data, and is used in 'data_prep.R')
# alt... |
# titanic competition
# On April 15, 1912, during her maiden voyage, the widely considered "unsinkable"
# RMS Titanic sank after colliding with an iceberg. Unfortunately, there weren't
# enough lifeboats for everyone onboard, resulting in the death
# of 1502 out of 2224 passengers and crew.
# Death - 1502, Al... | /titanic ML competion.R | no_license | LearnwithRavi/titanicML | R | false | false | 12,613 | r | # titanic competition
# On April 15, 1912, during her maiden voyage, the widely considered "unsinkable"
# RMS Titanic sank after colliding with an iceberg. Unfortunately, there weren't
# enough lifeboats for everyone onboard, resulting in the death
# of 1502 out of 2224 passengers and crew.
# Death - 1502, Al... |
library(dplyr)
library(readxl)
library(ggplot2)
prices_taxes <- read_excel("./data/raw/DataDownload.xls", sheet = 10)
soda_tax_top15 <- prices_taxes %>%
group_by(State) %>%
summarise(avg_soda_tax = mean(SODATAX_STORES14)) %>%
top_n(15, wt = avg_soda_tax)
mil... | /phoebe_analysis/analysis.R | no_license | Kyle-Simpson/info478-final-project | R | false | false | 1,331 | r | library(dplyr)
library(readxl)
library(ggplot2)
prices_taxes <- read_excel("./data/raw/DataDownload.xls", sheet = 10)
soda_tax_top15 <- prices_taxes %>%
group_by(State) %>%
summarise(avg_soda_tax = mean(SODATAX_STORES14)) %>%
top_n(15, wt = avg_soda_tax)
mil... |
#조우식 2020.05.19 / 2020.05.19
#문1)
#다음은 직장인 10명의 수입과 교육받은 기간을 조사한 자료이다. 산점도와
#상관계수를 구하고, 수입과 교육기간 사이에 어떤 상관관게가 있는지 설명하시오.
income<- c( 121, 99, 41, 35, 40, 29, 35, 24, 50, 60)
period<- c( 19, 20, 16, 16, 18, 12, 14, 12, 16, 17)
v3 <- data.frame( income, period)
v3
par( mfrow = c( 1, 1) )
plot( income~period, data = ... | /Jowoosik_20200519.R | no_license | jowoosik/Workspace.R | R | false | false | 4,151 | r | #조우식 2020.05.19 / 2020.05.19
#문1)
#다음은 직장인 10명의 수입과 교육받은 기간을 조사한 자료이다. 산점도와
#상관계수를 구하고, 수입과 교육기간 사이에 어떤 상관관게가 있는지 설명하시오.
income<- c( 121, 99, 41, 35, 40, 29, 35, 24, 50, 60)
period<- c( 19, 20, 16, 16, 18, 12, 14, 12, 16, 17)
v3 <- data.frame( income, period)
v3
par( mfrow = c( 1, 1) )
plot( income~period, data = ... |
## bam donttest case
library(mgcv)
set.seed(3); k <- 12; bs <- "cr"
dat <- gamSim(1,n=25000,dist="normal",scale=20)
ba <- bam(y ~ s(x0,bs=bs,k=k)+s(x1,bs=bs,k=k)+s(x2,bs=bs,k=k)+
s(x3,bs=bs,k=k),data=dat,method="GCV.Cp") ## use GCV
summary(ba)
| /R-Portable-Mac/library/mgcv/tests/bam.R | permissive | sdownin/sequencer | R | false | false | 257 | r | ## bam donttest case
library(mgcv)
set.seed(3); k <- 12; bs <- "cr"
dat <- gamSim(1,n=25000,dist="normal",scale=20)
ba <- bam(y ~ s(x0,bs=bs,k=k)+s(x1,bs=bs,k=k)+s(x2,bs=bs,k=k)+
s(x3,bs=bs,k=k),data=dat,method="GCV.Cp") ## use GCV
summary(ba)
|
Parse_Annotator <-
function()
{
## Currently, only provide the chunking parser with the default
## model.
## Add type = "chunking" and model = NULL arguments evetually.
package <- "openNLPmodels.en"
model <- system.file("models/en-parser-chunking.bin",
package = package)
... | /R/parse.R | no_license | cran/openNLP | R | false | false | 3,150 | r | Parse_Annotator <-
function()
{
## Currently, only provide the chunking parser with the default
## model.
## Add type = "chunking" and model = NULL arguments evetually.
package <- "openNLPmodels.en"
model <- system.file("models/en-parser-chunking.bin",
package = package)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbDataType.R
\name{dbDataType,PrestoDriver-method}
\alias{dbDataType,PrestoDriver-method}
\title{Return the corresponding presto data type for the given R \code{object}}
\usage{
\S4method{dbDataType}{PrestoDriver}(dbObj, obj, ...)
}
\argument... | /man/dbDataType.Rd | permissive | leepface/RPresto | R | false | true | 1,474 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbDataType.R
\name{dbDataType,PrestoDriver-method}
\alias{dbDataType,PrestoDriver-method}
\title{Return the corresponding presto data type for the given R \code{object}}
\usage{
\S4method{dbDataType}{PrestoDriver}(dbObj, obj, ...)
}
\argument... |
\name{recodeData}
\alias{recodeData}
\title{
Recode a Genotype Data Matrix.
}
\description{
This function recodes a genotype data matrix in a format as expected from \code{eqtl} or \code{mdr}.
}
\usage{
recodeData(X)
}
\arguments{
\item{X}{Matrix with genotype information.}
}
\details{
This function recod... | /man/recodeData.Rd | no_license | fischuu/GenomicTools | R | false | false | 788 | rd | \name{recodeData}
\alias{recodeData}
\title{
Recode a Genotype Data Matrix.
}
\description{
This function recodes a genotype data matrix in a format as expected from \code{eqtl} or \code{mdr}.
}
\usage{
recodeData(X)
}
\arguments{
\item{X}{Matrix with genotype information.}
}
\details{
This function recod... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bbmle-tidiers.R
\name{tidy.mle2}
\alias{tidy.mle2}
\alias{mle2_tidiers}
\alias{bbmle_tidiers}
\title{Tidy a(n) mle2 object}
\usage{
\method{tidy}{mle2}(x, conf.int = FALSE, conf.level = 0.95, ...)
}
\arguments{
\item{x}{An \code{mle2} object ... | /man/tidy.mle2.Rd | no_license | nemochina2008/broom | R | false | true | 2,744 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bbmle-tidiers.R
\name{tidy.mle2}
\alias{tidy.mle2}
\alias{mle2_tidiers}
\alias{bbmle_tidiers}
\title{Tidy a(n) mle2 object}
\usage{
\method{tidy}{mle2}(x, conf.int = FALSE, conf.level = 0.95, ...)
}
\arguments{
\item{x}{An \code{mle2} object ... |
# 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... | /mepstrends/hc_use/json/code/r/avgEVT__agegrps__married__.r | permissive | RandomCriticalAnalysis/MEPS-summary-tables | R | false | false | 4,093 | 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... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/useShinydashboard.R
\name{useShinydashboard}
\alias{useShinydashboard}
\title{Use 'shinydashboard' in 'shiny'}
\usage{
useShinydashboard()
}
\description{
Allow to use functions from 'shinydashboard' into a classic 'shiny' app,
specifically \... | /man/useShinydashboard.Rd | no_license | cran/shinyWidgets | R | false | true | 2,394 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/useShinydashboard.R
\name{useShinydashboard}
\alias{useShinydashboard}
\title{Use 'shinydashboard' in 'shiny'}
\usage{
useShinydashboard()
}
\description{
Allow to use functions from 'shinydashboard' into a classic 'shiny' app,
specifically \... |
# 1
# read data
powerData <- read.table(file="household_power_consumption.txt",
sep=";", header = TRUE, stringsAsFactors = FALSE)
# only need data from 2 days
powerData2Days <- rbind(subset(powerData, Date == "1/2/2007"),
subset(powerData, Date == "2/2/2007"))
# plot
... | /plot1.R | no_license | bin2000/ExData_Plotting1 | R | false | false | 550 | r | # 1
# read data
powerData <- read.table(file="household_power_consumption.txt",
sep=";", header = TRUE, stringsAsFactors = FALSE)
# only need data from 2 days
powerData2Days <- rbind(subset(powerData, Date == "1/2/2007"),
subset(powerData, Date == "2/2/2007"))
# plot
... |
case.times <- c(1,2,2,3,3)
gen <- c(0, 2/3, 1/3, 0, 0)
t.density <- gen/sum(gen)
a <- est.wt.matrix.weights(case.times=case.times, gen.t.dist=t.density)
| /R/examples/est_wt_matrix_weights.R | no_license | shauntruelove/IDSpatialStats | R | false | false | 154 | r | case.times <- c(1,2,2,3,3)
gen <- c(0, 2/3, 1/3, 0, 0)
t.density <- gen/sum(gen)
a <- est.wt.matrix.weights(case.times=case.times, gen.t.dist=t.density)
|
library(ggplot2)
library(ggConvexHull)
context("Testing geom exists and doesn't output errors")
n <- 10
test_df <- data.frame(
a = runif(n),
b = runif(n)
)
test_that("Stat exists", {
expect_silent(
ggplot(test_df,aes(x = a,y = b)) +
geom_point() +
stat_convexhull(alpha = 0.3, fill = "blue")
... | /tests/testthat/test_geom_convexhull.R | no_license | shaoyoucheng/ggConvexHull | R | false | false | 486 | r | library(ggplot2)
library(ggConvexHull)
context("Testing geom exists and doesn't output errors")
n <- 10
test_df <- data.frame(
a = runif(n),
b = runif(n)
)
test_that("Stat exists", {
expect_silent(
ggplot(test_df,aes(x = a,y = b)) +
geom_point() +
stat_convexhull(alpha = 0.3, fill = "blue")
... |
library("data.table")
#Dates we are looking for
firstDate<-as.Date("2007-02-01")
lastDate<-as.Date("2007-02-02")
#1.instead of reading all data, find exact part of the file containg specific period
#read only 1st row
firstRow<-fread("household_power_consumption.txt",sep=";",header=TRUE,nrow=1)
#get date
earliestDa... | /plot2.R | no_license | anton-lukyanov/ExData_Plotting1 | R | false | false | 1,558 | r | library("data.table")
#Dates we are looking for
firstDate<-as.Date("2007-02-01")
lastDate<-as.Date("2007-02-02")
#1.instead of reading all data, find exact part of the file containg specific period
#read only 1st row
firstRow<-fread("household_power_consumption.txt",sep=";",header=TRUE,nrow=1)
#get date
earliestDa... |
#' @rdname displ
#' @aliases conpl-class
#' @exportClass conpl
#' @export conpl
conpl =
setRefClass("conpl",
contains="ctn_distribution",
fields = list(
dat = function(x) {
if(!missing(x) && !is.null(x)) {
check_ctn_data(x)
... | /pkg/R/all_classes_ctn.R | no_license | linzhp/poweRlaw | R | false | false | 4,484 | r | #' @rdname displ
#' @aliases conpl-class
#' @exportClass conpl
#' @export conpl
conpl =
setRefClass("conpl",
contains="ctn_distribution",
fields = list(
dat = function(x) {
if(!missing(x) && !is.null(x)) {
check_ctn_data(x)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/findSNPs2.R
\name{findSNPs2}
\alias{findSNPs2}
\title{Find the SNPs that match with the input SNP.}
\usage{
findSNPs2(x, y)
}
\arguments{
\item{x}{Data frame with two columns (input_snp and matched_snps)}
\item{y}{Character with the input sn... | /man/findSNPs2.Rd | no_license | ldehoyos/twinSNP | R | false | true | 502 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/findSNPs2.R
\name{findSNPs2}
\alias{findSNPs2}
\title{Find the SNPs that match with the input SNP.}
\usage{
findSNPs2(x, y)
}
\arguments{
\item{x}{Data frame with two columns (input_snp and matched_snps)}
\item{y}{Character with the input sn... |
#-------------1----------------
#b
flint <-read.csv("~/Desktop/stats10/lab5/flint_2015.csv", header = TRUE)
n <- nrow(flint)
dangerous_lead_indicator <- (flint$Pb >= 15)
p_hat <- mean(dangerous_lead_indicator)
sd_sample<-sqrt(p_hat*(1-p_hat)/n)
p_hat
sd_sample
#c
p_null <- 0.10
se_null <- sqrt(p_null*(1-p_null)/n)
z_st... | /stats10/lab5/lab5.R | no_license | Enmin/Coursework | R | false | false | 1,072 | r | #-------------1----------------
#b
flint <-read.csv("~/Desktop/stats10/lab5/flint_2015.csv", header = TRUE)
n <- nrow(flint)
dangerous_lead_indicator <- (flint$Pb >= 15)
p_hat <- mean(dangerous_lead_indicator)
sd_sample<-sqrt(p_hat*(1-p_hat)/n)
p_hat
sd_sample
#c
p_null <- 0.10
se_null <- sqrt(p_null*(1-p_null)/n)
z_st... |
ml_run <- function(trainData,
testData,
folds_list = NULL,
Model = "XGB",
codeTest = TRUE,
Parallel = TRUE,
K = 10,
SAVE = TRUE,
Cores = 1,
Kernel = ... | /ml_run.r | no_license | aptperson/behaviour_accelerometry | R | false | false | 5,071 | r | ml_run <- function(trainData,
testData,
folds_list = NULL,
Model = "XGB",
codeTest = TRUE,
Parallel = TRUE,
K = 10,
SAVE = TRUE,
Cores = 1,
Kernel = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/afterhours_dist.R
\name{afterhours_dist}
\alias{afterhours_dist}
\title{Distribution of After-hours Collaboration Hours as a 100\% stacked bar}
\usage{
afterhours_dist(
data,
hrvar = "Organization",
mingroup = 5,
return = "plot",
cu... | /man/afterhours_dist.Rd | permissive | Global19/wpa | R | false | true | 2,188 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/afterhours_dist.R
\name{afterhours_dist}
\alias{afterhours_dist}
\title{Distribution of After-hours Collaboration Hours as a 100\% stacked bar}
\usage{
afterhours_dist(
data,
hrvar = "Organization",
mingroup = 5,
return = "plot",
cu... |
library(data.table)
setwd("C:/Users/NNarasim/OneDrive/Temp/Coursera/04. Exploratory Data Analysis/RWorking")
require(data.table)
DT <- fread("./data/household_power_consumption.txt", sep=";", header=TRUE, na.strings="?")
febData <- as.data.frame(DT[Date == c("1/2/2007","2/2/2007"),])
febData$Time <- strptime(paste(fe... | /plot1.R | no_license | NNarasimulu/ExData_Plotting1 | R | false | false | 692 | r | library(data.table)
setwd("C:/Users/NNarasim/OneDrive/Temp/Coursera/04. Exploratory Data Analysis/RWorking")
require(data.table)
DT <- fread("./data/household_power_consumption.txt", sep=";", header=TRUE, na.strings="?")
febData <- as.data.frame(DT[Date == c("1/2/2007","2/2/2007"),])
febData$Time <- strptime(paste(fe... |
test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
test_that("my_lm works mathematically", {
expect_equal(my_lm(y ~ x, data.frame(x = c(1, 2), y = c(2, 4)))$Estimate,
c(0, 2))
expect_equal(my_lm(y ~ x, data.frame(x = c(1, 2), 3, 4,
y = c(0, 0, 0, 0)... | /tests/testthat/test-my_lm.R | no_license | johnbdonovan/myFirstPackage | R | false | false | 686 | r | test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
test_that("my_lm works mathematically", {
expect_equal(my_lm(y ~ x, data.frame(x = c(1, 2), y = c(2, 4)))$Estimate,
c(0, 2))
expect_equal(my_lm(y ~ x, data.frame(x = c(1, 2), 3, 4,
y = c(0, 0, 0, 0)... |
################################################################################
##################### Public/Private Class Definitions #########################
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Public Class !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#' Class Lolliplot
#'
#' An S4 class for the lolliplot object, under devel... | /R/Lolliplot-class.R | permissive | markgene/GenVisR | R | false | false | 67,963 | r | ################################################################################
##################### Public/Private Class Definitions #########################
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Public Class !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#' Class Lolliplot
#'
#' An S4 class for the lolliplot object, under devel... |
###############################################################################
# FILE: Person-MultLevel-VisNetwork-FN-TripleStore.R
# DESC: Visualization of the nodes connected to Person_1 as a FN graph
# Traverse the graph outward from Person_1 using SPARQL
# SRC :
# DOCS: https://cran.r-project.org/web/packa... | /r/vis/archive/Person-MultLevel-VisNetwork-FN-TripleStore.R | permissive | nicholsn/CTDasRDF | R | false | false | 5,382 | r | ###############################################################################
# FILE: Person-MultLevel-VisNetwork-FN-TripleStore.R
# DESC: Visualization of the nodes connected to Person_1 as a FN graph
# Traverse the graph outward from Person_1 using SPARQL
# SRC :
# DOCS: https://cran.r-project.org/web/packa... |
#' @describeIn ResultSet Returns the names of the variables of the models used in
#' a \code{ResultSet}.
setMethod(
f = "varLabels",
signature="ResultSet",
definition = function(object) {
return(lapply(object@results, function(x) {
if(class(x$result) == "MArrayLM") {
coln... | /R/ResultSet-varLabels.R | permissive | isglobal-brge/MultiDataSet | R | false | false | 416 | r | #' @describeIn ResultSet Returns the names of the variables of the models used in
#' a \code{ResultSet}.
setMethod(
f = "varLabels",
signature="ResultSet",
definition = function(object) {
return(lapply(object@results, function(x) {
if(class(x$result) == "MArrayLM") {
coln... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170318e+295, 5.48671490371084e+303, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615784936-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 329 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170318e+295, 5.48671490371084e+303, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... |
#https://www.statmethods.net/r-tutorial/index.html
#creating new variables
x1 <- c(10,20,30,40,50)
x2 <- c(1,2,3,4,5)
mydata <- data.frame(x1,x2)
fix(mydata)
mydata$sum <- mydata$x1 + mydata$x2
mydata$mean <- (mydata$x1 + mydata$x2)/2
#attach(mydata)
mydata$sum <- x1+x2
mydata$mean <- (x1+x2)/2
#detach(mydata)
myda... | /R/DataMgmt/data_management.R | no_license | pasu-t/Data-Science | R | false | false | 870 | r | #https://www.statmethods.net/r-tutorial/index.html
#creating new variables
x1 <- c(10,20,30,40,50)
x2 <- c(1,2,3,4,5)
mydata <- data.frame(x1,x2)
fix(mydata)
mydata$sum <- mydata$x1 + mydata$x2
mydata$mean <- (mydata$x1 + mydata$x2)/2
#attach(mydata)
mydata$sum <- x1+x2
mydata$mean <- (x1+x2)/2
#detach(mydata)
myda... |
#'Download a file from a GENESIS database
#'
#'Wrapper for download.file to download any export table from a GENESIS database.
#'
#'@param db The database to download from. See options below.
#'@param table the code of the table to download
#'@param format the format in which to download the table. Options are "csv", ... | /R/deeplink_download.R | no_license | captaincaracho/GENESIStools | R | false | false | 2,139 | r | #'Download a file from a GENESIS database
#'
#'Wrapper for download.file to download any export table from a GENESIS database.
#'
#'@param db The database to download from. See options below.
#'@param table the code of the table to download
#'@param format the format in which to download the table. Options are "csv", ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sdtm.R
\docType{data}
\name{sdtm_suppds}
\alias{sdtm_suppds}
\title{sdtm_suppds}
\format{
a data frame with 3 rows and 10 columns. See \url{https://github.com/SafetyGraphics/safetyData/blob/main/data-raw/sdtm/README.md} for more details and f... | /man/sdtm_suppds.Rd | permissive | Rosie-L/safetyData | R | false | true | 1,052 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sdtm.R
\docType{data}
\name{sdtm_suppds}
\alias{sdtm_suppds}
\title{sdtm_suppds}
\format{
a data frame with 3 rows and 10 columns. See \url{https://github.com/SafetyGraphics/safetyData/blob/main/data-raw/sdtm/README.md} for more details and f... |
#Setting the correct working directory where data files and ANNs are located
setwd('C:/Users/gihan/Desktop/Montoye/ANN_2015/features_set_4_hip')
#Opening nnet library for using artificial neural networks (ANNs)
library(nnet)
input_foldername <- 'C:/Users/gihan/Desktop/Montoye/ANN_2015/features_set_4_hip/inputs_for_A... | /Evaluating_existing_models/ANN_models/ANN_2015/features_set_4_hip/model_script_features_set_4_hip.R | no_license | GihanMora/Accelerometer_OA_gihan | R | false | false | 3,023 | r |
#Setting the correct working directory where data files and ANNs are located
setwd('C:/Users/gihan/Desktop/Montoye/ANN_2015/features_set_4_hip')
#Opening nnet library for using artificial neural networks (ANNs)
library(nnet)
input_foldername <- 'C:/Users/gihan/Desktop/Montoye/ANN_2015/features_set_4_hip/inputs_for_A... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SVM.R
\name{getOrganelleF1}
\alias{getOrganelleF1}
\title{Plot the missing values.}
\usage{
getOrganelleF1(params)
}
\arguments{
\item{params}{Output from \code{svmOptimisation}}
}
\value{
\code{data.frame()} with per organelle F1
}
\descript... | /man/getOrganelleF1.Rd | no_license | TomSmithCGAT/OptProc | R | false | true | 352 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SVM.R
\name{getOrganelleF1}
\alias{getOrganelleF1}
\title{Plot the missing values.}
\usage{
getOrganelleF1(params)
}
\arguments{
\item{params}{Output from \code{svmOptimisation}}
}
\value{
\code{data.frame()} with per organelle F1
}
\descript... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/babble.r
\name{babble}
\alias{babble}
\alias{babble,ngram-method}
\title{ngram Babbler}
\usage{
babble(ng, genlen = 150, seed = getseed())
\S4method{babble}{ngram}(ng, genlen = 150, seed = getseed())
}
\arguments{
\item{ng}{An ngram object.}... | /man/babble.Rd | permissive | wrathematics/ngram | R | false | true | 1,057 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/babble.r
\name{babble}
\alias{babble}
\alias{babble,ngram-method}
\title{ngram Babbler}
\usage{
babble(ng, genlen = 150, seed = getseed())
\S4method{babble}{ngram}(ng, genlen = 150, seed = getseed())
}
\arguments{
\item{ng}{An ngram object.}... |
#' @title PipeOpSample_B
#'
#' @name PipeOpSample_B
#'
#' @description
#' Impute features by sampling from non-missing data in approach B (independently during the training and prediction phase).
#'
#' @section Input and Output Channels:
#' Input and output channels are inherited from \code{\link{PipeOpImpute}}.
#'
#' ... | /EMMA_package/EMMA/R/PipeOpSample_B.R | no_license | okcze/EMMA | R | false | false | 2,161 | r | #' @title PipeOpSample_B
#'
#' @name PipeOpSample_B
#'
#' @description
#' Impute features by sampling from non-missing data in approach B (independently during the training and prediction phase).
#'
#' @section Input and Output Channels:
#' Input and output channels are inherited from \code{\link{PipeOpImpute}}.
#'
#' ... |
library(BSDA)
### Name: Rentals
### Title: Weekly rentals for 45 apartments
### Aliases: Rentals
### Keywords: datasets
### ** Examples
stem(Rentals$rent)
sum(Rentals$rent < mean(Rentals$rent) - 3*sd(Rentals$rent) |
Rentals$rent > mean(Rentals$rent) + 3*sd(Rentals$rent))
| /data/genthat_extracted_code/BSDA/examples/Rentals.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 285 | r | library(BSDA)
### Name: Rentals
### Title: Weekly rentals for 45 apartments
### Aliases: Rentals
### Keywords: datasets
### ** Examples
stem(Rentals$rent)
sum(Rentals$rent < mean(Rentals$rent) - 3*sd(Rentals$rent) |
Rentals$rent > mean(Rentals$rent) + 3*sd(Rentals$rent))
|
ComputationNode <- setRefClass("ComputationNode",
contains='Node',
fields = list(a='Node',b='Node' ),
methods = list(
compute=function(){##do computation return result
... | /R/cNodes.R | no_license | dennisthemenace2/Slice | R | false | false | 28,553 | r |
ComputationNode <- setRefClass("ComputationNode",
contains='Node',
fields = list(a='Node',b='Node' ),
methods = list(
compute=function(){##do computation return result
... |
#' get metadata df
#'
#' This function:
#' 1. Identifies which cells are likely to to contains meta data (in top right corner)
#' 2. groups them according to their indenting, bold and italic formatting
#' 3. Specifies the unpivotr function specifying the direction of the header w.r.t. table d... | /R/get_meta_df.R | permissive | bedantaguru/tidyABS | R | false | false | 2,859 | r | #' get metadata df
#'
#' This function:
#' 1. Identifies which cells are likely to to contains meta data (in top right corner)
#' 2. groups them according to their indenting, bold and italic formatting
#' 3. Specifies the unpivotr function specifying the direction of the header w.r.t. table d... |
require(readr)
require(plyr)
require(igraph)
require(rgexf)
# set working directory
getwd()
setwd("../query_results/merge_scripts/intersection_merge/")
# read node and edges into dataframe with the name expected by igraph
nodes <- read.csv("time_slice_1511_intersection_merge_budé_and_era_correspondents.csv", fileEnco... | /intersections_budé_erasmus/r_scripts/intersection_merge_time_slices_gexf_created_by_r/create_gexf_intersection_merge_budé_era_1511.R | no_license | CKudella/corr_data | R | false | false | 4,370 | r | require(readr)
require(plyr)
require(igraph)
require(rgexf)
# set working directory
getwd()
setwd("../query_results/merge_scripts/intersection_merge/")
# read node and edges into dataframe with the name expected by igraph
nodes <- read.csv("time_slice_1511_intersection_merge_budé_and_era_correspondents.csv", fileEnco... |
library(dplyr)
library(ggplot2)
library('corrplot')
library('car')
library(dummies)
setwd('C:/Users/요우용/Desktop/온라인상에의 사회활동.csv/온라인 커뮤니티 활동')
getwd()
# csv파일을 메모장을 통해 UTF-8로 인코딩한 후 다시 메모장을 통해 UTF-8로 인코딩한 csv를 ANSI로 인코딩
com <- read.csv('온라인 커뮤니티 활동_통합.csv',header=T, stringsAsFactors = F)
head(com)
com... | /사회통계학_완성본_R.R | no_license | oungji212/internet_social | R | false | false | 19,178 | r | library(dplyr)
library(ggplot2)
library('corrplot')
library('car')
library(dummies)
setwd('C:/Users/요우용/Desktop/온라인상에의 사회활동.csv/온라인 커뮤니티 활동')
getwd()
# csv파일을 메모장을 통해 UTF-8로 인코딩한 후 다시 메모장을 통해 UTF-8로 인코딩한 csv를 ANSI로 인코딩
com <- read.csv('온라인 커뮤니티 활동_통합.csv',header=T, stringsAsFactors = F)
head(com)
com... |
##############################################################################################################################
# Title: ParamSelect.R
# Type: Module2 for DCR Shiny App
# Description: Parameter selection with Historical at end and Select All feature
# Written by: Nick Zinck, Spring 2017
#... | /modules/filter/param_select.R | permissive | dancrocker/DCR-WAVE | R | false | false | 4,627 | r | ##############################################################################################################################
# Title: ParamSelect.R
# Type: Module2 for DCR Shiny App
# Description: Parameter selection with Historical at end and Select All feature
# Written by: Nick Zinck, Spring 2017
#... |
% Copyright (C) 2017 Google, Inc.
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doroaspreanalysis.R
\name{DoROASPreanalysis}
\alias{DoROASPreanalysis}
\alias{DoROASPreanalysis.GeoExperimentPreanalysisData}
\alias{DoROASPreanalysis.GeoTimeseries}
\title{Predicts the standard deviation (s... | /man/DoROASPreanalysis.Rd | permissive | ovative-group/GeoexperimentsResearch | R | false | false | 3,362 | rd | % Copyright (C) 2017 Google, Inc.
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doroaspreanalysis.R
\name{DoROASPreanalysis}
\alias{DoROASPreanalysis}
\alias{DoROASPreanalysis.GeoExperimentPreanalysisData}
\alias{DoROASPreanalysis.GeoTimeseries}
\title{Predicts the standard deviation (s... |
#October figures manuscript
#data subset code - MUST USE AFTER RUNNING SIMULATION! Comes from "eig.dat"
#subsetting data to construct figures, probably a much better way to do it
dat1a <- subset(eig.dat, gbar=="0.1" & pc=="-1")
dat1b <- subset(eig.dat, gbar=="0.1" & pc=="-0.5")
dat1c <- subset(eig.dat, gbar=="0.1" & ... | /Prev_Scripts/Figures.R | no_license | efeichtinger/Chapter1 | R | false | false | 19,291 | r | #October figures manuscript
#data subset code - MUST USE AFTER RUNNING SIMULATION! Comes from "eig.dat"
#subsetting data to construct figures, probably a much better way to do it
dat1a <- subset(eig.dat, gbar=="0.1" & pc=="-1")
dat1b <- subset(eig.dat, gbar=="0.1" & pc=="-0.5")
dat1c <- subset(eig.dat, gbar=="0.1" & ... |
library("lattice")
x <- seq(1.0, 2*pi, length.out=20)
y <- seq(1.0, 2*pi, length.out=20)
r1 <- as.vector(sqrt(outer(x^2, y^2, "+")))
r2 <- as.vector(sqrt(outer((x-3)^2, (y-3)^2, "+")))
grid <- expand.grid(x=x, y=y)
grid$z <- sin(r1) + sin(r2)
contourplot(z ~ x * y, grid, col.regions = topo.colors(20),
at ... | /09-lattice/27_contour_plot.R | no_license | xmorgan/r-examples | R | false | false | 362 | r | library("lattice")
x <- seq(1.0, 2*pi, length.out=20)
y <- seq(1.0, 2*pi, length.out=20)
r1 <- as.vector(sqrt(outer(x^2, y^2, "+")))
r2 <- as.vector(sqrt(outer((x-3)^2, (y-3)^2, "+")))
grid <- expand.grid(x=x, y=y)
grid$z <- sin(r1) + sin(r2)
contourplot(z ~ x * y, grid, col.regions = topo.colors(20),
at ... |
\name{.pmm.match}
\alias{.pmm.match}
\title{Finds an imputed value from matches in the predictive metric}
\usage{
.pmm.match(z, yhat = yhat, y = y, donors = 3, ...)
}
\arguments{
\item{z}{A scalar containing the predicted value for the
current case to be imputed.}
\item{yhat}{A vector containing the predicted ... | /man/pmm.match.Rd | no_license | RossBoylan/mice | R | false | false | 1,394 | rd | \name{.pmm.match}
\alias{.pmm.match}
\title{Finds an imputed value from matches in the predictive metric}
\usage{
.pmm.match(z, yhat = yhat, y = y, donors = 3, ...)
}
\arguments{
\item{z}{A scalar containing the predicted value for the
current case to be imputed.}
\item{yhat}{A vector containing the predicted ... |
library(data.table)
data <- read.table(file.choose(), skip = 1, sep = ";")
names(data) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1",
"Sub_metering_2","Sub_metering_3")
data$Date <- as.Date(data$Date, "%d/%m/%Y")
data1 <- subset(da... | /plot1.R | no_license | pkt2/ExData_Plotting1 | R | false | false | 601 | r | library(data.table)
data <- read.table(file.choose(), skip = 1, sep = ";")
names(data) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1",
"Sub_metering_2","Sub_metering_3")
data$Date <- as.Date(data$Date, "%d/%m/%Y")
data1 <- subset(da... |
#' Add spatial k nearest neighbor (sknn) values
#'
#' @param x A data frame with variables for lon and lat
#' @param vars A vector of variables to regress with sknn
#' @param k The value for 3, default 3
#' @param lon The lon variable
#' @param lat The lat variable
#' @param suffix The suffix to use, default "_lag"
#'... | /R/spatial.R | permissive | Deleetdk/kirkegaard | R | false | false | 2,890 | r |
#' Add spatial k nearest neighbor (sknn) values
#'
#' @param x A data frame with variables for lon and lat
#' @param vars A vector of variables to regress with sknn
#' @param k The value for 3, default 3
#' @param lon The lon variable
#' @param lat The lat variable
#' @param suffix The suffix to use, default "_lag"
#'... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bottom_line_neighbors.R
\name{bottom_line_neighbors}
\alias{bottom_line_neighbors}
\title{Get indices of five neighbors for an index at the bottom line of the plate}
\usage{
bottom_line_neighbors(plateformat, n)
}
\arguments{
\item{plateforma... | /man/bottom_line_neighbors.Rd | permissive | sathishsrinivasank/pinerrordetector | R | false | true | 716 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bottom_line_neighbors.R
\name{bottom_line_neighbors}
\alias{bottom_line_neighbors}
\title{Get indices of five neighbors for an index at the bottom line of the plate}
\usage{
bottom_line_neighbors(plateformat, n)
}
\arguments{
\item{plateforma... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_lineups.R
\name{get_lineups}
\alias{get_lineups}
\title{Download Lineups data}
\usage{
get_lineups(
season,
group_quantity,
measure_type,
team_id = "0",
date_from = "",
date_to = "",
opponent_team_id = "0",
outcome = "",
... | /man/get_lineups.Rd | no_license | AlienDeg/NBAr | R | false | true | 3,076 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_lineups.R
\name{get_lineups}
\alias{get_lineups}
\title{Download Lineups data}
\usage{
get_lineups(
season,
group_quantity,
measure_type,
team_id = "0",
date_from = "",
date_to = "",
opponent_team_id = "0",
outcome = "",
... |
setwd('C:/Users/Owner/Documents/GitHub/AnalyticsChallenge2020')
source('https://github.com/ajreinhard/data-viz/raw/master/ggplot/plot_SB.R')
sis_df <- read.csv('https://raw.githubusercontent.com/SportsInfoSolutions/AnalyticsChallenge2020/master/Data/AnalyticsChallenge2020Data.csv', stringsAsFactors = F)
## % of time ... | /Submissions/zachmfeldman@gmail.com/code/technique plots.R | no_license | SportsInfoSolutions/AnalyticsChallenge2020 | R | false | false | 5,892 | r | setwd('C:/Users/Owner/Documents/GitHub/AnalyticsChallenge2020')
source('https://github.com/ajreinhard/data-viz/raw/master/ggplot/plot_SB.R')
sis_df <- read.csv('https://raw.githubusercontent.com/SportsInfoSolutions/AnalyticsChallenge2020/master/Data/AnalyticsChallenge2020Data.csv', stringsAsFactors = F)
## % of time ... |
#' Farenheit Converter
#'
#' This function converts temperature from Farenheit to Celsius.
#' @param temp_F Numeric input indicating temperature in Farenheit.
#' @keywords temperature
#'
#' @return Numeric indicating temperature \code{temp_F} converted to Celsius.
#'
#' @examples
#' f_to_c(32)
#' f_to_c(212)
#'
#' @exp... | /R/f_to_c.R | no_license | alishaluo/STAT302package | R | false | false | 407 | r | #' Farenheit Converter
#'
#' This function converts temperature from Farenheit to Celsius.
#' @param temp_F Numeric input indicating temperature in Farenheit.
#' @keywords temperature
#'
#' @return Numeric indicating temperature \code{temp_F} converted to Celsius.
#'
#' @examples
#' f_to_c(32)
#' f_to_c(212)
#'
#' @exp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uncertainty.R
\name{phylo_generate_uncertainty}
\alias{phylo_generate_uncertainty}
\title{Function to generate uncertainty in branch lengths using a lognormal}
\usage{
phylo_generate_uncertainty(phy, size = 100,
uncertainty_method = "other"... | /man/phylo_generate_uncertainty.Rd | no_license | gitter-badger/datelife | R | false | true | 2,786 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uncertainty.R
\name{phylo_generate_uncertainty}
\alias{phylo_generate_uncertainty}
\title{Function to generate uncertainty in branch lengths using a lognormal}
\usage{
phylo_generate_uncertainty(phy, size = 100,
uncertainty_method = "other"... |
library(lme4)
library(FactoMineR)
library(ggplot2)
library(tidyr)
library(MASS)
library(tree)
library(dplyr)
###########################################################################################################
# Regressão Linear e ANOVA ---------------------------------------------------------------------------... | /script/aula_05.R | no_license | curso-r/verao2016 | R | false | false | 9,000 | r | library(lme4)
library(FactoMineR)
library(ggplot2)
library(tidyr)
library(MASS)
library(tree)
library(dplyr)
###########################################################################################################
# Regressão Linear e ANOVA ---------------------------------------------------------------------------... |
\name{em}
\alias{em}
\title{EM algorithm starting with E-step for parameterized Gaussian mixture models}
\description{
Implements the EM algorithm for parameterized Gaussian mixture models,
starting with the expectation step.
}
\usage{
em(modelName, data, parameters, prior = NULL, control = emControl(),
warn =... | /man/em.Rd | no_license | Japrin/mclust | R | false | false | 5,148 | rd | \name{em}
\alias{em}
\title{EM algorithm starting with E-step for parameterized Gaussian mixture models}
\description{
Implements the EM algorithm for parameterized Gaussian mixture models,
starting with the expectation step.
}
\usage{
em(modelName, data, parameters, prior = NULL, control = emControl(),
warn =... |
##'
##' Visualize mating potential
##'
##' @title graphical visualization of a mating potential object
##' @param matPot a mating potential object
##' @param subject character, either 'ind' or 'pair', indicating whether the subject being visualized is individuals or pairwise interactions
##' @param plotType character, ... | /R/plotPotential.R | no_license | danhan52/mateable | R | false | false | 13,192 | r | ##'
##' Visualize mating potential
##'
##' @title graphical visualization of a mating potential object
##' @param matPot a mating potential object
##' @param subject character, either 'ind' or 'pair', indicating whether the subject being visualized is individuals or pairwise interactions
##' @param plotType character, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cancelTest.R
\name{cancelTest}
\alias{cancelTest}
\title{Cancel test}
\usage{
cancelTest(server, testId, key = Sys.getenv("WPTKEY"), dryRun = FALSE, ...)
}
\arguments{
\item{server}{A WebPagetest server}
\item{testId}{test ID string}
\item{... | /man/cancelTest.Rd | permissive | johndharrison/webpagetestr | R | false | true | 982 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cancelTest.R
\name{cancelTest}
\alias{cancelTest}
\title{Cancel test}
\usage{
cancelTest(server, testId, key = Sys.getenv("WPTKEY"), dryRun = FALSE, ...)
}
\arguments{
\item{server}{A WebPagetest server}
\item{testId}{test ID string}
\item{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/evidenceToMatrix.R
\name{evidenceToMatrix}
\alias{evidenceToMatrix}
\title{Creates intensity matrix from tabular data in evidence table of MaxQuant}
\usage{
evidenceToMatrix(
evidence,
run_id = "Raw.file",
peptide_id = "PeptideID",
re... | /man/evidenceToMatrix.Rd | no_license | DavisLaboratory/msImpute | R | false | true | 2,339 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/evidenceToMatrix.R
\name{evidenceToMatrix}
\alias{evidenceToMatrix}
\title{Creates intensity matrix from tabular data in evidence table of MaxQuant}
\usage{
evidenceToMatrix(
evidence,
run_id = "Raw.file",
peptide_id = "PeptideID",
re... |
data<-read.table("household_power_consumption.txt",sep=";",header=TRUE,stringsAsFactors=F, na.strings="?")
data$Date<-as.Date(data$Date,format='%d/%m/%Y')
head(data$Date)
data2<-subset(data,Date%in%as.Date(c("2007-02-01","2007-02-02")))
data2$DateTime=as.POSIXct(paste(data2$Date,data2$Time))
data2$Global_activ... | /plot1.R | no_license | elisa-gelli/Course-Project-1 | R | false | false | 545 | r | data<-read.table("household_power_consumption.txt",sep=";",header=TRUE,stringsAsFactors=F, na.strings="?")
data$Date<-as.Date(data$Date,format='%d/%m/%Y')
head(data$Date)
data2<-subset(data,Date%in%as.Date(c("2007-02-01","2007-02-02")))
data2$DateTime=as.POSIXct(paste(data2$Date,data2$Time))
data2$Global_activ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_modify_vpc_attribute}
\alias{ec2_modify_vpc_attribute}
\title{Modifies the specified attribute of the specified VPC}
\usage{
ec2_modify_vpc_attribute(EnableDnsHostnames, EnableDnsSupport, VpcId)
}
\arguments{
\item{... | /paws/man/ec2_modify_vpc_attribute.Rd | permissive | sanchezvivi/paws | R | false | true | 2,305 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_modify_vpc_attribute}
\alias{ec2_modify_vpc_attribute}
\title{Modifies the specified attribute of the specified VPC}
\usage{
ec2_modify_vpc_attribute(EnableDnsHostnames, EnableDnsSupport, VpcId)
}
\arguments{
\item{... |
library(jpeg)
img<-readJPEG("~/Desktop/sampleimage.jpg")
str(img)
plot(NA,xlim=c(0,nrow(img)),ylim=c(0,ncol(img)))
rasterImage(img,0,0,nrow(img),ncol(img))
par(mfrow=c(2,2))
plot(1:512, type='n')
rasterImage(img, 0,0,nrow(img),ncol(img))
image(1:512,1:512,img[,,1])
image(1:512,1:512,img[,,2])
image(1:512,... | /Quality on Image R Codes.R | no_license | BU-IE-582/fall19-ateskorkut | R | false | false | 3,692 | r | library(jpeg)
img<-readJPEG("~/Desktop/sampleimage.jpg")
str(img)
plot(NA,xlim=c(0,nrow(img)),ylim=c(0,ncol(img)))
rasterImage(img,0,0,nrow(img),ncol(img))
par(mfrow=c(2,2))
plot(1:512, type='n')
rasterImage(img, 0,0,nrow(img),ncol(img))
image(1:512,1:512,img[,,1])
image(1:512,1:512,img[,,2])
image(1:512,... |
#######################################################################
## Download the data file given for the assignment and unzip the file##
#######################################################################
## Read The RDS files into the R memory
file1<- "summarySCC_PM25.rds"
file2<- "Source_Classification_Co... | /assignmentcodes/plot2.R | no_license | Arsh-Kaur/EDA_assg2 | R | false | false | 1,292 | r | #######################################################################
## Download the data file given for the assignment and unzip the file##
#######################################################################
## Read The RDS files into the R memory
file1<- "summarySCC_PM25.rds"
file2<- "Source_Classification_Co... |
#' Print tokens as text
#'
#' \strong{Usage:}
#'
#' ## R6 method for class tCorpus. Use as tc$method (where tc is a tCorpus object).
#'
#' \preformatted{
#' read_text(doc_id, column='token', meta_columns = self$meta_names)}
#'
#' @param doc_id The doc_ids of the documents to be printed.
#' @param column The name of the... | /R/print_text.r | no_license | zhanglipku/corpustools | R | false | false | 1,475 | r | #' Print tokens as text
#'
#' \strong{Usage:}
#'
#' ## R6 method for class tCorpus. Use as tc$method (where tc is a tCorpus object).
#'
#' \preformatted{
#' read_text(doc_id, column='token', meta_columns = self$meta_names)}
#'
#' @param doc_id The doc_ids of the documents to be printed.
#' @param column The name of the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.