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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9be7433e159c1b961b5b09123ecdd1fec0da0bb2 | 953e84446de8d060683c87669f2c62350939ed5f | /code/climate/random_forest_MDS.R | 3c84cc3cff57708013496cb394509032e82ecf50 | [] | no_license | tkarasov/pathodopsis | 29e23821c33ac727421158d9e40b277a09b8b8ca | c5d486ac02b1f0b2ff525439d3bf2d3843231e4d | refs/heads/master | 2023-08-25T02:31:53.053463 | 2023-08-15T21:37:10 | 2023-08-15T21:37:10 | 172,746,993 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,956 | r | random_forest_MDS.R | # This function does feature selection using the caret and mbench packages then does random forest modeling
# https://machinelearningmastery.com/feature-selection-with-the-caret-r-package/
library(caret)
library(mlbench)
library(Hmisc)
library(dplyr)
#library(randomForest)
devtools::install_git(url = 'https://github.co... |
ee0f1533f8cdad644568cb93cbbe90dc57da0b00 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/cdom/examples/cdom_spectral_curve.Rd.R | 536fbdab39d58c409122c305291b86d5ff6a6166 | [] | 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 | cdom_spectral_curve.Rd.R | library(cdom)
### Name: cdom_spectral_curve
### Title: Calculate the spectral curve of CDOM spectra.
### Aliases: cdom_spectral_curve
### ** Examples
data(spectra)
res <- cdom_spectral_curve(spectra$wavelength, spectra$spc2)
plot(res$wl, res$s, type = "l")
|
f22146aa25044d63b5432b0045b70e2a38559604 | b35d8d930b0fd5255bf6ade8e05070badddaadf0 | /R/eurusds.R | 10f5f70c0651fda1d46758001a641471699f6fe2 | [] | no_license | ilda-kacerja/foRex | 2e8af71faf33c4708ab86fb527bb04676c3d7b1a | 1b642a1096e5f051c12c54f1c41070e71aa6e9cb | refs/heads/master | 2020-05-29T16:56:26.164542 | 2019-05-29T16:45:04 | 2019-05-29T16:45:04 | 189,263,152 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 773 | r | eurusds.R | #' Exchange rate for a certain day
#' @param date_from first date we are interested on year-month-date format
#' @param date_to last date we are interested on year-month-date format
#' @return data.table object
#' @export
#' @importFrom httr GET content
#' @importFrom logger log_info log_debug log_trace
#' @importFrom ... |
50c222f171164081b9a0de5d3f5e6c889d7b6295 | c128f9c2a463b9ce131afeba75e37ec7a7dfce95 | /AFRP_TempOxyInterpolate_Func_1.R | 4a89107781b07ec4fbd939ac13b86672745bbe48 | [] | no_license | bmq215/AFRP-Data-Functions | de672b518b73e657fb88e81db58cf23d344ed182 | 055dc80371d4bbbc8e73c5f1f9e7ef24430c49e4 | refs/heads/master | 2022-08-04T16:52:05.905403 | 2020-05-25T12:51:01 | 2020-05-25T12:51:01 | 266,571,969 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,220 | r | AFRP_TempOxyInterpolate_Func_1.R | #Function to interpolate AFRP temperature and oxygen profiles
#Takes a water name and .csv inputs to the two database tables (MEASUREMENT and SAMPLE)
#Returns data.frame with estimates of the temp and oxy within the data's range of dates and depths
#Rounding (for averages) and interpolation resolution can be set if des... |
d53629d64a5c7758bc2efd8453e622ddda4929d8 | fdab0c18eab28477d0980723c5ac5b4ba10c506f | /hl20181122/SHOCKSPAN1/RUNME.r | a8b6aa398ca34a8f84b99d8feff28c0e506f303f | [
"MIT"
] | permissive | MIT-Informatics/PreservationSimulation | 58b53595841c39e1fe00a05241be43ed0bcf6430 | 38c6641a25108022ce8f225a352f566ad007b0f3 | refs/heads/master | 2021-08-25T10:35:46.066554 | 2021-08-24T20:17:13 | 2021-08-24T20:17:13 | 17,369,426 | 9 | 0 | NOASSERTION | 2021-03-20T02:55:37 | 2014-03-03T15:03:30 | R | UTF-8 | R | false | false | 321 | r | RUNME.r | # where to run?
# setwd("C:/cygwin64/home/landau/working/PreservationSimulation/pictures/SHOCKSPAN1SERVER5")
debugprint<-0
source("./GetShockSpan1Server1Data.r")
source("./GetShockSpan1Server2Data.r")
source("./GetShockSpan1Server3Data.r")
source("./GetShockSpan1Server4Data.r")
source("./GetShockSpan1Server1234Data.r")... |
5e22bdf0a64da39fa6dae66887b82f95879cc402 | a845065b2b31e2fde530ad5eb192780340c5f481 | /man/ex01.56.Rd | fe9412548805eede794c1a3d0394f9ae4809adf4 | [] | no_license | cran/Devore7 | 319c8a7bd4daca50ba1b7f7acdd53e40957a55bb | 9592edf605e0a7927bdce1e0081796b183b1b5ad | refs/heads/master | 2021-01-13T16:10:38.867717 | 2014-03-25T00:00:00 | 2014-03-25T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 666 | rd | ex01.56.Rd | \name{ex01.56}
\alias{ex01.56}
\docType{data}
\title{R Data set: ex01.56}
\description{
The \code{ex01.56} data frame has 26 rows and 1 column.
}
\usage{data(ex01.56)}
\format{
A data frame with 26 observations on the following variable.
\describe{
\item{\code{C1}}{a numeric vector}
}
}
\details{
Consult the ... |
0bae421508e34aa91a968e75b2308a3e59870164 | 61e55df4c1c22d42fc863102aff141c21823f2ae | /Bivalve analysis.R | d7244e5c418bd258e3df57b28aacc4260253d9e3 | [] | no_license | sbashevkin/SDP | da102ad56cee17c2337819cd9bdb16c23211bea6 | 0ddcf80466c7badcf1af1c091d055610e9bc38cb | refs/heads/master | 2023-07-23T23:50:54.900991 | 2023-07-11T20:49:07 | 2023-07-11T20:49:07 | 211,150,171 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,963 | r | Bivalve analysis.R | require(leaflet)
require(leaflet.minicharts)
require(readxl)
require(lubridate)
require(tidyverse)
require(brms)
Fieldfiles <- list.files(path = "Data/Water quality", full.names = T, pattern="Field")
Labfiles <- list.files(path = "Data/Water quality", full.names = T, pattern="Lab")
WQ<-sapply(Fieldfiles, function(x)... |
83c48d53114ef6e2397a227e4e9212c9f795cf23 | 514b2e947c8e998e725488633275512b58a70e23 | /R/s4_object.R | e3ae9cb46a8ec32d79e768dcb8646ec6150fffc0 | [
"MIT"
] | permissive | AlgoSkyNet/acyRsa | 1f655454f98205f147dd3cb147e6680bf26f3c05 | d2537bc958c857111c0c4effb327a596c69e8f76 | refs/heads/master | 2022-04-25T01:32:35.556741 | 2020-04-21T17:11:51 | 2020-04-21T17:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,491 | r | s4_object.R | #' @export token
#' @export base_url
#' @export token<-
#' @export base_url<-
#' @export valid_until
NULL
# Connection Class
setClass("acyRsaConnection",
slots = c(
token = "character",
base_url = "character",
valid_until = "character"
),
prototype = list(
... |
758b937f9d57ff0568ac745170d5699e5ed734ae | 192df3858b212b89c54a5d16ac555ff08079afd4 | /plot3.R | 03af44bbab6221c8a401a3709d392c687d8d72e3 | [] | no_license | marcoscattolin/ExData_Exploratory2 | 3326d0b25d62df393e7d59645a7e5a60e37ff179 | a3f5ca7b47af0cf70a72001ffb44862013f7db04 | refs/heads/master | 2021-01-23T03:53:03.775435 | 2014-05-12T13:23:32 | 2014-05-12T13:23:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 661 | r | plot3.R | #read data
NEI <- readRDS("../data/summarySCC_PM25.rds")
SCC <- readRDS("../data/Source_Classification_Code.rds")
#extract data for Baltimore and reshape by year and type
BaltimoreNEI <- subset(NEI, fips == "24510")
library(reshape2)
melted <- melt(BaltimoreNEI,id = c("year","type"), measure.vars="Emissions")
aggregat... |
170e19f58767d53a3a1c64ba15e287c91367385c | f5865f24bf8bb033ccbf6c0ba4a72c1894be0f72 | /man/ALKr-class.Rd | e2a4f62c8c8a3e5985b1473571b7f3284d38ce7f | [] | no_license | cran/ALKr | f8dbc6d1c6130114c0d0f54b78bc2058ddd74895 | a2185b0c6ab2d0e5184494e31a68b9d891fa4bd7 | refs/heads/master | 2016-09-06T18:22:47.133968 | 2014-02-20T00:00:00 | 2014-02-20T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 732 | rd | ALKr-class.Rd | \docType{class}
\name{ALKr-class}
\alias{ALKr-class}
\title{ALKr}
\description{
Every function used to calculate Age-Length Keys returns an
\code{ALKr} object.
}
\details{
\describe{ \item{alk}{A \eqn{i \times j} matrix with the
probability of an individual of length \eqn{i} having age
\eqn{j}, i.e. \eqn{P(j|i)}} \item... |
a4441263826d17f54bf0371ff3e6cd9e2327bae6 | e6ee5f739acfe20843e180143818667a2cfe8996 | /bin/awe_creator.R | b732ea71a730656d6dcea9357b9af07a7685f252 | [] | no_license | pawan1992/AWE | 375c64ab7ae561c375c32ca039db9f5a0b1eb56d | c6639ef44e8448dbd1cdf5beeeee04f60112ee05 | refs/heads/master | 2021-01-06T20:46:14.135163 | 2014-09-18T08:24:14 | 2014-09-18T08:24:14 | 24,179,552 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 513 | r | awe_creator.R | ### Script to get the data for AWE populations for subsequent analysis
### Singh P. | September 2014
### ------------------------------------------------------------------
setwd('~/pawan/climate_git/AWE/bin/')
y<-read.table('../data/adr_inp.txt')
x<-read.csv('../data/adr_inp_hdr (copy)')
x<-x[9:68,]
u <- x$X.2
u<-as.ch... |
141ef59211a7a0f72a3bbd3bd19188778c1c0982 | 3ad2cb3cced8dcee4ee638303a97e5d0ced090ee | /man/impute.Rd | 4eb770b0028c7d8bcbb1701de53894334ad98fca | [] | no_license | cran/relations | a7cad6a1f2f1a435bbbe8ef4b241b6faf4a86871 | 44e22a60b9cefbd72a209ea1794d80a56609d525 | refs/heads/master | 2023-03-16T21:26:51.984375 | 2023-03-07T13:19:04 | 2023-03-07T13:19:04 | 17,699,123 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,935 | rd | impute.Rd | \name{impute}
\alias{relation_impute}
\title{Impute relations}
\description{
Impute missing incidences in relations by averaging all possible
completions within a specified family.
}
\usage{
relation_impute(x, method = NULL, control = list(), \dots)
}
\arguments{
\item{x}{an endorelation or an ensemble of endorel... |
57e980f3a05aacd1d4e7fa497262168fd81d404f | b4dcae4cfc38dc0ca7440d8f67d922981b2f4430 | /RCode/functions/zones_that_burned_all.R | 0c1464b229b137815fd8508893b7f2ad0191e30c | [] | no_license | cont-limno/DoLakesFeelTheBurn | daa0db45b72220c0a6982e9b07cbeadebfc2bcc5 | bab1fbe3fbff1cf9f2f248a1a9c5d0b65133e0cc | refs/heads/master | 2020-03-23T20:10:31.179063 | 2019-04-30T18:08:49 | 2019-04-30T18:08:49 | 142,026,133 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 759 | r | zones_that_burned_all.R | ### function that determines which lakes (by lagoslakeid) that have experienced fire
# uses intersection of fire polygons and lake watersheds/buffer areas
library(raster)
zones_that_burned_all = function(burn_polygons, zone_shp){
#burn_polygons: MTBS polygons
#zone_shp: polygons of zones in which to calculate are... |
211fac6927611ffca98c5a6b19abfb6a3fc8538a | d481adea8b5f993c766a7842c2cb9babcef3deef | /SERVER/03_compare_charts.R | 6b76ec8f3bb6e62a6aa908063a112be3006e3d1b | [] | no_license | AurelieFrechet/world_happiness | 991e1be543a2789267fc9a35685a957ab5e960ff | 7ae1bd22325b2c21815ff30eac08b351b79be1cf | refs/heads/master | 2021-06-24T04:27:50.677840 | 2021-01-19T16:08:01 | 2021-01-19T16:08:01 | 192,379,296 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 614 | r | 03_compare_charts.R |
compare_filter <- reactive({
validate(need(input$compare_select != "", "Choose countries"))
dplyr::filter(current$data, country %in% current$compare)
})
output$compare_stakedbar <-
renderPlotly({
stackedbar_wh(data = compare_filter(),
year = current$year)
})
output$compare_lines <-
render... |
81673db96626989238e00caccd0b1f50ef861848 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/NetWeaver/examples/rc.plot.heatmap.Rd.R | 147a4f118a735d73b79e2fa5ec94fe4878459ef4 | [] | 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 | 148 | r | rc.plot.heatmap.Rd.R | library(NetWeaver)
### Name: rc.plot.heatmap
### Title: Plot Heat-map
### Aliases: rc.plot.heatmap
### ** Examples
##see example of ?Modules
|
c6686952bc7e44f9642d59c452463f3902bc7c9a | 71f61b96c7f7a4d981e0a823ea5fb78e4bd7f2d2 | /assignment 1/plot1.R | 961f5274df4c73b4852bb5c23b6287debcb6e4db | [] | no_license | bradweiner/exploratorydataanalysis | f359ec1f114e8e8e4ff2a6171f2a37aefc9f7c68 | 922b58249549a5b93df1a34dc85e8426af5a2f99 | refs/heads/master | 2020-08-07T12:42:05.254770 | 2014-05-08T17:05:25 | 2014-05-08T17:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 794 | r | plot1.R | library(data.table)
elec<-fread(input="C:/Users/wein0339/Desktop/Dropbox/Coursera/Exploratory Data Analysis/household_power_consumption.txt", sep=";"
, na.strings=c("?"))
elec$Date<-as.Date(elec$Date, "%d/%m/%Y")
#Subset February 1st and 2nd, 2007
#In this file formats are dd/mm/yyyy
#Searching for 1/2/20... |
7b56ad862d9c13190b13cb9b465a8b13faccd00b | 3fc4a512a40350e5acfee574886683e04c2edd0a | /man/Queue.Rd | 3ea3fe97432f946b99a8f76eae2c75c461e3572d | [] | no_license | cran/Containers | d09e0fe0fec9cf7e46cb7717fdf4cc8ac15db7c1 | aca021b3e46576050973ca896db282881832093d | refs/heads/master | 2020-05-20T07:27:20.993341 | 2008-03-27T00:00:00 | 2008-03-27T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 439 | rd | Queue.Rd | \name{Queue}
\alias{Queue}
\title{Constructor for Class Queue}
\description{
This method instanciates class \code{Queue}.
}
\usage{
aQueue = Queue()
}
\examples{
aQueue = Queue() # Instanciate a Queue.
aQueue$insertBack(2) # Insert a few elements.
aQueue$insertBack(3)
aQueue$insertBack(-4)
... |
1d2a2bee2f18959df1aad8dbd9f1bd492ea3e7cd | 6d65a534673543684f0a97740e7e7b831f50ea47 | /inst/scripts/hh2/2.8-2.R | 9474dbe6121550fbb77d7d4f28649ebc3a2043fb | [] | no_license | cran/HH | 91151d240d6ecc1334fd79f1b0dfbbc28ca68df6 | a6ee768cedcebd4477bb9a5b4d0baa3d16e4dca0 | refs/heads/master | 2022-09-01T20:50:52.605306 | 2022-08-09T15:10:07 | 2022-08-09T15:10:07 | 17,691,800 | 3 | 3 | null | null | null | null | UTF-8 | R | false | false | 536 | r | 2.8-2.R |
R282 <- t(sapply(strsplit(Design_2.8_2$trt,""),
function(trtcomb)
as.numeric(letters[1:8] %in% trtcomb)))
dimnames(R282) <- list(Design_2.8_2$trt, letters[1:8])
R282 <- data.frame(blocks=Design_2.8_2$blocks, R282)
R282
data(R282.y) ## R282.y was randomly generated
R282.aov <- aov(R28... |
5a42ede78cf98d4241362d58fc8499921fbd81d5 | cb20aa7ca2d807d038d5e3c536a768f160d517f1 | /plot_proportions_against_fn.R | 2c12aee8e56a3588d149cf2e30d99eca8eb0f382 | [] | no_license | mathii/spectrum | dc393e3e1e425183112f7fc2a814fd3cd416936a | e9f0f990e8c0e5aac598886109bc5e89b15c3bc0 | refs/heads/master | 2021-01-10T07:15:47.871805 | 2020-06-02T15:02:15 | 2020-06-02T15:02:15 | 54,673,436 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,550 | r | plot_proportions_against_fn.R | ## Plot the proportion of variants in each class, as a function of n, as fn increases
source("~/spectrum/code/spectrumlib.R")
####################################################
what <- ""
cA <- commandArgs(TRUE)
if(length(cA)>0){
what <- paste0(".", cA[1])
}
####################################################... |
313497b74b1184b0f374d292aaf7d7541e185abd | 5b9e81414f73103919ff5da0f5424afd11ab3e0c | /2_Forecast_ML/cv_dt.R | cbbc8d75d28fdcecb64aab7ebcaa19e91001aeb8 | [] | no_license | kevinyz/Forex_Forecast | a1d61e1372decd08bc28bb1bf87c38200fb249a2 | 200bdc1042443e6ca0a5f303958f75167c5c5078 | refs/heads/master | 2020-05-22T00:09:35.463480 | 2019-05-11T20:06:59 | 2019-05-11T20:06:59 | 186,166,427 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,759 | r | cv_dt.R | cv_dt <- function(train_test_data,
run_parallel = TRUE,
no_cores = 3) {
if ("Hour" %in% names(train_test_data$train)) {
train_partition <- train_test_data$train %>%
select(-Date,-Hour)
test_partition <- train_test_data$test %>%
select(-Date,-Hour)
} ... |
2462eae7d15191e46fc799cd6a358682af5529b1 | a1f4c164ad71a2350bda7cb8349a1ba1cbe26b0f | /InformationAbility.R | 80a7032956787783a1d5a26a5e36b6d909c7949a | [] | no_license | JoshuaZe/RepeatedGameInR | 2e138c7a48c1a1b5f7e438974a2b67cfe55e0541 | 60d866f022ce5c12891295a5e2200beddb035b61 | refs/heads/master | 2021-01-01T18:06:40.826665 | 2015-03-05T06:50:26 | 2015-03-05T06:50:26 | 27,116,563 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 736 | r | InformationAbility.R |
i.onlySelfInfoWithCompetitor<-function(p.NO,c.NO){
info=t(data.frame(
c=t(game.decisionlog[c.NO,(!is.na(game.decisionlog[p.NO,1:ncol(game.decisionlog)]))&
(!is.na(game.decisionlog[c.NO,1:ncol(game.decisionlog)]))])))
}
i.onlySelfInfoAboutTypeOfCompetitor<-function(p.NO){
e.info <... |
6bbda460367ba719ad584e6c34c8a1627a38620e | bf1aae7fed65cbb5eeef065ae137844d12fcf53b | /Valentines Day Survey Dashboard/ui_server.R | 64302ecede45b571b46a2684ea3c0d6952adaae2 | [] | no_license | elayenikoylu/R-Shiny-Dashboard | ef46a96026f52ff4c8701f5fb761433eb60d22d1 | 1e5c73fee79b865ba36c4c4767d3d7d1c5827aaa | refs/heads/main | 2023-06-02T03:25:49.774308 | 2021-06-19T18:32:51 | 2021-06-19T18:32:51 | 378,480,240 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,621 | r | ui_server.R | if (interactive()) {
#- MAIN UI START
ui <- dashboardPagePlus(
title = "Valentine's Day Survey",
skin = "red",
#- Dashboard Title
dashboardHeader(title = span(tagList(icon("heart"), "Valentine's Day Survey")), titleWidth = 300),
#- Left Menu
dashboardSidebar(
... |
5c600e72e473231aa82af01c89840f66bda98c80 | 14a5eae233df75d47eedb77c91c1bfee5b39f736 | /azure/hot-cold/results/coldAfterPython/draw.r | 1afb7b40ed1705f49bd3abef513f9625bbbf6284 | [] | no_license | slnowak/cloud-functions-research | 55a38fde29c0f9fce6810559f1a18cbd9758be5d | a22b7cb87bddf0c4eb2fe1345e45ceccef4ebc3f | refs/heads/master | 2020-12-03T00:01:32.917331 | 2017-09-09T21:20:24 | 2017-09-09T21:21:56 | 95,975,600 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 574 | r | draw.r | library("ggplot2")
library("scales")
png(filename="graph.png", width=1280, height=1024)
dat = read.csv("data.csv")
dat$timestamp = as.POSIXct(dat$timestamp, format = "%Y-%m-%dT%H:%M:%S")
ggplot(data=dat, aes(timestamp)) +
geom_line(aes(y = percentile_duration_100)) +
theme_bw() +
scale_x_datetime(labels = date_forma... |
c676b881536fe927e5706d63b9c71916d37b2684 | 969d4316ad794a0eef0213b01a7b06ddfdf8d90d | /01_data_structures/03_matrices/1.R | 87dffd782a7cafcca6aedcd933de23f527d62f4a | [] | no_license | Bohdan-Khomtchouk/adv-r-book-solutions | adaa5b5f178999d130aff1359a23e978e39e86ae | e1b3a63c0539de871728b522604110c0aa18c7d1 | refs/heads/master | 2021-01-22T00:36:17.450660 | 2015-12-06T02:54:02 | 2015-12-06T02:54:02 | 47,481,353 | 1 | 1 | null | 2015-12-06T02:49:46 | 2015-12-06T02:49:46 | null | UTF-8 | R | false | false | 106 | r | 1.R | ### What does dim() return when applied to a vector?
> dim(c(1, 2, 3))
NULL
> dim(c('a', 'b', 'c'))
NULL
|
0581f8449623cfd21561f5013d994e51a0f3af36 | c425084c5f4a4a8ccbe1a0d1d5370037edf62efb | /college.R | 6db17ab320d903b29c4bc37215ca94e59b06a958 | [] | no_license | anand1692/data-science | 6793123b425fbed7239ab3d3844340126d10bb55 | bd4d0ced3b70395cd393470d2cd5b18668ce207e | refs/heads/master | 2021-01-18T21:44:34.281576 | 2016-03-30T19:59:03 | 2016-03-30T19:59:03 | 28,952,079 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 777 | r | college.R | college = read.csv("College.csv")
dim(college)
fix(college)
rownames(college) = college[,1]
fix(college)
college = college[,-1]
fix(college)
summary(college)
pairs(college[,5:10])
attach(college)
plot(Outstate, Private, col="red")
Elite = rep("No", nrow(college))
Elite[Top10perc > 50] = "Yes"
Elite = as.factor(Elite)
c... |
561c3b298c0001acaa25e3954515d6a68b40e3f9 | 002fe4ceedf168f1182989fe8a1130560706b37d | /plot3.R | 54fadfc910808de0b69e60a1a002553a6ed0f619 | [] | no_license | gscrepis/ExData_Plotting1 | daa4dacd2d942d602de035111fd8c58779b75fcb | e4a265bca179db3424dd9dffbf43e239be952769 | refs/heads/master | 2021-01-12T19:43:10.048209 | 2015-12-11T09:24:12 | 2015-12-11T09:24:12 | 47,815,052 | 0 | 0 | null | 2015-12-11T08:42:10 | 2015-12-11T08:42:09 | null | UTF-8 | R | false | false | 1,287 | r | plot3.R | # Create a data directory, download compressed file and unzip
if(!file.exists("./CS_course_project1")) {dir.create("./CS_course_project1")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, destfile="./CS_course_project1/power_consumption.zip")
un... |
ab905f3337b9f24c485dd849f7dc68b21c0ef946 | d765a553330f46d7a629dcb1d1a942b002fc1ff0 | /Tools/loadTEDDYtools.R | 35793e0217dfbfcd6ac890e6cc6beeed66aafe3e | [] | no_license | ConesaLab/TEDDY_Multi-Omics_Integration | bc70184c5f812518126c16cb45cc1e5cc0f48c3c | 61d221858191f9446d8cfc4abb529dec7cc00e70 | refs/heads/master | 2023-02-16T05:34:30.306481 | 2021-01-14T21:06:04 | 2021-01-14T21:06:04 | 237,418,899 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,235 | r | loadTEDDYtools.R | ###########################################################
############### loadTEDDYtools.R ##################
###########################################################
# Authors: Ricardo Ramirez Flores
# Genetics Institute, University of Florida (Gainesville)
# TEDDY tools: Requirements
# Loads all the fun... |
8c447124a80d4993b3faa4743718766286569e5d | 9594de75a331360baa35eacbfbc22f8a716b602d | /R/tdr_income_asisa_get.R | facfcf8b8b941c86876e6f2fba5c291239efa54b | [] | no_license | mustafaascha/inndxrs | 922198378741d7981f7b77f61fbfb3ba3b098f6a | ce8a8522eaebc5cc42f4ffed978d50a9b64e3577 | refs/heads/master | 2020-03-20T11:13:58.665823 | 2018-06-12T22:16:44 | 2018-06-12T22:16:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,775 | r | tdr_income_asisa_get.R |
#' @return transactions tbl
#'
#' @export
#'
tdr_income_asisa_get <- function(con_tdr, universe) {
tbl_income <- dplyr::tbl(con_tdr, "arc_asisa_Income_Converted")
tbl_income <- tbl_income %>%
filter(
CurrencyTo == ReportCurrency,
Duplicated == 0
)
# tbl_income <- tbl_income %>%
# renam... |
2ec28c2c0a77cef2b4aa9fff6a25b93d70a5058b | 32fa4e8db7efd2ff4adbb87eaae8141b4b282309 | /man/GUI.Rd | d6392666c2b9d3e45253c05a791eb5664e0b3844 | [] | no_license | martin-vasilev/EMreading | dc13c7940e2c4074aa97650a06bb9f0cd19a0bf8 | 3ad260ad425890bb606ce421a3e18e2ad1f19c6d | refs/heads/master | 2023-01-29T00:41:09.201495 | 2023-01-18T13:40:44 | 2023-01-18T13:40:44 | 112,669,247 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 302 | rd | GUI.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GUI.R
\name{GUI}
\alias{GUI}
\title{Graphical user interface for data pre-processing using R shiny}
\usage{
GUI()
}
\description{
Graphical user interface for data pre-processing using R shiny
}
\author{
Martin R. Vasilev
}
|
9bddc578087cc9d93ebc24ea4b5b917cd86f2c43 | 7caf18910d70cc9561605ed2778a3346a46c77d3 | /R/EDA_script.R | 9b44dd551460610796adbcf72e2f1b30dab7b0f0 | [] | no_license | alexvlima/Customer-Revenue-Prediction | 14eaf95a006e7af537c1943ecbe6f72c823f3d64 | b0957fd78c4b03a74fbf586503634257f909258f | refs/heads/main | 2023-08-23T09:27:23.659516 | 2021-09-29T12:50:41 | 2021-09-29T12:50:41 | 410,065,718 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,165 | r | EDA_script.R | ############
### PATH ###
############
getwd()
setwd('~/Documents/Kaggle/Google-Analytics-Customer-Revenue-Prediction')
###############
### LIBRARY ###
###############
library(tidyverse)
library(jsonlite)
library(data.table)
library(lubridate)
library(gridExtra)
library(countrycode)
library(highcharter)
library(ggE... |
fbdecc866de44f3f1c9963abdbb8db567bd5efa7 | a9fadb4eddb93c2a9a831af35aaa804d0ebaade0 | /acc_err_regression.R | 190460361337b6db8aa01d1e35d5dce9d3aecb22 | [] | no_license | nabhagat/R_analysis | 18658647423bcd7c262fa0ee9d6083cea335f25f | e68399ac2d3676a865ff6dac83bad2591caecf49 | refs/heads/master | 2021-01-15T15:46:42.552576 | 2020-08-27T08:39:04 | 2020-08-27T08:39:04 | 25,889,484 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,183 | r | acc_err_regression.R | # Code to fit linear regression to accuracy and error_min for all subjects
# and determine statistical significance of slope of linear regression
library('R.matlab')
# Read MAT variables
acc_per_session <- as.data.frame(readMat("C:/NRI_BMI_Mahi_Project_files/All_Subjects//acc_per_session.mat", fixNames = FALSE))
err... |
96c4d068ace6531d932671f26eb3339eb4c32a01 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.networking/man/directconnect_allocate_connection_on_interconnect.Rd | e9e98ac1eaa554630d1ecf9b0bb709172c66bccd | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 1,368 | rd | directconnect_allocate_connection_on_interconnect.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/directconnect_operations.R
\name{directconnect_allocate_connection_on_interconnect}
\alias{directconnect_allocate_connection_on_interconnect}
\title{Deprecated}
\usage{
directconnect_allocate_connection_on_interconnect(
bandwidth,
connect... |
82d9db16c9a046dd9949a5f257973f2cae64924c | 2049af77bb51dcb4b078018093db5caa0cd1a27b | /unit4_target/smartphoneSensor.R | 7c3dc0966c904c19d4e67af421bcc558c11f7350 | [] | no_license | ZhenJie-Zhang/DataMining | ad77a6ccf0181836f6b0ee4ef6ceaf79ee402360 | 2ec6e8c1aab57dec5f189ee80f8c3fff93bc2695 | refs/heads/master | 2020-08-14T02:39:11.032613 | 2019-10-14T15:42:34 | 2019-10-14T15:42:34 | 215,082,298 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 597 | r | smartphoneSensor.R | acc <- read.table("acc.txt", sep = "\t")
ori <- read.table("orient.txt", sep = "\t")
colnames(acc) <- c("deviceID", "sensorName", "x", "y", "z")
par(mfrow=c(3,1))
plot(acc$x, type = "l")
lines(filter(acc$x, rep(1/20, 20), sides = 1), col = "blue")
lines(filter(acc$x, rep(1/20, 20), sides = 2), col = "red")
plot(acc$y, ... |
7f553b1565a6fbbe1286446f0c83309426ad65e9 | ddd147af3b80855ebea82f993b2aab30c10671fd | /cachematrix.R | a5e588563ee8356991caa1c1518376d25c916624 | [] | no_license | dashess/ProgrammingAssignment2 | 3690836a68e3df189ee5e1d0f345d7de1ff31404 | ec2d3dbc42f1b1fc5ff6df82f0ce29ca8627641a | refs/heads/master | 2021-04-26T22:25:54.921847 | 2018-03-07T11:50:22 | 2018-03-07T11:50:22 | 124,090,811 | 0 | 0 | null | 2018-03-06T14:32:23 | 2018-03-06T14:32:22 | null | UTF-8 | R | false | false | 3,474 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## makeCacheMatrix uses a matrix m and returns a list with functions.
## each function can be called using $set(), $get(), $setInverse() and
## $getInverse() on the variable name you st... |
5328a9df7f58693ba18f04388965d95d17cae0bf | 5707fa70258d02ca5981010f078f635d0c5a09ca | /code/07-reports.R | 38597ce175379f8a83a3c3e84999d874502be80e | [
"MIT"
] | permissive | cgpu/2019-feature-selection | b60c3a3fe13abcc22836b272dd8bda27d0cb93bf | c7b33508cf92359718c47e13e01688a82d30a7bd | refs/heads/master | 2020-08-07T15:49:53.064371 | 2019-12-10T08:31:56 | 2019-12-21T17:25:19 | 213,512,464 | 0 | 0 | NOASSERTION | 2019-12-21T17:25:20 | 2019-10-08T00:28:15 | null | UTF-8 | R | false | false | 706 | r | 07-reports.R | reports_plan_paper <- drake_plan(
eda_wfr = wflow_publish(knitr_in("analysis/eda.Rmd"), view = FALSE, verbose = TRUE),
spectral_signatures_wfr = wflow_publish(knitr_in("analysis/spectral-signatures.Rmd"), view = FALSE),
filter_correlations_wfr = wflow_publish(knitr_in("analysis/filter-correlation.Rmd"), view = ... |
cfffcbd9b7fcb7272f15e6e6f6966ce1775e8990 | 76261a184e7aef8de40a3aa41a469148fe6d02f6 | /R-demos/packages/ggplot_plot_example.R | 2c4f66775cdf3ff54aa602a371d9b58b093f043f | [] | no_license | AngelinaBao/Rnotes | e3b7dbd80df24fd7f0a3c2f10588f07f37e22659 | cb9864738d776a19c3cf4d95d37cefcac46374c6 | refs/heads/master | 2020-03-24T21:16:08.090091 | 2019-02-09T01:41:17 | 2019-02-09T01:41:17 | 143,022,423 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 481 | r | ggplot_plot_example.R | library(ggplot2)
mpg <- mpg %>% filter(class %in% c("suv", "compact", "subcompact"))
ggplot(mpg, aes(displ, hwy)) +
geom_point(aes(color = drv)) +
geom_smooth(se = FALSE) +
coord_cartesian(xlim = c(1.5, 7), ylim = c(10, 45)) +
facet_wrap(~ class, nrow = 3) +
labs(title = "displ vs hwy in mpg",
x = "dis... |
46c910427fcec15d886ed32e36ad4ebec0900801 | c3d00c53859d9b9492cc5ac18bd02eb61d724445 | /man/SSLB-package.Rd | ea8d635c18b71ef97f1d7d6a2f8eac984388f18b | [] | no_license | gemoran/SSLB | 8c8e7d5bd70f24b28347cf2dd109826b2736b1a6 | aba8e406b03be28c8a83ac51ad39bb8ba927740a | refs/heads/master | 2021-11-13T04:28:02.359598 | 2021-10-29T15:21:46 | 2021-10-29T15:21:46 | 157,580,978 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 416 | rd | SSLB-package.Rd | \name{SSLB-package}
\alias{SSLB-package}
\docType{package}
\title{
\packageTitle{SSLB}
}
\description{
\packageDescription{SSLB}
}
\details{
The DESCRIPTION file:
\packageDESCRIPTION{SSLB}
\packageIndices{SSLB}
}
\author{
\packageAuthor{SSLB}
Maintainer: \packageMaintainer{SSLB}
}
\references{
Moran, G. E., Rockova, ... |
49365da72f740469a8f97fa461cf48410fe20b91 | add4690e78eb93ec89c0afdfb9676186232418ff | /plot2.R | 159a621db42381f82c1629e1bf3c8ba595b16321 | [] | no_license | LovisaReinius/ExData_Plotting1 | 46b0251de19ca06596222d9f3d2948c11e609a94 | e447ecdfbbb22218556f53f56ec62e1e5da2ea63 | refs/heads/master | 2021-01-19T17:28:07.622896 | 2017-08-22T12:37:18 | 2017-08-22T12:37:18 | 101,060,753 | 0 | 0 | null | 2017-08-22T12:32:39 | 2017-08-22T12:32:39 | null | UTF-8 | R | false | false | 723 | r | plot2.R | ### Exploratory Data Analysis - Course project 1
# Download data from file and unpack zip in working directoy.Load data set into R
epc <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
# Select the rows between dates 2007-02-01 and 2007-02-02
epcdates <- epc[as.cha... |
6a6851498276572947e4148d04a5bc6de0d68fc2 | 68f63ff26f6ba800eaf445f844cee713a7e3cf7d | /R/create-data/get-lockdown-duration.R | d36e9a470e1eaddf20874b4ad815721e982e5f98 | [
"MIT"
] | permissive | zackbh/covid19-vsl | 343fb8c7cd6a4501cb7743d08d78e99b5847ecaa | e6d9feeaad1fff5253a9f45dbe0c101329ddaf04 | refs/heads/master | 2021-05-21T18:18:14.448798 | 2020-09-03T13:39:11 | 2020-09-03T13:39:11 | 252,749,782 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 950 | r | get-lockdown-duration.R | ###############################################################################
# Read lockdown data ----
library(dplyr)
library(lubridate)
# How long were lockdowns on average? -----
# Using Wikipedia data by country
## https://en.wikipedia.org/wiki/COVID-19_pandemic_lockdowns#Table_of_pandemic_lockdowns
## Current a... |
018d46f6a3011f584314803ef885e842a6a9fedb | 852a84357a58db1f3e99d4ff196612515cbd8707 | /R/nth_highest_val.R | 4f3561f0458ae13e791f7adf17fe205949acd760 | [
"MIT"
] | permissive | siggitrausti/siggitRausti | 408f38c0cde226014d41ed2052761af4a92f6294 | 61241036371d65f8f7bcb23fefabab8ab0a66818 | refs/heads/master | 2021-07-08T07:36:07.653794 | 2020-09-03T11:34:34 | 2020-09-03T11:34:34 | 180,577,767 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 341 | r | nth_highest_val.R | #' Function to extract the n-th highest value in a vector
#'
#' @param my_vector,n
#' @keywords indexing
#' @export
#' @examples
#' nth_highest_val(my_vector,n)
nth_highest_val <- function(my_vector,n){ # function to take the n-th highest value of a vector
my_vec_sorted <- sort(my_vector, decreasing = TRUE)
return... |
9790e1dc2d3dd574bc1b7d681e23c74eadfff42d | d95777e6402e53221ce1835cd1b7e6bc89f0037a | /sentimentIt.Rcheck/00_pkg_src/sentimentIt/R/data.R | fb9e404d79084fef249e2e3c04be4ce1d2bec22d | [] | no_license | carlson9/SentimentIt | cb94958ab1a683d083a7a5753ca32fd42116c46b | d1855acfb1273fe26fd119b3291de478136b699d | refs/heads/master | 2021-03-27T12:34:06.692224 | 2018-06-22T15:54:15 | 2018-06-22T15:54:15 | 55,007,713 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 923 | r | data.R | #' Movie reviews example data set
#'
#' An example dataset of Rotten Tomato movie reviews with the number of stars given by the user. This is the first application in the associated paper introducing SentimentIt.
#'
#' @format A data frame with 500 rows and 2 columns:
#' \describe{
#' \item{Stars}{rating on scale fro... |
5ab6b70158620040cd20171646c7fac8df009f3d | e0733e54c3a9078e046663ad84ca5e7488489efd | /R/sstFunctions.R | 4d47f04f8ad7ed30131482250d43bb42de5121d1 | [] | no_license | npp97-field/hadsstR | 7afde0ff9e00bf48020d6b1043e7846c4a088d98 | f218bfc992b96e413a6186fac00cd4f063564b2b | refs/heads/master | 2020-12-28T23:16:19.584989 | 2015-04-24T14:23:44 | 2015-04-24T14:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,022 | r | sstFunctions.R | getSSTChangeMat<- function(sstObj, years=1969:2009){
sstAnnualArray <- getSSTAnnualArray(sstObj, years)
changeMat <- sstAnnualArray[,,length(years)] - sstAnnualArray[,,1]
changeMat
}
#note - you might think that I've reversed rows and columns in the below method
#but, the matrices are stored on their side... |
2706675b312c3b0bd7c1963e79aaa4e40b511444 | a72c87079aee185de30088503886bce58c6a7776 | /lib/cross_validation_pca_lda.R | 7b94e3131e8c301a7737fccc77405c2f0c9ba531 | [] | no_license | TZstatsADS/Spring2021-Project3-group4 | 092b061e00aecf12a1828cc0ea3f2bf01cb59b50 | 6faadd3c67073153ebf5b51b441393f6880cd6d0 | refs/heads/master | 2023-03-14T20:35:39.283553 | 2021-03-17T21:35:07 | 2021-03-17T21:35:07 | 342,067,893 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,066 | r | cross_validation_pca_lda.R | ########################
### pca for lda ###
########################
### Author: Yushi Pan
### Project 3
pca_evaluation <- function(features, labels, K, num_pc) {
set.seed(2021)
n <- dim(features)[1]
n.fold <- round(n/K, 0)
s <- sample(n) %% K + 1
cv.error <-rep(NA,K)
for (i in 1:K){
## creat... |
9618ce7b4727ed9ce6294bf146bb13f565a862e7 | cec479ddf133987a5cd1acfaeb4056064e03a4c2 | /R/utils.R | aa5c99866f91b27af23d53114bea2fb05ee7025f | [] | no_license | Tsaoxy/microbiomeViz | 3f7dfe28dbd825d6b96cd75cc2396efc986ea11f | e22d7b19835f9b0b3d0785931bbd63b898f6299c | refs/heads/master | 2022-12-05T18:10:32.206941 | 2020-09-03T11:42:41 | 2020-09-03T11:42:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,857 | r | utils.R | ##' @title formatPhrase
##'
##' @param phrase a phrase with taxon name(s)
##' @param taxon a taxon name to be italisized
##' @export
##' @author Chenhao Li, Guangchuang Yu
##' @description generate an expression for the phrase with the given taxon italisized
formatPhrase <- function(sentence, taxon){
## already an ... |
83946549429d24878cd9c69b6ecf9cf9658bf0fa | f4991c8c1e5b7a3676fe717d3ad8f385734f1197 | /plot2.r | 888a7f6ed1abbc980e608a02bf4115ee05837b3d | [] | no_license | askorek/ExData_Plotting1 | d630c9dfa845fba44db005ee32e1b121e9058ab6 | 2a6a5349707be78e2500cc55fad522c4a584d9e5 | refs/heads/master | 2021-01-14T13:49:21.209503 | 2015-10-09T13:58:05 | 2015-10-09T13:58:05 | 43,957,850 | 0 | 0 | null | 2015-10-09T13:46:47 | 2015-10-09T13:46:47 | null | UTF-8 | R | false | false | 564 | r | plot2.r | data = read.table("household_power_consumption.txt", header=TRUE, sep= ";", na.strings = c("?",""))
data_filtered = subset(data, data$Date == "1/2/2007" | data$Date == "2/2/2007")
data_filtered$Date = as.Date(strptime(data_filtered$Date, '%d/%m/%Y'))
data_filtered$timetemp = paste(data_filtered$Date, data_filtered$Time... |
db46fdcd19251e3cc60934e2d13aea0931210afb | c4522a72b9543374d9f6b74bd387a071490348d8 | /man/rotdat.Rd | a79ad6453c548051f2c510bf7824d03ea292dab6 | [] | no_license | cran/SCCS | 8aab25b4cf8b2e547369a71d3b3508e25147667c | aa0e7c0a549f67ba7017712f13cdbe5e529c852b | refs/heads/master | 2022-07-07T05:02:30.814331 | 2022-07-05T13:20:09 | 2022-07-05T13:20:09 | 133,012,639 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 915 | rd | rotdat.Rd | \name{rotdat}
\docType{data}
\alias{rotdat}
\title{Data on Rotavirus vaccine and intussusception}
\description{
The data comprise ages in days at rotavirus vaccine (RV) and first symptoms of intussusception in children between the ages of 42 and 183 days. There are 566 cases. Ages have been jittered.
}
\usage{ro... |
39f54350454d4c04d5ee91b79064641756d79335 | 3c0cb98f7e31a4ce850bd715dff583b280e878c4 | /R/filter.R | adaeb32df208e310acf2c8ed186b21394961a213 | [] | no_license | LeaBreniere/minidplyr | 22e24f4208de60a33eb0c4f3846f1da0cc1c2424 | 368daf306941d31ccee71643398a78a47a8385c9 | refs/heads/master | 2021-04-18T21:49:53.744141 | 2018-03-27T09:09:12 | 2018-03-27T09:09:12 | 126,301,264 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 99 | r | filter.R | #' Title
#'
#' @inheritParams select2
#'
#' @export
#'
filter2 <- function(x, ind) {
x[ind, ]
} |
09d67002c182ba9d2ded0341e2a0c9a351e7a5d1 | f652d759db19d036860f01f84df8681eef37050f | /R/c_test.R | 60c25fb14c840c99b3a244fc43d0d87b193ef1fb | [] | no_license | wch/rcpptest | 066bd096cc038e5d84f62d5553066c0d51b76191 | 383e6b08205ea5411433a4835287aad74411f212 | refs/heads/master | 2016-09-05T13:58:12.998780 | 2012-07-23T23:16:55 | 2012-07-23T23:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 85 | r | c_test.R |
get_folder_path <- function(){
.Call( "get_folder_path", PACKAGE = "rcpptest" )
}
|
276b7ee668845fce966016625d1bfa848321db7c | b83c7ce220eef7e0ce1c209b937dd8bc48577db2 | /man/validate_table.Rd | 1f2afdd2cb149aff0c615a5de731fe8b2e254758 | [] | no_license | mahowak/peekds | d35a08d983284223f9ea6d3497757a151866f3e4 | 47550093666a108d31d1edfca867cb80bd147278 | refs/heads/master | 2020-09-21T10:56:15.359908 | 2020-07-24T00:43:48 | 2020-07-24T00:43:48 | 224,767,618 | 0 | 0 | null | 2019-11-29T03:09:11 | 2019-11-29T03:09:10 | null | UTF-8 | R | false | true | 725 | rd | validate_table.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/validators.R
\name{validate_table}
\alias{validate_table}
\title{Check if the table is EtDS compliant before saving as csv or importing into database}
\usage{
validate_table(df_table, table_type)
}
\arguments{
\item{df_table}{the data frame t... |
18c24c737ca44ff93bdc8eacc56408543374fd03 | 8b5e9897c10bd990e7aee1201325397dfb7e1c82 | /Graduação/2021/S1/Checkpoint_Atividade_Complementar/AR.R | 09226593e9c56887f95282366a03718c826e61ba | [] | no_license | Uemura84/FIAP | 9ea08e79b4b9f1c8de87c317d5bb19f8e66bfd30 | 2c9a62b775096c108c0da42dcb4f66dbd74a0e07 | refs/heads/master | 2023-08-02T10:40:17.526656 | 2021-10-08T02:31:11 | 2021-10-08T02:31:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 621 | r | AR.R |
fat <- read.csv("https://raw.githubusercontent.com/diogenesjusto/FIAP/master/Gradua%C3%A7%C3%A3o/2021/S1/Checkpoint_Atividade_Complementar/faturamento.csv")
fat2 <- fat[fat$loja=="Loja 1",]
fat3 <- fat2[13:396,]
fat3$GMV1 <- fat2[12:395,]$GMV
fat3$GMV2 <- fat2[11:394,]$GMV
fat3$GMV3 <- fat2[10:393,]$GMV
fat3$GMV4 <- ... |
621c74e87188c027b4297b9943f39f0d10aedfc9 | 74b7902dcc4015bdc675c0670210be49b03edf2a | /cachematrix.R | a86528b3900ba4510749cddd0e82ffbfc24b04d1 | [] | no_license | MasonSwier/ProgrammingAssignment2 | a6a70f794ce595f7177da6badc1f07605dac3c0e | f3d38b81fea50a092d81652ce1fd58cd96882df4 | refs/heads/master | 2021-05-17T18:15:25.978512 | 2020-03-29T02:28:11 | 2020-03-29T02:28:11 | 250,913,517 | 0 | 0 | null | 2020-03-28T23:20:04 | 2020-03-28T23:20:03 | null | UTF-8 | R | false | false | 1,728 | r | cachematrix.R | ## Hello classmate! Thanks for reviewing my work.
## My function uses the makeVector and cacheMean functions as a template
## to cache the inverse of a matrix. In testing, I used the following matrices
## matrix(c(1,0,5,2,1,6,3,4,0),3,3)
## matrix(c(1,0,5,2,1,6,3,4,1),3,3)
## matrix(c(1,0,2,2,0,2,1,0,0,1,0,1,1,... |
bff0df41cb7eda7510e191e767394d9d099bdf5a | e05d6087304c9996106942f7ee54af60c4baeb42 | /scripts/load_data.R | 880278233b125ed4a8f7ee30bf8e3dc23a2a204f | [
"MIT"
] | permissive | avallarino-ar/gene_expression_explorer | 523a21063a1b3590cbc81485dadbc4238f63c66c | 1d1cbee4b1348650bafdef7c4d79503e36fc37c1 | refs/heads/main | 2023-04-07T13:02:37.376928 | 2021-04-14T06:29:24 | 2021-04-14T06:29:24 | 357,788,946 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,768 | r | load_data.R |
lsh_gene <- function(df_genes){
# quito las columnas con valores NA. Son pocas , pero igual debemos
# decidir si queremos quitarlas o cambiar los NA por 0.
df_genes <- drop_na(df_genes)
m <- as.matrix(df_genes[,-1])
rownames(m) <- df_genes[,1]
##########################################
## Funciones
... |
8a6a351f487b69097f87c15e1e45493520732567 | f5f02ca0fea2d41b306e00bcb4c06b489b879862 | /DM/遺漏值.R | 6738626580765ccbb6c90320371b37993fb28a5a | [] | no_license | hanksky12/Institute-for-Information-Industry | 2e2d2b4a77f0048bb99b4ad8fd02b068f3161fda | d0599f383bfcda83ed18bc812b2d60b624c9174f | refs/heads/master | 2020-08-06T12:18:47.307680 | 2020-06-06T10:47:24 | 2020-06-06T10:47:24 | 212,971,990 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 248 | r | 遺漏值.R | tmp=c(2,3,8,NA,4,NA,9,12,NA)#na要大寫
is.na(tmp)
any(is.na(tmp))#針對是否有missing data回傳true或false值
sum(is.na(tmp))#計算全部的missing數值數量
is.nan(0/0)
is.infinite(1/0)
summary(tmp) #summary也可看出遺漏值數量
|
91874f48ba69ee26c83d5ed7b5962bb4c297fef5 | f6f827705ff14dd30922d4c88a22b45c30562d95 | /venn/venn.R | c128a88fb4fb65006363fc67300d6a6a728a6658 | [] | no_license | neocruiser/thesis2014 | 4a34cec26dda28088ef96eb3ec64d140faa18bfb | e3411074d66afc982f7f62ce89c6bc4827509274 | refs/heads/master | 2021-01-10T19:48:25.522504 | 2018-03-22T19:13:18 | 2018-03-22T19:13:18 | 18,043,071 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,692 | r | venn.R |
## Launch 01funcs.R
#########################################################################
# SECTION -1- #
#########################################################################
ratio <- matrix(sample(seq(-5, 5, by=0.1), 100, replace=T), 100, 4, dimnames=list(paste("g", 1:100, sep=""), paste("DEG",... |
d5fc5e79065ec7a82ffafd4328b20df6ec52508f | ac8f6c9cef4f67fc84ad86c30b822e9d68779852 | /run_analysis.R | 66f906955121a3f5c851b1aff6b912a10b29a671 | [] | no_license | JakeSaunders/GettingAndCleanData | dcecc1ad5e0fc7a305e60d04a86ff76f372b3791 | 7bb946b25f29884ded64fb71416505cf73b7404d | refs/heads/master | 2021-01-09T09:19:51.753915 | 2016-06-29T18:52:31 | 2016-06-29T18:52:31 | 62,195,429 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,687 | r | run_analysis.R | # Getting and Cleaning Data Course Project ----
#
# The purpose of this project is to demonstrate your ability to collect,
# work with, and clean a data set. The goal is to prepare tidy data that can be
# used for later analysis. You will be graded by your peers on a series of
# yes/no questions related to the... |
2ecdfa9d365fa1cda9e1ad01253bcf71e188bc42 | f7f5f38a8b8e74b5011eb0ae0e875bbaddaa814c | /dashBoard&Insights(R,R Shiny)/mapAndR/RouteMobileDashboard/ui.R | 22906e05ff6a193a418396708849bca4da0ed80b | [] | no_license | sarikayamehmet/Rshiny-Python-hadoop-Others | dce863158786cc48e74c6d1041927744320d0d99 | 07649cc62b01e825ee9e8c6f6cefad3a57899df9 | refs/heads/master | 2020-03-20T04:26:06.404516 | 2018-04-03T10:25:43 | 2018-04-03T10:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,427 | r | ui.R |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
library(leaflet)
shinyUI(fluidPage(
# Application title
titlePanel("Dashboard"),
# Sidebar with a slider input for number of b... |
004b0531e72525f29159ecdafdd094c62b9bbd7e | ca18e485b00a7395090ab7ea634163b7d62ab9bb | /Project Code.R | a22394a65444ef723b05865d099a3d22ed1dcf57 | [
"MIT"
] | permissive | JiyadRehman/Logistic-Regression-and-Decision-Trees | 75e668c1259f9e7034709d43bfaa78fa7755e1bc | 826a0596e5c03de5242a3375a97249b46cadb628 | refs/heads/master | 2021-03-10T06:47:45.204203 | 2020-03-10T23:44:57 | 2020-03-10T23:44:57 | 246,431,117 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,208 | r | Project Code.R | # ---------- ASSIGNMENT 3 -----------------
# --------- Libraries ---------------------
install.packages("questionr")
install.packages("ROCR") # for LIFT, GAIN, AUC chart
install.packages("pROC") # for AUC value
library(caTools) # for sample.split
library(ggplot2)
library(caret) # for confusion matri... |
60b7adb1bd064af3d81384c629dcd5dbe4c5116c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rLakeAnalyzer/examples/lake.number.Rd.R | dd59f0216060793bba69249b9e66c287bbe9c19e | [] | 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 | 461 | r | lake.number.Rd.R | library(rLakeAnalyzer)
### Name: lake.number
### Title: Calculate Lake Number
### Aliases: lake.number
### Keywords: manip
### ** Examples
bthA <- c(1000,900,864,820,200,10)
bthD <- c(0,2.3,2.5,4.2,5.8,7)
uStar <- c(0.0032,0.0024)
St <- c(140,153)
metaT <- c(1.34,1.54)
metaB <- c(4.32,4.33)
averageHypoDense... |
99528553fb99d2e525c744f5462376e51176971d | b528d94619a6b701bb2ea80c4d428802a045bac1 | /man/CommandArgs.Rd | 050ec9ce44a7d7e4fa062707ce5b42cd2943c93b | [] | no_license | BigelowLab/rscripting | f4efb0cdbd0de9522631fdcbdca9b128502a5a8d | e32fea9bae939872e91ca63b6c424e40f8fd6f65 | refs/heads/master | 2022-11-08T13:56:55.714506 | 2022-10-17T20:13:36 | 2022-10-17T20:13:36 | 36,942,162 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 891 | rd | CommandArgs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CommandArgs.R
\name{CommandArgs}
\alias{CommandArgs}
\title{Generate a CommandArgs reference}
\usage{
CommandArgs(args = commandArgs(trailingOnly = FALSE), name = "program_name",
help = NULL)
}
\arguments{
\item{args}{a character vector as ... |
ce11f63d2a2d66368d02f07d15f3dd01563f0ac0 | 890e646bc0a742fbea5d3d8929d5ed1f6516dab9 | /fishmodel.r | 6aedf8e24f191cedcd0217a408d072dcc360c51c | [] | no_license | mengeln/Bray-Curtis-Reef-Model | 14df5701f8393e90dfdc52ea0ca0e55a19f1457c | b304427c64c0090c12aed5e9e2ebec4ccdddc372 | refs/heads/master | 2021-01-16T20:34:20.241699 | 2014-04-09T18:38:09 | 2014-04-09T18:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,161 | r | fishmodel.r | library(randomForest)
library(reshape2)
library(plyr)
## Make a model to determine if Reference status can be classified directly by fish abundance
#Read in data
species <- read.csv("Bio_all_species_level.csv",
stringsAsFactors=FALSE)
habitat <- read.csv("habitat_fish_trim.csv",
... |
e0d9a22e771338888f761147e1bd484e1242d082 | daa82962840d74f9519bca7557fefc33c9ab03ce | /Salary_SVM.R | ff335a68051ddd8bfbba75f7273993b858e5f6f9 | [] | no_license | AshwinKoushik/R-Codes | 4e7cb9f00828cf449f6c1e72622369d94e18407b | 81e99dee6beae286388f1d2941d2bfafed75e4c3 | refs/heads/master | 2022-12-04T18:35:53.891118 | 2020-08-15T16:08:49 | 2020-08-15T16:08:49 | 276,684,149 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,976 | r | Salary_SVM.R | install.packages("readr")
install.packages("kernlab")
install.packages("caret")
library(readr)
library(kernlab)
library(caret)
# Importing Train data
data_train <- read.csv("E:/Data Science/SVM/Assignment/SalaryData_Train.csv")
View(data_train)
table(data_train$Salary)
# Structure of the data
str(dat... |
ef44882c8ab1c352311d544ef95ad1ce10ab1128 | 7a2939a3f1de35e316f8712ec0d33d8241486bb7 | /code/mapping_vi_estates.R | 8b8ce3da950ab5fe0a896a6337b48b7b432a2daa | [] | no_license | JahNorr/mapping | 8c3bef9c37edbd20f7be82254efa91a5a34a0d71 | 3cfec32f988caee18e37d5da1d546420586538ea | refs/heads/master | 2023-08-17T20:47:48.074185 | 2023-08-16T05:03:49 | 2023-08-16T05:03:49 | 44,315,285 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,319 | r | mapping_vi_estates.R | load("./data/vi_estates.RData")
vi_map_limits<-function(x) {
if (x %in% c("St. Croix","STX","Croix")) island<-"St. Croix"
if (x %in% c("St. Thomas","STT","Thomas")) island<-"St. Thomas"
if (x %in% c("St. John","STJ","John")) island<-"St. John"
return (limits[,c(island)])
}
vi_county_to_island<-func... |
419749c7765a9c74b62af450b5debc84eb2291bf | 192b7af458b5837bc258d30d640e18b67ae14c13 | /old/boots2.R | bde594db78477aabee123882a0180586571a4bad | [] | no_license | OldMortality/overdispersion | 2d2b8190c04db098e122d763394487426af542a8 | ae8dbb7018bfe8af5798145260df12341188e027 | refs/heads/master | 2021-06-30T17:13:52.766856 | 2020-09-27T00:47:05 | 2020-09-27T00:47:05 | 170,043,690 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,320 | r | boots2.R | library(MASS) # for "rnegbin"
library(rmutil) # for "rinvgauss"
# calculate CI's for phi, based on chisquare distribution
# with phihat1 and phihat2, and on Gamma distribution
# (phihat2 only), and fitting only Negative binomial
# for now.
# Plots first 100 of the simulations, with error rates.
#
par(m... |
e415772cfe8f9918fadf2e8736a9b9cf1ac0f753 | 860a1a3c427142e766d7b1f4bd08fd73ed9121ac | /rbloomberg/man/convert.data.to.type.Rd | b891f0281071cc2b56e98a9c1a88a6e827f49705 | [] | no_license | acesari/RBloomberg | 6a5746e10ad7f44d65612a98c0ea75f2466cb513 | f01f40f0850badd36cef3887c13bb4108c38793a | refs/heads/master | 2021-01-16T12:44:32.276054 | 2011-07-28T13:55:54 | 2011-07-28T13:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 511 | rd | convert.data.to.type.Rd | \name{convert.data.to.type}
\alias{convert.data.to.type}
\title{Convert a matrix to a data frame.}
\usage{convert.data.to.type(matrix.data, data_types)}
\description{
Convert a matrix to a data frame.
}
\details{
Take results as matrix and a vector of data types and
coerce to a data frame with columns of the sp... |
0b356e61e244176cedff9b287e593bd13a4ee029 | 56b32941415e9abe063d6e52754b665bf95c8d6a | /R-Portable/App/R-Portable/library/igraph/tests/test_dominator.tree.R | a83db4b4d236285da8504f2297955ba3bb02a5ff | [
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-newlib-historical",
"GPL-2.0-or-later",
"MIT"
] | permissive | voltek62/seo-viz-install | 37ed82a014fc36e192d9a5e5aed7bd45327c8ff3 | e7c63f4e2e4acebc1556912887ecd6a12b4458a0 | refs/heads/master | 2020-05-23T08:59:32.933837 | 2017-03-12T22:00:01 | 2017-03-12T22:00:01 | 84,758,190 | 1 | 0 | MIT | 2019-10-13T20:51:49 | 2017-03-12T21:20:14 | C++ | UTF-8 | R | false | false | 871 | r | test_dominator.tree.R |
context("dominator_tree")
test_that("dominator_tree works", {
library(igraph)
g <- graph_from_literal(R-+A:B:C, A-+D, B-+A:D:E, C-+F:G, D-+L,
E-+H, F-+I, G-+I:J, H-+E:K, I-+K, J-+I,
K-+I:R, L-+H)
dtree <- dominator_tree(g, root="R")
dtree$dom <- V(g)$name[ as.vector(dtree$do... |
7db39d7122100d43cd30780b7dd2c4a4a18daaf3 | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /multivariance/inst/testfiles/fastdist/libFuzzer_fastdist/fastdist_valgrind_files/1612987467-test.R | e90bb62231d6c23db019594c9328fe16054aa920 | [] | no_license | akhikolla/updatedatatype-list3 | 536d4e126d14ffb84bb655b8551ed5bc9b16d2c5 | d1505cabc5bea8badb599bf1ed44efad5306636c | refs/heads/master | 2023-03-25T09:44:15.112369 | 2021-03-20T15:57:10 | 2021-03-20T15:57:10 | 349,770,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 185 | r | 1612987467-test.R | testlist <- list(x = structure(c(8.34402696940226e-308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 2L)))
result <- do.call(multivariance::fastdist,testlist)
str(result) |
c32c9c22a33efecdef50c8d6c79f0c619377cd82 | dae6c1f7e8e051cf0a3534e92cc722e9a02174af | /tests/testthat/test-taxadb.R | cfaf36043d73d2ae314363f9e840ccef635b12bd | [
"MIT"
] | permissive | cnyuanh/taxadb | f68ad2c6c381d9be421a40821a912414abdb95ae | 5b95e3810078e90b592f09a107589898cf5eebbe | refs/heads/master | 2020-12-08T16:46:17.986425 | 2019-12-19T02:20:34 | 2019-12-19T02:20:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,502 | r | test-taxadb.R | context("taxadb")
library(testthat)
library(taxadb)
library(dplyr)
test_that("we can set up a db and call basic functions", {
td_create(dbdir = test_db)
db <- td_connect(test_db)
df <- taxa_tbl(provider = "itis",
db = db)
chameleons <- df %>%
filter(family == "Chamaeleonidae") %>%
... |
0fdfbdd919669c74d36d0bca8853608b6c97b979 | 5432e2fc86a88fd721b16e09e9c1ca96e1b13806 | /markov/markov.R | 5a6173b9041079d3757980d4f25d1cbd12fc0d6e | [] | no_license | emrahkirdok/codes-for-teaching | 9556c9e75fd56de9642386e1eef111e69253c3ee | e8669ecdf7a0e5e0cf9ad94d1e1559876a22c9ba | refs/heads/master | 2020-12-28T18:44:51.081802 | 2020-02-05T12:38:10 | 2020-02-05T12:38:10 | 238,446,552 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,851 | r | markov.R | # a quick implementation of markov chains using an english dictionary
library(readr)
# first read the dataset
words <- read_csv("https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt", col_names = FALSE)
# create the word matrix
wordmatrix<-matrix(data = NA, ncol = 32, nrow = dim(words))
for (i... |
0d17edc58d71f262459b481c61ac8bcb33098806 | e63b80d27581a2f60463239b9b575097d3eeb765 | /counting.R | d587b68ed84f9068cc86ec0ff4eb2481ace6a402 | [] | no_license | AnkitaNaik/News-Effect-on-Stocks | 5ca56a4342ef56f79c8ac4e7f966f5dba9a4a661 | 37ea6193d976224ee54189b1e7ef3321b4304040 | refs/heads/master | 2021-06-17T12:08:32.531574 | 2021-01-17T10:09:19 | 2021-01-17T10:09:19 | 137,595,829 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,130 | r | counting.R | ## Function for frequency calculation
frequency<- function(name,sdk){
## Packages used are mentioned below
require(qdap)
require(tm)
#print(name)
#print(sdk)
sdk = tolower(sdk)
sdk <- removePunctuation(sdk)
keywords= switch (as.character(name),'Wal-Mart' = c('walmex','walmart')
... |
e4c29755d9c9cf31a28a51adf67922cc5ec13917 | a60427d81114009b6004bc9f4aec36e9b0000d28 | /R/nnet1.r | dc0640f0d744b18045ab4123e54044922ab3332f | [
"Apache-2.0"
] | permissive | cwkim0314/DataScience-Practice | 6ad016627a6541e3ac45cf54d84491fbc08770b2 | 7b3aec2089b6508efa2d84c7937e6781bd3fc371 | refs/heads/main | 2023-08-19T20:40:15.407225 | 2021-10-01T14:45:22 | 2021-10-01T14:45:22 | 407,879,105 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 107 | r | nnet1.r | library(xlsx)
library(nnet)
data<-read.xlsx2(file.choose(),1)
data
plot(df$일자,df$현재지수)
grid()
|
ed799163ac652e0b14a9d6a52cd5526e7bc0dc9a | 057427005e93aa00f2f8aaaeb78b20567c52e301 | /man/read.Structure.Rd | ae528ca567668adc3bb82fb2cced5078e51e5fd9 | [] | no_license | cran/assignPOP | ee9f1bd1620c45ff98bf10e7447a6d3597d9f3b8 | bcf7850e2bdfc3725f8ef6797bf561ac8aab6c3c | refs/heads/master | 2021-11-11T20:13:11.220794 | 2021-10-27T18:30:02 | 2021-10-27T18:30:02 | 77,605,837 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,328 | rd | read.Structure.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.Structure.R
\name{read.Structure}
\alias{read.Structure}
\title{Read Structure format file}
\usage{
read.Structure(x, ploidy = 2)
}
\arguments{
\item{x}{STRUCTURE file or path to the file. The filename extension (e.g., .txt) sho... |
b0a0404507136487e4692c40ee8a109de4834ca6 | 91a90a5728a83acb0a80ba02eef12f111f1fd7b6 | /model_old/6_compile_samples.R | e7cb828de79e7eb58b1b714fc60623210929c072 | [] | no_license | ballardtj/gen_arch | b5d9556c5ba9e18d3a515608bf5a8fea1dc9080b | a0ca3fedd5231e2afb577da8f6ae26377621a9a2 | refs/heads/master | 2020-03-23T09:57:22.681605 | 2019-10-15T02:06:53 | 2019-10-15T02:06:53 | 141,416,873 | 0 | 0 | null | 2019-07-08T23:18:13 | 2018-07-18T10:03:06 | R | UTF-8 | R | false | false | 640 | r | 6_compile_samples.R | library(rstan)
args <- commandArgs(trailingOnly = T)
print(args)
i <- args[(length(args)-3):length(args)]
frame <- strsplit(i[1],"--")[[1]][2]
source <- strsplit(i[2],"--")[[1]][2]
structure <- strsplit(i[3],"--")[[1]][2]
model <- strsplit(i[4],"--")[[1]][2]
regexstr = paste0(frame,"_",source,".*",structure,"_",mod... |
d5e185e42a013ec359e6da707ed1b2a56e4891ca | 4e38170d7b3f871ef2b65419102f9cee757e456d | /SuperFarmerMAPA-master/R/badaj_gre.R | 7273d6b2037584d97ac9b8f42702daf91c75b405 | [] | no_license | pgorniak/SuperFarmerMAPA | a4d96b6d0b48a26851b53212098d7166a04b3d20 | 620bf7a8d58216e22115bc71f5077afb2272f590 | refs/heads/master | 2020-06-10T21:15:36.893818 | 2016-12-31T15:12:48 | 2016-12-31T15:12:48 | 75,871,314 | 0 | 0 | null | 2016-12-07T20:05:01 | 2016-12-07T20:05:01 | null | UTF-8 | R | false | false | 682 | r | badaj_gre.R | #' @title Badanie gry przy zadanej strategii
#'
#' @description Funkcja wywolujaca funkcje \code{gra()} wielokrotnie przy zadanej strategii i zwracajaca wektor wynikow
#'
#' @param strategia Strategia, przy ktorej ma byc badana gra
#' @param ile Ile razy fukcja ma zagrac w SuperFarmera przy zadanej strategii, domyslnie... |
926a9941b0ab9a36f0317acc6292df5f0e59412a | 6fbfe5725afa1574e8267679bf5b41739c55943a | /Week 3 Kejia Shi.r | 3755dba74c269cc32e2a6c6d9907ef8e2f5408be | [] | no_license | bugakm/628--p1 | a169dae2933165173b7bf43079d3d71c55310863 | e35774f312ef1f1d00ec81cc7e4688d578a027b3 | refs/heads/master | 2016-08-11T19:23:07.779355 | 2016-02-25T19:01:46 | 2016-02-25T19:01:46 | 50,133,722 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,867 | r | Week 3 Kejia Shi.r | ##Seasonal Analysis
library(dplyr)
library(timsac)
library(dynlm)
library(stats)
library(forecase)
library(bfast)
library(ggplot2)
#0. Cleaning
dataclean_pre<-function(chr){
data <-read.csv(chr,skip=3,colClasses = c("character",rep("NULL",2),rep("integer",5),rep("NULL",3)))
data<-data %>%
filter(Value != -999... |
2e4c470744e27a6e350e16dae277e74be67afbf4 | 7fedcc709364af02dc16baefabf0950e54bebb6c | /man/plot_Kroll_differential.Rd | 4238dafa025994cee4e24dadb3d7eabf64b6e9fa | [] | no_license | robertyoung3/MSanalyzeNOM | 34c406c453a3ac8eda7a1a8456161dd9159062f1 | 604299a54f55948d41ceb5f2769f2242935d2976 | refs/heads/master | 2023-05-07T06:42:44.693193 | 2021-06-01T17:55:37 | 2021-06-01T17:55:37 | 268,903,669 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 708 | rd | plot_Kroll_differential.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_Kroll_differential.R
\name{plot_Kroll_differential}
\alias{plot_Kroll_differential}
\title{plot_Kroll_differential}
\usage{
plot_Kroll_differential(data, plot_title = "")
}
\arguments{
\item{data}{a tibble containing the following column... |
468345d78ce31197287a63162fc91d43c8345dbc | 051880099402393c9249d41526a5ac162f822f8d | /man/pt.interpolate.Rd | a4423cbe7ebbf28d2384dbe7356703445db16d00 | [
"MIT"
] | permissive | bbTomas/rPraat | cd2b309e39e0ee784be4d83a980da60946f4c822 | 4c516e1309377e370c7d05245f6a396b6d4d4b03 | refs/heads/master | 2021-12-13T19:32:38.439214 | 2021-12-09T18:42:48 | 2021-12-09T18:42:48 | 54,803,225 | 21 | 7 | null | null | null | null | UTF-8 | R | false | true | 1,125 | rd | pt.interpolate.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pt.R
\name{pt.interpolate}
\alias{pt.interpolate}
\title{pt.interpolate}
\usage{
pt.interpolate(pt, t)
}
\arguments{
\item{pt}{PitchTier object}
\item{t}{vector of time instances of interest}
}
\value{
PitchTier object
}
\description{
Interp... |
750e54aae32b984d336c97fcd7e060255a2a2703 | 18ea191874f20d6ce683f54d4a0cb0f28e165e5a | /Chapter 6.R | 5b257a709d435872b36753abb71bffea65b072c4 | [] | no_license | jjwoolley/Intro-to-Statistical-Learning | 524f10e39d85e9829ac91b717daf90a2eaf5cb91 | 8d17f74a30be5c138b87d97e50b421d1d34aa483 | refs/heads/master | 2022-12-08T11:12:41.293876 | 2020-09-07T21:14:20 | 2020-09-07T21:14:20 | 287,126,099 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,896 | r | Chapter 6.R | # Follows An Introduction to Statistical Learning
# with Applications in R
# By Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani
# http://faculty.marshall.usc.edu/gareth-james/ISL/ISLR%20Seventh%20Printing.pdf
# good notes
# https://tdg5.github.io/stats-learning-notes/
library("MASS")
library("ISL... |
f933fe2e96c01b3a34d73b2a56810ce2277e9eb1 | 27293443697add73d8a01b40b54c265b956bf687 | /man/blblm-package.Rd | 7edcb1532ffaf78393b780af64b13f5c6ecf0e02 | [
"MIT"
] | permissive | guangze-yu/blblm | 01fea7249bc4fdb2a517ce9ef82f4fae0d43b4ac | 08f18507f69c98ae3f47b8dbc8d232230742c6a9 | refs/heads/master | 2022-10-15T23:24:09.988351 | 2020-06-11T12:32:50 | 2020-06-11T12:32:50 | 271,468,366 | 0 | 0 | null | 2020-06-11T06:23:28 | 2020-06-11T06:23:27 | null | UTF-8 | R | false | true | 350 | rd | blblm-package.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blblm.R
\docType{package}
\name{blblm-package}
\title{blblm: What the Package Does (Title Case)}
\description{
This package helps to train the linear regression model for dataset with the method of bootstraps.
}
\details{
Linear Regression wi... |
e78acf5837849f1713a53919b23ea2eaaf50f519 | 9d82f6cf8d99913a3d889c0e1033c26dfca06749 | /R/ptest-internal.R | 94116e6daac51ccc16cd21e1e079350509a4dcc2 | [] | no_license | cran/ptest | 9897e6234a036fee94747ac13fe312b9d476836d | 7e9599c577f9cd8486c1a8d5369f28d6d1905c96 | refs/heads/master | 2021-01-21T22:10:48.716762 | 2016-11-12T21:41:37 | 2016-11-12T21:41:37 | 73,577,492 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 117 | r | ptest-internal.R | .onAttach <- function(libname, pkgname) {
packageStartupMessage("Periodicity tests in short time series")
}
|
cd05c65600ecfa4f84b9b69f09aac2e4fad0d8b8 | a3c18cf1bf5e9a6ff679ccbd9feae5f4888e32c7 | /R/modifyPlot.R | 9e5fbadade3fd3f635d594e8ee6185e12d26cbd8 | [] | no_license | nthomasCUBE/KEGGexpressionmapper | bc1cbb40e80d8ef2dc33cc18450e2a70e335291d | 4a25d8a11ab78f54c7f1f19233f6e701d3eaf835 | refs/heads/master | 2020-07-16T20:15:27.558403 | 2018-05-07T20:34:10 | 2018-05-07T20:34:10 | 94,316,941 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,481 | r | modifyPlot.R | modifyPlot=function(id, df, gois, expr, cand){
options(stringsAsFactors=FALSE)
system(paste("wget http://www.kegg.jp/kegg/pathway/map/",id,".png",sep=""),ignore.stdout = TRUE, ignore.stderr = TRUE)
img=readPNG(paste(id,".png",sep=""))
nmb_genes=0; ovl=0
for(x in 1:dim(df)[1]){
... |
84cf7e3a50ce67055c516ebbfe70bdf56bcc0b18 | 37794cfdab196879e67c3826bae27d44dc86d7f7 | /Math/Matrix.Special.Vandermonde.R | d7f5dc9fb20143795f05167ec3f3c85cf4b5d271 | [] | no_license | discoleo/R | 0bbd53a54af392ef53a6e24af85cec4f21133d17 | e9db8008fb66fb4e6e17ff6f301babde0b2fc1ff | refs/heads/master | 2023-09-05T00:43:32.381031 | 2023-08-31T23:03:27 | 2023-08-31T23:03:27 | 213,750,865 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,762 | r | Matrix.Special.Vandermonde.R | ########################
###
### Leonard Mada
### [the one and only]
###
### Special Matrices
### Quasi-Vandermonde
###
### draft v.0.1b-sign
### Quasi-Vandermonde Matrix
# - same determinant as a Vandermonde matrix;
# - useful for Fraction Decomposition of polynomial fractions;
# TODO: proper sign;... |
d372e962a7031e0989e647e6a678bb4bc8a0217e | a873ce543ae4a83e2fdd5ab6670b4957d2203694 | /USP delete/Mello codes/hierarchical/hierarchical.r | 859d26bb4da3c8545c326ee918d5307e0ed98657 | [] | no_license | antonioMoreira/Machine-Learning | e576a5ee15ca3b68dafbe94ae2b838fe2de69d46 | 2f8a3befb93491377673d353105e3f711a4bb7ec | refs/heads/master | 2020-04-20T10:51:18.939090 | 2019-04-11T09:49:58 | 2019-04-11T09:49:58 | 168,800,416 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,223 | r | hierarchical.r |
hierarchical <- function(similarities, criterion) {
if (nrow(similarities) != ncol(similarities))
return ("Matrix must be squared.")
dendrogram = list()
partition = list()
for (i in 1:nrow(similarities)) partition[[i]] = c(i)
level = 0
dendrogram[[paste(level)]] = partition
while (length(partition) > 1) ... |
27aa331f57ddd26136dec4f2f3c8b355b7979970 | 5095bbe94f3af8dc3b14a331519cfee887f4c07e | /ClimateChange/mkProjection.R | 0a1f0faa3d4a0fc9d64fd0c226dbc1a57e34f598 | [] | no_license | sativa/apsim_development | efc2b584459b43c89e841abf93830db8d523b07a | a90ffef3b4ed8a7d0cce1c169c65364be6e93797 | refs/heads/master | 2020-12-24T06:53:59.364336 | 2008-09-17T05:31:07 | 2008-09-17T05:31:07 | 64,154,433 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,625 | r | mkProjection.R | #quantileChanges<-"Birchip.quantileTrendChange.csv"
#co2<-350
#nYears<-40
#meanChanges<-"Woomelang.change.csv"
#inMetFile<-"Woomelang.ppd.met"
#outBaselineFile<-"Woomelang.baseline.met"
#outScenarioFile<-"Woomelang.scenario.met"
library(seas)
source ("read.SILO.R")
c1 <- read.csv(quantileChanges)
c2 <- re... |
f18858bcf72eaf4e73b409fc93702278fccb1d33 | 6a1d8d8db74082f5166ac697e2f04eadc0cdf6df | /gdistance/doc/gdistance.R | 4558ddcab5caca384bb9effac91b9773eb78336a | [] | no_license | bwtian/rLibLin | b4ba89314d4dbf1a6bfee964bd77ee1ea4c212c2 | b1e9f15d6b5618472aecb652eb47e10db48ecc3b | refs/heads/master | 2021-01-22T13:38:10.439482 | 2015-05-04T01:40:36 | 2015-05-04T01:40:36 | 25,282,037 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,177 | r | gdistance.R | ### R code from vignette source 'gdistance.Rnw'
### Encoding: ISO8859-1
###################################################
### code chunk number 1: figure0
###################################################
library("gdistance")
rex <- raster(matrix(1,4,4))
a <- rep(c(1.3333),times=5)
b <- c(-1.3333, -0.66... |
a525dade290dad1fd13652eba6cfd5ed4a0cbb38 | 9d524b354021472c35c60689ba83eb1e97544253 | /Copia de Script_02JUL.R | aa6abdd28e6aa624d9561a5710674934a83fae21 | [] | no_license | fdezfari/R-programming | 0ca29767269e2f70ff1f01b1e841d40412d4756a | 5e2a96a1cad4857bba9979caa0b9faa5ad084cee | refs/heads/master | 2021-05-19T17:22:21.339682 | 2020-09-04T15:12:17 | 2020-09-04T15:12:17 | 252,043,316 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,072 | r | Copia de Script_02JUL.R | ##Library import
library(readr)
library(superheat)
library(ggplot2)
library(cluster)
library(tidyselect)
library(dplyr)
library(tibble)
##File import and preparation #if imported manually
DSS <- read_csv("MatchDS_21JUN.csv", stringsAsFactors=FALSE)
#DSS <- as.data.frame(DSS)
#row.names(DSS) <- DSS$Name
#DSS <- DSS[,... |
5f5408fa37045fa4392405e3cd0dcfba497eac9e | b8841bf56594f65fe13115b7f8318b97c9dddb1f | /ch_intro_to_data_oi_biostat/figures/incomeLifeExpectancyLog/incomeLifeExpectancyLog.R | 230677efca0d00c29b881ed781a5434a551b7f9f | [] | no_license | OI-Biostat/oi_biostat_text | 5cdab8191714beef6a67d61d1f69982e4d8c13aa | a333893cffe830b8ce1e31d9226a9a50906605e4 | refs/heads/master | 2023-05-28T12:33:51.243348 | 2022-11-30T20:59:44 | 2022-11-30T20:59:44 | 281,164,408 | 7 | 7 | null | 2022-11-30T21:02:43 | 2020-07-20T16:06:49 | TeX | UTF-8 | R | false | false | 502 | r | incomeLifeExpectancyLog.R | library(openintro)
library(oibiostat)
data("wdi.2011")
data(COL)
myPDF("incomeLifeExpectancyLog.pdf",
6,
3.3,
mar = c(3, 4.5, 0.5, 1.2),
mgp = c(2.8, 0.5, 0))
plot(log(wdi.2011$gdp.per.capita), log(wdi.2011$life.expect),
pch = 19,
cex = 1.3,
col = COL[1, 3],
ylab = "Life Exp... |
b9197e584ce6008da1e5ac4bda2b842d51b96cf6 | 62222419e16bc93a6db5eec771f527e67ff32e12 | /man/stamppNeisD.Rd | 5e2a0b84469ed738cf0860be9ffd366d3ce8c5ef | [] | no_license | UoA-eResearch/StAMPP | a02a0a750617bc1cc3a584c5eaa614dd0a3383ac | 4b991686e8ce3dcc7d417a543ea5307db456efc9 | refs/heads/master | 2020-04-22T18:42:52.128266 | 2019-02-13T21:55:33 | 2019-02-13T21:55:33 | 170,585,604 | 0 | 0 | null | 2019-02-13T21:55:45 | 2019-02-13T21:55:44 | null | UTF-8 | R | false | false | 1,203 | rd | stamppNeisD.Rd | \name{stamppNeisD}
\alias{stamppNeisD}
\title{
Genetic Distance Calculation
}
\description{
This function calculates Nei's genetic distance (Nei 1972) between populations or individuals.
}
\usage{
stamppNeisD(geno, pop = TRUE)
}
\arguments{
\item{geno}{
a data frame containing allele frequency data gener... |
c4d7965925cff4e974534383405b72fd30c465d2 | a88ff00d49b14c84059a6fa74af25ee4c531d9fe | /man/generateTKLY1.Rd | 7dab920a4b4ccc034cad9e747b814639128ceccf | [] | no_license | danielhorn/moobench | b4bcd7f7959f583fb6a9a895ce4c9e0af1a84d34 | dacf01a327c9d8cd2ffc5f6be261a2af9b95e4fe | refs/heads/master | 2016-09-06T11:18:22.257466 | 2015-11-19T11:46:40 | 2015-11-19T11:46:40 | 35,089,700 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 527 | rd | generateTKLY1.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/tkly1.R
\name{generateTKLY1}
\alias{TKLY1}
\alias{generateTKLY1}
\alias{tkly1}
\title{TKLY1 test function generator.}
\usage{
generateTKLY1(in.dim = 4L, out.dim = 2L)
}
\arguments{
\item{in.dim}{[\code{integer(1)}] \cr
Size of paramet... |
d5c66c1a4d9f6eba46240d3dc5f00dbf98086cd8 | 6029dcf3ddcd0a7dbfa0538daabb0585f15631e6 | /R/MPGE.R | 4ede1cea4656791f592e1f2a14e46789235fd75e | [] | no_license | cran/MPGE | 786ce4818133d9e46c9ec68bcc36d05af6ca084e | d4c2aa730662ff7e911cea7656973928472eea8e | refs/heads/master | 2023-01-04T02:44:25.646524 | 2020-10-23T14:40:07 | 2020-10-23T14:40:07 | 307,955,989 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,782 | r | MPGE.R | #' MPGE: an R package to implement a two-step approach to testing overall effect of
#' gene-environment interaction for multiple phenotypes.
#'
#'Interaction between a genetic variant (e.g., a SNP) and an environmental variable
#' (e.g., physical activity) can have a shared effect on multiple phenotypes
#' (e.g., LDL... |
682b1ebbab46d380acd5c74288c5e97ebffec037 | 9eb5e211b5d15faf3df138093b2c51398863ae8e | /man/LMSquareLossL2.Rd | 6a81463cb16a512f347575869ad7ea48905d715c | [] | no_license | SixianZhang/CS499-Coding-Project-2 | 6a0c6e88ff7ae3f4b6f7852aecf4c9cc68b41c43 | 01df22916f8f5b6a0846706ac515c4d4c8586745 | refs/heads/master | 2020-04-23T23:18:01.529419 | 2019-04-08T05:08:32 | 2019-04-08T05:08:32 | 171,531,724 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,373 | rd | LMSquareLossL2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LML2.R
\name{LMSquareLossL2}
\alias{LMSquareLossL2}
\title{Linear model L2 regularization with square loss}
\usage{
LMSquareLossL2(X.scaled.mat, y.vec, penalty, opt.thresh = 0.5,
initial.weight.vec, step.size = 0.01)
}
\arguments{
\item{X.s... |
53454f0b33666e8f35248d13a090a2e5c656ea12 | eda1bda3269f28391674cadc55d47db0f323e8e4 | /plot4.R | 1c71ac1f5da88bcccbc005d1ab06a3576e9c0a74 | [] | no_license | iel19/ExData_Plotting1 | c2237f62dd5e77015caa73a79751a1183bf854fb | 54e6bc5a64ffeee6d0d79edda961a9646ec3f246 | refs/heads/master | 2021-01-18T06:59:39.323807 | 2014-11-05T16:58:55 | 2014-11-05T16:58:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,330 | r | plot4.R | data <- read.csv("household_power_consumption.txt", sep=";", na.strings = "?")
partial <- subset(data, Date %in% c( "1/2/2007", "2/2/2007"))
partial $ datetime <- as.POSIXct(paste(partial $ Date, partial $ Time),
format = "%d/%m/%Y %H:%M:%S")
#
# We combine all previous graphs, using pa... |
282ffc1ffe40ea21399c716b3f59b365c3571c14 | 3f17ed44ae94cc7570aecd38fe075626e5df84ff | /app2020/LakeAssessmentApp_v2/buildAppModules/buildStationTable_Chl_a_ResultsNew.R | 144a534da2427f89ca59cb974ecedfd5718ed2e5 | [] | no_license | EmmaVJones/LakesAssessment2020 | 24c57a343ec7df5b18eada630cc2e11e01c8c83c | 72f4b6e9721c947e8b7348c9d06e3baf8f2da715 | refs/heads/master | 2020-05-18T02:41:57.259296 | 2019-06-20T13:38:55 | 2019-06-20T13:38:55 | 184,124,597 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,112 | r | buildStationTable_Chl_a_ResultsNew.R | lake_filter <- filter(lakeStations, SIGLAKENAME == 'Leesville Reservoir')#'Lake Moomaw')# 'Claytor Lake')
conventionals_Lake <- filter(conventionals, FDT_STA_ID %in% unique(lake_filter$FDT_STA_ID)) %>%
left_join(dplyr::select(lakeStations, FDT_STA_ID, SEC, CLASS, SPSTDS,PWS, ID305B_1, ID305B_2, ID305B_3,
... |
1775f6f839a4b5a094865d5e9ecfac787f1e140b | cf92b98143f6b7ce18abf0789e706cb56167f41b | /man/bcdc_check_geom_size.Rd | 405d5532d8b1da502f341a9cf20fd59302675a14 | [
"Apache-2.0"
] | permissive | bcgov/bcdata | 508aa845f14ebd6cb55cb57869b0f0ff9f84a87c | 8a9aeda79dc8f3c608b77296b12cf24c098f9673 | refs/heads/main | 2023-07-06T02:55:38.654594 | 2023-07-01T04:54:05 | 2023-07-01T04:54:05 | 162,173,874 | 74 | 15 | Apache-2.0 | 2023-07-01T04:54:07 | 2018-12-17T18:33:41 | R | UTF-8 | R | false | true | 1,456 | rd | bcdc_check_geom_size.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cql-geom-predicates.R
\name{bcdc_check_geom_size}
\alias{bcdc_check_geom_size}
\title{Check spatial objects for WFS spatial operations}
\usage{
bcdc_check_geom_size(x)
}
\arguments{
\item{x}{object of class sf, sfc or sfg}
}
\value{
invisibly... |
f303d78aaf47902ee811ac24e98e1f170a4cada4 | 6e1d9a0e305dee59d9eed10df14ee1e417d2ed85 | /R/toolbox.R | 4e8664fca0a712fdd9f3696f881523a111347096 | [] | no_license | pvermees/ArArRedux | 395a575188e078bb8ac3d506bff380be3d9d542b | 9d8c84244c769a40642b43ef777789dd333c7f12 | refs/heads/master | 2023-08-20T18:02:32.793378 | 2018-10-03T17:00:00 | 2018-10-03T17:00:00 | 61,240,004 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 12,163 | r | toolbox.R | theday <- function(thedate){
dateinseconds <- as.POSIXlt(thedate,origin="1970-01-01 00:00:00")
dateindays <- (1900+dateinseconds$year-1970)*365 + dateinseconds$yday
dayinseconds <- dateindays*24*3600
return(dayinseconds)
}
mergematrices <- function(xcovmat,ycovmat){
if (is.null(xcovmat)) return(yco... |
d9f83bd2ab80ba08b15b363417ba518f8a6c93ef | cf8e1e41c8e96b3abf9f303ec370a80086458c5a | /man/make_figure_3a.Rd | 1ffb8dd2f92df7925995acb54ac84f2c4c909efa | [
"MIT"
] | permissive | timcdlucas/ringbp | 57cb2905a9cc17e6077fed590f899fa94b738864 | 1097485287b4eee06794d01331b4786eac246d98 | refs/heads/master | 2023-03-25T20:13:05.029785 | 2020-11-09T09:30:03 | 2020-11-09T09:30:03 | 254,608,812 | 2 | 1 | NOASSERTION | 2020-05-18T16:50:19 | 2020-04-10T10:36:38 | R | UTF-8 | R | false | true | 676 | rd | make_figure_3a.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/figures2to4.R
\name{make_figure_3a}
\alias{make_figure_3a}
\title{Construct Figure 3a from manuscript}
\usage{
make_figure_3a(
df = NULL,
num.initial.cases_val = 5,
delay_val = "SARS",
prop.asym_val = 0.4
)
}
\arguments{
\item{df}{A d... |
ec9b2987391b0f508094109c1377cb1c0d1ec42e | dd9ec6b951f8db9e163f7183c247c5b9ac4f5569 | /LOGISTIC_ORDINAL.R | 0d46e56f9724b106aaef7ec6f1b68db58cba6d08 | [] | no_license | sunnysingh30/R-Learning-Projects | b7bc0cdf94af8e02c47cf0a5676470132b3cbead | e6004b04b209cdc3c1523008be92d35e8ec2883f | refs/heads/master | 2021-01-10T03:10:43.028198 | 2016-02-14T09:10:26 | 2016-02-14T09:10:26 | 51,687,864 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,740 | r | LOGISTIC_ORDINAL.R | # Ordinary Logistic Regression
Case 2 (Ordinal Regression)
A study looks at factors which influence the decision of whether to apply to graduate
school. College juniors are asked if they are unlikely, somewhat likely, or very likely
to apply to graduate school. Hence, our outcome variable has three categories i.e.
u... |
6da0af771c25d07c5d6cf7fea9b5143db7363982 | 2bd6ae8c95456af6ee45a0f1dac2ce9dfdf37b83 | /R/POT.R | a7f158c39def41806acc8f78929be0ecfdc785f2 | [] | no_license | paulnorthrop/lax | 036bd5327d08a7ba0589dd119615256cf256414f | 09a41455481c44b96c33c961249dbcf700a317d7 | refs/heads/master | 2022-11-16T21:18:24.890008 | 2022-11-08T11:19:20 | 2022-11-08T11:19:20 | 200,470,886 | 3 | 1 | null | 2019-10-07T16:32:28 | 2019-08-04T08:56:22 | R | UTF-8 | R | false | false | 2,013 | r | POT.R | # =================================== POT =================================== #
#' Loglikelihood adjustment for POT fits
#'
#' S3 \code{alogLik} method to perform loglikelihood adjustment for fitted
#' extreme value model objects returned from
#' \code{\link[POT]{fitGPD}} function in the POT package.
#' The model must... |
39b34eb0292e4b6ad0530304b2a73f593dd8b196 | 61896543387fbfd3b3ebbda5ea0c9e04e61c875a | /scripts/tut10.R | 6f1a41f7ed5d4d005abf98a50b682a2923198cf3 | [] | no_license | michellehoog/Numbers | 82ff1f95e9f0c030d859059d974737fc5e3ec354 | 80d7a3c8670b3f1dece731e9219067b09bb399be | refs/heads/master | 2021-09-15T10:35:50.298433 | 2018-05-30T19:49:21 | 2018-05-30T19:49:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,879 | r | tut10.R | # Numbers, Hypotheses & Conclusions
# Tut 10: Regression
#Author: Lance Lachenicht
#R: Michelle Hoogenhout
#install pacman package if not yet installed
if(!require(pacman)){install.packages("pacman")}
#load packages
library(pacman)
p_load(dplyr, tidyr, ggplot2, cowplot, psych, magrittr)
#create random data
set.see... |
fbc50a4c8e22aaac1f39016531178186660e7347 | 8e96ff3f9d4f3d274fa4908471456e277ee80618 | /analysis/ramldb/code/StepX_hindcast_rmax.R | 6cc5f9f2b901fc0647ef8bd2a110471e0d965c24 | [] | no_license | cfree14/sst_recruitment | 1e96d7e9718a93949f17ed0773d0e2702f4dcc4d | 134104d76152f1869209e0eb883036274da156a1 | refs/heads/master | 2020-04-14T08:45:49.817785 | 2019-01-12T00:15:25 | 2019-01-12T00:15:25 | 163,742,595 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,202 | r | StepX_hindcast_rmax.R |
# Setup
################################################################################
# Clear workspace
rm(list = ls())
# Packages
library(plyr)
library(dplyr)
library(reshape2)
# Directories
codedir <- "code"
ramdir <- "data/ramldb/data"
outputdir <- "analysis/ramldb/output"
tabledir <- "analysis/ramldb/tables... |
bff655f1dc19a52360750bec5d44b2acb8d54c0c | e038c00d4966d4b2598d78c286bff1fba62f7a54 | /plot2.R | 57d31a129ebea816e337ec8229eef1e62cb035f3 | [] | no_license | ferneau/ExData_Plotting1 | ecb0385c631769e69ce05b464cc2f0aa21018b8a | fc59f6d3ff8ceeacd872f85d6fec58e928c1f9ed | refs/heads/master | 2021-01-17T09:03:54.028634 | 2017-03-06T02:57:15 | 2017-03-06T02:57:15 | 83,976,170 | 0 | 0 | null | 2017-03-05T14:27:51 | 2017-03-05T14:27:51 | null | UTF-8 | R | false | false | 469 | r | plot2.R | source("load_and_prepare_data.R")
mydata <- load_powerdata()
#
# Create the plot without X tic marks
plot( mydata$Global_active_power, type = "l",
ylab = "Global Active Power (kilowatts)",
xlab = "",
xaxt = "n")
#
# Create the range for X tic marks based on 1440 min/day
at <- seq(from=0,to=2880,by... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.