Questions tagged [subscript]

A subscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly below the baseline.

Subscripts are common in mathematical notation (generally indicating position, such as the index of a variable in a vector) and chemistry formulas (e.g. H2O).

Subscript and superscript (Wikipedia)

625 questions
0
votes
1 answer

Generating sample non-picked values using negative subscripting in R?

Stats student here. I've been tasked with combining 2 sets of values and then combining them for the purposes of doing permutations tests. In this example I combine the vectors into one, then use the sample() function to pull out half the values…
Tim A.
  • 11
  • 3
0
votes
0 answers

Subscript out of bounds error in R

My simple code is: library(kernlab) zoo <- matrix(sample(1:10, 240*7200, replace = TRUE), 240, 7200) mx=data.frame(matrix(ncol = 2, nrow =30)) mx[1,1]=0 mx[1,2]=1 m=0 mm=1 for (i in 1:30){ m=m+length(zoo[,1]) mx[i+1,1]=m mm=mm+length(zoo[,1]) …
Ram
  • 359
  • 1
  • 6
  • 15
0
votes
1 answer

cannot subscript of type [String]

i get this error on: cell.naamItem = VragenInformatie[indexPath.section][indexPath.row][0] i have this in the same class: var VragenInformatie: [[[String]]] = [[[]]] and this is how the array looks like: var VragenInformatie:…
Cing
  • 806
  • 1
  • 11
  • 29
0
votes
3 answers

Subscript into Placeholder of Input HTML Tag

Hi I'm triyng to use subscript characteres into the placeholder of the html input tag. But i got this: Installed Power kWp If I use for…
user3750515
  • 31
  • 2
  • 7
0
votes
2 answers

Accessing a Singleton property by subscript in Swift

I have a Singleton class: class Session { static let sharedInstance = Session() private init() {} // app properties var token: String! var promotions: JSON! } In a networking class I have multiple async calls that I fire off using a map…
Kyle G
  • 4,347
  • 4
  • 26
  • 39
0
votes
1 answer

Why do I get a "vector subscript out of range" error for my code?

Why do I get a "vector subscript out of range" error for my code? class CSVRow { public: string const& operator[](size_t index) const { return m_data[index]; } size_t size() const { return m_data.size(); } …
Alsphere
  • 513
  • 1
  • 7
  • 22
0
votes
1 answer

Raster Calc with KendallATS function from "smwrQW" package

This is my first question on StackOverflow. I am trying to use Mann-Kendall trend test on a brick of rasters consisting of 15 layers (time-series of counts) to make three rasters (sen slope, tau-b and p-value). I need to use tau-b and not tau-a,…
N-Acil
  • 3
  • 4
0
votes
1 answer

Subscript with matrix generated by assign()

I assigned a matrix to a name which varies with j: j <- 2L assign(paste0("pca", j,".FAVAR_fcst", sep=""), matrix(ncol=24, nrow=12)) This works very neat. Then I try to access a column of that matrix paste0("pca", j,".FAVAR_fcst", sep="")[,2] and…
nelakell
  • 189
  • 2
  • 13
0
votes
0 answers

Subscript in text that includes a /n

I am trying to write the following label on the X-axis: "N2O emissions from the soil 0-0.3 m layer (kg/ha/yr)". I need the '2' to be a subscript and 'soil 0-0.3 m layer (kg/ha/yr)' to be on the second line of the label. I have read different posts…
Cecile
  • 527
  • 5
  • 22
0
votes
2 answers

Excel VBA Sheets(Array()).Select Subscript out of range

Having a little problem with this tiny bit of code in Excel VBA. All I'm trying to do is select multiple sheets in a workbook and export them as one PDF. I have many Sheets that I don't want to hide or move around, so earlier in my code I looped…
drcoding
  • 153
  • 1
  • 3
  • 15
0
votes
0 answers

Error creating symbolic matrix of zeros in matlab

I'm trying to create a symbolic matrix initially filled with zeros. The error I'm getting is: "Subscript indices must either be real positive integers or logicals." The line of code that is producing the error is: v = sym(zeros(5, 4)). If I run…
0
votes
1 answer

Swift 2.0 Subscript issues with Dictionary

I've looked at the other questions on here about subscripting with dictionaries and I didn't see anything that quite fit what my scenario is. It may be that I'm still too new to Swift to realize it but in any case here is my scenario. I'm getting…
0
votes
1 answer

HTML Section with many elements - must stay together

I need to display a section of text that contains something like this: Also, 3 of these vertical lines of data need to be on the page. All independent from each other. I am having an awful time figuring out how to line everything up and keep the…
DPaulTN
  • 3
  • 3
0
votes
2 answers

Typo Is Not Subscriptable

I am trying to calculate taxable income from this calculator, and I keep receiving the error message "typo is not subscriptable." The error appears in the calcPEP function. I am trying to pass AGI from my TaxReturn Object into my calculator to…
Alex Durante
  • 71
  • 2
  • 7
0
votes
2 answers

C++ Error: String subscript out of range

I wrote some code for my cryptography class and it runs on sagemath.com terminal but not in visual studio 2013. I'm not sure what's giving me the error though. I'm thinking it has to do with the for loops but I can't figure out what to…
Andre
  • 45
  • 1
  • 2
  • 9