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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13fae0e17fc506c2cafea74ab03efa0936703d03 | bc57ef0e4eda24fbac74a6b99221a41205768493 | /R/support.R | 87860f0350d828a94da22e4a1b99841b41b6ef97 | [] | permissive | jongbinjung/RMetalog | b7c746559901d93ffa7b1621939d6fb7aa6cedfd | b7337bad527a0f3044427f311d1a5bad0a1fc4f0 | refs/heads/master | 2021-04-27T00:44:56.246401 | 2018-09-19T19:39:20 | 2018-09-19T19:39:20 | 122,658,815 | 0 | 0 | MIT | 2018-02-23T18:36:44 | 2018-02-23T18:36:44 | null | UTF-8 | R | false | false | 6,656 | r | support.R | # Supporting functions called inside the metalog function call
# Build the quantiles through a base function
MLprobs <- function(x, step_len) {
if (class(x) != 'numeric') {
return(print('Error: input must be a numeric vector!'))
}
l <- length(x)
x <- as.data.frame(x)
# Need to sort the dataframe for the... |
883c5374d2e6c21e17f9e9cc1b3f049ed265f392 | a1406bb2d1eb0d07b8830c27a8698d637c962a33 | /other_codes/display_name.R | 074608845a9ba3139f11808530c27aced2158071 | [] | no_license | yashg1/r_practice | 093111ae1c641ad5bbe0bc8634f15c5c7e8d28ce | 6cc087f6fc236e9cb289a7925b1b8662b206ffda | refs/heads/master | 2021-05-14T16:33:50.355498 | 2018-11-26T07:09:12 | 2018-11-26T07:09:12 | 116,023,587 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,031 | r | display_name.R | #Function to combine first and last names
display_name <- function(p){
stopifnot(is.list(p))
first_name <- as.character(p$FirstName)
last_name <- as.character(p$Surname)
duplicated_index <- which(duplicated(last_name))
#duplicated_name <- last_name[duplicated(last_name)]
first_charac = substr(first_name,1,3... |
091c1415097da0327c9529f8895b428fc125d802 | 62591e0ce9e488fe5faf0279c54b13284685b2b5 | /RPackage/R/sequentialImportanceSampling.R | bebafa51d053cce4cba6a375ca584324e0f3b233 | [] | no_license | rohan-shah/largeComponent | 71ba8e2d88963d1320155c94fda39ca4a8a2d548 | 02d5c5eca7013f2fcc8cfceff920dea0f7d2bd46 | refs/heads/master | 2021-01-12T15:41:32.264551 | 2016-11-21T07:15:03 | 2016-11-21T07:15:03 | 71,853,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,084 | r | sequentialImportanceSampling.R | #' @export
sequentialImportanceSampling <- function(probabilities, n, seed, graph, componentSize, initialRadius, vertexPositions = matrix(data=vector(length=0),nrow=0))
{
if(missing(graph))
{
stop("Input graph cannot be missing")
}
if(missing(probabilities))
{
stop("Input probabilities cannot be missing")
}
... |
f67c60303bcf97e858127db336958282040abea5 | 9c41c04c95796505e14ad87a1a4b86332957c43c | /Documents/networks-pres/bandwidth.r | 24711c402ca0d28941882b115a183368fd6d1fe6 | [] | no_license | fakedrake/Configurations-and-Scripts | a151fb128f60d36bd3e76797788a1cfaf932b6e2 | 797aa474d6396ec37e3ad80eccf49770b05593bb | refs/heads/master | 2020-06-05T04:10:30.473911 | 2011-05-12T17:00:52 | 2011-05-12T17:00:52 | 1,609,805 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 161 | r | bandwidth.r | pdf(file="bandwidth.pdf")
data = c(1.3, 2.5, 3.6, 5.1, 7.05, 11.5, 19.1, 31)
names(data) = c(2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009)
plot(data)
dev.off() |
0df9828e77c18982265f4488bab276ac489ea255 | ddcd6c63b01441d8d27c01c3f5fee827dcb6f708 | /man/Funkcja1.Rd | 32ea80be04a239026b7d20ad3039d8b65ff6453a | [
"MIT"
] | permissive | K4krasin/ProjektKK | bda9ca1957411f7327b0e2cafd9fdf71cc2bb52b | bd0d843bc3042a2038b4d564c1dd59a18897b126 | refs/heads/main | 2023-01-29T06:19:31.585611 | 2020-12-13T19:11:54 | 2020-12-13T19:11:54 | 320,668,188 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 784 | rd | Funkcja1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Funkcja1.R
\name{Funkcja1}
\alias{Funkcja1}
\title{Funkcja oblicza emisje dla aut osobowych poruszajacych sie na diesel, z technologia DPF.
Pod uwage brane sa zanieczyszczenia EC oraz CO.}
\usage{
Funkcja1(
dane = input,
kategoria = "Pass... |
439e228bf0fff2396e77b17721d353f2c2aacc5a | a0719512d0d83ec36757f1e6b05aafa82cde148d | /R/retile.R | 166f145ed32b53b0cdb40579c848bf9b222cf01f | [] | no_license | adamkc/DIMEChelper | 25f9ce073a8a6c9cee3e0bf1f18048fbdb881846 | 2cbaacff8f45570fef637ea804b95aa0244e7642 | refs/heads/master | 2020-04-07T00:22:39.157626 | 2020-01-30T19:33:05 | 2020-01-30T19:33:05 | 157,901,336 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,197 | r | retile.R | #' retile
#'
#' This takes a raster of the class SpatialGridDataFrame and converts it into jpg
#' chips of the specified dimensions and overlap. Band color order can be
#' specified with arguments
#'
#' @param imageName Name of Tif to be chipped.
#' @param flightName name of flight to be chipped
#' @param red Dimension... |
83d956dd71c2633b5634f94193d158a1da4d097b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/symbolicDA/tests/DClust.R | 3613decf2d7dbdd16bed25198490e13da5bcb661 | [] | 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 | 151 | r | DClust.R | require(symbolicDA)
data("cars",package="symbolicDA")
sdt<-cars
dist<-dist.SDA(sdt, type="U_3")
clust<-DClust(dist, cl=5, iter=100)
print(clust)
|
19c051eb8ddf4951f329abe87b6fd02e8b53d4da | 98fd03ebd9de52038f06cd89200a460432f9cc5c | /man/roxygen_score_family.Rd | 8e27b242c5da9f65716ee607490920a4cf85245f | [
"MIT"
] | permissive | pharmaR/riskmetric | 51d3b067da6db6ad1252f3ba706db1d922b5df64 | 3d1501880edc07cff5cd72129c0df0899db83029 | refs/heads/master | 2023-07-26T07:33:56.471690 | 2023-05-31T14:58:21 | 2023-05-31T14:58:21 | 173,354,970 | 148 | 32 | NOASSERTION | 2023-09-12T20:41:31 | 2019-03-01T19:11:16 | R | UTF-8 | R | false | true | 797 | rd | roxygen_score_family.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pkg_score.R
\name{roxygen_score_family}
\alias{roxygen_score_family}
\title{Helper for creating a roxygen header from template for score.* functions}
\usage{
roxygen_score_family(name, dontrun = TRUE)
}
\arguments{
\item{name}{the name of the... |
c3f0e7bb361deaac65cce44d70004ef5de24f43c | e82f18ca5fcb536fac2d7a702f18baf5ec4345aa | /Rpackage/focus/man/focus.projections.setup.Rd | f9063f3a83d572a3aeb2f0703cc2d3718b0bca64 | [] | no_license | suppechasper/focus | 88b570a143909170dd33b710a743323b185c4bce | 938a182a3cf48e4954057d4badfcf14aa662d700 | refs/heads/master | 2021-01-18T19:43:02.212560 | 2016-02-17T21:57:59 | 2016-02-17T21:57:59 | 100,535,516 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,599 | rd | focus.projections.setup.Rd | \name{focus.projections.setup}
\alias{focus.projections.setup}
\alias{focus.create.projection.group}
\alias{focus.set.tangent.rotation.animation}
\alias{focus.set.rotation.animation}
\alias{focus.set.no.animation}
\title{Focus - Interactive exploratory visualization for high-dimensional data}
\description{
Methods t... |
1ec3fd08a1a67f989abb5f4cbb43ec15c6ad2460 | 2327d0bc2cc45a5504c39109846e0f4cba266606 | /QID-3397-SFEchooser/SFEchooser.R | cad55619c357062ea6d0520c3370ca992eb20446 | [] | no_license | QuantLet/SFE | 3d98a33cfcdc533210856c7618c32a78e111a6ce | d25a728a4371538eae982f44ea811b5b93328828 | refs/heads/master | 2022-06-15T13:35:17.387252 | 2022-06-08T01:22:00 | 2022-06-08T01:22:00 | 72,103,182 | 12 | 32 | null | 2022-01-30T18:58:21 | 2016-10-27T11:50:43 | R | UTF-8 | R | false | false | 3,852 | r | SFEchooser.R | # clear variables and close windows
rm(list = ls(all = TRUE))
graphics.off()
# parameter settings
K1 = 20 # Exercise price compound
K2 = 210 # Exercise price option
St1 = 230 # Price of underlying asset
r = 0.04545 # dom. interest rate
sigma = 0.25 # volatility... |
cc0933189038daf325fd22ef2b1102731959e1fb | 5d1a7aef7950e4c508f9af3341ab2e03b04960a6 | /tests/testthat/test-mlog10_trans.R | 705de751fa6cde07acb9f532ecc56a7d47c56e60 | [
"MIT"
] | permissive | quanrd/ggGWAS | c981a11650b116e3e990175726878752102187e6 | cb68936dff01fc3e06ba683b918e640aa3ecdc09 | refs/heads/master | 2020-09-06T00:18:28.412842 | 2019-07-31T16:04:49 | 2019-07-31T16:04:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 381 | r | test-mlog10_trans.R | context("mlog10_trans")
test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
#' df <- data.frame(y = runif(1000))
#'
#' ggplot(df, aes(sample = y)) +
#' stat_qq(distribution = stats::qunif) +
#' scale_y_continuous(trans = mlog10_trans()) +
#' scale_x_continuous(trans = mlog10_trans()) +
#' geom_abline(inte... |
e0fe6e3aeea0b89c6f8963039515e40e95249fb9 | cba10b84d2cc708dd66148a4511451d77a92a7c5 | /man/SSplotPars.Rd | 8ea4f7f3ce1062e45a59fbaf1784c3776b0b942c | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | r4ss/r4ss | 03e626ae535ab959ff8109a1de37e3e8b44fe7ad | 0ef80c1a57e4a05e6172338ddcb0cda49530fa93 | refs/heads/main | 2023-08-17T08:36:58.041402 | 2023-08-15T21:42:05 | 2023-08-15T21:42:05 | 19,840,143 | 35 | 57 | null | 2023-07-24T20:28:49 | 2014-05-16T00:51:48 | R | UTF-8 | R | false | true | 4,622 | rd | SSplotPars.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SSplotPars.R
\name{SSplotPars}
\alias{SSplotPars}
\title{Plot distributions of priors, posteriors, and estimates.}
\usage{
SSplotPars(
replist,
plotdir = NULL,
xlab = "Parameter value",
ylab = "Density",
showmle = TRUE,
showpost =... |
286d9932112c8a6be43ca3bf05ed53206e9e5908 | eee5f4bfeba72f55c603eb8fbaa04d50af0165a8 | /R/xmashealth.R | 34d8978aa0df9c41b780abe7ddcfcc45453ce9fe | [] | no_license | cran/christmas | a5a1b761fd27fb25e9dd813ac8b18d2e73b04787 | 9e9d13c9e15639ec71a657f52f36844a14692ce5 | refs/heads/master | 2022-12-27T17:02:41.158735 | 2022-12-18T16:50:02 | 2022-12-18T16:50:02 | 236,570,863 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,402 | r | xmashealth.R | #' @title Christmas risks.
#'
#' @description Christmas risks (2011 card). Some epidemiological jokes about
#' potential effects of Christmas on health.
#'
#' @param year Year to be printed. Default is \code{2012}.
#' @param seed Seed for reproducibility of the card. Default is \code{NULL} (no
#' seed).
#' @return ... |
98fe49b92b3beb44b00059fa8c2708f6faaa1efd | dbe6347de9c2d0bf869f729161a47731daf1cdf9 | /Quiz-3/Q-3.R | c420993db6ca1e574ec10041f3bce5ca01247d43 | [] | no_license | tsloan/GettingCleaningData | ef9e4e5d36953ef534df6166ac8c76d422c06904 | 97731917c32fe7beedf0c9d494d7aaaa7c57ff69 | refs/heads/master | 2021-01-16T19:14:02.217027 | 2014-07-01T16:27:30 | 2014-07-01T16:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,309 | r | Q-3.R | #############################################################################
## Question 3
## Load the Gross Domestic Product data for the 190 ranked countries in
## this data set:
##
## https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv
##
## Load the educational data from this data set:
##
## ... |
6958629684e3911234ff5b26599653d939dba6c8 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/neuRosim/examples/stimfunction.Rd.R | 9dd7110c203eafb0774e7f72e34e170e3879ca13 | [] | 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 | 303 | r | stimfunction.Rd.R | library(neuRosim)
### Name: stimfunction
### Title: Generate a stimulus boxcar function.
### Aliases: stimfunction
### Keywords: low-level
### ** Examples
total <- 100
os <- c(1, 21, 41, 61, 81)
d <- 10
out <- stimfunction(total, os, d, 0.1)
## Don't show:
rm(total,os,d,out)
## End(Don't show)
|
19af40deb5b88416f8b1f81bc598861d70fbbefa | af0c04fd6c294d59ce2c137d5d1a377f9f5f6bfe | /DataProcessing/abm_rs_abundance_to_raster.R | b62c7a8c64eae1d247d292a57748009b3d4b5657 | [] | no_license | Grimmel/VirtualSpecies-Supplementary3 | b2da41cf413c367087844271f86975b3e857580c | 01a3881e03aaefac579825ed6783a6110e5e6f39 | refs/heads/master | 2023-02-10T07:33:32.596157 | 2020-12-30T11:34:41 | 2020-12-30T11:34:41 | 307,981,301 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,531 | r | abm_rs_abundance_to_raster.R | library(raster)
exptFolder <- "D:\\PHDExperimentOutputs\\MainSims\\Pop_1\\"
landscapeCategories <- c('LLM','LLS','LMM','LMS','LSS')
landscapeReplicates <- 10
replicates <- 9
nSims <- 2
sp.raster <- raster(paste("D:\\PHDExperimentOutputs\\MainSims\\Species5\\Inputs\\LLM1_suitability.txt",sep=""))
for (i in ... |
e3b132e515d1758447d886466cb26b15326c1e9b | b49dfd7e166ef072681a3abff54ffa2aa535db57 | /code/04f_plot_figure9_apc_statebins.R | c4af403291703cfd9f5b8f8af225bfdb0797a102 | [] | no_license | mkiang/opioid_hotspots | 66da7dd0e664abbd150f02dedc4d3ba433c5d9ac | b6125de0b0ec20098e4aa1d47717ca5688b98f75 | refs/heads/master | 2020-03-12T23:59:39.027041 | 2018-06-07T19:29:56 | 2018-06-07T19:29:56 | 105,161,859 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,830 | r | 04f_plot_figure9_apc_statebins.R |
## Imports
library(tidyverse)
library(viridis)
library(statebins)
source("./code/mk_nytimes.R")
## Pull yaml ----
cfig <- config::get()
PVAL <- cfig$sig_p_value
MIN_RATE <- cfig$min_rate
plot_folder <- cfig$plot_dir
data_folder <- cfig$working_data
## Data ----
est_df <- readRDS(sprintf("%s/joinpoi... |
cd5460827fe894e354ca2a1942e244281aec5299 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/BioGeoBEARS/examples/calcZ_part.Rd.R | 03b274982a37e4c7d46ede1b36358861bf7b5813 | [] | 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 | 192 | r | calcZ_part.Rd.R | library(BioGeoBEARS)
### Name: calcZ_part
### Title: Calculate Z (equation 6.3 of Harte 2011)
### Aliases: calcZ_part
### ** Examples
testval=1
n=6
lambda1 = 0.5
calcZ_part(n, lambda1)
|
6c56e3dbabe4a56b0b72643783766a605b9ddf29 | 45224ab73092fb8e7f13da6f714b3a86e6a6f6ee | /extras/CoordinatingCenterCode.R | 5f234bdea7238a22307e3c4cb3c42bdeae75e341 | [] | no_license | ohdsi-studies/EumaeusCovid19Vaccines | 1bca11b5a884db7253d07e551067551a73c2658e | 1bca22aacc166ca67a6a463c2f2452e7d5fedd0d | refs/heads/main | 2023-06-14T18:53:02.451320 | 2021-07-06T10:08:56 | 2021-07-06T10:08:56 | 383,422,950 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,425 | r | CoordinatingCenterCode.R | # This file contains code to be used by the study coordinator to download the files from the SFTP server, and to upload them to the results database.
library(Eumaeus)
library(OhdsiSharing)
allDbsFolder <- "r:/Eumaeus/AllDbs"
# dir.create(allDbsFolder)
# Download files from SFTP server --------------------------------... |
02f3936702d789e3bd08a5b692fda5e77a769aa8 | 12c5fe203a70038f7dbb724cd101239d689fc4bf | /필기/example5.R | 0f2691bd83aee79da283ff4c12645d46f1512651 | [] | no_license | choisawyou/learnR | d5479280b5fa5011d37df487a12647cab6da310e | 1fea4f39f18a3878ba0dee12f29a31fc5586000e | refs/heads/master | 2020-09-21T11:47:44.983163 | 2020-04-21T14:48:03 | 2020-04-21T14:48:03 | 224,779,452 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,963 | r | example5.R | #
# 5일차
#
setwd( "D:/WorkR" )
df <- read.table( file = "airquality.txt", header = T )
df
class( df )
dim( df )
str( df )
head( df, 3 )
tail( df, 3 )
install.packages( "xlsx" )
install.packages( "rJava" )
library( rJava )
library( xlsx )
df.xlsx <- read.xlsx( file = "airquality.xlsx",
sheetInde... |
d4bd7694495042e4363ef78a2c603f968cfc7b10 | aeb7ac92f9f84298fc7d93dd133499b9d972aa86 | /election2016.R | 883ac7211f3c001b29324bf914dae83f40af7867 | [] | no_license | yalotfi/twitter-election-2016 | 9e6599a57fb2d3eb1f3841f0af83e711dc0f742d | e5deb86434b7130e9a37a9e40184a9851694d8d3 | refs/heads/master | 2020-07-02T11:30:23.035241 | 2016-12-01T21:51:54 | 2016-12-01T21:51:54 | 74,310,207 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,148 | r | election2016.R | #####################
### Load Packages ###
#####################
## Call script
source("loadPackages.R")
###########################
### Organize Shapefiles ###
###########################
## Load state shapefiles
states <- readOGR(
dsn = "shapefiles",
layer = "cb_2015_us_state_500k",
stringsAs... |
b59f160552e40b75a4d36c00eaa390be431ddbfe | 51e8db3547cc6a72863e889bd2a1c04b120c0e77 | /man/leafletR-package.Rd | 020b8776a0f3130e4b99012b56e461cd60794bbf | [] | no_license | cran/leafletR | 4aeae3155b590632d98b47db3967fcf85fc8072a | fd481b9a16b196fe333a680e79bcf91dd5377ef2 | refs/heads/master | 2021-01-23T19:14:01.134188 | 2016-04-01T16:24:37 | 2016-04-01T16:24:37 | 17,697,032 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,525 | rd | leafletR-package.Rd | \encoding{UTF-8}
\name{leafletR-package}
\alias{leafletR-package}
\alias{leafletR}
\docType{package}
\title{Interactive Web-Maps Based on the Leaflet JavaScript Library}
\description{Display your spatial data on interactive web-maps using the open-source JavaScript library Leaflet. The package provides basic web-mappin... |
4b280341342b8aa9fff00e97df5c45d596ca58e7 | 203053106dccd4b971fdef22956df0281dfc6f0e | /EM_binomial.R | 3046ada08c6ccf54d7b18e9979412c98fdc5b2f5 | [] | no_license | JoonsukPark/examples | 31918dcbdcd98be4796eb96e84990852b802b915 | 91e1f3a1c1396762530269e1338728783c981235 | refs/heads/master | 2020-06-06T13:52:01.439264 | 2019-08-11T17:45:56 | 2019-08-11T17:45:56 | 192,757,363 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 753 | r | EM_binomial.R | n <- 10
p <- c(0.6, 0.5)
n_data <- 10000
coin <- rbinom(n_data, 1, 0.5)
ps <- coin*0.8 + (1-coin)*0.45
y <- rbinom(n_data, n, ps)
iter <- 0
dif <- 1000
eps <- 1e-10
E <- function(p, weights) -sum(weights*dbinom(y, n, p[1], log=T) + (1-weights)*dbinom(y, n, p[2], log=T))
M <- function(p, weights) optim(p, E, weights... |
891e96610ea190411f26f571302cd3118ea4afc4 | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/10066_3/rinput.R | e3c0f49f77731107f39b7112a352d74ed7646bb2 | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 137 | r | rinput.R | library(ape)
testtree <- read.tree("10066_3.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10066_3_unrooted.txt") |
58756df103fb77d56ec7a55780edd6e8746b717c | 738da1122b2097ac18722a7997cf8c64c0d349a8 | /R/linear_LDA.R | e14cfb7517e4997c18c1049e540d761454043ffc | [] | no_license | ZhHuiJun/Rdimtools | 21b1242f0765806fbc811ea01de3ab634543011e | 6e8f099d7f9952f1c2984a733461bf30cfe0a208 | refs/heads/master | 2020-06-17T13:38:55.693909 | 2018-12-21T13:00:06 | 2018-12-21T13:00:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,039 | r | linear_LDA.R | #' Linear Discriminant Analysis
#'
#' Linear Discriminant Analysis (LDA) originally aims to find a set of features
#' that best separate groups of data. Since we need \emph{label} information,
#' LDA belongs to a class of supervised methods of performing classification.
#' However, since it is based on finding \emph{su... |
b2aa4824fe77fb9f30f0dcd94fa94463aa84b752 | 65e296e32ea26aad460312d7f4db5150b8fb402f | /plot2.R | 162cb08e16554dbe11fac7fa1b71ed941c6fa08a | [] | no_license | rfschtkt/ExData_Plotting1 | ffaf50dea24633d2df0cb375eeead70ccce39631 | 2143588e702c33302071828266afe178deadc833 | refs/heads/master | 2021-01-18T10:08:52.973110 | 2014-08-10T13:09:57 | 2014-08-10T13:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 870 | r | plot2.R | url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
zipfile <- "exdata_data_household_power_consumption.zip"
if (!file.exists(zipfile)) download.file(url, zipfile, method="curl")
file <- "household_power_consumption.txt"
if (!file.exists(file)) unzip(zipfile)
# TODO: could we... |
671ac54727a5244375b480e5c07dbbe847e67481 | 29e6954af28c27891bca4270b5d7dc00ed3f1d2c | /plot1.R | 907b19419b2fd156667e328e22bf6a2a1b31bd0a | [] | no_license | manastiwari/Exp_Data_Analysis_Assignment1 | 00277a51d8f7fbee137e5e5856eb5653a493c7e0 | a1bf24c3b9b455432718a8a6d0354667bfdb23bb | refs/heads/master | 2020-03-09T07:00:48.777562 | 2018-04-08T15:43:29 | 2018-04-08T15:43:29 | 128,654,643 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 568 | r | plot1.R | setwd('C:/Users/hp/Desktop/6th sem/Data Science/Exploratory Data Analysis')
dat1 <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
subdat1 <- subset(dat1, Date %in% c("1/2/2007","2/2/200... |
aae5353177647f4c62b9c155f12f26c7fbb128f1 | eb08ab7f3a97936b26ebacfe098e77e9a1754c8d | /man/init.Rd | 9c5de84ad6dec09db0032f52575c2ddb59d32daa | [] | no_license | marcalva/diem | 2bc0cd6ba3059984ad1ef17ca42d3399a7acef63 | a9a4d9d5f4d2a72a553e8b41afe10785c19504e8 | refs/heads/master | 2022-12-23T19:42:53.503040 | 2022-12-20T04:35:28 | 2022-12-20T04:35:28 | 184,798,028 | 9 | 6 | null | null | null | null | UTF-8 | R | false | true | 2,267 | rd | init.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/init_clust.R
\name{init}
\alias{init}
\title{Initialize parameters}
\usage{
init(x, k_init = 20, use = "kmeans", droplets.use = NULL,
n_sample = NULL, nstart_init = 30, min_size_init = 10,
fixed = NULL, model = "mltn", psc = 1e-10, seedn ... |
109ce3cbbd014b6774817c9cb154ec39959b661e | 79aa1613f924627f22e4bc60238bd65b3566d61e | /R/data_NYSE.R | 74b7eb3f82716fa886947e68cfc589fc3b61dc85 | [
"MIT"
] | permissive | tsurf101/olpsR | 4d027e7e57bb7650ccd32cd99178464aa6fe6ac4 | 56cdb47725eb1348223355b0c83a42d9f229c1af | refs/heads/master | 2021-05-17T17:33:51.727673 | 2020-03-28T21:36:42 | 2020-03-28T21:36:42 | 250,898,378 | 0 | 0 | NOASSERTION | 2020-03-28T21:36:09 | 2020-03-28T21:36:09 | null | UTF-8 | R | false | false | 1,832 | r | data_NYSE.R | # =============================================#
# Documentation for NYSE dataset with roxygen2 #
# =============================================#
#' NYSE daily returns
#'
#' The dataset contains daily returns of 36 stocks listed in the
#' New York Stock Exchange from 1962-07-03 until 1984-12-31, that is 5651 tradin... |
6e7056e472f0fa7063e75699ba54c236ec7bdb1e | 9ab62e21cc4ac8da5b938c9e720a19dae68f1f88 | /ScalarCoupling/explore1.R | f32d7895efa2df3b5612fe9365f0f0255379fc0d | [] | no_license | CollinErickson/Kaggle | 28d9efbc6c96f469c98b7ad512ec6046fd219e49 | a2c6e50f59850afa9d0fbe0f14ea63016560f65d | refs/heads/master | 2020-05-29T08:48:53.828236 | 2019-07-16T13:26:46 | 2019-07-16T13:26:46 | 69,776,048 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 768 | r | explore1.R | library(magrittr); library(dplyr)
dipole_moments <- read.csv('./ScalarCoupling/data/dipole_moments.csv', stringsAsFactors = F)
dipole_moments %>% str
dipole_moments %>% summary
dipole_moments[,2:4] %>% pairs
dipole_moments[,2:4] %>% cor
magnetic <- read.csv('./ScalarCoupling/data/magnetic_shielding_tensors.csv', strin... |
92e538173697ad354c82d88bd618498f58689db8 | 774d499250bfa17fa9d4b4058af97ed5d91b9709 | /man/dget_l_ISO.Rd | f029e533603e88491bcbb2682ba7d7b385073cee | [
"0BSD",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pboesu/DEButilities | 495a20dea2ff373df32472a23d924052b13a535b | e2abb26d428207893dbb68212f43c994803a4659 | refs/heads/master | 2021-09-05T16:43:20.687795 | 2018-01-29T18:01:57 | 2018-01-29T18:01:57 | 114,688,190 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 390 | rd | dget_l_ISO.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dget_l_ISO.R
\name{dget_l_ISO}
\alias{dget_l_ISO}
\title{Differential equation}
\usage{
dget_l_ISO(vH, l, pars)
}
\arguments{
\item{vH}{scalar with scaled maturity}
\item{l}{scalar with scaled length}
\item{pars}{5-vector k, lT g f sM}
}
\v... |
e52f05c499e8adcbdc123a055ee6c01a17a632bf | bae0c518f1e2c8cec2eff5b2d2c64e39427543b8 | /kubobook_2012/distribution/plot.randest.R | 7e33ecf56cf506b0757f65c2d3b23bd16c6dc686 | [] | no_license | yoshiki146/Stat_Modelling_for_Data_Analysis | 9844e4424731d5f7584b1d445f555b892df48e35 | 8e7383f42b0f0af03f781618501f144264a4929d | refs/heads/master | 2020-03-19T09:25:30.982914 | 2018-06-12T11:46:46 | 2018-06-12T11:46:46 | 136,287,546 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,050 | r | plot.randest.R | # R --vanilla!
source("COMMON.R")
N <- length(data)
mean.y <- mean(data)
mean.true <- 3.5
y <- 0:9
ymax <- 11
plot.frame <- function(file, ymax = 14, width = 2.0, height = 2.0, xlab = "y")
{
dev.on(file, width = width, height = height)
par(mar = c(2.4, 1.5, 0.1, 0.1), mgp = c(1.3, 0.6, 0), cex = 1.2)
plot(
c(), ... |
ef4ec72662950dfb6d6666cd792f3e51089a2056 | c90d02d3e5f865f613b9646904ca99f7e0412b01 | /polycharts_versions/figure5_12.R | 678e8327383ac690544be04e4d477d07a58ca510 | [] | no_license | arturochian/rCharts_lattice_book | b7fd91fe68b0721e6fced72b90c62990332780c5 | 367ca3f18cf2f7696d4b5fb5e8b82133a1817aa6 | refs/heads/master | 2021-01-23T00:15:59.741297 | 2013-05-04T03:51:32 | 2013-05-04T03:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 679 | r | figure5_12.R | #Figure 5.12
#http://www.amazon.com/Lattice-Multivariate-Data-Visualization-Use/dp/0387759689/ref=cm_cr_pr_product_top
#not sure if this is possible since no type = "h" in polycharts
require(rCharts)
require(reshape2)
data(SeatacWeather, package = "latticeExtra")
SeatacWeather.melt <- melt( SeatacWeather, id.var =... |
c8c835b8bc53d96b1cfe40267a4a4ab0a7d749cc | df0b75acae3011ad458de0f80a99b92d1e0c30e3 | /q54.R | fd348901130622bee5cdb047455b2832f2a974fb | [] | no_license | agamat/portanalysis-approblems | f3dfe571aa35a5777a9b174e7eb640748445fd24 | 26c5b1011df882fbbcb50faeada9d305df8bfba4 | refs/heads/master | 2020-12-27T14:46:32.398423 | 2013-11-12T21:05:57 | 2013-11-12T21:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 748 | r | q54.R | source("q53.R")
source("efficientp.R")
weekly.stocks.returns <- na.omit(fapply(weekly.stocks, FUN=returns))
weekly.combined.returns <- cbind(weekly.stocks.returns,
weekly.sp.returns)
ws.means <- colMeans(weekly.stocks.returns) * 52
wc.means <- colMeans(weekly.combined.returns) * 52
w... |
2ff9f7dc357ef1c71fe7dc6fae90fcce6bd9f43c | a8447e92df267b33bd5da90668db75b4677e552c | /R/hist.data.frame.R | 36a28516938afa13ed3f7d6bff632fec8f55bce3 | [] | no_license | tianwei-zhang/tianweiR | 9a906e56ef0c55b21e612776d776fe1295a3e496 | de89656bce58b6cb241c85b83182ebc65c720e3e | refs/heads/master | 2021-01-20T05:08:37.740307 | 2017-10-05T14:33:18 | 2017-10-05T14:33:18 | 101,416,744 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 372 | r | hist.data.frame.R | ### need to test and debug later
hist.data.frame=function(data,n){
data=as.data.frame(data)
num_col_index=seq(1:ncol(data))[sapply(data,is.numeric)]
plot_row=ceiling(length(num_col_index)/1)
# par(mfrow=c(plot_row,1))
for(i in num_col_index){
hist(data[,i],n,main = paste('Distribution of',colnames(data)... |
cbe096922cd532520fe15c4e8995cc3435413afb | ea273dda5dbf981c3db326d913a554f95888d399 | /data/espn_games.R | 2ce8cc59df6f53930a3984793de1766e9e0096a7 | [] | no_license | johnson-shuffle/fantasy | b54d620f3afe7d160c3c4e392a77ec5e30fdfc98 | ef6d0511e34974ea02515cfbf3f92053fbf43f3d | refs/heads/master | 2020-03-31T05:47:49.483326 | 2018-10-07T22:00:59 | 2018-10-07T22:00:59 | 151,959,104 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,038 | r | espn_games.R | #---------------------------------------------------------------------------------
# Preample
#---------------------------------------------------------------------------------
rm(list = ls())
source("~/GoogleDrive/Research/Fantasy/fantasy.Rprofile")
#-------------------------------------------------------------------... |
242d5f4bcaeebd2ff6649480d5d6a55b6ae60b66 | 8fe38811d463b585c25fbc86678e2a84d22e1af9 | /cchic_demographic_extract.R | 9cc7be5b87e13c31d1139db6a4375d717e0b2a6e | [] | no_license | ha05069/msc_dissertation | 730d2174f9da97475d554f6b1a3aa13adee128fa | 9ee3c4334a40c7390edada1b7c127e7bb13f5f94 | refs/heads/master | 2020-07-02T21:52:55.764823 | 2019-08-12T10:13:39 | 2019-08-12T10:13:39 | 201,678,254 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,104 | r | cchic_demographic_extract.R | # Extract and join CCHIC demographic data
# establish connection to HIC database and retrieve tables
ctn <-
tbls <-
# extract demographic codes:
demographic_codes <-
tribble(
~hic_codes, ~ short_name,
"NIHR_HIC_ICU_0001", "pas_number",
"NIHR_HIC_ICU_0411", "ad... |
40d74c4d23f8205fda5c897a6c6be0f170d16018 | 366ec1e0e81f9d8c40e2fde01efa44d640c67daa | /man/anlvm.fit.Rd | af62b61c865f07cf8158d27e945ac94a86841ab2 | [] | no_license | tjfarrar/skedastic | 20194324833b8f2f20e5666b642cff617159588c | 050e6a177a28fb0cc2054b506a53b09d6859e3c7 | refs/heads/master | 2022-11-17T22:41:43.930246 | 2022-11-06T06:39:13 | 2022-11-06T06:39:13 | 219,455,416 | 6 | 0 | null | null | null | null | UTF-8 | R | false | true | 11,881 | rd | anlvm.fit.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anlvm.fit.R
\name{anlvm.fit}
\alias{anlvm.fit}
\title{Auxiliary Nonlinear Variance Model}
\usage{
anlvm.fit(
mainlm,
g,
M = NULL,
cluster = FALSE,
varselect = c("none", "hettest", "cv.linear", "cv.cluster", "qgcv.linear",
"qgcv.... |
0b234bca9a1ebbd2840e2bc2ac3bc78d5e9bc148 | 9b5aaacd59506bae1ab810c6ae1695a968903476 | /server.R | d17ea55ba35279a98d07d84e72a4dfd0ab097506 | [] | no_license | darrendonhardt/DataProducts-Assignment | 05cae6e79eb38c4b91c2246795fa4427abd9349f | 97486a9d43b3afb057f9dac6e9be838ba05cf82c | refs/heads/master | 2016-09-08T07:23:42.197993 | 2014-08-24T14:02:05 | 2014-08-24T14:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 587 | r | server.R | # server.R
library(datasets)
library(ggplot2)
data <- mtcars
shinyServer(function(input, output) {
output$plot <- renderPlot({
data <- subset(data,
cyl>=input$cyl.range[1] & cyl<=input$cyl.range[2] &
disp>=input$disp.range[1] & disp<=input$disp.range[2] &
... |
ba7c4f88a19b0b3dd2dbcc1a75b1611713209d03 | 3ede1e837093ef53ddc9b25f9332fb80d2ebefb9 | /R/fun_recovery.R | b976e130b65e51bdb4ac036b747192462842095e | [
"Apache-2.0"
] | permissive | RETURN-project/UpscaleRecovery | 2be5e40e9ef60bc89823b153b0b5411daf6612f2 | c77ae3510b3056fe842621b34d59f25dfe4d7e04 | refs/heads/master | 2021-03-11T22:37:29.327516 | 2020-09-28T13:07:34 | 2020-09-28T13:07:34 | 246,566,448 | 0 | 0 | Apache-2.0 | 2020-09-28T13:07:35 | 2020-03-11T12:35:39 | R | UTF-8 | R | false | false | 16,603 | r | fun_recovery.R | #' Calculate recovery metrics from a time series with known disturbance date. The calcFrazier function derives the RRI, R80P and YrYr recovery indicators, defined by Frazier et al. (2018). The indicators are originally developped for annual long-term time series of optical vegetation indices (the indicators are shown i... |
2b173b7a34155f5b988239499b66334fdd20d3ef | 0b9725208a5f98fdea10d1cf84d3f62f94d4a00d | /man/preCluster.Rd | 023e6f632301076f8202f62457c08c455650dbca | [
"MIT"
] | permissive | alienzj/endoR | 09411c1a2ba27a3a24f350a878b4b14d3c59553d | 138d31e8e1e0cf1ca330356caa420e0803ff4488 | refs/heads/main | 2023-08-26T02:06:28.235858 | 2021-10-27T09:35:54 | 2021-10-27T09:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,267 | rd | preCluster.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preCluster.R
\name{preCluster}
\alias{preCluster}
\title{Extract decisions from a model and create bootstrap resamples.}
\usage{
preCluster(
model,
model_type,
data,
target,
times = 10,
p = 0.5,
sample_weight = NULL,
classPos ... |
1d351aa3c4ea14c44c3268c5f297172e5cdf5f98 | 6f490aab522bae82056a9d7afbf484835ce772db | /Homework #1.R | f919f3ae3cc0d29adc46b425e2305bfcb3048ae4 | [] | no_license | Acelhaka/RStudioProjects | ced8aa68e6b948d796badec622374964ec0ead74 | ac32c18eeadfd6439e5713d9a9dd69d809a990cd | refs/heads/master | 2020-04-27T08:49:10.589255 | 2019-03-06T17:11:36 | 2019-03-06T17:11:36 | 174,187,349 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,452 | r | Homework #1.R | ##Homework #1
##Amarilda Celhaka
##9/4/2018
## Write a function p=proportion(x,a)
##that returns the proportion of elements
##in a vector x with values less than or equal
##to a given number a.
p <- function(x, a){
z <- x[x <= a]
prop = length(z)/ length(x)
return (prop)
}
##to test th... |
7b132926defff26bcf5eabee950a9ddc644c0504 | a4398c997dfb62b9b7383823a54be62997aa59c8 | /script/functions_script.R | 62567f1931c67c9e28ac0a658b9c3106ce4aee75 | [] | no_license | amanda-mari/nyc-high-school-grad-rates | 202441ba6cef007c2f44e8bf3e02ab1f0af8f1fd | 2fc4d9d3940b7acb99763d6ad2e25141fcd5772c | refs/heads/main | 2023-03-26T23:22:24.109357 | 2021-03-17T00:31:40 | 2021-03-17T00:31:40 | 333,556,658 | 0 | 0 | null | 2021-03-17T00:31:40 | 2021-01-27T20:51:18 | R | UTF-8 | R | false | false | 390 | r | functions_script.R | # Functions ---------------------------
read_excel_sheets <- function(sheet_name, path) {
x <- readxl::read_excel(path = path,
sheet = sheet_name)
}
read_pdf_data <-function(high_school_directory_pdfs){
pdftools::pdf_data(high_school_directory_pdfs)
}
remove_blank_pages <-function(nested_li... |
6567e1719e480b40da63e9a6d43391acda6a5e93 | 727e96e85a03cf01d46c132225e171218c8dd1e5 | /man/applyScreenTable.Rd | ea77f79fa3bf6af7d52ac8ed8977607c14abd4d5 | [
"MIT"
] | permissive | utah-dwq/irTools | 6faf9da88514cf72b2166f48074348c00a6f2137 | da34c77f363a00767563d76112ea87004c3be0d4 | refs/heads/master | 2023-08-31T23:58:52.981989 | 2023-08-25T15:31:22 | 2023-08-25T15:31:22 | 147,577,302 | 2 | 0 | MIT | 2022-08-30T21:54:40 | 2018-09-05T20:44:04 | R | UTF-8 | R | false | true | 1,674 | rd | applyScreenTable.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/applyScreenTable.r
\name{applyScreenTable}
\alias{applyScreenTable}
\title{Apply screens to WQP data by selected table}
\usage{
applyScreenTable(
data,
wb,
sheetname,
flag_col_name,
com_col_name,
startRow = 1,
na_dup_err = TRUE
... |
c559204e08d88121184e9959d790177a89a5316a | 1eb6f2998035f9884a86b54c61641157b8fa6d2f | /3-2_hashChain/modulo.R | 4f5a31972ba9a3412a0e6d0d1d5ab3c02dd77a85 | [] | no_license | markculp0/dataStruct | 90de9f0ab70bf9f8d93253dd5ffa0ce9e093bef7 | 5c82fc8c70e3f10b384206f1eb9b420385ea1bef | refs/heads/master | 2020-05-28T08:26:25.606863 | 2019-07-05T15:20:49 | 2019-07-05T15:20:49 | 188,937,959 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 798 | r | modulo.R |
# ========================================
# h("world")
119 + (111 * 263) + (114 * 263^2) + (108 * 263^3) + (100 * 263^4)
# [1] 480407646954
480407646954 %% 1000000007
# [1] 407643594
407643594 %% 5
# [1] 4
# ========================================
# java
# char character = 'a';
# int ascii = (int) character... |
ff335529eed3cb23250891d0f5eb76e5dd197ac2 | 8a8002f3b98c1c841e7c1cacc5536e4f9ffb8a8d | /man/vectorToUniformDist.Rd | 843be687954886ca4afc24a020c6039e89578e2f | [] | no_license | alesaccoia/alexr | f3c537ff565a0a9e3b911ea227cb5d1eb708641e | 8750c581656ae695facc36126610dd3e0c0cc7ae | refs/heads/main | 2023-03-29T13:48:36.982005 | 2021-04-10T07:28:41 | 2021-04-10T07:28:41 | 356,506,467 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 609 | rd | vectorToUniformDist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{vectorToUniformDist}
\alias{vectorToUniformDist}
\title{Samples a vector from a uniform distribution, the sum adds to the mean}
\usage{
vectorToUniformDist(N, M, sd = 1)
}
\arguments{
\item{N}{the number of samples}
... |
9aa598261d464db3f7e06b87b456f3622aa5325c | 4906e66db6ada21b9c6da45ee03cb977df5ffd16 | /demo/deldir.R | dda02e2d56ef1947fdfec614f0d73723f7830edd | [] | no_license | jsta/spnetwork | 482facd8c997c52d329ed26ac0cf15c5c422960c | d0e9d78a411dee9ba3c0b3ee681f5dbae7183221 | refs/heads/master | 2021-06-11T23:09:37.895782 | 2019-01-23T01:59:56 | 2019-01-23T01:59:56 | 96,037,556 | 0 | 0 | null | 2017-07-02T17:04:27 | 2017-07-02T17:04:27 | null | UTF-8 | R | false | false | 38 | r | deldir.R | # content has move to
vignette("spn")
|
200dc5259438ede9ed345d6bc82a11fcbe9652ea | 4a43a15968f3059ee1eae5d1bdee5b67ffa7f28a | /man/node_info.Rd | 6398f4f8e33791f0bd05cec3a038a5bee4b5334f | [
"MIT"
] | permissive | carlosal1015/DiagrammeR | b438f4e9d9be89742f3ba2ab4d0470f6a31643a7 | b3a96de1e6e65b0a0927cc349d18f6a34bd1a8ef | refs/heads/master | 2021-05-14T18:19:43.104026 | 2018-01-02T20:03:29 | 2018-01-02T20:03:29 | 116,067,939 | 0 | 0 | NOASSERTION | 2019-06-24T01:01:51 | 2018-01-02T23:27:26 | R | UTF-8 | R | false | true | 1,462 | rd | node_info.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/node_info.R
\name{node_info}
\alias{node_info}
\title{Get detailed information on nodes}
\usage{
node_info(graph)
}
\arguments{
\item{graph}{a graph object of class
\code{dgr_graph}.}
}
\value{
a data frame containing information specific
to ... |
76b3bf93b85716f9bbc88bf928ac6243d8e0ec68 | 745295046a9499a459f379c2931db70e21cd39e3 | /components-graph_aggregator/src/main/resources/mergeGraphs.R | cae4e54b61727118442436ef2090ff4dfbaf93ec | [] | no_license | AnalyticsWorkbench/Components | bc109595c5707388ffe2c319cdbbfdadedabfde6 | cd7ab7eeaed7480712a3270cc9f81af0a7041634 | refs/heads/master | 2022-12-09T15:05:38.538578 | 2019-05-23T15:23:48 | 2019-05-23T15:23:48 | 136,925,042 | 2 | 1 | null | 2022-12-05T23:55:36 | 2018-06-11T12:44:40 | JavaScript | UTF-8 | R | false | false | 2,303 | r | mergeGraphs.R | require(igraph)
require(plyr)
combineNodeAttributes <- function(nodeData) {
idOrLabel <- ifelse(byLabel, "label", "id")
ddply(nodeData, idOrLabel, function(subdata) {
as.data.frame(lapply(subdata, function(column) {
if (is.numeric(column)) {
sum(column, na.rm = TRUE)
... |
881c2bb525614626beb896e5e632d1a4709b25fe | d59fbaae55043f9249a4bcddcb919ca9b3f0fbc6 | /plot2.R | 72966c0c960058259a2fc9bae087cb51e60982f1 | [] | no_license | iampawansingh/ExploratoryDA | c3a44dfa0799e7111e32d3c1fdccca8095f1bf6c | cca33cb1f004312f6c2872c166ad5425caaee944 | refs/heads/master | 2021-07-31T01:54:47.358817 | 2014-09-07T19:09:55 | 2014-09-07T19:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 235 | r | plot2.R | ### Making Second Plot
png(file = "plot2.png", width = 480, height = 480)
with(power_data_sub, plot(time,Global_active_power, pch ="",type ="l",
ylab = "Global Active Power (Kilowatts)", xlab = ""))
dev.off() |
3bf5508836ababaea2c8d57a56b90ec847542f4f | 504f8c9876bf93ff2755d0e1c142d42e7600d129 | /man/ffModelLM.Rd | 15bd450522c98eda8fdbd89493f2d5db81f710b9 | [] | no_license | jeff100383/fundAnalysis | ffa38eade5ba052bd0be9ef4dd70b018eb24de0c | 8ed78664e8c1a912ea6544bb43d616e7ce90b8b0 | refs/heads/master | 2022-04-02T19:55:29.788182 | 2019-12-02T01:11:44 | 2019-12-02T01:11:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 685 | rd | ffModelLM.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fa_utilities.R
\name{ffModelLM}
\alias{ffModelLM}
\title{Generates lm models for one or more funds using Fama-French data as independent variables}
\usage{
ffModelLM(rets, ff_data, s = NULL, e = NULL, n = NULL)
}
\arguments{
\item{rets}{List ... |
62e79c20d1490d6cef9aa7aab13065a9bc642df1 | edee17c088ce50d56ed265ccfa1b2b7c4fc7182c | /Lab Sample Scripts/pca_sample.R | 96d0531883cc18d2a33396a42d673930406812d6 | [] | no_license | rashidch/Advanced-Data-Analysis-with-R | 21a947681850a3a665658d8d31eb616ea00bd0b8 | f933da7e647990f39f1d6999e12ae7e8e65f9bde | refs/heads/master | 2021-06-28T01:55:34.644043 | 2017-09-13T19:05:00 | 2017-09-13T19:05:00 | 103,429,890 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 306 | r | pca_sample.R |
data(crimtab)
head(crimtab)
colnames(crimtab)
dim(crimtab)
str(crimtab)
apply(crimtab,2,var)
pcacrim= prcomp(crimtab)
pcacrim
par(mar=rep(2,4))
plot(pcacrim, type = "l")
#better visuliziling
pca$rotation= -pca$rotation
pca$x= -pca$x
biplot(pca, scale = 0)
crimtab[16:17,9]
crimtab[17:18,9]
|
5f35630f90b029c4c5f7150ed32d29ae3a1939b0 | 5542631869b0e4ce30fd12ae29ff025e9ce877f0 | /libs/lib_fnames.R | c4bd939b3474cd3c87b036d3ee465e47202a45d3 | [] | no_license | rbstern/analise_goleiro | f2870e3c31c3299f961ab1b0ae4d44ed9c575b7e | 6d395128e85a1e1142b31b07e12a03138cfe05fd | refs/heads/master | 2021-01-25T08:03:15.820418 | 2020-06-04T16:34:21 | 2020-06-04T16:34:21 | 93,708,349 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 512 | r | lib_fnames.R | dir_analysis = "./code/analysis/"
dir_data = "./data/"
dir_data_raw = "./data_raw/"
dir_plot = "./plots/"
dir_proj = "amparo_2018/"
fname_analysis = function(fname)
paste(dir_analysis, fname, sep = "")
fname_data = function(fname)
paste(dir_data, dir_proj, fname, sep = "")
fname_data_raw = function(fname)
pas... |
5fccad1340a2ca8046f94e56d1af2208b1768cf1 | 2edd6b712b94a8146853f988d14198116ab92b94 | /ExplorationUB.R | 540426f4c5fca8b79b5b3c93e8c036ad6ba0aca6 | [] | no_license | jazippay/portfolio | d871a850ee2a05ec1a1c9703f5d59f859d1c9890 | a778f196412adf574181e32d9ecc89ed28d68160 | refs/heads/master | 2023-01-08T10:24:12.639273 | 2020-11-10T19:46:10 | 2020-11-10T19:46:10 | 263,468,723 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,555 | r | ExplorationUB.R | #Upward Bound Data Exploration and Analysis
#Reserach Questions:
#does participation in our Upward Bound activities improve academic performance? how can I know who partcipated most?
#What factors mostly contribute to the improvement of academic performance?
# Other questions about data, student control number and con... |
a90b2258e41d86833c10105c2f247c2b82a7b77a | 29585dff702209dd446c0ab52ceea046c58e384e | /CNOGpro/R/solvePR.R | 6e0d4daebedc1e5618b900ecd2ad845ea4df8d8b | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 115 | r | solvePR.R | solvePR <-
function(mean, variance){
p <- 1 - (mean/variance)
r <- (mean)^2/(variance-mean)
return(c(p,r))
}
|
1e354aad807dab8b32b0f95561c235dc3d0b493c | 9c98b38d37cf5b4ddd3a4bf8d7f8770bb6763bbe | /man/gather_producer_autoproducer.Rd | cb8d5a18e19ecc88dd43d68f8ad274e009e7683c | [] | no_license | MatthewHeun/IEATools | 2aca274eff0a51b8d31751457d45a7a43b1a654f | ed3d1c13894ea71b533d6c827b80adedfcc8808e | refs/heads/master | 2023-08-10T05:32:48.813023 | 2023-05-16T20:49:04 | 2023-05-16T20:49:04 | 176,147,859 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,075 | rd | gather_producer_autoproducer.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/specify_tp_eiou.R
\name{gather_producer_autoproducer}
\alias{gather_producer_autoproducer}
\title{Gather main activity producer and autoproducer industries}
\usage{
gather_producer_autoproducer(
.tidy_iea_df,
flow_aggregation_point = IEAT... |
a67f43e7cd3240b8b4a06ac4d9f77cae115f2cc4 | 5a7611075079f277e02c52aeb6cbef1ad189ea96 | /PD_Tracking_Charts.R | 878da45a9ca410617199ad459275d8ddf6474f04 | [] | no_license | scottmmiller1/P4H | 0138196ad227bb01a7296f21e1a7e292edc7cc2e | a4377572f4f88ada51a3df7874e41b5165e8d415 | refs/heads/master | 2021-06-29T17:06:28.557166 | 2020-09-29T13:57:11 | 2020-09-29T13:57:11 | 148,031,254 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 22,024 | r | PD_Tracking_Charts.R |
setwd("/Users/scottmiller/Desktop/P4H Global/Evaluation/PD/PD_Tacking/All/Rplots")
dta <- read.csv("/Users/scottmiller/Desktop/P4H Global/Evaluation/PD/PD_Tacking/All/PD_All_collapse.csv")
train <- c("Jul. 16, 2018","Jul. 23, 2018","Aug. 2, 2018","Sep. 29, 2018","Oct. 5, 2018","Dec. 10, 2018","Dec. 13, 2018",
... |
c0b9a6c9606020e7c42f343ed2ff1d255fdab98c | e9081eba897ce871ec51ebd27fe13c1afab01118 | /R Scripts/NaiveBayesSmote.R | 549a0311f06239cae35d313c3071967f6a4e7296 | [] | no_license | broccolihead/Academic-Probation-at-ISS | 47b30d964f03494bab25547f398ed518700457fb | 9db75e52024a20ee305fbd76bd054ba4a9eace91 | refs/heads/master | 2020-03-25T19:42:03.599881 | 2018-11-26T07:30:09 | 2018-11-26T07:30:09 | 144,095,699 | 0 | 1 | null | 2018-11-19T15:36:12 | 2018-08-09T03:18:40 | R | UTF-8 | R | false | false | 946 | r | NaiveBayesSmote.R | #Naive Bayes using K fold cross validation
library("klaR")
library("caret")
library("DMwR")
library("e1071")
#Loading the data
train1 <-read.csv("D:/Aiman US/OneDrive - University of Arizona/acads/Capstone/R/bucketlabeled.csv")
#Labels and attributes
x1=train1[2:6]
y1=train1$PROBATIONFLAG
#To solve the... |
93ec9554fdcb11de9bb1140d69bbaba506bcbc8a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/exactci/examples/poisson.exact.Rd.R | 921c62c73237711fdc411e497fa815f668972ed2 | [] | 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 | 1,576 | r | poisson.exact.Rd.R | library(exactci)
### Name: poisson.exact
### Title: Exact Poisson tests with Matching Confidence Intervals
### Aliases: poisson.exact
### Keywords: htest
### ** Examples
### Suppose you have observed rates of 2 out of 17877 in group A
### and 10 out of 20000 in group B
### poisson.test gives non-matching confiden... |
e2ec3180df2339f4f266ac19acbcce5d61d4170c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/seplyr/examples/group_by_se.Rd.R | 8e2f404fad6d16f5be788f8c33dc1be910a6dadc | [] | 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 | 201 | r | group_by_se.Rd.R | library(seplyr)
### Name: group_by_se
### Title: group_by standard interface.
### Aliases: group_by_se
### ** Examples
datasets::mtcars %.>%
group_by_se(., c("cyl", "gear")) %.>%
head(.)
|
198e227fc35b81dc9779af430173dbb0e3c9be8a | 6b57ed4964727602b75250c5dbcfa10653cf2ee0 | /R/step.R | b4f82ebde50ff7a46369050877d64eee474d5507 | [] | no_license | runehaubo/lmerTestR | 278b4b1a4f99387cc0216193a5236cae6e6a4f0c | 35dc5885205d709cdc395b369b08ca2b7273cb78 | refs/heads/master | 2021-06-05T16:38:46.427782 | 2020-10-23T06:59:55 | 2020-10-23T06:59:55 | 117,861,877 | 47 | 10 | null | 2020-10-19T13:52:50 | 2018-01-17T16:26:02 | HTML | UTF-8 | R | false | false | 15,055 | r | step.R | #############################################################################
# Copyright (c) 2013-2020 Alexandra Kuznetsova, Per Bruun Brockhoff, and
# Rune Haubo Bojesen Christensen
#
# This file is part of the lmerTest package for R (*lmerTest*)
#
# *lmerTest* is free software: you can redistribute it an... |
19c24d1a3d75b00d0bf2be1b4696055f925b90a5 | b5748165d674f3282517b1c936382032f89d6edc | /pdf_convert.R | d5449a65abac75026f4e78d0ec31793a9baef646 | [] | no_license | saudiwin/tunisia_firms | 9add45be350d3e0a6ae427d5d431c04df4689a32 | 0cbec833937795757bb2df460adbd8602bbb6d97 | refs/heads/master | 2021-01-23T08:20:12.420734 | 2017-04-25T17:57:59 | 2017-04-25T17:57:59 | 86,494,552 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,148 | r | pdf_convert.R | # convert PDFs to editable data using ABBY
require(abbyyR)
setapp(c("Tunisia Firms", "m+w3xiZFDw0D/4BMQSORs0E6"))
getAppInfo()
processImage(file_path = 'C:\\Users\\bobku\\Box Sync\\Dissertation\\Quantitative\\archieve classement\\Classement 2008.pdf',
imageSource = 'scanner',description = 'Classement20... |
332661988dda679f0f988613135d607e0c26b3ce | a56f6685719834f10e3bb3829f2431c51805c5a2 | /server.R | df3395ed58fad894062cd69e821fc506c63224f7 | [] | no_license | usfviz/backyardigans-final | da5ec8590826424f2fc3369d1545cbbe65c280be | e009c976d3ba541b907649a08089161580758b4e | refs/heads/master | 2021-01-20T09:57:10.809143 | 2017-05-10T02:11:43 | 2017-05-10T02:11:43 | 90,311,133 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,005 | r | server.R |
function(input, output, session) {
filteredData <- reactive({
if (input$geo_filter == "All"){
df
}else{
df <- df[df$State == input$geo_filter, ]
}
df
})
output$ma... |
a34e2be2fba3770919f6f1206d98b7eaa60fa7b5 | 7db5ba91d3835464346a6135e75ee37fb5ae2cb5 | /plot3.R | a7c8eec0622b737f8a71b308690492af77055a68 | [] | no_license | dblane/exdata-data-NEI_data | f086a9edf7259ae33459805fb15032cea5a7ae4e | fbaebe5c530d9feb25e78335df0d5f68c7f2112d | refs/heads/master | 2020-04-25T00:46:29.560854 | 2015-04-26T17:21:53 | 2015-04-26T17:21:53 | 34,578,732 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 942 | r | plot3.R | ## Each functions starts with the importation of data into variables.
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
## Aggregate emission data for Baltimore City
baltimorePM <- NEI[NEI$fips=="24510",]
totals <- aggregate(Emissions ~ year, baltimorePM, sum)
## We have to plot ... |
f4620fd7c8d8799834a6732f0e08f2e7a7584103 | 7f72ac13d08fa64bfd8ac00f44784fef6060fec3 | /RGtk2/man/pangoAttrFallbackNew.Rd | b31e8c26374d754abd35a28d71da68f180b23082 | [] | no_license | lawremi/RGtk2 | d2412ccedf2d2bc12888618b42486f7e9cceee43 | eb315232f75c3bed73bae9584510018293ba6b83 | refs/heads/master | 2023-03-05T01:13:14.484107 | 2023-02-25T15:19:06 | 2023-02-25T15:20:41 | 2,554,865 | 14 | 9 | null | 2023-02-06T21:28:56 | 2011-10-11T11:50:22 | R | UTF-8 | R | false | false | 720 | rd | pangoAttrFallbackNew.Rd | \alias{pangoAttrFallbackNew}
\name{pangoAttrFallbackNew}
\title{pangoAttrFallbackNew}
\description{Create a new font fallback attribute.}
\usage{pangoAttrFallbackNew(fallback)}
\arguments{\item{\verb{fallback}}{[logical] \code{TRUE} if we should fall back on other fonts
for characters the active font ... |
092f94ab15497881cd960b63c86fbf65bf68bb6a | 642e217325ad840b6bec1f11a1e577f10dab4d4d | /citibike2018/ui.R | 2a0803961a3d989733c86b0a9e9733af06a2fa6a | [] | no_license | kevingilbert1003/CitiBike2018 | a5381150ea11ae6bc37a29759bebb71ed7d0bace | ee22fac4f32c793ccdaccfe6aea51b1b08510af0 | refs/heads/master | 2020-04-22T20:19:18.660193 | 2019-02-14T06:31:58 | 2019-02-14T06:31:58 | 170,637,375 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,742 | r | ui.R | header <- dashboardHeader(
title = "CitiBike Trips"
)
body <- dashboardBody(
fluidRow(
column(width = 9,
box(width = NULL, solidHeader = TRUE,
leafletOutput("plot1", height = 550)
)
),
column(width = 3,
box(width = NULL, status = "warning"
... |
0d267a60279102f415900a2b2d6503b7f6e99586 | 72cf507d80c7c2ff4b45acde0e8252bbf4bc719b | /man/multilevelGPSMatch.Rd | e5ec1db923f93240f01ff550e25eda641f4d1883 | [] | no_license | Crazyoumashu/multilevelMatching | 4c459d082c98cdaa4f83ed2feb87ef2ff76eb4bf | 7ec8932c8cc0b99d0321cf526d225958c8a759d0 | refs/heads/master | 2022-03-26T09:50:11.969673 | 2019-12-01T13:02:17 | 2019-12-01T13:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,032 | rd | multilevelGPSMatch.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multilevelGPSMatch.R
\name{multilevelGPSMatch}
\alias{multilevelGPSMatch}
\title{Matching on GPS with multilevel treatments}
\usage{
multilevelGPSMatch(Y, W, X, Trimming, GPSM = "multinomiallogisticReg")
}
\arguments{
\item{Y}{A continuous re... |
396dd8dee77036cc789209bb7943ae4d43dc7a78 | 680008636753b98cb441f9e7f947d3604dd6b1af | /kakuma.r | 46d548613796bc398a9c43bf05e230738f3a0292 | [] | no_license | ngamita/ngamitaR | 205cb71bbec68737bd9b91dcc9e9d96c9d0a2edb | 861fc262e29cc4493d81816df3f3f439aba96f09 | refs/heads/master | 2020-04-01T10:12:32.586133 | 2014-11-21T15:14:14 | 2014-11-21T15:14:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,009 | r | kakuma.r |
#quick over plot of how the data is behaving.
#table(resultDF$actionType)
#barplot(table(resultDF$actionType))
accounts <- read.csv('kakuma.csv', header=FALSE, sep=',')
a <- as.vector(t(accounts))
kakuma <- resultDF[ resultDF$actingUserProfileId %in% a, ]
table(kakuma$actionType)
# Say we want to pick unique ... |
323daed3e1d91dcf92e90af678e80d2ecec808ed | e503542797f20b70f3b649a73e04db76dab70b16 | /R/aaa.R | e0afc90119c74bfda97010ed5c1d29fb425c6f06 | [] | no_license | regicid/panelPomp | 94d8ab17313af27c5dd5da7ddc5d2f91b43f38fd | 7c9846321ffe138ea2719b0b9d82c09d50196797 | refs/heads/master | 2022-04-13T17:23:53.245904 | 2020-04-10T16:10:17 | 2020-04-10T19:20:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,563 | r | aaa.R | #' @include package.R
NULL
.onAttach <- function (...) {
pompExDir <- getOption("pomp.examples")
pPompExDir <- getOption("panelPomp.examples")
newDir <- system.file("examples",package="panelPomp")
if (!newDir%in%pompExDir)
options(pomp.examples=c(pomp=pompExDir,pomp=newDir))
if (!newDir%in%pPompExDir)
... |
c0ebaa5966f18b00162945ababc0e8a8bdc21df6 | 29585dff702209dd446c0ab52ceea046c58e384e | /wBoot/R/print.boot.regcor.R | 0d167491942fb66c61a853830d67df25a4bd11b7 | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,513 | r | print.boot.regcor.R | print.boot.regcor <-
function(x, ...)
{
test <- !is.null(x$Null)
hist(x$Boot.values,breaks=20,xlab=paste("bootstrap",x$Statistic),
main=paste("Histogram of bootstrap ",x$Statistic,"s",sep=""))
abline(v=x$Observed,col="2")
abline(v=x$Mean,col="3")
abline(v=c(x$Confidence.limits),col="4")
if (test) abline(v=x$... |
551fd0ed6621d127215cb0942949339675c4c2e5 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/AMCP/examples/chapter_15_exercise_17.Rd.R | 55f934dc1830d3dfdd3434f44e117c1161d4c875 | [] | 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 | 427 | r | chapter_15_exercise_17.Rd.R | library(AMCP)
### Name: chapter_15_exercise_17
### Title: The data used in Chapter 15, Exercise 17
### Aliases: chapter_15_exercise_17 Chapter_15_Exercise_17 C15E17 c15e17
### Keywords: datasets
### ** Examples
# Load the data
data(chapter_15_exercise_17)
# Or, alternatively load the data as
data(C15E17)
# View t... |
43b226fc4865cbd6d6fc571fadd038880b56e4eb | 25449f88edddc74beb261a934964d7d1ce358deb | /tests/testthat/test-get_quantity.R | f861faf424ced4d0b2709588ec081cdd8937238c | [
"MIT"
] | permissive | adokter/bioRad | 53de114ca6e2151743045db8556ffd7a45f90570 | d4935eddaa7cc1c3c50e47278e72967c8bbd980c | refs/heads/master | 2023-09-01T10:49:36.747974 | 2023-07-28T14:12:57 | 2023-07-28T14:12:57 | 59,586,835 | 29 | 21 | NOASSERTION | 2023-09-02T17:36:08 | 2016-05-24T15:49:06 | R | UTF-8 | R | false | false | 5,276 | r | test-get_quantity.R | vp <- example_vp
vp_list_mixed <- list(example_vp, "not_a_vp")
vpts <- example_vpts
test_that("get_quantity() returns error on incorrect parameters", {
expect_error(
get_quantity("not_a_vp", "dens"),
regexp = "no applicable method for 'get_quantity' applied to an object of class")
expect_error(
get_qua... |
37d01e2a9c9e1f8de001c1bd16d3dc4e8e9f531c | e9a5a9e952a9ccac535efe64b96cc730b844677b | /man/cellstyle-class.Rd | d1766f96fa673ebdcee7d470e931a63d4cf2351c | [] | no_license | miraisolutions/xlconnect | 323c22258439616a4d4e0d66ddc62204094196c9 | ae73bfd5a368484abc36638e302b167bce79049e | refs/heads/master | 2023-09-04T05:27:42.744196 | 2023-08-30T07:10:44 | 2023-08-30T07:10:44 | 8,108,907 | 114 | 35 | null | 2023-08-30T07:10:46 | 2013-02-09T11:17:42 | R | UTF-8 | R | false | false | 3,642 | rd | cellstyle-class.Rd | \name{cellstyle-class}
\Rdversion{1.1}
\docType{class}
\alias{cellstyle-class}
\title{Class "cellstyle"}
\description{
This class represents a cell style in a Microsoft Excel \code{\linkS4class{workbook}}. S4 objects of this class
and corresponding methods are used to manipulate cell styles. This includes settin... |
7a39c74feb74b81bf90686cfe6752602b0dd87e1 | 8ea38f5e226ad45ee7343e8abafdc8393cb0cd89 | /ExtendedDataFig5.constancy/Extended_Data_Fig5a.node_constancy.R | cb1cb29dd332578a035374a5c2f7b48154020513 | [] | no_license | Mengting-Maggie-Yuan/warming-network-complexity-stability | 79360ae41b4eba610ee94d80aee4f71af8a87874 | 4a2721365ff136f0e99acea798965d56bcefda28 | refs/heads/master | 2022-01-02T17:18:02.261894 | 2021-12-09T06:43:53 | 2021-12-09T06:43:53 | 219,168,891 | 26 | 32 | null | null | null | null | UTF-8 | R | false | false | 2,877 | r | Extended_Data_Fig5a.node_constancy.R | # contributor: Maggie Yuan
library(ggplot2)
library(gridExtra)
setwd("/Users/maggieyuan/Documents/!annual_network/GitHub/ExtendedDataFig5.constancy/")
otu = read.table("input_file/OTUtable_NetworkedOTUs_AllSamples.txt", sep="\t", header=T, row.names=1)
map = read.table("input_file/SampleMap_AllSamples.txt", sep="\t"... |
a715248295d5026dde671a2eaa9ab098c0c93f79 | b7e291947b8eb7e6ba02883bca6b204b3e29d642 | /man/printDebug.Rd | 4931b9cbbd0739134e2df5f8404c5bef2e41300d | [] | no_license | hjanime/jamba | f725f643a7ccd015e3d12171802b261b499d8cad | e2b385b9fedba9afbaab961a49925c104f7bf2f3 | refs/heads/master | 2020-09-23T03:26:52.609306 | 2019-10-30T14:59:45 | 2019-10-30T14:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 6,824 | rd | printDebug.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jamba.r
\name{printDebug}
\alias{printDebug}
\title{print colorized output to R console}
\usage{
printDebug(..., fgText = NULL, bgText = NULL, fgTime = "cyan",
timeStamp = TRUE, comment = TRUE, formatNumbers = TRUE,
trim = TRUE, digits = ... |
4da5f452ddcea5d45b0a03749c681b52ba8f6a1f | eafcbacd06361d83a8da71ae86968f723177570f | /code/2_Plot_CRSS_UBres_generic_annual.R | ffa519cbf5a47b6d560456c0251f1ea7f413aec3 | [
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | usbr/RW-RDF-Process-Plot | a6edd4a0172294424d90a1456907be2b9baffc8c | 943ff620ef5b96fa30f9c830cfc0853a1420ec62 | refs/heads/master | 2023-08-17T10:22:15.871190 | 2023-08-04T21:15:48 | 2023-08-04T21:15:48 | 144,192,835 | 0 | 1 | null | 2022-03-24T14:41:14 | 2018-08-09T19:04:22 | HTML | UTF-8 | R | false | false | 13,183 | r | 2_Plot_CRSS_UBres_generic_annual.R | # from crspopsdata.feather plot Powell & 1 generic UBres In/PE/Out and write stats
# CF Oct 2021
# # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
warning('Run Process_CRSS_rdf_generic_feather.R before this')
scen_dir_overwrite=FALSE # don't need this for already processed, just give... |
31a377f38992756d7a3749b6258f22b828f8b6a4 | 68b2e33cb01e2ea268b392e75bbd417ea7acbbeb | /00sintaxis/04datos-basicos/script_sol.R | 6c065ea53e88a4ee10a5fad3406c67bdd72b1ed9 | [] | no_license | rsanchezs/ciencia-datos-con-r-tareas | 1d2d980a8a9539ceb8b9c27fbb1e29d9e3a9917c | 9b26e88f0dbdb18bde1a8fddc8813331b0a6534e | refs/heads/master | 2021-09-26T03:02:38.089905 | 2018-10-27T00:40:51 | 2018-10-27T00:40:51 | 113,011,162 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 630 | r | script_sol.R | # Cambia `numerico` por 42
numerico <- 42
# Comprueba la clase de `numerico`
class(numerico)
# Comprueba el tipo de `numerico`
is.numeric(numerico)
# Cambia el texto por "Ciencia de Datos con R"
caracter <- "Ciencia de Datos con R"
# Comprueba la clase de `caracter`
class(caracter)
# Comprueba el tipo de `caracter... |
7bd8e239340d9829eefe216a4fcecd9dcdc67956 | b2f61fde194bfcb362b2266da124138efd27d867 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Herbstritt/blackbox-01X-QBF/biu.mv.xl_ao.bb-b003-p020-IPF03-c03.blif-biu.inv.prop.bb-bmc.conf05.01X-QBF.BB1-Zi.BB2-01X.BB3-Zi.with-IOC.unfold-007/biu.mv.xl_ao.bb-b003-p020-IPF03-c03.blif-biu.inv.prop.bb-bmc.conf05.01X-QBF.BB1-Zi.BB2-01X.BB3-Zi.with-IOC.unfol... | 77080a2ac54d02de143e1541e17c45e65f900474 | [] | no_license | arey0pushpa/dcnf-autarky | e95fddba85c035e8b229f5fe9ac540b692a4d5c0 | a6c9a52236af11d7f7e165a4b25b32c538da1c98 | refs/heads/master | 2021-06-09T00:56:32.937250 | 2021-02-19T15:15:23 | 2021-02-19T15:15:23 | 136,440,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,202 | r | biu.mv.xl_ao.bb-b003-p020-IPF03-c03.blif-biu.inv.prop.bb-bmc.conf05.01X-QBF.BB1-Zi.BB2-01X.BB3-Zi.with-IOC.unfold-007.R | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 71140
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 70862
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 70862
c
c Input Parameter (command line, ... |
5d683640bf98415c5d6906e4d5d712aa7290924b | 5858bd92d435f69a5bb9a22b94bdeadc3dd9e300 | /01_forward_simulator/forward_simulator.R | d7a7715deee15aca39e0e03205d43db125c038a0 | [
"MIT"
] | permissive | cory-weller/genome-reconstruction-revision | 6945593cad50d2327f7415e17537ccf8595c9786 | 424f37db9a5f0d16dd5db009a134b80f39865459 | refs/heads/master | 2020-07-22T23:53:39.845376 | 2019-10-21T20:04:00 | 2019-10-21T20:04:00 | 207,374,368 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,281 | r | forward_simulator.R | #!/usr/bin/env Rscript
library(data.table)
library(foreach)
library(digest)
args <- commandArgs(trailingOnly=TRUE)
# Debugging args:
# args <- c("-bed","recombination.bed","-prefix","dgrp","-n0","500","-rate","1.0","-sex","dioecious","-nfounders","32","-ngenerations","2","-lineIDs","lines.txt","-chrx","X","-iter",... |
7c02cd5faf13e2d3e2a5aba001790293c7495fbb | f43448c5b345ec595d47c6d37491bdde05c98855 | /data-raw/authors.R | f6d542b0b9e1ac356031369f7385d950ac86495e | [] | no_license | ly129/AutoAff | b33ee0b033930b9d47a56889f7eda7f9e606d38c | a03b0e5ead98ce5888ae2fe8cc1219ba418f19af | refs/heads/master | 2022-02-23T07:04:42.029861 | 2019-08-12T21:49:05 | 2019-08-12T21:49:05 | 198,249,623 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,195 | r | authors.R | ## code to prepare `authors` dataset goes here
set.seed(1)
aff <- character(26)
for (i in 1:13) {
aff[i] <- paste("University of", LETTERS[i])
}
for (i in 14:26) {
aff[i] <- paste(LETTERS[i], "Institute")
}
n <- 140
p <- 6
authors <- matrix(character(n*p), nrow = n)
for (i in 1:7) {
for (j in 1:20) {
author... |
d4ea398eb1692fbb60915db66105b25d7c98b6f2 | f9a9f9e260498c0ff96809dee0fb9697c75b064e | /regularization_selection/dimension_reduction/pcr.R | fadb1c69fa56a79074d5a9a6e1b948c813c0a62f | [] | no_license | kayfay/R_programming | 4b94f9af3684589c0d29ac47a7f740bb313908a8 | 3f1b3325c2f16d3f578c5f672341b216879aa263 | refs/heads/master | 2021-04-24T20:54:29.637163 | 2019-07-07T17:09:26 | 2019-07-07T17:09:26 | 117,136,236 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,620 | r | pcr.R | # Principal components regression
library(ISLR)
library(pls)
set.seed(2)
# Omit missing values
Hitters=na.omit(Hitters)
x = model.matrix(Salary~.,Hitters)[,-1]
y = Hitters$Salary
train=sample(1:nrow(x), nrow(x)/2)
test=(-train)
y.test=y[test]
# Standardize predictors before generating princiapl components
# with ... |
4930775bae1b1bbb1c4c5495af8da18b21048137 | 377b3527d739295c381b7f916f4aab9e7cfabe59 | /cachematrix-tests.R | 1cd90fd227376e174d0ca6a6b0dd21e5c2435d2e | [] | no_license | lisah2u/ProgrammingAssignment2 | 5acc65bfa690f0009e2667c34b3c960134feeec2 | 80630d1d46f3b825e7e706e0228113b7c12c70f6 | refs/heads/master | 2021-01-15T20:57:09.129041 | 2014-06-17T12:06:57 | 2014-06-17T12:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,021 | r | cachematrix-tests.R | # Unit tests for cachematrix.R
# Useful discussion here:
# https://class.coursera.org/rprog-004/forum/thread?thread_id=153
# Source cachematrix.R before running.
# Create a square matrix and compute the inverse normally using
# solve(A). Inverse of A where A is a square matrix.
A <- matrix(c(1, 0, 0, 0, 1, 0, 0, 0, ... |
90e4526ea122375fcbbf11461e84de52a8cd42a3 | bbbbcff6554028a51c365c0936b0b979e59da205 | /R/bayesian_inference_functions.R | 2b642c22f7151d72f6a947f0d3ffe6801ceacb0a | [
"MIT"
] | permissive | eehh-stanford/baydem | 379d18cbcefbf07899d290c2db09095c3c382811 | 3a4e4811ae7d768c43a5aaf99657f255e7454292 | refs/heads/master | 2023-05-22T14:29:09.895165 | 2021-11-07T23:38:13 | 2021-11-07T23:38:13 | 197,023,444 | 11 | 1 | null | null | null | null | UTF-8 | R | false | false | 38,848 | r | bayesian_inference_functions.R | #' @title
#' Sample from the posterior of a density model for a set of radiocarbon
#' measurements
#'
#' @description
#' This is the core function that implements the Bayesian inference. Currently,
#' the only supported density model is a truncated Gaussian mixture. If a
#' starting parameter vector (\code{th0}) is not... |
a1af2c13edde6d6895cd9cda1930f670e7c05583 | 739b236b8f507f02054b65e49e22674f5c426ff5 | /Q1.R | ef0661754219d9dc77bdefd64a5ee3d3794e6e2e | [] | no_license | sumitIO/Exploratory-Data-Analysis-Project | 9e159486abb7958ab8623b1b04f3b4ec7252b7d6 | e995c0b792fb189c0f88e2191d0128485caed451 | refs/heads/master | 2022-04-06T22:35:31.291621 | 2020-02-11T13:32:04 | 2020-02-11T13:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 351 | r | Q1.R | NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
year_sum <- aggregate(NEI$Emissions, by= list(NEI$year), FUN=sum)
png(filename = "plot1.png")
plot(year_sum$Group.1,year_sum$x, type="l",
main="Total Emission Variation(1999-2008)",
xlab="Years",
ylab="Total Estimati... |
be4fcf30a8b2d67640dbc3b777bfb8e80f22510a | 3eb01fdb8094b35bb1f3bad856ab60881dceb9e3 | /Basic Data Visualization.R | 7f79e0fbd7b9b695d54b9f8b6d34f00289b09247 | [] | no_license | saurav-datageek/Data-Science-R-Programming-Scripts | 61ba4b17ed6122d250095c0809cc8a66c7c10967 | 350853ad9b55f227a3224fc54676f3c16a521b7d | refs/heads/main | 2023-07-24T01:58:29.922808 | 2021-09-06T09:59:14 | 2021-09-06T09:59:14 | 403,569,675 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,821 | r | Basic Data Visualization.R |
### Code to perform basic Data Visualization in R ###
### Dataset used is the mtcars dataset, which is the built in dataset in R ###
library(dplyr)
library(ggplot2)
### Data Visualization ###
### Used in two different stages in Data Science ###
### First is during Exploratory Data Analysis ### EDA ###
df_mtcar... |
787d39702fea824f6dc8ce7f0d0134167418e677 | 36d73bd4ec51b24f9aa427003d41ace725c23a14 | /inst/scripts/make-upload.R | 4fd7b9b3825d79e5d985c0a29d36e9aa209a9f87 | [] | no_license | drisso/SingleCellMultiModal | f613c4f7b7470f27ee25445160ecd798bdd5f89c | 2685521119f5b162809da3f5f73dab01cb08a1de | refs/heads/master | 2022-11-07T04:59:38.832585 | 2020-06-23T13:33:40 | 2020-06-23T13:33:40 | 279,685,426 | 1 | 0 | null | 2020-07-14T20:22:47 | 2020-07-14T20:22:46 | null | UTF-8 | R | false | false | 1,125 | r | make-upload.R | .getDataFiles <- function(directory = "~/data/scmm",
dataDir = "mouse_gastrulation", pattern = allextpat) {
location <- file.path(directory, dataDir)
list.files(location, pattern = pattern, full.names = TRUE, recursive = TRUE)
}
# upload files to AWS S3
allextpat <- "\\.[Rr][Dd][Aa]$"
# IMPORTANT!
# Make ... |
2adf7942aa6e6cd5a752e1c216345207c8786adb | ba4b9d6b12afa90de9bca88dd9a6f6b7315702e6 | /nn_model_depression_vs_control.R | ad75276863046f6d90356aebff3b6d67db48079e | [
"MIT"
] | permissive | nurolab/Depmet | bff5ba9d7e3c8c204f61698e20a52cd009a1bd0c | d8c25a47d79699aabe8faa290dd96c441d2dc7a1 | refs/heads/master | 2021-06-14T21:03:53.432467 | 2017-04-03T09:07:39 | 2017-04-03T09:07:39 | 53,113,560 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,269 | r | nn_model_depression_vs_control.R | # R script to model depression data using neural networks
# Author: Deepak Sharma
# Date: 26 March 2017
# Import libraries --------------------------------------------------------
library(RSNNS)
# Loading data
depression_vs_control <- read.csv("depression_vs_control.csv")
dvc <- depression_vs_control
# Creating mod... |
e085d98bbc570b67c50835c0bacbf722381307d3 | 0b6d9b2478732d1d0adaffc8eccfec928b2262cb | /man/oszacuj_czas_wykonania.Rd | b76d1c1db750456bc69551b9285c06eae28912d1 | [
"MIT"
] | permissive | zozlak/ZPD | e19e0403460b5f3b36f8da4bb308d713b0466a08 | 1a7d2f60b038e658a706dd8c78cbc60f8692ea02 | refs/heads/master | 2023-02-18T17:02:16.111630 | 2023-01-23T14:34:07 | 2023-01-23T14:38:08 | 21,378,996 | 12 | 1 | null | null | null | null | UTF-8 | R | false | true | 881 | rd | oszacuj_czas_wykonania.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/oszacuj_czas_wykonania.R
\name{oszacuj_czas_wykonania}
\alias{oszacuj_czas_wykonania}
\title{Pobiera dozwolone wartości punktowe kryteriów oceny}
\usage{
oszacuj_czas_wykonania(dane, pelnyPlan = FALSE, format = "TEXT")
}
\arguments{
\item{dan... |
7d32945d3491c236467dd8cb861fd4148a098731 | 9a7ffcd969f5efa2d2de768eb2f9d72085440291 | /man/remoteDriver.Rd | 2f07a6eb73b30460547d6607d66106ddb5d6ee5f | [] | no_license | agstudy/RSelenium | 6861c76d992a2be319ccb9a28422885044b856ff | e93fed17aae812316af9fe9455c4bb88b5eab1ac | refs/heads/master | 2021-01-15T09:29:21.204423 | 2013-08-03T06:11:43 | 2013-08-03T06:11:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,101 | rd | remoteDriver.Rd | \name{remoteDriver}
\alias{remoteDriver}
\title{CLASS remoteDriver}
\usage{
remoteDriver(...)
}
\description{
remoteDriver Class uses the JsonWireProtocol to
communicate with the Selenium Server. If an error occurs
while executing the command then the server sends back an
HTTP error code with a JSON encoded r... |
9608406fb4e51e0a3e67f768f5928f2bd44e631b | 050edfa53f5ec7d76b2321c552266e0f60e4db92 | /R/c5.R | 99c82afd82dc3a6cb4958e65136920f26d787eca | [] | no_license | placeboo/subgraph | e1ab54fabda52ed4243fdc5cdc2a348b2da6d41c | 37036807aa7bd75aeab90fe224fdd44c126fb3f9 | refs/heads/master | 2021-10-27T15:54:59.877512 | 2019-04-18T08:08:57 | 2019-04-18T08:08:57 | 107,905,890 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 953 | r | c5.R | #' c5 graphs
#' List all possible c5 graphs based on given FIVE nodes
#' @param x The vector representing nodes
#' @return A matrix listing edges of c5 graphs
#' @examples
#' c5(c(1:5))
c5 = function(x){
if(length(x)!=5){
stop("The number of nodes should be FIVE!")
}
x = sort... |
147573685f5c873420743f1ea28e67c87d6e5b59 | c5de5d072f5099e7f13b94bf2c81975582788459 | /R Extension/RMG/Energy/PM/ERCOT/procmon/ercot_email_rayburn.r | 34ad6eb1016ae87281b97b05f705c8163c40c08f | [] | no_license | uhasan1/QLExtension-backup | e125ad6e3f20451dfa593284507c493a6fd66bb8 | 2bea9262841b07c2fb3c3495395e66e66a092035 | refs/heads/master | 2020-05-31T06:08:40.523979 | 2015-03-16T03:09:28 | 2015-03-16T03:09:28 | 190,136,053 | 2 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 7,137 | r | ercot_email_rayburn.r | # Email Rayburn load forecast to Rayburn
# Takes the xDA lock of Rayburn forecast and emails to Rayburn
#
#
# Written by Lori Simpson on 31-Oct-2011
#------------------------------------------------------------
# Functions
# startdate=Sys.Date()+0; enddate=startdate+3; testing=TRUE
#
email.ray.load = function(sta... |
bc9a3121ff2f844788b20da9f49f3647777c51a2 | 8cd6f2ac51d11cd87a0bebe38d8938070d640fd4 | /R/MakeInput_Fn.R | e694b27191b9f29f61b5b7e03d9a691a67d0a2bb | [] | no_license | James-Thorson/spatial_DFA | 289e2b7cd30246fef660fdbb5691366a684a9d41 | 763b7e888338c9661222e840c3c9b127e2bdc5be | refs/heads/master | 2021-07-10T08:37:18.124375 | 2020-06-30T16:06:50 | 2020-06-30T16:06:50 | 32,428,942 | 8 | 6 | null | null | null | null | UTF-8 | R | false | false | 28,330 | r | MakeInput_Fn.R |
#' Build data input for spatial dynamic factor analysis (SDFA)
#'
#' \code{MakeInput_Fn} builds a tagged list of inputs for TMB
#'
#' @param Version a version number (see example for current default).
#' @param Nfactors The number of dynamic factors used to approximate spatio-temporal variation
#' @param DF a data fra... |
c37f1fef5e992c17834ed14fb8c889d51ed252f1 | cb323e59d1fa0a7d530ac2efbb19ee7a62827079 | /R/utils.R | 674ae5206ce2039f2c29fe4a513dcff1ee799b5f | [] | no_license | jpmarindiaz/datafringe | 7fb91241af0e745574e648f0187f40964342d0d2 | 033cce244d2f4273e1cfc6e80073524d405ff6fa | refs/heads/master | 2021-01-10T22:46:05.837528 | 2019-04-02T05:21:02 | 2019-04-02T05:21:02 | 70,357,127 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,415 | r | utils.R |
isGsheetUrl <- function(x){
grepl("docs.google.com/spreadsheets", x, fixed = TRUE)
}
trim_punct <- function (x){
gsub("[[:punct:]]", "", x)
}
dfFactorsToCharacters <- function(d){
i <- sapply(d, is.factor)
d[i] <- lapply(d[i], as.character)
d
}
colInDf <- function(col,d){
!col %in% colnames(d)
}
has_... |
1dca5a715422bce00659e571a8edb2db32026ddf | d677e29760774381438f25a11c5b3e09141477dc | /3/fpfi3_0.7.6/fpfi3/man/ProjectNTrees.Rd | fb0b9ad1b872defd100420845bf45980ea37565d | [] | no_license | grpiccoli/FF | 695e681f8c062f0c71af0488ac1e288283c63f87 | e19d0098c592dd36303eaad7cc0d771c0813edbd | refs/heads/master | 2022-04-24T00:36:39.447469 | 2020-04-19T07:42:05 | 2020-04-19T07:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,596 | rd | ProjectNTrees.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/project.R
\name{ProjectNTrees}
\alias{ProjectNTrees}
\title{Project the number of trees.}
\usage{
ProjectNTrees(species, region, N0, BA1, Age1, Age2, SI)
}
\arguments{
\item{species}{A character indicating one of the species name. The functio... |
60d400c5b41fde642141063e007727f4078680eb | e5bf6df521b05964ab25f5af57423506a52e3807 | /basicPreprocessing.R | a2e95d694f1b3796d56d35ca4b509e6e0d36718c | [] | no_license | PraveenSebastian/Coursera-Data-Science-Machine-Learning-Project | 1687f71fb8b61e31541a5ee592e1474a8d32b1f7 | 9dbb7fef9fe94ec633eedd1151319c4b2726b8a3 | refs/heads/master | 2021-09-25T10:43:36.644032 | 2018-10-21T08:16:55 | 2018-10-21T08:16:55 | 103,850,082 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,866 | r | basicPreprocessing.R | library(caret)
library(kernlab)
data(spam)
inTrain <- createDataPartition(y=spam$type,p=0.75, list=FALSE)
training <- spam[inTrain,]
testing <- spam[-inTrain,]
hist(training$capitalAve,main="",xlab = "ave.capital run length")
sd(training$capitalAve)
#Standardising train set
trainCapAve <- training$capitalAve
... |
f60c59f72b6de3d886a462cf74b9cc02a1f1e08c | 320f0f7a77f0d1e863429c71b4666baaeefcf343 | /simple-data-interpolation/Script_interpolacion.r | 49f2e80fccd0e866460d10ae3fc8f4741608bbd9 | [] | no_license | feahorita/data-processing-and-analytics | cc66b8c98c38af45f60f46aa91aa15be9c906ca3 | b89c4fd6745573b64876cc0a8285d34f3de1600c | refs/heads/master | 2020-06-29T12:20:45.656033 | 2016-12-10T18:47:23 | 2016-12-10T18:47:23 | 74,427,249 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,205 | r | Script_interpolacion.r | #################################################################################################################################
#Subrutina que interpola los valores de nivel de manera lineal para que coincidan con las entradas al modelo
###############################################################################... |
b535d32edbc52aa3e8abeeaa51aee25c6db36bde | 7618115043c871bee04f6c078d3881c585e8d865 | /Plot2.R | 4b359609ac06a93a4b1fe73141c8b2fb19eb29ed | [] | no_license | stlinc/ExData_Plotting1 | d90a9c5d42ec59f73c40bde8daaf7140afaf5835 | 7d9e80b0719b9341220e23c5a22aeb8a54ae8438 | refs/heads/master | 2021-01-12T14:01:43.987258 | 2016-03-28T14:56:31 | 2016-03-28T14:56:31 | 54,820,868 | 0 | 0 | null | 2016-03-27T09:12:06 | 2016-03-27T09:12:06 | null | UTF-8 | R | false | false | 807 | r | Plot2.R | #Load data
householdPowerData <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors=FALSE, dec=".")
#Subset of records on 1/2/2007 and 2/2/2007
householdPowerDataSubset <- householdPowerData[grepl("^(1/2/2007|2/2/2007)", householdPowerData$Date), ]
#Base plot
library(datasets)
... |
bff180389a647f45d050a65a93af0afce7d81d6d | 08ea1a5d55021669287b7e81aac6e1f38f6eb034 | /plot1-6.R | 8fc6b75baa112d4af8e41e8a0457391418afe63b | [] | no_license | rubenogit/ExData_Plotting2 | 380db4b9c8002248f6ee05c01db0184e15d052be | a9bbd7c6a025cd9e3e67e5e4dcdee19cd158d5f8 | refs/heads/master | 2021-01-17T17:07:01.458123 | 2015-07-25T17:40:53 | 2015-07-25T17:40:53 | 39,695,985 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,037 | r | plot1-6.R |
#Download and unzip the data file
address <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
address <- sub("^https", "http", address)
zipname <- "NEI_data.zip"
download.file(address,zipname)
unzip(zipname)
#housekeeping - remove the zip as it is no longer needed
file.remove("NEI_data.zip")
#hous... |
229e3d4df7bde2270190b259b9604bf8e94091d5 | 5c1428fd33542b114c915db0bbd303a72f1ff491 | /man/setupColorBounds.Rd | ccdaf00ab581dea06a2acf9e97c59d74b8c32379 | [] | no_license | CraigMohn/rideProfile | be6b3af50065807065c35974cd99157f633503c4 | aebf051a59b747f4ef923403495d720f62c7e774 | refs/heads/master | 2020-07-26T13:28:55.403780 | 2020-05-01T15:45:09 | 2020-05-01T15:45:09 | 208,659,667 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,626 | rd | setupColorBounds.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/drawMisc.R
\name{setupColorBounds}
\alias{setupColorBounds}
\title{create functions to map variables into colors based on parameters}
\usage{
setupColorBounds(
palette,
legendwidth,
speedLow = 3,
speedHigh = 40,
speedColorLow = 0,
... |
11c506307c2923ab339c3037fb43c8a95bf02c72 | 85bd593fc4603e99bbb6e8e097960ab832a469d3 | /man/geodesic.Rd | e772ebd0057f45b7693955bed8b5e95d1725b246 | [] | no_license | cran/GeodesiCL | 2dab609c79d45ceba619cf478ad5f5382c1d7667 | 09c72a0c6deefe2b168024406087c2fcf8ae34b3 | refs/heads/master | 2023-04-25T15:26:14.862721 | 2021-05-25T11:20:02 | 2021-05-25T11:20:02 | 370,748,265 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,256 | rd | geodesic.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Geodesic.R
\name{geodesic}
\alias{geodesic}
\title{To convert from Cartesian coordinate to Geographic coordinate.}
\usage{
geodesic(a, XYZ_df, digits = 4)
}
\arguments{
\item{a}{Selection of Ellipsoid.}
\item{XYZ_df}{Sexagesimal longitude an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.