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
setwd("~/ExData_Plotting1") ## Import Data household_power_consumption <- read.csv("~/ExData_Plotting1/household_power_consumption.txt", sep=";", stringsAsFactors=FALSE) ## Create datetime household_power_consumption$DateTime <- as.POSIXct(paste(household_power_consumption$Date, household_power_consumption$Time), f...
/Plot2.R
no_license
Ando3121/ExData_Plotting1
R
false
false
895
r
setwd("~/ExData_Plotting1") ## Import Data household_power_consumption <- read.csv("~/ExData_Plotting1/household_power_consumption.txt", sep=";", stringsAsFactors=FALSE) ## Create datetime household_power_consumption$DateTime <- as.POSIXct(paste(household_power_consumption$Date, household_power_consumption$Time), f...
# ############################################################################# # quantilebias_functions.R # # Author: Enrico Arnone (ISAC-CNR, Italy) # # ############################################################################# # Description # Originally developed as functions to be used in HyInt routines # # M...
/esmvaltool/diag_scripts/quantilebias/quantilebias_functions.R
permissive
ESMValGroup/ESMValTool
R
false
false
17,239
r
# ############################################################################# # quantilebias_functions.R # # Author: Enrico Arnone (ISAC-CNR, Italy) # # ############################################################################# # Description # Originally developed as functions to be used in HyInt routines # # M...
\name{chen} \alias{dchen} \alias{pchen} \alias{varchen} \alias{eschen} \title{Chen distribution} \description{Computes the pdf, cdf, value at risk and expected shortfall for the Chen distribution due to Chen (2000) given by \deqn{\begin{array}{ll} &\displaystyle f(x) = \lambda b x^{b - 1} \exp \left( x^b \righ...
/man/chen.Rd
no_license
cran/VaRES
R
false
false
2,237
rd
\name{chen} \alias{dchen} \alias{pchen} \alias{varchen} \alias{eschen} \title{Chen distribution} \description{Computes the pdf, cdf, value at risk and expected shortfall for the Chen distribution due to Chen (2000) given by \deqn{\begin{array}{ll} &\displaystyle f(x) = \lambda b x^{b - 1} \exp \left( x^b \righ...
library(smfsb) ### Name: simSample ### Title: Simulate a many realisations of a model at a given fixed time in ### the future given an initial time and state, using a function ### (closure) for advancing the state of the model ### Aliases: simSample ### Keywords: smfsb ### ** Examples out3 = simSample(100,c(x1=...
/data/genthat_extracted_code/smfsb/examples/simSample.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
366
r
library(smfsb) ### Name: simSample ### Title: Simulate a many realisations of a model at a given fixed time in ### the future given an initial time and state, using a function ### (closure) for advancing the state of the model ### Aliases: simSample ### Keywords: smfsb ### ** Examples out3 = simSample(100,c(x1=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Create_Diag_Scaling_Mat_Sparse.R \name{adj_to_probTrans} \alias{adj_to_probTrans} \title{Adjacency to Probability Transition Matrix} \usage{ adj_to_probTrans(mat) } \arguments{ \item{mat}{A matrix like object (either a matrix, sparse matrix o...
/man/adj_to_probTrans.Rd
no_license
RyanGreenup/PageRank
R
false
true
836
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Create_Diag_Scaling_Mat_Sparse.R \name{adj_to_probTrans} \alias{adj_to_probTrans} \title{Adjacency to Probability Transition Matrix} \usage{ adj_to_probTrans(mat) } \arguments{ \item{mat}{A matrix like object (either a matrix, sparse matrix o...
## This code is intended to calculate the convex hull of the defensive team at ball snap. ## The convex hull is the outermost polygon connecting their positions. ## The area of the convex hull is basically a summary of how spread out the defense is, ## which could be an interesting feature to look at in relation to d...
/scripts/convex_hull_defense.R
no_license
SUNNY11286/oh_snap
R
false
false
4,983
r
## This code is intended to calculate the convex hull of the defensive team at ball snap. ## The convex hull is the outermost polygon connecting their positions. ## The area of the convex hull is basically a summary of how spread out the defense is, ## which could be an interesting feature to look at in relation to d...
# # Example preprocessing script. source("./lib/funcs.R") indicators <- raw.data$log %>% dplyr::filter(source == "WB") filename <- "./data/sfr model data/gdp per capita.xls" x <- read_excel(filename, "Data") pos <- min(grep("Country Name", unlist(x[, 1]))) names(x) <- tolower(x[pos, ]) x <- x[-c(1:pos), ] x <- x %>% dp...
/munge/23-gdp growth rate.R
no_license
githubIEP/oecd-sfr-2016
R
false
false
1,085
r
# # Example preprocessing script. source("./lib/funcs.R") indicators <- raw.data$log %>% dplyr::filter(source == "WB") filename <- "./data/sfr model data/gdp per capita.xls" x <- read_excel(filename, "Data") pos <- min(grep("Country Name", unlist(x[, 1]))) names(x) <- tolower(x[pos, ]) x <- x[-c(1:pos), ] x <- x %>% dp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Plot.R \name{plotMyData} \alias{plotMyData} \title{Wrapper function for ggplot2 for data d Computes the mean, variance and sd of a vector} \usage{ plotMyData(x) } \arguments{ \item{x}{data.frame} } \value{ ggplot2 } \descriptio...
/RomanSimonTools/man/plotMyData.Rd
no_license
romanEsimon/Stats-3701
R
false
true
499
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Plot.R \name{plotMyData} \alias{plotMyData} \title{Wrapper function for ggplot2 for data d Computes the mean, variance and sd of a vector} \usage{ plotMyData(x) } \arguments{ \item{x}{data.frame} } \value{ ggplot2 } \descriptio...
# Hello, world! # # This is an example function named 'hello' # which prints 'Hello, world!'. # # You can learn more about package authoring with RStudio at: # # http://r-pkgs.had.co.nz/ # # Some useful keyboard shortcuts for package authoring: # # Build and Reload Package: 'Cmd + Shift + B' # Check Package: ...
/R/hello.R
no_license
ecophilina/TestPackage
R
false
false
481
r
# Hello, world! # # This is an example function named 'hello' # which prints 'Hello, world!'. # # You can learn more about package authoring with RStudio at: # # http://r-pkgs.had.co.nz/ # # Some useful keyboard shortcuts for package authoring: # # Build and Reload Package: 'Cmd + Shift + B' # Check Package: ...
# Function for providing KL divergence as goodness of fit measure if (!'pacman' %in% installed.packages()[,'Package']) install.packages('pacman', repos='http://cran.r-project.org') pacman::p_load(boot,dplyr,StableEstim) # Kullback-Leibler divergence kl_fun <- function(p, q) { # Arguments: # p: numeric, predic...
/fittinglevy/R/goodness_score_kullback_leibler.R
no_license
Orbis-Amadeus-Oxford/Amadeus-Datawork
R
false
false
472
r
# Function for providing KL divergence as goodness of fit measure if (!'pacman' %in% installed.packages()[,'Package']) install.packages('pacman', repos='http://cran.r-project.org') pacman::p_load(boot,dplyr,StableEstim) # Kullback-Leibler divergence kl_fun <- function(p, q) { # Arguments: # p: numeric, predic...
# Get the Data # Read in with tidytuesdayR package # Install from CRAN via: install.packages("tidytuesdayR") # This loads the readme and all the datasets for the week of interest # Either ISO-8601 date or year/week works! tuesdata <- tidytuesdayR::tt_load('2021-02-09') tuesdata <- tidytuesdayR::tt_load(2021, week =...
/Code_XZ/2021/2021-2-9.R
permissive
xiaosongz/tidytuesday
R
false
false
2,019
r
# Get the Data # Read in with tidytuesdayR package # Install from CRAN via: install.packages("tidytuesdayR") # This loads the readme and all the datasets for the week of interest # Either ISO-8601 date or year/week works! tuesdata <- tidytuesdayR::tt_load('2021-02-09') tuesdata <- tidytuesdayR::tt_load(2021, week =...
require(deSolve) require(scales) require(ggplot2) require(dplyr) require(RColorBrewer) require(viridis) require(rcartocolor) require(gridExtra) # Environmentally-transmitted systems # ##### Describe a curve for individual-level parasitism (i.e., average parasite load) temp <- seq(0,45,0.1) #temperature range ind.m...
/thermal scaling modeling - JAE - enviro model - one relationship.R
no_license
devingkirk/thermal_scaling
R
false
false
6,995
r
require(deSolve) require(scales) require(ggplot2) require(dplyr) require(RColorBrewer) require(viridis) require(rcartocolor) require(gridExtra) # Environmentally-transmitted systems # ##### Describe a curve for individual-level parasitism (i.e., average parasite load) temp <- seq(0,45,0.1) #temperature range ind.m...
library("mmstat4") # run example program run("stat/sum.R") # list of all example programs prg() prg(pattern=".py") # show only python programs # file name of example program prg("stat/sum.R") # editexample program file.edit(prg("stat/sum.R")) # RStudio editor
/inst/examples/stat/use_mmstat4.R
no_license
Kale14/mmstat4
R
false
false
262
r
library("mmstat4") # run example program run("stat/sum.R") # list of all example programs prg() prg(pattern=".py") # show only python programs # file name of example program prg("stat/sum.R") # editexample program file.edit(prg("stat/sum.R")) # RStudio editor
library(mrds) library(testthat) context("Single Observer Analyses") test_that("Test Analyses", { #datasetup ex.filename<-system.file("testData/input_checks/ddf_dat.robj", package="mads") load(ex.filename) ex.filename<-system.file("testData/input_checks/obs_table.robj", package="mads") load(ex.filename) ...
/tests/testthat/test_singleObserver.R
no_license
cran/mads
R
false
false
16,537
r
library(mrds) library(testthat) context("Single Observer Analyses") test_that("Test Analyses", { #datasetup ex.filename<-system.file("testData/input_checks/ddf_dat.robj", package="mads") load(ex.filename) ex.filename<-system.file("testData/input_checks/obs_table.robj", package="mads") load(ex.filename) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_vaa.R \name{get_vaa} \alias{get_vaa} \title{NHDPlusV2 Attribute Subset} \usage{ get_vaa( atts = NULL, path = get_vaa_path(), download = TRUE, updated_network = FALSE ) } \arguments{ \item{atts}{character The variable...
/man/get_vaa.Rd
permissive
cran/nhdplusTools
R
false
true
1,730
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_vaa.R \name{get_vaa} \alias{get_vaa} \title{NHDPlusV2 Attribute Subset} \usage{ get_vaa( atts = NULL, path = get_vaa_path(), download = TRUE, updated_network = FALSE ) } \arguments{ \item{atts}{character The variable...
#------------------------------------------------------------- # # 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...
/src/test/scripts/functions/codegen/CompressedMultiAggregateMain.R
permissive
apache/systemds
R
false
false
1,186
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...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plus_objects.R \name{Comment.actor} \alias{Comment.actor} \title{Comment.actor Object} \usage{ Comment.actor(Comment.actor.clientSpecificActorInfo = NULL, Comment.actor.clientSpecificActorInfo.youtubeActorInfo = NULL, Comment.actor.image ...
/googleplusv1.auto/man/Comment.actor.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,844
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plus_objects.R \name{Comment.actor} \alias{Comment.actor} \title{Comment.actor Object} \usage{ Comment.actor(Comment.actor.clientSpecificActorInfo = NULL, Comment.actor.clientSpecificActorInfo.youtubeActorInfo = NULL, Comment.actor.image ...
# Simulation Study Code for: # No Measurement Error # 4n # 10 # Missing Completely at Random # GLMNET # Last Modified: 3/7/2020 Sys.setenv(JAVA_HOME='') library(earth) library(randomForest) library(DMwR) library(caret) library(caretEnsemble) library(pROC) library(glmnet) library(plotROC) library(t...
/NoMeasureError_4n_10_MCAR_GLMNET.R
no_license
robertobertolini/Binary_Classification_Simulation_Study
R
false
false
5,156
r
# Simulation Study Code for: # No Measurement Error # 4n # 10 # Missing Completely at Random # GLMNET # Last Modified: 3/7/2020 Sys.setenv(JAVA_HOME='') library(earth) library(randomForest) library(DMwR) library(caret) library(caretEnsemble) library(pROC) library(glmnet) library(plotROC) library(t...
## This function creates a matrix that can cache its inverse. ## Requires a square invertible matrix as input(limit of solve fxn). makeCacheMatrix <- function(x = matrix()) { inv_mat <- NULL set <- function(y) { ## this sets the values of x and inv_mat in the global environment x <<- y inv_mat...
/cachematrix.R
no_license
stoering/ProgrammingAssignment2
R
false
false
1,269
r
## This function creates a matrix that can cache its inverse. ## Requires a square invertible matrix as input(limit of solve fxn). makeCacheMatrix <- function(x = matrix()) { inv_mat <- NULL set <- function(y) { ## this sets the values of x and inv_mat in the global environment x <<- y inv_mat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ChIPseqSpikeInFree.R \name{ReadMeta} \alias{ReadMeta} \title{read in sample metadata file} \usage{ ReadMeta(metaFile = "sample_meta.txt") } \arguments{ \item{metaFile}{a metadata file name; the file must have three columns: ID (bam filename w...
/man/ReadMeta.Rd
permissive
stjude/ChIPseqSpikeInFree
R
false
true
1,345
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ChIPseqSpikeInFree.R \name{ReadMeta} \alias{ReadMeta} \title{read in sample metadata file} \usage{ ReadMeta(metaFile = "sample_meta.txt") } \arguments{ \item{metaFile}{a metadata file name; the file must have three columns: ID (bam filename w...
#' Obtener tasa de inflacion #' #' Obtiene tasa de inflación inter anual en porcentaje. #' La inflación se define como el cambio porcentual en el INPC. #' Es un wrapper de las funciones \code{serie_inegi()} y \code{YoY()}. #' #' @param token token persona emitido por el INEGI para acceder al API de indicadores. #' @a...
/inegiR/R/IndicesPrecios.R
no_license
ingted/R-Examples
R
false
false
10,380
r
#' Obtener tasa de inflacion #' #' Obtiene tasa de inflación inter anual en porcentaje. #' La inflación se define como el cambio porcentual en el INPC. #' Es un wrapper de las funciones \code{serie_inegi()} y \code{YoY()}. #' #' @param token token persona emitido por el INEGI para acceder al API de indicadores. #' @a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/upload_video.R \name{upload_video} \alias{upload_video} \title{Upload Video to Youtube} \usage{ upload_video(file, snippet = NULL, status = list(privacyStatus = "public"), query = NULL, open_url = FALSE, ...) } \arguments{ \item{file}{Filen...
/man/upload_video.Rd
permissive
stjordanis/tuber
R
false
true
1,836
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/upload_video.R \name{upload_video} \alias{upload_video} \title{Upload Video to Youtube} \usage{ upload_video(file, snippet = NULL, status = list(privacyStatus = "public"), query = NULL, open_url = FALSE, ...) } \arguments{ \item{file}{Filen...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/has-name.R, R/pipe.R, R/tbl_sum.R \docType{import} \name{reexports} \alias{reexports} \alias{has_name} \alias{\%>\%} \alias{obj_sum} \alias{type_sum} \alias{is_vector_s3} \title{Objects exported from other packages} \keyword{internal} \descri...
/man/reexports.Rd
permissive
datacamp/tibble
R
false
true
654
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/has-name.R, R/pipe.R, R/tbl_sum.R \docType{import} \name{reexports} \alias{reexports} \alias{has_name} \alias{\%>\%} \alias{obj_sum} \alias{type_sum} \alias{is_vector_s3} \title{Objects exported from other packages} \keyword{internal} \descri...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download.MsTMIP_NARR.R \name{download.MsTMIP_NARR} \alias{download.MsTMIP_NARR} \title{download.MsTMIP_NARR} \usage{ download.MsTMIP_NARR( outfolder, start_date, end_date, site_id, lat.in, lon.in, overwrite = FALSE, verbose = ...
/modules/data.atmosphere/man/download.MsTMIP_NARR.Rd
permissive
ashiklom/pecan
R
false
true
624
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download.MsTMIP_NARR.R \name{download.MsTMIP_NARR} \alias{download.MsTMIP_NARR} \title{download.MsTMIP_NARR} \usage{ download.MsTMIP_NARR( outfolder, start_date, end_date, site_id, lat.in, lon.in, overwrite = FALSE, verbose = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compare.summStat.R \name{pvalue_arbutus} \alias{pvalue_arbutus} \title{Extract p--values for test statistics} \usage{ pvalue_arbutus(x) } \arguments{ \item{x}{an \code{arbutus} object from the function \code{\link{compare_pic_stat}}} } \value...
/man/pvalue_arbutus.Rd
no_license
mwpennell/arbutus
R
false
true
1,087
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compare.summStat.R \name{pvalue_arbutus} \alias{pvalue_arbutus} \title{Extract p--values for test statistics} \usage{ pvalue_arbutus(x) } \arguments{ \item{x}{an \code{arbutus} object from the function \code{\link{compare_pic_stat}}} } \value...
datos = read.csv("DATA/PalmCurrentDataset.csv") # Define UI for app that draws a histogram ---- ui <- fluidPage( # App title ---- titlePanel("Accumulation Curves per Palm"), # Sidebar layout with input and output definitions ---- sidebarLayout( # Sidebar panel for inputs ---- sidebarPanel( ...
/Scripts_R/shiny.R
permissive
fgabriel1891/Palm-frugivore-Interactions-Macroscales
R
false
false
2,143
r
datos = read.csv("DATA/PalmCurrentDataset.csv") # Define UI for app that draws a histogram ---- ui <- fluidPage( # App title ---- titlePanel("Accumulation Curves per Palm"), # Sidebar layout with input and output definitions ---- sidebarLayout( # Sidebar panel for inputs ---- sidebarPanel( ...
######## pipeLine for final report to plink format #remove all stored values rm(list=ls(all=TRUE)) #change working directory setwd(choose.dir()) getwd() #2: read the data as follow fam <- read.table(file="Sample_Map.txt", header=F, skip=1) head(fam) # 3: Define the col name of new file colnames(fam) <- c("Index...
/fam.R
no_license
MBZandi/Convert-the-Illumina-Final-Report-to-Plink
R
false
false
939
r
######## pipeLine for final report to plink format #remove all stored values rm(list=ls(all=TRUE)) #change working directory setwd(choose.dir()) getwd() #2: read the data as follow fam <- read.table(file="Sample_Map.txt", header=F, skip=1) head(fam) # 3: Define the col name of new file colnames(fam) <- c("Index...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/upset.R \name{get_labels_from_binary} \alias{get_labels_from_binary} \title{Get corresponding label from a binary group value} \usage{ get_labels_from_binary(data, mask, group = "g", trans = FALSE) } \arguments{ \item{data}{data.frame} \item...
/man/get_labels_from_binary.Rd
no_license
cturbelin/ifnBase
R
false
true
789
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/upset.R \name{get_labels_from_binary} \alias{get_labels_from_binary} \title{Get corresponding label from a binary group value} \usage{ get_labels_from_binary(data, mask, group = "g", trans = FALSE) } \arguments{ \item{data}{data.frame} \item...
library(PenCoxFrail) ### Name: pencoxfrailControl ### Title: Control Values for 'pencoxfrail' fit ### Aliases: pencoxfrailControl ### ** Examples # Use different weighting of the two penalty parts # and lighten the convergence criterion pencoxfrailControl(zeta=0.3, conv.eps=1e-3)
/data/genthat_extracted_code/PenCoxFrail/examples/pencoxfrailControl.rd.R
no_license
surayaaramli/typeRrh
R
false
false
289
r
library(PenCoxFrail) ### Name: pencoxfrailControl ### Title: Control Values for 'pencoxfrail' fit ### Aliases: pencoxfrailControl ### ** Examples # Use different weighting of the two penalty parts # and lighten the convergence criterion pencoxfrailControl(zeta=0.3, conv.eps=1e-3)
#' Ipsen Mikhailov #' #' @param graph_1 igraph or matrix object. #' @param graph_2 igraph or matrix object. #' @param hwhm Numeric parameter for the lorentzian kernel. #' @param results_list Logical indicating whether or not to return results list. #' #' @export dist_ipsen_mikhailov <- function(graph_1, graph_2, hwhm =...
/R/ipsen-mikhailov.R
permissive
Fagan-Lab/disgraph
R
false
false
2,429
r
#' Ipsen Mikhailov #' #' @param graph_1 igraph or matrix object. #' @param graph_2 igraph or matrix object. #' @param hwhm Numeric parameter for the lorentzian kernel. #' @param results_list Logical indicating whether or not to return results list. #' #' @export dist_ipsen_mikhailov <- function(graph_1, graph_2, hwhm =...
VMPDSigmaLL <- function(vmName) { obs <- DSigma('VMP', 'LL') attr(obs, 'vmName') <- vmName obs } getExternalStateFactor.VMPDSigmaLL <- function(vmpll, Q2 = Q2, alpha = 0) { f1 <- getU1NNMode(Q2 = Q2, alpha = alpha)$dfQ(z) f3 <- getU1NormalizableMode()$dfm(z) splinefun(z, f1 * f3 / (sqrt(Q2) * mass)) } ...
/R/VMPDSigmaLL.R
permissive
rcarcasses/HQCD-P
R
false
false
364
r
VMPDSigmaLL <- function(vmName) { obs <- DSigma('VMP', 'LL') attr(obs, 'vmName') <- vmName obs } getExternalStateFactor.VMPDSigmaLL <- function(vmpll, Q2 = Q2, alpha = 0) { f1 <- getU1NNMode(Q2 = Q2, alpha = alpha)$dfQ(z) f3 <- getU1NormalizableMode()$dfm(z) splinefun(z, f1 * f3 / (sqrt(Q2) * mass)) } ...
###################################################### # # Iteratively Weighted Penalized Regression # ###################################################### IterWeight <- function(y.train, X.train, y.test, X.test, alpha = 0.2, tol = 0.001, maxCount = 20, ...
/RWEN/RWEN.R
no_license
Kimseonghun-468/GCN
R
false
false
8,244
r
###################################################### # # Iteratively Weighted Penalized Regression # ###################################################### IterWeight <- function(y.train, X.train, y.test, X.test, alpha = 0.2, tol = 0.001, maxCount = 20, ...
testlist <- list(genotype = c(-737640063L, -2122219135L, -2129330220L, -16206719L, 134217728L, 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...
/detectRUNS/inst/testfiles/genoConvertCpp/libFuzzer_genoConvertCpp/genoConvertCpp_valgrind_files/1609875053-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
468
r
testlist <- list(genotype = c(-737640063L, -2122219135L, -2129330220L, -16206719L, 134217728L, 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...
################################################ # ncvreg works for Poisson regression ################################################ n <- 200 p <- 50 X <- matrix(rnorm(n*p), ncol=p) y <- rpois(n, 1) beta <- glm(y~X, family="poisson")$coef scad <- coef(ncvreg(X, y, lambda.min=0, family="poisson", penalty="SCAD", eps=...
/inst/tinytest/poisson.R
no_license
pbreheny/ncvreg
R
false
false
2,134
r
################################################ # ncvreg works for Poisson regression ################################################ n <- 200 p <- 50 X <- matrix(rnorm(n*p), ncol=p) y <- rpois(n, 1) beta <- glm(y~X, family="poisson")$coef scad <- coef(ncvreg(X, y, lambda.min=0, family="poisson", penalty="SCAD", eps=...
enums = getEnums(tu) # Clark: The enumerated types. I'll have to stop here and inspect these. enums = enums[grep("poppler", sapply(enums, getFileName))] enums = enums[ !grepl("Activation", names(enums)) ] cenums = lapply(enums, makeEnumDef) renums = lapply(enums, makeEnumClass) cat(sapply(cenums, function(x) paste(c...
/TU/enums.R
permissive
clarkfitzg/Ropencv
R
false
false
518
r
enums = getEnums(tu) # Clark: The enumerated types. I'll have to stop here and inspect these. enums = enums[grep("poppler", sapply(enums, getFileName))] enums = enums[ !grepl("Activation", names(enums)) ] cenums = lapply(enums, makeEnumDef) renums = lapply(enums, makeEnumClass) cat(sapply(cenums, function(x) paste(c...
# WSdsm.R (WordSpace / Distributional Semantic Model) # # Script constitué par un ensemble de fonctions destinées à faciliter l'usage # de la bibliothèque R 'wordspace' (Stefan Evert), à partir d'un corpus enregistré sous CWB. # Un premier groupe de fonctions est destiné à créer un DSM et à calculer, à partir de ce ...
/Scripts/WSdsm.R
no_license
Commune-2017/Semantique
R
false
false
31,113
r
# WSdsm.R (WordSpace / Distributional Semantic Model) # # Script constitué par un ensemble de fonctions destinées à faciliter l'usage # de la bibliothèque R 'wordspace' (Stefan Evert), à partir d'un corpus enregistré sous CWB. # Un premier groupe de fonctions est destiné à créer un DSM et à calculer, à partir de ce ...
# 11.plotSignatureProps.R ################# notes ################# # 1. read in EMu results files and plot mutational signature proportions # # 2. create stats for trunk-branch-leaf comparisons # # # ################# main program ################# sampleList <- read.csv(file="~/PhD/CRCproject/masterSampleList.allS...
/11.plotSignatureProps.R
no_license
cyclo-hexane/analysisScripts
R
false
false
5,538
r
# 11.plotSignatureProps.R ################# notes ################# # 1. read in EMu results files and plot mutational signature proportions # # 2. create stats for trunk-branch-leaf comparisons # # # ################# main program ################# sampleList <- read.csv(file="~/PhD/CRCproject/masterSampleList.allS...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/OED_isothermal.R \name{detFIM} \alias{detFIM} \title{Objective function for D-optimal OED} \usage{ detFIM(x, model, pars) } \arguments{ \item{x}{a numeric vector of length \code{n} defining the design matrix. The first n/2 elements are the ti...
/man/detFIM.Rd
no_license
jlpesoto/bioOED_0.2.1
R
false
true
850
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/OED_isothermal.R \name{detFIM} \alias{detFIM} \title{Objective function for D-optimal OED} \usage{ detFIM(x, model, pars) } \arguments{ \item{x}{a numeric vector of length \code{n} defining the design matrix. The first n/2 elements are the ti...
\name{print n.for.2p} \alias{print.n.for.2p} \title{Print n.for.2p results} \description{Print results for sample size for hypothesis testing of 2 proportions} \usage{ \method{print}{n.for.2p}(x, ...) } \arguments{ \item{x}{object of class 'n.for.2p'} \item{...}{further arguments passed to or use...
/man/print.n.for.2p.rd
no_license
cran/epicalc
R
false
false
620
rd
\name{print n.for.2p} \alias{print.n.for.2p} \title{Print n.for.2p results} \description{Print results for sample size for hypothesis testing of 2 proportions} \usage{ \method{print}{n.for.2p}(x, ...) } \arguments{ \item{x}{object of class 'n.for.2p'} \item{...}{further arguments passed to or use...
library(arules) library(arulesViz) book<-read.csv(file.choose()) View(book) class(book) book_trans<-as(as.matrix(book),"transactions") inspect(book_trans[1:100]) # If we inspect book_trans # we should get transactions of items i.e. # As we have 2000 rows ..so we should get 2000 transactions # Each row repres...
/books_groceries_movies.R
no_license
arunailani/DATA-SCIENCE-ASSIGNMENTS
R
false
false
3,535
r
library(arules) library(arulesViz) book<-read.csv(file.choose()) View(book) class(book) book_trans<-as(as.matrix(book),"transactions") inspect(book_trans[1:100]) # If we inspect book_trans # we should get transactions of items i.e. # As we have 2000 rows ..so we should get 2000 transactions # Each row repres...
######Plot 4 #The dataset is already stored in my working directory and the data is loaded into R using the following codes where stringsAsFactors=FALSE is added to avoid the conversion of vectors to factors: filenamne <- "household_power_consumption.txt" rawfile <- read.table(filenamne, header= TRUE, sep= ";", stri...
/plot4.R
no_license
Payamdel/EDAera2015
R
false
false
2,101
r
######Plot 4 #The dataset is already stored in my working directory and the data is loaded into R using the following codes where stringsAsFactors=FALSE is added to avoid the conversion of vectors to factors: filenamne <- "household_power_consumption.txt" rawfile <- read.table(filenamne, header= TRUE, sep= ";", stri...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{plot.mfa} \alias{plot.mfa} \title{Plot Method For "mfa" Object} \usage{ \method{plot}{mfa}(x, type, xdim = 1, ydim = 2, facetrows = 2, size = 5, subtabs = NULL, legend = NA, mytitle = NA, label = NA, bootstrap_size = 1000, bo...
/final_submission/package/mfaMKTLT/man/plot.mfa.Rd
no_license
mshin03/stat243
R
false
true
3,522
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{plot.mfa} \alias{plot.mfa} \title{Plot Method For "mfa" Object} \usage{ \method{plot}{mfa}(x, type, xdim = 1, ydim = 2, facetrows = 2, size = 5, subtabs = NULL, legend = NA, mytitle = NA, label = NA, bootstrap_size = 1000, bo...
library(unmarked) ### Name: unmarkedFramePCount ### Title: Organize data for the N-mixture model fit by pcount ### Aliases: unmarkedFramePCount ### ** Examples # Fake data R <- 4 # number of sites J <- 3 # number of visits y <- matrix(c( 1,2,0, 0,0,0, 1,1,1, 2,2,1), nrow=R, ncol=J, byrow=TRUE) y site....
/data/genthat_extracted_code/unmarked/examples/unmarkedFramePCount.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
890
r
library(unmarked) ### Name: unmarkedFramePCount ### Title: Organize data for the N-mixture model fit by pcount ### Aliases: unmarkedFramePCount ### ** Examples # Fake data R <- 4 # number of sites J <- 3 # number of visits y <- matrix(c( 1,2,0, 0,0,0, 1,1,1, 2,2,1), nrow=R, ncol=J, byrow=TRUE) y site....
library(testthat) library(tblHelpers) test_check("tblHelpers")
/tests/testthat.R
permissive
bcjaeger/tblHelpers
R
false
false
64
r
library(testthat) library(tblHelpers) test_check("tblHelpers")
# import packages library(tidyverse) library(magrittr) library(readxl) library(data.table) library(janitor) library(readr) library(fuzzyjoin) library(zipcodeR) library(stringr) library(parallel) library(geosphere) library(tm) library(ggmap) library(numform) library(HistogramTools) library(plotly) library(reticulate) #...
/core/model.R
permissive
homebase3/nycdsa_final_project
R
false
false
596
r
# import packages library(tidyverse) library(magrittr) library(readxl) library(data.table) library(janitor) library(readr) library(fuzzyjoin) library(zipcodeR) library(stringr) library(parallel) library(geosphere) library(tm) library(ggmap) library(numform) library(HistogramTools) library(plotly) library(reticulate) #...
library(readxl) library(data.table) CONPenh <- read_excel("aat6720_CONPPutEnhs.xlsx", sheet = 2,header=TRUE) > head(CONPenh) # A tibble: 6 x 16 Chrom Start End CONP_ID All_OP_No. iPSC_OP_No. TD0_OP_No. TD11_OP_No. <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> 1 chr1 817175 81...
/AmariEtAl_Analysis/EnhancerLocationExtraction.r
no_license
lengie/eRNA_Detect
R
false
false
1,075
r
library(readxl) library(data.table) CONPenh <- read_excel("aat6720_CONPPutEnhs.xlsx", sheet = 2,header=TRUE) > head(CONPenh) # A tibble: 6 x 16 Chrom Start End CONP_ID All_OP_No. iPSC_OP_No. TD0_OP_No. TD11_OP_No. <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> 1 chr1 817175 81...
library(shiny) ui<- fluidPage( sliderInput(inputId= "num", label = "Choose number of bins", min=1, max=25, value = 10, step = 1) , plotOutput(outputId = "hist") )
/ui.R
no_license
smcnish/Shiny-App
R
false
false
168
r
library(shiny) ui<- fluidPage( sliderInput(inputId= "num", label = "Choose number of bins", min=1, max=25, value = 10, step = 1) , plotOutput(outputId = "hist") )
###################################################################### ### BLUPHAT Model Development & Validation For RFS ### ###################################################################### setwd('~/bigdata/LABDATA/BLUPHAT/') ############################################################### sou...
/SFS-BLUPHAT_MultiOmics_RFS.R
no_license
rli012/BLUPHAT
R
false
false
36,072
r
###################################################################### ### BLUPHAT Model Development & Validation For RFS ### ###################################################################### setwd('~/bigdata/LABDATA/BLUPHAT/') ############################################################### sou...
f_hosmerlem <- function(y, yhat, g = 10){ # http://sas-and-r.blogspot.com/2010/09/example-87-hosmer-and-lemeshow-goodness.html #=============================================== ### ordered and grouped by predicted probability cutyhat <- cut( yhat, breaks = c( 0, ...
/codesnippet_r/f_hosmerlem.R
no_license
clintko/Duke_BIOS719_GLM
R
false
false
776
r
f_hosmerlem <- function(y, yhat, g = 10){ # http://sas-and-r.blogspot.com/2010/09/example-87-hosmer-and-lemeshow-goodness.html #=============================================== ### ordered and grouped by predicted probability cutyhat <- cut( yhat, breaks = c( 0, ...
ugh<-marks[1:20,] dys<-unique(ugh$date) unique(ugh$year) ugh$whole_kg ugh$total_obs ugh$marked ugh$tags_from_fishery ugh$mean_weight ugh$WPUE ugh$interp_mean = ugh$mean_npue <- ugh$WPUE/ugh$mean_weight cumsum(ugh$tags_from_fishery) for (d in dys){ Dat<-Ugh[Ugh$date == d,] Dat$whole_kg = sum(whole_kg), total_...
/2023/r/mr_pj_diagnostic_scrap.R
no_license
commfish/seak_sablefish
R
false
false
8,136
r
ugh<-marks[1:20,] dys<-unique(ugh$date) unique(ugh$year) ugh$whole_kg ugh$total_obs ugh$marked ugh$tags_from_fishery ugh$mean_weight ugh$WPUE ugh$interp_mean = ugh$mean_npue <- ugh$WPUE/ugh$mean_weight cumsum(ugh$tags_from_fishery) for (d in dys){ Dat<-Ugh[Ugh$date == d,] Dat$whole_kg = sum(whole_kg), total_...
# Code shamelessly plagiarized from http://r-statistics.co/Top50-Ggplot2-Visualizations-MasterList-R-Code.html#Scatterplot source("Demos\\theme_IMD.R") library(ggplot2) data("midwest", package = "ggplot2") # midwest <- read.csv("http://goo.gl/G1K41K") # bkup data source # Scatterplot gg <- ggplot(midwest, ae...
/Demos/test-plot.R
no_license
KateMMiller/demo_repo
R
false
false
413
r
# Code shamelessly plagiarized from http://r-statistics.co/Top50-Ggplot2-Visualizations-MasterList-R-Code.html#Scatterplot source("Demos\\theme_IMD.R") library(ggplot2) data("midwest", package = "ggplot2") # midwest <- read.csv("http://goo.gl/G1K41K") # bkup data source # Scatterplot gg <- ggplot(midwest, ae...
library(shiny) ui <- fluidPage( titlePanel("Let Your Users Decided on the Plot Height"), sidebarLayout( sidebarPanel( selectInput( inputId = "x", label = "X Variable", choices = c("mpg", "disp", "hp", "drat", "wt", "qsec") ), selectInput( inputId = "y", ...
/adjust-plot-height/ui.R
permissive
thomas-neitmann/shiny-demo-apps
R
false
false
690
r
library(shiny) ui <- fluidPage( titlePanel("Let Your Users Decided on the Plot Height"), sidebarLayout( sidebarPanel( selectInput( inputId = "x", label = "X Variable", choices = c("mpg", "disp", "hp", "drat", "wt", "qsec") ), selectInput( inputId = "y", ...
set.seed(12345) lambda<-function(x) 100*(sin(x*pi)+1) Tmax<-10 lambdamax<-200 N<-rpois(1,Tmax*lambdamax) prop<-runif(N,0,Tmax) A<-runif(N)<(lambda(prop)/200) X<-prop[A] cat("#N\n",length(X),"\n#X\n",X,"\n",file="pp.dat")
/tests/poisp/makedata.R
permissive
admb-project/admb
R
false
false
231
r
set.seed(12345) lambda<-function(x) 100*(sin(x*pi)+1) Tmax<-10 lambdamax<-200 N<-rpois(1,Tmax*lambdamax) prop<-runif(N,0,Tmax) A<-runif(N)<(lambda(prop)/200) X<-prop[A] cat("#N\n",length(X),"\n#X\n",X,"\n",file="pp.dat")
/w01.R
no_license
karabanb/UWr2018
R
false
false
8,606
r
library(ape) testtree <- read.tree("5194_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5194_0_unrooted.txt")
/codeml_files/newick_trees_processed/5194_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("5194_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5194_0_unrooted.txt")
library(readr) library(tidyverse) library(gdata) options(stringsAsFactors = F) # Sys.setlocale(locale = "UTF-8") # Sys.setlocale(category = "LC_ALL", locale = "cht") # rm(list=ls()) NTU_Attnd <- read_csv("all_long_new.csv") NTU_Vote <- read_csv("vote_all.csv") NTU_Attnd_rate <- NTU_Attnd %>% #mutate(Att...
/Data_modeling.R
no_license
Dennishi0925/NTUSC
R
false
false
7,207
r
library(readr) library(tidyverse) library(gdata) options(stringsAsFactors = F) # Sys.setlocale(locale = "UTF-8") # Sys.setlocale(category = "LC_ALL", locale = "cht") # rm(list=ls()) NTU_Attnd <- read_csv("all_long_new.csv") NTU_Vote <- read_csv("vote_all.csv") NTU_Attnd_rate <- NTU_Attnd %>% #mutate(Att...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc_and_utility.R \name{umx_set_optimization_options} \alias{umx_set_optimization_options} \title{Set options that affect optimization in OpenMx} \usage{ umx_set_optimization_options( opt = c("mvnRelEps", "mvnMaxPointsA", "Parallel diagnos...
/man/umx_set_optimization_options.Rd
no_license
jishanling/umx
R
false
true
2,066
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc_and_utility.R \name{umx_set_optimization_options} \alias{umx_set_optimization_options} \title{Set options that affect optimization in OpenMx} \usage{ umx_set_optimization_options( opt = c("mvnRelEps", "mvnMaxPointsA", "Parallel diagnos...
################################## #Abinesh Senthil Kumar #Prediction of accidents and their severity ################################## library(rpart) library(gbm) library(ada) library(randomForest) library(caret) library(car) library(ggmap) library(ggplot2) #setting working directory setwd('C:/Users/Flynn/Deskt...
/Accident severity prediction.R
no_license
abinesh-23/Accident-severity-prediction
R
false
false
16,108
r
################################## #Abinesh Senthil Kumar #Prediction of accidents and their severity ################################## library(rpart) library(gbm) library(ada) library(randomForest) library(caret) library(car) library(ggmap) library(ggplot2) #setting working directory setwd('C:/Users/Flynn/Deskt...
# wps.des: id = gridded_daily, title = A generalized daily climate statistics algorithm, abstract = TBD; # wps.in: start, string, Start Year, Start Year (ie. 1950); # wps.in: end, string, End Year, End Year (ie. 2000); # wps.in: bbox_in, string, BBOX, Format, comma seperated min lat/lon max lat/lon; # wps.in: days_tma...
/gdp-process-wps/src/main/webapp/R/scripts/gridded_daily.R
permissive
mike-stern/geo-data-portal
R
false
false
2,934
r
# wps.des: id = gridded_daily, title = A generalized daily climate statistics algorithm, abstract = TBD; # wps.in: start, string, Start Year, Start Year (ie. 1950); # wps.in: end, string, End Year, End Year (ie. 2000); # wps.in: bbox_in, string, BBOX, Format, comma seperated min lat/lon max lat/lon; # wps.in: days_tma...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summarizeTaxonStates.R \name{summarizeTaxonStates} \alias{summarizeTaxonStates} \title{Create a data frame of taxon states} \usage{ summarizeTaxonStates(taxa) } \arguments{ \item{taxa}{a list of objects} } \value{ Returns a data frame of taxo...
/man/summarizeTaxonStates.Rd
no_license
JakeJing/treevo
R
false
true
724
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summarizeTaxonStates.R \name{summarizeTaxonStates} \alias{summarizeTaxonStates} \title{Create a data frame of taxon states} \usage{ summarizeTaxonStates(taxa) } \arguments{ \item{taxa}{a list of objects} } \value{ Returns a data frame of taxo...
\name{funtoonorm} \alias{funtoonorm} \title{ A function to normalize Illumina Infinium Human Methylation 450 BeadChip (Illumina 450K) with multiple tissues or cell types. } \description{ This function performs normalization of Illumina Infinium Human Methylation 450 BeadChip data using the information contained in th...
/man/funtoonorm.Rd
no_license
stepanv1/funtooNorm
R
false
false
3,950
rd
\name{funtoonorm} \alias{funtoonorm} \title{ A function to normalize Illumina Infinium Human Methylation 450 BeadChip (Illumina 450K) with multiple tissues or cell types. } \description{ This function performs normalization of Illumina Infinium Human Methylation 450 BeadChip data using the information contained in th...
powerc <- read.table("./household_power_consumption.txt",header = TRUE, sep = ";", na.strings = "?") plotdata<- rbind(powerc[powerc$Date=="1/2/2007",],powerc[powerc$Date=="2/2/2007",]) plotdata$Date <- as.Date(plotdata$Date,"%d/%m/%Y") plotdata <- cbind(plotdata,"DateTime"= as.POSIXct(paste(plotdata$Date,plotdata$Time)...
/plot2.R
no_license
dvkrgrg3/ExData_Plotting1
R
false
false
476
r
powerc <- read.table("./household_power_consumption.txt",header = TRUE, sep = ";", na.strings = "?") plotdata<- rbind(powerc[powerc$Date=="1/2/2007",],powerc[powerc$Date=="2/2/2007",]) plotdata$Date <- as.Date(plotdata$Date,"%d/%m/%Y") plotdata <- cbind(plotdata,"DateTime"= as.POSIXct(paste(plotdata$Date,plotdata$Time)...
## ------------------------------------------------------------------------ library(sommer) data(h2example) head(h2example) ans1 <- mmer2(y~1, random = ~Name + Env + Name:Env + Block, rcov = ~units, data=h2example, silent = TRUE) suma <- summary(ans1) n.env <- length(levels(...
/inst/doc/sommer.R
no_license
Jaimemosg/sommer
R
false
false
8,865
r
## ------------------------------------------------------------------------ library(sommer) data(h2example) head(h2example) ans1 <- mmer2(y~1, random = ~Name + Env + Name:Env + Block, rcov = ~units, data=h2example, silent = TRUE) suma <- summary(ans1) n.env <- length(levels(...
# Network communications analysis # # @Author: Haoyang Mi library(ggplot2) library(reshape2) library(igraph) library(reshape2) library(tidyr) setwd("D:/DP/Projects/HCC") source('D:/DP/Projects/HCC/Functions.r') # read gct file gct_file <- data.frame(read.delim("D:/DP/Data/HCC/Community_Clustering.tx...
/Network-analysis/Communications.R
permissive
Shawnmhy/HCC-IMC-processing-pipeline
R
false
false
2,709
r
# Network communications analysis # # @Author: Haoyang Mi library(ggplot2) library(reshape2) library(igraph) library(reshape2) library(tidyr) setwd("D:/DP/Projects/HCC") source('D:/DP/Projects/HCC/Functions.r') # read gct file gct_file <- data.frame(read.delim("D:/DP/Data/HCC/Community_Clustering.tx...
### R code from vignette source 'useProbeInfo.Rnw' ################################################### ### code chunk number 1: loadlibs ################################################### library("annotate") library("rae230a.db") library("rae230aprobe") ################################################### ### code c...
/source/macOS/R-Portable-Mac/library/annotate/doc/useProbeInfo.R
permissive
romanhaa/Cerebro
R
false
false
1,575
r
### R code from vignette source 'useProbeInfo.Rnw' ################################################### ### code chunk number 1: loadlibs ################################################### library("annotate") library("rae230a.db") library("rae230aprobe") ################################################### ### code c...
#'########################################################################## #' ame1 project - studying the relation between home range size and activity #' 2019/10/04 #' Adam Kane, Enrico Pirotta & Barry McMahon #' https://mecoco.github.io/ame1.html #' applying the amt package on one study to calculate home ranges (MC...
/code/4.activity_analysis.R
no_license
kanead/eurodeer
R
false
false
2,877
r
#'########################################################################## #' ame1 project - studying the relation between home range size and activity #' 2019/10/04 #' Adam Kane, Enrico Pirotta & Barry McMahon #' https://mecoco.github.io/ame1.html #' applying the amt package on one study to calculate home ranges (MC...
numPerPatch2000 <- c(2502,2498)
/NatureEE-data-archive/Run203121/JAFSdata/JAFSnumPerPatch2000.R
no_license
flaxmans/NatureEE2017
R
false
false
32
r
numPerPatch2000 <- c(2502,2498)
# This function is pretty broken because it doesn't consider the difference in scale between axes. # It also probably doesn't need to always (ever) shorten both ends at least for margin labels... shorten <- function (x0, y0, x1, y1, rad) { line.lengths <- sqrt((x1-x0)^2+(y1-y0)^2) pct.short <- rad/line.lengths ...
/R/margin_labels.r
permissive
tyjo/zoom.plot
R
false
false
2,344
r
# This function is pretty broken because it doesn't consider the difference in scale between axes. # It also probably doesn't need to always (ever) shorten both ends at least for margin labels... shorten <- function (x0, y0, x1, y1, rad) { line.lengths <- sqrt((x1-x0)^2+(y1-y0)^2) pct.short <- rad/line.lengths ...
\name{check_smoltification} \alias{check_smoltification} %- Also NEED an '\alias' for EACH other topic documented here. \title{ check_smoltification } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ check_smoltification() } %- maybe also 'usage' for other objects documente...
/master/man/check_smoltification.Rd
no_license
Ibasam/MetaIBASAM
R
false
false
1,261
rd
\name{check_smoltification} \alias{check_smoltification} %- Also NEED an '\alias' for EACH other topic documented here. \title{ check_smoltification } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ check_smoltification() } %- maybe also 'usage' for other objects documente...
\name{exp_calcMahalanobisDist} \alias{exp_calcMahalanobisDist} \title{Calculate Mahalanobis distance} \author{Michael Lawrence <mflawren@fhcrc.org>} \description{ Calculates mahalanobis distance between the samples (columns) in the data frame \code{ent_data} } \usage{exp_calcMahalanobisDist(ent_data)} \arguments{ \ite...
/man/exp-calcMahalanobisDist-r1.Rd
no_license
lawremi/exploRase
R
false
false
446
rd
\name{exp_calcMahalanobisDist} \alias{exp_calcMahalanobisDist} \title{Calculate Mahalanobis distance} \author{Michael Lawrence <mflawren@fhcrc.org>} \description{ Calculates mahalanobis distance between the samples (columns) in the data frame \code{ent_data} } \usage{exp_calcMahalanobisDist(ent_data)} \arguments{ \ite...
# AUTO GENERATED FILE - DO NOT EDIT htmlIns <- function(children=NULL, id=NULL, n_clicks=NULL, n_clicks_timestamp=NULL, key=NULL, role=NULL, cite=NULL, dateTime=NULL, accessKey=NULL, className=NULL, contentEditable=NULL, contextMenu=NULL, dir=NULL, draggable=NULL, hidden=NULL, lang=NULL, spellCheck=NULL, style=NULL, t...
/R/htmlIns.R
permissive
noisycomputation/dash-html-components
R
false
false
1,487
r
# AUTO GENERATED FILE - DO NOT EDIT htmlIns <- function(children=NULL, id=NULL, n_clicks=NULL, n_clicks_timestamp=NULL, key=NULL, role=NULL, cite=NULL, dateTime=NULL, accessKey=NULL, className=NULL, contentEditable=NULL, contextMenu=NULL, dir=NULL, draggable=NULL, hidden=NULL, lang=NULL, spellCheck=NULL, style=NULL, t...
setwd('E:/cibersort_0104/2.DEG') dir.create('limma') # output directory library(GEOquery) library(limma) library(dplyr) # prep exp data f <- read.csv('TCGA_expression.txt',sep='\t') dim(f) View(head(f)) f <- f[-1,] rownames(f) <- f[,1] f <- f[,-1] f <- f[,order(colnames(f))] View(f[1:5,1:5]) # prep clinical data ...
/4.DEG/.ipynb_checkpoints/limma_TCGA-checkpoint.R
no_license
wqhf/ORCA
R
false
false
2,681
r
setwd('E:/cibersort_0104/2.DEG') dir.create('limma') # output directory library(GEOquery) library(limma) library(dplyr) # prep exp data f <- read.csv('TCGA_expression.txt',sep='\t') dim(f) View(head(f)) f <- f[-1,] rownames(f) <- f[,1] f <- f[,-1] f <- f[,order(colnames(f))] View(f[1:5,1:5]) # prep clinical data ...
# Currently this function could only parse svg files created by the cairo # graphics library, typically from svg() in the grDevices package (R >= 2.14.0 # required for Windows OS), and CairoSVG() in the Cairo package. parseSVG = function(file.name) { svgFile = xmlParse(file.name); # Don't forget the name space! n...
/R/svg2swf.R
no_license
yixuan/R2SWF-archive
R
false
false
6,021
r
# Currently this function could only parse svg files created by the cairo # graphics library, typically from svg() in the grDevices package (R >= 2.14.0 # required for Windows OS), and CairoSVG() in the Cairo package. parseSVG = function(file.name) { svgFile = xmlParse(file.name); # Don't forget the name space! n...
task_table = c( "54" = "Hepatitis", "37" = "Diabetes", "31" = "German Credit", "4534" = "Analcat Halloffame", "spam" = "Spam", "168337" = "Guillermo", "7592" = "Adult", "168335" = "MiniBooNE", "albert" = "Albert", "359994" = "SF Police Incidents") learner_table = c( cboost1 = "CWB (no binning)", ...
/src/summarize-results.R
no_license
schalkdaniel/cacb-benchmark
R
false
false
2,456
r
task_table = c( "54" = "Hepatitis", "37" = "Diabetes", "31" = "German Credit", "4534" = "Analcat Halloffame", "spam" = "Spam", "168337" = "Guillermo", "7592" = "Adult", "168335" = "MiniBooNE", "albert" = "Albert", "359994" = "SF Police Incidents") learner_table = c( cboost1 = "CWB (no binning)", ...
library(tidyverse) library(here) library(sf) # The root of the data directory data_dir = readLines(here("data_dir.txt"), n=1) # Convenience functions, including function datadir() to prepend data directory to a relative path source(here("scripts/convenience_functions.R")) locs = read_csv(datadir("grupenhoff_plot_dat...
/scripts/map_plots.R
no_license
youngdjn/fuels-ai
R
false
false
748
r
library(tidyverse) library(here) library(sf) # The root of the data directory data_dir = readLines(here("data_dir.txt"), n=1) # Convenience functions, including function datadir() to prepend data directory to a relative path source(here("scripts/convenience_functions.R")) locs = read_csv(datadir("grupenhoff_plot_dat...
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
/meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615844541-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
2,232
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
FRESA.Model <- function(formula,data,OptType=c("Binary","Residual"),pvalue=0.05,filter.p.value=0.10,loops=32,maxTrainModelSize=20,elimination.bootstrap.steps=100,bootstrap.steps=100,print=FALSE,plots=FALSE,CVfolds=1,repeats=1,nk=0,categorizationType=c("Raw","Categorical","ZCategorical","RawZCategorical","RawTail","RawZ...
/fuzzedpackages/FRESA.CAD/R/FRESA.Model.R
no_license
akhikolla/testpackages
R
false
false
13,621
r
FRESA.Model <- function(formula,data,OptType=c("Binary","Residual"),pvalue=0.05,filter.p.value=0.10,loops=32,maxTrainModelSize=20,elimination.bootstrap.steps=100,bootstrap.steps=100,print=FALSE,plots=FALSE,CVfolds=1,repeats=1,nk=0,categorizationType=c("Raw","Categorical","ZCategorical","RawZCategorical","RawTail","RawZ...
## Kevin McMorrow setwd('Desktop') library(rtweet) library(httr) library(httpuv) library(tm) library(wordcloud) appname = "kevdog" key = "MBL0H3EkRae6B9pbKN88QOZmq" secret = "aSUxvOgwVsHuWpaPkmrn9gdTsPGsoluvBxlsRqUm60JcyaHwB6" twitter_token = create_token( app = appname, consumer_key = key, consumer_secret = s...
/MusicR_Project.R
no_license
kmcmorrow1/QAC211-Twitter-Music-Reception
R
false
false
16,153
r
## Kevin McMorrow setwd('Desktop') library(rtweet) library(httr) library(httpuv) library(tm) library(wordcloud) appname = "kevdog" key = "MBL0H3EkRae6B9pbKN88QOZmq" secret = "aSUxvOgwVsHuWpaPkmrn9gdTsPGsoluvBxlsRqUm60JcyaHwB6" twitter_token = create_token( app = appname, consumer_key = key, consumer_secret = s...
library("BiocManager") library("DESeq2") library("BiocParallel") library("vsn") library("pheatmap") library("RColorBrewer") library("ggplot2") library("ggrepel") library("EnhancedVolcano") register(MulticoreParam(12)) dir <- "~/Genome-Analysis/data/differential_expression/count" sampleF...
/code/DEseq.R
no_license
IG-AI/Genome-Analysis-Durio-Zibethinus
R
false
false
2,836
r
library("BiocManager") library("DESeq2") library("BiocParallel") library("vsn") library("pheatmap") library("RColorBrewer") library("ggplot2") library("ggrepel") library("EnhancedVolcano") register(MulticoreParam(12)) dir <- "~/Genome-Analysis/data/differential_expression/count" sampleF...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plugins.R \name{dyUnzoom} \alias{dyUnzoom} \title{The dyUnzoom plugin adds an "Unzoom" button to the graph when it's displaying in a zoomed state (this is a bit more discoverable than the default double- click gesture for unzooming).} \usage{...
/man/dyUnzoom.Rd
no_license
kieshin/dygraphs
R
false
true
736
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plugins.R \name{dyUnzoom} \alias{dyUnzoom} \title{The dyUnzoom plugin adds an "Unzoom" button to the graph when it's displaying in a zoomed state (this is a bit more discoverable than the default double- click gesture for unzooming).} \usage{...
cpus <- 4 print(cpus) args <- commandArgs(TRUE) eval(parse(text=args[[1]])) setting <- as.numeric(setting) assign <- function(x) { x$prop <- x$count / x$parentcount assign <- as.numeric(by(x, x$subset, function(y) max(y$prop[y$stim != 0]) > min(y$prop[y$stim == 0]))) assign[assign == 1] <- -1 result <- data.f...
/cluster/hvtn/oldcode/HVTNclusterSA9.R
permissive
RGLab/flowReMix
R
false
false
8,010
r
cpus <- 4 print(cpus) args <- commandArgs(TRUE) eval(parse(text=args[[1]])) setting <- as.numeric(setting) assign <- function(x) { x$prop <- x$count / x$parentcount assign <- as.numeric(by(x, x$subset, function(y) max(y$prop[y$stim != 0]) > min(y$prop[y$stim == 0]))) assign[assign == 1] <- -1 result <- data.f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SetupProject.R \name{ProjectFromAsyncUrl} \alias{ProjectFromAsyncUrl} \title{Retrieve a project from the project-creation URL} \usage{ ProjectFromAsyncUrl(asyncUrl, maxWait = 600) } \arguments{ \item{asyncUrl}{The temporary status URL} \item...
/man/ProjectFromAsyncUrl.Rd
no_license
anno526/datarobot
R
false
true
677
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SetupProject.R \name{ProjectFromAsyncUrl} \alias{ProjectFromAsyncUrl} \title{Retrieve a project from the project-creation URL} \usage{ ProjectFromAsyncUrl(asyncUrl, maxWait = 600) } \arguments{ \item{asyncUrl}{The temporary status URL} \item...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/startup.R \name{report} \alias{report} \title{Helper to call the report object from .syberiaReport} \usage{ report() } \value{ .syberiaReport$report } \description{ Helper to call the report object from .syberiaReport }
/man/report.Rd
permissive
christiantillich/syberiaReports
R
false
true
299
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/startup.R \name{report} \alias{report} \title{Helper to call the report object from .syberiaReport} \usage{ report() } \value{ .syberiaReport$report } \description{ Helper to call the report object from .syberiaReport }
# test statistic t=.26528/.10127 print(t) df=17 t1value=qt(1-0.01,df) t2value=qt(1-0.005,df) print(t1value) print(t2value) # Thus, H0 would be rejected at the alpha= .01 level but not at the alpha= .005 level pvalue =pt(-t, df) print(pvalue)
/An_Introduction_To_Statistical_Methods_And_Data_Analysis_by_R_Lyman_Ott_And_Michael_Longnecker/CH12/EX12.16/Ex12_16.r
permissive
FOSSEE/R_TBC_Uploads
R
false
false
255
r
# test statistic t=.26528/.10127 print(t) df=17 t1value=qt(1-0.01,df) t2value=qt(1-0.005,df) print(t1value) print(t2value) # Thus, H0 would be rejected at the alpha= .01 level but not at the alpha= .005 level pvalue =pt(-t, df) print(pvalue)
library("tidyverse") library("patchwork") library("plotly") library("shiny") library("rsconnect") library("shinythemes") library("markdown") library("reshape2") # IMPORT DATA heart_data <- read_csv('data/heart.csv') heart_data <- as.data.frame(heart_data) #Renaming columns. data_col_names <- c('Age', 'Sex', 'Chest...
/final_project_app/app.R
no_license
Chongyu1117/Heart-Attack-Prediction
R
false
false
17,073
r
library("tidyverse") library("patchwork") library("plotly") library("shiny") library("rsconnect") library("shinythemes") library("markdown") library("reshape2") # IMPORT DATA heart_data <- read_csv('data/heart.csv') heart_data <- as.data.frame(heart_data) #Renaming columns. data_col_names <- c('Age', 'Sex', 'Chest...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{dir2dfList} \alias{dir2dfList} \title{Turn a directory of flat files into a list of data.frames} \usage{ dir2dfList(dfdir, ext = ".txt", exclude = NULL, ...) } \arguments{ \item{dfdir}{character string of the directory where you want to load flat files} \item{...
/man/dir2dfList.Rd
permissive
Sunil-Pai-G/Rsenal
R
false
false
1,434
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{dir2dfList} \alias{dir2dfList} \title{Turn a directory of flat files into a list of data.frames} \usage{ dir2dfList(dfdir, ext = ".txt", exclude = NULL, ...) } \arguments{ \item{dfdir}{character string of the directory where you want to load flat files} \item{...
#' @title Make Template Objects #' @description Return a `tibble` containing the common set of columns and #' column types. #' The following template objects are available: #' \itemize{ #' \item \code{data_template} #' \item \code{variable_template} #' \item \code{indicator_template} #' } #' @return...
/R/templates.R
permissive
tiernanmartin/NeighborhoodChangeTypology
R
false
false
9,834
r
#' @title Make Template Objects #' @description Return a `tibble` containing the common set of columns and #' column types. #' The following template objects are available: #' \itemize{ #' \item \code{data_template} #' \item \code{variable_template} #' \item \code{indicator_template} #' } #' @return...
library(dplyr) X_train <- read.table("C:/Users/CA/Downloads/HAR/1/train/X_train.txt", quote="", comment.char="") Y_train <- read.table("C:/Users/CA/Downloads/HAR/1/train/y_train.txt", quote="", comment.char="") X_test <- read.table("C:/Users/CA/Downloads/HAR/1/test/X_test.txt", quote="", comment.char="") Y_test <- ...
/run_analysis.R
no_license
capelian4/ResumeGithubRPlotting
R
false
false
2,121
r
library(dplyr) X_train <- read.table("C:/Users/CA/Downloads/HAR/1/train/X_train.txt", quote="", comment.char="") Y_train <- read.table("C:/Users/CA/Downloads/HAR/1/train/y_train.txt", quote="", comment.char="") X_test <- read.table("C:/Users/CA/Downloads/HAR/1/test/X_test.txt", quote="", comment.char="") Y_test <- ...
## The RAINLINK package. Retrieval algorithm for rainfall mapping from microwave links ## in a cellular communication network. ## ## Version 1.11 ## Copyright (C) 2017 Aart Overeem ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as publ...
/R/OutlierFilterMinMaxRSL.R
no_license
cvelascof/RAINLINK
R
false
false
3,858
r
## The RAINLINK package. Retrieval algorithm for rainfall mapping from microwave links ## in a cellular communication network. ## ## Version 1.11 ## Copyright (C) 2017 Aart Overeem ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as publ...
testlist <- list(bytes1 = integer(0), pmutation = 1.38791248479841e-309) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
/mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612801991-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
136
r
testlist <- list(bytes1 = integer(0), pmutation = 1.38791248479841e-309) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
testlist <- list(a = 9.98234632759903e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
/BayesMRA/inst/testfiles/rmvn_arma_scalar/AFL_rmvn_arma_scalar/rmvn_arma_scalar_valgrind_files/1615926095-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
117
r
testlist <- list(a = 9.98234632759903e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
library(learnr); bb<-quiz( question("下面哪一项不是R语言的最基本数据类型?", answer("字符character"), answer("数值numeric"), answer("日期Date", correct = TRUE), answer("整数integer") ), question("下面关于存货核算,错误的描述是", answer("可以先生成凭证,再进行入库核算", correct = TRUE), answer("先入库核算,再出库...
/data-raw/02-test-quiz.R
permissive
takewiki/learnr
R
false
false
939
r
library(learnr); bb<-quiz( question("下面哪一项不是R语言的最基本数据类型?", answer("字符character"), answer("数值numeric"), answer("日期Date", correct = TRUE), answer("整数integer") ), question("下面关于存货核算,错误的描述是", answer("可以先生成凭证,再进行入库核算", correct = TRUE), answer("先入库核算,再出库...
## Exploratory Data Analysis powerData <- read.table("household_power_consumption.txt", na.strings=c("?",""), header=TRUE, sep=";") str(powerData) ## make the first column class Date powerData[,Date:= as.Date(Date,format="%d/%m/%Y")] powerData$Date <- as.Date(powerData$Date, format="%d/%m/%Y") str(powerData) powe...
/plot4.R
no_license
carolynpearce/ExData_Plotting1
R
false
false
1,329
r
## Exploratory Data Analysis powerData <- read.table("household_power_consumption.txt", na.strings=c("?",""), header=TRUE, sep=";") str(powerData) ## make the first column class Date powerData[,Date:= as.Date(Date,format="%d/%m/%Y")] powerData$Date <- as.Date(powerData$Date, format="%d/%m/%Y") str(powerData) powe...
##################PDRs ###APP E ###FS #Compute Server E received traceserver_e_fs<-read.table(file = 'result/server_etf_car_fs_tt.txt', sep=' ') names(traceserver_e_fs)<-c("time", "id", "size", "ori", "dest" ) options(drigits.secs = 6) traceserver_e_fs$time <- as.POSIXlt(traceserver_e_fs$time, origin = "1987-10-05 11:...
/comb_pdr.R
no_license
rubiruchi/framework_its_sdn
R
false
false
35,420
r
##################PDRs ###APP E ###FS #Compute Server E received traceserver_e_fs<-read.table(file = 'result/server_etf_car_fs_tt.txt', sep=' ') names(traceserver_e_fs)<-c("time", "id", "size", "ori", "dest" ) options(drigits.secs = 6) traceserver_e_fs$time <- as.POSIXlt(traceserver_e_fs$time, origin = "1987-10-05 11:...
#assing 2 to x variable and print x <- 2 x #assign 2 to x variable and print y <- 5 y
/Week2Demo.R
no_license
iarlaith/Week2Demo
R
false
false
88
r
#assing 2 to x variable and print x <- 2 x #assign 2 to x variable and print y <- 5 y
source("metric_functions.R") cities <- c("Baltimore", "Charleston", "Chicago", "Columbus", "Dayton", "Denver", "Kansas City", "Memphis", "Milwaukee", "Oklahoma City", "Pittsburgh", "St. Louis", "Syracuse", "Wichita") filenames <- list.files("data/prepped", pattern="*.csv", full.names=TRUE) ldf...
/analysis.R
permissive
shgao/a2-data-wrangling-shgao
R
false
false
771
r
source("metric_functions.R") cities <- c("Baltimore", "Charleston", "Chicago", "Columbus", "Dayton", "Denver", "Kansas City", "Memphis", "Milwaukee", "Oklahoma City", "Pittsburgh", "St. Louis", "Syracuse", "Wichita") filenames <- list.files("data/prepped", pattern="*.csv", full.names=TRUE) ldf...
##' simulateScene generates a matingScene object -- a simulated population ##' in a standard format with individuals randomly assigned a mating schedule, ##' a location, and S-alleles ##' ##' @title Simulate a Mating Scene ##' @param size integer number of plants ##' @param meanSD date mean start date ##' @param sdSD d...
/R/setUpPopulations.R
no_license
swnordstrom/mateable
R
false
false
8,066
r
##' simulateScene generates a matingScene object -- a simulated population ##' in a standard format with individuals randomly assigned a mating schedule, ##' a location, and S-alleles ##' ##' @title Simulate a Mating Scene ##' @param size integer number of plants ##' @param meanSD date mean start date ##' @param sdSD d...
install.packages("rvest") library(rvest) # COMO FAZER A RASPAGEM DE DADOS DA B3 - DERIVATIVOS E AÇÕES #DERIVATIVOS # Insira a url alvo - ajuste derivativos - Pregão url <- "http://www2.bmf.com.br/pages/portal/bmfbovespa/lumis/lum-ajustes-do-pregao-ptBR.asp" # Ler o código da HTML indicada site <- re...
/WEB CRAWLER.R
no_license
paoliveira7/Vega-Data-Analysis
R
false
false
2,253
r
install.packages("rvest") library(rvest) # COMO FAZER A RASPAGEM DE DADOS DA B3 - DERIVATIVOS E AÇÕES #DERIVATIVOS # Insira a url alvo - ajuste derivativos - Pregão url <- "http://www2.bmf.com.br/pages/portal/bmfbovespa/lumis/lum-ajustes-do-pregao-ptBR.asp" # Ler o código da HTML indicada site <- re...
power <- read.table("household_power_consumption.txt", nrows = 1, sep = ";", header = TRUE, na.strings = "?") cols <- colnames(power) power <- read.table("household_power_consumption.txt", nrows = 2880, sep = ";", header = FALSE, col.names = cols, na.strings = "?", skip = 66637) png(filename = "plot4.png", widt...
/plot4.R
no_license
sreeramkumar/ExData_Plotting1
R
false
false
1,879
r
power <- read.table("household_power_consumption.txt", nrows = 1, sep = ";", header = TRUE, na.strings = "?") cols <- colnames(power) power <- read.table("household_power_consumption.txt", nrows = 2880, sep = ";", header = FALSE, col.names = cols, na.strings = "?", skip = 66637) png(filename = "plot4.png", widt...
library(RCurl) library(tidyverse) library(stringr) library(sf) library(magrittr) library(data.table) library(parallel) library(stringi) #### 0. Download original data sets from IBGE ftp ----------------- ftp <- "ftp://geoftp.ibge.gov.br/recortes_para_fins_estatisticos/malha_de_areas_de_ponderacao/" ######## 1. Unz...
/prep_data/prep_weighting_area.R
no_license
marionog/geobr
R
false
false
12,547
r
library(RCurl) library(tidyverse) library(stringr) library(sf) library(magrittr) library(data.table) library(parallel) library(stringi) #### 0. Download original data sets from IBGE ftp ----------------- ftp <- "ftp://geoftp.ibge.gov.br/recortes_para_fins_estatisticos/malha_de_areas_de_ponderacao/" ######## 1. Unz...