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 |
|---|---|---|---|---|---|---|---|---|---|
######################################################################################
#### RENOMEAR COLUNAS PARA PADRAO SEFAZ
df_cerveja <- rename(df_cerveja,PROD_CPROD_SEFAZ_DETALHADO = 'CPROD_CERVEJA_SEFAZ')
df_cerveja <- rename(df_cerveja,PROD_XPROD_SEFAZ_DETALHADO = 'XPROD_CERVEJAS_SEFAZ')
df_cerveja <- rename(df... | /R/AJUSTES_CERVEJA/AJUSTES_FINAIS_CERVEJA.R | no_license | emirsmaka/CLASSIFICA_PRODUTOS | R | false | false | 6,235 | r | ######################################################################################
#### RENOMEAR COLUNAS PARA PADRAO SEFAZ
df_cerveja <- rename(df_cerveja,PROD_CPROD_SEFAZ_DETALHADO = 'CPROD_CERVEJA_SEFAZ')
df_cerveja <- rename(df_cerveja,PROD_XPROD_SEFAZ_DETALHADO = 'XPROD_CERVEJAS_SEFAZ')
df_cerveja <- rename(df... |
#' Dataframe of annual population counts by age and race, 1979-2015
#'
#' A data set containing annual population counts by age (5-year bins,
#' 18 groups), sex, and race. All data are from the US Census Bureau Population
#' Estimates Program.
#'
#' @docType data
#'
#' @format A data frame with 7992 rows and 6 columns
... | /R/data-pop_est.R | permissive | mkiang/narcan | R | false | false | 739 | r | #' Dataframe of annual population counts by age and race, 1979-2015
#'
#' A data set containing annual population counts by age (5-year bins,
#' 18 groups), sex, and race. All data are from the US Census Bureau Population
#' Estimates Program.
#'
#' @docType data
#'
#' @format A data frame with 7992 rows and 6 columns
... |
########################## Classification using Naive Bayes ##########################
###################### Classification using UCI Adult dataset ########################
################### https://archive.ics.uci.edu/ml/datasets/Adult ####################
install.packages('tm')
##################################... | /mh8111_assignment/MH8111_MyOwnDataSet.R | no_license | lifengzhi/msa_mh8101_or1_lp | R | false | false | 19,372 | r | ########################## Classification using Naive Bayes ##########################
###################### Classification using UCI Adult dataset ########################
################### https://archive.ics.uci.edu/ml/datasets/Adult ####################
install.packages('tm')
##################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/joinQuadSeedlings.R
\name{joinQuadSeedlings}
\alias{joinQuadSeedlings}
\title{joinQuadSeedlings: compiles seedling data collected in quadrats}
\usage{
joinQuadSeedlings(
park = "all",
from = 2007,
to = as.numeric(format(Sys.Date(), "\%Y... | /man/joinQuadSeedlings.Rd | permissive | KateMMiller/forestMIDN | R | false | true | 4,801 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/joinQuadSeedlings.R
\name{joinQuadSeedlings}
\alias{joinQuadSeedlings}
\title{joinQuadSeedlings: compiles seedling data collected in quadrats}
\usage{
joinQuadSeedlings(
park = "all",
from = 2007,
to = as.numeric(format(Sys.Date(), "\%Y... |
\name{ARml}
\alias{ARml}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Autoregressive forecasting using various Machine Learning models.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
ARml(x, horizons = c(1, 6, 12), lookback = c(1:5), frequency,... | /man/ARml.Rd | permissive | ssh352/MLforecast | R | false | false | 3,441 | rd | \name{ARml}
\alias{ARml}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Autoregressive forecasting using various Machine Learning models.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
ARml(x, horizons = c(1, 6, 12), lookback = c(1:5), frequency,... |
library(forecast)#stdin
library(zoo)
calcMissing <- function(readings) {
yearss<-c()
tmaxx<-c()
tminn<-c()
monthh<-c()
for (i in 1:length(readings)){
lines <- unlist(strsplit(readings[i], sp = "\t"))
yearss[i]<-lines[1]
monthh[i]<-lines[2]
tmaxx[i]<-ifelse(substr(lines[3],1,1)==... | /Temperature Predict/temp.R | no_license | krag57/DS-Python | R | false | false | 3,541 | r | library(forecast)#stdin
library(zoo)
calcMissing <- function(readings) {
yearss<-c()
tmaxx<-c()
tminn<-c()
monthh<-c()
for (i in 1:length(readings)){
lines <- unlist(strsplit(readings[i], sp = "\t"))
yearss[i]<-lines[1]
monthh[i]<-lines[2]
tmaxx[i]<-ifelse(substr(lines[3],1,1)==... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/js.R
\name{js_insertMySQLTimeStamp}
\alias{js_insertMySQLTimeStamp}
\title{translate forward slash to a Mysql timestamp}
\usage{
js_insertMySQLTimeStamp()
js_insertMySQLTimeStamp()
}
\description{
translate forward slash to a Mysql timestamp... | /man/js_insertMySQLTimeStamp.Rd | no_license | mpio-be/DataEntry | R | false | true | 425 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/js.R
\name{js_insertMySQLTimeStamp}
\alias{js_insertMySQLTimeStamp}
\title{translate forward slash to a Mysql timestamp}
\usage{
js_insertMySQLTimeStamp()
js_insertMySQLTimeStamp()
}
\description{
translate forward slash to a Mysql timestamp... |
library(abind)
binvec <- function(n){
return(rev(as.numeric(intToBits(n))[1:(floor(log(n)/log(2))+1)]))
}
vdc <- function(d,n){
b <- 2
r <- floor(log(n)/log(b))+1
bitcreate <- function(N,r){
return(as.numeric(intToBits(N))[1:r])
}
a <- apply(as.matrix(N,ncol=1),1,bitcreate, r=r)
bb <- 1/b^(... | /IS 604 Simulation and Modeling techniques/Homework 4/QuasiRandom.R | no_license | cspitmit03/CUNY | R | false | false | 3,437 | r | library(abind)
binvec <- function(n){
return(rev(as.numeric(intToBits(n))[1:(floor(log(n)/log(2))+1)]))
}
vdc <- function(d,n){
b <- 2
r <- floor(log(n)/log(b))+1
bitcreate <- function(N,r){
return(as.numeric(intToBits(N))[1:r])
}
a <- apply(as.matrix(N,ncol=1),1,bitcreate, r=r)
bb <- 1/b^(... |
library(googleVis)
### Name: gvisGeoChart
### Title: Google Geo Chart with R
### Aliases: gvisGeoChart
### Keywords: iplot
### ** Examples
## Please note that by default the googleVis plot command
## will open a browser window and requires Internet
## connection to display the visualisation.
## Regions examples
#... | /data/genthat_extracted_code/googleVis/examples/gvisGeoChart.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 3,702 | r | library(googleVis)
### Name: gvisGeoChart
### Title: Google Geo Chart with R
### Aliases: gvisGeoChart
### Keywords: iplot
### ** Examples
## Please note that by default the googleVis plot command
## will open a browser window and requires Internet
## connection to display the visualisation.
## Regions examples
#... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{hillFit}
\alias{hillFit}
\title{fit Hill equation on dose response data}
\usage{
hillFit(d, y)
}
\arguments{
\item{d}{dose original dose}
\item{y}{response relative viability}
}
\description{
Notice that control data (dose=0) is usually not fitted (supplied) i... | /man/hillFit.Rd | no_license | armish/drexplorer | R | false | false | 340 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{hillFit}
\alias{hillFit}
\title{fit Hill equation on dose response data}
\usage{
hillFit(d, y)
}
\arguments{
\item{d}{dose original dose}
\item{y}{response relative viability}
}
\description{
Notice that control data (dose=0) is usually not fitted (supplied) i... |
\name{solarized_pal}
\alias{solarized_pal}
\title{Solarized color palette (discrete)}
\usage{
solarized_pal(accent = "blue")
}
\arguments{
\item{accent}{\code{character} Primary accent color.}
}
\description{
Solarized accents palette from
\url{http://ethanschoonover.com/solarized}. The colors
chosen are the ... | /man/solarized_pal.Rd | no_license | jknowles/ggplotJrnold | R | false | false | 568 | rd | \name{solarized_pal}
\alias{solarized_pal}
\title{Solarized color palette (discrete)}
\usage{
solarized_pal(accent = "blue")
}
\arguments{
\item{accent}{\code{character} Primary accent color.}
}
\description{
Solarized accents palette from
\url{http://ethanschoonover.com/solarized}. The colors
chosen are the ... |
######################################
## modified from pheatmap package
######################################
longest_string = function(strings) {
i = which.max(strwidth(strings, units = 'in'))
return(strings[i])
}
# determine the width and height of each component in the layout
lo = function(coln, rown,
legen... | /R/pheatmap2.R | no_license | smyang2018/pheatmap2 | R | false | false | 22,799 | r | ######################################
## modified from pheatmap package
######################################
longest_string = function(strings) {
i = which.max(strwidth(strings, units = 'in'))
return(strings[i])
}
# determine the width and height of each component in the layout
lo = function(coln, rown,
legen... |
Conv_grd_asc<-function(diretorio){
setwd(diretorio)
library(raster)
environmental<-list.files(pattern='tif')
raster<-stack(environmental)
names(raster)<-substr(environmental,1,nchar(environmental)-4)
writeRaster(raster,paste(names(raster),".asc",sep=""),bylayer=T,format="ascii",NAflag=-9999)
}
Conv_grd_a... | /Scripts_Diversos/Conv_grd_asc.R | no_license | mglima/ENM_TheMetaLand | R | false | false | 419 | r | Conv_grd_asc<-function(diretorio){
setwd(diretorio)
library(raster)
environmental<-list.files(pattern='tif')
raster<-stack(environmental)
names(raster)<-substr(environmental,1,nchar(environmental)-4)
writeRaster(raster,paste(names(raster),".asc",sep=""),bylayer=T,format="ascii",NAflag=-9999)
}
Conv_grd_a... |
setwd("~/DataScience/Exploratory")
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl,"./power.zip")
unzip("./power.zip")
list.files()
## Read in Data - Only Feb 1/2007 and Feb 2/2007.
## File is large so skip irrelevant rows and only select the... | /plot3.R | no_license | cmacchambers/PlottingProject1 | R | false | false | 1,475 | r | setwd("~/DataScience/Exploratory")
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl,"./power.zip")
unzip("./power.zip")
list.files()
## Read in Data - Only Feb 1/2007 and Feb 2/2007.
## File is large so skip irrelevant rows and only select the... |
testlist <- list(id = integer(0), x = c(7.19722492128528e-304, -5.48612398702754e+303, -3.00384897003089e-307, 1.39067116155435e-309, 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, 0, 0, 0)... | /ggforce/inst/testfiles/enclose_points/libFuzzer_enclose_points/enclose_points_valgrind_files/1610029662-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 402 | r | testlist <- list(id = integer(0), x = c(7.19722492128528e-304, -5.48612398702754e+303, -3.00384897003089e-307, 1.39067116155435e-309, 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, 0, 0, 0)... |
context("Weekday Index validation")
test_that("Weekday index should be valid", {
expect_that(validate_weekday_index("Monday"), throws_error("whole number"));
expect_that(validate_weekday_index(7), throws_error("between 0 and 6"));
})
context("Weekday Mean is correctly obtained")
test_that("Weekday ... | /tests/test-historical-data.r | no_license | e4envy/Algorithm-implementation-in-R | R | false | false | 718 | r | context("Weekday Index validation")
test_that("Weekday index should be valid", {
expect_that(validate_weekday_index("Monday"), throws_error("whole number"));
expect_that(validate_weekday_index(7), throws_error("between 0 and 6"));
})
context("Weekday Mean is correctly obtained")
test_that("Weekday ... |
Mode <- function(x) {
ux <- unique(x)
ux[which.max(tabulate(match(x, ux)))]
}
Mode(rep(c(1,2),100))
getModelPerf <- function(data,target,classification = TRUE){
library(caret)
library(caretEnsemble)
library(xgboost)
library(data.table)
library(Matrix)
library(randomForest)
dt = data.table... | /General ML.R | no_license | Harishbe93/ML-Problems | R | false | false | 2,370 | r |
Mode <- function(x) {
ux <- unique(x)
ux[which.max(tabulate(match(x, ux)))]
}
Mode(rep(c(1,2),100))
getModelPerf <- function(data,target,classification = TRUE){
library(caret)
library(caretEnsemble)
library(xgboost)
library(data.table)
library(Matrix)
library(randomForest)
dt = data.table... |
test_that('incorrect colours not allowed in swatch', {
expect_warning(define_swatch('red'))
expect_error(define_swatch('periwinkle blue'))
expect_identical(class(define_swatch(colors()[1:8])), 'ggthemr.swatch')
}) | /inst/tests/test-define_swatch.R | no_license | fxcebx/ggthemr | R | false | false | 220 | r | test_that('incorrect colours not allowed in swatch', {
expect_warning(define_swatch('red'))
expect_error(define_swatch('periwinkle blue'))
expect_identical(class(define_swatch(colors()[1:8])), 'ggthemr.swatch')
}) |
rm(list=ls())
library(tidyverse)
library(lubridate)
library(forcats)
library(sqldf)
retail_data <- read_csv("C:/Users/Vijay/Desktop/KPISOFT/retail_product.csv")
glimpse(retail_data)
country_mostsales <- sqldf("select Country, sum(income) as 'countrywise_totalrevenue' from retail_data group by Country ORDER BY i... | /02_eda_retail.R | no_license | ajayakula9/Online_Retail_Sale_Recomemndation_System | R | false | false | 1,900 | r |
rm(list=ls())
library(tidyverse)
library(lubridate)
library(forcats)
library(sqldf)
retail_data <- read_csv("C:/Users/Vijay/Desktop/KPISOFT/retail_product.csv")
glimpse(retail_data)
country_mostsales <- sqldf("select Country, sum(income) as 'countrywise_totalrevenue' from retail_data group by Country ORDER BY i... |
#library(R6)
#library(mixOmics)
#' R6 class for mixomics analysis
#'
#' @param result DGE analysis result
#'
#' @return
#' @export
#'
#' @examples
#' mixomixs <- MixomicsClass$new(result)
MixomicsClass <- R6::R6Class("MixomicsClass",
public = list(
data = NULL,
samples = NULL,
design = NULL,
ncomp =... | /R/mixomics.R | no_license | hcnh174/hlsgr | R | false | false | 6,353 | r | #library(R6)
#library(mixOmics)
#' R6 class for mixomics analysis
#'
#' @param result DGE analysis result
#'
#' @return
#' @export
#'
#' @examples
#' mixomixs <- MixomicsClass$new(result)
MixomicsClass <- R6::R6Class("MixomicsClass",
public = list(
data = NULL,
samples = NULL,
design = NULL,
ncomp =... |
# default model is linear regression model
# change to rf for random forest
available.models <- c('lm','rf')
current.model <- available.models[1]
# Read data
HP <- read.csv('train.csv')
dim(HP)
names(HP)
# Explore for NA
hasNA <- apply(HP, 2, function(x) length(which(is.na(x))))
(hasNA <- hasNA[hasNA>0])
... | /Kaggle_house_price_pred/hw6.R | no_license | ystan87/coursework | R | false | false | 11,621 | r | # default model is linear regression model
# change to rf for random forest
available.models <- c('lm','rf')
current.model <- available.models[1]
# Read data
HP <- read.csv('train.csv')
dim(HP)
names(HP)
# Explore for NA
hasNA <- apply(HP, 2, function(x) length(which(is.na(x))))
(hasNA <- hasNA[hasNA>0])
... |
######################################################################
############ Script GAL - Hepatite D #################
########### V.1.0 - Desenvolvido por Mikael Lemos ####################
######################################################################
#### Carregando bibliotecas ##... | /R/hepatite_C_GAL.R | no_license | mikael83/git-produto5-OPAS-2021 | R | false | false | 33,572 | r | ######################################################################
############ Script GAL - Hepatite D #################
########### V.1.0 - Desenvolvido por Mikael Lemos ####################
######################################################################
#### Carregando bibliotecas ##... |
## makeCachematrix function:
## -put original user given matrix (example: y) to special matrix (Matrix)
## -define set* and get* functions
## -Given Matrix has to be square matrix, identical number of rows and columns
## -matrix can be inverted if it has identity matrix - in R this can be created... | /cachematrix.R | no_license | jyrki289/ProgrammingAssignment2 | R | false | false | 2,329 | r |
## makeCachematrix function:
## -put original user given matrix (example: y) to special matrix (Matrix)
## -define set* and get* functions
## -Given Matrix has to be square matrix, identical number of rows and columns
## -matrix can be inverted if it has identity matrix - in R this can be created... |
/linear model.R | no_license | paoliveira7/Vega-Data-Analysis | R | false | false | 1,404 | r | ||
library(foreach)
qsort <- function(x) {
n <- length(x)
if (n == 0) {
x
} else {
p <- sample(n, 1)
smaller <- foreach(y=x[-p], .combine=c) %:% when(y <= x[p]) %do% y
larger <- foreach(y=x[-p], .combine=c) %:% when(y > x[p]) %do% y
c(qsort(smaller), x[p], qsort(larger))
... | /qsort.R | no_license | IvanSilbern/UsefulFunctionsR | R | false | false | 329 | r | library(foreach)
qsort <- function(x) {
n <- length(x)
if (n == 0) {
x
} else {
p <- sample(n, 1)
smaller <- foreach(y=x[-p], .combine=c) %:% when(y <= x[p]) %do% y
larger <- foreach(y=x[-p], .combine=c) %:% when(y > x[p]) %do% y
c(qsort(smaller), x[p], qsort(larger))
... |
# TUTORIAL 8:
#
# Criticl regions given
# 1) Find probability of type I error
# 2) Find analytical expression for the power function
# 3) Produce seperate plotes of these power functions
#
# To plot the power functiony ou may find it
# useful to use the curve function in R
# The following code illustrates how c... | /tutorial8.R | no_license | nathalieveronika/Statistics | R | false | false | 1,552 | r | # TUTORIAL 8:
#
# Criticl regions given
# 1) Find probability of type I error
# 2) Find analytical expression for the power function
# 3) Produce seperate plotes of these power functions
#
# To plot the power functiony ou may find it
# useful to use the curve function in R
# The following code illustrates how c... |
fname_list = "cath-domain-list.txt"
tbl_list = read.table(fname_list, comment.char = '#', sep = "", quote = "")
colnames(tbl_list) = c("cathId","class","architecture","topology","homologous","S35","S60","S95","S100","S100_count","domain_len","resolution")
fname_names = "cath-names.txt"
cathNames = data.frame()
t... | /data/parse_cath.R | permissive | ricardovialle/Ydb | R | false | false | 3,062 | r | fname_list = "cath-domain-list.txt"
tbl_list = read.table(fname_list, comment.char = '#', sep = "", quote = "")
colnames(tbl_list) = c("cathId","class","architecture","topology","homologous","S35","S60","S95","S100","S100_count","domain_len","resolution")
fname_names = "cath-names.txt"
cathNames = data.frame()
t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{Zproject}
\alias{Zproject}
\alias{Zproject-class}
\title{The Zproject class}
\description{
\code{Zproject} class represents a Zonation project project, i.e. all the
input and output files and folders.
}
\det... | /man/Zproject-class.Rd | no_license | hmorzaria/zonator | R | false | true | 808 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{Zproject}
\alias{Zproject}
\alias{Zproject-class}
\title{The Zproject class}
\description{
\code{Zproject} class represents a Zonation project project, i.e. all the
input and output files and folders.
}
\det... |
library("MSnID")
library("digest")
msnid2 <- MSnID(".")
mzids <- system.file("extdata","c_elegans.mzid.gz",package="MSnID")
msnid2 <- read_mzIDs(msnid2, mzids, backend = 'mzID')
unlink(".Rcache", recursive=TRUE)
# the object from mzR parser is a bit different from mzID (at this point)
msnid3 <- read_mzIDs(msnid2, mzid... | /inst/unitTests/test_data_load.R | no_license | vladpetyuk/MSnID | R | false | false | 1,132 | r | library("MSnID")
library("digest")
msnid2 <- MSnID(".")
mzids <- system.file("extdata","c_elegans.mzid.gz",package="MSnID")
msnid2 <- read_mzIDs(msnid2, mzids, backend = 'mzID')
unlink(".Rcache", recursive=TRUE)
# the object from mzR parser is a bit different from mzID (at this point)
msnid3 <- read_mzIDs(msnid2, mzid... |
#' Consistently load raw Irish census data
#'
#' Consistently load and standardize raw Irish census data
#'
#' @param path path to data
#'
#' @param file_delim single character used to separate fields within a record; default is " " for .txt files
#'
#' @param assignID string of variable names for creating a unique ide... | /R/LoadClean.R | no_license | kaylafrisoli/iRland | R | false | false | 8,631 | r | #' Consistently load raw Irish census data
#'
#' Consistently load and standardize raw Irish census data
#'
#' @param path path to data
#'
#' @param file_delim single character used to separate fields within a record; default is " " for .txt files
#'
#' @param assignID string of variable names for creating a unique ide... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{aspect_action}
\alias{aspect_action}
\title{Pass an action bound to an aspect}
\usage{
aspect_action(g, asps, ..., action)
}
\description{
Pass an action bound to an aspect
}
\section{Uses}{
\itemize{
\item \code{legend_asps}
\... | /man/aspect_action.Rd | permissive | han-tun/g2r | R | false | true | 366 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{aspect_action}
\alias{aspect_action}
\title{Pass an action bound to an aspect}
\usage{
aspect_action(g, asps, ..., action)
}
\description{
Pass an action bound to an aspect
}
\section{Uses}{
\itemize{
\item \code{legend_asps}
\... |
testlist <- list(A = structure(c(2.31584307392674e+77, 2.78660674414169e-309, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613112257-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 257 | r | testlist <- list(A = structure(c(2.31584307392674e+77, 2.78660674414169e-309, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
## this file is assumed to be in the same folder as the data folder `UCI HAR Dataset`
## meaning to say
## ---
## |---run_analysis.R
## |
## |---UCI HAR Dataset/
## in case you are not sure,
## you can double check with the github repo
## where this file is based in
## 1) Merges the training and the test sets t... | /run_analysis.R | no_license | hemavathi-d/GettingCleaningData2014-002-Assignment | R | false | false | 4,918 | r | ## this file is assumed to be in the same folder as the data folder `UCI HAR Dataset`
## meaning to say
## ---
## |---run_analysis.R
## |
## |---UCI HAR Dataset/
## in case you are not sure,
## you can double check with the github repo
## where this file is based in
## 1) Merges the training and the test sets t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scalib_hare.R
\name{scalib_hare}
\alias{scalib_hare}
\title{Calibration Slope using Hazard Regression (HARE)}
\usage{
scalib_hare(
scalib_object,
verbose = 0,
hare_penalty = NULL,
hare_max_dimension = NULL,
hare_prophaz = FALSE,
h... | /man/scalib_hare.Rd | permissive | bcjaeger/survival.calib | R | false | true | 3,089 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scalib_hare.R
\name{scalib_hare}
\alias{scalib_hare}
\title{Calibration Slope using Hazard Regression (HARE)}
\usage{
scalib_hare(
scalib_object,
verbose = 0,
hare_penalty = NULL,
hare_max_dimension = NULL,
hare_prophaz = FALSE,
h... |
library(fsdaR)
### Name: smulteda.object
### Title: Description of 'smulteda.object' Objects
### Aliases: smulteda.object
### Keywords: robust multivariate
### ** Examples
## Not run:
##D data(hbk)
##D (out <- smult(hbk[,1:3], monitoring=TRUE))
##D class(out)
##D summary(out)
## End(Not run)
| /data/genthat_extracted_code/fsdaR/examples/smulteda.object.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 317 | r | library(fsdaR)
### Name: smulteda.object
### Title: Description of 'smulteda.object' Objects
### Aliases: smulteda.object
### Keywords: robust multivariate
### ** Examples
## Not run:
##D data(hbk)
##D (out <- smult(hbk[,1:3], monitoring=TRUE))
##D class(out)
##D summary(out)
## End(Not run)
|
#' @title searchDatasets function
#' @description Search for datasets.
#' @details This function requests to \code{POST /datasets/search}.
#' @param host URL of GA4GH API data server.
#' @param nrows Number of rows of the data frame returned by this function.
#' If not defined, the function will return all entries. If ... | /R/searchDatasets.R | no_license | labbcb/GA4GHclient | R | false | false | 1,992 | r | #' @title searchDatasets function
#' @description Search for datasets.
#' @details This function requests to \code{POST /datasets/search}.
#' @param host URL of GA4GH API data server.
#' @param nrows Number of rows of the data frame returned by this function.
#' If not defined, the function will return all entries. If ... |
library(googleway)
key='xxxxxx'
df_places <- google_places(search_string = "warung makan",
location = c(-6.2758903,106.8073032), ## melbourne, AU
key =key)
df_places$results$name
#df_details <- google_place_details(place_id = df_places$results[1, "place_id"],... | /data_collection.R | no_license | tioantawibawa90/kriging | R | false | false | 1,307 | r | library(googleway)
key='xxxxxx'
df_places <- google_places(search_string = "warung makan",
location = c(-6.2758903,106.8073032), ## melbourne, AU
key =key)
df_places$results$name
#df_details <- google_place_details(place_id = df_places$results[1, "place_id"],... |
#' Advanced search for ERDDAP tabledep or griddap datasets
#'
#' @export
#'
#' @param query (character) Search terms
#' @param page (integer) Page number. Default: 1
#' @param page_size (integer) Results per page: Default: 1000
#' @param protocol (character) One of any (default), tabledep or griddap
#' @param cdm_data_... | /R/search_adv.R | permissive | amsilvr/rerddap | R | false | false | 5,744 | r | #' Advanced search for ERDDAP tabledep or griddap datasets
#'
#' @export
#'
#' @param query (character) Search terms
#' @param page (integer) Page number. Default: 1
#' @param page_size (integer) Results per page: Default: 1000
#' @param protocol (character) One of any (default), tabledep or griddap
#' @param cdm_data_... |
#Figure 5.8
#http://www.amazon.com/Lattice-Multivariate-Data-Visualization-Use/dp/0387759689/ref=cm_cr_pr_product_top
require(rCharts)
data(Earthquake, package = "MEMSS")
chart5_8 <- rPlot(
accel ~ distance,
data = Earthquake,
type = 'point',
size = list( const = 2)
)
#get loess for smoothing
smoothing <- da... | /polycharts_versions/figure5_08.R | no_license | arturochian/rCharts_lattice_book | R | false | false | 662 | r | #Figure 5.8
#http://www.amazon.com/Lattice-Multivariate-Data-Visualization-Use/dp/0387759689/ref=cm_cr_pr_product_top
require(rCharts)
data(Earthquake, package = "MEMSS")
chart5_8 <- rPlot(
accel ~ distance,
data = Earthquake,
type = 'point',
size = list( const = 2)
)
#get loess for smoothing
smoothing <- da... |
fitted.fittedloop <- function(object,...){
return(data.frame("input"=object$pred.x,"output"=object$pred.y))
}
| /hysteresis/R/fitted.fittedloop.R | no_license | ingted/R-Examples | R | false | false | 115 | r | fitted.fittedloop <- function(object,...){
return(data.frame("input"=object$pred.x,"output"=object$pred.y))
}
|
\name{LPSNews}
\alias{LPSNews}
\title{Show the NEWS file}
\description{
Show the NEWS file of the LPStimeSeries package.
}
\usage{
LPSNews()
}
%\arguments{
%}
\value{
None.
}
\keyword{classification}
| /man/LPSNews.Rd | no_license | cran/LPStimeSeries | R | false | false | 202 | rd | \name{LPSNews}
\alias{LPSNews}
\title{Show the NEWS file}
\description{
Show the NEWS file of the LPStimeSeries package.
}
\usage{
LPSNews()
}
%\arguments{
%}
\value{
None.
}
\keyword{classification}
|
library(XML)
library(bitops)
library(RCurl)
library(httr)
rm(list=ls(all=TRUE))
Sys.setlocale("LC_ALL", "cht")
yahoourl = "http://www.boxofficemojo.com/yearly/chart/?page="
appendurl_1 = "&view=releasedate&view2=domestic&yr="
appendurl_2 = "&p=.htm"
testurl = ""
testvector = c()
testframe = data.frame()
myHttpheader<... | /TESTSVM/R/1Movie_Parser.R | no_license | bgg11117/USBoxOfficeModel | R | false | false | 2,386 | r | library(XML)
library(bitops)
library(RCurl)
library(httr)
rm(list=ls(all=TRUE))
Sys.setlocale("LC_ALL", "cht")
yahoourl = "http://www.boxofficemojo.com/yearly/chart/?page="
appendurl_1 = "&view=releasedate&view2=domestic&yr="
appendurl_2 = "&p=.htm"
testurl = ""
testvector = c()
testframe = data.frame()
myHttpheader<... |
\alias{gdkScreenGetMonitorAtPoint}
\name{gdkScreenGetMonitorAtPoint}
\title{gdkScreenGetMonitorAtPoint}
\description{Returns the monitor number in which the point (\code{x},\code{y}) is located.}
\usage{gdkScreenGetMonitorAtPoint(object, x, y)}
\arguments{
\item{\verb{object}}{a \code{\link{GdkScreen}}.}
\item{\verb{x}... | /RGtk2/man/gdkScreenGetMonitorAtPoint.Rd | no_license | lawremi/RGtk2 | R | false | false | 673 | rd | \alias{gdkScreenGetMonitorAtPoint}
\name{gdkScreenGetMonitorAtPoint}
\title{gdkScreenGetMonitorAtPoint}
\description{Returns the monitor number in which the point (\code{x},\code{y}) is located.}
\usage{gdkScreenGetMonitorAtPoint(object, x, y)}
\arguments{
\item{\verb{object}}{a \code{\link{GdkScreen}}.}
\item{\verb{x}... |
#!/usr/bin/env Rscript
load_success = TRUE
load_success = load_success && library(KEGGREST, quietly=TRUE, logical.return=TRUE)
load_success = load_success && library(KEGGgraph, quietly=TRUE, logical.return=TRUE)
load_success = load_success && library(graph, quietly=TRUE, logical.return=TRUE)
load_success = load_success... | /script/kegg.R | permissive | gitter-lab/prmf | R | false | false | 10,566 | r | #!/usr/bin/env Rscript
load_success = TRUE
load_success = load_success && library(KEGGREST, quietly=TRUE, logical.return=TRUE)
load_success = load_success && library(KEGGgraph, quietly=TRUE, logical.return=TRUE)
load_success = load_success && library(graph, quietly=TRUE, logical.return=TRUE)
load_success = load_success... |
#' Create Time from Vectors
#'
#' Pass vectors of hour, minute and second values to create a time object.
#'
#' @param hour An integer of the hour between 0 and 23.The default value is hour
#' zero.
#' @param minute An integer of the minute between 0 to 59. The default value is
#' minute zero.
#' @param second An i... | /R/time-from-ints.R | permissive | poissonconsulting/dttr2 | R | false | false | 1,529 | r | #' Create Time from Vectors
#'
#' Pass vectors of hour, minute and second values to create a time object.
#'
#' @param hour An integer of the hour between 0 and 23.The default value is hour
#' zero.
#' @param minute An integer of the minute between 0 to 59. The default value is
#' minute zero.
#' @param second An i... |
# Purpose: Get shapefile for US states from US Census Bureau.
# Read shapefile using Simple Features (sf) package
# (automatically loads rgdal package).
#library(sf)
# In browser, right-click the file link, select Copy Link Location
# URL: https://www2.census.gov/geo/tiger/TIGER2019/STATE/
# Accessed on 10/2... | /4a-COVID19_load_shapefile.R | permissive | savethecathode/COVID-19 | R | false | false | 1,074 | r | # Purpose: Get shapefile for US states from US Census Bureau.
# Read shapefile using Simple Features (sf) package
# (automatically loads rgdal package).
#library(sf)
# In browser, right-click the file link, select Copy Link Location
# URL: https://www2.census.gov/geo/tiger/TIGER2019/STATE/
# Accessed on 10/2... |
spacetime.interpolate.inla = function( ip=NULL, p, debugrun=FALSE ) {
#\\ generic spatial and space-time interpolator using inla
#\\ parameter and data requirements can be seen in bathymetry\src\bathymetry.r
#\\ note this can run in parallel and serial mode
# ip is the first parameter passed in... | /spacetime/src/_Rfunctions/spacetime.methods/spacetime.interpolate.inla.r | no_license | fernandomayer/ecomod | R | false | false | 16,591 | r |
spacetime.interpolate.inla = function( ip=NULL, p, debugrun=FALSE ) {
#\\ generic spatial and space-time interpolator using inla
#\\ parameter and data requirements can be seen in bathymetry\src\bathymetry.r
#\\ note this can run in parallel and serial mode
# ip is the first parameter passed in... |
################################################
########## VECTOR MAKER MODIFIED ##############
################################################
########## ALSO MATRIX MAKER ##############
################################################
## Modify your vector makers (or use mine from
## previous day) and modify... | /Vector-matrix-makers-exercises.R | no_license | schwarzm3283/udemy_course | R | false | false | 1,868 | r | ################################################
########## VECTOR MAKER MODIFIED ##############
################################################
########## ALSO MATRIX MAKER ##############
################################################
## Modify your vector makers (or use mine from
## previous day) and modify... |
library(shiny)
library(dplyr)
library(plotly)
library(ggplot2)
library(maps)
library(ggplot2)
library(mapproj)
library(RColorBrewer)
library(devtools)
library(shinythemes)
library(shinyWidgets)
navbarPage(
theme = shinytheme("cerulean"),
#==================the first page============================
"shiny pro... | /ui.R | no_license | JialanZ/Shiny_Project_JialanZ | R | false | false | 6,089 | r | library(shiny)
library(dplyr)
library(plotly)
library(ggplot2)
library(maps)
library(ggplot2)
library(mapproj)
library(RColorBrewer)
library(devtools)
library(shinythemes)
library(shinyWidgets)
navbarPage(
theme = shinytheme("cerulean"),
#==================the first page============================
"shiny pro... |
# data <- f_ratios()
east_west <- function(data){
#Northeast Species
ne.species <- c('atlantic cod gulf of maine', 'atlantic cod georges bank', 'american plaice nafo-5yz',
'white hake georges bank / gulf of maine', 'acadian redfish gulf of maine / georges bank',
'witch flounder nafo-5y', 'pollock n... | /R/east_west.r | no_license | peterkuriyama/mrag_indicators | R | false | false | 1,317 | r | # data <- f_ratios()
east_west <- function(data){
#Northeast Species
ne.species <- c('atlantic cod gulf of maine', 'atlantic cod georges bank', 'american plaice nafo-5yz',
'white hake georges bank / gulf of maine', 'acadian redfish gulf of maine / georges bank',
'witch flounder nafo-5y', 'pollock n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_moments.R
\name{calc_moments}
\alias{calc_moments}
\title{Find Standardized Cumulants of Data by Method of Moments}
\usage{
calc_moments(x)
}
\arguments{
\item{x}{a vector of data}
}
\value{
A vector of the mean, standard deviation, skew... | /man/calc_moments.Rd | no_license | shaoyoucheng/SimMultiCorrData | R | false | true | 1,907 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_moments.R
\name{calc_moments}
\alias{calc_moments}
\title{Find Standardized Cumulants of Data by Method of Moments}
\usage{
calc_moments(x)
}
\arguments{
\item{x}{a vector of data}
}
\value{
A vector of the mean, standard deviation, skew... |
library(here)
library(data.table)
download_weather = function(){
variables = c("cld", "dtr", "frs", "pet", "pre", "tmn", "tmp", "tmx", "vap", "wet")
periods = c("1981.1990", "1991.2000", "2001.2010", "2011.2017")
to_download =
data.table(
expand.grid(
variable = variables,
period... | /scripts/data processing/download_weather.R | no_license | berkeleycoffeefarming/coffee_price | R | false | false | 1,035 | r | library(here)
library(data.table)
download_weather = function(){
variables = c("cld", "dtr", "frs", "pet", "pre", "tmn", "tmp", "tmx", "vap", "wet")
periods = c("1981.1990", "1991.2000", "2001.2010", "2011.2017")
to_download =
data.table(
expand.grid(
variable = variables,
period... |
\name{preference}
\alias{preference}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Decision on preferences between loss distributions
}
\description{
This function implements the total ordering on losses, based on treating the moment sequences as hyperreal numbers, and returns the lesser... | /man/preference.Rd | no_license | cran/HyRiM | R | false | false | 3,233 | rd | \name{preference}
\alias{preference}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Decision on preferences between loss distributions
}
\description{
This function implements the total ordering on losses, based on treating the moment sequences as hyperreal numbers, and returns the lesser... |
ABCanalysis=function(Data,PlotIt,ABCcurvedata){
# abcres = ABCanalysis(Data=ABCcleanData(Data)$CleanedData)
# divide the Data in 3 classes A, B,C
# A==Data(Aind) : mit wenig aufwand viel ertrag!
# B==Data(Bind) : Aufwand und ertrag halten sich die Waage
# C==Data(Cind) : viel Aufwand, wenig Ertrag
#
# Grenzzieh... | /ABCanalysis/R/ABCanalysis.R | no_license | ingted/R-Examples | R | false | false | 5,205 | r | ABCanalysis=function(Data,PlotIt,ABCcurvedata){
# abcres = ABCanalysis(Data=ABCcleanData(Data)$CleanedData)
# divide the Data in 3 classes A, B,C
# A==Data(Aind) : mit wenig aufwand viel ertrag!
# B==Data(Bind) : Aufwand und ertrag halten sich die Waage
# C==Data(Cind) : viel Aufwand, wenig Ertrag
#
# Grenzzieh... |
################
# function to do the NCA estimation.
# This function is called in the next defined function below.
################
nca.choice <- function(data,pk=NULL,time=NULL,id=NULL,ds=NULL,
grp=NULL,dtype=NULL,auc=c(0,24),route=RouAd,method="linear-log",
tau=24,dur... | /NCAhelpers.R | no_license | fostvedt/Shiny_ncappc | R | false | false | 5,773 | r |
################
# function to do the NCA estimation.
# This function is called in the next defined function below.
################
nca.choice <- function(data,pk=NULL,time=NULL,id=NULL,ds=NULL,
grp=NULL,dtype=NULL,auc=c(0,24),route=RouAd,method="linear-log",
tau=24,dur... |
cacheInvMatrix <- function(m = matrix()) {
setwd("D:/Documents/Academic/R")
InverseMatrix <- solve(m) # time-consuming matrix inversion
saveRDS(InverseMatrix, file = "inverse.Rds") # save the file
# I can then call the inverse matrix from another function
if (file.exists("inverse.Rds")) {
InverseMatrix <-... | /cacheInvMatrix.R | no_license | bobcrossau/pollutantmean | R | false | false | 703 | r | cacheInvMatrix <- function(m = matrix()) {
setwd("D:/Documents/Academic/R")
InverseMatrix <- solve(m) # time-consuming matrix inversion
saveRDS(InverseMatrix, file = "inverse.Rds") # save the file
# I can then call the inverse matrix from another function
if (file.exists("inverse.Rds")) {
InverseMatrix <-... |
context("Basic Function I/O Tests\n")
cat(paste0("[Unit Test] Testing basic function I/O.\n"))
test_that("Cannot sample features greater than features/columns.", {
expect_error(sampleRegressionData(
matrix(0.0, nrow = 10, ncol = 100),
matrix(0.0, nrow = 10, ncol = 1), 101,
importance_measur... | /RandomLasso/tests/testthat/test_assertions.R | no_license | jamesmatthewhamilton/Random-Regression | R | false | false | 523 | r | context("Basic Function I/O Tests\n")
cat(paste0("[Unit Test] Testing basic function I/O.\n"))
test_that("Cannot sample features greater than features/columns.", {
expect_error(sampleRegressionData(
matrix(0.0, nrow = 10, ncol = 100),
matrix(0.0, nrow = 10, ncol = 1), 101,
importance_measur... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{tbl_behav_dive}
\alias{tbl_behav_dive}
\title{Dive Behavior Data (processed)}
\format{An object of class \code{"data.frame"};}
\usage{
data(tbl_behav_dive)
}
\description{
Processed dive behavior data from satellit... | /man/tbl_behav_dive.Rd | no_license | jmlondon/aleutpvdata | R | false | true | 428 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{tbl_behav_dive}
\alias{tbl_behav_dive}
\title{Dive Behavior Data (processed)}
\format{An object of class \code{"data.frame"};}
\usage{
data(tbl_behav_dive)
}
\description{
Processed dive behavior data from satellit... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotElasticNet.R
\name{plotElasticNet}
\alias{plotElasticNet}
\title{Plot elastic net results}
\usage{
plotElasticNet(
drugName,
weights,
drugAct,
molDb,
numCellLines,
numFeatures = 10,
featureAnnotations = NULL,
showCellLineL... | /man/plotElasticNet.Rd | no_license | CBIIT/rcellminerElasticNet | R | false | true | 3,202 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotElasticNet.R
\name{plotElasticNet}
\alias{plotElasticNet}
\title{Plot elastic net results}
\usage{
plotElasticNet(
drugName,
weights,
drugAct,
molDb,
numCellLines,
numFeatures = 10,
featureAnnotations = NULL,
showCellLineL... |
# setwd("/home/johannes/Documents/hhh4predict/Theory/Article_Theory/data_analysis_forecasting/")
setwd("dengue")
# load packages:
library(surveillance)
library(hhh4addon)
library(glarma)
source("../auxiliary_functions_glarma.R")
# create folder structure if necessary:
list.dirs()
dir.create("model_fits")
dir.create(p... | /dengue/glarma_forecasting_dengue.R | no_license | MartinPDLE/Thesis-Code | R | false | false | 4,344 | r | # setwd("/home/johannes/Documents/hhh4predict/Theory/Article_Theory/data_analysis_forecasting/")
setwd("dengue")
# load packages:
library(surveillance)
library(hhh4addon)
library(glarma)
source("../auxiliary_functions_glarma.R")
# create folder structure if necessary:
list.dirs()
dir.create("model_fits")
dir.create(p... |
#
# 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/
# Update to github and deploy onto Shinyapps.Io
#
#
#
library(shiny)
library(shinydashboard)
library(shinythemes)... | /app.R | no_license | rjolicoe/nba_stats | R | false | false | 2,743 | 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/
# Update to github and deploy onto Shinyapps.Io
#
#
#
library(shiny)
library(shinydashboard)
library(shinythemes)... |
#' IBD UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_IBD_ui <- function(id){
ns <- NS(id)
# Options for Spinner
#options(spinner.color="#0275D8", spinner.color.background="#ffffff", spinner.... | /R/mod_IBD.R | permissive | srravula1/FielDHub | R | false | false | 9,668 | r | #' IBD UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_IBD_ui <- function(id){
ns <- NS(id)
# Options for Spinner
#options(spinner.color="#0275D8", spinner.color.background="#ffffff", spinner.... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' Amazon Honeycode
#'
#' @description
#' Amazon Honeycode is a fully managed service that allows you to quickly
#' build mobile and web apps for teams---without programming. Build
#' Hon... | /paws/R/honeycode_service.R | permissive | jcheng5/paws | R | false | false | 2,322 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' Amazon Honeycode
#'
#' @description
#' Amazon Honeycode is a fully managed service that allows you to quickly
#' build mobile and web apps for teams---without programming. Build
#' Hon... |
library(glmnet)
mydata = read.table("./TrainingSet/Correlation/NSCLC.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.45,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/NSCLC/NSCLC_056.txt',appe... | /Model/EN/Correlation/NSCLC/NSCLC_056.R | no_license | leon1003/QSMART | R | false | false | 358 | r | library(glmnet)
mydata = read.table("./TrainingSet/Correlation/NSCLC.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.45,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/NSCLC/NSCLC_056.txt',appe... |
# R Programming Lab (Resampling methods)
# Adapted from ISLR Chapter 5 Lab
require(ISLR)
require(boot)
?Auto
attach(Auto) # continuous in variables on both sides
plot(mpg~horsepower,data=Auto)
plot(mpg, horsepower, pch=16, col="dodgerblue", cex=1,xlab="mpg",ylab="Horsepower")
#CV
set.seed(1)
train=sample(392,196)
N... | /labs/Lab08.R | no_license | datageneration/knowledgemining | R | false | false | 1,622 | r | # R Programming Lab (Resampling methods)
# Adapted from ISLR Chapter 5 Lab
require(ISLR)
require(boot)
?Auto
attach(Auto) # continuous in variables on both sides
plot(mpg~horsepower,data=Auto)
plot(mpg, horsepower, pch=16, col="dodgerblue", cex=1,xlab="mpg",ylab="Horsepower")
#CV
set.seed(1)
train=sample(392,196)
N... |
#' Calculates the Riemannian distance between two superimposed landmark
#' configs.
#'
#' Calculates the Riemannian distance between two superimposed landmark
#' configs.
#'
#'
#' @param x Matrix containing landmark coordinates.
#' @param y Matrix containing landmark coordinates.
#' @return returns Riemannian distan... | /R/kendalldist.r | no_license | jefferis/Morpho | R | false | false | 1,325 | r | #' Calculates the Riemannian distance between two superimposed landmark
#' configs.
#'
#' Calculates the Riemannian distance between two superimposed landmark
#' configs.
#'
#'
#' @param x Matrix containing landmark coordinates.
#' @param y Matrix containing landmark coordinates.
#' @return returns Riemannian distan... |
# Tools to make it run
deparse_all <- function(x) {
deparse2 <- function(x) paste(deparse(x, width.cutoff = 500L), collapse = "")
vapply(x, deparse2, FUN.VALUE = character(1))
}
dt_env <- function(dt, env) {
env <- new.env(parent = env, size = 2L)
env$dt <- dt
env$vars <- deparse_all(groups(dt))
env... | /R/mutate_if.r | no_license | arturochian/dplyrExtras | R | false | false | 4,431 | r |
# Tools to make it run
deparse_all <- function(x) {
deparse2 <- function(x) paste(deparse(x, width.cutoff = 500L), collapse = "")
vapply(x, deparse2, FUN.VALUE = character(1))
}
dt_env <- function(dt, env) {
env <- new.env(parent = env, size = 2L)
env$dt <- dt
env$vars <- deparse_all(groups(dt))
env... |
## The functions avoid repeated computations of inverse of an invertible matrix
## by caching it.
## This function creates a special matrix object to cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
... | /cachematrix.R | no_license | pankajsbi/ProgrammingAssignment2 | R | false | false | 1,057 | r | ## The functions avoid repeated computations of inverse of an invertible matrix
## by caching it.
## This function creates a special matrix object to cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
... |
dt <- 0.01
Nstep <- 10000
k1 <- 0.1
lambda1 <- 1.0
lambda2 <- 0.5
k2 <- 0.2
Ncell <- 600
F0 <- 0.1
p0 <- 0.7
## F0 <- 0.8
## p0 <- 0.8
ec <- 1.6
sig1 <- 0
sig2 <- 0
alpha <- 0.5
sig <- 0.0
thetabarList <- NULL
for (nsample in seq(1))
{
e <- seq(1.2, 1.2, length.out=Ncell)
theta <- runif(Ncell, -pi... | /MeanFieldModel/regu1.r | permissive | hydrays/CellModel | R | false | false | 2,797 | r | dt <- 0.01
Nstep <- 10000
k1 <- 0.1
lambda1 <- 1.0
lambda2 <- 0.5
k2 <- 0.2
Ncell <- 600
F0 <- 0.1
p0 <- 0.7
## F0 <- 0.8
## p0 <- 0.8
ec <- 1.6
sig1 <- 0
sig2 <- 0
alpha <- 0.5
sig <- 0.0
thetabarList <- NULL
for (nsample in seq(1))
{
e <- seq(1.2, 1.2, length.out=Ncell)
theta <- runif(Ncell, -pi... |
#' Summarize a Pmetrics Percent Target Attainment Object
#'
#' Summarize target statistics and success proportions in a PMpta object made by \code{\link{makePTA}}.
#'
#' @title Summarize Percent Target Attainment
#' @method summary PMpta
#' @param object A PMpta object made by \code{\link{makePTA}}.
#' @param \dots Oth... | /Pmetrics/R/summaryPMpta.R | no_license | nickibeaks/Pmetrics | R | false | false | 971 | r | #' Summarize a Pmetrics Percent Target Attainment Object
#'
#' Summarize target statistics and success proportions in a PMpta object made by \code{\link{makePTA}}.
#'
#' @title Summarize Percent Target Attainment
#' @method summary PMpta
#' @param object A PMpta object made by \code{\link{makePTA}}.
#' @param \dots Oth... |
cholera<-read.csv(file.choose(),header = TRUE)
blood_vidal<-read.csv(file.choose(),header = TRUE)
malaria<-read.csv(file.choose(),header = TRUE)
dengue<-read.csv(file.choose(),header = TRUE)
swine_flu<-read.csv(file.choose(),header = TRUE)
par(mfrow=c(2,3))
plot(cholera$month.year,cholera$Count,xlab="month",yla... | /both line and dot scatterplot.R | no_license | RAGAVARTHINI/R-final-year-project | R | false | false | 705 | r | cholera<-read.csv(file.choose(),header = TRUE)
blood_vidal<-read.csv(file.choose(),header = TRUE)
malaria<-read.csv(file.choose(),header = TRUE)
dengue<-read.csv(file.choose(),header = TRUE)
swine_flu<-read.csv(file.choose(),header = TRUE)
par(mfrow=c(2,3))
plot(cholera$month.year,cholera$Count,xlab="month",yla... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/external_API.R
\name{spot_munge}
\alias{spot_munge}
\title{Grab relevant columns from data-frame of SPOT API call}
\usage{
spot_munge(df)
}
\description{
Grab relevant columns from data-frame of SPOT API call
}
| /man/spot_munge.Rd | no_license | evmo/gpsr | R | false | true | 289 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/external_API.R
\name{spot_munge}
\alias{spot_munge}
\title{Grab relevant columns from data-frame of SPOT API call}
\usage{
spot_munge(df)
}
\description{
Grab relevant columns from data-frame of SPOT API call
}
|
# Define the 'Deck' class
setClass("Deck",
slots = list(cards = "list"))
# Let's create a constructor function for 'Deck'
Deck <- function(suits = SUITS, ranks = RANKS, num_suits = 1) {
cards <- list()
i <- 1
for (n in 1:num_suits) {
for (s in suits) {
for (r in ranks) {
card <- Card(... | /R/ss-deck.R | no_license | loudermilk/spider-solitaire | R | false | false | 1,831 | r | # Define the 'Deck' class
setClass("Deck",
slots = list(cards = "list"))
# Let's create a constructor function for 'Deck'
Deck <- function(suits = SUITS, ranks = RANKS, num_suits = 1) {
cards <- list()
i <- 1
for (n in 1:num_suits) {
for (s in suits) {
for (r in ranks) {
card <- Card(... |
# TODO: explore effects of di_drygals, dist_eit, dist_250
#
# Author: lsalas
###############################################################################
#load the data
library(XLConnect)
library(ggplot2)
#we will change this path to connect directly to GitHub when we are done, so any user can just cop... | /HabitatSuitability.R | no_license | leosalas/WeddellSeal_SOS | R | false | false | 21,608 | r | # TODO: explore effects of di_drygals, dist_eit, dist_250
#
# Author: lsalas
###############################################################################
#load the data
library(XLConnect)
library(ggplot2)
#we will change this path to connect directly to GitHub when we are done, so any user can just cop... |
# clear variables and close windows
rm(list = ls(all = TRUE))
graphics.off()
# install and load packages
libraries = c("stats")
lapply(libraries, function(x) if (!(x %in% installed.packages())) {
install.packages(x)
})
lapply(libraries, library, quietly = TRUE, character.only = TRUE)
# parameter settings
n1 = ... | /QID-1284-SFEplotma1/SFEplotma1.R | no_license | QuantLet/SFE | R | false | false | 881 | r |
# clear variables and close windows
rm(list = ls(all = TRUE))
graphics.off()
# install and load packages
libraries = c("stats")
lapply(libraries, function(x) if (!(x %in% installed.packages())) {
install.packages(x)
})
lapply(libraries, library, quietly = TRUE, character.only = TRUE)
# parameter settings
n1 = ... |
cat("\nLoading generic utility helper functions...\n")
# Formatting options for script generation (tabbing options):
#------------------------------------------------------------
add.tab <- function() {
invisible(assign("m.tab",
get("m.tab") + 1L,
envir = .GlobalEnv))
}
remove... | /R_Codes/src/r/02_formatting.helpers.R | no_license | ttuti/MSc.Dissertation | R | false | false | 1,596 | r | cat("\nLoading generic utility helper functions...\n")
# Formatting options for script generation (tabbing options):
#------------------------------------------------------------
add.tab <- function() {
invisible(assign("m.tab",
get("m.tab") + 1L,
envir = .GlobalEnv))
}
remove... |
### Function to select samples based on date criteria
# Author: Jennifer Baltzegar - jen_baltzegar@ncsu.edu
# Started: 14 Sep 2017
# Last Edited: 14 Sep 2017
################################################################################
### Prepare working environment
# clear working environment
rm(list = ls())
##... | /function_dateSubset.R | no_license | mrvella/IQTmosq | R | false | false | 1,481 | r | ### Function to select samples based on date criteria
# Author: Jennifer Baltzegar - jen_baltzegar@ncsu.edu
# Started: 14 Sep 2017
# Last Edited: 14 Sep 2017
################################################################################
### Prepare working environment
# clear working environment
rm(list = ls())
##... |
#Load Data
rm(list = ls())
library(foreign)
library(haven)
library(dbarts)
library(ggplot2)
library(tibble)
library(broom)
library(margins)
library(Ecdat)
library(ggeffects)
library(dplyr)
library(dotwhisker)
study_rt<- read.dta("RTMachon_Jan2019.dta")
glimpse(study_rt)
study_rt <-
study_rt %>%
select(cynic... | /RT_BART Script.R | no_license | AleksandrFish/Demonizing-the-Enemy | R | false | false | 5,997 | r | #Load Data
rm(list = ls())
library(foreign)
library(haven)
library(dbarts)
library(ggplot2)
library(tibble)
library(broom)
library(margins)
library(Ecdat)
library(ggeffects)
library(dplyr)
library(dotwhisker)
study_rt<- read.dta("RTMachon_Jan2019.dta")
glimpse(study_rt)
study_rt <-
study_rt %>%
select(cynic... |
# 07 November 2016
# Eva C. Serrano
#24 October 2016
# Eva C. Serrano Balderas
# clean up:
rm(list = ls())
setwd("G:/Documents/Doctorado/Tesis/Informatics/R_Scripts/SyntecData/src/")
unlink(dir("./data/"))
library(dplyr)
library(plyr)
source ("FeatureSelection.R")
#Imputation of missing values
# rea... | /src/FS_processing.R | no_license | mina2796/Ensayo | R | false | false | 1,865 | r | # 07 November 2016
# Eva C. Serrano
#24 October 2016
# Eva C. Serrano Balderas
# clean up:
rm(list = ls())
setwd("G:/Documents/Doctorado/Tesis/Informatics/R_Scripts/SyntecData/src/")
unlink(dir("./data/"))
library(dplyr)
library(plyr)
source ("FeatureSelection.R")
#Imputation of missing values
# rea... |
library("ggplot2")
setwd("~/Desktop/datasciencecoursera/4_Exploratory_Data_Analysis/project2")
path <- getwd()
download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
, destfile = paste(path, "dataFiles.zip", sep = "/"))
unzip(zipfile = "dataFiles.zip")
# Load the NEI & ... | /Exploratory Data Analysis/Week4/Project2/plot3.R | no_license | AhmedFakhry47/DataScience-Specialization-With-R-JohnHopkinsUniversity | R | false | false | 923 | r | library("ggplot2")
setwd("~/Desktop/datasciencecoursera/4_Exploratory_Data_Analysis/project2")
path <- getwd()
download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
, destfile = paste(path, "dataFiles.zip", sep = "/"))
unzip(zipfile = "dataFiles.zip")
# Load the NEI & ... |
# Exhibit 3.1
# time(rwalk) yields a time series of the time epoches when the random walk was sampled.
data(rwalk)
model1=lm(rwalk~time(rwalk))
summary(model1)
# Exhibit 3.2
win.graph(width=4.875, height=2.5,pointsize=8)
# rwalk contains a simulated random walk
plot(rwalk,type='o',ylab='y')
abline(model1) # ... | /Time_Series_Analysis_with_Applications_in_R/scripts/chap3.R | no_license | burakbayramli/books | R | false | false | 2,540 | r | # Exhibit 3.1
# time(rwalk) yields a time series of the time epoches when the random walk was sampled.
data(rwalk)
model1=lm(rwalk~time(rwalk))
summary(model1)
# Exhibit 3.2
win.graph(width=4.875, height=2.5,pointsize=8)
# rwalk contains a simulated random walk
plot(rwalk,type='o',ylab='y')
abline(model1) # ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/communication.R
\name{.h2o.doRawGET}
\alias{.h2o.doRawGET}
\title{Perform a low-level HTTP GET operation on an H2O instance}
\usage{
.h2o.doRawGET(conn = h2o.getConnection(), h2oRestApiVersion, urlSuffix,
parms, ...)
}
\arguments{
\item{con... | /man/dot-h2o.doRawGET.Rd | no_license | Libardo1/h2o | R | false | true | 1,508 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/communication.R
\name{.h2o.doRawGET}
\alias{.h2o.doRawGET}
\title{Perform a low-level HTTP GET operation on an H2O instance}
\usage{
.h2o.doRawGET(conn = h2o.getConnection(), h2oRestApiVersion, urlSuffix,
parms, ...)
}
\arguments{
\item{con... |
### SET THE ROOT DIRECTORY
### SET THE ROOT DIRECTORY
prog.num <- 8
## Start by loading the T0 dataset, which should also contain the event times, statin times and censoring times
## T0
data_T0 <- read.table("data/CSV2017/analysis_dataset_female_T0.csv",header=TRUE, sep = ",")
## For now all I am interested in is t... | /code/MSM_analyses/fp0.8_derive_outcome_variables8_female.R | no_license | alexpate30/An-assessment-of-the-potental-miscalibration | R | false | false | 3,556 | r | ### SET THE ROOT DIRECTORY
### SET THE ROOT DIRECTORY
prog.num <- 8
## Start by loading the T0 dataset, which should also contain the event times, statin times and censoring times
## T0
data_T0 <- read.table("data/CSV2017/analysis_dataset_female_T0.csv",header=TRUE, sep = ",")
## For now all I am interested in is t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_blueprints}
\alias{lightsail_get_blueprints}
\title{Returns the list of available instance images, or \emph{blueprints}}
\usage{
lightsail_get_blueprints(includeInactive, pageToken)
}
\arguments{
\it... | /paws/man/lightsail_get_blueprints.Rd | permissive | johnnytommy/paws | R | false | true | 1,300 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_blueprints}
\alias{lightsail_get_blueprints}
\title{Returns the list of available instance images, or \emph{blueprints}}
\usage{
lightsail_get_blueprints(includeInactive, pageToken)
}
\arguments{
\it... |
# Load libraries
require(pacman)
pacman::p_load(raster, rgdal, rgeos, stringr, velox, dismo, usdm, gtools, tidyverse, rJava)
g <- gc(reset = TRUE)
rm(list = ls())
options(scipen = 999,
stringsAsFactors = FALSE)
options(java.parameters = '-Xmx4g')
# Functions to use
dup_cell <- function(mask, df){
cellNum... | /01_maxentModel.R | no_license | fabiolexcastro/Modelacion-oso-de-anteojos | R | false | false | 6,115 | r |
# Load libraries
require(pacman)
pacman::p_load(raster, rgdal, rgeos, stringr, velox, dismo, usdm, gtools, tidyverse, rJava)
g <- gc(reset = TRUE)
rm(list = ls())
options(scipen = 999,
stringsAsFactors = FALSE)
options(java.parameters = '-Xmx4g')
# Functions to use
dup_cell <- function(mask, df){
cellNum... |
# TOOL metabarcoding-rarecurve-alpha.R: "Sequence numbers, rarefaction curve and alpha diversity estimates" (Lists per-sample sequence numbers, plots rarefaction curves and tabulates alpha diversity estimates \(observed no. of OTUs, Chao1 and Shannon indices, and Pielou's evenness\) and calculates means of them if the ... | /tools/ngs/R/metabarcoding-rarecurve-alpha.R | permissive | oheil/chipster-tools | R | false | false | 8,073 | r | # TOOL metabarcoding-rarecurve-alpha.R: "Sequence numbers, rarefaction curve and alpha diversity estimates" (Lists per-sample sequence numbers, plots rarefaction curves and tabulates alpha diversity estimates \(observed no. of OTUs, Chao1 and Shannon indices, and Pielou's evenness\) and calculates means of them if the ... |
url <- function(origin, destination, key, mode = "driving", language = "fr",
units = "metric", region = "nz", return.call = "json") {
root <- "https://maps.googleapis.com/maps/api/directions/"
u <- paste0(root, return.call,
"?origin=", origin,
"&destination=", destination... | /google-map-direction.R | permissive | strategist922/shiny-book-trip | R | false | false | 2,847 | r | url <- function(origin, destination, key, mode = "driving", language = "fr",
units = "metric", region = "nz", return.call = "json") {
root <- "https://maps.googleapis.com/maps/api/directions/"
u <- paste0(root, return.call,
"?origin=", origin,
"&destination=", destination... |
#Transforming skewed data
#import csv file from desktop
xskew<-read.csv("~/Desktop/xskew.csv")
View(xskew)
x<-xskew[,2]
View(x)
hist(x)
#As we can see negative skew, lets square the numbers
x2<-x^2
View(x2)
hist(x2)
boxplot(x2)
#the square reduced some outliers but didnot remove it
#lets take 4th power to remove the... | /RemoveOutliersUsingR.R | no_license | anjalimutha/RemoveOutliersUsingR | R | false | false | 380 | r | #Transforming skewed data
#import csv file from desktop
xskew<-read.csv("~/Desktop/xskew.csv")
View(xskew)
x<-xskew[,2]
View(x)
hist(x)
#As we can see negative skew, lets square the numbers
x2<-x^2
View(x2)
hist(x2)
boxplot(x2)
#the square reduced some outliers but didnot remove it
#lets take 4th power to remove the... |
#Workspace
getwd()
setwd('E:/IIM/BABD_B3 docs/') #Sets the working directory to C: Drive
#Chapter 3 Datastructures in R
#Type of Data Structures
#Vectors - We already covered it in chapter 2
#Lists
#Data Frames
#Matrices
#Typecasting Data Structures
#####################################################... | /Chap3 Datastructures in R.R | no_license | ManoharIIMK/Machine-Learning-in-R | R | false | false | 6,667 | r | #Workspace
getwd()
setwd('E:/IIM/BABD_B3 docs/') #Sets the working directory to C: Drive
#Chapter 3 Datastructures in R
#Type of Data Structures
#Vectors - We already covered it in chapter 2
#Lists
#Data Frames
#Matrices
#Typecasting Data Structures
#####################################################... |
# Exercise 1: Shiny basics
# Install and load the `shiny` package
#install.packages("shiny")
library(shiny)
# Define a new `ui` variable. This variable should be assigned a `fluidPage()` layout
# The `fluidPage()` layout should be passed the following:
ui <- fluidPage(titlePanel("Cost Calculator"),
... | /exercise-2/app.R | permissive | rsr3rs/ch16-shiny | R | false | false | 1,621 | r | # Exercise 1: Shiny basics
# Install and load the `shiny` package
#install.packages("shiny")
library(shiny)
# Define a new `ui` variable. This variable should be assigned a `fluidPage()` layout
# The `fluidPage()` layout should be passed the following:
ui <- fluidPage(titlePanel("Cost Calculator"),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/index_volatility_arbitrage.R
\name{compute_index_weights}
\alias{compute_index_weights}
\title{Print "Compute Index Weights"}
\usage{
compute_index_weights(marketCapitalizations)
}
\arguments{
\item{marketCapitalizations}{: a vector of market... | /man/compute_index_weights.Rd | no_license | Amuraivel/tradeMaster | R | false | true | 554 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/index_volatility_arbitrage.R
\name{compute_index_weights}
\alias{compute_index_weights}
\title{Print "Compute Index Weights"}
\usage{
compute_index_weights(marketCapitalizations)
}
\arguments{
\item{marketCapitalizations}{: a vector of market... |
out<-read.csv("par_value_model_run.csv") | /demo/demo_WIN/SHIMMER_vPARAMS/extra scripts/read.csv.files.R | no_license | jbradley8365/2016_17_SHIMMER_demo | R | false | false | 40 | r | out<-read.csv("par_value_model_run.csv") |
library(ca)
# mca - indicator matrix, Burt matrix
haireye <- margin.table(HairEyeColor, 1:2)
haireye.df <- as.data.frame(haireye)
dummy.hair <- 0+outer(haireye.df$Hair, levels(haireye.df$Hair), `==`)
colnames(dummy.hair) <- paste0('h', 1:4)
dummy.eye <- 0+outer(haireye.df$Eye, levels(haireye.df$Eye), `==`)
colnames... | /ch06/R/mca-Burt.R | no_license | friendly/VCDR | R | false | false | 1,893 | r | library(ca)
# mca - indicator matrix, Burt matrix
haireye <- margin.table(HairEyeColor, 1:2)
haireye.df <- as.data.frame(haireye)
dummy.hair <- 0+outer(haireye.df$Hair, levels(haireye.df$Hair), `==`)
colnames(dummy.hair) <- paste0('h', 1:4)
dummy.eye <- 0+outer(haireye.df$Eye, levels(haireye.df$Eye), `==`)
colnames... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cn_grn.R
\name{cn_extractRegsDF}
\alias{cn_extractRegsDF}
\title{extracts the TRs, zscores, and corr values passing thresh}
\usage{
cn_extractRegsDF(zscores, corrMatrix, genes, threshold)
}
\arguments{
\item{zscores, }{# zscore matrix, non-TF... | /man/cn_extractRegsDF.Rd | permissive | edroaldo/CellNet | R | false | true | 642 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cn_grn.R
\name{cn_extractRegsDF}
\alias{cn_extractRegsDF}
\title{extracts the TRs, zscores, and corr values passing thresh}
\usage{
cn_extractRegsDF(zscores, corrMatrix, genes, threshold)
}
\arguments{
\item{zscores, }{# zscore matrix, non-TF... |
\name{sticky}
\alias{sticky}
\docType{data}
\title{Stickiness of blood data}
\description{
Data on stickiness of blood for six subjects
}
\usage{data(sticky)}
\format{
A data frame with 42 observations on the following 2 variables.
\describe{
\item{subject}{factor with levels 1--6}
\item{y}{measurement of a... | /man/sticky.Rd | no_license | cran/SMPracticals | R | false | false | 612 | rd | \name{sticky}
\alias{sticky}
\docType{data}
\title{Stickiness of blood data}
\description{
Data on stickiness of blood for six subjects
}
\usage{data(sticky)}
\format{
A data frame with 42 observations on the following 2 variables.
\describe{
\item{subject}{factor with levels 1--6}
\item{y}{measurement of a... |
trips <- read.csv("foraging_trip_info_filtered_july2015.csv",
header = TRUE)
str(trips)
# Check variables - types (factor etc), distributions etc.
trips$ring_number <- as.factor(trips$ring_number)
trips$trip_id <- as.factor(trips$trip_id)
trips$start_time <- as.POSIXct(trips$start_t... | /departure_desision_analysis.R | permissive | thomasevans/gulls_gotland | R | false | false | 1,230 | r |
trips <- read.csv("foraging_trip_info_filtered_july2015.csv",
header = TRUE)
str(trips)
# Check variables - types (factor etc), distributions etc.
trips$ring_number <- as.factor(trips$ring_number)
trips$trip_id <- as.factor(trips$trip_id)
trips$start_time <- as.POSIXct(trips$start_t... |
#this is an example R script to explore creating a script installing packages, loading packages, and exploring data types
#hand out the RStudio setup document
#install a few packages - this installs the packages on your system but does not load them
#you can also use the install button in the packages tab in the bott... | /Week1.2.R | no_license | nazrug/IntroCourse | R | false | false | 6,341 | r | #this is an example R script to explore creating a script installing packages, loading packages, and exploring data types
#hand out the RStudio setup document
#install a few packages - this installs the packages on your system but does not load them
#you can also use the install button in the packages tab in the bott... |
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(ggplot2)
library(shiny)
library(mizer)
# https://sizespectrum.org/mizer/
# Define... | /shiny-equilibrium/ui.R | no_license | irochehurley/chapter3 | R | false | false | 982 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(ggplot2)
library(shiny)
library(mizer)
# https://sizespectrum.org/mizer/
# Define... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_ip_info.R
\name{get_ip_info}
\alias{get_ip_info}
\title{Retrieve information about an IP address}
\usage{
get_ip_info(ip = NULL, limit = NULL, cursor = NULL, ...)
}
\arguments{
\item{ip}{IP address. String. Required.}
\item{limit}{Number... | /man/get_ip_info.Rd | permissive | themains/virustotal | R | false | true | 931 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_ip_info.R
\name{get_ip_info}
\alias{get_ip_info}
\title{Retrieve information about an IP address}
\usage{
get_ip_info(ip = NULL, limit = NULL, cursor = NULL, ...)
}
\arguments{
\item{ip}{IP address. String. Required.}
\item{limit}{Number... |
#' @include soccerHeatmap.R
#' @include soccerSpokes.R
#' @import ggplot2
#' @import dplyr
NULL
#' Draw a flow field on a soccer pitch.
#' @description Draws a flow field showing the mean direction of movement made in each sector of the pitch and adds pitch outlines. Note: This function is prototypical and intended to ... | /R/soccerFlow.R | no_license | sulasen/soccermatics | R | false | false | 3,780 | r | #' @include soccerHeatmap.R
#' @include soccerSpokes.R
#' @import ggplot2
#' @import dplyr
NULL
#' Draw a flow field on a soccer pitch.
#' @description Draws a flow field showing the mean direction of movement made in each sector of the pitch and adds pitch outlines. Note: This function is prototypical and intended to ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.