[R] How to edit a dataframe/tibble in R console

Yousri Fanous you@r|@|@nou@ @end|ng |rom gm@||@com
Sun Apr 26 14:23:40 CEST 2020


Thank you Jim.
It works like a charm

Yousri

On Sat, Apr 25, 2020 at 11:25 PM Yousri Fanous <yousri.fanous using gmail.com>
wrote:

> I recently installed R 3.6.3 on my windows laptop.
>
> R version 3.6.3 (2020-02-29)
>
> I am trying to import a stata .dta file to R
>
> >url<-“http://www.stata-press.com/data/r10/rootstock.dta”
>
> >library(tidyverse)
>
> >library(haven)
>
> >rootstock<-read_dta(url)
>
>
> All works as expected.
>
>
> >class(rootstock)
> [1] "tbl_df"     "tbl"        "data.frame"
>
>
> Now I cannot use the edit command with a tibble or a data frame
>
>
> > edit(rootstock)
> Error in edit.data.frame(rootstock) :
>   can only handle vector and factor elements
>
>
> I noticed that their is an add-on package editData for Rstudio, but I
> cannot use it from the console:
>
> >library(editData)
> >editData(rootstock)
> Error: RStudio not running
>
>
> How can I edit a tibble/dataframe from the console?
>
>
> Yousri Fanous
>
> Software Developer
>
> IBM Canada
>
>
>
>
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list