content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
library (lubridate) ## read file household <- read.table("./household_power_consumption.txt", sep=";",header=TRUE, na.strings="?") ## subset data feb_data <- subset(household, Date=="1/2/2007"|Date=="2/2/2007") ## add datetime column feb_data$DateTime <- with(feb_data, paste(Date, Time)) feb_data$DateTime <- dmy_hms...
/plot2.R
no_license
mourou/ExData_Plotting1
R
false
false
619
r
library (lubridate) ## read file household <- read.table("./household_power_consumption.txt", sep=";",header=TRUE, na.strings="?") ## subset data feb_data <- subset(household, Date=="1/2/2007"|Date=="2/2/2007") ## add datetime column feb_data$DateTime <- with(feb_data, paste(Date, Time)) feb_data$DateTime <- dmy_hms...
getTrialsBySearch = function(con, condition = c('breast cancer', 'liver cancer'), age = 18, gender = 'Male', country = 'United States', state = c('New York', 'New Jersey'), ...
/app/util/Searcher.R
no_license
WengLab-InformaticsResearch/DQueST
R
false
false
4,852
r
getTrialsBySearch = function(con, condition = c('breast cancer', 'liver cancer'), age = 18, gender = 'Male', country = 'United States', state = c('New York', 'New Jersey'), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/use_tidytemplate.R \name{use_tidytemplate} \alias{use_tidytemplate} \title{Call and open the tidytemplate} \usage{ use_tidytemplate(name = NULL, open = interactive(), ..., refdate = today()) } \arguments{ \item{name}{name of your TidyTuesday ...
/man/use_tidytemplate.Rd
permissive
jrosen48/tidytuesdayR
R
false
true
825
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/use_tidytemplate.R \name{use_tidytemplate} \alias{use_tidytemplate} \title{Call and open the tidytemplate} \usage{ use_tidytemplate(name = NULL, open = interactive(), ..., refdate = today()) } \arguments{ \item{name}{name of your TidyTuesday ...
# NOTE: ECDC #s negative for some days, resolved by using CSSE data for publication # NOTE: CSSE data is cumulative cases, so take difference in # cases between days # NOTE: ECDC data is new cases, ECDC has only China not Hubei specifically require(dplyr) require(ggplot2) require(tidyr) require(tracerer) # Hardcoded ...
/scripts/plot_migration_vs_local_spread_v2.R
no_license
SarahNadeau/cov-europe-bdmm
R
false
false
13,529
r
# NOTE: ECDC #s negative for some days, resolved by using CSSE data for publication # NOTE: CSSE data is cumulative cases, so take difference in # cases between days # NOTE: ECDC data is new cases, ECDC has only China not Hubei specifically require(dplyr) require(ggplot2) require(tidyr) require(tracerer) # Hardcoded ...
### This file contains code used to generate plots of cases, deaths and recovered cases of COVID-19 DATA R script### #### Sources #### source("data/covid19Data.R") source("functions/forecastFunction.R") library(ggplot2) library(TTR) library(dplyr) library(highcharter) library(outliers) # 1. Format date numOfCol <- nco...
/App/functions/dashboard.R
permissive
KonradDlugosz/COVID-19-forescasting-system
R
false
false
4,674
r
### This file contains code used to generate plots of cases, deaths and recovered cases of COVID-19 DATA R script### #### Sources #### source("data/covid19Data.R") source("functions/forecastFunction.R") library(ggplot2) library(TTR) library(dplyr) library(highcharter) library(outliers) # 1. Format date numOfCol <- nco...
library(tidyverse) library(foreign) library(haven) #MX_dta <- read_dta("C:/Users/rzava/Box Sync/COVID survey/Mexico LAPOP AmericasBarometer 2019 v1.0_W.dta") #MX_dta <- read_dta("C:/Users/rzava/Box Sync/COVID survey/Colombia LAPOP AmericasBarometer 2018 v1.0_W.dta") #MX_dta <- read_dta("C:/Users/rzava/Box Sync/COV...
/JointDist Calc.R
no_license
ReeseZavala/COVID-Data-Manipulation
R
false
false
4,982
r
library(tidyverse) library(foreign) library(haven) #MX_dta <- read_dta("C:/Users/rzava/Box Sync/COVID survey/Mexico LAPOP AmericasBarometer 2019 v1.0_W.dta") #MX_dta <- read_dta("C:/Users/rzava/Box Sync/COVID survey/Colombia LAPOP AmericasBarometer 2018 v1.0_W.dta") #MX_dta <- read_dta("C:/Users/rzava/Box Sync/COV...
\name{climatestatistics} \alias{climatestatistics} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Reports observed climate statistics } \description{ Helper function to report community climate statistics for the real community, i.e. not corrected for any null model. } \usage{ climatestatistics(...
/man/climatestatistics.Rd
no_license
bblonder/comclim
R
false
false
1,375
rd
\name{climatestatistics} \alias{climatestatistics} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Reports observed climate statistics } \description{ Helper function to report community climate statistics for the real community, i.e. not corrected for any null model. } \usage{ climatestatistics(...
### DEMO bootstrapping library(predictiveModeling) library(synapseClient) synapseLogin("in.sock.jang@sagebase.org","tjsDUD@") source("/home/ijang/COMPBIO/trunk/users/jang/R5/bootstrapPredictiveModel.R") source("/home/ijang/COMPBIO/trunk/users/jang/R5/myEnetModel.R") ################################################### #...
/drugResponse/CCLE/bootstrapping_preprocess.R
no_license
insockjang/DrugResponse
R
false
false
3,100
r
### DEMO bootstrapping library(predictiveModeling) library(synapseClient) synapseLogin("in.sock.jang@sagebase.org","tjsDUD@") source("/home/ijang/COMPBIO/trunk/users/jang/R5/bootstrapPredictiveModel.R") source("/home/ijang/COMPBIO/trunk/users/jang/R5/myEnetModel.R") ################################################### #...
# Yige Wu @WashU Apr 2021 # set up libraries and output directory ----------------------------------- ## set working directory dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" setwd(dir_base) source("./ccRCC_snRNA_analysis/load_pkgs.R") source("./ccRCC_snRNA_analysis/functions.R") source("./ccRCC_snRNA_an...
/tumor_subcluster/count/count_cellnumber_per_manual_cluster_rm_doublet.R
no_license
GenomicsNX/ccRCC_snRNA_analysis
R
false
false
1,907
r
# Yige Wu @WashU Apr 2021 # set up libraries and output directory ----------------------------------- ## set working directory dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" setwd(dir_base) source("./ccRCC_snRNA_analysis/load_pkgs.R") source("./ccRCC_snRNA_analysis/functions.R") source("./ccRCC_snRNA_an...
# Загрузка данных x.0 <- read.table("data/diamond.dat") # Проверка summary(x.0) # Переставим столбцы и добавим столбец квадратов x.1 <- cbind(x.0[,c(2,1)], x.0[,1]^2) names(x.1) <- c("PRICE", "WEIGHT", "WEIGHT2") # Простейшая модель itog1 <- lm(PRICE ~ WEIGHT, x.1) summary(itog1) # Сделаем так как предлагают ювелиры...
/lectures/07/scripts/diamond.R
no_license
dkhramov/iad_2020
R
false
false
735
r
# Загрузка данных x.0 <- read.table("data/diamond.dat") # Проверка summary(x.0) # Переставим столбцы и добавим столбец квадратов x.1 <- cbind(x.0[,c(2,1)], x.0[,1]^2) names(x.1) <- c("PRICE", "WEIGHT", "WEIGHT2") # Простейшая модель itog1 <- lm(PRICE ~ WEIGHT, x.1) summary(itog1) # Сделаем так как предлагают ювелиры...
### LOAD PACKAGES ------ library(tidyverse) library(GGally) library(RColorBrewer) library(Hmisc) library(corrplot) library(ggpmisc) library(lme4) library(factoextra) ### Type in packages needed load_pkg <- rlang::quos(tidyverse, GGally, RColorBrewer, Hmisc, corrplot, ggpubr, ggpmisc,lme4...
/ambient_Fe.R
no_license
tleung2/ambient_Fe
R
false
false
38,132
r
### LOAD PACKAGES ------ library(tidyverse) library(GGally) library(RColorBrewer) library(Hmisc) library(corrplot) library(ggpmisc) library(lme4) library(factoextra) ### Type in packages needed load_pkg <- rlang::quos(tidyverse, GGally, RColorBrewer, Hmisc, corrplot, ggpubr, ggpmisc,lme4...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/workout.R \name{bin_choose} \alias{bin_choose} \title{bin_choose} \usage{ bin_choose(n, k) } \arguments{ \item{n}{a number} \item{k}{a number or vector} } \value{ a number } \description{ calculates prob } \examples{ bin_choose(n = 5, k = 2)...
/Binomial/man/bin_choose.Rd
no_license
stat133-sp19/hw-stat133-p-acharya
R
false
true
359
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/workout.R \name{bin_choose} \alias{bin_choose} \title{bin_choose} \usage{ bin_choose(n, k) } \arguments{ \item{n}{a number} \item{k}{a number or vector} } \value{ a number } \description{ calculates prob } \examples{ bin_choose(n = 5, k = 2)...
normaliseATest <- function(result) { if(result<0.5) { result <- 1-result } normA <- result }
/spartan/R/normaliseATest.R
no_license
ingted/R-Examples
R
false
false
100
r
normaliseATest <- function(result) { if(result<0.5) { result <- 1-result } normA <- result }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rolling_gas.R \name{rolling_gas} \alias{rolling_gas} \title{Rolling GAS} \usage{ rolling_gas( prices_panel, row_index = 1:nrow(prices_panel), windows = c(200), workers = 4L, gas_dist = "sstd", gas_scaling = "Identity", predictio...
/man/rolling_gas.Rd
no_license
but-today-group/afml-mlfinance
R
false
true
960
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rolling_gas.R \name{rolling_gas} \alias{rolling_gas} \title{Rolling GAS} \usage{ rolling_gas( prices_panel, row_index = 1:nrow(prices_panel), windows = c(200), workers = 4L, gas_dist = "sstd", gas_scaling = "Identity", predictio...
# *********************************************************************************************** #### installing, loading libraries #### library("utils") packages <- c("here", "zip", "dplyr", "readxl", "sf", "curl", "devtools") ### install if necessary lapply(packages, function(x) { if(!(x %i...
/code/2.select_data.R
permissive
levubinh/sposm_group_assignment
R
false
false
17,819
r
# *********************************************************************************************** #### installing, loading libraries #### library("utils") packages <- c("here", "zip", "dplyr", "readxl", "sf", "curl", "devtools") ### install if necessary lapply(packages, function(x) { if(!(x %i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modify_columns.R \name{cols_move} \alias{cols_move} \title{Move one or more columns} \usage{ cols_move(data, columns, after) } \arguments{ \item{data}{\emph{The gt table data object} \verb{obj:<gt_tbl>} // \strong{required} This is the \str...
/man/cols_move.Rd
permissive
rstudio/gt
R
false
true
4,263
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modify_columns.R \name{cols_move} \alias{cols_move} \title{Move one or more columns} \usage{ cols_move(data, columns, after) } \arguments{ \item{data}{\emph{The gt table data object} \verb{obj:<gt_tbl>} // \strong{required} This is the \str...
# Functions to perform outline morphometric analysis on body outline images. # Input is a set of photos and meta data, output is a Fourier characterisation # of photos, individuals, species and mimic types. # # These calculations are _slow_, so results are saved and reused if the same # list of photos is processed. su...
/GeometricMorphometrics/R/morpho_fns.R
permissive
JimMcL/measuring-mimicry
R
false
false
9,435
r
# Functions to perform outline morphometric analysis on body outline images. # Input is a set of photos and meta data, output is a Fourier characterisation # of photos, individuals, species and mimic types. # # These calculations are _slow_, so results are saved and reused if the same # list of photos is processed. su...
context("Function getPreprocPlan") test_that("getPreprocPlan", { library(data.table) res <- getPreprocPlan( pathPtdfMatrixFactor = system.file( "testdata/plan_new_version_factor_AT.rds", package = "fbClust"), pathPtdfMatrixConstraint = system.file( "testdata/plan_new_version_constraint_AT.rds",...
/tests/testthat/test-getPreprocPlan.R
no_license
rte-antares-rpackage/fbClust
R
false
false
536
r
context("Function getPreprocPlan") test_that("getPreprocPlan", { library(data.table) res <- getPreprocPlan( pathPtdfMatrixFactor = system.file( "testdata/plan_new_version_factor_AT.rds", package = "fbClust"), pathPtdfMatrixConstraint = system.file( "testdata/plan_new_version_constraint_AT.rds",...
#Calling libraries# library(dplyr) library(tidyverse) library(ggplot2) library(stringr) #Piping for Sleep Variable# FiveHundredCitiesCompressed <- readRDS("Andrew Crean/FiveHundredCitiesCompressed.RDS") Five_Hundred_Cities_Sleep_na <- FiveHundredCitiesCompressed %>% select(Year, StateAbbr, CityName, Measure, Data...
/Andrew Crean/500 Cities Cleaning.R
permissive
WL-Biol185-ShinyProjects/WLU_Sleep_App
R
false
false
2,486
r
#Calling libraries# library(dplyr) library(tidyverse) library(ggplot2) library(stringr) #Piping for Sleep Variable# FiveHundredCitiesCompressed <- readRDS("Andrew Crean/FiveHundredCitiesCompressed.RDS") Five_Hundred_Cities_Sleep_na <- FiveHundredCitiesCompressed %>% select(Year, StateAbbr, CityName, Measure, Data...
testlist <- list(data = structure(c(1.66556401665798e-245, 1.92859137247324e-168, 1.92859137247324e-168, 1.92859137247324e-168, 1.92859137247324e-168, 1.92859137247324e-168, 1.92859125752024e-168, 4.94065645841247e-324, 4.94065645841247e-324), .Dim = c(3L, 3L)), q = NaN) result <- do.call(biwavelet:::rcpp_row_quanti...
/biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610556281-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
344
r
testlist <- list(data = structure(c(1.66556401665798e-245, 1.92859137247324e-168, 1.92859137247324e-168, 1.92859137247324e-168, 1.92859137247324e-168, 1.92859137247324e-168, 1.92859125752024e-168, 4.94065645841247e-324, 4.94065645841247e-324), .Dim = c(3L, 3L)), q = NaN) result <- do.call(biwavelet:::rcpp_row_quanti...
################################# ## <제7장 연습문제> ################################# # 01. 본문에서 생성된 dataset2의 resident 칼럼을 대상으로 NA 값을 제거하시오.(힌트 : subset()함수 이용) dataset2 <- subset(dataset,!is.na(resident)) dataset2 summary(dataset2) # 02. dataset2의 gender 칼럼을 대상으로 1->"남자", 2->"여자" 형태로 코딩 변경하여 # gender2 칼럼에 추가하고, 파이 차트...
/script/제7장 연습문제.R
no_license
ocanada12/Rwork
R
false
false
1,681
r
################################# ## <제7장 연습문제> ################################# # 01. 본문에서 생성된 dataset2의 resident 칼럼을 대상으로 NA 값을 제거하시오.(힌트 : subset()함수 이용) dataset2 <- subset(dataset,!is.na(resident)) dataset2 summary(dataset2) # 02. dataset2의 gender 칼럼을 대상으로 1->"남자", 2->"여자" 형태로 코딩 변경하여 # gender2 칼럼에 추가하고, 파이 차트...
library(RSE) ### Name: DetInc ### Title: Incidence-based data: the estimation of parameters for obtaining ### the estimation of detection probabilites of observed species ### Aliases: DetInc ### ** Examples ## As an example, Canadian-mite data are used here. data(CanadaMite) ## two columns represent two samples ...
/data/genthat_extracted_code/RSE/examples/DetInc.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
530
r
library(RSE) ### Name: DetInc ### Title: Incidence-based data: the estimation of parameters for obtaining ### the estimation of detection probabilites of observed species ### Aliases: DetInc ### ** Examples ## As an example, Canadian-mite data are used here. data(CanadaMite) ## two columns represent two samples ...
checkPkgs <- function() { pkg.inst <- installed.packages() pkgs <- c("RCurl", "digest") have.pkg <- pkgs %in% rownames(pkg.inst) if(any(!have.pkg)) { cat("Some packages need to be installed\n") r <- readline("Install necessary packages [y/n]? ") ...
/PA3/submitscript.R
no_license
okkhoy/DataAnalysis
R
false
false
9,628
r
checkPkgs <- function() { pkg.inst <- installed.packages() pkgs <- c("RCurl", "digest") have.pkg <- pkgs %in% rownames(pkg.inst) if(any(!have.pkg)) { cat("Some packages need to be installed\n") r <- readline("Install necessary packages [y/n]? ") ...
library(tidyverse) library(ggthemes) library(ggExtra) library(ggpubr) directory <- "/media/owens/Copper/wild_gwas/annuus" info <- read_tsv("Angsd_most_aDNA.sampleinfo.txt") %>% rename(sample = Beagle_ID) all_calls <- tibble(sample=character(),mds=character(),g00=numeric(),g01=numeric(),g11=numeric(), ...
/scripts/blackman_angsd.R
no_license
owensgl/wild_gwas_2018
R
false
false
10,335
r
library(tidyverse) library(ggthemes) library(ggExtra) library(ggpubr) directory <- "/media/owens/Copper/wild_gwas/annuus" info <- read_tsv("Angsd_most_aDNA.sampleinfo.txt") %>% rename(sample = Beagle_ID) all_calls <- tibble(sample=character(),mds=character(),g00=numeric(),g01=numeric(),g11=numeric(), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/a_geom_punto.R \name{a_geom_punto} \alias{a_geom_punto} \title{A geom that writes points but is called punto} \usage{ a_geom_punto(...) } \arguments{ \item{...}{all the geom_point arguments} } \value{ } \description{ A geom that writes point...
/man/a_geom_punto.Rd
no_license
EvaMaeRey/ggextend
R
false
true
592
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/a_geom_punto.R \name{a_geom_punto} \alias{a_geom_punto} \title{A geom that writes points but is called punto} \usage{ a_geom_punto(...) } \arguments{ \item{...}{all the geom_point arguments} } \value{ } \description{ A geom that writes point...
library(lomb) ### Name: lsp ### Title: Lomb-Scargle Periodogram ### Aliases: lsp ### Keywords: ts ### ** Examples # ibex contains an unevenly sampled time series data(ibex) lsp(ibex[2:3],) lsp(ibex$temp,times=ibex$hours,type='period',ofac=5) # lynx contains evenly sampled data lsp(lynx) lynx.spec <- lsp(lynx,type...
/data/genthat_extracted_code/lomb/examples/lsp.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
373
r
library(lomb) ### Name: lsp ### Title: Lomb-Scargle Periodogram ### Aliases: lsp ### Keywords: ts ### ** Examples # ibex contains an unevenly sampled time series data(ibex) lsp(ibex[2:3],) lsp(ibex$temp,times=ibex$hours,type='period',ofac=5) # lynx contains evenly sampled data lsp(lynx) lynx.spec <- lsp(lynx,type...
#' @title Tidy up REUNIS tables #' #' @description Tidy up REUNIS tables of population at district level. Ver: [REUNIS](https://www.minsa.gob.pe/reunis/data/poblacion_estimada.asp). #' #' @describeIn read_reunis_total #' #' @param file nombre de archivo #' @param year anho de archivo #' #' @import tidyverse #' @import ...
/R/cdc_reunis.R
no_license
avallecam/cdcper
R
false
false
7,889
r
#' @title Tidy up REUNIS tables #' #' @description Tidy up REUNIS tables of population at district level. Ver: [REUNIS](https://www.minsa.gob.pe/reunis/data/poblacion_estimada.asp). #' #' @describeIn read_reunis_total #' #' @param file nombre de archivo #' @param year anho de archivo #' #' @import tidyverse #' @import ...
targetFolder<-"C:/Users/luigi/Documents/BH_TEST/HEADANDNECK/RUN_001/SUBCELLULAR_3" source('C:/Users/luigi/Documents/BH_TEST/HEADANDNECK/Scripts/skinlayer.R') geo_list_BO<-sf::st_read( "C:/Users/luigi/Documents/BH_TEST/HEADANDNECK/RUN_001/analysis/BODEN/ex.sqlite" ) geo_list_RU<-sf::st_read( "C:/Users/luig...
/HEADANDNECK/subcellular structure_3_1.R
no_license
luigidolcetti/RUNIMC_paper_scripts
R
false
false
4,118
r
targetFolder<-"C:/Users/luigi/Documents/BH_TEST/HEADANDNECK/RUN_001/SUBCELLULAR_3" source('C:/Users/luigi/Documents/BH_TEST/HEADANDNECK/Scripts/skinlayer.R') geo_list_BO<-sf::st_read( "C:/Users/luigi/Documents/BH_TEST/HEADANDNECK/RUN_001/analysis/BODEN/ex.sqlite" ) geo_list_RU<-sf::st_read( "C:/Users/luig...
#### Predict future #### library(lubridate) library(dplyr) library(randomForest) library(plotly) SRC_PATH <- 'W:/R scripts/R_scripts_Konstantina/streamstarts_prediction/StreamStarts-predictive-model-kopie-NEW/StreamStarts-predictive-model-kopie/' train <- final_sanoma test <- futureTbl train$Holiday.name.x <- as.facto...
/predictNewFile_sanoma.R
no_license
SBSBroadcasting/streamstarts-predictive-model
R
false
false
2,568
r
#### Predict future #### library(lubridate) library(dplyr) library(randomForest) library(plotly) SRC_PATH <- 'W:/R scripts/R_scripts_Konstantina/streamstarts_prediction/StreamStarts-predictive-model-kopie-NEW/StreamStarts-predictive-model-kopie/' train <- final_sanoma test <- futureTbl train$Holiday.name.x <- as.facto...
##' QGIS Algorithm provided by SAGA Fast representativeness (saga:fastrepresentativeness) ##' ##' @title QGIS algorithm Fast representativeness ##' ##' @param INPUT `raster` - Input. Path to a raster layer. ##' @param LOD `number` - Level of Generalisation. A numeric value. ##' @param RESULT `rasterDestination` - Outpu...
/R/saga_fastrepresentativeness.R
permissive
VB6Hobbyst7/r_package_qgis
R
false
false
1,703
r
##' QGIS Algorithm provided by SAGA Fast representativeness (saga:fastrepresentativeness) ##' ##' @title QGIS algorithm Fast representativeness ##' ##' @param INPUT `raster` - Input. Path to a raster layer. ##' @param LOD `number` - Level of Generalisation. A numeric value. ##' @param RESULT `rasterDestination` - Outpu...
get_globi_url <- function(suffix) { paste("http://api.globalbioticinteractions.org", suffix, sep = "") } #' Get Species Interaction from GloBI #' #' @param taxon canonical scientic name of source taxon (e.g. Homo sapiens) #' @param interactionType the preferred interaction type (e.g. preysOn) #' @return species in...
/R/rglobi.R
permissive
jhpoelen/rglobi
R
false
false
6,839
r
get_globi_url <- function(suffix) { paste("http://api.globalbioticinteractions.org", suffix, sep = "") } #' Get Species Interaction from GloBI #' #' @param taxon canonical scientic name of source taxon (e.g. Homo sapiens) #' @param interactionType the preferred interaction type (e.g. preysOn) #' @return species in...
#' exclude segments with no coverage #' @param counts dataframe containing W and C read counts in segments #' @param uniqe.counts dataframe containing W and C unique read counts in segments #' @author Maryam Ghareghani #' @export #' unique.mappable.bins <- function(counts, unique.counts, alpha = 0.05) { idx = list(...
/maryamCode/uniqeMapIndex.R
no_license
Venlanen/strandsequtils
R
false
false
563
r
#' exclude segments with no coverage #' @param counts dataframe containing W and C read counts in segments #' @param uniqe.counts dataframe containing W and C unique read counts in segments #' @author Maryam Ghareghani #' @export #' unique.mappable.bins <- function(counts, unique.counts, alpha = 0.05) { idx = list(...
library(tidyverse) library(cluster) library(factoextra) #input data tanpa nama provinsi data <- Data_Bencana_2018_Rasio_Tanpa_Prov_ str(data) head(data) data1 <- na.omit(data) datafix <- scale(data1) #input data nama provinsi namaprov = Data_Bencana_2018_Rasio_$`Nama Provinsi` row.names(datafix)=c(namapr...
/syntax k means.R
no_license
hafizheraldi/natural-disaster-clustering
R
false
false
475
r
library(tidyverse) library(cluster) library(factoextra) #input data tanpa nama provinsi data <- Data_Bencana_2018_Rasio_Tanpa_Prov_ str(data) head(data) data1 <- na.omit(data) datafix <- scale(data1) #input data nama provinsi namaprov = Data_Bencana_2018_Rasio_$`Nama Provinsi` row.names(datafix)=c(namapr...
library(tidyverse) library(lubridate) gdpdata <- read_csv("ND000334Q.csv") options(pillar.sigfig = 8) ######################################## ## 1. Edit the data, add year, month, quarter information. ######################################## gdpdata2 <- gdpdata %>% mutate(Year=year(DATE), Mont...
/practice/day12secA.R
no_license
jessica7890/R-visualization-
R
false
false
5,184
r
library(tidyverse) library(lubridate) gdpdata <- read_csv("ND000334Q.csv") options(pillar.sigfig = 8) ######################################## ## 1. Edit the data, add year, month, quarter information. ######################################## gdpdata2 <- gdpdata %>% mutate(Year=year(DATE), Mont...
library(tidyverse) rm(list=ls()) filepath = '../skill-learn-3/data/' files <- list.files(filepath) s = 1 columnnames <- c("RT", "correct_response", "ms.prestimblank", "curstim", "correct", "SRmap_1", "SRmap_0", "SRmap_3", "SRmap_2", "SRmap_5", "SRmap_4", "ms.precue", "ntrials", "type", "response", "condition", "subjec...
/analysis/skill-3.R
no_license
vullab/skill-learning
R
false
false
3,440
r
library(tidyverse) rm(list=ls()) filepath = '../skill-learn-3/data/' files <- list.files(filepath) s = 1 columnnames <- c("RT", "correct_response", "ms.prestimblank", "curstim", "correct", "SRmap_1", "SRmap_0", "SRmap_3", "SRmap_2", "SRmap_5", "SRmap_4", "ms.precue", "ntrials", "type", "response", "condition", "subjec...
## Put comments here that give an overall description of what your ## functions do setwd("/Users/Non-corrupt user/Desktop/Suzy/DataScience/R Programming/ProgrammingAssignment2/") ##creates a list that contains functions to: ##sets the values ##gets the values of the matrix ##sets the inverse of the matrix ##gets the...
/cachematrix.R
no_license
suzanwiklund/ProgrammingAssignment2
R
false
false
1,142
r
## Put comments here that give an overall description of what your ## functions do setwd("/Users/Non-corrupt user/Desktop/Suzy/DataScience/R Programming/ProgrammingAssignment2/") ##creates a list that contains functions to: ##sets the values ##gets the values of the matrix ##sets the inverse of the matrix ##gets the...
# This script calculates standardised time series of all climate variables (i.e. division by standard deviation). project_path = "/Volumes/Seagate/PhD/Programming_Analysis/03_extremes_and_crop_yields/github" source(sprintf("%s/code/data_preparation/02_function_calculate_standardised_timeseries.R", project_path), local...
/code/data_preparation/03_prepare_dataframe_for_statistical_analysis.R
no_license
elisabethvogel/climate_extremes_agriculture
R
false
false
4,714
r
# This script calculates standardised time series of all climate variables (i.e. division by standard deviation). project_path = "/Volumes/Seagate/PhD/Programming_Analysis/03_extremes_and_crop_yields/github" source(sprintf("%s/code/data_preparation/02_function_calculate_standardised_timeseries.R", project_path), local...
## Caching the Inverse of a Matrix: ## Here are two functions that are used to caches its inverse. ## This function can cache the inverse of a matrix. makeCacheMatrix <- function(x = matrix()) { invMatrix <- NULL setMatrix <- function(y) { x <<- y invMatrix <<- NULL } getMatrix <- function() x se...
/cachematrix.R
no_license
RobinXYuan/ProgrammingAssignment2
R
false
false
965
r
## Caching the Inverse of a Matrix: ## Here are two functions that are used to caches its inverse. ## This function can cache the inverse of a matrix. makeCacheMatrix <- function(x = matrix()) { invMatrix <- NULL setMatrix <- function(y) { x <<- y invMatrix <<- NULL } getMatrix <- function() x se...
library(pdftools) library(stringr) library(plotly) # Get current time for later use currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone()) attributes(currenttime)$tzone <- "Asia/Hong_Kong" currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="") # download latest data file download.fi...
/2020-08-08/analysis.R
no_license
tszhim-tsui/2020-hk-covid19
R
false
false
25,196
r
library(pdftools) library(stringr) library(plotly) # Get current time for later use currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone()) attributes(currenttime)$tzone <- "Asia/Hong_Kong" currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="") # download latest data file download.fi...
library(tidyverse); library(sf); library(tigris); library(here) options(tigris_use_cache = TRUE, tigris_class = "sf") options(theme_set(theme_minimal())) # 1. Identify MSA geography url <- "https://www.nber.org/cbsa-msa-fips-ssa-county-crosswalk/cbsatocountycrosswalk.csv" temp <- tempfile() download.file(url, temp) xwa...
/script.R
no_license
addisonlarson/dc_commuting
R
false
false
9,013
r
library(tidyverse); library(sf); library(tigris); library(here) options(tigris_use_cache = TRUE, tigris_class = "sf") options(theme_set(theme_minimal())) # 1. Identify MSA geography url <- "https://www.nber.org/cbsa-msa-fips-ssa-county-crosswalk/cbsatocountycrosswalk.csv" temp <- tempfile() download.file(url, temp) xwa...
#' find_best_monitoring #' #' @description #' \code{find_best_monitoring} Function to semplify model tuning by using \code{biofitmodel} rAedesSim Class. #' #' @param i_meteo object: rAedesSim meteo concerning weather data. #' @param i_biocointaner object: rAedesSim object concerning \code{biocontainer} object use...
/R/find_best_monitoring.r
permissive
alfcrisci/rAedesSim
R
false
false
2,930
r
#' find_best_monitoring #' #' @description #' \code{find_best_monitoring} Function to semplify model tuning by using \code{biofitmodel} rAedesSim Class. #' #' @param i_meteo object: rAedesSim meteo concerning weather data. #' @param i_biocointaner object: rAedesSim object concerning \code{biocontainer} object use...
#' Tidy estimated marginal means (least-squares means) objects from the emmeans and lsmeans packages #' #' Tidiers for estimated marginal means objects, which report the predicted #' means for factors or factor combinations in a linear model. This #' covers three classes: #' \code{emmGrid}, \code{lsmobj}, and \code{ref...
/R/emmeans_tidiers.R
no_license
bmannakee/broom
R
false
false
4,047
r
#' Tidy estimated marginal means (least-squares means) objects from the emmeans and lsmeans packages #' #' Tidiers for estimated marginal means objects, which report the predicted #' means for factors or factor combinations in a linear model. This #' covers three classes: #' \code{emmGrid}, \code{lsmobj}, and \code{ref...
\name{as.data.frame.tabular} \alias{as.data.frame.tabular} \title{as.data.frame for tabular object.} \usage{ as.data.frame.tabular(x, ...) } \arguments{ \item{x}{a tabular object} \item{...}{not used} } \description{ as.data.frame for tabular object (internal). } \author{ David Hajage } \keyword{internal}
/man/as.data.frame.tabular.Rd
no_license
eusebe/remix
R
false
false
319
rd
\name{as.data.frame.tabular} \alias{as.data.frame.tabular} \title{as.data.frame for tabular object.} \usage{ as.data.frame.tabular(x, ...) } \arguments{ \item{x}{a tabular object} \item{...}{not used} } \description{ as.data.frame for tabular object (internal). } \author{ David Hajage } \keyword{internal}
# Applied hierarchical modeling in ecology # Modeling distribution, abundance and species richness using R and BUGS # Volume 2: Dynamic and Advanced models # Marc Kéry & J. Andy Royle # Chapter 2 : MODELING POPULATION DYNAMICS WITH COUNT DATA # ======================================================== # Code fro...
/AHM2_ch02/AHM2_02.05.4_#noCode.R
no_license
mikemeredith/AHM_code
R
false
false
520
r
# Applied hierarchical modeling in ecology # Modeling distribution, abundance and species richness using R and BUGS # Volume 2: Dynamic and Advanced models # Marc Kéry & J. Andy Royle # Chapter 2 : MODELING POPULATION DYNAMICS WITH COUNT DATA # ======================================================== # Code fro...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/lexical_classification.R \name{plot.lexical_classification} \alias{plot.lexical_classification} \title{Plots a lexical_classification Object} \usage{ \method{plot}{lexical_classification}(x, bar.size = 5, low = "blue", mid = "grey99...
/man/plot.lexical_classification.Rd
no_license
Maddocent/qdap
R
false
false
2,805
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/lexical_classification.R \name{plot.lexical_classification} \alias{plot.lexical_classification} \title{Plots a lexical_classification Object} \usage{ \method{plot}{lexical_classification}(x, bar.size = 5, low = "blue", mid = "grey99...
# 1st # Initialize the speed variable speed <- 64 # Code the while loop while (speed > 30) { print("Slow down!") speed <- speed - 7 } # Print out the speed variable speed # 2nd # Initialize the speed variable speed <- 64 # Extend/adapt the while loop while (speed > 30) { print(paste("Your speed is",speed)) ...
/secondIntermediate.r
no_license
anugrah-danang-abiyoga/self-journal-for-R
R
false
false
2,581
r
# 1st # Initialize the speed variable speed <- 64 # Code the while loop while (speed > 30) { print("Slow down!") speed <- speed - 7 } # Print out the speed variable speed # 2nd # Initialize the speed variable speed <- 64 # Extend/adapt the while loop while (speed > 30) { print(paste("Your speed is",speed)) ...
context("Compare Regression Output") #passes expectation: test_that("You should expect an error if you do not correctly define your arguments.", { expect_that(lmfun(continent, lifeExp, mydata =gapminder), throws_error() ) }) #fails expectation: test_that("You should not expect an error if yo...
/tests/testthat/test_lmfun.R
no_license
emwest/stat547HW09
R
false
false
444
r
context("Compare Regression Output") #passes expectation: test_that("You should expect an error if you do not correctly define your arguments.", { expect_that(lmfun(continent, lifeExp, mydata =gapminder), throws_error() ) }) #fails expectation: test_that("You should not expect an error if yo...
#' Add grids on plot #' #' Better than grid() function with abline() implementation #' @param x.at position on x-axis #' @param y.at position on y-axis #' @param col color #' @param lty line type #' @param lwd line width #' @param ... other arguments passed to abline() #' @return NA #' @author Feng Li, Department of S...
/R/plots__grid2.R
no_license
feng-li/flutils
R
false
false
534
r
#' Add grids on plot #' #' Better than grid() function with abline() implementation #' @param x.at position on x-axis #' @param y.at position on y-axis #' @param col color #' @param lty line type #' @param lwd line width #' @param ... other arguments passed to abline() #' @return NA #' @author Feng Li, Department of S...
# saved as qpcr_analysis.R tabItem(tabName = "qpcr_analysis", align = "center", shinyjs::useShinyjs(), shiny::fluidRow(style="width:85%", # Put content here shiny::column(width=12, ...
/VAMBE/app/qpcr_analysis.R
no_license
jwinter6/Analysis
R
false
false
4,118
r
# saved as qpcr_analysis.R tabItem(tabName = "qpcr_analysis", align = "center", shinyjs::useShinyjs(), shiny::fluidRow(style="width:85%", # Put content here shiny::column(width=12, ...
`nLogLik.trec.A` = function(coef, phi, rc, genei, hessian=FALSE){ index = rc$index y = rc$y[genei,] kappas = rc$kappas out = input.checks.A(coef=coef, phi=phi, index=index, y=y, kappas=kappas, trecase=FALSE) hess = NULL twosex = max(index)>4 if(twosex){ ind.lst = lapply(1:8, function(i){whic...
/R/nLogLik.trec.A.R
no_license
cran/rxSeq
R
false
false
1,194
r
`nLogLik.trec.A` = function(coef, phi, rc, genei, hessian=FALSE){ index = rc$index y = rc$y[genei,] kappas = rc$kappas out = input.checks.A(coef=coef, phi=phi, index=index, y=y, kappas=kappas, trecase=FALSE) hess = NULL twosex = max(index)>4 if(twosex){ ind.lst = lapply(1:8, function(i){whic...
######################################################################################################################################################################################## startTime <- Sys.time() cat(paste0("> Rscript coexpr_gene_pair.R\n")) script_name <- "coexpr_gene_pair.R" # > similar to figure 4 a)...
/coexpr_gene_pair.R
no_license
marzuf/v2_Yuanlong_Cancer_HiC_data_TAD_DA
R
false
false
12,569
r
######################################################################################################################################################################################## startTime <- Sys.time() cat(paste0("> Rscript coexpr_gene_pair.R\n")) script_name <- "coexpr_gene_pair.R" # > similar to figure 4 a)...
source("functions.R") library(Cairo) library(DT) library(shiny) options(shiny.usecairo=TRUE) #Shiny server function shinyServer(function(input,output,session){ main.results <- eventReactive(input$go,{ progress <- shiny::Progress$new() on.exit(progress$close()) progress$se...
/server.r
no_license
Mait22/TQuant2017_G2
R
false
false
8,325
r
source("functions.R") library(Cairo) library(DT) library(shiny) options(shiny.usecairo=TRUE) #Shiny server function shinyServer(function(input,output,session){ main.results <- eventReactive(input$go,{ progress <- shiny::Progress$new() on.exit(progress$close()) progress$se...
setwd("~/Tona/Progra III/Caso ll/Calidad de Hospitales - data") rankhospital <- function(estado, resultado, rank1){ outcome <- (read.csv("outcome-of-care-measures.csv", colClasses = "character")) a <- outcome[outcome$State %in% c("TX"),] #outcome[order(outcome$Hospital.30.Day.Death..Mortality..Rates.from.Heart.Attack)...
/rankhospital.R
no_license
T0NA/Programacion_Actuarila_III
R
false
false
947
r
setwd("~/Tona/Progra III/Caso ll/Calidad de Hospitales - data") rankhospital <- function(estado, resultado, rank1){ outcome <- (read.csv("outcome-of-care-measures.csv", colClasses = "character")) a <- outcome[outcome$State %in% c("TX"),] #outcome[order(outcome$Hospital.30.Day.Death..Mortality..Rates.from.Heart.Attack)...
vbsrR <- function(y, x, z=NULL, l0 = -1.545509, eps = 1e-4, seed=1){ ###y = outcomes ###x = design matrix ###l0 = logit transfomred prior probability of being non-zero ###model <- list #seed default random seed to con...
/spike/R/vbsrR.R
no_license
blogsdon/spike
R
false
false
6,824
r
vbsrR <- function(y, x, z=NULL, l0 = -1.545509, eps = 1e-4, seed=1){ ###y = outcomes ###x = design matrix ###l0 = logit transfomred prior probability of being non-zero ###model <- list #seed default random seed to con...
/Análisis estadístico/Análisis estadistico.R
permissive
ddelgadoc/estudio-emisiones-NOx-con-RNN
R
false
false
5,897
r
context("S4 Object : bcbioSingleCell") # bcbioSingleCell ============================================================== # Need to add YAML metadata to test without `sampleMetadataFile` test_that("bcbioSingleCell", { uploadDir <- system.file("extdata/indrops", package = "bcbioSingleCell") sampleMetadataFile <...
/tests/testthat/test_s4_object.R
permissive
chitrita/bcbioSingleCell
R
false
false
765
r
context("S4 Object : bcbioSingleCell") # bcbioSingleCell ============================================================== # Need to add YAML metadata to test without `sampleMetadataFile` test_that("bcbioSingleCell", { uploadDir <- system.file("extdata/indrops", package = "bcbioSingleCell") sampleMetadataFile <...
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(sf) library(lubridate) library(tidyverse) # Directories codedir <- "models/popdy/v3/functions" outputdir <- "output/raw/set6" plotdir <- "models/figures" # Read helper funct...
/code/run_model/Step2a_run_gear_reduction_scenarios.R
no_license
cfree14/dungeness
R
false
false
1,728
r
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(sf) library(lubridate) library(tidyverse) # Directories codedir <- "models/popdy/v3/functions" outputdir <- "output/raw/set6" plotdir <- "models/figures" # Read helper funct...
## ----summaryinit, echo=FALSE, message=FALSE, warning=FALSE, echo=FALSE---- library(stringr) library(bibliographica) library(estc) library(dplyr) #df.orig <- read_bibliographic_metadata("estc.history.csv.gz", verbose = TRUE) #df <- read.csv(file = "estc.history.csv.gz", sep = "|") #df <- read.csv(file = "estc-LIBER201...
/inst/examples/new/analyses/20151023-LIBER.R
no_license
COMHIS/estc
R
false
false
17,670
r
## ----summaryinit, echo=FALSE, message=FALSE, warning=FALSE, echo=FALSE---- library(stringr) library(bibliographica) library(estc) library(dplyr) #df.orig <- read_bibliographic_metadata("estc.history.csv.gz", verbose = TRUE) #df <- read.csv(file = "estc.history.csv.gz", sep = "|") #df <- read.csv(file = "estc-LIBER201...
Initialisierung_stoch <- function(pop_size, n, in_percent){ Chromo<- list() for (i in 1:pop_size){ # Schleife ueber alle Individuen Chromosom0<- rep(0,n) for (j in 1:n){ # Schleife pro Individuum Z<- runif(n=1, min=0, max=1) if (Z <= in_percent) Chromosom0[j]<-...
/NHEMOtree/R/Initialisierung_stoch.R
no_license
ingted/R-Examples
R
false
false
466
r
Initialisierung_stoch <- function(pop_size, n, in_percent){ Chromo<- list() for (i in 1:pop_size){ # Schleife ueber alle Individuen Chromosom0<- rep(0,n) for (j in 1:n){ # Schleife pro Individuum Z<- runif(n=1, min=0, max=1) if (Z <= in_percent) Chromosom0[j]<-...
library(shiny) library(gapminder) #library(tidyverse) library(shinydashboard) library(plotly) library(ggplot2) library(dplyr) # Defne data df <- gapminder df <- df %>% as.data.frame() df.countries <- df %>% select(country) %>% unique() # Define UI for application ui <- dashboardPage( dashboardHeader(title="Gapmi...
/app/app.R
no_license
jeremymack-LU/rviz
R
false
false
3,624
r
library(shiny) library(gapminder) #library(tidyverse) library(shinydashboard) library(plotly) library(ggplot2) library(dplyr) # Defne data df <- gapminder df <- df %>% as.data.frame() df.countries <- df %>% select(country) %>% unique() # Define UI for application ui <- dashboardPage( dashboardHeader(title="Gapmi...
#' @title Get Intersection Set for Sets #' @description Get intersection set for sets. #' @param ... one or more objects #' @name and #' @return intersection elements #' @export #' #' @examples #' A <- c("a","b","c") #' B <- c("a","b","c","d") #' C <- c("a","e","h") #' and(A, B) #' and(A, B, C) and <- func...
/R/and.R
no_license
cran/set
R
false
false
758
r
#' @title Get Intersection Set for Sets #' @description Get intersection set for sets. #' @param ... one or more objects #' @name and #' @return intersection elements #' @export #' #' @examples #' A <- c("a","b","c") #' B <- c("a","b","c","d") #' C <- c("a","e","h") #' and(A, B) #' and(A, B, C) and <- func...
# # Read json main dataset # # SKIP - data not provided in github repo for now ################################################### # start with reading Wesv7.csv as Wes1 dataframe # move to where data is stored - local ladder database setwd("H:/ladder_replays/parsed") list.files() # load libraries for json and ...
/victors_originals/Wes_read_big_df_v1.r
no_license
VKON/wesv1
R
false
false
1,681
r
# # Read json main dataset # # SKIP - data not provided in github repo for now ################################################### # start with reading Wesv7.csv as Wes1 dataframe # move to where data is stored - local ladder database setwd("H:/ladder_replays/parsed") list.files() # load libraries for json and ...
library(shiny) library(tidyverse) ui <- fluidPage( numericInput("r1", "Infection Rate", 0.05), numericInput("r2", "Specificity and Sensitivity", 0.95), plotOutput("p1"), h4("The percentage of an individual who tests negative is actually negative is:"), textOutput("t1") ) server <- function(input, ...
/2020/Assignment-2020/Selected/Met-FE8828-Fan Wenqing/Assignment 4/assignment4-2.R
no_license
leafyoung/fe8828
R
false
false
1,675
r
library(shiny) library(tidyverse) ui <- fluidPage( numericInput("r1", "Infection Rate", 0.05), numericInput("r2", "Specificity and Sensitivity", 0.95), plotOutput("p1"), h4("The percentage of an individual who tests negative is actually negative is:"), textOutput("t1") ) server <- function(input, ...
recallLabelMatrizes = function(matriz1, matriz2){ if(ncol(matriz1) != ncol(matriz2)){ print("incompatibilidade entre as colunas das matrizes"); return(); } recallLabels = vector("numeric", 5); for(j in 1:5){ numeroClassificacoes = sum(matriz2[,j]==1); numeroClassificacoesCorretas = sum((matri...
/recallLabelMatrizes.R
no_license
rnpeclat/A2E
R
false
false
452
r
recallLabelMatrizes = function(matriz1, matriz2){ if(ncol(matriz1) != ncol(matriz2)){ print("incompatibilidade entre as colunas das matrizes"); return(); } recallLabels = vector("numeric", 5); for(j in 1:5){ numeroClassificacoes = sum(matriz2[,j]==1); numeroClassificacoesCorretas = sum((matri...
#Exploratory Analysis# url1 <-"https://raw.githubusercontent.com/kfaenza/Online-Shopper-Intention/master/online_shoppers_intention-2.csv" download.file(url1,"online_shoppers_intention_2") View(online_shoppers_intention_2) summary(online_shoppers_intention_2) pairs(online_shoppers_intention_2[1:10], col=factor(online_s...
/Predictive Analytics Project- online shoppers purchasing intention.R
no_license
ECON-386/Online-Shopper-Intention
R
false
false
10,626
r
#Exploratory Analysis# url1 <-"https://raw.githubusercontent.com/kfaenza/Online-Shopper-Intention/master/online_shoppers_intention-2.csv" download.file(url1,"online_shoppers_intention_2") View(online_shoppers_intention_2) summary(online_shoppers_intention_2) pairs(online_shoppers_intention_2[1:10], col=factor(online_s...
context("Test detect_event.R") test_that("detect() returns the correct lists, data.table, and columns", { ts <- ts2clm(sst_WA, climatologyPeriod = c("1983-01-01", "2012-12-31")) res <- detect_event(ts) expect_is(res, "list") expect_is(res$climatology, "tbl_df") expect_is(res$event, "tbl_df") expect_equal(n...
/tests/testthat/test-detect_event.R
no_license
cran/heatwaveR
R
false
false
6,362
r
context("Test detect_event.R") test_that("detect() returns the correct lists, data.table, and columns", { ts <- ts2clm(sst_WA, climatologyPeriod = c("1983-01-01", "2012-12-31")) res <- detect_event(ts) expect_is(res, "list") expect_is(res$climatology, "tbl_df") expect_is(res$event, "tbl_df") expect_equal(n...
# Class Image, definition and methods # Copyright (c) 2005-2007 Oleg Sklyar # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software Foundation; either version 2.1 # of the License, or (at your option) any ...
/R/Image.R
no_license
EricEdwardBryant/EBImage
R
false
false
27,375
r
# Class Image, definition and methods # Copyright (c) 2005-2007 Oleg Sklyar # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software Foundation; either version 2.1 # of the License, or (at your option) any ...
#' Converts a network object (unipartite) to a two-mode (bipartite) network #' representation. #' #' Bipartite network approaches are often used for analyzing the #' structure of interactions among species in communities. Although #' typically ecosystem networks are handled using a unipartite #' representation, anlay...
/R/as.bipartite.R
no_license
SEELab/enaR
R
false
false
999
r
#' Converts a network object (unipartite) to a two-mode (bipartite) network #' representation. #' #' Bipartite network approaches are often used for analyzing the #' structure of interactions among species in communities. Although #' typically ecosystem networks are handled using a unipartite #' representation, anlay...
# tile region into 1 degree x 1 degree pieces and apply existing scripts library(sf); library(raster); library(sustfarmld) polys <- readRDS("../farm_biodiversity_app/app/data/sa2_polygons.rds") polys <- tibble::rowid_to_column(polys, var = "idx") # plot(polys) woodyl <- lapply(polys$idx, function(x) return(NULL)) # wo...
/scripts/1_16_extract_RS_of_polygons.R
no_license
sustainablefarms/linking-data
R
false
false
3,858
r
# tile region into 1 degree x 1 degree pieces and apply existing scripts library(sf); library(raster); library(sustfarmld) polys <- readRDS("../farm_biodiversity_app/app/data/sa2_polygons.rds") polys <- tibble::rowid_to_column(polys, var = "idx") # plot(polys) woodyl <- lapply(polys$idx, function(x) return(NULL)) # wo...
# Exercise 4: practicing with dplyr # Install the `"nycflights13"` package. Load (`library()`) the package. # You'll also need to load `dplyr` install.packages("nycflights13") library("nycflights13") # The data frame `flights` should now be accessible to you. # Use functions to inspect it: how many rows and columns do...
/chapter-11-exercises/exercise-4/exercise.R
permissive
mz4201/book-exercises
R
false
false
2,155
r
# Exercise 4: practicing with dplyr # Install the `"nycflights13"` package. Load (`library()`) the package. # You'll also need to load `dplyr` install.packages("nycflights13") library("nycflights13") # The data frame `flights` should now be accessible to you. # Use functions to inspect it: how many rows and columns do...
library(twitteR) library(tm) library(wordcloud) library(RColorBrewer) library(devtools) install.packages(c("rjson", "bit64", "httr")) library("devtools") install_github("geoffjentry/twitteR", username="geoffjentry") library(httpuv) download.file("http://cran.r-project.org/src/contrib/Archive/sentiment/sentiment_0.2.tar...
/StartupIRL.R
no_license
clustersdata/MachineLearning-using-R
R
false
false
4,681
r
library(twitteR) library(tm) library(wordcloud) library(RColorBrewer) library(devtools) install.packages(c("rjson", "bit64", "httr")) library("devtools") install_github("geoffjentry/twitteR", username="geoffjentry") library(httpuv) download.file("http://cran.r-project.org/src/contrib/Archive/sentiment/sentiment_0.2.tar...
setwd("Q:\\coursera\\exp_data\\ExData_Plotting1"); data <- read.table( "../data/household_power_consumption.txt", header = TRUE, sep = ";", colClasses = c( "character", "character", rep("numeric",7)), na.strings=c("?") ); data$DateDate <- as.Date(data$Date, format="%d/%m/%Y"); data$DateTime <- strptim...
/plot3.R
no_license
nickkz/ExData_Plotting1
R
false
false
1,472
r
setwd("Q:\\coursera\\exp_data\\ExData_Plotting1"); data <- read.table( "../data/household_power_consumption.txt", header = TRUE, sep = ";", colClasses = c( "character", "character", rep("numeric",7)), na.strings=c("?") ); data$DateDate <- as.Date(data$Date, format="%d/%m/%Y"); data$DateTime <- strptim...
#'Numeric Representations #' #'Converts data to numeric values: method for "qw" data. #' #' @param x the object to be converted. #' @param \dots further arguments passed to or from other methods. #' @return A numeric representation of \code{x}, using a method commonly refered #'to as simple substitution. #' @note The p...
/R/as.double.R
permissive
Zhenglei-BCS/smwrQW
R
false
false
2,316
r
#'Numeric Representations #' #'Converts data to numeric values: method for "qw" data. #' #' @param x the object to be converted. #' @param \dots further arguments passed to or from other methods. #' @return A numeric representation of \code{x}, using a method commonly refered #'to as simple substitution. #' @note The p...
library(testthat) library(pipeliner) test_check("pipeliner")
/data/genthat_extracted_code/pipeliner/tests/testthat.R
no_license
surayaaramli/typeRrh
R
false
false
62
r
library(testthat) library(pipeliner) test_check("pipeliner")
library(shiny) library(plyr) library(ggplot2) library(stringr) library(DT) library(scales) #theme theme_set(theme_bw())
/global.R
no_license
Deleetdk/classification_multiple_predictors
R
false
false
121
r
library(shiny) library(plyr) library(ggplot2) library(stringr) library(DT) library(scales) #theme theme_set(theme_bw())
if ("BiocManager" %in% rownames(installed.packages())) remove.packages("BiocManager") install.packages("BiocManager", repos="https://cran.rstudio.com") library(BiocManager) bioc_version = BiocManager::version() builtins <- c("PYangLab/Cepo", "knitr", "rmarkdown", "BiocStyle") for (builtin in builtins){ if (!sup...
/install.R
no_license
kevinwang09/cepo_docker
R
false
false
568
r
if ("BiocManager" %in% rownames(installed.packages())) remove.packages("BiocManager") install.packages("BiocManager", repos="https://cran.rstudio.com") library(BiocManager) bioc_version = BiocManager::version() builtins <- c("PYangLab/Cepo", "knitr", "rmarkdown", "BiocStyle") for (builtin in builtins){ if (!sup...
#' loadCopyNumberCalls #' #' @description #' Loads copy number calls from a tabular format #' #' @details #' This function will load segments data from any "bed-like" data structure #' in R or file. Internally it uses the \code{toGRanges} function from regioneR #' package and can work with any format accepted by it, in...
/R/loadCopyNumberCalls.R
no_license
vdejager/CopyNumberPlots
R
false
false
6,706
r
#' loadCopyNumberCalls #' #' @description #' Loads copy number calls from a tabular format #' #' @details #' This function will load segments data from any "bed-like" data structure #' in R or file. Internally it uses the \code{toGRanges} function from regioneR #' package and can work with any format accepted by it, in...
# # Description: Script to apply data preprocessing in Barcelona restaurants # # Author: Manuel Noguera # Utilities source("../PreprocessingUtils.R") # Load datasets TripAdvisorCerveceria <- read.csv(file="./Data/Core/CoreNLP_Cerveceria.csv", header=TRUE, sep=",") TripAdvisorCondal <- read.csv(file="./Data/Core/Core...
/Barcelona/BarnaPreprocessing.R
no_license
manunogue/AnalisisSentimientos
R
false
false
1,397
r
# # Description: Script to apply data preprocessing in Barcelona restaurants # # Author: Manuel Noguera # Utilities source("../PreprocessingUtils.R") # Load datasets TripAdvisorCerveceria <- read.csv(file="./Data/Core/CoreNLP_Cerveceria.csv", header=TRUE, sep=",") TripAdvisorCondal <- read.csv(file="./Data/Core/Core...
# load libraries library(shiny) library(tidyverse) library(tidytext) library(glue) library(plotly) library(tm) library(wordcloud) library(memoise) #read data books <- read_rds("covid-speeches-words.rds") # Transform Data fluidPage( # Application title titlePanel("Word Cloud"), sidebarLayout( # Sidebar wi...
/Shinny App.R
no_license
nveenkapoor/DataAnalytics
R
false
false
1,583
r
# load libraries library(shiny) library(tidyverse) library(tidytext) library(glue) library(plotly) library(tm) library(wordcloud) library(memoise) #read data books <- read_rds("covid-speeches-words.rds") # Transform Data fluidPage( # Application title titlePanel("Word Cloud"), sidebarLayout( # Sidebar wi...
### Script to generate chart for the result: ### A. Age-specific Child Deprivation Levels in Nutrition and School Attendance # libs -------------------------------------------------------------------- library(here) library(scales) library(waffle) library(ggrepel) library(ggtext) library(cowplot) # sourcing data --...
/scripts/generate charts result A.R
no_license
AyushBipinPatel/South-Asia-Multidimensional-Child-Poverty-headline-charts
R
false
false
9,432
r
### Script to generate chart for the result: ### A. Age-specific Child Deprivation Levels in Nutrition and School Attendance # libs -------------------------------------------------------------------- library(here) library(scales) library(waffle) library(ggrepel) library(ggtext) library(cowplot) # sourcing data --...
#' Parametric polynomial estimator of the regression discontinuity #' #' Compute a parametric polynomial regression of the ATE, #' possibly on the range specified by bandwidth #' @param RDDobject Object of class RDDdata created by \code{\link{RDDdata}} #' @param covariates Formula to include covariates #' @param orde...
/RDDtools/R/reg_lm.R
no_license
13bzhang/RDDtools
R
false
false
6,643
r
#' Parametric polynomial estimator of the regression discontinuity #' #' Compute a parametric polynomial regression of the ATE, #' possibly on the range specified by bandwidth #' @param RDDobject Object of class RDDdata created by \code{\link{RDDdata}} #' @param covariates Formula to include covariates #' @param orde...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-barh.R, R/geom-boxploth.R, R/geom-crossbarh.R, R/geom-errorbarh.R, R/geom-linerangeh.R, R/geom-pointrangeh.R, R/geom-violinh.R, R/ggstance.R, R/positionv.R, R/stat-binh.R, R/stat-boxploth.R, R/stat-counth.R, R/stat-xdensity.R \docType{da...
/man/ggstance-ggproto.Rd
no_license
miguelyad26/ggstance
R
false
true
872
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-barh.R, R/geom-boxploth.R, R/geom-crossbarh.R, R/geom-errorbarh.R, R/geom-linerangeh.R, R/geom-pointrangeh.R, R/geom-violinh.R, R/ggstance.R, R/positionv.R, R/stat-binh.R, R/stat-boxploth.R, R/stat-counth.R, R/stat-xdensity.R \docType{da...
########### tm fuzzy_prep_words <- function(words) { # Prepares a list of words for fuzzy matching. All the other fuzzy matching # functions will run word through this. Given a list of sentences, returns # a list of words. words <- unlist(strsplit(tolower(gsub("[[:punct:]]", " ", words)), "\\W+")) return(w...
/dissertation/test similarity.R
no_license
xiaofeifei1800/Oxford
R
false
false
2,507
r
########### tm fuzzy_prep_words <- function(words) { # Prepares a list of words for fuzzy matching. All the other fuzzy matching # functions will run word through this. Given a list of sentences, returns # a list of words. words <- unlist(strsplit(tolower(gsub("[[:punct:]]", " ", words)), "\\W+")) return(w...
MBox<- function(X,g) { ni<- table(g) n<- sum(ni) ng<- length(ni) vdet<- numeric(ng) p<- ncol(X) Sigma<- matrix(0,p,p) for (i in 1:ng) { sigmai<- cov(X[g==levels(g)[i],]) vdet[i]<- det(sigmai) Sigma<- Sigma+ (ni[i]-1)*sigmai } Sigma<- Sigma/(n-ng) M<-(n-ng)*log(det(Sigma))-sum((ni-1)*log(vdet)) f1...
/ADM/Prácticas/Tema 8/MBox.r
no_license
JaviMaligno/Apuntes-4-Matem-ticas
R
false
false
658
r
MBox<- function(X,g) { ni<- table(g) n<- sum(ni) ng<- length(ni) vdet<- numeric(ng) p<- ncol(X) Sigma<- matrix(0,p,p) for (i in 1:ng) { sigmai<- cov(X[g==levels(g)[i],]) vdet[i]<- det(sigmai) Sigma<- Sigma+ (ni[i]-1)*sigmai } Sigma<- Sigma/(n-ng) M<-(n-ng)*log(det(Sigma))-sum((ni-1)*log(vdet)) f1...
corr <- function(directory, threshold = 0){ #setting working directory wd <- file.path(getwd(),"specdata") setwd(wd) id <- 1:332 threshold <- threshold res <- c(rep(0,332)) # create a vector of length 332 with all 0's, elements # will be replaced or removed. for (i in i...
/Week 2/corr.R
no_license
linchuan0/Coursera-R-Programming
R
false
false
1,150
r
corr <- function(directory, threshold = 0){ #setting working directory wd <- file.path(getwd(),"specdata") setwd(wd) id <- 1:332 threshold <- threshold res <- c(rep(0,332)) # create a vector of length 332 with all 0's, elements # will be replaced or removed. for (i in i...
#' @title FarmerB_yld_2016 #' @description Winter wheat crop yield (bushels per acre) data #' collected from Farmer B's John Deere combine in 2016. Yield #' data is automatically collected ~3 seconds during harvest. #' @format A data frame with 504746 rows and 15 variables: #' \describe{ #' \item{\code{gid}}{integer ...
/R/FarmerB_yld_2016.R
permissive
paulhegedus/OFPEDATA2
R
false
false
1,314
r
#' @title FarmerB_yld_2016 #' @description Winter wheat crop yield (bushels per acre) data #' collected from Farmer B's John Deere combine in 2016. Yield #' data is automatically collected ~3 seconds during harvest. #' @format A data frame with 504746 rows and 15 variables: #' \describe{ #' \item{\code{gid}}{integer ...
ax = dataBR.plot(x="country name", y="GDP", legend=False, label='saudi Arabia GDP', color='#E75519', linewidth = 3) ax.ticklabel_format(useOffset=False, style='plain') ax2 = ax.twinx() Petroleum.plot(x="country name", y="GDP",ax=ax2, legend=False, label='Total GDP', color='#82AE47', linewidth = 1) ax.figure.legend(loc=...
/happinessworld.r
no_license
wajdturki/wajdturki
R
false
false
3,168
r
ax = dataBR.plot(x="country name", y="GDP", legend=False, label='saudi Arabia GDP', color='#E75519', linewidth = 3) ax.ticklabel_format(useOffset=False, style='plain') ax2 = ax.twinx() Petroleum.plot(x="country name", y="GDP",ax=ax2, legend=False, label='Total GDP', color='#82AE47', linewidth = 1) ax.figure.legend(loc=...
#' Print All #' #' @description a quick helper function to print all the rows of a tibble to the console. Basically a wrapper for print(data, n = 1000) #' #' @param data an object to print to the console #' @param n number of rows to print. Defaults to 1000, unlike print.tibble, which prints 10-15 rows by default #' @p...
/R/print_all.R
no_license
jfontestad/ucbudar
R
false
false
590
r
#' Print All #' #' @description a quick helper function to print all the rows of a tibble to the console. Basically a wrapper for print(data, n = 1000) #' #' @param data an object to print to the console #' @param n number of rows to print. Defaults to 1000, unlike print.tibble, which prints 10-15 rows by default #' @p...
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(gitear) library(dplyr) library(jsonlite) r <- readRDS(system.file("helper_data/response_example.RDS", package = "gitear")) content_an_org...
/inst/doc/Access-gitea-from-R.R
no_license
cran/gitear
R
false
false
4,104
r
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(gitear) library(dplyr) library(jsonlite) r <- readRDS(system.file("helper_data/response_example.RDS", package = "gitear")) content_an_org...
# Change "Histogram", all __j1_s, and edit tiles below: tabItem(tabName = "Barchart", tabsetPanel( tabPanel("Plots"),# To create a tab panel - see https://shiny.rstudio.com/reference/shiny/latest/tabPanel.html tabPanel("Data", dataTableOutput('table__j1_'), downlo...
/Final_Project/Combined_Code/jeffbarChart1UI.R
no_license
Arinze95/CS329DataViz
R
false
false
1,559
r
# Change "Histogram", all __j1_s, and edit tiles below: tabItem(tabName = "Barchart", tabsetPanel( tabPanel("Plots"),# To create a tab panel - see https://shiny.rstudio.com/reference/shiny/latest/tabPanel.html tabPanel("Data", dataTableOutput('table__j1_'), downlo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{kalman} \alias{kalman} \title{Estimate continuous states given parameters and discrete hidden states} \usage{ kalman(pmats, path, y) } \arguments{ \item{pmats}{a list with componente \code{a0, P0, dt, ct, Tt, Zt, HHt,} and...
/man/kalman.Rd
no_license
dajmcdon/dpf
R
false
true
1,349
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{kalman} \alias{kalman} \title{Estimate continuous states given parameters and discrete hidden states} \usage{ kalman(pmats, path, y) } \arguments{ \item{pmats}{a list with componente \code{a0, P0, dt, ct, Tt, Zt, HHt,} and...
idSample <- 43 idDrugA <- 84 idDrugB <- 87 library(synergyfinder) library(PharmacoGx) mono_ncol <- max(count.fields("mono_input.txt")) mono <- read.table("mono_input.txt", header=F, sep="\t", fill=TRUE, stringsAsFactor=F, col.names=paste0('V', seq_len(mono_ncol))) combo <- read.table("combo_input.txt", header=F, sep...
/merck/04_get_synergy_scores.R
no_license
lootpiz/cdCocktails
R
false
false
7,855
r
idSample <- 43 idDrugA <- 84 idDrugB <- 87 library(synergyfinder) library(PharmacoGx) mono_ncol <- max(count.fields("mono_input.txt")) mono <- read.table("mono_input.txt", header=F, sep="\t", fill=TRUE, stringsAsFactor=F, col.names=paste0('V', seq_len(mono_ncol))) combo <- read.table("combo_input.txt", header=F, sep...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/function_Research.R \name{Generate.theta} \alias{Generate.theta} \title{Generate the theta} \usage{ Generate.theta(n, K, clust.size) } \arguments{ \item{n}{the number of the nodes} \item{K}{the number of the communities} \item{clust.size}{...
/man/Generate.theta.Rd
no_license
thynb/StatComp20025
R
false
true
712
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/function_Research.R \name{Generate.theta} \alias{Generate.theta} \title{Generate the theta} \usage{ Generate.theta(n, K, clust.size) } \arguments{ \item{n}{the number of the nodes} \item{K}{the number of the communities} \item{clust.size}{...
marks1<-as.interger(readline(prompt="enter marks of 1st subjects:")) marks2<-as.interger(readline(prompt="enter marks of 2nd subjects:")) marks3<-as.interger(readline(prompt="enter marks of 3rd subjects:")) total=marks1+marks2+marks3 print(total) percentage=(total/300)*100 print(percentage) if(percentage<=100 && percen...
/grading.R
no_license
Prerna2602/R-Lab
R
false
false
622
r
marks1<-as.interger(readline(prompt="enter marks of 1st subjects:")) marks2<-as.interger(readline(prompt="enter marks of 2nd subjects:")) marks3<-as.interger(readline(prompt="enter marks of 3rd subjects:")) total=marks1+marks2+marks3 print(total) percentage=(total/300)*100 print(percentage) if(percentage<=100 && percen...
d <- read.table("./household_power_consumption.txt", stringsAsFactors = FALSE, header = TRUE, sep =";" ) ## change class of all columns to correct class d$Date <- as.Date(d$Date, format="%d/%m/%Y") d$Time <- format(d$Time, format="%H:%M:%S") d$Global_active_power <- as.numeric(d$Global_active_power) d$Global_re...
/plot1.R
no_license
AnirudhBond/ExData_Plotting1
R
false
false
946
r
d <- read.table("./household_power_consumption.txt", stringsAsFactors = FALSE, header = TRUE, sep =";" ) ## change class of all columns to correct class d$Date <- as.Date(d$Date, format="%d/%m/%Y") d$Time <- format(d$Time, format="%H:%M:%S") d$Global_active_power <- as.numeric(d$Global_active_power) d$Global_re...
\name{crudeoil} \alias{crudeoil} \title{Crude Oil Data.} \description{Selected data from oil market.} \usage{data(crudeoil)} \format{\code{crudeoil} is \code{\link[xts]{xts}} object such that \itemize{ \item \code{crudeoil$WTI} -- WTI spot price in USD per barrel \item \code{crudeoil$MSCI} -- MSCI World...
/fuzzedpackages/fDMA/man/crudeoil.Rd
no_license
akhikolla/testpackages
R
false
false
1,632
rd
\name{crudeoil} \alias{crudeoil} \title{Crude Oil Data.} \description{Selected data from oil market.} \usage{data(crudeoil)} \format{\code{crudeoil} is \code{\link[xts]{xts}} object such that \itemize{ \item \code{crudeoil$WTI} -- WTI spot price in USD per barrel \item \code{crudeoil$MSCI} -- MSCI World...
library(ggplot2) library(stringr) library(dplyr) library(tidyr) if (! exists("users")) load(file="../users.RData") # source('data_prep.R') if (! exists("sessions")) load(file="../sessions.RData") # source('data_prep.R') countries <- read.csv('../input/countries.csv') %>% tbl_df() age_gender_bkts <- read.csv('../in...
/NUB_Code/features.R
no_license
dsdaveh/AirBnB_NUB
R
false
false
5,245
r
library(ggplot2) library(stringr) library(dplyr) library(tidyr) if (! exists("users")) load(file="../users.RData") # source('data_prep.R') if (! exists("sessions")) load(file="../sessions.RData") # source('data_prep.R') countries <- read.csv('../input/countries.csv') %>% tbl_df() age_gender_bkts <- read.csv('../in...
library(evidence) ### Name: HSCrab ### Title: Morphology of horseshoe crabs. ### Aliases: HSCrab ### Keywords: datasets ### ** Examples data(HSCrab) plot(Weight ~ Width, col = Col, data = HSCrab)
/data/genthat_extracted_code/evidence/examples/HSCrab.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
203
r
library(evidence) ### Name: HSCrab ### Title: Morphology of horseshoe crabs. ### Aliases: HSCrab ### Keywords: datasets ### ** Examples data(HSCrab) plot(Weight ~ Width, col = Col, data = HSCrab)
stop_if_not_installed <- function(pkg) { rlang::check_installed(pkg, "Must be installed to use this function.") } stop_if_shiny_not_installed <- function() { stop_if_not_installed("shiny") } stop_if_rmarkdown_not_installed <- function() { stop_if_not_installed("rmarkdown") } stop_if_blogdown_not_installed <- f...
/R/utils.R
permissive
r-lib/ymlthis
R
false
false
3,187
r
stop_if_not_installed <- function(pkg) { rlang::check_installed(pkg, "Must be installed to use this function.") } stop_if_shiny_not_installed <- function() { stop_if_not_installed("shiny") } stop_if_rmarkdown_not_installed <- function() { stop_if_not_installed("rmarkdown") } stop_if_blogdown_not_installed <- f...
\name{is.marked.ppm} \alias{is.marked.ppm} \alias{is.marked.lppm} \title{Test Whether A Point Process Model is Marked} \description{ Tests whether a fitted point process model involves ``marks'' attached to the points. } \usage{ \method{is.marked}{ppm}(X, \dots) \method{is.marked}{lppm}(X, \dots) } \argument...
/man/is.marked.ppm.Rd
no_license
cuulee/spatstat
R
false
false
2,423
rd
\name{is.marked.ppm} \alias{is.marked.ppm} \alias{is.marked.lppm} \title{Test Whether A Point Process Model is Marked} \description{ Tests whether a fitted point process model involves ``marks'' attached to the points. } \usage{ \method{is.marked}{ppm}(X, \dots) \method{is.marked}{lppm}(X, \dots) } \argument...