Questions tagged [variable-length]

Refers to anything whose length can vary

Refers to anything whose length can vary

290 questions
0
votes
1 answer

JS select length without ID

I'm trying to collect the length of several select. How can I know the length of each select? The way I found is $('#mylist option').length which seems not feasible in this case since I don't have IDs for each select. The console.log shown below…
rd1218
  • 134
  • 12
0
votes
1 answer

What is stack guard page and probing stack?

I'm analysing how the compiler implements the variable-length array in c99. The following is my c code and disassembly which is commented on my understanding. The code is compiled with "-O3 -fomit-frame-pointer -fno-stack-protector -fpie" c code: #…
tmal
  • 47
  • 6
0
votes
2 answers

Find all permutations possible of a string but of all possible lengths

getting simple permutations of a string is easy but how do you do if you want different length permutations For eg: def permutations(string): if len(string) == 1: return [string] else: perms = [] for i in…
0
votes
1 answer

Variable lengths differ, R

#restricting sample replicatedata_firststage <- replicatedata_full %>% filter(!is.na(belief_treatment_w3), hk_local == 1, followup_postjuly1st_w3 == 1, !is.na(guess_july1_2016_partust_w3pos)) replicatedata_firststage #directional…
0
votes
1 answer

Python: Add Two Integer Lists of Different Lengths Together as One List

What I have: first = [1,2,3] second = [1,2,3,4] What I want: third = [2,4,6,4] first + second = third I've tryed using numpy and zips but they all stop after the smallest list is complete.
0
votes
2 answers

AWK-Get total count of records for numerical grouped column

I have a variable which splits the results of a column based on a condition (group by in others programming languages). I'm trying to have a variable that counts the NR of each group. If we sum all the groups we should have the NR of the file. When…
0
votes
1 answer

matrix code simplification and generalization

Good day, Please i need assistance trying to generalize this code for any matrix the data PoliticalDemocracy is available in the lavaan library What I…
0
votes
2 answers

Neo4J variable-length pattern

Is it possible to write a Cypher query with a variable-length patter, that specifies that nodes between the start and end node can only be nodes with a certain property? I think that a query like the following would match all of the below…
DigitalJedi
  • 1,577
  • 1
  • 10
  • 29
0
votes
2 answers

For loop continuing past set end point (matlab)

I have an array of matrices which are all different lengths. I want to compare the distance of each item in matrix 1 to the items in matrix 2 and so on. The for loops I've written below work well except when it reaches a matrix which is length 2.…
Susanna
  • 3
  • 1
0
votes
1 answer

Fitting data frame probability distributions with different lengths - EnvStat - looping in R

I'm trying to fit probability distributions in R using EnvStat package and looping to calculate multiple columns at once. Columns have different lengths and some code error is happening. The data frame does not remain in numeric format. Error…
Marcel
  • 147
  • 4
0
votes
2 answers

Change length of an object using the get() function R

I'm writing a function to analyse .csv files in a directory on my hard drive, using a series of for and while loops (I know for loops are unpopular in R, but they're good for what I need). The function creates a number of data-frames, and performs…
James.H
  • 25
  • 6
0
votes
0 answers

Cast as decimal

I have 4 value in a column. For example; ColumnA 2.651 3.5 4.55 7.9 And I want to sum it all and cast as a decimal; select CAST(sum(ColumnA) as Decimal(LEN(sum(ColumnA)),2)) FROM tablename; however I am getting this error: Msg 102, Level 15,…
0
votes
2 answers

Flutter 'List' has no instance getter 'lenght'

I'm new to flutter. I am getting an error like this, can you help me? I've been stuck in http for json for 5 days, the codes in the source don't work. :( L It says list not entered but when I enter it does not accept it. I don't know on which line…
0
votes
1 answer

Data Engineering: Parse binary data stream with schema and variable length fields

I have a data pipeline that receives data from multiple sources, one of which streams binary data in a known schema, with one field being of variable length. I need to parse this data into a tabular format I can work with later (probably parquet)…
0
votes
1 answer

how to implement variable length argument function in scala

I have to concatenate k different lengths of strings into one string res and save res string into ArrayBuffer[String](). But the k is variable. For example, val result = new ArrayBuffer[String]() result.+=("1\t" + A.toString() + "\t" + ls.pid +…
Bowen Peng
  • 1,635
  • 4
  • 21
  • 39