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
testthat::context("ExtractorSms") testthat::setup({ bdpar.Options$reset() bdpar.Options$configureLog() }) testthat::test_that("initialize",{ path <- "testFile.tsms" testthat::expect_silent(ExtractorSms$new(path)) }) testthat::teardown({ bdpar.Options$reset() bdpar.Options$configureLog() })...
/tests/testthat/test_ExtractorSms.R
no_license
cran/bdpar
R
false
false
3,225
r
testthat::context("ExtractorSms") testthat::setup({ bdpar.Options$reset() bdpar.Options$configureLog() }) testthat::test_that("initialize",{ path <- "testFile.tsms" testthat::expect_silent(ExtractorSms$new(path)) }) testthat::teardown({ bdpar.Options$reset() bdpar.Options$configureLog() })...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pobierz_parametry_skalowania.R \name{zmien_na_mplus} \alias{zmien_na_mplus} \title{Zmiana tablicy do formatu funkcji skaluj()} \usage{ zmien_na_mplus(x) } \arguments{ \item{x}{data frame (data table) w formacie takim, jaki zwraca funkcja \cod...
/man/zmien_na_mplus.Rd
permissive
tzoltak/EWDdane
R
false
true
654
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pobierz_parametry_skalowania.R \name{zmien_na_mplus} \alias{zmien_na_mplus} \title{Zmiana tablicy do formatu funkcji skaluj()} \usage{ zmien_na_mplus(x) } \arguments{ \item{x}{data frame (data table) w formacie takim, jaki zwraca funkcja \cod...
# Which method is better at learning random effect? rm(list = ls()) suppressMessages(require(mvtnorm)) # Simulation p = 10 n = 40 raneff = rnorm(p) Sfct = matrix(0.5*rnorm(2*p),p,2) Sigma = Sfct%*%t(Sfct)+diag(0.5,p) avs = t(rmvnorm(n,-3+raneff,Sigma)) y = matrix(rpois(n*p,exp(c(avs))),p,n) # test function test <- fun...
/experiment_learn_re.R
no_license
ericyewang/poisson-log-gaussian-solver
R
false
false
1,156
r
# Which method is better at learning random effect? rm(list = ls()) suppressMessages(require(mvtnorm)) # Simulation p = 10 n = 40 raneff = rnorm(p) Sfct = matrix(0.5*rnorm(2*p),p,2) Sigma = Sfct%*%t(Sfct)+diag(0.5,p) avs = t(rmvnorm(n,-3+raneff,Sigma)) y = matrix(rpois(n*p,exp(c(avs))),p,n) # test function test <- fun...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/request.R \docType{data} \name{Request} \alias{Request} \title{Request class} \format{\preformatted{Class 'R6ClassGenerator' <environment: 0x072cf2e0> - attr(*, "name")= chr "Request_generator" }} \usage{ Request } \description{ Req...
/man/Request.Rd
no_license
jacobxk/jug
R
false
false
353
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/request.R \docType{data} \name{Request} \alias{Request} \title{Request class} \format{\preformatted{Class 'R6ClassGenerator' <environment: 0x072cf2e0> - attr(*, "name")= chr "Request_generator" }} \usage{ Request } \description{ Req...
########################################################################################## # Designed and developed by Tinniam V Ganesh # Date : 14 Apr 2016 # Function: batsmanCumulativeAverageRuns # This function computes and plots the cumulative average runs by a batsman # ############################################...
/R/batsmanCumulativeAverageRuns.R
no_license
bcdunbar/yorkr
R
false
false
1,856
r
########################################################################################## # Designed and developed by Tinniam V Ganesh # Date : 14 Apr 2016 # Function: batsmanCumulativeAverageRuns # This function computes and plots the cumulative average runs by a batsman # ############################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bedToTSS.R \docType{methods} \name{bedToTSS} \alias{bedToTSS} \alias{bedToTSS,tssObject-method} \title{\strong{bedToTSS}} \usage{ bedToTSS(experimentName) \S4method{bedToTSS}{tssObject}(experimentName) } \arguments{ \item{experimentName}{an ...
/man/bedToTSS-methods.Rd
no_license
rpolicastro/TSRchitect
R
false
true
795
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bedToTSS.R \docType{methods} \name{bedToTSS} \alias{bedToTSS} \alias{bedToTSS,tssObject-method} \title{\strong{bedToTSS}} \usage{ bedToTSS(experimentName) \S4method{bedToTSS}{tssObject}(experimentName) } \arguments{ \item{experimentName}{an ...
train <- read.csv("PS03_train.csv") train <- filter(train, !ID %in% c(863, 912)) ggplot(train, aes(x=x, y=y)) + geom_point() BaseLine <- lm(train$y~train$x, data=train) #Slope = 0.263, intercept = -2.7004 plot(train$x, train$y, abline(-2.7004, 0.2603)) #I wanted to plot it to see what it looks like in base R, it do...
/PS03_Malik_Gomez.R
no_license
Middlebury-Statistical-Learning/PS-03
R
false
false
3,723
r
train <- read.csv("PS03_train.csv") train <- filter(train, !ID %in% c(863, 912)) ggplot(train, aes(x=x, y=y)) + geom_point() BaseLine <- lm(train$y~train$x, data=train) #Slope = 0.263, intercept = -2.7004 plot(train$x, train$y, abline(-2.7004, 0.2603)) #I wanted to plot it to see what it looks like in base R, it do...
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/thyroid.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="mae",alpha=0,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/thyroid/thyroid_003.txt',append=TRU...
/Model/EN/AvgRank/thyroid/thyroid_003.R
no_license
leon1003/QSMART
R
false
false
352
r
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/thyroid.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="mae",alpha=0,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/thyroid/thyroid_003.txt',append=TRU...
p2 <- p1 + facet_grid(vs ~ am) p <- p2 + theme_minimal()
/ggplot2/Themes/theme_grey/example14.R
no_license
plotly/ssim_baselines
R
false
false
58
r
p2 <- p1 + facet_grid(vs ~ am) p <- p2 + theme_minimal()
###################### df.denom = read.csv("Data/3. RLS/pophr_public_le_table_denom.csv", header = FALSE) names(df.denom) = c("rss", "age", "count", "year") df.denom$year = substr(df.denom$year, 1, 4) df.num = read.csv("Data/3. RLS/pophr_public_le_table_num.csv", header = FALSE) names(df.num) = c("age", "year", "rss...
/origin.R
no_license
Mengru123/Life_expectancy
R
false
false
3,595
r
###################### df.denom = read.csv("Data/3. RLS/pophr_public_le_table_denom.csv", header = FALSE) names(df.denom) = c("rss", "age", "count", "year") df.denom$year = substr(df.denom$year, 1, 4) df.num = read.csv("Data/3. RLS/pophr_public_le_table_num.csv", header = FALSE) names(df.num) = c("age", "year", "rss...
# load packages library(tidymodels) library(tidyverse) library(lubridate) library(ggplot2) # set seed set.seed(15) # import data loan_train <- read_csv("data/train.csv") loan_test <- read_csv("data/test.csv") # explore outcome variable loan_train %>% ggplot(aes(money_made_inv)) + geom_histogram(bins = 20) lo...
/template-regression.R
no_license
mayazak15/kaggle-regression-loan
R
false
false
2,096
r
# load packages library(tidymodels) library(tidyverse) library(lubridate) library(ggplot2) # set seed set.seed(15) # import data loan_train <- read_csv("data/train.csv") loan_test <- read_csv("data/test.csv") # explore outcome variable loan_train %>% ggplot(aes(money_made_inv)) + geom_histogram(bins = 20) lo...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(tidyverse) library(wesanderson) # Define UI for application that draws a histogram ui <- f...
/app.R
no_license
jflournoy/rw-model-demo
R
false
false
7,849
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(tidyverse) library(wesanderson) # Define UI for application that draws a histogram ui <- f...
#### Data augmentation for audio records #### ### Workflow ### # Input is an 'annotations' file, read in as a data.table with format # _____________________________________________________ # | timeA timeB type colour comment | # |-----------------------------------------------------| # | 7.330357...
/R/mungeKutt.R
permissive
dr-offig/listenR
R
false
false
16,790
r
#### Data augmentation for audio records #### ### Workflow ### # Input is an 'annotations' file, read in as a data.table with format # _____________________________________________________ # | timeA timeB type colour comment | # |-----------------------------------------------------| # | 7.330357...
# # How To Analyze the Results of a Sorting Task # in R with the package DistatisR # herve@utdallas.edu, www.utdallas.edu/~herve # # Library needed # can be loaded with the commands: # install.packages('DistatisR') # followed by # library('DistatisR) # Herve Abdi. November 7, 2012...
/Code/R/Release/DistatisR/demo/demoDistatisRAbdiSortingTask2007.R
no_license
cfhammill/ExPosition-Family
R
false
false
4,774
r
# # How To Analyze the Results of a Sorting Task # in R with the package DistatisR # herve@utdallas.edu, www.utdallas.edu/~herve # # Library needed # can be loaded with the commands: # install.packages('DistatisR') # followed by # library('DistatisR) # Herve Abdi. November 7, 2012...
## Funktion fuer arithmetisches Mittel (wird in Teil a verwendet): ar_mittel <- function(x){ if(!(is.numeric(x))){stop("x muss ein numerischer Vektor sein!")} # Zunaechst wird getestet, ob der eingegebene Parameter x wirklich ein # numerischer Vektor ist. Sonst koennte man das arithmetische Mittel nicht # ber...
/Aufgabe_Teil3_Skript2.R
no_license
feli2001/Gruppenarbeit-wissenschaftliches-Arbeiten
R
false
false
2,546
r
## Funktion fuer arithmetisches Mittel (wird in Teil a verwendet): ar_mittel <- function(x){ if(!(is.numeric(x))){stop("x muss ein numerischer Vektor sein!")} # Zunaechst wird getestet, ob der eingegebene Parameter x wirklich ein # numerischer Vektor ist. Sonst koennte man das arithmetische Mittel nicht # ber...
#@since 2.1.0 = NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。 それぞれのエントリーは参照情報があるため短いです。 十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。 == 2.0.0 以降の変更 === 言語仕様の変更 * キーワード引数のデフォルト値が省略可能になりました。これらの「必須キーワード引数」は呼び出し時に明示的に与えなければなりません。 * 整数や小数のリテラルの末尾に'r','i','ri'と...
/refm/doc/news/2_1_0.rd
permissive
kazto/doctree
R
false
false
15,536
rd
#@since 2.1.0 = NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。 それぞれのエントリーは参照情報があるため短いです。 十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。 == 2.0.0 以降の変更 === 言語仕様の変更 * キーワード引数のデフォルト値が省略可能になりました。これらの「必須キーワード引数」は呼び出し時に明示的に与えなければなりません。 * 整数や小数のリテラルの末尾に'r','i','ri'と...
upload_light_leak_ui<-function(){ require(shiny) shinyUI(fluidPage( titlePanel("Seastar::Upload Instrument QC Light Leak Data"), mainPanel( p( "Select xlsx files from light leak utility testing" ), fileInput("send", "select wave files", accept = c("xlsx", ".xlsx"), ...
/R/upload_light_leak_ui.R
no_license
JARS3N/LLP
R
false
false
483
r
upload_light_leak_ui<-function(){ require(shiny) shinyUI(fluidPage( titlePanel("Seastar::Upload Instrument QC Light Leak Data"), mainPanel( p( "Select xlsx files from light leak utility testing" ), fileInput("send", "select wave files", accept = c("xlsx", ".xlsx"), ...
print('this file was created within RStudio') print('And now it lives on GitHub') print('change 1') print('change 2') print('change 3') print('Change done from GitHub') print ('change done in RStudio while there is another change done in GitHub')<<<<<<< HEAD print ('change done in RStudio while there is another change ...
/Testing.R
no_license
rcossich1/testing
R
false
false
444
r
print('this file was created within RStudio') print('And now it lives on GitHub') print('change 1') print('change 2') print('change 3') print('Change done from GitHub') print ('change done in RStudio while there is another change done in GitHub')<<<<<<< HEAD print ('change done in RStudio while there is another change ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download-data.R \name{get_bus_polygon_centroids} \alias{get_bus_polygon_centroids} \title{get_bus_polygon_centroids} \usage{ get_bus_polygon_centroids(dat) } \arguments{ \item{dat}{An \pkg{osmdata} object representing either \code{key = "bus"...
/man/get_bus_polygon_centroids.Rd
no_license
ATFutures/who-data-archived-report1
R
false
true
585
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download-data.R \name{get_bus_polygon_centroids} \alias{get_bus_polygon_centroids} \title{get_bus_polygon_centroids} \usage{ get_bus_polygon_centroids(dat) } \arguments{ \item{dat}{An \pkg{osmdata} object representing either \code{key = "bus"...
library(imager) file <- "C://Users//user//Desktop//2misnt.jpg" im <- load.image(file) dim(im) im2=grayscale(im) dim(im2) save.image(im2, file="C://Users//user//Desktop//2mnist.jpg")
/mnistTEST/imagerConvert.R
no_license
tertiarycourses/DeepLearningBeginner
R
false
false
201
r
library(imager) file <- "C://Users//user//Desktop//2misnt.jpg" im <- load.image(file) dim(im) im2=grayscale(im) dim(im2) save.image(im2, file="C://Users//user//Desktop//2mnist.jpg")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{make_filename} \alias{make_filename} \title{Make a file name for the given year.} \usage{ make_filename(year) } \arguments{ \item{year}{A character.} } \value{ This function will return the file name in desired pattern ...
/man/make_filename.Rd
no_license
GopalSeshadri/MyFirstPackage
R
false
true
532
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{make_filename} \alias{make_filename} \title{Make a file name for the given year.} \usage{ make_filename(year) } \arguments{ \item{year}{A character.} } \value{ This function will return the file name in desired pattern ...
# read in data and check required columns manual_po_read <- function(po_filepath,search_key="No", remove_invalid=T){ start_row <- 1 while(length(start_row)>0){ po_data <- read.xlsx(po_filepath, startRow = start_row) start_row <- start_row + which(po_data==search_key) } re...
/base/manual_tools.R
no_license
umdocc/Invenage
R
false
false
1,713
r
# read in data and check required columns manual_po_read <- function(po_filepath,search_key="No", remove_invalid=T){ start_row <- 1 while(length(start_row)>0){ po_data <- read.xlsx(po_filepath, startRow = start_row) start_row <- start_row + which(po_data==search_key) } re...
# 함수 # 팩토리얼 함수(fact) fact <- function(x) { prod <- 1 for (i in 1:x) { prod <- prod * i } return(prod) } fact(5) fact(10) # 정수 a ~ b 의 합을 구하는 함수(range_sum) range_sum <- function(a, b) { sum <- 0 for (i in a:b) { sum <- sum + i } return(sum) } range_sum(1,10) # 재귀 함수 fac...
/ch04/04_함수.R
no_license
ckiekim/R-Lecture-2021
R
false
false
800
r
# 함수 # 팩토리얼 함수(fact) fact <- function(x) { prod <- 1 for (i in 1:x) { prod <- prod * i } return(prod) } fact(5) fact(10) # 정수 a ~ b 의 합을 구하는 함수(range_sum) range_sum <- function(a, b) { sum <- 0 for (i in a:b) { sum <- sum + i } return(sum) } range_sum(1,10) # 재귀 함수 fac...
# Exercise 3: working with built-in data sets # Load R's "USPersonalExpenditure" dataset using the `data()` function # This will produce a data frame called `USPersonalExpenditure` data("USPersonalExpenditure") # The variable `USPersonalExpenditure` is now accessible to you. Unfortunately, # it's not a data frame (it...
/exercise-3/exercise.R
permissive
tleung22/ch9-data-frames
R
false
false
1,549
r
# Exercise 3: working with built-in data sets # Load R's "USPersonalExpenditure" dataset using the `data()` function # This will produce a data frame called `USPersonalExpenditure` data("USPersonalExpenditure") # The variable `USPersonalExpenditure` is now accessible to you. Unfortunately, # it's not a data frame (it...
\name{plot.locfit} \alias{plot.locfit} \title{ Plot an object of class locfit. } \usage{ \method{plot}{locfit}(x, xlim, pv, tv, m, mtv=6, band="none", tr=NULL, what = "coef", get.data=FALSE, f3d=(d == 2) && (length(tv) > 0), ...) } \arguments{ \item{x}{ locfit object. } \item{xlim}{ Plotting limits. Eg. \code{xlim=c(...
/man/plot.locfit.Rd
no_license
cran/locfit
R
false
false
3,144
rd
\name{plot.locfit} \alias{plot.locfit} \title{ Plot an object of class locfit. } \usage{ \method{plot}{locfit}(x, xlim, pv, tv, m, mtv=6, band="none", tr=NULL, what = "coef", get.data=FALSE, f3d=(d == 2) && (length(tv) > 0), ...) } \arguments{ \item{x}{ locfit object. } \item{xlim}{ Plotting limits. Eg. \code{xlim=c(...
# ML course script 1 library(tidyverse) library(caret) library(dslabs) data(heights) # define the outcome and predictors y <- heights$sex x <- heights$height # generate training and test sets set.seed(2007) test_index <- createDataPartition(y, times = 1, p = 0.5, list = FALSE) test_set <- heights[test_index, ] train...
/ML_script_2.1.R
no_license
svesiluoma/homework-0
R
false
false
5,253
r
# ML course script 1 library(tidyverse) library(caret) library(dslabs) data(heights) # define the outcome and predictors y <- heights$sex x <- heights$height # generate training and test sets set.seed(2007) test_index <- createDataPartition(y, times = 1, p = 0.5, list = FALSE) test_set <- heights[test_index, ] train...
library(CVThresh) ### Name: cvtype.image ### Title: Generating test dataset index of two-dimensional data for ### cross-validation ### Aliases: cvtype.image ### Keywords: nonparametric ### ** Examples # Two-dimensional 4-fold cross-validation with block size 2*2 out <- cvtype.image(n=c(256,256), cv.bsize=c(2,2), ...
/data/genthat_extracted_code/CVThresh/examples/cvtype.image.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
335
r
library(CVThresh) ### Name: cvtype.image ### Title: Generating test dataset index of two-dimensional data for ### cross-validation ### Aliases: cvtype.image ### Keywords: nonparametric ### ** Examples # Two-dimensional 4-fold cross-validation with block size 2*2 out <- cvtype.image(n=c(256,256), cv.bsize=c(2,2), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xlbox-package.R \docType{package} \name{xlbox-package} \alias{xlbox} \alias{xlbox-package} \title{xlbox: Simple export of standard R objects to xlsx} \description{ Provide fast, simple and customizable xlsx export on top of `openxlsx` package...
/man/xlbox-package.Rd
permissive
vrkrv/xlbox
R
false
true
465
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xlbox-package.R \docType{package} \name{xlbox-package} \alias{xlbox} \alias{xlbox-package} \title{xlbox: Simple export of standard R objects to xlsx} \description{ Provide fast, simple and customizable xlsx export on top of `openxlsx` package...
#Import the Data getwd() setwd("/Users/jrozell/Desktop/R Programming/6_AdvancedVisualization/Homework") mov <- read.csv("Section6-Homework-Data.csv") #Data Exploration nrow(mov) #top rows ncol(mov) #column summaries str(mov) #structure of the dataset #Activate GGPlot2 #install.packages("ggplot2") library(ggplot2) #{...
/R Programming/6_AdvancedVisualization/Homework/Section6-Homework-FillInTheBlanks.R
no_license
jacobrozell/DataScience
R
false
false
2,634
r
#Import the Data getwd() setwd("/Users/jrozell/Desktop/R Programming/6_AdvancedVisualization/Homework") mov <- read.csv("Section6-Homework-Data.csv") #Data Exploration nrow(mov) #top rows ncol(mov) #column summaries str(mov) #structure of the dataset #Activate GGPlot2 #install.packages("ggplot2") library(ggplot2) #{...
# # Copyright(c) 2012-2014 National ICT Australia Limited (NICTA). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
/LV_fit_function/modeler.R
no_license
youph/Lotka-Volterra_censored
R
false
false
61,120
r
# # Copyright(c) 2012-2014 National ICT Australia Limited (NICTA). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.bertini.r \name{is.bertini} \alias{is.bertini} \title{Bertini Object Check} \usage{ is.bertini(x) } \arguments{ \item{x}{object to be tested} } \value{ Vector of logicals. } \description{ Test whether an object is an bertini object. } \exa...
/man/is.bertini.Rd
no_license
playdoh123/algstat
R
false
true
348
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.bertini.r \name{is.bertini} \alias{is.bertini} \title{Bertini Object Check} \usage{ is.bertini(x) } \arguments{ \item{x}{object to be tested} } \value{ Vector of logicals. } \description{ Test whether an object is an bertini object. } \exa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SS_profile.R \name{SS_profile} \alias{SS_profile} \title{Run a likelihood profile in Stock Synthesis.} \usage{ SS_profile(dir = "C:/myfiles/mymodels/myrun/", masterctlfile = "control.ss_new", newctlfile = "control_modified.ss", linenum = ...
/man/SS_profile.Rd
no_license
Andrea-Havron/r4ss
R
false
true
5,997
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SS_profile.R \name{SS_profile} \alias{SS_profile} \title{Run a likelihood profile in Stock Synthesis.} \usage{ SS_profile(dir = "C:/myfiles/mymodels/myrun/", masterctlfile = "control.ss_new", newctlfile = "control_modified.ss", linenum = ...
shinyUI( fluidPage( tags$head( tags$link(rel = "stylesheet", type = "text/css", href = "css/bootstrap.cosmo.min.css"), tags$link(rel = "stylesheet", type = "text/css", href = "css/custom.css") ), # Tilte fluidRow( column(width = 6, offset = 0, includeMarkdown("mds/intro....
/kmeans-images/ui.R
no_license
danromuald/shiny-apps
R
false
false
1,601
r
shinyUI( fluidPage( tags$head( tags$link(rel = "stylesheet", type = "text/css", href = "css/bootstrap.cosmo.min.css"), tags$link(rel = "stylesheet", type = "text/css", href = "css/custom.css") ), # Tilte fluidRow( column(width = 6, offset = 0, includeMarkdown("mds/intro....
#Building Data Visualization Tools #week 1 #Welcome #Basic plotting with ggplot2 #introduction library(ggplot2) library(faraway) library(titanic) #Use the following conventions to initialize a ggplot object: iris <- iris nepali <- nepali # install.packages("titanic") # If you don't have the package insta...
/Building Data Visualization tools.R
no_license
Fr3ddy1/R_capstone
R
false
false
45,097
r
#Building Data Visualization Tools #week 1 #Welcome #Basic plotting with ggplot2 #introduction library(ggplot2) library(faraway) library(titanic) #Use the following conventions to initialize a ggplot object: iris <- iris nepali <- nepali # install.packages("titanic") # If you don't have the package insta...
# Builds a GloVe model using text2vec package. On a Windows VM with 16 GB RAM # and 8 vCPUs, building the model using the settings shown below took about # 3-4 minutes, if I recall correctly. library(readr) library(tm) library(text2vec) sampleCorpus <- function(corpus_name, percent) { totalLines <- length(corpus_na...
/glove/build_GloVe_model.R
no_license
jharris0/next-word
R
false
false
4,110
r
# Builds a GloVe model using text2vec package. On a Windows VM with 16 GB RAM # and 8 vCPUs, building the model using the settings shown below took about # 3-4 minutes, if I recall correctly. library(readr) library(tm) library(text2vec) sampleCorpus <- function(corpus_name, percent) { totalLines <- length(corpus_na...
# Exploratory Data Analysis - course project 2 - Q. #5 # set work directory and reading in data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Load ggplot2 library require(ggplot2) #5.How have emissions from motor vehicle sources changed from 1999-2008 in Baltimor...
/plot5_wk4.R
no_license
sharonl5/ExploratoryDataAnalysis
R
false
false
1,039
r
# Exploratory Data Analysis - course project 2 - Q. #5 # set work directory and reading in data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Load ggplot2 library require(ggplot2) #5.How have emissions from motor vehicle sources changed from 1999-2008 in Baltimor...
library(BMAmevt) ### Name: prior.pb ### Title: Prior parameter distribution for the Pairwise Beta model ### Aliases: prior.pb ### ** Examples ## Not run: prior.pb(type="r", n=5 ,Hpar=get("pb.Hpar"), dimData=3 ) ## Not run: prior.pb(type="d", par=rep(1,choose(4,2), Hpar=get("pb.Hpar"), dimData=4 )
/data/genthat_extracted_code/BMAmevt/examples/prior.pb.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
307
r
library(BMAmevt) ### Name: prior.pb ### Title: Prior parameter distribution for the Pairwise Beta model ### Aliases: prior.pb ### ** Examples ## Not run: prior.pb(type="r", n=5 ,Hpar=get("pb.Hpar"), dimData=3 ) ## Not run: prior.pb(type="d", par=rep(1,choose(4,2), Hpar=get("pb.Hpar"), dimData=4 )
\name{me.weighted} \alias{me.weighted} \title{EM algorithm with weights starting with M-step for parameterized MVN mixture models} \description{ Implements the EM algorithm for fitting MVN mixture models parameterized by eigenvalue decomposition, when observations have weights, starting with the maximization step. } ...
/man/me.weighted.Rd
no_license
Japrin/mclust
R
false
false
4,653
rd
\name{me.weighted} \alias{me.weighted} \title{EM algorithm with weights starting with M-step for parameterized MVN mixture models} \description{ Implements the EM algorithm for fitting MVN mixture models parameterized by eigenvalue decomposition, when observations have weights, starting with the maximization step. } ...
source("https://raw.githubusercontent.com/Shicheng-Guo/GscRbasement/master/GscTools.R") library("meta") library("metafor") library("survival") library("survminer") Symbol2ENSG<-function(Symbol){ db<-read.table("https://raw.githubusercontent.com/Shicheng-Guo/AnnotationDatabase/master/ENSG.ENST.ENSP.Symbol....
/mcri/BRCA_OS_HR.R
no_license
Shicheng-Guo/GscRbasement
R
false
false
8,782
r
source("https://raw.githubusercontent.com/Shicheng-Guo/GscRbasement/master/GscTools.R") library("meta") library("metafor") library("survival") library("survminer") Symbol2ENSG<-function(Symbol){ db<-read.table("https://raw.githubusercontent.com/Shicheng-Guo/AnnotationDatabase/master/ENSG.ENST.ENSP.Symbol....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{documentdata} \alias{documentdata} \title{document data} \format{ A data frame with 131 rows and 6 variables: \describe{ \item{\code{EHRAF_NAME}}{character eHRAF culture name.} \item{\code{document_ID}}{character e...
/man/documentdata.Rd
no_license
zhgarfield/violationsandpunishmentsdata
R
false
true
856
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{documentdata} \alias{documentdata} \title{document data} \format{ A data frame with 131 rows and 6 variables: \describe{ \item{\code{EHRAF_NAME}}{character eHRAF culture name.} \item{\code{document_ID}}{character e...
#### SETUP ##################################################################### cat("\014"); rm(list=ls()) setwd(here::here()) source("code/precisionData.R") nm <- "blackwell_assessment_2016" df <- read.csv(paste0("data/raw_ageing/",nm,".csv")) str(df) #### XXXXXX ##################################################...
/data/raw_ageing/blackwell_assessment_2016.R
no_license
Otoliths/AgePrecision
R
false
false
5,631
r
#### SETUP ##################################################################### cat("\014"); rm(list=ls()) setwd(here::here()) source("code/precisionData.R") nm <- "blackwell_assessment_2016" df <- read.csv(paste0("data/raw_ageing/",nm,".csv")) str(df) #### XXXXXX ##################################################...
Part 1 Plot the 30-day mortality rates for heart attack (outcome.R) # install.packages("data.table") library("data.table") # Reading in data outcome <- data.table::fread('outcome-of-care-measures.csv') outcome[, (11) := lapply(.SD, as.numeric), .SDcols = (11)] outcome[, lapply(.SD , hist ...
/Project.R
no_license
malek-Rproj/datasciencecoursera
R
false
false
4,949
r
Part 1 Plot the 30-day mortality rates for heart attack (outcome.R) # install.packages("data.table") library("data.table") # Reading in data outcome <- data.table::fread('outcome-of-care-measures.csv') outcome[, (11) := lapply(.SD, as.numeric), .SDcols = (11)] outcome[, lapply(.SD , hist ...
require(abind) SampleIncidenceArray <- R6Class( inherit= AbstractIncidenceArray, public = list( initialize = function(data,dims = dim(data),dnames,dimData,metaData){ private$.arr <- array(data,dims) if(!missing(dnames)){ dimnames(private$.arr) <- dnames private$.dnames <- dnames ...
/demo/AbstractIncidenceArray.R
no_license
cran/ForecastFramework
R
false
false
1,680
r
require(abind) SampleIncidenceArray <- R6Class( inherit= AbstractIncidenceArray, public = list( initialize = function(data,dims = dim(data),dnames,dimData,metaData){ private$.arr <- array(data,dims) if(!missing(dnames)){ dimnames(private$.arr) <- dnames private$.dnames <- dnames ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/robinhoodR6.R \name{rh_getInstrumentURL} \alias{rh_getInstrumentURL} \title{Get instrument url.} \usage{ rh_getInstrumentURL(ticker, account) } \arguments{ \item{ticker}{equity ticker symbol. Must be capitalized.} \item{account}{Initialized ...
/man/rh_getInstrumentURL.Rd
permissive
tpopenfoose/robinhoodQF
R
false
true
471
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/robinhoodR6.R \name{rh_getInstrumentURL} \alias{rh_getInstrumentURL} \title{Get instrument url.} \usage{ rh_getInstrumentURL(ticker, account) } \arguments{ \item{ticker}{equity ticker symbol. Must be capitalized.} \item{account}{Initialized ...
## Week 2 Lab Solution ## Robert J. Richmond ## MFE Programming workshop 2015 library(lubridate) library(xts) ## To read in the data I copied it into a file using excel ## saved it to a csv and then imported it datain <- read.csv("week2data.csv") ## just get a single subset of the data, the last row dataset <- da...
/MFEProgramming/Solution2.R
no_license
rrichmond/rrichmond.github.io
R
false
false
2,334
r
## Week 2 Lab Solution ## Robert J. Richmond ## MFE Programming workshop 2015 library(lubridate) library(xts) ## To read in the data I copied it into a file using excel ## saved it to a csv and then imported it datain <- read.csv("week2data.csv") ## just get a single subset of the data, the last row dataset <- da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make_random_clifford_attractor.R \name{make_random_clifford_attractor} \alias{make_random_clifford_attractor} \title{Make a crazy Clifford attractor plot} \usage{ make_random_clifford_attractor(point_color = "black", n_points = 1e+07, point...
/man/make_random_clifford_attractor.Rd
permissive
jimtheflash/arrrt
R
false
true
610
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make_random_clifford_attractor.R \name{make_random_clifford_attractor} \alias{make_random_clifford_attractor} \title{Make a crazy Clifford attractor plot} \usage{ make_random_clifford_attractor(point_color = "black", n_points = 1e+07, point...
# setwd('/home/zy/my_git/scRef/Benchmark/cross_validation/train1_test4') # source('./Cross_Validation.R') # source('./method_functions.R') # source('./evaluate.R') # # path.input <- '/home/zy/scRef/' # path.output <- '/home/zy/scRef/cross_validation/train1_test4/' setwd('/home/drizzle_zhang/my_git/scRef/Benchmark/cro...
/scRef/codes/Benchmark/cross_validation/train1_test4_add_noise/main.R
permissive
Drizzle-Zhang/bioinformatics
R
false
false
11,283
r
# setwd('/home/zy/my_git/scRef/Benchmark/cross_validation/train1_test4') # source('./Cross_Validation.R') # source('./method_functions.R') # source('./evaluate.R') # # path.input <- '/home/zy/scRef/' # path.output <- '/home/zy/scRef/cross_validation/train1_test4/' setwd('/home/drizzle_zhang/my_git/scRef/Benchmark/cro...
library(tidyverse) library(margins) library(mfx) library(stargazer) library(PairedData) library(bife) library(margins) # filtered_df <- All_coded_423 %>% filter(News ==0, Irrelevant ==0) filtered_df hist(filtered_df$day, breaks = "days") exclude_protest <- filtered_df %>% filter(day < as.Date("2012-8-15") | d...
/Regression.R
no_license
14XZ/Weibo-Data
R
false
false
5,329
r
library(tidyverse) library(margins) library(mfx) library(stargazer) library(PairedData) library(bife) library(margins) # filtered_df <- All_coded_423 %>% filter(News ==0, Irrelevant ==0) filtered_df hist(filtered_df$day, breaks = "days") exclude_protest <- filtered_df %>% filter(day < as.Date("2012-8-15") | d...
\name{iWell} \alias{iWell} \title{image-based HTS Well object} \usage{ iWell(x, y, d, c, n = 4, angle = 0, type = 1) } \arguments{ \item{x}{A vector containing X coordinate of each plot unit.} \item{y}{A vector containing Y coordinate of each plot unit.} \item{d}{A vector containing diameter of each plot ...
/man/iWell.Rd
no_license
cran/iScreen
R
false
false
858
rd
\name{iWell} \alias{iWell} \title{image-based HTS Well object} \usage{ iWell(x, y, d, c, n = 4, angle = 0, type = 1) } \arguments{ \item{x}{A vector containing X coordinate of each plot unit.} \item{y}{A vector containing Y coordinate of each plot unit.} \item{d}{A vector containing diameter of each plot ...
#' @title Find two differening groups in survival data #' #' @description Tests different cutoffs on a continuous variable #' and calculates log-rank tests / survival differences #' #' @param data vector with value to analyze #' @param srv Surv object with the corresponding data #' @param delta proportion in which ...
/R/findOptCutoff.R
no_license
mknoll/dataAnalysisMisc
R
false
false
4,010
r
#' @title Find two differening groups in survival data #' #' @description Tests different cutoffs on a continuous variable #' and calculates log-rank tests / survival differences #' #' @param data vector with value to analyze #' @param srv Surv object with the corresponding data #' @param delta proportion in which ...
#data <- read.csv("D:/Semester 4/Applied Machine Learning/Project 2/online news popularity/OnlineNewsPopularity/OnlineNewsPopularity.csv") #data$Class[data$shares >=1400]<-"Popular" #data$Class[data$shares <1400]<-"NotPopular" #Reducing the data to make the processing faster #sample<- floor(0.25*nrow(data)) #mytra...
/data2_Project2 R code Harsh.R
no_license
Harsh161530/R-code-files
R
false
false
8,469
r
#data <- read.csv("D:/Semester 4/Applied Machine Learning/Project 2/online news popularity/OnlineNewsPopularity/OnlineNewsPopularity.csv") #data$Class[data$shares >=1400]<-"Popular" #data$Class[data$shares <1400]<-"NotPopular" #Reducing the data to make the processing faster #sample<- floor(0.25*nrow(data)) #mytra...
library(dplyr) library(lubridate) library(readr) # Read in the "individual household electric power consumption" dataset from the # UC Irvine Machine Learning Repository. power <- read_delim("household_power_consumption.txt", ";", col_types = cols( col_date("%d/%m/%Y"), ...
/plot2.R
no_license
flother/ExData_Plotting1
R
false
false
1,142
r
library(dplyr) library(lubridate) library(readr) # Read in the "individual household electric power consumption" dataset from the # UC Irvine Machine Learning Repository. power <- read_delim("household_power_consumption.txt", ";", col_types = cols( col_date("%d/%m/%Y"), ...
#Data set used for this plot #https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip setwd("F:\\coursera\\expdataanalysis\\gitclone\\ExData_Plotting1") cp1 <- read.table("household_power_consumption.txt",header=TRUE,na.strings="?",sep=";") cp1a <- cp1[as.Date(cp1$Date,format="%d/%m/%Y")>...
/Plot2.R
no_license
MohanKatta/ExData_Plotting1
R
false
false
931
r
#Data set used for this plot #https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip setwd("F:\\coursera\\expdataanalysis\\gitclone\\ExData_Plotting1") cp1 <- read.table("household_power_consumption.txt",header=TRUE,na.strings="?",sep=";") cp1a <- cp1[as.Date(cp1$Date,format="%d/%m/%Y")>...
source("Models_paper.R") source("AuxillaryFunctions.R") source("SLIDEfunctions.R") # Necessary functions for JIVE library(r.jive) source("JIVEfunctions.R") # Necessary functions for GFA library(CCAGFA) source("GFAfunctions.R") Nrep=100 library(doParallel) library(doRNG) nworkers <- detectCores() cl <- makePSOCKcluster...
/Sim_d3_perturb.R
no_license
irinagain/slide-paper
R
false
false
2,937
r
source("Models_paper.R") source("AuxillaryFunctions.R") source("SLIDEfunctions.R") # Necessary functions for JIVE library(r.jive) source("JIVEfunctions.R") # Necessary functions for GFA library(CCAGFA) source("GFAfunctions.R") Nrep=100 library(doParallel) library(doRNG) nworkers <- detectCores() cl <- makePSOCKcluster...
library(rationalfun) ### Name: as.character.rationalfun ### Title: Convert object to character ### Aliases: as.character.rationalfun ### ** Examples r <- rationalfun(c(1, 1), c(3, 2, 1)) as.character(r)
/data/genthat_extracted_code/rationalfun/examples/as.character.rationalfun.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
210
r
library(rationalfun) ### Name: as.character.rationalfun ### Title: Convert object to character ### Aliases: as.character.rationalfun ### ** Examples r <- rationalfun(c(1, 1), c(3, 2, 1)) as.character(r)
#' @title Function for plotting SST chloropleth map for Puget Sound #' @author Stevie Walker, steviewalker99@gmail.com #' July 2020 #' @details INPUT: .csv file of final downscaled temperature and salinity projections #' @details OUTPUT: Chloropleth maps of SST for long-term and short-term projections #' @details used ...
/make_SST_choropleth.R
no_license
steviewalker/Puget_Sound_Downscaling
R
false
false
6,241
r
#' @title Function for plotting SST chloropleth map for Puget Sound #' @author Stevie Walker, steviewalker99@gmail.com #' July 2020 #' @details INPUT: .csv file of final downscaled temperature and salinity projections #' @details OUTPUT: Chloropleth maps of SST for long-term and short-term projections #' @details used ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/groups.R \name{preparePreMadeGroupForSelection} \alias{preparePreMadeGroupForSelection} \title{Prepare list of pre-made groups for a selectize element} \usage{ preparePreMadeGroupForSelection(groups) } \arguments{ \item{groups}{List of list o...
/man/preparePreMadeGroupForSelection.Rd
no_license
zhangyupisa/psichomics
R
false
true
442
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/groups.R \name{preparePreMadeGroupForSelection} \alias{preparePreMadeGroupForSelection} \title{Prepare list of pre-made groups for a selectize element} \usage{ preparePreMadeGroupForSelection(groups) } \arguments{ \item{groups}{List of list o...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 50715 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 37667 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 37667 c c Input Parameter (command line, ...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Kronegger-Pfandler-Pichler/dungeon/dungeon_i10-m10-u10-v0.pddl_planlen=87/dungeon_i10-m10-u10-v0.pddl_planlen=87.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
71,210
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 50715 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 37667 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 37667 c c Input Parameter (command line, ...
\name{mongo.gridfs.find} \alias{mongo.gridfs.find} \title{Find a GridFS file} \usage{ mongo.gridfs.find(gridfs, query) } \arguments{ \item{gridfs}{A (\link{mongo.gridfs}) object.} \item{query}{(string) The name of the GridFS file to locate. This parameter may also be a \link{mongo.bson} query object and is ...
/man/mongo.gridfs.find.Rd
no_license
StefanoSpada/rmongodb
R
false
false
1,446
rd
\name{mongo.gridfs.find} \alias{mongo.gridfs.find} \title{Find a GridFS file} \usage{ mongo.gridfs.find(gridfs, query) } \arguments{ \item{gridfs}{A (\link{mongo.gridfs}) object.} \item{query}{(string) The name of the GridFS file to locate. This parameter may also be a \link{mongo.bson} query object and is ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compute_functions.R \name{httpsHealthChecks.list} \alias{httpsHealthChecks.list} \title{Retrieves the list of HttpsHealthCheck resources available to the specified project.} \usage{ httpsHealthChecks.list(project, filter = NULL, maxResults = ...
/googlecomputev1.auto/man/httpsHealthChecks.list.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,431
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compute_functions.R \name{httpsHealthChecks.list} \alias{httpsHealthChecks.list} \title{Retrieves the list of HttpsHealthCheck resources available to the specified project.} \usage{ httpsHealthChecks.list(project, filter = NULL, maxResults = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/breadwheat.R \docType{data} \name{breadwheat} \alias{breadwheat} \title{Preferred bread wheat varieties} \format{ A data frame with 493 records and 19 variables: \describe{ \item{\code{variety_a}}{The name of variety A in the comparison.}...
/man/breadwheat.Rd
permissive
AgrDataSci/gosset
R
false
true
2,590
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/breadwheat.R \docType{data} \name{breadwheat} \alias{breadwheat} \title{Preferred bread wheat varieties} \format{ A data frame with 493 records and 19 variables: \describe{ \item{\code{variety_a}}{The name of variety A in the comparison.}...
library(MHTmult) ### Name: gbonf.cv ### Title: Critical Value for the generalized Bonferroni Procedure ### Controlling k-FWER ### Aliases: gbonf.cv ### ** Examples p <- c(0.031,0.023,0.029,0.005,0.031,0.000,0.874,0.399,0.293,0.077) gbonf.cv(m=length(p), k=2)
/data/genthat_extracted_code/MHTmult/examples/gbonf.cv.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
268
r
library(MHTmult) ### Name: gbonf.cv ### Title: Critical Value for the generalized Bonferroni Procedure ### Controlling k-FWER ### Aliases: gbonf.cv ### ** Examples p <- c(0.031,0.023,0.029,0.005,0.031,0.000,0.874,0.399,0.293,0.077) gbonf.cv(m=length(p), k=2)
context("Supervised training") # test_that("Training of a classification model", { # data("train_sentences") # data("test_sentences") # # # prepare data # tmp_file_model <- tempfile() # # train_labels <- paste0("__label__", train_sentences[, "class.text"]) # train_texts <- tolower(train_sentences[, "text"])...
/tests/testthat/test-supervised.R
permissive
afcarl/FastRText
R
false
false
1,901
r
context("Supervised training") # test_that("Training of a classification model", { # data("train_sentences") # data("test_sentences") # # # prepare data # tmp_file_model <- tempfile() # # train_labels <- paste0("__label__", train_sentences[, "class.text"]) # train_texts <- tolower(train_sentences[, "text"])...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outliersMD.R \name{outliersMD} \alias{outliersMD} \title{Mahalanobis distance to detect bivariate outliers} \usage{ outliersMD(x, y, alpha = 0.001) } \arguments{ \item{x}{Numeric vector} \item{y}{Numeric vector} \item{alpha}{Critical \code{...
/man/outliersMD.Rd
no_license
SaeedR1987/nipnTK
R
false
true
723
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outliersMD.R \name{outliersMD} \alias{outliersMD} \title{Mahalanobis distance to detect bivariate outliers} \usage{ outliersMD(x, y, alpha = 0.001) } \arguments{ \item{x}{Numeric vector} \item{y}{Numeric vector} \item{alpha}{Critical \code{...
## Title: "8.1 Assignment: Fit a Logistic Regression Model to the Thoracic Surgery Binary Dataset" ## Author: TAI NGO ## Date: February 09, 2020 library(foreign) myData <- read.arff("ThoraricSurgery.arff") # Part a patientSurvived <- glm(formula = Risk1Yr ~ PRE4 + PRE5 + PRE6 + PRE7 + PRE8 + PRE9 + PRE10 + PRE11 + ...
/520 Fit logistic regression model.R
no_license
tngo012/Academy
R
false
false
2,922
r
## Title: "8.1 Assignment: Fit a Logistic Regression Model to the Thoracic Surgery Binary Dataset" ## Author: TAI NGO ## Date: February 09, 2020 library(foreign) myData <- read.arff("ThoraricSurgery.arff") # Part a patientSurvived <- glm(formula = Risk1Yr ~ PRE4 + PRE5 + PRE6 + PRE7 + PRE8 + PRE9 + PRE10 + PRE11 + ...
crime <- read.csv("../data/NYPD.csv") # Only in Manhattan crime.m <- subset(crime, crime$BORO_NM=="MANHATTAN") # Only Felony Crime crime.m.f <- subset(crime.m, crime.m$LAW_CAT_CD=="FELONY") library(leaflet) leaflet(crime.m.f) %>% addTiles() %>% addCircleMarkers(lng = ~Longitude, lat = ~Latitude, radius = 0.1) ## ...
/doc/lib/crime in manhattan.R
no_license
TZstatsADS/Fall2018-Project2-sec1proj2_grp1
R
false
false
2,556
r
crime <- read.csv("../data/NYPD.csv") # Only in Manhattan crime.m <- subset(crime, crime$BORO_NM=="MANHATTAN") # Only Felony Crime crime.m.f <- subset(crime.m, crime.m$LAW_CAT_CD=="FELONY") library(leaflet) leaflet(crime.m.f) %>% addTiles() %>% addCircleMarkers(lng = ~Longitude, lat = ~Latitude, radius = 0.1) ## ...
#1GB max upload size options(shiny.maxRequestSize = 1000 * 1024 ^ 2) internetConnection <- suppressWarnings(Biobase::testBioCConnection()) # Define server logic required to draw a histogram shinyServer(function(input, output, session) { #-----------------------------------------------------------------------------...
/inst/shiny/server.R
permissive
zhangyuqing/singleCellTK
R
false
false
112,237
r
#1GB max upload size options(shiny.maxRequestSize = 1000 * 1024 ^ 2) internetConnection <- suppressWarnings(Biobase::testBioCConnection()) # Define server logic required to draw a histogram shinyServer(function(input, output, session) { #-----------------------------------------------------------------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/position-fill.r, R/position-stack.r \name{a_position_fill} \alias{a_position_fill} \alias{a_position_stack} \title{Stack overlapping objects on top of one another.} \usage{ a_position_fill() a_position_stack() } \description{ \code{a_positio...
/man/a_position_stack.Rd
no_license
vivekktiwari/animint2
R
false
true
1,975
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/position-fill.r, R/position-stack.r \name{a_position_fill} \alias{a_position_fill} \alias{a_position_stack} \title{Stack overlapping objects on top of one another.} \usage{ a_position_fill() a_position_stack() } \description{ \code{a_positio...
\name{IDI.INF.GRAPH} \alias{IDI.INF.GRAPH} \title{Function to display IDI and other measures in a graph } \description{This function generates a plot to graphically display IDI, continuous NRI, and median improvement } \usage{ IDI.INF.GRAPH(x, main = NULL, xlab = NULL, ylab = NULL, cex.main = NULL, cex.lab = NULL, ....
/man/IDI.INF.GRAPH.Rd
no_license
cran/survIDINRI
R
false
false
861
rd
\name{IDI.INF.GRAPH} \alias{IDI.INF.GRAPH} \title{Function to display IDI and other measures in a graph } \description{This function generates a plot to graphically display IDI, continuous NRI, and median improvement } \usage{ IDI.INF.GRAPH(x, main = NULL, xlab = NULL, ylab = NULL, cex.main = NULL, cex.lab = NULL, ....
## ----knitropts,echo=FALSE,message=FALSE--------------------------------------- if (require("knitr")) opts_chunk$set(fig.width=5,fig.height=5,tidy=FALSE,warning=FALSE,error=TRUE) ## ----setup,results="hide",echo=FALSE,message=FALSE---------------------------- library(Hmisc) ## ----emdbook,message=FALSE--------------...
/inst/doc/mle2.R
no_license
cran/bbmle
R
false
false
9,158
r
## ----knitropts,echo=FALSE,message=FALSE--------------------------------------- if (require("knitr")) opts_chunk$set(fig.width=5,fig.height=5,tidy=FALSE,warning=FALSE,error=TRUE) ## ----setup,results="hide",echo=FALSE,message=FALSE---------------------------- library(Hmisc) ## ----emdbook,message=FALSE--------------...
E6TvsdF40.R GISS ModelE Lat-Lon Atmosphere Model, 1850 atm./ocean with VSD tracers E6F40 is based on LLF40 with updated aerosol/ozone input files for CMIP6 simulations Lat-lon: 2x2.5 degree horizontal resolution F40: 40 vertical layers with standard hybrid coordinate, top at .1 mb Atmospheric composition for year 185...
/templates/E6TvsdF40.R
no_license
SeregaOsipov/NASA-GISS-ModelE
R
false
false
5,306
r
E6TvsdF40.R GISS ModelE Lat-Lon Atmosphere Model, 1850 atm./ocean with VSD tracers E6F40 is based on LLF40 with updated aerosol/ozone input files for CMIP6 simulations Lat-lon: 2x2.5 degree horizontal resolution F40: 40 vertical layers with standard hybrid coordinate, top at .1 mb Atmospheric composition for year 185...
#' @importFrom magrittr "%>%" NULL #' Scrape advertisement #' #' Collects a set of features from a given advertisement id #' #' @param ad_id The ID of a marktplaats advertisement #' @param wait_time To prevent hammering markplaats with rapid requests, you can #' specify a delay after collecting the data #' @param nu...
/R/scrape_advertisement.R
permissive
DannyBannink/mpscraper
R
false
false
6,651
r
#' @importFrom magrittr "%>%" NULL #' Scrape advertisement #' #' Collects a set of features from a given advertisement id #' #' @param ad_id The ID of a marktplaats advertisement #' @param wait_time To prevent hammering markplaats with rapid requests, you can #' specify a delay after collecting the data #' @param nu...
\name{splines2d} \alias{splines2d} \title{ Spline-based dependency measure for pairs of variables } \description{ The function calculates a smoothing spline-based measure for quantifying functional dependencies between two variables. The function \code{gam} from package \pkg{mgcv} is used. } \usage{ splines2d(x, y = ...
/man/splines2d.Rd
no_license
cran/mbgraphic
R
false
false
3,196
rd
\name{splines2d} \alias{splines2d} \title{ Spline-based dependency measure for pairs of variables } \description{ The function calculates a smoothing spline-based measure for quantifying functional dependencies between two variables. The function \code{gam} from package \pkg{mgcv} is used. } \usage{ splines2d(x, y = ...
##Lab2 ##Sept 26, 2016 ##Marco Pompilj ##Prof. Merchant (QSS 30.05) #invoke necessary packages library(dplyr) library(readr) library(tidyr) #Bring in data from IPUMS and filter out years before 1960 and states Hawaii and Alaska a <- read_csv('lab2.csv') %>% filter(!(YEAR < 1960 & STATEFIP %in% c(2,15))) #Character ...
/lab2a.R
no_license
audiable/US_Hist_Data
R
false
false
1,630
r
##Lab2 ##Sept 26, 2016 ##Marco Pompilj ##Prof. Merchant (QSS 30.05) #invoke necessary packages library(dplyr) library(readr) library(tidyr) #Bring in data from IPUMS and filter out years before 1960 and states Hawaii and Alaska a <- read_csv('lab2.csv') %>% filter(!(YEAR < 1960 & STATEFIP %in% c(2,15))) #Character ...
## makeCacheMatrix is a function which takes a Matrix input and returns list of ## four different functions. makeCacheMatrix <- function(x = matrix()) { inverse <- NULL #begin with setting the object inverse equal to NULL set <- function(y) { x<<-y #this function could be used...
/cachematrix.R
no_license
aliasgharshujai/ProgrammingAssignment2
R
false
false
2,391
r
## makeCacheMatrix is a function which takes a Matrix input and returns list of ## four different functions. makeCacheMatrix <- function(x = matrix()) { inverse <- NULL #begin with setting the object inverse equal to NULL set <- function(y) { x<<-y #this function could be used...
require(ggplot2) require(plyr) # load NEI datasource NEI <- readRDS("summarySCC_PM25.rds") # filtering Baltimore City dataset baltimore <- subset(NEI, fips == "24510", select=c("year", "type", "Emissions")) # source type pm0 <- ddply(baltimore, .(year, type), summarize, Emissions=sum(Emissions)) pm0 <- transform(pm0...
/plot3.R
no_license
RidzuanMo/EDA-Project-2
R
false
false
622
r
require(ggplot2) require(plyr) # load NEI datasource NEI <- readRDS("summarySCC_PM25.rds") # filtering Baltimore City dataset baltimore <- subset(NEI, fips == "24510", select=c("year", "type", "Emissions")) # source type pm0 <- ddply(baltimore, .(year, type), summarize, Emissions=sum(Emissions)) pm0 <- transform(pm0...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/general_graphics.R \name{PlotPartialCorrConfounders} \alias{PlotPartialCorrConfounders} \title{Function to perform and plot partial correlations between a selected feature, the outcome, and selected confounders. NOTE: All metadata must be num...
/man/PlotPartialCorrConfounders.Rd
no_license
joey10086/MicrobiomeAnalystR
R
false
true
1,743
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/general_graphics.R \name{PlotPartialCorrConfounders} \alias{PlotPartialCorrConfounders} \title{Function to perform and plot partial correlations between a selected feature, the outcome, and selected confounders. NOTE: All metadata must be num...
#internal kills the cartesian elements. .theme_nocart <- function(){ theme( #panel.background = element_blank(), panel.border = element_blank(), panel.grid.major = element_blank(), panel.grid.minor = element_blank(), axis.ticks = element_blank(), ...
/R/theme-defaults.R
no_license
michbur/ggtern
R
false
false
13,767
r
#internal kills the cartesian elements. .theme_nocart <- function(){ theme( #panel.background = element_blank(), panel.border = element_blank(), panel.grid.major = element_blank(), panel.grid.minor = element_blank(), axis.ticks = element_blank(), ...
library(tidyverse) library(openxlsx) ### File Parameters file1_params = list( file_name='file1.xlsx', sheet=1, startRow=1, na.strings="", key_column='key_column', compare_columns=c('key_column', 'dimension_1', 'dimension_2', 'dimension_3') ) file2_params = list( file_name='file2.xlsx', sheet=1, sta...
/app/compare_files.R
no_license
ccollins12000/r_file_compare
R
false
false
1,617
r
library(tidyverse) library(openxlsx) ### File Parameters file1_params = list( file_name='file1.xlsx', sheet=1, startRow=1, na.strings="", key_column='key_column', compare_columns=c('key_column', 'dimension_1', 'dimension_2', 'dimension_3') ) file2_params = list( file_name='file2.xlsx', sheet=1, sta...
get_csv_from_folder <- function(folder.name){ setwd(folder.name) files = list.files(pattern="*.csv") #files <- files[c(1:3)] file.data.list <- lapply(files, function(x) read.table(x, header = F, fill = T, sep=",", quote ="\"", skip = 1)) #widget.files = do.call(rbind, lapply(files, function(x) read.table(x, ...
/get_csv_from_folder.R
no_license
nirsisense/ml
R
false
false
1,293
r
get_csv_from_folder <- function(folder.name){ setwd(folder.name) files = list.files(pattern="*.csv") #files <- files[c(1:3)] file.data.list <- lapply(files, function(x) read.table(x, header = F, fill = T, sep=",", quote ="\"", skip = 1)) #widget.files = do.call(rbind, lapply(files, function(x) read.table(x, ...
library(seqinr) ### Name: aaa ### Title: Converts amino-acid one-letter code into the three-letter one ### Aliases: aaa ### Keywords: utilities ### ** Examples # # Show all possible input values: # a() # # Convert them in one letter-code: # aaa(a()) # # Check consistency of results: ...
/data/genthat_extracted_code/seqinr/examples/aaa.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
476
r
library(seqinr) ### Name: aaa ### Title: Converts amino-acid one-letter code into the three-letter one ### Aliases: aaa ### Keywords: utilities ### ** Examples # # Show all possible input values: # a() # # Convert them in one letter-code: # aaa(a()) # # Check consistency of results: ...
# Stud 1 ---- nicenames <- function(x, pattern, replacement,...){ for(i in 1:length(pattern)){ x <- gsub(pattern[i], replacement[i], x, ignore.case = TRUE,...) } x } library(dplyr) testSet <- tbl_df(read.table("GettingNCleaning/Course Project/test/X_test.txt")) trainSet <- tbl_df(read.table("GettingNCleani...
/03_assignment/run_analysis_eval.R
no_license
rtorlow/courses
R
false
false
13,067
r
# Stud 1 ---- nicenames <- function(x, pattern, replacement,...){ for(i in 1:length(pattern)){ x <- gsub(pattern[i], replacement[i], x, ignore.case = TRUE,...) } x } library(dplyr) testSet <- tbl_df(read.table("GettingNCleaning/Course Project/test/X_test.txt")) trainSet <- tbl_df(read.table("GettingNCleani...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/format_data.R \name{fmt_duration} \alias{fmt_duration} \title{Format numeric or duration values as styled time duration strings} \usage{ fmt_duration( data, columns, rows = everything(), input_units = NULL, output_units = NULL, du...
/man/fmt_duration.Rd
permissive
steveputman/gt
R
false
true
9,892
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/format_data.R \name{fmt_duration} \alias{fmt_duration} \title{Format numeric or duration values as styled time duration strings} \usage{ fmt_duration( data, columns, rows = everything(), input_units = NULL, output_units = NULL, du...
#################### ### HW3 ### Alyson Brown ### 1/31/19 #################### rm(list = ls()) ## Mining Bitcoin ## ##### Part 2 ####### library("openssl") x1 = sha256("Cesare sends one bitcoin to Shimon") x0 = "85738f8f9a7f1b04b5329c590ebcb9e425925c6d0984089c43a022de4f19c281" timestamp = "2018-01-07 21:05:34" bits...
/HW3/FinTech HW3.R
no_license
alysonb/FinTech
R
false
false
579
r
#################### ### HW3 ### Alyson Brown ### 1/31/19 #################### rm(list = ls()) ## Mining Bitcoin ## ##### Part 2 ####### library("openssl") x1 = sha256("Cesare sends one bitcoin to Shimon") x0 = "85738f8f9a7f1b04b5329c590ebcb9e425925c6d0984089c43a022de4f19c281" timestamp = "2018-01-07 21:05:34" bits...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-male_heights.R \docType{data} \name{male_heights} \alias{male_heights} \title{Sample of 100 male heights} \format{ A data frame with 100 observations on the following variable. \describe{\item{heights}{a numeric vector} } } \usage{ male_...
/man/male_heights.Rd
permissive
tessington/qsci381
R
false
true
579
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-male_heights.R \docType{data} \name{male_heights} \alias{male_heights} \title{Sample of 100 male heights} \format{ A data frame with 100 observations on the following variable. \describe{\item{heights}{a numeric vector} } } \usage{ male_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calibration.R \name{splitSequenceIntoSubstrings} \alias{splitSequenceIntoSubstrings} \title{Function for splitting sequence into subsequences This function splits sequences into left and right sequences based on cdr3Index. Must have cdr3Inde...
/man/splitSequenceIntoSubstrings.Rd
no_license
tching-adpt/EOS
R
false
true
925
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calibration.R \name{splitSequenceIntoSubstrings} \alias{splitSequenceIntoSubstrings} \title{Function for splitting sequence into subsequences This function splits sequences into left and right sequences based on cdr3Index. Must have cdr3Inde...
## Assignment week3: Caching the Inverse of a Matrix ## Below are the functions that are used to create a special object that ## stores a matrix and caches its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setInvers...
/cachematrix.R
no_license
limwss/ProgrammingAssignment2
R
false
false
801
r
## Assignment week3: Caching the Inverse of a Matrix ## Below are the functions that are used to create a special object that ## stores a matrix and caches its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setInvers...
library(shiny) library(pmartRmems) library(ALDEx2) library(dplyr) library(tidyr) library(ggplot2) data("rRNA_obj") data("rRNA_obj2") data("selex") mice <- rRNA_obj soil <- rRNA_obj2 # choose OTUs with missing values soil$e_data <- rbind(slice(soil$e_data, 801:806), slice(soil$e_data, c(1:800, 80...
/data-raw/CLR/app.R
permissive
johansent/pmartRmems
R
false
false
5,681
r
library(shiny) library(pmartRmems) library(ALDEx2) library(dplyr) library(tidyr) library(ggplot2) data("rRNA_obj") data("rRNA_obj2") data("selex") mice <- rRNA_obj soil <- rRNA_obj2 # choose OTUs with missing values soil$e_data <- rbind(slice(soil$e_data, 801:806), slice(soil$e_data, c(1:800, 80...
/corr.R
no_license
JonJagd/datasciencecoursera
R
false
false
1,567
r
\name{modalreg} \alias{hello} \title{Hello, World!} \usage{ hello() } \description{ Prints 'Hello, world!'. } \examples{ hello() }
/modalreg/man/hello.Rd
no_license
Yuanwanli1995/modalregression
R
false
false
143
rd
\name{modalreg} \alias{hello} \title{Hello, World!} \usage{ hello() } \description{ Prints 'Hello, world!'. } \examples{ hello() }
#Problem 40 options(scipen = 99) pole = NULL for(i in 0:6){ pole = c(pole, 10^i) } store = NULL counter = 0 k = 1 n = 1 while(k<8){ if(pole[k]<=nchar(as.character(n))+counter){ need = pole[k]-counter store = c(store, substr(as.character(n), need, need)) k = k+1 } counter = counter + nchar(as.char...
/scripts/40.R
no_license
GrahamQuee/ProjectEuler
R
false
false
373
r
#Problem 40 options(scipen = 99) pole = NULL for(i in 0:6){ pole = c(pole, 10^i) } store = NULL counter = 0 k = 1 n = 1 while(k<8){ if(pole[k]<=nchar(as.character(n))+counter){ need = pole[k]-counter store = c(store, substr(as.character(n), need, need)) k = k+1 } counter = counter + nchar(as.char...
x <- seq(-6, 6, length = 201) plot(x, dnorm(x), xlab = expression(paste(italic(z), ' or ', italic(t))), ylab = 'density', type = 'l', lwd = 2) df <- c(1, 3, 12) ; for (i in df) lines(x, dt(x, i)) labels <- c('normal', expression(italic(t[1])), expression(italic(t[3]))) atx <- c(2, 0, 0) ; aty <- c(0.35, 0.26, 0...
/scripts/ch06/t-vs-normal.r
no_license
StefanoCiotti/MyProgectsFirst
R
false
false
357
r
x <- seq(-6, 6, length = 201) plot(x, dnorm(x), xlab = expression(paste(italic(z), ' or ', italic(t))), ylab = 'density', type = 'l', lwd = 2) df <- c(1, 3, 12) ; for (i in df) lines(x, dt(x, i)) labels <- c('normal', expression(italic(t[1])), expression(italic(t[3]))) atx <- c(2, 0, 0) ; aty <- c(0.35, 0.26, 0...
## sinh(log(y)) logh <- function(x) { 0.5 * (x - 1/x) } buildTransformer <- function(inits, nbpars, dlist) { par.transform <- lapply(seq_len(nbpars), function(ind) { xform <- dlist$inv.transforms[[ind]] function(pars) { xform(pars...
/R/flexsurvreg.R
no_license
karthy257/flexsurv-dev
R
false
false
52,622
r
## sinh(log(y)) logh <- function(x) { 0.5 * (x - 1/x) } buildTransformer <- function(inits, nbpars, dlist) { par.transform <- lapply(seq_len(nbpars), function(ind) { xform <- dlist$inv.transforms[[ind]] function(pars) { xform(pars...
## Fuzzy Logix DB Lytix(TM) ## is a high-speed in-database analytics library ## written in C++, exposing ~700 functions through SQL. ## SQL as low-level language makes analyses ## consumable from all SQL-enabled clients. ## This demo shows how the ## AdapteR package of Fuzzy Logix is ## easing interaction with the DB ...
/demo/matrix.correlation.R
no_license
mohakuma/AdapteR
R
false
false
8,176
r
## Fuzzy Logix DB Lytix(TM) ## is a high-speed in-database analytics library ## written in C++, exposing ~700 functions through SQL. ## SQL as low-level language makes analyses ## consumable from all SQL-enabled clients. ## This demo shows how the ## AdapteR package of Fuzzy Logix is ## easing interaction with the DB ...
### subsetEventData ##' @title Subset a \code{bammdata} object ##' ##' @description Subsets a \code{bammdata} object. Returns a \code{bammdata} ##' object after extracting a specified set of samples from the posterior. ##' ##' @param ephy An object of class \code{bammdata}. ##' @param index A vector of integers co...
/BAMMtools/R/subsetEventData.R
no_license
macroevolution/bammtools
R
false
false
2,375
r
### subsetEventData ##' @title Subset a \code{bammdata} object ##' ##' @description Subsets a \code{bammdata} object. Returns a \code{bammdata} ##' object after extracting a specified set of samples from the posterior. ##' ##' @param ephy An object of class \code{bammdata}. ##' @param index A vector of integers co...
library(RSQLite) db = dbConnect(SQLite(), "stats.stackexchange.db") tbls = dbListTables(db) tmp = structure(lapply(sprintf("SELECT * FROM %s", tbls), function(q) dbGetQuery(db, q)), names = tbls) saveRDS(tmp, "~/sta141b/Assignments/DBMS/stats.stackexchange.Rds") isAllNumbers = function(x) all(grepl("^-?[0-9]*$", ...
/mkRDS.R
no_license
duncantl/SOXMLDB
R
false
false
1,816
r
library(RSQLite) db = dbConnect(SQLite(), "stats.stackexchange.db") tbls = dbListTables(db) tmp = structure(lapply(sprintf("SELECT * FROM %s", tbls), function(q) dbGetQuery(db, q)), names = tbls) saveRDS(tmp, "~/sta141b/Assignments/DBMS/stats.stackexchange.Rds") isAllNumbers = function(x) all(grepl("^-?[0-9]*$", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/death.R \name{death} \alias{death} \title{All Death Scenarios} \usage{ death(func = "random", weapon = "gun") } \arguments{ \item{func}{Specify what the user wants this function to perform, valid inputs include random(some information about a...
/man/death.Rd
no_license
czhang2581/BrkbadWiki
R
false
true
1,007
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/death.R \name{death} \alias{death} \title{All Death Scenarios} \usage{ death(func = "random", weapon = "gun") } \arguments{ \item{func}{Specify what the user wants this function to perform, valid inputs include random(some information about a...
if(getRversion() >= "2.15.1") globalVariables(c(".data", "copy", ".N")) #' @encoding UTF-8 #' @title Number of the Current Observation #' #' @description Computes the number of the current observation. It's provides similar functionality of the Stata "_n" built-in system variable. #' @param .data The input \code{data.f...
/SciencesPo/R/n.R
no_license
ingted/R-Examples
R
false
false
1,135
r
if(getRversion() >= "2.15.1") globalVariables(c(".data", "copy", ".N")) #' @encoding UTF-8 #' @title Number of the Current Observation #' #' @description Computes the number of the current observation. It's provides similar functionality of the Stata "_n" built-in system variable. #' @param .data The input \code{data.f...
###################################### ### Dates and Times with lubridate ### ###################################### library(tidyverse) library(lubridate) library(nycflights13) today() now() # Date/time from string ymd("2017-01-31") class(ymd("2017-01-31")) ymd("01-2017-31") # error myd("01-2017-31") # buono mdy("Ja...
/(Book) R for Data Science - Dates and Times with lubridate.R
no_license
ankristov/R
R
false
false
5,630
r
###################################### ### Dates and Times with lubridate ### ###################################### library(tidyverse) library(lubridate) library(nycflights13) today() now() # Date/time from string ymd("2017-01-31") class(ymd("2017-01-31")) ymd("01-2017-31") # error myd("01-2017-31") # buono mdy("Ja...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/decrypt_mcmc.R \name{decrypt_mcmc} \alias{decrypt_mcmc} \title{Decrypt Substitution Cipher With MCMC} \usage{ decrypt_mcmc( encoded, key0, reference_bigrams, reference_freq, pr.method = 1, nr = 10000, p = 1, alpha = c(LETTERS,...
/DecryptSubs/man/decrypt_mcmc.Rd
no_license
taisbellini/estatistica-computacional
R
false
true
1,313
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/decrypt_mcmc.R \name{decrypt_mcmc} \alias{decrypt_mcmc} \title{Decrypt Substitution Cipher With MCMC} \usage{ decrypt_mcmc( encoded, key0, reference_bigrams, reference_freq, pr.method = 1, nr = 10000, p = 1, alpha = c(LETTERS,...