Questions tagged as 'array'

1
answer

How to make a count of repeated arguments in R

I have a spreadsheet, I have to do some operations on the data, so I exported to the R and manages to select the important arguments, now I need to know how many repeated elements there are in a column: for example PRTR4: 4 VALE5: 20 . . ....
asked by 09.03.2018 / 21:03
2
answers

how to put this here in ascending order? [duplicate]

<?php $var = 5; for ($i = 0; $i <= $var-1; $i++) { $new_data = array($i => $count[$i]["rank"]); foreach ($new_data as $i => $key) { print(var_export($key).","); } } ?> It returns this: 87,41,88,32,26,2...
asked by 18.02.2018 / 14:43
2
answers

Array generator in Python

The program does the following: I say the number of rows and columns I want in my array and then assign a value to each column in each row, the problem is that it seems that when I specify the number of rows through the append () it creates a "fa...
asked by 09.02.2018 / 02:33
1
answer

Null object in array - Android Base adapter

Hello I was doing a gallery, I created the Adapter, it worked normally, then proceed to the step of listing files in a directory and then put it in the list: ArrayList<GalleryItem>items = new ArrayList<>(); File pa...
asked by 18.01.2018 / 15:23
1
answer

Create Array using result of a SELECT

public class TelaGrafico extends javax.swing.JFrame { Connection conexao = null; PreparedStatement pst = null; ResultSet rs = null; /** * Creates new form TelaGrafico */ public TelaGrafico() { initComponen...
asked by 18.01.2018 / 14:41
2
answers

Retrieve php array data through index value

My array in print_r looks like this: [ { "id": "A220", "name": "Dipirona", "symbol": "R$", "rank": "1", "price_br": "8.4", "price_usd": "2.0" "total_supply": "287.0", "m...
asked by 20.02.2018 / 20:13
1
answer

Import external URL array with PHP

This link link generates an array, would you like to import it into a local array, how do I? I tried to do it: $url = "https://api.coinmarketcap.com/v1/ticker/"; function curl_get_contents($url) { $ch = curl_init(); $timeout = 5;...
asked by 20.02.2018 / 21:07
2
answers

Mirror inputs with their values

Is it possible for jquery to understand the elements of an array value coming from the html? ps: I do not know if it is correct to say that in html there is an array. I am creating with html and jquery a dynamic input that is having the v...
asked by 30.01.2018 / 19:59
1
answer

Two arrays in foreach js

I have a function in JavaScript that sends requests with the contents of the lines of a textarea , is a looping that runs through an array and sends the requests with the data of these indexes of the array, the problem is that I need to cr...
asked by 23.01.2018 / 04:41
1
answer

How to join two vectors in another that does not have repeated values?

I need to make a program that reads the values of two vectors R and S , and store its values in a third vector called V . The detail is that it can not contain any element repeated in the V vector. I was able to make...
asked by 07.09.2018 / 16:25