Displaying 20 results from an estimated 10000 matches similar to: "What's a labelled data.frame? And how do I work with it?"
2010 Apr 06
2
is.na<- doesn't seem to work with labelled variables?
Dear All,
I seem entirely unable to solve what should be a very simple problem. I
have imported a SPSS dataset into R using spss.get from Frank Harrell's
Hmisc library. The variables are imported classed as 'labelled': missing
values are coded as either the SPSS missing value code, 8 or 88. All are
imported correctly; 8 and 88 being identified as true numbers in the
2020 Jun 19
2
Aliasing and forwarding optimization
----Snip--
struct st1{
int a;
};
struct st2{
int b;
};
struct st {
struct st1 obj1;
struct st2 obj2;
}Obj;
int test1(struct st1 * ptr1 , struct st2 * ptr2, struct st2 *ptr3) {
ptr1->a = 10;
*ptr3 = *ptr2;
return ptr1->a;
}
--Snip---
For the above case GCC is able to store forward the value 10 to the return
place.
LLVM is not doing this.
GCC
https://godbolt.org/z/FCjCXy
LLVM
2012 May 15
1
Error in eval(expr, envir, enclos) : object 'Rayos' not found???
Hi R-listers,
I am trying to make a trellis boxplot with the HSuccess (y-axis) in each
Rayos (beach sections) (x-axis), for each Aeventexhumed (A, B, C) - nesting
event. I am not able to do so and keep receiving:
Error in eval(expr, envir, enclos) : object 'Rayos' not found
Please advise,
Jean
require(plyr)
resp <- read.csv("ABC Arribada R File Dec 12 Jean
2010 Jun 28
3
data frame row statistics (mean)?
Hello,
I am trying to calculate the mean value of each row in a data frame (d),
I am having troubles and getting errors using the code I have written.
Below is a brief example of the code, any thought or suggestions would
be great.
Thank you for your time,
Doug
# Example Code:
d <- data.frame(st1=c(1,2,3,4), st2=c(2,5,6,7), st3=c(5,5,NA,7),
st4=c(6,5,7,8))
avg <-
2006 Jul 31
2
if function and apply
Runninn R.2.3.1 Windows XP
I have a dataset just imported from SPSS. It has any
number of 99's as missing data and it looks like the
next dataset will have custom missing codes. I have
abouat 120 variables and an N of 2000.
"I think" thatI would like to apply a function to the
data.frame (or to a matrix of the data if needed) to
recode all the 99's to NA. I thought that I
2012 May 21
1
select part of files from a list.files
Hi everyone.
I'm working on a list of files (about 50 files). I've listed them thanks to
the function: list.files.
Each of my files contains 35000 lines of data. These files may also contain
some missing values NA (sometimes till 10 000 NAs following each other).
The aim is to do some correlation matrices between these files (I already
have the script). But as I have often missing values,
2007 Nov 24
1
question regarding an error message from survey package
Hi R-users!
Can anyone tell me what this error message refers to exactly
> a<-c('m','f','m')
> b<-c(1:3)
> st<-c(1:3)
> data.frame(a,b,st)
a b st
1 m 1 1
2 f 2 2
3 m 3 3
> data.frame(a,b,st)->l
> p<-svydesign(ids=~1, data=l)
> pop<-c('(intercept)'=100, st1=10,st2=20)
> calibrate(p,~st, pop)
Error in
2005 Apr 13
1
barplot usage
Hi,
I?m trying to make a barplot with the following dataframe, with information on
relative frequency per sediment type (ST) for some species:
Species ST1 ST2 ST3
SP_A 10 60 30
...
At x-axis are (should be ...) the species names and at y-axis the frequency per
sediment, in stacked bars.
I tried to use barplot command but with no results. Could anyone help me on this?
Thanks in
2007 Jun 15
0
No subject
using Asterisk.
=20
Is this all you want Asterisk to do? (eg as an application service
rather than provide telephony for the rest of the library as well), or
are you looking to have it replace your existing telephony equipment?
=20
As a suggestion if you google Trixbox and Nerd Vittles you will find a
fairly detailed explanation of how to set your Trixbox server (a version
of Asterisk) up to
2003 May 29
0
[LLVMdev] Re: recursive structs (linked list)
On 28 May 2003, Joel Stanley wrote:
> I'm trying to make a struct type that is recursive. How can I do this?
It's very non-obvious, but an important lesson in how types in LLVM are
represented. In particular, in LLVM, each type shape can only exist once
in memory, which allows users to do pointer comparisons to check
structural equality of types. Naturally, this makes things
2017 Sep 13
1
File server questions
Em 13/09/2017 10:36, L.P.H. van Belle via samba escreveu:
> Hai, Flavio,
>
> Yes, it looks good, but i suggest, if you setting up a new DC on debian..
> Go here: https://github.com/thctlo/samba4/tree/master/howtos
> And read the file: stretch-base-2-samba-minimal-ad.txt
>
> This should works also for debian Jessie, if it errors only remove the words " limited" from
2016 Jun 25
2
Question about VectorLegalizer::ExpandStore() with v4i1
Hi All,
I have a problem with VectorLegalizer::ExpandStore() with v4i1.
Let's see a example.
* LLVM IR
store <4 x i1> %edgeMask_for.body1314, <4 x i1>* %27
* SelectionDAG before vector legalization
ch = store<ST1[%16](align=4), trunc to v4i1> t0, t128, t32, undef:i64
* SelectionDAG after vector legalization
ch = store<ST1[%16](align=4), trunc to i1> t0, t133, t32,
2012 Jan 09
3
as.numeric() generates NAs inside an apply call, but fine outside of it
Hello-
I have rather a messy SPSS file which I have imported to R, I've dput'd
some of the columns at the end of this message. I wish to get rid of all
the labels and have numeric values using as.numeric. The funny thing is
it works like this:
as.numeric(mydata[,2]) # generates correct numbers
however, if I pass the whole dataframe at once like this:
apply(mydata, 1:2, function(x)
2012 May 02
2
Problem with 'nls' fitting logistic model (5PL)
Dear R-Helpers,
I'm working with immunoassay data and 5PL logistic model. I wanted to
experiment with different forms of weighting and parameter selection,
which is not possible in instrument software, so I turned to R.
I am using R 2.14.2 under Win7 64bit, and the 'nls' library to fit the
model - I started with the same model and weighting type (1/y) as in the
instrument to see
2011 Jan 04
0
[LLVMdev] Bug in MachineInstr::isIdenticalTo
On Jan 4, 2011, at 11:08 AM, Villmow, Micah wrote:
> I have ran across a case where the function isIdenticalTo is return true for instructions that are not equivalent. The instructions in question are load/store instructions, and is causing a problem with MachineBranchFolding. The problem is this, I have two branches of a switch statement that are identical, except for the size of the store.
2012 May 10
1
stop calculation in a function
Hi dear R-users,
I have a question about a function I'm trying to improve.
How can I stop the function calculation at the last numeric value of my
data?
The problem is that the end of my data contains missing values (NAs). And
the aim of my function is to compare the first numeric value with the next
one (till the end). For the moment, It works well when my data doesn't
contains any NAs
2002 Oct 26
2
Still missing something on missing values...
Hi,
I have a SPSS datafile which is used for my textbook in the
statistics (and which is available on
http://abacon.com/fox/s6720p2.sav, but it is originally from
ICPSR).
When I opened it with SPSS 10 and run Frequencies on it I
have got 979 valid data a 27 missing. However, see below
(unfortunately, I have used R in preparation of my homework,
which caused me an error on this):
>
2012 May 12
1
masked by GlobalEnv ???
Hi R Listers,
I am trying to upload a data file and I received this message. It seems that
I am still able to make graphs and Aeventexhumed still works in the
analysis. Can I ignore this message or do I need to do something about this?
Jean
> require(plyr)
Loading required package: plyr
> turtlehatch <- read.csv(file.choose())
> attach(turtlehatch)
The following object(s) are
2016 Jun 28
0
Question about VectorLegalizer::ExpandStore() with v4i1
Hi All,
Can someone comment below question whether it is wrong or not please?
2016-06-25 7:52 GMT+01:00 jingu kang <jaykang10 at gmail.com>:
> Hi All,
>
> I have a problem with VectorLegalizer::ExpandStore() with v4i1.
>
> Let's see a example.
>
> * LLVM IR
> store <4 x i1> %edgeMask_for.body1314, <4 x i1>* %27
>
> * SelectionDAG before vector
2008 Mar 14
1
Lme does not work without a random effect (UNCLASSIFIED)
Classification: UNCLASSIFIED
Caveats: NONE
Dear R users,
I'm interested in finding a random effect of the Block in the data shown
below, but 'lme' does not work without the random effect. I'm not sure how
to group the data without continuous value which is shown in the error
message at the bottom line. If I use 'aov' with Error(Block), is there a
test method comparing