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
####################### ## Debt Data Example ####################### #Read in the data debtData <- read.csv('Documents/Work_KAP/RandPython_20150212/Examples_Koch/Example1/Example_Data.csv') #Look at variable names names(debtData) #Create a table of summary statistics through a for loop #(generate summaries for each...
/Session2/debtDataOLS(1).R
no_license
davidtryan/R-and-Python-Programming-Lectures
R
false
false
1,580
r
####################### ## Debt Data Example ####################### #Read in the data debtData <- read.csv('Documents/Work_KAP/RandPython_20150212/Examples_Koch/Example1/Example_Data.csv') #Look at variable names names(debtData) #Create a table of summary statistics through a for loop #(generate summaries for each...
# Functions for use in compiling a unigram sentiment lexicon. # ============================================================================= # Load the tweets data (Sentiment140) and also the NRC-Sent140 unigrams lexicon # source("get_data.R") # Load the functions needed to create the unigram subjectivity lexicon. #...
/program.R
permissive
raeed20/sentlex
R
false
false
1,554
r
# Functions for use in compiling a unigram sentiment lexicon. # ============================================================================= # Load the tweets data (Sentiment140) and also the NRC-Sent140 unigrams lexicon # source("get_data.R") # Load the functions needed to create the unigram subjectivity lexicon. #...
#' @export #' @title Function which converts mechanism codes, names or shortnames to to another class of identifiers #' #' @description remapOUs should be supplied a vector of organisation Units (names,codes or shortnames) #' along with the other required paramaters. It will return a vector of to another class of ident...
/R/remapOUs.R
permissive
vikwato/datim-validation
R
false
false
1,698
r
#' @export #' @title Function which converts mechanism codes, names or shortnames to to another class of identifiers #' #' @description remapOUs should be supplied a vector of organisation Units (names,codes or shortnames) #' along with the other required paramaters. It will return a vector of to another class of ident...
testlist <- list(doy = c(-7.01473973523562e+264, -41255401025447.6, -41255400998277.5, 5.43644204059383e-309, -41263990875012, -1.31998889522595e+101, -1.63014400155899e+232, 2.74265666431304e+166, 1.63329743414245e+86, 9.3779319490265e-270, 1.95236685739849e-214, 2.28916572138456e-310, 0, 0, 0, 0), latitude = nume...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615831730-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
773
r
testlist <- list(doy = c(-7.01473973523562e+264, -41255401025447.6, -41255400998277.5, 5.43644204059383e-309, -41263990875012, -1.31998889522595e+101, -1.63014400155899e+232, 2.74265666431304e+166, 1.63329743414245e+86, 9.3779319490265e-270, 1.95236685739849e-214, 2.28916572138456e-310, 0, 0, 0, 0), latitude = nume...
context("dice_coef") expect_works <- function(object) testthat::expect_error(object, NA) test_that("dice_coef works as expected", { load_keras() input <- layer_input(shape = c(3)) output <- input %>% layer_dense(units = 100, activation = "relu") %>% layer_dense(units = 50, activation = "sigmo...
/tests/testthat/test_dice_coef.R
no_license
neuroimaginador/dl4ni
R
false
false
911
r
context("dice_coef") expect_works <- function(object) testthat::expect_error(object, NA) test_that("dice_coef works as expected", { load_keras() input <- layer_input(shape = c(3)) output <- input %>% layer_dense(units = 100, activation = "relu") %>% layer_dense(units = 50, activation = "sigmo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/filter.R \name{filter} \alias{filter} \title{Keep rows that match a condition} \usage{ filter(.data, ..., .by = NULL, .preserve = FALSE) } \arguments{ \item{.data}{A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g....
/man/filter.Rd
permissive
kevinushey/dplyr
R
false
true
5,677
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/filter.R \name{filter} \alias{filter} \title{Keep rows that match a condition} \usage{ filter(.data, ..., .by = NULL, .preserve = FALSE) } \arguments{ \item{.data}{A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g....
## ---- [UNDER DEV WITH MDAP TEAM] ---- ## ## Contibutors: Casey Visitn, Usha Nattala ## Load libraries pacman::p_load(DBI, RPostgreSQL) ## Provide details to connect to server (named 'con' later in the code) source("./R/connect_to_server.R") ## Set up schema for GBIF data dbSendQuery(con," CREATE SCH...
/scripts/2_gbif_as_db.R
no_license
payalbal/gsdms
R
false
false
4,571
r
## ---- [UNDER DEV WITH MDAP TEAM] ---- ## ## Contibutors: Casey Visitn, Usha Nattala ## Load libraries pacman::p_load(DBI, RPostgreSQL) ## Provide details to connect to server (named 'con' later in the code) source("./R/connect_to_server.R") ## Set up schema for GBIF data dbSendQuery(con," CREATE SCH...
#### Load Libraries #### library(shiny) library(shinythemes) library(shinyjs) library(ggplot2) library(psych) library(dplyr) library(tidyr) library(stringr) library(DT) #### Load Data #### data <- read.csv("quant_data_clean.csv", stringsAsFactors = FALSE) trainingQuestions <- data.frame(item = paste0(...
/app.R
no_license
jakekraska/psychtraining
R
false
false
19,253
r
#### Load Libraries #### library(shiny) library(shinythemes) library(shinyjs) library(ggplot2) library(psych) library(dplyr) library(tidyr) library(stringr) library(DT) #### Load Data #### data <- read.csv("quant_data_clean.csv", stringsAsFactors = FALSE) trainingQuestions <- data.frame(item = paste0(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-sidedensity.r \name{geom_xsidedensity} \alias{geom_xsidedensity} \alias{geom_*sidedensity} \alias{geom_ysidedensity} \title{Side density distributions} \usage{ geom_xsidedensity( mapping = NULL, data = NULL, stat = "density", pos...
/man/geom_xsidedensity.Rd
permissive
seifudd/ggside
R
false
true
4,061
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-sidedensity.r \name{geom_xsidedensity} \alias{geom_xsidedensity} \alias{geom_*sidedensity} \alias{geom_ysidedensity} \title{Side density distributions} \usage{ geom_xsidedensity( mapping = NULL, data = NULL, stat = "density", pos...
# Reading, naming and subsetting power consumption data power <- read.table("household_power_consumption.txt",skip=1,sep=";") names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") subpower <- subset(power,power$Date...
/plot4.R
no_license
mkwong97/ExploratoryProj1
R
false
false
1,815
r
# Reading, naming and subsetting power consumption data power <- read.table("household_power_consumption.txt",skip=1,sep=";") names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") subpower <- subset(power,power$Date...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lsm_functional_connectivity.R \name{lsm_functional_connectivity} \alias{lsm_functional_connectivity} \title{Calculate functional connectivity} \usage{ lsm_functional_connectivity( input, output = NULL, zero_as_na = FALSE, gap_crossing...
/man/lsm_functional_connectivity.Rd
no_license
mauriciovancine/lsmetrics
R
false
true
4,158
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lsm_functional_connectivity.R \name{lsm_functional_connectivity} \alias{lsm_functional_connectivity} \title{Calculate functional connectivity} \usage{ lsm_functional_connectivity( input, output = NULL, zero_as_na = FALSE, gap_crossing...
# Auxiliary function for cna # -------------------------- # function combine: creates a factor of all combinations of x[rows], # with the order of the levels corresponding to the order as thy occur in the x combine <- function(x, rows = rownames(x)){ rows <- do.call(paste, c(x, sep = "")) factor(rows, levels = uni...
/cna/R/cna_aux.r
no_license
ingted/R-Examples
R
false
false
4,790
r
# Auxiliary function for cna # -------------------------- # function combine: creates a factor of all combinations of x[rows], # with the order of the levels corresponding to the order as thy occur in the x combine <- function(x, rows = rownames(x)){ rows <- do.call(paste, c(x, sep = "")) factor(rows, levels = uni...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coordeach.R \name{lawn_coordeach} \alias{lawn_coordeach} \title{Iterate over property objects in any GeoJSON object} \usage{ lawn_coordeach(x, fun = NULL, excludeWrapCoord = FALSE, lint = FALSE) } \arguments{ \item{x}{any \code{\link{data-Geo...
/man/lawn_coordeach.Rd
permissive
jhollist/lawn
R
false
true
1,793
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coordeach.R \name{lawn_coordeach} \alias{lawn_coordeach} \title{Iterate over property objects in any GeoJSON object} \usage{ lawn_coordeach(x, fun = NULL, excludeWrapCoord = FALSE, lint = FALSE) } \arguments{ \item{x}{any \code{\link{data-Geo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/f_title.R \name{f_title} \alias{f_title} \alias{ff_title} \title{Convert First Letter of Words to Title Case} \usage{ f_title(x, upper = NULL, lower = NULL, ...) ff_title(...) } \arguments{ \item{x}{A vector of text strings.} ...
/man/f_title.Rd
no_license
cran/numform
R
false
true
3,523
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/f_title.R \name{f_title} \alias{f_title} \alias{ff_title} \title{Convert First Letter of Words to Title Case} \usage{ f_title(x, upper = NULL, lower = NULL, ...) ff_title(...) } \arguments{ \item{x}{A vector of text strings.} ...
\name{pseudoyl} \alias{pseudoyl} \title{Pseudo-observations for the expected number of years lost} \description{Computes pseudo-observations for modeling using the number of years lost. } \usage{ pseudoyl(time,event, tmax) } \arguments{ \item{time}{the follow up time. } \item{event}{ the cause indicator,...
/man/pseudoyl.Rd
no_license
cran/pseudo
R
false
false
2,256
rd
\name{pseudoyl} \alias{pseudoyl} \title{Pseudo-observations for the expected number of years lost} \description{Computes pseudo-observations for modeling using the number of years lost. } \usage{ pseudoyl(time,event, tmax) } \arguments{ \item{time}{the follow up time. } \item{event}{ the cause indicator,...
library(tidyverse) library(e1071) library(caret) library(quanteda) library(irlba) library(randomForest) library(doSNOW) # ----------------- Part 1: Intro + Objective ----------------- # load data data.raw = read.csv("../Data/spam.csv", stringsAsFactors = F, fileEncoding="latin1") # data preprocessing data.raw = data....
/Text Analytics with R/Scripts/part1.R
no_license
peterljwumg/Tutorials
R
false
false
5,801
r
library(tidyverse) library(e1071) library(caret) library(quanteda) library(irlba) library(randomForest) library(doSNOW) # ----------------- Part 1: Intro + Objective ----------------- # load data data.raw = read.csv("../Data/spam.csv", stringsAsFactors = F, fileEncoding="latin1") # data preprocessing data.raw = data....
library(rodeo) ### Name: compile ### Title: Generate Executable Code ### Aliases: compile ### ** Examples data(vars, pars, funs, pros, stoi) model <- rodeo$new(vars, pars, funs, pros, stoi, dim=c(1)) # This would trigger compilation assuming that 'functionsCode.f95' contains # a Fortran implementation of all functi...
/data/genthat_extracted_code/rodeo/examples/compile.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
434
r
library(rodeo) ### Name: compile ### Title: Generate Executable Code ### Aliases: compile ### ** Examples data(vars, pars, funs, pros, stoi) model <- rodeo$new(vars, pars, funs, pros, stoi, dim=c(1)) # This would trigger compilation assuming that 'functionsCode.f95' contains # a Fortran implementation of all functi...
#' @title fun_name #' #' @description kolejna funkcja podmieniona #' #' @param param fun_name #' #' #' #' @export tolower<- function(params){ rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina", "Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka", ...
/R/tolower.R
no_license
granatb/RapeR
R
false
false
669
r
#' @title fun_name #' #' @description kolejna funkcja podmieniona #' #' @param param fun_name #' #' #' #' @export tolower<- function(params){ rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina", "Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka", ...
\name{mls} \alias{mls} \title{MIDAS lag structure} \usage{ mls(x, k, m, ...) } \arguments{ \item{x}{a vector} \item{k}{a vector of lag orders, zero denotes contemporaneous lag.} \item{m}{frequency ratio} \item{...}{further arguments used in fitting MIDAS regression} } \value{ a matrix containing the lags...
/man/mls.Rd
no_license
snowdj/midasr
R
false
false
757
rd
\name{mls} \alias{mls} \title{MIDAS lag structure} \usage{ mls(x, k, m, ...) } \arguments{ \item{x}{a vector} \item{k}{a vector of lag orders, zero denotes contemporaneous lag.} \item{m}{frequency ratio} \item{...}{further arguments used in fitting MIDAS regression} } \value{ a matrix containing the lags...
var_avg_map = function(summary_df, var_name, polygon_sf, polygon_names_df, polygon_names_var, bins = TRUE, nsplits = 4, pretty = FALSE, zoom_level = 10, title = paste("Average of", var_name, sep = " ")) { if (bins) { colors = colorBin...
/ShinyApp/Helpers/var_avg_map.R
no_license
silvia-ventoruzzo/SPL-WISE-2018
R
false
false
1,523
r
var_avg_map = function(summary_df, var_name, polygon_sf, polygon_names_df, polygon_names_var, bins = TRUE, nsplits = 4, pretty = FALSE, zoom_level = 10, title = paste("Average of", var_name, sep = " ")) { if (bins) { colors = colorBin...
########################################################################## ########################################################################## # Customize ggplot2 ########################################################################## #########################################################################...
/R source/BDVis.R
no_license
Alexxbyou/newtest
R
false
false
5,244
r
########################################################################## ########################################################################## # Customize ggplot2 ########################################################################## #########################################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/verify_codes.R \name{verify_nhs} \alias{verify_nhs} \title{Verify NHS Numbers} \usage{ verify_nhs(nhs_numbers = NULL) } \arguments{ \item{nhs_numbers}{as character vector} } \value{ a logical vector } \description{ This function will varify n...
/man/verify_nhs.Rd
no_license
CC-HIC/inspectEHR
R
false
true
788
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/verify_codes.R \name{verify_nhs} \alias{verify_nhs} \title{Verify NHS Numbers} \usage{ verify_nhs(nhs_numbers = NULL) } \arguments{ \item{nhs_numbers}{as character vector} } \value{ a logical vector } \description{ This function will varify n...
library(VGAM) library(fitdistrplus) library(actuar) setwd("D:\\Studies\\Project\\BugPrediction\\Softwares\\testingdata") nextReleaseDates = data.frame( tomcat3.3="2002-09-06", tomcat4.1="2003-12-03", tomcat5="2007-02-28", tomcat6="2011-01-14", tomcat7="2014-06-25" ) files = c("tomcat 3.3","tomcat 4.1","tomca...
/testingdata/Code/logarithmic.r
no_license
maniteja123/defect_prediction
R
false
false
1,035
r
library(VGAM) library(fitdistrplus) library(actuar) setwd("D:\\Studies\\Project\\BugPrediction\\Softwares\\testingdata") nextReleaseDates = data.frame( tomcat3.3="2002-09-06", tomcat4.1="2003-12-03", tomcat5="2007-02-28", tomcat6="2011-01-14", tomcat7="2014-06-25" ) files = c("tomcat 3.3","tomcat 4.1","tomca...
infer.topics <- function(bow,topic_counts,topic_sums,alpha,eta,n_iters,arora=TRUE){ #Perform topic inference model <- lda.collapsed.gibbs.sampler(documents= bow,K=nrow(topic_counts),vocab=colnames(topic_counts) ,n_iters,alpha,eta, initial=list(topics=topic_counts,topic_sums=topic_sums), freeze.topics=TRUE,...
/interactive_tm_code/R/infer.topics.R
no_license
qubitcrunch/interactive-topic-modeling
R
false
false
379
r
infer.topics <- function(bow,topic_counts,topic_sums,alpha,eta,n_iters,arora=TRUE){ #Perform topic inference model <- lda.collapsed.gibbs.sampler(documents= bow,K=nrow(topic_counts),vocab=colnames(topic_counts) ,n_iters,alpha,eta, initial=list(topics=topic_counts,topic_sums=topic_sums), freeze.topics=TRUE,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generujRaporty.R \name{generujRaporty} \alias{generujRaporty} \title{generuje raporty na podstawie szablonu danych oraz opisu grup odbiorców} \usage{ generujRaporty(plikSzablonu, grupyOdbiorcow, dane = list(), katalogWy = "", prefiksPliko...
/man/generujRaporty.Rd
permissive
borun84/MLAK
R
false
true
2,237
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generujRaporty.R \name{generujRaporty} \alias{generujRaporty} \title{generuje raporty na podstawie szablonu danych oraz opisu grup odbiorców} \usage{ generujRaporty(plikSzablonu, grupyOdbiorcow, dane = list(), katalogWy = "", prefiksPliko...
#Getting the recombination rates #Nov 8th, 2017 #Joo Hyun Im (ji72) rm(list=ls(all=TRUE)) setwd("/Users/JooHyun/Dropbox/Cornell/Lab/Projects/PopGen/") coordinates = read.table("Nexus_coordinates_for_all_genes_Nov17.txt", header=T) #695 x 5 coordinates = unique(coordinates) #694 x 5 Dmel_data = read.table("final_data...
/get_recombination_rates.R
no_license
imjoohyu/scripts.for.popgen.project
R
false
false
3,364
r
#Getting the recombination rates #Nov 8th, 2017 #Joo Hyun Im (ji72) rm(list=ls(all=TRUE)) setwd("/Users/JooHyun/Dropbox/Cornell/Lab/Projects/PopGen/") coordinates = read.table("Nexus_coordinates_for_all_genes_Nov17.txt", header=T) #695 x 5 coordinates = unique(coordinates) #694 x 5 Dmel_data = read.table("final_data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mini_plots.R \name{spec_pointrange} \alias{spec_pointrange} \title{Helper functions to generate inline sparklines} \usage{ spec_pointrange( x, xmin, xmax, vline = NULL, width = 200, height = 50, res = 300, same_lim = TRUE, l...
/man/spec_pointrange.Rd
no_license
cran/kableExtra
R
false
true
2,205
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mini_plots.R \name{spec_pointrange} \alias{spec_pointrange} \title{Helper functions to generate inline sparklines} \usage{ spec_pointrange( x, xmin, xmax, vline = NULL, width = 200, height = 50, res = 300, same_lim = TRUE, l...
### ### TPL demographics - race ### 10/2/20 ### ### Note: I am not comfortable with this comparison ### # Somewhat forked/copied from `gender.R` library(tidyverse) library(readxl) setwd("~/Documents/TPL/MinnesotaParks/") # read in data soparc_all <- read_excel("OutputFromR_weekdaySOPARC_ForSpencer.xlsx", sheet = "...
/race.R
no_license
sgwinder/mn-parks
R
false
false
5,399
r
### ### TPL demographics - race ### 10/2/20 ### ### Note: I am not comfortable with this comparison ### # Somewhat forked/copied from `gender.R` library(tidyverse) library(readxl) setwd("~/Documents/TPL/MinnesotaParks/") # read in data soparc_all <- read_excel("OutputFromR_weekdaySOPARC_ForSpencer.xlsx", sheet = "...
library(magclass) ### Name: mselect ### Title: MSelect ### Aliases: mselect mselect<- mselect<- ### ** Examples data(population_magpie) population_magpie mselect(population_magpie,i=c("AFR","EUR"),scenario="A2",t="y2035")
/data/genthat_extracted_code/magclass/examples/mselect.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
234
r
library(magclass) ### Name: mselect ### Title: MSelect ### Aliases: mselect mselect<- mselect<- ### ** Examples data(population_magpie) population_magpie mselect(population_magpie,i=c("AFR","EUR"),scenario="A2",t="y2035")
% Generated by roxygen2 (4.0.2): do not edit by hand \name{veriUnwrap} \alias{veriUnwrap} \title{Unwrap arguments and hand over to function} \usage{ veriUnwrap(x, verifun, nens = ncol(x) - 1, prob = NULL, threshold = NULL, ...) } \arguments{ \item{x}{n x k + 1 matrix with n forecasts of k ensemble members plus the ve...
/man/veriUnwrap.Rd
no_license
ogutu/easyVerification
R
false
false
1,599
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{veriUnwrap} \alias{veriUnwrap} \title{Unwrap arguments and hand over to function} \usage{ veriUnwrap(x, verifun, nens = ncol(x) - 1, prob = NULL, threshold = NULL, ...) } \arguments{ \item{x}{n x k + 1 matrix with n forecasts of k ensemble members plus the ve...
`rglGEOmapXY` <- function(MAP, LIM=c(-180, -90, 180, 90), PROJ=list(), PMAT=NULL, add=TRUE, SEL=NULL, GRID=NULL, GRIDcol=1, MAPcol=NULL, MAPstyle=NULL, border=NA, cenlon=0, shiftlon=0, linelty=1, linelwd=1, ptpch=".", ptcex=1, NUMB=FALSE, ...) { ### NUMB = add a number on the stroke to s...
/Rquake/R/rglGEOmapXY.R
no_license
ingted/R-Examples
R
false
false
10,630
r
`rglGEOmapXY` <- function(MAP, LIM=c(-180, -90, 180, 90), PROJ=list(), PMAT=NULL, add=TRUE, SEL=NULL, GRID=NULL, GRIDcol=1, MAPcol=NULL, MAPstyle=NULL, border=NA, cenlon=0, shiftlon=0, linelty=1, linelwd=1, ptpch=".", ptcex=1, NUMB=FALSE, ...) { ### NUMB = add a number on the stroke to s...
#' Download list of series for datasets of DBnomics providers. #' #' \code{rdb_series} downloads the list of series for #' available datasets of a selection of providers from #' \href{https://db.nomics.world/}{DBnomics}. \cr #' /!\ We warn the user that this function can be (very) long to execute. We remind #' that DBn...
/R/rdb_series.R
no_license
ShichenXie/rdbnomics
R
false
false
10,215
r
#' Download list of series for datasets of DBnomics providers. #' #' \code{rdb_series} downloads the list of series for #' available datasets of a selection of providers from #' \href{https://db.nomics.world/}{DBnomics}. \cr #' /!\ We warn the user that this function can be (very) long to execute. We remind #' that DBn...
##' magnitude of number ##' ##' returns the magnitude of the input. Why? No reason. Oh, ok, it is actually a ##' helper function for \code{trunc_digits}. ##' @param x a numeric ##' @export ##' @author Henrik Renlund magnitude <- function(x){ x <- abs(x) if(x == 0) return(0) e <- 1 if(x>=1){ ...
/R/trunc-digits.R
no_license
iiijohan/ucR
R
false
false
922
r
##' magnitude of number ##' ##' returns the magnitude of the input. Why? No reason. Oh, ok, it is actually a ##' helper function for \code{trunc_digits}. ##' @param x a numeric ##' @export ##' @author Henrik Renlund magnitude <- function(x){ x <- abs(x) if(x == 0) return(0) e <- 1 if(x>=1){ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jambio-plot.R \name{import_juncs_from_bed} \alias{import_juncs_from_bed} \title{Import splice junction data from BED file} \usage{ import_juncs_from_bed(iBed, juncNames, sample_id, scale_factor, use_memoise = FALSE, memoise_junction_path = ...
/man/import_juncs_from_bed.Rd
no_license
sridnona/splicejam
R
false
true
1,830
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jambio-plot.R \name{import_juncs_from_bed} \alias{import_juncs_from_bed} \title{Import splice junction data from BED file} \usage{ import_juncs_from_bed(iBed, juncNames, sample_id, scale_factor, use_memoise = FALSE, memoise_junction_path = ...
################################################################################ # title: 'BioMart processing PIPELINE' # author: "CASTRO DAU Santiago Manuel" # date: '21 FEB 2109' # last modified: '21 FEB 2020' # description: # 'Takes the Biomart_EnsemblG94_GRCh38_p12 file and filters out non protein # codeing genes...
/data/BioMart_data/Biomart_processing_pipeline.R
no_license
Sann5/SCNAs_Proyect
R
false
false
1,684
r
################################################################################ # title: 'BioMart processing PIPELINE' # author: "CASTRO DAU Santiago Manuel" # date: '21 FEB 2109' # last modified: '21 FEB 2020' # description: # 'Takes the Biomart_EnsemblG94_GRCh38_p12 file and filters out non protein # codeing genes...
###### # Comparison main panel in UI ###### tabPanel("Comparison", icon = icon("scale", lib = "glyphicon"), br(), ################### selectizeInput("selected_comparison_plot", # comparison result to display "Selected result", choices = list( Data = c(`Loade...
/inst/shiny/shiny_ui/ui_main_comparison.R
no_license
matdoering/openPrimeRui
R
false
false
5,354
r
###### # Comparison main panel in UI ###### tabPanel("Comparison", icon = icon("scale", lib = "glyphicon"), br(), ################### selectizeInput("selected_comparison_plot", # comparison result to display "Selected result", choices = list( Data = c(`Loade...
\name{make.musse.multitrait} \alias{make.musse.multitrait} \alias{make.mkn.multitrait} \alias{musse.multitrait.translate} \alias{mkn.multitrait.translate} \alias{starting.point.musse.multitrait} \title{MuSSE: Multi-State Speciation and Extinction (Multiple Binary Traits Version)} \description{Prepare to run MuSSE o...
/man/make.musse.multitrait.Rd
no_license
richfitz/diversitree
R
false
false
11,732
rd
\name{make.musse.multitrait} \alias{make.musse.multitrait} \alias{make.mkn.multitrait} \alias{musse.multitrait.translate} \alias{mkn.multitrait.translate} \alias{starting.point.musse.multitrait} \title{MuSSE: Multi-State Speciation and Extinction (Multiple Binary Traits Version)} \description{Prepare to run MuSSE o...
# Extract the time taken to do each page library(oldWeather5) library(lubridate) classifications<-ReadClassifications('../../data-exports/classifications.csv') pd<-as.numeric(classifications$meta$finished_at)- as.numeric(classifications$meta$started_at) cat(sprintf("%g\n",pd), file="time_...
/monitoring/time_per_page/get_time_per_page.R
no_license
oldweather/oldWeather5
R
false
false
389
r
# Extract the time taken to do each page library(oldWeather5) library(lubridate) classifications<-ReadClassifications('../../data-exports/classifications.csv') pd<-as.numeric(classifications$meta$finished_at)- as.numeric(classifications$meta$started_at) cat(sprintf("%g\n",pd), file="time_...
library(shiny) shinyUI( pageWithSidebar( headerPanel("Hello Shiny!"), sidebarPanel( h3("Sidebar Text (h3)") ), mainPanel( h3("Main Panel Text (h3)") ) ) )
/shiny/app_1/ui.R
permissive
pparacch/DevelopingDataProducts
R
false
false
227
r
library(shiny) shinyUI( pageWithSidebar( headerPanel("Hello Shiny!"), sidebarPanel( h3("Sidebar Text (h3)") ), mainPanel( h3("Main Panel Text (h3)") ) ) )
library(phylosim) ### Name: ContinuousDeletor ### Title: The ContinuousDeletor class ### Aliases: ContinuousDeletor ### ** Examples # create a ContinuousDeletor process o<-ContinuousDeletor( name="Conty", rate=0.25, dist=expression(1), max.length=2 ) # get ob...
/data/genthat_extracted_code/phylosim/examples/ContinuousDeletor.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,223
r
library(phylosim) ### Name: ContinuousDeletor ### Title: The ContinuousDeletor class ### Aliases: ContinuousDeletor ### ** Examples # create a ContinuousDeletor process o<-ContinuousDeletor( name="Conty", rate=0.25, dist=expression(1), max.length=2 ) # get ob...
library (dplyr) ## Step1: Downloading the data from the URL mentioned and unzipping data file into folder if(!file.exists("./WearData")){ dir.create("./WearData") } fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojec...
/run_analysis.R
no_license
pramodvb/Get_Clean_Data_Project
R
false
false
5,116
r
library (dplyr) ## Step1: Downloading the data from the URL mentioned and unzipping data file into folder if(!file.exists("./WearData")){ dir.create("./WearData") } fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojec...
library(ggplot2) setwd("C:/Users/EzioGreggio/Desktop/density_prog/neal2_M0.25") data= data.frame(as.numeric(read.csv("data.csv", sep=",", header=F))[1:100]) densityneal2= read.csv("densityneal2.csv", sep=",", header=F) density0.25= read.csv("density0.25.csv", sep=",", header=F) names(data)<-c("data") ...
/R/density/neal2_M0.25/neal2.R
no_license
zazzetti/BNPlib
R
false
false
797
r
library(ggplot2) setwd("C:/Users/EzioGreggio/Desktop/density_prog/neal2_M0.25") data= data.frame(as.numeric(read.csv("data.csv", sep=",", header=F))[1:100]) densityneal2= read.csv("densityneal2.csv", sep=",", header=F) density0.25= read.csv("density0.25.csv", sep=",", header=F) names(data)<-c("data") ...
## Provides a container for a matrix and its inverse. This allows the inverse ## to be cached, saving computational time (should the inverse be needed often) ## Returns a list of a matrix, its inverse, and functions to set and get each makeCacheMatrix <- function(mtrx = matrix()) { inv <- NULL #inverse is, by defaul...
/cachematrix.R
no_license
EzryStIago/ProgrammingAssignment2
R
false
false
1,336
r
## Provides a container for a matrix and its inverse. This allows the inverse ## to be cached, saving computational time (should the inverse be needed often) ## Returns a list of a matrix, its inverse, and functions to set and get each makeCacheMatrix <- function(mtrx = matrix()) { inv <- NULL #inverse is, by defaul...
#===== libraries =====# library(CVXR) library(fields) #===== load data =====# circle <- as.matrix(read.csv("data/circle.csv", header = F)) nr <- nrow(circle) nc <- ncol(circle) n <- length(circle) #==== define fused penalty ====# fused_lasso_2d <- function(theta, lambda = 0) { nr <- nrow(theta); nc <- ncol(theta)...
/asn/asn2/code/cvx_circle.R
no_license
dfleis/math680
R
false
false
1,098
r
#===== libraries =====# library(CVXR) library(fields) #===== load data =====# circle <- as.matrix(read.csv("data/circle.csv", header = F)) nr <- nrow(circle) nc <- ncol(circle) n <- length(circle) #==== define fused penalty ====# fused_lasso_2d <- function(theta, lambda = 0) { nr <- nrow(theta); nc <- ncol(theta)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makefiles.R \name{read_makefile} \alias{read_makefile} \title{Read a \command{Makefile} Into a \code{Makelist}} \usage{ read_makefile(path, clean_sink = FALSE) } \arguments{ \item{path}{The path to the file.} \item{clean_sink}{Remove sinks i...
/man/read_makefile.Rd
no_license
cran/fakemake
R
false
true
996
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makefiles.R \name{read_makefile} \alias{read_makefile} \title{Read a \command{Makefile} Into a \code{Makelist}} \usage{ read_makefile(path, clean_sink = FALSE) } \arguments{ \item{path}{The path to the file.} \item{clean_sink}{Remove sinks i...
require syslog require logger [[c:Logger]] のようなインターフェイスを用いて syslog にログを記録するた めのサブライブラリです。[[c:Syslog::Logger]] を使って複数のマシンでログ を集約する事もできます。 デフォルトでは、[[c:Syslog::Logger]] はプログラム名として 'ruby' を使用 します。これを変更したい場合は [[m:Syslog::Logger.new]] の第一引数にプ ログラム名を渡してください。 [注意] [[c:Syslog::Logger]] のプログラム名の変更は最初の初期化の時だけ しか行う事ができません。これは [...
/refm/api/src/syslog/logger.rd
no_license
foomin10/doctree
R
false
false
10,575
rd
require syslog require logger [[c:Logger]] のようなインターフェイスを用いて syslog にログを記録するた めのサブライブラリです。[[c:Syslog::Logger]] を使って複数のマシンでログ を集約する事もできます。 デフォルトでは、[[c:Syslog::Logger]] はプログラム名として 'ruby' を使用 します。これを変更したい場合は [[m:Syslog::Logger.new]] の第一引数にプ ログラム名を渡してください。 [注意] [[c:Syslog::Logger]] のプログラム名の変更は最初の初期化の時だけ しか行う事ができません。これは [...
library(AER) ### Name: SwissLabor ### Title: Swiss Labor Market Participation Data ### Aliases: SwissLabor ### Keywords: datasets ### ** Examples data("SwissLabor") ### Gerfin (1996), Table I. fm_probit <- glm(participation ~ . + I(age^2), data = SwissLabor, family = binomial(link = "probit")) summary(fm_probit)...
/data/genthat_extracted_code/AER/examples/SwissLabor.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
447
r
library(AER) ### Name: SwissLabor ### Title: Swiss Labor Market Participation Data ### Aliases: SwissLabor ### Keywords: datasets ### ** Examples data("SwissLabor") ### Gerfin (1996), Table I. fm_probit <- glm(participation ~ . + I(age^2), data = SwissLabor, family = binomial(link = "probit")) summary(fm_probit)...
## Load packages ## Because we are in stat544, I'll assume you have this dplyr suppressPackageStartupMessages(library(dplyr)) ## I will also check if you have readr if (require(readr)) { ## enter command line arguments args <- commandArgs(trailingOnly = TRUE) infile <- ifelse(!is.na(args[1]), args[1], "skyscra...
/homework/hw09/02_parse.R
permissive
csiu/coursework-stat545
R
false
false
658
r
## Load packages ## Because we are in stat544, I'll assume you have this dplyr suppressPackageStartupMessages(library(dplyr)) ## I will also check if you have readr if (require(readr)) { ## enter command line arguments args <- commandArgs(trailingOnly = TRUE) infile <- ifelse(!is.na(args[1]), args[1], "skyscra...
sum(is.na(bank)) summary(bank) head(bank) bank_nb<-bank bank_nb<-unique(bank_nb) unique(bank_nb) #identifing removing outliers boxplot(bank_nb$balance) OutVals2= boxplot(bank_nb$balance)$out OutVals2 bank_nb[which(bank_nb$balance %in% OutVals2),] bank_nb <-bank_nb[-which(bank_nb$balance %in% OutVals2),] bo...
/desicion_tree.R
no_license
DeepchandGudapati/decisiontree-pruning
R
false
false
4,265
r
sum(is.na(bank)) summary(bank) head(bank) bank_nb<-bank bank_nb<-unique(bank_nb) unique(bank_nb) #identifing removing outliers boxplot(bank_nb$balance) OutVals2= boxplot(bank_nb$balance)$out OutVals2 bank_nb[which(bank_nb$balance %in% OutVals2),] bank_nb <-bank_nb[-which(bank_nb$balance %in% OutVals2),] bo...
#' Integration of group metric (annex 1-3 and 10) #' #' @param id, character used to specify namespace, see \code{shiny::\link[shiny]{NS}} #' @param title header of the section #' #' @return a \code{shiny::\link[shiny]{tagList}} containing UI elements #' #' writenewgroupmetricUI <- function(id, title){ ns <- NS(i...
/R/shiny_data_integration/shiny_di/writenewgroupmetricModule.R
no_license
ices-eg/wg_WGEEL
R
false
false
4,471
r
#' Integration of group metric (annex 1-3 and 10) #' #' @param id, character used to specify namespace, see \code{shiny::\link[shiny]{NS}} #' @param title header of the section #' #' @return a \code{shiny::\link[shiny]{tagList}} containing UI elements #' #' writenewgroupmetricUI <- function(id, title){ ns <- NS(i...
fix_ban = read.csv("/Users/EDIE/clean_banana_ingr.csv", as.is=TRUE)[-1] # CUP | SERVING | SPOON units_wrong = fix_ban[grepl("cup|serving|spoon", fix_ban$ingredient),] write.csv(units_wrong, "units_wrong.csv") # COOKING SPRAY - BINARY cookspray = fix_ban[grepl("cooking spray", fix_ban$ingredient),] fix_ban[rownames(c...
/02 cleaning/past/R/check_all_units.R
no_license
palautatan/perfectBananaBread
R
false
false
528
r
fix_ban = read.csv("/Users/EDIE/clean_banana_ingr.csv", as.is=TRUE)[-1] # CUP | SERVING | SPOON units_wrong = fix_ban[grepl("cup|serving|spoon", fix_ban$ingredient),] write.csv(units_wrong, "units_wrong.csv") # COOKING SPRAY - BINARY cookspray = fix_ban[grepl("cooking spray", fix_ban$ingredient),] fix_ban[rownames(c...
#' Generate covariate file #' #' This function formats and outputs a covariate table, used for input for other functions. #' @param ukb.data tab delimited UK Biobank phenotype file. The file should include fields of gender, year of birth, BMI, ethnic background, SES, and smoking. #' @param ABO.data Latest yyyymmdd_covi...
/R/risk_factor.R
permissive
bahlolab/UKB.COVID19
R
false
false
6,713
r
#' Generate covariate file #' #' This function formats and outputs a covariate table, used for input for other functions. #' @param ukb.data tab delimited UK Biobank phenotype file. The file should include fields of gender, year of birth, BMI, ethnic background, SES, and smoking. #' @param ABO.data Latest yyyymmdd_covi...
############################################################################## # permDistanceGED.r # # Analyses for master thesis # ====================================== # # Does permutation tests on the distances metrics from distances.r. Pools # two populations and does permutations. GEDEVO runs in parallel, making ...
/permutationTest/permDistanceGED.r
no_license
krprls/Variant-graph-analysis
R
false
false
2,914
r
############################################################################## # permDistanceGED.r # # Analyses for master thesis # ====================================== # # Does permutation tests on the distances metrics from distances.r. Pools # two populations and does permutations. GEDEVO runs in parallel, making ...
setClass('xgb.DMatrix') #' Get a new DMatrix containing the specified rows of #' orginal xgb.DMatrix object #' #' Get a new DMatrix containing the specified rows of #' orginal xgb.DMatrix object #' #' @examples #' data(agaricus.train, package='xgboost') #' train <- agaricus.train #' dtrain <- xgb.DMatrix(train$data, ...
/R-package/R/slice.xgb.DMatrix.R
permissive
piotrgrudzien/xgboost
R
false
false
1,489
r
setClass('xgb.DMatrix') #' Get a new DMatrix containing the specified rows of #' orginal xgb.DMatrix object #' #' Get a new DMatrix containing the specified rows of #' orginal xgb.DMatrix object #' #' @examples #' data(agaricus.train, package='xgboost') #' train <- agaricus.train #' dtrain <- xgb.DMatrix(train$data, ...
install.packages("rmarkdown") install.packages('tinytex') tinytex::install_tinytex() install.packages("ggplot2") # r = getOption("repos") # r["CRAN"] = "https://cloud.r-project.org" # options(repos = r) # rm(r)
/install.R
no_license
calvinw/mathplosion-rmarkdown
R
false
false
212
r
install.packages("rmarkdown") install.packages('tinytex') tinytex::install_tinytex() install.packages("ggplot2") # r = getOption("repos") # r["CRAN"] = "https://cloud.r-project.org" # options(repos = r) # rm(r)
\name{compare.synds} \alias{compare.synds} \alias{compare.data.frame} \alias{compare.list} \alias{print.compare.synds} \title{ Compare univariate distributions of synthesised and observed data } \description{ Compare synthesised data set with the original (observed) data set using percent frequency tables and histog...
/man/compare.synds.Rd
no_license
bnowok/synthpop
R
false
false
5,718
rd
\name{compare.synds} \alias{compare.synds} \alias{compare.data.frame} \alias{compare.list} \alias{print.compare.synds} \title{ Compare univariate distributions of synthesised and observed data } \description{ Compare synthesised data set with the original (observed) data set using percent frequency tables and histog...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logs.R \name{create_log_group} \alias{create_log_group} \alias{delete_log_group} \alias{get_log_groups} \title{Cloudwatch log groups} \usage{ create_log_group(name, ...) delete_log_group(name, ...) get_log_groups(prefix, n, token, ...) } \a...
/man/log_groups.Rd
no_license
nagyistge/aws.cloudwatch
R
false
true
707
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logs.R \name{create_log_group} \alias{create_log_group} \alias{delete_log_group} \alias{get_log_groups} \title{Cloudwatch log groups} \usage{ create_log_group(name, ...) delete_log_group(name, ...) get_log_groups(prefix, n, token, ...) } \a...
\name{residuals.fm} \alias{residuals.fm} \title{Compute residuals from a functional model} \description{After fitting a functional model, it is useful to inspect the residuals. This function extracts the relevant information from the fit object and puts it in a form suitable for plotting with \code{image}, \code{persp...
/man/residuals.fm.Rd
no_license
JensPiontkowski/ftsa
R
false
false
1,883
rd
\name{residuals.fm} \alias{residuals.fm} \title{Compute residuals from a functional model} \description{After fitting a functional model, it is useful to inspect the residuals. This function extracts the relevant information from the fit object and puts it in a form suitable for plotting with \code{image}, \code{persp...
#!/usr/bin/env Rscript # Author: Katie Bickerton k.bickerton18@imperial.ac.uk # Script: PP_Regress.R # Desc: Calculating multiple regressions, saving results into a csv, and plotting # regressions. # Arguments: none # Date: 23 Oct 2018 rm(list=ls()) # packages required require(ggplot2) require(plyr) require(dpl...
/Week3/Code/PP_Regress.R
no_license
KBicks/CMEECourseWork
R
false
false
2,390
r
#!/usr/bin/env Rscript # Author: Katie Bickerton k.bickerton18@imperial.ac.uk # Script: PP_Regress.R # Desc: Calculating multiple regressions, saving results into a csv, and plotting # regressions. # Arguments: none # Date: 23 Oct 2018 rm(list=ls()) # packages required require(ggplot2) require(plyr) require(dpl...
# 绘制汽车数据的星状图 # 预设调色板,stars() 默认用整数来表示颜色 palette(rainbow(12, s = 0.6, v = 0.75)) stars(mtcars[, 1:7], len = 0.8, key.loc = c(14, 1.5), ncol = 7, main = "", draw.segments = TRUE) palette("default") # 恢复默认调色板
/inst/examples/stars.R
no_license
yihui/MSG
R
false
false
278
r
# 绘制汽车数据的星状图 # 预设调色板,stars() 默认用整数来表示颜色 palette(rainbow(12, s = 0.6, v = 0.75)) stars(mtcars[, 1:7], len = 0.8, key.loc = c(14, 1.5), ncol = 7, main = "", draw.segments = TRUE) palette("default") # 恢复默认调色板
context("testthat roclet") test_that("@tests captures tests", { out <- roxygen2::roc_proc_text(testthat_roclet(), " #' @tests #' expect_equal(2, 2) #' NULL") expect_equal(length(out), 2) expect_equal(length(out$tests), 1) expect_equal(length(out$testexamples), 0) out <- out$tests[[1]] ...
/tests/testthat/test-testthat-rocklet.R
no_license
mikldk/roxytest
R
false
false
6,456
r
context("testthat roclet") test_that("@tests captures tests", { out <- roxygen2::roc_proc_text(testthat_roclet(), " #' @tests #' expect_equal(2, 2) #' NULL") expect_equal(length(out), 2) expect_equal(length(out$tests), 1) expect_equal(length(out$testexamples), 0) out <- out$tests[[1]] ...
#Please, first set up a right working directory! Thanks. # a file to get data f <- "household_power_consumption.txt" # use a sql select to get correct dates library(sqldf) selector <- "SELECT * from file WHERE Date = '1/2/2007' OR Date = '2/2/2007'" #read the table the selector powerData <- read.csv.sq...
/plot4.R
no_license
snorrik/ExData_Plotting1
R
false
false
1,663
r
#Please, first set up a right working directory! Thanks. # a file to get data f <- "household_power_consumption.txt" # use a sql select to get correct dates library(sqldf) selector <- "SELECT * from file WHERE Date = '1/2/2007' OR Date = '2/2/2007'" #read the table the selector powerData <- read.csv.sq...
# Title : r_rotary.R # Objective : to house functions used for extraction / pre processing rotary files # Created by: Adam Gordon-Fennell (agg2248@uw.edu) # Garret Stuber Lab, University of Washington # Created on: 04/16/2021 # required functions require(tidyverse) require(lubridate) require(readxl) #...
/analysis/functions/r_head_fixed_processing.R
no_license
agordonfennell/OHRBETS
R
false
false
43,925
r
# Title : r_rotary.R # Objective : to house functions used for extraction / pre processing rotary files # Created by: Adam Gordon-Fennell (agg2248@uw.edu) # Garret Stuber Lab, University of Washington # Created on: 04/16/2021 # required functions require(tidyverse) require(lubridate) require(readxl) #...
############################################################################# rm(list = ls()) dirPath<-"/home/sguerrero/Documentos/Dropbox/articulos/Artículo Proporción bayesiana/InferenciaBootstrapBayesiana/InferenciaBootstrapBayesiana" setwd(dirPath) ###################################################################...
/str/Estimador HT/No lineal/SimMAS_v1.r
no_license
stalynGuerrero/InferenciaBootstrapBayesiana
R
false
false
1,398
r
############################################################################# rm(list = ls()) dirPath<-"/home/sguerrero/Documentos/Dropbox/articulos/Artículo Proporción bayesiana/InferenciaBootstrapBayesiana/InferenciaBootstrapBayesiana" setwd(dirPath) ###################################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/random_forest.R \name{random_forest_score} \alias{random_forest_score} \title{Score Certifications with a DAPM Random Forest Model} \usage{ random_forest_score(cycle_date = NULL, prevDays = 90, inputDF = NULL, scoreTableName = "nrd.enty_sco...
/Production/Model/APM/man/random_forest_score.Rd
permissive
ElderResearch/DAPM
R
false
true
2,117
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/random_forest.R \name{random_forest_score} \alias{random_forest_score} \title{Score Certifications with a DAPM Random Forest Model} \usage{ random_forest_score(cycle_date = NULL, prevDays = 90, inputDF = NULL, scoreTableName = "nrd.enty_sco...
# Pacote necessário para usar o Freq if (!('DescTools') %in% installed.packages()) install.packages('DescTools') library(DescTools) if(!("readxl") %in% installed.packages()) install.packages("readxl") library(readxl) data = read_excel("../dados/exercicio9.xls", sheet = "Plan1") print("1. Faça uma distribuição de fre...
/codigo/exercicio9.R
no_license
Uemerson/ExerciciosR-IntroducaoCienciaDados
R
false
false
1,109
r
# Pacote necessário para usar o Freq if (!('DescTools') %in% installed.packages()) install.packages('DescTools') library(DescTools) if(!("readxl") %in% installed.packages()) install.packages("readxl") library(readxl) data = read_excel("../dados/exercicio9.xls", sheet = "Plan1") print("1. Faça uma distribuição de fre...
system.time(df <- read.csv("data_rev.csv")) set.seed(947) df2 <- df[sample(nrow(df),650), ] library(tm) library(wordcloud) system.time(t_clean <- Corpus(VectorSource(df2$text))) ##Select some samples inspect(t_clean[1]) # Tidy data generation system.time(t_clean<-tm_map(t_clean, removePunctuation)) t_clean<-tm_map(...
/with_df.R
no_license
alfredo203/economia_complejidad
R
false
false
1,761
r
system.time(df <- read.csv("data_rev.csv")) set.seed(947) df2 <- df[sample(nrow(df),650), ] library(tm) library(wordcloud) system.time(t_clean <- Corpus(VectorSource(df2$text))) ##Select some samples inspect(t_clean[1]) # Tidy data generation system.time(t_clean<-tm_map(t_clean, removePunctuation)) t_clean<-tm_map(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/listFileFormpathFileValid.R \name{listFileFormpathFileValid} \alias{listFileFormpathFileValid} \title{creates an existing files names list of a directory} \usage{ listFileFormpathFileValid(pathFile) } \arguments{ \item{pathFile}{: string (pat...
/man/listFileFormpathFileValid.Rd
permissive
DanGit01/ToImagen
R
false
true
516
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/listFileFormpathFileValid.R \name{listFileFormpathFileValid} \alias{listFileFormpathFileValid} \title{creates an existing files names list of a directory} \usage{ listFileFormpathFileValid(pathFile) } \arguments{ \item{pathFile}{: string (pat...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
/r/R/duckdb.R
permissive
romainfrancois/arrow
R
false
false
5,761
r
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
############## # Plot 4 # ############## # Check if project data folder exists. If it not exists, create a project data folder. if (!file.exists("Project1Data")) { dir.create("Project1Data") } # Set file URL & the destination file. URL <- "https://d396qusza40orc.cloudfront.net/exdata%2F...
/Week-1/Course-Project-1/plot4.R
no_license
anujjain900/Coursera-ExploratoryDataAnalysis
R
false
false
2,178
r
############## # Plot 4 # ############## # Check if project data folder exists. If it not exists, create a project data folder. if (!file.exists("Project1Data")) { dir.create("Project1Data") } # Set file URL & the destination file. URL <- "https://d396qusza40orc.cloudfront.net/exdata%2F...
# Detect faces check whether ######################## # Setup the environment with libraries and the key service ######################## # Use the paws library for easy access to aws # Note: You will need to authenticate. For this project, I have my credentials in an # AWS configuration; so, paws looks there for t...
/RCode/DetectFaces.R
no_license
sk956/masterThesis
R
false
false
4,843
r
# Detect faces check whether ######################## # Setup the environment with libraries and the key service ######################## # Use the paws library for easy access to aws # Note: You will need to authenticate. For this project, I have my credentials in an # AWS configuration; so, paws looks there for t...
library(shiny) library(shinydashboard) header <- dashboardHeader( title = "Image Annotation App" ) body <- dashboardBody( # Function for Registering Keypresses tags$script(' document.onkeydown = function(e){ Shiny.setInputValue("keyp", e.keyCode); console.log(e) } document.onkeyup = fun...
/app/ui.R
no_license
bransonf/tateR
R
false
false
832
r
library(shiny) library(shinydashboard) header <- dashboardHeader( title = "Image Annotation App" ) body <- dashboardBody( # Function for Registering Keypresses tags$script(' document.onkeydown = function(e){ Shiny.setInputValue("keyp", e.keyCode); console.log(e) } document.onkeyup = fun...
#install.packages(c("tidyverse","dataMaid")) setwd("./") library(tidyverse) library(dataMaid) #file paths folder = "./" training_file = "training_data.csv" test_file = "testing_data.csv" training_path = paste(folder,training_file,sep="/") test_path = paste(folder,test_file,sep="/") #Load datasets training_datase...
/dataset_analysis.r
permissive
JeyDi/CreditCard-NeuralNet
R
false
false
830
r
#install.packages(c("tidyverse","dataMaid")) setwd("./") library(tidyverse) library(dataMaid) #file paths folder = "./" training_file = "training_data.csv" test_file = "testing_data.csv" training_path = paste(folder,training_file,sep="/") test_path = paste(folder,test_file,sep="/") #Load datasets training_datase...
#' Log rank test p value and other summary statistics for subgroup analysis #' #' This function takes time to event outcome, and one categorical variable (parameter var). It generates log rank p value comparing different groups, and summary statistics #' #' @author Ning Leng \email{leng.ning@gene.com}, Alexey Pronin \e...
/R/LogRankTab.R
no_license
lengning/gClinBiomarker
R
false
false
4,871
r
#' Log rank test p value and other summary statistics for subgroup analysis #' #' This function takes time to event outcome, and one categorical variable (parameter var). It generates log rank p value comparing different groups, and summary statistics #' #' @author Ning Leng \email{leng.ning@gene.com}, Alexey Pronin \e...
# *********************************************************************************************** # Title : 計量経済学 # Chapter : 7 操作変数法 # Theme : 実証例7.4 操作変数の強さ # Date : 2022/12/13 # Page : P298 - P299 # URL : https://ritsu1997.github.io/r-for-nlas-econometrics/index.html # *********************************...
/book/nishiyama_econometrics/7-4_操作変数法_操作変数の強さ.R
no_license
delta0726/r-econometrics
R
false
false
1,790
r
# *********************************************************************************************** # Title : 計量経済学 # Chapter : 7 操作変数法 # Theme : 実証例7.4 操作変数の強さ # Date : 2022/12/13 # Page : P298 - P299 # URL : https://ritsu1997.github.io/r-for-nlas-econometrics/index.html # *********************************...
test <- function(){ pop <- vector() for(i in 1:30){ pop <- rbind(pop, rbinom(12, 1, 0.5)) } print(pop) new_pop <- mutation(pop, 0.1) print(new_pop) }
/testMutation.R~
no_license
maximustann/Summer_project
R
false
false
160
test <- function(){ pop <- vector() for(i in 1:30){ pop <- rbind(pop, rbinom(12, 1, 0.5)) } print(pop) new_pop <- mutation(pop, 0.1) print(new_pop) }
testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.9839731460309e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.66013830765329...
/meteor/inst/testfiles/Photoperiod/AFL_Photoperiod/Photoperiod_valgrind_files/1615768636-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
682
r
testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.9839731460309e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.66013830765329...
############### # bibliotecas # ############### require(gdata) require(plyr) require(Hmisc) ordenaDataFrame = function(data) { data$NOME_MUNICIPIO = as.character(data$NOME_MUNICIPIO) data$ANO = as.character(data$ANO) data = arrange(data, data$NOME_MUNICIPIO, data$ANO) return (data) } #junta a tabela nova na ...
/src/upload/server/php/agrega_novos_dados.R
no_license
nailson/mais-saude
R
false
false
1,170
r
############### # bibliotecas # ############### require(gdata) require(plyr) require(Hmisc) ordenaDataFrame = function(data) { data$NOME_MUNICIPIO = as.character(data$NOME_MUNICIPIO) data$ANO = as.character(data$ANO) data = arrange(data, data$NOME_MUNICIPIO, data$ANO) return (data) } #junta a tabela nova na ...
library(tm) library(dplyr) df<-read.csv("train.csv",stringsAsFactors = FALSE) df$Is_Response<-as.factor(df$Is_Response) set.seed(2) df<-df[sample(nrow(df)),] corpus<-Corpus(VectorSource(df$Description)) inspect(corpus[1:2]) corpus.clean <- corpus %>% tm_map(content_transformer(tolower)) %>% tm_map(removePunctuati...
/Hotel_Reviews.R
no_license
saksham789/Sentiment_Analysis_Hotel_reviews
R
false
false
1,185
r
library(tm) library(dplyr) df<-read.csv("train.csv",stringsAsFactors = FALSE) df$Is_Response<-as.factor(df$Is_Response) set.seed(2) df<-df[sample(nrow(df)),] corpus<-Corpus(VectorSource(df$Description)) inspect(corpus[1:2]) corpus.clean <- corpus %>% tm_map(content_transformer(tolower)) %>% tm_map(removePunctuati...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Annotations.R \name{ranges2annot} \alias{ranges2annot} \title{Hierarchical annotation of CTSSes} \usage{ ranges2annot(ranges, annot) } \arguments{ \item{ranges}{A \code{\link{CTSS}} object, for example extracted from a \code{RangedSummarizedE...
/man/ranges2annot.Rd
no_license
ComputationalRegulatoryGenomicsICL/CAGEr
R
false
true
2,526
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Annotations.R \name{ranges2annot} \alias{ranges2annot} \title{Hierarchical annotation of CTSSes} \usage{ ranges2annot(ranges, annot) } \arguments{ \item{ranges}{A \code{\link{CTSS}} object, for example extracted from a \code{RangedSummarizedE...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/findSameCol.R \name{findSameCol} \alias{findSameCol} \title{Find the same column from a matrix} \usage{ findSameCol(X, Y) } \arguments{ \item{X}{a matrix} \item{Y}{a vector with the same length as each column in X.} } \v...
/timma/man/findSameCol.Rd
no_license
akhikolla/InformationHouse
R
false
false
851
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/findSameCol.R \name{findSameCol} \alias{findSameCol} \title{Find the same column from a matrix} \usage{ findSameCol(X, Y) } \arguments{ \item{X}{a matrix} \item{Y}{a vector with the same length as each column in X.} } \v...
## FBB_param_corr ## parameter correlation plots of each leaf if(plot.corr){ pdf(paste(SaveLeafDir, runName, "_param_corr_Vcmax_Jmax.pdf",sep="")) plot(Vcmax.mcmc[keep,1], Jmax.mcmc[keep,1], pch = 19, main = "Vcmax & Jmax Correlation", xlab = "Vcmax", ylab = "Jmax", xlim = c(50,100), cex.ma...
/modules/photosynthesis/code/FBB_param_corr.R
permissive
PecanProject/pecan
R
false
false
1,095
r
## FBB_param_corr ## parameter correlation plots of each leaf if(plot.corr){ pdf(paste(SaveLeafDir, runName, "_param_corr_Vcmax_Jmax.pdf",sep="")) plot(Vcmax.mcmc[keep,1], Jmax.mcmc[keep,1], pch = 19, main = "Vcmax & Jmax Correlation", xlab = "Vcmax", ylab = "Jmax", xlim = c(50,100), cex.ma...
source() set.seed(123) mat1 <- cor(matrix(rnorm(400),nrow = 20)) mat2 <- Network_Enhancement(mat1) mat3 <- mat1 mat3[mat1<.3] <- 0 mat4 <- Network_Enhancement(mat3) mat5 <- mat2 mat5[mat2<.1] <- 0 require(igraph) net1 <- graph_from_adjacency_matrix(mat1, weighted = TRUE, ...
/Test_neten.R
no_license
microbma/neten
R
false
false
1,442
r
source() set.seed(123) mat1 <- cor(matrix(rnorm(400),nrow = 20)) mat2 <- Network_Enhancement(mat1) mat3 <- mat1 mat3[mat1<.3] <- 0 mat4 <- Network_Enhancement(mat3) mat5 <- mat2 mat5[mat2<.1] <- 0 require(igraph) net1 <- graph_from_adjacency_matrix(mat1, weighted = TRUE, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NormaliseDataset.R \name{CCMNNormaliseDataset} \alias{CCMNNormaliseDataset} \title{Normalises a Metabolon dataset using the Cross-contribution Compensating Multiple Internal standard normalistaion" (CCMN) method, Redestig et al. 2009} \usage{...
/man/CCMNNormaliseDataset.Rd
no_license
miepstei/MetabolonR
R
false
true
964
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NormaliseDataset.R \name{CCMNNormaliseDataset} \alias{CCMNNormaliseDataset} \title{Normalises a Metabolon dataset using the Cross-contribution Compensating Multiple Internal standard normalistaion" (CCMN) method, Redestig et al. 2009} \usage{...
#%% written by Shen Chun, cshen17@fudan.edu.cn #%% reviewed by Dr Qiang Luo, qluo@fudan.edu.cn #%% released on 28 Mar 2020 #%% please cite: Shen, et al. Ameircan Jounral of Psychiatry 2020 #install.packages("MatchIt") #install.packages("optmatch") library(MatchIt) library(optmatch) data_persistent <- read...
/S2.5.1_Find_matchSample.R
no_license
qluo2018/DualPathwayADHD
R
false
false
627
r
#%% written by Shen Chun, cshen17@fudan.edu.cn #%% reviewed by Dr Qiang Luo, qluo@fudan.edu.cn #%% released on 28 Mar 2020 #%% please cite: Shen, et al. Ameircan Jounral of Psychiatry 2020 #install.packages("MatchIt") #install.packages("optmatch") library(MatchIt) library(optmatch) data_persistent <- read...
iosurvival_UI <- function(id){ ns <- NS(id) tagList( titleBox("iAtlas Explorer — Clinical Outcomes to Immune Checkpoint Inhibitors"), textBox( width = 12, p("Plot survival curves based on immune characteristics and identify variables associated with outcome.") ...
/modules/ioresponsesurvivalmodule.R
permissive
xiaomosuan/shiny-iatlas
R
false
false
10,508
r
iosurvival_UI <- function(id){ ns <- NS(id) tagList( titleBox("iAtlas Explorer — Clinical Outcomes to Immune Checkpoint Inhibitors"), textBox( width = 12, p("Plot survival curves based on immune characteristics and identify variables associated with outcome.") ...
rktp <- function(n, k, mu, xpred = 1) { if (length(n) > 1) n <- length(n) stopifnot(n == as.integer(n)) stopifnot(n > 0) stopifnot(is.numeric(xpred)) stopifnot(length(xpred) > 0) stopifnot(all(xpred == as.integer(xpred))) stopifnot(is.numeric(mu)) stopifnot(length(mu) > 0) ...
/aster/R/rktp.R
no_license
ingted/R-Examples
R
false
false
782
r
rktp <- function(n, k, mu, xpred = 1) { if (length(n) > 1) n <- length(n) stopifnot(n == as.integer(n)) stopifnot(n > 0) stopifnot(is.numeric(xpred)) stopifnot(length(xpred) > 0) stopifnot(all(xpred == as.integer(xpred))) stopifnot(is.numeric(mu)) stopifnot(length(mu) > 0) ...
# Cut the Herman images into individual page files. # rotated, sized and comnpressed for oW-Whaling photos<-Sys.glob(sprintf("%s/oW4_logbooks/Batch_3_201611/herman/hermansteambarko00herm_orig_jp2/*", Sys.getenv('SCRATCH'))) uploads.dir<-sprintf("%s/oW4_logbooks/Batch_3_201611/herman/for_uplo...
/page_uploads/Batch_3_201611/herman/split.R
no_license
oldweather/oldWeather4
R
false
false
1,308
r
# Cut the Herman images into individual page files. # rotated, sized and comnpressed for oW-Whaling photos<-Sys.glob(sprintf("%s/oW4_logbooks/Batch_3_201611/herman/hermansteambarko00herm_orig_jp2/*", Sys.getenv('SCRATCH'))) uploads.dir<-sprintf("%s/oW4_logbooks/Batch_3_201611/herman/for_uplo...
# plots.R # Plotting functions for rcmodel objects #' @export ggTermPlot.rcgam <- function(object, xvar, data = NULL, ...) { obj <- as.gam(object) out <- ggTermPlot(obj, xvar, data, ...) out }
/R/plots.R
no_license
markwh/rcmodel
R
false
false
200
r
# plots.R # Plotting functions for rcmodel objects #' @export ggTermPlot.rcgam <- function(object, xvar, data = NULL, ...) { obj <- as.gam(object) out <- ggTermPlot(obj, xvar, data, ...) out }
#' --- #' title: "LECTURE 2" #' author: "Ege Rubak (based on Jakob G. Rasmussen's material)" #' date: "" #' output: #' html_document: default #' pdf_document: default #' --- #' #' ## PART 1: packages and programming #' #' If R does not contain the functions/statistics you need, odds are that somebody has implemente...
/lecture2/R-demo-2.R
no_license
Jstran/R-Kursus
R
false
false
9,561
r
#' --- #' title: "LECTURE 2" #' author: "Ege Rubak (based on Jakob G. Rasmussen's material)" #' date: "" #' output: #' html_document: default #' pdf_document: default #' --- #' #' ## PART 1: packages and programming #' #' If R does not contain the functions/statistics you need, odds are that somebody has implemente...
#' remapR: package to deal with ReMap #' #' Extremely important package for every R-user who uses ReMap #' #' #' #' @name remapR #' @docType package NULL
/R/remapR.R
no_license
LosevAMU/remapR
R
false
false
154
r
#' remapR: package to deal with ReMap #' #' Extremely important package for every R-user who uses ReMap #' #' #' #' @name remapR #' @docType package NULL
##exploratory analysis week 1 course project #loading and subsetting the data dir <- "F://document//R learning//cousera r programming//exploratory analysis//exdata_data_household_power_consumption" setwd(dir) alldata <- read.table("household_power_consumption.txt",header= TRUE,sep = ";",stringsAsFactors = FALSE) d...
/plot1.R
no_license
caicaifearless/Exploratory-analysis-course-project-1
R
false
false
573
r
##exploratory analysis week 1 course project #loading and subsetting the data dir <- "F://document//R learning//cousera r programming//exploratory analysis//exdata_data_household_power_consumption" setwd(dir) alldata <- read.table("household_power_consumption.txt",header= TRUE,sep = ";",stringsAsFactors = FALSE) d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ts.nnormal.R \name{ts.nnormal} \alias{ts.nnormal} \title{Apply the normal-based Bayesian two-stage causal model with instrumental variables.} \usage{ ts.nnormal(formula, data, advanced = FALSE, adv.model, b0 = 1, B0 = 1e-06, g0 = 0, G0 = 1e...
/man/ts.nnormal.Rd
no_license
dingjshi/ALMOND
R
false
true
8,821
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ts.nnormal.R \name{ts.nnormal} \alias{ts.nnormal} \title{Apply the normal-based Bayesian two-stage causal model with instrumental variables.} \usage{ ts.nnormal(formula, data, advanced = FALSE, adv.model, b0 = 1, B0 = 1e-06, g0 = 0, G0 = 1e...
library(MazamaCoreUtils) ### Name: logger.setLevel ### Title: Set console log level ### Aliases: logger.setLevel ### ** Examples ## Not run: ##D # Set up console logging only ##D logger.setup() ##D logger.setLevel(DEBUG) ## End(Not run)
/data/genthat_extracted_code/MazamaCoreUtils/examples/logger.setLevel.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
245
r
library(MazamaCoreUtils) ### Name: logger.setLevel ### Title: Set console log level ### Aliases: logger.setLevel ### ** Examples ## Not run: ##D # Set up console logging only ##D logger.setup() ##D logger.setLevel(DEBUG) ## End(Not run)
#' pvalues for correlation matrix - #' @description #' Benjamin Hochberg - adjusted #' tests for significance of correlations among rows. #' Transpose your matrix if you want to have it among columns #' @param x data matrix #' @param alternative (see cor.test) #' @param method (see cor.test) #' @export #' @exa...
/R/pvalCorMat.R
no_license
cran/quantable
R
false
false
1,117
r
#' pvalues for correlation matrix - #' @description #' Benjamin Hochberg - adjusted #' tests for significance of correlations among rows. #' Transpose your matrix if you want to have it among columns #' @param x data matrix #' @param alternative (see cor.test) #' @param method (see cor.test) #' @export #' @exa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_121} \alias{movie_121} \title{The Bodyguard} \format{igraph object} \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0103855 } \usag...
/man/movie_121.Rd
permissive
kjhealy/networkdata
R
false
true
1,007
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_121} \alias{movie_121} \title{The Bodyguard} \format{igraph object} \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0103855 } \usag...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mix_matrix.R \name{mix_matrix} \alias{mix_matrix} \title{Estimate mixture covariance matrix from within-group covariance matrices} \usage{ mix_matrix(sigma_list, mu_mat, p_vec, N = Inf, group_names = NULL, var_names = NULL) } \arguments{ \i...
/man/mix_matrix.Rd
no_license
romainfrancois/psychmeta
R
false
true
1,188
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mix_matrix.R \name{mix_matrix} \alias{mix_matrix} \title{Estimate mixture covariance matrix from within-group covariance matrices} \usage{ mix_matrix(sigma_list, mu_mat, p_vec, N = Inf, group_names = NULL, var_names = NULL) } \arguments{ \i...
# hw4_oop4 #' # In this exercise, we will create a class `shakeshack_order`. #' # 1. Create a constructor `new_shakeshack_order(names, prices)` that: # - takes in a vector of `names` # - a vector of `price` attribute whose type is double. # - instanciates an object of class `shakeshack_order` using `structu...
/HW4/OOP5.R
no_license
lsjhome/GR5206
R
false
false
3,785
r
# hw4_oop4 #' # In this exercise, we will create a class `shakeshack_order`. #' # 1. Create a constructor `new_shakeshack_order(names, prices)` that: # - takes in a vector of `names` # - a vector of `price` attribute whose type is double. # - instanciates an object of class `shakeshack_order` using `structu...
### Example of lm function require(graphics) ## Annette Dobson (1990) "An Introduction to Generalized Linear Models". ## Page 9: Plant Weight Data. ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69) group <- gl(2, 10, 20, labels = c("Ctl","Trt")) we...
/scratch/scratch.R
no_license
tninja/scratch
R
false
false
6,371
r
### Example of lm function require(graphics) ## Annette Dobson (1990) "An Introduction to Generalized Linear Models". ## Page 9: Plant Weight Data. ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69) group <- gl(2, 10, 20, labels = c("Ctl","Trt")) we...
#Project to extract power consumption data and create a plot #Read powerconsumption data pwr_cons <- read.table("./exploratory/household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) #Forma...
/plot3.r
no_license
sasmiras/ExData_Plotting1
R
false
false
1,183
r
#Project to extract power consumption data and create a plot #Read powerconsumption data pwr_cons <- read.table("./exploratory/household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) #Forma...