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
# This is a shiny app for exploring data in mupexi files with screened neoepitope responses #' exploring data with shiny #' #' This function takes in data and axplore in ashiny app #' @param Plotting_data data to plot #' @export # The app is en Beta version # The app is only for exploring data Exploring_data_shiny <- ...
/R/Exploring_data_shiny.R
no_license
rforbiodatascience/barcc
R
false
false
5,948
r
# This is a shiny app for exploring data in mupexi files with screened neoepitope responses #' exploring data with shiny #' #' This function takes in data and axplore in ashiny app #' @param Plotting_data data to plot #' @export # The app is en Beta version # The app is only for exploring data Exploring_data_shiny <- ...
rm(tmp) #new function to replace forloop getGLS <- function(gls, category) { desiredInfoFrame = do.call(rbind.data.frame, lapply(gls, function(gameList, category) { return(gameList[[category]]) }, category)) return(desiredInfoFrame) } categoryNames = names(gls2017[[1]]) #retrieves data from onl...
/Final Stattleship XCase.R
no_license
zboiskin/Baseball-Stats-Project
R
false
false
8,507
r
rm(tmp) #new function to replace forloop getGLS <- function(gls, category) { desiredInfoFrame = do.call(rbind.data.frame, lapply(gls, function(gameList, category) { return(gameList[[category]]) }, category)) return(desiredInfoFrame) } categoryNames = names(gls2017[[1]]) #retrieves data from onl...
#Source: # https://www.business-science.io/business/2019/02/20/excel-to-r-part-1.html # https://github.com/business-science/presentations/tree/master/2019_02_13_Learning_Lab_Marketing_Analytics # Marketing Case Study - Term Deposit Analysis #R: Joining Data #Joining Multiple Excel Sheets in R # Libraries library(ti...
/Excel to R/Excel2R_Main.R
no_license
AshutoshAgrahari/R_Practice
R
false
false
1,608
r
#Source: # https://www.business-science.io/business/2019/02/20/excel-to-r-part-1.html # https://github.com/business-science/presentations/tree/master/2019_02_13_Learning_Lab_Marketing_Analytics # Marketing Case Study - Term Deposit Analysis #R: Joining Data #Joining Multiple Excel Sheets in R # Libraries library(ti...
CalDat<-function(fl=file.choose()){ require(XML) xml<-XML::xmlTreeParse(fl,useInternalNodes = T) pull<-function(xml,analyte){ ans<-c("pH"="//PHData//", "O2"="//O2Data//" )[analyte] partial_xpaths<-c("IntialReferenceDeltaValues//ArrayOfInt//int", "LedStatusValues//ArrayOfCalibrationQuality/...
/R/asyr_InstCalDat.R
no_license
JARS3N/asyr
R
false
false
1,667
r
CalDat<-function(fl=file.choose()){ require(XML) xml<-XML::xmlTreeParse(fl,useInternalNodes = T) pull<-function(xml,analyte){ ans<-c("pH"="//PHData//", "O2"="//O2Data//" )[analyte] partial_xpaths<-c("IntialReferenceDeltaValues//ArrayOfInt//int", "LedStatusValues//ArrayOfCalibrationQuality/...
### PACKAGES #### library(gtools) library(dplyr) library(survival) library(survminer) library(sjPlot) library(rms) library(RColorBrewer) library(colourlovers) library(scales) library(sf) library(graphicsutils) ### FUNCTIONS source('functions/risk_fun.R') source('functions/mozaicplot.R') ### DATA #### surv_sp <-...
/scripts/2_coxph.R
no_license
edeschenes/mortality_Muir
R
false
false
15,427
r
### PACKAGES #### library(gtools) library(dplyr) library(survival) library(survminer) library(sjPlot) library(rms) library(RColorBrewer) library(colourlovers) library(scales) library(sf) library(graphicsutils) ### FUNCTIONS source('functions/risk_fun.R') source('functions/mozaicplot.R') ### DATA #### surv_sp <-...
\name{setops-methods} \alias{setops-methods} \alias{union,GRanges,GRanges-method} \alias{intersect,GRanges,GRanges-method} \alias{setdiff,GRanges,GRanges-method} \alias{punion,GRanges,GRanges-method} \alias{punion,GRanges,GRangesList-method} \alias{punion,GRangesList,GRanges-method} \alias{pintersect,GRanges,GRanges...
/man/setops-methods.Rd
no_license
genome-vendor/r-bioc-genomicranges
R
false
false
7,068
rd
\name{setops-methods} \alias{setops-methods} \alias{union,GRanges,GRanges-method} \alias{intersect,GRanges,GRanges-method} \alias{setdiff,GRanges,GRanges-method} \alias{punion,GRanges,GRanges-method} \alias{punion,GRanges,GRangesList-method} \alias{punion,GRangesList,GRanges-method} \alias{pintersect,GRanges,GRanges...
#' Return the health data for calving females during intervals #' #' Calculate health by interval... #' #' @return XXX #' @export #' @examples #' \dontrun{ #' returnHealth_by_calving_interval() #' } returnHealth_by_calving_interval <- function(anomFlag = FALSE){ useAnom <- anomFlag death <- getDeaths(deathyr, m...
/R/returnHealth_by_calving_interval.R
permissive
robschick/tangled
R
false
false
4,561
r
#' Return the health data for calving females during intervals #' #' Calculate health by interval... #' #' @return XXX #' @export #' @examples #' \dontrun{ #' returnHealth_by_calving_interval() #' } returnHealth_by_calving_interval <- function(anomFlag = FALSE){ useAnom <- anomFlag death <- getDeaths(deathyr, m...
\name{icu.pneu} \alias{icu.pneu} \docType{data} \title{Hospital acquired penumonia in ICU} \description{ This data set is a random sample drawn from the SIR-3 study that aimed at analysing the effect of nosocomial infections on the length of ICU stay. Patients were included in the study if they had stayed at lea...
/man/icu.pneu.Rd
no_license
cran/kmi
R
false
false
1,886
rd
\name{icu.pneu} \alias{icu.pneu} \docType{data} \title{Hospital acquired penumonia in ICU} \description{ This data set is a random sample drawn from the SIR-3 study that aimed at analysing the effect of nosocomial infections on the length of ICU stay. Patients were included in the study if they had stayed at lea...
##------------------------------------ # Employment Insurance Visualizations ##------------------------------------ library(tidyverse) library(lubridate) library(cansim) library(scales) ## Load data Employment_Insurance <- get_cansim("14-10-0323-01") %>% mutate(Report_Date = ymd(paste0(REF_DATE,"-01")...
/Employment Insurance Visualizations.R
permissive
keenanviney/Rural_Internet_Hackathon
R
false
false
6,138
r
##------------------------------------ # Employment Insurance Visualizations ##------------------------------------ library(tidyverse) library(lubridate) library(cansim) library(scales) ## Load data Employment_Insurance <- get_cansim("14-10-0323-01") %>% mutate(Report_Date = ymd(paste0(REF_DATE,"-01")...
# Author: Bibobra Alabrah # title: United States of America Birth Records Analysis # Dataset: US Present Birth Records # Date: 6/7/2018 --- # Import dependencies(libraries) library(dplyr) library(ggplot2) library(statsr) # Load the dataset: data(present) # View the number of records and...
/US Birth Records Analysis.R
no_license
BibobraAlabrah/US-Birth-Records-Analysis-
R
false
false
2,513
r
# Author: Bibobra Alabrah # title: United States of America Birth Records Analysis # Dataset: US Present Birth Records # Date: 6/7/2018 --- # Import dependencies(libraries) library(dplyr) library(ggplot2) library(statsr) # Load the dataset: data(present) # View the number of records and...
#' Convert an object to an \code{\link{rtable}} object #' #' Generic for converting objects to an \code{\link{rtable}} object #' #' @inheritParams dim.rtable #' @param format format of the cells #' #' @export as.rtable <- function(x, format = "xx") { UseMethod("as.rtable") } #' @export as.rtable.default <- functi...
/R/coercion.R
permissive
bbaranow/rtables
R
false
false
1,330
r
#' Convert an object to an \code{\link{rtable}} object #' #' Generic for converting objects to an \code{\link{rtable}} object #' #' @inheritParams dim.rtable #' @param format format of the cells #' #' @export as.rtable <- function(x, format = "xx") { UseMethod("as.rtable") } #' @export as.rtable.default <- functi...
ForestBasic <- function(rawdata, LogScale=TRUE, ExponentiateDataOnPlot=FALSE, blanks=NULL, Hets=NULL, Trends=NULL, xNoEffect=NULL, NoEffect.lty="solid", xaxmin, xaxmax, xaxis=TRUE, ymin = 0, ymax = par("usr")[4], boxparmx=NULL, ...
/R/ForestBasic.r
no_license
arnhew99/Jasper
R
false
false
10,148
r
ForestBasic <- function(rawdata, LogScale=TRUE, ExponentiateDataOnPlot=FALSE, blanks=NULL, Hets=NULL, Trends=NULL, xNoEffect=NULL, NoEffect.lty="solid", xaxmin, xaxmax, xaxis=TRUE, ymin = 0, ymax = par("usr")[4], boxparmx=NULL, ...
### putting it all together source("/Users/heatherwelch/Dropbox/melenoma/melanoma_GitHub/utilities/load_libraries.R") spatial_dir="/Users/heatherwelch/Dropbox/melenoma/spatial_files" outdir="/Users/heatherwelch/Dropbox/melenoma/Figures_12_02_21";dir.create(outdir) # add medical data medical #### # b created here: /Use...
/Figures_04_30_20/master_dataframe_12_02_21.R
no_license
HeatherWelch/melanoma
R
false
false
8,322
r
### putting it all together source("/Users/heatherwelch/Dropbox/melenoma/melanoma_GitHub/utilities/load_libraries.R") spatial_dir="/Users/heatherwelch/Dropbox/melenoma/spatial_files" outdir="/Users/heatherwelch/Dropbox/melenoma/Figures_12_02_21";dir.create(outdir) # add medical data medical #### # b created here: /Use...
require(foreach) require(doMC) registerDoMC(40) require(ggpubr) # Rscript cmp_meanCorr_permut.R plotType <- "svg" myHeight <- myWidth <- 7 myHeightGG <- 7 myWidthGG <- 9 outFolder <- "CMP_MEANCORR_PERMUT" dir.create(outFolder, recursive = TRUE) all_hicds <- list.files("PIPELINE/OUTPUT_FOLDER") hicds = all_hicds[1...
/cmp_meanCorr_permut.R
no_license
marzuf/v2_Yuanlong_Cancer_HiC_data_TAD_DA
R
false
false
4,573
r
require(foreach) require(doMC) registerDoMC(40) require(ggpubr) # Rscript cmp_meanCorr_permut.R plotType <- "svg" myHeight <- myWidth <- 7 myHeightGG <- 7 myWidthGG <- 9 outFolder <- "CMP_MEANCORR_PERMUT" dir.create(outFolder, recursive = TRUE) all_hicds <- list.files("PIPELINE/OUTPUT_FOLDER") hicds = all_hicds[1...
dataFile <- "C:/Users/Vertika/Documents/R prog/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #str(subSetData) globalActivePower <- as.numeric(subSetData$Global_active_power) png("plot1.p...
/plot1.R
no_license
vertikajn/ExData_Plotting1
R
false
false
460
r
dataFile <- "C:/Users/Vertika/Documents/R prog/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #str(subSetData) globalActivePower <- as.numeric(subSetData$Global_active_power) png("plot1.p...
#Pulling packages from library library(tidyverse) library(caret) library(RAdwords) # Pulling Data from Google Ads API body_adperformance <- statement(select=c("CampaignName","AdGroupName","HeadlinePart1","HeadlinePart2","AdType","Automated","Impressions","Clicks","Ctr","AllConversions","AveragePageviews","Bounce...
/ad performance prediction v1.R
no_license
ishtihoss/google-ads
R
false
false
3,069
r
#Pulling packages from library library(tidyverse) library(caret) library(RAdwords) # Pulling Data from Google Ads API body_adperformance <- statement(select=c("CampaignName","AdGroupName","HeadlinePart1","HeadlinePart2","AdType","Automated","Impressions","Clicks","Ctr","AllConversions","AveragePageviews","Bounce...
checkBounds <- function(tab, bounds) { return( sapply( names(bounds) , function(paramName) { tab[[paramName]] >= bounds[[paramName]][[1]] & tab[[paramName]] <= bounds[[paramName]][[2]] } ) ) } randParams <- function(boundsDT, rPoints, FAIL = TRUE) { # Attempt to procure rPo...
/R/SmallFuncs.R
no_license
khanhbrandy/ParBayesianOptimization
R
false
false
4,042
r
checkBounds <- function(tab, bounds) { return( sapply( names(bounds) , function(paramName) { tab[[paramName]] >= bounds[[paramName]][[1]] & tab[[paramName]] <= bounds[[paramName]][[2]] } ) ) } randParams <- function(boundsDT, rPoints, FAIL = TRUE) { # Attempt to procure rPo...
library(lattice) library(ggplot2) library(C50) library(randomForest) library(dplyr) library(caret) # importing data filtered<-read.csv(file = 'pca_and_nzv/filtered') validation1<-read.csv(file='pca_and_nzv/validation1') # predicting latitude latitude<-filtered %>% select(-LONGITUDE,-FLOOR,-BUILDINGID)...
/regression_model_for_latitiude_and_longitude.R
no_license
mohammed-vandoor/indoor-wifi-locationing
R
false
false
5,770
r
library(lattice) library(ggplot2) library(C50) library(randomForest) library(dplyr) library(caret) # importing data filtered<-read.csv(file = 'pca_and_nzv/filtered') validation1<-read.csv(file='pca_and_nzv/validation1') # predicting latitude latitude<-filtered %>% select(-LONGITUDE,-FLOOR,-BUILDINGID)...
args <- commandArgs(T) #getwd() #setwd("E://AD//data//GSE118553//GSE118553_series_matrix.txt//anova//sorted//WGCNA//TC//TC_6//boxplot") datExpr0 <- read.table(args[1],sep="\t",header = T,row.names = 1); datExpr0 <- t(log2(1+datExpr0)) head(datExpr0[1:5,1:5]) datExpr <- datExpr0 datTraits <- read.table(args[2],header...
/script/boxplotForBatch.r
no_license
BioinformaticsMan/piplineForTranscriptomAnalysis
R
false
false
4,421
r
args <- commandArgs(T) #getwd() #setwd("E://AD//data//GSE118553//GSE118553_series_matrix.txt//anova//sorted//WGCNA//TC//TC_6//boxplot") datExpr0 <- read.table(args[1],sep="\t",header = T,row.names = 1); datExpr0 <- t(log2(1+datExpr0)) head(datExpr0[1:5,1:5]) datExpr <- datExpr0 datTraits <- read.table(args[2],header...
pollutantmean <- function(directory, pollutant, id= 1:332){ filenames <- list.files(directory) pollutants <- c() for(i in id){ filepath<-paste(directory,"/" ,filenames[i], sep="") data <- read.csv(filepath, header = TRUE) pollutants = na.omit(c(pollutants, data[,pollutant])) } mean(pollutants) }
/Week 2/pollutantmean.R
no_license
swapnilsangal/R-Programming-Coursera-JHU
R
false
false
319
r
pollutantmean <- function(directory, pollutant, id= 1:332){ filenames <- list.files(directory) pollutants <- c() for(i in id){ filepath<-paste(directory,"/" ,filenames[i], sep="") data <- read.csv(filepath, header = TRUE) pollutants = na.omit(c(pollutants, data[,pollutant])) } mean(pollutants) }
\name{dixon.test} \alias{dixon.test} \title{ Dixon tests for outlier } \description{ Performs several variants of Dixon test for detecting outlier in data sample. } \usage{ dixon.test(x, type = 0, opposite = FALSE, two.sided = TRUE) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{x}{ a n...
/r-modules/outliers/man/dixon.test.Rd
no_license
CMPUT401Group/analytic-engine
R
false
false
2,349
rd
\name{dixon.test} \alias{dixon.test} \title{ Dixon tests for outlier } \description{ Performs several variants of Dixon test for detecting outlier in data sample. } \usage{ dixon.test(x, type = 0, opposite = FALSE, two.sided = TRUE) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{x}{ a n...
setwd("C:/Users/anton/Desktop") data <-read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", nrows=2075259, check.names=F) databind <-rbind(data[data$Date=="1/2/2007",],data[data$Date=="2/2/2007",]) databind$Date <- as.Date(databind$Date,"%d/%m/%Y") databind<-cbind(databind, "DateTime"...
/Plot4.R
no_license
antonioperu/exploratoryDataAnalysis1
R
false
false
767
r
setwd("C:/Users/anton/Desktop") data <-read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", nrows=2075259, check.names=F) databind <-rbind(data[data$Date=="1/2/2007",],data[data$Date=="2/2/2007",]) databind$Date <- as.Date(databind$Date,"%d/%m/%Y") databind<-cbind(databind, "DateTime"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_418} \alias{movie_418} \title{The Last of the Mohicans} \format{igraph object} \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0104...
/man/movie_418.Rd
permissive
physthoth/networkdata
R
false
true
675
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_418} \alias{movie_418} \title{The Last of the Mohicans} \format{igraph object} \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0104...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prcomp_opencpu_csv.r \name{prcomp_opencpu_csv} \alias{prcomp_opencpu_csv} \title{pca test for opencpu development} \usage{ prcomp_opencpu_csv(filename) } \arguments{ \item{combo_target}{a csv file with row as observations, while column as exp...
/man/prcomp_opencpu_csv.Rd
no_license
ningzhibin/metalab
R
false
true
574
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prcomp_opencpu_csv.r \name{prcomp_opencpu_csv} \alias{prcomp_opencpu_csv} \title{pca test for opencpu development} \usage{ prcomp_opencpu_csv(filename) } \arguments{ \item{combo_target}{a csv file with row as observations, while column as exp...
#'Play a short sound #' #'\code{beep} plays a short sound which is useful if you want to get notified, #'for example, when a script has finished. As an added bonus there are a number #'of different sounds to choose from. #' #'If \code{beep} is not able to play the sound a warning is issued rather than #'an error. Th...
/R/beepr.R
no_license
mwip/beepr
R
false
false
4,414
r
#'Play a short sound #' #'\code{beep} plays a short sound which is useful if you want to get notified, #'for example, when a script has finished. As an added bonus there are a number #'of different sounds to choose from. #' #'If \code{beep} is not able to play the sound a warning is issued rather than #'an error. Th...
library(dplyr) library(ggplot2) library(Amelia) library(caTools) # Read data df <- read.csv('data/adult_sal.csv') df <- select(df, -X) head(df) # Clean table(df$type_employer) update.job <- function(job) { job <- as.character(job) if (job == "Never-worked" | job == "Without-pay") { return("Unemployed") } if (jo...
/LogisticReg2.R
no_license
janFrancoo/R-Tutorials-and-Projects
R
false
false
3,006
r
library(dplyr) library(ggplot2) library(Amelia) library(caTools) # Read data df <- read.csv('data/adult_sal.csv') df <- select(df, -X) head(df) # Clean table(df$type_employer) update.job <- function(job) { job <- as.character(job) if (job == "Never-worked" | job == "Without-pay") { return("Unemployed") } if (jo...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/stomach.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.65,family="gaussian",standardize=FALSE) sink('./stomach_070.txt',append=TR...
/Model/EN/Correlation/stomach/stomach_070.R
no_license
esbgkannan/QSMART
R
false
false
353
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/stomach.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.65,family="gaussian",standardize=FALSE) sink('./stomach_070.txt',append=TR...
## These functions allow the user to calculate the inverse of a matrix using the R solve() ## function and then cache the inverse for subsequent retrieval. ## The functions assume that the matrix is invertible and has not changed over time. The ## functions reduce the processing overhead of repeatedly calculating the...
/cachematrix.R
no_license
Alohany/ProgrammingAssignment2
R
false
false
1,432
r
## These functions allow the user to calculate the inverse of a matrix using the R solve() ## function and then cache the inverse for subsequent retrieval. ## The functions assume that the matrix is invertible and has not changed over time. The ## functions reduce the processing overhead of repeatedly calculating the...
getwd() setwd("/Users/michaelz/Document/Data Science Camp/R machine learning") sms_raw = read.csv("sms_spam.csv", stringsAsFactors = FALSE) str(sms_raw) sms_raw$type = factor(sms_raw$type) str(sms_raw) table(sms_raw$type) prop.table(table(sms_raw$type)) install.packages("tm") library(tm) ?VCorpus getSources() getRe...
/R machine learning/Text Mining.r
no_license
spongezzr/CodeWorkForApplication
R
false
false
1,001
r
getwd() setwd("/Users/michaelz/Document/Data Science Camp/R machine learning") sms_raw = read.csv("sms_spam.csv", stringsAsFactors = FALSE) str(sms_raw) sms_raw$type = factor(sms_raw$type) str(sms_raw) table(sms_raw$type) prop.table(table(sms_raw$type)) install.packages("tm") library(tm) ?VCorpus getSources() getRe...
#' Visualize a Single Sneaker Prices #' #' This routine visualizes only one type of sneaker from its original data. #' #' @param table Pricing information #' #' @return A `list` with a `ggplot2` object. #' @importFrom ggplot2 ggplot aes geom_line facet_wrap theme element_blank labs #' @export data_for_visualization =...
/R/visualize_and_predict.R
no_license
stat385uiuc-projects/demo-sneaker-project
R
false
false
5,080
r
#' Visualize a Single Sneaker Prices #' #' This routine visualizes only one type of sneaker from its original data. #' #' @param table Pricing information #' #' @return A `list` with a `ggplot2` object. #' @importFrom ggplot2 ggplot aes geom_line facet_wrap theme element_blank labs #' @export data_for_visualization =...
#Related to video: https://youtu.be/UB99P1piTns # Reglated Blog Post: http://www.geekosas.com/?p=2569&preview=true cuts = 10000 cable_length = 80 block_length = function(x,dx,d){ sqrt(dx^2 + (30*(2*x*dx+dx^2)/d^2)^2) } # Formula con la integral # block_length = function(x,dx,d){ # sqrt(dx^2 + (30*2*x*dx/d^2)^2) ...
/code.R
no_license
danielfm123/amazon-hanging-cable-problem
R
false
false
699
r
#Related to video: https://youtu.be/UB99P1piTns # Reglated Blog Post: http://www.geekosas.com/?p=2569&preview=true cuts = 10000 cable_length = 80 block_length = function(x,dx,d){ sqrt(dx^2 + (30*(2*x*dx+dx^2)/d^2)^2) } # Formula con la integral # block_length = function(x,dx,d){ # sqrt(dx^2 + (30*2*x*dx/d^2)^2) ...
## Download Electric Power Consumption Dataset using link on Couursera project page to the working directory ## and unzip (extract) the data file ## Source of dataset file is http://archive.ics.uci.edu/ml/ ## Dataset file is located at https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.z...
/plot3.R
no_license
roydwilliams/ExData_Plotting1
R
false
false
3,593
r
## Download Electric Power Consumption Dataset using link on Couursera project page to the working directory ## and unzip (extract) the data file ## Source of dataset file is http://archive.ics.uci.edu/ml/ ## Dataset file is located at https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.z...
\name{letter.dists} \alias{letter.dists} \docType{data} \title{ Scrabble letter distribution table } \description{ A table specifying the exact distribution of letters in a normal game of Scrabble. Used to calculate impossible.points } \usage{data(letter.dists)} \format{ The format is: 'table' int [1:26(1d)] 9 2 2 4...
/ScrabbleScore/man/letter.dists.Rd
no_license
Libardo1/scrabble_score
R
false
false
704
rd
\name{letter.dists} \alias{letter.dists} \docType{data} \title{ Scrabble letter distribution table } \description{ A table specifying the exact distribution of letters in a normal game of Scrabble. Used to calculate impossible.points } \usage{data(letter.dists)} \format{ The format is: 'table' int [1:26(1d)] 9 2 2 4...
#' Print method for ndp objects #' #' The \code{print} method for ndp objects displays a compact summary of the #' fitted model. See the \strong{Details} section below for descriptions of the #' different components of the printed output. For additional summary statistics #' and diagnostics use the \code{\link[=summary...
/R/print-and-summary.R
permissive
apeterson91/bendr
R
false
false
4,718
r
#' Print method for ndp objects #' #' The \code{print} method for ndp objects displays a compact summary of the #' fitted model. See the \strong{Details} section below for descriptions of the #' different components of the printed output. For additional summary statistics #' and diagnostics use the \code{\link[=summary...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{entropy} \alias{entropy} \title{Find the entropy centrality in a graph} \usage{ entropy(graph, vids = V(graph), mode = c("all", "out", "in"), weights = NULL) } \arguments{ \item{graph}{The input graph as igraph object} \item{vids}{Vertex sequence,...
/man/entropy.Rd
no_license
cran/centiserve
R
false
false
2,681
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{entropy} \alias{entropy} \title{Find the entropy centrality in a graph} \usage{ entropy(graph, vids = V(graph), mode = c("all", "out", "in"), weights = NULL) } \arguments{ \item{graph}{The input graph as igraph object} \item{vids}{Vertex sequence,...
#vectorized operatiions #vecor arithmetics x<- rnorm(5) x #R specific programming loop for(i in x){ print(i) } print(x[1]) print(x[2]) print(x[3]) print(x[4]) print(x[5]) #coneventional programming loop for(j in 1:5) { print(x[j]) } #2 part for today N<-100 a<-rnorm(N) b<-...
/tutorial11.R
no_license
suvimanikandan/R-LANGUAGE
R
false
false
452
r
#vectorized operatiions #vecor arithmetics x<- rnorm(5) x #R specific programming loop for(i in x){ print(i) } print(x[1]) print(x[2]) print(x[3]) print(x[4]) print(x[5]) #coneventional programming loop for(j in 1:5) { print(x[j]) } #2 part for today N<-100 a<-rnorm(N) b<-...
\name{movie_videos} \alias{movie_videos} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Retrieve movie videos. } \description{ Get the videos (trailers, teasers, clips, etc...) for a specific movie id. } \usage{ movie_videos(api_key, id, language = NA, append_to_response = NA) } %- maybe also 'u...
/man/movie_videos.Rd
no_license
cran/TMDb
R
false
false
1,172
rd
\name{movie_videos} \alias{movie_videos} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Retrieve movie videos. } \description{ Get the videos (trailers, teasers, clips, etc...) for a specific movie id. } \usage{ movie_videos(api_key, id, language = NA, append_to_response = NA) } %- maybe also 'u...
getwd() #Nos dice el directorio de trabajo setwd("C:/Users/Reyna/Documents/specdata/specdata") directorio="C:/Users/Reyna/Documents/specdata" mediacontaminante <- function(directorio , contaminante= "sulfate", id= 1:332){ if (contaminante== "sulfate") { cont= 2 } else if(contaminante == "n...
/Contaminante_Noel.R
no_license
noelzap10/Programacion_Actuarial_lll
R
false
false
1,079
r
getwd() #Nos dice el directorio de trabajo setwd("C:/Users/Reyna/Documents/specdata/specdata") directorio="C:/Users/Reyna/Documents/specdata" mediacontaminante <- function(directorio , contaminante= "sulfate", id= 1:332){ if (contaminante== "sulfate") { cont= 2 } else if(contaminante == "n...
#' Load a dropbox token for use in repeated dropbox calls #' #' @description Loads a file that is a dropbox key such that credentials need #' not be inputted on every new session. If no key exists yet one is created #' by asking for credentials. #' #' @return token object which can be used for passwordless rdrop2 call...
/R/load_token.R
no_license
nmmarquez/INSP
R
false
false
666
r
#' Load a dropbox token for use in repeated dropbox calls #' #' @description Loads a file that is a dropbox key such that credentials need #' not be inputted on every new session. If no key exists yet one is created #' by asking for credentials. #' #' @return token object which can be used for passwordless rdrop2 call...
setwd('./R') getwd() source('Functions/slopegraph.R') source('../Data2009/states.r') require(gdata) require(reshape2) require(gridExtra) require(xtable) rankings <- read.xls('../Data/StateRankings.xlsx') g4math <- read.csv('../Data2009/g4math-level2-ctree.csv') g4read <- read.csv('../Data2009/g4read-level2-ctree.csv'...
/R/State Rankings.R
no_license
cityofsmiles87/Dissertation
R
false
false
11,664
r
setwd('./R') getwd() source('Functions/slopegraph.R') source('../Data2009/states.r') require(gdata) require(reshape2) require(gridExtra) require(xtable) rankings <- read.xls('../Data/StateRankings.xlsx') g4math <- read.csv('../Data2009/g4math-level2-ctree.csv') g4read <- read.csv('../Data2009/g4read-level2-ctree.csv'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/signer_operations.R \name{signer_revoke_signature} \alias{signer_revoke_signature} \title{Changes the state of a signing job to REVOKED} \usage{ signer_revoke_signature(jobId, jobOwner, reason) } \arguments{ \item{jobId}{[required] ID of the ...
/paws/man/signer_revoke_signature.Rd
permissive
sanchezvivi/paws
R
false
true
737
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/signer_operations.R \name{signer_revoke_signature} \alias{signer_revoke_signature} \title{Changes the state of a signing job to REVOKED} \usage{ signer_revoke_signature(jobId, jobOwner, reason) } \arguments{ \item{jobId}{[required] ID of the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pieGraph.R \name{pieGraph} \alias{pieGraph} \title{create a piechart to vizualize scientific object across the network} \usage{ pieGraph(computedDF, parameterOfInterest, filteredInstallation = FALSE) } \arguments{ \item{computedDF}{data of rd...
/man/pieGraph.Rd
no_license
JeanEudesH/networkvisu
R
false
true
1,043
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pieGraph.R \name{pieGraph} \alias{pieGraph} \title{create a piechart to vizualize scientific object across the network} \usage{ pieGraph(computedDF, parameterOfInterest, filteredInstallation = FALSE) } \arguments{ \item{computedDF}{data of rd...
#' Cluster guideRNAs #' #' Clusters guides based on their target binding profile #' #' @param guideSet guideSet containing guide mappings #' @param min_Son Numeric from 0 through 1. Only considers genomic target binding sites above \code{min_Son} score. #' @param n_clust Integer from 1 to 20. Number of clusters to grou...
/R/compute.R
no_license
tanaylab/repguide
R
false
false
17,633
r
#' Cluster guideRNAs #' #' Clusters guides based on their target binding profile #' #' @param guideSet guideSet containing guide mappings #' @param min_Son Numeric from 0 through 1. Only considers genomic target binding sites above \code{min_Son} score. #' @param n_clust Integer from 1 to 20. Number of clusters to grou...
# # 작성자: 이소정 # 작성일: 2019-12-17 # 제출일: 2019-12-17 # # 문1) # trees 데이터셋에 대해 다음의 문제를 해결하는 R 코드를 작성하시오. # (1) 나무 둘레(Girth)와 나무의 키(Height)로 나무의 볼륨을 예측하는 # 다중선형 회귀모델을 만드시오. str(trees) head(trees) model <- lm(Volume~.,data = trees) model coef(model) # (2) 다중선형 회귀모델을 이용하여 trees 데이터셋의 # 나무 둘레(Girth)와 나무의 키(Height)로 나무의 볼륨을...
/LSJ_1217.R
no_license
seonggegun/workR
R
false
false
3,141
r
# # 작성자: 이소정 # 작성일: 2019-12-17 # 제출일: 2019-12-17 # # 문1) # trees 데이터셋에 대해 다음의 문제를 해결하는 R 코드를 작성하시오. # (1) 나무 둘레(Girth)와 나무의 키(Height)로 나무의 볼륨을 예측하는 # 다중선형 회귀모델을 만드시오. str(trees) head(trees) model <- lm(Volume~.,data = trees) model coef(model) # (2) 다중선형 회귀모델을 이용하여 trees 데이터셋의 # 나무 둘레(Girth)와 나무의 키(Height)로 나무의 볼륨을...
#' Calculates odds of a probability #' #' @param p Numeric. #' @return Numeric #' @export odds <- function(p) { return((p/(1-p))) }
/R/odds.R
no_license
kgoldfeld/ksgMisc
R
false
false
135
r
#' Calculates odds of a probability #' #' @param p Numeric. #' @return Numeric #' @export odds <- function(p) { return((p/(1-p))) }
# Jo COLINA & Paul GOUJON # UTC - SY19 - TP4 # Phoneme data analysis # multinomial LDA library(MASS) # >>> DATA LOADING # load data & split it source("./data_loading.R") source("./ten_fold.R") source("./sampling.R") error_rates = matrix(nrow=10, ncol=1) # using 10-folds cross-validation for (i in 1:10) { # mak...
/phoneme/multinomial_lda.R
permissive
goujonpa/SY19_TP4
R
false
false
953
r
# Jo COLINA & Paul GOUJON # UTC - SY19 - TP4 # Phoneme data analysis # multinomial LDA library(MASS) # >>> DATA LOADING # load data & split it source("./data_loading.R") source("./ten_fold.R") source("./sampling.R") error_rates = matrix(nrow=10, ncol=1) # using 10-folds cross-validation for (i in 1:10) { # mak...
# Jan 18, 2021 # code on sjsdm model run with DNN (for ADA cluster) - from Yuanheng # to test how long it would take to run one model on the cluster options(echo=TRUE) # if you want see commands in output file Sys.setenv(RETICULATE_PYTHON="/gpfs/scratch/hsp20azu/sjSDM_env/bin/python") library(sjSDM) packageVersion("s...
/Hmsc_CD/oregon_ada/code_sjSDM/sjSDM_trial/ada_sjsdm1_data_setup.r
permissive
dougwyu/HJA_analyses_Kelpie
R
false
false
7,117
r
# Jan 18, 2021 # code on sjsdm model run with DNN (for ADA cluster) - from Yuanheng # to test how long it would take to run one model on the cluster options(echo=TRUE) # if you want see commands in output file Sys.setenv(RETICULATE_PYTHON="/gpfs/scratch/hsp20azu/sjSDM_env/bin/python") library(sjSDM) packageVersion("s...
# # Read file # data <- read.table("~/Downloads/household_power_consumption.txt", sep=";", header=T, na.strings = "?", stringsAsFactors=F) # # Clean the data # data$Date <- as.Date(data$Date, format="%d/%m/%Y") data <- data[data$Date == "2007-02-01" | data$Date == "2007-02-02", ] data$Date <- strftime(paste(data$Date,...
/import_data.R
no_license
nikolaypavlov/ExData_Plotting1
R
false
false
377
r
# # Read file # data <- read.table("~/Downloads/household_power_consumption.txt", sep=";", header=T, na.strings = "?", stringsAsFactors=F) # # Clean the data # data$Date <- as.Date(data$Date, format="%d/%m/%Y") data <- data[data$Date == "2007-02-01" | data$Date == "2007-02-02", ] data$Date <- strftime(paste(data$Date,...
## Create a vector of courses myCourses <- c("COMM 101","ACCT 461","ACT 311","ACCT 203","IT 103","MIS 391","MIS 401","MATH 113","CST 100","MIS 310") ## Length of the vector length(myCourses) #furst two courses myCourses[c(1,2)] #3rd and 4th courses myCourses[3] myCourses[4] #Sort using a method sort(myC...
/Q3 R.R
no_license
beakalg/DAEN-500-Final-Exam
R
false
false
396
r
## Create a vector of courses myCourses <- c("COMM 101","ACCT 461","ACT 311","ACCT 203","IT 103","MIS 391","MIS 401","MATH 113","CST 100","MIS 310") ## Length of the vector length(myCourses) #furst two courses myCourses[c(1,2)] #3rd and 4th courses myCourses[3] myCourses[4] #Sort using a method sort(myC...
\name{CombPlateau_next} \alias{CombPlateau_next} \alias{print.CombPlateau_next} \title{Combination determination for the combination of two agents where toxicity is increasing with the dose of both agent and efficacy is increasing and possibly plateaus with the dose of one agent} \description{ \code{CombPlateau_next} i...
/man/CombPlateau_next.Rd
no_license
armaMCMC/dfcomb
R
false
false
6,305
rd
\name{CombPlateau_next} \alias{CombPlateau_next} \alias{print.CombPlateau_next} \title{Combination determination for the combination of two agents where toxicity is increasing with the dose of both agent and efficacy is increasing and possibly plateaus with the dose of one agent} \description{ \code{CombPlateau_next} i...
\alias{gtkWindowGetDefaultIconList} \name{gtkWindowGetDefaultIconList} \title{gtkWindowGetDefaultIconList} \description{Gets the value set by \code{\link{gtkWindowSetDefaultIconList}}. but the pixbufs in the list have not had their reference count incremented.} \usage{gtkWindowGetDefaultIconList()} \value{[list] copy o...
/RGtk2/man/gtkWindowGetDefaultIconList.Rd
no_license
lawremi/RGtk2
R
false
false
493
rd
\alias{gtkWindowGetDefaultIconList} \name{gtkWindowGetDefaultIconList} \title{gtkWindowGetDefaultIconList} \description{Gets the value set by \code{\link{gtkWindowSetDefaultIconList}}. but the pixbufs in the list have not had their reference count incremented.} \usage{gtkWindowGetDefaultIconList()} \value{[list] copy o...
# Data to host on git for students setwd("~/Documents/_Grad_School/_Teaching/PS_230/PS230/data") library(foreign) nes2012<-read.spss("anes_specialstudy_2012_directdem_sav/anes_specialstudy_2012_directdem.sav",to.data.frame=T) head(nes2012) nes2012<-read.table("anes_specialstudy_2012_directdem/anes_specialstudy_2012_d...
/data/SP2016_StudentData.R
no_license
PTesta/PS230
R
false
false
3,605
r
# Data to host on git for students setwd("~/Documents/_Grad_School/_Teaching/PS_230/PS230/data") library(foreign) nes2012<-read.spss("anes_specialstudy_2012_directdem_sav/anes_specialstudy_2012_directdem.sav",to.data.frame=T) head(nes2012) nes2012<-read.table("anes_specialstudy_2012_directdem/anes_specialstudy_2012_d...
\name{runLmer} \alias{runLmer} \title{wrapper of mincApply on lmer} \description{ Runs \code{lmer} on every voxel using mincApply. } \usage{ runLmer(table,mask,formula,outbase,column=NA,cores=4) } \arguments{ \item{table}{a data.frame containing a column with paths to Jacobian determinants} \item{mask}{mask file ...
/micescripts/runLmer.Rd
no_license
jan-scholz/image-analysis-scripts
R
false
false
601
rd
\name{runLmer} \alias{runLmer} \title{wrapper of mincApply on lmer} \description{ Runs \code{lmer} on every voxel using mincApply. } \usage{ runLmer(table,mask,formula,outbase,column=NA,cores=4) } \arguments{ \item{table}{a data.frame containing a column with paths to Jacobian determinants} \item{mask}{mask file ...
require(tm) require(chron) # ## import subtitle file # # # option-1: read sample file frm_df.csv from our repo (filesize: 7.5 MB) # library(RCurl) # x <- getURL("https://raw.githubusercontent.com/g64164017/yt-subtitle-search/master/apps/data.csv") # df <- read.csv(text = x) # # option-2: if you have your own file, ch...
/apps/tm-1.R
no_license
g64164017/yt-subtitle-search
R
false
false
2,474
r
require(tm) require(chron) # ## import subtitle file # # # option-1: read sample file frm_df.csv from our repo (filesize: 7.5 MB) # library(RCurl) # x <- getURL("https://raw.githubusercontent.com/g64164017/yt-subtitle-search/master/apps/data.csv") # df <- read.csv(text = x) # # option-2: if you have your own file, ch...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/covid19_vaccination_testing.R \name{c19.OWID.data} \alias{c19.OWID.data} \title{function to read data from OWID repos} \usage{ c19.OWID.data(repo, disclaimer = TRUE) } \arguments{ \item{repo}{URL for reading the data} \item{disclaimer}{indic...
/vignettes/man/c19.OWID.data.Rd
no_license
cran/covid19.analytics
R
false
true
473
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/covid19_vaccination_testing.R \name{c19.OWID.data} \alias{c19.OWID.data} \title{function to read data from OWID repos} \usage{ c19.OWID.data(repo, disclaimer = TRUE) } \arguments{ \item{repo}{URL for reading the data} \item{disclaimer}{indic...
# R code for plot3 # If the data file does not exist in the working directory then download the file and unzip # else read the data file if(! file.exists("household_power_consumption.txt")){ ####download the Zip file and Unzip the zip file ###household_power_consumption.txt is the file name zip.url <- "https://...
/plot3.R
no_license
aru20/Household-Power-Consumption-Data-Plotting
R
false
false
1,574
r
# R code for plot3 # If the data file does not exist in the working directory then download the file and unzip # else read the data file if(! file.exists("household_power_consumption.txt")){ ####download the Zip file and Unzip the zip file ###household_power_consumption.txt is the file name zip.url <- "https://...
/Análisis de riesgos/Problemas/Convexidad/convexidad.R
no_license
jiep/ADA
R
false
false
1,833
r
# Read data d<-read.table("household_power_consumption.txt", sep=";", na.strings="?", header=TRUE) # Reduce the dataset to needed variables d<-d[d$Date=="1/2/2007" | d$Date=="2/2/2007",] # Create plot png("plot3.png", width=480, height=480) plot(d$Sub_metering_1, ylab="Energy sub metering", xlab="", axes=F, xlim=c(0, ...
/plot3.R
no_license
marlena-siwiak/ExploratoryDataAnalysis
R
false
false
694
r
# Read data d<-read.table("household_power_consumption.txt", sep=";", na.strings="?", header=TRUE) # Reduce the dataset to needed variables d<-d[d$Date=="1/2/2007" | d$Date=="2/2/2007",] # Create plot png("plot3.png", width=480, height=480) plot(d$Sub_metering_1, ylab="Energy sub metering", xlab="", axes=F, xlim=c(0, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stratefyR.R \name{stratefyR} \alias{stratefyR} \title{CSR ecology strategies calculator} \usage{ stratefyR(sp = NULL, la = NULL, lfw = NULL, ldw = NULL, data = NULL) } \arguments{ \item{sp}{species names or morphospecies codes} \item{la}{lea...
/man/stratefyR.Rd
no_license
renanparmigiani/stratefyR
R
false
true
1,243
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stratefyR.R \name{stratefyR} \alias{stratefyR} \title{CSR ecology strategies calculator} \usage{ stratefyR(sp = NULL, la = NULL, lfw = NULL, ldw = NULL, data = NULL) } \arguments{ \item{sp}{species names or morphospecies codes} \item{la}{lea...
#' Flatten part of a `dm` into a wide table #' #' Gather all information of interest in one place in a wide table (on a database-[`dm`] a #' temporary table will be created). #' If referential integrity is given among the tables of the data model, the resulting #' table of this function will contain as many rows as the...
/R/flatten.R
permissive
philipp-baumann/dm
R
false
false
11,929
r
#' Flatten part of a `dm` into a wide table #' #' Gather all information of interest in one place in a wide table (on a database-[`dm`] a #' temporary table will be created). #' If referential integrity is given among the tables of the data model, the resulting #' table of this function will contain as many rows as the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/input_processing.R \name{read.loci} \alias{read.loci} \title{Read in locus file} \usage{ read.loci(loc.file) } \arguments{ \item{loc.file}{Name of locus file} } \description{ This function reads in the locus file, defining the locus boundarie...
/man/read.loci.Rd
no_license
josefin-werme/LAVA
R
false
true
729
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/input_processing.R \name{read.loci} \alias{read.loci} \title{Read in locus file} \usage{ read.loci(loc.file) } \arguments{ \item{loc.file}{Name of locus file} } \description{ This function reads in the locus file, defining the locus boundarie...
#' Boxplot of DRG #' #'This function produces a boxplot to show \code{payment} of different DRG definition number #' #' @param payment average money #' #' @return a boxplot to show \code{payment} of different DRG definition number #' @export #' #' @importFrom ggplot2 ggplot #' @importFrom ggplot2 geom_boxplot #' @impor...
/DRGProject/R/DRG_box.R
no_license
SiqiWei1205/DRGPackage
R
false
false
1,096
r
#' Boxplot of DRG #' #'This function produces a boxplot to show \code{payment} of different DRG definition number #' #' @param payment average money #' #' @return a boxplot to show \code{payment} of different DRG definition number #' @export #' #' @importFrom ggplot2 ggplot #' @importFrom ggplot2 geom_boxplot #' @impor...
context("readMSData2") test_that("msLevel set correctly", { f <- msdata::proteomics(full.names = TRUE) x <- readMSData2(f, verbose = FALSE) expect_equivalent(centroided(x), rep(NA, length(x))) x <- readMSData2(f, centroided = TRUE, verbose = FALSE) expect_equivalent(centroided(x), rep(TRUE, length(...
/tests/testthat/test_readMSData2.R
no_license
LaBabyGirl/MSnbase
R
false
false
2,899
r
context("readMSData2") test_that("msLevel set correctly", { f <- msdata::proteomics(full.names = TRUE) x <- readMSData2(f, verbose = FALSE) expect_equivalent(centroided(x), rep(NA, length(x))) x <- readMSData2(f, centroided = TRUE, verbose = FALSE) expect_equivalent(centroided(x), rep(TRUE, length(...
saltSeverity=function(ec,ph,esp,criterion="FAO"){ esp=esp*1 ec=ec*1 ph=round(ph*1,2) if(criterion=="FAO"){ sal=ifelse(negData("ec",ec)<0.75,1,ifelse(negData("ec",ec)<2,2,ifelse(negData("ec",ec)<4,3,ifelse(negData("ec",ec)<8,4,ifelse(negData("ec",ec)<15,5,6))))) sod=ifelse(negData("esp",esp)<15,1,(...
/R/saltSeverity.R
no_license
cran/soilassessment
R
false
false
2,148
r
saltSeverity=function(ec,ph,esp,criterion="FAO"){ esp=esp*1 ec=ec*1 ph=round(ph*1,2) if(criterion=="FAO"){ sal=ifelse(negData("ec",ec)<0.75,1,ifelse(negData("ec",ec)<2,2,ifelse(negData("ec",ec)<4,3,ifelse(negData("ec",ec)<8,4,ifelse(negData("ec",ec)<15,5,6))))) sod=ifelse(negData("esp",esp)<15,1,(...
# load in the libraries library(tidyverse) library(tidytext) # create my theme options my_theme <- theme_bw() + theme(text = element_text(family="Fira Code", size = 16), plot.title = element_text(size = 28, face = "bold")) + theme(legend.position = "none") + theme(plot.margin=unit(c(1.5,1.5,1.5,1.5),...
/mario_kart_analysis.R
no_license
stephanieboyle/mario-kart-tt
R
false
false
2,030
r
# load in the libraries library(tidyverse) library(tidytext) # create my theme options my_theme <- theme_bw() + theme(text = element_text(family="Fira Code", size = 16), plot.title = element_text(size = 28, face = "bold")) + theme(legend.position = "none") + theme(plot.margin=unit(c(1.5,1.5,1.5,1.5),...
## Preprocess data, write TAF data tables ## Before: ## After: library(icesTAF) library(dplyr) mkdir("data") # read in retro bias results mohns_all <- read.taf("bootstrap/data/retrobias_survey/mohns_all.csv") sd <- read.taf("bootstrap/data/sid_data/stockinfo.csv") # combine mohns_all <- mohns_all %>% right_jo...
/mohns_rho_survey/data.R
no_license
ices-eg/wk_WKFORBIAS
R
false
false
2,251
r
## Preprocess data, write TAF data tables ## Before: ## After: library(icesTAF) library(dplyr) mkdir("data") # read in retro bias results mohns_all <- read.taf("bootstrap/data/retrobias_survey/mohns_all.csv") sd <- read.taf("bootstrap/data/sid_data/stockinfo.csv") # combine mohns_all <- mohns_all %>% right_jo...
\name{TSIXTriAllelics} \docType{data} \alias{TSIXTriAllelics} \title{ Tri-allelic polymorphisms on the X chromosome of the TSI population } \description{ This dataframe contains genotype counts for six three-allelic polymorphisms (A,B,C) on chromosome X of a sample of individuals from the TSI population (Tus...
/HardyWeinberg/man/TSIXTriAllelics.Rd
no_license
akhikolla/InformationHouse
R
false
false
1,307
rd
\name{TSIXTriAllelics} \docType{data} \alias{TSIXTriAllelics} \title{ Tri-allelic polymorphisms on the X chromosome of the TSI population } \description{ This dataframe contains genotype counts for six three-allelic polymorphisms (A,B,C) on chromosome X of a sample of individuals from the TSI population (Tus...
data("AirPassengers") View(AirPassengers) start(AirPassengers) end(AirPassengers) frequency(AirPassengers) summary(AirPassengers) plot(AirPassengers) abline(reg=lm(AirPassengers~time(AirPassengers))) plot(cycle(AirPassengers)) plot(aggregate(AirPassengers,FUN=mean)) boxplot(AirPassengers~cycle(AirPassenge...
/ARIMA.R
no_license
Rahul4242/RProjects
R
false
false
774
r
data("AirPassengers") View(AirPassengers) start(AirPassengers) end(AirPassengers) frequency(AirPassengers) summary(AirPassengers) plot(AirPassengers) abline(reg=lm(AirPassengers~time(AirPassengers))) plot(cycle(AirPassengers)) plot(aggregate(AirPassengers,FUN=mean)) boxplot(AirPassengers~cycle(AirPassenge...
# ******************************************************************************* # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC. # See also https://openstudio.net/license # ******************************************************************************* clusterEvalQ(cl,library(rjson)) clusterEval...
/docker/R/lib/fast99.R
permissive
NREL/OpenStudio-server
R
false
false
6,076
r
# ******************************************************************************* # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC. # See also https://openstudio.net/license # ******************************************************************************* clusterEvalQ(cl,library(rjson)) clusterEval...
# This R environment comes with all of CRAN preinstalled, as well as many other helpful packages # The environment is defined by the kaggle/rstats docker image: https://github.com/kaggle/docker-rstats # For example, here's several helpful packages to load in library(ggplot2) # Data visualization library(readr) # C...
/SFKaggle.R
permissive
starkjarvis/San-Francisco-Crime-Classification-project
R
false
false
6,656
r
# This R environment comes with all of CRAN preinstalled, as well as many other helpful packages # The environment is defined by the kaggle/rstats docker image: https://github.com/kaggle/docker-rstats # For example, here's several helpful packages to load in library(ggplot2) # Data visualization library(readr) # C...
\name{gx.rqpca.save} \alias{gx.rqpca.save} \title{ Function to Save PCA Loadings and Scores as .csv files } \description{ Function to save PCA matrices following computations by functions \code{\link{gx.mva}}, \code{\link{gx.mva.closed}}, \code{\link{gx.robmva}}, \code{\link{gx.robmva.closed}} or \code{\link{gx.rot...
/man/gx.rqpca.save.Rd
no_license
cran/rgr
R
false
false
2,692
rd
\name{gx.rqpca.save} \alias{gx.rqpca.save} \title{ Function to Save PCA Loadings and Scores as .csv files } \description{ Function to save PCA matrices following computations by functions \code{\link{gx.mva}}, \code{\link{gx.mva.closed}}, \code{\link{gx.robmva}}, \code{\link{gx.robmva.closed}} or \code{\link{gx.rot...
testlist <- list(A = structure(c(2.04566839542701e+205, 9.53818252179844e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 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), .Dim = c(5L, 7L))) result <- do.call(multivariance:::match_rows,testlist) str(resu...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613121047-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
323
r
testlist <- list(A = structure(c(2.04566839542701e+205, 9.53818252179844e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 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), .Dim = c(5L, 7L))) result <- do.call(multivariance:::match_rows,testlist) str(resu...
require(MASS) require(data.table) require(tm) Mode <- function(x) { ux <- unique(x) ux[which.max(tabulate(match(x, ux)))] } train = fread('/home/mikeskim/Desktop/kaggle/telstra/data/train.csv',data.table=F) test = fread('/home/mikeskim/Desktop/kaggle/telstra/data/test.csv',data.table=F) test$fault_severity=-...
/Examples/Telstra Network Disruptions/MikeKim/feats101.R
no_license
kenkjw/kaggle
R
false
false
680
r
require(MASS) require(data.table) require(tm) Mode <- function(x) { ux <- unique(x) ux[which.max(tabulate(match(x, ux)))] } train = fread('/home/mikeskim/Desktop/kaggle/telstra/data/train.csv',data.table=F) test = fread('/home/mikeskim/Desktop/kaggle/telstra/data/test.csv',data.table=F) test$fault_severity=-...
testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = -1.72131968218895e+83, temp = c(1.11339421555315e-308, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615844925-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
737
r
testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = -1.72131968218895e+83, temp = c(1.11339421555315e-308, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518...
## The following functions calculate the inverse of a matrix and saves it ## to the cache such that the next time the user attempts to calculate the ## matrix inverse, the previously saved value is returned instead of ## repeating the calculation. ## This function creates a special "matrix" object, which is really a l...
/cachematrix.R
no_license
hafizimy/uitm
R
false
false
2,044
r
## The following functions calculate the inverse of a matrix and saves it ## to the cache such that the next time the user attempts to calculate the ## matrix inverse, the previously saved value is returned instead of ## repeating the calculation. ## This function creates a special "matrix" object, which is really a l...
rm(list=ls()) library(oro.dicom) library(oro.nifti) library(plyr) library(scales) #### delete all ROI files ### find . -regextype posix-extended -regex "^./[0-9].*[0-9]$" -exec rm -r {} \; setup <- function(id){ username <- Sys.info()["user"][[1]] cluster=FALSE if (username == "muschellij2"){ # rootdir <- ...
/ROI/ROI_Pipeline.R
no_license
muschellij2/CT_Pipeline
R
false
false
2,676
r
rm(list=ls()) library(oro.dicom) library(oro.nifti) library(plyr) library(scales) #### delete all ROI files ### find . -regextype posix-extended -regex "^./[0-9].*[0-9]$" -exec rm -r {} \; setup <- function(id){ username <- Sys.info()["user"][[1]] cluster=FALSE if (username == "muschellij2"){ # rootdir <- ...
/data_collection_code/lyngby-taarbaek.R
no_license
Andlino/First_Repository_CROW_FAR
R
false
false
3,329
r
#SUMMER 2015 #(3) the HETEROGENEITY-HETEROGENEITY RELATIONSHIP (HHR) hypothesis #call data etc: ####################################################################### library(MuMIn) library(nlme) library(lme4) library(RColorBrewer) library(AICcmodavg) setwd("~/Documents/Research/PCAP/PCAPbckup7142017/Dataframes") ...
/SUMMER2015(3).R
no_license
io-inspace/PCAP-2018
R
false
false
22,910
r
#SUMMER 2015 #(3) the HETEROGENEITY-HETEROGENEITY RELATIONSHIP (HHR) hypothesis #call data etc: ####################################################################### library(MuMIn) library(nlme) library(lme4) library(RColorBrewer) library(AICcmodavg) setwd("~/Documents/Research/PCAP/PCAPbckup7142017/Dataframes") ...
test_server <- "http://had.co.nz" # Create a new handle for every request - no connection sharing rowMeans(replicate(20, GET(handle = handle(test_server), path = "index.html")$times)) test_handle <- handle(test_server) # Re use the same handle for multiple requests rowMeans(replicate(20, GET(handle = test_handl...
/demo/connection-sharing.r
no_license
jiho/httr
R
false
false
482
r
test_server <- "http://had.co.nz" # Create a new handle for every request - no connection sharing rowMeans(replicate(20, GET(handle = handle(test_server), path = "index.html")$times)) test_handle <- handle(test_server) # Re use the same handle for multiple requests rowMeans(replicate(20, GET(handle = test_handl...
#Library library(dplyr) #Read, clean & subset data my.data <- read.table(file="household_power_consumption.txt", header=TRUE,sep=";",stringsAsFactors=FALSE, na.strings = "?") my.data$Date <- paste(my.data$Date,my.data$Time) my.data <- cbind(my.data,strptime(my.data$Date, format="%d/%m/%Y %H:%M")) my.data$Date <...
/plot4.R
no_license
KlemenR91/ExData_Plotting1
R
false
false
1,182
r
#Library library(dplyr) #Read, clean & subset data my.data <- read.table(file="household_power_consumption.txt", header=TRUE,sep=";",stringsAsFactors=FALSE, na.strings = "?") my.data$Date <- paste(my.data$Date,my.data$Time) my.data <- cbind(my.data,strptime(my.data$Date, format="%d/%m/%Y %H:%M")) my.data$Date <...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/refresh.R \name{refresh_covid19france} \alias{refresh_covid19france} \title{Refresh data} \usage{ refresh_covid19france(verbose = TRUE) } \arguments{ \item{verbose}{Should messages about what's going on be displayed?} } \value{ A tibble of th...
/man/refresh_covid19france.Rd
permissive
Covid19R/covid19france
R
false
true
492
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/refresh.R \name{refresh_covid19france} \alias{refresh_covid19france} \title{Refresh data} \usage{ refresh_covid19france(verbose = TRUE) } \arguments{ \item{verbose}{Should messages about what's going on be displayed?} } \value{ A tibble of th...
library(qtl) pdf ("MPR.cross.fill.QTL.pdf") ## step0. read and write the data of cross if (1){ read.cross("qtlcart",dir="./",file="MPR.cross.fill.cro",mapfile="MPR.cross.fill.map") -> cross }else{ read.cross("csv",dir="./",file="MPR.cross.fill") -> cross } myMaq <- pull.map(cross) plot.map(myMaq) if (0){ write....
/RILs_0.12X/MPR.cross.fill.R
no_license
gyanmishra/QTL_pipe
R
false
false
5,931
r
library(qtl) pdf ("MPR.cross.fill.QTL.pdf") ## step0. read and write the data of cross if (1){ read.cross("qtlcart",dir="./",file="MPR.cross.fill.cro",mapfile="MPR.cross.fill.map") -> cross }else{ read.cross("csv",dir="./",file="MPR.cross.fill") -> cross } myMaq <- pull.map(cross) plot.map(myMaq) if (0){ write....
# Initialise -------------------------------------------------------------- library(VennDiagram) # Import data ------------------------------------------------------------- # Import ovarian cancer data set 1 data1_rpath <- "data/ovarian_cancer/GSE18521/processed/mas5_qnorm.tsv" ovarian_data1 <- read.table(data1_rpath, ...
/methods-hypgeom.R
no_license
dblux/diff_expr
R
false
false
3,705
r
# Initialise -------------------------------------------------------------- library(VennDiagram) # Import data ------------------------------------------------------------- # Import ovarian cancer data set 1 data1_rpath <- "data/ovarian_cancer/GSE18521/processed/mas5_qnorm.tsv" ovarian_data1 <- read.table(data1_rpath, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_ci.R \name{get_ci} \alias{get_ci} \title{Get Confidence Intervals} \usage{ get_ci(data, confidence_level = 0.95, point_estimate = NULL, type = "percentile") } \arguments{ \item{data}{A dataframe/tibble with the calculated statistics in ...
/man/get_ci.Rd
permissive
DavyGuo/rfer
R
false
true
1,009
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_ci.R \name{get_ci} \alias{get_ci} \title{Get Confidence Intervals} \usage{ get_ci(data, confidence_level = 0.95, point_estimate = NULL, type = "percentile") } \arguments{ \item{data}{A dataframe/tibble with the calculated statistics in ...
# http://datastorm-open.github.io/visNetwork/ library(visNetwork) # https://github.com/nicolewhite/RNeo4j library(RNeo4j) # connect to database graph <- startGraph("http://localhost:7474/db/data/") # graph <- startGraph("http://localhost:7474/db/data/", username="neo4j", password="neo4j") # https://nicolewhite.githu...
/scripts/TemplateSampleData.R
permissive
phoen1x/visnetwork-graph-schema
R
false
false
2,452
r
# http://datastorm-open.github.io/visNetwork/ library(visNetwork) # https://github.com/nicolewhite/RNeo4j library(RNeo4j) # connect to database graph <- startGraph("http://localhost:7474/db/data/") # graph <- startGraph("http://localhost:7474/db/data/", username="neo4j", password="neo4j") # https://nicolewhite.githu...
# ui.R library(dplyr) library(shiny) library(plotly) shinyUI(fluidPage( mainPanel( # Add a selectInput (with a proper id) that allows you to select a variable to map selectInput('mapvar', label = 'Variable to Map', choices = list("Population" = 'population', 'Electoral Votes' = 'votes', 'Votes / Population' ...
/exercise-3/ui.R
permissive
dtruon/m14-shiny
R
false
false
403
r
# ui.R library(dplyr) library(shiny) library(plotly) shinyUI(fluidPage( mainPanel( # Add a selectInput (with a proper id) that allows you to select a variable to map selectInput('mapvar', label = 'Variable to Map', choices = list("Population" = 'population', 'Electoral Votes' = 'votes', 'Votes / Population' ...
subject_test <- read.table("~/UCI HAR Dataset/test/subject_test.txt", col.names = "subject") y_test <- read.table("~/UCI HAR Dataset/test/y_test.txt", col.names = "activity") X_test <- read.table("~/UCI HAR Dataset/X_test.txt") ## read the test files test_data <- cbind(subject_test, y_test, X_test) ## merge the te...
/run_analysis.R
no_license
mossi209/Week_4_assignment
R
false
false
2,232
r
subject_test <- read.table("~/UCI HAR Dataset/test/subject_test.txt", col.names = "subject") y_test <- read.table("~/UCI HAR Dataset/test/y_test.txt", col.names = "activity") X_test <- read.table("~/UCI HAR Dataset/X_test.txt") ## read the test files test_data <- cbind(subject_test, y_test, X_test) ## merge the te...
### This file will contain the main code. library(httr) library(jsonlite) library(dplyr) library(stringr) library(knitr) source("~/Documents/keys.R") ##API Call repTable <- function(address1){ base_uri <- "https://www.googleapis.com/civicinfo/v2/" resource <- "representatives?" query_params <- list(key = google.key,...
/process-data.R
permissive
info201b-sp2019/a6-apis-group_39
R
false
false
1,862
r
### This file will contain the main code. library(httr) library(jsonlite) library(dplyr) library(stringr) library(knitr) source("~/Documents/keys.R") ##API Call repTable <- function(address1){ base_uri <- "https://www.googleapis.com/civicinfo/v2/" resource <- "representatives?" query_params <- list(key = google.key,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dqda.r \name{dqda} \alias{dqda} \alias{dqda.default} \alias{dqda.formula} \alias{predict.dqda} \title{Diagonal Quadratic Discriminant Analysis (DQDA)} \usage{ dqda(x, ...) \method{dqda}{default}(x, y, prior = NULL, ...) \method{dqda}{formul...
/man/dqda.Rd
no_license
mntabassm/sparsediscrim
R
false
true
4,118
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dqda.r \name{dqda} \alias{dqda} \alias{dqda.default} \alias{dqda.formula} \alias{predict.dqda} \title{Diagonal Quadratic Discriminant Analysis (DQDA)} \usage{ dqda(x, ...) \method{dqda}{default}(x, y, prior = NULL, ...) \method{dqda}{formul...
#read in file srd<- read.table("household_power_consumption.txt", header=TRUE,sep=";") library(dplyr) #filter to only include relevant dates test.date <- c("1/2/2007", "2/2/2007") filt.data <- filter(srd, Date %in% test.date) #convert factor to numeric filt.data$Sub_metering_1 <- as.numeric(as.character(filt.data$Sub...
/Plot4.R
no_license
SeanDinn/ExData_Plotting1
R
false
false
1,882
r
#read in file srd<- read.table("household_power_consumption.txt", header=TRUE,sep=";") library(dplyr) #filter to only include relevant dates test.date <- c("1/2/2007", "2/2/2007") filt.data <- filter(srd, Date %in% test.date) #convert factor to numeric filt.data$Sub_metering_1 <- as.numeric(as.character(filt.data$Sub...
library(tidyr) library(dplyr) names.analy <- read.csv('./data/names4.csv') # used for FindNames name.trends <- read.csv('./ssa_names/ssa_names_years.csv') # used for trends stats.cache <- read.csv('./data/cache/stats.csv') # used for stats #' For a given name_, returns whether or not it exists in dataset. #' #' @par...
/api/exploration/common.R
permissive
andreybutenko/datonym
R
false
false
742
r
library(tidyr) library(dplyr) names.analy <- read.csv('./data/names4.csv') # used for FindNames name.trends <- read.csv('./ssa_names/ssa_names_years.csv') # used for trends stats.cache <- read.csv('./data/cache/stats.csv') # used for stats #' For a given name_, returns whether or not it exists in dataset. #' #' @par...
# plot4.R - Code required for an 2X2 grid plot of 4 metrics # Create directory for data files, download file from UCI, unzip and load it into data frame if (!file.exists("data")) { dir.create("data") } url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(u...
/plot4.R
no_license
mjc-mia/ExData_Plotting1
R
false
false
1,852
r
# plot4.R - Code required for an 2X2 grid plot of 4 metrics # Create directory for data files, download file from UCI, unzip and load it into data frame if (!file.exists("data")) { dir.create("data") } url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(u...
setwd("F:/ADM/Project/Dataset/Experiment/Mumbai") library(readxl) library(DataExplorer) library(lubridate) library(tidyverse) library(forcats) library(glue) #library(rnn) #install.packages("devtools") library(devtools) # devtools::install_github("rstudio/reticulate") # devtools::install_github("rstudio/tensorflow") #...
/Data Processing/MissingDate.R
no_license
rathiankit03/Air-Pollution-Forecasting
R
false
false
2,953
r
setwd("F:/ADM/Project/Dataset/Experiment/Mumbai") library(readxl) library(DataExplorer) library(lubridate) library(tidyverse) library(forcats) library(glue) #library(rnn) #install.packages("devtools") library(devtools) # devtools::install_github("rstudio/reticulate") # devtools::install_github("rstudio/tensorflow") #...
# an example of cross-validation to select the degree of a poinomial in linear regression # simulating the regression model set.seed(1) n = 100 x = runif(n) beta0 = 1 beta1 = -1 beta2 = .01 beta3 = 0 y = beta0 + beta1*x + beta2*x^2 + beta3*x^3 + rnorm(n, sd=1/2) plot(y ~ x, pch=21, bg=rgb(0,0,1,.5)) lines(sort(x), b...
/codigos_Horta/cross-validation-example.r
no_license
taisbellini/ml_modelagem
R
false
false
2,452
r
# an example of cross-validation to select the degree of a poinomial in linear regression # simulating the regression model set.seed(1) n = 100 x = runif(n) beta0 = 1 beta1 = -1 beta2 = .01 beta3 = 0 y = beta0 + beta1*x + beta2*x^2 + beta3*x^3 + rnorm(n, sd=1/2) plot(y ~ x, pch=21, bg=rgb(0,0,1,.5)) lines(sort(x), b...
library(shiny) shinyServer(function(input, output) { # a large table, reactive to input$show_vars output$mytable1 = renderDataTable({ data[, input$show_vars, drop = FALSE] } , options = list(bSortClasses = TRUE) ) output$mytable2 <- renderDataTable( {Indata <- switch(input$dataset, "...
/server.R
no_license
MaxPow3r/variabel
R
false
false
406
r
library(shiny) shinyServer(function(input, output) { # a large table, reactive to input$show_vars output$mytable1 = renderDataTable({ data[, input$show_vars, drop = FALSE] } , options = list(bSortClasses = TRUE) ) output$mytable2 <- renderDataTable( {Indata <- switch(input$dataset, "...
library(testthat) library(abind) context("Tests for forestplot inputs") test_that("Check different input formats",{ basic_data <- cbind(0:2,1:3,2:4) rownames(basic_data) <- LETTERS[1:3] expect_silent( abind(basic_data, basic_data + 1, along = 3) %>% forestplot(labeltext = 1:3)) exp...
/tests/testthat/test-inputs.R
no_license
X-FLOWERRR/forestplot
R
false
false
877
r
library(testthat) library(abind) context("Tests for forestplot inputs") test_that("Check different input formats",{ basic_data <- cbind(0:2,1:3,2:4) rownames(basic_data) <- LETTERS[1:3] expect_silent( abind(basic_data, basic_data + 1, along = 3) %>% forestplot(labeltext = 1:3)) exp...
# Loading the data data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, stringsAsFactors = FALSE) head(data) names(data) class(data$Date) class(data$Time) # converting the Date and Time variables to Date/Time classses data$Date <- as.Date(data$Date, format = "%d/%m/%Y") class(data$Date) head...
/Plot4.R
no_license
ZhanpengTang/Exploratory-data-analysis-Assignment-Course-Project-1
R
false
false
2,283
r
# Loading the data data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, stringsAsFactors = FALSE) head(data) names(data) class(data$Date) class(data$Time) # converting the Date and Time variables to Date/Time classses data$Date <- as.Date(data$Date, format = "%d/%m/%Y") class(data$Date) head...
#' DDF for temperature data #' #' @param dt A dataset with certain params as TAS(temperature), DTM(date) and SID(filenames) #' #' @return A dataset with new columns #' @export ddf_temp #' #' @examples ddf_temperature <- function(dt){ dt <- dt[,.(D1 = TAS, D2 = frollsum(TAS,2), D3 = frollsum(TAS,3), D6 = frollsum(TAS,...
/R/ddf_temperature.R
no_license
TikshiKE/rpackassigment
R
false
false
961
r
#' DDF for temperature data #' #' @param dt A dataset with certain params as TAS(temperature), DTM(date) and SID(filenames) #' #' @return A dataset with new columns #' @export ddf_temp #' #' @examples ddf_temperature <- function(dt){ dt <- dt[,.(D1 = TAS, D2 = frollsum(TAS,2), D3 = frollsum(TAS,3), D6 = frollsum(TAS,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudfront_operations.R \name{cloudfront_delete_realtime_log_config} \alias{cloudfront_delete_realtime_log_config} \title{Deletes a real-time log configuration} \usage{ cloudfront_delete_realtime_log_config(Name, ARN) } \arguments{ \item{Name...
/cran/paws.networking/man/cloudfront_delete_realtime_log_config.Rd
permissive
sanchezvivi/paws
R
false
true
1,145
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudfront_operations.R \name{cloudfront_delete_realtime_log_config} \alias{cloudfront_delete_realtime_log_config} \title{Deletes a real-time log configuration} \usage{ cloudfront_delete_realtime_log_config(Name, ARN) } \arguments{ \item{Name...
# get_data.R #' get_data #' #' This function is designed to minimize the number of times the New York Times #' Github data needs to be accessed. #' #' This function reads data either from the New York Times GitHub project or #' the locale data directory for this project. Note that the names of covid #' files are in ...
/functions/get_data.R
no_license
gitHubSlinkman/Texas-Covid
R
false
false
3,319
r
# get_data.R #' get_data #' #' This function is designed to minimize the number of times the New York Times #' Github data needs to be accessed. #' #' This function reads data either from the New York Times GitHub project or #' the locale data directory for this project. Note that the names of covid #' files are in ...