Thanks.
On 2021/5/16 上午 11:52, Robert Knight wrote:
> Hi Steven,
>
> You make great sense wanting to have labels for your variables. When
> in RStudio, the little arrow beside "mydata" in the Environment tab
> can be clicked and you see all the variables there. And so you would
> like to see
Actually, I just found exactly what you want. Before that though, I am
having a hard time finding any such cool job despite having even had
classes with some great professors in economics at UND, and so I work in a
completely non data related thing.
Here is exactly what you want, code included.
Hi Steven,
You make great sense wanting to have labels for your variables. When in
RStudio, the little arrow beside "mydata" in the Environment tab can be
clicked and you see all the variables there. And so you would like to see
a description under the variable names. Here is one way to accom
On Fri, 14 May 2021 17:20:20 +0800
Steven Yen wrote:
> Thanks to all, for bearing with me.
>
> Now I realize expss may not be what I need. I have now written a
> self-runnable, replicable set of codes (listed below). Perhaps that
> gives an idea of what I need. Question is, whethet this is the
which behaves like the one you get? Use
> save/load.
> You want to do something different? So please explain what exactly.
>
> Cheers
> Petr
>
>
> > -Original Message-
> > From: Steven Yen
> > Sent: Thursday, May 13, 2021 5:53 PM
> > To: PIKAL Petr
e data file just use attr.
> >
> > attr(mydata, "var.labels") <- definitions$var.labels
> >
> > attributes(mydata)
> > $names
> > [1] "id" "age" "yrmarry"
> >
> > $class
> > [1] "data.f
> Sent: Friday, May 14, 2021 12:48 PM
> To: PIKAL Petr
> Cc: R-help Mailing List
> Subject: Re: [R] Variable labels
>
> Never mind what I said about "Clickable". All I meant was I created an item
> "definitions" that appears after I load the binary file, and th
ttributes(mydata)
$names
[1] "id" "age" "yrmarry"
$class
[1] "data.frame"
$row.names
[1] 1 2 3 4 5 6
$var.labels
[1] "Individual ID" "Age in Years" "Years of marriage"
Cheers
Petr
-Original Message-
Fr
quot; "age" "yrmarry"
$class
[1] "data.frame"
$row.names
[1] 1 2 3 4 5 6
$var.labels
[1] "Individual ID" "Age in Years" "Years of marriage"
Cheers
Petr
> -Original Message-
> From: R-help On Behalf Of Steven Yen
get? Use save/load.
You want to do something different? So please explain what exactly.
Cheers
Petr
-----Original Message-
From: Steven Yen
Sent: Thursday, May 13, 2021 5:53 PM
To: PIKAL Petr
Subject: Re: [R] Variable labels
Petr
Those attachments (1.jpg, 2.jpg) I sent earlier were just
;? You can
> use attr.
> You want to make binary file which behaves like the one you get? Use
> save/load.
> You want to do something different? So please explain what exactly.
>
> Cheers
> Petr
>
>
> > -----Original Message-
> > From: Steven Yen
> >
M
> To: PIKAL Petr
> Subject: Re: [R] Variable labels
>
> Petr
>
> Those attachments (1.jpg, 2.jpg) I sent earlier were just screen captures
> (with a third-party program) of what I saw in the Environment pane right
> after loading the data. Sorry I cannot explain my
t ordinary vector"
> attr(vec.m, "some")
[1] "some specialvector" "another special vector" "just ordinary vector"
>
Cheers
Petr
> -Original Message-
> From: R-help On Behalf Of Steven Yen
> Sent: Thursday, May 13, 2021 10:0
Thanks. What I need “appears” simple. The .RData file is provided by a third
party (likely converted from a different data format such as SAS in which
variable labels (not value labels) are common). When I load the binary file, in
the “environment” I see, as expected, a data frame showing how ma
Hi,
I am sorry but I don't understand your question, Generally, "clicking" is
not something you can assume to be implemented for anything in R.
However, if you read the manual for the package
https://gdemin.github.io/expss/
you get an example at the bottom where an illustration of how the packa
80+"))
age
value.labels(age)
Jim
On Thu, Jun 2, 2016 at 3:37 AM, wrote:
> Hi Jim,
>
> many thanks for the hint.
>
> When looking at the documentation I did not get how I do control which
> value gets which label. Is it possible to define it?
>
> Kind regards
>
&
Hi Georg,
You may find the "add.value.labels" function in the prettyR package useful.
Jim
On Tue, May 31, 2016 at 10:00 PM, wrote:
> Hi All,
>
> I am using R for social sciences. In this field I am used to use short
> variable names like "q1" for question 1, "q2" for question 2 and so on and
>
I am not sure this is relevant or helpful, but see ?abbreviate, which
one can use to abbreviate long strings as labels (but only for
English-like languages, I believe).
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Op
Hi
see in line
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of
> g.maub...@weinwolf.de
> Sent: Tuesday, May 31, 2016 2:01 PM
> To: r-help@r-project.org
> Subject: [R] Variable labels and value labels
>
> Hi All,
>
> I am using R for social sciences.
Thanks a lot, it works fine with me !!
François Maurice
De : "Nutter, Benjamin"
À : Francois Maurice ; r-help@r-project.org
Envoyé le : mercredi 18 juillet 2012 8h21
Objet : RE: [R] Variable labels
I have my own function for doing this that is similar to the one presented
below.
I have my own function for doing this that is similar to the one presented
below. Others may have other ideas that work better. As a general rule, I
would caution against writing out just the label without the variable name.
The only reason I see to separate the labels and names is if you are
As does Muenchen in RforSASSPSSusers.pdf and in the book that grew out
of that effort:
http://rforsasandspssusers.googlepages.com/RforSASSPSSusers.pdf
http://www.amazon.com/SAS-SPSS-Users-Statistics-Computing/dp/0387094172/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1217456813&sr=8-1
http://rforsasan
Alzola and Harrell discuss some of these issues in "An introduction to
S and the Hmisc and Design Libraries".
-ista
On Wed, Oct 28, 2009 at 1:27 PM, Jacob Wegelin wrote:
>
> Often it is useful to keep a "codebook" to document the contents of a
> dataset. (By "dataset" I mean
> a rectangular stru
I find that Harrell's describe ( Hmisc) provides some of that desired
functionality. When I am creating a paper codebook I will print the
results of describe function fro a dataframe to create an overview
snapshot and will post a copy of str(dfname) on the wall.
As his help page says:
"desc
24 matches
Mail list logo