Displaying 20 results from an estimated 6000 matches similar to: "convert numeric variables to factor"
2018 Apr 09
2
convert numeric variables to factor
Hello,
Though Bert's and David's answers are what you should do, note that some
R functions that need factors will coerce their input variables when
necessary.
Have you tried to run the code you haven't posted without coercing to
factor? It might run...
Hope this helps,
Rui Barradas
On 4/9/2018 6:11 PM, David L Carlson wrote:
> Try the help files:
>
> ?factor
>
2018 Apr 09
0
convert numeric variables to factor
Just cast it!
?factor
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Apr 9, 2018 at 9:28 AM, Saif Tauheed <saif.tauheed at gmail.com> wrote:
> Dear Sir,
>
> I have xlsx data set which I have imported to R studio. Now
2018 Apr 10
4
convert numeric variables to factor
You are missing a comma between "MARITAL" and "JOBSTATUS".
On Tue, Apr 10, 2018 at 10:27 AM, Saif Tauheed <saif.tauheed at gmail.com>
wrote:
> I run this command for converting the numerical variable into factor.
> However, I get the following error message.
>
> > cols<- c(?GrMM", "RELG", "CASTE1", "SECTOR",
2018 Apr 10
0
convert numeric variables to factor
I run this command for converting the numerical variable into factor. However, I get the following error message.
> cols<- c(?GrMM", "RELG", "CASTE1", "SECTOR", "SECTOR4","AGE", "MARITAL" "JOBSTATUS", "ENG", "EDU", "PARENT_EDU", "MASSMEDIA_F", "MASSMEDIA_M",
2018 Apr 09
0
convert numeric variables to factor
Try the help files:
?factor
----------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77843-4352
-----Original Message-----
From: R-help <r-help-bounces at r-project.org> On Behalf Of Saif Tauheed
Sent: Monday, April 9, 2018 11:29 AM
To: r-help at r-project.org
Subject: Re: [R] convert numeric variables to factor
Dear
2018 Apr 10
0
convert numeric variables to factor
Thank you very much.
After that I have the following error:
cols<- c("GrMM", "RELG", "CASTE1", "SECTOR", "SECTOR4","AGE", "MARITAL", "JOBSTATUS", "ENG", "EDU", "PARENT_EDU", "MASSMEDIA_F", "MASSMEDIA_M", "HomeComputer", "HomeInternet")
> for
2018 Apr 09
3
convert numeric variables to factor
Or use cut():
> Num <- c(2.2, 2.4, 3.5, 5, 7)
> cut(Num, breaks=c(0,2,4,6), labels=c("Low","Medium","High"))
[1] Medium Medium Medium High <NA>
Levels: Low Medium High
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Mon, Apr 9, 2018 at 10:00 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
> Just cast it!
>
> ?factor
> Bert
2017 Aug 30
2
Converting character to numeric using the package "XLConnect"
Hello,
>From an Excel file imported into R where each cell contains characters, I would like to convert some characters to numeric. However, my code doesn?t work. When I write data to worksheets in an Excel file, some numbers in the cells are stored as text (instead of numeric). Here is my code (the Excel file is attached):
rm(list=ls(all=TRUE))
library(XLConnect)
tab <-
2015 Aug 12
2
[PATCH] Revert "drm/nouveau/fifo/gk104: kick channels when deactivating them"
This reverts commit 1addc1264852
This commit seems to cause crashes in gk104_fifo_intr_runlist() by
returning 0xbad0da00 when register 0x2a00 is read. Since this commit was
intended for GM20B which is not completely supported yet, let's revert
it for the time being.
Reported-by: Eric Biggers <ebiggers3 at gmail.com>
Signed-off-by: Alexandre Courbot <acourbot at nvidia.com>
---
2007 Nov 29
6
MS Excel Data
I am using MS Excel (Windos Operating system), how I
import/export data between MS_Excel and R.
Regds
Faisal Afzal SIddiqui
+92-300-9297089
fasidfas at yahoo.com
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
2017 Aug 30
0
Converting character to numeric using the package "XLConnect"
> On Aug 30, 2017, at 12:24 PM, Nelly Reduan <nell.redu at hotmail.fr> wrote:
>
> Hello,
>
> From an Excel file imported into R where each cell contains characters, I would like to convert some characters to numeric. However, my code doesn?t work. When I write data to worksheets in an Excel file, some numbers in the cells are stored as text (instead of numeric). Here is my
2007 Dec 06
5
Conjoint Analysis in R??
Pls advise how I can use R in conjoint analysis??
regds
Faisal Afzal Siddiqui
Karachi, Pakistan
____________________________________________________________________________________
Looking for last minute shopping deals?
2015 Aug 12
2
[PATCH] Revert "drm/nouveau/fifo/gk104: kick channels when deactivating them"
2015-08-12 16:37 GMT+09:00 Afzal Mohammed <afzal.mohd.ma at gmail.com>:
> Hi,
>
> On Wed, Aug 12, 2015 at 04:12:15PM +0900, Alexandre Courbot wrote:
>
>> Could you let me know what your card is? It may be useful to know the
>> range of affected cards when trying to fix this.
>
> grep of nouveau on dmesg as follows, if the following information is
> not
2015 Aug 12
2
[PATCH] Revert "drm/nouveau/fifo/gk104: kick channels when deactivating them"
On Wed, Aug 12, 2015 at 3:00 PM, Afzal Mohammed <afzal.mohd.ma at gmail.com> wrote:
> Hi,
>
> On Wed, Aug 12, 2015 at 01:17:38PM +0900, Alexandre Courbot wrote:
>> This reverts commit 1addc1264852
>>
>> This commit seems to cause crashes in gk104_fifo_intr_runlist() by
>> returning 0xbad0da00 when register 0x2a00 is read. Since this commit was
>>
2017 Aug 30
3
Converting character to numeric using the package "XLConnect"
The Excel file can be found from this link: https://1drv.ms/x/s!Apkg2VlgfYyDgQ_mcJ8F4CaXV_Nh
[https://r1.res.office365.com/owa/prem/images/dc-xlsx_40.png]<https://1drv.ms/x/s!Apkg2VlgfYyDgQ_mcJ8F4CaXV_Nh>
File.xlsx<https://1drv.ms/x/s!Apkg2VlgfYyDgQ_mcJ8F4CaXV_Nh>
Partag? via OneDrive
Thanks very much for your help.
Nell
________________________________
De : David Winsemius
2008 Jan 07
5
moving or running average
Hi all R users,
Can anyone please let me know how to do the moving average with R?
With regards,
Abu
_________________________________________________________________
Free games, great prizes - get gaming at Gamesbox.
2024 Jan 30
1
R interpreting numeric field as a boolean field
On 30/01/2024 11:10 a.m., Paul Bernal wrote:
> Dear friends,
>
> Hope you are doing well. I am currently using R version 4.3.2, and I have a
> .xlsx file that has 46 sheets on it. I basically combined all 46 sheets
> and read them as a single dataframe in R using package rio.
>
> I read a solution using package readlx, as suggested in a StackOverflow
> discussion as
2007 Sep 28
3
orientlib
Hi All user,
I have been using R-2.5.1. dose orientlib support this version? I would like to try. it.
I have been wondering how to install the library.
With regards,
abu
_________________________________________________________________
Celeb spotting ? Play CelebMashup and win cool prizes
2016 Apr 28
2
Package to work with weight based data
Respected all,
I am working on a socio-economic survey (named as
National Sample Survey in India provided by National Sample Survey
Organization, Govt. of India) data of individual as well as households.
This is a sample survey where stratified random sapling method has been
used to draw samples. The data set uses 'weights' to estimate figures for
region, state or
2002 Nov 09
2
importing data from Excel using RODBC
Hi,
I used RODBC to import data from an Excel spreadsheet "*.xls", but some
columns were returned as zeros. When I looked at these columns in Excel, I
found that thery are results of formula calculations and not entry. My
question is: Is there any parameter or command I need to use in order to
overcome this problem?
Thank you
Ahmad Abu Hammour