Hi, r-community, This morning, I MET the following problem several times when I try to attach the data set. When I closed the current console and reopen the R console, the problem disappear. BUt with the time passed on, the problem occurs again. Can anyone help me with this?> attach(total)The following object(s) are masked from total ( position 3 ) : acid base cell_evalue cell_hit charged freq_cell freq_hypo freq_intra gene_id gene_name hydrophobic hypo_evalue hypo_hit log_cell log_hypo log_pfam num_cell num_genes operon_id outcome pfam_align pfam_evalue pfam_per_id polar position target total_length -- Sincerely, Changbin -- [[alternative HTML version deleted]]
Hi, On Wed, Apr 7, 2010 at 4:24 PM, Changbin Du <changbind at gmail.com> wrote:> Hi, r-community, > > This morning, I MET the following problem several times when I try to attach > the data set. > > When I closed the current console and reopen the R console, the problem > disappear. BUt with the time passed on, the problem occurs again. > > Can anyone help me with this?Yes, please read the documentation in ?attach>> attach(total) > > ? ?The following object(s) are masked from total ( position 3 ) : > > ? ? acid base cell_evalue cell_hit charged freq_cell freq_hypo freq_intra > gene_id gene_name hydrophobic hypo_evalue hypo_hit log_cell log_hypo > log_pfam num_cell num_genes operon_id outcome pfam_align pfam_evalue > pfam_per_id polar position target total_lengthSpecifically see the documentation for the `warn.conflicts` parameter. I'm guessing you have (global) variables in your workspace that have the same name as some of the columns in your `total` data.frame -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
On 07/04/2010 4:24 PM, Changbin Du wrote:> Hi, r-community, > > This morning, I MET the following problem several times when I try to attach > the data set. > > When I closed the current console and reopen the R console, the problem > disappear. BUt with the time passed on, the problem occurs again. > > Can anyone help me with this? > >> attach(total) > > The following object(s) are masked from total ( position 3 ) : > > acid base cell_evalue cell_hit charged freq_cell freq_hypo freq_intra > gene_id gene_name hydrophobic hypo_evalue hypo_hit log_cell log_hypo > log_pfam num_cell num_genes operon_id outcome pfam_align pfam_evalue > pfam_per_id polar position target total_lengthIt appears you are attaching it multiple times, and never detaching it. So the most recent one masks an earlier one. This is a very easy error to make, which is one reason I always discourage this kind of use of attach(). (There are other common errors associated with it too. Just don't use it.) Duncan Murdoch