search for: firist

Displaying 13 results from an estimated 13 matches for "firist".

2018 Jan 08
4
Replace NAs in split lists
...rame shown below has a column named ID which has 2 variables a and b; i want to replace the NAs on the Value column by 2, which is the only numeric entry, for ID=a and by 5 for ID=b. I worked out the solution but could not replace the results in the split lists. Original dataframe , df1 ID ID_2 Firist Value 1 a aa TRUE 2 2 a ab FALSE NA 3 a ac FALSE NA 4 b aa TRUE 5 5 b ab FALSE NA Sdf1 $a ID ID_2 Firist Value 1 a aa TRUE 2 2 a ab FALSE NA 3 a ac FALSE NA $b ID ID_2 Firist Value 4 b aa TRUE 5 5 b ab FALSE NA Desired...
2018 Jan 08
3
Replace NAs in split lists
...> a and b; i want to replace the NAs on the Value column by 2, which is >> the only numeric entry, for ID=a and by 5 for ID=b. >> >> I worked out the solution but could not replace the results in the >split lists. >> >> Original dataframe , df1 >> ID ID_2 Firist Value >> 1 a aa TRUE 2 >> 2 a ab FALSE NA >> 3 a ac FALSE NA >> 4 b aa TRUE 5 >> 5 b ab FALSE NA >> Sdf1 >> $a >> ID ID_2 Firist Value >> 1 a aa TRUE 2 >> 2 a ab FALSE NA >> 3 a...
2018 Jan 08
2
Replace NAs in split lists
...n Mon, Jan 8, 2018 at 3:12 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: > Upon closer examination I see that you are not using the split version of > df1 as I usually would, so here is a reproducible example: > > #---- > df1 <- read.table( text= > "ID ID_2 Firist Value > 1 a aa TRUE 2 > 2 a ab FALSE NA > 3 a ac FALSE NA > 4 b aa TRUE 5 > 5 b ab FALSE NA > ", header=TRUE, as.is=TRUE ) > > sdf <- split( df1, df1$ID ) > # note the extra [ 1 ] in case you have more than one non-NA value #...
2018 Jan 08
0
Replace NAs in split lists
Upon closer examination I see that you are not using the split version of df1 as I usually would, so here is a reproducible example: #---- df1 <- read.table( text= "ID ID_2 Firist Value 1 a aa TRUE 2 2 a ab FALSE NA 3 a ac FALSE NA 4 b aa TRUE 5 5 b ab FALSE NA ", header=TRUE, as.is=TRUE ) sdf <- split( df1, df1$ID ) # note the extra [ 1 ] in case you have more than one non-NA value # per ID sdf2 <- lapply( sdf...
2018 Jan 08
0
Replace NAs in split lists
...eff Newmiller ><jdnewmil at dcn.davis.ca.us> wrote: >> Upon closer examination I see that you are not using the split >version of >> df1 as I usually would, so here is a reproducible example: >> >> #---- >> df1 <- read.table( text= >> "ID ID_2 Firist Value >> 1 a aa TRUE 2 >> 2 a ab FALSE NA >> 3 a ac FALSE NA >> 4 b aa TRUE 5 >> 5 b ab FALSE NA >> ", header=TRUE, as.is=TRUE ) >> >> sdf <- split( df1, df1$ID ) >> # note the extra [ 1 ] in case y...
2018 Jan 08
0
Replace NAs in split lists
...ed ID which has 2 variables > a and b; i want to replace the NAs on the Value column by 2, which is > the only numeric entry, for ID=a and by 5 for ID=b. > > I worked out the solution but could not replace the results in the split lists. > > Original dataframe , df1 > ID ID_2 Firist Value > 1 a aa TRUE 2 > 2 a ab FALSE NA > 3 a ac FALSE NA > 4 b aa TRUE 5 > 5 b ab FALSE NA > Sdf1 > $a > ID ID_2 Firist Value > 1 a aa TRUE 2 > 2 a ab FALSE NA > 3 a ac FALSE NA > $b > ID ID_2 Fi...
2018 Jan 08
1
Replace NAs in split lists
...il at dcn.davis.ca.us> wrote: >>> Upon closer examination I see that you are not using the split >>version of >>> df1 as I usually would, so here is a reproducible example: >>> >>> #---- >>> df1 <- read.table( text= >>> "ID ID_2 Firist Value >>> 1 a aa TRUE 2 >>> 2 a ab FALSE NA >>> 3 a ac FALSE NA >>> 4 b aa TRUE 5 >>> 5 b ab FALSE NA >>> ", header=TRUE, as.is=TRUE ) >>> >>> sdf <- split( df1, df1$ID ) >>&...
2018 Jan 08
2
Replace NAs in split lists
Hi With the example, na.locf seems to be the easiest way. > library(zoo) > na.locf(df1) ID ID_2 Firist Value 1 a aa TRUE 2 2 a ab FALSE 2 3 a ac FALSE 2 4 b aa TRUE 5 5 b ab FALSE 5 Cheers Petr > -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Jeff > Newmiller > Sent: Monday, January 8, 2018 9:13...
2018 Jan 08
0
Replace NAs in split lists
...e first record for each ID. -- Sent from my phone. Please excuse my brevity. On January 8, 2018 2:29:40 AM PST, PIKAL Petr <petr.pikal at precheza.cz> wrote: >Hi > >With the example, na.locf seems to be the easiest way. >> library(zoo) > >> na.locf(df1) > ID ID_2 Firist Value >1 a aa TRUE 2 >2 a ab FALSE 2 >3 a ac FALSE 2 >4 b aa TRUE 5 >5 b ab FALSE 5 > >Cheers >Petr > >> -----Original Message----- >> From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Jeff >> Ne...
2018 Jan 08
0
Replace NAs in split lists
...n Mon, Jan 8, 2018 at 3:12 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: > Upon closer examination I see that you are not using the split version of > df1 as I usually would, so here is a reproducible example: > > #---- > df1 <- read.table( text= > "ID ID_2 Firist Value > 1? a?? aa?? TRUE???? 2 > 2? a?? ab? FALSE??? NA > 3? a?? ac? FALSE??? NA > 4? b?? aa?? TRUE???? 5 > 5? b?? ab? FALSE??? NA > ", header=TRUE, as.is=TRUE ) > > sdf <- split( df1, df1$ID ) > # note the extra [ 1 ] in case you have more than one non-NA value #...
2018 Jan 08
2
Replace NAs in split lists
...e. Please excuse my brevity. > > On January 8, 2018 2:29:40 AM PST, PIKAL Petr <petr.pikal at precheza.cz> > wrote: > >Hi > > > >With the example, na.locf seems to be the easiest way. > >> library(zoo) > > > >> na.locf(df1) > > ID ID_2 Firist Value > >1 a aa TRUE 2 > >2 a ab FALSE 2 > >3 a ac FALSE 2 > >4 b aa TRUE 5 > >5 b ab FALSE 5 > > > >Cheers > >Petr > > > >> -----Original Message----- > >> From: R-help [mailto:r-help-...
2018 Jan 08
0
Replace NAs in split lists
...t; On January 8, 2018 2:29:40 AM PST, PIKAL Petr ><petr.pikal at precheza.cz> >> wrote: >> >Hi >> > >> >With the example, na.locf seems to be the easiest way. >> >> library(zoo) >> > >> >> na.locf(df1) >> > ID ID_2 Firist Value >> >1 a aa TRUE 2 >> >2 a ab FALSE 2 >> >3 a ac FALSE 2 >> >4 b aa TRUE 5 >> >5 b ab FALSE 5 >> > >> >Cheers >> >Petr >> > >> >> -----Original Message----- &g...
2005 Jul 12
2
Mount logon Home dir on Linux (CTM)
...hat I need now is to mount the logon home dir to the users who log in in the linux workstation. I didnt found out reading the docs and looking in the internet how can I do it (and IF I can). I can run a logon script that mounts \\MY_SAMBA_SERVER\username using smbmount, but that has 2 problems: firist, it will ask the password, but how i can make the script know the password? And the second problem: some users dont have the logon home dir in the MY_SAMBA_SERVER. So I think probably there is a better way to do it, maybe using pam.d, i dont know. Anyone could help me on that? Thanks for a...