Questions tagged as 'data'

1
answer

Returning week number of the month

In January this year (2018) I have 5 weeks in it, being: 1 week: 1 to 7; 2 weeks: 8 to 14; 3 weeks: 15 to 21; 4 weeks: 22 to 28 and 5 weeks: 29 to 31 (or for others from 29 to 04 February). When I use the function...
asked by 30.01.2018 / 13:30
2
answers

Select multiple rows from a data.frame, from the largest values R

I have the following date.frame in R: df <- data.frame(x = c(10,10,2,3,4,8,8,8), y = c(5,4,6,7,8,3,2,4)) df x y 1 10 5 2 10 4 3 2 6 4 3 7 5 4 8 6 8 3 7 8 2 8 8 4 First point : I would like to get all rows conta...
asked by 13.06.2017 / 18:56
2
answers

How to insert current date in postgresql?

I need to set in a column in postgresql the current date of the insertion as default value for the field. How can I do this?     
asked by 27.09.2016 / 21:13
2
answers

PHP Current Usage Days / Days Missing [duplicate]

I would like to know if you have a specific function or how to do it on the current working day, for example, today is the 26th day ie the 18th working day of the month and so it goes and as the month changes it starts again at zero and goes c...
asked by 26.07.2016 / 13:41
1
answer

Average repeated lines

People, I have a data.frame as follows Gene 12h 10d 6w Slc39a10 1.52 -6.72 -1.84 Slc39a10 1.52 -6.72 -1.84 Mfsd6 -0.15 0.672 0.26 Mfsd6 -2.55 -...
asked by 16.10.2018 / 20:31
3
answers

Convert date with timezone

new Date () in javascript returns me this format:    Tue Apr 01 2014 13:43:13 GMT-0300 (BRT) I need to convert this to a java.util.Date. For this I am trying to use SimpleDateFormat () but I did not find a pattern that worked, it always r...
asked by 01.04.2014 / 18:51
2
answers

I can not format date

I'm trying to format one date to be the same as another, the first comes straight from the bank but the other needs to be in the same format. Calendar cal = Calendar.getInstance(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); Stri...
asked by 03.07.2018 / 00:00
1
answer

Endpoint function problem R

I'm working with this data.frame: St <- data.frame(read.csv2("interest_LastMonthDay.csv")) Date AAA_S.t. Date.1 BBB_S.t. Date.2 CCC_S.t. 1 27/12/88 1,80400 28/12/88 0,8368 28/12/88 0,0080 2 28/12/88 1,7...
asked by 24.06.2016 / 19:10
2
answers

Change date format in PHP

I'm trying to change the date format as follows: public function getDate() { $date=$this->date; return $date->DATE_FORMAT($date,'%b %d %Y %h:%i %p'); } But I can not get the date in AM and PM format. solution: publi...
asked by 07.11.2014 / 14:55
4
answers

Add variables to get end date

I have a form with a lease registration. In it, I have the fields $datainicio , $meses and $datatermino . The start date I put automatic, according to the date of the day. The months should be placed at the time of registratio...
asked by 28.03.2016 / 20:19