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
## Put comments here that give an overall description of what your ## functions do: ... ### These two functions work together, to cache a special matrix and ### then solve for the inverse of the matrix using the a second function ### that has access to the environment of the first function. ### In a way these two func...
/cachematrix.R
no_license
johnfenwick122/ProgrammingAssignment2
R
false
false
2,365
r
## Put comments here that give an overall description of what your ## functions do: ... ### These two functions work together, to cache a special matrix and ### then solve for the inverse of the matrix using the a second function ### that has access to the environment of the first function. ### In a way these two func...
# 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__race__event__.r
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
3,186
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
% Generated by roxygen2 (4.0.1): do not edit by hand \docType{data} \name{fish.data} \alias{fish.data} \title{A cached copy of extracted FishBase data, 14 Febuary 2013.} \description{ A cached copy of extracted FishBase data, 14 Febuary 2013. } \references{ Froese, R. and D. Pauly. Editors. 2011.FishBase. World Wide ...
/man/fish.data.Rd
permissive
CottonRockwood/rfishbase
R
false
false
411
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \docType{data} \name{fish.data} \alias{fish.data} \title{A cached copy of extracted FishBase data, 14 Febuary 2013.} \description{ A cached copy of extracted FishBase data, 14 Febuary 2013. } \references{ Froese, R. and D. Pauly. Editors. 2011.FishBase. World Wide ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model.R \name{wait_for_model_package_creation} \alias{wait_for_model_package_creation} \title{Wait for a model package to finish creating} \usage{ wait_for_model_package_creation(package, show_output = FALSE) } \arguments{ \item{package}{The ...
/man/wait_for_model_package_creation.Rd
permissive
Azure/azureml-sdk-for-r
R
false
true
533
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model.R \name{wait_for_model_package_creation} \alias{wait_for_model_package_creation} \title{Wait for a model package to finish creating} \usage{ wait_for_model_package_creation(package, show_output = FALSE) } \arguments{ \item{package}{The ...
###################################################################################################################### #STABLE ISOTOPE MIXING MODELS ###################################################################################################################### #This script is intended as material for the pr...
/01_SIMMs/Mixing_Models.R
no_license
loicnmichel/Stable-isotope-course
R
false
false
27,273
r
###################################################################################################################### #STABLE ISOTOPE MIXING MODELS ###################################################################################################################### #This script is intended as material for the pr...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{getStockcol} \alias{getStockcol} \alias{getStockpch} \alias{getUnknowncol} \alias{getUnknownpch} \alias{setStockcol} \alias{setStockpch} \alias{setUnknowncol} \alias{setUnknownpch} \title{Manage default colours and point characters} \usage{ getStockcol() setSt...
/man/getStockcol.Rd
no_license
pavel-shliaha/pRoloc
R
false
false
1,854
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{getStockcol} \alias{getStockcol} \alias{getStockpch} \alias{getUnknowncol} \alias{getUnknownpch} \alias{setStockcol} \alias{setStockpch} \alias{setUnknowncol} \alias{setUnknownpch} \title{Manage default colours and point characters} \usage{ getStockcol() setSt...
#' Function that runs the httk oral equivalent dose gadget. #' @description Launches the HTTK oral equivalent dose gadget. It servers as a UI wrapper around HTTK's functions to calculate oral equivalent dose. #' @examples #' if(interactive()){ #' httkCalcOralEqDose() #' } #' @export httkCalcOralEqDose <- functio...
/R/httkOralEqDoseGadget.R
no_license
cran/plethem
R
false
false
2,148
r
#' Function that runs the httk oral equivalent dose gadget. #' @description Launches the HTTK oral equivalent dose gadget. It servers as a UI wrapper around HTTK's functions to calculate oral equivalent dose. #' @examples #' if(interactive()){ #' httkCalcOralEqDose() #' } #' @export httkCalcOralEqDose <- functio...
# Функция для отображения угла, записанного в десятичной форме, в градусной мере show_in_the_degree_system = function(x) { degrees = as.integer(x) print(degrees) minutes = (x - degrees) * 60 print(as.integer(minutes)) seconds = (minutes - as.integer(minutes)) * 60 print(seconds) } ...
/IV (Определение азимута земного предмета по Солнцу)/IV (Код Кирилла, данные Кирилла).R
permissive
paveloom-university/Astrometric-Workshop-Summer-2019
R
false
false
16,293
r
# Функция для отображения угла, записанного в десятичной форме, в градусной мере show_in_the_degree_system = function(x) { degrees = as.integer(x) print(degrees) minutes = (x - degrees) * 60 print(as.integer(minutes)) seconds = (minutes - as.integer(minutes)) * 60 print(seconds) } ...
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615827490-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
487
r
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graphicsFuns.R \name{plotMaxMin} \alias{plotMaxMin} \title{Plot coordinate profiles} \usage{ plotMaxMin(allRes, Design = NULL, threshold = NULL, changes = FALSE, trueEvals = NULL, ...) } \arguments{ \item{allRes}{list containing the list \c...
/man/plotMaxMin.Rd
no_license
cran/profExtrema
R
false
true
1,023
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graphicsFuns.R \name{plotMaxMin} \alias{plotMaxMin} \title{Plot coordinate profiles} \usage{ plotMaxMin(allRes, Design = NULL, threshold = NULL, changes = FALSE, trueEvals = NULL, ...) } \arguments{ \item{allRes}{list containing the list \c...
#trying to play with shortread library to look at our files library(ShortRead) fls <- dir("C:\\Users\\Sara\\Documents\\HHMI_projects\\Molecular_clock\\Analysis", "*fastq.gz$", full=TRUE) #collecting statistics over the files qaSummary <- qa(fls, type="fastq") #and creating and viewing a report browseURL(report(qaSum...
/Old things not currently needed/shortreadcode.R
no_license
drescs/Molecular_clock
R
false
false
615
r
#trying to play with shortread library to look at our files library(ShortRead) fls <- dir("C:\\Users\\Sara\\Documents\\HHMI_projects\\Molecular_clock\\Analysis", "*fastq.gz$", full=TRUE) #collecting statistics over the files qaSummary <- qa(fls, type="fastq") #and creating and viewing a report browseURL(report(qaSum...
mmsc <- function( Raw_Dir = "", Exp_File = "", CDF_Name, Tra_Data, Out_Dir = "./OutPut", K_Const = 16, Run_Time = 1:140) { # switch switch_path <- function(string) { if(substr(string,nchar(string),nchar(string))!=.Platform$file.sep) string=paste(string,"",sep=.Platform$file.se...
/data/mmsc.r
no_license
hmmc/hmmc.github.com
R
false
false
9,083
r
mmsc <- function( Raw_Dir = "", Exp_File = "", CDF_Name, Tra_Data, Out_Dir = "./OutPut", K_Const = 16, Run_Time = 1:140) { # switch switch_path <- function(string) { if(substr(string,nchar(string),nchar(string))!=.Platform$file.sep) string=paste(string,"",sep=.Platform$file.se...
# 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/totEVT__ind__agegrps__.r
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
3,121
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...
#################################################################################### #' spotCreateDesignLhsOpt #' #' Uses the optimumLHS function from the lhs package to create a Latin Hypercube #' Design. optimumLHS uses the S optimality criterion. #' #' @param spotConfig list of spotConfiguration #' @param no...
/SPOT/R/spotCreateDesignLhsOpt.R
no_license
ingted/R-Examples
R
false
false
2,017
r
#################################################################################### #' spotCreateDesignLhsOpt #' #' Uses the optimumLHS function from the lhs package to create a Latin Hypercube #' Design. optimumLHS uses the S optimality criterion. #' #' @param spotConfig list of spotConfiguration #' @param no...
library(sstModel) ### Name: summary.participation ### Title: Summarizing a Participation ### Aliases: summary.participation ### ** Examples # Creating a new participation. participation1 <- participation("USD", 1000) # summarizing the participation summary(participation1)
/data/genthat_extracted_code/sstModel/examples/summary.participation.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
281
r
library(sstModel) ### Name: summary.participation ### Title: Summarizing a Participation ### Aliases: summary.participation ### ** Examples # Creating a new participation. participation1 <- participation("USD", 1000) # summarizing the participation summary(participation1)
\name{readCounts} \alias{readCounts} \title{A list object that should be used as input to optimization fit or fitsh function.} \description{ It should contain at least total read counts (TReC), overall allele-specific counts (ASE), paternal allele-specific counts and haplotype classification 0 to 4. Also should i...
/rcppreqtl/man/readCounts.Rd
no_license
Sun-lab/rcppreqtl
R
false
false
2,253
rd
\name{readCounts} \alias{readCounts} \title{A list object that should be used as input to optimization fit or fitsh function.} \description{ It should contain at least total read counts (TReC), overall allele-specific counts (ASE), paternal allele-specific counts and haplotype classification 0 to 4. Also should i...
\alias{gtkFileChooserGetFilter} \name{gtkFileChooserGetFilter} \title{gtkFileChooserGetFilter} \description{Gets the current filter; see \code{\link{gtkFileChooserSetFilter}}.} \usage{gtkFileChooserGetFilter(object)} \arguments{\item{\code{object}}{[\code{\link{GtkFileChooser}}] a \code{\link{GtkFileChooser}}}} \detai...
/man/gtkFileChooserGetFilter.Rd
no_license
cran/RGtk2.10
R
false
false
482
rd
\alias{gtkFileChooserGetFilter} \name{gtkFileChooserGetFilter} \title{gtkFileChooserGetFilter} \description{Gets the current filter; see \code{\link{gtkFileChooserSetFilter}}.} \usage{gtkFileChooserGetFilter(object)} \arguments{\item{\code{object}}{[\code{\link{GtkFileChooser}}] a \code{\link{GtkFileChooser}}}} \detai...
testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0...
/IntervalSurgeon/inst/testfiles/rcpp_depth/AFL_rcpp_depth/rcpp_depth_valgrind_files/1609857271-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
713
r
testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rkrnsRanker.R \name{rkrnsRanker} \alias{rkrnsRanker} \title{use random forest or svm to predict and rank sentences from features} \usage{ rkrnsRanker(mydfin, trainingRows, targetSuccessRate = 0.15, whichmodel = "randomForest", verbose = FAL...
/man/rkrnsRanker.Rd
no_license
stnava/RKRNS
R
false
true
889
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rkrnsRanker.R \name{rkrnsRanker} \alias{rkrnsRanker} \title{use random forest or svm to predict and rank sentences from features} \usage{ rkrnsRanker(mydfin, trainingRows, targetSuccessRate = 0.15, whichmodel = "randomForest", verbose = FAL...
# Copyright 2018 Observational Health Data Sciences and Informatics # # This file is part of ERSPCdiagnosisdeathAndTreatedRightways # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # htt...
/R/SubmitResults.R
no_license
nzkermani/ERSPCdiagnosisdeathAndTreatedRightways
R
false
false
2,032
r
# Copyright 2018 Observational Health Data Sciences and Informatics # # This file is part of ERSPCdiagnosisdeathAndTreatedRightways # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # htt...
# TODO: Add comment # # Author: mike ############################################################################### ## bitlen gives number of bits intended to be saved ## nbitset is the number of 1 ## length(gives number of bytes used) ### n is number of bits inteded to be saved .makeBitVecZeros <- function(n) { n...
/R/bitVector.R
no_license
petterbrodin/flowWorkspace
R
false
false
953
r
# TODO: Add comment # # Author: mike ############################################################################### ## bitlen gives number of bits intended to be saved ## nbitset is the number of 1 ## length(gives number of bytes used) ### n is number of bits inteded to be saved .makeBitVecZeros <- function(n) { n...
library(waved) ### Name: IWaveD ### Title: Computes the Inverse WaveD transform ### Aliases: IWaveD ### Keywords: internal ### ** Examples library(waved) data=waved.example(TRUE,FALSE) lidar.w=FWaveD(data$lidar.blur,data$g) # lidar.blur is lidar*g IWaveD(lidar.w) # same as lidar
/data/genthat_extracted_code/waved/examples/IWaveD.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
303
r
library(waved) ### Name: IWaveD ### Title: Computes the Inverse WaveD transform ### Aliases: IWaveD ### Keywords: internal ### ** Examples library(waved) data=waved.example(TRUE,FALSE) lidar.w=FWaveD(data$lidar.blur,data$g) # lidar.blur is lidar*g IWaveD(lidar.w) # same as lidar
library(testthat) library(listWithDefaults) test_check("listWithDefaults")
/data/genthat_extracted_code/listWithDefaults/tests/testthat.R
no_license
surayaaramli/typeRrh
R
false
false
76
r
library(testthat) library(listWithDefaults) test_check("listWithDefaults")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preprocFromDA1.R \name{preprocFromDA1} \alias{preprocFromDA1} \title{Pre-processing of data using DA1 files} \usage{ preprocFromDA1( data_dir = NULL, ResX = 1920, ResY = 1080, maxtrial = 999, tBlink = 150, padding = 0, addNonFix...
/man/preprocFromDA1.Rd
no_license
martin-vasilev/EMreading
R
false
true
1,754
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preprocFromDA1.R \name{preprocFromDA1} \alias{preprocFromDA1} \title{Pre-processing of data using DA1 files} \usage{ preprocFromDA1( data_dir = NULL, ResX = 1920, ResY = 1080, maxtrial = 999, tBlink = 150, padding = 0, addNonFix...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{theme_economist} \alias{theme_economist} \alias{theme_economist_white} \title{ggplot color theme based on the Economist} \usage{ theme_economist(base_size = 10, base_family = "sans", horizontal = TRUE, dkpanel = FALSE, stata = FALSE) theme_economist_white(ba...
/man/theme_economist.Rd
no_license
Mokubyow/RFtheme
R
false
false
3,046
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{theme_economist} \alias{theme_economist} \alias{theme_economist_white} \title{ggplot color theme based on the Economist} \usage{ theme_economist(base_size = 10, base_family = "sans", horizontal = TRUE, dkpanel = FALSE, stata = FALSE) theme_economist_white(ba...
## Matrix inversion is usually a costly computation. These pair of ## functions cache the inverse of a matrix. ## Example usage: ## > x = rbind(c(1, -1/4), c(-1/4, 1)) // Create a matrix x ## > cx <- makeCacheMatrix(x) // Create our special matrix ## > cx$get() ...
/cachematrix.R
no_license
mayankkapoor/ProgrammingAssignment2
R
false
false
1,484
r
## Matrix inversion is usually a costly computation. These pair of ## functions cache the inverse of a matrix. ## Example usage: ## > x = rbind(c(1, -1/4), c(-1/4, 1)) // Create a matrix x ## > cx <- makeCacheMatrix(x) // Create our special matrix ## > cx$get() ...
\name{plotPatterns} \alias{plotPatterns} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Plot methylation pattern distribution } \description{ Plot the observed distribution and the estimated distribution of the methylation patterns } \usage{ plotPatterns(compareData, yLimit1=NULL, yLimit2=...
/man/plotPatterns.Rd
no_license
sylvainforet/Bpest
R
false
false
1,696
rd
\name{plotPatterns} \alias{plotPatterns} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Plot methylation pattern distribution } \description{ Plot the observed distribution and the estimated distribution of the methylation patterns } \usage{ plotPatterns(compareData, yLimit1=NULL, yLimit2=...
testlist <- list(n = -788529152L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
/breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609962998-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
98
r
testlist <- list(n = -788529152L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lists_subscribers.R \name{lists_subscribers} \alias{lists_subscribers} \title{Get subscribers of a specified list.} \usage{ lists_subscribers(list_id = NULL, slug = NULL, owner_user = NULL, n = 20, cursor = "-1", parse = TRUE, token = NULL)...
/man/lists_subscribers.Rd
no_license
tylerlittlefield/rtweet
R
false
true
2,132
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lists_subscribers.R \name{lists_subscribers} \alias{lists_subscribers} \title{Get subscribers of a specified list.} \usage{ lists_subscribers(list_id = NULL, slug = NULL, owner_user = NULL, n = 20, cursor = "-1", parse = TRUE, token = NULL)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/popModel.R \name{popModel} \alias{popModel} \title{popModel} \usage{ popModel( numSpecies, numStages, numStrains = rep(1, numSpecies), timeVec, speciesNames, stageNames, rateFunctions = defaultRateFunctions, ICs, timeDependL...
/man/popModel.Rd
no_license
cran/stagePop
R
false
true
6,486
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/popModel.R \name{popModel} \alias{popModel} \title{popModel} \usage{ popModel( numSpecies, numStages, numStrains = rep(1, numSpecies), timeVec, speciesNames, stageNames, rateFunctions = defaultRateFunctions, ICs, timeDependL...
\name{coxph.object} \alias{coxph.object} \alias{print.coxph} \alias{summary.coxph} \title{ Proportional Hazards Regression Object } \description{ This class of objects is returned by the \code{coxph} class of functions to represent a fitted proportional hazards model. Objects of this class have methods for the functi...
/man/coxph.object.Rd
no_license
cran/survival5
R
false
false
2,523
rd
\name{coxph.object} \alias{coxph.object} \alias{print.coxph} \alias{summary.coxph} \title{ Proportional Hazards Regression Object } \description{ This class of objects is returned by the \code{coxph} class of functions to represent a fitted proportional hazards model. Objects of this class have methods for the functi...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 16904 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 16904 c c Input Parameter (command line, file): c input filename QBFLIB/Miller-Marin/trafficlight-controller/tlc02-uniform-dep...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Miller-Marin/trafficlight-controller/tlc02-uniform-depth-27/tlc02-uniform-depth-27.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
685
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 16904 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 16904 c c Input Parameter (command line, file): c input filename QBFLIB/Miller-Marin/trafficlight-controller/tlc02-uniform-dep...
hh<-read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?",) (hh <- hh[with(hh, hh$Date == "1/2/2007" | hh$Date == "2/2/2007"), ]) png("plot1.png", width = 480, height = 480) hist(hh$Global_active_power, col = "red", xlab = "Global Active Power (kilowatts)", main = "Global Active Power...
/Course Project 1/plot1.R
no_license
eidam61/ExData_Plotting1
R
false
false
364
r
hh<-read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?",) (hh <- hh[with(hh, hh$Date == "1/2/2007" | hh$Date == "2/2/2007"), ]) png("plot1.png", width = 480, height = 480) hist(hh$Global_active_power, col = "red", xlab = "Global Active Power (kilowatts)", main = "Global Active Power...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/facet.R \name{facet} \alias{facet} \title{Facet a ggplot into Multiple Panels} \usage{ facet( p, facet.by, nrow = NULL, ncol = NULL, scales = "fixed", short.panel.labs = TRUE, labeller = "label_value", panel.labs = NULL, pan...
/man/facet.Rd
no_license
kassambara/ggpubr
R
false
true
3,266
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/facet.R \name{facet} \alias{facet} \title{Facet a ggplot into Multiple Panels} \usage{ facet( p, facet.by, nrow = NULL, ncol = NULL, scales = "fixed", short.panel.labs = TRUE, labeller = "label_value", panel.labs = NULL, pan...
# execute with source(chdir=TRUE) for automatic relative paths, if not uncomment the below function and manually enter # the path where this script is. # setwd("/home/rstudio") #---------# # HELPERS # #---------# plot.new <- function() { dev.new(width=16, height=9) par(cex=0.6, cex.main=1.2, c...
/analysis/analyse.r
no_license
Naramsim/SPE-Assignment-2
R
false
false
6,715
r
# execute with source(chdir=TRUE) for automatic relative paths, if not uncomment the below function and manually enter # the path where this script is. # setwd("/home/rstudio") #---------# # HELPERS # #---------# plot.new <- function() { dev.new(width=16, height=9) par(cex=0.6, cex.main=1.2, c...
library(tidyverse) # Loading & inspecting the raw data: raw_data <- read_csv(file = "rawData.csv") ## Then View(raw_data) in console -> notice there are "NA", "-999" and "-888" for missing values # Command to remove the problematic missing values codes: raw_data <- read_csv(file = "rawData.csv", na=c("","NA","-9...
/1_converting_raw_data_to_analytic_data_EX_script.R
no_license
apayne03/converting_raw_data_EX
R
false
false
3,304
r
library(tidyverse) # Loading & inspecting the raw data: raw_data <- read_csv(file = "rawData.csv") ## Then View(raw_data) in console -> notice there are "NA", "-999" and "-888" for missing values # Command to remove the problematic missing values codes: raw_data <- read_csv(file = "rawData.csv", na=c("","NA","-9...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alpexrand.R \name{alpexrand} \alias{alpexrand} \title{Pooled excess risk estimate using the alternative random effect model meta-analysis} \usage{ alpexrand(err, u, l, d, type = "excess", test = "FIXE") } \arguments{ \item{err}{A numeric vect...
/Metaan/man/alpexrand.Rd
no_license
Antoine-KDA/Package_Metaan
R
false
true
2,357
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alpexrand.R \name{alpexrand} \alias{alpexrand} \title{Pooled excess risk estimate using the alternative random effect model meta-analysis} \usage{ alpexrand(err, u, l, d, type = "excess", test = "FIXE") } \arguments{ \item{err}{A numeric vect...
predict.dbplsr <-function(object,newdata,type.var="Z",...){ # stop if the object is not a dblm object. if (!inherits(object, "dbplsr")) stop("use only with \"dbplsr\" objects") # controls if (missing(newdata)) stop("newdata matrix must be defined") if (type.var!="Z"&...
/dbstats/R/predict.dbplsr.r
no_license
ingted/R-Examples
R
false
false
4,482
r
predict.dbplsr <-function(object,newdata,type.var="Z",...){ # stop if the object is not a dblm object. if (!inherits(object, "dbplsr")) stop("use only with \"dbplsr\" objects") # controls if (missing(newdata)) stop("newdata matrix must be defined") if (type.var!="Z"&...
rm(list = ls()) library(doParallel) library(doRNG) library(tictoc) library(readr) source("Automatic.R") save.sims.dir <- "BCD_results_all3_r5" save.sims <- TRUE if(save.sims) { if(!dir.exists(save.sims.dir)) dir.create(save.sims.dir) } paras.all3.r5 <- as.matrix(read.table("Round 5 parameters 10000 all 3.txt", se...
/ABC-BCD/Different paras set 1/TC ECM MDE/paras sampl all3 r5.R
permissive
ycx12341/Data-Code-Figures-RSOS-rev
R
false
false
1,202
r
rm(list = ls()) library(doParallel) library(doRNG) library(tictoc) library(readr) source("Automatic.R") save.sims.dir <- "BCD_results_all3_r5" save.sims <- TRUE if(save.sims) { if(!dir.exists(save.sims.dir)) dir.create(save.sims.dir) } paras.all3.r5 <- as.matrix(read.table("Round 5 parameters 10000 all 3.txt", se...
library(RSAGA) ### Name: rsaga.geoprocessor ### Title: Generic R interface for SAGA modules ### Aliases: rsaga.geoprocessor ### Keywords: interface spatial ### ** Examples ## Not run: ##D rsaga.hillshade("dem","hillshade",exaggeration=2) ##D # using the RSAGA geoprocessor: ##D rsaga.geoprocessor("ta_lighting",0,li...
/data/genthat_extracted_code/RSAGA/examples/rsaga.geoprocessor.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
524
r
library(RSAGA) ### Name: rsaga.geoprocessor ### Title: Generic R interface for SAGA modules ### Aliases: rsaga.geoprocessor ### Keywords: interface spatial ### ** Examples ## Not run: ##D rsaga.hillshade("dem","hillshade",exaggeration=2) ##D # using the RSAGA geoprocessor: ##D rsaga.geoprocessor("ta_lighting",0,li...
library(foreign) library(dplyr) # Data Preparation # Load Data setwd("/Users/qg251/Google Drive/Quant3_TA/TA/anes_timeseries_2012_dta") nes2012 <- read.dta("anes_timeseries_2012_Stata12.dta") nes2012 <- data.frame(nes2012, stringsAsFactors = ) # Keep data with RD vote nes2012_RD <- filter(nes2012, postvote_presvtwho ...
/w2/NES2012_prepare.R
no_license
jasonqiangguo/Quant3_Lab
R
false
false
609
r
library(foreign) library(dplyr) # Data Preparation # Load Data setwd("/Users/qg251/Google Drive/Quant3_TA/TA/anes_timeseries_2012_dta") nes2012 <- read.dta("anes_timeseries_2012_Stata12.dta") nes2012 <- data.frame(nes2012, stringsAsFactors = ) # Keep data with RD vote nes2012_RD <- filter(nes2012, postvote_presvtwho ...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinvmat <- function(invmat) inv <<- invmat ...
/cachematrix.R
no_license
cathydatascience/ProgrammingAssignment2
R
false
false
737
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinvmat <- function(invmat) inv <<- invmat ...
# 외부데이터 불러오기 getwd() # 내 프로젝트 경로 setwd("C:/Users/Win10/Desktop/Backup/workspace/GookBe/GB_R/basic_r") # 기준폴더 설정 #read.table(): text파일을 읽음 # header = T: 첫번째 행이 컬럼명인 경우 header로 인식시켜준다 d1 <- read.table("data/excel_exam.txt", header = T) class(d1)# data.frame형태 확인됨 d1 # 데이터가 tap으로 구분된 파일을 읽을 때 사용. # 그냥 read.table()로 읽자 ...
/basic_r/code/01basic/script04(외부데이터읽기).R
no_license
JaeHyun-Ban/GB_R
R
false
false
1,840
r
# 외부데이터 불러오기 getwd() # 내 프로젝트 경로 setwd("C:/Users/Win10/Desktop/Backup/workspace/GookBe/GB_R/basic_r") # 기준폴더 설정 #read.table(): text파일을 읽음 # header = T: 첫번째 행이 컬럼명인 경우 header로 인식시켜준다 d1 <- read.table("data/excel_exam.txt", header = T) class(d1)# data.frame형태 확인됨 d1 # 데이터가 tap으로 구분된 파일을 읽을 때 사용. # 그냥 read.table()로 읽자 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appsync_operations.R \name{appsync_get_resolver} \alias{appsync_get_resolver} \title{Retrieves a Resolver object} \usage{ appsync_get_resolver(apiId, typeName, fieldName) } \arguments{ \item{apiId}{[required] The API ID.} \item{typeName}{[re...
/paws/man/appsync_get_resolver.Rd
permissive
johnnytommy/paws
R
false
true
612
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appsync_operations.R \name{appsync_get_resolver} \alias{appsync_get_resolver} \title{Retrieves a Resolver object} \usage{ appsync_get_resolver(apiId, typeName, fieldName) } \arguments{ \item{apiId}{[required] The API ID.} \item{typeName}{[re...
plot_portfolio_price <- function(data, ggplot = TRUE){ p <- data %>% mutate(label_text = str_glue("Date: {date} Price: {scales::dollar(adjusted)}")) %>% mutate(symbol = fct_reorder(symbol, desc(adjusted))) %>% ggplot(aes(date, adjusted, colour = symbol, group = symbol)...
/older_version/00_scripts/portfolio_analysis_functions.R
no_license
StephenLung/Part-5-Draft
R
false
false
1,831
r
plot_portfolio_price <- function(data, ggplot = TRUE){ p <- data %>% mutate(label_text = str_glue("Date: {date} Price: {scales::dollar(adjusted)}")) %>% mutate(symbol = fct_reorder(symbol, desc(adjusted))) %>% ggplot(aes(date, adjusted, colour = symbol, group = symbol)...
jpeg("01.jpg") plot(1:30,dpois(1:30,10),type="l",lty=3,lwd=3,col="red",frame=F,xlab="x",ylab="Probabilidade") points(1:30,dnorm(1:30,10,sqrt(10)),type="l",lty=3,lwd=3,col="blue") legend("topright",legend=c("Poisson","Normal"),lty=3,lwd=3,col=c("red","blue"),bty="n") dev.off() rm(list=ls()) tamanho_grid <- 10 unidade_a...
/poison_process.R
no_license
Squiercg/recologia
R
false
false
3,105
r
jpeg("01.jpg") plot(1:30,dpois(1:30,10),type="l",lty=3,lwd=3,col="red",frame=F,xlab="x",ylab="Probabilidade") points(1:30,dnorm(1:30,10,sqrt(10)),type="l",lty=3,lwd=3,col="blue") legend("topright",legend=c("Poisson","Normal"),lty=3,lwd=3,col=c("red","blue"),bty="n") dev.off() rm(list=ls()) tamanho_grid <- 10 unidade_a...
source("/home/mr984/diversity_metrics/scripts/checkplot_initials.R") source("/home/mr984/diversity_metrics/scripts/checkplot_inf.R") reps<-50 outerreps<-1000 size<-rev(round(10^seq(2, 5, 0.25)))[ 2 ] nc<-12 plan(strategy=multisession, workers=nc) map(rev(1:outerreps), function(x){ start<-Sys.time() out<-checkpl...
/scripts/checkplots_for_parallel_amarel/asy_104.R
no_license
dushoff/diversity_metrics
R
false
false
533
r
source("/home/mr984/diversity_metrics/scripts/checkplot_initials.R") source("/home/mr984/diversity_metrics/scripts/checkplot_inf.R") reps<-50 outerreps<-1000 size<-rev(round(10^seq(2, 5, 0.25)))[ 2 ] nc<-12 plan(strategy=multisession, workers=nc) map(rev(1:outerreps), function(x){ start<-Sys.time() out<-checkpl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coo-shapedescriptors.R \name{coo_theta3} \alias{coo_theta3} \title{Calculate the angle formed by three (x; y) coordinates} \usage{ coo_theta3(m, method = c("atan2", "acos")[1]) } \arguments{ \item{m}{a 3x2 \code{matrix} of 3 points (rows) and...
/man/coo_theta3.Rd
no_license
stas-malavin/Momocs
R
false
true
1,282
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coo-shapedescriptors.R \name{coo_theta3} \alias{coo_theta3} \title{Calculate the angle formed by three (x; y) coordinates} \usage{ coo_theta3(m, method = c("atan2", "acos")[1]) } \arguments{ \item{m}{a 3x2 \code{matrix} of 3 points (rows) and...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Baseline.R \name{plotBaselineSummary} \alias{plotBaselineSummary} \title{Plots BASELINe summary statistics} \usage{ plotBaselineSummary(baseline, idColumn, groupColumn = NULL, groupColors = NULL, subsetRegions = NULL, facetBy = c("region", ...
/man/plotBaselineSummary.Rd
no_license
Bhanditz/shazam
R
false
true
4,275
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Baseline.R \name{plotBaselineSummary} \alias{plotBaselineSummary} \title{Plots BASELINe summary statistics} \usage{ plotBaselineSummary(baseline, idColumn, groupColumn = NULL, groupColors = NULL, subsetRegions = NULL, facetBy = c("region", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/new.timecox.r \name{timecox} \alias{timecox} \title{Fit Cox model with partly timevarying effects.} \usage{ timecox( formula = formula(data), data, weights, subset, na.action, start.time = 0, max.time = NULL, id = NULL, clus...
/man/timecox.Rd
no_license
scheike/timereg
R
false
true
5,605
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/new.timecox.r \name{timecox} \alias{timecox} \title{Fit Cox model with partly timevarying effects.} \usage{ timecox( formula = formula(data), data, weights, subset, na.action, start.time = 0, max.time = NULL, id = NULL, clus...
options(mc.cores=1) # load the libraries library(e1071) # load the model load("tri_naiveBayes.rds") # create a test string input_word <- "your in" prediction <- function(input_word) { # split it into separate words word_split <- strsplit(input_word, split = " " ) # encode as a factor using the same levels ...
/predict.R
no_license
apmanikandan/MyApp
R
false
false
634
r
options(mc.cores=1) # load the libraries library(e1071) # load the model load("tri_naiveBayes.rds") # create a test string input_word <- "your in" prediction <- function(input_word) { # split it into separate words word_split <- strsplit(input_word, split = " " ) # encode as a factor using the same levels ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Ind_Evaluation_30112018.R \name{adjusted.weight.MI} \alias{adjusted.weight.MI} \title{Calculates the adjusted weight for a given main-item of a linguistic questionnaire} \usage{ adjusted.weight.MI(x, i, j, b_j, b_jk, SI) } \arguments{ \item{x...
/man/adjusted.weight.MI.Rd
no_license
cran/FuzzySTs
R
false
true
2,660
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Ind_Evaluation_30112018.R \name{adjusted.weight.MI} \alias{adjusted.weight.MI} \title{Calculates the adjusted weight for a given main-item of a linguistic questionnaire} \usage{ adjusted.weight.MI(x, i, j, b_j, b_jk, SI) } \arguments{ \item{x...
library(data.table) library(dplyr) #change in global sci_dump1 <- read.csv("./Data/sci_dump.csv", header = TRUE, stringsAsFactors = FALSE ,check.names = TRUE) sci_dump1 <- as.data.table(sci_dump1) sci_dump1 <- sci_dump1[as.Date(sci_dump1$start) > as.Date("2017-08-24")] sci_dump1[which(sci_du...
/global.R
no_license
girdhari-bora/sci-helpline
R
false
false
7,356
r
library(data.table) library(dplyr) #change in global sci_dump1 <- read.csv("./Data/sci_dump.csv", header = TRUE, stringsAsFactors = FALSE ,check.names = TRUE) sci_dump1 <- as.data.table(sci_dump1) sci_dump1 <- sci_dump1[as.Date(sci_dump1$start) > as.Date("2017-08-24")] sci_dump1[which(sci_du...
# -------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------- # # Amauri Silva - Matrícula: A58330068 # Caio Ramos - Matrícula: A58338177 # Isabela Massaro - Matrícul...
/games_gfk_brasil.R
no_license
ramoscaio/r-resource
R
false
false
685
r
# -------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------- # # Amauri Silva - Matrícula: A58330068 # Caio Ramos - Matrícula: A58338177 # Isabela Massaro - Matrícul...
#' @title Estimation and Inference on RNA Differential Modification Log2 Fold Changes with Generalized Linear Model. #' #' @param sep a \code{\link{SummarizedExomePeak}} object. #' #' @param glm_type a \code{character} speciefies the type of Generalized Linear Model (GLM) fitted for the purpose of statistical inference...
/R/glmDM.R
no_license
ShutaoChen97/exomePeak2
R
false
false
12,083
r
#' @title Estimation and Inference on RNA Differential Modification Log2 Fold Changes with Generalized Linear Model. #' #' @param sep a \code{\link{SummarizedExomePeak}} object. #' #' @param glm_type a \code{character} speciefies the type of Generalized Linear Model (GLM) fitted for the purpose of statistical inference...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{previous_consumptions} \alias{previous_consumptions} \title{Get values of previous consumptions for defined number of days.} \usage{ previous_consumptions(data, consumption_prefix = "consumption_", num_days = 7) } \arguments{ ...
/lpg.short.pred/man/previous_consumptions.Rd
no_license
adaa-polsl/dss4lpg
R
false
true
603
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{previous_consumptions} \alias{previous_consumptions} \title{Get values of previous consumptions for defined number of days.} \usage{ previous_consumptions(data, consumption_prefix = "consumption_", num_days = 7) } \arguments{ ...
library(tidyverse) library(caret) getwd() list.files() train_house <- read_csv('../train.csv') test_house <- read_csv('../test.csv') train_house <- train_house %>% mutate(Notes = 'Train') test_house <- test_house %>% mutate(Notes = 'Test') df_full <- train_house %>% bind_rows(test_house) df_full<- df_full...
/House-Prices-Analysis.R
no_license
kandujiwandono/House-Prices
R
false
false
2,869
r
library(tidyverse) library(caret) getwd() list.files() train_house <- read_csv('../train.csv') test_house <- read_csv('../test.csv') train_house <- train_house %>% mutate(Notes = 'Train') test_house <- test_house %>% mutate(Notes = 'Test') df_full <- train_house %>% bind_rows(test_house) df_full<- df_full...
#' @title Fit splines and perform f-Test #' #' @description Fit splines through TR reference dataset and extrapolates relative 2D-TPP datapoints, #' then compares spline fits of different treatments with non-treatment with an f-test #' #' @param data_2D DEPRECATED #' @param data result data.frame from a 2D-TPP C...
/R/tpp2dSplineFitAndTest.R
no_license
andreaschrader/TPP
R
false
false
5,838
r
#' @title Fit splines and perform f-Test #' #' @description Fit splines through TR reference dataset and extrapolates relative 2D-TPP datapoints, #' then compares spline fits of different treatments with non-treatment with an f-test #' #' @param data_2D DEPRECATED #' @param data result data.frame from a 2D-TPP C...
polynomial.values <- function( polynomials, x ) { ### ### This function returns a list with n+1 elements ### containing the values of the order k polynomials ### for orders k=0,1,...,n and for the given argument x ### ### Parameters ### polynomials = a list of polynomial objects ### x = the argument which can ...
/orthopolynom/R/polynomial.values.R
no_license
ingted/R-Examples
R
false
false
588
r
polynomial.values <- function( polynomials, x ) { ### ### This function returns a list with n+1 elements ### containing the values of the order k polynomials ### for orders k=0,1,...,n and for the given argument x ### ### Parameters ### polynomials = a list of polynomial objects ### x = the argument which can ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate.dor.R \name{calculate.dor} \alias{calculate.dor} \title{calculate DoR between two vector} \usage{ calculate.dor(xx, yy) } \description{ calculate DoR between two vector }
/man/calculate.dor.Rd
permissive
bobjiang6/RSd
R
false
true
270
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate.dor.R \name{calculate.dor} \alias{calculate.dor} \title{calculate DoR between two vector} \usage{ calculate.dor(xx, yy) } \description{ calculate DoR between two vector }
setwd("C:/Users/Vishal/Desktop/jigsaw/clustering/Topic 11.1 - Clustering/Topic 11.1 - Clustering/Heirarchichal Clustering") options(scipen=10) ##--------------------------------------Step1 : Read the data--------------------------------------------- europe<-read.csv("europe.csv") names(europe) dim(europe) ##---------...
/Topic 11.1 - Clustering/Topic 11.1 - Clustering/Heirarchichal Clustering/hierarchical clustering.R
no_license
vishalshinde093/R-code
R
false
false
3,451
r
setwd("C:/Users/Vishal/Desktop/jigsaw/clustering/Topic 11.1 - Clustering/Topic 11.1 - Clustering/Heirarchichal Clustering") options(scipen=10) ##--------------------------------------Step1 : Read the data--------------------------------------------- europe<-read.csv("europe.csv") names(europe) dim(europe) ##---------...
# show the plot by calling <source ("ben-runForT10-11.R")> in the R Console t1K_300 <- read.csv("benFull-linkcutsT300sizes-1000.csv") t500_300 <- read.csv("benFull-linkcutsT300sizes-500.csv") t300 <- read.csv("benFull-linkcutsT300sizes-300.csv") xrange = range(2400:3010) # (300:460), (1500:1660) yrange = range(...
/R/Full/linkcuts/benFull-300-each-zoom.R
no_license
jcsaenzcarrasco/thesis
R
false
false
1,480
r
# show the plot by calling <source ("ben-runForT10-11.R")> in the R Console t1K_300 <- read.csv("benFull-linkcutsT300sizes-1000.csv") t500_300 <- read.csv("benFull-linkcutsT300sizes-500.csv") t300 <- read.csv("benFull-linkcutsT300sizes-300.csv") xrange = range(2400:3010) # (300:460), (1500:1660) yrange = range(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/perturb.R \name{perturb_uniform} \alias{perturb_uniform} \title{Perturb voronoise tiles uniformly} \usage{ perturb_uniform(noise = 0.1) } \arguments{ \item{noise}{width of the uniform} } \value{ A function that takes data as input } \descript...
/man/perturb_uniform.Rd
permissive
nandhinianandj/voronoise
R
false
true
361
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/perturb.R \name{perturb_uniform} \alias{perturb_uniform} \title{Perturb voronoise tiles uniformly} \usage{ perturb_uniform(noise = 0.1) } \arguments{ \item{noise}{width of the uniform} } \value{ A function that takes data as input } \descript...
panel_div <- function(class_type, content) { div(class = sprintf("panel panel-%s", class_type), div(class = "panel-body", content) ) } cell_suspension_culture_reports <- fluidRow( column(12,br(), br(), div(id = "cell_suspension_culture_reports_Form", uiO...
/tabs/server/control_form/reports/cell_suspension_culture_reports.R
no_license
mkaranja/Banana-Tracker
R
false
false
1,489
r
panel_div <- function(class_type, content) { div(class = sprintf("panel panel-%s", class_type), div(class = "panel-body", content) ) } cell_suspension_culture_reports <- fluidRow( column(12,br(), br(), div(id = "cell_suspension_culture_reports_Form", uiO...
library(wordbankr) library(tidyr) library(dplyr) library(ggplot2) library(langcog) library(readr) library(SnowballC) library(boot) library(purrr) theme_set(theme_mikabr() + theme(panel.grid = element_blank(), strip.background = element_blank())) font <- "Open Sans" eng_ws <- get_instrumen...
/cdi_pred.R
no_license
mikabr/gender-input
R
false
false
17,354
r
library(wordbankr) library(tidyr) library(dplyr) library(ggplot2) library(langcog) library(readr) library(SnowballC) library(boot) library(purrr) theme_set(theme_mikabr() + theme(panel.grid = element_blank(), strip.background = element_blank())) font <- "Open Sans" eng_ws <- get_instrumen...
create.constraints.Vect.Matrix <- function(NBDA_data_object, num_networks, num_ILVs){ suppressWarnings( if(NBDA_data_object@asoc_ilv=="ILVabsent"){ num.ILV.asoc <- 0 } else {num.ILV.asoc <- length(NBDA_data_object@asoc_ilv)}) suppressWarnings( if(NBDA_data_object@int_ilv=="ILVabsent"){ nu...
/CODE/NBDAconstraintsVectMatrixFun.R
no_license
CarterLoftus/social_sleep
R
false
false
5,303
r
create.constraints.Vect.Matrix <- function(NBDA_data_object, num_networks, num_ILVs){ suppressWarnings( if(NBDA_data_object@asoc_ilv=="ILVabsent"){ num.ILV.asoc <- 0 } else {num.ILV.asoc <- length(NBDA_data_object@asoc_ilv)}) suppressWarnings( if(NBDA_data_object@int_ilv=="ILVabsent"){ nu...
# Week 10, data.table / SQL / dplyr activity # # The examples below use the Lahman data from the SQL notes. Each example # provides a snippet of data.table, SQL, or dplyr code for you to translate # into the other two languages. # # For each question, fill in the missing dplyr, SQL, or data.table # translations. #...
/activities/week10/week10_translations.R
no_license
ZhihaoXu/Stats506_public
R
false
false
4,683
r
# Week 10, data.table / SQL / dplyr activity # # The examples below use the Lahman data from the SQL notes. Each example # provides a snippet of data.table, SQL, or dplyr code for you to translate # into the other two languages. # # For each question, fill in the missing dplyr, SQL, or data.table # translations. #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plugins.R \name{tau_tooltip} \alias{tau_tooltip} \title{Add a TauCharts tooltip} \usage{ tau_tooltip(tau, fields = NULL, formatters = NULL) } \arguments{ \item{tau}{taucharts object} \item{fields}{character vector of fields to display in the...
/man/tau_tooltip.Rd
no_license
Tutuchan/taucharts
R
false
true
1,227
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plugins.R \name{tau_tooltip} \alias{tau_tooltip} \title{Add a TauCharts tooltip} \usage{ tau_tooltip(tau, fields = NULL, formatters = NULL) } \arguments{ \item{tau}{taucharts object} \item{fields}{character vector of fields to display in the...
# # This file will preprocess the IFR / Hopitalized fits from other papers, then simulate. # Study / Analysis Characteristics: (Set in function) Age_Range = '20 to 29' Pctile = '95%' Participants = 35 # Note: Both provide a fit for each of IFR and Hospitalization by age for all infections (including asymptomatics.)...
/Riskmodel_Alpha.R
no_license
choiben314/RiskModel
R
false
false
6,493
r
# # This file will preprocess the IFR / Hopitalized fits from other papers, then simulate. # Study / Analysis Characteristics: (Set in function) Age_Range = '20 to 29' Pctile = '95%' Participants = 35 # Note: Both provide a fit for each of IFR and Hospitalization by age for all infections (including asymptomatics.)...
library(rvest) library(tidyverse) library(stringr) url <- "https://en.wikipedia.org/w/index.php?title=Opinion_polling_for_the_United_Kingdom_European_Union_membership_referendum&oldid=896735054" tab <- read_html(url) %>% html_nodes("table") polls <- tab[[5]] %>% html_table(fill = TRUE) col_names <- c("dates", "remain",...
/text_manipulation.R
no_license
DaccioZilla/DataScience-HarvardX
R
false
false
739
r
library(rvest) library(tidyverse) library(stringr) url <- "https://en.wikipedia.org/w/index.php?title=Opinion_polling_for_the_United_Kingdom_European_Union_membership_referendum&oldid=896735054" tab <- read_html(url) %>% html_nodes("table") polls <- tab[[5]] %>% html_table(fill = TRUE) col_names <- c("dates", "remain",...
# prepare the data instrumentA <- c( 0.86, 0.82, 0.75, 0.61, 0.89, 0.64, 0.81, 0.68, 0.65 ) instrumentB <- c( 0.87, 0.74, 0.63, 0.55, 0.76, 0.70, 0.69, 0.57, 0.53 ) # take a glimpse at data summary(instrumentA) summary(instrumentB) # compute the variances c(var(instrumentA), var(instrumentB)) var(instrumentA) /...
/StatisticalInferences/dem_10_76.R
permissive
m-RezaFahlevi/Mathematica-Works
R
false
false
412
r
# prepare the data instrumentA <- c( 0.86, 0.82, 0.75, 0.61, 0.89, 0.64, 0.81, 0.68, 0.65 ) instrumentB <- c( 0.87, 0.74, 0.63, 0.55, 0.76, 0.70, 0.69, 0.57, 0.53 ) # take a glimpse at data summary(instrumentA) summary(instrumentB) # compute the variances c(var(instrumentA), var(instrumentB)) var(instrumentA) /...
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(RSenaps) ## ----------------------------------------------------------------------------- senaps_options(apikey = Sys.getenv('SENAPS_API_KEY'))
/vignettes/vignette.R
permissive
csiro-crop-informatics/rsenaps
R
false
false
296
r
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(RSenaps) ## ----------------------------------------------------------------------------- senaps_options(apikey = Sys.getenv('SENAPS_API_KEY'))
#' ######################################## #' CLR binomial model plots #' ######################################## #' #' depends: output from m_clr_binomial_models_replacement.R script #' #' ######################################## #' COMBINE CLR COHORTS: LRTI ~ Sa ASVs #' ########################################...
/scripts/m_clr_binomial_plots.R
permissive
bjklab/Interspecific-interactions-define-Staphylococcus-aureus-infection-risk
R
false
false
21,998
r
#' ######################################## #' CLR binomial model plots #' ######################################## #' #' depends: output from m_clr_binomial_models_replacement.R script #' #' ######################################## #' COMBINE CLR COHORTS: LRTI ~ Sa ASVs #' ########################################...
enableJIT(level) Sweave("analyseSWATH.Rnw") tools::texi2dvi("analyseSWATH.tex",pdf=TRUE)
/vignettes/runAnalyseSWATH.R
no_license
wolski/imsbInfer
R
false
false
88
r
enableJIT(level) Sweave("analyseSWATH.Rnw") tools::texi2dvi("analyseSWATH.tex",pdf=TRUE)
library(weightedScores) ### Name: iee.ord ### Title: Maximum Likelihood for Ordinal Model ### Aliases: iee.ord ### Keywords: models ### ** Examples ################################################################################ # Ordinal regression ###################################...
/data/genthat_extracted_code/weightedScores/examples/iee.ord.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,277
r
library(weightedScores) ### Name: iee.ord ### Title: Maximum Likelihood for Ordinal Model ### Aliases: iee.ord ### Keywords: models ### ** Examples ################################################################################ # Ordinal regression ###################################...
library(psych) library(ggplot2) library(Hmisc) library(car) library(nnet) setwd("C:\\Users\\abhis\\OneDrive\\Desktop\\Semester 2\\MSIS 5223\\Project") you_data = read.csv("youdata.csv", header = T) you_data = edit(you_data) ## Subsetting data you_sub = you_data[c(5,6,7,8,11)] you_data1 <- you_data[1:80,]...
/2linear_regression.R
no_license
menonharshita/Projects
R
false
false
1,264
r
library(psych) library(ggplot2) library(Hmisc) library(car) library(nnet) setwd("C:\\Users\\abhis\\OneDrive\\Desktop\\Semester 2\\MSIS 5223\\Project") you_data = read.csv("youdata.csv", header = T) you_data = edit(you_data) ## Subsetting data you_sub = you_data[c(5,6,7,8,11)] you_data1 <- you_data[1:80,]...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MPs.R \name{DD_i4} \alias{DD_i4} \title{A rapid 3 parameter observation error only delay difference model FOR INDEX 4 (GOM_LAR_SUV) conditioned on effort and parameterized with UMSY and MSY leading (a management procedure of class MP).} \usag...
/R_package/ABTMSE/man/DD_i4.Rd
no_license
pl202/abft-mse
R
false
true
886
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MPs.R \name{DD_i4} \alias{DD_i4} \title{A rapid 3 parameter observation error only delay difference model FOR INDEX 4 (GOM_LAR_SUV) conditioned on effort and parameterized with UMSY and MSY leading (a management procedure of class MP).} \usag...
library(shiny) library(magrittr) library(dplyr) library(ggplot2) library(RColorBrewer) load("myData.RData") # Define UI for gender diversity app ---- ui <- fluidPage( # App title ---- #titlePanel("Gender diversity: film industry VS series industries"), fluidRow( column(2, ...
/analysis/barplots/shiny_app/app.R
no_license
CarolineBarret/Gender-diversity-series-industry
R
false
false
2,900
r
library(shiny) library(magrittr) library(dplyr) library(ggplot2) library(RColorBrewer) load("myData.RData") # Define UI for gender diversity app ---- ui <- fluidPage( # App title ---- #titlePanel("Gender diversity: film industry VS series industries"), fluidRow( column(2, ...
# Loading the new data # New data was aggregated by KK # Also reflects only Z1 library(reshape2) library(dplyr) knew = read.csv("SubroiAGGR - jun 3.csv") source("MakeNormOL.R") # colnames(knew)[1] = "ID" # # knew = knew %>% filter(! ID %in% c("8351", "8352")) # formerly MouseID # Melt the data, all measurements in ...
/LoadProcessZ1New.R
no_license
westleydang/AGE11-validation1
R
false
false
3,489
r
# Loading the new data # New data was aggregated by KK # Also reflects only Z1 library(reshape2) library(dplyr) knew = read.csv("SubroiAGGR - jun 3.csv") source("MakeNormOL.R") # colnames(knew)[1] = "ID" # # knew = knew %>% filter(! ID %in% c("8351", "8352")) # formerly MouseID # Melt the data, all measurements in ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvn_mcar_30_unstd_nb.del.R \name{mvn_mcar_30_nb.del_pcci_task} \alias{mvn_mcar_30_nb.del_pcci_task} \title{Nonparametric Bootstrap Percentile Confidence Intervals for Indirect Effect in a Simple Mediation Model for Data Generated from a Multi...
/man/mvn_mcar_30_nb.del_pcci_task.Rd
permissive
jeksterslabds/jeksterslabRmedsimple
R
false
true
11,864
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvn_mcar_30_unstd_nb.del.R \name{mvn_mcar_30_nb.del_pcci_task} \alias{mvn_mcar_30_nb.del_pcci_task} \title{Nonparametric Bootstrap Percentile Confidence Intervals for Indirect Effect in a Simple Mediation Model for Data Generated from a Multi...
## makeCacheMatrix creates a special matrix, cacheSolve computes the inverse of the special "matrix" ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { ##creating variable M to store the inverse of the created matrix m <- NULL ...
/cachematrix.R
no_license
gyanster/ProgrammingAssignment2
R
false
false
1,464
r
## makeCacheMatrix creates a special matrix, cacheSolve computes the inverse of the special "matrix" ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { ##creating variable M to store the inverse of the created matrix m <- NULL ...
#' @title Age, MaritalStatus, Sex by SA3, Year #' @description Number of personsAge, MaritalStatus, Sex by SA3, Year #' @format 161,100 observations and 6 variables. "SA3__Year_Age_MaritalStatus_Sex"
/R/SA3__Year_Age_MaritalStatus_Sex.R
no_license
HughParsonage/Census2016.DataPack.TimeSeries
R
false
false
205
r
#' @title Age, MaritalStatus, Sex by SA3, Year #' @description Number of personsAge, MaritalStatus, Sex by SA3, Year #' @format 161,100 observations and 6 variables. "SA3__Year_Age_MaritalStatus_Sex"
# Rscript script/starGen.r -F fits/test -X 1024 -Y 1024 -N 2000 -A 0.5 -B 1 -C 700 -D 20000 -M cauchy -G 100 -S 30 # pouzivanie # -F kam sa ulozi fits subor (zadava sa bez pripony fits), pdf-ka aj tablka s hviezdami sa ulozi do adresara odkial si skript spustil # -X pocet stlpcov # -Y pocet riadkov # -N pocet hviezd # ...
/codes/script_threads/starGen0.r
no_license
kyselica12/IPE-SC
R
false
false
15,001
r
# Rscript script/starGen.r -F fits/test -X 1024 -Y 1024 -N 2000 -A 0.5 -B 1 -C 700 -D 20000 -M cauchy -G 100 -S 30 # pouzivanie # -F kam sa ulozi fits subor (zadava sa bez pripony fits), pdf-ka aj tablka s hviezdami sa ulozi do adresara odkial si skript spustil # -X pocet stlpcov # -Y pocet riadkov # -N pocet hviezd # ...
library(shiny) shinyServer( function(input,output){ } )
/shiny/shiny01/server.R
no_license
ShruthiRavikanti/shiny-app
R
false
false
83
r
library(shiny) shinyServer( function(input,output){ } )
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AuthenticationManager.R \name{restoreAuth} \alias{restoreAuth} \alias{restoreAuth,AuthenticationManager-method} \title{Restore authentication (after being disabled with \code{obscureAuth}).} \usage{ restoreAuth(.Object) \S4method{restoreAuth...
/man/restoreAuth.Rd
permissive
DataONEorg/rdataone
R
false
true
590
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AuthenticationManager.R \name{restoreAuth} \alias{restoreAuth} \alias{restoreAuth,AuthenticationManager-method} \title{Restore authentication (after being disabled with \code{obscureAuth}).} \usage{ restoreAuth(.Object) \S4method{restoreAuth...
#' --- #' title: "MLB Payroll Analysis" #' author: "Nicholas Ezyk" #' date: "21 March 2015" #' output: pdf_document #' --- #loading the payroll data from the Python document payroll <- read.table("~/Documents/payroll.txt", header=TRUE, quote="\"") summary(payroll) bank <- payroll$PayrollMillions wins <- payroll$X20...
/payroll.R
no_license
nicholasezyk/MLBPayrollSimple
R
false
false
1,740
r
#' --- #' title: "MLB Payroll Analysis" #' author: "Nicholas Ezyk" #' date: "21 March 2015" #' output: pdf_document #' --- #loading the payroll data from the Python document payroll <- read.table("~/Documents/payroll.txt", header=TRUE, quote="\"") summary(payroll) bank <- payroll$PayrollMillions wins <- payroll$X20...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataDivergence.R \docType{data} \name{myDivergenceData} \alias{myDivergenceData} \title{Sample Divergence data frame} \format{ A data frame containing divergent and analyzed sites for selected (i) and neutral (0) classes } \usage{ myDivergenc...
/man/myDivergenceData.Rd
no_license
BGD-UAB/iMKT
R
false
true
614
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataDivergence.R \docType{data} \name{myDivergenceData} \alias{myDivergenceData} \title{Sample Divergence data frame} \format{ A data frame containing divergent and analyzed sites for selected (i) and neutral (0) classes } \usage{ myDivergenc...
## netcontext.R - Using ggnetwork library to "project" gene models onto their network context ## ## by Artem Sokolov library( optparse ) ## Define accepted command-line arguments opts <- list( make_option( c( "-n", "--network" ), type="character", default=NULL, help="A .sif file defining the inter...
/netcontext.R
permissive
gjhanchem/niceplots
R
false
false
4,523
r
## netcontext.R - Using ggnetwork library to "project" gene models onto their network context ## ## by Artem Sokolov library( optparse ) ## Define accepted command-line arguments opts <- list( make_option( c( "-n", "--network" ), type="character", default=NULL, help="A .sif file defining the inter...
#' Rename sequences #' #' This function renames sequences in fasta files based on a correspondence table. #' #' @param fasta_files Optional, a vector of paths to the fasta files that should be renamed. If this argument is missing, the function automatically detects and uses all the fasta files present in the working di...
/R/rename_sequences.R
permissive
tardipede/concatipede
R
false
false
6,295
r
#' Rename sequences #' #' This function renames sequences in fasta files based on a correspondence table. #' #' @param fasta_files Optional, a vector of paths to the fasta files that should be renamed. If this argument is missing, the function automatically detects and uses all the fasta files present in the working di...
### actuar: Actuarial Functions and Heavy Tailed Distributions ### ### Definition of a generic function for the Value at Risk. Currently, ### there is no default method for this function. The only method is ### for objects of class 'aggregateDist'. ### ### AUTHORS: Tommy Ouellet, Vincent Goulet <vincent.goulet@act.ulav...
/R/VaR.R
no_license
cran/actuar
R
false
false
563
r
### actuar: Actuarial Functions and Heavy Tailed Distributions ### ### Definition of a generic function for the Value at Risk. Currently, ### there is no default method for this function. The only method is ### for objects of class 'aggregateDist'. ### ### AUTHORS: Tommy Ouellet, Vincent Goulet <vincent.goulet@act.ulav...
e0a97bd53d2a631a7938319f31032ccb dungeon_i25-m12-u3-v0.pddl_planlen=96.qdimacs 68749 649805
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i25-m12-u3-v0.pddl_planlen=96/dungeon_i25-m12-u3-v0.pddl_planlen=96.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
91
r
e0a97bd53d2a631a7938319f31032ccb dungeon_i25-m12-u3-v0.pddl_planlen=96.qdimacs 68749 649805
# set working directory setwd("~/Desktop/Postgraduate/CASA0005/assessment") # library useful packages library(tidyverse) library(tmap) library(geojsonio) library(plotly) library(rgdal) library(broom) library(mapview) library(crosstalk) library(sf) library(sp) library(spdep) library(car) library(fs) library(janitor) li...
/accessment_Rcode.R
no_license
zcakhea/gis
R
false
false
10,652
r
# set working directory setwd("~/Desktop/Postgraduate/CASA0005/assessment") # library useful packages library(tidyverse) library(tmap) library(geojsonio) library(plotly) library(rgdal) library(broom) library(mapview) library(crosstalk) library(sf) library(sp) library(spdep) library(car) library(fs) library(janitor) li...
init <- function() { type <- 'plot' box_title <- 'Labeled / unlabeled precursor ion intensity, PEP < 0.01' help_text <- 'Labeled / unlabeled precursor ion intensity. Only compatible with searches performed with TMT as a variable mod.' source_file <- 'evidence' repDiv <- '' .validate <- function(data, ...
/modules/max_quant/080_Carrier/carrier_02_RelativeAbundance.R
permissive
SlavovLab/DO-MS
R
false
false
2,863
r
init <- function() { type <- 'plot' box_title <- 'Labeled / unlabeled precursor ion intensity, PEP < 0.01' help_text <- 'Labeled / unlabeled precursor ion intensity. Only compatible with searches performed with TMT as a variable mod.' source_file <- 'evidence' repDiv <- '' .validate <- function(data, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/actions.R \name{docker_cli} \alias{docker_cli} \alias{build_image} \title{Create \href{https://github.com/actions/docker/tree/aea64bb1b97c42fa69b90523667fef56b90d7cff}{Docker CLI action} to run \href{http://docker.com}{Docker}} \usage{ docker...
/man/docker_cli.Rd
permissive
Testuser13029/ghactions
R
false
true
2,528
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/actions.R \name{docker_cli} \alias{docker_cli} \alias{build_image} \title{Create \href{https://github.com/actions/docker/tree/aea64bb1b97c42fa69b90523667fef56b90d7cff}{Docker CLI action} to run \href{http://docker.com}{Docker}} \usage{ docker...
#Leer datos Datos <- read.table("household_power_consumption.txt", sep = ";",skip = 1) names(Datos) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage", "Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") a<-paste(Datos$Date, Datos$Time, sep=" ") Merged...
/plot4.R
no_license
jhonatansgg/ExData_Plotting1
R
false
false
1,863
r
#Leer datos Datos <- read.table("household_power_consumption.txt", sep = ";",skip = 1) names(Datos) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage", "Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") a<-paste(Datos$Date, Datos$Time, sep=" ") Merged...
# Exercise 3: interactive Shiny apps # Load the shiny, ggplot2, and dplyr libraries library("shiny") library("ggplot2") library("dplyr") # You will again be working with the `diamonds` data set provided by ggplot2 # Use dplyr's `sample_n()` function to get a random 1000 rows from the data set # Store this sample in a...
/chapter-19-exercises/exercise-3/app.R
permissive
tmroach75/book-exercises
R
false
false
3,721
r
# Exercise 3: interactive Shiny apps # Load the shiny, ggplot2, and dplyr libraries library("shiny") library("ggplot2") library("dplyr") # You will again be working with the `diamonds` data set provided by ggplot2 # Use dplyr's `sample_n()` function to get a random 1000 rows from the data set # Store this sample in a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/find_topics.R \name{find_topics} \alias{find_topics} \title{Perform topic estimation on a themetadata object} \usage{ find_topics(themetadata_object, K, sigma_prior = 0, model = NULL, iters = 500, tol = 1e-05, batches = 1, init_type = c("Sp...
/man/find_topics.Rd
no_license
lrq3000/themetagenomics
R
false
true
4,916
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/find_topics.R \name{find_topics} \alias{find_topics} \title{Perform topic estimation on a themetadata object} \usage{ find_topics(themetadata_object, K, sigma_prior = 0, model = NULL, iters = 500, tol = 1e-05, batches = 1, init_type = c("Sp...
context("edge_connectivity") test_that("edge_connectivity works", { library(igraph) gc <- function(graph) { clu <- components(graph) induced_subgraph(graph, which(clu$membership==which.max(clu$csize))) } g <- gc(sample_gnp(30, 8/30)) ec <- edge_connectivity(g) ecST <- Inf for (j in 1:(vcount(...
/R-Portable/App/R-Portable/library/igraph/tests/test_edge.connectivity.R
permissive
voltek62/seo-viz-install
R
false
false
1,353
r
context("edge_connectivity") test_that("edge_connectivity works", { library(igraph) gc <- function(graph) { clu <- components(graph) induced_subgraph(graph, which(clu$membership==which.max(clu$csize))) } g <- gc(sample_gnp(30, 8/30)) ec <- edge_connectivity(g) ecST <- Inf for (j in 1:(vcount(...
library(dplyr) library(tidyr) dat <- read.csv2("https://raw.githubusercontent.com/michbur/soccer-data/master/PL_dat.csv") dat %>% head compute_points <- function(x, y) { ifelse(x > y, 3, ifelse(x == y, 1, 0)) } point_dat <- mutate( dat, home_team_points = compute_points(home_team_goal, away_team_goal), away_...
/PraceDomowe/PD5/gr2/MałkińskiMikołaj/data-processing.R
no_license
ramusz1/WizualizacjaDanych2018
R
false
false
905
r
library(dplyr) library(tidyr) dat <- read.csv2("https://raw.githubusercontent.com/michbur/soccer-data/master/PL_dat.csv") dat %>% head compute_points <- function(x, y) { ifelse(x > y, 3, ifelse(x == y, 1, 0)) } point_dat <- mutate( dat, home_team_points = compute_points(home_team_goal, away_team_goal), away_...
## --------------------------- ## ## Script name: functions_consistent ## ## Purpose of script: functions for file create_consistent ## ## Author: Meeri Seppa ## ## Date Created: 2019-07-11 ## ## Copyright (c) Meeri Seppa, 2019 ## Email: meeri.seppa@helsinki.fi ## ## --------------------------- ## ## Notes: ## ## ...
/functions/functions_consistent.R
no_license
Meeris/kuntar
R
false
false
4,561
r
## --------------------------- ## ## Script name: functions_consistent ## ## Purpose of script: functions for file create_consistent ## ## Author: Meeri Seppa ## ## Date Created: 2019-07-11 ## ## Copyright (c) Meeri Seppa, 2019 ## Email: meeri.seppa@helsinki.fi ## ## --------------------------- ## ## Notes: ## ## ...