Re: [R] Variable and value labels

2023-07-13 Thread Anupam Tyagi
😉 > > > > But seriously, we often are like new users even when we once knew a bit > about something. The R from before 2003 (or was it S?) has evolved quite a > bit. If, like me, you have used lots of other computer languages in > between, then they often blend in your mind

Re: [R] Variable and value labels

2023-07-13 Thread avi.e.gross
and methods and of course quirks. And, of course, I sympathize with adjusting from other environments designed for somewhat more specific purposes like Stata as R is more of a general purpose programming language. Often people start with those others and then come to R because they need to

Re: [R] Variable and value labels

2023-07-12 Thread Anupam Tyagi
ten in R, you may see how it does something and take a part of the code > and use it yourself. > > > > -----Original Message- > From: R-help On Behalf Of Anupam Tyagi > Sent: Tuesday, July 11, 2023 11:49 PM > To: r-help mailing list > Subject: [R] Variable and value la

Re: [R] Variable and value labels

2023-07-12 Thread Adrian Dușa
Anupam, This is very general, and it also depends on the scientific domain. Factors do solve the value labels, but they drop the (original) values. They also lose the connection to the different types of missing values (an important topic in the social sciences). Base R provides as much as it can

Re: [R] Variable and value labels

2023-07-12 Thread avi.e.gross
To: r-help mailing list Subject: [R] Variable and value labels Hello, is there an easy way to do variable and value labels (for factor variables) in base-R, without using a package. If not, what is an easy and good way to do labels, using an add-on package. -- Anupam. [[alternati

Re: [R] Variable and value labels

2023-07-12 Thread Anupam Tyagi
p [mailto:r-help-boun...@r-project.org] On Behalf Of Anupam > Tyagi > >Sent: Wednesday, 12 July, 2023 14:11 > >To: Martin Maechler > >Cc: r-help mailing list > >Subject: Re: [R] Variable and value labels > > > >Thanks. Sorry, I have not consulted help pages, bu

Re: [R] Variable and value labels

2023-07-12 Thread Viechtbauer, Wolfgang (NP)
Original Message- >From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Anupam Tyagi >Sent: Wednesday, 12 July, 2023 14:11 >To: Martin Maechler >Cc: r-help mailing list >Subject: Re: [R] Variable and value labels > >Thanks. Sorry, I have not consulted help

Re: [R] Variable and value labels

2023-07-12 Thread Anupam Tyagi
Thanks. Sorry, I have not consulted help pages, but did a web search. Web search results are referring to some package or the other for doing labels. Thanks for letting me know that this can be done in base-R. I will try to find the relevant information in R documentation. On Wed, 12 Jul, 2023, 1:

Re: [R] Variable and value labels

2023-07-12 Thread Martin Maechler
> Anupam Tyagi > on Wed, 12 Jul 2023 09:18:55 +0530 writes: > Hello, > is there an easy way to do variable and value labels (for > factor variables) in base-R, without using a package. Yes, there are many. How many help pages (in R , i.e. base-R) did you consult? Very

[R] Variable and value labels

2023-07-11 Thread Anupam Tyagi
Hello, is there an easy way to do variable and value labels (for factor variables) in base-R, without using a package. If not, what is an easy and good way to do labels, using an add-on package. -- Anupam. [[alternative HTML version deleted]] ___