similar to: adding a new individual

Displaying 20 results from an estimated 10000 matches similar to: "adding a new individual"

2012 Oct 13
2
White test
Hello, Is there a way to perform a White test (testing heteroscedasticity) under R? Best regards, Afrae Hassouni
2012 Mar 20
1
Remove individual rows from a matrix based upon a list
Dear All, Thanks in advance for any help. I have a square matrix of measures of interactions among individuals and would like to calculate a values from a function (colSums for example) with a single individual (row) excluded in each instance. That individual would be returned to the matrix before the next is removed and the function recalculated. I can do this by hand removing rows based upon
2020 Feb 29
4
dput()
My interpretation of dput.Rd is that dput() gives an exact ASCII form of the internal representation of an R object. But: rhankin at cuttlefish:~ $ R --version R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) [snip] rhankin at cuttlefish:~ $ R --vanilla --quiet > x <-
2020 Feb 29
3
dput()
I think Robin knows about FAQ 7.31/floating point (author of 'Brobdingnag', among other numerical packages). I agree that this is surprising (to me). To reframe this question: is there way to get an *exact* ASCII representation of a numeric value (i.e., guaranteeing the restored value is identical() to the original) ? .deparseOpts has ?"digits17"?: Real and finite complex
2012 Nov 14
5
aggregate combination data
Dear R users, I want to aggregate all *d *data from all combination of n *plots* taken by k. Thank very much! My data is like that: plot d 1 14 1 13 1 12 1 14 1 18 1 20 1 21 1 43 1 108 1 43 2 41 2 61 2 83 2 61 2 84 2 45 2 21 2 12 2 11 ... 100 10 100 12 -- --- Catalin-Constantin ROIBU Forestry engineer, PhD Forestry Faculty of Suceava
2020 Feb 29
2
dput()
Thanks guys, I guess I should have referred to FAQ 7.31 (which I am indeed very familiar with) to avoid misunderstanding. I have always used dput() to clarify 7.31-type issues. The description in ?dput implies [to me at any rate] that there will be no floating-point roundoff in its output. I hadn't realised that 'deparsing' as discussed in dput.Rd includes precision roundoff issues.
2017 Oct 14
3
Bootstrapped Regression
Greetings! We are trying to obtain confidence and prediction intervals for a predicted Y value from bootstrapped linear regression using the boot function. Does anyone know how to code it? Greatly appreciated. Janh [[alternative HTML version deleted]]
2020 Mar 02
2
dput()
On 02/03/2020 3:24 a.m., Martin Maechler wrote: >>>>>> robin hankin >>>>>> on Sun, 1 Mar 2020 09:26:24 +1300 writes: > > > Thanks guys, I guess I should have referred to FAQ 7.31 > > (which I am indeed very familiar with) to avoid > > misunderstanding. I have always used dput() to clarify > > 7.31-type
2012 Aug 31
7
splits with 0s in middle columns
Hi, A column of my df looks like A 10/20/30 40/20 60/10/10/5 80/10 I want to split it such that the last column has the last composition and if there are not enough the middle columns get the 0s. That way my df would look like A1 A2 A3 A4 10 20 0 30 40 0 0 20 60 10 10 5 80 0 0 10 How can I do that ?? [[alternative HTML version deleted]]
2012 Aug 19
2
merging and obtaining the nearest value
Dear R-help ? would like to know if there is a short solution in R for this merging problem... Let say I have a dataset A as: TYPE DATE A 2 A 5 A 20 B 10 B 2 (there can be duplicates for the same type and date) and I have another dataset B as : TYPE Special_Date A 2 A 6 A 20 A 22 B
2017 Oct 11
3
dput(treat)
I got advice here that I didn't understand! Can I ask to explain me the meaning of this procedure: first get the structure, and then assign it back. For what? Thanks!? (Great thanks to Moderator/Admin!) You should learn to post in plain text and use dput to present your data structures. At your console do this dput(treat) # and this will appear. Copy it to your plain-text message:
2013 Apr 06
2
Replace missing value within group with non-missing value
Dear List members I have a large dataset organised in choice groups see sample below +-------------------------------------------------------------------------------------------------+ | dn obs choice acid br date cdate situat~n mth year set |
2013 Mar 26
2
Problem with nested for-loop
Hello, I'm working on a problem using nested for-loops and I don't know if it's a problem with the order of the loops or something within the loop so any help with the problem would be appreciated. To briefly set up the problem. I have 259 trees (from 11 different species, of unequal count for each species) of which I am trying to predict biomass. For each tree species I have 10000
2012 Jul 19
2
Subsetting problem data, 2
Hello, I didn't give enough information when I sent an query before, so I'm trying again with a more detailed explanation: In this data set, each patient has a different number of measured variables (they represent tumors, so some people had 2 tumors, some had 5, etc). The problem I have is that often in later cycles for a patient, tumors that were originally measured are now missing (or
2012 Jul 02
2
Code scatter plot data from matrix with 3rd column
Hello I am looking for a simple way to plot my data from a matrix (or data frame) using a 3rd column as category to code the data points. for example: xyz 543240 104230 15901 203241 25781 3042340 357891 405670 45780 50531 Ideally, I'd like 0 or 1 to correspond to a color but I'd settle for a symbol at this point.  I have tried working with pch but can't get it to work. Thanks Kat 
2012 Jul 29
4
R- Help (looping)
Hi, I'm Wellington from Brazil and I have the following issue: I've been working on a project a for a while, and I'm having trouble in using the loop (for) I need to read a column (c1), and for each value of this column, I need to check if it's within the control limits So, I was trying to do this: For (k in 1: c1) If (c1< lcl1 | c1 > ucl1) {here I
2024 Mar 29
2
Output of tapply function as data frame: Problem Fixed
Dear Rui, Thanks again for resolving this. I have already started using the version that works for me. But to clarify the second part, please let me paste the what I did and the error message: > set.seed(2024) > data <- data.frame( + Date = sample(seq(Sys.Date() - 5, Sys.Date(), by = "1 days"), 100L, + TRUE), + count = sample(10L, 100L, TRUE) + ) > > # coerce
2017 Jun 22
2
For loop
Hello R users, The code below is for loop in R that I want to do to following calculation at each time i and i-1 in 2:75 dataset (Litterfall_Ahmed97). ac = ((LeafBiog at date i -LeafBiog at date i-1, dataset = leafbiom97) + (littperiod at date i, dataset= Litterfall_Ahmed97))/(sum (GPP from date i-1 to date i, dataset=GPP_Ahmed13)/2) . #code for loop GPP_Ahmed13$Date <-
2012 Jul 24
3
Collapsing a vector/data-frame based on the previous values
Hello I have a data frame like this: dput(states) structure(list(Date = c("24/07/2012", "25/07/2012", "26/07/2012", "27/07/2012", "28/07/2012", "24/07/2012", "25/07/2012", "26/07/2012", "27/07/2012", "28/07/2012"), State = c(1L, 1L, 1L, 1L, 1L, -1L, -1L, -1L, 1L, -1L)), .Names = c("Date",
2012 Oct 05
5
Missing data (Na) and chi-square tests
Dear everyone I am a bit of a computer imbecile and are having problems with R. I am using R in my research project to do chi-square tests on data imported from excel . However I have som missing data in one of my variables (columns) and I need R to "exclude" these and make chi-square test on the data that I have. I use a formula to make 2x2 tables which is: data <-