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
# PROBLEMA 2 file.choose() pobreza = "C:\\Users\\Anthony\\Desktop\\DOCUM\\R 5to\\pobreza_extrema.csv" pobreza_extrema = read.csv(pobreza, header = TRUE, sep = ";") View(pobreza_extrema) pobreza_extrema["Incidencia"] data <- pobreza_extrema$Incidencia data View(data) pobreza_extrema$Incidencia[pobreza_extrema$Incidencia...
/problema 2.R
no_license
Villalobos912/exposici-n-20-09-20
R
false
false
594
r
# PROBLEMA 2 file.choose() pobreza = "C:\\Users\\Anthony\\Desktop\\DOCUM\\R 5to\\pobreza_extrema.csv" pobreza_extrema = read.csv(pobreza, header = TRUE, sep = ";") View(pobreza_extrema) pobreza_extrema["Incidencia"] data <- pobreza_extrema$Incidencia data View(data) pobreza_extrema$Incidencia[pobreza_extrema$Incidencia...
install.packages(c("gdalcubes", "magrittr", "raster", "stars", "mapview", "viridis")) library(gdalcubes) gdalcubes_options(threads=2) L8.files = list.files("D:/Koma/L8_Amazon_mini/", pattern = ".tif", recursive = TRUE, full.names = TRUE) head(L8.files, 15) sum(file.size(L8.files)) / 1000^3 L8.col = create_image_coll...
/opengeohub_summerschool/lesson2_appel.R
no_license
komazsofi/myPhD_escience_analysis
R
false
false
2,420
r
install.packages(c("gdalcubes", "magrittr", "raster", "stars", "mapview", "viridis")) library(gdalcubes) gdalcubes_options(threads=2) L8.files = list.files("D:/Koma/L8_Amazon_mini/", pattern = ".tif", recursive = TRUE, full.names = TRUE) head(L8.files, 15) sum(file.size(L8.files)) / 1000^3 L8.col = create_image_coll...
library(testthat) library(tmutilsr) test_check("tmutilsr")
/tests/testthat.R
no_license
doritge/tmutilsr
R
false
false
60
r
library(testthat) library(tmutilsr) test_check("tmutilsr")
littersCode <- quote({ for (i in 1:G) { for (j in 1:N) { # likelihood (data model) r[i,j] ~ dbin(p[i,j], n[i,j]) # latent process (random effects) p[i,j] ~ dbeta(a[i], b[i]) } # prior for hyperparameters a[i] ~ dgamma(1, .001) b[i] ~ dgamma(1, .001) } }) ...
/docs/data/litters_data.R
no_license
nimble-training/nimble-cefe-2019
R
false
false
724
r
littersCode <- quote({ for (i in 1:G) { for (j in 1:N) { # likelihood (data model) r[i,j] ~ dbin(p[i,j], n[i,j]) # latent process (random effects) p[i,j] ~ dbeta(a[i], b[i]) } # prior for hyperparameters a[i] ~ dgamma(1, .001) b[i] ~ dgamma(1, .001) } }) ...
# read in data from TXT data <- read.table(file="data/household_power_consumption.txt",sep=";", header=TRUE, stringsAsFactors=FALSE) data$Date <- as.Date(data$Date, "%d/%m/%Y") # create new column of Date/Time POSIXct format data$datetime <- as.POSIXct(paste(data$Date, data$Time), "%Y-%m-%d %H:%M:%S", tz="GMT") # cha...
/plot4.R
no_license
drbooshkit/ExData_Plotting1
R
false
false
1,617
r
# read in data from TXT data <- read.table(file="data/household_power_consumption.txt",sep=";", header=TRUE, stringsAsFactors=FALSE) data$Date <- as.Date(data$Date, "%d/%m/%Y") # create new column of Date/Time POSIXct format data$datetime <- as.POSIXct(paste(data$Date, data$Time), "%Y-%m-%d %H:%M:%S", tz="GMT") # cha...
#' Parallel \code{\link{wtc.sig}} #' #' Parallelized Monte Carlo simulation equivalent to \code{\link{wtc.sig}}. #' #' @examples #' # Not run: library(foreach) #' # library(doParallel) #' # cl <- makeCluster(4, outfile="") # number of cores. Notice 'outfile' #' # registerDoParallel(cl) #' # wtc_sig_parallel(your parame...
/R/wtc_sig_parallel.R
no_license
tgouhier/biwavelet
R
false
false
3,318
r
#' Parallel \code{\link{wtc.sig}} #' #' Parallelized Monte Carlo simulation equivalent to \code{\link{wtc.sig}}. #' #' @examples #' # Not run: library(foreach) #' # library(doParallel) #' # cl <- makeCluster(4, outfile="") # number of cores. Notice 'outfile' #' # registerDoParallel(cl) #' # wtc_sig_parallel(your parame...
.libPaths("/data/hydro/R_libs35") .libPaths() library(chillR) library(tidyverse) library(lubridate) source_path = "/home/hnoorazar/chilling_codes/current_draft/chill_core.R" source(source_path) options(digit=9) options(digits=9) ################ re-written in the chill_core. read_binary_8 <- function(file_name, file_...
/chilling/05_limited_locations_codes/Aeulos_codes/01_d_intervals_modeled.R
permissive
HNoorazar/Ag
R
false
false
8,500
r
.libPaths("/data/hydro/R_libs35") .libPaths() library(chillR) library(tidyverse) library(lubridate) source_path = "/home/hnoorazar/chilling_codes/current_draft/chill_core.R" source(source_path) options(digit=9) options(digits=9) ################ re-written in the chill_core. read_binary_8 <- function(file_name, file_...
"The makeCacheMatrix function takes a matrix as an argument in the form eg. makeCacheMatrix(matrix(c(5,1,8,2), nrow = 2, ncol = 2)) It creates a list with 4 functions: 1) set() : sets the input matrix 2) get() : gets the input matrix 3) set_invrse() : computes the inverse of the input matrix 4) get_invrse() : returns...
/cachematrix.R
no_license
andy19912/ProgrammingAssignment2
R
false
false
1,984
r
"The makeCacheMatrix function takes a matrix as an argument in the form eg. makeCacheMatrix(matrix(c(5,1,8,2), nrow = 2, ncol = 2)) It creates a list with 4 functions: 1) set() : sets the input matrix 2) get() : gets the input matrix 3) set_invrse() : computes the inverse of the input matrix 4) get_invrse() : returns...
#Please load all_dv_3.csv before run this code # all_dv_3 is the aggreated dataframe we created before containing the well-done variables #select all the factor tidy variables to factor fac_v <- all_dv_3 %>% select(nh, clust, Employment_status, Read_Ghanaian_language.x, Work_for_whom_in_main_job, Work_for_whom, Reg...
/code/Merge all the variables into one df.R
no_license
lihalyf/R-Project
R
false
false
1,630
r
#Please load all_dv_3.csv before run this code # all_dv_3 is the aggreated dataframe we created before containing the well-done variables #select all the factor tidy variables to factor fac_v <- all_dv_3 %>% select(nh, clust, Employment_status, Read_Ghanaian_language.x, Work_for_whom_in_main_job, Work_for_whom, Reg...
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_socio_L100.GDP_hist #' #' Prepare GDP database for later use: filter missing values and convert units to 1990 USD. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends o...
/input/gcamdata/R/zsocio_L100.GDP_hist.R
permissive
JGCRI/gcam-core
R
false
false
2,725
r
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_socio_L100.GDP_hist #' #' Prepare GDP database for later use: filter missing values and convert units to 1990 USD. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends o...
#' Produce grouped bar chart by race across 2 periods. #' #' This function takes in data and produces a bar chart grouped by race #' across two periods (2006-2010 and 2012-2016). #' #' @param dat Data with a column containing "race", "periods", and variable of interest #' @param var Name of column containing variable ...
/R/plot_bar_race.R
no_license
Changing-Cities-Research-Lab/oakViz
R
false
false
2,586
r
#' Produce grouped bar chart by race across 2 periods. #' #' This function takes in data and produces a bar chart grouped by race #' across two periods (2006-2010 and 2012-2016). #' #' @param dat Data with a column containing "race", "periods", and variable of interest #' @param var Name of column containing variable ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pda.utils.R \name{pda.postprocess} \alias{pda.postprocess} \title{Postprocessing for PDA Results} \usage{ pda.postprocess(settings, con, mcmc.param.list, jvar.list, pname, prior, prior.ind) } \arguments{ \item{all}{params are the identicall...
/modules/assim.batch/man/pda.postprocess.Rd
permissive
Viskari/pecan
R
false
true
538
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pda.utils.R \name{pda.postprocess} \alias{pda.postprocess} \title{Postprocessing for PDA Results} \usage{ pda.postprocess(settings, con, mcmc.param.list, jvar.list, pname, prior, prior.ind) } \arguments{ \item{all}{params are the identicall...
# # Copyright (C) 2018 Ben S. Lee #email: skl5261@psu.edu # # 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, either version 3 of the License, or # (at your option) any later version. # # This pro...
/Official_Fast/run_rep/Parallel_MPI.R
no_license
benee55/SharmaEtAl22
R
false
false
6,328
r
# # Copyright (C) 2018 Ben S. Lee #email: skl5261@psu.edu # # 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, either version 3 of the License, or # (at your option) any later version. # # This pro...
#' @title Fonctions usuelles de calcul des Indicateurs MMI RIQ et détection d'outliers #' #' @description OutlTuk et MMIRIQ #' #' @param input_df,customsoffice,modeoftransport,cpc,partner,product,value,netweight,quantity #' #' @return Le dataset BJC #' #' @examples #' #' @export #OUTLTUK #Fonction T...
/eiti/R/outltukmmiriq.R
no_license
Meomeoowww/R
R
false
false
3,073
r
#' @title Fonctions usuelles de calcul des Indicateurs MMI RIQ et détection d'outliers #' #' @description OutlTuk et MMIRIQ #' #' @param input_df,customsoffice,modeoftransport,cpc,partner,product,value,netweight,quantity #' #' @return Le dataset BJC #' #' @examples #' #' @export #OUTLTUK #Fonction T...
#! /usr/bin/env Rscript project <- commandArgs(TRUE);if(!interactive()&&("--help" %in% project)){cat(" NAME: install.HS - build and install R package with subdirectories DESCRIPTION: An R script that can convert a project with hierarchical structure to standard R package structure and install it. USAGE: ...
/inst/bin/install.HS
no_license
feng-li/flutils
R
false
false
892
hs
#! /usr/bin/env Rscript project <- commandArgs(TRUE);if(!interactive()&&("--help" %in% project)){cat(" NAME: install.HS - build and install R package with subdirectories DESCRIPTION: An R script that can convert a project with hierarchical structure to standard R package structure and install it. USAGE: ...
## Striker - Data ## Striker - VMatrix StrikerCoreBase <- CoreBuilder(ActSkills=c("LightningCascade", "SharkTorpedo", "LightningGodSpearStrike", "LightningSpearMultistrike", CommonV("Pirate", "CygnusKnights")), ActSkillsLv=c(25, 25, 25, 25, 25,...
/job/Striker.R
no_license
MapleStory-Archive/Maplestory_DPM
R
false
false
45,135
r
## Striker - Data ## Striker - VMatrix StrikerCoreBase <- CoreBuilder(ActSkills=c("LightningCascade", "SharkTorpedo", "LightningGodSpearStrike", "LightningSpearMultistrike", CommonV("Pirate", "CygnusKnights")), ActSkillsLv=c(25, 25, 25, 25, 25,...
#' Create a dataframe of protein features from JSON object #' #' This function works on the object returned by the get_features() function. #' It creates a data.frame of features and includes the accession number AND #' an order number. It uses the extract_feat_acc function below. #' #' @param features_in_lists_of_six ...
/R/extract_from_api.R
permissive
EvanrobUCA/drawProteins
R
false
false
7,371
r
#' Create a dataframe of protein features from JSON object #' #' This function works on the object returned by the get_features() function. #' It creates a data.frame of features and includes the accession number AND #' an order number. It uses the extract_feat_acc function below. #' #' @param features_in_lists_of_six ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/measures_binaryclass.R \name{FN} \alias{FN} \title{False negatives} \usage{ FN(truth, response, negative) } \arguments{ \item{truth}{vector of true values} \item{response}{vector of predicted values} \item{negative}{negative class} } \descr...
/man/FN.Rd
no_license
PhilippPro/measures
R
false
true
616
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/measures_binaryclass.R \name{FN} \alias{FN} \title{False negatives} \usage{ FN(truth, response, negative) } \arguments{ \item{truth}{vector of true values} \item{response}{vector of predicted values} \item{negative}{negative class} } \descr...
library(shiny) library(datasets) # Define server logic required to summarize and view the # selected dataset shinyServer(function(input, output) { # Return the requested dataset datasetInput <- reactive({ switch(input$dataset, "rock" = rock, "pressure" = pressure, "cars" = ...
/RWS/shiny/code1/07_widgets/server.R
no_license
yzhang921/Research
R
false
false
579
r
library(shiny) library(datasets) # Define server logic required to summarize and view the # selected dataset shinyServer(function(input, output) { # Return the requested dataset datasetInput <- reactive({ switch(input$dataset, "rock" = rock, "pressure" = pressure, "cars" = ...
\name{Gene} \alias{Gene} \title{ Class Constructor for Gene } \description{ This function makes an object of the S3 class "Gene" to contain some information about a gene. } \usage{ Gene(ID, symbol, ontology, CDS) } \arguments{ \item{ID}{ A character string with the gene id. } \item{symbol}{ A character string with ...
/man/Gene.Rd
no_license
lvclark/Lab11Gene
R
false
false
878
rd
\name{Gene} \alias{Gene} \title{ Class Constructor for Gene } \description{ This function makes an object of the S3 class "Gene" to contain some information about a gene. } \usage{ Gene(ID, symbol, ontology, CDS) } \arguments{ \item{ID}{ A character string with the gene id. } \item{symbol}{ A character string with ...
library(igraph) #install.packages("akmeans") library("akmeans") ## Influence Propagation # Arguments: # Graph = Structural Graph, Igraph Instance # Comm = Communiity/Clusters # Beta = Influence Propagation Rate influence_propagation <- function(graph, comm, beta=0.75){ output = c() v = vcount(graph) nodes <- d...
/CommunityDetection/sac1.R
no_license
mandgerohit/BI-CSC591
R
false
false
4,075
r
library(igraph) #install.packages("akmeans") library("akmeans") ## Influence Propagation # Arguments: # Graph = Structural Graph, Igraph Instance # Comm = Communiity/Clusters # Beta = Influence Propagation Rate influence_propagation <- function(graph, comm, beta=0.75){ output = c() v = vcount(graph) nodes <- d...
library(tidyverse) source("./R/1. load2017.R",encoding = "UTF-8") # Selecionando colunas ------- acolhimento_2017_dadosgerais <- read_excel("./input/Censo SUAS 2017/Unidades_Acolhimento/Censo Suas 2017 Unidades de Acolhimento_divulgação.xlsx", sheet = 1) %>% select(id_acolhimento,q3,q...
/R/2. clean2017.R
permissive
LucasLBrandao/RH_Censo_SUAS_2013_15_17
R
false
false
14,888
r
library(tidyverse) source("./R/1. load2017.R",encoding = "UTF-8") # Selecionando colunas ------- acolhimento_2017_dadosgerais <- read_excel("./input/Censo SUAS 2017/Unidades_Acolhimento/Censo Suas 2017 Unidades de Acolhimento_divulgação.xlsx", sheet = 1) %>% select(id_acolhimento,q3,q...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analytics_objects.R \name{McfData.totalsForAllResults} \alias{McfData.totalsForAllResults} \title{McfData.totalsForAllResults Object} \usage{ McfData.totalsForAllResults() } \value{ McfData.totalsForAllResults object } \description{ McfData.t...
/googleanalyticsv3.auto/man/McfData.totalsForAllResults.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
786
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analytics_objects.R \name{McfData.totalsForAllResults} \alias{McfData.totalsForAllResults} \title{McfData.totalsForAllResults Object} \usage{ McfData.totalsForAllResults() } \value{ McfData.totalsForAllResults object } \description{ McfData.t...
library(tidyverse) survivors <- Titanic %>% apply(c('Sex', 'Survived'), median)
/script.R
no_license
mark-andrews/project101
R
false
false
83
r
library(tidyverse) survivors <- Titanic %>% apply(c('Sex', 'Survived'), median)
############# Plotting Sliding Window Analysis / Marker Density ######### # # Adopted from Charlie Waters' script "just_plot_updated_changed_plots" # To be run AFTER SlidingWindow_MF.R script # Allows for the use of plotting function across ALL chromosomes as input # # MF edited for Pacific cod 2/26/2018 # ############...
/analyses/SlidingWindow/extra_code/Plot_SlidingWindowOutput_MarkerDensity_wCutoff_MF.R
no_license
mfisher5/PCod-Compare-repo
R
false
false
10,921
r
############# Plotting Sliding Window Analysis / Marker Density ######### # # Adopted from Charlie Waters' script "just_plot_updated_changed_plots" # To be run AFTER SlidingWindow_MF.R script # Allows for the use of plotting function across ALL chromosomes as input # # MF edited for Pacific cod 2/26/2018 # ############...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/left_tail_cdf_weighted.R \name{weighted_left_tail_cdf} \alias{weighted_left_tail_cdf} \title{Weighted Left-Tail Cumulative Distribution Function} \usage{ weighted_left_tail_cdf(x) } \arguments{ \item{x}{Length of vector to be generated.} } \d...
/man/weighted_left_tail_cdf.Rd
no_license
gragedaa/SkeweDF
R
false
true
711
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/left_tail_cdf_weighted.R \name{weighted_left_tail_cdf} \alias{weighted_left_tail_cdf} \title{Weighted Left-Tail Cumulative Distribution Function} \usage{ weighted_left_tail_cdf(x) } \arguments{ \item{x}{Length of vector to be generated.} } \d...
library(signal) ### Name: remez ### Title: Parks-McClellan optimal FIR filter design ### Aliases: remez ### Keywords: math ### ** Examples f1 <- remez(15, c(0, 0.3, 0.4, 1), c(1, 1, 0, 0)) freqz(f1)
/data/genthat_extracted_code/signal/examples/remez.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
206
r
library(signal) ### Name: remez ### Title: Parks-McClellan optimal FIR filter design ### Aliases: remez ### Keywords: math ### ** Examples f1 <- remez(15, c(0, 0.3, 0.4, 1), c(1, 1, 0, 0)) freqz(f1)
#' Bus arrival timings #' #' This is a small dataset containing bus arrival timings for 11 randomly selected bus stops in Singapore. #' #' @format A data frame with 103 rows and 30 variables #' @source Called from the Bus Timings API on 11 December 2018 at 12.06pm "bus_arrivals"
/R/data_bus_arrivals.R
no_license
00mjk/ltaer
R
false
false
280
r
#' Bus arrival timings #' #' This is a small dataset containing bus arrival timings for 11 randomly selected bus stops in Singapore. #' #' @format A data frame with 103 rows and 30 variables #' @source Called from the Bus Timings API on 11 December 2018 at 12.06pm "bus_arrivals"
source("long-simu-test-rare2.r"); source("test-nocorrelation.R") ncores<-16; par <- list( test.type = "Joint", mu = 1, a = 0.5, b = 0.5, rho = 0.75, sig_a = 0.8, sig_b = 0.8, sig_e = 0.8, par1 = 0.7, par2 = 0.8, times = 8,...
/proj/simu/type-L0.p4.R
no_license
wzhy2000/LSKAT
R
false
false
1,116
r
source("long-simu-test-rare2.r"); source("test-nocorrelation.R") ncores<-16; par <- list( test.type = "Joint", mu = 1, a = 0.5, b = 0.5, rho = 0.75, sig_a = 0.8, sig_b = 0.8, sig_e = 0.8, par1 = 0.7, par2 = 0.8, times = 8,...
#' @title Get a complete time series from a BETS database #' #' @description Extracts a complete time series from either the Central Bank of Brazil (BCB), the Brazilian Institute of Geography and Statistics (IBGE) or the Brazilian Institute of Economics (FGV/IBRE). #' #' @param code A \code{character}. The unique...
/R/BETS.get.R
no_license
fernote7/BETS2
R
false
false
4,234
r
#' @title Get a complete time series from a BETS database #' #' @description Extracts a complete time series from either the Central Bank of Brazil (BCB), the Brazilian Institute of Geography and Statistics (IBGE) or the Brazilian Institute of Economics (FGV/IBRE). #' #' @param code A \code{character}. The unique...
MuscleGroupsViewDataColumns <- c("Month", "MonthName") MuscleGroupsViewDataRows <- "Year" MuscleGroupsViewHiddenFromAggregators <- c("Month", "Year", "MonthName", "Date") MuscleGroupsViewHiddenFromDragDrop <- c("Date", "Chest", "Biceps", "Back", "Abs", "Triceps", "Shoulders", "L...
/modules/MuscleGroupsController.R
no_license
h-hasanov/FitnessDashboard
R
false
false
6,177
r
MuscleGroupsViewDataColumns <- c("Month", "MonthName") MuscleGroupsViewDataRows <- "Year" MuscleGroupsViewHiddenFromAggregators <- c("Month", "Year", "MonthName", "Date") MuscleGroupsViewHiddenFromDragDrop <- c("Date", "Chest", "Biceps", "Back", "Abs", "Triceps", "Shoulders", "L...
# Copyright (c) 2014 The Chromium Authors. All rights reserved. # # 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 appl...
/top_10_mobile.R
permissive
pasko/plt-data-analysis
R
false
false
4,488
r
# Copyright (c) 2014 The Chromium Authors. All rights reserved. # # 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 appl...
## Getting full dataset dataset <- "./household_power_consumption.txt" data <-read.table(dataset, header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".") data$Date <- as.Date(data$Date, format="%d/%m/%Y") ## Subsetting the data data <- subset(data, subset=(Date >= "2007-02-01" & Date <= "2007-02-02")) ##...
/week1/plot4.R
no_license
pnakamura/Exploratory_Data
R
false
false
1,313
r
## Getting full dataset dataset <- "./household_power_consumption.txt" data <-read.table(dataset, header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".") data$Date <- as.Date(data$Date, format="%d/%m/%Y") ## Subsetting the data data <- subset(data, subset=(Date >= "2007-02-01" & Date <= "2007-02-02")) ##...
plot1 <- function() { #Download the data set from the given url download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "power_consumption.zip") #Unzip the file in the working directory unzip(zipfile = "power_consumption.zip") ...
/plot1.R
no_license
SDeepakMallya/ExData_Plotting1
R
false
false
1,435
r
plot1 <- function() { #Download the data set from the given url download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "power_consumption.zip") #Unzip the file in the working directory unzip(zipfile = "power_consumption.zip") ...
library(tidyverse) data(iris) set.seed(42) iris_data <- as.tibble(iris) iris_data$id <- 1:nrow(iris_data) iris_train <- iris_data %>% sample_frac(2/3) iris_test <- anti_join(iris_data, iris_train, by = 'id') # remove id column from both datasets iris_train <- iris_train %>% select(-id) iris_test <- iris_test %>% sel...
/BT5152_Tutorial_1/KNN_and_Naive_Bayes/initLesson.R
no_license
weilu/BT5152
R
false
false
329
r
library(tidyverse) data(iris) set.seed(42) iris_data <- as.tibble(iris) iris_data$id <- 1:nrow(iris_data) iris_train <- iris_data %>% sample_frac(2/3) iris_test <- anti_join(iris_data, iris_train, by = 'id') # remove id column from both datasets iris_train <- iris_train %>% select(-id) iris_test <- iris_test %>% sel...
# titanic is avaliable in your workspace # Check out the structure of titanic str(titanic) # Use ggplot() for the first instruction ggplot(titanic, aes(x = factor(Pclass), fill = factor(Sex))) + geom_bar(position = "dodge") # Use ggplot() for the second instruction ggplot(titanic, aes(x = factor(Pclass), fill = fac...
/Titanic.r
no_license
mattthomastorus/DataWrangle2
R
false
false
657
r
# titanic is avaliable in your workspace # Check out the structure of titanic str(titanic) # Use ggplot() for the first instruction ggplot(titanic, aes(x = factor(Pclass), fill = factor(Sex))) + geom_bar(position = "dodge") # Use ggplot() for the second instruction ggplot(titanic, aes(x = factor(Pclass), fill = fac...
library(RCurl) library(RJSONIO) library(plyr)   url <- function(address, return.call = "json", sensor = "false") { root <- "http://maps.google.com/maps/api/geocode/" u <- paste(root, return.call, "?address=", address, "&sensor=", sensor, sep = "") return(URLencode(u)) } geoCode <- function(address,verbose=FALSE)...
/google_map.r
no_license
y-yagi/r_samples
R
false
false
1,997
r
library(RCurl) library(RJSONIO) library(plyr)   url <- function(address, return.call = "json", sensor = "false") { root <- "http://maps.google.com/maps/api/geocode/" u <- paste(root, return.call, "?address=", address, "&sensor=", sensor, sep = "") return(URLencode(u)) } geoCode <- function(address,verbose=FALSE)...
### merge results library(tidyverse) library(tidyr) ### work flow ## upload time stats ## converge all nodes per species ## converge all species ## calculate suitability per node position ## calculate suitability per node (if 1 position suitable, node is suitable) # setwd("/Users/katieirving/Documents/git/SOC_tier_3/o...
/code/S1f_suitability_toad_tadpoles_velocity.R
no_license
ksirving/SOC_tier_3
R
false
false
3,900
r
### merge results library(tidyverse) library(tidyr) ### work flow ## upload time stats ## converge all nodes per species ## converge all species ## calculate suitability per node position ## calculate suitability per node (if 1 position suitable, node is suitable) # setwd("/Users/katieirving/Documents/git/SOC_tier_3/o...
context("Conversion of 4-way cross to mpwgaim object") capture.output(couldLoadPackages <- suppressWarnings(require(mpwgaim, quietly=T) && require(mpMap, quietly=T))) if(couldLoadPackages) { test_that("Require probabilities, with type = mpMarker", { pedigree <- fourParentPedigreeSingleFunnel(initialPopulationSize =...
/tests/testthat/test-as.mpInterval4Parent.R
no_license
rohan-shah/mpMap2
R
false
false
12,587
r
context("Conversion of 4-way cross to mpwgaim object") capture.output(couldLoadPackages <- suppressWarnings(require(mpwgaim, quietly=T) && require(mpMap, quietly=T))) if(couldLoadPackages) { test_that("Require probabilities, with type = mpMarker", { pedigree <- fourParentPedigreeSingleFunnel(initialPopulationSize =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/import_operation_haridwar.R \name{src_mysql_from_cnf} \alias{src_mysql_from_cnf} \title{Helper function: store MySQL database credentials in ".my.cnf"} \usage{ src_mysql_from_cnf( dbname, group = NULL, dir = file.path(getwd(), ".my.cnf"...
/man/src_mysql_from_cnf.Rd
permissive
KWB-R/kwb.pilot
R
false
true
959
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/import_operation_haridwar.R \name{src_mysql_from_cnf} \alias{src_mysql_from_cnf} \title{Helper function: store MySQL database credentials in ".my.cnf"} \usage{ src_mysql_from_cnf( dbname, group = NULL, dir = file.path(getwd(), ".my.cnf"...
#' Remove all but specified populations from a genelight \{adegenet\} object #' #' Individuals are assigned to populations based on the specimen metadata data file (csv) used with gl.read.dart(). #' #' The script, having deleted the specified populations, optionally identifies resultant monomorphic loci or loci #' wit...
/R/gl.keep.pop.r
no_license
carlopacioni/dartR
R
false
false
6,552
r
#' Remove all but specified populations from a genelight \{adegenet\} object #' #' Individuals are assigned to populations based on the specimen metadata data file (csv) used with gl.read.dart(). #' #' The script, having deleted the specified populations, optionally identifies resultant monomorphic loci or loci #' wit...
\name{Return.annualized} \alias{Return.annualized} \title{calculate an annualized return for comparing instruments with different length history} \usage{ Return.annualized(R, scale = NA, geometric = TRUE) } \arguments{ \item{R}{an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns} \ite...
/man/Return.annualized.Rd
no_license
sanjivkv/PerformanceAnalytics
R
false
false
1,669
rd
\name{Return.annualized} \alias{Return.annualized} \title{calculate an annualized return for comparing instruments with different length history} \usage{ Return.annualized(R, scale = NA, geometric = TRUE) } \arguments{ \item{R}{an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns} \ite...
library(tidyverse) ######
/test_script.R
no_license
JohnBLaPlante/HarvardSDP
R
false
false
28
r
library(tidyverse) ######
#-------------------------------------------------------- # Marcel Poblet # CSCI 3900C Data Science # Project 3 # Dr. Spence # October 6, 2016 #-------------------------------------------------------- # Load ggplot & Reshape2 & Scales(for formatting from Scientific Notation) library(ggplot2) library(reshape2) library...
/Projects/Project 3/Project3_Poblet.R
no_license
Mpoblet92/Data-Science-with-R
R
false
false
4,446
r
#-------------------------------------------------------- # Marcel Poblet # CSCI 3900C Data Science # Project 3 # Dr. Spence # October 6, 2016 #-------------------------------------------------------- # Load ggplot & Reshape2 & Scales(for formatting from Scientific Notation) library(ggplot2) library(reshape2) library...
#***Lists*** #Gather a variety of objects under one name - list my_vector = c(1:10) my_matrix = matrix(1:9, ncol=3) my_df = mtcars[1:10,] #first ten elements of built in data frame my_list = list(my_vector, my_matrix, my_df) my_list #add names to list items my_list = list(VECTOR = my_vector, MATRIX = my_matrix, DATAFR...
/src/lists.R
no_license
sarahleejane/R-Basic-Functions
R
false
false
409
r
#***Lists*** #Gather a variety of objects under one name - list my_vector = c(1:10) my_matrix = matrix(1:9, ncol=3) my_df = mtcars[1:10,] #first ten elements of built in data frame my_list = list(my_vector, my_matrix, my_df) my_list #add names to list items my_list = list(VECTOR = my_vector, MATRIX = my_matrix, DATAFR...
test_that("compare_performance", { data(iris) lm1 <- lm(Sepal.Length ~ Species, data = iris) lm2 <- lm(Sepal.Length ~ Species + Petal.Length, data = iris) lm3 <- lm(Sepal.Length ~ Species * Petal.Length, data = iris) lm4 <- lm(Sepal.Length ~ Species * Petal.Length, data = iris[-1, ]) expect_silent(e...
/tests/testthat/test-compare_performance.R
no_license
cran/performance
R
false
false
2,401
r
test_that("compare_performance", { data(iris) lm1 <- lm(Sepal.Length ~ Species, data = iris) lm2 <- lm(Sepal.Length ~ Species + Petal.Length, data = iris) lm3 <- lm(Sepal.Length ~ Species * Petal.Length, data = iris) lm4 <- lm(Sepal.Length ~ Species * Petal.Length, data = iris[-1, ]) expect_silent(e...
context("invoke") test_that("invoke() buries arguments", { expect_identical(invoke(call_inspect, 1:2, 3L), quote(.fn(`1`, `2`, `3`))) expect_identical(invoke("call_inspect", 1:2, 3L), quote(call_inspect(`1`, `2`, `3`))) expect_identical(invoke(call_inspect, 1:2, 3L, .bury = c("foo", "bar")), quote(foo(`bar1`, `b...
/packrat/lib/x86_64-w64-mingw32/3.4.3/rlang/tests/testthat/test-eval.R
permissive
UBC-MDS/Karl
R
false
false
588
r
context("invoke") test_that("invoke() buries arguments", { expect_identical(invoke(call_inspect, 1:2, 3L), quote(.fn(`1`, `2`, `3`))) expect_identical(invoke("call_inspect", 1:2, 3L), quote(call_inspect(`1`, `2`, `3`))) expect_identical(invoke(call_inspect, 1:2, 3L, .bury = c("foo", "bar")), quote(foo(`bar1`, `b...
# PCA # Importing the dataset dataset = read.csv('Wine.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Customer_Segment, SplitRatio = 0.8) training_set = subset(dataset, split == TRUE) test_set = subset(dataset,...
/Dimensionality Reduction/Principal Component Analysis/Wils PCA R.R
no_license
Wkornhauser/Machine_Learning_in_R_and_Python
R
false
false
2,582
r
# PCA # Importing the dataset dataset = read.csv('Wine.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Customer_Segment, SplitRatio = 0.8) training_set = subset(dataset, split == TRUE) test_set = subset(dataset,...
#ECL 298-026 Class Session February 15, 2011 #demographic stochasticity in acorn woodepeckers #N(t) - number of female adults in year (t) #N(t+1) = N(t)*as(t+1) + f(t+1)*js(t+1)*(0.5)*N(t) = (as(t+1) + js(t+1)*f(t+1)*0.5)*N(t) #Data from Sebastian (stacey and tapper) as=c(0.53,0.68,0.71,0.38,0.54,0.69,0.66,0.49,0.6...
/R/stochasticgrowth_20110215_NR .R
no_license
npp97-field/Working-Code
R
false
false
2,318
r
#ECL 298-026 Class Session February 15, 2011 #demographic stochasticity in acorn woodepeckers #N(t) - number of female adults in year (t) #N(t+1) = N(t)*as(t+1) + f(t+1)*js(t+1)*(0.5)*N(t) = (as(t+1) + js(t+1)*f(t+1)*0.5)*N(t) #Data from Sebastian (stacey and tapper) as=c(0.53,0.68,0.71,0.38,0.54,0.69,0.66,0.49,0.6...
## There are two functions MakeCacheMatrix i.e. calls for cache function ##to find Inverse of matrix passed as argument and the next is the Cache function ## that stores the inverse result locally makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- ...
/cachematrix.R
no_license
agrover87/ProgrammingAssignment2
R
false
false
709
r
## There are two functions MakeCacheMatrix i.e. calls for cache function ##to find Inverse of matrix passed as argument and the next is the Cache function ## that stores the inverse result locally makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- ...
print("TO BE DONE MANUALLY") print("Before running the scripts make sure you have <<sqldf>> package installed ") print( "This package will be used while loading the dataset subset <<read.csv.sql>>") #install.packages("sqldf") #library(sqldf) # Loading the data data <- read.csv.sql("household_power_consumption.txt", s...
/plot1.R
no_license
ndekwe/ExData_Plotting1
R
false
false
1,089
r
print("TO BE DONE MANUALLY") print("Before running the scripts make sure you have <<sqldf>> package installed ") print( "This package will be used while loading the dataset subset <<read.csv.sql>>") #install.packages("sqldf") #library(sqldf) # Loading the data data <- read.csv.sql("household_power_consumption.txt", s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/quality_of_fit.R \docType{methods} \name{quality_of_fit} \alias{quality_of_fit} \alias{quality_of_fit,Rscexv-method} \title{description of function quality_of_fit} \usage{ quality_of_fit(obj) } \arguments{ \item{obj}{TEXT MISSING} } \descript...
/man/quality_of_fit-methods.Rd
no_license
stela2502/Rscexv
R
false
true
355
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/quality_of_fit.R \docType{methods} \name{quality_of_fit} \alias{quality_of_fit} \alias{quality_of_fit,Rscexv-method} \title{description of function quality_of_fit} \usage{ quality_of_fit(obj) } \arguments{ \item{obj}{TEXT MISSING} } \descript...
library(lubridate) df <- read.table("household_power_consumption.txt", header = T, sep=";") df2 <- rbind(subset(df, Date == ("1/2/2007")), subset(df, Date == ("2/2/2007"))) df2$Date <- as.Date(df2$Date, format="%d/%m/%Y") df2$DtTime <- ymd_hms(paste(df2$Date, df2$Time, sep = "_")) par(mfrow=c(2,2)) # top, left pl...
/plot4.R
no_license
macgithub2017/ExData_Plotting1
R
false
false
1,460
r
library(lubridate) df <- read.table("household_power_consumption.txt", header = T, sep=";") df2 <- rbind(subset(df, Date == ("1/2/2007")), subset(df, Date == ("2/2/2007"))) df2$Date <- as.Date(df2$Date, format="%d/%m/%Y") df2$DtTime <- ymd_hms(paste(df2$Date, df2$Time, sep = "_")) par(mfrow=c(2,2)) # top, left pl...
learning = df %>% dplyr::filter(anc_veh<60) %>% na.omit() %>% as.data.frame() %>% dplyr::select(-marque) learning = learning[,!(colnames(learning) %in% childrens) | colnames(learning)=='prime_tot_ttc'] print(summary(learning)) smp_size <- floor(0.85 * nrow(learning)) train_ind <- sample(seq_len(nrow(learnin...
/counterfactual_fairness_scripts/auto_insurance/brouillon.R
permissive
chrimarf/premium_insurance_fainess
R
false
false
5,302
r
learning = df %>% dplyr::filter(anc_veh<60) %>% na.omit() %>% as.data.frame() %>% dplyr::select(-marque) learning = learning[,!(colnames(learning) %in% childrens) | colnames(learning)=='prime_tot_ttc'] print(summary(learning)) smp_size <- floor(0.85 * nrow(learning)) train_ind <- sample(seq_len(nrow(learnin...
# # # # # # # # # # # # # # # # # # # # # # # # # # # Script to fetch meteorological data from INMET # # # # # # # # # # # # # # # # # # # # # # # # # # # # See https://github.com/lhmet/inmetr # for install instructions library(inmetr) # Set YOUR working dir setwd("C:/Users/vitor/OneDrive/Desktop") # C...
/met_data.R
permissive
andrefellipe/ccd
R
false
false
1,701
r
# # # # # # # # # # # # # # # # # # # # # # # # # # # Script to fetch meteorological data from INMET # # # # # # # # # # # # # # # # # # # # # # # # # # # # See https://github.com/lhmet/inmetr # for install instructions library(inmetr) # Set YOUR working dir setwd("C:/Users/vitor/OneDrive/Desktop") # C...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.r \docType{data} \name{ex_compet} \alias{ex_compet} \title{Simulated example data with competing risks outcome and partially observed covariates} \format{ A data frame with 1000 rows and 4 variables: \describe{ \item{t}{Time t...
/man/ex_compet.Rd
no_license
cran/smcfcs
R
false
true
883
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.r \docType{data} \name{ex_compet} \alias{ex_compet} \title{Simulated example data with competing risks outcome and partially observed covariates} \format{ A data frame with 1000 rows and 4 variables: \describe{ \item{t}{Time t...
\name{dy_DepthTS} \alias{dy_DepthTS} \alias{dy_TS} \title{ plot time series data via the dygraphs interactive time series plotting interface. } \description{ plot time series data (e.g. depth or temperature time series data from archival tags) via the dygraphs interactive time series plotting interface. } \usage{ ...
/man/dy_DepthTS.Rd
no_license
cran/RchivalTag
R
false
false
4,204
rd
\name{dy_DepthTS} \alias{dy_DepthTS} \alias{dy_TS} \title{ plot time series data via the dygraphs interactive time series plotting interface. } \description{ plot time series data (e.g. depth or temperature time series data from archival tags) via the dygraphs interactive time series plotting interface. } \usage{ ...
source("bd-shiny-modules/exploratory-data-analysis-submodules/visualising-distributions.R") # SHINY UI ##################################################################### exploratory_data_analysis_ui <- function(id) { ns <- NS(id) # UI ELEMENTS ################################################################ ...
/Soheil/bd-shiny-modules/exploratory-data-analysis.R
no_license
m2-rshiny/ProjetTut
R
false
false
5,646
r
source("bd-shiny-modules/exploratory-data-analysis-submodules/visualising-distributions.R") # SHINY UI ##################################################################### exploratory_data_analysis_ui <- function(id) { ns <- NS(id) # UI ELEMENTS ################################################################ ...
# Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate context("Test PersonSearchRequestAllOf") model.instance <- PersonSearchRequestAllOf$new() test_that("emailAddresses", { # tests for the property `emailAddresses` (array[character]) # email addre...
/tests/testthat/test_person_search_request_all_of.R
no_license
Breeding-Insight/brapi-r-v2
R
false
false
2,153
r
# Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate context("Test PersonSearchRequestAllOf") model.instance <- PersonSearchRequestAllOf$new() test_that("emailAddresses", { # tests for the property `emailAddresses` (array[character]) # email addre...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rblockdata.R \name{rblockdata} \alias{rblockdata} \title{Random generation noisy block-wise matrices} \usage{ rblockdata(n, mu, sigma, type = c("Eq", "NEq", "NEqbis")) } \arguments{ \item{n}{number of rows and columns.} \item{mu}{symmetric m...
/man/rblockdata.Rd
no_license
jchiquet/blockseg
R
false
true
766
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rblockdata.R \name{rblockdata} \alias{rblockdata} \title{Random generation noisy block-wise matrices} \usage{ rblockdata(n, mu, sigma, type = c("Eq", "NEq", "NEqbis")) } \arguments{ \item{n}{number of rows and columns.} \item{mu}{symmetric m...
gPLS <- function(X,Y,ncomp,mode="regression",max.iter=500,tol=1e-06,keepX ,keepY=NULL,ind.block.x,ind.block.y=NULL,scale=TRUE){ X <- as.matrix(X) Y <- as.matrix(Y) q <- ncol(Y) p <- ncol(X) n <- nrow(X) X.names = dimnames(X)[[2]] if (is.null(X.names)) X.names = paste("X", 1:p, sep = "") if (dim(Y)[...
/R/gPLS.R
no_license
cran/sgPLS
R
false
false
3,511
r
gPLS <- function(X,Y,ncomp,mode="regression",max.iter=500,tol=1e-06,keepX ,keepY=NULL,ind.block.x,ind.block.y=NULL,scale=TRUE){ X <- as.matrix(X) Y <- as.matrix(Y) q <- ncol(Y) p <- ncol(X) n <- nrow(X) X.names = dimnames(X)[[2]] if (is.null(X.names)) X.names = paste("X", 1:p, sep = "") if (dim(Y)[...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot-family.R \name{plotPamMedoidSummary} \alias{plotPamMedoidSummary} \title{Plot Medoid/Cluster Information} \usage{ plotPamMedoidSummary( object, k, phase = "first_tmt", clrp = "milo", flip_coords = FALSE, ... ) } \arguments{ \...
/man/plotPamMedoidSummary.Rd
no_license
kueckelj/celltracer
R
false
true
1,197
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot-family.R \name{plotPamMedoidSummary} \alias{plotPamMedoidSummary} \title{Plot Medoid/Cluster Information} \usage{ plotPamMedoidSummary( object, k, phase = "first_tmt", clrp = "milo", flip_coords = FALSE, ... ) } \arguments{ \...
setwd("C:\\Users\\HARIKA\\Desktop\\DataScience_2019501065\\Data-Mining\\DM Assignment5") exams <- read.csv("spring2008exams.csv") str(exams) mean1 <- mean(exams$Midterm.1, na.rm = TRUE) sd1 <- sd(exams$Midterm.1, na.rm = TRUE) z_score <- (exams$Midterm.1 - mean1)/sd1 sort(z_score)
/Data-Mining/DM Assignment5/Q11.R
no_license
viswa9688/DataScience_2019501065
R
false
false
281
r
setwd("C:\\Users\\HARIKA\\Desktop\\DataScience_2019501065\\Data-Mining\\DM Assignment5") exams <- read.csv("spring2008exams.csv") str(exams) mean1 <- mean(exams$Midterm.1, na.rm = TRUE) sd1 <- sd(exams$Midterm.1, na.rm = TRUE) z_score <- (exams$Midterm.1 - mean1)/sd1 sort(z_score)
################################################################################ # LOADING LIBRARIES ################################################################################ using<-function(...) { libs<-unlist(list(...)) req<-unlist(lapply(libs,require,character.only=TRUE)) need<-libs[req==FALSE] if(le...
/code/scripts_joel_PC/old stuff/FAMD_example_mixed_data.R
no_license
EpiCompBio/Barracudas
R
false
false
4,848
r
################################################################################ # LOADING LIBRARIES ################################################################################ using<-function(...) { libs<-unlist(list(...)) req<-unlist(lapply(libs,require,character.only=TRUE)) need<-libs[req==FALSE] if(le...
############################ # Long Data. # ############################ package_names = c("tidyverse", "plyr") lapply(package_names, library, character.only = TRUE) # Source functions. # ======================= source("scripts/long_fun.R") # Load data. # ======================= file_names = c("models/...
/scripts/long_data.R
no_license
mt-edwards/smle-app
R
false
false
1,044
r
############################ # Long Data. # ############################ package_names = c("tidyverse", "plyr") lapply(package_names, library, character.only = TRUE) # Source functions. # ======================= source("scripts/long_fun.R") # Load data. # ======================= file_names = c("models/...
dir.create("res") setwd("./res/") #Start efdm tmp<-readLines("../dat/efdminput.txt") tmp<-matrix(unlist(strsplit(tmp,split=" ")),ncol=2,byrow=TRUE) VARS<-tmp[,1] apply(tmp,1,FUN=function(x) assign(x[1],x[2],pos=.GlobalEnv)) source("../../../EFDMcode/v2.0/efdmcore.r") if(OUTPUTREQUEST_FILENAME!=0) { source("../../../...
/historic/application/miniBfw/2runEfdm.r
no_license
GeorgKindermann/efdm
R
false
false
3,149
r
dir.create("res") setwd("./res/") #Start efdm tmp<-readLines("../dat/efdminput.txt") tmp<-matrix(unlist(strsplit(tmp,split=" ")),ncol=2,byrow=TRUE) VARS<-tmp[,1] apply(tmp,1,FUN=function(x) assign(x[1],x[2],pos=.GlobalEnv)) source("../../../EFDMcode/v2.0/efdmcore.r") if(OUTPUTREQUEST_FILENAME!=0) { source("../../../...
library(GWmodel) ### Name: gw.dist ### Title: Distance matrix calculation ### Aliases: gw.dist coordinate_rotate eu_dist_mat eu_dist_smat eu_dist_vec ### mk_dist_mat mk_dist_smat mk_dist_vec cd_dist_mat cd_dist_smat ### cd_dist_vec md_dist_mat md_dist_smat md_dist_vec ### Keywords: distance, matrix ### ** Exampl...
/data/genthat_extracted_code/GWmodel/examples/gw.dist.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,499
r
library(GWmodel) ### Name: gw.dist ### Title: Distance matrix calculation ### Aliases: gw.dist coordinate_rotate eu_dist_mat eu_dist_smat eu_dist_vec ### mk_dist_mat mk_dist_smat mk_dist_vec cd_dist_mat cd_dist_smat ### cd_dist_vec md_dist_mat md_dist_smat md_dist_vec ### Keywords: distance, matrix ### ** Exampl...
#' @title Find names of model parameters from zero-inflated models #' @name find_parameters.zeroinfl #' #' @description Returns the names of model parameters, like they typically #' appear in the `summary()` output. #' #' @param ... Currently not used. #' @inheritParams find_parameters #' @inheritParams fin...
/R/find_parameter_zi.R
no_license
cran/insight
R
false
false
3,090
r
#' @title Find names of model parameters from zero-inflated models #' @name find_parameters.zeroinfl #' #' @description Returns the names of model parameters, like they typically #' appear in the `summary()` output. #' #' @param ... Currently not used. #' @inheritParams find_parameters #' @inheritParams fin...
data<-read.csv2("household_power_consumption.txt") d2<-data[data$Date=="1/2/2007" | data$Date=="2/2/2007",] d2$Global_active_power<-as.numeric(as.character(d2$Global_active_power)) d2$Sub_metering_1<-as.numeric(as.character(d2$Sub_metering_1)) d2$Sub_metering_2<-as.numeric(as.character(d2$Sub_metering_2)) d2$Sub_meteri...
/plot4.R
no_license
fabiandeplasencia/ExData_Plotting1
R
false
false
1,394
r
data<-read.csv2("household_power_consumption.txt") d2<-data[data$Date=="1/2/2007" | data$Date=="2/2/2007",] d2$Global_active_power<-as.numeric(as.character(d2$Global_active_power)) d2$Sub_metering_1<-as.numeric(as.character(d2$Sub_metering_1)) d2$Sub_metering_2<-as.numeric(as.character(d2$Sub_metering_2)) d2$Sub_meteri...
# This file is automatically generated, you probably don't want to edit this jjbarstatsOptions <- if (requireNamespace('jmvcore')) R6::R6Class( "jjbarstatsOptions", inherit = jmvcore::Options, public = list( initialize = function( dep = NULL, group = NULL, excl ...
/R/jjbarstats.h.R
no_license
ClinicoPath/jjstatsplot
R
false
false
5,448
r
# This file is automatically generated, you probably don't want to edit this jjbarstatsOptions <- if (requireNamespace('jmvcore')) R6::R6Class( "jjbarstatsOptions", inherit = jmvcore::Options, public = list( initialize = function( dep = NULL, group = NULL, excl ...
.get.lineage.vec<-function(tree,node){ if(geiger::is.root(node,tree)){ return(node) }else{ if(length(node)>1){stop("node should be a single integer value corresponding to node number")} E<-tree$edge anc.vec = E[match(node,E[,2]),1] hold = anc.vec while(hold%in%E[,2]){ hold=E[match(hold,E[,2]),1] anc.vec = c...
/R/make.simmap.BGB.R
no_license
hmorlon/PANDA
R
false
false
10,768
r
.get.lineage.vec<-function(tree,node){ if(geiger::is.root(node,tree)){ return(node) }else{ if(length(node)>1){stop("node should be a single integer value corresponding to node number")} E<-tree$edge anc.vec = E[match(node,E[,2]),1] hold = anc.vec while(hold%in%E[,2]){ hold=E[match(hold,E[,2]),1] anc.vec = c...
InterVA<-function(Input,HIV,Malaria,directory = NULL, filename = "VA_result", output="classic", append=FALSE, groupcode = FALSE, replicate = FALSE){ ############################ ## define mid-step functions ############################ va <- function(ID , MALPREV, HIVPREV , PREGSTAT, PREGL...
/InterVA4_1.2/R/InterVA.R
no_license
diotro/InterVA4
R
false
false
15,354
r
InterVA<-function(Input,HIV,Malaria,directory = NULL, filename = "VA_result", output="classic", append=FALSE, groupcode = FALSE, replicate = FALSE){ ############################ ## define mid-step functions ############################ va <- function(ID , MALPREV, HIVPREV , PREGSTAT, PREGL...
#Megan Beaudry ##Megan.Beaudry@uga.edu ##5-14-19 Linear Modelng ##comments: File started on 5-14-19 in class library(GGally) library(magrittr) data(cars) cars %>% ggpairs(column=c('speed','distance')) library(dplyr) cars %<>% mutate (log10speed=log10(speed)) ##reproducibiliy and subsampling - subsample or ra...
/5-14-19 modeling.R
no_license
MeganSarah/ECOL-8540
R
false
false
5,979
r
#Megan Beaudry ##Megan.Beaudry@uga.edu ##5-14-19 Linear Modelng ##comments: File started on 5-14-19 in class library(GGally) library(magrittr) data(cars) cars %>% ggpairs(column=c('speed','distance')) library(dplyr) cars %<>% mutate (log10speed=log10(speed)) ##reproducibiliy and subsampling - subsample or ra...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/question_type.R \name{plot.question_type} \alias{plot.question_type} \title{Plots a question_type Object} \usage{ \method{plot}{question_type}(x, label = FALSE, lab.digits = 1, percent = NULL, zero.replace = NULL, ...) } \arguments{...
/man/plot.question_type.Rd
no_license
Libardo1/qdap
R
false
false
1,027
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/question_type.R \name{plot.question_type} \alias{plot.question_type} \title{Plots a question_type Object} \usage{ \method{plot}{question_type}(x, label = FALSE, lab.digits = 1, percent = NULL, zero.replace = NULL, ...) } \arguments{...
# evalRD cross-validation #read.csv('DickensCollins74.cvs', row.names=1) source("RepDis.R") source("functions.R") # Evaluation of Representativeness - Distinctiveness pure and simple #source("evalRD.R") #diff <- evalRD(tab,24,24, 1.8) # initialisation sim <- list() clust.eval <- list() cross.val <- list() inter...
/code/eval/eval.R
no_license
cklaussner/clin24
R
false
false
2,519
r
# evalRD cross-validation #read.csv('DickensCollins74.cvs', row.names=1) source("RepDis.R") source("functions.R") # Evaluation of Representativeness - Distinctiveness pure and simple #source("evalRD.R") #diff <- evalRD(tab,24,24, 1.8) # initialisation sim <- list() clust.eval <- list() cross.val <- list() inter...
library(dplyr) library(ggiraph) drug_df=read.csv(file="C:\\Users\\Hitesh\\Documents\\Data-is-Beautiful-Challenges\\Feb-2019\\dataset.csv") drug_list=drug_df$Drug drug_mean_list=c("Mean Physical Harm","Mean Dependence","Mean Social Harm") drug_harm_list=c("Acute Harm","Chronic Harm","Intravenous Harm","Pleasure","P...
/Feb-2019/DataSet_Preparation.R
no_license
hiteshram/hiteshram.github.io
R
false
false
4,248
r
library(dplyr) library(ggiraph) drug_df=read.csv(file="C:\\Users\\Hitesh\\Documents\\Data-is-Beautiful-Challenges\\Feb-2019\\dataset.csv") drug_list=drug_df$Drug drug_mean_list=c("Mean Physical Harm","Mean Dependence","Mean Social Harm") drug_harm_list=c("Acute Harm","Chronic Harm","Intravenous Harm","Pleasure","P...
#------------------------------------------- # # Dummymodel met vrij onzekere waarden # Plaatjes # #------------------------------------------- # Punten zijn ingelezen met http://arohatgi.info/WebPlotDigitizer/app/ # if (dir.exists("~/disks/y/ontwapps/Timer/Users/Stijn/Model/modelTt")) { #Den Haag setwd("~/dis...
/plaatjes.R
no_license
marsmans/deltaCO2
R
false
false
24,361
r
#------------------------------------------- # # Dummymodel met vrij onzekere waarden # Plaatjes # #------------------------------------------- # Punten zijn ingelezen met http://arohatgi.info/WebPlotDigitizer/app/ # if (dir.exists("~/disks/y/ontwapps/Timer/Users/Stijn/Model/modelTt")) { #Den Haag setwd("~/dis...
library(ape) testtree <- read.tree("5469_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5469_0_unrooted.txt")
/codeml_files/newick_trees_processed/5469_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("5469_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5469_0_unrooted.txt")
## Multivariate Graphs ## --------------------- scatterplot(rcc~bmi | sex, reg.line=FALSE, smooth=FALSE, spread=FALSE, boxplots='xy', span=0.5, by.groups=FALSE, data=athletes) windows() scatterplotMatrix(~bmi+ferr+hc+hg | sex, reg.line=FALSE, smooth=FALSE, spread=FALSE, span=0.5, diagonal= 'boxplot', by...
/old-stuff/videos-rcmdr/Analysis_Athletes/multivar_graphs.R
no_license
sinarueeger/visualising_data
R
false
false
788
r
## Multivariate Graphs ## --------------------- scatterplot(rcc~bmi | sex, reg.line=FALSE, smooth=FALSE, spread=FALSE, boxplots='xy', span=0.5, by.groups=FALSE, data=athletes) windows() scatterplotMatrix(~bmi+ferr+hc+hg | sex, reg.line=FALSE, smooth=FALSE, spread=FALSE, span=0.5, diagonal= 'boxplot', by...
\name{emotions} \alias{emotions} \docType{data} %- Also NEED an '\alias' for EACH other topic documented here. \title{ a dataset containing words categorized into six emotion categories. } \description{ A dataset containing approximately 1500 words classified into six emotion categories: anger, disgust, fear, joy, sadn...
/sentiment/man/emotions.Rd
no_license
bradleyboehmke/Air-Force-Little-Blue-Book
R
false
false
1,052
rd
\name{emotions} \alias{emotions} \docType{data} %- Also NEED an '\alias' for EACH other topic documented here. \title{ a dataset containing words categorized into six emotion categories. } \description{ A dataset containing approximately 1500 words classified into six emotion categories: anger, disgust, fear, joy, sadn...
#' Check if df has all necessary components #' #' @description checks columns of df for use with HP functions #' #' @param DF data frame like object #' @return None validate_age_df <- function(DF){ if(!is.data.frame(DF)){ stop("Object is not a valid data frame.") } if(!all(c("Sex", "Age5", "...
/EDA/00a_hp_funcs.R
no_license
jlgodwin/KC_PHI_Projections
R
false
false
4,837
r
#' Check if df has all necessary components #' #' @description checks columns of df for use with HP functions #' #' @param DF data frame like object #' @return None validate_age_df <- function(DF){ if(!is.data.frame(DF)){ stop("Object is not a valid data frame.") } if(!all(c("Sex", "Age5", "...
#Required Packages library(data.table) library(lubridate) library(scales) library(ggplot2) library(dplyr) library(magrittr) library(ggrepel) #PSU Basketball Eras Project psuH<-fread("PSUBBallHistoryKP.csv") #Ranking ggplot(aes(x=Year, y=KP_Rank, group = Coach, color = Coach), data = psuH) + geom_line(s...
/RggplotProjects/PSUbasketballEras.R
no_license
malletjames99/MJ
R
false
false
4,280
r
#Required Packages library(data.table) library(lubridate) library(scales) library(ggplot2) library(dplyr) library(magrittr) library(ggrepel) #PSU Basketball Eras Project psuH<-fread("PSUBBallHistoryKP.csv") #Ranking ggplot(aes(x=Year, y=KP_Rank, group = Coach, color = Coach), data = psuH) + geom_line(s...
## Sivateja Tangirala ## 06/17/2021 ## Baseline Functions (poisson (log link) regression) ## Inspired by script(s) from github repos chiragjp/xwas and chiragjp/dhs_india/xwas library(tidyverse) library(gdata) library(RNOmni) library(glm2) library(broom) library(pROC) library(sandwich) library(lmtest) constructForm...
/RunningModels/Baseline_EWAS_Logistic_Functions_Script.R
no_license
stejat98/UKB_COVID_XWAS
R
false
false
4,965
r
## Sivateja Tangirala ## 06/17/2021 ## Baseline Functions (poisson (log link) regression) ## Inspired by script(s) from github repos chiragjp/xwas and chiragjp/dhs_india/xwas library(tidyverse) library(gdata) library(RNOmni) library(glm2) library(broom) library(pROC) library(sandwich) library(lmtest) constructForm...
# Libraries library(tidyquant) library(tidyverse) library(timetk) library(openxlsx) # Draws stock data from three individual industries (Tech, Heath, & Retail) # Calculates portfolio value, portfolio cost, and positioning # time_series_analysis graphs of the stocks by industry # snapshots and saves the data...
/midtermProject510.R
no_license
simrangaglani/Midterm-Project-1
R
false
false
4,751
r
# Libraries library(tidyquant) library(tidyverse) library(timetk) library(openxlsx) # Draws stock data from three individual industries (Tech, Heath, & Retail) # Calculates portfolio value, portfolio cost, and positioning # time_series_analysis graphs of the stocks by industry # snapshots and saves the data...
# DATA PREPARATION # demographic variables from larger packets ----- # demo_p456 <- read_csv("../data/demo_p456.csv") %>% # mutate(religion = factor(religion, # levels = c("Buddhist", "Christian", # "Other religious", "Not religious"))) # # useful sc...
/analyses/scripts/data_prep.R
no_license
kgweisman/think_believe
R
false
false
60,587
r
# DATA PREPARATION # demographic variables from larger packets ----- # demo_p456 <- read_csv("../data/demo_p456.csv") %>% # mutate(religion = factor(religion, # levels = c("Buddhist", "Christian", # "Other religious", "Not religious"))) # # useful sc...
##Variance Partitioning celltype specificity: #Aim: Find out how much variance/gene can be associated to the batch effect args <- (commandArgs(trailingOnly = TRUE)) for (i in seq_len(length(args))) { eval(parse(text = args[[i]])) } set.seed(1000) ## Show arguments print(data) print(outputfile) print(params) #l...
/src/analysis/variance_part_ct.R
no_license
SiYangming/batch_snakemake
R
false
false
1,611
r
##Variance Partitioning celltype specificity: #Aim: Find out how much variance/gene can be associated to the batch effect args <- (commandArgs(trailingOnly = TRUE)) for (i in seq_len(length(args))) { eval(parse(text = args[[i]])) } set.seed(1000) ## Show arguments print(data) print(outputfile) print(params) #l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TrimMorphDistMatrix.R \name{TrimMorphDistMatrix} \alias{TrimMorphDistMatrix} \title{Trims a morphological distance matrix} \usage{ TrimMorphDistMatrix(dist.matrix, tree = NULL) } \arguments{ \item{dist.matrix}{A distance matrix in the format ...
/man/TrimMorphDistMatrix.Rd
no_license
TGuillerme/Claddis
R
false
true
2,087
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TrimMorphDistMatrix.R \name{TrimMorphDistMatrix} \alias{TrimMorphDistMatrix} \title{Trims a morphological distance matrix} \usage{ TrimMorphDistMatrix(dist.matrix, tree = NULL) } \arguments{ \item{dist.matrix}{A distance matrix in the format ...
## Because matrix inversion is usually a costly computation, this pair of functions ## caches the inverse of a matrix rather than compute it repeatedly. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { invMatrix <- NULL set <- func...
/cachematrix.R
no_license
chandler0ace/ProgrammingAssignment2
R
false
false
1,134
r
## Because matrix inversion is usually a costly computation, this pair of functions ## caches the inverse of a matrix rather than compute it repeatedly. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { invMatrix <- NULL set <- func...
####################################################### ###### ### getters/accessors, ordered by Class, alphabetically ###### ####################################################### ###### ### MassImage ###### ##' Getter, method definition "xdim" on "MassImage" ##' @param object objet of class MassImage ##' ...
/R/AllGetters.R
no_license
lorenzgerber/tofsims
R
false
false
6,743
r
####################################################### ###### ### getters/accessors, ordered by Class, alphabetically ###### ####################################################### ###### ### MassImage ###### ##' Getter, method definition "xdim" on "MassImage" ##' @param object objet of class MassImage ##' ...
# This script processes the data from 'sourcefile' and creates a tidy dataset # containing only the mean and std values for each measurement of the original source. # Produces 2 output files to working directory: # totalData.txt : Contains a tidy dataset with all the mean and std values from the # original source. # t...
/run_analysis.R
no_license
systemocracy/gcd-project
R
false
false
3,797
r
# This script processes the data from 'sourcefile' and creates a tidy dataset # containing only the mean and std values for each measurement of the original source. # Produces 2 output files to working directory: # totalData.txt : Contains a tidy dataset with all the mean and std values from the # original source. # t...
# Hierarchical.R # Single Model CustomModel="A_CustomModel7_3" work="BASIC" Control<-c("Adam_cdc13-1_SDLV2_REP1.txt","Adam_cdc13-1_SDLV2_REP2.txt","Adam_cdc13-1_SDLV2_REP3.txt","Adam_cdc13-1_SDLV2_REP4.txt") DescripControl<-"ExptDescriptionCDC13.txt" upd=800000 iter=200000 thin=200 data("AdamFull") qfa.vari...
/backup/Rbkup/demo/.svn/text-base/A_CustomModel7_3.R.svn-base
no_license
jhncl/Model-in-C
R
false
false
782
# Hierarchical.R # Single Model CustomModel="A_CustomModel7_3" work="BASIC" Control<-c("Adam_cdc13-1_SDLV2_REP1.txt","Adam_cdc13-1_SDLV2_REP2.txt","Adam_cdc13-1_SDLV2_REP3.txt","Adam_cdc13-1_SDLV2_REP4.txt") DescripControl<-"ExptDescriptionCDC13.txt" upd=800000 iter=200000 thin=200 data("AdamFull") qfa.vari...
####################################################################################################################### ## ## Matching the recovered latent components to the true (experimentally obtained) ones ## #########################################################################################################...
/R/matching.R
no_license
lutsik/MeDeCom
R
false
false
6,312
r
####################################################################################################################### ## ## Matching the recovered latent components to the true (experimentally obtained) ones ## #########################################################################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tauLeaping.R \name{tauLeaping} \alias{tauLeaping} \title{Explicit Adaptive Tau-leaping simulation} \usage{ tauLeaping(modelFile, time, realizations, intervals = 0, noStats = FALSE, keepTrajectories = FALSE, keepHistograms = FALSE, bins = 32...
/man/tauLeaping.Rd
no_license
HarryCaveMan/StochKit2R
R
false
true
2,936
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tauLeaping.R \name{tauLeaping} \alias{tauLeaping} \title{Explicit Adaptive Tau-leaping simulation} \usage{ tauLeaping(modelFile, time, realizations, intervals = 0, noStats = FALSE, keepTrajectories = FALSE, keepHistograms = FALSE, bins = 32...
#' @include utils_sharedGenerics.R classUnions.R NULL #' @rdname DataSet #' #' @param keepNA \code{logical}, TRUE to keep NA values. #' #' @examples #' setDataProvider(.Object = dataSet(), data.frame(key = c("FR", "US"), value = c(20,10))) #' setMethod(f = "setDataProvider", signature = c("DataSet", "ANY"...
/R/class_DataSet_setters.R
no_license
cran/rAmCharts
R
false
false
3,698
r
#' @include utils_sharedGenerics.R classUnions.R NULL #' @rdname DataSet #' #' @param keepNA \code{logical}, TRUE to keep NA values. #' #' @examples #' setDataProvider(.Object = dataSet(), data.frame(key = c("FR", "US"), value = c(20,10))) #' setMethod(f = "setDataProvider", signature = c("DataSet", "ANY"...
## matrices.R -- Part of the sparseHessianFD package ## Copyright (C) 2013-2016 Michael Braun #' @name Matrix.to.Coord #' @title Row and column indices from sparse matrix. #' @description Utility function to extract row and column indices of #' the non-zero #' elements of a sparse matrix. #' @param M A matrix that is...
/R/matrices.R
no_license
braunm/sparseHessianFD
R
false
false
9,010
r
## matrices.R -- Part of the sparseHessianFD package ## Copyright (C) 2013-2016 Michael Braun #' @name Matrix.to.Coord #' @title Row and column indices from sparse matrix. #' @description Utility function to extract row and column indices of #' the non-zero #' elements of a sparse matrix. #' @param M A matrix that is...
\alias{GtkToolItemGroup} \alias{gtkToolItemGroup} \name{GtkToolItemGroup} \title{GtkToolItemGroup} \description{A sub container used in a tool palette} \section{Methods and Functions}{ \code{\link{gtkToolItemGroupGetCollapsed}(object)}\cr \code{\link{gtkToolItemGroupGetDropItem}(object, x, y)}\cr \code{\link{gtkToolIte...
/RGtk2/man/GtkToolItemGroup.Rd
no_license
hjy1210/RGtk2
R
false
false
3,262
rd
\alias{GtkToolItemGroup} \alias{gtkToolItemGroup} \name{GtkToolItemGroup} \title{GtkToolItemGroup} \description{A sub container used in a tool palette} \section{Methods and Functions}{ \code{\link{gtkToolItemGroupGetCollapsed}(object)}\cr \code{\link{gtkToolItemGroupGetDropItem}(object, x, y)}\cr \code{\link{gtkToolIte...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph_test.R \name{graph_test} \alias{graph_test} \title{Test genes for differential expression based on the low dimensional embedding and the principal graph} \usage{ graph_test(cds, neighbor_graph = c("knn", "principal_graph"), reduction_...
/man/graph_test.Rd
permissive
jspaezp/monocle3
R
false
true
2,669
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph_test.R \name{graph_test} \alias{graph_test} \title{Test genes for differential expression based on the low dimensional embedding and the principal graph} \usage{ graph_test(cds, neighbor_graph = c("knn", "principal_graph"), reduction_...
################################################################################ ## plot3.R ## ################################################################################ ## This script creates a PNG file of a scatterplot of the sub metering 1 ...
/plot3.R
no_license
ktb55/ExData_Plotting1
R
false
false
1,031
r
################################################################################ ## plot3.R ## ################################################################################ ## This script creates a PNG file of a scatterplot of the sub metering 1 ...
# Power by simulation for a normally distributed continuous outcome with # subjects, items, and residual variability # Population parameters # mu: underlying mean of the outcome in the reference group # betaN: effect size of predictor or interaction # sdItem: sd of random effect at the item level # sdSubject: sd of r...
/code/power_analysis.R
no_license
eskrav/iru-experimental
R
false
false
7,012
r
# Power by simulation for a normally distributed continuous outcome with # subjects, items, and residual variability # Population parameters # mu: underlying mean of the outcome in the reference group # betaN: effect size of predictor or interaction # sdItem: sd of random effect at the item level # sdSubject: sd of r...
rm(list=ls()) WDuni<-c("/its/home/mn301/foodSystems/dataFS") # uni WDhome<-c("/home/trennion/foodSystems/dataFS") # doma setwd(WDuni) setwd(WDhome) #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
/Rcodes/NDMA_EWreports/summarySeasons.R
no_license
MonikaNovackova/FoodSystemGitH
R
false
false
2,899
r
rm(list=ls()) WDuni<-c("/its/home/mn301/foodSystems/dataFS") # uni WDhome<-c("/home/trennion/foodSystems/dataFS") # doma setwd(WDuni) setwd(WDhome) #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...