All Questions

3
answers

How to define the value of a variable from a function?

I want something like, a function that will be passed a variable as a parameter and a value that will be applied to it, how can I do that? For the code below did not work: function setVariableValue(variable, value) { variable = value;...
asked on 18.06.2017 / 03:08
3
answers

What should I observe when creating a hash code?

Still talking about answer about hash code it was not clear what should be observed to produce good hash codes . I understand that it needs to be a number that does not generate a lot of repetition, but is this enough?     
asked on 22.03.2017 / 13:16
2
answers

.XLSX file reading in R

What is the problem and / or difference between reading a file in .txt and .xlsx in R ? Reading in .xlsx Can I have more problems than in .txt during an analysis? A friend asked me to do everything in ....
asked on 20.03.2017 / 14:54
2
answers

How to transform String from time to an integer?

Example, I get a String with the time of day "16:20". The day has 1440 minutes. How to know in what interval from zero to 1440 is this time? An integer value.     
asked on 30.03.2017 / 04:24
2
answers

Using String.Replace the string remains the same

I have the following string : string tt= "{\"Response\":{\"StatusCode\":200,\"StatusMessage\":\"OK\",\"Content\":{\"family\":{\"codigo\":14,\"descricao\":\"Cal\u00e7a\",\"frontoffice\":1,\"posicaofront\":31,\"posicaoprint\":26,\"fundo\":\"#c0...
asked on 17.02.2017 / 14:36
2
answers

What is the difference between SET and SETX?

To fix a new environment variable in Windows I noticed that there are the SET and SETX commands. What is the exact difference between the two commands?     
asked on 20.02.2017 / 21:12
2
answers

How does an anonymous type return?

I have a method that should return a collection of anonymous objects: /*Aqui deveria ser o tipo anonimo "AnonymousType"*/ [AnonymousType] ListarAnonimo() { //Especifica um "template" para o tipo retornado. var lista = new[] {...
asked on 11.02.2017 / 22:12
3
answers

How to assign NA as value?

I have the following line of code: enem$TP_COR_RACA <- factor(enem$TP_COR_RACA, levels = 0:5, labels = c("Nao", "Branca", "Preta", "Parda", "Amarela", "Indígena")) I want to replace occurrences of the "Nao" value with NA...
asked on 29.03.2017 / 16:58
2
answers

How to receive a string and by the switch to check in C?

I have to develop an algorithm that gets the name of a place, for example "School", and based on this, make a check of the string in switch , and if it is "School ", then he sends a message to the user about what to do, for example," Stu...
asked on 28.03.2017 / 00:07
1
answer

R is not recognizing the csv file separators

I have some files to work with in R, with data in decimal numbers. Files that have separators such as ; are being read correctly, but one of them has , as the border between cells. I do not know how to fix this problem in Linux Ubu...
asked on 27.10.2017 / 14:17