Displaying 20 results from an estimated 10000 matches similar to: "stringsAsFactor global option (was "character coerced to a factor")"
2007 Apr 19
1
Character coerced to factor and I cannot get it back
Something probably obivous but I don't see it. I
needed to find the first 1 or two digits of some 5 and
6 digit numbers since they identified research sites
while the rest of the number was the plot id.
I converted the numbers to characters, got the first 1
or 2 characters as appropriate and went to add the
new vector to the data.frame. For some reason R is
insisting on turning the
2007 Apr 19
0
Fwd: RE: Character coerced to factor and I cannot get it back
--- John Kane <jrkrideau at yahoo.ca> wrote:
> Date: Thu, 19 Apr 2007 15:50:36 -0400 (EDT)
> From: John Kane <jrkrideau at yahoo.ca>
> Subject: RE: [R] Character coerced to factor and I
> cannot get it back
> To: Jorge Cornejo-Donoso <jorgecornejo at uach.cl>
>
>
> --- Jorge Cornejo-Donoso <jorgecornejo at uach.cl>
> wrote:
>
> >
2007 Apr 20
0
Fwd: Re: Character coerced to factor and I cannot get it back
--- John Kane <jrkrideau at yahoo.ca> wrote:
> Date: Fri, 20 Apr 2007 10:47:45 -0400 (EDT)
> From: John Kane <jrkrideau at yahoo.ca>
> Subject: Re: [R] Character coerced to factor and I
> cannot get it back
> To: jim holtman <jholtman at gmail.com>
>
> Thanks Jim,
>
> I can live with it as a factor or I will do as you
> suggest. What is bothering
2001 May 02
5
Help with quota setting...
Good afternoon, guys!!!
I am wondering whom among you already have a quota set for your users?
You see, I am finding it hard to get a good combination between the
number of inodes to set and the number of blocks to set as well.
My ideal setting is at least 15MB to 20MB per user. I am using SuSE
7.0 kernel 2.2.16 using Samba 2.0.7.
Any ideas??? Any help regarding this would greatly help...
2012 Dec 07
2
Converting character to numeric: Error: (list) object cannot be coerced to type 'double'
Dear R users,
I am facing a pretty a unusual problem while converting character to
numeric. Any input would be appreciated.
Below is the code and error faced:
---------------------------------------
*> str(cmie.dts)*
*'data.frame': 4397 obs. of 1 variable:*
* $ INE001A01036: chr "1482181740.000000" "1482181740.000000"
"1482181740.000000"
2007 Jan 25
2
TE110P and HDLC problems
Hi!,
this issue makes me crazy. I read a lot of docs, also * mailling list
and I try a lot of things without success.
Any help will be appreciated. Here is the info:
Hardware:
--------------------------------------------
Supermicro Server with motherboard X7DB8, chipset Intel 5000P, Xeon 5050
Digium TE110P
Software
---------------------------------------------
Asterisk version 1.2.12.1
2009 Dec 14
2
Bug in lnme package?
Hi!
Something funny happens to me in lnme. I don't know if it's a bug or not.
Here's a short sketch of the problem (you could skip the introduction and
just go to the models):
I'm counting the number of spider webs ( = response variable) along two
rivers, with a two-level treatment: free-flowing and dammed.
There are three field sites (random factor) along each river, and
2013 Mar 21
2
Check if a character vector can be coerced to numeric?
Given an arbitrary set of character vectors:
myvect1 <- c("abc","3","4")
myvect2 <- c("2","3","4")
I would like to develop a function that will convert any vectors that can
be PROPERLY converted to a numeric (myvect2) into a numeric, but leaves
character vectors which cannot be converted (myvect1) alone. Is there any
simple way
2002 May 29
1
merge.data.frame can coerce character vectors to factor in some circumstances (PR#1608)
If the following two conditions are met:
1) all.x is TRUE
2) at least 1 row in y does not have a match in x
then any character vectors in y will be coerced to be factors. Here is a simple
example (previously provided on r-devel):
> x <- data.frame(a = 1:4)
> y <- data.frame(b = LETTERS[1:3])
> y$b <- as.character(y$b)
> z <- merge(x, y, by = 0, all.x = TRUE)
> z
2000 Mar 08
1
Coercing character to factor
I just downloaded version 1.0.0 and several binary libraries (VR, rpart,
norm, stataread) - WinNT version. I then converted a file from Stata 6.0
to R format by using the stataread library. The file converts perfectly
and I was able to use the VR function lda on the dataframe without
difficulty. I then tried to use the same dataframe with RPART. The model
statement:
2001 Apr 21
2
wich samba i should use?
i need to logo on win2000 to a samba server...
wich samba version i should use?
where can i get it?
tks very much
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
2005 May 07
1
Echo Madness
Hi there, I'm experiencing an echo problem and dammed If I can sort it out.
We're running Asterisk on Fedora Core 3 64bit, installed as per
http://www.voip-info.org/wiki-Asterisk+Fedora+Core+3.
These are the specs of the Machine ?
1 x AMD A64/3500+ CPU: Desktop Athlon64? Retail w/fan SKT
1 x Asus A8N-SLI Deluxe Athlon? 64 S939 NVIDIA nForce(r)4 SLI? PCI
Express Req: 24pin ATX
1 x
2002 May 20
0
is.na<- coerces character vectors to be factors within dataframes (PR#1577)
I am not sure if this is a bug within is.na<- or if it lies deeper in the
dataframe construction process. Indeed, perhaps it is not a bug at all (in
which case I would suggest that the help page for NA be provided with a warning
for unsuspecting users (like me)).
When used on a character vector within a dataframe, is.na<- coerces the vector
to factor.
> x <- data.frame(var =
2017 Jul 07
2
Factor vs character in a data.frame vs vector
This is not? serious problem but I just wonder if someone can explain what is happening.
The same command within a dataframe is giving me a factor and as a plain vector is giving me a character.? It's probably something simple that I have read and forgotten but I thought I'd ask.
Thanks
#================================================
dat1 <- data.frame(aa = letters[1:10])
str(dat1)
2017 Jul 07
0
Factor vs character in a data.frame vs vector
> On Jul 7, 2017, at 6:03 AM, John Kane via R-help <r-help at r-project.org> wrote:
>
> This is not serious problem but I just wonder if someone can explain what is happening.
> The same command within a dataframe is giving me a factor and as a plain vector is giving me a character. It's probably something simple that I have read and forgotten but I thought I'd ask.
2017 Jul 08
0
Factor vs character in a data.frame vs vector
> On Jul 7, 2017, at 7:03 PM, John Kane <jrkrideau at yahoo.ca> wrote:
>
> Thanks Marc.
> It never occurred to me that I would need a ""stringsAsFactors" expression in a data.frame. I could have sworn I never did before when mocking up some data but clearly I was wrong or there has been a change in R v. 3.4.1 which seems unlikely.
Welcome John.
Going back to
2019 Mar 01
1
uidNumber=RID allowed or not recommended?
Hi,
the samba documentation concerning the migration of a Samba NT4 domain
to AD
(https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_Domain_to_Samba_AD_(Classic_Upgrade))
mentions in section "Important Notes":
It used to be thought that using Windows RIDs for Unix IDs was
acceptable, time has proven otherwise.
But unfortunately no reasoning is given. I am wondering why this is not
2017 Jul 08
2
Factor vs character in a data.frame vs vector
Thanks Marc. It never occurred to me that I would need a ""stringsAsFactors" expression in a data.frame.? I could have sworn I never did before when mocking up some data but clearly I was wrong or there has been a change in R v. 3.4.1 which seems unlikely.
On Friday, July 7, 2017, 10:37:29 AM EDT, Marc Schwartz <marc_schwartz at me.com> wrote:
> On Jul 7, 2017, at 6:03
2002 May 20
1
(PR#1577) is.na<- coerces character vectors to be factors
The inconsistency is that you use $<- to set the column, then [[<- to
change it. Had you tried to set the column by
x[[1]] <- as.character(x[[1]])
you would have seen the problem immediately (it does not work as you would
have intended). If you want to be sure to turn off conversion to factor,
you need to set the column to class "AsIs". My belief is that
will behave
2012 Oct 23
1
factor or character
Hi,
The program below work very well.
(snps = c('rs621782_G', 'rs8087639_G', 'rs8094221_T', 'rs7227515_A',
'rs537202_C'))
Selec = todos[ , colnames(todos) %in% snps]
head(Selec)
But, I have a data set with 1.000 columns and I need extract 70 to use
(like snps in command above).
This 70 snps are in a file. So I create a file to extract them with