Re: [R] Fwd: about plantbreeding library

2013-08-17 Thread Jeff Newmiller
Please keep in mind that this is the R-help mailing list, not the 
plantbreeding-help mailing list, so most (perhaps all) of us don't know what 
the theory behind your work is. The fact that you are attempting to load data 
sets and use functions that are not accessible yet you are forging on anyway 
suggests to me that you don't know the theory either, and are blindly 
attempting to follow some unmentioned recipe. Just be warned that the theory is 
your responsibility.

You probably need to load some library (plantbreeding?) using the library or 
require functions before the multienv data set or the stability function will 
be usable. You only need to install a package onto your computer once, but you 
need to re-load any packages you want to use at some time in each analysis 
session.

I advise reading the Introduction to R document that comes with the software. 
You may also need to Google a bit to learn how to install packages from R-forge 
for your operating system.
---
Jeff NewmillerThe .   .  Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

Waqas Shafqat waqas1...@gmail.com wrote:
-- Forwarded message --
From: Waqas Shafqat waqas1...@gmail.com
Date: Sat, Aug 17, 2013 at 10:18 AM
Subject: Re: [R] about plantbreeding library
To: Marc Girondot marc_...@yahoo.fr


problem 1
stability analysis

setwd(E:/)
 Data - read.table(file=setwd.csv, header=TRUE, sep=,)

 Data
   environments genotypes relication yield
1 1 1  134
2 1 1  235
3 1 1  333
4 1 2  143
5 1 2  243
6 1 2  344
7 1 3  156
8 1 3  257
9 1 3  354
102 1  132
112 1  233
122 1  331
132 2  144
142 2  246
152 2  348
162 3  158
172 3  257
182 3  359
193 1  144
203 1  245
213 1  347
223 2  155
233 2  256
243 2  357
253 3  160
263 3  261
273 3  363
 # stability analysis
 data(multienv)
Warning message:
In data(multienv) : data set �multienv� not found
 out - stability (dataframe = multienv , yvar = yield, genotypes =
genotypes,
+ environments = environments, replication = replication)
Error: could not find function stability
 out
Error: object 'out' not found

above errors are found in stability analysis)

problem 2
diallel

 setwd(E:/)
 Data - read.table(file=setwd.csv, header=TRUE, sep=,)

 Data
  Days.Taken.to.Tesselling  X X.1 X.2 Days.Taken.to.Silking X.3 X.4 X.5
1   Crosses R1  R2  R3R1  R2  R3 
NA
2 A 545 52  54  5258  59  58 
NA
3 OH 28 54  53  5359  60  59 
NA
4  OH 54-3A 56  56  5562  61  63 
NA
5  WF 9 54  52  5360  58  59 
NA
6  B 42 53  55  5461  62  61 
NA
7N 48-1 55  53  5261  60  60 
NA
8PB 7-1 55  56  5662  62  63 
NA
9 52 B4 56  54  5660  59  60 
NA
10A 545 x OH 28 53  52  5256  58  56 
NA
11 A 545 x OH 54-3A 55  55  5360  59  61 
NA
12 A 545 x WF 9 56  57  5662  63  63 
NA
13 A 545 x B 42 53  52  5359  60  59 
NA
14   A 545 x N 48-1 54  52  5361  60  60 
NA
15   A 545 x PB 7-1 55  57  5663  62  62 
NA
16A 545 x 52 B4 58  56  5665  64  64 
NA
17OH 28 x A 545 53  53  5261  60  61 
NA
18 OH 28 x OH 54-3A 50  52  5259  58  58 
NA
19 OH 28 x WF 9 55  55  56   

Re: [R] Fwd: about plantbreeding library

2013-08-17 Thread Kevin Wright
If you have properly installed the plantbreeding package, then each time
you start R, you need to type:
library(plantbreeding)

before you can access the data or the functions in the package.

Kevin


On Sat, Aug 17, 2013 at 12:18 AM, Waqas Shafqat waqas1...@gmail.com wrote:

 -- Forwarded message --
 From: Waqas Shafqat waqas1...@gmail.com
 Date: Sat, Aug 17, 2013 at 10:18 AM
 Subject: Re: [R] about plantbreeding library
 To: Marc Girondot marc_...@yahoo.fr


 problem 1
 stability analysis

 setwd(E:/)
  Data - read.table(file=setwd.csv, header=TRUE, sep=,)
 
  Data
environments genotypes relication yield
 1 1 1  134
 2 1 1  235
 3 1 1  333
 4 1 2  143
 5 1 2  243
 6 1 2  344
 7 1 3  156
 8 1 3  257
 9 1 3  354
 102 1  132
 112 1  233
 122 1  331
 132 2  144
 142 2  246
 152 2  348
 162 3  158
 172 3  257
 182 3  359
 193 1  144
 203 1  245
 213 1  347
 223 2  155
 233 2  256
 243 2  357
 253 3  160
 263 3  261
 273 3  363
  # stability analysis
  data(multienv)
 Warning message:
 In data(multienv) : data set ‘multienv’ not found
  out - stability (dataframe = multienv , yvar = yield, genotypes =
 genotypes,
 + environments = environments, replication = replication)
 Error: could not find function stability
  out
 Error: object 'out' not found
 
 above errors are found in stability analysis)

 problem 2
 diallel

  setwd(E:/)
  Data - read.table(file=setwd.csv, header=TRUE, sep=,)
 
  Data
Days.Taken.to.Tesselling  X X.1 X.2 Days.Taken.to.Silking X.3 X.4 X.5
 1   Crosses R1  R2  R3R1  R2  R3  NA
 2 A 545 52  54  5258  59  58  NA
 3 OH 28 54  53  5359  60  59  NA
 4  OH 54-3A 56  56  5562  61  63  NA
 5  WF 9 54  52  5360  58  59  NA
 6  B 42 53  55  5461  62  61  NA
 7N 48-1 55  53  5261  60  60  NA
 8PB 7-1 55  56  5662  62  63  NA
 9 52 B4 56  54  5660  59  60  NA
 10A 545 x OH 28 53  52  5256  58  56  NA
 11 A 545 x OH 54-3A 55  55  5360  59  61  NA
 12 A 545 x WF 9 56  57  5662  63  63  NA
 13 A 545 x B 42 53  52  5359  60  59  NA
 14   A 545 x N 48-1 54  52  5361  60  60  NA
 15   A 545 x PB 7-1 55  57  5663  62  62  NA
 16A 545 x 52 B4 58  56  5665  64  64  NA
 17OH 28 x A 545 53  53  5261  60  61  NA
 18 OH 28 x OH 54-3A 50  52  5259  58  58  NA
 19 OH 28 x WF 9 55  55  5664  63  63  NA
 20 OH 28 x B 42 51  53  5357  58  57  NA
 21   OH 28 x N 48-1 54  54  5460  60  59  NA
 22   OH 28 x PB 7-1 58  57  5765  65  64  NA
 23OH 28 x 52 B4 53  52  5359  60  59  NA
 24 OH 54-3A x A 545 54  56  5663  62  62  NA
 25 OH 54-3A x OH 28 53  54  5459  60  60  NA
 26  OH 54-3A x WF 9 51  52  5259  58  58  NA
 27  OH 54-3A x B 42 52  52  5460  61  60  NA
 28OH 54-3A x N 48-1 55  55  5663  62  63  NA
 29OH 54-3A x PB 7-1 54  54  5662  62  63  NA
 30 OH 54-3A x 52 B4 51  53  5257  58  57  NA
 31 WF 9 x A 545 57  58  5765  64  64  NA
 32 WF 9 x OH 28 54  53  5362  61  61  NA
 33  WF 9 x OH 54-3A 56  56  5664  63  64  NA
 34  WF 9 x B 42 56  54  5460  61  60  NA
 35WF 9 x N 48-1 53  51  5159  58  58  NA
 36WF 9 x PB 7-1 56  55  

Re: [R] Fwd: about plantbreeding library

2013-08-16 Thread Patrick Connolly
On Sat, 17-Aug-2013 at 10:18AM +0500, Waqas Shafqat wrote:

| -- Forwarded message --
| From: Waqas Shafqat waqas1...@gmail.com
| Date: Sat, Aug 17, 2013 at 10:18 AM
| Subject: Re: [R] about plantbreeding library
| To: Marc Girondot marc_...@yahoo.fr
| 
| 
| problem 1
| stability analysis
| 
| setwd(E:/)
|  Data - read.table(file=setwd.csv, header=TRUE, sep=,)
| 
|  Data
|environments genotypes relication yield
| 1 1 1  134
| 2 1 1  235
[...]

| 273 3  363


That tells you that there's a dataframe called Data but you then try
to use something else which isn't there.



|  # stability analysis
|  data(multienv)
| Warning message:
| In data(multienv) : data set ?multienv? not found

That's telling you that there's nothing called multienv but then you
try to use it.

|  out - stability (dataframe = multienv , yvar = yield, genotypes =
| genotypes,
| + environments = environments, replication = replication)
| Error: could not find function stability
|  out
| Error: object 'out' not found

Nothing called out could be created since to do so requires something
you don't have.  All of your errors have a similar basis.  Maybe you
need to look through a few tutorials to understand a few basics, such
as using ls() to see what's in your working directory.

[]


HTH

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~}   Great minds discuss ideas
 _( Y )_ Average minds discuss events 
(:_~*~_:)  Small minds discuss people  
 (_)-(_)  . Eleanor Roosevelt
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.