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
#' @name recordSwap #' #' @title Targeted Record Swapping #' #' #' @description Applies targeted record swapping on micro data considering the identification risk of each record as well the geographic topology. #' #' @details The procedure accepts a `data.frame` or `data.table` containing all necessary information...
/R/recordSwap.R
no_license
Kyoshido/recordSwapping
R
false
false
19,440
r
#' @name recordSwap #' #' @title Targeted Record Swapping #' #' #' @description Applies targeted record swapping on micro data considering the identification risk of each record as well the geographic topology. #' #' @details The procedure accepts a `data.frame` or `data.table` containing all necessary information...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/correctionsataglance-render.R \name{hasValidDataToPlot} \alias{hasValidDataToPlot} \title{Has Valid Data to Plot} \usage{ hasValidDataToPlot(allLaneData) } \arguments{ \item{allLaneData}{A list containing all of the created data lanes} } \des...
/man/hasValidDataToPlot.Rd
permissive
USGS-R/repgen
R
false
true
386
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/correctionsataglance-render.R \name{hasValidDataToPlot} \alias{hasValidDataToPlot} \title{Has Valid Data to Plot} \usage{ hasValidDataToPlot(allLaneData) } \arguments{ \item{allLaneData}{A list containing all of the created data lanes} } \des...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataPackage.R \name{replaceMember} \alias{replaceMember} \alias{replaceMember,DataPackage-method} \title{Replace the raw data or file associated with a DataObject} \usage{ replaceMember(x, do, ...) \S4method{replaceMember}{DataPackage}( x,...
/man/replaceMember.Rd
permissive
ropensci/datapack
R
false
true
2,887
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataPackage.R \name{replaceMember} \alias{replaceMember} \alias{replaceMember,DataPackage-method} \title{Replace the raw data or file associated with a DataObject} \usage{ replaceMember(x, do, ...) \S4method{replaceMember}{DataPackage}( x,...
data_full <- read.csv("./data/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data1 <- subset(data_full, Date %in% c("1/2/2007","2/2/2007")) data1$Date <- as.Date(data1$Date,...
/plot1.R
no_license
RMLefort/ExData_Plotting1
R
false
false
540
r
data_full <- read.csv("./data/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data1 <- subset(data_full, Date %in% c("1/2/2007","2/2/2007")) data1$Date <- as.Date(data1$Date,...
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
/meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615844786-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
2,231
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
# Reid Steele, July 13 2020 # Code designed to update fixed station CTD Metadata files with extra information from CTD casts done on non-reboot cruises # ODF files, fixed station mission numbers, and cruise numbers are kept in ODF_filenames.csv require(xlsx) setwd('C:/Users/steeler/Documents/Reid/BCD Creation...
/ctd_metadata_add_cruises_RS.R
no_license
reidsteele2/Fixed-Stations-BioChem-Reload
R
false
false
4,668
r
# Reid Steele, July 13 2020 # Code designed to update fixed station CTD Metadata files with extra information from CTD casts done on non-reboot cruises # ODF files, fixed station mission numbers, and cruise numbers are kept in ODF_filenames.csv require(xlsx) setwd('C:/Users/steeler/Documents/Reid/BCD Creation...
\name{spatialShrunkenCentroids-methods} \docType{methods} \alias{spatialShrunkenCentroids} \alias{class:SpatialShrunkenCentroids} \alias{SpatialShrunkenCentroids-class} \alias{spatialShrunkenCentroids-methods} \alias{spatialShrunkenCentroids,SparseImagingExperiment,missing-method} \alias{spatialShrunkenCentroids,Spars...
/man/spatialShrunkenCentroids-methods.Rd
no_license
EmilySekera/Cardinal
R
false
false
6,227
rd
\name{spatialShrunkenCentroids-methods} \docType{methods} \alias{spatialShrunkenCentroids} \alias{class:SpatialShrunkenCentroids} \alias{SpatialShrunkenCentroids-class} \alias{spatialShrunkenCentroids-methods} \alias{spatialShrunkenCentroids,SparseImagingExperiment,missing-method} \alias{spatialShrunkenCentroids,Spars...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/delete_duplicates_database.R \name{delete_duplicates_database} \alias{delete_duplicates_database} \title{Delete duplicates} \usage{ delete_duplicates_database() } \value{ A set up database } \description{ Delete duplicates in the database }
/man/delete_duplicates_database.Rd
permissive
joebrew/vilaweb
R
false
true
319
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/delete_duplicates_database.R \name{delete_duplicates_database} \alias{delete_duplicates_database} \title{Delete duplicates} \usage{ delete_duplicates_database() } \value{ A set up database } \description{ Delete duplicates in the database }
############################################################ # Combine individual human sentiment codings of 1,500 random # sentences from plenary speeches in the German Bundestag # CHRISTIAN RAUH - 04.08.2015 ############################################################ library(stringr) setwd("C:/Users/CUZ/WZB_CR/...
/Dictionary/Rauh/JITP-Replication-Final/2_Bundestag/Data/HumanCoding/MergeHumanCodings.R
no_license
msaeltzer/scrape
R
false
false
11,083
r
############################################################ # Combine individual human sentiment codings of 1,500 random # sentences from plenary speeches in the German Bundestag # CHRISTIAN RAUH - 04.08.2015 ############################################################ library(stringr) setwd("C:/Users/CUZ/WZB_CR/...
# Predicting visitors on a website based on various independent variables # importing libraries library(gdata) # loading data dat <- read.xls("./data/mallinnusdata.xlsx", header = TRUE) # summarizing basic statistics of the dataset summary(dat) # plotting the dependent variable against weeks plot(dat$Juokseva_viikk...
/R_customer_analysis/linear_regression_modeling.R
no_license
jmtoivan/data_analysis
R
false
false
4,338
r
# Predicting visitors on a website based on various independent variables # importing libraries library(gdata) # loading data dat <- read.xls("./data/mallinnusdata.xlsx", header = TRUE) # summarizing basic statistics of the dataset summary(dat) # plotting the dependent variable against weeks plot(dat$Juokseva_viikk...
Sea2<-read.csv("Seattle.csv", header = T) View(Sea2) names(Sea2) library(ggplot2) cleanup<-theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.background = element_blank(), axis.line = element_line(color = "black")) approved<-ggplot(Sea2,aes(a...
/Graphs.R
no_license
28lobo/data_analysis
R
false
false
1,331
r
Sea2<-read.csv("Seattle.csv", header = T) View(Sea2) names(Sea2) library(ggplot2) cleanup<-theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.background = element_blank(), axis.line = element_line(color = "black")) approved<-ggplot(Sea2,aes(a...
library(rstan) rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores()) # binary outcome A/B ---- nA <- 30 nB <- 50 sA <- 3 sB <- 5 data_list <- list(nA = nA, nB = nB, sA = sA, sB = sB) stan_samples <- stan(file = "binary_outcome_AB.stan", data = data_list) posterior <- as.data.frame(stan_samples) ...
/binary_outcome_stan.R
no_license
arita37/bayesian_ab_tests
R
false
false
434
r
library(rstan) rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores()) # binary outcome A/B ---- nA <- 30 nB <- 50 sA <- 3 sB <- 5 data_list <- list(nA = nA, nB = nB, sA = sA, sB = sB) stan_samples <- stan(file = "binary_outcome_AB.stan", data = data_list) posterior <- as.data.frame(stan_samples) ...
"dwapi-r Copyright 2018 data.world, Inc. 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 law or agreed to in writing, sof...
/R/delete_insight.R
permissive
datadotworld/dwapi-r
R
false
false
1,522
r
"dwapi-r Copyright 2018 data.world, Inc. 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 law or agreed to in writing, sof...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as_data_frame.R \name{as.data.frame.genind} \alias{as.data.frame.genind} \title{Converts genind to normal data.frame with \code{locus} objects} \usage{ \method{as.data.frame}{genind}(x, row.names, optional, ...) } \arguments{ \item{x}{An obje...
/man/as.data.frame.genind.Rd
no_license
stranda/gstudio
R
false
true
734
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as_data_frame.R \name{as.data.frame.genind} \alias{as.data.frame.genind} \title{Converts genind to normal data.frame with \code{locus} objects} \usage{ \method{as.data.frame}{genind}(x, row.names, optional, ...) } \arguments{ \item{x}{An obje...
## This script generates some summaries of the individual grants/awards library(tidyverse) library(lubridate) library(cowplot) theme_set(theme_minimal()) data_dir = '../MoBE-data/' ## Load data ---- papers_df = read_csv(str_c(data_dir, '00_Sloan.csv')) %>% rename_all(tolower) awards_df = readxl::read_excel(str...
/09_grant_summaries.R
no_license
omarun/MoBE
R
false
false
2,889
r
## This script generates some summaries of the individual grants/awards library(tidyverse) library(lubridate) library(cowplot) theme_set(theme_minimal()) data_dir = '../MoBE-data/' ## Load data ---- papers_df = read_csv(str_c(data_dir, '00_Sloan.csv')) %>% rename_all(tolower) awards_df = readxl::read_excel(str...
# co-expression matrix for parietal lobe source("C:/Users/dkeo/surfdrive/polyQ_coexpression/PolyQ_scripts/baseScript.R") load("resources/BrainExpr.RData") load("resources/sampleIDs.RData") corMatrix <- dget("PolyQ_scripts/corMatrix.R") structureIDs <- rbind(HD_region = c(NA, "HDregion", "HD_region"), structureIDs) #...
/coexpr_PL.R
no_license
arlinkeo/polyQ
R
false
false
1,081
r
# co-expression matrix for parietal lobe source("C:/Users/dkeo/surfdrive/polyQ_coexpression/PolyQ_scripts/baseScript.R") load("resources/BrainExpr.RData") load("resources/sampleIDs.RData") corMatrix <- dget("PolyQ_scripts/corMatrix.R") structureIDs <- rbind(HD_region = c(NA, "HDregion", "HD_region"), structureIDs) #...
makeCacheMatrix <- function(x = matrix()) {} ## This function creates a special "matrix" object that can cache its inverse # makeCacheMatrix creates a special "matrix" object, which is really a list containing a function to # 1. set the value of the matrix # 2. get the value of the matrix # 3. set...
/cachematrix.R
no_license
akhel1999/ProgrammingAssignment2
R
false
false
2,599
r
makeCacheMatrix <- function(x = matrix()) {} ## This function creates a special "matrix" object that can cache its inverse # makeCacheMatrix creates a special "matrix" object, which is really a list containing a function to # 1. set the value of the matrix # 2. get the value of the matrix # 3. set...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimation.R \name{hansenHurwitzCovariance} \alias{hansenHurwitzCovariance} \title{Hansen-Hurwitz covariance estimator} \usage{ hansenHurwitzCovariance(sampleTotals, selectionProbabilities) } \arguments{ \item{sampleTotals}{list() of numeric(...
/lotteryEstimator/man/hansenHurwitzCovariance.Rd
no_license
Sea2Data/CatchLotteryEstimation
R
false
true
1,205
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimation.R \name{hansenHurwitzCovariance} \alias{hansenHurwitzCovariance} \title{Hansen-Hurwitz covariance estimator} \usage{ hansenHurwitzCovariance(sampleTotals, selectionProbabilities) } \arguments{ \item{sampleTotals}{list() of numeric(...
# #### trim input #### # # #' Trim the \code{input} object # #' # #' When running a simulation, it is best to set the \code{\link{input}} to contain vectors longer than what is needed to store all of the information. After running the simulation, the \code{trim.input} function can be used to trim off the unused elemen...
/R/trim.input_monitor__DEPRECATED.R
no_license
Don-Li/CAB
R
false
false
1,762
r
# #### trim input #### # # #' Trim the \code{input} object # #' # #' When running a simulation, it is best to set the \code{\link{input}} to contain vectors longer than what is needed to store all of the information. After running the simulation, the \code{trim.input} function can be used to trim off the unused elemen...
n<-c(2,3,5) s<-c("aa","bb","Cc") b<-c(T,F,F) df<-data.frame(n,s,b) mtcars head(mtcars) help(mtcars) x<-rnorm(100) y<-rnorm(100) z<-sample(c("A","B","C"),size=100,replace=T,prob=c(.4,.3,.3)) df<-data.frame(x,y,z) df head(df) colnames(df)<-c("col1","col2","name") df$col1 head(df$col1) hist(df$col1) df[1:6,] df[2,3] df[1...
/fundamental/df.R
no_license
Roger7410/R_Data_Mining
R
false
false
519
r
n<-c(2,3,5) s<-c("aa","bb","Cc") b<-c(T,F,F) df<-data.frame(n,s,b) mtcars head(mtcars) help(mtcars) x<-rnorm(100) y<-rnorm(100) z<-sample(c("A","B","C"),size=100,replace=T,prob=c(.4,.3,.3)) df<-data.frame(x,y,z) df head(df) colnames(df)<-c("col1","col2","name") df$col1 head(df$col1) hist(df$col1) df[1:6,] df[2,3] df[1...
library(soundgen) ### Name: splitContour ### Title: Split contour ### Aliases: splitContour ### Keywords: internal ### ** Examples soundgen:::splitContour(data.frame(time = c(0, 370, 650, 655, 1050, 1400), value = c(360, 316, 345, 550, 610, 590))) soundgen:::splitContour(data.frame(time = c(0, .2, .205, .8, .81, ...
/data/genthat_extracted_code/soundgen/examples/splitContour.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
691
r
library(soundgen) ### Name: splitContour ### Title: Split contour ### Aliases: splitContour ### Keywords: internal ### ** Examples soundgen:::splitContour(data.frame(time = c(0, 370, 650, 655, 1050, 1400), value = c(360, 316, 345, 550, 610, 590))) soundgen:::splitContour(data.frame(time = c(0, .2, .205, .8, .81, ...
## SDS384.7 Study Guide #4a, Fall 2016 ## Pre (before drawing the MCMC samples) processing FEV data in R # PART 1 ## Perform EDA on FEV data set fevstar.dat = data.frame(read.table("/Users/chenyinglong/Documents/Bayesian Statistics Methods/FEV-Data-CJBH.txt", header=T)) attach(fevstar.dat) fevstar.dat[1:3,] ystar...
/HW6 Model III.R
no_license
chenqi0805/Bayesian-Statistical-Methods
R
false
false
4,069
r
## SDS384.7 Study Guide #4a, Fall 2016 ## Pre (before drawing the MCMC samples) processing FEV data in R # PART 1 ## Perform EDA on FEV data set fevstar.dat = data.frame(read.table("/Users/chenyinglong/Documents/Bayesian Statistics Methods/FEV-Data-CJBH.txt", header=T)) attach(fevstar.dat) fevstar.dat[1:3,] ystar...
% $Author: sinnwell $ % $Date: 2011/11/10 15:29:41 $ % $Header: /projects/genetics/cvs/cvsroot/haplo.stats/man/print.haplo.em.Rd,v 1.4 2011/11/10 15:29:41 sinnwell Exp $ % $Locker: $ % $Log: print.haplo.em.Rd,v $ % Revision 1.4 2011/11/10 15:29:41 sinnwell % major update to hapglm, minor changes to Rd files, prepar...
/man/print.haplo.em.Rd
no_license
cran/haplo.stats
R
false
false
1,388
rd
% $Author: sinnwell $ % $Date: 2011/11/10 15:29:41 $ % $Header: /projects/genetics/cvs/cvsroot/haplo.stats/man/print.haplo.em.Rd,v 1.4 2011/11/10 15:29:41 sinnwell Exp $ % $Locker: $ % $Log: print.haplo.em.Rd,v $ % Revision 1.4 2011/11/10 15:29:41 sinnwell % major update to hapglm, minor changes to Rd files, prepar...
# This code is an attempt to "redo" the 2017 data cleaning, and subsequent analysis, # in an attempt to resolve whatever issue was causing all estimates of fitness across # all levels of a factors to be identical (and standard error) # data to be used is the second data set sent by Zeb, that now includes measure # o...
/geum_aster_2017b.R
no_license
zeb-yoko/geum-aster
R
false
false
21,398
r
# This code is an attempt to "redo" the 2017 data cleaning, and subsequent analysis, # in an attempt to resolve whatever issue was causing all estimates of fitness across # all levels of a factors to be identical (and standard error) # data to be used is the second data set sent by Zeb, that now includes measure # o...
#Load required packages library(dplyr) # Download data from the web UrlFile <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" zipFolder <- "UCI-HAR-Dataset.zip" dataset.name <- "UCI HAR Dataset" if (!file.exists(UrlFile)) { download.file(zipFolder, Urlfile, method = "curl")...
/Course 3/run_analysis.R
no_license
nicholasneo78/JHU-DataScience-Assignment
R
false
false
3,277
r
#Load required packages library(dplyr) # Download data from the web UrlFile <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" zipFolder <- "UCI-HAR-Dataset.zip" dataset.name <- "UCI HAR Dataset" if (!file.exists(UrlFile)) { download.file(zipFolder, Urlfile, method = "curl")...
testlist <- list(b = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ...
/metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615768828-test.R
permissive
akhikolla/updatedatatype-list3
R
false
false
728
r
testlist <- list(b = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ...
# Read in data files # Files should be in same directory as script SCC <- readRDS("Source_Classification_Code.rds") NEI <- readRDS("summarySCC_PM25.rds") # subset data to just Baltimore fips code baltimore <- subset(NEI, fips == "24510") # transform data into easily plottable object baltimore <- transform(baltimore, ...
/plot3.R
no_license
amansur/ExDataAnalysisNEI
R
false
false
888
r
# Read in data files # Files should be in same directory as script SCC <- readRDS("Source_Classification_Code.rds") NEI <- readRDS("summarySCC_PM25.rds") # subset data to just Baltimore fips code baltimore <- subset(NEI, fips == "24510") # transform data into easily plottable object baltimore <- transform(baltimore, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Interaction.R \name{Interaction} \alias{Interaction} \title{Feature interactions} \format{\code{\link{R6Class}} object.} \description{ \code{Interaction} estimates the feature interactions in a prediction model. } \section{Usage}{ \preformat...
/man/Interaction.Rd
permissive
maximilianstroh/iml
R
false
true
4,080
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Interaction.R \name{Interaction} \alias{Interaction} \title{Feature interactions} \format{\code{\link{R6Class}} object.} \description{ \code{Interaction} estimates the feature interactions in a prediction model. } \section{Usage}{ \preformat...
library(xtable) library(C50) library(caret) library(dplyr) library(irr) library(mosaic) rm(list=ls()) train_nomiss_all <- na.omit(read.table("AL.file.2A.txt",header=TRUE)) test_nomiss_all <- na.omit(read.table("AL.file.2B.txt",header=TRUE)) #Create Binary Data train2_nomiss_all = mutate(train_nomiss_all, bin.int = d...
/Code/Tables_5_8/CM_BST_ank_hip_Age2.R
no_license
DrewLazar/SL_Accelerometers
R
false
false
3,583
r
library(xtable) library(C50) library(caret) library(dplyr) library(irr) library(mosaic) rm(list=ls()) train_nomiss_all <- na.omit(read.table("AL.file.2A.txt",header=TRUE)) test_nomiss_all <- na.omit(read.table("AL.file.2B.txt",header=TRUE)) #Create Binary Data train2_nomiss_all = mutate(train_nomiss_all, bin.int = d...
test_prefixColumns <- function(){ Res <- atc:::prefixColumns(atc, "key") checkEquals(unname(unlist(Res)), "atc.key") Res <- atc:::prefixColumns(atc, "key", with.tables="ddd") checkEquals(unname(unlist(Res)), "ddd.key") Res <- atc:::prefixColumns(atc, "unit") checkEquals(unname(unlist(Res)), "dd...
/inst/unitTests/test_dbhelpers.R
permissive
jorainer/atc
R
false
false
2,577
r
test_prefixColumns <- function(){ Res <- atc:::prefixColumns(atc, "key") checkEquals(unname(unlist(Res)), "atc.key") Res <- atc:::prefixColumns(atc, "key", with.tables="ddd") checkEquals(unname(unlist(Res)), "ddd.key") Res <- atc:::prefixColumns(atc, "unit") checkEquals(unname(unlist(Res)), "dd...
#' Print Dependencies and POS of Annotation #' #' @importFrom plotrix boxed.labels draw.arc #' @method plot annotation #' @param x an annotation object #' @param y sentence id #' @param ... other arguments passed to plot #' #' @export plot.annotation = function(x,y=1L,...) { anno = x tkn = getToken(...
/coreNLP/R/plot.R
no_license
ingted/R-Examples
R
false
false
3,031
r
#' Print Dependencies and POS of Annotation #' #' @importFrom plotrix boxed.labels draw.arc #' @method plot annotation #' @param x an annotation object #' @param y sentence id #' @param ... other arguments passed to plot #' #' @export plot.annotation = function(x,y=1L,...) { anno = x tkn = getToken(...
## makeCacheMatrix and cacheSolve store an invertible matrix, calculate the ## inverse, and cache that inverse. ## makeCacheMatrix stores the functions set, get, setsolve, and getsolve makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { ##stores value of matrix x <<- y m <...
/cachematrix.R
no_license
jpeacock15/ProgrammingAssignment2
R
false
false
1,498
r
## makeCacheMatrix and cacheSolve store an invertible matrix, calculate the ## inverse, and cache that inverse. ## makeCacheMatrix stores the functions set, get, setsolve, and getsolve makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { ##stores value of matrix x <<- y m <...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/storage_functions.R \name{objects.delete} \alias{objects.delete} \title{Deletes data blobs and associated metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.} \usage{ objects....
/googlestoragev1beta2.auto/man/objects.delete.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,922
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/storage_functions.R \name{objects.delete} \alias{objects.delete} \title{Deletes data blobs and associated metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.} \usage{ objects....
a <- 100 b <- 2
/fileBaru.R
no_license
AlfaRiza/praktikum2020
R
false
false
16
r
a <- 100 b <- 2
\name{blob.extract} \alias{blob.extract} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ Extract Blob Region from Image (Matrix) } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ Find the predominant blob region in an image using a ...
/man/blob.extract.Rd
no_license
cran/imagefx
R
false
false
6,931
rd
\name{blob.extract} \alias{blob.extract} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ Extract Blob Region from Image (Matrix) } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ Find the predominant blob region in an image using a ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DIC.R \name{DIC} \alias{DIC} \alias{DIC.MSGARCH_MCMC_FIT} \title{Deviance Information Criterion (DIC).} \usage{ DIC(fit) \method{DIC}{MSGARCH_MCMC_FIT}(fit) } \arguments{ \item{fit}{Fit object of type \code{MSGARCH_MCMC_FIT} created with \co...
/Package/man/DIC.Rd
no_license
NanaAkwasiAbayieBoateng/MSGARCH
R
false
true
1,435
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DIC.R \name{DIC} \alias{DIC} \alias{DIC.MSGARCH_MCMC_FIT} \title{Deviance Information Criterion (DIC).} \usage{ DIC(fit) \method{DIC}{MSGARCH_MCMC_FIT}(fit) } \arguments{ \item{fit}{Fit object of type \code{MSGARCH_MCMC_FIT} created with \co...
/cachematrix.R
no_license
babas123/ProgrammingAssignment2
R
false
false
1,139
r
context('Patterns') test_that('auto detect patterns', { expect_identical(detect_pattern('<<>>='), 'rnw') expect_identical(detect_pattern('<<foo, bar=TRUE>>='), 'rnw') expect_identical(detect_pattern('% begin.rcode'), 'tex') expect_identical(detect_pattern('<!--begin.rcode'), 'html') expect_identical(detect_p...
/inst/tests/test-patterns.R
no_license
Honglongwu/knitr
R
false
false
545
r
context('Patterns') test_that('auto detect patterns', { expect_identical(detect_pattern('<<>>='), 'rnw') expect_identical(detect_pattern('<<foo, bar=TRUE>>='), 'rnw') expect_identical(detect_pattern('% begin.rcode'), 'tex') expect_identical(detect_pattern('<!--begin.rcode'), 'html') expect_identical(detect_p...
## ## read in data ## ## colony.ID = ant colony studied (1 or 2) ## date = day of observation (each colony was watched for 20minutes each day) ## ant.ID_1 = ID number of first ant ## ant.Type_1 = categorical classification of first ant ## ant.ID_2 = ID number of second ant ## ant.Type_2 = categorical classification of...
/Code from Ephraim/Ants.mmpp.analysis.r
no_license
MLBartley/Ant-Research
R
false
false
9,689
r
## ## read in data ## ## colony.ID = ant colony studied (1 or 2) ## date = day of observation (each colony was watched for 20minutes each day) ## ant.ID_1 = ID number of first ant ## ant.Type_1 = categorical classification of first ant ## ant.ID_2 = ID number of second ant ## ant.Type_2 = categorical classification of...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hilbert.order.R \name{hilbert.order} \alias{hilbert.order} \title{Estimate the Hilbert order for a given matrix} \usage{ hilbert.order(mat) } \arguments{ \item{mat}{the matrix for which to estimate the Hilbert order} } \value{ the suggested n...
/man/hilbert.order.Rd
no_license
rnaimehaom/hilbertSimilarity
R
false
true
1,616
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hilbert.order.R \name{hilbert.order} \alias{hilbert.order} \title{Estimate the Hilbert order for a given matrix} \usage{ hilbert.order(mat) } \arguments{ \item{mat}{the matrix for which to estimate the Hilbert order} } \value{ the suggested n...
context("colnames") test_that("colnames", { data <- data.frame(x = 1, y = 2, z = 0) expect_identical(check_colnames(data, c("y", "x")), data) expect_error(check_colnames(data, c("y", "x"), exclusive = TRUE), "data column names must include and only include 'y' and 'x'") expect_error(check_colnames(data, ...
/tests/testthat/test-colnames.R
permissive
cran/checkr
R
false
false
772
r
context("colnames") test_that("colnames", { data <- data.frame(x = 1, y = 2, z = 0) expect_identical(check_colnames(data, c("y", "x")), data) expect_error(check_colnames(data, c("y", "x"), exclusive = TRUE), "data column names must include and only include 'y' and 'x'") expect_error(check_colnames(data, ...
#' Extract cells from Data objects #' #' Given a Data object, extract all infected or all uninfected cells. #' #' @param x The original Data object. #' @param infected Either NULL or a boolgen whether to return all infected ( #' TRUE) or all uninfected cells (FALSE). #' #' @return A Data object ...
/R/extractCells.R
no_license
nbenn/singleCellFeatures
R
false
false
1,535
r
#' Extract cells from Data objects #' #' Given a Data object, extract all infected or all uninfected cells. #' #' @param x The original Data object. #' @param infected Either NULL or a boolgen whether to return all infected ( #' TRUE) or all uninfected cells (FALSE). #' #' @return A Data object ...
## Download and unzip project files url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" tmpfile <- tempfile(pattern = "household power consumption", tmpdir = tempdir(), fileext = ".zip") download.file(url, tmpfile) power <- unzip(tmpfile, junkpaths = TRUE) ## Based on...
/plot2.R
no_license
cariveroco/JHDSS-Exploratory_Data_Analysis_Project
R
false
false
1,247
r
## Download and unzip project files url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" tmpfile <- tempfile(pattern = "household power consumption", tmpdir = tempdir(), fileext = ".zip") download.file(url, tmpfile) power <- unzip(tmpfile, junkpaths = TRUE) ## Based on...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mediation.R \name{r_mediation_natural} \alias{r_mediation_natural} \title{r_mediation_natural : function to simulate DNA methylation data for mediation analyzis (based on NaturalGWAS model)} \usage{ r_mediation_natural(meth = NULL, eff.size.x...
/man/r_mediation_natural.Rd
no_license
jumentib/useFonc
R
false
true
1,482
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mediation.R \name{r_mediation_natural} \alias{r_mediation_natural} \title{r_mediation_natural : function to simulate DNA methylation data for mediation analyzis (based on NaturalGWAS model)} \usage{ r_mediation_natural(meth = NULL, eff.size.x...
#' Computation of function values by blocks #' #' Computes a value of a function over blocks of a matrix, defined by a partition. #' #' @param x An object of suitable class or a matrix/array representing the (usually valued) network. For multi-relational networks, this should be an array with the third dimension ...
/R/funByBlocks.R
no_license
cran/blockmodeling
R
false
false
3,020
r
#' Computation of function values by blocks #' #' Computes a value of a function over blocks of a matrix, defined by a partition. #' #' @param x An object of suitable class or a matrix/array representing the (usually valued) network. For multi-relational networks, this should be an array with the third dimension ...
/funciones/data02_DetectMissing.R
permissive
olitroski/ExplorApp
R
false
false
4,551
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "no2") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = makeLearner("...
/models/openml_no2/classification_binaryClass/1b9a4472d48df01ba1e81b2cd40de258/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
704
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "no2") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = makeLearner("...
# Introdução à Linguagem R # Operações com Strings # Configurando o diretório de trabalho setwd("C:/R/LinguagemR/Unidade-I") getwd() # Como poderemos trabalhar com textos? # As strings são utilizadas pra isso # Criando uma string string = "Introdução às Linguagem R" # Converter número em texto x = 9 as.character(x)...
/Unidade-I/09.Strings.R
no_license
joaogilberto23/LinguagemR
R
false
false
706
r
# Introdução à Linguagem R # Operações com Strings # Configurando o diretório de trabalho setwd("C:/R/LinguagemR/Unidade-I") getwd() # Como poderemos trabalhar com textos? # As strings são utilizadas pra isso # Criando uma string string = "Introdução às Linguagem R" # Converter número em texto x = 9 as.character(x)...
library(dplyr) #reading the data #read the file as csv with ';' separator (csv2 does it) pwr <- read.csv2('household_power_consumption.txt', dec='.', na.strings='?') #convert date column as date format pwr <- mutate(pwr, Date = as.Date(Date, format='%d/%m/%Y')) #I don't need not needed values pwr <- pwr[pwr$Date >=...
/plot4.R
no_license
kisscool62/ExData_Plotting1
R
false
false
2,147
r
library(dplyr) #reading the data #read the file as csv with ';' separator (csv2 does it) pwr <- read.csv2('household_power_consumption.txt', dec='.', na.strings='?') #convert date column as date format pwr <- mutate(pwr, Date = as.Date(Date, format='%d/%m/%Y')) #I don't need not needed values pwr <- pwr[pwr$Date >=...
# Step1. #Read train data trainData <- read.table("./UCI/train/X_train.txt") trainLabel <- read.table("./UCI/train/y_train.txt") trainSubject <- read.table("./UCI/train/subject_train.txt") #Read test data testData <- read.table("./UCI/test/X_test.txt") testLabel <- read.table("./UCI/test/y_test.txt") testSubject <- re...
/3-Ciencias de Datos Especializacion COURSERA/3. Obtención y limpieza de datos/Proyecto Tidy Data/GCData-master/run_analysis.R
no_license
charlyshaka/Ciencia-De-Datos-Tijuana
R
false
false
1,938
r
# Step1. #Read train data trainData <- read.table("./UCI/train/X_train.txt") trainLabel <- read.table("./UCI/train/y_train.txt") trainSubject <- read.table("./UCI/train/subject_train.txt") #Read test data testData <- read.table("./UCI/test/X_test.txt") testLabel <- read.table("./UCI/test/y_test.txt") testSubject <- re...
#' Convert data to moving sum/prop. #' #' @param data.behavior a data.frame containing occurrence/nonoccurrence data in #' binary (0/1) format #' @param window the window length to use in computing a moving sum or #' proportion #' @param step the number of bins of which the data will be translated. #' @param resol...
/R/ShapeData.R
no_license
stephaniejing0324/FreqProf
R
false
false
3,978
r
#' Convert data to moving sum/prop. #' #' @param data.behavior a data.frame containing occurrence/nonoccurrence data in #' binary (0/1) format #' @param window the window length to use in computing a moving sum or #' proportion #' @param step the number of bins of which the data will be translated. #' @param resol...
#' Extract a commit from a Git repository #' #' \code{extract_commit} extracts the 7-digit SHA1 identifier and message for a #' specified commit. #' #' @param path character. Specify the path to a directory that is a Git #' repository (or any subdirectory of the Git repository). #' @param num numeric. The number of t...
/R/git.R
permissive
danilofreire/workflowr
R
false
false
17,677
r
#' Extract a commit from a Git repository #' #' \code{extract_commit} extracts the 7-digit SHA1 identifier and message for a #' specified commit. #' #' @param path character. Specify the path to a directory that is a Git #' repository (or any subdirectory of the Git repository). #' @param num numeric. The number of t...
rm(list = ls()) library(rspecan) sethere() data_name <- "ecosis_crop_N_LMA" data_longname <- "Fresh leaf spectra to estimate leaf N concentration and leaf mass per area in two vegetable crops" ecosis_file <- "raw_data/fresh-leaf-spectra-to-estimate-leaf-n-concentration-and-leaf-mass-per-area-in-two-vegetable-crops.csv...
/scripts/process.ecosis_crop_N_LMA.R
no_license
ashiklom/rspecan
R
false
false
1,301
r
rm(list = ls()) library(rspecan) sethere() data_name <- "ecosis_crop_N_LMA" data_longname <- "Fresh leaf spectra to estimate leaf N concentration and leaf mass per area in two vegetable crops" ecosis_file <- "raw_data/fresh-leaf-spectra-to-estimate-leaf-n-concentration-and-leaf-mass-per-area-in-two-vegetable-crops.csv...
#' Figure 5 resistance library(tidyverse) library(data.table) library(cowplot) library(ggpubr) # Parameters n_directed_selected = 20 # Number of rounds of directed selection n_transfer_round = 20 # Number of transfer between rounds show_iteration_protocol <- c("simple_screening", 1:3) name_iteration_protocol <- c("s...
/Plotting_Scripts/Deprecated/deprecated/Fig5_old.R
permissive
Chang-Yu-Chang/community-selection
R
false
false
9,863
r
#' Figure 5 resistance library(tidyverse) library(data.table) library(cowplot) library(ggpubr) # Parameters n_directed_selected = 20 # Number of rounds of directed selection n_transfer_round = 20 # Number of transfer between rounds show_iteration_protocol <- c("simple_screening", 1:3) name_iteration_protocol <- c("s...
## code to prepare `DATASET` dataset goes here set.seed(1234) library(dplyr) circle_example <- data.frame( x = runif(400, 1, 15), y = runif(400, 1, 15) ) %>% mutate(class = factor(sqrt((x - 8)^2 + (y - 8)^2) < 3, levels = c(TRUE, FALSE), c("Circle", "Rest"))) usethis::use_data(circle_example, overwrite = TRUE)
/data-raw/DATASET.R
permissive
yadevi/themis
R
false
false
320
r
## code to prepare `DATASET` dataset goes here set.seed(1234) library(dplyr) circle_example <- data.frame( x = runif(400, 1, 15), y = runif(400, 1, 15) ) %>% mutate(class = factor(sqrt((x - 8)^2 + (y - 8)^2) < 3, levels = c(TRUE, FALSE), c("Circle", "Rest"))) usethis::use_data(circle_example, overwrite = TRUE)
#---------load up functionality and fonts------------ library(readr) library(dplyr) library(tidyr) library(ggplot2) library(showtext) library(gam) font.add.google("Poppins", "myfont") showtext.auto() theme_set(theme_light(base_family = "Calibri")) theme_set(theme_light()) #-----------import data---------------- # Ope...
/_working/0033_sg-prob-v-actuality.R
no_license
ellisp/blog-source
R
false
false
1,685
r
#---------load up functionality and fonts------------ library(readr) library(dplyr) library(tidyr) library(ggplot2) library(showtext) library(gam) font.add.google("Poppins", "myfont") showtext.auto() theme_set(theme_light(base_family = "Calibri")) theme_set(theme_light()) #-----------import data---------------- # Ope...
#' FormatForRegression #' #' \code{FormatForRegression} takes data and prepares it for PRM regression #' @param f fishery #' @param Data raw data #' @param Fisheries the total list of all possible fisheries #' @param DependentVariable the left hand variable #' @param CatchVariables vector of catch related variables #' ...
/R/FormatForRegression.R
permissive
kmillage/GUM
R
false
false
3,536
r
#' FormatForRegression #' #' \code{FormatForRegression} takes data and prepares it for PRM regression #' @param f fishery #' @param Data raw data #' @param Fisheries the total list of all possible fisheries #' @param DependentVariable the left hand variable #' @param CatchVariables vector of catch related variables #' ...
library(dplyr) library(sf) library(nabor) # Load data --------------------------------------------------------------- tiger_2000_centroids <- st_read("output/zctas/zcta5_2000.gpkg") %>% st_centroid() tiger_2010_centroids <- st_read("output/zctas/zcta5_2010.gpkg") %>% st_centroid() tiger_intersections <- st_read("...
/stage3_matching.R
no_license
schwartzgroup/ses-imputation
R
false
false
1,686
r
library(dplyr) library(sf) library(nabor) # Load data --------------------------------------------------------------- tiger_2000_centroids <- st_read("output/zctas/zcta5_2000.gpkg") %>% st_centroid() tiger_2010_centroids <- st_read("output/zctas/zcta5_2010.gpkg") %>% st_centroid() tiger_intersections <- st_read("...
library(R.matlab) library(ggplot2) ResultsFolder = '/Users/zaixucui/Documents/projects/pncSingleFuncParcel_psychopathology/Replication/results'; WeightFolder = paste0(ResultsFolder, '/PLSr1/AtlasLoading/WeightVisualize_Externalizing_RandomCV'); Weight_Externalizing_Mat = readMat(paste0(WeightFolder, '/w_Brain_Externa...
/Step_5th_PLSr1_Corrtraits/Step_6th_SumofWeights_Externalizing.R
no_license
SaqibMamoon/pncsinglefuncparcel_psychopathology
R
false
false
2,677
r
library(R.matlab) library(ggplot2) ResultsFolder = '/Users/zaixucui/Documents/projects/pncSingleFuncParcel_psychopathology/Replication/results'; WeightFolder = paste0(ResultsFolder, '/PLSr1/AtlasLoading/WeightVisualize_Externalizing_RandomCV'); Weight_Externalizing_Mat = readMat(paste0(WeightFolder, '/w_Brain_Externa...
/code/Practica2Tipologia.R
no_license
marmartnz/Practica-2-Tipologia
R
false
false
8,241
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deterge.R \name{deterge} \alias{deterge} \alias{deterge_to_double} \alias{deterge_to_integer} \alias{deterge_to_ascii} \title{Convert (and possibly clean) a vector} \usage{ deterge_to_double(x, bound_lower, bound_upper) deterge_to_integer(x, ...
/man/deterge.Rd
permissive
OuhscBbmc/OuhscMunge
R
false
true
1,808
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deterge.R \name{deterge} \alias{deterge} \alias{deterge_to_double} \alias{deterge_to_integer} \alias{deterge_to_ascii} \title{Convert (and possibly clean) a vector} \usage{ deterge_to_double(x, bound_lower, bound_upper) deterge_to_integer(x, ...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1617 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1617 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/e...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/eequery_query10_1344n/eequery_query10_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
710
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1617 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1617 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/e...
test_that("plot_treemaps_from_path_data() works", { f <- fakin.path.app::plot_treemaps_from_path_data expect_error(f()) path_data <- kwb.utils::noFactorDataFrame( path = c("a/b/c", "a/b/d", "a/b/e"), size = c(1, 2, 3), type = "file" ) expect_error(f(path_data, n_levels = 1)) })
/tests/testthat/test-function-plot_treemaps_from_path_data.R
permissive
KWB-R/fakin.path.app
R
false
false
305
r
test_that("plot_treemaps_from_path_data() works", { f <- fakin.path.app::plot_treemaps_from_path_data expect_error(f()) path_data <- kwb.utils::noFactorDataFrame( path = c("a/b/c", "a/b/d", "a/b/e"), size = c(1, 2, 3), type = "file" ) expect_error(f(path_data, n_levels = 1)) })
rm(list=ls()) x = matrix(c(1:12),3,4) min(apply(x,1,mean)) + max(apply(x,2,mean)) 1:2 -1
/R_learning_16.R
no_license
codemkim/ADsP_Study
R
false
false
96
r
rm(list=ls()) x = matrix(c(1:12),3,4) min(apply(x,1,mean)) + max(apply(x,2,mean)) 1:2 -1
# Install the relevant packages install.packages(c("tidyverse", "readr")) install.packages("remotes") remotes::install_github("ewenme/understatr") # Load the packages library(tidyverse) library(readr) library(understatr) # Create a vector of years year_vec <- 2014:2020 # Read all the player data availab...
/Read EPL Stats.R
no_license
aappiah17/Football-Analytics
R
false
false
748
r
# Install the relevant packages install.packages(c("tidyverse", "readr")) install.packages("remotes") remotes::install_github("ewenme/understatr") # Load the packages library(tidyverse) library(readr) library(understatr) # Create a vector of years year_vec <- 2014:2020 # Read all the player data availab...
library(RODBC) library("reshape") channel <- odbcConnect("AlgodoeiroDSN") agricultores = sqlQuery(channel,"select nome_agricultor, nome_comunidade, nome_regiao from agricultor a, comunidade c, regiao r where a.id_comunidade = c.id and c.id_regiao = r.id and r.nome_regia...
/src/R/tratar dados/tratar_apodi.R
no_license
Zanguient/algodoeiro
R
false
false
4,936
r
library(RODBC) library("reshape") channel <- odbcConnect("AlgodoeiroDSN") agricultores = sqlQuery(channel,"select nome_agricultor, nome_comunidade, nome_regiao from agricultor a, comunidade c, regiao r where a.id_comunidade = c.id and c.id_regiao = r.id and r.nome_regia...
## ## PURPOSE: Computation of the preditive univariate conditional densities (given one margin) ## * default method ## ## AUTHOR: Arnost Komarek (LaTeX: Arno\v{s}t Kom\'arek) ## arnost.komarek[AT]mff.cuni.cz ## ## CREATED: 31/05/2009 ## 15/03/2017 .C call uses registered r...
/R/NMixPredCondDensMarg.default.R
no_license
cran/mixAK
R
false
false
5,608
r
## ## PURPOSE: Computation of the preditive univariate conditional densities (given one margin) ## * default method ## ## AUTHOR: Arnost Komarek (LaTeX: Arno\v{s}t Kom\'arek) ## arnost.komarek[AT]mff.cuni.cz ## ## CREATED: 31/05/2009 ## 15/03/2017 .C call uses registered r...
#Creamos una serie de funciones triviales #Se obtiene con una función intuitiva el resto de una división introduciendo dividendo y divisor resto<-function(dividendo,divisor){ return(dividendo%%divisor) } #Te dirá si un número es divisible por otro cualquiera es.divisible<-function(numero,divisor){ if (numero%%div...
/Documents/Dummies/Dummies.R
no_license
Nomarsky/Dummies
R
false
false
1,062
r
#Creamos una serie de funciones triviales #Se obtiene con una función intuitiva el resto de una división introduciendo dividendo y divisor resto<-function(dividendo,divisor){ return(dividendo%%divisor) } #Te dirá si un número es divisible por otro cualquiera es.divisible<-function(numero,divisor){ if (numero%%div...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_profiles.R \name{plot_profiles} \alias{plot_profiles} \title{plot_profiles} \usage{ plot_profiles(profile_dat, plot_type = "boxplot", sources_plot = NA, samples_plot = "all", sample_column = "sample_id", source_abbreviation = FALSE) ...
/man/plot_profiles.Rd
no_license
limnoliver/pah
R
false
true
1,637
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_profiles.R \name{plot_profiles} \alias{plot_profiles} \title{plot_profiles} \usage{ plot_profiles(profile_dat, plot_type = "boxplot", sources_plot = NA, samples_plot = "all", sample_column = "sample_id", source_abbreviation = FALSE) ...
tmpDir <- file.path("~/Dropbox/tmp/bibtex2hugo") setwd(tmpDir) ## Mendeley doesn't create a .bib file for "My Publications"!! ## Need to manually select all my publications (Ctrl-A), right-click, and ## select "Copy As" > "BibTex Entry". ## Paste to a blank text file and save the file as "My_Papers.bib". file.copy("~...
/bibtex2hugo.R
permissive
achubaty/academic-kickstart
R
false
false
3,469
r
tmpDir <- file.path("~/Dropbox/tmp/bibtex2hugo") setwd(tmpDir) ## Mendeley doesn't create a .bib file for "My Publications"!! ## Need to manually select all my publications (Ctrl-A), right-click, and ## select "Copy As" > "BibTex Entry". ## Paste to a blank text file and save the file as "My_Papers.bib". file.copy("~...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/movie_get_upcoming.R \name{movie_get_upcoming} \alias{movie_get_upcoming} \title{Get a list of upcoming movies in theatres} \usage{ movie_get_upcoming(section = "movie", page = 1) } \arguments{ \item{section}{string : do not alter, sets the s...
/man/movie_get_upcoming.Rd
no_license
kxzk/tmdbr
R
false
true
526
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/movie_get_upcoming.R \name{movie_get_upcoming} \alias{movie_get_upcoming} \title{Get a list of upcoming movies in theatres} \usage{ movie_get_upcoming(section = "movie", page = 1) } \arguments{ \item{section}{string : do not alter, sets the s...
# remove NOTE about no visible binding for global variable during R CMD check -- if (getRversion() >= "2.15.1") { utils::globalVariables( c("ID", "CloneID", "SnpPosition", "CallRate", "AvgCountRef", "AvgCountSnp", "RepAvg", "NOT_USEFUL", "SNP", "CALL_RATE", "AVG_COUNT_REF", "AVG_COUNT_SNP", "REP_AVG",...
/R/global_variables.R
no_license
Maschette/radiator
R
false
false
7,343
r
# remove NOTE about no visible binding for global variable during R CMD check -- if (getRversion() >= "2.15.1") { utils::globalVariables( c("ID", "CloneID", "SnpPosition", "CallRate", "AvgCountRef", "AvgCountSnp", "RepAvg", "NOT_USEFUL", "SNP", "CALL_RATE", "AVG_COUNT_REF", "AVG_COUNT_SNP", "REP_AVG",...
library(glmnet) mydata = read.table("./TrainingSet/Correlation/thyroid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0,family="gaussian",standardize=TRUE) sink('./Model/EN/Correlation/thyroid/thyroid_003.txt',ap...
/Model/EN/Correlation/thyroid/thyroid_003.R
no_license
leon1003/QSMART
R
false
false
360
r
library(glmnet) mydata = read.table("./TrainingSet/Correlation/thyroid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0,family="gaussian",standardize=TRUE) sink('./Model/EN/Correlation/thyroid/thyroid_003.txt',ap...
context("SEMinR correctly estimates rho_A for the simple model\n") # Test cases ## Simple case # seminr syntax for creating measurement model mobi_mm <- constructs( reflective("Image", multi_items("IMAG", 1:5)), reflective("Expectation", multi_items("CUEX", 1:3)), reflective("Value", multi_items("...
/tests/testthat/test-consistent.R
no_license
sem-in-r/seminr
R
false
false
4,739
r
context("SEMinR correctly estimates rho_A for the simple model\n") # Test cases ## Simple case # seminr syntax for creating measurement model mobi_mm <- constructs( reflective("Image", multi_items("IMAG", 1:5)), reflective("Expectation", multi_items("CUEX", 1:3)), reflective("Value", multi_items("...
# difftime and date math # affiliate: https://linkedin-learning.pxf.io/rdatesMath # values to work with USA_Independence <- as.Date("1776/07/04") TodayDate <- Sys.Date() US_age <- TodayDate - USA_Independence TodayTime_ct <- Sys.time() TodayTime_lt <- as.POSIXlt(Sys.time()) # this tests the results of all math combin...
/chapter 02/02_05 math.R
no_license
mnr/R-for-Data-Science-dates-and-times
R
false
false
1,636
r
# difftime and date math # affiliate: https://linkedin-learning.pxf.io/rdatesMath # values to work with USA_Independence <- as.Date("1776/07/04") TodayDate <- Sys.Date() US_age <- TodayDate - USA_Independence TodayTime_ct <- Sys.time() TodayTime_lt <- as.POSIXlt(Sys.time()) # this tests the results of all math combin...
test_rfSelection=function(){ para <- new("metaXpara") checkException(metaXpipe()) checkException(metaXpipe(para)) }
/inst/unitTests/test_metaXpipe.R
no_license
wenbostar/metaX
R
false
false
145
r
test_rfSelection=function(){ para <- new("metaXpara") checkException(metaXpipe()) checkException(metaXpipe(para)) }
\name{case_2_1} \alias{case_2_1} \docType{data} \title{Team Batting Statistics} \description{ Batting statistics for 30 Major League Baseball teams in 2014. } \usage{ case_2_1 } \format{ A data frame. \describe{ \item{Team}{Team name} \item{G}{Games} \item{AB}{At-bats} \item{PA}{Plate appearances} \item{H...
/man/case_2_1.Rd
no_license
bayesball/tsub
R
false
false
809
rd
\name{case_2_1} \alias{case_2_1} \docType{data} \title{Team Batting Statistics} \description{ Batting statistics for 30 Major League Baseball teams in 2014. } \usage{ case_2_1 } \format{ A data frame. \describe{ \item{Team}{Team name} \item{G}{Games} \item{AB}{At-bats} \item{PA}{Plate appearances} \item{H...
context("Time Series Summary Statistics") test_that("ts_summary works", { dat <- get_jornada_data() obs <- dat$abundance n <- NCOL(obs) var_names <- names(obs) # check message output expect_error(m <- capture_messages(output <- ts_summary(obs)), NA) expect_match(m, "`time` is `NULL`, a...
/tests/testthat/test-08-summary-stats.R
permissive
ethanwhite/MATSS
R
false
false
6,060
r
context("Time Series Summary Statistics") test_that("ts_summary works", { dat <- get_jornada_data() obs <- dat$abundance n <- NCOL(obs) var_names <- names(obs) # check message output expect_error(m <- capture_messages(output <- ts_summary(obs)), NA) expect_match(m, "`time` is `NULL`, a...
varinfo.compareGroups<- function(x,...) { if (!inherits(x,"compareGroups")) stop("x must be of character 'compareGroups'") varnames.orig<-attr(x,"varnames.orig") yname.orig<-attr(x,"yname.orig") yname<-attr(x,"yname") varnames<-names(x) ans<-cbind(c(yname.orig,varnames.orig),c(yname,varnames)...
/R/varinfo.compareGroups.R
no_license
cran/compareGroups
R
false
false
499
r
varinfo.compareGroups<- function(x,...) { if (!inherits(x,"compareGroups")) stop("x must be of character 'compareGroups'") varnames.orig<-attr(x,"varnames.orig") yname.orig<-attr(x,"yname.orig") yname<-attr(x,"yname") varnames<-names(x) ans<-cbind(c(yname.orig,varnames.orig),c(yname,varnames)...
# step 1 head(trees, 5) # step 2 plot(trees$Girth, trees$Height) # step 3 hist(trees$Height)
/rbasics/solution/step4.R
no_license
shiyuangu/cloudera_hadoop
R
false
false
95
r
# step 1 head(trees, 5) # step 2 plot(trees$Girth, trees$Height) # step 3 hist(trees$Height)
library(dplyr) ss.bounds <- readRDS("ss.bounds.rds") alpha <- 0.025 method <- 'wald' scenario <- 22 param <- 1 anal_type <- "mice" ss <- ss.bounds%>% dplyr::filter(method == "wald", scenario.id == scenario) do_val <- 0.1 x1 <- parallel::mclapply(X = 1:10000, mc.cores = parallel::detect...
/sim_pgms/wald/do10/2xcontH0_sc22_do10_mice.R
no_license
yuliasidi/nibinom_apply
R
false
false
3,327
r
library(dplyr) ss.bounds <- readRDS("ss.bounds.rds") alpha <- 0.025 method <- 'wald' scenario <- 22 param <- 1 anal_type <- "mice" ss <- ss.bounds%>% dplyr::filter(method == "wald", scenario.id == scenario) do_val <- 0.1 x1 <- parallel::mclapply(X = 1:10000, mc.cores = parallel::detect...
library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error b.var <- c(0.01) # The set of varaince of random covariates b as random slope smooth <- 0 # measurement error is added to M if smooth = 0; no measurement error is added if sooth = 1 cores <- 4 r.sim <- b.va...
/full simulation/03.13.2018/power test/variance0.01/seed1/power_0.01_pca_u_seed1_200_20.R
no_license
wma9/FMRI-project
R
false
false
9,158
r
library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error b.var <- c(0.01) # The set of varaince of random covariates b as random slope smooth <- 0 # measurement error is added to M if smooth = 0; no measurement error is added if sooth = 1 cores <- 4 r.sim <- b.va...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_129} \alias{movie_129} \title{Bottle Rocket} \format{igraph object} \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0115734 } \usag...
/man/movie_129.Rd
permissive
physthoth/networkdata
R
false
true
653
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_129} \alias{movie_129} \title{Bottle Rocket} \format{igraph object} \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0115734 } \usag...
library(dplyr); ## Read the file and apply filter on Date hData <- read.table("G:\\Data Science\\Exdata\\household_power_consumption.txt",header=T, sep=";",stringsAsFactors = FALSE,na.strings="?") hData <- mutate(hData,Date=as.Date(Date,"%d/%m/%Y")); hData <- mutate(hData,DateTime=paste(Date,Time...
/plot4.R
no_license
jyothishnet/ExData_Plotting1
R
false
false
1,292
r
library(dplyr); ## Read the file and apply filter on Date hData <- read.table("G:\\Data Science\\Exdata\\household_power_consumption.txt",header=T, sep=";",stringsAsFactors = FALSE,na.strings="?") hData <- mutate(hData,Date=as.Date(Date,"%d/%m/%Y")); hData <- mutate(hData,DateTime=paste(Date,Time...
############ ## Cummulative Trait Detection ############ library(ggplot2) library(parallel) PCA.HT <- function(dat,nPC = 10){ require(pcaMethods) p <- pca(t(dat),nPcs = nPC) return(p@scores) } ICA.HT <- function(){ require(fastICA) ica <- fastICA(t(dat),n.comp = 2) } TSNE.HT <- function(dat,perp = 8, K = 8...
/CummTrait.R
no_license
PatrickJReed/Inigo
R
false
false
2,316
r
############ ## Cummulative Trait Detection ############ library(ggplot2) library(parallel) PCA.HT <- function(dat,nPC = 10){ require(pcaMethods) p <- pca(t(dat),nPcs = nPC) return(p@scores) } ICA.HT <- function(){ require(fastICA) ica <- fastICA(t(dat),n.comp = 2) } TSNE.HT <- function(dat,perp = 8, K = 8...
\name{is.outlier} \alias{is.outlier} \title{An example function from the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R} \description{An example function from Chapter 2 of the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_...
/man/is.outlier.Rd
no_license
42n4/dmr.stats
R
false
false
961
rd
\name{is.outlier} \alias{is.outlier} \title{An example function from the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R} \description{An example function from Chapter 2 of the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(markdown) ui <- navbarPage("Navbar!", tabPanel("Plot", sid...
/script/test/app.R
no_license
junjiewu-mtl/GLIS_research_project
R
false
false
2,619
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(markdown) ui <- navbarPage("Navbar!", tabPanel("Plot", sid...
rm(list=ls()) WDuni<-c("/its/home/mn301/foodSystems/dataFS") # uni WDhome<-c("/home/trennion/foodSystems/dataFS") # doma setwd(WDuni) setwd(WDhome) library('plm') library('dplyr') library('tseries') library('nlme') load("Main/CrMaize16.RData") CrMaize16ts<-pdata.frame(CrMaize16,index=c("ID","Year")) #ooooooooooooo...
/Rcodes/Eq1ProdFun4/Data4checkinPlots.R
no_license
MonikaNovackova/FoodSystemGitH
R
false
false
2,889
r
rm(list=ls()) WDuni<-c("/its/home/mn301/foodSystems/dataFS") # uni WDhome<-c("/home/trennion/foodSystems/dataFS") # doma setwd(WDuni) setwd(WDhome) library('plm') library('dplyr') library('tseries') library('nlme') load("Main/CrMaize16.RData") CrMaize16ts<-pdata.frame(CrMaize16,index=c("ID","Year")) #ooooooooooooo...
# Clock S3 class # constructor: Clock(), initialize and restart # methods # Reset(x) --> reset timer # UserCpu(x) --> return user cpu time in seconds from last restart # SystemCpu(x) --> return system cpu time in seconds from last restart # Cpu(x) --> return total cpu time in seconds from last restart #...
/Clock.R
permissive
rlowrance/re-local-linear
R
false
false
2,847
r
# Clock S3 class # constructor: Clock(), initialize and restart # methods # Reset(x) --> reset timer # UserCpu(x) --> return user cpu time in seconds from last restart # SystemCpu(x) --> return system cpu time in seconds from last restart # Cpu(x) --> return total cpu time in seconds from last restart #...
#Dataset reference: #This assignment uses data from the UC Irvine Machine Learning Repository, a popular repository #for machine learning datasets. In particular, we will be using the "Individual household electric #power consumption Data Set" ##set the working directory to access data setwd("C:/Users/betty/O...
/Plot 4.R
no_license
bettyak/ExData_Plotting1
R
false
false
3,186
r
#Dataset reference: #This assignment uses data from the UC Irvine Machine Learning Repository, a popular repository #for machine learning datasets. In particular, we will be using the "Individual household electric #power consumption Data Set" ##set the working directory to access data setwd("C:/Users/betty/O...
Help <- function(topic=NULL) { # set up plot window set.up.plot <- function(nlines) { par(mar=c(.5,.5,.5,.5), bg=rgb(255,253,250,maxColorValue=255), fg=rgb(20,15,15,maxColorValue=255), cex=.72) plot.new() plot.window(xlim=c(0,100), ylim=c(0,100)) if (!missing(nlines)) ...
/R/Help.R
no_license
Yixf-Self/lessR
R
false
false
41,167
r
Help <- function(topic=NULL) { # set up plot window set.up.plot <- function(nlines) { par(mar=c(.5,.5,.5,.5), bg=rgb(255,253,250,maxColorValue=255), fg=rgb(20,15,15,maxColorValue=255), cex=.72) plot.new() plot.window(xlim=c(0,100), ylim=c(0,100)) if (!missing(nlines)) ...
test_that("works for a simple example", { json <- '[1, "string", true, [1, 2], {"name": "value"}, null]' %>% gather_array expect_identical(json %>% is_json_number %>% which, 1L) expect_identical(json %>% is_json_string %>% which, 2L) expect_identical(json %>% is_json_logical %>% which, 3L) expect_iden...
/tests/testthat/test-is_json.R
permissive
colearendt/tidyjson
R
false
false
856
r
test_that("works for a simple example", { json <- '[1, "string", true, [1, 2], {"name": "value"}, null]' %>% gather_array expect_identical(json %>% is_json_number %>% which, 1L) expect_identical(json %>% is_json_string %>% which, 2L) expect_identical(json %>% is_json_logical %>% which, 3L) expect_iden...
################################################################################ ## Experimenting with other ideas for synth ################################################################################ get_svd_bal <- function(outcomes, metadata, trt_unit=1, r, hyperparam, link=c("logit", "li...
/R/experimental.R
no_license
ebenmichael/ents
R
false
false
6,933
r
################################################################################ ## Experimenting with other ideas for synth ################################################################################ get_svd_bal <- function(outcomes, metadata, trt_unit=1, r, hyperparam, link=c("logit", "li...
\name{bw.pcf} \alias{bw.pcf} \title{ Cross Validated Bandwidth Selection for Pair Correlation Function } \description{ Uses composite likelihood or generalized least squares cross-validation to select a smoothing bandwidth for the kernel estimation of pair correlation function. } \usage{ bw.pcf(X, rmax=NULL,...
/man/bw.pcf.Rd
no_license
jschedler/spatstat
R
false
false
4,124
rd
\name{bw.pcf} \alias{bw.pcf} \title{ Cross Validated Bandwidth Selection for Pair Correlation Function } \description{ Uses composite likelihood or generalized least squares cross-validation to select a smoothing bandwidth for the kernel estimation of pair correlation function. } \usage{ bw.pcf(X, rmax=NULL,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/themes.R \name{theme_tron} \alias{theme_tron} \title{Apply tron theme} \usage{ theme_tron(x) } \arguments{ \item{x}{a flextable object} } \description{ Apply theme tron to a flextable } \examples{ ft <- flextable(iris) ft <- theme_tron(ft) } ...
/man/theme_tron.Rd
no_license
cest-ijsn/flextable
R
false
true
588
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/themes.R \name{theme_tron} \alias{theme_tron} \title{Apply tron theme} \usage{ theme_tron(x) } \arguments{ \item{x}{a flextable object} } \description{ Apply theme tron to a flextable } \examples{ ft <- flextable(iris) ft <- theme_tron(ft) } ...
# Copyright 2018 Province of British Columbia # # 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 law or agreed to...
/R/bcdc_search.R
permissive
annikaLiving/bcdata
R
false
false
10,118
r
# Copyright 2018 Province of British Columbia # # 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 law or agreed to...
## Add scale bar and north arrow to ggplot2 map ## Source: http://editerna.free.fr/wp/?p=76 # # Result # #--------# # Return a list whose elements are : # - rectangle : a data.frame containing the coordinates to draw the first rectangle ; # - rectangle2 : a data.frame containing the coordinates to draw the second re...
/Mapping/scaleBar.R
no_license
juangrabowski/scpd
R
false
false
9,267
r
## Add scale bar and north arrow to ggplot2 map ## Source: http://editerna.free.fr/wp/?p=76 # # Result # #--------# # Return a list whose elements are : # - rectangle : a data.frame containing the coordinates to draw the first rectangle ; # - rectangle2 : a data.frame containing the coordinates to draw the second re...
# ---------------------------------------------------------------------- #' Access the Multi-CAST metadata #' #' \code{mc_metadata} downloads a table with metadata on the texts and speakers #' in the Multi-CAST collection from the servers of the University of Bamberg. #' #' @seealso \code{\link{multicast}}, \co...
/R/mc_metadata.R
no_license
cran/multicastR
R
false
false
3,874
r
# ---------------------------------------------------------------------- #' Access the Multi-CAST metadata #' #' \code{mc_metadata} downloads a table with metadata on the texts and speakers #' in the Multi-CAST collection from the servers of the University of Bamberg. #' #' @seealso \code{\link{multicast}}, \co...
library("biomaRt") this.dir = dirname(parent.frame(2)$ofile) setwd(this.dir) variantsHomer = read.csv(file="../../data/knownvariants/homer.csv", header=TRUE, sep=",") variantsJasper = read.csv(file="../../data/knownvariants/jasper.csv", header=TRUE, sep=",") snp_mart = useMart("ENSEMBL_MART_SNP", dataset="hsapiens_s...
/src/R/VariantRetriever.R
no_license
joao-roque/GeneticMarkersT2D-Thesis
R
false
false
976
r
library("biomaRt") this.dir = dirname(parent.frame(2)$ofile) setwd(this.dir) variantsHomer = read.csv(file="../../data/knownvariants/homer.csv", header=TRUE, sep=",") variantsJasper = read.csv(file="../../data/knownvariants/jasper.csv", header=TRUE, sep=",") snp_mart = useMart("ENSEMBL_MART_SNP", dataset="hsapiens_s...
## Try weighted compositional analysis ## ala Millspaugh et al. 2006 #assumes you've already run "porc_wca_summer.R" and have locations / veg loaded ###################### ## 1. First, load porcupine location data & veg data ###################### head(porc.locs) # this should have all VHF and GPS points (1 per day)...
/porc_wca_winter.R
no_license
appelc/cara_thesis
R
false
false
14,301
r
## Try weighted compositional analysis ## ala Millspaugh et al. 2006 #assumes you've already run "porc_wca_summer.R" and have locations / veg loaded ###################### ## 1. First, load porcupine location data & veg data ###################### head(porc.locs) # this should have all VHF and GPS points (1 per day)...