Posts by Luciano Hauschild • 431 points
13 posts
-
1
votes1
answer592
viewsQ: Lines with alternate colors for a category variable ggplot
I have a database with ration per animal per day. Just follow one part of the base to get an idea: Animal Time Consumo 5 1 2.53396 5 2 2.32906 5 3 2.94379 5 4 3.36162 6 1 2.89082 6 2 2.53898 6 3…
-
2
votes1
answer85
viewsQ: Graphic with same color lines for factors
I have a date frame (DF) of consumption per animal and per day Below is the data below of only two animals Animal Dia Consumo 5 9 2533.96 5 10 2329.06 5 11 2943.79 5 12 3361.62 5 13 2890.82 5 14…
-
0
votes1
answer45
viewsQ: Unique numbering in data frame
I have a database that contains information of consumption per animal and per day. However, the animals entered the experiment on different days. Initially I need to get all animals to start…
rasked Luciano Hauschild 431 -
2
votes1
answer755
viewsQ: Multi-line chart
I have a data frame with information of weight gain as a function of the time of several animals. Accurate plot a graph with connected lines. However I need a line for each animal in a single graph,…
rasked Luciano Hauschild 431 -
4
votes1
answer94
viewsQ: Organize a time series
I have a base with collected information on weight gain per animal. They were collected at different intervals for each animal. Follow part of the base just below Animal Dia Ganho 5 2 0.99 5 9 1.01…
-
3
votes1
answer310
viewsQ: Calculate average and deviation time series data
I have a database of information of consumption of animals. The date of beginning of collection of consumption of each animal is different. Here is an example with only two animals: Animal Dia…
-
6
votes1
answer2388
viewsQ: Merge data frames
I have two data frame (see below) with information on consumption and gain of animals. Consumption was collected each day and gain in larger intervals. I want to join one next to the other, having a…
rasked Luciano Hauschild 431 -
3
votes2
answers126
viewsQ: Generate repeated values in R
In the frame date below I want those on days that have no gain information that the gain is repeated based always on the last collected information. For example from day 2 to day 15 the gain will be…
rasked Luciano Hauschild 431 -
0
votes2
answers126
viewsQ: Loop to calculate maximum value
I need to calculate the maximum consumption value based on the previous values each time I loop the consumption data. For example on day 4, the maximum consumption would be calculated from day 1 to…
rasked Luciano Hauschild 431 -
1
votes2
answers97
viewsQ: How to run a model for each subset of data of a time series to see
I have a database that has feed consumption information (190 animals) every day (88 days). Goes below table1 <- read.csv("Data.csv", header = TRUE) table1 Animal Dia Consumo 1 1 245 1 2 256 1 3…
rasked Luciano Hauschild 431 -
3
votes1
answer152
viewsQ: How to separate a time series basis into periods
I have a time series basis. On the basis has information of consumption of pig feed (follows below with information of only one day and one animal). There is a column with identification of the…
-
3
votes1
answer1515
viewsQ: With merging several txt files into one
I have 60 txt files all with the same number of columns. The files have no header (column name). How can I join them all in one file just below each other in R.
rasked Luciano Hauschild 431 -
3
votes2
answers1908
viewsQ: How to convert Hour:minutes:seconds to decimal number in R
I am trying to convert a column in the date.frame that is in the format of hour:minutes: second to decimal number Example: 2:20:00 to 2,33 How can I do it in R?
rasked Luciano Hauschild 431