blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 327 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 5 134 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 46
values | visit_date timestamp[us]date 2016-08-02 22:44:29 2023-09-06 08:39:28 | revision_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | committer_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | github_id int64 19.4k 671M ⌀ | star_events_count int64 0 40k | fork_events_count int64 0 32.4k | gha_license_id stringclasses 14
values | gha_event_created_at timestamp[us]date 2012-06-21 16:39:19 2023-09-14 21:52:42 ⌀ | gha_created_at timestamp[us]date 2008-05-25 01:21:32 2023-06-28 13:19:12 ⌀ | gha_language stringclasses 60
values | src_encoding stringclasses 24
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 9.18M | extension stringclasses 20
values | filename stringlengths 1 141 | content stringlengths 7 9.18M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
935b8eee42f8d872bde7b0e8fff77e1305aa2a28 | ab69ee1913706f8f4b627fb4ab7f85f746eeba25 | /Feature_001.R | 84cbd595d6c0008ecff6b529804966b84e43f54c | [] | no_license | tap222/SMART_CUBE | c70b3cf987669a935686c14a543cf7534a23972f | f6a7e951f77e76c49cad95599dbbabf0f3e864d1 | refs/heads/master | 2021-09-07T10:47:57.215740 | 2018-02-21T20:07:55 | 2018-02-21T20:07:55 | 102,978,437 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 466 | r | Feature_001.R | setwd('/home/tapas/')
data = read.csv('cs-trainig-outlier.csv', header =T)
data = read.csv('cs-test-outlier.csv', header =T)
Debt = data$MonthlyIncome * data$DebtRatio
data = as.data.frame(cbind(data,Debt))
data = data[,-c(6,7)]
test = read.csv('cs-test.csv', header =T)
Debt = test$MonthlyIncome * test$DebtRatio
tes... |
66ba450bc592ddcad65ce105c0c29e22e267052c | e4c2b000268ef0f3dc2b8d79dd7ffefb1741e382 | /bikelines.R | 788783dd1499dbc75d48b1123c1e0c9f42212a7c | [] | no_license | faiazrmn/austin_bike_routes | d1bb9f355ab1a9be8c1068e4563ff65a64809463 | 2cc617798fcd736e3e7abfc09f876fe78e4d2e9f | refs/heads/main | 2023-07-02T08:48:57.220024 | 2021-08-04T08:23:09 | 2021-08-04T08:23:09 | 392,607,826 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,229 | r | bikelines.R | library(plotly)
library(dplyr)
# Data available on kaggle
bike <- read.csv("austin_bikeshare_trips.csv")
station <- read.csv("austin_bikeshare_stations.csv")
glimpse(bike)
bike <- bike %>%
left_join(station, by = c("start_station_id" = "station_id")) %>%
mutate(start_long = longitude,
start_lat = lati... |
c78bf380f26cd3a26b04a05963c474188c4c4cef | 73b219e1f517a434dcba3f640e1020661529118d | /man/PlotR2OneFact.Rd | d93e83bd69dd2fe1eb806b19e3d91f0719bf76b1 | [] | no_license | jordanaron22/ImputingMetabolites | 77e85ac2c7f70425405a8b6372e3cc8f8a87651c | 333b91f2a63dbb980dd72e34b662b42c8562e38b | refs/heads/main | 2023-05-03T00:34:47.366095 | 2021-05-26T16:53:53 | 2021-05-26T16:53:53 | 370,790,894 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 472 | rd | PlotR2OneFact.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ComparingImpMethods.R
\name{PlotR2OneFact}
\alias{PlotR2OneFact}
\title{Plots R2 of one factor imputation}
\usage{
PlotR2OneFact(r2.df)
}
\arguments{
\item{r2.df}{R2 dataframe, output from CalculateR2()}
}
\value{
Line chart of R2 values by i... |
7d51feb9dd69662b68e4d019d890334ede6df98e | 0884a38ae83dd78e92ec696a634430a8b48a830b | /run_analysis.R | 61e9c63807d4c0357d1103939240c1b5efdea23f | [] | no_license | patriciacrain/Samsung-Assignment | 9f9b9af0f0014b8375cbfdb9170ee566ad0b5eb6 | fc98530d84fb595e9012303d57cfd403b8e657f4 | refs/heads/master | 2020-05-18T18:43:21.508320 | 2014-05-25T17:19:58 | 2014-05-25T17:19:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,484 | r | run_analysis.R |
Analysis <- function(){
## Read in the features, select the ones we want and reformat them a bit
features <- read.table("features.txt", header=F)
features <- features[grepl("-mean\\(\\)|-std\\(\\)", features$V2),]
features$V2 <- gsub("\\(\\)","",features$V2)
features$V2 <- gsub("\\-",".",features$V2)
##... |
5e335ea7c5a76a45d6669b73dbb7d9cf8a9836a7 | e004f559d717386b20aa38b0a10ab41a83c08ba7 | /Initiation/TP6/tp6.R | 5ff7845409021b65020fc3870f4f4ac8a0c0d090 | [] | no_license | Timsctt/R | 39566785563a50f48bdc569edbc7ae38855cd8ba | a86764b07605d404bdd4d69b75d7691d2023f5f6 | refs/heads/master | 2023-03-10T07:24:00.780945 | 2019-07-27T06:55:55 | 2019-07-27T06:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,553 | r | tp6.R | #TP6
##############
#Exercice 1
##############
#1
df<-read.table("CollegeDistance.csv",sep = ";", header= T)
head(df)
#2
mean(df$ed)
mean(df$ed[df$female==0])
#3
sd(df$bytest[df$hispanic==1])
#4
sum(df$hispanic==1&df$black==1)
which(df$hispanic==1&df$black==1)
#5
hist(df$bytest, main="Répartition des étudiants en... |
adcb5505d78d20eb3222ad3a4ce3da48fd0b10ea | 37f6751867e86d659950e1d3d5dd2ef9f3d5d0a4 | /test1.R | ab04402e93ffc18e60cf10cc09fb1d63f006a2cd | [] | no_license | dvicencio/Airpollution | a8063df61f80bcf7a8141ac197f247bbffd73258 | e90f6894714e199db7fbaab5f7eb3299fdf9a4e8 | refs/heads/main | 2023-07-04T22:31:27.907127 | 2021-08-25T19:52:21 | 2021-08-25T19:52:21 | 399,628,300 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 329 | r | test1.R | corr1 <- function(directory, threshold = 0) {
files_full <- list.files(directory, full.names = TRUE)
dat <- data.frame()
for (i in 1:332){
A <- read.csv(files_full[i])
B <- complete.cases(A)
C <- sum(as.numeric(B))
if(C > threshold){
dat <- rbind(dat, C)
}
}
print(dat)
... |
87d109ebc004dc63a3f5259b305b79447944ee1c | 2ab3480f71a9858a42bd06e175fb6b4a3e9063ad | /R/ggrepel.R | da4d4140488858185fb05dfad662dbea5a3d6cd9 | [] | no_license | ProjectMOSAIC/ggformulaExtra | 3f5a4ddeff552eef65d0ba9d68858288f271453c | 85743e150dcf44ac69c44ff9bd64066164f78e0c | refs/heads/master | 2020-03-19T03:23:30.858407 | 2018-06-01T21:41:10 | 2018-06-01T21:41:10 | 135,723,726 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,722 | r | ggrepel.R | #' Repulsive textual annotations
#'
#' `gf_text_repel()` adds a layer of text; `gf_label_repel()` additionally
#' draws a rectangle beneath the text, making it easier to read. In both
#' cases the labels repel away form each otehr and the data points.
#'
#' @inherit ggformula::gf_text
#' @inherit ggrepel::geom_text_re... |
bbaa6e30c22e3b11da4a23857356f519bc92bafe | 2536276335fe9690785cdce37a074fde17165dd3 | /lawlargenumbers.R | 1ea1860d736bb2737faffc11efeca6b3fd146056 | [] | no_license | sdunbarne/Math-Modeling-Econ-Finance-R | a609e776da056bded1d1b0d4226a9e0ed538b7ed | ae021e5c1ef871dfd3267cc490e46464988d2c89 | refs/heads/master | 2020-06-03T02:44:03.862654 | 2019-06-11T15:40:41 | 2019-06-11T15:40:41 | 191,401,843 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,172 | r | lawlargenumbers.R | p <- 0.5
n <- 10000
k <- 1000
coinFlips <- array( (runif(n*k) <= p), dim=c(n,k))
# 0+ coerces Boolean to numeric
headsTotal <- colSums(coinFlips)
# 0..n binomial rv sample, size k
epsilon <- 0.01
mu <- p
prob <- sum( abs( headsTotal/n - mu ) > epsilon )/k
cat(sprintf("Empirical probability: %f \n", prob ))
## NAME:... |
a198469f36d14fe06ca5e8eb047b8b9857302217 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/gethr/examples/eth_submitHashrate.Rd.R | bd290093dd10fd2199e43e3be94c7aee669b0349 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 267 | r | eth_submitHashrate.Rd.R | library(gethr)
### Name: eth_submitHashrate
### Title: Mining hashrate submission.
### Aliases: eth_submitHashrate
### ** Examples
## No test:
eth_submitHashrate(5200050, '0x1234567890abcdef1234567890abcdef12345678
90abcdef1234567890abcdef')
## End(No test)
|
9e44727ddf1706261a447be23e682544e21ca38f | cd2f27faac9571f15afaf4c63e90d001b7ed33de | /man/calc_U_feed_U_eiou_r_eiou.Rd | 554bf4726937ec6d3f439ffed94201935c96fd90 | [
"MIT"
] | permissive | EnergyEconomyDecoupling/MWTools | 2430ad483b9bd759088e0a79572ca691ce05e9e4 | a3488a24a850d7e2338307446b66961ec3feb68a | refs/heads/master | 2023-09-04T13:03:10.451579 | 2023-08-20T09:30:56 | 2023-08-20T09:30:56 | 308,628,241 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,432 | rd | calc_U_feed_U_eiou_r_eiou.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psut.R
\name{calc_U_feed_U_eiou_r_eiou}
\alias{calc_U_feed_U_eiou_r_eiou}
\title{Calculate U_feed, U_eiou, and r_eiou columns from a U matrix}
\usage{
calc_U_feed_U_eiou_r_eiou(
.df = NULL,
U = MWTools::psut_cols$U,
U_feed = MWTools::ps... |
0bf3b515527d1d4410ec251f04a62ea50bc22ffe | 40bab98c8af2e2c7950c81932d7b4517ac8deecb | /question15.R | 1b55eb93ca6c6ee4fb3a6cbf819b5acbd5e2fc5d | [] | no_license | brittbarreto/es2019HW7 | 6349e18086d094aa23575b7c6360e37d8d83e77d | 1bdcf1216d0f9faeb2723f51953ceeb4006b7c8c | refs/heads/master | 2020-04-30T04:49:04.162842 | 2019-03-20T06:14:00 | 2019-03-20T06:14:00 | 176,617,352 | 0 | 0 | null | 2019-03-19T23:59:36 | 2019-03-19T23:59:35 | null | UTF-8 | R | false | false | 2,029 | r | question15.R | library(data.table)
library(stringr)
library(readxl)
library(ggforce)
# when you do HW7, skip data preparation and go to the function I made.
## import the data
#data downloading and preparation
o3.filenames <- list.files("data/ca_ozone", pattern = ".txt")
#change the working directory
setwd("data/ca_ozone")
#Load... |
0db5c85c88c630242b7f7b128e5b2101be00894f | d4d4f909ecaff0c21d83443a8e0eebbd44291965 | /dataAnalysis.R | 2d704941d5844e14f20ba1357f6fa88da272b2a2 | [] | no_license | ysamwang/graphConfSet | 4861f46f4b1b128ef0de0b659dbb50911fdd6a09 | ecb3ff18d4b326558c99f5d93b9e3f5d80a0f8f6 | refs/heads/master | 2021-01-02T11:08:50.056227 | 2020-02-10T19:49:05 | 2020-02-10T19:49:05 | 239,594,477 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 550 | r | dataAnalysis.R | Y <- as.matrix(read.csv("data/Bollentestdata.txt", sep = "\t", header = T))
Y <- scale(Y)
par(mfrow = c(2,3))
for(i in 1:6){
hist(Y[,i])
}
outFisher <- exhaustiveBB(Y, verbose = T, aggMethod = "fisher", K = 3, alpha = .1)
outOther <- exhaustiveBB(Y, verbose = T, aggMethod = "other", K = 3, alpha = .1)
getPvalSpee... |
73a13c0577b322e2dfbb91bc4d064f8d1bef8e03 | 30d21f7163d8a0382e05566a48c0b042dc96ced6 | /Raven Modelling Library/Spatial Processing/Landuse_Changes.R | 206424a87806988879e1eb2cd6134089eca3c9ac | [] | no_license | mchernos/R-Hydro-Library | 123ad54592aa5e9b1fbb17d5dbe9a5e609c6b3d7 | 402c333918fb71736fc269667f4094f24d5881c2 | refs/heads/master | 2020-05-21T13:35:17.496809 | 2018-02-20T16:32:59 | 2018-02-20T16:32:59 | 45,942,745 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,924 | r | Landuse_Changes.R | # Read in all HRUs and get Differencing Sets
# M Chernos - January 25, 2017
#
rm(list = ls())
library('tidyverse')
# Function to read in HRU files
read.hrus = function(file){
temp = read_csv(paste0('AO_HRUs/',file)) %>%
select(hru, COVER)
colnames(temp) = c('hru', gsub('adams_hrus_', '', gsub('.csv', '',file)... |
95c19810b484c5048d111cf4eb352a93ab01fde8 | c0fdc13358da83ec9dc7a12bb18b886c3d09f570 | /Harden in the playoffs.R | 8ec65e59cd627cde0f0a30f7c7cd09ed883b77e3 | [] | no_license | lbt3/DSCI304FinalProjectScripts | f10c4da6558546216ad4c39e36fc31d17fadb5a0 | 72e55aacf024221ea40423878a2272e2e9982729 | refs/heads/main | 2023-04-23T02:39:24.648682 | 2021-05-11T08:50:00 | 2021-05-11T08:50:00 | 366,314,516 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,464 | r | Harden in the playoffs.R | setwd("~/Documents/Rice_Junior_Year/Second_Semester/DSCI_304")
library(readxl)
library(ggplot2)
library(dplyr)
library(plotly)
playoffstats <- read_excel("Playoff Stats.xlsx")
#again filtering out small sample sizes
playoffstats <- subset(playoffstats, playoffstats$MP > 5 & playoffstats$MP_total > 48)
playoffstatsgrou... |
4cd1789b1191b67e234cd2a239e457e62497d52a | 31c2c16323ca5935c2381ef0d379c5b8a09df3ff | /man/rq.fit.sfn_start_val.Rd | 7103d542b9b110d7eefbedd4f582e047c06d15c7 | [] | no_license | mazikazemifinance/quantspace | 61c2ac5fd6fae1794236d8f067e04e4570d1bff0 | ba13260f0e653cc3b0c541a990dab94f5a1edfc1 | refs/heads/master | 2022-12-05T02:21:44.475650 | 2020-09-04T15:56:44 | 2020-09-04T15:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,062 | rd | rq.fit.sfn_start_val.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quant_regress.R
\name{rq.fit.sfn_start_val}
\alias{rq.fit.sfn_start_val}
\title{Sparse Regression Quantile Fitting with Weights}
\usage{
rq.fit.sfn_start_val(
a,
y,
tau = 0.5,
rhs = (1 - tau) * c(t(a) \%*\% rep(1, length(y))),
contr... |
0ec5b10e3718c5bfbb97108d1d50cd51e061a056 | 0ee50dd399127ebe38bc8f5197114d46d717ccd7 | /R/print.combat.R | 39d4e813a9aca223f0c6eeaf3da6c8db3059aacf | [] | no_license | cran/bapred | 0051d57056f886e6df028255f0c85339c70d66f1 | e24720be3c6f82c2d5422ae97a8f12f5edc15adc | refs/heads/master | 2022-07-07T03:06:58.840921 | 2022-06-22T07:20:13 | 2022-06-22T07:20:13 | 48,076,867 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 404 | r | print.combat.R | print.combat <-
function(x, ...) {
cat("'ComBat'-adjusted training data with information for addon batch effect adjustment.", "\n")
cat(paste("Number of batches: ", x$nbatches, sep=""), "\n")
cat(paste("Number(s) of observations (within each batch): ", paste(as.vector(table(x$batch)), collapse=", "), sep=""... |
a10e99147af18f617d4af17d965700b5b78f5072 | 21308f47abf9b54dba794d1c8df2f2c49b5c1137 | /man/metric.cluster.global.Rd | 2e54b1278009abf729a0451892bf668d25672136 | [] | no_license | cran/fastnet | e8eef85c2bf4027cd552bd3c54bed7fca07ecc0c | f22b02e806abcbda84fde09eebacfe3ba8b2069b | refs/heads/master | 2021-01-12T04:34:36.671878 | 2020-12-01T06:40:02 | 2020-12-01T06:40:02 | 77,675,556 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 921 | rd | metric.cluster.global.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metric.cluster.global.R
\name{metric.cluster.global}
\alias{metric.cluster.global}
\title{Global Clustering Coefficient}
\usage{
metric.cluster.global(g)
}
\arguments{
\item{g}{The input network.}
}
\value{
A real constant.
}
\d... |
4bc14c763bb92e8d81ac6b4f05b9c03d20ba2986 | 8922b91ab54d00b9a7b239c6847b3b5ee65868ca | /project/knn.R | 0bccd17d07dcf0859ed17a363f81fe1843b8f955 | [] | no_license | sanjaysajjan/dataminingnjit | ade516b84ab9ac527155fa09a46d38d17857fd90 | 4fd13c534387cecba2614503667b12c24f0c561b | refs/heads/master | 2022-12-10T14:43:04.989889 | 2020-09-11T23:55:59 | 2020-09-11T23:55:59 | 294,834,622 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,579 | r | knn.R | #KNN
#mydata<- mydata[-c(4)]
data(training_set)
str(training_set)
summary(training_set)
knntraindata <- mydata[,-c(2,4,9,10)]
summary(oct2015)
accuracy_test <- oct2015[,8]
str(accuracy_test)
summary(accuracy_test)
#data(training_set)
str(knntraindata)
#summary(knntraindata$TRUE.date_block_num)
#summary(... |
b6f4b3d29febf937aae1e9ad815322d1475cc4f6 | 81d5295337b437004070aa0bdb74e9884f705509 | /plot3.R | a12fa62d686159cfdd9bf888a6c4f1f369793e85 | [] | no_license | kanwarujjaval/ExData_Plotting1 | 02ee0f12365b86b01b435f55b9b6c04c4d37e541 | f2ab1243bc936929f357b5b70d2d0100c3d1ee22 | refs/heads/master | 2021-01-18T05:59:30.791285 | 2014-07-13T20:54:32 | 2014-07-13T20:54:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 831 | r | plot3.R | #read file
data <- read.table("household_power_consumption.txt",
header=T,
sep=";",
na.strings="?")
#extract subset data
usable <- subset(data, Date %in% c("1/2/2007","2/2/2007"))
#convert date and time from string to Date
usable$datetime <- paste(usable$Date, usable$Time)
usable$datetime <- strptime(usable$dateti... |
8a0b3ad0aa4d2bd76679720852c6e0105f105e4e | c477784547e1b392fae24aa47438c7eeb006c390 | /mrsat/mrsat-master/mrsat-master/man/summary.SATcurve.Rd | 773d313a966ac859652a44fa689c3ad238c40080 | [
"MIT"
] | permissive | ilte3/satf_project | 58d0cd78552dd0a0f7b678a32f795370f29ec29a | c3adac9b531c71fee73e967eb42e139c79f029cc | refs/heads/master | 2021-06-30T04:32:19.427026 | 2020-10-13T21:05:13 | 2020-10-13T21:05:13 | 179,873,157 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,472 | rd | summary.SATcurve.Rd | \name{summary.SATcurve}
\alias{summary.SATcurve}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Summarize SATcurve object
}
\description{
Summary method for an "SATcurve" object
}
\usage{
\method{summary}{SATcurve}(object, ...)
}
\arguments{
\item{object}{
object of class \code{SATcurve}
}
... |
3bac8b66c2f9760dee7d8b311ca0246762399e8a | 537d337b9dd654bc117675f0e1ffffa0add75fd7 | /Compare list and vector.R | 32333006575f123978580b9f1fe04b40fbbe503d | [] | no_license | DenzMaou/Compare-List-and-Vector | acd83757eda9beb6d5bdd95538db4bcef82d9dc7 | e9998d20c6e7b63a1d061ae7080d7e1796f87a68 | refs/heads/master | 2022-11-10T12:19:40.629150 | 2020-06-12T04:12:22 | 2020-06-12T04:12:22 | 271,705,657 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,762 | r | Compare list and vector.R | cat("\104")
rm(list = ls())
setwd("C:/Users/USER/DESKTOP/Rscript(Deniel)")
getwd()
dir()
#Compare List and Vector3
Vec1 <-c(44,25,64,96,30)
Vec2 <-c(1,FALSE,9.8,"hello world")
typeof(Vec1)
typeof(Vec2)
x<-c("Jan","Feb","March","Apr","May","June","July")
y<-x[c(3,2,7)]
print(y)
#List
x<-c("Jan","Feb","... |
8d0e8c874f78c536165892a33acba0dba3fee134 | 491bc7af32e2f56725bbbd194c6ba871d2095bf6 | /ExploratoryAnalysis/HCluster-Kmeans-Week3-ExploratoryDataAnalysis.R | cb264afece4b286f38299d2e31fb787d601f6d48 | [] | no_license | rkmalaiya/DataMiningSpecialization | 913bd8dc88b9ebe9cf37192aadf9fa8a9579f47a | ac8218fd8bf38e0a83cb560ce256cfe72cbcf204 | refs/heads/master | 2021-01-19T09:41:55.675637 | 2015-09-18T20:49:15 | 2015-09-18T20:49:15 | 32,335,642 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 840 | r | HCluster-Kmeans-Week3-ExploratoryDataAnalysis.R | set.seed(1234)
par(mar=c(0,0,0,0))
x <- rnorm(12, mean = rep(1:3, each = 4), sd = 0.2)
y <- rnorm(12, mean = rep(c(1,2,1), each = 4), sd = 0.2)
plot(x,y, col = "blue", pch = 19, cex = 2)
text(x + 0.05, y + 0.05, labels = as.character(1:12))
mydf <- data.frame(x = x, y = y)
distxy <- dist(mydf)
## Hierarchical Cluster
h... |
5366c32075504c3e92f9b17c38b6a9515b3a6a09 | 2dc78a3377c57e0e5fbe8ee41e85942946666a36 | /man/nlaDrawdownIndicator.Rd | cf93987054528997ba19ee8ff0357549374eee84 | [] | no_license | jasonelaw/aquamet | e5acce53127de4505486669597aed3dd74564282 | 3464af6dbd1acc7b163dc726f86811249293dd92 | refs/heads/master | 2020-03-25T16:19:46.810382 | 2018-08-07T20:51:01 | 2018-08-07T20:51:01 | 143,925,702 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,375 | rd | nlaDrawdownIndicator.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NLAphab_indicators.r
\name{nlaDrawdownIndicator}
\alias{nlaDrawdownIndicator}
\title{Calculate NLA Drawdown Indicator}
\usage{
nlaDrawdownIndicator(x, sampID, bfxVertDD, bfxHorizDD, ecoreg, lake_origin)
}
\arguments{
\item{x}{Input data frame... |
df8f34bb48be45bc98f13bee2fd89fdc5871e67b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/uwIntroStats/examples/lspline.Rd.R | 09383030403a076f7edf86b9ffaf4ccd6ed08af3 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 413 | r | lspline.Rd.R | library(uwIntroStats)
### Name: lspline
### Title: Create Linear Splines
### Aliases: lspline lsplineD
### Keywords: ~kwd1 ~kwd2
### ** Examples
# Reading in a dataset
mri <- read.table("http://www.emersonstatistics.com/datasets/mri.txt", header=TRUE)
attach(mri)
# Create a spline based on absolute
lspline(ldl, c(7... |
cc2edfed99193a6a208531cc8e8ced7e31dc9427 | 2d367cd526ec7482f129a4660a0dab5fa7ae5df1 | /scripts/scripts_20180521/generate_manuscript_figures/aDNAStatsFigures/aDNAStatsFiguresForSI.R | 3e71b79ad59d26b92ed485ec95207b356b4ef834 | [] | no_license | ab08028/OtterExomeProject | 1bad439e2c42162e854eab995c45e6c8391b2640 | 96c7758d424c44ae4d52dc951d89a59761b9a2c7 | refs/heads/master | 2021-06-01T20:23:02.554308 | 2020-08-13T17:01:22 | 2020-08-13T17:01:22 | 134,327,795 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 3,897 | r | aDNAStatsFiguresForSI.R | require(ggplot2)
require(scales)
######### aDNA plotting stats for supplement: A13, A29, A30 only:
# do we need to plot all the failed ones as well? Not sure how that all goes. # can add if asked?
plmxStats <- read.table("/Users/annabelbeichman/Documents/UCLA/Otters/OtterExomeProject/results/QC_Reports/plmx_mappingSta... |
9d340325296b021a1b80a32b929d769d365aa8a0 | 673e813b89de8f8ccffe671c6b6070026abbc53d | /R/EventPointer_RNASeq.R | 64684bb3db1d45e13a2d1d1120ab34eec13ea593 | [] | no_license | jpromeror/EventPointer | 4eaa1f3a6bc653e72afef317517eec42dff41627 | aa24e3a15c6bdbd7b6c950b962b3d24c3eb80950 | refs/heads/master | 2023-05-25T16:48:24.853661 | 2023-05-15T11:14:22 | 2023-05-15T11:14:22 | 80,099,260 | 4 | 0 | null | 2022-11-28T11:24:50 | 2017-01-26T09:01:24 | R | UTF-8 | R | false | false | 8,016 | r | EventPointer_RNASeq.R | #' Statistical analysis of alternative splcing events for RNASeq data
#'
#' Statistical analysis of all the alternative splicing events found in the given bam files.
#'
#' @param Events Output from EventDetection function
#' @param Design The design matrix for the experiment.
#' @param Contrast The contrast matrix for ... |
3559be9b932f5c9f3eb82a398ee30b9ee355a2d1 | 69e1103d3779a2a7dc076072ada2a002c36ef96c | /treePlots.R | ffba817470db62a77ef905dac5d9b6e26a68fbe1 | [] | no_license | harryrackmil/manhattan-trees | 7a13380707959c7410aab346199da025803a1e4e | c5a0c86c3e827faa5b3f14a683b9aaa4120609fb | refs/heads/master | 2016-09-06T20:06:46.533108 | 2015-07-27T06:18:15 | 2015-07-27T06:18:15 | 39,752,267 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 452 | r | treePlots.R | par(mfrow = c(2,1))
stNum = read.csv("data/stNum.csv", header = FALSE)
names(stNum) = c("street", "count")
aggSt = aggregate(stNum, by = list(stNum$street), FUN = sum)
plot(aggSt$Group.1, aggSt$count, type = 'l')
axis(1, , at = seq(20,220, by = 20))
aveNum = read.csv("data/aveNum.csv", header = FALSE)
names(aveNum) = ... |
ef22c89bd766f75302a0cf9a15e51182b52a3353 | 5c542ee6a12a4637236ee876da7eb6c42667b211 | /R/test-spline.R | 473b79b4eae02503f27a7cc1a0bd5114a65279f3 | [] | no_license | jeffeaton/epp-spectrum | cecacd42c0f926d681bf3f3d9d9e6e21dd28e9a3 | b525b52e05ddbd914ec6d9c7095a52a512419929 | refs/heads/master | 2021-01-10T21:13:09.377733 | 2015-05-27T09:20:12 | 2015-05-27T09:20:12 | 19,249,007 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 208 | r | test-spline.R | source("spectrum.R")
source("../analysis-functions.R")
theta <- c(-27.2776051, 0.2286067, 1.5936094, 2.0196487, -0.4601538, -1.6417664, 1.4846658, 0.1725820, 0.3623600)
t(matrix(fnBSpline(theta[3:9]), 10))
|
26f0e767f950d2b33be043dc999450edb4f63f91 | a5d6294f73856de226cb0ba23e4ef2b95e343d33 | /man/make_all_regex_greedy.Rd | c4f113cdd840f72977c159f7dea8abb6eb761945 | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jogrue/regexhelpeR | e3f074c46eb7d902e9dd38298ab1bfab32a58a49 | afe8e0ec678eb752455f826fd3916d3a1196dca2 | refs/heads/master | 2023-02-05T10:39:57.603414 | 2020-12-19T23:38:18 | 2020-12-19T23:38:18 | 221,893,898 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 474 | rd | make_all_regex_greedy.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/greedy-lazy-regex.R
\name{make_all_regex_greedy}
\alias{make_all_regex_greedy}
\title{Make regex patterns greedy}
\usage{
make_all_regex_greedy(pattern)
}
\arguments{
\item{pattern}{A regex pattern in lazy format}
}
\value{
The provided patte... |
bf89813be3adcf7d55e106aedae9afb623ff15f9 | 4c1f46b66916e0b151b4f5e4de8882f6c8f744fc | /man/getInitBoard.othello.Rd | 75868082c20c29576d05518bad6e0962c1f546d3 | [] | no_license | Atan1988/rothello | 37911c3e236a06b1718271639f7fbe0fd08c973d | 79d08b9d1a96547ea1670a4e52535d91d284c08f | refs/heads/master | 2020-04-18T16:32:23.483414 | 2019-04-08T00:26:18 | 2019-04-08T00:26:18 | 167,636,214 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 321 | rd | getInitBoard.othello.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/othello_class.R
\name{getInitBoard.othello}
\alias{getInitBoard.othello}
\title{othello get initial board}
\usage{
\method{getInitBoard}{othello}(game)
}
\arguments{
\item{game}{othello game object}
}
\description{
othello get initial board
}... |
2e79a9707189047212164d291e6d65171e9cdad8 | bb2cbdc84da81abc980026f7b4ecaaa09139861e | /readBlogData.R | 5ae7cb2e10c4367912c7faab4416ddd5c56db71c | [] | no_license | marichards/data_science_capstone | 4ac40886cdbed5e75b26ed204c6885533836adde | 5a220c1dc584c89fbc42ca9f24d81948686b6665 | refs/heads/master | 2021-01-22T05:10:30.916998 | 2017-03-29T23:12:29 | 2017-03-29T23:12:29 | 81,627,372 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 506 | r | readBlogData.R | #------------------------
# Load and explore the blogs data sets
# First load the tm package and create a corpus
library(tm)
en.docs <- Corpus(DirSource("./Coursera-SwiftKey/final/en_US"))
en.blog <- en.docs[["en_US.blogs.txt"]]
#de.docs <- Corpus(DirSource("./Coursera-SwiftKey/final/de_DE"))
#de.blog <- de.docs[[1]... |
b60f068089e62b77b59e4c259362251d1a930c1e | 5a08e607367a964680b4740a6f64587eb7c7020a | /IlluminaEPICtools/man/manhattan.Rd | 9b404e299f7eadd5573e4e3334243cdb402cab41 | [] | no_license | qiongmeng-m/EpiPsychosis_IGF2 | 1b409ca334de0bab68f3f7b6822d289a1c647744 | 82fc709aa8e9406ae138aafe2fb13f79c658d54a | refs/heads/master | 2021-10-18T22:00:57.756578 | 2019-02-14T16:58:56 | 2019-02-14T16:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 497 | rd | manhattan.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/manhattan.R
\name{manhattan}
\alias{manhattan}
\title{manhattan function, adapted from qqman}
\usage{
manhattan(x, chr = "CHR", bp = "BP", p = "P", snp = "SNP",
col = c("gray10", "gray60"), chrlabs = NULL,
suggestiveline = -log10(1e-05), ... |
f432e08567311e1fc328c2838cf8450d85fc19d3 | c2149e9f34d0f01142aa01ddb386768e063c0538 | /R/publish_deploy.R | 1a4289e1d7cd97ed91b4bb8217425e2d55826c6a | [] | no_license | charlotte-ngs/LBGFS2018 | cf5a1f9a49caedee0c149a3d02db92d440727193 | 90887584b9d5b8c2454be475f7509edf7eb534cb | refs/heads/master | 2020-03-23T17:43:55.334964 | 2019-01-14T14:18:55 | 2019-01-14T14:18:55 | 141,872,623 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,226 | r | publish_deploy.R | ###
###
###
### Purpose: Deployment And Publication Of Course Material
### started: 2018-10-31 (pvr)
###
### ############################################################# ###
#' @title Deployment Of Course Material
#'
#' @description
#' The term deployment stands for copying the content of a directory
#' gi... |
c02d3379e756881e7bea0160e284812f6104e1c5 | 64b0d18eb0e78a963ef19599c2dec448da6603d3 | /tests/testthat/projects/mounted_engine_with_utilities/mounted/config/engines.R | c480b04a285c04e29742632d02a7e2c90b5b258b | [
"MIT"
] | permissive | Chicago-R-User-Group/2017-n4-Meetup-Syberia | 0bb8cf04112ba236e373e89b01db8f92b857b000 | dc248c8702fc851ae50335ad6406f14e414c0744 | refs/heads/master | 2021-01-01T04:22:57.806786 | 2017-07-14T04:19:50 | 2017-07-14T04:19:50 | 97,166,590 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 367 | r | engines.R | engine("base", type = "local",
path = system.file(file.path("engines", "base.sy"), package = "syberia"),
mount = TRUE)
engine("utility1", type = "local",
path = normalizePath(file.path(root(), "..", "utility1")), mount = FALSE)
engine("utility2", type = "local",
path = normalizePath(file.p... |
781e2f13875c67c79ff48646e28c575a7966c3e4 | a893f063e4fb685c6d959882b74f35cfc17686ee | /create_zip.R | 2f9325deb833566b2752a93fad70610b252aa3f5 | [] | no_license | jmarshallnz/intro_to_r | e8ebe29fe4df3d32f9848e79eb75ead3a46bce4c | 35065a9255915f5f9eec4248972560fcbe7ff991 | refs/heads/main | 2023-06-16T10:09:57.485226 | 2021-06-21T04:13:12 | 2021-06-27T23:29:42 | 332,910,494 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 533 | r | create_zip.R | # create zip file for the course
exercise_files <- list.files("exercises", pattern = "*.R", full.names = TRUE)
data_files <- list.files("data", recursive = TRUE, full.names = TRUE)
all_files <- c("intro_to_r.Rproj", exercise_files, data_files)
zip('intro_to_r.zip', all_files)
solution_files <- list.files("solutions",... |
56250f120e31789ae271ffb5dac8742d8cdf62ce | 10c2cbecbfaa6622e4ad02388213562cda47b1c9 | /scripts/grit_graphs.R | 710b67782206f7a15139af5d0a40abcc68635757 | [] | no_license | DLBPointon/grit-realtime | 929b3313a24f082c0915669151b79c0b8bdbb203 | 7d58352493765dc3dc8cf94a68d37fd6fd5e66b8 | refs/heads/main | 2023-05-23T23:15:31.031338 | 2021-06-19T14:44:02 | 2021-06-19T14:44:02 | 331,304,635 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,848 | r | grit_graphs.R | # An R script to take jira_dump data and produce
# descriptive statistics and graphs
# This script is second in like for the grit-realtime project
# preceded by a python script.
# Written by dp24
# Updated January 2020
# Modules Required
require("ggplot2")
require("stringr")
require('dplyr')
require('gridExtra')
lib... |
8dcdb53d0d45fd2fb7622c65a795d192665926a5 | 497a6fa06fb167f53e531ff546f75cea2ff5ca72 | /R/krige.R | 17b8fc8282a7f66a4ba92c75c5f473dc21b11eda | [] | no_license | cran/geostatsp | 8ffd90b15240476ec6e12ecc2f3fe629040178d0 | 8a707e53004f5e587df3c7f5813fdd954306781d | refs/heads/master | 2021-10-14T07:08:10.607607 | 2021-10-05T07:10:08 | 2021-10-05T07:10:08 | 17,696,363 | 6 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,307 | r | krige.R |
# y is gaussian, w is positive
# y = (w^lambda - 1)/lambda
# lambda * y + 1 = w^lambda = exp(lambda * log(w))
meanBoxCox=function(pred, sd, boxcox, Nbc = 100) {
# if boxcox is negative, don't let values get closer
# than this to zero
epsX = exp(12*boxcox)
epsBC = 0.001 # check box-cox within this dista... |
b6cee4f87b36194485d8eb3d0f0d2bc4d58dc5ea | 397182bd2f6ed4e39dcc3f3d62e89807af03ac5a | /man/count.graphs.Rd | 39b28f56116412091cd014d499f7e566ca4dec18 | [] | no_license | cran/bnlearn | e04a869228c237067fc09d64b8c65a360dada76a | dda6458daf2e0b25d3e87313f35f23d8a1c440c1 | refs/heads/master | 2023-05-14T14:21:07.744313 | 2023-04-29T09:30:02 | 2023-04-29T09:30:02 | 17,694,839 | 58 | 42 | null | 2020-01-03T23:49:19 | 2014-03-13T04:09:21 | C | UTF-8 | R | false | false | 1,830 | rd | count.graphs.Rd | \name{graph enumeration}
\alias{count.graphs}
\alias{graph enumeration}
\title{Count graphs with specific characteristics}
\description{
Count directed acyclic graphs of various sizes with specific characteristics.
}
\usage{
count.graphs(type = "all.dags", nodes, ..., debug = FALSE)
}
\arguments{
\item{type}{a char... |
62716b7eba4a6368f73519564d31df08f828134c | 7120666c09987d6615978029b8c3d24b60cec065 | /KobusTutorial/server.R | 3e7094e9e50f2adc1ca302ed3bfd75a7301a4bf1 | [] | no_license | kobusbosman/shiny.rstudio.com-tutorial | 4db429f120dc787dcc725c6a6005e0f06ce5605b | d49216bdb38daa323c6f73bdaa69b6f18436bfbe | refs/heads/master | 2023-03-02T20:08:37.981027 | 2021-02-15T16:28:07 | 2021-02-15T16:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,039 | r | server.R | library(shiny)
library(tidyverse)
# Data
data <- faithful[,2][order(faithful[,2])];
rv <- reactiveValues(data = rnorm(100));
server <- function(input, output) {
# Observations
observeEvent(input$go, {});
observeEvent(input$norm, { rv$data <- rnorm(100) });
observeEvent(input$unif, { rv$data <- runif(100) });... |
c869b0eae75f8652b4fc3da9f949636326e66c23 | 9c41132ee872256ff609882f2ea54cd5cb3ac567 | /Codes/Functions/BS_Indicator_Function.R | aea51b5b449a859fc5610572dd77250f6a0ec7c6 | [] | no_license | jfontestad/Stock-Strategy-Exploration | 33384a1bea0e88da393940e71ce59047c65290ab | 0baa29b392081ced6c78eed92cf371dcb8cdb1de | refs/heads/master | 2023-01-23T12:49:51.937786 | 2020-10-20T14:51:10 | 2020-10-20T14:51:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,427 | r | BS_Indicator_Function.R | ## Labels all Valleys and Peaks
## Back fills all Buy / Sells and calculates % return from current point to the next peak / valley
## Calculates holding time and days to the next peak / valley
## Returns Original DF appended with...
# PR (% Return to next peak or valley)
# Max (Total Holding Time in ... |
419766eb7decdca78ed77a467d45976db359c9ae | 5372991444cf4ea29225ceae591c53bb1ed1685f | /plot4.R | 802ca4b7f3dfff407072321be12cf27fa1f31208 | [] | no_license | Scavetta/ExData_Plotting1 | 82cf8a51cb6445a9568b8e8eaebe354429c75cd8 | b4efc411bde1112a463e3e314973fd833f14cff9 | refs/heads/master | 2021-01-18T06:03:35.269995 | 2015-03-08T18:00:48 | 2015-03-08T18:00:48 | 31,856,207 | 0 | 0 | null | 2015-03-08T16:13:50 | 2015-03-08T16:13:49 | null | UTF-8 | R | false | false | 2,294 | r | plot4.R | # Project 1:
# Plot 4:
# Set your own working directory:
# setwd("~/Documents/Coursera/Data Science/ExplorData/Proj1/")
# Read in data:
df <- read.csv("household_power_consumption.txt",
stringsAsFactors=FALSE,
check.names=FALSE ,
comment.char="",
sep = ";... |
b7ef150be668759c601e4583a909bf09f608f8a8 | 7de34974ddc7bb2f12246a0372f2cf8c6f7fa0c9 | /man/print.vbscript_lines.Rd | 188cce67a3485f4ce221179b51dea34ed1621351 | [
"MIT"
] | permissive | FinnishCancerRegistry/vbscript | 94add9cedf26ae2062ed99d5299100b2d4757c88 | cb35e40d3c4be48fb23636bd9c4a38ee66743460 | refs/heads/master | 2023-04-11T03:06:47.232942 | 2023-04-02T09:21:37 | 2023-04-02T09:21:37 | 218,963,246 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 678 | rd | print.vbscript_lines.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/S3.R
\name{print.vbscript_lines}
\alias{print.vbscript_lines}
\title{Print \code{vbscript_lines}}
\usage{
\method{print}{vbscript_lines}(x, max.print = 50, ...)
}
\arguments{
\item{x}{\code{[vbscript_lines]} (mandatory, no default)
a \code{v... |
09f310570674f8b4b780e5df3b20cf2b77c3e1d7 | 10cc53a735b78779c67bac5ca1c5791549eaf129 | /explore/cluster.R | bf8736b6b753dc329c752fbbafebc092fe03a3e1 | [] | no_license | nsolcampbell/tasks | 74e6e355e5803f5f5986c5ac1834126bbe1b768e | 273bbcce02ad922bed1e5c30f77b410634c966f5 | refs/heads/master | 2020-12-26T04:16:57.327358 | 2013-11-18T01:35:56 | 2013-11-18T01:35:56 | 16,030,043 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 766 | r | cluster.R | # Hierarchical clustering of worker activities
for (measure in c("importance","level")) {
pdf(paste("dendro_",measure,".pdf",sep=""), height=12, width=8)
for (file in c("skill", "ability", "knowledge", "work_activity")) {
ability <- read.csv(paste("../data/onet/tables/",file,"_",measure,".csv", sep=""))
rownames(abi... |
1d1feb7c04e1eb303fd0fcc60752f49ffa925840 | 0de9b10fdb64c746bbe9fc145a3885308fa5fb91 | /list10.R | ec148ff58da8d212f1e9d499d638cafddbcedec8 | [] | no_license | LuizaPinto/Progest | d2b36a24e17b2c3be40ab689d6b72f25aa302dae | d1b188997fb5264214e56501d38053c9e4e7e89e | refs/heads/master | 2020-07-11T11:40:06.064736 | 2019-11-27T18:52:48 | 2019-11-27T18:52:48 | 204,530,026 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,491 | r | list10.R | pol_exp <- function(x,n){
fat <- 1
som <- 1
for (i in 1:n){
fat <- fat*i
som <- som + (x**i)/fat
}
return(som)
}
pol_exp(2,100)
plot(exp,-4,4)
grid()
segments(x0=0,y0=0,x1=0,y1=150,lty=2)
curve(pol_exp(x,n=2),add=T,col="violet")
curve(pol_exp(x,n=3),add=T,col="red")
curve(pol_exp(x,n=4),add=T... |
9c64252a7ae2970ff66d78b606f8ad5cbe4d7c00 | 0f39db29ed2a6971d14958680344b80eaf97fef9 | /plot-iris.R | feac127ada62f7c63a7ec32d66e0fb37babfb987 | [] | no_license | luboOliko/renv-test | c3aa15d384c4a25174887906b9009ce90a68b3a7 | f912f365b3bf7f18b74725f8665cb1fd8763b247 | refs/heads/master | 2023-07-09T14:26:16.886793 | 2019-11-07T22:10:19 | 2019-11-07T22:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 365 | r | plot-iris.R | # Load packages
library(dplyr)
library(ggplot2)
# Filter for particular iris species
iris_filter <- iris %>%
filter(Species %in% c("setosa", "versicolor"))
# Plot petal by sepal width and colour by species
iris_plot <- ggplot(
iris_filter,
aes(
x = Sepal.Width,
y = Petal.Width,
colour = Species
... |
96574f4748761e4810419c01a5204f3aa5a78baa | c3dc08fe8319c9d71f10473d80b055ac8132530e | /challenge-136/abigail/r/ch-1.r | 851c753f4e4078a8b8083719961fd7694aceb278 | [] | no_license | southpawgeek/perlweeklychallenge-club | d4b70d9d8e4314c4dfc4cf7a60ddf457bcaa7a1e | 63fb76188e132564e50feefd2d9d5b8491568948 | refs/heads/master | 2023-01-08T19:43:56.982828 | 2022-12-26T07:13:05 | 2022-12-26T07:13:05 | 241,471,631 | 1 | 0 | null | 2020-02-18T21:30:34 | 2020-02-18T21:30:33 | null | UTF-8 | R | false | false | 1,301 | r | ch-1.r | #
# See ../README.md
#
#
# Run as: Rscript ch-1.r < input-file
#
gcd <- function (u, v) {
u_odd <- u %% 2 != 0
v_odd <- v %% 2 != 0
if (u == v | v == 0) {u}
else if ( u == 0) {v}
else if (!u_odd & !v_odd) {
bitwShiftL (gcd (bitwShiftR (u, 1), bitwShiftR (v, 1)), 1)... |
305b912116c5ed56f1861621d96652b47b68326e | ccd971226aca65ae79fcba77b84493ce6a35ada9 | /scripts/wb_info/wb_pc1_sector_aid_pie.R | 1dc1c5cc3fc7c643a335c0b92e30d4485b4f111b | [] | no_license | DanRunfola/WBVFMNCC | 6697e8054e84465386d49535c762b155348c23eb | b6bf204d0268806e5d635fe8013209dabfb7afd8 | refs/heads/master | 2021-01-17T06:15:17.162684 | 2016-12-13T16:08:48 | 2016-12-13T16:08:48 | 50,121,752 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 857 | r | wb_pc1_sector_aid_pie.R |
library("rgdal")
shpfile = "/home/userz/projects/wb_vfm_work/wb_pc1/wb_pc1.geojson"
dta_Shp = readOGR(shpfile, "OGRGeoJSON")
combined_sectors <- c()
for (i in 1:length(dta_Shp@data$ad_sector_names)) {
x = unlist(strsplit(as.character(dta_Shp@data$ad_sector_names[i]), "|", fixed=TRUE))
combined_sectors <-c (c... |
85120d84bfd4ae490939da19d0a6e3c29ca4188b | bf6c5a246ee69975c2e0c46524bd18cb9f40bad8 | /R/data.R | 9e4fd109df5609923d2ed5eb8dc866797ac5d3fa | [] | no_license | hrmJ/stockholm | 39905cafc12565267ccba6ecc4283217d1c148c3 | aea4697f136162d3a8ead384acd943646f44cdd0 | refs/heads/master | 2021-06-04T21:22:35.548234 | 2020-03-05T14:11:48 | 2020-03-05T14:11:48 | 114,048,420 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 633 | r | data.R | #' Data extracted from the word files (dorogoj.docx, milyj.docx etc.)
#'
#' This data frame includes all the contexts with the adjectives and information about the contexts, e.g. the participiants of the speech situation etc.
#'
#' @format A data frame with the following structure:
#' \describe{
#' \item{adj}{the act... |
d1ba71a3f8d271c28a1cb0f41536d85ef4b64dbf | bab5400b4d93195ebca8f3162abad69cb2fdc679 | /src/scIB_stats.R | 143f07a5aea8f4289f60e90e95577b5572c5eaf4 | [] | no_license | whtns/scEiaD | c645fec7eb63b380b071a7d1a3468e257b97f73f | 2f0705236b7af9024ab881bfc3cd28bbfc29a28b | refs/heads/master | 2023-01-20T00:27:51.111694 | 2020-11-02T16:53:20 | 2020-11-02T16:53:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 850 | r | scIB_stats.R | # wrapper for python script to load conda
# yes this is crazy
conda_dir = Sys.getenv('SCIAD_CONDA_DIR')
git_dir = Sys.getenv('SCIAD_GIT_DIR')
library(tidyverse)
library(glue)
args <- commandArgs(trailingOnly = TRUE)
Sys.setenv(RETICULATE_PYTHON = glue('{conda_dir}/envs/scIB/bin/python') )
library(reticulate)
method =... |
f14b57a5566f79c009c506cd3c3b664e7586980d | b76f45eddafec3879a1b5668fa8fce0b82d1f702 | /IHM_2_PreAvlLink4b_Journey_Merge_and_Index.R | 9191bf3ef491f6257509e8d93e59c56cb32c5760 | [] | no_license | jktulu/ihm_transit_data_linkage | 6e3ef1fce89bac577939ab53385a47df17ed3353 | 21f1840204f74b56388a9bfdafb74ceec9818b81 | refs/heads/master | 2020-03-26T07:36:12.107894 | 2018-08-14T07:09:52 | 2018-08-14T07:09:52 | 144,662,003 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,339 | r | IHM_2_PreAvlLink4b_Journey_Merge_and_Index.R |
require(RPostgreSQL)
require(dplyr)
require(lubridate)
require(stringr)
# Establish Database Connection ------------------------------------------------
# Increasing the effective cache size may improve performance of the SQL
# interprater
dbGetQuery(con, "set effective_cache_size = '256GB'")
# query all table ... |
936ffe2187059b4902e6bce32b9d98110621e81d | ada1437970128526daf432e5bcdc14c3dd4435d8 | /R/infinity_constraint.R | 108b2e348acd38052056e093412a10e328b3a046 | [
"MIT",
"BSD-3-Clause"
] | permissive | thomasp85/particles | 71c7a09cc636000a188a1ae0d9b841e6d6ec37ad | b194ad3c5c4017320ae0c51103401c274397cbf3 | refs/heads/main | 2022-09-04T17:54:53.130881 | 2022-08-19T12:16:38 | 2022-08-19T12:16:38 | 92,283,359 | 127 | 9 | NOASSERTION | 2022-08-19T06:29:35 | 2017-05-24T11:07:43 | R | UTF-8 | R | false | false | 2,788 | r | infinity_constraint.R | #' Reposition particles outside a canvas so they wrap around
#'
#' This constraint keeps particles inside of a defined area by positioning
#' exiting particles on the other side of the area. In effect this makes
#' particles that moves outside the upper bound reenter at the lower bound and
#' vice versa.
#'
#' @section... |
fb40a0ec90fec331933af60d7c6f0e0c9c6cb30c | 34a2cf96cb59b70ab17619fd36890d0e4aebd6bf | /Rexercise3.R | d55de5418acb4222011cb0b36c2f043f2d2f15c6 | [] | no_license | as410tro/masters-epidemiology-r-course | df0ba4c8e5dc9bc1dad6345920028ed0fd6ed3c3 | 171f3860fd42f9bbf9b785b9a79856f5d440a4e2 | refs/heads/master | 2023-01-21T09:26:20.880056 | 2020-12-04T20:26:19 | 2020-12-04T20:26:19 | 318,618,673 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,081 | r | Rexercise3.R | load(file = "dat.Rdata")
attach(dat)
# Use a statistical test to see if there is a significant difference in height between men and women.
# before doing a t-test, check if the variables are normally distributed
qqnorm(height[male==F])
qqline(height[male==F], col="red", lwd=2)
qqnorm(height[male==T])
qqline(height[m... |
1d5bf2b2de9992b5fa08ced317b6034986a347b2 | ba7560654f73b5aceffccb90651e66d75f933e8d | /plot3.R | 3d0a0e89444e81d24b34181b9726681816496095 | [] | no_license | ZhaoZ-2020/ExData_Plotting1 | 286defd800686e3fe3e541796c341928816d3456 | 36b03b2a574e33d1a1f828dba4cb709febec4abf | refs/heads/master | 2022-11-12T21:20:38.489620 | 2020-07-02T03:10:46 | 2020-07-02T03:10:46 | 276,325,014 | 0 | 0 | null | 2020-07-01T08:44:57 | 2020-07-01T08:44:56 | null | UTF-8 | R | false | false | 1,164 | r | plot3.R |
## Read in the data (with the txt file in the working directory)
## for Dates 1/2/2007 and 2/2/2007 only
tempdata <- read.table("household_power_consumption.txt", header=T, sep=";", nrows = 5)
colna<-colnames(tempdata)
classes <- sapply(tempdata, class)
data<-read.table("household_power_consumption.txt", sep=";", c... |
3b9542e294beb9215cec246e3c8b48983440d6b4 | 227e3fb88aebf0d26545caed0c7145b34d6414dc | /3_visualize.R | db2d6f210f49146731881faa66b8bdf975f51ced | [] | no_license | SimonTopp/ds-pipelines-targets-2 | f098f54cee0f094d44bbd13f51c4e1a4f749e1a1 | f7629c903e702dfa1b6e88dbfd595896dad25080 | refs/heads/main | 2023-05-08T01:37:13.425981 | 2021-05-24T16:36:17 | 2021-05-24T16:36:17 | 369,594,754 | 0 | 0 | null | 2021-05-24T16:36:18 | 2021-05-21T16:30:50 | R | UTF-8 | R | false | false | 235 | r | 3_visualize.R | source("3_visualize/src/plot_timeseries.R")
p3_targets_list <- list(
tar_target(
p3_figure_1_temp_ts_png,
plot_nwis_timeseries(fileout = "3_visualize/out/figure_1_temp_ts.png", p2_site_data_munged),
format = "file"
)
) |
21df267fd9e134c436ff61022db72ffa2c1d8722 | 1558b17d843ee5421f91069d7d5bb1a8d8852950 | /code_Base/models/reuse_functions.R | e7c1071c94c2551730252f3d979c04890f996bd2 | [] | no_license | anish-singh-07/DataScienceR | 1a229d6d31e8454d8301eafaa52a2e12eed7b673 | 7b76b20d5ab6d5b3b359007e9ef4cb8896517a22 | refs/heads/main | 2023-06-16T12:55:19.338903 | 2021-07-13T09:15:18 | 2021-07-13T09:15:18 | 375,276,755 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,250 | r | reuse_functions.R | #a function that will return the evaluation metric
evaluation_Metric <- function(target, predicted, modelName) {
conf_matrix <- as.matrix(table(Actual = target, Predicted = predicted))
TP = conf_matrix[4]
TN = conf_matrix[1]
FP = conf_matrix[3]
FN = conf_matrix[2]
accuracy = (TP + TN)/(TP + TN + FP +F... |
ff585eb3c2f507ff3054ea75b6021ff17fc5b860 | fb3f24a4af741e73144fc473c3dc317a0eb87cf0 | /code/analysis/run_analysis.R | 313c31f884732b55c02af42ea5bdffac8963de23 | [] | no_license | littlecanargie/CtTrajectories | 26893d318dccba3e32190aa01c0933850e939f75 | 7c359a8a175022544124a504d7e899cbf28e67f0 | refs/heads/main | 2023-02-07T19:38:54.423836 | 2020-12-31T10:10:47 | 2020-12-31T10:10:47 | 325,772,241 | 0 | 0 | null | 2020-12-31T10:10:30 | 2020-12-31T10:10:30 | null | UTF-8 | R | false | false | 1,476 | r | run_analysis.R | # source('code/analysis/run_analysis.R')
# Import:
library(tidyverse)
source('code/utilities/utils_analysis.R')
# Generate list of parameter sets for sensitivity:
source('code/analysis/make_masterpars.R')
final_fitlist <- list()
# Read data:
source("code/data_parsing/parse_Ct_data.R")
# Generate essential values... |
4b89c5f49714bdfc494b9308449845ef6c0d110c | b36107d33c5adfe529f84b4ae060df1f7cd38217 | /cachematrix.R | e2a01254b340c4e2978bba2ae8c8e13a344a7c0c | [] | no_license | rkrishnan53/ProgrammingAssignment2 | 1080f3268cef0d6c2c4ff4ab82c4f98edf6531a1 | e8284fe6d2c33c82607388d2916a556037260b4d | refs/heads/master | 2021-01-16T21:01:49.727606 | 2015-03-19T00:31:51 | 2015-03-19T00:31:51 | 32,426,302 | 0 | 0 | null | 2015-03-17T23:25:44 | 2015-03-17T23:25:44 | null | UTF-8 | R | false | false | 1,269 | r | cachematrix.R | ##makeCacheMatrix: Create a cache space in the global environment to hold a matrix and it's inverse. Preset both with NULL.makeCacheMatrix returns a list which includes two intermediate objects set and get but also the original matrix and it's inverse
##cacheSolve: Checks if the inverse exists (i.e. non-NULL).
##If NU... |
0f5fd48deb94045faccff6dec6593f5422713e6f | df6dc09aca37d6cd616436fe4ee1021677cebd37 | /R/addGlcTrns.R | e6249a98300137151783732606b2b963ec561055 | [] | no_license | cran/sybilccFBA | 9eadbbcc6bf0cd550dd4cc003a106b742b9764cd | 4c7c379f9407323f9d6963b3315487146cb5321e | refs/heads/master | 2020-05-17T11:07:00.514539 | 2019-12-15T14:20:05 | 2019-12-15T14:20:05 | 18,368,868 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,667 | r | addGlcTrns.R | addGlcTrns<-function(prob,mod2){
Si=0.2# units?
Hxt1 =41*Si/(Si+107)#Kcat*Si/(Si+Km)
Hxt2 = 16.1*Si/(Si+2.9)
Hxt3 = 18.5*Si/(Si+29)
Hxt4 =12*Si/(Si+6.2)
Hxt5 = 14*Si/(Si+10)
Hxt6 =11.4*Si/(Si+1.5)
Hxt7 =11.7*Si/(Si+1.3)
Gal2 =17.5*Si/(Si+1.5)
#Gal2 in existence of Galactose only
colid=getNumCols(lp = problem... |
91451adb3ab96b49760e5deb720c444279a53d63 | 7917fc0a7108a994bf39359385fb5728d189c182 | /paws/R/fms_interfaces.R | dd009cf7f92d46ce818dcc2b32569db78683ea15 | [
"Apache-2.0"
] | permissive | TWarczak/paws | b59300a5c41e374542a80aba223f84e1e2538bec | e70532e3e245286452e97e3286b5decce5c4eb90 | refs/heads/main | 2023-07-06T21:51:31.572720 | 2021-08-06T02:08:53 | 2021-08-06T02:08:53 | 396,131,582 | 1 | 0 | NOASSERTION | 2021-08-14T21:11:04 | 2021-08-14T21:11:04 | null | UTF-8 | R | false | false | 33,198 | r | fms_interfaces.R | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
#' @include fms_service.R
NULL
.fms$associate_admin_account_input <- function(...) {
args <- c(as.list(environment()), list(...))
shape <- structure(list(AdminAccount = structure(logical(0), tags = list(type = "stri... |
8c3301e41f5c67eb73624695ebec04bb7586e0fa | 42b048705fa35c38a4e70b8b63bc9586bedd42ca | /Assignment 5/assignment5.R | f53ee0fec3afb2be934d781277736c4299635741 | [] | no_license | mikhailgaerlan/Computational-Statistics-Assignments | 77618850fcebf174baad715c83121c24990d6217 | 2c9a98f2013de8ce29f3cfa559a37ee31f3389a7 | refs/heads/master | 2020-04-26T03:50:38.242247 | 2019-03-01T10:16:02 | 2019-03-01T10:16:02 | 173,281,111 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,808 | r | assignment5.R | par(family = 'serif')
setwd("/Users/mikhailgaerlan/Box Sync/Education/UC Davis/2016-2017 Spring/STA 243 Computational Statistics/Assignments/Assignment 4")
rm(list=ls())
set.seed(0517)
phi = function(u){
return(exp(-u^2/2)/sqrt(2*pi))
}
f = function(x){
return(1.5*phi((x-0.35)/0.15)-phi((x-0.8)/0.04))
}
smoothin... |
53e5d50f3558c0f3c7a7f46a3b5f6b13cc42b88b | 2e4540191590b6991bf887ad80f2bd46d6fbe1ae | /parameters.R | 1207f6248f8e2a1eab9c6188178d27c38aafb16b | [] | no_license | HonigsEnvato/customer-value | b526e46e8e583f696ab50263a08a3c596d745d66 | 439c805ff0d0602d23d877eabe015d4506a24dcb | refs/heads/master | 2022-09-12T08:34:31.665243 | 2020-02-18T02:38:11 | 2020-02-18T02:38:11 | 241,255,701 | 0 | 0 | null | 2022-08-23T18:03:24 | 2020-02-18T02:36:40 | R | UTF-8 | R | false | false | 383 | r | parameters.R | sandbox_configuration = config::get("postgres_sandbox", config = "dev", file = "enva_config.yml")
market_quantile_breaks = c(0, 0.5, 0.75, 1)
## Default plan price
plan_price = 33
plan_price_annual = 198
net_percentage = 0.485
paid_search_ltv_placeholder = 150
# See eda/10_24_months_ltv_with_annual/24_months_ltv.htm... |
62730a58c37e7e52748ebcfad1e8be2a16e904f5 | 5f571c61465e3a743a576a96e7f6b92feaacf9f7 | /inst/examples/example1.R | 8df22ccb227f414f04dd6f66e81da35dac8f676e | [
"MIT"
] | permissive | timelyportfolio/reactspringwidget | 19c7117b3c3be0db876683761bea433f746ff33d | 0e01d9e029d8ac54fb7c629b61f04546b86518b7 | refs/heads/master | 2020-04-12T08:18:15.873869 | 2018-12-19T03:53:16 | 2018-12-19T03:53:16 | 162,379,832 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 167 | r | example1.R | library(reactR)
library(htmltools)
library(springwidget)
browsable(
tagList(
rmarkdown::html_dependency_jquery(),
springwidget(data=NULL, tags$div())
)
)
|
2152cba682b8508a47ba3378e816c90bc3e965e5 | 429f8f159ece1946d26feec2934b022ed34be214 | /fpem01/R/access_results.R | a60ac0cfdaeb9832b38b6d6c7dd56be5fe100fe1 | [] | no_license | an-h-tran/testrepo | a38da0ee9a9fff0168c74abf354fb0cfa3a146df | 76c19988e96f5bbbcc750339e936e0643e1e5d6c | refs/heads/master | 2020-04-06T11:04:33.075047 | 2018-11-18T23:41:18 | 2018-11-18T23:41:18 | 157,402,771 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,198 | r | access_results.R |
#' Access FP results
#'
#' @param fp_results tibble with iso (to filter on)
#' @param regions subset of fp_results$iso (error is returned when region is not included)
#'
#' @return fp_results for the selected regions
#'
#' @examples
access_results <- function(fp_results, regions) {
check_names(regions, f... |
fa2e7f4959a197a74ea916bb73e262bd3c3450fe | 1554efd5de247b393039460b2905d1dbb00136bb | /TimeSeries8.R | b3d5ee780f2491140c6efb3c3e5528edfabe2725 | [] | no_license | daoleen/RAir | b0b71884f5470be7e83c0cf574e4ac30c929e461 | 323e70cc772dcaaa4fc1fa67db75aeeb924f6b8f | refs/heads/master | 2021-01-10T20:35:35.185053 | 2014-06-09T11:54:26 | 2014-06-09T11:54:26 | 20,642,702 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,848 | r | TimeSeries8.R | library(forecast)
library(astsa)
source('helper.R')
source('test.R')
require(randomForest)
data <- read.csv(file="GreenwichLondonAirQuality.csv", header=TRUE)
NO <- (data[data$Species == "NO",])
NO2 <- (data[data$Species == "NO2",])
NOX <- (data[data$Species == "NOX",])
PM10 <- (data[data$Species == "PM10",])
PM2.5 <... |
fccaf2340516a38fba56006202e8287edd4037de | 757c1d308a85dcbcc46956852830cac543dcdf85 | /Temporal_Analysis/Relative_motif_enrichment_score/with_expression_data/motifEnrich_barplot_E95E135CrossStages_byExpression.R | 9a7c53a4d43f2b62c7a273320f5da272e259345b | [] | no_license | hongpan-uva/Single-cell-chromatin-profiling-of-the-primitive-gut-tube | 3e780f1ffe60b247839900847833dc7483d5db4e | d96636f3b62c47eecd8df0f617dfe6b6716e6dab | refs/heads/main | 2023-04-12T01:05:52.014882 | 2022-03-29T18:50:06 | 2022-03-29T18:50:06 | 353,776,159 | 1 | 3 | null | null | null | null | UTF-8 | R | false | false | 7,947 | r | motifEnrich_barplot_E95E135CrossStages_byExpression.R | motifoverlaps=paste0("/scratch/hz9fq/toronto_project/E95E135_CrossStages/signal_mergedPeaks_1129/motif_overlap/",c("intestine","pancreas","stomach","lung"),"_peak_motifoverlap.txt")
cor_dir="/scratch/hz9fq/toronto_project/E95E135_CrossStages/signal_mergedPeaks_1129/cor/"
cor_files=c("E95intestine_E135intestine_cor.tx... |
0803a9b4385cc6af1b55cabc9cfd31f759687db6 | 4d7c1f3a432363bc5393aee823ef8fb2ffb4d937 | /src/models/GenerateSequenceEvaluations.R | 79083cfc8822be439e014012935da970de50179f | [] | no_license | lprisan/paper-JCAL-multimodal-teaching-analytics | f7deb882d21468656fe430a0740373ff005e3c78 | b9b74ec871748b2df413c76404b75b5f0f01c73a | refs/heads/master | 2021-05-12T19:53:10.511469 | 2018-01-11T22:31:32 | 2018-01-11T22:31:32 | 117,107,438 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,431 | r | GenerateSequenceEvaluations.R | # This helper script generates the sequence of commands needed to run
# the whole evaluation harness of the paper, for a certain training/testing model
# It outputs a txt file with the series of commands to run, names <command>.inputs.txt
# It assumes the R script is runnable directly (e.g., in Linux, starts with #!/us... |
af12cbefc99a1b4c2863fc50e836c9694f985e4e | cab93f2149fe6eb7601438532734a9b06f6e0b7d | /demo/smallAnimalsDemo.R | 0d232b5c7b6a1a7f8236584bea31d0b4e3ec2e2c | [] | no_license | xvallspl/ReRCHIC | 9a0776b7f6c326a4c6e8255555066edb902bb0d4 | 063e87a9ae48d989ad553c30d623a1f77dc8088f | refs/heads/master | 2021-01-01T06:44:40.379419 | 2014-10-01T14:19:56 | 2014-10-01T14:19:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 491 | r | smallAnimalsDemo.R | #' Performs the similarity analysis on the animalesSmall dataset, plotting the hierarchical tree as a phylogenetic tree.
#'
#' Similarity analysis on the animalesSmall dataset, a (cropped) dataset describing children perception of animals characteristics.
#'
#' @author Xavier Valls \email{xaviervallspla@@gmail.com}
... |
a26292d5e92137741e47ea3138a08b4fec23e3fa | 769898772e7225264fd942b2e5a666af3105d3a1 | /R/quadrats.R | 2c5954d2205afad34b8cff5505e8b8cdb71cc3bb | [] | no_license | cran/spatialEco | 3fa4393496453b091c547cc7601a984e54bf2be6 | 22944d790b25451c848d420b61d386471073b1ee | refs/heads/master | 2023-07-08T05:04:12.117110 | 2023-06-30T07:40:02 | 2023-06-30T07:40:02 | 30,218,937 | 5 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,736 | r | quadrats.R | #' @title Quadrats
#' @description Creates quadrat polygons for sampling or analysis
#'
#' @param x A sp or sf polygon object defining extent
#' @param s Radius defining single or range of sizes of quadrats
#' @param n Number of quadrats
#' @param r A rotation factor for random rotatio... |
2f89933510295f57a91771a0bd4af4411eae64db | 9862557e96982fa324f80991529990acb933db91 | /R/data.R | 6937a8043a21146dbd8b2c98ff90f2b04bbf4350 | [] | no_license | emilyrosecamp/bulhydrorap | 5530b7eb8b74f18739a2483b0708a4030db2f86a | f7646656fac482ce2284b06313730427b0933034 | refs/heads/master | 2020-05-21T00:28:57.428156 | 2019-05-21T09:38:53 | 2019-05-21T09:38:53 | 185,829,056 | 0 | 0 | null | 2019-05-21T09:38:55 | 2019-05-09T15:50:07 | R | UTF-8 | R | false | false | 383 | r | data.R | #' Donnees de base de la banque Hydro pour la Loire
#'
#'
#' Debit du fleuve mensuel depuis >100 ans mesuré à Saumur (code L8000020)
#'
#' @format Data frame with 103 observations and 27 variables
#'
#' \describe{
#'
#'
#' \item{Mois.}{Debit d'un mois donne, en m3/s}
#' \item{Qualité.}{Niveau de validation de la mesure... |
99b4aaa45d6c4821b1a2fd3982a49173e91666f3 | 98ef022da9ba11f4ce9fcd9de5a10ee503e9bbf0 | /gene_means.R | 96079175a588244c215827d6f7b0ed66bbdb22a3 | [] | no_license | VAI3064/PhD-Code | 11f290985852a86e306ebe6dbe6b496bf2e91f59 | 6ead5c4b67009b8062d2db3a05998641d2b4c532 | refs/heads/master | 2016-09-06T15:36:01.958772 | 2015-08-13T10:44:09 | 2015-08-13T10:44:09 | 39,823,232 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 137 | r | gene_means.R | gene_means<- function (x)
{
means<- rep(1,length(x[,1]))
for ( i in 1: length(x[,1]))
{
means[i]<-(mean(x[i,]))
}
t_means<- t(means)
}
|
b50f1f54429498cb9b7ee4992880f38514aafbc0 | 58dcdd81e76e3fa8b6a14f83462a824b274eea14 | /jehan_scrapy/jehan_scrapy/jehan_lda (1).R | 9215a1c7c28feaefd50fecd48868e965b1020423 | [] | no_license | reflective99/Ind-Research | 40bd756b7be455f327c2c95944487f957b3ab73e | bb91fba80de66398e04d06309a9bb1353f5c0e4a | refs/heads/master | 2021-01-10T05:06:49.383422 | 2016-03-01T23:18:02 | 2016-03-01T23:18:02 | 52,917,371 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,706 | r | jehan_lda (1).R | library(snowfall)
library(jsonlite)
articles <- fromJSON("articles.json", flatten=TRUE)
# Get all the text bodies as vec from the articles dataframe
texts.vec = articles$text #run on 1000 entries first
i <- seq(1,964, 1)
names(texts.vec) = i[1:964]
texts.vec[1]
texts.vec[964]
# Get source functions
source("MakeDtmFunct... |
5748f0227975bf78eddf8f3305aac1e20e5e2365 | 92db238599d9d7c9777bd99a80285963ee7e0d94 | /man/dg.BlockEdge-class.Rd | c31d54e6bb20399a6751182fa08a9de12d27d2b1 | [] | no_license | cran/dynamicGraph | 2225028c6396c8478ab23d5dabbc41c81b0f2de1 | 4b21ec7d229979dd8fd32e1ef32f5cd9952f7e77 | refs/heads/master | 2021-01-02T22:50:36.479678 | 2010-01-30T00:00:00 | 2010-01-30T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,049 | rd | dg.BlockEdge-class.Rd | \name{dg.BlockEdge-class}
\docType{class}
\alias{dg.BlockEdge-class}
\alias{nodeTypesOfEdge,dg.BlockEdge-method}
\alias{oriented<-,dg.BlockEdge-method}
\alias{oriented,dg.BlockEdge-method}
\alias{newBlockEdge}
\alias{newBlockEdge}
\alias{dg.BlockEdge}
\title{Class dg.BlockEdge}
\description{ The class for edges ... |
5795ce361d691441abaa4865725bbaa45a945699 | f27a544ae69a515f59459d34fdafad6056d3b90e | /racecar/man/oilpressure.Rd | 3ecbd0ed170f796dfab35089afcb3f1d008a5c36 | [] | no_license | PHP2560-Statistical-Programming-R/r-package-racecar | 82ecc554cb228c4ab49b404fd1432574a6f64bf8 | b5375272144a85953bd81a11123344a7dcdf19a9 | refs/heads/master | 2021-08-31T16:13:35.546194 | 2017-12-22T01:38:13 | 2017-12-22T01:38:13 | 111,433,964 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,355 | rd | oilpressure.Rd | \name{oilpressure}
\alias{oilpressure}
\title{
oilpressure
}
\description{
Creates a plot of the oil pressure around the track
}
\usage{
oilpressure(data, laps = 1, startdist = min(data$Distance) , enddist = max(data$Distance))
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{data}{a data... |
e46608d0bae9fcaeab4f3630e83ecbff2e4f47b2 | d8e775429487eefa8b4e5731b4d50d4a95d20cd8 | /R/MeasureSurvMSE.R | ca53831c20fda882318cde023cc4447c5eb8b716 | [
"MIT"
] | permissive | sands58/mlr3proba | 766dd7d977badcd81f6efdeab1e51a2d661a0859 | 901e3bc04d4eaacc2ce28126c97df16df736b5b6 | refs/heads/master | 2021-05-17T00:48:58.863868 | 2020-03-25T22:09:24 | 2020-03-25T22:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 936 | r | MeasureSurvMSE.R | #' @template surv_measure
#' @templateVar title Mean Squared Error
#' @templateVar fullname MeasureSurvMSE
#'
#' @description
#' Calculates the mean squared error (MSE).
#'
#' The MSE is defined by
#' \deqn{\frac{1}{n} \sum ((t - \hat{t})^2)}{1/n \sum ((t - t*)^2)}
#' where \eqn{t} is the true value and \eqn{\hat{t}}{t... |
bf4eea91f24e9769e2655e026ea766c7a175ef5a | d49a3d00c8e54a0bc581b262757e0d9625b3dba9 | /plot4.R | f8eba9e88c3275e499eacb0aac9fb3edf521e962 | [] | no_license | mleski/ExData_Plotting1 | 7c3c14f844610d1da0102eea01d59912e003ad9c | 1dc0048bf1f9d05be1eba0813d31e5f139999623 | refs/heads/master | 2021-07-14T02:36:14.647712 | 2017-10-16T00:48:38 | 2017-10-16T00:48:38 | 106,341,059 | 0 | 0 | null | 2017-10-09T22:18:27 | 2017-10-09T22:18:26 | null | UTF-8 | R | false | false | 1,434 | r | plot4.R | #Calculate memory requirements in GB
mem_need <- 2075259 * 9 * 8 / 2^20 / 1000; mem_need
#Read in data
library(dplyr)
library(lubridate)
getwd()
setwd("/Users/EZ/Documents/Data/Exercises/Coursera/ExploratoryDataAnalysis/assign1")
electric <- read.delim("household_power_consumption.txt", sep=";", na.strings="?")
#Conv... |
d4f174ee77d3fe973f09e66d2f6ba46b44402b9b | ba8c93066b190808f70d54386359ee015639ca33 | /cpfs/man.r | cd2a417db5a51095aa19fdc9fad1c1152ceb770b | [] | no_license | unix-history/tropix-cmd | 0c0b54ae35b9e48c63aca8a7ac06e7935dd5b819 | 244f84697354b1c0e495a77cdff98549875d1b9f | refs/heads/master | 2021-05-27T22:06:51.390547 | 2014-11-06T17:41:20 | 2014-11-06T17:41:20 | 26,281,551 | 1 | 2 | null | null | null | null | ISO-8859-1 | R | false | false | 1,240 | r | man.r | .bp
.he 'CPFS (cmd)'TROPIX: Manual de Referência'CPFS (cmd)'
.fo 'Atualizado em 15.01.99'Versão 3.1.0'Pag. %'
.b NOME
.in 5
.wo "cpfs -"
copia sistemas de arquivos
.br
.in
.sp
.b SINTAXE
.in 5
.(l
cpfs <fonte> <destino>
.)l
.in
.sp
.b DESCRIÇÃO
.in 5
O comando "cpfs" copia sistemas de arquivos.
A cópia é feita "imag... |
223a720327a19a35c5db6ed03a7e162719c89601 | 2da2406aff1f6318cba7453db555c7ed4d2ea0d3 | /inst/snippet/concrete-rand03-fig.R | e1016f446f8365e14bc25b029e42c39a55c1c00c | [] | no_license | rpruim/fastR2 | 4efe9742f56fe7fcee0ede1c1ec1203abb312f34 | d0fe0464ea6a6258b2414e4fcd59166eaf3103f8 | refs/heads/main | 2022-05-05T23:24:55.024994 | 2022-03-15T23:06:08 | 2022-03-15T23:06:08 | 3,821,177 | 11 | 8 | null | null | null | null | UTF-8 | R | false | false | 153 | r | concrete-rand03-fig.R | SSplot(
lm(strength ~ limestone + water, data = Concrete),
lm(strength ~ limestone + rand(7), data = Concrete), n = 1000)
last_plot() + xlim(0, 2)
|
5eee4f1284e31a7872d80be78a482e44f52f8d2f | aff059f343d2b1c9d61b5c1091d0945b6a5cd04e | /tests/testthat/setup.R | 68253ce060b31e0b92f81c29620a6a5511fb38a3 | [
"MIT"
] | permissive | ropensci/rnassqs | 96dc104a525998072ba36422b0df85d3abe75569 | 287724e86208fd031acbed9e8a1dd41901ae1ab4 | refs/heads/master | 2023-08-31T20:42:48.578667 | 2023-08-29T15:20:02 | 2023-08-29T15:20:02 | 37,335,585 | 23 | 10 | NOASSERTION | 2023-09-01T13:25:26 | 2015-06-12T17:37:25 | R | UTF-8 | R | false | false | 1,823 | r | setup.R | library(httptest)
library(here)
# First evaluate the API KEY if available
api_key <- Sys.getenv("NASSQS_TOKEN")
api_file <- here::here("tests/testthat/api-key.txt")
if(nchar(Sys.getenv("NASSQS_TOKEN") ) != 36 & file.exists(api_file)) {
Sys.setenv(NASSQS_TOKEN = readLines(api_file))
}
# Parameters
params <- list(
... |
b5de4b72d1cb8c9448383386976ce3a73e146c2a | 43c9d57c872d49c3fe823429bd51e7d7124bf35f | /R/hcluster.R | 2ff745b15c8b91f2ee53b232e6118cd62d19d4cd | [] | no_license | cran/amap | 71134bfaf0b75ba396676d6e1781febc5b5d6098 | 5fc3186facf5afc29d0e28b4d93dae5123407720 | refs/heads/master | 2022-11-10T07:43:34.782272 | 2022-10-28T05:55:22 | 2022-10-28T05:55:22 | 17,694,352 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,637 | r | hcluster.R | ## Hierarchical clustering
##
## Created : 18/11/02
## Last Modified : Time-stamp: <2018-05-12 16:48:19 (antoine)>
##
## This function is a "mix" of function dist and function hclust.
##
## Author : Antoine Lucas
##
hclusterpar <- hcluster <- function (x, method = "euclidean", diag = FALSE, upper = FALSE, link... |
9fd15a4393f5e525eb991b96aa11a9d9f6152c7b | 7356d18cf9ab2b385fa02af33a27d6ea6a387b3c | /ROS-Examples-master/SampleSize/simulation.R | b76c589ca39d99b010d334d93e9f3d16de7923d2 | [
"CC0-1.0"
] | permissive | cleeway/Working-through-Regression-and-other-stories | 1032658cfed6a80ad4fd81ce5a0b62ab550dabdb | f3d2a98eb540b12e19cb4e3732c96d988b4e1eba | refs/heads/main | 2023-04-15T01:45:33.212759 | 2021-04-28T19:09:11 | 2021-04-28T19:09:11 | 362,594,431 | 1 | 0 | CC0-1.0 | 2021-04-28T20:11:34 | 2021-04-28T20:11:33 | null | UTF-8 | R | false | false | 1,604 | r | simulation.R | #' ---
#' title: "Regression and Other Stories: Sample size simulation"
#' author: "Andrew Gelman, Jennifer Hill, Aki Vehtari"
#' date: "`r format(Sys.Date())`"
#' output:
#' html_document:
#' theme: readable
#' toc: true
#' toc_depth: 2
#' toc_float: true
#' code_download: true
#' ---
#' Sample ... |
c3310b5569c30a5c0c423f42ba4686e725bdc7c8 | 6cd98f2264f075565a3cdeffd1569675aa51cbe4 | /man/cqrIS_.Rd | 662dc8dbe3d643ae6beac2efcf5c749583c773f4 | [] | no_license | ZexiCAI/cqrIS | 2cc6c6b414b2dd2f6f2c2984b25b8f5fb0a2334d | 76a9dccf88617ecd86464422ff4fc1ff46775dc3 | refs/heads/master | 2022-12-09T00:43:43.138400 | 2020-06-25T11:15:44 | 2020-06-25T11:15:44 | 274,821,221 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,502 | rd | cqrIS_.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cqrIS_main.R
\name{cqrIS_}
\alias{cqrIS_}
\title{Censored Quantile Regression with Induced Smoothing (The Interface)}
\usage{
cqrIS_(Z, X, cen, xi = rep(1, length(X)), init, tau.max, grid, tol,
diverge, maxiter)
}
\arguments{
\item{Z}{Covar... |
0f945d795fb7349e90f932fe3e4d9eae1aa98b49 | 1cbb1d2395055800942011b81a4629a59a342176 | /CODE_dizzys/refreshDIZZYS_2015_10_23/dizzyslan4/dizzysNewInfec.Rcheck/dizzysNewInfec-Ex.R | e494a088fd605cb745fa86778a07184ee4db8450 | [] | no_license | ttcgiang/THESE_GitHub | e783f4de184b8abc350c740e9dab83c2c493c6b4 | c13af9dfc6bfcb6270ec2fa1230dca5893ade185 | refs/heads/master | 2020-04-06T06:58:35.019224 | 2017-06-01T11:05:36 | 2017-06-01T11:05:36 | 38,418,770 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,664 | r | dizzysNewInfec-Ex.R | pkgname <- "dizzysNewInfec"
source(file.path(R.home("share"), "R", "examples-header.R"))
options(warn = 1)
library('dizzysNewInfec')
base::assign(".oldSearch", base::search(), pos = 'CheckExEnv')
cleanEx()
nameEx("coef.seirNewInfec")
### * coef.seirNewInfec
flush(stderr()); flush(stdout())
### Name: coef.seirNewInfe... |
feea5f6b51ba9d306f0753e3ec061f914bbc882e | a593d96a7f0912d8dca587d7fd54ad96764ca058 | /R/tidiers_ml_unsupervised_models.R | f0d1bf55cfe2ea3628ccf6abf1c9aebfe5d62866 | [
"Apache-2.0"
] | permissive | sparklyr/sparklyr | 98f3da2c0dae2a82768e321c9af4224355af8a15 | 501d5cac9c067c22ad7a9857e7411707f7ea64ba | refs/heads/main | 2023-08-30T23:22:38.912488 | 2023-08-30T15:59:51 | 2023-08-30T15:59:51 | 59,305,491 | 257 | 68 | Apache-2.0 | 2023-09-11T15:02:52 | 2016-05-20T15:28:53 | R | UTF-8 | R | false | false | 4,269 | r | tidiers_ml_unsupervised_models.R | #' Tidying methods for Spark ML unsupervised models
#'
#' These methods summarize the results of Spark ML models into tidy forms.
#'
#' @param x a Spark ML model.
#' @param ... extra arguments (not used.)
#' @name ml_unsupervised_tidiers
NULL
#' @rdname ml_unsupervised_tidiers
#' @export
tidy.ml_model_kmeans <- functi... |
bc829e820349d2b0949586b40db6aca2870305a4 | 7cf60676fcf01e1500b43dce908dfdd09a0033d0 | /queryExperiment1.R | 922b2d2963ff456bec55f8e703ec33b297ae2d28 | [] | no_license | kristalcurtis/r-scripts | d99f619c72807c3a05bc8f9e7d009027f22bb806 | 4ae5e7db56ca3f50331fb72c431e1d09fd4475b5 | refs/heads/master | 2021-01-20T13:47:55.519433 | 2010-12-17T00:10:31 | 2010-12-17T00:10:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,963 | r | queryExperiment1.R | # Goal: use a query's own op models to predict its latency for a certain quantile.
# Arg passed to function: basePath
# Log files should already be deinterleaved & parsed.
# ie, Expects to find the following files in "basePath":
# training-logs/Thread-*.csv
# validation+-logs/Thread-*.csv
# paramFile.RData
# *: ... |
e9a4222705080849a7af91f6ee371efc0d4ca123 | a145f59a9ddbc01ac7a6d5c1120f535c10308051 | /IO_project.R | 6f2ad4cf2dab9852c2f87b7c0207284c93a8e6c7 | [] | no_license | NBar05/IO_project | 290ec638d730b5975645474e67e6433ff87b0849 | 961423a35bb98678013481ade85f856cbb9aa930 | refs/heads/master | 2022-09-21T09:35:54.134206 | 2020-05-30T20:03:06 | 2020-05-30T20:03:06 | 266,527,595 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,934 | r | IO_project.R | library(zoo)
library(dplyr)
library(tidyr)
library(psych)
library(readxl)
library(ggplot2)
library(stargazer)
# it's a kind of magic, skip it
`%--%` <- function(x, y) {
do.call(sprintf, c(list(x), y))
}
# задаём временной промежуток вытягиваемых данных
dates <- as.yearmon(2018 + 6/12 + seq(1, 21) / 12) # август 201... |
9d4b83fb73bf329145502a54a48625086a2c5fb6 | 731e347d0751a5607593a7064989ba94ffd9ceb7 | /R/palette_hms.R | b580b2947c0e64ee661a95efe502c83974aca72a | [] | no_license | karsfri/HMSr | 71b726e7a8eb120b2cf6165d7f3ce2b7c4ffe6ab | 9516843a99c911bd14ee51758a559428bedcb71b | refs/heads/master | 2020-12-07T21:03:39.657117 | 2020-02-20T14:24:45 | 2020-02-20T14:24:45 | 232,801,472 | 0 | 2 | null | 2020-02-19T10:07:09 | 2020-01-09T12:15:34 | R | UTF-8 | R | false | false | 1,337 | r | palette_hms.R | library(tidyverse)
#' @import tidyverse
#' @import ggplot2
#' @import lubridate
#' @import magrittr
#' @export blue
#' @export red
#' @export color_main
#' @export color_extra
#' @export palette_light
#' @export palette_medium
#' @export palette_dark
#' @export palette_hms
#' @export palette_hms_darker
# Colors for... |
68a8963b109c008c201a1f52d1c41c563d775e04 | 3ab657f287cdfeff9c6bb0076d1bdf3696973f80 | /src/ldatest.R | bf20bffcd5e39b79b6614dfd48c3d91dd54b8419 | [] | no_license | cwf2/dh2016 | 7a4c5a5d12ab9d00be297435a0b4ba6bbc7d811f | b07acab8df3a1817f56ae0f401654c408dc6e533 | refs/heads/master | 2018-07-18T23:34:11.099376 | 2018-06-01T21:57:31 | 2018-06-01T21:57:31 | 48,430,253 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,000 | r | ldatest.R | #######
# topics test
one.lda.per.kmeans <- function(ntopics, nclusters, nreps=10, ncores=NA) {
inner.function <- function(i) {
t0 <- Sys.time()
on.exit(
cat(
paste(" - [", i, "/", nreps, "]"),
"...",
difftime(Sys.time(), t0, units = "min"),
"minutes\n"
)
)
... |
05c7f0c744a588c2f56a981a170a15871fdd39eb | 09af67cbd6897732da9ed5c52d31c63f83a48b96 | /Src/R_With_Cpp/Functions.R | 88014ce58b76c36266c7bddc3c5fe5127888c31a | [
"MIT"
] | permissive | arekbee/R_with_cpp | 9673ab49202d91ba63dabc824788b4d12836c8c5 | 6e1328bdbb3728da675c6b106e516df6889bd8f5 | refs/heads/master | 2021-01-10T13:56:48.791328 | 2015-12-28T18:37:25 | 2015-12-28T18:37:25 | 48,703,059 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 154 | r | Functions.R | mov.avg <- function(x, n=20) {
total <- numeric(length(x) - n + 1)
for (i in 1:n) {
total <- total + x[i:(length(x) - n + i)]
}
total / n
}
|
c58870084112cbdd18e563c3a7c0ce2fec86ec31 | 35e649b4ff8492fdc4b4b5428be5e996cd813239 | /ch_7_1_basic_graphics_5_salary.R | d234a08c0286c0ce4d647bf43ff5416fc235b4ab | [] | no_license | tsaomao/edX--MSDS-Curriculum--DAT204x | 55a67aad2dcf548f5ca6e1526cd51633ff07eb8e | 18b2e297575c6e3000bbaba9a609dbf41aee6bda | refs/heads/master | 2020-06-14T09:35:57.451090 | 2016-12-03T01:57:13 | 2016-12-03T01:57:13 | 75,204,647 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 203 | r | ch_7_1_basic_graphics_5_salary.R | # salaries already provided
# 65 rows
# Subset salaries: salaries_educ
salaries_educ <- salaries[salaries$degree == 3,]
# Create a histogram of the salary column
hist(salaries_educ$salary, breaks = 10) |
93bafe7f3d490d97d3d88278c5624f389ce9d872 | faf1f580595ad6912c1184858792870d88b965ff | /img_ejemplos/porcentajes14_meta_parche.R | ade6bf7fee80d2525e9943d612f75c0ab171d03a | [] | no_license | EncisoAlvaJC/TESIS | 732cb07f5488a388ad4b6f2417717a6262817c0d | c2bad0f255e7d5795d2ac63c80e65e3d752ea5f8 | refs/heads/master | 2021-01-09T05:34:36.738141 | 2018-08-08T20:46:52 | 2018-08-08T20:46:52 | 80,755,604 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,895 | r | porcentajes14_meta_parche.R | ###############################################################################
# carpeta central
data_dir = '~/TESIS/graf_datos/estacionariedad_filtro/'
central_dir = '~/TESIS/TESIS/img_art_dfa'
info_dir = '~/TESIS/TESIS/articulo_dfa'
g_dir = '~/TESIS/TESIS/img_art_dfa'
setwd(central_dir)
################... |
4e4405f3aa2765335c8a52b298719d82d14966f0 | ff8d54c963f04cfcd7782214b450c26726366532 | /R/SICR_simulateState.R | 308e8b903d779e583973464cd443958cca07a16e | [] | no_license | TommiKarki/NpiEurope | 26e81f54084c2b5a3add1f0284e0e2291fedaefc | 406abb7c815552239b24fe3ae7de574414795b92 | refs/heads/master | 2022-12-13T23:22:57.724027 | 2020-08-22T13:44:17 | 2020-08-22T13:51:29 | 290,290,879 | 0 | 0 | null | 2020-08-25T18:19:59 | 2020-08-25T18:19:59 | null | UTF-8 | R | false | false | 2,101 | r | SICR_simulateState.R | #' @importFrom stats rpois
SICR_simulateState <- function(t0, t1,
P,
pIsol, timeIsol, matrixCtctAge, propAge, transmRate, popSize, lethalityAge, severityAge, confinementBegin, confinementDuration, confinementEfficiency, confinementTarget, epsilon, sigma, pro... |
f18159d07bf155837df175a1fca35d5a1fc8880a | 1099e609e85486372d56c5407280c9576094c9c2 | /R/mipplot.R | 1359a958431b49a49eeab8ca5de8594bb01b574d | [
"MIT"
] | permissive | UTokyo-mip/mipplot | e342703e6f70880631efb2ef6f0c93211c37856c | b0e3ecb4c6de622ceb8fe5acd22b6aaff00b6144 | refs/heads/master | 2022-06-16T09:57:47.277800 | 2021-07-27T15:03:28 | 2021-07-27T15:03:28 | 154,427,152 | 8 | 4 | null | null | null | null | UTF-8 | R | false | false | 219 | r | mipplot.R | #' mipplot
#'
#' Package contains generic functions to produce area/bar/box/line plots of data following IAMC submission format.
#'
#' @name mipplot
#' @docType package
#' @import ggplot2 stringr reshape2 tidyr
#'
NULL
|
5f602728711aeda7bd69c43beb6b17003840bfdf | 3a500b954d00b3f43f68d75a59508a35643f3729 | /RandomForest.R | c6686698a735827026c13bd15f0093c930e5fc13 | [] | no_license | bgautijonsson/groceries | cf4a6be86079b898acdf79e8f73b01ceeac35357 | f79ac95b1c61ca9767f4e7d379bc2229fd8938fc | refs/heads/master | 2021-03-30T18:25:50.236009 | 2017-11-01T23:57:26 | 2017-11-01T23:57:26 | 108,177,039 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,067 | r | RandomForest.R | # Wrangling
library(dplyr)
library(tidyr)
library(data.table)
library(tibble)
library(lubridate)
library(reshape2)
# Machine Learning
library(caret)
library(forecast)
library(foreach)
library(forecastHybrid)
source('cost.R')
# Parallel Processing
library(parallel)
library(doParallel)
# Seed
set.seed(1337)
# Readin... |
e55d3597a12de9b0b23a7545d253ae6fb4f1ac03 | c3290a352d3699cbd0f2c4dc7f674d833184a783 | /R/DataDocumentation.R | f36a1ab098fa1b47f919003453ef9bef51e8beee | [] | no_license | kartheekkumar65/sparseKOS | 6226c0926fb20c54d0a7e598457f2007b29a87fd | f4481ae0f0331bcf7bdd53b53c0562bc56c4217e | refs/heads/master | 2021-10-19T09:02:51.189930 | 2019-02-19T21:36:02 | 2019-02-19T21:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,215 | r | DataDocumentation.R | #' A list consisting of Training and Test data along with corresponding class labels.
#' @format A list consisting of:
#' \describe{
#' \item{TrainData}{ (179 x 4) Matrix of training data features. the first two features satisfy sqrt(x_{i1}^2 + x_{i2}^2) > 2/3 if the ith sample is in class 1.
#' Otherwise, they sati... |
171c723fe3633c222f87e134d17215550c77e73e | 9d3ccd4b3908742dac1a1be4cb6f3e1be9287c4d | /code/simulation/strach/merge_simulation_plug_in_meta.R | 40070660fe7a6d4f6f7839dc6d8b40b9ed4cc518 | [] | no_license | andrewhaoyu/MR_MA | f8a35d74ea48d1662de26ee234f305606be2742b | 2e7ac792f1c40ddbc0eb6639d68981672584ccef | refs/heads/master | 2022-07-30T21:53:34.668451 | 2022-07-07T14:29:09 | 2022-07-07T14:29:09 | 203,250,618 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,410 | r | merge_simulation_plug_in_meta.R | #goal: merge the simulations datasets by pluging in true variance
times = 10
reps = 1000
TwoStage_est = rep(0,times*reps)
IVW_est = rep(0,times*reps)
IVWs_est = rep(0,times*reps)
cover_TwoStage_est = rep(0,times*reps)
cover_IVW_est = rep(0,times*reps)
cover_IVWs_est = rep(0,times*reps)
sigma_TwoStage = rep(0,times*reps... |
05cf44f9ab50db04cf24307167ded0f5847a129f | 3c25f49d8592847a741b9324b482eb769721d985 | /man/summary.freqtab.Rd | 0ed5f7d758c23aad2349ea0b3e6c82ec944dade9 | [] | no_license | talbano/equate | 5de3d041aab6817dfad9b2fef9a37ca87321aeef | 3583de82faf337c4c9e0651db9293ed8b8a768c5 | refs/heads/master | 2022-12-01T17:23:14.460656 | 2022-12-01T16:12:50 | 2022-12-01T16:12:50 | 44,709,479 | 7 | 4 | null | null | null | null | UTF-8 | R | false | true | 2,610 | rd | summary.freqtab.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/descriptives.R
\name{summary.freqtab}
\alias{summary.freqtab}
\alias{mean.freqtab}
\alias{sd.freqtab}
\alias{var.freqtab}
\alias{cov.freqtab}
\alias{cor.freqtab}
\alias{min.freqtab}
\alias{max.freqtab}
\alias{range.freqtab}
\alias{skew.freqta... |
eda45bff00bc17f22aad3c0ab25c1a198f33c897 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/munsell/examples/rgb2mnsl.Rd.R | 6a80fd09c58ade9beb60502442f37cb2c60c0a23 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 265 | r | rgb2mnsl.Rd.R | library(munsell)
### Name: rgb2mnsl
### Title: Converts an sRGB colour to Munsell
### Aliases: rgb2mnsl
### ** Examples
rgb2mnsl(0.1, 0.1, 0.3)
rgb2mnsl(matrix(c(.1, .2, .4, .5, .6, .8), ncol = 3))
plot_closest(matrix(c(.1, .2, .4, .5, .6, .8), ncol = 3))
|
02ba3c69cc3d4f14cee9c1dda1b66ba9e0b21f25 | 66a65ac1a3d7bc3a87b46be3f637e553f86e47f9 | /CH4/chebyshev approximation.R | 3900a54bc3ef1d003d9aa2067dfc16b409670d0b | [] | no_license | uncorrelated/KSQME | ee8958a31df421e877d880da6c8f6eb6333b1cbe | 3d2b6c6666ea363cc6ce9e3599c2486e63da3f98 | refs/heads/master | 2022-12-26T21:59:43.053752 | 2020-10-15T21:55:25 | 2020-10-15T21:55:25 | 281,531,395 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,409 | r | chebyshev approximation.R | #
# 経済セミナー連載「定量的マクロ経済学と数値計算」
# 第4回「オイラー方程式と多項式近似」のソースコードのRへの野良移植: チェビシェフ多項式
#
#################################################################
### Warning: Package 'chebpol' の存在に気づいてはいけません。 ###
#################################################################
#
# y = f(x)をチェビシェフ多項式で近似するための関数群
#
#
# パラメーターθを作成するためのx... |
a3e026586b2be57bda4a52e8e8fb250c9caa7652 | a182b4e4aea4f664422a1015d014ee00286a09fb | /man/check_onland.Rd | 39799f9217d26f53ce34b603d9ba1b8f1e39720c | [
"MIT"
] | permissive | iobis/obistools | 572e0c5df9b603212ea251964c9dd84168738dcb | d001391cf6b9ac7e2f8ba09d54ef78ae89441d94 | refs/heads/master | 2023-08-05T13:26:29.684831 | 2023-07-31T09:15:47 | 2023-07-31T09:15:47 | 77,918,363 | 18 | 9 | NOASSERTION | 2023-05-26T13:43:40 | 2017-01-03T13:13:47 | R | UTF-8 | R | false | true | 1,314 | rd | check_onland.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_onland.R
\name{check_onland}
\alias{check_onland}
\title{Check which points are located on land.}
\usage{
check_onland(data, land = NULL, report = FALSE, buffer = 0, offline = FALSE)
}
\arguments{
\item{data}{The data frame.}
\item{lan... |
f9a7dea4434734670c26e552aadde6d845bfdc53 | e76765a49d1be0b35c4f1fa9b98bd21fb94331ba | /write_multiple_csv_by_ACCT_ID.R | 84a4e2ac2921ec3786e678c69e58587bf0fe8e35 | [] | no_license | deontanweibin/Rcodes | e99e9fcf555b7eb92c0d9fd413770aa9a180b485 | ab114f979715fc251978889362f33f9fe180a203 | refs/heads/master | 2022-05-16T17:44:07.565768 | 2022-03-28T14:08:53 | 2022-03-28T14:08:53 | 166,375,832 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,004 | r | write_multiple_csv_by_ACCT_ID.R | #set working directory
library(dplyr)
directory <- "X:\\Group Digital Life\\mCommerce\\New Singtel Dash Reporting\\Fictitious_Accounts_Management_&_Regulatory_Data_Report\\Transaction Dump\\Transaction_Dump_Feb20\\"
setwd(directory)
df <- read.csv( file = "X:/Group Digital Life/mCommerce/New Singtel Dash Reporting/Fic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.