Questions tagged [variable-length]

Refers to anything whose length can vary

Refers to anything whose length can vary

290 questions
1
vote
3 answers

Variable who's reference is always to len(dict)

cardPayments={} rowNumber, NumOfCardPayments = 0, len(cardPayments) for x in range(5): cardPayments.update({x:x}) print(cardPayments) print('cardPayments: '+str(NumOfCardPayments)+'\n') Output: {0: 0} cardPayments: 0 {0: 0, 1:…
Phoenix
  • 4,386
  • 10
  • 40
  • 55
1
vote
1 answer

Error in xy.coords dealing with NAs

I'm getting the following error when I run the plot code: Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ. I have many NAs in my data set which I understand is causing the problem. Any ideas as to: how to deal with NAs in…
monarque13
  • 568
  • 3
  • 6
  • 27
1
vote
3 answers

Using sed to replace delimited lists inside larger body of text

I have a large file with many instances of variable length lists of numbers in square brackets, max one list per line, list is never empty, e.g.: [1, 45, 54, 78] or [32] I want to get rid of the square brackets and the commas, e.g.: 1 45 54 78 or…
Hamid
  • 43
  • 5
1
vote
2 answers

Perl regex without variable length lookbehind?

I'm trying to hyperlink 400 or so keywords in a 50,000 word markdown document. This is one of several steps in a Perl "build chain", so it would be ideal to achieve the hypelinking in Perl also. I have a separate file contain all the keywords, and…
Tode
  • 13
  • 2
1
vote
1 answer

Use concat and maintain length of variable

I'm trying to use concat on some variables. These variables have been declared as chars: declare v_order_date char(10); declare v_quantity char(11); declare v_plant char(100); I have a cursor where I am setting these as some outputs. To call the…
user1682055
  • 93
  • 2
  • 3
  • 9
1
vote
0 answers

Understanding Hadoop VIntWritable compression

I know its a bit shame, but i don't understand the compression technique in VIntWritable and VLongWritable. Can someone elaborate with an example Code snippet from WritableUtils.java public static void writeVLong(DataOutput stream, long i) throws…
S Kr
  • 1,831
  • 2
  • 25
  • 50
1
vote
3 answers

Center text inside relative div with no size

I have following (simplified) HTML structure:
Prompt text
and…
tomash
  • 687
  • 1
  • 6
  • 17
0
votes
1 answer

How to Write a Function That Will Loop Through Dataframes of Differing Lengths

I have two different dataframes of different lengths, each with two value columns. What I want to do is find the mean and sum of each row of the two value columns in each dataframe by writing a function that will calculate both desired columns for…
0
votes
0 answers

How to configure firebase version 9.19.1 on your react-native application?

I am using firebase version 9.19.1 on my react-native application and now its giving me error problem with my application about the length. I need some help with my configuration file for using firebase version 9.19.1. How to i fix this length error…
0
votes
0 answers

Attempting to create a multiple linear regression model with variables of differing lengths?

I am trying to run a multiple linear regression but my variables have slightly different lengths. My variables are SVI_1 (N=133), SVI_2 (N=131), SVI_3 (N=135), and SVI_4 (N=132). I am trying to assess the impact of these 4 variables on my dependent…
0
votes
0 answers

How deal with variable length LSTM NN?

I'm analyzing sequences of coordinates with different lengths and need to classify in actions. For this task I'm using LSTM, but fitting is not working, I prepared 2 dummy examples of the issue I'm having, the 1st one is working properly if you run…
0
votes
0 answers

error when using causalweights package in R

I was trying to estimate a causal effect using inverse probability weighting from the causalweightspackage. However, I keep running into the following error message: Error in model.frame.default(formula = d ~ x, drop.unused.levels = TRUE) :…
0
votes
0 answers

How do i keep the tail zero in my dataframe and avoid variable lengths differ error from R

I have a dataset like below:- Location Reading Above 0.0370 Above 0.0261 Below 0.0660 Above 0.0420 now when I load this in R, it appears prefectly in the console but when I run the below script- model <- aov(Reading ~ Belmopan) it…
Spybuster
  • 19
  • 5
0
votes
1 answer

Variable Length MIDI Duration Algorithm

I'm trying to compile MIDI files, and I reached an issue with the duration values for track events. I know these values (according to this http://www.ccarh.org/courses/253/handout/vlv/) are variable length quantities where each byte is made up of a…
FireTheLost
  • 131
  • 7
0
votes
0 answers

How to modify number of characters in a vector?

so I have this dataset where age of the respondent was an open-ended question and responses sometimes look as follows: Age: 23 45 36 years 27 33yo ... I would like to save the numeric data, without introducing (and filtering out NAs), and I…