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
library(zoo) library(dplyr) library(dplR) library(lubridate) library(ggplot2) library(scales) # sourcedata had to be correctly reformatted to tab deliminted. Originally downloaded from IMR comes as fixed width. # make list of file names fnames = list.files('Ingoy Station (feb18)/') # read in and paste all data toge...
/read_data.R
no_license
yasureyoubetchya/IngoyStation
R
false
false
1,298
r
library(zoo) library(dplyr) library(dplR) library(lubridate) library(ggplot2) library(scales) # sourcedata had to be correctly reformatted to tab deliminted. Originally downloaded from IMR comes as fixed width. # make list of file names fnames = list.files('Ingoy Station (feb18)/') # read in and paste all data toge...
obsolete <- function() { pheatmap(rxc, color = col, legend = TRUE, main = "", angle_col = "315", filename = "INF1_pQTL_immune_qtl.png", width = 17, height = 11, treeheight_row = 100, treeheigh_col = 100, cell...
/rsid/pqtlGWAS-defunct.R
no_license
jinghuazhao/INF
R
false
false
4,832
r
obsolete <- function() { pheatmap(rxc, color = col, legend = TRUE, main = "", angle_col = "315", filename = "INF1_pQTL_immune_qtl.png", width = 17, height = 11, treeheight_row = 100, treeheigh_col = 100, cell...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kinesis_operations.R \name{kinesis_describe_limits} \alias{kinesis_describe_limits} \title{Describes the shard limits and usage for the account} \usage{ kinesis_describe_limits() } \description{ Describes the shard limits and usage for the ac...
/paws/man/kinesis_describe_limits.Rd
permissive
johnnytommy/paws
R
false
true
585
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kinesis_operations.R \name{kinesis_describe_limits} \alias{kinesis_describe_limits} \title{Describes the shard limits and usage for the account} \usage{ kinesis_describe_limits() } \description{ Describes the shard limits and usage for the ac...
context("kinesisvideo") svc <- paws::kinesisvideo() test_that("describe_stream", { expect_error(svc$describe_stream(), NA) }) test_that("list_streams", { expect_error(svc$list_streams(), NA) }) test_that("list_streams", { expect_error(svc$list_streams(MaxResults = 20), NA) }) test_that("list_tags_for_stream"...
/paws/tests/testthat/test_kinesisvideo.R
permissive
peoplecure/paws
R
false
false
374
r
context("kinesisvideo") svc <- paws::kinesisvideo() test_that("describe_stream", { expect_error(svc$describe_stream(), NA) }) test_that("list_streams", { expect_error(svc$list_streams(), NA) }) test_that("list_streams", { expect_error(svc$list_streams(MaxResults = 20), NA) }) test_that("list_tags_for_stream"...
############################################################################# # # XLConnect # Copyright (C) 2010-2017 Mirai Solutions GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
/inst/unitTests/runit.workbook.getBoundingBox.R
no_license
GSuvorov/xlconnect
R
false
false
3,698
r
############################################################################# # # XLConnect # Copyright (C) 2010-2017 Mirai Solutions GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
library(FSelector) ## generate prediction model (adapting from old pathipred) 2015-10 get.prediction.model <- function(prettyways.matrix, exp.design, type, k, filter_paths=F) { ## pre-process data cat("Removing paths without variability...\n") m <- t(remove.novar.paths(prettyways.matrix)) ed <- sapply(rownames...
/code_develop/predictor/predict.r
no_license
martahidalgo/hpConstructor
R
false
false
8,087
r
library(FSelector) ## generate prediction model (adapting from old pathipred) 2015-10 get.prediction.model <- function(prettyways.matrix, exp.design, type, k, filter_paths=F) { ## pre-process data cat("Removing paths without variability...\n") m <- t(remove.novar.paths(prettyways.matrix)) ed <- sapply(rownames...
\name{sdfPLA} \alias{sdfPLA} \title{ Spectral density function for PLA } \description{ Computes the spectral density function for the PLA model with parameter a at the Fourier frequencies, 2*Pi*j/n, j=1,...,[n/2], where n is the length of the time series. The evaluation is very fast. Bivariate interpolation ...
/man/sdfPLA.Rd
no_license
cran/FGN
R
false
false
864
rd
\name{sdfPLA} \alias{sdfPLA} \title{ Spectral density function for PLA } \description{ Computes the spectral density function for the PLA model with parameter a at the Fourier frequencies, 2*Pi*j/n, j=1,...,[n/2], where n is the length of the time series. The evaluation is very fast. Bivariate interpolation ...
context("Test all plots") pmxClassHelpers <- test_pmxClass_helpers() test_that("We can call all pmx_plot_xx with success", { ctr <- pmxClassHelpers$ctr pmx_plots <- ctr %>% plot_names() pmx_function_plots <- sprintf("pmx_plot_%s", pmx_plots) res <- lapply( pmx_function_plots, function(fun) { is_...
/tests/testthat/test-pmx-all-plots.R
no_license
csetraynor/ggPMX
R
false
false
660
r
context("Test all plots") pmxClassHelpers <- test_pmxClass_helpers() test_that("We can call all pmx_plot_xx with success", { ctr <- pmxClassHelpers$ctr pmx_plots <- ctr %>% plot_names() pmx_function_plots <- sprintf("pmx_plot_%s", pmx_plots) res <- lapply( pmx_function_plots, function(fun) { is_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/visTree.R \name{visTree} \alias{visTree} \title{Visualize Recursive Partitioning and Regression Trees (rpart object)} \usage{ visTree(object, main = "", submain = "", footer = "", direction = "UD", fallenLeaves = FALSE, rules = TRUE, simpli...
/man/visTree.Rd
no_license
vanradd/visNetwork
R
false
true
6,142
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/visTree.R \name{visTree} \alias{visTree} \title{Visualize Recursive Partitioning and Regression Trees (rpart object)} \usage{ visTree(object, main = "", submain = "", footer = "", direction = "UD", fallenLeaves = FALSE, rules = TRUE, simpli...
##Performing K-folds cross validation library(randomForest) library(rcdk) library(ROCR) ##Reading the mutagen dataset dat1<-read.csv("mutagen.txt",sep="\t",header=F) smi <-lapply(as.character(dat1$V1),parse.smiles) cmp.fp<-vector("list",nrow(dat1)) ## generate fingerprints for (i in 1:nrow(dat1)){ cmp.fp[i]<-lapp...
/crossvalidation.R
no_license
nkkchem/CheminfoR
R
false
false
1,327
r
##Performing K-folds cross validation library(randomForest) library(rcdk) library(ROCR) ##Reading the mutagen dataset dat1<-read.csv("mutagen.txt",sep="\t",header=F) smi <-lapply(as.character(dat1$V1),parse.smiles) cmp.fp<-vector("list",nrow(dat1)) ## generate fingerprints for (i in 1:nrow(dat1)){ cmp.fp[i]<-lapp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hr_.R \name{hr_} \alias{hr_} \title{Create a horizontal rule} \usage{ hr_(..., id = NULL, class = NULL, global = NULL) } \arguments{ \item{...}{a collection of HTML objects, textual elements (as bare text or Markdown-styled text), arbitrary a...
/man/hr_.Rd
permissive
rich-iannone/hyper
R
false
true
2,254
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hr_.R \name{hr_} \alias{hr_} \title{Create a horizontal rule} \usage{ hr_(..., id = NULL, class = NULL, global = NULL) } \arguments{ \item{...}{a collection of HTML objects, textual elements (as bare text or Markdown-styled text), arbitrary a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_region_from_coordinates.R \name{get_region_from_coordinates} \alias{get_region_from_coordinates} \title{Return the geographci region of a set of coordinates according to administrative boundaries.} \usage{ get_region_from_coordinates(obj,...
/man/get_region_from_coordinates.Rd
no_license
matteodefelice/panas
R
false
true
1,683
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_region_from_coordinates.R \name{get_region_from_coordinates} \alias{get_region_from_coordinates} \title{Return the geographci region of a set of coordinates according to administrative boundaries.} \usage{ get_region_from_coordinates(obj,...
library(data.table) library(xgboost) library(Metrics) library(Matrix) library(mice) library(plyr) library(dplyr) library(tidyr) library(ggplot2) #set working directory setwd('/users/thesmithfamily/desktop/kaggle/ames') #define submission file for later SUBMISSION = "/users/thesmithfamily/desktop/kaggle/ames/sample_...
/Kaggle Housing XGBoost.R
no_license
smithjph/House-Prices-Machine-Learning
R
false
false
20,611
r
library(data.table) library(xgboost) library(Metrics) library(Matrix) library(mice) library(plyr) library(dplyr) library(tidyr) library(ggplot2) #set working directory setwd('/users/thesmithfamily/desktop/kaggle/ames') #define submission file for later SUBMISSION = "/users/thesmithfamily/desktop/kaggle/ames/sample_...
#' Read PLINK binary data #' #' Read PLINK binary data and save in gData format. This is a wrapper around #' \code{\link[snpStats]{read.plink}} in the Bioconductor package #' \code{snpStats}. This package needs to be installed for the function to #' work. #' #' @param bed The name of the file containing t...
/R/readPlink.R
no_license
cran/statgenGWAS
R
false
false
1,606
r
#' Read PLINK binary data #' #' Read PLINK binary data and save in gData format. This is a wrapper around #' \code{\link[snpStats]{read.plink}} in the Bioconductor package #' \code{snpStats}. This package needs to be installed for the function to #' work. #' #' @param bed The name of the file containing t...
# # lohboot.R # # $Revision: 1.13 $ $Date: 2014/10/08 10:25:26 $ # # Loh's bootstrap CI's for local pcf, local K etc # lohboot <- function(X, fun=c("pcf", "Kest", "Lest", "pcfinhom", "Kinhom", "Linhom"), ..., nsim=200, confidence=0.95, global=FALSE, type=7) { stopifnot(is.ppp(X)) fun.n...
/R/lohboot.R
no_license
mirca/spatstat
R
false
false
4,014
r
# # lohboot.R # # $Revision: 1.13 $ $Date: 2014/10/08 10:25:26 $ # # Loh's bootstrap CI's for local pcf, local K etc # lohboot <- function(X, fun=c("pcf", "Kest", "Lest", "pcfinhom", "Kinhom", "Linhom"), ..., nsim=200, confidence=0.95, global=FALSE, type=7) { stopifnot(is.ppp(X)) fun.n...
#! pointspat<-function(x=NULL,y=NULL,yvar=NULL,yvar1=NULL,ydqc=NULL,xvar=NULL,brk=NULL,col=NULL, namefileout=NULL,mtxt=NULL,mtxt1=NULL,orog=NULL,pos="bottomright", xl=NULL,yl=NULL,bnd=NULL,cx=NULL,colext=NULL, yvartext=NULL,yvartextcex=NULL,xvar.orog=NULL, ...
/lib/Bspat_plot.R
no_license
congca/seNorge2
R
false
false
24,322
r
#! pointspat<-function(x=NULL,y=NULL,yvar=NULL,yvar1=NULL,ydqc=NULL,xvar=NULL,brk=NULL,col=NULL, namefileout=NULL,mtxt=NULL,mtxt1=NULL,orog=NULL,pos="bottomright", xl=NULL,yl=NULL,bnd=NULL,cx=NULL,colext=NULL, yvartext=NULL,yvartextcex=NULL,xvar.orog=NULL, ...
#============================================================================== # Author: Zachary M. Smith # Created: 3/13/2017 # Updated: 06/13/2017 # Maintained: Zachary M. Smith # Purpose: Import and prepare watershed characteristic data. #=============================================================================...
/prep/prep_metrics.R
no_license
zsmith27/Impervious_Cover
R
false
false
3,563
r
#============================================================================== # Author: Zachary M. Smith # Created: 3/13/2017 # Updated: 06/13/2017 # Maintained: Zachary M. Smith # Purpose: Import and prepare watershed characteristic data. #=============================================================================...
test_that("When 'bulkDownloading' set to FALSE, 'DownloadDEE2Data' function could get the same data for all given SRR accessions as when downloaded for each accessions seperately using DEE2 legacy download", { SRRvec = c("SRR1783836", "SRR1783837", "SRR1783838", "SRR1999221", ...
/tests/testthat/test.dataDownload.R
no_license
uilnauyis/homosapien-DEE2-data
R
false
false
1,963
r
test_that("When 'bulkDownloading' set to FALSE, 'DownloadDEE2Data' function could get the same data for all given SRR accessions as when downloaded for each accessions seperately using DEE2 legacy download", { SRRvec = c("SRR1783836", "SRR1783837", "SRR1783838", "SRR1999221", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_parms.r \name{write_parms} \alias{write_parms} \title{Write parameter file} \usage{ write_parms(parm_list, file_name, file_dir = "./") } \arguments{ \item{parm_list}{(required) named list of parameters to record} \item{file_name}{(requ...
/CAMM/man/write_parms.Rd
no_license
jescoyle/CAMM
R
false
true
994
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_parms.r \name{write_parms} \alias{write_parms} \title{Write parameter file} \usage{ write_parms(parm_list, file_name, file_dir = "./") } \arguments{ \item{parm_list}{(required) named list of parameters to record} \item{file_name}{(requ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EM.R \name{EM.M.W} \alias{EM.M.W} \title{Maximization step for W} \usage{ EM.M.W(Xc, sigSq, V, Vvar, K) } \description{ Maximization step for W }
/man/EM.M.W.Rd
permissive
mattdneal/stpca
R
false
true
224
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EM.R \name{EM.M.W} \alias{EM.M.W} \title{Maximization step for W} \usage{ EM.M.W(Xc, sigSq, V, Vvar, K) } \description{ Maximization step for W }
####################################################################### ############################## PRÁCTICA 1 ############################# ####################################################################### #################### Tipos de variables (atómicas) #################### # 1. Caracter (character) ...
/practica_1.R
no_license
MemLem/R-CURSO
R
false
false
2,866
r
####################################################################### ############################## PRÁCTICA 1 ############################# ####################################################################### #################### Tipos de variables (atómicas) #################### # 1. Caracter (character) ...
## Programming Assignment 2: This function use Lexical Scoping of R ## makeCacheMateix function makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setsolve <- function(solve) m <<- solve getsolve <- function() m ...
/cachematrix.R
no_license
jugipa/ProgrammingAssignment2
R
false
false
698
r
## Programming Assignment 2: This function use Lexical Scoping of R ## makeCacheMateix function makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setsolve <- function(solve) m <<- solve getsolve <- function() m ...
library(bsts) ### Name: shorten ### Title: Shorten long names ### Aliases: Shorten ### Keywords: character ### ** Examples Shorten(c("/usr/common/foo.tex", "/usr/common/barbarian.tex")) # returns c("foo", "barbarian") Shorten(c("hello", "hellobye")) # returns c("", "bye") Shorten(c("hello", "hello")) ...
/data/genthat_extracted_code/bsts/examples/shorten.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
451
r
library(bsts) ### Name: shorten ### Title: Shorten long names ### Aliases: Shorten ### Keywords: character ### ** Examples Shorten(c("/usr/common/foo.tex", "/usr/common/barbarian.tex")) # returns c("foo", "barbarian") Shorten(c("hello", "hellobye")) # returns c("", "bye") Shorten(c("hello", "hello")) ...
library(MASS) library(tidyverse) library(ggplot2) Data=iris traindata=Data testdata=Data Test=testdata[,c(1,2,3,4)] newdf <- data.frame(Sepal.Length=Test[,1],Sepal.Width=Test[,2],Petal.Length=Test[,3],Petal.Width=Test[,4]) r1=lda(Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width ,data=traindata) r2=pred...
/lda four variables.R
no_license
Bodhoditya/Iris-R-Codes
R
false
false
1,293
r
library(MASS) library(tidyverse) library(ggplot2) Data=iris traindata=Data testdata=Data Test=testdata[,c(1,2,3,4)] newdf <- data.frame(Sepal.Length=Test[,1],Sepal.Width=Test[,2],Petal.Length=Test[,3],Petal.Width=Test[,4]) r1=lda(Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width ,data=traindata) r2=pred...
library(BuenColors) dt <- read.table("../data/three_comparison/TSS_scores_3channels.tsv", fill = 0, header = TRUE) dt$pos <- 1:dim(dt)[1] tb <- pretty_plot(fontsize = 8) + L_border() + theme(axis.title.x=element_blank(), axis.text.x=element_blank(), axis.ticks.x=element_blank()) p1 <- ggplot(dt,...
/pbmc_TBNK_comparisons_asapseq/code/02_TSS_scores.R
no_license
liuxiaoping2020/asap_reproducibility
R
false
false
900
r
library(BuenColors) dt <- read.table("../data/three_comparison/TSS_scores_3channels.tsv", fill = 0, header = TRUE) dt$pos <- 1:dim(dt)[1] tb <- pretty_plot(fontsize = 8) + L_border() + theme(axis.title.x=element_blank(), axis.text.x=element_blank(), axis.ticks.x=element_blank()) p1 <- ggplot(dt,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/discretize_xgb.R \name{step_discretize_xgb} \alias{step_discretize_xgb} \alias{tidy.step_discretize_xgb} \title{Discretize numeric variables with XgBoost} \usage{ step_discretize_xgb( recipe, ..., role = NA, trained = FALSE, outcome...
/man/step_discretize_xgb.Rd
no_license
topepo/embed-1
R
false
true
4,601
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/discretize_xgb.R \name{step_discretize_xgb} \alias{step_discretize_xgb} \alias{tidy.step_discretize_xgb} \title{Discretize numeric variables with XgBoost} \usage{ step_discretize_xgb( recipe, ..., role = NA, trained = FALSE, outcome...
rm(list=ls()) setwd("/data2/kiemele/WGCNA/HXBbrain_forPhenogen/20141218") library(qtl) ##Load in data MEs <- read.cross("csv", "", "forAnalysis_MEs.csv", genotypes = c("H", "B")) summary(MEs) ######################### # QTL marker regression # ######################### nphe=(nphe(MEs)-2) out_MEs.mr <- s...
/programs/orig/EQTLanalysis.R
no_license
TabakoffLab/WGCNA
R
false
false
1,330
r
rm(list=ls()) setwd("/data2/kiemele/WGCNA/HXBbrain_forPhenogen/20141218") library(qtl) ##Load in data MEs <- read.cross("csv", "", "forAnalysis_MEs.csv", genotypes = c("H", "B")) summary(MEs) ######################### # QTL marker regression # ######################### nphe=(nphe(MEs)-2) out_MEs.mr <- s...
#' Download Playbyplay data for NBA game #' #' Download and process NBA.com play-by-play data for given game and season. #' @param game_id Game's ID in NBA.com DB #' @param verbose Defalt TRUE - prints additional information #' #' @return Dataset containing data from Playbyplay pages. Play-by-play provides information ...
/R/get_playbyplay.R
no_license
PatrickChodowski/NBAr
R
false
false
2,409
r
#' Download Playbyplay data for NBA game #' #' Download and process NBA.com play-by-play data for given game and season. #' @param game_id Game's ID in NBA.com DB #' @param verbose Defalt TRUE - prints additional information #' #' @return Dataset containing data from Playbyplay pages. Play-by-play provides information ...
##################################################### # Some R code to get you going for the # 2018 Melbourne Datathon ##################################################### #install and load required libraries #install.packages('data.table') library(data.table) #tell R where it can find the data ScanOnFolderMaster <...
/code_to_get_started.R
no_license
lynnhio/MeblourneDatathon2018
R
false
false
3,598
r
##################################################### # Some R code to get you going for the # 2018 Melbourne Datathon ##################################################### #install and load required libraries #install.packages('data.table') library(data.table) #tell R where it can find the data ScanOnFolderMaster <...
# *************************************************************************************** # Library : modeltime # Function : combine_modeltime_tables # Created on: 2021/8/6 # URL : https://business-science.github.io/modeltime/reference/combine_modeltime_tables.html # *******************************************...
/library/modeltime/function/workflow/combine_modeltime_tables.R
no_license
jimyanau/r-timeseries
R
false
false
1,709
r
# *************************************************************************************** # Library : modeltime # Function : combine_modeltime_tables # Created on: 2021/8/6 # URL : https://business-science.github.io/modeltime/reference/combine_modeltime_tables.html # *******************************************...
#' Release package to CRAN. #' #' Run automated and manual tests, then ftp to CRAN. #' #' The package release process will: #' #' \itemize{ #' #' \item Confirm that the package passes \code{R CMD check} #' \item Ask if you've checked your code on win-builder #' \item Confirm that news is up-to-date #' \item Con...
/R/release.r
no_license
melissasullivan/devtools
R
false
false
9,480
r
#' Release package to CRAN. #' #' Run automated and manual tests, then ftp to CRAN. #' #' The package release process will: #' #' \itemize{ #' #' \item Confirm that the package passes \code{R CMD check} #' \item Ask if you've checked your code on win-builder #' \item Confirm that news is up-to-date #' \item Con...
install.packages("WDI") require(WDI) #domestic gross product gdp <- WDI(country = c("US", "CA", "GB", "DE", "CN", "JP", "SG", "IL"), indicator = c("NY.GDP.PCAP.CD", "NY.GDP.MKTP.CD"), start = 1960, end = 2011) gdp head(gdp) names(gdp) <- c("iso2c", "Country", "Year", "PerCapGDP", "GDP") us1 <- gdp$PerCapGDP[gdp$Country...
/Statistics/GarchVar_TS.R
no_license
piyushkumar102/R-Programs
R
false
false
1,918
r
install.packages("WDI") require(WDI) #domestic gross product gdp <- WDI(country = c("US", "CA", "GB", "DE", "CN", "JP", "SG", "IL"), indicator = c("NY.GDP.PCAP.CD", "NY.GDP.MKTP.CD"), start = 1960, end = 2011) gdp head(gdp) names(gdp) <- c("iso2c", "Country", "Year", "PerCapGDP", "GDP") us1 <- gdp$PerCapGDP[gdp$Country...
setwd("T:\\R\\thuc_hanh_16_4_21") A = read.csv("Temperature.csv", header = TRUE) trung_binh = tapply(A$Temperature, A$Month, mean, na.rm =TRUE) trung_binh trung_binh2 = tapply(A$Temperature, list(A$Year, A$Month), mean, na.rm =TRUE) trung_binh2 trung_binh3 = tapply(A$Temperature, A$Month, sd, na.rm =TRUE) trun...
/bt_vat/thuc_hanh_16_4_21/hello r.r
no_license
Klatane/bt_minhtriho_all
R
false
false
384
r
setwd("T:\\R\\thuc_hanh_16_4_21") A = read.csv("Temperature.csv", header = TRUE) trung_binh = tapply(A$Temperature, A$Month, mean, na.rm =TRUE) trung_binh trung_binh2 = tapply(A$Temperature, list(A$Year, A$Month), mean, na.rm =TRUE) trung_binh2 trung_binh3 = tapply(A$Temperature, A$Month, sd, na.rm =TRUE) trun...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ellipse.lm.R \name{ellipse.lm} \alias{ellipse.lm} \title{Outline a pairwise confidence region for a linear model fit.} \usage{ \method{ellipse}{lm}(x, which = c(1, 2), level = 0.95, t = sqrt(2 * qf(level, 2, x$df.residual)), ...) } \argumen...
/man/ellipse.lm.Rd
no_license
kongdd/ellipse
R
false
true
1,533
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ellipse.lm.R \name{ellipse.lm} \alias{ellipse.lm} \title{Outline a pairwise confidence region for a linear model fit.} \usage{ \method{ellipse}{lm}(x, which = c(1, 2), level = 0.95, t = sqrt(2 * qf(level, 2, x$df.residual)), ...) } \argumen...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "phoneme") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("cl...
/models/openml_phoneme/classification_Class/1f57a24cda2fde4e99949eebd0aa7096/code.R
no_license
lukaszbrzozowski/CaseStudies2019S
R
false
false
739
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "phoneme") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("cl...
salary <- c(15000, 20000, 15000, 15000, 18000, 20000) moneyUsed <- c(16000, 15000, 10000, 20000, 10000, 15000) names(salary) <- c("January", "February", "March", "April", "May", "June") names(moneyUsed) <- c("January", "February", "March", "April", "May", "June") salary moneyUsed totalPerMonth <- salary - m...
/Introduction to R/Personalized/3. Personalized.r
no_license
TopicosSelectos/tutoriales-2019-2-mimi1698
R
false
false
961
r
salary <- c(15000, 20000, 15000, 15000, 18000, 20000) moneyUsed <- c(16000, 15000, 10000, 20000, 10000, 15000) names(salary) <- c("January", "February", "March", "April", "May", "June") names(moneyUsed) <- c("January", "February", "March", "April", "May", "June") salary moneyUsed totalPerMonth <- salary - m...
context("Linear models") test_that("Simple lm models work", { model_simple <- lm(mpg ~ cyl + disp, data = mtcars) mtcars$gear <- as.factor(mtcars$gear) model_indicators <- lm(mpg ~ cyl + gear, data = mtcars) tex <- extract_eq(model_simple) actual <- "\\text{mpg} = \\alpha + \\beta_{1}(\\text{cyl}) + \\beta...
/tests/testthat/test-lm.R
permissive
cRistiancec/equatiomatic
R
false
false
1,913
r
context("Linear models") test_that("Simple lm models work", { model_simple <- lm(mpg ~ cyl + disp, data = mtcars) mtcars$gear <- as.factor(mtcars$gear) model_indicators <- lm(mpg ~ cyl + gear, data = mtcars) tex <- extract_eq(model_simple) actual <- "\\text{mpg} = \\alpha + \\beta_{1}(\\text{cyl}) + \\beta...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Functions.R \name{ContFeaturesPlot} \alias{ContFeaturesPlot} \title{Plot of continuous features} \usage{ ContFeaturesPlot(leadCpds, data, nrclusters = NULL, orderLab = NULL, colorLab = NULL, cols = NULL, ylab = "features", addLegend ...
/man/ContFeaturesPlot.Rd
no_license
cran/IntClust
R
false
true
2,634
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Functions.R \name{ContFeaturesPlot} \alias{ContFeaturesPlot} \title{Plot of continuous features} \usage{ ContFeaturesPlot(leadCpds, data, nrclusters = NULL, orderLab = NULL, colorLab = NULL, cols = NULL, ylab = "features", addLegend ...
# start! ## 데이터 삭제 setwd('c:/Users/USER/Desktop/문화관광 공모전/data') library(dplyr) library(magrittr) d <- haven::read_sav('국민여가활동조사.sav') forcluster <- data.frame(data.table::fread('rawdata.csv')) forcluster%<>%mutate(본인소득=d$Q45A1) forcluster %<>%mutate(가구소득 = forcluster$Q45A2) for(i in 1:10498) { if(forcluste...
/Clustering, logistic, anova.R
no_license
JinsaGalbi/Consumer-oriented-national-leisure-policy
R
false
false
9,397
r
# start! ## 데이터 삭제 setwd('c:/Users/USER/Desktop/문화관광 공모전/data') library(dplyr) library(magrittr) d <- haven::read_sav('국민여가활동조사.sav') forcluster <- data.frame(data.table::fread('rawdata.csv')) forcluster%<>%mutate(본인소득=d$Q45A1) forcluster %<>%mutate(가구소득 = forcluster$Q45A2) for(i in 1:10498) { if(forcluste...
## The following code is part of the example scripts included ## in the "Soil Organic Carbon Mapping Cookbook" ## @knitr 3C-SupportVectorMachines # load data dat <- read.csv("data/MKD_RegMatrix.csv") dat$LCEE10 <- as.factor(dat$LCEE10) # dat$soilmap <- as.factor(dat$soilmap) # explore the data structure str(dat) li...
/code/3C-SupportVectorMachines.R
no_license
anhnguyendepocen/SOC-Mapping-Cookbook
R
false
false
3,364
r
## The following code is part of the example scripts included ## in the "Soil Organic Carbon Mapping Cookbook" ## @knitr 3C-SupportVectorMachines # load data dat <- read.csv("data/MKD_RegMatrix.csv") dat$LCEE10 <- as.factor(dat$LCEE10) # dat$soilmap <- as.factor(dat$soilmap) # explore the data structure str(dat) li...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{ungrid} \alias{ungrid} \title{Extract (x, y, z) from (x, y, grid)} \usage{ ungrid(x, y, grid) } \arguments{ \item{x}{a vector holding the x coordinates of grid.} \item{y}{a vector holding the y coordinates of grid.} \item{grid}...
/pkgs/oce/man/ungrid.Rd
no_license
vaguiar/EDAV_Project_2017
R
false
true
955
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{ungrid} \alias{ungrid} \title{Extract (x, y, z) from (x, y, grid)} \usage{ ungrid(x, y, grid) } \arguments{ \item{x}{a vector holding the x coordinates of grid.} \item{y}{a vector holding the y coordinates of grid.} \item{grid}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tree.R \name{ggDiagnose.tree} \alias{ggDiagnose.tree} \title{Diagnostic plot for \code{tree} object (\code{ggplot2} based)} \usage{ ggDiagnose.tree(x, type = c("proportional", "uniform"), split.labels = TRUE, leaf.labels = FALSE, text.size ...
/man/ggDiagnose.tree.Rd
permissive
benjaminleroy/ggDiagnose
R
false
true
1,669
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tree.R \name{ggDiagnose.tree} \alias{ggDiagnose.tree} \title{Diagnostic plot for \code{tree} object (\code{ggplot2} based)} \usage{ ggDiagnose.tree(x, type = c("proportional", "uniform"), split.labels = TRUE, leaf.labels = FALSE, text.size ...
with(afb8926f1d70741859b34cf202d7de61a, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';source("D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/R/Recommendations/advanced_federation_blend.r");a2Hrpdwy3col1<- as...
/80bb2a25-ac5d-47d0-abfc-b3f3811f0936/R/Temp/amN97LN4trRUF.R
no_license
ayanmanna8/test
R
false
false
850
r
with(afb8926f1d70741859b34cf202d7de61a, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';source("D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/R/Recommendations/advanced_federation_blend.r");a2Hrpdwy3col1<- as...
# ------------------------------------------------------------------------ # Strongbridge scoring summaries # ------------------------------------------------------------------------ results_dir <- "F:/Projects/Strongbridge/results/scoring/" model_dir <- "F:/Projects/Strongbridge/results/modelling/XGBOOST_advanced/...
/scoring/02_sum_counts_across_chunks.R
no_license
jzhao0802/strongbridge
R
false
false
4,685
r
# ------------------------------------------------------------------------ # Strongbridge scoring summaries # ------------------------------------------------------------------------ results_dir <- "F:/Projects/Strongbridge/results/scoring/" model_dir <- "F:/Projects/Strongbridge/results/modelling/XGBOOST_advanced/...
i = 340 library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/") # ------------------------------------------------------------------------- # read in the list of the SNP to be excluded # ------------------------------------------------------------------------- setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/") files = li...
/data_preparation/R_batch3/_step2/step2_filter_asCounts.339.R
no_license
jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples
R
false
false
809
r
i = 340 library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/") # ------------------------------------------------------------------------- # read in the list of the SNP to be excluded # ------------------------------------------------------------------------- setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/") files = li...
################################## ####Orange 10 Time Series HW 2#### ################################## library(readxl) library(lubridate) library(tidyverse) library(Hmisc) library(zoo) library(broom) library(ggfortify) library(uroot) library(lmtest) library(forecast) library(dplyr) library(ggplot2) ...
/Time Series/Final_data_cleaning.R
no_license
smao6/Orange_HW_10
R
false
false
6,434
r
################################## ####Orange 10 Time Series HW 2#### ################################## library(readxl) library(lubridate) library(tidyverse) library(Hmisc) library(zoo) library(broom) library(ggfortify) library(uroot) library(lmtest) library(forecast) library(dplyr) library(ggplot2) ...
# # 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) # Define UI for application that draws a histogram ui <- navbarPage( "Final Project Title", ...
/Milestone_4/app.R
no_license
BeauMeche/gov1005-recitation-week-4
R
false
false
6,280
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) # Define UI for application that draws a histogram ui <- navbarPage( "Final Project Title", ...
#' Height (current + predicted) vs growth curves plot for males. #' #' This function returns a ggplot object showing the **current** and **predicted height** vs normal growth charts for american population. #' #' Data for growth charts was obtained from the National Center for Health Statistics. #' #' Please visit \url...
/R/plot_growth_male.R
permissive
CFPC-performance/matuR
R
false
false
4,821
r
#' Height (current + predicted) vs growth curves plot for males. #' #' This function returns a ggplot object showing the **current** and **predicted height** vs normal growth charts for american population. #' #' Data for growth charts was obtained from the National Center for Health Statistics. #' #' Please visit \url...
.onAttach <- function(libname, pkgname) { packageStartupMessage("\nPlease cite as: \n") packageStartupMessage(" Hlavac, Marek (2018). stargazer: Well-Formatted Regression and Summary Statistics Tables.") packageStartupMessage(" R package version 5.2.2. https://CRAN.R-project.org/package=stargazer \n") } ...
/R/stargazer-internal.R
no_license
Anoopsinghrawat/stargazer
R
false
false
301,763
r
.onAttach <- function(libname, pkgname) { packageStartupMessage("\nPlease cite as: \n") packageStartupMessage(" Hlavac, Marek (2018). stargazer: Well-Formatted Regression and Summary Statistics Tables.") packageStartupMessage(" R package version 5.2.2. https://CRAN.R-project.org/package=stargazer \n") } ...
library(ape) testtree <- read.tree("1646_4.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="1646_4_unrooted.txt")
/codeml_files/newick_trees_processed/1646_4/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("1646_4.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="1646_4_unrooted.txt")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spatial_visuals.R \name{plotUMAP} \alias{plotUMAP} \title{plotUMAP} \usage{ plotUMAP(gobject, dim_reduction_name = "umap", default_save_name = "UMAP", ...) } \arguments{ \item{gobject}{giotto object} \item{dim_reduction_name}{dimension reduc...
/doc/plotUMAP.Rd
no_license
bernard2012/spatialgiotto_web
R
false
true
3,049
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spatial_visuals.R \name{plotUMAP} \alias{plotUMAP} \title{plotUMAP} \usage{ plotUMAP(gobject, dim_reduction_name = "umap", default_save_name = "UMAP", ...) } \arguments{ \item{gobject}{giotto object} \item{dim_reduction_name}{dimension reduc...
#' Akaike information criterion #' #' @description Akaike information criterion for model selection. #' #' @param model An object of class \code{lm}. #' #' @param method A character vector; specify the method to compute AIC. Valid #' options include R, STATA and SAS. #' #' @details #' AIC provides a means for model s...
/R/ols-information-criteria.R
no_license
kaushikmanikonda/olsrr
R
false
false
14,925
r
#' Akaike information criterion #' #' @description Akaike information criterion for model selection. #' #' @param model An object of class \code{lm}. #' #' @param method A character vector; specify the method to compute AIC. Valid #' options include R, STATA and SAS. #' #' @details #' AIC provides a means for model s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/body.R \name{body_get_wb_cols} \alias{body_get_wb_cols} \title{Compute the columns of the workbook which are occupied by the body} \usage{ body_get_wb_cols(tab) } \arguments{ \item{tab}{The core tab object} } \description{ Compute the columns...
/man/body_get_wb_cols.Rd
no_license
harryprince/xltabr
R
false
true
370
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/body.R \name{body_get_wb_cols} \alias{body_get_wb_cols} \title{Compute the columns of the workbook which are occupied by the body} \usage{ body_get_wb_cols(tab) } \arguments{ \item{tab}{The core tab object} } \description{ Compute the columns...
testlist <- list(a = 0L, b = 0L, x = c(16722175L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610131026-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
119
r
testlist <- list(a = 0L, b = 0L, x = c(16722175L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/neuro_surface.R \docType{methods} \name{[[,NeuroSurfaceVector,numeric-method} \alias{[[,NeuroSurfaceVector,numeric-method} \title{extractor} \usage{ \S4method{[[}{NeuroSurfaceVector,numeric}(x, i) } \arguments{ \item{x}{the object} \item{i}{...
/man/sub-sub-NeuroSurfaceVector-numeric-method.Rd
no_license
bbuchsbaum/neurosurf
R
false
true
361
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/neuro_surface.R \docType{methods} \name{[[,NeuroSurfaceVector,numeric-method} \alias{[[,NeuroSurfaceVector,numeric-method} \title{extractor} \usage{ \S4method{[[}{NeuroSurfaceVector,numeric}(x, i) } \arguments{ \item{x}{the object} \item{i}{...
#### Lukas Beinhauer 08/12/20 #### ## Making various functions ## ### Attention: 'sep.objects' ist not returning separate objects at the moment. If desired, ### you can use 'list', and cycle through the elements of the list in a for loop AFTER calling ### and the function and storing the list in an object. ### #...
/Functions.R
no_license
LBeinhauer/VariousFunctions
R
false
false
3,374
r
#### Lukas Beinhauer 08/12/20 #### ## Making various functions ## ### Attention: 'sep.objects' ist not returning separate objects at the moment. If desired, ### you can use 'list', and cycle through the elements of the list in a for loop AFTER calling ### and the function and storing the list in an object. ### #...
pollutantmean <- function(directory, pollutant, id = 1:332) { append_df = data.frame() for(i in id){ file = read.csv(list.files(directory)[i]) append_df = rbind(append_df, file) } return(mean(append_df[, paste(pollutant)], na.rm = T)) } #Instructions can be found on the coursera website, Assigm...
/pollutantmean.R
no_license
oyafusoz/RProgrammingCoursera
R
false
false
549
r
pollutantmean <- function(directory, pollutant, id = 1:332) { append_df = data.frame() for(i in id){ file = read.csv(list.files(directory)[i]) append_df = rbind(append_df, file) } return(mean(append_df[, paste(pollutant)], na.rm = T)) } #Instructions can be found on the coursera website, Assigm...
x1 = rnorm(100, mean = 200, sd = 60) y1 = rnorm(100, mean = 10, sd = 10) x2 = rnorm(100, mean = 10, sd = 20) y2 = rnorm(100, mean = 400, sd = 200) x3 = rnorm(100, mean = 200, sd = 50) y3 = rnorm(100, mean = 800, sd = 10) x = as.matrix(c(x1,x2, x3)) y = as.matrix(c(y1,y2, y3)) A <- cbind(x,y) par(mfrow ...
/MACHINE-LEARNING/LABS-progs/ann/All_Labs/7Lab_cluster/2.r
no_license
BC30138/Sem10
R
false
false
894
r
x1 = rnorm(100, mean = 200, sd = 60) y1 = rnorm(100, mean = 10, sd = 10) x2 = rnorm(100, mean = 10, sd = 20) y2 = rnorm(100, mean = 400, sd = 200) x3 = rnorm(100, mean = 200, sd = 50) y3 = rnorm(100, mean = 800, sd = 10) x = as.matrix(c(x1,x2, x3)) y = as.matrix(c(y1,y2, y3)) A <- cbind(x,y) par(mfrow ...
#' Inset small plot within figure #' #' Inset plot with margins, background and border #' #' @return parameters of small plot, invisible. #' @section Warning: setting mai etc does not work! #' @author Berry Boessenkool, \email{berry-b@@gmx.de}, 2014 #' @seealso \code{\link{colPointsHist}} for an example of usa...
/berryFunctions/R/smallPlot.R
no_license
ingted/R-Examples
R
false
false
4,623
r
#' Inset small plot within figure #' #' Inset plot with margins, background and border #' #' @return parameters of small plot, invisible. #' @section Warning: setting mai etc does not work! #' @author Berry Boessenkool, \email{berry-b@@gmx.de}, 2014 #' @seealso \code{\link{colPointsHist}} for an example of usa...
#' Ancestor-Descendant Relationships for Macroperforate Foraminifera, from Aze et al. (2011) #' #' An example dataset of ancestor-descendent relationships and first and last appearance dates for #' a set of macroperforate Foramanifera, taken from the supplemental materials of Aze et al. (2011). #' This dataset is inclu...
/R/macroperforateForam.R
permissive
pnovack-gottshall/paleotree
R
false
false
13,742
r
#' Ancestor-Descendant Relationships for Macroperforate Foraminifera, from Aze et al. (2011) #' #' An example dataset of ancestor-descendent relationships and first and last appearance dates for #' a set of macroperforate Foramanifera, taken from the supplemental materials of Aze et al. (2011). #' This dataset is inclu...
############################## #### Analisi multivariata #### ############################## library(raster) library(RStoolbox) setwd("/Users/federicotossani/lab/") p224r63_2011<-brick("p224r63_2011_masked.grd") #uso brick per caricare un set multiplo di dati! #raster invece carica un set per volta!! p224r63_2011 #...
/R_code_PCA.r
no_license
FedericoTossani/Telerilevamento_2021
R
false
false
4,224
r
############################## #### Analisi multivariata #### ############################## library(raster) library(RStoolbox) setwd("/Users/federicotossani/lab/") p224r63_2011<-brick("p224r63_2011_masked.grd") #uso brick per caricare un set multiplo di dati! #raster invece carica un set per volta!! p224r63_2011 #...
# testplot <- function(meansdf, xvar = "condition", yvar = "means", # fillvar = "condition") { # p <- ggplot(meansdf, # aes_string(x = xvar, y= yvar, fill = fillvar)) + # geom_bar(position="dodge", stat="identity") # } # # # # testplot <- function(meansdf) # { # scale <- 0....
/R/scrub_code.R
no_license
moj-analytical-services/las_rap_code_library
R
false
false
642
r
# testplot <- function(meansdf, xvar = "condition", yvar = "means", # fillvar = "condition") { # p <- ggplot(meansdf, # aes_string(x = xvar, y= yvar, fill = fillvar)) + # geom_bar(position="dodge", stat="identity") # } # # # # testplot <- function(meansdf) # { # scale <- 0....
# This file is focusing on PCA and persistant homology for iris data library(devtools) library(TDA) library(TDAmapper) library(ggplot2) library("FactoMineR") library("factoextra") # Read data data <- read.table("data/Iris.csv", header=TRUE, sep=",", dec=".", quote = "\"", na.strings = "NA") data <- data[, 2:5] # Pick ...
/R/iris_pca.R
no_license
bmagnette/AstraZeneca_TDA
R
false
false
2,337
r
# This file is focusing on PCA and persistant homology for iris data library(devtools) library(TDA) library(TDAmapper) library(ggplot2) library("FactoMineR") library("factoextra") # Read data data <- read.table("data/Iris.csv", header=TRUE, sep=",", dec=".", quote = "\"", na.strings = "NA") data <- data[, 2:5] # Pick ...
\name{nonparboot-methods} \docType{methods} \alias{nonparboot} \alias{nonparboot-methods} \alias{nonparboot,unmarkedFit-method} \alias{nonparboot,unmarkedFitColExt-method} \alias{nonparboot,unmarkedFitDS-method} \alias{nonparboot,unmarkedFitMPois-method} \alias{nonparboot,unmarkedFitOccu-method} \alias{nonparboot,unmar...
/man/nonparboot-methods.Rd
no_license
buco/unmarked
R
false
false
2,621
rd
\name{nonparboot-methods} \docType{methods} \alias{nonparboot} \alias{nonparboot-methods} \alias{nonparboot,unmarkedFit-method} \alias{nonparboot,unmarkedFitColExt-method} \alias{nonparboot,unmarkedFitDS-method} \alias{nonparboot,unmarkedFitMPois-method} \alias{nonparboot,unmarkedFitOccu-method} \alias{nonparboot,unmar...
# Read in files rawdata<- read.csv("MERGED2016_17_PP.csv",stringsAsFactors = F) dim(rawdata) rankingdata<- read.csv("ForbesRank.csv") dim(rankingdata) variables<- c("UNITID","OPEID","OPEID6","INSTNM","CITY","STABBR","ZIP","INSTURL","LATITUDE", "LONGITUDE","ADM_RATE","SATVR25","SATVR75","SATMT25","SATMT75"...
/R Shiny-College Recommendation System/doc/Interactive map/DataCleaning.R
no_license
stella-chen28/My-repository
R
false
false
3,041
r
# Read in files rawdata<- read.csv("MERGED2016_17_PP.csv",stringsAsFactors = F) dim(rawdata) rankingdata<- read.csv("ForbesRank.csv") dim(rankingdata) variables<- c("UNITID","OPEID","OPEID6","INSTNM","CITY","STABBR","ZIP","INSTURL","LATITUDE", "LONGITUDE","ADM_RATE","SATVR25","SATVR75","SATMT25","SATMT75"...
############################################## # # General description: # # The following script loads standard packages and functions to be used in # the L1polymORF project # Input: # # # Output: # # : ############################################## ###################################...
/Scripts/_Start_L1polymORF.R
no_license
hdohna/L1polymORFgit
R
false
false
1,014
r
############################################## # # General description: # # The following script loads standard packages and functions to be used in # the L1polymORF project # Input: # # # Output: # # : ############################################## ###################################...
library(spatstat) ### Name: lohboot ### Title: Bootstrap Confidence Bands for Summary Function ### Aliases: lohboot ### Keywords: spatial nonparametric ### ** Examples p <- lohboot(simdat, stoyan=0.5) plot(p)
/data/genthat_extracted_code/spatstat/examples/lohboot.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
220
r
library(spatstat) ### Name: lohboot ### Title: Bootstrap Confidence Bands for Summary Function ### Aliases: lohboot ### Keywords: spatial nonparametric ### ** Examples p <- lohboot(simdat, stoyan=0.5) plot(p)
# Load the packages we plan to use library(magrittr) library(dplyr) library(tidyr) library(reshape2) library(ggplot2) library(shiny) # Read the data read.csv("CSV data/K12headcount_salary.csv", header=TRUE, strip.white = TRUE) -> staffing # Checking the numbers in K12headcount_salary.csv vs. K12headcount_school.csv #...
/staffing.r
no_license
AlexReutter/VT-Schools
R
false
false
3,634
r
# Load the packages we plan to use library(magrittr) library(dplyr) library(tidyr) library(reshape2) library(ggplot2) library(shiny) # Read the data read.csv("CSV data/K12headcount_salary.csv", header=TRUE, strip.white = TRUE) -> staffing # Checking the numbers in K12headcount_salary.csv vs. K12headcount_school.csv #...
setwd("U:/gwdata") rm(list=ls()) library(xlsx) library(sandwich) source('R/goos.r') source('R/feval.r') source('R/supfun.r') ############################################################# ############## Goyal-Welch 2008 Data ####################### ############################################################# # shee...
/R/forecast excess returns.R
permissive
anwenyin/ooscombo
R
false
false
6,821
r
setwd("U:/gwdata") rm(list=ls()) library(xlsx) library(sandwich) source('R/goos.r') source('R/feval.r') source('R/supfun.r') ############################################################# ############## Goyal-Welch 2008 Data ####################### ############################################################# # shee...
#' @export load_redshift <- function(stock) { rs_conn <- tastytrade::redshift_connect("TASTYTRADE") if (!RJDBC::dbExistsTable(rs_conn, stock)) { RJDBC::dbSendUpdate(rs_conn, paste0("create table if not exists ", stock, "( symbol varchar(5) not null, quotedate date, cal...
/R/load_redshift.R
no_license
IanMadlenya/tastytrade
R
false
false
1,397
r
#' @export load_redshift <- function(stock) { rs_conn <- tastytrade::redshift_connect("TASTYTRADE") if (!RJDBC::dbExistsTable(rs_conn, stock)) { RJDBC::dbSendUpdate(rs_conn, paste0("create table if not exists ", stock, "( symbol varchar(5) not null, quotedate date, cal...
library(tm) ; library(wordcloud2) library(dplyr) rmwords <- c("a", "the", "A", "The", "and","but","And", "But", "is", "are","Is","Are","was", "were","Was", "Were", "of", "in","this","that", "I", ) sub <- function (c){ a <- c a <- lapply(a, function(x) tolower(a)) for (i in rmwords) { ...
/Linux_Hadoop/Hadoop/unfinished_RWordcloud.R
no_license
psm9619/SQL-Linux-Hadoop
R
false
false
1,285
r
library(tm) ; library(wordcloud2) library(dplyr) rmwords <- c("a", "the", "A", "The", "and","but","And", "But", "is", "are","Is","Are","was", "were","Was", "Were", "of", "in","this","that", "I", ) sub <- function (c){ a <- c a <- lapply(a, function(x) tolower(a)) for (i in rmwords) { ...
# Momente einer Verteilung für Daten interessant # Passen die Daten zu meiner Verteilung? # Aufgabe 1 #################################################################### X <- rnorm(10000, mean = 1, sd = sqrt(2)) U <- runif(10000, -1 + x, 1 + x) Y <- X + U # mean emp.mean1 <- mean(Y) emp.mean2 <- mean(X) + mean(Y) p...
/ue8.R
no_license
rgr02/Programmieren-mit-Statistischer-Software
R
false
false
2,150
r
# Momente einer Verteilung für Daten interessant # Passen die Daten zu meiner Verteilung? # Aufgabe 1 #################################################################### X <- rnorm(10000, mean = 1, sd = sqrt(2)) U <- runif(10000, -1 + x, 1 + x) Y <- X + U # mean emp.mean1 <- mean(Y) emp.mean2 <- mean(X) + mean(Y) p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mergeTerms_Function.R \name{mergeTerms} \alias{mergeTerms} \title{Transform, merge, separate, or delete terms from a corpus} \usage{ mergeTerms(data.td, term, term.replacement) } \arguments{ \item{data.td}{A tidy dataset} \item{term}{A user ...
/man/mergeTerms.Rd
no_license
JSmith146/CoRpEx
R
false
true
1,411
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mergeTerms_Function.R \name{mergeTerms} \alias{mergeTerms} \title{Transform, merge, separate, or delete terms from a corpus} \usage{ mergeTerms(data.td, term, term.replacement) } \arguments{ \item{data.td}{A tidy dataset} \item{term}{A user ...
library(tidyverse) library(pgirmess) almost_sas <- function(aov.results){ aov_residuals <- residuals(aov.results) par(mfrow=c(2,2)) plot(aov.results, which=1) hist(aov_residuals) plot(aov.results, which=2) plot(density(aov_residuals)) } HDL <- c(54, 43, 38, 30, 61, 53, 35, 34, 39, 46, 50, 35, 61...
/15-7 Kruskal-Wallis.R
no_license
kaylinregan/STA4173
R
false
false
895
r
library(tidyverse) library(pgirmess) almost_sas <- function(aov.results){ aov_residuals <- residuals(aov.results) par(mfrow=c(2,2)) plot(aov.results, which=1) hist(aov_residuals) plot(aov.results, which=2) plot(density(aov_residuals)) } HDL <- c(54, 43, 38, 30, 61, 53, 35, 34, 39, 46, 50, 35, 61...
#' Engines of other languages #' #' This object controls how to execute the code from languages other than R #' (when the chunk option \code{engine} is not \code{'R'}). Each component in #' this object is a function that takes a list of current chunk options #' (including the source code) and returns a character string...
/R/engine.R
no_license
Honglongwu/knitr
R
false
false
1,735
r
#' Engines of other languages #' #' This object controls how to execute the code from languages other than R #' (when the chunk option \code{engine} is not \code{'R'}). Each component in #' this object is a function that takes a list of current chunk options #' (including the source code) and returns a character string...
source('/datascience/projects/statisticallyfit/github/learningstatistics/RStatistics/StatsFormulas.R') critique <- matrix(c(24,8,10,8,13,9,13,11,64),nrow=3, dimnames=list("Siskel"=c("con","mixed","pro"), "Ebert"=c("con","mixed","pro"))) critique LikelihoodRatioTest...
/UniPennState_GeneralizedLinearModels/TwoWayTable/Agreement_Kappa_Movie.R
no_license
statisticallyfit/RStatistics
R
false
false
388
r
source('/datascience/projects/statisticallyfit/github/learningstatistics/RStatistics/StatsFormulas.R') critique <- matrix(c(24,8,10,8,13,9,13,11,64),nrow=3, dimnames=list("Siskel"=c("con","mixed","pro"), "Ebert"=c("con","mixed","pro"))) critique LikelihoodRatioTest...
#' @title Search Author Content on SCOPUS #' #' @description Searches SCOPUS to get information about documents #' on an author. #' Note, \code{author_list} returns a list of the entries from #' \code{author_search}, #' but allows you to put in a name. #' @param au_id Author ID number. Overrides any first/last name ar...
/R/author_df.R
no_license
cran/rscopus
R
false
false
7,166
r
#' @title Search Author Content on SCOPUS #' #' @description Searches SCOPUS to get information about documents #' on an author. #' Note, \code{author_list} returns a list of the entries from #' \code{author_search}, #' but allows you to put in a name. #' @param au_id Author ID number. Overrides any first/last name ar...
ApparrentCindex <- pec::cindex(list("Cox X1"=cox1, "Cox X2"=cox2, "Cox X1+X2"=cox12, "RSF"=rsf1), formula=Surv(time,status)~X1+X2, data=dat, ...
/cindex.R
no_license
csetraynor/Code_BYM_Warwick
R
false
false
597
r
ApparrentCindex <- pec::cindex(list("Cox X1"=cox1, "Cox X2"=cox2, "Cox X1+X2"=cox12, "RSF"=rsf1), formula=Surv(time,status)~X1+X2, data=dat, ...
library(ape) testtree <- read.tree("4910_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4910_0_unrooted.txt")
/codeml_files/newick_trees_processed/4910_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("4910_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4910_0_unrooted.txt")
########################################################################################## # Designed and developed by Tinniam V Ganesh # Date : 30 Mar 2016 # Function: saveAllMatchesBetweenTeams # This function saves all matches between 2 teams as a single dataframe ####################################################...
/R/saveAllMatchesBetweenTeams.R
no_license
bcdunbar/yorkr
R
false
false
1,990
r
########################################################################################## # Designed and developed by Tinniam V Ganesh # Date : 30 Mar 2016 # Function: saveAllMatchesBetweenTeams # This function saves all matches between 2 teams as a single dataframe ####################################################...
## Reading Dataset in R power <- read.table('C:/Users/swastikaa/Documents/DataScience/Course4/household_power_consumption.txt', header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) ## Format date to Type Date power$...
/course1_week1_project_plot4.R
no_license
swastikaacharya1/ds_course4_week1_project
R
false
false
1,882
r
## Reading Dataset in R power <- read.table('C:/Users/swastikaa/Documents/DataScience/Course4/household_power_consumption.txt', header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) ## Format date to Type Date power$...
#' A function for analyzing two-sample problems #' #' The rank.two.sample() function #' #' @param formula A model \code{\link{formula}} object. The left hand side #' contains the response variable and the right hand side contains the factor #' variables of interest. An interaction term must be specified. #' @p...
/rankFD/R/ranktwosamples.R
no_license
ingted/R-Examples
R
false
false
16,893
r
#' A function for analyzing two-sample problems #' #' The rank.two.sample() function #' #' @param formula A model \code{\link{formula}} object. The left hand side #' contains the response variable and the right hand side contains the factor #' variables of interest. An interaction term must be specified. #' @p...
########## Gets Data Organized To Go Into Models bframe1 <-data.frame(read.table("TaggedSdl.txt",header=T)) ######################### Tree plots #####Standard plots allplots <- c('YOHOPIPO','CCRPIPO','CRCRPIPO','FFS7CONTROL','FFS6BURN','FFS5BURN','FFS2BURN','LOTHAR','UPTHAR','LOLOG','UPLOG','LOGPIJE','SFTRABMA','WTAB...
/DataOrganization.R
no_license
emoran5/SeedlingModel
R
false
false
17,543
r
########## Gets Data Organized To Go Into Models bframe1 <-data.frame(read.table("TaggedSdl.txt",header=T)) ######################### Tree plots #####Standard plots allplots <- c('YOHOPIPO','CCRPIPO','CRCRPIPO','FFS7CONTROL','FFS6BURN','FFS5BURN','FFS2BURN','LOTHAR','UPTHAR','LOLOG','UPLOG','LOGPIJE','SFTRABMA','WTAB...
\name{summary.propagate} \alias{summary.propagate} \title{Summary function for 'propagate' objects} \description{ Provides a printed summary of the results obtained by \code{\link{propagate}}, such as statistics of the first/second-order uncertainty propagation, Monte Carlo simulation, the covariance matrix, sy...
/man/summary.propagate.Rd
no_license
ProfessorPeregrine/propagate
R
false
false
2,016
rd
\name{summary.propagate} \alias{summary.propagate} \title{Summary function for 'propagate' objects} \description{ Provides a printed summary of the results obtained by \code{\link{propagate}}, such as statistics of the first/second-order uncertainty propagation, Monte Carlo simulation, the covariance matrix, sy...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/connection.R \docType{methods} \name{dbConnect,PqDriver-method} \alias{dbConnect,PqDriver-method} \alias{dbDisconnect,PqConnection-method} \title{Connect to a PostgreSQL database.} \usage{ \S4method{dbConnect}{PqDriver}(drv, dbname = ...
/man/dbConnect-PqDriver-method.Rd
no_license
robertzk/RPostgres
R
false
false
1,466
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/connection.R \docType{methods} \name{dbConnect,PqDriver-method} \alias{dbConnect,PqDriver-method} \alias{dbDisconnect,PqConnection-method} \title{Connect to a PostgreSQL database.} \usage{ \S4method{dbConnect}{PqDriver}(drv, dbname = ...
source('getDataGeneral.R') getDataCovid19datahubWithoutRecovered('Peru')
/getPeru.R
permissive
proffsg2020/nCovForecast
R
false
false
74
r
source('getDataGeneral.R') getDataCovid19datahubWithoutRecovered('Peru')
library(RSQLite) conn <- dbConnect(RSQLite::SQLite(), "../perso/smiles_clean.db") set.seed(1) n_train = 0 n_test = 0 MolFormulas = data.frame() for(k in dir('~/perso/process_full/')){ print(k) data = read.csv(paste0('~/perso/process_full/',k)) colnames(data)[1] = 'id' data = data[data$orga == 'True',] MolF...
/notebook/20201212_convert_db.R
no_license
DimitriF/gpt-smiles
R
false
false
1,547
r
library(RSQLite) conn <- dbConnect(RSQLite::SQLite(), "../perso/smiles_clean.db") set.seed(1) n_train = 0 n_test = 0 MolFormulas = data.frame() for(k in dir('~/perso/process_full/')){ print(k) data = read.csv(paste0('~/perso/process_full/',k)) colnames(data)[1] = 'id' data = data[data$orga == 'True',] MolF...
shinyDataFilter_resourcePath <- function() { singleton(shiny::addResourcePath( "shinyDataFilter_shared", system.file(package = "shinyDataFilter", "www", "shared"))) }
/R/singleton_resourcePath.R
permissive
dgkf/shinyDataFilter
R
false
false
176
r
shinyDataFilter_resourcePath <- function() { singleton(shiny::addResourcePath( "shinyDataFilter_shared", system.file(package = "shinyDataFilter", "www", "shared"))) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stream_data.R \name{stream_write_memory} \alias{stream_write_memory} \title{Write Memory Stream} \usage{ stream_write_memory(x, name = random_string("sparklyr_tmp_"), mode = c("append", "complete", "update"), trigger = stream_trigger_inte...
/man/stream_write_memory.Rd
permissive
shabbybanks/sparklyr
R
false
true
1,950
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stream_data.R \name{stream_write_memory} \alias{stream_write_memory} \title{Write Memory Stream} \usage{ stream_write_memory(x, name = random_string("sparklyr_tmp_"), mode = c("append", "complete", "update"), trigger = stream_trigger_inte...
source("element.R") library(xgboost) threads=detectCores() number_of_core=threads/2 time_start<-Sys.time() source("dlt_sum_L3.R") m_r_ab_org<-as.matrix(read.csv(file = "l3_ab.csv", header = FALSE))[-1,] m_r_ab_org<-m_r_ab_org[,-1] row_result<-dim(m_r_ab_org)[1]-1 m_r_ab<-head(m_r_ab_org,row_result) result<-tail(dlt,...
/dlt_sum_L4.R
no_license
dlt-lee/dlt
R
false
false
3,881
r
source("element.R") library(xgboost) threads=detectCores() number_of_core=threads/2 time_start<-Sys.time() source("dlt_sum_L3.R") m_r_ab_org<-as.matrix(read.csv(file = "l3_ab.csv", header = FALSE))[-1,] m_r_ab_org<-m_r_ab_org[,-1] row_result<-dim(m_r_ab_org)[1]-1 m_r_ab<-head(m_r_ab_org,row_result) result<-tail(dlt,...
\name{dnacopy.smoothvec} \alias{dnacopy.smoothvec} \title{dnacopy smoothvec} \description{Smooth a profile using DNAcopy.} \usage{dnacopy.smoothvec(profile, var, vals, ...)} \arguments{ \item{profile}{A profile data.frame.} \item{var}{Smoothness variable.} \item{vals}{Smoothness values.} \item{\dots}{O...
/man/dnacopy.smoothvec.Rd
no_license
tdhock/bams
R
false
false
459
rd
\name{dnacopy.smoothvec} \alias{dnacopy.smoothvec} \title{dnacopy smoothvec} \description{Smooth a profile using DNAcopy.} \usage{dnacopy.smoothvec(profile, var, vals, ...)} \arguments{ \item{profile}{A profile data.frame.} \item{var}{Smoothness variable.} \item{vals}{Smoothness values.} \item{\dots}{O...
x <- tibble::as_tibble(iris[c(1, 2, 51, 52), c(5, 1)]) test_that("as_flextable.data.frame", { expect_identical(as_flextable(x), flextable::flextable(x)) expect_identical( as_flextable(x, with_blanks("Species", "Sepal.Length")), flextable::flextable( x, col_keys = c("Species", "..after1", "..bef...
/tests/testthat/test-as-flextable.R
permissive
jmbarbone/ftExtra
R
false
false
1,107
r
x <- tibble::as_tibble(iris[c(1, 2, 51, 52), c(5, 1)]) test_that("as_flextable.data.frame", { expect_identical(as_flextable(x), flextable::flextable(x)) expect_identical( as_flextable(x, with_blanks("Species", "Sepal.Length")), flextable::flextable( x, col_keys = c("Species", "..after1", "..bef...
##FUNCTIONS ##HW8 Data Analysis #Separate a string with "," x<-c("n","a","i","v","y") stc<- function(x){ str_c(x, collapse=",") } stc(x) #Finding the daily mean grouping by site and date o3summarize<-function(x){ out<- group_by(x, site=as.factor(site), date)%>% summarize(o3=mean(obs, na.rm=TR...
/functions_es207_hw8.R
no_license
nrodalmorales/es_207_hw8
R
false
false
1,332
r
##FUNCTIONS ##HW8 Data Analysis #Separate a string with "," x<-c("n","a","i","v","y") stc<- function(x){ str_c(x, collapse=",") } stc(x) #Finding the daily mean grouping by site and date o3summarize<-function(x){ out<- group_by(x, site=as.factor(site), date)%>% summarize(o3=mean(obs, na.rm=TR...
models <- list()
/src/core/learning/models/__AUTOLOAD.R
no_license
imclab/cai
R
false
false
17
r
models <- list()
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/psut.R \name{collapse_to_psut} \alias{collapse_to_psut} \title{Convert a tidy data frame to PSUT matrices} \usage{ collapse_to_psut( .df, matrix_class = c("matrix", "Matrix"), country = MWTools::mw_cols$country, year = MWTools::mw_col...
/man/collapse_to_psut.Rd
permissive
EnergyEconomyDecoupling/MWTools
R
false
true
2,610
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/psut.R \name{collapse_to_psut} \alias{collapse_to_psut} \title{Convert a tidy data frame to PSUT matrices} \usage{ collapse_to_psut( .df, matrix_class = c("matrix", "Matrix"), country = MWTools::mw_cols$country, year = MWTools::mw_col...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ttest.R \name{t_fit} \alias{t_fit} \title{hypothesis function} \usage{ t_fit(mydata) } \arguments{ \item{mydata}{...} } \value{ } \description{ hypothesis function }
/man/t_fit.Rd
no_license
EthanTat/FinalPackage
R
false
true
245
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ttest.R \name{t_fit} \alias{t_fit} \title{hypothesis function} \usage{ t_fit(mydata) } \arguments{ \item{mydata}{...} } \value{ } \description{ hypothesis function }
## Look at rivaslab data external_files_path = "/oak/stanford/groups/mrivas/private_data/ukbb/24983/imp/pgen/" analysis_name = "rivaslab_ukbb_imputed_30k_rand_controls_sex_age" covariates_path = "/oak/stanford/groups/mrivas/private_data/ukbb/24983/phe_qc/ukb24983_GWAS_covar.phe" subject_ids_path = "/oak/stanford/group...
/archive/rivaslab_imp_data_create_control_set.R
no_license
david-dd-amar/fitness_genetics
R
false
false
8,302
r
## Look at rivaslab data external_files_path = "/oak/stanford/groups/mrivas/private_data/ukbb/24983/imp/pgen/" analysis_name = "rivaslab_ukbb_imputed_30k_rand_controls_sex_age" covariates_path = "/oak/stanford/groups/mrivas/private_data/ukbb/24983/phe_qc/ukb24983_GWAS_covar.phe" subject_ids_path = "/oak/stanford/group...
library(CEGO) ### Name: distanceNumericLCStr ### Title: Longest Common Substring for Numeric Vectors ### Aliases: distanceNumericLCStr ### ** Examples #e.g., used for distance between bit strings x <- c(0,1,0,1,0) y <- c(1,1,0,0,1) distanceNumericLCStr(x,y) p <- replicate(10,sample(c(0,1),5,replace=TRUE),simplify=F...
/data/genthat_extracted_code/CEGO/examples/distanceNumericLCStr.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
369
r
library(CEGO) ### Name: distanceNumericLCStr ### Title: Longest Common Substring for Numeric Vectors ### Aliases: distanceNumericLCStr ### ** Examples #e.g., used for distance between bit strings x <- c(0,1,0,1,0) y <- c(1,1,0,0,1) distanceNumericLCStr(x,y) p <- replicate(10,sample(c(0,1),5,replace=TRUE),simplify=F...
#' @title #' Summarize forest inventory data #' @description #' Get informations about forest inventory plots, like number of individuals, #' mean DBH, q, height, basal area, volume, etc. #' #' @param df A data frame. #' @param plot Quoted name of the plot variable. used to differentiate the data's plots. If this ar...
/R/plot_summarise.R
permissive
Dawa406/forestmangr
R
false
false
13,255
r
#' @title #' Summarize forest inventory data #' @description #' Get informations about forest inventory plots, like number of individuals, #' mean DBH, q, height, basal area, volume, etc. #' #' @param df A data frame. #' @param plot Quoted name of the plot variable. used to differentiate the data's plots. If this ar...
# visitor_hist_adr_usd vs price visitor_hist_adr_usd <- train$visitor_hist_adr_usd price_usd <- train$price_usd # Let's take about 15% standard deviation booking_bool <- vector(mode = "logical", length = nrow(price_usd)) # assign to vectors srch.prop_id <- c(1234-5678) booking_bool <- c(TRUE) # construct the data f...
/kaggle/expedia/visitor_hist_adr_usd__VS__price_usd.R
no_license
ryanrishi/csci183
R
false
false
433
r
# visitor_hist_adr_usd vs price visitor_hist_adr_usd <- train$visitor_hist_adr_usd price_usd <- train$price_usd # Let's take about 15% standard deviation booking_bool <- vector(mode = "logical", length = nrow(price_usd)) # assign to vectors srch.prop_id <- c(1234-5678) booking_bool <- c(TRUE) # construct the data f...