Displaying 7 results from an estimated 7 matches for "columnns".
Did you mean:
columns
2010 Nov 01
1
spliting first 10 words in a string
Hi all,
I have a columnn with text that has quite a few words in it. I would like to split these words in separate columns, but just first ten words in the string. Is that possible in R?
Thank you, m
[[alternative HTML version deleted]]
2010 Nov 02
1
splitting First 10 words in a string
Hi Steven,
Thank you for the help. I get an error though when i do this :
>lit<-read.csv("litologija.csv", sep=";", dec=".")
>sent <-data.frame(sentence=lit$Opis,stringsAsFactors=FALSE)
>str(sent)
>sentV<-rep(sent,10)
>str(sentV)
>first=second=third=fourth=fifth=sixth=seventh=eighth=ninth=tenth<-vector(length=10)
>DF
2007 Feb 07
3
Sample Poisson Distribution
Hi,
I'm completely new to R, I am all at sea with the interface and the
confusing help files, so would appreciate some help to do a simple task.
Need to present the mean and variance of 100 different samples of poisson
distributions (N=1000, with fixed lambda) in a file in two columnns, and
then produce histograms.
So far I have figured out:
> N <- 1000
> x <- rpois(N, 3.1) ,
and
> var(x)
and
> mean(x)
, and I've seen the hist command, just need to tie it all together. I read
that loops aren't really used in R, so what do i need to do?
thanks
--...
2004 Sep 04
1
Append Columns
Dear all,
Can I use "write.table" to append columnns?
Thanks for any help
-MY
[[alternative HTML version deleted]]
2023 Dec 01
1
back tick names with predict function
Also, and possibly more constructively, when you get an error like
> CI.c = predict(mod2, data.frame( `plant-density` = x), interval = 'c') # fail
Error in eval(predvars, data, env) : object 'plant-density' not found
you should check your assumptions. Does "newdata" actually contain a columnn called "plant-density":
> head(data.frame( `plant-density`
2023 Dec 01
1
back tick names with predict function
"Thank you Rui. I didn't know about the check.names = FALSE argument.
> Another good reminder to always read help, but I'm not sure I understood
> what help to read in this case"
?data.frame , of course, which says:
"check.names
logical. If TRUE then the names of the variables in the data frame are
checked to ensure that they are syntactically valid variable names
2012 Jul 09
4
Skipping lines and incomplete rows
I have a text file that has semi-colon separated values. The table is nearly
10,000 by 585. The files looks as follows:
*******************************************
First line: Skip this line
Second line: skip this line
Third line: skip this line
variable1 Variable2 Variable3 Variable4
Unit1 Unit2 Unit3
10 0.1 0.01 0.001
20