content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
library(fpp) library(fpp2) library(tseries) library(forecast) library(TSstudio) library(readxl) library(BETS) library(gridExtra) df <- read_excel("Ferti.xlsx") head(df) tail(df) class(df$consumo) ########### Tranformando em TS ######### fert.ts <- ts(df$consumo , frequency = 12, ...
/Trab.R
no_license
Alexlgirao/Time-series
R
false
false
5,230
r
library(fpp) library(fpp2) library(tseries) library(forecast) library(TSstudio) library(readxl) library(BETS) library(gridExtra) df <- read_excel("Ferti.xlsx") head(df) tail(df) class(df$consumo) ########### Tranformando em TS ######### fert.ts <- ts(df$consumo , frequency = 12, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/driver_modification_functions.R \name{driver_add_rain} \alias{driver_add_rain} \title{Add rain to specific month} \usage{ driver_add_rain(drivers, months = 7:9, rain_add = 1) } \arguments{ \item{drivers}{A data.frame with driver data...
/man/driver_add_rain.Rd
permissive
lawinslow/nldastools
R
false
true
614
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/driver_modification_functions.R \name{driver_add_rain} \alias{driver_add_rain} \title{Add rain to specific month} \usage{ driver_add_rain(drivers, months = 7:9, rain_add = 1) } \arguments{ \item{drivers}{A data.frame with driver data...
install.packages("forecast") library(forecast) getwd() setwd("C:/Users/Akshay/Documents/") ts_honey <- read.csv("Honeywell.csv") ts_honey <- ts_honey[c(-1,-3)] #ts_honey <- ts(ts_honey) ts_honey plot.ts(ts_honey) mod1 <- HoltWinters(ts_honey, alpha=0.15, beta=FALSE, gamma=FALSE) mod2 <- HoltWin...
/TimeSeries Honeywell.R
no_license
akshaykapoor347/Time-series-Honeywell-Stock-price-prediction
R
false
false
3,183
r
install.packages("forecast") library(forecast) getwd() setwd("C:/Users/Akshay/Documents/") ts_honey <- read.csv("Honeywell.csv") ts_honey <- ts_honey[c(-1,-3)] #ts_honey <- ts(ts_honey) ts_honey plot.ts(ts_honey) mod1 <- HoltWinters(ts_honey, alpha=0.15, beta=FALSE, gamma=FALSE) mod2 <- HoltWin...
# read in DD <- read.csv(file = "./Fixed_data/all_data_ppt_output.csv", header = T) DD <- data.frame(DD, DD$Js_post - DD$Js_pre) names(DD)[24] <- "Js_diff" require(plyr) count(DD, c("Year","tree_ID")) # lots of non-informative CC <- subset(DD, Js_diff != "NaN") #CC <- subset(CC, tree_ID < 21) #CC <- cbind(rep(1, dim(...
/R_code/model_building.R
no_license
sluxton/mm
R
false
false
1,999
r
# read in DD <- read.csv(file = "./Fixed_data/all_data_ppt_output.csv", header = T) DD <- data.frame(DD, DD$Js_post - DD$Js_pre) names(DD)[24] <- "Js_diff" require(plyr) count(DD, c("Year","tree_ID")) # lots of non-informative CC <- subset(DD, Js_diff != "NaN") #CC <- subset(CC, tree_ID < 21) #CC <- cbind(rep(1, dim(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \docType{methods} \name{colnames} \alias{colnames} \alias{colnames.default} \alias{colnames.gpuMatrix} \alias{colnames.vclMatrix} \alias{colnames<-,gpuMatrix-method} \alias{colnames<-,vclMatrix-method} \title{Row and Column Names} \us...
/man/colnames-methods.Rd
no_license
bryant1410/gpuR
R
false
true
961
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \docType{methods} \name{colnames} \alias{colnames} \alias{colnames.default} \alias{colnames.gpuMatrix} \alias{colnames.vclMatrix} \alias{colnames<-,gpuMatrix-method} \alias{colnames<-,vclMatrix-method} \title{Row and Column Names} \us...
# This file needs to be run inside the UCI HAR Dataset directory. # Read in the list of features that can be found features <- read.table("features.txt", col.names=c("feature_id","feature_name")) # Read in the list of activity labels activity_labels <- read.table("activity_labels.txt", col.names=c("label_id", "label_n...
/run_analysis.R
no_license
daniel42/GetCleanDataCourseProject
R
false
false
2,398
r
# This file needs to be run inside the UCI HAR Dataset directory. # Read in the list of features that can be found features <- read.table("features.txt", col.names=c("feature_id","feature_name")) # Read in the list of activity labels activity_labels <- read.table("activity_labels.txt", col.names=c("label_id", "label_n...
test_format <- function(name, os_skip = NULL) { # don't run on CRAN due to complicated dependencies (Pandoc/LaTeX packages) if (!identical(Sys.getenv("NOT_CRAN"), "true")) return() # skip on OS if requested if (!is.null(os_skip)) return() # work in a temp directory dir <- tempfile() dir.create(dir) ol...
/tests/testit/test-formats.R
no_license
TheMandarax/rticles
R
false
false
1,480
r
test_format <- function(name, os_skip = NULL) { # don't run on CRAN due to complicated dependencies (Pandoc/LaTeX packages) if (!identical(Sys.getenv("NOT_CRAN"), "true")) return() # skip on OS if requested if (!is.null(os_skip)) return() # work in a temp directory dir <- tempfile() dir.create(dir) ol...
library("tidyverse") library("dplyr") #Salaries 2-14 #Benefits 14-26 #Other Training 26-36 #Contractual Services 36-49 #Utilies 49-55 #Materials & Supplies - 55-70 #Maintence - 70-80 #Interdepart Service Charges- 80-90 #Revenue 90-95 #Capital Outlay 110-116 #Claims Refunds Maintenance 116-120 #Interfund Subsidies - 12...
/other/GeneralFund/GeneralFund_ReadCSV.R
no_license
cle-civic-transparency/cle-budget
R
false
false
13,756
r
library("tidyverse") library("dplyr") #Salaries 2-14 #Benefits 14-26 #Other Training 26-36 #Contractual Services 36-49 #Utilies 49-55 #Materials & Supplies - 55-70 #Maintence - 70-80 #Interdepart Service Charges- 80-90 #Revenue 90-95 #Capital Outlay 110-116 #Claims Refunds Maintenance 116-120 #Interfund Subsidies - 12...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DBDriver.R \docType{methods} \name{dbDataType} \alias{dbDataType} \alias{dbDataType,DBIObject,ANY-method} \alias{dbDataType,DBIObject-method} \title{Determine the SQL data type of an object.} \usage{ dbDataType(dbObj, obj, ...) \S4method{dbD...
/man/dbDataType.Rd
no_license
subramgo/DBI
R
false
true
1,672
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DBDriver.R \docType{methods} \name{dbDataType} \alias{dbDataType} \alias{dbDataType,DBIObject,ANY-method} \alias{dbDataType,DBIObject-method} \title{Determine the SQL data type of an object.} \usage{ dbDataType(dbObj, obj, ...) \S4method{dbD...
library(readr) library(stringr) library(purrr) library(tokenizers) " Minimal character-level Vanilla RNN model. R version by Pablo Maldonado Original version by Andrej Karpathy (@karpathy) BSD License " set.seed(1234) zeros_like <- function(M){ return(matrix(0,dim(as.matrix(M))[1],dim(as.matrix(M))[2])) } ...
/Chapter15/5_minimal_rnn_from_scratch.R
permissive
Rosiethuypham/Deep-Learning-with-R-for-Beginners
R
false
false
5,210
r
library(readr) library(stringr) library(purrr) library(tokenizers) " Minimal character-level Vanilla RNN model. R version by Pablo Maldonado Original version by Andrej Karpathy (@karpathy) BSD License " set.seed(1234) zeros_like <- function(M){ return(matrix(0,dim(as.matrix(M))[1],dim(as.matrix(M))[2])) } ...
#simple function add <- function(x,y) { x + y } #function with default argument getAbove <- function(v, n = 10) { aboveValues <- v > n x[aboveValues] } # calculate the mean of a column columnMean <- function(m, removeNA=TRUE) { nc <- ncol(m) # calculate the number of col means<-numeric(nc) # initializate a...
/r_test_functions.R
no_license
angleto/r-test
R
false
false
453
r
#simple function add <- function(x,y) { x + y } #function with default argument getAbove <- function(v, n = 10) { aboveValues <- v > n x[aboveValues] } # calculate the mean of a column columnMean <- function(m, removeNA=TRUE) { nc <- ncol(m) # calculate the number of col means<-numeric(nc) # initializate a...
testlist <- list(x1 = numeric(0), x2 = numeric(0), y1 = c(4.44172304180766e+291, 4.44172304180766e+291, 4.44172304180766e+291, NaN, 2.71707838775892e-312, 2.71615461306795e-312, 6.32404026676796e-322, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
/palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612968893-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
476
r
testlist <- list(x1 = numeric(0), x2 = numeric(0), y1 = c(4.44172304180766e+291, 4.44172304180766e+291, 4.44172304180766e+291, NaN, 2.71707838775892e-312, 2.71615461306795e-312, 6.32404026676796e-322, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pb_sampling.R \name{pbSmpResp} \alias{pbSmpResp} \title{Posterior response rates for each cut interval} \usage{ pbSmpResp(x.cut, y, cand.cuts = NULL, type = c("simplebin"), iter = 4000, ...) } \arguments{ \item{x.cut}{observed biomarker lev...
/man/pbSmpResp.Rd
no_license
olssol/pbiom
R
false
true
457
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pb_sampling.R \name{pbSmpResp} \alias{pbSmpResp} \title{Posterior response rates for each cut interval} \usage{ pbSmpResp(x.cut, y, cand.cuts = NULL, type = c("simplebin"), iter = 4000, ...) } \arguments{ \item{x.cut}{observed biomarker lev...
testlist <- list(n = 179549107L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
/breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609963264-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
97
r
testlist <- list(n = 179549107L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
library (ape) library (geiger) library (ggplot2) setwd("~/Desktop/UCLA/Fall_2017/EEB_201/bootcamp") #9.1.0.0.1 Exercise #What do the %% and %/% operators do? ##For double arguments, %% can be subject to catastrophic loss of accuracy if x is much larger than y, and a warning is given if this is detected. ##%% and x...
/R-BootCamp.R
no_license
nlozano93/RBootcamp
R
false
false
8,440
r
library (ape) library (geiger) library (ggplot2) setwd("~/Desktop/UCLA/Fall_2017/EEB_201/bootcamp") #9.1.0.0.1 Exercise #What do the %% and %/% operators do? ##For double arguments, %% can be subject to catastrophic loss of accuracy if x is much larger than y, and a warning is given if this is detected. ##%% and x...
library(wrapr) ### Name: apply_left.default ### Title: S3 dispatch on class of pipe_left_arg. ### Aliases: apply_left.default ### ** Examples 5 %.>% sin(.)
/data/genthat_extracted_code/wrapr/examples/apply_left.default.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
165
r
library(wrapr) ### Name: apply_left.default ### Title: S3 dispatch on class of pipe_left_arg. ### Aliases: apply_left.default ### ** Examples 5 %.>% sin(.)
library(GenomicAlignments) library(Rsamtools) library(BiocParallel) library(TxDb.Hsapiens.UCSC.hg19.knownGene) bam.files <- Sys.glob("Sample*[0-9].dedupped.bam") ebg1 <- exonsBy( TxDb.Hsapiens.UCSC.hg19.knownGene, by="gene" ) se1 <- summarizeOverlaps(features=ebg1, reads=bam.files, mode="Union", singleEnd=FALS...
/R code for analysis_Yuhueng/rnaseq_read_count_1.R
no_license
Zongmin-Liu/MSI2_HyperTRIBE_codes
R
false
false
417
r
library(GenomicAlignments) library(Rsamtools) library(BiocParallel) library(TxDb.Hsapiens.UCSC.hg19.knownGene) bam.files <- Sys.glob("Sample*[0-9].dedupped.bam") ebg1 <- exonsBy( TxDb.Hsapiens.UCSC.hg19.knownGene, by="gene" ) se1 <- summarizeOverlaps(features=ebg1, reads=bam.files, mode="Union", singleEnd=FALS...
## Module for tab one (server) tab_1 <- function(input, output, session){ rv <- reactiveValues() rv$outputs <- NULL observeEvent(input$go_button, { rv$outputs <- input$inputs_tab2 }) return(rv) }
/tab_1_server.R
no_license
JoeBayezian/ShinyProject-1
R
false
false
232
r
## Module for tab one (server) tab_1 <- function(input, output, session){ rv <- reactiveValues() rv$outputs <- NULL observeEvent(input$go_button, { rv$outputs <- input$inputs_tab2 }) return(rv) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eventFrameApi.r \name{eventFrame$createAnnotation} \alias{eventFrame$createAnnotation} \title{Create an annotation on an event frame.} \arguments{ \item{webId}{The ID of the owner event frame on which to create the annotation.} ...
/man/eventFrame-cash-createAnnotation.Rd
permissive
eddyrene/PI-Web-API-Client-R
R
false
true
735
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eventFrameApi.r \name{eventFrame$createAnnotation} \alias{eventFrame$createAnnotation} \title{Create an annotation on an event frame.} \arguments{ \item{webId}{The ID of the owner event frame on which to create the annotation.} ...
library(ggplot2) library(data.table) library(plm) library(pglm) library(lme4) library(nlme) library(lmerTest) library(cowplot) options(scipen = 999) #0 - Set directory setwd("C:/Users/bda13/Desktop/Sociology/Statistics/PSID/") #1 - read data I<-readRDS("PreppedData2.rds") #1.5 - Create a few ...
/Archive/X - Lagged independent variable models.R
no_license
BrianAronson/Health-Wealth-PSID
R
false
false
13,759
r
library(ggplot2) library(data.table) library(plm) library(pglm) library(lme4) library(nlme) library(lmerTest) library(cowplot) options(scipen = 999) #0 - Set directory setwd("C:/Users/bda13/Desktop/Sociology/Statistics/PSID/") #1 - read data I<-readRDS("PreppedData2.rds") #1.5 - Create a few ...
2+2 #trying basic math 3+4 number <-3 #setting the number number number*2 #multiply number <-5 number*2 another_number <-7 number*another_number c(2,4,6,8) #lists times<- c(17,30,25,35,25,30,40,20) #setting a list with a title mean(times) times/60 sqrt(times) #square root mean(times) #mean range(times) #ra...
/Exploring R/s01_exploring_R.R
no_license
kaitlinwhite19/DataSci-Participation
R
false
false
1,015
r
2+2 #trying basic math 3+4 number <-3 #setting the number number number*2 #multiply number <-5 number*2 another_number <-7 number*another_number c(2,4,6,8) #lists times<- c(17,30,25,35,25,30,40,20) #setting a list with a title mean(times) times/60 sqrt(times) #square root mean(times) #mean range(times) #ra...
## Importing the data sets we need `Agents_3S_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_3S_0.csv") `Agents_ACF_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_ACF_0.csv") `Agents_B+_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_B+_0.csv") `Links_3S_0` <- read.csv("~...
/Code voor visualisatie vraag 3.2.R
no_license
annanoteboom/r-code
R
false
false
7,845
r
## Importing the data sets we need `Agents_3S_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_3S_0.csv") `Agents_ACF_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_ACF_0.csv") `Agents_B+_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_B+_0.csv") `Links_3S_0` <- read.csv("~...
#' Dot plot #' #' In a dot plot, the width of a dot corresponds to the bin width #' (or maximum width, depending on the binning algorithm), and dots are #' stacked, with each dot representing one observation. #' #' With dot-density binning, the bin positions are determined by the data and #' \code{binwidth}, which is t...
/R/geom-dotplot.r
no_license
pricky2903/ggplot2
R
false
false
11,321
r
#' Dot plot #' #' In a dot plot, the width of a dot corresponds to the bin width #' (or maximum width, depending on the binning algorithm), and dots are #' stacked, with each dot representing one observation. #' #' With dot-density binning, the bin positions are determined by the data and #' \code{binwidth}, which is t...
# Processing code for Nebraska # This is aggregate data # Set-up this_state <- 'NE' change_path(this_state) # Read in and combine data print(sprintf("[%s] reading in the data", this_state)) # Read mappings d_dept <- read_csv("tbl_ORI.csv") %>% select(DeptID=ID, dept=ORI_Description, dept_lvl=ORITYPEID, county=AgencyC...
/src/processing/states/NE.R
no_license
BenJamesbabala/openpolicing
R
false
false
2,883
r
# Processing code for Nebraska # This is aggregate data # Set-up this_state <- 'NE' change_path(this_state) # Read in and combine data print(sprintf("[%s] reading in the data", this_state)) # Read mappings d_dept <- read_csv("tbl_ORI.csv") %>% select(DeptID=ID, dept=ORI_Description, dept_lvl=ORITYPEID, county=AgencyC...
# # This script generates CORES from input files in BP units (instead of SNP/bin units). # This script is interactive and is NOT meant to be ran on a HPC job from a shell script. # # # Only run if not installed # #source("https://bioconductor.org/biocLite.R") #biocLite("BSgenome.Hsapiens.UCSC.hg19") #install.packages(...
/coreGenerationInteractiveCNprepBP.R
no_license
CodingBash/CNV-Clinical-Preprocessing
R
false
false
3,975
r
# # This script generates CORES from input files in BP units (instead of SNP/bin units). # This script is interactive and is NOT meant to be ran on a HPC job from a shell script. # # # Only run if not installed # #source("https://bioconductor.org/biocLite.R") #biocLite("BSgenome.Hsapiens.UCSC.hg19") #install.packages(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/interval_statistics.R \name{ci.proportion} \alias{ci.proportion} \title{Function builder for confidence intervals on proportions} \usage{ ci.proportion(nm = NULL, level = 0.95) } \arguments{ \item{nm}{The level for which to find the proportio...
/man/ci.proportion.Rd
no_license
benjaminbenwu/mosaicModel
R
false
true
522
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/interval_statistics.R \name{ci.proportion} \alias{ci.proportion} \title{Function builder for confidence intervals on proportions} \usage{ ci.proportion(nm = NULL, level = 0.95) } \arguments{ \item{nm}{The level for which to find the proportio...
checkTreeValidHelp <- function(data, place, epsilon, split){ myName <- rownames(data)[place] myVal <- data[place, 1] ### Pull apart the starting point name data <- data[-place,, drop=FALSE] childRows <- grep(paste(myName, split, sep=""), rownames(data), fixed=TRUE) ### Go through all child branches...
/HMPTrees/R/checkTreeValidHelp.R
no_license
BioRankings/HMPTrees
R
false
false
1,084
r
checkTreeValidHelp <- function(data, place, epsilon, split){ myName <- rownames(data)[place] myVal <- data[place, 1] ### Pull apart the starting point name data <- data[-place,, drop=FALSE] childRows <- grep(paste(myName, split, sep=""), rownames(data), fixed=TRUE) ### Go through all child branches...
#------------------------------------------------------------# # R in Action (3rd ed): Chapter 2 # # Creating a dataset # #------------------------------------------------------------# # Types of vectors a <- c(1, 2, 5, 3, 6, -2, 4) # numeric b <- c("o...
/RScripts/ch02-Creating a dataset.R
no_license
Rkabacoff/RiA3
R
false
false
2,103
r
#------------------------------------------------------------# # R in Action (3rd ed): Chapter 2 # # Creating a dataset # #------------------------------------------------------------# # Types of vectors a <- c(1, 2, 5, 3, 6, -2, 4) # numeric b <- c("o...
# Program: sim_cluster_RCT.R # Author: Chirs Oldmeadow # Date: 15-12-2020 # Summary: Some functions for estimating power in a cluster RCT with a # continuous outcome through simulations. This version allows for # baseline adjustment ANCOVA style library(plyr) library(lme4) library(lmerTest) library(...
/sim_cluster_rct.R
no_license
ChrisOldmeadow/Power_clusterRCT
R
false
false
2,736
r
# Program: sim_cluster_RCT.R # Author: Chirs Oldmeadow # Date: 15-12-2020 # Summary: Some functions for estimating power in a cluster RCT with a # continuous outcome through simulations. This version allows for # baseline adjustment ANCOVA style library(plyr) library(lme4) library(lmerTest) library(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/private_functions.R \name{prGetFpDataFromGlmFit} \alias{prGetFpDataFromGlmFit} \title{Gets the boundaries for a GLM fit that is poisson or quasipoisson based} \usage{ prGetFpDataFromGlmFit(glm.fit, conf.int = 0.95, exp = TRUE) } \arguments{ \...
/man/prGetFpDataFromGlmFit.Rd
no_license
yadevi/Greg
R
false
true
842
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/private_functions.R \name{prGetFpDataFromGlmFit} \alias{prGetFpDataFromGlmFit} \title{Gets the boundaries for a GLM fit that is poisson or quasipoisson based} \usage{ prGetFpDataFromGlmFit(glm.fit, conf.int = 0.95, exp = TRUE) } \arguments{ \...
#!/usr/bin/env Rscript # Compare effect of imputing noon hours library(getopt) opt = getopt(matrix(c( 'year', 'y', 2, "integer", 'month', 'm', 2, "integer" ), byrow=TRUE, ncol=4)) if ( is.null(opt$year ) ) { stop("Year not specified") } if ( is.null(opt$month ) ) { stop("Month not specified") } system(sp...
/na_compare.R
permissive
oldweather/ICOADS3.plus
R
false
false
696
r
#!/usr/bin/env Rscript # Compare effect of imputing noon hours library(getopt) opt = getopt(matrix(c( 'year', 'y', 2, "integer", 'month', 'm', 2, "integer" ), byrow=TRUE, ncol=4)) if ( is.null(opt$year ) ) { stop("Year not specified") } if ( is.null(opt$month ) ) { stop("Month not specified") } system(sp...
# # This test file has been generated by kwb.test::create_test_files() # launched by user hsonne on 2022-06-04 18:39:26. # Your are strongly encouraged to modify the dummy functions # so that real cases are tested. You should then delete this comment. # test_that("hsShell() works", { f <- kwb.utils:::hsShell exp...
/tests/testthat/test-function-hsShell.R
permissive
KWB-R/kwb.utils
R
false
false
422
r
# # This test file has been generated by kwb.test::create_test_files() # launched by user hsonne on 2022-06-04 18:39:26. # Your are strongly encouraged to modify the dummy functions # so that real cases are tested. You should then delete this comment. # test_that("hsShell() works", { f <- kwb.utils:::hsShell exp...
# Adaptation de la fonction amort.period du package FinancialMath permettant de renvoyer un vecteur comportant le montant payé à l'année n dédié au remboursement du principal et celui des intérêts. library(FinancialMath) int_princ<- function(loan,pmt=NA,n,year_purchase, horizon,i,pf=1){ if(loan==0){...
/3_Technical_change/Repayment.R
no_license
eravigne/matisse
R
false
false
1,355
r
# Adaptation de la fonction amort.period du package FinancialMath permettant de renvoyer un vecteur comportant le montant payé à l'année n dédié au remboursement du principal et celui des intérêts. library(FinancialMath) int_princ<- function(loan,pmt=NA,n,year_purchase, horizon,i,pf=1){ if(loan==0){...
processAndFilterPETS <- function( outname, downSample=1.0) { #Step 1: Set various filenames bedpefile = paste(outname ,".bedpe",sep="") bedpefilesort = paste(outname ,".sort.bedpe",sep="") bedpefilesortrmdup = paste(outname ,".sort.rmdup.bedpe",sep="") bam1 = ifelse(downSample<1....
/R/processAndFilterPETS.R
no_license
rohithSrivas/mango
R
false
false
1,294
r
processAndFilterPETS <- function( outname, downSample=1.0) { #Step 1: Set various filenames bedpefile = paste(outname ,".bedpe",sep="") bedpefilesort = paste(outname ,".sort.bedpe",sep="") bedpefilesortrmdup = paste(outname ,".sort.rmdup.bedpe",sep="") bam1 = ifelse(downSample<1....
% Generated by roxygen2 (4.0.1): do not edit by hand \name{coef.function} \alias{coef} \alias{coef.function} \title{Extract coefficients from a function} \usage{ \method{coef}{function}(object, ...) } \arguments{ \item{object}{a function} \item{...}{ignored} } \description{ \code{coef} will extract the coefficients a...
/man/coef.Rd
no_license
fboehm/mosaic
R
false
false
659
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{coef.function} \alias{coef} \alias{coef.function} \title{Extract coefficients from a function} \usage{ \method{coef}{function}(object, ...) } \arguments{ \item{object}{a function} \item{...}{ignored} } \description{ \code{coef} will extract the coefficients a...
# File: corp_default_index_charts.R # Authors: Tyler Pike # Date: # Note(s): Create charts of the NFCH and subindexes # Users will need access to the FRB plotting package, policyPlot # clear enviroment rm(list=ls()) # libraries library(policyPlot) library(lubridate) library(dplyr) library(TTR) library(momen...
/Scripts/corp_default_index_charts.R
permissive
lnsongxf/BottomUpMacroIndicators
R
false
false
2,685
r
# File: corp_default_index_charts.R # Authors: Tyler Pike # Date: # Note(s): Create charts of the NFCH and subindexes # Users will need access to the FRB plotting package, policyPlot # clear enviroment rm(list=ls()) # libraries library(policyPlot) library(lubridate) library(dplyr) library(TTR) library(momen...
getData <- function(path) { files <- "auto-mpg.data" files <- paste(path, files, sep="/") dat <- read.table(files[1], comment.char="", na.strings="?", stringsAsFactors=FALSE, strip.white=TRUE) dat }
/datasets/UCI_ML_DataDescription/scripts/auto-mpg.R
no_license
MaciejPiernik/clustering-generated-features
R
false
false
240
r
getData <- function(path) { files <- "auto-mpg.data" files <- paste(path, files, sep="/") dat <- read.table(files[1], comment.char="", na.strings="?", stringsAsFactors=FALSE, strip.white=TRUE) dat }
## The core functions for 1D algorithm based functions: OptM1D, manifold1D, oneD_bic, TRRdim ################################################## # 1D optimization function # ################################################## fun1D <- function(W, M, U){ f <- log(t(W) %*% M %*% W) + log(t(W) %*% c...
/R/1Dfunctions.R
no_license
jingzzeng/TRES
R
false
false
11,216
r
## The core functions for 1D algorithm based functions: OptM1D, manifold1D, oneD_bic, TRRdim ################################################## # 1D optimization function # ################################################## fun1D <- function(W, M, U){ f <- log(t(W) %*% M %*% W) + log(t(W) %*% c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Mapinguari.R \docType{package} \name{Mapinguari} \alias{Mapinguari} \title{Mapinguari: Tools for process-based biogeographical analysis.} \description{ Mapinguari provides solutions for incorporating biological processes in biogeograph...
/man/Mapinguari.Rd
no_license
cran/Mapinguari
R
false
true
610
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Mapinguari.R \docType{package} \name{Mapinguari} \alias{Mapinguari} \title{Mapinguari: Tools for process-based biogeographical analysis.} \description{ Mapinguari provides solutions for incorporating biological processes in biogeograph...
# 01 scrape.R (alternativ): zieht die Daten von wahlrecht.de # setwd('~/Dropbox/Signal&Rauschen/06_Daten & Visualisierung/') # Arndt Pfad # setwd('~/Git/signalundrauschen') library(htmltab) library(dplyr) library(stringr) library(lubridate) # Wenn das Script zum Erstenmal ausgeführt wird, dann werden alle Daten gez...
/01_scrape.R
no_license
basilesimon/sur
R
false
false
7,764
r
# 01 scrape.R (alternativ): zieht die Daten von wahlrecht.de # setwd('~/Dropbox/Signal&Rauschen/06_Daten & Visualisierung/') # Arndt Pfad # setwd('~/Git/signalundrauschen') library(htmltab) library(dplyr) library(stringr) library(lubridate) # Wenn das Script zum Erstenmal ausgeführt wird, dann werden alle Daten gez...
#' @format A dataframe containing MFAST normal sample events "sample_normal"
/R/sample_normal.R
no_license
shearwavesplitter/MFASTR
R
false
false
76
r
#' @format A dataframe containing MFAST normal sample events "sample_normal"
library(shiny) library(ggplot2) ##Inputs #variable #graph #color #Define server server <- function(input, output) { myvariable <- reactive({ input$variable }) mygraph <- reactive({ input$graph }) mycolor <- reactive({ input$color }) output$mygraph <- renderPlot({ #myvariable <- in...
/server.R
no_license
davidarteta/shiny_wine_app
R
false
false
1,520
r
library(shiny) library(ggplot2) ##Inputs #variable #graph #color #Define server server <- function(input, output) { myvariable <- reactive({ input$variable }) mygraph <- reactive({ input$graph }) mycolor <- reactive({ input$color }) output$mygraph <- renderPlot({ #myvariable <- in...
library(metricTester) ### Name: oldRegionalNull ### Title: Randomize community data matrix with regional null model ### Aliases: oldRegionalNull ### ** Examples tree <- geiger::sim.bdtree(b=0.1, d=0, stop="taxa", n=50) #prep the data for the simulation prepped <- prepSimulations(tree, arena.length=300, mean.log.in...
/data/genthat_extracted_code/metricTester/examples/oldRegionalNull.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
758
r
library(metricTester) ### Name: oldRegionalNull ### Title: Randomize community data matrix with regional null model ### Aliases: oldRegionalNull ### ** Examples tree <- geiger::sim.bdtree(b=0.1, d=0, stop="taxa", n=50) #prep the data for the simulation prepped <- prepSimulations(tree, arena.length=300, mean.log.in...
popMprojHigh <- read.delim(file='popMprojHigh.txt', comment.char='#', check.names=FALSE)
/data/popMprojHigh.R
no_license
PPgp/wpp2015BayesMig
R
false
false
89
r
popMprojHigh <- read.delim(file='popMprojHigh.txt', comment.char='#', check.names=FALSE)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/flagging_plots.R \name{flagging_plots} \alias{flagging_plots} \title{EMA Careless Response Cutoff Determination Plots} \usage{ flagging_plots( data, ttc.colnames, number.items, item.colnames, ttc.plotx.max, sd.plotx.max, longstr...
/man/flagging_plots.Rd
permissive
manateelab/EMAeval-R-Package
R
false
true
2,973
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/flagging_plots.R \name{flagging_plots} \alias{flagging_plots} \title{EMA Careless Response Cutoff Determination Plots} \usage{ flagging_plots( data, ttc.colnames, number.items, item.colnames, ttc.plotx.max, sd.plotx.max, longstr...
#Irina Gaynanova #Nov 25th, 2013 # Classification for the test set based on V # Xtrain is n1 by p # Xtest is n2 by p # Ytrain is n1 by 1 # V is p by g-1 classifyV<-function(Xtrain,Ytrain,Xtest,V,prior=T,tol1=1e-10){ p=ncol(Xtrain) if (ncol(Xtest)!=p){ stop("Dimensions of Xtrain and Xtest don't match!") } i...
/MGSDA/R/classifyV.R
no_license
ingted/R-Examples
R
false
false
2,046
r
#Irina Gaynanova #Nov 25th, 2013 # Classification for the test set based on V # Xtrain is n1 by p # Xtest is n2 by p # Ytrain is n1 by 1 # V is p by g-1 classifyV<-function(Xtrain,Ytrain,Xtest,V,prior=T,tol1=1e-10){ p=ncol(Xtrain) if (ncol(Xtest)!=p){ stop("Dimensions of Xtrain and Xtest don't match!") } i...
#' Detect the time gap more than 5 min #' @param inputId A string of he unique identifier #' @return The gaps in time series #' @example gapSize("1636-69-026") #' @export #install.packages("lubridate") #library("lubridate") gapSize <- function(inputId) { patient = makeList(inputId) new.date.time <- as.POSIXct(pa...
/MyPackage/R/gap.R
no_license
sophiaaading/NCSA_Rpackage
R
false
false
1,611
r
#' Detect the time gap more than 5 min #' @param inputId A string of he unique identifier #' @return The gaps in time series #' @example gapSize("1636-69-026") #' @export #install.packages("lubridate") #library("lubridate") gapSize <- function(inputId) { patient = makeList(inputId) new.date.time <- as.POSIXct(pa...
# Set working directory setwd('C:\\Users\\Aleksey\\Documents\\School\\UW_Data_Science\\UW_Data_Science_450\\Week6\\homework') # Read CSV file data = read.csv("women_TnF_1984.csv") # investigate data frame str(data) # look at the data head(data) # Discovered unique identifier data$Obs # Remove unique identifier data...
/Week6/homework/pca.R
no_license
alfords/UW_Data_Science_450
R
false
false
1,265
r
# Set working directory setwd('C:\\Users\\Aleksey\\Documents\\School\\UW_Data_Science\\UW_Data_Science_450\\Week6\\homework') # Read CSV file data = read.csv("women_TnF_1984.csv") # investigate data frame str(data) # look at the data head(data) # Discovered unique identifier data$Obs # Remove unique identifier data...
\name{fmcs} \alias{fmcs} \title{ Flexible MCS (FMCS) Finder } \description{ R function to call the C++ implementation of the flexible common substructure (FMCS) algorithm. The FMCS algorithm provides an improved maximum common substructure (MCS) search method that allows atom and/or bond mismatches in the substructures...
/man/fmcs.Rd
no_license
girke-lab/fmcsR
R
false
false
2,598
rd
\name{fmcs} \alias{fmcs} \title{ Flexible MCS (FMCS) Finder } \description{ R function to call the C++ implementation of the flexible common substructure (FMCS) algorithm. The FMCS algorithm provides an improved maximum common substructure (MCS) search method that allows atom and/or bond mismatches in the substructures...
dataDir <- "/p/keles/CAGI2015/volumeB/Data/After_Nov5/" outDir <- "/p/keles/CAGI2015/volumeB/Fimo/" factorName <- "Training_alt_thres0.001" fastaFile <- "alt_SS.v1.fasta" ## Changed fimo threshold from 0.0001 to 0.001 ##################################### # # # Run FIMO:REF ...
/R/originalCode/run_fimo_and_summarize_alt.R
no_license
alice-szeliga/keles-pipeline
R
false
false
10,437
r
dataDir <- "/p/keles/CAGI2015/volumeB/Data/After_Nov5/" outDir <- "/p/keles/CAGI2015/volumeB/Fimo/" factorName <- "Training_alt_thres0.001" fastaFile <- "alt_SS.v1.fasta" ## Changed fimo threshold from 0.0001 to 0.001 ##################################### # # # Run FIMO:REF ...
library(FuzzyR) ### Name: showfis ### Title: Show a fis object. ### Aliases: showfis ### ** Examples fis <- tipper() showfis(fis)
/data/genthat_extracted_code/FuzzyR/examples/showfis.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
137
r
library(FuzzyR) ### Name: showfis ### Title: Show a fis object. ### Aliases: showfis ### ** Examples fis <- tipper() showfis(fis)
library(PowerTOST) ### Name: power.TOST ### Title: Power of the classical TOST procedure ### Aliases: power.TOST ### ** Examples # power for the 2x2 cross-over design with 24 subjects and CV 25% # using all the other default values power.TOST(CV=0.25, n=24) # should give: [1] 0.7391155 # nct approximation very good...
/data/genthat_extracted_code/PowerTOST/examples/power.TOST.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
814
r
library(PowerTOST) ### Name: power.TOST ### Title: Power of the classical TOST procedure ### Aliases: power.TOST ### ** Examples # power for the 2x2 cross-over design with 24 subjects and CV 25% # using all the other default values power.TOST(CV=0.25, n=24) # should give: [1] 0.7391155 # nct approximation very good...
# The example.txt has gene expression data. In the file there is a control # group of 20 replicates and an experiment group of 6 replicates. This script # shows how to calculate the characteristic direction vector from the data # using the chdir module. # Author: Qiaonan Duan # Ma'ayan Lab, Icahn School of Medicine...
/chdir_R/example.R
no_license
gepellet/R_transcriptomics
R
false
false
766
r
# The example.txt has gene expression data. In the file there is a control # group of 20 replicates and an experiment group of 6 replicates. This script # shows how to calculate the characteristic direction vector from the data # using the chdir module. # Author: Qiaonan Duan # Ma'ayan Lab, Icahn School of Medicine...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/register_font.R \name{register_font} \alias{register_font} \alias{registry_fonts} \alias{clear_registry} \title{Register font collections as families} \usage{ register_font( name, plain, bold = plain, italic = plain, bolditalic = pl...
/man/register_font.Rd
permissive
r-lib/systemfonts
R
false
true
3,085
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/register_font.R \name{register_font} \alias{register_font} \alias{registry_fonts} \alias{clear_registry} \title{Register font collections as families} \usage{ register_font( name, plain, bold = plain, italic = plain, bolditalic = pl...
#!/usr/bin/env Rscript # Load renv. root <- dirname(getwd()) renv::load(root) # Input arguments. git_user <- "twesleyb" package_name <- "tidygeocoder" # Check if package is installed. package <- file.path(git_user,package_name) is_installed <- package %in% rownames(installed.packages()) # If installed, then remove ...
/bin/install
permissive
twesleyb/tidygeocoder
R
false
false
437
#!/usr/bin/env Rscript # Load renv. root <- dirname(getwd()) renv::load(root) # Input arguments. git_user <- "twesleyb" package_name <- "tidygeocoder" # Check if package is installed. package <- file.path(git_user,package_name) is_installed <- package %in% rownames(installed.packages()) # If installed, then remove ...
#!/usr/bin/env Rscript # title: SwipProteomics # description: # author: twab ## ---- INPUTs ## ---- OPTIONs fig_width = 5 fig_height = 5 ## ---- OUTPUTs # * pdf of protein pca plot with module colors ## ---- Prepare the workspace # Load renv root <- "~/projects/SwipProteomics" renv::load(root,quiet=TRUE) ...
/analysis/5_Plotting/05_Protein-PCA.R
permissive
Io-Saito/SwipProteomics
R
false
false
3,282
r
#!/usr/bin/env Rscript # title: SwipProteomics # description: # author: twab ## ---- INPUTs ## ---- OPTIONs fig_width = 5 fig_height = 5 ## ---- OUTPUTs # * pdf of protein pca plot with module colors ## ---- Prepare the workspace # Load renv root <- "~/projects/SwipProteomics" renv::load(root,quiet=TRUE) ...
AdditiveBartMachine = function(constraints, ...){ X = list(...)$X y = list(...)$y if (is.null(X) || is.null(y)){ stop("Both X and y must be specified to use the additive bart machine") } }
/bartMachine/R/bart_package_interaction_constraints.R
permissive
danielremo/bartMachine
R
false
false
206
r
AdditiveBartMachine = function(constraints, ...){ X = list(...)$X y = list(...)$y if (is.null(X) || is.null(y)){ stop("Both X and y must be specified to use the additive bart machine") } }
# This function first takes a matrix and saves it on the cache. # The matrix is assumed to be invertible as the assignment says. # Then it caches functions to get the matrix and return the inverse. # It is all stored con the cache. makeCacheMatrix <- function(x = matrix()) { s <- NULL set <- function(y){ ...
/cachematrix.R
no_license
SantiagoNogueiras/ProgrammingAssignments
R
false
false
1,281
r
# This function first takes a matrix and saves it on the cache. # The matrix is assumed to be invertible as the assignment says. # Then it caches functions to get the matrix and return the inverse. # It is all stored con the cache. makeCacheMatrix <- function(x = matrix()) { s <- NULL set <- function(y){ ...
\name{isobole} \alias{isobole} \title{Creating isobolograms} \description{ 'isobole' displays isobole based on EC/ED50 estimates from a log-logistic model. Additionally isoboles determined by the concentration addition model, Hewlett's model and Voelund's model can be added to the plot. } \usage{ isobole(objec...
/man/isobole.Rd
no_license
csetraynor/drc
R
false
false
1,795
rd
\name{isobole} \alias{isobole} \title{Creating isobolograms} \description{ 'isobole' displays isobole based on EC/ED50 estimates from a log-logistic model. Additionally isoboles determined by the concentration addition model, Hewlett's model and Voelund's model can be added to the plot. } \usage{ isobole(objec...
# Read in p-vals file require(stringr) # Get list of GWAS's from magnum_output/ # Names in the format of Framingham Heart Study read-outs -- "pha####" gwas <- list.files("magnum_output/") gwas_no1788 <- gwas[-2] # Create matrix of FHS-style names with their corresponding read-out fhs_codes <- c("pha1754", "pha1788",...
/Aging Gene Associations/magnum_analysis.R
no_license
jacobkimmel/agingnets
R
false
false
5,107
r
# Read in p-vals file require(stringr) # Get list of GWAS's from magnum_output/ # Names in the format of Framingham Heart Study read-outs -- "pha####" gwas <- list.files("magnum_output/") gwas_no1788 <- gwas[-2] # Create matrix of FHS-style names with their corresponding read-out fhs_codes <- c("pha1754", "pha1788",...
## Merge data testData <- cbind(testSubjectData, testData, testActivityData) trainData <- cbind(trainSubjectData, trainData, trainActivityData) ## Combine test and train datasets mergedData <- rbind(testData, trainData) activity <- mergedData$Activity mergedData$Activity <- activitiesLabelData[activity,2] ## Mine va...
/mergeData.R
no_license
ds2014/cleaningdata
R
false
false
455
r
## Merge data testData <- cbind(testSubjectData, testData, testActivityData) trainData <- cbind(trainSubjectData, trainData, trainActivityData) ## Combine test and train datasets mergedData <- rbind(testData, trainData) activity <- mergedData$Activity mergedData$Activity <- activitiesLabelData[activity,2] ## Mine va...
args <- commandArgs(trailingOnly = TRUE) options(java.parameters = "-Xmx6g") library(dplyr) library(lubridate) library(XLConnect) library(RCurl) insertRow <- function(existingDF, newrow, r) { require(dplyr) existingDF <- rbind(existingDF,newrow) existingDF <- existingDF[order(c(1:(nrow(existingDF)-1),r-0....
/3_Script/2_Code/BatchScript.R
no_license
datnq80/SIOP_Automation
R
false
false
3,290
r
args <- commandArgs(trailingOnly = TRUE) options(java.parameters = "-Xmx6g") library(dplyr) library(lubridate) library(XLConnect) library(RCurl) insertRow <- function(existingDF, newrow, r) { require(dplyr) existingDF <- rbind(existingDF,newrow) existingDF <- existingDF[order(c(1:(nrow(existingDF)-1),r-0....
#### Build Models for Text Prediction # Dataset: https://d396qusza40orc.cloudfront.net/dsscapstone/dataset/Coursera-SwiftKey.zip library(stringi) library(tm) library(tokenizers) library(plyr) library(dplyr) library(tidyr) library(stringr) #Load data blogs <- readLines("final/en_US/en_US.blogs.txt", enco...
/model.R
no_license
crhammond88/text-prediction
R
false
false
3,295
r
#### Build Models for Text Prediction # Dataset: https://d396qusza40orc.cloudfront.net/dsscapstone/dataset/Coursera-SwiftKey.zip library(stringi) library(tm) library(tokenizers) library(plyr) library(dplyr) library(tidyr) library(stringr) #Load data blogs <- readLines("final/en_US/en_US.blogs.txt", enco...
testlist <- list(hi = -6.82852703442279e-229, lo = -6.82768414972051e-229, mu = -6.82852703442279e-229, sig = -6.82852703442279e-229) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610047438-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
195
r
testlist <- list(hi = -6.82852703442279e-229, lo = -6.82768414972051e-229, mu = -6.82852703442279e-229, sig = -6.82852703442279e-229) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
library(tidyverse) library(reshape2) library(ggplot2) library(stats) library(dplyr) library(boot) library(splines) library(scales) library(tcltk) library(devtools) #devtools::install_github('SenguptaLab/MF.matR') library(MF.matR) # import - process data --------------------------------------------------- tot.mat<...
/scripts/Behprob_3stripes.R
no_license
SenguptaLab/MF.matR
R
false
false
2,979
r
library(tidyverse) library(reshape2) library(ggplot2) library(stats) library(dplyr) library(boot) library(splines) library(scales) library(tcltk) library(devtools) #devtools::install_github('SenguptaLab/MF.matR') library(MF.matR) # import - process data --------------------------------------------------- tot.mat<...
rm(list=ls()) devtools::install_github("james-thorson/VAST", ref = "development") library(VAST) library(FishStatsUtils) library(TMB) setwd("C:\\merrill\\stream_networks\\OR\\test") # setwd("F:/UW Hideaway (SyncBackFree)/Collaborations/2018 -- Rudd stream network/code check 2019-01-15") load("OR_test.Rdata") #####...
/OR/test/OR_test--JTT--MBR.R
permissive
hoyles/stream_networks
R
false
false
5,035
r
rm(list=ls()) devtools::install_github("james-thorson/VAST", ref = "development") library(VAST) library(FishStatsUtils) library(TMB) setwd("C:\\merrill\\stream_networks\\OR\\test") # setwd("F:/UW Hideaway (SyncBackFree)/Collaborations/2018 -- Rudd stream network/code check 2019-01-15") load("OR_test.Rdata") #####...
setwd("C:/Users/JM/thesis/lynne_work/motifVar/motifNumCounts") ## read files ifile = "ALL_ANK.prot.new" data = read.delim(ifile,header=T,sep="\t") ## histograms numofbins = max(data$motifNum) + 4 oriMotifNum = hist(data$motifNum,breaks=numofbins) newMotifNum = hist(data$new_motifNum,breaks=num...
/plotHist_motifNumCounts.R
no_license
cjieming/R_codes
R
false
false
1,541
r
setwd("C:/Users/JM/thesis/lynne_work/motifVar/motifNumCounts") ## read files ifile = "ALL_ANK.prot.new" data = read.delim(ifile,header=T,sep="\t") ## histograms numofbins = max(data$motifNum) + 4 oriMotifNum = hist(data$motifNum,breaks=numofbins) newMotifNum = hist(data$new_motifNum,breaks=num...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hooks.R \name{hooks} \alias{hooks} \title{Hooks} \usage{ hooks(lambda) } \arguments{ \item{lambda}{integer partition} } \value{ The hooks of the partition in a list. } \description{ Hooks of a given integer partition. } \examples{ hooks(c(4,2...
/man/hooks.Rd
no_license
stla/syt
R
false
true
363
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hooks.R \name{hooks} \alias{hooks} \title{Hooks} \usage{ hooks(lambda) } \arguments{ \item{lambda}{integer partition} } \value{ The hooks of the partition in a list. } \description{ Hooks of a given integer partition. } \examples{ hooks(c(4,2...
# -------------------------------------- # #### Multiplot #### #### -------------------------------- #### #### 1.Global Active Power vs Time #### #### 2. Voltage vs Time #### #### 3.Energy sub metering vs Time #### #### 4.Global Reactive Power vs Time #### # -----------------...
/plot4.R
no_license
xatoposx/ExData_Plotting1
R
false
false
1,998
r
# -------------------------------------- # #### Multiplot #### #### -------------------------------- #### #### 1.Global Active Power vs Time #### #### 2. Voltage vs Time #### #### 3.Energy sub metering vs Time #### #### 4.Global Reactive Power vs Time #### # -----------------...
# RDD in R implemented in S4 OO system. #setOldClass("jobjRef") #' @title S4 class that represents an RDD #' @description RDD can be created using functions like #' \code{parallelize}, \code{textFile} etc. #' @rdname RDD #' @seealso parallelize, textFile #' #' @param env An R environment that stores book...
/pkg/R/RDD.R
permissive
vikashranjan/SparkR-pkg
R
false
false
60,483
r
# RDD in R implemented in S4 OO system. #setOldClass("jobjRef") #' @title S4 class that represents an RDD #' @description RDD can be created using functions like #' \code{parallelize}, \code{textFile} etc. #' @rdname RDD #' @seealso parallelize, textFile #' #' @param env An R environment that stores book...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cardiovascular_10yrs_one.R \name{calc_card_10_one} \alias{calc_card_10_one} \title{Cardivascular Disease 10 years risk for one patient} \usage{ calc_card_10_one(gender, age, bmi, hdl, cholesterol, sbp, is_sbp_under_treatment, smoking_status...
/man/calc_card_10_one.Rd
permissive
PHP2560-Statistical-Programming-R/r-framingham
R
false
true
1,496
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cardiovascular_10yrs_one.R \name{calc_card_10_one} \alias{calc_card_10_one} \title{Cardivascular Disease 10 years risk for one patient} \usage{ calc_card_10_one(gender, age, bmi, hdl, cholesterol, sbp, is_sbp_under_treatment, smoking_status...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deployApp.R \name{deployApp} \alias{deployApp} \title{Deploy an Application} \usage{ deployApp( appDir = getwd(), appFiles = NULL, appFileManifest = NULL, appPrimaryDoc = NULL, appSourceDoc = NULL, appName = NULL, appTitle = NUL...
/man/deployApp.Rd
no_license
mpaulacaldas/rsconnect
R
false
true
5,997
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deployApp.R \name{deployApp} \alias{deployApp} \title{Deploy an Application} \usage{ deployApp( appDir = getwd(), appFiles = NULL, appFileManifest = NULL, appPrimaryDoc = NULL, appSourceDoc = NULL, appName = NULL, appTitle = NUL...
find_best_location <- function(problem.data){ #Inputs: #problem.data: list constructed from make_problem_data() #Output: #Save optimal factory configuration to '../variables/output.rds' attach(problem.data) ###Your code detach(problem.data) }
/code/modules/findBestLocation.R
no_license
robertlbray/OPNS_Rosenbaum2014
R
false
false
266
r
find_best_location <- function(problem.data){ #Inputs: #problem.data: list constructed from make_problem_data() #Output: #Save optimal factory configuration to '../variables/output.rds' attach(problem.data) ###Your code detach(problem.data) }
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(mgcv) library(ncdf4) library(raster) library(tidyverse) library(lubridate) library(betareg) # Directories plotdir <- "data/charm/figures" datadir <- "data/charm/processed" gi...
/data/charm/Step3_develop_thredds_bias_correction_model.R
no_license
cfree14/domoic_acid
R
false
false
5,038
r
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(mgcv) library(ncdf4) library(raster) library(tidyverse) library(lubridate) library(betareg) # Directories plotdir <- "data/charm/figures" datadir <- "data/charm/processed" gi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/milr-package.R \docType{package} \name{milr-package} \alias{milr-package} \title{The milr package: multiple-instance logistic regression with lasso penalty} \description{ The multiple instance data set consists of many independent subjects (c...
/man/milr-package.Rd
permissive
dejavu2010/milr
R
false
true
1,298
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/milr-package.R \docType{package} \name{milr-package} \alias{milr-package} \title{The milr package: multiple-instance logistic regression with lasso penalty} \description{ The multiple instance data set consists of many independent subjects (c...
library(tidyverse) library(tidyamplicons) # exercise 1 load("data/carrots.rda") # exercise 2 carrots %>% add_lib_size() %>% samples() %>% ggplot(aes(x = lib_size)) + geom_line(stat = "density") + geom_rug() # exercise 3 carrots %>% filter_samples(type == "FP") %>% add_diversity_measures() %>% samples...
/exercise_chapter5.R
no_license
htnani/tidyverse_workshop
R
false
false
629
r
library(tidyverse) library(tidyamplicons) # exercise 1 load("data/carrots.rda") # exercise 2 carrots %>% add_lib_size() %>% samples() %>% ggplot(aes(x = lib_size)) + geom_line(stat = "density") + geom_rug() # exercise 3 carrots %>% filter_samples(type == "FP") %>% add_diversity_measures() %>% samples...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGeneric.R, R/BrainFileDescriptor.R \docType{methods} \name{headerFileMatches} \alias{headerFileMatches} \alias{headerFileMatches,BrainFileDescriptor,character-method} \title{Generic function to test whether a file name conforms to the give...
/neuroim/man/headerFileMatches-methods.Rd
no_license
akhikolla/updatedatatype-list3
R
false
true
860
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGeneric.R, R/BrainFileDescriptor.R \docType{methods} \name{headerFileMatches} \alias{headerFileMatches} \alias{headerFileMatches,BrainFileDescriptor,character-method} \title{Generic function to test whether a file name conforms to the give...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615832233-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,554
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
#' @title Boosted Generalized Linear Classification Learner #' #' @name mlr_learners_classif.glmboost #' #' @description #' Boosted generalized linear classification learner. #' Calls [mboost::glmboost()] from package \CRANpkg{mboost}. #' #' @templateVar id classif.glmboost #' @template section_dictionary_learner #' #'...
/R/LearnerClassifGLMBoost.R
no_license
mlr3learners/mlr3learners.mboost
R
false
false
4,678
r
#' @title Boosted Generalized Linear Classification Learner #' #' @name mlr_learners_classif.glmboost #' #' @description #' Boosted generalized linear classification learner. #' Calls [mboost::glmboost()] from package \CRANpkg{mboost}. #' #' @templateVar id classif.glmboost #' @template section_dictionary_learner #' #'...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include sms_service.R NULL #' Creates an application #' #' @description #' Creates an application. An application consists of one or more server #' groups. Each server group ...
/cran/paws.migration/R/sms_operations.R
permissive
paws-r/paws
R
false
false
74,636
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include sms_service.R NULL #' Creates an application #' #' @description #' Creates an application. An application consists of one or more server #' groups. Each server group ...
context("Test normalization functions") set.seed(1021) BiocParallel::register(BiocParallel::bpparam("SerialParam")) test_that("Upper-quartile normalization works the same as in the EDASeq package", { e <- matrix(rpois(10000, lambda = 5), ncol=10) rownames(e) <- as.character(1:nrow(e)) colnames(e) <- paste0("Sam...
/tests/testthat/test_norm.R
no_license
sowmyaiyer/scone
R
false
false
1,524
r
context("Test normalization functions") set.seed(1021) BiocParallel::register(BiocParallel::bpparam("SerialParam")) test_that("Upper-quartile normalization works the same as in the EDASeq package", { e <- matrix(rpois(10000, lambda = 5), ncol=10) rownames(e) <- as.character(1:nrow(e)) colnames(e) <- paste0("Sam...
library(shiny) ui <- fluidPage(uiOutput('ui')) server <- shinyServer(function(input, output, session){ #Create UI's A<-fluidPage(titlePanel("Block A"), hr(), h3("Task 1:"), p("Imagine that you are given $2. You must decide which part of this amount ...
/R/risk-GP.R
no_license
sergiopirla/ShinyExpEcon
R
false
false
1,123
r
library(shiny) ui <- fluidPage(uiOutput('ui')) server <- shinyServer(function(input, output, session){ #Create UI's A<-fluidPage(titlePanel("Block A"), hr(), h3("Task 1:"), p("Imagine that you are given $2. You must decide which part of this amount ...
#ChiSquare test for factor variable visualization #Libraries library(corrplot) library(tidyr) #Functions varlist <- function (df=NULL,type=c("numeric","factor","character"), pattern="", exclude=NULL) { vars <- character(0) if (any(type %in% "numeric")) { vars <- c(vars,names(df)[sapply(df,is.numeric)]) } i...
/ChiSq_Vis.R
no_license
KiranGanji/RCodes
R
false
false
1,869
r
#ChiSquare test for factor variable visualization #Libraries library(corrplot) library(tidyr) #Functions varlist <- function (df=NULL,type=c("numeric","factor","character"), pattern="", exclude=NULL) { vars <- character(0) if (any(type %in% "numeric")) { vars <- c(vars,names(df)[sapply(df,is.numeric)]) } i...
#Restaurant help staff# #Yuyu Fan# library(tidyverse) library(dplyr) library(quanteda) ##subsetting data--ihop## load("C:\\Users\\18800\\Desktop\\21 Spring\\genTweets.RData") a<-tweets.df%>%group_by(firm)%>% summarise(n=n()) ihop<-subset(tweets.df,firm=="ihop") ##tokenlize words## doc.corpus <- corpus(...
/Restaurant_help_staff.R
no_license
Yuyu19/Marketing-Analytics
R
false
false
1,605
r
#Restaurant help staff# #Yuyu Fan# library(tidyverse) library(dplyr) library(quanteda) ##subsetting data--ihop## load("C:\\Users\\18800\\Desktop\\21 Spring\\genTweets.RData") a<-tweets.df%>%group_by(firm)%>% summarise(n=n()) ihop<-subset(tweets.df,firm=="ihop") ##tokenlize words## doc.corpus <- corpus(...
## ## PURPOSE: Wishart distribution ## * random numbers generation ## ## AUTHOR: Arnost Komarek (LaTeX: Arno\v{s}t Kom\'arek) ## arnost.komarek[AT]mff.cuni.cz ## ## CREATED: 12/11/2007 ## 15/03/2017 .C call uses registered routines ## ## FUNCTION: rWishart (12/11/2007) #...
/R/rWISHART.R
no_license
cran/mixAK
R
false
false
2,204
r
## ## PURPOSE: Wishart distribution ## * random numbers generation ## ## AUTHOR: Arnost Komarek (LaTeX: Arno\v{s}t Kom\'arek) ## arnost.komarek[AT]mff.cuni.cz ## ## CREATED: 12/11/2007 ## 15/03/2017 .C call uses registered routines ## ## FUNCTION: rWishart (12/11/2007) #...
data_folder = "/project_omair/pokemon_data-2/" path_for_images = paste0(data_folder,'images/abomasnow.png') path_to_save_output = './goldsmith_project/even_more_advanced/' path_for_data = paste0(data_folder,'pokemon_copy.csv') library(magick) data_file = read.csv(path_for_data) head(data_file) images = data_file$Name i...
/even_more_advanced_1.R
no_license
MUHAMMAD-MOHSIN-786/Some-projects
R
false
false
1,521
r
data_folder = "/project_omair/pokemon_data-2/" path_for_images = paste0(data_folder,'images/abomasnow.png') path_to_save_output = './goldsmith_project/even_more_advanced/' path_for_data = paste0(data_folder,'pokemon_copy.csv') library(magick) data_file = read.csv(path_for_data) head(data_file) images = data_file$Name i...
\name{maxv12} \alias{maxv12} \title{Rotatable Plot of Surface of Possible Maximum Values of Off-diagonal Variable} \description{Rotatable plot of surface of possible maximum values of off-diagonal variable v12 in positive definite 2 x 2 matrix} \usage{ maxv12(theta = 30, phi = 30, inc = 25, lseq = 200, ticktype="d...
/man/maxv12.Rd
no_license
cran/MVNtestchar
R
false
false
1,306
rd
\name{maxv12} \alias{maxv12} \title{Rotatable Plot of Surface of Possible Maximum Values of Off-diagonal Variable} \description{Rotatable plot of surface of possible maximum values of off-diagonal variable v12 in positive definite 2 x 2 matrix} \usage{ maxv12(theta = 30, phi = 30, inc = 25, lseq = 200, ticktype="d...
library(shiny) fig.height = 260 fig.width = 400 shinyUI( fluidPage( verticalLayout( fluidRow(column( width = 4, align = "center", br(), br(), sliderInput("sampsizeslider", label = "Change the hypothesized population mean", val...
/apps/twosided/ui.R
no_license
WdeNooy/Statistical-Inference
R
false
false
736
r
library(shiny) fig.height = 260 fig.width = 400 shinyUI( fluidPage( verticalLayout( fluidRow(column( width = 4, align = "center", br(), br(), sliderInput("sampsizeslider", label = "Change the hypothesized population mean", val...
## Simulate a dataset from the full individual, nonlinear model T<- 1200 n_pts <- 100 require(warningsignals) ## Collapsing example parameters pars = c(Xo = 750, e = 0.5, a = 100, K = 1000, h = 200, i = 0, Da = .09, Dt = 0, p = 2) ## Run the individual based simulation sn <- saddle_node_ibm(pars, times=seq(0,T, ...
/demo/esa/esa.R
no_license
cboettig/warningsignals
R
false
false
2,665
r
## Simulate a dataset from the full individual, nonlinear model T<- 1200 n_pts <- 100 require(warningsignals) ## Collapsing example parameters pars = c(Xo = 750, e = 0.5, a = 100, K = 1000, h = 200, i = 0, Da = .09, Dt = 0, p = 2) ## Run the individual based simulation sn <- saddle_node_ibm(pars, times=seq(0,T, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.rds_operations.R \name{delete_db_parameter_group} \alias{delete_db_parameter_group} \title{Deletes a specified DB parameter group} \usage{ delete_db_parameter_group(DBParameterGroupName) } \arguments{ \item{DBParameterGroupName}{[require...
/service/paws.rds/man/delete_db_parameter_group.Rd
permissive
CR-Mercado/paws
R
false
true
794
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.rds_operations.R \name{delete_db_parameter_group} \alias{delete_db_parameter_group} \title{Deletes a specified DB parameter group} \usage{ delete_db_parameter_group(DBParameterGroupName) } \arguments{ \item{DBParameterGroupName}{[require...
# TITLE: Pull all data # AUTHOR(S): Dustin Pashouwer # DESCRIPTION: [enter a few comments about what this script does] # Load packages - first pacman, installing if necessary, then others if (!require("pacman")) install.packages("pacman"); library(pacman) pacman::p_load(here, readxl, tidyverse, janitor) # add more he...
/code/prep/01_load_data.R
permissive
dpashouwer/teacher_preparation
R
false
false
1,037
r
# TITLE: Pull all data # AUTHOR(S): Dustin Pashouwer # DESCRIPTION: [enter a few comments about what this script does] # Load packages - first pacman, installing if necessary, then others if (!require("pacman")) install.packages("pacman"); library(pacman) pacman::p_load(here, readxl, tidyverse, janitor) # add more he...
setGeneric("autoquery", function(object, ...) standardGeneric("autoquery")) ## Design of query objects: Instead of having a special class for ## every query type and data source, we could have a generic (eval) that ## dispatches on a "query type" object and the data source. ## The query is implemented by a...
/R/Query-class.R
no_license
sa-lee/gooplot
R
false
false
2,670
r
setGeneric("autoquery", function(object, ...) standardGeneric("autoquery")) ## Design of query objects: Instead of having a special class for ## every query type and data source, we could have a generic (eval) that ## dispatches on a "query type" object and the data source. ## The query is implemented by a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pubchem.R \name{pc_sect} \alias{pc_sect} \title{Retrieve data from PubChem content pages} \usage{ pc_sect( id, section, domain = c("compound", "substance", "assay", "gene", "protein", "patent"), verbose = getOption("verbose") ) } \arg...
/man/pc_sect.Rd
permissive
jranke/webchem
R
false
true
2,817
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pubchem.R \name{pc_sect} \alias{pc_sect} \title{Retrieve data from PubChem content pages} \usage{ pc_sect( id, section, domain = c("compound", "substance", "assay", "gene", "protein", "patent"), verbose = getOption("verbose") ) } \arg...
#' PostgreSQL add geom column #' #' This adds a geometry column to a data table #' @param tblname name of the table in the database, defaults to ABRdb #' @param geom the type of the geometry in the datatable E.g. MultiPloygon, MultiPoint, defaults to POINT #' @param x name of latitude column #' @param y name of longitu...
/R/PGaddGeom.R
no_license
phillipf/ABR
R
false
false
1,178
r
#' PostgreSQL add geom column #' #' This adds a geometry column to a data table #' @param tblname name of the table in the database, defaults to ABRdb #' @param geom the type of the geometry in the datatable E.g. MultiPloygon, MultiPoint, defaults to POINT #' @param x name of latitude column #' @param y name of longitu...
# Our overall goal here is simply to examine how household # energy usage varies over a 2-day period in February, 2007. # Your task is to reconstruct the following plots below, all # of which were constructed using the base plotting system. #read in dataset library(data.table) powerdata <- fread("household_power_co...
/plot4.R
no_license
lrfritter/ExData_Plotting1
R
false
false
2,350
r
# Our overall goal here is simply to examine how household # energy usage varies over a 2-day period in February, 2007. # Your task is to reconstruct the following plots below, all # of which were constructed using the base plotting system. #read in dataset library(data.table) powerdata <- fread("household_power_co...
#' Hurdle IV regression #' #' @description Run a hurdle IV regression, either lognormal IV or cragg IV. #' You should specify the model you want to fit. Currently this does not have #' a nice summary function for the output. #' #' @param formula the second stage regression: y~exogenous + endogenous #' @param ins...
/R/wrapperFunc.R
no_license
jackiemauro/hurdleIV
R
false
false
7,988
r
#' Hurdle IV regression #' #' @description Run a hurdle IV regression, either lognormal IV or cragg IV. #' You should specify the model you want to fit. Currently this does not have #' a nice summary function for the output. #' #' @param formula the second stage regression: y~exogenous + endogenous #' @param ins...
testlist <- list(data = structure(c(1.68927166639427e-104, 2.26281861108235e+180, 5.77096131600671e+228, 1.4072470568e+248, 1.42963235645541e+248, 5.17626292364586e+169, 6.48706195472858e+174, 9.12488122349296e+192, 1.04102737679095e-42, 1.04102737679095e-42), .Dim = c(1L, 10L )), q = 1.04102737679095e-42) result <-...
/biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610556878-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
380
r
testlist <- list(data = structure(c(1.68927166639427e-104, 2.26281861108235e+180, 5.77096131600671e+228, 1.4072470568e+248, 1.42963235645541e+248, 5.17626292364586e+169, 6.48706195472858e+174, 9.12488122349296e+192, 1.04102737679095e-42, 1.04102737679095e-42), .Dim = c(1L, 10L )), q = 1.04102737679095e-42) result <-...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/mxnet_generated.R \name{mx.nd.exp} \alias{mx.nd.exp} \title{Take exp of the src} \arguments{ \item{src}{NDArray Source input to the function} } \value{ out The result mx.ndarray } \description{ Take exp of the src }
/R-package/man/mx.nd.exp.Rd
permissive
crossgradient/mxnet
R
false
false
303
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/mxnet_generated.R \name{mx.nd.exp} \alias{mx.nd.exp} \title{Take exp of the src} \arguments{ \item{src}{NDArray Source input to the function} } \value{ out The result mx.ndarray } \description{ Take exp of the src }
##Create two functions that can input a matrix, invert it, then cache the inverted matrix so one can call it later ##makeCacheMatrix stores the inputted matrix and the inverterd matrix in the global environment. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { ...
/cachematrix.R
no_license
prbajada/ProgrammingAssignment2
R
false
false
1,052
r
##Create two functions that can input a matrix, invert it, then cache the inverted matrix so one can call it later ##makeCacheMatrix stores the inputted matrix and the inverterd matrix in the global environment. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { ...
library(oem) ### Name: oem ### Title: Orthogonalizing EM ### Aliases: oem ### ** Examples set.seed(123) n.obs <- 1e4 n.vars <- 50 true.beta <- c(runif(15, -0.25, 0.25), rep(0, n.vars - 15)) x <- matrix(rnorm(n.obs * n.vars), n.obs, n.vars) y <- rnorm(n.obs, sd = 3) + x %*% true.beta fit <- oem(x = x, y = y, ...
/data/genthat_extracted_code/oem/examples/oem.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,746
r
library(oem) ### Name: oem ### Title: Orthogonalizing EM ### Aliases: oem ### ** Examples set.seed(123) n.obs <- 1e4 n.vars <- 50 true.beta <- c(runif(15, -0.25, 0.25), rep(0, n.vars - 15)) x <- matrix(rnorm(n.obs * n.vars), n.obs, n.vars) y <- rnorm(n.obs, sd = 3) + x %*% true.beta fit <- oem(x = x, y = y, ...