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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ae94990b07de39a247481095951213b41c1ccd1 | d556d8044376ffd8bf959b42f02f696d28b40b8d | /regressao_linear.R | 428bc020da0996089ac6dad5694dfaee22323f82 | [] | no_license | cassioancn/Regress-o-Linear-Simples | 8705fd8483d1d6b40b4c5824f706b3ac8b068f38 | ff55a4b099479921d82f974386024f27b16528f3 | refs/heads/main | 2023-03-12T16:49:30.919820 | 2021-03-08T04:26:19 | 2021-03-08T04:26:19 | 345,529,355 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 2,654 | r | regressao_linear.R | library(readxl)
dados <- read_excel("~/1UNISINOS/ALURA/RSTUDIO/Regressão Linear/regressaolinear_r-master/dados.xlsx")
View(dados)
#Plotar os gráficos de dispersão
plot(dados$area, dados$preco, main = "Diagrama de Dispersão", xlab = "Área", ylab = "Preço", pch = 19, col = "blue")
cor(dados$area, dados$preco)
cor... |
629314643eb48983984502fa6de8d932e788d113 | b482c98ff5065b055887827fb8dc86e3055c6438 | /man/trawl_DExp.Rd | 2f712f91a91aa8b1d25e5868dd413cbda765d8c9 | [] | no_license | cran/trawl | bdb7d749804b73f5170d348e0614aff4d3d253fd | 4013b1fa141f3ae3c0c13447488e45125a675b9c | refs/heads/master | 2021-06-15T02:31:33.763015 | 2021-02-22T16:30:02 | 2021-02-22T16:30:02 | 145,911,822 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 883 | rd | trawl_DExp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SimulateTrawl.R
\name{trawl_DExp}
\alias{trawl_DExp}
\title{Evaluates the double exponential trawl function}
\usage{
trawl_DExp(x, w, lambda1, lambda2)
}
\arguments{
\item{x}{the argument at which the double exponential trawl function will be... |
add1585f37917f937885e9d252d9ebe4c9335fb3 | 68c51b6b053872846d5e2bd273f3b172b0c1bbf7 | /Various Regression Techniques/OrdinalRegression.R | 7925c4c755cfa2f57ccfcf2990889181855c8373 | [] | no_license | akshatshah14/Machine-Learning | 62f158eafc20ce91668e225fe49d503773d9ed5c | fb4048a77f3ba15df91af5ae1d8c3d8e1bd5c0aa | refs/heads/master | 2021-07-10T16:58:55.787972 | 2017-10-09T05:54:02 | 2017-10-09T05:54:02 | 106,143,613 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,973 | r | OrdinalRegression.R | birthweight = read.csv("C:\\Users\\Akshat\\Dropbox\\Spring 2017- ML for Data Science\\Datasets\\lowbwt.csv");
colnames(birthweight)
birthweight$WT = 0
birthweight[birthweight$BWT >0 & birthweight$BWT <2500,]$WT = 4
birthweight[birthweight$BWT >=2500 & birthweight$BWT <3000,]$WT = 3
birthweight[birthweight$BWT >=3000 &... |
90bca9ff7672d771a14b0b0c190c706dd28e405c | 1f6e9cc31324632eb8bfe1a1ef066369e48eb839 | /run_analysis.R | 550503ca63965affcdb1556cd823a18dd757b542 | [] | no_license | grejpfrut/Getting-and-Cleaning-Data-Course-Project | 54213f216fa0e0cbb5d2c9f86e2e49c1af377af8 | 2990ba1d5605ffded0f012ab7e55d50d146f0e4e | refs/heads/master | 2020-03-27T06:43:48.492508 | 2018-08-25T21:55:44 | 2018-08-25T21:55:44 | 146,130,597 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,101 | r | run_analysis.R | run_analysis.R <-
##SUBJECT
subject_test <- read.table("test/subject_test.txt", sep = ",")
subject_train <- read.table("train/subject_train.txt", sep = ",")
subject <- rbind(subject_test,subject_train)
colnames(subject) <- c("subject")
## Y-test
y_test <- read.table("test/y_test.txt", sep = ",")
y_train <- rea... |
ba1091de78f8a317754085b408014b78d05f811c | 711e4cc88c3d4302a5e8cb87a74bdfea187647c1 | /R/little_helpers.R | fe85baf1d799a417e14d455a13650cc7fb59e9d9 | [] | no_license | sib-swiss/dsSwissKnife | 43dc22d6f19ea7f0162e2bdcb1ee19018e8c874d | b52dc57ccbc4ebaa58274d1736df3276dc5ca3df | refs/heads/master | 2023-06-27T10:36:55.336669 | 2023-06-14T13:24:55 | 2023-06-14T13:24:55 | 311,978,958 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 9,053 | r | little_helpers.R | #' @title Initialize the environment
#' @description Set a number of defaults for some of the functions.
#' These are:
#'
#' 1) hidden.fields - fields that must show no information (patient identifiers for instance)
#'
#' 2) allowed.functions - supplementary functions allowed in dssDeriveColumn (see the documentation... |
6fad7247553ce5cf64ad5e4e74fc8e84c6a77cb4 | fef507ac41bb7749840e7f5141ba87fde26d6f95 | /code/spython/tangram_libd/code/03_nn_run/09_manual_figure.R | 4a59418c545e5514b86479f306b0f8f293ebc2e9 | [] | no_license | LieberInstitute/spatialDLPFC | 84bc2f0b694473182d315b4d39ab3d18c2dd3536 | 840700ae86cdd414e024d9658b09dd11712ef470 | refs/heads/main | 2023-08-04T03:37:18.425698 | 2023-07-25T18:27:36 | 2023-07-25T18:27:36 | 314,001,778 | 6 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,304 | r | 09_manual_figure.R | # The "main tangram deconvolution figure" (Fig 4a from the paper) is hard to
# generate outside of squidpy, and requires cell centroid info, which doesn't
# seem critically important to the value of the figure. Here I explore if we
# can generate a similar figure that only requires cell counts per spot.
librar... |
c94465345fbe4d857ee135e4a23bf5d1e3161268 | f643705ec1baf66a44a237c1cb144ed47c498445 | /tests/testthat/test_base_convertMLBenchObjToTask.R | 3e057ae1a107005540b0b635f55ce29019cbd05e | [] | no_license | HeidiSeibold/mlr | 8046328a572604260d6b68add3e10b34ea8961f8 | 3b24e632b1cfa326147eae7abb0775e09ac26b93 | refs/heads/master | 2020-06-11T19:39:31.204273 | 2016-12-02T22:03:30 | 2016-12-02T22:03:30 | 75,626,955 | 1 | 0 | null | 2016-12-05T13:24:50 | 2016-12-05T13:24:50 | null | UTF-8 | R | false | false | 830 | r | test_base_convertMLBenchObjToTask.R | context("convertMLBenchObjToTask")
test_that("convertMLbenchObjToTask", {
requirePackages("!mlbench")
# get all mlbench.* functions, 1spiral does not work
fs = ls("package:mlbench", pattern = "mlbench")
n = 77L
for (f in setdiff(fs, c("mlbench.1spiral"))) {
task = convertMLBenchObjToTask(f, n = n)
ex... |
13df9c43ae6ac8ea486a760c547f29039accadb7 | b5bee2eb1150fa5e8e60fa7a259cc2e8aaefb0ef | /man/loadLibraryGloballyAs.Rd | 2d4dc621fa59c492d203a0a1a7032f5fe28c29d9 | [
"Apache-2.0"
] | permissive | SimonSchafferer/short-ncrna-annotation | f5f71e44d9f0ba34ab583c0fdae1a4b5a45e9c34 | 0c69f1b01198ba9a065c0becf5739c1281f6f584 | refs/heads/master | 2021-05-16T02:04:29.189010 | 2015-02-10T14:00:47 | 2015-02-10T14:00:47 | 20,757,069 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 507 | rd | loadLibraryGloballyAs.Rd | % Generated by roxygen2 (4.0.1.99): do not edit by hand
\docType{methods}
\name{loadLibraryGloballyAs}
\alias{loadLibraryGloballyAs}
\title{'Loads an R object by a given name into the globalEnvironment}
\usage{
loadLibraryGloballyAs(name, filename)
}
\arguments{
\item{name}{Object name one wants to define}
\item{filen... |
7ef989db6bf225fd2937b5b9c0d893d00c2fd9bb | d410fdbad98532e294e51da43fbf798cbc04ebc5 | /NaiveBayes/NaiveBayes.R | 2bf1cb076c0940d7d587bf5e1600a58e839953e7 | [] | no_license | muneerulhudha/Machine-Learning-Assignments | b5662745055a42c0fffb9b9fea45019b983657be | 829e1cf2bf58e034f599a8a065fac95718d08859 | refs/heads/master | 2021-01-10T06:53:56.362437 | 2016-01-25T19:30:54 | 2016-01-25T19:30:54 | 50,374,518 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 730 | r | NaiveBayes.R | library(caret)
library(e1071)
dataset <- read.table(file = "https://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.data", header = FALSE, sep = ",")
nb <- function(){
accuracy <- 0
primaPart <- createDataPartition(dataset$V9, p = .9,list = FALSE,times = 1)
train... |
82471ea70ba0945fb98dd6da0abb02a88906a947 | 6ec9b39141936db1b7ad61c20465e6ff5c3988bb | /Data Mining/fold Cross Validation/cmatrixInfo.r | f78290126189d8408904809ffa5d6632c0bc7589 | [] | no_license | Kalovelo/ihu-survival-lecture-notes | 4806daafc9aea246be3d760ab66bb2b0f43cf59e | 837dd9fe4395a9240e58feb16eb46aaf953f1a04 | refs/heads/master | 2021-05-22T14:44:36.418659 | 2020-09-07T12:39:11 | 2020-09-07T12:39:11 | 252,968,079 | 5 | 2 | null | null | null | null | UTF-8 | R | false | false | 886 | r | cmatrixInfo.r |
#correct predictions
accuracy <- function(tp,tn,fp,fn) {
correct <- tn+tp
all<- tp+fp+tn+fn
return (correct/all)
}
#correct event predictions
precision <- function(tp,fp) {
predictions<- tp+fp
return(tp/predictions)
}
#event predictions against events
recall<- function(tp,fn) {
events<-tp+fn
return(tp/... |
64650a9d5bbe783d6f0937954f15d264294161a7 | cafc5841d654b41cac6d462b95c28ab16bee8a43 | /BART_iter.R | 91f42548debc41dd9511de0623b28acf2e996257 | [
"MIT"
] | permissive | xylimeng/OIS | 4caefb253f4c84f599d878653049d39c0f7d7b86 | 29164546c1a552ddd4eba9f8fe67b40f359ae3d4 | refs/heads/main | 2023-07-16T18:41:43.962066 | 2021-09-02T15:46:40 | 2021-09-02T15:46:40 | 376,896,853 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,712 | r | BART_iter.R | BART_iter <- function(X, y, head, dimen,
X_selected = NULL,
head_selected = NULL,
dimen_selected = NULL,
num_trees = 20,
num_burn_in = 10000,
num_iterations_after_burn_in = 5000,
... |
6722cae7a3104ef364dc83d677e00426ff115435 | 7f186fa9c8dd406f6d9666b9ff65319fc377412b | /man/flowdata.Rd | 1d7ba5bb15435da12a0dc1f9801a02c484122b6e | [] | no_license | garciadejalon/FlowRegEnvCost | 5419a0f0a94555a065aec2d3a3e977fbb01a70ce | 998ea71b15123c2eaa83816bb560680c82775365 | refs/heads/master | 2021-01-23T16:26:11.101896 | 2017-11-29T16:11:25 | 2017-11-29T16:11:25 | 102,742,161 | 2 | 0 | null | 2017-11-29T16:11:27 | 2017-09-07T13:45:32 | R | UTF-8 | R | false | true | 693 | rd | flowdata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{flowdata}
\alias{flowdata}
\title{River water flow data.}
\format{An example data frame with 17166 rows and 2 variables:
\describe{
\item{Date}{Date (dd/mm/yyyy)}
\item{Flow}{Water flow, in m^{3}/s}
}}
\source{
Sou... |
3635bff44a4e3fe5c33fc498de3c1d333b62e711 | 42abe0fef0d12287d170fd2445864f9fb9aec74b | /man/neuprint_common_connectivity.Rd | fda6db905d6496f77793f06f5c2c869b372e0632 | [] | no_license | natverse/neuprintr | 45bf13ea5f351c7088ad0e9de36a737342e070f3 | 1bf392fb896710d64e1b03cdddb38ea05a54f5d1 | refs/heads/master | 2023-08-26T15:19:05.332544 | 2023-08-16T03:32:48 | 2023-08-16T03:32:48 | 176,496,271 | 3 | 2 | null | 2023-09-07T19:59:04 | 2019-03-19T11:22:52 | R | UTF-8 | R | false | true | 2,002 | rd | neuprint_common_connectivity.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/connectivity.R
\name{neuprint_common_connectivity}
\alias{neuprint_common_connectivity}
\title{Get the common synaptic partners for a set of neurons}
\usage{
neuprint_common_connectivity(
bodyids,
statuses = NULL,
prepost = c("PRE", "PO... |
5eaa5918324aff63c9434840a2eac652e3c09038 | 8b2f41a3710354f0778a84680eb6c72eed060312 | /External Election Data.R | 01b8bf05cbca4239ff7eb68aebd15d425316762d | [] | no_license | paviellehaines/citunited | 5714431eac4f550a75142d07397603ae2c358a55 | 6adb07abfdeacd42faf1cb5079864ad6ea0c49ee | refs/heads/master | 2021-05-08T21:14:31.350201 | 2018-01-31T04:24:22 | 2018-01-31T04:24:22 | 119,633,082 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 28,892 | r | External Election Data.R | # READ IN AND CLEAN DATA --------------------------------------------------
library(foreign)
library(data.table)
library(dplyr)
library(plyr)
library(tidyr)
elections1 <- read.dta("34297-0001-Data.dta")
elections2 <- read.csv("SLERs2011to2012_only_2013_05_14.csv")
col14 <- read.csv("2014GeneralPrecinctResults.csv")
... |
dbf5ba52ce15322fef75d1cdb5edd7433059162d | 7cde1a2f5bf3161b5aab0bae82f57c7d8bfed631 | /run_analysis.R | 2c18b4af97c899095dac04d9e072cb49d09a9378 | [] | no_license | davarix/Coursera-Getting-and-Cleaning-Data-Course-Project | 50c1262220ca863185e59bb36c06432200ef090a | f12431b08c140586255b9eb5353860d808133c4a | refs/heads/master | 2021-01-11T11:30:45.282467 | 2017-01-26T12:47:56 | 2017-01-26T12:47:56 | 80,111,535 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,750 | r | run_analysis.R | rm(list = ls())
# Load all necessary packages
library(dplyr)
# Check whether the data is present in the current work directory
data.dir.name <- "UCI HAR Dataset"
files <- list.files()
if (data.dir.name %in% files == TRUE) {
files.path <- list.files(pattern = ".txt$", recursive = TRUE)
fns <- file.pa... |
49dec84cbca1f61f0e5f03447cacaf84feec54eb | 6d821c8a242005f093001cb50ffda26d98efc392 | /R/choosethres.R | c3b99a49cd9207ce4b63332b172eee83982dee54 | [] | no_license | cran/extremeIndex | 961453a27a2cb87134123df160f33f9921bcda20 | b2034ed3a729f86ae74dabceb16e3debbcfbb9d2 | refs/heads/master | 2021-11-30T22:58:05.392388 | 2021-11-24T14:30:02 | 2021-11-24T14:30:02 | 213,374,552 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,905 | r | choosethres.R | #' Function for heuristically choosing the domain where extreme value theory can be applied
#'
#' @param data a numeric vector containing the observation used for verification
#' @param thresh vector of thresholds to try
#' @param guess starting values for GPD's sigma and xi (0<xi<1)
#' @param plots which paramete... |
a2524df1dcfdf55c9b1a7c2323b854e4118ea6c2 | b5822b9c2a756f4e540c426e7e84af35dae8caec | /rockchalk/inst/examples/centeredRegression.R | a3d92f0a19202d17fdb28e0b7b164419bb4266b6 | [] | no_license | pauljohn32/rockchalk | 0c75b7a7bc142669efcfabbc70d511f60c3f47e0 | fc2d3d04396bf89ef020e824f50db3c348e3e226 | refs/heads/master | 2022-08-20T02:49:56.898990 | 2022-07-26T01:20:12 | 2022-07-26T01:20:12 | 8,965,635 | 8 | 5 | null | 2022-07-18T00:36:58 | 2013-03-23T04:07:35 | R | UTF-8 | R | false | false | 13,182 | r | centeredRegression.R | ## Paul Johnson
## pauljohn@ku.edu 2012-03-09
##
## This is an R program that uses some functions in the newly revised
## rockchalk package to demonstrate my point that "centered variables"
## don't really make a difference in regressions with interaction.
##
## Centering does not help with multicollinearity, but I mea... |
5a4328fc439a8cf9efa53cbd8d953b4bf0178d72 | 92e5a14420bbae0b17db12e284710b2814c6de6f | /R/20201109/data_preparation_for_analysis.R | abc3d085db0d36cff52c3d5750b564498aa1b5ab | [] | no_license | jaspershen/chuchu | 25e96e8026c0f56d7b69174d1c55f9d4c60cb8c3 | e74fdd06e561ae807e81efbb52e7afa376cbba0a | refs/heads/master | 2023-01-30T00:17:55.029860 | 2020-12-09T00:46:36 | 2020-12-09T00:46:36 | 283,093,351 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,821 | r | data_preparation_for_analysis.R | sxtTools::setwd_project()
rm(list = ls())
source("R/tools.R")
# load data
load("data/lipid20200727/lipidsearch_result/lipid_table")
is_table_pos <-
readr::read_csv("data/lipid20200727/internal_standard_table/is_table_pos.csv")
is_table_neg <-
readr::read_csv("data/lipid20200727/internal_standard_table/is_table... |
f464e9c174a236f7724e78b093e5d629ef2f68a1 | 9ee9e9842dd26cb37d1ac23de196745dc5d42ad4 | /PracticeRHadoop.R | bbda4a25c5fd617035d7ffd3bad4580454491832 | [] | no_license | raviranjan-innoplexus/R-Hadoop-Integration | 46a1be9a23ed6fe1b94585b0935fa50ace969c20 | d8ed84570bb9b54c2e42adbed44c61473cc10a18 | refs/heads/master | 2021-01-20T20:52:11.546221 | 2016-06-23T07:05:32 | 2016-06-23T07:05:32 | 61,781,549 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,824 | r | PracticeRHadoop.R | Sys.setenv(HADOOP_CMD="/home/hadoopuser/hadoop/bin/hadoop")
Sys.setenv("HADOOP_STREAMING"="~/hadoop/share/doc/hadoop/hadoop-mapreduce/hadoop-streaming-2.6.0.jar")
library(rJava)
library(rhdfs)
hdfs.init()
gd = hdfs.file("/user/hadoopuser/Rate_PUF.csv","r")
fd = hdfs.read(gd)
chardata = rawToChar(fd)
library(rmr2)
data ... |
3b3b7f09866d1f87dba83209752b8378bd909875 | 32901a09be158774089cbf8960d042e23764ad8d | /man/sgpca.Rd | 123b85d4457a0a3bcf49a7e2f50b989457ba9e80 | [] | no_license | cran/sGPCA | 470a4ef4651cde5d8a99ff01e0935468fe9e1f97 | f095235014f6f11cdac7ad31e03127df2f6a31c1 | refs/heads/master | 2021-01-19T16:56:35.076446 | 2012-07-05T00:00:00 | 2012-07-05T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,770 | rd | sgpca.Rd | \name{sgpca}
\alias{sgpca}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Sparse Generalized Principal Component Analysis
}
\description{
Computes the rank \code{K} sparse, sparse
non-negative, two-way sparse, and two-way sparse non-negative GPCA
solutions.
}
\usage{
sgpca(X, Q, R, K = 1, lamu... |
dbb6930058401389fa780b187297e3b08479e5d8 | 56a3fc1ea8c5308031d6622e0969ad8fe2e85305 | /AlignementScoreComparison/AlignmentScoreComparison_1stPass/100Kreads_AScompare.R | d183572a31ada3ed649aac1453f944296de7b305 | [] | no_license | shellywanamaker/C_virginica | fd9b5d6a53e29ecc6c2a6bd0b45ed0e929d561d6 | 666f010186d73dab7412356d95d61ae19aae4b25 | refs/heads/master | 2023-01-03T22:41:05.521829 | 2019-07-23T23:09:51 | 2019-07-23T23:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,989 | r | 100Kreads_AScompare.R | #another place for install tips: (https://github.com/al2na/methylKit/blob/master/README.md)
#steven's solution for proper install: (https://sr320.github.io/MethylKittens/)
#from command line, change the permissions on R library folders to make them writable
#sudo chmod -R 777 /Users/Shelly/Library/R/
#sudo chmod -R 77... |
2498f9aea967f08d0a5db8db309265a56f1326e7 | 7889f55c00a87518344f2e86c6f4828618a37505 | /man/examplemetaheur.Rd | 5a62ef48c2e0a7ed3f878fd537a5b9859e1563f7 | [] | no_license | mvattulainen/preprocomb | b034947015200511d96c1184443b8d1135444617 | 3898d40541632c4097028cbe7a79cf5ee3e74f91 | refs/heads/master | 2021-01-18T22:50:20.107393 | 2016-11-09T10:08:44 | 2016-11-09T10:08:44 | 42,282,758 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 366 | rd | examplemetaheur.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/00Utils.R
\docType{data}
\name{examplemetaheur}
\alias{examplemetaheur}
\title{metaheur example}
\format{A MetaheurClass object}
\usage{
examplemetaheur
}
\description{
examplemetaheur <- metaheur(examplegrid, model="svmRadial", iterations = ... |
cbbd0d95fa5a630fbf434d9186cb9da3a0ced444 | 088cfbc6e9b5bff3ab028adbf137be835d7687e5 | /Life_expectancy_chang_M.R | b1bbbcfb3b6847c0531f6aff1eed744ce0a5e3f9 | [] | no_license | facarranza/shareR | a7cf84eda859d226857fce07c7e2df442b42b368 | e641a79b939df5bc3b8e2d80cb2f7748acb595fe | refs/heads/master | 2020-10-02T03:42:05.904714 | 2020-04-17T20:22:07 | 2020-04-17T20:22:07 | 227,693,229 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,573 | r | Life_expectancy_chang_M.R | "
***************************************************************************
life_expectancy_chang_M.R
---------------------
Date : December 2019
Copyright : (C) 2019 by Felipe Carranza
Email : fcarranza@protonmail.com
**********************************************************... |
d22162d0699a632310cfc017bb19c9d2625d4f1c | 47d321f1c911444704812e2c7aa403553163fe2f | /scripts/genSimData.R | 2f23d9377ffedf5bfd80d163bec1598eccc71864 | [] | no_license | jaredpark/cleanNLF | e57502fe5f15d6676f64fdb7a0c50266d4351f95 | f7e129fa9f1a16215d69a99b756cf48db17333b7 | refs/heads/master | 2020-03-30T21:32:32.212472 | 2013-07-09T23:52:35 | 2013-07-09T23:52:35 | 11,297,064 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,044 | r | genSimData.R | gameInfoDate = 'sim'
mmDate = 'sim'
nTargetRows = 1600
nGamesPerWeek = 14
firstWeek = 5
lastWeek = 16
nSeas = round(nTargetRows/(nGamesPerWeek*(lastWeek - firstWeek + 1)), 0)
weeks = firstWeek:lastWeek
gameWeeks = rep(weeks, rep(nGamesPerWeek, length(weeks)))
weekColumn = rep(gameWeeks, nSeas)
seasColumn = rep((2007-n... |
0664d4dec0ef58cf8108d8f33a0621fd38cfc3e9 | f9a9f9e260498c0ff96809dee0fb9697c75b064e | /time_series_blog_1/timeseries/timeseries2.R | 0bbb4a6ade70e6e7f7a6fec9911e077162609238 | [] | 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,454 | r | timeseries2.R | # Federal Reserve Economic Data - from Quandl FRED/A791RX0Q048SBEA Retailer Sales FRED/RETAILSMSA
# Data ranges from Jan 1992 to Sep 2017
# Using the Quandl package to aquire a dataset from the Federal Reserve Economic Data
library(forecast)
library(Quandl)
feddata <- Quandl("FRED/RETAILSMSA", type="ts")
print("Rplot9... |
bc7b52919706deb4a93a0aa4a7661937f1b82bef | ac15e81168f92c4bd7190703434d7a076fa5c6dc | /plot3.R | 9f17332173f136c747ceec3ea427389a0e6b2a16 | [] | no_license | suswaram/ExData_Plotting2 | a7caaaf19a4ea0e3fc147b762470fd30121e2fe3 | e3740609178e3517f7f7ce0a0d2b2231d12892bb | refs/heads/master | 2016-09-06T14:21:27.025211 | 2014-05-12T21:52:24 | 2014-05-12T21:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,081 | r | plot3.R | #install plyr package if not installed
library(plyr)
#install ggplot2 package if not already installed
#install.packages("ggplot2")
library(ggplot2)
source("loadData.R")
# Task3 Of the four types of sources indicated by the type (point,
# nonpoint, onroad, nonroad) variable, which of these four sources
# have seen... |
7335a55c4164bd9439615e2986155a26b0627373 | a1bb4782472b046285e29132ea8faee76cecc6f8 | /R/ch2.R | d9ffe8b005baf54cc8528f9655c82767336ec828 | [] | no_license | cran/orth | bb155ab9fc0e26274f3c5925b71e0c4090b378df | cc72f36de41107427c5445a9700608bb40cf5e6c | refs/heads/master | 2021-01-17T05:56:39.888184 | 2011-01-25T00:00:00 | 2011-01-25T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 52 | r | ch2.R | `ch2` <-
function(n)
{
return(n*(n-1)/2)
}
|
342606e277a68aa904fd54aeb71889bb32dced25 | f56d31e470b05737626c1c379b8277c66bfb078b | /R/coin_datacheck.R | 7a87e710c1aeba5bd0b83595d79bd74fe7c3525a | [
"MIT"
] | permissive | Lucas-OlivCouto/COINr | 81a242d6b0910b6d9286234b390cda4693a5263f | bda637b7fa25f1b09de730248b1eb263f0214ea0 | refs/heads/master | 2023-08-12T07:48:08.190793 | 2021-10-11T14:13:40 | 2021-10-11T14:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,490 | r | coin_datacheck.R | #' Detailed unit data check and screener by data availability
#'
#' Gives detailed tables of data availability, and optionally screens units based on a data
#' availability threshold and presence of zeros. Units can be optionally "forced" to be included or excluded, making
#' exceptions for the data availability thresh... |
bbeb4881dd67593b1e4532e3ebb8ba1be902447e | ba9dc103b4a474fe3b64b501559017f329e9653f | /Scripts/Exercises_with_solutions.R | 2afb7134d6b842b0711c91bf7eb6df990ef13c37 | [] | no_license | edinkasia/Intro_DSHSC-Tutorial_week6 | ffb534158066ded744a568ccbf13ce6dddba1838 | 8105b7e5bd9323dc83d741620ca6dde2eb84e8d4 | refs/heads/main | 2023-09-02T10:38:48.405000 | 2021-11-03T15:46:58 | 2021-11-03T15:46:58 | 424,154,352 | 0 | 0 | null | 2021-11-03T15:46:59 | 2021-11-03T09:01:43 | R | UTF-8 | R | false | false | 9,867 | r | Exercises_with_solutions.R | # You will need to load the required libraries first: tidyverse and here.
library(tidyverse)
library(here)
# We will be using traumatic brain injury data from a Tidy Tuesday challenge
# Learn more about the challenge and the data here (spend max 3 minutes looking at the linked page):
# https://github.com/rfordatascie... |
30ebb438cd73a04dfc9996ae8e61eb7c56bf0a24 | a1ec9c7e27a2ddae773164976f7a31072ceaffbc | /Plot2.R | bef7ee6f6afcca90928733f6c04962260418bdaf | [] | no_license | drg0919/ExData_Plotting1 | 00a722747687e4869af13afd47178c33bfb10e7c | 41ccc5d7f46fbd19e66fa36ec6cf258d9f76c356 | refs/heads/master | 2021-01-08T18:29:28.290030 | 2020-02-21T09:57:44 | 2020-02-21T09:57:44 | 242,107,377 | 0 | 0 | null | 2020-02-21T09:55:56 | 2020-02-21T09:55:55 | null | UTF-8 | R | false | false | 659 | r | Plot2.R | my_data<-read.table("household_power_consumption.txt",sep=";",header=TRUE)
my_subset<-subset(my_data,Date=="1/2/2007"|Date=="2/2/2007")
my_subset$Date <- as.Date(my_subset$Date, format="%d/%m/%Y")
my_subset$Time <- strptime(my_subset$Time, format="%H:%M:%S")
my_subset[1:1440,"Time"] <- format(my_subset[1:1440,"Time"],"... |
96b078205e39a58658abd4b0e8a080406781c692 | 6c6235ddf3aee099cc429e6bf09c4f0453015993 | /Text Processing bagian 1.R | a866255cb5654c81dd3a4c245469788900e5aebc | [] | no_license | GANGGAANURAGA/Text-Mining-di-R | 6e9e55835ac165fe5d61ba15b2072ab2ab86abe5 | a30f907d3f46fb54e8cb6134b60855d62aa75ce2 | refs/heads/master | 2022-12-10T21:23:36.167245 | 2020-09-13T13:41:49 | 2020-09-13T13:41:49 | 295,157,281 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,495 | r | Text Processing bagian 1.R | # library yang digunakan
library(tm)
library(NLP)
library(wordcloud)
library(RColorBrewer)
library(tokenizers)
# data yang digunakan
datatext = read.csv("DataLatihText.csv")
dim(datatext)
# membuat korpus / kumpulan dokumen
corpusdc <- iconv(datatext$narasi, to = "UTF-8") # UTF koding karakter
corpusdc... |
456098a917e76d32b34c8982a2837bb0f828a6c2 | c409ff3ea8b7c62efd962d37c83793d4fc0dc1bc | /tests/testthat.R | 95928d8662da6d94d023551289976728b9df3982 | [
"MIT"
] | permissive | markdly/conquestr | e225ecb1347957dc025c5c719d46624f56e01207 | 7994b3768e26acf1be4ac20821da66ba7f564deb | refs/heads/master | 2021-04-30T10:41:43.513747 | 2018-09-12T05:46:02 | 2018-09-12T05:46:02 | 121,339,581 | 1 | 0 | null | 2018-09-12T05:46:03 | 2018-02-13T04:43:27 | R | UTF-8 | R | false | false | 62 | r | testthat.R | library(testthat)
library(conquestr)
test_check("conquestr")
|
2150ac614d8d2cabab7061b2eca65b54b80b0f82 | bc0058818a923d1fc477fb55200365adfc1ea2e9 | /plot1.R | 9a311090bb314337a19cbe1466c740899432ebe2 | [] | no_license | makoto/ExData_Plotting1 | a149c2ee86afb448f5f6c8e7ae26a9bbfaaa961f | 96a368f6a99c39a89fb78e4e2ca6b4e9f88f4270 | refs/heads/master | 2021-01-22T17:14:00.407784 | 2015-05-10T22:51:07 | 2015-05-10T22:51:07 | 35,388,928 | 0 | 0 | null | 2015-05-10T21:35:57 | 2015-05-10T21:35:56 | null | UTF-8 | R | false | false | 367 | r | plot1.R | png("plot1.png", width=4, height=4, units="in", res=300)
power <- read.csv('./household_2002.txt', sep=";")
power$Date <- as.Date(power$Date, "%d/%m/%Y")
power$Time <- strptime(power$Time, '%H:%M:%S', tz = "UTC")
hist(power$Global_active_power,
breaks=20, col='red',
main='Global Active Power',
xla... |
8e3a91f6470dc30eb1785f2ff57a77c11f1756d9 | 59004c819451c7f552159ec5b2ce500fa365d70d | /R/predict.QRNLMM.R | 9be0521b7769e88d2f4d261dd894f319bc8a8706 | [] | no_license | cran/qrNLMM | 168ca22144c733fa192ef9bda53e93917a46279b | ac1d52d97a4f81205151895054cd553a3c5fd608 | refs/heads/master | 2022-09-05T00:17:55.503771 | 2022-08-18T11:40:05 | 2022-08-18T11:40:05 | 30,884,909 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 12,040 | r | predict.QRNLMM.R | "predict.QRNLMM" = function(object,x = NULL,groups = NULL,covar = NULL,y = NULL,MC=1000,...){
thin = 5
if(!inherits(object,"QRNLMM"))
stop("The object must be an object of the class QRNLMM.")
if(is.null(x) & is.null(groups) & is.null(covar) & is.null(y)){
message("NOTE: No newdata p... |
7d318447df8c5484ba508c679661edf0adeaa68b | 29585dff702209dd446c0ab52ceea046c58e384e | /saeSim/tests/testthat/test-select_cont.R | 23b42fdd5dbfee2cc7785cf91d2a4a7ccb56aab5 | [] | 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,583 | r | test-select_cont.R | context("select_cont")
test_that(desc = "select_cont", {
dat1 <- sim_base(base_id(nDomains=5, nUnits = 2)) %>% sim_gen_e() %>% as.data.frame
expect_equal(sum(select_cont(dat1, 1L, "unit", "idD", TRUE)$e == 0), 5)
expect_equal(sum(select_cont(dat1, 1L, "unit", "idD", FALSE)$e == 0), 5)
expect_equal(sum(sele... |
c416698e16116a7aa1c9701d86c406524a512d04 | 24a20d7690d8053c7f9e24091aca6446d758c0f1 | /bus_setup.R | 0c5fe6b7178e6f70b015fc72242a87d55a7c0d44 | [] | no_license | brendanjodowd/bus | 8d019e2aadeb22b69093456c2ff6dadc1dd89bad | e4525bada08a91f9d9b304ef5d8ed2f22fb34716 | refs/heads/master | 2020-04-22T01:50:47.162669 | 2019-02-10T21:35:49 | 2019-02-10T21:35:49 | 170,026,823 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 425 | r | bus_setup.R | library(rjstat)
library(rvest)
library(dplyr)
library(later)
bus_url <- "http://rtpi.ie/Text/WebDisplay.aspx?stopRef="
interval_time <- 10
# 46a oconnell street 6059
# pearse street 346
my_bus_stop <- "346"
supervalue_stop <- "4616"
call_times <- function(stop_number){
paste0(bus_url,stop_number) %>%
read_htm... |
f4594dc9105f190c12e7bbf0e54a5eb881b1c899 | fecaed3dea0f640b38c43ea515a5fd615d127164 | /OptimalControl/hamilSymTest/stateHiddenInput.R | f82ec418420ac1fa825bcc24eeafb487b59e23a3 | [] | no_license | Dominik12345/R | 57f272b1afb554090e4311a509c964f1bcc9b828 | 4843d80e9b3c4771df5dbefe32670a44773d7084 | refs/heads/master | 2018-09-03T08:35:56.354468 | 2018-06-04T05:32:39 | 2018-06-04T05:32:39 | 109,264,813 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 404 | r | stateHiddenInput.R | hiddenInputState <- function(t, x, parameters, input) {
with (as.list(parameters),{
w <- sapply(input, mapply, t)
alpha1 = parameters[1]
alpha2 = parameters[2]
alpha3 = parameters[3]
beta1 = parameters[4]
beta2 = parameters[5]
dx1= -alpha1 * x[1]+ t+ w[1]
dx2= -alpha2 * x[2]+ beta1 * x... |
b80dfe9ce29d79cfd7bd023f45d60681046f47ca | 0c780d32356a4b3a2fefa9392ac545bd078de909 | /R/sr-est.R | ebb361bbb1b03a0b3df5e6fc3b3ab30e34f6343e | [
"MIT"
] | permissive | heavywatal/futurervpa | 80fdeb533017eba10478d760fd9e15c1cd5b34d5 | 8fc6cfa6e831c2b6e8245b4eb83d2a769cc508e9 | refs/heads/master | 2020-04-02T03:56:01.315555 | 2018-10-21T09:20:12 | 2018-10-21T09:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 31,644 | r | sr-est.R | ############
# RVPAの結果からMSYを計算する関数
# 主に使うのはSR.est(再生産関係をフィットし、MSYを計算)とSR.plot(フィットした結果をプロット)
############
############
# 使い方
############
if(0){
# マサバ太平洋のデータを読み込み; modelAはvpaの帰り値
modelA <- readRDS("modelA_res.Rdata")
# MSY計算
res1 <... |
20eda438ad86c9c28581ecb71e81937c9db86292 | b186a76a1f5535019bef4d6102832445a58a408f | /R/0_data_acquisition.R | 206274cdae0ba7fee915c03a864819b50709da71 | [] | no_license | brunomc-eco/covidmunBR | 117fc9010b0eb70c9e1fccf8f3f41ce2e3dcad94 | 3a7b86204cfc82f10c57f949f80e0b1961c4ed49 | refs/heads/master | 2022-11-10T17:58:10.549667 | 2020-06-26T19:38:28 | 2020-06-26T19:38:28 | 267,056,229 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 827 | r | 0_data_acquisition.R | # COVID-19 Dashboard for IBGE
# Bruno Carvalho, brunomc.eco@gmail.com
# Downloading raw data from public sources
library(readr)
## ocupacao de leitos, Ministério da Saúde
## https://gestaoleitos.saude.gov.br/app/kibana#/dashboard/18685ad0-81b4-11ea-9f02-bfa3f55b2dad
# no final do dashboard, exportar arquivo "Formatte... |
583f21233e35dcf906c3775a27c4d3da6e7becd9 | 7e503ed19de6efbd965a8d27a74b3b6f2728b3de | /R/simulate_baselers.R | 7cbdd391304408aaecafe03ab99e222759885e40 | [] | no_license | anhnguyendepocen/baselers | 4bf80ae72cbb763c911ce3291fb638297acaf60f | 702a2ab2cc7b91c79c269b324122ce3037b82c67 | refs/heads/master | 2020-04-14T23:59:40.080592 | 2018-06-29T10:40:37 | 2018-06-29T10:40:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,989 | r | simulate_baselers.R | #' Simulate baselers dataset
#'
#' This function can be used to simulate nsim participants. It draws samples from
#' a mulitvariate normal distribution with a prespecified correlation matrix (corMat_f
#' for women and corMat_m for men). Most (but not all) of the means (but not the
#' correlations) are based on actual d... |
adf469da8e155492bf7b8e14e2f523cbb712cc48 | 9dac5dc85beb8dc395fae36ea401a53cb4d1289e | /Visualizations/covariance_matrix_approximation.R | aabd4d7de5d4134f213fbbcc41a97ee6af43d456 | [] | no_license | jamiecoops22/MISCADA_PROJECT | e60c491964b420e3901f9912bdcf946ab000b18a | a005d7930cf22bcac42c6c8773dee9e63262b254 | refs/heads/main | 2023-07-22T10:11:32.022856 | 2021-09-04T11:45:24 | 2021-09-04T11:45:24 | 403,041,747 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,041 | r | covariance_matrix_approximation.R | library(spBayes)
library(GpGp)
library(matlib)
# useful functions
eucldist <- function(c1, c2){
d1 <- (c1[1] - c2[1])
d2 <- (c1[2] - c2[2])
d <- sqrt(d1**2 + d2**2)
return(d)
}
vecMatch <- function(x, want) {
if (length(x) == length(want)){
if (x[1]==want[1]&x[2]==want[2]&x[3]==want[3]){
... |
71e58c1c2aaf16db22f337608624a825d1bc16c0 | 7a4f14629fbaa162e4cb9ecbf50442ba3ff86c5a | /load_data.R | f29551a17230e5a80cccb806915c629a21af82e2 | [] | no_license | bryanzk/ExData_Plotting1 | 800dc2c9e693b380e0b24dbdf1d05a20b5669ab9 | 4a71ca4eb8c4315383c25343fec8b9a143735bdd | refs/heads/master | 2021-01-15T18:14:00.104240 | 2015-03-13T06:08:21 | 2015-03-13T06:08:21 | 32,133,150 | 0 | 0 | null | 2015-03-13T06:05:29 | 2015-03-13T06:05:29 | null | UTF-8 | R | false | false | 729 | r | load_data.R | require(data.table)
dt <- fread("household_power_consumption.txt",na.strings="?", stringsAsFactors = FALSE)
tar1 <- dt[dt$Date=="1/2/2007",]
tar2 <- dt[dt$Date=="2/2/2007",]
pdt = rbind(tar1, tar2)
pdt$Date <- as.Date(pdt$Date, "%d/%m/%Y")
pdt$Time <- as.character(strptime(paste(pdt$Date, pdt$Time), format="%Y-%m-%d %... |
e096cb42514da2f4053f1c269c363d9ac9cf3048 | 12098bccebee4216aa474ddad99aa8b7c721ef9a | /Scripts/Bar Graph.R | 9f769af5048d359e4b0ea4a086c1ac0db5fd86fa | [] | no_license | feltem/info-201-final-project | 57cb7439a7a6922108e31c8ef83e552feeec11d4 | c1775b97455822ae9f84acda70d78153682dcbe6 | refs/heads/master | 2020-12-30T12:24:20.306394 | 2017-06-01T02:45:31 | 2017-06-01T02:45:31 | 91,385,904 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 745 | r | Bar Graph.R | # Setup
library(dplyr)
library(plotly)
# Interactive Plotly Graph
BuildBar <- function(y.vars, error.vars) {
plot <- plot_ly(x = c("Past Month", "Past Year", "Percieved Risk Average"),
y = y.vars,
type = "bar",
error_y = ~list(value = error.vars,
... |
ce3ac16ed2ac37c35f75c1a4f039a8e63c7768d3 | 79d5106cad12c2a6a6afb2bf4a663f5ce50557d8 | /R/convert_rfv.R | 850f11cf9ec424aaa7a2b9577223afcf4f54ae8a | [] | no_license | yuluc/parseRPDR | 6b55b2de21ddd2b5c43f8fd730a771168897bf16 | db9c656a0cd98017b69c1822d95c8c8836932153 | refs/heads/master | 2023-08-02T13:51:27.927674 | 2021-09-10T11:10:02 | 2021-09-10T11:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,435 | r | convert_rfv.R | #' @title Searches columns for given reason for visit defined by ERFV codes.
#' @export
#'
#' @description Analyzes reason for visit data loaded using \emph{load_rfv}.
#' If requested, the data.table is returned with new columns corresponding to boolean values, whether given group of ERFV are present in the given colum... |
f2de2bc0e4f646b4efd2e793b2a8170914d151de | 0b1e68824e5f5ca9e4353a35c40843cf7827d4ea | /Modified/M3_005.R | 53295cc7f3a76f953f558c72901a0a94d128c403 | [
"MIT"
] | permissive | Gpower01/WQU_Econometrics | e199d365e1966db29ba3f7957a45178fce3c8813 | f9a310c98f0665741b36d99dd3ce5aa8f85ab8a3 | refs/heads/main | 2023-04-13T12:28:08.392780 | 2021-04-26T16:27:17 | 2021-04-26T16:27:17 | 352,192,713 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,656 | r | M3_005.R | install.packages("XML")
install.packages("YieldCurve")
library(quantmod)
# 1.1 Obtain Treasury yield data
t2yr = getSymbols(Symbols = "DGS2", src = "FRED", auto.assign = FALSE)
t2yr = t2yr["2019-10/2019-11"]
t2yr
plot(x = index(t2yr),
y = t2yr$DGS2,
xlab = "Date",
ylab = "Yield (%)",
type = "l",
... |
2a53c6212ec5b3bbdd40dc4cc08f5830610d3c6f | 832669387fa12c1a02bad7d47de5d0aa57b032be | /tests/testthat/test_transform_log.R | 9b96c9943c0c643ca43f0d0a9dff92f82a01adee | [] | no_license | zoltanszebenyi/datacleaner | 5059db164c7970b9bc185ef4ebb9a37508a486ed | ed0e383809b4c1d1b182489ebcd36e0d9a87f7e1 | refs/heads/master | 2020-05-18T14:04:08.747851 | 2019-05-01T19:18:42 | 2019-05-01T19:18:42 | 184,459,696 | 0 | 0 | null | 2019-05-01T18:10:16 | 2019-05-01T18:10:16 | null | UTF-8 | R | false | false | 174 | r | test_transform_log.R | context("No negative values")
library(datacleaner)
test_that("There are no negative values in input", {
expect_error(transform_log(c(1,2,-1)), "input can't be negative")
}) |
ac80d7bd7a339f7f47618e111a646214c09a2426 | b86d6bf4662ad2bbe2083ea0915ff50f2f455e60 | /R/İstatistikVeVeriBilimi/9-)Tidyverse/7-)Summarize.R | f64e398e3461d76a8b30a589067f28a6bd18e093 | [] | no_license | DincerDogan/VeriBilimi | a8f04afcfd1a2419da0be72b6d780ffe058c42d6 | 1632b42e4d1ce744bb1382611022b79265c7896f | refs/heads/master | 2023-06-06T13:59:35.726325 | 2021-06-17T11:43:46 | 2021-06-17T11:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 193 | r | 7-)Summarize.R | summarise(
iris,ORTALAMA=mean(iris$Sepal.Length),
MEDYAN=median(iris$Sepal.Length),
STANDART.SAPMA=sd(iris$Sepal.Length)
)
# summarize sayesinde özet bilgilendirmelerimizi yapabiliriz |
89dc5b691460c859681a1be197a31cc163f5a0b5 | 3d7d08c45b1405297a895b74f543634eac13c2af | /base_scripts/nullnetworks.R | 749ce8d2ea738db051c62aa14c07d5f369b79f09 | [] | no_license | anshuman21111/ant-colony-networks | ed38d96cc907e81292a1701cc5d9995f8ddf14d1 | 40e1a46d66d7af78dd01590a31bef82c4393ce0a | refs/heads/master | 2022-04-30T05:54:02.002730 | 2022-04-20T15:16:05 | 2022-04-20T15:16:05 | 246,055,637 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,499 | r | nullnetworks.R | #null networks
library("VertexSort")
#strength
Antsortstrength=list()
for(i in 1:6){
set.seed(i)
X11=paste("Colony", i, sep = "")
print(X11)
Antg=dpr(Antgr[[X11]][[1]], viteration_no=1000, vparallel = FALSE, vcpus = 1)
Antgr1=Antg[[1]]
A=strength(Antgr1, vids = V(Antgr1), loops = TRUE)
X2=cbind(as.chara... |
ff72c70ad844d1c9b3647a3d5bb9790cbfc72e65 | 6c1ef8b6a83b51a360fc281d01c47f47376a2c3b | /Ver4_Text_Messsage_mining.R | 269d000a147c243026c3a60b39b2da54613cd883 | [] | no_license | aliz20/Text-Mining | 1fbeb2be8c0924091823faffb584b554ee521cd0 | 8ca93034e3d9dd8499a41ae17bb002557bd2695d | refs/heads/master | 2021-01-17T20:16:19.538829 | 2016-07-07T06:47:47 | 2016-07-07T06:47:47 | 62,772,181 | 0 | 0 | null | 2016-07-07T06:47:47 | 2016-07-07T03:31:52 | R | UTF-8 | R | false | false | 9,839 | r | Ver4_Text_Messsage_mining.R | # Ali Zahraei, 2016
#Text message mining.
#THIS IS ANOTHER VERSION OF THIS CODE, MIGHT BE SLIGHTLY DIFFERENT THAN
# WHAT I DISCUSSED.IT DOES ANALYTICS, GRAPHICS WAS DONE BY MATLAB.
# Porbabilistic Model (Naive Bayes), and Deterministic Model (SVM- Linear & Radial Kernel] and Adaboost
# This code reads a text fi... |
0640a2e311fb0e081f9228aff723c5810e89e7ff | 358d9bbf2cbc4ba049c293b6ccec1b7f93df9954 | /fitting/mifSearch1_TmeanB.R | c5ef211d59a71a77217ef9c0c7b35445c2d15fd3 | [] | no_license | pascualgroup/Malaria-highlands | de9c55d695c3e9bdb743a1167be83fd78eba2bd1 | c8ae3fa8c76c31530add4562dc2ff103220b9c60 | refs/heads/main | 2023-02-27T12:25:55.546119 | 2021-01-27T15:45:39 | 2021-01-27T15:45:39 | 329,729,585 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,287 | r | mifSearch1_TmeanB.R | rm(list=ls())
require(pomp)
require(plyr)
dat <- read.csv("DataCovar_1975-2000.csv",header=T) # read in data file with the malaria data and covariates
x <- as.numeric(Sys.getenv("PBS_ARRAYID"))
seqP <- seq(from = 1, to = 50000, by = 100)
now.num <- seqP[x]
y <- read.csv("parameters_TmeanB.csv")
param <- as.numeric... |
7ec1d2f0c9ee81a26861a286bacfc1c3abe5a5cf | 422e5b55c4a07e0c489d1eb9ef708345f67d641f | /scripts/samnet_models.R | a1e22dc0bea45ac1b60b3825400b984c271c55bd | [] | no_license | dev-vw/samnet | 5ced6e3e379abce0f2c138bbdf61ec43796aeb1d | bc301f87c23a50ef0ea03920ecc5f1a0cd75d837 | refs/heads/master | 2021-04-05T23:41:35.070795 | 2018-03-20T20:49:19 | 2018-03-20T20:49:19 | 124,447,566 | 0 | 0 | null | 2018-03-08T21:00:14 | 2018-03-08T21:00:14 | null | UTF-8 | R | false | false | 2,716 | r | samnet_models.R | #### --------------------
#### PRELIMINARIES
#### --------------------
# import the statnet library
library(foreign)
library(tidyverse)
library(statnet)
require(foreign)
# sets the current working directory
setwd("/Users/vaniawang/Google Drive/grad school/PhD UCSB/projects/msm_seattle/raw data/")
# importing the .cs... |
6ae2e539f21db3467dfbb3efac297a2b3f626625 | a6617bd28254e45d0f948c84d1d26d1e17a7689e | /inst/scripts/ROPOS2019.R | a344e50f63f001fdee62b510b928313cc151eeb4 | [
"MIT"
] | permissive | BigelowLab/fvcom | 37dba77b265e664920f9b68af699a445c5061e79 | 68566ac2c161bde1f549d6157dc69cee2fc8e704 | refs/heads/master | 2023-03-06T14:58:59.850621 | 2023-02-28T14:49:22 | 2023-02-28T14:49:22 | 204,050,423 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,164 | r | ROPOS2019.R | suppressPackageStartupMessages({
library(ncdf4)
library(readr)
library(dplyr)
library(fvcom)
library(sf)
})
#devtools::load_all("/mnt/ecocast/corecode/R/fvcom")
read_start <- function(filename = "ROPOS2019.geojson",
crs = NULL){
x <- sf::read_sf(filename)
if (!is.null(crs)) x <- ... |
67926c9228a40df9a915014cd7abb85a56d316eb | 871b42e4ff1fa7efc21d8ccdd265e300cb283408 | /man/shaidyRegisterRepoAPI.Rd | 935d710bf1c467721421145f91c3e6f9d415d415 | [] | no_license | MD-Anderson-Bioinformatics/NGCHM-R | 2abef86ba0c4b8befaa803b03f37a495e9d86d6b | fdc3519bad51f1de2631d45d897fdcc2357edf90 | refs/heads/main | 2023-08-31T23:22:28.187163 | 2023-08-15T20:28:01 | 2023-08-15T20:28:01 | 76,884,228 | 8 | 5 | null | 2023-08-17T22:28:11 | 2016-12-19T17:51:24 | R | UTF-8 | R | false | true | 417 | rd | shaidyRegisterRepoAPI.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shaidy.R
\name{shaidyRegisterRepoAPI}
\alias{shaidyRegisterRepoAPI}
\title{Set the methods for the repository API called api}
\usage{
shaidyRegisterRepoAPI(api, methods)
}
\arguments{
\item{api}{The name of a repository API}
\item{methods}{A... |
cc5063f698ba8520b5edef27c6d49ea7ee189562 | f210aaf6dc2e9e331bcc0a19e151587daa0cb5c5 | /working_files/shiny/shiny-jorgen-search.R | 032241db22b61e79f664e4da6659b6fbf3b65493 | [] | no_license | meakulpa/rubasic | fcbbd388c6a4f037c7fd3e80f43d8462e4815b92 | eeeb3aa4624c461c4f4746848d309b2a8ad2c1f7 | refs/heads/master | 2020-06-05T20:24:18.539452 | 2019-02-13T21:05:07 | 2019-02-13T21:05:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,216 | r | shiny-jorgen-search.R |
library(shiny)
library(spotifyr)
library(stringr)
library(DT)
ui <- shinyUI(fluidPage(
titlePanel("Search Spotify"),
sidebarLayout(
sidebarPanel(
textInput("artist", "1. Name an artist:"),
htmlOutput("artistImage")
),
mainPanel... |
1fea88414a93eab7b1d4a799c85f5c21f76a7518 | e37e15a714185d736f6ec2d5988d344f561bba44 | /R/positions_stat.R | 9464ef41e73c0f3c82d24b3a7193cc0a6e3f9c4d | [] | no_license | kovarsky/metagenome_old | add01ca8a005ecd182b1a7a2734853a1fa79d374 | 1b474ace40fa29d18df0c8de98bca82cbfe96101 | refs/heads/master | 2016-09-16T04:36:20.633171 | 2013-07-17T16:40:34 | 2013-07-17T16:40:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,885 | r | positions_stat.R | stat_table <- function(dir,prefix){
file <- paste(dir,prefix,'varpos_variants.txt',sep='')
data <- read.csv(file,header=F,sep='\t')
names(data) <- c('chrom','pos','A','T','G','C')
norm_func <- function(v){
return(sqrt(sum(v*v)))
}
data$norm <- apply(data[,3:6],1,norm_func)
data$sum <- apply(data[,3:6]... |
c747db7d7cb7ee1fbdb9be29dd8d70e8f4c185c6 | 78eb8c3af3ca1d5e88ba0a32fb85a6f13adba1b7 | /Review_xPassModel.R | 19192360aa33bd2336f63e8da4a4c18f0c1a48ea | [] | no_license | tabosch/ASAShootingApp | 473f4f114665749f03f9cba858af10e478498b96 | c17c6607909ae1b0d69efbf7195e747e641b41e4 | refs/heads/master | 2020-03-16T19:51:20.368727 | 2018-05-02T21:22:44 | 2018-05-02T21:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,083 | r | Review_xPassModel.R | # Review xPass model
library(dplyr)
library(gbm)
library(stringr)
library(ggplot2)
library(scales)
passes <- readRDS("IgnoreList/AllPassingData.rds")
smod <- readRDS("IgnoreList/xPassModel.rds")
smod16 <- readRDS("IgnoreList/xPassModel_2016.rds")
passes[["success.pred.16"]] <- predict(smod16, passes, type = "response... |
e4bf3cd49dc1fcdaea9b346bc9eab153e1c3a621 | 3fde134c2cee356e5a432ae0a71a96423f76074c | /man/get.pb.umi.Rd | b757b9ecf3c67f637e3aba91ff7b12b2e8144c69 | [] | no_license | klprint/snCerFun | 7ec3e0d751bd1f4c849f7696843696b68cd1b1ed | 17ba9d9b1b1d34c03b4c207b30e4e23e65f7f4e5 | refs/heads/master | 2020-12-23T17:11:29.468163 | 2020-01-30T13:06:38 | 2020-01-30T13:07:15 | 237,214,006 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 718 | rd | get.pb.umi.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{get.pb.umi}
\alias{get.pb.umi}
\title{Creates a pseudobulk using a grouped tibble}
\usage{
get.pb.umi(umi, df.grouped, cell.col = "cell_id", min.cells = 50,
n.cores = 1)
}
\arguments{
\item{umi}{UMI count matrix (genes x c... |
deb63056a5b1e9fd2551699bda15462cc2019225 | 03bd83293b953b58002c3748370c3eacbcee880f | /legacy/printOneSolution.R | c225e61d481f3f0d5c6b1d69b92ed9120adc9d77 | [] | no_license | davgutavi/trlab-R-utilities | 34f0c25a95461aed482f393d7379dd82412edad7 | cf3edbcb4a1cea70c3a2bea4e0e6e28301e7b032 | refs/heads/master | 2023-07-21T01:31:09.827263 | 2023-07-13T12:10:29 | 2023-07-13T12:10:29 | 107,287,411 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,341 | r | printOneSolution.R | source("configuration.R")
source("SolUtilities.R")
require(lattice)
##***********************************************inputs
input <- "/Users/davgutavi/Desktop/soluciones_paper/elu/elu_msl_02.sol"
##***********************************************inputs
##***Lectura del fichero .sol
props <- read.properties(input)
##... |
be843ab1fecd5b40cf03f236606cc45fdae541c7 | 7dfa69da69b9a064ae6ec41822751337c65fefad | /r/auto_r/templates/ALL_ssz_as_factor_recovered.r | 199fcc402d113e74fb8a7de28ccd9bd2d7070482 | [
"MIT"
] | permissive | CESEL/WarningsGuruPaper | 1c019743bc4f20306a4c3ec1eceef797008c7753 | f40ded3ccd3b818e9a69262c62e9aee38f54f02e | refs/heads/master | 2022-04-26T18:10:12.376211 | 2020-04-10T15:08:41 | 2020-04-10T15:08:41 | 254,658,006 | 0 | 0 | null | 2020-04-10T14:42:04 | 2020-04-10T14:42:04 | null | UTF-8 | R | false | false | 2,448 | r | ALL_ssz_as_factor_recovered.r | require("RPostgreSQL")
# Used to obtain deviance explained
require("modEvA")
# used for multi-colinearity | vif
require("car")
con <- dbConnect(dbDriver("PostgreSQL"), dbname="cas_exp", host="localhost")
newWarnings <- dbGetQuery(con, "SELECT new_warnings
from commit_warning_summary as w
where w.new_warnings > 0")... |
d577ff00695c8d8eaeccba200ddd4ca3dd48ef9e | c758fb1c8ba3238f7e3a9b049a42765796652c53 | /make_concoct_cov.r | 94083014be88e344a7ff623dfb6cd6e52ac5d191 | [] | no_license | microgenomics/MAGnifico | 5032e75e223df4c402e69b71d1ff4b272d83e716 | e3e293f24c77e523dfa47267a634dfb5f4f4e4e6 | refs/heads/master | 2020-06-03T03:42:49.489797 | 2019-06-11T18:29:56 | 2019-06-11T18:29:56 | 191,423,525 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,489 | r | make_concoct_cov.r | #get directory name
#get directory names
dir <-commandArgs(trailingOnly = TRUE)
##rhizosphere_2017
##define sample list and number of samples
#samples <- c("G1-1","G1-2","G1-3","G2-1","G2-2","G2-3")
#sediments mar de cortes
#define sample list and number of samples
samples<-c("PRO1748_Plate1_C1", "PRO1748_Plate1_D1"... |
76ee5c34c790335491f2bb3a3e0809c75991abd2 | 8a31a89ddd235833c7ab6e50b855810a499d41c7 | /transgen/mort_data.R | a0a1c7a1c022fb13e641c36c85b3f300950ab62f | [] | no_license | janejpark/niehs | 3030ce0c0672d1180d780cfc2e97b0e7ba2a7e5e | 875fae998d9125173d0118cb76d03783063b9e26 | refs/heads/master | 2021-01-20T15:49:46.075310 | 2020-04-04T22:42:50 | 2020-04-04T22:42:50 | 64,373,948 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 4,311 | r | mort_data.R | ## Mortality Data
## 2019 08 12
library(readxl)
library(tidyverse)
library(ggplot2)
library(RColorBrewer)
library(gridExtra)
setwd("~/Documents/NIEHS_LSU_UCD/niehs/transgen/DAVID/")
## Subset data by 00% and 56% samples at day 15
rawdata <- read_excel("~/Documents/NIEHS_LSU_UCD/Exp1-2/Phenotype/EmbryoMorts/190812_a... |
4ea27b36ef1d24b9c0d93284269e5f52ff0a1d86 | 2618a34654330482c04f44a233daf3486914b184 | /plot2.R | e030c2216e8cbee9fafd941ede9e76a4d197d520 | [] | no_license | vgarzon/ExData_Plotting1 | 864ae421bb0b22dfd7dcda2ab6e42c25d3c0d83a | c614862169188727994651f0677101d14e5ef256 | refs/heads/master | 2021-01-15T21:02:06.175761 | 2016-01-29T17:56:26 | 2016-01-29T17:56:26 | 50,666,238 | 0 | 0 | null | 2016-01-29T14:09:39 | 2016-01-29T14:09:39 | null | UTF-8 | R | false | false | 898 | r | plot2.R | # Coursera Data Science Specialization
# Course 4: Exploratory data analysis
# Week 1 assignment - plot2.R
# 2016-01-29
library(lubridate)
# Read data file, mind header, separator and "NA"
hpc_dfr <- read.table("household_power_consumption.txt", header = TRUE,
sep = ";", na.strings = "?", strin... |
6e450d84fbfdb2c32131796d0f62d9ec96fc578a | d8f5550dbbe4696c170d391e09d00738714c5dd0 | /man/attachContext.Rd | 245e267c1ba01ea7398149fb0a0f64e18b2b8ee6 | [] | no_license | dami82/mutSignatures | 19e044eb99ee8c65c4123c131fa978bd5bd9d93c | ad406018266f80a3048ae6219bf6c09cf6f69134 | refs/heads/master | 2023-01-24T00:39:46.026623 | 2023-01-18T21:22:55 | 2023-01-18T21:22:55 | 123,127,851 | 12 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,169 | rd | attachContext.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s03_all_functions.R
\name{attachContext}
\alias{attachContext}
\title{Attach Nucleotide Context.}
\usage{
attachContext(
mutData,
BSGenomeDb,
chr_colName = "chr",
start_colName = "start_position",
end_colName = "end_position",
nuc... |
ae9be7bbab9aba1a4128c9156836aa9c2815ef86 | 8ac6fd04fa2f9d62cf23cce35f2a3bbc787debbd | /server.R | c10d47c93749509cce40f3ed4e16db4762a4cd85 | [] | no_license | charliejhadley/idn_family-policies-timeline | dee918b9793c6a5c1aee15793dc84fa8a5cb5d5a | b16d201b5c00995aad707246ae8827af31ae9054 | refs/heads/master | 2021-07-21T18:51:32.735861 | 2017-10-31T10:41:41 | 2017-10-31T10:41:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,354 | r | server.R | ## =============================== License ========================================
## ================================================================================
## This work is distributed under the MIT license, included in the parent directory
## Copyright Owner: University of Oxford
## Date of Authorship: 2016... |
82fd8f8995003eb1f65fb1b5131a08bcdf3f3aff | e6a13b677387eb24ad0bc4e3b4527445d5912b37 | /Reading data in R.R | 45a051b232ed71a511ea4f311ad409140d7fab29 | [] | no_license | Hrithik1/R-learning | c9af0d1c4c4d3e93eebc801cc9194f64cba61a7f | a03ff0358609aea3df9df0b2d9a242e0fc921bbc | refs/heads/main | 2023-04-12T10:55:25.972300 | 2021-05-14T16:55:35 | 2021-05-14T16:55:35 | 326,401,985 | 1 | 1 | null | 2021-01-06T13:58:14 | 2021-01-03T12:29:12 | R | UTF-8 | R | false | false | 83 | r | Reading data in R.R | x<-url("https://www.google.com","r")
y<-readLines(x)
head(y)
#read.table
#read.csv |
fa670e32a81fe244575e31616e02dd9d9feb11db | bff6f874ddadce8109260ac9c36a8e1f76bc5536 | /ndnd_functions_temp/cpgs_hd.R | b76ab4b5d53612cf99b32b5906069a16eb4d0cc9 | [] | no_license | ElliotSivel/NDND | b45d06e5b8f0ea9b81e8793ab6f203426b7e4b75 | 88ef12fe46ffb7ac3ead95dfbe4ab1c50aa7dacb | refs/heads/master | 2021-06-22T00:16:58.066969 | 2021-01-12T17:03:31 | 2021-01-12T17:03:31 | 171,261,910 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,438 | r | cpgs_hd.R | # library(RcppEigen)
# library(Rcpp)
# library(inline)
#creation de la fonction CPP
cpgsCPP='#include <Eigen/Cholesky>
using Eigen::Map;
using Eigen::MatrixXd;
using Eigen::VectorXd;
const Map<MatrixXd>A(as<Map<MatrixXd> >(AA));
const Map<VectorXd>b(as<Map<VectorXd> >(bb));
const Map<VectorXd>x0(as<Map<VectorXd>... |
3c5769bb1a06531af4d107e3c34f4e62b3aec9c9 | 770a778f89aa210f199c30180a6e0365d3baaf3b | /Data/generate_r.R | 57d5808f8632f3fc779b0e6da3e98ca17121d6ec | [] | no_license | alizeeguyot/METARET | 38e0ced2a09a220c9ab45d310bc614efc4dfe10d | d41ea476e57fdcc5ee7eb5f5ff58c81aea91b715 | refs/heads/master | 2023-06-06T05:18:00.633568 | 2021-06-27T08:03:18 | 2021-06-27T08:03:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,699 | r | generate_r.R | ## function that translates choices into each different task
## into an 'r' risk parameter of a CRRA x utility funtion
get_r <- function(bibkey, task, choice) {
if (bibkey == "Charness2019") {
if (task == "EG") {
if (choice == 1) { out <- -2.45 }
if (choice == 2) { out <- runif(1, min = -2.45... |
f6f894031a3b15e63d0dd84af440c7b4cf6a0697 | 54d6ea7251681b5a49ab139a0bf332d06da5439a | /plot/EndOfApril-multipleCorrectionMade/scalable_single_item.R | 1aa08f41d011398f9cc4578e48fe6270a02d64fb | [] | no_license | wsgan001/MasterThesis-3 | d558b3dcf5b302ef3a4e1e3ffc412ffd67ca29cc | a3dc8797242e3f9b282a8621fced57981fc6bdae | refs/heads/master | 2020-04-07T00:31:18.669699 | 2017-06-03T00:41:58 | 2017-06-03T00:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,002 | r | scalable_single_item.R | tiff("scalable_single_item.png", width=9, height=9, units='in', res=120)
par(mfrow=c(3,3), cex.lab=1.5, cex.axis=1.5, cex.main=1.5, cex.sub=1.5)
#BIBLE
#DATA
x <- c(0.01, 0.009, 0.008, 0.007, 0.006, 0.005, 0.004, 0.003, 0.002, 0.001)*100
zero <- c(28247, 23874, 27147, 28035, 30995, 37511, 43290, 55725, 77181, 176405)... |
a49a219680d89478bb412dc2c2b336eb1d2658af | 4f4ba6d34b2411350abc91cc44b7bd1875970584 | /R/data_capitales_prov.R | 2dd2aa84d154f1299fdb08af5428578ad6326627 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"CC-BY-4.0"
] | permissive | perezp44/spanishRentidadesIGN | a2129e25e0251fc9d5ae97abc979d25c41fc3b59 | 0686da61ddaa47b80a6bf8801214c4539c9c05de | refs/heads/master | 2021-05-02T13:20:16.023342 | 2018-02-09T19:15:20 | 2018-02-09T19:15:20 | 120,757,308 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 696 | r | data_capitales_prov.R | #------------------------------ This file documents el df capitales_prov
#-- Simplemente tiene las 52 capitales de provincia
#-
#' Capitales de las 52 "Provincias" de Spain
#'
#' df con los 52 municipios Spain que son capitales de provincia (+ Ceuta y Melilla)
#'
#' @source \url{http://www.ign.es/web/ign/portal/rcc-no... |
75c7060db002bf23cd7bb114667d7da20f69e073 | a9dec343915b76a49ad1a7e57a53f3690bc40f5a | /R/utils.R | e724dee952723ef03eb2498354b3c564c72e7741 | [] | no_license | LongBeachInnovationTeam/CLB-Business-Licensing-Trend-Analysis | 8d7f834c5eacf1bed97edfd274774cbe17cbcd19 | 589b5c9a9f9d8cf1067b40bd7fac3b8f4daaf71b | refs/heads/master | 2020-03-13T10:32:49.570402 | 2017-03-11T09:39:49 | 2017-03-11T09:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,680 | r | utils.R |
#' Merge history and forecast for plotting.
#'
#' @param m Prophet object.
#' @param fcst Data frame returned by prophet predict.
#'
#' @importFrom dplyr "%>%"
df_for_plotting <- function(m, fcst) {
# Make sure there is no y in fcst
fcst$y <- NULL
df <- m$history %>%
dplyr::select(ds, y) %>%
dplyr::full_... |
ecc9b852d19374db7161dbe6390b239a18688619 | 3ece7008ae659e4604da95e3936300eab19732f4 | /man/plotEIC.xsAnnotate.Rd | 0a41ffa2fc712d142172b1ac5272c4251e26bbe3 | [] | no_license | sneumann/CAMERA | 14600dee1054917c03c2a48ec24092d7ba5e3416 | 89bd1e8d7e720bae6532eef5328e602acb38e82a | refs/heads/master | 2023-04-12T19:41:01.256040 | 2022-02-08T08:48:02 | 2022-02-08T08:48:02 | 18,191,106 | 10 | 24 | null | 2021-09-27T08:09:11 | 2014-03-27T20:55:17 | R | UTF-8 | R | false | false | 960 | rd | plotEIC.xsAnnotate.Rd | \name{plotEICs-methods}
\docType{methods}
\alias{plotEICs.xsAnnotate}
\alias{plotEICs}
\alias{plotEICs,xsAnnotate-method}
\title{Plot extracted ion chromatograms from (multiple) Pseudospectra}
\description{
Batch plot a list of extracted ion chromatograms to the current
graphics device.
}
\section{Methods}{
\descri... |
7da0d8aebe1df0e903a54a8468bd37e99344870b | a7458ddecee95867d027d83193fa0423575e171f | /plotMetabolites.R | c55a7dfc069586ed2854ba9d1b5dd6eff0e36253 | [] | no_license | riinbre-bioinfo/Ghonem_Metabolites | 5a3e20f3ee00ed7fb3f5b582a52d35fc62fff4c2 | fb43a47df101e4363936be9c8f7372a723630a5f | refs/heads/master | 2020-05-23T05:00:33.946983 | 2019-05-14T15:05:52 | 2019-05-14T15:05:52 | 186,644,305 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,800 | r | plotMetabolites.R | # script to create strip plots for the metabolite data, run ANOVA for the metabolite data and create bar plots for enzyme data
metabsStripPlot <- function(data_meta.df, data_log.df, xvar, shape, color, grouped = FALSE, shapes = FALSE, colors = FALSE, brewer = FALSE, legend = TRUE) {
metabNames = names(data_log.... |
09386f9af5d77f52612eda89fd3f4d899122f933 | 29585dff702209dd446c0ab52ceea046c58e384e | /TreePar/R/Fderifuncshifth.R | efac414b4b210761ff62d7c2e1fa124650f099f8 | [] | 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 | 464 | r | Fderifuncshifth.R | Fderifuncshifth<-function(time,t,lambda,mu,k) {
i <- inter(time,t)
if (time==0){
res<-0
} else {
tnew<-c(t[1:i],time)
res<-lambda[i]/(lambda[i]-mu[i])
if (i>1) {
for (j in 1:(i-1)) {
res<-res*exp((lambda[j]-mu[j])*(tnew[j+1]-tnew[j]))}}
# if (i<k){
# res<-res*(exp((lambda[i]-mu[i])*(tnew[i+1]-tnew[i]))-1)... |
a4fb656d85b481004c804e01b776a4169cdb4e8f | c647ec9c91130d4ecf2d7f1cce97827a833516bd | /man/dem.Rd | 9a7075ea2a22d7d883378c9827fb9d8a3b3856ee | [
"MIT"
] | permissive | sysmedlab/ehR | 1f8e75ed9101bf1416e5cd2106de1cfb6fb978d5 | 41c219b88c76f2432aa61df2b959d235d71ed0a1 | refs/heads/master | 2021-09-08T02:01:13.250539 | 2018-02-23T21:58:27 | 2018-02-23T21:58:27 | 103,680,558 | 4 | 3 | MIT | 2018-03-05T15:56:34 | 2017-09-15T16:52:49 | R | UTF-8 | R | false | true | 464 | rd | dem.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dem_data.R
\docType{data}
\name{dem}
\alias{dem}
\title{Simulated EHR data - Demographics.}
\format{An object of class \code{data.table} (inherits from \code{data.frame}) with 400 rows and 9 columns.}
\usage{
data(dem)
}
\description{
Simulat... |
4176af58a85909ab57c2554da2abd7ad3dbb7889 | 2da2406aff1f6318cba7453db555c7ed4d2ea0d3 | /inst/snippet/mvn-marginal03.R | ab6d560886777b242e9cb7cab6a7dace96c08c4d | [] | no_license | rpruim/fastR2 | 4efe9742f56fe7fcee0ede1c1ec1203abb312f34 | d0fe0464ea6a6258b2414e4fcd59166eaf3103f8 | refs/heads/main | 2022-05-05T23:24:55.024994 | 2022-03-15T23:06:08 | 2022-03-15T23:06:08 | 3,821,177 | 11 | 8 | null | null | null | null | UTF-8 | R | false | false | 364 | r | mvn-marginal03.R | # simulate 3 independent Norm(0,1) vars
Z1 <- rnorm(100000); Z2 <- rnorm(100000); Z3 <- rnorm(100000)
# create the X's from the Z's
X1 <- 1 + Z1; X2 <- 2 + Z1 + Z2; X3 <- 3 + Z1 + 2 * Z2 + Z3
data.frame( `E(X1)` = mean(X1), `E(X2)` = mean(X2),
`Var(X1)` = var(X1), `Var(X2)` = var(X2),
`Cov(X1, X... |
e8efe19c9ff802b900f3bb72cbe64a17bb793437 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/stream/vignettes/stream.R | 50879b7baebb0b75805b090f5d43d0c62f3a242e | [] | 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 | 17,013 | r | stream.R | ### R code from vignette source 'stream.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: stream.Rnw:138-139
###################################################
options(width = 75, digits = 3, prompt = 'R> ', scipen = 3)
############################################... |
ce983931c4bab5ec37816b88b1fea7fe19fc28d4 | b9f0c8a42d1da0aa40fa46197d3c4174648fe6e1 | /src/analyze.R | 9770a0cdae4f092c358497a7d1e7df738d08f61b | [
"BSD-2-Clause"
] | permissive | danlooo/correlation-workshop | e8f78a27e96bf7c65346a04d600cab1e81003e82 | a9040dfcf2c432d8ba79596d615600e19ad79d27 | refs/heads/main | 2023-03-28T14:36:28.264046 | 2021-03-26T15:45:25 | 2021-03-26T15:45:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 730 | r | analyze.R | #!/usr/bin/env Rscript
#
# Setup and configure drake
#
source(here::here("src/setup.R"))
cache <- drake::new_cache(".drake")
drake::drake_cache(here::here(".drake"))$unlock()
make(
# plan
plan = plan,
parallelism = "clustermq",
# allow multiple works to access global env at the same time
lock_envir =... |
2b3a2b72d023953c6f92945bea646afd13a28a39 | 38d127b3e63855d9897eb82f76f9def1fc381e6e | /R/getSubaccounts.R | 0905a84e6513cf231636824d1a7f0625a08473d9 | [] | no_license | erikpal/bRush | ed2ac601050d82eac15211dacc3047923df413a4 | 42f47fe87ee982e9207b2f9ec6577daa0a01e764 | refs/heads/master | 2023-05-11T17:36:19.160006 | 2023-05-02T15:57:42 | 2023-05-02T15:57:42 | 88,922,475 | 15 | 2 | null | null | null | null | UTF-8 | R | false | false | 834 | r | getSubaccounts.R | #' Get Sub-accounts
#'
#' Get details of sub-accounts for a provided account.
#' @param accountID Integer of the account ID to find sub-accounts for
#' @param recursive Boolean to search returned subaccounts for subaccounts
#' @param server The base url of a Canvas installation
#' @param ... Optional page options to p... |
08bb1d8e8c80acf9ac1ebcdbff1ad04604703bb7 | c242f642570f4124c986687a362d46684b058e76 | /R/multilevelPSA.demo.R | 952c854168a78677123fca23ff5024daac165c4d | [] | no_license | cityofsmiles87/Dissertation | dc07bb3afdf3e7fbe28b9b0030378dbacf7c5e83 | 8aa6bbad542f4e4a0f777587415e9f1d4736616f | refs/heads/master | 2020-09-14T14:25:53.132408 | 2014-12-16T14:53:29 | 2014-12-16T14:53:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,877 | r | multilevelPSA.demo.R | options(digits=3)
options(width=80)
install.packages('multilevelPSA', repos='http://cran.r-project.org')
require('multilevelPSA')
data(pisana)
data(pisa.psa.cols)
pisana$MathScore <- apply(pisana[,paste0('PV', 1:5, 'MATH')], 1, sum) / 5
pisana <- pisana[,!names(pisana) %in%
c(paste0('PV', 1:5, 'MATH'),paste0... |
e0261fce2db31e01c6b1e7be958fa80305e1aeb1 | b83cfb6a045040319338cf5e16c0392887993ee0 | /RCode/ROracle.r | 65dff1360dd10dc769c420104cb8e78dbbf1e60f | [] | no_license | xiaojiezhou/OftenUsed | 75360c9318158e24045a646e97d61fbf9f02b44e | d016df176fa24b9763da0ce4aa408184f533273e | refs/heads/master | 2022-06-22T03:52:56.112580 | 2020-05-06T14:42:37 | 2020-05-06T14:42:37 | 260,552,757 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 376 | r | ROracle.r |
# install.packages('ROracle')
require(ROracle)
exaDrv = dbDriver("Oracle")
exaCon = dbConnect(exaDrv, username="[AN_RT_WS95]", dbname="exa_uskrgprdh")
statsdat <- dbGetQuery(exaCon,
"
SELECT * FROM HHSPEND_MONTH_TEST_V2
where rownum <= 100
... |
309f4b10158a7980384b46910d9981f50f9f32a5 | f23b7b75a87ea3280c9e984a3b275a6fd83e135f | /Source/man/read.run.file.Rd | d8fc3ce0f5d41e7258e79e2d6b64cd579127ad14 | [] | no_license | HumanExposure/SHEDSHTRPackage | 1d830b5d8211e3e7ae000239cec7c17a44af9952 | c3d6c45557e77c29592218d7056e0d110e55e5ee | refs/heads/master | 2023-07-20T18:44:16.311968 | 2021-09-03T17:01:52 | 2021-09-03T17:01:52 | 113,353,498 | 4 | 3 | null | null | null | null | UTF-8 | R | false | true | 510 | rd | read.run.file.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ReadData.R
\name{read.run.file}
\alias{read.run.file}
\title{read.run.file}
\usage{
read.run.file(run.file = "run_test.txt")
}
\description{
Each SHEDS run has its own "run.file" that the user prepares before the run. This file contains all... |
368f1e9deea069c7c6b0f41543909f73766c9120 | 57aba6b27797866b9c6721d3d1237bba95052659 | /Data/PCA.R | 44c37fef94331b0d96ed2eb1e5c6b0a7af5f62a8 | [] | no_license | efwaring/autumnalTemps | 8c179b35ce2c9bd1fa2c464a5c4568549a2e5ea3 | 3c7021a6f304a7150330b49e454d4675fe69dedb | refs/heads/master | 2021-09-06T23:55:56.915291 | 2018-02-13T18:41:52 | 2018-02-13T18:41:52 | 59,041,442 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 883 | r | PCA.R | # PCA for growth chamber data
library(ggfortify)
allPCA <- read.csv("GCdata.csv")
allPCA = allPCA %>% mutate(climate=temp+phoper) %>% filter(climate!=35) %>%
select(spp, climate, nTreatment, aamb,dr,netqe,jmax,vcmax,Nitrogen)
allPCA$dr = allPCA$dr * -1
log.allPCA <- log(allPCA[c(4, 5, 6, 7, 8, 9)])
log.allPCA[3... |
dadb1f8712078326271b59f90d1d4e5eeb427fef | 3e508d7cd0798f70f70242a837f99123397fc1c4 | /tests/test-sim3way.R | 3ae9f99f07d72cbd97d74daaa971e90897343876 | [] | no_license | jlivsey/Dvar | f0d142df9866a4232947d114891111097c4c5851 | 824cdcc822829d655b905bfeca54a40b82f16e36 | refs/heads/master | 2023-07-26T19:17:28.531305 | 2023-07-06T13:55:28 | 2023-07-06T13:55:28 | 237,249,747 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,270 | r | test-sim3way.R | library(L1pack)
library(Dvar)
options(warn = -1)
#' Lets look at simulation for same dimension as Age x sex x blockGroup
#' First set the dimensionality and simulate histogram
mydim = c(6, 2, 10)
A <- array(sample(1:10, size = prod(mydim), replace = TRUE), mydim)
Nrep <- 2000
bpar <- 1/3
#' Run simulation with only ... |
73ffc25acbddb3ee43e0f80709f6221590b371be | 3df5e0d9cd46d3d86fe6879d85c96a3f8829fbd3 | /man/Scorecard_gen_code_sas.Rd | 447898d5f7a329f4808f05656aed1749e01fbcca | [] | no_license | gravesee/rubbish | d69e1de8a8c6be9084941eeb0b0d39c391a3fb74 | fce7aba82bbfead3a28bf16bc2972491d6a1991b | refs/heads/master | 2021-06-12T23:16:47.411331 | 2017-04-10T00:21:33 | 2017-04-10T00:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 942 | rd | Scorecard_gen_code_sas.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scorecard_class.R
\name{Scorecard_gen_code_sas}
\alias{Scorecard_gen_code_sas}
\title{Generate SAS code for Scorecard object}
\arguments{
\item{pfx}{character prefix to prepend to variable names
by the Scorecard model object. Defaults to 1.}
... |
f8a68740b6fc37b66b72e15e9bfc432fd34df920 | cf63cb42a6b26550f9b6270434e68b64d383ba3e | /R_file/lab3.R | 2ebf3f8202045e1cffe7a97f4e1308233984b577 | [] | no_license | zyz293/Statistical_Methods_for_Data_Mining | b8f84ad3bfcf1711fabb6272d8391b58bdc0a7cf | 3eda7095c8bf61095b92b65e4386c73363e66d79 | refs/heads/master | 2020-04-21T11:49:22.774238 | 2015-07-02T22:07:19 | 2015-07-02T22:07:19 | 38,459,218 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,078 | r | lab3.R | setwd('C:/Users/DaTui/Desktop/winter_quarter/IEME304/lab/3')
LAB3 = read.csv("Lab3.csv")
CVInd = function(n,K) { #n is sample size; K is number of parts; returns K-length list of indices for each part
m = floor(n/K) #approximate size of each part
r = n-m*K
I = sample(n,n) #random reordering of the indices
... |
ce0850060d362d99bcce056b3d47c01355d35748 | 774c97f4ceeebbfa7db0efd09a07c318763c530b | /R/Gen_x_z.R | 21e25b3b70f6210f7cc63687902358b0b3d9f858 | [] | no_license | BIG-S2/GFPLVCM | 3c709126c81b4fe3dba3fc533d46c5860a96e40a | 47075a7e8dd9bcec21892f3278d8babbd9d35ca8 | refs/heads/master | 2020-05-03T12:03:59.954202 | 2019-03-30T21:54:38 | 2019-03-30T21:54:38 | 178,615,183 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,879 | r | Gen_x_z.R | Gen_x_z<-function(time_number, time_point, u_time, len_k){
## generate x and z for one subject
phi=function(t,k){
if(k==1) return(1) else return(sqrt(2)*cos((k-1)*pi*t) );
}
###################################################################
### generate the correlation relationship within the subje... |
0c51c9606b972582e704df6f033f33a4809e9146 | 3098b0bd52cee12201a1e932e42a0be939526e87 | /cachematrix.R | b1d6006349a213e37acc1634c49c4fba267a598e | [] | no_license | pjs83/ProgrammingAssignment2 | e094c5cd97861962f1a0065b29ce6e75f752ae40 | c42e5b3d5fc87bff130844b0841584d545afae3d | refs/heads/master | 2020-05-31T00:09:45.134618 | 2014-09-13T18:50:26 | 2014-09-13T18:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 992 | r | cachematrix.R | ## Matrix inversion using previously calculated inverse matrices if available to speed up the process and avoid recalculating.
## Creates a speial matrix object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
A <- NULL
set <- function(y) {
x <<- y
... |
6150193427becf2545dde1801443d02bfa68214d | c7fddad890f1e87f6ca12685f5777aa39cf320f6 | /plot1.R | 969cfd765041277ec17916ddafdecd57ad24ed1c | [] | no_license | garydeinert/ExplData-Analysis-Course-Project-1 | 6c24acc5e7b10f26efc6c10c50f2d7ff0915e932 | dad8efb485ecbcf96c4e08751cf9180b49b80d39 | refs/heads/master | 2020-05-19T11:19:44.980615 | 2015-03-08T19:45:49 | 2015-03-08T19:45:49 | 31,861,703 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,346 | r | plot1.R |
## ======== set directory and filename here.
dir <- "C:/Users/Gary/Desktop/Data Science Specialzation/Exploratory Data Course Proj 1"
setwd(dir)
filenm <- "household_power_consumption.txt"
## ========= end set directory and filename
my.data <- as.data.frame(read.table(filenm, header=TRUE, sep = ";", na.strings = "... |
607f3e8109d7f96cfc70d73617a0faca82b89e97 | 21bea3d65527823f2c05a0651902d0493e87fdec | /R/mathOps.R | 94399bbdba0c6586df938639db07ec18d1d00395 | [] | no_license | cran/fSeries | b75f581bf81a53a6121ade5325f3397c21382a9a | e7b134694da3344e8c8863330be35c6c1dd464b0 | refs/heads/master | 2021-03-12T22:56:17.873727 | 2009-05-25T00:00:00 | 2009-05-25T00:00:00 | 17,718,720 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 8,720 | r | mathOps.R |
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be use... |
ad29ab583d57c46115c768679d1e6c2746d19da2 | be236873f4cd08b8e4a2b0b7a228385da2645abe | /run_analysis.R | 58dcc54f313e9b9b1dcb92616d6ea66d0aa1fe60 | [] | no_license | gitbeckywong/Coursera-3-Project | f17585b4b22a31a68672b83818924587406b3c12 | 6b2bdf2339d077da614ddb742d18c3f44b1c1fb7 | refs/heads/master | 2020-06-09T04:47:06.838179 | 2014-10-24T06:24:03 | 2014-10-24T06:24:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,374 | r | run_analysis.R | ## Load the "dplyr" package. (It is assumed that the "dplyr" package has already been installed.)
library(dplyr)
## Before proceeding, ensure all folders and data files are contained in the working folder.
## Specifically, the folders "test" and "train" should be in the working folder.
## Read all required files into... |
d9bb0de74830281bf794e3bc272e7844372024a8 | 762d865864484193149b4e0902304064324c6ac0 | /DevelopingDataProductsFinalProject/server.R | 02701458f671184743124f1a658edbd2a4a975a6 | [] | no_license | sairampraneeth/Developing-Data-Products-Final-Project | 8c70fa19b147795f10671821ca38f5f4d7d85813 | 43864c1cf3ad4d2eff392deac554cab70a3ba9c7 | refs/heads/master | 2021-01-10T23:39:23.327578 | 2016-10-10T04:31:43 | 2016-10-10T04:31:43 | 70,410,309 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,874 | r | server.R | library(shiny)
data(mtcars)
Dset <- mtcars
PredictionModel <- lm(mpg ~ .,data = Dset)
checker <- TRUE
shinyServer(
function(input,output){
printEvent <- eventReactive(input$button1,{
test <- data.frame(cyl = input$id1,
disp = input$id2,
hp = input$id3,
... |
568db051443a0a7129f7664793e9d9d83ed7b5c5 | 387b669bd2f9a5b9695d529b8f3f4e71ef4d4f35 | /lab/course1/Robust sumaries.R | b3b4ab7159fba7989be4acb76f5d4dcc5c4b673d | [] | no_license | chadchouGitHub/GenomeNote | c6bda81db246ee4d487b2be6ccdeb3c71e92d5ac | 383565129447440d3a4319821951a26b27872d8d | refs/heads/master | 2020-04-04T18:21:40.816236 | 2015-05-11T23:41:36 | 2015-05-11T23:41:36 | 30,615,246 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,865 | r | Robust sumaries.R | # Robust summaries and log transformation
# All these function are in the base package.
set.seed(1)
x=c(rnorm(100,0,1)) ##real distribution
x[23] <- 100 ##mistake made in 23th measurement
boxplot(x)
mean(x)
sd(x)
#> mean(x)
#[1] 1.108142 ## it is random number from 0 to 1, how the mean is bigger than 1. Because o... |
1328aba9f03508de495306e22f10a2383b90ff47 | b7b0b1dc4b412fa31026b5807f9d3fa1ef73f3ea | /man/funkmeans03A.Rd | 08aa1dd410abc5494574eee8ebdcdd9a71c6fce6 | [
"MIT"
] | permissive | kisungyou/T4cluster | efc268fb199ee0ce085ccd4872a04bd215986045 | cf15db529209023c0409a70ebfc1b721d8b785b0 | refs/heads/master | 2023-07-31T18:15:41.016081 | 2021-09-23T04:42:04 | 2021-09-23T04:42:04 | 295,601,655 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 2,550 | rd | funkmeans03A.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functional_kmeans03A.R
\name{funkmeans03A}
\alias{funkmeans03A}
\title{Functional K-Means Clustering by Abraham et al. (2003)}
\usage{
funkmeans03A(fdobj, k = 2, ...)
}
\arguments{
\item{fdobj}{a \code{'fd'} functional data object of \eqn{N} ... |
386aee9e8a3d0e1f9ef282c832534725811c97d9 | d71f89f90448ca3dae2efe3cfd2212e59d41eec4 | /R/Chunks.R | 14d8bc18e02ea85b4e9999c67231c4638b9dd41e | [] | no_license | warnbergg/regone | ce2b5f9db882b40c025fc8a669e9d65f5404e3a8 | 851be8e37259b1b0f599038e08ae14c27365b454 | refs/heads/master | 2023-08-22T02:18:39.488804 | 2021-10-13T14:11:07 | 2021-10-13T14:11:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 626 | r | Chunks.R | #' Chunks
#'
#' Splitting vector into specified n.chunks.
#' @param vec Any vector. Vector to split into chunks. No default.
#' @param n.chunks Integer vector of length 1. Number of chunks to split the vector into. No default.
#' @param exclude Character vector. Names of elements to remove from vector before splitting.... |
204a3c0ad05d3279c25de83c6bf6d389af323be5 | 72450ba3ff4cf6e5d28252a4af1d1d17ea07a7e1 | /R/dataVision.R | c3b0de9707ae1b0169798441a36e58f5b8947fb9 | [
"MIT"
] | permissive | aikinman/dataVision | a214287848635520520b790b82505e527dd0fd37 | ddfbb0ef9d41924be02d503f9d5c6c1ba7338bea | refs/heads/main | 2023-01-19T17:25:42.552921 | 2020-11-19T05:47:16 | 2020-11-19T05:47:16 | 314,026,789 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 587 | r | dataVision.R | #' dataVision
#'
#' @param x
#' @param y
#' @param df
#' @param verbose
#' @param na.rm
#'
#' @return a plot visualizing your x and y data from your specified dataset
#' @export
#'
#' @examples
#' plotFunction('Sepal.Width', 'Petal.Width', iris)
#'
dataVision <- function(x, y, df, verbose = TRUE, na.rm =FALSE) {
if(... |
21631ebc6ddcf7f518bd8652316589ff2c2fbf47 | b1d31f04054b32b1dbca0d8ce7406dd63b4130f1 | /R/utils.R | d33e0e55e5d795bbd9dacfd8fa85e107d2200257 | [] | no_license | lianos/GenomicCache | 15d711415e47c1080ffadb1a558a60d3e3bc24d9 | dc89e1e7b29d5702e00e50ec5926b74012a68886 | refs/heads/master | 2020-04-17T15:15:23.388012 | 2019-01-02T19:06:01 | 2019-01-02T19:06:01 | 816,175 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,598 | r | utils.R | ##' Checks that a directory exists and will create it if not.
##'
##' If the directory does not exist, and the caller does not want to create it
##' an error will be thrown
##'
##' @export
##' @author Steve Lianoglou \email{slianoglou@@gmail.com}
##'
##' @param path The path to the directory to check.
##' @param create... |
c98de8feb3e162686abe321b097a0c2f91976400 | ec4e37d127bbe0b7ce3a3aad97730f2c5658616d | /R/get_restricted.R | b7f3a2dae5a4c5e3baa8bd52af94061b361fc424 | [] | no_license | EmilNejst/Rcivecm | 7d5f02f5a54c9ae107c31ab18a80127108972811 | fb7cb123b732673b8f989d2175c6bbe095098af2 | refs/heads/master | 2021-01-22T10:57:05.921639 | 2017-02-26T16:53:55 | 2017-02-26T16:53:55 | 82,055,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 611 | r | get_restricted.R | #' @title Get exogenous variables restricted to the cointegration vector
#'
#' @param data is an xts object with the naming conventions of
#' Rcivecm.
#'
#' @return an xts object with the exogenous variables that
#' are restricted to the cointegration space
get_restricted <- function(data) {
variable_... |
ffefdda02b3915ce7e273b8cfeb241b49ec64377 | e23185c2b0e2f37beb090832feafaf647cd8f19d | /scripts/TidyAustenWellsBrontes.R | 5e3a658db25ce30bdb7eb58933bbe497819ffc4a | [] | no_license | Jonlittle27/Text-Mining-Projects | 9a9122f2be02e718091fce10c5b298409cc662e5 | 5eca661c2809c1390cc4d018b8bd0c17739d6305 | refs/heads/master | 2022-11-24T19:28:19.361906 | 2020-07-28T18:22:23 | 2020-07-28T18:22:23 | 271,325,521 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 586 | r | TidyAustenWellsBrontes.R | ##Libraries
library(gutenbergr)
library(tidyverse)
library(tidytext)
#Gutenberg book downloads
##Import Austen Books
ja_books <- gutenberg_download(c(161,1342,141,158,121,105))
##Import Wells Books
hgw_books <- gutenberg_download(c(35,36,159,5230))
##Import Bronte Books
bs_books <- gutenberg_download(c(767,768... |
9eb3d75a9b4885e8d4f9cf65c78cdbb5eec677d0 | fe487c83debd4b17e05641122c82c0b771d4b11d | /man/lines3DDataFrame.Rd | 7ac9876a366e4e3f8f3763ba043d7aa047292bf9 | [] | no_license | CloudComputer/geomod3D | 5a21c673048cfef147d8bc68c901ea599f49b638 | fd00f8f3188977a07028b08e1e6a7f055322bc60 | refs/heads/master | 2021-08-14T05:59:02.322040 | 2017-11-14T17:41:02 | 2017-11-14T17:41:02 | 114,229,121 | 1 | 0 | null | 2017-12-14T09:20:03 | 2017-12-14T09:20:02 | null | UTF-8 | R | false | true | 2,562 | rd | lines3DDataFrame.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lines3DDataFrame.R
\name{lines3DDataFrame}
\alias{lines3DDataFrame}
\alias{lines3DDataFrame}
\title{Drillhole database}
\usage{
lines3DDataFrame(lines_list = NULL, df = NULL, collar = NULL,
assay = NULL, survey = NULL, holeid = "HOLEID", fr... |
885a3de210ed0a67e4f45402b654a75c394c28c1 | 44adaf73180ccb431abe3f0464968d3d3832c8f9 | /R/sim-fmri-2covar.R | 980296edd663b20173a2f0f17795fd55e78ea6aa | [] | no_license | bioimaginggroup/adaptsmoFMRI | 7f3870ff27ccdeb9c3a1a50a5a1c42bb683906ae | 60c0272cccd2d2cf3ee2cefda3049699dd5b0b01 | refs/heads/master | 2021-06-05T15:42:41.654811 | 2021-04-20T09:59:08 | 2021-04-20T09:59:08 | 147,805,013 | 1 | 0 | null | 2018-09-07T09:51:43 | 2018-09-07T09:51:43 | null | UTF-8 | R | false | false | 3,758 | r | sim-fmri-2covar.R | #' This function returns the synthetic spatiotemporal data set resembling functional MR Images (fMRI) data.
#'
#' The returned data is simulated on a 20 x 20 grid.
#'
#' @name sim.fmri2COVAR
#' @aliases sim.fmri2COVAR
#' @title Simulate FMRI Data
#' @usage sim.fmri2COVAR(hrf, beta.Var1, beta.Var2)
#' @param hrf haemod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.