Displaying 20 results from an estimated 200 matches similar to: "indexing a particular element in a list of vectors"
2003 Oct 16
2
returning dynamic variable names from function
Within a function I'm assigning dynamic variable names and values to them
using the "assign" function. I want to pass back the results but am
uncertain how to do this.
Basically, my function reads a number of data files and uses the filename of
each file as the variable name for a list-to-become-dataframe. I want then
to pass all these lists back, but again, the names of the
2008 Jul 03
3
apply with a division
Hi,
I'd like to normalize a dataset by dividing each row by the first row.
Very simple, right?
I tried this:
> expt.fluor
X1 X2 X3
1 124 120 134
2 165 163 174
3 52 51 43
4 179 171 166
5 239 238 235
>first.row <- expt.fluor[1,]
> normed <- apply(expt.fluor, 1, function(r) {r / first.row})
>normed
[[1]]
X1 X2 X3
1 1 1 1
[[2]]
X1 X2 X3
1
2006 Oct 03
2
pdf/ convert/ font problem
Background:
OS: Linux Ubuntu Dapper
R : Version 2.3.1 (2006-06-01)
Emacs 21.4.1
ESS
Colleagues
This is neither a bug report, nor a complaint, so I think this is the
appropriate list.
I am getting an odd font problem with a pdf generated using
pdf(file =
"../figures/PCNM.models.larvae.fluor.zoo.stability.2001.and.2002.pdf",
title="", family="serif",
2013 May 16
2
A function that can modify an object? Or at least shows principles how to modify an object?
Hi, If I have an R object UUU, where the second element is U2, based on
"g" column of my.table
my.table of UUU is:
mmm ggg gindex map Info
aaa123 U1 1 1 1
aaa124 U1 1 2 1
bbb1378 U2 2 1 1
bbb8888 U2 2 2 0
bbb1389 U2 2 3
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
Hi list,
My case :
Local UNIX user : ZTEST
domain : uuq.ork
domain user : UUQ\ztest
smb.conf for standalone samba : /home/hywu/smb.conf
[/home/hywu] # cat /home/hywu/smb.conf
[global]
passdb backend = smbpasswd
workgroup = WORKGROUP
security=user
Smbpasswd fail to change local UNIX user password (ZTEST) when samba role is DC.
I want to change password of local UNIX user "ZTEST" but
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
On Thu, 25 Jan 2024 18:27:48 +0800
hhyy ww via samba <samba at lists.samba.org> wrote:
> Hi list,
>
> My case :
> Local UNIX user : ZTEST
> domain : uuq.ork
> domain user : UUQ\ztest
> smb.conf for standalone samba : /home/hywu/smb.conf
>
> [/home/hywu] # cat /home/hywu/smb.conf
> [global]
> passdb backend = smbpasswd
> workgroup = WORKGROUP
>
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
Rowland Penny via samba <samba at lists.samba.org> ? 2024?1?25? ?? ??6:42???
> On Thu, 25 Jan 2024 18:27:48 +0800
> hhyy ww via samba <samba at lists.samba.org> wrote:
>
> > Hi list,
> >
> > My case :
> > Local UNIX user : ZTEST
> > domain : uuq.ork
> > domain user : UUQ\ztest
> > smb.conf for standalone samba : /home/hywu/smb.conf
2011 Jan 26
1
return object from loop inside a function
Hi All,
I have a for loop inside the function and I cannot get UUU to give me an
updated grid.dens object when I run the function (it does update when I
run just the for loop). Here's a simplified version of my function:
UUU=function(pop, grid.dens) {
for (i in 1:10){
Food=grid.dens[pop$yloc[i],pop$xloc[i]] #use initial grid.dens values
Consumed=(pop$weight[i]*0.25)
Left=Food-Consumed
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
On Thu, 25 Jan 2024 20:54:07 +0800
hhyy ww via samba <samba at lists.samba.org> wrote:
> Rowland Penny via samba <samba at lists.samba.org> ? 2024?1?25? ??
> ??6:42???
>
> > On Thu, 25 Jan 2024 18:27:48 +0800
> > hhyy ww via samba <samba at lists.samba.org> wrote:
> >
> > > Hi list,
> > >
> > > My case :
> > > Local
2011 Mar 18
1
Replace split with regex for speed ?
Have timestamp in format HH:MM:SS.MMM.UUU and need to remove the last "." so
it is in format HH:MM:SS.MMMUUU.
What is the fastest way to do this, since it has to be repeated on millions
of rows. Should I use regex ?
Currently doing it with a string split, which is slow:
>head(ts)
[1] 09:30:00.000.245 09:30:00.000.256 09:30:00.000.633 09:30:00.001.309
09:30:00.003.635
2005 Oct 28
3
splitting a character field in R
Dear R users,
I have a dataframe with one character field, and I would like to create two
new fields (columns) in my dataset, by spliting the existing character
field into two using an existing substring.
... something that in SAS I could solve e.g. combining substr(which I am
aware exist in R) and "index" for determining the position of the pattern
within the string.
e.g. if my
2002 Apr 25
1
Re: Problems with ext3 fs
Hi,
I have read this thread and want to say that I have expirienced the same
problem.
Once, when I was loged in, one of my filesystems ( root filesystem :( )
became read-only with the same symptoms.
But results was more tragic. Almost in each directory avg. 10% of files
had incorrect attributes, owner, links, etc.
But filenames was correct. So, I was obliged to re-create root
filesystem :(
2006 Nov 03
4
read file problem
R-help,
I have the following file I want to import to R (some lines
removed)
Calibrated CTD data for station:00280001
Calibrated:23/8 2001, Salinity Unsmoothed, Fluorescence Uncalibrated
Maximum observed depth: 36 m
QUAL has one digit for each of pressure, temp., sal. and fluor.
QUAL=1:Uncal., QUAL=2:OK, QUAL=6:Interp., QUAL=9:No data
2007 Oct 30
1
axis title on two lines
Hello,I am searching for the possibility to make a two lines axis title. This suggestion:ylab=expression(paste("log rate\n[ fluor.",inc. %.% cell^{-1} %.% sec^{-1}," ]"))results in two lines left not centered and with a large gap.any suggestions.ThanksMarcelĀ
______________________________________________________________________________
Marcel Sandow
Leibniz Institute of
2013 Sep 03
1
libR.so: cannot open shared object file
Hi all
I have a R code that incorporates a C++ programm. I compiled the C++
code with the following:
R CMD SHLIB Model.cpp -Wall funzioni.cpp
it seems to work fine but when i run the R code i get this error message
Error in dyn.load(paste(dir_func, "Model.so", sep = "")) :
unable to load shared object '/lustre/work/uuu/RCpp/Model.so':
libR.so: cannot open
2003 Nov 09
2
How to create unique factor from two factors? + Boostrap Q
This might be easy but I'm very new to R and this question doesn't seem to
have any nice keywords that bring up relevant search results when I search
the CRAN search engine. Therefore, I'll plead (as I have in the recent
past) Newbie status.
I have a data frame with two factors (Factor 1 and 2) which together specify
another unique level. I want to create a third factor in the
2014 Sep 08
2
optimizing and scaling ntlm_auth
Hello,
I am using ntlm_auth called from FreeRADIUS to authenticate users on a network with their Active Directory credentials.
The problem I seem to be having is that ntlm_auth is taking longer than it should and I can't seem to get it to go faster reliably.
Some background information:
Users are connecting to a wireless network using 802.1x.
That network sends requests to FreeRADIUS which
2011 Sep 13
4
imapc and imap_acl
Hello (Timo),
yes, I know... maybe it's a bit far fetched, but I do have a use case.
Would it be (reasonably easily) possible to implement IMAP ACL
support for "imported" imapc namespaces/mailboxes?
There is no local directory (like with the virtual plugin) yet...
Greetings,
Lutz
--
Lutz Pre?ler <Lutz.Pressler at SerNet.DE> http://www.SerNet.DE/
SerNet Service
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
My system is not only for CIFS/SMB/domain features , sometime I need to
disable DC so I have to keep local user in /etc/passwd.
I have download samba source code and build it. I modify the order of
getpwnam call in source3/lib/username.c then solve the problem.
I have checked the following list :
https://lists.samba.org/archive/samba-technical/2008-March/058508.html
I think this is same problem.
2018 Oct 11
10
Transponer data frame.
Hola,
Tengo la siguiente base de datos
Numero de vuelo Nacionalidad Pax
1240 Argentina 2341
1240 Uruguaya 4432
1240 Paraguaya 67000
1240 Brasilera 1234
1241 Argentina 7344
1241 Uruguaya 543000
1241 Paraguaya 3000
1241 Brasilera 234000
y quiero que quede del siguiente modo:
Numero de vuelo Nacionalidad_argentina Nacionalidad_uruguaya
Nacionalidad_paraguaya Nacionalidad_brasilera
1240 2341 4432