attr() in the data.table package. It can be used too on
> data.frames or other objects.
> Best,
>
> Philippe Grosjean
>
>
> On 22 Feb 2014, at 03:13, Smart Guy wrote:
>
> > Hi All
> >
> > I am having problem running the 'attributes' command to set a
Hi All
I am having problem running the 'attributes' command to set a attribute on
each column of a large dataset. Dataset has 80 columns and 312407 rows. Its
taking more than 60 seconds to set simple attributes like split=TRUE,
usermissing=FALSE.
Here is the source code, assuming Dataset1 is the
first dataframe.
> I tried to rbind with mydata[NULL,,drop=FALSE] but rbind help states that
> empy data frames are dropped from rbind.
> So that as a workaround, I have:
>
>
> mydata*<-* rbind
> (mydata[1,,drop=FALSE],newrow, mydata)[-1,]
>
> Eric
>
>
> On 23 N
Hi All,
I was adding a new row of data to my data frame using rbind(). I
was surprised to see that after adding new row, I lost my data frame level
attibute as well as col level attribute. Please help me to insert a new
row at frist or middle position so that my custom attribute is not
October 2011 11:23, Joshua Wiley wrote:
> Hi Smart Guy,
>
> You can try use.missings = TRUE. I am not sure how well this will
> work. If you really need it and use.missings = TRUE does not work, I
> would just read it in as a list, and then maybe create a new data
> frame based
Hi All,
Here is my problem.
I need to get data frame (and not a list) while reading spss file using
read.spss. For which I can put one parameter of read.spss as
to.data.frame=TRUE.
Now in doing so, I dont get missing values.
Is there a way to get missings values along with data frame?
T
Hi Jim,
I am sorry for the typo. Thats 'newcolm' everywhere.
Thanks for the help.
I think this should work now. :)
Thanks and Regards
SmartG
On 29 October 2011 13:34, Jim Lemon wrote:
> On 10/29/2011 06:54 PM, Smart Guy wrote:
>
>> Hello Gurus,
>>
Hello Gurus,
I am still new to R. Here is my issue.
I was trying to add column to data frame that was populated by read.spss().
When I used cbind to add a new variable(column).
library(foreign)
mydf<-read.spss(file="C:/myspss.sav",use.value.labels=FALSE,
to.data.frame=TRUE,use.miss
Hi,
I have one doubt about one of the parameter of 'read.spss()' from
'foreign' package.
Here is the syntax :-
read.spss ( file,
use.value.labels = TRUE,
to.data.frame = FALSE,
max.value.labels = Inf,
trim.factor.names = FALSE,
trim_values = TRUE,
reencode = NA,
u
Hi,
I am looking for some guidance on whether I can use the period(.) in
function names and variable names.
For example:
my.function.name <- function(my.data.variable, my.radius, my.another.var,
my.value = 10)
{
}
Will this pose any problems regarding older and current version of R.
--
Sma
ork like this.
If any one came across same issue, kindly help me.
-Thanks
SmartG
On 29 August 2011 16:14, Smart Guy wrote:
> Hi Experts,
> I was trying to write a data frame which has a header row,
> from R to Excel disk file using RODBC ( RODBC_1.3-1) package. I met wi
Hi Experts,
I was trying to write a data frame which has a header row,
from R to Excel disk file using RODBC ( RODBC_1.3-1) package. I met with an
issue:- If in sqlSave(), I set a parameter "colnames=FALSE" then I get
first row as header in excel file. If 'colnames=TRUE' then it giv
Yes, thats right, readline will give you character and now you need to
convert it to numeric to make it work.
Thanks
SmartG
On 25 July 2011 08:51, Ista Zahn wrote:
> readline always returns a character. See ?readline for details.
>
> Best,
> Ista
>
> On Sun, Jul 24, 2011 at 10:59 PM, Bansal, Vi
Hello All,
I am using read.spss() to read a SPSS dataset into R data.frame.
However I am not able to read user defined MISSING values when it
defined as range in SPSS variable view. I am also not able to read the
value from the MEASURE column in the SPSS variable view to determine
whether a SPSS co
14 matches
Mail list logo