Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I want to classify Sentinel-2 data using ANN. If anyone knows how to do it in R. Please let's me know
df<-read.csv(file.choose())
head(df)
You can use this code to read data in R
Set working directory before running this code
Sentinel<-list.files(pattern = "tif$",full.names = T)
Sentinel<-stack(Sentinel)
# Check the data
head(Sentinel)
Sentinel
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is there a R package for this? I´m looking for something similar to qrencoder but in 1D
For now, my walkaround solution is to use python-barcode through reticulate but I would like to use a R library.
library(reticulate)
barcode <- import("barcode")
name <- barcode$generate('EAN13', '7750243002455', output='barcode_svg')
My ultimate goal is to show barcodes of my products on a Shiny app
Have a look at the zintr package, which uses zint.
barcode_print(8675309, "barcode1.png")
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I would like to simulate in R, N Bernoulli/Binary random variables with a prescribed correlation. I have been using the package (MultiOrd) with the function
generate.binary.
However, it is too slow. Is there a computationally fast way to do this in existing packages? Thanks.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Im trying to build a database of historical performance of Bitcoin and a few other larger coins. To do this I want to extract the main table from this URL (with these particular dates) into r:
https://coinmarketcap.com/currencies/bitcoin/historical-data/?start=20130428&end=20170705
What would be the best package and method to do this in r?
Thanks
The rvest package is helpful here:
library(rvest)
url <-read_html("https://coinmarketcap.com/currencies/bitcoin/historical-data/?start=20130428&end=20170705")
table <- url %>%
html_table() %>%
as.data.frame()
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I need to create a vector containing image objects on R, and then to program a loop in which I take and display those images.
The following is an example of what I want to do, in case I could not make myself clear:
for (i in 1:6){
for (j in (i+1):7) {
display(combine(as.Image(image[i]),as.Image(image[j])),method="raster",all=TRUE)
}
There I am using EBImage. The problem is that this package is not suitable to my ends.
The question is: Do you know another package that allows to display images AND to do it in the way I need?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
How can I create Phyllotaxis spirals in R? Example of such images is shown at the bottom of this page: http://www.mathrecreation.com/2008/09/phyllotaxis-spirals.html The image is attached below:
These are also similar to Fermat's spiral: http://en.wikipedia.org/wiki/Fermat%27s_spiral
I searched and found this method: Spiral Graph in R
but it does not create one of above patterns.
Using the formula from http://algorithmicbotany.org/papers/abop/abop-ch4.pdf
golden.ratio = (sqrt(5) + 1)/2
fibonacci.angle=360/(golden.ratio^2)
c=1
num_points=630
x=rep(0,num_points)
y=rep(0,num_points)
for (n in 1:num_points) {
r=c*sqrt(n)
theta=fibonacci.angle*(n)
x[n]=r*cos(theta)
y[n]=r*sin(theta)
}
plot(x,y,axes=FALSE,ann=FALSE,pch=19,cex=1)