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 |
|---|---|---|---|---|---|---|---|---|---|
#' uis
#'
#' \code{uis} is a function to import and clean UIS data.
#'
#' Defines SDMX queries to the UIS API and applies the `uis_clean` function
#'@family import/clean
#'@seealso \code{\link{uis_clean}}
uis <- function() {
key <- list("uis_up")
uis_up <- R.cache::loadCache(key)
if(is.null(uis_up)) {
cat... | /R/uis_import.R | no_license | northeastloon/gemrtables | R | false | false | 10,591 | r | #' uis
#'
#' \code{uis} is a function to import and clean UIS data.
#'
#' Defines SDMX queries to the UIS API and applies the `uis_clean` function
#'@family import/clean
#'@seealso \code{\link{uis_clean}}
uis <- function() {
key <- list("uis_up")
uis_up <- R.cache::loadCache(key)
if(is.null(uis_up)) {
cat... |
#' Downloads dbGaPdb sqlite from temp link and unzips it
#'
#' @import R.utils
#' @export
pull_dbGaPdb_sqlite <- function(local_path=tempdir(),
sqlite_db_name='dbGaPdb.sqlite',
link='https://helix.nih.gov/~mcgaugheyd/dbGapdb_2017-08-16.sqlite.gz'){
path_... | /R/pull_dbGapdb_sqlite.R | no_license | dbGaPdb/dbGaPdb | R | false | false | 576 | r | #' Downloads dbGaPdb sqlite from temp link and unzips it
#'
#' @import R.utils
#' @export
pull_dbGaPdb_sqlite <- function(local_path=tempdir(),
sqlite_db_name='dbGaPdb.sqlite',
link='https://helix.nih.gov/~mcgaugheyd/dbGapdb_2017-08-16.sqlite.gz'){
path_... |
library(caret)
library(dplyr)
forestfiresA=read.csv('C:\\Users\\YAJUSH\\Downloads\\forestfiresA.csv',stringsAsFactors = TRUE)
summary(forestfiresA$area)
hist(forestfiresA$area,col=rainbow(6))
forestfiresA
head(forestfiresA)
str(forestfiresA)
hist(forestfiresA$X)
hist(forestfiresA$y)
hist(forestfiresA$temp)
h... | /new forestfires final dated 20 april.R | no_license | YajushMishra/forest_fire | R | false | false | 6,889 | r | library(caret)
library(dplyr)
forestfiresA=read.csv('C:\\Users\\YAJUSH\\Downloads\\forestfiresA.csv',stringsAsFactors = TRUE)
summary(forestfiresA$area)
hist(forestfiresA$area,col=rainbow(6))
forestfiresA
head(forestfiresA)
str(forestfiresA)
hist(forestfiresA$X)
hist(forestfiresA$y)
hist(forestfiresA$temp)
h... |
require("sandwich")
require("lmtest")
require("stargazer")
clse = function(reg) {
# index(reg, "id") returns the id or entity variable vector
G = length(unique(index(reg,"id")))
N = length(index(reg,"id"))
dfa = (G/(G - 1))*(N-1)/reg$df.residual # note Bluhm multiplies this by finite-sample df ... | /Research Paper_Soichi/code/clustered_SEs.R | no_license | skajikaji/hello-world | R | false | false | 703 | r | require("sandwich")
require("lmtest")
require("stargazer")
clse = function(reg) {
# index(reg, "id") returns the id or entity variable vector
G = length(unique(index(reg,"id")))
N = length(index(reg,"id"))
dfa = (G/(G - 1))*(N-1)/reg$df.residual # note Bluhm multiplies this by finite-sample df ... |
ptt_dict <- readRDS("data-raw/ptt_dict.rds")
hotboard_df <- readRDS("data-raw/hotboard_df.rds")
pingying2zh <- read.csv("data-raw/translation.csv", header = F)
posts_df <- readRDS("data-raw/posts_df.rds")
# Common RegEx
# ※ 編輯: wronglove 來自: 122.121.216.107 (08/11 02:12)
# ※ 編輯: key000130 (122.116.231.226)... | /data-raw/write-data2internal.R | no_license | liao961120/pttR | R | false | false | 608 | r | ptt_dict <- readRDS("data-raw/ptt_dict.rds")
hotboard_df <- readRDS("data-raw/hotboard_df.rds")
pingying2zh <- read.csv("data-raw/translation.csv", header = F)
posts_df <- readRDS("data-raw/posts_df.rds")
# Common RegEx
# ※ 編輯: wronglove 來自: 122.121.216.107 (08/11 02:12)
# ※ 編輯: key000130 (122.116.231.226)... |
# Dependencies ------------------------------------------------------------
library(broom)
library(caret)
library(feather)
library(forcats)
library(FNN)
library(ggmap)
library(ggrepel)
library(pdist)
library(rgdal)
library(stringr)
library(tidyverse)
sites_long <- read_feather("./data/sites_long.feather")
cameras <- ... | /r/4_inference_euclidean.R | no_license | cno-opa/traffic_safety_camera_assessment | R | false | false | 8,260 | r | # Dependencies ------------------------------------------------------------
library(broom)
library(caret)
library(feather)
library(forcats)
library(FNN)
library(ggmap)
library(ggrepel)
library(pdist)
library(rgdal)
library(stringr)
library(tidyverse)
sites_long <- read_feather("./data/sites_long.feather")
cameras <- ... |
#1 Merges the training and the test sets to create one data set.
#1.a.Read the Train data Sets
label_train <- read.table("C:/UCIHARDataset/train/y_train.txt")
table(label_train)
data_train <- read.table("C:/UCIHARDataset/train/X_train.txt")
subject_train <- read.table("C:/UCIHARDataset/train/subject_train.txt"... | /run_analysis.R | no_license | AlexMandigma/Getting-and-Cleaning-Data-Course-Project | R | false | false | 2,424 | r |
#1 Merges the training and the test sets to create one data set.
#1.a.Read the Train data Sets
label_train <- read.table("C:/UCIHARDataset/train/y_train.txt")
table(label_train)
data_train <- read.table("C:/UCIHARDataset/train/X_train.txt")
subject_train <- read.table("C:/UCIHARDataset/train/subject_train.txt"... |
## Read in Credit Data
load("") ## Enter the location of the "credit.Rdata" here
summary(newcredit)
## Pairwise Plot
plot(newcredit,pch=19,cex=0.25)
## Boxplots for categorical predictors
par(mfrow=c(2,2),cex.lab=2)
with(newcredit,{
plot(Balance~Gender)
plot(Balance~Student)
plot(Balance~Married)
plot(Balance... | /credit.R | no_license | dkharazi/Modeling-Credit | R | false | false | 4,592 | r | ## Read in Credit Data
load("") ## Enter the location of the "credit.Rdata" here
summary(newcredit)
## Pairwise Plot
plot(newcredit,pch=19,cex=0.25)
## Boxplots for categorical predictors
par(mfrow=c(2,2),cex.lab=2)
with(newcredit,{
plot(Balance~Gender)
plot(Balance~Student)
plot(Balance~Married)
plot(Balance... |
# Given a package record, indicate the name we expect its source archive to have.
pkgSrcFilename <- function(pkgRecord) {
if (identical(pkgRecord$source, "github"))
paste(pkgRecord$gh_sha1, ".tar.gz", sep = "")
else
paste(pkgRecord$name, "_", pkgRecord$version, ".tar.gz", sep = "")
}
# Given a package reco... | /R/restore.R | no_license | giupo/packrat | R | false | false | 29,902 | r | # Given a package record, indicate the name we expect its source archive to have.
pkgSrcFilename <- function(pkgRecord) {
if (identical(pkgRecord$source, "github"))
paste(pkgRecord$gh_sha1, ".tar.gz", sep = "")
else
paste(pkgRecord$name, "_", pkgRecord$version, ".tar.gz", sep = "")
}
# Given a package reco... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/explore.R
\name{executeExplorePlot}
\alias{executeExplorePlot}
\title{dens <- density(ds[ds$grp=="All",1], na.rm=TRUE)\n',
rs<- max(summary(as.factor(round(ds[ds$grp=="All",',
1], digits=2))))/max(dens$y)\n',
lines(dens$x, dens$y*rs, type="l"... | /rattleM/man/executeExplorePlot.Rd | no_license | LJanulis/RattleM | R | false | true | 994 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/explore.R
\name{executeExplorePlot}
\alias{executeExplorePlot}
\title{dens <- density(ds[ds$grp=="All",1], na.rm=TRUE)\n',
rs<- max(summary(as.factor(round(ds[ds$grp=="All",',
1], digits=2))))/max(dens$y)\n',
lines(dens$x, dens$y*rs, type="l"... |
\name{selectslice}
\alias{selectslice}
\title{
Select Slices
}
\description{
Select spectral slices from a spectrogram.
}
\usage{
selectslice (specobject, n = 1, plot = TRUE, ...)
}
\arguments{
\item{specobject}{A 'spectrogram' object created with the spectrogram() function included in this package.}
... | /man/selectslice.Rd | no_license | cran/phonTools | R | false | false | 1,457 | rd | \name{selectslice}
\alias{selectslice}
\title{
Select Slices
}
\description{
Select spectral slices from a spectrogram.
}
\usage{
selectslice (specobject, n = 1, plot = TRUE, ...)
}
\arguments{
\item{specobject}{A 'spectrogram' object created with the spectrogram() function included in this package.}
... |
library(MASS); library(boot)
storm.fm <- nls(Time ~ b*Viscosity/(Wt - c), stormer, start = c(b=29.401, c=2.2183))
st <- cbind(stormer, fit=fitted(storm.fm))
storm.bf <- function(rs, i) {
st$Time <- st$fit + rs[i]
tmp <- nls(Time ~ (b * Viscosity)/(Wt - c), st, start = coef(storm.fm))
tmp$m$getAllPars()
}
# remo... | /profiling.R | no_license | fawnshao/rexamples | R | false | false | 1,103 | r | library(MASS); library(boot)
storm.fm <- nls(Time ~ b*Viscosity/(Wt - c), stormer, start = c(b=29.401, c=2.2183))
st <- cbind(stormer, fit=fitted(storm.fm))
storm.bf <- function(rs, i) {
st$Time <- st$fit + rs[i]
tmp <- nls(Time ~ (b * Viscosity)/(Wt - c), st, start = coef(storm.fm))
tmp$m$getAllPars()
}
# remo... |
### maximal intersections from an interval-type Surv object
maxintersect <- function(x, eps = 1e-7)
{
if (is.null(nrow(x))) x <- matrix(x, nrow = 1)
if (ncol(x) == 2) x[is.na(x[, 2]), 2] <- Inf
else if (ncol(x) > 2) {
## right-censored
x[x[, 3] == 0, 2] <- Inf
## exact
x[x[, 3] == 1, 2] <- x[x[, 3... | /R/maxintersect.R | no_license | aboruvka/coxinterval | R | false | false | 1,329 | r | ### maximal intersections from an interval-type Surv object
maxintersect <- function(x, eps = 1e-7)
{
if (is.null(nrow(x))) x <- matrix(x, nrow = 1)
if (ncol(x) == 2) x[is.na(x[, 2]), 2] <- Inf
else if (ncol(x) > 2) {
## right-censored
x[x[, 3] == 0, 2] <- Inf
## exact
x[x[, 3] == 1, 2] <- x[x[, 3... |
dat=read.csv("household_power_consumption.txt", sep=";", stringsAsFactors=F)
dat$Date2=as.Date(dat$Date, "%d/%m/%Y")
sub=subset(dat, dat$Date2>=as.Date("01-02-2007", "%d-%m-%Y") & dat$Date2<=as.Date("02-02-2007", "%d-%m-%Y"))
sub$DateTime=as.POSIXct(strptime(paste(sub$Date, sub$Time), "%d/%m/%Y %H:%M:%S"))
#Plot1:
d... | /plot1.R | no_license | chechir/ExData_Plotting1 | R | false | false | 511 | r |
dat=read.csv("household_power_consumption.txt", sep=";", stringsAsFactors=F)
dat$Date2=as.Date(dat$Date, "%d/%m/%Y")
sub=subset(dat, dat$Date2>=as.Date("01-02-2007", "%d-%m-%Y") & dat$Date2<=as.Date("02-02-2007", "%d-%m-%Y"))
sub$DateTime=as.POSIXct(strptime(paste(sub$Date, sub$Time), "%d/%m/%Y %H:%M:%S"))
#Plot1:
d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DfSidepPredictions.R
\name{DfSidepPredictions}
\alias{DfSidepPredictions}
\title{DfSidepPredictions}
\usage{
DfSidepPredictions(dfPred)
}
\arguments{
\item{dfPred}{The prediction data frame.}
}
\value{
A clean sidep CHU prediction dataframe
}... | /man/DfSidepPredictions.Rd | no_license | thomasferte/PredictCovidOpen | R | false | true | 385 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DfSidepPredictions.R
\name{DfSidepPredictions}
\alias{DfSidepPredictions}
\title{DfSidepPredictions}
\usage{
DfSidepPredictions(dfPred)
}
\arguments{
\item{dfPred}{The prediction data frame.}
}
\value{
A clean sidep CHU prediction dataframe
}... |
library(fastrtext)
### Name: add_tags
### Title: Add tags to documents
### Aliases: add_tags
### ** Examples
library(fastrtext)
tags <- list(c(1, 5), 0)
documents <- c("this is a text", "this is another document")
add_tags(documents = documents, tags = tags)
| /data/genthat_extracted_code/fastrtext/examples/add_tags.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 267 | r | library(fastrtext)
### Name: add_tags
### Title: Add tags to documents
### Aliases: add_tags
### ** Examples
library(fastrtext)
tags <- list(c(1, 5), 0)
documents <- c("this is a text", "this is another document")
add_tags(documents = documents, tags = tags)
|
testlist <- list(latLongs = structure(c(1.269748709812e-321, 0, 0, 0, 0, 0, 0, 0), .Dim = c(1L, 8L)), r = 0)
result <- do.call(MGDrivE::calcCos,testlist)
str(result) | /MGDrivE/inst/testfiles/calcCos/libFuzzer_calcCos/calcCos_valgrind_files/1612733050-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 166 | r | testlist <- list(latLongs = structure(c(1.269748709812e-321, 0, 0, 0, 0, 0, 0, 0), .Dim = c(1L, 8L)), r = 0)
result <- do.call(MGDrivE::calcCos,testlist)
str(result) |
Url1 <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
## url assigned for downloading
download.file(Url1,"power_consumption.zip")
## downloaded the zip file
data0 <- read.table(unz("power_consumption.zip","household_power_consumption.txt"),nrows=10, header=T, quote="\"", sep=... | /plot4.R | no_license | rsridharan/ExData_Plotting1 | R | false | false | 1,876 | r | Url1 <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
## url assigned for downloading
download.file(Url1,"power_consumption.zip")
## downloaded the zip file
data0 <- read.table(unz("power_consumption.zip","household_power_consumption.txt"),nrows=10, header=T, quote="\"", sep=... |
#' No Clobber
#'
#' A function which attempts to prevent the errant overwriting of files by
#' checking for their existence and if they already exist, either asking how to
#' proceed, timestamping, or incrementing the filename.
#'
#' @param filename a character vector containing a single filename.
#' @param behavior ei... | /R/noclobber.R | permissive | jtoll/fileTools | R | false | false | 2,506 | r | #' No Clobber
#'
#' A function which attempts to prevent the errant overwriting of files by
#' checking for their existence and if they already exist, either asking how to
#' proceed, timestamping, or incrementing the filename.
#'
#' @param filename a character vector containing a single filename.
#' @param behavior ei... |
setwd("\\UCI HAR Dataset")
#read feature name
features<-read.table("./features.txt",header = FALSE)
#read train raw data
train_dataset<-read.table("./train/X_train.txt",header = FALSE)
#change column name to features
colnames(train_dataset)=features[,2]
#read training labels
train_label<-read.table("./train/y_train.txt... | /run_analysis.R | no_license | qintaozhang/JhuGettingCleaningDataProject | R | false | false | 2,520 | r | setwd("\\UCI HAR Dataset")
#read feature name
features<-read.table("./features.txt",header = FALSE)
#read train raw data
train_dataset<-read.table("./train/X_train.txt",header = FALSE)
#change column name to features
colnames(train_dataset)=features[,2]
#read training labels
train_label<-read.table("./train/y_train.txt... |
/R_script_input/39321.R | no_license | ShawnPengxy/loupeman | R | false | false | 1,183 | r | ||
songs=read.csv(file.choose())
#1.1
summary(songs)
str(songs)
nrow(songs[songs$year==2010,])
#1.2
nrow(songs[songs$artistname=='Michael Jackson',])
#1.3
songs[songs$artistname=='Michael Jackson'&songs$Top10==1,]
#1.4
levels(as.factor(songs$timesignature))
table(as.factor(songs$timesignature))
#1.5
... | /solutions/Songs.R | no_license | akshayt19nayak/MITx-15.071x-The-Analytics-Edge | R | false | false | 1,384 | r | songs=read.csv(file.choose())
#1.1
summary(songs)
str(songs)
nrow(songs[songs$year==2010,])
#1.2
nrow(songs[songs$artistname=='Michael Jackson',])
#1.3
songs[songs$artistname=='Michael Jackson'&songs$Top10==1,]
#1.4
levels(as.factor(songs$timesignature))
table(as.factor(songs$timesignature))
#1.5
... |
context("test-summary_matchedtestctrl")
test_that("1-1 type, diff method", {
set.seed(123)
df <- data.frame(id = factor(LETTERS),
trt = factor(c(rep("test", 4), rep("ctrl", 22))),
metric1_time1 = rnorm(26),
metric1_time2 = rnorm(26),
metri... | /tests/testthat/test-summary_matchedtestctrl.R | permissive | bertcarnell/impact | R | false | false | 2,395 | r | context("test-summary_matchedtestctrl")
test_that("1-1 type, diff method", {
set.seed(123)
df <- data.frame(id = factor(LETTERS),
trt = factor(c(rep("test", 4), rep("ctrl", 22))),
metric1_time1 = rnorm(26),
metric1_time2 = rnorm(26),
metri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/buildSpike.R
\name{buildSpike}
\alias{buildSpike}
\title{Build Spikes in the Data Distribution}
\usage{
buildSpike(distr, spike)
}
\arguments{
\item{distr}{numeric vector. This is the input vector for which the spike value needs to b... | /man/buildSpike.Rd | no_license | cran/conjurer | R | false | true | 943 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/buildSpike.R
\name{buildSpike}
\alias{buildSpike}
\title{Build Spikes in the Data Distribution}
\usage{
buildSpike(distr, spike)
}
\arguments{
\item{distr}{numeric vector. This is the input vector for which the spike value needs to b... |
library(tidyverse)
library(gghighlight)
#gn.bau <- read.csv("behaviourspace/Gangnam_v6_macro BAU-table.csv")
#gn.inc <- read.csv("behaviourspace/Gangnam_v6_macro INC-table.csv")
#gn.dec <- read.csv("behaviourspace/Gangnam_v6_macro DEC-table.csv")
#gw.bau <- read.csv("behaviourspace/Gwanak_v6_macro BAU-table.csv")
#gw.... | /Rnetlogo_behaviourspace.R | no_license | dataandcrowd/jasss | R | false | false | 18,300 | r | library(tidyverse)
library(gghighlight)
#gn.bau <- read.csv("behaviourspace/Gangnam_v6_macro BAU-table.csv")
#gn.inc <- read.csv("behaviourspace/Gangnam_v6_macro INC-table.csv")
#gn.dec <- read.csv("behaviourspace/Gangnam_v6_macro DEC-table.csv")
#gw.bau <- read.csv("behaviourspace/Gwanak_v6_macro BAU-table.csv")
#gw.... |
# Root.
# Use the function sqrt(value).
# For example.
sqrt(4)
# For the other base.
# For example 3V8(cubic root of eight).
8 ^ (1/3)
# Raise to the reverse of the base.
| /Root.R | no_license | matheusreis12/root-with-R | R | false | false | 193 | r | # Root.
# Use the function sqrt(value).
# For example.
sqrt(4)
# For the other base.
# For example 3V8(cubic root of eight).
8 ^ (1/3)
# Raise to the reverse of the base.
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{hpcrepairs}
\alias{hpcrepairs}
\title{#####}
\format{A \code{data.frame} with 8 rows and 3 variables:
\tabular{rlll}{
[, 1] \tab system \tab System type \tab \bold{Categoric}\cr
[, 2] \tab months \tab Accumulat... | /man/hpcrepairs.Rd | no_license | Ammar-K/SMRD | R | false | true | 2,383 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{hpcrepairs}
\alias{hpcrepairs}
\title{#####}
\format{A \code{data.frame} with 8 rows and 3 variables:
\tabular{rlll}{
[, 1] \tab system \tab System type \tab \bold{Categoric}\cr
[, 2] \tab months \tab Accumulat... |
## bsub -R "rusage[mem=1000]" -q normal.4h -n 1 -e schwank_err.txt -o schwank_out.txt < testing/vignettes/schwankII.r
## colorectal cancer
## CRISPR screen from organoids identifies several interesting genes.
## TCGA analysis: (to use the gdc query you have to set your internal machine clock to before 15th of june ... | /TCGA_Overlap/data2.r | no_license | cbg-ethz/Ringel_Schwank_2020_analysis | R | false | false | 35,613 | r |
## bsub -R "rusage[mem=1000]" -q normal.4h -n 1 -e schwank_err.txt -o schwank_out.txt < testing/vignettes/schwankII.r
## colorectal cancer
## CRISPR screen from organoids identifies several interesting genes.
## TCGA analysis: (to use the gdc query you have to set your internal machine clock to before 15th of june ... |
## fimo threshold
fimoThreshold <- 0.001
#' Creates directory name for factor
#'
#' \code{getFactorName} creates a directory name for a directory within
#' fimo to save to.
#'
#' Relies on previously defined fimoThreshold
#' Ex: "Training_ref_thres0.001"
#' @param refOrAlt: string of "ref" or "alt"
#' @name getFa... | /R/fimo_run_fimo_and_summarize.R | no_license | alice-szeliga/keles-pipeline | R | false | false | 10,831 | r | ## fimo threshold
fimoThreshold <- 0.001
#' Creates directory name for factor
#'
#' \code{getFactorName} creates a directory name for a directory within
#' fimo to save to.
#'
#' Relies on previously defined fimoThreshold
#' Ex: "Training_ref_thres0.001"
#' @param refOrAlt: string of "ref" or "alt"
#' @name getFa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GenoGAMDataSetList-class.R
\docType{methods}
\name{Summary,GenoGAMDataSetList-method}
\alias{Summary,GenoGAMDataSetList-method}
\title{Computing metrics}
\usage{
\S4method{Summary}{GenoGAMDataSetList}(x, ..., na.rm = FALSE)
}
\arguments{
\ite... | /man/GenoGAMDataSetList-metrics.Rd | no_license | gstricker/GenoGAM | R | false | true | 927 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GenoGAMDataSetList-class.R
\docType{methods}
\name{Summary,GenoGAMDataSetList-method}
\alias{Summary,GenoGAMDataSetList-method}
\title{Computing metrics}
\usage{
\S4method{Summary}{GenoGAMDataSetList}(x, ..., na.rm = FALSE)
}
\arguments{
\ite... |
library(poLCA)
### Name: gss82
### Title: 1982 General Social Survey (sample data)
### Aliases: gss82
### Keywords: datasets
### ** Examples
data(gss82)
f <- cbind(PURPOSE,ACCURACY,UNDERSTA,COOPERAT)~1
gss.lc2 <- poLCA(f,gss82,nclass=2) # log-likelihood = -2783.268
# Could also try:
# gss.lc3 <- poLCA(f,gss82,ncla... | /data/genthat_extracted_code/poLCA/examples/gss82.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 476 | r | library(poLCA)
### Name: gss82
### Title: 1982 General Social Survey (sample data)
### Aliases: gss82
### Keywords: datasets
### ** Examples
data(gss82)
f <- cbind(PURPOSE,ACCURACY,UNDERSTA,COOPERAT)~1
gss.lc2 <- poLCA(f,gss82,nclass=2) # log-likelihood = -2783.268
# Could also try:
# gss.lc3 <- poLCA(f,gss82,ncla... |
## Álvaro García Recuero
## Pair of functions to cache the inverse of a matrix
## Function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function( x = matrix() ) {
# Check if input is matrix
if (!is.matrix(x)){
stop("Please enter a matrix")
}
# Initi... | /cachematrix.R | no_license | algarecu/ProgrammingAssignment2 | R | false | false | 1,318 | r | ## Álvaro García Recuero
## Pair of functions to cache the inverse of a matrix
## Function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function( x = matrix() ) {
# Check if input is matrix
if (!is.matrix(x)){
stop("Please enter a matrix")
}
# Initi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getContentInfo.R
\name{getBlocks}
\alias{getBlocks}
\title{Read vizlab config document and return specific blocks}
\usage{
getBlocks(block = c("vizlab", "info", "fetch", "process", "visualize",
"publish", "resource"), keep.block = TRUE)
}
\... | /man/getBlocks.Rd | permissive | mbucknell/vizlab | R | false | true | 532 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getContentInfo.R
\name{getBlocks}
\alias{getBlocks}
\title{Read vizlab config document and return specific blocks}
\usage{
getBlocks(block = c("vizlab", "info", "fetch", "process", "visualize",
"publish", "resource"), keep.block = TRUE)
}
\... |
#' Write csv files with indicated commands to the external system
#'
#' @description Function is capable to read the data and writing multiple files e.g. 'SystemControl8139124.csv'
#'
#' @param x - dataframe object with resulting command e.g. 1 - enable; 0 - disable
#' @param path_terminal - path to the terminal
#' @p... | /R/writeCommandViaCSV.R | permissive | vladdsm/lazytrade | R | false | false | 1,633 | r | #' Write csv files with indicated commands to the external system
#'
#' @description Function is capable to read the data and writing multiple files e.g. 'SystemControl8139124.csv'
#'
#' @param x - dataframe object with resulting command e.g. 1 - enable; 0 - disable
#' @param path_terminal - path to the terminal
#' @p... |
source(here::here("lib", "common.R"))
load_raw <- function(raw_data_dir, n_max) {
violation_codes <- load_single_file(
file.path(raw_data_dir, "TXDPS_Lookups"),
"txdps_lookups_lkup_violation.csv"
)
county_codes <- load_single_file(
file.path(raw_data_dir, "TXDPS_Lookups"),
"txdps_lookups_lkup_c... | /lib/states/tx/statewide.R | no_license | anni3ly/ripa-analysis | R | false | false | 7,971 | r | source(here::here("lib", "common.R"))
load_raw <- function(raw_data_dir, n_max) {
violation_codes <- load_single_file(
file.path(raw_data_dir, "TXDPS_Lookups"),
"txdps_lookups_lkup_violation.csv"
)
county_codes <- load_single_file(
file.path(raw_data_dir, "TXDPS_Lookups"),
"txdps_lookups_lkup_c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/R-to-variable.R,
% R/expressions.R
\docType{methods}
\name{toVariable}
\alias{toVariable}
\alias{toVariable,character-method}
\alias{toVariable,numeric-method}
\alias{toVariable,factor-method}
\alias{toVariable,Date-method}... | /man/toVariable.Rd | no_license | GitBrianLaw/rcrunch | R | false | true | 1,810 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/R-to-variable.R,
% R/expressions.R
\docType{methods}
\name{toVariable}
\alias{toVariable}
\alias{toVariable,character-method}
\alias{toVariable,numeric-method}
\alias{toVariable,factor-method}
\alias{toVariable,Date-method}... |
#Посчитать
#Умножьте 11111111 само на себя. Теперь умножьте на 1111111?. О чём говрит ошибка?
num<-11111111
num^2
num^2*1111111 #ошибки нет
#Найдите площади примоугольников с длинами (3,7,12,15, 20) и ширинами (2, 5,8,11,15)
len<-c(3,7,12,15, 20)
wid<-c(2, 5,8,11,15)
len*wid
#Постройте график этих длин и ш... | /classwork1/classwork1.R | no_license | NikolaiTunin/MD-DA-2018 | R | false | false | 1,911 | r | #Посчитать
#Умножьте 11111111 само на себя. Теперь умножьте на 1111111?. О чём говрит ошибка?
num<-11111111
num^2
num^2*1111111 #ошибки нет
#Найдите площади примоугольников с длинами (3,7,12,15, 20) и ширинами (2, 5,8,11,15)
len<-c(3,7,12,15, 20)
wid<-c(2, 5,8,11,15)
len*wid
#Постройте график этих длин и ш... |
## server.R
## this is the background for the
## Gambler's Ruin applet
library(shiny)
shinyServer(function(input,output) {
## this will calculate the theoretical probability of Gambler A Winning
## and create the text output
output$theoryWinA <- renderText({
## first the probability if the odds a... | /server.R | no_license | hschumann/GamblersRuinApp | R | false | false | 4,008 | r | ## server.R
## this is the background for the
## Gambler's Ruin applet
library(shiny)
shinyServer(function(input,output) {
## this will calculate the theoretical probability of Gambler A Winning
## and create the text output
output$theoryWinA <- renderText({
## first the probability if the odds a... |
#condition of walls (36a, 37a, d1, d3, d12)
#Anayeli Ochoa
library(dplyr)
# Select the 1999 .csv file, save it:
my.file <- file.choose()
# Read in data only (no headers -- skip the first two rows):
nych1999 <- read.csv(my.file, skip = 2, header = FALSE, stringsAsFactors = FALSE)
# Read in data (with both rows of head... | /1999.R | no_license | thienngole/NY-Housing-Data | R | false | false | 8,989 | r | #condition of walls (36a, 37a, d1, d3, d12)
#Anayeli Ochoa
library(dplyr)
# Select the 1999 .csv file, save it:
my.file <- file.choose()
# Read in data only (no headers -- skip the first two rows):
nych1999 <- read.csv(my.file, skip = 2, header = FALSE, stringsAsFactors = FALSE)
# Read in data (with both rows of head... |
####
#############################################################################
#' Read an \code{.xlsx} file.
#'
#' Read an \code{.xlsx} file with multiple sheets.
#'
#' If the \code{.xlsx} contains multiple sheets, the output is a list with all sheets as
#' \code{data.frame} entries in the list.
#'
#'@param filePat... | /R/write_xlsx.R | no_license | beckerbenj/eatAnalysis | R | false | false | 2,200 | r | ####
#############################################################################
#' Read an \code{.xlsx} file.
#'
#' Read an \code{.xlsx} file with multiple sheets.
#'
#' If the \code{.xlsx} contains multiple sheets, the output is a list with all sheets as
#' \code{data.frame} entries in the list.
#'
#'@param filePat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mortalityTables.load.R
\name{mortalityTables.load}
\alias{mortalityTables.load}
\title{Load a named set of mortality tables provided by the \link{MortalityTables} package}
\usage{
mortalityTables.load(dataset, wildcard = FALSE)
}
\arguments{
... | /man/mortalityTables.load.Rd | no_license | Algorios/r-mortality-tables | R | false | true | 694 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mortalityTables.load.R
\name{mortalityTables.load}
\alias{mortalityTables.load}
\title{Load a named set of mortality tables provided by the \link{MortalityTables} package}
\usage{
mortalityTables.load(dataset, wildcard = FALSE)
}
\arguments{
... |
## Pair of functions that caches the inverse of a matrix to avoid recalculating
## the inverse if it is already cached
## makeCacheMatrix() creates a list of functions: set, get, setinv, getinv
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
... | /cachematrix.R | no_license | nabusman/ProgrammingAssignment2 | R | false | false | 831 | r | ## Pair of functions that caches the inverse of a matrix to avoid recalculating
## the inverse if it is already cached
## makeCacheMatrix() creates a list of functions: set, get, setinv, getinv
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
... |
#' @title Pivoted Cholesky factorisation
#'
#' @description Pivoted Cholesky (same as pivot=T when carrying out Cholesky with dense matrices)
#'
#' @param A matrix (sparse or dense), the Cholesky factor of which needs to be found
#' @details This function should just be used to verify the pivot=T with dense matric... | /R/linalgfns.R | permissive | andrewzm/MVST | R | false | false | 8,101 | r | #' @title Pivoted Cholesky factorisation
#'
#' @description Pivoted Cholesky (same as pivot=T when carrying out Cholesky with dense matrices)
#'
#' @param A matrix (sparse or dense), the Cholesky factor of which needs to be found
#' @details This function should just be used to verify the pivot=T with dense matric... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geo-functions.R
\name{bbox_scale}
\alias{bbox_scale}
\title{Scale a bounding box}
\usage{
bbox_scale(bb, scale_factor)
}
\arguments{
\item{bb}{the bounding box or spatial object that will be used to crop \code{shp}}
\item{scale_factor}{Numer... | /man/bbox_scale.Rd | permissive | weijia2013/stplanr | R | false | true | 1,255 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geo-functions.R
\name{bbox_scale}
\alias{bbox_scale}
\title{Scale a bounding box}
\usage{
bbox_scale(bb, scale_factor)
}
\arguments{
\item{bb}{the bounding box or spatial object that will be used to crop \code{shp}}
\item{scale_factor}{Numer... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.iot_operations.R
\name{test_invoke_authorizer}
\alias{test_invoke_authorizer}
\title{Tests a custom authorization behavior by invoking a specified custom authorizer}
\usage{
test_invoke_authorizer(authorizerName, token, tokenSignature)
}... | /service/paws.iot/man/test_invoke_authorizer.Rd | permissive | CR-Mercado/paws | R | false | true | 970 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.iot_operations.R
\name{test_invoke_authorizer}
\alias{test_invoke_authorizer}
\title{Tests a custom authorization behavior by invoking a specified custom authorizer}
\usage{
test_invoke_authorizer(authorizerName, token, tokenSignature)
}... |
#' \code{phsmethods} package
#'
#' Standard Methods for use in PHS.
#'
#' See the README on \href{https://github.com/Health-SocialCare-Scotland/phsmethods#readme}{GitHub}.
#'
#' @docType package
#' @name phsmethods
#' @importFrom magrittr %>%
#' @importFrom rlang .data
NULL
# Stops notes from appearing in R CMD check ... | /R/phsmethods.R | no_license | IainMcl/phsmethods | R | false | false | 426 | r | #' \code{phsmethods} package
#'
#' Standard Methods for use in PHS.
#'
#' See the README on \href{https://github.com/Health-SocialCare-Scotland/phsmethods#readme}{GitHub}.
#'
#' @docType package
#' @name phsmethods
#' @importFrom magrittr %>%
#' @importFrom rlang .data
NULL
# Stops notes from appearing in R CMD check ... |
### tweaking plot function from polca
plotLCA <- function (x, ord=NULL,classNames=NULL,...)
{
K.j <- sapply(x$probs, ncol)
R <- length(x$P)
if(is.null(ord)) ord <- 1:R
if(is.null(classNames)) classNames <- paste("Class",1:R)
if (max(K.j) == 2) {
poLCA.makeplot.dich(x$probs, x$P, x$y, NULL)
... | /plotLCA0.r | permissive | adamSales/lcaCode | R | false | false | 20,616 | r | ### tweaking plot function from polca
plotLCA <- function (x, ord=NULL,classNames=NULL,...)
{
K.j <- sapply(x$probs, ncol)
R <- length(x$P)
if(is.null(ord)) ord <- 1:R
if(is.null(classNames)) classNames <- paste("Class",1:R)
if (max(K.j) == 2) {
poLCA.makeplot.dich(x$probs, x$P, x$y, NULL)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ShoppingCenter.R
\name{ShoppingCenter}
\alias{ShoppingCenter}
\title{ShoppingCenter}
\usage{
ShoppingCenter(id = NULL, priceRange = NULL, paymentAccepted = NULL,
openingHours = NULL, currenciesAccepted = NULL, branchOf = NULL,
telephone =... | /man/ShoppingCenter.Rd | no_license | cboettig/schemar | R | false | true | 9,726 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ShoppingCenter.R
\name{ShoppingCenter}
\alias{ShoppingCenter}
\title{ShoppingCenter}
\usage{
ShoppingCenter(id = NULL, priceRange = NULL, paymentAccepted = NULL,
openingHours = NULL, currenciesAccepted = NULL, branchOf = NULL,
telephone =... |
# Load libraries ----------------------------------------------------------
library(readxl)
library(openxlsx)
library(dplyr)
library(tidyr)
library(purrr)
library(here)
library(sf)
library(lubridate)
library(plotly)
library(markdown)
library(htmltools)
# Define data paths ---------------------------------------------... | /scripts/0_define_variables.R | no_license | jackiehall0/COVID-19_dashboard | R | false | false | 4,324 | r | # Load libraries ----------------------------------------------------------
library(readxl)
library(openxlsx)
library(dplyr)
library(tidyr)
library(purrr)
library(here)
library(sf)
library(lubridate)
library(plotly)
library(markdown)
library(htmltools)
# Define data paths ---------------------------------------------... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 231421
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 191159
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 191159
c
c Input Parameter (command lin... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Kronegger-Pfandler-Pichler/dungeon/dungeon_i15-m7-u4-v0.pddl_planlen=181/dungeon_i15-m7-u4-v0.pddl_planlen=181.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 234,154 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 231421
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 191159
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 191159
c
c Input Parameter (command lin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bowlerMeanEconomyRate.R
\name{bowlerMeanEconomyRate}
\alias{bowlerMeanEconomyRate}
\title{Mean economy rate versus number of overs}
\usage{
bowlerMeanEconomyRate(df, name,dateRange,staticIntv1=1)
}
\arguments{
\item{df}{Data frame}
\item{nam... | /man/bowlerMeanEconomyRate.Rd | no_license | tvganesh/yorkr | R | false | true | 1,145 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bowlerMeanEconomyRate.R
\name{bowlerMeanEconomyRate}
\alias{bowlerMeanEconomyRate}
\title{Mean economy rate versus number of overs}
\usage{
bowlerMeanEconomyRate(df, name,dateRange,staticIntv1=1)
}
\arguments{
\item{df}{Data frame}
\item{nam... |
ss2$Flight.date<-format(ss2$Flight.date)
| /DateFormatting.R | no_license | fall2018-saltz/group2_ist687_ec | R | false | false | 44 | r |
ss2$Flight.date<-format(ss2$Flight.date)
|
train <- read.csv("data/train.csv")
# processing data
train$Survived <- factor(train$Survived, levels=c(1,0))
levels(train$Survived) <- c("Survived", "Died")
train$Pclass <- as.factor(train$Pclass)
levels(train$Pclass) <- c("1st Class", "2nd Class", "3rd Class")
train$Gender <- factor(train$Sex, levels=c("female", "mal... | /data/eda.R | no_license | rarce/data-product-course-project | R | false | false | 418 | r | train <- read.csv("data/train.csv")
# processing data
train$Survived <- factor(train$Survived, levels=c(1,0))
levels(train$Survived) <- c("Survived", "Died")
train$Pclass <- as.factor(train$Pclass)
levels(train$Pclass) <- c("1st Class", "2nd Class", "3rd Class")
train$Gender <- factor(train$Sex, levels=c("female", "mal... |
library(tools)
baseResultsFiles <- "ensemblev3/resultados/ds3/newdl/"
baseResampleFiles <- "ensemblev2/resample/ds3/"
embeddingsFile <- "adhoc/redemaluca/ds3/oficial/ensemble/ds3_with_PCA_15.RData"
source(file_path_as_absolute("ipm/experimenters.R"))
source(file_path_as_absolute("utils/getDados.R"))
source(file_path_... | /ensembles/ensemblev3/run/newdl/ds3.R | no_license | MarcosGrzeca/drunktweets | R | false | false | 631 | r | library(tools)
baseResultsFiles <- "ensemblev3/resultados/ds3/newdl/"
baseResampleFiles <- "ensemblev2/resample/ds3/"
embeddingsFile <- "adhoc/redemaluca/ds3/oficial/ensemble/ds3_with_PCA_15.RData"
source(file_path_as_absolute("ipm/experimenters.R"))
source(file_path_as_absolute("utils/getDados.R"))
source(file_path_... |
#code for Exploratory data analysis week1 assignment
rm(list=ls())
library(dplyr)
library(tidyr)
library(lubridate)
#read_delim(delim = ";") should work. The reason read_csv2 removes the decimal in Voltage is because
#that funciton assumes "," as decimals.)
file="../household_power_consumption.txt"
df <- read.table(f... | /plot2.R | no_license | njekin/ExData_Plotting1 | R | false | false | 780 | r | #code for Exploratory data analysis week1 assignment
rm(list=ls())
library(dplyr)
library(tidyr)
library(lubridate)
#read_delim(delim = ";") should work. The reason read_csv2 removes the decimal in Voltage is because
#that funciton assumes "," as decimals.)
file="../household_power_consumption.txt"
df <- read.table(f... |
`earth.bear` <-
function(long1, lat1, long2, lat2) {
rad <- pi/180
a1 <- lat1*rad
a2 <- long1*rad
b1 <- lat2*rad
b2 <- long2*rad
dlon <- b2-a2
bear <- atan2(sin(dlon)*cos(b1),cos(a1)*sin(b1)-sin(a1)*cos(b1)*cos(dlon))
deg <- (bear%%(2*pi))*(180/pi)
return(deg)
}
| /R/earth.bear.R | no_license | cran/fossil | R | false | false | 295 | r | `earth.bear` <-
function(long1, lat1, long2, lat2) {
rad <- pi/180
a1 <- lat1*rad
a2 <- long1*rad
b1 <- lat2*rad
b2 <- long2*rad
dlon <- b2-a2
bear <- atan2(sin(dlon)*cos(b1),cos(a1)*sin(b1)-sin(a1)*cos(b1)*cos(dlon))
deg <- (bear%%(2*pi))*(180/pi)
return(deg)
}
|
library(shiny)
library(ggplot2)
library(dplyr)
library(magrittr)
library(shinythemes)
library(shinydashboard)
library(zoo)
#Load Data for a single id and rename for ease
load("../../smalldata.RData")
load("../../smalljobdata.RData")
load("~/Documents/ww/datFlow_ss.RData")
datFlow = datFlow2
repFlow = repFlow2
dat <- ... | /dashboard-small/global.R | no_license | andreabecsek/wessexwater | R | false | false | 2,332 | r | library(shiny)
library(ggplot2)
library(dplyr)
library(magrittr)
library(shinythemes)
library(shinydashboard)
library(zoo)
#Load Data for a single id and rename for ease
load("../../smalldata.RData")
load("../../smalljobdata.RData")
load("~/Documents/ww/datFlow_ss.RData")
datFlow = datFlow2
repFlow = repFlow2
dat <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filter_resource_frequency.R
\name{filter_resource_frequency}
\alias{filter_resource_frequency}
\alias{filter_resource_frequency.log}
\alias{filter_resource_frequency.grouped_log}
\title{Filter Resource Frequency}
\usage{
filter_resour... | /man/filter_resource_frequency.Rd | no_license | cran/edeaR | R | false | true | 4,525 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filter_resource_frequency.R
\name{filter_resource_frequency}
\alias{filter_resource_frequency}
\alias{filter_resource_frequency.log}
\alias{filter_resource_frequency.grouped_log}
\title{Filter Resource Frequency}
\usage{
filter_resour... |
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19... | /epiphy/inst/testfiles/costTotCPP/AFL_costTotCPP/costTotCPP_valgrind_files/1615926941-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 1,101 | r | testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19... |
"dwapi-r
Copyright 2017 data.world, Inc.
Licensed under the Apache License, Version 2.0 (the \"License\");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | /tests/testthat/test_create_dataset.R | permissive | datadotworld/dwapi-r | R | false | false | 1,624 | r | "dwapi-r
Copyright 2017 data.world, Inc.
Licensed under the Apache License, Version 2.0 (the \"License\");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
rm(list=ls())
df <- read.table(file="C:/Users/Mahin/Google Drive/Workspace/Local Accuracy of Classifiers/Project/Data Set Credit_g/credit.data",header=F, sep="")
write.table(df, file="C:/Users/Mahin/Google Drive/Workspace/Local Accuracy of Classifiers/Project/Data Set Credit_g/credit.data", row.names=FALSE, col.names=F... | /Local Accuracy of Classifiers/Project/data_editor.R | no_license | GreenResearchers/Local-Accuracy-of-Classifiers-1 | R | false | false | 335 | r | rm(list=ls())
df <- read.table(file="C:/Users/Mahin/Google Drive/Workspace/Local Accuracy of Classifiers/Project/Data Set Credit_g/credit.data",header=F, sep="")
write.table(df, file="C:/Users/Mahin/Google Drive/Workspace/Local Accuracy of Classifiers/Project/Data Set Credit_g/credit.data", row.names=FALSE, col.names=F... |
#' subset compendium through keyword lookup
#' @importFrom ssrch kw2docs
#' @importFrom utils read.csv
#' @param query character(1) to be found in ls(ssrch::kw2docs(get_ds4841()))
#' @param tryGrep logical(1) if TRUE, `query` does not match any keyword directly, it will be treated as a regular expression and the vecto... | /R/htx_query.R | no_license | vjcitn/HumanTranscriptomeCompendium | R | false | false | 3,384 | r |
#' subset compendium through keyword lookup
#' @importFrom ssrch kw2docs
#' @importFrom utils read.csv
#' @param query character(1) to be found in ls(ssrch::kw2docs(get_ds4841()))
#' @param tryGrep logical(1) if TRUE, `query` does not match any keyword directly, it will be treated as a regular expression and the vecto... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_biomod_ensemble_model_projection_list.R
\name{create_biomod_ensemble_model_projection_list}
\alias{create_biomod_ensemble_model_projection_list}
\title{Project biomod ensemble model onto biovar stack}
\usage{
create_biomod_ensemble_mod... | /man/create_biomod_ensemble_model_projection_list.Rd | permissive | Vizzuality/species-distribution-modelling | R | false | true | 667 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_biomod_ensemble_model_projection_list.R
\name{create_biomod_ensemble_model_projection_list}
\alias{create_biomod_ensemble_model_projection_list}
\title{Project biomod ensemble model onto biovar stack}
\usage{
create_biomod_ensemble_mod... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{nlsy97}
\alias{nlsy97}
\title{Highly processed version of NLS97 data.}
\format{
A data frame with 410 rows and 46 variables:
\describe{
\item{lftwage}{Log of wages if positive and full-time}
\item{black}{Indica... | /man/nlsy97.Rd | permissive | iangow/lmwr | R | false | true | 756 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{nlsy97}
\alias{nlsy97}
\title{Highly processed version of NLS97 data.}
\format{
A data frame with 410 rows and 46 variables:
\describe{
\item{lftwage}{Log of wages if positive and full-time}
\item{black}{Indica... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{press}
\alias{press}
\title{Prediction Error Sum of Squares}
\usage{
press(model)
}
\arguments{
\item{model}{an object of class "lm" or the output from \code{lsfit}.}
}
\value{
The prediction error sum of squares statistic.
}
\description{
Computes the predicti... | /man/press.Rd | permissive | oceanspace/smwrStats | R | false | false | 684 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{press}
\alias{press}
\title{Prediction Error Sum of Squares}
\usage{
press(model)
}
\arguments{
\item{model}{an object of class "lm" or the output from \code{lsfit}.}
}
\value{
The prediction error sum of squares statistic.
}
\description{
Computes the predicti... |
# The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
# 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
# Let us list the factors of the first seven triangle numbers:
#
# 1: 1
# 3: 1,3
# 6: 1,2,3,6... | /0012.highly_divisible_triangular_number.R | no_license | OTStats/euler-project | R | false | false | 808 | r | # The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
# 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
# Let us list the factors of the first seven triangle numbers:
#
# 1: 1
# 3: 1,3
# 6: 1,2,3,6... |
/Proyecto/server.R | no_license | DivaLover/Clase_Analisis_Numerico | R | false | false | 4,751 | r | ||
#Plot of univariate propeties
rm(list = ls())
setwd("D:/Dropbox/Junrui Di/tensor analysis/GSVD/")
load("Data/hr50.rda")
library(qdap)
library(lubridate)
library(timeDate)
library(e1071)
TIME = char2end(as.character(timeSequence(from = hm("7:00"), to = hm("23:00"), by = "hour")),char = " ",noc=1)
TIME = beg... | /manuscript plot.R | no_license | junruidi/GSVD_Scripts | R | false | false | 3,387 | r | #Plot of univariate propeties
rm(list = ls())
setwd("D:/Dropbox/Junrui Di/tensor analysis/GSVD/")
load("Data/hr50.rda")
library(qdap)
library(lubridate)
library(timeDate)
library(e1071)
TIME = char2end(as.character(timeSequence(from = hm("7:00"), to = hm("23:00"), by = "hour")),char = " ",noc=1)
TIME = beg... |
#' TensorBoard Visualization Tool
#'
#' TensorBoard is a tool inspecting and understanding your TensorFlow runs and
#' graphs.
#'
#' @param log_dir Root directory for training logs.
#' @param action Specify whether to start or stop TensorBoard for the
#' given `log_dir` (TensorBoard will be stopped automatically when... | /R/tensorboard.R | permissive | sagarora77/tensorflow | R | false | false | 6,263 | r | #' TensorBoard Visualization Tool
#'
#' TensorBoard is a tool inspecting and understanding your TensorFlow runs and
#' graphs.
#'
#' @param log_dir Root directory for training logs.
#' @param action Specify whether to start or stop TensorBoard for the
#' given `log_dir` (TensorBoard will be stopped automatically when... |
testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615827539-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 734 | r | testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6... |
#' Lists all Stack Overflow chat rooms.
#'
#' @param sort Desired sort order of rooms. Options: "active", "event", "people",
#' or "created". Defaults to "active".
#'
#' @return A character vector of room URLs.
#'
#' @examples
#'
#' tail(rooms('created'))
#' head(rooms())
#'
#' @importFrom magrittr "%>%"
#' @expo... | /rooms.R | permissive | alistaire47/room_utils | R | false | false | 1,030 | r | #' Lists all Stack Overflow chat rooms.
#'
#' @param sort Desired sort order of rooms. Options: "active", "event", "people",
#' or "created". Defaults to "active".
#'
#' @return A character vector of room URLs.
#'
#' @examples
#'
#' tail(rooms('created'))
#' head(rooms())
#'
#' @importFrom magrittr "%>%"
#' @expo... |
new_df_ <- function() {
df <- data.frame(n = c(1L, NA, 3L, NA))
df$c <- letters[5:8]
df$li <- list(9, 10:11, 12:14, "text")
df
}
new_df <- function() {
as_tibble(new_df_())
}
df <- new_df()
new_tbl2 <- function() {
tibble(
tb = df,
m = diag(4)
)
}
new_df2 <- function() {
df2 <- new_tbl2()
... | /tests/testthat/test-invariants.R | permissive | shirdekel/tibble | R | false | false | 6,376 | r | new_df_ <- function() {
df <- data.frame(n = c(1L, NA, 3L, NA))
df$c <- letters[5:8]
df$li <- list(9, 10:11, 12:14, "text")
df
}
new_df <- function() {
as_tibble(new_df_())
}
df <- new_df()
new_tbl2 <- function() {
tibble(
tb = df,
m = diag(4)
)
}
new_df2 <- function() {
df2 <- new_tbl2()
... |
# Parameter Function
#' @title Set parameters for peak profiling and parameters optimization
#' @description This function sets all the parameters used for downstream
#' pre-processing of user's raw MS data based on specific Liquid chromatography–mass spectrometry (LC-MS)
#' platform or parameters optimization.
#' The ... | /R/Params_db.R | no_license | wangyongdalt/OptiLCMS | R | false | false | 58,074 | r | # Parameter Function
#' @title Set parameters for peak profiling and parameters optimization
#' @description This function sets all the parameters used for downstream
#' pre-processing of user's raw MS data based on specific Liquid chromatography–mass spectrometry (LC-MS)
#' platform or parameters optimization.
#' The ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_doc.R
\docType{data}
\name{data_r_meas_multi}
\alias{data_r_meas_multi}
\title{Hypothetical correlation dataset simulated to statisfy the assumptions of the correction for measurement error only in multiple constructs}
\format{data.frame... | /man/data_r_meas_multi.Rd | no_license | EnterStudios/psychmeta | R | false | true | 526 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_doc.R
\docType{data}
\name{data_r_meas_multi}
\alias{data_r_meas_multi}
\title{Hypothetical correlation dataset simulated to statisfy the assumptions of the correction for measurement error only in multiple constructs}
\format{data.frame... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{predict.rrfield}
\alias{predict.rrfield}
\title{Predict from an rrfield model}
\usage{
\method{predict}{rrfield}(object, newdata = NULL,
estimate_method = c("median", "mean"), conf_level = 0.95,
interval = c("confidence", ... | /man/predict.rrfield.Rd | no_license | hbwxf/rrfields | R | false | true | 925 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{predict.rrfield}
\alias{predict.rrfield}
\title{Predict from an rrfield model}
\usage{
\method{predict}{rrfield}(object, newdata = NULL,
estimate_method = c("median", "mean"), conf_level = 0.95,
interval = c("confidence", ... |
library(CollapseLevels)
### Name: IVCalc2
### Title: IVCalc2
### Aliases: IVCalc2
### ** Examples
# Load the German_Credit data set supplied with this package
data("German_Credit")
d<-data.frame()
# Call the function as follows
d<-IVCalc2(German_Credit,resp="Good_Bad",bins=10)
# Information Value for all the ... | /data/genthat_extracted_code/CollapseLevels/examples/IVCalc2.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 365 | r | library(CollapseLevels)
### Name: IVCalc2
### Title: IVCalc2
### Aliases: IVCalc2
### ** Examples
# Load the German_Credit data set supplied with this package
data("German_Credit")
d<-data.frame()
# Call the function as follows
d<-IVCalc2(German_Credit,resp="Good_Bad",bins=10)
# Information Value for all the ... |
f <- function (x) (x - 5)^2
iter <- -5:20
z <- c()
for(i in iter){
z <- c(z,f(x=i))
}
plot(z,xlab="",xaxt="n")
axis(1, at=1:length(z), labels=iter)
optimize(f, interval=c(min(iter), max(iter)), maximum = TRUE)
optimize(f, interval=c(min(iter), max(iter)), maximum = FALSE)
| /optimize.R | no_license | fabionatalini/miscellaneous | R | false | false | 295 | r | f <- function (x) (x - 5)^2
iter <- -5:20
z <- c()
for(i in iter){
z <- c(z,f(x=i))
}
plot(z,xlab="",xaxt="n")
axis(1, at=1:length(z), labels=iter)
optimize(f, interval=c(min(iter), max(iter)), maximum = TRUE)
optimize(f, interval=c(min(iter), max(iter)), maximum = FALSE)
|
## These functions will create a "special" matrix and then stores the inverse of that matrix
## This function creates the "special" matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
se... | /cachematrix.R | no_license | ShootBakka/ProgrammingAssignment2 | R | false | false | 817 | r | ## These functions will create a "special" matrix and then stores the inverse of that matrix
## This function creates the "special" matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
se... |
## These two functions set up a framework in which matrix inverses can be
## calculated, cached, and retrieved. The functions to set and retrieve the
## cached inverse are constructed with makeCacheMatrix; cacheSolve uses these
## functions to check whether an inverse has been calculated and stored (and to
## retriev... | /cachematrix.R | no_license | iainharlow/ProgrammingAssignment2 | R | false | false | 1,423 | r | ## These two functions set up a framework in which matrix inverses can be
## calculated, cached, and retrieved. The functions to set and retrieve the
## cached inverse are constructed with makeCacheMatrix; cacheSolve uses these
## functions to check whether an inverse has been calculated and stored (and to
## retriev... |
####################################################################################
# Script to do all of our non spatial modeling work
####################################################################################
####################################################################################
# Load Dat... | /src/Modeling/non_spatial_models.R | no_license | DSPG-Young-Scholars-Program/dspg20CharlottesvilleEMSEquity | R | false | false | 6,191 | r | ####################################################################################
# Script to do all of our non spatial modeling work
####################################################################################
####################################################################################
# Load Dat... |
rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... | /Simulations/Scripts/R/Rare/Scenario 11/CMPEn50KrareScen11CB.R | no_license | yadevi/CausalMPE | R | false | false | 4,219 | r | rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... |
pval_computing <- function(tab, output) {
t <- read.table(tab);
cat("reading", tab, "Done\n")
p.val <- rep(NA, times = nrow(t));
ind_1 <- seq(1:nrow(t));
#chr1 3101 3200 4 0 68 4 0 53
#p.val[ind_1] <- lapply(ind_1, function(x) fisher.test(matrix(c(t[... | /perl_scripts_lab/DMS/DMS_fisher_BH_correction.R | no_license | KaoruTSai/CAU_PhD_scripts | R | false | false | 1,582 | r | pval_computing <- function(tab, output) {
t <- read.table(tab);
cat("reading", tab, "Done\n")
p.val <- rep(NA, times = nrow(t));
ind_1 <- seq(1:nrow(t));
#chr1 3101 3200 4 0 68 4 0 53
#p.val[ind_1] <- lapply(ind_1, function(x) fisher.test(matrix(c(t[... |
#####
##### flaubert analyses: part one
#####
library(gutenbergr)
library(stringr)
library(dplyr)
library(tidytext)
library(tokenizers)
library(SnowballC)
library(stopwords)
###
### data preparation
###
# get data from gutenbergr
gutenberg_metadata
names(gutenberg_metadata)
# author, language, has_text (TRUE/FALSE)... | /flaubert-analyses-part-one.R | no_license | brandonsepulvado/flaubert | R | false | false | 2,596 | r | #####
##### flaubert analyses: part one
#####
library(gutenbergr)
library(stringr)
library(dplyr)
library(tidytext)
library(tokenizers)
library(SnowballC)
library(stopwords)
###
### data preparation
###
# get data from gutenbergr
gutenberg_metadata
names(gutenberg_metadata)
# author, language, has_text (TRUE/FALSE)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_event_ftrs.R
\name{extract_event_ftrs}
\alias{extract_event_ftrs}
\title{Extracts events from a data stream and computes event features.}
\usage{
extract_event_ftrs(stream, supervised = FALSE, details = NULL,
win_size = 200, step_si... | /man/extract_event_ftrs.Rd | permissive | battyone/eventstream | R | false | true | 6,470 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_event_ftrs.R
\name{extract_event_ftrs}
\alias{extract_event_ftrs}
\title{Extracts events from a data stream and computes event features.}
\usage{
extract_event_ftrs(stream, supervised = FALSE, details = NULL,
win_size = 200, step_si... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/segmentation.R
\name{segmentation_internal}
\alias{segmentation_internal}
\title{Internal segmentation function}
\usage{
segmentation_internal(x, seg.var = NULL, diag.var = NULL,
order.var = NULL, scale.variable = NULL, Kmax, lmin = NULL,
... | /man/segmentation_internal.Rd | no_license | cynsky/segtools | R | false | true | 1,532 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/segmentation.R
\name{segmentation_internal}
\alias{segmentation_internal}
\title{Internal segmentation function}
\usage{
segmentation_internal(x, seg.var = NULL, diag.var = NULL,
order.var = NULL, scale.variable = NULL, Kmax, lmin = NULL,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BlockDetection.R
\docType{class}
\name{BlockDetectionSettings}
\alias{BlockDetectionSettings}
\title{Reference type for storing the settings for block detection.}
\description{
Reference type for storing the settings for block detection.
}
\s... | /man/BlockDetectionSettings.Rd | no_license | sumade123/HybridCheck | R | false | true | 917 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BlockDetection.R
\docType{class}
\name{BlockDetectionSettings}
\alias{BlockDetectionSettings}
\title{Reference type for storing the settings for block detection.}
\description{
Reference type for storing the settings for block detection.
}
\s... |
read.csv(file.choose())-> data
data$REAC.R
t.test(data$REAC.R,data$REAC.U)$conf
t.test(data$REAC.R,data$REAC.U, paired = FALSE)$conf
library(dplyr)
data %>% mutate(difference = REAC.R-REAC.U) -> data2
t.test(data2$difference)$conf
t.test(data$REAC.R,data$REAC.U, paired =TRUE)$conf
| /Quiz Ch 7.R | no_license | fraclad/StatClass | R | false | false | 291 | r | read.csv(file.choose())-> data
data$REAC.R
t.test(data$REAC.R,data$REAC.U)$conf
t.test(data$REAC.R,data$REAC.U, paired = FALSE)$conf
library(dplyr)
data %>% mutate(difference = REAC.R-REAC.U) -> data2
t.test(data2$difference)$conf
t.test(data$REAC.R,data$REAC.U, paired =TRUE)$conf
|
##############################
##Cell Cycle Lab Report Code##
##############################
##Inialise the Appropriate libraries
library(dplyr)
library(tidyverse)
library(ggplot2)
library(gridExtra)
library(plotly)
##############################
## LOAD DATA
##INPUT: 2 CSV files loaded from the worki... | /BL2301/Week8/Main.r | no_license | OWissett/BiologySecondYear | R | false | false | 1,663 | r | ##############################
##Cell Cycle Lab Report Code##
##############################
##Inialise the Appropriate libraries
library(dplyr)
library(tidyverse)
library(ggplot2)
library(gridExtra)
library(plotly)
##############################
## LOAD DATA
##INPUT: 2 CSV files loaded from the worki... |
#### Generate Rmd files for each chapter ------
## Load the form
mainDir <- getwd()
## Load all required packages
source(paste0(mainDir,"/code/0-packages.R"))
library(koboloadeR)
### Load the data
cat("\n\n Loading data. It is assumed that the cleaning, weighting & re-encoding has been done previously \n")
househol... | /code/3-generate-report.R | no_license | unhcr-egypt/community-capacity-mapping | R | false | false | 46,356 | r | #### Generate Rmd files for each chapter ------
## Load the form
mainDir <- getwd()
## Load all required packages
source(paste0(mainDir,"/code/0-packages.R"))
library(koboloadeR)
### Load the data
cat("\n\n Loading data. It is assumed that the cleaning, weighting & re-encoding has been done previously \n")
househol... |
#%%
rm(list = ls())
library(LalRUtils)
pkgs <- c("knitr", "dplyr", "data.table", "foreign","ggplot2",
"tictoc", "lfe")
load_or_install(pkgs)
setwd('~/dsk/code/forks/conley-se/')
#%%
dt <- read.dta("data/new_testspatial.dta") %>% data.table()
setnames(dt, c("latitude", "longitude"), c("lat", "lon"))
dt %>% glimpse
... | /testing.R | no_license | apoorvalal/conley-se | R | false | false | 718 | r | #%%
rm(list = ls())
library(LalRUtils)
pkgs <- c("knitr", "dplyr", "data.table", "foreign","ggplot2",
"tictoc", "lfe")
load_or_install(pkgs)
setwd('~/dsk/code/forks/conley-se/')
#%%
dt <- read.dta("data/new_testspatial.dta") %>% data.table()
setnames(dt, c("latitude", "longitude"), c("lat", "lon"))
dt %>% glimpse
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Normalization.R
\name{DaMiR.normalization}
\alias{DaMiR.normalization}
\title{Filter non Expressed and 'Hypervariant' features and Data
Normalization}
\usage{
DaMiR.normalization(data, minCounts = 10, fSample = 0.5, hyper = c("yes",
"no"), ... | /man/DaMiR.normalization.Rd | no_license | elmahyai/DaMiRseq | R | false | true | 3,017 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Normalization.R
\name{DaMiR.normalization}
\alias{DaMiR.normalization}
\title{Filter non Expressed and 'Hypervariant' features and Data
Normalization}
\usage{
DaMiR.normalization(data, minCounts = 10, fSample = 0.5, hyper = c("yes",
"no"), ... |
# A modelling/templating framework implementing the following functionality:
# 1. Serial/Parallel application of templates on a model(s)
# 2. Running a list of models and producing tidy result tables
# 3. The conversion of result tables into a named vector of values
# 4. The loading/subsitution/writing of result templa... | /modelling-functions.R | no_license | admash/templateModeller | R | false | false | 5,323 | r | # A modelling/templating framework implementing the following functionality:
# 1. Serial/Parallel application of templates on a model(s)
# 2. Running a list of models and producing tidy result tables
# 3. The conversion of result tables into a named vector of values
# 4. The loading/subsitution/writing of result templa... |
rm(list=ls())
### Company : Stevens
# Project : R Bootcamp
# Purpose : Basic R
# First Name : Khasha
# Last Name : Dehnad
# Id : 12345
# Date :
# Comments :
###### simple statement #####
x<-25
x
hello<-"Hello World"
print(hello)
hello
###### getting h... | /CS513/R_examples/Mod01_Basics_01.R | no_license | kaitlynnprescott/Classes | R | false | false | 1,042 | r |
rm(list=ls())
### Company : Stevens
# Project : R Bootcamp
# Purpose : Basic R
# First Name : Khasha
# Last Name : Dehnad
# Id : 12345
# Date :
# Comments :
###### simple statement #####
x<-25
x
hello<-"Hello World"
print(hello)
hello
###### getting h... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get0.R
\name{get0}
\alias{get0}
\title{Backport of get0 for R < 3.2.0}
\usage{
get0(x, envir = pos.to.env(-1L), mode = "any", inherits = TRUE,
ifnotfound = NULL)
}
\description{
See the original description in \code{base::get0}.
}
\examples... | /packrat/src/backports/backports/man/get0.Rd | no_license | wjhopper/PBS-R-Manual | R | false | true | 566 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get0.R
\name{get0}
\alias{get0}
\title{Backport of get0 for R < 3.2.0}
\usage{
get0(x, envir = pos.to.env(-1L), mode = "any", inherits = TRUE,
ifnotfound = NULL)
}
\description{
See the original description in \code{base::get0}.
}
\examples... |
## ------------------------------------------------------------------------
lagk.sub <- lagk.df %>%
select(site, date_time, flow) %>%
filter(site %in% c("lfalls", "predicted"),
date_time >= "1995-01-01") %>%
mutate(year = year(date_time),
month = month(date_time, label = TRUE)) %>%
distinct... | /notebook/missing_water/extract_scripts/missing_water_assessment.R | no_license | icprbcoop/lagk | R | false | false | 1,713 | r | ## ------------------------------------------------------------------------
lagk.sub <- lagk.df %>%
select(site, date_time, flow) %>%
filter(site %in% c("lfalls", "predicted"),
date_time >= "1995-01-01") %>%
mutate(year = year(date_time),
month = month(date_time, label = TRUE)) %>%
distinct... |
rm(list=ls(all=TRUE))
library(NlsyLinks)
pathLinks <- 'F:/Projects/RDev/NlsyLinksStaging/Datasets/Links2011V31Draft.csv'
pathOutcome <- 'F:/Projects/RDev/NlsyLinksStaging/Datasets/PoliticalData.csv'
pathLinkedOutcome <- 'F:/Projects/RDev/NlsyLinksStaging/Datasets/LinkedPolitical.csv'
#Read the CSVs
dsLinks <- read.cs... | /playgrounds/PlaygroundPolitical.R | no_license | okeep/NlsyLinks | R | false | false | 1,783 | r | rm(list=ls(all=TRUE))
library(NlsyLinks)
pathLinks <- 'F:/Projects/RDev/NlsyLinksStaging/Datasets/Links2011V31Draft.csv'
pathOutcome <- 'F:/Projects/RDev/NlsyLinksStaging/Datasets/PoliticalData.csv'
pathLinkedOutcome <- 'F:/Projects/RDev/NlsyLinksStaging/Datasets/LinkedPolitical.csv'
#Read the CSVs
dsLinks <- read.cs... |
#' @title Predict a numeric response using (un)weighted averaging.
#' @description Process a matrix of predicted responses and form a column-wise
#' estimate based on (un)weighted averaging.
#'
#'
#' @param preds is matrix of predicted classes
#' @param weights is a vector of length equal to \code{nrow(preds)}
#' @pa... | /boostr/R/predictResponseFromWeightedAverage.R | no_license | ingted/R-Examples | R | false | false | 1,339 | r | #' @title Predict a numeric response using (un)weighted averaging.
#' @description Process a matrix of predicted responses and form a column-wise
#' estimate based on (un)weighted averaging.
#'
#'
#' @param preds is matrix of predicted classes
#' @param weights is a vector of length equal to \code{nrow(preds)}
#' @pa... |
# Load libraries
library(icesTAF)
library(dplyr)
library(tidyr)
mkdir("data")
# year
load("data/globals.RData")
age_data <- read.taf("data/age_data.csv")
advice <- read.taf(taf.data.path("other", "bss.27.4bc7ad-h 2019 Advice scenarios.csv"))
other_data <- list()
# for the % change in catch options
## ssb at star... | /data_5_various.R | no_license | ices-taf/2020_bss.27.4bc7ad-h_catchAllocationTool-for-2021 | R | false | false | 1,921 | r |
# Load libraries
library(icesTAF)
library(dplyr)
library(tidyr)
mkdir("data")
# year
load("data/globals.RData")
age_data <- read.taf("data/age_data.csv")
advice <- read.taf(taf.data.path("other", "bss.27.4bc7ad-h 2019 Advice scenarios.csv"))
other_data <- list()
# for the % change in catch options
## ssb at star... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expression.R
\name{feature_source}
\alias{feature_source}
\title{Retrieves (organism) source of gene/transcript identifiers}
\usage{
feature_source(x, ...)
}
\arguments{
\item{x}{A vector of identifiers}
}
\description{
Parses ensembl identif... | /man/feature_source.Rd | no_license | denalitherapeutics/archs4 | R | false | true | 442 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expression.R
\name{feature_source}
\alias{feature_source}
\title{Retrieves (organism) source of gene/transcript identifiers}
\usage{
feature_source(x, ...)
}
\arguments{
\item{x}{A vector of identifiers}
}
\description{
Parses ensembl identif... |
library(agridat)
### Name: graybill.heteroskedastic
### Title: Multi-environment trial of wheat varieties with heteroskedastic
### yields
### Aliases: graybill.heteroskedastic
### ** Examples
data(graybill.heteroskedastic)
dat <- graybill.heteroskedastic
# Genotypes are obviously not homoscedastic
boxplot(yield... | /data/genthat_extracted_code/agridat/examples/graybill.heteroskedastic.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,560 | r | library(agridat)
### Name: graybill.heteroskedastic
### Title: Multi-environment trial of wheat varieties with heteroskedastic
### yields
### Aliases: graybill.heteroskedastic
### ** Examples
data(graybill.heteroskedastic)
dat <- graybill.heteroskedastic
# Genotypes are obviously not homoscedastic
boxplot(yield... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.