similar to: Using data frames for EDA: Insert, Change name, delete columns? (Newcomer's question)

Displaying 20 results from an estimated 100 matches similar to: "Using data frames for EDA: Insert, Change name, delete columns? (Newcomer's question)"

2004 Aug 26
4
Column names of a data frame
I'm coming out with all the classic problems today ;-) Can anyone tell me how to change the column names of an already existing data frame? I've read the docs for ?data.frame and ?as.data.frame but can't figure it out. I want to make a new data.frame from some of the columns of an existing data.frame, but when I do that, the new data.frame columns have the same names as the old
2004 Sep 09
1
Indexing dataframe
I am sorry to ask such question, but I can't find a solution... I have a dataframe 'd2004' and I want to remove two columns: 'd2004$concentration' and 'd2004$stade". I could do it just as follows: > names(d2004) [1] "Localite" "Date" "parcelle" "maille" "presence.plant"
2013 Feb 03
1
Adding complex new columns to data frame depending on existing column
Hello I have a data frame as below V1 V2 V3 V4 V5 V6 chr1 18884 C CAAAA 2 0 chr1 135419 TATACA T 2 0 chr1 332045 T TTG 0 2 chr1 453838 T TAC 2 0 chr1 567652 T TG 1 0 chr1 602541 TTTA T 2 0 on which I want to perform complex rearrangement such that: if V3 is a string >1 (i.e line 2) then I
2016 Apr 23
2
Data Frame Column Name Attribute
I am attempting to add a calculated column to a data frame. Basically, adding a column called "newcol2" which are the stock closing prices from 1 day to the next. The one little hang up is the name of the column. There seems to be an additional data column name included in the attributes (dimnames?). So when i run HEAD(DATAFRAMENAME) i get the column name = "Open". but
2004 Sep 09
0
AW: Indexing dataframe
Hi, Use Newdata <- subset(d2004, select=-c(concentration,stade)) See ?subset for details Best, Matthias > -----Urspr??ngliche Nachricht----- > Von: Jacques VESLOT [mailto:jacques.veslot at cirad.fr] > Gesendet: Donnerstag, 09. September 2004 12:38 > An: r-help at stat.math.ethz.ch > Betreff: [R] Indexing dataframe > > > I am sorry to ask such question, but I
2011 May 03
6
Simple loop
Hello everybody, I am beginning with loops and functions and would be glad to have help in the following question: If i have a dataframe like this Site Prof H 1 1 24 1 1 16 1 1 67 1 2 23 1 2 56 1 2 45 2 1 67 2 1 46 And I would like to create a new column that subtracts the minimum of H from H, but for S1 and P1 only
2012 Mar 19
3
Issue with asin()
Hello everyone, I am working for a few days already on a basic algorithm, very common in applied agronomy, that aims to determine the degree-days necessary for a given individual to reach a given growth stade. The algorithm (and context) is explained here: http://www.oardc.ohio-state.edu/gdd/glossary.htm , and so I implemented my function in R as follows: DD <- function(Tmin, Tmax, Tseuil,
2010 Sep 13
1
Create a time-series from cross-sectional data that has each year as a separate column
Hi, I have a dataset from ILO, originally in csv-format, that I have read into R. It is cross-sectional time-series data, so I have a bunch of variables and dummy variables that I need to extract data from for the entire time period. However, the years are separated by columns instead of rows, as is usually the case in R. This is what it looks like: > str(laborstafinMFBA)
2012 Nov 19
6
How to subset my data and at the same time keep the balance?
Hi guys, I have 1000 rows of a dataset. In my analysis, I need 70% of the data, run my analysis and then use the remaining 30% to test my model. Could anybody kindly help me on this? Cheers
2010 Mar 15
1
Error in library(eda) : there is no package called 'eda'
I am using RGui version 2.10.1 (2009-12-14) for Windows.  When I enter the call   library(eda)   the following message ensues.   Error in library(eda) : there is no package called 'eda'   I thought that eda was a standard library for exploratory data analysis.  However I could not find it in the list of packages in the pull-down menu either.   Any assistance with finding this package would
2005 Sep 08
0
Experimental data analysis (eda) function
Hello, I cant seen to find the equivalent function in version 2.1.1. This always served as a nice preliminary tool for looking visually at data. Thanks, Matt Matthew MacManes PhD Student Museum of Vertebrate Zoology Department of Integrative Biology UC-Berkeley Berkeley, CA. 94720 Office: (510) 642-7782 Fax: (510) 643-8238 macmanes@berkeley.edu [[alternative HTML version deleted]]
1999 Apr 12
1
R-0.64.0 Install - Cannot find eda.so
Hi, I'm new to R. I'm trying to install R-0.64.0 on FreeBSD 2.2.8 (also new to FreeBSD). First, I run ./configure and then make. Make gives me an error message because it cannot find "eda.so" when trying to link it with line.o and smooth.o (see output below). I would appreciate it if somone could help me to fix this error. Thanks. Loren AFTER RUNNING CONFIGURE: R is now
2002 Nov 16
0
Wishlist: allow NA values in medpolish (package 'eda') (PR#2298)
Full_Name: Frederic Schutz Version: 1.6.1 OS: Linux Submission from: (NULL) (128.250.252.193) The subject says everything... This has already been proposed in June 2001 (cf http://maths.newcastle.edu.au/~rking/R/help/01a/2333.html), but no reply followed. I attach the patch that I used on my system to add this feature (including an updated help page), if it can help. Sorry, the two
1999 Jul 09
1
"ld: bfd assertion fail" making eda.so on Linux (Redhat 6.0)
I've (remote) access to a new Linux system which has some flavor of Rehat installed. Compiling R-0.64.2 fails -- at the end when eda.so should be made. make[4]: Entering directory `/u/u2/maechler/Linux/R/R-0.64.2/src/library/eda/src' gcc -g -O2 -fpic -I../../../../include -c line.c -o line.o gcc -g -O2 -fpic -I../../../../include -c smooth.c -o smooth.o ld -shared -o
2005 Sep 13
3
where is eda library (Prof. Ripley's Exploratory Data Analysis Library)
Hi I want to install eda library. Where can I download it? I use R version 2.1.0 on Linux. Thanks. Stephen. ----- Original Message ----- From: Luis Ridao Cruz <Luisr at frs.fo> Date: Tuesday, September 13, 2005 1:32 pm Subject: Re: [R] How to erase objects > ?rm > > > >>> <v.schlecht at arcor.de> 13/09/2005 12:08:55 >>> > > Hi, I admit that
2008 Oct 02
1
For newcomers to the mailing list.
1. Don't top post. 2. Don't hijack another thread with new unrelated info. 3. Trim your responses. 4. Turn off html in your mail client. 5. Try and do some basic google searches on your problem. Quoted from: http://www.centos.org/modules/tinycontent/index.php?id=16
2011 Jul 31
1
example package for devel newcomers
Hi, I'd like to know whether there is a package (or more, of course) regarded as a good example that could be used also as an instructional tool for newcomers to R extensions development. Thanks. -- Alexandre -- Alexandre Santos Aguiar, MD, SCT -------------- Pr?xima Parte ---------- Um anexo n?o-texto foi limpo... Nome: n?o dispon?vel Tipo: application/pgp-signature Tamanho: 198
2011 Aug 24
1
R (&stats) newcomer.... help!
Hi all, I hope that i've posted this in the correct place. if not, please accept my apologies (where should this go?) I have carried out experimental removal of bivalves at 2 intertidal shores. Bivalves were removed by raking of surface sediments. I wish compare the biomass values of for a total of 8 species between the 2 shores My 3 treatments are: Undisturbed Controls (Cont), Procedural
2006 Jul 02
2
NoMethodError in Unit Test - Rails Newcomer
I''m working on user authentication system to get familiar with rails, and have basically solved most of my apps problems till now. I keep getting the NoMethodError, and can''t understand why. Model: customer.rb class Customer < ActiveRecord::Base ... def self.password=(pass) @password=pass salt = Customer.random_string(10) if !salt? self.hashed_password =
2012 Feb 18
1
Hoping to contribute
Hello everyone. My 'wikiname' is JariJaakkola. I have a desire to be able to contribute to the CentOS community in some way. So, I am proposing a page that would be called a 'Newcomer's Checklist'. I feel the location of such page could best be decided by someone else as it would at least depend on the quality/usefulness of the page. Thank you, Jari -- Jari Jaakkola