2020欧洲杯时间表

Dark mode beta

You’ve been asking for dark mode for years.
2020欧洲杯时间表 The is finally here.

Change your preferences any time.

Questions tagged [r]

2020欧洲杯时间表 R is a free, open-source programming language and software environment for statistical computing, bioinformatics, visualization, and general computing. Please provide minimal and reproducible example(s) along with the desired output. Use `dput()` for data and specify all non-base packages with `library()` calls. Do not embed pictures for data or code, use indented code blocks instead. For statistics related questions, use http://stats.stackexchange.com.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

How to exclude certain labels when using leaflet in R?

I'm making a map in R using leaflet... My data contains the columns - latitudes, longitudes, country name, region, and population. And I have set the Country name, region and population to appear as a ...
0
votes
0answers
10 views

How can I make a figure like this in R showing sampling time points for each individual?

Recently saw a figure like this in a paper (below) and was thinking to organize my data in a similar way to make it easy to visualize which subject had sampling done at which day. I won't need the ...
0
votes
0answers
10 views

Error: “argument is not an atomic vector; coercing[1] FALSE”

I'm new to R and am having trouble (1) generalizing previous stack overflow answers to my situation, and (2) understanding R documentation. So I turn to this community and hope someone will walk me ...
1
vote
1answer
13 views

Joining tables in R while adjusting for “ties”

I'm working on a project that analyzes the ROI of people participating in a bunch of contests. For each contest I have a table that has everyone's ranks, and another table that has the payout for a ...
0
votes
1answer
9 views

Separate rows on string & preserving original

I'm working on a project where I want all permutations of specific strings. I'm using tidyr::separate_rows to split and duplicate on a specific string, but I want to preserve the original row. ...
0
votes
0answers
22 views

How to visualize an Image using PCA

I have an image, jpg format. I need to visualize the image using PCA and t-SNE. I need to form a feature vector for each pixel using a 5-dimensional feature vector consisting of normalized vertical ...
1
vote
2answers
26 views

Rcpp: transform matrix to vector

Generally I want to transform a 2-D matrix from Rcpp to a vector in R, it should be very simple by using "as(m)", however, I still get a matrix from R, I wonder why? SHould I remove the attr manually ...
0
votes
1answer
10 views

Error: (converted from warning) package ‘glmnet’ is not available (for R version 3.5.3)

I've been sitting here for the last two hours and have tried everything under the sun to get this to work and I haven't had any luck. I am using Debian 8 and I just did a fresh download of R i.e. got ...
0
votes
0answers
8 views

Caret train using auto_arima_model results in “Error: Please use column names for `x`”

Documentation is here http://rdrr.io/github/sfeuerriegel/caret.ts/man/auto_arima_model.html library(caret) # without exogenous variables library(forecast) data(WWWusage) # from package "forecast" ...
0
votes
0answers
12 views

R studio restore R markdown file to previous version from a while ago after I created a new project. How do I get my recent file back?

SO I was trying to set up a new project in r studio when I had a couple of files open in r studio. When I created the project, It reset my r markdown file to its contents from 2 months ago randomly. ...
0
votes
2answers
27 views

For Loop in R (print if is not NA)

I have a 3x5 matrix below and I want to print the non-NA values. I was able to get to this point but it doesn't print anything. [,1] [,2] [,3] [,4] [,5] [1,] NA .93 NA .14 .23 [2,] .12 .92 ...
1
vote
0answers
26 views

R Convert nested for to nested operator with global variable

The program should remove rows from pts. I would like to use nested operator %:% instead of nested for loops if possible, but I'm not sure how to use rbind/append in a removing way. library(raster) ...
1
vote
1answer
19 views

Need to pick up on NAs to flag (is.na not working)

is.na is not working, however when I use sapply(df, function(y) sum(length(which(is.na(y)))))the NAs are accounted for. I want to detected NAs in order to flag them and create a new column based on ...
0
votes
0answers
14 views

How to speed up loading data at start of shiny app

I'm pretty new to using shiny apps to visualize data. We plan to host our shiny app on our own server. So for that we used docker to deploy our app. However the app is super slow to load, since we ...
1
vote
1answer
35 views

How to mutate multiple columns into new multiple columns with dplyr

I am trying to mutate 3 columns into 3 new columns in a larger table (with more columns). 3 of the new columns depend on first existing 3 columns. 4th new column depends only on the 4th existing ...

15 30 50 per page
1
2 3 4 5
22365