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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fdf37106c00d92b55919241f3da00e189004eba8 | cb317be804f5836c29f5cf20a9186b4a48d14009 | /man/split_merge.Rd | 3b9570b5bc75148f305d5ec5aa2d476de8bda831 | [
"MIT"
] | permissive | bahaeomid/tabulizer | fcae1e1018dd89eacc9c8130e2e69b995034d79b | 3aad163d7c5dc04739c0cab4b60b3e1f4c41d6cd | refs/heads/master | 2021-07-10T01:34:06.199683 | 2017-10-10T12:35:53 | 2017-10-10T12:35:53 | 109,482,433 | 1 | 0 | null | 2017-11-04T09:30:03 | 2017-11-04T09:30:03 | null | UTF-8 | R | false | true | 1,898 | rd | split_merge.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/split_merge.R
\name{split_pdf}
\alias{merge_pdfs}
\alias{split_pdf}
\title{Split and merge PDFs}
\usage{
split_pdf(file, outdir = NULL, password = NULL)
merge_pdfs(file, outfile)
}
\arguments{
\item{file}{For \code{merge_pdfs}, a character v... |
400b4643ef5e6af1e53a5f56f8702cc3e81d038f | d42ebe8fff3082dda512919bbc32e4bc55b6296d | /generated_code_examples/r/regression/svm.r | 00982938b8ca63598ab66fb7f0b3887b572b169d | [
"MIT",
"Python-2.0"
] | permissive | goldv/m2cgen | d4eb093eb738af102912f5720331a7504fc54a19 | d3dcedbc976917b4e205cd3641914f957feade34 | refs/heads/master | 2022-12-22T08:10:47.062447 | 2020-09-23T17:50:49 | 2020-09-23T17:50:49 | 298,049,601 | 0 | 0 | MIT | 2020-09-23T17:50:50 | 2020-09-23T17:46:44 | null | UTF-8 | R | false | false | 33,210 | r | svm.r | score <- function(input) {
var1 <- ((((((26.85177874216177) + ((subroutine0(input)) * (-0.12034962779157432))) + ((subroutine1(input)) * (1.0))) + ((subroutine2(input)) * (-1.0))) + ((subroutine3(input)) * (-1.0))) + ((subroutine4(input)) * (-1.0))) + ((subroutine5(input)) * (0.6171875007313155))
var2 <- (subro... |
d18777ee6734420882ca7bf80119673c7398c1df | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/mistral/examples/S2MART.Rd.R | e4def209c002359ee541d95048e260a25fc639f3 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,183 | r | S2MART.Rd.R | library(mistral)
### Name: S2MART
### Title: Subset by Support vector Margin Algorithm for Reliability
### esTimation
### Aliases: S2MART
### ** Examples
## Not run:
##D res = S2MART(dimension = 2,
##D lsf = kiureghian,
##D N1 = 1000, N2 = 5000, N3 = 10000,
##D plot... |
3c649d47674d29cfdb08c22e9aac93856345b6df | faee77c07264c2c9fa2868effb9db5537451de4f | /scripts/clean_rmats.R | 77037752cd1ed59a5e92e355270d442d0f6e1adb | [] | no_license | davemcg/EiaD_build | 46773d3408ce548de45cabdfa76718248fd05615 | 81ef03f67d2d6c5edd58112cba99d60d4d76cb17 | refs/heads/master | 2023-08-18T17:34:58.093662 | 2021-03-05T15:34:27 | 2021-03-05T15:34:27 | 132,913,205 | 7 | 2 | null | 2023-09-03T13:55:37 | 2018-05-10T14:38:35 | R | UTF-8 | R | false | false | 12,703 | r | clean_rmats.R | notes <- '
-for a single subtisue, there are different sites present in diffferent comparisons, might want to look into that
combination=i_combination
event <- i_event
files <- i_files
event_header <- i_event_header
- script wont run on its own, need to remove and move some files gotta fix that
> files <- i_files
> ... |
1cc47b38899dd98cc91e0863ebc6476319cb55e8 | ff73c5d42378641361604368ff62ebc3438dc967 | /R/tableau.R | c00c259a01982e688a0ddf2c9d6042db42966440 | [
"MIT"
] | permissive | ErandM50/tableau-scraping | 7a55988571121b7a9ae0ce31788c0299d6f62029 | 812b2f7606b5a913a37ace0c057225f676c1a6a3 | refs/heads/master | 2023-08-16T23:20:20.959855 | 2021-10-14T21:53:19 | 2021-10-14T21:53:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,312 | r | tableau.R | # The following script will get the session token, get the data,
# prompt the user to select a worksheet, parse the data into a dataframe
library(rvest)
library(rjson)
library(httr)
library(stringr)
#replace the hostname and the path if necessary
host_url <- "https://public.tableau.com"
path <- "/views/COVID-19inMiss... |
de501b19e258c363b11fc0525d67329e0b5dea6c | 50ea9fdc986b4e919cb09525be4e50fbbaf4f97a | /R/Agg.R | 2d5a3dc09b9b99b48bb875285e1b0a68a60d51b4 | [] | no_license | cran/EmiStatR | 90e991b998bb100b8344447399d6bb952380cfad | 2bc9c4a7ec754ec720dd81ea079784a39359ac9d | refs/heads/master | 2021-10-06T11:31:48.483290 | 2021-09-28T06:30:06 | 2021-09-28T06:30:06 | 63,985,573 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,220 | r | Agg.R | # aggregation of data.frame function
# author: J.A. Torres-Matallana
# organization: LIST
# date: 15.07.2015 - 19.07.2016
# data <- P1
# nameData <- deparse(substitute(P1))
# delta <- 1
# func <- "sum"
# data <- wlt_obs
# nameData <- "wlt_obs"
# delta <- 1
# func <- "mean"
Agg <- function(data,... |
0815abfc1ddd7e0c85186b1883a70dd327c021c1 | c13fd87cbb4066729f529a09f06db1649b7d1d6f | /man/int.moran.Rd | 9ab1fc0a831cba33b50bcc55f76d34c1c66e6db1 | [] | no_license | cran/EcoGenetics | 05c6bd845a714051c5317f3e70ececf8b2dbc40b | 46b904508a5958f3cb11513b83cc6b69c3c0a3ab | refs/heads/master | 2021-01-17T14:00:47.875370 | 2020-05-24T14:20:17 | 2020-05-24T14:20:17 | 30,083,571 | 2 | 4 | null | 2018-01-12T04:31:38 | 2015-01-30T17:44:07 | R | UTF-8 | R | false | true | 1,015 | rd | int.moran.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/int.moran.R
\name{int.moran}
\alias{int.moran}
\title{Moran internal.}
\usage{
int.moran(
Z,
con,
nsim,
alternative,
test = "permutation",
adjust.n = FALSE,
plotit
)
}
\arguments{
\item{Z}{Vector, matrix or data frame.}
\item{c... |
e8593d5a82f8d6354f0fb43c24c4d4008b1af40c | 9df16ef128620c9d4ddc2c94cf5bd348641b4256 | /R/backshift.R | bb36759def330b86ecbefe299418cabdfa482498 | [] | no_license | aushaff/echanFuncs | 4fad7a82a5eba78ed2a9b785994d569318518e6d | 26fcb9b7f98478e7be551a5f7c20cf80e6dba863 | refs/heads/master | 2020-03-07T10:37:46.157249 | 2018-05-04T15:28:47 | 2018-05-04T15:28:47 | 127,436,226 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 231 | r | backshift.R | backshift <- function(day, x) {
stopifnot(day >= 0)
y <- c(rep(NaN, day),x[1:(length(x)-day)])
}
# function y=backshift(day,x)
# % y=backshift(day,x)
# assert(day>=0);
# y=[NaN(day,size(x,2), size(x, 3));x(1:end-day,:, :)];
|
20a5da5234ebd62e9e8796c4cf9de0359632ab15 | 475856e028f1ab7e8259c8d34f02bdcaefcf4db0 | /R/phalfcauchy.R | 8c252a7e1211f8af51666e45420ce7f333bd0c5d | [] | no_license | cran/BNPdensity | 44ee5d2ebc9aae83b243574090d211514014a9d1 | 314c943b35f83098fa87c7b15a16757c7334d346 | refs/heads/master | 2023-04-07T12:52:52.293810 | 2023-03-24T14:10:02 | 2023-03-24T14:10:02 | 17,677,929 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 559 | r | phalfcauchy.R | #' Distribution function half Cauchy
#'
#' Computes the cdf.
#'
#' For internal use
#'
#' @keywords internal
#' @examples
#'
#' ## The function is currently defined as
#' function(q, location = 0, scale = 1) {
#' ifelse(x < 0, 0, 1) * (pcauchy(q, location, scale) - pcauchy(
#' 0,
#' location, scale
#' )) / ... |
55d8b4815bcf23eaf2930f02d5f82607b75657e8 | 195bdc0c32027ee636aca6e1cd31f756b5e37571 | /code/DE-Workflow-Implementation/ref_script/COV_edgeR.R | 9ac097264152ddbdd93486b18b1e0f7fd9b63bf8 | [
"MIT"
] | permissive | noobCoding/Benchmarking-integration-of-differential-expression | e59a86413e2f50bac8150d356fe6538527f41868 | fc715ff54f56652e84dcacf9ab7f4fe93e7cd7f0 | refs/heads/main | 2023-05-11T13:36:37.736002 | 2023-05-09T08:24:54 | 2023-05-09T08:24:54 | 451,292,650 | 8 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,419 | r | COV_edgeR.R | #raw count or pseudobulk data as input processed=rawcount
run_edgeR<-function(processed,cellinfo,cov=T,Det=F,former.meth=''){
library(edgeR)
count_df<-processed
rownames(cellinfo)=cellinfo$Cell
cellinfo<-cellinfo[colnames(processed),]
cellinfo$Group%<>%factor()
cellinfo$Batch%<>%factor()
cellinfo.cov<-... |
66833bf72d8263582e97d07926e00f53eda8499f | 35f844f6f5145265ffdd48c14522756030263dba | /man/TableStyle.Rd | c5a4f6d97c699a4ae187573baf23c1850c5c86fa | [] | no_license | cbailiss/basictabler | 708aa9e2da21b65ef65f529be868ebcbfee4373c | 63486f6acd7b163c28839dd607a98f4bd0e7920d | refs/heads/master | 2021-07-16T05:12:03.971848 | 2021-07-01T20:48:46 | 2021-07-01T20:48:46 | 104,359,939 | 33 | 2 | null | null | null | null | UTF-8 | R | false | true | 7,325 | rd | TableStyle.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TableStyle.R
\docType{class}
\name{TableStyle}
\alias{TableStyle}
\title{R6 class that specifies styling.}
\format{
\code{\link{R6Class}} object.
}
\description{
The `TableStyle` class specifies the styling for headers and cells in a
table. ... |
442801dc4f170d3b9496628b75cb2869b2bf4872 | 39597a6d5fb41d0caa9e0e7cd5dd19331556f440 | /man/lsid.Rd | 2d963355191f938dafdb3ceb6783f7966be0a2a0 | [] | no_license | cran/spidR | 2444e78e3b6c89a4349522ef95be483f23ed83ed | 8d4b6d0afa3cae7bbdd9cd96ff1445c3f6f83b12 | refs/heads/master | 2023-08-21T00:44:58.438942 | 2021-10-18T06:20:02 | 2021-10-18T06:20:02 | 349,128,766 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 865 | rd | lsid.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spidR.R
\name{lsid}
\alias{lsid}
\title{Get species LSID from WSC.}
\usage{
lsid(tax, order = FALSE)
}
\arguments{
\item{tax}{A taxon name or vector with taxa names.}
\item{order}{Order taxa names alphabetically or keep as in tax.}
}
\value{... |
122687c8943235bab5505049c1690498e41be870 | 61fafe1ef929fcde59954f0ec5a7acd341ac5148 | /R/getVarExpSim.R | 012a638d0319054570e9694953405a9395d3df06 | [] | no_license | cran/Mangrove | fc1d63bd9dbc237d57540acd7fc5151f2f4cd205 | a302411add434c6056126a3fd3eded27339d47aa | refs/heads/master | 2021-01-23T11:48:12.462119 | 2017-02-22T16:15:37 | 2017-02-22T16:15:37 | 17,680,818 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 358 | r | getVarExpSim.R | getVarExpSim <-
function(ORs,K,iter=1000){
# calculate variance explained by simulation
sam <- replicate(iter,(runif(ORs[,5]) < ORs[,5]) + (runif(ORs[,5]) < ORs[,5]))
temp <- apply(sam,2,function(x) prod((1*(x == 0) + ORs[,3]*(x == 1) + ORs[,4]*(x==2))/ORs[,6]))
post <- applyORs(temp,K)
T <- qnorm(1 - K)
mu <- T ... |
aa187644f6833fb3e399a15eb43098e8fbbfeb6d | 249ab3aea059a14d18d9dfcb4a1b9558ce09608c | /4 - Exploratory Data Analysis/Week 4/plot1.R | b257b55d9378a387780e10ac595b7149e0d3c67c | [] | no_license | sawyerWeld/DataScience-Coursera | e64cd3556a81d73f3e957d9915345771a79d9b2a | 9ee5959684c1d95c2007a8aa60012fdecd726afd | refs/heads/master | 2021-06-22T14:47:38.903318 | 2017-08-30T23:29:19 | 2017-08-30T23:29:19 | 93,285,651 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 416 | r | plot1.R | # Load in data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Aggregate data necessary for plot
emissions.by.Year <- aggregate(Emissions ~ year, NEI, sum)
# Plot
png('plot1.png')
barplot(height=emissions.by.Year$Emissions, names.arg=emissions.by.Year$year, xlab="Year", ylab=e... |
772b1c3568628b4dbf2ba1e26d04803b7c54a880 | 3edcc98f5a87b4bfe1f395588fb8c5a78e7d76c8 | /plot2.R | c978353e2c33fa95b418f976cfd9477c60e0a84f | [] | no_license | Nid0/ExData_Plotting1 | ae5403672566ae5509103162e5dd574d31daee5c | 0069ac433e9cc0865285e6df6aa0034f37e6e812 | refs/heads/master | 2020-12-31T03:56:16.772934 | 2015-01-11T14:50:27 | 2015-01-11T14:50:27 | 28,992,756 | 0 | 0 | null | 2015-01-09T00:15:49 | 2015-01-09T00:15:49 | null | UTF-8 | R | false | false | 862 | r | plot2.R | ## Reading dataset from .txt file.
dataset <- read.csv("~/downloads/household_power_consumption.txt", header= TRUE, sep =";",
na.strings="?" ,nrows= 2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
## Defining date format.
dataset$Date <- as.Date(dataset$Date, format="%d/%m... |
5f35f4bf9beccd392abe4192f753796a17b35f4b | d11dba6dafe5f5204743e03662d8d6d216672393 | /man/ip_in_any.Rd | 90c0304989b57af2830c1c9d6496444873fd5fbd | [] | no_license | ktargows/iptools | d7b6e260296750198444b0edde26a09df4ad3630 | d3d85680cd85d276672a42f4bbdeb8fac3d8758e | refs/heads/master | 2021-01-11T01:55:03.682784 | 2016-10-06T01:54:41 | 2016-10-06T01:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,127 | rd | ip_in_any.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{ip_in_any}
\alias{ip_in_any}
\title{check if IP address falls within any of the ranges specified}
\usage{
ip_in_any(ip_addresses, ranges)
}
\arguments{
\item{ip_addresses}{character vector of IP addresses}
\item{ranges}{c... |
f134b43c686aaec53a5eeb78ae5bb7a6c020f8ba | 782239ceca3eda22f993f8421f47566ca92955c1 | /09-12-18_notes341.R | 3ff631e37d5ace29db04ecc2cd61248e80829f99 | [] | no_license | adraper2/stats-code | c1c55b69468dfa06141c45d902083ebb13e60579 | c333ff462eb76ac193f5bc8039ce09208b5c4e58 | refs/heads/master | 2020-03-30T14:40:14.932382 | 2018-12-22T23:47:20 | 2018-12-22T23:47:20 | 151,329,629 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 164 | r | 09-12-18_notes341.R | #pmf <- vector(mode="list", length=4)
#names(pmf) <- c("2","3","5","7")
#pmf[[1]]
k <- 1:100
pmf <- choose(100,k) * .75**k * (1-.75)**(100-k)
hist(pmf)
plot(pmf)
|
139f8eb0fbb7fb30403346509fad122b6eed9c28 | eee770b9f658ede3f74d365e86111a7edb99e764 | /import.R | 5c5726e49b2a8ea9933483dce0504b8028dcea8f | [] | no_license | maxheld83/unicorn | 7cf51d20b332df35f12d0015894e128ba8912599 | 64e4bcc5de9d5efcbc9c52409ae172a0c78be35f | refs/heads/master | 2020-06-18T18:50:55.575882 | 2019-07-12T08:41:47 | 2019-07-12T08:41:47 | 196,407,785 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 370 | r | import.R | if (FALSE) {
library(googlesheets)
unicorn <- gs_key(x = "1WEvq7XKALZcNlKc09rPYI9vcIFTAJUXrRwHCRhQ6GYI")
votes <- gs_read(ss = unicorn, ws = "votes", col_types = "ccdc")
tweets <- gs_read(ss = unicorn, ws = "tweets", col_types = "ciii")
readr::write_rds(x = list(votes = votes, tweets = tweets), path = "data.r... |
600c2bf27d697950650e3f095a3a6d5e54b970be | 110096cf62a7ac937f3cf84308a430942641629e | /data-collection/process-comments.journal.R | 72c218286a8b188c1ef953e05c9b262d1d892cd3 | [] | no_license | s-ben/pi-research | e9fc10b6036a271105ff7dccd333fda534b3d75b | 98d4c30a97580d093368fd78480b24902627a04e | refs/heads/master | 2020-04-07T06:32:41.963810 | 2018-11-21T12:02:05 | 2018-11-21T12:02:05 | 158,140,080 | 0 | 0 | null | 2018-11-19T00:17:28 | 2018-11-19T00:17:28 | null | UTF-8 | R | false | false | 2,290 | r | process-comments.journal.R |
library(jsonlite)
library(RCurl)
props =read.csv("prop-urls.csv", stringsAsFactors = FALSE )
get.comments = function(url)
{
url = paste(url, "/plugins/decred/comments.journal", sep="")
#fetch the prop's comments.journal
prop.input = getURL(url)
#processing to make this a valid json object
prop... |
0e6cb5d19e5731073f581bffeeb325bc6679763d | 29585dff702209dd446c0ab52ceea046c58e384e | /magclass/R/magpieResolution.R | 9f86e7ee964e91b61eaa01b329910883033faced | [] | 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 | 403 | r | magpieResolution.R | magpieResolution<- function(object) {
if(!is.magpie(object)){stop("Object is no magpie object")
} else {
n_magpie_regions <-length(getRegions(object))
n_magpie_cells <-dim(object)[[1]]
if (n_magpie_cells==1) {
resolution<-"glo"
} else if(n_magpie_cells==n_magpie_regions) {
resolution... |
4659a2ad4c68875ec1047e1787512a4c768a0a8f | 311244ce857f5abc9b5135f7d7cab5e1019dfc34 | /R/tutorial/calmap.r | 33b5095b605ead240ca67b0522293003620ed6bc | [
"MIT"
] | permissive | REFRAME/betacal | c4d2231ff26dd4128b602004be2f7d952527d6f6 | 7c4a733a1f5b52a8a1700a8e793ac75ec16c9177 | refs/heads/master | 2021-07-14T00:04:04.805961 | 2021-03-11T19:58:21 | 2021-03-11T19:58:21 | 80,637,377 | 10 | 3 | null | null | null | null | UTF-8 | R | false | false | 1,086 | r | calmap.r | library(ggplot2)
library(latex2exp)
library(reshape2)
plot_calibration_map <- function(scores_set, info, legend_set, color_set, alpha=1){
n_lines <- length(legend_set)
sizes <- seq(1.5, 0.5, length.out = n_lines)
bins <- seq(0, 1, length.out = 11)
hist_tot <- hist(info$prob, breaks=bins, plot = FALSE)
hist_p... |
7ee5a56076591d542a6637bc11c6bc36341eb98a | 01411d60b66af197744af1cb885e77bebe13b912 | /tests/testthat/test-unicode.R | bc6f9126226a1bd37c9bf3b4cd23a2f8740c2094 | [] | no_license | LaAzteca/re2r | a7c3a272860b58a902696947f08d01976336f5d6 | 1b1f4f963d9e3fa00b6259f1fe1eafb414eea734 | refs/heads/master | 2017-12-04T08:22:42.267522 | 2016-12-19T16:54:52 | 2016-12-19T16:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,582 | r | test-unicode.R | context("Unicode")
library(stringi)
test_that("unicode match with native string",{
# the Unicode codepoint cannot be converted to destination encoding
skip_on_os("windows")
letters <- stri_c(stri_enc_fromutf32(list(174L, 173L,182L,190L)), collapse = "")
x <- stri_encode(letters,"UTF-8","")
expect_t... |
62b15fbdbdc7ccb7d5a63b7dd3613e3c12e46334 | 31eff34979bcec6a1e49922d75afd8b562fc6551 | /man/ASvisualization.Rd | a418d985b5e1bbc90db9e00884413c4227d61029 | [] | no_license | hangost/IMAS | ec7c9b49a9d6abeeea5ab3f055965285d47f05ad | b6e8cd7c4972d49f77708e139560cfec92b36281 | refs/heads/master | 2021-01-18T21:35:13.117367 | 2017-04-07T04:33:15 | 2017-04-07T04:33:15 | 84,370,059 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,956 | rd | ASvisualization.Rd | \name{ASvisualization}
\alias{ASvisualization}
\title{
Visualize the results of the ASdb object.
}
\description{
This function makes a pdf file consisting of plots for results in the ASdb object.
}
\usage{
ASvisualization(ASdb,CalIndex=NULL,txTable=NULL,exon.range=NULL,snpdata=NULL,
snplocus=N... |
ca856c1a7a14f66a7dab59a1a3c29e6f511742d1 | 26fb8c0b5fadde0d5499f334025f4e709391e23e | /Predict.R | a1d7b1aff78d6c0d10adc7b3835fa9160302861f | [] | no_license | ryq1230/ECG | d0c003ac8c9f9187e701516a0e503d52b90671af | 53820e32c007f249d07188768c953d49eec56406 | refs/heads/master | 2020-09-14T11:38:48.719167 | 2016-09-09T02:20:33 | 2016-09-09T02:20:33 | 67,757,683 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,051 | r | Predict.R | AOI_data_frame <- read.csv('C:\\Users\\lenovo\\Desktop\\ecg\\baseline\\P36F.csv')
ECGGroup <- c('Normal Sinus Rhythm.JPG','SVT.JPG','Ventricular Fibrillation.jpg','Myocarditis - sinus tachy non specific ST changes.JPG','VT.JPG','Anterior STEMI.jpg','AF, LBBB.JPG','WPW.jpg','Hyperkalaemia.jpg','Atrial Fluter.jpg','Bi... |
069d6099633a66c236ce6a7a15ec9af20517fb20 | f7fd50a127978fe49dabeb3d4a1bbdc3c3ba40a3 | /LIFE toolbox/s01_findingWearTimes_excludingOutlierMinutes.R | 86207b0ebeec35b84a01928294705a4a5dd3249e | [] | no_license | matin-ufl/mobility-signature | 75ef109c4a14c336b637082e484d39d87002ed71 | 14ff228721aa84e0c1c92fc4f60797f1a236a1dc | refs/heads/master | 2021-01-21T04:44:32.172140 | 2016-07-26T14:40:06 | 2016-07-26T14:40:06 | 52,101,214 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,357 | r | s01_findingWearTimes_excludingOutlierMinutes.R | library(PhysicalActivity)
setwd("~/Workspaces/R workspace/Mobility Signature Paper/mobility-signature/LIFE toolbox/")
source("f01_functions.R")
# Data File selections ------------------------------------------
# Temporary for easier file selection
setwd("~/../../Volumes/aging/SHARE/ARRC/Active_Studies/ANALYSIS_ONGOIN... |
02bd9bfd137adeea9bd7934be33c42cb6162018e | 8d78b83bbd4a661d1891ea5f9c181de04d654321 | /tests/testthat.R | 69f830fc0f2e0f84d345d91ad398a8c9ab0224e2 | [
"MIT"
] | permissive | dynverse/dynwrap | ef84d0a123f4264c1013b868fc7b37a5a5c213d4 | 852535635765cfd7db9938c83da96b1e483ec513 | refs/heads/master | 2023-07-19T18:35:10.780205 | 2023-07-18T10:00:41 | 2023-07-18T10:00:41 | 124,226,016 | 15 | 7 | NOASSERTION | 2021-03-23T23:11:26 | 2018-03-07T11:27:02 | R | UTF-8 | R | false | false | 59 | r | testthat.R | library(testthat)
library(dynwrap)
test_check("dynwrap")
|
ae0b5da821806e0f0a3f14e5ce437216e9b91580 | 21b4913b611e0c16404655374372a233ae8b74af | /man/exploregraph.Rd | 3b65cd6ba3d2f92e3d00d6b4a9048a8c748ebd11 | [] | no_license | cran/rope | 2f5e6cbbe4ff44089db67e311a369f4aed1313db | 7dd0192257fea85ea9c7d24c199415dab591a6aa | refs/heads/master | 2021-01-19T09:48:44.694796 | 2017-02-16T06:55:41 | 2017-02-16T06:55:41 | 82,150,015 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 833 | rd | exploregraph.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rope.R
\name{exploregraph}
\alias{exploregraph}
\title{Convenience wrapper for \code{explore} for adjacency matrices}
\usage{
exploregraph(data, B, ...)
}
\arguments{
\item{data}{List of symmetric matrices, one matrix for each penalization
le... |
27e9c9b0aa11b3d6f0d9f67b456253b980eeafa1 | 736281b44e7f46705960e14ba97c98acdeecd6b1 | /man/ggcormat.Rd | a53823ebe2f10284480a565c1bb6fd8c6d74b13d | [] | no_license | abusjahn/wrappedtools | 97dd0d77514cd42affbaab7679d2fc2eab8f8358 | aca66340603ef4a5ba0e0ebee76a06ba6610a33f | refs/heads/main | 2023-08-24T12:09:11.635831 | 2023-08-04T16:37:30 | 2023-08-04T16:37:30 | 132,574,321 | 3 | 2 | null | 2023-09-01T18:01:05 | 2018-05-08T07:55:20 | R | UTF-8 | R | false | true | 1,705 | rd | ggcormat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{ggcormat}
\alias{ggcormat}
\title{Print graphical representation of a correlation matrix.}
\usage{
ggcormat(
cor_mat,
p_mat = NULL,
method = "Correlation",
title = "",
maxpoint = 2.1,
textsize = 5,
axistextsize = 2... |
55139c8394ceb025fc515ccee8843261859b22ad | 70be1f3ab42b122e0523c49f0615705b675aa2bd | /tests/testthat/test_kmeans_init.R | 5ad84403c49d34cf45dfb703cf8e06e1ba334c89 | [
"MIT"
] | permissive | panntingg/kmeans_R | c23249898fd980c1acddce79d0747461bba9ea66 | 6cb68e13944770e6860225f8038bd8bac9954b87 | refs/heads/master | 2020-04-25T13:34:10.636732 | 2018-03-17T21:23:50 | 2018-03-17T21:23:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,074 | r | test_kmeans_init.R | # Kmeans initilization tests
#
# Testing includes:
# - graceful failure when handed null data
# - graceful failure when handed nullnumber of clusters
# - defaults to 0 when no data and zero clusters are provided
# - checks that returns object of type matrix
# - checks that the dimension of returned matrix is corre... |
12a2ec6b2ed69e1d07799574ddecc8f0c82334f0 | 25294c318866d0c8f3e9ab81e5e594afa1e8fd96 | /timeSeriesForecastMethods.r | 6e5a4951bdd71d3feb7c6c9587643a632759895d | [] | no_license | jaidprakash/timeseries | 35f6f81c92f318c6d961859d67743472adac3d34 | b75584bdeb926767993aaec20daf9692e00ca8d4 | refs/heads/master | 2021-07-05T23:26:27.385457 | 2020-11-27T17:06:26 | 2020-11-27T17:06:26 | 209,422,297 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,288 | r | timeSeriesForecastMethods.r | install.packages("forecasts")
library(forecast)
#Package has sample data
install.packages("fma")
library(fma)
# Using the beer data set
head(beer)
plot(beer)
str(beer)
summary(beer)
autoplot(beer)
###############################################################
#Forecast for 5 periods using Average Metho... |
822ab98e52365e52e53c82ee699a3e906aca50fc | 52671f54fac60d724612ff353d589a5ebbce7ad8 | /R/setup.R | edba2bf019684409750324c81ccac11f1f4e88b5 | [
"CC0-1.0"
] | permissive | wdwatkins/trainR | 4a076485cf1896b6e0cd8d94824b817a7ec117e0 | 1562b596a987bc9c06198bfebfca57a18ae467a8 | refs/heads/master | 2021-01-23T12:38:19.854058 | 2017-06-06T15:19:55 | 2017-06-06T15:19:55 | 93,183,704 | 0 | 0 | null | 2017-06-02T16:20:54 | 2017-06-02T16:20:54 | null | UTF-8 | R | false | false | 1,300 | r | setup.R | #'
#' Automatically create issues on the repo
#'
#' @description This function should be run by instructors to setup the issues
#' that will be created for students in each class. The idea is that they fix and
#' close out the issues in each instance of the course, and we reset the code to
#' have errors before the ... |
12aee3c339157b7af78882088fe81da74d59b3e1 | 93079ba3946266d77b8b190aab61c5f5717f7902 | /week_1/homework_1_Q2.3.R | a868e85a64b42397332dcd54abfd49eac88486a9 | [] | no_license | aten2001/GT_ISYE6501-3 | df8df45205ceaf0029b77a689e6bf3ee440e8f14 | 6d6a2373659a8bee9a2d55a839d7a4235c4e6997 | refs/heads/master | 2021-09-08T08:33:24.409863 | 2018-03-08T18:47:55 | 2018-03-08T18:47:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,161 | r | homework_1_Q2.3.R | #clear the global environment
rm(list=ls())
#load knn library
library(kknn)
#set wd
setwd("~/Desktop/courses/ISYE6501_Intro_to_Analytics_modeling/week_1")
#load data
cc_data <- read.table('credit_card_data-headers.txt', header = TRUE, sep='')
#preallocate prediction matrix
prediction = matrix(0, ncol = 1, nrow = nr... |
a13eb056b5fb8da1f8737f7f69abef571c814c1b | c4686487bc5bca473db882c368f32cd6eb66cb60 | /man/step_log_interval.Rd | 7eeacc1fcffb53d1d2986e6307cf110e11f71f8f | [] | no_license | cran/timetk | a76350c9afec47750976a67dd62bce8e05cd571e | fd37c527527d820c4678dd9f7da616c650388d04 | refs/heads/master | 2023-04-14T02:39:01.465221 | 2023-03-30T13:20:05 | 2023-03-30T13:20:05 | 98,353,024 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 4,803 | rd | step_log_interval.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/recipes-step_log_interval.R
\name{step_log_interval}
\alias{step_log_interval}
\alias{tidy.step_log_interval}
\title{Log Interval Transformation for Constrained Interval Forecasting}
\usage{
step_log_interval(
recipe,
...,
lim... |
fc237a3a6d03923287a5741f5145636bb7d46040 | 0266ef330078f17136848b4062c60cb02fadfe54 | /man-roxygen/ssAdvancedParam.R | 79fd8444e7df0044edac8489b60b69e4597f43ad | [] | no_license | lixixibj/smooth | af025910b65e118c168683636979fb3acd398223 | 5deed8e4eeb5feafcca0ce4e591a1d3f524b8e2d | refs/heads/master | 2022-04-23T12:37:23.294574 | 2020-04-17T15:21:43 | 2020-04-17T15:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,402 | r | ssAdvancedParam.R | #' @param loss The type of Loss Function used in optimization. \code{loss} can
#' be: \code{MSE} (Mean Squared Error), \code{MAE} (Mean Absolute Error),
#' \code{HAM} (Half Absolute Moment), \code{TMSE} - Trace Mean Squared Error,
#' \code{GTMSE} - Geometric Trace Mean Squared Error, \code{MSEh} - optimisation
#' using... |
a7905f109ac209c75394d737d00f977f60b9995b | bc61b8e912a578aeba89a6364dc58b54c158a8bf | /logreg_trees.R | 46ac8c2784b1ce12a5ea9c81f59379fd1681c4fb | [] | no_license | cfamigli/cs229 | 84944ae089d97d45a1a8d15c2244e25f7c1e8109 | 983130281b20410ca5a7266148a36a4da9b5fb41 | refs/heads/master | 2021-10-08T14:52:41.651635 | 2018-12-13T18:22:27 | 2018-12-13T18:22:27 | 161,676,960 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,235 | r | logreg_trees.R | library(dplyr)
alldata = read.csv('C:/Users/nholtzma/Downloads/fire_data_2001_2017.csv')
nodup = distinct(alldata, lat, lon, year, .keep_all=TRUE)
ndyear = nodup$year
nodup = nodup[-c(1,102,103,112)] #all vars
#nodup = nodup[-c(1,102,103,112)][c(c(1:3,12:17,22:39,44:46,79:90),18,100)] #for reflectance only
#n... |
1230330621fb8b90eed8be32976a3377a99ec2ee | 130bec3acb8248c96da384b20e41213783f0dbf6 | /cachematrix.R | 75dbb3bb9710c4afc725d359bc4e110daade8b46 | [] | no_license | jameswang8/ProgrammingAssignment2 | 16490dc570f145e0586d0386331a3a44937ddc73 | f18b7fb3186a385f8bdb0d6b4dba00f97dc294c5 | refs/heads/master | 2020-12-27T09:28:23.530933 | 2015-06-21T20:15:36 | 2015-06-21T20:15:36 | 37,816,711 | 0 | 0 | null | 2015-06-21T16:45:38 | 2015-06-21T16:45:38 | null | UTF-8 | R | false | false | 1,221 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## start inverse property
inv <- NULL
## Set the Matrix
set <- function(y) {
matrix <<- y
inv <<- NULL
}
## Method to get the matrix... |
8f132d64a3642f8ead4b5dd0e5973b643eaca70b | 517feee5084dc68fa17d51d25a6860b10d876d0b | /man/replaceNAs.Rd | 41aa2906a4b6ea201e041f01d4529e11824fbbf1 | [
"MIT"
] | permissive | arorarshi/utilar | c6055a15be345ffa65efd34907bbaf580eacaea7 | 4fce04f5b43891d2d30328f4bd3dd6f877334320 | refs/heads/master | 2021-06-24T11:54:48.758911 | 2021-02-05T21:26:24 | 2021-02-05T21:26:24 | 199,532,239 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,312 | rd | replaceNAs.Rd | \name{replaceNAs}
\alias{replaceNAs}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Replaces missing variables in a vector as \code{<NA>}.
}
\description{
Given a vector (numeric, character, double, factor) with missingness coded as not \code{NA}, replace it as \code{NA}. Some examples are -... |
226ca5fc06a45d0ff05c45817fb15039247af87c | 88ef281798009d121b409053e3adc46fcc93a984 | /scripts/3_runMDSstatisticalTestsRevised.R | 3465416e0b247e6a4bbb407a64b82675811f0a26 | [] | no_license | rbarner/swabVsStool | a23ea69c254ae87676f829dc7763ef0c99176c30 | d64999a0160a8b1c1408b8c705854d4862338848 | refs/heads/master | 2021-01-01T05:22:51.412832 | 2018-01-02T07:55:23 | 2018-01-02T07:55:23 | 56,530,014 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,925 | r | 3_runMDSstatisticalTestsRevised.R | library(nlme)
library(matrixStats)
####### Functions used #######
mdsStatisticalModels <- function(dataSet,eigen,tool,level)
{
bacteriaSwab <- split(dataSet,dataSet$Origin)$SWAB
bacteriaStool <- split(dataSet,dataSet$Origin)$STOOL
stoolMeans <- round(colMeans(bacteriaStool[,37:51]),3);
swabMeans <- round(c... |
288a8cc061c9daedd79db3b389451891728f0392 | bffb5bbabb0598c467d66730ad5de742eecdd8e9 | /testerapp.R | 031948a3c4293ff5f2b5ae02519f193bcdc8893b | [] | no_license | daisyduursma/OEHDecisionFramework | eb4506e534aa1705c5fbbc8c9caadc2320f3912c | 45416fcba7ba22bec924ceeb2c27bca49ddd8df1 | refs/heads/master | 2021-09-09T16:43:27.320901 | 2018-03-16T02:05:25 | 2018-03-16T02:05:25 | 110,914,451 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 11,352 | r | testerapp.R | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
#get test data
library(rgdal)
require(cluster)
library(leaflet)
library(leaflet.extras)
library(sp... |
ab404abcc128fb8848344e5621da7cc91c493d53 | f5bc9ede0f17e4a1bbcca3d76cc68c216cdbafd6 | /GC_olives/graph_cut.R | 777b3b098e419cb4673841ae172719f1fc14966e | [] | no_license | thaos/GraphCut | 419b85d357a03b9326285c264518994bc829dda5 | 14412b65f7a5bdd344a6b03f2b64a0917f9b095e | refs/heads/master | 2020-04-27T18:18:37.404257 | 2019-11-14T15:21:40 | 2019-11-14T15:21:40 | 174,563,956 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,052 | r | graph_cut.R | library(magick)
library(magrittr)
library(igraph)
library(optrees)
source("graph_cut_algo.R")
library(magick)
library(magrittr)
library(igraph)
library(optrees)
source("graph_cut_algo.R")
img <- image_read("olives.gif")
plot(img)
img %<>%
image_convert(type = 'grayscale') %>%
image_data("gray") %>%
"["(1,,)... |
e7eadda0a3db1ec226af568b04394f78c0c3d162 | 1b537061a9e36ab16bb600d63d4589fdcf8a801b | /hackathon.R | 957f1fc0fcb1bb9e9645cfbbe131804599766cb4 | [] | no_license | arshiyaansari/Twitter-Sentiment-Analysis | 75c485b850a093ae47f2bdba89abe6f1251205ce | 6714112905fb43871f4bf256f2efb8f701b3d6b4 | refs/heads/master | 2023-01-06T18:50:41.821591 | 2020-11-01T23:03:45 | 2020-11-01T23:03:45 | 171,375,502 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,155 | r | hackathon.R | install.packages("SnowballC")
install.packages("tm")
install.packages("twitteR")
install.packages("syuzhet")
install.packages("wordcloud")
library("SnowballC")
library("tm")
library("twitteR")
library("syuzhet")
library("stringr")
library("wordcloud")
consumer_key = "Zw5cQNtd0rEXVnaQz0qACzD72"
consumer_secret = "Hy0... |
a7cea387a67982a0b743d568a0686ab13f6b0c2b | ff6ca8e3a11a1445c44759895e11655d0c178cd2 | /man/gaussSave.Rd | efd37a4bb56d7e670b5b893a1cbfa3f0e6fab963 | [] | no_license | cran/rSFA | a375b3402107ecf9bfeb36a9fdafbeacb7881ab4 | c8faff4caa5007db462de83f9814539174a543fd | refs/heads/master | 2022-05-06T15:11:09.907585 | 2022-03-29T09:00:07 | 2022-03-29T09:00:07 | 17,698,959 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 439 | rd | gaussSave.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sfaFileIO.R
\name{gaussSave}
\alias{gaussSave}
\title{Save a GAUSS object.}
\usage{
gaussSave(gauss, filename)
}
\arguments{
\item{gauss}{A list that contains all information about the handled gauss-structure}
\item{filename}{Save list \code... |
7a45389261a69a44cee466349719141153fc89d2 | 1f9b135708835e4c542f9c0c743dfb49620f6685 | /man/map_data.Rd | 7901f96b605cf3e45011f4440e4915956a0f67de | [
"MIT"
] | permissive | kafetzakid/morphotype | 71c337e1b237df3d4a39f829f224e0f2f04e7f05 | 2e44431232701ce0186f93793dcd1b3caaa7a731 | refs/heads/main | 2023-08-11T14:54:53.943013 | 2023-07-30T14:06:55 | 2023-07-30T14:06:55 | 485,943,302 | 1 | 0 | MIT | 2023-07-30T14:06:56 | 2022-04-26T20:49:18 | R | UTF-8 | R | false | true | 1,161 | rd | map_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/map_data.R
\name{map_data}
\alias{map_data}
\title{Estimate graph from distance matrix}
\usage{
map_data(distM, filter_values = NULL, num_intervals = NULL)
}
\arguments{
\item{distM}{a distance matrix. Computed using compute_dist_0, compute_d... |
7650d64d8d0ca6512a9a9812d9da54e78e90d616 | 6916839b0ebdfa142464deda61009a53a4ffed11 | /lib/R-4.0.0/DESeq/doc/DESeq.R | 5123c4777bd13500e51982562aa7f041452a8c22 | [] | no_license | soccin/BIC-RNAseq | e433b2a6cbe4e03cb072cc35f5c56742b8931dd0 | daa585abf432d7fdf6c72b0f02ecd8d693292e94 | refs/heads/master | 2022-08-25T04:46:26.490989 | 2022-06-21T18:56:08 | 2022-08-11T17:09:25 | 94,916,981 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 18,816 | r | DESeq.R | ### R code from vignette source 'DESeq.Rnw'
###################################################
### code chunk number 1: options
###################################################
options(digits=3, width=100)
###################################################
### code chunk number 2: systemFile
###################... |
45a471703519f222f2c199156882e466ab038d10 | e15f6d2671a5e3c4bbc77cf8c8055f87fe06b0a5 | /R/rmf-create-upw.R | 50ee9d88953fd7d613c1aaf5dd05e754622ac0df | [] | no_license | matejgedeon/RMODFLOW | 32c5a0b5cbfd0b605df8219b48a3ce3ba52dfb9b | df755343a820fff52ac26994eebee2c7c9a07808 | refs/heads/master | 2021-10-27T07:16:30.240311 | 2019-02-24T22:22:27 | 2019-02-24T22:22:27 | 238,649,825 | 0 | 0 | null | 2020-02-06T09:18:24 | 2020-02-06T09:18:23 | null | UTF-8 | R | false | false | 6,898 | r | rmf-create-upw.R | #' Create an \code{RMODFLOW} upw object
#'
#' \code{rmf_create_upw} creates an \code{RMODFLOW} upw object.
#'
#' @param dis RMODFLOW dis object
#' @param iupwcb flag and unit number for writing cell-by-cell flow terms; defaults to 0
#' @param hdry head assigned to cells that are converted to dry cells; defaults to -8... |
70d1a668b2f0b8b7146e7db8f7c04ce9a83b6010 | 1b25e84bb182ad28f1c1582c509ae27c396bdb2a | /R/Clusters.R | 301304c8602129a5b4072c172fc5a39d9f8a467d | [] | no_license | katrikorpela/mare | acb9d17d5e42e27919b1a360564607d6c0a2596b | 6e84a2a39757e3cd0745e3f7c0d654c7e0748e47 | refs/heads/master | 2022-07-22T03:33:37.859806 | 2022-07-14T08:47:58 | 2022-07-14T08:47:58 | 56,917,206 | 9 | 9 | null | null | null | null | UTF-8 | R | false | false | 4,600 | r | Clusters.R | Clusters <- function(taxonomic.table, meta, N.taxa = NULL, readcount.cutoff = 0,
minimum.correlation = 0.5, minimum.network = 1,
select.by = NULL, select = NULL, keep.result = F, pdf = F, relative = T){
if(Sys.info()[['sysname']] == "Linux") {
quartz <- function() {X11()}
... |
e2dca710ae87d59a14e48440469fb3964c22124e | 77a9b044f9e5122e882cfbdd48641310b3423173 | /tests/testthat/test-remove_default_params.R | 0bc4806f95f61bd63e86326655a451bcabd5d820 | [
"MIT"
] | permissive | rnaimehaom/ggannotate | 157f07e29d7644579f8bb6eb0ccf1aaf6514b219 | 926a22f2db904d9dc21636d839061cd552b55044 | refs/heads/master | 2023-08-21T12:17:18.884170 | 2021-10-07T22:44:54 | 2021-10-07T22:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,271 | r | test-remove_default_params.R |
test_that("remove_default_params() removes params that match geom defaults", {
params_list <- list(
size = 0.5,
angle = 90L,
colour = "black",
curvature = 0.5,
arrow = arrow(
30L,
unit(
0.1,
"inches"
),
"last",
"closed"
)
)
params_list_nodefa... |
8f20ae5772c407d95ad03262c62a319b039fdf20 | 1f3ad322d895f2ab1f42491c7e350da796e5472f | /man/limmaTwoGroups.Rd | 9a6a13d982525f016bb2375e235ed8bfaa33e400 | [] | no_license | cran/nlcv | 1be0ee0e0fa75ced7cb889be0f7cfaf2a93a1ba0 | 6d2e9bddb46f2b506db703fa87c7c8a3048d9862 | refs/heads/master | 2021-09-17T09:25:10.864465 | 2018-06-29T20:49:59 | 2018-06-29T20:49:59 | 107,578,868 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 994 | rd | limmaTwoGroups.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/limma.R
\name{limmaTwoGroups}
\alias{limmaTwoGroups}
\title{Wrapper around limma for the comparison of two groups}
\usage{
limmaTwoGroups(object, group)
}
\arguments{
\item{object}{object of class ExpressionSet}
\item{group}{string indicatin... |
dac28177a59e4930824f941342e35f311df1bc2b | 8ad7d2053c3ab6b8a22210690a23d9216e6ada58 | /NormalizeRNAseq.R | bb40509350486c98372136a48394d92414101566 | [] | no_license | johnmous/RNASeq_Analysis | 766e9c952fa6827211ba9b074970927323b108dc | 969e2adb602be48b66d1ae6e2098b8bbf62d7b77 | refs/heads/master | 2016-09-12T09:25:09.823549 | 2016-04-21T12:29:49 | 2016-04-21T12:29:49 | 56,771,852 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,276 | r | NormalizeRNAseq.R | # Author: Ioannis Moustakas, i.moustakas@uva.nl
# Title: Normalize Frank Takken RNA-seq data and check the result with the aid of ERCCs
library(ggplot2)
library(reshape2)
library(ggvis)
library(plotly)
interactive()
# load the ERCCs concetration table
concetrationTable <- read.delim("/zfs/datastore0/group_root/MAD-RBA... |
a1ee58cdb2d1c8125ad77aa3921dbc5297f20e9e | e9e2da7dcf679ef9a5cb7ae2e520f3b98da87b45 | /lib/gbm/gbm_caret.R | cf9de77f5c5ec8c4a2353ba1dde544dd7c0e2746 | [] | no_license | xingao1994/spr2017-proj3-group8 | 85dbcde53c5b335d80cd49c9f7426bcfbf05abe0 | 041f7b71b067609ad18fe2aaf54c72d2d8e99860 | refs/heads/master | 2021-06-12T13:32:00.137794 | 2017-03-24T21:25:14 | 2017-03-24T21:25:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,260 | r | gbm_caret.R | # Setup
setwd("../data")
used.packages<-c("gbm","data.table","dplyr","caret","e1071")
library(gbm)
library(data.table)
library(dplyr)
library(caret)
# Load data
sift <- fread("C:/Users/yj2360/Documents/project3/project3/spr2017-proj3-group8/output/sift_features/sift_features.csv", header = TRUE)
sift <- ... |
f4ab27cc91173ae6ddd531f2bc5afd61908d818f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/future.BatchJobs/vignettes/future.BatchJobs.R | 13c6c422e155a853261f9c62592d3ac81cefc3e5 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 267 | r | future.BatchJobs.R | ###########################################################################
### This 'tangle' R script was created from an RSP document.
### RSP source document: './future.BatchJobs.md.rsp'
###########################################################################
|
145a94686fc7c39bd6995fd5b35c67de6e5939b7 | 1513303cd0bbae5998e196a69d8a56017cca1e32 | /data_cleaning/R/clean.item.data.R | 74e1bfbf59476b7135da4d98ce1e6a4ff7bb0d63 | [] | no_license | eryka-nosal/item_analysis_automation | a6321999ce6d5cb7db1b025e49d1bc8433c5ab69 | 9b254538d9a17a3e02dc9f0b061510d2c71586ef | refs/heads/main | 2023-08-05T05:29:55.294766 | 2021-09-15T03:07:42 | 2021-09-15T03:07:42 | 406,593,319 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 43,642 | r | clean.item.data.R |
#' Clean and combine item response data and test & content item level information
#'
#' @param data_path
#' @param results_path
#' @param df
#' @param analysis.name
#' @param section.map list with specific structure
#' @param detect.section.totals
#' @param scores.to.include
#' @param date.columns
#' @param date.form... |
eef3ed1d990e5097942bd4a674957d91593ff358 | bb86b99ddc0695884cfa7fbe099165433ddab38f | /tests/testthat.R | 588aecc1935223d8dbc16bb2140ac2848a954be7 | [] | no_license | rpruim/WestMIR | 71a50a6e93b6373bb1766edd8cdd875ba0c5916a | 6980dabd85e76c384769017a4a478863b3bc8855 | refs/heads/master | 2020-03-21T01:37:30.204154 | 2018-06-19T23:47:22 | 2018-06-19T23:47:22 | 137,952,002 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 58 | r | testthat.R | library(testthat)
library(WestMIR)
test_check("WestMIR")
|
c1019a9b34629bbcbc4051194699e2ae35739c7e | fc4cd95087e62913ca6f06f3921028d9520c3993 | /slides/lecture20_oop.R | 25de2ebcfa5d81b663e221528d315f6b8ed25f9e | [] | no_license | couthcommander/Bios6301 | b53a0e16ccae3433afdfc196490ab6795fbf83b1 | 06eb0e5d0da151b74de47ffae24c2a0f4ab04ffb | refs/heads/main | 2022-10-19T10:33:10.069916 | 2022-09-22T15:11:57 | 2022-09-22T15:11:57 | 200,882,515 | 8 | 9 | null | null | null | null | UTF-8 | R | false | false | 3,826 | r | lecture20_oop.R | class(1)
x <- 1:3
y <- x^2
lmout <- lm(y ~ x)
class(lmout)
unclass(lmout)
lmout
methods(print)
print.lm
stats:::print.lm
getAnywhere(print.lm)
methods(,lm)
plot(lmout)
lmoutsum <- summary(lmout)
coef(lmout)
coef(lmoutsum)
methods(coef)
getAnywhere(coef.default)
# make a new class
j <- list(name="Joe", salary=55000, un... |
82e7a1fd0ba4d8f82570c24372ffaccb1332d3c9 | 179fc537e7ef643a976ad5673a4729808807e6ee | /term_01/week05/linmodeld_week05.R | 792fa46332201edd2b286dd45c520944b639c467 | [] | no_license | jenniferp1/Foundations_of_Statistics | 3a1ae155b365a5dacd86eb32c3a2a8da18b8acad | 67e33653792046f88637cc4dc0347a42388e66fc | refs/heads/master | 2020-11-28T02:24:31.690847 | 2019-12-23T17:30:38 | 2019-12-23T17:30:38 | 229,679,944 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 627 | r | linmodeld_week05.R |
library(SDSFoundations)
#cor() describes the extent of the relationship between indpendent
#variable (x) and the dependent variable (y)
#linFit() model that expands on correlation coeff
#gives what the relationship looks like in terms of the
#actual variables involved - the specifice input and output
#model is def... |
191d34e8ed8ba528ecd85f8c5f89e732b2297e20 | b8b0b016c3ab270450a41d0f78620a5aa612a347 | /IWESEP2016/bubble_chart.r | 892238e79ecb65fc441d11715a22946d7faf18b2 | [
"MIT"
] | permissive | hideshis/scripts_for_research | 5fc232a5ec73811ece9d7d39ad619f52f2fabf94 | f633bdef0f9b959d7b18c8b95f169306eb8bb50d | refs/heads/master | 2020-04-15T22:03:36.481512 | 2016-10-12T06:44:37 | 2016-10-12T06:44:37 | 34,490,154 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 830 | r | bubble_chart.r | hoge <- read.csv("synthesized_info.csv")
dead <- subset(hoge, status == "dead")
arrive <- subset(hoge, status == "arrive")
library(ggplot2)
ggplot(data=hoge, aes(x=hoge$lifetime, y=hoge$co.evolution.rate, colour=hoge$status), xlab("lifetime")) + geom_point(aes(size=hoge$average.bug, alpha=.5)) + scale_size_continuous(r... |
f59484507857a3010bdcad1be3b76476afe5701d | 13dfdb1b95a769b214c10608459a2f4687d5fba3 | /man/run_monocle.Rd | fce9f8dd95373923220999ef54ffa01600af66d3 | [
"MIT"
] | permissive | kwells4/mtec.10x.pipeline | 79e4c9267f70af6a793e48502070f35cee74c1e5 | 19a7fdcc3a6ba4f3beda7af06cf925a3b6b97369 | refs/heads/master | 2023-01-28T00:57:24.550595 | 2019-04-03T17:22:10 | 2019-04-03T17:22:10 | 179,329,659 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,118 | rd | run_monocle.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pseudotime.R
\name{run_monocle}
\alias{run_monocle}
\title{Runs monocle on cells}
\usage{
run_monocle(mtec, quality_plots = FALSE, cores = 1, seed = 0)
}
\arguments{
\item{mtec}{a Seurat object}
\item{quality_plots}{OPTIONAL if quality plots... |
f4ff3a7d54b38130bbdb6cf0a54838ce1f39cc14 | 6936f25f3f1f5078ebffd995a3799e0537f484da | /EDA/Z_Test.R | 27636bbf7f74eb0bd3955c51a0f9fdbf9336754f | [] | no_license | Raghavaw/Mental_Health | 8f6c47fb66055ec6cb7f999a14ee21bc49c337aa | 66b3e5fbc978c62c52a68c6858745b173b7d3862 | refs/heads/main | 2023-03-28T15:46:43.762551 | 2021-04-04T12:38:42 | 2021-04-04T12:38:42 | 354,531,630 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 651 | r | Z_Test.R |
setwd('/Users/raghavawasthi/Desktop/COVID19/MentalHealth/Analysis/Cleand_Data/')
library(dplyr)
library(tidyr)
df = read.csv('Aprl_May_DataforBN.csv')
########## Gender ############
### Hypotheis is Female are more stressed than Men
Tbl = data.frame(table(df$GENDER,df$SOC5A))
table(df$GENDER)
res <- prop.test(x = ... |
b138e01135f06953e95423c1fb37af225c3a0596 | b97c41a569011b73f60fa311eba730aee6a633f6 | /man/eikos_y_labels.Rd | a3bda1a0ad39210e0f67a7fb01365ec55ca2cfae | [] | no_license | rwoldford/eikosograms | 10599388af9cd64de2225f4efbfd943e52591613 | 55b2b1b39b6296a747ebc2089e46316fde321dac | refs/heads/master | 2020-03-24T14:51:09.984366 | 2019-07-20T15:30:05 | 2019-07-20T15:30:05 | 142,778,661 | 4 | 0 | null | null | null | null | UTF-8 | R | false | true | 856 | rd | eikos_y_labels.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eikos_labels.R
\name{eikos_y_labels}
\alias{eikos_y_labels}
\title{eikos helper function. Returns grob with y axis labels.}
\usage{
eikos_y_labels(y, data, margin = unit(2, "points"), yname_size = 12,
yvals_size = 10, lab_rot = 0)
}
\argume... |
01c872db1fc5575186a672d379c47da575c3bdb0 | 7f0ad73a929ed6dcc4e7367ada2f02444125ed8e | /rprog-data-ProgAssignment3-data/rankall.R | bd8eb330dcc158500d6f9e35433fd3ed632f2a97 | [] | no_license | Macking/PlantsViewer | 98a5f3b47200bf1f1133f90b8f43927c92812b3a | 9170b32279fa44f5aaca71b2b819f1b923be1b6c | refs/heads/master | 2021-01-17T11:58:59.154605 | 2014-09-18T14:16:41 | 2014-09-18T14:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,372 | r | rankall.R | rankall <- function(outcome, num = "best") {
## Read outcome data
data <- read.csv("outcome-of-care-measures.csv",colClasses = "character")
## Check that state and outcome are valid
if(!(outcome %in% c("heart attack","heart failure","pneumonia")))
stop("invalid outcome")
if(!(num == "best" |... |
681490e978a879e6f3e6c9150dd0d9c19a07e1d9 | 962bbfcf46ea78970195b1434817c8c9840dc910 | /ps4/benchSubsetting.R | 77703f38b69dab3e9dd305d434ca74f9339a9da2 | [] | no_license | eyedvabny/berkeley-statistical-computing | 4bbd91b516753399f0555dd681e1a0b7a3bca4a9 | 2f73c4c857d315e07a58e642ad6d08b2dd9c8721 | refs/heads/master | 2021-01-22T10:22:20.482273 | 2014-12-14T06:20:15 | 2014-12-14T06:20:15 | 23,902,471 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,130 | r | benchSubsetting.R | ##---- benchSubsetting ----
library(dplyr)
library(microbenchmark)
# The following function will benchmark list subsetting for numeric and string lists
# The input parameter is the length of the vector to be subset
benchSubsetting <- function(length){
# Create a random vector of numbers
test.nums <- runif(length)
... |
9c1301ac0eaef5b895aaa6a0cbb409f2b560d454 | 70a6150f46cb238dda699167c9af67b5641f4792 | /R/gbm1.R | f4901204458978a953fad4f225618b3e9a17f019 | [] | no_license | SherryFu0315/Click-Fraud | 72507851ec7ac621804865121a69b8f5e1aa54ff | bc2f10e071c1e5f0cc76d9e7abc69a3770acffbd | refs/heads/master | 2020-03-09T00:13:04.617109 | 2019-05-26T21:15:59 | 2019-05-26T21:15:59 | 128,482,409 | 0 | 0 | null | 2018-04-07T00:13:45 | 2018-04-07T00:13:44 | null | UTF-8 | R | false | false | 3,833 | r | gbm1.R | require(gbm)
require(dplyr)
library(RCurl)
require(foreign)
CalculateAveragePrecision <- function(expectedColumn, submittedColumn) {
df <- data.frame(expectedBySubmitted = expectedColumn, submitted = submittedColumn)
print(df)
df <- df[order(df$submitted, decreasing = T),]
df[, "expectedByExpected"] =sort(... |
77f1f3e15665ac39fdbfe69f3dc734d90d89d2ec | df71fd15183d51e233fd380b5b15689af7575f88 | /cachematrix.R | 8abd79abd3f31628c9fe8e79e7aae44ea0568688 | [] | no_license | JosemiCan/ProgrammingAssignment2 | fea9f1b743796d73e04867e299d5d5e84c4e403c | b6d1d9d357c7aeb5e4b2f3de28db9b311ba4ca38 | refs/heads/master | 2020-03-28T09:35:57.729273 | 2018-09-09T16:47:21 | 2018-09-09T16:47:21 | 148,045,471 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 828 | r | cachematrix.R | ## the functions below cache the inverse of a matrix
## the first function creates a matrix object that cahe its inverse
makeCacheMatrix<-function(m=matrix())
{
n<-NULL
set<-function(x)
{ m<<-x
n<<-NULL }
get<-function()m
setinverse<-function(inverse) n <<-inverse
getinverse<-function() n
... |
b822232c98f5eedc6bfa50299f4e113fef5b4207 | fb157ec338c0cf5425ae7ccfa16173f2dfa341ec | /R/mse_acq_rate.R | fef1ce24ab4cac7a990e31101ac395d3abe7cc5e | [
"Apache-2.0"
] | permissive | weinbergerlab/carriage-simulation | 626bfc92ac8872fced16724bb02d656269edbbef | 0190bfe0921e5e9759ad926839e77bd9f6226b75 | refs/heads/master | 2022-06-20T02:51:14.232016 | 2022-05-31T21:17:48 | 2022-05-31T21:17:48 | 152,311,839 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 485 | r | mse_acq_rate.R | mse_acq_rate<-function(ds,set.acq.rate,set.ses.effect){
ds1a<- lapply(ds,function(x) return_transition_prob(x) )
ds2.lo<- lapply(ds1a, function(x) x[x$ses=='Low',1:3])
ds2.lo<- do.call(rbind, ds2.lo)
ds2.hi<- lapply(ds1a, function(x) x[x$ses=='high',1:3])
ds2.hi<- do.call(rbind, ds2.hi)
mse.lo<- ... |
4291a57f1ff08a0d708250fbbe6f3503aa342d10 | 0471999fce7bfcba220ae361a843b9fc69af53e7 | /R/swagger_args.R | bcb717c56969fdb90de20d70154fd297bfa7a23d | [
"MIT"
] | permissive | karthik/stevedore | e25d0c1fb9073de4979a22c69e92acb54d7ab2d6 | 8d12d3a02a211557ff264780a17a4789604ee40e | refs/heads/master | 2020-03-19T10:06:51.132342 | 2018-06-06T15:03:29 | 2018-06-06T15:03:29 | 136,344,185 | 0 | 0 | null | 2018-06-06T14:54:38 | 2018-06-06T14:54:37 | null | UTF-8 | R | false | false | 10,233 | r | swagger_args.R | ## Convert a specification for an endpoint into an R function that o
swagger_args <- function(method, path, x, handlers, types, spec) {
args <- swagger_args_parse(method, path, x, spec)
help <- swagger_args_help(x, args, handlers)
list(help = help,
handler = swagger_args_handler(args, handlers, types))
}
... |
3c538fe4193b1635744f4d31482ddfe8e16d1b4a | 06dc6375f13b9094713657a38ae6432d5b8e177b | /Pj_MestradoIPT_Exp3/main_exp3.R | ccd08158411376683160f3704ec2bb0e67ebeef6 | [] | no_license | FernandoLimaVicente/mestrado2018 | 64fbf6c484fb8710c55bd41530e357113f7ae584 | f6c83b98ff68aa1d8fa2cdef150ccdf5092a615f | refs/heads/main | 2023-04-13T04:21:57.209951 | 2021-04-26T17:06:49 | 2021-04-26T17:06:49 | 361,784,791 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,161 | r | main_exp3.R | ###########################################################################################
# Instituto de Pesquisas Tecnologicas de São Paulo #
# #
# Aluno: Fernando de Lima Vicente ... |
16ff4ccdb8aa322ce6cb50276dad692e294659c4 | 68c52a5b67a20c720c7defec86f39c0cde9130b7 | /R/geom_qq_unif.R | 8cffef8a583106e7e1483d1a558cd1db12067ddd | [
"CC-BY-2.5"
] | permissive | Subhayan18/ggGWAS | 914ffbc07fd54db5c144a9df4ba720849d479166 | 5b4b09bbe9ef4ff3b225fd352937041edceb31fd | refs/heads/master | 2020-04-26T05:26:38.326229 | 2018-12-06T14:10:11 | 2018-12-06T14:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,199 | r | geom_qq_unif.R | #' @title Q-Q plot
#' @description Quantile-quantile plot to compare the p-values of a GWAS to a uniform distribution.
#'
#' @inheritParams ggplot2::geom_point
#' @param observed.thresh same scale as observed (e.g. 0.05), observed <= observed.thresh AFTER computing expected
#' @param geom \code{"point"} by default, \co... |
1b535541f0feb82d38bbcd9cf47447ab35916cb4 | 9e3969324cab013b3e6d6f3b91d592de58c30196 | /lib/doFuture/tests2/NMF/manual.R | 5a2e24fcab1851545324a6d80ddee2cb7acbaf01 | [] | no_license | MadeleineGastonguay/svenson_hf_DO | 157b04716ebc94d3a8fb8c7da2cba7dad3d1778b | 6308e51558e3aaf4a651806962e66b921e255bc5 | refs/heads/main | 2023-08-22T17:35:05.552279 | 2021-10-18T18:12:45 | 2021-10-18T18:12:45 | 418,558,443 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,070 | r | manual.R | path <- system.file("tests2", "incl", package = "doFuture", mustWork = TRUE)
source(file.path(path, "utils.R"))
install_missing_packages(c("cluster", "lattice", "MASS", "mgcv", "isoband", "testthat", "ggplot2"))
install_missing_packages(c("BiocGenerics", "Biobase"), bioc = TRUE)
pkg <- tests2_step("start", package = "N... |
910df7f01fc9e32df3fba668029254b202fcfd47 | 74c98a3887ec31986982ef71e7625416dd668e0b | /app.R | 5e520221e81331cef80f2b774fa3f5d868f7acd3 | [
"Apache-2.0"
] | permissive | sjentoft/pendling_viz | 908e0003f4468fb9a112a2d265266cc01109aabc | 89b656f4e0ad42c8a6085c519ecbb9a94e4d62ca | refs/heads/master | 2021-05-18T16:17:36.169897 | 2020-04-24T11:19:14 | 2020-04-24T11:19:14 | 251,313,592 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,526 | r | app.R | # This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
options(encoding="utf-8")
library(PxWebApiData) # For collecting in data from statbank
library(shiny)
library(leaflet)
library(leaflet.extras)
library(dplyr)
library(htmlwidgets)
library(ggplot2) # for plotting... |
6c6ba64370fe367aced7c7091c888c6f0b5fd291 | 7c741b09d2b950adea6369ef861b3679fca47612 | /Final.R | 09c30aa193ec96e404abf2347164c2c05e1966d8 | [] | no_license | tanmay310/RepData_PeerAssessment1 | bdeb56b3a00d728824c7ce2a12f389da9d3fe5aa | c4a4cbba076ccbd5ef59d31969c854a40e9c5797 | refs/heads/master | 2021-03-17T21:53:23.059214 | 2020-03-14T05:37:25 | 2020-03-14T05:37:25 | 247,020,841 | 0 | 0 | null | 2020-03-13T08:18:51 | 2020-03-13T08:18:50 | null | UTF-8 | R | false | false | 3,794 | r | Final.R | # Reproducible Research: Peer Assessment 1
```{r, echo=FALSE, results='hide', warning=FALSE, message=FALSE}
library(ggplot2)
library(scales)
library(Hmisc)
```
## Loading and preprocessing the data
##### 1. Load the data (i.e. read.csv())
```{r, results='markup', warning=TRUE, message=TRUE}
if(!file.exists('activity.... |
3fecfec322f51cf4f9329d7b932ee8246c4b1ded | 7804a576283d5bb9a8bab6c6ea8e43d991a6ef36 | /tikz/make.R | 0952dd5710d4eed4a552b29ba77c1e0074989f70 | [] | no_license | washingtonquintero/microeconr | 43d479de25c1b9edb4f94579c1b77dc60236e53c | 3ebc7f7a4aa313700de5abdb820c6ca0354c4f8d | refs/heads/main | 2023-03-19T23:42:38.392466 | 2021-02-19T05:31:49 | 2021-02-19T05:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 405 | r | make.R | files <- c("OLS2D", "vectors2D", "OLS3D", "frishWaugh")
for (i in files){
Sweave(paste("./Rnw/", i, ".Rnw", sep = "")) ;
system(paste("pdflatex ", i, ".tex", sep = ""))
system(paste("convert -density 600 ", i, ".pdf ", i, ".png", sep = ""))
system(paste("rm ", paste(i, c("aux", "log", "tex"), sep = ".",... |
aef393b9de75037c011dbf5a7e38e518c25c72fd | f1cd85f61409e7bb90fbc0123cd70f29e77dd685 | /R/genSimGLMEM.R | 955809464e8dd40f772a3b8d9e1db2691a5386d2 | [] | no_license | cran/riskPredictClustData | b3074ba1b469501c9c2ef7b76e236def020fdfba | f2c67a5c732378e464caf4fdbfe0129371d69a9f | refs/heads/master | 2020-04-08T15:16:30.520055 | 2018-11-28T07:50:03 | 2018-11-28T07:50:03 | 159,472,234 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,873 | r | genSimGLMEM.R | # modified on June 13, 2018
# (1) remove row names after create data frame in simulated data
#
# modified on March 7, 2018
# (1) sort by cluster id
# (2) change 'sid' to 'cid'
# (3) change 'uid' to 'subuid'
#
# modified on Dec. 28, 2017
# (1) set the default values: beta0=-6
#
# simulate data from logis... |
d932b95e6088df75a85201f0081ccfe6e818dd19 | ab476e4f2ae151a9da6c6d422ea5ada747a98d25 | /Source code/test1/output/wine-35_star_Saturated.r | 38ecc8ff9b8c3340c25559f60de22d67a7373463 | [] | no_license | Pushkarfrns/EECS_891_Project | ae10f3c586fe49545516e240e9724d65c1d636f0 | 003f3d41521af85a5f486f3bb053a76cc5c13089 | refs/heads/master | 2020-09-29T08:10:03.606204 | 2019-12-10T02:32:59 | 2019-12-10T02:32:59 | 226,995,246 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,375 | r | wine-35_star_Saturated.r |
9, 38, 38
(a3,1.36..2.86) & (a12,1.27..2.51) & (a7,0.34..2.37) & (a6,0.98..2.35) & (a11,0.48..0.88) & (a13,278..780) & (a5,70..116) & (a2,2.31..5.8) & (a4,20..30) -> (d,3)
8, 24, 24
(a3,1.36..2.86) & (a12,1.27..2.51) & (a7,0.34..2.37) & (a9,0.41..1.42) & (a6,0.98..2.35) & (a10,5.43..13) & ... |
eaf7d0ac37576f73cb3e6cb6c9f9a4d37e44fb99 | 4223c866bd17f791523a9c11adfa5269df28d5c6 | /man/zoomtoseg.Rd | 9dfe98f66f3402caa3fcd8a6a9e0997c1c69bcc9 | [] | no_license | jsta/riverdist | f394c3dbe4266241b119e7e627c2b2d8e9dd1350 | ea5732ceecd62231264e9a72d481d707a74eb0f5 | refs/heads/master | 2021-09-02T16:31:35.069386 | 2017-12-29T15:27:19 | 2017-12-29T15:27:19 | 105,771,176 | 1 | 0 | null | 2017-10-04T13:23:17 | 2017-10-04T13:23:17 | null | UTF-8 | R | false | true | 721 | rd | zoomtoseg.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dissolve_zoom.R
\name{zoomtoseg}
\alias{zoomtoseg}
\title{Zoom to segment}
\usage{
zoomtoseg(seg, rivers, ...)
}
\arguments{
\item{seg}{A segment or vector of segments to zoom to}
\item{rivers}{The river network object to use}
\item{...}{Ad... |
0ab7d0d66fcd9d41cd208df95edfe98c299d7142 | c459dd32d88158cb064c3af2bc2ea8c7ab77c667 | /integration/30_aliquot_integration/findmarkers/findmarkers_pt_vs_others_wilcox.R | 8ea096c2fe95c3b3fdb00c22b5abc77c0f320dd5 | [] | no_license | ding-lab/ccRCC_snRNA_analysis | d06b8af60717779671debe3632cad744467a9668 | ac852b3209d2479a199aa96eed3096db0b5c66f4 | refs/heads/master | 2023-06-21T15:57:54.088257 | 2023-06-09T20:41:56 | 2023-06-09T20:41:56 | 203,657,413 | 6 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,844 | r | findmarkers_pt_vs_others_wilcox.R | #!/usr/bin/env Rscript
## library
packages = c(
"ggplot2",
"Seurat",
"dplyr",
"plyr",
"data.table"
)
for (pkg_name_tmp in packages) {
if (!(pkg_name_tmp %in% installed.packages()[,1])) {
print(paste0("No ", pkg_name_tmp, " Installed!"))
} else {
print(paste0("", pkg_name_tmp, " Installed!"))
}... |
42da73be7aa48d5000439ff5721bb4f22772cea4 | bb0e4fe1cca50c8b389b9f0608e19c9ec49362a3 | /Ch6_Regression Methods.R | 367f8c00ff4e667929ac27c0d360ebdaa7f5ba8c | [] | no_license | Soy-code/MachineLearning_with_R | 1228a2ea466cb20340a90f583682f4f956bc5aa8 | 04ffdd5bbb32ab003b9c2e98769011fa1be3abf2 | refs/heads/master | 2022-12-08T07:38:33.788131 | 2020-09-08T11:04:08 | 2020-09-08T11:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,225 | r | Ch6_Regression Methods.R | setwd('E:\\BITAmin\\Machine Learning with R, Second Edition_Code\\Chapter 06')
launch=read.csv('challenger.csv', stringsAsFactors = T)
str(launch)
b=cov(launch$temperature, launch$distress_ct) / var(launch$temperature) ; b
a <- mean(launch$distress_ct) - b * mean(launch$temperature)
a
r <- cov(launch$temperat... |
1653686f636486667c652f18aa971e1b3683c441 | 682be37f828a663f0c1afb936988cbbc9fa8fe00 | /man/player_profile.Rd | 2ca3dc7a0a215f9a8b7e406a10877698a66a4817 | [] | no_license | cran/bigchess | 33a7929bbb10729a50be4d1b6c0193e244466be4 | a7447339542daaae957262810e3a0276f23fdd3e | refs/heads/master | 2021-07-03T13:28:43.254433 | 2020-08-05T15:10:02 | 2020-08-05T15:10:02 | 133,085,082 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,755 | rd | player_profile.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/player_profile.R
\name{player_profile}
\alias{player_profile}
\title{Compute player profile}
\usage{
player_profile(df, player)
}
\arguments{
\item{df}{data frame from read.pgn or read.pgn.ff files with stats computed.}
\item{player}{string ... |
b62cae96ea480527092187f8cc804f675b1dab2d | 80e4457a50f9f27e8f3dbf6b583ed09c37422b9c | /demo/autoreg.R | 9e38136e526af31049df4571d317722e3e06cd62 | [] | no_license | snowdj/midasr | 65afacc06adf5bafd8f8afe34ffa041708f95d41 | 6800e04a0d6205b4b4bfc532c9732232dd3f965c | refs/heads/master | 2021-01-18T21:07:20.848052 | 2014-04-30T08:09:32 | 2014-04-30T08:09:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 860 | r | autoreg.R | library(midasr)
theta.h0 <- function(p, dk) {
i <- (1:dk-1)/100
pol <- p[3]*i + p[4]*i^2
(p[1] + p[2]*i)*exp(pol)
}
##Generate coefficients
theta0 <- theta.h0(c(-0.1,10,-10,-10),4*12)
##Generate the predictor variable
xx <- simplearma.sim(list(ar=0.6),3000*12,1,12)
aa <- lapply(c(50,100,200,500,1000,1500,2... |
24cace937fcf2a770ae52d6c16797588a827d046 | 1c8fb441a707ebb3e9bc504a28db19e11745b05d | /The_R_Graph_Gallery/circlize_demo.R | 220208f73f5a609abbc8152d500a9b31270d4184 | [
"MIT"
] | permissive | HouyuZhang/Learn_R | 48006affa7a12c551ee906281407fe86d9983c4c | c0f6fe9d6dd35686f323662dec77e826aa1c09cd | refs/heads/master | 2023-02-17T21:54:29.261004 | 2021-01-18T08:23:14 | 2021-01-18T08:23:14 | 278,016,759 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 951 | r | circlize_demo.R | chrM <- read.table("hg38.50bp.chrM_cutfreqs.bed", sep = "\t", header = T)
colnames(chrM) <- gsub("Human_|_ATACseq|_chrM","",colnames(chrM))
scaled_chrM <- cbind(chrM[,1:3], scale(chrM[,4:ncol(chrM)]))
pdf("Human.pdf")
circos.clear()
circos.par(start.degree = 90)
circos.initializeWithIdeogram(species ="hg38", sort.chr ... |
bd71b788627908198b29047aeec85702e567d373 | a05a747d3d5167feb74a417d242eed70e950c1ae | /reserver.R | 55b4cb73b000c474984d36fa794fad14b9342005 | [] | no_license | cuibaps1/RTest | d3939e72c596710daa8be0eb62b63b497a84a856 | 66663811f5b81bf7ce73b38ba2d5ae5bc4039ca9 | refs/heads/master | 2020-04-26T11:07:06.064886 | 2019-03-03T12:47:33 | 2019-03-03T12:47:33 | 173,506,020 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 437 | r | reserver.R | #' Reverses a string or number
#' @param toReverse A string or number
#' @return the reverse of the provided string or number
#' @examples colin_reverser("foo")
#' @importFrom magrittr "%>%"
#' @export
colin_reverser <- function(toReverse){
split <- autoSplit(toReverse)
rev(split) %>% paste (collapse = "")
}
# He... |
272843e46c4c2530a05423717fb96a2a18eae1ae | d1f45559b044ccbf7486099a3c41c98d1741a247 | /man/GoodmanKruskalGamma.Rd | c5c4de7adc8b6b763251fcba2172f7654a908da0 | [] | no_license | MathieuMarauri/DescTools | 74ecb8568696ca6501d11d3a7f5ca9cd83f1bbb2 | c8abac510b9ea126aad2034df6dc11856dc9608d | refs/heads/master | 2020-03-11T08:06:54.418764 | 2018-04-17T10:00:22 | 2018-04-17T10:00:22 | 129,875,184 | 0 | 0 | null | 2018-04-17T08:52:29 | 2018-04-17T08:52:29 | null | UTF-8 | R | false | false | 3,866 | rd | GoodmanKruskalGamma.Rd | \name{GoodmanKruskalGamma}
\alias{GoodmanKruskalGamma}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Goodman Kruskal's Gamma
%% ~~function to do ... ~~
}
\description{Calculate Goodman Kruskal's Gamma statistic, a measure of
association for ordinal factors in a two-way table.\cr
The fun... |
de65386b9a621ada366fb10beea6f9cdf33f8ee0 | 0ae23d02aa6b7c50ad50ced88b0791e67ab41d01 | /server/modules/analysis/service/rChain/rFile/system/init-utils.R | c13f84a9ea2ba78a388c582bbb2f92a658a2ea92 | [
"MIT"
] | permissive | openforis/arena | 84a493acdae9a36d684e279a99ad2994c0e05966 | 49a51a9cb185751626666a81e257c8c8b9b78fab | refs/heads/master | 2023-08-16T15:47:41.403916 | 2023-08-16T11:02:50 | 2023-08-16T11:02:50 | 139,414,164 | 15 | 5 | MIT | 2023-09-14T09:10:41 | 2018-07-02T08:31:42 | JavaScript | UTF-8 | R | false | false | 484 | r | init-utils.R | arena.dfColumnsAs = function (df, columns, mutateFunction) {
return ( df %>%
dplyr::mutate(across( all_of( columns), mutateFunction))
)
}
arena.dfColumnsAsCharacter = function (df, columns) {
return ( arena.dfColumnsAs(df, columns, as.character) )
}
arena.dfColumnsAsLogical = function (df, columns) {
ret... |
92e332825ac369a5f34dae75406f1233b85f63ed | e5b50b052d111753a7beb335911b6a98aca845d7 | /tests/testthat/test-build_gran.R | 2b4ea8462e0f6330dc0280f59cd8ebccc5b2f2d6 | [] | no_license | Sayani07/gravitas | a0d33639aa3329570ba02a67faa7f015a0b0b7e3 | c1430843c5cd9bc547dc0f768cd38b979f4b5f6a | refs/heads/master | 2022-06-28T06:36:04.146695 | 2022-06-14T01:25:28 | 2022-06-14T01:25:28 | 177,514,371 | 15 | 6 | null | 2021-12-03T03:14:16 | 2019-03-25T04:30:24 | R | UTF-8 | R | false | false | 1,331 | r | test-build_gran.R | context("build_gran")
x <- lubridate::ymd_hms("2018-11-04 18:37:04 EST")
# test_that("build_gran inputs", {
# expect_is(x,c("POSIXct", "POSIXt"))
# })
test_that("build_gran output length equals input length of time vector", {
expect_length(build_gran(x, "hour", "week"), length(x))
})
#
# test_that("build_gran er... |
1554f13b48a791374af1a3c1317cf2b6b5f3defd | e1c699092a3f005f762b46ceb0457dab3b9842a4 | /Simulation/kadane simulation.R | b6710dd0a4c1aecce80b1a118be0b5638882bd58 | [] | no_license | ArjanHuizing/kadaneImpute | 8eb9db94159203a3e626722027a6d6e6d9cdb5ba | 881a00e0caaa8eff31188e2df4554d1eb57bcdac | refs/heads/master | 2020-06-27T05:23:28.056728 | 2019-08-11T21:02:43 | 2019-08-11T21:02:43 | 199,855,698 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,531 | r | kadane simulation.R | # Testing the method
library(MASS)
# simulation parameters
res <- data.frame(set.r = NA, match = NA, r = NA, bias = NA, ci = NA, width = NA)
nsim <- 5000
match <- c(FALSE, TRUE)
corr <- c(seq(0, 0.9, by = 0.1), 0.99)
set.seed(134589)
pb <- txtProgressBar(min = 0, max = length(match)*length(corr)*nsim, style = 3)
fo... |
fb1bd91c16cc21662091395176489e6bf78847c6 | 673c7afcbec4e4e99c5e6f0e0f300a3b0751ece5 | /man/gen_object_stack.Rd | 2f820a81bf03b048efb70d673b23b1d9402e92ed | [
"MIT"
] | permissive | chenxifreidrich/MicrogliaMorphoClass | be94d678fafa1163855a9800a674a3757706a4ea | 4e29b11b54799e4f0ce38e42d95dd6003abdbb85 | refs/heads/master | 2021-10-01T17:52:01.346663 | 2018-11-27T21:57:29 | 2018-11-27T21:57:29 | 159,403,375 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 617 | rd | gen_object_stack.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen_object_stack.R
\name{gen_object_stack}
\alias{gen_object_stack}
\title{Generating Object Stack}
\usage{
gen_object_stack(label_image, image)
}
\arguments{
\item{label_image}{The object identified labeled image stack}
\item{image}{The ori... |
0c714e24fccb22ee1e8a731c1f3d01ff0cdb4a65 | 9d3ccd4b3908742dac1a1be4cb6f3e1be9287c4d | /code/simulation/IVW/plot_IVW.r | 6bb88e73435507b143a003c7ae41f231ced0c479 | [] | no_license | andrewhaoyu/MR_MA | f8a35d74ea48d1662de26ee234f305606be2742b | 2e7ac792f1c40ddbc0eb6639d68981672584ccef | refs/heads/master | 2022-07-30T21:53:34.668451 | 2022-07-07T14:29:09 | 2022-07-07T14:29:09 | 203,250,618 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,868 | r | plot_IVW.r | #plot the ratio estimate distribution
n_vec <- c(15000,75000,150000)
alpha_vec <- c(0.00,0.01,0.03,0.05)
beta_vec <- c(0,0.3,0.5,1)
setwd("/Users/zhangh24/GoogleDrive/MR_MA")
times = 100000
#i1 correponding to n
#i2 corresponding to alpha
library(ggplot2)
n.row <- length(alpha_vec)
n.col <- length(n_vec)
ratio_est_li... |
8b013ac1cc3d523741fb709edd25f4f6b7c4f487 | 07dce07a38713513603901a3daa5dd23d264a093 | /ui.R | 8819ed8c195351d650a96544dc4d40b72e4c528d | [] | no_license | avonholle/int-and-conf | 614ae4210df031a3559e7e81b28d21d011598029 | 5da68a23c74e589cb21b6fb67f8540f2136b7ea4 | refs/heads/master | 2021-03-12T21:35:04.627508 | 2015-09-20T12:25:24 | 2015-09-20T12:25:24 | 31,473,633 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,850 | r | ui.R | # ui.R
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Demonstration of statistical interaction and confounding"),
sidebarPanel(
h2("Select parameters for simulation"),
p("Regression coefficients for logistic regression:"),
sliderInput("n1","Sample size:", min=50, max=5000, value=500, ... |
6004ce4e62d09bd972a45e80f60bc9f3d91c735c | 14b74a9f7aabd4f63212d83984a68cb22e7aab3e | /man/gui_out_grid.Rd | 4128eb02183f9bb4bef1b919b65be0f973bcb38d | [] | no_license | mariasotoruiz/vmsbase | e85eb87276326fb998412c7b2b148cf29f4bbba3 | 7273270cde06a54b83c53abd55180b8edd41d283 | refs/heads/master | 2020-05-24T08:01:56.567016 | 2018-12-03T13:40:03 | 2018-12-03T13:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 866 | rd | gui_out_grid.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gui_out_grid.R
\name{gui_out_grid}
\alias{gui_out_grid}
\title{VMS Effort Gridding GUI}
\usage{
gui_out_grid(vms_db_name = "")
}
\arguments{
\item{vms_db_name}{The path of a VMS DataBase}
}
\value{
This function does not return a value.
The ... |
e2ecbbe421643b7e1437446599a201f2c0e80ded | 2defb970de80008d3a5f77728bf3f896832fe2e1 | /HutchCOVID/R/calc_model_stats.R | 21098a0985c2fd92b68f36431bed46948feae27a | [] | no_license | FredHutch/COVID_modeling_schools | bd211844ebd00c5977ac6ad0ef8b298aa7d6a8f2 | 98c1a879e1685b78a21427780f0f34941c309034 | refs/heads/master | 2023-08-31T14:37:46.365370 | 2021-10-06T16:36:47 | 2021-10-06T16:36:47 | 413,988,503 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,696 | r | calc_model_stats.R | #' Runs model and alculates metrics for calibration from the model output
#'
#' @param pars vector of parameters (i.e. those being calibrated)
#' @param pars_names names of pars parameters
#' @param pars_base other fixed parameters
#' @param pars_temporal other temporal parameters
#' @param state initial state
#' @par... |
6b976b2c3a44b406817edf0f333968f4580bff3c | 0853134802bde59234f5b0bd49735b9b39042cfb | /Rsite/source/Rd-man-files/mx.symbol.random_uniform.Rd | 004d6e05c3cfbc23a74bf33b09480103c983672d | [] | no_license | mli/new-docs | 2e19847787cc84ced61319d36e9d72ba5e811e8a | 5230b9c951fad5122e8f5219c4187ba18bfaf28f | refs/heads/master | 2020-04-02T03:10:47.474992 | 2019-06-27T00:59:05 | 2019-06-27T00:59:05 | 153,949,703 | 13 | 15 | null | 2019-07-25T21:33:13 | 2018-10-20T21:24:57 | R | UTF-8 | R | false | true | 1,311 | rd | mx.symbol.random_uniform.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mxnet_generated.R
\name{mx.symbol.random_uniform}
\alias{mx.symbol.random_uniform}
\title{random_uniform:Draw random samples from a uniform distribution.}
\usage{
mx.symbol.random_uniform(...)
}
\arguments{
\item{low}{float, optional, default... |
b42e24a2d28684fe43bf53014bec7f763835b0b1 | 86c3077f8fb8469f1f02f33be3ce0121846e2027 | /Rscript/tilFrode.R | 8dfca656d70c396190e9b6a4581dfe62b2b4631a | [] | no_license | asmundb/Master-project | 834ab9d4a2775c5e0abeaecb50e87e0f03d21450 | 354dc568acd9df1a1ba26f94d06c69d3f36071f0 | refs/heads/master | 2020-12-24T06:35:28.903067 | 2017-11-02T13:50:17 | 2017-11-02T13:50:17 | 73,470,769 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,713 | r | tilFrode.R | require(ncdf4)
require(fields)
source("read_ISBA.R")
mat_cor <- function(x,y){
if (all(dim(x) != dim(y))){
print("fu")
stop()
}
corr <- array(NA, dim=dim(x)[1:2])
for (i in 1:dim(x)[2]){
for (j in 1:dim(x)[1]){
corr[j,i] <- cor(x[j,i,], y[j,i,],use="na")
}
}
return(corr)
}
mat_rm... |
d1cdf1dd22377d072b999e672fa6e1de8195030c | ab7d15d06ed92cd51cc383dc9e98ae2a8fa41eaa | /R/add_node_clones_ws.R | a0cee175b602db9b64860747cf8a7beef613a0d3 | [
"MIT"
] | permissive | rich-iannone/DiagrammeR | 14c46eb994eb8de90c50166a5d2d7e0668d3f7c5 | 218705d52d445c5d158a04abf8107b425ea40ce1 | refs/heads/main | 2023-08-18T10:32:30.784039 | 2023-05-19T16:33:47 | 2023-05-19T16:33:47 | 28,556,914 | 1,750 | 293 | NOASSERTION | 2023-07-10T20:46:28 | 2014-12-28T08:01:15 | R | UTF-8 | R | false | false | 7,863 | r | add_node_clones_ws.R | #' Add clones of a selection of nodes
#'
#' @description
#'
#' Add new nodes to a graph object of class `dgr_graph` which are clones of
#' nodes in an active selection of nodes. All node attributes are preserved
#' except for the node `label` attribute (to maintain the uniqueness of non-`NA`
#' node label values). A ve... |
96b06cae3d26d2ac66245eeec6c40742d8b25bbc | 72c48a44d1adfa0e6391cbf3f38b449cf64dafd6 | /cachematrix.R | 12bee2dbea019559b3e43b88330bc196241d019c | [] | no_license | marcocaldascruz/ProgrammingAssignment2 | 5fecfbebce296033a94a95b89d0128fb2b4c7c07 | fb34837f7d836b698f7b29a0c556dc37c1262598 | refs/heads/master | 2020-04-06T04:49:42.535746 | 2015-07-26T10:42:00 | 2015-07-26T10:42:00 | 39,719,877 | 0 | 0 | null | 2015-07-26T09:07:10 | 2015-07-26T09:07:10 | null | UTF-8 | R | false | false | 1,739 | r | cachematrix.R |
## This function sets the values (matrix and inverse matrix values).
makeCacheMatrix <- function(x = matrix()) {
## Init the value of m, its will be the inverse value of the matrix.
m <- NULL
## it implements the “set” Function which sets the value of the matrix.
## the m value is NULL (yet).
... |
7878744a4ad061a47f3d84c828905e6266aa9cb6 | d3e21ebbd77a742fcdd6c5507fa98f22ad04c1c7 | /missForest.R | d3f67207dc7c65d8abec0d548cbee216752cf344 | [] | no_license | sunandha21/Data-Imputation-methods | 0a3f2cb6b154a2ebdfc545b4027b7eda8b3046d1 | 4f69aeccb68b726ade0cf6789ea167f0ffc817b5 | refs/heads/master | 2021-08-14T22:04:59.934964 | 2017-11-16T22:23:40 | 2017-11-16T22:23:40 | 111,028,520 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 796 | r | missForest.R | data("iris")
library(missForest)
iris.mis<-prodNA(iris,noNA = 0.1)
iris.mis <- subset(iris.mis, select = -c(Species))
summary(iris.mis)
iris.imp<-missForest(iris.mis)
iris.imp$ximp
summary(iris.imp)
iris.org<-subset(iris, select = -c(Species))
RMSE(iris.imp$ximp,iris.org)
#knn
newtrain = data.frame(sepal_length = ir... |
e0e34c1d477e71ef37995a4a4e6016070e5b4f68 | c54aba701f4d66469027c63149a6d3bee27d30f9 | /man/is_compressed.Rd | ab809918a465396e8a17d842bdfa463b534276e0 | [
"PDDL-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | ezwelty/dpkg | b5d052dd9d5b0f48f4a8e19e45ac21d266632d53 | c85622136bfb4d3ee68c1e1debdb4caf0ad15a37 | refs/heads/master | 2020-06-27T13:06:05.566736 | 2017-08-24T21:46:25 | 2017-08-24T21:46:25 | 97,056,022 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 318 | rd | is_compressed.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compression.R
\name{is_compressed}
\alias{is_compressed}
\title{Test if path is for a compressed file}
\usage{
is_compressed(file)
}
\arguments{
\item{file}{(character) Path to file.}
}
\description{
Test if path is for a compressed file
}
|
4591edaddb2be9cdea0095f4e31b8918838888ee | 7bd4dcab4ad9e36e9482ca21b048db0079ac5ffe | /man/RcmdrPlugin.TeachingDemos-internal.Rd | 76bc3b3a35adde13ad6d620706ad54cd86302369 | [] | no_license | cran/RcmdrPlugin.lfstat | ac44c644366515a29a859727ca4937beccb55c23 | ca8531c2e9b9e4b1e41123eefaa33c5e6ffb1ca9 | refs/heads/master | 2020-12-25T17:25:08.222651 | 2018-06-26T09:11:20 | 2018-06-26T09:11:20 | 17,693,121 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 973 | rd | RcmdrPlugin.TeachingDemos-internal.Rd | \name{RcmdrlfstatPlugin-internal}
\title{Internal RcmdrlfstatPlugin objects}
\alias{BFIcalc}
\alias{MAMcalc}
\alias{Q95calc}
\alias{activelf}
\alias{activelfandbf}
\alias{bfplotcalc}
\alias{createlfdatacalc}
\alias{dmcurvecalc}
\alias{fdccalc}
\alias{getlfopt}
\alias{hydrocalc}
\alias{listlfobj}
\alias{lo... |
c31062a271ad367cb87f88f74af6eab5cb552620 | 4ade856b9ead7be1e1ce0918e2a74560c4d5d074 | /Utility/omisAPI.R | 4643e8912401f9fcdd53d386161c055cfe26007c | [] | no_license | richardblades/omis-support | c9592c860f8198c38d81ee1a81e804aa4cee1891 | d8ad1313731df7d6529870e698ba536638e70bc5 | refs/heads/master | 2021-01-18T22:12:39.046487 | 2016-08-31T11:45:44 | 2016-08-31T11:45:44 | 63,946,830 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,653 | r | omisAPI.R | #'------------------------------------------------------------------------------------------
#'
#' o m i s A P I . R
#'
#'------------------------------------------------------------------------------------------
#-------------------------------------------------------------------------------------------
# Establish... |
6fb45345d22ec79555d0e27244c5184def35d469 | 13dce2c67a4637add28f79831b3f223304d8913d | /Code/3.Statistics and hashtags.R | b38b023d5ff36b0aec16d7e1386537a8007654e4 | [] | no_license | ycui4/Inferring-Twitters-Socio-Demographics-to-Correct-Sampling-Bias-of-Social-Media-Data-for-Augmenting | 31bd9a6c5102cf3bb7ba1dddb98ac591066183c8 | b20212a787abb7a5476d7b7bbf23b00add7ef4da | refs/heads/master | 2020-07-11T08:18:45.924621 | 2019-08-26T14:11:34 | 2019-08-26T14:11:34 | 204,486,073 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,375 | r | 3.Statistics and hashtags.R | library(dplyr)
file1<-read.csv('direction/TF1-1500.csv', header=T)
file1$is_tweet_get<-NA
file1$numberOfTweetGet<-NA
file1$numberOfGeoTweet<-NA
file02<-'direction/TF Timeline csv/'
hashtag<-c()
f1<-function(x){
a1<-strsplit(x, "<")[[1]][2]
a2<-strsplit(a1,">")[[1]][2]
return(a2)
}
for(i in 1:nrow(file1)){
... |
0b66039406a10f027576ab0f393a2e1b8f498434 | 34eeedb61265a9c6cfdbf788ec106d98171a9b9a | /NPSDashboard/server.R | 974c143e0f012a03579b5cc547fd1a8e4f853e41 | [] | no_license | artsclubtheatre/npsdashboard | 61df01c6a92d2965de1db95ae641ba7a60a491e4 | 41c0e955939d036d6895324ee89962a2455c337a | refs/heads/master | 2020-08-17T07:02:53.286493 | 2020-03-16T22:48:53 | 2020-03-16T22:48:53 | 215,629,481 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,178 | r | server.R | library(shiny)
library(tidyverse)
library(flexdashboard)
library(plotly)
library(reshape2)
library(ggwordcloud)
library(DT)
load("npsData.RData")
shinyServer(function(input, output, session) {
output$companyScoreGauge <- renderGauge({
score <- round(companyScore$npsScore)
gauge(value = score, ... |
192775d8bf3d6b00068333b3d68aa81169e1283a | e681fc551cfcff3f6358c62cf12cedc7cde320e1 | /occ change idea.R | 3989c79fb90fc26cdf8a79ef7e8134e621e1fec3 | [] | no_license | Privlko/ru_mobility | e6d8ae5311e44ed7ff8173ce551744ea47cebc66 | f9dd20d5ae216427391ff2fe6bd4f518293a762c | refs/heads/master | 2021-07-09T14:14:26.057468 | 2020-07-02T15:44:01 | 2020-07-02T15:44:01 | 146,010,528 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,693 | r | occ change idea.R |
# package space -----------------------------------------------------------
library(tidyverse)
library(lme4)
library(ggplot2)
library(plm)
library(dplyr)
# load the data -----------------------------------------------------------
load('C:/Users/Ivan/Desktop/dir/papers/ru_mobility/data.Rda')
?plm
# quick plot ---... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.