Questions tagged [programming]

For open data related questions about computer programming, programming languages (such as Python, R, or Java), and application development.

Not meant to replicate questions that belong on StackOverflow.

110 questions
4
votes
1 answer

Where can software developers interested in open government data be reached?

I am looking for most recommended places outside of the open government mailing lists to invite software developers interested in open government data to participate in Poplus.org re-usable civic technology "components" effort. In particular we are…
3
votes
2 answers

How to scrape rugby union data from espn.co.uk

This is the site I want to gather data from but I'm really not sure where to start. http://www.espn.co.uk/rugby/playerstats?gameId=271423&league=271937
Rugby_fan
  • 39
  • 1
2
votes
0 answers

offline bar code databases

I'am building an application that reads the bar code and give you information based on the bar code is there free database i can download and use it offline if not what are the available online databases
1
vote
0 answers

how to add scaled variable to original dataset in R

all I am trying to add scaled raw soil data element based on IQR, could you please help, how I can add this new scaled variable to original dataset, could you confirm the below if it is correct? > ph1 <- read.table("clean.raw.elements.txt",…
bioinfonext
  • 111
  • 2
1
vote
1 answer

Koeppen-Geiger Climatic Zones as netcdf file

Is there a way to obtain a netcdf file of the Koeppen-Geiger Climatic Zones?
aaaaa
  • 133
  • 3
1
vote
0 answers

Most frequently used programming language commands in Python

I am looking for a dataset which lists the most often used commands for Python in terms of their relative frequency. Sample result could look like: | Function name| Relative Frequency |:-------------|-------------------:| | function | …
1
vote
0 answers

Dbscan time duration gauge

I'm running a Dbscan. On a matrix that's 10333 by 10333, using an epsilon value of 50. Is there any way to gauge how long this will take? It's been running for the past 8 hours now. Also does it depend on the magnitude of the elements value?
Dr_Watcher
  • 41
  • 1
0
votes
0 answers

ould anyone help me to locate error and run this R code to simulate for balanced pleiotropic effects in Mendelian Randomization study?

The parameters are taking value of NA [Kindly refer the image]. Did I missed any part of the code related to the information "temp = as.integer(commandArgs(trailingOnly = TRUE))" Summary-level simulations with balanced pleiotropy and InSIDE…
0
votes
0 answers

Alluvial Plot / Sankey Diagram in R - Use Percents Instead of Frequencies

I am trying to create an alluvial plot using ggplot and the ggalluvial. I am less interested in the frequency change per position, but instead, I'm more interested in the percent change per position. Is there a way to change my plot from frequency…
0
votes
1 answer

Is there way to get a consistent output from optFederov()?

In R, when I create a full factorial plan with the fac.design() function from the DoE.base package to reduce the number of necessary runs, the optFederov() function from the AlgDesign package gives a different answer every time the code is…
Indy
  • 1
0
votes
1 answer

R: sampling using dbinom(y-0:200)

In R: I have a sample (y) of length 1e4. y = sample(0:200, 1e4, replace = TRUE) I have plugged this sample into: dbinom(y-x,100,0.3) However, I would like to gather samples from this function but simulate for x values from 0:200 i.e x = 0:200 For…
0
votes
0 answers

R cannot allocate vector. Where is the object?

I misjudged how much memory would be required and my computer ran out of memory when R was 76% done with an lapply function. Is there a way to recover and saveRDS the object or do I have to start over from the beginning?
Eric
  • 1