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
observeEvent(input$action.cinii.B, { # ------------------------------------ # 必要項目のインプットがあるかチェック # ヒット数をチェック # ------------------------------------ res <- reactive({ req(input$appid.cinii.B) req(input$publisher.cinii.B != "" | input$text.cinii.B != "" | input$title.cini...
/03_CiNii_Books/server_cinii_B.R
no_license
TakuyaK0625/API.App
R
false
false
3,693
r
observeEvent(input$action.cinii.B, { # ------------------------------------ # 必要項目のインプットがあるかチェック # ヒット数をチェック # ------------------------------------ res <- reactive({ req(input$appid.cinii.B) req(input$publisher.cinii.B != "" | input$text.cinii.B != "" | input$title.cini...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/type.R \docType{class} \name{DataType} \alias{DataType} \title{DataType class} \description{ DataType class } \section{R6 Methods}{ \itemize{ \item \verb{$ToString()}: String representation of the DataType \item \verb{$Equals(other)}: Is the...
/r/man/DataType-class.Rd
permissive
apache/arrow
R
false
true
748
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/type.R \docType{class} \name{DataType} \alias{DataType} \title{DataType class} \description{ DataType class } \section{R6 Methods}{ \itemize{ \item \verb{$ToString()}: String representation of the DataType \item \verb{$Equals(other)}: Is the...
library(data.table) library(ggplot2) library(wbstats) library(countrycode) library(magick) library(rcartocolor) cellsDT <- fread('https://raw.githubusercontent.com/mattdzugan/World-Population-Cartogram/master/data/year_2018__cell_500k/squares_and_triangles/cells.csv') bordersDT <- fread('https://raw.githubuserconten...
/src/demo.R
permissive
mattdzugan/World-Population-Cartogram
R
false
false
6,468
r
library(data.table) library(ggplot2) library(wbstats) library(countrycode) library(magick) library(rcartocolor) cellsDT <- fread('https://raw.githubusercontent.com/mattdzugan/World-Population-Cartogram/master/data/year_2018__cell_500k/squares_and_triangles/cells.csv') bordersDT <- fread('https://raw.githubuserconten...
vario.fit <- function (vario, bins, weights=rep(1, length(vario)), type=c("spherical", "gaussian", "nugget", "linear", "exponential", "sill", "periodic", "hole"), start.vals=list(c0=0, c1=max(vario), ...
/synchrony/R/vario.fit.R
no_license
ingted/R-Examples
R
false
false
10,384
r
vario.fit <- function (vario, bins, weights=rep(1, length(vario)), type=c("spherical", "gaussian", "nugget", "linear", "exponential", "sill", "periodic", "hole"), start.vals=list(c0=0, c1=max(vario), ...
## code to prepare `itm7` dataset itm7 = "+proj=tmerc +lat_0=31.7343936111111 +lon_0=35.2045169444445 +k=1.0000067 +x_0=219529.584 +y_0=626907.39 +ellps=GRS80 +towgs84=-24.0024,-17.1032,-17.8444,-0.33009,-1.85269,1.66969,5.4248 +units=m +no_defs" usethis::use_data(itm7, overwrite = TRUE)
/data-raw/DATASET.R
no_license
michaeldorman/geobgu
R
false
false
289
r
## code to prepare `itm7` dataset itm7 = "+proj=tmerc +lat_0=31.7343936111111 +lon_0=35.2045169444445 +k=1.0000067 +x_0=219529.584 +y_0=626907.39 +ellps=GRS80 +towgs84=-24.0024,-17.1032,-17.8444,-0.33009,-1.85269,1.66969,5.4248 +units=m +no_defs" usethis::use_data(itm7, overwrite = TRUE)
################################################################################ #' Save modifications #' #' Save a \code{bigSNP} after having made some modifications to it. #' As \code{bigSNP} is an S3 class, you can add any slot you want #' to an object of this class, then use \code{snp_save} to #' save these modifi...
/R/get-save-infos.R
no_license
Alice-MacQueen/bigsnpr
R
false
false
3,255
r
################################################################################ #' Save modifications #' #' Save a \code{bigSNP} after having made some modifications to it. #' As \code{bigSNP} is an S3 class, you can add any slot you want #' to an object of this class, then use \code{snp_save} to #' save these modifi...
rm(list = ls()) gc() # ------------ # DATA ANALYSIS ISSUE 41 Power and Confidence Intervals # # Study (working title): Need based decision making in a reinforcement learning task. # # Authors: # - Markus D. Steiner (markus.d.steiner@gmail.com) # - Nathaniel D. Phillips (Nathaniel.D.Phillips.is@gmail.com...
/graveyard/S1_05_issue41.R
no_license
mdsteiner/GoalDirectedDecisionMaking
R
false
false
4,646
r
rm(list = ls()) gc() # ------------ # DATA ANALYSIS ISSUE 41 Power and Confidence Intervals # # Study (working title): Need based decision making in a reinforcement learning task. # # Authors: # - Markus D. Steiner (markus.d.steiner@gmail.com) # - Nathaniel D. Phillips (Nathaniel.D.Phillips.is@gmail.com...
#' Ensure the closing brace of the call is removed #' #' Must be after dropping comments because the closing brace is only guaranteed #' to be the last token in that case. #' @inheritParams alignment_drop_comments #' @importFrom rlang seq2 #' @keywords internal alignment_ensure_no_closing_brace <- function(pd_by_line, ...
/R/detect-alignment-utils.R
no_license
jhaltiga/styler
R
false
false
5,696
r
#' Ensure the closing brace of the call is removed #' #' Must be after dropping comments because the closing brace is only guaranteed #' to be the last token in that case. #' @inheritParams alignment_drop_comments #' @importFrom rlang seq2 #' @keywords internal alignment_ensure_no_closing_brace <- function(pd_by_line, ...
#extrapolate library(readr) library(R.matlab) library(dplyr) library(purrr) library(plyr) library(lubridate) library(zoo) #fill empty spaces with "NA" extrapolate_column <- function(list_to_ex,list_to_match) { temp_df = list_to_ex %>% as.data.frame() %>% mutate(V1 = round(V1)) %>% group_by(V1) %>% ...
/extrapolation.R
no_license
007vasy/can_fingerprint_rul
R
false
false
2,974
r
#extrapolate library(readr) library(R.matlab) library(dplyr) library(purrr) library(plyr) library(lubridate) library(zoo) #fill empty spaces with "NA" extrapolate_column <- function(list_to_ex,list_to_match) { temp_df = list_to_ex %>% as.data.frame() %>% mutate(V1 = round(V1)) %>% group_by(V1) %>% ...
\name{gmGetVariableType} \alias{gmGetVariableType} \title{Getting information on variables in a geometallurgy (gm)Database} \description{ Reads the variable name metainformation from the gmDatabase. } \usage{ gmGetVariableType(sel,name,selID=attr(sel,"id"),db=getOption("gmDB")) } \arguments{ \item{sel}...
/man/gmGetVariableType.Rd
no_license
cran/gmDatabase
R
false
false
1,226
rd
\name{gmGetVariableType} \alias{gmGetVariableType} \title{Getting information on variables in a geometallurgy (gm)Database} \description{ Reads the variable name metainformation from the gmDatabase. } \usage{ gmGetVariableType(sel,name,selID=attr(sel,"id"),db=getOption("gmDB")) } \arguments{ \item{sel}...
context("Plenary sessions of the Finnish Parliament") test_that("Response is in correct form and dimensions", { # Should return a list expect_is(plenary_session(), "data.frame", "Should return a data.frame.") # All members, n=.. #all <- plenary_session() #expect_equal(length(all), ... , info="There...
/tests/testthat/test-03-plenarysession.R
no_license
rOpenGov/finpar
R
false
false
701
r
context("Plenary sessions of the Finnish Parliament") test_that("Response is in correct form and dimensions", { # Should return a list expect_is(plenary_session(), "data.frame", "Should return a data.frame.") # All members, n=.. #all <- plenary_session() #expect_equal(length(all), ... , info="There...
# Our goal will be to predict whether or not the stock return in December will be positive, using the stock returns for the first 11 months of the year. stocks = read.csv('StocksCluster.csv') str(stocks) mean(stocks$PositiveDec) cor(stocks) summary(stocks) # splitting the data library(caTools) set.seed(144) spl = samp...
/Analytics Edge Course/6 Clustering/Assignment 3/code.R
no_license
shashwatg1/Data-Analytics
R
false
false
3,058
r
# Our goal will be to predict whether or not the stock return in December will be positive, using the stock returns for the first 11 months of the year. stocks = read.csv('StocksCluster.csv') str(stocks) mean(stocks$PositiveDec) cor(stocks) summary(stocks) # splitting the data library(caTools) set.seed(144) spl = samp...
library(dplyr) library(ggrepel) library(tidyverse) library(patchwork) shapes <- read.csv("data/shapes.txt") data_connection <- tibble( lat = c(-33.424644, -33.52797, -33.46370, -33.43766, -33.498477), long = c(-70.637020, -70.75530, -70.83870, -70.81793, -70.6145018), Site = c("Site 1", "Site 2", "Site...
/18_connections.R
no_license
Saryace/justfigures
R
false
false
1,669
r
library(dplyr) library(ggrepel) library(tidyverse) library(patchwork) shapes <- read.csv("data/shapes.txt") data_connection <- tibble( lat = c(-33.424644, -33.52797, -33.46370, -33.43766, -33.498477), long = c(-70.637020, -70.75530, -70.83870, -70.81793, -70.6145018), Site = c("Site 1", "Site 2", "Site...
############################################################################### #Author: Supat Thongjuea, MRC Molecular Haematology Unit, Weatherall Institute of Molecular Medicine, University of Oxford, UK #Contact email : supat.thongjuea@ndcls.ox.ac.uk or supat.thongjuea@gmail.com #Maintainer: Supat Thongjuea and Al...
/Fig6c/Script-to-plot-figure6c.R
no_license
supatt-lab/Giustacchini-Thongjuea-et-al.-Nat.Med.2017
R
false
false
3,237
r
############################################################################### #Author: Supat Thongjuea, MRC Molecular Haematology Unit, Weatherall Institute of Molecular Medicine, University of Oxford, UK #Contact email : supat.thongjuea@ndcls.ox.ac.uk or supat.thongjuea@gmail.com #Maintainer: Supat Thongjuea and Al...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uncertainty.R \name{sample_trees} \alias{sample_trees} \title{Function to sample trees from a file containing multiple trees. Usually from a bayesian analysis output trees file.} \usage{ sample_trees(trees_file, trees_object = NULL, burnin = ...
/man/sample_trees.Rd
no_license
gitter-badger/datelife
R
false
true
983
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uncertainty.R \name{sample_trees} \alias{sample_trees} \title{Function to sample trees from a file containing multiple trees. Usually from a bayesian analysis output trees file.} \usage{ sample_trees(trees_file, trees_object = NULL, burnin = ...
#### Encase all code in a tryCatch block, so if anything unexpected goes wrong, pipeline will still run #### tryCatch({ #### Set snakemake variables #### cat("Setting snakemake variables", "\n") bamPath <- snakemake@input[[1]] baiPath <- snakemake@input[[2]] bindingSitesPath <- snakemake@input[[3]] funct...
/snakemakeATAC_singleFastq/resources/scripts/footprinting/getTotalReadsInPeaks.R
no_license
jk3755/jskCode
R
false
false
2,984
r
#### Encase all code in a tryCatch block, so if anything unexpected goes wrong, pipeline will still run #### tryCatch({ #### Set snakemake variables #### cat("Setting snakemake variables", "\n") bamPath <- snakemake@input[[1]] baiPath <- snakemake@input[[2]] bindingSitesPath <- snakemake@input[[3]] funct...
library(forestChange) ### Name: EBVmetric ### Title: EBV metric ### Aliases: EBVmetric ### ** Examples EBVmetric(NULL) ## Lets change mpio = NULL by a GADM unit: e.g., the municipality ## of 'Uribia' in Colombia and compute fractal dimensions from ## year 10 to year 17: ## No test: mpio <- 'Uribia' gadm <- FCPo...
/data/genthat_extracted_code/forestChange/examples/EBVmetric.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
429
r
library(forestChange) ### Name: EBVmetric ### Title: EBV metric ### Aliases: EBVmetric ### ** Examples EBVmetric(NULL) ## Lets change mpio = NULL by a GADM unit: e.g., the municipality ## of 'Uribia' in Colombia and compute fractal dimensions from ## year 10 to year 17: ## No test: mpio <- 'Uribia' gadm <- FCPo...
#!/usr/bin/env Rscript library(JunctionSeq) countData<-lapply(list.files(pattern="*.counts.tsv"), read.delim,header=FALSE) gff.file<-"IMPDH1.gff" design <- data.frame(condition = factor(c("Pituitary","Brain","Spleen"))) jscs = readJunctionSeqCounts(countdata = countData,samplenames = c("SAMP1","SAMP2","SAMP3"),design =...
/data/js_data/js_test.R
permissive
ChristopherWilks/snaptron-experiments
R
false
false
586
r
#!/usr/bin/env Rscript library(JunctionSeq) countData<-lapply(list.files(pattern="*.counts.tsv"), read.delim,header=FALSE) gff.file<-"IMPDH1.gff" design <- data.frame(condition = factor(c("Pituitary","Brain","Spleen"))) jscs = readJunctionSeqCounts(countdata = countData,samplenames = c("SAMP1","SAMP2","SAMP3"),design =...
# use custom package library .libPaths("/global/scratch/nhejazi/R") # packages and options library(here) library(foreach) library(future) library(doFuture) library(doRNG) library(data.table) library(tidyverse) library(hal9001) library(haldensify) library(sl3) library(txshift) # parallelization options(future.globals....
/simulations/R/main_performance/01a_effic_pi_hal.R
no_license
nhejazi/pub_txshift_biometrics
R
false
false
3,275
r
# use custom package library .libPaths("/global/scratch/nhejazi/R") # packages and options library(here) library(foreach) library(future) library(doFuture) library(doRNG) library(data.table) library(tidyverse) library(hal9001) library(haldensify) library(sl3) library(txshift) # parallelization options(future.globals....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readIGNSplot.R \name{readIGNSplot} \alias{readIGNSplot} \title{To read the image file} \usage{ readIGNSplot(Imagefile) } \arguments{ \item{Imagefile}{well cutted .jpeg image of lateral flow strip} } \value{ plot of signal intensity vs index }...
/man/readIGNSplot.Rd
no_license
NPhogat/GNSplex
R
false
true
843
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readIGNSplot.R \name{readIGNSplot} \alias{readIGNSplot} \title{To read the image file} \usage{ readIGNSplot(Imagefile) } \arguments{ \item{Imagefile}{well cutted .jpeg image of lateral flow strip} } \value{ plot of signal intensity vs index }...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gdcClinical.R \name{gdcClinicalDownload} \alias{gdcClinicalDownload} \title{Download clinical data in GDC} \usage{ gdcClinicalDownload(manifest = NULL, project.id, directory = "Clinical", write.manifest = FALSE, method = "gdc-client") } \...
/man/gdcClinicalDownload.Rd
permissive
rli012/GDCRNATools
R
false
true
1,780
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gdcClinical.R \name{gdcClinicalDownload} \alias{gdcClinicalDownload} \title{Download clinical data in GDC} \usage{ gdcClinicalDownload(manifest = NULL, project.id, directory = "Clinical", write.manifest = FALSE, method = "gdc-client") } \...
#List north=list("Delhi","Himachal") south=list("Kerala",'banglore') east=list("Orissa") west=list("Rajasthan") area=list(north,south,east,west) area # newlist=list("red","white",c(12,34,56), FALSE, 3.4,11) print(newlist) # area$north area[[1]] area[["north"]] area[[1]][1] # matrix1=matrix(nrow=2,...
/list and factor.R
no_license
nikhilbakodiya/R-programming
R
false
false
745
r
#List north=list("Delhi","Himachal") south=list("Kerala",'banglore') east=list("Orissa") west=list("Rajasthan") area=list(north,south,east,west) area # newlist=list("red","white",c(12,34,56), FALSE, 3.4,11) print(newlist) # area$north area[[1]] area[["north"]] area[[1]][1] # matrix1=matrix(nrow=2,...
require("Homo.sapiens") ## TODO: to speed up unit tests I need some small pieces of annotation ## for testing a small subset of granges and the matching metadata ## Ideally I want a Homo.sapiens package that uses the small subset DB ## from GenomicFeatures. Perhaps a "mini-me" package for testing? - ## but making thi...
/inst/unitTests/test_transcripts.R
no_license
Bioconductor/OrganismDbi
R
false
false
5,408
r
require("Homo.sapiens") ## TODO: to speed up unit tests I need some small pieces of annotation ## for testing a small subset of granges and the matching metadata ## Ideally I want a Homo.sapiens package that uses the small subset DB ## from GenomicFeatures. Perhaps a "mini-me" package for testing? - ## but making thi...
pollutantmean <- function(directory, pollutant, id = 1:332) { #path <- file.path(getwd(),directory) #setwd(file.path(getwd(),directory)) path <- paste0(getwd(),"/", directory) #this one is more general data <- data.frame() for (i in id) { if (i < 10) { dat <- read.csv(paste(path,"/00", as.cha...
/Part1.R
no_license
Yash5595/Coursera-R-programming
R
false
false
901
r
pollutantmean <- function(directory, pollutant, id = 1:332) { #path <- file.path(getwd(),directory) #setwd(file.path(getwd(),directory)) path <- paste0(getwd(),"/", directory) #this one is more general data <- data.frame() for (i in id) { if (i < 10) { dat <- read.csv(paste(path,"/00", as.cha...
## Create DB for projectX # Libraries require(dplyr) options(dplyr.show_sql = TRUE) options(dplyr.explain_sql = FALSE) ## DB initialization bDB <- src_sqlite("Inst/DB/bDB.sqlite", create = TRUE) ## Table creation ---- ## > address ---- address <- data.frame( Id = integer(0), Street_name = character(0), Stre...
/createDB.R
no_license
LCHansson/projectX
R
false
false
1,759
r
## Create DB for projectX # Libraries require(dplyr) options(dplyr.show_sql = TRUE) options(dplyr.explain_sql = FALSE) ## DB initialization bDB <- src_sqlite("Inst/DB/bDB.sqlite", create = TRUE) ## Table creation ---- ## > address ---- address <- data.frame( Id = integer(0), Street_name = character(0), Stre...
setwd("P:/12894100_stipendiat_anne_mehlhoop_anvendt_okologi_og_natu/01_Browsing_pressure/analysis/Bram_Anne/") #install.packages("glmmTMB") library(glmmTMB) ## Load HOUSE models data---- #### Browsing pressure load("output/browsing_2021_02_02/browse_h_bin1.rda") zeromod1 <- browse_h_bin1 summary(zeromod1) load("out...
/42_for_bram.R
permissive
anneMehl/vvv1-browsing
R
false
false
8,411
r
setwd("P:/12894100_stipendiat_anne_mehlhoop_anvendt_okologi_og_natu/01_Browsing_pressure/analysis/Bram_Anne/") #install.packages("glmmTMB") library(glmmTMB) ## Load HOUSE models data---- #### Browsing pressure load("output/browsing_2021_02_02/browse_h_bin1.rda") zeromod1 <- browse_h_bin1 summary(zeromod1) load("out...
#read in text file to energy energy <- read.table("household_power_consumption.txt",sep=";", header =TRUE) #subset on date for the two days twodays <- subset(energy,energy$Date=="1/2/2007" | energy$Date =="2/2/2007") #setting time to Thur-Sat datetime <-strptime(paste(twoday$sDate, twodays$Time, sep=" "), "%d/%m/%Y %H:...
/Plot 2.R
no_license
ap12798/ExData_Plotting1
R
false
false
512
r
#read in text file to energy energy <- read.table("household_power_consumption.txt",sep=";", header =TRUE) #subset on date for the two days twodays <- subset(energy,energy$Date=="1/2/2007" | energy$Date =="2/2/2007") #setting time to Thur-Sat datetime <-strptime(paste(twoday$sDate, twodays$Time, sep=" "), "%d/%m/%Y %H:...
print_var <- function(x) print(paste0(as.list(match.call())[[2]], ": ", x)) print_debug_info <- function(p) if (p$debug & !creating_report_now()) { cat(paste0("DEBUG INFO>> ", deparse(sys.calls()[[sys.nframe()-1]]), "\n")) # cat(paste0(" >> ", paste(p$png_file, collapse = ", "), "\n")) # if (is_set(p$legend_typ...
/R/debug.R
permissive
data-science-made-easy/james
R
false
false
1,616
r
print_var <- function(x) print(paste0(as.list(match.call())[[2]], ": ", x)) print_debug_info <- function(p) if (p$debug & !creating_report_now()) { cat(paste0("DEBUG INFO>> ", deparse(sys.calls()[[sys.nframe()-1]]), "\n")) # cat(paste0(" >> ", paste(p$png_file, collapse = ", "), "\n")) # if (is_set(p$legend_typ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/known_Oct1.R \docType{data} \name{known_Oct1} \alias{known_Oct1} \title{Known events which happened on October 1st before 9am} \format{A data frame with 17 rows and 3 variables: \describe{ \item{Station}{NRFA station number} \item{Date}{d...
/man/known_Oct1.Rd
no_license
Luke-Shaw/winfapReader
R
false
true
1,130
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/known_Oct1.R \docType{data} \name{known_Oct1} \alias{known_Oct1} \title{Known events which happened on October 1st before 9am} \format{A data frame with 17 rows and 3 variables: \describe{ \item{Station}{NRFA station number} \item{Date}{d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Transform.r \docType{data} \name{Transform} \alias{Transform} \title{Transform Class} \format{An object of class \code{R6ClassGenerator} of length 24.} \usage{ Transform } \description{ Transform Class } \section{Fields}{ \describe{ \item{\c...
/man/Transform.Rd
permissive
agaveplatform/r-sdk
R
false
true
727
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Transform.r \docType{data} \name{Transform} \alias{Transform} \title{Transform Class} \format{An object of class \code{R6ClassGenerator} of length 24.} \usage{ Transform } \description{ Transform Class } \section{Fields}{ \describe{ \item{\c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{radon} \alias{radon} \title{Radon data} \format{ An object of class \code{data.frame} with 919 rows and 30 columns. } \usage{ radon } \description{ A dataset containing 919 radon measurements with additional data }...
/man/radon.Rd
no_license
anthonyshook/amem
R
false
true
340
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{radon} \alias{radon} \title{Radon data} \format{ An object of class \code{data.frame} with 919 rows and 30 columns. } \usage{ radon } \description{ A dataset containing 919 radon measurements with additional data }...
### LAbTAT lab <- read.csv(file.choose()) View(lab) attach(lab) ## Normality test library(nortest) shapiro.test(Laboratory.1) ##p-value = 0.5508 shapiro.test(Laboratory.2) ##p-value = 0.8637 shapiro.test(Laboratory.3) ##p-value = 0.4205 shapiro.test(Laboratory.4) ##p-value = 0.6619 ### All variables are n...
/Hypothesis testing/LabTAT.R
no_license
DivyaHarshith/ExcelR-Assignment
R
false
false
670
r
### LAbTAT lab <- read.csv(file.choose()) View(lab) attach(lab) ## Normality test library(nortest) shapiro.test(Laboratory.1) ##p-value = 0.5508 shapiro.test(Laboratory.2) ##p-value = 0.8637 shapiro.test(Laboratory.3) ##p-value = 0.4205 shapiro.test(Laboratory.4) ##p-value = 0.6619 ### All variables are n...
testlist <- list(m = NULL, repetitions = -304992360L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.23273920658651e+146), .Dim = c(3L, 1L ))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) str(result)
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615786575-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
254
r
testlist <- list(m = NULL, repetitions = -304992360L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.23273920658651e+146), .Dim = c(3L, 1L ))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) str(result)
############ instead of imputing, removing missing values sum(is.na(train_raw)) sum(is.na(test_raw)) #omitting train_raw_omit<-na.omit(train_raw) #smoting train_rose_omit<-ROSE(Churn ~ ., data = train_raw_omit, seed = 15)$data ############# Straight to test h2o.init(nthreads = -1) colnames(train_raw_...
/Hackathon Codes/Code_5.R
no_license
AchintKumar/Churn_Prediction
R
false
false
832
r
############ instead of imputing, removing missing values sum(is.na(train_raw)) sum(is.na(test_raw)) #omitting train_raw_omit<-na.omit(train_raw) #smoting train_rose_omit<-ROSE(Churn ~ ., data = train_raw_omit, seed = 15)$data ############# Straight to test h2o.init(nthreads = -1) colnames(train_raw_...
# this code will repeate univariate logistic regression with the outcome variable status and different predictor variable lapply(c("age","gender_cd","race_cd", "zip_group","tot_len_of_stay","hosp_svc","lang","Hb","Na"), function(var) { formula <- as.formula(paste("status ~", ...
/200_univariable logistic regression.R
no_license
tanzirhasan/Readmission
R
false
false
457
r
# this code will repeate univariate logistic regression with the outcome variable status and different predictor variable lapply(c("age","gender_cd","race_cd", "zip_group","tot_len_of_stay","hosp_svc","lang","Hb","Na"), function(var) { formula <- as.formula(paste("status ~", ...
library(wordcloud2) library(readr) library(dplyr) library(e1071) library(mlbench) library(tm) library(SnowballC) library("wordcloud") library("RColorBrewer") t1 <- read_csv("Downloads/biden_data.csv") glimpse(t1) # Create corpus corpus = Corpus(VectorSource(t1$text)) corpus = tm_map(corpus, PlainTextDocument) corp...
/Exercises/biden.R
no_license
rakshakannu/Data-Visualization-in-R
R
false
false
1,150
r
library(wordcloud2) library(readr) library(dplyr) library(e1071) library(mlbench) library(tm) library(SnowballC) library("wordcloud") library("RColorBrewer") t1 <- read_csv("Downloads/biden_data.csv") glimpse(t1) # Create corpus corpus = Corpus(VectorSource(t1$text)) corpus = tm_map(corpus, PlainTextDocument) corp...
# cstep_ram_cv = function(x, y, lambda, kernel, kernel_par = 1, # theta = NULL, criterion = "hinge", x_test = NULL, y_test = NULL, # cv = FALSE, fold = 5) # { # fit_list = vector("list", length(kernel_par)) # err_vec = rep(NA, length(kernel_par)) # for (i in 1:lengt...
/R/sramsvm.R
no_license
bbeomjin/dbvsmsvm
R
false
false
15,986
r
# cstep_ram_cv = function(x, y, lambda, kernel, kernel_par = 1, # theta = NULL, criterion = "hinge", x_test = NULL, y_test = NULL, # cv = FALSE, fold = 5) # { # fit_list = vector("list", length(kernel_par)) # err_vec = rep(NA, length(kernel_par)) # for (i in 1:lengt...
# The first function, `makeVector` creates a special "vector", which is # really a list containing a function to # # 1. set the value of the vector # 2. get the value of the vector # 3. set the value of the mean # 4. get the value of the mean makeVector <- function(x = numeric()) { m <- NULL set <- function(y...
/example.R
no_license
snickels/ProgrammingAssignment2
R
false
false
1,094
r
# The first function, `makeVector` creates a special "vector", which is # really a list containing a function to # # 1. set the value of the vector # 2. get the value of the vector # 3. set the value of the mean # 4. get the value of the mean makeVector <- function(x = numeric()) { m <- NULL set <- function(y...
library(ape) testtree <- read.tree("2542_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="2542_0_unrooted.txt")
/codeml_files/newick_trees_processed/2542_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("2542_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="2542_0_unrooted.txt")
## Bayesian non-linear factor analysis for incorporating ## prior knowledge into single-cell trajectory learning ## kieranc@well.ox.ac.uk #' Fit a Ouija object. #' #' Fit a Bayesian non-linear factor analysis model given some single-cell #' gene expression data. #' #' This function takes either a \code{SCESet} obj...
/R/ouija.R
no_license
teslaa22/ouija
R
false
false
23,032
r
## Bayesian non-linear factor analysis for incorporating ## prior knowledge into single-cell trajectory learning ## kieranc@well.ox.ac.uk #' Fit a Ouija object. #' #' Fit a Bayesian non-linear factor analysis model given some single-cell #' gene expression data. #' #' This function takes either a \code{SCESet} obj...
## check working directory ## set working directory ## import data
/data_import/demo-disk.R
no_license
chuvanan/r-courses
R
false
false
75
r
## check working directory ## set working directory ## import data
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MESSMask.R \name{MESSMask} \alias{MESSMask} \title{Process module: MESSMask} \usage{ MESSMask(.data) } \arguments{ \item{.data}{\strong{Internal parameter, do not use in the workflow function}. \code{.data} is a list of a data frame and a ras...
/man/MESSMask.Rd
no_license
leehazel/modules
R
false
true
1,566
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MESSMask.R \name{MESSMask} \alias{MESSMask} \title{Process module: MESSMask} \usage{ MESSMask(.data) } \arguments{ \item{.data}{\strong{Internal parameter, do not use in the workflow function}. \code{.data} is a list of a data frame and a ras...
--- MACRO type* ALLOC(type) type 型のメモリを割り当てる。 --- MACRO type* ALLOC_N(type, n) type 型のメモリを n 個割り当てる。 --- MACRO type* ALLOCA_N(type, n) type 型のメモリを n 個スタックフレームに割り当てる。 このメモリは関数が終わると自動的に解放される。 --- MACRO int BUILTIN_TYPE(VALUE obj) obj の構造体型 ID を返します。 [[f:SPECIAL_CONST_P]](obj) が真のオブジェクトに対して使うと落ちます。 #@until 2.2.0 -...
/refm/capi/src/ruby.h.rd
no_license
MasashiFukuzawa/doctree
R
false
false
16,188
rd
--- MACRO type* ALLOC(type) type 型のメモリを割り当てる。 --- MACRO type* ALLOC_N(type, n) type 型のメモリを n 個割り当てる。 --- MACRO type* ALLOCA_N(type, n) type 型のメモリを n 個スタックフレームに割り当てる。 このメモリは関数が終わると自動的に解放される。 --- MACRO int BUILTIN_TYPE(VALUE obj) obj の構造体型 ID を返します。 [[f:SPECIAL_CONST_P]](obj) が真のオブジェクトに対して使うと落ちます。 #@until 2.2.0 -...
gaussNorm <- function (flowset, channel.names, max.lms = 2, base.lms = NULL, peak.density.thr = 0.05, peak.distance.thr = 0.05, debug = FALSE, fname = ""){ remb.flowset = flowStats:::remBoundary(flowset, channel.names) expr.list = c(1:length(flowset)) if (length(max...
/gaussnorm_function.R
no_license
b8307038/CytoNorm_Figures
R
false
false
3,271
r
gaussNorm <- function (flowset, channel.names, max.lms = 2, base.lms = NULL, peak.density.thr = 0.05, peak.distance.thr = 0.05, debug = FALSE, fname = ""){ remb.flowset = flowStats:::remBoundary(flowset, channel.names) expr.list = c(1:length(flowset)) if (length(max...
# Change "Histogram", all __1_s, and edit tiles below: tabItem(tabName = "Histogram", tabsetPanel( tabPanel("Plots"),# To create a tab panel - see https://shiny.rstudio.com/reference/shiny/latest/tabPanel.html tabPanel("Data", dataTableOutput('table__1_'), ...
/Insight01UI.R
no_license
nt6726/InjuryMortalityDataExamination
R
false
false
1,581
r
# Change "Histogram", all __1_s, and edit tiles below: tabItem(tabName = "Histogram", tabsetPanel( tabPanel("Plots"),# To create a tab panel - see https://shiny.rstudio.com/reference/shiny/latest/tabPanel.html tabPanel("Data", dataTableOutput('table__1_'), ...
## This will unzip the levee files. zipF <-list.files(path = paste0("./R/DATA-RAW/LEVEES"), recursive=TRUE, full.names = TRUE) for(this.file in zipF){ files <-str_split(str_split(this.file[1], "/")[[1]][5], ".zip")[[1]][1] target <- paste0("./R/DATA-RAW/LEVEES/LEVEES/",files) unzip(this.file, exdir = target) ...
/R/SCRIPTS/007-unziptheleveedata.R
no_license
mathewhauer/commuting-national-replication
R
false
false
404
r
## This will unzip the levee files. zipF <-list.files(path = paste0("./R/DATA-RAW/LEVEES"), recursive=TRUE, full.names = TRUE) for(this.file in zipF){ files <-str_split(str_split(this.file[1], "/")[[1]][5], ".zip")[[1]][1] target <- paste0("./R/DATA-RAW/LEVEES/LEVEES/",files) unzip(this.file, exdir = target) ...
`%||%` <- function(a, b) if (is.null(a)) b else a # adapted from https://github.com/blakeembrey/pluralize/blob/master/pluralize.js pluralize <- function(s) { rules <- list( '([^aeiou]ese)$' = '\\1', '(ax|test)is$' = '\\1es', '(alias|[^aou]us|tlas|gas|ris)$' = '\\1es', '(e[mn]u)s?$' = '\\1s', '([^...
/R/utils.R
no_license
nteetor/camazotz
R
false
false
1,827
r
`%||%` <- function(a, b) if (is.null(a)) b else a # adapted from https://github.com/blakeembrey/pluralize/blob/master/pluralize.js pluralize <- function(s) { rules <- list( '([^aeiou]ese)$' = '\\1', '(ax|test)is$' = '\\1es', '(alias|[^aou]us|tlas|gas|ris)$' = '\\1es', '(e[mn]u)s?$' = '\\1s', '([^...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## This function make a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv...
/cachematrix.R
no_license
o157/ProgrammingAssignment2
R
false
false
987
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## This function make a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv...
ft_geteval <- function(fit, df, binary = TRUE, label = "label") { eval <- lapply(df, function(x){ if(binary){ # ml_binary_classification_eval need rawPrediction!! auc <- sdf_predict(fit, x) %>% ml_binary_classification_eval(label, "rawPrediction") %>% data.frame("auc...
/R/ft_geteval.R
no_license
catlain/sparklyrfun
R
false
false
799
r
ft_geteval <- function(fit, df, binary = TRUE, label = "label") { eval <- lapply(df, function(x){ if(binary){ # ml_binary_classification_eval need rawPrediction!! auc <- sdf_predict(fit, x) %>% ml_binary_classification_eval(label, "rawPrediction") %>% data.frame("auc...
# plot4.R - Multiplot time series of global active power, voltage, submetering # and global reactive power # Read data, select two days of 2007-2-1 and 2007-2-2 and convert dates/times hpc <- read.table("household_power_consumption.txt",skip = 66637, nrow = 2880, sep = ";", col.names = colnames(re...
/plot4.R
no_license
pjwang-gh/ExData_Plotting1
R
false
false
1,367
r
# plot4.R - Multiplot time series of global active power, voltage, submetering # and global reactive power # Read data, select two days of 2007-2-1 and 2007-2-2 and convert dates/times hpc <- read.table("household_power_consumption.txt",skip = 66637, nrow = 2880, sep = ";", col.names = colnames(re...
###################################################################### #don't need need the commented lines once I've extracted CRC metadata# ###################################################################### # rc2 = readRDS('/lustre/scratch119/realdata/mdt1/team274/my4/bulkRNAseq/rse_gene_TCGA.RDS') # len=read.t...
/cellsig_analysis.R
no_license
GKild/dediff
R
false
false
8,194
r
###################################################################### #don't need need the commented lines once I've extracted CRC metadata# ###################################################################### # rc2 = readRDS('/lustre/scratch119/realdata/mdt1/team274/my4/bulkRNAseq/rse_gene_TCGA.RDS') # len=read.t...
# Get Gridded data from ACIS # MAC 09/19/2018 library(RCurl) library(jsonlite) library(ggplot2) library(ggmap) library(scales) library(reshape2) library(raster) # API key source('APIkey.R') # Universal date range dateRangeStart="2007-01-02" dateRangeEnd="2019-01-01" allDates<-seq(as.Date(dateRangeStart), as.Date(dat...
/manuscript/getTucsonGrids.R
no_license
mcrimmins/Rainlog
R
false
false
3,210
r
# Get Gridded data from ACIS # MAC 09/19/2018 library(RCurl) library(jsonlite) library(ggplot2) library(ggmap) library(scales) library(reshape2) library(raster) # API key source('APIkey.R') # Universal date range dateRangeStart="2007-01-02" dateRangeEnd="2019-01-01" allDates<-seq(as.Date(dateRangeStart), as.Date(dat...
testlist <- list(ExpressionSet = structure(c(3.10503529562433e+231, 1.23181983389617e+58, 1.52478221800294e+245, 6.36967296041789e+178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), Phylostratum = numeric(0)) result <- do.call(myTAI:::cpp_TAI,testlis...
/myTAI/inst/testfiles/cpp_TAI/AFL_cpp_TAI/cpp_TAI_valgrind_files/1615763520-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
334
r
testlist <- list(ExpressionSet = structure(c(3.10503529562433e+231, 1.23181983389617e+58, 1.52478221800294e+245, 6.36967296041789e+178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), Phylostratum = numeric(0)) result <- do.call(myTAI:::cpp_TAI,testlis...
\name{imwr.imwd} \alias{imwr.imwd} \title{Inverse two-dimensional discrete wavelet transform.} \description{ This functions performs the reconstruction stage of Mallat's pyramid algorithm (i.e. the inverse discrete wavelet transform) for images. } \usage{ \method{imwr}{imwd}(imwd, bc=imwd$bc, verbose=FALSE, \dots) } ...
/man/imwr.imwd.rd
no_license
cran/wavethresh
R
false
false
2,423
rd
\name{imwr.imwd} \alias{imwr.imwd} \title{Inverse two-dimensional discrete wavelet transform.} \description{ This functions performs the reconstruction stage of Mallat's pyramid algorithm (i.e. the inverse discrete wavelet transform) for images. } \usage{ \method{imwr}{imwd}(imwd, bc=imwd$bc, verbose=FALSE, \dots) } ...
# infoContent.R `loadInfoContent` <- function( seqID="Pf3D7_01") { #setCurrentSpecies( speciesID) #prefix <- getCurrentSpeciesFilePrefix() #infoFile <- paste( prefix, "InfoContent", sep=".") infoFile <- paste( seqID, "InfoContent", sep=".") if ( exists( "InfoPath")) { infoFile <- file.path( InfoPath, ...
/R/infoContent.R
no_license
sturkarslan/DuffyTools
R
false
false
5,613
r
# infoContent.R `loadInfoContent` <- function( seqID="Pf3D7_01") { #setCurrentSpecies( speciesID) #prefix <- getCurrentSpeciesFilePrefix() #infoFile <- paste( prefix, "InfoContent", sep=".") infoFile <- paste( seqID, "InfoContent", sep=".") if ( exists( "InfoPath")) { infoFile <- file.path( InfoPath, ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/aes.r \name{aes_auto} \alias{aes_auto} \title{Automatic aesthetic mapping} \usage{ aes_auto(data = NULL, ...) } \arguments{ \item{data}{data.frame or names of variables} \item{...}{aesthetics that need to be explicitly mapped.} } \de...
/man/aes_auto.Rd
no_license
pricky2903/ggplot2
R
false
false
381
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/aes.r \name{aes_auto} \alias{aes_auto} \title{Automatic aesthetic mapping} \usage{ aes_auto(data = NULL, ...) } \arguments{ \item{data}{data.frame or names of variables} \item{...}{aesthetics that need to be explicitly mapped.} } \de...
#' Power for the Equal Allocation 3, Proportional Allocation 2, and #' Equal Allocation 2 procedures. #' #' @param n total sample size #' @param rateC group C one year event rate #' @param hrA group A to group C hazard ratio #' @param hrB group B to group C hazard ratio #' @param hrAB group AB to group C ha...
/R/fac2x2design.R
no_license
cran/factorial2x2
R
false
false
5,239
r
#' Power for the Equal Allocation 3, Proportional Allocation 2, and #' Equal Allocation 2 procedures. #' #' @param n total sample size #' @param rateC group C one year event rate #' @param hrA group A to group C hazard ratio #' @param hrB group B to group C hazard ratio #' @param hrAB group AB to group C ha...
# Haberman() Haberman = function(ConfigList, st){ ConfigList = SetState(ConfigList, st, "Hbr") set.seed(0) old <- Sys.time() # get start time # Read and Correct data data = read.table("D:/RProjects/OptTask/Data/Haberman.txt", sep=",", fill=FALSE, ...
/Haberman.R
no_license
zefreh/Sources20171236
R
false
false
3,434
r
# Haberman() Haberman = function(ConfigList, st){ ConfigList = SetState(ConfigList, st, "Hbr") set.seed(0) old <- Sys.time() # get start time # Read and Correct data data = read.table("D:/RProjects/OptTask/Data/Haberman.txt", sep=",", fill=FALSE, ...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307332017e+77, 9.53818252170339e+295, 1.22810536108214e+146, 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/1615782451-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
329
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307332017e+77, 9.53818252170339e+295, 1.22810536108214e+146, 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...
testlist <- list(x = NaN, y = c(NaN, 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)) result <- do.call(blorr:::blr_pairs_cpp,testlist) str(result)
/blorr/inst/testfiles/blr_pairs_cpp/libFuzzer_blr_pairs_cpp/blr_pairs_cpp_valgrind_files/1609956699-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
215
r
testlist <- list(x = NaN, y = c(NaN, 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)) result <- do.call(blorr:::blr_pairs_cpp,testlist) str(result)
#This R script downloads data from a Human Activity Recognition database and #1. Extracts only the measurements on the mean and standard deviation for each measurement. #2. Uses descriptive activity names to name the activities in the data set #3. Appropriately labels the data set with descriptive variable name...
/run_analysis.R
no_license
Fostac/SummarizeHumanActivityData
R
false
false
3,957
r
#This R script downloads data from a Human Activity Recognition database and #1. Extracts only the measurements on the mean and standard deviation for each measurement. #2. Uses descriptive activity names to name the activities in the data set #3. Appropriately labels the data set with descriptive variable name...
## Calculates true abundance for each simulation after applying correction factor for GPWA. ## ## GPWA was the only forest for which true N was constrained below the prescribed max density by habitat availability ## # Set working directory to folder with simulated datasets: library(foreign) l...
/07-Sim_rSPACE_true_abundance.R
no_license
qureshlatif/WHWO-Regional-monitoring-simulation-project
R
false
false
1,573
r
## Calculates true abundance for each simulation after applying correction factor for GPWA. ## ## GPWA was the only forest for which true N was constrained below the prescribed max density by habitat availability ## # Set working directory to folder with simulated datasets: library(foreign) l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{altTab} \alias{altTab} \title{Alt-tabbing function} \usage{ altTab() } \value{ Side-effecting function } \description{ Alt-tabbing function }
/man/altTab.Rd
no_license
miraisolutions/winsendkeys
R
false
true
240
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{altTab} \alias{altTab} \title{Alt-tabbing function} \usage{ altTab() } \value{ Side-effecting function } \description{ Alt-tabbing function }
\name{gatherCors} \alias{gatherCors} %- Also NEED an '\alias' for EACH other topic documented here. \title{gatherCors} \description{ Please refer to the file /inst/doc/readme.pdf. } \usage{ gatherCors(data, cor_method = c("spearman", "pearson", "kendall"), HG7 = NULL, ERCC = NULL, TN = NULL, TC = NULL, CR = NU...
/man/gatherCors.Rd
no_license
cran/NormExpression
R
false
false
3,236
rd
\name{gatherCors} \alias{gatherCors} %- Also NEED an '\alias' for EACH other topic documented here. \title{gatherCors} \description{ Please refer to the file /inst/doc/readme.pdf. } \usage{ gatherCors(data, cor_method = c("spearman", "pearson", "kendall"), HG7 = NULL, ERCC = NULL, TN = NULL, TC = NULL, CR = NU...
rm(list=ls(all=TRUE)) mouse <- data.frame( X = scan("mouse.data"), A = factor(rep(1:3, c(11, 10, 12))) ) mouse.aov <- aov(X ~ A, data = mouse) summary(mouse.aov)
/chap07/exa_0702.R
no_license
leetschau/app-of-rlang-in-stats
R
false
false
178
r
rm(list=ls(all=TRUE)) mouse <- data.frame( X = scan("mouse.data"), A = factor(rep(1:3, c(11, 10, 12))) ) mouse.aov <- aov(X ~ A, data = mouse) summary(mouse.aov)
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "phoneme") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("cl...
/models/openml_phoneme/classification_Class/858953483add442dde770701642a3ab8/code.R
no_license
lukaszbrzozowski/CaseStudies2019S
R
false
false
719
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "phoneme") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("cl...
\name{identity_pal} \alias{identity_pal} \title{Identity palette.} \usage{ identity_pal() } \description{ Leaves values unchanged - useful when the data is already scaled. }
/man/identity_pal.Rd
no_license
kohske/scales
R
false
false
181
rd
\name{identity_pal} \alias{identity_pal} \title{Identity palette.} \usage{ identity_pal() } \description{ Leaves values unchanged - useful when the data is already scaled. }
library(data.table) library(directlabels) library(ggplot2) library(penaltyLearning) library(dplyr) library(data.table) library(microbenchmark) add.x.var <- function(df, method){ data.frame(df, method=factor(method, c("lopart", "opart"))) } labeled.data <- readRDS("data-for-LOPART.rds") pid_chrs <- unique(labeled.da...
/TestErrors.R
no_license
as4378/LabelledOpart
R
false
false
4,235
r
library(data.table) library(directlabels) library(ggplot2) library(penaltyLearning) library(dplyr) library(data.table) library(microbenchmark) add.x.var <- function(df, method){ data.frame(df, method=factor(method, c("lopart", "opart"))) } labeled.data <- readRDS("data-for-LOPART.rds") pid_chrs <- unique(labeled.da...
library(shiny) library(shinydashboard) library(robservable) library(tidyverse) #Needed for read_csv (not to be confused with read.csv) ui <- dashboardPage( dashboardHeader(title = " Who is the goat?"), dashboardSidebar(sidebarMenu(id = "sidebarid", menuItem("Homepage", tabName = "homepage", icon = ...
/app.r
no_license
Afka-be/rshiny_tennis
R
false
false
7,349
r
library(shiny) library(shinydashboard) library(robservable) library(tidyverse) #Needed for read_csv (not to be confused with read.csv) ui <- dashboardPage( dashboardHeader(title = " Who is the goat?"), dashboardSidebar(sidebarMenu(id = "sidebarid", menuItem("Homepage", tabName = "homepage", icon = ...
# --------------------------------------------------- # # Author: Marius D. Pascariu # License: MIT # Last update: Fri Jun 07 10:29:11 2019 # --------------------------------------------------- # remove(list = ls()) # Wrong index expect_error(ReadJMD(what = "DxDD")) # Wrong region expect_error(ReadJMD(what = "Dx", re...
/tests/testthat/test_ReadJMD.R
permissive
SheilaDesanze/MortalityLaws
R
false
false
1,039
r
# --------------------------------------------------- # # Author: Marius D. Pascariu # License: MIT # Last update: Fri Jun 07 10:29:11 2019 # --------------------------------------------------- # remove(list = ls()) # Wrong index expect_error(ReadJMD(what = "DxDD")) # Wrong region expect_error(ReadJMD(what = "Dx", re...
--- title: "2ndpdf" author: "Mehedi" date: "4/24/2020" output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` # hiiiii **1st pdf** *2nd 1* - how is me [facebook](www.facebook.com) - trying - making - fooling ```{r} print("hahahaha") ``` ```{r cars} summary(cars...
/2nd.R
no_license
Mehedi24434/forpdf
R
false
false
561
r
--- title: "2ndpdf" author: "Mehedi" date: "4/24/2020" output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` # hiiiii **1st pdf** *2nd 1* - how is me [facebook](www.facebook.com) - trying - making - fooling ```{r} print("hahahaha") ``` ```{r cars} summary(cars...
# Stick Breaking # make grid? num.breaks = 1000 alpha = 20 z = rbeta(num.breaks,1,alpha) w = numeric(num.breaks) for (i in 1:num.breaks) { w[i] = ifelse(i==1, z[i], z[i]*prod((1-z)[1:(i-1)])) } # Using N(0,1) from slides delta = rnorm(num.breaks, 0,1) # need to work on this plot plot(delta[order(delta)],w[order(de...
/DP Examples/4. Stick Breaking method.R
no_license
anthonykeys/Survival-Project
R
false
false
833
r
# Stick Breaking # make grid? num.breaks = 1000 alpha = 20 z = rbeta(num.breaks,1,alpha) w = numeric(num.breaks) for (i in 1:num.breaks) { w[i] = ifelse(i==1, z[i], z[i]*prod((1-z)[1:(i-1)])) } # Using N(0,1) from slides delta = rnorm(num.breaks, 0,1) # need to work on this plot plot(delta[order(delta)],w[order(de...
library(data.table) library(tokenizers) library(tm) library(RtextminerPkg) # Define a character vector of length 1: song_txt <- paste0("How many roads must a man walk down\n", "Before you call him a man?\n", "How many seas must a white dove sail\n", "Before she sleeps i...
/demos/tokenize_text_demo_1.R
permissive
deandevl/RtextminerPkg
R
false
false
2,636
r
library(data.table) library(tokenizers) library(tm) library(RtextminerPkg) # Define a character vector of length 1: song_txt <- paste0("How many roads must a man walk down\n", "Before you call him a man?\n", "How many seas must a white dove sail\n", "Before she sleeps i...
setwd("/users/Kathleen/Desktop/Website/Kathleenkt.github.io") rmarkdown::render_site()
/build_site.R
no_license
KathleenKT/Kathleenkt.github.io
R
false
false
87
r
setwd("/users/Kathleen/Desktop/Website/Kathleenkt.github.io") rmarkdown::render_site()
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tree_rearrangement.R \name{MakeTreeBinary} \alias{MakeTreeBinary} \title{Generate binary tree by collapsing polytomies} \usage{ MakeTreeBinary(tree) } \arguments{ \item{tree}{A tree of class \code{\link[ape:read.tree]{phylo}}.} } \value{ \cod...
/man/MakeTreeBinary.Rd
no_license
ms609/TreeTools
R
false
true
1,675
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tree_rearrangement.R \name{MakeTreeBinary} \alias{MakeTreeBinary} \title{Generate binary tree by collapsing polytomies} \usage{ MakeTreeBinary(tree) } \arguments{ \item{tree}{A tree of class \code{\link[ape:read.tree]{phylo}}.} } \value{ \cod...
#' #' @title Generates a matrix with a minimum and maximum value, for two numerical vector #' @description This function used by another function to plot a heatmap graph. #' @details the minumum and maximum values are potentially disclosive particularly in the presence #' of 'outliers'. However although this function ...
/R/ag.MinMax.ds.R
no_license
datashield/ag.dev.sv
R
false
false
1,831
r
#' #' @title Generates a matrix with a minimum and maximum value, for two numerical vector #' @description This function used by another function to plot a heatmap graph. #' @details the minumum and maximum values are potentially disclosive particularly in the presence #' of 'outliers'. However although this function ...
### 1. Functional forms and their temperature derivatives (d_...) briere<-function(t, c, Tm, T0){ b=c() for (i in 1:length(t)) { if(t[i]>T0 && t[i]<Tm){ b[i]<-(c*t[i]*(t[i]-T0)*sqrt(Tm-t[i])) } else {b[i]<-0} } b } d_briere<-function(t, c, Tm, T0){ b=c() for (i in 1:length(t)) { if (t[i]>T0 &&...
/temp_deriv_functions.R
no_license
dpweikel/VBDProject
R
false
false
3,114
r
### 1. Functional forms and their temperature derivatives (d_...) briere<-function(t, c, Tm, T0){ b=c() for (i in 1:length(t)) { if(t[i]>T0 && t[i]<Tm){ b[i]<-(c*t[i]*(t[i]-T0)*sqrt(Tm-t[i])) } else {b[i]<-0} } b } d_briere<-function(t, c, Tm, T0){ b=c() for (i in 1:length(t)) { if (t[i]>T0 &&...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_map_state} \alias{fars_map_state} \title{Map Years Fatal Accidents onto State Map} \usage{ fars_map_state(state.num, year) } \arguments{ \item{state.num}{Numeric, integer or numeric/integer string corresponding wit...
/man/fars_map_state.Rd
no_license
tgadamson-au/fars
R
false
true
806
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_map_state} \alias{fars_map_state} \title{Map Years Fatal Accidents onto State Map} \usage{ fars_map_state(state.num, year) } \arguments{ \item{state.num}{Numeric, integer or numeric/integer string corresponding wit...
library(rgr) ### Name: gx.summary2 ### Title: Display a ten-line Summary Statistics Report ### Aliases: gx.summary2 ### Keywords: univar ### ** Examples ## Make test data available data(kola.o) attach(kola.o) ## Generates an initial display gx.summary2(Cu) ## Provide a more informative display gx.summary2(Cu, xna...
/data/genthat_extracted_code/rgr/examples/gx.summary2.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
407
r
library(rgr) ### Name: gx.summary2 ### Title: Display a ten-line Summary Statistics Report ### Aliases: gx.summary2 ### Keywords: univar ### ** Examples ## Make test data available data(kola.o) attach(kola.o) ## Generates an initial display gx.summary2(Cu) ## Provide a more informative display gx.summary2(Cu, xna...
Problem Statement: The leaf dataset downloaded form UCI machine learning repository comprises of leaves from almost 40 different plant species, and has 14 numerical attributes describing each leaf. Aim of the R-script is to predict to which species they belong using two strategies namely, Random Forests(rf) and Gra...
/caret2.R
no_license
Aishwariya-Talathi/R-Programming
R
false
false
5,701
r
Problem Statement: The leaf dataset downloaded form UCI machine learning repository comprises of leaves from almost 40 different plant species, and has 14 numerical attributes describing each leaf. Aim of the R-script is to predict to which species they belong using two strategies namely, Random Forests(rf) and Gra...
require(Matrix) require(irlba) # setClass("dtm", representation(pointer = "externalptr")) setClass("dtm", representation(idf = "numeric", d.len = "integer"), contains = "dgCMatrix") # # helper # .dtm_method <- function(name) { # paste0(name, '_dtm') # } # # # syntactic sugar to allow object$method( ... ) # setMet...
/src/R/R-package/R/dtm.R
no_license
hack1nt0/nlp-cuda
R
false
false
5,578
r
require(Matrix) require(irlba) # setClass("dtm", representation(pointer = "externalptr")) setClass("dtm", representation(idf = "numeric", d.len = "integer"), contains = "dgCMatrix") # # helper # .dtm_method <- function(name) { # paste0(name, '_dtm') # } # # # syntactic sugar to allow object$method( ... ) # setMet...
library(RcppHMM) ### Name: initPHMM ### Title: Random Initialization for a Hidden Markov Model with emissions ### modeled as discrete variables ### Aliases: initPHMM ### Keywords: initialization ### ** Examples n <- 2 model <- initPHMM(n) print(model)
/data/genthat_extracted_code/RcppHMM/examples/initPHMM.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
267
r
library(RcppHMM) ### Name: initPHMM ### Title: Random Initialization for a Hidden Markov Model with emissions ### modeled as discrete variables ### Aliases: initPHMM ### Keywords: initialization ### ** Examples n <- 2 model <- initPHMM(n) print(model)
## Two funtions cache the inverse of a matrix ## This function creates a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULL } get <- function() x setInverse <- function(solveMatrix) in...
/cachematrix.R
no_license
HUDongpin/ProgrammingAssignment2
R
false
false
838
r
## Two funtions cache the inverse of a matrix ## This function creates a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULL } get <- function() x setInverse <- function(solveMatrix) in...
#' Replace term ID names of vector/array with full term names #' #' @template ontology #' @param x Vector/array named by term IDs #' @export full_names <- function(ontology, x) { if (is.array(x)) dimnames(x) <- lapply(dimnames(x), function(i) ontology$name[i]) else names(x) <- ontology$name[names(x)] x } #' Ge...
/SimReg/R/plots.R
no_license
ingted/R-Examples
R
false
false
12,986
r
#' Replace term ID names of vector/array with full term names #' #' @template ontology #' @param x Vector/array named by term IDs #' @export full_names <- function(ontology, x) { if (is.array(x)) dimnames(x) <- lapply(dimnames(x), function(i) ontology$name[i]) else names(x) <- ontology$name[names(x)] x } #' Ge...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/versions.R \name{versions} \alias{versions} \alias{dryad_versions} \alias{dryad_versions_files} \alias{dryad_versions_download} \title{Get a dataset version by version ID} \usage{ dryad_versions(ids, ...) dryad_versions_files(ids, ...) drya...
/man/versions.Rd
permissive
ropensci/rdryad
R
false
true
890
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/versions.R \name{versions} \alias{versions} \alias{dryad_versions} \alias{dryad_versions_files} \alias{dryad_versions_download} \title{Get a dataset version by version ID} \usage{ dryad_versions(ids, ...) dryad_versions_files(ids, ...) drya...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/powerset.R \docType{data} \name{statistics} \alias{statistics} \title{List of available statistics in \code{similarity} The data object \code{statistics} contains a list of the available for convenience.} \format{ A list of two character vect...
/man/statistics.Rd
permissive
muriteams/similR
R
false
true
577
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/powerset.R \docType{data} \name{statistics} \alias{statistics} \title{List of available statistics in \code{similarity} The data object \code{statistics} contains a list of the available for convenience.} \format{ A list of two character vect...
## ' Probability for a strategy of being a Nash Equilibrium by simulation ## ' @title Simulated Pnash probability ## ' @param s strategy considered ## ' @param integcontrol is a list containing: \code{integ.pts}, a [npts x dim] matrix defining the grid, ## ' \code{expanded.indices} a matrix containing the indices of th...
/R/crit_PNash.R
no_license
vpicheny/GPGame
R
false
false
8,822
r
## ' Probability for a strategy of being a Nash Equilibrium by simulation ## ' @title Simulated Pnash probability ## ' @param s strategy considered ## ' @param integcontrol is a list containing: \code{integ.pts}, a [npts x dim] matrix defining the grid, ## ' \code{expanded.indices} a matrix containing the indices of th...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
/r/R/expression.R
permissive
vreuter/arrow
R
false
false
7,564
r
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
args <- commandArgs() tissue <- args[6] tissue_samplesize <- args[7] eqtl_results = read.table(gzfile(paste("/data/NHLBI_BCB/Fayaz/21-GTEx-data/09-fastQTL_threaded-FS/",tissue,"/",tissue_samplesize,".subset.GTEx.subset.MAF0.05.FINAL.win.500000.bp.perm.0.cis.nominal.threaded.eqtl.allpairs.txt.gz",sep="")), header=T) ...
/04-eQTL_analysis/02-fastQTL/calculate_FDR.R
no_license
GenomicsNX/lncRNAKB
R
false
false
640
r
args <- commandArgs() tissue <- args[6] tissue_samplesize <- args[7] eqtl_results = read.table(gzfile(paste("/data/NHLBI_BCB/Fayaz/21-GTEx-data/09-fastQTL_threaded-FS/",tissue,"/",tissue_samplesize,".subset.GTEx.subset.MAF0.05.FINAL.win.500000.bp.perm.0.cis.nominal.threaded.eqtl.allpairs.txt.gz",sep="")), header=T) ...
## ----global_options----------------------------------------------------------- knitr::opts_chunk$set(comment = NA) ## ----------------------------------------------------------------------------- con <- url("http://www.finley-lab.com/files/data/ZF_trees.gz") load(con) close(con) rm(con) ls() ## ------------------...
/exercises/ex3/Zurichberg/exercise_3.R
no_license
anhnguyendepocen/FOR-STT875
R
false
false
3,913
r
## ----global_options----------------------------------------------------------- knitr::opts_chunk$set(comment = NA) ## ----------------------------------------------------------------------------- con <- url("http://www.finley-lab.com/files/data/ZF_trees.gz") load(con) close(con) rm(con) ls() ## ------------------...
# scripts to download tides, temperatures, etc. # from NOAA USGS and SFWMD gauges # Daniel Slone, Research Ecologist, USGS # dslone@usgs.gov # It's a work in progress! rm(list=ls()) setwd("~/R/Tides") # Library calls ----------------------------------------------------------- library(data.table) # data...
/get_water_data_2020.11.19.R
no_license
dhslone/R-snippets
R
false
false
22,262
r
# scripts to download tides, temperatures, etc. # from NOAA USGS and SFWMD gauges # Daniel Slone, Research Ecologist, USGS # dslone@usgs.gov # It's a work in progress! rm(list=ls()) setwd("~/R/Tides") # Library calls ----------------------------------------------------------- library(data.table) # data...
testlist <- list(hi = 0, lo = 1.48219693752374e-323, mu = 0, sig = 0) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610046858-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
126
r
testlist <- list(hi = 0, lo = 1.48219693752374e-323, mu = 0, sig = 0) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
#' Lineup stats #' #' @param year e.g. 2015 for 2014-15 season #' @param players Number of players to get lineup stats on (2-5) #' @param type 'Advanced' #' @param date.from starting date #' @param date.to ending date #' @param team.ids Optional dataframe of team.ids #' @return data frame of stats #' @keywords lineup ...
/R/GetLineupStats.R
no_license
ccagrawal/sportsTools
R
false
false
1,770
r
#' Lineup stats #' #' @param year e.g. 2015 for 2014-15 season #' @param players Number of players to get lineup stats on (2-5) #' @param type 'Advanced' #' @param date.from starting date #' @param date.to ending date #' @param team.ids Optional dataframe of team.ids #' @return data frame of stats #' @keywords lineup ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spectral.R \name{spec_clust} \alias{spec_clust} \title{Spectral clustering (fast)} \usage{ spec_clust( A, K, type = "lap", tau = 0.25, nstart = 20, niter = 10, ignore_first_col = F ) } \arguments{ \item{A}{Adjacency matrix (n x ...
/man/spec_clust.Rd
permissive
lorry-ruiluo/nett
R
false
true
697
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spectral.R \name{spec_clust} \alias{spec_clust} \title{Spectral clustering (fast)} \usage{ spec_clust( A, K, type = "lap", tau = 0.25, nstart = 20, niter = 10, ignore_first_col = F ) } \arguments{ \item{A}{Adjacency matrix (n x ...
# This is the server logic for a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) shinyServer(function(input, output) { #################### Datos output$OUTdatos=DT::renderDataTable(creditos, filter='top') #############...
/server.R
no_license
AlvaroSanchez91/Shiny_app
R
false
false
3,464
r
# This is the server logic for a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) shinyServer(function(input, output) { #################### Datos output$OUTdatos=DT::renderDataTable(creditos, filter='top') #############...
#' nplots_scatter #' : Generate scatter plots using ggplot2 #' #' This function takes your plot arguments like the data, aesthetics, plot labels, desired layers and creates a scatter plot for you using ggplot2. You don't have to worry about writing a bunch of lines of code. This function takes care ofthat for you! #' #...
/nplots/R/nplots_scatter.R
no_license
STAT545-UBC-hw-2018-19/hw07-rasiimwe
R
false
false
2,666
r
#' nplots_scatter #' : Generate scatter plots using ggplot2 #' #' This function takes your plot arguments like the data, aesthetics, plot labels, desired layers and creates a scatter plot for you using ggplot2. You don't have to worry about writing a bunch of lines of code. This function takes care ofthat for you! #' #...
# Revisiting the Song Knowledge Study I want to return to our Song Knowledge study and the issue we have with heteroscedasticity. As mentioned in class and earlier in this guide, I would recommend a variance stabilizing transformation. Something to note here is that figuring out the appropriate transformation can be a...
/writingReports/scrapes_transformingResponse.R
no_license
neilhatfield/STAT461
R
false
false
7,218
r
# Revisiting the Song Knowledge Study I want to return to our Song Knowledge study and the issue we have with heteroscedasticity. As mentioned in class and earlier in this guide, I would recommend a variance stabilizing transformation. Something to note here is that figuring out the appropriate transformation can be a...
Week 3 Quiz 5/5 questions correct Quiz passed! ------------------ 1. Take a look at the 'iris' dataset that comes with R. The data can be loaded with the code: library(datasets) data(iris) A description of the dataset can be found by running ?iris There will be an object called 'iris' in your workspace. In this dataset...
/R-Programming/Week-3/Quiz
no_license
cbirole/coursera
R
false
false
3,132
Week 3 Quiz 5/5 questions correct Quiz passed! ------------------ 1. Take a look at the 'iris' dataset that comes with R. The data can be loaded with the code: library(datasets) data(iris) A description of the dataset can be found by running ?iris There will be an object called 'iris' in your workspace. In this dataset...
#' Interactive interface to ggplot2 #' #' Provides a menu selection system (via \code{manipulate}) so that the variables #' for different aspects of a plot can be selected interactively. The \code{ggplot2} #' command for generating the plot currently being displayed is copied to the console, #' whence it can be copied...
/R/graphicsHelpers.R
no_license
nmorrow/DataComputing
R
false
false
10,828
r
#' Interactive interface to ggplot2 #' #' Provides a menu selection system (via \code{manipulate}) so that the variables #' for different aspects of a plot can be selected interactively. The \code{ggplot2} #' command for generating the plot currently being displayed is copied to the console, #' whence it can be copied...
library(tidyverse) library(magrittr) library(readxl) library(ggmap) library(shiny) library(leaflet) library(maps) library(htmlwidgets) # To save the map as a web page. # data = read.csv("tmphbl23vi6.csv") # # # data %<>% filter(YEAR == 2019) # write.csv(data,"data.csv") data = read.csv("tmphbl23vi6.csv") %>% select(...
/DataScience in R/Mapping/map.R
no_license
ChuningYuan/R-connect-Server
R
false
false
7,960
r
library(tidyverse) library(magrittr) library(readxl) library(ggmap) library(shiny) library(leaflet) library(maps) library(htmlwidgets) # To save the map as a web page. # data = read.csv("tmphbl23vi6.csv") # # # data %<>% filter(YEAR == 2019) # write.csv(data,"data.csv") data = read.csv("tmphbl23vi6.csv") %>% select(...