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
#-------------------------------------------- # Model Selection for Regeneration Vs. Tree Similarity #-------------------------------------------- setwd("C:/temp/GIS") library(AICcmodavg) library(car) library(rpart) library(rpart.plot) options("scipen"=100, "digits"=4) #----------------------------- # See...
/5B_OLS_model_selection_RegTree_similarity.R
no_license
KateMMiller/RegenDebtCode
R
false
false
11,419
r
#-------------------------------------------- # Model Selection for Regeneration Vs. Tree Similarity #-------------------------------------------- setwd("C:/temp/GIS") library(AICcmodavg) library(car) library(rpart) library(rpart.plot) options("scipen"=100, "digits"=4) #----------------------------- # See...
# ------------------------------------------------------------------------------ # # Function incorporating clustering between inner and outer loop of nested cv # # ------------------------------------------------------------------------------ # ------------------------------------------------------------------------...
/palab_model/palab_model_clustering_resample.R
no_license
jzhao0802/PA_UK
R
false
false
8,068
r
# ------------------------------------------------------------------------------ # # Function incorporating clustering between inner and outer loop of nested cv # # ------------------------------------------------------------------------------ # ------------------------------------------------------------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/standard_who.R \name{who_centile2value} \alias{who_centile2value} \alias{who_zscore2value} \title{Convert WHO z-scores/centiles to anthro measurements (generic)} \usage{ who_centile2value(x, p = 50, x_var = "agedays", y_var = "htcm", sex = ...
/man/who_centile2value.Rd
permissive
benkeser/hbgd
R
false
true
2,007
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/standard_who.R \name{who_centile2value} \alias{who_centile2value} \alias{who_zscore2value} \title{Convert WHO z-scores/centiles to anthro measurements (generic)} \usage{ who_centile2value(x, p = 50, x_var = "agedays", y_var = "htcm", sex = ...
# VOTER DEMOGRAPHICS # # replicating the charts in the report # "Who heads to the polls? Exploring the Demographics of Voters in British Columbia" (March 2010, BC Stats for Elections BC) # https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.elections.bc.ca%2...
/BCelection2009data.R
no_license
MonkmanMH/BC-election-2009
R
false
false
5,889
r
# VOTER DEMOGRAPHICS # # replicating the charts in the report # "Who heads to the polls? Exploring the Demographics of Voters in British Columbia" (March 2010, BC Stats for Elections BC) # https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.elections.bc.ca%2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/core-file_structure.R \name{arrange_modules} \alias{arrange_modules} \title{Update (optional), and check validity of modules} \usage{ arrange_modules(refresh = FALSE, reset = FALSE, quiet = FALSE) } \arguments{ \item{refresh}{check and update...
/man/arrange_modules.Rd
no_license
beauchamplab/rave
R
false
true
497
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/core-file_structure.R \name{arrange_modules} \alias{arrange_modules} \title{Update (optional), and check validity of modules} \usage{ arrange_modules(refresh = FALSE, reset = FALSE, quiet = FALSE) } \arguments{ \item{refresh}{check and update...
#BAIRT #Bayesian Analysis of Item Response Theory Models #Autor: Javier Martinez <martinezjavier243@gmail.com> # #complementary functions for mcmclist objects # ############################################################################### ###############################################################################...
/R/out.mcmclist.R
no_license
cran/bairt
R
false
false
13,018
r
#BAIRT #Bayesian Analysis of Item Response Theory Models #Autor: Javier Martinez <martinezjavier243@gmail.com> # #complementary functions for mcmclist objects # ############################################################################### ###############################################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_613} \alias{movie_613} \title{Sexual Life} \format{igraph object} \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0376874 } \usage{...
/man/movie_613.Rd
permissive
kjhealy/networkdata
R
false
true
1,003
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_613} \alias{movie_613} \title{Sexual Life} \format{igraph object} \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0376874 } \usage{...
#' Shannon Index #' #' @param proportions proportions #' #' @export shannon_true <- function(proportions) { if (all(is.na(proportions)) | (sum(proportions) - 1)^2 < 1e-10) { input <- proportions[proportions > 0] output <- -sum(input*log(input, base=exp(1))) } else { stop("shannon_true needs a vector of...
/R/estimands.R
no_license
adw96/DivNet
R
false
false
2,590
r
#' Shannon Index #' #' @param proportions proportions #' #' @export shannon_true <- function(proportions) { if (all(is.na(proportions)) | (sum(proportions) - 1)^2 < 1e-10) { input <- proportions[proportions > 0] output <- -sum(input*log(input, base=exp(1))) } else { stop("shannon_true needs a vector of...
# Library loading library(tidyverse) features_data_set <- read.csv2("Features data set.csv" ,header = TRUE , sep = ",") sales_data_set <- read.csv2("sales data-set.csv" ,header = TRUE , sep = ",") stores_data_set <- read.csv2("stores data-set.csv" ,header = TRUE , sep = ",") # Convert Date co sales_d...
/RetailCalisma.R
no_license
AhmetTuncel/Analyzing_RetailSales
R
false
false
896
r
# Library loading library(tidyverse) features_data_set <- read.csv2("Features data set.csv" ,header = TRUE , sep = ",") sales_data_set <- read.csv2("sales data-set.csv" ,header = TRUE , sep = ",") stores_data_set <- read.csv2("stores data-set.csv" ,header = TRUE , sep = ",") # Convert Date co sales_d...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "acute-inflammations") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = mak...
/models/openml_acute-inflammations/classification_Class/f307f7bd9658954e82d00820d9a9551d/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
690
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "acute-inflammations") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = mak...
#X55stations_temp_precip <- read_excel("Downloads/climatedata/MeteoFrance_55stations/55stations_temp&precip.xlsx") X55stations_temp_precip <- read_excel("climatedata/MeteoFrance_55stations/55stations_temp&precip.xlsx", col_types = c("numeric", "text", "text", "text", "text", "text", "numeric", "numeric", "numeric", "nu...
/archive read jpg.R
no_license
hsidb/research-
R
false
false
18,774
r
#X55stations_temp_precip <- read_excel("Downloads/climatedata/MeteoFrance_55stations/55stations_temp&precip.xlsx") X55stations_temp_precip <- read_excel("climatedata/MeteoFrance_55stations/55stations_temp&precip.xlsx", col_types = c("numeric", "text", "text", "text", "text", "text", "numeric", "numeric", "numeric", "nu...
dosedesignR_green <- "#5cb85c" dosedesignR_blue <- "#3a6791" dosedesignR_red <- "#c94053" dosedesignR_white <- "#ebebeb" performSimulation <- function( input, tab, inp, UserValue, sdsim, dmin, dmax, clevel, sim = input$sim, model= input$model ) { for(i in 1:length(inp)) { ...
/inst/shiny-app/dosedesignR/Simulation.R
no_license
cran/dosedesignR
R
false
false
23,677
r
dosedesignR_green <- "#5cb85c" dosedesignR_blue <- "#3a6791" dosedesignR_red <- "#c94053" dosedesignR_white <- "#ebebeb" performSimulation <- function( input, tab, inp, UserValue, sdsim, dmin, dmax, clevel, sim = input$sim, model= input$model ) { for(i in 1:length(inp)) { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/interactive_segments_grob.R \name{interactive_segments_grob} \alias{interactive_segments_grob} \title{Generate interactive segments grob} \usage{ interactive_segments_grob(..., tooltip = NULL, onclick = NULL, data_id = NULL, cl = "interacti...
/man/interactive_segments_grob.Rd
no_license
krishnapsrinivasan/ggiraph
R
false
true
732
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/interactive_segments_grob.R \name{interactive_segments_grob} \alias{interactive_segments_grob} \title{Generate interactive segments grob} \usage{ interactive_segments_grob(..., tooltip = NULL, onclick = NULL, data_id = NULL, cl = "interacti...
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 2.56447093070569e-69, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
/myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615768253-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,803
r
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 2.56447093070569e-69, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
#' @include util-analyses.R util-simulations.R util-relevel_analyses.R util-relevel_simulations.R util-relevel_heterosis.R NULL #' @title Function \code{clean_df} #' @description clean data frame for plotting #' @param d raw data frame #' @export #' @return clean data frame for plotting clean_df = function(d){ d$sim...
/R/util-clean_df.R
no_license
wlandau/fbseqStudies
R
false
false
1,388
r
#' @include util-analyses.R util-simulations.R util-relevel_analyses.R util-relevel_simulations.R util-relevel_heterosis.R NULL #' @title Function \code{clean_df} #' @description clean data frame for plotting #' @param d raw data frame #' @export #' @return clean data frame for plotting clean_df = function(d){ d$sim...
#Load dependencies library(pvclust) library(universalmotif) #Combine motif lists, change names to avoid duplicates rename_motifs = function(motifs){ newmotifs = list() i = 1 #For each motif in list, define new motif name for(motif in motifs){ motif["name"] = paste("motif", i, sep = "") newmotifs[i] ...
/cluster-motifs.R
permissive
milesroberts-123/cluster-motifs
R
false
false
2,695
r
#Load dependencies library(pvclust) library(universalmotif) #Combine motif lists, change names to avoid duplicates rename_motifs = function(motifs){ newmotifs = list() i = 1 #For each motif in list, define new motif name for(motif in motifs){ motif["name"] = paste("motif", i, sep = "") newmotifs[i] ...
REJECT <- unique(c(1640, ## from JimS email Oct 6, 2011 33, 1573, 1618, 1252, 1148, 1253, 1254, ## from Jill 1149, 1150, 1252, 1621, 1201, 1525))
/species/00globalvars_wetland.R
no_license
psolymos/abmianalytics
R
false
false
154
r
REJECT <- unique(c(1640, ## from JimS email Oct 6, 2011 33, 1573, 1618, 1252, 1148, 1253, 1254, ## from Jill 1149, 1150, 1252, 1621, 1201, 1525))
### ========================================================================= ### H3K4me1 and H3K27ac overlap with K562-unique non-promoter peaks ### ------------------------------------------------------------------------- ##load packages------------------ require(TxDb.Hsapiens.UCSC.hg19.knownGene) txdb <- TxDb.Hsapi...
/20160629.R
no_license
changebio/IronMan
R
false
false
9,766
r
### ========================================================================= ### H3K4me1 and H3K27ac overlap with K562-unique non-promoter peaks ### ------------------------------------------------------------------------- ##load packages------------------ require(TxDb.Hsapiens.UCSC.hg19.knownGene) txdb <- TxDb.Hsapi...
install.packages("readr") library(readr) data <- read_csv("https://raw.githubusercontent.com/daviessw/BI586/master/R_Worksheet/Wasting_Data.csv", skip=1) library(ggplot2) boxplot(data$`Average WD (%)`~Transect,data=data, main="not sure what to put here", xlab="Transect", ylab="Average wasting disease %") ```{r,...
/01_download.Wasting_Data.R
no_license
alexiak9/GithubassignmentSN
R
false
false
517
r
install.packages("readr") library(readr) data <- read_csv("https://raw.githubusercontent.com/daviessw/BI586/master/R_Worksheet/Wasting_Data.csv", skip=1) library(ggplot2) boxplot(data$`Average WD (%)`~Transect,data=data, main="not sure what to put here", xlab="Transect", ylab="Average wasting disease %") ```{r,...
library(dplyr) library(stringr) library(ggplot2) library(data.table) # setwd("C:/Users/Jordan/Desktop/Cours/ING5/Data analytics/Airbnb-Analysis-ECE") setwd("C:/Users/Jonat/OneDrive/Bureau/ECE ING5/Data Analytics/Our_Project/Airbnb-Analysis-ECE") # Creates a dataframe containing the country, region, City, date, listin...
/Scripts/data_preparation.R
no_license
Panathan/Airbnb-Analysis-ECE
R
false
false
3,709
r
library(dplyr) library(stringr) library(ggplot2) library(data.table) # setwd("C:/Users/Jordan/Desktop/Cours/ING5/Data analytics/Airbnb-Analysis-ECE") setwd("C:/Users/Jonat/OneDrive/Bureau/ECE ING5/Data Analytics/Our_Project/Airbnb-Analysis-ECE") # Creates a dataframe containing the country, region, City, date, listin...
#set working directory setwd("/Volumes/HD2/Gudkov RNA-seq") #create an character vector with path to all csv files LF = list.files(recursive=T, pattern = paste('*.csv', sep='')) #constructs and executes a function call to read all csv files in all subfolders and rbind the rows together dat = do.call(rbind, lapply(LF...
/R_scripts_from_sen_NGS/create key table.R
no_license
vitaly001/R_for_NGS
R
false
false
423
r
#set working directory setwd("/Volumes/HD2/Gudkov RNA-seq") #create an character vector with path to all csv files LF = list.files(recursive=T, pattern = paste('*.csv', sep='')) #constructs and executes a function call to read all csv files in all subfolders and rbind the rows together dat = do.call(rbind, lapply(LF...
## USEFUL FUNCTIONS## options(scipen=20) options(stringsAsFactors = FALSE) ## Operator Functions ## `%notin%` <- function(x,y) !(x %in% y) `%+%` <- function(x,y) paste(x,y,sep="") ## Wait for Key readkey <- function() { cat ("Press [enter] to continue", fill=TRUE) line <- readline() } ## Generation of Inde...
/imports/tomkit.R
no_license
roacobb/ReportCards
R
false
false
2,394
r
## USEFUL FUNCTIONS## options(scipen=20) options(stringsAsFactors = FALSE) ## Operator Functions ## `%notin%` <- function(x,y) !(x %in% y) `%+%` <- function(x,y) paste(x,y,sep="") ## Wait for Key readkey <- function() { cat ("Press [enter] to continue", fill=TRUE) line <- readline() } ## Generation of Inde...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect.R \name{get_saxonian} \alias{get_saxonian} \title{get_saxonion} \usage{ get_saxonian(txt) } \arguments{ \item{txt}{provide a text you want to translate from German into Saxonian} } \description{ Translates German to Saxonian }
/man/get_saxonian.Rd
permissive
favstats/sachsr
R
false
true
313
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect.R \name{get_saxonian} \alias{get_saxonian} \title{get_saxonion} \usage{ get_saxonian(txt) } \arguments{ \item{txt}{provide a text you want to translate from German into Saxonian} } \description{ Translates German to Saxonian }
library(shiny) library(leaflet) source("osm.R") # Define UI for application that draws a histogram shinyUI( fluidPage( # Application title titlePanel("Open Street Map Project"), # Show a plot of the generated distribution tabsetPanel( tabPanel(title = "Discover", value = "discover_osm",i...
/ui.R
no_license
bhakyuz/osm
R
false
false
3,521
r
library(shiny) library(leaflet) source("osm.R") # Define UI for application that draws a histogram shinyUI( fluidPage( # Application title titlePanel("Open Street Map Project"), # Show a plot of the generated distribution tabsetPanel( tabPanel(title = "Discover", value = "discover_osm",i...
install.packages("tidyr") install.packages("dplyr") install.packages("chron") library(tidyr) library(dplyr) library(chron) rawdata <-read.table("./energy/household_power_consumption.txt", stringsAsFactors = FALSE) tablenames <- strsplit(rawdata[1,1], ";") tablenames <- unlist(tablenames) fulltable <- separ...
/plot1.r
no_license
kythryn/M4W1_Sub
R
false
false
1,070
r
install.packages("tidyr") install.packages("dplyr") install.packages("chron") library(tidyr) library(dplyr) library(chron) rawdata <-read.table("./energy/household_power_consumption.txt", stringsAsFactors = FALSE) tablenames <- strsplit(rawdata[1,1], ";") tablenames <- unlist(tablenames) fulltable <- separ...
cur<- read.csv("currencies.csv") install.packages("corrplot") library(corrplot) targetCurr<- data.frame(cur$Euro, cur$Japanese.Yen, cur$U.K..Pound.Sterling, cur$U.S..Dollar, cur$Australian.Dollar, cur$Indian.Rupee,cur$Chinese.Yuan) library(ggcorrplot) cormat <- roun...
/Currencies/currencies.R
permissive
arijitnaskar1988/R_Assignment_1
R
false
false
424
r
cur<- read.csv("currencies.csv") install.packages("corrplot") library(corrplot) targetCurr<- data.frame(cur$Euro, cur$Japanese.Yen, cur$U.K..Pound.Sterling, cur$U.S..Dollar, cur$Australian.Dollar, cur$Indian.Rupee,cur$Chinese.Yuan) library(ggcorrplot) cormat <- roun...
estimate_heights <- function(buildings_path, floor_height=3.5, k=10) { # print variables used in function print(mget(setdiff(ls(), c("opt", "option_list", match.call()[[1]])))) # Load needed libraries pacman::p_load("rgeos", "FNN", "rgdal") # read buildings from previous step buildings_sp <- readO...
/R/HeightEstimation.R
no_license
davibicudo/matsim-toy
R
false
false
2,245
r
estimate_heights <- function(buildings_path, floor_height=3.5, k=10) { # print variables used in function print(mget(setdiff(ls(), c("opt", "option_list", match.call()[[1]])))) # Load needed libraries pacman::p_load("rgeos", "FNN", "rgdal") # read buildings from previous step buildings_sp <- readO...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sparkR.R \name{setJobGroup} \alias{setJobGroup} \title{Assigns a group ID to all the jobs started by this thread until the group ID is set to a different value or cleared.} \usage{ setJobGroup(groupId, description, interruptOnCancel) } \argum...
/man/setJobGroup.Rd
no_license
cran/SparkR
R
false
true
795
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sparkR.R \name{setJobGroup} \alias{setJobGroup} \title{Assigns a group ID to all the jobs started by this thread until the group ID is set to a different value or cleared.} \usage{ setJobGroup(groupId, description, interruptOnCancel) } \argum...
library(ape) testtree <- read.tree("4602_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4602_0_unrooted.txt")
/codeml_files/newick_trees_processed/4602_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("4602_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4602_0_unrooted.txt")
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(url, "datos.zip") datos <- read.delim("household_power_consumption.txt",header=TRUE, sep= ";",stringsAsFactors = FALSE, na.strings = "?") datos <- na.omit(datos) datos1 <- subset(datos, Dat...
/Plot1.R
no_license
PacoBahena/ExData_Plotting1
R
false
false
708
r
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(url, "datos.zip") datos <- read.delim("household_power_consumption.txt",header=TRUE, sep= ";",stringsAsFactors = FALSE, na.strings = "?") datos <- na.omit(datos) datos1 <- subset(datos, Dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HTDoseResponseCurve.R \name{get_sample_types} \alias{get_sample_types} \title{Sorted unique list of sample types} \usage{ get_sample_types(D) } \arguments{ \item{D}{A data frame matching the form of the output of \code{combine_data_and_map}....
/man/get_sample_types.Rd
no_license
DavidQuigley/HTDoseResponseCurve
R
false
true
1,044
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HTDoseResponseCurve.R \name{get_sample_types} \alias{get_sample_types} \title{Sorted unique list of sample types} \usage{ get_sample_types(D) } \arguments{ \item{D}{A data frame matching the form of the output of \code{combine_data_and_map}....
# Title : TODO # Objective : TODO # Created by: rahmadakbar # Created on: 7/9/21 # gets papers pertaining antibody database from europepmc # import stuff library(europepmc) get_papers = function(){ df = europepmc::epmc_search(query = '"antibody" and "database"', limit=10^6) print(df) current_date = ...
/scripts/get_papers_europepmc.R
no_license
csi-greifflab/manuscript_progress_challenges_on-demand_antibody
R
false
false
826
r
# Title : TODO # Objective : TODO # Created by: rahmadakbar # Created on: 7/9/21 # gets papers pertaining antibody database from europepmc # import stuff library(europepmc) get_papers = function(){ df = europepmc::epmc_search(query = '"antibody" and "database"', limit=10^6) print(df) current_date = ...
#' @keywords internal ## Required for {tidyverse} utils::globalVariables(c(".","Source", ":=")) ## Column Names utils::globalVariables(c( "age", "area_percentage", "building_id", "count_families", "count_floors_pre_eq", "foundation_type", "geo_level_1_id", "geo_level_2_id", "geo_level_3_id", "ground_floor_t...
/R/globals.R
permissive
data-science-competitions/Modeling-Earthquake-Damage
R
false
false
476
r
#' @keywords internal ## Required for {tidyverse} utils::globalVariables(c(".","Source", ":=")) ## Column Names utils::globalVariables(c( "age", "area_percentage", "building_id", "count_families", "count_floors_pre_eq", "foundation_type", "geo_level_1_id", "geo_level_2_id", "geo_level_3_id", "ground_floor_t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/k_smooth.R \name{k.smooth} \alias{k.smooth} \title{Kernel smoothing function} \usage{ k.smooth (raster, sigma, SCALE) } \arguments{ \item{raster}{A RasterLayer object to be smoothed} \item{sigma}{The standard deviation of the Gaussian smooth...
/man/k.smooth.Rd
no_license
wpeterman/ResistanceGA
R
false
true
885
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/k_smooth.R \name{k.smooth} \alias{k.smooth} \title{Kernel smoothing function} \usage{ k.smooth (raster, sigma, SCALE) } \arguments{ \item{raster}{A RasterLayer object to be smoothed} \item{sigma}{The standard deviation of the Gaussian smooth...
##Plot 4 ##load data file -- subset to only load data from the dates 2007-02-01 and 2007-02-02 library(dplyr) filename <- "I:/Data Science Certification/4_Exploratory_Data_Analysis/Project1/household_power_consumption.txt" ds <- read.table(filename, header=TRUE, sep=";", na.strings="?") data <- filter(ds, Date == "1/2/...
/plot4.R
no_license
SSwan13/ExData_Plotting1
R
false
false
1,613
r
##Plot 4 ##load data file -- subset to only load data from the dates 2007-02-01 and 2007-02-02 library(dplyr) filename <- "I:/Data Science Certification/4_Exploratory_Data_Analysis/Project1/household_power_consumption.txt" ds <- read.table(filename, header=TRUE, sep=";", na.strings="?") data <- filter(ds, Date == "1/2/...
#' Print column classes #' #' Prints the class of each column; just saves a small amount of typing #' Works with dataframes and data tables #' #' #' @param df A data frame or data table #' @import data.table #' @export #' @examples #' abc <- as.data.frame(a = c(1, 2, 3, 4, 5), #' b = c("a", "b", "c...
/R/cc.R
no_license
kippjohnson/kippr
R
false
false
421
r
#' Print column classes #' #' Prints the class of each column; just saves a small amount of typing #' Works with dataframes and data tables #' #' #' @param df A data frame or data table #' @import data.table #' @export #' @examples #' abc <- as.data.frame(a = c(1, 2, 3, 4, 5), #' b = c("a", "b", "c...
#library(mlxR) w.dir <- getwd() project.file <- 'monolixRuns/theophylline_project.mlxtran' r <- monolix2simulx(project = project.file, open=TRUE) setwd(w.dir) r <- monolix2simulx(project = project.file, parameter="mode", open=TRUE) setwd(w.dir) r <- monolix2simulx(project = project.file, group=list(size=10), open=TR...
/userGuide_mlxR/demo_monolix2simulx.R
no_license
walsu/mlxR410_demos
R
false
false
884
r
#library(mlxR) w.dir <- getwd() project.file <- 'monolixRuns/theophylline_project.mlxtran' r <- monolix2simulx(project = project.file, open=TRUE) setwd(w.dir) r <- monolix2simulx(project = project.file, parameter="mode", open=TRUE) setwd(w.dir) r <- monolix2simulx(project = project.file, group=list(size=10), open=TR...
/ML-2.R
no_license
bgg11117/ML_with_R
R
false
false
5,325
r
# Chargement de la bibliothèque library (e1071) # Chargement des fonction de addData source("addData.r") ######### Preparation des objets d'enrichissement de données ### Initialisation de la liste contenant les objets d'enrichisement listOfFx2 = list() listOfFx2[[1]] = matrice1ou2 #pedro.fx[[2]] = somme #pedro.fx[[3...
/bot.pedrobis.R
no_license
strategist922/awele
R
false
false
2,338
r
# Chargement de la bibliothèque library (e1071) # Chargement des fonction de addData source("addData.r") ######### Preparation des objets d'enrichissement de données ### Initialisation de la liste contenant les objets d'enrichisement listOfFx2 = list() listOfFx2[[1]] = matrice1ou2 #pedro.fx[[2]] = somme #pedro.fx[[3...
# fetch data from the WGEEL database # # Author: lbeaulaton ############################################################################### # PostgreSQL connection (if needed) if(is.null(options()$sqldf.RPostgreSQL.dbname)) source("R/database_interaction/database_connection.R") #' @title Extract data table/v...
/R/shiny_data_visualisation/shiny_dv/database_data.R
no_license
estidiaz/wg_WGEEL
R
false
false
2,280
r
# fetch data from the WGEEL database # # Author: lbeaulaton ############################################################################### # PostgreSQL connection (if needed) if(is.null(options()$sqldf.RPostgreSQL.dbname)) source("R/database_interaction/database_connection.R") #' @title Extract data table/v...
#' @importFrom graphics legend #' @importFrom stats complete.cases #' @title Screen Data Frames #' @description screener will screen data frames and return details such #' as variable names, class, levels and missing values. \code{plot.screener} #' creates bar plots to visualize % of missing observations for each varia...
/R/screener.R
no_license
anandkumar90/descriptr
R
false
false
3,613
r
#' @importFrom graphics legend #' @importFrom stats complete.cases #' @title Screen Data Frames #' @description screener will screen data frames and return details such #' as variable names, class, levels and missing values. \code{plot.screener} #' creates bar plots to visualize % of missing observations for each varia...
#' # Gillespie's Algorithm Sample Code for SIS Model #' #' ## The Gillespie Function #' #+ gillesp <- function(start, ratefun, trans, pars, times){ t0 <- times[1] # set time to starting time ntimes <- length(times) # totoal time duration X <- start # set state to starting state res <- matrix(n...
/Rscripts/gillespies_algorithm.R
no_license
whalend/disease_modeling_course
R
false
false
5,042
r
#' # Gillespie's Algorithm Sample Code for SIS Model #' #' ## The Gillespie Function #' #+ gillesp <- function(start, ratefun, trans, pars, times){ t0 <- times[1] # set time to starting time ntimes <- length(times) # totoal time duration X <- start # set state to starting state res <- matrix(n...
#' @export Duel <- function(ai_list) { if (length(ai_list$still_to_fight) >= 2) { print("Duelling!") print(paste("AI1:", length(ai_list$still_to_fight[[1]]$chromosomes), ai_list$still_to_fight[[1]]$mutation_rate)) print(paste("AI2:", length(ai_list$still_to_fight[[2]]$chromosomes), ai_list$still_to_fight[...
/R/Duel.R
no_license
zannah-rain/AOE2-AI-Genetic-Algorithm
R
false
false
2,067
r
#' @export Duel <- function(ai_list) { if (length(ai_list$still_to_fight) >= 2) { print("Duelling!") print(paste("AI1:", length(ai_list$still_to_fight[[1]]$chromosomes), ai_list$still_to_fight[[1]]$mutation_rate)) print(paste("AI2:", length(ai_list$still_to_fight[[2]]$chromosomes), ai_list$still_to_fight[...
library(traits) ### Name: ncbi_byname ### Title: Retrieve gene sequences from NCBI by taxon name and gene names. ### Aliases: ncbi_byname ### ** Examples ## Not run: ##D # A single species ##D ncbi_byname(taxa="Acipenser brevirostrum") ##D ##D # Many species ##D species <- c("Colletes similis","Halictus ligatus",...
/data/genthat_extracted_code/traits/examples/ncbi_byname.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
437
r
library(traits) ### Name: ncbi_byname ### Title: Retrieve gene sequences from NCBI by taxon name and gene names. ### Aliases: ncbi_byname ### ** Examples ## Not run: ##D # A single species ##D ncbi_byname(taxa="Acipenser brevirostrum") ##D ##D # Many species ##D species <- c("Colletes similis","Halictus ligatus",...
library(stringr) library(tuneR) source("util.R") transitions = c() sustains = c() ## load the WAV files from .transition load_transitions = function() { if (!dir.exists(".transition")) stop(sprintf("\n No transition samples found in %s. \n Run extract_notes.R first.", getwd())) setwd(".transition") ...
/R/synthesis.R
no_license
skarukas/resynthesis
R
false
false
4,787
r
library(stringr) library(tuneR) source("util.R") transitions = c() sustains = c() ## load the WAV files from .transition load_transitions = function() { if (!dir.exists(".transition")) stop(sprintf("\n No transition samples found in %s. \n Run extract_notes.R first.", getwd())) setwd(".transition") ...
n = 100; sequence<-seq(from=-5,to=5,by=(10/n)) X<-runif(length(sequence),0,1) layout(matrix(c(1,1,1,1,1,1,2,2), 4, 2, byrow = TRUE)) plot(sequence, dnorm(sequence,0,1), type='l', main='Standard Normal Distribution', ylab='Frequence',xlab=' ') points(X,dnorm(X,0,1),col='red', lwd= '0.01',cex=0.01) plot(X...
/normalmontecarlo.R
no_license
FemkeSchurmann/BEP
R
false
false
990
r
n = 100; sequence<-seq(from=-5,to=5,by=(10/n)) X<-runif(length(sequence),0,1) layout(matrix(c(1,1,1,1,1,1,2,2), 4, 2, byrow = TRUE)) plot(sequence, dnorm(sequence,0,1), type='l', main='Standard Normal Distribution', ylab='Frequence',xlab=' ') points(X,dnorm(X,0,1),col='red', lwd= '0.01',cex=0.01) plot(X...
world_mkt_repo = function(market = NULL) { library(rvest) library(EBImage) if(weekdays(Sys.Date()) == "Saturday"){ DATE = paste0(format(Sys.Date(),"%Y"),"/",format(Sys.Date(),"%m"),"/",format(Sys.Date()-1,"%d")) } else if(weekdays(Sys.Date())=="Sunday") { DATE = paste0(format(Sys.Date(),"%Y"),"/",...
/글로벌 시황.R
no_license
Hong-Sung-Hyun/R-code-for-finance
R
false
false
25,744
r
world_mkt_repo = function(market = NULL) { library(rvest) library(EBImage) if(weekdays(Sys.Date()) == "Saturday"){ DATE = paste0(format(Sys.Date(),"%Y"),"/",format(Sys.Date(),"%m"),"/",format(Sys.Date()-1,"%d")) } else if(weekdays(Sys.Date())=="Sunday") { DATE = paste0(format(Sys.Date(),"%Y"),"/",...
ReadConvData <- function (){ # Check if data file is already downloaded, if not: download & unzip if (!file.exists("household_power_consumption.txt")){ url <- paste("https://d396qusza40orc.cloudfront.net/", "exdata%2Fdata%2Fhousehold_power_consumption.zip", sep="...
/code/readconvdata.R
no_license
matyash/ExData_Plotting1
R
false
false
1,288
r
ReadConvData <- function (){ # Check if data file is already downloaded, if not: download & unzip if (!file.exists("household_power_consumption.txt")){ url <- paste("https://d396qusza40orc.cloudfront.net/", "exdata%2Fdata%2Fhousehold_power_consumption.zip", sep="...
##' Get general information on a bill ##' ##' This function is a wrapper for the Votes.getBill() method of the PVS API Votes class which grabs the general information on a bill. The function sends a request with this method to the PVS API for all bill IDs given as a function input, extracts the XML values from the ret...
/pvsR/R/Votes.getBill.R
no_license
ingted/R-Examples
R
false
false
5,313
r
##' Get general information on a bill ##' ##' This function is a wrapper for the Votes.getBill() method of the PVS API Votes class which grabs the general information on a bill. The function sends a request with this method to the PVS API for all bill IDs given as a function input, extracts the XML values from the ret...
% File src/library/stats/man/summary.lm.Rd % Part of the R package, https://www.R-project.org % Copyright 1995-2013 R Core Team % Distributed under GPL 2 or later \name{summary.lm} \alias{summary.lm} \alias{summary.mlm}% mlm is *not* mentioned at all \alias{print.summary.lm} \title{Summarizing Linear Model Fits} \usag...
/bin/R-3.5.1/src/library/stats/man/summary.lm.Rd
permissive
lifebit-ai/exomedepth
R
false
false
4,780
rd
% File src/library/stats/man/summary.lm.Rd % Part of the R package, https://www.R-project.org % Copyright 1995-2013 R Core Team % Distributed under GPL 2 or later \name{summary.lm} \alias{summary.lm} \alias{summary.mlm}% mlm is *not* mentioned at all \alias{print.summary.lm} \title{Summarizing Linear Model Fits} \usag...
# # Copyright 2007-2017 The OpenMx Project # # 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 applicable ...
/inst/models/passing/TwinAnalysis_Multivariate_Matrix_Raw.R
no_license
ktargows/OpenMx
R
false
false
6,312
r
# # Copyright 2007-2017 The OpenMx Project # # 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 applicable ...
library("readr") library("dplyr") library("tidyr") library("ggplot2") library("cqn") library("SummarizedExperiment") library("ggplot2") library("data.table") library("devtools") library("stringr") library("data.table") load_all("../eQTLUtils/") #Specify mandatory metadata columns mandatory_cols = c("sample_id", "genot...
/import_export/importArrayData.R
no_license
inambioinfo/RNAseq_pipeline
R
false
false
11,627
r
library("readr") library("dplyr") library("tidyr") library("ggplot2") library("cqn") library("SummarizedExperiment") library("ggplot2") library("data.table") library("devtools") library("stringr") library("data.table") load_all("../eQTLUtils/") #Specify mandatory metadata columns mandatory_cols = c("sample_id", "genot...
###Simulation Code from Applied Hierarchical Modeling### ### Adapted from Royle and Kery 2015### ### Written by Tommy McLaren### M<- 267 #Spatial replicates J<- 3 #Temporal replicates elev<- runif(n=M, -1,1) #vector for elevation forest<- runif(n=M, -1,1) #vector for forest cover wind<- array(runif(n=M*J, -...
/Hierarchical Modeling code folder/Hierarchical Modeling projects/simulation script.R
no_license
tmclaren1/tmclaren1
R
false
false
8,407
r
###Simulation Code from Applied Hierarchical Modeling### ### Adapted from Royle and Kery 2015### ### Written by Tommy McLaren### M<- 267 #Spatial replicates J<- 3 #Temporal replicates elev<- runif(n=M, -1,1) #vector for elevation forest<- runif(n=M, -1,1) #vector for forest cover wind<- array(runif(n=M*J, -...
#' estimating integrals #' #' estimating integrals using the trapezoid and simpson method #' #' @param x_values A numeric vector #' @param y_values A numeric vector with the same dimensionality as \code{x_values}. #' @param start_value A numeric object #' @param end_value A numeric object #' @param Rule A character obj...
/integrate_it/R/integrate_it.R
no_license
ScottSolomon66/Applied-Statistical-Programming----Midterm
R
false
false
3,481
r
#' estimating integrals #' #' estimating integrals using the trapezoid and simpson method #' #' @param x_values A numeric vector #' @param y_values A numeric vector with the same dimensionality as \code{x_values}. #' @param start_value A numeric object #' @param end_value A numeric object #' @param Rule A character obj...
inputs <- list("1556 9144 6285 339", "6363 1811 2857 7650", "6011 5940 0319 9511", "5537 0213 6797 6815", "5574 8363 8022 9735", "3044 8507 9391 30", "6370 1675 9034 6211 774") oddProcess <- function(odd) { odd <- odd*2 if(odd > 9){ odd <- floor(odd/10) + odd%%10 } o...
/Code eval number check.R
no_license
glenMoutrie/codeeval
R
false
false
809
r
inputs <- list("1556 9144 6285 339", "6363 1811 2857 7650", "6011 5940 0319 9511", "5537 0213 6797 6815", "5574 8363 8022 9735", "3044 8507 9391 30", "6370 1675 9034 6211 774") oddProcess <- function(odd) { odd <- odd*2 if(odd > 9){ odd <- floor(odd/10) + odd%%10 } o...
# # 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) ui <- fluidPage( sliderInput("x", "If x is", min = 1, max = 50, value = 30), sliderInput("...
/Shiny_App/Exercise_2.4/app.R
permissive
melissa-wong/Stats_Examples
R
false
false
923
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) ui <- fluidPage( sliderInput("x", "If x is", min = 1, max = 50, value = 30), sliderInput("...
#' #' @title Generates the results of diversity function and store it on the server #' @description This function is implemented by wapper around the \code{vegan} function \code{diversityDS}. #' @details The function returns ... #' @param data.name.transmit a string character, the name of a dataframe #' @param index an...
/R/diversity_assignDS.R
permissive
StuartWheater/dsMicrobiome
R
false
false
896
r
#' #' @title Generates the results of diversity function and store it on the server #' @description This function is implemented by wapper around the \code{vegan} function \code{diversityDS}. #' @details The function returns ... #' @param data.name.transmit a string character, the name of a dataframe #' @param index an...
library(plotly) d <- read.csv("MER_T12_06.csv") d <- d[c("YYYYMM", "Value", "Description")] for(i in 1:length(d$YYYYMM)) { d$YYYYMM[i] <- paste(substring(d$YYYYMM[i], 1, 4), substring(d$YYYYMM[i], 5, 6), "01", sep = "-") } d <- subset(d, substring(YYYYMM, 6, 7) != "13") d$YYYYMM <- as.Date(d$YYYYMM) sectors <- as.c...
/Assignment-3/1.R
no_license
aditisrinivas97/Data-Analytics-Assignments
R
false
false
3,453
r
library(plotly) d <- read.csv("MER_T12_06.csv") d <- d[c("YYYYMM", "Value", "Description")] for(i in 1:length(d$YYYYMM)) { d$YYYYMM[i] <- paste(substring(d$YYYYMM[i], 1, 4), substring(d$YYYYMM[i], 5, 6), "01", sep = "-") } d <- subset(d, substring(YYYYMM, 6, 7) != "13") d$YYYYMM <- as.Date(d$YYYYMM) sectors <- as.c...
#http://www.r-bloggers.com/developing-a-user-friendly-regular-expression-function-easygregexpr/ easyGregexpr <- function(pattern, charvector, ...) { #require(plyr) if (storage.mode(charvector) != "character") stop("easyGregexpr expects charvector to be a character vector.") #identify all matches regexp...
/R/assocpoint.R
no_license
cran/SeqFeatR
R
false
false
51,388
r
#http://www.r-bloggers.com/developing-a-user-friendly-regular-expression-function-easygregexpr/ easyGregexpr <- function(pattern, charvector, ...) { #require(plyr) if (storage.mode(charvector) != "character") stop("easyGregexpr expects charvector to be a character vector.") #identify all matches regexp...
library('MASS') library('vcd') library('tseries') library('readxl') residuals <- function(m, omega, tc) { lm.result <- LPPL(rTicker,m, omega, tc) return((FittedLPPL(rTicker, lm.result, m, omega, tc) - rTicker$Close)) } residvalue <- residuals(m, omega, tc) partresid <- head(residvalue, n=120) adf.te...
/Residual tests, ADF PP KPSS and CLIP.R
no_license
kupad95/LPPL-Bitcoin-in-R
R
false
false
659
r
library('MASS') library('vcd') library('tseries') library('readxl') residuals <- function(m, omega, tc) { lm.result <- LPPL(rTicker,m, omega, tc) return((FittedLPPL(rTicker, lm.result, m, omega, tc) - rTicker$Close)) } residvalue <- residuals(m, omega, tc) partresid <- head(residvalue, n=120) adf.te...
## [[file:~/git/allo/code/allo.org::*libraries%20and%20functions][libraries and functions:1]] library(dplyr) library(brms) source("allo_functions.R") ## libraries and functions:1 ends here ## [[file:~/git/allo/code/allo.org::*set%20values][set values:1]] genus <- "none" species <- "single" cities <- "single" climate <...
/code/genus_none_species_single_cities_single_climate_none_hetero_smooth.R
no_license
TedwardErker/allo
R
false
false
1,177
r
## [[file:~/git/allo/code/allo.org::*libraries%20and%20functions][libraries and functions:1]] library(dplyr) library(brms) source("allo_functions.R") ## libraries and functions:1 ends here ## [[file:~/git/allo/code/allo.org::*set%20values][set values:1]] genus <- "none" species <- "single" cities <- "single" climate <...
\name{rtopFitVariogram} \alias{rtopFitVariogram} \alias{rtopFitVariogram.rtop} \alias{rtopFitVariogram.SpatialPolygonsDataFrame} \alias{rtopFitVariogram.SpatialPointsDataFrame} \alias{rtopFitVariogram.rtopVariogram} \alias{rtopFitVariogram.rtopVariogramCloud} \title{Fit variogram model to sample variogram of dat...
/man/rtopFitVariogram.Rd
no_license
lhmet-forks/rtop
R
false
false
5,315
rd
\name{rtopFitVariogram} \alias{rtopFitVariogram} \alias{rtopFitVariogram.rtop} \alias{rtopFitVariogram.SpatialPolygonsDataFrame} \alias{rtopFitVariogram.SpatialPointsDataFrame} \alias{rtopFitVariogram.rtopVariogram} \alias{rtopFitVariogram.rtopVariogramCloud} \title{Fit variogram model to sample variogram of dat...
set.seed(100) source('metalsimuestimationholdout2WR.R') # metalsimuestimation('c4') # metalsimuestimation('c5') metalsimuestimationholdout2WR('c9',filenamess='SA150'); metalsimuestimationholdout2WR('c9',filenamess='SA180'); metalsimuestimationholdout2WR('c9',filenamess='SA210');metalsimuestimationholdout2...
/runestimationSIMUholdoutWRcase4.R
no_license
blue6896/ggm3
R
false
false
1,301
r
set.seed(100) source('metalsimuestimationholdout2WR.R') # metalsimuestimation('c4') # metalsimuestimation('c5') metalsimuestimationholdout2WR('c9',filenamess='SA150'); metalsimuestimationholdout2WR('c9',filenamess='SA180'); metalsimuestimationholdout2WR('c9',filenamess='SA210');metalsimuestimationholdout2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tm_plots.R \name{plot_tm_cumdistOverTime} \alias{plot_tm_cumdistOverTime} \title{Make a plot of cumulative distance over time} \usage{ plot_tm_cumdistOverTime( input, summary = FALSE, xstr = NULL, ystr = NULL, alphaLevel = 0.1 ) } \...
/man/plot_tm_cumdistOverTime.Rd
permissive
quantixed/TrackMateR
R
false
true
749
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tm_plots.R \name{plot_tm_cumdistOverTime} \alias{plot_tm_cumdistOverTime} \title{Make a plot of cumulative distance over time} \usage{ plot_tm_cumdistOverTime( input, summary = FALSE, xstr = NULL, ystr = NULL, alphaLevel = 0.1 ) } \...
# Function - SMS Summarise ------------------------------------------------ fx_sms_summarise <- function(raw_sms) { library(tidyverse) library(scales) raw_sms %>% ungroup() %>% summarise(Contacts = n_distinct(Contact), Messages = length(Contact), Length = sum(MessageLength)...
/R/fx_sms_sumarise.R
permissive
kputschko/sms_analysis
R
false
false
489
r
# Function - SMS Summarise ------------------------------------------------ fx_sms_summarise <- function(raw_sms) { library(tidyverse) library(scales) raw_sms %>% ungroup() %>% summarise(Contacts = n_distinct(Contact), Messages = length(Contact), Length = sum(MessageLength)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{hs5_isic3} \alias{hs5_isic3} \title{HS5-ISIC3 Concordance} \format{ A data frame with 5338 rows and 7 variables: \describe{ \item{HS5_6d}{6-digit HS5 Code} \item{HS5_4d}{4-digit HS5 Code} \item{HS5_2d}{2-digi...
/man/hs5_isic3.Rd
no_license
Ignacio-Ibarra/concordance
R
false
true
679
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{hs5_isic3} \alias{hs5_isic3} \title{HS5-ISIC3 Concordance} \format{ A data frame with 5338 rows and 7 variables: \describe{ \item{HS5_6d}{6-digit HS5 Code} \item{HS5_4d}{4-digit HS5 Code} \item{HS5_2d}{2-digi...
r = runif(10,1.5,4) th = runif(10,40,140)*pi/180 target = matrix(c(r*cos(th),r*sin(th)), ncol=2) R0 = array(c(1,-0.75,-0.75,1), c(2,2)) ## make R makeR = function(a,b){ R = diag(2) R[1,1] = a; R[2,1] = R[1,2] = b/2; R } create_trajectory = function(n,progress= T){ if(progress){ pb <- txtProg...
/Ver 3.1.1/Fitting_testing/Fit_R.R
no_license
svd3/Firefly-experiments
R
false
false
1,667
r
r = runif(10,1.5,4) th = runif(10,40,140)*pi/180 target = matrix(c(r*cos(th),r*sin(th)), ncol=2) R0 = array(c(1,-0.75,-0.75,1), c(2,2)) ## make R makeR = function(a,b){ R = diag(2) R[1,1] = a; R[2,1] = R[1,2] = b/2; R } create_trajectory = function(n,progress= T){ if(progress){ pb <- txtProg...
rm(list=ls()) source("./Codes/My-Functions/my.library.loader.R") # within: sampled.path <- "../Emotion Dynamics 1/ED 1 - Codes/3. mirt-Model-Comp/Processed-457/1persons.0days.0beeps/" #between # sampled.path <- "../Emotion Dynamics 1/ED 1 - Codes/3. mirt-Model-Comp/Processed-457/0persons.0days.1beeps/" sampled.names...
/Codes/sampled-loadings.R
no_license
psyguy/Emotion-Dynamics
R
false
false
3,048
r
rm(list=ls()) source("./Codes/My-Functions/my.library.loader.R") # within: sampled.path <- "../Emotion Dynamics 1/ED 1 - Codes/3. mirt-Model-Comp/Processed-457/1persons.0days.0beeps/" #between # sampled.path <- "../Emotion Dynamics 1/ED 1 - Codes/3. mirt-Model-Comp/Processed-457/0persons.0days.1beeps/" sampled.names...
## hd.R ## simulation for easy case: correctly specified, low dim rm(list=ls()); library(MASS); source("fxns.R"); ## ************************************************************** ## simulation parameters ## ************************************************************** n <- 400; pk <- 0.1; ## minor allele frequency ...
/hd.R
no_license
sdzhao/integration
R
false
false
5,396
r
## hd.R ## simulation for easy case: correctly specified, low dim rm(list=ls()); library(MASS); source("fxns.R"); ## ************************************************************** ## simulation parameters ## ************************************************************** n <- 400; pk <- 0.1; ## minor allele frequency ...
library(testforDEP) ### Name: AUK ### Title: Draw Kendall plot and compute AUK. ### Aliases: AUK ### ** Examples set.seed(123) x = runif(100) y = runif(100) result = AUK(x, y, plot = TRUE) result$AUK #[1] 0.4987523
/data/genthat_extracted_code/testforDEP/examples/AUK.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
224
r
library(testforDEP) ### Name: AUK ### Title: Draw Kendall plot and compute AUK. ### Aliases: AUK ### ** Examples set.seed(123) x = runif(100) y = runif(100) result = AUK(x, y, plot = TRUE) result$AUK #[1] 0.4987523
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/miRLAB.R \name{Kendall} \alias{Kendall} \title{miRNA target prediction with the Kendall correlation coefficient method} \usage{ Kendall(datacsv, cause, effect, targetbinding = NA) } \arguments{ \item{datacsv}{the input dataset in csv format} ...
/man/Kendall.Rd
no_license
pvvhoang/miRLAB
R
false
true
1,255
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/miRLAB.R \name{Kendall} \alias{Kendall} \title{miRNA target prediction with the Kendall correlation coefficient method} \usage{ Kendall(datacsv, cause, effect, targetbinding = NA) } \arguments{ \item{datacsv}{the input dataset in csv format} ...
## ## Exported symobls in package `httr` ## ## Exported package methods Token2.0 <- "<environment>" cookies <- function (x) UseMethod("cookies") oauth_service_token <- function (endpoint, secrets, scope = NULL) { if (!is.oauth_endpoint(endpoint)) stop("`endpoint` must be an OAuth endpoint", call. = ...
/testData/r_skeletons/httr.R
permissive
yoongkang0122/r4intellij
R
false
false
32,120
r
## ## Exported symobls in package `httr` ## ## Exported package methods Token2.0 <- "<environment>" cookies <- function (x) UseMethod("cookies") oauth_service_token <- function (endpoint, secrets, scope = NULL) { if (!is.oauth_endpoint(endpoint)) stop("`endpoint` must be an OAuth endpoint", call. = ...
--- title: "Assignment-5" author: "Sara Faiad" date: "2/17/2021" output: html_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` ## Getting the Data I created a data folder locally and downloaded "siscowet.csv". ``` siscowet<- read.csv("data/siscowet.csv") head(siscowet) ``` ## The ...
/Assignment-5.r
no_license
sfaiad/Assignment-5
R
false
false
1,876
r
--- title: "Assignment-5" author: "Sara Faiad" date: "2/17/2021" output: html_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` ## Getting the Data I created a data folder locally and downloaded "siscowet.csv". ``` siscowet<- read.csv("data/siscowet.csv") head(siscowet) ``` ## The ...
context("Messages") library("pestr") test_that("msg_helper returns character string", { expect_type(msg_helper("wrong_token"), "character") expect_type(msg_helper("db_time", "eppocodes.sqlite"), "character") expect_null(msg_helper("aaa")) })
/tests/testthat/test-message_helpers.R
permissive
mczyzj/pestr
R
false
false
249
r
context("Messages") library("pestr") test_that("msg_helper returns character string", { expect_type(msg_helper("wrong_token"), "character") expect_type(msg_helper("db_time", "eppocodes.sqlite"), "character") expect_null(msg_helper("aaa")) })
#' Bias Correction Plot #' #'This function plots the results of bias_correction. It allows for #'visuallizing error rates deemed acceptable by the user #' #'@param p a vector of p-values returned from bias_correction #'@param lower lower bound of what is considered an acceptable error rate #'@param upper upper bound...
/R/bc_plot.R
no_license
donaldRwilliams/litterEffects
R
false
false
1,906
r
#' Bias Correction Plot #' #'This function plots the results of bias_correction. It allows for #'visuallizing error rates deemed acceptable by the user #' #'@param p a vector of p-values returned from bias_correction #'@param lower lower bound of what is considered an acceptable error rate #'@param upper upper bound...
\alias{gBufferedInputStreamNew} \name{gBufferedInputStreamNew} \title{gBufferedInputStreamNew} \description{Creates a new \code{\link{GInputStream}} from the given \code{base.stream}, with a buffer set to the default size (4 kilobytes).} \usage{gBufferedInputStreamNew(base.stream = NULL)} \arguments{\item{\verb{base.s...
/RGtk2/man/gBufferedInputStreamNew.Rd
no_license
lawremi/RGtk2
R
false
false
531
rd
\alias{gBufferedInputStreamNew} \name{gBufferedInputStreamNew} \title{gBufferedInputStreamNew} \description{Creates a new \code{\link{GInputStream}} from the given \code{base.stream}, with a buffer set to the default size (4 kilobytes).} \usage{gBufferedInputStreamNew(base.stream = NULL)} \arguments{\item{\verb{base.s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aggregations.R \name{minimum} \alias{minimum} \alias{maximum} \title{Returns the minimum or maximum of a vector} \usage{ minimum(x) maximum(x) } \arguments{ \item{x}{a vector} } \description{ If the sequence is empty, it returns a type stabl...
/man/min_max.Rd
permissive
iqtigorg/iqtigfunctions
R
false
true
385
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aggregations.R \name{minimum} \alias{minimum} \alias{maximum} \title{Returns the minimum or maximum of a vector} \usage{ minimum(x) maximum(x) } \arguments{ \item{x}{a vector} } \description{ If the sequence is empty, it returns a type stabl...
/projet.R
no_license
Wapps3/ProjetRo
R
false
false
3,851
r
# Create the Correct Tables for Prothrombin Data Liver_Data = read.table('/Users/walterdempsey/joint_models/revival_models/revival_paper/prednisone code/imputation/LiverData.csv', sep = ',', header = TRUE) Table_2 = Liver_Data[,c(1,2,3,4)] Table_2$treatment[Table_2$time == 0] = -1 Table_2$treatment = as.factor(Tabl...
/supplement/robust_km.R
no_license
chenyujie1104/revival_paper
R
false
false
4,649
r
# Create the Correct Tables for Prothrombin Data Liver_Data = read.table('/Users/walterdempsey/joint_models/revival_models/revival_paper/prednisone code/imputation/LiverData.csv', sep = ',', header = TRUE) Table_2 = Liver_Data[,c(1,2,3,4)] Table_2$treatment[Table_2$time == 0] = -1 Table_2$treatment = as.factor(Tabl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/databasemigrationservice_operations.R \name{databasemigrationservice_start_replication_task} \alias{databasemigrationservice_start_replication_task} \title{Starts the replication task} \usage{ databasemigrationservice_start_replication_task(R...
/paws/man/databasemigrationservice_start_replication_task.Rd
permissive
peoplecure/paws
R
false
true
2,657
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/databasemigrationservice_operations.R \name{databasemigrationservice_start_replication_task} \alias{databasemigrationservice_start_replication_task} \title{Starts the replication task} \usage{ databasemigrationservice_start_replication_task(R...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/server.R \name{rockr.stop} \alias{rockr.stop} \title{Stop the R server} \usage{ rockr.stop(conn) } \arguments{ \item{conn}{A rockr connection object.} } \value{ Logical indicating wether the R server is running (invisible). } \description{ St...
/man/rockr.stop.Rd
permissive
obiba/rockr
R
false
true
1,092
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/server.R \name{rockr.stop} \alias{rockr.stop} \title{Stop the R server} \usage{ rockr.stop(conn) } \arguments{ \item{conn}{A rockr connection object.} } \value{ Logical indicating wether the R server is running (invisible). } \description{ St...
# New Haven 地区的年均气温 xx = c(1912, 1912:1971, 1971) yy = c(min(nhtemp), nhtemp, min(nhtemp)) plot(xx, yy, type = "n", xlab = "年份", ylab = "温度") for (i in seq(255, 0, -3)) { # rgb() 中的绿色成分逐渐变小: yy = c(45, nhtemp - (nhtemp - min(nhtemp)) * (1 - i / 255), 45) polygon(xx, yy, col = rgb(1, i / 255, 0), border = NA) # ...
/inst/examples/grad-color.R
no_license
yihui/MSG
R
false
false
454
r
# New Haven 地区的年均气温 xx = c(1912, 1912:1971, 1971) yy = c(min(nhtemp), nhtemp, min(nhtemp)) plot(xx, yy, type = "n", xlab = "年份", ylab = "温度") for (i in seq(255, 0, -3)) { # rgb() 中的绿色成分逐渐变小: yy = c(45, nhtemp - (nhtemp - min(nhtemp)) * (1 - i / 255), 45) polygon(xx, yy, col = rgb(1, i / 255, 0), border = NA) # ...
library(shiny) plotRect <- function (range, f, numrect, type=c('Left-Hand Sum', 'Right-Hand Sum')){ lh = min(range) rh = max(range) delta = (rh-lh)/numrect newrange = seq(lh, rh, .001) plot(newrange, f(newrange), type='l', lwd=3, col='red', yaxs='i', xaxs='i', xlab='x', ylab='f(x)') ...
/server.R
no_license
dancinglogic/simpleapp
R
false
false
1,481
r
library(shiny) plotRect <- function (range, f, numrect, type=c('Left-Hand Sum', 'Right-Hand Sum')){ lh = min(range) rh = max(range) delta = (rh-lh)/numrect newrange = seq(lh, rh, .001) plot(newrange, f(newrange), type='l', lwd=3, col='red', yaxs='i', xaxs='i', xlab='x', ylab='f(x)') ...
library(tidyverse) library(here) library(readxl) library(janitor) # Load Data ------------------------------------------------- # ERROR # variables_raw <- read_csv( # here("lesson3", # "diabetes-case-study", # "raw-data", # "Diabetes final_draft 2018 FINAL_FOR_REAL_draftydraft_v2.01-2019")) variables...
/lesson3/diabetes-case-study/scripts/01_clean_data.R
no_license
karissawhiting/qsure-r-training-2020
R
false
false
5,496
r
library(tidyverse) library(here) library(readxl) library(janitor) # Load Data ------------------------------------------------- # ERROR # variables_raw <- read_csv( # here("lesson3", # "diabetes-case-study", # "raw-data", # "Diabetes final_draft 2018 FINAL_FOR_REAL_draftydraft_v2.01-2019")) variables...
#################### # created by : Tanvi Arora # Created Date : 2018/07/15 # This script fetch any data from the dataset for study purpose ################### ##@knitr get_stateabb ## remove whitespaces from state abb names mh2015_puf$LST1 <- trimws(mh2015_puf$LST, which = c("both")) # get unique value...
/R/manipulate_data.R
no_license
tanvi-arora/healthcare
R
false
false
2,163
r
#################### # created by : Tanvi Arora # Created Date : 2018/07/15 # This script fetch any data from the dataset for study purpose ################### ##@knitr get_stateabb ## remove whitespaces from state abb names mh2015_puf$LST1 <- trimws(mh2015_puf$LST, which = c("both")) # get unique value...
library(rethinking) # Part 1 data(Howell1) d <- Howell1 d_over_18 <- d[d$age >= 18, ] x_bar <- mean(d_over_18$weight) m2.1 <- quap( alist( height ~ dnorm(mu, sigma), mu <- a + b * (weight - x_bar), a ~ dnorm(178, 20), b ~ dlnorm(0, 1), sigma ~ dunif(0, 50) ), data ...
/e2.r
no_license
cajoho99/ese
R
false
false
1,589
r
library(rethinking) # Part 1 data(Howell1) d <- Howell1 d_over_18 <- d[d$age >= 18, ] x_bar <- mean(d_over_18$weight) m2.1 <- quap( alist( height ~ dnorm(mu, sigma), mu <- a + b * (weight - x_bar), a ~ dnorm(178, 20), b ~ dlnorm(0, 1), sigma ~ dunif(0, 50) ), data ...
#' A simple memorandum format. #' #' @inheritParams rmarkdown::pdf_document #' @param ... Arguments to \code{rmarkdown::pdf_document} #' #' Format for creating basic memos. #' @return R Markdown output format to pass to #' \code{\link[rmarkdown:render]{render}} #' #' @details Include a logo using the YAML option \cod...
/.Rproj.user/6EA7BAFC/sources/per/t/DCBD5348-contents
no_license
martinschmelzer/rmemo
R
false
false
915
#' A simple memorandum format. #' #' @inheritParams rmarkdown::pdf_document #' @param ... Arguments to \code{rmarkdown::pdf_document} #' #' Format for creating basic memos. #' @return R Markdown output format to pass to #' \code{\link[rmarkdown:render]{render}} #' #' @details Include a logo using the YAML option \cod...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.inequality.R \name{is.inequality} \alias{is.inequality} \title{Functions to check if an object is of class 'inequality'.} \usage{ is.inequality(x) } \arguments{ \item{x}{an object to test} } \value{ returns TRUE if its argument is of class...
/man/is.inequality.Rd
no_license
takaiyuk/BasketballAnalyzeR
R
false
true
805
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.inequality.R \name{is.inequality} \alias{is.inequality} \title{Functions to check if an object is of class 'inequality'.} \usage{ is.inequality(x) } \arguments{ \item{x}{an object to test} } \value{ returns TRUE if its argument is of class...
library(shiny) library(RMySQL) library(timevis) #cs 336 git options(mysql = list( "host" = "cs336.cnnbxidvx4vb.us-west-2.rds.amazonaws.com",#"agenda.c4tlyckz1zml.us-east-1.rds.amazonaws.com", #cs336.cnnbxidvx4vb.us-west-2.rds.amazonaws.com", # "port" = 3306, "user" = "root", #root "password" = "rootroot" )) dat...
/app.R
no_license
ElizabethCaronia96/cs336
R
false
false
8,567
r
library(shiny) library(RMySQL) library(timevis) #cs 336 git options(mysql = list( "host" = "cs336.cnnbxidvx4vb.us-west-2.rds.amazonaws.com",#"agenda.c4tlyckz1zml.us-east-1.rds.amazonaws.com", #cs336.cnnbxidvx4vb.us-west-2.rds.amazonaws.com", # "port" = 3306, "user" = "root", #root "password" = "rootroot" )) dat...
if (!require("magrittr", character.only = TRUE)) { BiocManager::install("magrittr") require("magrittr", character.only = TRUE) } source("data-raw/UtilityFunctionForCuration.R") ##### Read in raw data ##### geo <- "GSE19442" sequencePlatform <- "GPL6947" GSE19442_data_list <- readRawData(geo, sequencePlatform) GSE1...
/inst/scripts/make-data_GSE19442.R
permissive
xutao-wang/curatedTBData
R
false
false
4,031
r
if (!require("magrittr", character.only = TRUE)) { BiocManager::install("magrittr") require("magrittr", character.only = TRUE) } source("data-raw/UtilityFunctionForCuration.R") ##### Read in raw data ##### geo <- "GSE19442" sequencePlatform <- "GPL6947" GSE19442_data_list <- readRawData(geo, sequencePlatform) GSE1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metis.grid2poly.R \name{metis.grid2poly} \alias{metis.grid2poly} \title{metis.grid2poly} \usage{ metis.grid2poly(gridFiles = NULL, regionName = "region", subRegShape = NULL, subRegShpFolder = NULL, subRegShpFile = NULL, subRegCol = NULL, ...
/man/metis.grid2poly.Rd
no_license
pdwaggoner/metis
R
false
true
2,324
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metis.grid2poly.R \name{metis.grid2poly} \alias{metis.grid2poly} \title{metis.grid2poly} \usage{ metis.grid2poly(gridFiles = NULL, regionName = "region", subRegShape = NULL, subRegShpFolder = NULL, subRegShpFile = NULL, subRegCol = NULL, ...
library(quantMod) BetaValues2013 <- read.csv("/Users/rossbennett/devel/R/CQA/rawData/BetaValues2013.csv", header=TRUE, as.is=TRUE) colnames(BetaValues2013) <- c("Symbol", "Name", "Type", "Value", "Market", "Industry", "Unit") save(BetaValues2013, file="data/BetaValues2013.Rda") # load("data/BetaValues2013.Rda") merge...
/sandbox/dataLoad.R
no_license
arturochian/CQA
R
false
false
750
r
library(quantMod) BetaValues2013 <- read.csv("/Users/rossbennett/devel/R/CQA/rawData/BetaValues2013.csv", header=TRUE, as.is=TRUE) colnames(BetaValues2013) <- c("Symbol", "Name", "Type", "Value", "Market", "Industry", "Unit") save(BetaValues2013, file="data/BetaValues2013.Rda") # load("data/BetaValues2013.Rda") merge...
## Revision part 2 ## ## Show the mortality rates for those who discontinued vs those who didn't, ## by race, in a table. # Setup ------------------------------------------------------------------- abhiR::reload() dropdir <- path(abhiR::find_dropbox(), 'NIAMS','Ward','USRDS2015', 'data') analytic <- read_fst(path...
/R/JASN/Revision2.R
no_license
webbedfeet/USRDS2015
R
false
false
2,416
r
## Revision part 2 ## ## Show the mortality rates for those who discontinued vs those who didn't, ## by race, in a table. # Setup ------------------------------------------------------------------- abhiR::reload() dropdir <- path(abhiR::find_dropbox(), 'NIAMS','Ward','USRDS2015', 'data') analytic <- read_fst(path...
library(biomaRt) grch37 = useMart(biomart="ENSEMBL_MART_ENSEMBL", host="grch37.ensembl.org", path="/biomart/martservice", dataset="hsapiens_gene_ensembl") #head(listFilters(grch37)) #listAttributes(grch37) #gene_info <- getBM(filters= c("ensembl_gene_id","biotype"), attributes= c("ensembl_gene_id",'hgnc_symbol'...
/code/previous_scripts/gene_id_prep.R
no_license
Joker-Jerome/utmost_update
R
false
false
1,152
r
library(biomaRt) grch37 = useMart(biomart="ENSEMBL_MART_ENSEMBL", host="grch37.ensembl.org", path="/biomart/martservice", dataset="hsapiens_gene_ensembl") #head(listFilters(grch37)) #listAttributes(grch37) #gene_info <- getBM(filters= c("ensembl_gene_id","biotype"), attributes= c("ensembl_gene_id",'hgnc_symbol'...
#SSH into WRDS and type the following commands: # mkdir ~/.ssh # ssh-keygen -t rsa # NOTE: Enter password twice # cat ~/.ssh/id_rsa.pub | ssh bdaughdr@wrds.wharton.upenn.edu "cat >> ~/.ssh/authorized_keys" # NOTE: Enter password date <- as.Date("2012-01-06") ticker <- "GM" generate_sas_code <- function(ticker,...
/WRDS_from_R_test.R
no_license
sbraddaughdrill/WRDS_to_R
R
false
false
1,744
r
#SSH into WRDS and type the following commands: # mkdir ~/.ssh # ssh-keygen -t rsa # NOTE: Enter password twice # cat ~/.ssh/id_rsa.pub | ssh bdaughdr@wrds.wharton.upenn.edu "cat >> ~/.ssh/authorized_keys" # NOTE: Enter password date <- as.Date("2012-01-06") ticker <- "GM" generate_sas_code <- function(ticker,...
##--- PHMO Analysis: Table 7 (Negative Binomial Models) ---## ##--- Zhenhui Xu, May 2020 --------## rm(list=ls()) library(tidyverse) library(ggplot2) ##-- Reading in data --## setwd("E:/Graduate_year_1/PHMO") dat19 = readRDS("dat_19.rds") #remove the following PatientKeys - an extreme value (very low co...
/Table_7_Logistic_Regression.R
no_license
zhenhuixu/PHMO
R
false
false
10,112
r
##--- PHMO Analysis: Table 7 (Negative Binomial Models) ---## ##--- Zhenhui Xu, May 2020 --------## rm(list=ls()) library(tidyverse) library(ggplot2) ##-- Reading in data --## setwd("E:/Graduate_year_1/PHMO") dat19 = readRDS("dat_19.rds") #remove the following PatientKeys - an extreme value (very low co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dplyr.R \name{left_join.decorated} \alias{left_join.decorated} \title{Left_join Decorated} \usage{ \method{left_join}{decorated}(x, y, by = NULL, copy = FALSE, suffix = c(".x", ".y"), ...) } \arguments{ \item{x, y}{A pair of data frames, data...
/man/left_join.decorated.Rd
no_license
bergsmat/yamlet
R
false
true
3,197
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dplyr.R \name{left_join.decorated} \alias{left_join.decorated} \title{Left_join Decorated} \usage{ \method{left_join}{decorated}(x, y, by = NULL, copy = FALSE, suffix = c(".x", ".y"), ...) } \arguments{ \item{x, y}{A pair of data frames, data...
############################ #CRC info ############################ args = commandArgs(TRUE) input = as.numeric(args[1]) FOI_list.h.vac <- list() FOI_list.l.vac <- list() FOI_list.h <- list() FOI_list.l <- list() load(paste('FOI_output_list_',input, '.RData', sep = '')) w <- c() x <- c() y <- c() z <- c()...
/fix_foi_ts.R
no_license
mwalte10/topics_in_ecology
R
false
false
1,035
r
############################ #CRC info ############################ args = commandArgs(TRUE) input = as.numeric(args[1]) FOI_list.h.vac <- list() FOI_list.l.vac <- list() FOI_list.h <- list() FOI_list.l <- list() load(paste('FOI_output_list_',input, '.RData', sep = '')) w <- c() x <- c() y <- c() z <- c()...
###compare real data to fake data for opsree ###Started by Dan on 24 July 2017 rm(list=ls()) options(stringsAsFactors = FALSE) library(ggplot2) library(lme4) library(dplyr) setwd("~/Documents/git/ospree/analyses/output") # Setting working directory. d<-read.csv("ospree_clean_withchill_BB.csv") View(table(d$genus)) ...
/analyses/lat_analysis/cleaning/picea_problems.R
no_license
lizzieinvancouver/ospree
R
false
false
1,799
r
###compare real data to fake data for opsree ###Started by Dan on 24 July 2017 rm(list=ls()) options(stringsAsFactors = FALSE) library(ggplot2) library(lme4) library(dplyr) setwd("~/Documents/git/ospree/analyses/output") # Setting working directory. d<-read.csv("ospree_clean_withchill_BB.csv") View(table(d$genus)) ...
## Update the following line to set proper working directory workdir<-"C:/Users/vialgre/Desktop/DataScience/Exploratory Data Analysis/Week 1" setwd(workdir) ## Load the data filename <- "household_power_consumption.txt" colnames <- read.csv2(filename,header=F,nrows=1, stringsAsFactors = F,na.strings = "?") hpc <- read...
/plot1.R
no_license
GregVial/ExData_Plotting1
R
false
false
701
r
## Update the following line to set proper working directory workdir<-"C:/Users/vialgre/Desktop/DataScience/Exploratory Data Analysis/Week 1" setwd(workdir) ## Load the data filename <- "household_power_consumption.txt" colnames <- read.csv2(filename,header=F,nrows=1, stringsAsFactors = F,na.strings = "?") hpc <- read...