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
#' Expand aggregated data #' Several datasets for the Bradley-Terry Model aggregate the number of wins for each player in a different column. #' The models we provide are intended to be used in a long format. A single result for each contest. #' This function expands datasets that have aggregated data into this long fo...
/fuzzedpackages/bpcs/R/bpc_data_transformation.R
permissive
akhikolla/testpackages
R
false
false
2,558
r
#' Expand aggregated data #' Several datasets for the Bradley-Terry Model aggregate the number of wins for each player in a different column. #' The models we provide are intended to be used in a long format. A single result for each contest. #' This function expands datasets that have aggregated data into this long fo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/codelists.R \name{export_definition_search} \alias{export_definition_search} \title{Exports definition searches to an excel file} \usage{ export_definition_search(definition_search, out_file) } \arguments{ \item{definition_search}{a ...
/man/export_definition_search.Rd
no_license
cran/rEHR
R
false
true
1,033
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/codelists.R \name{export_definition_search} \alias{export_definition_search} \title{Exports definition searches to an excel file} \usage{ export_definition_search(definition_search, out_file) } \arguments{ \item{definition_search}{a ...
#' @title Fuse learner with the bagging technique and oversampling for imbalancy correction. #' #' @description #' Fuses a classification learner for binary classification with an over-bagging method #' for imbalancy correction when we have strongly unequal class sizes. #' Creates a learner object, which can be #' used...
/R/OverBaggingWrapper.R
no_license
dickoa/mlr
R
false
false
3,439
r
#' @title Fuse learner with the bagging technique and oversampling for imbalancy correction. #' #' @description #' Fuses a classification learner for binary classification with an over-bagging method #' for imbalancy correction when we have strongly unequal class sizes. #' Creates a learner object, which can be #' used...
applyModel <- function(population, plpData, plpModel, calculatePerformance=T, databaseOutput = NULL, silent = F) { # check logger if(length(ParallelLogger::getLoggers())==0){ logger <- ParallelLog...
/R/applyModel.R
permissive
ABMI/PsychosisMultimodalValidation
R
false
false
5,668
r
applyModel <- function(population, plpData, plpModel, calculatePerformance=T, databaseOutput = NULL, silent = F) { # check logger if(length(ParallelLogger::getLoggers())==0){ logger <- ParallelLog...
\name{gsBinomialExact} \alias{gsBinomialExact} \alias{print.gsBinomialExact} \alias{plot.gsBinomialExact} \alias{binomialSPRT} \alias{plot.binomialSPRT} %\alias{gsBinomialPP} \alias{nBinomial1Sample} \title{3.4: One-Sample Binomial Routines} \description{ \code{gsBinomialExact} computes power/Type I error a...
/man/gsBinomialExact.Rd
no_license
richarddmorey/gsDesign
R
false
false
11,686
rd
\name{gsBinomialExact} \alias{gsBinomialExact} \alias{print.gsBinomialExact} \alias{plot.gsBinomialExact} \alias{binomialSPRT} \alias{plot.binomialSPRT} %\alias{gsBinomialPP} \alias{nBinomial1Sample} \title{3.4: One-Sample Binomial Routines} \description{ \code{gsBinomialExact} computes power/Type I error a...
##Plot3 setwd("~/Datasciencecoursera/ExData_Plotting1") library(data.table) ##Step 1: Load and Read file electric<-read.table("./household_power_consumption.txt",header=T,sep=";") View(electric) ##Step 2: Clean Data electric$Date<-as.Date(electric$Date,format="%d/%m/%Y") #change the date format View(electric) #view t...
/plot3.R
no_license
vcarreon/ExData_Plotting1
R
false
false
2,222
r
##Plot3 setwd("~/Datasciencecoursera/ExData_Plotting1") library(data.table) ##Step 1: Load and Read file electric<-read.table("./household_power_consumption.txt",header=T,sep=";") View(electric) ##Step 2: Clean Data electric$Date<-as.Date(electric$Date,format="%d/%m/%Y") #change the date format View(electric) #view t...
\name{maply} \alias{maply} \title{Call function with arguments in array or data frame, returning an array.} \usage{ maply(.data, .fun = NULL, ..., .expand = TRUE, .progress = "none", .parallel = FALSE) } \arguments{ \item{.data}{matrix or data frame to use as source of arguments} \item{.fun}{function to be...
/man/maply.Rd
no_license
vspinu/plyr
R
false
false
1,858
rd
\name{maply} \alias{maply} \title{Call function with arguments in array or data frame, returning an array.} \usage{ maply(.data, .fun = NULL, ..., .expand = TRUE, .progress = "none", .parallel = FALSE) } \arguments{ \item{.data}{matrix or data frame to use as source of arguments} \item{.fun}{function to be...
library(hexbin) library(ggplot2) library(plyr) library(reshape) library(hexbin) library(RColorBrewer) library(reshape) library(ggdendro) x <- "yea this works..." getFullPath <- function(projectPath){ paste(projectDir,projectPath,sep="/") } exportAsTable <- function(df, file){ write.table(df,file=file,quote=FALSE, row.n...
/analysis/rnaSeq/exprLib.R
no_license
adamwespiser/encode-manager
R
false
false
27,663
r
library(hexbin) library(ggplot2) library(plyr) library(reshape) library(hexbin) library(RColorBrewer) library(reshape) library(ggdendro) x <- "yea this works..." getFullPath <- function(projectPath){ paste(projectDir,projectPath,sep="/") } exportAsTable <- function(df, file){ write.table(df,file=file,quote=FALSE, row.n...
library(glmmTMB) ### Name: profile.glmmTMB ### Title: Compute likelihood profiles for a fitted model ### Aliases: profile.glmmTMB confint.profile.glmmTMB ### ** Examples ## Not run: ##D m1 <- glmmTMB(count~ mined + (1|site), ##D zi=~mined, family=poisson, data=Salamanders) ##D salamander_prof1 <- profile(m...
/data/genthat_extracted_code/glmmTMB/examples/profile.glmmTMB.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,065
r
library(glmmTMB) ### Name: profile.glmmTMB ### Title: Compute likelihood profiles for a fitted model ### Aliases: profile.glmmTMB confint.profile.glmmTMB ### ** Examples ## Not run: ##D m1 <- glmmTMB(count~ mined + (1|site), ##D zi=~mined, family=poisson, data=Salamanders) ##D salamander_prof1 <- profile(m...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 1.35807730621777e-312, 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(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615781259-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
348
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 1.35807730621777e-312, 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(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
#!/usr/bin/R # ----------------------------------------------------- # Plot modules from CHMM/other clustering with GWAS # 1. Plot the centers matrix with gwas # 2. Plot stats on gwas - amt of enrichment/depletion # 3. Associate gwas with cell types by enrichment # 4. Plot and order/cluster the adjacency matrix # ...
/plot_modules_with_gwas.R
no_license
hzaurzli/EPIMAP_ANALYSIS
R
false
false
8,448
r
#!/usr/bin/R # ----------------------------------------------------- # Plot modules from CHMM/other clustering with GWAS # 1. Plot the centers matrix with gwas # 2. Plot stats on gwas - amt of enrichment/depletion # 3. Associate gwas with cell types by enrichment # 4. Plot and order/cluster the adjacency matrix # ...
read_lines <- function(...) { if (requireNamespace("readr", quietly = TRUE)) { readr::read_lines(...) } else { readLines(...) } } write_lines <- function(...) { if (requireNamespace("readr", quietly = TRUE)) { readr::write_lines(...) } else { writeLines(...) } } stri_locate_first_fixed_no...
/R/suggested_speedups.R
no_license
jonocarroll/TeXCheckR
R
false
false
3,260
r
read_lines <- function(...) { if (requireNamespace("readr", quietly = TRUE)) { readr::read_lines(...) } else { readLines(...) } } write_lines <- function(...) { if (requireNamespace("readr", quietly = TRUE)) { readr::write_lines(...) } else { writeLines(...) } } stri_locate_first_fixed_no...
\name{valueMat} \alias{valueMat} \title{Create a binary matrix from a list of values} \usage{ valueMat(listOfValues, fill = NA) } \arguments{ \item{listOfValues}{A \code{list} of input values to be inserted in a matrix.} \item{fill}{The initializing fill value for the empty matrix.} } \value{ A \code{matri...
/man/valueMat.Rd
no_license
Jivan517/splitstackshape
R
false
false
934
rd
\name{valueMat} \alias{valueMat} \title{Create a binary matrix from a list of values} \usage{ valueMat(listOfValues, fill = NA) } \arguments{ \item{listOfValues}{A \code{list} of input values to be inserted in a matrix.} \item{fill}{The initializing fill value for the empty matrix.} } \value{ A \code{matri...
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(7.28934196280358e-304, NaN, -9.53116278721537e-150, NaN, NaN, -8.98846567424643e+307, 9.0707523845019e-97, 2.8527919535453e+180, 5.25176744052243e-90, NaN, 8.0712325733939e-65, 2.31320649354895e-23, NaN, 7.06238442689523e-304, NaN, NaN, NaN, NaN, Na...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/libFuzzer_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1612735475-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
712
r
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(7.28934196280358e-304, NaN, -9.53116278721537e-150, NaN, NaN, -8.98846567424643e+307, 9.0707523845019e-97, 2.8527919535453e+180, 5.25176744052243e-90, NaN, 8.0712325733939e-65, 2.31320649354895e-23, NaN, 7.06238442689523e-304, NaN, NaN, NaN, NaN, Na...
suppressPackageStartupMessages(library(EpiModelHIV)) rm(list = ls()) #load("scenarios/rdiffhet/est/nwstats.rda") load("nwstats.rda") # 1. Main Model ----------------------------------------------------------- # Initialize network nw.main <- base_nw.mard(st) # Assign degree nw.main <- assign_degree(nw.main, deg.typ...
/scripts/CCR5delta32/02.estim.R
permissive
wangdafacai/MSMRaceDisparities_LancetHIV2017
R
false
false
3,511
r
suppressPackageStartupMessages(library(EpiModelHIV)) rm(list = ls()) #load("scenarios/rdiffhet/est/nwstats.rda") load("nwstats.rda") # 1. Main Model ----------------------------------------------------------- # Initialize network nw.main <- base_nw.mard(st) # Assign degree nw.main <- assign_degree(nw.main, deg.typ...
#!/urs/bin/env Rscript # GSEA R脚本 library(clusterProfiler)
/GSEA.R
no_license
the8thday/16s_plot_R
R
false
false
67
r
#!/urs/bin/env Rscript # GSEA R脚本 library(clusterProfiler)
\name{plot.BootTOS} \alias{plot.BootTOS} %- Also NEED an '\alias' for EACH other topic documented here. \title{Plots results of a Bootstrap Test of Stationarity } \description{Produces Bootstrap simulation result as a histogram with a vertical line indicating the test statistic computed on the actual data. } \usage...
/man/plot.BootTOS.Rd
no_license
cran/costat
R
false
false
1,226
rd
\name{plot.BootTOS} \alias{plot.BootTOS} %- Also NEED an '\alias' for EACH other topic documented here. \title{Plots results of a Bootstrap Test of Stationarity } \description{Produces Bootstrap simulation result as a histogram with a vertical line indicating the test statistic computed on the actual data. } \usage...
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/mepstrends/hc_use/json/code/r/totEXP__insurance__employed__.r
permissive
RandomCriticalAnalysis/MEPS-summary-tables
R
false
false
3,006
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
schema <- function(session) { session <- unwrap_session(session) shiny::isolate(session$input[["shinytableau-schema"]]) } #' Get info about available worksheets in this Tableau dashboard #' #' For advanced use only; most shinytableau extensions should use the #' [choose_data()] module to allow the user to specify...
/R/data-accessors.R
permissive
rstudio/shinytableau
R
false
false
21,136
r
schema <- function(session) { session <- unwrap_session(session) shiny::isolate(session$input[["shinytableau-schema"]]) } #' Get info about available worksheets in this Tableau dashboard #' #' For advanced use only; most shinytableau extensions should use the #' [choose_data()] module to allow the user to specify...
# this file defines the class 'antsMatrix' and its associated methods # C++ type used to represent an element of the matrix pointer to the actual image # of C++ type 'itk::image< pixeltype , dimension >::Pointer' #' @rdname antsMatrix_class #' @title antsMatrix Class #' @description An S4 class to hold an antsMatrix ...
/R/antsMatrix.R
permissive
dorianps/ANTsRCore
R
false
false
3,997
r
# this file defines the class 'antsMatrix' and its associated methods # C++ type used to represent an element of the matrix pointer to the actual image # of C++ type 'itk::image< pixeltype , dimension >::Pointer' #' @rdname antsMatrix_class #' @title antsMatrix Class #' @description An S4 class to hold an antsMatrix ...
### Text QC file headers .qcTextHeaderT = {paste(sep = "\t", "Sample", "# BAMs", "Total reads", "Reads aligned\tRA % of total", "Reads after filter\tRAF % of aligned", "Reads removed as duplicate\tRRAD % of aligned", "Reads used for coverage\tRUFC % of aligned", "Forward strand (%)", ...
/R/rw2collectqc.r
no_license
xtmgah/ramwas
R
false
false
16,871
r
### Text QC file headers .qcTextHeaderT = {paste(sep = "\t", "Sample", "# BAMs", "Total reads", "Reads aligned\tRA % of total", "Reads after filter\tRAF % of aligned", "Reads removed as duplicate\tRRAD % of aligned", "Reads used for coverage\tRUFC % of aligned", "Forward strand (%)", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coord.R \name{SurveyData.Assign} \alias{SurveyData.Assign} \title{Assign to SurveyData environment} \usage{ SurveyData.Assign(ObjectName, ObjectValue = NA, DeparseObjectName = FALSE) } \arguments{ \item{ObjectName}{The variable name to assign...
/man/SurveyData.Assign.Rd
no_license
nathanesau-academic/coord
R
false
true
661
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coord.R \name{SurveyData.Assign} \alias{SurveyData.Assign} \title{Assign to SurveyData environment} \usage{ SurveyData.Assign(ObjectName, ObjectValue = NA, DeparseObjectName = FALSE) } \arguments{ \item{ObjectName}{The variable name to assign...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/thin.R \name{thin} \alias{thin} \title{Thinning Posterior Draws} \usage{ thin(object, thin = 5) } \arguments{ \item{object}{an object of class \code{"bvar"} or \code{"bvec"}.} \item{thin}{an integer specifying the thinning interval between s...
/man/thin.Rd
no_license
skycaptainleo/bvartools
R
false
true
3,429
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/thin.R \name{thin} \alias{thin} \title{Thinning Posterior Draws} \usage{ thin(object, thin = 5) } \arguments{ \item{object}{an object of class \code{"bvar"} or \code{"bvec"}.} \item{thin}{an integer specifying the thinning interval between s...
rvgamma <- function (n=1, shape, rate = 1, scale = 1/rate) { rvvapply(stats:::rgamma, n.=n, shape=shape, scale=scale) }
/rv/R/rvgamma.R
no_license
ingted/R-Examples
R
false
false
127
r
rvgamma <- function (n=1, shape, rate = 1, scale = 1/rate) { rvvapply(stats:::rgamma, n.=n, shape=shape, scale=scale) }
library(data.table) library(tidyverse) library(magrittr) library(openxlsx) options(stringsAsFactors = F) ########### import dmp results ################## f_pfoa_DMP <- fread("/home/guanshim/Documents/gitlab/ECCHO_github/DataProcessed/genomewide_chem/2019-03-07_f_pfoa__CpGs_withChem.csv", header = T) f_pfos_DMP <- frea...
/Code/6_3_otherstudies_check.R
no_license
Guannan-Shen/ECCHO_github
R
false
false
2,537
r
library(data.table) library(tidyverse) library(magrittr) library(openxlsx) options(stringsAsFactors = F) ########### import dmp results ################## f_pfoa_DMP <- fread("/home/guanshim/Documents/gitlab/ECCHO_github/DataProcessed/genomewide_chem/2019-03-07_f_pfoa__CpGs_withChem.csv", header = T) f_pfos_DMP <- frea...
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(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), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ...
/meteor/inst/testfiles/ET0_PenmanMonteith/AFL_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1615841721-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
826
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(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), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ...
testlist <- list(bytes1 = c(-1414812757L, 0L, 0L, 0L), pmutation = 0) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
/mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612887581-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
133
r
testlist <- list(bytes1 = c(-1414812757L, 0L, 0L, 0L), pmutation = 0) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
#----> This is an All In One Presentation and Interactive Customer Data Analysis Application----------- # Badass function that checks to see if the package is installed, installs it or loads the library...Totally Awesome usePackage <- function(p) { if (!is.element(p, installed.packages()[,1])) install.packages...
/power.R
no_license
x78163/power
R
false
false
52,025
r
#----> This is an All In One Presentation and Interactive Customer Data Analysis Application----------- # Badass function that checks to see if the package is installed, installs it or loads the library...Totally Awesome usePackage <- function(p) { if (!is.element(p, installed.packages()[,1])) install.packages...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimateCellTypeFromProjection.R \name{estimateCellTypeFromProjection} \alias{estimateCellTypeFromProjection} \title{Estimate the most likely cell type from the projection to the reference panel} \usage{ estimateCellTypeFromProjection(rca.obj...
/man/estimateCellTypeFromProjection.Rd
no_license
leprohonmalo/RCAv2
R
false
true
950
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimateCellTypeFromProjection.R \name{estimateCellTypeFromProjection} \alias{estimateCellTypeFromProjection} \title{Estimate the most likely cell type from the projection to the reference panel} \usage{ estimateCellTypeFromProjection(rca.obj...
install.packages("car") library(car) kt_reg <- kt %>% select(nps, digital_exp, willingess_to_pay, keep_indie, aligned_values, quality_news, daily_routine, replaceability, mission, helps_job, quality_news, ...
/kt.R
no_license
jekinsmythFT/drl
R
false
false
2,289
r
install.packages("car") library(car) kt_reg <- kt %>% select(nps, digital_exp, willingess_to_pay, keep_indie, aligned_values, quality_news, daily_routine, replaceability, mission, helps_job, quality_news, ...
#----------------------- #KFW 1 Cross-Sectional Model #Treatment: Early Demarcated through PPTAL by April 2001 (vs. demarcated after April 2001) #Outcome: Median NDVI change in level from 1995-2001, Median NDVI change in level from 2001-2010 #Using MatchIt package instead of SCI #----------------------- library(devto...
/KFW_CrossSectionResults_Median_Pre2001_MatchIt.R
no_license
aiddata/KFW_Amazon
R
false
false
9,919
r
#----------------------- #KFW 1 Cross-Sectional Model #Treatment: Early Demarcated through PPTAL by April 2001 (vs. demarcated after April 2001) #Outcome: Median NDVI change in level from 1995-2001, Median NDVI change in level from 2001-2010 #Using MatchIt package instead of SCI #----------------------- library(devto...
## Put comments here that give an overall description of what your ## functions do ## makeCacheMatrix function takes a single argument x ## Return value: a list consisting of four methods ## set: set the value of x, also resetting cached inverse ## get: retrieve the value of x ## setinverse: set the cached inverse ##...
/cachematrix.R
no_license
kuangchen/ProgrammingAssignment2
R
false
false
1,163
r
## Put comments here that give an overall description of what your ## functions do ## makeCacheMatrix function takes a single argument x ## Return value: a list consisting of four methods ## set: set the value of x, also resetting cached inverse ## get: retrieve the value of x ## setinverse: set the cached inverse ##...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility_functions.R \name{head.hexlattice} \alias{head.hexlattice} \title{Return the first rows of a hexlattice data frame} \usage{ \method{head}{hexlattice}(x, n = 6L, geometry = FALSE, ...) } \arguments{ \item{x}{A \code{hexlattice} object....
/man/head.hexlattice.Rd
permissive
mbedward/sfhextools
R
false
true
758
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility_functions.R \name{head.hexlattice} \alias{head.hexlattice} \title{Return the first rows of a hexlattice data frame} \usage{ \method{head}{hexlattice}(x, n = 6L, geometry = FALSE, ...) } \arguments{ \item{x}{A \code{hexlattice} object....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{initDb} \alias{initDb} \title{initDb - Initialization of the package so the GTEx networks can be used with CoExpNets} \usage{ initDb(mandatory = F) } \arguments{ \item{mandatory}{If this parameter is `TRUE` then the networks will...
/man/initDb.Rd
permissive
juanbot/CoExpGTEx
R
false
true
498
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{initDb} \alias{initDb} \title{initDb - Initialization of the package so the GTEx networks can be used with CoExpNets} \usage{ initDb(mandatory = F) } \arguments{ \item{mandatory}{If this parameter is `TRUE` then the networks will...
library(optional) ### Name: match_with ### Title: Match With ### Aliases: match_with ### ** Examples library(magrittr) a <- 5 match_with(a, . %>% option(.), paste, none, function() "Error!" ) ## [1] 5 match_with(a, 1, function() "Matched exact value", list(2, 3, 4), function...
/data/genthat_extracted_code/optional/examples/match_with.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
461
r
library(optional) ### Name: match_with ### Title: Match With ### Aliases: match_with ### ** Examples library(magrittr) a <- 5 match_with(a, . %>% option(.), paste, none, function() "Error!" ) ## [1] 5 match_with(a, 1, function() "Matched exact value", list(2, 3, 4), function...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_objects.R \name{Site} \alias{Site} \title{Site Object} \usage{ Site(accountId = NULL, approved = NULL, directorySiteId = NULL, directorySiteIdDimensionValue = NULL, id = NULL, idDimensionValue = NULL, keyName = NULL, name = N...
/googledfareportingv24.auto/man/Site.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,221
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_objects.R \name{Site} \alias{Site} \title{Site Object} \usage{ Site(accountId = NULL, approved = NULL, directorySiteId = NULL, directorySiteIdDimensionValue = NULL, id = NULL, idDimensionValue = NULL, keyName = NULL, name = N...
/* * tkMacMenu.r -- * * Resources needed by menus. * * This file also contains the icons 'SICN' used by the menu code * in menu items. * * Copyright (c) 1997 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRA...
/extras/src/tk/mac/tkMacMenu.r
permissive
muschellij2/FSL6.0.0
R
false
false
1,126
r
/* * tkMacMenu.r -- * * Resources needed by menus. * * This file also contains the icons 'SICN' used by the menu code * in menu items. * * Copyright (c) 1997 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRA...
#PLOT 4 fileUrl="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" if(!file.exists("data")){ dir.create("data") } temp=tempfile() setInternet2(use=TRUE) #downloading file and unzip download.file(fileUrl,temp, method="internal") unzip(temp,exdir="./data",unzip="internal") #cl...
/plot4.R
no_license
fbarbalato/Exploratory-Data
R
false
false
2,132
r
#PLOT 4 fileUrl="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" if(!file.exists("data")){ dir.create("data") } temp=tempfile() setInternet2(use=TRUE) #downloading file and unzip download.file(fileUrl,temp, method="internal") unzip(temp,exdir="./data",unzip="internal") #cl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/labels.eoa.r \name{labels.eoar} \alias{labels.eoar} \title{labels.eoar - Extract parameter labels from \code{eoar} objects.} \usage{ \method{labels}{eoar}(obj, type = "coef") } \arguments{ \item{obj}{An \code{eoar} model object. See \code{\l...
/man/labels.eoar.Rd
permissive
atredennick/EoAR
R
false
true
1,834
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/labels.eoa.r \name{labels.eoar} \alias{labels.eoar} \title{labels.eoar - Extract parameter labels from \code{eoar} objects.} \usage{ \method{labels}{eoar}(obj, type = "coef") } \arguments{ \item{obj}{An \code{eoar} model object. See \code{\l...
##' @title ##' @param map map to cut the temperatures down to ##' @param type temperature type, "low", "avg", or "high". Default is "low". ##' @return ##' @author Adam Sparks & Nicholas Tierney ##' @export create_temp <- function(map, date) { temperatures <- fetch_temperature(date) map_mask <- raster::mask(temper...
/R/create_temp.R
no_license
anhnguyendepocen/monash-colour-in-graphics
R
false
false
982
r
##' @title ##' @param map map to cut the temperatures down to ##' @param type temperature type, "low", "avg", or "high". Default is "low". ##' @return ##' @author Adam Sparks & Nicholas Tierney ##' @export create_temp <- function(map, date) { temperatures <- fetch_temperature(date) map_mask <- raster::mask(temper...
testlist <- list(x = c(-721944577L, -1610621056L, 6385253L, NA, 0L, 1048618L, 1283446298L), y = integer(0)) result <- do.call(diffrprojects:::dist_mat_absolute,testlist) str(result)
/diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609962330-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
182
r
testlist <- list(x = c(-721944577L, -1610621056L, 6385253L, NA, 0L, 1048618L, 1283446298L), y = integer(0)) result <- do.call(diffrprojects:::dist_mat_absolute,testlist) str(result)
testlist <- list(hi = 0, lo = 5.45406001361907e-311, mu = 0, sig = 0) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610046384-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
126
r
testlist <- list(hi = 0, lo = 5.45406001361907e-311, mu = 0, sig = 0) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
##This assignment inverses a matrix in an efficient manner using caching. ## This function creates a list of four elements, each of which are a function ## set sets the value of the matrix ## get gets the value of the matrix ## setInverse inverts the matrix, but is only ever called by the cacheSolve function ## getIn...
/cachematrix.R
no_license
millikenrobert/ProgrammingAssignment2
R
false
false
1,262
r
##This assignment inverses a matrix in an efficient manner using caching. ## This function creates a list of four elements, each of which are a function ## set sets the value of the matrix ## get gets the value of the matrix ## setInverse inverts the matrix, but is only ever called by the cacheSolve function ## getIn...
####################################################################### # # This script simulate 100,000 genotype data for 35000 unrelated individuals # using uniform distribution of allele frequencies with MAF>1%. # Data output are in ped/fam format. # # Author: Valentin Hivert #######################################...
/Simulate_unrelatedInd_unlinkedMarkers.R
no_license
vhivert/NonAddVar-AJHG-2021
R
false
false
3,668
r
####################################################################### # # This script simulate 100,000 genotype data for 35000 unrelated individuals # using uniform distribution of allele frequencies with MAF>1%. # Data output are in ped/fam format. # # Author: Valentin Hivert #######################################...
testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170711e+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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_ro...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613104499-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
344
r
testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170711e+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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_ro...
leaps<-function(...) eleaps(...)
/R/leaps.R
no_license
cran/subselect
R
false
false
35
r
leaps<-function(...) eleaps(...)
# Gather in-lake chlorophyll and total phosphorus data # Vanern Lake # Read in datafile including temp, TP, chla #### data <- read.csv('./VanernLake/Staging Files/Vanern_Variables/Vanern_inlake_chem_Megrundet.csv') chla <- data # For simplicity of reusing code, name copy of 'data' as chla tp <- data # For simplicity o...
/VanernLake/Staging Files/gather_data.R
no_license
fscordo/SOS
R
false
false
3,238
r
# Gather in-lake chlorophyll and total phosphorus data # Vanern Lake # Read in datafile including temp, TP, chla #### data <- read.csv('./VanernLake/Staging Files/Vanern_Variables/Vanern_inlake_chem_Megrundet.csv') chla <- data # For simplicity of reusing code, name copy of 'data' as chla tp <- data # For simplicity o...
context("abar/regimes tests") n <- 50 W <- rnorm(n) C.binary <- rexpit(W) C <- BinaryToCensoring(is.uncensored = C.binary) A <- rexpit(W) Y <- rexpit(W+A) data <- data.frame(W, C, A, Y) test_that("logical abar is the same as numeric",{ r1 <- ltmle(data, Anodes="A", Cnodes="C", Ynodes="Y", abar=as.matrix(W > 0), es...
/tests/testthat/test-AbarAndRegimes.R
no_license
joshuaschwab/ltmle
R
false
false
3,970
r
context("abar/regimes tests") n <- 50 W <- rnorm(n) C.binary <- rexpit(W) C <- BinaryToCensoring(is.uncensored = C.binary) A <- rexpit(W) Y <- rexpit(W+A) data <- data.frame(W, C, A, Y) test_that("logical abar is the same as numeric",{ r1 <- ltmle(data, Anodes="A", Cnodes="C", Ynodes="Y", abar=as.matrix(W > 0), es...
#' #'@title Function to compare survey selectivity functions by year among several models #' #'@description This function compares survey selectivity functions by year #' among several models. #' #'@param objs - list of resLst objects or dataframe from call to \code{extractMDFR.Surveys.SelFcns} #'@param cast - formul...
/R/compareResults.Surveys.SelFcns.R
permissive
wStockhausen/rCompTCMs
R
false
false
5,921
r
#' #'@title Function to compare survey selectivity functions by year among several models #' #'@description This function compares survey selectivity functions by year #' among several models. #' #'@param objs - list of resLst objects or dataframe from call to \code{extractMDFR.Surveys.SelFcns} #'@param cast - formul...
#assignment03a.r for(var in 0:25) { print(var) }
/assignment03a.r
no_license
gibbydicenso/BIS-044-dicensogibby
R
false
false
52
r
#assignment03a.r for(var in 0:25) { print(var) }
## File for Initializing Project ## # Initialize subdirectories dir.create("code") dir.create("data") dir.create("images") dir.create("rawdata") dir.create("report") dir.create("resources") # Download data for champions url.champs <- 'https://www.ticketcity.com/nba/nba-finals-tickets/nba-finals-champions.html' dow...
/skeleton.R
no_license
ArmanMadani/Stat-133-Project
R
false
false
5,650
r
## File for Initializing Project ## # Initialize subdirectories dir.create("code") dir.create("data") dir.create("images") dir.create("rawdata") dir.create("report") dir.create("resources") # Download data for champions url.champs <- 'https://www.ticketcity.com/nba/nba-finals-tickets/nba-finals-champions.html' dow...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feature_plot.R \name{get_heatmap_color} \alias{get_heatmap_color} \title{Get a vector of colors for heatmap} \usage{ get_heatmap_color(palette) } \description{ Get a vector of colors for heatmap }
/man/get_heatmap_color.Rd
no_license
jeevanyue/PIVOT
R
false
true
276
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feature_plot.R \name{get_heatmap_color} \alias{get_heatmap_color} \title{Get a vector of colors for heatmap} \usage{ get_heatmap_color(palette) } \description{ Get a vector of colors for heatmap }
library(dplyr, warn.conflicts = F, quietly = T) library(purrr, warn.conflicts = F, quietly = T) library(tidyr, warn.conflicts = F, quietly = T) source("funs/do.cca.check.R") source("funs/p1.eval.R") source("funs/p1.eval.full.R") t <- readRDS("results/p1_mnar/p1_mnar_pc65_nobs100_do30_mu1.8_sd0.3_100k.rds") sum.pro...
/checks/check_100k.R
no_license
yuliasidi/wilson_newcombe
R
false
false
1,659
r
library(dplyr, warn.conflicts = F, quietly = T) library(purrr, warn.conflicts = F, quietly = T) library(tidyr, warn.conflicts = F, quietly = T) source("funs/do.cca.check.R") source("funs/p1.eval.R") source("funs/p1.eval.full.R") t <- readRDS("results/p1_mnar/p1_mnar_pc65_nobs100_do30_mu1.8_sd0.3_100k.rds") sum.pro...
### 1-D plots ### # continuous x <- rchisq(500, df=2) hist(x) hist(x, breaks = 30, col = 'grey50') colors() plot(density(x)) boxplot(x, horizontal = TRUE) par(pch = 16) boxplot(x, col = 'grey75') # categorical x <- sample(c('red','blue','green'), 500, replace = TRUE, prob = c(.5,.2,.3)) barplot( table(x) ) ...
/Week-1/graphics.R
no_license
rmyjong/mcb293s
R
false
false
4,331
r
### 1-D plots ### # continuous x <- rchisq(500, df=2) hist(x) hist(x, breaks = 30, col = 'grey50') colors() plot(density(x)) boxplot(x, horizontal = TRUE) par(pch = 16) boxplot(x, col = 'grey75') # categorical x <- sample(c('red','blue','green'), 500, replace = TRUE, prob = c(.5,.2,.3)) barplot( table(x) ) ...
# get fcc data from socrata # renata gerecke # 2021-06-26 library(tidyverse) library(httr) library(jsonlite) library(RSocrata) library(tictoc) app_token <- "2sC55bQkSqnsDPTcPqIyhD4Eb" paths <- c( jun20 = "https://opendata.fcc.gov/resource/ktav-pdj7.json", dec19 = "https://opendata.fcc.gov/resource/ws2a-amik.j...
/R/00A_getdata_fcc.R
no_license
mspp-data-studio-2021/broadband-access
R
false
false
977
r
# get fcc data from socrata # renata gerecke # 2021-06-26 library(tidyverse) library(httr) library(jsonlite) library(RSocrata) library(tictoc) app_token <- "2sC55bQkSqnsDPTcPqIyhD4Eb" paths <- c( jun20 = "https://opendata.fcc.gov/resource/ktav-pdj7.json", dec19 = "https://opendata.fcc.gov/resource/ws2a-amik.j...
################################################################################ # Author: Jerrison Li # Date: Friday, December 23, 2016 6:14:42 PM PST # Filename: # Version: 1.0 # Description: ################################################################################ library(dplyr) library(tidyr) #############...
/data_science_john_hopkins/Reproducible_Research/Week1/chapter_7_script.R
no_license
143Reige/Coursera
R
false
false
2,697
r
################################################################################ # Author: Jerrison Li # Date: Friday, December 23, 2016 6:14:42 PM PST # Filename: # Version: 1.0 # Description: ################################################################################ library(dplyr) library(tidyr) #############...
setwd("/datascience/projects/statisticallyfit/github/learningprogramming/R/RStats/learneconometrics/CarterHill_PrinciplesOfEconometrics/Chapter13_VARandVECmodels") rm(list=ls()) library(tsDyn) library(ggplot2) library(foreign) library(ggfortify) library(urca) library(vars) # Data from: http://www.principlesofeconometr...
/CarterHill_PrinciplesOfEconometrics/Chapter13_VARandVECmodels/exercise13.13.R
no_license
statisticallyfit/REconometrics
R
false
false
1,632
r
setwd("/datascience/projects/statisticallyfit/github/learningprogramming/R/RStats/learneconometrics/CarterHill_PrinciplesOfEconometrics/Chapter13_VARandVECmodels") rm(list=ls()) library(tsDyn) library(ggplot2) library(foreign) library(ggfortify) library(urca) library(vars) # Data from: http://www.principlesofeconometr...
e9bcfec101180ec0a2ce22798766f487 ctrl.e#1.a#3.E#128.A#48.c#.w#5.s#31.asp.qdimacs 5295 15358
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Amendola-Ricca-Truszczynski/wgrowing/ctrl.e#1.a#3.E#128.A#48.c#.w#5.s#31.asp/ctrl.e#1.a#3.E#128.A#48.c#.w#5.s#31.asp.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
91
r
e9bcfec101180ec0a2ce22798766f487 ctrl.e#1.a#3.E#128.A#48.c#.w#5.s#31.asp.qdimacs 5295 15358
########################################## ## ## Data ## Oocysts ## ## ########################################## b7_85<-read.table("C:\\Users\\Ellie\\Dropbox\\Malaria\\Data Malaria\\Blagborough data Nat Comms\\grant data\\Andrew Blagborough\\4B7-85\\mosquito.txt",header=TRUE) b7_85$OocPrev<-ifelse(b7_85$Oocyst==0,0,...
/CopyOfMalaria Summary Trials Information/4B785.R
no_license
EllieSherrardSmith/Malaria2
R
false
false
11,185
r
########################################## ## ## Data ## Oocysts ## ## ########################################## b7_85<-read.table("C:\\Users\\Ellie\\Dropbox\\Malaria\\Data Malaria\\Blagborough data Nat Comms\\grant data\\Andrew Blagborough\\4B7-85\\mosquito.txt",header=TRUE) b7_85$OocPrev<-ifelse(b7_85$Oocyst==0,0,...
rm(list=ls()) library(biomod2) library(ecospat) library(raster) rm(list = ls()) setwd("C:/Users/gzl02/Desktop/Yi2020Research/Ecological_differentiation_chapter/Esemble_of_Small_models") ascii_list <- list.files(path = "./", pattern='.asc$', all.files=TRUE, full.names=FALSE) asc_rasters <- ...
/2_Fixed_ESM_methods.R
no_license
Yi-HuangUCR/Ecological-Differentiation-Among-Manzanita-Species
R
false
false
26,704
r
rm(list=ls()) library(biomod2) library(ecospat) library(raster) rm(list = ls()) setwd("C:/Users/gzl02/Desktop/Yi2020Research/Ecological_differentiation_chapter/Esemble_of_Small_models") ascii_list <- list.files(path = "./", pattern='.asc$', all.files=TRUE, full.names=FALSE) asc_rasters <- ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fo_data.r \name{bone_cf} \alias{bone_cf} \title{Computes correction factor for pre-1992 data} \usage{ bone_cf(fo) } \arguments{ \item{fo}{dataframe of prey species identified in each scat and whether it was identified by otolith/beak...
/CIPinnipedAnalysis/man/bone_cf.Rd
no_license
jlaake/CIPinnipedAnalysis
R
false
true
835
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fo_data.r \name{bone_cf} \alias{bone_cf} \title{Computes correction factor for pre-1992 data} \usage{ bone_cf(fo) } \arguments{ \item{fo}{dataframe of prey species identified in each scat and whether it was identified by otolith/beak...
#' Makes four graphs of annual streamflow statistics on a single page #' #' @description #' Part of the flowHistory system. The four statistics are 1-day maximum, annual mean, annual median, and annual 7-day minimum. #' Although there are a lot of optional arguments to this function, most are set to a logical de...
/R/plotFourStats.R
no_license
cran/EGRET
R
false
false
4,303
r
#' Makes four graphs of annual streamflow statistics on a single page #' #' @description #' Part of the flowHistory system. The four statistics are 1-day maximum, annual mean, annual median, and annual 7-day minimum. #' Although there are a lot of optional arguments to this function, most are set to a logical de...
#ke bijiao d hemidu tu. opar <- par(no.readonly = T) par(lwd = 2) #double line wide library(sm) attach(mtcars) #general factor cyl.f <- factor(cyl, levels = c(4,6,8), labels = c('4 cylinder','6 cylinder', '8 cylinder')) sm.density.compare(mpg, cyl, xlab = "Miles Per Gallon") # plot density plot titl...
/6-8-sm-density.r
no_license
papadalin/R-book-code
R
false
false
513
r
#ke bijiao d hemidu tu. opar <- par(no.readonly = T) par(lwd = 2) #double line wide library(sm) attach(mtcars) #general factor cyl.f <- factor(cyl, levels = c(4,6,8), labels = c('4 cylinder','6 cylinder', '8 cylinder')) sm.density.compare(mpg, cyl, xlab = "Miles Per Gallon") # plot density plot titl...
discrepancyCriteria <- function(design, type='all'){ #--------------------------------------- # source code by Jessica FRANCO (2006.10.05) # modified by Bertrand Iooss (2013.26.12) #--------------------------------------- # inputs # - design of experiments # - type of dicrepancies to be computed X <...
/R/discrepancyCriteria.R
no_license
cran/DiceDesign
R
false
false
4,230
r
discrepancyCriteria <- function(design, type='all'){ #--------------------------------------- # source code by Jessica FRANCO (2006.10.05) # modified by Bertrand Iooss (2013.26.12) #--------------------------------------- # inputs # - design of experiments # - type of dicrepancies to be computed X <...
##################### ## Define settings ## ##################### if (grepl("ricard",Sys.info()['nodename'])) { source("/Users/ricard/scnmt_gastrulation/settings.R") source("/Users/ricard/scnmt_gastrulation/utils.R") } else if (grepl("ebi",Sys.info()['nodename'])) { source("/homes/ricard/scnmt_gastrulation/setti...
/scnmt/quantification_imputation/load_settings.R
no_license
bioFAM/MEFISTO_analyses
R
false
false
1,861
r
##################### ## Define settings ## ##################### if (grepl("ricard",Sys.info()['nodename'])) { source("/Users/ricard/scnmt_gastrulation/settings.R") source("/Users/ricard/scnmt_gastrulation/utils.R") } else if (grepl("ebi",Sys.info()['nodename'])) { source("/homes/ricard/scnmt_gastrulation/setti...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_rand.R \name{plot_rand} \alias{plot_rand} \title{Plot random distribution} \usage{ plot_rand( object, xlab = NA, ylab = "Frequency", title = "Random distribution", text_observed = "observed", color = "lightgrey", ... ) } \a...
/man/plot_rand.Rd
no_license
cran/scan
R
false
true
802
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_rand.R \name{plot_rand} \alias{plot_rand} \title{Plot random distribution} \usage{ plot_rand( object, xlab = NA, ylab = "Frequency", title = "Random distribution", text_observed = "observed", color = "lightgrey", ... ) } \a...
library(FNN) #For the Fast Nearest Neighbour(FNN) we will need only the price and the category id df_table <- products[,4:5] #Verify if the table was correctly sliced head(df_table) #Now Its time to apply the FNN algorith to find the nearest neighbour for each product model<-get.knn(df_table, k = 5, a...
/fnn_product_similarity.R
no_license
gabrielbenitezfml/ml-and-data-analysis
R
false
false
1,491
r
library(FNN) #For the Fast Nearest Neighbour(FNN) we will need only the price and the category id df_table <- products[,4:5] #Verify if the table was correctly sliced head(df_table) #Now Its time to apply the FNN algorith to find the nearest neighbour for each product model<-get.knn(df_table, k = 5, a...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53828387296911e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613109835-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
257
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53828387296911e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
\name{bfastpp} \alias{bfastpp} \title{Time Series Preprocessing for BFAST-Type Models} \description{ Time series preprocessing for subsequent regression modeling. Based on a (seasonal) time series, a data frame with the response, seasonal terms, a trend term, (seasonal) autoregressive terms, and covariates is ...
/man/bfastpp.Rd
no_license
Martin-Jung/bfast
R
false
false
3,912
rd
\name{bfastpp} \alias{bfastpp} \title{Time Series Preprocessing for BFAST-Type Models} \description{ Time series preprocessing for subsequent regression modeling. Based on a (seasonal) time series, a data frame with the response, seasonal terms, a trend term, (seasonal) autoregressive terms, and covariates is ...
tabItem( tabName = "all_empl_view", h1("Employee Overview"), actionButton("all_empl_refresh", label = "Refresh Table"), br(),br(), fluidRow( box( title = "", width = 12, collapsible = TRUE, solidHeader = TRUE, status = "primary", DT::dataTableOutput("all_empl_tbl") ) ) #...
/views/all_empl_view.R
no_license
dhairyadalal/lti_tracker_tool
R
false
false
350
r
tabItem( tabName = "all_empl_view", h1("Employee Overview"), actionButton("all_empl_refresh", label = "Refresh Table"), br(),br(), fluidRow( box( title = "", width = 12, collapsible = TRUE, solidHeader = TRUE, status = "primary", DT::dataTableOutput("all_empl_tbl") ) ) #...
#-------------------------------------------- #--------------- Opgave 2.1.1.1 #-------------------------------------------- model <- prcomp(id100Small[,-1], center = TRUE, scale = TRUE) plot(model$sdev[1:20], type = "o") variance <- model$sdev^2 variance <- variance / sum(variance) plot(variance[1:20], ylim = c(0,...
/MachineLearning/FinalRepport/Opgave1_1.R
no_license
DanielHviid/8.-semester-gruppearbejde
R
false
false
437
r
#-------------------------------------------- #--------------- Opgave 2.1.1.1 #-------------------------------------------- model <- prcomp(id100Small[,-1], center = TRUE, scale = TRUE) plot(model$sdev[1:20], type = "o") variance <- model$sdev^2 variance <- variance / sum(variance) plot(variance[1:20], ylim = c(0,...
#! /usr/bin/env Rscript 'extract snp counts in gene level for case datasets Usage: case_vcf_maf.R [--vcfSource] [--snvType] <input> <output> Options: -h --help Show this screen. -v --version Show version. --vcfSource=<DB> contral vcf file type, could be ExAC, gnomAD or else. [default: gnomAD] ...
/src/case_vcf_maf.R
permissive
biobai/iBurden
R
false
false
3,606
r
#! /usr/bin/env Rscript 'extract snp counts in gene level for case datasets Usage: case_vcf_maf.R [--vcfSource] [--snvType] <input> <output> Options: -h --help Show this screen. -v --version Show version. --vcfSource=<DB> contral vcf file type, could be ExAC, gnomAD or else. [default: gnomAD] ...
searchDataToDF <- function(json){ df <- data.frame( from_id = unlistWithNA(json, c('from', 'id')), from_name = unlistWithNA(json, c('from', 'name')), message = unlistWithNA(json, 'message'), created_time = unlistWithNA(json, 'created_time'), type = unlistWithNA(json, 'type'), link = unlistWithNA(json, 'lin...
/Rfacebook/R/utils.R
no_license
Mageshpoondi/Rfacebook
R
false
false
10,839
r
searchDataToDF <- function(json){ df <- data.frame( from_id = unlistWithNA(json, c('from', 'id')), from_name = unlistWithNA(json, c('from', 'name')), message = unlistWithNA(json, 'message'), created_time = unlistWithNA(json, 'created_time'), type = unlistWithNA(json, 'type'), link = unlistWithNA(json, 'lin...
\name{CVARace.data} \alias{CVARace.data} \docType{data} \title{ A SUBSET OF THE EDUCATION DATA SET } \description{ See Understanding Biplots } \usage{data(CVARace.data)} \format{ A data frame with 799 observations on the following 6 variables. \describe{ \item{\code{TOTScore}}{a numeric vector} \item{\code{...
/man/CVARace.data.Rd
no_license
carelvdmerwe/UBbipl3
R
false
false
602
rd
\name{CVARace.data} \alias{CVARace.data} \docType{data} \title{ A SUBSET OF THE EDUCATION DATA SET } \description{ See Understanding Biplots } \usage{data(CVARace.data)} \format{ A data frame with 799 observations on the following 6 variables. \describe{ \item{\code{TOTScore}}{a numeric vector} \item{\code{...
#!/usr/bin/env Rscript # imported libraries library(ggplot2) library(dplyr) data <- read.csv("HairEyeColor.csv") summary(apply(data, 2, as.factor)) nrow(data) dim(data)[1] ## Plot bar graph no color with only eye color and occurences eye_plot <- qplot(data$Eye, geom= "bar") eye_plot_labeled <- eye_plot + labs(tit...
/3/Fall/MATH-338/programs/making_saving_plots.r
no_license
Greencats0/university
R
false
false
914
r
#!/usr/bin/env Rscript # imported libraries library(ggplot2) library(dplyr) data <- read.csv("HairEyeColor.csv") summary(apply(data, 2, as.factor)) nrow(data) dim(data)[1] ## Plot bar graph no color with only eye color and occurences eye_plot <- qplot(data$Eye, geom= "bar") eye_plot_labeled <- eye_plot + labs(tit...
"paraep4" <- function(lmom, checklmom=TRUE, method=c("A", "DG", "ADG"), sqrt.t3t4=TRUE, eps=1e-4, checkbounds=TRUE, kapapproved=TRUE, snap.tau4=FALSE, nudge.tau4=0, A.guess=NULL, K.guess=NULL, H.guess=NULL, ...) { method <- match.arg(method) if(checklmom && ! are.l...
/R/paraep4.R
no_license
wasquith/lmomco
R
false
false
7,796
r
"paraep4" <- function(lmom, checklmom=TRUE, method=c("A", "DG", "ADG"), sqrt.t3t4=TRUE, eps=1e-4, checkbounds=TRUE, kapapproved=TRUE, snap.tau4=FALSE, nudge.tau4=0, A.guess=NULL, K.guess=NULL, H.guess=NULL, ...) { method <- match.arg(method) if(checklmom && ! are.l...
#Yellow-shouldered amazon functions library(popbio) library(tidyverse) # Here is the function # pi, piSD etc are inside the data frame. This needs to be specified this # for example: dataSource$pi[1] is where pi[1] is located #---------------------------------------------------------------------------------------...
/APB_BreedPropExercise/ysa functions.R
no_license
andbeck/parrot-proj
R
false
false
5,813
r
#Yellow-shouldered amazon functions library(popbio) library(tidyverse) # Here is the function # pi, piSD etc are inside the data frame. This needs to be specified this # for example: dataSource$pi[1] is where pi[1] is located #---------------------------------------------------------------------------------------...
#load the data set filename<-"household_power_consumption.txt" all_data <- read.table(filename,header=T,sep=";",colClasses=c("character","character","double","double","double","double","double","double","numeric"),na.strings="?") #just add the date and time together all_data$DateTime = paste(all_data$Date, all_data$T...
/plot4.R
no_license
AnonDataScience/ExData_Plotting1
R
false
false
1,518
r
#load the data set filename<-"household_power_consumption.txt" all_data <- read.table(filename,header=T,sep=";",colClasses=c("character","character","double","double","double","double","double","double","numeric"),na.strings="?") #just add the date and time together all_data$DateTime = paste(all_data$Date, all_data$T...
jacobi <- function(nVar,dMax,coeffF,strF=NULL) { strRef <- regOrd(nVar,dMax) pMax <- choose(dMax+nVar,nVar) # structure of Lorenz model if (is.null(strF)) { strF <- coeffF * 0 + 1 strF[coeffF == 0] <- 0 } #labelPoly(nVar,dMax,strF[,1]*1:pMax) #labelPoly(nVar,dMax,strF[,2]*1:pMax) ...
/R/jacobi.R
no_license
cran/GPoM.FDLyapu
R
false
false
1,009
r
jacobi <- function(nVar,dMax,coeffF,strF=NULL) { strRef <- regOrd(nVar,dMax) pMax <- choose(dMax+nVar,nVar) # structure of Lorenz model if (is.null(strF)) { strF <- coeffF * 0 + 1 strF[coeffF == 0] <- 0 } #labelPoly(nVar,dMax,strF[,1]*1:pMax) #labelPoly(nVar,dMax,strF[,2]*1:pMax) ...
\name{binomTest} \alias{binomTest} \title{Exact Binomial Tests for Comparing Two Digital Libraries} \description{ Computes p-values for differential abundance for each gene between two digital libraries, conditioning on the total count for each gene. The counts in each group as a proportion of the whole are ass...
/man/binomTest.Rd
no_license
hiraksarkar/edgeR_fork
R
false
false
3,042
rd
\name{binomTest} \alias{binomTest} \title{Exact Binomial Tests for Comparing Two Digital Libraries} \description{ Computes p-values for differential abundance for each gene between two digital libraries, conditioning on the total count for each gene. The counts in each group as a proportion of the whole are ass...
rankhospital <- function(state, outcome, num = "best") { hospital_data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") hospital_data[,11] <- suppressWarnings(as.numeric(hospital_data[,11])) hospital_data[,17] <- suppressWarnings(as.numeric(hospital_data[,17])) hospital_data[,23] <- suppres...
/week3/rankhospital.R
no_license
smarthi/R-Programming
R
false
false
2,001
r
rankhospital <- function(state, outcome, num = "best") { hospital_data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") hospital_data[,11] <- suppressWarnings(as.numeric(hospital_data[,11])) hospital_data[,17] <- suppressWarnings(as.numeric(hospital_data[,17])) hospital_data[,23] <- suppres...
####################################### ####################################### ####################################### ### Simulate validation data study 1 ######## Setting up ######### set.seed(123) source("./src/setup.R") source("./src/data generation functions.R") s1 <- read_rds(study_1_settings) system.time(s1_...
/src/old/validation data generation study 1.R
permissive
SagevdBrand/Master-thesis
R
false
false
682
r
####################################### ####################################### ####################################### ### Simulate validation data study 1 ######## Setting up ######### set.seed(123) source("./src/setup.R") source("./src/data generation functions.R") s1 <- read_rds(study_1_settings) system.time(s1_...
set.ValCo1<-function(){ r<-readRDS("../Data/ValidationCohorts/ValidationCohort1.rds") load("../Results/Signatures/cell.type.sig.full.RData") load("../Results/Signatures/resistance.program.RData") r<-compute.samples.res.scores(r = r,res.sig = res.sig, cell.sig = cell.sig[c("B.cell...
/Code/ImmRes3_longitudinal.R
no_license
chitrita/ImmuneResistance
R
false
false
4,001
r
set.ValCo1<-function(){ r<-readRDS("../Data/ValidationCohorts/ValidationCohort1.rds") load("../Results/Signatures/cell.type.sig.full.RData") load("../Results/Signatures/resistance.program.RData") r<-compute.samples.res.scores(r = r,res.sig = res.sig, cell.sig = cell.sig[c("B.cell...
\name{lauderdale-package} \alias{lauderdale-package} \alias{lauderdale} \docType{package} \title{ A short title line describing what the package does } \description{ A more detailed description of what the package does. A length of about one to five lines is recommended. } \details{ This section should provide ...
/man/lauderdale-package.Rd
no_license
petershan1119/lauderdale
R
false
false
830
rd
\name{lauderdale-package} \alias{lauderdale-package} \alias{lauderdale} \docType{package} \title{ A short title line describing what the package does } \description{ A more detailed description of what the package does. A length of about one to five lines is recommended. } \details{ This section should provide ...
# # See ../README.md # # # Run as: Rscript ch-1.r # cat ("0, 0, 0, 2, 0, 5, 0, 6, 3, 7, 0, 15, 0, 9, 8, 14, 0, 20, 0, 21\n")
/challenge-109/abigail/r/ch-1.r
no_license
southpawgeek/perlweeklychallenge-club
R
false
false
127
r
# # See ../README.md # # # Run as: Rscript ch-1.r # cat ("0, 0, 0, 2, 0, 5, 0, 6, 3, 7, 0, 15, 0, 9, 8, 14, 0, 20, 0, 21\n")
SPICalcPanelCmd <- function(){ listOpenFiles <- openFile_ttkcomboList() if(Sys.info()["sysname"] == "Windows"){ wscrlwin <- w.scale(26) hscrlwin <- h.scale(46) largeur0 <- as.integer(w.scale(22)/sfont0) largeur1 <- as.integer(w.scale(27)/sfont0) largeur2 <- as.integer(w.scale(29)/sfont0) largeur3 <- 20 ...
/functions/cdtCompute_SPI_leftCmd_functions.R
no_license
rijaf/CDT
R
false
false
46,899
r
SPICalcPanelCmd <- function(){ listOpenFiles <- openFile_ttkcomboList() if(Sys.info()["sysname"] == "Windows"){ wscrlwin <- w.scale(26) hscrlwin <- h.scale(46) largeur0 <- as.integer(w.scale(22)/sfont0) largeur1 <- as.integer(w.scale(27)/sfont0) largeur2 <- as.integer(w.scale(29)/sfont0) largeur3 <- 20 ...
#################################################### # This code loads required libraries using Pacman.# # Author: Kevin Okiah @2017 # #################################################### pacman::p_load(pacman,ggplot2,knitr, plyr, psych, taRifx, reshape2, rmarkdown)
/analysis/load_libraries.R
no_license
kevin-okiah/US-Breweries-Data-EDA
R
false
false
295
r
#################################################### # This code loads required libraries using Pacman.# # Author: Kevin Okiah @2017 # #################################################### pacman::p_load(pacman,ggplot2,knitr, plyr, psych, taRifx, reshape2, rmarkdown)
rm(list=ls()) library(ggplot2) load("D:/ivan/ivan6-cell/Results/Result_getfromthePROGRAMME/LabAandCresults/LabAGene.RData") z=distributionofrate(LabAREP1Express,1,0.1,0.01) z1=distributionofrate(LabAREP2Express,1,0.1,0.01) z2=distributionofrate(LabAREP12Express,1,0.1,0.01) load("D:/ivan/ivan6-cell/Results/R...
/5_figure3A-C.R
no_license
bioWzz/Inspect
R
false
false
4,538
r
rm(list=ls()) library(ggplot2) load("D:/ivan/ivan6-cell/Results/Result_getfromthePROGRAMME/LabAandCresults/LabAGene.RData") z=distributionofrate(LabAREP1Express,1,0.1,0.01) z1=distributionofrate(LabAREP2Express,1,0.1,0.01) z2=distributionofrate(LabAREP12Express,1,0.1,0.01) load("D:/ivan/ivan6-cell/Results/R...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_csvy.R \name{write_csvy} \alias{write_csvy} \title{Export CSVY data} \usage{ write_csvy(x, file, metadata = NULL, sep = ",", sep2 = ".", comment_header = if (is.null(metadata)) TRUE else FALSE, name = as.character(substitute(x)), .....
/man/write_csvy.Rd
no_license
jonocarroll/csvy
R
false
true
1,347
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_csvy.R \name{write_csvy} \alias{write_csvy} \title{Export CSVY data} \usage{ write_csvy(x, file, metadata = NULL, sep = ",", sep2 = ".", comment_header = if (is.null(metadata)) TRUE else FALSE, name = as.character(substitute(x)), .....
#! /usr/bin/R --vanilla -f source('load_data.R') source('panel_fcts.R') library(lattice) ### Display hist only diag ## Not yet finished. TODO: legend (& input size normalization?) xyplot(time ~ factor(par), groups = interaction(arch,imptype), subset = ave(size, btype, machine, FUN = max) == size & lanef == 1 ...
/benchmarks/flowPools/plots.R
no_license
heathermiller/scala-dataflow
R
false
false
2,716
r
#! /usr/bin/R --vanilla -f source('load_data.R') source('panel_fcts.R') library(lattice) ### Display hist only diag ## Not yet finished. TODO: legend (& input size normalization?) xyplot(time ~ factor(par), groups = interaction(arch,imptype), subset = ave(size, btype, machine, FUN = max) == size & lanef == 1 ...
# makeCacheMatrix creates a list containing a function to # 1. set the value of the matrix # 2. get the value of the matrix # 3. set the value of inverse of the matrix # 4. get the value of inverse of the matrix makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y ...
/cachematrix.R
no_license
Hammad-Raza/ProgrammingAssignment2
R
false
false
1,075
r
# makeCacheMatrix creates a list containing a function to # 1. set the value of the matrix # 2. get the value of the matrix # 3. set the value of inverse of the matrix # 4. get the value of inverse of the matrix makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y ...
## Function downloaded from Joey Berhardt's Numerical Ecology repository on github ## Feb. 16, 2017 ## https://github.com/JoeyBernhardt/NumericalEcology/blob/master/plot.links.R plot.links <- function(XY, D.mat=NULL, thresh=0.05, xlim=NULL, ylim=NULL) # # Plot a PCoA graph (map) from XY = a table of Cartesian coordina...
/scripts/plot.links.R
no_license
eabowman/Workshop-2017.02.20-Spatial-Analysis
R
false
false
1,386
r
## Function downloaded from Joey Berhardt's Numerical Ecology repository on github ## Feb. 16, 2017 ## https://github.com/JoeyBernhardt/NumericalEcology/blob/master/plot.links.R plot.links <- function(XY, D.mat=NULL, thresh=0.05, xlim=NULL, ylim=NULL) # # Plot a PCoA graph (map) from XY = a table of Cartesian coordina...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/obj_find.r \name{obj_find} \alias{obj_find} \title{Find an object in the workspace including user-defined environments} \usage{ obj_find( obj, envir = NULL, envmap = NULL, globalsearch = TRUE, n = 0, return_address = FALSE, incl...
/man/obj_find.Rd
no_license
cran/envnames
R
false
true
7,174
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/obj_find.r \name{obj_find} \alias{obj_find} \title{Find an object in the workspace including user-defined environments} \usage{ obj_find( obj, envir = NULL, envmap = NULL, globalsearch = TRUE, n = 0, return_address = FALSE, incl...
library(shiny) set.seed(1000) lambda = 0.2 shinyUI(pageWithSidebar( headerPanel("Investigation of Exponential Distribution"), sidebarPanel( sliderInput('n', 'Number of observations',value = 50, min = 5, max = 100, step = 1,), sliderInput('sim','Number of Simulations',value = 5000, min = 100, m...
/ui.R
no_license
moduma/DataProducts
R
false
false
709
r
library(shiny) set.seed(1000) lambda = 0.2 shinyUI(pageWithSidebar( headerPanel("Investigation of Exponential Distribution"), sidebarPanel( sliderInput('n', 'Number of observations',value = 50, min = 5, max = 100, step = 1,), sliderInput('sim','Number of Simulations',value = 5000, min = 100, m...
library(igraph) library(RColorBrewer) #create data: links=data.frame( source=c("China","China","Mongolia", "China", "Kazakhstan", "Russia","China", "Malaysia", "Indonesia", "Sri Lanka","Poland"), target=c("Pakistan","Mongolia","Russia", "Kazakhstan", "Poland", "Kazakhstan","Malaysia","Indonesia", "Sri Lanka", "Ken...
/HW8_Network.R
no_license
angelawyq/stat744
R
false
false
1,400
r
library(igraph) library(RColorBrewer) #create data: links=data.frame( source=c("China","China","Mongolia", "China", "Kazakhstan", "Russia","China", "Malaysia", "Indonesia", "Sri Lanka","Poland"), target=c("Pakistan","Mongolia","Russia", "Kazakhstan", "Poland", "Kazakhstan","Malaysia","Indonesia", "Sri Lanka", "Ken...
### Codes used in the hypothesis testing lecture (lecture 12) ## please run codes in data_input.r first, you can choose "source" option to run all of them ## this is important, as we are going to use data created in data_input.r file # 1. t-test for single mean t.test(sales$days, mu=10, alternative="greater") # sales...
/testing.r
no_license
comm365mr/diamond
R
false
false
2,146
r
### Codes used in the hypothesis testing lecture (lecture 12) ## please run codes in data_input.r first, you can choose "source" option to run all of them ## this is important, as we are going to use data created in data_input.r file # 1. t-test for single mean t.test(sales$days, mu=10, alternative="greater") # sales...
##practice with if, for and while loops in R ##__author__ = 'Matthew Campos (matthew.campos19@imperial.ac.uk)' ##__version__ = '0.0.1' ## IF Statement a <- TRUE if (a==FALSE){ print("a is True") } else { print("a is False") } ## IF Statement on a single line z <- runif(1) ## uniformly distributed number if (...
/Week3/Code/control_flow.R
no_license
matthewcampos/CMEECourseWork
R
false
false
997
r
##practice with if, for and while loops in R ##__author__ = 'Matthew Campos (matthew.campos19@imperial.ac.uk)' ##__version__ = '0.0.1' ## IF Statement a <- TRUE if (a==FALSE){ print("a is True") } else { print("a is False") } ## IF Statement on a single line z <- runif(1) ## uniformly distributed number if (...
library(noaaquake) context("Testing the output map is a leaflet map or not") test_that("eq_map runs without error", { data_clean <- NOAA_data %>% eq_clean_data()%>% dplyr::filter(Country == "India"|Country == "Pakistan" & lubridate::year(date) >= 2000)%>% tidyr::drop_na(Latitude,Longitude)...
/tests/testthat/test_leaflet_map.R
permissive
adeel1997/noaaquake
R
false
false
470
r
library(noaaquake) context("Testing the output map is a leaflet map or not") test_that("eq_map runs without error", { data_clean <- NOAA_data %>% eq_clean_data()%>% dplyr::filter(Country == "India"|Country == "Pakistan" & lubridate::year(date) >= 2000)%>% tidyr::drop_na(Latitude,Longitude)...
# Modified from Winston Chang, # https://shiny.rstudio.com/gallery/shiny-theme-selector.html # Concepts about Reactive programming used by Shiny, # https://shiny.rstudio.com/articles/reactivity-overview.html # Load R packages library(shiny) library(shinythemes) # Define UI ui <- fluidPage(theme = shinytheme("...
/001-first-app/app.R
no_license
MelinaRentzi/Shiny_Playground
R
false
false
1,385
r
# Modified from Winston Chang, # https://shiny.rstudio.com/gallery/shiny-theme-selector.html # Concepts about Reactive programming used by Shiny, # https://shiny.rstudio.com/articles/reactivity-overview.html # Load R packages library(shiny) library(shinythemes) # Define UI ui <- fluidPage(theme = shinytheme("...
x<-c(80, 85, 70) x c(80,85,70) ->x x y <-c("최성식","최성싣2", "최성식3") y choi1<-c(80, 75, 75) choi1 print(choi1) choi2<-c(80,80,80) choi3<-c(110) ##사칙연산 10%%2 10%/%2 5%%3+7**2-9%/%4 choi1+choi2 s<-choi1+choi2 s/2 #choi3이 점수가 하나면 그 점수로 다 더해준다 #배수가 안맞으면 연산 no (Ex.7과 ) choi2+choi3 #배수 안맞는거 확인 kim<-c(1,2,3,4,5,6,7) kim kang...
/1_calcurate.R
no_license
seongsik-choi/R_Project
R
false
false
1,396
r
x<-c(80, 85, 70) x c(80,85,70) ->x x y <-c("최성식","최성싣2", "최성식3") y choi1<-c(80, 75, 75) choi1 print(choi1) choi2<-c(80,80,80) choi3<-c(110) ##사칙연산 10%%2 10%/%2 5%%3+7**2-9%/%4 choi1+choi2 s<-choi1+choi2 s/2 #choi3이 점수가 하나면 그 점수로 다 더해준다 #배수가 안맞으면 연산 no (Ex.7과 ) choi2+choi3 #배수 안맞는거 확인 kim<-c(1,2,3,4,5,6,7) kim kang...