Hi Sandip,
Sorry for the wrong interpretation. So how to avoid that ? I mean how to
forcefully make it character vector ?
As indicated by Joshua, ?data.frame will show you the way:
df - data.frame(gender, age, stringsAsFactors = FALSE)
Best,
/g
Hello,
I think there is an inconsistency in the handling of the compact form of the
row.names attributes.
When n is the number of rows of a data.frame, the compact form is
c(NA_integer_,-n), as in:
d - data.frame(x=1:10)
.Internal(inspect(d))
@104f174a8 19 VECSXP g0c1 [OBJ,NAM(2),ATT]
PLEASE!
All this does *not* belong to the R-devel mailing list.
It is entirely apt for R-help (or similar, including stackoverflow).
Please do *not* misuse R-devel for basic R questions.
Martin Maechler,
ETH Zurich
__
R-devel@r-project.org mailing
Perhaps because indexes start at 0?
Sent from my iPhone
On Apr 1, 2014, at 5:46 PM, Sandip Nandi sanna...@umail.iu.edu wrote:
Hi ,
I want to know is this behavior expected and why is that ? Need some help
gender - c(F, M, M, F, F, M, F, F)
age- c(23, 25, 27, 29, 31, 33, 35, 37)
I know a few good books where this is explained.
This free one for example: http://cran.r-project.org/doc/manuals/R-intro.pdf
chapters 4 and 6.
Or http://rfordummies.com/ if you insist on paying for it.
PS: Jeff, R is not C. different place in the alphabet and all...
On Wed, Apr 2, 2014 at
Hi All,
I am one of the contributors to the FastR project (
https://bitbucket.org/allr https://bitbucket.org/allr.) and I have
encountered an interesting issue when trying to implement vector accesses
within FastR. I am trying to understand what kind of error message should
be generated for the
- Original Message -
From: Adam Welc adamw...@yahoo.com
To: r-devel@r-project.org
Sent: Wednesday, April 2, 2014 3:11:28 PM
Subject: [Rd] inconsistent error messages on Mac OS X
Hi All,
I am one of the contributors to the FastR project (
https://bitbucket.org/allr
Hi ,
I am asking too many questions , sorry for that . I am creating a data
frame in C itself , reading a table .
The data frame calling code looks like this
==
*PROTECT(dfm=lang2(install(data.frame),df));*
*SEXP res = PROTECT(eval(dfm,R_GlobalEnv));*